numori-ui 0.1.1 → 0.3.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 (48) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/README.md +20 -9
  3. package/dist/components/Banner.js +179 -0
  4. package/dist/components/Banner.js.map +1 -0
  5. package/dist/components/Breadcrumb.js +107 -0
  6. package/dist/components/Breadcrumb.js.map +1 -0
  7. package/dist/components/Card.js +174 -0
  8. package/dist/components/Card.js.map +1 -0
  9. package/dist/components/CodeBlock.js +101 -0
  10. package/dist/components/CodeBlock.js.map +1 -0
  11. package/dist/components/ComparisonTable.js +152 -0
  12. package/dist/components/ComparisonTable.js.map +1 -0
  13. package/dist/components/IconTile.js +96 -0
  14. package/dist/components/IconTile.js.map +1 -0
  15. package/dist/components/SectionHeading.js +142 -0
  16. package/dist/components/SectionHeading.js.map +1 -0
  17. package/dist/components/Segmented.js +148 -0
  18. package/dist/components/Segmented.js.map +1 -0
  19. package/dist/components/Spinner.js +87 -0
  20. package/dist/components/Spinner.js.map +1 -0
  21. package/dist/components/ThemeToggle.js +85 -0
  22. package/dist/components/ThemeToggle.js.map +1 -0
  23. package/dist/components/Toast.js +107 -0
  24. package/dist/components/Toast.js.map +1 -0
  25. package/dist/components/index.js +73 -51
  26. package/dist/components/index.js.map +1 -1
  27. package/dist/icons/mdi.js +9 -0
  28. package/dist/icons/mdi.js.map +1 -1
  29. package/dist/index.d.ts +11 -0
  30. package/dist/index.js +38 -27
  31. package/dist/index.js.map +1 -1
  32. package/dist/manifest.js +11 -0
  33. package/dist/manifest.js.map +1 -1
  34. package/package.json +2 -1
  35. package/src/components/Banner.vue +149 -0
  36. package/src/components/Breadcrumb.vue +89 -0
  37. package/src/components/Card.vue +169 -0
  38. package/src/components/CodeBlock.vue +99 -0
  39. package/src/components/ComparisonTable.vue +141 -0
  40. package/src/components/IconTile.vue +100 -0
  41. package/src/components/SectionHeading.vue +121 -0
  42. package/src/components/Segmented.vue +152 -0
  43. package/src/components/Spinner.vue +70 -0
  44. package/src/components/ThemeToggle.vue +81 -0
  45. package/src/components/Toast.vue +106 -0
  46. package/src/components/index.js +33 -0
  47. package/src/icons/mdi.js +9 -0
  48. package/src/manifest.js +11 -0
