@pandacss/generator 0.39.0 → 0.39.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/dist/index.js +10 -6
- package/dist/index.mjs +10 -6
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -154,16 +154,20 @@ function generateCssFn(ctx) {
|
|
|
154
154
|
|
|
155
155
|
type Styles = SystemStyleObject | undefined | null | false
|
|
156
156
|
|
|
157
|
+
interface CssRawFunction {
|
|
158
|
+
(styles: Styles): SystemStyleObject
|
|
159
|
+
(styles: Styles[]): SystemStyleObject
|
|
160
|
+
(...styles: Array<Styles | Styles[]>): SystemStyleObject
|
|
161
|
+
(styles: Styles): SystemStyleObject
|
|
162
|
+
}
|
|
163
|
+
|
|
157
164
|
interface CssFunction {
|
|
158
165
|
(styles: Styles): string
|
|
159
166
|
(styles: Styles[]): string
|
|
160
167
|
(...styles: Array<Styles | Styles[]>): string
|
|
161
168
|
(styles: Styles): string
|
|
162
169
|
|
|
163
|
-
raw:
|
|
164
|
-
raw: (styles: Styles[]) => string
|
|
165
|
-
raw: (...styles: Array<Styles | Styles[]>) => string
|
|
166
|
-
raw: (styles: Styles) => string
|
|
170
|
+
raw: CssRawFunction
|
|
167
171
|
}
|
|
168
172
|
|
|
169
173
|
export declare const css: CssFunction;
|
|
@@ -2422,7 +2426,7 @@ function generateVueJsxFactory(ctx) {
|
|
|
2422
2426
|
export const ${factoryName} = /* @__PURE__ */ styledFn.bind();
|
|
2423
2427
|
|
|
2424
2428
|
tags.split(', ').forEach((tag) => {
|
|
2425
|
-
|
|
2429
|
+
${factoryName}[tag] = ${factoryName}(tag);
|
|
2426
2430
|
});
|
|
2427
2431
|
`
|
|
2428
2432
|
};
|
|
@@ -3546,7 +3550,7 @@ var static_css_d_ts_default = {
|
|
|
3546
3550
|
|
|
3547
3551
|
// src/artifacts/generated/system-types.d.ts.json
|
|
3548
3552
|
var system_types_d_ts_default = {
|
|
3549
|
-
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}\
|
|
3553
|
+
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}\n\nexport type JsxStyleProps = SystemStyleObject & 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"
|
|
3550
3554
|
};
|
|
3551
3555
|
|
|
3552
3556
|
// src/artifacts/types/generated.ts
|
package/dist/index.mjs
CHANGED
|
@@ -118,16 +118,20 @@ function generateCssFn(ctx) {
|
|
|
118
118
|
|
|
119
119
|
type Styles = SystemStyleObject | undefined | null | false
|
|
120
120
|
|
|
121
|
+
interface CssRawFunction {
|
|
122
|
+
(styles: Styles): SystemStyleObject
|
|
123
|
+
(styles: Styles[]): SystemStyleObject
|
|
124
|
+
(...styles: Array<Styles | Styles[]>): SystemStyleObject
|
|
125
|
+
(styles: Styles): SystemStyleObject
|
|
126
|
+
}
|
|
127
|
+
|
|
121
128
|
interface CssFunction {
|
|
122
129
|
(styles: Styles): string
|
|
123
130
|
(styles: Styles[]): string
|
|
124
131
|
(...styles: Array<Styles | Styles[]>): string
|
|
125
132
|
(styles: Styles): string
|
|
126
133
|
|
|
127
|
-
raw:
|
|
128
|
-
raw: (styles: Styles[]) => string
|
|
129
|
-
raw: (...styles: Array<Styles | Styles[]>) => string
|
|
130
|
-
raw: (styles: Styles) => string
|
|
134
|
+
raw: CssRawFunction
|
|
131
135
|
}
|
|
132
136
|
|
|
133
137
|
export declare const css: CssFunction;
|
|
@@ -2386,7 +2390,7 @@ function generateVueJsxFactory(ctx) {
|
|
|
2386
2390
|
export const ${factoryName} = /* @__PURE__ */ styledFn.bind();
|
|
2387
2391
|
|
|
2388
2392
|
tags.split(', ').forEach((tag) => {
|
|
2389
|
-
|
|
2393
|
+
${factoryName}[tag] = ${factoryName}(tag);
|
|
2390
2394
|
});
|
|
2391
2395
|
`
|
|
2392
2396
|
};
|
|
@@ -3510,7 +3514,7 @@ var static_css_d_ts_default = {
|
|
|
3510
3514
|
|
|
3511
3515
|
// src/artifacts/generated/system-types.d.ts.json
|
|
3512
3516
|
var system_types_d_ts_default = {
|
|
3513
|
-
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}\
|
|
3517
|
+
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}\n\nexport type JsxStyleProps = SystemStyleObject & 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"
|
|
3514
3518
|
};
|
|
3515
3519
|
|
|
3516
3520
|
// src/artifacts/types/generated.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/generator",
|
|
3
|
-
"version": "0.39.
|
|
3
|
+
"version": "0.39.2",
|
|
4
4
|
"description": "The css generator for css panda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"javascript-stringify": "2.1.0",
|
|
36
36
|
"outdent": " ^0.8.0",
|
|
37
37
|
"pluralize": "8.0.0",
|
|
38
|
-
"postcss": "8.4.
|
|
38
|
+
"postcss": "8.4.38",
|
|
39
39
|
"ts-pattern": "5.0.8",
|
|
40
|
-
"@pandacss/core": "0.39.
|
|
41
|
-
"@pandacss/is-valid-prop": "^0.39.
|
|
42
|
-
"@pandacss/logger": "0.39.
|
|
43
|
-
"@pandacss/shared": "0.39.
|
|
44
|
-
"@pandacss/token-dictionary": "0.39.
|
|
45
|
-
"@pandacss/types": "0.39.
|
|
40
|
+
"@pandacss/core": "0.39.2",
|
|
41
|
+
"@pandacss/is-valid-prop": "^0.39.2",
|
|
42
|
+
"@pandacss/logger": "0.39.2",
|
|
43
|
+
"@pandacss/shared": "0.39.2",
|
|
44
|
+
"@pandacss/token-dictionary": "0.39.2",
|
|
45
|
+
"@pandacss/types": "0.39.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/pluralize": "0.0.33"
|