@pandacss/studio 0.3.1 → 0.4.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 (78) hide show
  1. package/package.json +8 -8
  2. package/src/components/analyzer/data-combobox.tsx +47 -41
  3. package/src/components/analyzer/data-table.tsx +5 -9
  4. package/src/components/input.tsx +3 -3
  5. package/src/layouts/Sidebar.astro +2 -2
  6. package/styled-system/chunks/..__core____tests____atomic-rule.test.css +363 -0
  7. package/styled-system/chunks/src__components__analyzer__data-combobox.css +48 -40
  8. package/styled-system/chunks/src__components__analyzer__data-table.css +8 -0
  9. package/styled-system/chunks/src__layouts__Sidebar.css +4 -4
  10. package/styled-system/css/css.d.ts +1 -0
  11. package/styled-system/css/css.mjs +8 -0
  12. package/styled-system/css/cva.d.ts +1 -0
  13. package/styled-system/css/cx.d.ts +1 -0
  14. package/styled-system/css/index.d.ts +1 -0
  15. package/styled-system/global.css +1 -1
  16. package/styled-system/jsx/aspect-ratio.d.ts +1 -0
  17. package/styled-system/jsx/box.d.ts +1 -0
  18. package/styled-system/jsx/center.d.ts +1 -0
  19. package/styled-system/jsx/circle.d.ts +1 -0
  20. package/styled-system/jsx/container.d.ts +1 -0
  21. package/styled-system/jsx/divider.d.ts +1 -0
  22. package/styled-system/jsx/factory.d.ts +1 -0
  23. package/styled-system/jsx/flex.d.ts +1 -0
  24. package/styled-system/jsx/float.d.ts +1 -0
  25. package/styled-system/jsx/grid-item.d.ts +1 -0
  26. package/styled-system/jsx/grid.d.ts +1 -0
  27. package/styled-system/jsx/hstack.d.ts +1 -0
  28. package/styled-system/jsx/index.d.ts +1 -0
  29. package/styled-system/jsx/is-valid-prop.mjs +18 -2
  30. package/styled-system/jsx/link-box.d.ts +1 -0
  31. package/styled-system/jsx/link-overlay.d.ts +1 -0
  32. package/styled-system/jsx/spacer.d.ts +1 -0
  33. package/styled-system/jsx/square.d.ts +1 -0
  34. package/styled-system/jsx/stack.d.ts +1 -0
  35. package/styled-system/jsx/styled-link.d.ts +1 -0
  36. package/styled-system/jsx/vstack.d.ts +1 -0
  37. package/styled-system/jsx/wrap.d.ts +1 -0
  38. package/styled-system/patterns/aspect-ratio.d.ts +1 -0
  39. package/styled-system/patterns/aspect-ratio.mjs +18 -8
  40. package/styled-system/patterns/box.d.ts +1 -0
  41. package/styled-system/patterns/center.d.ts +1 -0
  42. package/styled-system/patterns/circle.d.ts +1 -0
  43. package/styled-system/patterns/container.d.ts +1 -0
  44. package/styled-system/patterns/divider.d.ts +1 -0
  45. package/styled-system/patterns/divider.mjs +1 -1
  46. package/styled-system/patterns/flex.d.ts +1 -0
  47. package/styled-system/patterns/float.d.ts +1 -0
  48. package/styled-system/patterns/grid-item.d.ts +1 -0
  49. package/styled-system/patterns/grid.d.ts +1 -0
  50. package/styled-system/patterns/hstack.d.ts +1 -0
  51. package/styled-system/patterns/index.d.ts +1 -0
  52. package/styled-system/patterns/link-box.d.ts +1 -0
  53. package/styled-system/patterns/link-overlay.d.ts +1 -0
  54. package/styled-system/patterns/spacer.d.ts +1 -0
  55. package/styled-system/patterns/square.d.ts +1 -0
  56. package/styled-system/patterns/stack.d.ts +1 -0
  57. package/styled-system/patterns/styled-link.d.ts +1 -0
  58. package/styled-system/patterns/vstack.d.ts +1 -0
  59. package/styled-system/patterns/wrap.d.ts +1 -0
  60. package/styled-system/styles.css +295 -16
  61. package/styled-system/tokens/index.css +3 -0
  62. package/styled-system/tokens/index.d.ts +1 -0
  63. package/styled-system/tokens/index.mjs +12 -0
  64. package/styled-system/tokens/tokens.d.ts +7 -3
  65. package/styled-system/types/composition.d.ts +1 -0
  66. package/styled-system/types/conditions.d.ts +1 -0
  67. package/styled-system/types/csstype.d.ts +1 -0
  68. package/styled-system/types/global.d.ts +6 -5
  69. package/styled-system/types/helpers.d.ts +1 -0
  70. package/styled-system/types/index.d.ts +3 -2
  71. package/styled-system/types/jsx.d.ts +1 -0
  72. package/styled-system/types/parts.d.ts +1 -0
  73. package/styled-system/types/pattern.d.ts +1 -0
  74. package/styled-system/types/prop-type.d.ts +26 -25
  75. package/styled-system/types/recipe.d.ts +1 -0
  76. package/styled-system/types/selectors.d.ts +4 -1
  77. package/styled-system/types/style-props.d.ts +12 -4
  78. package/styled-system/types/system-types.d.ts +1 -0
