@yamada-ui/cli 0.6.0 → 0.7.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.
|
@@ -35,6 +35,7 @@ __export(create_theme_typings_exports, {
|
|
|
35
35
|
extractComponents: () => extractComponents,
|
|
36
36
|
extractKeys: () => extractKeys,
|
|
37
37
|
extractPaths: () => extractPaths,
|
|
38
|
+
extractThemeSchemes: () => extractThemeSchemes,
|
|
38
39
|
extractTransitions: () => extractTransitions,
|
|
39
40
|
print: () => print,
|
|
40
41
|
printComponent: () => printComponent
|
|
@@ -165,6 +166,12 @@ var extractColorSchemes = (theme) => {
|
|
|
165
166
|
return array;
|
|
166
167
|
}, []);
|
|
167
168
|
};
|
|
169
|
+
var extractThemeSchemes = (theme) => {
|
|
170
|
+
const { themeSchemes } = theme;
|
|
171
|
+
if (!isObject(themeSchemes))
|
|
172
|
+
return ["base"];
|
|
173
|
+
return ["base", ...Object.keys(themeSchemes)];
|
|
174
|
+
};
|
|
168
175
|
var extractPaths = (target, maxDepth = 3, omitKeys = []) => {
|
|
169
176
|
if (!isObject(target) && !isArray(target) || !maxDepth)
|
|
170
177
|
return [];
|
|
@@ -214,6 +221,7 @@ var createThemeTypings = async (theme) => {
|
|
|
214
221
|
const textStyles = extractKeys(theme, "styles.textStyles");
|
|
215
222
|
const layerStyles = extractKeys(theme, "styles.layerStyles");
|
|
216
223
|
const colorSchemes = extractColorSchemes(theme);
|
|
224
|
+
const themeSchemes = extractThemeSchemes(theme);
|
|
217
225
|
const { transitionProperty, transitionDuration, transitionEasing } = extractTransitions(theme);
|
|
218
226
|
const componentTypes = extractComponents(theme);
|
|
219
227
|
return prettier(
|
|
@@ -225,6 +233,7 @@ export interface GeneratedTheme extends UITheme { ${print(
|
|
|
225
233
|
textStyles,
|
|
226
234
|
layerStyles,
|
|
227
235
|
colorSchemes,
|
|
236
|
+
themeSchemes,
|
|
228
237
|
transitionProperty,
|
|
229
238
|
transitionDuration,
|
|
230
239
|
transitionEasing
|
|
@@ -239,6 +248,7 @@ export interface GeneratedTheme extends UITheme { ${print(
|
|
|
239
248
|
extractComponents,
|
|
240
249
|
extractKeys,
|
|
241
250
|
extractPaths,
|
|
251
|
+
extractThemeSchemes,
|
|
242
252
|
extractTransitions,
|
|
243
253
|
print,
|
|
244
254
|
printComponent
|
|
@@ -6549,6 +6549,12 @@ var extractColorSchemes = (theme) => {
|
|
|
6549
6549
|
return array;
|
|
6550
6550
|
}, []);
|
|
6551
6551
|
};
|
|
6552
|
+
var extractThemeSchemes = (theme) => {
|
|
6553
|
+
const { themeSchemes } = theme;
|
|
6554
|
+
if (!isObject(themeSchemes))
|
|
6555
|
+
return ["base"];
|
|
6556
|
+
return ["base", ...Object.keys(themeSchemes)];
|
|
6557
|
+
};
|
|
6552
6558
|
var extractPaths = (target, maxDepth = 3, omitKeys = []) => {
|
|
6553
6559
|
if (!isObject(target) && !isArray(target) || !maxDepth)
|
|
6554
6560
|
return [];
|
|
@@ -6598,6 +6604,7 @@ var createThemeTypings = async (theme) => {
|
|
|
6598
6604
|
const textStyles = extractKeys(theme, "styles.textStyles");
|
|
6599
6605
|
const layerStyles = extractKeys(theme, "styles.layerStyles");
|
|
6600
6606
|
const colorSchemes = extractColorSchemes(theme);
|
|
6607
|
+
const themeSchemes = extractThemeSchemes(theme);
|
|
6601
6608
|
const { transitionProperty, transitionDuration, transitionEasing } = extractTransitions(theme);
|
|
6602
6609
|
const componentTypes = extractComponents(theme);
|
|
6603
6610
|
return prettier(
|
|
@@ -6609,6 +6616,7 @@ export interface GeneratedTheme extends UITheme { ${print(
|
|
|
6609
6616
|
textStyles,
|
|
6610
6617
|
layerStyles,
|
|
6611
6618
|
colorSchemes,
|
|
6619
|
+
themeSchemes,
|
|
6612
6620
|
transitionProperty,
|
|
6613
6621
|
transitionDuration,
|
|
6614
6622
|
transitionEasing
|
package/dist/index.js
CHANGED
|
@@ -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.
|
|
18738
|
+
version: "0.7.0",
|
|
18739
18739
|
description: "Generate theme tokens for autocomplete",
|
|
18740
18740
|
keywords: [
|
|
18741
18741
|
"theme",
|
|
@@ -26000,6 +26000,12 @@ var extractColorSchemes = (theme) => {
|
|
|
26000
26000
|
return array;
|
|
26001
26001
|
}, []);
|
|
26002
26002
|
};
|
|
26003
|
+
var extractThemeSchemes = (theme) => {
|
|
26004
|
+
const { themeSchemes } = theme;
|
|
26005
|
+
if (!isObject(themeSchemes))
|
|
26006
|
+
return ["base"];
|
|
26007
|
+
return ["base", ...Object.keys(themeSchemes)];
|
|
26008
|
+
};
|
|
26003
26009
|
var extractPaths = (target, maxDepth = 3, omitKeys = []) => {
|
|
26004
26010
|
if (!isObject(target) && !isArray(target) || !maxDepth)
|
|
26005
26011
|
return [];
|
|
@@ -26049,6 +26055,7 @@ var createThemeTypings = async (theme) => {
|
|
|
26049
26055
|
const textStyles = extractKeys(theme, "styles.textStyles");
|
|
26050
26056
|
const layerStyles = extractKeys(theme, "styles.layerStyles");
|
|
26051
26057
|
const colorSchemes = extractColorSchemes(theme);
|
|
26058
|
+
const themeSchemes = extractThemeSchemes(theme);
|
|
26052
26059
|
const { transitionProperty, transitionDuration, transitionEasing } = extractTransitions(theme);
|
|
26053
26060
|
const componentTypes = extractComponents(theme);
|
|
26054
26061
|
return prettier(
|
|
@@ -26060,6 +26067,7 @@ export interface GeneratedTheme extends UITheme { ${print(
|
|
|
26060
26067
|
textStyles,
|
|
26061
26068
|
layerStyles,
|
|
26062
26069
|
colorSchemes,
|
|
26070
|
+
themeSchemes,
|
|
26063
26071
|
transitionProperty,
|
|
26064
26072
|
transitionDuration,
|
|
26065
26073
|
transitionEasing
|
package/dist/utils/cli.js
CHANGED
|
@@ -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.
|
|
12634
|
+
version: "0.7.0",
|
|
12635
12635
|
description: "Generate theme tokens for autocomplete",
|
|
12636
12636
|
keywords: [
|
|
12637
12637
|
"theme",
|
package/dist/utils/index.js
CHANGED
|
@@ -12657,7 +12657,7 @@ var import_cli_welcome = __toESM(require("cli-welcome"));
|
|
|
12657
12657
|
// package.json
|
|
12658
12658
|
var package_default = {
|
|
12659
12659
|
name: "@yamada-ui/cli",
|
|
12660
|
-
version: "0.
|
|
12660
|
+
version: "0.7.0",
|
|
12661
12661
|
description: "Generate theme tokens for autocomplete",
|
|
12662
12662
|
keywords: [
|
|
12663
12663
|
"theme",
|