@nxgt/material-vue 0.1.0 → 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 (44) hide show
  1. package/README.md +45 -5
  2. package/dist/{camera-BXYeDCKt.js → camera-6VfHeky8.js} +7 -7
  3. package/dist/{components-DbRdoZ6P.js → components-BLkhdNzM.js} +11986 -13997
  4. package/dist/components.js +4 -4
  5. package/dist/{dnd-MJFkrG2f.js → dnd-DxjI7Q-L.js} +1 -1
  6. package/dist/dnd.js +1 -1
  7. package/dist/{icon-button-Do3YaRdv.js → icon-button-Ghucx7Ah.js} +4 -3
  8. package/dist/lib/lib/components/ui/alert-dialog/AlertDialogAction.vue.d.ts +3 -0
  9. package/dist/lib/lib/components/ui/barecode/barecode-options.d.ts +6 -2
  10. package/dist/lib/lib/components/ui/feedback/alert.vue.d.ts +30 -0
  11. package/dist/lib/lib/components/ui/feedback/confirm-dialog.vue.d.ts +23 -0
  12. package/dist/lib/lib/components/ui/feedback/confirmation-dialog.vue.d.ts +38 -0
  13. package/dist/lib/lib/components/ui/feedback/custom-alert-dialog.vue.d.ts +32 -0
  14. package/dist/lib/lib/components/ui/feedback/custom-dialog.vue.d.ts +32 -0
  15. package/dist/lib/lib/components/ui/feedback/empty-state.vue.d.ts +31 -0
  16. package/dist/lib/lib/components/ui/feedback/index.d.ts +21 -0
  17. package/dist/lib/lib/components/ui/feedback/progress-field.vue.d.ts +14 -0
  18. package/dist/lib/lib/components/ui/feedback/toast.d.ts +9 -0
  19. package/dist/lib/lib/components/ui/feedback/toast.vue.d.ts +25 -0
  20. package/dist/lib/lib/components/ui/feedback/toasts.d.ts +23 -0
  21. package/dist/lib/lib/components/ui/progress/Progress.vue.d.ts +2 -0
  22. package/dist/lib/lib/components/ui/skeleton/Skeleton.vue.d.ts +11 -1
  23. package/dist/lib/lib/components/ui/skeleton/index.d.ts +8 -0
  24. package/dist/lib/lib/components/ui/skeleton/skeleton-avatar.vue.d.ts +17 -0
  25. package/dist/lib/lib/components/ui/skeleton/skeleton-card.vue.d.ts +7 -0
  26. package/dist/lib/lib/components/ui/skeleton/skeleton-table.vue.d.ts +12 -0
  27. package/dist/lib/lib/components/ui/skeleton/skeleton-text.vue.d.ts +12 -0
  28. package/dist/lib/lib/nuxt/component-names.d.ts +1 -1
  29. package/dist/lib/lib/nuxt/module.d.ts +0 -2
  30. package/dist/main.js +10 -10
  31. package/dist/material-vue.css +1 -1
  32. package/dist/{pdf-outline-sidebar-Dl78ZiCE.js → pdf-outline-sidebar-BjqJoEeA.js} +5 -5
  33. package/dist/{pdf-page-BQh_RTTA.js → pdf-page-CvXk46CQ.js} +1 -1
  34. package/dist/{pdf-page-list-DgB7sXKt.js → pdf-page-list-BZBkNyMo.js} +16 -16
  35. package/dist/{pdf-reader-CSEFRTX0.js → pdf-reader-CHrX_UOI.js} +13 -13
  36. package/dist/{pdf-sidebar-C9hc2zxS.js → pdf-sidebar-Ccu_dBad.js} +3 -3
  37. package/dist/{pdf-thumbnail-sidebar-zEjOyZY1.js → pdf-thumbnail-sidebar-BMDaIPro.js} +16 -16
  38. package/dist/{pdf-toolbar-BTFwhiXg.js → pdf-toolbar-BWIkr5kz.js} +21 -21
  39. package/dist/{stx-player-D6NHJCLt.js → stx-player-BDlqO3qc.js} +7 -7
  40. package/dist/styles.css +2 -0
  41. package/lib/nuxt/component-names.ts +12 -0
  42. package/lib/nuxt/module.ts +16 -7
  43. package/lib/styles.css +2 -0
  44. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { Cf as e, fc as t } from "./components-DbRdoZ6P.js";
1
+ import { Dc as e, Rf as t } from "./components-BLkhdNzM.js";
2
2
  import { t as n } from "./utils-Cy-ByIEo.js";
3
3
  import { n as r } from "./i18n-DXZMN9FA.js";
4
4
  import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, defineComponent as u, normalizeClass as d, normalizeStyle as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
