@pandacss/studio 0.21.0 → 0.22.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.
Files changed (64) hide show
  1. package/astro.config.mjs +3 -9
  2. package/dist/studio.d.mts +1 -1
  3. package/dist/studio.d.ts +1 -1
  4. package/dist/studio.js +38 -2050
  5. package/dist/studio.mjs +42 -2080
  6. package/package.json +11 -14
  7. package/src/components/sizes.tsx +4 -3
  8. package/styled-system/helpers.mjs +3 -1
  9. package/styled-system/jsx/aspect-ratio.mjs +2 -5
  10. package/styled-system/jsx/bleed.mjs +2 -5
  11. package/styled-system/jsx/box.mjs +3 -7
  12. package/styled-system/jsx/center.mjs +2 -5
  13. package/styled-system/jsx/circle.mjs +2 -5
  14. package/styled-system/jsx/container.mjs +3 -7
  15. package/styled-system/jsx/divider.mjs +2 -5
  16. package/styled-system/jsx/factory.mjs +1 -2
  17. package/styled-system/jsx/flex.mjs +2 -5
  18. package/styled-system/jsx/float.mjs +2 -5
  19. package/styled-system/jsx/grid-item.mjs +2 -5
  20. package/styled-system/jsx/grid.mjs +2 -5
  21. package/styled-system/jsx/hstack.mjs +2 -5
  22. package/styled-system/jsx/index.d.ts +0 -3
  23. package/styled-system/jsx/link-box.mjs +3 -7
  24. package/styled-system/jsx/link-overlay.mjs +3 -7
  25. package/styled-system/jsx/spacer.mjs +2 -5
  26. package/styled-system/jsx/square.mjs +2 -5
  27. package/styled-system/jsx/stack.mjs +2 -5
  28. package/styled-system/jsx/styled-link.mjs +3 -7
  29. package/styled-system/jsx/visually-hidden.mjs +3 -7
  30. package/styled-system/jsx/vstack.mjs +2 -5
  31. package/styled-system/jsx/wrap.mjs +2 -5
  32. package/styled-system/styles.css +1277 -542
  33. package/styled-system/types/conditions.d.ts +1 -1
  34. package/styled-system/types/csstype.d.ts +1270 -721
  35. package/styled-system/types/recipe.d.ts +9 -0
  36. package/styled-system/types/static-css.d.ts +39 -0
  37. package/styled-system/chunks/src__components__color-constrast.css +0 -106
  38. package/styled-system/chunks/src__components__color-wrapper.css +0 -58
  39. package/styled-system/chunks/src__components__colors.css +0 -106
  40. package/styled-system/chunks/src__components__empty-state.css +0 -46
  41. package/styled-system/chunks/src__components__font-family.css +0 -86
  42. package/styled-system/chunks/src__components__font-tokens.css +0 -62
  43. package/styled-system/chunks/src__components__input.css +0 -58
  44. package/styled-system/chunks/src__components__layer-styles.css +0 -63
  45. package/styled-system/chunks/src__components__nav-item.css +0 -57
  46. package/styled-system/chunks/src__components__overview.css +0 -122
  47. package/styled-system/chunks/src__components__radii.css +0 -50
  48. package/styled-system/chunks/src__components__semantic-color.css +0 -70
  49. package/styled-system/chunks/src__components__side-nav-item.css +0 -30
  50. package/styled-system/chunks/src__components__side-nav.css +0 -50
  51. package/styled-system/chunks/src__components__sizes.css +0 -42
  52. package/styled-system/chunks/src__components__text-styles.css +0 -32
  53. package/styled-system/chunks/src__components__theme-toggle.css +0 -62
  54. package/styled-system/chunks/src__components__token-content.css +0 -14
  55. package/styled-system/chunks/src__components__token-group.css +0 -22
  56. package/styled-system/chunks/src__components__typography-playground.css +0 -62
  57. package/styled-system/chunks/src__layouts__Sidebar.css +0 -114
  58. package/styled-system/global.css +0 -58
  59. package/styled-system/reset.css +0 -214
  60. package/styled-system/static.css +0 -5
  61. package/styled-system/tokens/index.css +0 -437
  62. package/styled-system/tokens/keyframes.css +0 -28
  63. package/styled-system/types/helpers.d.ts +0 -2
  64. package/virtual-panda.ts +0 -62
@@ -1,28 +0,0 @@
1
- @layer tokens {
2
- @keyframes spin {
3
- to {
4
- transform: rotate(360deg)
5
- }
6
- }
7
- @keyframes ping {
8
- 75%, 100% {
9
- transform: scale(2);
10
- opacity: 0
11
- }
12
- }
13
- @keyframes pulse {
14
- 50% {
15
- opacity: .5
16
- }
17
- }
18
- @keyframes bounce {
19
- 0%, 100% {
20
- transform: translateY(-25%);
21
- animation-timing-function: cubic-bezier(0.8,0,1,1)
22
- }
23
- 50% {
24
- transform: none;
25
- animation-timing-function: cubic-bezier(0,0,0.2,1)
26
- }
27
- }
28
- }
@@ -1,2 +0,0 @@
1
- /* eslint-disable */
2
- export type Pretty<T> = T extends infer U ? { [K in keyof U]: U[K] } : never
package/virtual-panda.ts DELETED
@@ -1,62 +0,0 @@
1
- import { loadConfigAndCreateContext, type PandaContext } from '@pandacss/node'
2
- import type { AstroIntegration } from 'astro'
3
- import { stringify } from 'javascript-stringify'
4
- import type { PluginOption } from 'vite'
5
-
6
- const virtualModuleId = 'virtual:panda'
7
- const resolvedVirtualModuleId = '\0' + virtualModuleId
8
-
9
- function vitePlugin(configPath: string): PluginOption {
10
- let config: PandaContext['config']
11
-
12
- async function loadPandaConfig() {
13
- const ctx = await loadConfigAndCreateContext({ configPath })
14
- config = ctx.config
15
- }
16
-
17
- return {
18
- name: 'vite:panda',
19
-
20
- async configureServer(server) {
21
- server.watcher.add(configPath).on('change', async (path) => {
22
- if (path !== configPath) return
23
- await loadPandaConfig()
24
- const module = server.moduleGraph.getModuleById(resolvedVirtualModuleId)
25
- if (module) await server.reloadModule(module)
26
- })
27
- },
28
-
29
- resolveId(id) {
30
- if (id === virtualModuleId) {
31
- return resolvedVirtualModuleId
32
- }
33
- return null
34
- },
35
-
36
- async load(id) {
37
- if (id === resolvedVirtualModuleId) {
38
- await loadPandaConfig()
39
- return {
40
- code: `export const config = ${stringify(config)}`,
41
- }
42
- }
43
- },
44
- }
45
- }
46
-
47
- const virtualPanda = (): AstroIntegration => ({
48
- name: 'virtual:panda',
49
- hooks: {
50
- 'astro:config:setup': ({ updateConfig }) => {
51
- const configPath = process.env.PUBLIC_CONFIG_PATH
52
-
53
- updateConfig({
54
- vite: {
55
- plugins: [vitePlugin(configPath!)],
56
- },
57
- })
58
- },
59
- },
60
- })
61
-
62
- export default virtualPanda