@flipova/foundation 1.13.0 → 2.0.4
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/CHANGELOG.md +181 -0
- package/README.md +53 -178
- package/components/ui/accordion/ANIMATION_CUSTOMIZATION.md +162 -0
- package/components/ui/accordion/AccordionAnimatedHeight.tsx +56 -0
- package/components/ui/accordion/AccordionAnimatedIcon.tsx +41 -0
- package/components/ui/accordion/AnimatedHeight.tsx +56 -0
- package/components/ui/accordion/AnimatedIcon.tsx +41 -0
- package/components/ui/accordion/MIGRATION_SUMMARY.md +250 -0
- package/components/ui/accordion/USAGE_EXAMPLE.tsx +179 -0
- package/components/ui/accordion/animation-config.ts +32 -0
- package/components/ui/accordion/index.tsx +253 -0
- package/components/ui/actionsheet/index.tsx +511 -0
- package/components/ui/alert/index.tsx +158 -0
- package/components/ui/alert-dialog/index.tsx +254 -0
- package/components/ui/avatar/index.tsx +139 -0
- package/components/ui/badge/index.tsx +163 -0
- package/components/ui/bottomsheet/index.tsx +477 -0
- package/components/ui/box/index.tsx +19 -0
- package/components/ui/box/index.web.tsx +19 -0
- package/components/ui/box/styles.tsx +10 -0
- package/components/ui/button/index.tsx +264 -0
- package/components/ui/calendar/creator.tsx +366 -0
- package/components/ui/calendar/index.tsx +462 -0
- package/components/ui/calendar/styles.tsx +140 -0
- package/components/ui/card/index.tsx +23 -0
- package/components/ui/card/index.web.tsx +26 -0
- package/components/ui/card/styles.tsx +16 -0
- package/components/ui/center/index.tsx +22 -0
- package/components/ui/center/index.web.tsx +20 -0
- package/components/ui/center/styles.tsx +8 -0
- package/components/ui/checkbox/index.tsx +184 -0
- package/components/ui/date-time-picker/creator.tsx +109 -0
- package/components/ui/date-time-picker/index.tsx +585 -0
- package/components/ui/date-time-picker/index.web.tsx +217 -0
- package/components/ui/date-time-picker/styles.tsx +56 -0
- package/components/ui/divider/index.tsx +40 -0
- package/components/ui/drawer/index.tsx +362 -0
- package/components/ui/fab/index.tsx +215 -0
- package/components/ui/flat-list/index.tsx +21 -0
- package/components/ui/form-control/index.tsx +352 -0
- package/components/ui/gluestack-ui-provider/config.ts +72 -0
- package/components/ui/gluestack-ui-provider/index.tsx +47 -0
- package/components/ui/gluestack-ui-provider/index.web.tsx +96 -0
- package/components/ui/gluestack-ui-provider/script.ts +19 -0
- package/components/ui/gluestack-ui-provider/tokens.d.ts +17 -0
- package/components/ui/gluestack-ui-provider/tokens.js +188 -0
- package/components/ui/gluestack-ui-provider/useGluestackColors.ts +82 -0
- package/components/ui/grid/index.tsx +283 -0
- package/components/ui/grid/index.web.tsx +66 -0
- package/components/ui/grid/styles.tsx +15 -0
- package/components/ui/heading/index.tsx +220 -0
- package/components/ui/heading/index.web.tsx +202 -0
- package/components/ui/heading/styles.tsx +43 -0
- package/components/ui/hstack/index.tsx +27 -0
- package/components/ui/hstack/index.web.tsx +26 -0
- package/components/ui/hstack/styles.tsx +25 -0
- package/components/ui/icon/index.tsx +1588 -0
- package/components/ui/icon/index.web.tsx +1573 -0
- package/components/ui/image/index.tsx +48 -0
- package/components/ui/image-background/index.tsx +25 -0
- package/components/ui/image-viewer/index.tsx +743 -0
- package/components/ui/image-viewer/index.web.tsx +302 -0
- package/components/ui/index.ts +58 -0
- package/components/ui/input/index.tsx +125 -0
- package/components/ui/input-accessory-view/index.tsx +2 -0
- package/components/ui/keyboard-avoiding-view/index.tsx +2 -0
- package/components/ui/link/index.tsx +102 -0
- package/components/ui/liquid-glass/index.tsx +74 -0
- package/components/ui/menu/index.tsx +186 -0
- package/components/ui/modal/index.tsx +237 -0
- package/components/ui/popover/index.tsx +272 -0
- package/components/ui/portal/index.tsx +17 -0
- package/components/ui/pressable/index.tsx +39 -0
- package/components/ui/progress/index.tsx +83 -0
- package/components/ui/radio/index.tsx +217 -0
- package/components/ui/refresh-control/index.tsx +2 -0
- package/components/ui/safe-area-view/index.tsx +2 -0
- package/components/ui/scroll-view/index.tsx +2 -0
- package/components/ui/section-list/index.tsx +2 -0
- package/components/ui/select/index.tsx +277 -0
- package/components/ui/select/select-actionsheet.tsx +562 -0
- package/components/ui/skeleton/index.tsx +105 -0
- package/components/ui/skeleton/index.web.tsx +103 -0
- package/components/ui/skeleton/styles.tsx +35 -0
- package/components/ui/slider/index.tsx +181 -0
- package/components/ui/spinner/index.tsx +40 -0
- package/components/ui/status-bar/index.tsx +2 -0
- package/components/ui/switch/index.tsx +41 -0
- package/components/ui/table/index.tsx +210 -0
- package/components/ui/table/index.web.tsx +157 -0
- package/components/ui/table/styles.tsx +44 -0
- package/components/ui/tabs/TabsAnimatedIndicator.tsx +160 -0
- package/components/ui/tabs/animation-config.ts +3 -0
- package/components/ui/tabs/creator.tsx +206 -0
- package/components/ui/tabs/index.tsx +484 -0
- package/components/ui/text/index.tsx +48 -0
- package/components/ui/text/index.web.tsx +45 -0
- package/components/ui/text/styles.tsx +47 -0
- package/components/ui/textarea/index.tsx +94 -0
- package/components/ui/toast/index.tsx +252 -0
- package/components/ui/tooltip/index.tsx +131 -0
- package/components/ui/view/index.tsx +2 -0
- package/components/ui/virtualized-list/index.tsx +2 -0
- package/components/ui/vstack/index.tsx +28 -0
- package/components/ui/vstack/index.web.tsx +27 -0
- package/components/ui/vstack/styles.tsx +25 -0
- package/design/canonical.index.txt +53 -0
- package/design/documentation.xml +519 -0
- package/design/manifest.xml +90 -0
- package/design/schema.xsd +639 -0
- package/design/themes.xml +204 -0
- package/design/tokens.xml +510 -0
- package/design/tools/design.js +165 -0
- package/design/tools/npm.js +65 -0
- package/design/tools/requirements.txt +35 -0
- package/design/tools/sources/.checker/__init__.py +81 -0
- package/design/tools/sources/.checker/checks.py +198 -0
- package/design/tools/sources/.checker/cli.py +154 -0
- package/design/tools/sources/.checker/io.py +242 -0
- package/design/tools/sources/.checker/model.py +144 -0
- package/design/tools/sources/.checker/registry.py +115 -0
- package/design/tools/sources/.checker/report.py +21 -0
- package/design/tools/sources/.docgen/__init__.py +45 -0
- package/design/tools/sources/.docgen/cli.py +101 -0
- package/design/tools/sources/.docgen/model.py +147 -0
- package/design/tools/sources/.docgen/reference.py +97 -0
- package/design/tools/sources/.docgen/site.py +145 -0
- package/design/tools/sources/.docgen/xsddoc.py +329 -0
- package/design/tools/sources/.generate/__init__.py +35 -0
- package/design/tools/sources/.generate/cli.py +76 -0
- package/design/tools/sources/.generate/common.py +33 -0
- package/design/tools/sources/.generate/config.py +119 -0
- package/design/tools/sources/.generate/model.py +51 -0
- package/design/tools/sources/.generate/tokens.py +141 -0
- package/design/tools/sources/.linter/__init__.py +9 -0
- package/design/tools/sources/.linter/cli.py +44 -0
- package/design/tools/sources/.linter/discovery.py +30 -0
- package/design/tools/sources/.linter/errors.py +45 -0
- package/design/tools/sources/.linter/linter.py +68 -0
- package/design/tools/sources/.xmleditor/__init__.py +74 -0
- package/design/tools/sources/.xmleditor/blocks.py +185 -0
- package/design/tools/sources/.xmleditor/cli.py +141 -0
- package/design/tools/sources/.xmleditor/editor.py +906 -0
- package/design/tools/sources/.xmleditor/model.py +708 -0
- package/design/tools/sources/.xmleditor/widgets.py +1832 -0
- package/design/tools/sources/.xmleditor/xsdmodel.py +753 -0
- package/design/tools/sources/checker.py +55 -0
- package/design/tools/sources/docgen.py +66 -0
- package/design/tools/sources/generate.py +48 -0
- package/design/tools/sources/linter.py +54 -0
- package/design/tools/sources/ruff.toml +12 -0
- package/design/tools/sources/xmleditor.py +62 -0
- package/design/tools/unix/_venv_python.sh +16 -0
- package/design/tools/unix/check.sh +13 -0
- package/design/tools/unix/doc.sh +14 -0
- package/design/tools/unix/gen.sh +14 -0
- package/design/tools/unix/lint.sh +10 -0
- package/design/tools/unix/run.sh +20 -0
- package/design/tools/unix/verify.sh +12 -0
- package/design/tools/unix/xmledit.sh +12 -0
- package/design/tools/windows/check.cmd +12 -0
- package/design/tools/windows/doc.cmd +12 -0
- package/design/tools/windows/gen.cmd +11 -0
- package/design/tools/windows/lint.cmd +9 -0
- package/design/tools/windows/run.cmd +26 -0
- package/design/tools/windows/verify.cmd +10 -0
- package/design/tools/windows/xmledit.cmd +10 -0
- package/dist/chunk-LV4UIEQN.js +9730 -0
- package/dist/chunk-LV4UIEQN.js.map +1 -0
- package/dist/chunk-WNVU3BM2.mjs +9401 -0
- package/dist/chunk-WNVU3BM2.mjs.map +1 -0
- package/dist/index.d.mts +40 -9
- package/dist/index.d.ts +40 -9
- package/dist/index.js +726 -414
- package/dist/index.mjs +1 -5
- package/dist/ui/index.d.mts +6931 -3070
- package/dist/ui/index.d.ts +6931 -3070
- package/dist/ui/index.js +779 -352
- package/dist/ui/index.mjs +1 -2
- package/package.json +66 -142
- package/dist/chunk-2XORADW6.js +0 -24552
- package/dist/chunk-2XORADW6.js.map +0 -1
- package/dist/chunk-52BHHF5M.js +0 -46
- package/dist/chunk-52BHHF5M.js.map +0 -1
- package/dist/chunk-5647JY7Z.mjs +0 -100
- package/dist/chunk-5647JY7Z.mjs.map +0 -1
- package/dist/chunk-5N5HC4ZA.mjs +0 -3
- package/dist/chunk-5N5HC4ZA.mjs.map +0 -1
- package/dist/chunk-7QFZMGL6.js +0 -8583
- package/dist/chunk-7QFZMGL6.js.map +0 -1
- package/dist/chunk-ASZEP37D.js +0 -423
- package/dist/chunk-ASZEP37D.js.map +0 -1
- package/dist/chunk-BH5SU2JQ.mjs +0 -8282
- package/dist/chunk-BH5SU2JQ.mjs.map +0 -1
- package/dist/chunk-BO65GO53.mjs +0 -422
- package/dist/chunk-BO65GO53.mjs.map +0 -1
- package/dist/chunk-BSVXX52E.mjs +0 -413
- package/dist/chunk-BSVXX52E.mjs.map +0 -1
- package/dist/chunk-DNV5UBNF.mjs +0 -3
- package/dist/chunk-DNV5UBNF.mjs.map +0 -1
- package/dist/chunk-EDTAMUO2.js +0 -8310
- package/dist/chunk-EDTAMUO2.js.map +0 -1
- package/dist/chunk-IJTI6EX4.js +0 -4
- package/dist/chunk-IJTI6EX4.js.map +0 -1
- package/dist/chunk-M3YLASM2.js +0 -428
- package/dist/chunk-M3YLASM2.js.map +0 -1
- package/dist/chunk-OXKOGLXE.js +0 -4
- package/dist/chunk-OXKOGLXE.js.map +0 -1
- package/dist/chunk-RQXQK3ZO.mjs +0 -8486
- package/dist/chunk-RQXQK3ZO.mjs.map +0 -1
- package/dist/chunk-SR25V4EA.mjs +0 -40
- package/dist/chunk-SR25V4EA.mjs.map +0 -1
- package/dist/chunk-UB34WFEQ.js +0 -106
- package/dist/chunk-UB34WFEQ.js.map +0 -1
- package/dist/chunk-ZBRWXKDF.mjs +0 -24431
- package/dist/chunk-ZBRWXKDF.mjs.map +0 -1
- package/dist/cli/ds.d.mts +0 -1
- package/dist/cli/ds.d.ts +0 -1
- package/dist/cli/ds.js +0 -602
- package/dist/cli/ds.js.map +0 -1
- package/dist/cli/ds.mjs +0 -579
- package/dist/cli/ds.mjs.map +0 -1
- package/dist/cli/flipova.d.mts +0 -1
- package/dist/cli/flipova.d.ts +0 -1
- package/dist/cli/flipova.js +0 -161
- package/dist/cli/flipova.js.map +0 -1
- package/dist/cli/flipova.mjs +0 -154
- package/dist/cli/flipova.mjs.map +0 -1
- package/dist/config/index.d.mts +0 -123
- package/dist/config/index.d.ts +0 -123
- package/dist/config/index.js +0 -28
- package/dist/config/index.js.map +0 -1
- package/dist/config/index.mjs +0 -3
- package/dist/config/index.mjs.map +0 -1
- package/dist/index-CuaJA3gM.d.mts +0 -78
- package/dist/index-CuaJA3gM.d.ts +0 -78
- package/dist/registry/index.d.mts +0 -10160
- package/dist/registry/index.d.ts +0 -10160
- package/dist/registry/index.js +0 -392
- package/dist/registry/index.js.map +0 -1
- package/dist/registry/index.mjs +0 -3
- package/dist/registry/index.mjs.map +0 -1
- package/dist/theme/index.d.mts +0 -109
- package/dist/theme/index.d.ts +0 -109
- package/dist/theme/index.js +0 -28
- package/dist/theme/index.js.map +0 -1
- package/dist/theme/index.mjs +0 -3
- package/dist/theme/index.mjs.map +0 -1
- package/dist/tokens/index.d.mts +0 -423
- package/dist/tokens/index.d.ts +0 -423
- package/dist/tokens/index.js +0 -44
- package/dist/tokens/index.js.map +0 -1
- package/dist/tokens/index.mjs +0 -3
- package/dist/tokens/index.mjs.map +0 -1
- package/dist/types/index.d.mts +0 -202
- package/dist/types/index.d.ts +0 -202
- package/dist/types/index.js +0 -4
- package/dist/types/index.js.map +0 -1
- package/dist/types/index.mjs +0 -3
- package/dist/types/index.mjs.map +0 -1
package/dist/cli/ds.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
package/dist/cli/ds.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
package/dist/cli/ds.js
DELETED
|
@@ -1,602 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var chunkEDTAMUO2_js = require('../chunk-EDTAMUO2.js');
|
|
5
|
-
var chunk52BHHF5M_js = require('../chunk-52BHHF5M.js');
|
|
6
|
-
var fs = require('fs');
|
|
7
|
-
var path = require('path');
|
|
8
|
-
|
|
9
|
-
function _interopNamespace(e) {
|
|
10
|
-
if (e && e.__esModule) return e;
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return e[k]; }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n.default = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var fs__namespace = /*#__PURE__*/_interopNamespace(fs);
|
|
28
|
-
var path__namespace = /*#__PURE__*/_interopNamespace(path);
|
|
29
|
-
|
|
30
|
-
function buildRegistry(uiDir, outFile) {
|
|
31
|
-
function findMetaFiles(dir, fileList = []) {
|
|
32
|
-
if (!fs__namespace.existsSync(dir)) return fileList;
|
|
33
|
-
const files = fs__namespace.readdirSync(dir);
|
|
34
|
-
for (const file of files) {
|
|
35
|
-
const stat = fs__namespace.statSync(path__namespace.join(dir, file));
|
|
36
|
-
if (stat.isDirectory()) {
|
|
37
|
-
findMetaFiles(path__namespace.join(dir, file), fileList);
|
|
38
|
-
} else if (file.endsWith(".meta.yaml")) {
|
|
39
|
-
fileList.push(path__namespace.join(dir, file));
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return fileList;
|
|
43
|
-
}
|
|
44
|
-
const metaFiles = findMetaFiles(uiDir);
|
|
45
|
-
const registryData = {};
|
|
46
|
-
for (const file of metaFiles) {
|
|
47
|
-
const metaContent = fs__namespace.readFileSync(file, "utf8");
|
|
48
|
-
const meta = chunkEDTAMUO2_js.load(metaContent);
|
|
49
|
-
const key = meta?.id || meta?.name;
|
|
50
|
-
if (meta && key) {
|
|
51
|
-
registryData[key] = meta;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
let out = `/**
|
|
55
|
-
* AUTO-GENERATED FILE. DO NOT EDIT DIRECTLY.
|
|
56
|
-
* This file is generated from scanning .meta.yaml files.
|
|
57
|
-
*/
|
|
58
|
-
import type { ComponentMeta, BlockMeta, LayoutMeta, PrimitiveMeta } from "../types";
|
|
59
|
-
|
|
60
|
-
`;
|
|
61
|
-
const components = [];
|
|
62
|
-
const blocks = [];
|
|
63
|
-
const layouts = [];
|
|
64
|
-
const primitives = [];
|
|
65
|
-
for (const [id, meta] of Object.entries(registryData)) {
|
|
66
|
-
const { type, ...rest } = meta;
|
|
67
|
-
const metaName = `${id}Meta`;
|
|
68
|
-
if (type === "component") {
|
|
69
|
-
components.push(metaName);
|
|
70
|
-
} else if (type === "block") {
|
|
71
|
-
blocks.push(metaName);
|
|
72
|
-
} else if (type === "layout") {
|
|
73
|
-
layouts.push(metaName);
|
|
74
|
-
} else if (type === "primitive") {
|
|
75
|
-
primitives.push(metaName);
|
|
76
|
-
}
|
|
77
|
-
out += `export const ${metaName} = ${JSON.stringify(rest, null, 2)} as const;
|
|
78
|
-
|
|
79
|
-
`;
|
|
80
|
-
}
|
|
81
|
-
out += `export const componentRegistry = [
|
|
82
|
-
${components.join(",\n ")}
|
|
83
|
-
] as const;
|
|
84
|
-
|
|
85
|
-
`;
|
|
86
|
-
out += `export const blockRegistry = [
|
|
87
|
-
${blocks.join(",\n ")}
|
|
88
|
-
] as const;
|
|
89
|
-
|
|
90
|
-
`;
|
|
91
|
-
out += `export const layoutRegistry = [
|
|
92
|
-
${layouts.join(",\n ")}
|
|
93
|
-
] as const;
|
|
94
|
-
|
|
95
|
-
`;
|
|
96
|
-
out += `export const primitiveRegistry = [
|
|
97
|
-
${primitives.join(",\n ")}
|
|
98
|
-
] as const;
|
|
99
|
-
|
|
100
|
-
`;
|
|
101
|
-
out += `export function getComponentMeta(id: string): any { return componentRegistry.find((m: any) => m.id === id) || layoutRegistry.find((m: any) => m.id === id) || primitiveRegistry.find((m: any) => m.id === id) || blockRegistry.find((m: any) => m.id === id); }
|
|
102
|
-
`;
|
|
103
|
-
out += `export function getBlockMeta(id: string): any { return blockRegistry.find((m: any) => m.id === id) || getComponentMeta(id); }
|
|
104
|
-
`;
|
|
105
|
-
out += `export function getLayoutMeta(id: string): any { return layoutRegistry.find((m: any) => m.id === id) || getComponentMeta(id); }
|
|
106
|
-
`;
|
|
107
|
-
out += `export function getPrimitiveMeta(id: string): any { return primitiveRegistry.find((m: any) => m.id === id) || getComponentMeta(id); }
|
|
108
|
-
`;
|
|
109
|
-
out += `export function getMeta(id: string): any { return getComponentMeta(id); }
|
|
110
|
-
`;
|
|
111
|
-
const registryDir = path__namespace.dirname(outFile);
|
|
112
|
-
if (!fs__namespace.existsSync(registryDir)) {
|
|
113
|
-
fs__namespace.mkdirSync(registryDir, { recursive: true });
|
|
114
|
-
}
|
|
115
|
-
fs__namespace.writeFileSync(outFile, out);
|
|
116
|
-
fs__namespace.writeFileSync(path__namespace.join(registryDir, "index.ts"), `export * from './generated';
|
|
117
|
-
`);
|
|
118
|
-
return { components, blocks, layouts, primitives };
|
|
119
|
-
}
|
|
120
|
-
var init_registry = chunk52BHHF5M_js.__esm({
|
|
121
|
-
"scripts/generators/registry.ts"() {
|
|
122
|
-
chunkEDTAMUO2_js.init_js_yaml();
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
async function registryCli(command) {
|
|
126
|
-
let registryData = {};
|
|
127
|
-
if (fs__namespace.existsSync(REGISTRY_PATH)) {
|
|
128
|
-
registryData = chunkEDTAMUO2_js.load(fs__namespace.readFileSync(REGISTRY_PATH, "utf8"));
|
|
129
|
-
}
|
|
130
|
-
if (!command) {
|
|
131
|
-
const { selectedCmd } = await (0, import_prompts.default)({
|
|
132
|
-
type: "select",
|
|
133
|
-
name: "selectedCmd",
|
|
134
|
-
message: "Que souhaitez-vous faire avec le registre ?",
|
|
135
|
-
choices: [
|
|
136
|
-
{ title: "Ajouter un nouvel element", value: "add" },
|
|
137
|
-
{ title: "Supprimer un element existant", value: "remove" }
|
|
138
|
-
]
|
|
139
|
-
});
|
|
140
|
-
command = selectedCmd;
|
|
141
|
-
}
|
|
142
|
-
if (command === "remove") {
|
|
143
|
-
const choices = Object.keys(registryData).map((key) => ({
|
|
144
|
-
title: `${key} (${registryData[key]?.type})`,
|
|
145
|
-
value: key
|
|
146
|
-
}));
|
|
147
|
-
if (choices.length === 0) {
|
|
148
|
-
console.log("Le registre est vide.");
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
151
|
-
const response = await (0, import_prompts.default)([
|
|
152
|
-
{
|
|
153
|
-
type: "autocomplete",
|
|
154
|
-
name: "id",
|
|
155
|
-
message: "S\xE9lectionnez l'\xE9l\xE9ment \xE0 supprimer :",
|
|
156
|
-
choices
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
type: "confirm",
|
|
160
|
-
name: "confirm",
|
|
161
|
-
message: (prev) => `\xCAtes-vous S\xDBR de vouloir supprimer "${prev}" ? (Cette action est irr\xE9versible)`,
|
|
162
|
-
initial: false
|
|
163
|
-
}
|
|
164
|
-
]);
|
|
165
|
-
if (!response.confirm || !response.id) {
|
|
166
|
-
console.log("Op\xE9ration annul\xE9e.");
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
delete registryData[response.id];
|
|
170
|
-
saveAndRegenerate(registryData, `Element "${response.id}" supprime avec succes !`);
|
|
171
|
-
return;
|
|
172
|
-
}
|
|
173
|
-
if (command === "add") {
|
|
174
|
-
console.log("\n--- Ajout d'un nouvel \xE9l\xE9ment au registre ---");
|
|
175
|
-
const response = await (0, import_prompts.default)([
|
|
176
|
-
{
|
|
177
|
-
type: "text",
|
|
178
|
-
name: "id",
|
|
179
|
-
message: 'Identifiant unique (ex: "MyButton", "Card") :',
|
|
180
|
-
validate: (value) => value.trim().length > 0 ? true : "L'identifiant est requis"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
type: "select",
|
|
184
|
-
name: "type",
|
|
185
|
-
message: "Quel est le type de cet \xE9l\xE9ment ?",
|
|
186
|
-
choices: [
|
|
187
|
-
{ title: "Component (Boutons, Inputs, etc.)", value: "component" },
|
|
188
|
-
{ title: "Layout (Containers, Grilles, etc.)", value: "layout" },
|
|
189
|
-
{ title: "Primitive (Box, Text, etc.)", value: "primitive" },
|
|
190
|
-
{ title: "Block (Composants complexes assembles)", value: "block" }
|
|
191
|
-
],
|
|
192
|
-
initial: 0
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
type: "text",
|
|
196
|
-
name: "label",
|
|
197
|
-
message: 'Nom lisible (ex: "Mon Super Bouton") :',
|
|
198
|
-
initial: (prev) => prev.replace(/([A-Z])/g, " $1").trim()
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
type: "text",
|
|
202
|
-
name: "description",
|
|
203
|
-
message: "Courte description du composant :"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
type: "autocomplete",
|
|
207
|
-
name: "category",
|
|
208
|
-
message: "Cat\xE9gorie fonctionnelle :",
|
|
209
|
-
choices: [
|
|
210
|
-
{ title: "display (Affichage)", value: "display" },
|
|
211
|
-
{ title: "action (Interaction)", value: "action" },
|
|
212
|
-
{ title: "input (Saisie de donn\xE9es)", value: "input" },
|
|
213
|
-
{ title: "layout (Mise en page)", value: "layout" },
|
|
214
|
-
{ title: "navigation (Navigation)", value: "navigation" },
|
|
215
|
-
{ title: "feedback (Retours utilisateurs)", value: "feedback" },
|
|
216
|
-
{ title: "typography (Textes)", value: "typography" }
|
|
217
|
-
]
|
|
218
|
-
}
|
|
219
|
-
]);
|
|
220
|
-
if (!response.id) {
|
|
221
|
-
console.log("Op\xE9ration annul\xE9e.");
|
|
222
|
-
return;
|
|
223
|
-
}
|
|
224
|
-
const newId = response.id.trim();
|
|
225
|
-
if (registryData[newId]) {
|
|
226
|
-
console.error(`
|
|
227
|
-
Erreur : L'element "${newId}" existe deja dans le registre.`);
|
|
228
|
-
return;
|
|
229
|
-
}
|
|
230
|
-
const newEntry = {
|
|
231
|
-
type: response.type,
|
|
232
|
-
id: newId,
|
|
233
|
-
label: response.label,
|
|
234
|
-
description: response.description,
|
|
235
|
-
category: response.category,
|
|
236
|
-
tags: [response.category, response.type],
|
|
237
|
-
themeMapping: {},
|
|
238
|
-
slots: [],
|
|
239
|
-
props: []
|
|
240
|
-
};
|
|
241
|
-
registryData[newId] = newEntry;
|
|
242
|
-
saveAndRegenerate(registryData, `L'element "${newId}" a ete ajoute au registre avec succes !`);
|
|
243
|
-
console.log(`
|
|
244
|
-
Tip: Go to 'foundation/registry/registry.yaml' to configure the properties, variants, and themes of your new element.`);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
function saveAndRegenerate(registryData, successMessage) {
|
|
248
|
-
const yamlContent = chunkEDTAMUO2_js.dump(registryData, {
|
|
249
|
-
noRefs: true,
|
|
250
|
-
sortKeys: false,
|
|
251
|
-
lineWidth: -1
|
|
252
|
-
});
|
|
253
|
-
fs__namespace.writeFileSync(REGISTRY_PATH, yamlContent);
|
|
254
|
-
console.log(`
|
|
255
|
-
Succes: ${successMessage}`);
|
|
256
|
-
console.log("Generation des definitions TypeScript en cours...");
|
|
257
|
-
try {
|
|
258
|
-
buildRegistry(UI_DIR, OUT_FILE);
|
|
259
|
-
console.log("Termine avec succes !");
|
|
260
|
-
} catch (e) {
|
|
261
|
-
const error = e;
|
|
262
|
-
console.error("Echec lors de la generation TypeScript :", error.message);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
var import_prompts, REGISTRY_PATH, UI_DIR, OUT_FILE;
|
|
266
|
-
var init_registry2 = chunk52BHHF5M_js.__esm({
|
|
267
|
-
"scripts/cli/registry.ts"() {
|
|
268
|
-
chunkEDTAMUO2_js.init_js_yaml();
|
|
269
|
-
import_prompts = chunk52BHHF5M_js.__toESM(chunkEDTAMUO2_js.require_prompts());
|
|
270
|
-
init_registry();
|
|
271
|
-
REGISTRY_PATH = path__namespace.resolve(__dirname, "../../foundation/registry/registry.yaml");
|
|
272
|
-
UI_DIR = path__namespace.resolve(__dirname, "../../foundation/ui/components");
|
|
273
|
-
OUT_FILE = path__namespace.resolve(__dirname, "../../foundation/registry/generated.ts");
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
function buildThemes(inputFile, outputFile) {
|
|
277
|
-
if (!fs__namespace.existsSync(inputFile)) {
|
|
278
|
-
throw new Error(`File not found: ${inputFile}`);
|
|
279
|
-
}
|
|
280
|
-
const themesData = chunkEDTAMUO2_js.load(fs__namespace.readFileSync(inputFile, "utf8"));
|
|
281
|
-
const fileHeader = `// ==============================================================================
|
|
282
|
-
// AUTOMATICALLY GENERATED FILE - DO NOT MODIFY MANUALLY
|
|
283
|
-
// Edit foundation/theme/themes.yaml and run \`npm run theme:generate\`
|
|
284
|
-
// ==============================================================================
|
|
285
|
-
`;
|
|
286
|
-
let output = `${fileHeader}
|
|
287
|
-
import { colors } from "../tokens";
|
|
288
|
-
import { createTheme } from "./createTheme";
|
|
289
|
-
import type { ColorScheme } from "./types";
|
|
290
|
-
|
|
291
|
-
export const themes = {
|
|
292
|
-
`;
|
|
293
|
-
const colorMapper = (val) => {
|
|
294
|
-
if (typeof val === "string") {
|
|
295
|
-
const parts = val.split(".");
|
|
296
|
-
if (parts.length > 1) {
|
|
297
|
-
return `colors.${parts[0]}['${parts[1]}']`;
|
|
298
|
-
}
|
|
299
|
-
return `colors.${val}`;
|
|
300
|
-
}
|
|
301
|
-
if (Array.isArray(val)) {
|
|
302
|
-
return `[${val.map((v) => colorMapper(v)).join(", ")}]`;
|
|
303
|
-
}
|
|
304
|
-
if (typeof val === "object" && val !== null) {
|
|
305
|
-
return `{
|
|
306
|
-
${Object.entries(val).map(([k, v]) => ` ${k}: ${colorMapper(v)},`).join("\n")}
|
|
307
|
-
}`;
|
|
308
|
-
}
|
|
309
|
-
return JSON.stringify(val);
|
|
310
|
-
};
|
|
311
|
-
for (const [themeName, themeConfig] of Object.entries(themesData)) {
|
|
312
|
-
output += ` ${themeName}: createTheme({
|
|
313
|
-
`;
|
|
314
|
-
for (const [key, value] of Object.entries(themeConfig)) {
|
|
315
|
-
if (key === "gradients" && typeof value === "object" && value !== null) {
|
|
316
|
-
output += ` gradients: {
|
|
317
|
-
`;
|
|
318
|
-
for (const [gradKey, gradValue] of Object.entries(value)) {
|
|
319
|
-
output += ` ${gradKey}: ${colorMapper(gradValue)},
|
|
320
|
-
`;
|
|
321
|
-
}
|
|
322
|
-
output += ` },
|
|
323
|
-
`;
|
|
324
|
-
} else {
|
|
325
|
-
output += ` ${key}: ${colorMapper(value)},
|
|
326
|
-
`;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
output += ` }),
|
|
330
|
-
`;
|
|
331
|
-
}
|
|
332
|
-
output += `} as const;
|
|
333
|
-
|
|
334
|
-
`;
|
|
335
|
-
output += `export type ThemeName = keyof typeof themes;
|
|
336
|
-
`;
|
|
337
|
-
fs__namespace.writeFileSync(outputFile, output);
|
|
338
|
-
return themesData;
|
|
339
|
-
}
|
|
340
|
-
var init_themes = chunk52BHHF5M_js.__esm({
|
|
341
|
-
"scripts/generators/themes.ts"() {
|
|
342
|
-
chunkEDTAMUO2_js.init_js_yaml();
|
|
343
|
-
}
|
|
344
|
-
});
|
|
345
|
-
async function themeCli(command) {
|
|
346
|
-
let themesData = {};
|
|
347
|
-
if (fs__namespace.existsSync(THEMES_PATH)) {
|
|
348
|
-
themesData = chunkEDTAMUO2_js.load(fs__namespace.readFileSync(THEMES_PATH, "utf8"));
|
|
349
|
-
}
|
|
350
|
-
if (!command) {
|
|
351
|
-
const { selectedCmd } = await (0, import_prompts2.default)({
|
|
352
|
-
type: "select",
|
|
353
|
-
name: "selectedCmd",
|
|
354
|
-
message: "Que souhaitez-vous faire avec les th\xE8mes ?",
|
|
355
|
-
choices: [
|
|
356
|
-
{ title: "Ajouter un nouveau theme", value: "add" },
|
|
357
|
-
{ title: "Supprimer un theme existant", value: "remove" }
|
|
358
|
-
]
|
|
359
|
-
});
|
|
360
|
-
command = selectedCmd;
|
|
361
|
-
}
|
|
362
|
-
if (command === "remove") {
|
|
363
|
-
console.log("--- Theme Removal ---");
|
|
364
|
-
const choices = Object.keys(themesData).map((key) => ({
|
|
365
|
-
title: key,
|
|
366
|
-
value: key
|
|
367
|
-
}));
|
|
368
|
-
if (choices.length === 0) {
|
|
369
|
-
console.log("No themes to remove.");
|
|
370
|
-
return;
|
|
371
|
-
}
|
|
372
|
-
const response = await (0, import_prompts2.default)([
|
|
373
|
-
{
|
|
374
|
-
type: "autocomplete",
|
|
375
|
-
name: "id",
|
|
376
|
-
message: "Select the theme to remove:",
|
|
377
|
-
choices
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
type: "confirm",
|
|
381
|
-
name: "confirm",
|
|
382
|
-
message: (prev) => `Are you sure you want to remove theme "${prev}"?`,
|
|
383
|
-
initial: false
|
|
384
|
-
}
|
|
385
|
-
]);
|
|
386
|
-
if (!response.confirm || !response.id) {
|
|
387
|
-
console.log("Operation cancelled.");
|
|
388
|
-
return;
|
|
389
|
-
}
|
|
390
|
-
delete themesData[response.id];
|
|
391
|
-
saveAndRegenerate2(themesData, `Theme "${response.id}" supprime avec succes !`);
|
|
392
|
-
return;
|
|
393
|
-
}
|
|
394
|
-
if (command === "add") {
|
|
395
|
-
console.log("--- Theme Addition ---");
|
|
396
|
-
const response = await (0, import_prompts2.default)([
|
|
397
|
-
{
|
|
398
|
-
type: "text",
|
|
399
|
-
name: "id",
|
|
400
|
-
message: 'Theme name (lowercase, e.g. "ocean", "dracula"):',
|
|
401
|
-
validate: (value) => value.length > 0 ? true : "Name is required"
|
|
402
|
-
},
|
|
403
|
-
{
|
|
404
|
-
type: "select",
|
|
405
|
-
name: "base",
|
|
406
|
-
message: "Base theme to copy colors from?",
|
|
407
|
-
choices: Object.keys(themesData).map((key) => ({ title: key, value: key })),
|
|
408
|
-
initial: 0
|
|
409
|
-
}
|
|
410
|
-
]);
|
|
411
|
-
if (!response.id || !response.base) {
|
|
412
|
-
console.log("Operation cancelled.");
|
|
413
|
-
return;
|
|
414
|
-
}
|
|
415
|
-
const newId = response.id.toLowerCase();
|
|
416
|
-
if (themesData[newId]) {
|
|
417
|
-
console.error(`Error: Theme "${newId}" already exists.`);
|
|
418
|
-
return;
|
|
419
|
-
}
|
|
420
|
-
themesData[newId] = JSON.parse(JSON.stringify(themesData[response.base]));
|
|
421
|
-
saveAndRegenerate2(themesData, `Added theme "${newId}" to themes.yaml`);
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
function saveAndRegenerate2(themesData, successMessage) {
|
|
425
|
-
const yamlContent = chunkEDTAMUO2_js.dump(themesData, {
|
|
426
|
-
noRefs: true,
|
|
427
|
-
sortKeys: false,
|
|
428
|
-
lineWidth: -1
|
|
429
|
-
});
|
|
430
|
-
fs__namespace.writeFileSync(THEMES_PATH, yamlContent);
|
|
431
|
-
console.log(`
|
|
432
|
-
Success! ${successMessage}`);
|
|
433
|
-
console.log("Regenerating TypeScript definitions...");
|
|
434
|
-
try {
|
|
435
|
-
buildThemes(THEMES_PATH, THEMES_OUT);
|
|
436
|
-
console.log("Done!");
|
|
437
|
-
} catch (e) {
|
|
438
|
-
const error = e;
|
|
439
|
-
console.error("Failed to regenerate TypeScript files:", error.message);
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
var import_prompts2, THEMES_PATH, THEMES_OUT;
|
|
443
|
-
var init_theme = chunk52BHHF5M_js.__esm({
|
|
444
|
-
"scripts/cli/theme.ts"() {
|
|
445
|
-
chunkEDTAMUO2_js.init_js_yaml();
|
|
446
|
-
import_prompts2 = chunk52BHHF5M_js.__toESM(chunkEDTAMUO2_js.require_prompts());
|
|
447
|
-
init_themes();
|
|
448
|
-
THEMES_PATH = path__namespace.resolve(__dirname, "../../foundation/theme/themes.yaml");
|
|
449
|
-
THEMES_OUT = path__namespace.resolve(__dirname, "../../foundation/theme/generated.ts");
|
|
450
|
-
}
|
|
451
|
-
});
|
|
452
|
-
function buildTokens(inputFile, outputFile) {
|
|
453
|
-
if (!fs__namespace.existsSync(inputFile)) {
|
|
454
|
-
throw new Error(`File not found: ${inputFile}`);
|
|
455
|
-
}
|
|
456
|
-
const tokensData = chunkEDTAMUO2_js.load(fs__namespace.readFileSync(inputFile, "utf8"));
|
|
457
|
-
let output = `// ==============================================================================
|
|
458
|
-
// AUTOMATICALLY GENERATED FILE - DO NOT MODIFY MANUALLY
|
|
459
|
-
// Edit foundation/tokens/tokens.yaml and run \`npm run ds\`
|
|
460
|
-
// ==============================================================================
|
|
461
|
-
|
|
462
|
-
`;
|
|
463
|
-
for (const [key, value] of Object.entries(tokensData)) {
|
|
464
|
-
output += `export const ${key} = ${JSON.stringify(value, null, 2)} as const;
|
|
465
|
-
|
|
466
|
-
`;
|
|
467
|
-
}
|
|
468
|
-
output += `// --- Automatically generated types ---
|
|
469
|
-
|
|
470
|
-
`;
|
|
471
|
-
output += `export type ColorToken = keyof typeof colors;
|
|
472
|
-
`;
|
|
473
|
-
output += `export type SpacingToken = keyof typeof spacing;
|
|
474
|
-
`;
|
|
475
|
-
output += `export type RadiusToken = keyof typeof radii;
|
|
476
|
-
`;
|
|
477
|
-
output += `export type ShadowToken = keyof typeof shadows;
|
|
478
|
-
`;
|
|
479
|
-
output += `export type Breakpoint = keyof typeof breakpoints;
|
|
480
|
-
`;
|
|
481
|
-
output += `export type OpacityToken = keyof typeof opacity;
|
|
482
|
-
`;
|
|
483
|
-
output += `export type ZIndexToken = keyof typeof zIndex;
|
|
484
|
-
|
|
485
|
-
`;
|
|
486
|
-
output += `export type FontSizeToken = keyof typeof typography.fontSizes;
|
|
487
|
-
`;
|
|
488
|
-
output += `export type FontWeightToken = keyof typeof typography.fontWeights;
|
|
489
|
-
`;
|
|
490
|
-
output += `export type LineHeightToken = keyof typeof typography.lineHeights;
|
|
491
|
-
`;
|
|
492
|
-
output += `export type LetterSpacingToken = keyof typeof typography.letterSpacings;
|
|
493
|
-
|
|
494
|
-
`;
|
|
495
|
-
output += `export type DurationToken = keyof typeof motion.durations;
|
|
496
|
-
`;
|
|
497
|
-
output += `export type EasingToken = keyof typeof motion.easings;
|
|
498
|
-
`;
|
|
499
|
-
fs__namespace.writeFileSync(outputFile, output);
|
|
500
|
-
return tokensData;
|
|
501
|
-
}
|
|
502
|
-
var init_tokens = chunk52BHHF5M_js.__esm({
|
|
503
|
-
"scripts/generators/tokens.ts"() {
|
|
504
|
-
chunkEDTAMUO2_js.init_js_yaml();
|
|
505
|
-
}
|
|
506
|
-
});
|
|
507
|
-
var require_cli = chunk52BHHF5M_js.__commonJS({
|
|
508
|
-
"scripts/cli/index.ts"(exports$1, module) {
|
|
509
|
-
var import_prompts3 = chunk52BHHF5M_js.__toESM(chunkEDTAMUO2_js.require_prompts());
|
|
510
|
-
init_registry2();
|
|
511
|
-
init_theme();
|
|
512
|
-
init_tokens();
|
|
513
|
-
chunkEDTAMUO2_js.init_docs();
|
|
514
|
-
var FOUNDATION_DIR = path__namespace.resolve(__dirname, "../../foundation");
|
|
515
|
-
var TOKENS_YAML = path__namespace.resolve(__dirname, "../../foundation/tokens/tokens.yaml");
|
|
516
|
-
var TOKENS_OUT = path__namespace.resolve(__dirname, "../../foundation/tokens/generated.ts");
|
|
517
|
-
async function main() {
|
|
518
|
-
const args = process.argv.slice(2);
|
|
519
|
-
if (args.length > 0) {
|
|
520
|
-
const [domain, action] = args;
|
|
521
|
-
if (domain === "registry") {
|
|
522
|
-
await registryCli(action);
|
|
523
|
-
return;
|
|
524
|
-
}
|
|
525
|
-
if (domain === "theme" || domain === "themes") {
|
|
526
|
-
await themeCli(action);
|
|
527
|
-
return;
|
|
528
|
-
}
|
|
529
|
-
if (domain === "tokens" && action === "generate") {
|
|
530
|
-
console.log("Generation des tokens TypeScript...");
|
|
531
|
-
buildTokens(TOKENS_YAML, TOKENS_OUT);
|
|
532
|
-
console.log("Tokens generes avec succes !");
|
|
533
|
-
return;
|
|
534
|
-
}
|
|
535
|
-
if (domain === "docs" || domain === "documentation") {
|
|
536
|
-
const outDir = path__namespace.resolve(process.cwd(), action || "docs");
|
|
537
|
-
console.log(`G\xE9n\xE9ration de la documentation MDX dans ${outDir}...`);
|
|
538
|
-
const res = chunkEDTAMUO2_js.buildDocs(FOUNDATION_DIR, outDir);
|
|
539
|
-
console.log(`Documentation MDX g\xE9n\xE9r\xE9e avec succ\xE8s (${res.totalFiles} fichiers) !`);
|
|
540
|
-
return;
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
console.log("\nWelcome to Flipova Foundation CLI\n");
|
|
544
|
-
const { target } = await (0, import_prompts3.default)({
|
|
545
|
-
type: "select",
|
|
546
|
-
name: "target",
|
|
547
|
-
message: "Que souhaitez-vous g\xE9rer ?",
|
|
548
|
-
choices: [
|
|
549
|
-
{ title: "Themes (Couleurs, Modes clair/sombre)", value: "theme" },
|
|
550
|
-
{ title: "Registre (Composants, Primitives, Layouts)", value: "registry" },
|
|
551
|
-
{ title: "G\xE9n\xE9rer les Tokens (depuis tokens.yaml)", value: "tokens" },
|
|
552
|
-
{ title: "G\xE9n\xE9rer la documentation MDX (miroir agnostique de foundation)", value: "docs" },
|
|
553
|
-
{ title: "Quitter", value: "exit" }
|
|
554
|
-
]
|
|
555
|
-
});
|
|
556
|
-
if (!target || target === "exit") {
|
|
557
|
-
console.log("\xC0 bient\xF4t !");
|
|
558
|
-
process.exit(0);
|
|
559
|
-
}
|
|
560
|
-
if (target === "theme") {
|
|
561
|
-
await themeCli();
|
|
562
|
-
} else if (target === "registry") {
|
|
563
|
-
await registryCli();
|
|
564
|
-
} else if (target === "tokens") {
|
|
565
|
-
console.log("Generation des tokens TypeScript...");
|
|
566
|
-
try {
|
|
567
|
-
buildTokens(TOKENS_YAML, TOKENS_OUT);
|
|
568
|
-
console.log("Termine avec succes !");
|
|
569
|
-
} catch (e) {
|
|
570
|
-
const error = e;
|
|
571
|
-
console.error("Echec de la generation :", error.message);
|
|
572
|
-
}
|
|
573
|
-
} else if (target === "docs") {
|
|
574
|
-
const { outDir } = await (0, import_prompts3.default)({
|
|
575
|
-
type: "text",
|
|
576
|
-
name: "outDir",
|
|
577
|
-
message: "Dossier de destination pour la documentation MDX :",
|
|
578
|
-
initial: "docs"
|
|
579
|
-
});
|
|
580
|
-
if (outDir) {
|
|
581
|
-
const targetPath = path__namespace.resolve(process.cwd(), outDir);
|
|
582
|
-
console.log(`G\xE9n\xE9ration de la documentation MDX dans ${targetPath}...`);
|
|
583
|
-
try {
|
|
584
|
-
const res = chunkEDTAMUO2_js.buildDocs(FOUNDATION_DIR, targetPath);
|
|
585
|
-
console.log(`Documentation MDX g\xE9n\xE9r\xE9e avec succ\xE8s (${res.totalFiles} fichiers) !`);
|
|
586
|
-
} catch (e) {
|
|
587
|
-
const error = e;
|
|
588
|
-
console.error("\xC9chec de la g\xE9n\xE9ration :", error.message);
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
if (chunk52BHHF5M_js.__require.main === module) {
|
|
594
|
-
main().catch(console.error);
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
});
|
|
598
|
-
var ds = require_cli();
|
|
599
|
-
|
|
600
|
-
module.exports = ds;
|
|
601
|
-
//# sourceMappingURL=ds.js.map
|
|
602
|
-
//# sourceMappingURL=ds.js.map
|