@becket-ui/mcp 0.7.0 → 0.8.1

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@becket-ui/react",
3
- "version": "0.7.0",
3
+ "version": "0.8.1",
4
4
  "components": [
5
5
  {
6
6
  "name": "Button",
@@ -49,6 +49,10 @@
49
49
  "name": "Default",
50
50
  "code": "export const Default: Story = {};"
51
51
  },
52
+ {
53
+ "name": "ForcedColors",
54
+ "code": "export const ForcedColors: Story = { ...Default, parameters: { forcedColors: true } };"
55
+ },
52
56
  {
53
57
  "name": "WithGradient",
54
58
  "code": "export const WithGradient: Story = {\n args: {\n children: 'Gradient',\n visual: 'primary',\n withGradient: true,\n },\n};"
@@ -425,6 +429,10 @@
425
429
  "name": "Default",
426
430
  "code": "export const Default: Story = {\n args: {\n size: 'md',\n disabled: false,\n defaultChecked: false,\n label: 'Notifications',\n },\n};"
427
431
  },
432
+ {
433
+ "name": "ForcedColors",
434
+ "code": "export const ForcedColors: Story = { ...Default, parameters: { forcedColors: true } };"
435
+ },
428
436
  {
429
437
  "name": "Checked",
430
438
  "code": "export const Checked: Story = {\n args: {\n size: 'md',\n defaultChecked: true,\n label: 'Enabled',\n },\n};"
@@ -528,6 +536,10 @@
528
536
  "name": "Default",
529
537
  "code": "export const Default: Story = {\n args: {\n label: 'Offset',\n placeholder: '3',\n helperText: 'Optional helper text',\n },\n};"
530
538
  },
539
+ {
540
+ "name": "ForcedColors",
541
+ "code": "export const ForcedColors: Story = { ...Default, parameters: { forcedColors: true } };"
542
+ },
531
543
  {
532
544
  "name": "Invalid",
533
545
  "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};"
@@ -575,6 +587,10 @@
575
587
  "name": "Default",
576
588
  "code": "export const Default: Story = {\n args: {\n description: 'You can unsubscribe anytime.',\n },\n};"
577
589
  },
590
+ {
591
+ "name": "ForcedColors",
592
+ "code": "export const ForcedColors: Story = { ...Default, parameters: { forcedColors: true } };"
593
+ },
578
594
  {
579
595
  "name": "Checked",
580
596
  "code": "export const Checked: Story = {\n args: {\n defaultChecked: true,\n label: 'Checked',\n },\n};"
@@ -622,6 +638,10 @@
622
638
  "name": "Default",
623
639
  "code": "export const Default: Story = {\n render: (args) => (\n <RadioGroup {...args}>\n <PlanRadios />\n </RadioGroup>\n ),\n};"
624
640
  },
641
+ {
642
+ "name": "ForcedColors",
643
+ "code": "export const ForcedColors: Story = { ...Default, parameters: { forcedColors: true } };"
644
+ },
625
645
  {
626
646
  "name": "DefaultSelected",
627
647
  "code": "export const DefaultSelected: Story = {\n args: { defaultValue: 'pro' },\n render: (args) => (\n <RadioGroup {...args}>\n <PlanRadios />\n </RadioGroup>\n ),\n};"
@@ -678,6 +698,10 @@
678
698
  "name": "Default",
679
699
  "code": "export const Default: Story = {\n args: { helperText: 'Native select — works without JS.' },\n};"
680
700
  },
701
+ {
702
+ "name": "ForcedColors",
703
+ "code": "export const ForcedColors: Story = { ...Default, parameters: { forcedColors: true } };"
704
+ },
681
705
  {
682
706
  "name": "Invalid",
683
707
  "code": "export const Invalid: Story = {\n args: {\n invalid: true,\n helperText: 'Pick a fruit',\n defaultValue: '',\n },\n};"
@@ -722,6 +746,10 @@
722
746
  "name": "Default",
723
747
  "code": "export const Default: Story = {\n args: {\n placeholder: 'Write a short note',\n helperText: 'Resize is vertical.',\n },\n};"
724
748
  },
749
+ {
750
+ "name": "ForcedColors",
751
+ "code": "export const ForcedColors: Story = { ...Default, parameters: { forcedColors: true } };"
752
+ },
725
753
  {
726
754
  "name": "Invalid",
727
755
  "code": "export const Invalid: Story = {\n args: {\n invalid: true,\n defaultValue: 'Too short',\n helperText: 'Add more detail',\n },\n};"
@@ -1043,6 +1071,10 @@
1043
1071
  "name": "Default",
1044
1072
  "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
1073
  },
1074
+ {
1075
+ "name": "ForcedColors",
1076
+ "code": "/**\n * Windows contrast themes drop the shadow ring: Tab here and the focus outline must still show.\n * No footer, so focus starts on the dialog and the first Tab reaches Close.\n */\nexport const ForcedColors: Story = {\n render: () => (\n <Dialog defaultOpen title=\"Confirm\">\n <Text>Close keeps a visible focus outline in a contrast theme.</Text>\n </Dialog>\n ),\n parameters: { forcedColors: true },\n};"
1077
+ },
1046
1078
  {
1047
1079
  "name": "Alert",
1048
1080
  "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};"
@@ -1083,6 +1115,10 @@
1083
1115
  "name": "Default",
1084
1116
  "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
1117
  },
1118
+ {
1119
+ "name": "ForcedColors",
1120
+ "code": "/**\n * Windows contrast themes drop the shadow ring: Tab here and the focus outline must still show.\n * No footer, so focus starts on the drawer and the first Tab reaches Close.\n */\nexport const ForcedColors: Story = {\n render: (args) => (\n <Drawer {...args} defaultOpen title=\"Filters\">\n <Text>Close keeps a visible focus outline in a contrast theme.</Text>\n </Drawer>\n ),\n parameters: { forcedColors: true },\n};"
1121
+ },
1086
1122
  {
1087
1123
  "name": "Start",
1088
1124
  "code": "export const Start: Story = {\n ...Default,\n args: { placement: 'start' },\n};"
@@ -1114,6 +1150,14 @@
1114
1150
  "name": "Default",
1115
1151
  "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
1152
  },
1153
+ {
1154
+ "name": "ForcedColors",
1155
+ "code": "export const ForcedColors: Story = { ...Default, parameters: { forcedColors: true } };"
1156
+ },
1157
+ {
1158
+ "name": "ForcedColorsItem",
1159
+ "code": "export const ForcedColorsItem: Story = {\n ...Default,\n parameters: { forcedColors: { keys: '{Tab}{ArrowDown}' } },\n};"
1160
+ },
1117
1161
  {
1118
1162
  "name": "Open",
1119
1163
  "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};"
@@ -1142,6 +1186,10 @@
1142
1186
  {
1143
1187
  "name": "Default",
1144
1188
  "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};"
1189
+ },
1190
+ {
1191
+ "name": "ForcedColors",
1192
+ "code": "export const ForcedColors: Story = { ...Default, parameters: { forcedColors: true } };"
1145
1193
  }
1146
1194
  ]
1147
1195
  },