@@ -1,14 +1,15 @@
1
+ /* eslint-disable */
1
2
  import type { ConditionalValue } from './conditions';
2
3
  import type { CssProperties } from './system-types'
3
4
  import type { Tokens } from '../tokens'
4
5
 
5
6
  type PropertyValueTypes = {
6
- aspectRatio: "square" | "landscape" | "portrait" | "wide" | "ultrawide" | "golden";
7
+ aspectRatio: "auto" | "square" | "landscape" | "portrait" | "wide" | "ultrawide" | "golden";
7
8
  top: Tokens["spacing"];
8
9
  left: Tokens["spacing"];
9
10
  insetInline: Tokens["spacing"];
10
11
  insetBlock: Tokens["spacing"];
11
- inset: Tokens["spacing"];
12
+ inset: "auto" | Tokens["spacing"];
12
13
  insetBlockEnd: Tokens["spacing"];
13
14
  insetBlockStart: Tokens["spacing"];
14
15
  insetInlineEnd: Tokens["spacing"];
@@ -45,17 +46,17 @@ type PropertyValueTypes = {
45
46
  paddingInline: Tokens["spacing"];
46
47
  paddingInlineEnd: Tokens["spacing"];
47
48
  paddingInlineStart: Tokens["spacing"];
48
- marginLeft: Tokens["spacing"];
49
- marginRight: Tokens["spacing"];
50
- marginTop: Tokens["spacing"];
51
- marginBottom: Tokens["spacing"];
52
- margin: Tokens["spacing"];
53
- marginBlock: Tokens["spacing"];
54
- marginBlockEnd: Tokens["spacing"];
55
- marginBlockStart: Tokens["spacing"];
56
- marginInline: Tokens["spacing"];
57
- marginInlineEnd: Tokens["spacing"];
58
- marginInlineStart: Tokens["spacing"];
49
+ marginLeft: "auto" | Tokens["spacing"];
50
+ marginRight: "auto" | Tokens["spacing"];
51
+ marginTop: "auto" | Tokens["spacing"];
52
+ marginBottom: "auto" | Tokens["spacing"];
53
+ margin: "auto" | Tokens["spacing"];
54
+ marginBlock: "auto" | Tokens["spacing"];
55
+ marginBlockEnd: "auto" | Tokens["spacing"];
56
+ marginBlockStart: "auto" | Tokens["spacing"];
57
+ marginInline: "auto" | Tokens["spacing"];
58
+ marginInlineEnd: "auto" | Tokens["spacing"];
59
+ marginInlineStart: "auto" | Tokens["spacing"];
59
60
  outlineColor: Tokens["colors"];
60
61
  outline: Tokens["borders"];
61
62
  outlineOffset: Tokens["spacing"];
@@ -63,18 +64,18 @@ type PropertyValueTypes = {
63
64
  divideY: string;
64
65
  divideColor: Tokens["colors"];
65
66
  divideStyle: CssProperties["borderStyle"];
66
- width: Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
67
- inlineSize: Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
68
- minWidth: Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
69
- minInlineSize: Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
70
- maxWidth: Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
71
- maxInlineSize: Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
72
- height: Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
73
- blockSize: Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
74
- minHeight: Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
75
- minBlockSize: Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
76
- maxHeight: Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
77
- maxBlockSize: Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
67
+ width: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
68
+ inlineSize: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
69
+ minWidth: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
70
+ minInlineSize: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
71
+ maxWidth: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
72
+ maxInlineSize: "auto" | Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "screen";
73
+ height: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
74
+ blockSize: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
75
+ minHeight: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
76
+ minBlockSize: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
77
+ maxHeight: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
78
+ maxBlockSize: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6";
78
79
  color: Tokens["colors"];
79
80
  fontFamily: Tokens["fonts"];
80
81
  fontSize: Tokens["fontSizes"];
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject } from './system-types'
2
3
 
3
4
  type Pretty<T> = T extends infer U ? { [K in keyof U]: U[K] } : never
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { Pseudos } from './csstype'
2
3
 
3
4
  type AriaAttributes =
@@ -52,5 +53,7 @@ type DataAttributes =
52
53
  type AttributeSelector = `&${Pseudos | DataAttributes | AriaAttributes}`
53
54
  type ParentSelector = `${DataAttributes | AriaAttributes} &`
54
55
 
55
- export type AnySelector = `${string}&` | `&${string}`
56
+ type AtRuleType = 'media' | 'layer' | 'container' | 'supports' | 'page'
57
+
58
+ export type AnySelector = `${string}&` | `&${string}` | `@${AtRuleType}${string}`
56
59
  export type Selectors = AttributeSelector | ParentSelector
@@ -1,6 +1,7 @@
1
- import { ConditionalValue } from './conditions'
2
- import { PropertyValue } from './prop-type'
3
- import { Token } from '../tokens'
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from './conditions'
3
+ import type { PropertyValue } from './prop-type'
4
+ import type { Token } from '../tokens'
4
5
 
5
6
  export type CssVarProperties = {
6
7
  [key in `--${string}`]?: ConditionalValue<Token | (string & {}) | (number & {})>
@@ -226,7 +227,6 @@ export type SystemProperties = {
226
227
  clip?: PropertyValue<'clip'>
227
228
  clipPath?: PropertyValue<'clipPath'>
228
229
  color?: PropertyValue<'color'>
229
- printColorAdjust?: PropertyValue<'printColorAdjust'>
230
230
  colorScheme?: PropertyValue<'colorScheme'>
231
231
  columnCount?: PropertyValue<'columnCount'>
232
232
  columnFill?: PropertyValue<'columnFill'>
@@ -244,6 +244,9 @@ export type SystemProperties = {
244
244
  containIntrinsicHeight?: PropertyValue<'containIntrinsicHeight'>
245
245
  containIntrinsicInlineSize?: PropertyValue<'containIntrinsicInlineSize'>
246
246
  containIntrinsicWidth?: PropertyValue<'containIntrinsicWidth'>
247
+ container?: PropertyValue<'container'>
248
+ containerName?: PropertyValue<'containerName'>
249
+ containerType?: PropertyValue<'containerType'>
247
250
  content?: PropertyValue<'content'>
248
251
  contentVisibility?: PropertyValue<'contentVisibility'>
249
252
  counterIncrement?: PropertyValue<'counterIncrement'>
@@ -268,6 +271,7 @@ export type SystemProperties = {
268
271
  fontKerning?: PropertyValue<'fontKerning'>
269
272
  fontLanguageOverride?: PropertyValue<'fontLanguageOverride'>
270
273
  fontOpticalSizing?: PropertyValue<'fontOpticalSizing'>
274
+ fontPalette?: PropertyValue<'fontPalette'>
271
275
  fontVariationSettings?: PropertyValue<'fontVariationSettings'>
272
276
  fontSize?: PropertyValue<'fontSize'>
273
277
  fontSizeAdjust?: PropertyValue<'fontSizeAdjust'>
@@ -279,6 +283,7 @@ export type SystemProperties = {
279
283
  fontVariantAlternates?: PropertyValue<'fontVariantAlternates'>
280
284
  fontVariantCaps?: PropertyValue<'fontVariantCaps'>
281
285
  fontVariantEastAsian?: PropertyValue<'fontVariantEastAsian'>
286
+ fontVariantEmoji?: PropertyValue<'fontVariantEmoji'>
282
287
  fontVariantLigatures?: PropertyValue<'fontVariantLigatures'>
283
288
  fontVariantNumeric?: PropertyValue<'fontVariantNumeric'>
284
289
  fontVariantPosition?: PropertyValue<'fontVariantPosition'>
@@ -422,6 +427,7 @@ export type SystemProperties = {
422
427
  paddingLeft?: PropertyValue<'paddingLeft'>
423
428
  paddingRight?: PropertyValue<'paddingRight'>
424
429
  paddingTop?: PropertyValue<'paddingTop'>
430
+ page?: PropertyValue<'page'>
425
431
  pageBreakAfter?: PropertyValue<'pageBreakAfter'>
426
432
  pageBreakBefore?: PropertyValue<'pageBreakBefore'>
427
433
  pageBreakInside?: PropertyValue<'pageBreakInside'>
@@ -433,6 +439,7 @@ export type SystemProperties = {
433
439
  placeSelf?: PropertyValue<'placeSelf'>
434
440
  pointerEvents?: PropertyValue<'pointerEvents'>
435
441
  position?: PropertyValue<'position'>
442
+ printColorAdjust?: PropertyValue<'printColorAdjust'>
436
443
  quotes?: PropertyValue<'quotes'>
437
444
  resize?: PropertyValue<'resize'>
438
445
  right?: PropertyValue<'right'>
@@ -524,6 +531,7 @@ export type SystemProperties = {
524
531
  unicodeBidi?: PropertyValue<'unicodeBidi'>
525
532
  userSelect?: PropertyValue<'userSelect'>
526
533
  verticalAlign?: PropertyValue<'verticalAlign'>
534
+ viewTransitionName?: PropertyValue<'viewTransitionName'>
527
535
  visibility?: PropertyValue<'visibility'>
528
536
  whiteSpace?: PropertyValue<'whiteSpace'>
529
537
  widows?: PropertyValue<'widows'>
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { ConditionalValue, Conditions, Nested } from './conditions'
2
3
  import type { PropertiesFallback } from './csstype'
3
4
  import type { SystemProperties, CssVarProperties } from './style-props'