@@ -0,0 +1,148 @@
1
+ import _sfc_main$1 from "../icons/Icon.js";
2
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, normalizeClass, normalizeStyle, openBlock, renderList, toDisplayString } from "vue";
3
+ //#region src/components/Segmented.vue
4
+ var _hoisted_1 = ["aria-label"];
5
+ var _hoisted_2 = [
6
+ "aria-pressed",
7
+ "disabled",
8
+ "onClick"
9
+ ];
10
+ var activeTextClass = "text-white";
11
+ var idleTextClass = "text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-100";
12
+ var _sfc_main = {
13
+ __name: "Segmented",
14
+ props: {
15
+ /**
16
+ * Selected value (v-model), matched against each option's `value`.
17
+ * @type {string | number}
18
+ * @default undefined
19
+ */
20
+ modelValue: {
21
+ type: [String, Number],
22
+ default: void 0
23
+ },
24
+ /**
25
+ * The options. Each is `{ value, label, icon?, disabled? }`.
26
+ * @type {Array<{ value: string|number, label: string, icon?: string, disabled?: boolean }>}
27
+ */
28
+ options: {
29
+ type: Array,
30
+ required: true
31
+ },
32
+ /**
33
+ * Size preset controlling padding and font size.
34
+ * @type {string}
35
+ * @default 'md'
36
+ * @values 'sm' | 'md'
37
+ */
38
+ size: {
39
+ type: String,
40
+ default: "md"
41
+ },
42
+ /**
43
+ * Corner shape of the track and pill.
44
+ * @type {string}
45
+ * @default 'pill'
46
+ * @values 'pill' | 'rounded'
47
+ */
48
+ shape: {
49
+ type: String,
50
+ default: "pill"
51
+ },
52
+ /**
53
+ * Accessible name for the group. Omit if you label it with an external
54
+ * heading via `aria-labelledby` (which falls through to the root).
55
+ * @type {string}
56
+ * @default undefined
57
+ */
58
+ ariaLabel: {
59
+ type: String,
60
+ default: void 0
61
+ }
62
+ },
63
+ emits: ["update:modelValue"],
64
+ setup(__props, { emit: __emit }) {
65
+ /**
66
+ * UiSegmented — a segmented control: pick one of a few named options from a row
67
+ * of buttons, with a pill that slides to the active choice.
68
+ *
69
+ * This is a set of toggle buttons (`role="group"` + `aria-pressed`), not a
70
+ * switch, because the choice is between named options rather than on/off — "the
71
+ * second option is off" is not something a screen reader should say. Segments
72
+ * are equal width so the pill can slide by whole columns.
73
+ *
74
+ * For an on/off control use `UiToggle`; for many options or a searchable list
75
+ * use `UiSelect`.
76
+ *
77
+ * @example Billing period
78
+ * <UiSegmented
79
+ * v-model="billing"
80
+ * :options="[
81
+ * { value: 'monthly', label: 'Monthly' },
82
+ * { value: 'yearly', label: 'Yearly' },
83
+ * ]"
84
+ * aria-label="Billing period"
85
+ * />
86
+ *
87
+ * @example With icons and a labelled-by heading
88
+ * <h2 id="view-h" class="sr-only">View</h2>
89
+ * <UiSegmented v-model="view" :options="views" aria-labelledby="view-h" />
90
+ *
91
+ * @emits {string|number} update:modelValue — the chosen option's `value`
92
+ */
93
+ const props = __props;
94
+ const emit = __emit;
95
+ const count = computed(() => props.options?.length || 1);
96
+ const isActive = (option) => option.value === props.modelValue;
97
+ const activeIndex = computed(() => {
98
+ const i = (props.options ?? []).findIndex((o) => o.value === props.modelValue);
99
+ return i === -1 ? 0 : i;
100
+ });
101
+ function select(option, index) {
102
+ if (option.disabled) return;
103
+ emit("update:modelValue", option.value);
104
+ }
105
+ const trackClass = computed(() => props.shape === "rounded" ? "rounded-xl" : "rounded-full");
106
+ const buttonShapeClass = computed(() => props.shape === "rounded" ? "rounded-lg" : "rounded-full");
107
+ const pillClass = computed(() => props.shape === "rounded" ? "rounded-lg" : "rounded-full");
108
+ const buttonSizeClass = computed(() => props.size === "sm" ? "px-3 py-1 text-xs" : "px-4 py-1.5 text-sm");
109
+ const iconSizeClass = computed(() => props.size === "sm" ? "size-3.5" : "size-4");
110
+ const pillStyle = computed(() => ({
111
+ width: `calc((100% - 0.5rem) / ${count.value})`,
112
+ transform: `translateX(calc(${activeIndex.value} * 100%))`
113
+ }));
114
+ return (_ctx, _cache) => {
115
+ return openBlock(), createElementBlock("div", {
116
+ role: "group",
117
+ "aria-label": __props.ariaLabel,
118
+ class: normalizeClass(["relative inline-grid p-1", [trackClass.value, "border border-gray-200 bg-gray-50 dark:border-gray-700 dark:bg-gray-900"]]),
119
+ style: normalizeStyle({ gridTemplateColumns: `repeat(${count.value}, minmax(0, 1fr))` })
120
+ }, [createElementVNode("span", {
121
+ "aria-hidden": "true",
122
+ class: normalizeClass(["pointer-events-none absolute bottom-1 left-1 top-1 bg-primary-500 shadow-sm transition-transform duration-300 ease-out motion-reduce:transition-none", pillClass.value]),
123
+ style: normalizeStyle(pillStyle.value)
124
+ }, null, 6), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
125
+ return openBlock(), createElementBlock("button", {
126
+ key: option.value,
127
+ type: "button",
128
+ "aria-pressed": isActive(option) ? "true" : "false",
129
+ disabled: option.disabled,
130
+ class: normalizeClass(["relative z-10 inline-flex items-center justify-center gap-1.5 font-semibold transition-colors disabled:cursor-not-allowed disabled:opacity-50", [
131
+ buttonSizeClass.value,
132
+ buttonShapeClass.value,
133
+ isActive(option) ? activeTextClass : idleTextClass
134
+ ]]),
135
+ onClick: ($event) => select(option, index)
136
+ }, [option.icon ? (openBlock(), createBlock(_sfc_main$1, {
137
+ key: 0,
138
+ name: option.icon,
139
+ class: normalizeClass(iconSizeClass.value)
140
+ }, null, 8, ["name", "class"])) : createCommentVNode("", true), createTextVNode(" " + toDisplayString(option.label), 1)], 10, _hoisted_2);
141
+ }), 128))], 14, _hoisted_1);
142
+ };
143
+ }
144
+ };
145
+ //#endregion
146
+ export { _sfc_main as default };
147
+
148
+ //# sourceMappingURL=Segmented.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Segmented.js","names":[],"sources":["../../src/components/Segmented.vue"],"sourcesContent":["<template>\n <div\n role=\"group\"\n :aria-label=\"ariaLabel\"\n class=\"relative inline-grid p-1\"\n :class=\"[trackClass, 'border border-gray-200 bg-gray-50 dark:border-gray-700 dark:bg-gray-900']\"\n :style=\"{ gridTemplateColumns: `repeat(${count}, minmax(0, 1fr))` }\"\n >\n <!--\n A single pill slides between segments rather than each segment owning its\n own background, so the movement animates. Segments are equal-width, so the\n pill's width is one column and it translates by whole columns. `top/bottom/\n left` inset it inside the track's padding; `%` in translateX resolves\n against the pill's own (one-column) width.\n -->\n <span\n aria-hidden=\"true\"\n class=\"pointer-events-none absolute bottom-1 left-1 top-1 bg-primary-500 shadow-sm transition-transform duration-300 ease-out motion-reduce:transition-none\"\n :class=\"pillClass\"\n :style=\"pillStyle\"\n />\n\n <button\n v-for=\"(option, index) in options\"\n :key=\"option.value\"\n type=\"button\"\n :aria-pressed=\"isActive(option) ? 'true' : 'false'\"\n :disabled=\"option.disabled\"\n class=\"relative z-10 inline-flex items-center justify-center gap-1.5 font-semibold transition-colors disabled:cursor-not-allowed disabled:opacity-50\"\n :class=\"[\n buttonSizeClass,\n buttonShapeClass,\n isActive(option) ? activeTextClass : idleTextClass,\n ]\"\n @click=\"select(option, index)\"\n >\n <UiIcon v-if=\"option.icon\" :name=\"option.icon\" :class=\"iconSizeClass\" />\n {{ option.label }}\n </button>\n </div>\n</template>\n\n<script setup>\n/**\n * UiSegmented — a segmented control: pick one of a few named options from a row\n * of buttons, with a pill that slides to the active choice.\n *\n * This is a set of toggle buttons (`role=\"group\"` + `aria-pressed`), not a\n * switch, because the choice is between named options rather than on/off — \"the\n * second option is off\" is not something a screen reader should say. Segments\n * are equal width so the pill can slide by whole columns.\n *\n * For an on/off control use `UiToggle`; for many options or a searchable list\n * use `UiSelect`.\n *\n * @example Billing period\n * <UiSegmented\n * v-model=\"billing\"\n * :options=\"[\n * { value: 'monthly', label: 'Monthly' },\n * { value: 'yearly', label: 'Yearly' },\n * ]\"\n * aria-label=\"Billing period\"\n * />\n *\n * @example With icons and a labelled-by heading\n * <h2 id=\"view-h\" class=\"sr-only\">View</h2>\n * <UiSegmented v-model=\"view\" :options=\"views\" aria-labelledby=\"view-h\" />\n *\n * @emits {string|number} update:modelValue — the chosen option's `value`\n */\nimport { computed } from 'vue'\nimport UiIcon from '../icons/Icon.vue'\n\nconst props = defineProps({\n /**\n * Selected value (v-model), matched against each option's `value`.\n * @type {string | number}\n * @default undefined\n */\n modelValue: { type: [String, Number], default: undefined },\n\n /**\n * The options. Each is `{ value, label, icon?, disabled? }`.\n * @type {Array<{ value: string|number, label: string, icon?: string, disabled?: boolean }>}\n */\n options: { type: Array, required: true },\n\n /**\n * Size preset controlling padding and font size.\n * @type {string}\n * @default 'md'\n * @values 'sm' | 'md'\n */\n size: { type: String, default: 'md' },\n\n /**\n * Corner shape of the track and pill.\n * @type {string}\n * @default 'pill'\n * @values 'pill' | 'rounded'\n */\n shape: { type: String, default: 'pill' },\n\n /**\n * Accessible name for the group. Omit if you label it with an external\n * heading via `aria-labelledby` (which falls through to the root).\n * @type {string}\n * @default undefined\n */\n ariaLabel: { type: String, default: undefined },\n})\n\nconst emit = defineEmits(['update:modelValue'])\n\nconst count = computed(() => props.options?.length || 1)\n\nconst isActive = (option) => option.value === props.modelValue\n\nconst activeIndex = computed(() => {\n const i = (props.options ?? []).findIndex((o) => o.value === props.modelValue)\n return i === -1 ? 0 : i\n})\n\nfunction select(option, index) {\n if (option.disabled) return\n emit('update:modelValue', option.value)\n // index is accepted for symmetry with the template call site; the value is\n // what identifies the option.\n void index\n}\n\nconst trackClass = computed(() => (props.shape === 'rounded' ? 'rounded-xl' : 'rounded-full'))\nconst buttonShapeClass = computed(() => (props.shape === 'rounded' ? 'rounded-lg' : 'rounded-full'))\nconst pillClass = computed(() => (props.shape === 'rounded' ? 'rounded-lg' : 'rounded-full'))\n\nconst buttonSizeClass = computed(() =>\n props.size === 'sm' ? 'px-3 py-1 text-xs' : 'px-4 py-1.5 text-sm',\n)\nconst iconSizeClass = computed(() => (props.size === 'sm' ? 'size-3.5' : 'size-4'))\n\nconst activeTextClass = 'text-white'\nconst idleTextClass =\n 'text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-100'\n\nconst pillStyle = computed(() => ({\n // Track padding is p-1 (0.25rem) each side, so the usable width is\n // `100% - 0.5rem`; one segment is that divided by the option count.\n width: `calc((100% - 0.5rem) / ${count.value})`,\n transform: `translateX(calc(${activeIndex.value} * 100%))`,\n}))\n</script>\n"],"mappings":";;;;;;;;;AA6IA,IAAM,kBAAkB;AACxB,IAAM,gBACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EArEF,MAAM,QAAQ;EAuCd,MAAM,OAAO;EAEb,MAAM,QAAQ,eAAe,MAAM,SAAS,UAAU,CAAC;EAEvD,MAAM,YAAY,WAAW,OAAO,UAAU,MAAM;EAEpD,MAAM,cAAc,eAAe;GACjC,MAAM,KAAK,MAAM,WAAW,CAAC,EAAA,CAAG,WAAW,MAAM,EAAE,UAAU,MAAM,UAAU;GAC7E,OAAO,MAAM,KAAK,IAAI;EACxB,CAAC;EAED,SAAS,OAAO,QAAQ,OAAO;GAC7B,IAAI,OAAO,UAAU;GACrB,KAAK,qBAAqB,OAAO,KAAK;EAIxC;EAEA,MAAM,aAAa,eAAgB,MAAM,UAAU,YAAY,eAAe,cAAe;EAC7F,MAAM,mBAAmB,eAAgB,MAAM,UAAU,YAAY,eAAe,cAAe;EACnG,MAAM,YAAY,eAAgB,MAAM,UAAU,YAAY,eAAe,cAAe;EAE5F,MAAM,kBAAkB,eACtB,MAAM,SAAS,OAAO,sBAAsB,qBAC9C;EACA,MAAM,gBAAgB,eAAgB,MAAM,SAAS,OAAO,aAAa,QAAS;EAMlF,MAAM,YAAY,gBAAgB;GAGhC,OAAO,0BAA0B,MAAM,MAAM;GAC7C,WAAW,mBAAmB,YAAY,MAAM;EAClD,EAAE;;GArJA,OAAA,UAAA,GAAA,mBAsCM,OAAA;IArCJ,MAAK;IACJ,cAAY,QAAA;IACb,OAAK,eAAA,CAAC,4BAA0B,CACvB,WAAA,OAAU,yEAAA,CAAA,CAAA;IAClB,OAAK,eAAA,EAAA,qBAAA,UAAmC,MAAA,MAAK,mBAAA,CAAA;GAS9C,GAAA,CAAA,mBAKE,QAAA;IAJA,eAAY;IACZ,OAAK,eAAA,CAAC,wJACE,UAAA,KAAS,CAAA;IAChB,OAAK,eAAE,UAAA,KAAS;GAGnB,GAAA,MAAA,CAAA,IAAA,UAAA,IAAA,GAAA,mBAgBS,UAAA,MAAA,WAfmB,QAAA,UAAlB,QAAQ,UAAK;IADvB,OAAA,UAAA,GAAA,mBAgBS,UAAA;KAdN,KAAK,OAAO;KACb,MAAK;KACJ,gBAAc,SAAS,MAAM,IAAA,SAAA;KAC7B,UAAU,OAAO;KAClB,OAAK,eAAA,CAAC,iJAA+I;MACnI,gBAAA;MAAyB,iBAAA;MAA0B,SAAS,MAAM,IAAI,kBAAkB;;KAKzG,UAAK,WAAE,OAAO,QAAQ,KAAK;IAEd,GAAA,CAAA,OAAO,QAArB,UAAA,GAAA,YAAwE,aAAA;;KAA5C,MAAM,OAAO;KAAO,OAAK,eAAE,cAAA,KAAa;IAAI,GAAA,MAAA,GAAA,CAAA,QAAA,OAAA,CAAA,KAAA,mBAAA,IAAA,IAAA,GAAA,gBAAA,MACxE,gBAAG,OAAO,KAAK,GAAA,CAAA,CAAA,GAAA,IAAA,UAAA"}
@@ -0,0 +1,87 @@
1
+ import _sfc_main$1 from "../icons/Icon.js";
2
+ import { computed, createBlock, normalizeClass, openBlock } from "vue";
3
+ //#region src/components/Spinner.vue
4
+ var _sfc_main = {
5
+ __name: "Spinner",
6
+ props: {
7
+ /**
8
+ * Diameter of the spinner.
9
+ * @type {string}
10
+ * @default 'md'
11
+ * @values 'xs' | 'sm' | 'md' | 'lg' | 'xl'
12
+ */
13
+ size: {
14
+ type: String,
15
+ default: "md"
16
+ },
17
+ /**
18
+ * Accessible label. When set, the spinner is announced as a live status
19
+ * region; when omitted, it is hidden from assistive technology as decorative.
20
+ * @type {string}
21
+ * @default ''
22
+ */
23
+ label: {
24
+ type: String,
25
+ default: ""
26
+ },
27
+ /**
28
+ * MDI icon to spin. The default is the same one `UiButton` uses; pass another
29
+ * (e.g. `'mdi:sync'`) for a different look.
30
+ * @type {string}
31
+ * @default 'mdi:loading'
32
+ */
33
+ icon: {
34
+ type: String,
35
+ default: "mdi:loading"
36
+ }
37
+ },
38
+ setup(__props) {
39
+ /**
40
+ * UiSpinner — a spinning icon for loading and in-progress states.
41
+ *
42
+ * The same glyph `UiButton` shows while loading, pulled out as a standalone
43
+ * primitive so anything can signal work in progress without reaching for a
44
+ * button or hand-rolling `animate-spin`. Colour is inherited (`text-*`), exactly
45
+ * like `UiIcon`, so a spinner tints to match whatever surrounds it.
46
+ *
47
+ * By default it is decorative and hidden from assistive technology, which is
48
+ * right when a nearby label already says what is happening ("Saving…" next to
49
+ * it). Give it a `label` and it becomes a live `role="status"` region that
50
+ * announces on its own — use that when the spinner is the only thing on screen.
51
+ *
52
+ * @example Inline, decorative
53
+ * <UiSpinner />
54
+ *
55
+ * @example Larger, tinted, and self-announcing
56
+ * <UiSpinner size="lg" label="Syncing" class="text-primary-600 dark:text-primary-400" />
57
+ */
58
+ const props = __props;
59
+ const SIZES = {
60
+ xs: "w-3 h-3",
61
+ sm: "w-3.5 h-3.5",
62
+ md: "w-5 h-5",
63
+ lg: "w-6 h-6",
64
+ xl: "w-8 h-8"
65
+ };
66
+ const sizeClass = computed(() => SIZES[props.size] || SIZES.md);
67
+ return (_ctx, _cache) => {
68
+ return openBlock(), createBlock(_sfc_main$1, {
69
+ name: __props.icon,
70
+ class: normalizeClass(["animate-spin", sizeClass.value]),
71
+ "aria-hidden": __props.label ? void 0 : "true",
72
+ "aria-label": __props.label || void 0,
73
+ role: __props.label ? "status" : void 0
74
+ }, null, 8, [
75
+ "name",
76
+ "class",
77
+ "aria-hidden",
78
+ "aria-label",
79
+ "role"
80
+ ]);
81
+ };
82
+ }
83
+ };
84
+ //#endregion
85
+ export { _sfc_main as default };
86
+
87
+ //# sourceMappingURL=Spinner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Spinner.js","names":[],"sources":["../../src/components/Spinner.vue"],"sourcesContent":["<template>\n <UiIcon\n :name=\"icon\"\n class=\"animate-spin\"\n :class=\"sizeClass\"\n :aria-hidden=\"label ? undefined : 'true'\"\n :aria-label=\"label || undefined\"\n :role=\"label ? 'status' : undefined\"\n />\n</template>\n\n<script setup>\n/**\n * UiSpinner — a spinning icon for loading and in-progress states.\n *\n * The same glyph `UiButton` shows while loading, pulled out as a standalone\n * primitive so anything can signal work in progress without reaching for a\n * button or hand-rolling `animate-spin`. Colour is inherited (`text-*`), exactly\n * like `UiIcon`, so a spinner tints to match whatever surrounds it.\n *\n * By default it is decorative and hidden from assistive technology, which is\n * right when a nearby label already says what is happening (\"Saving…\" next to\n * it). Give it a `label` and it becomes a live `role=\"status\"` region that\n * announces on its own — use that when the spinner is the only thing on screen.\n *\n * @example Inline, decorative\n * <UiSpinner />\n *\n * @example Larger, tinted, and self-announcing\n * <UiSpinner size=\"lg\" label=\"Syncing\" class=\"text-primary-600 dark:text-primary-400\" />\n */\nimport { computed } from 'vue'\nimport UiIcon from '../icons/Icon.vue'\n\nconst props = defineProps({\n /**\n * Diameter of the spinner.\n * @type {string}\n * @default 'md'\n * @values 'xs' | 'sm' | 'md' | 'lg' | 'xl'\n */\n size: { type: String, default: 'md' },\n\n /**\n * Accessible label. When set, the spinner is announced as a live status\n * region; when omitted, it is hidden from assistive technology as decorative.\n * @type {string}\n * @default ''\n */\n label: { type: String, default: '' },\n\n /**\n * MDI icon to spin. The default is the same one `UiButton` uses; pass another\n * (e.g. `'mdi:sync'`) for a different look.\n * @type {string}\n * @default 'mdi:loading'\n */\n icon: { type: String, default: 'mdi:loading' },\n})\n\nconst SIZES = {\n xs: 'w-3 h-3',\n sm: 'w-3.5 h-3.5',\n md: 'w-5 h-5',\n lg: 'w-6 h-6',\n xl: 'w-8 h-8',\n}\n\nconst sizeClass = computed(() => SIZES[props.size] || SIZES.md)\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCA,MAAM,QAAQ;EA0Bd,MAAM,QAAQ;GACZ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;EACN;EAEA,MAAM,YAAY,eAAe,MAAM,MAAM,SAAS,MAAM,EAAE;;GAnE5D,OAAA,UAAA,GAAA,YAOE,aAAA;IANC,MAAM,QAAA;IACP,OAAK,eAAA,CAAC,gBACE,UAAA,KAAS,CAAA;IAChB,eAAa,QAAA,QAAQ,KAAA,IAAS;IAC9B,cAAY,QAAA,SAAS,KAAA;IACrB,MAAM,QAAA,QAAK,WAAc,KAAA"}
@@ -0,0 +1,85 @@
1
+ import _sfc_main$1 from "../icons/Icon.js";
2
+ import _sfc_main$2 from "./Button.js";
3
+ import { createBlock, createElementVNode, createVNode, normalizeClass, openBlock, withCtx } from "vue";
4
+ //#region src/components/ThemeToggle.vue
5
+ var _hoisted_1 = { class: "grid size-5 place-items-center" };
6
+ var _sfc_main = {
7
+ __name: "ThemeToggle",
8
+ props: {
9
+ /**
10
+ * Whether the dark theme is currently active. Drives which glyph is shown.
11
+ * @type {boolean}
12
+ * @default false
13
+ */
14
+ isDark: {
15
+ type: Boolean,
16
+ default: false
17
+ },
18
+ /**
19
+ * Accessible name and hover tooltip. Should describe the action the control
20
+ * performs, e.g. "Switch to dark mode".
21
+ * @type {string}
22
+ * @default 'Toggle theme'
23
+ */
24
+ label: {
25
+ type: String,
26
+ default: "Toggle theme"
27
+ }
28
+ },
29
+ emits: ["toggle"],
30
+ setup(__props, { emit: __emit }) {
31
+ /**
32
+ * UiThemeToggle — an icon button that flips between light and dark.
33
+ *
34
+ * Deliberately presentational and stateless. Numori UI's dark mode is a `.dark`
35
+ * class on `<html>`, but *how* that class gets toggled and persisted is the
36
+ * host's decision — `@nuxtjs/color-mode`, VueUse's `useDark`, or two hand-written
37
+ * lines. So this component owns none of that: it takes the current state as
38
+ * `isDark` and emits `toggle`, and the parent does the flip.
39
+ *
40
+ * Because it is icon-only it carries both `title` (for pointer users) and
41
+ * `aria-label` (an icon has no accessible name otherwise), both from `label`.
42
+ * The sun and moon share one grid cell and cross-fade with a rotation.
43
+ *
44
+ * Under SSR the rendered theme is not known until the client reads the stored
45
+ * preference, so wrap it in whatever your framework uses to defer to the client
46
+ * (Nuxt's `<ClientOnly>`, for instance) if you render on the server, to avoid a
47
+ * hydration mismatch on the icon.
48
+ *
49
+ * @example With @nuxtjs/color-mode
50
+ * <script setup>
51
+ * const colorMode = useColorMode()
52
+ * const isDark = computed(() => colorMode.value === 'dark')
53
+ * const toggle = () => { colorMode.preference = isDark.value ? 'light' : 'dark' }
54
+ * <\/script>
55
+ *
56
+ * <UiThemeToggle :is-dark="isDark" :label="isDark ? 'Switch to light' : 'Switch to dark'"
57
+ * @toggle="toggle" />
58
+ */
59
+ const emit = __emit;
60
+ return (_ctx, _cache) => {
61
+ return openBlock(), createBlock(_sfc_main$2, {
62
+ variant: "ghost",
63
+ color: "gray",
64
+ "icon-only": "",
65
+ title: __props.label,
66
+ "aria-label": __props.label,
67
+ class: "group",
68
+ onClick: _cache[0] || (_cache[0] = ($event) => emit("toggle"))
69
+ }, {
70
+ default: withCtx(() => [createElementVNode("span", _hoisted_1, [createVNode(_sfc_main$1, {
71
+ name: "mdi:weather-sunny",
72
+ class: normalizeClass(["col-start-1 row-start-1 size-5 transition-all duration-300", __props.isDark ? "rotate-0 scale-100 opacity-100" : "-rotate-90 scale-50 opacity-0"])
73
+ }, null, 8, ["class"]), createVNode(_sfc_main$1, {
74
+ name: "mdi:weather-night",
75
+ class: normalizeClass(["col-start-1 row-start-1 size-5 transition-all duration-300", __props.isDark ? "rotate-90 scale-50 opacity-0" : "rotate-0 scale-100 opacity-100"])
76
+ }, null, 8, ["class"])])]),
77
+ _: 1
78
+ }, 8, ["title", "aria-label"]);
79
+ };
80
+ }
81
+ };
82
+ //#endregion
83
+ export { _sfc_main as default };
84
+
85
+ //# sourceMappingURL=ThemeToggle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeToggle.js","names":[],"sources":["../../src/components/ThemeToggle.vue"],"sourcesContent":["<template>\n <UiButton\n variant=\"ghost\"\n color=\"gray\"\n icon-only\n :title=\"label\"\n :aria-label=\"label\"\n class=\"group\"\n @click=\"emit('toggle')\"\n >\n <!--\n The two glyphs occupy the same grid cell and cross-fade with a quarter\n turn, so flipping the theme reads as one control turning over rather than\n an icon being swapped out.\n -->\n <span class=\"grid size-5 place-items-center\">\n <UiIcon\n name=\"mdi:weather-sunny\"\n class=\"col-start-1 row-start-1 size-5 transition-all duration-300\"\n :class=\"isDark ? 'rotate-0 scale-100 opacity-100' : '-rotate-90 scale-50 opacity-0'\"\n />\n <UiIcon\n name=\"mdi:weather-night\"\n class=\"col-start-1 row-start-1 size-5 transition-all duration-300\"\n :class=\"isDark ? 'rotate-90 scale-50 opacity-0' : 'rotate-0 scale-100 opacity-100'\"\n />\n </span>\n </UiButton>\n</template>\n\n<script setup>\n/**\n * UiThemeToggle — an icon button that flips between light and dark.\n *\n * Deliberately presentational and stateless. Numori UI's dark mode is a `.dark`\n * class on `<html>`, but *how* that class gets toggled and persisted is the\n * host's decision — `@nuxtjs/color-mode`, VueUse's `useDark`, or two hand-written\n * lines. So this component owns none of that: it takes the current state as\n * `isDark` and emits `toggle`, and the parent does the flip.\n *\n * Because it is icon-only it carries both `title` (for pointer users) and\n * `aria-label` (an icon has no accessible name otherwise), both from `label`.\n * The sun and moon share one grid cell and cross-fade with a rotation.\n *\n * Under SSR the rendered theme is not known until the client reads the stored\n * preference, so wrap it in whatever your framework uses to defer to the client\n * (Nuxt's `<ClientOnly>`, for instance) if you render on the server, to avoid a\n * hydration mismatch on the icon.\n *\n * @example With @nuxtjs/color-mode\n * <script setup>\n * const colorMode = useColorMode()\n * const isDark = computed(() => colorMode.value === 'dark')\n * const toggle = () => { colorMode.preference = isDark.value ? 'light' : 'dark' }\n * <\\/script>\n *\n * <UiThemeToggle :is-dark=\"isDark\" :label=\"isDark ? 'Switch to light' : 'Switch to dark'\"\n * @toggle=\"toggle\" />\n */\nimport UiButton from './Button.vue'\nimport UiIcon from '../icons/Icon.vue'\n\ndefineProps({\n /**\n * Whether the dark theme is currently active. Drives which glyph is shown.\n * @type {boolean}\n * @default false\n */\n isDark: { type: Boolean, default: false },\n\n /**\n * Accessible name and hover tooltip. Should describe the action the control\n * performs, e.g. \"Switch to dark mode\".\n * @type {string}\n * @default 'Toggle theme'\n */\n label: { type: String, default: 'Toggle theme' },\n})\n\nconst emit = defineEmits(['toggle'])\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+EA,MAAM,OAAO;;GA9EX,OAAA,UAAA,GAAA,YA0BW,aAAA;IAzBT,SAAQ;IACR,OAAM;IACN,aAAA;IACC,OAAO,QAAA;IACP,cAAY,QAAA;IACb,OAAM;IACL,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,KAAI,QAAA;;IAOZ,SAAA,cAWO,CAXP,mBAWO,QAXP,YAWO,CAVL,YAIE,aAAA;KAHA,MAAK;KACL,OAAK,eAAA,CAAC,8DACE,QAAA,SAAM,mCAAA,+BAAA,CAAA;IAEhB,GAAA,MAAA,GAAA,CAAA,OAAA,CAAA,GAAA,YAIE,aAAA;KAHA,MAAK;KACL,OAAK,eAAA,CAAC,8DACE,QAAA,SAAM,iCAAA,gCAAA,CAAA"}
@@ -0,0 +1,107 @@
1
+ import _sfc_main$1 from "../icons/Icon.js";
2
+ import { Fragment, Teleport, TransitionGroup, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, normalizeClass, openBlock, renderList, toDisplayString, withCtx } from "vue";
3
+ //#region src/components/Toast.vue
4
+ var _sfc_main = {
5
+ __name: "Toast",
6
+ props: {
7
+ /**
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 }>}
12
+ * @default []
13
+ */
14
+ toasts: {
15
+ type: Array,
16
+ default: () => []
17
+ },
18
+ /**
19
+ * Where the stack anchors on screen.
20
+ * @type {string}
21
+ * @default 'top'
22
+ * @values 'top' | 'bottom'
23
+ */
24
+ position: {
25
+ type: String,
26
+ default: "top"
27
+ }
28
+ },
29
+ setup(__props) {
30
+ /**
31
+ * UiToast — a stack of transient, self-dismissing messages.
32
+ *
33
+ * The presentational half of a toast system: it renders and animates a list of
34
+ * messages, teleported to `<body>` so it floats above everything and clear of
35
+ * any parent's `overflow` or stacking context. Owning the list — adding a toast,
36
+ * timing it out, removing it — is the app's job, because *when* something is
37
+ * worth announcing is application logic, not layout. Hand it a reactive array
38
+ * and mutate that array; the enter/leave transitions handle the rest.
39
+ *
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`.
43
+ *
44
+ * The container does not capture pointer events, so it never blocks the UI
45
+ * underneath; only the pills themselves do. Each pill is a `role="status"`, so a
46
+ * screen reader announces it politely without stealing focus.
47
+ *
48
+ * @example
49
+ * <script setup>
50
+ * import { ref } from 'vue'
51
+ * const toasts = ref([])
52
+ * let seq = 0
53
+ * function notify(message, type = 'info') {
54
+ * const id = ++seq
55
+ * toasts.value.push({ id, message, type })
56
+ * setTimeout(() => { toasts.value = toasts.value.filter((t) => t.id !== id) }, 3000)
57
+ * }
58
+ * <\/script>
59
+ *
60
+ * <UiToast :toasts="toasts" />
61
+ * <UiButton @click="notify('Saved', 'success')">Save</UiButton>
62
+ */
63
+ const props = __props;
64
+ const positionClass = computed(() => props.position === "bottom" ? "bottom-6" : "top-6");
65
+ /**
66
+ * Toast colours are drawn from the design tokens (`success`/`warning`/`error`)
67
+ * rather than literal Tailwind palette names, so a rebrand of those ramps
68
+ * carries through here too. Anything unrecognised falls back to a neutral pill.
69
+ * @param {string} type
70
+ */
71
+ const toastClass = (type) => {
72
+ switch (type) {
73
+ case "success": return "bg-success-600/90 text-white dark:bg-success-500/90";
74
+ case "warning": return "bg-warning-500/90 text-white dark:bg-warning-500/90";
75
+ case "error": return "bg-error-600/90 text-white dark:bg-error-500/90";
76
+ default: return "bg-gray-800/90 text-white dark:bg-gray-200/90 dark:text-gray-900";
77
+ }
78
+ };
79
+ return (_ctx, _cache) => {
80
+ 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",
82
+ "enter-from-class": "opacity-0 -translate-y-3 scale-95",
83
+ "enter-to-class": "opacity-100 translate-y-0 scale-100",
84
+ "leave-active-class": "transition-all duration-200 ease-in",
85
+ "leave-from-class": "opacity-100 translate-y-0 scale-100",
86
+ "leave-to-class": "opacity-0 -translate-y-1 scale-95"
87
+ }, {
88
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.toasts, (toast) => {
89
+ return openBlock(), createElementBlock("div", {
90
+ 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)]),
92
+ 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);
98
+ }), 128))]),
99
+ _: 1
100
+ })], 2)]);
101
+ };
102
+ }
103
+ };
104
+ //#endregion
105
+ export { _sfc_main as default };
106
+
107
+ //# sourceMappingURL=Toast.js.map
@@ -0,0 +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"}
@@ -2,31 +2,42 @@ import _sfc_main from "../icons/Icon.js";
2
2
  import _sfc_main$1 from "./Alert.js";
