@pandacss/generator 0.0.0-dev-20230705181159 → 0.0.0-dev-20230705181803
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 +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -2720,7 +2720,7 @@ var recipe_d_ts_default = {
|
|
|
2720
2720
|
|
|
2721
2721
|
// src/artifacts/generated/pattern.d.ts.json
|
|
2722
2722
|
var pattern_d_ts_default = {
|
|
2723
|
-
content: "import type { CssProperty, SystemStyleObject } from './system-types'\nimport type { TokenCategory } from '../tokens'\n\ntype Primitive = string | number | boolean | null | undefined\ntype LiteralUnion<T, K extends Primitive = string> = T | (K & Record<never, never>)\n\nexport type PatternProperty =\n | { type: 'property'; value: CssProperty }\n | { type: 'enum'; value: string[] }\n | { type: 'token'; value: TokenCategory; property?: CssProperty }\n | { type: 'string' | 'boolean' | 'number' }\n\nexport type PatternHelpers = {\n map: (value: any, fn: (value: string) => string | undefined) => any\n}\n\
|
|
2723
|
+
content: "import type { CssProperty, SystemStyleObject } from './system-types'\nimport type { TokenCategory } from '../tokens'\n\ntype Primitive = string | number | boolean | null | undefined\ntype LiteralUnion<T, K extends Primitive = string> = T | (K & Record<never, never>)\n\nexport type PatternProperty =\n | { type: 'property'; value: CssProperty }\n | { type: 'enum'; value: string[] }\n | { type: 'token'; value: TokenCategory; property?: CssProperty }\n | { type: 'string' | 'boolean' | 'number' }\n\nexport type PatternHelpers = {\n map: (value: any, fn: (value: string) => string | undefined) => any\n}\n\nexport type PatternProperties = Record<string, PatternProperty>\n\ntype Props<T> = Record<LiteralUnion<keyof T>, any>\n\nexport type PatternConfig<T extends PatternProperties = PatternProperties> = {\n /**\n * The description of the pattern. This will be used in the JSDoc comment.\n */\n description?: string\n /**\n * The JSX element rendered by the pattern\n * @default 'div'\n */\n jsxElement?: string\n /**\n * The properties of the pattern.\n */\n properties?: T\n /**\n * The css object this pattern will generate.\n */\n transform?: (props: Props<T>, helpers: PatternHelpers) => SystemStyleObject\n /**\n * The jsx element name this pattern will generate.\n */\n jsx?: string\n /**\n * Whether to only generate types for the specified properties.\n * This will disallow css properties\n */\n strict?: boolean\n /**\n * @experimental\n * Disallow certain css properties for this pattern\n */\n blocklist?: LiteralUnion<CssProperty>[]\n}\n"
|
|
2724
2724
|
};
|
|
2725
2725
|
|
|
2726
2726
|
// src/artifacts/generated/parts.d.ts.json
|
|
@@ -2752,7 +2752,7 @@ var generateTypesEntry = () => ({
|
|
|
2752
2752
|
global: import_outdent38.outdent`
|
|
2753
2753
|
import type { RecipeVariantRecord, RecipeConfig } from './recipe'
|
|
2754
2754
|
import type { Parts } from './parts'
|
|
2755
|
-
import type { PatternConfig } from './pattern'
|
|
2755
|
+
import type { PatternConfig, PatternProperties } from './pattern'
|
|
2756
2756
|
import type { GlobalStyleObject, SystemStyleObject } from './system-types'
|
|
2757
2757
|
import type { CompositionStyles } from './composition'
|
|
2758
2758
|
|
|
@@ -2762,7 +2762,7 @@ var generateTypesEntry = () => ({
|
|
|
2762
2762
|
export function defineGlobalStyles(definition: GlobalStyleObject): GlobalStyleObject
|
|
2763
2763
|
export function defineTextStyles(definition: CompositionStyles['textStyles']): CompositionStyles['textStyles']
|
|
2764
2764
|
export function defineLayerStyles(definition: CompositionStyles['layerStyles']): CompositionStyles['layerStyles']
|
|
2765
|
-
export function definePattern<T>(config: PatternConfig<T>): PatternConfig
|
|
2765
|
+
export function definePattern<T extends PatternProperties>(config: PatternConfig<T>): PatternConfig
|
|
2766
2766
|
export function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>;
|
|
2767
2767
|
}
|
|
2768
2768
|
`,
|
package/dist/index.mjs
CHANGED
|
@@ -2689,7 +2689,7 @@ var recipe_d_ts_default = {
|
|
|
2689
2689
|
|
|
2690
2690
|
// src/artifacts/generated/pattern.d.ts.json
|
|
2691
2691
|
var pattern_d_ts_default = {
|
|
2692
|
-
content: "import type { CssProperty, SystemStyleObject } from './system-types'\nimport type { TokenCategory } from '../tokens'\n\ntype Primitive = string | number | boolean | null | undefined\ntype LiteralUnion<T, K extends Primitive = string> = T | (K & Record<never, never>)\n\nexport type PatternProperty =\n | { type: 'property'; value: CssProperty }\n | { type: 'enum'; value: string[] }\n | { type: 'token'; value: TokenCategory; property?: CssProperty }\n | { type: 'string' | 'boolean' | 'number' }\n\nexport type PatternHelpers = {\n map: (value: any, fn: (value: string) => string | undefined) => any\n}\n\
|
|
2692
|
+
content: "import type { CssProperty, SystemStyleObject } from './system-types'\nimport type { TokenCategory } from '../tokens'\n\ntype Primitive = string | number | boolean | null | undefined\ntype LiteralUnion<T, K extends Primitive = string> = T | (K & Record<never, never>)\n\nexport type PatternProperty =\n | { type: 'property'; value: CssProperty }\n | { type: 'enum'; value: string[] }\n | { type: 'token'; value: TokenCategory; property?: CssProperty }\n | { type: 'string' | 'boolean' | 'number' }\n\nexport type PatternHelpers = {\n map: (value: any, fn: (value: string) => string | undefined) => any\n}\n\nexport type PatternProperties = Record<string, PatternProperty>\n\ntype Props<T> = Record<LiteralUnion<keyof T>, any>\n\nexport type PatternConfig<T extends PatternProperties = PatternProperties> = {\n /**\n * The description of the pattern. This will be used in the JSDoc comment.\n */\n description?: string\n /**\n * The JSX element rendered by the pattern\n * @default 'div'\n */\n jsxElement?: string\n /**\n * The properties of the pattern.\n */\n properties?: T\n /**\n * The css object this pattern will generate.\n */\n transform?: (props: Props<T>, helpers: PatternHelpers) => SystemStyleObject\n /**\n * The jsx element name this pattern will generate.\n */\n jsx?: string\n /**\n * Whether to only generate types for the specified properties.\n * This will disallow css properties\n */\n strict?: boolean\n /**\n * @experimental\n * Disallow certain css properties for this pattern\n */\n blocklist?: LiteralUnion<CssProperty>[]\n}\n"
|
|
2693
2693
|
};
|
|
2694
2694
|
|
|
2695
2695
|
// src/artifacts/generated/parts.d.ts.json
|
|
@@ -2721,7 +2721,7 @@ var generateTypesEntry = () => ({
|
|
|
2721
2721
|
global: outdent38`
|
|
2722
2722
|
import type { RecipeVariantRecord, RecipeConfig } from './recipe'
|
|
2723
2723
|
import type { Parts } from './parts'
|
|
2724
|
-
import type { PatternConfig } from './pattern'
|
|
2724
|
+
import type { PatternConfig, PatternProperties } from './pattern'
|
|
2725
2725
|
import type { GlobalStyleObject, SystemStyleObject } from './system-types'
|
|
2726
2726
|
import type { CompositionStyles } from './composition'
|
|
2727
2727
|
|
|
@@ -2731,7 +2731,7 @@ var generateTypesEntry = () => ({
|
|
|
2731
2731
|
export function defineGlobalStyles(definition: GlobalStyleObject): GlobalStyleObject
|
|
2732
2732
|
export function defineTextStyles(definition: CompositionStyles['textStyles']): CompositionStyles['textStyles']
|
|
2733
2733
|
export function defineLayerStyles(definition: CompositionStyles['layerStyles']): CompositionStyles['layerStyles']
|
|
2734
|
-
export function definePattern<T>(config: PatternConfig<T>): PatternConfig
|
|
2734
|
+
export function definePattern<T extends PatternProperties>(config: PatternConfig<T>): PatternConfig
|
|
2735
2735
|
export function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>;
|
|
2736
2736
|
}
|
|
2737
2737
|
`,
|
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-20230705181803",
|
|
4
4
|
"description": "The css generator for css panda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"pluralize": "8.0.0",
|
|
21
21
|
"postcss": "8.4.24",
|
|
22
22
|
"ts-pattern": "4.3.0",
|
|
23
|
-
"@pandacss/core": "0.0.0-dev-
|
|
24
|
-
"@pandacss/is-valid-prop": "0.0.0-dev-
|
|
25
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
26
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
27
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
28
|
-
"@pandacss/types": "0.0.0-dev-
|
|
23
|
+
"@pandacss/core": "0.0.0-dev-20230705181803",
|
|
24
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230705181803",
|
|
25
|
+
"@pandacss/logger": "0.0.0-dev-20230705181803",
|
|
26
|
+
"@pandacss/shared": "0.0.0-dev-20230705181803",
|
|
27
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230705181803",
|
|
28
|
+
"@pandacss/types": "0.0.0-dev-20230705181803"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/pluralize": "0.0.29",
|
|
32
32
|
"hookable": "5.5.3",
|
|
33
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
33
|
+
"@pandacss/fixture": "0.0.0-dev-20230705181803"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"prebuild": "tsx scripts/prebuild.ts",
|