@pandacss/studio 0.15.1 → 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.
- package/astro.config.mjs +1 -1
- package/dist/studio.d.mts +3 -2
- package/dist/studio.d.ts +3 -2
- package/dist/studio.js +10 -4
- package/dist/studio.mjs +10 -4
- package/package.json +8 -8
- package/src/lib/panda.context.ts +3 -5
- package/src/lib/virtual-panda.d.ts +3 -0
- package/styled-system/chunks/src__components__analyzer__category-utilities.css +61 -168
- package/styled-system/chunks/src__components__analyzer__data-combobox.css +69 -114
- package/styled-system/chunks/src__components__analyzer__data-table.css +24 -23
- package/styled-system/chunks/src__components__analyzer__file-details.css +53 -112
- package/styled-system/chunks/src__components__analyzer__report-item-columns.css +20 -19
- package/styled-system/chunks/src__components__analyzer__report-item-link.css +39 -222
- package/styled-system/chunks/src__components__analyzer__section.css +16 -15
- package/styled-system/chunks/src__components__analyzer__text-with-count.css +18 -17
- package/styled-system/chunks/src__components__analyzer__truncated-text.css +10 -9
- package/styled-system/chunks/src__components__analyzer__utility-details.css +71 -178
- package/styled-system/chunks/src__components__color-constrast.css +54 -61
- package/styled-system/chunks/src__components__color-item.css +12 -11
- package/styled-system/chunks/src__components__color-wrapper.css +37 -196
- package/styled-system/chunks/src__components__colors.css +54 -53
- package/styled-system/chunks/src__components__empty-state.css +24 -23
- package/styled-system/chunks/src__components__font-family.css +44 -43
- package/styled-system/chunks/src__components__font-tokens.css +32 -31
- package/styled-system/chunks/src__components__input.css +34 -137
- package/styled-system/chunks/src__components__layer-styles.css +34 -76
- package/styled-system/chunks/src__components__nav-item.css +37 -161
- package/styled-system/chunks/src__components__overview.css +63 -102
- package/styled-system/chunks/src__components__radii.css +26 -25
- package/styled-system/chunks/src__components__semantic-color.css +34 -33
- package/styled-system/chunks/src__components__side-nav-item.css +17 -56
- package/styled-system/chunks/src__components__side-nav.css +26 -25
- package/styled-system/chunks/src__components__sizes.css +22 -21
- package/styled-system/chunks/src__components__text-styles.css +16 -15
- package/styled-system/chunks/src__components__theme-toggle.css +28 -47
- package/styled-system/chunks/src__components__token-analyzer.css +114 -379
- package/styled-system/chunks/src__components__token-content.css +8 -7
- package/styled-system/chunks/src__components__token-group.css +12 -11
- package/styled-system/chunks/src__components__typography-playground.css +32 -31
- package/styled-system/chunks/src__layouts__Sidebar.css +59 -94
- package/styled-system/jsx/aspect-ratio.d.ts +1 -1
- package/styled-system/jsx/bleed.d.ts +1 -1
- package/styled-system/jsx/box.d.ts +1 -1
- package/styled-system/jsx/center.d.ts +1 -1
- package/styled-system/jsx/circle.d.ts +1 -1
- package/styled-system/jsx/container.d.ts +1 -1
- package/styled-system/jsx/divider.d.ts +1 -1
- package/styled-system/jsx/flex.d.ts +1 -1
- package/styled-system/jsx/float.d.ts +1 -1
- package/styled-system/jsx/grid-item.d.ts +1 -1
- package/styled-system/jsx/grid.d.ts +1 -1
- package/styled-system/jsx/hstack.d.ts +1 -1
- package/styled-system/jsx/link-box.d.ts +1 -1
- package/styled-system/jsx/link-overlay.d.ts +1 -1
- package/styled-system/jsx/spacer.d.ts +1 -1
- package/styled-system/jsx/square.d.ts +1 -1
- package/styled-system/jsx/stack.d.ts +1 -1
- package/styled-system/jsx/styled-link.d.ts +1 -1
- package/styled-system/jsx/visually-hidden.d.ts +1 -1
- package/styled-system/jsx/vstack.d.ts +1 -1
- package/styled-system/jsx/wrap.d.ts +1 -1
- package/styled-system/patterns/aspect-ratio.d.ts +2 -2
- package/styled-system/patterns/bleed.d.ts +2 -2
- package/styled-system/patterns/box.d.ts +2 -2
- package/styled-system/patterns/center.d.ts +2 -2
- package/styled-system/patterns/circle.d.ts +2 -2
- package/styled-system/patterns/container.d.ts +2 -2
- package/styled-system/patterns/divider.d.ts +2 -2
- package/styled-system/patterns/flex.d.ts +2 -2
- package/styled-system/patterns/float.d.ts +2 -2
- package/styled-system/patterns/grid-item.d.ts +2 -2
- package/styled-system/patterns/grid.d.ts +2 -2
- package/styled-system/patterns/hstack.d.ts +2 -2
- package/styled-system/patterns/link-box.d.ts +2 -2
- package/styled-system/patterns/link-overlay.d.ts +2 -2
- package/styled-system/patterns/spacer.d.ts +2 -2
- package/styled-system/patterns/square.d.ts +2 -2
- package/styled-system/patterns/stack.d.ts +2 -2
- package/styled-system/patterns/styled-link.d.ts +2 -2
- package/styled-system/patterns/visually-hidden.d.ts +2 -2
- package/styled-system/patterns/vstack.d.ts +2 -2
- package/styled-system/patterns/wrap.d.ts +2 -2
- package/styled-system/styles.css +507 -516
- package/styled-system/tokens/index.css +8 -8
- package/styled-system/types/composition.d.ts +3 -3
- package/styled-system/types/conditions.d.ts +227 -114
- package/styled-system/types/global.d.ts +7 -7
- package/styled-system/types/index.d.ts +6 -4
- package/styled-system/types/jsx.d.ts +3 -3
- package/styled-system/types/parts.d.ts +1 -1
- package/styled-system/types/pattern.d.ts +2 -2
- package/styled-system/types/prop-type.d.ts +2 -2
- package/styled-system/types/recipe.d.ts +9 -6
- package/styled-system/types/style-props.d.ts +1 -1
- package/styled-system/types/system-types.d.ts +12 -6
- 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:
|
|
424
|
-
--colors-bg:
|
|
425
|
-
--colors-card:
|
|
426
|
-
--colors-border:
|
|
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:
|
|
432
|
-
--colors-bg:
|
|
433
|
-
--colors-card:
|
|
434
|
-
--colors-border:
|
|
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
|
-
|
|
4
|
+
interface Recursive<T> {
|
|
5
5
|
[key: string]: Recursive<T> | T
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
export
|
|
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
|
|
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
|
|
5
|
-
/** `&:is(:hover, [data-hover])` */
|
|
6
|
-
|
|
7
|
-
/** `&:focus-
|
|
8
|
-
|
|
9
|
-
/** `&:
|
|
10
|
-
|
|
11
|
-
/** `&:
|
|
12
|
-
|
|
13
|
-
/** `&:is(:
|
|
14
|
-
|
|
15
|
-
/** `&:is(:
|
|
16
|
-
|
|
17
|
-
/** `&:
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
|
|
29
|
-
/** `&:
|
|
30
|
-
|
|
31
|
-
/** `&:
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
|
|
55
|
-
/** `&:
|
|
56
|
-
|
|
57
|
-
/** `&:
|
|
58
|
-
|
|
59
|
-
/** `&:
|
|
60
|
-
|
|
61
|
-
/** `&:
|
|
62
|
-
|
|
63
|
-
/** `&:
|
|
64
|
-
|
|
65
|
-
/** `&:
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
|
|
117
|
-
/**
|
|
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
|
|
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
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
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
|
|
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
|
-
|
|
17
|
+
interface RecipeFn { __type: any }
|
|
18
18
|
|
|
19
19
|
interface JsxFactory {
|
|
20
20
|
<T extends ElementType>(component: T): PandaComponent<T, {}>
|
|
@@ -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
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
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>
|
|
@@ -46,7 +46,7 @@ export type RecipeCompoundVariant<T extends RecipeVariantRecord> = RecipeCompoun
|
|
|
46
46
|
css: SystemStyleObject
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export
|
|
49
|
+
export interface RecipeDefinition<T extends RecipeVariantRecord> {
|
|
50
50
|
/**
|
|
51
51
|
* The base styles of the recipe.
|
|
52
52
|
*/
|
|
@@ -67,7 +67,7 @@ export type RecipeDefinition<T extends RecipeVariantRecord> = {
|
|
|
67
67
|
|
|
68
68
|
export type RecipeCreatorFn = <T extends RecipeVariantRecord>(config: RecipeDefinition<T>) => RecipeRuntimeFn<T>
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
interface RecipeConfigMeta {
|
|
71
71
|
/**
|
|
72
72
|
* The name of the recipe.
|
|
73
73
|
*/
|
|
@@ -85,7 +85,9 @@ type RecipeConfigMeta = {
|
|
|
85
85
|
jsx?: Array<string | RegExp>
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
export
|
|
88
|
+
export interface RecipeConfig<T extends RecipeVariantRecord = RecipeVariantRecord>
|
|
89
|
+
extends RecipeDefinition<T>,
|
|
90
|
+
RecipeConfigMeta {}
|
|
89
91
|
|
|
90
92
|
/* -----------------------------------------------------------------------------
|
|
91
93
|
* Recipe / Slot
|
|
@@ -99,7 +101,8 @@ export type SlotRecipeVariantFn<S extends string, T extends RecipeVariantRecord>
|
|
|
99
101
|
props?: RecipeSelection<T>,
|
|
100
102
|
) => SlotRecord<S, string>
|
|
101
103
|
|
|
102
|
-
export
|
|
104
|
+
export interface SlotRecipeRuntimeFn<S extends string, T extends SlotRecipeVariantRecord<S>>
|
|
105
|
+
extends SlotRecipeVariantFn<S, T> {
|
|
103
106
|
raw: (props?: RecipeSelection<T>) => Record<S, SystemStyleObject>
|
|
104
107
|
variantKeys: (keyof T)[]
|
|
105
108
|
variantMap: RecipeVariantMap<T>
|
|
@@ -110,7 +113,7 @@ export type SlotRecipeCompoundVariant<S extends string, T extends RecipeVariantR
|
|
|
110
113
|
css: SlotRecord<S, SystemStyleObject>
|
|
111
114
|
}
|
|
112
115
|
|
|
113
|
-
export
|
|
116
|
+
export interface SlotRecipeDefinition<S extends string, T extends SlotRecipeVariantRecord<S>> {
|
|
114
117
|
/**
|
|
115
118
|
* The parts/slots of the recipe.
|
|
116
119
|
*/
|
|
@@ -7,7 +7,7 @@ export type CssVarProperties = {
|
|
|
7
7
|
[key in `--${string}`]?: ConditionalValue<Token | (string & {}) | (number & {})>
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export
|
|
10
|
+
export interface SystemProperties {
|
|
11
11
|
WebkitAppearance?: PropertyValue<'WebkitAppearance'>
|
|
12
12
|
WebkitBorderBefore?: PropertyValue<'WebkitBorderBefore'>
|
|
13
13
|
WebkitBorderBeforeColor?: PropertyValue<'WebkitBorderBeforeColor'>
|
|
@@ -12,9 +12,9 @@ type Number = number & {}
|
|
|
12
12
|
|
|
13
13
|
export type CssProperty = keyof PropertiesFallback
|
|
14
14
|
|
|
15
|
-
export
|
|
15
|
+
export interface CssProperties extends PropertiesFallback<String | Number>, CssVarProperties {}
|
|
16
16
|
|
|
17
|
-
export
|
|
17
|
+
export interface CssKeyframes {
|
|
18
18
|
[name: string]: {
|
|
19
19
|
[time: string]: CssProperties
|
|
20
20
|
}
|
|
@@ -28,7 +28,7 @@ type MinimalNested<P> = {
|
|
|
28
28
|
[K in keyof Conditions]?: Nested<P>
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
interface GenericProperties {
|
|
32
32
|
[key: string]: ConditionalValue<String | Number | boolean>
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -40,9 +40,13 @@ export type NestedCssProperties = Nested<CssProperties>
|
|
|
40
40
|
|
|
41
41
|
export type SystemStyleObject = Nested<SystemProperties & CssVarProperties>
|
|
42
42
|
|
|
43
|
-
export
|
|
43
|
+
export interface GlobalStyleObject {
|
|
44
44
|
[selector: string]: SystemStyleObject
|
|
45
45
|
}
|
|
46
|
+
export interface ExtendableGlobalStyleObject {
|
|
47
|
+
[selector: string]: SystemStyleObject | undefined
|
|
48
|
+
extend?: GlobalStyleObject | undefined
|
|
49
|
+
}
|
|
46
50
|
|
|
47
51
|
export type CompositionStyleObject<Property extends string> = Nested<{
|
|
48
52
|
[K in Property]?: K extends keyof SystemStyleObject ? SystemStyleObject[K] : unknown
|
|
@@ -51,7 +55,9 @@ export type CompositionStyleObject<Property extends string> = Nested<{
|
|
|
51
55
|
/* -----------------------------------------------------------------------------
|
|
52
56
|
* Jsx style props
|
|
53
57
|
* -----------------------------------------------------------------------------*/
|
|
54
|
-
|
|
58
|
+
interface WithCss {
|
|
59
|
+
css?: SystemStyleObject
|
|
60
|
+
}
|
|
55
61
|
type StyleProps = SystemProperties & MinimalNested<SystemStyleObject>
|
|
56
62
|
|
|
57
63
|
export type JsxStyleProps = StyleProps & WithCss
|
|
@@ -62,7 +68,7 @@ export type Assign<T, U> = {
|
|
|
62
68
|
[K in keyof T]: K extends keyof U ? U[K] : T[K]
|
|
63
69
|
} & U
|
|
64
70
|
|
|
65
|
-
export
|
|
71
|
+
export interface PatchedHTMLProps {
|
|
66
72
|
htmlWidth?: string | number
|
|
67
73
|
htmlHeight?: string | number
|
|
68
74
|
htmlTranslate?: 'yes' | 'no' | undefined
|