@pandacss/studio 0.15.1 → 0.15.3

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 (98) 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 +10 -4
  5. package/dist/studio.mjs +10 -4
  6. package/package.json +8 -8
  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/jsx/aspect-ratio.d.ts +1 -1
  43. package/styled-system/jsx/bleed.d.ts +1 -1
  44. package/styled-system/jsx/box.d.ts +1 -1
  45. package/styled-system/jsx/center.d.ts +1 -1
  46. package/styled-system/jsx/circle.d.ts +1 -1
  47. package/styled-system/jsx/container.d.ts +1 -1
  48. package/styled-system/jsx/divider.d.ts +1 -1
  49. package/styled-system/jsx/factory.mjs +4 -5
  50. package/styled-system/jsx/flex.d.ts +1 -1
  51. package/styled-system/jsx/float.d.ts +1 -1
  52. package/styled-system/jsx/grid-item.d.ts +1 -1
  53. package/styled-system/jsx/grid.d.ts +1 -1
  54. package/styled-system/jsx/hstack.d.ts +1 -1
  55. package/styled-system/jsx/link-box.d.ts +1 -1
  56. package/styled-system/jsx/link-overlay.d.ts +1 -1
  57. package/styled-system/jsx/spacer.d.ts +1 -1
  58. package/styled-system/jsx/square.d.ts +1 -1
  59. package/styled-system/jsx/stack.d.ts +1 -1
  60. package/styled-system/jsx/styled-link.d.ts +1 -1
  61. package/styled-system/jsx/visually-hidden.d.ts +1 -1
  62. package/styled-system/jsx/vstack.d.ts +1 -1
  63. package/styled-system/jsx/wrap.d.ts +1 -1
  64. package/styled-system/patterns/aspect-ratio.d.ts +2 -2
  65. package/styled-system/patterns/bleed.d.ts +2 -2
  66. package/styled-system/patterns/box.d.ts +2 -2
  67. package/styled-system/patterns/center.d.ts +2 -2
  68. package/styled-system/patterns/circle.d.ts +2 -2
  69. package/styled-system/patterns/container.d.ts +2 -2
  70. package/styled-system/patterns/divider.d.ts +2 -2
  71. package/styled-system/patterns/flex.d.ts +2 -2
  72. package/styled-system/patterns/float.d.ts +2 -2
  73. package/styled-system/patterns/grid-item.d.ts +2 -2
  74. package/styled-system/patterns/grid.d.ts +2 -2
  75. package/styled-system/patterns/hstack.d.ts +2 -2
  76. package/styled-system/patterns/link-box.d.ts +2 -2
  77. package/styled-system/patterns/link-overlay.d.ts +2 -2
  78. package/styled-system/patterns/spacer.d.ts +2 -2
  79. package/styled-system/patterns/square.d.ts +2 -2
  80. package/styled-system/patterns/stack.d.ts +2 -2
  81. package/styled-system/patterns/styled-link.d.ts +2 -2
  82. package/styled-system/patterns/visually-hidden.d.ts +2 -2
  83. package/styled-system/patterns/vstack.d.ts +2 -2
  84. package/styled-system/patterns/wrap.d.ts +2 -2
  85. package/styled-system/styles.css +507 -516
  86. package/styled-system/tokens/index.css +8 -8
  87. package/styled-system/types/composition.d.ts +3 -3
  88. package/styled-system/types/conditions.d.ts +227 -114
  89. package/styled-system/types/global.d.ts +7 -7
  90. package/styled-system/types/index.d.ts +6 -4
  91. package/styled-system/types/jsx.d.ts +3 -3
  92. package/styled-system/types/parts.d.ts +1 -1
  93. package/styled-system/types/pattern.d.ts +2 -2
  94. package/styled-system/types/prop-type.d.ts +2 -2
  95. package/styled-system/types/recipe.d.ts +19 -14
  96. package/styled-system/types/style-props.d.ts +1 -1
  97. package/styled-system/types/system-types.d.ts +12 -6
  98. package/{virtual-panda.mjs → virtual-panda.ts} +24 -28
@@ -420,18 +420,18 @@
420
420
  --breakpoints-xl: 1280px;
421
421
  --breakpoints-2xl: 1536px;
422
422
  --shadows-inset: inset 0 0 0 1px rgba(0,0,0,0.1);
423
- --colors-text: #000;
424
- --colors-bg: #fff;
425
- --colors-card: #e5e5e5;
426
- --colors-border: #d4d4d4
423
+ --colors-text: var(--colors-black);
424
+ --colors-bg: var(--colors-white);
425
+ --colors-card: var(--colors-neutral-200);
426
+ --colors-border: var(--colors-neutral-300)
427
427
  }
428
428
 
