numori-ui 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/CHANGELOG.md +120 -0
  2. package/README.md +27 -20
  3. package/dist/components/AppShell.js +234 -0
  4. package/dist/components/AppShell.js.map +1 -0
  5. package/dist/components/Avatar.js +71 -19
  6. package/dist/components/Avatar.js.map +1 -1
  7. package/dist/components/Checkbox.js +11 -2
  8. package/dist/components/Checkbox.js.map +1 -1
  9. package/dist/components/CopyField.js +195 -0
  10. package/dist/components/CopyField.js.map +1 -0
  11. package/dist/components/DescriptionList.js +116 -0
  12. package/dist/components/DescriptionList.js.map +1 -0
  13. package/dist/components/Dropdown.js +3 -1
  14. package/dist/components/Dropdown.js.map +1 -1
  15. package/dist/components/EmptyState.js +123 -0
  16. package/dist/components/EmptyState.js.map +1 -0
  17. package/dist/components/FormField.js +43 -13
  18. package/dist/components/FormField.js.map +1 -1
  19. package/dist/components/Input.js +15 -1
  20. package/dist/components/Input.js.map +1 -1
  21. package/dist/components/Modal.js +61 -4
  22. package/dist/components/Modal.js.map +1 -1
  23. package/dist/components/PageHeader.js +106 -0
  24. package/dist/components/PageHeader.js.map +1 -0
  25. package/dist/components/Pagination.js +236 -0
  26. package/dist/components/Pagination.js.map +1 -0
  27. package/dist/components/Prompt.js +11 -6
  28. package/dist/components/Prompt.js.map +1 -1
  29. package/dist/components/Segmented.js +10 -2
  30. package/dist/components/Segmented.js.map +1 -1
  31. package/dist/components/Select.js +11 -2
  32. package/dist/components/Select.js.map +1 -1
  33. package/dist/components/Sidebar.js +69 -0
  34. package/dist/components/Sidebar.js.map +1 -0
  35. package/dist/components/SidebarGroup.js +50 -0
  36. package/dist/components/SidebarGroup.js.map +1 -0
  37. package/dist/components/SidebarItem.js +167 -0
  38. package/dist/components/SidebarItem.js.map +1 -0
  39. package/dist/components/Skeleton.js +122 -0
  40. package/dist/components/Skeleton.js.map +1 -0
  41. package/dist/components/SplitPane.js +264 -0
  42. package/dist/components/SplitPane.js.map +1 -0
  43. package/dist/components/StatCard.js +185 -0
  44. package/dist/components/StatCard.js.map +1 -0
  45. package/dist/components/Table.js +182 -50
  46. package/dist/components/Table.js.map +1 -1
  47. package/dist/components/Tabs.js +216 -0
  48. package/dist/components/Tabs.js.map +1 -0
  49. package/dist/components/Toggle.js +11 -2
  50. package/dist/components/Toggle.js.map +1 -1
  51. package/dist/components/Tree.js +417 -0
  52. package/dist/components/Tree.js.map +1 -0
  53. package/dist/components/VirtualList.js +292 -0
  54. package/dist/components/VirtualList.js.map +1 -0
  55. package/dist/components/index.js +105 -81
  56. package/dist/components/index.js.map +1 -1
  57. package/dist/icons/mdi.js +12 -0
  58. package/dist/icons/mdi.js.map +1 -1
  59. package/dist/index.d.ts +16 -1
  60. package/dist/index.js +54 -39
  61. package/dist/index.js.map +1 -1
  62. package/dist/internal/focusTrap.js +163 -0
  63. package/dist/internal/focusTrap.js.map +1 -0
  64. package/dist/internal/formField.js +26 -0
  65. package/dist/internal/formField.js.map +1 -0
  66. package/dist/manifest.js +16 -1
  67. package/dist/manifest.js.map +1 -1
  68. package/package.json +1 -1
  69. package/src/components/AppShell.vue +231 -0
  70. package/src/components/Avatar.vue +69 -18
  71. package/src/components/Checkbox.vue +5 -0
  72. package/src/components/CopyField.vue +178 -0
  73. package/src/components/DescriptionList.vue +114 -0
  74. package/src/components/Dropdown.vue +4 -1
  75. package/src/components/EmptyState.vue +107 -0
  76. package/src/components/FormField.vue +37 -4
  77. package/src/components/Input.vue +9 -0
  78. package/src/components/Modal.vue +51 -3
  79. package/src/components/PageHeader.vue +102 -0
  80. package/src/components/Pagination.vue +199 -0
  81. package/src/components/Prompt.vue +14 -3
  82. package/src/components/Segmented.vue +5 -0
  83. package/src/components/Select.vue +6 -1
  84. package/src/components/Sidebar.vue +61 -0
  85. package/src/components/SidebarGroup.vue +43 -0
  86. package/src/components/SidebarItem.vue +159 -0
  87. package/src/components/Skeleton.vue +91 -0
  88. package/src/components/SplitPane.vue +264 -0
  89. package/src/components/StatCard.vue +165 -0
  90. package/src/components/Table.vue +148 -18
  91. package/src/components/Tabs.vue +217 -0
  92. package/src/components/Toggle.vue +5 -0
  93. package/src/components/Tree.vue +428 -0
  94. package/src/components/VirtualList.vue +250 -0
  95. package/src/components/index.js +45 -6
  96. package/src/icons/mdi.js +12 -0
  97. package/src/internal/focusTrap.js +185 -0
  98. package/src/internal/formField.js +23 -0
  99. package/src/manifest.js +15 -0
