@pandacss/generator 0.3.1 → 0.3.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 CHANGED
@@ -2091,11 +2091,11 @@ function getGeneratedTypes() {
2091
2091
  var import_outdent25 = require("outdent");
2092
2092
  var generateTypesEntry = () => ({
2093
2093
  global: import_outdent25.outdent`
2094
- import { RecipeVariantRecord, RecipeConfig } from './recipe'
2095
- import { Parts } from './parts'
2096
- import { PatternConfig } from './pattern'
2097
- import { GlobalStyleObject, SystemStyleObject } from './system-types'
2098
- import { CompositionStyles } from './composition'
2094
+ import type { RecipeVariantRecord, RecipeConfig } from './recipe'
2095
+ import type { Parts } from './parts'
2096
+ import type { PatternConfig } from './pattern'
2097
+ import type { GlobalStyleObject, SystemStyleObject } from './system-types'
2098
+ import type { CompositionStyles } from './composition'
2099
2099
 
2100
2100
  declare module '@pandacss/dev' {
2101
2101
  export function defineRecipe<V extends RecipeVariantRecord>(config: RecipeConfig<V>): RecipeConfig
@@ -2109,8 +2109,8 @@ var generateTypesEntry = () => ({
2109
2109
  `,
2110
2110
  index: import_outdent25.outdent`
2111
2111
  import './global'
2112
- export { ConditionalValue } from './conditions'
2113
- export { GlobalStyleObject, JsxStyleProps, SystemStyleObject } from './system-types'
2112
+ export type { ConditionalValue } from './conditions'
2113
+ export type { GlobalStyleObject, JsxStyleProps, SystemStyleObject } from './system-types'
2114
2114
 
2115
2115
  `,
2116
2116
  helpers: import_outdent25.outdent`
@@ -2167,9 +2167,9 @@ var import_outdent27 = __toESM(require("outdent"));
2167
2167
  function generateStyleProps(ctx) {
2168
2168
  const props = new Set(import_is_valid_prop.allCssProperties.concat(ctx.utility.keys()));
2169
2169
  return import_outdent27.default`
2170
- import { ConditionalValue } from './conditions'
2171
- import { PropertyValue } from './prop-type'
2172
- import { Token } from '../tokens'
2170
+ import type { ConditionalValue } from './conditions'
2171
+ import type { PropertyValue } from './prop-type'
2172
+ import type { Token } from '../tokens'
2173
2173
 
2174
2174
  export type CssVarProperties = {
2175
2175
  [key in \`--\${string}\`]?: ConditionalValue<Token | (string & {}) | (number & {})>
@@ -2449,7 +2449,16 @@ var generateArtifacts = (ctx) => () => {
2449
2449
  setupStaticCss(ctx),
2450
2450
  setupResetCss(ctx),
2451
2451
  setupPackageJson(ctx)
2452
- ].filter(Boolean);
2452
+ ].filter(Boolean).map((artifact) => {
2453
+ const files = artifact?.files ?? [];
2454
+ files.forEach((file) => {
2455
+ if (file.file.endsWith(".d.ts")) {
2456
+ file.code = `/* eslint-disable */
2457
+ ${file.code}`;
2458
+ }
2459
+ });
2460
+ return artifact;
2461
+ });
2453
2462
  };
2454
2463
 
2455
2464
  // src/artifacts/css/flat-css.ts
package/dist/index.mjs CHANGED
@@ -2060,11 +2060,11 @@ function getGeneratedTypes() {
2060
2060
  import { outdent as outdent25 } from "outdent";
2061
2061
  var generateTypesEntry = () => ({
2062
2062
  global: outdent25`
2063
- import { RecipeVariantRecord, RecipeConfig } from './recipe'
2064
- import { Parts } from './parts'
2065
- import { PatternConfig } from './pattern'
2066
- import { GlobalStyleObject, SystemStyleObject } from './system-types'
2067
- import { CompositionStyles } from './composition'
2063
+ import type { RecipeVariantRecord, RecipeConfig } from './recipe'
2064
+ import type { Parts } from './parts'
2065
+ import type { PatternConfig } from './pattern'
2066
+ import type { GlobalStyleObject, SystemStyleObject } from './system-types'
2067
+ import type { CompositionStyles } from './composition'
2068
2068
 
2069
2069
  declare module '@pandacss/dev' {
2070
2070
  export function defineRecipe<V extends RecipeVariantRecord>(config: RecipeConfig<V>): RecipeConfig
@@ -2078,8 +2078,8 @@ var generateTypesEntry = () => ({
2078
2078
  `,
2079
2079
  index: outdent25`
2080
2080
  import './global'
2081
- export { ConditionalValue } from './conditions'
2082
- export { GlobalStyleObject, JsxStyleProps, SystemStyleObject } from './system-types'
2081
+ export type { ConditionalValue } from './conditions'
2082
+ export type { GlobalStyleObject, JsxStyleProps, SystemStyleObject } from './system-types'
2083
2083
 
2084
2084
  `,
2085
2085
  helpers: outdent25`
@@ -2136,9 +2136,9 @@ import outdent27 from "outdent";
2136
2136
  function generateStyleProps(ctx) {
2137
2137
  const props = new Set(allCssProperties.concat(ctx.utility.keys()));
2138
2138
  return outdent27`
2139
- import { ConditionalValue } from './conditions'
2140
- import { PropertyValue } from './prop-type'
2141
- import { Token } from '../tokens'
2139
+ import type { ConditionalValue } from './conditions'
2140
+ import type { PropertyValue } from './prop-type'
2141
+ import type { Token } from '../tokens'
2142
2142
 
2143
2143
  export type CssVarProperties = {
2144
2144
  [key in \`--\${string}\`]?: ConditionalValue<Token | (string & {}) | (number & {})>
@@ -2418,7 +2418,16 @@ var generateArtifacts = (ctx) => () => {
2418
2418
  setupStaticCss(ctx),
2419
2419
  setupResetCss(ctx),
2420
2420
  setupPackageJson(ctx)
2421
- ].filter(Boolean);
2421
+ ].filter(Boolean).map((artifact) => {
2422
+ const files = artifact?.files ?? [];
2423
+ files.forEach((file) => {
2424
+ if (file.file.endsWith(".d.ts")) {
2425
+ file.code = `/* eslint-disable */
2426
+ ${file.code}`;
2427
+ }
2428
+ });
2429
+ return artifact;
2430
+ });
2422
2431
  };
2423
2432
 
2424
2433
  // src/artifacts/css/flat-css.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
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.3.1",
24
- "@pandacss/is-valid-prop": "0.3.1",
25
- "@pandacss/logger": "0.3.1",
26
- "@pandacss/shared": "0.3.1",
27
- "@pandacss/token-dictionary": "0.3.1",
28
- "@pandacss/types": "0.3.1"
23
+ "@pandacss/core": "0.3.2",
24
+ "@pandacss/is-valid-prop": "0.3.2",
25
+ "@pandacss/logger": "0.3.2",
26
+ "@pandacss/shared": "0.3.2",
27
+ "@pandacss/token-dictionary": "0.3.2",
28
+ "@pandacss/types": "0.3.2"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/pluralize": "0.0.29",
32
32
  "hookable": "5.5.3",
33
- "@pandacss/fixture": "0.3.1"
33
+ "@pandacss/fixture": "0.3.2"
34
34
  },
35
35
  "scripts": {
36
36
  "prebuild": "tsx scripts/prebuild.ts",