@okshaun/components 1.0.2 → 2.0.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/.mcp.json +2 -5
- package/dist/icon-metadata.json +5173 -0
- package/dist/index.js +17126 -9342
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +693 -0
- package/dist/playroom-static.css +187432 -0
- package/dist/{preset-DCCViEDs.js → preset-Coz-VwQR.js} +3535 -2697
- package/dist/preset-Coz-VwQR.js.map +1 -0
- package/dist/preset.js +1 -1
- package/dist/specs/color-palette.json +22 -1
- package/dist/specs/patterns.json +0 -16
- package/dist/specs/recipes.json +411 -247
- package/dist/specs/semantic-tokens.json +330 -115
- package/dist/specs/text-styles.json +72 -0
- package/dist/specs/tokens.json +237 -27
- package/dist/sprite.svg +1 -1
- package/dist/sprite.symbol.html +6662 -320
- package/dist/styles.css +36938 -5
- package/dist/svgs/calendar-lock.svg +1 -0
- package/dist/svgs/computer.svg +1 -0
- package/dist/svgs/cookie.svg +1 -0
- package/dist/svgs/folder-check.svg +1 -0
- package/dist/svgs/folder-copy.svg +1 -0
- package/dist/svgs/folder-dashed.svg +1 -0
- package/dist/svgs/folder-open.svg +1 -0
- package/dist/svgs/folder-topic.svg +1 -0
- package/dist/svgs/folder.svg +1 -0
- package/dist/svgs/mobile.svg +1 -0
- package/dist/svgs/numpad.svg +1 -0
- package/dist/svgs/phone.svg +1 -0
- package/dist/svgs/qr-code.svg +1 -0
- package/dist/svgs/sparkle.svg +1 -0
- package/dist/svgs/trolley.svg +1 -0
- package/dist/types/index.d.ts +836 -342
- package/package.json +49 -24
- package/src/recipes/avatar.ts +98 -98
- package/src/recipes/badge.ts +22 -39
- package/src/recipes/box.ts +1 -7
- package/src/recipes/breadcrumbs.ts +42 -25
- package/src/recipes/button.ts +151 -85
- package/src/recipes/card.ts +5 -1
- package/src/recipes/checkbox.ts +23 -24
- package/src/recipes/checkboxInput.ts +25 -0
- package/src/recipes/chip.ts +35 -37
- package/src/recipes/code.ts +4 -4
- package/src/recipes/datePicker.ts +223 -0
- package/src/recipes/divider.ts +38 -32
- package/src/recipes/formField.ts +41 -23
- package/src/recipes/highlightText.ts +14 -0
- package/src/recipes/icon.ts +13 -0
- package/src/recipes/list.ts +14 -0
- package/src/recipes/listItem.ts +310 -0
- package/src/recipes/listItemGroup.ts +62 -0
- package/src/recipes/menu.ts +90 -163
- package/src/recipes/modal.ts +55 -25
- package/src/recipes/radio.ts +29 -20
- package/src/recipes/radioInput.ts +25 -0
- package/src/recipes/recipes-regular.ts +14 -0
- package/src/recipes/recipes-slot.ts +19 -0
- package/src/recipes/select.ts +1 -1
- package/src/recipes/spinner.ts +49 -23
- package/src/recipes/tag.ts +80 -84
- package/src/recipes/text.ts +18 -19
- package/src/recipes/textInput.ts +205 -0
- package/src/recipes/textarea.ts +65 -138
- package/src/recipes/themeSwitcher.ts +3 -3
- package/src/recipes/timePicker.ts +199 -0
- package/src/recipes/toggle.ts +72 -99
- package/src/recipes/toggleInput.ts +26 -0
- package/src/recipes/tooltip.ts +52 -343
- package/src/styles/index.css +1 -1
- package/src/styles/primitives/borders.ts +7 -1
- package/src/styles/primitives/colors.ts +51 -0
- package/src/styles/primitives/fontSizes.ts +1 -0
- package/src/styles/primitives/index.ts +2 -1
- package/src/styles/primitives/shadows.ts +9 -9
- package/src/styles/primitives/sizes.ts +1 -0
- package/src/styles/primitives/zIndex.ts +17 -0
- package/src/styles/semantics/colors.ts +137 -82
- package/src/styles/semantics/index.ts +1 -0
- package/src/styles/semantics/zIndex.ts +18 -0
- package/src/styles/utilities/breakpoints.ts +6 -6
- package/src/styles/utilities/index.ts +3 -0
- package/src/styles/utilities/textStyles.ts +70 -0
- package/src/utils/splitProps.ts +3 -3
- package/dist/preset-DCCViEDs.js.map +0 -1
- package/dist/styles/global.css +0 -148
- package/dist/styles/recipes/avatar.css +0 -185
- package/dist/styles/recipes/badge.css +0 -85
- package/dist/styles/recipes/breadcrumbs.css +0 -38
- package/dist/styles/recipes/button.css +0 -195
- package/dist/styles/recipes/card.css +0 -57
- package/dist/styles/recipes/checkbox-input.css +0 -12
- package/dist/styles/recipes/checkbox.css +0 -90
- package/dist/styles/recipes/chip.css +0 -137
- package/dist/styles/recipes/code.css +0 -12
- package/dist/styles/recipes/divider.css +0 -40
- package/dist/styles/recipes/form-field.css +0 -39
- package/dist/styles/recipes/heading.css +0 -40
- package/dist/styles/recipes/icon-button.css +0 -181
- package/dist/styles/recipes/label.css +0 -14
- package/dist/styles/recipes/link.css +0 -49
- package/dist/styles/recipes/menu.css +0 -141
- package/dist/styles/recipes/modal.css +0 -99
- package/dist/styles/recipes/pre.css +0 -16
- package/dist/styles/recipes/radio-input.css +0 -7
- package/dist/styles/recipes/radio.css +0 -82
- package/dist/styles/recipes/select.css +0 -103
- package/dist/styles/recipes/spinner.css +0 -36
- package/dist/styles/recipes/tag.css +0 -27
- package/dist/styles/recipes/text.css +0 -46
- package/dist/styles/recipes/textarea.css +0 -91
- package/dist/styles/recipes/textinput.css +0 -87
- package/dist/styles/recipes/theme-switcher.css +0 -53
- package/dist/styles/recipes/toggle-input.css +0 -12
- package/dist/styles/recipes/toggle.css +0 -125
- package/dist/styles/recipes/tooltip.css +0 -133
- package/dist/styles/recipes.css +0 -30
- package/dist/styles/reset.css +0 -1
- package/dist/styles/tokens.css +0 -1016
- package/dist/styles/utilities.css +0 -1694
- package/src/recipes/checkboxinput.ts +0 -15
- package/src/recipes/index.ts +0 -28
- package/src/recipes/radioinput.ts +0 -12
- package/src/recipes/textinput.ts +0 -100
- package/src/recipes/toggleinput.ts +0 -16
- package/src/utils/injectSprite.ts +0 -36
- package/src/utils/spriteContent.ts +0 -4
package/package.json
CHANGED
|
@@ -1,25 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okshaun/components",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "okshaun design system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
8
|
+
"types": "./dist/types/index.d.ts",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"prepare": "npx panda
|
|
11
|
-
"dev": "npx panda
|
|
12
|
-
"build": "rm -rf dist && PANDA_STATIC=true npx panda
|
|
13
|
-
"lint": "biome lint
|
|
14
|
-
"check": "biome check
|
|
15
|
-
"
|
|
10
|
+
"prepare": "npx panda && npx simple-git-hooks",
|
|
11
|
+
"dev": "npx panda --watch & vite",
|
|
12
|
+
"build": "rm -rf dist && PANDA_STATIC=true npx panda && npx panda spec && npx panda ship --outfile ./panda.buildinfo.json && vite build",
|
|
13
|
+
"lint": "biome lint .",
|
|
14
|
+
"check": "biome check .",
|
|
15
|
+
"check:write": "biome check . --write",
|
|
16
|
+
"format": "biome format . --write",
|
|
17
|
+
"typecheck": "tsc --noEmit",
|
|
18
|
+
"standards:check": "node tools/validate-standards.mjs",
|
|
19
|
+
"standards:changed": "node tools/validate-standards.mjs --changed",
|
|
20
|
+
"standards:staged": "node tools/validate-standards.mjs --staged",
|
|
21
|
+
"standards:test": "node --test tools/tests/*.test.mjs",
|
|
22
|
+
"validate": "node tools/run-validate.mjs --full --include-typecheck",
|
|
23
|
+
"validate:staged": "node tools/run-validate.mjs --staged --write",
|
|
24
|
+
"validate:full": "node tools/run-validate.mjs --full --report-only --include-typecheck",
|
|
16
25
|
"preview": "vite preview",
|
|
17
26
|
"generate-sprite": "node src/utils/generate-sprite.js",
|
|
18
|
-
"storybook": "PANDA_STATIC=true storybook dev -p 6006",
|
|
19
|
-
"storybook:build": "PANDA_STATIC=true storybook build",
|
|
20
|
-
"
|
|
27
|
+
"storybook": "PANDA_STATIC=true STORYBOOK=true storybook dev -p 6006",
|
|
28
|
+
"storybook:build": "PANDA_STATIC=true STORYBOOK=true storybook build",
|
|
29
|
+
"playroom": "node .playroom/playroom-dev.js",
|
|
30
|
+
"playroom:css": "node .playroom/playroom-dev.js --css-only",
|
|
31
|
+
"playroom:build": "node .playroom/playroom-build.js",
|
|
32
|
+
"panda": "npx panda --watch",
|
|
33
|
+
"panda:mcp": "npx panda mcp",
|
|
21
34
|
"prepublishOnly": "npm run build",
|
|
22
|
-
"
|
|
35
|
+
"doctor": "npm run doctor:react && npm run doctor:storybook",
|
|
36
|
+
"doctor:react": "npx -y react-doctor@latest .",
|
|
37
|
+
"doctor:storybook": "npx storybook doctor"
|
|
38
|
+
},
|
|
39
|
+
"simple-git-hooks": {
|
|
40
|
+
"pre-commit": "npm run validate:staged"
|
|
23
41
|
},
|
|
24
42
|
"files": [
|
|
25
43
|
"./dist/",
|
|
@@ -56,29 +74,36 @@
|
|
|
56
74
|
}
|
|
57
75
|
},
|
|
58
76
|
"dependencies": {
|
|
59
|
-
"@floating-ui/react": "^0.27.16"
|
|
60
|
-
"date-fns": "^4.1.0"
|
|
77
|
+
"@floating-ui/react": "^0.27.16"
|
|
61
78
|
},
|
|
62
79
|
"devDependencies": {
|
|
63
|
-
"@
|
|
80
|
+
"@babel/core": "^7.28.3",
|
|
81
|
+
"@babel/preset-react": "^7.28.5",
|
|
82
|
+
"@babel/preset-typescript": "^7.28.5",
|
|
83
|
+
"@biomejs/biome": "2.0.6",
|
|
64
84
|
"@fontsource-variable/piazzolla": "^5.2.8",
|
|
65
85
|
"@fontsource/ibm-plex-mono": "^5.2.7",
|
|
66
86
|
"@fontsource/ibm-plex-sans": "^5.2.8",
|
|
67
87
|
"@pandacss/dev": "^1.8.0",
|
|
68
|
-
"@storybook/addon-
|
|
69
|
-
"@storybook/addon-
|
|
70
|
-
"@storybook/addon-
|
|
71
|
-
"@storybook/
|
|
72
|
-
"@storybook/
|
|
73
|
-
"@storybook/react
|
|
74
|
-
"@storybook/
|
|
88
|
+
"@storybook/addon-a11y": "^8.6.17",
|
|
89
|
+
"@storybook/addon-essentials": "^8.6.17",
|
|
90
|
+
"@storybook/addon-interactions": "^8.6.17",
|
|
91
|
+
"@storybook/addon-themes": "^8.6.17",
|
|
92
|
+
"@storybook/blocks": "^8.6.17",
|
|
93
|
+
"@storybook/react": "^8.6.17",
|
|
94
|
+
"@storybook/react-vite": "^8.6.17",
|
|
95
|
+
"@storybook/test": "^8.6.17",
|
|
75
96
|
"@types/node": "^22.15.30",
|
|
76
97
|
"@types/react": "19.0.8",
|
|
77
98
|
"@types/react-dom": "19.0.3",
|
|
78
99
|
"@vitejs/plugin-react": "^4.3.4",
|
|
100
|
+
"babel-loader": "^10.0.0",
|
|
79
101
|
"gh-pages": "^6.2.0",
|
|
102
|
+
"playroom": "^0.44.0",
|
|
80
103
|
"postcss": "^8.5.1",
|
|
81
|
-
"
|
|
104
|
+
"react-doctor": "^0.0.29",
|
|
105
|
+
"simple-git-hooks": "^2.13.1",
|
|
106
|
+
"storybook": "^8.6.17",
|
|
82
107
|
"svg-sprite": "^2.0.4",
|
|
83
108
|
"svgo": "^3.0.2",
|
|
84
109
|
"typescript": "^5.7.3",
|
package/src/recipes/avatar.ts
CHANGED
|
@@ -1,205 +1,205 @@
|
|
|
1
|
-
import { defineSlotRecipe } from
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev';
|
|
2
2
|
|
|
3
3
|
export const avatarRecipe = defineSlotRecipe({
|
|
4
|
-
className:
|
|
5
|
-
jsx: [
|
|
6
|
-
slots: [
|
|
4
|
+
className: 'avatar',
|
|
5
|
+
jsx: ['Avatar'],
|
|
6
|
+
slots: ['root', 'image', 'fallback', 'presence', 'status'],
|
|
7
7
|
staticCss: [
|
|
8
8
|
{
|
|
9
|
-
size: [
|
|
10
|
-
shape: [
|
|
9
|
+
size: ['xs', 'sm', 'md', 'lx', 'xl', '2xl'],
|
|
10
|
+
shape: ['circle', 'square', 'hexagon'],
|
|
11
11
|
},
|
|
12
12
|
],
|
|
13
13
|
base: {
|
|
14
14
|
root: {
|
|
15
|
-
display:
|
|
16
|
-
position:
|
|
17
|
-
alignItems:
|
|
18
|
-
justifyContent:
|
|
19
|
-
verticalAlign:
|
|
15
|
+
display: 'inline-flex',
|
|
16
|
+
position: 'relative',
|
|
17
|
+
alignItems: 'center',
|
|
18
|
+
justifyContent: 'center',
|
|
19
|
+
verticalAlign: 'middle',
|
|
20
20
|
flexShrink: 0,
|
|
21
|
-
color:
|
|
22
|
-
bg:
|
|
23
|
-
userSelect:
|
|
24
|
-
aspectRatio:
|
|
21
|
+
color: 'text',
|
|
22
|
+
bg: 'bg.neutral',
|
|
23
|
+
userSelect: 'none',
|
|
24
|
+
aspectRatio: 'square',
|
|
25
25
|
},
|
|
26
26
|
image: {
|
|
27
|
-
w:
|
|
28
|
-
h:
|
|
29
|
-
objectFit:
|
|
30
|
-
overflow:
|
|
27
|
+
w: 'full',
|
|
28
|
+
h: 'full',
|
|
29
|
+
objectFit: 'cover',
|
|
30
|
+
overflow: 'hidden',
|
|
31
31
|
},
|
|
32
32
|
fallback: {
|
|
33
|
-
display:
|
|
34
|
-
alignItems:
|
|
35
|
-
justifyContent:
|
|
36
|
-
w:
|
|
37
|
-
h:
|
|
38
|
-
fontFamily:
|
|
39
|
-
fontWeight:
|
|
40
|
-
textTransform:
|
|
41
|
-
color:
|
|
33
|
+
display: 'flex',
|
|
34
|
+
alignItems: 'center',
|
|
35
|
+
justifyContent: 'center',
|
|
36
|
+
w: 'full',
|
|
37
|
+
h: 'full',
|
|
38
|
+
fontFamily: 'sans',
|
|
39
|
+
fontWeight: 'medium',
|
|
40
|
+
textTransform: 'uppercase',
|
|
41
|
+
color: 'text.subtle',
|
|
42
42
|
},
|
|
43
43
|
presence: {
|
|
44
|
-
position:
|
|
45
|
-
bottom:
|
|
46
|
-
right:
|
|
47
|
-
borderRadius:
|
|
48
|
-
borderWidth:
|
|
49
|
-
borderStyle:
|
|
50
|
-
borderColor:
|
|
51
|
-
zIndex:
|
|
44
|
+
position: 'absolute',
|
|
45
|
+
bottom: '0',
|
|
46
|
+
right: '0',
|
|
47
|
+
borderRadius: '999',
|
|
48
|
+
borderWidth: '2',
|
|
49
|
+
borderStyle: 'solid',
|
|
50
|
+
borderColor: 'bg',
|
|
51
|
+
zIndex: 'raised',
|
|
52
52
|
},
|
|
53
53
|
status: {
|
|
54
|
-
position:
|
|
55
|
-
top:
|
|
56
|
-
right:
|
|
57
|
-
display:
|
|
58
|
-
alignItems:
|
|
59
|
-
justifyContent:
|
|
60
|
-
borderRadius:
|
|
61
|
-
borderWidth:
|
|
62
|
-
borderStyle:
|
|
63
|
-
borderColor:
|
|
64
|
-
zIndex:
|
|
54
|
+
position: 'absolute',
|
|
55
|
+
top: '0',
|
|
56
|
+
right: '0',
|
|
57
|
+
display: 'flex',
|
|
58
|
+
alignItems: 'center',
|
|
59
|
+
justifyContent: 'center',
|
|
60
|
+
borderRadius: '999',
|
|
61
|
+
borderWidth: '2',
|
|
62
|
+
borderStyle: 'solid',
|
|
63
|
+
borderColor: 'bg',
|
|
64
|
+
zIndex: 'raised',
|
|
65
65
|
},
|
|
66
66
|
},
|
|
67
67
|
variants: {
|
|
68
68
|
size: {
|
|
69
69
|
xs: {
|
|
70
70
|
root: {
|
|
71
|
-
w:
|
|
72
|
-
h:
|
|
71
|
+
w: '16',
|
|
72
|
+
h: '16',
|
|
73
73
|
},
|
|
74
74
|
fallback: {
|
|
75
|
-
fontSize:
|
|
75
|
+
fontSize: '8',
|
|
76
76
|
},
|
|
77
77
|
presence: {
|
|
78
|
-
w:
|
|
79
|
-
h:
|
|
78
|
+
w: '6',
|
|
79
|
+
h: '6',
|
|
80
80
|
},
|
|
81
81
|
status: {
|
|
82
|
-
w:
|
|
83
|
-
h:
|
|
82
|
+
w: '8',
|
|
83
|
+
h: '8',
|
|
84
84
|
},
|
|
85
85
|
},
|
|
86
86
|
sm: {
|
|
87
87
|
root: {
|
|
88
|
-
w:
|
|
89
|
-
h:
|
|
88
|
+
w: '20',
|
|
89
|
+
h: '20',
|
|
90
90
|
},
|
|
91
91
|
fallback: {
|
|
92
|
-
fontSize:
|
|
92
|
+
fontSize: '10',
|
|
93
93
|
},
|
|
94
94
|
presence: {
|
|
95
|
-
w:
|
|
96
|
-
h:
|
|
95
|
+
w: '8',
|
|
96
|
+
h: '8',
|
|
97
97
|
},
|
|
98
98
|
status: {
|
|
99
|
-
w:
|
|
100
|
-
h:
|
|
99
|
+
w: '10',
|
|
100
|
+
h: '10',
|
|
101
101
|
},
|
|
102
102
|
},
|
|
103
103
|
md: {
|
|
104
104
|
root: {
|
|
105
|
-
w:
|
|
106
|
-
h:
|
|
105
|
+
w: '24',
|
|
106
|
+
h: '24',
|
|
107
107
|
},
|
|
108
108
|
fallback: {
|
|
109
|
-
fontSize:
|
|
109
|
+
fontSize: '12',
|
|
110
110
|
},
|
|
111
111
|
presence: {
|
|
112
|
-
w:
|
|
113
|
-
h:
|
|
112
|
+
w: '8',
|
|
113
|
+
h: '8',
|
|
114
114
|
},
|
|
115
115
|
status: {
|
|
116
|
-
w:
|
|
117
|
-
h:
|
|
116
|
+
w: '10',
|
|
117
|
+
h: '10',
|
|
118
118
|
},
|
|
119
119
|
},
|
|
120
120
|
lg: {
|
|
121
121
|
root: {
|
|
122
|
-
w:
|
|
123
|
-
h:
|
|
122
|
+
w: '32',
|
|
123
|
+
h: '32',
|
|
124
124
|
},
|
|
125
125
|
fallback: {
|
|
126
|
-
fontSize:
|
|
126
|
+
fontSize: '14',
|
|
127
127
|
},
|
|
128
128
|
presence: {
|
|
129
|
-
w:
|
|
130
|
-
h:
|
|
129
|
+
w: '10',
|
|
130
|
+
h: '10',
|
|
131
131
|
},
|
|
132
132
|
status: {
|
|
133
|
-
w:
|
|
134
|
-
h:
|
|
133
|
+
w: '12',
|
|
134
|
+
h: '12',
|
|
135
135
|
},
|
|
136
136
|
},
|
|
137
137
|
xl: {
|
|
138
138
|
root: {
|
|
139
|
-
w:
|
|
140
|
-
h:
|
|
139
|
+
w: '48',
|
|
140
|
+
h: '48',
|
|
141
141
|
},
|
|
142
142
|
fallback: {
|
|
143
|
-
fontSize:
|
|
143
|
+
fontSize: '20',
|
|
144
144
|
},
|
|
145
145
|
presence: {
|
|
146
|
-
w:
|
|
147
|
-
h:
|
|
146
|
+
w: '12',
|
|
147
|
+
h: '12',
|
|
148
148
|
},
|
|
149
149
|
status: {
|
|
150
|
-
w:
|
|
151
|
-
h:
|
|
150
|
+
w: '16',
|
|
151
|
+
h: '16',
|
|
152
152
|
},
|
|
153
153
|
},
|
|
154
|
-
|
|
154
|
+
'2xl': {
|
|
155
155
|
root: {
|
|
156
|
-
w:
|
|
157
|
-
h:
|
|
156
|
+
w: '64',
|
|
157
|
+
h: '64',
|
|
158
158
|
},
|
|
159
159
|
fallback: {
|
|
160
|
-
fontSize:
|
|
160
|
+
fontSize: '24',
|
|
161
161
|
},
|
|
162
162
|
presence: {
|
|
163
|
-
w:
|
|
164
|
-
h:
|
|
163
|
+
w: '14',
|
|
164
|
+
h: '14',
|
|
165
165
|
},
|
|
166
166
|
status: {
|
|
167
|
-
w:
|
|
168
|
-
h:
|
|
167
|
+
w: '20',
|
|
168
|
+
h: '20',
|
|
169
169
|
},
|
|
170
170
|
},
|
|
171
171
|
},
|
|
172
172
|
shape: {
|
|
173
173
|
circle: {
|
|
174
174
|
root: {
|
|
175
|
-
borderRadius:
|
|
175
|
+
borderRadius: '999',
|
|
176
176
|
},
|
|
177
177
|
image: {
|
|
178
|
-
borderRadius:
|
|
178
|
+
borderRadius: '999',
|
|
179
179
|
},
|
|
180
180
|
},
|
|
181
181
|
square: {
|
|
182
182
|
root: {
|
|
183
|
-
borderRadius:
|
|
183
|
+
borderRadius: '4',
|
|
184
184
|
},
|
|
185
185
|
image: {
|
|
186
|
-
borderRadius:
|
|
186
|
+
borderRadius: '4',
|
|
187
187
|
},
|
|
188
188
|
},
|
|
189
189
|
hexagon: {
|
|
190
190
|
root: {
|
|
191
191
|
clipPath:
|
|
192
|
-
|
|
192
|
+
'polygon(45% 1.33975%,46.5798% .60307%,48.26352% .15192%,50% 0,51.73648% .15192%,53.4202% .60307%,55% 1.33975%,89.64102% 21.33975%,91.06889% 22.33956%,92.30146% 23.57212%,93.30127% 25%,94.03794% 26.5798%,94.48909% 28.26352%,94.64102% 30%,94.64102% 70%,94.48909% 71.73648%,94.03794% 73.4202%,93.30127% 75%,92.30146% 76.42788%,91.06889% 77.66044%,89.64102% 78.66025%,55% 98.66025%,53.4202% 99.39693%,51.73648% 99.84808%,50% 100%,48.26352% 99.84808%,46.5798% 99.39693%,45% 98.66025%,10.35898% 78.66025%,8.93111% 77.66044%,7.69854% 76.42788%,6.69873% 75%,5.96206% 73.4202%,5.51091% 71.73648%,5.35898% 70%,5.35898% 30%,5.51091% 28.26352%,5.96206% 26.5798%,6.69873% 25%,7.69854% 23.57212%,8.93111% 22.33956%,10.35898% 21.33975%)',
|
|
193
193
|
},
|
|
194
194
|
image: {
|
|
195
195
|
clipPath:
|
|
196
|
-
|
|
196
|
+
'polygon(45% 1.33975%,46.5798% .60307%,48.26352% .15192%,50% 0,51.73648% .15192%,53.4202% .60307%,55% 1.33975%,89.64102% 21.33975%,91.06889% 22.33956%,92.30146% 23.57212%,93.30127% 25%,94.03794% 26.5798%,94.48909% 28.26352%,94.64102% 30%,94.64102% 70%,94.48909% 71.73648%,94.03794% 73.4202%,93.30127% 75%,92.30146% 76.42788%,91.06889% 77.66044%,89.64102% 78.66025%,55% 98.66025%,53.4202% 99.39693%,51.73648% 99.84808%,50% 100%,48.26352% 99.84808%,46.5798% 99.39693%,45% 98.66025%,10.35898% 78.66025%,8.93111% 77.66044%,7.69854% 76.42788%,6.69873% 75%,5.96206% 73.4202%,5.51091% 71.73648%,5.35898% 70%,5.35898% 30%,5.51091% 28.26352%,5.96206% 26.5798%,6.69873% 25%,7.69854% 23.57212%,8.93111% 22.33956%,10.35898% 21.33975%)',
|
|
197
197
|
},
|
|
198
198
|
},
|
|
199
199
|
},
|
|
200
200
|
},
|
|
201
201
|
defaultVariants: {
|
|
202
|
-
size:
|
|
203
|
-
shape:
|
|
202
|
+
size: 'md',
|
|
203
|
+
shape: 'circle',
|
|
204
204
|
},
|
|
205
205
|
});
|
package/src/recipes/badge.ts
CHANGED
|
@@ -17,10 +17,10 @@ export const badgeRecipe = defineSlotRecipe({
|
|
|
17
17
|
borderRadius: '999',
|
|
18
18
|
fontWeight: 'medium',
|
|
19
19
|
fontFamily: 'sans',
|
|
20
|
-
lineHeight: '
|
|
20
|
+
lineHeight: 'none',
|
|
21
21
|
whiteSpace: 'nowrap',
|
|
22
22
|
userSelect: 'none',
|
|
23
|
-
zIndex: '
|
|
23
|
+
zIndex: 'raised',
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
26
|
variants: {
|
|
@@ -89,50 +89,50 @@ export const badgeRecipe = defineSlotRecipe({
|
|
|
89
89
|
variant: {
|
|
90
90
|
neutral: {
|
|
91
91
|
indicator: {
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
color: { base: 'neutral.110', _dark: 'neutral.0' },
|
|
93
|
+
bg: { base: 'neutral.40', _dark: 'neutral.70' },
|
|
94
94
|
},
|
|
95
95
|
},
|
|
96
96
|
subtle: {
|
|
97
97
|
indicator: {
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
color: { base: 'neutral.100', _dark: 'darkNeutral.120' },
|
|
99
|
+
bg: { base: 'neutralA.20', _dark: 'darkNeutralA.20' },
|
|
100
100
|
},
|
|
101
101
|
},
|
|
102
|
-
|
|
102
|
+
bold: {
|
|
103
103
|
indicator: {
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
color: { base: 'neutral.0', _dark: 'darkNeutral.10' },
|
|
105
|
+
bg: { base: 'darkNeutral.0', _dark: 'neutral.0' },
|
|
106
106
|
},
|
|
107
107
|
},
|
|
108
|
-
|
|
108
|
+
inverse: {
|
|
109
109
|
indicator: {
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
color: { base: 'neutral.110', _dark: 'darkNeutral.120' },
|
|
111
|
+
bg: { base: 'neutral.0', _dark: 'darkNeutral.0' },
|
|
112
112
|
},
|
|
113
113
|
},
|
|
114
114
|
success: {
|
|
115
115
|
indicator: {
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
color: { base: 'neutral.0', _dark: 'darkNeutral.0' },
|
|
117
|
+
bg: { base: 'green.50', _dark: 'green.40' },
|
|
118
118
|
},
|
|
119
119
|
},
|
|
120
|
-
|
|
120
|
+
warning: {
|
|
121
121
|
indicator: {
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
color: { base: 'neutral.100', _dark: 'darkNeutral.10' },
|
|
123
|
+
bg: { base: 'orange.30', _dark: 'orange.30' },
|
|
124
124
|
},
|
|
125
125
|
},
|
|
126
|
-
|
|
126
|
+
danger: {
|
|
127
127
|
indicator: {
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
color: { base: 'neutral.0', _dark: 'neutral.0' },
|
|
129
|
+
bg: { base: 'red.50', _dark: 'red.50' },
|
|
130
130
|
},
|
|
131
131
|
},
|
|
132
132
|
info: {
|
|
133
133
|
indicator: {
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
color: { base: 'neutral.0', _dark: 'darkNeutral.10' },
|
|
135
|
+
bg: { base: 'blue.50', _dark: 'blue.40' },
|
|
136
136
|
},
|
|
137
137
|
},
|
|
138
138
|
},
|
|
@@ -174,21 +174,4 @@ export const badgeRecipe = defineSlotRecipe({
|
|
|
174
174
|
size: 'md',
|
|
175
175
|
variant: 'danger',
|
|
176
176
|
},
|
|
177
|
-
// staticCss: [
|
|
178
|
-
// {
|
|
179
|
-
// size: ['sm', 'md', 'lg'],
|
|
180
|
-
// standalone: ['true', 'false'],
|
|
181
|
-
// dot: ['true', 'false'],
|
|
182
|
-
// variant: [
|
|
183
|
-
// 'neutral',
|
|
184
|
-
// 'inverted',
|
|
185
|
-
// 'subtle',
|
|
186
|
-
// 'subtle-inverted',
|
|
187
|
-
// 'success',
|
|
188
|
-
// 'danger',
|
|
189
|
-
// 'warning',
|
|
190
|
-
// 'info',
|
|
191
|
-
// ],
|
|
192
|
-
// },
|
|
193
|
-
// ],
|
|
194
177
|
});
|
package/src/recipes/box.ts
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import { defineRecipe } from '@pandacss/dev';
|
|
2
2
|
|
|
3
|
-
const boxBase = {};
|
|
4
|
-
|
|
5
|
-
const boxVariants = {};
|
|
6
|
-
|
|
7
3
|
export const boxRecipe = defineRecipe({
|
|
8
4
|
className: 'box',
|
|
9
5
|
jsx: ['Box'],
|
|
10
|
-
base:
|
|
11
|
-
variants: boxVariants,
|
|
12
|
-
defaultVariants: {},
|
|
6
|
+
base: {},
|
|
13
7
|
});
|
|
@@ -1,29 +1,46 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
display: 'flex',
|
|
5
|
-
alignItems: 'center',
|
|
6
|
-
'& li': {
|
|
7
|
-
display: 'flex',
|
|
8
|
-
alignItems: 'center',
|
|
9
|
-
},
|
|
10
|
-
'& a': {
|
|
11
|
-
color: { base: 'gray.60', _dark: 'gray.60' },
|
|
12
|
-
_focusVisible: {
|
|
13
|
-
color: 'blue.50',
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
'& p': {
|
|
17
|
-
color: { base: 'gray.90', _dark: 'gray.10' },
|
|
18
|
-
},
|
|
19
|
-
'& span': {
|
|
20
|
-
mx: '6',
|
|
21
|
-
color: 'gray.20',
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export const breadcrumbsRecipe = defineRecipe({
|
|
3
|
+
export const breadcrumbsRecipe = defineSlotRecipe({
|
|
26
4
|
className: 'breadcrumbs',
|
|
27
5
|
jsx: ['Breadcrumbs'],
|
|
28
|
-
|
|
6
|
+
slots: ['wrapper', 'slash', 'linkSegment', 'currentSegment'],
|
|
7
|
+
base: {
|
|
8
|
+
wrapper: {
|
|
9
|
+
display: 'flex',
|
|
10
|
+
gap: '6',
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
fontFamily: 'mono',
|
|
13
|
+
fontSize: '14',
|
|
14
|
+
'& li': {
|
|
15
|
+
display: 'flex',
|
|
16
|
+
gap: '6',
|
|
17
|
+
alignItems: 'center',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
slash: {
|
|
21
|
+
fontFamily: 'mono',
|
|
22
|
+
fontSize: '14',
|
|
23
|
+
color: 'text.placeholder',
|
|
24
|
+
},
|
|
25
|
+
linkSegment: {
|
|
26
|
+
fontFamily: 'mono',
|
|
27
|
+
fontSize: '14',
|
|
28
|
+
color: 'text.subtlest',
|
|
29
|
+
fontWeight: 'normal',
|
|
30
|
+
whiteSpace: 'nowrap',
|
|
31
|
+
_hover: {
|
|
32
|
+
color: 'link',
|
|
33
|
+
},
|
|
34
|
+
_focusVisible: {
|
|
35
|
+
color: 'blue.50',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
currentSegment: {
|
|
39
|
+
fontFamily: 'mono',
|
|
40
|
+
fontSize: '14',
|
|
41
|
+
color: 'text',
|
|
42
|
+
fontWeight: 'bold',
|
|
43
|
+
whiteSpace: 'nowrap',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
29
46
|
});
|