@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.
Files changed (128) hide show
  1. package/dist/.mcp.json +2 -5
  2. package/dist/icon-metadata.json +5173 -0
  3. package/dist/index.js +17126 -9342
  4. package/dist/index.js.map +1 -1
  5. package/dist/panda.buildinfo.json +693 -0
  6. package/dist/playroom-static.css +187432 -0
  7. package/dist/{preset-DCCViEDs.js → preset-Coz-VwQR.js} +3535 -2697
  8. package/dist/preset-Coz-VwQR.js.map +1 -0
  9. package/dist/preset.js +1 -1
  10. package/dist/specs/color-palette.json +22 -1
  11. package/dist/specs/patterns.json +0 -16
  12. package/dist/specs/recipes.json +411 -247
  13. package/dist/specs/semantic-tokens.json +330 -115
  14. package/dist/specs/text-styles.json +72 -0
  15. package/dist/specs/tokens.json +237 -27
  16. package/dist/sprite.svg +1 -1
  17. package/dist/sprite.symbol.html +6662 -320
  18. package/dist/styles.css +36938 -5
  19. package/dist/svgs/calendar-lock.svg +1 -0
  20. package/dist/svgs/computer.svg +1 -0
  21. package/dist/svgs/cookie.svg +1 -0
  22. package/dist/svgs/folder-check.svg +1 -0
  23. package/dist/svgs/folder-copy.svg +1 -0
  24. package/dist/svgs/folder-dashed.svg +1 -0
  25. package/dist/svgs/folder-open.svg +1 -0
  26. package/dist/svgs/folder-topic.svg +1 -0
  27. package/dist/svgs/folder.svg +1 -0
  28. package/dist/svgs/mobile.svg +1 -0
  29. package/dist/svgs/numpad.svg +1 -0
  30. package/dist/svgs/phone.svg +1 -0
  31. package/dist/svgs/qr-code.svg +1 -0
  32. package/dist/svgs/sparkle.svg +1 -0
  33. package/dist/svgs/trolley.svg +1 -0
  34. package/dist/types/index.d.ts +836 -342
  35. package/package.json +49 -24
  36. package/src/recipes/avatar.ts +98 -98
  37. package/src/recipes/badge.ts +22 -39
  38. package/src/recipes/box.ts +1 -7
  39. package/src/recipes/breadcrumbs.ts +42 -25
  40. package/src/recipes/button.ts +151 -85
  41. package/src/recipes/card.ts +5 -1
  42. package/src/recipes/checkbox.ts +23 -24
  43. package/src/recipes/checkboxInput.ts +25 -0
  44. package/src/recipes/chip.ts +35 -37
  45. package/src/recipes/code.ts +4 -4
  46. package/src/recipes/datePicker.ts +223 -0
  47. package/src/recipes/divider.ts +38 -32
  48. package/src/recipes/formField.ts +41 -23
  49. package/src/recipes/highlightText.ts +14 -0
  50. package/src/recipes/icon.ts +13 -0
  51. package/src/recipes/list.ts +14 -0
  52. package/src/recipes/listItem.ts +310 -0
  53. package/src/recipes/listItemGroup.ts +62 -0
  54. package/src/recipes/menu.ts +90 -163
  55. package/src/recipes/modal.ts +55 -25
  56. package/src/recipes/radio.ts +29 -20
  57. package/src/recipes/radioInput.ts +25 -0
  58. package/src/recipes/recipes-regular.ts +14 -0
  59. package/src/recipes/recipes-slot.ts +19 -0
  60. package/src/recipes/select.ts +1 -1
  61. package/src/recipes/spinner.ts +49 -23
  62. package/src/recipes/tag.ts +80 -84
  63. package/src/recipes/text.ts +18 -19
  64. package/src/recipes/textInput.ts +205 -0
  65. package/src/recipes/textarea.ts +65 -138
  66. package/src/recipes/themeSwitcher.ts +3 -3
  67. package/src/recipes/timePicker.ts +199 -0
  68. package/src/recipes/toggle.ts +72 -99
  69. package/src/recipes/toggleInput.ts +26 -0
  70. package/src/recipes/tooltip.ts +52 -343
  71. package/src/styles/index.css +1 -1
  72. package/src/styles/primitives/borders.ts +7 -1
  73. package/src/styles/primitives/colors.ts +51 -0
  74. package/src/styles/primitives/fontSizes.ts +1 -0
  75. package/src/styles/primitives/index.ts +2 -1
  76. package/src/styles/primitives/shadows.ts +9 -9
  77. package/src/styles/primitives/sizes.ts +1 -0
  78. package/src/styles/primitives/zIndex.ts +17 -0
  79. package/src/styles/semantics/colors.ts +137 -82
  80. package/src/styles/semantics/index.ts +1 -0
  81. package/src/styles/semantics/zIndex.ts +18 -0
  82. package/src/styles/utilities/breakpoints.ts +6 -6
  83. package/src/styles/utilities/index.ts +3 -0
  84. package/src/styles/utilities/textStyles.ts +70 -0
  85. package/src/utils/splitProps.ts +3 -3
  86. package/dist/preset-DCCViEDs.js.map +0 -1
  87. package/dist/styles/global.css +0 -148
  88. package/dist/styles/recipes/avatar.css +0 -185
  89. package/dist/styles/recipes/badge.css +0 -85
  90. package/dist/styles/recipes/breadcrumbs.css +0 -38
  91. package/dist/styles/recipes/button.css +0 -195
  92. package/dist/styles/recipes/card.css +0 -57
  93. package/dist/styles/recipes/checkbox-input.css +0 -12
  94. package/dist/styles/recipes/checkbox.css +0 -90
  95. package/dist/styles/recipes/chip.css +0 -137
  96. package/dist/styles/recipes/code.css +0 -12
  97. package/dist/styles/recipes/divider.css +0 -40
  98. package/dist/styles/recipes/form-field.css +0 -39
  99. package/dist/styles/recipes/heading.css +0 -40
  100. package/dist/styles/recipes/icon-button.css +0 -181
  101. package/dist/styles/recipes/label.css +0 -14
  102. package/dist/styles/recipes/link.css +0 -49
  103. package/dist/styles/recipes/menu.css +0 -141
  104. package/dist/styles/recipes/modal.css +0 -99
  105. package/dist/styles/recipes/pre.css +0 -16
  106. package/dist/styles/recipes/radio-input.css +0 -7
  107. package/dist/styles/recipes/radio.css +0 -82
  108. package/dist/styles/recipes/select.css +0 -103
  109. package/dist/styles/recipes/spinner.css +0 -36
  110. package/dist/styles/recipes/tag.css +0 -27
  111. package/dist/styles/recipes/text.css +0 -46
  112. package/dist/styles/recipes/textarea.css +0 -91
  113. package/dist/styles/recipes/textinput.css +0 -87
  114. package/dist/styles/recipes/theme-switcher.css +0 -53
  115. package/dist/styles/recipes/toggle-input.css +0 -12
  116. package/dist/styles/recipes/toggle.css +0 -125
  117. package/dist/styles/recipes/tooltip.css +0 -133
  118. package/dist/styles/recipes.css +0 -30
  119. package/dist/styles/reset.css +0 -1
  120. package/dist/styles/tokens.css +0 -1016
  121. package/dist/styles/utilities.css +0 -1694
  122. package/src/recipes/checkboxinput.ts +0 -15
  123. package/src/recipes/index.ts +0 -28
  124. package/src/recipes/radioinput.ts +0 -12
  125. package/src/recipes/textinput.ts +0 -100
  126. package/src/recipes/toggleinput.ts +0 -16
  127. package/src/utils/injectSprite.ts +0 -36
  128. package/src/utils/spriteContent.ts +0 -4
