@recursica/mui-adapter 0.18.0 → 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 +25 -0
- package/SETUP.md +1 -1
- 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 -4694
- package/dist/mui-adapter.js.map +1 -1
- package/dist/src/components/Tree/Tree.d.ts +9 -5
- package/llms.txt +2 -0
- 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/Layer/USAGE.md +50 -0
- 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/RecursicaThemeProvider/USAGE.md +60 -0
- 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
|
@@ -191,7 +191,7 @@ HARDCODED VALUES:
|
|
|
191
191
|
|
|
192
192
|
/* Image variant styles */
|
|
193
193
|
background-color: var(
|
|
194
|
-
--recursica_ui-kit_components_avatar_variants_styles_image_properties_colors_background
|
|
194
|
+
--recursica_ui-kit_components_avatar_variants_styles_image_properties_colors_background-color
|
|
195
195
|
);
|
|
196
196
|
border-color: var(
|
|
197
197
|
--recursica_ui-kit_components_avatar_variants_styles_image_properties_colors_border-color
|
|
@@ -248,7 +248,7 @@ HARDCODED VALUES:
|
|
|
248
248
|
--recursica_ui-kit_components_avatar_variants_styles_icon_variants_types_solid_properties_border-size
|
|
249
249
|
);
|
|
250
250
|
background-color: var(
|
|
251
|
-
--recursica_ui-kit_components_avatar_variants_styles_icon_variants_types_solid_properties_colors_background
|
|
251
|
+
--recursica_ui-kit_components_avatar_variants_styles_icon_variants_types_solid_properties_colors_background-color
|
|
252
252
|
);
|
|
253
253
|
border-color: var(
|
|
254
254
|
--recursica_ui-kit_components_avatar_variants_styles_icon_variants_types_solid_properties_colors_border-color
|
|
@@ -263,7 +263,7 @@ HARDCODED VALUES:
|
|
|
263
263
|
--recursica_ui-kit_components_avatar_variants_styles_icon_variants_types_outline_properties_border-size
|
|
264
264
|
);
|
|
265
265
|
background-color: var(
|
|
266
|
-
--recursica_ui-kit_components_avatar_variants_styles_icon_variants_types_outline_properties_colors_background
|
|
266
|
+
--recursica_ui-kit_components_avatar_variants_styles_icon_variants_types_outline_properties_colors_background-color
|
|
267
267
|
);
|
|
268
268
|
border-color: var(
|
|
269
269
|
--recursica_ui-kit_components_avatar_variants_styles_icon_variants_types_outline_properties_colors_border-color
|
|
@@ -278,7 +278,7 @@ HARDCODED VALUES:
|
|
|
278
278
|
--recursica_ui-kit_components_avatar_variants_styles_icon_variants_types_ghost_properties_border-size
|
|
279
279
|
);
|
|
280
280
|
background-color: var(
|
|
281
|
-
--recursica_ui-kit_components_avatar_variants_styles_icon_variants_types_ghost_properties_colors_background
|
|
281
|
+
--recursica_ui-kit_components_avatar_variants_styles_icon_variants_types_ghost_properties_colors_background-color
|
|
282
282
|
);
|
|
283
283
|
border-color: var(
|
|
284
284
|
--recursica_ui-kit_components_avatar_variants_styles_icon_variants_types_ghost_properties_colors_border-color
|
|
@@ -303,7 +303,7 @@ HARDCODED VALUES:
|
|
|
303
303
|
--recursica_ui-kit_components_avatar_variants_styles_text_variants_types_solid_properties_border-size
|
|
304
304
|
);
|
|
305
305
|
background-color: var(
|
|
306
|
-
--recursica_ui-kit_components_avatar_variants_styles_text_variants_types_solid_properties_colors_background
|
|
306
|
+
--recursica_ui-kit_components_avatar_variants_styles_text_variants_types_solid_properties_colors_background-color
|
|
307
307
|
);
|
|
308
308
|
border-color: var(
|
|
309
309
|
--recursica_ui-kit_components_avatar_variants_styles_text_variants_types_solid_properties_colors_border-color
|
|
@@ -318,7 +318,7 @@ HARDCODED VALUES:
|
|
|
318
318
|
--recursica_ui-kit_components_avatar_variants_styles_text_variants_types_outline_properties_border-size
|
|
319
319
|
);
|
|
320
320
|
background-color: var(
|
|
321
|
-
--recursica_ui-kit_components_avatar_variants_styles_text_variants_types_outline_properties_colors_background
|
|
321
|
+
--recursica_ui-kit_components_avatar_variants_styles_text_variants_types_outline_properties_colors_background-color
|
|
322
322
|
);
|
|
323
323
|
border-color: var(
|
|
324
324
|
--recursica_ui-kit_components_avatar_variants_styles_text_variants_types_outline_properties_colors_border-color
|
|
@@ -333,7 +333,7 @@ HARDCODED VALUES:
|
|
|
333
333
|
--recursica_ui-kit_components_avatar_variants_styles_text_variants_types_ghost_properties_border-size
|
|
334
334
|
);
|
|
335
335
|
background-color: var(
|
|
336
|
-
--recursica_ui-kit_components_avatar_variants_styles_text_variants_types_ghost_properties_colors_background
|
|
336
|
+
--recursica_ui-kit_components_avatar_variants_styles_text_variants_types_ghost_properties_colors_background-color
|
|
337
337
|
);
|
|
338
338
|
border-color: var(
|
|
339
339
|
--recursica_ui-kit_components_avatar_variants_styles_text_variants_types_ghost_properties_colors_border-color
|
|
@@ -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
|
|