@@ -1325,6 +1373,10 @@
1325
1373
  "name": "Default",
1326
1374
  "code": "export const Default: Story = {};"
1327
1375
  },
1376
+ {
1377
+ "name": "ForcedColors",
1378
+ "code": "export const ForcedColors: Story = { ...Default, parameters: { forcedColors: true } };"
1379
+ },
1328
1380
  {
1329
1381
  "name": "Muted",
1330
1382
  "code": "export const Muted: Story = {\n args: { visual: 'muted', children: 'Muted link' },\n};"
@@ -1348,7 +1400,7 @@
1348
1400
  "group": "Typography",
1349
1401
  "storyTitle": "Typography/Prose",
1350
1402
  "client": false,
1351
- "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.",
1403
+ "summary": "Styles HTML from Markdown or MDX with Becket tokens. CSS only, no JS.\nEmbedded Becket components keep their own styles, markup inside them included. Wrap markup\nfrom anywhere else in `data-not-prose` to leave it unstyled.",
1352
1404
  "recipe": "prose",
1353
1405
  "variants": {
1354
1406
  "size": [
@@ -1357,7 +1409,7 @@
1357
1409
  "lg"
1358
1410
  ]
1359
1411
  },
1360
- "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",
1412
+ "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 * Embedded Becket components keep their own styles, markup inside them included. Wrap markup\n * from anywhere else in `data-not-prose` to leave it unstyled.\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",
1361
1413
  "examples": [
1362
1414
  {
1363
1415
  "name": "Article",
@@ -1369,7 +1421,11 @@
1369
1421
  },
1370
1422
  {
1371
1423
  "name": "WithComponents",
1372
- "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};"
1424
+ "code": "export const WithComponents: Story = {\n render: () => (\n <Prose>\n <p>A post can embed Becket components:</p>\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 <ul>\n <li>This list keeps the card's styles, not the article's.</li>\n </ul>\n </CardBody>\n </Card>\n <p>The text after it is styled by Prose again.</p>\n </Prose>\n ),\n};"
1425
+ },
1426
+ {
1427
+ "name": "NotProse",
1428
+ "code": "export const NotProse: Story = {\n render: () => (\n <Prose>\n <p>A widget from another library sits in the post:</p>\n <div data-not-prose>\n <ul>\n <li>This list is left unstyled by Prose.</li>\n </ul>\n </div>\n <ul>\n <li>This one is an article list.</li>\n </ul>\n </Prose>\n ),\n};"
1373
1429
  }
1374
1430
  ]
1375
1431
  },
