@nxgt/material 3.10.0 → 3.10.2
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/CHANGELOG.md +16 -0
- package/README.md +18 -1
- package/dist/background-cEqcZQ3v.js +249 -0
- package/dist/backgrounds.js +1 -1
- package/dist/{components-D5d2rflJ.js → components-BkF9N-Yx.js} +5 -5
- package/dist/components.js +16 -16
- package/dist/editor.js +1 -1
- package/dist/empty-state-SeAg2TOX.js +117 -0
- package/dist/{icon-sprites-CZ3vcD7P.js → icon-sprites-FxHyqyhg.js} +18 -5
- package/dist/icons-scene-BpIauJ5d.js +27 -0
- package/dist/illustration-BfHRpVzM.js +97 -0
- package/dist/illustrations.js +2 -2
- package/dist/lib/backgrounds/background/partials/icons-scene.d.ts +3 -1
- package/dist/lib/components/ui/feedback/state-frame/state-scene-illustration.d.ts +4 -2
- package/dist/lib/components/ui/primitives/icon/icon-sprites.d.ts +13 -1
- package/dist/lib/illustrations/lazy-chunk.d.ts +9 -0
- package/dist/lib/illustrations/plated-illustration.d.ts +3 -1
- package/dist/lib/illustrations/use-illustration.d.ts +1 -0
- package/dist/lib/theme-picker/partials/tile-icons.d.ts +2 -1
- package/dist/main.js +28 -28
- package/dist/pdf-reader.js +1 -1
- package/dist/plated-illustration-iNO6KYTL.js +29 -0
- package/dist/{public-DGvtAz7M.js → public-CtpsxV4I.js} +1 -1
- package/dist/{state-scenes-Be9w_3an.js → state-scenes-SGNyZjTz.js} +53 -40
- package/dist/theme-picker.js +53 -52
- package/dist/{use-chat-composer-CkEPJo5I.js → use-chat-composer-nWWfVyrK.js} +4240 -4235
- package/docs/components/overlays-and-menus.md +4 -1
- package/docs/components/primitives.md +14 -0
- package/docs/guides/backgrounds.md +1 -1
- package/docs/guides/icon-motifs.md +36 -8
- package/docs/guides/illustrations.md +13 -1
- package/docs/previews/feedback-status-circularprogress.webp +0 -0
- package/docs/previews/feedback-status-hydrateloading.webp +0 -0
- package/docs/previews/feedback-status-notifications.webp +0 -0
- package/docs/previews/feedback-status-progress.webp +0 -0
- package/docs/previews/feedback-status-skeleton.webp +0 -0
- package/docs/previews/feedback-status-spinner.webp +0 -0
- package/docs/previews/feedback-status-typingindicator.webp +0 -0
- package/docs/troubleshooting.md +27 -2
- package/package.json +2 -2
- package/dist/background-CAWV_qSk.js +0 -247
- package/dist/empty-state-COAV2d-R.js +0 -98
- package/dist/icons-scene-bA7I4wdP.js +0 -24
- package/dist/illustration-DfPJtkFY.js +0 -86
- package/dist/plated-illustration-C3z0hP9U.js +0 -19
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { r as e } from "./rolldown-runtime-BFFgcFxR.js";
|
|
2
|
-
import { t } from "./is-production-GLw59WU8.js";
|
|
3
|
-
import { n } from "./icon-sprites-CZ3vcD7P.js";
|
|
4
|
-
import { c as r, i, l as a, s as o, t as s } from "./state-scenes-Be9w_3an.js";
|
|
5
|
-
import { t as c } from "./scene-svg-DJKa5vsg.js";
|
|
6
|
-
import { Suspense as l, lazy as u, useId as d, useMemo as f } from "react";
|
|
7
|
-
import { jsx as p } from "react/jsx-runtime";
|
|
8
|
-
import { IconRefError as m } from "@nxgt/material-core/icons";
|
|
9
|
-
import { ILLUSTRATION_SCENES as h, buildIllustration as g, illustrationScene as _ } from "@nxgt/material-core/illustrations";
|
|
10
|
-
//#region lib/illustrations/use-illustration.ts
|
|
11
|
-
function v(e, t, i) {
|
|
12
|
-
let s = a(), c = i ?? (x(e) ? void 0 : r(s, e)), l = n(), u = `ill${d().replace(/[^\w-]/g, "-")}`;
|
|
13
|
-
return {
|
|
14
|
-
built: f(() => {
|
|
15
|
-
let n = Object.fromEntries(Object.entries(t).filter(([, e]) => e !== void 0));
|
|
16
|
-
try {
|
|
17
|
-
let t = _(e, {
|
|
18
|
-
...s?.iconStyle === void 0 ? {} : { iconStyle: s.iconStyle },
|
|
19
|
-
...o(s, e),
|
|
20
|
-
...n
|
|
21
|
-
}, c);
|
|
22
|
-
return {
|
|
23
|
-
spec: t,
|
|
24
|
-
flat: g(t, {
|
|
25
|
-
idPrefix: u,
|
|
26
|
-
spriteBase: l
|
|
27
|
-
})
|
|
28
|
-
};
|
|
29
|
-
} catch (e) {
|
|
30
|
-
if (!(e instanceof m)) throw e;
|
|
31
|
-
return b(`Illustration: ${e.message} Drawing the built-in art instead.`), null;
|
|
32
|
-
}
|
|
33
|
-
}, [
|
|
34
|
-
e,
|
|
35
|
-
c,
|
|
36
|
-
JSON.stringify([
|
|
37
|
-
t,
|
|
38
|
-
o(s, e),
|
|
39
|
-
s?.iconStyle
|
|
40
|
-
]),
|
|
41
|
-
u,
|
|
42
|
-
l
|
|
43
|
-
]),
|
|
44
|
-
idPrefix: u,
|
|
45
|
-
base: l
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
var y = /* @__PURE__ */ new Set();
|
|
49
|
-
function b(e) {
|
|
50
|
-
t() || y.has(e) || (y.add(e), console.warn(e));
|
|
51
|
-
}
|
|
52
|
-
var x = (e) => h.includes(e), S = /* @__PURE__ */ e({ Illustration: () => w }), C = u(() => import("./plated-illustration-C3z0hP9U.js"));
|
|
53
|
-
function w({ scene: e, scenes: t, size: n = "md", title: r, animated: a, hero: o, satellites: u, iconStyle: d, tone: f, duotone: m, className: h, ...g }) {
|
|
54
|
-
let { built: _, idPrefix: y, base: b } = v(e, {
|
|
55
|
-
hero: o,
|
|
56
|
-
satellites: u,
|
|
57
|
-
iconStyle: d,
|
|
58
|
-
tone: f,
|
|
59
|
-
duotone: m
|
|
60
|
-
}, t);
|
|
61
|
-
return /* @__PURE__ */ p("div", {
|
|
62
|
-
"data-slot": "illustration",
|
|
63
|
-
...g,
|
|
64
|
-
...r ? {
|
|
65
|
-
role: "img",
|
|
66
|
-
"aria-label": r
|
|
67
|
-
} : { "aria-hidden": !0 },
|
|
68
|
-
"data-scene": e,
|
|
69
|
-
"data-size": n,
|
|
70
|
-
"data-animated": a ? "" : void 0,
|
|
71
|
-
className: h,
|
|
72
|
-
children: _ ? /* @__PURE__ */ p(l, {
|
|
73
|
-
fallback: /* @__PURE__ */ p(c, { node: _.flat }),
|
|
74
|
-
children: /* @__PURE__ */ p(C, {
|
|
75
|
-
spec: _.spec,
|
|
76
|
-
idPrefix: y,
|
|
77
|
-
base: b
|
|
78
|
-
})
|
|
79
|
-
}) : /* @__PURE__ */ p(i, {
|
|
80
|
-
kind: s[e] ?? "empty",
|
|
81
|
-
className: "h-full w-full"
|
|
82
|
-
})
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
//#endregion
|
|
86
|
-
export { S as n, w as t };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./scene-svg-DJKa5vsg.js";
|
|
2
|
-
import { useMemo as t } from "react";
|
|
3
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
import { buildIllustration as r } from "@nxgt/material-core/illustrations";
|
|
5
|
-
import { platePath as i } from "@nxgt/material-core/illustrations/plates";
|
|
6
|
-
//#region lib/illustrations/plated-illustration.tsx
|
|
7
|
-
function a({ spec: a, idPrefix: o, base: s }) {
|
|
8
|
-
return /* @__PURE__ */ n(e, { node: t(() => r(a, {
|
|
9
|
-
idPrefix: o,
|
|
10
|
-
spriteBase: s,
|
|
11
|
-
plates: i
|
|
12
|
-
}), [
|
|
13
|
-
a,
|
|
14
|
-
o,
|
|
15
|
-
s
|
|
16
|
-
]) });
|
|
17
|
-
}
|
|
18
|
-
//#endregion
|
|
19
|
-
export { a as default };
|