@yamada-ui/cli 1.2.4 → 2.0.0-dev-20250626070331

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.
@@ -1,77 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/command/tokens/resolve-output-path.ts
31
- var resolve_output_path_exports = {};
32
- __export(resolve_output_path_exports, {
33
- resolveOutputPath: () => resolveOutputPath,
34
- themePath: () => themePath
35
- });
36
- module.exports = __toCommonJS(resolve_output_path_exports);
37
- var import_glob = require("glob");
38
- var import_path = __toESM(require("path"));
39
- var themePath = [
40
- "node_modules",
41
- "@yamada-ui",
42
- "core",
43
- "dist",
44
- "generated-theme.types.d.ts"
45
- ];
46
- var resolveThemePath = async () => {
47
- const paths = [
48
- import_path.default.join("node_modules", ".pnpm", "@yamada-ui+core@*", ...themePath),
49
- import_path.default.join(...themePath),
50
- import_path.default.posix.join("node_modules", ".pnpm", "@yamada-ui+core@*", ...themePath),
51
- import_path.default.posix.join(...themePath)
52
- ];
53
- const triedPaths = await Promise.all(
54
- paths.map(async (possiblePath) => {
55
- const paths2 = await (0, import_glob.glob)(possiblePath);
56
- if (paths2.length) return paths2[0];
57
- return "";
58
- })
59
- );
60
- const resolvedPath = triedPaths.find(Boolean);
61
- if (!resolvedPath) return;
62
- return import_path.default.resolve(process.cwd(), resolvedPath);
63
- };
64
- var resolveOutputPath = async (outPath) => {
65
- if (outPath) return import_path.default.resolve(process.cwd(), outPath);
66
- const themePath2 = await resolveThemePath();
67
- if (!themePath2)
68
- throw new Error(
69
- "Could not find @yamada-ui/core in node_modules. Please provide `--out` parameter."
70
- );
71
- return themePath2;
72
- };
73
- // Annotate the CommonJS export names for ESM import in node:
74
- 0 && (module.exports = {
75
- resolveOutputPath,
76
- themePath
77
- });
@@ -1,54 +0,0 @@
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/assertion.ts
21
- var assertion_exports = {};
22
- __export(assertion_exports, {
23
- isArray: () => isArray,
24
- isFunction: () => isFunction,
25
- isNotNumber: () => isNotNumber,
26
- isNull: () => isNull,
27
- isNumber: () => isNumber,
28
- isNumeric: () => isNumeric,
29
- isObject: () => isObject,
30
- isString: () => isString,
31
- isUndefined: () => isUndefined
32
- });
33
- module.exports = __toCommonJS(assertion_exports);
34
- var isNumber = (value) => typeof value === "number";
35
- var isNotNumber = (value) => typeof value !== "number" || Number.isNaN(value) || !Number.isFinite(value);
36
- var isNumeric = (value) => value != null && parseFloat(value.toString()) - parseFloat(value.toString()) + 1 >= 0;
37
- var isString = (value) => Object.prototype.toString.call(value) === "[object String]";
38
- var isUndefined = (value) => typeof value === "undefined";
39
- var isNull = (value) => value === null;
40
- var isObject = (obj) => obj !== null && (typeof obj === "object" || typeof obj === "function") && !isArray(obj);
41
- var isArray = (value) => Array.isArray(value);
42
- var isFunction = (value) => typeof value === "function";
43
- // Annotate the CommonJS export names for ESM import in node:
44
- 0 && (module.exports = {
45
- isArray,
46
- isFunction,
47
- isNotNumber,
48
- isNull,
49
- isNumber,
50
- isNumeric,
51
- isObject,
52
- isString,
53
- isUndefined
54
- });