@pandacss/generator 0.0.0-dev-20230618000809 → 0.0.0-dev-20230618202136

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,8 +2091,6 @@ function getGeneratedTypes() {
2091
2091
  var import_outdent25 = require("outdent");
2092
2092
  var generateTypesEntry = () => ({
2093
2093
  global: import_outdent25.outdent`
2094
- /* eslint-disable */
2095
-
2096
2094
  import type { RecipeVariantRecord, RecipeConfig } from './recipe'
2097
2095
  import type { Parts } from './parts'
2098
2096
  import type { PatternConfig } from './pattern'
@@ -2110,16 +2108,12 @@ var generateTypesEntry = () => ({
2110
2108
  }
2111
2109
  `,
2112
2110
  index: import_outdent25.outdent`
2113
- /* eslint-disable */
2114
-
2115
2111
  import './global'
2116
2112
  export type { ConditionalValue } from './conditions'
2117
2113
  export type { GlobalStyleObject, JsxStyleProps, SystemStyleObject } from './system-types'
2118
2114
 
2119
2115
  `,
2120
2116
  helpers: import_outdent25.outdent`
2121
- /* eslint-disable */
2122
-
2123
2117
  export type Pretty<T> = T extends infer U ? { [K in keyof U]: U[K] } : never
2124
2118
  `
2125
2119
  });
@@ -2134,8 +2128,6 @@ function generatePropTypes(ctx) {
2134
2128
  const strictText = `${strictTokens ? "" : " | CssValue<T>"}`;
2135
2129
  const result = [
2136
2130
  import_outdent26.outdent`
2137
- /* eslint-disable */
2138
-
2139
2131
  import type { ConditionalValue } from './conditions';
2140
2132
  import type { CssProperties } from './system-types'
2141
2133
  import type { Tokens } from '../tokens'
@@ -2175,8 +2167,6 @@ var import_outdent27 = __toESM(require("outdent"));
2175
2167
  function generateStyleProps(ctx) {
2176
2168
  const props = new Set(import_is_valid_prop.allCssProperties.concat(ctx.utility.keys()));
2177
2169
  return import_outdent27.default`
2178
- /* eslint-disable */
2179
-
2180
2170
  import type { ConditionalValue } from './conditions'
2181
2171
  import type { PropertyValue } from './prop-type'
2182
2172
  import type { Token } from '../tokens'
@@ -2459,7 +2449,16 @@ var generateArtifacts = (ctx) => () => {
2459
2449
  setupStaticCss(ctx),
2460
2450
  setupResetCss(ctx),
2461
2451
  setupPackageJson(ctx)
2462
- ].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
+ });
2463
2462
  };
2464
2463
 
2465
2464
  // src/artifacts/css/flat-css.ts
package/dist/index.mjs CHANGED
@@ -2060,8 +2060,6 @@ function getGeneratedTypes() {
2060
2060
  import { outdent as outdent25 } from "outdent";
2061
2061
  var generateTypesEntry = () => ({
2062
2062
  global: outdent25`
2063
- /* eslint-disable */
2064
-
2065
2063
  import type { RecipeVariantRecord, RecipeConfig } from './recipe'
2066
2064
  import type { Parts } from './parts'
2067
2065
  import type { PatternConfig } from './pattern'
@@ -2079,16 +2077,12 @@ var generateTypesEntry = () => ({
2079
2077
  }
2080
2078
  `,
2081
2079
  index: outdent25`
2082
- /* eslint-disable */
2083
-
2084
2080
  import './global'
2085
2081
  export type { ConditionalValue } from './conditions'
2086
2082
  export type { GlobalStyleObject, JsxStyleProps, SystemStyleObject } from './system-types'
2087
2083
 
2088
2084
  `,
2089
2085
  helpers: outdent25`
2090
- /* eslint-disable */
2091
-
2092
2086
  export type Pretty<T> = T extends infer U ? { [K in keyof U]: U[K] } : never
2093
2087
  `
2094
2088
  });
@@ -2103,8 +2097,6 @@ function generatePropTypes(ctx) {
2103
2097
  const strictText = `${strictTokens ? "" : " | CssValue<T>"}`;
2104
2098
  const result = [
2105
2099
  outdent26`
2106
- /* eslint-disable */
2107
-
2108
2100
  import type { ConditionalValue } from './conditions';
2109
2101
  import type { CssProperties } from './system-types'
2110
2102
  import type { Tokens } from '../tokens'
@@ -2144,8 +2136,6 @@ import outdent27 from "outdent";
2144
2136
  function generateStyleProps(ctx) {
2145
2137
  const props = new Set(allCssProperties.concat(ctx.utility.keys()));
2146
2138
  return outdent27`
2147
- /* eslint-disable */
2148
-
2149
2139
  import type { ConditionalValue } from './conditions'
2150
2140
  import type { PropertyValue } from './prop-type'
2151
2141
  import type { Token } from '../tokens'
@@ -2428,7 +2418,16 @@ var generateArtifacts = (ctx) => () => {
2428
2418
  setupStaticCss(ctx),
2429
2419
  setupResetCss(ctx),
2430
2420
  setupPackageJson(ctx)
2431
- ].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
+ });
2432
2431
  };
2433
2432
 
2434
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.0.0-dev-20230618000809",
3
+ "version": "0.0.0-dev-20230618202136",
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-20230618000809",
24
- "@pandacss/is-valid-prop": "0.0.0-dev-20230618000809",
25
- "@pandacss/logger": "0.0.0-dev-20230618000809",
26
- "@pandacss/shared": "0.0.0-dev-20230618000809",
27
- "@pandacss/token-dictionary": "0.0.0-dev-20230618000809",
28
- "@pandacss/types": "0.0.0-dev-20230618000809"
23
+ "@pandacss/core": "0.0.0-dev-20230618202136",
24
+ "@pandacss/is-valid-prop": "0.0.0-dev-20230618202136",
25
+ "@pandacss/logger": "0.0.0-dev-20230618202136",
26
+ "@pandacss/shared": "0.0.0-dev-20230618202136",
27
+ "@pandacss/token-dictionary": "0.0.0-dev-20230618202136",
28
+ "@pandacss/types": "0.0.0-dev-20230618202136"
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-20230618000809"
33
+ "@pandacss/fixture": "0.0.0-dev-20230618202136"
34
34
  },
35
35
  "scripts": {
36
36
  "prebuild": "tsx scripts/prebuild.ts",