@behavioral-agentic-design-system/core 0.48.0 → 0.49.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/package.json +1 -1
- package/scripts/build-tokens.cjs +24 -3
- package/scripts/ux-smoke.mjs +5 -1
- package/src/api/save-tokens.ts +170 -24
- package/src/app/layout.tsx +12 -1
- package/src/app/preview/components/page.tsx +25 -18
- package/src/app/preview/global-font-client.tsx +2 -0
- package/src/app/providers.tsx +2 -0
- package/src/app/shell.tsx +50 -156
- package/src/components/customize/brand-mark-section.tsx +65 -95
- package/src/components/customize/font-pickers.tsx +25 -2
- package/src/components/customize/save-bar.tsx +120 -7
- package/src/components/customize/theme-io.tsx +62 -21
- package/src/components/customize-tab.tsx +3 -1
- package/src/components/home-recent.tsx +58 -25
- package/src/components/motion/reveal.tsx +168 -12
- package/src/components/studio/control-panel.tsx +98 -19
- package/src/components/studio/import-theme-dialog.tsx +167 -0
- package/src/components/studio/tokens-panel.tsx +215 -0
- package/src/components/studio/types.ts +5 -2
- package/src/components/studio/use-studio-tweaks.ts +36 -4
- package/src/components/studio/use-token-edits.ts +160 -0
- package/src/components/ui/toggle-tip.tsx +38 -29
- package/src/data/component-stories.json +1214 -0
- package/src/data/docs-index.ts +7 -2
- package/src/data/hidden-views.ts +22 -0
- package/src/data/history.json +32 -32
- package/src/data/sticker-sheet.json +1878 -1821
- package/src/fonts/Figtree-OFL.txt +93 -0
- package/src/fonts/figtree-latin-ext-wght-normal.woff2 +0 -0
- package/src/fonts/figtree-latin-wght-italic.woff2 +0 -0
- package/src/fonts/figtree-latin-wght-normal.woff2 +0 -0
- package/src/fonts-cdn.css +3 -1
- package/src/fonts.css +44 -0
- package/src/hooks/use-global-heading-font.ts +104 -0
- package/src/hooks/use-global-sans-font.ts +8 -3
- package/src/hooks/use-global-theme.ts +2 -2
- package/src/hooks/use-token-overrides.ts +62 -14
- package/src/lib/css-color.ts +42 -0
- package/src/lib/storybook-url.ts +28 -0
- package/src/lib/theme-editor.ts +7 -1
- package/src/lib/theme-import.ts +99 -0
- package/src/lib/theme-transition.ts +93 -0
- package/src/lib/token-list.ts +133 -0
- package/src/lib/token-value.ts +31 -0
- package/src/stories/Accordion.stories.tsx +1 -1
- package/src/stories/Affix.stories.tsx +1 -1
- package/src/stories/AiBadge.stories.tsx +1 -1
- package/src/stories/Alert.stories.tsx +1 -1
- package/src/stories/AlertDialog.stories.tsx +1 -1
- package/src/stories/AngleSlider.stories.tsx +1 -1
- package/src/stories/AnnouncementBar.stories.tsx +2 -2
- package/src/stories/AspectRatio.stories.tsx +1 -1
- package/src/stories/Attachment.stories.tsx +1 -1
- package/src/stories/Autocomplete.stories.tsx +1 -1
- package/src/stories/Avatar.stories.tsx +1 -1
- package/src/stories/Badge.stories.tsx +1 -1
- package/src/stories/Blockquote.stories.tsx +1 -1
- package/src/stories/Burger.stories.tsx +1 -1
- package/src/stories/Button.stories.tsx +1 -1
- package/src/stories/ButtonGroup.stories.tsx +1 -1
- package/src/stories/Calendar.stories.tsx +1 -1
- package/src/stories/Callout.stories.tsx +1 -1
- package/src/stories/Canvas.stories.tsx +1 -1
- package/src/stories/Card.stories.tsx +1 -1
- package/src/stories/Carousel.stories.tsx +1 -1
- package/src/stories/Cascader.stories.tsx +1 -1
- package/src/stories/Chart.stories.tsx +1 -1
- package/src/stories/ChatBubble.stories.tsx +1 -1
- package/src/stories/ChatMarker.stories.tsx +1 -1
- package/src/stories/Checkbox.stories.tsx +1 -1
- package/src/stories/CheckboxCard.stories.tsx +1 -1
- package/src/stories/CheckboxGroup.stories.tsx +1 -1
- package/src/stories/Chip.stories.tsx +1 -1
- package/src/stories/CircularProgress.stories.tsx +1 -1
- package/src/stories/Clipboard.stories.tsx +1 -1
- package/src/stories/CloseButton.stories.tsx +1 -1
- package/src/stories/Code.stories.tsx +1 -1
- package/src/stories/Collapsible.stories.tsx +1 -1
- package/src/stories/ColorPicker.stories.tsx +1 -1
- package/src/stories/ColorSwatch.stories.tsx +1 -1
- package/src/stories/Combobox.stories.tsx +1 -1
- package/src/stories/Container.stories.tsx +1 -1
- package/src/stories/ContextMenu.stories.tsx +1 -1
- package/src/stories/CopyButton.stories.tsx +1 -1
- package/src/stories/DataList.stories.tsx +1 -1
- package/src/stories/DataTable.stories.tsx +1 -1
- package/src/stories/DateField.stories.tsx +1 -1
- package/src/stories/DatePicker.stories.tsx +1 -1
- package/src/stories/DateRangePicker.stories.tsx +1 -1
- package/src/stories/Dialog.stories.tsx +1 -1
- package/src/stories/Drawer.stories.tsx +1 -1
- package/src/stories/DropdownMenu.stories.tsx +1 -1
- package/src/stories/Editable.stories.tsx +1 -1
- package/src/stories/EmptyState.stories.tsx +1 -1
- package/src/stories/FacetedFilter.stories.tsx +1 -1
- package/src/stories/Field.stories.tsx +1 -1
- package/src/stories/Fieldset.stories.tsx +1 -1
- package/src/stories/FileButton.stories.tsx +1 -1
- package/src/stories/FileUpload.stories.tsx +1 -1
- package/src/stories/FloatLabel.stories.tsx +1 -1
- package/src/stories/FloatingActionButton.stories.tsx +1 -1
- package/src/stories/FloatingIndicator.stories.tsx +1 -1
- package/src/stories/FloatingPanel.stories.tsx +1 -1
- package/src/stories/FocusTrap.stories.tsx +1 -1
- package/src/stories/FormatByte.stories.tsx +1 -1
- package/src/stories/FormatDate.stories.tsx +1 -1
- package/src/stories/FormatNumber.stories.tsx +1 -1
- package/src/stories/FormatRelativeTime.stories.tsx +1 -1
- package/src/stories/GaugeChart.stories.tsx +1 -1
- package/src/stories/Grid.stories.tsx +1 -1
- package/src/stories/Heatmap.stories.tsx +1 -1
- package/src/stories/Highlight.stories.tsx +1 -1
- package/src/stories/HoverCard.stories.tsx +1 -1
- package/src/stories/Icon.stories.tsx +1 -1
- package/src/stories/Image.stories.tsx +1 -1
- package/src/stories/Indicator.stories.tsx +1 -1
- package/src/stories/InfiniteScroll.stories.tsx +1 -1
- package/src/stories/InlineEdit.stories.tsx +1 -1
- package/src/stories/Input.stories.tsx +1 -1
- package/src/stories/InputClearButton.stories.tsx +1 -1
- package/src/stories/InputGroup.stories.tsx +1 -1
- package/src/stories/JsonInput.stories.tsx +1 -1
- package/src/stories/Kbd.stories.tsx +1 -1
- package/src/stories/KeyboardShortcut.stories.tsx +1 -1
- package/src/stories/Label.stories.tsx +1 -1
- package/src/stories/List.stories.tsx +1 -1
- package/src/stories/Listbox.stories.tsx +1 -1
- package/src/stories/LoadingDots.stories.tsx +1 -1
- package/src/stories/LoadingOverlay.stories.tsx +1 -1
- package/src/stories/Mark.stories.tsx +1 -1
- package/src/stories/MarkdownPreview.stories.tsx +1 -1
- package/src/stories/Marquee.stories.tsx +1 -1
- package/src/stories/Masonry.stories.tsx +1 -1
- package/src/stories/Meter.stories.tsx +1 -1
- package/src/stories/MonthPicker.stories.tsx +1 -1
- package/src/stories/MotionToggle.stories.tsx +1 -1
- package/src/stories/MultiSelect.stories.tsx +1 -1
- package/src/stories/NativeSelect.stories.tsx +1 -1
- package/src/stories/NavigationProgress.stories.tsx +1 -1
- package/src/stories/Notification.stories.tsx +1 -1
- package/src/stories/NumberField.stories.tsx +1 -1
- package/src/stories/NumberInput.stories.tsx +1 -1
- package/src/stories/OtpInput.stories.tsx +1 -1
- package/src/stories/Overlay.stories.tsx +1 -1
- package/src/stories/PageHeader.stories.tsx +1 -1
- package/src/stories/PasswordInput.stories.tsx +1 -1
- package/src/stories/PasswordStrengthInput.stories.tsx +1 -1
- package/src/stories/PhoneInput.stories.tsx +1 -1
- package/src/stories/Pill.stories.tsx +1 -1
- package/src/stories/PinInput.stories.tsx +1 -1
- package/src/stories/Popover.stories.tsx +1 -1
- package/src/stories/Portal.stories.tsx +1 -1
- package/src/stories/Presence.stories.tsx +1 -1
- package/src/stories/Progress.stories.tsx +1 -1
- package/src/stories/ProgressStack.stories.tsx +1 -1
- package/src/stories/Prose.stories.tsx +1 -1
- package/src/stories/QrCode.stories.tsx +1 -1
- package/src/stories/Questionnaire.stories.tsx +1 -1
- package/src/stories/RadioGroup.stories.tsx +1 -1
- package/src/stories/RatingGroup.stories.tsx +1 -1
- package/src/stories/Resizable.stories.tsx +1 -1
- package/src/stories/Result.stories.tsx +1 -1
- package/src/stories/Reveal.stories.tsx +1 -1
- package/src/stories/RollingNumber.stories.tsx +1 -1
- package/src/stories/ScrollArea.stories.tsx +1 -1
- package/src/stories/ScrollProgress.stories.tsx +1 -1
- package/src/stories/SearchInput.stories.tsx +1 -1
- package/src/stories/SegmentedControl.stories.tsx +1 -1
- package/src/stories/Select.stories.tsx +1 -1
- package/src/stories/Separator.stories.tsx +1 -1
- package/src/stories/Sheet.stories.tsx +1 -1
- package/src/stories/SignaturePad.stories.tsx +1 -1
- package/src/stories/SimpleGrid.stories.tsx +1 -1
- package/src/stories/Skeleton.stories.tsx +1 -1
- package/src/stories/SkeletonTable.stories.tsx +1 -1
- package/src/stories/Slider.stories.tsx +1 -1
- package/src/stories/Snackbar.stories.tsx +1 -1
- package/src/stories/Sonner.stories.tsx +1 -1
- package/src/stories/SortableList.stories.tsx +1 -1
- package/src/stories/Sparkline.stories.tsx +1 -1
- package/src/stories/Spinner.stories.tsx +1 -1
- package/src/stories/Spoiler.stories.tsx +1 -1
- package/src/stories/Squircle.stories.tsx +1 -1
- package/src/stories/Stack.stories.tsx +1 -1
- package/src/stories/StatusBadge.stories.tsx +1 -1
- package/src/stories/Switch.stories.tsx +1 -1
- package/src/stories/Table.stories.tsx +1 -1
- package/src/stories/Tag.stories.tsx +1 -1
- package/src/stories/TagsInput.stories.tsx +1 -1
- package/src/stories/Text.stories.tsx +1 -1
- package/src/stories/Textarea.stories.tsx +1 -1
- package/src/stories/ThemeIcon.stories.tsx +1 -1
- package/src/stories/TimePicker.stories.tsx +1 -1
- package/src/stories/Timeline.stories.tsx +1 -1
- package/src/stories/Timer.stories.tsx +1 -1
- package/src/stories/Toggle.stories.tsx +1 -1
- package/src/stories/ToggleGroup.stories.tsx +1 -1
- package/src/stories/ToggleTip.stories.tsx +106 -1
- package/src/stories/Tooltip.stories.tsx +56 -1
- package/src/stories/TransferList.stories.tsx +1 -1
- package/src/stories/TreeSelect.stories.tsx +1 -1
- package/src/stories/TypingIndicator.stories.tsx +1 -1
- package/src/stories/VisuallyHidden.stories.tsx +1 -1
- package/src/stories/Watermark.stories.tsx +1 -1
- package/src/stories/WeekPicker.stories.tsx +1 -1
- package/src/stories/WordRotate.stories.tsx +1 -1
- package/src/stories/YearPicker.stories.tsx +1 -1
- package/src/stories/story-groups.json +216 -224
- package/src/styles.css +20 -3
- package/src/tokens.default.json +6 -1
- package/src/tokens.json +7 -2
|
@@ -1,226 +1,218 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
"Sheet",
|
|
219
|
-
"Popover",
|
|
220
|
-
"HoverCard",
|
|
221
|
-
"Tooltip",
|
|
222
|
-
"ContextMenu",
|
|
223
|
-
"DropdownMenu",
|
|
224
|
-
"Portal"
|
|
225
|
-
]
|
|
2
|
+
"$comment": [
|
|
3
|
+
"The Storybook sidebar's middle layer: which group each component sits in.",
|
|
4
|
+
"",
|
|
5
|
+
"WHY THIS IS A FILE AND NOT 151 EDITED TITLES.",
|
|
6
|
+
"",
|
|
7
|
+
"Every story used to be titled Components/<Name>, so the sidebar was one",
|
|
8
|
+
"alphabetical list of 151 items and finding anything meant already knowing its",
|
|
9
|
+
"name. Grouping them by hand would work once and then rot: the next component",
|
|
10
|
+
"lands with whatever title its author types, and nothing notices.",
|
|
11
|
+
"",
|
|
12
|
+
"So the grouping lives here, scripts/check-story-groups.mjs enforces it, and a",
|
|
13
|
+
"component that is not listed fails the check rather than quietly appearing at",
|
|
14
|
+
"the top level. Reshuffling the sidebar is an edit to this file, not to 151",
|
|
15
|
+
"story files.",
|
|
16
|
+
"",
|
|
17
|
+
"GROUP NAMES ARE FOR PEOPLE SCANNING A SIDEBAR. They are not an architectural",
|
|
18
|
+
"statement and they are not the layer model — they answer 'where would someone",
|
|
19
|
+
"look for this', which is why Accordion sits under Layout rather than Actions",
|
|
20
|
+
"and Carousel sits under Layout rather than Content.",
|
|
21
|
+
"",
|
|
22
|
+
"No group should get much past twenty-five. Past that a person is scanning",
|
|
23
|
+
"again, which is the problem this replaces."
|
|
24
|
+
],
|
|
25
|
+
"Buttons & Actions": [
|
|
26
|
+
"Button",
|
|
27
|
+
"ButtonGroup",
|
|
28
|
+
"CloseButton",
|
|
29
|
+
"CopyButton",
|
|
30
|
+
"FileButton",
|
|
31
|
+
"FloatingActionButton",
|
|
32
|
+
"Toggle",
|
|
33
|
+
"ToggleGroup",
|
|
34
|
+
"Burger",
|
|
35
|
+
"MotionToggle",
|
|
36
|
+
"Clipboard"
|
|
37
|
+
],
|
|
38
|
+
"Forms & Inputs": [
|
|
39
|
+
"Editable",
|
|
40
|
+
"Field",
|
|
41
|
+
"Fieldset",
|
|
42
|
+
"FileUpload",
|
|
43
|
+
"FloatLabel",
|
|
44
|
+
"InlineEdit",
|
|
45
|
+
"Input",
|
|
46
|
+
"InputClearButton",
|
|
47
|
+
"InputGroup",
|
|
48
|
+
"JsonInput",
|
|
49
|
+
"Label",
|
|
50
|
+
"NumberInput",
|
|
51
|
+
"NumberField",
|
|
52
|
+
"OTPInput",
|
|
53
|
+
"PasswordInput",
|
|
54
|
+
"PasswordStrengthInput",
|
|
55
|
+
"PhoneInput",
|
|
56
|
+
"PinInput",
|
|
57
|
+
"Questionnaire",
|
|
58
|
+
"SearchInput",
|
|
59
|
+
"SignaturePad",
|
|
60
|
+
"TagsInput",
|
|
61
|
+
"Textarea",
|
|
62
|
+
"Select",
|
|
63
|
+
"NativeSelect",
|
|
64
|
+
"MultiSelect",
|
|
65
|
+
"Combobox",
|
|
66
|
+
"Autocomplete",
|
|
67
|
+
"Listbox",
|
|
68
|
+
"Cascader",
|
|
69
|
+
"TreeSelect",
|
|
70
|
+
"TransferList",
|
|
71
|
+
"Checkbox",
|
|
72
|
+
"CheckboxCard",
|
|
73
|
+
"CheckboxGroup",
|
|
74
|
+
"RadioGroup",
|
|
75
|
+
"Switch",
|
|
76
|
+
"SegmentedControl",
|
|
77
|
+
"Slider",
|
|
78
|
+
"AngleSlider",
|
|
79
|
+
"RatingGroup",
|
|
80
|
+
"ColorPicker",
|
|
81
|
+
"ColorSwatch",
|
|
82
|
+
"Calendar",
|
|
83
|
+
"DateField",
|
|
84
|
+
"DatePicker",
|
|
85
|
+
"DateRangePicker",
|
|
86
|
+
"TimePicker",
|
|
87
|
+
"MonthPicker",
|
|
88
|
+
"YearPicker",
|
|
89
|
+
"WeekPicker"
|
|
90
|
+
],
|
|
91
|
+
"Data Display": [
|
|
92
|
+
"Table",
|
|
93
|
+
"DataTable",
|
|
94
|
+
"FacetedFilter",
|
|
95
|
+
"DataList",
|
|
96
|
+
"Chart",
|
|
97
|
+
"Timeline",
|
|
98
|
+
"List",
|
|
99
|
+
"Text",
|
|
100
|
+
"Prose",
|
|
101
|
+
"Code",
|
|
102
|
+
"Blockquote",
|
|
103
|
+
"Highlight",
|
|
104
|
+
"Mark",
|
|
105
|
+
"Image",
|
|
106
|
+
"QRCode",
|
|
107
|
+
"FormatByte",
|
|
108
|
+
"FormatNumber",
|
|
109
|
+
"FormatDate",
|
|
110
|
+
"FormatRelativeTime",
|
|
111
|
+
"RollingNumber",
|
|
112
|
+
"Watermark",
|
|
113
|
+
"Marquee",
|
|
114
|
+
"WordRotate",
|
|
115
|
+
"Reveal",
|
|
116
|
+
"Sparkline",
|
|
117
|
+
"Icon",
|
|
118
|
+
"ProgressStack",
|
|
119
|
+
"GaugeChart",
|
|
120
|
+
"Heatmap",
|
|
121
|
+
"MarkdownPreview",
|
|
122
|
+
"Avatar",
|
|
123
|
+
"Badge",
|
|
124
|
+
"Tag",
|
|
125
|
+
"Chip",
|
|
126
|
+
"Pill",
|
|
127
|
+
"Indicator",
|
|
128
|
+
"Kbd",
|
|
129
|
+
"KeyboardShortcut",
|
|
130
|
+
"ThemeIcon",
|
|
131
|
+
"AiBadge",
|
|
132
|
+
"ChatBubble",
|
|
133
|
+
"ChatMarker",
|
|
134
|
+
"Attachment"
|
|
135
|
+
],
|
|
136
|
+
"Foundations": [
|
|
137
|
+
"Container",
|
|
138
|
+
"Stack",
|
|
139
|
+
"SimpleGrid",
|
|
140
|
+
"Grid",
|
|
141
|
+
"Masonry",
|
|
142
|
+
"Separator",
|
|
143
|
+
"AspectRatio",
|
|
144
|
+
"ScrollArea",
|
|
145
|
+
"InfiniteScroll",
|
|
146
|
+
"Resizable",
|
|
147
|
+
"Affix",
|
|
148
|
+
"Collapsible",
|
|
149
|
+
"Accordion",
|
|
150
|
+
"Spoiler",
|
|
151
|
+
"FocusTrap",
|
|
152
|
+
"Squircle",
|
|
153
|
+
"VisuallyHidden",
|
|
154
|
+
"Overlay",
|
|
155
|
+
"FloatingIndicator",
|
|
156
|
+
"FloatingPanel",
|
|
157
|
+
"Carousel",
|
|
158
|
+
"Card",
|
|
159
|
+
"SortableList",
|
|
160
|
+
"Canvas",
|
|
161
|
+
"PageHeader"
|
|
162
|
+
],
|
|
163
|
+
"Feedback & Overlays": [
|
|
164
|
+
"Alert",
|
|
165
|
+
"AlertDialog",
|
|
166
|
+
"Notification",
|
|
167
|
+
"Sonner",
|
|
168
|
+
"Snackbar",
|
|
169
|
+
"Spinner",
|
|
170
|
+
"Progress",
|
|
171
|
+
"CircularProgress",
|
|
172
|
+
"LoadingDots",
|
|
173
|
+
"LoadingOverlay",
|
|
174
|
+
"Skeleton",
|
|
175
|
+
"SkeletonTable",
|
|
176
|
+
"EmptyState",
|
|
177
|
+
"Result",
|
|
178
|
+
"StatusBadge",
|
|
179
|
+
"Meter",
|
|
180
|
+
"Timer",
|
|
181
|
+
"TypingIndicator",
|
|
182
|
+
"ToggleTip",
|
|
183
|
+
"Presence",
|
|
184
|
+
"Callout",
|
|
185
|
+
"AnnouncementBar",
|
|
186
|
+
"ScrollProgress",
|
|
187
|
+
"NavigationProgress",
|
|
188
|
+
"Dialog",
|
|
189
|
+
"Drawer",
|
|
190
|
+
"Sheet",
|
|
191
|
+
"Popover",
|
|
192
|
+
"HoverCard",
|
|
193
|
+
"Tooltip",
|
|
194
|
+
"ContextMenu",
|
|
195
|
+
"DropdownMenu",
|
|
196
|
+
"Portal"
|
|
197
|
+
],
|
|
198
|
+
"Navigation": [
|
|
199
|
+
"Anchor",
|
|
200
|
+
"Breadcrumb",
|
|
201
|
+
"Link",
|
|
202
|
+
"NavLink",
|
|
203
|
+
"NavigationMenu",
|
|
204
|
+
"NavigationRail",
|
|
205
|
+
"BottomNavigation",
|
|
206
|
+
"Menubar",
|
|
207
|
+
"Pagination",
|
|
208
|
+
"Sidebar",
|
|
209
|
+
"SkipLink",
|
|
210
|
+
"Stepper",
|
|
211
|
+
"Tabs",
|
|
212
|
+
"Toolbar",
|
|
213
|
+
"Tour",
|
|
214
|
+
"TreeView",
|
|
215
|
+
"Command",
|
|
216
|
+
"ActionBar"
|
|
217
|
+
]
|
|
226
218
|
}
|
package/src/styles.css
CHANGED
|
@@ -99,7 +99,8 @@
|
|
|
99
99
|
/* Brand sans from tokens.json leads. Atkinson Hyperlegible (loaded via the
|
|
100
100
|
Google Fonts @import above) is the canonical fallback so unbranded
|
|
101
101
|
consumers still get a high-legibility face out of the box. */
|
|
102
|
-
--font-sans: 'Hyperlegible Sans', 'Inter', ui-sans-serif, sans-serif, system-ui, 'Atkinson Hyperlegible';
|
|
102
|
+
--font-sans: 'Atkinson Hyperlegible Sans', 'Hyperlegible Sans', 'Inter', ui-sans-serif, sans-serif, system-ui, 'Atkinson Hyperlegible';
|
|
103
|
+
--font-heading: 'Figtree', 'Atkinson Hyperlegible Sans', 'Hyperlegible Sans', ui-sans-serif, sans-serif, system-ui, 'Atkinson Hyperlegible';
|
|
103
104
|
--font-mono: 'JetBrains Mono', ui-monospace, monospace;
|
|
104
105
|
--font-serif: ui-serif, Georgia, serif;
|
|
105
106
|
--font-variation-settings: normal;
|
|
@@ -634,6 +635,13 @@
|
|
|
634
635
|
h1, h2, h3, h4, h5, h6 {
|
|
635
636
|
text-wrap: balance;
|
|
636
637
|
}
|
|
638
|
+
/* Headings read --font-heading (Figtree by default), independent of the
|
|
639
|
+
body font. Components that set a font utility on a heading still win:
|
|
640
|
+
this is base layer. The Studio and Customize tab change --font-heading
|
|
641
|
+
live; a fork changes it in tokens.json fontFamily.heading. */
|
|
642
|
+
h1, h2, h3, h4, h5, h6 {
|
|
643
|
+
font-family: var(--font-heading, var(--font-sans));
|
|
644
|
+
}
|
|
637
645
|
/* text-wrap: pretty prevents orphaned last words on paragraphs by
|
|
638
646
|
considering the last four lines when breaking. Supported Chrome 117+,
|
|
639
647
|
Firefox 130+ (Baseline 2025). Falls back to normal wrap — no adverse
|
|
@@ -719,6 +727,15 @@ html, body {
|
|
|
719
727
|
::view-transition {
|
|
720
728
|
background-color: var(--background);
|
|
721
729
|
}
|
|
730
|
+
/* While a theme switch runs (lib/theme-transition.ts sets the attribute on <html>, and on same-origin iframe
|
|
731
|
+
documents), nothing may fade its own colours. The new-theme snapshot is taken a frame after the class flips,
|
|
732
|
+
and a transition-colors element is still mid-fade then, so the reveal showed some parts new and some old.
|
|
733
|
+
Pseudo-elements of the view transition itself are not matched by *, so the iris still animates. */
|
|
734
|
+
html[data-theme-switching] *,
|
|
735
|
+
html[data-theme-switching] *::before,
|
|
736
|
+
html[data-theme-switching] *::after {
|
|
737
|
+
transition: none !important;
|
|
738
|
+
}
|
|
722
739
|
@keyframes theme-old-out {
|
|
723
740
|
0%, 92% { opacity: 1; }
|
|
724
741
|
98%, 100% { opacity: 0; }
|
|
@@ -1125,12 +1142,12 @@ html, body {
|
|
|
1125
1142
|
}
|
|
1126
1143
|
|
|
1127
1144
|
::view-transition-new(root) {
|
|
1128
|
-
animation: theme-reveal 0.4s
|
|
1145
|
+
animation: theme-reveal 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
|
|
1129
1146
|
}
|
|
1130
1147
|
/* Same duration/easing as theme-reveal so the 92%/98% offsets line up with
|
|
1131
1148
|
the reveal's coverage math. */
|
|
1132
1149
|
::view-transition-old(root) {
|
|
1133
|
-
animation: theme-old-out 0.4s
|
|
1150
|
+
animation: theme-old-out 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
|
|
1134
1151
|
}
|
|
1135
1152
|
|
|
1136
1153
|
/* Honor the app-level MotionToggle for the iris wipe too (same three-state
|
package/src/tokens.default.json
CHANGED
|
@@ -158,10 +158,15 @@
|
|
|
158
158
|
},
|
|
159
159
|
"fontFamily": {
|
|
160
160
|
"sans": {
|
|
161
|
-
"$value": "'Hyperlegible Sans', ui-sans-serif, sans-serif, system-ui",
|
|
161
|
+
"$value": "'Atkinson Hyperlegible Sans', 'Hyperlegible Sans', ui-sans-serif, sans-serif, system-ui",
|
|
162
162
|
"$type": "fontFamily",
|
|
163
163
|
"$description": "Primary sans (body, UI). Hyperlegible Sans is the BADS default \u2014 production-safe and accessibility-friendly. Override per client."
|
|
164
164
|
},
|
|
165
|
+
"heading": {
|
|
166
|
+
"$value": "'Figtree', 'Atkinson Hyperlegible Sans', 'Hyperlegible Sans', ui-sans-serif, sans-serif, system-ui",
|
|
167
|
+
"$type": "fontFamily",
|
|
168
|
+
"$description": "Headings (h1 to h6 and the display scale). Figtree, self-hosted as a variable font via fonts.css (wght 300-900). Emitted as --font-heading and applied to h1 to h6 by styles.css; body and UI stay on fontFamily.sans. Pick independently of the body font in the Studio."
|
|
169
|
+
},
|
|
165
170
|
"serif": {
|
|
166
171
|
"$value": "ui-serif, Georgia, serif",
|
|
167
172
|
"$type": "fontFamily",
|
package/src/tokens.json
CHANGED
|
@@ -158,9 +158,14 @@
|
|
|
158
158
|
},
|
|
159
159
|
"fontFamily": {
|
|
160
160
|
"sans": {
|
|
161
|
-
"$value": "'Hyperlegible Sans', 'Inter', ui-sans-serif, sans-serif, system-ui",
|
|
161
|
+
"$value": "'Atkinson Hyperlegible Sans', 'Hyperlegible Sans', 'Inter', ui-sans-serif, sans-serif, system-ui",
|
|
162
162
|
"$type": "fontFamily",
|
|
163
|
-
"$description": "Primary sans (body, UI). Hyperlegible Sans (the Braille Institute's low-vision face) is the BADS default — an accessibility-first letterform with disambiguated glyphs, self-hosted via fonts.css (6 static weights). Inter Variable stays second in the stack as a fallback for forks that want a single variable woff2 covering weights 100–900 with responsive type axes; reorder to lead with 'Inter' per client if that's the priority. Override per client."
|
|
163
|
+
"$description": "Primary sans (body, UI). Atkinson Hyperlegible Sans (the Braille Institute's low-vision face; fonts.css also declares it as 'Hyperlegible Sans') is the BADS default — an accessibility-first letterform with disambiguated glyphs, self-hosted via fonts.css (6 static weights). Inter Variable stays second in the stack as a fallback for forks that want a single variable woff2 covering weights 100–900 with responsive type axes; reorder to lead with 'Inter' per client if that's the priority. Override per client."
|
|
164
|
+
},
|
|
165
|
+
"heading": {
|
|
166
|
+
"$value": "'Figtree', 'Atkinson Hyperlegible Sans', 'Hyperlegible Sans', ui-sans-serif, sans-serif, system-ui",
|
|
167
|
+
"$type": "fontFamily",
|
|
168
|
+
"$description": "Headings (h1 to h6 and the display scale). Figtree, self-hosted as a variable font via fonts.css (wght 300-900). Emitted as --font-heading and applied to h1 to h6 by styles.css; body and UI stay on fontFamily.sans. Pick independently of the body font in the Studio."
|
|
164
169
|
},
|
|
165
170
|
"serif": {
|
|
166
171
|
"$value": "ui-serif, Georgia, serif",
|