@astryx-vue/core 0.2.0 → 0.2.1
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/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-EiGyPFbA.js → AppShell-1wNIEtK_.js} +2 -2
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar-jmHInHwj.js +244 -0
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-CZcgAMjM.js → AvatarGroup-QyzSrpYA.js} +8 -7
- package/dist/Badge/index.d.ts +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Badge-CjDQPF5g.js +30 -0
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/{Breadcrumbs-C3YZFQ9w.js → Breadcrumbs-C97HmjkC.js} +45 -11
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +2 -2
- package/dist/Calendar/index.js +1 -1
- package/dist/Calendar-DqC3EDN1.js +352 -0
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-BTtHkKea.js → Carousel-BGUnskjo.js} +2 -2
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DjNxw5gv.js → Chat-DCjXRiOF.js} +8 -8
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-DijdbUUu.js → Citation-DunoAqVH.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-CxTb6j9_.js → CodeBlock-CAF-VJnh.js} +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-9MC08X39.js → Collapsible-DvMiYJp7.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BD2iODF5.js → CommandPalette-xfm9ldUI.js} +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-D9iXd5cH.js → ComplexSelector-B6lBTRhP.js} +2 -2
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-HS_WqYIg.js → ContextMenu-DUkED3Z3.js} +101 -63
- package/dist/DateInput/index.d.ts +2 -2
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput-Crcg-CCj.js +376 -0
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-1bhPGG2s.js → DateRangeInput-e9KSxBBK.js} +2 -2
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-SnPdgk6P.js → DateTimeInput-fSOfuLex.js} +5 -3
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +3 -2
- package/dist/DropdownMenu/index.js +3 -2
- package/dist/{DropdownMenu-UJGych6v.js → DropdownMenu-8G0B1UND.js} +63 -16
- package/dist/DropdownMenu-XvW4BJob.js +164 -0
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BQiwE-GB.js → FileInput-D-fchyQH.js} +2 -2
- package/dist/Icon/index.d.ts +4 -3
- package/dist/Icon/index.js +3 -2
- package/dist/Icon/plugin.d.ts +45 -0
- package/dist/Icon/plugin.js +177 -0
- package/dist/Icon-Bku25g_K.js +193 -0
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-CshKoB0r.js → Lightbox-uuVGgHxW.js} +2 -2
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/Link-DqdQZ37C.js +141 -0
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-D-Ua055V.js → Markdown-DLICa3db.js} +3 -3
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-sYph_d8Q.js → MetadataList-h492rqEN.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-DD9D01aj.js → MobileNavToggle-BMj3Wtuq.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BVrK5kkk.js → MoreMenu-DkYi5az5.js} +2 -2
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DiYov9sF.js → MultiSelector-C2IS-EaU.js} +2 -2
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +2 -2
- package/dist/NumberInput/index.js +1 -1
- package/dist/NumberInput-CjfAsFwj.js +210 -0
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-DQfEBxlc.js → Outline-BTmrtvXR.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-BU5VCntl.js → OverflowList-CRE8BE7V.js} +1 -1
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +2 -2
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-HdhtykeF.js → Pagination-BpGXPmc7.js} +76 -22
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-ChDp-7oe.js → ProgressBar-DO9Chic6.js} +31 -11
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-BhSMfO5B.js → Resizable-CE8XQDL2.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +2 -2
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-DkJOLZSR.js +468 -0
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-B-Om6Bz3.js → SideNav-DcDWBnXJ.js} +17 -17
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-BZ_8SEZt.js → Stepper-DZKaqEoz.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-Cnc2Hs1H.js → TabList-hm06QPiW.js} +10 -3
- package/dist/Table/index.js +1 -1
- package/dist/{Table-D-LhAy_J.js → Table-DwehtMap.js} +4 -4
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-Cv9UVbzS.js → TextArea-CPwSytdO.js} +12 -6
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-Dc1UpykG.js → Thumbnail-CAOYds8t.js} +11 -11
- package/dist/{TimeField-C7t9Knq9.js → TimeField-BGbxCoKU.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-BXxCOY98.js → TimeInput-DJP3l4ZS.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +2 -1
- package/dist/{Timestamp-DlZSmgCJ.js → Timestamp-BzRp8uWc.js} +4 -121
- package/dist/Toast/index.d.ts +2 -2
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-BKXPvEMp.js → Toast-C2ML-bmi.js} +37 -7
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-wt4e80IM.js → Token-CjocuhzE.js} +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-nmTqdS9n.js → Tokenizer-mYES5SPM.js} +2 -2
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-notp-mJx.js → TopNav-C2t6JkZb.js} +3 -3
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-s1xBQ0qq.js → TreeList-THJ0KamE.js} +3 -3
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-VAuiCurV.js → Typeahead-D7VnvRpK.js} +2 -2
- package/dist/{context-Dbo22sck.js → context-DzcK4T_C.js} +4 -2
- package/dist/formatInstant-BDWUIxS7.js +119 -0
- package/dist/{index-Bainr_3n.d.ts → index-3p2BDVHq.d.ts} +1 -1
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-CTolyeii.d.ts → index-BLOEjvaM.d.ts} +16 -2
- package/dist/{index-z4p2k9VR.d.ts → index-Bgv4ZmBl.d.ts} +20 -2
- package/dist/{index-BoRIw-bP.d.ts → index-Bt7ewoz2.d.ts} +32 -2
- package/dist/{index-uQrLBZfF.d.ts → index-Bu3oXIIS.d.ts} +24 -0
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-C59PdX9L.d.ts → index-CBym0hSq.d.ts} +1 -1
- package/dist/index-CJlBAXwj.d.ts +100 -0
- package/dist/{index-DT9S92sh.d.ts → index-CNjbOgty.d.ts} +15 -0
- package/dist/{index-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
- package/dist/{index-DoFCm2Q2.d.ts → index-Clmz00IK.d.ts} +2 -0
- package/dist/{index-DRmb-oUa.d.ts → index-CuFLztiI.d.ts} +6 -1
- package/dist/{index-fa72tWIU.d.ts → index-D2bSSSBP.d.ts} +1 -1
- package/dist/{index-NzLDrOkk.d.ts → index-DAiGhkNZ.d.ts} +15 -2
- package/dist/{index-DOUEn7V0.d.ts → index-DQAnGHu7.d.ts} +2 -2
- package/dist/{index-BfOtLyNH.d.ts → index-D_nYxnNv.d.ts} +1 -1
- package/dist/{index-C6iJwTL0.d.ts → index-DeOftUMq.d.ts} +181 -72
- package/dist/{index-Bn_odHQ9.d.ts → index-Dg3ZmwEg.d.ts} +12 -1
- package/dist/{index-BiMGXtD-.d.ts → index-DimuSES0.d.ts} +14 -1
- package/dist/{index-C_2Z65Rp.d.ts → index-DnEh-HA0.d.ts} +1 -1
- package/dist/{index-D-ZuubCK.d.ts → index-DnSrjbjP.d.ts} +1 -1
- package/dist/{index-BtPZKO20.d.ts → index-I4J7gwa1.d.ts} +49 -7
- package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
- package/dist/{index-C7mxUcDR.d.ts → index-Z_onS2lR.d.ts} +2 -2
- package/dist/{index-CVn0GBdB.d.ts → index-cG1E0U2s.d.ts} +1 -1
- package/dist/{index-DEeJowZf.d.ts → index-cGagYM1g.d.ts} +15 -2
- package/dist/{index-Ck8qy6Rf.d.ts → index-c_TaW8mM.d.ts} +24 -2
- package/dist/index.d.ts +68 -67
- package/dist/index.js +98 -95
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +1 -1
- package/dist/registry-B1ObuP--.d.ts +45 -0
- package/dist/registry-C7OZb0PJ.js +135 -0
- package/dist/{types-DZoEm_DG.d.ts → types-BKcxXW--.d.ts} +22 -5
- package/dist/{index-B8MbfMwV.d.ts → types-DDAAT1Xd.d.ts} +36 -82
- package/package.json +6 -1
- package/styles/avatar.css +14 -0
- package/styles/badge.css +8 -0
- package/styles/breadcrumbs.css +6 -1
- package/styles/button.css +13 -0
- package/styles/calendar.css +16 -0
- package/styles/card.css +2 -0
- package/styles/chat.css +5 -2
- package/styles/dropdown-menu.css +11 -0
- package/styles/icon.css +38 -8
- package/styles/link.css +5 -0
- package/styles/number-input.css +22 -0
- package/styles/pagination.css +45 -1
- package/styles/progress-bar.css +4 -0
- package/styles/selector.css +58 -0
- package/styles/tab-list.css +15 -0
- package/styles/text-area.css +17 -0
- package/styles/text-input.css +5 -0
- package/styles/toast.css +7 -0
- package/styles/toolbar.css +11 -0
- package/dist/Avatar-5s3HSrtN.js +0 -136
- package/dist/Badge-Ba0EwsTj.js +0 -19
- package/dist/Calendar-BG7wEsro.js +0 -277
- package/dist/DateInput-DE2TN1Rq.js +0 -250
- package/dist/Icon-Dfr4k6-S.js +0 -86
- package/dist/Link-CprjOuTI.js +0 -92
- package/dist/NumberInput-CTYiQxHq.js +0 -147
- package/dist/Selector-Da-2BO3q.js +0 -325
- package/dist/index-DtjAdYEc.d.ts +0 -68
- package/dist/{CheckboxList-EsIEXjK_.js → CheckboxList-BbCPiend.js} +1 -1
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { a as parseIconName, o as resolveCollectionIcon, t as ASTRYX_ICON_QUEUE } from "../registry-C7OZb0PJ.js";
|
|
2
|
+
import { readFileSync } from "node:fs";
|
|
3
|
+
import { createRequire } from "node:module";
|
|
4
|
+
import { dirname, join } from "node:path";
|
|
5
|
+
import process from "node:process";
|
|
6
|
+
//#region src/Icon/plugin.ts
|
|
7
|
+
const VIRTUAL = "virtual:astryx-icon/";
|
|
8
|
+
const ICON_PART = "[a-z0-9]+(?:[-_][a-z0-9]+)*";
|
|
9
|
+
/**
|
|
10
|
+
* Vite plugin that bundles only the icons a project names in source.
|
|
11
|
+
*
|
|
12
|
+
* A static `name="carbon:settings"` becomes an import of that one icon. The
|
|
13
|
+
* collection JSON stays on disk; the client bundle receives the used bodies.
|
|
14
|
+
* Names built at runtime are invisible here — register those with
|
|
15
|
+
* `addCollection`.
|
|
16
|
+
*/
|
|
17
|
+
function astryxIcons(options = {}) {
|
|
18
|
+
const cache = /* @__PURE__ */ new Map();
|
|
19
|
+
let root = process.cwd();
|
|
20
|
+
let prefixes;
|
|
21
|
+
const warned = /* @__PURE__ */ new Set();
|
|
22
|
+
function load(prefix) {
|
|
23
|
+
const key = prefix.toLowerCase();
|
|
24
|
+
if (cache.has(key)) return cache.get(key);
|
|
25
|
+
const loaded = (options.loadCollection ?? readInstalledCollection)(key, root);
|
|
26
|
+
cache.set(key, loaded);
|
|
27
|
+
return loaded;
|
|
28
|
+
}
|
|
29
|
+
function availablePrefixes() {
|
|
30
|
+
prefixes ??= (options.collections ?? discoverPrefixes(root)).map((prefix) => prefix.toLowerCase());
|
|
31
|
+
return prefixes;
|
|
32
|
+
}
|
|
33
|
+
function resolveSpecifier(raw) {
|
|
34
|
+
const parsed = parseIconName(raw, availablePrefixes());
|
|
35
|
+
if (parsed == null || !availablePrefixes().includes(parsed.prefix)) return void 0;
|
|
36
|
+
const collection = load(parsed.prefix);
|
|
37
|
+
if (collection == null) {
|
|
38
|
+
warnMissing(`${parsed.prefix}:${parsed.name}`, `Install @iconify-json/${parsed.prefix}.`);
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (resolveCollectionIcon(collection, parsed.name) == null) {
|
|
42
|
+
warnMissing(`${parsed.prefix}:${parsed.name}`, "The collection has no icon by that name.");
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
return parsed;
|
|
46
|
+
}
|
|
47
|
+
function warnMissing(name, detail) {
|
|
48
|
+
if (warned.has(name)) return;
|
|
49
|
+
warned.add(name);
|
|
50
|
+
console.warn(`[astryx-vue] Icon "${name}" was not bundled. ${detail}`);
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
name: "astryx-icons",
|
|
54
|
+
enforce: "pre",
|
|
55
|
+
configResolved(config) {
|
|
56
|
+
root = findPackageRoot(config.root);
|
|
57
|
+
cache.clear();
|
|
58
|
+
prefixes = void 0;
|
|
59
|
+
},
|
|
60
|
+
resolveId(id) {
|
|
61
|
+
if (id.startsWith(VIRTUAL)) return `\0${id}`;
|
|
62
|
+
},
|
|
63
|
+
load(id) {
|
|
64
|
+
if (!id.startsWith(`\0${VIRTUAL}`)) return void 0;
|
|
65
|
+
const spec = id.slice(`\0${VIRTUAL}`.length);
|
|
66
|
+
const slash = spec.indexOf("/");
|
|
67
|
+
if (slash <= 0) return "export {}";
|
|
68
|
+
const prefix = spec.slice(0, slash);
|
|
69
|
+
const name = spec.slice(slash + 1);
|
|
70
|
+
const data = resolveCollectionIcon(load(prefix), name);
|
|
71
|
+
if (data == null) return "export {}";
|
|
72
|
+
const payload = iconPayload(data);
|
|
73
|
+
return `const queue = (globalThis[${JSON.stringify(ASTRYX_ICON_QUEUE)}] ??= [])\nqueue.push([${JSON.stringify(`${prefix}:${name}`)}, ${JSON.stringify(payload)}])\n`;
|
|
74
|
+
},
|
|
75
|
+
transform(code, id) {
|
|
76
|
+
if (!shouldScan(id)) return void 0;
|
|
77
|
+
const specs = /* @__PURE__ */ new Map();
|
|
78
|
+
for (const raw of extractIconCandidates(code)) {
|
|
79
|
+
const resolved = resolveSpecifier(raw);
|
|
80
|
+
if (resolved == null) continue;
|
|
81
|
+
specs.set(`${resolved.prefix}/${resolved.name}`, resolved);
|
|
82
|
+
}
|
|
83
|
+
if (specs.size === 0) return void 0;
|
|
84
|
+
const block = [...specs.values()].map((spec) => {
|
|
85
|
+
return `import '${VIRTUAL}${spec.prefix}/${spec.name}'`;
|
|
86
|
+
}).join("\n");
|
|
87
|
+
const next = (id.split("?", 1)[0] ?? id).endsWith(".vue") ? injectVue(code, block) : injectModule(code, block);
|
|
88
|
+
if (next === code) return void 0;
|
|
89
|
+
return {
|
|
90
|
+
code: next,
|
|
91
|
+
map: null
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function iconPayload(data) {
|
|
97
|
+
const payload = { body: data.body };
|
|
98
|
+
if (data.width != null) payload.width = data.width;
|
|
99
|
+
if (data.height != null) payload.height = data.height;
|
|
100
|
+
if (data.left != null) payload.left = data.left;
|
|
101
|
+
if (data.top != null) payload.top = data.top;
|
|
102
|
+
if (data.rotate != null) payload.rotate = data.rotate;
|
|
103
|
+
if (data.hFlip != null) payload.hFlip = data.hFlip;
|
|
104
|
+
if (data.vFlip != null) payload.vFlip = data.vFlip;
|
|
105
|
+
return payload;
|
|
106
|
+
}
|
|
107
|
+
function shouldScan(id) {
|
|
108
|
+
if (id.includes("\0") || id.includes("node_modules") || id.includes(VIRTUAL)) return false;
|
|
109
|
+
const [filename, query] = id.split("?", 2);
|
|
110
|
+
if (query?.includes("raw") || query?.includes("type=")) return false;
|
|
111
|
+
return /\.(?:vue|[cm]?[jt]sx?)$/.test(filename ?? "");
|
|
112
|
+
}
|
|
113
|
+
function unwrapLiteral(value) {
|
|
114
|
+
const trimmed = value.trim();
|
|
115
|
+
return (/^(["'`])([\s\S]*)\1$/.exec(trimmed)?.[2] ?? trimmed).trim();
|
|
116
|
+
}
|
|
117
|
+
/** Static icon names written as `collection:icon`, or as a `name` binding. */
|
|
118
|
+
function extractIconCandidates(code) {
|
|
119
|
+
const found = /* @__PURE__ */ new Set();
|
|
120
|
+
const colonLiteral = new RegExp(`(["'\`])(${ICON_PART}:${ICON_PART})\\1`, "gi");
|
|
121
|
+
const nameBinding = /(?:^|[\s<(]):?name\s*=\s*(["'])([\s\S]*?)\1/g;
|
|
122
|
+
const nameProperty = /(?:^|[{,\s])name\s*:\s*(["'`])([\s\S]*?)\1/g;
|
|
123
|
+
for (const match of code.matchAll(colonLiteral)) if (match[2]) found.add(match[2]);
|
|
124
|
+
for (const pattern of [nameBinding, nameProperty]) for (const match of code.matchAll(pattern)) if (match[2]) found.add(unwrapLiteral(match[2]));
|
|
125
|
+
return [...found];
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* VitePress sets the Vite root to `docs/`, which has no package.json.
|
|
129
|
+
* Walk up to the package that actually depends on `@iconify-json/*`.
|
|
130
|
+
*/
|
|
131
|
+
function findPackageRoot(start) {
|
|
132
|
+
let dir = start;
|
|
133
|
+
while (true) try {
|
|
134
|
+
readFileSync(join(dir, "package.json"));
|
|
135
|
+
return dir;
|
|
136
|
+
} catch {
|
|
137
|
+
const parent = dirname(dir);
|
|
138
|
+
if (parent === dir) return start;
|
|
139
|
+
dir = parent;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
function discoverPrefixes(root) {
|
|
143
|
+
try {
|
|
144
|
+
const pkg = JSON.parse(readFileSync(join(root, "package.json"), "utf8"));
|
|
145
|
+
return [
|
|
146
|
+
...Object.keys(pkg.dependencies ?? {}),
|
|
147
|
+
...Object.keys(pkg.devDependencies ?? {}),
|
|
148
|
+
...Object.keys(pkg.optionalDependencies ?? {})
|
|
149
|
+
].filter((name) => name.startsWith("@iconify-json/")).map((name) => name.slice(14));
|
|
150
|
+
} catch {
|
|
151
|
+
return [];
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
function readInstalledCollection(prefix, root) {
|
|
155
|
+
try {
|
|
156
|
+
const jsonPath = createRequire(join(root, "package.json")).resolve(`@iconify-json/${prefix}/icons.json`);
|
|
157
|
+
return JSON.parse(readFileSync(jsonPath, "utf8"));
|
|
158
|
+
} catch {
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
function injectVue(code, block) {
|
|
163
|
+
if (code.includes(block)) return code;
|
|
164
|
+
const tags = [...code.matchAll(/<script\b[^>]*>/gi)];
|
|
165
|
+
const target = tags.find((tag) => tag[0].includes("setup")) ?? tags[0];
|
|
166
|
+
if (target?.index != null) {
|
|
167
|
+
const at = target.index + target[0].length;
|
|
168
|
+
return `${code.slice(0, at)}\n${block}\n${code.slice(at)}`;
|
|
169
|
+
}
|
|
170
|
+
return `<script setup>\n${block}\n<\/script>\n${code}`;
|
|
171
|
+
}
|
|
172
|
+
function injectModule(code, block) {
|
|
173
|
+
if (code.includes(block)) return code;
|
|
174
|
+
return `${block}\n${code}`;
|
|
175
|
+
}
|
|
176
|
+
//#endregion
|
|
177
|
+
export { astryxIcons, extractIconCandidates, findPackageRoot };
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { i as getIcon, s as warnMissingIcon } from "./registry-C7OZb0PJ.js";
|
|
2
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, inject, mergeProps, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, toValue, useId } from "vue";
|
|
3
|
+
import "../styles/icon.css";
|
|
4
|
+
//#region src/Icon/context.ts
|
|
5
|
+
/**
|
|
6
|
+
* The size an owning component supplies to the icons in its slots.
|
|
7
|
+
*
|
|
8
|
+
* The value is stored as given, so a caller can pass a ref or a computed and
|
|
9
|
+
* keep the default in step with its own props.
|
|
10
|
+
*/
|
|
11
|
+
const ICON_DEFAULT_SIZE_KEY = Symbol("astryx-icon-default-size");
|
|
12
|
+
/**
|
|
13
|
+
* The size inherited from the nearest owner, or `undefined` when there is none.
|
|
14
|
+
*/
|
|
15
|
+
function useIconDefaultSize() {
|
|
16
|
+
const inherited = inject(ICON_DEFAULT_SIZE_KEY, void 0);
|
|
17
|
+
return computed(() => inherited == null ? void 0 : toValue(inherited));
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/Icon/glyphs.ts
|
|
21
|
+
/**
|
|
22
|
+
* The artwork kept for the components' own chrome. Applications bring their own
|
|
23
|
+
* icons; this list only has to cover what astryx-vue draws itself.
|
|
24
|
+
*/
|
|
25
|
+
const ICON_GLYPHS = [
|
|
26
|
+
"chevronDown",
|
|
27
|
+
"chevronLeft",
|
|
28
|
+
"chevronRight",
|
|
29
|
+
"check",
|
|
30
|
+
"moreHorizontal",
|
|
31
|
+
"copy",
|
|
32
|
+
"calendar",
|
|
33
|
+
"clock",
|
|
34
|
+
"upload",
|
|
35
|
+
"arrowUp",
|
|
36
|
+
"arrowDown",
|
|
37
|
+
"close",
|
|
38
|
+
"funnel",
|
|
39
|
+
"image"
|
|
40
|
+
];
|
|
41
|
+
function isIconGlyph(value) {
|
|
42
|
+
return ICON_GLYPHS.includes(value);
|
|
43
|
+
}
|
|
44
|
+
/** The CSS-safe form of a name, used as the `astryx-icon--<slug>` class. */
|
|
45
|
+
function iconGlyphSlug(name) {
|
|
46
|
+
return name.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/:/g, "-").toLowerCase();
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/Icon/svg.ts
|
|
50
|
+
/**
|
|
51
|
+
* Turn icon data into a viewBox and a body.
|
|
52
|
+
*
|
|
53
|
+
* Flip and rotation follow Iconify: flip first, then rotate, and a 90 degree
|
|
54
|
+
* turn swaps the canvas. The body is wrapped in a transformed group only when
|
|
55
|
+
* a transform is present, so a plain glyph stays as the collection authored it.
|
|
56
|
+
*/
|
|
57
|
+
function iconToSVG(icon) {
|
|
58
|
+
const box = {
|
|
59
|
+
left: icon.left ?? 0,
|
|
60
|
+
top: icon.top ?? 0,
|
|
61
|
+
width: icon.width ?? 16,
|
|
62
|
+
height: icon.height ?? 16
|
|
63
|
+
};
|
|
64
|
+
let body = icon.body;
|
|
65
|
+
const transformations = [];
|
|
66
|
+
const hFlip = icon.hFlip === true;
|
|
67
|
+
const vFlip = icon.vFlip === true;
|
|
68
|
+
let rotation = icon.rotate ?? 0;
|
|
69
|
+
if (hFlip) {
|
|
70
|
+
if (vFlip) rotation += 2;
|
|
71
|
+
else {
|
|
72
|
+
transformations.push(`translate(${box.width + box.left} ${0 - box.top})`);
|
|
73
|
+
transformations.push("scale(-1 1)");
|
|
74
|
+
box.top = 0;
|
|
75
|
+
box.left = 0;
|
|
76
|
+
}
|
|
77
|
+
} else if (vFlip) {
|
|
78
|
+
transformations.push(`translate(${0 - box.left} ${box.height + box.top})`);
|
|
79
|
+
transformations.push("scale(1 -1)");
|
|
80
|
+
box.top = 0;
|
|
81
|
+
box.left = 0;
|
|
82
|
+
}
|
|
83
|
+
if (rotation < 0) rotation -= Math.floor(rotation / 4) * 4;
|
|
84
|
+
rotation %= 4;
|
|
85
|
+
switch (rotation) {
|
|
86
|
+
case 1: {
|
|
87
|
+
const origin = box.height / 2 + box.top;
|
|
88
|
+
transformations.unshift(`rotate(90 ${origin} ${origin})`);
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
case 2:
|
|
92
|
+
transformations.unshift(`rotate(180 ${box.width / 2 + box.left} ${box.height / 2 + box.top})`);
|
|
93
|
+
break;
|
|
94
|
+
case 3: {
|
|
95
|
+
const origin = box.width / 2 + box.left;
|
|
96
|
+
transformations.unshift(`rotate(-90 ${origin} ${origin})`);
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
if (rotation % 2 === 1) {
|
|
101
|
+
if (box.left !== box.top) {
|
|
102
|
+
const left = box.left;
|
|
103
|
+
box.left = box.top;
|
|
104
|
+
box.top = left;
|
|
105
|
+
}
|
|
106
|
+
if (box.width !== box.height) {
|
|
107
|
+
const width = box.width;
|
|
108
|
+
box.width = box.height;
|
|
109
|
+
box.height = width;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
if (transformations.length > 0) body = `<g transform="${transformations.join(" ")}">${body}</g>`;
|
|
113
|
+
return {
|
|
114
|
+
viewBox: `${box.left} ${box.top} ${box.width} ${box.height}`,
|
|
115
|
+
body
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function prefixIds(body, idPrefix) {
|
|
119
|
+
if (idPrefix === "" || !body.includes("id=")) return body;
|
|
120
|
+
return body.replace(/\bid=(["'])([^"']+)\1/g, (_, quote, id) => `id=${quote}${idPrefix}${id}${quote}`).replace(/(\b(?:href|xlink:href)=)(["'])#([^"']+)\2/g, (_, attr, quote, id) => `${attr}${quote}#${idPrefix}${id}${quote}`).replace(/url\(#([^)]+)\)/g, (_, id) => `url(#${idPrefix}${id})`);
|
|
121
|
+
}
|
|
122
|
+
/** A complete SVG element for one icon. The caller supplies a unique id prefix. */
|
|
123
|
+
function renderIconMarkup(icon, idPrefix) {
|
|
124
|
+
const built = iconToSVG(icon);
|
|
125
|
+
const body = prefixIds(built.body, idPrefix);
|
|
126
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${built.viewBox}" width="100%" height="100%" aria-hidden="true" focusable="false">${body}</svg>`;
|
|
127
|
+
}
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region src/Icon/Icon.vue
|
|
130
|
+
const _hoisted_1 = ["data-color", "data-size"];
|
|
131
|
+
const _hoisted_2 = ["innerHTML"];
|
|
132
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
133
|
+
name: "AstryxIcon",
|
|
134
|
+
__name: "Icon",
|
|
135
|
+
props: {
|
|
136
|
+
name: {},
|
|
137
|
+
icon: {},
|
|
138
|
+
color: { default: "inherit" },
|
|
139
|
+
size: {},
|
|
140
|
+
label: {}
|
|
141
|
+
},
|
|
142
|
+
setup(__props) {
|
|
143
|
+
const props = __props;
|
|
144
|
+
const inheritedSize = useIconDefaultSize();
|
|
145
|
+
const idPrefix = `i${useId().replace(/\W/g, "")}-`;
|
|
146
|
+
const hasName = computed(() => props.name != null && props.name !== "");
|
|
147
|
+
const resolvedSize = computed(() => {
|
|
148
|
+
if (props.size != null) return props.size;
|
|
149
|
+
if (inheritedSize.value != null) return inheritedSize.value;
|
|
150
|
+
if (hasName.value) return void 0;
|
|
151
|
+
return "md";
|
|
152
|
+
});
|
|
153
|
+
const iconMarkup = computed(() => {
|
|
154
|
+
if (!hasName.value || props.name == null) return void 0;
|
|
155
|
+
const data = getIcon(props.name);
|
|
156
|
+
if (data == null) {
|
|
157
|
+
warnMissingIcon(props.name);
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
return renderIconMarkup(data, idPrefix);
|
|
161
|
+
});
|
|
162
|
+
const glyphSlug = computed(() => typeof props.icon === "string" && isIconGlyph(props.icon) ? iconGlyphSlug(props.icon) : void 0);
|
|
163
|
+
const providedClass = computed(() => typeof props.icon === "string" && !isIconGlyph(props.icon) ? props.icon : void 0);
|
|
164
|
+
const iconComponent = computed(() => props.icon != null && typeof props.icon !== "string" ? props.icon : void 0);
|
|
165
|
+
const a11yAttrs = computed(() => {
|
|
166
|
+
const label = props.label;
|
|
167
|
+
return label != null && label !== "" ? {
|
|
168
|
+
"role": "img",
|
|
169
|
+
"aria-label": label
|
|
170
|
+
} : { "aria-hidden": "true" };
|
|
171
|
+
});
|
|
172
|
+
return (_ctx, _cache) => {
|
|
173
|
+
return openBlock(), createElementBlock("span", mergeProps(a11yAttrs.value, {
|
|
174
|
+
class: "astryx-icon",
|
|
175
|
+
"data-color": __props.color,
|
|
176
|
+
"data-size": resolvedSize.value
|
|
177
|
+
}), [
|
|
178
|
+
createCommentVNode(" Iconify bodies are SVG path data from a collection, not caller HTML. "),
|
|
179
|
+
createCommentVNode(" eslint-disable-next-line vue/no-v-html "),
|
|
180
|
+
hasName.value && iconMarkup.value ? (openBlock(), createElementBlock("span", {
|
|
181
|
+
key: 0,
|
|
182
|
+
class: "astryx-icon__svg",
|
|
183
|
+
innerHTML: iconMarkup.value
|
|
184
|
+
}, null, 8, _hoisted_2)) : !hasName.value && glyphSlug.value ? (openBlock(), createElementBlock("span", {
|
|
185
|
+
key: 1,
|
|
186
|
+
class: normalizeClass(["astryx-icon__glyph", `astryx-icon--${glyphSlug.value}`])
|
|
187
|
+
}, null, 2)) : !hasName.value && providedClass.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createCommentVNode("\n Utility icon classes (UnoCSS `i-*`) set width and height to 100% outside\n any layer, which would override this box's size if the class sat on it.\n The box owns the size; the class only paints the inside.\n "), createElementVNode("span", { class: normalizeClass(["astryx-icon__external", providedClass.value]) }, null, 2)], 2112)) : !hasName.value && iconComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(iconComponent.value), { key: 3 })) : !hasName.value ? renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 4) : createCommentVNode("v-if", true)
|
|
188
|
+
], 16, _hoisted_1);
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
//#endregion
|
|
193
|
+
export { isIconGlyph as i, ICON_GLYPHS as n, iconGlyphSlug as r, _sfc_main as t };
|
package/dist/Lightbox/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as useLightbox } from "../Lightbox-
|
|
1
|
+
import { n as _sfc_main, t as useLightbox } from "../Lightbox-uuVGgHxW.js";
|
|
2
2
|
export { _sfc_main as Lightbox, useLightbox };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as useAnnounce } from "./announce-Cnio10Wk.js";
|
|
2
2
|
import { t as useScrollLock } from "./scrollLock-BzIvIimL.js";
|
|
3
|
-
import { a as useAstryxMessages } from "./context-
|
|
3
|
+
import { a as useAstryxMessages } from "./context-DzcK4T_C.js";
|
|
4
4
|
import { t as _sfc_main$1 } from "./IconButton-BNQuz9W_.js";
|
|
5
|
-
import { t as _sfc_main$2 } from "./Icon-
|
|
5
|
+
import { t as _sfc_main$2 } from "./Icon-Bku25g_K.js";
|
|
6
6
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, ref, toDisplayString, toRef, unref, useTemplateRef, watch, withCtx } from "vue";
|
|
7
7
|
import "../styles/lightbox.css";
|
|
8
8
|
//#region src/Lightbox/Lightbox.vue
|
package/dist/Link/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as LinkColor, r as LinkProps, t as _default } from "../index-
|
|
1
|
+
import { n as LinkColor, r as LinkProps, t as _default } from "../index-Dg3ZmwEg.js";
|
|
2
2
|
export { _default as Link, type LinkColor, type LinkProps };
|
package/dist/Link/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Link-
|
|
1
|
+
import { t as _sfc_main } from "../Link-DqdQZ37C.js";
|
|
2
2
|
export { _sfc_main as Link };
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { t as _sfc_main$1 } from "./Tooltip-mp0NMh_Y.js";
|
|
2
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot, withCtx, withModifiers } from "vue";
|
|
3
|
+
import "../styles/link.css";
|
|
4
|
+
//#region src/Link/Link.vue
|
|
5
|
+
const _hoisted_1 = [
|
|
6
|
+
"href",
|
|
7
|
+
"target",
|
|
8
|
+
"rel",
|
|
9
|
+
"download"
|
|
10
|
+
];
|
|
11
|
+
const _hoisted_2 = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "astryx-link__external",
|
|
14
|
+
"aria-hidden": "true"
|
|
15
|
+
};
|
|
16
|
+
const _hoisted_3 = ["disabled"];
|
|
17
|
+
const _hoisted_4 = [
|
|
18
|
+
"href",
|
|
19
|
+
"target",
|
|
20
|
+
"rel",
|
|
21
|
+
"download"
|
|
22
|
+
];
|
|
23
|
+
const _hoisted_5 = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "astryx-link__external",
|
|
26
|
+
"aria-hidden": "true"
|
|
27
|
+
};
|
|
28
|
+
const _hoisted_6 = ["disabled"];
|
|
29
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
30
|
+
inheritAttrs: false,
|
|
31
|
+
__name: "Link",
|
|
32
|
+
props: {
|
|
33
|
+
href: {},
|
|
34
|
+
isExternalLink: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: false
|
|
37
|
+
},
|
|
38
|
+
hasUnderline: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false
|
|
41
|
+
},
|
|
42
|
+
color: { default: "accent" },
|
|
43
|
+
isDisabled: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false
|
|
46
|
+
},
|
|
47
|
+
target: {},
|
|
48
|
+
rel: {},
|
|
49
|
+
download: { type: [String, Boolean] },
|
|
50
|
+
tooltip: {},
|
|
51
|
+
isStandalone: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: false
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
emits: ["click"],
|
|
57
|
+
setup(__props, { emit: __emit }) {
|
|
58
|
+
const props = __props;
|
|
59
|
+
const emit = __emit;
|
|
60
|
+
const computedTarget = computed(() => {
|
|
61
|
+
return props.isExternalLink ? "_blank" : props.target;
|
|
62
|
+
});
|
|
63
|
+
const computedRel = computed(() => {
|
|
64
|
+
const parts = new Set((props.rel ?? "").split(" ").filter(Boolean));
|
|
65
|
+
if (props.isExternalLink || computedTarget.value === "_blank") {
|
|
66
|
+
parts.add("noopener");
|
|
67
|
+
parts.add("noreferrer");
|
|
68
|
+
}
|
|
69
|
+
return parts.size > 0 ? Array.from(parts).join(" ") : void 0;
|
|
70
|
+
});
|
|
71
|
+
const classes = computed(() => [
|
|
72
|
+
"astryx-link",
|
|
73
|
+
`astryx-link--color-${props.color}`,
|
|
74
|
+
props.hasUnderline && "astryx-link--underlined",
|
|
75
|
+
props.isDisabled && "astryx-link--disabled",
|
|
76
|
+
props.isExternalLink && "astryx-link--external",
|
|
77
|
+
props.isStandalone && "astryx-link--standalone"
|
|
78
|
+
]);
|
|
79
|
+
const tooltipText = computed(() => {
|
|
80
|
+
return props.tooltip?.trim() || void 0;
|
|
81
|
+
});
|
|
82
|
+
function handleClick(event) {
|
|
83
|
+
if (props.isDisabled) {
|
|
84
|
+
event.preventDefault();
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
emit("click", event);
|
|
88
|
+
}
|
|
89
|
+
return (_ctx, _cache) => {
|
|
90
|
+
return tooltipText.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
91
|
+
key: 0,
|
|
92
|
+
content: tooltipText.value
|
|
93
|
+
}, {
|
|
94
|
+
default: withCtx(() => [__props.href && !__props.isDisabled ? (openBlock(), createElementBlock("a", {
|
|
95
|
+
key: 0,
|
|
96
|
+
class: normalizeClass(["astryx-link", classes.value]),
|
|
97
|
+
href: __props.href,
|
|
98
|
+
target: computedTarget.value,
|
|
99
|
+
rel: computedRel.value,
|
|
100
|
+
download: __props.download,
|
|
101
|
+
onClick: handleClick
|
|
102
|
+
}, [renderSlot(_ctx.$slots, "default"), __props.isExternalLink ? (openBlock(), createElementBlock("span", _hoisted_2, "↗")) : createCommentVNode("v-if", true)], 10, _hoisted_1)) : __props.href && __props.isDisabled ? (openBlock(), createElementBlock("a", {
|
|
103
|
+
key: 1,
|
|
104
|
+
class: normalizeClass(["astryx-link", classes.value]),
|
|
105
|
+
role: "link",
|
|
106
|
+
"aria-disabled": "true",
|
|
107
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {}, ["prevent"]))
|
|
108
|
+
}, [renderSlot(_ctx.$slots, "default")], 2)) : (openBlock(), createElementBlock("button", {
|
|
109
|
+
key: 2,
|
|
110
|
+
type: "button",
|
|
111
|
+
class: normalizeClass(["astryx-link", classes.value]),
|
|
112
|
+
disabled: __props.isDisabled,
|
|
113
|
+
onClick: handleClick
|
|
114
|
+
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_3))]),
|
|
115
|
+
_: 3
|
|
116
|
+
}, 8, ["content"])) : __props.href && !__props.isDisabled ? (openBlock(), createElementBlock("a", {
|
|
117
|
+
key: 1,
|
|
118
|
+
class: normalizeClass(["astryx-link", classes.value]),
|
|
119
|
+
href: __props.href,
|
|
120
|
+
target: computedTarget.value,
|
|
121
|
+
rel: computedRel.value,
|
|
122
|
+
download: __props.download,
|
|
123
|
+
onClick: handleClick
|
|
124
|
+
}, [renderSlot(_ctx.$slots, "default"), __props.isExternalLink ? (openBlock(), createElementBlock("span", _hoisted_5, "↗")) : createCommentVNode("v-if", true)], 10, _hoisted_4)) : __props.href && __props.isDisabled ? (openBlock(), createElementBlock("a", {
|
|
125
|
+
key: 2,
|
|
126
|
+
class: normalizeClass(["astryx-link", classes.value]),
|
|
127
|
+
role: "link",
|
|
128
|
+
"aria-disabled": "true",
|
|
129
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(() => {}, ["prevent"]))
|
|
130
|
+
}, [renderSlot(_ctx.$slots, "default")], 2)) : (openBlock(), createElementBlock("button", {
|
|
131
|
+
key: 3,
|
|
132
|
+
type: "button",
|
|
133
|
+
class: normalizeClass(["astryx-link", classes.value]),
|
|
134
|
+
disabled: __props.isDisabled,
|
|
135
|
+
onClick: handleClick
|
|
136
|
+
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_6));
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
//#endregion
|
|
141
|
+
export { _sfc_main as t };
|
package/dist/List/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as ItemLayout, c as ItemTarget, d as ListEdgeCompensation, f as ListItemProps, g as ListSlots, h as ListProps, i as ItemLabel, l as ItemText, m as ListMarkerStyle, n as ItemDensity, o as ItemProps, p as ListItemSlots, r as ItemElement, s as ItemSlots, t as ItemAlign, u as ListDensity } from "../types-CAZY4Xua.js";
|
|
2
|
-
import { a as useListContext, i as useItemDescriptionId, n as _default$1, r as _default, t as _default$2 } from "../index-
|
|
2
|
+
import { a as useListContext, i as useItemDescriptionId, n as _default$1, r as _default, t as _default$2 } from "../index-DnSrjbjP.js";
|
|
3
3
|
export { _default as Item, type ItemAlign, type ItemDensity, type ItemElement, type ItemLabel, type ItemLayout, type ItemProps, type ItemSlots, type ItemTarget, type ItemText, _default$1 as List, type ListDensity, type ListEdgeCompensation, _default$2 as ListItem, type ListItemProps, type ListItemSlots, type ListMarkerStyle, type ListProps, type ListSlots, useItemDescriptionId, useListContext };
|
package/dist/Markdown/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as parseMarkdown, n as slugify, r as uniqueSlug, t as _sfc_main } from "../Markdown-
|
|
1
|
+
import { i as parseMarkdown, n as slugify, r as uniqueSlug, t as _sfc_main } from "../Markdown-DLICa3db.js";
|
|
2
2
|
export { _sfc_main as Markdown, parseMarkdown, slugify, uniqueSlug };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
2
|
import { t as _sfc_main$2 } from "./Heading-Dugosn6j.js";
|
|
3
|
-
import { a as useAstryxMessages } from "./context-
|
|
3
|
+
import { a as useAstryxMessages } from "./context-DzcK4T_C.js";
|
|
4
4
|
import { t as _sfc_main$3 } from "./Blockquote-DFqBv_oJ.js";
|
|
5
5
|
import { t as _sfc_main$4 } from "./CheckboxIndicator-DdJmksHt.js";
|
|
6
|
-
import { c as _sfc_main$5, t as _sfc_main$6 } from "./CodeBlock-
|
|
7
|
-
import { t as _sfc_main$7 } from "./Link-
|
|
6
|
+
import { c as _sfc_main$5, t as _sfc_main$6 } from "./CodeBlock-CAF-VJnh.js";
|
|
7
|
+
import { t as _sfc_main$7 } from "./Link-DqdQZ37C.js";
|
|
8
8
|
import { Fragment, computed, defineComponent, h, ref } from "vue";
|
|
9
9
|
import { fromMarkdown } from "mdast-util-from-markdown";
|
|
10
10
|
import { gfmFromMarkdown } from "mdast-util-gfm";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MetadataListItemSlots, c as MetadataListOrientation, i as MetadataListItemProps, l as MetadataListProps, n as _default, o as MetadataListLabelConfig, r as MetadataListColumns, s as MetadataListLabelPosition, t as _default$1, u as MetadataListSlots } from "../index-
|
|
1
|
+
import { a as MetadataListItemSlots, c as MetadataListOrientation, i as MetadataListItemProps, l as MetadataListProps, n as _default, o as MetadataListLabelConfig, r as MetadataListColumns, s as MetadataListLabelPosition, t as _default$1, u as MetadataListSlots } from "../index-NOXYEdOI.js";
|
|
2
2
|
export { _default as MetadataList, type MetadataListColumns, _default$1 as MetadataListItem, type MetadataListItemProps, type MetadataListItemSlots, type MetadataListLabelConfig, type MetadataListLabelPosition, type MetadataListOrientation, type MetadataListProps, type MetadataListSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../MetadataList-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../MetadataList-h492rqEN.js";
|
|
2
2
|
export { _sfc_main as MetadataList, _sfc_main$1 as MetadataListItem };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as useAstryxMessages } from "./context-
|
|
1
|
+
import { a as useAstryxMessages } from "./context-DzcK4T_C.js";
|
|
2
2
|
import { Comment, Fragment, computed, defineComponent, h, inject, provide, ref, useId, useSlots } from "vue";
|
|
3
3
|
import "../styles/metadata-list.css";
|
|
4
4
|
//#region src/MetadataList/context.ts
|
package/dist/MobileNav/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, r as mobileNavKey, t as _sfc_main$1 } from "../MobileNavToggle-
|
|
1
|
+
import { n as _sfc_main, r as mobileNavKey, t as _sfc_main$1 } from "../MobileNavToggle-BMj3Wtuq.js";
|
|
2
2
|
export { _sfc_main as MobileNav, _sfc_main$1 as MobileNavToggle, mobileNavKey };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as useFocusTrap, t as useRestoreFocus } from "./useRestoreFocus-BvMdXVX9.js";
|
|
2
|
-
import { a as useAstryxMessages } from "./context-
|
|
2
|
+
import { a as useAstryxMessages } from "./context-DzcK4T_C.js";
|
|
3
3
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeModels, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, provide, ref, renderSlot, toDisplayString, unref, useId, useModel, watch } from "vue";
|
|
4
4
|
import "../styles/mobile-nav.css";
|
|
5
5
|
//#region src/MobileNav/context.ts
|
package/dist/MoreMenu/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { An as MoreMenuIcon, Dn as _default, Fn as MoreMenuPresentation, In as MoreMenuProps, Ln as MoreMenuResolvedPresentation, Mn as MoreMenuItem, Nn as MoreMenuItemVariant, On as MoreMenuDivider, Pn as MoreMenuOption, Rn as MoreMenuSection, jn as MoreMenuInitialFocus, kn as MoreMenuEmits, zn as MoreMenuSlots } from "../index-
|
|
1
|
+
import { An as MoreMenuIcon, Dn as _default, Fn as MoreMenuPresentation, In as MoreMenuProps, Ln as MoreMenuResolvedPresentation, Mn as MoreMenuItem, Nn as MoreMenuItemVariant, On as MoreMenuDivider, Pn as MoreMenuOption, Rn as MoreMenuSection, jn as MoreMenuInitialFocus, kn as MoreMenuEmits, zn as MoreMenuSlots } from "../index-DeOftUMq.js";
|
|
2
2
|
export { _default as MoreMenu, type MoreMenuDivider, type MoreMenuEmits, type MoreMenuIcon, type MoreMenuInitialFocus, type MoreMenuItem, type MoreMenuItemVariant, type MoreMenuOption, type MoreMenuPresentation, type MoreMenuProps, type MoreMenuResolvedPresentation, type MoreMenuSection, type MoreMenuSlots };
|
package/dist/MoreMenu/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../MoreMenu-
|
|
1
|
+
import { t as _sfc_main } from "../MoreMenu-DkYi5az5.js";
|
|
2
2
|
export { _sfc_main as MoreMenu };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as getFocusables, t as focusElement } from "./focus-CpficIgf.js";
|
|
2
2
|
import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
|
|
3
3
|
import { t as _sfc_main$5 } from "./Heading-Dugosn6j.js";
|
|
4
|
+
import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
|
|
4
5
|
import { t as _sfc_main$6 } from "./IconButton-BNQuz9W_.js";
|
|
5
|
-
import { t as _sfc_main$7 } from "./Icon-
|
|
6
|
+
import { t as _sfc_main$7 } from "./Icon-Bku25g_K.js";
|
|
6
7
|
import { t as _sfc_main$8 } from "./Divider-BtwnL18I.js";
|
|
7
8
|
import { n as _sfc_main$10, t as _sfc_main$9 } from "./ListItem-pGxvn6QJ.js";
|
|
8
|
-
import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
|
|
9
9
|
import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, unref, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
10
10
|
import "../styles/more-menu.css";
|
|
11
11
|
//#region src/MoreMenu/context.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MultiSelectorDivider, c as MultiSelectorOptionData, d as MultiSelectorSection, f as MultiSelectorSize, g as MultiSelectorVariant, h as MultiSelectorTriggerDisplay, i as MultiSelectorCheckboxPosition, l as MultiSelectorPresentation, m as MultiSelectorStatus, n as flattenOptions, o as MultiSelectorEmits, p as MultiSelectorSlots, r as _default, s as MultiSelectorOption, t as SELECT_ALL_VALUE, u as MultiSelectorProps } from "../index-
|
|
1
|
+
import { a as MultiSelectorDivider, c as MultiSelectorOptionData, d as MultiSelectorSection, f as MultiSelectorSize, g as MultiSelectorVariant, h as MultiSelectorTriggerDisplay, i as MultiSelectorCheckboxPosition, l as MultiSelectorPresentation, m as MultiSelectorStatus, n as flattenOptions, o as MultiSelectorEmits, p as MultiSelectorSlots, r as _default, s as MultiSelectorOption, t as SELECT_ALL_VALUE, u as MultiSelectorProps } from "../index-DQAnGHu7.js";
|
|
2
2
|
export { _default as MultiSelector, type MultiSelectorCheckboxPosition, type MultiSelectorDivider, type MultiSelectorEmits, type MultiSelectorOption, type MultiSelectorOptionData, type MultiSelectorPresentation, type MultiSelectorProps, type MultiSelectorSection, type MultiSelectorSize, type MultiSelectorSlots, type MultiSelectorStatus, type MultiSelectorTriggerDisplay, type MultiSelectorVariant, SELECT_ALL_VALUE, flattenOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main } from "../MultiSelector-
|
|
1
|
+
import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main } from "../MultiSelector-C2IS-EaU.js";
|
|
2
2
|
export { _sfc_main as MultiSelector, SELECT_ALL_VALUE, flattenOptions };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as useCombobox } from "./useCombobox-CTo5C-gc.js";
|
|
2
2
|
import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
|
|
3
|
-
import { a as useAstryxMessages } from "./context-
|
|
3
|
+
import { a as useAstryxMessages } from "./context-DzcK4T_C.js";
|
|
4
4
|
import { t as _sfc_main$1 } from "./BottomSheet-Dg95HB1s.js";
|
|
5
5
|
import { t as _sfc_main$2 } from "./CheckboxIndicator-DdJmksHt.js";
|
|
6
6
|
import { t as _sfc_main$3 } from "./Field-8zRxzDHE.js";
|
|
7
|
-
import { t as _sfc_main$4 } from "./Token-
|
|
7
|
+
import { t as _sfc_main$4 } from "./Token-CjocuhzE.js";
|
|
8
8
|
import { n as useAnchoredListbox, t as scrollOptionIntoView } from "./useAnchoredListbox-7W90Ny-9.js";
|
|
9
9
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useId, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
10
10
|
import "../styles/visually-hidden-utility.css";
|
package/dist/NavItem/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as NavItemSize, i as NavItemProps, n as NavIconSlots, o as NavItemSlots, r as NavItemEmits, s as NavLinkComponent, t as NavIconProps } from "../types-BG23kC3S.js";
|
|
2
|
-
import { n as _default, r as resolveNavRoot, t as _default$1 } from "../index-
|
|
2
|
+
import { n as _default, r as resolveNavRoot, t as _default$1 } from "../index-D2bSSSBP.js";
|
|
3
3
|
export { _default as NavIcon, type NavIconProps, type NavIconSlots, _default$1 as NavItem, type NavItemEmits, type NavItemProps, type NavItemSize, type NavItemSlots, type NavLinkComponent, resolveNavRoot };
|