@pandacss/studio 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/src/components/analyzer/data-combobox.tsx +47 -41
- package/src/components/analyzer/data-table.tsx +5 -9
- package/src/components/input.tsx +3 -3
- package/src/layouts/Sidebar.astro +2 -2
- package/styled-system/chunks/..__core____tests____atomic-rule.test.css +363 -0
- package/styled-system/chunks/src__components__analyzer__data-combobox.css +48 -40
- package/styled-system/chunks/src__components__analyzer__data-table.css +8 -0
- package/styled-system/chunks/src__layouts__Sidebar.css +4 -4
- package/styled-system/css/css.d.ts +1 -0
- package/styled-system/css/css.mjs +8 -0
- package/styled-system/css/cva.d.ts +1 -0
- package/styled-system/css/cx.d.ts +1 -0
- package/styled-system/css/index.d.ts +1 -0
- package/styled-system/global.css +1 -1
- package/styled-system/jsx/aspect-ratio.d.ts +1 -0
- package/styled-system/jsx/box.d.ts +1 -0
- package/styled-system/jsx/center.d.ts +1 -0
- package/styled-system/jsx/circle.d.ts +1 -0
- package/styled-system/jsx/container.d.ts +1 -0
- package/styled-system/jsx/divider.d.ts +1 -0
- package/styled-system/jsx/factory.d.ts +1 -0
- package/styled-system/jsx/flex.d.ts +1 -0
- package/styled-system/jsx/float.d.ts +1 -0
- package/styled-system/jsx/grid-item.d.ts +1 -0
- package/styled-system/jsx/grid.d.ts +1 -0
- package/styled-system/jsx/hstack.d.ts +1 -0
- package/styled-system/jsx/index.d.ts +1 -0
- package/styled-system/jsx/is-valid-prop.mjs +18 -2
- package/styled-system/jsx/link-box.d.ts +1 -0
- package/styled-system/jsx/link-overlay.d.ts +1 -0
- package/styled-system/jsx/spacer.d.ts +1 -0
- package/styled-system/jsx/square.d.ts +1 -0
- package/styled-system/jsx/stack.d.ts +1 -0
- package/styled-system/jsx/styled-link.d.ts +1 -0
- package/styled-system/jsx/vstack.d.ts +1 -0
- package/styled-system/jsx/wrap.d.ts +1 -0
- package/styled-system/patterns/aspect-ratio.d.ts +1 -0
- package/styled-system/patterns/aspect-ratio.mjs +18 -8
- package/styled-system/patterns/box.d.ts +1 -0
- package/styled-system/patterns/center.d.ts +1 -0
- package/styled-system/patterns/circle.d.ts +1 -0
- package/styled-system/patterns/container.d.ts +1 -0
- package/styled-system/patterns/divider.d.ts +1 -0
- package/styled-system/patterns/divider.mjs +1 -1
- package/styled-system/patterns/flex.d.ts +1 -0
- package/styled-system/patterns/float.d.ts +1 -0
- package/styled-system/patterns/grid-item.d.ts +1 -0
- package/styled-system/patterns/grid.d.ts +1 -0
- package/styled-system/patterns/hstack.d.ts +1 -0
- package/styled-system/patterns/index.d.ts +1 -0
- package/styled-system/patterns/link-box.d.ts +1 -0
- package/styled-system/patterns/link-overlay.d.ts +1 -0
- package/styled-system/patterns/spacer.d.ts +1 -0
- package/styled-system/patterns/square.d.ts +1 -0
- package/styled-system/patterns/stack.d.ts +1 -0
- package/styled-system/patterns/styled-link.d.ts +1 -0
- package/styled-system/patterns/vstack.d.ts +1 -0
- package/styled-system/patterns/wrap.d.ts +1 -0
- package/styled-system/styles.css +295 -16
- package/styled-system/tokens/index.css +3 -0
- package/styled-system/tokens/index.d.ts +1 -0
- package/styled-system/tokens/index.mjs +12 -0
- package/styled-system/tokens/tokens.d.ts +7 -3
- package/styled-system/types/composition.d.ts +1 -0
- package/styled-system/types/conditions.d.ts +1 -0
- package/styled-system/types/csstype.d.ts +1 -0
- package/styled-system/types/global.d.ts +6 -5
- package/styled-system/types/helpers.d.ts +1 -0
- package/styled-system/types/index.d.ts +3 -2
- package/styled-system/types/jsx.d.ts +1 -0
- package/styled-system/types/parts.d.ts +1 -0
- package/styled-system/types/pattern.d.ts +1 -0
- package/styled-system/types/prop-type.d.ts +26 -25
- package/styled-system/types/recipe.d.ts +1 -0
- package/styled-system/types/selectors.d.ts +4 -1
- package/styled-system/types/style-props.d.ts +12 -4
- package/styled-system/types/system-types.d.ts +1 -0
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
@layer utilities {
|
|
2
|
+
.break_break-word {
|
|
3
|
+
word-break: break-word;
|
|
4
|
+
}
|
|
5
|
+
|
|
2
6
|
.font_bold {
|
|
3
7
|
font-weight: var(--font-weights-bold);
|
|
4
8
|
}
|
|
@@ -15,6 +19,10 @@
|
|
|
15
19
|
display: grid;
|
|
16
20
|
}
|
|
17
21
|
|
|
22
|
+
.grid-cols_80px_repeat\(auto-fit\,_minmax\(30px\,_1fr\)\) {
|
|
23
|
+
grid-template-columns: 80px repeat(auto-fit, minmax(30px, 1fr));
|
|
24
|
+
}
|
|
25
|
+
|
|
18
26
|
.gap_10px {
|
|
19
27
|
gap: 10px;
|
|
20
28
|
}
|
|
@@ -67,10 +67,6 @@
|
|
|
67
67
|
min-width: var(--sizes-60);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
.overflow_auto {
|
|
71
|
-
overflow: auto;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
70
|
.px_12 {
|
|
75
71
|
padding-inline: var(--spacing-12);
|
|
76
72
|
}
|
|
@@ -99,6 +95,10 @@
|
|
|
99
95
|
width: var(--sizes-full);
|
|
100
96
|
}
|
|
101
97
|
|
|
98
|
+
.overflow_auto {
|
|
99
|
+
overflow: auto;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
102
|
.md\:px_6 {
|
|
103
103
|
@media screen and (min-width: 768px) {
|
|
104
104
|
padding-inline: var(--spacing-6);
|
|
@@ -265,6 +265,14 @@ const classNameMap = {
|
|
|
265
265
|
stroke: 'stroke',
|
|
266
266
|
srOnly: 'sr',
|
|
267
267
|
debug: 'debug',
|
|
268
|
+
appearance: 'appearance',
|
|
269
|
+
backfaceVisibility: 'backface',
|
|
270
|
+
clipPath: 'clip-path',
|
|
271
|
+
hyphens: 'hyphens',
|
|
272
|
+
mask: 'mask',
|
|
273
|
+
maskImage: 'mask-image',
|
|
274
|
+
maskSize: 'mask-size',
|
|
275
|
+
textSizeAdjust: 'text-size-adjust',
|
|
268
276
|
textStyle: 'textStyle',
|
|
269
277
|
}
|
|
270
278
|
|
package/styled-system/global.css
CHANGED
|
@@ -348,6 +348,14 @@ var userGenerated = [
|
|
|
348
348
|
'stroke',
|
|
349
349
|
'srOnly',
|
|
350
350
|
'debug',
|
|
351
|
+
'appearance',
|
|
352
|
+
'backfaceVisibility',
|
|
353
|
+
'clipPath',
|
|
354
|
+
'hyphens',
|
|
355
|
+
'mask',
|
|
356
|
+
'maskImage',
|
|
357
|
+
'maskSize',
|
|
358
|
+
'textSizeAdjust',
|
|
351
359
|
'colorPalette',
|
|
352
360
|
'textStyle',
|
|
353
361
|
'_hover',
|
|
@@ -682,7 +690,6 @@ var allCssProperties = [
|
|
|
682
690
|
'clip',
|
|
683
691
|
'clipPath',
|
|
684
692
|
'color',
|
|
685
|
-
'printColorAdjust',
|
|
686
693
|
'colorScheme',
|
|
687
694
|
'columnCount',
|
|
688
695
|
'columnFill',
|
|
@@ -700,6 +707,9 @@ var allCssProperties = [
|
|
|
700
707
|
'containIntrinsicHeight',
|
|
701
708
|
'containIntrinsicInlineSize',
|
|
702
709
|
'containIntrinsicWidth',
|
|
710
|
+
'container',
|
|
711
|
+
'containerName',
|
|
712
|
+
'containerType',
|
|
703
713
|
'content',
|
|
704
714
|
'contentVisibility',
|
|
705
715
|
'counterIncrement',
|
|
@@ -724,6 +734,7 @@ var allCssProperties = [
|
|
|
724
734
|
'fontKerning',
|
|
725
735
|
'fontLanguageOverride',
|
|
726
736
|
'fontOpticalSizing',
|
|
737
|
+
'fontPalette',
|
|
727
738
|
'fontVariationSettings',
|
|
728
739
|
'fontSize',
|
|
729
740
|
'fontSizeAdjust',
|
|
@@ -735,6 +746,7 @@ var allCssProperties = [
|
|
|
735
746
|
'fontVariantAlternates',
|
|
736
747
|
'fontVariantCaps',
|
|
737
748
|
'fontVariantEastAsian',
|
|
749
|
+
'fontVariantEmoji',
|
|
738
750
|
'fontVariantLigatures',
|
|
739
751
|
'fontVariantNumeric',
|
|
740
752
|
'fontVariantPosition',
|
|
@@ -878,6 +890,7 @@ var allCssProperties = [
|
|
|
878
890
|
'paddingLeft',
|
|
879
891
|
'paddingRight',
|
|
880
892
|
'paddingTop',
|
|
893
|
+
'page',
|
|
881
894
|
'pageBreakAfter',
|
|
882
895
|
'pageBreakBefore',
|
|
883
896
|
'pageBreakInside',
|
|
@@ -889,6 +902,7 @@ var allCssProperties = [
|
|
|
889
902
|
'placeSelf',
|
|
890
903
|
'pointerEvents',
|
|
891
904
|
'position',
|
|
905
|
+
'printColorAdjust',
|
|
892
906
|
'quotes',
|
|
893
907
|
'resize',
|
|
894
908
|
'right',
|
|
@@ -980,6 +994,7 @@ var allCssProperties = [
|
|
|
980
994
|
'unicodeBidi',
|
|
981
995
|
'userSelect',
|
|
982
996
|
'verticalAlign',
|
|
997
|
+
'viewTransitionName',
|
|
983
998
|
'visibility',
|
|
984
999
|
'whiteSpace',
|
|
985
1000
|
'widows',
|
|
@@ -1001,7 +1016,8 @@ function memo(fn) {
|
|
|
1001
1016
|
return cache[arg]
|
|
1002
1017
|
}
|
|
1003
1018
|
}
|
|
1019
|
+
var selectorRegex = /&|@/
|
|
1004
1020
|
var isCssProperty = memo((prop) => {
|
|
1005
|
-
return properties.has(prop) || prop.startsWith('--')
|
|
1021
|
+
return properties.has(prop) || prop.startsWith('--') || selectorRegex.test(prop)
|
|
1006
1022
|
})
|
|
1007
1023
|
export { allCssProperties, isCssProperty }
|
|
@@ -2,17 +2,27 @@ import { mapObject } from '../helpers.mjs'
|
|
|
2
2
|
import { css } from '../css/index.mjs'
|
|
3
3
|
|
|
4
4
|
const aspectRatioConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
const { ratio, ...rest } = props
|
|
5
|
+
transform(props, { map }) {
|
|
6
|
+
const { ratio = 4 / 3, ...rest } = props
|
|
7
7
|
return {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
position: 'relative',
|
|
9
|
+
_before: {
|
|
10
|
+
content: `""`,
|
|
11
|
+
display: 'block',
|
|
12
|
+
height: '0',
|
|
13
|
+
paddingBottom: map(ratio, (r) => `${(1 / r) * 100}%`),
|
|
14
|
+
},
|
|
15
|
+
'&>*': {
|
|
16
|
+
display: 'flex',
|
|
17
|
+
justifyContent: 'center',
|
|
18
|
+
alignItems: 'center',
|
|
19
|
+
overflow: 'hidden',
|
|
20
|
+
position: 'absolute',
|
|
21
|
+
inset: '0',
|
|
14
22
|
width: '100%',
|
|
15
23
|
height: '100%',
|
|
24
|
+
},
|
|
25
|
+
'&>img, &>video': {
|
|
16
26
|
objectFit: 'cover',
|
|
17
27
|
},
|
|
18
28
|
...rest,
|
|
@@ -8,7 +8,7 @@ const dividerConfig = {
|
|
|
8
8
|
'--thickness': thickness,
|
|
9
9
|
width: map(orientation, (v) => (v === 'vertical' ? void 0 : '100%')),
|
|
10
10
|
height: map(orientation, (v) => (v === 'horizontal' ? void 0 : '100%')),
|
|
11
|
-
|
|
11
|
+
borderBlockEndWidth: map(orientation, (v) => (v === 'horizontal' ? 'var(--thickness)' : void 0)),
|
|
12
12
|
borderInlineEndWidth: map(orientation, (v) => (v === 'vertical' ? 'var(--thickness)' : void 0)),
|
|
13
13
|
borderColor: color,
|
|
14
14
|
...rest,
|