@@ -0,0 +1,292 @@
1
+ import { Fragment, computed, createElementBlock, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, watch } from "vue";
2
+ //#region src/components/VirtualList.vue
3
+ var _hoisted_1 = [
4
+ "role",
5
+ "aria-label",
6
+ "aria-multiselectable",
7
+ "tabindex"
8
+ ];
9
+ var _hoisted_2 = [
10
+ "role",
11
+ "aria-setsize",
12
+ "aria-posinset"
13
+ ];
14
+ var _sfc_main = {
15
+ __name: "VirtualList",
16
+ props: {
17
+ /**
18
+ * The rows to render.
19
+ * @type {Array<any>}
20
+ * @default []
21
+ */
22
+ items: {
23
+ type: Array,
24
+ default: () => []
25
+ },
26
+ /**
27
+ * Height of every row in pixels.
28
+ * @type {number}
29
+ * @default 48
30
+ */
31
+ itemHeight: {
32
+ type: Number,
33
+ default: 48
34
+ },
35
+ /**
36
+ * Property used as each row's key, or a function `(item, index) => key`.
37
+ * Falls back to the index when the property is missing.
38
+ * @type {string | Function}
39
+ * @default 'id'
40
+ */
41
+ itemKey: {
42
+ type: [String, Function],
43
+ default: "id"
44
+ },
45
+ /**
46
+ * Extra rows rendered above and below the viewport, so fast scrolling does
47
+ * not show blank space.
48
+ * @type {number}
49
+ * @default 8
50
+ */
51
+ overscan: {
52
+ type: Number,
53
+ default: 8
54
+ },
55
+ /**
56
+ * Viewport height assumed before the list has been measured (and on the
57
+ * server), in pixels.
58
+ * @type {number}
59
+ * @default 800
60
+ */
61
+ initialHeight: {
62
+ type: Number,
63
+ default: 800
64
+ },
65
+ /**
66
+ * How many rows from the bottom `end-reached` fires.
67
+ * @type {number}
68
+ * @default 5
69
+ */
70
+ endThreshold: {
71
+ type: Number,
72
+ default: 5
73
+ },
74
+ /**
75
+ * ARIA role of the scroll container. Empty for none.
76
+ * @type {string}
77
+ * @default 'list'
78
+ */
79
+ role: {
80
+ type: String,
81
+ default: "list"
82
+ },
83
+ /**
84
+ * ARIA role of each row wrapper. Empty for none.
85
+ * @type {string}
86
+ * @default 'listitem'
87
+ */
88
+ itemRole: {
89
+ type: String,
90
+ default: "listitem"
91
+ },
92
+ /**
93
+ * Accessible name for the list.
94
+ * @type {string}
95
+ * @default ''
96
+ */
97
+ label: {
98
+ type: String,
99
+ default: ""
100
+ },
101
+ /**
102
+ * With `role="listbox"`, announce that several rows can be selected.
103
+ * @type {boolean}
104
+ * @default false
105
+ */
106
+ multiselectable: {
107
+ type: Boolean,
108
+ default: false
109
+ },
110
+ /**
111
+ * Make the scroll container itself a tab stop, so keyboard users can scroll
112
+ * it. Turn off when your rows manage focus themselves.
113
+ * @type {boolean}
114
+ * @default true
115
+ */
116
+ focusable: {
117
+ type: Boolean,
118
+ default: true
119
+ }
120
+ },
121
+ emits: [
122
+ "range",
123
+ "end-reached",
124
+ "scroll"
125
+ ],
126
+ setup(__props, { expose: __expose, emit: __emit }) {
127
+ /**
128
+ * UiVirtualList — a scrolling list that renders only the rows near the
129
+ * viewport, so ten thousand items cost about as much as thirty.
130
+ *
131
+ * Rows have a fixed height (`itemHeight`). That is a deliberate restriction:
132
+ * it makes the position of every row a multiplication rather than a
133
+ * measurement, so scrolling never jumps and `scrollToIndex` is exact. Lists
134
+ * with variable-height content (an inbox with optional snippets, say) should
135
+ * pick one height per density setting.
136
+ *
137
+ * Accessibility: because most rows are not in the DOM, each rendered row
138
+ * carries `aria-setsize` and `aria-posinset`, so a screen reader still
139
+ * announces "item 412 of 9,000". The container and row roles default to
140
+ * `list` / `listitem`; for a selectable list set `role="listbox"` and
141
+ * `item-role="option"`, and put `aria-selected` on your row content's root via
142
+ * the slot (or pass `item-role=""` and supply roles yourself).
143
+ *
144
+ * Keyboard navigation between rows is the caller's job — what Up and Down mean
145
+ * differs between a picker and an inbox — but `scrollToIndex()` is exposed so
146
+ * the active row can be kept in view.
147
+ *
148
+ * @example
149
+ * <UiVirtualList :items="messages" :item-height="72" label="Messages" @end-reached="loadMore">
150
+ * <template #default="{ item }"><MessageRow :message="item" /></template>
151
+ * <template #empty><UiEmptyState title="Nothing here" /></template>
152
+ * </UiVirtualList>
153
+ *
154
+ * @emits {{ start: number, end: number }} range — The rendered index range changed
155
+ * (end exclusive). Useful for prefetching what is about to be seen.
156
+ * @emits {void} end-reached — Scrolled within `endThreshold` rows of the bottom.
157
+ * @emits {Event} scroll — The list scrolled.
158
+ *
159
+ * @slot default — One row. Scope: `{ item, index }`.
160
+ * @slot empty — Shown when `items` is empty.
161
+ */
162
+ const props = __props;
163
+ const emit = __emit;
164
+ const scrollerRef = ref(null);
165
+ const scrollTop = ref(0);
166
+ const viewport = ref(props.initialHeight);
167
+ const totalHeight = computed(() => props.items.length * props.itemHeight);
168
+ const range = computed(() => {
169
+ const first = Math.floor(scrollTop.value / props.itemHeight);
170
+ const visible = Math.ceil(viewport.value / props.itemHeight) + 1;
171
+ return {
172
+ start: Math.max(0, first - props.overscan),
173
+ end: Math.min(props.items.length, first + visible + props.overscan)
174
+ };
175
+ });
176
+ const keyOf = (item, index) => {
177
+ if (typeof props.itemKey === "function") return props.itemKey(item, index);
178
+ return (item && typeof item === "object" ? item[props.itemKey] : void 0) ?? index;
179
+ };
180
+ const visibleRows = computed(() => {
181
+ const rows = [];
182
+ for (let index = range.value.start; index < range.value.end; index++) {
183
+ const item = props.items[index];
184
+ rows.push({
185
+ item,
186
+ index,
187
+ key: keyOf(item, index)
188
+ });
189
+ }
190
+ return rows;
191
+ });
192
+ watch(range, (next, previous) => {
193
+ if (previous && next.start === previous.start && next.end === previous.end) return;
194
+ emit("range", { ...next });
195
+ });
196
+ let endArmed = true;
197
+ const checkEnd = () => {
198
+ if (props.items.length - Math.ceil((scrollTop.value + viewport.value) / props.itemHeight) <= props.endThreshold) {
199
+ if (endArmed && props.items.length > 0) {
200
+ endArmed = false;
201
+ emit("end-reached");
202
+ }
203
+ } else endArmed = true;
204
+ };
205
+ watch(() => props.items.length, () => {
206
+ endArmed = true;
207
+ checkEnd();
208
+ });
209
+ function onScroll(event) {
210
+ scrollTop.value = event.target.scrollTop;
211
+ checkEnd();
212
+ emit("scroll", event);
213
+ }
214
+ /**
215
+ * Scroll so the row at `index` is visible.
216
+ *
217
+ * @param {number} index
218
+ * @param {'auto' | 'start' | 'center' | 'end'} [align='auto'] `auto` scrolls
219
+ * only as far as needed, and not at all if the row is already in view.
220
+ */
221
+ function scrollToIndex(index, align = "auto") {
222
+ const el = scrollerRef.value;
223
+ if (!el || index < 0 || index >= props.items.length) return;
224
+ const top = index * props.itemHeight;
225
+ const bottom = top + props.itemHeight;
226
+ const view = el.clientHeight;
227
+ let target = null;
228
+ if (align === "start") target = top;
229
+ else if (align === "end") target = bottom - view;
230
+ else if (align === "center") target = top - (view - props.itemHeight) / 2;
231
+ else if (top < el.scrollTop) target = top;
232
+ else if (bottom > el.scrollTop + view) target = bottom - view;
233
+ if (target === null) return;
234
+ el.scrollTop = Math.max(0, target);
235
+ scrollTop.value = el.scrollTop;
236
+ }
237
+ __expose({
238
+ scrollToIndex,
239
+ scrollerRef
240
+ });
241
+ let observer = null;
242
+ onMounted(() => {
243
+ const el = scrollerRef.value;
244
+ if (!el) return;
245
+ const measure = () => {
246
+ viewport.value = el.clientHeight || props.initialHeight;
247
+ checkEnd();
248
+ };
249
+ measure();
250
+ if (typeof ResizeObserver !== "undefined") {
251
+ observer = new ResizeObserver(measure);
252
+ observer.observe(el);
253
+ }
254
+ });
255
+ onBeforeUnmount(() => observer?.disconnect());
256
+ return (_ctx, _cache) => {
257
+ return openBlock(), createElementBlock("div", {
258
+ ref_key: "scrollerRef",
259
+ ref: scrollerRef,
260
+ class: "relative min-h-0 overflow-y-auto overscroll-contain focus-visible:outline-none",
261
+ role: __props.role || void 0,
262
+ "aria-label": __props.label || void 0,
263
+ "aria-multiselectable": __props.role === "listbox" && __props.multiselectable ? "true" : void 0,
264
+ tabindex: __props.focusable ? 0 : void 0,
265
+ onScrollPassive: onScroll
266
+ }, [__props.items.length === 0 ? renderSlot(_ctx.$slots, "empty", {}, void 0, void 0, 0) : (openBlock(), createElementBlock("div", {
267
+ key: 1,
268
+ class: "relative w-full",
269
+ style: normalizeStyle({ height: `${totalHeight.value}px` })
270
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(visibleRows.value, (row) => {
271
+ return openBlock(), createElementBlock("div", {
272
+ key: row.key,
273
+ role: __props.itemRole || void 0,
274
+ "aria-setsize": __props.items.length,
275
+ "aria-posinset": row.index + 1,
276
+ class: "absolute inset-x-0",
277
+ style: normalizeStyle({
278
+ top: `${row.index * __props.itemHeight}px`,
279
+ height: `${__props.itemHeight}px`
280
+ })
281
+ }, [renderSlot(_ctx.$slots, "default", {
282
+ item: row.item,
283
+ index: row.index
284
+ })], 12, _hoisted_2);
285
+ }), 128))], 4))], 40, _hoisted_1);
286
+ };
287
+ }
288
+ };
289
+ //#endregion
290
+ export { _sfc_main as default };
291
+
292
+ //# sourceMappingURL=VirtualList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VirtualList.js","names":[],"sources":["../../src/components/VirtualList.vue"],"sourcesContent":["<template>\n <div\n ref=\"scrollerRef\"\n class=\"relative min-h-0 overflow-y-auto overscroll-contain focus-visible:outline-none\"\n :role=\"role || undefined\"\n :aria-label=\"label || undefined\"\n :aria-multiselectable=\"role === 'listbox' && multiselectable ? 'true' : undefined\"\n :tabindex=\"focusable ? 0 : undefined\"\n @scroll.passive=\"onScroll\"\n >\n <slot v-if=\"items.length === 0\" name=\"empty\" />\n <!-- One spacer as tall as the whole list keeps the scrollbar honest; only\n the rows near the viewport are rendered inside it. -->\n <div v-else class=\"relative w-full\" :style=\"{ height: `${totalHeight}px` }\">\n <div\n v-for=\"row in visibleRows\"\n :key=\"row.key\"\n :role=\"itemRole || undefined\"\n :aria-setsize=\"items.length\"\n :aria-posinset=\"row.index + 1\"\n class=\"absolute inset-x-0\"\n :style=\"{ top: `${row.index * itemHeight}px`, height: `${itemHeight}px` }\"\n >\n <slot :item=\"row.item\" :index=\"row.index\" />\n </div>\n </div>\n </div>\n</template>\n\n<script setup>\n/**\n * UiVirtualList — a scrolling list that renders only the rows near the\n * viewport, so ten thousand items cost about as much as thirty.\n *\n * Rows have a fixed height (`itemHeight`). That is a deliberate restriction:\n * it makes the position of every row a multiplication rather than a\n * measurement, so scrolling never jumps and `scrollToIndex` is exact. Lists\n * with variable-height content (an inbox with optional snippets, say) should\n * pick one height per density setting.\n *\n * Accessibility: because most rows are not in the DOM, each rendered row\n * carries `aria-setsize` and `aria-posinset`, so a screen reader still\n * announces \"item 412 of 9,000\". The container and row roles default to\n * `list` / `listitem`; for a selectable list set `role=\"listbox\"` and\n * `item-role=\"option\"`, and put `aria-selected` on your row content's root via\n * the slot (or pass `item-role=\"\"` and supply roles yourself).\n *\n * Keyboard navigation between rows is the caller's job — what Up and Down mean\n * differs between a picker and an inbox — but `scrollToIndex()` is exposed so\n * the active row can be kept in view.\n *\n * @example\n * <UiVirtualList :items=\"messages\" :item-height=\"72\" label=\"Messages\" @end-reached=\"loadMore\">\n * <template #default=\"{ item }\"><MessageRow :message=\"item\" /></template>\n * <template #empty><UiEmptyState title=\"Nothing here\" /></template>\n * </UiVirtualList>\n *\n * @emits {{ start: number, end: number }} range — The rendered index range changed\n * (end exclusive). Useful for prefetching what is about to be seen.\n * @emits {void} end-reached — Scrolled within `endThreshold` rows of the bottom.\n * @emits {Event} scroll — The list scrolled.\n *\n * @slot default — One row. Scope: `{ item, index }`.\n * @slot empty — Shown when `items` is empty.\n */\nimport { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'\n\nconst props = defineProps({\n /**\n * The rows to render.\n * @type {Array<any>}\n * @default []\n */\n items: { type: Array, default: () => [] },\n /**\n * Height of every row in pixels.\n * @type {number}\n * @default 48\n */\n itemHeight: { type: Number, default: 48 },\n /**\n * Property used as each row's key, or a function `(item, index) => key`.\n * Falls back to the index when the property is missing.\n * @type {string | Function}\n * @default 'id'\n */\n itemKey: { type: [String, Function], default: 'id' },\n /**\n * Extra rows rendered above and below the viewport, so fast scrolling does\n * not show blank space.\n * @type {number}\n * @default 8\n */\n overscan: { type: Number, default: 8 },\n /**\n * Viewport height assumed before the list has been measured (and on the\n * server), in pixels.\n * @type {number}\n * @default 800\n */\n initialHeight: { type: Number, default: 800 },\n /**\n * How many rows from the bottom `end-reached` fires.\n * @type {number}\n * @default 5\n */\n endThreshold: { type: Number, default: 5 },\n /**\n * ARIA role of the scroll container. Empty for none.\n * @type {string}\n * @default 'list'\n */\n role: { type: String, default: 'list' },\n /**\n * ARIA role of each row wrapper. Empty for none.\n * @type {string}\n * @default 'listitem'\n */\n itemRole: { type: String, default: 'listitem' },\n /**\n * Accessible name for the list.\n * @type {string}\n * @default ''\n */\n label: { type: String, default: '' },\n /**\n * With `role=\"listbox\"`, announce that several rows can be selected.\n * @type {boolean}\n * @default false\n */\n multiselectable: { type: Boolean, default: false },\n /**\n * Make the scroll container itself a tab stop, so keyboard users can scroll\n * it. Turn off when your rows manage focus themselves.\n * @type {boolean}\n * @default true\n */\n focusable: { type: Boolean, default: true },\n})\n\nconst emit = defineEmits(['range', 'end-reached', 'scroll'])\n\nconst scrollerRef = ref(null)\nconst scrollTop = ref(0)\nconst viewport = ref(props.initialHeight)\n\nconst totalHeight = computed(() => props.items.length * props.itemHeight)\n\nconst range = computed(() => {\n const first = Math.floor(scrollTop.value / props.itemHeight)\n const visible = Math.ceil(viewport.value / props.itemHeight) + 1\n const start = Math.max(0, first - props.overscan)\n const end = Math.min(props.items.length, first + visible + props.overscan)\n return { start, end }\n})\n\nconst keyOf = (item, index) => {\n if (typeof props.itemKey === 'function') return props.itemKey(item, index)\n const key = item && typeof item === 'object' ? item[props.itemKey] : undefined\n return key ?? index\n}\n\nconst visibleRows = computed(() => {\n const rows = []\n for (let index = range.value.start; index < range.value.end; index++) {\n const item = props.items[index]\n rows.push({ item, index, key: keyOf(item, index) })\n }\n return rows\n})\n\nwatch(range, (next, previous) => {\n if (previous && next.start === previous.start && next.end === previous.end) return\n emit('range', { ...next })\n})\n\n// ── End detection ──\n// Fires once per arrival at the bottom; scrolling away and back re-arms it.\nlet endArmed = true\nconst checkEnd = () => {\n const remaining =\n props.items.length - Math.ceil((scrollTop.value + viewport.value) / props.itemHeight)\n if (remaining <= props.endThreshold) {\n if (endArmed && props.items.length > 0) {\n endArmed = false\n emit('end-reached')\n }\n } else {\n endArmed = true\n }\n}\n\n// New items arriving (a page loaded) re-arms the trigger.\nwatch(\n () => props.items.length,\n () => {\n endArmed = true\n checkEnd()\n },\n)\n\nfunction onScroll(event) {\n scrollTop.value = event.target.scrollTop\n checkEnd()\n emit('scroll', event)\n}\n\n/**\n * Scroll so the row at `index` is visible.\n *\n * @param {number} index\n * @param {'auto' | 'start' | 'center' | 'end'} [align='auto'] `auto` scrolls\n * only as far as needed, and not at all if the row is already in view.\n */\nfunction scrollToIndex(index, align = 'auto') {\n const el = scrollerRef.value\n if (!el || index < 0 || index >= props.items.length) return\n const top = index * props.itemHeight\n const bottom = top + props.itemHeight\n const view = el.clientHeight\n let target = null\n if (align === 'start') target = top\n else if (align === 'end') target = bottom - view\n else if (align === 'center') target = top - (view - props.itemHeight) / 2\n else if (top < el.scrollTop) target = top\n else if (bottom > el.scrollTop + view) target = bottom - view\n if (target === null) return\n el.scrollTop = Math.max(0, target)\n scrollTop.value = el.scrollTop\n}\n\ndefineExpose({ scrollToIndex, scrollerRef })\n\n// ── Measure the viewport ──\nlet observer = null\nonMounted(() => {\n const el = scrollerRef.value\n if (!el) return\n const measure = () => {\n viewport.value = el.clientHeight || props.initialHeight\n checkEnd()\n }\n measure()\n if (typeof ResizeObserver !== 'undefined') {\n observer = new ResizeObserver(measure)\n observer.observe(el)\n }\n})\nonBeforeUnmount(() => observer?.disconnect())\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmEA,MAAM,QAAQ;EAyEd,MAAM,OAAO;EAEb,MAAM,cAAc,IAAI,IAAI;EAC5B,MAAM,YAAY,IAAI,CAAC;EACvB,MAAM,WAAW,IAAI,MAAM,aAAa;EAExC,MAAM,cAAc,eAAe,MAAM,MAAM,SAAS,MAAM,UAAU;EAExE,MAAM,QAAQ,eAAe;GAC3B,MAAM,QAAQ,KAAK,MAAM,UAAU,QAAQ,MAAM,UAAU;GAC3D,MAAM,UAAU,KAAK,KAAK,SAAS,QAAQ,MAAM,UAAU,IAAI;GAG/D,OAAO;IAAE,OAFK,KAAK,IAAI,GAAG,QAAQ,MAAM,QAE3B;IAAG,KADJ,KAAK,IAAI,MAAM,MAAM,QAAQ,QAAQ,UAAU,MAAM,QAC/C;GAAE;EACtB,CAAC;EAED,MAAM,SAAS,MAAM,UAAU;GAC7B,IAAI,OAAO,MAAM,YAAY,YAAY,OAAO,MAAM,QAAQ,MAAM,KAAK;GAEzE,QADY,QAAQ,OAAO,SAAS,WAAW,KAAK,MAAM,WAAW,KAAA,MACvD;EAChB;EAEA,MAAM,cAAc,eAAe;GACjC,MAAM,OAAO,CAAC;GACd,KAAK,IAAI,QAAQ,MAAM,MAAM,OAAO,QAAQ,MAAM,MAAM,KAAK,SAAS;IACpE,MAAM,OAAO,MAAM,MAAM;IACzB,KAAK,KAAK;KAAE;KAAM;KAAO,KAAK,MAAM,MAAM,KAAK;IAAE,CAAC;GACpD;GACA,OAAO;EACT,CAAC;EAED,MAAM,QAAQ,MAAM,aAAa;GAC/B,IAAI,YAAY,KAAK,UAAU,SAAS,SAAS,KAAK,QAAQ,SAAS,KAAK;GAC5E,KAAK,SAAS,EAAE,GAAG,KAAK,CAAC;EAC3B,CAAC;EAID,IAAI,WAAW;EACf,MAAM,iBAAiB;GAGrB,IADE,MAAM,MAAM,SAAS,KAAK,MAAM,UAAU,QAAQ,SAAS,SAAS,MAAM,UAAU,KACrE,MAAM,cACjB;QAAA,YAAY,MAAM,MAAM,SAAS,GAAG;KACtC,WAAW;KACX,KAAK,aAAa;IACpB;UAEA,WAAW;EAEf;EAGA,YACQ,MAAM,MAAM,cACZ;GACJ,WAAW;GACX,SAAS;EACX,CACF;EAEA,SAAS,SAAS,OAAO;GACvB,UAAU,QAAQ,MAAM,OAAO;GAC/B,SAAS;GACT,KAAK,UAAU,KAAK;EACtB;;;;;;;;EASA,SAAS,cAAc,OAAO,QAAQ,QAAQ;GAC5C,MAAM,KAAK,YAAY;GACvB,IAAI,CAAC,MAAM,QAAQ,KAAK,SAAS,MAAM,MAAM,QAAQ;GACrD,MAAM,MAAM,QAAQ,MAAM;GAC1B,MAAM,SAAS,MAAM,MAAM;GAC3B,MAAM,OAAO,GAAG;GAChB,IAAI,SAAS;GACb,IAAI,UAAU,SAAS,SAAS;QAC3B,IAAI,UAAU,OAAO,SAAS,SAAS;QACvC,IAAI,UAAU,UAAU,SAAS,OAAO,OAAO,MAAM,cAAc;QACnE,IAAI,MAAM,GAAG,WAAW,SAAS;QACjC,IAAI,SAAS,GAAG,YAAY,MAAM,SAAS,SAAS;GACzD,IAAI,WAAW,MAAM;GACrB,GAAG,YAAY,KAAK,IAAI,GAAG,MAAM;GACjC,UAAU,QAAQ,GAAG;EACvB;EAEA,SAAa;GAAE;GAAe;EAAY,CAAC;EAG3C,IAAI,WAAW;EACf,gBAAgB;GACd,MAAM,KAAK,YAAY;GACvB,IAAI,CAAC,IAAI;GACT,MAAM,gBAAgB;IACpB,SAAS,QAAQ,GAAG,gBAAgB,MAAM;IAC1C,SAAS;GACX;GACA,QAAQ;GACR,IAAI,OAAO,mBAAmB,aAAa;IACzC,WAAW,IAAI,eAAe,OAAO;IACrC,SAAS,QAAQ,EAAE;GACrB;EACF,CAAC;EACD,sBAAsB,UAAU,WAAW,CAAC;;GAvP1C,OAAA,UAAA,GAAA,mBAyBM,OAAA;IAxBA,SAAA;IAAJ,KAAI;IACJ,OAAM;IACL,MAAM,QAAA,QAAQ,KAAA;IACd,cAAY,QAAA,SAAS,KAAA;IACrB,wBAAsB,QAAA,SAAI,aAAkB,QAAA,kBAAe,SAAY,KAAA;IACvE,UAAU,QAAA,YAAS,IAAO,KAAA;IACV,iBAAA;GAEL,GAAA,CAAA,QAAA,MAAM,WAAM,IAAxB,WAA+C,KAAA,QAAA,SAAA,CAAA,GAAA,KAAA,GAAA,KAAA,GAAA,CAAA,KAG/C,UAAA,GAAA,mBAYM,OAAA;;IAZM,OAAM;IAAmB,OAAK,eAAA,EAAA,QAAA,GAAe,YAAA,MAAW,IAAA,CAAA;GAClE,GAAA,EAAA,UAAA,IAAA,GAAA,mBAUM,UAAA,MAAA,WATU,YAAA,QAAP,QAAG;IADZ,OAAA,UAAA,GAAA,mBAUM,OAAA;KARH,KAAK,IAAI;KACT,MAAM,QAAA,YAAY,KAAA;KAClB,gBAAc,QAAA,MAAM;KACpB,iBAAe,IAAI,QAAK;KACzB,OAAM;KACL,OAAK,eAAA;MAAA,KAAA,GAAY,IAAI,QAAQ,QAAA,WAAU;MAAA,QAAA,GAAiB,QAAA,WAAU;KAAA,CAAA;IAEnE,GAAA,CAAA,WAA4C,KAAA,QAAA,WAAA;KAArC,MAAM,IAAI;KAAO,OAAO,IAAI"}
@@ -1,42 +1,57 @@
1
1
  import _sfc_main from "../icons/Icon.js";
