@pandacss/generator 0.0.0-dev-20240422122109 → 0.0.0-dev-20240422125835
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 +11 -11
- package/dist/index.mjs +11 -11
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -963,13 +963,13 @@ function generatePreactJsxFactory(ctx) {
|
|
|
963
963
|
function recipeClass() {
|
|
964
964
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
965
965
|
const compoundVariantStyles = __cvaFn__.__getCompoundVariantCss__?.(variantProps)
|
|
966
|
-
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, cssStyles), combinedProps.class, combinedProps.className)
|
|
966
|
+
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])), combinedProps.class, combinedProps.className)
|
|
967
967
|
}
|
|
968
968
|
|
|
969
969
|
function cvaClass() {
|
|
970
970
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
971
971
|
const cvaStyles = __cvaFn__.raw(variantProps)
|
|
972
|
-
return cx(css(cvaStyles, propStyles, cssStyles), combinedProps.class, combinedProps.className)
|
|
972
|
+
return cx(css(cvaStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])), combinedProps.class, combinedProps.className)
|
|
973
973
|
}
|
|
974
974
|
|
|
975
975
|
const classes = configOrCva.__recipe__ ? recipeClass : cvaClass
|
|
@@ -1291,13 +1291,13 @@ function generateQwikJsxFactory(ctx) {
|
|
|
1291
1291
|
function recipeClass() {
|
|
1292
1292
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
1293
1293
|
const compoundVariantStyles = __cvaFn__.__getCompoundVariantCss__?.(variantProps);
|
|
1294
|
-
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, cssStyles), combinedProps.class, className)
|
|
1294
|
+
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])), combinedProps.class, className)
|
|
1295
1295
|
}
|
|
1296
1296
|
|
|
1297
1297
|
function cvaClass() {
|
|
1298
1298
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
1299
1299
|
const cvaStyles = __cvaFn__.raw(variantProps)
|
|
1300
|
-
return cx(css(cvaStyles, propStyles, cssStyles), combinedProps.class, className)
|
|
1300
|
+
return cx(css(cvaStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])), combinedProps.class, className)
|
|
1301
1301
|
}
|
|
1302
1302
|
|
|
1303
1303
|
const classes = configOrCva.__recipe__ ? recipeClass : cvaClass
|
|
@@ -1624,13 +1624,13 @@ function generateReactJsxFactory(ctx) {
|
|
|
1624
1624
|
function recipeClass() {
|
|
1625
1625
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
1626
1626
|
const compoundVariantStyles = __cvaFn__.__getCompoundVariantCss__?.(variantProps)
|
|
1627
|
-
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, cssStyles), combinedProps.className)
|
|
1627
|
+
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])), combinedProps.className)
|
|
1628
1628
|
}
|
|
1629
1629
|
|
|
1630
1630
|
function cvaClass() {
|
|
1631
1631
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
1632
1632
|
const cvaStyles = __cvaFn__.raw(variantProps)
|
|
1633
|
-
return cx(css(cvaStyles, propStyles, cssStyles), combinedProps.className)
|
|
1633
|
+
return cx(css(cvaStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])), combinedProps.className)
|
|
1634
1634
|
}
|
|
1635
1635
|
|
|
1636
1636
|
const classes = configOrCva.__recipe__ ? recipeClass : cvaClass
|
|
@@ -1987,7 +1987,7 @@ function generateSolidJsxFactory(ctx) {
|
|
|
1987
1987
|
__cvaFn__.__getCompoundVariantCss__?.(variantProps)
|
|
1988
1988
|
return cx(
|
|
1989
1989
|
__cvaFn__(variantProps, false),
|
|
1990
|
-
css(compoundVariantStyles, propStyles, cssStyles),
|
|
1990
|
+
css(compoundVariantStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])),
|
|
1991
1991
|
localProps.class,
|
|
1992
1992
|
localProps.className
|
|
1993
1993
|
)
|
|
@@ -1997,7 +1997,7 @@ function generateSolidJsxFactory(ctx) {
|
|
|
1997
1997
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
1998
1998
|
const cvaStyles = __cvaFn__.raw(variantProps)
|
|
1999
1999
|
return cx(
|
|
2000
|
-
css(cvaStyles, propStyles, cssStyles),
|
|
2000
|
+
css(cvaStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])),
|
|
2001
2001
|
localProps.class,
|
|
2002
2002
|
localProps.className
|
|
2003
2003
|
)
|
|
@@ -2341,14 +2341,14 @@ function generateVueJsxFactory(ctx) {
|
|
|
2341
2341
|
const [_htmlProps, _forwardedProps, variantProps, styleProps, _elementProps] = splittedProps.value
|
|
2342
2342
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
2343
2343
|
const compoundVariantStyles = __cvaFn__.__getCompoundVariantCss__?.(variantProps);
|
|
2344
|
-
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, cssStyles), combinedProps.value.className, combinedProps.value.class)
|
|
2344
|
+
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])), combinedProps.value.className, combinedProps.value.class)
|
|
2345
2345
|
})
|
|
2346
2346
|
|
|
2347
2347
|
const cvaClass = computed(() => {
|
|
2348
2348
|
const [_htmlProps, _forwardedProps, variantProps, styleProps, _elementProps] = splittedProps.value
|
|
2349
2349
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
2350
2350
|
const cvaStyles = __cvaFn__.raw(variantProps)
|
|
2351
|
-
return cx(css(cvaStyles, propStyles, cssStyles), combinedProps.value.className, combinedProps.value.class)
|
|
2351
|
+
return cx(css(cvaStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])), combinedProps.value.className, combinedProps.value.class)
|
|
2352
2352
|
})
|
|
2353
2353
|
|
|
2354
2354
|
const classes = configOrCva.__recipe__ ? recipeClass : cvaClass
|
|
@@ -3537,7 +3537,7 @@ var static_css_d_ts_default = {
|
|
|
3537
3537
|
|
|
3538
3538
|
// src/artifacts/generated/system-types.d.ts.json
|
|
3539
3539
|
var system_types_d_ts_default = {
|
|
3540
|
-
content: "import type { ConditionalValue, Nested } from './conditions'\nimport type { PropertiesFallback } from './csstype'\nimport type { SystemProperties, CssVarProperties } from './style-props'\n\ntype String = string & {}\ntype Number = number & {}\n\nexport type Pretty<T> = { [K in keyof T]: T[K] } & {}\n\nexport type DistributiveOmit<T, K extends keyof any> = T extends unknown ? Omit<T, K> : never\n\nexport type DistributiveUnion<T, U> = {\n [K in keyof T]: K extends keyof U ? U[K] | T[K] : T[K]\n} & DistributiveOmit<U, keyof T>\n\nexport type Assign<T, U> = {\n [K in keyof T]: K extends keyof U ? U[K] : T[K]\n} & U\n\n/* -----------------------------------------------------------------------------\n * Native css properties\n * -----------------------------------------------------------------------------*/\n\nexport type CssProperty = keyof PropertiesFallback\n\nexport interface CssProperties extends PropertiesFallback<String | Number>, CssVarProperties {}\n\nexport interface CssKeyframes {\n [name: string]: {\n [time: string]: CssProperties\n }\n}\n\n/* -----------------------------------------------------------------------------\n * Conditional css properties\n * -----------------------------------------------------------------------------*/\n\ninterface GenericProperties {\n [key: string]: ConditionalValue<String | Number | boolean>\n}\n\n/* -----------------------------------------------------------------------------\n * Native css props\n * -----------------------------------------------------------------------------*/\n\nexport type NestedCssProperties = Nested<CssProperties>\n\nexport type SystemStyleObject = Nested<SystemProperties & CssVarProperties>\n\nexport interface GlobalStyleObject {\n [selector: string]: SystemStyleObject\n}\nexport interface ExtendableGlobalStyleObject {\n [selector: string]: SystemStyleObject | undefined\n extend?: GlobalStyleObject | undefined\n}\n\ntype FilterStyleObject<P extends string> = {\n [K in P]?: K extends keyof SystemStyleObject ? SystemStyleObject[K] : unknown\n}\n\nexport type CompositionStyleObject<Property extends string> = Nested<FilterStyleObject<Property> & CssVarProperties>\n\n/* -----------------------------------------------------------------------------\n * Jsx style props\n * -----------------------------------------------------------------------------*/\ninterface WithCss {\n css?: SystemStyleObject\n}\ntype StyleProps = SystemStyleObject & WithCss\n\nexport type JsxStyleProps = StyleProps & WithCss\n\nexport interface PatchedHTMLProps {\n htmlWidth?: string | number\n htmlHeight?: string | number\n htmlTranslate?: 'yes' | 'no' | undefined\n htmlContent?: string\n}\n\nexport type OmittedHTMLProps = 'color' | 'translate' | 'transition' | 'width' | 'height' | 'content'\n\ntype WithHTMLProps<T> = DistributiveOmit<T, OmittedHTMLProps> & PatchedHTMLProps\n\nexport type JsxHTMLProps<T extends Record<string, any>, P extends Record<string, any> = {}> = Assign<\n WithHTMLProps<T>,\n P\n>\n"
|
|
3540
|
+
content: "import type { ConditionalValue, Nested } from './conditions'\nimport type { PropertiesFallback } from './csstype'\nimport type { SystemProperties, CssVarProperties } from './style-props'\n\ntype String = string & {}\ntype Number = number & {}\n\nexport type Pretty<T> = { [K in keyof T]: T[K] } & {}\n\nexport type DistributiveOmit<T, K extends keyof any> = T extends unknown ? Omit<T, K> : never\n\nexport type DistributiveUnion<T, U> = {\n [K in keyof T]: K extends keyof U ? U[K] | T[K] : T[K]\n} & DistributiveOmit<U, keyof T>\n\nexport type Assign<T, U> = {\n [K in keyof T]: K extends keyof U ? U[K] : T[K]\n} & U\n\n/* -----------------------------------------------------------------------------\n * Native css properties\n * -----------------------------------------------------------------------------*/\n\nexport type CssProperty = keyof PropertiesFallback\n\nexport interface CssProperties extends PropertiesFallback<String | Number>, CssVarProperties {}\n\nexport interface CssKeyframes {\n [name: string]: {\n [time: string]: CssProperties\n }\n}\n\n/* -----------------------------------------------------------------------------\n * Conditional css properties\n * -----------------------------------------------------------------------------*/\n\ninterface GenericProperties {\n [key: string]: ConditionalValue<String | Number | boolean>\n}\n\n/* -----------------------------------------------------------------------------\n * Native css props\n * -----------------------------------------------------------------------------*/\n\nexport type NestedCssProperties = Nested<CssProperties>\n\nexport type SystemStyleObject = Nested<SystemProperties & CssVarProperties>\n\nexport interface GlobalStyleObject {\n [selector: string]: SystemStyleObject\n}\nexport interface ExtendableGlobalStyleObject {\n [selector: string]: SystemStyleObject | undefined\n extend?: GlobalStyleObject | undefined\n}\n\ntype FilterStyleObject<P extends string> = {\n [K in P]?: K extends keyof SystemStyleObject ? SystemStyleObject[K] : unknown\n}\n\nexport type CompositionStyleObject<Property extends string> = Nested<FilterStyleObject<Property> & CssVarProperties>\n\n/* -----------------------------------------------------------------------------\n * Jsx style props\n * -----------------------------------------------------------------------------*/\ninterface WithCss {\n css?: SystemStyleObject | SystemStyleObject[]\n}\ntype StyleProps = SystemStyleObject & WithCss\n\nexport type JsxStyleProps = StyleProps & WithCss\n\nexport interface PatchedHTMLProps {\n htmlWidth?: string | number\n htmlHeight?: string | number\n htmlTranslate?: 'yes' | 'no' | undefined\n htmlContent?: string\n}\n\nexport type OmittedHTMLProps = 'color' | 'translate' | 'transition' | 'width' | 'height' | 'content'\n\ntype WithHTMLProps<T> = DistributiveOmit<T, OmittedHTMLProps> & PatchedHTMLProps\n\nexport type JsxHTMLProps<T extends Record<string, any>, P extends Record<string, any> = {}> = Assign<\n WithHTMLProps<T>,\n P\n>\n"
|
|
3541
3541
|
};
|
|
3542
3542
|
|
|
3543
3543
|
// src/artifacts/types/generated.ts
|
package/dist/index.mjs
CHANGED
|
@@ -927,13 +927,13 @@ function generatePreactJsxFactory(ctx) {
|
|
|
927
927
|
function recipeClass() {
|
|
928
928
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
929
929
|
const compoundVariantStyles = __cvaFn__.__getCompoundVariantCss__?.(variantProps)
|
|
930
|
-
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, cssStyles), combinedProps.class, combinedProps.className)
|
|
930
|
+
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])), combinedProps.class, combinedProps.className)
|
|
931
931
|
}
|
|
932
932
|
|
|
933
933
|
function cvaClass() {
|
|
934
934
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
935
935
|
const cvaStyles = __cvaFn__.raw(variantProps)
|
|
936
|
-
return cx(css(cvaStyles, propStyles, cssStyles), combinedProps.class, combinedProps.className)
|
|
936
|
+
return cx(css(cvaStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])), combinedProps.class, combinedProps.className)
|
|
937
937
|
}
|
|
938
938
|
|
|
939
939
|
const classes = configOrCva.__recipe__ ? recipeClass : cvaClass
|
|
@@ -1255,13 +1255,13 @@ function generateQwikJsxFactory(ctx) {
|
|
|
1255
1255
|
function recipeClass() {
|
|
1256
1256
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
1257
1257
|
const compoundVariantStyles = __cvaFn__.__getCompoundVariantCss__?.(variantProps);
|
|
1258
|
-
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, cssStyles), combinedProps.class, className)
|
|
1258
|
+
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])), combinedProps.class, className)
|
|
1259
1259
|
}
|
|
1260
1260
|
|
|
1261
1261
|
function cvaClass() {
|
|
1262
1262
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
1263
1263
|
const cvaStyles = __cvaFn__.raw(variantProps)
|
|
1264
|
-
return cx(css(cvaStyles, propStyles, cssStyles), combinedProps.class, className)
|
|
1264
|
+
return cx(css(cvaStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])), combinedProps.class, className)
|
|
1265
1265
|
}
|
|
1266
1266
|
|
|
1267
1267
|
const classes = configOrCva.__recipe__ ? recipeClass : cvaClass
|
|
@@ -1588,13 +1588,13 @@ function generateReactJsxFactory(ctx) {
|
|
|
1588
1588
|
function recipeClass() {
|
|
1589
1589
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
1590
1590
|
const compoundVariantStyles = __cvaFn__.__getCompoundVariantCss__?.(variantProps)
|
|
1591
|
-
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, cssStyles), combinedProps.className)
|
|
1591
|
+
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])), combinedProps.className)
|
|
1592
1592
|
}
|
|
1593
1593
|
|
|
1594
1594
|
function cvaClass() {
|
|
1595
1595
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
1596
1596
|
const cvaStyles = __cvaFn__.raw(variantProps)
|
|
1597
|
-
return cx(css(cvaStyles, propStyles, cssStyles), combinedProps.className)
|
|
1597
|
+
return cx(css(cvaStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])), combinedProps.className)
|
|
1598
1598
|
}
|
|
1599
1599
|
|
|
1600
1600
|
const classes = configOrCva.__recipe__ ? recipeClass : cvaClass
|
|
@@ -1951,7 +1951,7 @@ function generateSolidJsxFactory(ctx) {
|
|
|
1951
1951
|
__cvaFn__.__getCompoundVariantCss__?.(variantProps)
|
|
1952
1952
|
return cx(
|
|
1953
1953
|
__cvaFn__(variantProps, false),
|
|
1954
|
-
css(compoundVariantStyles, propStyles, cssStyles),
|
|
1954
|
+
css(compoundVariantStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])),
|
|
1955
1955
|
localProps.class,
|
|
1956
1956
|
localProps.className
|
|
1957
1957
|
)
|
|
@@ -1961,7 +1961,7 @@ function generateSolidJsxFactory(ctx) {
|
|
|
1961
1961
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
1962
1962
|
const cvaStyles = __cvaFn__.raw(variantProps)
|
|
1963
1963
|
return cx(
|
|
1964
|
-
css(cvaStyles, propStyles, cssStyles),
|
|
1964
|
+
css(cvaStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])),
|
|
1965
1965
|
localProps.class,
|
|
1966
1966
|
localProps.className
|
|
1967
1967
|
)
|
|
@@ -2305,14 +2305,14 @@ function generateVueJsxFactory(ctx) {
|
|
|
2305
2305
|
const [_htmlProps, _forwardedProps, variantProps, styleProps, _elementProps] = splittedProps.value
|
|
2306
2306
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
2307
2307
|
const compoundVariantStyles = __cvaFn__.__getCompoundVariantCss__?.(variantProps);
|
|
2308
|
-
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, cssStyles), combinedProps.value.className, combinedProps.value.class)
|
|
2308
|
+
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])), combinedProps.value.className, combinedProps.value.class)
|
|
2309
2309
|
})
|
|
2310
2310
|
|
|
2311
2311
|
const cvaClass = computed(() => {
|
|
2312
2312
|
const [_htmlProps, _forwardedProps, variantProps, styleProps, _elementProps] = splittedProps.value
|
|
2313
2313
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
2314
2314
|
const cvaStyles = __cvaFn__.raw(variantProps)
|
|
2315
|
-
return cx(css(cvaStyles, propStyles, cssStyles), combinedProps.value.className, combinedProps.value.class)
|
|
2315
|
+
return cx(css(cvaStyles, propStyles, ...(Array.isArray(cssStyles) ? cssStyles : [cssStyles])), combinedProps.value.className, combinedProps.value.class)
|
|
2316
2316
|
})
|
|
2317
2317
|
|
|
2318
2318
|
const classes = configOrCva.__recipe__ ? recipeClass : cvaClass
|
|
@@ -3501,7 +3501,7 @@ var static_css_d_ts_default = {
|
|
|
3501
3501
|
|
|
3502
3502
|
// src/artifacts/generated/system-types.d.ts.json
|
|
3503
3503
|
var system_types_d_ts_default = {
|
|
3504
|
-
content: "import type { ConditionalValue, Nested } from './conditions'\nimport type { PropertiesFallback } from './csstype'\nimport type { SystemProperties, CssVarProperties } from './style-props'\n\ntype String = string & {}\ntype Number = number & {}\n\nexport type Pretty<T> = { [K in keyof T]: T[K] } & {}\n\nexport type DistributiveOmit<T, K extends keyof any> = T extends unknown ? Omit<T, K> : never\n\nexport type DistributiveUnion<T, U> = {\n [K in keyof T]: K extends keyof U ? U[K] | T[K] : T[K]\n} & DistributiveOmit<U, keyof T>\n\nexport type Assign<T, U> = {\n [K in keyof T]: K extends keyof U ? U[K] : T[K]\n} & U\n\n/* -----------------------------------------------------------------------------\n * Native css properties\n * -----------------------------------------------------------------------------*/\n\nexport type CssProperty = keyof PropertiesFallback\n\nexport interface CssProperties extends PropertiesFallback<String | Number>, CssVarProperties {}\n\nexport interface CssKeyframes {\n [name: string]: {\n [time: string]: CssProperties\n }\n}\n\n/* -----------------------------------------------------------------------------\n * Conditional css properties\n * -----------------------------------------------------------------------------*/\n\ninterface GenericProperties {\n [key: string]: ConditionalValue<String | Number | boolean>\n}\n\n/* -----------------------------------------------------------------------------\n * Native css props\n * -----------------------------------------------------------------------------*/\n\nexport type NestedCssProperties = Nested<CssProperties>\n\nexport type SystemStyleObject = Nested<SystemProperties & CssVarProperties>\n\nexport interface GlobalStyleObject {\n [selector: string]: SystemStyleObject\n}\nexport interface ExtendableGlobalStyleObject {\n [selector: string]: SystemStyleObject | undefined\n extend?: GlobalStyleObject | undefined\n}\n\ntype FilterStyleObject<P extends string> = {\n [K in P]?: K extends keyof SystemStyleObject ? SystemStyleObject[K] : unknown\n}\n\nexport type CompositionStyleObject<Property extends string> = Nested<FilterStyleObject<Property> & CssVarProperties>\n\n/* -----------------------------------------------------------------------------\n * Jsx style props\n * -----------------------------------------------------------------------------*/\ninterface WithCss {\n css?: SystemStyleObject\n}\ntype StyleProps = SystemStyleObject & WithCss\n\nexport type JsxStyleProps = StyleProps & WithCss\n\nexport interface PatchedHTMLProps {\n htmlWidth?: string | number\n htmlHeight?: string | number\n htmlTranslate?: 'yes' | 'no' | undefined\n htmlContent?: string\n}\n\nexport type OmittedHTMLProps = 'color' | 'translate' | 'transition' | 'width' | 'height' | 'content'\n\ntype WithHTMLProps<T> = DistributiveOmit<T, OmittedHTMLProps> & PatchedHTMLProps\n\nexport type JsxHTMLProps<T extends Record<string, any>, P extends Record<string, any> = {}> = Assign<\n WithHTMLProps<T>,\n P\n>\n"
|
|
3504
|
+
content: "import type { ConditionalValue, Nested } from './conditions'\nimport type { PropertiesFallback } from './csstype'\nimport type { SystemProperties, CssVarProperties } from './style-props'\n\ntype String = string & {}\ntype Number = number & {}\n\nexport type Pretty<T> = { [K in keyof T]: T[K] } & {}\n\nexport type DistributiveOmit<T, K extends keyof any> = T extends unknown ? Omit<T, K> : never\n\nexport type DistributiveUnion<T, U> = {\n [K in keyof T]: K extends keyof U ? U[K] | T[K] : T[K]\n} & DistributiveOmit<U, keyof T>\n\nexport type Assign<T, U> = {\n [K in keyof T]: K extends keyof U ? U[K] : T[K]\n} & U\n\n/* -----------------------------------------------------------------------------\n * Native css properties\n * -----------------------------------------------------------------------------*/\n\nexport type CssProperty = keyof PropertiesFallback\n\nexport interface CssProperties extends PropertiesFallback<String | Number>, CssVarProperties {}\n\nexport interface CssKeyframes {\n [name: string]: {\n [time: string]: CssProperties\n }\n}\n\n/* -----------------------------------------------------------------------------\n * Conditional css properties\n * -----------------------------------------------------------------------------*/\n\ninterface GenericProperties {\n [key: string]: ConditionalValue<String | Number | boolean>\n}\n\n/* -----------------------------------------------------------------------------\n * Native css props\n * -----------------------------------------------------------------------------*/\n\nexport type NestedCssProperties = Nested<CssProperties>\n\nexport type SystemStyleObject = Nested<SystemProperties & CssVarProperties>\n\nexport interface GlobalStyleObject {\n [selector: string]: SystemStyleObject\n}\nexport interface ExtendableGlobalStyleObject {\n [selector: string]: SystemStyleObject | undefined\n extend?: GlobalStyleObject | undefined\n}\n\ntype FilterStyleObject<P extends string> = {\n [K in P]?: K extends keyof SystemStyleObject ? SystemStyleObject[K] : unknown\n}\n\nexport type CompositionStyleObject<Property extends string> = Nested<FilterStyleObject<Property> & CssVarProperties>\n\n/* -----------------------------------------------------------------------------\n * Jsx style props\n * -----------------------------------------------------------------------------*/\ninterface WithCss {\n css?: SystemStyleObject | SystemStyleObject[]\n}\ntype StyleProps = SystemStyleObject & WithCss\n\nexport type JsxStyleProps = StyleProps & WithCss\n\nexport interface PatchedHTMLProps {\n htmlWidth?: string | number\n htmlHeight?: string | number\n htmlTranslate?: 'yes' | 'no' | undefined\n htmlContent?: string\n}\n\nexport type OmittedHTMLProps = 'color' | 'translate' | 'transition' | 'width' | 'height' | 'content'\n\ntype WithHTMLProps<T> = DistributiveOmit<T, OmittedHTMLProps> & PatchedHTMLProps\n\nexport type JsxHTMLProps<T extends Record<string, any>, P extends Record<string, any> = {}> = Assign<\n WithHTMLProps<T>,\n P\n>\n"
|
|
3505
3505
|
};
|
|
3506
3506
|
|
|
3507
3507
|
// src/artifacts/types/generated.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/generator",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20240422125835",
|
|
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.0.0-dev-
|
|
41
|
-
"@pandacss/is-valid-prop": "^0.0.0-dev-
|
|
42
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
43
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
44
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
45
|
-
"@pandacss/types": "0.0.0-dev-
|
|
40
|
+
"@pandacss/core": "0.0.0-dev-20240422125835",
|
|
41
|
+
"@pandacss/is-valid-prop": "^0.0.0-dev-20240422125835",
|
|
42
|
+
"@pandacss/logger": "0.0.0-dev-20240422125835",
|
|
43
|
+
"@pandacss/shared": "0.0.0-dev-20240422125835",
|
|
44
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20240422125835",
|
|
45
|
+
"@pandacss/types": "0.0.0-dev-20240422125835"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/pluralize": "0.0.33"
|