@pandacss/generator 0.0.0-dev-20231212181442 → 0.0.0-dev-20231212201947

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
@@ -2713,12 +2713,18 @@ var selectors_d_ts_default = {
2713
2713
  content: "import type { Pseudos } from './csstype'\n\ntype AriaAttributes =\n | '[aria-disabled]'\n | '[aria-hidden]'\n | '[aria-invalid]'\n | '[aria-readonly]'\n | '[aria-required]'\n | '[aria-selected]'\n | '[aria-checked]'\n | '[aria-expanded]'\n | '[aria-pressed]'\n | `[aria-current=${'page' | 'step' | 'location' | 'date' | 'time'}]`\n | '[aria-invalid]'\n | `[aria-sort=${'ascending' | 'descending'}]`\n\ntype DataAttributes =\n | '[data-selected]'\n | '[data-highlighted]'\n | '[data-hover]'\n | '[data-active]'\n | '[data-checked]'\n | '[data-disabled]'\n | '[data-readonly]'\n | '[data-focus]'\n | '[data-focus-visible]'\n | '[data-focus-visible-added]'\n | '[data-invalid]'\n | '[data-pressed]'\n | '[data-expanded]'\n | '[data-grabbed]'\n | '[data-dragged]'\n | '[data-orientation=horizontal]'\n | '[data-orientation=vertical]'\n | '[data-in-range]'\n | '[data-out-of-range]'\n | '[data-placeholder-shown]'\n | `[data-part=${string}]`\n | `[data-attr=${string}]`\n | `[data-placement=${string}]`\n | `[data-theme=${string}]`\n | `[data-size=${string}]`\n | `[data-state=${string}]`\n | '[data-empty]'\n | '[data-loading]'\n | '[data-loaded]'\n | '[data-enter]'\n | '[data-entering]'\n | '[data-exited]'\n | '[data-exiting]'\n\ntype AttributeSelector = `&${Pseudos | DataAttributes | AriaAttributes}`\ntype ParentSelector = `${DataAttributes | AriaAttributes} &`\n\ntype AtRuleType = 'media' | 'layer' | 'container' | 'supports' | 'page'\n\nexport type AnySelector = `${string}&` | `&${string}` | `@${AtRuleType}${string}`\nexport type Selectors = AttributeSelector | ParentSelector\n"
2714
2714
  };
2715
2715
 
2716
+ // src/artifacts/generated/static-css.d.ts.json
2717
+ var static_css_d_ts_default = {
2718
+ content: "interface CssRule {\n /**\n * The css properties to generate utilities for.\n * @example ['margin', 'padding']\n */\n properties: {\n [property: string]: string[]\n }\n /**\n * The css conditions to generate utilities for.\n * @example ['hover', 'focus']\n */\n conditions?: string[]\n /**\n * Whether to generate responsive utilities.\n */\n responsive?: boolean\n}\n\nexport type RecipeRule =\n | '*'\n | ({\n conditions?: string[]\n responsive?: boolean\n } & { [variant: string]: boolean | string[] })\n\nexport interface StaticCssOptions {\n /**\n * The css utility classes to generate.\n */\n css?: CssRule[]\n /**\n * The css recipes to generate.\n */\n recipes?: {\n [recipe: string]: RecipeRule[]\n }\n}\n"
2719
+ };
2720
+
2716
2721
  // src/artifacts/types/generated.ts
2717
2722
  var import_ts_pattern9 = require("ts-pattern");
2718
2723
  function getGeneratedTypes(ctx) {
2719
2724
  const rewriteImports = (code) => code.replace(/import\s+type\s+\{([^}]+)\}\s+from\s+['"]([^'"]+)['"]/g, ctx.file.importType("$1", "$2"));
