@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.
- 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/factory.mjs +4 -5
- 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 +19 -14
- 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>
|
|
@@ -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
|
-
|
|
42
|
-
|
|
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
|
|
47
|
+
export type RecipeCompoundVariant<T> = T & {
|
|
46
48
|
css: SystemStyleObject
|
|
47
49
|
}
|
|
48
50
|
|
|
49
|
-
export
|
|
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
|
|
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?:
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
114
|
+
export type SlotRecipeCompoundVariant<S extends string, T> = T & {
|
|
110
115
|
css: SlotRecord<S, SystemStyleObject>
|
|
111
116
|
}
|
|
112
117
|
|
|
113
|
-
export
|
|
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
|
|
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?:
|
|
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
|
|
10
|
+
export interface SystemProperties {
|
|
11
11
|
WebkitAppearance?: PropertyValue<'WebkitAppearance'>
|
|
12
12
|
WebkitBorderBefore?: PropertyValue<'WebkitBorderBefore'>
|
|
13
13
|
WebkitBorderBeforeColor?: PropertyValue<'WebkitBorderBeforeColor'>
|