@yamada-ui/cli 0.3.0 → 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.
@@ -20,9 +20,10 @@ var __copyProps = (to, from, except, desc) => {
20
20
  };
21
21
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
22
 
23
- // ../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.62_postcss@8.4.23_ts-node@10.9.1_typescript@5.1.3/node_modules/tsup/assets/cjs_shims.js
23
+ // ../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.74_ts-node@10.9.1_typescript@5.1.6/node_modules/tsup/assets/cjs_shims.js
24
24
  var init_cjs_shims = __esm({
25
- "../../node_modules/.pnpm/tsup@6.7.0_@swc+core@1.3.62_postcss@8.4.23_ts-node@10.9.1_typescript@5.1.3/node_modules/tsup/assets/cjs_shims.js"() {
25
+ "../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.74_ts-node@10.9.1_typescript@5.1.6/node_modules/tsup/assets/cjs_shims.js"() {
26
+ "use strict";
26
27
  }
27
28
  });
28
29
 
@@ -81,10 +82,31 @@ var config = [
81
82
  ];
82
83
 
83
84
  // src/command/tokens/create-theme-typings.ts
84
- var defaultColors = ["brand", "primary", "secondary", "warning", "danger", "link"];
85
- var hues = ["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"];
85
+ var defaultColors = [
86
+ "brand",
87
+ "primary",
88
+ "secondary",
89
+ "warning",
90
+ "danger",
91
+ "link"
92
+ ];
93
+ var hues = [
94
+ "50",
95
+ "100",
96
+ "200",
97
+ "300",
98
+ "400",
99
+ "500",
100
+ "600",
101
+ "700",
102
+ "800",
103
+ "900",
104
+ "950"
105
+ ];
86
106
  var printComponent = (components) => `components: { ${Object.entries(components).map(
87
- ([key, unions]) => `${key.match(/^[a-zA-Z0-9\-_]+$/) ? key : `"${key}"`}: { ${print(unions)}}`
107
+ ([key, unions]) => `${key.match(/^[a-zA-Z0-9\-_]+$/) ? key : `"${key}"`}: { ${print(
108
+ unions
109
+ )}}`
88
110
  ).join(`
89
111
  `)} }`;
90
112
  var print = (unions) => Object.entries(unions).sort(([a], [b]) => a.localeCompare(b)).map(
@@ -150,7 +172,9 @@ var extractPaths = (target, maxDepth = 3) => {
150
172
  return [];
151
173
  return Object.entries(target).reduce((array, [key, value]) => {
152
174
  if (isObject(value)) {
153
- extractPaths(value, maxDepth - 1).forEach((nestedKey) => array.push(`${key}.${nestedKey}`));
175
+ extractPaths(value, maxDepth - 1).forEach(
176
+ (nestedKey) => array.push(`${key}.${nestedKey}`)
177
+ );
154
178
  } else {
155
179
  array.push(key);
156
180
  }