@becket-ui/mcp 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data/catalog.json +114 -4
- package/dist/data/guidelines.md +1 -1
- package/package.json +3 -3
package/dist/data/catalog.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@becket-ui/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"name": "Button",
|
|
@@ -1348,7 +1348,7 @@
|
|
|
1348
1348
|
"group": "Typography",
|
|
1349
1349
|
"storyTitle": "Typography/Prose",
|
|
1350
1350
|
"client": false,
|
|
1351
|
-
"summary": "Styles HTML from Markdown or MDX with Becket tokens. CSS only, no JS.\
|
|
1351
|
+
"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
1352
|
"recipe": "prose",
|
|
1353
1353
|
"variants": {
|
|
1354
1354
|
"size": [
|
|
@@ -1357,7 +1357,7 @@
|
|
|
1357
1357
|
"lg"
|
|
1358
1358
|
]
|
|
1359
1359
|
},
|
|
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 *
|
|
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 * 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
1361
|
"examples": [
|
|
1362
1362
|
{
|
|
1363
1363
|
"name": "Article",
|
|
@@ -1369,7 +1369,11 @@
|
|
|
1369
1369
|
},
|
|
1370
1370
|
{
|
|
1371
1371
|
"name": "WithComponents",
|
|
1372
|
-
"code": "export const WithComponents: Story = {\n render: () => (\n <Prose>\n <p>A post can embed Becket components:</p>\n <
|
|
1372
|
+
"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};"
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
"name": "NotProse",
|
|
1376
|
+
"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
1377
|
}
|
|
1374
1378
|
]
|
|
1375
1379
|
},
|
|
@@ -1675,6 +1679,112 @@
|
|
|
1675
1679
|
}
|
|
1676
1680
|
]
|
|
1677
1681
|
},
|
|
1682
|
+
{
|
|
1683
|
+
"name": "Breadcrumb",
|
|
1684
|
+
"file": "Breadcrumb",
|
|
1685
|
+
"exports": [
|
|
1686
|
+
"Breadcrumb",
|
|
1687
|
+
"BreadcrumbItem"
|
|
1688
|
+
],
|
|
1689
|
+
"hooks": [],
|
|
1690
|
+
"types": [
|
|
1691
|
+
"BreadcrumbProps",
|
|
1692
|
+
"BreadcrumbItemProps"
|
|
1693
|
+
],
|
|
1694
|
+
"group": "Navigation",
|
|
1695
|
+
"storyTitle": "Navigation/Breadcrumb",
|
|
1696
|
+
"client": false,
|
|
1697
|
+
"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.",
|
|
1698
|
+
"recipe": "breadcrumb",
|
|
1699
|
+
"variants": {
|
|
1700
|
+
"size": [
|
|
1701
|
+
"sm",
|
|
1702
|
+
"md"
|
|
1703
|
+
],
|
|
1704
|
+
"separator": [
|
|
1705
|
+
"chevron",
|
|
1706
|
+
"slash"
|
|
1707
|
+
]
|
|
1708
|
+
},
|
|
1709
|
+
"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",
|
|
1710
|
+
"examples": [
|
|
1711
|
+
{
|
|
1712
|
+
"name": "Default",
|
|
1713
|
+
"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};"
|
|
1714
|
+
},
|
|
1715
|
+
{
|
|
1716
|
+
"name": "Sizes",
|
|
1717
|
+
"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};"
|
|
1718
|
+
},
|
|
1719
|
+
{
|
|
1720
|
+
"name": "Separators",
|
|
1721
|
+
"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};"
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
"name": "CurrentAsLink",
|
|
1725
|
+
"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};"
|
|
1726
|
+
},
|
|
1727
|
+
{
|
|
1728
|
+
"name": "LongTrail",
|
|
1729
|
+
"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};"
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
"name": "WithRouterLink",
|
|
1733
|
+
"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};"
|
|
1734
|
+
}
|
|
1735
|
+
]
|
|
1736
|
+
},
|
|
1737
|
+
{
|
|
1738
|
+
"name": "Steps",
|
|
1739
|
+
"file": "Steps",
|
|
1740
|
+
"exports": [
|
|
1741
|
+
"Steps",
|
|
1742
|
+
"Step"
|
|
1743
|
+
],
|
|
1744
|
+
"hooks": [],
|
|
1745
|
+
"types": [
|
|
1746
|
+
"StepsProps",
|
|
1747
|
+
"StepProps"
|
|
1748
|
+
],
|
|
1749
|
+
"group": "Navigation",
|
|
1750
|
+
"storyTitle": "Navigation/Steps",
|
|
1751
|
+
"client": false,
|
|
1752
|
+
"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.",
|
|
1753
|
+
"recipe": "steps",
|
|
1754
|
+
"variants": {
|
|
1755
|
+
"orientation": [
|
|
1756
|
+
"horizontal",
|
|
1757
|
+
"vertical"
|
|
1758
|
+
],
|
|
1759
|
+
"size": [
|
|
1760
|
+
"sm",
|
|
1761
|
+
"md"
|
|
1762
|
+
]
|
|
1763
|
+
},
|
|
1764
|
+
"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",
|
|
1765
|
+
"examples": [
|
|
1766
|
+
{
|
|
1767
|
+
"name": "Horizontal",
|
|
1768
|
+
"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};"
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
"name": "Vertical",
|
|
1772
|
+
"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};"
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
"name": "WithDescriptions",
|
|
1776
|
+
"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};"
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
"name": "AllComplete",
|
|
1780
|
+
"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};"
|
|
1781
|
+
},
|
|
1782
|
+
{
|
|
1783
|
+
"name": "Sizes",
|
|
1784
|
+
"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};"
|
|
1785
|
+
}
|
|
1786
|
+
]
|
|
1787
|
+
},
|
|
1678
1788
|
{
|
|
1679
1789
|
"name": "SkipLink",
|
|
1680
1790
|
"file": "SkipLink",
|
package/dist/data/guidelines.md
CHANGED
|
@@ -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">`;
|
|
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.
|
|
3
|
+
"version": "0.8.0",
|
|
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.
|
|
46
|
-
"@becket-ui/tokens": "0.
|
|
45
|
+
"@becket-ui/react": "0.8.0",
|
|
46
|
+
"@becket-ui/tokens": "0.8.0",
|
|
47
47
|
"@types/node": "^22.18.0",
|
|
48
48
|
"@types/pngjs": "6.0.5",
|
|
49
49
|
"tsup": "^8.5.1",
|