2
2
  import _sfc_main$1 from "./Alert.js";
3
- import _sfc_main$2 from "./Avatar.js";
4
- import _sfc_main$3 from "./Badge.js";
5
- import _sfc_main$4 from "./Banner.js";
6
- import _sfc_main$5 from "./Breadcrumb.js";
7
- import _sfc_main$6 from "./Button.js";
8
- import _sfc_main$7 from "./Card.js";
9
- import _sfc_main$8 from "./Checkbox.js";
10
- import _sfc_main$9 from "./CodeBlock.js";
11
- import _sfc_main$10 from "./Divider.js";
12
- import _sfc_main$11 from "./Dropdown.js";
13
- import _sfc_main$12 from "./DropdownItem.js";
14
- import _sfc_main$13 from "./DropdownRow.js";
15
- import _sfc_main$14 from "./DropdownSubmenu.js";
16
- import _sfc_main$15 from "./FileInput.js";
17
- import _sfc_main$16 from "./FormField.js";
18
- import _sfc_main$17 from "./IconTile.js";
19
- import _sfc_main$18 from "./Input.js";
20
- import _sfc_main$19 from "./Kbd.js";
21
- import _sfc_main$20 from "./ListMenu.js";
22
- import _sfc_main$21 from "./ListMenuItem.js";
23
- import _sfc_main$22 from "./Modal.js";
24
- import _sfc_main$23 from "./Numpad.js";
25
- import _sfc_main$24 from "./Popup.js";
26
- import _sfc_main$25 from "./ProgressBar.js";
27
- import _sfc_main$26 from "./Prompt.js";
28
- import _sfc_main$27 from "./Radio.js";
29
- import _sfc_main$28 from "./SectionHeading.js";
30
- import _sfc_main$29 from "./Segmented.js";
31
- import _sfc_main$30 from "./Select.js";
32
- import _sfc_main$31 from "./Slider.js";
33
- import _sfc_main$32 from "./Spinner.js";
34
- import _sfc_main$33 from "./Stepper.js";
35
- import _sfc_main$34 from "./Table.js";
36
- import _sfc_main$35 from "./ThemeToggle.js";
37
- import _sfc_main$36 from "./Toast.js";
38
- import _sfc_main$37 from "./Toggle.js";
39
- import _sfc_main$38 from "./Tooltip.js";
3
+ import _sfc_main$2 from "./AppShell.js";
4
+ import _sfc_main$3 from "./Avatar.js";
5
+ import _sfc_main$4 from "./Badge.js";
6
+ import _sfc_main$5 from "./Banner.js";
7
+ import _sfc_main$6 from "./Breadcrumb.js";
8
+ import _sfc_main$7 from "./Button.js";
9
+ import _sfc_main$8 from "./Card.js";
10
+ import _sfc_main$9 from "./Checkbox.js";
11
+ import _sfc_main$10 from "./CodeBlock.js";
12
+ import _sfc_main$11 from "./CopyField.js";
13
+ import _sfc_main$12 from "./DescriptionList.js";
14
+ import _sfc_main$13 from "./Divider.js";
15
+ import _sfc_main$14 from "./Dropdown.js";
16
+ import _sfc_main$15 from "./DropdownItem.js";
17
+ import _sfc_main$16 from "./DropdownRow.js";
18
+ import _sfc_main$17 from "./DropdownSubmenu.js";
19
+ import _sfc_main$18 from "./EmptyState.js";
20
+ import _sfc_main$19 from "./FileInput.js";
21
+ import _sfc_main$20 from "./FormField.js";
22
+ import _sfc_main$21 from "./IconTile.js";
23
+ import _sfc_main$22 from "./Input.js";
24
+ import _sfc_main$23 from "./Kbd.js";
25
+ import _sfc_main$24 from "./ListMenu.js";
26
+ import _sfc_main$25 from "./ListMenuItem.js";
27
+ import _sfc_main$26 from "./Modal.js";
28
+ import _sfc_main$27 from "./Numpad.js";
29
+ import _sfc_main$28 from "./PageHeader.js";
30
+ import _sfc_main$29 from "./Pagination.js";
31
+ import _sfc_main$30 from "./Popup.js";
32
+ import _sfc_main$31 from "./ProgressBar.js";
33
+ import _sfc_main$32 from "./Prompt.js";
34
+ import _sfc_main$33 from "./Radio.js";
35
+ import _sfc_main$34 from "./SectionHeading.js";
36
+ import _sfc_main$35 from "./Segmented.js";
37
+ import _sfc_main$36 from "./Select.js";
38
+ import _sfc_main$37 from "./Sidebar.js";
39
+ import _sfc_main$38 from "./SidebarGroup.js";
40
+ import _sfc_main$39 from "./SidebarItem.js";
41
+ import _sfc_main$40 from "./Skeleton.js";
42
+ import _sfc_main$41 from "./Slider.js";
43
+ import _sfc_main$42 from "./Spinner.js";
44
+ import _sfc_main$43 from "./SplitPane.js";
45
+ import _sfc_main$44 from "./StatCard.js";
46
+ import _sfc_main$45 from "./Stepper.js";
47
+ import _sfc_main$46 from "./Table.js";
48
+ import _sfc_main$47 from "./Tabs.js";
49
+ import _sfc_main$48 from "./ThemeToggle.js";
50
+ import _sfc_main$49 from "./Toast.js";
51
+ import _sfc_main$50 from "./Toggle.js";
52
+ import _sfc_main$51 from "./Tooltip.js";
53
+ import _sfc_main$52 from "./Tree.js";
54
+ import _sfc_main$53 from "./VirtualList.js";
40
55
  //#region src/components/index.js
