dash-core-components 4.0.0-rc4 → 4.0.0-rc6

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.
Files changed (31) hide show
  1. package/dash_core_components/async-datepicker.js +1 -1
  2. package/dash_core_components/async-datepicker.js.map +1 -1
  3. package/dash_core_components/async-dropdown.js +1 -1
  4. package/dash_core_components/async-dropdown.js.map +1 -1
  5. package/dash_core_components/async-slider.js +1 -1
  6. package/dash_core_components/async-slider.js.map +1 -1
  7. package/dash_core_components/async-upload.js +2 -1
  8. package/dash_core_components/async-upload.js.map +1 -1
  9. package/dash_core_components/dash_core_components.js +1 -1
  10. package/dash_core_components/dash_core_components.js.map +1 -1
  11. package/lib/components/Input.tsx +13 -3
  12. package/lib/components/Tabs.tsx +1 -1
  13. package/lib/components/Tooltip.tsx +1 -0
  14. package/lib/components/Upload.react.js +13 -1
  15. package/lib/components/css/button.css +5 -10
  16. package/lib/components/css/calendar.css +25 -7
  17. package/lib/components/css/datepickers.css +98 -39
  18. package/lib/components/css/dcc.css +2 -2
  19. package/lib/components/css/dropdown.css +25 -11
  20. package/lib/components/css/input.css +8 -2
  21. package/lib/components/css/optionslist.css +2 -1
  22. package/lib/components/css/sliders.css +15 -6
  23. package/lib/components/css/textarea.css +10 -0
  24. package/lib/components/css/tooltip.css +1 -1
  25. package/lib/fragments/DatePickerRange.tsx +57 -50
  26. package/lib/fragments/DatePickerSingle.tsx +33 -10
  27. package/lib/fragments/Dropdown.tsx +19 -5
  28. package/lib/fragments/RangeSlider.tsx +1 -2
  29. package/lib/fragments/Upload.react.js +243 -1
  30. package/lib/utils/calendar/Calendar.tsx +62 -32
  31. package/package.json +1 -1