@@ -1645,6 +1701,10 @@
1645
1701
  "name": "Default",
1646
1702
  "code": "export const Default: Story = {};"
1647
1703
  },
1704
+ {
1705
+ "name": "ForcedColors",
1706
+ "code": "export const ForcedColors: Story = { ...Default, parameters: { forcedColors: true } };"
1707
+ },
1648
1708
  {
1649
1709
  "name": "Middle",
1650
1710
  "code": "export const Middle: Story = { args: { page: 6 } };"
@@ -1675,6 +1735,116 @@
1675
1735
  }
1676
1736
  ]
1677
1737
  },
1738
+ {
1739
+ "name": "Breadcrumb",
1740
+ "file": "Breadcrumb",
1741
+ "exports": [
1742
+ "Breadcrumb",
1743
+ "BreadcrumbItem"
1744
+ ],
1745
+ "hooks": [],
1746
+ "types": [
1747
+ "BreadcrumbProps",
1748
+ "BreadcrumbItemProps"
1749
+ ],
1750
+ "group": "Navigation",
1751
+ "storyTitle": "Navigation/Breadcrumb",
1752
+ "client": false,
1753
+ "summary": "The trail of pages leading to the current one: a `nav` landmark around an ordered list of\n`BreadcrumbItem`s. Renders without client JS.",
1754
+ "recipe": "breadcrumb",
1755
+ "variants": {
1756
+ "size": [
1757
+ "sm",
1758
+ "md"
1759
+ ],
1760
+ "separator": [
1761
+ "chevron",
1762
+ "slash"
1763
+ ]
1764
+ },
1765
+ "dts": "import { type ComponentPropsWithoutRef, type ElementType } from 'react';\nexport type BreadcrumbProps = ComponentPropsWithoutRef<'nav'> & {\n size?: 'sm' | 'md';\n /** Drawn between items in CSS; screen readers don't read it. Default `chevron`. */\n separator?: 'chevron' | 'slash';\n};\n/**\n * The trail of pages leading to the current one: a `nav` landmark around an ordered list of\n * `BreadcrumbItem`s. Renders without client JS.\n */\nexport declare const Breadcrumb: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLElement>, HTMLElement>, \"ref\"> & {\n size?: 'sm' | 'md';\n /** Drawn between items in CSS; screen readers don't read it. Default `chevron`. */\n separator?: 'chevron' | 'slash';\n} & import(\"react\").RefAttributes<HTMLElement>>;\nexport type BreadcrumbItemProps = ComponentPropsWithoutRef<'a'> & {\n /** The page the user is on: `aria-current=\"page\"`. Without `href`, it renders as plain text. */\n current?: boolean;\n /** Router link component (for example Next's `Link`) for the link. Default `a`. */\n as?: ElementType;\n};\n/** One page in a `Breadcrumb`. The ref goes to the link (or the text of a current page). */\nexport declare const BreadcrumbItem: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, \"ref\"> & {\n /** The page the user is on: `aria-current=\"page\"`. Without `href`, it renders as plain text. */\n current?: boolean;\n /** Router link component (for example Next's `Link`) for the link. Default `a`. */\n as?: ElementType;\n} & import(\"react\").RefAttributes<HTMLElement>>;\n//# sourceMappingURL=Breadcrumb.d.ts.map",
1766
+ "examples": [
1767
+ {
1768
+ "name": "Default",
1769
+ "code": "export const Default: Story = {\n render: (args) => (\n <Breadcrumb {...args}>\n <BreadcrumbItem href=\"#home\">Home</BreadcrumbItem>\n <BreadcrumbItem href=\"#blog\">Blog</BreadcrumbItem>\n <BreadcrumbItem current>Writing tokens</BreadcrumbItem>\n </Breadcrumb>\n ),\n};"
1770
+ },
1771
+ {
1772
+ "name": "ForcedColors",
1773
+ "code": "export const ForcedColors: Story = { ...Default, parameters: { forcedColors: true } };"
1774
+ },
1775
+ {
1776
+ "name": "Sizes",
1777
+ "code": "export const Sizes: Story = {\n render: (args) => (\n <Stack gap=\"md\">\n {breadcrumbRecipe.variantMap.size.map((size) => (\n <Breadcrumb key={size} {...args} size={size} aria-label={`Breadcrumb, ${size}`}>\n <BreadcrumbItem href=\"#home\">Home</BreadcrumbItem>\n <BreadcrumbItem href=\"#docs\">Docs</BreadcrumbItem>\n <BreadcrumbItem current>Theming</BreadcrumbItem>\n </Breadcrumb>\n ))}\n </Stack>\n ),\n};"
1778
+ },
1779
+ {
1780
+ "name": "Separators",
1781
+ "code": "export const Separators: Story = {\n render: (args) => (\n <Stack gap=\"md\">\n {breadcrumbRecipe.variantMap.separator.map((separator) => (\n <Breadcrumb\n key={separator}\n {...args}\n separator={separator}\n aria-label={`Breadcrumb, ${separator}`}\n >\n <BreadcrumbItem href=\"#home\">Home</BreadcrumbItem>\n <BreadcrumbItem href=\"#docs\">Docs</BreadcrumbItem>\n <BreadcrumbItem current>Theming</BreadcrumbItem>\n </Breadcrumb>\n ))}\n </Stack>\n ),\n};"
1782
+ },
1783
+ {
1784
+ "name": "CurrentAsLink",
1785
+ "code": "export const CurrentAsLink: Story = {\n render: (args) => (\n <Breadcrumb {...args}>\n <BreadcrumbItem href=\"#home\">Home</BreadcrumbItem>\n <BreadcrumbItem href=\"#blog/writing-tokens\" current>\n Writing tokens\n </BreadcrumbItem>\n </Breadcrumb>\n ),\n};"
1786
+ },
1787
+ {
1788
+ "name": "LongTrail",
1789
+ "code": "export const LongTrail: Story = {\n render: (args) => (\n // Breadcrumb has no width prop; a size token keeps the trail narrow enough to wrap.\n <Breadcrumb {...args} style={{ maxWidth: 'var(--beckui--sizes-55)' }}>\n {['Home', 'Products', 'Design systems', 'Components', 'Navigation'].map((page) => (\n <BreadcrumbItem key={page} href={`#${page}`}>\n {page}\n </BreadcrumbItem>\n ))}\n <BreadcrumbItem current>Breadcrumb</BreadcrumbItem>\n </Breadcrumb>\n ),\n};"
1790
+ },
1791
+ {
1792
+ "name": "WithRouterLink",
1793
+ "code": "export const WithRouterLink: Story = {\n render: (args) => (\n <Breadcrumb {...args}>\n {['Home', 'Blog'].map((page) => (\n <BreadcrumbItem\n key={page}\n href={`#${page}`}\n as={forwardRef<HTMLAnchorElement, ComponentPropsWithoutRef<'a'>>((props, ref) => (\n <a ref={ref} data-router-link=\"\" {...props} />\n ))}\n >\n {page}\n </BreadcrumbItem>\n ))}\n <BreadcrumbItem current>Writing tokens</BreadcrumbItem>\n </Breadcrumb>\n ),\n};"
1794
+ }
1795
+ ]
1796
+ },
1797
+ {
1798
+ "name": "Steps",
1799
+ "file": "Steps",
1800
+ "exports": [
1801
+ "Steps",
1802
+ "Step"
1803
+ ],
1804
+ "hooks": [],
1805
+ "types": [
1806
+ "StepsProps",
1807
+ "StepProps"
1808
+ ],
1809
+ "group": "Navigation",
1810
+ "storyTitle": "Navigation/Steps",
1811
+ "client": false,
1812
+ "summary": "A display-only list of the steps in a process, and where the user is in it. Each `Step` sets its\nown `status`; nothing here is clickable or keeps state. Renders without client JS.",
1813
+ "recipe": "steps",
1814
+ "variants": {
1815
+ "orientation": [
1816
+ "horizontal",
1817
+ "vertical"
1818
+ ],
1819
+ "size": [
1820
+ "sm",
1821
+ "md"
1822
+ ]
1823
+ },
1824
+ "dts": "import { type ComponentPropsWithoutRef, type ReactNode } from 'react';\nexport type StepsProps = ComponentPropsWithoutRef<'ol'> & {\n /** Default `horizontal`. For narrow screens, pass `vertical`. */\n orientation?: 'horizontal' | 'vertical';\n size?: 'sm' | 'md';\n};\n/**\n * A display-only list of the steps in a process, and where the user is in it. Each `Step` sets its\n * own `status`; nothing here is clickable or keeps state. Renders without client JS.\n */\nexport declare const Steps: import(\"react\").ForwardRefExoticComponent<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, \"ref\"> & {\n /** Default `horizontal`. For narrow screens, pass `vertical`. */\n orientation?: 'horizontal' | 'vertical';\n size?: 'sm' | 'md';\n} & import(\"react\").RefAttributes<HTMLOListElement>>;\nexport type StepProps = Omit<ComponentPropsWithoutRef<'li'>, 'title'> & {\n status: 'complete' | 'current' | 'upcoming';\n title: ReactNode;\n description?: ReactNode;\n /**\n * Read after the title by screen readers. Defaults to \"(completed)\" and \"(not started)\"; the\n * current step has `aria-current=\"step\"` and no text unless you pass one.\n */\n statusLabel?: string;\n};\nexport declare const Step: import(\"react\").ForwardRefExoticComponent<Omit<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, \"ref\">, \"title\"> & {\n status: 'complete' | 'current' | 'upcoming';\n title: ReactNode;\n description?: ReactNode;\n /**\n * Read after the title by screen readers. Defaults to \"(completed)\" and \"(not started)\"; the\n * current step has `aria-current=\"step\"` and no text unless you pass one.\n */\n statusLabel?: string;\n} & import(\"react\").RefAttributes<HTMLLIElement>>;\n//# sourceMappingURL=Steps.d.ts.map",
1825
+ "examples": [
1826
+ {
1827
+ "name": "Horizontal",
1828
+ "code": "export const Horizontal: Story = {\n render: (args) => (\n <Steps {...args} aria-label=\"Sign-up progress\">\n <Step status=\"complete\" title=\"Account\" />\n <Step status=\"current\" title=\"Profile\" />\n <Step status=\"upcoming\" title=\"Done\" />\n </Steps>\n ),\n};"
1829
+ },
1830
+ {
1831
+ "name": "Vertical",
1832
+ "code": "export const Vertical: Story = {\n render: (args) => (\n <Steps {...args} orientation=\"vertical\" aria-label=\"Sign-up progress\">\n <Step status=\"complete\" title=\"Account\" />\n <Step status=\"current\" title=\"Profile\" />\n <Step status=\"upcoming\" title=\"Done\" />\n </Steps>\n ),\n};"
1833
+ },
1834
+ {
1835
+ "name": "WithDescriptions",
1836
+ "code": "export const WithDescriptions: Story = {\n render: (args) => (\n <Steps {...args} aria-label=\"Release progress\">\n <Step status=\"complete\" title=\"Build\" description=\"Packages compiled\" />\n <Step status=\"current\" title=\"Review\" description=\"Waiting on two approvals\" />\n <Step status=\"upcoming\" title=\"Publish\" description=\"npm and GitHub Releases\" />\n </Steps>\n ),\n};"
1837
+ },
1838
+ {
1839
+ "name": "AllComplete",
1840
+ "code": "export const AllComplete: Story = {\n render: (args) => (\n <Steps {...args} aria-label=\"Sign-up progress\">\n <Step status=\"complete\" title=\"Account\" />\n <Step status=\"complete\" title=\"Profile\" />\n <Step status=\"complete\" title=\"Done\" />\n </Steps>\n ),\n};"
1841
+ },
1842
+ {
1843
+ "name": "Sizes",
1844
+ "code": "export const Sizes: Story = {\n render: (args) => (\n <Stack gap=\"lg\">\n {stepsRecipe.variantMap.size.map((size) => (\n <Steps key={size} {...args} size={size} aria-label={`Sign-up progress, ${size}`}>\n <Step status=\"complete\" title=\"Account\" />\n <Step status=\"current\" title=\"Profile\" />\n <Step status=\"upcoming\" title=\"Done\" />\n </Steps>\n ))}\n </Stack>\n ),\n};"
1845
+ }
1846
+ ]
1847
+ },
1678
1848
  {
1679
1849
  "name": "SkipLink",
1680
1850
  "file": "SkipLink",
@@ -1694,6 +1864,10 @@
1694
1864
  {
1695
1865
  "name": "Default",
1696
1866
  "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};"
1867
+ },
1868
+ {
1869
+ "name": "ForcedColors",
1870
+ "code": "export const ForcedColors: Story = { ...Default, parameters: { forcedColors: true } };"
1697
1871
  }
1698
1872
  ]