2720
2725
  return {
2721
2726
  cssType: csstype_d_ts_default.content,
2727
+ static: static_css_d_ts_default.content,
2722
2728
  recipe: rewriteImports(recipe_d_ts_default.content),
2723
2729
  pattern: rewriteImports(pattern_d_ts_default.content.replace("../tokens", "../tokens/index")),
2724
2730
  parts: rewriteImports(parts_d_ts_default.content),
@@ -2999,6 +3005,7 @@ function setupGeneratedTypes(ctx) {
2999
3005
  dir: ctx.paths.types,
3000
3006
  files: [
3001
3007
  { file: ctx.file.extDts("csstype"), code: gen.cssType },
3008
+ { file: ctx.file.extDts("static-css"), code: gen.static },
3002
3009
  { file: ctx.file.extDts("selectors"), code: gen.selectors },
3003
3010
  { file: ctx.file.extDts("composition"), code: gen.composition },
3004
3011
  { file: ctx.file.extDts("recipe"), code: gen.recipe },
package/dist/index.mjs CHANGED
@@ -2682,12 +2682,18 @@ var selectors_d_ts_default = {
2682
2682
  content: "import type { Pseudos } from './csstype'\n\ntype AriaAttributes =\n | '[aria-disabled]'\n | '[aria-hidden]'\n | '[aria-invalid]'\n | '[aria-readonly]'\n | '[aria-required]'\n | '[aria-selected]'\n | '[aria-checked]'\n | '[aria-expanded]'\n | '[aria-pressed]'\n | `[aria-current=${'page' | 'step' | 'location' | 'date' | 'time'}]`\n | '[aria-invalid]'\n | `[aria-sort=${'ascending' | 'descending'}]`\n\ntype DataAttributes =\n | '[data-selected]'\n | '[data-highlighted]'\n | '[data-hover]'\n | '[data-active]'\n | '[data-checked]'\n | '[data-disabled]'\n | '[data-readonly]'\n | '[data-focus]'\n | '[data-focus-visible]'\n | '[data-focus-visible-added]'\n | '[data-invalid]'\n | '[data-pressed]'\n | '[data-expanded]'\n | '[data-grabbed]'\n | '[data-dragged]'\n | '[data-orientation=horizontal]'\n | '[data-orientation=vertical]'\n | '[data-in-range]'\n | '[data-out-of-range]'\n | '[data-placeholder-shown]'\n | `[data-part=${string}]`\n | `[data-attr=${string}]`\n | `[data-placement=${string}]`\n | `[data-theme=${string}]`\n | `[data-size=${string}]`\n | `[data-state=${string}]`\n | '[data-empty]'\n | '[data-loading]'\n | '[data-loaded]'\n | '[data-enter]'\n | '[data-entering]'\n | '[data-exited]'\n | '[data-exiting]'\n\ntype AttributeSelector = `&${Pseudos | DataAttributes | AriaAttributes}`\ntype ParentSelector = `${DataAttributes | AriaAttributes} &`\n\ntype AtRuleType = 'media' | 'layer' | 'container' | 'supports' | 'page'\n\nexport type AnySelector = `${string}&` | `&${string}` | `@${AtRuleType}${string}`\nexport type Selectors = AttributeSelector | ParentSelector\n"
2683
2683
  };
2684
2684
 
2685
+ // src/artifacts/generated/static-css.d.ts.json
2686
+ var static_css_d_ts_default = {
2687
+ content: "interface CssRule {\n /**\n * The css properties to generate utilities for.\n * @example ['margin', 'padding']\n */\n properties: {\n [property: string]: string[]\n }\n /**\n * The css conditions to generate utilities for.\n * @example ['hover', 'focus']\n */\n conditions?: string[]\n /**\n * Whether to generate responsive utilities.\n */\n responsive?: boolean\n}\n\nexport type RecipeRule =\n | '*'\n | ({\n conditions?: string[]\n responsive?: boolean\n } & { [variant: string]: boolean | string[] })\n\nexport interface StaticCssOptions {\n /**\n * The css utility classes to generate.\n */\n css?: CssRule[]\n /**\n * The css recipes to generate.\n */\n recipes?: {\n [recipe: string]: RecipeRule[]\n }\n}\n"
2688
+ };
2689
+
2685
2690
  // src/artifacts/types/generated.ts
2686
2691
  import { match as match9 } from "ts-pattern";
2687
2692
  function getGeneratedTypes(ctx) {
2688
2693
  const rewriteImports = (code) => code.replace(/import\s+type\s+\{([^}]+)\}\s+from\s+['"]([^'"]+)['"]/g, ctx.file.importType("$1", "$2"));
2689
2694
  return {
2690
2695
  cssType: csstype_d_ts_default.content,
2696
+ static: static_css_d_ts_default.content,
2691
2697
  recipe: rewriteImports(recipe_d_ts_default.content),
2692
2698
  pattern: rewriteImports(pattern_d_ts_default.content.replace("../tokens", "../tokens/index")),
2693
2699
  parts: rewriteImports(parts_d_ts_default.content),
@@ -2968,6 +2974,7 @@ function setupGeneratedTypes(ctx) {
2968
2974
  dir: ctx.paths.types,
2969
2975
  files: [
2970
2976
  { file: ctx.file.extDts("csstype"), code: gen.cssType },
2977
+ { file: ctx.file.extDts("static-css"), code: gen.static },
2971
2978
  { file: ctx.file.extDts("selectors"), code: gen.selectors },
2972
2979
  { file: ctx.file.extDts("composition"), code: gen.composition },
2973
2980
  { file: ctx.file.extDts("recipe"), code: gen.recipe },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.0.0-dev-20231212181442",
3
+ "version": "0.0.0-dev-20231212201947",
4
4
  "description": "The css generator for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -32,17 +32,17 @@
32
32
  "pluralize": "8.0.0",
33
33
  "postcss": "^8.4.31",
34
34
  "ts-pattern": "5.0.5",
35
- "@pandacss/core": "0.0.0-dev-20231212181442",
36
- "@pandacss/is-valid-prop": "0.0.0-dev-20231212181442",
37
- "@pandacss/logger": "0.0.0-dev-20231212181442",
38
- "@pandacss/shared": "0.0.0-dev-20231212181442",
39
- "@pandacss/token-dictionary": "0.0.0-dev-20231212181442",
40
- "@pandacss/types": "0.0.0-dev-20231212181442"
35
+ "@pandacss/core": "0.0.0-dev-20231212201947",
36
+ "@pandacss/is-valid-prop": "0.0.0-dev-20231212201947",
37
+ "@pandacss/logger": "0.0.0-dev-20231212201947",
38
+ "@pandacss/shared": "0.0.0-dev-20231212201947",
39
+ "@pandacss/token-dictionary": "0.0.0-dev-20231212201947",
40
+ "@pandacss/types": "0.0.0-dev-20231212201947"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/pluralize": "0.0.33",
44
44
  "hookable": "5.5.3",
45
- "@pandacss/fixture": "0.0.0-dev-20231212181442"
45
+ "@pandacss/fixture": "0.0.0-dev-20231212201947"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "tsup src/index.ts --format=esm,cjs --dts",