joyent-portal/packages/my-joyent/src/components/filters/__tests__/__snapshots__/filters.spec.js.snap

1220 lines
24 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders <Filters /> without throwing 1`] = `
.c0 {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.5rem;
padding-left: 0.5rem;
}
.c1 {
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-weight: 400;
font-size: 0.9375rem;
font-style: normal;
font-stretch: normal;
display: block;
color: ;
margin-right: 0.75rem;
font-weight: bold;
}
.c3 .input-range {
position: relative;
width: calc(100% - 18px);
margin: auto;
min-height: 0.625rem;
}
.c3 .slider {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: #FFFFFF;
border: 2px solid #bdbdbd;
border-radius: 50%;
cursor: pointer;
display: block;
height: 0.875rem;
width: 0.875rem;
-webkit-transform: translateY(-50%) translateX(-50%);
-ms-transform: translateY(-50%) translateX(-50%);
transform: translateY(-50%) translateX(-50%);
outline: none;
position: absolute;
top: 50%;
margin-top: 0.125rem;
}
.c3 .slider::active {
-webkit-transform: scale(1.3);
-ms-transform: scale(1.3);
transform: scale(1.3);
}
.c3 .slider::focus {
box-shadow: 0 0 0 5px rgba(63,81,181,0.2);
}
.c3 .disabled .track {
background: #D8D8D8;
}
.c3 .disabled .slider {
background: #CCC;
border: 1px solid #CCC;
box-shadow: none;
-webkit-transform: none;
-ms-transform: none;
transform: none;
}
.c3 .min,
.c3 .max {
display: none;
}
.c3 .value {
top: 0.5rem;
position: absolute;
}
.c3 .value .label-container {
font-weight: 600;
font-size: 0.625rem;
color: #464646;
left: -50%;
position: relative;
}
.c3 .track {
background: #D8D8D8;
cursor: pointer;
display: block;
height: 0.25rem;
position: relative;
}
.c3 .active-track {
background: #364ACD;
height: 100%;
position: absolute;
}
.c4 {
margin-bottom: 0.625rem;
margin-top: 0.75rem;
}
.c2 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
width: 100%;
}
.c2 > div {
-webkit-flex-grow: 1;
-ms-flex-grow: 1;
flex-grow: 1;
}
.c2 > div:not(:last-child) {
margin-right: 2.25rem;
}
@media only screen and (min-width:0em) {
.c0 {
-webkit-flex-basis: 100%;
-ms-flex-basis: 100%;
flex-basis: 100%;
max-width: 100%;
display: block;
}
}
<div
className="c0"
>
.c0 {
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-weight: 400;
font-size: 0.9375rem;
font-style: normal;
font-stretch: normal;
display: block;
color: ;
margin-right: 0.75rem;
font-weight: bold;
}
<label
className="c0"
htmlFor=""
>
Choose a package
</label>
.c3 {
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-weight: 400;
font-size: 0.9375rem;
font-style: normal;
font-stretch: normal;
display: block;
color: ;
margin-right: 0.75rem;
font-weight: bold;
}
.c1 .input-range {
position: relative;
width: calc(100% - 18px);
margin: auto;
min-height: 0.625rem;
}
.c1 .slider {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: #FFFFFF;
border: 2px solid #bdbdbd;
border-radius: 50%;
cursor: pointer;
display: block;
height: 0.875rem;
width: 0.875rem;
-webkit-transform: translateY(-50%) translateX(-50%);
-ms-transform: translateY(-50%) translateX(-50%);
transform: translateY(-50%) translateX(-50%);
outline: none;
position: absolute;
top: 50%;
margin-top: 0.125rem;
}
.c1 .slider::active {
-webkit-transform: scale(1.3);
-ms-transform: scale(1.3);
transform: scale(1.3);
}
.c1 .slider::focus {
box-shadow: 0 0 0 5px rgba(63,81,181,0.2);
}
.c1 .disabled .track {
background: #D8D8D8;
}
.c1 .disabled .slider {
background: #CCC;
border: 1px solid #CCC;
box-shadow: none;
-webkit-transform: none;
-ms-transform: none;
transform: none;
}
.c1 .min,
.c1 .max {
display: none;
}
.c1 .value {
top: 0.5rem;
position: absolute;
}
.c1 .value .label-container {
font-weight: 600;
font-size: 0.625rem;
color: #464646;
left: -50%;
position: relative;
}
.c1 .track {
background: #D8D8D8;
cursor: pointer;
display: block;
height: 0.25rem;
position: relative;
}
.c1 .active-track {
background: #364ACD;
height: 100%;
position: absolute;
}
.c2 {
margin-bottom: 0.625rem;
margin-top: 0.75rem;
}
.c0 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
width: 100%;
}
.c0 > div {
-webkit-flex-grow: 1;
-ms-flex-grow: 1;
flex-grow: 1;
}
.c0 > div:not(:last-child) {
margin-right: 2.25rem;
}
<section
className="c0"
>
.c2 {
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-weight: 400;
font-size: 0.9375rem;
font-style: normal;
font-stretch: normal;
display: block;
color: ;
margin-right: 0.75rem;
font-weight: bold;
}
.c0 .input-range {
position: relative;
width: calc(100% - 18px);
margin: auto;
min-height: 0.625rem;
}
.c0 .slider {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: #FFFFFF;
border: 2px solid #bdbdbd;
border-radius: 50%;
cursor: pointer;
display: block;
height: 0.875rem;
width: 0.875rem;
-webkit-transform: translateY(-50%) translateX(-50%);
-ms-transform: translateY(-50%) translateX(-50%);
transform: translateY(-50%) translateX(-50%);
outline: none;
position: absolute;
top: 50%;
margin-top: 0.125rem;
}
.c0 .slider::active {
-webkit-transform: scale(1.3);
-ms-transform: scale(1.3);
transform: scale(1.3);
}
.c0 .slider::focus {
box-shadow: 0 0 0 5px rgba(63,81,181,0.2);
}
.c0 .disabled .track {
background: #D8D8D8;
}
.c0 .disabled .slider {
background: #CCC;
border: 1px solid #CCC;
box-shadow: none;
-webkit-transform: none;
-ms-transform: none;
transform: none;
}
.c0 .min,
.c0 .max {
display: none;
}
.c0 .value {
top: 0.5rem;
position: absolute;
}
.c0 .value .label-container {
font-weight: 600;
font-size: 0.625rem;
color: #464646;
left: -50%;
position: relative;
}
.c0 .track {
background: #D8D8D8;
cursor: pointer;
display: block;
height: 0.25rem;
position: relative;
}
.c0 .active-track {
background: #364ACD;
height: 100%;
position: absolute;
}
.c1 {
margin-bottom: 0.625rem;
margin-top: 0.75rem;
}
<div
className="c0"
>
.c1 {
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-weight: 400;
font-size: 0.9375rem;
font-style: normal;
font-stretch: normal;
display: block;
color: ;
margin-right: 0.75rem;
font-weight: bold;
}
.c0 {
margin-bottom: 0.625rem;
margin-top: 0.75rem;
}
<label
className="c0 c1"
htmlFor=""
>
GB RAM
</label>
<div
aria-disabled={false}
className="input-range"
onKeyDown={[Function]}
onKeyUp={[Function]}
onMouseDown={[Function]}
onTouchStart={[Function]}
>
<span
className="min"
>
<span
className="label-container"
>
0.256
</span>
</span>
<div
className="track"
onMouseDown={[Function]}
onTouchStart={[Function]}
>
<div
className="active-track"
style={
Object {
"left": "0%",
"width": "100%",
}
}
/>
<span
className="slider-container"
style={
Object {
"left": "0%",
"position": "absolute",
}
}
>
<span
className="value"
>
<span
className="label-container"
>
0.256
</span>
</span>
<div
aria-controls={undefined}
aria-labelledby={undefined}
aria-valuemax={50.688}
aria-valuemin={0.256}
aria-valuenow={0.256}
className="slider"
draggable="false"
onKeyDown={[Function]}
onMouseDown={[Function]}
onTouchStart={[Function]}
role="slider"
tabIndex="0"
/>
</span>
<span
className="slider-container"
style={
Object {
"left": "100%",
"position": "absolute",
}
}
>
<span
className="value"
>
<span
className="label-container"
>
50.688
</span>
</span>
<div
aria-controls={undefined}
aria-labelledby={undefined}
aria-valuemax={50.688}
aria-valuemin={0.256}
aria-valuenow={50.688}
className="slider"
draggable="false"
onKeyDown={[Function]}
onMouseDown={[Function]}
onTouchStart={[Function]}
role="slider"
tabIndex="0"
/>
</span>
</div>
<span
className="max"
>
<span
className="label-container"
>
50.688
</span>
</span>
</div>
</div>
.c2 {
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-weight: 400;
font-size: 0.9375rem;
font-style: normal;
font-stretch: normal;
display: block;
color: ;
margin-right: 0.75rem;
font-weight: bold;
}
.c0 .input-range {
position: relative;
width: calc(100% - 18px);
margin: auto;
min-height: 0.625rem;
}
.c0 .slider {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: #FFFFFF;
border: 2px solid #bdbdbd;
border-radius: 50%;
cursor: pointer;
display: block;
height: 0.875rem;
width: 0.875rem;
-webkit-transform: translateY(-50%) translateX(-50%);
-ms-transform: translateY(-50%) translateX(-50%);
transform: translateY(-50%) translateX(-50%);
outline: none;
position: absolute;
top: 50%;
margin-top: 0.125rem;
}
.c0 .slider::active {
-webkit-transform: scale(1.3);
-ms-transform: scale(1.3);
transform: scale(1.3);
}
.c0 .slider::focus {
box-shadow: 0 0 0 5px rgba(63,81,181,0.2);
}
.c0 .disabled .track {
background: #D8D8D8;
}
.c0 .disabled .slider {
background: #CCC;
border: 1px solid #CCC;
box-shadow: none;
-webkit-transform: none;
-ms-transform: none;
transform: none;
}
.c0 .min,
.c0 .max {
display: none;
}
.c0 .value {
top: 0.5rem;
position: absolute;
}
.c0 .value .label-container {
font-weight: 600;
font-size: 0.625rem;
color: #464646;
left: -50%;
position: relative;
}
.c0 .track {
background: #D8D8D8;
cursor: pointer;
display: block;
height: 0.25rem;
position: relative;
}
.c0 .active-track {
background: #364ACD;
height: 100%;
position: absolute;
}
.c1 {
margin-bottom: 0.625rem;
margin-top: 0.75rem;
}
<div
className="c0"
>
.c1 {
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-weight: 400;
font-size: 0.9375rem;
font-style: normal;
font-stretch: normal;
display: block;
color: ;
margin-right: 0.75rem;
font-weight: bold;
}
.c0 {
margin-bottom: 0.625rem;
margin-top: 0.75rem;
}
<label
className="c0 c1"
htmlFor=""
>
vCPUs
</label>
<div
aria-disabled={false}
className="input-range"
onKeyDown={[Function]}
onKeyUp={[Function]}
onMouseDown={[Function]}
onTouchStart={[Function]}
>
<span
className="min"
>
<span
className="label-container"
>
0.25
</span>
</span>
<div
className="track"
onMouseDown={[Function]}
onTouchStart={[Function]}
>
<div
className="active-track"
style={
Object {
"left": "0%",
"width": "100%",
}
}
/>
<span
className="slider-container"
style={
Object {
"left": "0%",
"position": "absolute",
}
}
>
<span
className="value"
>
<span
className="label-container"
>
0.25
</span>
</span>
<div
aria-controls={undefined}
aria-labelledby={undefined}
aria-valuemax={3.25}
aria-valuemin={0.25}
aria-valuenow={0.25}
className="slider"
draggable="false"
onKeyDown={[Function]}
onMouseDown={[Function]}
onTouchStart={[Function]}
role="slider"
tabIndex="0"
/>
</span>
<span
className="slider-container"
style={
Object {
"left": "100%",
"position": "absolute",
}
}
>
<span
className="value"
>
<span
className="label-container"
>
3.25
</span>
</span>
<div
aria-controls={undefined}
aria-labelledby={undefined}
aria-valuemax={3.25}
aria-valuemin={0.25}
aria-valuenow={3.25}
className="slider"
draggable="false"
onKeyDown={[Function]}
onMouseDown={[Function]}
onTouchStart={[Function]}
role="slider"
tabIndex="0"
/>
</span>
</div>
<span
className="max"
>
<span
className="label-container"
>
3.25
</span>
</span>
</div>
</div>
.c2 {
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-weight: 400;
font-size: 0.9375rem;
font-style: normal;
font-stretch: normal;
display: block;
color: ;
margin-right: 0.75rem;
font-weight: bold;
}
.c0 .input-range {
position: relative;
width: calc(100% - 18px);
margin: auto;
min-height: 0.625rem;
}
.c0 .slider {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: #FFFFFF;
border: 2px solid #bdbdbd;
border-radius: 50%;
cursor: pointer;
display: block;
height: 0.875rem;
width: 0.875rem;
-webkit-transform: translateY(-50%) translateX(-50%);
-ms-transform: translateY(-50%) translateX(-50%);
transform: translateY(-50%) translateX(-50%);
outline: none;
position: absolute;
top: 50%;
margin-top: 0.125rem;
}
.c0 .slider::active {
-webkit-transform: scale(1.3);
-ms-transform: scale(1.3);
transform: scale(1.3);
}
.c0 .slider::focus {
box-shadow: 0 0 0 5px rgba(63,81,181,0.2);
}
.c0 .disabled .track {
background: #D8D8D8;
}
.c0 .disabled .slider {
background: #CCC;
border: 1px solid #CCC;
box-shadow: none;
-webkit-transform: none;
-ms-transform: none;
transform: none;
}
.c0 .min,
.c0 .max {
display: none;
}
.c0 .value {
top: 0.5rem;
position: absolute;
}
.c0 .value .label-container {
font-weight: 600;
font-size: 0.625rem;
color: #464646;
left: -50%;
position: relative;
}
.c0 .track {
background: #D8D8D8;
cursor: pointer;
display: block;
height: 0.25rem;
position: relative;
}
.c0 .active-track {
background: #364ACD;
height: 100%;
position: absolute;
}
.c1 {
margin-bottom: 0.625rem;
margin-top: 0.75rem;
}
<div
className="c0"
>
.c1 {
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-weight: 400;
font-size: 0.9375rem;
font-style: normal;
font-stretch: normal;
display: block;
color: ;
margin-right: 0.75rem;
font-weight: bold;
}
.c0 {
margin-bottom: 0.625rem;
margin-top: 0.75rem;
}
<label
className="c0 c1"
htmlFor=""
>
TB Disk
</label>
<div
aria-disabled={false}
className="input-range"
onKeyDown={[Function]}
onKeyUp={[Function]}
onMouseDown={[Function]}
onTouchStart={[Function]}
>
<span
className="min"
>
<span
className="label-container"
>
0.01
</span>
</span>
<div
className="track"
onMouseDown={[Function]}
onTouchStart={[Function]}
>
<div
className="active-track"
style={
Object {
"left": "0%",
"width": "100%",
}
}
/>
<span
className="slider-container"
style={
Object {
"left": "0%",
"position": "absolute",
}
}
>
<span
className="value"
>
<span
className="label-container"
>
0.01
</span>
</span>
<div
aria-controls={undefined}
aria-labelledby={undefined}
aria-valuemax={107.26}
aria-valuemin={0.01}
aria-valuenow={0.01}
className="slider"
draggable="false"
onKeyDown={[Function]}
onMouseDown={[Function]}
onTouchStart={[Function]}
role="slider"
tabIndex="0"
/>
</span>
<span
className="slider-container"
style={
Object {
"left": "100%",
"position": "absolute",
}
}
>
<span
className="value"
>
<span
className="label-container"
>
107.26
</span>
</span>
<div
aria-controls={undefined}
aria-labelledby={undefined}
aria-valuemax={107.26}
aria-valuemin={0.01}
aria-valuenow={107.26}
className="slider"
draggable="false"
onKeyDown={[Function]}
onMouseDown={[Function]}
onTouchStart={[Function]}
role="slider"
tabIndex="0"
/>
</span>
</div>
<span
className="max"
>
<span
className="label-container"
>
107.26
</span>
</span>
</div>
</div>
.c2 {
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-weight: 400;
font-size: 0.9375rem;
font-style: normal;
font-stretch: normal;
display: block;
color: ;
margin-right: 0.75rem;
font-weight: bold;
}
.c0 .input-range {
position: relative;
width: calc(100% - 18px);
margin: auto;
min-height: 0.625rem;
}
.c0 .slider {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: #FFFFFF;
border: 2px solid #bdbdbd;
border-radius: 50%;
cursor: pointer;
display: block;
height: 0.875rem;
width: 0.875rem;
-webkit-transform: translateY(-50%) translateX(-50%);
-ms-transform: translateY(-50%) translateX(-50%);
transform: translateY(-50%) translateX(-50%);
outline: none;
position: absolute;
top: 50%;
margin-top: 0.125rem;
}
.c0 .slider::active {
-webkit-transform: scale(1.3);
-ms-transform: scale(1.3);
transform: scale(1.3);
}
.c0 .slider::focus {
box-shadow: 0 0 0 5px rgba(63,81,181,0.2);
}
.c0 .disabled .track {
background: #D8D8D8;
}
.c0 .disabled .slider {
background: #CCC;
border: 1px solid #CCC;
box-shadow: none;
-webkit-transform: none;
-ms-transform: none;
transform: none;
}
.c0 .min,
.c0 .max {
display: none;
}
.c0 .value {
top: 0.5rem;
position: absolute;
}
.c0 .value .label-container {
font-weight: 600;
font-size: 0.625rem;
color: #464646;
left: -50%;
position: relative;
}
.c0 .track {
background: #D8D8D8;
cursor: pointer;
display: block;
height: 0.25rem;
position: relative;
}
.c0 .active-track {
background: #364ACD;
height: 100%;
position: absolute;
}
.c1 {
margin-bottom: 0.625rem;
margin-top: 0.75rem;
}
<div
className="c0"
>
.c1 {
font-family: "Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica,sans-serif;
font-weight: 400;
font-size: 0.9375rem;
font-style: normal;
font-stretch: normal;
display: block;
color: ;
margin-right: 0.75rem;
font-weight: bold;
}
.c0 {
margin-bottom: 0.625rem;
margin-top: 0.75rem;
}
<label
className="c0 c1"
htmlFor=""
>
$/hr
</label>
<div
aria-disabled={false}
className="input-range"
onKeyDown={[Function]}
onKeyUp={[Function]}
onMouseDown={[Function]}
onTouchStart={[Function]}
>
<span
className="min"
>
<span
className="label-container"
>
0.016
</span>
</span>
<div
className="track"
onMouseDown={[Function]}
onTouchStart={[Function]}
>
<div
className="active-track"
style={
Object {
"left": "0%",
"width": "100%",
}
}
/>
<span
className="slider-container"
style={
Object {
"left": "0%",
"position": "absolute",
}
}
>
<span
className="value"
>
<span
className="label-container"
>
0.016
</span>
</span>
<div
aria-controls={undefined}
aria-labelledby={undefined}
aria-valuemax={0.525}
aria-valuemin={0.016}
aria-valuenow={0.016}
className="slider"
draggable="false"
onKeyDown={[Function]}
onMouseDown={[Function]}
onTouchStart={[Function]}
role="slider"
tabIndex="0"
/>
</span>
<span
className="slider-container"
style={
Object {
"left": "100%",
"position": "absolute",
}
}
>
<span
className="value"
>
<span
className="label-container"
>
0.525
</span>
</span>
<div
aria-controls={undefined}
aria-labelledby={undefined}
aria-valuemax={0.525}
aria-valuemin={0.016}
aria-valuenow={0.525}
className="slider"
draggable="false"
onKeyDown={[Function]}
onMouseDown={[Function]}
onTouchStart={[Function]}
role="slider"
tabIndex="0"
/>
</span>
</div>
<span
className="max"
>
<span
className="label-container"
>
0.525
</span>
</span>
</div>
</div>
</section>
</div>
`;