numori-ui 0.4.0 → 0.5.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 (72) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/README.md +18 -19
  3. package/dist/components/AppShell.js +234 -0
  4. package/dist/components/AppShell.js.map +1 -0
  5. package/dist/components/Checkbox.js +11 -2
  6. package/dist/components/Checkbox.js.map +1 -1
  7. package/dist/components/CopyField.js +195 -0
  8. package/dist/components/CopyField.js.map +1 -0
  9. package/dist/components/DescriptionList.js +116 -0
  10. package/dist/components/DescriptionList.js.map +1 -0
  11. package/dist/components/EmptyState.js +123 -0
  12. package/dist/components/EmptyState.js.map +1 -0
  13. package/dist/components/FormField.js +43 -13
  14. package/dist/components/FormField.js.map +1 -1
  15. package/dist/components/Input.js +15 -1
  16. package/dist/components/Input.js.map +1 -1
  17. package/dist/components/PageHeader.js +106 -0
  18. package/dist/components/PageHeader.js.map +1 -0
  19. package/dist/components/Pagination.js +236 -0
  20. package/dist/components/Pagination.js.map +1 -0
  21. package/dist/components/Segmented.js +10 -2
  22. package/dist/components/Segmented.js.map +1 -1
  23. package/dist/components/Select.js +10 -1
  24. package/dist/components/Select.js.map +1 -1
  25. package/dist/components/Sidebar.js +69 -0
  26. package/dist/components/Sidebar.js.map +1 -0
  27. package/dist/components/SidebarGroup.js +50 -0
  28. package/dist/components/SidebarGroup.js.map +1 -0
  29. package/dist/components/SidebarItem.js +167 -0
  30. package/dist/components/SidebarItem.js.map +1 -0
  31. package/dist/components/StatCard.js +185 -0
  32. package/dist/components/StatCard.js.map +1 -0
  33. package/dist/components/Table.js +182 -50
  34. package/dist/components/Table.js.map +1 -1
  35. package/dist/components/Tabs.js +216 -0
  36. package/dist/components/Tabs.js.map +1 -0
  37. package/dist/components/Toggle.js +11 -2
  38. package/dist/components/Toggle.js.map +1 -1
  39. package/dist/components/index.js +97 -80
  40. package/dist/components/index.js.map +1 -1
  41. package/dist/icons/mdi.js +10 -0
  42. package/dist/icons/mdi.js.map +1 -1
  43. package/dist/index.d.ts +12 -1
  44. package/dist/index.js +50 -39
  45. package/dist/index.js.map +1 -1
  46. package/dist/internal/formField.js +26 -0
  47. package/dist/internal/formField.js.map +1 -0
  48. package/dist/manifest.js +11 -0
  49. package/dist/manifest.js.map +1 -1
  50. package/package.json +1 -1
  51. package/src/components/AppShell.vue +231 -0
  52. package/src/components/Checkbox.vue +5 -0
  53. package/src/components/CopyField.vue +178 -0
  54. package/src/components/DescriptionList.vue +114 -0
  55. package/src/components/EmptyState.vue +107 -0
  56. package/src/components/FormField.vue +37 -4
  57. package/src/components/Input.vue +9 -0
  58. package/src/components/PageHeader.vue +102 -0
  59. package/src/components/Pagination.vue +199 -0
  60. package/src/components/Segmented.vue +5 -0
  61. package/src/components/Select.vue +5 -0
  62. package/src/components/Sidebar.vue +61 -0
  63. package/src/components/SidebarGroup.vue +43 -0
  64. package/src/components/SidebarItem.vue +159 -0
  65. package/src/components/StatCard.vue +165 -0
  66. package/src/components/Table.vue +148 -18
  67. package/src/components/Tabs.vue +217 -0
  68. package/src/components/Toggle.vue +5 -0
  69. package/src/components/index.js +33 -5
  70. package/src/icons/mdi.js +10 -0
  71. package/src/internal/formField.js +23 -0
  72. package/src/manifest.js +11 -0