package/package.json CHANGED
@@ -1,25 +1,43 @@
1
1
  {
2
2
  "name": "@okshaun/components",
3
- "version": "1.0.2",
4
- "description": "A comprehensive React component library with Panda CSS theming",
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 codegen",
11
- "dev": "npx panda codegen --watch & vite",
12
- "build": "rm -rf dist && PANDA_STATIC=true npx panda codegen && npx panda cssgen --splitting && npx panda spec && npx panda init-mcp --client claude && vite build",
13
- "lint": "biome lint src/",
14
- "check": "biome check --write src/",
15
- "doctor": "npx -y react-doctor@latest .",
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
- "panda-mcp": "npx panda mcp",
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
- "format": "biome format --write src/"
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
- "@biomejs/biome": "^1.9.4",
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-essentials": "^8.6.15",
69
- "@storybook/addon-interactions": "^8.6.15",
70
- "@storybook/addon-themes": "^8.6.15",
71
- "@storybook/blocks": "^8.6.15",
72
- "@storybook/react": "^8.6.15",
73
- "@storybook/react-vite": "^8.6.15",
74
- "@storybook/test": "^8.6.15",
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
- "storybook": "^8.6.15",
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",
@@ -1,205 +1,205 @@
1
- import { defineSlotRecipe } from "@pandacss/dev";
1
+ import { defineSlotRecipe } from '@pandacss/dev';
2
2
 
3
3
  export const avatarRecipe = defineSlotRecipe({
4
- className: "avatar",
5
- jsx: ["Avatar"],
6
- slots: ["root", "image", "fallback", "presence", "status"],
4
+ className: 'avatar',
5
+ jsx: ['Avatar'],
6
+ slots: ['root', 'image', 'fallback', 'presence', 'status'],
7
7
  staticCss: [
8
8
  {
9
- size: ["xs", "sm", "md", "lx", "xl", "2xl"],
10
- shape: ["circle", "square", "hexagon"],
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: "inline-flex",
16
- position: "relative",
17
- alignItems: "center",
18
- justifyContent: "center",
19
- verticalAlign: "middle",
15
+ display: 'inline-flex',
16
+ position: 'relative',
17
+ alignItems: 'center',
18
+ justifyContent: 'center',
19
+ verticalAlign: 'middle',
20
20
  flexShrink: 0,
21
- color: "text",
22
- bg: "bg.neutral",
23
- userSelect: "none",
24
- aspectRatio: "square",
21
+ color: 'text',
22
+ bg: 'bg.neutral',
23
+ userSelect: 'none',
24
+ aspectRatio: 'square',
25
25
  },
26
26
  image: {
27
- w: "full",
28
- h: "full",
29
- objectFit: "cover",
30
- overflow: "hidden",
27
+ w: 'full',
28
+ h: 'full',
29
+ objectFit: 'cover',
30
+ overflow: 'hidden',
31
31
  },
32
32
  fallback: {
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",
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: "absolute",
45
- bottom: "0",
46
- right: "0",
47
- borderRadius: "999",
48
- borderWidth: "2",
49
- borderStyle: "solid",
50
- borderColor: "bg",
51
- zIndex: 1,
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: "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: 1,
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: "16",
72
- h: "16",
71
+ w: '16',
72
+ h: '16',
73
73
  },
74
74
  fallback: {
75
- fontSize: "8",
75
+ fontSize: '8',
76
76
  },
77
77
  presence: {
78
- w: "6",
79
- h: "6",
78
+ w: '6',
79
+ h: '6',
80
80
  },
81
81
  status: {
82
- w: "8",
83
- h: "8",
82
+ w: '8',
83
+ h: '8',
84
84
  },
85
85
  },
86
86
  sm: {
87
87
  root: {
88
- w: "20",
89
- h: "20",
88
+ w: '20',
89
+ h: '20',
90
90
  },
91
91
  fallback: {
92
- fontSize: "10",
92
+ fontSize: '10',
93
93
  },
94
94
  presence: {
95
- w: "8",
96
- h: "8",
95
+ w: '8',
96
+ h: '8',
97
97
  },
98
98
  status: {
99
- w: "10",
100
- h: "10",
99
+ w: '10',
100
+ h: '10',
101
101
  },
102
102
  },
103
103
  md: {
104
104
  root: {
105
- w: "24",
106
- h: "24",
105
+ w: '24',
106
+ h: '24',
107
107
  },
108
108
  fallback: {
109
- fontSize: "12",
109
+ fontSize: '12',
110
110
  },
111
111
  presence: {
112
- w: "8",
113
- h: "8",
112
+ w: '8',
113
+ h: '8',
114
114
  },
115
115
  status: {
116
- w: "10",
117
- h: "10",
116
+ w: '10',
117
+ h: '10',
118
118
  },
119
119
  },
120
120
  lg: {
121
121
  root: {
122
- w: "32",
123
- h: "32",
122
+ w: '32',
123
+ h: '32',
124
124
  },
125
125
  fallback: {
126
- fontSize: "14",
126
+ fontSize: '14',
127
127
  },
128
128
  presence: {
129
- w: "10",
130
- h: "10",
129
+ w: '10',
130
+ h: '10',
131
131
  },
132
132
  status: {
133
- w: "12",
134
- h: "12",
133
+ w: '12',
134
+ h: '12',
135
135
  },
136
136
  },
137
137
  xl: {
138
138
  root: {
139
- w: "48",
140
- h: "48",
139
+ w: '48',
140
+ h: '48',
141
141
  },
142
142
  fallback: {
143
- fontSize: "20",
143
+ fontSize: '20',
144
144
  },
145
145
  presence: {
146
- w: "12",
147
- h: "12",
146
+ w: '12',
147
+ h: '12',
148
148
  },
149
149
  status: {
150
- w: "16",
151
- h: "16",
150
+ w: '16',
151
+ h: '16',
152
152
  },
153
153
  },
154
- "2xl": {
154
+ '2xl': {
155
155
  root: {
156
- w: "64",
157
- h: "64",
156
+ w: '64',
157
+ h: '64',
158
158
  },
159
159
  fallback: {
160
- fontSize: "24",
160
+ fontSize: '24',
161
161
  },
162
162
  presence: {
163
- w: "14",
164
- h: "14",
163
+ w: '14',
164
+ h: '14',
165
165
  },
166
166
  status: {
167
- w: "20",
168
- h: "20",
167
+ w: '20',
168
+ h: '20',
169
169
  },
170
170
  },
171
171
  },
172
172
  shape: {
173
173
  circle: {
174
174
  root: {
175
- borderRadius: "999",
175
+ borderRadius: '999',
176
176
  },
177
177
  image: {
178
- borderRadius: "999",
178
+ borderRadius: '999',
179
179
  },
180
180
  },
181
181
  square: {
182
182
  root: {
183
- borderRadius: "4",
183
+ borderRadius: '4',
184
184
  },
185
185
  image: {
186
- borderRadius: "4",
186
+ borderRadius: '4',
187
187
  },
188
188
  },
189
189
  hexagon: {
190
190
  root: {
191
191
  clipPath:
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%)",
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
- "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%)",
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: "md",
203
- shape: "circle",
202
+ size: 'md',
203
+ shape: 'circle',
204
204
  },
205
205
  });
@@ -17,10 +17,10 @@ export const badgeRecipe = defineSlotRecipe({
17
17
  borderRadius: '999',
18
18
  fontWeight: 'medium',
19
19
  fontFamily: 'sans',
20
- lineHeight: '1',
20
+ lineHeight: 'none',
21
21
  whiteSpace: 'nowrap',
22
22
  userSelect: 'none',
23
- zIndex: '1',
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
- bg: { base: 'neutral.30', _dark: 'darkNeutral.40' },
93
- color: 'text',
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
- bg: 'bg.neutral',
99
- color: 'text',
98
+ color: { base: 'neutral.100', _dark: 'darkNeutral.120' },
99
+ bg: { base: 'neutralA.20', _dark: 'darkNeutralA.20' },
100
100
  },
101
101
  },
102
- inverted: {
102
+ bold: {
103
103
  indicator: {
104
- bg: 'bg.neutral.inverse.bold',
105
- color: 'text.inverse',
104
+ color: { base: 'neutral.0', _dark: 'darkNeutral.10' },
105
+ bg: { base: 'darkNeutral.0', _dark: 'neutral.0' },
106
106
  },
107
107
  },
108
- 'subtle-inverted': {
108
+ inverse: {
109
109
  indicator: {
110
- bg: 'bg.neutral.inverse.subtle',
111
- color: 'text',
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
- bg: 'bg.success.bold',
117
- color: 'text.inverse',
116
+ color: { base: 'neutral.0', _dark: 'darkNeutral.0' },
117
+ bg: { base: 'green.50', _dark: 'green.40' },
118
118
  },
119
119
  },
120
- danger: {
120
+ warning: {
121
121
  indicator: {
122
- bg: 'bg.danger.bold',
123
- color: 'text.inverse',
122
+ color: { base: 'neutral.100', _dark: 'darkNeutral.10' },
123
+ bg: { base: 'orange.30', _dark: 'orange.30' },
124
124
  },
125
125
  },
126
- warning: {
126
+ danger: {
127
127
  indicator: {
128
- bg: 'bg.warning.bold',
129
- color: 'text.warning.inverse',
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
- bg: 'bg.info.bold',
135
- color: 'text.inverse',
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
  });
@@ -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: boxBase,
11
- variants: boxVariants,
12
- defaultVariants: {},
6
+ base: {},
13
7
  });
@@ -1,29 +1,46 @@
1
- import { defineRecipe } from '@pandacss/dev';
1
+ import { defineSlotRecipe } from '@pandacss/dev';
2
2
 
3
- const BreadcrumbsBase = {
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
- base: BreadcrumbsBase,
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
  });