@@ -176,6 +176,11 @@ function Input({
176
176
  (direction: 'increment' | 'decrement') => {
177
177
  const currentValue = parseFloat(input.current.value) || 0;
178
178
  const stepAsNum = parseFloat(step as string) || 1;
179
+
180
+ // Count decimal places to avoid floating point precision issues
181
+ const decimalPlaces = (stepAsNum.toString().split('.')[1] || '')
182
+ .length;
183
+
179
184
  const newValue =
180
185
  direction === 'increment'
181
186
  ? currentValue + stepAsNum
@@ -196,8 +201,13 @@ function Input({
196
201
  );
197
202
  }
198
203
 
199
- input.current.value = constrainedValue.toString();
200
- setValue(constrainedValue.toString());
204
+ // Round to the step's decimal precision
205
+ const roundedValue = parseFloat(
206
+ constrainedValue.toFixed(decimalPlaces)
207
+ );
208
+
209
+ input.current.value = roundedValue.toString();
210
+ setValue(roundedValue.toString());
201
211
  onEvent();
202
212
  },
203
213
  [step, props.min, props.max, onEvent]
@@ -253,7 +263,7 @@ function Input({
253
263
  }) as Pick<InputHTMLAttributes<HTMLInputElement>, HTMLInputProps>;
254
264
 
255
265
  const isNumberInput = type === HTMLInputTypes.number;
256
- const currentNumericValue = convert(input.current.value || '0');
266
+ const currentNumericValue = parseFloat(String(value ?? 0)) || 0;
257
267
  const minValue = convert(props.min);
258
268
  const maxValue = convert(props.max);
259
269
  const isDecrementDisabled =
@@ -102,7 +102,7 @@ function Tabs({
102
102
  colors = {
103
103
  border: 'var(--Dash-Stroke-Weak)',
104
104
  primary: 'var(--Dash-Fill-Interactive-Strong)',
105
- background: 'var(--Dash-Fill-Weak)',
105
+ background: 'var(--Dash-Fill-Interactive-Weak)',
106
106
  },
107
107
  vertical = false,
108
108
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -31,6 +31,7 @@ const Tooltip = ({
31
31
  height: `${position?.y1 - position?.y0}px`,
32
32
  display: `${show_tooltip ? 'inline-block' : 'none'}`,
33
33
  pointerEvents: `${targetable ? 'auto' : 'none'}`,
34
+ '--Dash-Tooltip-PointerEvents': targetable ? 'auto' : 'none',
34
35
  '--Dash-Tooltip-Border-Color': border_color,
35
36
  '--Dash-Tooltip-Background-Color': background_color,
36
37
  '--Dash-Tooltip-ZIndex': zindex,
@@ -99,9 +99,20 @@ Upload.propTypes = {
99
99
  */
100
100
  min_size: _propTypes.default.number,
101
101
  /**
102
- * Allow dropping multiple files
102
+ * Allow dropping multiple files.
103
+ * When true, enables folder drag-and-drop support.
104
+ * The folder hierarchy is preserved in filenames (e.g., 'folder/subfolder/file.txt').
105
+ * Note: Folder drag-and-drop is supported in Chrome, Edge, and Opera.
103
106
  */
104
107
  multiple: _propTypes.default.bool,
108
+ /**
109
+ * Enable folder selection in the file picker dialog.
110
+ * When true with multiple=True, the file picker allows selecting folders instead of files.
111
+ * Note: When folder selection is enabled, individual files cannot be selected via the button.
112
+ * Use separate Upload components if you need both file and folder selection options.
113
+ * Folder selection is supported in Chrome, Edge, and Opera.
114
+ */
115
+ enable_folder_selection: _propTypes.default.bool,
105
116
  /**
106
117
  * HTML class name of the component
107
118
  */
@@ -145,6 +156,7 @@ Upload.defaultProps = {
145
156
  max_size: -1,
146
157
  min_size: 0,
147
158
  multiple: false,
159
+ enable_folder_selection: false,
148
160
  style: {},
149
161
  style_active: {
150
162
  borderStyle: 'solid',
@@ -1,16 +1,14 @@
1
1
  .dash-button {
2
2
  line-height: 32px;
3
- background: color-mix(
4
- in srgb,
5
- var(--Dash-Fill-Interactive-Strong) 5%,
6
- transparent
7
- );
3
+ background: var(--Dash-Fill-Interactive-Weak);
8
4
  color: var(--Dash-Fill-Interactive-Strong);
9
5
  padding: 0 calc(var(--Dash-Spacing) * 2);
10
6
  border-radius: 4px;
11
7
  border: 1px solid var(--Dash-Fill-Interactive-Strong);
12
8
  box-sizing: border-box;
13
9
  vertical-align: middle;
10
+ font-family: inherit;
11
+ font-size: inherit;
14
12
  }
15
13
 
16
14
  /* Hover state - stronger background */
@@ -28,15 +26,12 @@
28
26
 
29
27
  /* Keyboard focus - inverted colors */
30
28
  .dash-button:focus-visible {
31
- outline: none;
32
- background: var(--Dash-Fill-Interactive-Strong);
33
- color: var(--Dash-Fill-Inverse-Strong);
29
+ outline: 1px solid var(--Dash-Fill-Interactive-Strong);
34
30
  }
35
31
 
36
32
  /* Hover after keyboard focus - keep inverted but acknowledge hover */
37
33
  .dash-button:focus-visible:hover {
38
- background: var(--Dash-Fill-Interactive-Strong);
39
- color: var(--Dash-Fill-Inverse-Strong);
34
+ outline: 1px solid var(--Dash-Fill-Interactive-Strong);
40
35
  }
41
36
 
42
37
  /* Active state after keyboard focus - inverted colors */
@@ -16,7 +16,6 @@
16
16
  font-weight: normal;
17
17
  color: var(--Dash-Text-Weak);
18
18
  text-align: center;
19
- border-radius: 4px;
20
19
  cursor: default;
21
20
  user-select: none;
22
21
  -webkit-user-select: none;
@@ -31,22 +30,19 @@
31
30
 
32
31
  .dash-datepicker-calendar td:hover {
33
32
  cursor: pointer;
34
- background-color: var(--Dash-Fill-Weak);
33
+ background-color: var(--Dash-Fill-Interactive-Weak);
35
34
  }
36
35
 
37
36
  .dash-datepicker-calendar td:focus {
38
37
  outline: 2px solid var(--Dash-Fill-Interactive-Strong);
39
38
  outline-offset: -2px;
39
+ border-radius: 4px;
40
40
  z-index: 1;
41
41
  position: relative;
42
42
  }
43
43
 
44
44
  .dash-datepicker-calendar td.dash-datepicker-calendar-date-highlighted {
45
- background-color: color-mix(
46
- in srgb,
47
- var(--Dash-Fill-Interactive-Strong) 5%,
48
- transparent 95%
49
- );
45
+ background-color: var(--Dash-Fill-Interactive-Weak);
50
46
  color: var(--Dash-Fill-Interactive-Strong);
51
47
  }
52
48
 
@@ -55,6 +51,28 @@
55
51
  color: var(--Dash-Fill-Inverse-Strong);
56
52
  }
57
53
 
54
+ .dash-datepicker-calendar td.dash-datepicker-calendar-date-selected {
55
+ background-color: var(--Dash-Fill-Interactive-Strong);
56
+ color: var(--Dash-Fill-Inverse-Strong);
57
+ }
58
+
59
+ /* start_date selector: a selected date which is preceded by an unselected date */
60
+ .dash-datepicker-calendar
61
+ td:not(.dash-datepicker-calendar-date-highlighted)
62
+ + td.dash-datepicker-calendar-date-selected {
63
+ border-start-start-radius: 4px;
64
+ border-end-start-radius: 4px;
65
+ }
66
+
67
+ /* end_date selector: a selected date which is followed by an unselected date */
68
+ .dash-datepicker-calendar
69
+ td.dash-datepicker-calendar-date-selected:not(
70
+ :has(+ td.dash-datepicker-calendar-date-highlighted)
71
+ ) {
72
+ border-start-end-radius: 4px;
73
+ border-end-end-radius: 4px;
74
+ }
75
+
58
76
  .dash-datepicker-calendar td.dash-datepicker-calendar-date-disabled {
59
77
  opacity: 0.6;
60
78
  cursor: not-allowed;
@@ -56,6 +56,8 @@
56
56
  padding: 0;
57
57
  background-color: inherit;
58
58
  color: inherit;
59
+ font-family: inherit;
60
+ font-size: inherit;
59
61
  }
60
62
 
61
63
  .dash-datepicker-input::selection,
@@ -68,6 +70,10 @@
68
70
  border: 1px solid var(--Dash-Fill-Interactive-Strong);
69
71
  }
70
72
 
73
+ .dash-datepicker-input-wrapper:has(:focus-visible) {
74
+ outline: 1px solid var(--Dash-Fill-Interactive-Strong);
75
+ }
76
+
71
77
  .dash-datepicker-input-wrapper-disabled {
72
78
  opacity: 0.6;
73
79
  cursor: not-allowed;
@@ -85,33 +91,6 @@
85
91
  color: var(--Dash-Text-Disabled);
86
92
  }
87
93
 
88
- .dash-datepicker-trigger-button {
89
- padding: var(--Dash-Spacing);
90
- background: transparent;
91
- border: none;
92
- border-radius: 4px;
93
- color: var(--Dash-Text-Strong);
94
- cursor: pointer;
95
- }
96
-
97
- .dash-datepicker-trigger-button:hover {
98
- background: var(--Dash-Fill-Weak);
99
- }
100
-
101
- .dash-datepicker-trigger-button:focus-visible {
102
- outline: 2px solid var(--Dash-Fill-Interactive-Strong);
103
- outline-offset: 2px;
104
- }
105
-
106
- .dash-datepicker-trigger-button[aria-expanded='true'] {
107
- background: var(--Dash-Fill-Weak);
108
- }
109
-
110
- .dash-datepicker-trigger-icon {
111
- width: 16px;
112
- height: 16px;
113
- }
114
-
115
94
  .dash-datepicker-caret-icon {
116
95
  color: var(--Dash-Text-Strong);
117
96
  fill: var(--Dash-Text-Strong);
@@ -120,6 +99,12 @@
120
99
  transition: transform 0.15s;
121
100
  }
122
101
 
102
+ .dash-datepicker-range-arrow {
103
+ color: var(--Dash-Text-Strong);
104
+ width: 1em;
105
+ height: 1em;
106
+ }
107
+
123
108
  .dash-datepicker-input-wrapper[aria-expanded='true']
124
109
  .dash-datepicker-caret-icon {
125
110
  transform: rotate(180deg);
@@ -158,6 +143,75 @@
158
143
  z-index: 500;
159
144
  box-shadow: 0px 10px 38px -10px var(--Dash-Shading-Strong),
160
145
  0px 10px 20px -15px var(--Dash-Shading-Weak);
146
+ overscroll-behavior: contain;
147
+ }
148
+
149
+ .dash-datepicker
150
+ [data-radix-popper-content-wrapper]:has(.dash-datepicker-portal) {
151
+ transform: none !important;
152
+ }
153
+
154
+ .dash-datepicker-portal {
155
+ position: fixed;
156
+ inset: 0;
157
+ width: 100vw;
158
+ height: 100vh;
159
+ max-width: 100vw;
160
+ display: flex;
161
+ align-items: center;
162
+ justify-content: center;
163
+ background: var(--Dash-Shading-Strong);
164
+ border: none;
165
+ box-shadow: none;
166
+ overflow: visible;
167
+ padding: 0;
168
+ pointer-events: none;
169
+ }
170
+
171
+ .dash-datepicker-portal .dash-datepicker-calendar-wrapper {
172
+ background: var(--Dash-Fill-Inverse-Strong);
173
+ border-radius: var(--Dash-Spacing);
174
+ border: 1px solid var(--Dash-Stroke-Strong);
175
+ padding: 16px;
176
+ box-shadow: 0px 10px 38px -10px var(--Dash-Shading-Strong),
177
+ 0px 10px 20px -15px var(--Dash-Shading-Weak);
178
+ z-index: 1;
179
+ pointer-events: auto;
180
+ width: fit-content;
181
+ max-width: 95vw;
182
+ }
183
+
184
+ .dash-datepicker-fullscreen {
185
+ pointer-events: auto;
186
+ background: var(--Dash-Fill-Inverse-Strong);
187
+ }
188
+
189
+ .dash-datepicker-close-button {
190
+ position: fixed;
191
+ top: calc(var(--Dash-Spacing) * 2);
192
+ right: calc(var(--Dash-Spacing) * 2);
193
+ width: 24px;
194
+ height: 24px;
195
+ display: flex;
196
+ align-items: center;
197
+ justify-content: center;
198
+ background: var(--Dash-Fill-Inverse-Strong);
199
+ border: none;
200
+ border-radius: var(--Dash-Spacing);
201
+ color: var(--Dash-Text-Strong);
202
+ cursor: pointer;
203
+ z-index: 501;
204
+ pointer-events: auto;
205
+ }
206
+
207
+ .dash-datepicker-close-button:hover {
208
+ background: var(--Dash-Fill-Interactive-Weak);
209
+ color: var(--Dash-Fill-Interactive-Strong);
210
+ }
211
+
212
+ .dash-datepicker-close-button:focus {
213
+ outline: 2px solid var(--Dash-Fill-Interactive-Strong);
214
+ outline-offset: 2px;
161
215
  }
162
216
 
163
217
  .dash-datepicker-calendar-wrapper {
@@ -170,28 +224,39 @@
170
224
  display: flex;
171
225
  align-items: flex-start;
172
226
  gap: calc(var(--Dash-Spacing) * 4);
227
+ flex-wrap: wrap;
173
228
  }
174
229
 
175
230
  .dash-datepicker-controls {
176
231
  display: flex;
177
232
  align-items: center;
178
233
  justify-content: center;
179
- gap: var(--Dash-Spacing);
234
+ gap: calc(var(--Dash-Spacing) * 2);
180
235
  margin-bottom: calc(var(--Dash-Spacing) * 2);
181
- font-size: 14px;
236
+ font-size: inherit;
182
237
  }
183
238
 
184
239
  .dash-datepicker-controls .dash-dropdown {
185
240
  flex: 0 0 auto;
186
- min-width: 122px;
187
- width: auto;
188
241
  margin: 0;
189
242
  }
190
243
 
244
+ .dash-datepicker-month-sizer {
245
+ height: 0;
246
+ grid-area: 1 / 1;
247
+ visibility: hidden;
248
+ pointer-events: none;
249
+ white-space: nowrap;
250
+ padding: 0 24px;
251
+ font-family: inherit;
252
+ font-size: inherit;
253
+ }
254
+
191
255
  .dash-datepicker-controls .dash-input {
192
256
  flex-shrink: 0;
193
257
  flex-grow: 0;
194
- width: 102px;
258
+ min-width: 102px;
259
+ width: calc(5ch + 40px);
195
260
  }
196
261
 
197
262
  .dash-datepicker-controls .dash-input-stepper {
@@ -215,12 +280,11 @@
215
280
  }
216
281
 
217
282
  .dash-datepicker-month-nav:hover:not(:disabled) {
218
- background: var(--Dash-Fill-Weak);
283
+ background: var(--Dash-Fill-Interactive-Weak);
219
284
  }
220
285
 
221
286
  .dash-datepicker-month-nav:focus-visible {
222
287
  outline: 2px solid var(--Dash-Fill-Interactive-Strong);
223
- outline-offset: 2px;
224
288
  }
225
289
 
226
290
  .dash-datepicker-month-nav:disabled {
@@ -232,8 +296,3 @@
232
296
  width: 20px;
233
297
  height: 20px;
234
298
  }
235
-
236
- /* Override Radix's position: fixed to use position: absolute when using custom container */
237
- div[data-radix-popper-content-wrapper]:has(.dash-datepicker-content) {
238
- position: absolute !important;
239
- }
@@ -3,12 +3,12 @@
3
3
  --Dash-Stroke-Strong: rgba(0, 18, 77, 0.45);
4
4
  --Dash-Stroke-Weak: rgba(0, 24, 102, 0.1);
5
5
  --Dash-Fill-Interactive-Strong: #7f4bc4;
6
- --Dash-Fill-Weak: rgba(0, 30, 128, 0.04);
6
+ --Dash-Fill-Interactive-Weak: rgba(0, 30, 128, 0.04);
7
7
  --Dash-Fill-Inverse-Strong: #fff;
8
8
  --Dash-Text-Primary: rgba(0, 18, 77, 0.87);
9
9
  --Dash-Text-Strong: rgba(0, 9, 38, 0.9);
10
10
  --Dash-Text-Weak: rgba(0, 12, 51, 0.65);
11
- --Dash-Text-Disabled: rgba(0, 21, 89, 0.3);
11
+ --Dash-Text-Disabled: rgba(0, 21, 89, 0.6);
12
12
  --Dash-Fill-Primary-Hover: rgba(0, 18, 77, 0.04);
13
13
  --Dash-Fill-Primary-Active: rgba(0, 18, 77, 0.08);
14
14
  --Dash-Fill-Disabled: rgba(0, 24, 102, 0.1);
@@ -8,6 +8,7 @@
8
8
  outline: none;
9
9
  width: 100%;
10
10
  cursor: pointer;
11
+ font-family: inherit;
11
12
  font-size: inherit;
12
13
  overflow: hidden;
13
14
  accent-color: var(--Dash-Fill-Interactive-Strong);
@@ -46,6 +47,7 @@
46
47
 
47
48
  .dash-dropdown:focus {
48
49
  border: 1px solid var(--Dash-Fill-Interactive-Strong);
50
+ outline: 1px solid var(--Dash-Fill-Interactive-Strong);
49
51
  }
50
52
 
51
53
  .dash-dropdown:disabled {
@@ -82,6 +84,7 @@
82
84
  z-index: 500;
83
85
  box-shadow: 0px 10px 38px -10px var(--Dash-Shading-Strong),
84
86
  0px 10px 20px -15px var(--Dash-Shading-Weak);
87
+ overscroll-behavior: contain;
85
88
  }
86
89
 
87
90
  .dash-dropdown-value-count,
@@ -102,8 +105,11 @@
102
105
 
103
106
  .dash-dropdown-value-count {
104
107
  line-height: 18px;
105
- padding: 0 2px;
106
- background: var(--Dash-Fill-Weak);
108
+ padding: 4px;
109
+ border-radius: 4px;
110
+ color: var(--Dash-Text-Weak);
111
+ background: var(--Dash-Fill-Interactive-Weak);
112
+ font-size: 0.875em;
107
113
  }
108
114
 
109
115
  .dash-dropdown-search-container {
@@ -118,12 +124,13 @@
118
124
 
119
125
  .dash-dropdown-search-container:focus-within {
120
126
  border-color: var(--Dash-Fill-Interactive-Strong);
127
+ outline: 1px solid var(--Dash-Fill-Interactive-Strong);
121
128
  }
122
129
 
123
130
  .dash-dropdown-search-icon,
124
131
  .dash-dropdown-clear {
125
- width: calc(var(--Dash-Spacing) * 3);
126
- height: calc(var(--Dash-Spacing) * 3);
132
+ width: 1em;
133
+ height: 1em;
127
134
  }
128
135
 
129
136
  .dash-dropdown-search-container:focus-within .dash-dropdown-search-icon {
@@ -160,6 +167,8 @@
160
167
  color: var(--Dash-Text-Strong);
161
168
  outline: none;
162
169
  padding: 0;
170
+ font-family: inherit;
171
+ font-size: inherit;
163
172
 
164
173
  /* Hide the "x" clear button in search inputs */
165
174
  &::-webkit-search-cancel-button {
@@ -186,11 +195,12 @@
186
195
  background: none;
187
196
  border: none;
188
197
  cursor: pointer;
189
- font-size: 14px;
198
+ font-family: inherit;
199
+ font-size: 0.875em;
190
200
  font-weight: 600;
191
201
  padding: 0;
192
202
  text-decoration: none;
193
- color: var(--Dash-Text-Disabled);
203
+ color: var(--Dash-Text-Weak);
194
204
  white-space: nowrap;
195
205
  accent-color: var(--Dash-Fill-Interactive-Strong);
196
206
  outline-color: var(--Dash-Fill-Interactive-Strong);
@@ -213,12 +223,16 @@
213
223
  box-shadow: 0 -1px 0 0 var(--Dash-Fill-Disabled) inset;
214
224
  }
215
225
 
226
+ .dash-dropdown-option
227
+ .dash-options-list-option-wrapper:has(input[type='radio']) {
228
+ /* radio buttons are used in single-select dropdowns to aid keyboard
229
+ * selection and screen readers, but visually, they are hidden
230
+ */
231
+ width: 0;
232
+ overflow: hidden;
233
+ }
234
+
216
235
  /* Positioning container for the dropdown */
217
236
  .dash-dropdown-wrapper {
218
237
  position: relative;
219
238
  }
220
-
221
- /* Override Radix's position: fixed to use position: absolute when using custom container */
222
- div[data-radix-popper-content-wrapper]:has(.dash-dropdown-content) {
223
- position: absolute !important;
224
- }
@@ -19,6 +19,10 @@
19
19
  border: 1px solid var(--Dash-Fill-Interactive-Strong);
20
20
  }
21
21
 
22
+ .dash-input-container:has(:focus-visible) {
23
+ outline: 1px solid var(--Dash-Fill-Interactive-Strong);
24
+ }
25
+
22
26
  .dash-input-container:has(.dash-input-element:disabled) {
23
27
  opacity: 0.6;
24
28
  cursor: not-allowed;
@@ -46,6 +50,8 @@
46
50
  z-index: 1;
47
51
  order: 2;
48
52
  accent-color: var(--Dash-Fill-Interactive-Strong);
53
+ font-family: inherit;
54
+ font-size: inherit;
49
55
  }
50
56
 
51
57
  .dash-input-element::selection,
@@ -95,7 +101,7 @@
95
101
  cursor: pointer;
96
102
  font-size: 16px;
97
103
  font-weight: bold;
98
- color: var(--Dash -Text-Primary);
104
+ color: var(--Dash-Text-Primary);
99
105
  }
100
106
 
101
107
  .dash-input-stepper:hover,
@@ -139,5 +145,5 @@
139
145
  }
140
146
 
141
147
  input.dash-input-element:invalid {
142
- outline: solid red;
148
+ color: red;
143
149
  }
@@ -4,7 +4,7 @@
4
4
  color: var(--Dash-Text-Strong);
5
5
  cursor: pointer;
6
6
  display: flex;
7
- align-items: center;
7
+ align-items: baseline;
8
8
  user-select: none;
9
9
  }
10
10
 
@@ -19,6 +19,7 @@
19
19
  cursor: not-allowed;
20
20
  }
21
21
 
22
+ .dash-options-list-option-wrapper,
22
23
  .dash-options-list-option-text {
23
24
  display: flex;
24
25
  align-items: center;
@@ -7,14 +7,14 @@
7
7
  touch-action: none;
8
8
  width: 100%;
9
9
  height: 14px;
10
- padding: 18px 0 18px 0;
10
+ padding: 17px 0 17px 0;
11
11
  box-sizing: border-box;
12
12
  /* Override Radix's default margin/padding behavior */
13
13
  --radix-slider-thumb-width: 16px;
14
14
  }
15
15
 
16
16
  .dash-slider-root.has-marks {
17
- padding: 8px 0 28px 0;
17
+ padding: 6px 0 28px 0;
18
18
  }
19
19
 
20
20
  .dash-slider-root[data-orientation='vertical'].has-marks {
@@ -75,7 +75,7 @@
75
75
  }
76
76
 
77
77
  .dash-slider-thumb:focus {
78
- outline: 1px solid var(--Dash-Fill-Interactive-Strong);
78
+ outline: 2px solid var(--Dash-Fill-Interactive-Strong);
79
79
  }
80
80
 
81
81
  .dash-slider-thumb:focus .dash-slider-tooltip,
@@ -83,7 +83,8 @@
83
83
  display: block;
84
84
  }
85
85
 
86
- .dash-slider-thumb[data-disabled] {
86
+ .dash-slider-thumb[data-disabled],
87
+ .dash-range-slider-input:disabled {
87
88
  cursor: not-allowed;
88
89
  opacity: 0.5;
89
90
  }
@@ -210,11 +211,19 @@
210
211
 
211
212
  .dash-range-slider-input {
212
213
  min-width: 5cqw; /* 5% of container width */
213
- max-width: 15cqw; /* 15% of container width */
214
+ max-width: 25cqw; /* 25% of container width */
214
215
  text-align: center;
215
216
  -webkit-appearance: textfield;
216
217
  -moz-appearance: textfield;
217
218
  appearance: textfield;
219
+ font-family: inherit;
220
+ font-size: inherit;
221
+ box-sizing: content-box;
222
+ height: 30px;
223
+ }
224
+
225
+ .dash-range-slider-input:only-of-type {
226
+ max-width: 33cqw;
218
227
  }
219
228
 
220
229
  .dash-range-slider-input::selection,
@@ -224,7 +233,7 @@
224
233
  }
225
234
 
226
235
  .dash-range-slider-input:focus {
227
- outline: none;
236
+ outline: 1px solid var(--Dash-Fill-Interactive-Strong);
228
237
  }
229
238
 
230
239
  /* Hide the number input spinners */
@@ -9,6 +9,16 @@
9
9
  width: 100%;
10
10
  accent-color: var(--Dash-Fill-Interactive-Strong);
11
11
  outline-color: var(--Dash-Fill-Interactive-Strong);
12
+ font-family: inherit;
13
+ font-size: inherit;
14
+ }
15
+
16
+ .dash-textarea:focus-within {
17
+ border: 1px solid var(--Dash-Fill-Interactive-Strong);
18
+ }
19
+
20
+ .dash-textarea:focus-visible {
21
+ outline: 1px solid var(--Dash-Fill-Interactive-Strong);
12
22
  }
13
23
 
14
24
  .dash-textarea:disabled {
@@ -32,7 +32,7 @@
32
32
  background: var(--Dash-Tooltip-Background-Color);
33
33
  white-space: nowrap;
34
34
  z-index: var(--Dash-Tooltip-ZIndex);
35
- pointer-events: none;
35
+ pointer-events: var(--Dash-Tooltip-PointerEvents);
36
36
  box-shadow: 0px 10px 38px -10px var(--Dash-Shading-Strong),
37
37
  0px 10px 20px -15px var(--Dash-Shading-Weak);
38
38
  }