@hirobius/design-system 0.19.1 → 0.20.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/CONSUMING.md +9 -6
- package/DESIGN.md +7 -5
- package/README.md +14 -11
- package/codemods/hds-prefix.mjs +231 -0
- package/codemods/jsx-fold.mjs +515 -0
- package/codemods/not-found-pattern.mjs +71 -0
- package/codemods/patterns-subpath.mjs +242 -81
- package/codemods/patterns-subpath.names.json +41 -15
- package/codemods/removed-0.20.json +194 -0
- package/codemods/tile-grid.mjs +283 -0
- package/codemods/unrewritable.mjs +291 -0
- package/dist/chunks/DemoStateContext-Cz5TmrYu.js +32 -0
- package/dist/chunks/empty-state-BBqhCx0S.js +1217 -0
- package/dist/contexts.js +157 -78
- package/dist/hirobius-ui.js +1517 -5270
- package/dist/manifest.js +12 -13
- package/dist/patterns.js +780 -513
- package/dist/styles.css +1 -1
- package/dist/tokens.css +1 -1
- package/dist/tokens.js +29 -8
- package/dist/types/src/app/components/avatar-group.d.ts +1 -2
- package/dist/types/src/app/components/badge.d.ts +8 -3
- package/dist/types/src/app/components/blockquote.d.ts +1 -2
- package/dist/types/src/app/components/box-sx.d.ts +110 -13
- package/dist/types/src/app/components/box.d.ts +6 -3
- package/dist/types/src/app/components/breadcrumb.d.ts +0 -5
- package/dist/types/src/app/components/button.d.ts +33 -4
- package/dist/types/src/app/components/card.d.ts +7 -8
- package/dist/types/src/app/components/combobox.d.ts +47 -11
- package/dist/types/src/app/components/container.d.ts +2 -2
- package/dist/types/src/app/components/data-table-section.d.ts +1 -1
- package/dist/types/src/app/components/dialog.d.ts +7 -1
- package/dist/types/src/app/components/disclosure.d.ts +1 -5
- package/dist/types/src/app/components/field.d.ts +1 -2
- package/dist/types/src/app/components/grid.d.ts +10 -6
- package/dist/types/src/app/components/hds-tooltip.d.ts +12 -2
- package/dist/types/src/app/components/inline-code.d.ts +1 -2
- package/dist/types/src/app/components/input.d.ts +8 -5
- package/dist/types/src/app/components/kbd.d.ts +1 -2
- package/dist/types/src/app/components/metadata-list.d.ts +1 -2
- package/dist/types/src/app/components/page-header.d.ts +0 -2
- package/dist/types/src/app/components/popover.d.ts +8 -0
- package/dist/types/src/app/components/progress.d.ts +33 -6
- package/dist/types/src/app/components/segmented-control.d.ts +2 -26
- package/dist/types/src/app/components/select.d.ts +10 -1
- package/dist/types/src/app/components/skeleton.d.ts +2 -3
- package/dist/types/src/app/components/spinner.d.ts +1 -2
- package/dist/types/src/app/components/stack.d.ts +4 -1
- package/dist/types/src/app/components/stat.d.ts +1 -2
- package/dist/types/src/app/components/status-dot.d.ts +18 -4
- package/dist/types/src/app/components/status-list-item.d.ts +1 -2
- package/dist/types/src/app/components/surface.d.ts +2 -3
- package/dist/types/src/app/components/switcher.d.ts +1 -1
- package/dist/types/src/app/components/table.d.ts +1 -15
- package/dist/types/src/app/components/tag.d.ts +0 -6
- package/dist/types/src/app/components/text.d.ts +1 -2
- package/dist/types/src/app/components/textarea.d.ts +1 -2
- package/dist/types/src/app/components/toast.d.ts +1 -2
- package/dist/types/src/app/components/tooltip.d.ts +1 -1
- package/dist/types/src/app/context/DemoStateContext.d.ts +1 -1
- package/dist/types/src/app/context/RouterContext.d.ts +5 -5
- package/dist/types/src/app/data/manifest-types.d.ts +6 -5
- package/dist/types/src/app/design-system/generated-token-refs.d.ts +8 -0
- package/dist/types/src/app/design-system/generated-token-values.d.ts +1 -0
- package/dist/types/src/app/design-system/tokens.d.ts +22 -3
- package/dist/types/src/icons.d.ts +1 -1
- package/dist/types/src/index.d.ts +33 -124
- package/dist/types/src/patterns.d.ts +20 -25
- package/dist/variables.css +6 -0
- package/docs/CONSUMING.md +21 -13
- package/hirobius.tokens.json +48 -15
- package/llms.txt +19 -20
- package/package.json +17 -22
- package/public/hds-manifest.json +2405 -6537
- package/public/llms/components.txt +41 -423
- package/public/llms/layout.txt +4 -4
- package/public/llms-full.txt +67 -448
- package/public/llms.txt +19 -20
- package/src/app/data/component-api.json +1379 -3271
- package/dist/chunks/LanguageContext-BxdCwiFg.js +0 -95
- package/dist/chunks/TokenDisplayContext-DKYJMVWk.js +0 -26
- package/dist/chunks/activity-feed-BGQ6v3wc.js +0 -22040
- package/dist/types/src/app/components/activity-feed.d.ts +0 -73
- package/dist/types/src/app/components/app-shell.d.ts +0 -40
- package/dist/types/src/app/components/aspect-ratio.d.ts +0 -25
- package/dist/types/src/app/components/bleed.d.ts +0 -39
- package/dist/types/src/app/components/button-group.d.ts +0 -22
- package/dist/types/src/app/components/calendar.d.ts +0 -22
- package/dist/types/src/app/components/carousel.d.ts +0 -26
- package/dist/types/src/app/components/center.d.ts +0 -36
- package/dist/types/src/app/components/cinematic-link.d.ts +0 -18
- package/dist/types/src/app/components/circular-progress.d.ts +0 -28
- package/dist/types/src/app/components/cluster.d.ts +0 -39
- package/dist/types/src/app/components/command-palette.d.ts +0 -46
- package/dist/types/src/app/components/component-instance-matrix.d.ts +0 -27
- package/dist/types/src/app/components/context-menu.d.ts +0 -78
- package/dist/types/src/app/components/cover.d.ts +0 -43
- package/dist/types/src/app/components/date-input.d.ts +0 -31
- package/dist/types/src/app/components/date-range-input.d.ts +0 -34
- package/dist/types/src/app/components/date-time-input.d.ts +0 -30
- package/dist/types/src/app/components/doc-link-card.d.ts +0 -32
- package/dist/types/src/app/components/error-boundary.d.ts +0 -25
- package/dist/types/src/app/components/file-input.d.ts +0 -30
- package/dist/types/src/app/components/foundation-swatch.d.ts +0 -45
- package/dist/types/src/app/components/frame.d.ts +0 -38
- package/dist/types/src/app/components/heading-stack.d.ts +0 -52
- package/dist/types/src/app/components/history-card.d.ts +0 -12
- package/dist/types/src/app/components/hover-card.d.ts +0 -46
- package/dist/types/src/app/components/icon-button.d.ts +0 -22
- package/dist/types/src/app/components/image-lightbox.d.ts +0 -14
- package/dist/types/src/app/components/input-group.d.ts +0 -23
- package/dist/types/src/app/components/multi-selector.d.ts +0 -40
- package/dist/types/src/app/components/nav-group.d.ts +0 -29
- package/dist/types/src/app/components/nav-item.d.ts +0 -33
- package/dist/types/src/app/components/not-found-pattern.d.ts +0 -1
- package/dist/types/src/app/components/overflow-list.d.ts +0 -21
- package/dist/types/src/app/components/selectable-card.d.ts +0 -29
- package/dist/types/src/app/components/side-nav.d.ts +0 -23
- package/dist/types/src/app/components/sketch.d.ts +0 -19
- package/dist/types/src/app/components/stacked-card-rail.d.ts +0 -32
- package/dist/types/src/app/components/stepper-field.d.ts +0 -12
- package/dist/types/src/app/components/stepper.d.ts +0 -33
- package/dist/types/src/app/components/text-lockup.d.ts +0 -38
- package/dist/types/src/app/components/tile-grid.d.ts +0 -17
- package/dist/types/src/app/components/time-input.d.ts +0 -24
- package/dist/types/src/app/components/toggle-button.d.ts +0 -32
- package/dist/types/src/app/components/token.d.ts +0 -90
- package/dist/types/src/app/components/tokenUtils.d.ts +0 -38
- package/dist/types/src/app/components/tokenizer.d.ts +0 -24
- package/dist/types/src/app/components/toolbar.d.ts +0 -36
- package/dist/types/src/app/components/top-nav.d.ts +0 -23
- package/dist/types/src/app/components/tree-list.d.ts +0 -30
- package/dist/types/src/app/data/nav-model.d.ts +0 -39
- package/dist/types/src/app/hooks/useFocusVisible.d.ts +0 -9
- package/dist/types/src/app/layouts/CaseStudyLayout.d.ts +0 -20
- package/dist/types/src/app/layouts/DocLayout.d.ts +0 -14
- package/dist/types/src/app/layouts/EmbeddedDocLayoutContext.d.ts +0 -6
- package/dist/types/src/app/layouts/HdsDocsShell.d.ts +0 -72
- package/dist/types/src/app/layouts/HdsSystemDocLayout.d.ts +0 -14
- package/dist/types/src/app/lib/hds-search.d.ts +0 -45
- package/dist/types/src/app/lib/nav-active.d.ts +0 -16
- package/dist/types/src/app/lib/navLevels.d.ts +0 -4
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './app/components/alert.js';
|
|
2
|
-
export * from './app/components/asset-img.js';
|
|
3
2
|
export * from './app/components/avatar.js';
|
|
4
3
|
export * from './app/components/badge.js';
|
|
5
4
|
export * from './app/components/box.js';
|
|
@@ -9,19 +8,13 @@ export * from './app/components/field.js';
|
|
|
9
8
|
export * from './app/components/stat.js';
|
|
10
9
|
export * from './app/components/status-list-item.js';
|
|
11
10
|
export * from './app/components/card.js';
|
|
12
|
-
export * from './app/components/cinematic-link.js';
|
|
13
|
-
export * from './app/components/code-block.js';
|
|
14
|
-
export * from './app/components/component-instance-matrix.js';
|
|
15
11
|
export * from './app/components/container.js';
|
|
16
12
|
export * from './app/components/dialog.js';
|
|
17
13
|
export * from './app/components/divider.js';
|
|
18
14
|
export * from './app/components/menu.js';
|
|
19
15
|
export * from './app/components/popover.js';
|
|
20
16
|
export * from './app/components/hds-tooltip.js';
|
|
21
|
-
export * from './app/components/doc-link-card.js';
|
|
22
17
|
export * from './app/components/grid.js';
|
|
23
|
-
export * from './app/components/heading-stack.js';
|
|
24
|
-
export * from './app/components/history-card.js';
|
|
25
18
|
export * from './app/components/icon.js';
|
|
26
19
|
export * from './app/components/inline-code.js';
|
|
27
20
|
export * from './app/components/inline-link.js';
|
|
@@ -31,7 +24,6 @@ export * from './app/components/checkbox.js';
|
|
|
31
24
|
export * from './app/components/radio.js';
|
|
32
25
|
export * from './app/components/slider.js';
|
|
33
26
|
export * from './app/components/toggle.js';
|
|
34
|
-
export * from './app/components/nav-item.js';
|
|
35
27
|
export * from './app/components/progress.js';
|
|
36
28
|
export * from './app/components/skeleton.js';
|
|
37
29
|
export * from './app/components/spinner.js';
|
|
@@ -42,74 +34,24 @@ export * from './app/components/surface.js';
|
|
|
42
34
|
export * from './app/components/table.js';
|
|
43
35
|
export * from './app/components/tag.js';
|
|
44
36
|
export * from './app/components/text.js';
|
|
45
|
-
export * from './app/components/token.js';
|
|
46
37
|
export * from './app/components/kbd.js';
|
|
47
38
|
export * from './app/components/status-dot.js';
|
|
48
39
|
export * from './app/components/timestamp.js';
|
|
49
40
|
export * from './app/components/blockquote.js';
|
|
50
41
|
export * from './app/components/visually-hidden.js';
|
|
51
42
|
export * from './app/components/avatar-group.js';
|
|
52
|
-
export * from './app/components/button-group.js';
|
|
53
|
-
export * from './app/components/input-group.js';
|
|
54
|
-
export * from './app/components/circular-progress.js';
|
|
55
|
-
export * from './app/components/toggle-button.js';
|
|
56
|
-
export * from './app/components/aspect-ratio.js';
|
|
57
43
|
export * from './app/components/alert-dialog.js';
|
|
58
|
-
export * from './app/components/hover-card.js';
|
|
59
|
-
export * from './app/components/context-menu.js';
|
|
60
|
-
export * from './app/components/side-nav.js';
|
|
61
|
-
export * from './app/components/command-palette.js';
|
|
62
|
-
export * from './app/components/image-lightbox.js';
|
|
63
44
|
export * from './app/components/metadata-list.js';
|
|
64
|
-
export * from './app/components/overflow-list.js';
|
|
65
|
-
export * from './app/components/top-nav.js';
|
|
66
|
-
export * from './app/components/app-shell.js';
|
|
67
|
-
export * from './app/components/selectable-card.js';
|
|
68
|
-
export * from './app/components/tokenizer.js';
|
|
69
|
-
export * from './app/components/file-input.js';
|
|
70
|
-
export * from './app/components/multi-selector.js';
|
|
71
|
-
export * from './app/components/toolbar.js';
|
|
72
|
-
export * from './app/components/tree-list.js';
|
|
73
|
-
export * from './app/components/stepper.js';
|
|
74
|
-
export * from './app/components/carousel.js';
|
|
75
|
-
export * from './app/components/calendar.js';
|
|
76
|
-
export * from './app/components/time-input.js';
|
|
77
|
-
export * from './app/components/date-input.js';
|
|
78
|
-
export * from './app/components/date-range-input.js';
|
|
79
|
-
export * from './app/components/date-time-input.js';
|
|
80
|
-
export * from './app/components/cluster.js';
|
|
81
|
-
export * from './app/components/center.js';
|
|
82
45
|
export * from './app/components/sidebar.js';
|
|
83
46
|
export * from './app/components/switcher.js';
|
|
84
|
-
export * from './app/components/cover.js';
|
|
85
|
-
export * from './app/components/frame.js';
|
|
86
|
-
export * from './app/components/bleed.js';
|
|
87
|
-
export * from './app/components/reveal.js';
|
|
88
47
|
export * from './app/components/pin.js';
|
|
89
|
-
export * from './app/components/page.js';
|
|
90
48
|
export * from './app/components/empty-state.js';
|
|
91
|
-
export * from './app/components/error-boundary.js';
|
|
92
|
-
export * from './app/components/not-found-pattern.js';
|
|
93
49
|
export * from './app/components/tabs.js';
|
|
94
|
-
export * from './app/components/tile-grid.js';
|
|
95
|
-
export * from './app/components/status-tile.js';
|
|
96
|
-
export * from './app/components/activity-feed.js';
|
|
97
50
|
export * from './app/components/breadcrumb.js';
|
|
98
51
|
export * from './app/components/combobox.js';
|
|
99
52
|
export * from './app/components/disclosure.js';
|
|
100
|
-
export * from './app/components/form.js';
|
|
101
|
-
export * from './app/components/foundation-swatch.js';
|
|
102
|
-
export * from './app/components/icon-button.js';
|
|
103
|
-
export * from './app/components/nav-group.js';
|
|
104
53
|
export * from './app/components/pagination.js';
|
|
105
|
-
export * from './app/components/sketch.js';
|
|
106
|
-
export * from './app/components/stepper-field.js';
|
|
107
|
-
export * from './app/components/text-lockup.js';
|
|
108
54
|
export * from './app/components/toast.js';
|
|
109
|
-
export * from './app/layouts/CaseStudyLayout.js';
|
|
110
|
-
export * from './app/components/error-pattern.js';
|
|
111
|
-
export * from './app/layouts/HdsSystemDocLayout.js';
|
|
112
|
-
export * from './app/layouts/HdsDocsShell.js';
|
|
113
55
|
export { default as hds } from './app/design-system/tokens.js';
|
|
114
56
|
/** Raw DTCG design tokens (the contents of `hirobius.tokens.json`). */
|
|
115
57
|
export declare const tokens: {
|
|
@@ -930,6 +872,14 @@ export declare const tokens: {
|
|
|
930
872
|
};
|
|
931
873
|
$description: string;
|
|
932
874
|
};
|
|
875
|
+
"120": {
|
|
876
|
+
$type: string;
|
|
877
|
+
$value: {
|
|
878
|
+
value: number;
|
|
879
|
+
unit: string;
|
|
880
|
+
};
|
|
881
|
+
$description: string;
|
|
882
|
+
};
|
|
933
883
|
$description: string;
|
|
934
884
|
interactive: {
|
|
935
885
|
$description: string;
|
|
@@ -1557,6 +1507,22 @@ export declare const tokens: {
|
|
|
1557
1507
|
};
|
|
1558
1508
|
};
|
|
1559
1509
|
};
|
|
1510
|
+
state: {
|
|
1511
|
+
pressed: {
|
|
1512
|
+
overlay: {
|
|
1513
|
+
$value: string;
|
|
1514
|
+
$description: string;
|
|
1515
|
+
$extensions: {
|
|
1516
|
+
"com.figma.variables": {
|
|
1517
|
+
modes: {
|
|
1518
|
+
Light: string;
|
|
1519
|
+
Dark: string;
|
|
1520
|
+
};
|
|
1521
|
+
};
|
|
1522
|
+
};
|
|
1523
|
+
};
|
|
1524
|
+
};
|
|
1525
|
+
};
|
|
1560
1526
|
};
|
|
1561
1527
|
space: {
|
|
1562
1528
|
$type: string;
|
|
@@ -2117,6 +2083,10 @@ export declare const tokens: {
|
|
|
2117
2083
|
$value: string;
|
|
2118
2084
|
$description: string;
|
|
2119
2085
|
};
|
|
2086
|
+
tile: {
|
|
2087
|
+
$value: string;
|
|
2088
|
+
$description: string;
|
|
2089
|
+
};
|
|
2120
2090
|
row: {
|
|
2121
2091
|
$description: string;
|
|
2122
2092
|
compact: {
|
|
@@ -2607,6 +2577,11 @@ export declare const tokens: {
|
|
|
2607
2577
|
$value: string;
|
|
2608
2578
|
$description: string;
|
|
2609
2579
|
};
|
|
2580
|
+
"pressed-overlay": {
|
|
2581
|
+
$type: string;
|
|
2582
|
+
$value: string;
|
|
2583
|
+
$description: string;
|
|
2584
|
+
};
|
|
2610
2585
|
"popover-foreground": {
|
|
2611
2586
|
$type: string;
|
|
2612
2587
|
$value: string;
|
|
@@ -2689,69 +2664,3 @@ export { HdsThemeProvider, useHdsTheme } from './app/context/hds-theme.js';
|
|
|
2689
2664
|
export type { HdsTheme, HdsDensity, HdsThemeValue, HdsThemeProviderProps, } from './app/context/hds-theme.js';
|
|
2690
2665
|
export { HdsRouterProvider, useHdsRouter } from './app/context/RouterContext.js';
|
|
2691
2666
|
export type { HdsRouterAdapter, HdsRouterProviderProps, HdsLinkComponent, HdsLinkProps, HdsNavigateOptions, } from './app/context/RouterContext.js';
|
|
2692
|
-
import { ActivityFeed as _ActivityFeed254 } from './app/components/activity-feed.js';
|
|
2693
|
-
import { AssetImg as _AssetImg254 } from './app/components/asset-img.js';
|
|
2694
|
-
import { Calendar as _Calendar254 } from './app/components/calendar.js';
|
|
2695
|
-
import { CodeBlock as _CodeBlock254 } from './app/components/code-block.js';
|
|
2696
|
-
import { DocLinkCard as _DocLinkCard254 } from './app/components/doc-link-card.js';
|
|
2697
|
-
import { ErrorPattern as _ErrorPattern254 } from './app/components/error-pattern.js';
|
|
2698
|
-
import { Lightbox as _Lightbox254 } from './app/components/image-lightbox.js';
|
|
2699
|
-
import { NavItem as _NavItem254 } from './app/components/nav-item.js';
|
|
2700
|
-
import { Page as _Page254 } from './app/components/page.js';
|
|
2701
|
-
import { SideNav as _SideNav254 } from './app/components/side-nav.js';
|
|
2702
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. */
|
|
2703
|
-
export declare const ActivityFeed: typeof _ActivityFeed254;
|
|
2704
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. */
|
|
2705
|
-
export declare const AppShell: import("react").ForwardRefExoticComponent<import("./app/components/app-shell.js").AppShellProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
2706
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. `ops` is a current importer of this component — its codemod is tracked under hds#124 before this is dropped. */
|
|
2707
|
-
export declare const AssetImg: typeof _AssetImg254;
|
|
2708
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. */
|
|
2709
|
-
export declare const Calendar: typeof _Calendar254;
|
|
2710
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. */
|
|
2711
|
-
export declare const Carousel: import("react").ForwardRefExoticComponent<import("./app/components/carousel.js").CarouselProps & import("react").RefAttributes<HTMLElement>>;
|
|
2712
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. */
|
|
2713
|
-
export declare const CodeBlock: typeof _CodeBlock254;
|
|
2714
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. */
|
|
2715
|
-
export declare const CommandPalette: import("react").ForwardRefExoticComponent<import("./app/components/command-palette.js").CommandPaletteProps & import("react").RefAttributes<HTMLInputElement>> & {
|
|
2716
|
-
displayName: string;
|
|
2717
|
-
};
|
|
2718
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. */
|
|
2719
|
-
export declare const DocLinkCard: typeof _DocLinkCard254;
|
|
2720
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. */
|
|
2721
|
-
export declare const ErrorPattern: typeof _ErrorPattern254;
|
|
2722
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. */
|
|
2723
|
-
export declare const FileInput: import("react").ForwardRefExoticComponent<import("./app/components/file-input.js").FileInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
2724
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. */
|
|
2725
|
-
export declare const Form: import("react").ForwardRefExoticComponent<import("./app/components/form.js").FormProps & import("react").RefAttributes<HTMLFormElement>>;
|
|
2726
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. */
|
|
2727
|
-
export declare const Lightbox: typeof _Lightbox254;
|
|
2728
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. */
|
|
2729
|
-
export declare const NavItem: typeof _NavItem254;
|
|
2730
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. */
|
|
2731
|
-
export declare const OverflowList: import("react").ForwardRefExoticComponent<import("./app/components/overflow-list.js").OverflowListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
2732
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. */
|
|
2733
|
-
export declare const Page: typeof _Page254;
|
|
2734
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. */
|
|
2735
|
-
export declare const Reveal: import("react").ForwardRefExoticComponent<import("./app/components/reveal.js").RevealProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
2736
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. */
|
|
2737
|
-
export declare const SideNav: typeof _SideNav254;
|
|
2738
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. */
|
|
2739
|
-
export declare const Stepper: import("react").ForwardRefExoticComponent<import("./app/components/stepper.js").StepperProps & import("react").RefAttributes<HTMLOListElement>>;
|
|
2740
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. */
|
|
2741
|
-
export declare const Toolbar: import("./app/components/toolbar.js").ToolbarComponent;
|
|
2742
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. */
|
|
2743
|
-
export declare const TopNav: import("react").ForwardRefExoticComponent<import("./app/components/top-nav.js").TopNavProps & import("react").RefAttributes<HTMLElement>>;
|
|
2744
|
-
/** @deprecated Import from `@hirobius/design-system/patterns` instead — the root re-export is kept for one minor (hds#254) and removed at the next major once ops has a codemod. */
|
|
2745
|
-
export declare const TreeList: import("react").ForwardRefExoticComponent<import("./app/components/tree-list.js").TreeListProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
2746
|
-
/** @deprecated Use `Checkbox` — the `Hds` prefix is dropped to match the rest of the surface. This alias is kept until the 1.0 alias-removal window (hds#254). */
|
|
2747
|
-
export { Checkbox as HdsCheckbox } from './app/components/checkbox.js';
|
|
2748
|
-
/** @deprecated Use `Radio` — the `Hds` prefix is dropped to match the rest of the surface. This alias is kept until the 1.0 alias-removal window (hds#254). */
|
|
2749
|
-
export { Radio as HdsRadio } from './app/components/radio.js';
|
|
2750
|
-
/** @deprecated Use `Select` — the `Hds` prefix is dropped to match the rest of the surface. This alias is kept until the 1.0 alias-removal window (hds#254). */
|
|
2751
|
-
export { Select as HdsSelect } from './app/components/select.js';
|
|
2752
|
-
/** @deprecated Use `Slider` — the `Hds` prefix is dropped to match the rest of the surface. This alias is kept until the 1.0 alias-removal window (hds#254). */
|
|
2753
|
-
export { Slider as HdsSlider } from './app/components/slider.js';
|
|
2754
|
-
/** @deprecated Use `Toggle` — the `Hds` prefix is dropped to match the rest of the surface. This alias is kept until the 1.0 alias-removal window (hds#254). */
|
|
2755
|
-
export { Toggle as HdsToggle } from './app/components/toggle.js';
|
|
2756
|
-
/** @deprecated Use `Tooltip` — the `Hds` prefix is dropped to match the rest of the surface. This alias is kept until the 1.0 alias-removal window (hds#254). */
|
|
2757
|
-
export { Tooltip as HdsTooltip } from './app/components/hds-tooltip.js';
|
|
@@ -1,42 +1,37 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @hirobius/design-system/patterns
|
|
3
3
|
*
|
|
4
|
-
* The
|
|
5
|
-
* 2026-09-26): composed, higher-level surfaces (
|
|
6
|
-
*
|
|
7
|
-
* toward. Split into their own subpath so a consumer that only needs
|
|
4
|
+
* The `pattern`-tier modules (hds#254 disposition table, ratified
|
|
5
|
+
* 2026-09-26): composed, higher-level surfaces (page shells, forms, code
|
|
6
|
+
* blocks, page sections) as opposed to the `core` primitives the main barrel
|
|
7
|
+
* is trending toward. Split into their own subpath so a consumer that only needs
|
|
8
8
|
* primitives doesn't pull in this tier's weight.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* `
|
|
14
|
-
*
|
|
10
|
+
* This is the only entry that exports them. Until 0.20.0 the package root
|
|
11
|
+
* also re-exported 21 of these modules behind `@deprecated` aliases (hds#254);
|
|
12
|
+
* hds#389 R1 removed those root re-exports, and
|
|
13
|
+
* `npx -p @hirobius/design-system@^0.20.0 hds-patterns-subpath`
|
|
14
|
+
* (codemods/patterns-subpath.mjs) moves consumer imports here.
|
|
15
|
+
*
|
|
16
|
+
* The same release removed 16 of these modules outright (hds#394 wave 4a, no
|
|
17
|
+
* survivor): ActivityFeed, AppShell, Calendar, Carousel, CommandPalette,
|
|
18
|
+
* DocLinkCard, FileInput, Lightbox, NavItem, OverflowList, SideNav,
|
|
19
|
+
* StackedCardRail, Stepper, Toolbar, TopNav and TreeList. The codemod reports
|
|
20
|
+
* an import of any of them for a manual edit (codemods/removed-0.20.json).
|
|
21
|
+
*
|
|
22
|
+
* StatusTile joined this entry in the same release (hds#389 D5, hds#395): the
|
|
23
|
+
* root stopped exporting it, and hds-patterns-subpath moves a root import of
|
|
24
|
+
* StatusTile, StatusTileProps or StatusTileTone here.
|
|
15
25
|
*/
|
|
16
|
-
export * from './app/components/calendar.js';
|
|
17
|
-
export * from './app/components/file-input.js';
|
|
18
26
|
export * from './app/components/form.js';
|
|
19
|
-
export * from './app/components/app-shell.js';
|
|
20
|
-
export * from './app/components/overflow-list.js';
|
|
21
27
|
export * from './app/components/page.js';
|
|
22
|
-
export * from './app/components/activity-feed.js';
|
|
23
28
|
export * from './app/components/asset-img.js';
|
|
24
|
-
export * from './app/components/carousel.js';
|
|
25
29
|
export * from './app/components/code-block.js';
|
|
26
|
-
export * from './app/components/stacked-card-rail.js';
|
|
27
|
-
export * from './app/components/doc-link-card.js';
|
|
28
|
-
export * from './app/components/nav-item.js';
|
|
29
|
-
export * from './app/components/side-nav.js';
|
|
30
|
-
export * from './app/components/stepper.js';
|
|
31
|
-
export * from './app/components/top-nav.js';
|
|
32
|
-
export * from './app/components/tree-list.js';
|
|
33
30
|
export * from './app/components/error-pattern.js';
|
|
34
|
-
export * from './app/components/toolbar.js';
|
|
35
|
-
export * from './app/components/command-palette.js';
|
|
36
|
-
export * from './app/components/image-lightbox.js';
|
|
37
31
|
export * from './app/components/reveal.js';
|
|
38
32
|
export * from './app/components/page-header.js';
|
|
39
33
|
export * from './app/components/metric-tiles.js';
|
|
40
34
|
export * from './app/components/form-actions.js';
|
|
41
35
|
export * from './app/components/destructive-section.js';
|
|
42
36
|
export * from './app/components/data-table-section.js';
|
|
37
|
+
export * from './app/components/status-tile.js';
|
package/dist/variables.css
CHANGED
|
@@ -156,6 +156,7 @@
|
|
|
156
156
|
--primitive-size-64: 64px;
|
|
157
157
|
--primitive-size-80: 80px;
|
|
158
158
|
--primitive-size-96: 96px;
|
|
159
|
+
--primitive-size-120: 120px;
|
|
159
160
|
--primitive-size-interactive-min: 44px;
|
|
160
161
|
--primitive-size-interactive-minCompact: 24px;
|
|
161
162
|
--primitive-size-width-96: 96px;
|
|
@@ -227,6 +228,7 @@
|
|
|
227
228
|
--semantic-color-feedback-bg-warning: var(--primitive-color-amber-50);
|
|
228
229
|
--semantic-color-feedback-bg-info: var(--primitive-color-blue-50);
|
|
229
230
|
--semantic-color-feedback-bg-inProgress: var(--primitive-color-violet-50);
|
|
231
|
+
--semantic-color-state-pressed-overlay: var(--primitive-color-neutral-black);
|
|
230
232
|
--semantic-space-scale-xs: var(--primitive-space-2);
|
|
231
233
|
--semantic-space-scale-sm: var(--primitive-space-4);
|
|
232
234
|
--semantic-space-scale-md: var(--primitive-space-6);
|
|
@@ -363,6 +365,7 @@
|
|
|
363
365
|
--semantic-size-icon-md: var(--primitive-size-20);
|
|
364
366
|
--semantic-size-icon-lg: var(--primitive-size-24);
|
|
365
367
|
--semantic-size-avatar: var(--primitive-size-40);
|
|
368
|
+
--semantic-size-tile: var(--primitive-size-120);
|
|
366
369
|
--semantic-size-row-compact: var(--primitive-size-40);
|
|
367
370
|
--semantic-size-row-comfortable: var(--primitive-size-48);
|
|
368
371
|
--semantic-zIndex-control: var(--primitive-zIndex-10);
|
|
@@ -456,6 +459,7 @@
|
|
|
456
459
|
--role-card-foreground: var(--semantic-color-content-primary);
|
|
457
460
|
--role-popover: var(--semantic-color-surface-overlay);
|
|
458
461
|
--role-scrim: var(--semantic-color-surface-scrim);
|
|
462
|
+
--role-pressed-overlay: var(--semantic-color-state-pressed-overlay);
|
|
459
463
|
--role-popover-foreground: var(--semantic-color-content-primary);
|
|
460
464
|
--role-primary: var(--semantic-color-surface-accent);
|
|
461
465
|
--role-primary-foreground: var(--semantic-color-content-onAccent);
|
|
@@ -515,6 +519,7 @@
|
|
|
515
519
|
--semantic-color-feedback-bg-warning: var(--primitive-color-amber-950);
|
|
516
520
|
--semantic-color-feedback-bg-info: var(--primitive-color-blue-900);
|
|
517
521
|
--semantic-color-feedback-bg-inProgress: var(--primitive-color-violet-950);
|
|
522
|
+
--semantic-color-state-pressed-overlay: var(--primitive-color-neutral-white);
|
|
518
523
|
--semantic-accent-rest: var(--primitive-color-neutral-100);
|
|
519
524
|
--semantic-accent-hover: var(--primitive-color-neutral-200);
|
|
520
525
|
--semantic-accent-pressed: var(--primitive-color-neutral-300);
|
|
@@ -567,6 +572,7 @@
|
|
|
567
572
|
--role-card-foreground: var(--semantic-color-content-primary);
|
|
568
573
|
--role-popover: var(--semantic-color-surface-overlay);
|
|
569
574
|
--role-scrim: var(--semantic-color-surface-scrim);
|
|
575
|
+
--role-pressed-overlay: var(--semantic-color-state-pressed-overlay);
|
|
570
576
|
--role-popover-foreground: var(--semantic-color-content-primary);
|
|
571
577
|
--role-primary: var(--semantic-color-surface-accent);
|
|
572
578
|
--role-primary-foreground: var(--semantic-color-content-onAccent);
|
package/docs/CONSUMING.md
CHANGED
|
@@ -101,7 +101,7 @@ Without `data-hds`, components still get their own token-driven styling, but the
|
|
|
101
101
|
global type baseline and resets won't apply (text falls back to the host font).
|
|
102
102
|
Put `data-hds` as high as makes sense — on `<html>`/`<body>` for an
|
|
103
103
|
HDS-first app, or on a wrapper for a section. Overlays (Dialog, AlertDialog,
|
|
104
|
-
Menu,
|
|
104
|
+
Menu, Popover, Select, Tooltip) inherit the nearest
|
|
105
105
|
`data-hds` scope, so a `<div data-hds data-theme="dark">` themes them too; pass
|
|
106
106
|
`container` on the Content part to portal elsewhere. If the scope element
|
|
107
107
|
creates a containing block or stacking context (`transform`, `filter`, `z-index`,
|
|
@@ -213,7 +213,7 @@ export function Example() {
|
|
|
213
213
|
|
|
214
214
|
| Import | What you get |
|
|
215
215
|
| --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
|
216
|
-
| `@hirobius/design-system` |
|
|
216
|
+
| `@hirobius/design-system` | The core components + the router seam (`HdsRouterProvider`, `useHdsRouter`); the `pattern` tier is in `/patterns` |
|
|
217
217
|
| `@hirobius/design-system/styles.css` | Components + utilities + tokens + fonts, NO global reset (host-safe; recommended for embedding) |
|
|
218
218
|
| `@hirobius/design-system/tokens.css` | The complete stylesheet — styles.css PLUS a global Tailwind-preflight reset |
|
|
219
219
|
| `@hirobius/design-system/variables.css` | Design tokens as CSS custom properties ONLY — no reset/preflight (host-safe) |
|
|
@@ -226,6 +226,8 @@ export function Example() {
|
|
|
226
226
|
| `@hirobius/design-system/brand` | Framework-free palette → HDS-semantic overlay bridge for static/SSR targets (see §12) |
|
|
227
227
|
| `@hirobius/design-system/scroll` | Opt-in scroll-motion: `SmoothScroll` (Lenis) + `useScrollProgress` (Motion). Optional peer `lenis` (see §13) |
|
|
228
228
|
| `@hirobius/design-system/static.css` | CSS-only static-primitive layer — `.hds-badge`/`.hds-card`/`.hds-alert`/`.hds-divider`/`.hds-tag` classes, no React (see §14) |
|
|
229
|
+
| `@hirobius/design-system/patterns` | The `pattern`-tier components (`Page`, `PageHeader`, `Form`, `FormField`, `CodeBlock`); root copies removed in 0.20.0 |
|
|
230
|
+
| `@hirobius/design-system/icons` | Curated Lucide icon set for `Icon` and `Button iconOnly` (see §15) |
|
|
229
231
|
|
|
230
232
|
### Semantic feedback / status tokens
|
|
231
233
|
|
|
@@ -287,8 +289,9 @@ import {
|
|
|
287
289
|
|
|
288
290
|
## 8.5 Optional — typed, schema-validated forms (React Hook Form + Zod)
|
|
289
291
|
|
|
290
|
-
The
|
|
291
|
-
string, so you bring your own
|
|
292
|
+
The plain `FormField` (from `@hirobius/design-system/patterns`) is
|
|
293
|
+
validation-agnostic: it takes a plain `error` string, so you bring your own
|
|
294
|
+
validation. If you want a batteries-included
|
|
292
295
|
layer, the `/form` subpath wires [React Hook Form](https://react-hook-form.com)
|
|
293
296
|
to [Zod](https://zod.dev). It's opt-in — `react-hook-form`, `zod`, and
|
|
294
297
|
`@hookform/resolvers` are **optional peer deps**, so they only land in your
|
|
@@ -338,7 +341,8 @@ function ApplyForm() {
|
|
|
338
341
|
validation (no native browser popups racing your schema).
|
|
339
342
|
- `HdsFormField` — a **render-prop**: spread the supplied props onto your
|
|
340
343
|
control. It binds the control to RHF by `name` and shows the field's Zod
|
|
341
|
-
error through the same label/error/aria markup as the
|
|
344
|
+
error through the same label/error/aria markup as the `FormField` in
|
|
345
|
+
`@hirobius/design-system/patterns`. (It's
|
|
342
346
|
a render-prop, not a cloned child, so RHF's callback ref attaches cleanly.)
|
|
343
347
|
|
|
344
348
|
**SSR / Astro / Next.js RSC:** this layer is client-only (RHF uses hooks +
|
|
@@ -432,7 +436,7 @@ raw hex/px values in `style`, `className`, and `Box` `sx` props before they
|
|
|
432
436
|
reach code review.
|
|
433
437
|
|
|
434
438
|
```bash
|
|
435
|
-
pnpm add -D "@hirobius/eslint-plugin-hds@github:hirobius/
|
|
439
|
+
pnpm add -D "@hirobius/eslint-plugin-hds@github:hirobius/hds#path:/scripts/eslint-plugin-hds"
|
|
436
440
|
```
|
|
437
441
|
|
|
438
442
|
```js
|
|
@@ -736,23 +740,27 @@ CSS, only the visual surface of the five primitives above.
|
|
|
736
740
|
|
|
737
741
|
## 15. Icons — the `/icons` subpath
|
|
738
742
|
|
|
739
|
-
`
|
|
740
|
-
`lucide-react` does not need to be installed separately.
|
|
743
|
+
`Icon` takes an `icon` prop. Get one from the curated subpath;
|
|
744
|
+
`lucide-react` does not need to be installed separately. An icon-only button is
|
|
745
|
+
`Button iconOnly` with a `label` (its accessible name) and the `Icon` in
|
|
746
|
+
`iconLeft`.
|
|
741
747
|
|
|
742
748
|
```tsx
|
|
743
|
-
import {
|
|
749
|
+
import { Button, Icon } from '@hirobius/design-system';
|
|
744
750
|
import { Ellipsis } from '@hirobius/design-system/icons';
|
|
745
751
|
|
|
746
|
-
<
|
|
752
|
+
<Button iconOnly label="Row actions" iconLeft={<Icon icon={Ellipsis} />} />;
|
|
747
753
|
```
|
|
748
754
|
|
|
749
755
|
The full name list is `iconSet.names` in the manifest (and the Icons section of
|
|
750
756
|
`llms.txt`). Canonical Lucide 0.487.0 names only: `MoreHorizontal` is
|
|
751
757
|
`Ellipsis`, `MoreVertical` is `EllipsisVertical`, `AlertTriangle` is
|
|
752
758
|
`TriangleAlert`, `Home` is `House`, `Filter` is `Funnel`. Icon-only actions (row
|
|
753
|
-
menus, close, edit) use `
|
|
759
|
+
menus, close, edit) use `Button iconOnly`; do not hand-roll a button with a glyph. For
|
|
754
760
|
an icon outside the set, install `lucide-react@0.487.0` so the `LucideIcon` type
|
|
755
761
|
stays identical.
|
|
756
762
|
|
|
757
|
-
`
|
|
758
|
-
`import {
|
|
763
|
+
`Menu` shares its name with the HDS `Menu` component; alias it:
|
|
764
|
+
`import { Menu as MenuIcon } from '@hirobius/design-system/icons'`. (`Calendar`
|
|
765
|
+
collided too until the HDS `Calendar` was removed in 0.20.0, hds#394; it imports
|
|
766
|
+
under its own name now.)
|
package/hirobius.tokens.json
CHANGED
|
@@ -830,6 +830,14 @@
|
|
|
830
830
|
},
|
|
831
831
|
"$description": "96px size step."
|
|
832
832
|
},
|
|
833
|
+
"120": {
|
|
834
|
+
"$type": "dimension",
|
|
835
|
+
"$value": {
|
|
836
|
+
"value": 120,
|
|
837
|
+
"unit": "px"
|
|
838
|
+
},
|
|
839
|
+
"$description": "120px size step. Backs semantic.size.tile."
|
|
840
|
+
},
|
|
833
841
|
"$description": "Unaliased dimensional values.",
|
|
834
842
|
"interactive": {
|
|
835
843
|
"$description": "Interactive control size minimums.",
|
|
@@ -847,7 +855,7 @@
|
|
|
847
855
|
"value": 24,
|
|
848
856
|
"unit": "px"
|
|
849
857
|
},
|
|
850
|
-
"$description": "
|
|
858
|
+
"$description": "Compact inline control target minimum, e.g. a chip's remove button: WCAG 2.2 AA (2.5.8), not the 44px AAA floor (2.5.5)."
|
|
851
859
|
}
|
|
852
860
|
},
|
|
853
861
|
"width": {
|
|
@@ -886,7 +894,7 @@
|
|
|
886
894
|
"value": 280,
|
|
887
895
|
"unit": "px"
|
|
888
896
|
},
|
|
889
|
-
"$description": "Docs-shell rail width (hds#280)
|
|
897
|
+
"$description": "Docs-shell rail width (hds#280): our own number, not HeroUI's 268px; fits the longest top-level nav label with room."
|
|
890
898
|
}
|
|
891
899
|
}
|
|
892
900
|
},
|
|
@@ -981,7 +989,7 @@
|
|
|
981
989
|
"distance": {
|
|
982
990
|
"$type": "dimension",
|
|
983
991
|
"$value": "{primitive.space.6}",
|
|
984
|
-
"$description": "
|
|
992
|
+
"$description": "Scroll-reveal translateY travel distance. Equals semantic.space.scale.md today, but names motion travel, not a spacing tier (hds#242)."
|
|
985
993
|
}
|
|
986
994
|
},
|
|
987
995
|
"color": {
|
|
@@ -1456,13 +1464,29 @@
|
|
|
1456
1464
|
}
|
|
1457
1465
|
}
|
|
1458
1466
|
}
|
|
1467
|
+
},
|
|
1468
|
+
"state": {
|
|
1469
|
+
"pressed": {
|
|
1470
|
+
"overlay": {
|
|
1471
|
+
"$value": "{primitive.color.neutral.black}",
|
|
1472
|
+
"$description": "Opaque pressed wash over a control's own fill: black in light, white in dark. Alpha in the class (inset-shadow-pressed-overlay/5).",
|
|
1473
|
+
"$extensions": {
|
|
1474
|
+
"com.figma.variables": {
|
|
1475
|
+
"modes": {
|
|
1476
|
+
"Light": "{primitive.color.neutral.black}",
|
|
1477
|
+
"Dark": "{primitive.color.neutral.white}"
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1459
1483
|
}
|
|
1460
1484
|
},
|
|
1461
1485
|
"space": {
|
|
1462
1486
|
"$type": "dimension",
|
|
1463
1487
|
"$description": "Semantic spacing tiers: subgrid, component, layout, section, scale.",
|
|
1464
1488
|
"scale": {
|
|
1465
|
-
"$description": "hds#206
|
|
1489
|
+
"$description": "hds#206: the canonical spacing vocabulary, one monotonic t-shirt scale (xs to xl) for padding, margin and gap. Supersedes deprecated names.",
|
|
1466
1490
|
"xs": {
|
|
1467
1491
|
"$value": "{primitive.space.2}",
|
|
1468
1492
|
"$description": "8px — smallest step. Same value as component.gap (deprecated alias)."
|
|
@@ -1473,7 +1497,7 @@
|
|
|
1473
1497
|
},
|
|
1474
1498
|
"md": {
|
|
1475
1499
|
"$value": "{primitive.space.6}",
|
|
1476
|
-
"$description": "24px
|
|
1500
|
+
"$description": "24px. Default of the overridable roles surface.padding and region.gutter. The deprecated layout.normal has the same value."
|
|
1477
1501
|
},
|
|
1478
1502
|
"lg": {
|
|
1479
1503
|
"$value": "{primitive.space.8}",
|
|
@@ -1485,17 +1509,17 @@
|
|
|
1485
1509
|
}
|
|
1486
1510
|
},
|
|
1487
1511
|
"surface": {
|
|
1488
|
-
"$description": "hds#206
|
|
1512
|
+
"$description": "hds#206 surface inset role. Tenants override it per brand and density, always with a scale step.",
|
|
1489
1513
|
"padding": {
|
|
1490
1514
|
"$value": "{semantic.space.scale.md}",
|
|
1491
|
-
"$description": "24px (scale.md)
|
|
1515
|
+
"$description": "24px (scale.md) inset for cards, forms and panels. Tenants override it per brand and density. Replaces component.padding."
|
|
1492
1516
|
}
|
|
1493
1517
|
},
|
|
1494
1518
|
"region": {
|
|
1495
|
-
"$description": "hds#206
|
|
1519
|
+
"$description": "hds#206 region gutter role. theme.css retunes it per viewport, always with a scale step.",
|
|
1496
1520
|
"gutter": {
|
|
1497
1521
|
"$value": "{semantic.space.scale.md}",
|
|
1498
|
-
"$description": "24px (scale.md) column and region gutters
|
|
1522
|
+
"$description": "24px (scale.md) column and region gutters; theme.css sets scale.lg (32px), and scale.sm (16px) below 640px. Replaces layout.gutter."
|
|
1499
1523
|
}
|
|
1500
1524
|
},
|
|
1501
1525
|
"subgrid": {
|
|
@@ -1524,7 +1548,7 @@
|
|
|
1524
1548
|
},
|
|
1525
1549
|
"padding": {
|
|
1526
1550
|
"$value": "{semantic.space.surface.padding}",
|
|
1527
|
-
"$description": "24px
|
|
1551
|
+
"$description": "24px inset for cards, forms and panels. DEPRECATED alias (hds#206) — use semantic.space.surface.padding; kept live, no removal yet.",
|
|
1528
1552
|
"$deprecated": "hds#206 — use semantic.space.surface.padding"
|
|
1529
1553
|
}
|
|
1530
1554
|
},
|
|
@@ -1551,7 +1575,7 @@
|
|
|
1551
1575
|
},
|
|
1552
1576
|
"spacious": {
|
|
1553
1577
|
"$value": "{primitive.space.12}",
|
|
1554
|
-
"$description": "48px
|
|
1578
|
+
"$description": "48px break between major content blocks. DEPRECATED alias (hds#206) — use semantic.space.scale.xl; kept live, no removal yet.",
|
|
1555
1579
|
"$deprecated": "hds#206 — use semantic.space.scale.xl"
|
|
1556
1580
|
}
|
|
1557
1581
|
},
|
|
@@ -1589,7 +1613,7 @@
|
|
|
1589
1613
|
"railWidth": {
|
|
1590
1614
|
"$type": "dimension",
|
|
1591
1615
|
"$value": "{primitive.size.width.280}",
|
|
1592
|
-
"$description": "Docs-shell
|
|
1616
|
+
"$description": "Docs-shell nav and TOC rail width (hds#280), one token for both rails; 0 below their breakpoint (see HdsDocsShell)."
|
|
1593
1617
|
}
|
|
1594
1618
|
}
|
|
1595
1619
|
},
|
|
@@ -1915,7 +1939,7 @@
|
|
|
1915
1939
|
"control": {
|
|
1916
1940
|
"$type": "dimension",
|
|
1917
1941
|
"$value": "{primitive.radius.4}",
|
|
1918
|
-
"$description": "Corner radius for small
|
|
1942
|
+
"$description": "Corner radius for small control glyphs such as the checkbox box: not fully round, and distinct from semantic.radius.action (hds#242)."
|
|
1919
1943
|
}
|
|
1920
1944
|
},
|
|
1921
1945
|
"borderWidth": {
|
|
@@ -1982,7 +2006,7 @@
|
|
|
1982
2006
|
},
|
|
1983
2007
|
"size": {
|
|
1984
2008
|
"$type": "dimension",
|
|
1985
|
-
"$description": "
|
|
2009
|
+
"$description": "Sizing roles for control glyphs, avatars and table rows. Roles sharing a value stay separate so each can change (hds#242).",
|
|
1986
2010
|
"control": {
|
|
1987
2011
|
"$description": "Interactive control glyph/element sizing (checkbox glyph box, radio dot, slider track/fill, code-block copy-button-matched footprint).",
|
|
1988
2012
|
"sm": {
|
|
@@ -2015,7 +2039,11 @@
|
|
|
2015
2039
|
},
|
|
2016
2040
|
"avatar": {
|
|
2017
2041
|
"$value": "{primitive.size.40}",
|
|
2018
|
-
"$description": "Avatar
|
|
2042
|
+
"$description": "Avatar size (width and height) for activity feeds and identity glyphs. Same pixels as row.compact today, a separate role (hds#242)."
|
|
2043
|
+
},
|
|
2044
|
+
"tile": {
|
|
2045
|
+
"$value": "{primitive.size.120}",
|
|
2046
|
+
"$description": "Minimum height of a metric tile, one height for every tile so rows line up (hds#403)."
|
|
2019
2047
|
},
|
|
2020
2048
|
"row": {
|
|
2021
2049
|
"$description": "Table row minimum height by density.",
|
|
@@ -2507,6 +2535,11 @@
|
|
|
2507
2535
|
"$value": "{semantic.color.surface.scrim}",
|
|
2508
2536
|
"$description": "Modal backdrop colour role. Apply alpha in the class, e.g. bg-scrim/60."
|
|
2509
2537
|
},
|
|
2538
|
+
"pressed-overlay": {
|
|
2539
|
+
"$type": "color",
|
|
2540
|
+
"$value": "{semantic.color.state.pressed.overlay}",
|
|
2541
|
+
"$description": "Pressed-state overlay colour role. Apply alpha in the class, e.g. inset-shadow-pressed-overlay/5."
|
|
2542
|
+
},
|
|
2510
2543
|
"popover-foreground": {
|
|
2511
2544
|
"$type": "color",
|
|
2512
2545
|
"$value": "{semantic.color.content.primary}",
|