@@ -0,0 +1,69 @@
1
+ import { useMergedClasses } from "../composables/useMergedClasses.js";
2
+ import { createCommentVNode, createElementBlock, createElementVNode, mergeProps, openBlock, renderSlot, unref } from "vue";
3
+ //#region src/components/Sidebar.vue
4
+ var _hoisted_1 = ["aria-label"];
5
+ var _hoisted_2 = {
6
+ key: 0,
7
+ class: "flex h-14 shrink-0 items-center gap-2 border-b border-gray-200 px-4 dark:border-gray-800"
8
+ };
9
+ var _hoisted_3 = { class: "min-h-0 flex-1 space-y-0.5 overflow-y-auto px-3 py-4" };
10
+ var _hoisted_4 = {
11
+ key: 1,
12
+ class: "shrink-0 border-t border-gray-200 p-3 dark:border-gray-800"
13
+ };
14
+ var _sfc_main = /*@__PURE__*/ Object.assign({ inheritAttrs: false }, {
15
+ __name: "Sidebar",
16
+ props: {
17
+ /**
18
+ * Accessible name of the navigation landmark.
19
+ * @type {string}
20
+ * @default 'Main'
21
+ */
22
+ label: {
23
+ type: String,
24
+ default: "Main"
25
+ } },
26
+ setup(__props) {
27
+ /**
28
+ * UiSidebar — vertical navigation for an application, with a brand header,
29
+ * a scrolling list of items and a pinned footer.
30
+ *
31
+ * Fills the height of its container, so it is usually placed in
32
+ * `UiAppShell`'s `#sidebar` slot, which handles the pinned / off-canvas
33
+ * behaviour. Fill it with `UiSidebarItem`s, grouped under headings with
34
+ * `UiSidebarGroup` when the list grows.
35
+ *
36
+ * Renders a `<nav>` landmark; give each one on a page a distinct `label`.
37
+ *
38
+ * @example
39
+ * <UiSidebar label="Main">
40
+ * <template #header><strong>Numori CRDT</strong></template>
41
+ * <UiSidebarItem icon="mdi:view-grid" href="/" active>Dashboard</UiSidebarItem>
42
+ * <UiSidebarGroup label="Manage">
43
+ * <UiSidebarItem icon="mdi:sync" href="/apps">Apps</UiSidebarItem>
44
+ * <UiSidebarItem icon="mdi:account-group" href="/users">Users</UiSidebarItem>
45
+ * </UiSidebarGroup>
46
+ * <template #footer>Signed in as ada</template>
47
+ * </UiSidebar>
48
+ *
49
+ * @slot default — Navigation items and groups.
50
+ * @slot header — Brand area at the top, the same height as the shell's top bar.
51
+ * @slot footer — Pinned content at the bottom (account, version, etc.).
52
+ */
53
+ const { mergedClasses, restAttrs } = useMergedClasses("flex h-full min-h-0 w-full flex-col");
54
+ return (_ctx, _cache) => {
55
+ return openBlock(), createElementBlock("nav", mergeProps({
56
+ "aria-label": __props.label,
57
+ class: unref(mergedClasses)
58
+ }, unref(restAttrs)), [
59
+ _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(_ctx.$slots, "header")])) : createCommentVNode("", true),
60
+ createElementVNode("div", _hoisted_3, [renderSlot(_ctx.$slots, "default")]),
61
+ _ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_4, [renderSlot(_ctx.$slots, "footer")])) : createCommentVNode("", true)
62
+ ], 16, _hoisted_1);
63
+ };
64
+ }
65
+ });
66
+ //#endregion
67
+ export { _sfc_main as default };
68
+
69
+ //# sourceMappingURL=Sidebar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Sidebar.js","names":["$slots"],"sources":["../../src/components/Sidebar.vue"],"sourcesContent":["<template>\n <nav :aria-label=\"label\" :class=\"mergedClasses\" v-bind=\"restAttrs\">\n <div\n v-if=\"$slots.header\"\n class=\"flex h-14 shrink-0 items-center gap-2 border-b border-gray-200 px-4 dark:border-gray-800\"\n >\n <slot name=\"header\" />\n </div>\n\n <div class=\"min-h-0 flex-1 space-y-0.5 overflow-y-auto px-3 py-4\">\n <slot />\n </div>\n\n <div v-if=\"$slots.footer\" class=\"shrink-0 border-t border-gray-200 p-3 dark:border-gray-800\">\n <slot name=\"footer\" />\n </div>\n </nav>\n</template>\n\n<script setup>\n/**\n * UiSidebar — vertical navigation for an application, with a brand header,\n * a scrolling list of items and a pinned footer.\n *\n * Fills the height of its container, so it is usually placed in\n * `UiAppShell`'s `#sidebar` slot, which handles the pinned / off-canvas\n * behaviour. Fill it with `UiSidebarItem`s, grouped under headings with\n * `UiSidebarGroup` when the list grows.\n *\n * Renders a `<nav>` landmark; give each one on a page a distinct `label`.\n *\n * @example\n * <UiSidebar label=\"Main\">\n * <template #header><strong>Numori CRDT</strong></template>\n * <UiSidebarItem icon=\"mdi:view-grid\" href=\"/\" active>Dashboard</UiSidebarItem>\n * <UiSidebarGroup label=\"Manage\">\n * <UiSidebarItem icon=\"mdi:sync\" href=\"/apps\">Apps</UiSidebarItem>\n * <UiSidebarItem icon=\"mdi:account-group\" href=\"/users\">Users</UiSidebarItem>\n * </UiSidebarGroup>\n * <template #footer>Signed in as ada</template>\n * </UiSidebar>\n *\n * @slot default — Navigation items and groups.\n * @slot header — Brand area at the top, the same height as the shell's top bar.\n * @slot footer — Pinned content at the bottom (account, version, etc.).\n */\nimport { useMergedClasses } from '../composables/useMergedClasses.js'\n\ndefineProps({\n /**\n * Accessible name of the navigation landmark.\n * @type {string}\n * @default 'Main'\n */\n label: { type: String, default: 'Main' },\n})\n\ndefineOptions({ inheritAttrs: false })\n\nconst { mergedClasses, restAttrs } = useMergedClasses('flex h-full min-h-0 w-full flex-col')\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2DA,MAAM,EAAE,eAAe,cAAc,iBAAiB,qCAAqC;;GA1DzF,OAAA,UAAA,GAAA,mBAeM,OAfN,WAeM;IAfA,cAAY,QAAA;IAAQ,OAAO,MAAA,aAAA;GAAuB,GAAA,MAAA,SAAA,CAAS,GAAA;IAEvDA,KAAAA,OAAO,UADf,UAAA,GAAA,mBAKM,OALN,YAKM,CADJ,WAAsB,KAAA,QAAA,QAAA,CAAA,CAAA,KAAA,mBAAA,IAAA,IAAA;IAGxB,mBAEM,OAFN,YAEM,CADJ,WAAQ,KAAA,QAAA,SAAA,CAAA,CAAA;IAGCA,KAAAA,OAAO,UAAlB,UAAA,GAAA,mBAEM,OAFN,YAEM,CADJ,WAAsB,KAAA,QAAA,QAAA,CAAA,CAAA,KAAA,mBAAA,IAAA,IAAA"}
@@ -0,0 +1,50 @@
1
+ import { createCommentVNode, createElementBlock, createElementVNode, openBlock, renderSlot, toDisplayString, unref, useId } from "vue";
2
+ //#region src/components/SidebarGroup.vue
3
+ var _hoisted_1 = ["aria-labelledby"];
4
+ var _hoisted_2 = ["id"];
5
+ var _hoisted_3 = { class: "space-y-0.5" };
6
+ var _sfc_main = {
7
+ __name: "SidebarGroup",
8
+ props: {
9
+ /**
10
+ * Heading shown above the items.
11
+ * @type {string}
12
+ * @default ''
13
+ */
14
+ label: {
15
+ type: String,
16
+ default: ""
17
+ } },
18
+ setup(__props) {
19
+ /**
20
+ * UiSidebarGroup — a labelled section of a `UiSidebar`.
21
+ *
22
+ * Groups related `UiSidebarItem`s under a small uppercase heading, which is
23
+ * also the group's accessible name.
24
+ *
25
+ * @example
26
+ * <UiSidebarGroup label="Manage">
27
+ * <UiSidebarItem icon="mdi:sync" href="/apps">Apps</UiSidebarItem>
28
+ * <UiSidebarItem icon="mdi:account-group" href="/users">Users</UiSidebarItem>
29
+ * </UiSidebarGroup>
30
+ *
31
+ * @slot default — The group's items.
32
+ */
33
+ const headingId = useId();
34
+ return (_ctx, _cache) => {
35
+ return openBlock(), createElementBlock("div", {
36
+ role: "group",
37
+ "aria-labelledby": __props.label ? unref(headingId) : void 0,
38
+ class: "pt-5 first:pt-0"
39
+ }, [__props.label ? (openBlock(), createElementBlock("p", {
40
+ key: 0,
41
+ id: unref(headingId),
42
+ class: "px-3 pb-1.5 text-xs font-semibold tracking-wide text-gray-400 uppercase dark:text-gray-500"
43
+ }, toDisplayString(__props.label), 9, _hoisted_2)) : createCommentVNode("", true), createElementVNode("div", _hoisted_3, [renderSlot(_ctx.$slots, "default")])], 8, _hoisted_1);
44
+ };
45
+ }
46
+ };
47
+ //#endregion
48
+ export { _sfc_main as default };
49
+
50
+ //# sourceMappingURL=SidebarGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarGroup.js","names":[],"sources":["../../src/components/SidebarGroup.vue"],"sourcesContent":["<template>\n <div role=\"group\" :aria-labelledby=\"label ? headingId : undefined\" class=\"pt-5 first:pt-0\">\n <p\n v-if=\"label\"\n :id=\"headingId\"\n class=\"px-3 pb-1.5 text-xs font-semibold tracking-wide text-gray-400 uppercase dark:text-gray-500\"\n >\n {{ label }}\n </p>\n <div class=\"space-y-0.5\">\n <slot />\n </div>\n </div>\n</template>\n\n<script setup>\n/**\n * UiSidebarGroup — a labelled section of a `UiSidebar`.\n *\n * Groups related `UiSidebarItem`s under a small uppercase heading, which is\n * also the group's accessible name.\n *\n * @example\n * <UiSidebarGroup label=\"Manage\">\n * <UiSidebarItem icon=\"mdi:sync\" href=\"/apps\">Apps</UiSidebarItem>\n * <UiSidebarItem icon=\"mdi:account-group\" href=\"/users\">Users</UiSidebarItem>\n * </UiSidebarGroup>\n *\n * @slot default — The group's items.\n */\nimport { useId } from 'vue'\n\ndefineProps({\n /**\n * Heading shown above the items.\n * @type {string}\n * @default ''\n */\n label: { type: String, default: '' },\n})\n\nconst headingId = useId()\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyCA,MAAM,YAAY,MAAM;;GAxCtB,OAAA,UAAA,GAAA,mBAWM,OAAA;IAXD,MAAK;IAAS,mBAAiB,QAAA,QAAQ,MAAA,SAAA,IAAY,KAAA;IAAW,OAAM;GAE/D,GAAA,CAAA,QAAA,SADR,UAAA,GAAA,mBAMI,KAAA;;IAJD,IAAI,MAAA,SAAA;IACL,OAAM;GAEH,GAAA,gBAAA,QAAA,KAAK,GAAA,GAAA,UAAA,KAAA,mBAAA,IAAA,IAAA,GAEV,mBAEM,OAFN,YAEM,CADJ,WAAQ,KAAA,QAAA,SAAA,CAAA,CAAA,CAAA,GAAA,GAAA,UAAA"}
@@ -0,0 +1,167 @@
1
+ import _sfc_main$1 from "../icons/Icon.js";
2
+ import { useMergedClasses } from "../composables/useMergedClasses.js";
3
+ import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, inject, mergeProps, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, unref, withCtx } from "vue";
4
+ //#region src/components/SidebarItem.vue
5
+ var _hoisted_1 = { class: "min-w-0 flex-1 truncate" };
6
+ var _sfc_main = /*@__PURE__*/ Object.assign({ inheritAttrs: false }, {
7
+ __name: "SidebarItem",
8
+ props: {
9
+ /**
10
+ * Element or component to render. Defaults to `RouterLink` when `to` is
11
+ * set, `a` when `href` is set, and `button` otherwise.
12
+ * @type {string}
13
+ * @default ''
14
+ */
15
+ tag: {
16
+ type: String,
17
+ default: ""
18
+ },
19
+ /**
20
+ * Router location, passed to the link component.
21
+ * @type {string | object}
22
+ * @default undefined
23
+ */
24
+ to: {
25
+ type: [String, Object],
26
+ default: void 0
27
+ },
28
+ /**
29
+ * Plain link target.
30
+ * @type {string}
31
+ * @default ''
32
+ */
33
+ href: {
34
+ type: String,
35
+ default: ""
36
+ },
37
+ /**
38
+ * MDI icon shown before the label.
39
+ * @type {string}
40
+ * @default ''
41
+ */
42
+ icon: {
43
+ type: String,
44
+ default: ""
45
+ },
46
+ /**
47
+ * Mark as the current page.
48
+ * @type {boolean}
49
+ * @default false
50
+ */
51
+ active: {
52
+ type: Boolean,
53
+ default: false
54
+ },
55
+ /**
56
+ * Count or short label shown at the end of the row. Empty hides it.
57
+ * @type {string | number}
58
+ * @default ''
59
+ */
60
+ badge: {
61
+ type: [String, Number],
62
+ default: ""
63
+ },
64
+ /**
65
+ * Dim the item and ignore clicks.
66
+ * @type {boolean}
67
+ * @default false
68
+ */
69
+ disabled: {
70
+ type: Boolean,
71
+ default: false
72
+ }
73
+ },
74
+ emits: ["click"],
75
+ setup(__props, { emit: __emit }) {
76
+ /**
77
+ * UiSidebarItem — one navigation entry in a `UiSidebar`.
78
+ *
79
+ * Router-agnostic. Pass `to` to render through a globally registered
80
+ * `RouterLink` (or set `tag="NuxtLink"`), `href` for a plain anchor, or neither
81
+ * for a `<button>` that only emits `click`. The current page is marked with
82
+ * `active`, which also sets `aria-current="page"` — the item does not inspect
83
+ * the route itself, so any router (or none) works.
84
+ *
85
+ * Choosing an item inside a `UiAppShell` closes the shell's mobile drawer.
86
+ *
87
+ * @example With vue-router
88
+ * <UiSidebarItem icon="mdi:sync" to="/apps" :active="route.path.startsWith('/apps')">
89
+ * Apps
90
+ * </UiSidebarItem>
91
+ *
92
+ * @example With a count badge
93
+ * <UiSidebarItem icon="mdi:account-group" href="/users" :badge="3">Users</UiSidebarItem>
94
+ *
95
+ * @emits {MouseEvent} click — The item was chosen (not emitted while disabled).
96
+ *
97
+ * @slot default — Label.
98
+ * @slot suffix — Trailing content, replacing the badge.
99
+ */
100
+ const props = __props;
101
+ const emit = __emit;
102
+ const shell = inject("numori-ui:app-shell", null);
103
+ const resolvedTag = computed(() => {
104
+ if (props.tag) return props.tag;
105
+ if (props.to !== void 0) return "RouterLink";
106
+ if (props.href) return "a";
107
+ return "button";
108
+ });
109
+ const linkAttrs = computed(() => {
110
+ if (resolvedTag.value === "button") return {
111
+ type: "button",
112
+ disabled: props.disabled
113
+ };
114
+ if (resolvedTag.value === "a") return { href: props.disabled ? void 0 : props.href };
115
+ return { to: props.to };
116
+ });
117
+ const hasBadge = computed(() => props.badge !== "" && props.badge !== null);
118
+ function onClick(event) {
119
+ if (props.disabled) {
120
+ event.preventDefault();
121
+ return;
122
+ }
123
+ emit("click", event);
124
+ shell?.close();
125
+ }
126
+ const internalClasses = computed(() => [
127
+ "group flex w-full items-center gap-3 rounded-lg px-3 py-2 text-left text-sm font-medium transition-colors",
128
+ "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-500 dark:focus-visible:outline-primary-400",
129
+ props.active ? "bg-primary-50 text-primary-700 dark:bg-primary-400/10 dark:text-primary-200" : "text-gray-700 hover:bg-gray-100 hover:text-gray-900 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-gray-100",
130
+ props.disabled ? "pointer-events-none opacity-40" : "cursor-pointer"
131
+ ].join(" "));
132
+ const { mergedClasses, restAttrs } = useMergedClasses(() => internalClasses.value);
133
+ return (_ctx, _cache) => {
134
+ return openBlock(), createBlock(resolveDynamicComponent(resolvedTag.value), mergeProps({
135
+ ...linkAttrs.value,
136
+ ...unref(restAttrs)
137
+ }, {
138
+ class: unref(mergedClasses),
139
+ "aria-current": __props.active ? "page" : void 0,
140
+ "aria-disabled": __props.disabled ? "true" : void 0,
141
+ onClick
142
+ }), {
143
+ default: withCtx(() => [
144
+ __props.icon ? (openBlock(), createBlock(_sfc_main$1, {
145
+ key: 0,
146
+ name: __props.icon,
147
+ class: normalizeClass(["size-[18px] shrink-0", __props.active ? "text-primary-600 dark:text-primary-400" : "text-gray-400 group-hover:text-gray-600 dark:text-gray-500 dark:group-hover:text-gray-300"])
148
+ }, null, 8, ["name", "class"])) : createCommentVNode("", true),
149
+ createElementVNode("span", _hoisted_1, [renderSlot(_ctx.$slots, "default")]),
150
+ renderSlot(_ctx.$slots, "suffix", {}, () => [hasBadge.value ? (openBlock(), createElementBlock("span", {
151
+ key: 0,
152
+ class: normalizeClass(["ml-auto inline-flex min-w-5 items-center justify-center rounded-full px-1.5 text-xs font-semibold tabular-nums", __props.active ? "bg-primary-100 text-primary-700 dark:bg-primary-400/20 dark:text-primary-200" : "bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-300"])
153
+ }, toDisplayString(__props.badge), 3)) : createCommentVNode("", true)])
154
+ ]),
155
+ _: 3
156
+ }, 16, [
157
+ "class",
158
+ "aria-current",
159
+ "aria-disabled"
160
+ ]);
161
+ };
162
+ }
163
+ });
164
+ //#endregion
165
+ export { _sfc_main as default };
166
+
167
+ //# sourceMappingURL=SidebarItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarItem.js","names":[],"sources":["../../src/components/SidebarItem.vue"],"sourcesContent":["<template>\n <component\n :is=\"resolvedTag\"\n v-bind=\"{ ...linkAttrs, ...restAttrs }\"\n :class=\"mergedClasses\"\n :aria-current=\"active ? 'page' : undefined\"\n :aria-disabled=\"disabled ? 'true' : undefined\"\n @click=\"onClick\"\n >\n <UiIcon\n v-if=\"icon\"\n :name=\"icon\"\n class=\"size-[18px] shrink-0\"\n :class=\"\n active\n ? 'text-primary-600 dark:text-primary-400'\n : 'text-gray-400 group-hover:text-gray-600 dark:text-gray-500 dark:group-hover:text-gray-300'\n \"\n />\n <span class=\"min-w-0 flex-1 truncate\"><slot /></span>\n <slot name=\"suffix\">\n <span\n v-if=\"hasBadge\"\n class=\"ml-auto inline-flex min-w-5 items-center justify-center rounded-full px-1.5 text-xs font-semibold tabular-nums\"\n :class=\"\n active\n ? 'bg-primary-100 text-primary-700 dark:bg-primary-400/20 dark:text-primary-200'\n : 'bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-300'\n \"\n >{{ badge }}</span\n >\n </slot>\n </component>\n</template>\n\n<script setup>\n/**\n * UiSidebarItem — one navigation entry in a `UiSidebar`.\n *\n * Router-agnostic. Pass `to` to render through a globally registered\n * `RouterLink` (or set `tag=\"NuxtLink\"`), `href` for a plain anchor, or neither\n * for a `<button>` that only emits `click`. The current page is marked with\n * `active`, which also sets `aria-current=\"page\"` — the item does not inspect\n * the route itself, so any router (or none) works.\n *\n * Choosing an item inside a `UiAppShell` closes the shell's mobile drawer.\n *\n * @example With vue-router\n * <UiSidebarItem icon=\"mdi:sync\" to=\"/apps\" :active=\"route.path.startsWith('/apps')\">\n * Apps\n * </UiSidebarItem>\n *\n * @example With a count badge\n * <UiSidebarItem icon=\"mdi:account-group\" href=\"/users\" :badge=\"3\">Users</UiSidebarItem>\n *\n * @emits {MouseEvent} click — The item was chosen (not emitted while disabled).\n *\n * @slot default — Label.\n * @slot suffix — Trailing content, replacing the badge.\n */\nimport { computed, inject } from 'vue'\nimport UiIcon from '../icons/Icon.vue'\nimport { useMergedClasses } from '../composables/useMergedClasses.js'\n\nconst props = defineProps({\n /**\n * Element or component to render. Defaults to `RouterLink` when `to` is\n * set, `a` when `href` is set, and `button` otherwise.\n * @type {string}\n * @default ''\n */\n tag: { type: String, default: '' },\n\n /**\n * Router location, passed to the link component.\n * @type {string | object}\n * @default undefined\n */\n to: { type: [String, Object], default: undefined },\n\n /**\n * Plain link target.\n * @type {string}\n * @default ''\n */\n href: { type: String, default: '' },\n\n /**\n * MDI icon shown before the label.\n * @type {string}\n * @default ''\n */\n icon: { type: String, default: '' },\n\n /**\n * Mark as the current page.\n * @type {boolean}\n * @default false\n */\n active: { type: Boolean, default: false },\n\n /**\n * Count or short label shown at the end of the row. Empty hides it.\n * @type {string | number}\n * @default ''\n */\n badge: { type: [String, Number], default: '' },\n\n /**\n * Dim the item and ignore clicks.\n * @type {boolean}\n * @default false\n */\n disabled: { type: Boolean, default: false },\n})\n\nconst emit = defineEmits(['click'])\n\ndefineOptions({ inheritAttrs: false })\n\nconst shell = inject('numori-ui:app-shell', null)\n\nconst resolvedTag = computed(() => {\n if (props.tag) return props.tag\n if (props.to !== undefined) return 'RouterLink'\n if (props.href) return 'a'\n return 'button'\n})\n\nconst linkAttrs = computed(() => {\n if (resolvedTag.value === 'button') return { type: 'button', disabled: props.disabled }\n if (resolvedTag.value === 'a') return { href: props.disabled ? undefined : props.href }\n return { to: props.to }\n})\n\nconst hasBadge = computed(() => props.badge !== '' && props.badge !== null)\n\nfunction onClick(event) {\n if (props.disabled) {\n event.preventDefault()\n return\n }\n emit('click', event)\n shell?.close()\n}\n\nconst internalClasses = computed(() =>\n [\n 'group flex w-full items-center gap-3 rounded-lg px-3 py-2 text-left text-sm font-medium transition-colors',\n 'focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-500 dark:focus-visible:outline-primary-400',\n props.active\n ? 'bg-primary-50 text-primary-700 dark:bg-primary-400/10 dark:text-primary-200'\n : 'text-gray-700 hover:bg-gray-100 hover:text-gray-900 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-gray-100',\n props.disabled ? 'pointer-events-none opacity-40' : 'cursor-pointer',\n ].join(' '),\n)\n\nconst { mergedClasses, restAttrs } = useMergedClasses(() => internalClasses.value)\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgEA,MAAM,QAAQ;EAoDd,MAAM,OAAO;EAIb,MAAM,QAAQ,OAAO,uBAAuB,IAAI;EAEhD,MAAM,cAAc,eAAe;GACjC,IAAI,MAAM,KAAK,OAAO,MAAM;GAC5B,IAAI,MAAM,OAAO,KAAA,GAAW,OAAO;GACnC,IAAI,MAAM,MAAM,OAAO;GACvB,OAAO;EACT,CAAC;EAED,MAAM,YAAY,eAAe;G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@ -0,0 +1,185 @@
1
+ import _sfc_main$1 from "../icons/Icon.js";
2
+ import _sfc_main$2 from "./Card.js";
3
+ import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, normalizeClass, openBlock, renderSlot, toDisplayString, withCtx } from "vue";
4
+ //#region src/components/StatCard.vue
5
+ var _hoisted_1 = { class: "flex items-start justify-between gap-3" };
6
+ var _hoisted_2 = { class: "min-w-0" };
7
+ var _hoisted_3 = { class: "truncate text-sm font-medium text-gray-500 dark:text-gray-400" };
8
+ var _hoisted_4 = { class: "mt-1 text-2xl font-semibold tracking-tight text-gray-900 tabular-nums dark:text-gray-50" };
9
+ var _hoisted_5 = {
10
+ key: 0,
11
+ class: "inline-block h-7 w-16 animate-pulse rounded-md bg-gray-200 align-middle motion-reduce:animate-none dark:bg-gray-800",
12
+ "aria-hidden": "true"
13
+ };
14
+ var _hoisted_6 = {
15
+ key: 0,
16
+ class: "mt-3 flex flex-wrap items-center gap-2 text-xs"
17
+ };
18
+ var _hoisted_7 = {
19
+ key: 1,
20
+ class: "text-gray-500 dark:text-gray-400"
21
+ };
22
+ var _sfc_main = {
23
+ __name: "StatCard",
24
+ props: {
25
+ /**
26
+ * What the number measures.
27
+ * @type {string}
28
+ * @default ''
29
+ */
30
+ label: {
31
+ type: String,
32
+ default: ""
33
+ },
34
+ /**
35
+ * The number (or pre-formatted string).
36
+ * @type {string | number}
37
+ * @default ''
38
+ */
39
+ value: {
40
+ type: [String, Number],
41
+ default: ""
42
+ },
43
+ /**
44
+ * Secondary line, such as a time window or a unit.
45
+ * @type {string}
46
+ * @default ''
47
+ */
48
+ hint: {
49
+ type: String,
50
+ default: ""
51
+ },
52
+ /**
53
+ * MDI icon in a tinted tile.
54
+ * @type {string}
55
+ * @default ''
56
+ */
57
+ icon: {
58
+ type: String,
59
+ default: ""
60
+ },
61
+ /**
62
+ * Icon tile tint.
63
+ * @type {string}
64
+ * @default 'primary'
65
+ * @values 'primary' | 'success' | 'warning' | 'error' | 'gray'
66
+ */
67
+ color: {
68
+ type: String,
69
+ default: "primary"
70
+ },
71
+ /**
72
+ * Change to show next to the hint, e.g. `'+12%'`. Empty hides it.
73
+ * @type {string}
74
+ * @default ''
75
+ */
76
+ delta: {
77
+ type: String,
78
+ default: ""
79
+ },
80
+ /**
81
+ * Direction of the change, which picks the arrow.
82
+ * @type {string}
83
+ * @default 'flat'
84
+ * @values 'up' | 'down' | 'flat'
85
+ */
86
+ trend: {
87
+ type: String,
88
+ default: "flat"
89
+ },
90
+ /**
91
+ * Delta colour. `'auto'` makes up green and down red.
92
+ * @type {string}
93
+ * @default 'auto'
94
+ * @values 'auto' | 'green' | 'red' | 'gray'
95
+ */
96
+ deltaColor: {
97
+ type: String,
98
+ default: "auto"
99
+ },
100
+ /**
101
+ * Show a placeholder instead of the value.
102
+ * @type {boolean}
103
+ * @default false
104
+ */
105
+ loading: {
106
+ type: Boolean,
107
+ default: false
108
+ }
109
+ },
110
+ setup(__props) {
111
+ /**
112
+ * UiStatCard — a single headline number for dashboards: label, value, an
113
+ * optional tinted icon, a trend delta and a hint line.
114
+ *
115
+ * Built on `UiCard`, so external classes merge onto the card surface. While
116
+ * `loading`, the value is replaced by a pulsing placeholder of the same height
117
+ * so a grid of cards doesn't jump when data arrives.
118
+ *
119
+ * The delta's colour follows `trend` (up is green, down is red) unless
120
+ * `deltaColor` says otherwise — for metrics where going up is bad, such as
121
+ * error counts, pass `delta-color="red"` with `trend="up"`.
122
+ *
123
+ * @example
124
+ * <div class="grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
125
+ * <UiStatCard label="Connections" :value="128" icon="mdi:lan-connect" />
126
+ * <UiStatCard label="Documents" value="4,210" icon="mdi:file-document-outline" color="success" />
127
+ * <UiStatCard label="Access denials" :value="3" trend="up" delta="+2" delta-color="red" hint="last hour" />
128
+ * </div>
129
+ *
130
+ * @slot value — Rich value content (overrides `value`).
131
+ * @slot default — Extra content in the footer line.
132
+ */
133
+ const props = __props;
134
+ const toneClass = computed(() => ({
135
+ primary: "bg-primary-50 text-primary-600 dark:bg-primary-400/10 dark:text-primary-300",
136
+ success: "bg-success-50 text-success-700 dark:bg-success-400/10 dark:text-success-300",
137
+ warning: "bg-warning-50 text-warning-700 dark:bg-warning-400/10 dark:text-warning-300",
138
+ error: "bg-red-50 text-red-600 dark:bg-red-400/10 dark:text-red-300",
139
+ gray: "bg-gray-100 text-gray-500 dark:bg-gray-800 dark:text-gray-400"
140
+ })[props.color] ?? "bg-primary-50 text-primary-600 dark:bg-primary-400/10 dark:text-primary-300");
141
+ const trendIcon = computed(() => ({
142
+ up: "mdi:trending-up",
143
+ down: "mdi:trending-down"
144
+ })[props.trend] ?? "mdi:trending-neutral");
145
+ const deltaClass = computed(() => {
146
+ return {
147
+ green: "text-success-700 dark:text-success-400",
148
+ red: "text-red-600 dark:text-red-400"
149
+ }[props.deltaColor === "auto" ? {
150
+ up: "green",
151
+ down: "red"
152
+ }[props.trend] || "gray" : props.deltaColor] ?? "text-gray-500 dark:text-gray-400";
153
+ });
154
+ return (_ctx, _cache) => {
155
+ return openBlock(), createBlock(_sfc_main$2, {
156
+ padding: "sm",
157
+ "aria-busy": __props.loading ? "true" : void 0
158
+ }, {
159
+ default: withCtx(() => [createElementVNode("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("p", _hoisted_3, toDisplayString(__props.label), 1), createElementVNode("p", _hoisted_4, [__props.loading ? (openBlock(), createElementBlock("span", _hoisted_5)) : renderSlot(_ctx.$slots, "value", {}, () => [createTextVNode(toDisplayString(__props.value), 1)], void 0, 1)])]), __props.icon ? (openBlock(), createElementBlock("span", {
160
+ key: 0,
161
+ class: normalizeClass(["inline-flex size-9 shrink-0 items-center justify-center rounded-xl", toneClass.value]),
162
+ "aria-hidden": "true"
163
+ }, [createVNode(_sfc_main$1, {
164
+ name: __props.icon,
165
+ class: "size-5"
166
+ }, null, 8, ["name"])], 2)) : createCommentVNode("", true)]), __props.hint || __props.delta || _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_6, [
167
+ __props.delta ? (openBlock(), createElementBlock("span", {
168
+ key: 0,
169
+ class: normalizeClass(["inline-flex items-center gap-1 font-medium", deltaClass.value])
170
+ }, [createVNode(_sfc_main$1, {
171
+ name: trendIcon.value,
172
+ class: "size-3.5"
173
+ }, null, 8, ["name"]), createTextVNode(" " + toDisplayString(__props.delta), 1)], 2)) : createCommentVNode("", true),
174
+ __props.hint ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(__props.hint), 1)) : createCommentVNode("", true),
175
+ renderSlot(_ctx.$slots, "default")
176
+ ])) : createCommentVNode("", true)]),
177
+ _: 3
178
+ }, 8, ["aria-busy"]);
179
+ };
180
+ }
181
+ };
182
+ //#endregion
183
+ export { _sfc_main as default };
184
+
185
+ //# sourceMappingURL=StatCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatCard.js","names":["$slots"],"sources":["../../src/components/StatCard.vue"],"sourcesContent":["<template>\n <UiCard padding=\"sm\" :aria-busy=\"loading ? 'true' : undefined\">\n <div class=\"flex items-start justify-between gap-3\">\n <div class=\"min-w-0\">\n <p class=\"truncate text-sm font-medium text-gray-500 dark:text-gray-400\">{{ label }}</p>\n <p\n class=\"mt-1 text-2xl font-semibold tracking-tight text-gray-900 tabular-nums dark:text-gray-50\"\n >\n <span\n v-if=\"loading\"\n class=\"inline-block h-7 w-16 animate-pulse rounded-md bg-gray-200 align-middle motion-reduce:animate-none dark:bg-gray-800\"\n aria-hidden=\"true\"\n />\n <slot v-else name=\"value\">{{ value }}</slot>\n </p>\n </div>\n <span\n v-if=\"icon\"\n class=\"inline-flex size-9 shrink-0 items-center justify-center rounded-xl\"\n :class=\"toneClass\"\n aria-hidden=\"true\"\n >\n <UiIcon :name=\"icon\" class=\"size-5\" />\n </span>\n </div>\n\n <div\n v-if=\"hint || delta || $slots.default\"\n class=\"mt-3 flex flex-wrap items-center gap-2 text-xs\"\n >\n <span v-if=\"delta\" class=\"inline-flex items-center gap-1 font-medium\" :class=\"deltaClass\">\n <UiIcon :name=\"trendIcon\" class=\"size-3.5\" />\n {{ delta }}\n </span>\n <span v-if=\"hint\" class=\"text-gray-500 dark:text-gray-400\">{{ hint }}</span>\n <slot />\n </div>\n </UiCard>\n</template>\n\n<script setup>\n/**\n * UiStatCard — a single headline number for dashboards: label, value, an\n * optional tinted icon, a trend delta and a hint line.\n *\n * Built on `UiCard`, so external classes merge onto the card surface. While\n * `loading`, the value is replaced by a pulsing placeholder of the same height\n * so a grid of cards doesn't jump when data arrives.\n *\n * The delta's colour follows `trend` (up is green, down is red) unless\n * `deltaColor` says otherwise — for metrics where going up is bad, such as\n * error counts, pass `delta-color=\"red\"` with `trend=\"up\"`.\n *\n * @example\n * <div class=\"grid gap-4 sm:grid-cols-2 lg:grid-cols-4\">\n * <UiStatCard label=\"Connections\" :value=\"128\" icon=\"mdi:lan-connect\" />\n * <UiStatCard label=\"Documents\" value=\"4,210\" icon=\"mdi:file-document-outline\" color=\"success\" />\n * <UiStatCard label=\"Access denials\" :value=\"3\" trend=\"up\" delta=\"+2\" delta-color=\"red\" hint=\"last hour\" />\n * </div>\n *\n * @slot value — Rich value content (overrides `value`).\n * @slot default — Extra content in the footer line.\n */\nimport { computed } from 'vue'\nimport UiCard from './Card.vue'\nimport UiIcon from '../icons/Icon.vue'\n\nconst props = defineProps({\n /**\n * What the number measures.\n * @type {string}\n * @default ''\n */\n label: { type: String, default: '' },\n\n /**\n * The number (or pre-formatted string).\n * @type {string | number}\n * @default ''\n */\n value: { type: [String, Number], default: '' },\n\n /**\n * Secondary line, such as a time window or a unit.\n * @type {string}\n * @default ''\n */\n hint: { type: String, default: '' },\n\n /**\n * MDI icon in a tinted tile.\n * @type {string}\n * @default ''\n */\n icon: { type: String, default: '' },\n\n /**\n * Icon tile tint.\n * @type {string}\n * @default 'primary'\n * @values 'primary' | 'success' | 'warning' | 'error' | 'gray'\n */\n color: { type: String, default: 'primary' },\n\n /**\n * Change to show next to the hint, e.g. `'+12%'`. Empty hides it.\n * @type {string}\n * @default ''\n */\n delta: { type: String, default: '' },\n\n /**\n * Direction of the change, which picks the arrow.\n * @type {string}\n * @default 'flat'\n * @values 'up' | 'down' | 'flat'\n */\n trend: { type: String, default: 'flat' },\n\n /**\n * Delta colour. `'auto'` makes up green and down red.\n * @type {string}\n * @default 'auto'\n * @values 'auto' | 'green' | 'red' | 'gray'\n */\n deltaColor: { type: String, default: 'auto' },\n\n /**\n * Show a placeholder instead of the value.\n * @type {boolean}\n * @default false\n */\n loading: { type: Boolean, default: false },\n})\n\nconst toneClass = computed(\n () =>\n ({\n primary: 'bg-primary-50 text-primary-600 dark:bg-primary-400/10 dark:text-primary-300',\n success: 'bg-success-50 text-success-700 dark:bg-success-400/10 dark:text-success-300',\n warning: 'bg-warning-50 text-warning-700 dark:bg-warning-400/10 dark:text-warning-300',\n error: 'bg-red-50 text-red-600 dark:bg-red-400/10 dark:text-red-300',\n gray: 'bg-gray-100 text-gray-500 dark:bg-gray-800 dark:text-gray-400',\n })[props.color] ??\n 'bg-primary-50 text-primary-600 dark:bg-primary-400/10 dark:text-primary-300',\n)\n\nconst trendIcon = computed(\n () =>\n ({ up: 'mdi:trending-up', down: 'mdi:trending-down' })[props.trend] ?? 'mdi:trending-neutral',\n)\n\nconst deltaClass = computed(() => {\n const tone =\n props.deltaColor === 'auto'\n ? { up: 'green', down: 'red' }[props.trend] || 'gray'\n : props.deltaColor\n return (\n {\n green: 'text-success-700 dark:text-success-400',\n red: 'text-red-600 dark:text-red-400',\n }[tone] ?? 'text-gray-500 dark:text-gray-400'\n )\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmEA,MAAM,QAAQ;EAoEd,MAAM,YAAY,gBAEb;GACC,SAAS;GACT,SA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