@pandacss/studio 0.15.0 → 0.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/astro.config.mjs +1 -1
- package/dist/studio.d.mts +3 -2
- package/dist/studio.d.ts +3 -2
- package/dist/studio.js +12 -6
- package/dist/studio.mjs +12 -6
- package/package.json +9 -9
- 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/helpers.mjs +3 -2
- 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 +2 -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/reset.css +20 -5
- package/styled-system/styles.css +492 -735
- 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
- package/styled-system/chunks/..__core____tests____atomic-rule.test.css +0 -216
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
@layer utilities {
|
|
2
|
+
|
|
2
3
|
.d_flex {
|
|
3
|
-
display: flex
|
|
4
|
-
|
|
4
|
+
display: flex
|
|
5
|
+
}
|
|
5
6
|
|
|
6
7
|
.flex_column {
|
|
7
|
-
flex-direction: column
|
|
8
|
-
|
|
8
|
+
flex-direction: column
|
|
9
|
+
}
|
|
9
10
|
|
|
10
11
|
.gap_12 {
|
|
11
|
-
gap: var(--spacing-12)
|
|
12
|
-
|
|
13
|
-
}
|
|
12
|
+
gap: var(--spacing-12)
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
@layer utilities {
|
|
2
|
+
|
|
2
3
|
.d_flex {
|
|
3
|
-
display: flex
|
|
4
|
-
|
|
4
|
+
display: flex
|
|
5
|
+
}
|
|
5
6
|
|
|
6
7
|
.flex_column {
|
|
7
|
-
flex-direction: column
|
|
8
|
-
|
|
8
|
+
flex-direction: column
|
|
9
|
+
}
|
|
9
10
|
|
|
10
11
|
.gap_3 {
|
|
11
|
-
gap: var(--spacing-3)
|
|
12
|
-
|
|
12
|
+
gap: var(--spacing-3)
|
|
13
|
+
}
|
|
13
14
|
|
|
14
15
|
.w_full {
|
|
15
|
-
width: var(--sizes-full)
|
|
16
|
-
|
|
16
|
+
width: var(--sizes-full)
|
|
17
|
+
}
|
|
17
18
|
|
|
18
19
|
.mt_5 {
|
|
19
|
-
margin-top: var(--spacing-5)
|
|
20
|
-
|
|
21
|
-
}
|
|
20
|
+
margin-top: var(--spacing-5)
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1,61 +1,62 @@
|
|
|
1
1
|
@layer utilities {
|
|
2
|
+
|
|
2
3
|
.bg_card {
|
|
3
|
-
background: var(--colors-card)
|
|
4
|
-
|
|
4
|
+
background: var(--colors-card)
|
|
5
|
+
}
|
|
5
6
|
|
|
6
7
|
.ring_0 {
|
|
7
|
-
outline: 0
|
|
8
|
-
|
|
8
|
+
outline: 0
|
|
9
|
+
}
|
|
9
10
|
|
|
10
11
|
.pt_28 {
|
|
11
|
-
padding-top: var(--spacing-28)
|
|
12
|
-
|
|
12
|
+
padding-top: var(--spacing-28)
|
|
13
|
+
}
|
|
13
14
|
|
|
14
15
|
.pb_28 {
|
|
15
|
-
padding-bottom: var(--spacing-28)
|
|
16
|
-
|
|
16
|
+
padding-bottom: var(--spacing-28)
|
|
17
|
+
}
|
|
17
18
|
|
|
18
19
|
.mx_auto {
|
|
19
|
-
margin-inline: auto
|
|
20
|
-
|
|
20
|
+
margin-inline: auto
|
|
21
|
+
}
|
|
21
22
|
|
|
22
23
|
.w_fit-content {
|
|
23
|
-
width: fit-content
|
|
24
|
-
|
|
24
|
+
width: fit-content
|
|
25
|
+
}
|
|
25
26
|
|
|
26
27
|
.items_center {
|
|
27
|
-
align-items: center
|
|
28
|
-
|
|
28
|
+
align-items: center
|
|
29
|
+
}
|
|
29
30
|
|
|
30
31
|
.gap_1\.5 {
|
|
31
|
-
gap: var(--spacing-1\.5)
|
|
32
|
-
|
|
32
|
+
gap: var(--spacing-1\.5)
|
|
33
|
+
}
|
|
33
34
|
|
|
34
35
|
.white-space_nowrap {
|
|
35
|
-
white-space: nowrap
|
|
36
|
-
|
|
36
|
+
white-space: nowrap
|
|
37
|
+
}
|
|
37
38
|
|
|
38
39
|
.w_48 {
|
|
39
|
-
width: var(--sizes-48)
|
|
40
|
-
|
|
40
|
+
width: var(--sizes-48)
|
|
41
|
+
}
|
|
41
42
|
|
|
42
43
|
.text_capitalize {
|
|
43
|
-
text-transform: capitalize
|
|
44
|
-
|
|
44
|
+
text-transform: capitalize
|
|
45
|
+
}
|
|
45
46
|
|
|
46
47
|
.mr_2 {
|
|
47
|
-
margin-right: var(--spacing-2)
|
|
48
|
-
|
|
48
|
+
margin-right: var(--spacing-2)
|
|
49
|
+
}
|
|
49
50
|
|
|
50
51
|
.d_flex {
|
|
51
|
-
display: flex
|
|
52
|
-
|
|
52
|
+
display: flex
|
|
53
|
+
}
|
|
53
54
|
|
|
54
55
|
.flex_column {
|
|
55
|
-
flex-direction: column
|
|
56
|
-
|
|
56
|
+
flex-direction: column
|
|
57
|
+
}
|
|
57
58
|
|
|
58
59
|
.gap_4 {
|
|
59
|
-
gap: var(--spacing-4)
|
|
60
|
-
|
|
61
|
-
}
|
|
60
|
+
gap: var(--spacing-4)
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -1,149 +1,114 @@
|
|
|
1
1
|
@layer utilities {
|
|
2
|
+
|
|
2
3
|
.h_calc\(100vh_-_env\(safe-area-inset-bottom\)\) {
|
|
3
|
-
height: calc(100vh - env(safe-area-inset-bottom))
|
|
4
|
-
|
|
4
|
+
height: calc(100vh - env(safe-area-inset-bottom))
|
|
5
|
+
}
|
|
5
6
|
|
|
6
7
|
.font_bold {
|
|
7
|
-
font-weight: var(--font-weights-bold)
|
|
8
|
-
|
|
8
|
+
font-weight: var(--font-weights-bold)
|
|
9
|
+
}
|
|
9
10
|
|
|
10
11
|
.fs_2xl {
|
|
11
|
-
font-size: var(--font-sizes-2xl)
|
|
12
|
-
|
|
12
|
+
font-size: var(--font-sizes-2xl)
|
|
13
|
+
}
|
|
13
14
|
|
|
14
15
|
.gap_2 {
|
|
15
|
-
gap: var(--spacing-2)
|
|
16
|
-
|
|
16
|
+
gap: var(--spacing-2)
|
|
17
|
+
}
|
|
17
18
|
|
|
18
19
|
.w_16 {
|
|
19
|
-
width: var(--sizes-16)
|
|
20
|
-
|
|
20
|
+
width: var(--sizes-16)
|
|
21
|
+
}
|
|
21
22
|
|
|
22
23
|
.mt_4 {
|
|
23
|
-
margin-top: var(--spacing-4)
|
|
24
|
-
|
|
24
|
+
margin-top: var(--spacing-4)
|
|
25
|
+
}
|
|
25
26
|
|
|
26
27
|
.pt_14 {
|
|
27
|
-
padding-top: var(--spacing-14)
|
|
28
|
-
|
|
28
|
+
padding-top: var(--spacing-14)
|
|
29
|
+
}
|
|
29
30
|
|
|
30
31
|
.pb_8 {
|
|
31
|
-
padding-bottom: var(--spacing-8)
|
|
32
|
-
|
|
32
|
+
padding-bottom: var(--spacing-8)
|
|
33
|
+
}
|
|
33
34
|
|
|
34
35
|
.fs_3xl {
|
|
35
|
-
font-size: var(--font-sizes-3xl)
|
|
36
|
-
|
|
36
|
+
font-size: var(--font-sizes-3xl)
|
|
37
|
+
}
|
|
37
38
|
|
|
38
39
|
.font_semibold {
|
|
39
|
-
font-weight: var(--font-weights-semibold)
|
|
40
|
-
|
|
40
|
+
font-weight: var(--font-weights-semibold)
|
|
41
|
+
}
|
|
41
42
|
|
|
42
43
|
.mb_8 {
|
|
43
|
-
margin-bottom: var(--spacing-8)
|
|
44
|
-
|
|
44
|
+
margin-bottom: var(--spacing-8)
|
|
45
|
+
}
|
|
45
46
|
|
|
46
47
|
.tracking_tight {
|
|
47
|
-
letter-spacing: var(--letter-spacings-tight)
|
|
48
|
-
|
|
48
|
+
letter-spacing: var(--letter-spacings-tight)
|
|
49
|
+
}
|
|
49
50
|
|
|
50
51
|
.d_flex {
|
|
51
|
-
display: flex
|
|
52
|
-
|
|
52
|
+
display: flex
|
|
53
|
+
}
|
|
53
54
|
|
|
54
55
|
.flex_column {
|
|
55
|
-
flex-direction: column
|
|
56
|
-
|
|
56
|
+
flex-direction: column
|
|
57
|
+
}
|
|
57
58
|
|
|
58
59
|
.gap_10px {
|
|
59
|
-
gap: 10px
|
|
60
|
-
|
|
60
|
+
gap: 10px
|
|
61
|
+
}
|
|
61
62
|
|
|
62
63
|
.h_full {
|
|
63
|
-
height: var(--sizes-full)
|
|
64
|
-
|
|
64
|
+
height: var(--sizes-full)
|
|
65
|
+
}
|
|
65
66
|
|
|
66
67
|
.min-w_60 {
|
|
67
|
-
min-width: var(--sizes-60)
|
|
68
|
-
|
|
68
|
+
min-width: var(--sizes-60)
|
|
69
|
+
}
|
|
69
70
|
|
|
70
71
|
.px_12 {
|
|
71
|
-
padding-inline: var(--spacing-12)
|
|
72
|
-
|
|
72
|
+
padding-inline: var(--spacing-12)
|
|
73
|
+
}
|
|
73
74
|
|
|
74
75
|
.py_8 {
|
|
75
|
-
padding-block: var(--spacing-8)
|
|
76
|
-
|
|
76
|
+
padding-block: var(--spacing-8)
|
|
77
|
+
}
|
|
77
78
|
|
|
78
79
|
.pos_relative {
|
|
79
|
-
position: relative
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.max-w_8xl {
|
|
83
|
-
max-width: var(--sizes-8xl);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.mx_auto {
|
|
87
|
-
margin-inline: auto;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.px_4 {
|
|
91
|
-
padding-inline: var(--spacing-4);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.w_full {
|
|
95
|
-
width: var(--sizes-full);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.overflow_auto {
|
|
99
|
-
overflow: auto;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.md\:px_6 {
|
|
103
|
-
@media screen and (min-width: 768px) {
|
|
104
|
-
padding-inline: var(--spacing-6);
|
|
80
|
+
position: relative
|
|
105
81
|
}
|
|
106
|
-
}
|
|
107
82
|
|
|
108
|
-
.
|
|
109
|
-
|
|
110
|
-
padding-inline: var(--spacing-8);
|
|
83
|
+
.max-w_8xl {
|
|
84
|
+
max-width: var(--sizes-8xl)
|
|
111
85
|
}
|
|
112
|
-
}
|
|
113
86
|
|
|
114
|
-
.
|
|
115
|
-
|
|
116
|
-
padding-inline: var(--spacing-6);
|
|
87
|
+
.mx_auto {
|
|
88
|
+
margin-inline: auto
|
|
117
89
|
}
|
|
118
|
-
}
|
|
119
90
|
|
|
120
|
-
.
|
|
121
|
-
|
|
122
|
-
padding-inline: var(--spacing-8);
|
|
91
|
+
.px_4 {
|
|
92
|
+
padding-inline: var(--spacing-4)
|
|
123
93
|
}
|
|
124
|
-
}
|
|
125
94
|
|
|
126
|
-
.
|
|
127
|
-
|
|
128
|
-
padding-inline: var(--spacing-6);
|
|
95
|
+
.w_full {
|
|
96
|
+
width: var(--sizes-full)
|
|
129
97
|
}
|
|
130
|
-
}
|
|
131
98
|
|
|
132
|
-
.
|
|
133
|
-
|
|
134
|
-
padding-inline: var(--spacing-8);
|
|
99
|
+
.overflow_auto {
|
|
100
|
+
overflow: auto
|
|
135
101
|
}
|
|
136
|
-
}
|
|
137
102
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
padding-inline: var(--spacing-6)
|
|
103
|
+
@media screen and (min-width: 48em) {
|
|
104
|
+
.md\:px_6 {
|
|
105
|
+
padding-inline: var(--spacing-6)
|
|
141
106
|
}
|
|
142
|
-
|
|
107
|
+
}
|
|
143
108
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
padding-inline: var(--spacing-8)
|
|
109
|
+
@media screen and (min-width: 64em) {
|
|
110
|
+
.lg\:px_8 {
|
|
111
|
+
padding-inline: var(--spacing-8)
|
|
147
112
|
}
|
|
148
|
-
|
|
149
|
-
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -210,7 +210,7 @@ var hypenateProperty = memo((property) => {
|
|
|
210
210
|
});
|
|
211
211
|
|
|
212
212
|
// src/slot.ts
|
|
213
|
-
var getSlotRecipes = (recipe) => {
|
|
213
|
+
var getSlotRecipes = (recipe = {}) => {
|
|
214
214
|
const init = (slot) => ({
|
|
215
215
|
className: [recipe.className, slot].filter(Boolean).join("__"),
|
|
216
216
|
base: recipe.base?.[slot] ?? {},
|
|
@@ -218,7 +218,8 @@ var getSlotRecipes = (recipe) => {
|
|
|
218
218
|
defaultVariants: recipe.defaultVariants ?? {},
|
|
219
219
|
compoundVariants: recipe.compoundVariants ? getSlotCompoundVariant(recipe.compoundVariants, slot) : []
|
|
220
220
|
});
|
|
221
|
-
const
|
|
221
|
+
const slots = recipe.slots ?? [];
|
|
222
|
+
const recipeParts = slots.map((slot) => [slot, init(slot)]);
|
|
222
223
|
for (const [variantsKey, variantsSpec] of Object.entries(recipe.variants ?? {})) {
|
|
223
224
|
for (const [variantKey, variantSpec] of Object.entries(variantsSpec)) {
|
|
224
225
|
recipeParts.forEach(([slot, slotRecipe]) => {
|
|
@@ -4,7 +4,7 @@ import type { AspectRatioProperties } from '../patterns/aspect-ratio';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface AspectRatioProps extends AspectRatioProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof AspectRatioProperties | 'aspectRatio'> {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const AspectRatio: FunctionComponent<AspectRatioProps>
|
|
@@ -4,7 +4,7 @@ import type { BleedProperties } from '../patterns/bleed';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface BleedProps extends BleedProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof BleedProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Bleed: FunctionComponent<BleedProps>
|
|
@@ -4,7 +4,7 @@ import type { BoxProperties } from '../patterns/box';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface BoxProps extends BoxProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof BoxProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Box: FunctionComponent<BoxProps>
|
|
@@ -4,7 +4,7 @@ import type { CenterProperties } from '../patterns/center';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface CenterProps extends CenterProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof CenterProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Center: FunctionComponent<CenterProps>
|
|
@@ -4,7 +4,7 @@ import type { CircleProperties } from '../patterns/circle';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface CircleProps extends CircleProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof CircleProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Circle: FunctionComponent<CircleProps>
|
|
@@ -4,7 +4,7 @@ import type { ContainerProperties } from '../patterns/container';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface ContainerProps extends ContainerProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof ContainerProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Container: FunctionComponent<ContainerProps>
|
|
@@ -4,7 +4,7 @@ import type { DividerProperties } from '../patterns/divider';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface DividerProps extends DividerProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof DividerProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Divider: FunctionComponent<DividerProps>
|
|
@@ -37,7 +37,8 @@ function cvaClass() {
|
|
|
37
37
|
})
|
|
38
38
|
})
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
const name = (typeof Dynamic === 'string' ? Dynamic : Dynamic.displayName || Dynamic.name) || 'Component'
|
|
41
|
+
PandaComponent.displayName = `panda.${name}`
|
|
41
42
|
return PandaComponent
|
|
42
43
|
}
|
|
43
44
|
|
|
@@ -4,7 +4,7 @@ import type { FlexProperties } from '../patterns/flex';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface FlexProps extends FlexProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof FlexProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Flex: FunctionComponent<FlexProps>
|
|
@@ -4,7 +4,7 @@ import type { FloatProperties } from '../patterns/float';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface FloatProps extends FloatProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof FloatProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Float: FunctionComponent<FloatProps>
|
|
@@ -4,7 +4,7 @@ import type { GridItemProperties } from '../patterns/grid-item';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface GridItemProps extends GridItemProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof GridItemProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const GridItem: FunctionComponent<GridItemProps>
|
|
@@ -4,7 +4,7 @@ import type { GridProperties } from '../patterns/grid';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface GridProps extends GridProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof GridProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Grid: FunctionComponent<GridProps>
|
|
@@ -4,7 +4,7 @@ import type { HstackProperties } from '../patterns/hstack';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface HstackProps extends HstackProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof HstackProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const HStack: FunctionComponent<HstackProps>
|
|
@@ -4,7 +4,7 @@ import type { LinkBoxProperties } from '../patterns/link-box';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface LinkBoxProps extends LinkBoxProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof LinkBoxProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const LinkBox: FunctionComponent<LinkBoxProps>
|
|
@@ -4,7 +4,7 @@ import type { LinkOverlayProperties } from '../patterns/link-overlay';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface LinkOverlayProps extends LinkOverlayProperties, DistributiveOmit<HTMLPandaProps<'a'>, keyof LinkOverlayProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const LinkOverlay: FunctionComponent<LinkOverlayProps>
|
|
@@ -4,7 +4,7 @@ import type { SpacerProperties } from '../patterns/spacer';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface SpacerProps extends SpacerProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof SpacerProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Spacer: FunctionComponent<SpacerProps>
|
|
@@ -4,7 +4,7 @@ import type { SquareProperties } from '../patterns/square';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface SquareProps extends SquareProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof SquareProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Square: FunctionComponent<SquareProps>
|
|
@@ -4,7 +4,7 @@ import type { StackProperties } from '../patterns/stack';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface StackProps extends StackProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof StackProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Stack: FunctionComponent<StackProps>
|
|
@@ -4,7 +4,7 @@ import type { StyledLinkProperties } from '../patterns/styled-link';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface StyledLinkProps extends StyledLinkProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof StyledLinkProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const StyledLink: FunctionComponent<StyledLinkProps>
|
|
@@ -4,7 +4,7 @@ import type { VisuallyHiddenProperties } from '../patterns/visually-hidden';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface VisuallyHiddenProps extends VisuallyHiddenProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof VisuallyHiddenProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const VisuallyHidden: FunctionComponent<VisuallyHiddenProps>
|
|
@@ -4,7 +4,7 @@ import type { VstackProperties } from '../patterns/vstack';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface VstackProps extends VstackProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof VstackProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const VStack: FunctionComponent<VstackProps>
|
|
@@ -4,7 +4,7 @@ import type { WrapProperties } from '../patterns/wrap';
|
|
|
4
4
|
import type { HTMLPandaProps } from '../types/jsx';
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface WrapProps extends WrapProperties, DistributiveOmit<HTMLPandaProps<'div'>, keyof WrapProperties > {}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
export declare const Wrap: FunctionComponent<WrapProps>
|
|
@@ -5,12 +5,12 @@ import type { PropertyValue } from '../types/prop-type';
|
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
|
-
export
|
|
8
|
+
export interface AspectRatioProperties {
|
|
9
9
|
ratio?: ConditionalValue<number>
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
interface AspectRatioStyles extends AspectRatioProperties, DistributiveOmit<SystemStyleObject, keyof AspectRatioProperties | 'aspectRatio'> {}
|
|
14
14
|
|
|
15
15
|
interface AspectRatioPatternFn {
|
|
16
16
|
(styles?: AspectRatioStyles): string
|
|
@@ -5,13 +5,13 @@ import type { PropertyValue } from '../types/prop-type';
|
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
|
-
export
|
|
8
|
+
export interface BleedProperties {
|
|
9
9
|
inline?: PropertyValue<'marginInline'>
|
|
10
10
|
block?: PropertyValue<'marginBlock'>
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
interface BleedStyles extends BleedProperties, DistributiveOmit<SystemStyleObject, keyof BleedProperties > {}
|
|
15
15
|
|
|
16
16
|
interface BleedPatternFn {
|
|
17
17
|
(styles?: BleedStyles): string
|
|
@@ -5,12 +5,12 @@ import type { PropertyValue } from '../types/prop-type';
|
|
|
5
5
|
import type { DistributiveOmit } from '../types/system-types';
|
|
6
6
|
import type { Tokens } from '../tokens/index';
|
|
7
7
|
|
|
8
|
-
export
|
|
8
|
+
export interface BoxProperties {
|
|
9
9
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
interface BoxStyles extends BoxProperties, DistributiveOmit<SystemStyleObject, keyof BoxProperties > {}
|
|
14
14
|
|
|
15
15
|
interface BoxPatternFn {
|
|
16
16
|
(styles?: BoxStyles): string
|