@becket-ui/mcp 0.0.0-stage → 0.4.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.
@@ -0,0 +1,1838 @@
1
+ {
2
+ "package": "@becket-ui/react",
3
+ "version": "0.4.0",
4
+ "components": [
5
+ {
6
+ "name": "Button",
7
+ "file": "Button",
8
+ "exports": [
9
+ "Button"
10
+ ],
11
+ "hooks": [],
12
+ "types": [],
13
+ "group": "Buttons",
14
+ "storyTitle": "Buttons/Button",
15
+ "client": false,
16
+ "summary": null,
17
+ "recipe": "button",
18
+ "variants": {
19
+ "visual": [
20
+ "primary",
21
+ "secondary",
22
+ "neutral",
23
+ "outline"
24
+ ],
25
+ "size": [
26
+ "sm",
27
+ "md"
28
+ ],
29
+ "borderRadius": [
30
+ "none",
31
+ "sm",
32
+ "md",
33
+ "lg",
34
+ "xl",
35
+ "full"
36
+ ],
37
+ "withGradient": [
38
+ "false",
39
+ "true"
40
+ ],
41
+ "fullWidth": [
42
+ "true",
43
+ "false"
44
+ ]
45
+ },
46
+ "dts": "import type { ComponentPropsWithRef, ComponentPropsWithoutRef, ElementType, ReactElement } from 'react';\ntype ButtonVisual = 'outline' | 'primary' | 'secondary' | 'neutral';\ntype ButtonSize = 'sm' | 'md';\ntype ButtonBorderRadius = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';\ntype ButtonOwnProps = {\n visual?: ButtonVisual;\n size?: ButtonSize;\n borderRadius?: ButtonBorderRadius;\n withGradient?: boolean;\n /** Stretch to the parent width. Default is token `sizes.field` (12.5rem). */\n fullWidth?: boolean;\n};\n/**\n * Props follow the rendered element: `<Button as=\"a\" href=\"/docs\">` accepts anchor props,\n * and plain `<Button>` accepts button props only.\n */\nexport type ButtonProps<T extends ElementType = 'button'> = ButtonOwnProps & {\n as?: T;\n} & Omit<ComponentPropsWithoutRef<T>, keyof ButtonOwnProps | 'as'>;\ntype PolymorphicButton = (<T extends ElementType = 'button'>(props: ButtonProps<T> & {\n ref?: ComponentPropsWithRef<T>['ref'];\n}) => ReactElement | null) & {\n displayName?: string;\n};\nexport declare const Button: PolymorphicButton;\nexport {};\n//# sourceMappingURL=Button.d.ts.map",
47
+ "examples": [
48
+ {
49
+ "name": "Default",
50
+ "code": "export const Default: Story = {};"
51
+ },
52
+ {
53
+ "name": "WithGradient",
54
+ "code": "export const WithGradient: Story = {\n args: {\n children: 'Gradient',\n visual: 'primary',\n withGradient: true,\n },\n};"
55
+ },
56
+ {
57
+ "name": "FullWidth",
58
+ "code": "export const FullWidth: Story = {\n args: {\n children: 'Full width',\n fullWidth: true,\n },\n};"
59
+ },
60
+ {
61
+ "name": "BrandTheme",
62
+ "code": "/**\n * Product-wide rebrand: unlayered CSS variables after `index.css` (or\n * `defineBecketTheme()`). Hover, focus, and gradients follow `primary`.\n * This is not a React theme provider. Violet is the demo override — default\n * Becket primary stays `becketYellow`.\n */\nexport const BrandTheme: Story = {\n render: (args) => (\n <>\n <style>{brandThemeCss}</style>\n <Stack gap=\"md\" align=\"start\">\n <Text fontSize=\"sm\" color=\"muted\" maxW=\"34\">\n Injects <code>--beckui--colors-primary: oklch(0.82 0.14 280)</code> (violet)\n so theming is obvious. Default primary is yellow.\n </Text>\n <Button {...args}>Brand primary</Button>\n <Button {...args} withGradient>\n Brand gradient\n </Button>\n </Stack>\n </>\n ),\n args: {\n visual: 'primary',\n },\n};"
63
+ },
64
+ {
65
+ "name": "InstanceOverride",
66
+ "code": "/**\n * One control, one-off. `style` / `className` win on this instance only.\n * Do not rebrand an app this way — use BrandTheme / CSS variables.\n */\nexport const InstanceOverride: Story = {\n args: {\n children: 'One-off override',\n visual: 'primary',\n style: {\n background: 'rebeccapurple',\n borderRadius: '9999px',\n color: 'white',\n padding: '0.75rem 1.5rem',\n },\n },\n};"
67
+ },
68
+ {
69
+ "name": "DensityOverride",
70
+ "code": "/**\n * Component density. `--beckui-button-px-md` shrinks this Button; Stack `gap=\"md\"`\n * still uses `--beckui--spacing-md`. Focus ring is a canvas + primary double\n * stroke so it stays visible on yellow (Tab to this Button).\n */\nexport const DensityOverride: Story = {\n render: (args) => (\n <>\n <style>{densityCss}</style>\n <Stack gap=\"md\" align=\"start\" style={{ padding: '1rem' }}>\n <Button {...args}>Dense md</Button>\n <Button {...args} size=\"sm\">\n Dense sm (unchanged vars)\n </Button>\n </Stack>\n </>\n ),\n args: {\n visual: 'primary',\n size: 'md',\n },\n};"
71
+ },
72
+ {
73
+ "name": "AsLink",
74
+ "code": "export const AsLink: Story = {\n render: () => (\n <Button as=\"a\" href=\"https://github.com/kolmenadev/becket-ui\" visual=\"primary\">\n View on GitHub\n </Button>\n ),\n};"
75
+ }
76
+ ]
77
+ },
78
+ {
79
+ "name": "Heading",
80
+ "file": "Heading",
81
+ "exports": [
82
+ "Heading"
83
+ ],
84
+ "hooks": [],
85
+ "types": [],
86
+ "group": "Typography",
87
+ "storyTitle": "Typography/Heading",
88
+ "client": false,
89
+ "summary": null,
90
+ "recipe": "heading",
91
+ "variants": {
92
+ "size": [
93
+ "sm",
94
+ "md",
95
+ "lg",
96
+ "xl",
97
+ "2xl",
98
+ "3xl",
99
+ "4xl",
100
+ "5xl",
101
+ "6xl"
102
+ ],
103
+ "withGradient": [
104
+ "false",
105
+ "true"
106
+ ]
107
+ },
108
+ "dts": "import { type ElementType } from 'react';\ntype HeadingSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';\nexport type HeadingProps = React.ComponentPropsWithoutRef<'h2'> & {\n size?: HeadingSize;\n withGradient?: boolean;\n as?: ElementType;\n};\nexport declare const Heading: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, \"ref\"> & {\n size?: HeadingSize;\n withGradient?: boolean;\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLHeadingElement>>;\nexport {};\n//# sourceMappingURL=Heading.d.ts.map",
109
+ "examples": [
110
+ {
111
+ "name": "Default",
112
+ "code": "export const Default: Story = {\n args: { children: \"I'm a Heading\", size: 'xl', withGradient: false },\n};"
113
+ },
114
+ {
115
+ "name": "Sizes",
116
+ "code": "export const Sizes: Story = {\n render: () => (\n <div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>\n <Heading size=\"sm\">Heading (sm)</Heading>\n <Heading size=\"md\">Heading (md)</Heading>\n <Heading size=\"lg\">Heading (lg)</Heading>\n <Heading size=\"xl\">Heading (xl)</Heading>\n <Heading size=\"2xl\">Heading (2xl)</Heading>\n <Heading size=\"3xl\">Heading (3xl)</Heading>\n <Heading size=\"4xl\">Heading (4xl)</Heading>\n <Heading size=\"5xl\">Heading (5xl)</Heading>\n <Heading size=\"6xl\">Heading (6xl)</Heading>\n </div>\n ),\n};"
117
+ },
118
+ {
119
+ "name": "WithGradient",
120
+ "code": "export const WithGradient: Story = {\n args: {\n children: 'Heading with gradient',\n size: '2xl',\n withGradient: true,\n },\n};"
121
+ },
122
+ {
123
+ "name": "AsElement",
124
+ "code": "export const AsElement: Story = {\n render: () => (\n <div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>\n <Heading as=\"h1\">Level 1</Heading>\n <Heading as=\"h2\">Level 2</Heading>\n <Heading as=\"h3\">Level 3</Heading>\n <Heading as=\"h4\">Level 4</Heading>\n <Heading as=\"h5\">Level 5</Heading>\n <Heading as=\"h6\">Level 6</Heading>\n </div>\n ),\n};"
125
+ }
126
+ ]
127
+ },
128
+ {
129
+ "name": "Text",
130
+ "file": "Text",
131
+ "exports": [
132
+ "Text"
133
+ ],
134
+ "hooks": [],
135
+ "types": [],
136
+ "group": "Typography",
137
+ "storyTitle": "Typography/Text",
138
+ "client": false,
139
+ "summary": null,
140
+ "recipe": null,
141
+ "variants": null,
142
+ "dts": "import { type ElementType } from 'react';\nimport { type JsxStyleProps } from '@becket-ui/tokens';\ntype BaseElement = 'p' | 'span' | 'div' | 'strong' | 'em' | 'label';\nexport type TextProps<T extends ElementType = BaseElement> = React.ComponentPropsWithoutRef<T> & JsxStyleProps & {\n as?: T;\n};\nexport declare const Text: import(\"react\").ForwardRefExoticComponent<TextProps<BaseElement> & import(\"react\").RefAttributes<HTMLElement>>;\nexport {};\n//# sourceMappingURL=Text.d.ts.map",
143
+ "examples": [
144
+ {
145
+ "name": "Default",
146
+ "code": "export const Default: Story = {\n args: { children: 'The quick brown fox jumps over the lazy dog.', as: 'p' },\n};"
147
+ },
148
+ {
149
+ "name": "Sizes",
150
+ "code": "export const Sizes: Story = {\n render: () => (\n <div style={{ display: 'grid', gap: 8 }}>\n <Text fontSize=\"xs\">xs size</Text>\n <Text fontSize=\"sm\">sm size</Text>\n <Text fontSize=\"md\">md size</Text>\n <Text fontSize=\"lg\">lg size</Text>\n <Text fontSize=\"xl\">xl size</Text>\n <Text fontSize=\"2xl\">2xl size</Text>\n </div>\n ),\n};"
151
+ },
152
+ {
153
+ "name": "Truncate",
154
+ "code": "export const Truncate: Story = {\n args: {\n truncate: true,\n maxW: '300px',\n children:\n 'This is a very long line of text that will demonstrate truncation behavior when the truncate prop is enabled and the container has a constrained width.',\n },\n render: (args: TextProps) => (\n <Text {...args}>\n {args.children}\n </Text>\n ),\n};"
155
+ }
156
+ ]
157
+ },
158
+ {
159
+ "name": "Flex",
160
+ "file": "Flex",
161
+ "exports": [
162
+ "Flex"
163
+ ],
164
+ "hooks": [],
165
+ "types": [],
166
+ "group": "Layout",
167
+ "storyTitle": "Layout/Flex",
168
+ "client": false,
169
+ "summary": null,
170
+ "recipe": null,
171
+ "variants": null,
172
+ "dts": "import { type ComponentPropsWithoutRef, type ElementType } from 'react';\nimport { flex } from '@becket-ui/tokens/patterns';\nimport { type GradientBorderToken } from '../helpers/gradientBorder.js';\nimport { type GapValue, type ResponsiveValue } from '../helpers/responsive.js';\ntype FlexOptions = NonNullable<Parameters<typeof flex>[0]>;\ntype AlignVariant = 'start' | 'center' | 'end' | 'stretch' | 'baseline';\ntype JustifyVariant = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';\ntype BorderProp = FlexOptions['border'] | GradientBorderToken;\nexport type FlexProps = ComponentPropsWithoutRef<'div'> & {\n direction?: FlexOptions['direction'];\n gap?: GapValue;\n align?: AlignVariant;\n justify?: JustifyVariant;\n wrap?: FlexOptions['wrap'];\n basis?: FlexOptions['basis'];\n grow?: FlexOptions['grow'];\n shrink?: FlexOptions['shrink'];\n inline?: boolean;\n border?: BorderProp;\n order?: ResponsiveValue<number>;\n as?: ElementType;\n};\nexport declare const Flex: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & {\n direction?: FlexOptions['direction'];\n gap?: GapValue;\n align?: AlignVariant;\n justify?: JustifyVariant;\n wrap?: FlexOptions['wrap'];\n basis?: FlexOptions['basis'];\n grow?: FlexOptions['grow'];\n shrink?: FlexOptions['shrink'];\n inline?: boolean;\n border?: BorderProp;\n order?: ResponsiveValue<number>;\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport {};\n//# sourceMappingURL=Flex.d.ts.map",
173
+ "examples": [
174
+ {
175
+ "name": "Default",
176
+ "code": "export const Default: Story = {\n args: { direction: 'row', gap: 'md', align: 'start', justify: 'start' },\n render: (args: FlexProps) => (\n <Flex {...args} className={containerClass}>\n <div className={boxClass200}>Item 1</div>\n <div className={boxClass300}>Item 2</div>\n <div className={boxClass400}>Item 3</div>\n </Flex>\n ),\n};"
177
+ },
178
+ {
179
+ "name": "Direction",
180
+ "code": "export const Direction: Story = {\n args: { direction: 'row', gap: 'md' },\n render: (args: FlexProps) => (\n <Flex {...args} className={containerClass}>\n <div className={boxClass200}>1</div>\n <div className={boxClass300}>2</div>\n <div className={boxClass400}>3</div>\n </Flex>\n ),\n};"
181
+ },
182
+ {
183
+ "name": "Align",
184
+ "code": "export const Align: Story = {\n args: { gap: 'md', align: 'center' },\n render: (args: FlexProps) => (\n <Flex {...args} className={css({ border: '1px solid', borderColor: 'border', p: 'md', h: 34 })}>\n <div className={boxClassHeights.sm}>4px</div>\n <div className={boxClassHeights.md}>8px</div>\n <div className={boxClassHeights.lg}>10px</div>\n </Flex>\n ),\n};"
185
+ },
186
+ {
187
+ "name": "Justify",
188
+ "code": "export const Justify: Story = {\n args: { gap: 'md', justify: 'center' },\n render: (args: FlexProps) => (\n <Flex {...args} className={containerClass}>\n <div className={boxClassWide}>1</div>\n <div className={boxClassWide}>2</div>\n <div className={boxClassWide}>3</div>\n </Flex>\n ),\n};"
189
+ },
190
+ {
191
+ "name": "Wrap",
192
+ "code": "export const Wrap: Story = {\n args: { gap: 'md', wrap: 'wrap' },\n render: (args: FlexProps) => (\n <Flex {...args} className={css({ border: '1px solid', borderColor: 'border', p: 'md', maxW: 34 })}>\n <div className={boxClassWrap}>Box 1</div>\n <div className={boxClassWrap}>Box 2</div>\n <div className={boxClassWrap}>Box 3</div>\n </Flex>\n ),\n};"
193
+ },
194
+ {
195
+ "name": "Inline",
196
+ "code": "export const Inline: Story = {\n args: { gap: 'sm', inline: true },\n render: (args: FlexProps) => (\n <div>\n <Flex {...args} className={inlineContainerClass}>\n <span>Inline</span>\n <span>Flex</span>\n <span>1</span>\n </Flex>\n <Flex {...args} className={inlineContainerClass}>\n <span>Inline</span>\n <span>Flex</span>\n <span>2</span>\n </Flex>\n </div>\n ),\n};"
197
+ },
198
+ {
199
+ "name": "Gaps",
200
+ "code": "export const Gaps: Story = {\n parameters: { controls: { disable: true } },\n render: () => (\n <Flex direction=\"column\" gap=\"lg\">\n {(['xs', 'sm', 'md', 'lg', 'xl'] as const).map((gap) => (\n <Flex key={gap} gap={gap} className={containerClass} align=\"center\">\n <span className={gapLabelClass}>{gap}</span>\n <div className={boxClass200}>Item 1</div>\n <div className={boxClass200}>Item 2</div>\n <div className={boxClass200}>Item 3</div>\n </Flex>\n ))}\n </Flex>\n ),\n};"
201
+ },
202
+ {
203
+ "name": "WithGradientBorder",
204
+ "code": "export const WithGradientBorder: Story = {\n args: {\n direction: 'row',\n gap: 'md',\n align: 'center',\n justify: 'between',\n border: 'primary',\n },\n render: (args: FlexProps) => (\n <Flex {...args} className={gradientContainerClass}>\n <div className={boxClass200}>Item 1</div>\n <div className={boxClass300}>Item 2</div>\n <div className={boxClass400}>Item 3</div>\n </Flex>\n ),\n};"
205
+ },
206
+ {
207
+ "name": "GradientBorderVariants",
208
+ "code": "export const GradientBorderVariants: Story = {\n parameters: { controls: { disable: true } },\n render: () => (\n <Flex direction=\"column\" gap=\"md\">\n {GRADIENT_BORDER_OPTIONS.map((border) => (\n <Flex\n key={border}\n border={border}\n gap=\"md\"\n align=\"center\"\n justify=\"between\"\n className={gradientContainerClass}\n >\n <div className={boxClass200}>{border}</div>\n <div className={boxClass300}>Item 2</div>\n <div className={boxClass400}>Item 3</div>\n </Flex>\n ))}\n </Flex>\n ),\n};"
209
+ }
210
+ ]
211
+ },
212
+ {
213
+ "name": "Stack",
214
+ "file": "Stack",
215
+ "exports": [
216
+ "Stack",
217
+ "HStack",
218
+ "VStack"
219
+ ],
220
+ "hooks": [],
221
+ "types": [],
222
+ "group": "Layout",
223
+ "storyTitle": "Layout/Stack",
224
+ "client": false,
225
+ "summary": null,
226
+ "recipe": null,
227
+ "variants": null,
228
+ "dts": "import { type ComponentPropsWithoutRef, type ElementType } from 'react';\nimport { stack } from '@becket-ui/tokens/patterns';\nimport { type GradientBorderToken } from '../helpers/gradientBorder.js';\nimport { type GapValue, type ResponsiveValue } from '../helpers/responsive.js';\ntype StackOptions = NonNullable<Parameters<typeof stack>[0]>;\ntype AlignVariant = 'start' | 'center' | 'end' | 'stretch' | 'baseline';\ntype JustifyVariant = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';\ntype BorderProp = StackOptions['border'] | GradientBorderToken;\nexport type StackProps = ComponentPropsWithoutRef<'div'> & {\n direction?: StackOptions['direction'];\n gap?: GapValue;\n align?: AlignVariant;\n justify?: JustifyVariant;\n border?: BorderProp;\n /** Flex/grid order — responsive object supported. */\n order?: ResponsiveValue<number>;\n as?: ElementType;\n};\nexport declare const Stack: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & {\n direction?: StackOptions['direction'];\n gap?: GapValue;\n align?: AlignVariant;\n justify?: JustifyVariant;\n border?: BorderProp;\n /** Flex/grid order — responsive object supported. */\n order?: ResponsiveValue<number>;\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport declare const HStack: import(\"react\").ForwardRefExoticComponent<Omit<StackProps, \"direction\"> & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport declare const VStack: import(\"react\").ForwardRefExoticComponent<Omit<StackProps, \"direction\"> & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport {};\n//# sourceMappingURL=Stack.d.ts.map",
229
+ "examples": [
230
+ {
231
+ "name": "Basic",
232
+ "code": "export const Basic: Story = {\n args: { direction: 'column', gap: 'sm', align: 'start', justify: 'center' },\n render: (args: StackProps) => (\n <Stack {...args}>\n <div className={boxClass200}>Item 1</div>\n <div className={boxClass300}>Item 2</div>\n <div className={boxClass400}>Item 3</div>\n </Stack>\n ),\n};"
233
+ },
234
+ {
235
+ "name": "Horizontal",
236
+ "code": "export const Horizontal: Story = {\n args: { gap: 'md', align: 'center', justify: 'center' },\n argTypes: { direction: { table: { disable: true } } },\n render: (args: StackProps) => (\n <HStack {...args} className={css({ border: '1px solid', borderColor: 'border', p: 'md', h: 34, w: 55 })}>\n <div className={boxClass200}>Item 1</div>\n <div className={boxClass300}>Item 2</div>\n <div className={boxClass400}>Item 3</div>\n </HStack>\n ),\n};"
237
+ },
238
+ {
239
+ "name": "Vertical",
240
+ "code": "export const Vertical: Story = {\n args: { gap: 'md', align: 'center', justify: 'center' },\n argTypes: { direction: { table: { disable: true } } },\n render: (args: StackProps) => (\n <VStack {...args} className={css({ border: '1px solid', borderColor: 'border', p: 'md', h: 34, w: 34 })}>\n <div className={boxClass200}>Item 1</div>\n <div className={boxClass300}>Item 2</div>\n <div className={boxClass400}>Item 3</div>\n </VStack>\n ),\n};"
241
+ },
242
+ {
243
+ "name": "NumericGap",
244
+ "code": "export const NumericGap: Story = {\n args: { direction: 'column', gap: 3, align: 'start', justify: 'start' },\n render: (args: StackProps) => (\n <Stack {...args}>\n <div className={boxClass200}>gap=3 (0.75rem)</div>\n <div className={boxClass300}>Item 2</div>\n <div className={boxClass400}>Item 3</div>\n </Stack>\n ),\n};"
245
+ },
246
+ {
247
+ "name": "WithGradientBorder",
248
+ "code": "export const WithGradientBorder: Story = {\n args: { direction: 'column', gap: 'md', align: 'start', justify: 'start', border: 'primary' },\n render: (args: StackProps) => (\n <Stack {...args} className={gradientContainerClass}>\n <div className={boxClass200}>Item 1</div>\n <div className={boxClass300}>Item 2</div>\n <div className={boxClass400}>Item 3</div>\n </Stack>\n ),\n};"
249
+ },
250
+ {
251
+ "name": "GradientBorderVariants",
252
+ "code": "export const GradientBorderVariants: Story = {\n render: () => (\n <VStack gap=\"md\" className={css({ maxW: 55 })}>\n {GRADIENT_BORDER_OPTIONS.map((border) => (\n <Stack\n key={border}\n border={border}\n gap=\"sm\"\n className={gradientContainerClass}\n >\n <div className={boxClass200}>{border}</div>\n <div className={boxClass300}>Item 2</div>\n </Stack>\n ))}\n </VStack>\n ),\n};"
253
+ }
254
+ ]
255
+ },
256
+ {
257
+ "name": "Tag",
258
+ "file": "Tag",
259
+ "exports": [
260
+ "Tag"
261
+ ],
262
+ "hooks": [],
263
+ "types": [],
264
+ "group": "Data Display",
265
+ "storyTitle": "Data Display/Tag",
266
+ "client": false,
267
+ "summary": null,
268
+ "recipe": "tag",
269
+ "variants": {
270
+ "size": [
271
+ "sm",
272
+ "md",
273
+ "lg"
274
+ ],
275
+ "visual": [
276
+ "primary",
277
+ "secondary",
278
+ "neutral",
279
+ "outline"
280
+ ],
281
+ "borderRadius": [
282
+ "none",
283
+ "sm",
284
+ "md",
285
+ "lg",
286
+ "xl",
287
+ "full"
288
+ ],
289
+ "withGradient": [
290
+ "false",
291
+ "true"
292
+ ]
293
+ },
294
+ "dts": "import { type ComponentPropsWithoutRef, type ElementType } from 'react';\nimport { type LabelCustomColors, type LabelVisual } from '../helpers/labelColors.js';\ntype TagSize = 'sm' | 'md' | 'lg';\ntype TagBorderRadius = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';\nexport type TagProps = ComponentPropsWithoutRef<'span'> & {\n size?: TagSize;\n visual?: LabelVisual;\n borderRadius?: TagBorderRadius;\n withGradient?: boolean;\n customColors?: LabelCustomColors;\n as?: ElementType;\n};\nexport declare const Tag: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, \"ref\"> & {\n size?: TagSize;\n visual?: LabelVisual;\n borderRadius?: TagBorderRadius;\n withGradient?: boolean;\n customColors?: LabelCustomColors;\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLSpanElement>>;\nexport type { LabelCustomColors, LabelVisual };\n//# sourceMappingURL=Tag.d.ts.map",
295
+ "examples": [
296
+ {
297
+ "name": "Default",
298
+ "code": "export const Default: Story = {};"
299
+ },
300
+ {
301
+ "name": "Sizes",
302
+ "code": "export const Sizes: Story = {\n render: () => (\n <HStack gap=\"sm\" align=\"center\">\n <Tag size=\"sm\">sm</Tag>\n <Tag size=\"md\">md</Tag>\n <Tag size=\"lg\">lg</Tag>\n </HStack>\n ),\n};"
303
+ },
304
+ {
305
+ "name": "Visuals",
306
+ "code": "export const Visuals: Story = {\n render: () => (\n <HStack gap=\"sm\" align=\"center\" style={{ flexWrap: 'wrap' }}>\n <Tag visual=\"primary\">Primary</Tag>\n <Tag visual=\"secondary\">Secondary</Tag>\n <Tag visual=\"neutral\">Neutral</Tag>\n <Tag visual=\"outline\">Outline</Tag>\n </HStack>\n ),\n};"
307
+ },
308
+ {
309
+ "name": "WithGradient",
310
+ "code": "export const WithGradient: Story = {\n render: () => (\n <HStack gap=\"sm\" align=\"center\" style={{ flexWrap: 'wrap' }}>\n <Tag visual=\"primary\" withGradient>\n Primary\n </Tag>\n <Tag visual=\"outline\" withGradient>\n Outline\n </Tag>\n </HStack>\n ),\n};"
311
+ },
312
+ {
313
+ "name": "CustomColors",
314
+ "code": "export const CustomColors: Story = {\n render: () => (\n <Tag\n customColors={{\n background: 'color-mix(in srgb, #6366f1 24%, transparent)',\n color: '#c7d2fe',\n border: 'color-mix(in srgb, #6366f1 40%, transparent)',\n }}\n >\n Custom\n </Tag>\n ),\n};"
315
+ },
316
+ {
317
+ "name": "MetadataRow",
318
+ "code": "export const MetadataRow: Story = {\n render: () => (\n <HStack gap=\"sm\" align=\"center\">\n <Tag>Docs</Tag>\n <Tag>v1</Tag>\n </HStack>\n ),\n};"
319
+ },
320
+ {
321
+ "name": "Overflow",
322
+ "code": "export const Overflow: Story = {\n render: () => (\n <Stack gap=\"sm\" style={{ maxWidth: '6rem' }}>\n <Tag>Very-long-label-that-truncates</Tag>\n </Stack>\n ),\n};"
323
+ },
324
+ {
325
+ "name": "DensityOverride",
326
+ "code": "/**\n * Tag padding follows `--beckui-tag-px-md`. Stack `gap=\"md\"` does not.\n */\nexport const DensityOverride: Story = {\n render: (args) => (\n <>\n <style>{tagDensityCss}</style>\n <Stack gap=\"md\" align=\"start\">\n <HStack gap=\"sm\">\n <Tag {...args}>Dense md</Tag>\n <Tag {...args} size=\"sm\">\n sm\n </Tag>\n </HStack>\n </Stack>\n </>\n ),\n};"
327
+ }
328
+ ]
329
+ },
330
+ {
331
+ "name": "Badge",
332
+ "file": "Badge",
333
+ "exports": [
334
+ "Badge"
335
+ ],
336
+ "hooks": [],
337
+ "types": [],
338
+ "group": "Data Display",
339
+ "storyTitle": "Data Display/Badge",
340
+ "client": false,
341
+ "summary": null,
342
+ "recipe": "badge",
343
+ "variants": {
344
+ "size": [
345
+ "sm",
346
+ "md",
347
+ "lg"
348
+ ],
349
+ "visual": [
350
+ "primary",
351
+ "secondary",
352
+ "neutral",
353
+ "outline"
354
+ ],
355
+ "borderRadius": [
356
+ "none",
357
+ "sm",
358
+ "md",
359
+ "lg",
360
+ "xl",
361
+ "full"
362
+ ],
363
+ "withGradient": [
364
+ "false",
365
+ "true"
366
+ ]
367
+ },
368
+ "dts": "import { type ComponentPropsWithoutRef, type ElementType } from 'react';\nimport { type LabelCustomColors, type LabelVisual } from '../helpers/labelColors.js';\ntype BadgeSize = 'sm' | 'md' | 'lg';\ntype BadgeBorderRadius = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';\nexport type BadgeProps = ComponentPropsWithoutRef<'span'> & {\n size?: BadgeSize;\n visual?: LabelVisual;\n borderRadius?: BadgeBorderRadius;\n withGradient?: boolean;\n customColors?: LabelCustomColors;\n as?: ElementType;\n};\nexport declare const Badge: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, \"ref\"> & {\n size?: BadgeSize;\n visual?: LabelVisual;\n borderRadius?: BadgeBorderRadius;\n withGradient?: boolean;\n customColors?: LabelCustomColors;\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLSpanElement>>;\nexport type { LabelCustomColors, LabelVisual };\n//# sourceMappingURL=Badge.d.ts.map",
369
+ "examples": [
370
+ {
371
+ "name": "Default",
372
+ "code": "export const Default: Story = {};"
373
+ },
374
+ {
375
+ "name": "Sizes",
376
+ "code": "export const Sizes: Story = {\n render: () => (\n <HStack gap=\"sm\" align=\"center\">\n <Badge size=\"sm\">New</Badge>\n <Badge size=\"md\">Beta</Badge>\n <Badge size=\"lg\">Draft</Badge>\n </HStack>\n ),\n};"
377
+ },
378
+ {
379
+ "name": "Visuals",
380
+ "code": "export const Visuals: Story = {\n render: () => (\n <HStack gap=\"sm\" align=\"center\" style={{ flexWrap: 'wrap' }}>\n <Badge visual=\"primary\">Primary</Badge>\n <Badge visual=\"secondary\">Secondary</Badge>\n <Badge visual=\"neutral\">Neutral</Badge>\n <Badge visual=\"outline\">Outline</Badge>\n </HStack>\n ),\n};"
381
+ },
382
+ {
383
+ "name": "WithGradient",
384
+ "code": "export const WithGradient: Story = {\n args: {\n children: 'New',\n visual: 'primary',\n withGradient: true,\n },\n};"
385
+ },
386
+ {
387
+ "name": "CustomColors",
388
+ "code": "export const CustomColors: Story = {\n render: () => (\n <HStack gap=\"sm\">\n <Badge\n customColors={{\n background: 'color-mix(in srgb, #22c55e 22%, transparent)',\n color: '#86efac',\n border: 'color-mix(in srgb, #22c55e 35%, transparent)',\n }}\n >\n New\n </Badge>\n <Badge\n customColors={{\n background: 'color-mix(in srgb, #ef4444 22%, transparent)',\n color: '#fca5a5',\n border: 'color-mix(in srgb, #ef4444 35%, transparent)',\n }}\n >\n Alert\n </Badge>\n </HStack>\n ),\n};"
389
+ },
390
+ {
391
+ "name": "Overflow",
392
+ "code": "export const Overflow: Story = {\n render: () => (\n <Stack gap=\"sm\" style={{ maxWidth: '5rem' }}>\n <Badge>Notification</Badge>\n </Stack>\n ),\n};"
393
+ }
394
+ ]
395
+ },
396
+ {
397
+ "name": "Switch",
398
+ "file": "Switch",
399
+ "exports": [
400
+ "Switch"
401
+ ],
402
+ "hooks": [],
403
+ "types": [
404
+ "SwitchProps"
405
+ ],
406
+ "group": "Forms",
407
+ "storyTitle": "Forms/Switch",
408
+ "client": true,
409
+ "summary": null,
410
+ "recipe": "switchRecipe",
411
+ "variants": {
412
+ "size": [
413
+ "sm",
414
+ "md",
415
+ "lg"
416
+ ],
417
+ "checked": [
418
+ "true",
419
+ "false"
420
+ ]
421
+ },
422
+ "dts": "import { type ButtonHTMLAttributes, type ReactNode } from 'react';\ntype SwitchSize = 'sm' | 'md' | 'lg';\nexport type SwitchProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'role'> & {\n checked?: boolean;\n defaultChecked?: boolean;\n onCheckedChange?: (checked: boolean) => void;\n size?: SwitchSize;\n /** Visible name. Prefer this over a control-only `aria-label`. */\n label?: ReactNode;\n};\nexport declare const Switch: import(\"react\").ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, \"onChange\" | \"role\"> & {\n checked?: boolean;\n defaultChecked?: boolean;\n onCheckedChange?: (checked: boolean) => void;\n size?: SwitchSize;\n /** Visible name. Prefer this over a control-only `aria-label`. */\n label?: ReactNode;\n} & import(\"react\").RefAttributes<HTMLButtonElement>>;\nexport {};\n//# sourceMappingURL=Switch.d.ts.map",
423
+ "examples": [
424
+ {
425
+ "name": "Default",
426
+ "code": "export const Default: Story = {\n args: {\n size: 'md',\n disabled: false,\n defaultChecked: false,\n label: 'Notifications',\n },\n};"
427
+ },
428
+ {
429
+ "name": "Checked",
430
+ "code": "export const Checked: Story = {\n args: {\n size: 'md',\n defaultChecked: true,\n label: 'Enabled',\n },\n};"
431
+ },
432
+ {
433
+ "name": "Disabled",
434
+ "code": "export const Disabled: Story = {\n args: {\n size: 'md',\n defaultChecked: true,\n disabled: true,\n label: 'Disabled switch',\n },\n};"
435
+ },
436
+ {
437
+ "name": "Sizes",
438
+ "code": "export const Sizes: Story = {\n render: () => (\n <div style={{ display: 'flex', gap: '1rem', alignItems: 'center' }}>\n <Switch size=\"sm\" defaultChecked label=\"Small\" />\n <Switch size=\"md\" defaultChecked label=\"Medium\" />\n <Switch size=\"lg\" defaultChecked label=\"Large\" />\n </div>\n ),\n};"
439
+ },
440
+ {
441
+ "name": "Controlled",
442
+ "code": "export const Controlled: Story = {\n render: function ControlledSwitch() {\n const [on, setOn] = useState(false);\n return (\n <div style={{ display: 'flex', gap: '0.75rem', alignItems: 'center' }}>\n <Switch\n checked={on}\n onCheckedChange={setOn}\n label=\"Controlled\"\n />\n <span>{on ? 'On' : 'Off'}</span>\n </div>\n );\n },\n};"
443
+ }
444
+ ]
445
+ },
446
+ {
447
+ "name": "Field",
448
+ "file": "Field",
449
+ "exports": [
450
+ "Field",
451
+ "FieldLabel",
452
+ "FieldHelper",
453
+ "FieldError",
454
+ "FieldControl",
455
+ "FieldSelect",
456
+ "FieldTextarea"
457
+ ],
458
+ "hooks": [
459
+ "useField"
460
+ ],
461
+ "types": [
462
+ "FieldSize",
463
+ "FieldContextValue"
464
+ ],
465
+ "group": "Forms",
466
+ "storyTitle": "Forms/Field",
467
+ "client": true,
468
+ "summary": null,
469
+ "recipe": "field",
470
+ "variants": {
471
+ "size": [
472
+ "sm",
473
+ "md",
474
+ "lg"
475
+ ],
476
+ "fullWidth": [
477
+ "true",
478
+ "false"
479
+ ]
480
+ },
481
+ "dts": "import { type ComponentPropsWithoutRef, type InputHTMLAttributes, type LabelHTMLAttributes, type ReactNode } from 'react';\nexport type FieldSize = 'sm' | 'md' | 'lg';\nexport type FieldContextValue = {\n id: string;\n invalid: boolean;\n size: FieldSize;\n helperId: string;\n errorId: string;\n describedBy?: string;\n};\nexport declare function useField(): FieldContextValue;\nexport declare function useOptionalField(): FieldContextValue | null;\nexport type FieldProps = ComponentPropsWithoutRef<'div'> & {\n size?: FieldSize;\n invalid?: boolean;\n fullWidth?: boolean;\n children?: ReactNode;\n};\nexport declare const Field: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & {\n size?: FieldSize;\n invalid?: boolean;\n fullWidth?: boolean;\n children?: ReactNode;\n} & import(\"react\").RefAttributes<HTMLDivElement>>;\ntype FieldLabelProps = LabelHTMLAttributes<HTMLLabelElement>;\nexport declare const FieldLabel: import(\"react\").ForwardRefExoticComponent<FieldLabelProps & import(\"react\").RefAttributes<HTMLLabelElement>>;\nexport declare const FieldHelper: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLSpanElement>>;\nexport declare const FieldError: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLSpanElement>>;\ntype FieldControlProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size'>;\n/** Native text input wired to the parent Field (id, aria, size, invalid). */\nexport declare const FieldControl: import(\"react\").ForwardRefExoticComponent<FieldControlProps & import(\"react\").RefAttributes<HTMLInputElement>>;\ntype FieldSelectProps = Omit<ComponentPropsWithoutRef<'select'>, 'size'>;\nexport declare const FieldSelect: import(\"react\").ForwardRefExoticComponent<FieldSelectProps & import(\"react\").RefAttributes<HTMLSelectElement>>;\ntype FieldTextareaProps = Omit<ComponentPropsWithoutRef<'textarea'>, 'size'>;\nexport declare const FieldTextarea: import(\"react\").ForwardRefExoticComponent<FieldTextareaProps & import(\"react\").RefAttributes<HTMLTextAreaElement>>;\nexport {};\n//# sourceMappingURL=Field.d.ts.map",
482
+ "examples": [
483
+ {
484
+ "name": "Default",
485
+ "code": "export const Default: Story = {\n render: (args: FieldProps) => (\n <Field {...args}>\n <FieldLabel>Offset</FieldLabel>\n <FieldControl placeholder=\"3\" />\n <FieldHelper>Optional helper text</FieldHelper>\n </Field>\n ),\n};"
486
+ },
487
+ {
488
+ "name": "Invalid",
489
+ "code": "export const Invalid: Story = {\n args: { invalid: true },\n render: (args: FieldProps) => (\n <Field {...args}>\n <FieldLabel>Email</FieldLabel>\n <FieldControl defaultValue=\"not-an-email\" />\n <FieldError>Enter a valid email address</FieldError>\n </Field>\n ),\n};"
490
+ },
491
+ {
492
+ "name": "Sizes",
493
+ "code": "export const Sizes: Story = {\n render: () => (\n <div style={{ display: 'flex', flexDirection: 'column', gap: '1rem' }}>\n <Field size=\"sm\">\n <FieldLabel>Small</FieldLabel>\n <FieldControl defaultValue=\"sm\" />\n </Field>\n <Field size=\"md\">\n <FieldLabel>Medium</FieldLabel>\n <FieldControl defaultValue=\"md\" />\n </Field>\n <Field size=\"lg\">\n <FieldLabel>Large</FieldLabel>\n <FieldControl defaultValue=\"lg\" />\n </Field>\n </div>\n ),\n};"
494
+ },
495
+ {
496
+ "name": "DensityOverride",
497
+ "code": "/**\n * Field padding follows `--beckui-field-px-md`. Stack `gap=\"md\"` does not.\n */\nexport const DensityOverride: Story = {\n render: (args: FieldProps) => (\n <>\n <style>{fieldDensityCss}</style>\n <Stack gap=\"md\" align=\"start\">\n <Field {...args}>\n <FieldLabel>Dense field</FieldLabel>\n <FieldControl placeholder=\"md padding vars\" />\n </Field>\n <Field {...args} size=\"sm\">\n <FieldLabel>sm (other vars)</FieldLabel>\n <FieldControl placeholder=\"sm\" />\n </Field>\n </Stack>\n </>\n ),\n};"
498
+ }
499
+ ]
500
+ },
501
+ {
502
+ "name": "TextField",
503
+ "file": "TextField",
504
+ "exports": [
505
+ "TextField"
506
+ ],
507
+ "hooks": [],
508
+ "types": [],
509
+ "group": "Forms",
510
+ "storyTitle": "Forms/TextField",
511
+ "client": true,
512
+ "summary": null,
513
+ "recipe": "textFieldRecipe",
514
+ "variants": {
515
+ "size": [
516
+ "sm",
517
+ "md",
518
+ "lg"
519
+ ],
520
+ "invalid": [
521
+ "true",
522
+ "false"
523
+ ]
524
+ },
525
+ "dts": "import { type InputHTMLAttributes, type ReactNode } from 'react';\nimport { type FieldSize } from './Field.js';\nexport type TextFieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> & {\n label?: ReactNode;\n helperText?: ReactNode;\n size?: FieldSize;\n invalid?: boolean;\n /** Stretch to the parent width. Default is token `sizes.field` (12.5rem). */\n fullWidth?: boolean;\n};\nexport declare const TextField: import(\"react\").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, \"size\"> & {\n label?: ReactNode;\n helperText?: ReactNode;\n size?: FieldSize;\n invalid?: boolean;\n /** Stretch to the parent width. Default is token `sizes.field` (12.5rem). */\n fullWidth?: boolean;\n} & import(\"react\").RefAttributes<HTMLInputElement>>;\n//# sourceMappingURL=TextField.d.ts.map",
526
+ "examples": [
527
+ {
528
+ "name": "Default",
529
+ "code": "export const Default: Story = {\n args: {\n label: 'Offset',\n placeholder: '3',\n helperText: 'Optional helper text',\n },\n};"
530
+ },
531
+ {
532
+ "name": "Invalid",
533
+ "code": "export const Invalid: Story = {\n args: {\n label: 'Email',\n defaultValue: 'not-an-email',\n invalid: true,\n helperText: 'Enter a valid email address',\n },\n};"
534
+ },
535
+ {
536
+ "name": "Disabled",
537
+ "code": "export const Disabled: Story = {\n args: {\n label: 'Disabled',\n defaultValue: 'Locked',\n disabled: true,\n },\n};"
538
+ },
539
+ {
540
+ "name": "Sizes",
541
+ "code": "export const Sizes: Story = {\n render: () => (\n <Stack gap=\"md\">\n <TextField size=\"sm\" label=\"Small\" defaultValue=\"sm\" />\n <TextField size=\"md\" label=\"Medium\" defaultValue=\"md\" />\n <TextField size=\"lg\" label=\"Large\" defaultValue=\"lg\" />\n </Stack>\n ),\n};"
542
+ },
543
+ {
544
+ "name": "FullWidth",
545
+ "code": "export const FullWidth: Story = {\n args: {\n label: 'Full width',\n fullWidth: true,\n helperText: 'Stretches to the parent.',\n },\n};"
546
+ },
547
+ {
548
+ "name": "Controlled",
549
+ "code": "export const Controlled: Story = {\n render: function ControlledTextField() {\n const [value, setValue] = useState('3');\n return (\n <TextField\n label=\"Cents\"\n value={value}\n onChange={(event) => setValue(event.target.value)}\n helperText={`Current: ${value}`}\n inputMode=\"numeric\"\n />\n );\n },\n};"
550
+ }
551
+ ]
552
+ },
553
+ {
554
+ "name": "Checkbox",
555
+ "file": "Checkbox",
556
+ "exports": [
557
+ "Checkbox"
558
+ ],
559
+ "hooks": [],
560
+ "types": [],
561
+ "group": "Forms",
562
+ "storyTitle": "Forms/Checkbox",
563
+ "client": false,
564
+ "summary": null,
565
+ "recipe": "checkbox",
566
+ "variants": {
567
+ "size": [
568
+ "sm",
569
+ "md"
570
+ ]
571
+ },
572
+ "dts": "import { type InputHTMLAttributes, type ReactNode } from 'react';\ntype CheckboxSize = 'sm' | 'md';\nexport type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> & {\n label?: ReactNode;\n description?: ReactNode;\n size?: CheckboxSize;\n};\nexport declare const Checkbox: import(\"react\").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, \"size\" | \"type\"> & {\n label?: ReactNode;\n description?: ReactNode;\n size?: CheckboxSize;\n} & import(\"react\").RefAttributes<HTMLInputElement>>;\nexport {};\n//# sourceMappingURL=Checkbox.d.ts.map",
573
+ "examples": [
574
+ {
575
+ "name": "Default",
576
+ "code": "export const Default: Story = {\n args: {\n description: 'You can unsubscribe anytime.',\n },\n};"
577
+ },
578
+ {
579
+ "name": "Checked",
580
+ "code": "export const Checked: Story = {\n args: {\n defaultChecked: true,\n label: 'Checked',\n },\n};"
581
+ },
582
+ {
583
+ "name": "Disabled",
584
+ "code": "export const Disabled: Story = {\n args: { label: 'Disabled', disabled: true, defaultChecked: true },\n};"
585
+ },
586
+ {
587
+ "name": "Sizes",
588
+ "code": "export const Sizes: Story = {\n render: () => (\n <Stack gap=\"md\">\n <Checkbox size=\"sm\" label=\"Small\" defaultChecked />\n <Checkbox size=\"md\" label=\"Medium\" defaultChecked />\n </Stack>\n ),\n};"
589
+ },
590
+ {
591
+ "name": "Controlled",
592
+ "code": "export const Controlled: Story = {\n render: function ControlledCheckbox() {\n const [checked, setChecked] = useState(false);\n return (\n <Checkbox\n label=\"Controlled\"\n checked={checked}\n onChange={(event) => setChecked(event.target.checked)}\n description={checked ? 'On' : 'Off'}\n />\n );\n },\n};"
593
+ }
594
+ ]
595
+ },
596
+ {
597
+ "name": "Radio",
598
+ "file": "Radio",
599
+ "exports": [
600
+ "Radio",
601
+ "RadioGroup"
602
+ ],
603
+ "hooks": [],
604
+ "types": [
605
+ "RadioProps",
606
+ "RadioGroupProps"
607
+ ],
608
+ "group": "Forms",
609
+ "storyTitle": "Forms/Radio",
610
+ "client": true,
611
+ "summary": null,
612
+ "recipe": "radio",
613
+ "variants": {
614
+ "size": [
615
+ "sm",
616
+ "md"
617
+ ]
618
+ },
619
+ "dts": "import { type ComponentPropsWithoutRef, type InputHTMLAttributes, type ReactNode } from 'react';\ntype RadioSize = 'sm' | 'md';\nexport type RadioGroupProps = Omit<ComponentPropsWithoutRef<'fieldset'>, 'onChange'> & {\n name?: string;\n value?: string;\n defaultValue?: string;\n disabled?: boolean;\n invalid?: boolean;\n size?: RadioSize;\n legend?: ReactNode;\n onValueChange?: (value: string) => void;\n children?: ReactNode;\n};\nexport declare const RadioGroup: import(\"react\").ForwardRefExoticComponent<Omit<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, \"ref\">, \"onChange\"> & {\n name?: string;\n value?: string;\n defaultValue?: string;\n disabled?: boolean;\n invalid?: boolean;\n size?: RadioSize;\n legend?: ReactNode;\n onValueChange?: (value: string) => void;\n children?: ReactNode;\n} & import(\"react\").RefAttributes<HTMLFieldSetElement>>;\nexport type RadioProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> & {\n value: string;\n label?: ReactNode;\n description?: ReactNode;\n size?: RadioSize;\n};\nexport declare const Radio: import(\"react\").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, \"size\" | \"type\"> & {\n value: string;\n label?: ReactNode;\n description?: ReactNode;\n size?: RadioSize;\n} & import(\"react\").RefAttributes<HTMLInputElement>>;\nexport {};\n//# sourceMappingURL=Radio.d.ts.map",
620
+ "examples": [
621
+ {
622
+ "name": "Default",
623
+ "code": "export const Default: Story = {\n render: (args) => (\n <RadioGroup {...args}>\n <PlanRadios />\n </RadioGroup>\n ),\n};"
624
+ },
625
+ {
626
+ "name": "DefaultSelected",
627
+ "code": "export const DefaultSelected: Story = {\n args: { defaultValue: 'pro' },\n render: (args) => (\n <RadioGroup {...args}>\n <PlanRadios />\n </RadioGroup>\n ),\n};"
628
+ },
629
+ {
630
+ "name": "Disabled",
631
+ "code": "export const Disabled: Story = {\n args: { disabled: true, defaultValue: 'pro' },\n render: (args) => (\n <RadioGroup {...args}>\n <PlanRadios />\n </RadioGroup>\n ),\n};"
632
+ },
633
+ {
634
+ "name": "Sizes",
635
+ "code": "export const Sizes: Story = {\n render: () => (\n <Stack gap=\"lg\">\n <RadioGroup size=\"sm\" name=\"size-sm\" legend=\"Small\" defaultValue=\"a\">\n <Radio value=\"a\" label=\"Alpha\" />\n <Radio value=\"b\" label=\"Beta\" />\n </RadioGroup>\n <RadioGroup size=\"md\" name=\"size-md\" legend=\"Medium\" defaultValue=\"a\">\n <Radio value=\"a\" label=\"Alpha\" />\n <Radio value=\"b\" label=\"Beta\" />\n </RadioGroup>\n </Stack>\n ),\n};"
636
+ },
637
+ {
638
+ "name": "Controlled",
639
+ "code": "export const Controlled: Story = {\n render: function ControlledRadioGroup() {\n const [value, setValue] = useState('pro');\n return (\n <RadioGroup name=\"controlled-plan\" legend=\"Plan\" value={value} onValueChange={setValue}>\n <PlanRadios />\n </RadioGroup>\n );\n },\n};"
640
+ },
641
+ {
642
+ "name": "Invalid",
643
+ "code": "export const Invalid: Story = {\n render: () => (\n <Field invalid>\n <RadioGroup name=\"notify\" legend=\"Notifications\">\n <Radio value=\"all\" label=\"All\" />\n <Radio value=\"mentions\" label=\"Mentions only\" />\n <Radio value=\"none\" label=\"None\" />\n </RadioGroup>\n <FieldError>Pick a notification level</FieldError>\n </Field>\n ),\n};"
644
+ },
645
+ {
646
+ "name": "NativeForm",
647
+ "code": "export const NativeForm: Story = {\n render: function NativeFormRadio() {\n const [submitted, setSubmitted] = useState('');\n return (\n <form\n onSubmit={(event) => {\n event.preventDefault();\n const data = new FormData(event.currentTarget);\n setSubmitted(String(data.get('billing') ?? ''));\n }}\n >\n <Stack gap=\"md\">\n <RadioGroup name=\"billing\" legend=\"Billing\">\n <Radio value=\"monthly\" label=\"Monthly\" />\n <Radio value=\"yearly\" label=\"Yearly\" />\n </RadioGroup>\n <Text>\n Same <code>name</code> groups without JS. Arrow keys move selection.\n </Text>\n <Button type=\"submit\">Submit</Button>\n {submitted ? <Text>Submitted: {submitted}</Text> : null}\n </Stack>\n </form>\n );\n },\n};"
648
+ }
649
+ ]
650
+ },
651
+ {
652
+ "name": "Select",
653
+ "file": "Select",
654
+ "exports": [
655
+ "Select"
656
+ ],
657
+ "hooks": [],
658
+ "types": [],
659
+ "group": "Forms",
660
+ "storyTitle": "Forms/Select",
661
+ "client": true,
662
+ "summary": null,
663
+ "recipe": "selectRecipe",
664
+ "variants": {
665
+ "size": [
666
+ "sm",
667
+ "md",
668
+ "lg"
669
+ ],
670
+ "invalid": [
671
+ "true",
672
+ "false"
673
+ ]
674
+ },
675
+ "dts": "import { type ReactNode, type SelectHTMLAttributes } from 'react';\nimport { type FieldSize } from './Field.js';\nexport type SelectProps = Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> & {\n label?: ReactNode;\n helperText?: ReactNode;\n size?: FieldSize;\n invalid?: boolean;\n fullWidth?: boolean;\n};\nexport declare const Select: import(\"react\").ForwardRefExoticComponent<Omit<SelectHTMLAttributes<HTMLSelectElement>, \"size\"> & {\n label?: ReactNode;\n helperText?: ReactNode;\n size?: FieldSize;\n invalid?: boolean;\n fullWidth?: boolean;\n} & import(\"react\").RefAttributes<HTMLSelectElement>>;\n//# sourceMappingURL=Select.d.ts.map",
676
+ "examples": [
677
+ {
678
+ "name": "Default",
679
+ "code": "export const Default: Story = {\n args: { helperText: 'Native select — works without JS.' },\n};"
680
+ },
681
+ {
682
+ "name": "Invalid",
683
+ "code": "export const Invalid: Story = {\n args: {\n invalid: true,\n helperText: 'Pick a fruit',\n defaultValue: '',\n },\n};"
684
+ },
685
+ {
686
+ "name": "Disabled",
687
+ "code": "export const Disabled: Story = {\n args: { disabled: true, defaultValue: 'pear' },\n};"
688
+ },
689
+ {
690
+ "name": "Sizes",
691
+ "code": "export const Sizes: Story = {\n render: () => (\n <Stack gap=\"md\">\n <Select size=\"sm\" label=\"Small\" defaultValue=\"apple\">\n {fruitOptions}\n </Select>\n <Select size=\"md\" label=\"Medium\" defaultValue=\"pear\">\n {fruitOptions}\n </Select>\n <Select size=\"lg\" label=\"Large\" defaultValue=\"plum\">\n {fruitOptions}\n </Select>\n </Stack>\n ),\n};"
692
+ }
693
+ ]
694
+ },
695
+ {
696
+ "name": "Textarea",
697
+ "file": "Textarea",
698
+ "exports": [
699
+ "Textarea"
700
+ ],
701
+ "hooks": [],
702
+ "types": [],
703
+ "group": "Forms",
704
+ "storyTitle": "Forms/Textarea",
705
+ "client": true,
706
+ "summary": null,
707
+ "recipe": "textareaRecipe",
708
+ "variants": {
709
+ "size": [
710
+ "sm",
711
+ "md",
712
+ "lg"
713
+ ],
714
+ "invalid": [
715
+ "true",
716
+ "false"
717
+ ]
718
+ },
719
+ "dts": "import { type ReactNode, type TextareaHTMLAttributes } from 'react';\nimport { type FieldSize } from './Field.js';\nexport type TextareaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'> & {\n label?: ReactNode;\n helperText?: ReactNode;\n size?: FieldSize;\n invalid?: boolean;\n fullWidth?: boolean;\n};\nexport declare const Textarea: import(\"react\").ForwardRefExoticComponent<Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, \"size\"> & {\n label?: ReactNode;\n helperText?: ReactNode;\n size?: FieldSize;\n invalid?: boolean;\n fullWidth?: boolean;\n} & import(\"react\").RefAttributes<HTMLTextAreaElement>>;\n//# sourceMappingURL=Textarea.d.ts.map",
720
+ "examples": [
721
+ {
722
+ "name": "Default",
723
+ "code": "export const Default: Story = {\n args: {\n placeholder: 'Write a short note',\n helperText: 'Resize is vertical.',\n },\n};"
724
+ },
725
+ {
726
+ "name": "Invalid",
727
+ "code": "export const Invalid: Story = {\n args: {\n invalid: true,\n defaultValue: 'Too short',\n helperText: 'Add more detail',\n },\n};"
728
+ },
729
+ {
730
+ "name": "Disabled",
731
+ "code": "export const Disabled: Story = {\n args: { disabled: true, defaultValue: 'Locked' },\n};"
732
+ },
733
+ {
734
+ "name": "Sizes",
735
+ "code": "export const Sizes: Story = {\n render: () => (\n <Stack gap=\"md\">\n <Textarea size=\"sm\" label=\"Small\" defaultValue=\"sm\" />\n <Textarea size=\"md\" label=\"Medium\" defaultValue=\"md\" />\n <Textarea size=\"lg\" label=\"Large\" defaultValue=\"lg\" />\n </Stack>\n ),\n};"
736
+ }
737
+ ]
738
+ },
739
+ {
740
+ "name": "Card",
741
+ "file": "Card",
742
+ "exports": [
743
+ "Card",
744
+ "CardHeader",
745
+ "CardBody",
746
+ "CardFooter",
747
+ "CardTitle",
748
+ "CardDescription"
749
+ ],
750
+ "hooks": [],
751
+ "types": [],
752
+ "group": "Data Display",
753
+ "storyTitle": "Data Display/Card",
754
+ "client": true,
755
+ "summary": null,
756
+ "recipe": "card",
757
+ "variants": {
758
+ "size": [
759
+ "sm",
760
+ "md",
761
+ "lg"
762
+ ],
763
+ "visual": [
764
+ "outline",
765
+ "subtle",
766
+ "elevated"
767
+ ],
768
+ "fullWidth": [
769
+ "true",
770
+ "false"
771
+ ]
772
+ },
773
+ "dts": "import { type ComponentPropsWithoutRef, type ElementType, type ReactNode } from 'react';\ntype CardSize = 'sm' | 'md' | 'lg';\ntype CardVisual = 'outline' | 'subtle' | 'elevated';\nexport type CardProps = ComponentPropsWithoutRef<'div'> & {\n size?: CardSize;\n visual?: CardVisual;\n /** Stretch to the parent width. Default wraps to content (`fit-content`). */\n fullWidth?: boolean;\n as?: ElementType;\n};\nexport declare const Card: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & {\n size?: CardSize;\n visual?: CardVisual;\n /** Stretch to the parent width. Default wraps to content (`fit-content`). */\n fullWidth?: boolean;\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport declare const CardHeader: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & {\n as?: ElementType;\n children?: ReactNode;\n} & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport declare const CardBody: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & {\n as?: ElementType;\n children?: ReactNode;\n} & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport declare const CardFooter: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & {\n as?: ElementType;\n children?: ReactNode;\n} & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport declare const CardTitle: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, \"ref\"> & {\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLHeadingElement>>;\nexport declare const CardDescription: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, \"ref\"> & {\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLParagraphElement>>;\nexport {};\n//# sourceMappingURL=Card.d.ts.map",
774
+ "examples": [
775
+ {
776
+ "name": "Default",
777
+ "code": "export const Default: Story = {\n render: (args: CardProps) => (\n <Card {...args}>\n <CardHeader>\n <CardTitle>Panel title</CardTitle>\n </CardHeader>\n <CardBody>\n <Text>Card body content with Becket spacing and borders.</Text>\n </CardBody>\n </Card>\n ),\n};"
778
+ },
779
+ {
780
+ "name": "Anatomy",
781
+ "code": "export const Anatomy: Story = {\n render: (args: CardProps) => (\n <Card {...args} visual={args.visual ?? 'elevated'}>\n <CardHeader>\n <Stack gap=\"1\">\n <CardTitle>Project overview</CardTitle>\n <CardDescription>Summary of the latest activity.</CardDescription>\n </Stack>\n </CardHeader>\n <CardBody>\n <Text>Body slot for tables, lists, and nested content.</Text>\n </CardBody>\n <CardFooter>\n <CardDescription>Updated 2 hours ago</CardDescription>\n </CardFooter>\n </Card>\n ),\n args: { visual: 'elevated' },\n};"
782
+ },
783
+ {
784
+ "name": "Sizes",
785
+ "code": "export const Sizes: Story = {\n render: () => (\n <Stack gap=\"md\">\n <Card size=\"sm\">\n <CardTitle>Small</CardTitle>\n <CardBody>\n <Text>Compact padding</Text>\n </CardBody>\n </Card>\n <Card size=\"md\">\n <CardTitle>Medium</CardTitle>\n <CardBody>\n <Text>Default padding</Text>\n </CardBody>\n </Card>\n <Card size=\"lg\">\n <CardTitle>Large</CardTitle>\n <CardBody>\n <Text>Roomier layout</Text>\n </CardBody>\n </Card>\n </Stack>\n ),\n};"
786
+ },
787
+ {
788
+ "name": "Visuals",
789
+ "code": "export const Visuals: Story = {\n render: () => (\n <Stack gap=\"md\">\n <Card visual=\"outline\">\n <CardTitle>Outline</CardTitle>\n <CardBody>\n <Text>Transparent surface, border only.</Text>\n </CardBody>\n </Card>\n <Card visual=\"subtle\">\n <CardTitle>Subtle</CardTitle>\n <CardBody>\n <Text>Filled surface a step above the page.</Text>\n </CardBody>\n </Card>\n <Card visual=\"elevated\">\n <CardTitle>Elevated</CardTitle>\n <CardBody>\n <Text>Filled surface plus shadow.</Text>\n </CardBody>\n </Card>\n </Stack>\n ),\n};"
790
+ },
791
+ {
792
+ "name": "WithGrid",
793
+ "code": "export const WithGrid: Story = {\n render: () => (\n <Card fullWidth>\n <CardHeader>\n <CardTitle>Overview</CardTitle>\n </CardHeader>\n <CardBody>\n <SimpleGrid minChildWidth=\"10rem\" gap=\"md\">\n {['Users', 'Projects', 'Storage', 'Uptime'].map((label) => (\n <Card key={label} size=\"sm\" visual=\"outline\" fullWidth>\n <CardBody>\n <Text style={{ opacity: 0.72, fontSize: '0.875rem' }}>{label}</Text>\n <Text style={{ fontWeight: 600 }}>—</Text>\n </CardBody>\n </Card>\n ))}\n </SimpleGrid>\n </CardBody>\n </Card>\n ),\n};"
794
+ },
795
+ {
796
+ "name": "HeaderAction",
797
+ "code": "export const HeaderAction: Story = {\n render: (args: CardProps) => (\n <Card {...args}>\n <CardHeader>\n <CardTitle>Team</CardTitle>\n <CardDescription>3 members</CardDescription>\n </CardHeader>\n <CardBody>\n <Text>Application content stays in the app; Card supplies layout chrome.</Text>\n </CardBody>\n </Card>\n ),\n};"
798
+ }
799
+ ]
800
+ },
801
+ {
802
+ "name": "SimpleGrid",
803
+ "file": "SimpleGrid",
804
+ "exports": [
805
+ "SimpleGrid"
806
+ ],
807
+ "hooks": [],
808
+ "types": [],
809
+ "group": "Layout",
810
+ "storyTitle": "Layout/SimpleGrid",
811
+ "client": false,
812
+ "summary": "Responsive CSS grid layout. Pass `columns` (number or breakpoint object)\nor `minChildWidth` for auto-fit tracks. App-specific presets belong in consumers.",
813
+ "recipe": null,
814
+ "variants": null,
815
+ "dts": "import { type ComponentPropsWithoutRef, type ElementType } from 'react';\nimport { grid } from '@becket-ui/tokens/patterns';\nimport { type GapValue, type ResponsiveValue } from '../helpers/responsive.js';\ntype GridOptions = NonNullable<Parameters<typeof grid>[0]>;\nexport type SimpleGridProps = ComponentPropsWithoutRef<'div'> & {\n columns?: ResponsiveValue<number> | GridOptions['columns'];\n minChildWidth?: GridOptions['minChildWidth'];\n gap?: GapValue;\n rowGap?: GapValue;\n columnGap?: GapValue;\n as?: ElementType;\n};\n/**\n * Responsive CSS grid layout. Pass `columns` (number or breakpoint object)\n * or `minChildWidth` for auto-fit tracks. App-specific presets belong in consumers.\n */\nexport declare const SimpleGrid: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & {\n columns?: ResponsiveValue<number> | GridOptions['columns'];\n minChildWidth?: GridOptions['minChildWidth'];\n gap?: GapValue;\n rowGap?: GapValue;\n columnGap?: GapValue;\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport {};\n//# sourceMappingURL=SimpleGrid.d.ts.map",
816
+ "examples": [
817
+ {
818
+ "name": "FixedColumns",
819
+ "code": "export const FixedColumns: Story = {\n render: (args: SimpleGridProps) => (\n <SimpleGrid {...args}>\n <DemoCard label=\"One\" />\n <DemoCard label=\"Two\" />\n <DemoCard label=\"Three\" />\n <DemoCard label=\"Four\" />\n </SimpleGrid>\n ),\n};"
820
+ },
821
+ {
822
+ "name": "ResponsiveColumns",
823
+ "code": "export const ResponsiveColumns: Story = {\n parameters: { controls: { disable: true } },\n render: () => (\n <SimpleGrid columns={{ mobile: 1, tablet: 2, desktop: 4 }} gap={{ mobile: 'sm', desktop: 'md' }}>\n <DemoCard label=\"One\" />\n <DemoCard label=\"Two\" />\n <DemoCard label=\"Three\" />\n <DemoCard label=\"Four\" />\n </SimpleGrid>\n ),\n};"
824
+ },
825
+ {
826
+ "name": "AutoResponsive",
827
+ "code": "export const AutoResponsive: Story = {\n parameters: { controls: { disable: true } },\n render: () => (\n <SimpleGrid minChildWidth=\"10rem\" gap=\"md\">\n <DemoCard label=\"Alpha\" />\n <DemoCard label=\"Beta\" />\n <DemoCard label=\"Gamma\" />\n <DemoCard label=\"Delta\" />\n </SimpleGrid>\n ),\n};"
828
+ },
829
+ {
830
+ "name": "GapVariants",
831
+ "code": "export const GapVariants: Story = {\n parameters: { controls: { disable: true } },\n render: () => (\n <SimpleGrid minChildWidth=\"8rem\" gap=\"lg\" rowGap=\"sm\">\n <DemoCard label=\"Row gap sm\" />\n <DemoCard label=\"Column gap lg\" />\n <DemoCard label=\"Wraps cleanly\" />\n </SimpleGrid>\n ),\n};"
832
+ }
833
+ ]
834
+ },
835
+ {
836
+ "name": "Container",
837
+ "file": "Container",
838
+ "exports": [
839
+ "Container"
840
+ ],
841
+ "hooks": [],
842
+ "types": [
843
+ "ContainerProps"
844
+ ],
845
+ "group": "Layout",
846
+ "storyTitle": "Layout/Container",
847
+ "client": false,
848
+ "summary": null,
849
+ "recipe": "container",
850
+ "variants": {
851
+ "size": [
852
+ "sm",
853
+ "md",
854
+ "lg",
855
+ "xl",
856
+ "full"
857
+ ],
858
+ "padding": [
859
+ "none",
860
+ "xs",
861
+ "sm",
862
+ "md",
863
+ "lg",
864
+ "xl"
865
+ ]
866
+ },
867
+ "dts": "import { type ComponentPropsWithoutRef, type ElementType } from 'react';\ntype ContainerSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';\ntype ContainerPadding = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';\nexport type ContainerProps = ComponentPropsWithoutRef<'div'> & {\n /** Max width from the size scale: sm 48rem, md 64rem, lg 72rem, xl 80rem, full none. */\n size?: ContainerSize;\n /** Inline (left and right) page gutter. Vertical spacing belongs to Stack. */\n padding?: ContainerPadding;\n /** Render as a landmark, e.g. `main` or `section`. */\n as?: ElementType;\n};\nexport declare const Container: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & {\n /** Max width from the size scale: sm 48rem, md 64rem, lg 72rem, xl 80rem, full none. */\n size?: ContainerSize;\n /** Inline (left and right) page gutter. Vertical spacing belongs to Stack. */\n padding?: ContainerPadding;\n /** Render as a landmark, e.g. `main` or `section`. */\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport {};\n//# sourceMappingURL=Container.d.ts.map",
868
+ "examples": [
869
+ {
870
+ "name": "Default",
871
+ "code": "export const Default: Story = {\n render: (args) => (\n <Container {...args}>\n <Box background=\"subtle\" padding=\"md\" radius=\"md\">\n <Text>Content stays centered and stops at the container&apos;s max width.</Text>\n </Box>\n </Container>\n ),\n};"
872
+ },
873
+ {
874
+ "name": "Sizes",
875
+ "code": "export const Sizes: Story = {\n render: () => (\n <Stack gap=\"md\">\n {containerRecipe.variantMap.size.map((size) => (\n <Container key={size} size={size}>\n <Box background=\"subtle\" padding=\"sm\" radius=\"md\">\n <Text fontSize=\"sm\">size=&quot;{size}&quot;</Text>\n </Box>\n </Container>\n ))}\n </Stack>\n ),\n};"
876
+ },
877
+ {
878
+ "name": "AsMain",
879
+ "code": "export const AsMain: Story = {\n render: () => (\n <Container as=\"main\" size=\"md\">\n <Stack gap=\"sm\">\n <Heading as=\"h1\" size=\"xl\">\n Page title\n </Heading>\n <Text color=\"muted\">Container renders the main landmark, so no wrapper div is needed.</Text>\n </Stack>\n </Container>\n ),\n};"
880
+ }
881
+ ]
882
+ },
883
+ {
884
+ "name": "Box",
885
+ "file": "Box",
886
+ "exports": [
887
+ "Box"
888
+ ],
889
+ "hooks": [],
890
+ "types": [
891
+ "BoxProps"
892
+ ],
893
+ "group": "Layout",
894
+ "storyTitle": "Layout/Box",
895
+ "client": false,
896
+ "summary": null,
897
+ "recipe": "box",
898
+ "variants": {
899
+ "padding": [
900
+ "none",
901
+ "xs",
902
+ "sm",
903
+ "md",
904
+ "lg",
905
+ "xl"
906
+ ],
907
+ "background": [
908
+ "none",
909
+ "background",
910
+ "surface",
911
+ "subtle"
912
+ ],
913
+ "radius": [
914
+ "none",
915
+ "sm",
916
+ "md",
917
+ "lg",
918
+ "xl",
919
+ "full"
920
+ ]
921
+ },
922
+ "dts": "import { type ComponentPropsWithoutRef, type ElementType } from 'react';\ntype BoxSpacing = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';\ntype BoxBackground = 'none' | 'background' | 'surface' | 'subtle';\ntype BoxRadius = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';\nexport type BoxProps = ComponentPropsWithoutRef<'div'> & {\n padding?: BoxSpacing;\n /** Token surfaces only; text color follows the theme. */\n background?: BoxBackground;\n radius?: BoxRadius;\n as?: ElementType;\n};\nexport declare const Box: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & {\n padding?: BoxSpacing;\n /** Token surfaces only; text color follows the theme. */\n background?: BoxBackground;\n radius?: BoxRadius;\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport {};\n//# sourceMappingURL=Box.d.ts.map",
923
+ "examples": [
924
+ {
925
+ "name": "Default",
926
+ "code": "export const Default: Story = {\n render: (args) => (\n <Box {...args}>\n <Text>A block with token padding, surface and radius.</Text>\n </Box>\n ),\n};"
927
+ },
928
+ {
929
+ "name": "Backgrounds",
930
+ "code": "export const Backgrounds: Story = {\n render: () => (\n <HStack gap=\"md\">\n {boxRecipe.variantMap.background.map((background) => (\n <Box key={background} background={background} padding=\"md\" radius=\"md\">\n <Text fontSize=\"sm\">{background}</Text>\n </Box>\n ))}\n </HStack>\n ),\n};"
931
+ },
932
+ {
933
+ "name": "Radii",
934
+ "code": "export const Radii: Story = {\n render: () => (\n <HStack gap=\"md\">\n {boxRecipe.variantMap.radius.map((radius) => (\n <Box key={radius} background=\"subtle\" padding=\"md\" radius={radius}>\n <Text fontSize=\"sm\">{radius}</Text>\n </Box>\n ))}\n </HStack>\n ),\n};"
935
+ }
936
+ ]
937
+ },
938
+ {
939
+ "name": "Hide",
940
+ "file": "Hide",
941
+ "exports": [
942
+ "Hide"
943
+ ],
944
+ "hooks": [],
945
+ "types": [
946
+ "HideProps"
947
+ ],
948
+ "group": "Layout",
949
+ "storyTitle": "Layout/Hide",
950
+ "client": false,
951
+ "summary": "Conditionally hide children by breakpoint.\nPrefer over duplicating trees for mobile/desktop — keeps `data-testid` stable.\n\n@example\n<Hide below=\"desktop\">{sidebar}</Hide>\n<Hide from=\"desktop\">{mobileOnlyNav}</Hide>",
952
+ "recipe": "hide",
953
+ "variants": {
954
+ "below": [
955
+ "sm",
956
+ "md",
957
+ "lg",
958
+ "xl",
959
+ "2xl"
960
+ ],
961
+ "from": [
962
+ "sm",
963
+ "md",
964
+ "lg",
965
+ "xl",
966
+ "2xl"
967
+ ],
968
+ "asContents": [
969
+ "true",
970
+ "false"
971
+ ]
972
+ },
973
+ "dts": "/**\n * Chakra-style visibility helper.\n * Uses CSS media queries — no JS flash; single DOM for UI tests.\n */\nimport { type ComponentPropsWithoutRef, type ElementType } from 'react';\nimport { type BreakpointAlias } from '../helpers/responsive.js';\nexport type HideProps = ComponentPropsWithoutRef<'div'> & {\n /** Hide when viewport is **below** this breakpoint (show from breakpoint up). */\n below?: BreakpointAlias;\n /** Hide from this breakpoint **and up** (show only below). */\n from?: BreakpointAlias;\n /**\n * When visible, use `display: contents` so the wrapper does not affect flex/grid\n * (Chakra Show/Hide pattern). Set `false` for a real block box.\n */\n asContents?: boolean;\n as?: ElementType;\n};\n/**\n * Conditionally hide children by breakpoint.\n * Prefer over duplicating trees for mobile/desktop — keeps `data-testid` stable.\n *\n * @example\n * <Hide below=\"desktop\">{sidebar}</Hide>\n * <Hide from=\"desktop\">{mobileOnlyNav}</Hide>\n */\nexport declare const Hide: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & {\n /** Hide when viewport is **below** this breakpoint (show from breakpoint up). */\n below?: BreakpointAlias;\n /** Hide from this breakpoint **and up** (show only below). */\n from?: BreakpointAlias;\n /**\n * When visible, use `display: contents` so the wrapper does not affect flex/grid\n * (Chakra Show/Hide pattern). Set `false` for a real block box.\n */\n asContents?: boolean;\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLDivElement>>;\n//# sourceMappingURL=Hide.d.ts.map",
974
+ "examples": [
975
+ {
976
+ "name": "Default",
977
+ "code": "export const Default: Story = {\n args: { below: 'desktop' },\n render: (args: HideProps) => (\n <Hide {...args}>\n <Text>Hidden below the selected breakpoint (desktop = lg).</Text>\n </Hide>\n ),\n};"
978
+ },
979
+ {
980
+ "name": "HideBelowDesktop",
981
+ "code": "export const HideBelowDesktop: Story = {\n parameters: {\n docs: {\n description: {\n story:\n 'Use the viewport toolbar. Below `lg` (desktop) only the mobile-only line should show; from desktop up only the first line should show.',\n },\n },\n controls: { disable: true },\n },\n render: () => (\n <SimpleGrid columns={{ mobile: 1, desktop: 2 }} gap=\"md\">\n <Hide below=\"desktop\">\n <Text>Visible from desktop up (hidden on mobile)</Text>\n </Hide>\n <Hide from=\"desktop\">\n <Text>Mobile-only (hidden from desktop up)</Text>\n </Hide>\n </SimpleGrid>\n ),\n};"
982
+ }
983
+ ]
984
+ },
985
+ {
986
+ "name": "Tooltip",
987
+ "file": "Tooltip",
988
+ "exports": [
989
+ "Tooltip"
990
+ ],
991
+ "hooks": [],
992
+ "types": [
993
+ "TooltipPlacement",
994
+ "TooltipProps"
995
+ ],
996
+ "group": "Overlays",
997
+ "storyTitle": "Overlays/Tooltip",
998
+ "client": true,
999
+ "summary": null,
1000
+ "recipe": "tooltip",
1001
+ "variants": {
1002
+ "placement": [
1003
+ "top",
1004
+ "bottom",
1005
+ "left",
1006
+ "right"
1007
+ ]
1008
+ },
1009
+ "dts": "/**\n * Hover / focus tooltip (generic DS primitive).\n * Default placement top, open delay 200ms.\n */\nimport { type ReactNode } from 'react';\nexport type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';\nexport type TooltipProps = {\n /** Short glossary / hint text (or node). */\n content: ReactNode;\n children: ReactNode;\n placement?: TooltipPlacement;\n /** Delay before open on hover/focus (ms). */\n delayMs?: number;\n disabled?: boolean;\n};\nexport declare const Tooltip: import(\"react\").ForwardRefExoticComponent<TooltipProps & import(\"react\").RefAttributes<HTMLElement>>;\n//# sourceMappingURL=Tooltip.d.ts.map",
1010
+ "examples": [
1011
+ {
1012
+ "name": "Default",
1013
+ "code": "export const Default: Story = {\n args: {\n content: 'Short glossary hint.',\n placement: 'top',\n delayMs: 200,\n disabled: false,\n },\n render: (args: TooltipProps) => (\n <HStack gap=\"md\" align=\"center\" style={{ padding: '4rem' }}>\n <Tooltip {...args}>\n <Button size=\"sm\" visual=\"outline\">\n Hover me\n </Button>\n </Tooltip>\n </HStack>\n ),\n};"
1014
+ },
1015
+ {
1016
+ "name": "Placements",
1017
+ "code": "export const Placements: Story = {\n render: () => (\n <HStack gap=\"lg\" align=\"center\" style={{ padding: '5rem', flexWrap: 'wrap' }}>\n {(['top', 'bottom', 'left', 'right'] as const).map((placement) => (\n <Tooltip key={placement} content={`Placement: ${placement}`} placement={placement}>\n <Button size=\"sm\" visual=\"neutral\">\n {placement}\n </Button>\n </Tooltip>\n ))}\n </HStack>\n ),\n};"
1018
+ }
1019
+ ]
1020
+ },
1021
+ {
1022
+ "name": "Dialog",
1023
+ "file": "Dialog",
1024
+ "exports": [
1025
+ "Dialog",
1026
+ "DialogHeader",
1027
+ "DialogBody",
1028
+ "DialogFooter",
1029
+ "DialogTitle",
1030
+ "DialogClose"
1031
+ ],
1032
+ "hooks": [],
1033
+ "types": [],
1034
+ "group": "Overlays",
1035
+ "storyTitle": "Overlays/Dialog",
1036
+ "client": true,
1037
+ "summary": null,
1038
+ "recipe": "dialog",
1039
+ "variants": {},
1040
+ "dts": "import { type DialogHTMLAttributes, type ElementType, type ReactNode } from 'react';\ntype DialogRole = 'dialog' | 'alertdialog';\nexport type DialogProps = Omit<DialogHTMLAttributes<HTMLDialogElement>, 'open' | 'title'> & {\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n /** Composed heading. When set, Dialog renders header + close. */\n title?: ReactNode;\n /** Composed actions (pass `Button` nodes). When set, Dialog renders the footer. */\n footer?: ReactNode;\n /**\n * `alertdialog` is for confirms: no backdrop dismiss, Escape still closes,\n * initial focus is the first footer action (Cancel) when present.\n */\n role?: DialogRole;\n children?: ReactNode;\n};\nexport declare const Dialog: import(\"react\").ForwardRefExoticComponent<Omit<DialogHTMLAttributes<HTMLDialogElement>, \"open\" | \"title\"> & {\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n /** Composed heading. When set, Dialog renders header + close. */\n title?: ReactNode;\n /** Composed actions (pass `Button` nodes). When set, Dialog renders the footer. */\n footer?: ReactNode;\n /**\n * `alertdialog` is for confirms: no backdrop dismiss, Escape still closes,\n * initial focus is the first footer action (Cancel) when present.\n */\n role?: DialogRole;\n children?: ReactNode;\n} & import(\"react\").RefAttributes<HTMLDialogElement>>;\nexport declare const DialogHeader: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport declare const DialogTitle: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, \"ref\"> & {\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLHeadingElement>>;\nexport declare const DialogBody: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport declare const DialogFooter: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport declare const DialogClose: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLButtonElement>>;\nexport {};\n//# sourceMappingURL=Dialog.d.ts.map",
1041
+ "examples": [
1042
+ {
1043
+ "name": "Default",
1044
+ "code": "export const Default: Story = {\n render: function DialogDemo() {\n const [open, setOpen] = useState(false);\n return (\n <>\n <Button visual=\"primary\" onClick={() => setOpen(true)}>\n Open dialog\n </Button>\n <Dialog\n open={open}\n onOpenChange={setOpen}\n title=\"Confirm\"\n footer={\n <>\n <Button visual=\"outline\" onClick={() => setOpen(false)}>\n Cancel\n </Button>\n <Button visual=\"primary\" onClick={() => setOpen(false)}>\n Confirm\n </Button>\n </>\n }\n >\n <Text>\n Native dialog. Escape and backdrop click close it. Focus moves to Cancel, not Close.\n </Text>\n </Dialog>\n </>\n );\n },\n};"
1045
+ },
1046
+ {
1047
+ "name": "Alert",
1048
+ "code": "export const Alert: Story = {\n render: function AlertDialogDemo() {\n const [open, setOpen] = useState(false);\n return (\n <>\n <Button visual=\"primary\" onClick={() => setOpen(true)}>\n Delete\n </Button>\n <Dialog\n role=\"alertdialog\"\n open={open}\n onOpenChange={setOpen}\n title=\"Delete item?\"\n footer={\n <>\n <Button visual=\"outline\" onClick={() => setOpen(false)}>\n Cancel\n </Button>\n <Button visual=\"primary\" onClick={() => setOpen(false)}>\n Delete\n </Button>\n </>\n }\n >\n <Text>This cannot be undone. Backdrop click does not dismiss an alertdialog.</Text>\n </Dialog>\n </>\n );\n },\n};"
1049
+ },
1050
+ {
1051
+ "name": "Open",
1052
+ "code": "export const Open: Story = {\n render: function OpenDialogDemo() {\n const [open, setOpen] = useState(true);\n return (\n <>\n <Button visual=\"primary\" onClick={() => setOpen(true)}>\n Open dialog\n </Button>\n <Dialog\n open={open}\n onOpenChange={setOpen}\n title=\"Invite teammate\"\n footer={\n <>\n <Button visual=\"outline\" onClick={() => setOpen(false)}>\n Cancel\n </Button>\n <Button visual=\"primary\" onClick={() => setOpen(false)}>\n Send invite\n </Button>\n </>\n }\n >\n <Text>They get an email with a link to join this workspace.</Text>\n </Dialog>\n </>\n );\n },\n};"
1053
+ }
1054
+ ]
1055
+ },
1056
+ {
1057
+ "name": "Drawer",
1058
+ "file": "Drawer",
1059
+ "exports": [
1060
+ "Drawer",
1061
+ "DrawerHeader",
1062
+ "DrawerBody",
1063
+ "DrawerFooter",
1064
+ "DrawerTitle",
1065
+ "DrawerClose"
1066
+ ],
1067
+ "hooks": [],
1068
+ "types": [],
1069
+ "group": "Overlays",
1070
+ "storyTitle": "Overlays/Drawer",
1071
+ "client": true,
1072
+ "summary": null,
1073
+ "recipe": "drawer",
1074
+ "variants": {
1075
+ "placement": [
1076
+ "start",
1077
+ "end"
1078
+ ]
1079
+ },
1080
+ "dts": "import { type DialogHTMLAttributes, type ElementType, type ReactNode } from 'react';\ntype DrawerPlacement = 'start' | 'end';\ntype DrawerRole = 'dialog' | 'alertdialog';\nexport type DrawerProps = Omit<DialogHTMLAttributes<HTMLDialogElement>, 'open' | 'title'> & {\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n placement?: DrawerPlacement;\n /** Composed heading. When set, Drawer renders header + close. */\n title?: ReactNode;\n /** Composed actions (pass `Button` nodes). When set, Drawer renders the footer. */\n footer?: ReactNode;\n /** Same as Dialog: `alertdialog` disables backdrop dismiss. */\n role?: DrawerRole;\n children?: ReactNode;\n};\nexport declare const Drawer: import(\"react\").ForwardRefExoticComponent<Omit<DialogHTMLAttributes<HTMLDialogElement>, \"open\" | \"title\"> & {\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n placement?: DrawerPlacement;\n /** Composed heading. When set, Drawer renders header + close. */\n title?: ReactNode;\n /** Composed actions (pass `Button` nodes). When set, Drawer renders the footer. */\n footer?: ReactNode;\n /** Same as Dialog: `alertdialog` disables backdrop dismiss. */\n role?: DrawerRole;\n children?: ReactNode;\n} & import(\"react\").RefAttributes<HTMLDialogElement>>;\nexport declare const DrawerHeader: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport declare const DrawerTitle: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, \"ref\"> & {\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLHeadingElement>>;\nexport declare const DrawerBody: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport declare const DrawerFooter: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport declare const DrawerClose: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLButtonElement>>;\nexport {};\n//# sourceMappingURL=Drawer.d.ts.map",
1081
+ "examples": [
1082
+ {
1083
+ "name": "Default",
1084
+ "code": "export const Default: Story = {\n render: function DrawerDemo(args: DrawerProps) {\n const [open, setOpen] = useState(false);\n return (\n <>\n <Button visual=\"primary\" onClick={() => setOpen(true)}>\n Open drawer\n </Button>\n <Drawer\n {...args}\n open={open}\n onOpenChange={setOpen}\n title=\"Filters\"\n footer={\n <Button visual=\"primary\" onClick={() => setOpen(false)}>\n Done\n </Button>\n }\n >\n <Text>Same a11y as Dialog: Escape, backdrop, focus return. Placement is CSS.</Text>\n </Drawer>\n </>\n );\n },\n};"
1085
+ },
1086
+ {
1087
+ "name": "Start",
1088
+ "code": "export const Start: Story = {\n ...Default,\n args: { placement: 'start' },\n};"
1089
+ },
1090
+ {
1091
+ "name": "Open",
1092
+ "code": "export const Open: Story = {\n render: function OpenDrawerDemo(args: DrawerProps) {\n const [open, setOpen] = useState(true);\n return (\n <>\n <Button visual=\"primary\" onClick={() => setOpen(true)}>\n Open drawer\n </Button>\n <Drawer\n {...args}\n open={open}\n onOpenChange={setOpen}\n title=\"Filters\"\n footer={\n <Button visual=\"primary\" onClick={() => setOpen(false)}>\n Done\n </Button>\n }\n >\n <Text>Same a11y as Dialog: Escape, backdrop, focus return. Placement is CSS.</Text>\n </Drawer>\n </>\n );\n },\n};"
1093
+ }
1094
+ ]
1095
+ },
1096
+ {
1097
+ "name": "Menu",
1098
+ "file": "Menu",
1099
+ "exports": [
1100
+ "Menu",
1101
+ "MenuItem"
1102
+ ],
1103
+ "hooks": [],
1104
+ "types": [],
1105
+ "group": "Overlays",
1106
+ "storyTitle": "Overlays/Menu",
1107
+ "client": true,
1108
+ "summary": null,
1109
+ "recipe": "menu",
1110
+ "variants": {},
1111
+ "dts": "import { type ButtonHTMLAttributes, type DetailsHTMLAttributes, type ReactNode } from 'react';\nexport type MenuProps = Omit<DetailsHTMLAttributes<HTMLDetailsElement>, 'onToggle'> & {\n label: ReactNode;\n};\nexport declare const Menu: import(\"react\").ForwardRefExoticComponent<Omit<DetailsHTMLAttributes<HTMLDetailsElement>, \"onToggle\"> & {\n label: ReactNode;\n} & import(\"react\").RefAttributes<HTMLDetailsElement>>;\ntype MenuItemProps = ButtonHTMLAttributes<HTMLButtonElement>;\nexport declare const MenuItem: import(\"react\").ForwardRefExoticComponent<MenuItemProps & import(\"react\").RefAttributes<HTMLButtonElement>>;\nexport {};\n//# sourceMappingURL=Menu.d.ts.map",
1112
+ "examples": [
1113
+ {
1114
+ "name": "Default",
1115
+ "code": "export const Default: Story = {\n render: function MenuDemo(args: MenuProps) {\n const [last, setLast] = useState('none');\n return (\n <>\n <Menu {...args}>\n <MenuItem onClick={() => setLast('Edit')}>Edit</MenuItem>\n <MenuItem onClick={() => setLast('Duplicate')}>Duplicate</MenuItem>\n <MenuItem onClick={() => setLast('Delete')}>Delete</MenuItem>\n </Menu>\n <Text>Last action: {last}</Text>\n </>\n );\n },\n};"
1116
+ },
1117
+ {
1118
+ "name": "Open",
1119
+ "code": "export const Open: Story = {\n render: function OpenMenuDemo(args: MenuProps) {\n return (\n <Menu {...args} open>\n <MenuItem>Edit</MenuItem>\n <MenuItem>Duplicate</MenuItem>\n <MenuItem>Delete</MenuItem>\n </Menu>\n );\n },\n};"
1120
+ }
1121
+ ]
1122
+ },
1123
+ {
1124
+ "name": "Tabs",
1125
+ "file": "Tabs",
1126
+ "exports": [
1127
+ "Tabs",
1128
+ "TabList",
1129
+ "Tab",
1130
+ "TabPanel"
1131
+ ],
1132
+ "hooks": [],
1133
+ "types": [],
1134
+ "group": "Disclosure",
1135
+ "storyTitle": "Disclosure/Tabs",
1136
+ "client": true,
1137
+ "summary": null,
1138
+ "recipe": "tabs",
1139
+ "variants": {},
1140
+ "dts": "import { type ButtonHTMLAttributes, type ComponentPropsWithoutRef, type ReactNode } from 'react';\nexport type TabsProps = ComponentPropsWithoutRef<'div'> & {\n value?: string;\n defaultValue: string;\n onValueChange?: (value: string) => void;\n children?: ReactNode;\n};\nexport declare const Tabs: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & {\n value?: string;\n defaultValue: string;\n onValueChange?: (value: string) => void;\n children?: ReactNode;\n} & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport declare const TabList: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport declare const Tab: import(\"react\").ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & {\n value: string;\n} & import(\"react\").RefAttributes<HTMLButtonElement>>;\nexport declare const TabPanel: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & {\n value: string;\n} & import(\"react\").RefAttributes<HTMLDivElement>>;\n//# sourceMappingURL=Tabs.d.ts.map",
1141
+ "examples": [
1142
+ {
1143
+ "name": "Default",
1144
+ "code": "export const Default: Story = {\n render: () => (\n <Tabs defaultValue=\"one\">\n <TabList>\n <Tab value=\"one\">Overview</Tab>\n <Tab value=\"two\">Activity</Tab>\n <Tab value=\"three\" disabled>\n Disabled\n </Tab>\n </TabList>\n <TabPanel value=\"one\">\n <Text>First panel. Arrow keys move between tabs.</Text>\n </TabPanel>\n <TabPanel value=\"two\">\n <Text>Second panel.</Text>\n </TabPanel>\n <TabPanel value=\"three\">\n <Text>Hidden while disabled tab is unused.</Text>\n </TabPanel>\n </Tabs>\n ),\n};"
1145
+ }
1146
+ ]
1147
+ },
1148
+ {
1149
+ "name": "Table",
1150
+ "file": "Table",
1151
+ "exports": [
1152
+ "Table",
1153
+ "TableCaption",
1154
+ "TableHeader",
1155
+ "TableBody",
1156
+ "TableFooter",
1157
+ "TableRow",
1158
+ "TableColumnHeader",
1159
+ "TableCell",
1160
+ "Thead",
1161
+ "Tbody",
1162
+ "Tfoot",
1163
+ "Tr",
1164
+ "Th",
1165
+ "Td"
1166
+ ],
1167
+ "hooks": [],
1168
+ "types": [],
1169
+ "group": "Data Display",
1170
+ "storyTitle": "Data Display/Table",
1171
+ "client": true,
1172
+ "summary": null,
1173
+ "recipe": "table",
1174
+ "variants": {
1175
+ "size": [
1176
+ "sm",
1177
+ "md"
1178
+ ]
1179
+ },
1180
+ "dts": "import { type ComponentPropsWithoutRef } from 'react';\ntype TableSize = 'sm' | 'md';\nexport type TableProps = ComponentPropsWithoutRef<'table'> & {\n size?: TableSize;\n};\nexport declare const Table: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, \"ref\"> & {\n size?: TableSize;\n} & import(\"react\").RefAttributes<HTMLTableElement>>;\nexport declare const TableCaption: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLElement>, HTMLElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLTableCaptionElement>>;\nexport declare const TableHeader: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLTableSectionElement>>;\nexport declare const TableBody: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLTableSectionElement>>;\nexport declare const TableFooter: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLTableSectionElement>>;\nexport declare const TableRow: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLTableRowElement>>;\nexport declare const TableColumnHeader: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLTableCellElement>>;\nexport declare const TableCell: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLTableCellElement>>;\nexport declare const Thead: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLTableSectionElement>>;\nexport declare const Tbody: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLTableSectionElement>>;\nexport declare const Tfoot: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLTableSectionElement>>;\nexport declare const Tr: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLTableRowElement>>;\nexport declare const Th: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLTableCellElement>>;\nexport declare const Td: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLTableCellElement>>;\nexport {};\n//# sourceMappingURL=Table.d.ts.map",
1181
+ "examples": [
1182
+ {
1183
+ "name": "Default",
1184
+ "code": "export const Default: Story = {\n render: (args: TableProps) => (\n <Table {...args}>\n <TableCaption>Semantic table markup. Aliases: Thead, Tbody, Tr, Th, Td.</TableCaption>\n <Thead>\n <Tr>\n <Th>Name</Th>\n <Th>Status</Th>\n <Th>Count</Th>\n </Tr>\n </Thead>\n <Tbody>\n <Tr>\n <Td>Alpha</Td>\n <Td>Open</Td>\n <Td>40</Td>\n </Tr>\n <Tr>\n <Td>Beta</Td>\n <Td>Closed</Td>\n <Td>12</Td>\n </Tr>\n </Tbody>\n <Tfoot>\n <Tr>\n <Th>Total</Th>\n <Td colSpan={2}>52</Td>\n </Tr>\n </Tfoot>\n </Table>\n ),\n};"
1185
+ },
1186
+ {
1187
+ "name": "Sizes",
1188
+ "code": "export const Sizes: Story = {\n render: () => (\n <Stack gap=\"lg\">\n <Table size=\"sm\">\n <Thead>\n <Tr>\n <Th>Small</Th>\n <Th>Count</Th>\n </Tr>\n </Thead>\n <Tbody>\n <Tr>\n <Td>Alpha</Td>\n <Td>4</Td>\n </Tr>\n </Tbody>\n </Table>\n <Table size=\"md\">\n <Thead>\n <Tr>\n <Th>Medium</Th>\n <Th>Count</Th>\n </Tr>\n </Thead>\n <Tbody>\n <Tr>\n <Td>Beta</Td>\n <Td>12</Td>\n </Tr>\n </Tbody>\n </Table>\n </Stack>\n ),\n};"
1189
+ }
1190
+ ]
1191
+ },
1192
+ {
1193
+ "name": "Spinner",
1194
+ "file": "Spinner",
1195
+ "exports": [
1196
+ "Spinner"
1197
+ ],
1198
+ "hooks": [],
1199
+ "types": [],
1200
+ "group": "Feedback",
1201
+ "storyTitle": "Feedback/Spinner",
1202
+ "client": false,
1203
+ "summary": null,
1204
+ "recipe": "spinner",
1205
+ "variants": {
1206
+ "size": [
1207
+ "sm",
1208
+ "md",
1209
+ "lg"
1210
+ ]
1211
+ },
1212
+ "dts": "import { type ComponentPropsWithoutRef } from 'react';\ntype SpinnerSize = 'sm' | 'md' | 'lg';\nexport type SpinnerProps = ComponentPropsWithoutRef<'span'> & {\n size?: SpinnerSize;\n};\nexport declare const Spinner: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, \"ref\"> & {\n size?: SpinnerSize;\n} & import(\"react\").RefAttributes<HTMLSpanElement>>;\nexport {};\n//# sourceMappingURL=Spinner.d.ts.map",
1213
+ "examples": [
1214
+ {
1215
+ "name": "Default",
1216
+ "code": "export const Default: Story = {};"
1217
+ },
1218
+ {
1219
+ "name": "Sizes",
1220
+ "code": "export const Sizes: Story = {\n render: () => (\n <HStack gap=\"md\">\n <Spinner size=\"sm\" />\n <Spinner size=\"md\" />\n <Spinner size=\"lg\" />\n </HStack>\n ),\n};"
1221
+ }
1222
+ ]
1223
+ },
1224
+ {
1225
+ "name": "Icon",
1226
+ "file": "Icon",
1227
+ "exports": [
1228
+ "Icon"
1229
+ ],
1230
+ "hooks": [],
1231
+ "types": [
1232
+ "IconProps"
1233
+ ],
1234
+ "group": "Data Display",
1235
+ "storyTitle": "Data Display/Icon",
1236
+ "client": false,
1237
+ "summary": null,
1238
+ "recipe": "icon",
1239
+ "variants": {
1240
+ "size": [
1241
+ "sm",
1242
+ "md",
1243
+ "lg",
1244
+ "xl"
1245
+ ]
1246
+ },
1247
+ "dts": "import { type ComponentPropsWithoutRef, type ReactNode } from 'react';\ntype IconSize = 'sm' | 'md' | 'lg' | 'xl';\nexport type IconProps = Omit<ComponentPropsWithoutRef<'span'>, 'children'> & {\n /** sm 1rem, md 1.25rem, lg 1.5rem, xl 2rem. */\n size?: IconSize;\n /** Accessible name. Without it the icon is decorative and hidden from assistive tech. */\n label?: string;\n /** One inline `<svg>`, drawn with `currentColor`. */\n children: ReactNode;\n};\nexport declare const Icon: import(\"react\").ForwardRefExoticComponent<Omit<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, \"ref\">, \"children\"> & {\n /** sm 1rem, md 1.25rem, lg 1.5rem, xl 2rem. */\n size?: IconSize;\n /** Accessible name. Without it the icon is decorative and hidden from assistive tech. */\n label?: string;\n /** One inline `<svg>`, drawn with `currentColor`. */\n children: ReactNode;\n} & import(\"react\").RefAttributes<HTMLSpanElement>>;\nexport {};\n//# sourceMappingURL=Icon.d.ts.map",
1248
+ "examples": [
1249
+ {
1250
+ "name": "Default",
1251
+ "code": "export const Default: Story = {\n render: (args) => (\n <Icon {...args} label=\"Favorite\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth={2} strokeLinejoin=\"round\">\n <path d=\"M12 3l2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3 6.4 20.2l1.1-6.2L3 9.6l6.2-.9L12 3z\" />\n </svg>\n </Icon>\n ),\n};"
1252
+ },
1253
+ {
1254
+ "name": "Glyphs",
1255
+ "code": "export const Glyphs: Story = {\n render: () => (\n <Flex wrap=\"wrap\" gap=\"lg\">\n {GLYPHS.map(([name, Glyph]) => (\n <VStack key={name} gap=\"xs\" align=\"center\">\n <Glyph size=\"lg\" />\n <Text fontSize=\"xs\" color=\"muted\">\n {name}\n </Text>\n </VStack>\n ))}\n </Flex>\n ),\n};"
1256
+ },
1257
+ {
1258
+ "name": "Sizes",
1259
+ "code": "export const Sizes: Story = {\n render: () => (\n <HStack gap=\"md\" align=\"center\">\n {iconRecipe.variantMap.size.map((size) => (\n <SearchIcon key={size} size={size} />\n ))}\n </HStack>\n ),\n};"
1260
+ },
1261
+ {
1262
+ "name": "InText",
1263
+ "code": "export const InText: Story = {\n render: () => (\n <VStack gap=\"sm\">\n <Link href=\"https://github.com/kolmenadev/becket-ui\">\n Source on GitHub <ExternalLinkIcon size=\"sm\" />\n </Link>\n <Text color=\"muted\">\n <InfoIcon size=\"sm\" /> Muted text, muted icon.\n </Text>\n </VStack>\n ),\n};"
1264
+ }
1265
+ ]
1266
+ },
1267
+ {
1268
+ "name": "Glyphs",
1269
+ "file": "Glyphs",
1270
+ "exports": [
1271
+ "CheckIcon",
1272
+ "ChevronDownIcon",
1273
+ "ChevronRightIcon",
1274
+ "CloseIcon",
1275
+ "CopyIcon",
1276
+ "ExternalLinkIcon",
1277
+ "InfoIcon",
1278
+ "LinkIcon",
1279
+ "MenuIcon",
1280
+ "MoonIcon",
1281
+ "SearchIcon",
1282
+ "SunIcon",
1283
+ "WarningIcon"
1284
+ ],
1285
+ "hooks": [],
1286
+ "types": [
1287
+ "GlyphProps"
1288
+ ],
1289
+ "group": null,
1290
+ "storyTitle": null,
1291
+ "client": false,
1292
+ "summary": null,
1293
+ "recipe": null,
1294
+ "variants": null,
1295
+ "dts": "import { type IconProps } from './Icon.js';\nexport type GlyphProps = Omit<IconProps, 'children'>;\nexport declare const ChevronDownIcon: import(\"react\").ForwardRefExoticComponent<GlyphProps & import(\"react\").RefAttributes<HTMLSpanElement>>;\nexport declare const ChevronRightIcon: import(\"react\").ForwardRefExoticComponent<GlyphProps & import(\"react\").RefAttributes<HTMLSpanElement>>;\nexport declare const CloseIcon: import(\"react\").ForwardRefExoticComponent<GlyphProps & import(\"react\").RefAttributes<HTMLSpanElement>>;\nexport declare const MenuIcon: import(\"react\").ForwardRefExoticComponent<GlyphProps & import(\"react\").RefAttributes<HTMLSpanElement>>;\nexport declare const CheckIcon: import(\"react\").ForwardRefExoticComponent<GlyphProps & import(\"react\").RefAttributes<HTMLSpanElement>>;\nexport declare const CopyIcon: import(\"react\").ForwardRefExoticComponent<GlyphProps & import(\"react\").RefAttributes<HTMLSpanElement>>;\nexport declare const ExternalLinkIcon: import(\"react\").ForwardRefExoticComponent<GlyphProps & import(\"react\").RefAttributes<HTMLSpanElement>>;\nexport declare const LinkIcon: import(\"react\").ForwardRefExoticComponent<GlyphProps & import(\"react\").RefAttributes<HTMLSpanElement>>;\nexport declare const SearchIcon: import(\"react\").ForwardRefExoticComponent<GlyphProps & import(\"react\").RefAttributes<HTMLSpanElement>>;\nexport declare const SunIcon: import(\"react\").ForwardRefExoticComponent<GlyphProps & import(\"react\").RefAttributes<HTMLSpanElement>>;\nexport declare const MoonIcon: import(\"react\").ForwardRefExoticComponent<GlyphProps & import(\"react\").RefAttributes<HTMLSpanElement>>;\nexport declare const InfoIcon: import(\"react\").ForwardRefExoticComponent<GlyphProps & import(\"react\").RefAttributes<HTMLSpanElement>>;\nexport declare const WarningIcon: import(\"react\").ForwardRefExoticComponent<GlyphProps & import(\"react\").RefAttributes<HTMLSpanElement>>;\n//# sourceMappingURL=Glyphs.d.ts.map",
1296
+ "examples": []
1297
+ },
1298
+ {
1299
+ "name": "Link",
1300
+ "file": "Link",
1301
+ "exports": [
1302
+ "Link"
1303
+ ],
1304
+ "hooks": [],
1305
+ "types": [],
1306
+ "group": "Typography",
1307
+ "storyTitle": "Typography/Link",
1308
+ "client": false,
1309
+ "summary": null,
1310
+ "recipe": "link",
1311
+ "variants": {
1312
+ "visual": [
1313
+ "default",
1314
+ "muted"
1315
+ ],
1316
+ "visited": [
1317
+ "true",
1318
+ "false"
1319
+ ]
1320
+ },
1321
+ "dts": "import { type ComponentPropsWithoutRef, type ElementType } from 'react';\ntype LinkVisual = 'default' | 'muted';\nexport type LinkProps = ComponentPropsWithoutRef<'a'> & {\n visual?: LinkVisual;\n visited?: boolean;\n as?: ElementType;\n};\nexport declare const Link: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, \"ref\"> & {\n visual?: LinkVisual;\n visited?: boolean;\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLAnchorElement>>;\nexport {};\n//# sourceMappingURL=Link.d.ts.map",
1322
+ "examples": [
1323
+ {
1324
+ "name": "Default",
1325
+ "code": "export const Default: Story = {};"
1326
+ },
1327
+ {
1328
+ "name": "Muted",
1329
+ "code": "export const Muted: Story = {\n args: { visual: 'muted', children: 'Muted link' },\n};"
1330
+ },
1331
+ {
1332
+ "name": "InText",
1333
+ "code": "export const InText: Story = {\n render: () => (\n <Stack gap=\"sm\">\n <Text>\n Inline <Link href=\"#\">primary link</Link> with a focus ring.\n </Text>\n <Text>\n Optional <Link href=\"#\" visited>\n visited\n </Link>{' '}\n styling.\n </Text>\n </Stack>\n ),\n};"
1334
+ }
1335
+ ]
1336
+ },
1337
+ {
1338
+ "name": "Prose",
1339
+ "file": "Prose",
1340
+ "exports": [
1341
+ "Prose"
1342
+ ],
1343
+ "hooks": [],
1344
+ "types": [
1345
+ "ProseProps"
1346
+ ],
1347
+ "group": "Typography",
1348
+ "storyTitle": "Typography/Prose",
1349
+ "client": false,
1350
+ "summary": "Styles HTML from Markdown or MDX with Becket tokens. CSS only, no JS.\nWrap embedded components in `data-not-prose` to keep their own styles.",
1351
+ "recipe": "prose",
1352
+ "variants": {
1353
+ "size": [
1354
+ "sm",
1355
+ "md",
1356
+ "lg"
1357
+ ]
1358
+ },
1359
+ "dts": "import { type ComponentPropsWithoutRef, type ElementType } from 'react';\ntype ProseSize = 'sm' | 'md' | 'lg';\nexport type ProseProps = ComponentPropsWithoutRef<'div'> & {\n /** Base text size; headings, spacing and code scale with it. */\n size?: ProseSize;\n /** Usually `article` for a blog post. */\n as?: ElementType;\n};\n/**\n * Styles HTML from Markdown or MDX with Becket tokens. CSS only, no JS.\n * Wrap embedded components in `data-not-prose` to keep their own styles.\n */\nexport declare const Prose: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & {\n /** Base text size; headings, spacing and code scale with it. */\n size?: ProseSize;\n /** Usually `article` for a blog post. */\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport {};\n//# sourceMappingURL=Prose.d.ts.map",
1360
+ "examples": [
1361
+ {
1362
+ "name": "Article",
1363
+ "code": "export const Article: Story = {\n render: (args) => (\n <Prose {...args} as=\"article\">\n <h1>Designing with Becket in Claude Design</h1>\n <p>\n Becket is a <strong>native-first</strong> design system. This post walks through the <a href=\"#setup\">setup</a>,\n the <em>agent guide</em> and the handoff to code. Press <kbd>⌘</kbd> <kbd>K</kbd> to search, and look for{' '}\n <mark>highlighted</mark> terms.\n </p>\n <h2 id=\"setup\">Setup</h2>\n <p>\n Install both packages and import <code>@becket-ui/tokens/index.css</code> once:\n </p>\n <pre>\n <code>{`pnpm add @becket-ui/react @becket-ui/tokens\n\nimport '@becket-ui/tokens/index.css';`}</code>\n </pre>\n <ul>\n <li>No provider and no theme wrapper.</li>\n <li>\n Theme lives on <code>&lt;html data-theme&gt;</code>:\n <ul>\n <li>dark by default</li>\n <li>light on request</li>\n </ul>\n </li>\n </ul>\n <ol>\n <li>Sync the design system.</li>\n <li>Prompt a screen.</li>\n <li>Hand off to Claude Code.</li>\n </ol>\n <blockquote>\n <p>Every visual decision is a prop with a token value.</p>\n </blockquote>\n <h3>Tokens at a glance</h3>\n <table>\n <thead>\n <tr>\n <th>Token</th>\n <th>Value</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>\n <code>gap=&quot;md&quot;</code>\n </td>\n <td>0.75rem</td>\n </tr>\n <tr>\n <td>\n <code>gap=&quot;xl&quot;</code>\n </td>\n <td>2rem</td>\n </tr>\n </tbody>\n </table>\n <hr />\n <dl>\n <dt>Prose</dt>\n <dd>Styles content you don&apos;t write as components.</dd>\n </dl>\n </Prose>\n ),\n};"
1364
+ },
1365
+ {
1366
+ "name": "Sizes",
1367
+ "code": "export const Sizes: Story = {\n render: () => (\n <>\n {proseRecipe.variantMap.size.map((size) => (\n <Prose key={size} size={size}>\n <h3>size=&quot;{size}&quot;</h3>\n <p>\n Headings, spacing and <code>code</code> scale with the base size.\n </p>\n </Prose>\n ))}\n </>\n ),\n};"
1368
+ },
1369
+ {
1370
+ "name": "WithComponents",
1371
+ "code": "export const WithComponents: Story = {\n render: () => (\n <Prose>\n <p>A post can embed Becket components:</p>\n <div data-not-prose>\n <Card visual=\"outline\">\n <CardHeader>\n <CardTitle>Release 0.2.0</CardTitle>\n <Badge visual=\"primary\" size=\"sm\">\n New\n </Badge>\n </CardHeader>\n <CardBody>\n <Text fontSize=\"sm\" color=\"muted\">\n Container, Box and Icon.\n </Text>\n </CardBody>\n </Card>\n </div>\n <p>The text after it is styled by Prose again.</p>\n </Prose>\n ),\n};"
1372
+ }
1373
+ ]
1374
+ },
1375
+ {
1376
+ "name": "List",
1377
+ "file": "List",
1378
+ "exports": [
1379
+ "List",
1380
+ "ListItem"
1381
+ ],
1382
+ "hooks": [],
1383
+ "types": [
1384
+ "ListProps",
1385
+ "ListItemProps"
1386
+ ],
1387
+ "group": "Typography",
1388
+ "storyTitle": "Typography/List",
1389
+ "client": false,
1390
+ "summary": null,
1391
+ "recipe": "list",
1392
+ "variants": {
1393
+ "spacing": [
1394
+ "xs",
1395
+ "sm",
1396
+ "md"
1397
+ ],
1398
+ "marker": [
1399
+ "disc",
1400
+ "decimal",
1401
+ "none"
1402
+ ]
1403
+ },
1404
+ "dts": "import { type ComponentPropsWithoutRef } from 'react';\ntype ListSpacing = 'xs' | 'sm' | 'md';\ntype ListMarker = 'disc' | 'decimal' | 'none';\nexport type ListProps = ComponentPropsWithoutRef<'ul'> & {\n /** `ol` for ordered steps; defaults the marker to decimal. */\n as?: 'ul' | 'ol';\n spacing?: ListSpacing;\n marker?: ListMarker;\n};\nexport declare const List: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, \"ref\"> & {\n /** `ol` for ordered steps; defaults the marker to decimal. */\n as?: 'ul' | 'ol';\n spacing?: ListSpacing;\n marker?: ListMarker;\n} & import(\"react\").RefAttributes<HTMLUListElement & HTMLOListElement>>;\nexport type ListItemProps = ComponentPropsWithoutRef<'li'>;\nexport declare const ListItem: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLLIElement>>;\nexport {};\n//# sourceMappingURL=List.d.ts.map",
1405
+ "examples": [
1406
+ {
1407
+ "name": "Default",
1408
+ "code": "export const Default: Story = {\n render: (args) => (\n <List {...args}>\n <ListItem>No provider and no theme wrapper</ListItem>\n <ListItem>One CSS import</ListItem>\n <ListItem>Theme on the html element</ListItem>\n </List>\n ),\n};"
1409
+ },
1410
+ {
1411
+ "name": "Ordered",
1412
+ "code": "export const Ordered: Story = {\n render: () => (\n <List as=\"ol\">\n <ListItem>Install the packages</ListItem>\n <ListItem>Import the CSS</ListItem>\n <ListItem>Build a screen</ListItem>\n </List>\n ),\n};"
1413
+ },
1414
+ {
1415
+ "name": "Unstyled",
1416
+ "code": "export const Unstyled: Story = {\n render: () => (\n <List marker=\"none\" spacing=\"md\">\n <ListItem>Docs</ListItem>\n <ListItem>Blog</ListItem>\n <ListItem>GitHub</ListItem>\n </List>\n ),\n};"
1417
+ }
1418
+ ]
1419
+ },
1420
+ {
1421
+ "name": "Code",
1422
+ "file": "Code",
1423
+ "exports": [
1424
+ "Code"
1425
+ ],
1426
+ "hooks": [],
1427
+ "types": [],
1428
+ "group": "Typography",
1429
+ "storyTitle": "Typography/Code",
1430
+ "client": false,
1431
+ "summary": "Inline code. Use CodeBlock (MAV-114) for multi-line code.",
1432
+ "recipe": "code",
1433
+ "variants": {},
1434
+ "dts": "import { type ComponentPropsWithoutRef } from 'react';\nexport type CodeProps = ComponentPropsWithoutRef<'code'>;\n/** Inline code. Use CodeBlock (MAV-114) for multi-line code. */\nexport declare const Code: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLElement>, HTMLElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLElement>>;\n//# sourceMappingURL=Code.d.ts.map",
1435
+ "examples": [
1436
+ {
1437
+ "name": "Default",
1438
+ "code": "export const Default: Story = {\n render: () => (\n <Text>\n Import <Code>@becket-ui/tokens/index.css</Code> once at the app entry.\n </Text>\n ),\n};"
1439
+ }
1440
+ ]
1441
+ },
1442
+ {
1443
+ "name": "Kbd",
1444
+ "file": "Kbd",
1445
+ "exports": [
1446
+ "Kbd"
1447
+ ],
1448
+ "hooks": [],
1449
+ "types": [],
1450
+ "group": "Typography",
1451
+ "storyTitle": "Typography/Kbd",
1452
+ "client": false,
1453
+ "summary": "A keyboard key or shortcut, e.g. <Kbd>⌘</Kbd> <Kbd>K</Kbd>.",
1454
+ "recipe": "kbd",
1455
+ "variants": {},
1456
+ "dts": "import { type ComponentPropsWithoutRef } from 'react';\nexport type KbdProps = ComponentPropsWithoutRef<'kbd'>;\n/** A keyboard key or shortcut, e.g. <Kbd>⌘</Kbd> <Kbd>K</Kbd>. */\nexport declare const Kbd: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLElement>, HTMLElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLElement>>;\n//# sourceMappingURL=Kbd.d.ts.map",
1457
+ "examples": [
1458
+ {
1459
+ "name": "Default",
1460
+ "code": "export const Default: Story = {\n render: () => (\n <Text>\n Press <Kbd>⌘</Kbd> <Kbd>K</Kbd> to search, or <Kbd>Esc</Kbd> to close.\n </Text>\n ),\n};"
1461
+ }
1462
+ ]
1463
+ },
1464
+ {
1465
+ "name": "Mark",
1466
+ "file": "Mark",
1467
+ "exports": [
1468
+ "Mark"
1469
+ ],
1470
+ "hooks": [],
1471
+ "types": [],
1472
+ "group": "Typography",
1473
+ "storyTitle": "Typography/Mark",
1474
+ "client": false,
1475
+ "summary": "Highlighted text.",
1476
+ "recipe": "mark",
1477
+ "variants": {},
1478
+ "dts": "import { type ComponentPropsWithoutRef } from 'react';\nexport type MarkProps = ComponentPropsWithoutRef<'mark'>;\n/** Highlighted text. */\nexport declare const Mark: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLElement>, HTMLElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLElement>>;\n//# sourceMappingURL=Mark.d.ts.map",
1479
+ "examples": [
1480
+ {
1481
+ "name": "Default",
1482
+ "code": "export const Default: Story = {\n render: () => (\n <Text>\n Search results show the <Mark>matching words</Mark> highlighted.\n </Text>\n ),\n};"
1483
+ }
1484
+ ]
1485
+ },
1486
+ {
1487
+ "name": "Blockquote",
1488
+ "file": "Blockquote",
1489
+ "exports": [
1490
+ "Blockquote",
1491
+ "BlockquoteCaption"
1492
+ ],
1493
+ "hooks": [],
1494
+ "types": [
1495
+ "BlockquoteProps",
1496
+ "BlockquoteCaptionProps"
1497
+ ],
1498
+ "group": "Typography",
1499
+ "storyTitle": "Typography/Blockquote",
1500
+ "client": false,
1501
+ "summary": "A quotation. Renders <figure><blockquote/><figcaption/></figure> so the caption\n(who said it) sits outside the quote, as HTML requires.",
1502
+ "recipe": "blockquote",
1503
+ "variants": {},
1504
+ "dts": "import { type ComponentPropsWithoutRef, type ReactNode } from 'react';\nexport type BlockquoteProps = ComponentPropsWithoutRef<'figure'> & {\n /** URL of the source, set on the <blockquote cite> attribute. */\n cite?: string;\n children?: ReactNode;\n};\nexport type BlockquoteCaptionProps = ComponentPropsWithoutRef<'figcaption'>;\nexport declare const BlockquoteCaption: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLElement>, HTMLElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLElement>>;\n/**\n * A quotation. Renders <figure><blockquote/><figcaption/></figure> so the caption\n * (who said it) sits outside the quote, as HTML requires.\n */\nexport declare const Blockquote: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLElement>, HTMLElement>, \"ref\"> & {\n /** URL of the source, set on the <blockquote cite> attribute. */\n cite?: string;\n children?: ReactNode;\n} & import(\"react\").RefAttributes<HTMLElement>>;\n//# sourceMappingURL=Blockquote.d.ts.map",
1505
+ "examples": [
1506
+ {
1507
+ "name": "Default",
1508
+ "code": "export const Default: Story = {\n render: () => (\n <Blockquote>\n <p>Every visual decision is a prop with a token value.</p>\n </Blockquote>\n ),\n};"
1509
+ },
1510
+ {
1511
+ "name": "WithCaption",
1512
+ "code": "export const WithCaption: Story = {\n render: () => (\n <Blockquote cite=\"https://github.com/kolmenadev/becket-ui\">\n <p>We shipped the marketing site without a single third-party UI library.</p>\n <BlockquoteCaption>Becket team, release notes</BlockquoteCaption>\n </Blockquote>\n ),\n};"
1513
+ }
1514
+ ]
1515
+ },
1516
+ {
1517
+ "name": "Image",
1518
+ "file": "Image",
1519
+ "exports": [
1520
+ "Image"
1521
+ ],
1522
+ "hooks": [],
1523
+ "types": [
1524
+ "ImageProps"
1525
+ ],
1526
+ "group": "Data Display",
1527
+ "storyTitle": "Data Display/Image",
1528
+ "client": false,
1529
+ "summary": "Native <img>: lazy-loaded and async-decoded by default, no JS.",
1530
+ "recipe": "image",
1531
+ "variants": {
1532
+ "fit": [
1533
+ "cover",
1534
+ "contain"
1535
+ ],
1536
+ "radius": [
1537
+ "none",
1538
+ "sm",
1539
+ "md",
1540
+ "lg",
1541
+ "xl",
1542
+ "full"
1543
+ ]
1544
+ },
1545
+ "dts": "import { type ComponentPropsWithoutRef } from 'react';\ntype ImageFit = 'cover' | 'contain';\ntype ImageRadius = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';\nexport type ImageProps = Omit<ComponentPropsWithoutRef<'img'>, 'alt'> & {\n /** Required. Describe the image, or pass \"\" when it's purely decorative. */\n alt: string;\n fit?: ImageFit;\n radius?: ImageRadius;\n};\n/** Native <img>: lazy-loaded and async-decoded by default, no JS. */\nexport declare const Image: import(\"react\").ForwardRefExoticComponent<Omit<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, \"ref\">, \"alt\"> & {\n /** Required. Describe the image, or pass \"\" when it's purely decorative. */\n alt: string;\n fit?: ImageFit;\n radius?: ImageRadius;\n} & import(\"react\").RefAttributes<HTMLImageElement>>;\nexport {};\n//# sourceMappingURL=Image.d.ts.map",
1546
+ "examples": [
1547
+ {
1548
+ "name": "Default",
1549
+ "code": "export const Default: Story = {\n render: (args) => <Image {...args} src={SAMPLE_LANDSCAPE} alt=\"Mountains at sunset\" width={320} />,\n};"
1550
+ },
1551
+ {
1552
+ "name": "Radii",
1553
+ "code": "export const Radii: Story = {\n render: () => (\n <SimpleGrid columns={3} gap=\"md\">\n {(['none', 'md', 'xl'] as const).map((radius) => (\n <Image key={radius} src={SAMPLE_LANDSCAPE} alt={`Radius ${radius}`} radius={radius} />\n ))}\n </SimpleGrid>\n ),\n};"
1554
+ }
1555
+ ]
1556
+ },
1557
+ {
1558
+ "name": "Figure",
1559
+ "file": "Figure",
1560
+ "exports": [
1561
+ "Figure"
1562
+ ],
1563
+ "hooks": [],
1564
+ "types": [
1565
+ "FigureProps"
1566
+ ],
1567
+ "group": "Data Display",
1568
+ "storyTitle": "Data Display/Figure",
1569
+ "client": false,
1570
+ "summary": "Image, chart or code with a caption.",
1571
+ "recipe": "figure",
1572
+ "variants": {},
1573
+ "dts": "import { type ComponentPropsWithoutRef, type ReactNode } from 'react';\nexport type FigureProps = ComponentPropsWithoutRef<'figure'> & {\n /** Rendered as <figcaption> after the content. */\n caption?: ReactNode;\n};\n/** Image, chart or code with a caption. */\nexport declare const Figure: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLElement>, HTMLElement>, \"ref\"> & {\n /** Rendered as <figcaption> after the content. */\n caption?: ReactNode;\n} & import(\"react\").RefAttributes<HTMLElement>>;\n//# sourceMappingURL=Figure.d.ts.map",
1574
+ "examples": [
1575
+ {
1576
+ "name": "Default",
1577
+ "code": "export const Default: Story = {\n render: () => (\n <Figure caption=\"Sunset over the range, March 2026.\" style={{ maxWidth: 'var(--beckui--sizes-md)' }}>\n <Image src={SAMPLE_LANDSCAPE} alt=\"Mountains at sunset\" radius=\"md\" />\n </Figure>\n ),\n};"
1578
+ }
1579
+ ]
1580
+ },
1581
+ {
1582
+ "name": "Avatar",
1583
+ "file": "Avatar",
1584
+ "exports": [
1585
+ "Avatar"
1586
+ ],
1587
+ "hooks": [],
1588
+ "types": [
1589
+ "AvatarProps"
1590
+ ],
1591
+ "group": "Data Display",
1592
+ "storyTitle": "Data Display/Avatar",
1593
+ "client": true,
1594
+ "summary": "Photo or initials in a circle. Renders without JS; client JS only swaps to\nthe initials when the photo fails to load.",
1595
+ "recipe": "avatar",
1596
+ "variants": {
1597
+ "size": [
1598
+ "sm",
1599
+ "md",
1600
+ "lg",
1601
+ "xl"
1602
+ ]
1603
+ },
1604
+ "dts": "import { type ComponentPropsWithoutRef } from 'react';\ntype AvatarSize = 'sm' | 'md' | 'lg' | 'xl';\nexport type AvatarProps = Omit<ComponentPropsWithoutRef<'span'>, 'children'> & {\n /** The person's name: the accessible name and the source of the initials. */\n name: string;\n /** Photo URL. Without it, or if it fails to load, the initials show. */\n src?: string;\n /** Fibonacci steps: 20, 32, 52 or 84px. Default `md`. */\n size?: AvatarSize;\n};\n/**\n * Photo or initials in a circle. Renders without JS; client JS only swaps to\n * the initials when the photo fails to load.\n */\nexport declare const Avatar: import(\"react\").ForwardRefExoticComponent<Omit<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, \"ref\">, \"children\"> & {\n /** The person's name: the accessible name and the source of the initials. */\n name: string;\n /** Photo URL. Without it, or if it fails to load, the initials show. */\n src?: string;\n /** Fibonacci steps: 20, 32, 52 or 84px. Default `md`. */\n size?: AvatarSize;\n} & import(\"react\").RefAttributes<HTMLSpanElement>>;\nexport {};\n//# sourceMappingURL=Avatar.d.ts.map",
1605
+ "examples": [
1606
+ {
1607
+ "name": "Default",
1608
+ "code": "export const Default: Story = { render: (args) => <Avatar {...args} src={SAMPLE_PORTRAIT} /> };"
1609
+ },
1610
+ {
1611
+ "name": "Initials",
1612
+ "code": "export const Initials: Story = { render: (args) => <Avatar {...args} /> };"
1613
+ },
1614
+ {
1615
+ "name": "Sizes",
1616
+ "code": "export const Sizes: Story = {\n render: () => (\n <HStack gap=\"sm\" align=\"center\">\n {avatarRecipe.variantMap.size.map((size) => (\n <Avatar key={size} name=\"Grace Hopper\" size={size} />\n ))}\n <Avatar name=\"Alan Turing\" size=\"lg\" src={SAMPLE_PORTRAIT} />\n </HStack>\n ),\n};"
1617
+ }
1618
+ ]
1619
+ },
1620
+ {
1621
+ "name": "SkipLink",
1622
+ "file": "SkipLink",
1623
+ "exports": [
1624
+ "SkipLink"
1625
+ ],
1626
+ "hooks": [],
1627
+ "types": [],
1628
+ "group": "Accessibility",
1629
+ "storyTitle": "Accessibility/SkipLink",
1630
+ "client": false,
1631
+ "summary": "First focusable element on the page: lets keyboard users jump past the\nnavigation. Hidden until focused. Point `href` at the main landmark's id.",
1632
+ "recipe": "skipLink",
1633
+ "variants": {},
1634
+ "dts": "import { type ComponentPropsWithoutRef } from 'react';\nexport type SkipLinkProps = ComponentPropsWithoutRef<'a'>;\n/**\n * First focusable element on the page: lets keyboard users jump past the\n * navigation. Hidden until focused. Point `href` at the main landmark's id.\n */\nexport declare const SkipLink: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, \"ref\"> & import(\"react\").RefAttributes<HTMLAnchorElement>>;\n//# sourceMappingURL=SkipLink.d.ts.map",
1635
+ "examples": [
1636
+ {
1637
+ "name": "Default",
1638
+ "code": "export const Default: Story = {\n render: () => (\n <>\n <SkipLink href=\"#story-main\" />\n <Text color=\"muted\">Press Tab: the skip link appears at the top left.</Text>\n <main id=\"story-main\" />\n </>\n ),\n};"
1639
+ }
1640
+ ]
1641
+ },
1642
+ {
1643
+ "name": "VisuallyHidden",
1644
+ "file": "VisuallyHidden",
1645
+ "exports": [
1646
+ "VisuallyHidden"
1647
+ ],
1648
+ "hooks": [],
1649
+ "types": [],
1650
+ "group": "Accessibility",
1651
+ "storyTitle": "Accessibility/VisuallyHidden",
1652
+ "client": false,
1653
+ "summary": "Text for screen readers only, e.g. a label for an icon-only control.",
1654
+ "recipe": "visuallyHidden",
1655
+ "variants": {},
1656
+ "dts": "import { type ComponentPropsWithoutRef, type ElementType } from 'react';\nexport type VisuallyHiddenProps = ComponentPropsWithoutRef<'span'> & {\n as?: ElementType;\n};\n/** Text for screen readers only, e.g. a label for an icon-only control. */\nexport declare const VisuallyHidden: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, \"ref\"> & {\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLElement>>;\n//# sourceMappingURL=VisuallyHidden.d.ts.map",
1657
+ "examples": [
1658
+ {
1659
+ "name": "Default",
1660
+ "code": "export const Default: Story = {\n render: () => (\n <Button visual=\"neutral\">\n <CloseIcon />\n <VisuallyHidden>Close dialog</VisuallyHidden>\n </Button>\n ),\n};"
1661
+ }
1662
+ ]
1663
+ },
1664
+ {
1665
+ "name": "Center",
1666
+ "file": "Center",
1667
+ "exports": [
1668
+ "Center"
1669
+ ],
1670
+ "hooks": [],
1671
+ "types": [
1672
+ "CenterProps"
1673
+ ],
1674
+ "group": "Layout",
1675
+ "storyTitle": "Layout/Center",
1676
+ "client": false,
1677
+ "summary": null,
1678
+ "recipe": "center",
1679
+ "variants": {
1680
+ "inline": [
1681
+ "true",
1682
+ "false"
1683
+ ]
1684
+ },
1685
+ "dts": "import { type ComponentPropsWithoutRef, type ElementType } from 'react';\nexport type CenterProps = ComponentPropsWithoutRef<'div'> & {\n /** inline-flex instead of flex, e.g. to center an icon inside text. */\n inline?: boolean;\n as?: ElementType;\n};\nexport declare const Center: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & {\n /** inline-flex instead of flex, e.g. to center an icon inside text. */\n inline?: boolean;\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLDivElement>>;\n//# sourceMappingURL=Center.d.ts.map",
1686
+ "examples": [
1687
+ {
1688
+ "name": "Default",
1689
+ "code": "export const Default: Story = {\n render: () => (\n <Box background=\"subtle\" radius=\"md\">\n <Center style={{ minHeight: 'var(--beckui--sizes-34)' }}>\n <Text>Centered on both axes</Text>\n </Center>\n </Box>\n ),\n};"
1690
+ },
1691
+ {
1692
+ "name": "Inline",
1693
+ "code": "export const Inline: Story = {\n render: () => (\n <Text>\n Search{' '}\n <Center inline>\n <SearchIcon size=\"sm\" />\n </Center>{' '}\n in the header.\n </Text>\n ),\n};"
1694
+ }
1695
+ ]
1696
+ },
1697
+ {
1698
+ "name": "Grid",
1699
+ "file": "Grid",
1700
+ "exports": [
1701
+ "Grid",
1702
+ "GridItem"
1703
+ ],
1704
+ "hooks": [],
1705
+ "types": [
1706
+ "GridProps",
1707
+ "GridItemProps"
1708
+ ],
1709
+ "group": "Layout",
1710
+ "storyTitle": "Layout/Grid",
1711
+ "client": false,
1712
+ "summary": "12-column layout grid. For equal tiles, SimpleGrid is simpler.",
1713
+ "recipe": null,
1714
+ "variants": null,
1715
+ "dts": "import { type ComponentPropsWithoutRef, type ElementType } from 'react';\nimport { type GapValue, type ResponsiveValue } from '../helpers/responsive.js';\ntype Columns = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\ntype Span = Columns | 'full';\nexport type GridProps = ComponentPropsWithoutRef<'div'> & {\n /** Column count, 1–12, or per breakpoint: { base: 1, md: 12 }. */\n columns?: ResponsiveValue<Columns>;\n gap?: GapValue;\n as?: ElementType;\n};\nexport type GridItemProps = ComponentPropsWithoutRef<'div'> & {\n /** Columns to span, 1–12 or \"full\", or per breakpoint: { base: 'full', md: 6 }. */\n colSpan?: ResponsiveValue<Span>;\n as?: ElementType;\n};\n/** 12-column layout grid. For equal tiles, SimpleGrid is simpler. */\nexport declare const Grid: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & {\n /** Column count, 1–12, or per breakpoint: { base: 1, md: 12 }. */\n columns?: ResponsiveValue<Columns>;\n gap?: GapValue;\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport declare const GridItem: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & {\n /** Columns to span, 1–12 or \"full\", or per breakpoint: { base: 'full', md: 6 }. */\n colSpan?: ResponsiveValue<Span>;\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport {};\n//# sourceMappingURL=Grid.d.ts.map",
1716
+ "examples": [
1717
+ {
1718
+ "name": "Default",
1719
+ "code": "export const Default: Story = {\n render: () => (\n <Grid columns={12} gap=\"md\">\n <GridItem colSpan={8}>\n <Cell label=\"colSpan 8\" />\n </GridItem>\n <GridItem colSpan={4}>\n <Cell label=\"colSpan 4\" />\n </GridItem>\n <GridItem colSpan=\"full\">\n <Cell label=\"full\" />\n </GridItem>\n </Grid>\n ),\n};"
1720
+ },
1721
+ {
1722
+ "name": "Responsive",
1723
+ "code": "export const Responsive: Story = {\n render: () => (\n <Grid columns={{ base: 1, md: 12 }} gap=\"md\">\n <GridItem colSpan={{ base: 'full', md: 6 }}>\n <Cell label=\"6 from md\" />\n </GridItem>\n <GridItem colSpan={{ base: 'full', md: 3 }}>\n <Cell label=\"3 from md\" />\n </GridItem>\n <GridItem colSpan={{ base: 'full', md: 3 }}>\n <Cell label=\"3 from md\" />\n </GridItem>\n </Grid>\n ),\n};"
1724
+ }
1725
+ ]
1726
+ },
1727
+ {
1728
+ "name": "AspectRatio",
1729
+ "file": "AspectRatio",
1730
+ "exports": [
1731
+ "AspectRatio"
1732
+ ],
1733
+ "hooks": [],
1734
+ "types": [
1735
+ "AspectRatioProps"
1736
+ ],
1737
+ "group": "Layout",
1738
+ "storyTitle": "Layout/AspectRatio",
1739
+ "client": false,
1740
+ "summary": "Keeps one child (image, video, iframe, map) at a fixed ratio; the child fills the box.\nRatios are Fibonacci pairs (`'3:2'`, `'8:5'`, `'13:8'` and their portrait flips) plus `'16:9'`\nand `'9:16'` for video. Default `'1:1'`.",
1741
+ "recipe": "aspectRatio",
1742
+ "variants": {
1743
+ "ratio": [
1744
+ "1:1",
1745
+ "3:2",
1746
+ "5:3",
1747
+ "8:5",
1748
+ "13:8",
1749
+ "2:3",
1750
+ "3:5",
1751
+ "5:8",
1752
+ "8:13",
1753
+ "16:9",
1754
+ "9:16"
1755
+ ]
1756
+ },
1757
+ "dts": "import { type ComponentPropsWithoutRef } from 'react';\ntype AspectRatioValue = '1:1' | '3:2' | '5:3' | '8:5' | '13:8' | '2:3' | '3:5' | '5:8' | '8:13' | '16:9' | '9:16';\nexport type AspectRatioProps = ComponentPropsWithoutRef<'div'> & {\n /** Width to height. Default `'1:1'`. */\n ratio?: AspectRatioValue;\n};\n/**\n * Keeps one child (image, video, iframe, map) at a fixed ratio; the child fills the box.\n * Ratios are Fibonacci pairs (`'3:2'`, `'8:5'`, `'13:8'` and their portrait flips) plus `'16:9'`\n * and `'9:16'` for video. Default `'1:1'`.\n */\nexport declare const AspectRatio: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"ref\"> & {\n /** Width to height. Default `'1:1'`. */\n ratio?: AspectRatioValue;\n} & import(\"react\").RefAttributes<HTMLDivElement>>;\nexport {};\n//# sourceMappingURL=AspectRatio.d.ts.map",
1758
+ "examples": [
1759
+ {
1760
+ "name": "Default",
1761
+ "code": "export const Default: Story = {\n render: () => (\n <AspectRatio ratio=\"16:9\" style={{ maxWidth: 'var(--beckui--sizes-md)' }}>\n <Image src={SAMPLE_LANDSCAPE} alt=\"Mountains at sunset\" radius=\"md\" />\n </AspectRatio>\n ),\n};"
1762
+ },
1763
+ {
1764
+ "name": "Ratios",
1765
+ "code": "export const Ratios: Story = {\n render: () => (\n <SimpleGrid columns={3} gap=\"md\">\n {[\n ['1:1', 'Square'],\n ['3:2', 'Photo'],\n ['8:5', 'Screen'],\n ['13:8', 'Golden'],\n ['16:9', 'Video'],\n ['5:8', 'Portrait'],\n ].map(([ratio, label]) => (\n <VStack key={ratio} gap=\"xs\">\n <AspectRatio ratio={ratio as AspectRatioProps['ratio']}>\n <Image src={SAMPLE_LANDSCAPE} alt={`${label} crop`} radius=\"md\" />\n </AspectRatio>\n <Text fontSize=\"xs\" color=\"muted\">\n {ratio} {label.toLowerCase()}\n </Text>\n </VStack>\n ))}\n </SimpleGrid>\n ),\n};"
1766
+ }
1767
+ ]
1768
+ },
1769
+ {
1770
+ "name": "Separator",
1771
+ "file": "Separator",
1772
+ "exports": [
1773
+ "Separator"
1774
+ ],
1775
+ "hooks": [],
1776
+ "types": [],
1777
+ "group": "Layout",
1778
+ "storyTitle": "Layout/Separator",
1779
+ "client": false,
1780
+ "summary": null,
1781
+ "recipe": "separator",
1782
+ "variants": {
1783
+ "orientation": [
1784
+ "horizontal",
1785
+ "vertical"
1786
+ ]
1787
+ },
1788
+ "dts": "import { type ComponentPropsWithoutRef } from 'react';\ntype SeparatorOrientation = 'horizontal' | 'vertical';\nexport type SeparatorProps = ComponentPropsWithoutRef<'hr'> & {\n orientation?: SeparatorOrientation;\n /** When true, hide from the accessibility tree (decorative). */\n decorative?: boolean;\n};\nexport declare const Separator: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, \"ref\"> & {\n orientation?: SeparatorOrientation;\n /** When true, hide from the accessibility tree (decorative). */\n decorative?: boolean;\n} & import(\"react\").RefAttributes<HTMLHRElement>>;\nexport {};\n//# sourceMappingURL=Separator.d.ts.map",
1789
+ "examples": [
1790
+ {
1791
+ "name": "Default",
1792
+ "code": "export const Default: Story = {};"
1793
+ },
1794
+ {
1795
+ "name": "Vertical",
1796
+ "code": "export const Vertical: Story = {\n render: () => (\n <HStack gap=\"md\" style={{ height: '3rem', alignItems: 'stretch' }}>\n <Text>Left</Text>\n <Separator orientation=\"vertical\" />\n <Text>Right</Text>\n </HStack>\n ),\n};"
1797
+ },
1798
+ {
1799
+ "name": "InStack",
1800
+ "code": "export const InStack: Story = {\n render: () => (\n <Stack gap=\"md\">\n <Text>Above</Text>\n <Separator />\n <Text>Below</Text>\n </Stack>\n ),\n};"
1801
+ }
1802
+ ]
1803
+ }
1804
+ ],
1805
+ "helpers": [
1806
+ {
1807
+ "file": "labelColors",
1808
+ "exports": [],
1809
+ "types": [
1810
+ "LabelCustomColors",
1811
+ "LabelVisual"
1812
+ ]
1813
+ },
1814
+ {
1815
+ "file": "responsive",
1816
+ "exports": [
1817
+ "BREAKPOINTS",
1818
+ "SEMANTIC_BREAKPOINTS",
1819
+ "SEMANTIC_TO_BREAKPOINT",
1820
+ "SPACING_SCALE",
1821
+ "normalizeResponsiveValue",
1822
+ "normalizeGapValue",
1823
+ "resolveBreakpointAlias"
1824
+ ],
1825
+ "types": [
1826
+ "Breakpoint",
1827
+ "BreakpointAlias",
1828
+ "BreakpointMap",
1829
+ "ResponsiveValue",
1830
+ "GapValue",
1831
+ "SpacingScale",
1832
+ "SpacingStep",
1833
+ "SpacingSemantic",
1834
+ "SemanticBreakpoint"
1835
+ ]
1836
+ }
1837
+ ]
1838
+ }