41
56
  /**
42
57
  * Real component imports, re-exported under the default `Ui` prefix.
@@ -49,53 +64,62 @@ import _sfc_main$38 from "./Tooltip.js";
49
64
  * `../manifest.js` carries the same list as plain data for build-time
50
65
  * consumers; `scripts/verify.mjs` keeps the two in sync.
51
66
  */
52
- /**
53
- * Base-name -> component map, used by the Vue plugin to register everything
54
- * under whatever prefix the host chose.
55
- * @type {Record<string, import('vue').Component>}
56
- */
57
67
  var components = {
58
68
  Alert: _sfc_main$1,
59
- Avatar: _sfc_main$2,
60
- Badge: _sfc_main$3,
61
- Banner: _sfc_main$4,
62
- Breadcrumb: _sfc_main$5,
63
- Button: _sfc_main$6,
64
- Card: _sfc_main$7,
65
- Checkbox: _sfc_main$8,
66
- CodeBlock: _sfc_main$9,
67
- Divider: _sfc_main$10,
68
- Dropdown: _sfc_main$11,
69
- DropdownItem: _sfc_main$12,
70
- DropdownRow: _sfc_main$13,
71
- DropdownSubmenu: _sfc_main$14,
72
- FileInput: _sfc_main$15,
73
- FormField: _sfc_main$16,
74
- IconTile: _sfc_main$17,
75
- Input: _sfc_main$18,
76
- Kbd: _sfc_main$19,
77
- ListMenu: _sfc_main$20,
78
- ListMenuItem: _sfc_main$21,
79
- Modal: _sfc_main$22,
80
- Numpad: _sfc_main$23,
81
- Popup: _sfc_main$24,
82
- ProgressBar: _sfc_main$25,
83
- Prompt: _sfc_main$26,
84
- Radio: _sfc_main$27,
85
- SectionHeading: _sfc_main$28,
86
- Segmented: _sfc_main$29,
87
- Select: _sfc_main$30,
88
- Slider: _sfc_main$31,
89
- Spinner: _sfc_main$32,
90
- Stepper: _sfc_main$33,
91
- Table: _sfc_main$34,
92
- ThemeToggle: _sfc_main$35,
93
- Toast: _sfc_main$36,
94
- Toggle: _sfc_main$37,
95
- Tooltip: _sfc_main$38,
96
- Icon: _sfc_main
69
+ AppShell: _sfc_main$2,
70
+ Avatar: _sfc_main$3,
71
+ Badge: _sfc_main$4,
72
+ Banner: _sfc_main$5,
73
+ Breadcrumb: _sfc_main$6,
74
+ Button: _sfc_main$7,
75
+ Card: _sfc_main$8,
76
+ Checkbox: _sfc_main$9,
77
+ CodeBlock: _sfc_main$10,
78
+ CopyField: _sfc_main$11,
79
+ DescriptionList: _sfc_main$12,
80
+ Divider: _sfc_main$13,
81
+ Dropdown: _sfc_main$14,
82
+ DropdownItem: _sfc_main$15,
83
+ DropdownRow: _sfc_main$16,
84
+ DropdownSubmenu: _sfc_main$17,
85
+ EmptyState: _sfc_main$18,
86
+ FileInput: _sfc_main$19,
87
+ FormField: _sfc_main$20,
88
+ IconTile: _sfc_main$21,
89
+ Input: _sfc_main$22,
90
+ Kbd: _sfc_main$23,
91
+ ListMenu: _sfc_main$24,
92
+ ListMenuItem: _sfc_main$25,
93
+ Modal: _sfc_main$26,
94
+ Numpad: _sfc_main$27,
95
+ PageHeader: _sfc_main$28,
96
+ Pagination: _sfc_main$29,
97
+ Popup: _sfc_main$30,
98
+ ProgressBar: _sfc_main$31,
99
+ Prompt: _sfc_main$32,
100
+ Radio: _sfc_main$33,
101
+ SectionHeading: _sfc_main$34,
102
+ Segmented: _sfc_main$35,
103
+ Select: _sfc_main$36,
104
+ Sidebar: _sfc_main$37,
105
+ SidebarGroup: _sfc_main$38,
106
+ SidebarItem: _sfc_main$39,
107
+ Skeleton: _sfc_main$40,
108
+ Slider: _sfc_main$41,
109
+ Spinner: _sfc_main$42,
110
+ SplitPane: _sfc_main$43,
111
+ StatCard: _sfc_main$44,
112
+ Stepper: _sfc_main$45,
113
+ Table: _sfc_main$46,
114
+ Tabs: _sfc_main$47,
115
+ ThemeToggle: _sfc_main$48,
116
+ Toast: _sfc_main$49,
117
+ Toggle: _sfc_main$50,
118
+ Tooltip: _sfc_main$51,
119
+ Tree: _sfc_main$52,
120
+ VirtualList: _sfc_main$53
97
121
  };
