@pandacss/studio 0.0.0-dev-20230620131522 → 0.0.0-dev-20230620140303
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/studio",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20230620140303",
|
|
4
4
|
"description": "The automated token documentation for Panda CSS",
|
|
5
5
|
"main": "dist/studio.js",
|
|
6
6
|
"module": "dist/studio.mjs",
|
|
@@ -32,19 +32,19 @@
|
|
|
32
32
|
"react": "18.2.0",
|
|
33
33
|
"react-dom": "18.2.0",
|
|
34
34
|
"vite": "4.3.9",
|
|
35
|
-
"@pandacss/types": "0.0.0-dev-
|
|
36
|
-
"@pandacss/config": "0.0.0-dev-
|
|
37
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
38
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
39
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
40
|
-
"@pandacss/node": "0.0.0-dev-
|
|
35
|
+
"@pandacss/types": "0.0.0-dev-20230620140303",
|
|
36
|
+
"@pandacss/config": "0.0.0-dev-20230620140303",
|
|
37
|
+
"@pandacss/shared": "0.0.0-dev-20230620140303",
|
|
38
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230620140303",
|
|
39
|
+
"@pandacss/logger": "0.0.0-dev-20230620140303",
|
|
40
|
+
"@pandacss/node": "0.0.0-dev-20230620140303"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/react": "18.2.12",
|
|
44
44
|
"@types/react-dom": "18.2.5",
|
|
45
45
|
"@vitejs/plugin-react": "4.0.0",
|
|
46
46
|
"execa": "7.1.1",
|
|
47
|
-
"@pandacss/dev": "0.0.0-dev-
|
|
47
|
+
"@pandacss/dev": "0.0.0-dev-20230620140303"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"codegen": "panda",
|
|
@@ -682,7 +682,6 @@ var allCssProperties = [
|
|
|
682
682
|
'clip',
|
|
683
683
|
'clipPath',
|
|
684
684
|
'color',
|
|
685
|
-
'printColorAdjust',
|
|
686
685
|
'colorScheme',
|
|
687
686
|
'columnCount',
|
|
688
687
|
'columnFill',
|
|
@@ -700,6 +699,9 @@ var allCssProperties = [
|
|
|
700
699
|
'containIntrinsicHeight',
|
|
701
700
|
'containIntrinsicInlineSize',
|
|
702
701
|
'containIntrinsicWidth',
|
|
702
|
+
'container',
|
|
703
|
+
'containerName',
|
|
704
|
+
'containerType',
|
|
703
705
|
'content',
|
|
704
706
|
'contentVisibility',
|
|
705
707
|
'counterIncrement',
|
|
@@ -724,6 +726,7 @@ var allCssProperties = [
|
|
|
724
726
|
'fontKerning',
|
|
725
727
|
'fontLanguageOverride',
|
|
726
728
|
'fontOpticalSizing',
|
|
729
|
+
'fontPalette',
|
|
727
730
|
'fontVariationSettings',
|
|
728
731
|
'fontSize',
|
|
729
732
|
'fontSizeAdjust',
|
|
@@ -735,6 +738,7 @@ var allCssProperties = [
|
|
|
735
738
|
'fontVariantAlternates',
|
|
736
739
|
'fontVariantCaps',
|
|
737
740
|
'fontVariantEastAsian',
|
|
741
|
+
'fontVariantEmoji',
|
|
738
742
|
'fontVariantLigatures',
|
|
739
743
|
'fontVariantNumeric',
|
|
740
744
|
'fontVariantPosition',
|
|
@@ -878,6 +882,7 @@ var allCssProperties = [
|
|
|
878
882
|
'paddingLeft',
|
|
879
883
|
'paddingRight',
|
|
880
884
|
'paddingTop',
|
|
885
|
+
'page',
|
|
881
886
|
'pageBreakAfter',
|
|
882
887
|
'pageBreakBefore',
|
|
883
888
|
'pageBreakInside',
|
|
@@ -889,6 +894,7 @@ var allCssProperties = [
|
|
|
889
894
|
'placeSelf',
|
|
890
895
|
'pointerEvents',
|
|
891
896
|
'position',
|
|
897
|
+
'printColorAdjust',
|
|
892
898
|
'quotes',
|
|
893
899
|
'resize',
|
|
894
900
|
'right',
|
|
@@ -980,6 +986,7 @@ var allCssProperties = [
|
|
|
980
986
|
'unicodeBidi',
|
|
981
987
|
'userSelect',
|
|
982
988
|
'verticalAlign',
|
|
989
|
+
'viewTransitionName',
|
|
983
990
|
'visibility',
|
|
984
991
|
'whiteSpace',
|
|
985
992
|
'widows',
|
|
@@ -1001,7 +1008,8 @@ function memo(fn) {
|
|
|
1001
1008
|
return cache[arg]
|
|
1002
1009
|
}
|
|
1003
1010
|
}
|
|
1011
|
+
var selectorRegex = /&|@/
|
|
1004
1012
|
var isCssProperty = memo((prop) => {
|
|
1005
|
-
return properties.has(prop) || prop.startsWith('--')
|
|
1013
|
+
return properties.has(prop) || prop.startsWith('--') || selectorRegex.test(prop)
|
|
1006
1014
|
})
|
|
1007
1015
|
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,
|
|
@@ -227,7 +227,6 @@ export type SystemProperties = {
|
|
|
227
227
|
clip?: PropertyValue<'clip'>
|
|
228
228
|
clipPath?: PropertyValue<'clipPath'>
|
|
229
229
|
color?: PropertyValue<'color'>
|
|
230
|
-
printColorAdjust?: PropertyValue<'printColorAdjust'>
|
|
231
230
|
colorScheme?: PropertyValue<'colorScheme'>
|
|
232
231
|
columnCount?: PropertyValue<'columnCount'>
|
|
233
232
|
columnFill?: PropertyValue<'columnFill'>
|
|
@@ -245,6 +244,9 @@ export type SystemProperties = {
|
|
|
245
244
|
containIntrinsicHeight?: PropertyValue<'containIntrinsicHeight'>
|
|
246
245
|
containIntrinsicInlineSize?: PropertyValue<'containIntrinsicInlineSize'>
|
|
247
246
|
containIntrinsicWidth?: PropertyValue<'containIntrinsicWidth'>
|
|
247
|
+
container?: PropertyValue<'container'>
|
|
248
|
+
containerName?: PropertyValue<'containerName'>
|
|
249
|
+
containerType?: PropertyValue<'containerType'>
|
|
248
250
|
content?: PropertyValue<'content'>
|
|
249
251
|
contentVisibility?: PropertyValue<'contentVisibility'>
|
|
250
252
|
counterIncrement?: PropertyValue<'counterIncrement'>
|
|
@@ -269,6 +271,7 @@ export type SystemProperties = {
|
|
|
269
271
|
fontKerning?: PropertyValue<'fontKerning'>
|
|
270
272
|
fontLanguageOverride?: PropertyValue<'fontLanguageOverride'>
|
|
271
273
|
fontOpticalSizing?: PropertyValue<'fontOpticalSizing'>
|
|
274
|
+
fontPalette?: PropertyValue<'fontPalette'>
|
|
272
275
|
fontVariationSettings?: PropertyValue<'fontVariationSettings'>
|
|
273
276
|
fontSize?: PropertyValue<'fontSize'>
|
|
274
277
|
fontSizeAdjust?: PropertyValue<'fontSizeAdjust'>
|
|
@@ -280,6 +283,7 @@ export type SystemProperties = {
|
|
|
280
283
|
fontVariantAlternates?: PropertyValue<'fontVariantAlternates'>
|
|
281
284
|
fontVariantCaps?: PropertyValue<'fontVariantCaps'>
|
|
282
285
|
fontVariantEastAsian?: PropertyValue<'fontVariantEastAsian'>
|
|
286
|
+
fontVariantEmoji?: PropertyValue<'fontVariantEmoji'>
|
|
283
287
|
fontVariantLigatures?: PropertyValue<'fontVariantLigatures'>
|
|
284
288
|
fontVariantNumeric?: PropertyValue<'fontVariantNumeric'>
|
|
285
289
|
fontVariantPosition?: PropertyValue<'fontVariantPosition'>
|
|
@@ -423,6 +427,7 @@ export type SystemProperties = {
|
|
|
423
427
|
paddingLeft?: PropertyValue<'paddingLeft'>
|
|
424
428
|
paddingRight?: PropertyValue<'paddingRight'>
|
|
425
429
|
paddingTop?: PropertyValue<'paddingTop'>
|
|
430
|
+
page?: PropertyValue<'page'>
|
|
426
431
|
pageBreakAfter?: PropertyValue<'pageBreakAfter'>
|
|
427
432
|
pageBreakBefore?: PropertyValue<'pageBreakBefore'>
|
|
428
433
|
pageBreakInside?: PropertyValue<'pageBreakInside'>
|
|
@@ -434,6 +439,7 @@ export type SystemProperties = {
|
|
|
434
439
|
placeSelf?: PropertyValue<'placeSelf'>
|
|
435
440
|
pointerEvents?: PropertyValue<'pointerEvents'>
|
|
436
441
|
position?: PropertyValue<'position'>
|
|
442
|
+
printColorAdjust?: PropertyValue<'printColorAdjust'>
|
|
437
443
|
quotes?: PropertyValue<'quotes'>
|
|
438
444
|
resize?: PropertyValue<'resize'>
|
|
439
445
|
right?: PropertyValue<'right'>
|
|
@@ -525,6 +531,7 @@ export type SystemProperties = {
|
|
|
525
531
|
unicodeBidi?: PropertyValue<'unicodeBidi'>
|
|
526
532
|
userSelect?: PropertyValue<'userSelect'>
|
|
527
533
|
verticalAlign?: PropertyValue<'verticalAlign'>
|
|
534
|
+
viewTransitionName?: PropertyValue<'viewTransitionName'>
|
|
528
535
|
visibility?: PropertyValue<'visibility'>
|
|
529
536
|
whiteSpace?: PropertyValue<'whiteSpace'>
|
|
530
537
|
widows?: PropertyValue<'widows'>
|