@becket-ui/mcp 0.8.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.
- package/dist/data/catalog.json +65 -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.8.
|
|
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};"
|
|
@@ -1649,6 +1701,10 @@
|
|
|
1649
1701
|
"name": "Default",
|
|
1650
1702
|
"code": "export const Default: Story = {};"
|
|
1651
1703
|
},
|
|
1704
|
+
{
|
|
1705
|
+
"name": "ForcedColors",
|
|
1706
|
+
"code": "export const ForcedColors: Story = { ...Default, parameters: { forcedColors: true } };"
|
|
1707
|
+
},
|
|
1652
1708
|
{
|
|
1653
1709
|
"name": "Middle",
|
|
1654
1710
|
"code": "export const Middle: Story = { args: { page: 6 } };"
|
|
@@ -1712,6 +1768,10 @@
|
|
|
1712
1768
|
"name": "Default",
|
|
1713
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};"
|
|
1714
1770
|
},
|
|
1771
|
+
{
|
|
1772
|
+
"name": "ForcedColors",
|
|
1773
|
+
"code": "export const ForcedColors: Story = { ...Default, parameters: { forcedColors: true } };"
|
|
1774
|
+
},
|
|
1715
1775
|
{
|
|
1716
1776
|
"name": "Sizes",
|
|
1717
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};"
|
|
@@ -1804,6 +1864,10 @@
|
|
|
1804
1864
|
{
|
|
1805
1865
|
"name": "Default",
|
|
1806
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 } };"
|
|
1807
1871
|
}
|
|
1808
1872
|
]
|
|
1809
1873
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@becket-ui/mcp",
|
|
3
|
-
"version": "0.8.
|
|
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.8.
|
|
46
|
-
"@becket-ui/tokens": "0.8.
|
|
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",
|