3
3
  import _sfc_main$2 from "./Avatar.js";
4
4
  import _sfc_main$3 from "./Badge.js";
5
- import _sfc_main$4 from "./Button.js";
6
- import _sfc_main$5 from "./ButtonsGroup.js";
7
- import _sfc_main$6 from "./Checkbox.js";
8
- import _sfc_main$7 from "./Divider.js";
9
- import _sfc_main$8 from "./Dropdown.js";
10
- import _sfc_main$9 from "./DropdownItem.js";
11
- import _sfc_main$10 from "./DropdownRow.js";
12
- import _sfc_main$11 from "./DropdownSubmenu.js";
13
- import _sfc_main$12 from "./FileInput.js";
14
- import _sfc_main$13 from "./FormField.js";
15
- import _sfc_main$14 from "./Input.js";
16
- import _sfc_main$15 from "./Kbd.js";
17
- import _sfc_main$16 from "./ListMenu.js";
18
- import _sfc_main$17 from "./ListMenuItem.js";
19
- import _sfc_main$18 from "./Modal.js";
20
- import _sfc_main$19 from "./Numpad.js";
21
- import _sfc_main$20 from "./Popup.js";
22
- import _sfc_main$21 from "./ProgressBar.js";
23
- import _sfc_main$22 from "./Prompt.js";
24
- import _sfc_main$23 from "./Radio.js";
25
- import _sfc_main$24 from "./Select.js";
26
- import _sfc_main$25 from "./Slider.js";
27
- import _sfc_main$26 from "./Stepper.js";
28
- import _sfc_main$27 from "./Toggle.js";
29
- import _sfc_main$28 from "./Tooltip.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 "./ButtonsGroup.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 "./ComparisonTable.js";
13
+ import _sfc_main$12 from "./Divider.js";
14
+ import _sfc_main$13 from "./Dropdown.js";
15
+ import _sfc_main$14 from "./DropdownItem.js";
16
+ import _sfc_main$15 from "./DropdownRow.js";
17
+ import _sfc_main$16 from "./DropdownSubmenu.js";
18
+ import _sfc_main$17 from "./FileInput.js";
19
+ import _sfc_main$18 from "./FormField.js";
20
+ import _sfc_main$19 from "./IconTile.js";
21
+ import _sfc_main$20 from "./Input.js";
22
+ import _sfc_main$21 from "./Kbd.js";
23
+ import _sfc_main$22 from "./ListMenu.js";
24
+ import _sfc_main$23 from "./ListMenuItem.js";
25
+ import _sfc_main$24 from "./Modal.js";
26
+ import _sfc_main$25 from "./Numpad.js";
27
+ import _sfc_main$26 from "./Popup.js";
28
+ import _sfc_main$27 from "./ProgressBar.js";
29
+ import _sfc_main$28 from "./Prompt.js";
30
+ import _sfc_main$29 from "./Radio.js";
31
+ import _sfc_main$30 from "./SectionHeading.js";
32
+ import _sfc_main$31 from "./Segmented.js";
33
+ import _sfc_main$32 from "./Select.js";
34
+ import _sfc_main$33 from "./Slider.js";
35
+ import _sfc_main$34 from "./Spinner.js";
36
+ import _sfc_main$35 from "./Stepper.js";
37
+ import _sfc_main$36 from "./ThemeToggle.js";
38
+ import _sfc_main$37 from "./Toast.js";
39
+ import _sfc_main$38 from "./Toggle.js";
40
+ import _sfc_main$39 from "./Tooltip.js";
30
41
  //#region src/components/index.js
