@okshaun/components 0.5.8 → 1.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 (127) hide show
  1. package/README.md +22 -26
  2. package/dist/.mcp.json +11 -0
  3. package/dist/index.d.ts +3 -1268
  4. package/dist/index.js +1202 -941
  5. package/dist/index.js.map +1 -1
  6. package/dist/okshaun-logo-white.svg +11 -0
  7. package/dist/okshaun-logo.svg +11 -0
  8. package/dist/preset-KB9Tn8-2.js +8452 -0
  9. package/dist/preset-KB9Tn8-2.js.map +1 -0
  10. package/dist/preset.js +3 -7234
  11. package/dist/preset.js.map +1 -1
  12. package/dist/specs/animation-styles.json +4 -0
  13. package/dist/specs/color-palette.json +98 -0
  14. package/dist/specs/conditions.json +1901 -0
  15. package/dist/specs/keyframes.json +137 -0
  16. package/dist/specs/layer-styles.json +23 -0
  17. package/dist/specs/patterns.json +475 -0
  18. package/dist/specs/recipes.json +907 -0
  19. package/dist/specs/semantic-tokens.json +2837 -0
  20. package/dist/specs/text-styles.json +149 -0
  21. package/dist/specs/tokens.json +2750 -0
  22. package/dist/sprite.symbol.html +1 -1
  23. package/dist/styles/global.css +148 -0
  24. package/dist/styles/recipes/avatar.css +185 -0
  25. package/dist/styles/recipes/badge.css +85 -0
  26. package/dist/styles/recipes/breadcrumbs.css +38 -0
  27. package/dist/styles/recipes/button.css +195 -0
  28. package/dist/styles/recipes/card.css +57 -0
  29. package/dist/styles/recipes/checkbox-input.css +12 -0
  30. package/dist/styles/recipes/checkbox.css +90 -0
  31. package/dist/styles/recipes/chip.css +137 -0
  32. package/dist/styles/recipes/code.css +12 -0
  33. package/dist/styles/recipes/divider.css +43 -0
  34. package/dist/styles/recipes/form-field.css +39 -0
  35. package/dist/styles/recipes/heading.css +40 -0
  36. package/dist/styles/recipes/icon-button.css +181 -0
  37. package/dist/styles/recipes/label.css +14 -0
  38. package/dist/styles/recipes/link.css +49 -0
  39. package/dist/styles/recipes/menu.css +141 -0
  40. package/dist/styles/recipes/modal.css +99 -0
  41. package/dist/styles/recipes/pre.css +16 -0
  42. package/dist/styles/recipes/radio-input.css +7 -0
  43. package/dist/styles/recipes/radio.css +82 -0
  44. package/dist/styles/recipes/select.css +103 -0
  45. package/dist/styles/recipes/spinner.css +36 -0
  46. package/dist/styles/recipes/tag.css +27 -0
  47. package/dist/styles/recipes/text.css +46 -0
  48. package/dist/styles/recipes/textarea.css +91 -0
  49. package/dist/styles/recipes/textinput.css +87 -0
  50. package/dist/styles/recipes/theme-switcher.css +53 -0
  51. package/dist/styles/recipes/toggle-input.css +12 -0
  52. package/dist/styles/recipes/toggle.css +125 -0
  53. package/dist/styles/recipes/tooltip.css +133 -0
  54. package/dist/styles/recipes.css +30 -0
  55. package/dist/styles/reset.css +1 -0
  56. package/dist/styles/tokens.css +1016 -0
  57. package/dist/styles/utilities.css +1694 -0
  58. package/dist/styles.css +7 -0
  59. package/dist/types/index.d.ts +21626 -0
  60. package/dist/types/preset.d.ts +19 -0
  61. package/package.json +37 -35
  62. package/src/recipes/avatar.ts +205 -0
  63. package/src/recipes/badge.ts +203 -0
  64. package/src/recipes/box.ts +13 -0
  65. package/src/recipes/breadcrumbs.ts +29 -0
  66. package/src/recipes/button.ts +319 -0
  67. package/src/recipes/card.ts +148 -0
  68. package/src/recipes/checkbox.ts +87 -0
  69. package/src/recipes/checkboxinput.ts +15 -0
  70. package/src/recipes/chip.ts +189 -0
  71. package/src/recipes/code.ts +35 -0
  72. package/src/recipes/divider.ts +41 -0
  73. package/src/recipes/formField.ts +60 -0
  74. package/src/recipes/index.ts +28 -0
  75. package/src/recipes/menu.ts +205 -0
  76. package/src/recipes/modal.ts +120 -0
  77. package/src/recipes/radio.ts +71 -0
  78. package/src/recipes/radioinput.ts +12 -0
  79. package/src/recipes/select.ts +142 -0
  80. package/src/recipes/spinner.ts +52 -0
  81. package/src/recipes/tag.ts +262 -0
  82. package/src/recipes/text.ts +193 -0
  83. package/src/recipes/textarea.ts +153 -0
  84. package/src/recipes/textinput.ts +100 -0
  85. package/src/recipes/themeSwitcher.ts +48 -0
  86. package/src/recipes/toggle.ts +116 -0
  87. package/src/recipes/toggleinput.ts +16 -0
  88. package/src/recipes/tooltip.ts +359 -0
  89. package/src/styles/index.css +1 -0
  90. package/src/styles/primitives/animations.ts +16 -0
  91. package/src/styles/primitives/aspectRatios.ts +22 -0
  92. package/src/styles/primitives/blurs.ts +25 -0
  93. package/src/styles/primitives/borderWidths.ts +10 -0
  94. package/src/styles/primitives/borders.ts +36 -0
  95. package/src/styles/primitives/colors.ts +228 -0
  96. package/src/styles/primitives/durations.ts +25 -0
  97. package/src/styles/primitives/easings.ts +19 -0
  98. package/src/styles/primitives/fontSizes.ts +16 -0
  99. package/src/styles/primitives/fontWeights.ts +9 -0
  100. package/src/styles/primitives/fonts.ts +18 -0
  101. package/src/styles/primitives/index.ts +46 -0
  102. package/src/styles/primitives/letterSpacings.ts +22 -0
  103. package/src/styles/primitives/lineHeights.ts +16 -0
  104. package/src/styles/primitives/radii.ts +14 -0
  105. package/src/styles/primitives/shadows.ts +73 -0
  106. package/src/styles/primitives/sizes.ts +86 -0
  107. package/src/styles/primitives/spacings.ts +7 -0
  108. package/src/styles/semantics/colors.ts +774 -0
  109. package/src/styles/semantics/index.ts +2 -0
  110. package/src/styles/semantics/shadows.ts +32 -0
  111. package/src/styles/utilities/breakpoints.ts +8 -0
  112. package/src/styles/utilities/conditions.ts +140 -0
  113. package/src/styles/utilities/containerSizes.ts +17 -0
  114. package/src/styles/utilities/filters.ts +12 -0
  115. package/src/styles/utilities/globalStyle.ts +93 -0
  116. package/src/styles/utilities/index.ts +9 -0
  117. package/src/styles/utilities/keyframes.ts +89 -0
  118. package/src/styles/utilities/layerStyles.ts +18 -0
  119. package/src/styles/utilities/textStyles.ts +135 -0
  120. package/src/styles/utilities/transitions.ts +92 -0
  121. package/src/utils/injectSprite.ts +36 -0
  122. package/src/utils/splitProps.ts +19 -0
  123. package/src/utils/spriteContent.ts +4 -0
  124. package/dist/panda.buildinfo.json +0 -448
  125. package/dist/preset.d.ts +0 -5
  126. package/dist/transitions-DUgH88VW.js +0 -1041
  127. package/dist/transitions-DUgH88VW.js.map +0 -1