1699
1873
  },
@@ -42,7 +42,7 @@ Raw elements with inline styles are the most common mistake. Use this table:
42
42
  | inline `svg` icon | `Icon` around your SVG, or a built-in glyph (`SearchIcon`, `ChevronDownIcon`, …); add `label` only when it carries meaning |
43
43
  | `a` | `Link` |
44
44
  | `a` styled as a button (call to action) | `Button as="a" href="…"` (anchor props are typed) |
45
- | HTML from Markdown or MDX (blog posts, docs) | `<Prose as="article">`; wrap embedded components in `data-not-prose` |
45
+ | HTML from Markdown or MDX (blog posts, docs) | `<Prose as="article">`; Becket components inside keep their styles, other markup opts out with `data-not-prose` |
46
46
  | `ul` / `ol` with `li` | `List` (`as="ol"` for steps, `marker="none"` for nav) + `ListItem` |
47
47
  | inline `code`, `kbd`, `mark` | `Code`, `Kbd`, `Mark` |
48
48
  | `blockquote` (+ attribution) | `Blockquote cite` + `BlockquoteCaption` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@becket-ui/mcp",
3
- "version": "0.7.0",
3
+ "version": "0.8.1",
4
4
  "description": "MCP server that teaches coding agents to build UIs with Becket UI: components, props, examples, tokens and a usage review.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -42,8 +42,8 @@
42
42
  "zod": "^4.6.7"
43
43
  },
44
44
  "devDependencies": {
45
- "@becket-ui/react": "0.7.0",
46
- "@becket-ui/tokens": "0.7.0",
45
+ "@becket-ui/react": "0.8.1",
46
+ "@becket-ui/tokens": "0.8.1",
47
47
  "@types/node": "^22.18.0",
48
48
  "@types/pngjs": "6.0.5",
49
49
  "tsup": "^8.5.1",