@pandacss/generator 0.0.0-dev-20230616150240 → 0.0.0-dev-20230617204234
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 +20 -10
- package/dist/index.mjs +20 -10
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -2091,11 +2091,13 @@ function getGeneratedTypes() {
|
|
|
2091
2091
|
var import_outdent25 = require("outdent");
|
|
2092
2092
|
var generateTypesEntry = () => ({
|
|
2093
2093
|
global: import_outdent25.outdent`
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
import {
|
|
2097
|
-
import {
|
|
2098
|
-
import {
|
|
2094
|
+
/* eslint-disable */
|
|
2095
|
+
|
|
2096
|
+
import type { RecipeVariantRecord, RecipeConfig } from './recipe'
|
|
2097
|
+
import type { Parts } from './parts'
|
|
2098
|
+
import type { PatternConfig } from './pattern'
|
|
2099
|
+
import type { GlobalStyleObject, SystemStyleObject } from './system-types'
|
|
2100
|
+
import type { CompositionStyles } from './composition'
|
|
2099
2101
|
|
|
2100
2102
|
declare module '@pandacss/dev' {
|
|
2101
2103
|
export function defineRecipe<V extends RecipeVariantRecord>(config: RecipeConfig<V>): RecipeConfig
|
|
@@ -2108,12 +2110,16 @@ var generateTypesEntry = () => ({
|
|
|
2108
2110
|
}
|
|
2109
2111
|
`,
|
|
2110
2112
|
index: import_outdent25.outdent`
|
|
2113
|
+
/* eslint-disable */
|
|
2114
|
+
|
|
2111
2115
|
import './global'
|
|
2112
|
-
export { ConditionalValue } from './conditions'
|
|
2113
|
-
export { GlobalStyleObject, JsxStyleProps, SystemStyleObject } from './system-types'
|
|
2116
|
+
export type { ConditionalValue } from './conditions'
|
|
2117
|
+
export type { GlobalStyleObject, JsxStyleProps, SystemStyleObject } from './system-types'
|
|
2114
2118
|
|
|
2115
2119
|
`,
|
|
2116
2120
|
helpers: import_outdent25.outdent`
|
|
2121
|
+
/* eslint-disable */
|
|
2122
|
+
|
|
2117
2123
|
export type Pretty<T> = T extends infer U ? { [K in keyof U]: U[K] } : never
|
|
2118
2124
|
`
|
|
2119
2125
|
});
|
|
@@ -2128,6 +2134,8 @@ function generatePropTypes(ctx) {
|
|
|
2128
2134
|
const strictText = `${strictTokens ? "" : " | CssValue<T>"}`;
|
|
2129
2135
|
const result = [
|
|
2130
2136
|
import_outdent26.outdent`
|
|
2137
|
+
/* eslint-disable */
|
|
2138
|
+
|
|
2131
2139
|
import type { ConditionalValue } from './conditions';
|
|
2132
2140
|
import type { CssProperties } from './system-types'
|
|
2133
2141
|
import type { Tokens } from '../tokens'
|
|
@@ -2167,9 +2175,11 @@ var import_outdent27 = __toESM(require("outdent"));
|
|
|
2167
2175
|
function generateStyleProps(ctx) {
|
|
2168
2176
|
const props = new Set(import_is_valid_prop.allCssProperties.concat(ctx.utility.keys()));
|
|
2169
2177
|
return import_outdent27.default`
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
import {
|
|
2178
|
+
/* eslint-disable */
|
|
2179
|
+
|
|
2180
|
+
import type { ConditionalValue } from './conditions'
|
|
2181
|
+
import type { PropertyValue } from './prop-type'
|
|
2182
|
+
import type { Token } from '../tokens'
|
|
2173
2183
|
|
|
2174
2184
|
export type CssVarProperties = {
|
|
2175
2185
|
[key in \`--\${string}\`]?: ConditionalValue<Token | (string & {}) | (number & {})>
|
package/dist/index.mjs
CHANGED
|
@@ -2060,11 +2060,13 @@ function getGeneratedTypes() {
|
|
|
2060
2060
|
import { outdent as outdent25 } from "outdent";
|
|
2061
2061
|
var generateTypesEntry = () => ({
|
|
2062
2062
|
global: outdent25`
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
import {
|
|
2066
|
-
import {
|
|
2067
|
-
import {
|
|
2063
|
+
/* eslint-disable */
|
|
2064
|
+
|
|
2065
|
+
import type { RecipeVariantRecord, RecipeConfig } from './recipe'
|
|
2066
|
+
import type { Parts } from './parts'
|
|
2067
|
+
import type { PatternConfig } from './pattern'
|
|
2068
|
+
import type { GlobalStyleObject, SystemStyleObject } from './system-types'
|
|
2069
|
+
import type { CompositionStyles } from './composition'
|
|
2068
2070
|
|
|
2069
2071
|
declare module '@pandacss/dev' {
|
|
2070
2072
|
export function defineRecipe<V extends RecipeVariantRecord>(config: RecipeConfig<V>): RecipeConfig
|
|
@@ -2077,12 +2079,16 @@ var generateTypesEntry = () => ({
|
|
|
2077
2079
|
}
|
|
2078
2080
|
`,
|
|
2079
2081
|
index: outdent25`
|
|
2082
|
+
/* eslint-disable */
|
|
2083
|
+
|
|
2080
2084
|
import './global'
|
|
2081
|
-
export { ConditionalValue } from './conditions'
|
|
2082
|
-
export { GlobalStyleObject, JsxStyleProps, SystemStyleObject } from './system-types'
|
|
2085
|
+
export type { ConditionalValue } from './conditions'
|
|
2086
|
+
export type { GlobalStyleObject, JsxStyleProps, SystemStyleObject } from './system-types'
|
|
2083
2087
|
|
|
2084
2088
|
`,
|
|
2085
2089
|
helpers: outdent25`
|
|
2090
|
+
/* eslint-disable */
|
|
2091
|
+
|
|
2086
2092
|
export type Pretty<T> = T extends infer U ? { [K in keyof U]: U[K] } : never
|
|
2087
2093
|
`
|
|
2088
2094
|
});
|
|
@@ -2097,6 +2103,8 @@ function generatePropTypes(ctx) {
|
|
|
2097
2103
|
const strictText = `${strictTokens ? "" : " | CssValue<T>"}`;
|
|
2098
2104
|
const result = [
|
|
2099
2105
|
outdent26`
|
|
2106
|
+
/* eslint-disable */
|
|
2107
|
+
|
|
2100
2108
|
import type { ConditionalValue } from './conditions';
|
|
2101
2109
|
import type { CssProperties } from './system-types'
|
|
2102
2110
|
import type { Tokens } from '../tokens'
|
|
@@ -2136,9 +2144,11 @@ import outdent27 from "outdent";
|
|
|
2136
2144
|
function generateStyleProps(ctx) {
|
|
2137
2145
|
const props = new Set(allCssProperties.concat(ctx.utility.keys()));
|
|
2138
2146
|
return outdent27`
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
import {
|
|
2147
|
+
/* eslint-disable */
|
|
2148
|
+
|
|
2149
|
+
import type { ConditionalValue } from './conditions'
|
|
2150
|
+
import type { PropertyValue } from './prop-type'
|
|
2151
|
+
import type { Token } from '../tokens'
|
|
2142
2152
|
|
|
2143
2153
|
export type CssVarProperties = {
|
|
2144
2154
|
[key in \`--\${string}\`]?: ConditionalValue<Token | (string & {}) | (number & {})>
|
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-20230617204234",
|
|
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-20230617204234",
|
|
24
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230617204234",
|
|
25
|
+
"@pandacss/logger": "0.0.0-dev-20230617204234",
|
|
26
|
+
"@pandacss/shared": "0.0.0-dev-20230617204234",
|
|
27
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230617204234",
|
|
28
|
+
"@pandacss/types": "0.0.0-dev-20230617204234"
|
|
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-20230617204234"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"prebuild": "tsx scripts/prebuild.ts",
|