31
42
  /**
32
43
  * Real component imports, re-exported under the default `Ui` prefix.
@@ -48,34 +59,45 @@ var components = {
48
59
  Alert: _sfc_main$1,
49
60
  Avatar: _sfc_main$2,
50
61
  Badge: _sfc_main$3,
51
- Button: _sfc_main$4,
52
- ButtonsGroup: _sfc_main$5,
53
- Checkbox: _sfc_main$6,
54
- Divider: _sfc_main$7,
55
- Dropdown: _sfc_main$8,
56
- DropdownItem: _sfc_main$9,
57
- DropdownRow: _sfc_main$10,
58
- DropdownSubmenu: _sfc_main$11,
59
- FileInput: _sfc_main$12,
60
- FormField: _sfc_main$13,
61
- Input: _sfc_main$14,
62
- Kbd: _sfc_main$15,
63
- ListMenu: _sfc_main$16,
64
- ListMenuItem: _sfc_main$17,
65
- Modal: _sfc_main$18,
66
- Numpad: _sfc_main$19,
67
- Popup: _sfc_main$20,
68
- ProgressBar: _sfc_main$21,
69
- Prompt: _sfc_main$22,
70
- Radio: _sfc_main$23,
71
- Select: _sfc_main$24,
72
- Slider: _sfc_main$25,
73
- Stepper: _sfc_main$26,
74
- Toggle: _sfc_main$27,
75
- Tooltip: _sfc_main$28,
62
+ Banner: _sfc_main$4,
63
+ Breadcrumb: _sfc_main$5,
64
+ Button: _sfc_main$6,
65
+ ButtonsGroup: _sfc_main$7,
66
+ Card: _sfc_main$8,
67
+ Checkbox: _sfc_main$9,
68
+ CodeBlock: _sfc_main$10,
69
+ ComparisonTable: _sfc_main$11,
70
+ Divider: _sfc_main$12,
71
+ Dropdown: _sfc_main$13,
72
+ DropdownItem: _sfc_main$14,
73
+ DropdownRow: _sfc_main$15,
74
+ DropdownSubmenu: _sfc_main$16,
75
+ FileInput: _sfc_main$17,
76
+ FormField: _sfc_main$18,
77
+ IconTile: _sfc_main$19,
78
+ Input: _sfc_main$20,
79
+ Kbd: _sfc_main$21,
80
+ ListMenu: _sfc_main$22,
81
+ ListMenuItem: _sfc_main$23,
82
+ Modal: _sfc_main$24,
83
+ Numpad: _sfc_main$25,
84
+ Popup: _sfc_main$26,
85
+ ProgressBar: _sfc_main$27,
86
+ Prompt: _sfc_main$28,
87
+ Radio: _sfc_main$29,
88
+ SectionHeading: _sfc_main$30,
89
+ Segmented: _sfc_main$31,
90
+ Select: _sfc_main$32,
91
+ Slider: _sfc_main$33,
92
+ Spinner: _sfc_main$34,
93
+ Stepper: _sfc_main$35,
94
+ ThemeToggle: _sfc_main$36,
95
+ Toast: _sfc_main$37,
96
+ Toggle: _sfc_main$38,
97
+ Tooltip: _sfc_main$39,
76
98
  Icon: _sfc_main
77
99
  };
78
100
  //#endregion
79
- export { _sfc_main$1 as UiAlert, _sfc_main$2 as UiAvatar, _sfc_main$3 as UiBadge, _sfc_main$4 as UiButton, _sfc_main$5 as UiButtonsGroup, _sfc_main$6 as UiCheckbox, _sfc_main$7 as UiDivider, _sfc_main$8 as UiDropdown, _sfc_main$9 as UiDropdownItem, _sfc_main$10 as UiDropdownRow, _sfc_main$11 as UiDropdownSubmenu, _sfc_main$12 as UiFileInput, _sfc_main$13 as UiFormField, _sfc_main as UiIcon, _sfc_main$14 as UiInput, _sfc_main$15 as UiKbd, _sfc_main$16 as UiListMenu, _sfc_main$17 as UiListMenuItem, _sfc_main$18 as UiModal, _sfc_main$19 as UiNumpad, _sfc_main$20 as UiPopup, _sfc_main$21 as UiProgressBar, _sfc_main$22 as UiPrompt, _sfc_main$23 as UiRadio, _sfc_main$24 as UiSelect, _sfc_main$25 as UiSlider, _sfc_main$26 as UiStepper, _sfc_main$27 as UiToggle, _sfc_main$28 as UiTooltip, components };
101
+ 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 UiButtonsGroup, _sfc_main$8 as UiCard, _sfc_main$9 as UiCheckbox, _sfc_main$10 as UiCodeBlock, _sfc_main$11 as UiComparisonTable, _sfc_main$12 as UiDivider, _sfc_main$13 as UiDropdown, _sfc_main$14 as UiDropdownItem, _sfc_main$15 as UiDropdownRow, _sfc_main$16 as UiDropdownSubmenu, _sfc_main$17 as UiFileInput, _sfc_main$18 as UiFormField, _sfc_main as UiIcon, _sfc_main$19 as UiIconTile, _sfc_main$20 as UiInput, _sfc_main$21 as UiKbd, _sfc_main$22 as UiListMenu, _sfc_main$23 as UiListMenuItem, _sfc_main$24 as UiModal, _sfc_main$25 as UiNumpad, _sfc_main$26 as UiPopup, _sfc_main$27 as UiProgressBar, _sfc_main$28 as UiPrompt, _sfc_main$29 as UiRadio, _sfc_main$30 as UiSectionHeading, _sfc_main$31 as UiSegmented, _sfc_main$32 as UiSelect, _sfc_main$33 as UiSlider, _sfc_main$34 as UiSpinner, _sfc_main$35 as UiStepper, _sfc_main$36 as UiThemeToggle, _sfc_main$37 as UiToast, _sfc_main$38 as UiToggle, _sfc_main$39 as UiTooltip, components };
80
102
 
81
103
  //# 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 Button from './Button.vue'\nimport ButtonsGroup from './ButtonsGroup.vue'\nimport Checkbox from './Checkbox.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 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 Select from './Select.vue'\nimport Slider from './Slider.vue'\nimport Stepper from './Stepper.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 Button as UiButton,\n ButtonsGroup as UiButtonsGroup,\n Checkbox as UiCheckbox,\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 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 Select as UiSelect,\n Slider as UiSlider,\n Stepper as UiStepper,\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 Button,\n ButtonsGroup,\n Checkbox,\n Divider,\n Dropdown,\n DropdownItem,\n DropdownRow,\n DropdownSubmenu,\n FileInput,\n FormField,\n Input,\n Kbd,\n ListMenu,\n ListMenuItem,\n Modal,\n Numpad,\n Popup,\n ProgressBar,\n Prompt,\n Radio,\n Select,\n Slider,\n Stepper,\n Toggle,\n Tooltip,\n Icon,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8EA,IAAa,aAAa;CACxB,OAAA;CACA,QAAA;CACA,OAAA;CACA,QAAA;CACA,cAAA;CACA,UAAA;CACA,SAAA;CACA,UAAA;CACA,cAAA;CACA,aAAA;CACA,iBAAA;CACA,WAAA;CACA,WAAA;CACA,OAAA;CACA,KAAA;CACA,UAAA;CACA,cAAA;CACA,OAAA;CACA,QAAA;CACA,OAAA;CACA,aAAA;CACA,QAAA;CACA,OAAA;CACA,QAAA;CACA,QAAA;CACA,SAAA;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 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 ButtonsGroup from './ButtonsGroup.vue'\nimport Card from './Card.vue'\nimport Checkbox from './Checkbox.vue'\nimport CodeBlock from './CodeBlock.vue'\nimport ComparisonTable from './ComparisonTable.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 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 ButtonsGroup as UiButtonsGroup,\n Card as UiCard,\n Checkbox as UiCheckbox,\n CodeBlock as UiCodeBlock,\n ComparisonTable as UiComparisonTable,\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 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 ButtonsGroup,\n Card,\n Checkbox,\n CodeBlock,\n ComparisonTable,\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 ThemeToggle,\n Toast,\n Toggle,\n Tooltip,\n Icon,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoGA,IAAa,aAAa;CACxB,OAAA;CACA,QAAA;CACA,OAAA;CACA,QAAA;CACA,YAAA;CACA,QAAA;CACA,cAAA;CACA,MAAA;CACA,UAAA;CACA,WAAA;CACA,iBAAA;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,aAAA;CACA,OAAA;CACA,QAAA;CACA,SAAA;CACA,MAAA;AACF"}