@godxjp/ui 19.6.0 → 20.1.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 +8 -2
- package/dist/app/theme-axes.d.ts +2 -0
- package/dist/app/theme-axes.js +45 -0
- package/dist/components/charts/chart-cartesian.d.ts +2 -1
- package/dist/components/charts/chart-cartesian.js +52 -3
- package/dist/components/charts/chart-category-axis.d.ts +55 -0
- package/dist/components/charts/chart-category-axis.js +93 -0
- package/dist/components/charts/chart-frame.d.ts +10 -1
- package/dist/components/charts/chart-frame.js +19 -3
- package/dist/components/charts/compact-bar-trend.d.ts +1 -1
- package/dist/components/charts/compact-bar-trend.js +2 -0
- package/dist/components/charts/pie-chart.d.ts +1 -1
- package/dist/components/charts/pie-chart.js +12 -1
- package/dist/components/charts/recharts-peer.d.ts +49 -0
- package/dist/components/charts/recharts-peer.js +45 -0
- package/dist/components/data-display/card.d.ts +14 -3
- package/dist/components/data-display/card.js +22 -4
- package/dist/components/data-display/code-block.js +6 -2
- package/dist/components/data-display/collapsible.d.ts +23 -4
- package/dist/components/data-display/collapsible.js +119 -4
- package/dist/components/data-display/data-table.d.ts +39 -4
- package/dist/components/data-display/data-table.js +802 -270
- package/dist/components/data-display/descriptions.d.ts +27 -6
- package/dist/components/data-display/descriptions.js +58 -17
- package/dist/components/data-display/index.d.ts +5 -1
- package/dist/components/data-display/index.js +4 -0
- package/dist/components/data-display/legend.d.ts +15 -0
- package/dist/components/data-display/legend.js +11 -0
- package/dist/components/data-display/list-row.d.ts +10 -1
- package/dist/components/data-display/list-row.js +8 -2
- package/dist/components/data-display/popover.d.ts +60 -7
- package/dist/components/data-display/popover.js +268 -39
- package/dist/components/data-display/progress.d.ts +50 -2
- package/dist/components/data-display/progress.js +57 -9
- package/dist/components/data-display/range-timeline.d.ts +38 -0
- package/dist/components/data-display/range-timeline.js +161 -0
- package/dist/components/data-display/scroll-area.js +13 -2
- package/dist/components/data-display/service-launcher-card.js +10 -10
- package/dist/components/data-display/table.d.ts +11 -3
- package/dist/components/data-display/table.js +48 -18
- package/dist/components/data-display/tree-list.js +4 -9
- package/dist/components/data-entry/calendar.d.ts +2 -2
- package/dist/components/data-entry/calendar.js +79 -33
- package/dist/components/data-entry/cascader.d.ts +1 -1
- package/dist/components/data-entry/cascader.js +188 -24
- package/dist/components/data-entry/checkbox.d.ts +19 -6
- package/dist/components/data-entry/checkbox.js +55 -16
- package/dist/components/data-entry/choice-option.d.ts +1 -1
- package/dist/components/data-entry/color-picker.d.ts +1 -1
- package/dist/components/data-entry/color-picker.js +17 -5
- package/dist/components/data-entry/control-appearance.d.ts +64 -0
- package/dist/components/data-entry/control-appearance.js +39 -0
- package/dist/components/data-entry/control-surface.d.ts +61 -0
- package/dist/components/data-entry/control-surface.js +39 -0
- package/dist/components/data-entry/date-picker.d.ts +1 -1
- package/dist/components/data-entry/date-picker.js +344 -113
- package/dist/components/data-entry/date-range-picker.d.ts +2 -2
- package/dist/components/data-entry/date-range-picker.js +278 -140
- package/dist/components/data-entry/field.js +0 -1
- package/dist/components/data-entry/form-field.d.ts +1 -1
- package/dist/components/data-entry/form-field.js +39 -4
- package/dist/components/data-entry/form.d.ts +4 -0
- package/dist/components/data-entry/form.js +5 -3
- package/dist/components/data-entry/index.d.ts +7 -3
- package/dist/components/data-entry/index.js +10 -1
- package/dist/components/data-entry/input-otp.d.ts +1 -1
- package/dist/components/data-entry/input.d.ts +12 -34
- package/dist/components/data-entry/input.js +92 -24
- package/dist/components/data-entry/label.d.ts +3 -2
- package/dist/components/data-entry/label.js +23 -10
- package/dist/components/data-entry/month-picker.d.ts +2 -2
- package/dist/components/data-entry/month-picker.js +47 -10
- package/dist/components/data-entry/month-range-picker.d.ts +2 -2
- package/dist/components/data-entry/month-range-picker.js +51 -11
- package/dist/components/data-entry/number-input.d.ts +7 -0
- package/dist/components/data-entry/number-input.js +147 -98
- package/dist/components/data-entry/password-input.d.ts +1 -1
- package/dist/components/data-entry/radio.d.ts +1 -1
- package/dist/components/data-entry/radio.js +61 -13
- package/dist/components/data-entry/search-input.d.ts +1 -1
- package/dist/components/data-entry/search-input.js +16 -2
- package/dist/components/data-entry/search-select.d.ts +2 -2
- package/dist/components/data-entry/search-select.js +209 -78
- package/dist/components/data-entry/select.d.ts +22 -4
- package/dist/components/data-entry/select.js +215 -163
- package/dist/components/data-entry/slider.d.ts +9 -1
- package/dist/components/data-entry/slider.js +87 -9
- package/dist/components/data-entry/switch.d.ts +3 -0
- package/dist/components/data-entry/switch.js +29 -3
- package/dist/components/data-entry/textarea.d.ts +14 -56
- package/dist/components/data-entry/textarea.js +80 -33
- package/dist/components/data-entry/time-picker.d.ts +2 -2
- package/dist/components/data-entry/time-picker.js +333 -109
- package/dist/components/data-entry/time-range-picker.d.ts +5 -0
- package/dist/components/data-entry/time-range-picker.js +89 -0
- package/dist/components/data-entry/transfer.d.ts +1 -1
- package/dist/components/data-entry/transfer.js +99 -31
- package/dist/components/data-entry/tree-select-strategy.d.ts +1 -1
- package/dist/components/data-entry/tree-select.d.ts +1 -1
- package/dist/components/data-entry/tree-select.js +197 -92
- package/dist/components/data-entry/tree-utils.d.ts +1 -1
- package/dist/components/data-entry/tree-utils.js +7 -14
- package/dist/components/data-entry/upload-files.d.ts +2 -0
- package/dist/components/data-entry/upload-files.js +31 -0
- package/dist/components/data-entry/upload-request.d.ts +4 -0
- package/dist/components/data-entry/upload-request.js +53 -0
- package/dist/components/data-entry/upload-types.d.ts +28 -0
- package/dist/components/data-entry/upload-types.js +2 -0
- package/dist/components/data-entry/upload.d.ts +2 -2
- package/dist/components/data-entry/upload.js +482 -117
- package/dist/components/feedback/dialog.d.ts +105 -38
- package/dist/components/feedback/dialog.js +268 -193
- package/dist/components/feedback/overlay-close-focus.d.ts +31 -0
- package/dist/components/feedback/overlay-close-focus.js +31 -0
- package/dist/components/feedback/overlay-header-tone.d.ts +1 -1
- package/dist/components/feedback/sheet.d.ts +53 -11
- package/dist/components/feedback/sheet.js +150 -81
- package/dist/components/feedback/tooltip.d.ts +51 -7
- package/dist/components/feedback/tooltip.js +107 -25
- package/dist/components/general/button.d.ts +1 -1
- package/dist/components/general/button.js +7 -3
- package/dist/components/general/index.d.ts +1 -0
- package/dist/components/general/index.js +2 -0
- package/dist/components/general/logo.d.ts +17 -0
- package/dist/components/general/logo.js +22 -16
- package/dist/components/general/typography.d.ts +3 -0
- package/dist/components/general/typography.js +15 -1
- package/dist/components/general/visually-hidden.d.ts +3 -0
- package/dist/components/general/visually-hidden.js +9 -0
- package/dist/components/layout/app-launcher.d.ts +34 -0
- package/dist/components/layout/app-launcher.js +228 -0
- package/dist/components/layout/app-shell.d.ts +3 -1
- package/dist/components/layout/app-shell.js +69 -12
- package/dist/components/layout/aspect-ratio.js +0 -1
- package/dist/components/layout/auth-divider.js +0 -1
- package/dist/components/layout/breadcrumb.d.ts +14 -2
- package/dist/components/layout/breadcrumb.js +46 -4
- package/dist/components/layout/flex.d.ts +1 -1
- package/dist/components/layout/flex.js +41 -3
- package/dist/components/layout/index.d.ts +3 -0
- package/dist/components/layout/index.js +5 -1
- package/dist/components/layout/nav-surface.d.ts +26 -0
- package/dist/components/layout/nav-surface.js +17 -0
- package/dist/components/layout/org-switcher.d.ts +5 -1
- package/dist/components/layout/org-switcher.js +25 -4
- package/dist/components/layout/page-container.d.ts +1 -1
- package/dist/components/layout/page-container.js +5 -3
- package/dist/components/layout/responsive-grid.d.ts +16 -2
- package/dist/components/layout/responsive-grid.js +29 -2
- package/dist/components/layout/separator.js +0 -1
- package/dist/components/layout/sidebar.js +4 -1
- package/dist/components/layout/split-pane.d.ts +14 -1
- package/dist/components/layout/split-pane.js +26 -13
- package/dist/components/layout/topbar-item.d.ts +3 -0
- package/dist/components/layout/topbar-item.js +19 -5
- package/dist/components/layout/topbar.d.ts +1 -1
- package/dist/components/layout/topbar.js +27 -6
- package/dist/components/navigation/app-setting-picker.js +21 -2
- package/dist/components/navigation/app-setting-toggle.d.ts +16 -0
- package/dist/components/navigation/app-setting-toggle.js +96 -0
- package/dist/components/navigation/dropdown-menu.d.ts +227 -18
- package/dist/components/navigation/dropdown-menu.js +402 -118
- package/dist/components/navigation/index.d.ts +2 -0
- package/dist/components/navigation/index.js +2 -0
- package/dist/components/navigation/pagination-utils.d.ts +2 -1
- package/dist/components/navigation/pagination.d.ts +2 -2
- package/dist/components/navigation/pagination.js +155 -83
- package/dist/components/navigation/steps.d.ts +2 -2
- package/dist/components/navigation/steps.js +29 -4
- package/dist/components/navigation/tabs.d.ts +29 -16
- package/dist/components/navigation/tabs.js +374 -144
- package/dist/components/ui/accordion.d.ts +50 -5
- package/dist/components/ui/accordion.js +239 -33
- package/dist/components/ui/aspect-ratio.d.ts +23 -2
- package/dist/components/ui/aspect-ratio.js +15 -13
- package/dist/components/ui/avatar.d.ts +29 -4
- package/dist/components/ui/avatar.js +111 -25
- package/dist/components/ui/hover-card.d.ts +42 -4
- package/dist/components/ui/hover-card.js +183 -27
- package/dist/components/ui/input-otp.d.ts +26 -28
- package/dist/components/ui/input-otp.js +50 -7
- package/dist/components/ui/label.js +0 -1
- package/dist/components/ui/password-input.d.ts +36 -2
- package/dist/components/ui/password-input.js +27 -7
- package/dist/components/ui/rating.d.ts +25 -0
- package/dist/components/ui/rating.js +67 -27
- package/dist/components/ui/segmented.d.ts +12 -3
- package/dist/components/ui/segmented.js +17 -2
- package/dist/components/ui/separator.d.ts +12 -2
- package/dist/components/ui/separator.js +30 -9
- package/dist/components/ui/tag-input.d.ts +45 -0
- package/dist/components/ui/tag-input.js +109 -27
- package/dist/components/ui/toggle-group.d.ts +50 -5
- package/dist/components/ui/toggle-group.js +79 -20
- package/dist/components/ui/toggle.d.ts +31 -5
- package/dist/components/ui/toggle.js +42 -3
- package/dist/form/form-context.d.ts +29 -0
- package/dist/form/form-context.js +44 -4
- package/dist/form/form-field-array.d.ts +22 -0
- package/dist/form/form-field-array.js +50 -0
- package/dist/form/form-field-control.d.ts +2 -1
- package/dist/form/form-field-control.js +116 -40
- package/dist/form/form-root.d.ts +2 -1
- package/dist/form/form-root.js +142 -23
- package/dist/form/index.d.ts +3 -1
- package/dist/form/index.js +12 -1
- package/dist/i18n/messages/en.json +64 -5
- package/dist/i18n/messages/ja.json +64 -5
- package/dist/i18n/messages/vi.json +64 -5
- package/dist/inertia/index.d.ts +20 -0
- package/dist/inertia/index.js +60 -1
- package/dist/lib/control-styles.d.ts +25 -3
- package/dist/lib/control-styles.js +9 -3
- package/dist/lib/datetime/picker-format.d.ts +8 -0
- package/dist/lib/datetime/picker-format.js +54 -0
- package/dist/lib/slot.d.ts +32 -0
- package/dist/lib/slot.js +22 -0
- package/dist/lib/variants.d.ts +22 -3
- package/dist/lib/variants.js +56 -1
- package/dist/props/components/app.prop.d.ts +25 -1
- package/dist/props/components/charts.prop.d.ts +21 -0
- package/dist/props/components/data-display.prop.d.ts +72 -4
- package/dist/props/components/data-entry.prop.d.ts +718 -46
- package/dist/props/components/form.prop.d.ts +142 -4
- package/dist/props/components/general.prop.d.ts +17 -1
- package/dist/props/components/index.d.ts +3 -3
- package/dist/props/components/layout.prop.d.ts +281 -11
- package/dist/props/components/navigation.prop.d.ts +114 -4
- package/dist/props/registry.d.ts +397 -11
- package/dist/props/registry.js +526 -11
- package/dist/props/vocabulary/content.prop.d.ts +1 -1
- package/dist/props/vocabulary/data.prop.d.ts +179 -1
- package/dist/props/vocabulary/index.d.ts +5 -5
- package/dist/props/vocabulary/interaction.prop.d.ts +68 -3
- package/dist/props/vocabulary/layout.prop.d.ts +57 -1
- package/dist/props/vocabulary/navigation.prop.d.ts +40 -0
- package/dist/props/vocabulary/shared.prop.d.ts +33 -0
- package/dist/styles/badge-layout.css +2 -1
- package/dist/styles/card-layout.css +26 -4
- package/dist/styles/chart-layout.css +15 -0
- package/dist/styles/control.css +657 -15
- package/dist/styles/core.css +5 -2
- package/dist/styles/data-display-layout.css +313 -6
- package/dist/styles/data-entry-layout.css +13 -0
- package/dist/styles/focus-ring.css +4 -0
- package/dist/styles/index.css +5 -2
- package/dist/styles/layout.css +327 -4
- package/dist/styles/navigation-layout.css +227 -0
- package/dist/styles/shell-layout.css +369 -13
- package/dist/styles/table-layout.css +95 -6
- package/dist/styles/text-layout.css +10 -4
- package/dist/tokens/base.css +2 -1
- package/dist/tokens/components/badge.css +1 -0
- package/dist/tokens/components/chart.css +6 -0
- package/dist/tokens/components/control.css +79 -2
- package/dist/tokens/components/data-display.css +20 -0
- package/dist/tokens/components/descriptions.css +11 -0
- package/dist/tokens/components/flex.css +8 -0
- package/dist/tokens/components/navigation.css +55 -0
- package/dist/tokens/components/shell.css +53 -3
- package/dist/tokens/components/table.css +14 -0
- package/dist/tokens/foundation.css +2 -0
- package/dist/tokens/semantic/layout.css +9 -0
- package/docs/COMPONENTS.md +9 -3
- package/docs/CONSUMER-RULES.md +13 -0
- package/docs/DESIGN-AUTHORITY.md +145 -83
- package/docs/DEVELOPMENT.md +4 -3
- package/docs/FORMS.md +151 -6
- package/docs/FRAME-COVERAGE-REPORT.md +32 -17
- package/docs/README.md +15 -15
- package/docs/STANDARDS-vocabulary-tokens.md +1 -1
- package/docs/TESTING.md +15 -6
- package/docs/WHAT-BELONGS-HERE.md +179 -0
- package/docs/charts/cjk-category-axis.tsx +81 -0
- package/docs/data-display/card/index.tsx +22 -0
- package/docs/data-display/data-table/examples/antd-parity.tsx +257 -0
- package/docs/data-display/data-table/index.tsx +23 -0
- package/docs/data-display/descriptions.tsx +41 -0
- package/docs/data-display/legend.tsx +145 -0
- package/docs/data-display/progress.tsx +32 -0
- package/docs/data-display/scroll-area.tsx +31 -25
- package/docs/data-display/table.tsx +104 -45
- package/docs/data-display/timeline.tsx +41 -0
- package/docs/data-entry/date-picker.tsx +85 -0
- package/docs/data-entry/date-range-picker.tsx +26 -0
- package/docs/data-entry/form-dynamic-fields.tsx +199 -0
- package/docs/data-entry/form.tsx +74 -4
- package/docs/data-entry/input-otp.tsx +24 -0
- package/docs/data-entry/input.tsx +46 -1
- package/docs/data-entry/month-range-picker.tsx +1 -1
- package/docs/data-entry/segmented.tsx +1 -1
- package/docs/data-entry/select.tsx +29 -2
- package/docs/data-entry/switch.tsx +41 -0
- package/docs/data-entry/textarea.tsx +38 -0
- package/docs/data-entry/time-picker.tsx +85 -1
- package/docs/data-entry/time-range-picker.tsx +55 -0
- package/docs/data-entry/transfer.tsx +17 -0
- package/docs/data-entry/upload.tsx +56 -12
- package/docs/feedback/sheet.tsx +1 -1
- package/docs/feedback/tooltip.tsx +1 -1
- package/docs/general/activity.tsx +2 -2
- package/docs/general/button/index.tsx +14 -1
- package/docs/general/typography.tsx +14 -1
- package/docs/layout/app-launcher.tsx +151 -0
- package/docs/layout/app-shell-arrangements.tsx +225 -0
- package/docs/layout/app-shell.tsx +11 -0
- package/docs/layout/aspect-ratio.tsx +1 -1
- package/docs/layout/flex.tsx +50 -0
- package/docs/layout/responsive-grid.tsx +21 -1
- package/docs/layout/topbar.tsx +5 -9
- package/docs/navigation/app-setting-picker.tsx +37 -1
- package/docs/navigation/app-setting-toggle.tsx +111 -0
- package/docs/navigation/breadcrumb.tsx +48 -0
- package/docs/navigation/dropdown-menu.tsx +21 -0
- package/docs/navigation/pagination.tsx +52 -0
- package/docs/navigation/steps.tsx +37 -0
- package/docs/navigation/tabs.tsx +97 -1
- package/docs/query/button-refetch.tsx +1 -0
- package/package.json +28 -8
- package/scripts/_agent-setup.mjs +182 -3
- package/scripts/consumer-rule.md +98 -0
- package/scripts/guinea-pig-skill.md +322 -0
- package/scripts/init-guinea-pig.mjs +84 -0
- package/scripts/postinstall.mjs +13 -2
- package/scripts/ui-audit.mjs +351 -37
- /package/dist/tokens/{antd.generated.css → derived.css} +0 -0
package/dist/tokens/base.css
CHANGED
|
@@ -28,6 +28,50 @@
|
|
|
28
28
|
--control-icon-size: calc(var(--icon-size-md) * var(--scaling));
|
|
29
29
|
--control-icon-size-sm: calc(var(--icon-size-sm) * var(--scaling));
|
|
30
30
|
|
|
31
|
+
--control-status-warning-border-color: var(--warning);
|
|
32
|
+
--control-status-warning-glow-color: var(--warning);
|
|
33
|
+
--control-status-warning-glow-alpha: var(--control-outline-error-alpha);
|
|
34
|
+
|
|
35
|
+
--control-variant-filled-background: var(--muted);
|
|
36
|
+
--control-variant-filled-hover-background: var(--accent);
|
|
37
|
+
|
|
38
|
+
--control-count-font-size: var(--font-size-sm);
|
|
39
|
+
--control-count-color: var(--muted-foreground);
|
|
40
|
+
--control-count-exceeded-color: var(--text-error);
|
|
41
|
+
--control-count-space-inline: var(--space-1);
|
|
42
|
+
--textarea-count-inset-block-end: var(--space-1);
|
|
43
|
+
--textarea-count-inset-inline-end: var(--space-2);
|
|
44
|
+
|
|
45
|
+
--input-addon-background: var(--muted);
|
|
46
|
+
--input-addon-color: var(--muted-foreground);
|
|
47
|
+
--input-addon-padding-inline: var(--control-padding-x);
|
|
48
|
+
|
|
49
|
+
--switch-content-font-size: var(--font-size-xs);
|
|
50
|
+
--switch-content-space-inline: var(--space-1);
|
|
51
|
+
--switch-spinner-size: calc(var(--switch-thumb-size) - var(--space-1));
|
|
52
|
+
|
|
53
|
+
--slider-mark-font-size: var(--font-size-xs);
|
|
54
|
+
--slider-mark-color: var(--muted-foreground);
|
|
55
|
+
--slider-mark-space-block-start: var(--space-2);
|
|
56
|
+
--slider-dot-size: var(--slider-track-height);
|
|
57
|
+
--slider-dot-background: var(--background);
|
|
58
|
+
--slider-dot-border-color: var(--border);
|
|
59
|
+
--slider-dot-active-border-color: var(--primary);
|
|
60
|
+
--slider-tooltip-background: var(--popover);
|
|
61
|
+
--slider-tooltip-color: var(--popover-foreground);
|
|
62
|
+
--slider-tooltip-font-size: var(--font-size-xs);
|
|
63
|
+
--slider-tooltip-radius: var(--radius-sm);
|
|
64
|
+
--slider-tooltip-padding-inline: var(--space-2);
|
|
65
|
+
--slider-tooltip-offset-block: var(--space-2);
|
|
66
|
+
|
|
67
|
+
--choice-button-background: var(--background);
|
|
68
|
+
--choice-button-color: var(--foreground);
|
|
69
|
+
--choice-button-border-color: var(--input);
|
|
70
|
+
--choice-button-selected-color: var(--primary);
|
|
71
|
+
--choice-button-selected-border-color: var(--primary);
|
|
72
|
+
--choice-button-solid-background: var(--primary);
|
|
73
|
+
--choice-button-solid-color: var(--primary-foreground);
|
|
74
|
+
|
|
31
75
|
--toggle-focus-ring-width: var(--stroke-lg);
|
|
32
76
|
--toggle-focus-ring-alpha: 1;
|
|
33
77
|
|
|
@@ -76,6 +120,8 @@
|
|
|
76
120
|
|
|
77
121
|
--switch-unchecked-background: initial;
|
|
78
122
|
|
|
123
|
+
--switch-content-unchecked-foreground: initial;
|
|
124
|
+
|
|
79
125
|
--color-picker-input-width: 6.5rem;
|
|
80
126
|
|
|
81
127
|
--command-list-max-height: min(300px, 50vh);
|
|
@@ -83,6 +129,8 @@
|
|
|
83
129
|
--command-group-padding: var(--space-1);
|
|
84
130
|
--command-item-padding-y: var(--space-2);
|
|
85
131
|
--command-item-padding-x: var(--space-2);
|
|
132
|
+
|
|
133
|
+
--command-item-gap: var(--control-gap);
|
|
86
134
|
--command-palette-width: 35rem;
|
|
87
135
|
--command-palette-inset-top: calc(var(--space-6) * 4);
|
|
88
136
|
--command-palette-viewport-inset: var(--space-3);
|
|
@@ -140,14 +188,14 @@
|
|
|
140
188
|
(var(--control-multiline-padding-block) + var(--control-border-width)) * 2
|
|
141
189
|
);
|
|
142
190
|
|
|
143
|
-
--control-inline-affix-pair-space-inline-end: 3.5rem;
|
|
144
|
-
|
|
145
191
|
--control-composite-field-space-gap: var(--space-2);
|
|
146
192
|
|
|
147
193
|
--input-file-button-height: var(--band-height-sm);
|
|
148
194
|
--input-file-button-font-size: var(--font-size-sm);
|
|
149
195
|
|
|
150
196
|
--search-select-panel-max-width: 32rem;
|
|
197
|
+
|
|
198
|
+
--search-select-panel-inline-size: auto;
|
|
151
199
|
--search-select-panel-viewport-inset: var(--space-6);
|
|
152
200
|
--search-select-list-space-inset: var(--space-1);
|
|
153
201
|
--search-select-footer-space-inset: var(--space-1);
|
|
@@ -178,6 +226,10 @@
|
|
|
178
226
|
--cascader-empty-space-block: var(--space-6);
|
|
179
227
|
|
|
180
228
|
--select-content-max-height: 24rem;
|
|
229
|
+
|
|
230
|
+
--select-content-inline-size: auto;
|
|
231
|
+
|
|
232
|
+
--select-empty-space-block: var(--search-select-placeholder-space-block);
|
|
181
233
|
--select-scroll-button-space-block: var(--space-1);
|
|
182
234
|
|
|
183
235
|
--select-item-space-inline: 0.625rem;
|
|
@@ -194,6 +246,7 @@
|
|
|
194
246
|
--time-picker-option-radius: var(--radius-md);
|
|
195
247
|
--time-picker-option-font-size: var(--font-size-sm);
|
|
196
248
|
--time-picker-footer-space-inset: var(--space-2);
|
|
249
|
+
--time-picker-footer-space-gap: var(--space-2);
|
|
197
250
|
|
|
198
251
|
--time-picker-affix-space-gap: var(--control-inline-affix-space-gap);
|
|
199
252
|
|
|
@@ -261,6 +314,8 @@
|
|
|
261
314
|
--month-picker-separator-icon-size: var(--icon-size-sm);
|
|
262
315
|
|
|
263
316
|
--button-xs-height: var(--control-height-xs);
|
|
317
|
+
|
|
318
|
+
--button-bare-target-size: var(--control-height-xs);
|
|
264
319
|
--button-xs-space-inline: var(--space-2);
|
|
265
320
|
--button-xs-space-gap: var(--space-1);
|
|
266
321
|
--button-xs-font-size: var(--font-size-xs);
|
|
@@ -295,6 +350,21 @@
|
|
|
295
350
|
--control-label-space-gap: 0.5rem;
|
|
296
351
|
|
|
297
352
|
--control-label-disabled-alpha: 0.7;
|
|
353
|
+
|
|
354
|
+
--control-surface-border-color: hsl(var(--input));
|
|
355
|
+
--control-surface-background: hsl(var(--background));
|
|
356
|
+
|
|
357
|
+
--control-filled-border-color: transparent;
|
|
358
|
+
--control-filled-background: hsl(var(--muted));
|
|
359
|
+
--control-filled-shadow: none;
|
|
360
|
+
|
|
361
|
+
--control-borderless-border-color: transparent;
|
|
362
|
+
--control-borderless-background: transparent;
|
|
363
|
+
--control-borderless-shadow: none;
|
|
364
|
+
|
|
365
|
+
--control-status-error-border-color: hsl(var(--destructive));
|
|
366
|
+
--control-status-warning-border-color: hsl(var(--text-warning));
|
|
367
|
+
--control-status-warning-outline-color: var(--warning);
|
|
298
368
|
}
|
|
299
369
|
|
|
300
370
|
@media (pointer: coarse) {
|
|
@@ -303,3 +373,10 @@
|
|
|
303
373
|
--control-height-default: var(--band-height-xl);
|
|
304
374
|
}
|
|
305
375
|
}
|
|
376
|
+
|
|
377
|
+
:root {
|
|
378
|
+
--textarea-padding-block-start: initial;
|
|
379
|
+
--textarea-padding-block-end: initial;
|
|
380
|
+
--textarea-padding-inline-start: initial;
|
|
381
|
+
--textarea-padding-inline-end: initial;
|
|
382
|
+
}
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
--prose-code-space-inline: var(--space-1);
|
|
32
32
|
--prose-code-radius: var(--radius-sm);
|
|
33
33
|
--prose-image-radius: var(--radius-md);
|
|
34
|
+
--tree-item-indent-width: var(--space-5);
|
|
34
35
|
--tree-item-title-font-size: var(--font-size-xs);
|
|
35
36
|
--tree-item-description-font-size: var(--font-size-xs);
|
|
36
37
|
--timeline-note-font-size: var(--font-size-xs);
|
|
@@ -64,6 +65,17 @@
|
|
|
64
65
|
--progress-track-background: initial;
|
|
65
66
|
--progress-fill-background: initial;
|
|
66
67
|
|
|
68
|
+
--progress-breakdown-block-size: 1.375rem;
|
|
69
|
+
--progress-breakdown-radius: var(--radius);
|
|
70
|
+
|
|
71
|
+
--legend-gap: 0.875rem;
|
|
72
|
+
--legend-item-gap: 0.3125rem;
|
|
73
|
+
--legend-swatch-size: 0.625rem;
|
|
74
|
+
--legend-swatch-radius: 0.125rem;
|
|
75
|
+
--legend-font-size: var(--font-size-xs);
|
|
76
|
+
|
|
77
|
+
--legend-color: initial;
|
|
78
|
+
|
|
67
79
|
--timeline-dot-done-background: initial;
|
|
68
80
|
--timeline-dot-current-background: initial;
|
|
69
81
|
--timeline-line-completed-background: initial;
|
|
@@ -111,3 +123,11 @@
|
|
|
111
123
|
|
|
112
124
|
--permission-matrix-min-width: 48rem;
|
|
113
125
|
}
|
|
126
|
+
|
|
127
|
+
:root {
|
|
128
|
+
--range-timeline-label-width: var(--app-shell-sidebar-width);
|
|
129
|
+
--range-timeline-unit-width: calc(var(--control-height-sm) * 2);
|
|
130
|
+
--range-timeline-row-height: var(--control-height-lg);
|
|
131
|
+
--range-timeline-bar-height: var(--control-height-sm);
|
|
132
|
+
--range-timeline-border-color: var(--border);
|
|
133
|
+
}
|
|
@@ -13,4 +13,15 @@
|
|
|
13
13
|
--descriptions-value-font-size: var(--font-size-sm);
|
|
14
14
|
|
|
15
15
|
--descriptions-value-line-height: calc(1.25 / 0.875);
|
|
16
|
+
|
|
17
|
+
--descriptions-row-border: none;
|
|
18
|
+
--descriptions-row-min-height: auto;
|
|
19
|
+
|
|
20
|
+
--descriptions-border-width: var(--stroke-hairline);
|
|
21
|
+
--descriptions-border-radius: var(--radius-md);
|
|
22
|
+
|
|
23
|
+
--descriptions-cell-padding-y: var(--space-2);
|
|
24
|
+
--descriptions-cell-padding-x: var(--space-3);
|
|
25
|
+
|
|
26
|
+
--descriptions-label-background: initial;
|
|
16
27
|
}
|
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
--pagination-total-font-size: var(--font-size-sm);
|
|
11
11
|
|
|
12
12
|
--pagination-icon-size: var(--control-icon-size);
|
|
13
|
+
|
|
14
|
+
--pagination-control-height-sm: var(--band-height-sm);
|
|
15
|
+
|
|
16
|
+
--pagination-jumper-gap: var(--space-inline-xs);
|
|
17
|
+
--pagination-jumper-width: 4rem;
|
|
18
|
+
--pagination-jumper-font-size: var(--pagination-total-font-size);
|
|
13
19
|
--filter-bar-gap: var(--space-3);
|
|
14
20
|
--filter-bar-padding-y: var(--space-2);
|
|
15
21
|
--filter-label-font-size: var(--font-size-xs);
|
|
@@ -29,6 +35,8 @@
|
|
|
29
35
|
--app-setting-picker-compact-gap: var(--space-1);
|
|
30
36
|
--app-setting-picker-compact-font-size: var(--font-size-xs);
|
|
31
37
|
--breadcrumb-font-size: var(--font-size-xs);
|
|
38
|
+
|
|
39
|
+
--breadcrumb-menu-trigger-gap: var(--space-inline-xs);
|
|
32
40
|
--menubar-shortcut-font-size: var(--font-size-xs);
|
|
33
41
|
--tabs-list-max-inline-size: 100%;
|
|
34
42
|
--tabs-list-overflow: auto;
|
|
@@ -47,6 +55,34 @@
|
|
|
47
55
|
--tabs-trigger-line-padding-x: 1rem;
|
|
48
56
|
--tabs-trigger-line-padding-y: 0.5rem;
|
|
49
57
|
|
|
58
|
+
--tabs-trigger-height-sm: var(--band-height-sm);
|
|
59
|
+
--tabs-trigger-height-md: var(--band-height-md);
|
|
60
|
+
--tabs-trigger-height-lg: var(--band-height-lg);
|
|
61
|
+
--tabs-trigger-font-size-sm: var(--font-size-xs);
|
|
62
|
+
--tabs-trigger-font-size-md: var(--font-size-base);
|
|
63
|
+
--tabs-trigger-font-size-lg: var(--font-size-lg);
|
|
64
|
+
--tabs-trigger-padding-x-sm: var(--space-2);
|
|
65
|
+
--tabs-trigger-padding-x-md: var(--space-3);
|
|
66
|
+
--tabs-trigger-padding-x-lg: var(--space-4);
|
|
67
|
+
|
|
68
|
+
--tabs-card-list-radius: 0px;
|
|
69
|
+
--tabs-card-list-space-inset: 0px;
|
|
70
|
+
--tabs-card-list-space-gap: var(--space-1);
|
|
71
|
+
--tabs-card-radius: var(--radius-md);
|
|
72
|
+
--tabs-card-rail-border-width: var(--stroke-hairline);
|
|
73
|
+
--tabs-card-background: initial;
|
|
74
|
+
|
|
75
|
+
--tabs-bar-gap: var(--space-2);
|
|
76
|
+
--tabs-extra-gap: var(--space-2);
|
|
77
|
+
--tabs-add-size: var(--band-height-md);
|
|
78
|
+
--tabs-add-radius: var(--radius-md);
|
|
79
|
+
--tabs-add-icon-size: var(--control-icon-size);
|
|
80
|
+
--tabs-trigger-icon-size: var(--control-icon-size);
|
|
81
|
+
--tabs-tab-remove-size: var(--band-height-xs);
|
|
82
|
+
--tabs-tab-remove-radius: var(--radius-sm);
|
|
83
|
+
--tabs-tab-remove-icon-size: var(--icon-size-xs);
|
|
84
|
+
--tabs-tab-remove-space-inline-end: var(--space-1);
|
|
85
|
+
|
|
50
86
|
--menubar-item-hover-background: initial;
|
|
51
87
|
--menubar-item-hover-foreground: initial;
|
|
52
88
|
|
|
@@ -75,6 +111,14 @@
|
|
|
75
111
|
--menu-content-min-width: 10rem;
|
|
76
112
|
|
|
77
113
|
--dropdown-content-min-width: 8rem;
|
|
114
|
+
|
|
115
|
+
--menu-content-width-sm: 12rem;
|
|
116
|
+
--menu-content-width-md: 16rem;
|
|
117
|
+
--menu-content-width-lg: 20rem;
|
|
118
|
+
|
|
119
|
+
--dropdown-arrow-width: var(--space-3);
|
|
120
|
+
--dropdown-arrow-height: var(--space-inline-xs);
|
|
121
|
+
--dropdown-arrow-background: initial;
|
|
78
122
|
--menu-separator-space-block: var(--space-1);
|
|
79
123
|
--menu-separator-space-inline: calc(var(--space-1) * -1);
|
|
80
124
|
|
|
@@ -99,6 +143,15 @@
|
|
|
99
143
|
--steps-connector-inset: 1.25rem;
|
|
100
144
|
--steps-connector-space-block-start: var(--space-4);
|
|
101
145
|
|
|
146
|
+
--steps-nav-space-gap: var(--space-2);
|
|
147
|
+
--steps-nav-space-inline: var(--space-4);
|
|
148
|
+
--steps-nav-space-block: var(--space-3);
|
|
149
|
+
--steps-nav-radius: var(--radius-md);
|
|
150
|
+
--steps-nav-separator-size: var(--control-icon-size-sm);
|
|
151
|
+
|
|
152
|
+
--steps-progress-ring-width: var(--stroke-md);
|
|
153
|
+
--steps-progress-track-color: initial;
|
|
154
|
+
|
|
102
155
|
--app-setting-picker-locale-width: 10rem;
|
|
103
156
|
--app-setting-picker-timezone-width: 14rem;
|
|
104
157
|
--app-setting-picker-date-format-width: 11rem;
|
|
@@ -109,6 +162,8 @@
|
|
|
109
162
|
--app-setting-picker-font-size-width: 9rem;
|
|
110
163
|
|
|
111
164
|
--app-setting-picker-width-breakpoint: 40rem;
|
|
165
|
+
--app-setting-picker-bar-border-width: 0;
|
|
166
|
+
--app-setting-picker-bar-shadow: none;
|
|
112
167
|
--app-setting-picker-icon-size: var(--icon-size-md);
|
|
113
168
|
--app-setting-picker-icon-rest-alpha: 0.7;
|
|
114
169
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
|
+
--responsive-grid-column-width: 20rem;
|
|
4
5
|
--sidebar-section-label-font-size: var(--font-size-2xs);
|
|
5
6
|
--sidebar-product-tenant-font-size: var(--font-size-2xs);
|
|
6
7
|
--sidebar-badge-font-size: var(--font-size-2xs);
|
|
@@ -42,9 +43,12 @@
|
|
|
42
43
|
--app-shell-bar-gap: var(--space-3);
|
|
43
44
|
|
|
44
45
|
--app-shell-sidebar-width: 16rem;
|
|
45
|
-
--app-shell-
|
|
46
|
+
--app-shell-sidebar-collapsed-width: 4rem;
|
|
47
|
+
|
|
48
|
+
--app-shell-nav-rail-width: 3.5rem;
|
|
46
49
|
--app-shell-page-max-width: 80rem;
|
|
47
|
-
|
|
50
|
+
|
|
51
|
+
--app-shell-main-background: initial;
|
|
48
52
|
--app-shell-mobile-nav-width: 22.5rem;
|
|
49
53
|
|
|
50
54
|
--app-shell-mobile-nav-background: initial;
|
|
@@ -99,14 +103,60 @@
|
|
|
99
103
|
--topbar-item-hover-color: var(--accent-foreground);
|
|
100
104
|
--topbar-item-active-background: var(--secondary);
|
|
101
105
|
|
|
106
|
+
--topbar-item-badge-offset-block: var(--space-1);
|
|
107
|
+
--topbar-item-badge-offset-inline: var(--space-1);
|
|
108
|
+
--topbar-item-badge-size: 1rem;
|
|
109
|
+
--topbar-item-badge-padding-inline: var(--space-1);
|
|
110
|
+
--topbar-item-badge-font-size: var(--font-size-2xs);
|
|
111
|
+
--topbar-item-badge-background: initial;
|
|
112
|
+
--topbar-item-badge-foreground: initial;
|
|
113
|
+
--topbar-item-badge-destructive-background: initial;
|
|
114
|
+
--topbar-item-badge-destructive-foreground: initial;
|
|
115
|
+
|
|
102
116
|
--topbar-item-focus-ring-offset: calc(-1 * var(--focus-ring-width));
|
|
103
117
|
--org-switcher-trigger-height: var(--band-height-xl);
|
|
104
118
|
--org-switcher-trigger-padding-x: var(--space-2);
|
|
105
|
-
|
|
119
|
+
|
|
120
|
+
--org-switcher-avatar-size: var(--control-height-sm);
|
|
121
|
+
|
|
122
|
+
--org-switcher-sheet-inset: var(--space-3);
|
|
123
|
+
|
|
124
|
+
--org-switcher-list-inset: var(--org-switcher-sheet-inset);
|
|
125
|
+
|
|
126
|
+
--org-switcher-list-offset: 0px;
|
|
127
|
+
|
|
128
|
+
--org-switcher-dialog-width: 26rem;
|
|
129
|
+
|
|
130
|
+
--org-switcher-search-space-block: var(--space-3);
|
|
106
131
|
--org-switcher-menu-width: 16rem;
|
|
107
132
|
--org-switcher-sheet-max-height: 75dvh;
|
|
108
133
|
--org-switcher-state-min-height: 8rem;
|
|
109
134
|
|
|
135
|
+
--app-launcher-panel-width: 20rem;
|
|
136
|
+
--app-launcher-panel-max-height: 26rem;
|
|
137
|
+
--app-launcher-panel-gap: var(--space-3);
|
|
138
|
+
--app-launcher-sheet-max-height: 75dvh;
|
|
139
|
+
--app-launcher-grid-gap: var(--space-1);
|
|
140
|
+
--app-launcher-tile-gap: var(--space-1);
|
|
141
|
+
--app-launcher-tile-padding: var(--space-2);
|
|
142
|
+
|
|
143
|
+
--app-launcher-tile-min-height: var(--control-height-comfortable);
|
|
144
|
+
--app-launcher-tile-radius: var(--radius);
|
|
145
|
+
--app-launcher-tile-color: var(--foreground);
|
|
146
|
+
--app-launcher-tile-hover-background: var(--accent);
|
|
147
|
+
--app-launcher-tile-hover-color: var(--accent-foreground);
|
|
148
|
+
|
|
149
|
+
--app-launcher-tile-current-background: initial;
|
|
150
|
+
--app-launcher-mark-size: 2.5rem;
|
|
151
|
+
--app-launcher-mark-radius: var(--radius);
|
|
152
|
+
--app-launcher-mark-background: var(--secondary);
|
|
153
|
+
--app-launcher-mark-foreground: var(--secondary-foreground);
|
|
154
|
+
--app-launcher-mark-font-size: var(--font-size-sm);
|
|
155
|
+
--app-launcher-name-font-size: var(--font-size-2xs);
|
|
156
|
+
--app-launcher-group-label-font-size: var(--font-size-2xs);
|
|
157
|
+
--app-launcher-group-label-color: var(--muted-foreground);
|
|
158
|
+
--app-launcher-state-min-height: 8rem;
|
|
159
|
+
|
|
110
160
|
--sidebar-item-active-color: initial;
|
|
111
161
|
--sidebar-item-active-tint: initial;
|
|
112
162
|
|
|
@@ -17,11 +17,25 @@
|
|
|
17
17
|
--table-surface-min-inline-size: 640px;
|
|
18
18
|
--table-head-font-size: var(--font-size-xs);
|
|
19
19
|
|
|
20
|
+
--table-head-font-weight: var(--font-weight-medium);
|
|
21
|
+
|
|
20
22
|
--table-header-background: initial;
|
|
21
23
|
--table-header-foreground: initial;
|
|
22
24
|
|
|
23
25
|
--table-pin-shadow: -6px 0 6px -5px hsl(var(--foreground) / 0.12);
|
|
24
26
|
|
|
27
|
+
--table-fixed-shadow-start: 6px 0 6px -5px hsl(var(--foreground) / 0.12);
|
|
28
|
+
--table-fixed-shadow-start-rtl: -6px 0 6px -5px hsl(var(--foreground) / 0.12);
|
|
29
|
+
|
|
30
|
+
--table-expand-column-width: 2.5rem;
|
|
31
|
+
|
|
32
|
+
--table-summary-background: initial;
|
|
33
|
+
--table-summary-border-width: var(--stroke-hairline);
|
|
34
|
+
|
|
35
|
+
--table-row-expanded-background: initial;
|
|
36
|
+
|
|
37
|
+
--table-selection-menu-gap: var(--space-1);
|
|
38
|
+
|
|
25
39
|
--table-row-striped-background: initial;
|
|
26
40
|
--table-row-hover-background: initial;
|
|
27
41
|
--table-row-selected-background: initial;
|
|
@@ -273,6 +273,8 @@
|
|
|
273
273
|
--space-inline-sm: var(--space-2);
|
|
274
274
|
--space-inline-md: var(--space-3);
|
|
275
275
|
--space-inline-lg: var(--space-4);
|
|
276
|
+
|
|
277
|
+
--space-inline-xl: var(--space-6);
|
|
276
278
|
--space-chrome-x: var(--space-6);
|
|
277
279
|
--space-chrome-y: var(--space-4);
|
|
278
280
|
--space-chrome-gap: var(--space-2);
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
--overlay-z-index: 50;
|
|
19
19
|
|
|
20
20
|
--master-detail-rail-compact: 18.75rem;
|
|
21
|
+
--master-detail-rail-narrow: 12rem;
|
|
22
|
+
--master-detail-rail-wide: 24rem;
|
|
21
23
|
--master-detail-rail-standard: 20rem;
|
|
22
24
|
--master-detail-gap: var(--space-stack-md);
|
|
23
25
|
|
|
@@ -37,6 +39,8 @@
|
|
|
37
39
|
|
|
38
40
|
--overlay-background: rgb(0 0 0 / 0.5);
|
|
39
41
|
|
|
42
|
+
--surface-recessed: hsl(var(--muted) / 0.4);
|
|
43
|
+
|
|
40
44
|
--page-footer-pad-block-end: var(--space-stack-md);
|
|
41
45
|
--page-header-divider: none;
|
|
42
46
|
|
|
@@ -80,6 +84,11 @@
|
|
|
80
84
|
--field-label-gap: var(--space-2);
|
|
81
85
|
}
|
|
82
86
|
|
|
87
|
+
.dark,
|
|
88
|
+
:root[data-theme="dark"] {
|
|
89
|
+
--surface-recessed: hsl(var(--background));
|
|
90
|
+
}
|
|
91
|
+
|
|
83
92
|
:root {
|
|
84
93
|
--admin-collection-control-height: var(--control-height-default);
|
|
85
94
|
--admin-collection-section-gap: var(--space-stack-md);
|
package/docs/COMPONENTS.md
CHANGED
|
@@ -48,9 +48,13 @@ All UI is **mobile-first**: base layout targets ~320–428px viewport; `sm` (640
|
|
|
48
48
|
|
|
49
49
|
Default `direction="row"`; use `direction="col"` for vertical rhythm.
|
|
50
50
|
|
|
51
|
-
| Component | Prop | Key props
|
|
52
|
-
| --------- | ---------- |
|
|
53
|
-
| `Flex` | `FlexProp` | `direction: "row" \| "col"`, `gap: GapProp`, `align`, `justify`, `wrap` |
|
|
51
|
+
| Component | Prop | Key props |
|
|
52
|
+
| --------- | ---------- | ---------------------------------------------------------------------------------------------------- |
|
|
53
|
+
| `Flex` | `FlexProp` | `direction: "row" \| "col"`, `gap: GapProp`, `gapRaw`, `pad`, `padRaw`, `fill`, `width`, `align`, `justify`, `wrap` |
|
|
54
|
+
|
|
55
|
+
`fill` / `width` are the `fixed | elastic | fixed` row: `width` pins a column (number = px, and
|
|
56
|
+
leaves `data-width-raw` on the DOM so the measurement stays countable), `fill` takes what is left
|
|
57
|
+
and sets `min-inline-size: 0` so a truncating child ellipses instead of widening the row.
|
|
54
58
|
|
|
55
59
|
---
|
|
56
60
|
|
|
@@ -92,6 +96,8 @@ Default `direction="row"`; use `direction="col"` for vertical rhythm.
|
|
|
92
96
|
| `Descriptions` | `DescriptionsProp` | `items[]` |
|
|
93
97
|
| `Badge` | `BadgeProp` | `status`, `tone: ToneProp` |
|
|
94
98
|
| `Badge` | `BadgeProp` | shadcn badge variants |
|
|
99
|
+
| `Progress` | `ProgressProp` | `value` (meter) \| `segments` (breakdown) |
|
|
100
|
+
| `Legend` | `LegendProp` | `items[]` — the key for a tone |
|
|
95
101
|
| `Popover` | Radix primitives | floating content panel |
|
|
96
102
|
| `ScrollArea` | Radix primitives | scrollable regions |
|
|
97
103
|
| `Collapsible` | Radix primitives | expand/collapse sections |
|
package/docs/CONSUMER-RULES.md
CHANGED
|
@@ -12,3 +12,16 @@ Read this once; the audit enforces it. Everything else in `docs/` is for contrib
|
|
|
12
12
|
8. Sizes come from props (`size`, `width`, `columns`), never `w-[240px]` / `max-h-[420px]`.
|
|
13
13
|
9. Logical directions (`ms-`, `me-`, `start-`, `end-`) when a utility is unavoidable; never `ml-` / `left-`.
|
|
14
14
|
10. Run `node node_modules/@godxjp/ui/scripts/ui-audit.mjs <dir>` before every review; then `visual-audit.mjs <url>` on the running app. Zero errors is the bar.
|
|
15
|
+
|
|
16
|
+
**Opting a deliberate exception out.** Name the rule; the block form also has to say why.
|
|
17
|
+
|
|
18
|
+
```tsx
|
|
19
|
+
// ui-audit-disable-line no-physical-direction
|
|
20
|
+
// ui-audit-disable-next-line no-physical-direction
|
|
21
|
+
|
|
22
|
+
// ui-audit-disable-begin no-utility-spacing — vendor widget ships its own grid, gh#123
|
|
23
|
+
const legacyClasses = ["gap-3", "p-2"];
|
|
24
|
+
// ui-audit-disable-end no-utility-spacing
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
A block with no reason (or under 12 characters of it) is ignored and the finding stands; an unclosed block runs to the end of the file. The class-shaped rules (`gap-*`, `bg-red-500`, `w-[37px]`, `pr-*`, `dark:*`) only read class expressions — a `className`/`class` attribute, a class-named binding (`baseClass`, `statusStyles`, `badgeVariants`) or a `cn()`/`clsx()`/`cva()` call — so product copy or an i18n value that happens to spell a utility is never a finding.
|