@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
package/README.md CHANGED
@@ -4,23 +4,63 @@ Vue component library: primitives, form fields, layout shell, `DataTable`,
4
4
  drag-and-drop, i18n, and `Icon`. Tailwind CSS v4 + shadcn-vue (Reka UI).
5
5
 
6
6
  This package is the Vue mirror of [`@nxgt/material`](https://github.com/softistx/nxgt-material).
7
- The full consumer README lands with the first public release.
7
+
8
+ ## Styles
9
+
10
+ Import the stylesheet **explicitly**, in your Tailwind v4 entry, right after
11
+ `@import "tailwindcss"`:
12
+
13
+ ```css
14
+ /* app/assets/css/main.css */
15
+ @import "tailwindcss";
16
+ @import "@nxgt/material-vue/styles.css";
17
+ ```
18
+
19
+ Nothing injects it for you, on purpose:
20
+
21
+ - Tailwind v4 builds **one** `@theme` from a single CSS graph. `@theme` /
22
+ `@utility` only apply when `styles.css` is imported in the same file as
23
+ `@import "tailwindcss"`; a second stylesheet (for example another Nuxt
24
+ `css[]` entry) starts a second pipeline, and the tokens never reach the app.
25
+ - Tailwind CSS IntelliSense reads the theme from that entry file. An explicit
26
+ import lets it autocomplete the library tokens (`bg-primary`,
27
+ `text-error-foreground`, `rounded-lg`, …) in your templates.
28
+
29
+ Tailwind v4 does not scan `node_modules`. `styles.css` already declares
30
+ `@source "../dist"`, so the utilities used inside the components are generated
31
+ by your build: no extra `@source` needed.
32
+
33
+ ### Stylesheets
34
+
35
+ | Import | What is in it |
36
+ | --- | --- |
37
+ | `@import "@nxgt/material-vue/styles.css"` | source Tailwind v4 tokens, `@theme`, `@utility`: **this** is what a Tailwind app imports |
38
+ | `@import "@nxgt/material-vue"` | `style` condition of the root export → `dist/material-vue.css`: compiled, self-contained CSS (tokens + every utility the components use), for apps without Tailwind |
39
+
40
+ Do not import both in the same app.
8
41
 
9
42
  ## Nuxt
10
43
 
11
44
  ```ts
12
45
  export default defineNuxtConfig({
13
46
  modules: ['@nxgt/material-vue/nuxt'],
47
+ css: ['~/assets/css/main.css'], // imports styles.css, see above
48
+ vite: { plugins: [tailwindcss()] },
14
49
  nxgtMaterial: {
15
50
  // prefix: 'Nxgt',
16
- // css: true,
17
51
  },
18
52
  });
19
53
  ```
20
54
 
21
- The module injects `styles.css`, auto-imports components and composables, and
22
- installs Pinia when the host app has none.
55
+ The module:
56
+
57
+ - Auto-imports components and composables
58
+ - Installs Pinia when the host app has none
59
+ - Pre-bundles CommonJS dependencies (`jsbarcode`) for Vite
60
+
61
+ It does **not** add the stylesheet: import it yourself as shown in
62
+ [Styles](#styles).
23
63
 
24
64
  ## Status
25
65
 
26
- Work in progress. Do not consume yet.
66
+ Published on npm. Pin a version in the consumer (`^0.2.0`).
@@ -1,6 +1,6 @@
1
- import { fl as e, ll as t, ul as n } from "./components-DbRdoZ6P.js";
1
+ import { Dl as e, Tl as t, wl as n } from "./components-BLkhdNzM.js";
2
2
  import { t as r } from "./utils-Cy-ByIEo.js";
3
- import { r as i, t as a } from "./icon-button-Do3YaRdv.js";
3
+ import { r as i, t as a } from "./icon-button-Ghucx7Ah.js";
4
4
  import { n as o } from "./i18n-DXZMN9FA.js";
5
5
  import { createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, normalizeClass as m, openBlock as h, ref as g, renderSlot as _, shallowRef as v, toDisplayString as y, unref as b, withCtx as x } from "vue";
6
6
  import { Pause as S, Play as C } from "lucide-vue-next";
@@ -16,7 +16,7 @@ var w = { class: "grid gap-2" }, T = { class: "flex justify-end" }, E = ["src",
16
16
  Array
17
17
  ] } },
18
18
  setup(e) {
19
- let n = e, { t: p } = o(), { videoRef: g, state: _, actions: v } = t();
19
+ let t = e, { t: p } = o(), { videoRef: g, state: _, actions: v } = n();
20
20
  function D(e) {
21
21
  g.value = e instanceof HTMLVideoElement ? e : null;
22
22
  }
@@ -24,9 +24,9 @@ var w = { class: "grid gap-2" }, T = { class: "flex justify-end" }, E = ["src",
24
24
  _.isStreaming ? v.stopStream() : v.startStream();
25
25
  }
26
26
  let k = p("material.camera.capture", "Take Capture"), A = p("material.camera.captured", "Captured");
27
- return (e, t) => (h(), l("div", {
27
+ return (e, n) => (h(), l("div", {
28
28
  "data-slot": "camera",
29
- class: m(b(r)("flex relative w-full h-full gap-2", n.class))
29
+ class: m(b(r)("flex relative w-full h-full gap-2", t.class))
30
30
  }, [u("div", w, [u("video", {
31
31
  ref: D,
32
32
  class: "w-full max-w-lg right-1 ring-primary",
@@ -56,9 +56,9 @@ var w = { class: "grid gap-2" }, T = { class: "flex justify-end" }, E = ["src",
56
56
  }
57
57
  }), O = /* @__PURE__ */ p({
58
58
  __name: "camera-provider",
59
- setup(t) {
59
+ setup(n) {
60
60
  let r = g(null), i = g(null), a = v(null), o = e();
61
- return n({
61
+ return t({
62
62
  videoRef: r,
63
63
  canvasRef: i,
64
64
  streamRef: a,