bitboss-ui 3.0.0-beta.75 → 3.0.0-beta.76
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/README.md +5 -5
- package/bin/cli.mjs +16 -10
- package/dist/ai/BbAlert.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +1 -1
- package/dist/ai/BbButton.md +2 -2
- package/dist/ai/BbColorInput.md +1 -1
- package/dist/ai/BbColorPalette.md +1 -1
- package/dist/ai/BbConfirm.md +1 -1
- package/dist/ai/BbDatePicker.md +1 -1
- package/dist/ai/BbDatePickerInput.md +1 -1
- package/dist/ai/BbDialog.md +3 -2
- package/dist/ai/BbDropdown.md +23 -21
- package/dist/ai/BbDropdownButton.md +13 -11
- package/dist/ai/BbGallery.md +3 -2
- package/dist/ai/BbIcon.md +10 -10
- package/dist/ai/BbOffCanvas.md +3 -2
- package/dist/ai/BbPopover.md +1 -1
- package/dist/ai/BbSelect.md +153 -43
- package/dist/ai/BbSelectPopover.md +115 -9
- package/dist/ai/BbTable.md +1 -1
- package/dist/ai/BbTimePicker.md +1 -1
- package/dist/ai/BbTimePickerInput.md +1 -1
- package/dist/ai/GroupedListBox.md +2 -2
- package/dist/ai/ListBox.md +3 -2
- package/dist/ai/changelog.json +153 -7
- package/dist/ai/components.json +12 -12
- package/dist/ai/guides/agent-contract.md +1 -1
- package/dist/ai/guides/calendars-and-digits.md +1 -1
- package/dist/ai/guides/eslint-rules.md +1 -1
- package/dist/ai/guides/icons-policy.md +32 -11
- package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
- package/dist/ai/guides/migration/adoption-checklist.md +1 -1
- package/dist/ai/guides/migration/components/bb-icon.md +4 -4
- package/dist/ai/guides/migration/v2-to-v3.md +48 -19
- package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
- package/dist/ai/guides/passthrough.md +58 -58
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/manifest/components/BbDialog.tree.json +1 -1
- package/dist/ai/manifest/components/BbDropdown.json +19 -17
- package/dist/ai/manifest/components/BbDropdown.tree.json +9 -9
- package/dist/ai/manifest/components/BbDropdownButton.json +12 -10
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
- package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
- package/dist/ai/manifest/components/BbSelect.json +44 -40
- package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +10 -6
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +4 -1
- package/dist/ai/manifest/components/BbTable.tree.json +5 -1
- package/dist/ai/manifest/components/GroupedListBox.json +1 -1
- package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
- package/dist/ai/manifest/components/ListBox.json +1 -1
- package/dist/ai/manifest/components/ListBox.tree.json +1 -1
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/inertia/onboarding.md +1 -1
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/nuxt/onboarding.md +1 -1
- package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/source/BbAccordion.md +4 -5
- package/dist/ai/source/BbAvatar.md +9 -2
- package/dist/ai/source/BbBadge.md +6 -2
- package/dist/ai/source/BbBreadcrumbs.md +5 -2
- package/dist/ai/source/BbCalendar.md +8 -6
- package/dist/ai/source/BbCarousel.md +10 -6
- package/dist/ai/source/BbColorPalette.md +5 -2
- package/dist/ai/source/BbDatePickerInput.md +7 -2
- package/dist/ai/source/BbDropdown.md +91 -66
- package/dist/ai/source/BbDropdownButton.md +36 -19
- package/dist/ai/source/BbDropdownGroup.md +91 -66
- package/dist/ai/source/BbGallery.md +6 -5
- package/dist/ai/source/BbPagination.md +12 -28
- package/dist/ai/source/BbRating.md +4 -4
- package/dist/ai/source/BbSelect.md +130 -106
- package/dist/ai/source/BbSelectPopover.md +128 -21
- package/dist/ai/source/BbTable.md +42 -9
- package/dist/ai/source/BbTimePickerInput.md +6 -2
- package/dist/ai/source/ClearableButton.md +4 -2
- package/dist/ai/source/ErrorIcon.md +4 -3
- package/dist/ai/source/FlatListBox.md +7 -2
- package/dist/ai/source/GroupedListBox.md +22 -3
- package/dist/ai/source/ListBox.md +7 -1
- package/dist/ai/source/WarningIcon.md +4 -3
- package/dist/assets/svgs/close.svg_raw.js +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +48 -47
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -59
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +128 -127
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +240 -239
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +500 -499
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +175 -174
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +2 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +263 -262
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +81 -80
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +4 -0
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +318 -312
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +47 -46
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +36 -20
- package/dist/components/BbDropdown/types.d.ts +51 -53
- package/dist/components/BbDropdown/types.js +2 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +1 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +74 -59
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +111 -63
- package/dist/components/BbDropdownButton/types.d.ts +12 -10
- package/dist/components/BbDropdownButton/types.js +2 -0
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +204 -203
- package/dist/components/BbIcon/iconCache.js +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
- package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
- package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
- package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
- package/dist/components/BbSelect/BbSelect.vue.d.ts +30 -20
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +201 -184
- package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
- package/dist/components/BbSelect/types.d.ts +101 -105
- package/dist/components/BbSelect/types.js +1 -27
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +6 -3
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +617 -585
- package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
- package/dist/components/BbSelectPopover/types.d.ts +22 -13
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1092 -1090
- package/dist/components/BbTable/BbTableDataRow.js +97 -90
- package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +225 -224
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +76 -75
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
- package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +69 -68
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +166 -165
- package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/composables/useInternalIcon.js +25 -0
- package/dist/icon-scan.d.ts +1 -1
- package/dist/llms-full.txt +477 -187
- package/dist/llms-medium.txt +25 -24
- package/dist/llms.txt +1 -1
- package/dist/nuxt.js +1 -1
- package/dist/styles.css +2 -2
- package/dist/types/Config.d.ts +8 -1
- package/dist/types/ConfigDefaults.d.ts +10 -2
- package/dist/types/internalIcons.d.ts +89 -0
- package/dist/types/internalIcons.js +158 -0
- package/dist/types/ptComponentMap.d.ts +4 -4
- package/dist/utils/configDefaults.js +75 -64
- package/dist/utils/iconsOption.js +48 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +10 -16
- package/dist/vite.js +319 -306
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/scripts/lib/adoption-checklist.json +1 -1
- package/scripts/lib/update-install.mjs +48 -0
- package/scripts/lib/validate-bb-markup.mjs +73 -12
- package/dist/assets/svgs/caret_down.svg_raw.js +0 -3
package/dist/vite.js
CHANGED
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
import { DEFAULT_MAX_FILE_SIZE as e, IconScanner as t, extractIconCandidates as n, globToRegExp as r, hasGlobMagic as i, iconLiteralRegExp as a, iconScanCacheFile as o } from "./icon-scan.js";
|
|
2
2
|
import { BB_LAYERS as s, TAILWIND_V3_LAYERS as c, TAILWIND_V4_LAYERS as l, validateCssLayers as u } from "./utils/cssLayers.js";
|
|
3
|
-
import { BUILTIN_LOCALE_KEYS as d, DICTIONARY_HOME as f, LOCALE_TABLE as p, aliasesOf as ee, localeKeyOf as m, localePartsOf as te, nearestLocaleKey as
|
|
4
|
-
import { ERA_NAMES as
|
|
5
|
-
import { CALENDAR_FACTORIES as
|
|
6
|
-
import { invalidLocaleTag as
|
|
7
|
-
import { regionHints as
|
|
8
|
-
import { validatePtGlobalMap as
|
|
9
|
-
import { closestName as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
3
|
+
import { BUILTIN_LOCALE_KEYS as d, DICTIONARY_HOME as f, LOCALE_TABLE as p, aliasesOf as ee, localeKeyOf as m, localePartsOf as te, nearestLocaleKey as h } from "./i18n/regions.js";
|
|
4
|
+
import { ERA_NAMES as g } from "./i18n/eraNames.js";
|
|
5
|
+
import { CALENDAR_FACTORIES as ne, CALENDAR_IDS as re } from "./utilities/calendar/types.js";
|
|
6
|
+
import { invalidLocaleTag as _, isDecimalSystem as ie, localeExtensionWarnings as ae } from "./locale-tags.js";
|
|
7
|
+
import { regionHints as oe } from "./i18n/regionHints.js";
|
|
8
|
+
import { validatePtGlobalMap as se } from "./utils/passthrough.js";
|
|
9
|
+
import { closestName as ce, ptOfComponents as le, validateComponentsMap as ue, validateConfigScopes as de, validateRemovedOptions as fe, validateUnknownOptions as pe, withoutPt as me } from "./utils/configDefaults.js";
|
|
10
|
+
import { iconNamesOf as he, missingLocalIcons as ge, validateIconsOption as _e } from "./utils/iconsOption.js";
|
|
11
|
+
import { DEFAULT_VARIANT_REGISTRIES as v, VARIANT_COMPONENTS as ve, VARIANT_PT_COMPONENTS as y, VARIANT_REGISTRY_OPTIONS as b, customVariants as ye, emptyStringControls as be, flattenVariants as xe, isInTypeScriptProgram as Se, projectVariantRegistries as Ce, resolveProjectDtsPath as we, variantIconsOf as Te, variantOptionLabel as x, writeProjectDts as Ee } from "./project-dts.js";
|
|
12
|
+
import { DEFAULTS_ALLOWLIST as De } from "./types/ConfigDefaults.js";
|
|
12
13
|
import { existsSync as S, mkdirSync as C, readFileSync as w, readdirSync as T, writeFileSync as E } from "node:fs";
|
|
13
|
-
import { basename as
|
|
14
|
-
import { fileURLToPath as
|
|
15
|
-
import { createRequire as
|
|
16
|
-
import { convertParsedSVG as
|
|
14
|
+
import { basename as Oe, dirname as D, isAbsolute as O, join as k, relative as ke, resolve as A } from "node:path";
|
|
15
|
+
import { fileURLToPath as Ae } from "node:url";
|
|
16
|
+
import { createRequire as j } from "node:module";
|
|
17
|
+
import { convertParsedSVG as M, getIconData as N, iconToHTML as P, iconToSVG as je, parseSVGContent as Me, stringToIcon as Ne } from "@iconify/utils";
|
|
17
18
|
// src/vite-plugin.ts
|
|
18
|
-
function
|
|
19
|
-
let t =
|
|
19
|
+
function Pe(e) {
|
|
20
|
+
let t = je(e, {
|
|
20
21
|
width: "unset",
|
|
21
22
|
height: "unset"
|
|
22
23
|
});
|
|
23
|
-
return
|
|
24
|
+
return P(t.body, t.attributes);
|
|
24
25
|
}
|
|
25
26
|
function F(e, t) {
|
|
26
27
|
try {
|
|
27
|
-
let n =
|
|
28
|
+
let n = j(k(e, "package.json"));
|
|
28
29
|
return JSON.parse(w(n.resolve(`${t}/icons.json`), "utf-8"));
|
|
29
30
|
} catch {
|
|
30
31
|
return null;
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
+
function Fe(e, t) {
|
|
34
35
|
return e !== "heroicons" || !/-(?:20|16)-/.test(t);
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
+
function Ie(e) {
|
|
37
38
|
let t = A(e);
|
|
38
39
|
for (;;) {
|
|
39
40
|
let e = k(t, "node_modules", "@iconify-json");
|
|
@@ -43,9 +44,9 @@ function Ne(e) {
|
|
|
43
44
|
t = n;
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
+
function Le(e) {
|
|
47
48
|
try {
|
|
48
|
-
let t =
|
|
49
|
+
let t = Ie(e);
|
|
49
50
|
if (!t) return [];
|
|
50
51
|
let n = D(D(t));
|
|
51
52
|
return T(t, { encoding: "utf-8" }).flatMap((t) => {
|
|
@@ -56,59 +57,59 @@ function Pe(e) {
|
|
|
56
57
|
return [];
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
+
function Re(e) {
|
|
60
61
|
try {
|
|
61
|
-
let t =
|
|
62
|
+
let t = j(k(e, "package.json")), n = JSON.parse(w(t.resolve("@iconify/collections/collections.json"), "utf-8"));
|
|
62
63
|
return new Set(Object.keys(n));
|
|
63
64
|
} catch {
|
|
64
65
|
return /* @__PURE__ */ new Set();
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
|
-
var
|
|
68
|
-
function
|
|
68
|
+
var ze = "(key, loaded, known, all, ip) => {\n const c = key.indexOf(':'); const p = key.slice(0, c); const n = key.slice(c + 1);\n if (p === 'local' || !/^[a-z][a-z0-9-]*$/.test(p) || !/^[a-z0-9][a-z0-9-]*$/.test(n)) return null;\n const installed = loaded.size ? `installed sets: ${[...loaded].join(', ')}` : 'no @iconify-json/* set is installed';\n const fix = `If the name is composed at runtime or comes from a database, add it to the plugin's \\`icons.whitelist\\``;\n if (loaded.has(p)) {\n const set = all(p);\n if (set && set.includes(n)) return `[bitboss-ui] icon \"${key}\" exists in the ${p} icon set but is not bundled: no scanned source file contains the literal \"${key}\" and it is not in \\`icons.whitelist\\`. Write it as a literal, or — if the name is composed at runtime or comes from a database — add it to the plugin's \\`icons.whitelist\\`.`;\n const names = set ?? known(p);\n const sq = n.replace(/-/g, '');\n const sug = names.find((x) => x.replace(/-/g, '') === sq) ?? (n.length >= 3 ? names.find((x) => x.includes(n) || (x.length >= 3 && n.includes(x))) : undefined);\n const hint = sug ? ` — did you mean \"${p}:${sug}\"?` : '';\n if (set) return `[bitboss-ui] icon \"${key}\" does not exist in the ${p} icon set${hint}`;\n return `[bitboss-ui] icon \"${key}\" is not bundled: it is not among the ${p} names found as literals in scanned source, nor in \\`icons.whitelist\\`${hint}. ${fix}; if it is a typo, fix the name.`;\n }\n const pkg = `@iconify-json/${p}`; const cmd = `run: npm install -D ${pkg}`;\n if (ip.has(p)) return `[bitboss-ui] \"${key}\" requires \"${pkg}\" — ${cmd} (${installed})`;\n if (ip.size) return `[bitboss-ui] \"${key}\" — \"${p}\" is neither an installed icon set nor a known Iconify prefix (${installed})`;\n return `[bitboss-ui] \"${key}\" — no installed icon set has the prefix \"${p}\" (${installed}). If \"${p}\" is an Iconify set, ${cmd}`;\n}", I = Function(`return ${ze};`)();
|
|
69
|
+
function Be(e, t) {
|
|
69
70
|
return [...Object.keys(e.icons), ...Object.keys(e.aliases ?? {})].filter((n) => (!t || t(n)) && N(e, n) !== null);
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
+
function Ve(e, t, n, a) {
|
|
72
73
|
let o = /* @__PURE__ */ new Set(), s = [], c = new Set(t.keys()), l = /* @__PURE__ */ new Map(), u = (e) => {
|
|
73
74
|
let r = l.get(e);
|
|
74
75
|
if (!r) {
|
|
75
76
|
let i = t.get(e);
|
|
76
|
-
r = i ?
|
|
77
|
+
r = i ? Be(i, n.get(e)) : [], l.set(e, r);
|
|
77
78
|
}
|
|
78
79
|
return r;
|
|
79
80
|
};
|
|
80
81
|
for (let l of e) {
|
|
81
82
|
let e = l.trim(), d = e.indexOf(":"), f = d === -1 ? "" : e.slice(0, d), p = e.slice(d + 1);
|
|
82
83
|
if (d === -1 || !f || !p) {
|
|
83
|
-
s.push(`[bitboss-ui]
|
|
84
|
+
s.push(`[bitboss-ui] icons.whitelist entry "${l}" is not a \`prefix:name\` icon name`);
|
|
84
85
|
continue;
|
|
85
86
|
}
|
|
86
87
|
if (f === "local") {
|
|
87
|
-
s.push(`[bitboss-ui]
|
|
88
|
+
s.push(`[bitboss-ui] icons.whitelist entry "${l}" — every \`local:\` icon in icons.dir is always bundled; the whitelist is for provider icons only`);
|
|
88
89
|
continue;
|
|
89
90
|
}
|
|
90
91
|
if (!c.has(f)) {
|
|
91
|
-
s.push(I(e, c, u, (e) => c.has(e) ? u(e) : null, new Set(a)) ?? `[bitboss-ui]
|
|
92
|
+
s.push(I(e, c, u, (e) => c.has(e) ? u(e) : null, new Set(a)) ?? `[bitboss-ui] icons.whitelist entry "${l}" does not resolve`);
|
|
92
93
|
continue;
|
|
93
94
|
}
|
|
94
95
|
if (i(p)) {
|
|
95
96
|
let t = r(p), n = u(f).filter((e) => t.test(e));
|
|
96
97
|
if (n.length === 0) {
|
|
97
|
-
s.push(`[bitboss-ui]
|
|
98
|
+
s.push(`[bitboss-ui] icons.whitelist glob "${e}" matches no icon in the ${f} icon set`);
|
|
98
99
|
continue;
|
|
99
100
|
}
|
|
100
101
|
for (let e of n) o.add(`${f}:${e}`);
|
|
101
102
|
continue;
|
|
102
103
|
}
|
|
103
104
|
let ee = t.get(f), m = n.get(f);
|
|
104
|
-
N(ee, p) && (!m || m(p)) ? o.add(e) : s.push(I(e, c, u, u, new Set(a)) ?? `[bitboss-ui]
|
|
105
|
+
N(ee, p) && (!m || m(p)) ? o.add(e) : s.push(I(e, c, u, u, new Set(a)) ?? `[bitboss-ui] icons.whitelist entry "${l}" does not resolve`);
|
|
105
106
|
}
|
|
106
107
|
return {
|
|
107
108
|
icons: [...o],
|
|
108
109
|
errors: s
|
|
109
110
|
};
|
|
110
111
|
}
|
|
111
|
-
function
|
|
112
|
+
function He(e, t) {
|
|
112
113
|
let n = k(e, "node_modules", ".cache", "bitboss-ui", "version"), r = null;
|
|
113
114
|
try {
|
|
114
115
|
r = w(n, "utf-8").trim() || null;
|
|
@@ -119,22 +120,22 @@ function ze(e, t) {
|
|
|
119
120
|
} catch {}
|
|
120
121
|
return !r || t === "0" ? null : `[bitboss-ui] upgraded ${r} → ${t}. What breaks between them: npx bitboss-ui changelog --since ${r}`;
|
|
121
122
|
}
|
|
122
|
-
function
|
|
123
|
-
let t =
|
|
123
|
+
function Ue(e) {
|
|
124
|
+
let t = ke(process.cwd(), e);
|
|
124
125
|
return t && !t.startsWith("..") && !O(t) ? t : e;
|
|
125
126
|
}
|
|
126
|
-
var
|
|
127
|
-
function
|
|
127
|
+
var We = /* @__PURE__ */ new Set();
|
|
128
|
+
function Ge(e) {
|
|
128
129
|
try {
|
|
129
130
|
return JSON.parse(w(k(e, "..", "package.json"), "utf-8")).version ?? "0";
|
|
130
131
|
} catch {
|
|
131
132
|
return "0";
|
|
132
133
|
}
|
|
133
134
|
}
|
|
134
|
-
function
|
|
135
|
+
function Ke(e) {
|
|
135
136
|
let t = [];
|
|
136
137
|
try {
|
|
137
|
-
t.push(
|
|
138
|
+
t.push(j(k(e, "package.json")).resolve("bitboss-ui/package.json"));
|
|
138
139
|
} catch {}
|
|
139
140
|
t.push(k(e, "node_modules", "bitboss-ui", "package.json"));
|
|
140
141
|
for (let e of t) try {
|
|
@@ -143,44 +144,44 @@ function He(e) {
|
|
|
143
144
|
} catch {}
|
|
144
145
|
return null;
|
|
145
146
|
}
|
|
146
|
-
function
|
|
147
|
+
function qe(e, t, n) {
|
|
147
148
|
if (!n || !t || t === "0") return null;
|
|
148
|
-
let r =
|
|
149
|
+
let r = Ke(n);
|
|
149
150
|
return !r || r === t ? null : `[bitboss-ui] cannot serve "${e}": this dev server is running the bitboss-ui ${t} build plugin, but bitboss-ui ${r} is installed now — the package changed while the server was running, and the new runtime imports virtual modules the old plugin does not know. Restart the dev server so it loads the ${r} plugin.`;
|
|
150
151
|
}
|
|
151
|
-
var
|
|
152
|
-
for (let e of [k(
|
|
152
|
+
var L = D(Ae(import.meta.url)), Je = () => {
|
|
153
|
+
for (let e of [k(L, "ai", "components.json"), k(L, "..", "dist", "ai", "components.json")]) if (S(e)) return e;
|
|
153
154
|
return null;
|
|
154
|
-
},
|
|
155
|
+
}, Ye = (e) => {
|
|
155
156
|
try {
|
|
156
157
|
let { components: t } = JSON.parse(w(e, "utf-8"));
|
|
157
158
|
return Array.isArray(t) ? new Map(t.map((e) => [e.name, e])) : null;
|
|
158
159
|
} catch {
|
|
159
160
|
return null;
|
|
160
161
|
}
|
|
161
|
-
},
|
|
162
|
-
function
|
|
163
|
-
let n = t ?
|
|
162
|
+
}, Xe = (e) => Object.keys(y).filter((t) => y[t].includes(e));
|
|
163
|
+
function Ze(e, t = Je()) {
|
|
164
|
+
let n = t ? Ye(t) : null;
|
|
164
165
|
if (!n) return null;
|
|
165
|
-
for (let t of Object.keys(
|
|
166
|
-
let r =
|
|
167
|
-
if (i.length) for (let e of
|
|
166
|
+
for (let t of Object.keys(y)) {
|
|
167
|
+
let r = b[t], i = ye(v[t], e[r]);
|
|
168
|
+
if (i.length) for (let e of y[t]) {
|
|
168
169
|
let t = n.get(e);
|
|
169
170
|
if (!t) continue;
|
|
170
|
-
let a = new Set(
|
|
171
|
-
if (s) return `[bitboss-ui] ${
|
|
171
|
+
let a = new Set(Xe(e).flatMap((e) => [...v[e]])), o = new Set(t.props.map((e) => e.name.split(":")).filter((e) => e[0] === "pt" && e[2] && !a.has(e[2])).map((e) => e[2])), s = i.find((e) => o.has(e));
|
|
172
|
+
if (s) return `[bitboss-ui] ${x(r)}: "${s}" is a passthrough state of ${e}, so \`pt:<part>:${s}\` could not tell the state from the variant. Give the variant another name.`;
|
|
172
173
|
}
|
|
173
174
|
}
|
|
174
175
|
return null;
|
|
175
176
|
}
|
|
176
|
-
function
|
|
177
|
+
function Qe(e, t = Je(), n = "pt", r = {}) {
|
|
177
178
|
if (!e || !t) return null;
|
|
178
|
-
let i =
|
|
179
|
+
let i = Ye(t);
|
|
179
180
|
if (!i) return null;
|
|
180
181
|
for (let [t, a] of Object.entries(e)) {
|
|
181
182
|
let e = i.get(t);
|
|
182
183
|
if (!e) {
|
|
183
|
-
let e =
|
|
184
|
+
let e = ce(t, [...i.keys()]);
|
|
184
185
|
return `[bitboss-ui] ${n}.${t}: no component is called "${t}"${e ? ` — did you mean "${e}"?` : ""}. The map is keyed by component name (ai/guides/passthrough.md).`;
|
|
185
186
|
}
|
|
186
187
|
let o = e.props.map((e) => e.name).filter((e) => e.startsWith("pt:"));
|
|
@@ -198,27 +199,27 @@ function Je(e, t = We(), n = "pt", r = {}) {
|
|
|
198
199
|
}).join(" ")}`;
|
|
199
200
|
}
|
|
200
201
|
let [a, l] = e.split(":");
|
|
201
|
-
if (l && e.split(":").length === 2 &&
|
|
202
|
+
if (l && e.split(":").length === 2 && Xe(t).some((e) => ye(v[e], r[b[e]]).includes(l) && v[e].some((e) => o.includes(`pt:${a}:${e}`)))) continue;
|
|
202
203
|
let u = l && s.includes(a) ? o.filter((e) => e.endsWith(`:${l}`)).map((e) => e.split(":")[1]) : [];
|
|
203
204
|
return `[bitboss-ui] ${n}.${t}.pt["${e}"] matches nothing and would be ignored. ${u.length ? `"${l}" never reaches "${a}" on ${t}; it reaches ${u.join(", ")}.` : s.includes(a) ? c.length === 0 ? `${t} has no states — use "${a}" alone.` : `"${l}" is not a state of ${t}. States: ${c.join(", ")}.` : `"${a}" is not a part of ${t}. Parts: ${s.join(", ")}.`}`;
|
|
204
205
|
}
|
|
205
206
|
}
|
|
206
207
|
return null;
|
|
207
208
|
}
|
|
208
|
-
var
|
|
209
|
-
let t =
|
|
209
|
+
var $e = k(L, "i18n", "locales"), et = (e) => {
|
|
210
|
+
let t = h(e);
|
|
210
211
|
return t ? ` — did you mean '${t}'?` : "";
|
|
211
212
|
};
|
|
212
|
-
function
|
|
213
|
+
function tt(e) {
|
|
213
214
|
let t = e.customLocaleKeys ?? [], n = m(e.locale) ?? "en", r = [], i = /* @__PURE__ */ new Set([n, "en"]), a = /* @__PURE__ */ new Set();
|
|
214
215
|
for (let o of [...e.locale && /[-_]u[-_]/i.test(e.locale) ? [e.locale] : [], ...e.enabledLocales ?? []]) {
|
|
215
|
-
let s =
|
|
216
|
+
let s = _(o, o === e.locale ? n : void 0);
|
|
216
217
|
if (s) {
|
|
217
218
|
r.push(s);
|
|
218
219
|
continue;
|
|
219
220
|
}
|
|
220
221
|
let c = m(o);
|
|
221
|
-
c ? (i.add(c), /[-_]u[-_]/i.test(o) && a.add(o)) : t.includes(o) || r.push(`[bitboss-ui] \`enabledLocales\` entry '${o}' is not a built-in locale${
|
|
222
|
+
c ? (i.add(c), /[-_]u[-_]/i.test(o) && a.add(o)) : t.includes(o) || r.push(`[bitboss-ui] \`enabledLocales\` entry '${o}' is not a built-in locale${et(o)} — ignored.`);
|
|
222
223
|
}
|
|
223
224
|
return {
|
|
224
225
|
enabled: [...i].sort(),
|
|
@@ -227,14 +228,14 @@ function Xe(e) {
|
|
|
227
228
|
warnings: r
|
|
228
229
|
};
|
|
229
230
|
}
|
|
230
|
-
function
|
|
231
|
+
function nt(e) {
|
|
231
232
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = [], i = /* @__PURE__ */ new Set();
|
|
232
233
|
for (let a of [e.locale ?? "en", ...e.enabledLocales ?? []]) {
|
|
233
234
|
let e = m(a);
|
|
234
|
-
if (!e ||
|
|
235
|
-
for (let { id: e, message: t } of
|
|
235
|
+
if (!e || _(a)) continue;
|
|
236
|
+
for (let { id: e, message: t } of ae(a)) i.has(e) || (i.add(e), r.push(t));
|
|
236
237
|
let o = te(a), s = p[e].calendar;
|
|
237
|
-
o.ca &&
|
|
238
|
+
o.ca && re.includes(o.ca) && (s = o.ca === "gregory" ? void 0 : o.ca), o.nu && ie(o.nu) && n.add(o.nu), s && t.add(s);
|
|
238
239
|
}
|
|
239
240
|
return {
|
|
240
241
|
calendars: [...t].sort(),
|
|
@@ -242,7 +243,7 @@ function Ze(e) {
|
|
|
242
243
|
warnings: r
|
|
243
244
|
};
|
|
244
245
|
}
|
|
245
|
-
function
|
|
246
|
+
function rt(e, t, n = L) {
|
|
246
247
|
let r = (e, t) => JSON.stringify(S(k(n, e)) ? k(n, e) : k(n, t)), i = r("calendar-runtime.js", "utilities/calendar/runtime.ts");
|
|
247
248
|
if (!e.length && !t.extended) {
|
|
248
249
|
let e = Object.fromEntries([.../* @__PURE__ */ new Set(["en", ...t.enabled])].map((e) => {
|
|
@@ -253,29 +254,29 @@ function Qe(e, t, n = R) {
|
|
|
253
254
|
}
|
|
254
255
|
let a = {};
|
|
255
256
|
for (let n of t.enabled) for (let t of e) {
|
|
256
|
-
let e =
|
|
257
|
+
let e = g[n]?.[t];
|
|
257
258
|
e && ((a[n] ??= {})[t] = e);
|
|
258
259
|
}
|
|
259
|
-
let o = e.map((e) =>
|
|
260
|
+
let o = e.map((e) => ne[e]);
|
|
260
261
|
return (o.length ? `import { ${o.join(", ")} } from ${r("calendars.js", "utilities/calendar/international.ts")};\n` : "") + `import { createLocaleSeams, formatDigits } from ${i};\nexport { formatDigits };\nexport const calendars = {\n${e.map((e, t) => `\t${JSON.stringify(e)}: ${o[t]}(),`).join("\n")}\n};\nexport const { hasCalendar, localeOf, intlLocaleOf, calendarSystemOf, formatCalendarDate } = createLocaleSeams(calendars, ${JSON.stringify(t.enabled)}, ${JSON.stringify([.../* @__PURE__ */ new Set(["latn", ...t.numberingSystems ?? []])])}, ${JSON.stringify(a)});\n`;
|
|
261
262
|
}
|
|
262
|
-
function
|
|
263
|
+
function it(e) {
|
|
263
264
|
let t = /* @__PURE__ */ new Map();
|
|
264
265
|
for (let n of e) {
|
|
265
266
|
let e = p[n].dictionary;
|
|
266
|
-
t.has(e) || t.set(e, JSON.parse(w(k(
|
|
267
|
+
t.has(e) || t.set(e, JSON.parse(w(k($e, `${e}.json`), "utf-8")));
|
|
267
268
|
}
|
|
268
269
|
let n = [...t].map(([e, t]) => `\t${JSON.stringify(e)}: ${JSON.stringify(t)},`), r = [];
|
|
269
270
|
for (let n of e) {
|
|
270
271
|
let { tag: e, dictionary: i } = p[n];
|
|
271
272
|
if (f[i] === e) continue;
|
|
272
|
-
let a =
|
|
273
|
+
let a = oe(t.get(i).datePickerInput, e, f[i]);
|
|
273
274
|
a && r.push(`\t${JSON.stringify(n)}: ${JSON.stringify({ datePickerInput: a })},`);
|
|
274
275
|
}
|
|
275
276
|
return `export const locales = {\n${n.join("\n")}\n};\nexport const regionFormats = {\n${r.join("\n")}\n};\n`;
|
|
276
277
|
}
|
|
277
|
-
function
|
|
278
|
-
let t =
|
|
278
|
+
function at(e) {
|
|
279
|
+
let t = j(import.meta.url), n = [], r = [];
|
|
279
280
|
for (let i of e) {
|
|
280
281
|
let e = m(i), a = e ? p[e].dayjs : i;
|
|
281
282
|
if (a !== null) try {
|
|
@@ -292,22 +293,22 @@ function et(e) {
|
|
|
292
293
|
missing: r
|
|
293
294
|
};
|
|
294
295
|
}
|
|
295
|
-
function
|
|
296
|
+
function ot(e) {
|
|
296
297
|
let t = [...new Set(e.map(({ pack: e }) => e))];
|
|
297
298
|
return `${t.map((e, t) => `import l${t} from ${JSON.stringify(`dayjs/locale/${e}`)};`).join("\n")}\nexport const dayjsLocales = {\n${e.map(({ key: e, pack: n }) => `\t${JSON.stringify(e)}: l${t.indexOf(n)},`).join("\n")}\n};\n`;
|
|
298
299
|
}
|
|
299
|
-
function
|
|
300
|
+
function st(e, t, n = L, r) {
|
|
300
301
|
if (e === !1) return "export default null;\n";
|
|
301
302
|
let i;
|
|
302
303
|
if (e === void 0) {
|
|
303
304
|
let e = k(n, "passthrough-deduper.js");
|
|
304
305
|
i = S(e) ? e : k(n, "utils/passthroughDeduper.ts");
|
|
305
|
-
let a = r ??
|
|
306
|
+
let a = r ?? V(t);
|
|
306
307
|
if (Object.keys(a).length) return `import { createPassthroughDeduper } from ${JSON.stringify(i)};\nexport default createPassthroughDeduper(${JSON.stringify(a)});\n`;
|
|
307
308
|
} else i = e.startsWith(".") || O(e) ? A(t, e) : e;
|
|
308
309
|
return `export { default } from ${JSON.stringify(i)};\n`;
|
|
309
310
|
}
|
|
310
|
-
var
|
|
311
|
+
var ct = [
|
|
311
312
|
"inset-shadow",
|
|
312
313
|
"drop-shadow",
|
|
313
314
|
"text-shadow",
|
|
@@ -326,7 +327,7 @@ var B = [
|
|
|
326
327
|
"ease",
|
|
327
328
|
"font",
|
|
328
329
|
"text"
|
|
329
|
-
],
|
|
330
|
+
], R = /* @__PURE__ */ new Set([
|
|
330
331
|
"node_modules",
|
|
331
332
|
"dist",
|
|
332
333
|
"build",
|
|
@@ -339,28 +340,28 @@ var B = [
|
|
|
339
340
|
"public",
|
|
340
341
|
"coverage"
|
|
341
342
|
]);
|
|
342
|
-
function
|
|
343
|
+
function lt(e) {
|
|
343
344
|
let t = {};
|
|
344
345
|
for (let n of e.matchAll(/@theme\b[^{]*\{([^}]*)\}/g)) for (let [, e] of n[1].matchAll(/--([a-z0-9-]+)\s*:/g)) {
|
|
345
346
|
if (e.includes("--")) continue;
|
|
346
|
-
let n =
|
|
347
|
+
let n = ct.find((t) => e.startsWith(`${t}-`));
|
|
347
348
|
n && (t[n] ??= /* @__PURE__ */ new Set()).add(e.slice(n.length + 1));
|
|
348
349
|
}
|
|
349
350
|
return Object.fromEntries(Object.entries(t).map(([e, t]) => [e, [...t]]));
|
|
350
351
|
}
|
|
351
|
-
function
|
|
352
|
+
function z(e) {
|
|
352
353
|
let t = {};
|
|
353
354
|
for (let n of e) for (let [e, r] of Object.entries(n)) for (let n of r) (t[e] ??= /* @__PURE__ */ new Set()).add(n);
|
|
354
355
|
return Object.fromEntries(Object.keys(t).sort().map((e) => [e, [...t[e]].sort()]));
|
|
355
356
|
}
|
|
356
|
-
function
|
|
357
|
+
function ut(e, t) {
|
|
357
358
|
if (!t.endsWith(".css")) return !1;
|
|
358
|
-
let n =
|
|
359
|
+
let n = ke(e, t);
|
|
359
360
|
if (!n || n.startsWith("..") || O(n)) return !1;
|
|
360
361
|
let r = n.split(/[\\/]/);
|
|
361
|
-
return r.length <= 7 && !r.some((e) =>
|
|
362
|
+
return r.length <= 7 && !r.some((e) => R.has(e));
|
|
362
363
|
}
|
|
363
|
-
function
|
|
364
|
+
function dt(e) {
|
|
364
365
|
let t = /* @__PURE__ */ new Map(), n = (e, r) => {
|
|
365
366
|
let i = (() => {
|
|
366
367
|
try {
|
|
@@ -371,35 +372,35 @@ function at(e) {
|
|
|
371
372
|
})();
|
|
372
373
|
for (let a of i) {
|
|
373
374
|
let i = k(e, a.name);
|
|
374
|
-
if (a.isDirectory()) r < 6 && !
|
|
375
|
+
if (a.isDirectory()) r < 6 && !R.has(a.name) && n(i, r + 1);
|
|
375
376
|
else if (a.name.endsWith(".css")) {
|
|
376
|
-
let e =
|
|
377
|
+
let e = B(i);
|
|
377
378
|
Object.keys(e).length && t.set(i, e);
|
|
378
379
|
}
|
|
379
380
|
}
|
|
380
381
|
};
|
|
381
382
|
return e && n(e, 0), t;
|
|
382
383
|
}
|
|
383
|
-
var
|
|
384
|
+
var B = (e) => {
|
|
384
385
|
try {
|
|
385
|
-
return
|
|
386
|
+
return lt(w(e, "utf-8"));
|
|
386
387
|
} catch {
|
|
387
388
|
return {};
|
|
388
389
|
}
|
|
389
390
|
};
|
|
390
|
-
function
|
|
391
|
-
return
|
|
391
|
+
function V(e) {
|
|
392
|
+
return z(dt(e).values());
|
|
392
393
|
}
|
|
393
|
-
function
|
|
394
|
+
function ft(e) {
|
|
394
395
|
return e === void 0 || e === !1 || typeof e == "string" && e.trim() ? null : "[bitboss-ui] passthroughDeduper must be false or a module path whose default export is (className: string) => string, e.g. passthroughDeduper: './src/utils/cn.ts'. Remove the key to use the bundled tailwind-merge.";
|
|
395
396
|
}
|
|
396
|
-
var
|
|
397
|
+
var H = "@inertiajs/vue3", pt = [
|
|
397
398
|
"dependencies",
|
|
398
399
|
"devDependencies",
|
|
399
400
|
"peerDependencies",
|
|
400
401
|
"optionalDependencies"
|
|
401
402
|
];
|
|
402
|
-
function
|
|
403
|
+
function mt(e) {
|
|
403
404
|
let t = A(e);
|
|
404
405
|
for (;;) {
|
|
405
406
|
let e = k(t, "package.json");
|
|
@@ -413,13 +414,13 @@ function W(e) {
|
|
|
413
414
|
t = n;
|
|
414
415
|
}
|
|
415
416
|
}
|
|
416
|
-
function
|
|
417
|
-
return
|
|
417
|
+
function U(e, t) {
|
|
418
|
+
return pt.some((n) => {
|
|
418
419
|
let r = e[n];
|
|
419
420
|
return typeof r == "object" && !!r && t in r;
|
|
420
421
|
});
|
|
421
422
|
}
|
|
422
|
-
function
|
|
423
|
+
function ht(e, t) {
|
|
423
424
|
let n = t.split("/"), r = A(e);
|
|
424
425
|
for (;;) {
|
|
425
426
|
if (S(k(r, "node_modules", ...n))) return !0;
|
|
@@ -428,14 +429,14 @@ function ut(e, t) {
|
|
|
428
429
|
r = e;
|
|
429
430
|
}
|
|
430
431
|
}
|
|
431
|
-
function
|
|
432
|
-
let t =
|
|
433
|
-
return !t || !
|
|
432
|
+
function gt(e) {
|
|
433
|
+
let t = mt(e);
|
|
434
|
+
return !t || !U(t, H) ? !1 : ht(e, H);
|
|
434
435
|
}
|
|
435
|
-
function
|
|
436
|
+
function _t(e) {
|
|
436
437
|
return e ? "export { Link as InertiaLink } from '@inertiajs/vue3';\n" : "export const InertiaLink = null;\n";
|
|
437
438
|
}
|
|
438
|
-
var
|
|
439
|
+
var vt = [
|
|
439
440
|
"@floating-ui/vue",
|
|
440
441
|
"@tanstack/vue-virtual",
|
|
441
442
|
"@vueuse/core",
|
|
@@ -450,34 +451,34 @@ var pt = [
|
|
|
450
451
|
"maska/vue",
|
|
451
452
|
"mime",
|
|
452
453
|
"tailwind-merge"
|
|
453
|
-
],
|
|
454
|
-
function
|
|
455
|
-
return typeof e == "string" ? e ===
|
|
454
|
+
], yt = ["bitboss-ui"], bt = "@internationalized/date", xt = H, W = "bitboss-ui";
|
|
455
|
+
function G(e) {
|
|
456
|
+
return typeof e == "string" ? e === W : (e.lastIndex = 0, e.test(W));
|
|
456
457
|
}
|
|
457
|
-
function
|
|
458
|
-
return e === !0 ? [] : e == null || e === !1 ? [
|
|
458
|
+
function St(e) {
|
|
459
|
+
return e === !0 ? [] : e == null || e === !1 ? [W] : (Array.isArray(e) ? e : [e]).some(G) ? [] : [W];
|
|
459
460
|
}
|
|
460
|
-
var
|
|
461
|
-
function
|
|
461
|
+
var Ct = "virtual:bitboss-ui/icons", wt = "\0virtual:bitboss-ui/icons", Tt = "virtual:bitboss-ui/config", Et = "\0virtual:bitboss-ui/config", Dt = "virtual:bitboss-ui/dayjs-locales", Ot = "\0virtual:bitboss-ui/dayjs-locales", kt = "virtual:bitboss-ui/calendars", At = "\0virtual:bitboss-ui/calendars", jt = "virtual:bitboss-ui/locales", Mt = "\0virtual:bitboss-ui/locales", Nt = "virtual:bitboss-ui/styles", Pt = "\0virtual:bitboss-ui/styles", Ft = "virtual:bitboss-ui/vee-validate-missing", It = "\0virtual:bitboss-ui/vee-validate-missing", Lt = "bitboss-ui:vee-validate-missing", K = "[bitboss-ui] BbForm needs vee-validate, which is not installed: run `npm i vee-validate` (an optional peer, >=4.10.0 <5). An app without forms needs nothing.", Rt = ["useForm", "useField"];
|
|
462
|
+
function zt() {
|
|
462
463
|
return [
|
|
463
|
-
`const fail = () => { throw new Error(${JSON.stringify(
|
|
464
|
-
...
|
|
464
|
+
`const fail = () => { throw new Error(${JSON.stringify(K)} + ' (${Lt})'); };`,
|
|
465
|
+
...Rt.map((e) => `export const ${e} = fail;`),
|
|
465
466
|
""
|
|
466
467
|
].join("\n");
|
|
467
468
|
}
|
|
468
|
-
function
|
|
469
|
+
function Bt(e) {
|
|
469
470
|
return /import\s*\{[^}]*\bBbForm\b[^}]*\}\s*from\s*['"]bitboss-ui(?:\/validated)?['"]/.test(e) || /<(?:BbForm|bb-form)[\s>/]/.test(e) || /resolveComponent\(\s*['"](?:BbForm|bb-form)['"]/.test(e);
|
|
470
471
|
}
|
|
471
|
-
var
|
|
472
|
-
function
|
|
473
|
-
let e = k(
|
|
472
|
+
var Vt = "virtual:bitboss-ui/link", Ht = "\0virtual:bitboss-ui/link", Ut = "virtual:bitboss-ui/passthrough-deduper", Wt = "\0virtual:bitboss-ui/passthrough-deduper";
|
|
473
|
+
function Gt() {
|
|
474
|
+
let e = k(L, "styles.css");
|
|
474
475
|
return S(e) ? w(e, "utf-8") : ["main.css", "variables.css"].map((e) => {
|
|
475
|
-
let t = k(
|
|
476
|
+
let t = k(L, "assets/css", e);
|
|
476
477
|
return S(t) ? w(t, "utf-8") : "";
|
|
477
478
|
}).join("\n");
|
|
478
479
|
}
|
|
479
|
-
var
|
|
480
|
-
function
|
|
480
|
+
var Kt = "local", qt = "./assets/icons";
|
|
481
|
+
function Jt(e) {
|
|
481
482
|
let t = {};
|
|
482
483
|
try {
|
|
483
484
|
let n = T(e, {
|
|
@@ -485,15 +486,15 @@ function Gt(e) {
|
|
|
485
486
|
encoding: "utf-8"
|
|
486
487
|
}).filter((e) => e.endsWith(".svg"));
|
|
487
488
|
for (let r of n) {
|
|
488
|
-
let n =
|
|
489
|
+
let n = Oe(r, ".svg");
|
|
489
490
|
try {
|
|
490
|
-
let i =
|
|
491
|
+
let i = Me(w(k(e, r), "utf-8")), a = i && M(i);
|
|
491
492
|
a && (t[n] = a);
|
|
492
493
|
} catch {}
|
|
493
494
|
}
|
|
494
495
|
} catch {}
|
|
495
496
|
return {
|
|
496
|
-
prefix:
|
|
497
|
+
prefix: Kt,
|
|
497
498
|
info: {
|
|
498
499
|
name: "Local",
|
|
499
500
|
author: { name: "Icons automatically inferred from the icons installed locally" },
|
|
@@ -502,12 +503,12 @@ function Gt(e) {
|
|
|
502
503
|
icons: t
|
|
503
504
|
};
|
|
504
505
|
}
|
|
505
|
-
var q = "./.vscode/bitboss-ui.local-icons.json", J = "iconify.customCollectionJsonPaths", Y = "tailwindCSS.classAttributes", X = "tailwindCSS.experimental.classRegex",
|
|
506
|
+
var q = "./.vscode/bitboss-ui.local-icons.json", J = "iconify.customCollectionJsonPaths", Y = "tailwindCSS.classAttributes", X = "tailwindCSS.experimental.classRegex", Yt = "editor.quickSuggestions", Z = "pt(?::[\\w&-]+)*", Xt = [
|
|
506
507
|
"class",
|
|
507
508
|
"className",
|
|
508
509
|
"ngClass",
|
|
509
510
|
"class:list"
|
|
510
|
-
],
|
|
511
|
+
], Zt = "(?:^|[\\s:(])(?:v-bind:)?pt(?::[\\w&-]+)*\\s*=\\s*", Qt = [
|
|
511
512
|
"\\?\\s*'([^\\s':][^']*)'",
|
|
512
513
|
"'([^\\s':][^']*)'(?!\\s*:)",
|
|
513
514
|
"\\?\\s*\"([^\\s\":][^\"]*)\"",
|
|
@@ -515,25 +516,25 @@ var q = "./.vscode/bitboss-ui.local-icons.json", J = "iconify.customCollectionJs
|
|
|
515
516
|
"\\?\\s*`([^\\s`:][^`]*)`",
|
|
516
517
|
"`([^\\s`:][^`]*)`(?!\\s*:)"
|
|
517
518
|
], Q = [
|
|
518
|
-
`${
|
|
519
|
-
`${
|
|
519
|
+
`${Zt}"([\\s\\S]*?)"`,
|
|
520
|
+
`${Zt}'([\\s\\S]*?)'`,
|
|
520
521
|
"\\bpt\\s*:\\s*\\{([\\s\\S]*?)\\}"
|
|
521
|
-
].flatMap((e) =>
|
|
522
|
+
].flatMap((e) => Qt.map((t) => [e, t])), $t = { strings: "on" }, en = () => ({
|
|
522
523
|
[J]: [q],
|
|
523
|
-
[Y]: [...
|
|
524
|
+
[Y]: [...Xt, Z],
|
|
524
525
|
[X]: Q,
|
|
525
|
-
[
|
|
526
|
+
[Yt]: $t
|
|
526
527
|
});
|
|
527
|
-
function
|
|
528
|
+
function tn(e, t) {
|
|
528
529
|
let n = k(t, q);
|
|
529
530
|
try {
|
|
530
|
-
return C(D(n), { recursive: !0 }), E(n, JSON.stringify(
|
|
531
|
+
return C(D(n), { recursive: !0 }), E(n, JSON.stringify(Jt(e)), "utf-8"), null;
|
|
531
532
|
} catch (e) {
|
|
532
|
-
return `[bitboss-ui] could not write ${q} (${e instanceof Error ? e.message : String(e)}) — the Iconify editor extension will not preview local icons. ${
|
|
533
|
+
return `[bitboss-ui] could not write ${q} (${e instanceof Error ? e.message : String(e)}) — the Iconify editor extension will not preview local icons. ${ln}`;
|
|
533
534
|
}
|
|
534
535
|
}
|
|
535
|
-
function
|
|
536
|
-
if (e ===
|
|
536
|
+
function nn(e, t) {
|
|
537
|
+
if (e === qt) return null;
|
|
537
538
|
let n = 0;
|
|
538
539
|
try {
|
|
539
540
|
n = T(t, {
|
|
@@ -541,11 +542,11 @@ function $t(e, t) {
|
|
|
541
542
|
encoding: "utf-8"
|
|
542
543
|
}).filter((e) => e.endsWith(".svg")).length;
|
|
543
544
|
} catch {
|
|
544
|
-
return `[bitboss-ui]
|
|
545
|
+
return `[bitboss-ui] icons.dir "${e}" resolves to ${t}, which does not exist — no \`local:\` icon will render. A relative icons.dir resolves from the Vite root (under Nuxt, \`app/\`).`;
|
|
545
546
|
}
|
|
546
|
-
return n > 0 ? null : `[bitboss-ui]
|
|
547
|
+
return n > 0 ? null : `[bitboss-ui] icons.dir "${e}" resolves to ${t}, which contains no .svg files — no \`local:\` icon will render. A relative icons.dir resolves from the Vite root (under Nuxt, \`app/\`).`;
|
|
547
548
|
}
|
|
548
|
-
function
|
|
549
|
+
function rn(e) {
|
|
549
550
|
let t = "", n = !1, r = !1, i = !1;
|
|
550
551
|
for (let a = 0; a < e.length; a++) {
|
|
551
552
|
let o = e[a], s = e[a + 1];
|
|
@@ -553,8 +554,8 @@ function en(e) {
|
|
|
553
554
|
}
|
|
554
555
|
return t;
|
|
555
556
|
}
|
|
556
|
-
var
|
|
557
|
-
function
|
|
557
|
+
var an = (e) => e === " " || e === " " || e === "\n" || e === "\r";
|
|
558
|
+
function on(e, t) {
|
|
558
559
|
let n = !1, r = !1;
|
|
559
560
|
for (let i = t; i < e.length; i++) {
|
|
560
561
|
let t = e[i], a = e[i + 1];
|
|
@@ -562,11 +563,11 @@ function nn(e, t) {
|
|
|
562
563
|
else if (r) t === "*" && a === "/" && (r = !1, i++);
|
|
563
564
|
else if (t === "/" && a === "/") n = !0, i++;
|
|
564
565
|
else if (t === "/" && a === "*") r = !0, i++;
|
|
565
|
-
else if (!
|
|
566
|
+
else if (!an(t)) return i;
|
|
566
567
|
}
|
|
567
568
|
return -1;
|
|
568
569
|
}
|
|
569
|
-
function
|
|
570
|
+
function sn(e, t) {
|
|
570
571
|
let n = !1, r = !1, i = !1, a = -1, o = 0, s = null;
|
|
571
572
|
for (let c = 0; c < e.length; c++) {
|
|
572
573
|
let l = e[c], u = e[c + 1];
|
|
@@ -581,19 +582,19 @@ function rn(e, t) {
|
|
|
581
582
|
} else if (l === "/" && u === "/") n = !0, c++;
|
|
582
583
|
else if (l === "/" && u === "*") r = !0, c++;
|
|
583
584
|
else if (l === "\"") i = !0, a = c;
|
|
584
|
-
else if (!
|
|
585
|
+
else if (!an(l)) {
|
|
585
586
|
if (l === ":" && s !== null) {
|
|
586
587
|
let n = s === t;
|
|
587
588
|
if (s = null, !n) continue;
|
|
588
|
-
let r =
|
|
589
|
-
return r === -1 || e[r] !== "[" ? null :
|
|
589
|
+
let r = on(e, c + 1);
|
|
590
|
+
return r === -1 || e[r] !== "[" ? null : cn(e, r);
|
|
590
591
|
}
|
|
591
592
|
s = null, l === "{" || l === "[" ? o++ : (l === "}" || l === "]") && o--;
|
|
592
593
|
}
|
|
593
594
|
}
|
|
594
595
|
return null;
|
|
595
596
|
}
|
|
596
|
-
function
|
|
597
|
+
function cn(e, t) {
|
|
597
598
|
let n = !1, r = !1, i = !1, a = 0, o = -1;
|
|
598
599
|
for (let s = t; s < e.length; s++) {
|
|
599
600
|
let c = e[s], l = e[s + 1];
|
|
@@ -608,7 +609,7 @@ function an(e, t) {
|
|
|
608
609
|
} else if (c === "/" && l === "/") n = !0, s++;
|
|
609
610
|
else if (c === "/" && l === "*") r = !0, s++;
|
|
610
611
|
else if (c === "\"") i = !0, o = s + 1;
|
|
611
|
-
else if (!
|
|
612
|
+
else if (!an(c)) {
|
|
612
613
|
if (c === "[" || c === "{") a++, s > t && (o = s + 1);
|
|
613
614
|
else if (c === "]" || c === "}") {
|
|
614
615
|
if (a--, a === 0 && c === "]") return {
|
|
@@ -622,10 +623,10 @@ function an(e, t) {
|
|
|
622
623
|
}
|
|
623
624
|
return null;
|
|
624
625
|
}
|
|
625
|
-
var
|
|
626
|
-
function
|
|
626
|
+
var ln = "Set `vscodeSettings: false` in the plugin options to disable this write.", $ = `add "${J}": ["${q}"], "${Y}" (include ${JSON.stringify(Z)}), and "${X}" for passthrough IntelliSense`, un = (e) => Array.isArray(e) && e.some((e) => typeof e == "string" && (e === "pt(?::[\\w&-]+)*" || e === "pt" || e.startsWith("pt:") || e.startsWith("pt("))), dn = (e) => Array.isArray(e) ? Q.filter((t) => !e.some((e) => JSON.stringify(e) === JSON.stringify(t))) : [...Q], fn = (e) => JSON.stringify(e, null, " ").replace(/\n/g, "\n ");
|
|
627
|
+
function pn(e, t, n) {
|
|
627
628
|
if (n.length === 0) return e;
|
|
628
|
-
let r =
|
|
629
|
+
let r = sn(e, t);
|
|
629
630
|
if (!r) return null;
|
|
630
631
|
if (r.lastSignificantEnd === -1) return e.slice(0, r.close) + n.join(", ") + e.slice(r.close);
|
|
631
632
|
if (e.slice(r.open + 1, r.close).includes("\n")) {
|
|
@@ -634,17 +635,17 @@ function un(e, t, n) {
|
|
|
634
635
|
}
|
|
635
636
|
return e.slice(0, r.lastSignificantEnd) + `, ${n.join(", ")}` + e.slice(r.lastSignificantEnd);
|
|
636
637
|
}
|
|
637
|
-
function
|
|
638
|
+
function mn(e, t, n) {
|
|
638
639
|
if (t.length === 0) return e;
|
|
639
|
-
let r =
|
|
640
|
+
let r = on(e, 0);
|
|
640
641
|
if (r === -1 || e[r] !== "{") return null;
|
|
641
642
|
let i = t.map((e, r) => {
|
|
642
643
|
let i = r === t.length - 1, a = n || !i ? "," : "", o = n || !i ? "" : "\n";
|
|
643
|
-
return `\n\t${JSON.stringify(e.key)}: ${
|
|
644
|
+
return `\n\t${JSON.stringify(e.key)}: ${fn(e.value)}${a}${o}`;
|
|
644
645
|
}).join("");
|
|
645
646
|
return e.slice(0, r + 1) + i + e.slice(r + 1);
|
|
646
647
|
}
|
|
647
|
-
function
|
|
648
|
+
function hn(e, t) {
|
|
648
649
|
let n = k(e, ".vscode"), r = k(n, "settings.json"), i = "";
|
|
649
650
|
try {
|
|
650
651
|
i = w(r, "utf-8");
|
|
@@ -655,34 +656,34 @@ function fn(e, t) {
|
|
|
655
656
|
try {
|
|
656
657
|
return C(n, { recursive: !0 }), E(r, e, "utf-8"), !0;
|
|
657
658
|
} catch (e) {
|
|
658
|
-
return t.warn(`[bitboss-ui] could not write .vscode/settings.json (${e instanceof Error ? e.message : String(e)}) — ${$}. ${
|
|
659
|
+
return t.warn(`[bitboss-ui] could not write .vscode/settings.json (${e instanceof Error ? e.message : String(e)}) — ${$}. ${ln}`), !1;
|
|
659
660
|
}
|
|
660
661
|
};
|
|
661
662
|
if (!i.trim()) {
|
|
662
|
-
if (!s(JSON.stringify(
|
|
663
|
-
t.info(`[bitboss-ui] .vscode/settings.json: wrote "${q}" on "${J}", Tailwind "${Y}" / "${X}" for passthrough, and "${
|
|
663
|
+
if (!s(JSON.stringify(en(), null, " ") + "\n")) return;
|
|
664
|
+
t.info(`[bitboss-ui] .vscode/settings.json: wrote "${q}" on "${J}", Tailwind "${Y}" / "${X}" for passthrough, and "${Yt}". ${ln}`);
|
|
664
665
|
return;
|
|
665
666
|
}
|
|
666
667
|
let c;
|
|
667
668
|
try {
|
|
668
|
-
c = JSON.parse(
|
|
669
|
+
c = JSON.parse(rn(i));
|
|
669
670
|
} catch {
|
|
670
671
|
t.warn(`[bitboss-ui] Could not parse .vscode/settings.json — ${$}.`);
|
|
671
672
|
return;
|
|
672
673
|
}
|
|
673
674
|
let l = (e) => {
|
|
674
675
|
try {
|
|
675
|
-
return c = JSON.parse(
|
|
676
|
+
return c = JSON.parse(rn(e)), i = e, !0;
|
|
676
677
|
} catch {
|
|
677
678
|
return t.warn(`[bitboss-ui] Could not parse .vscode/settings.json after splice — ${$}.`), !1;
|
|
678
679
|
}
|
|
679
680
|
}, u = (e, n, r) => {
|
|
680
681
|
if (!Array.isArray(c[e])) return t.warn(`[bitboss-ui] .vscode/settings.json has a non-array "${e}" — ${$}.`), !1;
|
|
681
|
-
let a =
|
|
682
|
+
let a = pn(i, e, n);
|
|
682
683
|
return a ? l(a) ? (o(r), !0) : !1 : (t.warn(`[bitboss-ui] Could not locate "${e}" in .vscode/settings.json — ${$}.`), !1);
|
|
683
684
|
};
|
|
684
|
-
if (!i.includes("./.vscode/bitboss-ui.local-icons.json") && J in c && u(J, [JSON.stringify(q)], `added "${q}" to "${J}"`), Y in c && !
|
|
685
|
-
let e =
|
|
685
|
+
if (!i.includes("./.vscode/bitboss-ui.local-icons.json") && J in c && u(J, [JSON.stringify(q)], `added "${q}" to "${J}"`), Y in c && !un(c[Y]) && u(Y, [JSON.stringify(Z)], `added ${JSON.stringify(Z)} to "${Y}"`), X in c) {
|
|
686
|
+
let e = dn(c[X]);
|
|
686
687
|
e.length > 0 && u(X, e.map((e) => JSON.stringify(e)), `added ${e.length} "${X}" ${e.length === 1 ? "entry" : "entries"} for passthrough`);
|
|
687
688
|
}
|
|
688
689
|
let d = [];
|
|
@@ -691,22 +692,22 @@ function fn(e, t) {
|
|
|
691
692
|
value: [q]
|
|
692
693
|
}), Y in c || d.push({
|
|
693
694
|
key: Y,
|
|
694
|
-
value: [...
|
|
695
|
+
value: [...Xt, Z]
|
|
695
696
|
}), X in c || d.push({
|
|
696
697
|
key: X,
|
|
697
698
|
value: Q
|
|
698
|
-
}),
|
|
699
|
-
key:
|
|
700
|
-
value:
|
|
699
|
+
}), Yt in c || d.push({
|
|
700
|
+
key: Yt,
|
|
701
|
+
value: $t
|
|
701
702
|
}), d.length > 0) {
|
|
702
|
-
let e = Object.keys(c).length > 0, n =
|
|
703
|
+
let e = Object.keys(c).length > 0, n = mn(i, d, e);
|
|
703
704
|
if (!n) t.warn(`[bitboss-ui] .vscode/settings.json is not a JSON object — ${$}.`);
|
|
704
705
|
else if (l(n)) for (let e of d) o(`added "${e.key}"`);
|
|
705
706
|
}
|
|
706
|
-
a.length !== 0 && s(i) && t.info(`[bitboss-ui] .vscode/settings.json: ${a.join("; ")}. ${
|
|
707
|
+
a.length !== 0 && s(i) && t.info(`[bitboss-ui] .vscode/settings.json: ${a.join("; ")}. ${ln}`);
|
|
707
708
|
}
|
|
708
|
-
var
|
|
709
|
-
async function
|
|
709
|
+
var gn = "virtual:bb-icon/", _n = "\0virtual:bb-icon/";
|
|
710
|
+
async function vn(e, t, n) {
|
|
710
711
|
try {
|
|
711
712
|
let [{ syncAgentSetup: r }, i] = await Promise.all([import(
|
|
712
713
|
/* @vite-ignore */
|
|
@@ -747,107 +748,110 @@ async function hn(e, t, n) {
|
|
|
747
748
|
n.warn(`[bitboss-ui] agent setup failed (${t})`);
|
|
748
749
|
}
|
|
749
750
|
}
|
|
750
|
-
var
|
|
751
|
-
function
|
|
752
|
-
let n =
|
|
751
|
+
var yn = Symbol.for("bitboss-ui:editorRoot");
|
|
752
|
+
function bn(e = {}) {
|
|
753
|
+
let n = fe(e);
|
|
753
754
|
if (n) throw Error(n);
|
|
754
|
-
let r =
|
|
755
|
+
let r = pe(e);
|
|
755
756
|
if (r) throw Error(r);
|
|
756
|
-
let i =
|
|
757
|
-
variantComponents:
|
|
757
|
+
let i = Je(), a = i ? [...Ye(i)?.keys() ?? []] : void 0, s = ue(e.components, {
|
|
758
|
+
variantComponents: ve,
|
|
758
759
|
knownComponents: a
|
|
759
760
|
});
|
|
760
761
|
if (s) throw Error(s);
|
|
761
|
-
let c =
|
|
762
|
-
variantComponents:
|
|
762
|
+
let c = de(e.configScopes, {
|
|
763
|
+
variantComponents: ve,
|
|
763
764
|
knownComponents: a
|
|
764
765
|
});
|
|
765
766
|
if (c) throw Error(c);
|
|
766
|
-
let { components: l } = e, f =
|
|
767
|
-
|
|
767
|
+
let { components: l } = e, f = _e(e.icons);
|
|
768
|
+
if (f) throw Error(f);
|
|
769
|
+
let te = he(e.icons, e.components), h = {
|
|
768
770
|
...e,
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
771
|
+
iconDir: e.icons?.dir ?? qt,
|
|
772
|
+
iconWhitelist: e.icons?.whitelist ?? [],
|
|
773
|
+
...xe(l),
|
|
774
|
+
pt: le(l)
|
|
775
|
+
}, g = e[yn], ne = Ge(L);
|
|
776
|
+
if ("cssLayers" in h && h.cssLayers === void 0) throw Error("[bitboss-ui] cssLayers is present but undefined. If you passed an imported constant such as TAILWIND_V4_LAYERS, the installed bitboss-ui does not export it (older dist?) — upgrade, or pass the array literal. Remove the key entirely for an unlayered sheet.");
|
|
777
|
+
let re = u(h.cssLayers, { resetCss: h.resetCss ?? !1 });
|
|
774
778
|
if (re) throw Error(re);
|
|
775
|
-
let ie =
|
|
779
|
+
let ie = se(h.pt);
|
|
776
780
|
if (ie) throw Error(ie);
|
|
777
|
-
let ae =
|
|
781
|
+
let ae = Ze(h);
|
|
778
782
|
if (ae) throw Error(ae);
|
|
779
|
-
let
|
|
780
|
-
if (
|
|
781
|
-
for (let [e, t] of Object.entries(
|
|
782
|
-
let n =
|
|
783
|
+
let oe = Qe(h.pt, void 0, "components", h);
|
|
784
|
+
if (oe) throw Error(oe);
|
|
785
|
+
for (let [e, t] of Object.entries(h.configScopes ?? {})) {
|
|
786
|
+
let n = Qe(le(t), void 0, `configScopes.${e}`, h);
|
|
783
787
|
if (n) throw Error(n);
|
|
784
788
|
}
|
|
785
|
-
let ce =
|
|
789
|
+
let ce = ft(h.passthroughDeduper);
|
|
786
790
|
if (ce) throw Error(ce);
|
|
787
|
-
let
|
|
788
|
-
let r =
|
|
789
|
-
r && !
|
|
790
|
-
},
|
|
791
|
+
let y, x, De, C, T = !0, E = [], D = !1, O, k, Ae = !1, j = (e, t, n) => {
|
|
792
|
+
let r = tn(e, t);
|
|
793
|
+
r && !Ae && (Ae = !0, n(r));
|
|
794
|
+
}, M = {
|
|
791
795
|
info: (e) => console.warn(e),
|
|
792
796
|
warn: (e) => console.warn(e)
|
|
793
|
-
},
|
|
794
|
-
locale:
|
|
795
|
-
enabledLocales:
|
|
796
|
-
customLocaleKeys:
|
|
797
|
-
}), { calendars:
|
|
798
|
-
locale:
|
|
799
|
-
enabledLocales:
|
|
800
|
-
}),
|
|
801
|
-
B.clear(), V.clear(),
|
|
802
|
-
for (let e of
|
|
797
|
+
}, P = [], je = [], Me = [], { enabled: F, defaultLocale: Ie, extended: I, warnings: Ke } = tt({
|
|
798
|
+
locale: h.locale,
|
|
799
|
+
enabledLocales: h.enabledLocales,
|
|
800
|
+
customLocaleKeys: P
|
|
801
|
+
}), { calendars: Xe, numberingSystems: $e, warnings: ct } = nt({
|
|
802
|
+
locale: h.locale,
|
|
803
|
+
enabledLocales: h.enabledLocales
|
|
804
|
+
}), R = at([...F, ...P]), B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Set(), pt = () => {
|
|
805
|
+
B.clear(), V.clear(), H = Re(y);
|
|
806
|
+
for (let e of Le(y)) B.set(e.prefix, e), V.set(e.prefix, (t) => Fe(e.prefix, t));
|
|
803
807
|
U = null, W = null;
|
|
804
|
-
},
|
|
808
|
+
}, mt = (e, t) => {
|
|
805
809
|
let n = B.get(e);
|
|
806
810
|
if (!n) return !1;
|
|
807
811
|
let r = V.get(e);
|
|
808
812
|
return N(n, t) !== null && (!r || r(t));
|
|
809
|
-
}, U = null, W = null, G = null,
|
|
810
|
-
let e =
|
|
811
|
-
version:
|
|
813
|
+
}, U = null, W = null, G = null, Rt = () => W || (W = (async () => {
|
|
814
|
+
let e = h.iconsScanner ?? {}, n = JSON.stringify({
|
|
815
|
+
version: Ge(L),
|
|
812
816
|
sets: Array.from(B.entries()).map(([e, t]) => [e, t.lastModified ?? 0]).sort(([e], [t]) => e < t ? -1 : +(e > t)),
|
|
813
817
|
include: e.include ?? [],
|
|
814
818
|
exclude: e.exclude ?? [],
|
|
815
819
|
maxFileSize: e.maxFileSize ?? null
|
|
816
820
|
}), r = new t({
|
|
817
|
-
root:
|
|
818
|
-
outDir:
|
|
821
|
+
root: y,
|
|
822
|
+
outDir: O ?? A(y, "dist"),
|
|
819
823
|
scanner: e,
|
|
820
824
|
prefixes: Array.from(B.keys()),
|
|
821
|
-
resolves:
|
|
822
|
-
cacheFile: o(
|
|
825
|
+
resolves: mt,
|
|
826
|
+
cacheFile: o(y),
|
|
823
827
|
cacheKey: n
|
|
824
828
|
}), i = await r.scan();
|
|
825
|
-
if (i.cold &&
|
|
829
|
+
if (i.cold && M.info(`[bitboss-ui] icon scan: ${i.files} files in ${i.elapsed}ms${i.workers ? ` on ${i.workers} threads` : ""} (${r.icons.size} provider icons referenced)`), U = r, G) for (let e of r.includeDirs) G.add(e);
|
|
826
830
|
return r;
|
|
827
831
|
})(), W);
|
|
828
832
|
return {
|
|
829
833
|
name: "bitboss-ui:icon-registry",
|
|
830
834
|
configEnvironment(e, t) {
|
|
831
835
|
if (e !== "client") return;
|
|
832
|
-
let n = t.optimizeDeps?.include ?? [], r =
|
|
836
|
+
let n = t.optimizeDeps?.include ?? [], r = E.filter((e) => !n.includes(e));
|
|
833
837
|
if (r.length) return { optimizeDeps: { include: r } };
|
|
834
838
|
},
|
|
835
839
|
config(e) {
|
|
836
840
|
let t = e.optimizeDeps?.include ?? [], n = e.optimizeDeps?.exclude ?? [], r = e.root ?? process.cwd();
|
|
837
|
-
|
|
838
|
-
let i =
|
|
839
|
-
|
|
841
|
+
T = ht(r, "vee-validate");
|
|
842
|
+
let i = gt(r) ? [...vt, xt] : vt, a = R.found.map(({ pack: e }) => `dayjs/locale/${e}`), o = Xe.length ? [bt] : [];
|
|
843
|
+
E = [
|
|
840
844
|
...i,
|
|
841
845
|
...a,
|
|
842
846
|
...o
|
|
843
847
|
];
|
|
844
848
|
let s = (e.build?.assetsDir ?? "assets").replace(/\/+$/, ""), c = e.build?.rollupOptions?.output, l = (Array.isArray(c) ? c[0] : c)?.chunkFileNames, u = e.ssr;
|
|
845
849
|
u && u.noExternal === !1 && delete u.noExternal;
|
|
846
|
-
let d =
|
|
850
|
+
let d = St(u?.noExternal);
|
|
847
851
|
return {
|
|
848
|
-
...
|
|
852
|
+
...T ? {} : { resolve: { alias: [{
|
|
849
853
|
find: /^vee-validate$/,
|
|
850
|
-
replacement:
|
|
854
|
+
replacement: Ft
|
|
851
855
|
}] } },
|
|
852
856
|
optimizeDeps: {
|
|
853
857
|
include: [
|
|
@@ -855,11 +859,11 @@ function _n(e = {}) {
|
|
|
855
859
|
...a,
|
|
856
860
|
...o
|
|
857
861
|
].filter((e) => !t.includes(e)),
|
|
858
|
-
exclude:
|
|
862
|
+
exclude: yt.filter((e) => !n.includes(e))
|
|
859
863
|
},
|
|
860
864
|
...d.length ? { ssr: { noExternal: d } } : {},
|
|
861
865
|
build: { rollupOptions: { output: { chunkFileNames(e) {
|
|
862
|
-
if (e.facadeModuleId?.startsWith(
|
|
866
|
+
if (e.facadeModuleId?.startsWith(_n)) {
|
|
863
867
|
let t = e.facadeModuleId.slice(17);
|
|
864
868
|
return `${s}/icons/${t.replace("/", "_")}-[hash].js`;
|
|
865
869
|
}
|
|
@@ -868,33 +872,33 @@ function _n(e = {}) {
|
|
|
868
872
|
};
|
|
869
873
|
},
|
|
870
874
|
transform(e, t) {
|
|
871
|
-
return
|
|
875
|
+
return T || t.includes("/node_modules/") || t.startsWith("\0") || !/\.(vue|[cm]?[jt]sx?)(\?|$)/.test(t) || Bt(e) && this.error(`${K}\n used in ${ke(y || process.cwd(), t.split("?")[0])}`), null;
|
|
872
876
|
},
|
|
873
877
|
renderChunk(e) {
|
|
874
|
-
return !
|
|
878
|
+
return !T && e.includes(Lt) && this.error(K), null;
|
|
875
879
|
},
|
|
876
880
|
configResolved(e) {
|
|
877
|
-
|
|
881
|
+
y = e.root, C = g ?? y, D = e.command === "build", O = A(y, e.build?.outDir ?? "dist"), k = e.build?.rollupOptions?.input, e.logger && (M = e.logger);
|
|
878
882
|
},
|
|
879
883
|
resolveId(e) {
|
|
880
|
-
if (e === yt) return bt;
|
|
881
|
-
if (e === xt) return St;
|
|
882
884
|
if (e === Ct) return wt;
|
|
883
|
-
if (e === Dt) return Ot;
|
|
884
885
|
if (e === Tt) return Et;
|
|
885
|
-
if (e ===
|
|
886
|
-
if (e === Rt) return zt;
|
|
886
|
+
if (e === Dt) return Ot;
|
|
887
887
|
if (e === jt) return Mt;
|
|
888
|
-
if (e ===
|
|
889
|
-
if (e
|
|
888
|
+
if (e === kt) return At;
|
|
889
|
+
if (e === Nt) return Pt;
|
|
890
|
+
if (e === Vt) return Ht;
|
|
891
|
+
if (e === Ft) return It;
|
|
892
|
+
if (e === Ut) return Wt;
|
|
893
|
+
if (e.startsWith(gn)) return "\0" + e;
|
|
890
894
|
if (e.startsWith("virtual:bitboss-ui/")) {
|
|
891
|
-
let t =
|
|
895
|
+
let t = qe(e, ne, y);
|
|
892
896
|
t && this.error(t);
|
|
893
897
|
}
|
|
894
898
|
},
|
|
895
899
|
async load(e) {
|
|
896
|
-
if (e ===
|
|
897
|
-
let { iconDir: e,
|
|
900
|
+
if (e === Et) {
|
|
901
|
+
let { iconDir: e, iconWhitelist: t, icons: n, enabledLocales: r, passthroughDeduper: i, configScopes: a, components: o, pt: s, ...c } = h, l = {
|
|
898
902
|
inertiaLinkName: "Link",
|
|
899
903
|
nuxtLinkName: "NuxtLink",
|
|
900
904
|
linkActiveClass: "router-link-active",
|
|
@@ -906,89 +910,98 @@ function _n(e = {}) {
|
|
|
906
910
|
resetCss: !1,
|
|
907
911
|
cssLayers: void 0,
|
|
908
912
|
injectDirectives: !0,
|
|
909
|
-
...Object.fromEntries(Object.entries(
|
|
910
|
-
pt:
|
|
911
|
-
components:
|
|
913
|
+
...Object.fromEntries(Object.entries(c).filter(([e]) => !Object.values(b).includes(e))),
|
|
914
|
+
pt: h.pt,
|
|
915
|
+
components: me(h.components),
|
|
916
|
+
iconDefaults: h.icons?.defaults ?? {},
|
|
912
917
|
variantIcons: {
|
|
913
|
-
toast:
|
|
914
|
-
alert:
|
|
918
|
+
toast: Te(h.toastVariants),
|
|
919
|
+
alert: Te(h.alertVariants)
|
|
915
920
|
},
|
|
916
|
-
variantNames: Object.fromEntries(Object.keys(
|
|
917
|
-
defaultLocale:
|
|
918
|
-
...
|
|
921
|
+
variantNames: Object.fromEntries(Object.keys(b).map((e) => [b[e], ye(v[e], h[b[e]])])),
|
|
922
|
+
defaultLocale: Ie,
|
|
923
|
+
...h.locale !== void 0 && _(h.locale) ? { locale: Ie } : {}
|
|
919
924
|
};
|
|
920
|
-
return `import { reactive } from 'vue';\nexport const config = reactive(${JSON.stringify(
|
|
925
|
+
return `import { reactive } from 'vue';\nexport const config = reactive(${JSON.stringify(l)});\nexport const configScopes = ${JSON.stringify(a ?? {})};\n`;
|
|
921
926
|
}
|
|
922
|
-
if (e ===
|
|
923
|
-
if (e ===
|
|
924
|
-
if (e ===
|
|
925
|
-
enabled:
|
|
926
|
-
extended:
|
|
927
|
-
numberingSystems:
|
|
927
|
+
if (e === Mt) return it(F);
|
|
928
|
+
if (e === Ot) return ot(R.found);
|
|
929
|
+
if (e === At) return rt(Xe, {
|
|
930
|
+
enabled: F.filter((e) => p[e].dayjs === null || R.found.some((t) => t.key === e)),
|
|
931
|
+
extended: I.length > 0,
|
|
932
|
+
numberingSystems: $e
|
|
928
933
|
});
|
|
929
|
-
if (e ===
|
|
930
|
-
if (e ===
|
|
931
|
-
if (e ===
|
|
932
|
-
if (e ===
|
|
933
|
-
if (
|
|
934
|
-
|
|
935
|
-
let e =
|
|
936
|
-
return
|
|
934
|
+
if (e === Pt) return `export default ${JSON.stringify(Gt())};`;
|
|
935
|
+
if (e === It) return zt();
|
|
936
|
+
if (e === Ht) return _t(gt(y));
|
|
937
|
+
if (e === Wt) {
|
|
938
|
+
if (h.passthroughDeduper !== void 0) return st(h.passthroughDeduper, y);
|
|
939
|
+
x ??= dt(y);
|
|
940
|
+
let e = z(x.values());
|
|
941
|
+
return De = JSON.stringify(e), st(void 0, y, void 0, e);
|
|
937
942
|
}
|
|
938
|
-
if (e.startsWith(
|
|
943
|
+
if (e.startsWith(_n)) {
|
|
939
944
|
let t = e.slice(17), n = t.indexOf("/"), r = t.slice(0, n), i = t.slice(n + 1), a = B.get(r);
|
|
940
945
|
a || this.error(`[bitboss-ui] cannot load "${r}:${i}" — @iconify-json/${r} is not installed.\n Run: npm install -D @iconify-json/${r}`);
|
|
941
946
|
let o = N(a, i);
|
|
942
|
-
return o || this.error(`[bitboss-ui] icon "${i}" does not exist in the ${r} icon set`), `export default ${JSON.stringify(
|
|
947
|
+
return o || this.error(`[bitboss-ui] icon "${i}" does not exist in the ${r} icon set`), `export default ${JSON.stringify(Pe(o))};`;
|
|
943
948
|
}
|
|
944
|
-
if (e !==
|
|
945
|
-
let t = A(
|
|
946
|
-
i.errors.length > 0 && this.error(i.errors.length === 1 ? i.errors[0] : `[bitboss-ui]
|
|
947
|
-
let a =
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
949
|
+
if (e !== wt) return;
|
|
950
|
+
let t = A(y, h.iconDir), n = "/" + ke(y, t).replace(/\\/g, "/") + "/**/*.svg", r = await Rt(), i = Ve(h.iconWhitelist, B, V, H);
|
|
951
|
+
i.errors.length > 0 && this.error(i.errors.length === 1 ? i.errors[0] : `[bitboss-ui] icons.whitelist has ${i.errors.length} entries that do not resolve:\n - ${i.errors.map((e) => e.replace(/^\[bitboss-ui\] /, "")).join("\n - ")}`);
|
|
952
|
+
let a = Ve(te.filter((e) => !e.startsWith("local:")), B, V, H);
|
|
953
|
+
a.errors.length > 0 && this.error(a.errors.map((e) => e.replace("icons.whitelist entry", "icons.defaults / components.<C>.icons name")).join("\n"));
|
|
954
|
+
let o = /* @__PURE__ */ new Set([
|
|
955
|
+
...r.icons,
|
|
956
|
+
...i.icons,
|
|
957
|
+
...a.icons
|
|
958
|
+
]), s = Array.from(o).sort().flatMap((e) => {
|
|
959
|
+
let t = Ne(e);
|
|
960
|
+
return t ? [`\t${JSON.stringify(e)}: () => import(${JSON.stringify(gn + t.prefix + "/" + t.name)}).then(m => m.default),`] : [];
|
|
961
|
+
}).join("\n"), c = D ? null : Object.fromEntries(Array.from(B.entries()).map(([e, t]) => [e, Be(t, V.get(e))]));
|
|
962
|
+
return `const _local = import.meta.glob(${JSON.stringify(n)}, { query: '?raw', import: 'default' });\nconst _localIcons = Object.fromEntries(Object.entries(_local).map(([k, l]) => { const f = k.split(/[/\\\\]+/).pop(); return [\`local:\${f.replace(/\\.svg$/i, '')}\`, l]; }));\nconst _icons = {\n` + (s ? s + "\n" : "") + `\t..._localIcons,\n};\nconst _ip = new Set(${JSON.stringify(Array.from(H))});\nconst _loaded = new Set(${JSON.stringify(Array.from(B.keys()))});\nconst _all = ${c ? JSON.stringify(c) : "null"};\nconst _diag = ${ze};\nconst _fail = (msg) => () => { const _e = new Error(); import.meta.hot?.send('bitboss-ui:icon-missing', { msg, stack: _e.stack }); return Promise.reject(new Error(msg)); };\nexport const icons = new Proxy(_icons, {\n\tget(t, k) {\n\t\tif (k in t || typeof k !== 'string' || !k.includes(':')) return t[k];\n\t\tconst _msg = _diag(k, _loaded, (p) => Object.keys(t).filter((x) => x.startsWith(p + ':')).map((x) => x.slice(p.length + 1)), (p) => (_all && _all[p]) || null, _ip);\n\t\treturn _msg ? _fail(_msg) : undefined;\n\t},\n});\n`;
|
|
952
963
|
},
|
|
953
964
|
buildStart() {
|
|
954
|
-
|
|
955
|
-
let e = A(
|
|
956
|
-
|
|
957
|
-
|
|
965
|
+
pt();
|
|
966
|
+
let e = A(y, h.iconDir), t = nn(h.iconDir, e);
|
|
967
|
+
t && this.warn(t);
|
|
968
|
+
let n = ge(te.filter((e) => e.startsWith("local:")), e);
|
|
969
|
+
if (n.length && this.error(`[bitboss-ui] icons: ${n.map((e) => `"${e}"`).join(", ")} ${n.length === 1 ? "is" : "are"} not an SVG in icons.dir (${e}). A \`local:\` name is a file's basename.`), !D) {
|
|
970
|
+
let e = He(C, Ge(L));
|
|
958
971
|
e && this.warn(e);
|
|
959
972
|
}
|
|
960
|
-
!
|
|
973
|
+
!D && h.vscodeSettings !== !1 && (j(e, C, (e) => this.warn(e)), hn(C, {
|
|
961
974
|
info: (e) => this.info(e),
|
|
962
975
|
warn: (e) => this.warn(e)
|
|
963
976
|
}));
|
|
964
|
-
for (let e of
|
|
965
|
-
for (let e of Ne) this.warn(e);
|
|
977
|
+
for (let e of je) this.warn(e);
|
|
966
978
|
for (let e of Ke) this.warn(e);
|
|
967
|
-
for (let e of
|
|
968
|
-
for (let e of
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
979
|
+
for (let e of ct) this.warn(e);
|
|
980
|
+
for (let e of Me) this.warn(e);
|
|
981
|
+
for (let e of R.missing) this.warn(`[bitboss-ui] locale '${e}' has no dayjs counterpart (dayjs/locale/${e}) — its calendars fall back to English. Dayjs locale names: https://github.com/iamkun/dayjs/tree/dev/src/locale`);
|
|
982
|
+
h.locale && !m(h.locale) && !P.includes(h.locale) && this.warn(`[bitboss-ui] \`locale: '${h.locale}'\` is not a built-in locale${et(h.locale)} — the library ships ${d.length} locales. Strings fall back to the default locale.`);
|
|
983
|
+
let r = we({
|
|
984
|
+
root: y,
|
|
985
|
+
input: k,
|
|
986
|
+
dts: h.dts
|
|
974
987
|
});
|
|
975
|
-
if (
|
|
976
|
-
let e =
|
|
988
|
+
if (r) {
|
|
989
|
+
let e = Ce(h), t = Ee(r, {
|
|
977
990
|
...e,
|
|
978
991
|
LocaleRegistry: [
|
|
979
|
-
...
|
|
980
|
-
...
|
|
981
|
-
...
|
|
992
|
+
...F.flatMap((e) => [e, ...ee(e)]),
|
|
993
|
+
...I,
|
|
994
|
+
...P
|
|
982
995
|
],
|
|
983
|
-
ConfigScopeRegistry: Object.keys(
|
|
984
|
-
EmptyStringControlRegistry:
|
|
985
|
-
}),
|
|
986
|
-
t === "changed" ? this.info(`[bitboss-ui] Wrote ${
|
|
996
|
+
ConfigScopeRegistry: Object.keys(h.configScopes ?? {}),
|
|
997
|
+
EmptyStringControlRegistry: be(h.components)
|
|
998
|
+
}), n = Ue(r);
|
|
999
|
+
t === "changed" ? this.info(`[bitboss-ui] Wrote ${n} — commit this file so CI and teammates get matching types.`) : typeof t == "object" && !We.has("write") && (We.add("write"), this.warn(`[bitboss-ui] could not write ${n} (${t.error}). The committed copy still types the app; regenerate it where the project is writable.`)), !We.has("program") && S(r) && (We.add("program"), Se(y, r) === !1 && this.warn(`[bitboss-ui] ${n} is outside your TypeScript project — custom names will look like typos. Set \`dts\` to a path inside your app sources (for example resources/js/).`));
|
|
987
1000
|
}
|
|
988
1001
|
},
|
|
989
1002
|
configureServer(e) {
|
|
990
|
-
|
|
991
|
-
let t = A(e.config.root,
|
|
1003
|
+
vn(g ?? e.config.root, h.ai !== !1, e.config.logger);
|
|
1004
|
+
let t = A(e.config.root, h.iconDir), n = (e) => e.startsWith(t) && e.endsWith(".svg");
|
|
992
1005
|
e.ws.on("bitboss-ui:icon-missing", (t) => {
|
|
993
1006
|
if (process.env.VITEST || e.config.mode === "test") return;
|
|
994
1007
|
let n = t.stack ? t.stack.replace(/^Error/, `Error: ${t.msg}`) : `Error: ${t.msg}`;
|
|
@@ -1002,25 +1015,25 @@ function _n(e = {}) {
|
|
|
1002
1015
|
});
|
|
1003
1016
|
});
|
|
1004
1017
|
let r = async (t, n) => {
|
|
1005
|
-
if (
|
|
1006
|
-
let r = n ? {} :
|
|
1018
|
+
if (h.passthroughDeduper !== void 0 || !x || !ut(y, t)) return;
|
|
1019
|
+
let r = n ? {} : lt((() => {
|
|
1007
1020
|
try {
|
|
1008
1021
|
return w(t, "utf-8");
|
|
1009
1022
|
} catch {
|
|
1010
1023
|
return "";
|
|
1011
1024
|
}
|
|
1012
1025
|
})());
|
|
1013
|
-
if (Object.keys(r).length)
|
|
1014
|
-
else if (!
|
|
1015
|
-
let i = JSON.stringify(
|
|
1016
|
-
if (i ===
|
|
1017
|
-
|
|
1018
|
-
let a = e.moduleGraph.getModuleById(
|
|
1026
|
+
if (Object.keys(r).length) x.set(t, r);
|
|
1027
|
+
else if (!x.delete(t)) return;
|
|
1028
|
+
let i = JSON.stringify(z(x.values()));
|
|
1029
|
+
if (i === De) return;
|
|
1030
|
+
De = i;
|
|
1031
|
+
let a = e.moduleGraph.getModuleById(Wt);
|
|
1019
1032
|
a && await e.reloadModule(a);
|
|
1020
1033
|
};
|
|
1021
1034
|
e.watcher.on("change", (e) => void r(e, !1)), e.watcher.on("add", (e) => void r(e, !1)), e.watcher.on("unlink", (e) => void r(e, !0));
|
|
1022
1035
|
let i = async () => {
|
|
1023
|
-
let t = e.moduleGraph.getModuleById(
|
|
1036
|
+
let t = e.moduleGraph.getModuleById(wt);
|
|
1024
1037
|
t && await e.reloadModule(t);
|
|
1025
1038
|
}, a, o = () => {
|
|
1026
1039
|
clearTimeout(a), a = setTimeout(() => void U?.persist(), 500);
|
|
@@ -1028,7 +1041,7 @@ function _n(e = {}) {
|
|
|
1028
1041
|
s = s.then(async () => {
|
|
1029
1042
|
if (!U) return;
|
|
1030
1043
|
let n;
|
|
1031
|
-
if (
|
|
1044
|
+
if (Oe(t) === ".gitignore") {
|
|
1032
1045
|
let e = U.icons;
|
|
1033
1046
|
U.resetGitignores(), await U.scan();
|
|
1034
1047
|
let t = U.icons;
|
|
@@ -1036,7 +1049,7 @@ function _n(e = {}) {
|
|
|
1036
1049
|
} else n = e === "unlink" ? U.removeFile(t) : await U.updateFile(t);
|
|
1037
1050
|
o(), n && await i();
|
|
1038
1051
|
}).catch((e) => {
|
|
1039
|
-
|
|
1052
|
+
M.warn(`[bitboss-ui] icon scan: could not update ${t} (${e instanceof Error ? e.message : String(e)})`);
|
|
1040
1053
|
});
|
|
1041
1054
|
};
|
|
1042
1055
|
if (G = e.watcher, U) for (let e of U.includeDirs) G.add(e);
|
|
@@ -1045,9 +1058,9 @@ function _n(e = {}) {
|
|
|
1045
1058
|
"change",
|
|
1046
1059
|
"unlink"
|
|
1047
1060
|
]) e.watcher.on(r, (i) => {
|
|
1048
|
-
n(i) ?
|
|
1061
|
+
n(i) ? h.vscodeSettings !== !1 && j(t, g ?? e.config.root, (e) => M.warn(e)) : c(r, i);
|
|
1049
1062
|
});
|
|
1050
1063
|
}
|
|
1051
1064
|
};
|
|
1052
1065
|
}
|
|
1053
|
-
export { s as BB_LAYERS, d as BUILTIN_LOCALE_KEYS,
|
|
1066
|
+
export { s as BB_LAYERS, d as BUILTIN_LOCALE_KEYS, bt as CALENDAR_ENGINE, De as DEFAULTS_ALLOWLIST, e as DEFAULT_MAX_FILE_SIZE, v as DEFAULT_VARIANT_REGISTRIES, t as IconScanner, q as LOCAL_ICONS_JSON_PATH, yt as REQUIRED_OPTIMIZE_DEPS_EXCLUDE, vt as REQUIRED_OPTIMIZE_DEPS_INCLUDE, W as SSR_NO_EXTERNAL, Xt as TAILWIND_CLASS_ATTRIBUTES_DEFAULTS, Z as TAILWIND_PT_CLASS_ATTRIBUTE, Q as TAILWIND_PT_CLASS_REGEX, c as TAILWIND_V3_LAYERS, l as TAILWIND_V4_LAYERS, K as VEE_MISSING_MESSAGE, bn as bitbossUi, V as collectThemeNames, en as defaultVscodeSettings, I as diagnoseMissingIcon, Ve as expandIconWhitelist, n as extractIconCandidates, rt as generateCalendarsModule, ot as generateDayjsLocalesModule, _t as generateLinkModule, it as generateLocalesModule, st as generatePassthroughDeduperModule, zt as generateVeeMissingModule, gt as hasInertia, a as iconLiteralRegExp, o as iconScanCacheFile, _ as invalidLocaleTag, ut as isAppThemeCss, nn as localIconDirWarning, z as mergeThemeNames, nt as resolveCalendars, at as resolveDayjsLocales, tt as resolveEnabledLocales, St as resolveSsrNoExternal, dt as scanThemeFiles, rn as stripJsonComments, lt as themeNamesInCss, hn as updateVscodeSettings, He as upgradeHint, Bt as usesBbForm, ft as validatePassthroughDeduper, Qe as validatePtGlobalMapNames, Ze as validateVariantNames, tn as writeLocalIconifyCollection };
|