Skip to content

Commit 14d2f4e

Browse files
committed
update registry
1 parent cdb27a4 commit 14d2f4e

3 files changed

Lines changed: 95 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "https://next.park-ui.com/schema/registry-item.json",
3+
"id": "icon-button",
4+
"type": "component",
5+
"files": [
6+
{
7+
"type": "component",
8+
"fileName": "icon-button.ts",
9+
"content": "import { ark } from '@ark-ui/react/factory'\nimport { styled } from 'styled-system/jsx'\nimport { type ButtonVariantProps, button } from 'styled-system/recipes'\nimport type { ComponentProps } from 'styled-system/types'\n\nexport type IconButtonProps = ComponentProps<typeof IconButton>\nexport const IconButton = styled(ark.button, button, {\n defaultProps: { px: '0' } as ButtonVariantProps,\n})\n",
10+
"indexFile": {
11+
"exports": [
12+
{
13+
"type": "named",
14+
"symbols": [
15+
{
16+
"name": "IconButton",
17+
"isType": false
18+
},
19+
{
20+
"name": "IconButtonProps",
21+
"isType": true
22+
}
23+
],
24+
"moduleSpecifier": "./icon-button"
25+
}
26+
]
27+
}
28+
}
29+
]
30+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"$schema": "https://next.park-ui.com/schema/registry-item.json",
3+
"id": "icon",
4+
"type": "component",
5+
"files": [
6+
{
7+
"type": "component",
8+
"fileName": "icon.ts",
9+
"content": "import { ark } from '@ark-ui/react/factory'\nimport { styled } from 'styled-system/jsx'\nimport { icon } from 'styled-system/recipes'\nimport type { ComponentProps } from 'styled-system/types'\n\nexport type IconProps = ComponentProps<typeof Icon>\nexport const Icon = styled(ark.svg, icon, {\n defaultProps: { asChild: true },\n})\n",
10+
"indexFile": {
11+
"exports": [
12+
{
13+
"type": "named",
14+
"symbols": [
15+
{
16+
"name": "Icon",
17+
"isType": false
18+
},
19+
{
20+
"name": "IconProps",
21+
"isType": true
22+
}
23+
],
24+
"moduleSpecifier": "./icon"
25+
}
26+
]
27+
}
28+
},
29+
{
30+
"type": "recipe",
31+
"fileName": "icon.ts",
32+
"content": "import { defineRecipe } from '@pandacss/dev'\n\nexport const icon = defineRecipe({\n className: 'icon',\n base: {\n color: 'currentcolor',\n display: 'inline-block',\n flexShrink: '0',\n verticalAlign: 'middle',\n lineHeight: '1em',\n },\n defaultVariants: {\n size: 'md',\n },\n variants: {\n size: {\n xs: {\n w: '3',\n h: '3',\n },\n sm: {\n w: '4',\n h: '4',\n },\n md: {\n w: '5',\n h: '5',\n },\n lg: {\n w: '6',\n h: '6',\n },\n xl: {\n w: '7',\n h: '7',\n },\n '2xl': {\n w: '8',\n h: '8',\n },\n },\n },\n})\n",
33+
"indexFile": {
34+
"imports": [
35+
{
36+
"type": "named",
37+
"moduleSpecifier": "./icon",
38+
"symbols": [
39+
{
40+
"name": "icon"
41+
}
42+
]
43+
}
44+
],
45+
"exports": [
46+
{
47+
"type": "object-literal",
48+
"variableName": "recipes",
49+
"properties": [
50+
{
51+
"name": "icon"
52+
}
53+
]
54+
}
55+
]
56+
}
57+
}
58+
]
59+
}

website/public/registry/components/react/index.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
{
1818
"id": "heading"
1919
},
20+
{
21+
"id": "icon"
22+
},
23+
{
24+
"id": "icon-button"
25+
},
2026
{
2127
"id": "input"
2228
},

0 commit comments

Comments
 (0)