package/README.md CHANGED
@@ -42,10 +42,7 @@ export default defineConfig({
42
42
  exclude: [],
43
43
 
44
44
  // Use the okshaun preset
45
- presets: [
46
- '@pandacss/preset-base',
47
- okshaunPreset
48
- ],
45
+ presets: [ okshaunPreset ],
49
46
 
50
47
  // Optional: customize the preset
51
48
  theme: {
@@ -57,7 +54,7 @@ export default defineConfig({
57
54
  },
58
55
 
59
56
  // Configure output
60
- outdir: 'styled-system',
57
+ outdir: 'src/styled-system',
61
58
  jsxFramework: 'react',
62
59
 
63
60
  // Recommended settings
@@ -96,9 +93,8 @@ import ReactDOM from 'react-dom/client'
96
93
  import { ThemeProvider } from '@okshaun/components'
97
94
  import App from './App'
98
95
 
99
- // Import your app styles and Panda CSS output
96
+ // Import your app styles as the Panda CSS entrypoint
100
97
  import './index.css'
101
- import '../styled-system/styles.css'
102
98
 
103
99
  ReactDOM.createRoot(document.getElementById('root')!).render(
104
100
  <React.StrictMode>
@@ -116,9 +112,9 @@ Add Panda CSS generation to your scripts:
116
112
  ```json
117
113
  {
118
114
  "scripts": {
119
- "dev": "panda codegen --watch & vite",
120
- "build": "panda codegen && tsc && vite build",
121
- "panda": "panda codegen"
115
+ "dev": "npx panda codegen --watch & vite",
116
+ "build": "npx panda codegen && tsc && vite build",
117
+ "prepare": "npx panda codegen"
122
118
  }
123
119
  }
124
120
  ```
@@ -132,7 +128,7 @@ Update `tsconfig.json` to include Panda CSS path aliases:
132
128
  "compilerOptions": {
133
129
  "baseUrl": ".",
134
130
  "paths": {
135
- "@styled-system/*": ["./styled-system/*"]
131
+ "@styled-system/*": ["./src/styled-system/*"]
136
132
  }
137
133
  }
138
134
  }
@@ -151,7 +147,7 @@ export default defineConfig({
151
147
  plugins: [react()],
152
148
  resolve: {
153
149
  alias: {
154
- '@styled-system': resolve(__dirname, './styled-system'),
150
+ '@styled-system': resolve(__dirname, './src/styled-system'),
155
151
  },
156
152
  },
157
153
  })
@@ -163,7 +159,7 @@ export default defineConfig({
163
159
 
164
160
  ```typescript
165
161
  import { Button, Box, Text, Icon } from '@okshaun/components'
166
- import { css } from '../styled-system/css'
162
+ import { css } from '@styled-system/css'
167
163
 
168
164
  function App() {
169
165
  return (
@@ -222,8 +218,8 @@ import { Icon } from '@okshaun/components'
222
218
  function MyComponent() {
223
219
  return (
224
220
  <>
225
- <Icon name="check" size="md" fill="success.default" />
226
- <Icon name="close" size="lg" fill="error.default" />
221
+ <Icon name="check" size="md" fill="icon.success" />
222
+ <Icon name="close" size="lg" fill="icon.error" />
227
223
  </>
228
224
  )
229
225
  }
@@ -253,7 +249,7 @@ function Examples() {
253
249
  </Button>
254
250
 
255
251
  {/* Button as React Router Link */}
256
- <Button as={Link} to="/about" variant="secondary">
252
+ <Button as={Link} to="/about">
257
253
  About Page
258
254
  </Button>
259
255
  </>
@@ -312,13 +308,13 @@ export default defineConfig({
312
308
  The preset provides comprehensive design tokens:
313
309
 
314
310
  ```typescript
315
- import { css } from '../styled-system/css'
311
+ import { css } from '@styled-system/css'
316
312
 
317
313
  const styles = css({
318
314
  // Colors from semantic tokens
319
- bg: 'surface.default',
320
- color: 'text.default',
321
- borderColor: 'border.default',
315
+ bg: 'bg.surface',
316
+ color: 'text',
317
+ borderColor: 'border',
322
318
 
323
319
  // Spacing (0-280 + container sizes)
324
320
  p: '4',
@@ -326,13 +322,13 @@ const styles = css({
326
322
  gap: '2',
327
323
 
328
324
  // Border radius
329
- borderRadius: 'md', // xs, sm, md, lg, xl, 2xl, 3xl, full
325
+ borderRadius: '8',
330
326
 
331
327
  // Shadows
332
- boxShadow: 'md', // sm, md, lg, xl, 2xl
328
+ boxShadow: 'raised',
333
329
 
334
330
  // Typography
335
- fontSize: 'md',
331
+ fontSize: '14',
336
332
  fontWeight: 'medium',
337
333
  lineHeight: 'normal'
338
334
  })
@@ -371,7 +367,7 @@ Override the font tokens in your `panda.config.ts`:
371
367
 
372
368
  ```typescript
373
369
  import { defineConfig } from '@pandacss/dev'
374
- import { okshaunPreset } from '@okshaun/components/preset'
370
+ import { okshaunPreset } from '@okshaun/components'
375
371
 
376
372
  export default defineConfig({
377
373
  presets: [okshaunPreset],
@@ -434,7 +430,7 @@ No additional font packages needed!
434
430
  npm install
435
431
 
436
432
  # Generate Panda CSS
437
- npm run panda
433
+ npm run prepare
438
434
 
439
435
  # Start development server
440
436
  npm run dev
@@ -492,7 +488,7 @@ git push origin :refs/tags/v0.3.5
492
488
 
493
489
  ## Storybook
494
490
 
495
- View all components in Storybook: [https://shaunrfox.github.io/okshaun-components](https://shaunrfox.github.io/okshaun-components)
491
+ View all components in Storybook: [shaunfox.com/okshaun-components](https://shaunfox.com/okshaun-components)
496
492
 
497
493
  ## License
498
494
 
package/dist/.mcp.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "mcpServers": {
3
+ "panda": {
4
+ "command": "npx",
5
+ "args": [
6
+ "panda",
7
+ "mcp"
8
+ ]
9
+ }
10
+ }
11
+ }