@nxgt/material-vue 0.1.0 → 0.2.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.
- package/README.md +31 -4
- package/dist/{camera-BXYeDCKt.js → camera-6qqJBfXA.js} +7 -7
- package/dist/{components-DbRdoZ6P.js → components-Cd9cMyAH.js} +12092 -14106
- package/dist/components.js +4 -4
- package/dist/{dnd-MJFkrG2f.js → dnd-DxjI7Q-L.js} +1 -1
- package/dist/dnd.js +1 -1
- package/dist/{icon-button-Do3YaRdv.js → icon-button-Ghucx7Ah.js} +4 -3
- package/dist/lib/lib/components/ui/alert-dialog/AlertDialogAction.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/feedback/alert.vue.d.ts +30 -0
- package/dist/lib/lib/components/ui/feedback/confirm-dialog.vue.d.ts +23 -0
- package/dist/lib/lib/components/ui/feedback/confirmation-dialog.vue.d.ts +38 -0
- package/dist/lib/lib/components/ui/feedback/custom-alert-dialog.vue.d.ts +32 -0
- package/dist/lib/lib/components/ui/feedback/custom-dialog.vue.d.ts +32 -0
- package/dist/lib/lib/components/ui/feedback/empty-state.vue.d.ts +31 -0
- package/dist/lib/lib/components/ui/feedback/index.d.ts +21 -0
- package/dist/lib/lib/components/ui/feedback/progress-field.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/feedback/toast.d.ts +9 -0
- package/dist/lib/lib/components/ui/feedback/toast.vue.d.ts +25 -0
- package/dist/lib/lib/components/ui/feedback/toasts.d.ts +23 -0
- package/dist/lib/lib/components/ui/progress/Progress.vue.d.ts +2 -0
- package/dist/lib/lib/components/ui/skeleton/Skeleton.vue.d.ts +11 -1
- package/dist/lib/lib/components/ui/skeleton/index.d.ts +8 -0
- package/dist/lib/lib/components/ui/skeleton/skeleton-avatar.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/skeleton/skeleton-card.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/skeleton/skeleton-table.vue.d.ts +12 -0
- package/dist/lib/lib/components/ui/skeleton/skeleton-text.vue.d.ts +12 -0
- package/dist/lib/lib/nuxt/component-names.d.ts +1 -1
- package/dist/lib/lib/nuxt/inject-css.d.ts +10 -0
- package/dist/lib/lib/nuxt/module.d.ts +4 -1
- package/dist/main.js +10 -10
- package/dist/material-vue.css +1 -1
- package/dist/{pdf-outline-sidebar-Dl78ZiCE.js → pdf-outline-sidebar-DhZqpRoO.js} +5 -5
- package/dist/{pdf-page-BQh_RTTA.js → pdf-page-DzmRPuT_.js} +1 -1
- package/dist/{pdf-page-list-DgB7sXKt.js → pdf-page-list-CqRIdpm7.js} +16 -16
- package/dist/{pdf-reader-CSEFRTX0.js → pdf-reader-C0UXHO0I.js} +13 -13
- package/dist/{pdf-sidebar-C9hc2zxS.js → pdf-sidebar-BPfizuMa.js} +3 -3
- package/dist/{pdf-thumbnail-sidebar-zEjOyZY1.js → pdf-thumbnail-sidebar-Ca3LhKTL.js} +16 -16
- package/dist/{pdf-toolbar-BTFwhiXg.js → pdf-toolbar-B8YdJxDq.js} +21 -21
- package/dist/{stx-player-D6NHJCLt.js → stx-player-BUFJQ9Ym.js} +7 -7
- package/dist/styles.css +1 -0
- package/lib/nuxt/component-names.ts +12 -0
- package/lib/nuxt/inject-css.test.ts +41 -0
- package/lib/nuxt/inject-css.ts +24 -0
- package/lib/nuxt/module.ts +27 -2
- package/lib/styles.css +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,13 +4,13 @@ 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.
|
|
8
7
|
|
|
9
8
|
## Nuxt
|
|
10
9
|
|
|
11
10
|
```ts
|
|
12
11
|
export default defineNuxtConfig({
|
|
13
12
|
modules: ['@nxgt/material-vue/nuxt'],
|
|
13
|
+
css: ['~/assets/css/main.css'],
|
|
14
14
|
nxgtMaterial: {
|
|
15
15
|
// prefix: 'Nxgt',
|
|
16
16
|
// css: true,
|
|
@@ -18,9 +18,36 @@ export default defineNuxtConfig({
|
|
|
18
18
|
});
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
```css
|
|
22
|
+
/* app/assets/css/main.css — Tailwind v4 entry */
|
|
23
|
+
@import "tailwindcss";
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
The module:
|
|
27
|
+
|
|
28
|
+
- Injects `@import "@nxgt/material-vue/styles.css"` **into that Tailwind entry**
|
|
29
|
+
(immediately after `@import "tailwindcss"`). `@theme` / `@utility` only work
|
|
30
|
+
in the same CSS graph as Tailwind, so a separate `nuxt.options.css` entry
|
|
31
|
+
does not apply tokens.
|
|
32
|
+
- Auto-imports components and composables
|
|
33
|
+
- Installs Pinia when the host app has none
|
|
34
|
+
|
|
35
|
+
You do **not** need to `@import "@nxgt/material-vue/styles.css"` yourself.
|
|
36
|
+
|
|
37
|
+
To manage the import manually:
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
export default defineNuxtConfig({
|
|
41
|
+
modules: ['@nxgt/material-vue/nuxt'],
|
|
42
|
+
nxgtMaterial: { css: false },
|
|
43
|
+
});
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
```css
|
|
47
|
+
@import "tailwindcss";
|
|
48
|
+
@import "@nxgt/material-vue/styles.css";
|
|
49
|
+
```
|
|
23
50
|
|
|
24
51
|
## Status
|
|
25
52
|
|
|
26
|
-
|
|
53
|
+
Published on npm. Pin a version in the consumer (`^0.1.0`).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dl as e, Tl as t, wl as n } from "./components-Cd9cMyAH.js";
|
|
2
2
|
import { t as r } from "./utils-Cy-ByIEo.js";
|
|
3
|
-
import { r as i, t as a } from "./icon-button-
|
|
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
|
|
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,
|
|
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",
|
|
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(
|
|
59
|
+
setup(n) {
|
|
60
60
|
let r = g(null), i = g(null), a = v(null), o = e();
|
|
61
|
-
return
|
|
61
|
+
return t({
|
|
62
62
|
videoRef: r,
|
|
63
63
|
canvasRef: i,
|
|
64
64
|
streamRef: a,
|