98
122
  //#endregion
99
- export { _sfc_main$1 as UiAlert, _sfc_main$2 as UiAvatar, _sfc_main$3 as UiBadge, _sfc_main$4 as UiBanner, _sfc_main$5 as UiBreadcrumb, _sfc_main$6 as UiButton, _sfc_main$7 as UiCard, _sfc_main$8 as UiCheckbox, _sfc_main$9 as UiCodeBlock, _sfc_main$10 as UiDivider, _sfc_main$11 as UiDropdown, _sfc_main$12 as UiDropdownItem, _sfc_main$13 as UiDropdownRow, _sfc_main$14 as UiDropdownSubmenu, _sfc_main$15 as UiFileInput, _sfc_main$16 as UiFormField, _sfc_main as UiIcon, _sfc_main$17 as UiIconTile, _sfc_main$18 as UiInput, _sfc_main$19 as UiKbd, _sfc_main$20 as UiListMenu, _sfc_main$21 as UiListMenuItem, _sfc_main$22 as UiModal, _sfc_main$23 as UiNumpad, _sfc_main$24 as UiPopup, _sfc_main$25 as UiProgressBar, _sfc_main$26 as UiPrompt, _sfc_main$27 as UiRadio, _sfc_main$28 as UiSectionHeading, _sfc_main$29 as UiSegmented, _sfc_main$30 as UiSelect, _sfc_main$31 as UiSlider, _sfc_main$32 as UiSpinner, _sfc_main$33 as UiStepper, _sfc_main$34 as UiTable, _sfc_main$35 as UiThemeToggle, _sfc_main$36 as UiToast, _sfc_main$37 as UiToggle, _sfc_main$38 as UiTooltip, components };
123
+ export { _sfc_main$1 as UiAlert, _sfc_main$2 as UiAppShell, _sfc_main$3 as UiAvatar, _sfc_main$4 as UiBadge, _sfc_main$5 as UiBanner, _sfc_main$6 as UiBreadcrumb, _sfc_main$7 as UiButton, _sfc_main$8 as UiCard, _sfc_main$9 as UiCheckbox, _sfc_main$10 as UiCodeBlock, _sfc_main$11 as UiCopyField, _sfc_main$12 as UiDescriptionList, _sfc_main$13 as UiDivider, _sfc_main$14 as UiDropdown, _sfc_main$15 as UiDropdownItem, _sfc_main$16 as UiDropdownRow, _sfc_main$17 as UiDropdownSubmenu, _sfc_main$18 as UiEmptyState, _sfc_main$19 as UiFileInput, _sfc_main$20 as UiFormField, _sfc_main as UiIcon, _sfc_main$21 as UiIconTile, _sfc_main$22 as UiInput, _sfc_main$23 as UiKbd, _sfc_main$24 as UiListMenu, _sfc_main$25 as UiListMenuItem, _sfc_main$26 as UiModal, _sfc_main$27 as UiNumpad, _sfc_main$28 as UiPageHeader, _sfc_main$29 as UiPagination, _sfc_main$30 as UiPopup, _sfc_main$31 as UiProgressBar, _sfc_main$32 as UiPrompt, _sfc_main$33 as UiRadio, _sfc_main$34 as UiSectionHeading, _sfc_main$35 as UiSegmented, _sfc_main$36 as UiSelect, _sfc_main$37 as UiSidebar, _sfc_main$38 as UiSidebarGroup, _sfc_main$39 as UiSidebarItem, _sfc_main$40 as UiSkeleton, _sfc_main$41 as UiSlider, _sfc_main$42 as UiSpinner, _sfc_main$43 as UiSplitPane, _sfc_main$44 as UiStatCard, _sfc_main$45 as UiStepper, _sfc_main$46 as UiTable, _sfc_main$47 as UiTabs, _sfc_main$48 as UiThemeToggle, _sfc_main$49 as UiToast, _sfc_main$50 as UiToggle, _sfc_main$51 as UiTooltip, _sfc_main$52 as UiTree, _sfc_main$53 as UiVirtualList, components };
100
124
 
