dash-core-components 4.0.0-rc2 → 4.0.0-rc4
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 -2
- package/dash_core_components/async-dropdown.js.map +1 -1
- package/dash_core_components/async-graph.js +1 -1
- package/dash_core_components/async-graph.js.map +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-mathjax.js +1 -1
- package/dash_core_components/async-slider.js +1 -1
- package/dash_core_components/async-slider.js.map +1 -1
- package/dash_core_components/async-upload.js +1 -1
- package/dash_core_components/async-upload.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/proptypes.js +153 -14
- package/lib/components/Button.tsx +48 -0
- package/lib/components/Clipboard.react.js +1 -1
- package/lib/components/DatePickerRange.tsx +70 -0
- package/lib/components/DatePickerSingle.tsx +72 -0
- package/lib/components/Input.tsx +12 -233
- package/lib/components/RadioItems.tsx +3 -1
- package/lib/components/Tab.tsx +19 -0
- package/lib/components/Tabs.tsx +311 -0
- package/lib/components/css/button.css +55 -0
- package/lib/components/css/calendar.css +66 -0
- package/lib/components/css/datepickers.css +239 -0
- package/lib/components/css/dcc.css +1 -0
- package/lib/components/css/dropdown.css +19 -6
- package/lib/components/css/input.css +9 -3
- package/lib/components/css/sliders.css +41 -1
- package/lib/components/css/tabs.css +113 -0
- package/lib/fragments/DatePickerRange.tsx +448 -0
- package/lib/fragments/DatePickerSingle.tsx +248 -0
- package/lib/fragments/Dropdown.tsx +44 -19
- package/lib/fragments/Graph.react.js +18 -45
- package/lib/fragments/RangeSlider.tsx +24 -66
- package/lib/index.ts +6 -6
- package/lib/types.ts +660 -28
- package/lib/utils/DatePickerPersistence.ts +14 -0
- package/lib/utils/LazyLoader/datePickerRange.ts +4 -0
- package/lib/utils/LazyLoader/datePickerSingle.ts +4 -0
- package/lib/utils/calendar/Calendar.tsx +382 -0
- package/lib/utils/calendar/CalendarDay.tsx +75 -0
- package/lib/utils/calendar/CalendarDayPadding.tsx +15 -0
- package/lib/utils/calendar/CalendarMonth.tsx +247 -0
- package/lib/utils/calendar/CalendarMonthHeader.tsx +23 -0
- package/lib/utils/calendar/createMonthGrid.ts +28 -0
- package/lib/utils/calendar/helpers.ts +272 -0
- package/lib/utils/computeSliderMarkers.ts +71 -116
- package/lib/utils/optionRendering.tsx +22 -15
- package/lib/utils/sliderRendering.tsx +40 -2
- package/package.json +16 -13
- package/lib/components/DatePickerRange.react.js +0 -244
- package/lib/components/DatePickerSingle.react.js +0 -209
- package/lib/components/Dropdown.react.js.old +0 -228
- package/lib/components/Tab.react.js +0 -80
- package/lib/components/Tab.react.js.old +0 -79
- package/lib/components/Tabs.react.js +0 -295
- package/lib/components/Textarea.react.js.old +0 -287
- package/lib/fragments/DatePickerRange.react.js +0 -188
- package/lib/fragments/DatePickerSingle.react.js +0 -132
- package/lib/utils/DatePickerPersistence.js +0 -18
- package/lib/utils/LazyLoader/datePickerRange.js +0 -8
- package/lib/utils/LazyLoader/datePickerSingle.js +0 -8
- package/lib/utils/convertToMoment.js +0 -30
- package/lib/utils/optionTypes.js +0 -39
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
.dash-datepicker-calendar {
|
|
2
|
+
padding: 0;
|
|
3
|
+
border-collapse: collapse;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.dash-datepicker-calendar th > *,
|
|
7
|
+
.dash-datepicker-calendar td > * {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.dash-datepicker-calendar th,
|
|
14
|
+
.dash-datepicker-calendar td {
|
|
15
|
+
padding: 0;
|
|
16
|
+
font-weight: normal;
|
|
17
|
+
color: var(--Dash-Text-Weak);
|
|
18
|
+
text-align: center;
|
|
19
|
+
border-radius: 4px;
|
|
20
|
+
cursor: default;
|
|
21
|
+
user-select: none;
|
|
22
|
+
-webkit-user-select: none;
|
|
23
|
+
-moz-user-select: none;
|
|
24
|
+
width: var(--day-size, 36px);
|
|
25
|
+
height: var(--day-size, 36px);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.dash-datepicker-calendar td.dash-datepicker-calendar-date-inside {
|
|
29
|
+
color: var(--Dash-Text-Strong);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.dash-datepicker-calendar td:hover {
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
background-color: var(--Dash-Fill-Weak);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.dash-datepicker-calendar td:focus {
|
|
38
|
+
outline: 2px solid var(--Dash-Fill-Interactive-Strong);
|
|
39
|
+
outline-offset: -2px;
|
|
40
|
+
z-index: 1;
|
|
41
|
+
position: relative;
|
|
42
|
+
}
|
|
43
|
+
|
|
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
|
+
);
|
|
50
|
+
color: var(--Dash-Fill-Interactive-Strong);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.dash-datepicker-calendar td.dash-datepicker-calendar-date-selected {
|
|
54
|
+
background-color: var(--Dash-Fill-Interactive-Strong);
|
|
55
|
+
color: var(--Dash-Fill-Inverse-Strong);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.dash-datepicker-calendar td.dash-datepicker-calendar-date-disabled {
|
|
59
|
+
opacity: 0.6;
|
|
60
|
+
cursor: not-allowed;
|
|
61
|
+
pointer-events: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.dash-datepicker-calendar td input {
|
|
65
|
+
display: none;
|
|
66
|
+
}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
.dash-datepicker {
|
|
2
|
+
display: block;
|
|
3
|
+
flex: 1;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
background: var(--Dash-Fill-Inverse-Strong);
|
|
6
|
+
padding: 0;
|
|
7
|
+
border: none;
|
|
8
|
+
outline: none;
|
|
9
|
+
width: 100%;
|
|
10
|
+
font-size: inherit;
|
|
11
|
+
position: relative;
|
|
12
|
+
accent-color: var(--Dash-Fill-Interactive-Strong);
|
|
13
|
+
outline-color: var(--Dash-Fill-Interactive-Strong);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.dash-datepicker-input-wrapper {
|
|
17
|
+
display: grid;
|
|
18
|
+
grid-template-columns: auto 1fr;
|
|
19
|
+
justify-items: start;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: calc(var(--Dash-Spacing) * 2);
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
padding: 0 12px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.dash-datepicker-input-wrapper:has(> :nth-child(2)) {
|
|
27
|
+
grid-template-columns: 1fr auto;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dash-datepicker-input-wrapper:has(> :nth-child(3)) {
|
|
31
|
+
grid-template-columns: 1fr auto auto;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.dash-datepicker-input-wrapper:has(> :nth-child(4)) {
|
|
35
|
+
grid-template-columns: auto auto 1fr auto;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.dash-datepicker-input-wrapper:has(> :nth-child(5)) {
|
|
39
|
+
grid-template-columns: auto auto 1fr auto auto;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.dash-datepicker-input-wrapper,
|
|
43
|
+
.dash-datepicker-content {
|
|
44
|
+
border-radius: var(--Dash-Spacing);
|
|
45
|
+
border: 1px solid var(--Dash-Stroke-Strong);
|
|
46
|
+
color: inherit;
|
|
47
|
+
text-align: left;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.dash-datepicker-input {
|
|
51
|
+
height: 32px;
|
|
52
|
+
width: fit-content;
|
|
53
|
+
border: none;
|
|
54
|
+
outline: none;
|
|
55
|
+
border-radius: 4px;
|
|
56
|
+
padding: 0;
|
|
57
|
+
background-color: inherit;
|
|
58
|
+
color: inherit;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.dash-datepicker-input::selection,
|
|
62
|
+
.dash-datepicker-input::-webkit-selection {
|
|
63
|
+
color: var(--Dash-Fill-Inverse-Strong);
|
|
64
|
+
background: var(--Dash-Fill-Interactive-Strong);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.dash-datepicker-input-wrapper:focus-within {
|
|
68
|
+
border: 1px solid var(--Dash-Fill-Interactive-Strong);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.dash-datepicker-input-wrapper-disabled {
|
|
72
|
+
opacity: 0.6;
|
|
73
|
+
cursor: not-allowed;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.dash-datepicker-input-wrapper-disabled .dash-datepicker-input {
|
|
77
|
+
cursor: not-allowed;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.dash-datepicker-input:focus {
|
|
81
|
+
outline: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.dash-datepicker-input::placeholder {
|
|
85
|
+
color: var(--Dash-Text-Disabled);
|
|
86
|
+
}
|
|
87
|
+
|
|
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
|
+
.dash-datepicker-caret-icon {
|
|
116
|
+
color: var(--Dash-Text-Strong);
|
|
117
|
+
fill: var(--Dash-Text-Strong);
|
|
118
|
+
white-space: nowrap;
|
|
119
|
+
justify-self: end;
|
|
120
|
+
transition: transform 0.15s;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.dash-datepicker-input-wrapper[aria-expanded='true']
|
|
124
|
+
.dash-datepicker-caret-icon {
|
|
125
|
+
transform: rotate(180deg);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.dash-datepicker-clear {
|
|
129
|
+
background: none;
|
|
130
|
+
border: none;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
padding: 0;
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
justify-content: center;
|
|
136
|
+
justify-self: end;
|
|
137
|
+
color: var(--Dash-Text-Strong);
|
|
138
|
+
width: calc(var(--Dash-Spacing) * 3);
|
|
139
|
+
height: calc(var(--Dash-Spacing) * 3);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.dash-datepicker-clear:hover {
|
|
143
|
+
color: var(--Dash-Fill-Interactive-Strong);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.dash-datepicker-clear:focus {
|
|
147
|
+
outline: 2px solid var(--Dash-Fill-Interactive-Strong);
|
|
148
|
+
outline-offset: 1px;
|
|
149
|
+
border-radius: 2px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.dash-datepicker-content {
|
|
153
|
+
padding: 8px;
|
|
154
|
+
background: var(--Dash-Fill-Inverse-Strong);
|
|
155
|
+
width: fit-content;
|
|
156
|
+
max-width: 98vw;
|
|
157
|
+
overflow-y: auto;
|
|
158
|
+
z-index: 500;
|
|
159
|
+
box-shadow: 0px 10px 38px -10px var(--Dash-Shading-Strong),
|
|
160
|
+
0px 10px 20px -15px var(--Dash-Shading-Weak);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.dash-datepicker-calendar-wrapper {
|
|
164
|
+
display: flex;
|
|
165
|
+
flex-direction: column;
|
|
166
|
+
align-items: center;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.dash-datepicker-calendar-container {
|
|
170
|
+
display: flex;
|
|
171
|
+
align-items: flex-start;
|
|
172
|
+
gap: calc(var(--Dash-Spacing) * 4);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.dash-datepicker-controls {
|
|
176
|
+
display: flex;
|
|
177
|
+
align-items: center;
|
|
178
|
+
justify-content: center;
|
|
179
|
+
gap: var(--Dash-Spacing);
|
|
180
|
+
margin-bottom: calc(var(--Dash-Spacing) * 2);
|
|
181
|
+
font-size: 14px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.dash-datepicker-controls .dash-dropdown {
|
|
185
|
+
flex: 0 0 auto;
|
|
186
|
+
min-width: 122px;
|
|
187
|
+
width: auto;
|
|
188
|
+
margin: 0;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.dash-datepicker-controls .dash-input {
|
|
192
|
+
flex-shrink: 0;
|
|
193
|
+
flex-grow: 0;
|
|
194
|
+
width: 102px;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.dash-datepicker-controls .dash-input-stepper {
|
|
198
|
+
width: 20px;
|
|
199
|
+
height: 100%;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.dash-datepicker-month-nav {
|
|
203
|
+
display: flex;
|
|
204
|
+
align-items: center;
|
|
205
|
+
justify-content: center;
|
|
206
|
+
width: 20px;
|
|
207
|
+
height: 32px;
|
|
208
|
+
padding: 0;
|
|
209
|
+
background: transparent;
|
|
210
|
+
border: none;
|
|
211
|
+
border-radius: 4px;
|
|
212
|
+
color: var(--Dash-Fill-Interactive-Strong);
|
|
213
|
+
cursor: pointer;
|
|
214
|
+
flex-shrink: 0;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.dash-datepicker-month-nav:hover:not(:disabled) {
|
|
218
|
+
background: var(--Dash-Fill-Weak);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.dash-datepicker-month-nav:focus-visible {
|
|
222
|
+
outline: 2px solid var(--Dash-Fill-Interactive-Strong);
|
|
223
|
+
outline-offset: 2px;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.dash-datepicker-month-nav:disabled {
|
|
227
|
+
color: var(--Dash-Text-Disabled);
|
|
228
|
+
cursor: not-allowed;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.dash-datepicker-month-nav svg {
|
|
232
|
+
width: 20px;
|
|
233
|
+
height: 20px;
|
|
234
|
+
}
|
|
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
|
+
}
|
|
@@ -7,6 +7,7 @@
|
|
|
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
|
+
--Dash-Text-Weak: rgba(0, 12, 51, 0.65);
|
|
10
11
|
--Dash-Text-Disabled: rgba(0, 21, 89, 0.3);
|
|
11
12
|
--Dash-Fill-Primary-Hover: rgba(0, 18, 77, 0.04);
|
|
12
13
|
--Dash-Fill-Primary-Active: rgba(0, 18, 77, 0.08);
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
display: block;
|
|
3
3
|
flex: 1;
|
|
4
4
|
box-sizing: border-box;
|
|
5
|
-
margin: calc(var(--Dash-Spacing) * 2) 0;
|
|
6
5
|
padding: 0;
|
|
7
|
-
background:
|
|
6
|
+
background: var(--Dash-Fill-Inverse-Strong);
|
|
8
7
|
border: none;
|
|
9
8
|
outline: none;
|
|
10
9
|
width: 100%;
|
|
@@ -20,14 +19,14 @@
|
|
|
20
19
|
grid-template-columns: auto 1fr;
|
|
21
20
|
justify-items: start;
|
|
22
21
|
align-items: center;
|
|
23
|
-
gap:
|
|
22
|
+
gap: calc(var(--Dash-Spacing) * 2);
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
.dash-dropdown-grid-container:has(:nth-child(3)) {
|
|
25
|
+
.dash-dropdown-grid-container:has(> :nth-child(3)) {
|
|
27
26
|
grid-template-columns: auto 1fr auto;
|
|
28
27
|
}
|
|
29
28
|
|
|
30
|
-
.dash-dropdown-grid-container:has(:nth-child(4)) {
|
|
29
|
+
.dash-dropdown-grid-container:has(> :nth-child(4)) {
|
|
31
30
|
grid-template-columns: auto 1fr auto auto;
|
|
32
31
|
}
|
|
33
32
|
|
|
@@ -46,7 +45,7 @@
|
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
.dash-dropdown:focus {
|
|
49
|
-
|
|
48
|
+
border: 1px solid var(--Dash-Fill-Interactive-Strong);
|
|
50
49
|
}
|
|
51
50
|
|
|
52
51
|
.dash-dropdown:disabled {
|
|
@@ -70,6 +69,10 @@
|
|
|
70
69
|
display: inline;
|
|
71
70
|
}
|
|
72
71
|
|
|
72
|
+
.dash-dropdown-value-item:not(:first-child)::before {
|
|
73
|
+
content: ', ';
|
|
74
|
+
}
|
|
75
|
+
|
|
73
76
|
.dash-dropdown-content {
|
|
74
77
|
background: var(--Dash-Fill-Inverse-Strong);
|
|
75
78
|
width: fit-content;
|
|
@@ -209,3 +212,13 @@
|
|
|
209
212
|
padding: calc(var(--Dash-Spacing) * 2) calc(var(--Dash-Spacing) * 3);
|
|
210
213
|
box-shadow: 0 -1px 0 0 var(--Dash-Fill-Disabled) inset;
|
|
211
214
|
}
|
|
215
|
+
|
|
216
|
+
/* Positioning container for the dropdown */
|
|
217
|
+
.dash-dropdown-wrapper {
|
|
218
|
+
position: relative;
|
|
219
|
+
}
|
|
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
|
+
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
position: relative;
|
|
4
4
|
display: inline-flex;
|
|
5
5
|
align-items: center;
|
|
6
|
-
width:
|
|
7
|
-
height:
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 34px;
|
|
8
8
|
background: var(--Dash-Fill-Inverse-Strong);
|
|
9
9
|
border-radius: var(--Dash-Spacing);
|
|
10
10
|
border: 1px solid var(--Dash-Stroke-Strong);
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.dash-input-container:focus-within {
|
|
19
|
-
|
|
19
|
+
border: 1px solid var(--Dash-Fill-Interactive-Strong);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.dash-input-container:has(.dash-input-element:disabled) {
|
|
@@ -48,6 +48,12 @@
|
|
|
48
48
|
accent-color: var(--Dash-Fill-Interactive-Strong);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
.dash-input-element::selection,
|
|
52
|
+
.dash-input-element::-webkit-selection {
|
|
53
|
+
color: var(--Dash-Fill-Inverse-Strong);
|
|
54
|
+
background: var(--Dash-Fill-Interactive-Strong);
|
|
55
|
+
}
|
|
56
|
+
|
|
51
57
|
.dash-input-element:disabled {
|
|
52
58
|
cursor: not-allowed;
|
|
53
59
|
}
|
|
@@ -74,6 +74,10 @@
|
|
|
74
74
|
box-shadow: 0 4px 6px -1px var(--Dash-Shading-Weak);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
.dash-slider-thumb:focus {
|
|
78
|
+
outline: 1px solid var(--Dash-Fill-Interactive-Strong);
|
|
79
|
+
}
|
|
80
|
+
|
|
77
81
|
.dash-slider-thumb:focus .dash-slider-tooltip,
|
|
78
82
|
.dash-slider-thumb:hover .dash-slider-tooltip {
|
|
79
83
|
display: block;
|
|
@@ -93,6 +97,10 @@
|
|
|
93
97
|
pointer-events: none;
|
|
94
98
|
}
|
|
95
99
|
|
|
100
|
+
.dash-slider-mark-outside-selection {
|
|
101
|
+
color: var(--Dash-Text-Disabled);
|
|
102
|
+
}
|
|
103
|
+
|
|
96
104
|
.dash-slider-mark:before {
|
|
97
105
|
content: '';
|
|
98
106
|
position: absolute;
|
|
@@ -119,6 +127,10 @@
|
|
|
119
127
|
width: 8px;
|
|
120
128
|
height: 8px;
|
|
121
129
|
border-radius: 50%;
|
|
130
|
+
background-color: var(--Dash-Fill-Primary-Active);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.dash-slider-dot-outside-selection {
|
|
122
134
|
background-color: var(--Dash-Fill-Disabled);
|
|
123
135
|
}
|
|
124
136
|
|
|
@@ -173,6 +185,7 @@
|
|
|
173
185
|
align-items: center;
|
|
174
186
|
gap: 16px;
|
|
175
187
|
width: 100%;
|
|
188
|
+
container-type: inline-size;
|
|
176
189
|
}
|
|
177
190
|
|
|
178
191
|
.dash-slider-wrapper {
|
|
@@ -196,16 +209,43 @@
|
|
|
196
209
|
}
|
|
197
210
|
|
|
198
211
|
.dash-range-slider-input {
|
|
199
|
-
width:
|
|
212
|
+
min-width: 5cqw; /* 5% of container width */
|
|
213
|
+
max-width: 15cqw; /* 15% of container width */
|
|
200
214
|
text-align: center;
|
|
201
215
|
-webkit-appearance: textfield;
|
|
202
216
|
-moz-appearance: textfield;
|
|
203
217
|
appearance: textfield;
|
|
204
218
|
}
|
|
205
219
|
|
|
220
|
+
.dash-range-slider-input::selection,
|
|
221
|
+
.dash-range-slider-input::-webkit-selection {
|
|
222
|
+
color: var(--Dash-Fill-Inverse-Strong);
|
|
223
|
+
background: var(--Dash-Fill-Interactive-Strong);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.dash-range-slider-input:focus {
|
|
227
|
+
outline: none;
|
|
228
|
+
}
|
|
229
|
+
|
|
206
230
|
/* Hide the number input spinners */
|
|
207
231
|
.dash-range-slider-input::-webkit-inner-spin-button,
|
|
208
232
|
.dash-range-slider-input::-webkit-outer-spin-button {
|
|
209
233
|
-webkit-appearance: none;
|
|
210
234
|
margin: 0;
|
|
211
235
|
}
|
|
236
|
+
|
|
237
|
+
/* Hide inputs on small containers using container queries */
|
|
238
|
+
/* single slider input */
|
|
239
|
+
@container (max-width: 200px) {
|
|
240
|
+
.dash-slider-container .dash-range-slider-input:only-of-type {
|
|
241
|
+
display: none;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/* range slider inputs */
|
|
246
|
+
@container (max-width: 300px) {
|
|
247
|
+
.dash-slider-container .dash-range-slider-min-input,
|
|
248
|
+
.dash-slider-container .dash-range-slider-max-input {
|
|
249
|
+
display: none;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/* Tab parent container */
|
|
2
|
+
.tab-parent {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* Tab container (holds all tabs) */
|
|
9
|
+
.tab-container {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.tab-container--vert {
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Individual tab */
|
|
19
|
+
.tab {
|
|
20
|
+
flex: 1 1 0;
|
|
21
|
+
min-width: 0;
|
|
22
|
+
background-color: var(--tabs-background);
|
|
23
|
+
border: 1px solid var(--tabs-border);
|
|
24
|
+
border-bottom: none;
|
|
25
|
+
padding: 20px 25px;
|
|
26
|
+
transition: background-color, color 200ms;
|
|
27
|
+
text-align: center;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Tab selected state */
|
|
33
|
+
.tab--selected {
|
|
34
|
+
border-top: 2px solid var(--tabs-primary);
|
|
35
|
+
color: var(--Dash-Text-Primary);
|
|
36
|
+
background-color: var(--Dash-Fill-Inverse-Strong);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.tab--selected:hover {
|
|
40
|
+
background-color: var(--Dash-Fill-Inverse-Strong);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Tab disabled state */
|
|
44
|
+
.tab--disabled {
|
|
45
|
+
opacity: 0.6;
|
|
46
|
+
cursor: not-allowed;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Tab content area */
|
|
50
|
+
.tab-content--vert {
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Desktop/tablet styles (when above breakpoint) */
|
|
56
|
+
.tab-parent--above-breakpoint .tab {
|
|
57
|
+
border: 1px solid var(--tabs-border);
|
|
58
|
+
border-right: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.tab-parent--above-breakpoint .tab:last-child {
|
|
62
|
+
border-right: 1px solid var(--tabs-border);
|
|
63
|
+
border-bottom: 1px solid var(--tabs-border);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.tab-parent--above-breakpoint .tab--selected,
|
|
67
|
+
.tab-parent--above-breakpoint .tab:last-child.tab--selected {
|
|
68
|
+
border-bottom: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Vertical tabs: left border for selected */
|
|
72
|
+
.tab-parent--above-breakpoint .tab-container--vert .tab--selected {
|
|
73
|
+
border-left: 2px solid var(--tabs-primary);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Horizontal tabs: top border for selected */
|
|
77
|
+
.tab-parent--above-breakpoint
|
|
78
|
+
.tab-container:not(.tab-container--vert)
|
|
79
|
+
.tab--selected,
|
|
80
|
+
.tab-parent--above-breakpoint
|
|
81
|
+
.tab-container:not(.tab-container--vert)
|
|
82
|
+
.tab:last-child.tab--selected {
|
|
83
|
+
border-top: 2px solid var(--tabs-primary);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.tab-parent--above-breakpoint .tab-container--vert .tab {
|
|
87
|
+
width: auto;
|
|
88
|
+
border-right: none !important;
|
|
89
|
+
border-bottom: none !important;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.tab-parent--above-breakpoint .tab-container--vert .tab:last-child {
|
|
93
|
+
border-bottom: 1px solid var(--tabs-border) !important;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.tab-parent--above-breakpoint .tab-container--vert .tab--selected {
|
|
97
|
+
border-top: 1px solid var(--tabs-border);
|
|
98
|
+
border-left: 2px solid var(--tabs-primary);
|
|
99
|
+
border-right: none;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.tab-parent--above-breakpoint .tab-container {
|
|
103
|
+
flex-direction: row;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.tab-parent--above-breakpoint .tab-container--vert {
|
|
107
|
+
flex-direction: column;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.tab-parent--above-breakpoint.tab-parent--vert {
|
|
111
|
+
display: inline-flex;
|
|
112
|
+
flex-direction: row;
|
|
113
|
+
}
|