dash-core-components 3.2.0 → 4.0.0-rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dash_core_components/async-datepicker.js +1 -1
- package/dash_core_components/async-datepicker.js.map +1 -1
- package/dash_core_components/async-dropdown.js +1 -1
- package/dash_core_components/async-dropdown.js.map +1 -1
- package/dash_core_components/async-graph.js +1 -1
- package/dash_core_components/async-highlight.js +1 -1
- package/dash_core_components/async-highlight.js.map +1 -1
- package/dash_core_components/async-markdown.js +1 -1
- package/dash_core_components/async-markdown.js.map +1 -1
- package/dash_core_components/async-slider.js +1 -2
- package/dash_core_components/async-slider.js.map +1 -1
- package/dash_core_components/dash_core_components-shared.js +1 -1
- package/dash_core_components/dash_core_components-shared.js.map +1 -1
- package/dash_core_components/dash_core_components.js +1 -1
- package/dash_core_components/dash_core_components.js.map +1 -1
- package/dash_core_components/plotly.min.js +8 -0
- package/dash_core_components/proptypes.js +99 -0
- package/lib/components/Dropdown.react.js.old +228 -0
- package/lib/components/Dropdown.tsx +52 -0
- package/lib/components/Input.react.js.old +507 -0
- package/lib/components/Input.tsx +543 -0
- package/lib/components/RangeSlider.tsx +46 -0
- package/lib/components/Slider.react.js.old +214 -0
- package/lib/components/Slider.tsx +81 -0
- package/lib/components/Textarea.react.js.old +287 -0
- package/lib/components/css/dcc.css +14 -0
- package/lib/components/css/dropdown.css +230 -0
- package/lib/components/css/input.css +116 -2
- package/lib/components/css/react-select@1.0.0-rc.3.min.css +1 -1
- package/lib/components/css/sliders.css +206 -4
- package/lib/fragments/Dropdown.tsx +577 -0
- package/lib/fragments/RangeSlider.tsx +412 -0
- package/lib/index.ts +58 -0
- package/lib/types.ts +499 -0
- package/lib/utils/LazyLoader/dropdown.ts +2 -0
- package/lib/utils/LazyLoader/rangeSlider.ts +2 -0
- package/lib/utils/LazyLoader/slider.ts +2 -0
- package/lib/utils/_LoadingElement.tsx +26 -0
- package/lib/utils/computeSliderMarkers.ts +302 -0
- package/lib/utils/dropdownSearch.ts +92 -0
- package/lib/utils/formatSliderTooltip.ts +20 -0
- package/lib/utils/optionTypes.ts +27 -0
- package/lib/utils/sliderRendering.tsx +144 -0
- package/lib/utils/sliderSnapToMark.ts +17 -0
- package/lib/utils/sliderTooltip.tsx +65 -0
- package/package.json +27 -5
- package/lib/components/Dropdown.react.js +0 -182
- package/lib/components/Input.react.js +0 -403
- package/lib/components/RangeSlider.react.js +0 -194
- package/lib/components/Slider.react.js +0 -179
- package/lib/fragments/Dropdown.react.js +0 -158
- package/lib/fragments/RangeSlider.react.js +0 -143
- package/lib/fragments/Slider.react.js +0 -159
- package/lib/index.js +0 -183
- package/lib/utils/LazyLoader/dropdown.js +0 -8
- package/lib/utils/LazyLoader/rangeSlider.js +0 -8
- package/lib/utils/LazyLoader/slider.js +0 -8
- package/lib/utils/computeSliderMarkers.js +0 -153
- package/lib/utils/computeSliderStyle.js +0 -26
- package/lib/utils/formatSliderTooltip.js +0 -19
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
.dash-dropdown {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
margin: calc(var(--Dash-Spacing) * 2) 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.dash-dropdown-grid-container {
|
|
7
|
+
display: grid;
|
|
8
|
+
grid-template-columns: auto 1fr;
|
|
9
|
+
justify-items: start;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: 8px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.dash-dropdown-grid-container:has(:nth-child(3)) {
|
|
15
|
+
grid-template-columns: auto 1fr auto;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.dash-dropdown-grid-container:has(:nth-child(4)) {
|
|
19
|
+
grid-template-columns: auto 1fr auto auto;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.dash-dropdown-trigger,
|
|
23
|
+
.dash-dropdown-content {
|
|
24
|
+
border-radius: var(--Dash-Spacing);
|
|
25
|
+
border: 1px solid var(--Dash-Stroke-Strong);
|
|
26
|
+
color: inherit;
|
|
27
|
+
text-align: left;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dash-dropdown-trigger {
|
|
31
|
+
background: inherit;
|
|
32
|
+
padding: 6px 12px;
|
|
33
|
+
width: 100%;
|
|
34
|
+
min-height: 32px;
|
|
35
|
+
height: 100%;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
font-size: inherit;
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.dash-dropdown-trigger:disabled {
|
|
42
|
+
opacity: 0.6;
|
|
43
|
+
cursor: not-allowed;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.dash-dropdown-value {
|
|
47
|
+
max-width: 100%;
|
|
48
|
+
text-align: left;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
text-overflow: ellipsis;
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.dash-dropdown-placeholder {
|
|
55
|
+
color: var(--Dash-Text-Disabled);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.dash-dropdown-value > * {
|
|
59
|
+
display: inline;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.dash-dropdown-content {
|
|
63
|
+
background: var(--Dash-Fill-Inverse-Strong);
|
|
64
|
+
min-width: fit-content;
|
|
65
|
+
width: var(--radix-popover-trigger-width);
|
|
66
|
+
overflow-y: auto;
|
|
67
|
+
z-index: 50;
|
|
68
|
+
box-shadow: 0px 10px 38px -10px rgba(22, 23, 24, 0.35),
|
|
69
|
+
0px 10px 20px -15px rgba(22, 23, 24, 0.2);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.dash-dropdown-value-count,
|
|
73
|
+
.dash-dropdown-trigger-icon {
|
|
74
|
+
color: var(--Dash-Text-Strong);
|
|
75
|
+
fill: var(--Dash-Text-Strong);
|
|
76
|
+
white-space: nowrap;
|
|
77
|
+
justify-self: end;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.dash-dropdown-trigger-icon {
|
|
81
|
+
transition: transform 0.15s;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[data-state='open'] .dash-dropdown-trigger-icon {
|
|
85
|
+
transform: rotate(180deg);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.dash-dropdown-value-count {
|
|
89
|
+
line-height: 18px;
|
|
90
|
+
padding: 0 2px;
|
|
91
|
+
background: var(--Dash-Fill-Weak);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.dash-dropdown-search-container {
|
|
95
|
+
margin: calc(var(--Dash-Spacing) * 2);
|
|
96
|
+
padding: var(--Dash-Spacing);
|
|
97
|
+
border-radius: 4px;
|
|
98
|
+
border: 1px solid var(--Dash-Stroke-Strong);
|
|
99
|
+
background: var(--Dash-Fill-Inverse-Strong);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.dash-dropdown-search-container:focus-within {
|
|
103
|
+
border-color: var(--Dash-Fill-Interactive-Strong);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.dash-dropdown-search-icon,
|
|
107
|
+
.dash-dropdown-clear {
|
|
108
|
+
width: calc(var(--Dash-Spacing) * 3);
|
|
109
|
+
height: calc(var(--Dash-Spacing) * 3);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.dash-dropdown-search-container:focus-within .dash-dropdown-search-icon {
|
|
113
|
+
color: var(--Dash-Fill-Interactive-Strong);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.dash-dropdown-clear {
|
|
117
|
+
background: none;
|
|
118
|
+
border: none;
|
|
119
|
+
cursor: pointer;
|
|
120
|
+
padding: 0;
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
justify-content: center;
|
|
124
|
+
justify-self: end;
|
|
125
|
+
color: var(--Dash-Text-Strong);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.dash-dropdown-clear:hover {
|
|
129
|
+
color: var(--Dash-Fill-Interactive-Strong);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.dash-dropdown-clear:focus {
|
|
133
|
+
outline: 2px solid var(--Dash-Fill-Interactive-Strong);
|
|
134
|
+
outline-offset: 1px;
|
|
135
|
+
border-radius: 2px;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.dash-dropdown-search {
|
|
139
|
+
line-height: calc(var(--Dash-Spacing) * 6);
|
|
140
|
+
width: 100%;
|
|
141
|
+
border: none;
|
|
142
|
+
background: transparent;
|
|
143
|
+
color: var(--Dash-Text-Strong);
|
|
144
|
+
outline: none;
|
|
145
|
+
padding: 0;
|
|
146
|
+
|
|
147
|
+
/* Hide the "x" clear button in search inputs */
|
|
148
|
+
&::-webkit-search-cancel-button {
|
|
149
|
+
-webkit-appearance: none;
|
|
150
|
+
appearance: none;
|
|
151
|
+
display: none;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&::-ms-clear {
|
|
155
|
+
display: none;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.dash-dropdown-actions {
|
|
160
|
+
display: flex;
|
|
161
|
+
gap: calc(var(--Dash-Spacing) * 6);
|
|
162
|
+
line-height: 18px;
|
|
163
|
+
padding: var(--Dash-Spacing) calc(var(--Dash-Spacing) * 3);
|
|
164
|
+
border-top: 1px solid var(--Dash-Fill-Disabled);
|
|
165
|
+
border-bottom: 1px solid var(--Dash-Fill-Disabled);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.dash-dropdown-action-button {
|
|
169
|
+
background: none;
|
|
170
|
+
border: none;
|
|
171
|
+
cursor: pointer;
|
|
172
|
+
font-size: 14px;
|
|
173
|
+
font-weight: 600;
|
|
174
|
+
padding: 0;
|
|
175
|
+
text-decoration: none;
|
|
176
|
+
color: var(--Dash-Text-Disabled);
|
|
177
|
+
white-space: nowrap;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.dash-dropdown-action-button:hover {
|
|
181
|
+
color: var(--Dash-Fill-Interactive-Strong);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.dash-dropdown-action-button:focus {
|
|
185
|
+
text-decoration: underline;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.dash-dropdown-options {
|
|
189
|
+
overflow-y: auto;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.dash-dropdown-option {
|
|
193
|
+
padding: var(--Dash-Spacing) calc(var(--Dash-Spacing) * 3);
|
|
194
|
+
background: var(--Dash-Fill-Inverse-strong);
|
|
195
|
+
box-shadow: 0 -1px 0 0 var(--Dash-Fill-Disabled) inset;
|
|
196
|
+
color: var(--Dash-Text-Strong);
|
|
197
|
+
cursor: pointer;
|
|
198
|
+
display: flex;
|
|
199
|
+
align-items: center;
|
|
200
|
+
user-select: none;
|
|
201
|
+
overflow: hidden;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.dash-dropdown-option:not(:has(input[disabled])):hover,
|
|
205
|
+
.dash-dropdown-option:not(:has(input[disabled])):focus-within {
|
|
206
|
+
color: var(--Dash-Fill-Interactive-Strong);
|
|
207
|
+
background: var(--Dash-Fill-Interactive-Weak);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.dash-dropdown-option:has(input[disabled]) {
|
|
211
|
+
color: var(--Dash-Text-Disabled);
|
|
212
|
+
cursor: not-allowed;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.dash-dropdown-option-text {
|
|
216
|
+
white-space: pre;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.dash-dropdown-option-checkbox {
|
|
220
|
+
display: inline-block;
|
|
221
|
+
margin: 0 calc(var(--Dash-Spacing) * 2) 0 0;
|
|
222
|
+
box-sizing: border-box;
|
|
223
|
+
border: 1px solid var(--Dash-Stroke-Strong);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.dash-dropdown-option-checkbox:hover,
|
|
227
|
+
.dash-dropdown-option-checkbox:focus,
|
|
228
|
+
.dash-dropdown-option-checkbox:checked {
|
|
229
|
+
accent-color: var(--Dash-Fill-Interactive-Strong);
|
|
230
|
+
}
|
|
@@ -1,7 +1,121 @@
|
|
|
1
|
-
|
|
1
|
+
/* Input container styles */
|
|
2
|
+
.dash-input-container {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
width: 170px; /* default input width */
|
|
7
|
+
height: 32px;
|
|
8
|
+
background: var(--Dash-Fill-Inverse-Strong);
|
|
9
|
+
border-radius: var(--Dash-Spacing);
|
|
10
|
+
border: 1px solid var(--Dash-Stroke-Strong);
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
container-type: inline-size;
|
|
13
|
+
vertical-align: middle;
|
|
14
|
+
color: inherit;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.dash-input-container:has(input[type='range']) {
|
|
19
|
+
background: inherit;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Input field styles */
|
|
23
|
+
.dash-input-element {
|
|
24
|
+
padding: var(--Dash-Spacing) calc(2 * var(--Dash-Spacing));
|
|
25
|
+
color: inherit;
|
|
26
|
+
background: inherit;
|
|
27
|
+
border: none;
|
|
28
|
+
border-radius: var(--Dash-Spacing);
|
|
29
|
+
flex: 1 1 0;
|
|
30
|
+
min-width: 0;
|
|
31
|
+
height: 100%;
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
z-index: 1;
|
|
34
|
+
order: 2;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Hide native steppers for number inputs */
|
|
38
|
+
.dash-input-element[type='number'] {
|
|
39
|
+
-moz-appearance: textfield;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.dash-input-element[type='number']::-webkit-outer-spin-button,
|
|
43
|
+
.dash-input-element[type='number']::-webkit-inner-spin-button {
|
|
44
|
+
-webkit-appearance: none;
|
|
45
|
+
margin: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Show native steppers when container is narrow and input is number type */
|
|
49
|
+
@container (max-width: 99px) {
|
|
50
|
+
.dash-input-element[type='number'] {
|
|
51
|
+
-moz-appearance: number-input;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.dash-input-element[type='number']::-webkit-outer-spin-button,
|
|
55
|
+
.dash-input-element[type='number']::-webkit-inner-spin-button {
|
|
56
|
+
-webkit-appearance: inner-spin-button;
|
|
57
|
+
margin: 0;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Stepper button base styles */
|
|
62
|
+
.dash-input-stepper {
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
width: 32px;
|
|
67
|
+
height: 100%;
|
|
68
|
+
border: none;
|
|
69
|
+
background: var(--Dash-Fill-Inverse-Strong);
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
font-size: 16px;
|
|
72
|
+
font-weight: bold;
|
|
73
|
+
color: var(--Dash-Text-Primary);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.dash-input-stepper:hover {
|
|
77
|
+
background: var(--Dash-Fill-Primary-Hover);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.dash-input-stepper:active {
|
|
81
|
+
background: var(--Dash-Fill-Primary-Active);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.dash-input-stepper:disabled {
|
|
85
|
+
background: var(--Dash-Fill-Inverse-Strong);
|
|
86
|
+
opacity: 0.5;
|
|
87
|
+
cursor: default;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@container (max-width: 99px) {
|
|
91
|
+
.dash-input-stepper {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Decrement button specific styles */
|
|
97
|
+
.dash-input-stepper.dash-stepper-decrement {
|
|
98
|
+
border-right: 1px solid var(--Dash-Stroke-Weak);
|
|
99
|
+
border-radius: var(--Dash-Spacing) 0 0 var(--Dash-Spacing);
|
|
100
|
+
order: 1;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* Increment button specific styles */
|
|
104
|
+
.dash-input-stepper.dash-stepper-increment {
|
|
105
|
+
border-left: 1px solid var(--Dash-Stroke-Weak);
|
|
106
|
+
border-radius: 0 var(--Dash-Spacing) var(--Dash-Spacing) 0;
|
|
107
|
+
order: 3;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Hidden input type */
|
|
111
|
+
.dash-input-container.dash-input-hidden {
|
|
112
|
+
display: none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
input.dash-input-element:invalid {
|
|
2
116
|
outline: solid red;
|
|
3
117
|
}
|
|
4
118
|
|
|
5
|
-
input.dash-input:valid {
|
|
119
|
+
input.dash-input-element:valid {
|
|
6
120
|
outline: none black;
|
|
7
121
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.Select,.Select-control{position:relative}.Select-control,.Select-input>input{width:100%;cursor:default;outline:0}.Select-arrow-zone,.Select-clear-zone,.Select-loading-zone{text-align:center;cursor:pointer}.Select,.Select div,.Select input,.Select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.Select.is-disabled>.Select-control{background-color:#f9f9f9}.Select.is-disabled>.Select-control:hover{box-shadow:none}.Select.is-disabled .Select-arrow-zone{cursor:default;pointer-events:none;opacity:.35}.Select-control{background-color:#fff;border-radius:4px;border:1px solid #ccc;color:#333;display:table;border-spacing:0;border-collapse:separate;height:36px;overflow:hidden}.is-searchable.is-focused:not(.is-open)>.Select-control,.is-searchable.is-open>.Select-control{cursor:text}.Select-control:hover{box-shadow:0 1px 0 rgba(0,0,0,.06)}.Select-control .Select-input:focus{outline:0}.is-open>.Select-control{border-bottom-right-radius:0;border-bottom-left-radius:0;background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.is-open>.Select-control .Select-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.is-focused:not(.is-open)>.Select-control{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 0 3px rgba(0,126,255,.1)}.Select--single>.Select-control .Select-value,.Select-placeholder{bottom:0;color:#aaa;left:0;line-height:34px;padding-left:10px;padding-right:10px;position:absolute;right:0;top:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.has-value.Select--single>.Select-control .Select-value .Select-value-label,.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value .Select-value-label{color:#333}.has-value.Select--single>.Select-control .Select-value a.Select-value-label,.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label{cursor:pointer;text-decoration:none}.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus,.has-value.Select--single>.Select-control .Select-value a.Select-value-label:hover,.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus,.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:hover{color:#007eff;outline:0;text-decoration:underline}.Select-input{height:34px;padding-left:10px;padding-right:10px;vertical-align:middle}.Select-input>input{background:none;border:0;box-shadow:none;display:inline-block;font-family:inherit;font-size:inherit;margin:0;line-height:14px;padding:8px 0 12px;-webkit-appearance:none}.Select-loading,.Select-loading-zone{width:16px;position:relative;vertical-align:middle}.is-focused .Select-input>input{cursor:text}.has-value.is-pseudo-focused .Select-input{opacity:0}.Select-control:not(.is-searchable)>.Select-input{outline:0}.Select-loading-zone{display:table-cell}.Select-loading{-webkit-animation:Select-animation-spin .4s infinite linear;-o-animation:Select-animation-spin .4s infinite linear;animation:Select-animation-spin .4s infinite linear;height:16px;box-sizing:border-box;border-radius:50%;border:2px solid #ccc;border-right-color:#333;display:inline-block}.Select-clear-zone{-webkit-animation:Select-animation-fadeIn .2s;-o-animation:Select-animation-fadeIn .2s;animation:Select-animation-fadeIn .2s;color:#999;display:table-cell;position:relative;vertical-align:middle;width:17px}.Select-clear-zone:hover{color:#D0021B}.Select-clear{display:inline-block;font-size:18px;line-height:1}.Select--multi .Select-clear-zone{width:17px}.Select-arrow-zone{display:table-cell;position:relative;vertical-align:middle;width:25px;padding-right:5px}.Select--multi .Select-multi-value-wrapper,.Select-arrow{display:inline-block}.Select-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px;height:0;width:0;position:relative}.Select-arrow-zone:hover>.Select-arrow,.is-open .Select-arrow{border-top-color:#666}.Select .Select-aria-only{display:inline-block;height:1px;width:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;float:left}.Select-noresults,.Select-option{box-sizing:border-box;display:block;padding:8px 10px}@-webkit-keyframes Select-animation-fadeIn{from{opacity:0}to{opacity:1}}@keyframes Select-animation-fadeIn{from{opacity:0}to{opacity:1}}.Select-menu-outer{border-bottom-right-radius:4px;border-bottom-left-radius:4px;background-color:#fff;border:1px solid #ccc;border-top-color:#e6e6e6;box-shadow:0 1px 0 rgba(0,0,0,.06);box-sizing:border-box;margin-top:-1px;max-height:200px;position:absolute;top:100%;width:100%;z-index:1;-webkit-overflow-scrolling:touch}.Select-menu{max-height:198px;overflow-y:auto}.Select-option{background-color:#fff;color:#666;cursor:pointer}.Select-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.Select-option.is-selected{background-color:#f5faff;background-color:rgba(0,126,255,.04);color:#333}.Select-option.is-focused{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);color:#333}.Select-option.is-disabled{color:#ccc;cursor:default}.Select-noresults{color:#999;cursor:default}.Select--multi .Select-input{vertical-align:middle;margin-left:10px;padding:0}.Select--multi.has-value .Select-input{margin-left:5px}.Select--multi .Select-value{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);border-radius:2px;border:1px solid #c2e0ff;border:1px solid rgba(0,126,255,.24);color:#007eff;display:inline-block;font-size:.9em;line-height:1.4;margin-left:5px;margin-top:5px;vertical-align:top}.Select--multi .Select-value-icon,.Select--multi .Select-value-label{display:inline-block;vertical-align:middle}.Select--multi .Select-value-label{border-bottom-right-radius:2px;border-top-right-radius:2px;cursor:default;padding:2px 5px}.Select--multi a.Select-value-label{color:#007eff;cursor:pointer;text-decoration:none}.Select--multi a.Select-value-label:hover{text-decoration:underline}.Select--multi .Select-value-icon{cursor:pointer;border-bottom-left-radius:2px;border-top-left-radius:2px;border-right:1px solid #c2e0ff;border-right:1px solid rgba(0,126,255,.24);padding:1px 5px 3px}.Select--multi .Select-value-icon:focus,.Select--multi .Select-value-icon:hover{background-color:#d8eafd;background-color:rgba(0,113,230,.08);color:#0071e6}.Select--multi .Select-value-icon:active{background-color:#c2e0ff;background-color:rgba(0,126,255,.24)}.Select--multi.is-disabled .Select-value{background-color:#fcfcfc;border:1px solid #e3e3e3;color:#333}.Select--multi.is-disabled .Select-value-icon{cursor:not-allowed;border-right:1px solid #e3e3e3}.Select--multi.is-disabled .Select-value-icon:active,.Select--multi.is-disabled .Select-value-icon:focus,.Select--multi.is-disabled .Select-value-icon:hover{background-color:#fcfcfc}@keyframes Select-animation-spin{to{transform:rotate(1turn)}}@-webkit-keyframes Select-animation-spin{to{-webkit-transform:rotate(1turn)}}
|
|
1
|
+
.Select,.Select-control{position:relative}.Select-control,.Select-input>input{width:100%;cursor:default;outline:0}.Select-arrow-zone,.Select-clear-zone,.Select-loading-zone{text-align:center;cursor:pointer}.Select,.Select div,.Select input,.Select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.Select.is-disabled>.Select-control{background-color:#f9f9f9}.Select.is-disabled>.Select-control:hover{box-shadow:none}.Select.is-disabled .Select-arrow-zone{cursor:default;pointer-events:none;opacity:.35}.Select-control{background-color:#fff;border-radius:4px;border:1px solid #ccc;color:#333;display:table;border-spacing:0;border-collapse:separate;height:36px;overflow:hidden}.is-searchable.is-focused:not(.is-open)>.Select-control,.is-searchable.is-open>.Select-control{cursor:text}.Select-control:hover{box-shadow:0 1px 0 rgba(0,0,0,.06)}.Select-control .Select-input:focus{outline:0}.is-open>.Select-control{border-bottom-right-radius:0;border-bottom-left-radius:0;background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.is-open>.Select-control .Select-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.is-focused:not(.is-open)>.Select-control{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 0 3px rgba(0,126,255,.1)}.Select--single>.Select-control .Select-value,.Select-placeholder{bottom:0;color:#aaa;left:0;line-height:34px;padding-left:10px;padding-right:10px;position:absolute;right:0;top:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.has-value.Select--single>.Select-control .Select-value .Select-value-label,.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value .Select-value-label{color:#333}.has-value.Select--single>.Select-control .Select-value a.Select-value-label,.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label{cursor:pointer;text-decoration:none}.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus,.has-value.Select--single>.Select-control .Select-value a.Select-value-label:hover,.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus,.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:hover{color:#007eff;outline:0;text-decoration:underline}.Select-input{height:34px;padding-left:10px;padding-right:10px;vertical-align:middle}.Select-input>input{background:none;border:0;box-shadow:none;display:inline-block;font-family:inherit;font-size:inherit;margin:0;line-height:14px;padding:8px 0 12px;-webkit-appearance:none}.Select-loading,.Select-loading-zone{width:16px;position:relative;vertical-align:middle}.is-focused .Select-input>input{cursor:text}.has-value.is-pseudo-focused .Select-input{opacity:0}.Select-control:not(.is-searchable)>.Select-input{outline:0}.Select-loading-zone{display:table-cell}.Select-loading{-webkit-animation:Select-animation-spin .4s infinite linear;-o-animation:Select-animation-spin .4s infinite linear;animation:Select-animation-spin .4s infinite linear;height:16px;box-sizing:border-box;border-radius:50%;border:2px solid #ccc;border-right-color:#333;display:inline-block}.Select-clear-zone{-webkit-animation:Select-animation-fadeIn .2s;-o-animation:Select-animation-fadeIn .2s;animation:Select-animation-fadeIn .2s;color:#999;display:table-cell;position:relative;vertical-align:middle;width:17px}.Select-clear-zone:hover{color:#D0021B}.Select-clear{display:inline-block;font-size:18px;line-height:1}.Select--multi .Select-clear-zone{width:17px}.Select-arrow-zone{display:table-cell;position:relative;vertical-align:middle;width:25px;padding-right:5px}.Select--multi .Select-multi-value-wrapper,.Select-arrow{display:inline-block}.Select-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px;height:0;width:0;position:relative}.Select-arrow-zone:hover>.Select-arrow,.is-open .Select-arrow{border-top-color:#666}.Select .Select-aria-only{display:inline-block;height:1px;width:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;float:left}.Select-noresults,.Select-option{box-sizing:border-box;display:block;padding:8px 10px}@-webkit-keyframes Select-animation-fadeIn{from{opacity:0}to{opacity:1}}@keyframes Select-animation-fadeIn{from{opacity:0}to{opacity:1}}.Select-menu-outer{border-bottom-right-radius:4px;border-bottom-left-radius:4px;background-color:#fff;border:1px solid #ccc;border-top-color:#e6e6e6;box-shadow:0 1px 0 rgba(0,0,0,.06);box-sizing:border-box;margin-top:-1px;max-height:200px;position:absolute;top:100%;width:100%;z-index:1;-webkit-overflow-scrolling:touch}.Select-menu{max-height:198px;overflow-y:auto}.Select-option{background-color:#fff;color:#666;cursor:pointer}.Select-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.Select-option.is-selected{background-color:#f5faff;background-color:rgba(0,126,255,.04);color:#333}.Select-option.is-focused{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);color:#333}.Select-option.is-disabled{color:#ccc;cursor:default}.Select-noresults{color:#999;cursor:default}.Select--multi .Select-input{vertical-align:middle;margin-left:10px;padding:0}.Select--multi.has-value .Select-input{margin-left:5px}.Select--multi .Select-value{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);border-radius:2px;border:1px solid #c2e0ff;border:1px solid rgba(0,126,255,.24);color:#007eff;display:inline-block;font-size:.9em;line-height:1.4;margin-left:5px;margin-top:5px;vertical-align:top}.Select--multi .Select-value-icon,.Select--multi .Select-value-label{display:inline-block;vertical-align:middle}.Select--multi .Select-value-label{border-bottom-right-radius:2px;border-top-right-radius:2px;cursor:default;padding:2px 5px}.Select--multi a.Select-value-label{color:#007eff;cursor:pointer;text-decoration:none}.Select--multi a.Select-value-label:hover{text-decoration:underline}.Select--multi .Select-value-icon{cursor:pointer;border-bottom-left-radius:2px;border-top-left-radius:2px;border-right:1px solid #c2e0ff;border-right:1px solid rgba(0,126,255,.24);padding:1px 5px 3px}.Select--multi .Select-value-icon:focus,.Select--multi .Select-value-icon:hover{background-color:#d8eafd;background-color:rgba(0,113,230,.08);color:#0071e6}.Select--multi .Select-value-icon:active{background-color:#c2e0ff;background-color:rgba(0,126,255,.24)}.Select--multi.is-disabled .Select-value{background-color:#fcfcfc;border:1px solid #e3e3e3;color:#333}.Select--multi.is-disabled .Select-value-icon{cursor:not-allowed;border-right:1px solid #e3e3e3}.Select--multi.is-disabled .Select-value-icon:active,.Select--multi.is-disabled .Select-value-icon:focus,.Select--multi.is-disabled .Select-value-icon:hover{background-color:#fcfcfc}@keyframes Select-animation-spin{to{transform:rotate(1turn)}}@-webkit-keyframes Select-animation-spin{to{-webkit-transform:rotate(1turn)}}
|
|
@@ -1,5 +1,207 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
.dash-slider-root {
|
|
2
|
+
position: relative;
|
|
3
|
+
z-index: 0;
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
user-select: none;
|
|
7
|
+
touch-action: none;
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 14px;
|
|
10
|
+
padding: 8px 0 28px 0;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
/* Override Radix's default margin/padding behavior */
|
|
13
|
+
--radix-slider-thumb-width: 16px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.dash-slider-root[data-orientation='vertical'].has-marks {
|
|
17
|
+
padding-bottom: 0px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.dash-slider-root[data-orientation='vertical'] {
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
width: 20px;
|
|
23
|
+
height: 100%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.dash-slider-track {
|
|
27
|
+
position: relative;
|
|
28
|
+
flex-grow: 1;
|
|
29
|
+
border-radius: 9999px;
|
|
30
|
+
height: 4px;
|
|
31
|
+
background-color: var(--Dash-Fill-Disabled);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.dash-slider-root[data-orientation='vertical'] .dash-slider-track {
|
|
35
|
+
width: 4px;
|
|
36
|
+
height: auto;
|
|
37
|
+
overflow-y: hidden;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.dash-slider-range {
|
|
41
|
+
position: absolute;
|
|
42
|
+
border-radius: 9999px;
|
|
43
|
+
height: 100%;
|
|
44
|
+
background-color: var(--Dash-Fill-Interactive-Strong);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.dash-slider-root[data-orientation='vertical'] .dash-slider-range {
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: auto;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.dash-slider-thumb {
|
|
53
|
+
position: relative;
|
|
54
|
+
z-index: 1;
|
|
55
|
+
display: block;
|
|
56
|
+
width: 16px;
|
|
57
|
+
height: 16px;
|
|
58
|
+
background-color: var(--Dash-Fill-Interactive-Strong);
|
|
59
|
+
border: 2px solid var(--Dash-Fill-Inverse-Strong);
|
|
60
|
+
border-radius: 50%;
|
|
61
|
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
outline: none;
|
|
64
|
+
transition: all 0.15s ease-in-out;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.dash-slider-thumb:focus,
|
|
68
|
+
.dash-slider-thumb:hover {
|
|
69
|
+
transform: scale(1.125); /* Scale to make 16px thumb appear as 18px */
|
|
70
|
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.dash-slider-thumb:focus .dash-slider-tooltip,
|
|
74
|
+
.dash-slider-thumb:hover .dash-slider-tooltip {
|
|
75
|
+
display: block;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.dash-slider-thumb[data-disabled] {
|
|
79
|
+
cursor: not-allowed;
|
|
80
|
+
opacity: 0.5;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.dash-slider-mark {
|
|
84
|
+
position: absolute;
|
|
85
|
+
font-size: 12px;
|
|
86
|
+
line-height: 12px;
|
|
87
|
+
color: var(--Dash-Text-Strong);
|
|
88
|
+
white-space: nowrap;
|
|
89
|
+
pointer-events: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.dash-slider-mark:before {
|
|
93
|
+
content: '';
|
|
94
|
+
position: absolute;
|
|
95
|
+
bottom: 100%;
|
|
96
|
+
left: 50%;
|
|
97
|
+
transform: translateX(-50%);
|
|
98
|
+
background-color: var(--Dash-Fill-Disabled);
|
|
99
|
+
width: 4px;
|
|
100
|
+
height: 6px;
|
|
101
|
+
border-radius: 2px;
|
|
102
|
+
margin-bottom: 2px;
|
|
103
|
+
}
|
|
104
|
+
.dash-slider-mark.with-dots:before {
|
|
105
|
+
content: initial;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.dash-slider-root[data-orientation='vertical'] .dash-slider-mark:before {
|
|
109
|
+
content: initial;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.dash-slider-dot {
|
|
113
|
+
pointer-events: none;
|
|
114
|
+
position: absolute;
|
|
115
|
+
width: 8px;
|
|
116
|
+
height: 8px;
|
|
117
|
+
border-radius: 50%;
|
|
118
|
+
background-color: var(--Dash-Fill-Disabled);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.dash-slider-tooltip {
|
|
122
|
+
display: none;
|
|
123
|
+
position: absolute;
|
|
124
|
+
border-radius: var(--Dash-Spacing);
|
|
125
|
+
padding: calc(var(--Dash-Spacing) * 3);
|
|
126
|
+
font-size: 12px;
|
|
127
|
+
line-height: 1;
|
|
128
|
+
box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
|
|
129
|
+
background-color: var(--Dash-Fill-Inverse-Strong);
|
|
130
|
+
user-select: none;
|
|
131
|
+
z-index: 1000;
|
|
132
|
+
fill: var(--Dash-Fill-Inverse-Strong);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.dash-slider-tooltip.always-visible {
|
|
136
|
+
display: block;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* Include property to mimic rc-slider behavior */
|
|
140
|
+
.dash-slider-root:not([data-included='false']) .dash-slider-range {
|
|
141
|
+
background-color: var(--Dash-Fill-Interactive-Strong);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.dash-slider-root[data-included='false'] .dash-slider-range {
|
|
145
|
+
background-color: transparent;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* Disabled state */
|
|
149
|
+
.dash-slider-root[data-disabled] {
|
|
150
|
+
opacity: 0.5;
|
|
151
|
+
cursor: not-allowed;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.dash-slider-root[data-disabled] .dash-slider-track {
|
|
155
|
+
background-color: var(--Dash-Fill-Disabled);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.dash-slider-root[data-disabled] .dash-slider-range {
|
|
159
|
+
background-color: var(--Dash-Fill-Disabled);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.dash-slider-root[data-disabled] .dash-slider-thumb {
|
|
163
|
+
cursor: not-allowed;
|
|
164
|
+
border-color: var(--Dash-Fill-Disabled);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.dash-slider-container {
|
|
168
|
+
display: flex;
|
|
169
|
+
align-items: center;
|
|
170
|
+
gap: 12px;
|
|
171
|
+
width: 100%;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.dash-slider-wrapper {
|
|
175
|
+
flex: 1;
|
|
176
|
+
min-width: 0;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.dash-range-slider-inputs {
|
|
180
|
+
display: flex;
|
|
181
|
+
flex-direction: column;
|
|
182
|
+
gap: 4px;
|
|
183
|
+
min-width: 64px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.dash-range-slider-min-input {
|
|
187
|
+
min-width: 64px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.dash-range-slider-max-input {
|
|
191
|
+
order: 1;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.dash-range-slider-input {
|
|
195
|
+
width: 64px;
|
|
196
|
+
margin-top: 8px;
|
|
197
|
+
-webkit-appearance: textfield;
|
|
198
|
+
-moz-appearance: textfield;
|
|
199
|
+
appearance: textfield;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* Hide the number input spinners */
|
|
203
|
+
.dash-range-slider-input::-webkit-inner-spin-button,
|
|
204
|
+
.dash-range-slider-input::-webkit-outer-spin-button {
|
|
205
|
+
-webkit-appearance: none;
|
|
206
|
+
margin: 0;
|
|
5
207
|
}
|