@becket-ui/mcp 0.6.1 → 0.7.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 +60 -2
- 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.7.0",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"name": "Button",
|
|
@@ -1270,6 +1270,7 @@
|
|
|
1270
1270
|
"exports": [
|
|
1271
1271
|
"CheckIcon",
|
|
1272
1272
|
"ChevronDownIcon",
|
|
1273
|
+
"ChevronLeftIcon",
|
|
1273
1274
|
"ChevronRightIcon",
|
|
1274
1275
|
"CloseIcon",
|
|
1275
1276
|
"CopyIcon",
|
|
@@ -1292,7 +1293,7 @@
|
|
|
1292
1293
|
"summary": null,
|
|
1293
1294
|
"recipe": null,
|
|
1294
1295
|
"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
|
+
"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 ChevronLeftIcon: 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
1297
|
"examples": []
|
|
1297
1298
|
},
|
|
1298
1299
|
{
|
|
@@ -1617,6 +1618,63 @@
|
|
|
1617
1618
|
}
|
|
1618
1619
|
]
|
|
1619
1620
|
},
|
|
1621
|
+
{
|
|
1622
|
+
"name": "Pagination",
|
|
1623
|
+
"file": "Pagination",
|
|
1624
|
+
"exports": [
|
|
1625
|
+
"Pagination"
|
|
1626
|
+
],
|
|
1627
|
+
"hooks": [],
|
|
1628
|
+
"types": [
|
|
1629
|
+
"PaginationProps"
|
|
1630
|
+
],
|
|
1631
|
+
"group": "Navigation",
|
|
1632
|
+
"storyTitle": "Navigation/Pagination",
|
|
1633
|
+
"client": false,
|
|
1634
|
+
"summary": "Links to the pages of a paged list: previous, first, the pages around the current one, last, and\nnext. Gaps show as an ellipsis. Renders without client JS.",
|
|
1635
|
+
"recipe": "pagination",
|
|
1636
|
+
"variants": {
|
|
1637
|
+
"size": [
|
|
1638
|
+
"sm",
|
|
1639
|
+
"md"
|
|
1640
|
+
]
|
|
1641
|
+
},
|
|
1642
|
+
"dts": "import { type ComponentPropsWithoutRef, type ElementType } from 'react';\nexport type PaginationProps = Omit<ComponentPropsWithoutRef<'nav'>, 'children'> & {\n /** The current page, counting from 1. Past `pageCount`, Previous goes to the last page. */\n page: number;\n /** Below 1 renders nothing: an empty list has no pages to link. */\n pageCount: number;\n /** The URL of a page. Every page is a plain link, so it works with server routing and no JS. */\n href: (page: number) => string;\n /**\n * Pages shown on each side of the current one, as a whole number (rounded down, at least 0).\n * First and last always show. Default `1`.\n */\n siblings?: number;\n size?: 'sm' | 'md';\n /** Router link component (for example Next's `Link`) to render each link with. Default `a`. */\n linkAs?: ElementType;\n /** Visible and announced text. Defaults are English. */\n labels?: {\n previous?: string;\n next?: string;\n /** Accessible name of a page link; keep the number in it (WCAG 2.5.3). */\n page?: (page: number) => string;\n };\n};\n/**\n * Links to the pages of a paged list: previous, first, the pages around the current one, last, and\n * next. Gaps show as an ellipsis. Renders without client JS.\n */\nexport declare const Pagination: import(\"react\").ForwardRefExoticComponent<Omit<Omit<import(\"react\").DetailedHTMLProps<import(\"react\").HTMLAttributes<HTMLElement>, HTMLElement>, \"ref\">, \"children\"> & {\n /** The current page, counting from 1. Past `pageCount`, Previous goes to the last page. */\n page: number;\n /** Below 1 renders nothing: an empty list has no pages to link. */\n pageCount: number;\n /** The URL of a page. Every page is a plain link, so it works with server routing and no JS. */\n href: (page: number) => string;\n /**\n * Pages shown on each side of the current one, as a whole number (rounded down, at least 0).\n * First and last always show. Default `1`.\n */\n siblings?: number;\n size?: 'sm' | 'md';\n /** Router link component (for example Next's `Link`) to render each link with. Default `a`. */\n linkAs?: ElementType;\n /** Visible and announced text. Defaults are English. */\n labels?: {\n previous?: string;\n next?: string;\n /** Accessible name of a page link; keep the number in it (WCAG 2.5.3). */\n page?: (page: number) => string;\n };\n} & import(\"react\").RefAttributes<HTMLElement>>;\n//# sourceMappingURL=Pagination.d.ts.map",
|
|
1643
|
+
"examples": [
|
|
1644
|
+
{
|
|
1645
|
+
"name": "Default",
|
|
1646
|
+
"code": "export const Default: Story = {};"
|
|
1647
|
+
},
|
|
1648
|
+
{
|
|
1649
|
+
"name": "Middle",
|
|
1650
|
+
"code": "export const Middle: Story = { args: { page: 6 } };"
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
"name": "LastPage",
|
|
1654
|
+
"code": "export const LastPage: Story = { args: { page: 12 } };"
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
"name": "FewPages",
|
|
1658
|
+
"code": "export const FewPages: Story = { args: { page: 2, pageCount: 5 } };"
|
|
1659
|
+
},
|
|
1660
|
+
{
|
|
1661
|
+
"name": "Siblings",
|
|
1662
|
+
"code": "export const Siblings: Story = { args: { page: 10, pageCount: 20, siblings: 2 } };"
|
|
1663
|
+
},
|
|
1664
|
+
{
|
|
1665
|
+
"name": "Sizes",
|
|
1666
|
+
"code": "export const Sizes: Story = {\n render: (args) => (\n <Stack gap=\"md\">\n {paginationRecipe.variantMap.size.map((size) => (\n <Pagination key={size} {...args} page={4} size={size} aria-label={`Pagination, ${size}`} />\n ))}\n </Stack>\n ),\n};"
|
|
1667
|
+
},
|
|
1668
|
+
{
|
|
1669
|
+
"name": "CustomLabels",
|
|
1670
|
+
"code": "export const CustomLabels: Story = {\n args: {\n page: 3,\n 'aria-label': 'Paginación',\n labels: { previous: 'Anterior', next: 'Siguiente', page: (page) => `Página ${page}` },\n },\n};"
|
|
1671
|
+
},
|
|
1672
|
+
{
|
|
1673
|
+
"name": "WithRouterLink",
|
|
1674
|
+
"code": "export const WithRouterLink: Story = {\n args: {\n page: 3,\n linkAs: forwardRef<HTMLAnchorElement, ComponentPropsWithoutRef<'a'>>((props, ref) => (\n <a ref={ref} data-router-link=\"\" {...props} />\n )),\n },\n};"
|
|
1675
|
+
}
|
|
1676
|
+
]
|
|
1677
|
+
},
|
|
1620
1678
|
{
|
|
1621
1679
|
"name": "SkipLink",
|
|
1622
1680
|
"file": "SkipLink",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@becket-ui/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.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.7.0",
|
|
46
|
+
"@becket-ui/tokens": "0.7.0",
|
|
47
47
|
"@types/node": "^22.18.0",
|
|
48
48
|
"@types/pngjs": "6.0.5",
|
|
49
49
|
"tsup": "^8.5.1",
|