101
125
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/components/index.js"],"sourcesContent":["/**\n * Real component imports, re-exported under the default `Ui` prefix.\n *\n * The prefix is baked into the export names so that `import { UiButton }`\n * reads the same as `<UiButton>` in a template. Consumers who register the\n * library with a different prefix still import these names — only the\n * globally registered tag changes.\n *\n * `../manifest.js` carries the same list as plain data for build-time\n * consumers; `scripts/verify.mjs` keeps the two in sync.\n */\nimport Alert from './Alert.vue'\nimport Avatar from './Avatar.vue'\nimport Badge from './Badge.vue'\nimport Banner from './Banner.vue'\nimport Breadcrumb from './Breadcrumb.vue'\nimport Button from './Button.vue'\nimport Card from './Card.vue'\nimport Checkbox from './Checkbox.vue'\nimport CodeBlock from './CodeBlock.vue'\nimport Divider from './Divider.vue'\nimport Dropdown from './Dropdown.vue'\nimport DropdownItem from './DropdownItem.vue'\nimport DropdownRow from './DropdownRow.vue'\nimport DropdownSubmenu from './DropdownSubmenu.vue'\nimport FileInput from './FileInput.vue'\nimport FormField from './FormField.vue'\nimport IconTile from './IconTile.vue'\nimport Input from './Input.vue'\nimport Kbd from './Kbd.vue'\nimport ListMenu from './ListMenu.vue'\nimport ListMenuItem from './ListMenuItem.vue'\nimport Modal from './Modal.vue'\nimport Numpad from './Numpad.vue'\nimport Popup from './Popup.vue'\nimport ProgressBar from './ProgressBar.vue'\nimport Prompt from './Prompt.vue'\nimport Radio from './Radio.vue'\nimport SectionHeading from './SectionHeading.vue'\nimport Segmented from './Segmented.vue'\nimport Select from './Select.vue'\nimport Slider from './Slider.vue'\nimport Spinner from './Spinner.vue'\nimport Stepper from './Stepper.vue'\nimport Table from './Table.vue'\nimport ThemeToggle from './ThemeToggle.vue'\nimport Toast from './Toast.vue'\nimport Toggle from './Toggle.vue'\nimport Tooltip from './Tooltip.vue'\nimport Icon from '../icons/Icon.vue'\n\nexport {\n Alert as UiAlert,\n Avatar as UiAvatar,\n Badge as UiBadge,\n Banner as UiBanner,\n Breadcrumb as UiBreadcrumb,\n Button as UiButton,\n Card as UiCard,\n Checkbox as UiCheckbox,\n CodeBlock as UiCodeBlock,\n Divider as UiDivider,\n Dropdown as UiDropdown,\n DropdownItem as UiDropdownItem,\n DropdownRow as UiDropdownRow,\n DropdownSubmenu as UiDropdownSubmenu,\n FileInput as UiFileInput,\n FormField as UiFormField,\n IconTile as UiIconTile,\n Input as UiInput,\n Kbd as UiKbd,\n ListMenu as UiListMenu,\n ListMenuItem as UiListMenuItem,\n Modal as UiModal,\n Numpad as UiNumpad,\n Popup as UiPopup,\n ProgressBar as UiProgressBar,\n Prompt as UiPrompt,\n Radio as UiRadio,\n SectionHeading as UiSectionHeading,\n Segmented as UiSegmented,\n Select as UiSelect,\n Slider as UiSlider,\n Spinner as UiSpinner,\n Stepper as UiStepper,\n Table as UiTable,\n ThemeToggle as UiThemeToggle,\n Toast as UiToast,\n Toggle as UiToggle,\n Tooltip as UiTooltip,\n Icon as UiIcon,\n}\n\n/**\n * Base-name -> component map, used by the Vue plugin to register everything\n * under whatever prefix the host chose.\n * @type {Record<string, import('vue').Component>}\n */\nexport const components = {\n Alert,\n Avatar,\n Badge,\n Banner,\n Breadcrumb,\n Button,\n Card,\n Checkbox,\n CodeBlock,\n Divider,\n Dropdown,\n DropdownItem,\n DropdownRow,\n DropdownSubmenu,\n FileInput,\n FormField,\n IconTile,\n Input,\n Kbd,\n ListMenu,\n ListMenuItem,\n Modal,\n Numpad,\n Popup,\n ProgressBar,\n Prompt,\n Radio,\n SectionHeading,\n Segmented,\n Select,\n Slider,\n Spinner,\n Stepper,\n Table,\n ThemeToggle,\n Toast,\n Toggle,\n Tooltip,\n Icon,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkGA,IAAa,aAAa;CACxB,OAAA;CACA,QAAA;CACA,OAAA;CACA,QAAA;CACA,YAAA;CACA,QAAA;CACA,MAAA;CACA,UAAA;CACA,WAAA;CACA,SAAA;CACA,UAAA;CACA,cAAA;CACA,aAAA;CACA,iBAAA;CACA,WAAA;CACA,WAAA;CACA,UAAA;CACA,OAAA;CACA,KAAA;CACA,UAAA;CACA,cAAA;CACA,OAAA;CACA,QAAA;CACA,OAAA;CACA,aAAA;CACA,QAAA;CACA,OAAA;CACA,gBAAA;CACA,WAAA;CACA,QAAA;CACA,QAAA;CACA,SAAA;CACA,SAAA;CACA,OAAA;CACA,aAAA;CACA,OAAA;CACA,QAAA;CACA,SAAA;CACA,MAAA;AACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/components/index.js"],"sourcesContent":["/**\n * Real component imports, re-exported under the default `Ui` prefix.\n *\n * The prefix is baked into the export names so that `import { UiButton }`\n * reads the same as `<UiButton>` in a template. Consumers who register the\n * library with a different prefix still import these names — only the\n * globally registered tag changes.\n *\n * `../manifest.js` carries the same list as plain data for build-time\n * consumers; `scripts/verify.mjs` keeps the two in sync.\n */\nimport Alert from './Alert.vue'\nimport AppShell from './AppShell.vue'\nimport Avatar from './Avatar.vue'\nimport Badge from './Badge.vue'\nimport Banner from './Banner.vue'\nimport Breadcrumb from './Breadcrumb.vue'\nimport Button from './Button.vue'\nimport Card from './Card.vue'\nimport Checkbox from './Checkbox.vue'\nimport CodeBlock from './CodeBlock.vue'\nimport CopyField from './CopyField.vue'\nimport DescriptionList from './DescriptionList.vue'\nimport Divider from './Divider.vue'\nimport Dropdown from './Dropdown.vue'\nimport DropdownItem from './DropdownItem.vue'\nimport DropdownRow from './DropdownRow.vue'\nimport DropdownSubmenu from './DropdownSubmenu.vue'\nimport EmptyState from './EmptyState.vue'\nimport FileInput from './FileInput.vue'\nimport FormField from './FormField.vue'\nimport IconTile from './IconTile.vue'\nimport Input from './Input.vue'\nimport Kbd from './Kbd.vue'\nimport ListMenu from './ListMenu.vue'\nimport ListMenuItem from './ListMenuItem.vue'\nimport Modal from './Modal.vue'\nimport Numpad from './Numpad.vue'\nimport PageHeader from './PageHeader.vue'\nimport Pagination from './Pagination.vue'\nimport Popup from './Popup.vue'\nimport ProgressBar from './ProgressBar.vue'\nimport Prompt from './Prompt.vue'\nimport Radio from './Radio.vue'\nimport SectionHeading from './SectionHeading.vue'\nimport Segmented from './Segmented.vue'\nimport Select from './Select.vue'\nimport Sidebar from './Sidebar.vue'\nimport SidebarGroup from './SidebarGroup.vue'\nimport SidebarItem from './SidebarItem.vue'\nimport Skeleton from './Skeleton.vue'\nimport Slider from './Slider.vue'\nimport Spinner from './Spinner.vue'\nimport SplitPane from './SplitPane.vue'\nimport StatCard from './StatCard.vue'\nimport Stepper from './Stepper.vue'\nimport Table from './Table.vue'\nimport Tabs from './Tabs.vue'\nimport ThemeToggle from './ThemeToggle.vue'\nimport Toast from './Toast.vue'\nimport Toggle from './Toggle.vue'\nimport Tooltip from './Tooltip.vue'\nimport Tree from './Tree.vue'\nimport VirtualList from './VirtualList.vue'\nimport Icon from '../icons/Icon.vue'\n\nexport {\n Alert as UiAlert,\n AppShell as UiAppShell,\n Avatar as UiAvatar,\n Badge as UiBadge,\n Banner as UiBanner,\n Breadcrumb as UiBreadcrumb,\n Button as UiButton,\n Card as UiCard,\n Checkbox as UiCheckbox,\n CodeBlock as UiCodeBlock,\n CopyField as UiCopyField,\n DescriptionList as UiDescriptionList,\n Divider as UiDivider,\n Dropdown as UiDropdown,\n DropdownItem as UiDropdownItem,\n DropdownRow as UiDropdownRow,\n DropdownSubmenu as UiDropdownSubmenu,\n EmptyState as UiEmptyState,\n FileInput as UiFileInput,\n FormField as UiFormField,\n IconTile as UiIconTile,\n Input as UiInput,\n Kbd as UiKbd,\n ListMenu as UiListMenu,\n ListMenuItem as UiListMenuItem,\n Modal as UiModal,\n Numpad as UiNumpad,\n PageHeader as UiPageHeader,\n Pagination as UiPagination,\n Popup as UiPopup,\n ProgressBar as UiProgressBar,\n Prompt as UiPrompt,\n Radio as UiRadio,\n SectionHeading as UiSectionHeading,\n Segmented as UiSegmented,\n Select as UiSelect,\n Sidebar as UiSidebar,\n SidebarGroup as UiSidebarGroup,\n SidebarItem as UiSidebarItem,\n Skeleton as UiSkeleton,\n Slider as UiSlider,\n Spinner as UiSpinner,\n SplitPane as UiSplitPane,\n StatCard as UiStatCard,\n Stepper as UiStepper,\n Table as UiTable,\n Tabs as UiTabs,\n ThemeToggle as UiThemeToggle,\n Toast as UiToast,\n Toggle as UiToggle,\n Tooltip as UiTooltip,\n Tree as UiTree,\n VirtualList as UiVirtualList,\n Icon as UiIcon,\n}\n\nexport const components = {\n Alert,\n AppShell,\n Avatar,\n Badge,\n Banner,\n Breadcrumb,\n Button,\n Card,\n Checkbox,\n CodeBlock,\n CopyField,\n DescriptionList,\n Divider,\n Dropdown,\n DropdownItem,\n DropdownRow,\n DropdownSubmenu,\n EmptyState,\n FileInput,\n FormField,\n IconTile,\n Input,\n Kbd,\n ListMenu,\n ListMenuItem,\n Modal,\n Numpad,\n PageHeader,\n Pagination,\n Popup,\n ProgressBar,\n Prompt,\n Radio,\n SectionHeading,\n Segmented,\n Select,\n Sidebar,\n SidebarGroup,\n SidebarItem,\n Skeleton,\n Slider,\n Spinner,\n SplitPane,\n StatCard,\n Stepper,\n Table,\n Tabs,\n ThemeToggle,\n Toast,\n Toggle,\n Tooltip,\n Tree,\n VirtualList,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2HA,IAAa,aAAa;CACxB,OAAA;CACA,UAAA;CACA,QAAA;CACA,OAAA;CACA,QAAA;CACA,YAAA;CACA,QAAA;CACA,MAAA;CACA,UAAA;CACA,WAAA;CACA,WAAA;CACA,iBAAA;CACA,SAAA;CACA,UAAA;CACA,cAAA;CACA,aAAA;CACA,iBAAA;CACA,YAAA;CACA,WAAA;CACA,WAAA;CACA,UAAA;CACA,OAAA;CACA,KAAA;CACA,UAAA;CACA,cAAA;CACA,OAAA;CACA,QAAA;CACA,YAAA;CACA,YAAA;CACA,OAAA;CACA,aAAA;CACA,QAAA;CACA,OAAA;CACA,gBAAA;CACA,WAAA;CACA,QAAA;CACA,SAAA;CACA,cAAA;CACA,aAAA;CACA,UAAA;CACA,QAAA;CACA,SAAA;CACA,WAAA;CACA,UAAA;CACA,SAAA;CACA,OAAA;CACA,MAAA;CACA,aAAA;CACA,OAAA;CACA,QAAA;CACA,SAAA;CACA,MAAA;CACA,aAAA;AACF"}
package/dist/icons/mdi.js CHANGED
@@ -20,6 +20,8 @@ var mdiPaths = {
20
20
  "account-group": "M12 5.5A3.5 3.5 0 0 1 15.5 9a3.5 3.5 0 0 1-3.5 3.5A3.5 3.5 0 0 1 8.5 9A3.5 3.5 0 0 1 12 5.5M5 8c.56 0 1.08.15 1.53.42c-.15 1.43.27 2.85 1.13 3.96C7.16 13.34 6.16 14 5 14a3 3 0 0 1-3-3a3 3 0 0 1 3-3m14 0a3 3 0 0 1 3 3a3 3 0 0 1-3 3c-1.16 0-2.16-.66-2.66-1.62a5.54 5.54 0 0 0 1.13-3.96c.45-.27.97-.42 1.53-.42M5.5 18.25c0-2.07 2.91-3.75 6.5-3.75s6.5 1.68 6.5 3.75V20h-13zM0 20v-1.5c0-1.39 1.89-2.56 4.45-2.9c-.59.68-.95 1.62-.95 2.65V20zm24 0h-3.5v-1.75c0-1.03-.36-1.97-.95-2.65c2.56.34 4.45 1.51 4.45 2.9z",
21
21
  "alert-circle": "M13 13h-2V7h2m0 10h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2",
22
22
  "alert-outline": "M12 2L1 21h22M12 6l7.53 13H4.47M11 10v4h2v-4m-2 6v2h2v-2",
23
+ "arrow-down": "M11 4h2v12l5.5-5.5l1.42 1.42L12 19.84l-7.92-7.92L5.5 10.5L11 16z",
24
+ "arrow-up": "M13 20h-2V8l-5.5 5.5l-1.42-1.42L12 4.16l7.92 7.92l-1.42 1.42L13 8z",
23
25
  "backspace-outline": "M19 15.59L17.59 17L14 13.41L10.41 17L9 15.59L12.59 12L9 8.41L10.41 7L14 10.59L17.59 7L19 8.41L15.41 12zM22 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H7c-.69 0-1.23-.36-1.59-.89L0 12l5.41-8.12C5.77 3.35 6.31 3 7 3zm0 2H7l-4.72 7L7 19h15z",
24
26
  "check": "M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59z",
25
27
  "check-circle": "M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10s10-4.5 10-10S17.5 2 12 2m-2 15l-5-5l1.41-1.41L10 14.17l7.59-7.59L19 8z",
@@ -37,13 +39,19 @@ var mdiPaths = {
37
39
  "eraser": "m16.24 3.56l4.95 4.94c.78.79.78 2.05 0 2.84L12 20.53a4.01 4.01 0 0 1-5.66 0L2.81 17c-.78-.79-.78-2.05 0-2.84l10.6-10.6c.79-.78 2.05-.78 2.83 0M4.22 15.58l3.54 3.53c.78.79 2.04.79 2.83 0l3.53-3.53l-4.95-4.95z",
38
40
  "eye-off-outline": "M2 5.27L3.28 4L20 20.72L18.73 22l-3.08-3.08c-1.15.38-2.37.58-3.65.58c-5 0-9.27-3.11-11-7.5c.69-1.76 1.79-3.31 3.19-4.54zM12 9a3 3 0 0 1 3 3a3 3 0 0 1-.17 1L11 9.17A3 3 0 0 1 12 9m0-4.5c5 0 9.27 3.11 11 7.5a11.8 11.8 0 0 1-4 5.19l-1.42-1.43A9.86 9.86 0 0 0 20.82 12A9.82 9.82 0 0 0 12 6.5c-1.09 0-2.16.18-3.16.5L7.3 5.47c1.44-.62 3.03-.97 4.7-.97M3.18 12A9.82 9.82 0 0 0 12 17.5c.69 0 1.37-.07 2-.21L11.72 15A3.064 3.064 0 0 1 9 12.28L5.6 8.87c-.99.85-1.82 1.91-2.42 3.13",
39
41
  "eye-outline": "M12 9a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3m0-4.5c5 0 9.27 3.11 11 7.5c-1.73 4.39-6 7.5-11 7.5S2.73 16.39 1 12c1.73-4.39 6-7.5 11-7.5M3.18 12a9.821 9.821 0 0 0 17.64 0a9.821 9.821 0 0 0-17.64 0",
42
+ "file-document-outline": "M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm0 2h7v5h5v11H6zm2 8v2h8v-2zm0 4v2h5v-2z",
43
+ "folder-outline": "M20 18H4V8h16m0-2h-8l-2-2H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2",
40
44
  "format-bold": "M13.5 15.5H10v-3h3.5A1.5 1.5 0 0 1 15 14a1.5 1.5 0 0 1-1.5 1.5m-3.5-9h3A1.5 1.5 0 0 1 14.5 8A1.5 1.5 0 0 1 13 9.5h-3m5.6 1.29c.97-.68 1.65-1.79 1.65-2.79c0-2.26-1.75-4-4-4H7v14h7.04c2.1 0 3.71-1.7 3.71-3.79c0-1.52-.86-2.82-2.15-3.42",
41
45
  "format-italic": "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z",
42
46
  "format-text": "m18.5 4l1.16 4.35l-.96.26c-.45-.87-.91-1.74-1.44-2.18C16.73 6 16.11 6 15.5 6H13v10.5c0 .5 0 1 .33 1.25c.34.25 1 .25 1.67.25v1H9v-1c.67 0 1.33 0 1.67-.25c.33-.25.33-.75.33-1.25V6H8.5c-.61 0-1.23 0-1.76.43c-.53.44-.99 1.31-1.44 2.18l-.96-.26L5.5 4z",
47
+ "inbox": "M19 15h-4a3 3 0 0 1-3 3a3 3 0 0 1-3-3H5V5h14m0-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2",
48
+ "inbox-outline": "M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2M5 19v-2h3.13a4.13 4.13 0 0 0 1.27 2m9.6 0h-4.4a4.13 4.13 0 0 0 1.27-2H19m0-2h-5v1a2 2 0 0 1-4 0v-1H5V5h14Z",
43
49
  "information": "M13 9h-2V7h2m0 10h-2v-6h2m-1-9A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2",
50
+ "lan-connect": "M4 1c-1.11 0-2 .89-2 2v4c0 1.11.89 2 2 2H1v2h12V9h-3c1.11 0 2-.89 2-2V3c0-1.11-.89-2-2-2zm0 2h6v4H4zM3 13v7h7v-2H5v-5zm11 0c-1.11 0-2 .89-2 2v4c0 1.11.89 2 2 2h-3v2h12v-2h-3c1.11 0 2-.89 2-2v-4c0-1.11-.89-2-2-2zm0 2h6v4h-6z",
44
51
  "loading": "M12 4V2A10 10 0 0 0 2 12h2a8 8 0 0 1 8-8",
45
52
  "lock": "M12 17a2 2 0 0 0 2-2a2 2 0 0 0-2-2a2 2 0 0 0-2 2a2 2 0 0 0 2 2m6-9a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2h1V6a5 5 0 0 1 5-5a5 5 0 0 1 5 5v2zm-6-5a3 3 0 0 0-3 3v2h6V6a3 3 0 0 0-3-3",
46
53
  "logout": "m17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5M4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z",
54
+ "menu": "M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z",
47
55
  "minus": "M19 13H5v-2h14z",
48
56
  "minus-circle-outline": "M12 20c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2M7 13h10v-2H7",
49
57
  "note-text-outline": "M15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9zm4 16H5V5h9v5h5m-2 4H7v-2h10m-3 5H7v-2h7",
@@ -56,6 +64,10 @@ var mdiPaths = {
56
64
  "translate": "m12.87 15.07l-2.54-2.51l.03-.03A17.5 17.5 0 0 0 14.07 6H17V4h-7V2H8v2H1v2h11.17C11.5 7.92 10.44 9.75 9 11.35C8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5l3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7l1.62-4.33L19.12 17z",
57
65
  "trash-can": "M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3zm0 5h2v9H9zm4 0h2v9h-2z",
58
66
  "trash-can-outline": "M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3zM7 6h10v13H7zm2 2v9h2V8zm4 0v9h2V8z",
67
+ "trending-down": "m16 18l2.29-2.29l-4.88-4.88l-4 4L2 7.41L3.41 6l6 6l4-4l6.3 6.29L22 12v6z",
68
+ "trending-neutral": "m22 12l-4-4v3H3v2h15v3z",
69
+ "trending-up": "m16 6l2.29 2.29l-4.88 4.88l-4-4L2 16.59L3.41 18l6-6l4 4l6.3-6.29L22 12V6z",
70
+ "unfold-more-horizontal": "M12 18.17L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15M12 5.83L15.17 9l1.41-1.41L12 3L7.41 7.59L8.83 9z",
59
71
  "view-grid": "M3 11h8V3H3m0 18h8v-8H3m10 8h8v-8h-8m0-10v8h8V3",
60
72
  "view-list": "M9 5v4h12V5M9 19h12v-4H9m0-1h12v-4H9M4 9h4V5H4m0 14h4v-4H4m0-1h4v-4H4z",
61
73
  "weather-night": "m17.75 4.09l-2.53 1.94l.91 3.06l-2.63-1.81l-2.63 1.81l.91-3.06l-2.53-1.94L12.44 4l1.06-3l1.06 3zm3.5 6.91l-1.64 1.25l.59 1.98l-1.7-1.17l-1.7 1.17l.59-1.98L15.75 11l2.06-.05L18.5 9l.69 1.95zm-2.28 4.95c.83-.08 1.72 1.1 1.19 1.85c-.32.45-.66.87-1.08 1.27C15.17 23 8.84 23 4.94 19.07c-3.91-3.9-3.91-10.24 0-14.14c.4-.4.82-.76 1.27-1.08c.75-.53 1.93.36 1.85 1.19c-.27 2.86.69 5.83 2.89 8.02a9.96 9.96 0 0 0 8.02 2.89m-1.64 2.02a12.08 12.08 0 0 1-7.8-3.47c-2.17-2.19-3.33-5-3.49-7.82c-2.81 3.14-2.7 7.96.31 10.98c3.02 3.01 7.84 3.12 10.98.31",