@@ -41,16 +41,16 @@ var y = {
41
41
  class: {}
42
42
  },
43
43
  emits: ["select"],
44
- setup(e, { emit: a }) {
44
+ setup(t, { emit: a }) {
45
45
  let s = a, { t: u } = r();
46
- return (r, a) => (p(), c("div", { class: d(_(n)("flex min-h-0 flex-1 flex-col", r.$props.class)) }, [e.items.length === 0 ? (p(), c("p", S, g(_(u)("material.pdf-reader.outline-empty", "No outline in this document")), 1)) : (p(), o(t, {
46
+ return (r, a) => (p(), c("div", { class: d(_(n)("flex min-h-0 flex-1 flex-col", r.$props.class)) }, [t.items.length === 0 ? (p(), c("p", S, g(_(u)("material.pdf-reader.outline-empty", "No outline in this document")), 1)) : (p(), o(e, {
47
47
  key: 1,
48
48
  class: "flex-1"
49
49
  }, {
50
50
  default: v(() => [l("nav", {
51
51
  class: "p-2",
52
52
  "aria-label": _(u)("material.pdf-reader.outline", "Outline")
53
- }, [(p(!0), c(i, null, h(e.items, (e, t) => (p(), o(x, {
53
+ }, [(p(!0), c(i, null, h(t.items, (e, t) => (p(), o(x, {
54
54
  key: `${e.title}-${t}`,
55
55
  item: e,
56
56
  depth: 0,
@@ -59,6 +59,6 @@ var y = {
59
59
  _: 1
60
60
  }))], 2));
61
61
  }
62
- }), T = /* @__PURE__ */ e({ default: () => E }), E = w;
62
+ }), T = /* @__PURE__ */ t({ default: () => E }), E = w;
63
63
  //#endregion
64
64
  export { T as n, E as t };
@@ -1,4 +1,4 @@
1
- import { tl as e } from "./components-DbRdoZ6P.js";
1
+ import { gl as e } from "./components-BLkhdNzM.js";
2
2
  import { t } from "./utils-Cy-ByIEo.js";
3
3
  import { createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, nextTick as s, normalizeClass as c, normalizeStyle as l, onBeforeUnmount as u, openBlock as d, ref as f, unref as p, watch as m } from "vue";
4
4
  //#region lib/components/ui/pdf-viewer/pdf-escape.ts
@@ -1,5 +1,5 @@
1
- import { Cf as e, fc as t } from "./components-DbRdoZ6P.js";
2
- import { t as n } from "./pdf-page-BQh_RTTA.js";
1
+ import { Dc as e, Rf as t } from "./components-BLkhdNzM.js";
2
+ import { t as n } from "./pdf-page-CvXk46CQ.js";
3
3
  import { Fragment as r, createBlock as i, createElementBlock as a, createElementVNode as o, defineComponent as s, openBlock as c, renderList as l, withCtx as u } from "vue";
4
4
  //#region lib/components/ui/pdf-viewer/partials/pdf-page-list.vue?vue&type=script&setup=true&lang.ts
5
5
  var d = { class: "flex flex-col items-center gap-4 px-4 py-4" }, f = /*@__PURE__*/ s({
@@ -15,19 +15,19 @@ var d = { class: "flex flex-col items-center gap-4 px-4 py-4" }, f = /*@__PURE__
15
15
  nightMode: { type: Boolean },
16
16
  pageRefs: {}
17
17
  },
18
- setup(e) {
19
- return (s, f) => (c(), i(t, { class: "h-full" }, {
20
- default: u(() => [o("div", d, [(c(!0), a(r, null, l(e.numPages, (t) => (c(), i(n, {
21
- key: t,
22
- pdf: e.pdf,
23
- "page-number": t,
24
- "is-current": t === e.currentPage,
25
- scale: e.scale,
26
- rotation: e.rotation,
27
- "search-query": e.searchQuery,
28
- "night-mode": e.nightMode,
29
- eager: t <= 2,
30
- "page-refs": e.pageRefs
18
+ setup(t) {
19
+ return (s, f) => (c(), i(e, { class: "h-full" }, {
20
+ default: u(() => [o("div", d, [(c(!0), a(r, null, l(t.numPages, (e) => (c(), i(n, {
21
+ key: e,
22
+ pdf: t.pdf,
23
+ "page-number": e,
24
+ "is-current": e === t.currentPage,
25
+ scale: t.scale,
26
+ rotation: t.rotation,
27
+ "search-query": t.searchQuery,
28
+ "night-mode": t.nightMode,
29
+ eager: e <= 2,
30
+ "page-refs": t.pageRefs
31
31
  }, null, 8, [
32
32
  "pdf",
33
33
  "page-number",
@@ -42,6 +42,6 @@ var d = { class: "flex flex-col items-center gap-4 px-4 py-4" }, f = /*@__PURE__
42
42
  _: 1
43
43
  }));
44
44
  }
45
- }), p = /* @__PURE__ */ e({ default: () => m }), m = f;
45
+ }), p = /* @__PURE__ */ t({ default: () => m }), m = f;
46
46
  //#endregion
47
47
  export { p as n, m as t };
@@ -1,11 +1,11 @@
1
- import { at as e, fd as t } from "./components-DbRdoZ6P.js";
1
+ import { Dd as e, ct as t } from "./components-BLkhdNzM.js";
2
2
  import { t as n } from "./utils-Cy-ByIEo.js";
3
- import { r } from "./icon-button-Do3YaRdv.js";
3
+ import { r } from "./icon-button-Ghucx7Ah.js";
4
4
  import { n as i } from "./i18n-DXZMN9FA.js";
5
- import { i as a, n as o, r as s } from "./pdf-page-BQh_RTTA.js";
6
- import { t as c } from "./pdf-page-list-DgB7sXKt.js";
7
- import { t as l } from "./pdf-sidebar-C9hc2zxS.js";
8
- import { t as u } from "./pdf-toolbar-BTFwhiXg.js";
5
+ import { i as a, n as o, r as s } from "./pdf-page-CvXk46CQ.js";
6
+ import { t as c } from "./pdf-page-list-BZBkNyMo.js";
7
+ import { t as l } from "./pdf-sidebar-Ccu_dBad.js";
8
+ import { t as u } from "./pdf-toolbar-BWIkr5kz.js";
9
9
  import { createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, normalizeClass as v, onBeforeUnmount as y, onMounted as b, openBlock as x, reactive as S, ref as C, shallowRef as w, toDisplayString as T, toRef as E, unref as D, watch as O, withCtx as k } from "vue";
10
10
  import { AlertCircle as A, FileX2 as j, KeyRound as M, Loader2 as N } from "lucide-vue-next";
11
11
  //#region lib/components/ui/pdf-viewer/pdf-download.ts
@@ -118,7 +118,7 @@ var H = { class: "absolute inset-0 flex flex-col items-center justify-center gap
118
118
  __name: "pdf-password-form",
119
119
  props: { modelValue: {} },
120
120
  emits: ["update:modelValue", "submit"],
121
- setup(e, { emit: n }) {
121
+ setup(t, { emit: n }) {
122
122
  let a = n, { t: o } = i();
123
123
  function s(e) {
124
124
  e.key === "Enter" && a("submit");
@@ -126,11 +126,11 @@ var H = { class: "absolute inset-0 flex flex-col items-center justify-center gap
126
126
  return (n, i) => (x(), p("div", Y, [
127
127
  g(D(M), { class: "size-10 text-primary opacity-70" }),
128
128
  m("p", X, T(D(o)("material.pdf-reader.password", "Password protected")), 1),
129
- m("div", Z, [g(t, {
129
+ m("div", Z, [g(e, {
130
130
  type: "password",
131
131
  placeholder: D(o)("material.pdf-reader.password-placeholder", "Enter password"),
132
132
  class: "h-9 w-48",
133
- "model-value": e.modelValue,
133
+ "model-value": t.modelValue,
134
134
  autofocus: "",
135
135
  "onUpdate:modelValue": i[0] ||= (e) => a("update:modelValue", String(e)),
136
136
  onKeydown: s
@@ -274,8 +274,8 @@ var ne = ["aria-label"], re = /* @__PURE__ */ _({
274
274
  "loadSuccess",
275
275
  "loadError"
276
276
  ],
277
- setup(t, { emit: r }) {
278
- let a = t, o = r, { t: s } = i(), c = C(null), l = /* @__PURE__ */ new Map(), f = te(c), m = e({
277
+ setup(e, { emit: r }) {
278
+ let a = e, o = r, { t: s } = i(), c = C(null), l = /* @__PURE__ */ new Map(), f = te(c), m = t({
279
279
  get file() {
280
280
  return a.file;
281
281
  },
@@ -330,7 +330,7 @@ var ne = ["aria-label"], re = /* @__PURE__ */ _({
330
330
  function M() {
331
331
  a.onPrint ? a.onPrint() : a.file && I(a.file);
332
332
  }
333
- return (e, r) => t.file ? (x(), p("div", {
333
+ return (t, r) => e.file ? (x(), p("div", {
334
334
  key: 1,
335
335
  ref_key: "wrapperRef",
336
336
  ref: c,
@@ -380,7 +380,7 @@ var ne = ["aria-label"], re = /* @__PURE__ */ _({
380
380
  "onSearchOpenChange",
381
381
  "onToggleNightMode"
382
382
  ]), g(ee, {
383
- file: t.file,
383
+ file: e.file,
384
384
  state: D(h),
385
385
  "effective-scale": D(_),
386
386
  "page-refs": D(l),
@@ -1,8 +1,8 @@
1
- import { Cf as e } from "./components-DbRdoZ6P.js";
1
+ import { Rf as e } from "./components-BLkhdNzM.js";
2
2
  import { t } from "./utils-Cy-ByIEo.js";
3
3
  import { n } from "./i18n-DXZMN9FA.js";
4
- import { t as r } from "./pdf-outline-sidebar-Dl78ZiCE.js";
5
- import { t as i } from "./pdf-thumbnail-sidebar-zEjOyZY1.js";
4
+ import { t as r } from "./pdf-outline-sidebar-BjqJoEeA.js";
5
+ import { t as i } from "./pdf-thumbnail-sidebar-BMDaIPro.js";
6
6
  import { createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, toDisplayString as d, unref as f, useId as p, useTemplateRef as m } from "vue";
7
7
  //#region lib/components/ui/pdf-viewer/partials/pdf-sidebar.vue?vue&type=script&setup=true&lang.ts
8
8
  var h = ["aria-label"], g = ["aria-label"], _ = [
@@ -1,7 +1,7 @@
1
- import { Cf as e, fc as t } from "./components-DbRdoZ6P.js";
1
+ import { Dc as e, Rf as t } from "./components-BLkhdNzM.js";
2
2
  import { t as n } from "./utils-Cy-ByIEo.js";
3
3
  import { n as r } from "./i18n-DXZMN9FA.js";
4
- import { t as i } from "./pdf-page-BQh_RTTA.js";
4
+ import { t as i } from "./pdf-page-CvXk46CQ.js";
5
5
  import { Fragment as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, renderList as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
6
6
  //#region lib/components/ui/pdf-viewer/partials/pdf-thumbnail-sidebar.vue?vue&type=script&setup=true&lang.ts
7
7
  var _ = ["aria-label"], v = {
@@ -26,36 +26,36 @@ var _ = ["aria-label"], v = {
26
26
  class: {}
27
27
  },
28
28
  emits: ["pageSelect"],
29
- setup(e, { emit: u }) {
29
+ setup(t, { emit: u }) {
30
30
  let S = u, { t: C } = r();
31
31
  return (r, u) => (f(), s("aside", {
32
32
  class: d(h(n)("flex h-full w-44 shrink-0 flex-col border-r bg-muted/20", r.$props.class)),
33
33
  "aria-label": h(C)("material.pdf-reader.thumbnails", "Page thumbnails")
34
- }, [e.showHeader ? (f(), s("div", v, m(h(C)("material.pdf-reader.pages", "Pages")), 1)) : o("", !0), l(t, { class: "flex-1" }, {
35
- default: g(() => [c("div", y, [(f(!0), s(a, null, p(e.numPages, (t) => (f(), s("button", {
36
- key: t,
34
+ }, [t.showHeader ? (f(), s("div", v, m(h(C)("material.pdf-reader.pages", "Pages")), 1)) : o("", !0), l(e, { class: "flex-1" }, {
35
+ default: g(() => [c("div", y, [(f(!0), s(a, null, p(t.numPages, (e) => (f(), s("button", {
36
+ key: e,
37
37
  type: "button",
38
- class: d(h(n)("group relative flex flex-col items-center gap-1 rounded-lg p-1.5 transition-all hover:bg-accent cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-ring", e.currentPage === t && "bg-primary/10 ring-2 ring-primary/50")),
39
- "aria-label": h(C)("material.pdf-reader.go-to-page", "Go to page {page}", { page: t }),
40
- "aria-current": e.currentPage === t ? "page" : void 0,
41
- onClick: (e) => S("pageSelect", t)
38
+ class: d(h(n)("group relative flex flex-col items-center gap-1 rounded-lg p-1.5 transition-all hover:bg-accent cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-ring", t.currentPage === e && "bg-primary/10 ring-2 ring-primary/50")),
39
+ "aria-label": h(C)("material.pdf-reader.go-to-page", "Go to page {page}", { page: e }),
40
+ "aria-current": t.currentPage === e ? "page" : void 0,
41
+ onClick: (t) => S("pageSelect", e)
42
42
  }, [c("div", x, [l(i, {
43
- pdf: e.pdf,
44
- "page-number": t,
43
+ pdf: t.pdf,
44
+ "page-number": e,
45
45
  scale: 1,
46
- rotation: e.rotation,
46
+ rotation: t.rotation,
47
47
  width: 120,
48
- eager: t <= 4,
48
+ eager: e <= 4,
49
49
  "render-text": !1
50
50
  }, null, 8, [
51
51
  "pdf",
52
52
  "page-number",
53
53
  "rotation",
54
54
  "eager"
55
- ])]), c("span", { class: d(h(n)("text-xs font-medium transition-colors", e.currentPage === t ? "text-primary" : "text-muted-foreground")) }, m(t), 3)], 10, b))), 128))])]),
55
+ ])]), c("span", { class: d(h(n)("text-xs font-medium transition-colors", t.currentPage === e ? "text-primary" : "text-muted-foreground")) }, m(e), 3)], 10, b))), 128))])]),
56
56
  _: 1
57
57
  })], 10, _));
58
58
  }
59
- }), C = /* @__PURE__ */ e({ default: () => w }), w = S;
59
+ }), C = /* @__PURE__ */ t({ default: () => w }), w = S;
60
60
  //#endregion
61
61
  export { C as n, w as t };
@@ -1,6 +1,6 @@
1
- import { Cf as e, fd as t } from "./components-DbRdoZ6P.js";
1
+ import { Dd as e, Rf as t } from "./components-BLkhdNzM.js";
2
2
  import { t as n } from "./utils-Cy-ByIEo.js";
3
- import { t as r } from "./icon-button-Do3YaRdv.js";
3
+ import { t as r } from "./icon-button-Ghucx7Ah.js";
4
4
  import { n as i } from "./i18n-DXZMN9FA.js";
5
5
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, nextTick as p, normalizeClass as m, openBlock as h, ref as g, renderList as _, toDisplayString as v, unref as y, useTemplateRef as b, watch as x, withCtx as S } from "vue";
6
6
  import { ChevronDown as C, ChevronLeft as w, ChevronRight as T, ChevronUp as E, Download as D, Maximize2 as O, Minimize2 as k, Moon as A, Printer as j, RotateCw as M, Search as N, Sidebar as P, ZoomIn as F, ZoomOut as I } from "lucide-vue-next";
@@ -13,8 +13,8 @@ var L = { class: "min-w-10 text-center text-muted-foreground text-xs" }, R = /*
13
13
  searchHits: {}
14
14
  },
15
15
  emits: ["search-open-change", "search-change"],
16
- setup(e, { emit: n }) {
17
- let o = e, s = n, { t: f } = i(), m = b("searchHost"), g = f("material.pdf-reader.search", "Search"), _ = f("material.pdf-reader.search-next", "Next match (F3)"), w = f("material.pdf-reader.search-prev", "Previous match (Shift+F3)");
16
+ setup(t, { emit: n }) {
17
+ let o = t, s = n, { t: f } = i(), m = b("searchHost"), g = f("material.pdf-reader.search", "Search"), _ = f("material.pdf-reader.search-next", "Next match (F3)"), w = f("material.pdf-reader.search-prev", "Previous match (Shift+F3)");
18
18
  x(() => o.searchOpen, async (e) => {
19
19
  e && (await p(), m.value?.querySelector("input")?.focus());
20
20
  });
@@ -24,26 +24,26 @@ var L = { class: "min-w-10 text-center text-muted-foreground text-xs" }, R = /*
24
24
  function D(e) {
25
25
  s("search-change", String(e)), o.searchHits.reset();
26
26
  }
27
- return (n, i) => (h(), l(a, null, [e.searchOpen ? (h(), l("div", {
27
+ return (n, i) => (h(), l(a, null, [t.searchOpen ? (h(), l("div", {
28
28
  key: 0,
29
29
  ref_key: "searchHost",
30
30
  ref: m,
31
31
  class: "flex items-center gap-1"
32
- }, [d(t, {
32
+ }, [d(e, {
33
33
  class: "h-7 w-36 text-sm",
34
34
  placeholder: y(g),
35
- "model-value": e.searchQuery,
35
+ "model-value": t.searchQuery,
36
36
  "onUpdate:modelValue": D,
37
37
  onKeydown: T
38
- }, null, 8, ["placeholder", "model-value"]), e.searchQuery ? (h(), l(a, { key: 0 }, [
39
- u("span", L, v(e.searchHits.hitCount > 0 ? `${e.searchHits.hitIndex + 1}/${e.searchHits.hitCount}` : "0/0"), 1),
38
+ }, null, 8, ["placeholder", "model-value"]), t.searchQuery ? (h(), l(a, { key: 0 }, [
39
+ u("span", L, v(t.searchHits.hitCount > 0 ? `${t.searchHits.hitIndex + 1}/${t.searchHits.hitCount}` : "0/0"), 1),
40
40
  d(r, {
41
41
  variant: "ghost",
42
42
  color: "default",
43
43
  class: "size-7",
44
44
  "aria-label": y(w),
45
45
  tooltip: y(w),
46
- onClick: i[0] ||= (t) => e.searchHits.jump(-1)
46
+ onClick: i[0] ||= (e) => t.searchHits.jump(-1)
47
47
  }, {
48
48
  default: S(() => [d(y(E))]),
49
49
  _: 1
@@ -54,18 +54,18 @@ var L = { class: "min-w-10 text-center text-muted-foreground text-xs" }, R = /*
54
54
  class: "size-7",
55
55
  "aria-label": y(_),
56
56
  tooltip: y(_),
57
- onClick: i[1] ||= (t) => e.searchHits.jump(1)
57
+ onClick: i[1] ||= (e) => t.searchHits.jump(1)
58
58
  }, {
59
59
  default: S(() => [d(y(C))]),
60
60
  _: 1
61
61
  }, 8, ["aria-label", "tooltip"])
62
62
  ], 64)) : c("", !0)], 512)) : c("", !0), d(r, {
63
- variant: e.searchOpen ? "tonal" : "ghost",
63
+ variant: t.searchOpen ? "tonal" : "ghost",
64
64
  color: "default",
65
65
  "aria-label": y(g),
66
- "aria-pressed": e.searchOpen,
66
+ "aria-pressed": t.searchOpen,
67
67
  tooltip: y(f)("material.pdf-reader.search-shortcut", "Search (Ctrl+F)"),
68
- onClick: i[2] ||= (t) => s("search-open-change", !e.searchOpen)
68
+ onClick: i[2] ||= (e) => s("search-open-change", !t.searchOpen)
69
69
  }, {
70
70
  default: S(() => [d(y(N))]),
71
71
  _: 1
@@ -176,7 +176,7 @@ var L = { class: "min-w-10 text-center text-muted-foreground text-xs" }, R = /*
176
176
  "nextPage",
177
177
  "goToPage"
178
178
  ],
179
- setup(e, { emit: n }) {
179
+ setup(t, { emit: n }) {
180
180
  let o = n, { t: s } = i(), c = g(""), f = s("material.pdf-reader.previous-page", "Previous page"), p = s("material.pdf-reader.next-page", "Next page"), m = s("material.pdf-reader.current-page", "Current page");
181
181
  function _() {
182
182
  let e = Number.parseInt(c.value, 10);
@@ -191,7 +191,7 @@ var L = { class: "min-w-10 text-center text-muted-foreground text-xs" }, R = /*
191
191
  color: "default",
192
192
  "aria-label": y(f),
193
193
  tooltip: y(f),
194
- disabled: e.currentPage <= 1,
194
+ disabled: t.currentPage <= 1,
195
195
  onClick: i[0] ||= (e) => o("prevPage")
196
196
  }, {
197
197
  default: S(() => [d(y(w))]),
@@ -201,20 +201,20 @@ var L = { class: "min-w-10 text-center text-muted-foreground text-xs" }, R = /*
201
201
  "tooltip",
202
202
  "disabled"
203
203
  ]),
204
- u("div", B, [d(t, {
204
+ u("div", B, [d(e, {
205
205
  class: "h-7 w-12 px-1 py-0 text-center text-sm",
206
- "model-value": c.value || e.currentPage,
206
+ "model-value": c.value || t.currentPage,
207
207
  "aria-label": y(m),
208
208
  "onUpdate:modelValue": i[1] ||= (e) => c.value = String(e),
209
209
  onKeydown: b,
210
210
  onBlur: _
211
- }, null, 8, ["model-value", "aria-label"]), u("span", V, "/ " + v(e.numPages), 1)]),
211
+ }, null, 8, ["model-value", "aria-label"]), u("span", V, "/ " + v(t.numPages), 1)]),
212
212
  d(r, {
213
213
  variant: "ghost",
214
214
  color: "default",
215
215
  "aria-label": y(p),
216
216
  tooltip: y(p),
217
- disabled: e.currentPage >= e.numPages,
217
+ disabled: t.currentPage >= t.numPages,
218
218
  onClick: i[2] ||= (e) => o("nextPage")
219
219
  }, {
220
220
  default: S(() => [d(y(T))]),
@@ -428,6 +428,6 @@ var L = { class: "min-w-10 text-center text-muted-foreground text-xs" }, R = /*
428
428
  ])
429
429
  ], 2));
430
430
  }
431
- }), J = /* @__PURE__ */ e({ default: () => Y }), Y = q;
431
+ }), J = /* @__PURE__ */ t({ default: () => Y }), Y = q;
432
432
  //#endregion
433
433
  export { J as n, Y as t };
@@ -1,4 +1,4 @@
1
- import { Ul as e, _ as t, f as n, g as r, m as i, p as a, v as o, y as s } from "./components-DbRdoZ6P.js";
1
+ import { _ as e, f as t, g as n, iu as r, m as i, p as a, v as o, y as s } from "./components-BLkhdNzM.js";
2
2
  import { t as c } from "./utils-Cy-ByIEo.js";
3
3
  import { createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, normalizeClass as g, openBlock as _, toDisplayString as v, unref as y, withCtx as b } from "vue";
4
4
  //#region lib/components/ui/stx-player/partials/stx-player-frame.vue?vue&type=script&setup=true&lang.ts
@@ -29,26 +29,26 @@ var x = ["data-layout", "aria-label"], S = {
29
29
  "data-layout": i.layout,
30
30
  "aria-label": y(C).current?.title ?? "Media player",
31
31
  class: g(y(c)("@container rounded outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50", s.$props.class))
32
- }, [i.layout === "mini" ? (_(), l(r, { key: 0 })) : (_(), d("div", {
32
+ }, [i.layout === "mini" ? (_(), l(n, { key: 0 })) : (_(), d("div", {
33
33
  key: 1,
34
34
  class: g(y(c)("grid gap-3", i.showQueue && "@min-[768px]:grid-cols-[minmax(0,1fr)_18rem] @min-[768px]:items-stretch"))
35
35
  }, [f("div", { class: g(y(c)("bg-card overflow-hidden rounded border", y(C).current?.kind === "audio" && "flex flex-col gap-4 p-6")) }, [
36
- y(C).current?.kind === "audio" ? (_(), d("div", S, [m(e, { variant: "title-medium" }, {
36
+ y(C).current?.kind === "audio" ? (_(), d("div", S, [m(r, { variant: "title-medium" }, {
37
37
  default: b(() => [p(v(y(C).current.title), 1)]),
38
38
  _: 1
39
- }), y(C).current.artist ? (_(), l(e, {
39
+ }), y(C).current.artist ? (_(), l(r, {
40
40
  key: 0,
41
41
  class: "text-muted-foreground"
42
42
  }, {
43
43
  default: b(() => [p(v(y(C).current.artist) + " " + v(y(C).current.album ? ` · ${y(C).current.album}` : ""), 1)]),
44
44
  _: 1
45
45
  })) : u("", !0)])) : u("", !0),
46
- m(n, null, {
46
+ m(t, null, {
47
47
  default: b(() => [y(C).current?.kind === "audio" ? u("", !0) : (_(), l(o, {
48
48
  key: 0,
49
49
  tone: "overlay"
50
50
  }, {
51
- trailing: b(() => [m(t, { tone: "overlay" })]),
51
+ trailing: b(() => [m(e, { tone: "overlay" })]),
52
52
  _: 1
53
53
  }))]),
54
54
  _: 1
@@ -57,7 +57,7 @@ var x = ["data-layout", "aria-label"], S = {
57
57
  key: 1,
58
58
  tone: "surface"
59
59
  }, {
60
- trailing: b(() => [m(t, { tone: "surface" })]),
60
+ trailing: b(() => [m(e, { tone: "surface" })]),
61
61
  _: 1
62
62
  })) : u("", !0)
63
63
  ], 2), i.showQueue ? (_(), l(a, {
package/dist/styles.css CHANGED
@@ -1,6 +1,8 @@
1
1
  @import "tailwindcss";
2
2
  @import "tw-animate-css";
3
3
  @import "./components/ui/code/code-moonlight.css";
4
+ /* Consumers' Tailwind skips node_modules: scan the compiled components. */
5
+ @source "../dist";
4
6
 
5
7
  @custom-variant dark (
6
8
  &:where(.dark, .dark *, [data-theme="dark"], [data-theme="dark"] *)
@@ -13,6 +13,7 @@ export const COMPONENT_NAMES = [
13
13
  'Activity',
14
14
  'ActivityContent',
15
15
  'ActivityLayout',
16
+ 'Alert',
16
17
  'AlertDialog',
17
18
  'AlertDialogAction',
18
19
  'AlertDialogCancel',
@@ -125,6 +126,8 @@ export const COMPONENT_NAMES = [
125
126
  'CommandList',
126
127
  'CommandSeparator',
127
128
  'CommandShortcut',
129
+ 'ConfirmDialog',
130
+ 'ConfirmationDialog',
128
131
  'ContactDialog',
129
132
  'ContactItem',
130
133
  'Contacts',
@@ -149,6 +152,8 @@ export const COMPONENT_NAMES = [
149
152
  'CountryFormField',
150
153
  'CurrencyField',
151
154
  'CurrencyFormField',
155
+ 'CustomAlertDialog',
156
+ 'CustomDialog',
152
157
  'DataTable',
153
158
  'DataTableColumnHeader',
154
159
  'DataTablePagination',
@@ -220,6 +225,7 @@ export const COMPONENT_NAMES = [
220
225
  'EmailFormField',
221
226
  'EmojiList',
222
227
  'EmojiPicker',
228
+ 'EmptyState',
223
229
  'EntityHeader',
224
230
  'EventCalendar',
225
231
  'EventChip',
@@ -346,6 +352,7 @@ export const COMPONENT_NAMES = [
346
352
  'PrintTotalRow',
347
353
  'PrintTotals',
348
354
  'Progress',
355
+ 'ProgressField',
349
356
  'QRCode',
350
357
  'QuestionCard',
351
358
  'Quiz',
@@ -414,6 +421,10 @@ export const COMPONENT_NAMES = [
414
421
  'SidebarMenuItem',
415
422
  'SidebarMenuLabel',
416
423
  'Skeleton',
424
+ 'SkeletonAvatar',
425
+ 'SkeletonCard',
426
+ 'SkeletonTable',
427
+ 'SkeletonText',
417
428
  'Slider',
418
429
  'SliderField',
419
430
  'SliderFormField',
@@ -465,6 +476,7 @@ export const COMPONENT_NAMES = [
465
476
  'TimelineItem',
466
477
  'TimezoneField',
467
478
  'TimezoneFormField',
479
+ 'Toast',
468
480
  'Toaster',
469
481
  'Toggle',
470
482
  'ToggleGroup',
@@ -4,20 +4,26 @@ import {
4
4
  addPlugin,
5
5
  createResolver,
6
6
  defineNuxtModule,
7
+ extendViteConfig,
7
8
  } from '@nuxt/kit';
8
9
  import { COMPONENT_NAMES } from './component-names';
9
10
 
10
11
  export type ModuleOptions = {
11
12
  /** Prepended to auto-imported component names. Empty by default. */
12
13
  prefix?: string;
13
- /** Inject `@nxgt/material-vue/styles.css`. Default true. */
14
- css?: boolean;
15
14
  /** Auto-import PascalCase components. Default true. */
16
15
  components?: boolean;
17
16
  /** Auto-import composables and i18n helpers. Default true. */
18
17
  imports?: boolean;
19
18
  };
20
19
 
20
+ /**
21
+ * CommonJS-only dependencies. The package is transpiled, so Vite does not
22
+ * pre-bundle its imports; without this the browser receives the raw CJS file
23
+ * and `import x from 'jsbarcode'` has no default export.
24
+ */
25
+ const CJS_DEPENDENCIES = ['jsbarcode'] as const;
26
+
21
27
  export default defineNuxtModule<ModuleOptions>({
22
28
  meta: {
23
29
  name: '@nxgt/material-vue',
@@ -26,21 +32,24 @@ export default defineNuxtModule<ModuleOptions>({
26
32
  },
27
33
  defaults: {
28
34
  prefix: '',
29
- css: true,
30
35
  components: true,
31
36
  imports: true,
32
37
  },
33
38
  setup(
34
39
  options: ModuleOptions,
35
- nuxt: { options: { build: { transpile: string[] }; css: string[] } },
40
+ nuxt: { options: { build: { transpile: string[] } } },
36
41
  ) {
37
42
  const resolver = createResolver(import.meta.url);
38
43
 
39
44
  nuxt.options.build.transpile.push('@nxgt/material-vue');
40
45
 
41
- if (options.css !== false) {
42
- nuxt.options.css.push('@nxgt/material-vue/styles.css');
43
- }
46
+ extendViteConfig((config) => {
47
+ config.optimizeDeps ??= {};
48
+ config.optimizeDeps.include ??= [];
49
+ for (const dependency of CJS_DEPENDENCIES) {
50
+ config.optimizeDeps.include.push(`@nxgt/material-vue > ${dependency}`);
51
+ }
52
+ });
44
53
 
45
54
  if (options.components !== false) {
46
55
  for (const name of COMPONENT_NAMES) {
package/lib/styles.css CHANGED
@@ -1,6 +1,8 @@
1
1
  @import "tailwindcss";
2
2
  @import "tw-animate-css";
3
3
  @import "./components/ui/code/code-moonlight.css";
4
+ /* Consumers' Tailwind skips node_modules: scan the compiled components. */
5
+ @source "../dist";
4
6
 
5
7
  @custom-variant dark (
6
8
  &:where(.dark, .dark *, [data-theme="dark"], [data-theme="dark"] *)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxgt/material-vue",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",