@owocow/saber-ui 0.1.11 → 0.1.12

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.
@@ -2,7 +2,7 @@ import le from "@nuxt/ui/components/Button.vue";
2
2
  import ne from "@nuxt/ui/runtime/vue/components/Icon.vue";
3
3
  import { defineComponent as ie, useModel as oe, ref as ce, computed as W, openBlock as c, createElementBlock as g, normalizeClass as s, unref as l, createElementVNode as h, renderSlot as M, createBlock as _, withCtx as C, normalizeProps as re, guardReactiveProps as ue, createCommentVNode as A, createVNode as G, Transition as de, toDisplayString as K, Fragment as H, renderList as N, mergeModels as X } from "vue";
4
4
  import { tv as me } from "tailwind-variants";
5
- import { _ as pe } from "./SaberNavigationSearch.vue_vue_type_script_setup_true_lang-Bj96kMla.js";
5
+ import { _ as ve } from "./SaberNavigationSearch.vue_vue_type_script_setup_true_lang-Bj96kMla.js";
6
6
  const xe = /* @__PURE__ */ ie({
7
7
  name: "SaberAppSidebar",
8
8
  __name: "SaberAppSidebar",
@@ -21,16 +21,16 @@ const xe = /* @__PURE__ */ ie({
21
21
  const e = V, $ = Y, F = oe(V, "activeSection"), T = ce(!1), w = W(() => e.sections.find((t) => t.key === F.value)), a = me({
22
22
  slots: {
23
23
  root: "flex h-full min-h-0 flex-col overflow-hidden",
24
- header: "shrink-0 pl-0 pr-3 pl-1",
25
- logo: "flex h-11 items-center mb-1.5",
26
- viewport: "min-h-0 flex-1 overflow-y-auto pr-3 pl-1",
27
- panel: "flex min-h-full flex-col gap-1",
24
+ header: "shrink-0",
25
+ logo: "flex h-11 items-center mb-2",
26
+ viewport: "min-h-0 flex-1 overflow-y-auto",
27
+ panel: "flex min-h-full flex-col gap-1.5",
28
28
  sectionList: "flex flex-col",
29
29
  group: "flex flex-col",
30
30
  groupLabel: "px-2 py-2 text-[11px] uppercase tracking-wider text-muted/70",
31
31
  childList: "flex flex-col",
32
32
  nestedHeader: "flex items-center",
33
- footer: "shrink-0 pr-4 pb-1",
33
+ footer: "shrink-0",
34
34
  sectionItem: "flex w-full items-center rounded-md px-2 py-2 text-sm font-normal mb-0.5 gap-2 text-left transition",
35
35
  sectionItemLeadingIcon: "size-4.5 shrink-0",
36
36
  sectionItemLabel: "min-w-0 flex-1 truncate text-left",
@@ -43,12 +43,12 @@ const xe = /* @__PURE__ */ ie({
43
43
  backButtonLabel: "truncate text-sm font-medium flex-1 text-center pr-10"
44
44
  }
45
45
  })(), z = W(() => {
46
- var t, i, o, r, u, d, m, p, v, f, b, B;
46
+ var t, i, o, r, u, d, m, v, f, p, b, B;
47
47
  return {
48
48
  enterActive: ((i = (t = e.ui) == null ? void 0 : t.transition) == null ? void 0 : i.enterActive) ?? "transition duration-200 ease-out",
49
49
  leaveActive: ((r = (o = e.ui) == null ? void 0 : o.transition) == null ? void 0 : r.leaveActive) ?? "transition duration-200 ease-out pointer-events-none",
50
- enterFrom: T.value ? ((d = (u = e.ui) == null ? void 0 : u.transition) == null ? void 0 : d.backwardEnterFrom) ?? "-translate-x-2 opacity-0 blur-[2px]" : ((p = (m = e.ui) == null ? void 0 : m.transition) == null ? void 0 : p.forwardEnterFrom) ?? "translate-x-2 opacity-0 blur-[2px]",
51
- leaveTo: T.value ? ((f = (v = e.ui) == null ? void 0 : v.transition) == null ? void 0 : f.backwardLeaveTo) ?? "translate-x-2 opacity-0 blur-[2px]" : ((B = (b = e.ui) == null ? void 0 : b.transition) == null ? void 0 : B.forwardLeaveTo) ?? "-translate-x-2 opacity-0 blur-[2px]"
50
+ enterFrom: T.value ? ((d = (u = e.ui) == null ? void 0 : u.transition) == null ? void 0 : d.backwardEnterFrom) ?? "-translate-x-2 opacity-0 blur-[2px]" : ((v = (m = e.ui) == null ? void 0 : m.transition) == null ? void 0 : v.forwardEnterFrom) ?? "translate-x-2 opacity-0 blur-[2px]",
51
+ leaveTo: T.value ? ((p = (f = e.ui) == null ? void 0 : f.transition) == null ? void 0 : p.backwardLeaveTo) ?? "translate-x-2 opacity-0 blur-[2px]" : ((B = (b = e.ui) == null ? void 0 : b.transition) == null ? void 0 : B.forwardLeaveTo) ?? "-translate-x-2 opacity-0 blur-[2px]"
52
52
  };
53
53
  });
54
54
  function E(t) {
@@ -58,14 +58,14 @@ const xe = /* @__PURE__ */ ie({
58
58
  return E(t).some((i) => i.key === e.activeKey);
59
59
  }
60
60
  function Z(t) {
61
- var o, r, u, d, m, p, v, f;
61
+ var o, r, u, d, m, v, f, p;
62
62
  const i = P(t) ? ["font-medium", (r = (o = e.ui) == null ? void 0 : o.sectionItem) == null ? void 0 : r.active] : ["text-default", (d = (u = e.ui) == null ? void 0 : u.sectionItem) == null ? void 0 : d.inactive];
63
- return a.sectionItem({ class: [(p = (m = e.ui) == null ? void 0 : m.sectionItem) == null ? void 0 : p.base, i, (f = (v = e.ui) == null ? void 0 : v.sectionItem) == null ? void 0 : f.hover] });
63
+ return a.sectionItem({ class: [(v = (m = e.ui) == null ? void 0 : m.sectionItem) == null ? void 0 : v.base, i, (p = (f = e.ui) == null ? void 0 : f.sectionItem) == null ? void 0 : p.hover] });
64
64
  }
65
65
  function ee(t) {
66
- var o, r, u, d, m, p, v, f;
66
+ var o, r, u, d, m, v, f, p;
67
67
  const i = t.key === e.activeKey ? ["font-medium", (r = (o = e.ui) == null ? void 0 : o.childItem) == null ? void 0 : r.active] : ["text-default", (d = (u = e.ui) == null ? void 0 : u.childItem) == null ? void 0 : d.inactive];
68
- return a.childItem({ class: [(p = (m = e.ui) == null ? void 0 : m.childItem) == null ? void 0 : p.base, i, (f = (v = e.ui) == null ? void 0 : v.childItem) == null ? void 0 : f.hover] });
68
+ return a.childItem({ class: [(v = (m = e.ui) == null ? void 0 : m.childItem) == null ? void 0 : v.base, i, (p = (f = e.ui) == null ? void 0 : f.childItem) == null ? void 0 : p.hover] });
69
69
  }
70
70
  function te(t) {
71
71
  var o;
@@ -88,7 +88,7 @@ const xe = /* @__PURE__ */ ie({
88
88
  $("select", { source: "item", item: t, sectionKey: i, groupKey: o });
89
89
  }
90
90
  return (t, i) => {
91
- var u, d, m, p, v, f;
91
+ var u, d, m, v, f, p;
92
92
  const o = ne, r = le;
93
93
  return c(), g("aside", {
94
94
  class: s(l(a).root({ class: (u = e.ui) == null ? void 0 : u.root }))
@@ -101,11 +101,11 @@ const xe = /* @__PURE__ */ ie({
101
101
  }, [
102
102
  M(t.$slots, "logo")
103
103
  ], 2),
104
- e.searchGroups.length ? (c(), _(pe, {
104
+ e.searchGroups.length ? (c(), _(ve, {
105
105
  key: 0,
106
106
  groups: e.searchGroups,
107
107
  shortcut: e.shortcut,
108
- ui: (p = e.ui) == null ? void 0 : p.search,
108
+ ui: (v = e.ui) == null ? void 0 : v.search,
109
109
  onSelect: i[0] || (i[0] = (b) => $("select", b))
110
110
  }, {
111
111
  empty: C((b) => [
@@ -115,7 +115,7 @@ const xe = /* @__PURE__ */ ie({
115
115
  }, 8, ["groups", "shortcut", "ui"])) : A("", !0)
116
116
  ], 2),
117
117
  h("nav", {
118
- class: s(l(a).viewport({ class: (v = e.ui) == null ? void 0 : v.viewport }))
118
+ class: s(l(a).viewport({ class: (f = e.ui) == null ? void 0 : f.viewport }))
119
119
  }, [
120
120
  G(de, {
121
121
  mode: "out-in",
@@ -241,7 +241,7 @@ const xe = /* @__PURE__ */ ie({
241
241
  }, 8, ["enter-active-class", "leave-active-class", "enter-from-class", "leave-to-class"])
242
242
  ], 2),
243
243
  h("footer", {
244
- class: s(l(a).footer({ class: (f = e.ui) == null ? void 0 : f.footer }))
244
+ class: s(l(a).footer({ class: (p = e.ui) == null ? void 0 : p.footer }))
245
245
  }, [
246
246
  M(t.$slots, "footer")
247
247
  ], 2)
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../SaberAppSidebar.vue_vue_type_script_setup_true_lang-CEWQTjEi.js";
1
+ import { _ as f } from "../SaberAppSidebar.vue_vue_type_script_setup_true_lang-HXyIXiau.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/dist/index.mjs CHANGED
@@ -9,7 +9,7 @@ import { _ as P } from "./SaberInfoProvider.vue_vue_type_script_setup_true_lang-
9
9
  import { _ as z } from "./SaberModalWithMobile.vue_vue_type_script_setup_true_lang-aQlToncY.js";
10
10
  import { _ as A } from "./SaberStatus.vue_vue_type_script_setup_true_lang-D9aRVCow.js";
11
11
  import { _ as F } from "./SaberSwitchBar.vue_vue_type_script_setup_true_lang-CDx3Dcas.js";
12
- import { _ as U } from "./SaberAppSidebar.vue_vue_type_script_setup_true_lang-CEWQTjEi.js";
12
+ import { _ as U } from "./SaberAppSidebar.vue_vue_type_script_setup_true_lang-HXyIXiau.js";
13
13
  import { _ as V } from "./SaberNavigationSearch.vue_vue_type_script_setup_true_lang-Bj96kMla.js";
14
14
  import { k as W } from "./plugin-Dr3z0YFg.js";
15
15
  import { _ as be, a as fe, b as ue, c as Se, d as _e, e as pe } from "./plugin-Dr3z0YFg.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owocow/saber-ui",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Saber application foundation for Vue 3 projects built on Nuxt UI",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -207,7 +207,7 @@
207
207
  "vue": "^3"
208
208
  },
209
209
  "devDependencies": {
210
- "@nuxt/ui": "4.8.0",
210
+ "@nuxt/ui": "4.11.0",
211
211
  "@tailwindcss/vite": "^4.3.3",
212
212
  "@types/crypto-js": "^4.2.2",
213
213
  "@types/node": "^26.1.2",