@techsio/ui-kit 0.56.1 → 0.58.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/README.md +128 -133
- package/dist/atoms/action-icon.js +9 -8
- package/dist/atoms/button.js +78 -18
- package/dist/atoms/checkbox.js +77 -17
- package/dist/atoms/hotkeys.js +26 -7
- package/dist/atoms/icon.js +5 -5
- package/dist/atoms/image.js +107 -2
- package/dist/atoms/input.js +57 -9
- package/dist/atoms/label.js +13 -4
- package/dist/atoms/link-button.js +14 -12
- package/dist/atoms/link.js +18 -4
- package/dist/atoms/numeric-input.js +293 -76
- package/dist/atoms/rating.js +306 -73
- package/dist/atoms/skeleton.js +18 -14
- package/dist/atoms/status-text.js +31 -18
- package/dist/atoms/textarea.js +59 -12
- package/dist/atoms/tooltip.js +64 -43
- package/dist/hotkeys.js +1 -0
- package/dist/internal/choice-control.js +173 -0
- package/dist/internal/combobox-query-sync.js +11 -0
- package/dist/internal/date-picker-coordinator.js +56 -40
- package/dist/internal/date-picker-dom.js +44 -0
- package/dist/internal/date-picker-input.js +30 -0
- package/dist/internal/described-by.js +23 -18
- package/dist/internal/form-control-lifecycle.js +122 -0
- package/dist/internal/molecules/command.context.js +1 -0
- package/dist/internal/molecules/drawer.context.js +1 -0
- package/dist/internal/molecules/vertical-navigation.context.js +1 -0
- package/dist/internal/molecules/vertical-navigation.styles.js +9 -2
- package/dist/internal/numeric-input-editing.js +87 -0
- package/dist/internal/organisms/sidebar.context.js +1 -0
- package/dist/internal/organisms/sidebar.focus.js +1 -0
- package/dist/internal/overlay-portal.js +72 -0
- package/dist/internal/reduced-motion.js +1 -0
- package/dist/internal/use-effective-disabled.js +8 -0
- package/dist/molecules/accordion.js +44 -30
- package/dist/molecules/availability-status.js +1 -0
- package/dist/molecules/breadcrumb.js +11 -11
- package/dist/molecules/carousel.js +279 -97
- package/dist/molecules/cascade-select.js +327 -81
- package/dist/molecules/chart.js +276 -38
- package/dist/molecules/color-select.js +181 -62
- package/dist/molecules/combobox.js +535 -182
- package/dist/molecules/command.js +2 -1
- package/dist/molecules/date-picker.js +571 -119
- package/dist/molecules/dialog.js +81 -47
- package/dist/molecules/drawer.js +54 -5
- package/dist/molecules/file-upload.js +373 -37
- package/dist/molecules/form-checkbox.js +65 -22
- package/dist/molecules/form-error-summary.js +29 -5
- package/dist/molecules/form-input.js +26 -30
- package/dist/molecules/form-numeric-input.js +11 -9
- package/dist/molecules/form-textarea.js +26 -23
- package/dist/molecules/menu.js +170 -47
- package/dist/molecules/pagination.js +100 -28
- package/dist/molecules/phone-input.js +172 -37
- package/dist/molecules/popover.js +53 -26
- package/dist/molecules/price-block.js +1 -0
- package/dist/molecules/product-card.js +23 -18
- package/dist/molecules/quantity-field.js +4 -2
- package/dist/molecules/radio-card.js +102 -30
- package/dist/molecules/radio-group.js +108 -31
- package/dist/molecules/search-form.js +116 -13
- package/dist/molecules/select.js +226 -81
- package/dist/molecules/slider.js +141 -30
- package/dist/molecules/steps.js +181 -50
- package/dist/molecules/switch.js +85 -20
- package/dist/molecules/tabs.js +227 -31
- package/dist/molecules/toast.js +146 -51
- package/dist/molecules/totals-summary.js +2 -1
- package/dist/molecules/tour.js +9 -5
- package/dist/molecules/tree-view.js +255 -109
- package/dist/molecules/vertical-navigation.js +8 -4
- package/dist/organisms/data-table.fields.js +25 -5
- package/dist/organisms/data-table.helpers.js +6 -2
- package/dist/organisms/data-table.js +580 -151
- package/dist/organisms/footer.js +18 -11
- package/dist/organisms/gallery.js +61 -24
- package/dist/organisms/header.js +106 -32
- package/dist/organisms/line-item.js +1 -0
- package/dist/organisms/sidebar.js +1 -0
- package/dist/organisms/table.js +22 -7
- package/dist/src/atoms/action-icon.d.ts +10 -10
- package/dist/src/atoms/action-icon.d.ts.map +1 -1
- package/dist/src/atoms/badge.d.ts +3 -3
- package/dist/src/atoms/badge.d.ts.map +1 -1
- package/dist/src/atoms/button.d.ts +35 -24
- package/dist/src/atoms/button.d.ts.map +1 -1
- package/dist/src/atoms/checkbox.d.ts +6 -5
- package/dist/src/atoms/checkbox.d.ts.map +1 -1
- package/dist/src/atoms/hotkeys.d.ts +3 -2
- package/dist/src/atoms/hotkeys.d.ts.map +1 -1
- package/dist/src/atoms/icon.d.ts +18 -17
- package/dist/src/atoms/icon.d.ts.map +1 -1
- package/dist/src/atoms/image.d.ts +14 -6
- package/dist/src/atoms/image.d.ts.map +1 -1
- package/dist/src/atoms/input.d.ts +23 -14
- package/dist/src/atoms/input.d.ts.map +1 -1
- package/dist/src/atoms/label.d.ts +4 -4
- package/dist/src/atoms/label.d.ts.map +1 -1
- package/dist/src/atoms/link-button.d.ts +54 -31
- package/dist/src/atoms/link-button.d.ts.map +1 -1
- package/dist/src/atoms/link.d.ts +30 -9
- package/dist/src/atoms/link.d.ts.map +1 -1
- package/dist/src/atoms/numeric-input.d.ts +23 -19
- package/dist/src/atoms/numeric-input.d.ts.map +1 -1
- package/dist/src/atoms/rating.d.ts +54 -26
- package/dist/src/atoms/rating.d.ts.map +1 -1
- package/dist/src/atoms/skeleton.d.ts +9 -9
- package/dist/src/atoms/skeleton.d.ts.map +1 -1
- package/dist/src/atoms/status-text.d.ts +21 -13
- package/dist/src/atoms/status-text.d.ts.map +1 -1
- package/dist/src/atoms/textarea.d.ts +22 -20
- package/dist/src/atoms/textarea.d.ts.map +1 -1
- package/dist/src/atoms/tooltip.d.ts +5 -5
- package/dist/src/atoms/tooltip.d.ts.map +1 -1
- package/dist/src/hotkeys.d.ts +1 -1
- package/dist/src/hotkeys.d.ts.map +1 -1
- package/dist/src/internal/choice-control.d.ts +18 -0
- package/dist/src/internal/choice-control.d.ts.map +1 -0
- package/dist/src/internal/combobox-query-sync.d.ts +4 -0
- package/dist/src/internal/combobox-query-sync.d.ts.map +1 -0
- package/dist/src/internal/date-picker-coordinator.d.ts +7 -1
- package/dist/src/internal/date-picker-coordinator.d.ts.map +1 -1
- package/dist/src/internal/date-picker-dom.d.ts +10 -0
- package/dist/src/internal/date-picker-dom.d.ts.map +1 -0
- package/dist/src/internal/date-picker-input.d.ts +7 -0
- package/dist/src/internal/date-picker-input.d.ts.map +1 -0
- package/dist/src/internal/described-by.d.ts +7 -1
- package/dist/src/internal/described-by.d.ts.map +1 -1
- package/dist/src/internal/form-control-lifecycle.d.ts +22 -0
- package/dist/src/internal/form-control-lifecycle.d.ts.map +1 -0
- package/dist/src/internal/molecules/vertical-navigation.context.d.ts +1 -1
- package/dist/src/internal/molecules/vertical-navigation.context.d.ts.map +1 -1
- package/dist/src/internal/molecules/vertical-navigation.styles.d.ts +21 -0
- package/dist/src/internal/molecules/vertical-navigation.styles.d.ts.map +1 -1
- package/dist/src/internal/numeric-input-editing.d.ts +13 -0
- package/dist/src/internal/numeric-input-editing.d.ts.map +1 -0
- package/dist/src/internal/overlay-portal.d.ts +18 -0
- package/dist/src/internal/overlay-portal.d.ts.map +1 -0
- package/dist/src/internal/use-effective-disabled.d.ts +4 -0
- package/dist/src/internal/use-effective-disabled.d.ts.map +1 -0
- package/dist/src/molecules/accordion.d.ts +25 -19
- package/dist/src/molecules/accordion.d.ts.map +1 -1
- package/dist/src/molecules/availability-status.d.ts +4 -1
- package/dist/src/molecules/availability-status.d.ts.map +1 -1
- package/dist/src/molecules/breadcrumb.d.ts +2 -2
- package/dist/src/molecules/breadcrumb.d.ts.map +1 -1
- package/dist/src/molecules/carousel.d.ts +51 -52
- package/dist/src/molecules/carousel.d.ts.map +1 -1
- package/dist/src/molecules/cascade-select.d.ts +23 -8
- package/dist/src/molecules/cascade-select.d.ts.map +1 -1
- package/dist/src/molecules/chart.d.ts +7 -1
- package/dist/src/molecules/chart.d.ts.map +1 -1
- package/dist/src/molecules/color-select.d.ts +19 -3
- package/dist/src/molecules/color-select.d.ts.map +1 -1
- package/dist/src/molecules/combobox.d.ts +23 -5
- package/dist/src/molecules/combobox.d.ts.map +1 -1
- package/dist/src/molecules/command.d.ts +1 -1
- package/dist/src/molecules/date-picker.d.ts +7 -3
- package/dist/src/molecules/date-picker.d.ts.map +1 -1
- package/dist/src/molecules/dialog.d.ts +7 -3
- package/dist/src/molecules/dialog.d.ts.map +1 -1
- package/dist/src/molecules/drawer.d.ts +4 -4
- package/dist/src/molecules/drawer.d.ts.map +1 -1
- package/dist/src/molecules/file-upload.d.ts +11 -6
- package/dist/src/molecules/file-upload.d.ts.map +1 -1
- package/dist/src/molecules/form-checkbox.d.ts +7 -2
- package/dist/src/molecules/form-checkbox.d.ts.map +1 -1
- package/dist/src/molecules/form-error-summary.d.ts +4 -3
- package/dist/src/molecules/form-error-summary.d.ts.map +1 -1
- package/dist/src/molecules/form-input.d.ts +5 -6
- package/dist/src/molecules/form-input.d.ts.map +1 -1
- package/dist/src/molecules/form-numeric-input.d.ts +5 -5
- package/dist/src/molecules/form-numeric-input.d.ts.map +1 -1
- package/dist/src/molecules/form-textarea.d.ts +5 -6
- package/dist/src/molecules/form-textarea.d.ts.map +1 -1
- package/dist/src/molecules/menu.d.ts +17 -3
- package/dist/src/molecules/menu.d.ts.map +1 -1
- package/dist/src/molecules/pagination.d.ts +1 -1
- package/dist/src/molecules/pagination.d.ts.map +1 -1
- package/dist/src/molecules/phone-input.d.ts +4 -1
- package/dist/src/molecules/phone-input.d.ts.map +1 -1
- package/dist/src/molecules/popover.d.ts +7 -1
- package/dist/src/molecules/popover.d.ts.map +1 -1
- package/dist/src/molecules/price-block.d.ts +1 -1
- package/dist/src/molecules/price-block.d.ts.map +1 -1
- package/dist/src/molecules/product-card.d.ts +20 -25
- package/dist/src/molecules/product-card.d.ts.map +1 -1
- package/dist/src/molecules/quantity-field.d.ts +1 -1
- package/dist/src/molecules/quantity-field.d.ts.map +1 -1
- package/dist/src/molecules/radio-card.d.ts +10 -3
- package/dist/src/molecules/radio-card.d.ts.map +1 -1
- package/dist/src/molecules/radio-group.d.ts +15 -6
- package/dist/src/molecules/radio-group.d.ts.map +1 -1
- package/dist/src/molecules/search-form.d.ts +37 -12
- package/dist/src/molecules/search-form.d.ts.map +1 -1
- package/dist/src/molecules/select.d.ts +34 -29
- package/dist/src/molecules/select.d.ts.map +1 -1
- package/dist/src/molecules/slider.d.ts +23 -2
- package/dist/src/molecules/slider.d.ts.map +1 -1
- package/dist/src/molecules/steps.d.ts +30 -10
- package/dist/src/molecules/steps.d.ts.map +1 -1
- package/dist/src/molecules/switch.d.ts +54 -33
- package/dist/src/molecules/switch.d.ts.map +1 -1
- package/dist/src/molecules/tabs.d.ts +11 -11
- package/dist/src/molecules/tabs.d.ts.map +1 -1
- package/dist/src/molecules/toast.d.ts +25 -13
- package/dist/src/molecules/toast.d.ts.map +1 -1
- package/dist/src/molecules/totals-summary.d.ts +1 -1
- package/dist/src/molecules/totals-summary.d.ts.map +1 -1
- package/dist/src/molecules/tour.d.ts +1 -1
- package/dist/src/molecules/tour.d.ts.map +1 -1
- package/dist/src/molecules/tree-view.d.ts +16 -20
- package/dist/src/molecules/tree-view.d.ts.map +1 -1
- package/dist/src/molecules/vertical-navigation.d.ts +2 -2
- package/dist/src/molecules/vertical-navigation.d.ts.map +1 -1
- package/dist/src/organisms/data-table.d.ts +24 -3
- package/dist/src/organisms/data-table.d.ts.map +1 -1
- package/dist/src/organisms/data-table.fields.d.ts +4 -1
- package/dist/src/organisms/data-table.fields.d.ts.map +1 -1
- package/dist/src/organisms/data-table.helpers.d.ts +5 -12
- package/dist/src/organisms/data-table.helpers.d.ts.map +1 -1
- package/dist/src/organisms/footer.d.ts +5 -5
- package/dist/src/organisms/footer.d.ts.map +1 -1
- package/dist/src/organisms/gallery.d.ts +11 -9
- package/dist/src/organisms/gallery.d.ts.map +1 -1
- package/dist/src/organisms/header.d.ts +24 -22
- package/dist/src/organisms/header.d.ts.map +1 -1
- package/dist/src/organisms/table.d.ts +14 -14
- package/dist/src/organisms/table.d.ts.map +1 -1
- package/dist/src/templates/accordion.d.ts +8 -6
- package/dist/src/templates/accordion.d.ts.map +1 -1
- package/dist/src/templates/breadcrumb.d.ts +1 -1
- package/dist/src/templates/breadcrumb.d.ts.map +1 -1
- package/dist/src/templates/carousel.d.ts +3 -3
- package/dist/src/templates/carousel.d.ts.map +1 -1
- package/dist/src/templates/facet-filter-panel.d.ts +9 -3
- package/dist/src/templates/facet-filter-panel.d.ts.map +1 -1
- package/dist/src/templates/gallery.d.ts +2 -2
- package/dist/src/templates/gallery.d.ts.map +1 -1
- package/dist/src/templates/numeric-input.d.ts +1 -1
- package/dist/src/templates/numeric-input.d.ts.map +1 -1
- package/dist/src/templates/popover.d.ts +4 -2
- package/dist/src/templates/popover.d.ts.map +1 -1
- package/dist/src/templates/product-card.d.ts +12 -4
- package/dist/src/templates/product-card.d.ts.map +1 -1
- package/dist/src/templates/search-suggestions.d.ts +1 -1
- package/dist/src/templates/select.d.ts +7 -2
- package/dist/src/templates/select.d.ts.map +1 -1
- package/dist/src/templates/tabs.d.ts +8 -7
- package/dist/src/templates/tabs.d.ts.map +1 -1
- package/dist/src/theme/theme-config.d.ts +9 -16
- package/dist/src/theme/theme-config.d.ts.map +1 -1
- package/dist/src/theme/theme-provider.d.ts +16 -21
- package/dist/src/theme/theme-provider.d.ts.map +1 -1
- package/dist/src/theme/theme-toggle.d.ts.map +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/templates/accordion.js +3 -1
- package/dist/templates/breadcrumb.js +11 -4
- package/dist/templates/carousel.js +3 -6
- package/dist/templates/facet-filter-panel.js +121 -52
- package/dist/templates/gallery.js +6 -2
- package/dist/templates/numeric-input.js +6 -1
- package/dist/templates/popover.js +6 -1
- package/dist/templates/product-card.js +52 -26
- package/dist/templates/select.js +6 -1
- package/dist/templates/tabs.js +4 -2
- package/dist/theme/theme-config.js +8 -16
- package/dist/theme/theme-provider.js +89 -63
- package/dist/theme/theme-toggle.js +17 -9
- package/dist/utils.js +11 -1
- package/package.json +9 -5
- package/src/tokens/_base.css +4 -3
- package/src/tokens/_business-atoms.css +103 -0
- package/src/tokens/_foundation-overrides.css +251 -0
- package/src/tokens/_reset.css +10 -10
- package/src/tokens/_scheme-scopes.css +4144 -0
- package/src/tokens/_semantic.css +1 -23
- package/src/tokens/_tokens-base.css +36 -32
- package/src/tokens/_typography.css +2 -1
- package/src/tokens/components/_form-control.css +149 -6
- package/src/tokens/components/_popup-surface.css +15 -29
- package/src/tokens/components/atoms/_action-icon.css +49 -0
- package/src/tokens/components/atoms/_button.css +67 -0
- package/src/tokens/components/atoms/_checkbox.css +47 -4
- package/src/tokens/components/atoms/_hotkeys.css +2 -0
- package/src/tokens/components/atoms/_icon.css +60 -7
- package/src/tokens/components/atoms/_image.css +18 -0
- package/src/tokens/components/atoms/_input.css +20 -0
- package/src/tokens/components/atoms/_label.css +3 -7
- package/src/tokens/components/atoms/_link.css +47 -5
- package/src/tokens/components/atoms/_numeric-input.css +111 -2
- package/src/tokens/components/atoms/_rating.css +55 -6
- package/src/tokens/components/atoms/_skeleton.css +12 -2
- package/src/tokens/components/atoms/_status-text.css +35 -5
- package/src/tokens/components/atoms/_textarea.css +32 -3
- package/src/tokens/components/atoms/_tooltip.css +25 -0
- package/src/tokens/components/molecules/_accordion.css +46 -5
- package/src/tokens/components/molecules/_breadcrumb.css +15 -4
- package/src/tokens/components/molecules/_carousel.css +67 -0
- package/src/tokens/components/molecules/_cascade-select.css +104 -0
- package/src/tokens/components/molecules/_chart.css +12 -14
- package/src/tokens/components/molecules/_color-select.css +21 -0
- package/src/tokens/components/molecules/_combobox.css +81 -0
- package/src/tokens/components/molecules/_command.css +1 -0
- package/src/tokens/components/molecules/_date-picker.css +66 -10
- package/src/tokens/components/molecules/_dialog.css +36 -4
- package/src/tokens/components/molecules/_drawer.css +39 -3
- package/src/tokens/components/molecules/_file-upload.css +16 -1
- package/src/tokens/components/molecules/_menu.css +17 -0
- package/src/tokens/components/molecules/_pagination.css +19 -0
- package/src/tokens/components/molecules/_phone-input.css +20 -5
- package/src/tokens/components/molecules/_popover.css +34 -0
- package/src/tokens/components/molecules/_product-card.css +49 -0
- package/src/tokens/components/molecules/_radio-card.css +35 -0
- package/src/tokens/components/molecules/_radio-group.css +8 -0
- package/src/tokens/components/molecules/_select.css +33 -0
- package/src/tokens/components/molecules/_slider.css +5 -0
- package/src/tokens/components/molecules/_steps.css +52 -0
- package/src/tokens/components/molecules/_switch.css +59 -10
- package/src/tokens/components/molecules/_tabs.css +61 -3
- package/src/tokens/components/molecules/_toast.css +60 -0
- package/src/tokens/components/molecules/_totals-summary.css +22 -22
- package/src/tokens/components/molecules/_tour.css +16 -1
- package/src/tokens/components/molecules/_tree-view.css +27 -3
- package/src/tokens/components/molecules/_vertical-navigation.css +21 -3
- package/src/tokens/components/organisms/_data-table.css +97 -0
- package/src/tokens/components/organisms/_footer.css +9 -0
- package/src/tokens/components/organisms/_gallery.css +11 -0
- package/src/tokens/components/organisms/_header.css +22 -0
- package/src/tokens/components/organisms/_sidebar.css +1 -1
- package/src/tokens/components/organisms/_table.css +31 -0
- package/src/tokens/components/templates/_facet-filter-panel.css +11 -1
- package/src/tokens/figma/akros/variables.css +6 -6
- package/src/tokens/figma/brand-overrides.css +162 -57
- package/src/tokens/figma/business/variables.css +6 -6
- package/src/tokens/figma/cyber/variables.css +115 -38
- package/src/tokens/figma/cyber-dark/variables.css +115 -38
- package/src/tokens/figma/dark/variables.css +4 -4
- package/src/tokens/figma/light/variables.css +43 -40
- package/src/tokens/figma/{neo → n1}/variables.css +114 -114
- package/src/tokens/figma/variables.css +639 -240
- package/src/tokens/theme.css +24 -4
- package/src/tokens/_colors.css +0 -5
- package/src/tokens/figma/neo-dark/variables.css +0 -457
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Icon —
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Color tokens are exported but not consumed by the TSX (icons inherit from
|
|
6
|
-
* surrounding text color). They're defined here so they're available when
|
|
7
|
-
* stories or call sites opt into colored icons.
|
|
2
|
+
* Icon — sizes and component color aliases come from Figma tokens.
|
|
3
|
+
* `color="current"` inherits text; explicit colors consume --color-icon-fg-*.
|
|
4
|
+
* Semantic glyph aliases below use the MDI and MDI Light families.
|
|
8
5
|
*/
|
|
9
6
|
|
|
10
7
|
@plugin "@iconify/tailwind4";
|
|
@@ -59,8 +56,13 @@
|
|
|
59
56
|
@apply icon-[mdi--chevron-up];
|
|
60
57
|
}
|
|
61
58
|
|
|
59
|
+
/* Keep a complete progress ring recognizable when reduced motion stops rotation. */
|
|
62
60
|
@utility token-icon-spinner {
|
|
63
|
-
@apply icon-[
|
|
61
|
+
@apply icon-[mdi--loading];
|
|
62
|
+
--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-opacity='.25' fill-rule='evenodd' d='M12 2a10 10 0 1 0 0 20a10 10 0 1 0 0-20m0 2a8 8 0 1 1 0 16a8 8 0 1 1 0-16'/%3E%3Cpath fill='black' d='M12 4V2A10 10 0 0 0 2 12h2a8 8 0 0 1 8-8'/%3E%3C/svg%3E");
|
|
63
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
64
|
+
@apply animate-spin;
|
|
65
|
+
}
|
|
64
66
|
}
|
|
65
67
|
@utility token-icon-play {
|
|
66
68
|
@apply icon-[mdi--play];
|
|
@@ -166,3 +168,54 @@
|
|
|
166
168
|
@utility token-icon-decrement {
|
|
167
169
|
@apply token-icon-chevron-down;
|
|
168
170
|
}
|
|
171
|
+
|
|
172
|
+
/* Meaningful primary icons use semantic text contrast, never the brand tint. */
|
|
173
|
+
@theme static {
|
|
174
|
+
--color-icon-accent-safe: var(--color-fg-accent-primary);
|
|
175
|
+
--color-icon-fg-accent-safe: var(--color-icon-accent-safe);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@theme static {
|
|
179
|
+
--color-icon-secondary-safe: var(--color-fg-accent-secondary);
|
|
180
|
+
--color-icon-danger-safe: var(--color-danger-fg);
|
|
181
|
+
--color-icon-success-safe: var(--color-success-fg);
|
|
182
|
+
--color-icon-warning-safe: var(--color-warning-fg);
|
|
183
|
+
--color-icon-fg-secondary-safe: var(--color-icon-secondary-safe);
|
|
184
|
+
--color-icon-fg-danger-safe: var(--color-icon-danger-safe);
|
|
185
|
+
--color-icon-fg-success-safe: var(--color-icon-success-safe);
|
|
186
|
+
--color-icon-fg-warning-safe: var(--color-icon-warning-safe);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* Mask backgrounds are meaningful foreground paint. Preserve the system-mapped
|
|
190
|
+
* parent foreground, not the author's brand color, under Windows High Contrast.
|
|
191
|
+
* Pseudo-elements cover native checkbox check/mixed marks as well as icons. */
|
|
192
|
+
@media (forced-colors: active) {
|
|
193
|
+
:where(span, i, svg):is([class*="token-icon-"], [class*="icon-["]) {
|
|
194
|
+
color: inherit !important;
|
|
195
|
+
forced-color-adjust: preserve-parent-color;
|
|
196
|
+
background-color: currentColor !important;
|
|
197
|
+
}
|
|
198
|
+
input[type="checkbox"]::after {
|
|
199
|
+
forced-color-adjust: none;
|
|
200
|
+
background-color: CanvasText !important;
|
|
201
|
+
}
|
|
202
|
+
input[type="checkbox"]:disabled::after {
|
|
203
|
+
background-color: GrayText !important;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
@media (forced-colors: active) {
|
|
208
|
+
:where(span, i, svg):is([class*="token-icon-"], [class*="icon-["]):is(
|
|
209
|
+
[data-disabled]:not([data-disabled="false"]),
|
|
210
|
+
[aria-disabled="true"]
|
|
211
|
+
),
|
|
212
|
+
:is(
|
|
213
|
+
[data-disabled]:not([data-disabled="false"]),
|
|
214
|
+
[aria-disabled="true"],
|
|
215
|
+
:disabled
|
|
216
|
+
)
|
|
217
|
+
:where(span, i, svg):is([class*="token-icon-"], [class*="icon-["]) {
|
|
218
|
+
color: GrayText !important;
|
|
219
|
+
background-color: GrayText !important;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
@@ -3,3 +3,21 @@
|
|
|
3
3
|
* Figma exports --size-image-{sm,md,lg} at identical resolved values
|
|
4
4
|
* (5rem / 10rem / 15rem) so no overrides needed here.
|
|
5
5
|
*/
|
|
6
|
+
|
|
7
|
+
/* Opt-in media fallback preserves an image box without exposing broken alt copy. */
|
|
8
|
+
@theme static {
|
|
9
|
+
--color-image-placeholder: var(--color-fill-highlight);
|
|
10
|
+
--color-image-placeholder-text: var(--color-fg-secondary);
|
|
11
|
+
--color-image-bg-fallback: var(--color-image-placeholder);
|
|
12
|
+
--color-image-fg-fallback: var(--color-image-placeholder-text);
|
|
13
|
+
--text-image-fallback-icon: var(--text-icon-lg);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Follow the box's preferred ratio, including a caller's aspect-* override. */
|
|
17
|
+
@utility image-reservation {
|
|
18
|
+
aspect-ratio: inherit;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@utility token-icon-image-unavailable {
|
|
22
|
+
@apply icon-[mdi--image-off-outline];
|
|
23
|
+
}
|
|
@@ -12,7 +12,27 @@
|
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
@theme static {
|
|
15
|
+
/* Read-only reference and public component aliases. */
|
|
16
|
+
--color-input-readonly: var(--color-form-control-readonly);
|
|
17
|
+
--color-input-text-readonly: var(--color-form-control-text);
|
|
18
|
+
--color-input-bg-readonly: var(--color-input-readonly);
|
|
19
|
+
--color-input-fg-readonly: var(--color-input-text-readonly);
|
|
20
|
+
/* Read-only hover/focus border; defaults keep the editable response. */
|
|
21
|
+
--color-input-border-readonly-hover: var(--color-input-border-hover);
|
|
22
|
+
--color-input-border-readonly-focus: var(--color-input-border-focus);
|
|
23
|
+
|
|
15
24
|
--font-weight-input: var(--font-weight-normal);
|
|
16
25
|
--font-weight-input-placeholder: var(--font-weight-normal);
|
|
17
26
|
--spacing-form-field-gap: var(--spacing-form-field);
|
|
27
|
+
|
|
28
|
+
/* Independent inline padding preserves field height and embedded controls. */
|
|
29
|
+
--padding-input-inline-sm: var(--padding-input-sm);
|
|
30
|
+
--padding-input-inline-md: var(--padding-input-md);
|
|
31
|
+
--padding-input-inline-lg: var(--padding-input-lg);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Feed component overrides into the shared state utility on this surface. */
|
|
35
|
+
@utility input-readonly {
|
|
36
|
+
--color-form-control-bg-readonly: var(--color-input-bg-readonly);
|
|
37
|
+
--color-form-control-fg-readonly: var(--color-input-fg-readonly);
|
|
18
38
|
}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
/*
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Kept here: `--font-label` (Figma doesn't yet export the `font-*`
|
|
5
|
-
* shorthand needed by the `font-label` utility class on Label root).
|
|
6
|
-
*/
|
|
1
|
+
/* Label uses --font-weight-label from Figma. Do not declare --font-label:
|
|
2
|
+
* Tailwind reserves --font-* for font families, not weights. */
|
|
7
3
|
|
|
8
4
|
@theme static {
|
|
9
|
-
--
|
|
5
|
+
--spacing-label-required: var(--spacing-50);
|
|
10
6
|
}
|
|
@@ -1,5 +1,47 @@
|
|
|
1
|
-
/*
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/* Underlines provide a non-colour navigation affordance in every brand. */
|
|
2
|
+
@theme static {
|
|
3
|
+
--color-link-text: var(--color-fg-primary);
|
|
4
|
+
--color-link-fg-readable: var(--color-link-text);
|
|
5
|
+
--color-link-ring: var(--color-ring-default);
|
|
6
|
+
--color-link-focus-decoration: var(--color-link-ring);
|
|
7
|
+
--border-width-link-focus: var(--border-width-lg);
|
|
8
|
+
/* Focus-only clearance under the rule. The resting hairline keeps the
|
|
9
|
+
* theme's own offset; focus drops the rule clear of descenders instead. */
|
|
10
|
+
--spacing-link-focus-underline-offset: var(--dimension-4);
|
|
11
|
+
--text-link-sm: var(--text-sm);
|
|
12
|
+
--text-link-md: var(--text-md);
|
|
13
|
+
--text-link-lg: var(--text-lg);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@utility link-current-size {
|
|
17
|
+
font-size: inherit;
|
|
18
|
+
line-height: inherit;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Focus redraws the link's own underline as ONE continuous rule: a single
|
|
22
|
+
* solid border-width step in the shared ring colour, dropped clear of the
|
|
23
|
+
* glyphs and painted without skip-ink gaps. It never stacks a second rail
|
|
24
|
+
* under the resting hairline and never breaks into short blocks around
|
|
25
|
+
* descenders. Decoration only — no fill, no box, no layout space. Standard
|
|
26
|
+
* focus variants follow hover utilities; the transparent halo keeps the
|
|
27
|
+
* shared shadow compositor and caller shadows usable. */
|
|
28
|
+
@utility link-focus-inline {
|
|
29
|
+
&:where(:not(:disabled, [data-disabled])) {
|
|
30
|
+
--color-focus-contrast: transparent;
|
|
31
|
+
text-decoration-line: underline;
|
|
32
|
+
text-decoration-style: solid;
|
|
33
|
+
text-decoration-color: var(--color-link-focus-decoration);
|
|
34
|
+
text-decoration-thickness: var(--border-width-link-focus);
|
|
35
|
+
text-decoration-skip-ink: none;
|
|
36
|
+
text-underline-offset: var(--spacing-link-focus-underline-offset);
|
|
37
|
+
outline-style: none;
|
|
38
|
+
outline-width: 0;
|
|
39
|
+
outline-color: var(--color-link-ring);
|
|
40
|
+
|
|
41
|
+
@media (forced-colors: active) {
|
|
42
|
+
text-decoration-color: Highlight;
|
|
43
|
+
outline: var(--default-ring-width) solid CanvasText;
|
|
44
|
+
outline-offset: calc(-1 * var(--default-ring-width));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* NumericInput —
|
|
3
|
-
*
|
|
2
|
+
* NumericInput — Figma supplies the base field tokens. Runtime state and
|
|
3
|
+
* independent stepper-glyph aliases remain code-owned here.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
@utility token-icon-numeric-input-increment {
|
|
@@ -10,3 +10,112 @@
|
|
|
10
10
|
@utility token-icon-numeric-input-decrement {
|
|
11
11
|
@apply token-icon-decrement;
|
|
12
12
|
}
|
|
13
|
+
|
|
14
|
+
@theme static {
|
|
15
|
+
/* Validation references and public aliases. */
|
|
16
|
+
--color-numeric-input-success: var(--color-border-success);
|
|
17
|
+
--color-numeric-input-warning: var(--color-border-warning);
|
|
18
|
+
--color-numeric-input-border-success: var(--color-numeric-input-success);
|
|
19
|
+
--color-numeric-input-border-warning: var(--color-numeric-input-warning);
|
|
20
|
+
|
|
21
|
+
/* Read-only reference and public component aliases. */
|
|
22
|
+
--color-numeric-input-readonly: var(--color-form-control-readonly);
|
|
23
|
+
--color-numeric-input-text-readonly: var(--color-form-control-text);
|
|
24
|
+
--color-numeric-input-bg-readonly: var(--color-numeric-input-readonly);
|
|
25
|
+
--color-numeric-input-fg-readonly: var(--color-numeric-input-text-readonly);
|
|
26
|
+
|
|
27
|
+
--shadow-numeric-input-focus-contrast: 0 0 0
|
|
28
|
+
calc(var(--default-ring-offset) + var(--default-ring-width) * 2)
|
|
29
|
+
var(--color-focus-contrast);
|
|
30
|
+
--shadow-numeric-input-focus: var(--shadow-numeric-input-focus-contrast);
|
|
31
|
+
|
|
32
|
+
/* Preserve the existing theme scale while allowing independent chevron sizing. */
|
|
33
|
+
--text-numeric-input-icon-sm: var(--text-icon-xs);
|
|
34
|
+
--text-numeric-input-icon-md: var(--text-icon-sm);
|
|
35
|
+
--text-numeric-input-icon-lg: var(--text-icon-md);
|
|
36
|
+
--text-numeric-input-trigger-icon-sm: var(--text-numeric-input-icon-sm);
|
|
37
|
+
--text-numeric-input-trigger-icon-md: var(--text-numeric-input-icon-md);
|
|
38
|
+
--text-numeric-input-trigger-icon-lg: var(--text-numeric-input-icon-lg);
|
|
39
|
+
|
|
40
|
+
/* Side-by-side controls preserve the field height while meeting 24px targets. */
|
|
41
|
+
--spacing-numeric-input-trigger-min: var(--spacing-350);
|
|
42
|
+
/* Match the theme's touch field size without changing desktop density. */
|
|
43
|
+
--spacing-numeric-input-touch-target: var(--height-form-control-md);
|
|
44
|
+
--spacing-numeric-input-trigger-touch-min: var(
|
|
45
|
+
--spacing-numeric-input-touch-target
|
|
46
|
+
);
|
|
47
|
+
--color-numeric-input-trigger-hover: var(--color-icon-control-bg-hover);
|
|
48
|
+
--color-numeric-input-trigger-active: var(--color-icon-control-bg-active);
|
|
49
|
+
--color-numeric-input-trigger-text: var(--color-icon-control-fg);
|
|
50
|
+
--color-numeric-input-trigger-disabled: var(--color-icon-control-fg-disabled);
|
|
51
|
+
--color-numeric-input-trigger-bg-hover: var(
|
|
52
|
+
--color-numeric-input-trigger-hover
|
|
53
|
+
);
|
|
54
|
+
--color-numeric-input-trigger-bg-active: var(
|
|
55
|
+
--color-numeric-input-trigger-active
|
|
56
|
+
);
|
|
57
|
+
--color-numeric-input-trigger-fg: var(--color-numeric-input-trigger-text);
|
|
58
|
+
--color-numeric-input-trigger-fg-disabled: var(
|
|
59
|
+
--color-numeric-input-trigger-disabled
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Match the unlayered foundation focus rule, but paint its contrast halo once
|
|
64
|
+
* around the compound control instead of clipping it inside each child. */
|
|
65
|
+
.numeric-input-focus-owner[data-part="control"]:has(:focus-visible) {
|
|
66
|
+
box-shadow: var(--shadow-numeric-input-focus), var(--tw-shadow, 0 0 #0000);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.numeric-input-focus-owner
|
|
70
|
+
:is(
|
|
71
|
+
[data-scope="number-input"][data-part="input"],
|
|
72
|
+
[data-scope="number-input"][data-part="increment-trigger"],
|
|
73
|
+
[data-scope="number-input"][data-part="decrement-trigger"]
|
|
74
|
+
):focus-visible {
|
|
75
|
+
box-shadow: var(--tw-shadow, 0 0 #0000);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* Only automatic glyph sizing uses these aliases; explicit iconSize still wins. */
|
|
79
|
+
@utility numeric-input-trigger-icon-sm {
|
|
80
|
+
& > span[aria-hidden="true"] {
|
|
81
|
+
font-size: var(--text-numeric-input-trigger-icon-sm);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@utility numeric-input-trigger-icon-md {
|
|
86
|
+
& > span[aria-hidden="true"] {
|
|
87
|
+
font-size: var(--text-numeric-input-trigger-icon-md);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@utility numeric-input-trigger-icon-lg {
|
|
92
|
+
& > span[aria-hidden="true"] {
|
|
93
|
+
font-size: var(--text-numeric-input-trigger-icon-lg);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Feed component overrides into the shared state utility on this surface. */
|
|
98
|
+
@utility numeric-input-readonly {
|
|
99
|
+
--color-form-control-bg-readonly: var(--color-numeric-input-bg-readonly);
|
|
100
|
+
--color-form-control-fg-readonly: var(--color-numeric-input-fg-readonly);
|
|
101
|
+
/* The nested Input must use the number editor's aliases as well. */
|
|
102
|
+
--color-input-bg-readonly: var(--color-numeric-input-bg-readonly);
|
|
103
|
+
--color-input-fg-readonly: var(--color-numeric-input-fg-readonly);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* Status borders persist through hover/focus; disabled remains authoritative. */
|
|
107
|
+
@utility numeric-input-validation {
|
|
108
|
+
&:not([data-disabled]):is([data-validation], [data-invalid]) {
|
|
109
|
+
border-width: var(--border-width-validation);
|
|
110
|
+
&[data-validation="success"] {
|
|
111
|
+
border-color: var(--color-numeric-input-border-success);
|
|
112
|
+
}
|
|
113
|
+
&[data-validation="warning"] {
|
|
114
|
+
border-color: var(--color-numeric-input-border-warning);
|
|
115
|
+
}
|
|
116
|
+
&:is([data-validation="error"], [data-invalid]) {
|
|
117
|
+
border-color: var(--color-numeric-input-border-invalid);
|
|
118
|
+
background-color: var(--color-numeric-input-bg-invalid);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -1,11 +1,60 @@
|
|
|
1
|
-
/*
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/* Filled versus outlined stars communicates the value without color alone. */
|
|
2
|
+
@theme static {
|
|
3
|
+
--color-rating-ink: var(--color-fg-primary);
|
|
4
|
+
--color-rating-paper: var(--color-fill-surface);
|
|
5
|
+
--color-rating-fg-selected: var(--color-rating-ink);
|
|
6
|
+
/* Stars are not a box field; keep the saved score on its surrounding surface. */
|
|
7
|
+
--color-rating-readonly: var(--color-transparent);
|
|
8
|
+
--color-rating-bg-readonly: var(--color-rating-readonly);
|
|
9
|
+
--color-rating-fg-empty: color-mix(
|
|
10
|
+
in oklab,
|
|
11
|
+
var(--color-rating-ink) 50%,
|
|
12
|
+
var(--color-rating-paper)
|
|
13
|
+
);
|
|
14
|
+
--spacing-rating-target: var(--dimension-32);
|
|
15
|
+
--spacing-rating-target-min: var(--dimension-24);
|
|
16
|
+
/* Keep label/value spacing independent from the space between targets. */
|
|
17
|
+
--spacing-rating-items-sm: var(--spacing-rating-sm);
|
|
18
|
+
--spacing-rating-items-md: var(--spacing-rating-md);
|
|
19
|
+
--spacing-rating-items-lg: var(--spacing-rating-lg);
|
|
20
|
+
--spacing-rating-control-sm: var(--spacing-rating-items-sm);
|
|
21
|
+
--spacing-rating-control-md: var(--spacing-rating-items-md);
|
|
22
|
+
--spacing-rating-control-lg: var(--spacing-rating-items-lg);
|
|
23
|
+
--text-rating-value: var(--text-label-sm);
|
|
24
|
+
}
|
|
6
25
|
@utility token-icon-rating {
|
|
26
|
+
@apply icon-[mdi--star-outline];
|
|
27
|
+
}
|
|
28
|
+
@utility token-icon-rating-selected {
|
|
7
29
|
@apply token-icon-star;
|
|
8
30
|
}
|
|
9
31
|
@utility token-icon-rating-half {
|
|
10
|
-
@apply
|
|
32
|
+
@apply icon-[mdi--star-half-full];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Full-size targets when space allows; long scales compress toward the
|
|
36
|
+
* minimum target (never below the glyph) before wrapping, so ten-point
|
|
37
|
+
* scales stay on one row in narrow containers. */
|
|
38
|
+
@utility rating-item-fluid {
|
|
39
|
+
flex: 1 1 max(var(--spacing-rating-target-min), 1em);
|
|
40
|
+
width: var(--spacing-rating-target);
|
|
41
|
+
min-width: max(var(--spacing-rating-target-min), 1em);
|
|
42
|
+
max-width: var(--spacing-rating-target);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@utility rating-fractional-fill {
|
|
46
|
+
clip-path: inset(0 var(--rating-item-clip, 0%) 0 0);
|
|
47
|
+
&[dir="rtl"] {
|
|
48
|
+
clip-path: inset(0 0 0 var(--rating-item-clip, 0%));
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@utility rating-readonly {
|
|
53
|
+
--color-form-control-bg-readonly: var(--color-rating-bg-readonly);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@utility rating-focus-outline {
|
|
57
|
+
outline: var(--default-ring-width) var(--default-ring-style)
|
|
58
|
+
var(--color-rating-ring);
|
|
59
|
+
outline-offset: var(--default-ring-offset);
|
|
11
60
|
}
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
* - `--duration-skeleton-pulse-{slow,normal,fast}` — Figma exports
|
|
7
7
|
* `--duration-skeleton-{slow,normal,fast}` (no `-pulse-` infix), but
|
|
8
8
|
* the @utility blocks below reference the `-pulse-` names.
|
|
9
|
+
* - `--radius-skeleton-rectangle` — no Figma variable yet; defaults to
|
|
10
|
+
* square so only themes that opt in round rectangle placeholders.
|
|
9
11
|
* - `--spacing-skeleton-text-{sm,md,lg,xl}` — alias bridges so the
|
|
10
12
|
* `gap-skeleton-text-{size}` utility resolves; Figma exports only
|
|
11
13
|
* `--spacing-skeleton-{size}` without the `-text-` infix.
|
|
@@ -23,6 +25,16 @@
|
|
|
23
25
|
--spacing-skeleton-text-md: var(--spacing-skeleton-md);
|
|
24
26
|
--spacing-skeleton-text-lg: var(--spacing-skeleton-lg);
|
|
25
27
|
--spacing-skeleton-text-xl: var(--spacing-skeleton-xl);
|
|
28
|
+
|
|
29
|
+
/* Square by default; themes may round rectangles to match text lines. */
|
|
30
|
+
--radius-skeleton-rectangle: var(--radius-none);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Component layer so consumer `rounded-*` utilities still override it. */
|
|
34
|
+
@layer components {
|
|
35
|
+
.skeleton-rectangle {
|
|
36
|
+
border-radius: var(--radius-skeleton-rectangle);
|
|
37
|
+
}
|
|
26
38
|
}
|
|
27
39
|
|
|
28
40
|
@keyframes skeleton-pulse {
|
|
@@ -56,7 +68,6 @@
|
|
|
56
68
|
.animate-skeleton-pulse-fast {
|
|
57
69
|
@media (prefers-reduced-motion: reduce) {
|
|
58
70
|
animation: none;
|
|
59
|
-
opacity: 0.7;
|
|
60
71
|
}
|
|
61
72
|
}
|
|
62
73
|
}
|
|
@@ -64,6 +75,5 @@
|
|
|
64
75
|
@layer utilities {
|
|
65
76
|
.force-reduced-motion {
|
|
66
77
|
animation: none;
|
|
67
|
-
opacity: 0.7;
|
|
68
78
|
}
|
|
69
79
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* StatusText — runtime tokens
|
|
3
|
-
*
|
|
2
|
+
* StatusText — Figma owns the core runtime tokens; local utilities keep
|
|
3
|
+
* semantic glyphs, line frames and optional neutral text columns aligned.
|
|
4
4
|
*
|
|
5
5
|
* Note: Figma's `--color-status-text-fg` resolves to `--color-fg-secondary`
|
|
6
6
|
* (single value, same across modes), while the atom previously hand-picked
|
|
@@ -10,12 +10,42 @@
|
|
|
10
10
|
* `color/fg/secondary` semantic instead of overriding here.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
/* The icon inherits the message font size and sits in a first-line-height
|
|
14
|
+
* frame. No pixel offsets: sm/md/lg and custom line heights stay aligned. */
|
|
15
|
+
@theme static {
|
|
16
|
+
--height-status-text-icon-line: 1lh;
|
|
17
|
+
--padding-status-text-neutral-sm: var(--dimension-0);
|
|
18
|
+
--padding-status-text-neutral-md: var(--dimension-0);
|
|
19
|
+
--padding-status-text-neutral-lg: var(--dimension-0);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@layer components {
|
|
23
|
+
.status-text-neutral-prefix:not(:has(> [aria-hidden="true"])) {
|
|
24
|
+
padding-inline-start: var(--padding-status-text-neutral, var(--dimension-0));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
13
28
|
@utility token-icon-status-text-success {
|
|
14
|
-
@apply token-icon-
|
|
29
|
+
@apply token-icon-check-bold;
|
|
15
30
|
}
|
|
16
31
|
@utility token-icon-status-text-warning {
|
|
17
|
-
@apply token-icon-
|
|
32
|
+
@apply token-icon-alert;
|
|
18
33
|
}
|
|
19
34
|
@utility token-icon-status-text-error {
|
|
20
|
-
@apply token-icon-
|
|
35
|
+
@apply token-icon-alert-circle;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* Read the public aliases on the message itself, so scoped application
|
|
39
|
+
* overrides do not freeze through an inherited intermediate alias. */
|
|
40
|
+
@utility status-text-leading-sm {
|
|
41
|
+
--padding-status-text-neutral: var(--padding-status-text-neutral-sm);
|
|
42
|
+
line-height: var(--line-height-status-text-sm);
|
|
43
|
+
}
|
|
44
|
+
@utility status-text-leading-md {
|
|
45
|
+
--padding-status-text-neutral: var(--padding-status-text-neutral-md);
|
|
46
|
+
line-height: var(--line-height-status-text-md);
|
|
47
|
+
}
|
|
48
|
+
@utility status-text-leading-lg {
|
|
49
|
+
--padding-status-text-neutral: var(--padding-status-text-neutral-lg);
|
|
50
|
+
line-height: var(--line-height-status-text-lg);
|
|
21
51
|
}
|
|
@@ -13,12 +13,35 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
@theme static {
|
|
16
|
+
/* Brands may align the large field while other themes keep the base radius. */
|
|
17
|
+
--radius-textarea-surface-lg: var(--radius-textarea);
|
|
18
|
+
|
|
19
|
+
/* Read-only reference and public component aliases. */
|
|
20
|
+
--color-textarea-readonly: var(--color-form-control-readonly);
|
|
21
|
+
--color-textarea-text-readonly: var(--color-form-control-text);
|
|
22
|
+
--color-textarea-bg-readonly: var(--color-textarea-readonly);
|
|
23
|
+
--color-textarea-fg-readonly: var(--color-textarea-text-readonly);
|
|
24
|
+
/* Read-only hover/focus border; defaults keep the editable response. */
|
|
25
|
+
--color-textarea-border-readonly-hover: var(--color-textarea-border-hover);
|
|
26
|
+
--color-textarea-border-readonly-focus: var(--color-textarea-border-focus);
|
|
27
|
+
|
|
28
|
+
/* Independent inline padding; defaults keep the uniform Figma padding. */
|
|
29
|
+
--padding-textarea-inline-sm: var(--padding-textarea-sm);
|
|
30
|
+
--padding-textarea-inline-md: var(--padding-textarea-md);
|
|
31
|
+
--padding-textarea-inline-lg: var(--padding-textarea-lg);
|
|
32
|
+
|
|
16
33
|
--opacity-borderless: 60%;
|
|
17
34
|
|
|
18
35
|
/* Validation focus — fall back to base (Figma exports no focus variant). */
|
|
19
|
-
--color-textarea-border-danger-focus: var(
|
|
20
|
-
|
|
21
|
-
|
|
36
|
+
--color-textarea-border-danger-focus: var(
|
|
37
|
+
--color-textarea-border-danger-base
|
|
38
|
+
);
|
|
39
|
+
--color-textarea-border-success-focus: var(
|
|
40
|
+
--color-textarea-border-success-base
|
|
41
|
+
);
|
|
42
|
+
--color-textarea-border-warning-focus: var(
|
|
43
|
+
--color-textarea-border-warning-base
|
|
44
|
+
);
|
|
22
45
|
|
|
23
46
|
/* Placeholder-on-danger (not in Figma) */
|
|
24
47
|
/* stylelint-disable scss/operator-no-newline-after -- biome wraps long lines */
|
|
@@ -36,3 +59,9 @@
|
|
|
36
59
|
--color-textarea-bg-borderless-hover: var(--color-textarea-bg);
|
|
37
60
|
--color-textarea-bg-borderless-focus: var(--color-textarea-bg);
|
|
38
61
|
}
|
|
62
|
+
|
|
63
|
+
/* Feed component overrides into the shared state utility on this surface. */
|
|
64
|
+
@utility textarea-readonly {
|
|
65
|
+
--color-form-control-bg-readonly: var(--color-textarea-bg-readonly);
|
|
66
|
+
--color-form-control-fg-readonly: var(--color-textarea-fg-readonly);
|
|
67
|
+
}
|
|
@@ -16,3 +16,28 @@
|
|
|
16
16
|
--tooltip-arrow-size: var(--spacing-tooltip-arrow);
|
|
17
17
|
--tooltip-arrow-background: var(--color-tooltip-arrow);
|
|
18
18
|
}
|
|
19
|
+
|
|
20
|
+
@theme static {
|
|
21
|
+
--width-tooltip-max: 22rem;
|
|
22
|
+
--spacing-tooltip-viewport: var(--spacing-200);
|
|
23
|
+
--shadow-tooltip: var(--shadow-popup);
|
|
24
|
+
/*
|
|
25
|
+
* Derived from the public alias, not an override of it. `--shadow-tooltip`
|
|
26
|
+
* stays a runtime alias (Business raises it, a caller may replace it), so the
|
|
27
|
+
* popup has to read a utility whose value is the alias. A `shadow-tooltip`
|
|
28
|
+
* utility would instead copy the alias value into `--tw-shadow` at build time
|
|
29
|
+
* and freeze the elevation.
|
|
30
|
+
*/
|
|
31
|
+
--shadow-tooltip-surface: var(--shadow-tooltip);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@utility tooltip-surface {
|
|
35
|
+
--arrow-size: var(--tooltip-arrow-size);
|
|
36
|
+
--arrow-background: var(--tooltip-arrow-background);
|
|
37
|
+
max-width: min(
|
|
38
|
+
var(--width-tooltip-max),
|
|
39
|
+
var(--available-width, 100vw),
|
|
40
|
+
calc(100vw - var(--spacing-tooltip-viewport) * 2)
|
|
41
|
+
);
|
|
42
|
+
overflow-wrap: anywhere;
|
|
43
|
+
}
|
|
@@ -8,12 +8,53 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
@theme static {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
--
|
|
11
|
+
/* Reference layer: use independent aliases so generated Figma snapshots
|
|
12
|
+
* cannot flatten the trigger/panel hierarchy in any theme. */
|
|
13
|
+
--color-accordion-panel: var(--color-fg-secondary);
|
|
14
|
+
--color-accordion-divider: var(--color-border-secondary);
|
|
15
|
+
--color-accordion-focus: var(--color-ring-default);
|
|
16
|
+
--color-accordion-disabled: var(--color-fg-disabled);
|
|
17
|
+
--font-weight-accordion-heading: var(--font-weight-semibold);
|
|
18
|
+
--font-weight-accordion-body: var(--font-weight-normal);
|
|
19
|
+
--spacing-accordion-inset: var(--spacing-150);
|
|
14
20
|
|
|
15
|
-
|
|
16
|
-
--
|
|
21
|
+
/* Derived layer */
|
|
22
|
+
--color-accordion-panel-fg: var(--color-accordion-panel);
|
|
23
|
+
--color-accordion-panel-border: var(--color-accordion-divider);
|
|
24
|
+
--color-accordion-ring-focus: var(--color-accordion-focus);
|
|
25
|
+
--color-accordion-trigger-fg-disabled: var(--color-accordion-disabled);
|
|
26
|
+
--font-weight-accordion-trigger: var(--font-weight-accordion-heading);
|
|
27
|
+
--font-weight-accordion-panel: var(--font-weight-accordion-body);
|
|
28
|
+
--gap-accordion-trigger: var(--spacing-accordion-inset);
|
|
29
|
+
--leading-accordion-panel: var(--leading-relaxed);
|
|
30
|
+
--text-accordion-panel-sm: var(--text-sm);
|
|
31
|
+
--text-accordion-panel-md: var(--text-sm);
|
|
32
|
+
--text-accordion-panel-lg: var(--text-md);
|
|
33
|
+
--padding-accordion-panel-sm: var(--spacing-accordion-inset)
|
|
34
|
+
calc(var(--padding-accordion-title-x-sm) + var(--spacing-accordion-inset));
|
|
35
|
+
--padding-accordion-panel-md: var(--spacing-200)
|
|
36
|
+
calc(var(--padding-accordion-title-x-md) + var(--spacing-accordion-inset));
|
|
37
|
+
--padding-accordion-panel-lg: var(--spacing-250)
|
|
38
|
+
calc(var(--padding-accordion-title-x-lg) + var(--spacing-accordion-inset));
|
|
39
|
+
|
|
40
|
+
--padding-accordion-title-sm: var(--padding-accordion-title-y-sm)
|
|
41
|
+
var(--padding-accordion-title-x-sm);
|
|
42
|
+
--padding-accordion-title-md: var(--padding-accordion-title-y-md)
|
|
43
|
+
var(--padding-accordion-title-x-md);
|
|
44
|
+
--padding-accordion-title-lg: var(--padding-accordion-title-y-lg)
|
|
45
|
+
var(--padding-accordion-title-x-lg);
|
|
46
|
+
|
|
47
|
+
--padding-accordion-content-md: var(--padding-accordion-content-y-md)
|
|
48
|
+
var(--padding-accordion-content-x-md);
|
|
49
|
+
--padding-accordion-content-lg: var(--padding-accordion-content-y-lg)
|
|
50
|
+
var(--padding-accordion-content-x-lg);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Keep keyboard focus visible without inheriting Button typography or motion. */
|
|
54
|
+
@utility accordion-focus-outline {
|
|
55
|
+
outline: var(--default-ring-width) var(--default-ring-style)
|
|
56
|
+
var(--color-accordion-ring-focus);
|
|
57
|
+
outline-offset: var(--default-ring-offset);
|
|
17
58
|
}
|
|
18
59
|
|
|
19
60
|
/* Semantic tokens for accordion icons */
|
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
/*
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/* Breadcrumb colors and layout come from the Figma token layer. */
|
|
2
|
+
@theme static {
|
|
3
|
+
/* Reference layer */
|
|
4
|
+
--outline-breadcrumb-focus-style: var(--default-ring-style);
|
|
5
|
+
--outline-breadcrumb-focus-width: var(--default-ring-width);
|
|
6
|
+
--outline-breadcrumb-focus-offset: var(--default-ring-offset);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* Keep focus dimensions locally overridable without arbitrary TSX utilities. */
|
|
10
|
+
@utility breadcrumb-focus {
|
|
11
|
+
outline-style: var(--outline-breadcrumb-focus-style);
|
|
12
|
+
outline-width: var(--outline-breadcrumb-focus-width);
|
|
13
|
+
outline-color: var(--color-breadcrumb-ring);
|
|
14
|
+
outline-offset: var(--outline-breadcrumb-focus-offset);
|
|
15
|
+
}
|
|
5
16
|
|
|
6
17
|
@utility token-icon-breadcrumb-separator {
|
|
7
18
|
@apply token-icon-chevron-right;
|