numori-ui 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,236 @@
1
+ import { useBackButton } from "../composables/useBackButton.js";
2
+ import { useFocusTrap } from "../internal/focusTrap.js";
3
+ import { Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, ref, renderSlot, watch, withCtx } from "vue";
4
+ //#region src/components/Drawer.vue
5
+ var _hoisted_1 = ["aria-label", "aria-labelledby"];
6
+ var _hoisted_2 = {
7
+ key: 0,
8
+ class: "flex shrink-0 justify-center pt-2 pb-1",
9
+ "aria-hidden": "true"
10
+ };
11
+ var _sfc_main = {
12
+ __name: "Drawer",
13
+ props: {
14
+ /**
15
+ * Whether the drawer is open.
16
+ * @type {boolean}
17
+ * @default false
18
+ */
19
+ show: {
20
+ type: Boolean,
21
+ default: false
22
+ },
23
+ /**
24
+ * The edge it slides in from.
25
+ * @type {string}
26
+ * @default 'bottom'
27
+ * @values 'bottom' | 'left' | 'right'
28
+ */
29
+ side: {
30
+ type: String,
31
+ default: "bottom"
32
+ },
33
+ /**
34
+ * How far it reaches: the height of a bottom sheet, the width of a side panel.
35
+ * @type {string}
36
+ * @default 'md'
37
+ * @values 'sm' | 'md' | 'lg' | 'full'
38
+ */
39
+ size: {
40
+ type: String,
41
+ default: "md"
42
+ },
43
+ /**
44
+ * Ignore the backdrop, Escape and the back button.
45
+ * @type {boolean}
46
+ * @default false
47
+ */
48
+ persistent: {
49
+ type: Boolean,
50
+ default: false
51
+ },
52
+ /**
53
+ * Show a grab handle at the top of a bottom sheet.
54
+ * @type {boolean}
55
+ * @default true
56
+ */
57
+ handle: {
58
+ type: Boolean,
59
+ default: true
60
+ },
61
+ /**
62
+ * Accessible name. Prefer `labelledby` when there is a visible heading.
63
+ * @type {string}
64
+ * @default ''
65
+ */
66
+ label: {
67
+ type: String,
68
+ default: ""
69
+ },
70
+ /**
71
+ * Id of the element that names the drawer.
72
+ * @type {string}
73
+ * @default ''
74
+ */
75
+ labelledby: {
76
+ type: String,
77
+ default: ""
78
+ },
79
+ /**
80
+ * Extra classes for the panel.
81
+ * @type {string}
82
+ * @default ''
83
+ */
84
+ panelClass: {
85
+ type: String,
86
+ default: ""
87
+ },
88
+ /**
89
+ * Z-index class for the backdrop and panel.
90
+ * @type {string}
91
+ * @default 'z-50'
92
+ */
93
+ z: {
94
+ type: String,
95
+ default: "z-50"
96
+ }
97
+ },
98
+ emits: ["close"],
99
+ setup(__props, { emit: __emit }) {
100
+ /**
101
+ * UiDrawer — a panel that slides in from an edge of the screen: a bottom
102
+ * sheet on phones, a side panel on larger screens.
103
+ *
104
+ * It is a modal dialog in every respect but its position: `role="dialog"`
105
+ * with `aria-modal`, named by `label` or `labelledby`; focus moves inside when
106
+ * it opens, Tab stays inside, Escape and the backdrop close it (unless
107
+ * `persistent`), and focus returns to whatever opened it. On Android the
108
+ * system back button closes it too. Stacked with modals, only the top one
109
+ * responds.
110
+ *
111
+ * The panel respects the device's safe areas: a bottom sheet keeps clear of
112
+ * the home indicator, a side panel of notches and rounded corners.
113
+ *
114
+ * Content and scrolling are the caller's: put a header in the slot and give
115
+ * the body `overflow-y-auto` and `min-h-0`.
116
+ *
117
+ * @example A compose sheet on mobile
118
+ * <UiDrawer :show="composing" side="bottom" size="full" labelledby="compose-title" @close="composing = false">
119
+ * <h2 id="compose-title" class="p-4 font-semibold">New message</h2>
120
+ * <div class="min-h-0 flex-1 overflow-y-auto p-4">…</div>
121
+ * </UiDrawer>
122
+ *
123
+ * @example A side panel
124
+ * <UiDrawer :show="open" side="right" size="md" label="Filters" @close="open = false">
125
+ * <div class="p-6">…</div>
126
+ * </UiDrawer>
127
+ *
128
+ * @emits {void} close — The drawer should close (backdrop, Escape, back button).
129
+ *
130
+ * @slot default — Drawer content. Scope: `{ close }`.
131
+ */
132
+ const props = __props;
133
+ const emit = __emit;
134
+ const panelRef = ref(null);
135
+ useFocusTrap(() => panelRef.value, {
136
+ active: () => props.show,
137
+ escape: () => !props.persistent,
138
+ onEscape: () => emit("close")
139
+ });
140
+ const { register, unregister } = useBackButton();
141
+ let backId = null;
142
+ watch(() => props.show, (open) => {
143
+ if (open && backId === null) backId = register(() => {
144
+ if (props.persistent) return false;
145
+ emit("close");
146
+ return true;
147
+ });
148
+ else if (!open && backId !== null) {
149
+ unregister(backId);
150
+ backId = null;
151
+ }
152
+ }, { immediate: true });
153
+ onBeforeUnmount(() => {
154
+ if (backId !== null) unregister(backId);
155
+ });
156
+ const SIZES = {
157
+ bottom: {
158
+ sm: "max-h-[40dvh]",
159
+ md: "max-h-[65dvh]",
160
+ lg: "max-h-[85dvh]",
161
+ full: "h-[calc(100dvh-env(safe-area-inset-top)-0.5rem)]"
162
+ },
163
+ side: {
164
+ sm: "w-72",
165
+ md: "w-96",
166
+ lg: "w-[32rem]",
167
+ full: "w-full"
168
+ }
169
+ };
170
+ const placementClass = computed(() => {
171
+ if (props.side === "left") return `inset-y-0 left-0 max-w-full ${SIZES.side[props.size] ?? SIZES.side.md}`;
172
+ if (props.side === "right") return `inset-y-0 right-0 max-w-full ${SIZES.side[props.size] ?? SIZES.side.md}`;
173
+ return `inset-x-0 bottom-0 rounded-t-2xl ${SIZES.bottom[props.size] ?? SIZES.bottom.md}`;
174
+ });
175
+ const offscreenClass = computed(() => ({
176
+ left: "-translate-x-full",
177
+ right: "translate-x-full"
178
+ })[props.side] ?? "translate-y-full");
179
+ const safeAreaStyle = computed(() => {
180
+ if (props.side === "bottom") return { paddingBottom: "env(safe-area-inset-bottom)" };
181
+ if (props.side === "left") return {
182
+ paddingLeft: "env(safe-area-inset-left)",
183
+ paddingTop: "env(safe-area-inset-top)",
184
+ paddingBottom: "env(safe-area-inset-bottom)"
185
+ };
186
+ return {
187
+ paddingRight: "env(safe-area-inset-right)",
188
+ paddingTop: "env(safe-area-inset-top)",
189
+ paddingBottom: "env(safe-area-inset-bottom)"
190
+ };
191
+ });
192
+ return (_ctx, _cache) => {
193
+ return openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(Transition, {
194
+ "enter-active-class": "transition-opacity duration-200 motion-reduce:transition-none",
195
+ "enter-from-class": "opacity-0",
196
+ "leave-active-class": "transition-opacity duration-150 motion-reduce:transition-none",
197
+ "leave-to-class": "opacity-0"
198
+ }, {
199
+ default: withCtx(() => [__props.show ? (openBlock(), createElementBlock("div", {
200
+ key: 0,
201
+ class: normalizeClass(["fixed inset-0 bg-gray-950/50 backdrop-blur-sm", __props.z]),
202
+ "aria-hidden": "true",
203
+ onClick: _cache[0] || (_cache[0] = ($event) => !__props.persistent && _ctx.$emit("close"))
204
+ }, null, 2)) : createCommentVNode("", true)]),
205
+ _: 1
206
+ }), createVNode(Transition, {
207
+ "enter-active-class": "transition-transform duration-250 ease-out motion-reduce:transition-none",
208
+ "enter-from-class": offscreenClass.value,
209
+ "leave-active-class": "transition-transform duration-200 ease-in motion-reduce:transition-none",
210
+ "leave-to-class": offscreenClass.value
211
+ }, {
212
+ default: withCtx(() => [__props.show ? (openBlock(), createElementBlock("div", {
213
+ key: 0,
214
+ ref_key: "panelRef",
215
+ ref: panelRef,
216
+ role: "dialog",
217
+ "aria-modal": "true",
218
+ "aria-label": __props.labelledby ? void 0 : __props.label || void 0,
219
+ "aria-labelledby": __props.labelledby || void 0,
220
+ tabindex: "-1",
221
+ class: normalizeClass(["fixed flex flex-col bg-white text-gray-900 shadow-modal focus:outline-none dark:bg-gray-925 dark:text-gray-100", [
222
+ __props.z,
223
+ placementClass.value,
224
+ __props.panelClass
225
+ ]]),
226
+ style: normalizeStyle(safeAreaStyle.value)
227
+ }, [__props.side === "bottom" && __props.handle ? (openBlock(), createElementBlock("div", _hoisted_2, [..._cache[1] || (_cache[1] = [createElementVNode("span", { class: "h-1 w-10 rounded-full bg-gray-300 dark:bg-gray-600" }, null, -1)])])) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default", { close: () => _ctx.$emit("close") })], 14, _hoisted_1)) : createCommentVNode("", true)]),
228
+ _: 3
229
+ }, 8, ["enter-from-class", "leave-to-class"])]);
230
+ };
231
+ }
232
+ };
233
+ //#endregion
234
+ export { _sfc_main as default };
235
+
236
+ //# sourceMappingURL=Drawer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Drawer.js","names":["$emit"],"sources":["../../src/components/Drawer.vue"],"sourcesContent":["<template>\n <Teleport to=\"body\">\n <Transition\n enter-active-class=\"transition-opacity duration-200 motion-reduce:transition-none\"\n enter-from-class=\"opacity-0\"\n leave-active-class=\"transition-opacity duration-150 motion-reduce:transition-none\"\n leave-to-class=\"opacity-0\"\n >\n <div\n v-if=\"show\"\n class=\"fixed inset-0 bg-gray-950/50 backdrop-blur-sm\"\n :class=\"z\"\n aria-hidden=\"true\"\n @click=\"!persistent && $emit('close')\"\n />\n </Transition>\n <Transition\n enter-active-class=\"transition-transform duration-250 ease-out motion-reduce:transition-none\"\n :enter-from-class=\"offscreenClass\"\n leave-active-class=\"transition-transform duration-200 ease-in motion-reduce:transition-none\"\n :leave-to-class=\"offscreenClass\"\n >\n <div\n v-if=\"show\"\n ref=\"panelRef\"\n role=\"dialog\"\n aria-modal=\"true\"\n :aria-label=\"labelledby ? undefined : label || undefined\"\n :aria-labelledby=\"labelledby || undefined\"\n tabindex=\"-1\"\n class=\"fixed flex flex-col bg-white text-gray-900 shadow-modal focus:outline-none dark:bg-gray-925 dark:text-gray-100\"\n :class=\"[z, placementClass, panelClass]\"\n :style=\"safeAreaStyle\"\n >\n <div\n v-if=\"side === 'bottom' && handle\"\n class=\"flex shrink-0 justify-center pt-2 pb-1\"\n aria-hidden=\"true\"\n >\n <span class=\"h-1 w-10 rounded-full bg-gray-300 dark:bg-gray-600\" />\n </div>\n <slot :close=\"() => $emit('close')\" />\n </div>\n </Transition>\n </Teleport>\n</template>\n\n<script setup>\n/**\n * UiDrawer — a panel that slides in from an edge of the screen: a bottom\n * sheet on phones, a side panel on larger screens.\n *\n * It is a modal dialog in every respect but its position: `role=\"dialog\"`\n * with `aria-modal`, named by `label` or `labelledby`; focus moves inside when\n * it opens, Tab stays inside, Escape and the backdrop close it (unless\n * `persistent`), and focus returns to whatever opened it. On Android the\n * system back button closes it too. Stacked with modals, only the top one\n * responds.\n *\n * The panel respects the device's safe areas: a bottom sheet keeps clear of\n * the home indicator, a side panel of notches and rounded corners.\n *\n * Content and scrolling are the caller's: put a header in the slot and give\n * the body `overflow-y-auto` and `min-h-0`.\n *\n * @example A compose sheet on mobile\n * <UiDrawer :show=\"composing\" side=\"bottom\" size=\"full\" labelledby=\"compose-title\" @close=\"composing = false\">\n * <h2 id=\"compose-title\" class=\"p-4 font-semibold\">New message</h2>\n * <div class=\"min-h-0 flex-1 overflow-y-auto p-4\">…</div>\n * </UiDrawer>\n *\n * @example A side panel\n * <UiDrawer :show=\"open\" side=\"right\" size=\"md\" label=\"Filters\" @close=\"open = false\">\n * <div class=\"p-6\">…</div>\n * </UiDrawer>\n *\n * @emits {void} close — The drawer should close (backdrop, Escape, back button).\n *\n * @slot default — Drawer content. Scope: `{ close }`.\n */\nimport { computed, onBeforeUnmount, ref, watch } from 'vue'\nimport { useBackButton } from '../composables/useBackButton.js'\nimport { useFocusTrap } from '../internal/focusTrap.js'\n\nconst props = defineProps({\n /**\n * Whether the drawer is open.\n * @type {boolean}\n * @default false\n */\n show: { type: Boolean, default: false },\n /**\n * The edge it slides in from.\n * @type {string}\n * @default 'bottom'\n * @values 'bottom' | 'left' | 'right'\n */\n side: { type: String, default: 'bottom' },\n /**\n * How far it reaches: the height of a bottom sheet, the width of a side panel.\n * @type {string}\n * @default 'md'\n * @values 'sm' | 'md' | 'lg' | 'full'\n */\n size: { type: String, default: 'md' },\n /**\n * Ignore the backdrop, Escape and the back button.\n * @type {boolean}\n * @default false\n */\n persistent: { type: Boolean, default: false },\n /**\n * Show a grab handle at the top of a bottom sheet.\n * @type {boolean}\n * @default true\n */\n handle: { type: Boolean, default: true },\n /**\n * Accessible name. Prefer `labelledby` when there is a visible heading.\n * @type {string}\n * @default ''\n */\n label: { type: String, default: '' },\n /**\n * Id of the element that names the drawer.\n * @type {string}\n * @default ''\n */\n labelledby: { type: String, default: '' },\n /**\n * Extra classes for the panel.\n * @type {string}\n * @default ''\n */\n panelClass: { type: String, default: '' },\n /**\n * Z-index class for the backdrop and panel.\n * @type {string}\n * @default 'z-50'\n */\n z: { type: String, default: 'z-50' },\n})\n\nconst emit = defineEmits(['close'])\n\nconst panelRef = ref(null)\nuseFocusTrap(() => panelRef.value, {\n active: () => props.show,\n escape: () => !props.persistent,\n onEscape: () => emit('close'),\n})\n\n// ── Back button (Capacitor) ──\nconst { register, unregister } = useBackButton()\nlet backId = null\nwatch(\n () => props.show,\n (open) => {\n if (open && backId === null) {\n backId = register(() => {\n if (props.persistent) return false\n emit('close')\n return true\n })\n } else if (!open && backId !== null) {\n unregister(backId)\n backId = null\n }\n },\n { immediate: true },\n)\nonBeforeUnmount(() => {\n if (backId !== null) unregister(backId)\n})\n\nconst SIZES = {\n bottom: {\n sm: 'max-h-[40dvh]',\n md: 'max-h-[65dvh]',\n lg: 'max-h-[85dvh]',\n full: 'h-[calc(100dvh-env(safe-area-inset-top)-0.5rem)]',\n },\n side: { sm: 'w-72', md: 'w-96', lg: 'w-[32rem]', full: 'w-full' },\n}\n\nconst placementClass = computed(() => {\n if (props.side === 'left')\n return `inset-y-0 left-0 max-w-full ${SIZES.side[props.size] ?? SIZES.side.md}`\n if (props.side === 'right')\n return `inset-y-0 right-0 max-w-full ${SIZES.side[props.size] ?? SIZES.side.md}`\n return `inset-x-0 bottom-0 rounded-t-2xl ${SIZES.bottom[props.size] ?? SIZES.bottom.md}`\n})\n\nconst offscreenClass = computed(\n () =>\n ({ left: '-translate-x-full', right: 'translate-x-full' })[props.side] ?? 'translate-y-full',\n)\n\nconst safeAreaStyle = computed(() => {\n if (props.side === 'bottom') return { paddingBottom: 'env(safe-area-inset-bottom)' }\n if (props.side === 'left')\n return {\n paddingLeft: 'env(safe-area-inset-left)',\n paddingTop: 'env(safe-area-inset-top)',\n paddingBottom: 'env(safe-area-inset-bottom)',\n }\n return {\n paddingRight: 'env(safe-area-inset-right)',\n paddingTop: 'env(safe-area-inset-top)',\n paddingBottom: 'env(safe-area-inset-bottom)',\n }\n})\n</script>\n"],"mappings":"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"}
@@ -1,6 +1,6 @@
1
+ import { MENU_PANEL_CLASS } from "../internal/menu.js";
1
2
  import { useEventListener } from "../composables/useEventListener.js";
2
3
  import { onClickOutside } from "../composables/onClickOutside.js";
3
- import { MENU_PANEL_CLASS } from "../internal/menu.js";
4
4
  import { Transition, computed, createElementBlock, createElementVNode, createVNode, normalizeClass, normalizeStyle, openBlock, ref, renderSlot, vShow, withCtx, withDirectives } from "vue";
5
5
  //#region src/components/Dropdown.vue
6
6
  var _sfc_main = {
@@ -1,14 +1,17 @@
1
1
  import _sfc_main$1 from "../icons/Icon.js";
2
2
  import { Fragment, Teleport, TransitionGroup, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, normalizeClass, openBlock, renderList, toDisplayString, withCtx } from "vue";
3
3
  //#region src/components/Toast.vue
4
+ var _hoisted_1 = ["onClick"];
5
+ var _hoisted_2 = ["aria-label", "onClick"];
4
6
  var _sfc_main = {
5
7
  __name: "Toast",
6
8
  props: {
7
9
  /**
8
- * The messages to show. Each is `{ id, message, type?, icon? }`, where `id`
9
- * is stable and unique, `type` is one of the values below (default neutral),
10
- * and `icon` is an optional MDI name.
11
- * @type {Array<{ id: string|number, message: string, type?: string, icon?: string }>}
10
+ * The messages to show. Each is `{ id, message, type?, icon?, action?,
11
+ * dismissible? }`, where `id` is stable and unique, `type` is one of the
12
+ * values below (default neutral), `icon` is an optional MDI name, `action`
13
+ * labels a button, and `dismissible` adds a close button.
14
+ * @type {Array<{ id: string|number, message: string, type?: string, icon?: string, action?: string, dismissible?: boolean }>}
12
15
  * @default []
13
16
  */
14
17
  toasts: {
@@ -24,8 +27,18 @@ var _sfc_main = {
24
27
  position: {
25
28
  type: String,
26
29
  default: "top"
30
+ },
31
+ /**
32
+ * Accessible name of the close button on dismissible toasts.
33
+ * @type {string}
34
+ * @default 'Dismiss'
35
+ */
36
+ dismissLabel: {
37
+ type: String,
38
+ default: "Dismiss"
27
39
  }
28
40
  },
41
+ emits: ["action", "dismiss"],
29
42
  setup(__props) {
30
43
  /**
31
44
  * UiToast — a stack of transient, self-dismissing messages.
@@ -37,9 +50,14 @@ var _sfc_main = {
37
50
  * worth announcing is application logic, not layout. Hand it a reactive array
38
51
  * and mutate that array; the enter/leave transitions handle the rest.
39
52
  *
40
- * Each entry is `{ id, message, type?, icon? }`. `id` must be stable and unique
41
- * (it keys the transition); `type` picks the colour and defaults to a neutral
42
- * dark pill; `icon` is optional and drawn through `UiIcon`.
53
+ * Each entry is `{ id, message, type?, icon?, action?, dismissible? }`. `id`
54
+ * must be stable and unique (it keys the transition); `type` picks the colour
55
+ * and defaults to a neutral dark pill; `icon` is optional and drawn through
56
+ * `UiIcon`. `action` is the label of one button — "Undo", typically — and
57
+ * clicking it emits `action` with the toast; `dismissible` adds a close
58
+ * button that emits `dismiss`. Keep toasts with an action on screen long
59
+ * enough to reach (five seconds or more), and offer the same command from the
60
+ * keyboard elsewhere: a toast is never the only way to do something.
43
61
  *
44
62
  * The container does not capture pointer events, so it never blocks the UI
45
63
  * underneath; only the pills themselves do. Each pill is a `role="status"`, so a
@@ -59,9 +77,18 @@ var _sfc_main = {
59
77
  *
60
78
  * <UiToast :toasts="toasts" />
61
79
  * <UiButton @click="notify('Saved', 'success')">Save</UiButton>
80
+ *
81
+ * @example With an undo action
82
+ * <UiToast
83
+ * :toasts="[{ id: 1, message: 'Moved to Archive', icon: 'mdi:archive-outline', action: 'Undo' }]"
84
+ * @action="(toast) => undo(toast.id)"
85
+ * />
86
+ *
87
+ * @emits {object} action — The toast's action button was pressed (the toast).
88
+ * @emits {object} dismiss — The toast's close button was pressed (the toast).
62
89
  */
63
90
  const props = __props;
64
- const positionClass = computed(() => props.position === "bottom" ? "bottom-6" : "top-6");
91
+ const positionClass = computed(() => props.position === "bottom" ? "bottom-[max(1.5rem,env(safe-area-inset-bottom))]" : "top-6");
65
92
  /**
66
93
  * Toast colours are drawn from the design tokens (`success`/`warning`/`error`)
67
94
  * rather than literal Tailwind palette names, so a rebrand of those ramps
@@ -78,23 +105,42 @@ var _sfc_main = {
78
105
  };
79
106
  return (_ctx, _cache) => {
80
107
  return openBlock(), createBlock(Teleport, { to: "body" }, [createElementVNode("div", { class: normalizeClass(["fixed left-1/2 -translate-x-1/2 z-[100] flex flex-col items-center gap-2 pointer-events-none", positionClass.value]) }, [createVNode(TransitionGroup, {
81
- "enter-active-class": "transition-all duration-250 ease-out",
108
+ "enter-active-class": "transition-all duration-250 ease-out motion-reduce:transition-none",
82
109
  "enter-from-class": "opacity-0 -translate-y-3 scale-95",
83
110
  "enter-to-class": "opacity-100 translate-y-0 scale-100",
84
- "leave-active-class": "transition-all duration-200 ease-in",
111
+ "leave-active-class": "transition-all duration-200 ease-in motion-reduce:transition-none",
85
112
  "leave-from-class": "opacity-100 translate-y-0 scale-100",
86
113
  "leave-to-class": "opacity-0 -translate-y-1 scale-95"
87
114
  }, {
88
115
  default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.toasts, (toast) => {
89
116
  return openBlock(), createElementBlock("div", {
90
117
  key: toast.id,
91
- class: normalizeClass(["pointer-events-auto flex items-center gap-2 px-4 py-2.5 rounded-xl shadow-lg text-sm font-medium backdrop-blur-xs", toastClass(toast.type)]),
118
+ class: normalizeClass(["pointer-events-auto flex items-center gap-2 rounded-xl py-2.5 text-sm font-medium shadow-lg backdrop-blur-xs", [toastClass(toast.type), toast.action || toast.dismissible ? "pl-4 pr-2" : "px-4"]]),
92
119
  role: "status"
93
- }, [toast.icon ? (openBlock(), createBlock(_sfc_main$1, {
94
- key: 0,
95
- name: toast.icon,
96
- class: "w-4 h-4 shrink-0"
97
- }, null, 8, ["name"])) : createCommentVNode("", true), createElementVNode("span", null, toDisplayString(toast.message), 1)], 2);
120
+ }, [
121
+ toast.icon ? (openBlock(), createBlock(_sfc_main$1, {
122
+ key: 0,
123
+ name: toast.icon,
124
+ class: "w-4 h-4 shrink-0"
125
+ }, null, 8, ["name"])) : createCommentVNode("", true),
126
+ createElementVNode("span", null, toDisplayString(toast.message), 1),
127
+ toast.action ? (openBlock(), createElementBlock("button", {
128
+ key: 1,
129
+ type: "button",
130
+ class: "-my-1 ml-1 rounded-lg px-2.5 py-1 text-sm font-semibold underline-offset-2 transition-colors hover:bg-white/15 hover:underline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-current dark:hover:bg-gray-900/10",
131
+ onClick: ($event) => _ctx.$emit("action", toast)
132
+ }, toDisplayString(toast.action), 9, _hoisted_1)) : createCommentVNode("", true),
133
+ toast.dismissible ? (openBlock(), createElementBlock("button", {
134
+ key: 2,
135
+ type: "button",
136
+ class: "-my-1 inline-flex size-7 items-center justify-center rounded-lg opacity-80 transition hover:bg-white/15 hover:opacity-100 focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-current dark:hover:bg-gray-900/10",
137
+ "aria-label": __props.dismissLabel,
138
+ onClick: ($event) => _ctx.$emit("dismiss", toast)
139
+ }, [createVNode(_sfc_main$1, {
140
+ name: "mdi:close",
141
+ class: "w-4 h-4"
142
+ })], 8, _hoisted_2)) : createCommentVNode("", true)
143
+ ], 2);
98
144
  }), 128))]),
99
145
  _: 1
100
146
  })], 2)]);
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.js","names":[],"sources":["../../src/components/Toast.vue"],"sourcesContent":["<template>\n <Teleport to=\"body\">\n <div\n class=\"fixed left-1/2 -translate-x-1/2 z-[100] flex flex-col items-center gap-2 pointer-events-none\"\n :class=\"positionClass\"\n >\n <TransitionGroup\n enter-active-class=\"transition-all duration-250 ease-out\"\n enter-from-class=\"opacity-0 -translate-y-3 scale-95\"\n enter-to-class=\"opacity-100 translate-y-0 scale-100\"\n leave-active-class=\"transition-all duration-200 ease-in\"\n leave-from-class=\"opacity-100 translate-y-0 scale-100\"\n leave-to-class=\"opacity-0 -translate-y-1 scale-95\"\n >\n <div\n v-for=\"toast in toasts\"\n :key=\"toast.id\"\n class=\"pointer-events-auto flex items-center gap-2 px-4 py-2.5 rounded-xl shadow-lg text-sm font-medium backdrop-blur-xs\"\n :class=\"toastClass(toast.type)\"\n role=\"status\"\n >\n <UiIcon v-if=\"toast.icon\" :name=\"toast.icon\" class=\"w-4 h-4 shrink-0\" />\n <span>{{ toast.message }}</span>\n </div>\n </TransitionGroup>\n </div>\n </Teleport>\n</template>\n\n<script setup>\n/**\n * UiToast — a stack of transient, self-dismissing messages.\n *\n * The presentational half of a toast system: it renders and animates a list of\n * messages, teleported to `<body>` so it floats above everything and clear of\n * any parent's `overflow` or stacking context. Owning the list — adding a toast,\n * timing it out, removing it — is the app's job, because *when* something is\n * worth announcing is application logic, not layout. Hand it a reactive array\n * and mutate that array; the enter/leave transitions handle the rest.\n *\n * Each entry is `{ id, message, type?, icon? }`. `id` must be stable and unique\n * (it keys the transition); `type` picks the colour and defaults to a neutral\n * dark pill; `icon` is optional and drawn through `UiIcon`.\n *\n * The container does not capture pointer events, so it never blocks the UI\n * underneath; only the pills themselves do. Each pill is a `role=\"status\"`, so a\n * screen reader announces it politely without stealing focus.\n *\n * @example\n * <script setup>\n * import { ref } from 'vue'\n * const toasts = ref([])\n * let seq = 0\n * function notify(message, type = 'info') {\n * const id = ++seq\n * toasts.value.push({ id, message, type })\n * setTimeout(() => { toasts.value = toasts.value.filter((t) => t.id !== id) }, 3000)\n * }\n * <\\/script>\n *\n * <UiToast :toasts=\"toasts\" />\n * <UiButton @click=\"notify('Saved', 'success')\">Save</UiButton>\n */\nimport { computed } from 'vue'\nimport UiIcon from '../icons/Icon.vue'\n\nconst props = defineProps({\n /**\n * The messages to show. Each is `{ id, message, type?, icon? }`, where `id`\n * is stable and unique, `type` is one of the values below (default neutral),\n * and `icon` is an optional MDI name.\n * @type {Array<{ id: string|number, message: string, type?: string, icon?: string }>}\n * @default []\n */\n toasts: { type: Array, default: () => [] },\n\n /**\n * Where the stack anchors on screen.\n * @type {string}\n * @default 'top'\n * @values 'top' | 'bottom'\n */\n position: { type: String, default: 'top' },\n})\n\nconst positionClass = computed(() => (props.position === 'bottom' ? 'bottom-6' : 'top-6'))\n\n/**\n * Toast colours are drawn from the design tokens (`success`/`warning`/`error`)\n * rather than literal Tailwind palette names, so a rebrand of those ramps\n * carries through here too. Anything unrecognised falls back to a neutral pill.\n * @param {string} type\n */\nconst toastClass = (type) => {\n switch (type) {\n case 'success':\n return 'bg-success-600/90 text-white dark:bg-success-500/90'\n case 'warning':\n return 'bg-warning-500/90 text-white dark:bg-warning-500/90'\n case 'error':\n return 'bg-error-600/90 text-white dark:bg-error-500/90'\n default:\n return 'bg-gray-800/90 text-white dark:bg-gray-200/90 dark:text-gray-900'\n }\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkEA,MAAM,QAAQ;EAmBd,MAAM,gBAAgB,eAAgB,MAAM,aAAa,WAAW,aAAa,OAAQ;;;;;;;EAQzF,MAAM,cAAc,SAAS;GAC3B,QAAQ,MAAR;IACE,KAAK,WACH,OAAO;IACT,KAAK,WACH,OAAO;IACT,KAAK,SACH,OAAO;IACT,SACE,OAAO;GACX;EACF;;GAvGE,OAAA,UAAA,GAAA,YAyBW,UAAA,EAzBD,IAAG,OAAM,GAAA,CACjB,mBAuBM,OAAA,EAtBJ,OAAK,eAAA,CAAC,gGACE,cAAA,KAAa,CAAA,EAAA,GAAA,CAErB,YAkBkB,iBAAA;IAjBhB,sBAAmB;IACnB,oBAAiB;IACjB,kBAAe;IACf,sBAAmB;IACnB,oBAAiB;IACjB,kBAAe;;IAGb,SAAA,cAAuB,EADzB,UAAA,IAAA,GAAA,mBASM,UAAA,MAAA,WARY,QAAA,SAAT,UAAK;KADd,OAAA,UAAA,GAAA,mBASM,OAAA;MAPH,KAAK,MAAM;MACZ,OAAK,eAAA,CAAC,qHACE,WAAW,MAAM,IAAI,CAAA,CAAA;MAC7B,MAAK;KAES,GAAA,CAAA,MAAM,QAApB,UAAA,GAAA,YAAwE,aAAA;;MAA7C,MAAM,MAAM;MAAM,OAAM;KACnD,GAAA,MAAA,GAAA,CAAA,MAAA,CAAA,KAAA,mBAAA,IAAA,IAAA,GAAA,mBAAgC,QAAA,MAAA,gBAAvB,MAAM,OAAO,GAAA,CAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"Toast.js","names":["$emit"],"sources":["../../src/components/Toast.vue"],"sourcesContent":["<template>\n <Teleport to=\"body\">\n <div\n class=\"fixed left-1/2 -translate-x-1/2 z-[100] flex flex-col items-center gap-2 pointer-events-none\"\n :class=\"positionClass\"\n >\n <TransitionGroup\n enter-active-class=\"transition-all duration-250 ease-out motion-reduce:transition-none\"\n enter-from-class=\"opacity-0 -translate-y-3 scale-95\"\n enter-to-class=\"opacity-100 translate-y-0 scale-100\"\n leave-active-class=\"transition-all duration-200 ease-in motion-reduce:transition-none\"\n leave-from-class=\"opacity-100 translate-y-0 scale-100\"\n leave-to-class=\"opacity-0 -translate-y-1 scale-95\"\n >\n <div\n v-for=\"toast in toasts\"\n :key=\"toast.id\"\n class=\"pointer-events-auto flex items-center gap-2 rounded-xl py-2.5 text-sm font-medium shadow-lg backdrop-blur-xs\"\n :class=\"[\n toastClass(toast.type),\n toast.action || toast.dismissible ? 'pl-4 pr-2' : 'px-4',\n ]\"\n role=\"status\"\n >\n <UiIcon v-if=\"toast.icon\" :name=\"toast.icon\" class=\"w-4 h-4 shrink-0\" />\n <span>{{ toast.message }}</span>\n <button\n v-if=\"toast.action\"\n type=\"button\"\n class=\"-my-1 ml-1 rounded-lg px-2.5 py-1 text-sm font-semibold underline-offset-2 transition-colors hover:bg-white/15 hover:underline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-current dark:hover:bg-gray-900/10\"\n @click=\"$emit('action', toast)\"\n >\n {{ toast.action }}\n </button>\n <button\n v-if=\"toast.dismissible\"\n type=\"button\"\n class=\"-my-1 inline-flex size-7 items-center justify-center rounded-lg opacity-80 transition hover:bg-white/15 hover:opacity-100 focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-current dark:hover:bg-gray-900/10\"\n :aria-label=\"dismissLabel\"\n @click=\"$emit('dismiss', toast)\"\n >\n <UiIcon name=\"mdi:close\" class=\"w-4 h-4\" />\n </button>\n </div>\n </TransitionGroup>\n </div>\n </Teleport>\n</template>\n\n<script setup>\n/**\n * UiToast — a stack of transient, self-dismissing messages.\n *\n * The presentational half of a toast system: it renders and animates a list of\n * messages, teleported to `<body>` so it floats above everything and clear of\n * any parent's `overflow` or stacking context. Owning the list — adding a toast,\n * timing it out, removing it — is the app's job, because *when* something is\n * worth announcing is application logic, not layout. Hand it a reactive array\n * and mutate that array; the enter/leave transitions handle the rest.\n *\n * Each entry is `{ id, message, type?, icon?, action?, dismissible? }`. `id`\n * must be stable and unique (it keys the transition); `type` picks the colour\n * and defaults to a neutral dark pill; `icon` is optional and drawn through\n * `UiIcon`. `action` is the label of one button — \"Undo\", typically — and\n * clicking it emits `action` with the toast; `dismissible` adds a close\n * button that emits `dismiss`. Keep toasts with an action on screen long\n * enough to reach (five seconds or more), and offer the same command from the\n * keyboard elsewhere: a toast is never the only way to do something.\n *\n * The container does not capture pointer events, so it never blocks the UI\n * underneath; only the pills themselves do. Each pill is a `role=\"status\"`, so a\n * screen reader announces it politely without stealing focus.\n *\n * @example\n * <script setup>\n * import { ref } from 'vue'\n * const toasts = ref([])\n * let seq = 0\n * function notify(message, type = 'info') {\n * const id = ++seq\n * toasts.value.push({ id, message, type })\n * setTimeout(() => { toasts.value = toasts.value.filter((t) => t.id !== id) }, 3000)\n * }\n * <\\/script>\n *\n * <UiToast :toasts=\"toasts\" />\n * <UiButton @click=\"notify('Saved', 'success')\">Save</UiButton>\n *\n * @example With an undo action\n * <UiToast\n * :toasts=\"[{ id: 1, message: 'Moved to Archive', icon: 'mdi:archive-outline', action: 'Undo' }]\"\n * @action=\"(toast) => undo(toast.id)\"\n * />\n *\n * @emits {object} action — The toast's action button was pressed (the toast).\n * @emits {object} dismiss — The toast's close button was pressed (the toast).\n */\nimport { computed } from 'vue'\nimport UiIcon from '../icons/Icon.vue'\n\nconst props = defineProps({\n /**\n * The messages to show. Each is `{ id, message, type?, icon?, action?,\n * dismissible? }`, where `id` is stable and unique, `type` is one of the\n * values below (default neutral), `icon` is an optional MDI name, `action`\n * labels a button, and `dismissible` adds a close button.\n * @type {Array<{ id: string|number, message: string, type?: string, icon?: string, action?: string, dismissible?: boolean }>}\n * @default []\n */\n toasts: { type: Array, default: () => [] },\n /**\n * Where the stack anchors on screen.\n * @type {string}\n * @default 'top'\n * @values 'top' | 'bottom'\n */\n position: { type: String, default: 'top' },\n /**\n * Accessible name of the close button on dismissible toasts.\n * @type {string}\n * @default 'Dismiss'\n */\n dismissLabel: { type: String, default: 'Dismiss' },\n})\n\ndefineEmits(['action', 'dismiss'])\n\nconst positionClass = computed(() =>\n props.position === 'bottom' ? 'bottom-[max(1.5rem,env(safe-area-inset-bottom))]' : 'top-6',\n)\n\n/**\n * Toast colours are drawn from the design tokens (`success`/`warning`/`error`)\n * rather than literal Tailwind palette names, so a rebrand of those ramps\n * carries through here too. Anything unrecognised falls back to a neutral pill.\n * @param {string} type\n */\nconst toastClass = (type) => {\n switch (type) {\n case 'success':\n return 'bg-success-600/90 text-white dark:bg-success-500/90'\n case 'warning':\n return 'bg-warning-500/90 text-white dark:bg-warning-500/90'\n case 'error':\n return 'bg-error-600/90 text-white dark:bg-error-500/90'\n default:\n return 'bg-gray-800/90 text-white dark:bg-gray-200/90 dark:text-gray-900'\n }\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoGA,MAAM,QAAQ;EA2Bd,MAAM,gBAAgB,eACpB,MAAM,aAAa,WAAW,qDAAqD,OACrF;;;;;;;EAQA,MAAM,cAAc,SAAS;GAC3B,QAAQ,MAAR;IACE,KAAK,WACH,OAAO;IACT,KAAK,WACH,OAAO;IACT,KAAK,SACH,OAAO;IACT,SACE,OAAO;GACX;EACF;;GAnJE,OAAA,UAAA,GAAA,YA6CW,UAAA,EA7CD,IAAG,OAAM,GAAA,CACjB,mBA2CM,OAAA,EA1CJ,OAAK,eAAA,CAAC,gGACE,cAAA,KAAa,CAAA,EAAA,GAAA,CAErB,YAsCkB,iBAAA;IArChB,sBAAmB;IACnB,oBAAiB;IACjB,kBAAe;IACf,sBAAmB;IACnB,oBAAiB;IACjB,kBAAe;;IAGb,SAAA,cAAuB,EADzB,UAAA,IAAA,GAAA,mBA6BM,UAAA,MAAA,WA5BY,QAAA,SAAT,UAAK;KADd,OAAA,UAAA,GAAA,mBA6BM,OAAA;MA3BH,KAAK,MAAM;MACZ,OAAK,eAAA,CAAC,gHAA8G,CAC9F,WAAW,MAAM,IAAI,GAAe,MAAM,UAAU,MAAM,cAAW,cAAA,MAAA,CAAA,CAAA;MAI3F,MAAK;;MAES,MAAM,QAApB,UAAA,GAAA,YAAwE,aAAA;;OAA7C,MAAM,MAAM;OAAM,OAAM;;MACnD,mBAAgC,QAAA,MAAA,gBAAvB,MAAM,OAAO,GAAA,CAAA;MAEd,MAAM,UADd,UAAA,GAAA,mBAOS,UAAA;;OALP,MAAK;OACL,OAAM;OACL,UAAK,WAAEA,KAAAA,MAAK,UAAW,KAAK;MAE1B,GAAA,gBAAA,MAAM,MAAM,GAAA,GAAA,UAAA,KAAA,mBAAA,IAAA,IAAA;MAGT,MAAM,eADd,UAAA,GAAA,mBAQS,UAAA;;OANP,MAAK;OACL,OAAM;OACL,cAAY,QAAA;OACZ,UAAK,WAAEA,KAAAA,MAAK,WAAY,KAAK;MAE9B,GAAA,CAAA,YAA2C,aAAA;OAAnC,MAAK;OAAY,OAAM"}
@@ -8,50 +8,52 @@ import _sfc_main$6 from "./Breadcrumb.js";
8
8
  import _sfc_main$7 from "./Button.js";
9
9
  import _sfc_main$8 from "./Card.js";
10
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";
11
+ import _sfc_main$10 from "./ChipsInput.js";
12
+ import _sfc_main$11 from "./CodeBlock.js";
13
+ import _sfc_main$12 from "./CopyField.js";
14
+ import _sfc_main$13 from "./DescriptionList.js";
15
+ import _sfc_main$14 from "./Divider.js";
16
+ import _sfc_main$15 from "./Drawer.js";
17
+ import _sfc_main$16 from "./Dropdown.js";
18
+ import _sfc_main$17 from "./DropdownItem.js";
19
+ import _sfc_main$18 from "./DropdownRow.js";
20
+ import _sfc_main$19 from "./DropdownSubmenu.js";
21
+ import _sfc_main$20 from "./EmptyState.js";
22
+ import _sfc_main$21 from "./FileInput.js";
23
+ import _sfc_main$22 from "./FormField.js";
24
+ import _sfc_main$23 from "./IconTile.js";
25
+ import _sfc_main$24 from "./Input.js";
26
+ import _sfc_main$25 from "./Kbd.js";
27
+ import _sfc_main$26 from "./ListMenu.js";
28
+ import _sfc_main$27 from "./ListMenuItem.js";
29
+ import _sfc_main$28 from "./Modal.js";
30
+ import _sfc_main$29 from "./Numpad.js";
31
+ import _sfc_main$30 from "./PageHeader.js";
32
+ import _sfc_main$31 from "./Pagination.js";
33
+ import _sfc_main$32 from "./Popup.js";
34
+ import _sfc_main$33 from "./ProgressBar.js";
35
+ import _sfc_main$34 from "./Prompt.js";
36
+ import _sfc_main$35 from "./Radio.js";
37
+ import _sfc_main$36 from "./SectionHeading.js";
38
+ import _sfc_main$37 from "./Segmented.js";
39
+ import _sfc_main$38 from "./Select.js";
40
+ import _sfc_main$39 from "./Sidebar.js";
41
+ import _sfc_main$40 from "./SidebarGroup.js";
42
+ import _sfc_main$41 from "./SidebarItem.js";
43
+ import _sfc_main$42 from "./Skeleton.js";
44
+ import _sfc_main$43 from "./Slider.js";
45
+ import _sfc_main$44 from "./Spinner.js";
46
+ import _sfc_main$45 from "./SplitPane.js";
47
+ import _sfc_main$46 from "./StatCard.js";
48
+ import _sfc_main$47 from "./Stepper.js";
49
+ import _sfc_main$48 from "./Table.js";
50
+ import _sfc_main$49 from "./Tabs.js";
51
+ import _sfc_main$50 from "./ThemeToggle.js";
52
+ import _sfc_main$51 from "./Toast.js";
53
+ import _sfc_main$52 from "./Toggle.js";
54
+ import _sfc_main$53 from "./Tooltip.js";
55
+ import _sfc_main$54 from "./Tree.js";
56
+ import _sfc_main$55 from "./VirtualList.js";
55
57
  //#region src/components/index.js
56
58
  /**
57
59
  * Real component imports, re-exported under the default `Ui` prefix.
@@ -74,52 +76,54 @@ var components = {
74
76
  Button: _sfc_main$7,
75
77
  Card: _sfc_main$8,
76
78
  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
79
+ ChipsInput: _sfc_main$10,
80
+ CodeBlock: _sfc_main$11,
81
+ CopyField: _sfc_main$12,
82
+ DescriptionList: _sfc_main$13,
83
+ Divider: _sfc_main$14,
84
+ Drawer: _sfc_main$15,
85
+ Dropdown: _sfc_main$16,
86
+ DropdownItem: _sfc_main$17,
87
+ DropdownRow: _sfc_main$18,
88
+ DropdownSubmenu: _sfc_main$19,
89
+ EmptyState: _sfc_main$20,
90
+ FileInput: _sfc_main$21,
91
+ FormField: _sfc_main$22,
92
+ IconTile: _sfc_main$23,
93
+ Input: _sfc_main$24,
94
+ Kbd: _sfc_main$25,
95
+ ListMenu: _sfc_main$26,
96
+ ListMenuItem: _sfc_main$27,
97
+ Modal: _sfc_main$28,
98
+ Numpad: _sfc_main$29,
99
+ PageHeader: _sfc_main$30,
100
+ Pagination: _sfc_main$31,
101
+ Popup: _sfc_main$32,
102
+ ProgressBar: _sfc_main$33,
103
+ Prompt: _sfc_main$34,
104
+ Radio: _sfc_main$35,
105
+ SectionHeading: _sfc_main$36,
106
+ Segmented: _sfc_main$37,
107
+ Select: _sfc_main$38,
108
+ Sidebar: _sfc_main$39,
109
+ SidebarGroup: _sfc_main$40,
110
+ SidebarItem: _sfc_main$41,
111
+ Skeleton: _sfc_main$42,
112
+ Slider: _sfc_main$43,
113
+ Spinner: _sfc_main$44,
114
+ SplitPane: _sfc_main$45,
115
+ StatCard: _sfc_main$46,
116
+ Stepper: _sfc_main$47,
117
+ Table: _sfc_main$48,
118
+ Tabs: _sfc_main$49,
119
+ ThemeToggle: _sfc_main$50,
120
+ Toast: _sfc_main$51,
121
+ Toggle: _sfc_main$52,
122
+ Tooltip: _sfc_main$53,
123
+ Tree: _sfc_main$54,
124
+ VirtualList: _sfc_main$55
121
125
  };
122
126
  //#endregion
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 };
127
+ 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 UiChipsInput, _sfc_main$11 as UiCodeBlock, _sfc_main$12 as UiCopyField, _sfc_main$13 as UiDescriptionList, _sfc_main$14 as UiDivider, _sfc_main$15 as UiDrawer, _sfc_main$16 as UiDropdown, _sfc_main$17 as UiDropdownItem, _sfc_main$18 as UiDropdownRow, _sfc_main$19 as UiDropdownSubmenu, _sfc_main$20 as UiEmptyState, _sfc_main$21 as UiFileInput, _sfc_main$22 as UiFormField, _sfc_main as UiIcon, _sfc_main$23 as UiIconTile, _sfc_main$24 as UiInput, _sfc_main$25 as UiKbd, _sfc_main$26 as UiListMenu, _sfc_main$27 as UiListMenuItem, _sfc_main$28 as UiModal, _sfc_main$29 as UiNumpad, _sfc_main$30 as UiPageHeader, _sfc_main$31 as UiPagination, _sfc_main$32 as UiPopup, _sfc_main$33 as UiProgressBar, _sfc_main$34 as UiPrompt, _sfc_main$35 as UiRadio, _sfc_main$36 as UiSectionHeading, _sfc_main$37 as UiSegmented, _sfc_main$38 as UiSelect, _sfc_main$39 as UiSidebar, _sfc_main$40 as UiSidebarGroup, _sfc_main$41 as UiSidebarItem, _sfc_main$42 as UiSkeleton, _sfc_main$43 as UiSlider, _sfc_main$44 as UiSpinner, _sfc_main$45 as UiSplitPane, _sfc_main$46 as UiStatCard, _sfc_main$47 as UiStepper, _sfc_main$48 as UiTable, _sfc_main$49 as UiTabs, _sfc_main$50 as UiThemeToggle, _sfc_main$51 as UiToast, _sfc_main$52 as UiToggle, _sfc_main$53 as UiTooltip, _sfc_main$54 as UiTree, _sfc_main$55 as UiVirtualList, components };
124
128
 
125
129
  //# sourceMappingURL=index.js.map