@recursica/mui-adapter 0.18.1 → 0.19.0
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/CHANGELOG.md +17 -0
- package/dist/mui-adapter.cjs +172 -23
- package/dist/mui-adapter.cjs.map +1 -1
- package/dist/mui-adapter.css +1 -1
- package/dist/mui-adapter.js +12963 -4695
- package/dist/mui-adapter.js.map +1 -1
- package/dist/src/components/Tree/Tree.d.ts +9 -5
- package/package.json +6 -1
- package/src/components/Accordion/Accordion.module.css +98 -62
- package/src/components/Autocomplete/Autocomplete.module.css +50 -47
- package/src/components/Autocomplete/Autocomplete.tsx +2 -2
- package/src/components/Avatar/Avatar.module.css +7 -7
- package/src/components/Badge/Badge.module.css +8 -8
- package/src/components/Button/Button.module.css +25 -43
- package/src/components/Card/Card.module.css +3 -3
- package/src/components/Checkbox/Checkbox.module.css +57 -16
- package/src/components/Chip/Chip.module.css +32 -20
- package/src/components/Dropdown/Dropdown.module.css +47 -44
- package/src/components/Dropdown/Dropdown.tsx +2 -2
- package/src/components/FormControlWrapper/FormControlWrapper.module.css +12 -12
- package/src/components/HoverCard/HoverCard.module.css +1 -1
- package/src/components/Label/Label.module.css +20 -3
- package/src/components/Link/Link.module.css +18 -71
- package/src/components/Loader/Loader.module.css +3 -3
- package/src/components/Menu/Menu.module.css +33 -41
- package/src/components/Modal/Modal.module.css +27 -11
- package/src/components/NumberInput/NumberInput.module.css +39 -37
- package/src/components/NumberInput/NumberInput.tsx +2 -2
- package/src/components/Pagination/Pagination.module.css +10 -43
- package/src/components/Panel/Panel.module.css +3 -3
- package/src/components/Radio/Radio.module.css +32 -15
- package/src/components/ReadOnlyField/ReadOnlyField.module.css +1 -1
- package/src/components/SegmentedControl/SegmentedControl.module.css +37 -29
- package/src/components/Slider/Slider.module.css +51 -35
- package/src/components/Stepper/Stepper.module.css +3 -3
- package/src/components/Switch/Switch.module.css +27 -11
- package/src/components/Tabs/Tabs.module.css +309 -166
- package/src/components/TextArea/TextArea.module.css +36 -21
- package/src/components/TextArea/TextArea.tsx +2 -2
- package/src/components/TextField/TextField.module.css +38 -33
- package/src/components/TextField/TextField.tsx +2 -2
- package/src/components/Timeline/IMPLEMENTATION_NOTES.md +5 -0
- package/src/components/Timeline/Timeline.module.css +35 -34
- package/src/components/Toast/Toast.module.css +24 -11
- package/src/components/Tooltip/Tooltip.module.css +4 -2
- package/src/components/Tree/IMPLEMENTATION_NOTES.md +21 -0
- package/src/components/Tree/Tree.module.css +204 -39
- package/src/components/Tree/Tree.stories.tsx +81 -4
- package/src/components/Tree/Tree.tsx +214 -13
- package/src/components/Tree/USAGE.md +40 -3
|
@@ -68,49 +68,49 @@
|
|
|
68
68
|
|
|
69
69
|
.root[data-variant="alert"] {
|
|
70
70
|
background-color: var(
|
|
71
|
-
--recursica_ui-kit_components_badge_variants_styles_alert_properties_colors_background
|
|
71
|
+
--recursica_ui-kit_components_badge_variants_styles_alert_properties_colors_background-color
|
|
72
72
|
);
|
|
73
73
|
border-color: var(
|
|
74
74
|
--recursica_ui-kit_components_badge_variants_styles_alert_properties_colors_border-color
|
|
75
75
|
);
|
|
76
76
|
color: var(
|
|
77
|
-
--recursica_ui-kit_components_badge_variants_styles_alert_properties_colors_text
|
|
77
|
+
--recursica_ui-kit_components_badge_variants_styles_alert_properties_colors_text-color
|
|
78
78
|
);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.root[data-variant="primary-color"] {
|
|
82
82
|
background-color: var(
|
|
83
|
-
--recursica_ui-kit_components_badge_variants_styles_primary-color_properties_colors_background
|
|
83
|
+
--recursica_ui-kit_components_badge_variants_styles_primary-color_properties_colors_background-color
|
|
84
84
|
);
|
|
85
85
|
border-color: var(
|
|
86
86
|
--recursica_ui-kit_components_badge_variants_styles_primary-color_properties_colors_border-color
|
|
87
87
|
);
|
|
88
88
|
color: var(
|
|
89
|
-
--recursica_ui-kit_components_badge_variants_styles_primary-color_properties_colors_text
|
|
89
|
+
--recursica_ui-kit_components_badge_variants_styles_primary-color_properties_colors_text-color
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
.root[data-variant="success"] {
|
|
94
94
|
background-color: var(
|
|
95
|
-
--recursica_ui-kit_components_badge_variants_styles_success_properties_colors_background
|
|
95
|
+
--recursica_ui-kit_components_badge_variants_styles_success_properties_colors_background-color
|
|
96
96
|
);
|
|
97
97
|
border-color: var(
|
|
98
98
|
--recursica_ui-kit_components_badge_variants_styles_success_properties_colors_border-color
|
|
99
99
|
);
|
|
100
100
|
color: var(
|
|
101
|
-
--recursica_ui-kit_components_badge_variants_styles_success_properties_colors_text
|
|
101
|
+
--recursica_ui-kit_components_badge_variants_styles_success_properties_colors_text-color
|
|
102
102
|
);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.root[data-variant="warning"] {
|
|
106
106
|
background-color: var(
|
|
107
|
-
--recursica_ui-kit_components_badge_variants_styles_warning_properties_colors_background
|
|
107
|
+
--recursica_ui-kit_components_badge_variants_styles_warning_properties_colors_background-color
|
|
108
108
|
);
|
|
109
109
|
border-color: var(
|
|
110
110
|
--recursica_ui-kit_components_badge_variants_styles_warning_properties_colors_border-color
|
|
111
111
|
);
|
|
112
112
|
color: var(
|
|
113
|
-
--recursica_ui-kit_components_badge_variants_styles_warning_properties_colors_text
|
|
113
|
+
--recursica_ui-kit_components_badge_variants_styles_warning_properties_colors_text-color
|
|
114
114
|
);
|
|
115
115
|
}
|
|
116
116
|
|
|
@@ -239,18 +239,8 @@
|
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
/* Disabled */
|
|
242
|
-
.root
|
|
243
|
-
.root
|
|
244
|
-
opacity: var(
|
|
245
|
-
--recursica_ui-kit_components_button_variants_sizes_default_properties_disabled-opacity
|
|
246
|
-
);
|
|
247
|
-
cursor: not-allowed;
|
|
248
|
-
}
|
|
249
|
-
.root[data-size="small"]:disabled,
|
|
250
|
-
.root[data-size="small"]:global(.Mui-disabled) {
|
|
251
|
-
opacity: var(
|
|
252
|
-
--recursica_ui-kit_components_button_variants_sizes_small_properties_disabled-opacity
|
|
253
|
-
);
|
|
242
|
+
.root:disabled,
|
|
243
|
+
.root:global(.Mui-disabled) {
|
|
254
244
|
cursor: not-allowed;
|
|
255
245
|
}
|
|
256
246
|
|
|
@@ -264,21 +254,10 @@
|
|
|
264
254
|
pointer-events: none;
|
|
265
255
|
transition: opacity 150ms ease;
|
|
266
256
|
opacity: 0;
|
|
267
|
-
|
|
268
|
-
.root[data-size="default"]::after {
|
|
269
|
-
background-color: var(
|
|
270
|
-
--recursica_ui-kit_components_button_variants_sizes_default_properties_hover-color
|
|
271
|
-
);
|
|
272
|
-
}
|
|
273
|
-
.root[data-size="small"]::after {
|
|
274
|
-
background-color: var(
|
|
275
|
-
--recursica_ui-kit_components_button_variants_sizes_small_properties_hover-color
|
|
276
|
-
);
|
|
257
|
+
background-color: var(--recursica_brand_states_hover_color);
|
|
277
258
|
}
|
|
278
259
|
.root:hover:not(:disabled):not(:global(.Mui-disabled))::after {
|
|
279
|
-
opacity: var(
|
|
280
|
-
--recursica_ui-kit_components_button_variants_sizes_default_properties_hover-opacity
|
|
281
|
-
);
|
|
260
|
+
opacity: var(--recursica_brand_states_hover_opacity);
|
|
282
261
|
}
|
|
283
262
|
|
|
284
263
|
/* ==== VARIANTS ==== */
|
|
@@ -292,13 +271,13 @@
|
|
|
292
271
|
--recursica_ui-kit_components_button_variants_styles_solid_properties_elevation
|
|
293
272
|
);
|
|
294
273
|
background-color: var(
|
|
295
|
-
--recursica_ui-kit_components_button_variants_styles_solid_properties_colors_background
|
|
274
|
+
--recursica_ui-kit_components_button_variants_styles_solid_properties_colors_background-color
|
|
296
275
|
);
|
|
297
276
|
border-color: var(
|
|
298
277
|
--recursica_ui-kit_components_button_variants_styles_solid_properties_colors_border-color
|
|
299
278
|
);
|
|
300
279
|
color: var(
|
|
301
|
-
--recursica_ui-kit_components_button_variants_styles_solid_properties_colors_text
|
|
280
|
+
--recursica_ui-kit_components_button_variants_styles_solid_properties_colors_text-color
|
|
302
281
|
);
|
|
303
282
|
}
|
|
304
283
|
.root[data-variant="solid"] .iconWrapper {
|
|
@@ -306,12 +285,13 @@
|
|
|
306
285
|
--recursica_ui-kit_components_button_variants_styles_solid_properties_colors_icon-color
|
|
307
286
|
);
|
|
308
287
|
}
|
|
309
|
-
.root[data-variant="solid"]:
|
|
310
|
-
|
|
311
|
-
|
|
288
|
+
.root[data-variant="solid"]:disabled,
|
|
289
|
+
.root[data-variant="solid"]:global(.Mui-disabled) {
|
|
290
|
+
opacity: var(
|
|
291
|
+
--recursica_ui-kit_components_button_variants_styles_solid_variants_states_disabled_properties_opacity
|
|
312
292
|
);
|
|
313
293
|
box-shadow: var(
|
|
314
|
-
--recursica_ui-
|
|
294
|
+
--recursica_ui-kit_components_button_variants_styles_solid_variants_states_disabled_properties_elevation
|
|
315
295
|
);
|
|
316
296
|
}
|
|
317
297
|
|
|
@@ -324,13 +304,13 @@
|
|
|
324
304
|
--recursica_ui-kit_components_button_variants_styles_outline_properties_elevation
|
|
325
305
|
);
|
|
326
306
|
background-color: var(
|
|
327
|
-
--recursica_ui-kit_components_button_variants_styles_outline_properties_colors_background
|
|
307
|
+
--recursica_ui-kit_components_button_variants_styles_outline_properties_colors_background-color
|
|
328
308
|
);
|
|
329
309
|
border-color: var(
|
|
330
310
|
--recursica_ui-kit_components_button_variants_styles_outline_properties_colors_border-color
|
|
331
311
|
);
|
|
332
312
|
color: var(
|
|
333
|
-
--recursica_ui-kit_components_button_variants_styles_outline_properties_colors_text
|
|
313
|
+
--recursica_ui-kit_components_button_variants_styles_outline_properties_colors_text-color
|
|
334
314
|
);
|
|
335
315
|
}
|
|
336
316
|
.root[data-variant="outline"] .iconWrapper {
|
|
@@ -338,12 +318,13 @@
|
|
|
338
318
|
--recursica_ui-kit_components_button_variants_styles_outline_properties_colors_icon-color
|
|
339
319
|
);
|
|
340
320
|
}
|
|
341
|
-
.root[data-variant="outline"]:
|
|
342
|
-
|
|
343
|
-
|
|
321
|
+
.root[data-variant="outline"]:disabled,
|
|
322
|
+
.root[data-variant="outline"]:global(.Mui-disabled) {
|
|
323
|
+
opacity: var(
|
|
324
|
+
--recursica_ui-kit_components_button_variants_styles_outline_variants_states_disabled_properties_opacity
|
|
344
325
|
);
|
|
345
326
|
box-shadow: var(
|
|
346
|
-
--recursica_ui-
|
|
327
|
+
--recursica_ui-kit_components_button_variants_styles_outline_variants_states_disabled_properties_elevation
|
|
347
328
|
);
|
|
348
329
|
}
|
|
349
330
|
|
|
@@ -356,13 +337,13 @@
|
|
|
356
337
|
--recursica_ui-kit_components_button_variants_styles_text_properties_elevation
|
|
357
338
|
);
|
|
358
339
|
background-color: var(
|
|
359
|
-
--recursica_ui-kit_components_button_variants_styles_text_properties_colors_background
|
|
340
|
+
--recursica_ui-kit_components_button_variants_styles_text_properties_colors_background-color
|
|
360
341
|
);
|
|
361
342
|
border-color: var(
|
|
362
343
|
--recursica_ui-kit_components_button_variants_styles_text_properties_colors_border-color
|
|
363
344
|
);
|
|
364
345
|
color: var(
|
|
365
|
-
--recursica_ui-kit_components_button_variants_styles_text_properties_colors_text
|
|
346
|
+
--recursica_ui-kit_components_button_variants_styles_text_properties_colors_text-color
|
|
366
347
|
);
|
|
367
348
|
}
|
|
368
349
|
.root[data-variant="text"] .iconWrapper {
|
|
@@ -370,12 +351,13 @@
|
|
|
370
351
|
--recursica_ui-kit_components_button_variants_styles_text_properties_colors_icon-color
|
|
371
352
|
);
|
|
372
353
|
}
|
|
373
|
-
.root[data-variant="text"]:
|
|
374
|
-
|
|
375
|
-
|
|
354
|
+
.root[data-variant="text"]:disabled,
|
|
355
|
+
.root[data-variant="text"]:global(.Mui-disabled) {
|
|
356
|
+
opacity: var(
|
|
357
|
+
--recursica_ui-kit_components_button_variants_styles_text_variants_states_disabled_properties_opacity
|
|
376
358
|
);
|
|
377
359
|
box-shadow: var(
|
|
378
|
-
--recursica_ui-
|
|
360
|
+
--recursica_ui-kit_components_button_variants_styles_text_variants_states_disabled_properties_elevation
|
|
379
361
|
);
|
|
380
362
|
}
|
|
381
363
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
--card-padding: var(--recursica_ui-kit_components_card_properties_padding);
|
|
10
10
|
|
|
11
11
|
background-color: var(
|
|
12
|
-
--recursica_ui-kit_components_card_properties_colors_background
|
|
12
|
+
--recursica_ui-kit_components_card_properties_colors_background-color
|
|
13
13
|
);
|
|
14
14
|
border-radius: var(
|
|
15
15
|
--recursica_ui-kit_components_card_properties_borders_border-radius
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
.header {
|
|
34
34
|
background-color: var(
|
|
35
|
-
--recursica_ui-kit_components_card_properties_colors_header-background
|
|
35
|
+
--recursica_ui-kit_components_card_properties_colors_header-background-color
|
|
36
36
|
);
|
|
37
37
|
padding: var(--recursica_ui-kit_components_card_properties_header-padding);
|
|
38
38
|
color: var(--recursica_ui-kit_components_card_properties_colors_title);
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
|
|
82
82
|
.footer {
|
|
83
83
|
background-color: var(
|
|
84
|
-
--recursica_ui-kit_components_card_properties_colors_footer-background
|
|
84
|
+
--recursica_ui-kit_components_card_properties_colors_footer-background-color
|
|
85
85
|
);
|
|
86
86
|
padding: var(--recursica_ui-kit_components_card_properties_footer-padding);
|
|
87
87
|
border-top: var(--recursica_ui-kit_components_card_properties_divider-size)
|
|
@@ -103,10 +103,10 @@
|
|
|
103
103
|
|
|
104
104
|
/* Standard unchecked state */
|
|
105
105
|
background-color: var(
|
|
106
|
-
--recursica_ui-
|
|
106
|
+
--recursica_ui-kit_components_checkbox_variants_selection-states_unchecked_properties_colors_background-color
|
|
107
107
|
);
|
|
108
108
|
border-color: var(
|
|
109
|
-
--recursica_ui-
|
|
109
|
+
--recursica_ui-kit_components_checkbox_variants_selection-states_unchecked_properties_colors_border-color
|
|
110
110
|
);
|
|
111
111
|
transition: all 0.2s ease; /* HARDCODE: consider global transition token */
|
|
112
112
|
}
|
|
@@ -115,46 +115,87 @@
|
|
|
115
115
|
.input:checked,
|
|
116
116
|
.inputChecked {
|
|
117
117
|
background-color: var(
|
|
118
|
-
--recursica_ui-
|
|
118
|
+
--recursica_ui-kit_components_checkbox_variants_selection-states_checked_properties_colors_background-color
|
|
119
119
|
);
|
|
120
120
|
border-color: var(
|
|
121
|
-
--recursica_ui-
|
|
121
|
+
--recursica_ui-kit_components_checkbox_variants_selection-states_checked_properties_colors_border-color
|
|
122
122
|
);
|
|
123
123
|
}
|
|
124
124
|
.input[data-indeterminate],
|
|
125
125
|
.inputIndeterminate {
|
|
126
126
|
background-color: var(
|
|
127
|
-
--recursica_ui-
|
|
127
|
+
--recursica_ui-kit_components_checkbox_variants_selection-states_indeterminate_properties_colors_background-color
|
|
128
128
|
);
|
|
129
129
|
border-color: var(
|
|
130
|
-
--recursica_ui-
|
|
130
|
+
--recursica_ui-kit_components_checkbox_variants_selection-states_indeterminate_properties_colors_border-color
|
|
131
131
|
);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
/* Disabled State
|
|
134
|
+
/* Disabled State (colors now differ per selection state; MUI applies its
|
|
135
|
+
`disabled` classKey to the same root element as `root`, so `.root.disabled`
|
|
136
|
+
targets the actual disabled instance and cascades to the decorative
|
|
137
|
+
icon divs rendered inside it — mirrors the split now required by the
|
|
138
|
+
token schema, matching the mantine-adapter reference). */
|
|
135
139
|
.input:disabled {
|
|
136
140
|
cursor: not-allowed; /* HARDCODE: disabled state default */
|
|
141
|
+
}
|
|
142
|
+
.root.disabled .input:not(.inputChecked):not(.inputIndeterminate) {
|
|
143
|
+
opacity: var(
|
|
144
|
+
--recursica_ui-kit_components_checkbox_variants_selection-states_unchecked_variants_states_disabled_properties_opacity
|
|
145
|
+
);
|
|
146
|
+
background-color: var(
|
|
147
|
+
--recursica_ui-kit_components_checkbox_variants_selection-states_unchecked_variants_states_disabled_properties_colors_background-color
|
|
148
|
+
);
|
|
149
|
+
border-color: var(
|
|
150
|
+
--recursica_ui-kit_components_checkbox_variants_selection-states_unchecked_variants_states_disabled_properties_colors_border-color
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
.root.disabled .inputChecked {
|
|
154
|
+
opacity: var(
|
|
155
|
+
--recursica_ui-kit_components_checkbox_variants_selection-states_checked_variants_states_disabled_properties_opacity
|
|
156
|
+
);
|
|
157
|
+
background-color: var(
|
|
158
|
+
--recursica_ui-kit_components_checkbox_variants_selection-states_checked_variants_states_disabled_properties_colors_background-color
|
|
159
|
+
);
|
|
160
|
+
border-color: var(
|
|
161
|
+
--recursica_ui-kit_components_checkbox_variants_selection-states_checked_variants_states_disabled_properties_colors_border-color
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
.root.disabled .inputIndeterminate {
|
|
137
165
|
opacity: var(
|
|
138
|
-
--recursica_ui-
|
|
166
|
+
--recursica_ui-kit_components_checkbox_variants_selection-states_indeterminate_variants_states_disabled_properties_opacity
|
|
139
167
|
);
|
|
140
168
|
background-color: var(
|
|
141
|
-
--recursica_ui-
|
|
169
|
+
--recursica_ui-kit_components_checkbox_variants_selection-states_indeterminate_variants_states_disabled_properties_colors_background-color
|
|
142
170
|
);
|
|
143
171
|
border-color: var(
|
|
144
|
-
--recursica_ui-
|
|
172
|
+
--recursica_ui-kit_components_checkbox_variants_selection-states_indeterminate_variants_states_disabled_properties_colors_border-color
|
|
145
173
|
);
|
|
146
174
|
}
|
|
147
175
|
|
|
148
176
|
.icon {
|
|
149
177
|
width: var(--recursica_ui-kit_components_checkbox_properties_icon-size);
|
|
150
178
|
height: var(--recursica_ui-kit_components_checkbox_properties_icon-size);
|
|
179
|
+
}
|
|
180
|
+
/* No icon-color token exists for the unchecked state (no icon is visible then) */
|
|
181
|
+
.inputChecked .icon {
|
|
182
|
+
color: var(
|
|
183
|
+
--recursica_ui-kit_components_checkbox_variants_selection-states_checked_properties_colors_icon-color
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
.inputIndeterminate .icon {
|
|
187
|
+
color: var(
|
|
188
|
+
--recursica_ui-kit_components_checkbox_variants_selection-states_indeterminate_properties_colors_icon-color
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
.root.disabled .inputChecked .icon {
|
|
151
192
|
color: var(
|
|
152
|
-
--recursica_ui-
|
|
193
|
+
--recursica_ui-kit_components_checkbox_variants_selection-states_checked_variants_states_disabled_properties_colors_icon-color
|
|
153
194
|
);
|
|
154
195
|
}
|
|
155
|
-
.
|
|
196
|
+
.root.disabled .inputIndeterminate .icon {
|
|
156
197
|
color: var(
|
|
157
|
-
--recursica_ui-
|
|
198
|
+
--recursica_ui-kit_components_checkbox_variants_selection-states_indeterminate_variants_states_disabled_properties_colors_icon-color
|
|
158
199
|
);
|
|
159
200
|
}
|
|
160
201
|
|
|
@@ -172,7 +213,7 @@
|
|
|
172
213
|
word-wrap: break-word;
|
|
173
214
|
white-space: normal;
|
|
174
215
|
color: var(
|
|
175
|
-
--recursica_ui-kit_components_checkbox-item_properties_colors_text
|
|
216
|
+
--recursica_ui-kit_components_checkbox-item_properties_colors_text-color
|
|
176
217
|
);
|
|
177
218
|
font-family: var(
|
|
178
219
|
--recursica_ui-kit_components_checkbox-item_properties_text_font-family
|
|
@@ -202,7 +243,7 @@
|
|
|
202
243
|
.root:has(input:disabled) .label {
|
|
203
244
|
cursor: not-allowed; /* HARDCODE: disabled interaction */
|
|
204
245
|
opacity: var(
|
|
205
|
-
--recursica_ui-kit_components_checkbox-
|
|
246
|
+
--recursica_ui-kit_components_checkbox-item_variants_states_disabled_properties_opacity
|
|
206
247
|
);
|
|
207
248
|
color: var(
|
|
208
249
|
--recursica_ui-kit_components_checkbox-item_properties_colors_disabled-text
|
|
@@ -226,7 +267,7 @@
|
|
|
226
267
|
.description[data-disabled="true"],
|
|
227
268
|
.error[data-disabled="true"] {
|
|
228
269
|
opacity: var(
|
|
229
|
-
--recursica_ui-kit_components_checkbox-
|
|
270
|
+
--recursica_ui-kit_components_checkbox-item_variants_states_disabled_properties_opacity
|
|
230
271
|
);
|
|
231
272
|
}
|
|
232
273
|
|
|
@@ -13,6 +13,18 @@
|
|
|
13
13
|
/* recursica-ignore: --recursica_ui-kit_components_chip_variants_styles_selected_properties_colors_leading-icon-color */
|
|
14
14
|
/* recursica-ignore: --recursica_ui-kit_components_chip_variants_styles_unselected_properties_colors_selected-icon-color */
|
|
15
15
|
|
|
16
|
+
/* Additional exemptions matching the reference mantine-adapter's Chip.module.css: per selection/error
|
|
17
|
+
state, Figma defines multiple icon-color slots (leading-icon-color, selected-icon-color, and for
|
|
18
|
+
error states also a generic icon-color), but each state only ever consumes ONE of them (leading
|
|
19
|
+
when unselected, selected when selected). The remaining "off" slots per state are intentionally
|
|
20
|
+
unused, same as in the mantine reference. */
|
|
21
|
+
/* recursica-ignore: --recursica_ui-kit_components_chip_variants_selection-states_selected_properties_colors_leading-icon-color */
|
|
22
|
+
/* recursica-ignore: --recursica_ui-kit_components_chip_variants_selection-states_selected_variants_states_error_properties_colors_icon-color */
|
|
23
|
+
/* recursica-ignore: --recursica_ui-kit_components_chip_variants_selection-states_selected_variants_states_error_properties_colors_leading-icon-color */
|
|
24
|
+
/* recursica-ignore: --recursica_ui-kit_components_chip_variants_selection-states_unselected_properties_colors_selected-icon-color */
|
|
25
|
+
/* recursica-ignore: --recursica_ui-kit_components_chip_variants_selection-states_unselected_variants_states_error_properties_colors_icon-color */
|
|
26
|
+
/* recursica-ignore: --recursica_ui-kit_components_chip_variants_selection-states_unselected_variants_states_error_properties_colors_selected-icon-color */
|
|
27
|
+
|
|
16
28
|
/* HARDCODED VALUES
|
|
17
29
|
border-style: solid; (Baseline reset)
|
|
18
30
|
box-sizing: border-box; (Baseline reset)
|
|
@@ -33,19 +45,19 @@
|
|
|
33
45
|
/* Token properties */
|
|
34
46
|
--chip-height: max-content; /* Sizing is driven by padding and line height */
|
|
35
47
|
--chip-bg: var(
|
|
36
|
-
--recursica_ui-
|
|
48
|
+
--recursica_ui-kit_components_chip_variants_selection-states_unselected_properties_colors_background-color
|
|
37
49
|
);
|
|
38
50
|
--chip-border: var(
|
|
39
|
-
--recursica_ui-
|
|
51
|
+
--recursica_ui-kit_components_chip_variants_selection-states_unselected_properties_colors_border-color
|
|
40
52
|
);
|
|
41
53
|
--chip-text: var(
|
|
42
|
-
--recursica_ui-
|
|
54
|
+
--recursica_ui-kit_components_chip_variants_selection-states_unselected_properties_colors_text-color
|
|
43
55
|
);
|
|
44
56
|
--chip-icon: var(
|
|
45
|
-
--recursica_ui-
|
|
57
|
+
--recursica_ui-kit_components_chip_variants_selection-states_unselected_properties_colors_leading-icon-color
|
|
46
58
|
);
|
|
47
59
|
--chip-close: var(
|
|
48
|
-
--recursica_ui-
|
|
60
|
+
--recursica_ui-kit_components_chip_variants_selection-states_unselected_properties_colors_close-icon-color
|
|
49
61
|
);
|
|
50
62
|
|
|
51
63
|
/* Container geometry */
|
|
@@ -126,55 +138,55 @@
|
|
|
126
138
|
/* Default (Unselected) hover/active interactions (Mantine overrides) */
|
|
127
139
|
.root.root[data-checked] {
|
|
128
140
|
--chip-bg: var(
|
|
129
|
-
--recursica_ui-
|
|
141
|
+
--recursica_ui-kit_components_chip_variants_selection-states_selected_properties_colors_background-color
|
|
130
142
|
);
|
|
131
143
|
--chip-border: var(
|
|
132
|
-
--recursica_ui-
|
|
144
|
+
--recursica_ui-kit_components_chip_variants_selection-states_selected_properties_colors_border-color
|
|
133
145
|
);
|
|
134
146
|
--chip-text: var(
|
|
135
|
-
--recursica_ui-
|
|
147
|
+
--recursica_ui-kit_components_chip_variants_selection-states_selected_properties_colors_text-color
|
|
136
148
|
);
|
|
137
149
|
--chip-icon: var(
|
|
138
|
-
--recursica_ui-
|
|
150
|
+
--recursica_ui-kit_components_chip_variants_selection-states_selected_properties_colors_selected-icon-color
|
|
139
151
|
);
|
|
140
152
|
--chip-close: var(
|
|
141
|
-
--recursica_ui-
|
|
153
|
+
--recursica_ui-kit_components_chip_variants_selection-states_selected_properties_colors_close-icon-color
|
|
142
154
|
);
|
|
143
155
|
}
|
|
144
156
|
|
|
145
157
|
.root.root[data-error] {
|
|
146
158
|
--chip-bg: var(
|
|
147
|
-
--recursica_ui-
|
|
159
|
+
--recursica_ui-kit_components_chip_variants_selection-states_unselected_variants_states_error_properties_colors_background-color
|
|
148
160
|
);
|
|
149
161
|
--chip-border: var(
|
|
150
|
-
--recursica_ui-
|
|
162
|
+
--recursica_ui-kit_components_chip_variants_selection-states_unselected_variants_states_error_properties_colors_border-color
|
|
151
163
|
);
|
|
152
164
|
--chip-text: var(
|
|
153
|
-
--recursica_ui-
|
|
165
|
+
--recursica_ui-kit_components_chip_variants_selection-states_unselected_variants_states_error_properties_colors_text-color
|
|
154
166
|
);
|
|
155
167
|
--chip-icon: var(
|
|
156
|
-
--recursica_ui-
|
|
168
|
+
--recursica_ui-kit_components_chip_variants_selection-states_unselected_variants_states_error_properties_colors_leading-icon-color
|
|
157
169
|
);
|
|
158
170
|
--chip-close: var(
|
|
159
|
-
--recursica_ui-
|
|
171
|
+
--recursica_ui-kit_components_chip_variants_selection-states_unselected_variants_states_error_properties_colors_close-icon-color
|
|
160
172
|
);
|
|
161
173
|
}
|
|
162
174
|
|
|
163
175
|
.root.root[data-error][data-checked] {
|
|
164
176
|
--chip-bg: var(
|
|
165
|
-
--recursica_ui-
|
|
177
|
+
--recursica_ui-kit_components_chip_variants_selection-states_selected_variants_states_error_properties_colors_background-color
|
|
166
178
|
);
|
|
167
179
|
--chip-border: var(
|
|
168
|
-
--recursica_ui-
|
|
180
|
+
--recursica_ui-kit_components_chip_variants_selection-states_selected_variants_states_error_properties_colors_border-color
|
|
169
181
|
);
|
|
170
182
|
--chip-text: var(
|
|
171
|
-
--recursica_ui-
|
|
183
|
+
--recursica_ui-kit_components_chip_variants_selection-states_selected_variants_states_error_properties_colors_text-color
|
|
172
184
|
);
|
|
173
185
|
--chip-icon: var(
|
|
174
|
-
--recursica_ui-
|
|
186
|
+
--recursica_ui-kit_components_chip_variants_selection-states_selected_variants_states_error_properties_colors_selected-icon-color
|
|
175
187
|
);
|
|
176
188
|
--chip-close: var(
|
|
177
|
-
--recursica_ui-
|
|
189
|
+
--recursica_ui-kit_components_chip_variants_selection-states_selected_variants_states_error_properties_colors_close-icon-color
|
|
178
190
|
);
|
|
179
191
|
}
|
|
180
192
|
|
|
@@ -1,23 +1,36 @@
|
|
|
1
1
|
/* EXEMPTIONS:
|
|
2
|
-
- state-specific border-size variables are ignored because a uniform 1px border is applied globally to prevent
|
|
2
|
+
- state-specific border-size variables are ignored because a uniform 1px border is applied globally to prevent
|
|
3
3
|
unexpected layout shift or flickering during focus, disabled, or error state transitions. */
|
|
4
|
-
/* recursica-ignore: --recursica_ui-
|
|
4
|
+
/* recursica-ignore: --recursica_ui-kit_components_dropdown_properties_border-size */
|
|
5
5
|
/* recursica-ignore: --recursica_ui-kit_components_dropdown_variants_states_disabled_properties_border-size */
|
|
6
6
|
/* recursica-ignore: --recursica_ui-kit_components_dropdown_variants_states_error_properties_border-size */
|
|
7
|
-
/* recursica-ignore: --recursica_ui-kit_components_dropdown_variants_states_focus_properties_border-size */
|
|
8
7
|
|
|
9
8
|
/* LAYOUT SPACING OVERRIDES:
|
|
10
|
-
- Sets the --form-control-margin-bottom spacing hook to map component-specific layout tokens.
|
|
9
|
+
- Sets the --form-control-margin-bottom spacing hook to map component-specific layout tokens.
|
|
10
|
+
- Also sets the --dropdown-control-{max,min}-width hooks consumed inline in Dropdown.tsx, since
|
|
11
|
+
the token schema no longer provides a single layout-agnostic min/max width. */
|
|
11
12
|
.layoutOverride {
|
|
12
13
|
--form-control-margin-bottom: var(
|
|
13
14
|
--recursica_ui-kit_components_dropdown_variants_layouts_stacked_properties_top-bottom-margin
|
|
14
15
|
);
|
|
16
|
+
--dropdown-control-max-width: var(
|
|
17
|
+
--recursica_ui-kit_components_dropdown_variants_layouts_stacked_properties_max-width
|
|
18
|
+
);
|
|
19
|
+
--dropdown-control-min-width: var(
|
|
20
|
+
--recursica_ui-kit_components_dropdown_variants_layouts_stacked_properties_min-width
|
|
21
|
+
);
|
|
15
22
|
}
|
|
16
23
|
|
|
17
24
|
.layoutOverride[data-form-layout="side-by-side"] {
|
|
18
25
|
--form-control-margin-bottom: var(
|
|
19
26
|
--recursica_ui-kit_components_dropdown_variants_layouts_side-by-side_properties_top-bottom-margin
|
|
20
27
|
);
|
|
28
|
+
--dropdown-control-max-width: var(
|
|
29
|
+
--recursica_ui-kit_components_dropdown_variants_layouts_side-by-side_properties_max-width
|
|
30
|
+
);
|
|
31
|
+
--dropdown-control-min-width: var(
|
|
32
|
+
--recursica_ui-kit_components_dropdown_variants_layouts_side-by-side_properties_min-width
|
|
33
|
+
);
|
|
21
34
|
}
|
|
22
35
|
|
|
23
36
|
/* HARDCODED VALUES:
|
|
@@ -101,13 +114,13 @@
|
|
|
101
114
|
|
|
102
115
|
/* Base State Default Execution */
|
|
103
116
|
background-color: var(
|
|
104
|
-
--recursica_ui-
|
|
117
|
+
--recursica_ui-kit_components_dropdown_properties_colors_background-color
|
|
105
118
|
);
|
|
106
119
|
border-color: var(
|
|
107
|
-
--recursica_ui-
|
|
120
|
+
--recursica_ui-kit_components_dropdown_properties_colors_border-color
|
|
108
121
|
);
|
|
109
122
|
color: var(
|
|
110
|
-
--recursica_ui-
|
|
123
|
+
--recursica_ui-kit_components_dropdown_properties_colors_text-color
|
|
111
124
|
);
|
|
112
125
|
|
|
113
126
|
outline: none;
|
|
@@ -153,13 +166,13 @@
|
|
|
153
166
|
width: var(--recursica_ui-kit_components_dropdown_properties_icon-size);
|
|
154
167
|
height: var(--recursica_ui-kit_components_dropdown_properties_icon-size);
|
|
155
168
|
color: var(
|
|
156
|
-
--recursica_ui-
|
|
169
|
+
--recursica_ui-kit_components_dropdown_properties_colors_leading-icon
|
|
157
170
|
);
|
|
158
171
|
}
|
|
159
172
|
|
|
160
173
|
.section[data-position="right"] :global(svg) {
|
|
161
174
|
color: var(
|
|
162
|
-
--recursica_ui-
|
|
175
|
+
--recursica_ui-kit_components_dropdown_properties_colors_trailing-icon
|
|
163
176
|
);
|
|
164
177
|
}
|
|
165
178
|
|
|
@@ -168,29 +181,16 @@
|
|
|
168
181
|
-------------------------------------- */
|
|
169
182
|
|
|
170
183
|
/* Focus State Mapping (Triggered internally via browser pseudo-pseudo-class) */
|
|
184
|
+
/* The token schema no longer provides per-component focus colors; apply the generic focus ring
|
|
185
|
+
tokens as a box-shadow ring instead of a color swap. */
|
|
171
186
|
.input:focus-within,
|
|
172
187
|
.input:focus {
|
|
173
|
-
|
|
174
|
-
--
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
color: var(
|
|
180
|
-
--recursica_ui-kit_components_dropdown_variants_states_focus_properties_colors_text
|
|
181
|
-
);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.root:focus-within .section[data-position="left"] :global(svg) {
|
|
185
|
-
color: var(
|
|
186
|
-
--recursica_ui-kit_components_dropdown_variants_states_focus_properties_colors_leading-icon
|
|
187
|
-
);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.root:focus-within .section[data-position="right"] :global(svg) {
|
|
191
|
-
color: var(
|
|
192
|
-
--recursica_ui-kit_components_dropdown_variants_states_focus_properties_colors_trailing-icon
|
|
193
|
-
);
|
|
188
|
+
box-shadow:
|
|
189
|
+
0 0 0 var(--recursica_brand_states_focus_border-size)
|
|
190
|
+
var(--recursica_brand_states_focus_color),
|
|
191
|
+
0 0 var(--recursica_brand_states_focus_blur)
|
|
192
|
+
var(--recursica_brand_states_focus_margin)
|
|
193
|
+
var(--recursica_brand_states_focus_color);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
/* Error State Mapping (Propagated strictly down from the wrapper DOM context) */
|
|
@@ -199,10 +199,10 @@
|
|
|
199
199
|
--recursica_ui-kit_components_dropdown_variants_states_error_properties_colors_border-color
|
|
200
200
|
) !important;
|
|
201
201
|
background-color: var(
|
|
202
|
-
--recursica_ui-kit_components_dropdown_variants_states_error_properties_colors_background
|
|
202
|
+
--recursica_ui-kit_components_dropdown_variants_states_error_properties_colors_background-color
|
|
203
203
|
) !important;
|
|
204
204
|
color: var(
|
|
205
|
-
--recursica_ui-kit_components_dropdown_variants_states_error_properties_colors_text
|
|
205
|
+
--recursica_ui-kit_components_dropdown_variants_states_error_properties_colors_text-color
|
|
206
206
|
) !important;
|
|
207
207
|
}
|
|
208
208
|
|
|
@@ -224,10 +224,13 @@
|
|
|
224
224
|
--recursica_ui-kit_components_dropdown_variants_states_disabled_properties_colors_border-color
|
|
225
225
|
) !important;
|
|
226
226
|
background-color: var(
|
|
227
|
-
--recursica_ui-kit_components_dropdown_variants_states_disabled_properties_colors_background
|
|
227
|
+
--recursica_ui-kit_components_dropdown_variants_states_disabled_properties_colors_background-color
|
|
228
228
|
) !important;
|
|
229
229
|
color: var(
|
|
230
|
-
--recursica_ui-kit_components_dropdown_variants_states_disabled_properties_colors_text
|
|
230
|
+
--recursica_ui-kit_components_dropdown_variants_states_disabled_properties_colors_text-color
|
|
231
|
+
) !important;
|
|
232
|
+
opacity: var(
|
|
233
|
+
--recursica_ui-kit_components_dropdown_variants_states_disabled_properties_opacity
|
|
231
234
|
) !important;
|
|
232
235
|
cursor: not-allowed;
|
|
233
236
|
}
|
|
@@ -250,12 +253,10 @@
|
|
|
250
253
|
|
|
251
254
|
.dropdown {
|
|
252
255
|
background-color: var(
|
|
253
|
-
--recursica_ui-
|
|
256
|
+
--recursica_ui-kit_components_dropdown_properties_colors_background-color
|
|
254
257
|
);
|
|
255
258
|
border: 1px solid
|
|
256
|
-
var(
|
|
257
|
-
--recursica_ui-kit_components_dropdown_variants_states_default_properties_colors_border-color
|
|
258
|
-
);
|
|
259
|
+
var(--recursica_ui-kit_components_dropdown_properties_colors_border-color);
|
|
259
260
|
border-radius: var(
|
|
260
261
|
--recursica_ui-kit_components_dropdown_properties_border-radius
|
|
261
262
|
);
|
|
@@ -273,7 +274,7 @@
|
|
|
273
274
|
--recursica_ui-kit_components_dropdown_properties_text_font-weight
|
|
274
275
|
);
|
|
275
276
|
color: var(
|
|
276
|
-
--recursica_ui-
|
|
277
|
+
--recursica_ui-kit_components_dropdown_properties_colors_text-color
|
|
277
278
|
);
|
|
278
279
|
padding: calc(
|
|
279
280
|
var(--recursica_ui-kit_components_dropdown_properties_vertical-padding) *
|
|
@@ -283,14 +284,16 @@
|
|
|
283
284
|
cursor: pointer;
|
|
284
285
|
}
|
|
285
286
|
|
|
287
|
+
/* No per-option selected/hovered tokens exist in the schema; use the generic overlay tint
|
|
288
|
+
(same technique as the Mantine reference implementation) to highlight the active option. */
|
|
286
289
|
.option[data-selected="true"],
|
|
287
290
|
.option[data-combobox-selected="true"],
|
|
288
291
|
.option[data-hovered="true"],
|
|
289
292
|
.option:hover {
|
|
290
|
-
background-color:
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
293
|
+
background-color: color-mix(
|
|
294
|
+
in srgb,
|
|
295
|
+
var(--recursica_brand_states_hover_color)
|
|
296
|
+
calc(var(--recursica_brand_states_hover_opacity) * 100%),
|
|
297
|
+
transparent
|
|
295
298
|
);
|
|
296
299
|
}
|