@yamada-ui/cli 0.4.1 → 0.6.0

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.
@@ -34,6 +34,7 @@ var config = [
34
34
  { key: "lineHeights" },
35
35
  { key: "radii" },
36
36
  { key: "shadows" },
37
+ { key: "blurs" },
37
38
  { key: "sizes", maxScanDepth: 2 },
38
39
  { key: "spaces", flatMap: (value) => [value, `-${value}`] },
39
40
  { key: "zIndices" },
@@ -20,9 +20,9 @@ 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@7.2.0_@swc+core@1.3.84_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js
23
+ // ../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.92_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js
24
24
  var init_cjs_shims = __esm({
25
- "../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.84_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js"() {
25
+ "../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.92_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js"() {
26
26
  "use strict";
27
27
  }
28
28
  });
@@ -62,6 +62,18 @@ var prettier = async (content) => {
62
62
  }
63
63
  };
64
64
 
65
+ // src/utils/object.ts
66
+ init_cjs_shims();
67
+ var omitObject = (obj, keys) => {
68
+ const result = {};
69
+ Object.keys(obj).forEach((key) => {
70
+ if (keys.includes(key))
71
+ return;
72
+ result[key] = obj[key];
73
+ });
74
+ return result;
75
+ };
76
+
65
77
  // src/command/tokens/config.ts
66
78
  init_cjs_shims();
67
79
  var config = [
@@ -75,6 +87,7 @@ var config = [
75
87
  { key: "lineHeights" },
76
88
  { key: "radii" },
77
89
  { key: "shadows" },
90
+ { key: "blurs" },
78
91
  { key: "sizes", maxScanDepth: 2 },
79
92
  { key: "spaces", flatMap: (value) => [value, `-${value}`] },
80
93
  { key: "zIndices" },
@@ -83,27 +96,7 @@ var config = [
83
96
  ];
84
97
 
85
98
  // src/command/tokens/create-theme-typings.ts
86
- var defaultColors = [
87
- "brand",
88
- "primary",
89
- "secondary",
90
- "warning",
91
- "danger",
92
- "link"
93
- ];
94
- var hues = [
95
- "50",
96
- "100",
97
- "200",
98
- "300",
99
- "400",
100
- "500",
101
- "600",
102
- "700",
103
- "800",
104
- "900",
105
- "950"
106
- ];
99
+ var hues = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
107
100
  var printComponent = (components) => `components: { ${Object.entries(components).map(
108
101
  ([key, unions]) => `${key.match(/^[a-zA-Z0-9\-_]+$/) ? key : `"${key}"`}: { ${print(
109
102
  unions
@@ -129,19 +122,20 @@ var extractTransitions = (theme) => {
129
122
  let transitionProperty = [];
130
123
  let transitionDuration = [];
131
124
  let transitionEasing = [];
132
- const { transitions } = theme;
125
+ const { transitions, semantics } = theme;
133
126
  if (!isObject(transitions))
134
127
  return { transitionProperty, transitionDuration, transitionEasing };
128
+ const { property, duration, easing } = semantics.transitions ?? {};
135
129
  Object.entries(transitions).forEach(([key, value]) => {
136
130
  switch (key) {
137
131
  case "property":
138
- transitionProperty = extractPaths(value);
132
+ transitionProperty = [...extractPaths(value), ...extractPaths(property)];
139
133
  break;
140
134
  case "duration":
141
- transitionDuration = extractPaths(value);
135
+ transitionDuration = [...extractPaths(value), ...extractPaths(duration)];
142
136
  break;
143
137
  case "easing":
144
- transitionEasing = extractPaths(value);
138
+ transitionEasing = [...extractPaths(value), ...extractPaths(easing)];
145
139
  break;
146
140
  default:
147
141
  return;
@@ -153,16 +147,21 @@ var isHue = (value) => {
153
147
  if (!isObject(value))
154
148
  return false;
155
149
  const keys = Object.keys(value);
156
- return hues.every((key) => keys.includes(key));
150
+ return hues.every((key) => keys.includes(key.toString()));
157
151
  };
158
- var isDefaultColor = (key) => defaultColors.includes(key);
159
152
  var extractColorSchemes = (theme) => {
160
- const { colors } = theme;
153
+ const { colors, semantics } = theme;
161
154
  if (!isObject(colors))
162
155
  return [];
163
156
  return Object.entries(colors).reduce((array, [key, value]) => {
164
- if (isHue(value) || isDefaultColor(key))
165
- array.push(key);
157
+ if (!isHue(value))
158
+ return array;
159
+ array.push(key);
160
+ const [semanticKey] = Object.entries(semantics?.colorSchemes ?? {}).find(
161
+ ([, relatedKey]) => key === relatedKey
162
+ ) ?? [];
163
+ if (semanticKey)
164
+ array.push(semanticKey);
166
165
  return array;
167
166
  }, []);
168
167
  };
@@ -202,7 +201,10 @@ var createThemeTypings = async (theme) => {
202
201
  obj[key] = extractPaths(target, maxScanDepth, omitScanKeys).filter(filter).flatMap(flatMap);
203
202
  }
204
203
  if (isObject(theme.semantics)) {
205
- const semanticKeys = extractKeys(theme.semantics, key).filter(filter).flatMap(flatMap);
204
+ const semanticKeys = extractKeys(
205
+ omitObject(theme.semantics, ["colorSchemes"]),
206
+ key
207
+ ).filter(filter).flatMap(flatMap);
206
208
  obj[key].push(...semanticKeys);
207
209
  }
208
210
  return obj;
@@ -33,9 +33,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
- // ../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.84_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.92_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js
37
37
  var init_cjs_shims = __esm({
38
- "../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.84_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js"() {
38
+ "../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.92_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js"() {
39
39
  "use strict";
40
40
  }
41
41
  });
@@ -6446,6 +6446,18 @@ var prettier = async (content) => {
6446
6446
  }
6447
6447
  };
6448
6448
 
6449
+ // src/utils/object.ts
6450
+ init_cjs_shims();
6451
+ var omitObject = (obj, keys) => {
6452
+ const result = {};
6453
+ Object.keys(obj).forEach((key) => {
6454
+ if (keys.includes(key))
6455
+ return;
6456
+ result[key] = obj[key];
6457
+ });
6458
+ return result;
6459
+ };
6460
+
6449
6461
  // src/command/tokens/config.ts
6450
6462
  init_cjs_shims();
6451
6463
  var config = [
@@ -6459,6 +6471,7 @@ var config = [
6459
6471
  { key: "lineHeights" },
6460
6472
  { key: "radii" },
6461
6473
  { key: "shadows" },
6474
+ { key: "blurs" },
6462
6475
  { key: "sizes", maxScanDepth: 2 },
6463
6476
  { key: "spaces", flatMap: (value) => [value, `-${value}`] },
6464
6477
  { key: "zIndices" },
@@ -6467,27 +6480,7 @@ var config = [
6467
6480
  ];
6468
6481
 
6469
6482
  // src/command/tokens/create-theme-typings.ts
6470
- var defaultColors = [
6471
- "brand",
6472
- "primary",
6473
- "secondary",
6474
- "warning",
6475
- "danger",
6476
- "link"
6477
- ];
6478
- var hues = [
6479
- "50",
6480
- "100",
6481
- "200",
6482
- "300",
6483
- "400",
6484
- "500",
6485
- "600",
6486
- "700",
6487
- "800",
6488
- "900",
6489
- "950"
6490
- ];
6483
+ var hues = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
6491
6484
  var printComponent = (components) => `components: { ${Object.entries(components).map(
6492
6485
  ([key, unions]) => `${key.match(/^[a-zA-Z0-9\-_]+$/) ? key : `"${key}"`}: { ${print(
6493
6486
  unions
@@ -6513,19 +6506,20 @@ var extractTransitions = (theme) => {
6513
6506
  let transitionProperty = [];
6514
6507
  let transitionDuration = [];
6515
6508
  let transitionEasing = [];
6516
- const { transitions } = theme;
6509
+ const { transitions, semantics } = theme;
6517
6510
  if (!isObject(transitions))
6518
6511
  return { transitionProperty, transitionDuration, transitionEasing };
6512
+ const { property, duration, easing } = semantics.transitions ?? {};
6519
6513
  Object.entries(transitions).forEach(([key, value]) => {
6520
6514
  switch (key) {
6521
6515
  case "property":
6522
- transitionProperty = extractPaths(value);
6516
+ transitionProperty = [...extractPaths(value), ...extractPaths(property)];
6523
6517
  break;
6524
6518
  case "duration":
6525
- transitionDuration = extractPaths(value);
6519
+ transitionDuration = [...extractPaths(value), ...extractPaths(duration)];
6526
6520
  break;
6527
6521
  case "easing":
6528
- transitionEasing = extractPaths(value);
6522
+ transitionEasing = [...extractPaths(value), ...extractPaths(easing)];
6529
6523
  break;
6530
6524
  default:
6531
6525
  return;
@@ -6537,16 +6531,21 @@ var isHue = (value) => {
6537
6531
  if (!isObject(value))
6538
6532
  return false;
6539
6533
  const keys = Object.keys(value);
6540
- return hues.every((key) => keys.includes(key));
6534
+ return hues.every((key) => keys.includes(key.toString()));
6541
6535
  };
6542
- var isDefaultColor = (key) => defaultColors.includes(key);
6543
6536
  var extractColorSchemes = (theme) => {
6544
- const { colors } = theme;
6537
+ const { colors, semantics } = theme;
6545
6538
  if (!isObject(colors))
6546
6539
  return [];
6547
6540
  return Object.entries(colors).reduce((array, [key, value]) => {
6548
- if (isHue(value) || isDefaultColor(key))
6549
- array.push(key);
6541
+ if (!isHue(value))
6542
+ return array;
6543
+ array.push(key);
6544
+ const [semanticKey] = Object.entries(semantics?.colorSchemes ?? {}).find(
6545
+ ([, relatedKey]) => key === relatedKey
6546
+ ) ?? [];
6547
+ if (semanticKey)
6548
+ array.push(semanticKey);
6550
6549
  return array;
6551
6550
  }, []);
6552
6551
  };
@@ -6586,7 +6585,10 @@ var createThemeTypings = async (theme) => {
6586
6585
  obj[key] = extractPaths(target, maxScanDepth, omitScanKeys).filter(filter).flatMap(flatMap);
6587
6586
  }
6588
6587
  if (isObject(theme.semantics)) {
6589
- const semanticKeys = extractKeys(theme.semantics, key).filter(filter).flatMap(flatMap);
6588
+ const semanticKeys = extractKeys(
6589
+ omitObject(theme.semantics, ["colorSchemes"]),
6590
+ key
6591
+ ).filter(filter).flatMap(flatMap);
6590
6592
  obj[key].push(...semanticKeys);
6591
6593
  }
6592
6594
  return obj;
package/dist/index.js CHANGED
@@ -33,10 +33,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
- // ../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.84_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.92_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js
37
37
  var getImportMetaUrl, importMetaUrl;
38
38
  var init_cjs_shims = __esm({
39
- "../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.84_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js"() {
39
+ "../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.92_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js"() {
40
40
  "use strict";
41
41
  getImportMetaUrl = () => typeof document === "undefined" ? new URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
42
42
  importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
@@ -18735,7 +18735,7 @@ var import_cli_welcome = __toESM(require("cli-welcome"));
18735
18735
  // package.json
18736
18736
  var package_default = {
18737
18737
  name: "@yamada-ui/cli",
18738
- version: "0.4.1",
18738
+ version: "0.6.0",
18739
18739
  description: "Generate theme tokens for autocomplete",
18740
18740
  keywords: [
18741
18741
  "theme",
@@ -25897,6 +25897,18 @@ var prettier = async (content) => {
25897
25897
  }
25898
25898
  };
25899
25899
 
25900
+ // src/utils/object.ts
25901
+ init_cjs_shims();
25902
+ var omitObject = (obj, keys) => {
25903
+ const result = {};
25904
+ Object.keys(obj).forEach((key) => {
25905
+ if (keys.includes(key))
25906
+ return;
25907
+ result[key] = obj[key];
25908
+ });
25909
+ return result;
25910
+ };
25911
+
25900
25912
  // src/command/tokens/config.ts
25901
25913
  init_cjs_shims();
25902
25914
  var config = [
@@ -25910,6 +25922,7 @@ var config = [
25910
25922
  { key: "lineHeights" },
25911
25923
  { key: "radii" },
25912
25924
  { key: "shadows" },
25925
+ { key: "blurs" },
25913
25926
  { key: "sizes", maxScanDepth: 2 },
25914
25927
  { key: "spaces", flatMap: (value) => [value, `-${value}`] },
25915
25928
  { key: "zIndices" },
@@ -25918,27 +25931,7 @@ var config = [
25918
25931
  ];
25919
25932
 
25920
25933
  // src/command/tokens/create-theme-typings.ts
25921
- var defaultColors = [
25922
- "brand",
25923
- "primary",
25924
- "secondary",
25925
- "warning",
25926
- "danger",
25927
- "link"
25928
- ];
25929
- var hues = [
25930
- "50",
25931
- "100",
25932
- "200",
25933
- "300",
25934
- "400",
25935
- "500",
25936
- "600",
25937
- "700",
25938
- "800",
25939
- "900",
25940
- "950"
25941
- ];
25934
+ var hues = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
25942
25935
  var printComponent = (components) => `components: { ${Object.entries(components).map(
25943
25936
  ([key, unions]) => `${key.match(/^[a-zA-Z0-9\-_]+$/) ? key : `"${key}"`}: { ${print(
25944
25937
  unions
@@ -25964,19 +25957,20 @@ var extractTransitions = (theme) => {
25964
25957
  let transitionProperty = [];
25965
25958
  let transitionDuration = [];
25966
25959
  let transitionEasing = [];
25967
- const { transitions } = theme;
25960
+ const { transitions, semantics } = theme;
25968
25961
  if (!isObject(transitions))
25969
25962
  return { transitionProperty, transitionDuration, transitionEasing };
25963
+ const { property, duration, easing } = semantics.transitions ?? {};
25970
25964
  Object.entries(transitions).forEach(([key, value]) => {
25971
25965
  switch (key) {
25972
25966
  case "property":
25973
- transitionProperty = extractPaths(value);
25967
+ transitionProperty = [...extractPaths(value), ...extractPaths(property)];
25974
25968
  break;
25975
25969
  case "duration":
25976
- transitionDuration = extractPaths(value);
25970
+ transitionDuration = [...extractPaths(value), ...extractPaths(duration)];
25977
25971
  break;
25978
25972
  case "easing":
25979
- transitionEasing = extractPaths(value);
25973
+ transitionEasing = [...extractPaths(value), ...extractPaths(easing)];
25980
25974
  break;
25981
25975
  default:
25982
25976
  return;
@@ -25988,16 +25982,21 @@ var isHue = (value) => {
25988
25982
  if (!isObject(value))
25989
25983
  return false;
25990
25984
  const keys = Object.keys(value);
25991
- return hues.every((key) => keys.includes(key));
25985
+ return hues.every((key) => keys.includes(key.toString()));
25992
25986
  };
25993
- var isDefaultColor = (key) => defaultColors.includes(key);
25994
25987
  var extractColorSchemes = (theme) => {
25995
- const { colors } = theme;
25988
+ const { colors, semantics } = theme;
25996
25989
  if (!isObject(colors))
25997
25990
  return [];
25998
25991
  return Object.entries(colors).reduce((array, [key, value]) => {
25999
- if (isHue(value) || isDefaultColor(key))
26000
- array.push(key);
25992
+ if (!isHue(value))
25993
+ return array;
25994
+ array.push(key);
25995
+ const [semanticKey] = Object.entries(semantics?.colorSchemes ?? {}).find(
25996
+ ([, relatedKey]) => key === relatedKey
25997
+ ) ?? [];
25998
+ if (semanticKey)
25999
+ array.push(semanticKey);
26001
26000
  return array;
26002
26001
  }, []);
26003
26002
  };
@@ -26037,7 +26036,10 @@ var createThemeTypings = async (theme) => {
26037
26036
  obj[key] = extractPaths(target, maxScanDepth, omitScanKeys).filter(filter).flatMap(flatMap);
26038
26037
  }
26039
26038
  if (isObject(theme.semantics)) {
26040
- const semanticKeys = extractKeys(theme.semantics, key).filter(filter).flatMap(flatMap);
26039
+ const semanticKeys = extractKeys(
26040
+ omitObject(theme.semantics, ["colorSchemes"]),
26041
+ key
26042
+ ).filter(filter).flatMap(flatMap);
26041
26043
  obj[key].push(...semanticKeys);
26042
26044
  }
26043
26045
  return obj;
package/dist/utils/cli.js CHANGED
@@ -33,10 +33,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
- // ../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.84_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.92_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js
37
37
  var getImportMetaUrl, importMetaUrl;
38
38
  var init_cjs_shims = __esm({
39
- "../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.84_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js"() {
39
+ "../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.92_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js"() {
40
40
  "use strict";
41
41
  getImportMetaUrl = () => typeof document === "undefined" ? new URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
42
42
  importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
@@ -12631,7 +12631,7 @@ var import_cli_welcome = __toESM(require("cli-welcome"));
12631
12631
  // package.json
12632
12632
  var package_default = {
12633
12633
  name: "@yamada-ui/cli",
12634
- version: "0.4.1",
12634
+ version: "0.6.0",
12635
12635
  description: "Generate theme tokens for autocomplete",
12636
12636
  keywords: [
12637
12637
  "theme",
@@ -33,10 +33,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
- // ../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.84_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.92_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js
37
37
  var getImportMetaUrl, importMetaUrl;
38
38
  var init_cjs_shims = __esm({
39
- "../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.84_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js"() {
39
+ "../../node_modules/.pnpm/tsup@7.2.0_@swc+core@1.3.92_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/cjs_shims.js"() {
40
40
  "use strict";
41
41
  getImportMetaUrl = () => typeof document === "undefined" ? new URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
42
42
  importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
@@ -12630,6 +12630,7 @@ __export(utils_exports, {
12630
12630
  isObject: () => isObject,
12631
12631
  isString: () => isString,
12632
12632
  isUndefined: () => isUndefined,
12633
+ omitObject: () => omitObject,
12633
12634
  prettier: () => prettier
12634
12635
  });
12635
12636
  module.exports = __toCommonJS(utils_exports);
@@ -12656,7 +12657,7 @@ var import_cli_welcome = __toESM(require("cli-welcome"));
12656
12657
  // package.json
12657
12658
  var package_default = {
12658
12659
  name: "@yamada-ui/cli",
12659
- version: "0.4.1",
12660
+ version: "0.6.0",
12660
12661
  description: "Generate theme tokens for autocomplete",
12661
12662
  keywords: [
12662
12663
  "theme",
@@ -20336,6 +20337,18 @@ var prettier = async (content) => {
20336
20337
  return content;
20337
20338
  }
20338
20339
  };
20340
+
20341
+ // src/utils/object.ts
20342
+ init_cjs_shims();
20343
+ var omitObject = (obj, keys) => {
20344
+ const result = {};
20345
+ Object.keys(obj).forEach((key) => {
20346
+ if (keys.includes(key))
20347
+ return;
20348
+ result[key] = obj[key];
20349
+ });
20350
+ return result;
20351
+ };
20339
20352
  // Annotate the CommonJS export names for ESM import in node:
20340
20353
  0 && (module.exports = {
20341
20354
  initCLI,
@@ -20348,6 +20361,7 @@ var prettier = async (content) => {
20348
20361
  isObject,
20349
20362
  isString,
20350
20363
  isUndefined,
20364
+ omitObject,
20351
20365
  prettier
20352
20366
  });
20353
20367
  /*! Bundled license information:
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/utils/object.ts
21
+ var object_exports = {};
22
+ __export(object_exports, {
23
+ omitObject: () => omitObject
24
+ });
25
+ module.exports = __toCommonJS(object_exports);
26
+ var omitObject = (obj, keys) => {
27
+ const result = {};
28
+ Object.keys(obj).forEach((key) => {
29
+ if (keys.includes(key))
30
+ return;
31
+ result[key] = obj[key];
32
+ });
33
+ return result;
34
+ };
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ omitObject
38
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/cli",
3
- "version": "0.4.1",
3
+ "version": "0.6.0",
4
4
  "description": "Generate theme tokens for autocomplete",
5
5
  "keywords": [
6
6
  "theme",