@pandacss/studio 0.15.0 → 0.15.2

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 (101) hide show
  1. package/astro.config.mjs +1 -1
  2. package/dist/studio.d.mts +3 -2
  3. package/dist/studio.d.ts +3 -2
  4. package/dist/studio.js +12 -6
  5. package/dist/studio.mjs +12 -6
  6. package/package.json +9 -9
  7. package/src/lib/panda.context.ts +3 -5
  8. package/src/lib/virtual-panda.d.ts +3 -0
  9. package/styled-system/chunks/src__components__analyzer__category-utilities.css +61 -168
  10. package/styled-system/chunks/src__components__analyzer__data-combobox.css +69 -114
  11. package/styled-system/chunks/src__components__analyzer__data-table.css +24 -23
  12. package/styled-system/chunks/src__components__analyzer__file-details.css +53 -112
  13. package/styled-system/chunks/src__components__analyzer__report-item-columns.css +20 -19
  14. package/styled-system/chunks/src__components__analyzer__report-item-link.css +39 -222
  15. package/styled-system/chunks/src__components__analyzer__section.css +16 -15
  16. package/styled-system/chunks/src__components__analyzer__text-with-count.css +18 -17
  17. package/styled-system/chunks/src__components__analyzer__truncated-text.css +10 -9
  18. package/styled-system/chunks/src__components__analyzer__utility-details.css +71 -178
  19. package/styled-system/chunks/src__components__color-constrast.css +54 -61
  20. package/styled-system/chunks/src__components__color-item.css +12 -11
  21. package/styled-system/chunks/src__components__color-wrapper.css +37 -196
  22. package/styled-system/chunks/src__components__colors.css +54 -53
  23. package/styled-system/chunks/src__components__empty-state.css +24 -23
  24. package/styled-system/chunks/src__components__font-family.css +44 -43
  25. package/styled-system/chunks/src__components__font-tokens.css +32 -31
  26. package/styled-system/chunks/src__components__input.css +34 -137
  27. package/styled-system/chunks/src__components__layer-styles.css +34 -76
  28. package/styled-system/chunks/src__components__nav-item.css +37 -161
  29. package/styled-system/chunks/src__components__overview.css +63 -102
  30. package/styled-system/chunks/src__components__radii.css +26 -25
  31. package/styled-system/chunks/src__components__semantic-color.css +34 -33
  32. package/styled-system/chunks/src__components__side-nav-item.css +17 -56
  33. package/styled-system/chunks/src__components__side-nav.css +26 -25
  34. package/styled-system/chunks/src__components__sizes.css +22 -21
  35. package/styled-system/chunks/src__components__text-styles.css +16 -15
  36. package/styled-system/chunks/src__components__theme-toggle.css +28 -47
  37. package/styled-system/chunks/src__components__token-analyzer.css +114 -379
  38. package/styled-system/chunks/src__components__token-content.css +8 -7
  39. package/styled-system/chunks/src__components__token-group.css +12 -11
  40. package/styled-system/chunks/src__components__typography-playground.css +32 -31
  41. package/styled-system/chunks/src__layouts__Sidebar.css +59 -94
  42. package/styled-system/helpers.mjs +3 -2
  43. package/styled-system/jsx/aspect-ratio.d.ts +1 -1
  44. package/styled-system/jsx/bleed.d.ts +1 -1
  45. package/styled-system/jsx/box.d.ts +1 -1
  46. package/styled-system/jsx/center.d.ts +1 -1
  47. package/styled-system/jsx/circle.d.ts +1 -1
  48. package/styled-system/jsx/container.d.ts +1 -1
  49. package/styled-system/jsx/divider.d.ts +1 -1
  50. package/styled-system/jsx/factory.mjs +2 -1
  51. package/styled-system/jsx/flex.d.ts +1 -1
  52. package/styled-system/jsx/float.d.ts +1 -1
  53. package/styled-system/jsx/grid-item.d.ts +1 -1
  54. package/styled-system/jsx/grid.d.ts +1 -1
  55. package/styled-system/jsx/hstack.d.ts +1 -1
  56. package/styled-system/jsx/link-box.d.ts +1 -1
  57. package/styled-system/jsx/link-overlay.d.ts +1 -1
  58. package/styled-system/jsx/spacer.d.ts +1 -1
  59. package/styled-system/jsx/square.d.ts +1 -1
  60. package/styled-system/jsx/stack.d.ts +1 -1
  61. package/styled-system/jsx/styled-link.d.ts +1 -1
  62. package/styled-system/jsx/visually-hidden.d.ts +1 -1
  63. package/styled-system/jsx/vstack.d.ts +1 -1
  64. package/styled-system/jsx/wrap.d.ts +1 -1
  65. package/styled-system/patterns/aspect-ratio.d.ts +2 -2
  66. package/styled-system/patterns/bleed.d.ts +2 -2
  67. package/styled-system/patterns/box.d.ts +2 -2
  68. package/styled-system/patterns/center.d.ts +2 -2
  69. package/styled-system/patterns/circle.d.ts +2 -2
  70. package/styled-system/patterns/container.d.ts +2 -2
  71. package/styled-system/patterns/divider.d.ts +2 -2
  72. package/styled-system/patterns/flex.d.ts +2 -2
  73. package/styled-system/patterns/float.d.ts +2 -2
  74. package/styled-system/patterns/grid-item.d.ts +2 -2
  75. package/styled-system/patterns/grid.d.ts +2 -2
  76. package/styled-system/patterns/hstack.d.ts +2 -2
  77. package/styled-system/patterns/link-box.d.ts +2 -2
  78. package/styled-system/patterns/link-overlay.d.ts +2 -2
  79. package/styled-system/patterns/spacer.d.ts +2 -2
  80. package/styled-system/patterns/square.d.ts +2 -2
  81. package/styled-system/patterns/stack.d.ts +2 -2
  82. package/styled-system/patterns/styled-link.d.ts +2 -2
  83. package/styled-system/patterns/visually-hidden.d.ts +2 -2
  84. package/styled-system/patterns/vstack.d.ts +2 -2
  85. package/styled-system/patterns/wrap.d.ts +2 -2
  86. package/styled-system/reset.css +20 -5
  87. package/styled-system/styles.css +492 -735
  88. package/styled-system/tokens/index.css +8 -8
  89. package/styled-system/types/composition.d.ts +3 -3
  90. package/styled-system/types/conditions.d.ts +227 -114
  91. package/styled-system/types/global.d.ts +7 -7
  92. package/styled-system/types/index.d.ts +6 -4
  93. package/styled-system/types/jsx.d.ts +3 -3
  94. package/styled-system/types/parts.d.ts +1 -1
  95. package/styled-system/types/pattern.d.ts +2 -2
  96. package/styled-system/types/prop-type.d.ts +2 -2
  97. package/styled-system/types/recipe.d.ts +9 -6
  98. package/styled-system/types/style-props.d.ts +1 -1
  99. package/styled-system/types/system-types.d.ts +12 -6
  100. package/{virtual-panda.mjs → virtual-panda.ts} +24 -28
  101. package/styled-system/chunks/..__core____tests____atomic-rule.test.css +0 -216
