@pandacss/generator 0.36.0 → 0.37.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/dist/index.js +106 -90
- package/dist/index.mjs +106 -90
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -3696,7 +3696,9 @@ function generateStyleProps(ctx) {
|
|
|
3696
3696
|
if (strictPropertyList.has(key)) {
|
|
3697
3697
|
union.push([utilityValue, "CssVars"].join(" | "));
|
|
3698
3698
|
} else {
|
|
3699
|
-
union.push(
|
|
3699
|
+
union.push(
|
|
3700
|
+
[utilityValue, "CssVars", ctx.config.strictTokens ? "" : cssFallback].filter(Boolean).join(" | ")
|
|
3701
|
+
);
|
|
3700
3702
|
}
|
|
3701
3703
|
} else {
|
|
3702
3704
|
union.push([strictPropertyList.has(key) ? "CssVars" : "", cssFallback].filter(Boolean).join(" | "));
|
|
@@ -3971,7 +3973,7 @@ function generateThemes(ctx) {
|
|
|
3971
3973
|
if (!themes)
|
|
3972
3974
|
return;
|
|
3973
3975
|
const { tokens, conditions } = ctx;
|
|
3974
|
-
return Object.entries(themes).map(([name,
|
|
3976
|
+
return Object.entries(themes).map(([name, _themeVariant]) => {
|
|
3975
3977
|
const results = [];
|
|
3976
3978
|
const condName = ctx.conditions.getThemeName(name);
|
|
3977
3979
|
for (const [key, values] of tokens.view.vars.entries()) {
|
|
@@ -3988,7 +3990,6 @@ function generateThemes(ctx) {
|
|
|
3988
3990
|
(0, import_shared5.compact)({
|
|
3989
3991
|
name,
|
|
3990
3992
|
id: getThemeId(name),
|
|
3991
|
-
dataAttr: themeVariant.attribute || name,
|
|
3992
3993
|
css: results.join("\n\n")
|
|
3993
3994
|
}),
|
|
3994
3995
|
null,
|
|
@@ -4025,7 +4026,7 @@ function generateThemesIndex(ctx, files) {
|
|
|
4025
4026
|
throw new Error('No head found in doc')
|
|
4026
4027
|
}
|
|
4027
4028
|
|
|
4028
|
-
el.dataset.pandaTheme = theme.
|
|
4029
|
+
el.dataset.pandaTheme = theme.name
|
|
4029
4030
|
|
|
4030
4031
|
head.appendChild(sheet)
|
|
4031
4032
|
sheet.innerHTML = theme.css
|
|
@@ -4046,7 +4047,6 @@ function generateThemesIndex(ctx, files) {
|
|
|
4046
4047
|
return `'${f.name}': {
|
|
4047
4048
|
id: string,
|
|
4048
4049
|
name: '${f.name}',
|
|
4049
|
-
dataAttr: '${theme.attribute || f.name}',
|
|
4050
4050
|
css: string
|
|
4051
4051
|
}`;
|
|
4052
4052
|
}).join("\n")}
|
|
@@ -4518,39 +4518,7 @@ var generateArtifacts = (ctx, ids) => {
|
|
|
4518
4518
|
var generateGlobalCss = (ctx, sheet) => {
|
|
4519
4519
|
const { globalCss = {} } = ctx.config;
|
|
4520
4520
|
sheet.processGlobalCss({
|
|
4521
|
-
":root": {
|
|
4522
|
-
"--made-with-panda": `'\u{1F43C}'`
|
|
4523
|
-
},
|
|
4524
|
-
"*, *::before, *::after, ::backdrop": {
|
|
4525
|
-
"--blur": "/*-*/ /*-*/",
|
|
4526
|
-
"--brightness": "/*-*/ /*-*/",
|
|
4527
|
-
"--contrast": "/*-*/ /*-*/",
|
|
4528
|
-
"--grayscale": "/*-*/ /*-*/",
|
|
4529
|
-
"--hue-rotate": "/*-*/ /*-*/",
|
|
4530
|
-
"--invert": "/*-*/ /*-*/",
|
|
4531
|
-
"--saturate": "/*-*/ /*-*/",
|
|
4532
|
-
"--sepia": "/*-*/ /*-*/",
|
|
4533
|
-
"--drop-shadow": "/*-*/ /*-*/",
|
|
4534
|
-
"--backdrop-blur": "/*-*/ /*-*/",
|
|
4535
|
-
"--backdrop-brightness": "/*-*/ /*-*/",
|
|
4536
|
-
"--backdrop-contrast": "/*-*/ /*-*/",
|
|
4537
|
-
"--backdrop-grayscale": "/*-*/ /*-*/",
|
|
4538
|
-
"--backdrop-hue-rotate": "/*-*/ /*-*/",
|
|
4539
|
-
"--backdrop-invert": "/*-*/ /*-*/",
|
|
4540
|
-
"--backdrop-opacity": "/*-*/ /*-*/",
|
|
4541
|
-
"--backdrop-saturate": "/*-*/ /*-*/",
|
|
4542
|
-
"--backdrop-sepia": "/*-*/ /*-*/",
|
|
4543
|
-
"--scroll-snap-strictness": "proximity",
|
|
4544
|
-
"--border-spacing-x": 0,
|
|
4545
|
-
"--border-spacing-y": 0,
|
|
4546
|
-
"--translate-x": 0,
|
|
4547
|
-
"--translate-y": 0,
|
|
4548
|
-
"--rotate": 0,
|
|
4549
|
-
"--skew-x": 0,
|
|
4550
|
-
"--skew-y": 0,
|
|
4551
|
-
"--scale-x": 1,
|
|
4552
|
-
"--scale-y": 1
|
|
4553
|
-
}
|
|
4521
|
+
":root": { "--made-with-panda": `'\u{1F43C}'` }
|
|
4554
4522
|
});
|
|
4555
4523
|
sheet.processGlobalCss(globalCss);
|
|
4556
4524
|
};
|
|
@@ -4600,93 +4568,141 @@ function generateResetCss(ctx, sheet) {
|
|
|
4600
4568
|
selector = `&${scope}`;
|
|
4601
4569
|
}
|
|
4602
4570
|
const scoped = {
|
|
4603
|
-
"
|
|
4604
|
-
|
|
4571
|
+
"*, ::before, ::after, ::backdrop, ::first-letter, ::file-selector-button": {
|
|
4572
|
+
margin: "0px",
|
|
4573
|
+
padding: "0px",
|
|
4605
4574
|
boxSizing: "border-box",
|
|
4606
4575
|
borderWidth: "0px",
|
|
4607
4576
|
borderStyle: "solid",
|
|
4608
4577
|
borderColor: "var(--global-color-border, currentColor)"
|
|
4609
4578
|
},
|
|
4610
|
-
hr: {
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4579
|
+
hr: {
|
|
4580
|
+
height: "0px",
|
|
4581
|
+
color: "inherit",
|
|
4582
|
+
borderTopWidth: "1px"
|
|
4583
|
+
},
|
|
4584
|
+
body: {
|
|
4585
|
+
height: "100%",
|
|
4586
|
+
lineHeight: "inherit"
|
|
4587
|
+
},
|
|
4588
|
+
img: {
|
|
4589
|
+
borderStyle: "none"
|
|
4590
|
+
},
|
|
4591
|
+
"img, svg, video, canvas, audio, iframe, embed, object": {
|
|
4614
4592
|
display: "block",
|
|
4615
4593
|
verticalAlign: "middle"
|
|
4616
4594
|
},
|
|
4617
|
-
"img,
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
"
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4595
|
+
"img, video": {
|
|
4596
|
+
maxWidth: "100%",
|
|
4597
|
+
height: "auto"
|
|
4598
|
+
},
|
|
4599
|
+
"h1, h2, h3, h4, h5, h6": {
|
|
4600
|
+
fontSize: "inherit",
|
|
4601
|
+
fontWeight: "inherit",
|
|
4602
|
+
textWrap: "balance"
|
|
4603
|
+
},
|
|
4604
|
+
"p, h1, h2, h3, h4, h5, h6": {
|
|
4605
|
+
overflowWrap: "break-word"
|
|
4606
|
+
},
|
|
4607
|
+
"ol, ul, menu": {
|
|
4608
|
+
listStyle: "none"
|
|
4609
|
+
},
|
|
4610
|
+
"button, input:where([type='button'], [type='reset'], [type='submit']), ::file-selector-button": {
|
|
4611
|
+
appearance: "button"
|
|
4612
|
+
},
|
|
4613
|
+
"button, input, optgroup, select, textarea, ::file-selector-button": {
|
|
4614
|
+
font: "inherit",
|
|
4615
|
+
fontFeatureSettings: "inherit",
|
|
4616
|
+
fontVariationSettings: "inherit",
|
|
4617
|
+
letterSpacing: "inherit",
|
|
4618
|
+
color: "inherit",
|
|
4619
|
+
background: "transparent"
|
|
4620
|
+
},
|
|
4621
|
+
"::placeholder": {
|
|
4622
|
+
opacity: 1,
|
|
4623
|
+
"--placeholder-fallback": "color-mix(in srgb, currentColor 50%, transparent)",
|
|
4624
|
+
color: "var(--global-color-placeholder, var(--placeholder-fallback))"
|
|
4625
|
+
},
|
|
4626
|
+
"select, textarea, input:where(:not([type='button'], [type='reset'], [type='submit']))": {
|
|
4627
|
+
borderWidth: "1px",
|
|
4628
|
+
borderStyle: "solid"
|
|
4629
|
+
},
|
|
4630
|
+
textarea: {
|
|
4631
|
+
resize: "vertical"
|
|
4625
4632
|
},
|
|
4626
|
-
"button, input, optgroup, select, textarea": { color: "inherit" },
|
|
4627
|
-
"button, select": { textTransform: "none" },
|
|
4628
4633
|
table: {
|
|
4629
4634
|
textIndent: "0px",
|
|
4630
4635
|
borderColor: "inherit",
|
|
4631
4636
|
borderCollapse: "collapse"
|
|
4632
4637
|
},
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
color: "var(--global-color-placeholder, #9ca3af)"
|
|
4638
|
+
summary: {
|
|
4639
|
+
display: "list-item"
|
|
4636
4640
|
},
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
"sub,
|
|
4641
|
+
small: {
|
|
4642
|
+
fontSize: "80%"
|
|
4643
|
+
},
|
|
4644
|
+
"sub, sup": {
|
|
4641
4645
|
fontSize: "75%",
|
|
4642
4646
|
lineHeight: 0,
|
|
4643
4647
|
position: "relative",
|
|
4644
4648
|
verticalAlign: "baseline"
|
|
4645
4649
|
},
|
|
4646
|
-
sub: {
|
|
4647
|
-
|
|
4648
|
-
dialog: { padding: "0px" },
|
|
4649
|
-
a: { color: "inherit", textDecoration: "inherit" },
|
|
4650
|
-
"abbr:where([title])": { textDecoration: "underline dotted" },
|
|
4651
|
-
"b, strong": { fontWeight: "bolder" },
|
|
4652
|
-
"code, kbd, samp, pre": {
|
|
4653
|
-
fontSize: "1em",
|
|
4654
|
-
"--font-mono-fallback": "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",
|
|
4655
|
-
fontFamily: "var(--global-font-mono, var(--font-mono-fallback))"
|
|
4650
|
+
sub: {
|
|
4651
|
+
bottom: "-0.25em"
|
|
4656
4652
|
},
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
MozAppearance: "none"
|
|
4653
|
+
sup: {
|
|
4654
|
+
top: "-0.5em"
|
|
4660
4655
|
},
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
outlineOffset: "-2px"
|
|
4656
|
+
dialog: {
|
|
4657
|
+
padding: "0px"
|
|
4664
4658
|
},
|
|
4665
|
-
|
|
4666
|
-
|
|
4659
|
+
a: {
|
|
4660
|
+
color: "inherit",
|
|
4661
|
+
textDecoration: "inherit"
|
|
4667
4662
|
},
|
|
4668
|
-
"
|
|
4669
|
-
|
|
4670
|
-
|
|
4663
|
+
"abbr:where([title])": {
|
|
4664
|
+
textDecoration: "underline dotted"
|
|
4665
|
+
},
|
|
4666
|
+
"b, strong": {
|
|
4667
|
+
fontWeight: "bolder"
|
|
4668
|
+
},
|
|
4669
|
+
"code, kbd, samp, pre": {
|
|
4670
|
+
"--font-mono-fallback": "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",
|
|
4671
|
+
fontFamily: "var(--global-font-mono, var(--font-mono-fallback))",
|
|
4672
|
+
fontSize: "1em",
|
|
4673
|
+
fontFeatureSettings: "normal",
|
|
4674
|
+
fontVariationSettings: "normal"
|
|
4671
4675
|
},
|
|
4672
|
-
|
|
4676
|
+
progress: {
|
|
4677
|
+
verticalAlign: "baseline"
|
|
4678
|
+
},
|
|
4679
|
+
"::-webkit-search-decoration, ::-webkit-search-cancel-button": {
|
|
4680
|
+
WebkitAppearance: "none"
|
|
4681
|
+
},
|
|
4682
|
+
"::-webkit-inner-spin-button, ::-webkit-outer-spin-button": {
|
|
4673
4683
|
height: "auto"
|
|
4674
4684
|
},
|
|
4675
|
-
"
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
"
|
|
4685
|
+
":-moz-ui-invalid": {
|
|
4686
|
+
boxShadow: "none"
|
|
4687
|
+
},
|
|
4688
|
+
":-moz-focusring": {
|
|
4689
|
+
outline: "auto"
|
|
4690
|
+
},
|
|
4691
|
+
"[hidden]": {
|
|
4692
|
+
display: "none !important"
|
|
4693
|
+
}
|
|
4679
4694
|
};
|
|
4680
4695
|
const reset = {
|
|
4681
|
-
[scope || "html"]: {
|
|
4682
|
-
lineHeight: 1.5,
|
|
4696
|
+
[scope || "html, :host"]: {
|
|
4697
|
+
lineHeight: "1.5",
|
|
4683
4698
|
"--font-fallback": "ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
|
|
4684
4699
|
WebkitTextSizeAdjust: "100%",
|
|
4685
4700
|
WebkitFontSmoothing: "antialiased",
|
|
4686
4701
|
MozOsxFontSmoothing: "grayscale",
|
|
4687
4702
|
MozTabSize: "[4]",
|
|
4688
4703
|
tabSize: "[4]",
|
|
4689
|
-
fontFamily: "var(--global-font-body, var(--font-fallback))"
|
|
4704
|
+
fontFamily: "var(--global-font-body, var(--font-fallback))",
|
|
4705
|
+
WebkitTapHighlightColor: "transparent"
|
|
4690
4706
|
}
|
|
4691
4707
|
};
|
|
4692
4708
|
if (level === "element") {
|
package/dist/index.mjs
CHANGED
|
@@ -3660,7 +3660,9 @@ function generateStyleProps(ctx) {
|
|
|
3660
3660
|
if (strictPropertyList.has(key)) {
|
|
3661
3661
|
union.push([utilityValue, "CssVars"].join(" | "));
|
|
3662
3662
|
} else {
|
|
3663
|
-
union.push(
|
|
3663
|
+
union.push(
|
|
3664
|
+
[utilityValue, "CssVars", ctx.config.strictTokens ? "" : cssFallback].filter(Boolean).join(" | ")
|
|
3665
|
+
);
|
|
3664
3666
|
}
|
|
3665
3667
|
} else {
|
|
3666
3668
|
union.push([strictPropertyList.has(key) ? "CssVars" : "", cssFallback].filter(Boolean).join(" | "));
|
|
@@ -3935,7 +3937,7 @@ function generateThemes(ctx) {
|
|
|
3935
3937
|
if (!themes)
|
|
3936
3938
|
return;
|
|
3937
3939
|
const { tokens, conditions } = ctx;
|
|
3938
|
-
return Object.entries(themes).map(([name,
|
|
3940
|
+
return Object.entries(themes).map(([name, _themeVariant]) => {
|
|
3939
3941
|
const results = [];
|
|
3940
3942
|
const condName = ctx.conditions.getThemeName(name);
|
|
3941
3943
|
for (const [key, values] of tokens.view.vars.entries()) {
|
|
@@ -3952,7 +3954,6 @@ function generateThemes(ctx) {
|
|
|
3952
3954
|
compact2({
|
|
3953
3955
|
name,
|
|
3954
3956
|
id: getThemeId(name),
|
|
3955
|
-
dataAttr: themeVariant.attribute || name,
|
|
3956
3957
|
css: results.join("\n\n")
|
|
3957
3958
|
}),
|
|
3958
3959
|
null,
|
|
@@ -3989,7 +3990,7 @@ function generateThemesIndex(ctx, files) {
|
|
|
3989
3990
|
throw new Error('No head found in doc')
|
|
3990
3991
|
}
|
|
3991
3992
|
|
|
3992
|
-
el.dataset.pandaTheme = theme.
|
|
3993
|
+
el.dataset.pandaTheme = theme.name
|
|
3993
3994
|
|
|
3994
3995
|
head.appendChild(sheet)
|
|
3995
3996
|
sheet.innerHTML = theme.css
|
|
@@ -4010,7 +4011,6 @@ function generateThemesIndex(ctx, files) {
|
|
|
4010
4011
|
return `'${f.name}': {
|
|
4011
4012
|
id: string,
|
|
4012
4013
|
name: '${f.name}',
|
|
4013
|
-
dataAttr: '${theme.attribute || f.name}',
|
|
4014
4014
|
css: string
|
|
4015
4015
|
}`;
|
|
4016
4016
|
}).join("\n")}
|
|
@@ -4482,39 +4482,7 @@ var generateArtifacts = (ctx, ids) => {
|
|
|
4482
4482
|
var generateGlobalCss = (ctx, sheet) => {
|
|
4483
4483
|
const { globalCss = {} } = ctx.config;
|
|
4484
4484
|
sheet.processGlobalCss({
|
|
4485
|
-
":root": {
|
|
4486
|
-
"--made-with-panda": `'\u{1F43C}'`
|
|
4487
|
-
},
|
|
4488
|
-
"*, *::before, *::after, ::backdrop": {
|
|
4489
|
-
"--blur": "/*-*/ /*-*/",
|
|
4490
|
-
"--brightness": "/*-*/ /*-*/",
|
|
4491
|
-
"--contrast": "/*-*/ /*-*/",
|
|
4492
|
-
"--grayscale": "/*-*/ /*-*/",
|
|
4493
|
-
"--hue-rotate": "/*-*/ /*-*/",
|
|
4494
|
-
"--invert": "/*-*/ /*-*/",
|
|
4495
|
-
"--saturate": "/*-*/ /*-*/",
|
|
4496
|
-
"--sepia": "/*-*/ /*-*/",
|
|
4497
|
-
"--drop-shadow": "/*-*/ /*-*/",
|
|
4498
|
-
"--backdrop-blur": "/*-*/ /*-*/",
|
|
4499
|
-
"--backdrop-brightness": "/*-*/ /*-*/",
|
|
4500
|
-
"--backdrop-contrast": "/*-*/ /*-*/",
|
|
4501
|
-
"--backdrop-grayscale": "/*-*/ /*-*/",
|
|
4502
|
-
"--backdrop-hue-rotate": "/*-*/ /*-*/",
|
|
4503
|
-
"--backdrop-invert": "/*-*/ /*-*/",
|
|
4504
|
-
"--backdrop-opacity": "/*-*/ /*-*/",
|
|
4505
|
-
"--backdrop-saturate": "/*-*/ /*-*/",
|
|
4506
|
-
"--backdrop-sepia": "/*-*/ /*-*/",
|
|
4507
|
-
"--scroll-snap-strictness": "proximity",
|
|
4508
|
-
"--border-spacing-x": 0,
|
|
4509
|
-
"--border-spacing-y": 0,
|
|
4510
|
-
"--translate-x": 0,
|
|
4511
|
-
"--translate-y": 0,
|
|
4512
|
-
"--rotate": 0,
|
|
4513
|
-
"--skew-x": 0,
|
|
4514
|
-
"--skew-y": 0,
|
|
4515
|
-
"--scale-x": 1,
|
|
4516
|
-
"--scale-y": 1
|
|
4517
|
-
}
|
|
4485
|
+
":root": { "--made-with-panda": `'\u{1F43C}'` }
|
|
4518
4486
|
});
|
|
4519
4487
|
sheet.processGlobalCss(globalCss);
|
|
4520
4488
|
};
|
|
@@ -4564,93 +4532,141 @@ function generateResetCss(ctx, sheet) {
|
|
|
4564
4532
|
selector = `&${scope}`;
|
|
4565
4533
|
}
|
|
4566
4534
|
const scoped = {
|
|
4567
|
-
"
|
|
4568
|
-
|
|
4535
|
+
"*, ::before, ::after, ::backdrop, ::first-letter, ::file-selector-button": {
|
|
4536
|
+
margin: "0px",
|
|
4537
|
+
padding: "0px",
|
|
4569
4538
|
boxSizing: "border-box",
|
|
4570
4539
|
borderWidth: "0px",
|
|
4571
4540
|
borderStyle: "solid",
|
|
4572
4541
|
borderColor: "var(--global-color-border, currentColor)"
|
|
4573
4542
|
},
|
|
4574
|
-
hr: {
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4543
|
+
hr: {
|
|
4544
|
+
height: "0px",
|
|
4545
|
+
color: "inherit",
|
|
4546
|
+
borderTopWidth: "1px"
|
|
4547
|
+
},
|
|
4548
|
+
body: {
|
|
4549
|
+
height: "100%",
|
|
4550
|
+
lineHeight: "inherit"
|
|
4551
|
+
},
|
|
4552
|
+
img: {
|
|
4553
|
+
borderStyle: "none"
|
|
4554
|
+
},
|
|
4555
|
+
"img, svg, video, canvas, audio, iframe, embed, object": {
|
|
4578
4556
|
display: "block",
|
|
4579
4557
|
verticalAlign: "middle"
|
|
4580
4558
|
},
|
|
4581
|
-
"img,
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
"
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4559
|
+
"img, video": {
|
|
4560
|
+
maxWidth: "100%",
|
|
4561
|
+
height: "auto"
|
|
4562
|
+
},
|
|
4563
|
+
"h1, h2, h3, h4, h5, h6": {
|
|
4564
|
+
fontSize: "inherit",
|
|
4565
|
+
fontWeight: "inherit",
|
|
4566
|
+
textWrap: "balance"
|
|
4567
|
+
},
|
|
4568
|
+
"p, h1, h2, h3, h4, h5, h6": {
|
|
4569
|
+
overflowWrap: "break-word"
|
|
4570
|
+
},
|
|
4571
|
+
"ol, ul, menu": {
|
|
4572
|
+
listStyle: "none"
|
|
4573
|
+
},
|
|
4574
|
+
"button, input:where([type='button'], [type='reset'], [type='submit']), ::file-selector-button": {
|
|
4575
|
+
appearance: "button"
|
|
4576
|
+
},
|
|
4577
|
+
"button, input, optgroup, select, textarea, ::file-selector-button": {
|
|
4578
|
+
font: "inherit",
|
|
4579
|
+
fontFeatureSettings: "inherit",
|
|
4580
|
+
fontVariationSettings: "inherit",
|
|
4581
|
+
letterSpacing: "inherit",
|
|
4582
|
+
color: "inherit",
|
|
4583
|
+
background: "transparent"
|
|
4584
|
+
},
|
|
4585
|
+
"::placeholder": {
|
|
4586
|
+
opacity: 1,
|
|
4587
|
+
"--placeholder-fallback": "color-mix(in srgb, currentColor 50%, transparent)",
|
|
4588
|
+
color: "var(--global-color-placeholder, var(--placeholder-fallback))"
|
|
4589
|
+
},
|
|
4590
|
+
"select, textarea, input:where(:not([type='button'], [type='reset'], [type='submit']))": {
|
|
4591
|
+
borderWidth: "1px",
|
|
4592
|
+
borderStyle: "solid"
|
|
4593
|
+
},
|
|
4594
|
+
textarea: {
|
|
4595
|
+
resize: "vertical"
|
|
4589
4596
|
},
|
|
4590
|
-
"button, input, optgroup, select, textarea": { color: "inherit" },
|
|
4591
|
-
"button, select": { textTransform: "none" },
|
|
4592
4597
|
table: {
|
|
4593
4598
|
textIndent: "0px",
|
|
4594
4599
|
borderColor: "inherit",
|
|
4595
4600
|
borderCollapse: "collapse"
|
|
4596
4601
|
},
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
color: "var(--global-color-placeholder, #9ca3af)"
|
|
4602
|
+
summary: {
|
|
4603
|
+
display: "list-item"
|
|
4600
4604
|
},
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
"sub,
|
|
4605
|
+
small: {
|
|
4606
|
+
fontSize: "80%"
|
|
4607
|
+
},
|
|
4608
|
+
"sub, sup": {
|
|
4605
4609
|
fontSize: "75%",
|
|
4606
4610
|
lineHeight: 0,
|
|
4607
4611
|
position: "relative",
|
|
4608
4612
|
verticalAlign: "baseline"
|
|
4609
4613
|
},
|
|
4610
|
-
sub: {
|
|
4611
|
-
|
|
4612
|
-
dialog: { padding: "0px" },
|
|
4613
|
-
a: { color: "inherit", textDecoration: "inherit" },
|
|
4614
|
-
"abbr:where([title])": { textDecoration: "underline dotted" },
|
|
4615
|
-
"b, strong": { fontWeight: "bolder" },
|
|
4616
|
-
"code, kbd, samp, pre": {
|
|
4617
|
-
fontSize: "1em",
|
|
4618
|
-
"--font-mono-fallback": "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",
|
|
4619
|
-
fontFamily: "var(--global-font-mono, var(--font-mono-fallback))"
|
|
4614
|
+
sub: {
|
|
4615
|
+
bottom: "-0.25em"
|
|
4620
4616
|
},
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
MozAppearance: "none"
|
|
4617
|
+
sup: {
|
|
4618
|
+
top: "-0.5em"
|
|
4624
4619
|
},
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
outlineOffset: "-2px"
|
|
4620
|
+
dialog: {
|
|
4621
|
+
padding: "0px"
|
|
4628
4622
|
},
|
|
4629
|
-
|
|
4630
|
-
|
|
4623
|
+
a: {
|
|
4624
|
+
color: "inherit",
|
|
4625
|
+
textDecoration: "inherit"
|
|
4631
4626
|
},
|
|
4632
|
-
"
|
|
4633
|
-
|
|
4634
|
-
|
|
4627
|
+
"abbr:where([title])": {
|
|
4628
|
+
textDecoration: "underline dotted"
|
|
4629
|
+
},
|
|
4630
|
+
"b, strong": {
|
|
4631
|
+
fontWeight: "bolder"
|
|
4632
|
+
},
|
|
4633
|
+
"code, kbd, samp, pre": {
|
|
4634
|
+
"--font-mono-fallback": "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",
|
|
4635
|
+
fontFamily: "var(--global-font-mono, var(--font-mono-fallback))",
|
|
4636
|
+
fontSize: "1em",
|
|
4637
|
+
fontFeatureSettings: "normal",
|
|
4638
|
+
fontVariationSettings: "normal"
|
|
4635
4639
|
},
|
|
4636
|
-
|
|
4640
|
+
progress: {
|
|
4641
|
+
verticalAlign: "baseline"
|
|
4642
|
+
},
|
|
4643
|
+
"::-webkit-search-decoration, ::-webkit-search-cancel-button": {
|
|
4644
|
+
WebkitAppearance: "none"
|
|
4645
|
+
},
|
|
4646
|
+
"::-webkit-inner-spin-button, ::-webkit-outer-spin-button": {
|
|
4637
4647
|
height: "auto"
|
|
4638
4648
|
},
|
|
4639
|
-
"
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
"
|
|
4649
|
+
":-moz-ui-invalid": {
|
|
4650
|
+
boxShadow: "none"
|
|
4651
|
+
},
|
|
4652
|
+
":-moz-focusring": {
|
|
4653
|
+
outline: "auto"
|
|
4654
|
+
},
|
|
4655
|
+
"[hidden]": {
|
|
4656
|
+
display: "none !important"
|
|
4657
|
+
}
|
|
4643
4658
|
};
|
|
4644
4659
|
const reset = {
|
|
4645
|
-
[scope || "html"]: {
|
|
4646
|
-
lineHeight: 1.5,
|
|
4660
|
+
[scope || "html, :host"]: {
|
|
4661
|
+
lineHeight: "1.5",
|
|
4647
4662
|
"--font-fallback": "ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
|
|
4648
4663
|
WebkitTextSizeAdjust: "100%",
|
|
4649
4664
|
WebkitFontSmoothing: "antialiased",
|
|
4650
4665
|
MozOsxFontSmoothing: "grayscale",
|
|
4651
4666
|
MozTabSize: "[4]",
|
|
4652
4667
|
tabSize: "[4]",
|
|
4653
|
-
fontFamily: "var(--global-font-body, var(--font-fallback))"
|
|
4668
|
+
fontFamily: "var(--global-font-body, var(--font-fallback))",
|
|
4669
|
+
WebkitTapHighlightColor: "transparent"
|
|
4654
4670
|
}
|
|
4655
4671
|
};
|
|
4656
4672
|
if (level === "element") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/generator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.0",
|
|
4
4
|
"description": "The css generator for css panda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"pluralize": "8.0.0",
|
|
38
38
|
"postcss": "8.4.35",
|
|
39
39
|
"ts-pattern": "5.0.8",
|
|
40
|
-
"@pandacss/core": "0.
|
|
41
|
-
"@pandacss/is-valid-prop": "^0.
|
|
42
|
-
"@pandacss/logger": "0.
|
|
43
|
-
"@pandacss/shared": "0.
|
|
44
|
-
"@pandacss/token-dictionary": "0.
|
|
45
|
-
"@pandacss/types": "0.
|
|
40
|
+
"@pandacss/core": "0.37.0",
|
|
41
|
+
"@pandacss/is-valid-prop": "^0.37.0",
|
|
42
|
+
"@pandacss/logger": "0.37.0",
|
|
43
|
+
"@pandacss/shared": "0.37.0",
|
|
44
|
+
"@pandacss/token-dictionary": "0.37.0",
|
|
45
|
+
"@pandacss/types": "0.37.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/pluralize": "0.0.33"
|