429
429
  .dark {
430
430
  --shadows-inset: inset 0 0 0 1px rgba(255,255,255,0.2);
431
- --colors-text: #e5e5e5;
432
- --colors-bg: #171717;
433
- --colors-card: #262626;
434
- --colors-border: #404040
431
+ --colors-text: var(--colors-neutral-200);
432
+ --colors-bg: var(--colors-neutral-900);
433
+ --colors-card: var(--colors-neutral-800);
434
+ --colors-border: var(--colors-neutral-700)
435
435
  }
436
436
  }
437
437
 
@@ -1,11 +1,11 @@
1
1
  /* eslint-disable */
2
2
  import type { CompositionStyleObject } from './system-types';
3
3
 
4
- type Recursive<T> = {
4
+ interface Recursive<T> {
5
5
  [key: string]: Recursive<T> | T
6
6
  }
7
7
 
8
- export type Token<Value = any> = {
8
+ export interface Token<Value = any> {
9
9
  value: Value
10
10
  description?: string
11
11
  }
@@ -105,7 +105,7 @@ export type LayerStyle = CompositionStyleObject<LayerStyleProperty>
105
105
 
106
106
  export type LayerStyles = Recursive<Token<LayerStyle>>
107
107
 
108
- export type CompositionStyles = {
108
+ export interface CompositionStyles {
109
109
  textStyles: TextStyles
110
110
  layerStyles: LayerStyles
111
111
  }
@@ -1,120 +1,233 @@
1
1
  /* eslint-disable */
2
2
  import type { AnySelector, Selectors } from './selectors';
3
3
 
4
- export type Conditions = {
5
- /** `&:is(:hover, [data-hover])` */"_hover": string
6
- /** `&:is(:focus, [data-focus])` */"_focus": string
7
- /** `&:focus-within` */"_focusWithin": string
8
- /** `&:is(:focus-visible, [data-focus-visible])` */"_focusVisible": string
9
- /** `&:is(:disabled, [disabled], [data-disabled])` */"_disabled": string
10
- /** `&:is(:active, [data-active])` */"_active": string
11
- /** `&:visited` */"_visited": string
12
- /** `&:target` */"_target": string
13
- /** `&:is(:read-only, [data-read-only])` */"_readOnly": string
14
- /** `&:read-write` */"_readWrite": string
15
- /** `&:is(:empty, [data-empty])` */"_empty": string
16
- /** `&:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"])` */"_checked": string
17
- /** `&:enabled` */"_enabled": string
18
- /** `&:is([aria-expanded=true], [data-expanded], [data-state="expanded"])` */"_expanded": string
19
- /** `&[data-highlighted]` */"_highlighted": string
20
- /** `&::before` */"_before": string
21
- /** `&::after` */"_after": string
22
- /** `&::first-letter` */"_firstLetter": string
23
- /** `&::first-line` */"_firstLine": string
24
- /** `&::marker` */"_marker": string
25
- /** `&::selection` */"_selection": string
26
- /** `&::file-selector-button` */"_file": string
27
- /** `&::backdrop` */"_backdrop": string
28
- /** `&:first-child` */"_first": string
29
- /** `&:last-child` */"_last": string
30
- /** `&:only-child` */"_only": string
31
- /** `&:nth-child(even)` */"_even": string
32
- /** `&:nth-child(odd)` */"_odd": string
33
- /** `&:first-of-type` */"_firstOfType": string
34
- /** `&:last-of-type` */"_lastOfType": string
35
- /** `&:only-of-type` */"_onlyOfType": string
36
- /** `.peer:is(:focus, [data-focus]) ~ &` */"_peerFocus": string
37
- /** `.peer:is(:hover, [data-hover]) ~ &` */"_peerHover": string
38
- /** `.peer:is(:active, [data-active]) ~ &` */"_peerActive": string
39
- /** `.peer:focus-within ~ &` */"_peerFocusWithin": string
40
- /** `.peer:is(:focus-visible, [data-focus-visible]) ~ &` */"_peerFocusVisible": string
41
- /** `.peer:is(:disabled, [disabled], [data-disabled]) ~ &` */"_peerDisabled": string
42
- /** `.peer:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) ~ &` */"_peerChecked": string
43
- /** `.peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &` */"_peerInvalid": string
44
- /** `.peer:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) ~ &` */"_peerExpanded": string
45
- /** `.peer:placeholder-shown ~ &` */"_peerPlaceholderShown": string
46
- /** `.group:is(:focus, [data-focus]) &` */"_groupFocus": string
47
- /** `.group:is(:hover, [data-hover]) &` */"_groupHover": string
48
- /** `.group:is(:active, [data-active]) &` */"_groupActive": string
49
- /** `.group:focus-within &` */"_groupFocusWithin": string
50
- /** `.group:is(:focus-visible, [data-focus-visible]) &` */"_groupFocusVisible": string
51
- /** `.group:is(:disabled, [disabled], [data-disabled]) &` */"_groupDisabled": string
52
- /** `.group:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) &` */"_groupChecked": string
53
- /** `.group:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) &` */"_groupExpanded": string
54
- /** `.group:invalid &` */"_groupInvalid": string
55
- /** `&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state="indeterminate")` */"_indeterminate": string
56
- /** `&:required` */"_required": string
57
- /** `&:is(:valid, [data-valid])` */"_valid": string
58
- /** `&:is(:invalid, [data-invalid])` */"_invalid": string
59
- /** `&:autofill` */"_autofill": string
60
- /** `&:in-range` */"_inRange": string
61
- /** `&:out-of-range` */"_outOfRange": string
62
- /** `&::placeholder` */"_placeholder": string
63
- /** `&:placeholder-shown` */"_placeholderShown": string
64
- /** `&:is([aria-pressed=true], [data-pressed])` */"_pressed": string
65
- /** `&:is([aria-selected=true], [data-selected])` */"_selected": string
66
- /** `&:default` */"_default": string
67
- /** `&:optional` */"_optional": string
68
- /** `&:is([open], [data-open], [data-state="open"])` */"_open": string
69
- /** `&:fullscreen` */"_fullscreen": string
70
- /** `&:is([data-loading], [aria-busy=true])` */"_loading": string
71
- /** `&[aria-current=page]` */"_currentPage": string
72
- /** `&[aria-current=step]` */"_currentStep": string
73
- /** `@media (prefers-reduced-motion: reduce)` */"_motionReduce": string
74
- /** `@media (prefers-reduced-motion: no-preference)` */"_motionSafe": string
75
- /** `@media print` */"_print": string
76
- /** `@media (orientation: landscape)` */"_landscape": string
77
- /** `@media (orientation: portrait)` */"_portrait": string
78
- /** ` &.dark, .dark &` */"_dark": string
79
- /** ` &.light, .light &` */"_light": string
80
- /** `@media (prefers-color-scheme: dark)` */"_osDark": string
81
- /** `@media (prefers-color-scheme: light)` */"_osLight": string
82
- /** `@media (forced-colors: active)` */"_highContrast": string
83
- /** `@media (prefers-contrast: less)` */"_lessContrast": string
84
- /** `@media (prefers-contrast: more)` */"_moreContrast": string
85
- /** `[dir=ltr] &` */"_ltr": string
86
- /** `[dir=rtl] &` */"_rtl": string
87
- /** `&::-webkit-scrollbar` */"_scrollbar": string
88
- /** `&::-webkit-scrollbar-thumb` */"_scrollbarThumb": string
89
- /** `&::-webkit-scrollbar-track` */"_scrollbarTrack": string
90
- /** `&[data-orientation=horizontal]` */"_horizontal": string
91
- /** `&[data-orientation=vertical]` */"_vertical": string
92
- /** `@media screen and (min-width: 40em)` */"sm": string
93
- /** `@media screen and (min-width: 40em) and (max-width: 47.996875em)` */"smOnly": string
94
- /** `@media screen and (max-width: 40em)` */"smDown": string
95
- /** `@media screen and (min-width: 48em)` */"md": string
96
- /** `@media screen and (min-width: 48em) and (max-width: 63.996875em)` */"mdOnly": string
97
- /** `@media screen and (max-width: 48em)` */"mdDown": string
98
- /** `@media screen and (min-width: 64em)` */"lg": string
99
- /** `@media screen and (min-width: 64em) and (max-width: 79.996875em)` */"lgOnly": string
100
- /** `@media screen and (max-width: 64em)` */"lgDown": string
101
- /** `@media screen and (min-width: 80em)` */"xl": string
102
- /** `@media screen and (min-width: 80em) and (max-width: 95.996875em)` */"xlOnly": string
103
- /** `@media screen and (max-width: 80em)` */"xlDown": string
104
- /** `@media screen and (min-width: 96em)` */"2xl": string
105
- /** `@media screen and (min-width: 96em)` */"2xlOnly": string
106
- /** `@media screen and (max-width: 96em)` */"2xlDown": string
107
- /** `@media screen and (min-width: 40em) and (max-width: 47.996875em)` */"smToMd": string
108
- /** `@media screen and (min-width: 40em) and (max-width: 63.996875em)` */"smToLg": string
109
- /** `@media screen and (min-width: 40em) and (max-width: 79.996875em)` */"smToXl": string
110
- /** `@media screen and (min-width: 40em) and (max-width: 95.996875em)` */"smTo2xl": string
111
- /** `@media screen and (min-width: 48em) and (max-width: 63.996875em)` */"mdToLg": string
112
- /** `@media screen and (min-width: 48em) and (max-width: 79.996875em)` */"mdToXl": string
113
- /** `@media screen and (min-width: 48em) and (max-width: 95.996875em)` */"mdTo2xl": string
114
- /** `@media screen and (min-width: 64em) and (max-width: 79.996875em)` */"lgToXl": string
115
- /** `@media screen and (min-width: 64em) and (max-width: 95.996875em)` */"lgTo2xl": string
116
- /** `@media screen and (min-width: 80em) and (max-width: 95.996875em)` */"xlTo2xl": string
117
- /** The base (=no conditions) styles to apply */"base": string
4
+ export interface Conditions {
5
+ /** `&:is(:hover, [data-hover])` */
6
+ "_hover": string
7
+ /** `&:is(:focus, [data-focus])` */
8
+ "_focus": string
9
+ /** `&:focus-within` */
10
+ "_focusWithin": string
11
+ /** `&:is(:focus-visible, [data-focus-visible])` */
12
+ "_focusVisible": string
13
+ /** `&:is(:disabled, [disabled], [data-disabled])` */
14
+ "_disabled": string
15
+ /** `&:is(:active, [data-active])` */
16
+ "_active": string
17
+ /** `&:visited` */
18
+ "_visited": string
19
+ /** `&:target` */
20
+ "_target": string
21
+ /** `&:is(:read-only, [data-read-only])` */
22
+ "_readOnly": string
23
+ /** `&:read-write` */
24
+ "_readWrite": string
25
+ /** `&:is(:empty, [data-empty])` */
26
+ "_empty": string
27
+ /** `&:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"])` */
28
+ "_checked": string
29
+ /** `&:enabled` */
30
+ "_enabled": string
31
+ /** `&:is([aria-expanded=true], [data-expanded], [data-state="expanded"])` */
32
+ "_expanded": string
33
+ /** `&[data-highlighted]` */
34
+ "_highlighted": string
35
+ /** `&::before` */
36
+ "_before": string
37
+ /** `&::after` */
38
+ "_after": string
39
+ /** `&::first-letter` */
40
+ "_firstLetter": string
41
+ /** `&::first-line` */
42
+ "_firstLine": string
43
+ /** `&::marker` */
44
+ "_marker": string
45
+ /** `&::selection` */
46
+ "_selection": string
47
+ /** `&::file-selector-button` */
48
+ "_file": string
49
+ /** `&::backdrop` */
50
+ "_backdrop": string
51
+ /** `&:first-child` */
52
+ "_first": string
53
+ /** `&:last-child` */
54
+ "_last": string
55
+ /** `&:only-child` */
56
+ "_only": string
57
+ /** `&:nth-child(even)` */
58
+ "_even": string
59
+ /** `&:nth-child(odd)` */
60
+ "_odd": string
61
+ /** `&:first-of-type` */
62
+ "_firstOfType": string
63
+ /** `&:last-of-type` */
64
+ "_lastOfType": string
65
+ /** `&:only-of-type` */
66
+ "_onlyOfType": string
67
+ /** `.peer:is(:focus, [data-focus]) ~ &` */
68
+ "_peerFocus": string
69
+ /** `.peer:is(:hover, [data-hover]) ~ &` */
70
+ "_peerHover": string
71
+ /** `.peer:is(:active, [data-active]) ~ &` */
72
+ "_peerActive": string
73
+ /** `.peer:focus-within ~ &` */
74
+ "_peerFocusWithin": string
75
+ /** `.peer:is(:focus-visible, [data-focus-visible]) ~ &` */
76
+ "_peerFocusVisible": string
77
+ /** `.peer:is(:disabled, [disabled], [data-disabled]) ~ &` */
78
+ "_peerDisabled": string
79
+ /** `.peer:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) ~ &` */
80
+ "_peerChecked": string
81
+ /** `.peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &` */
82
+ "_peerInvalid": string
83
+ /** `.peer:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) ~ &` */
84
+ "_peerExpanded": string
85
+ /** `.peer:placeholder-shown ~ &` */
86
+ "_peerPlaceholderShown": string
87
+ /** `.group:is(:focus, [data-focus]) &` */
88
+ "_groupFocus": string
89
+ /** `.group:is(:hover, [data-hover]) &` */
90
+ "_groupHover": string
91
+ /** `.group:is(:active, [data-active]) &` */
92
+ "_groupActive": string
93
+ /** `.group:focus-within &` */
94
+ "_groupFocusWithin": string
95
+ /** `.group:is(:focus-visible, [data-focus-visible]) &` */
96
+ "_groupFocusVisible": string
97
+ /** `.group:is(:disabled, [disabled], [data-disabled]) &` */
98
+ "_groupDisabled": string
99
+ /** `.group:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) &` */
100
+ "_groupChecked": string
101
+ /** `.group:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) &` */
102
+ "_groupExpanded": string
103
+ /** `.group:invalid &` */
104
+ "_groupInvalid": string
105
+ /** `&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state="indeterminate")` */
106
+ "_indeterminate": string
107
+ /** `&:required` */
108
+ "_required": string
109
+ /** `&:is(:valid, [data-valid])` */
110
+ "_valid": string
111
+ /** `&:is(:invalid, [data-invalid])` */
112
+ "_invalid": string
113
+ /** `&:autofill` */
114
+ "_autofill": string
115
+ /** `&:in-range` */
116
+ "_inRange": string
117
+ /** `&:out-of-range` */
118
+ "_outOfRange": string
119
+ /** `&::placeholder` */
120
+ "_placeholder": string
121
+ /** `&:placeholder-shown` */
122
+ "_placeholderShown": string
123
+ /** `&:is([aria-pressed=true], [data-pressed])` */
124
+ "_pressed": string
125
+ /** `&:is([aria-selected=true], [data-selected])` */
126
+ "_selected": string
127
+ /** `&:default` */
128
+ "_default": string
129
+ /** `&:optional` */
130
+ "_optional": string
131
+ /** `&:is([open], [data-open], [data-state="open"])` */
132
+ "_open": string
133
+ /** `&:fullscreen` */
134
+ "_fullscreen": string
135
+ /** `&:is([data-loading], [aria-busy=true])` */
136
+ "_loading": string
137
+ /** `&[aria-current=page]` */
138
+ "_currentPage": string
139
+ /** `&[aria-current=step]` */
140
+ "_currentStep": string
141
+ /** `@media (prefers-reduced-motion: reduce)` */
142
+ "_motionReduce": string
143
+ /** `@media (prefers-reduced-motion: no-preference)` */
144
+ "_motionSafe": string
145
+ /** `@media print` */
146
+ "_print": string
147
+ /** `@media (orientation: landscape)` */
148
+ "_landscape": string
149
+ /** `@media (orientation: portrait)` */
150
+ "_portrait": string
151
+ /** ` &.dark, .dark &` */
152
+ "_dark": string
153
+ /** ` &.light, .light &` */
154
+ "_light": string
155
+ /** `@media (prefers-color-scheme: dark)` */
156
+ "_osDark": string
157
+ /** `@media (prefers-color-scheme: light)` */
158
+ "_osLight": string
159
+ /** `@media (forced-colors: active)` */
160
+ "_highContrast": string
161
+ /** `@media (prefers-contrast: less)` */
162
+ "_lessContrast": string
163
+ /** `@media (prefers-contrast: more)` */
164
+ "_moreContrast": string
165
+ /** `[dir=ltr] &` */
166
+ "_ltr": string
167
+ /** `[dir=rtl] &` */
168
+ "_rtl": string
169
+ /** `&::-webkit-scrollbar` */
170
+ "_scrollbar": string
171
+ /** `&::-webkit-scrollbar-thumb` */
172
+ "_scrollbarThumb": string
173
+ /** `&::-webkit-scrollbar-track` */
174
+ "_scrollbarTrack": string
175
+ /** `&[data-orientation=horizontal]` */
176
+ "_horizontal": string
177
+ /** `&[data-orientation=vertical]` */
178
+ "_vertical": string
179
+ /** `@media screen and (min-width: 40em)` */
180
+ "sm": string
181
+ /** `@media screen and (min-width: 40em) and (max-width: 47.996875em)` */
182
+ "smOnly": string
183
+ /** `@media screen and (max-width: 40em)` */
184
+ "smDown": string
185
+ /** `@media screen and (min-width: 48em)` */
186
+ "md": string
187
+ /** `@media screen and (min-width: 48em) and (max-width: 63.996875em)` */
188
+ "mdOnly": string
189
+ /** `@media screen and (max-width: 48em)` */
190
+ "mdDown": string
191
+ /** `@media screen and (min-width: 64em)` */
192
+ "lg": string
193
+ /** `@media screen and (min-width: 64em) and (max-width: 79.996875em)` */
194
+ "lgOnly": string
195
+ /** `@media screen and (max-width: 64em)` */
196
+ "lgDown": string
197
+ /** `@media screen and (min-width: 80em)` */
198
+ "xl": string
199
+ /** `@media screen and (min-width: 80em) and (max-width: 95.996875em)` */
200
+ "xlOnly": string
201
+ /** `@media screen and (max-width: 80em)` */
202
+ "xlDown": string
203
+ /** `@media screen and (min-width: 96em)` */
204
+ "2xl": string
205
+ /** `@media screen and (min-width: 96em)` */
206
+ "2xlOnly": string
207
+ /** `@media screen and (max-width: 96em)` */
208
+ "2xlDown": string
209
+ /** `@media screen and (min-width: 40em) and (max-width: 47.996875em)` */
210
+ "smToMd": string
211
+ /** `@media screen and (min-width: 40em) and (max-width: 63.996875em)` */
212
+ "smToLg": string
213
+ /** `@media screen and (min-width: 40em) and (max-width: 79.996875em)` */
214
+ "smToXl": string
215
+ /** `@media screen and (min-width: 40em) and (max-width: 95.996875em)` */
216
+ "smTo2xl": string
217
+ /** `@media screen and (min-width: 48em) and (max-width: 63.996875em)` */
218
+ "mdToLg": string
219
+ /** `@media screen and (min-width: 48em) and (max-width: 79.996875em)` */
220
+ "mdToXl": string
221
+ /** `@media screen and (min-width: 48em) and (max-width: 95.996875em)` */
222
+ "mdTo2xl": string
223
+ /** `@media screen and (min-width: 64em) and (max-width: 79.996875em)` */
224
+ "lgToXl": string
225
+ /** `@media screen and (min-width: 64em) and (max-width: 95.996875em)` */
226
+ "lgTo2xl": string
227
+ /** `@media screen and (min-width: 80em) and (max-width: 95.996875em)` */
228
+ "xlTo2xl": string
229
+ /** The base (=no conditions) styles to apply */
230
+ "base": string
118
231
  }
119
232
 
120
233
  export type Condition = keyof Conditions
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable */
2
2
  // @ts-nocheck
3
- import type { TextStyles, LayerStyles } from '@pandacss/dev'
3
+ import type * as Panda from '@pandacss/dev'
4
4
  import type { RecipeVariantRecord, RecipeConfig, SlotRecipeVariantRecord, SlotRecipeConfig } from './recipe';
5
5
  import type { Parts } from './parts';
6
6
  import type { PatternConfig, PatternProperties } from './pattern';
@@ -8,12 +8,12 @@ import type { GlobalStyleObject, SystemStyleObject } from './system-types';
8
8
  import type { CompositionStyles } from './composition';
9
9
 
10
10
  declare module '@pandacss/dev' {
11
- export function defineRecipe<V extends RecipeVariantRecord>(config: RecipeConfig<V>): RecipeConfig
12
- export function defineSlotRecipe<S extends string, V extends SlotRecipeVariantRecord<S>>(config: SlotRecipeConfig<S, V>): SlotRecipeConfig
11
+ export function defineRecipe<V extends RecipeVariantRecord>(config: RecipeConfig<V>): Panda.RecipeConfig
12
+ export function defineSlotRecipe<S extends string, V extends SlotRecipeVariantRecord<S>>(config: SlotRecipeConfig<S, V>): Panda.SlotRecipeConfig
13
13
  export function defineStyles(definition: SystemStyleObject): SystemStyleObject
14
- export function defineGlobalStyles(definition: GlobalStyleObject): GlobalStyleObject
15
- export function defineTextStyles(definition: CompositionStyles['textStyles']): TextStyles
16
- export function defineLayerStyles(definition: CompositionStyles['layerStyles']): LayerStyles
17
- export function definePattern<T extends PatternProperties>(config: PatternConfig<T>): PatternConfig
14
+ export function defineGlobalStyles(definition: GlobalStyleObject): Panda.GlobalStyleObject
15
+ export function defineTextStyles(definition: CompositionStyles['textStyles']): Panda.TextStyles
16
+ export function defineLayerStyles(definition: CompositionStyles['layerStyles']): Panda.LayerStyles
17
+ export function definePattern<T extends PatternProperties>(config: PatternConfig<T>): Panda.PatternConfig
18
18
  export function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>
19
19
  }
@@ -1,6 +1,8 @@
1
1
  /* eslint-disable */
2
2
  import './global.d.ts'
3
- export type { ConditionalValue } from './conditions';
4
- export type { PatternConfig, PatternProperties } from './pattern';
5
- export type { RecipeVariantRecord, RecipeConfig, SlotRecipeVariantRecord, SlotRecipeConfig } from './recipe';
6
- export type { GlobalStyleObject, JsxStyleProps, SystemStyleObject } from './system-types';
3
+ export * from './conditions';
4
+ export * from './pattern';
5
+ export * from './recipe';
6
+ export * from './system-types';
7
+ export * from './jsx';
8
+ export * from './style-props';
@@ -5,16 +5,16 @@ import type { RecipeDefinition, RecipeSelection, RecipeVariantRecord } from './r
5
5
 
6
6
  type Dict = Record<string, unknown>
7
7
 
8
- type ComponentProps<T extends ElementType> = DistributiveOmit<ComponentPropsWithoutRef<T>, 'ref'> & {
8
+ export type ComponentProps<T extends ElementType> = DistributiveOmit<ComponentPropsWithoutRef<T>, 'ref'> & {
9
9
  ref?: Ref<ElementRef<T>>
10
10
  }
11
11
 
12
- export type PandaComponent<T extends ElementType, P extends Dict = {}> = {
12
+ export interface PandaComponent<T extends ElementType, P extends Dict = {}> {
13
13
  (props: JsxHTMLProps<ComponentProps<T>, Assign<JsxStyleProps, P>>): JSX.Element
14
14
  displayName?: string
15
15
  }
16
16
 
17
- type RecipeFn = { __type: any }
17
+ interface RecipeFn { __type: any }
18
18
 
19
19
  interface JsxFactory {
20
20
  <T extends ElementType>(component: T): PandaComponent<T, {}>
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable */
2
- export type Part = {
2
+ export interface Part {
3
3
  selector: string
4
4
  }
5
5
 
@@ -11,7 +11,7 @@ export type PatternProperty =
11
11
  | { type: 'token'; value: TokenCategory; property?: CssProperty }
12
12
  | { type: 'string' | 'boolean' | 'number' }
13
13
 
14
- export type PatternHelpers = {
14
+ export interface PatternHelpers {
15
15
  map: (value: any, fn: (value: string) => string | undefined) => any
16
16
  }
17
17
 
@@ -19,7 +19,7 @@ export type PatternProperties = Record<string, PatternProperty>
19
19
 
20
20
  type Props<T> = Record<LiteralUnion<keyof T>, any>
21
21
 
22
- export type PatternConfig<T extends PatternProperties = PatternProperties> = {
22
+ export interface PatternConfig<T extends PatternProperties = PatternProperties> {
23
23
  /**
24
24
  * The description of the pattern. This will be used in the JSDoc comment.
25
25
  */
@@ -3,7 +3,7 @@ import type { ConditionalValue } from './conditions';
3
3
  import type { CssProperties } from './system-types';
4
4
  import type { Tokens } from '../tokens/index';
5
5
 
6
- type PropertyValueTypes = {
6
+ interface PropertyValueTypes {
7
7
  aspectRatio: "auto" | "square" | "landscape" | "portrait" | "wide" | "ultrawide" | "golden";
8
8
  zIndex: Tokens["zIndex"];
9
9
  top: Tokens["spacing"];
@@ -212,7 +212,7 @@ type PropertyValueTypes = {
212
212
 
213
213
  type Shorthand<T> = T extends keyof PropertyValueTypes ? PropertyValueTypes[T] | CssValue<T> : CssValue<T>
214
214
 
215
- export type PropertyTypes = PropertyValueTypes & {
215
+ export interface PropertyTypes extends PropertyValueTypes {
216
216
 
217
217
  pos: Shorthand<"position">;
218
218
  insetEnd: Shorthand<"insetInlineEnd">;
@@ -27,7 +27,7 @@ type RecipeVariantMap<T extends RecipeVariantRecord> = {
27
27
  * Recipe / Standard
28
28
  * -----------------------------------------------------------------------------*/
29
29
 
30
- export type RecipeRuntimeFn<T extends RecipeVariantRecord> = RecipeVariantFn<T> & {
30
+ export interface RecipeRuntimeFn<T extends RecipeVariantRecord> extends RecipeVariantFn<T> {
31
31
  __type: RecipeSelection<T>
32
32
  variantKeys: (keyof T)[]
33
33
  variantMap: RecipeVariantMap<T>
@@ -38,15 +38,17 @@ export type RecipeRuntimeFn<T extends RecipeVariantRecord> = RecipeVariantFn<T>
38
38
  ): [RecipeSelection<T>, Pretty<DistributiveOmit<Props, keyof T>>]
39
39
  }
40
40
 
41
- export type RecipeCompoundSelection<T extends RecipeVariantRecord> = {
42
- [K in keyof T]?: StringToBoolean<keyof T[K]> | Array<StringToBoolean<keyof T[K]>>
41
+ type OneOrMore<T> = T | Array<T>
42
+
43
+ export type RecipeCompoundSelection<T> = {
44
+ [K in keyof T]?: OneOrMore<StringToBoolean<keyof T[K]>>
43
45
  }
44
46
 
45
- export type RecipeCompoundVariant<T extends RecipeVariantRecord> = RecipeCompoundSelection<T> & {
47
+ export type RecipeCompoundVariant<T> = T & {
46
48
  css: SystemStyleObject
47
49
  }
48
50
 
49
- export type RecipeDefinition<T extends RecipeVariantRecord> = {
51
+ export interface RecipeDefinition<T extends RecipeVariantRecord> {
50
52
  /**
51
53
  * The base styles of the recipe.
52
54
  */
@@ -54,7 +56,7 @@ export type RecipeDefinition<T extends RecipeVariantRecord> = {
54
56
  /**
55
57
  * The multi-variant styles of the recipe.
56
58
  */
57
- variants?: T | RecipeVariantRecord
59
+ variants?: T
58
60
  /**
59
61
  * The default variants of the recipe.
60
62
  */
@@ -62,12 +64,12 @@ export type RecipeDefinition<T extends RecipeVariantRecord> = {
62
64
  /**
63
65
  * The styles to apply when a combination of variants is selected.
64
66
  */
65
- compoundVariants?: Array<RecipeCompoundVariant<T>>
67
+ compoundVariants?: Pretty<RecipeCompoundVariant<RecipeCompoundSelection<T>>>[]
66
68
  }
67
69
 
68
70
  export type RecipeCreatorFn = <T extends RecipeVariantRecord>(config: RecipeDefinition<T>) => RecipeRuntimeFn<T>
69
71
 
70
- type RecipeConfigMeta = {
72
+ interface RecipeConfigMeta {
71
73
  /**
72
74
  * The name of the recipe.
73
75
  */
@@ -85,7 +87,9 @@ type RecipeConfigMeta = {
85
87
  jsx?: Array<string | RegExp>
86
88
  }
87
89
 
88
- export type RecipeConfig<T extends RecipeVariantRecord = RecipeVariantRecord> = RecipeDefinition<T> & RecipeConfigMeta
90
+ export interface RecipeConfig<T extends RecipeVariantRecord = RecipeVariantRecord>
91
+ extends RecipeDefinition<T>,
92
+ RecipeConfigMeta {}
89
93
 
90
94
  /* -----------------------------------------------------------------------------
91
95
  * Recipe / Slot
@@ -99,18 +103,19 @@ export type SlotRecipeVariantFn<S extends string, T extends RecipeVariantRecord>
99
103
  props?: RecipeSelection<T>,
100
104
  ) => SlotRecord<S, string>
101
105
 
102
- export type SlotRecipeRuntimeFn<S extends string, T extends SlotRecipeVariantRecord<S>> = SlotRecipeVariantFn<S, T> & {
106
+ export interface SlotRecipeRuntimeFn<S extends string, T extends SlotRecipeVariantRecord<S>>
107
+ extends SlotRecipeVariantFn<S, T> {
103
108
  raw: (props?: RecipeSelection<T>) => Record<S, SystemStyleObject>
104
109
  variantKeys: (keyof T)[]
105
110
  variantMap: RecipeVariantMap<T>
106
111
  splitVariantProps<Props extends RecipeSelection<T>>(props: Props): [RecipeSelection<T>, Pretty<Omit<Props, keyof T>>]
107
112
  }
108
113
 
109
- export type SlotRecipeCompoundVariant<S extends string, T extends RecipeVariantRecord> = RecipeCompoundSelection<T> & {
114
+ export type SlotRecipeCompoundVariant<S extends string, T> = T & {
110
115
  css: SlotRecord<S, SystemStyleObject>
111
116
  }
112
117
 
113
- export type SlotRecipeDefinition<S extends string, T extends SlotRecipeVariantRecord<S>> = {
118
+ export interface SlotRecipeDefinition<S extends string, T extends SlotRecipeVariantRecord<S>> {
114
119
  /**
115
120
  * The parts/slots of the recipe.
116
121
  */
@@ -122,7 +127,7 @@ export type SlotRecipeDefinition<S extends string, T extends SlotRecipeVariantRe
122
127
  /**
123
128
  * The multi-variant styles of the recipe.
124
129
  */
125
- variants?: T | SlotRecipeVariantRecord<S>
130
+ variants?: T
126
131
  /**
127
132
  * The default variants of the recipe.
128
133
  */
@@ -130,7 +135,7 @@ export type SlotRecipeDefinition<S extends string, T extends SlotRecipeVariantRe
130
135
  /**
131
136
  * The styles to apply when a combination of variants is selected.
132
137
  */
133
- compoundVariants?: Array<SlotRecipeCompoundVariant<S, T>>
138
+ compoundVariants?: Pretty<SlotRecipeCompoundVariant<S, RecipeCompoundSelection<T>>>[]
134
139
  }
135
140
 
136
141
  export type SlotRecipeCreatorFn = <S extends string, T extends SlotRecipeVariantRecord<S>>(
@@ -7,7 +7,7 @@ export type CssVarProperties = {
7
7
  [key in `--${string}`]?: ConditionalValue<Token | (string & {}) | (number & {})>
8
8
  }
9
9
 
10
- export type SystemProperties = {
10
+ export interface SystemProperties {
11
11
  WebkitAppearance?: PropertyValue<'WebkitAppearance'>
12
12
  WebkitBorderBefore?: PropertyValue<'WebkitBorderBefore'>
13
13
  WebkitBorderBeforeColor?: PropertyValue<'WebkitBorderBeforeColor'>