package/astro.config.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineConfig } from 'astro/config'
2
2
  import react from '@astrojs/react'
3
- import virtualPanda from './virtual-panda.mjs'
3
+ import virtualPanda from './virtual-panda'
4
4
 
5
5
  // https://astro.build/config
6
6
  export default defineConfig({
package/dist/studio.d.mts CHANGED
@@ -1,8 +1,9 @@
1
1
  type BuildOpts = {
2
2
  outDir: string;
3
+ configPath: string;
3
4
  };
4
- declare function buildStudio({ outDir }: BuildOpts): Promise<void>;
5
- declare function serveStudio(): Promise<void>;
5
+ declare function buildStudio({ outDir, configPath }: BuildOpts): Promise<void>;
6
+ declare function serveStudio({ configPath }: BuildOpts): Promise<void>;
6
7
  declare function previewStudio({ outDir }: BuildOpts): Promise<void>;
7
8
  declare function printUrls(options: {
8
9
  host: string;
package/dist/studio.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  type BuildOpts = {
2
2
  outDir: string;
3
+ configPath: string;
3
4
  };
4
- declare function buildStudio({ outDir }: BuildOpts): Promise<void>;
5
- declare function serveStudio(): Promise<void>;
5
+ declare function buildStudio({ outDir, configPath }: BuildOpts): Promise<void>;
6
+ declare function serveStudio({ configPath }: BuildOpts): Promise<void>;
6
7
  declare function previewStudio({ outDir }: BuildOpts): Promise<void>;
7
8
  declare function printUrls(options: {
8
9
  host: string;
package/dist/studio.js CHANGED
@@ -33,10 +33,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
- // ../../node_modules/.pnpm/tsup@7.1.0_postcss@8.4.27_typescript@5.1.6/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@7.1.0_postcss@8.4.27_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js
37
37
  var getImportMetaUrl, importMetaUrl;
38
38
  var init_cjs_shims = __esm({
39
- "../../node_modules/.pnpm/tsup@7.1.0_postcss@8.4.27_typescript@5.1.6/node_modules/tsup/assets/cjs_shims.js"() {
39
+ "../../node_modules/.pnpm/tsup@7.1.0_postcss@8.4.27_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js"() {
40
40
  "use strict";
41
41
  getImportMetaUrl = () => typeof document === "undefined" ? new URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
42
42
  importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
@@ -2069,17 +2069,23 @@ var import_node_module = require("module");
2069
2069
  var require2 = (0, import_node_module.createRequire)(importMetaUrl);
2070
2070
  var astroBin = require2.resolve("astro");
2071
2071
  var appPath = (0, import_node_path3.join)(__dirname, "..");
2072
- async function buildStudio({ outDir }) {
2072
+ async function buildStudio({ outDir, configPath }) {
2073
2073
  process.env.ASTRO_OUT_DIR = outDir;
2074
2074
  const { stdout } = await execa(astroBin, ["build", "--root", appPath], {
2075
- cwd: appPath
2075
+ cwd: appPath,
2076
+ env: {
2077
+ PUBLIC_CONFIG_PATH: configPath
2078
+ }
2076
2079
  });
2077
2080
  import_logger.logger.log(stdout);
2078
2081
  }
2079
- async function serveStudio() {
2082
+ async function serveStudio({ configPath }) {
2080
2083
  const result = execa(astroBin, ["dev", "--root", appPath], {
2081
2084
  stdio: "inherit",
2082
- cwd: appPath
2085
+ cwd: appPath,
2086
+ env: {
2087
+ PUBLIC_CONFIG_PATH: configPath
2088
+ }
2083
2089
  });
2084
2090
  result.stdout?.pipe(process.stdout);
2085
2091
  result.stderr?.pipe(process.stderr);
package/dist/studio.mjs CHANGED
@@ -34,12 +34,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
34
34
  mod
35
35
  ));
36
36
 
37
- // ../../node_modules/.pnpm/tsup@7.1.0_postcss@8.4.27_typescript@5.1.6/node_modules/tsup/assets/esm_shims.js
37
+ // ../../node_modules/.pnpm/tsup@7.1.0_postcss@8.4.27_typescript@5.2.2/node_modules/tsup/assets/esm_shims.js
38
38
  import { fileURLToPath } from "url";
39
39
  import path from "path";
40
40
  var getFilename, getDirname, __dirname;
41
41
  var init_esm_shims = __esm({
42
- "../../node_modules/.pnpm/tsup@7.1.0_postcss@8.4.27_typescript@5.1.6/node_modules/tsup/assets/esm_shims.js"() {
42
+ "../../node_modules/.pnpm/tsup@7.1.0_postcss@8.4.27_typescript@5.2.2/node_modules/tsup/assets/esm_shims.js"() {
43
43
  "use strict";
44
44
  getFilename = () => fileURLToPath(import.meta.url);
45
45
  getDirname = () => path.dirname(getFilename());
@@ -2065,17 +2065,23 @@ import { createRequire } from "node:module";
2065
2065
  var require2 = createRequire(import.meta.url);
2066
2066
  var astroBin = require2.resolve("astro");
2067
2067
  var appPath = join(__dirname, "..");
2068
- async function buildStudio({ outDir }) {
2068
+ async function buildStudio({ outDir, configPath }) {
2069
2069
  process.env.ASTRO_OUT_DIR = outDir;
2070
2070
  const { stdout } = await execa(astroBin, ["build", "--root", appPath], {
2071
- cwd: appPath
2071
+ cwd: appPath,
2072
+ env: {
2073
+ PUBLIC_CONFIG_PATH: configPath
2074
+ }
2072
2075
  });
2073
2076
  logger.log(stdout);
2074
2077
  }
2075
- async function serveStudio() {
2078
+ async function serveStudio({ configPath }) {
2076
2079
  const result = execa(astroBin, ["dev", "--root", appPath], {
2077
2080
  stdio: "inherit",
2078
- cwd: appPath
2081
+ cwd: appPath,
2082
+ env: {
2083
+ PUBLIC_CONFIG_PATH: configPath
2084
+ }
2079
2085
  });
2080
2086
  result.stdout?.pipe(process.stdout);
2081
2087
  result.stderr?.pipe(process.stderr);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/studio",
3
- "version": "0.15.0",
3
+ "version": "0.15.2",
4
4
  "description": "The automated token documentation for Panda CSS",
5
5
  "main": "dist/studio.js",
6
6
  "module": "dist/studio.mjs",
@@ -33,19 +33,19 @@
33
33
  "react": "18.2.0",
34
34
  "react-dom": "18.2.0",
35
35
  "vite": "4.4.9",
36
- "@pandacss/types": "0.15.0",
37
- "@pandacss/config": "0.15.0",
38
- "@pandacss/shared": "0.15.0",
39
- "@pandacss/token-dictionary": "0.15.0",
40
- "@pandacss/logger": "0.15.0",
41
- "@pandacss/node": "0.15.0"
36
+ "@pandacss/config": "0.15.2",
37
+ "@pandacss/logger": "0.15.2",
38
+ "@pandacss/node": "0.15.2",
39
+ "@pandacss/shared": "0.15.2",
40
+ "@pandacss/token-dictionary": "0.15.2",
41
+ "@pandacss/types": "0.15.2"
42
42
  },
43
43
  "devDependencies": {
44
- "@types/react": "18.2.18",
44
+ "@types/react": "18.2.22",
45
45
  "@types/react-dom": "18.2.7",
46
46
  "@vitejs/plugin-react": "4.0.4",
47
47
  "execa": "7.2.0",
48
- "@pandacss/dev": "0.15.0"
48
+ "@pandacss/dev": "0.15.2"
49
49
  },
50
50
  "scripts": {
51
51
  "codegen": "panda",
@@ -1,11 +1,9 @@
1
1
  import { flatten } from '@pandacss/shared'
2
2
  import { TokenDictionary } from '@pandacss/token-dictionary'
3
- import type { TokenDataTypes, UserConfig } from '@pandacss/types'
3
+ import type { TokenDataTypes } from '@pandacss/types'
4
+ import { config } from 'virtual:panda'
4
5
 
5
- // @ts-ignore
6
- import { config as _config } from 'virtual:panda'
7
-
8
- const config = _config as UserConfig
6
+ // console.log('_config', config)
9
7
 
10
8
  const { theme } = config
11
9
 
@@ -0,0 +1,3 @@
1
+ declare module 'virtual:*' {
2
+ export const config: import('@pandacss/types').UserConfig
3
+ }
@@ -1,225 +1,118 @@
1
1
  @layer utilities {
2
- .\[\&_li\]\:cursor_pointer {
3
- & li {
4
- cursor: pointer;
5
- }
6
- }
7
-
8
- .\[\&_li\]\:cursor_pointer {
9
- & li {
10
- cursor: pointer;
11
- }
12
- }
13
-
14
- .\[\&_li\]\:cursor_pointer {
15
- & li {
16
- cursor: pointer;
17
- }
18
- }
19
2
 
20
3
  .p_4px_8px {
21
- padding: 4px 8px;
22
- }
23
-
24
- .\[\&_li\]\:cursor_pointer {
25
- & li {
26
- cursor: pointer;
27
- }
28
- }
29
-
30
- .hover\:opacity_0\.6 {
31
- &:where(:hover, [data-hover]) {
32
- opacity: 0.6;
33
- }
34
- }
35
-
36
- .hover\:opacity_1 {
37
- &:where(:hover, [data-hover]) {
38
- opacity: 1;
39
- }
40
- }
41
-
42
- .hover\:border-b_black {
43
- &:where(:hover, [data-hover]) {
44
- border-bottom-color: var(--colors-black);
45
- }
46
- }
47
-
48
- .hover\:opacity_0\.6 {
49
- &:where(:hover, [data-hover]) {
50
- opacity: 0.6;
51
- }
52
- }
53
-
54
- .hover\:opacity_1 {
55
- &:where(:hover, [data-hover]) {
56
- opacity: 1;
4
+ padding: 4px 8px
57
5
  }
58
- }
59
6
 
60
- .hover\:border-b_black {
61
- &:where(:hover, [data-hover]) {
62
- border-bottom-color: var(--colors-black);
63
- }
64
- }
65
-
66
- .hover\:opacity_0\.6 {
67
- &:where(:hover, [data-hover]) {
68
- opacity: 0.6;
69
- }
70
- }
71
-
72
- .hover\:opacity_1 {
73
- &:where(:hover, [data-hover]) {
74
- opacity: 1;
75
- }
76
- }
77
-
78
- .hover\:border-b_black {
79
- &:where(:hover, [data-hover]) {
80
- border-bottom-color: var(--colors-black);
81
- }
82
- }
7
+ .\[\&_li\]\:cursor_pointer li {
8
+ cursor: pointer
9
+ }
83
10
 
84
11
  .list-style_none {
85
- list-style: none;
86
- }
12
+ list-style: none
13
+ }
87
14
 
88
15
  .p_0 {
89
- padding: var(--spacing-0);
90
- }
16
+ padding: var(--spacing-0)
17
+ }
91
18
 
92
19
  .ml_auto {
93
- margin-left: auto;
94
- }
20
+ margin-left: auto
21
+ }
95
22
 
96
23
  .w_26px {
97
- width: 26px;
98
- }
24
+ width: 26px
25
+ }
99
26
 
100
27
  .ml_2 {
101
- margin-left: var(--spacing-2);
102
- }
103
-
104
- .hover\:opacity_0\.6 {
105
- &:where(:hover, [data-hover]) {
106
- opacity: 0.6;
28
+ margin-left: var(--spacing-2)
107
29
  }
108
- }
109
30
 
110
31
  .font_semibold {
111
- font-weight: var(--font-weights-semibold);
112
- }
32
+ font-weight: var(--font-weights-semibold)
33
+ }
113
34
 
114
35
  .d_grid {
115
- display: grid;
116
- }
36
+ display: grid
37
+ }
117
38
 
118
39
  .grid-cols_repeat\(2\,_minmax\(0\,_1fr\)\) {
119
- grid-template-columns: repeat(2, minmax(0, 1fr));
120
- }
40
+ grid-template-columns: repeat(2, minmax(0, 1fr))
41
+ }
121
42
 
122
43
  .gap_4 {
123
- gap: var(--spacing-4);
124
- }
44
+ gap: var(--spacing-4)
45
+ }
125
46
 
126
47
  .col-span_span_2 {
127
- grid-column: span 2;
128
- }
48
+ grid-column: span 2
49
+ }
129
50
 
130
51
  .flex_column {
131
- flex-direction: column;
132
- }
52
+ flex-direction: column
53
+ }
133
54
 
134
55
  .p_4 {
135
- padding: var(--spacing-4);
136
- }
56
+ padding: var(--spacing-4)
57
+ }
137
58
 
138
59
  .bg_card {
139
- background: var(--colors-card);
140
- }
60
+ background: var(--colors-card)
61
+ }
141
62
 
142
63
  .text_text {
143
- color: var(--colors-text);
144
- }
64
+ color: var(--colors-text)
65
+ }
145
66
 
146
67
  .rounded_md {
147
- border-radius: var(--radii-md);
148
- }
68
+ border-radius: var(--radii-md)
69
+ }
149
70
 
150
71
  .d_inline-flex {
151
- display: inline-flex;
152
- }
72
+ display: inline-flex
73
+ }
153
74
 
154
75
  .items_center {
155
- align-items: center;
156
- }
76
+ align-items: center
77
+ }
157
78
 
158
79
  .opacity_0\.5 {
159
- opacity: 0.5;
160
- }
80
+ opacity: 0.5
81
+ }
161
82
 
162
83
  .border-b_1px_solid_transparent {
163
- border-bottom: 1px solid transparent;
164
- }
165
-
166
- .cursor_pointer {
167
- cursor: pointer;
168
- }
169
-
170
- .hover\:opacity_1 {
171
- &:where(:hover, [data-hover]) {
172
- opacity: 1;
84
+ border-bottom: 1px solid transparent
173
85
  }
174
- }
175
86
 
176
- .hover\:border-b_black {
177
- &:where(:hover, [data-hover]) {
178
- border-bottom-color: var(--colors-black);
87
+ .cursor_pointer {
88
+ cursor: pointer
179
89
  }
180
- }
181
90
 
182
91
  .d_flex {
183
- display: flex;
184
- }
92
+ display: flex
93
+ }
185
94
 
186
95
  .flex-wrap_wrap {
187
- flex-wrap: wrap;
188
- }
96
+ flex-wrap: wrap
97
+ }
189
98
 
190
99
  .gap_2 {
191
- gap: var(--spacing-2);
192
- }
193
-
194
- .\[\&_li\]\:hover\:opacity_0\.8 {
195
- & li {
196
- &:where(:hover, [data-hover]) {
197
- opacity: 0.8;
198
- }
100
+ gap: var(--spacing-2)
199
101
  }
200
- }
201
102
 
202
- .\[\&_li\]\:hover\:opacity_0\.8 {
203
- & li {
204
- &:where(:hover, [data-hover]) {
205
- opacity: 0.8;
206
- }
207
- }
208
- }
103
+ .hover\:opacity_0\.6:is(:hover, [data-hover]) {
104
+ opacity: 0.6
105
+ }
209
106
 
210
- .\[\&_li\]\:hover\:opacity_0\.8 {
211
- & li {
212
- &:where(:hover, [data-hover]) {
213
- opacity: 0.8;
214
- }
215
- }
216
- }
107
+ .hover\:opacity_1:is(:hover, [data-hover]) {
108
+ opacity: 1
109
+ }
217
110
 
218
- .\[\&_li\]\:hover\:opacity_0\.8 {
219
- & li {
220
- &:where(:hover, [data-hover]) {
221
- opacity: 0.8;
222
- }
223
- }
224
- }
225
- }
111
+ .hover\:border-b_black:is(:hover, [data-hover]) {
112
+ border-bottom-color: var(--colors-black)
113
+ }
114
+
115
+ .\[\&_li\]\:hover\:opacity_0\.8 li:is(:hover, [data-hover]) {
116
+ opacity: 0.8
117
+ }
118
+ }