@nxgt/material 3.20.0 → 3.22.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/CHANGELOG.md +69 -0
- package/README.md +6 -4
- package/bin/nxgt-backdrop-sprite.js +15 -0
- package/dist/background-BtSZsTvY.js +286 -0
- package/dist/backgrounds/css-react/icons-quiet.css +5 -5
- package/dist/backgrounds/css-react/icons-tint.css +98 -0
- package/dist/backgrounds/css-react/icons.css +100 -33
- package/dist/backgrounds.js +1 -1
- package/dist/{celestial-scene-DaOsRFF3.js → celestial-scene-8Muu6f7O.js} +1 -1
- package/dist/components/background-shared.css +5 -0
- package/dist/components/components.css +4 -7
- package/dist/components/ui/display/chip/chip-parts.css +17 -30
- package/dist/components/ui/fields/attributes/attributes.css +3 -0
- package/dist/components/ui/layout/app-shell/activity-backdrop-shapes.css +1 -1
- package/dist/components/ui/layout/auth-card/auth-card-backdrop.css +30 -0
- package/dist/{components-SJxc3fpp.js → components-B0oezhGe.js} +13966 -13937
- package/dist/components.js +16 -16
- package/dist/editor.js +1 -1
- package/dist/{empty-state-CJh9f2pc.js → empty-state-lj7vjYWG.js} +1 -1
- package/dist/icon-sprites-CaYXzOL4.js +46 -0
- package/dist/icons-scene-M4HBeN2c.js +54 -0
- package/dist/{illustration-BmQmvW_4.js → illustration-B4_W-OUS.js} +2 -2
- package/dist/illustrations.js +1 -1
- package/dist/lib/backgrounds/background/partials/icons-check.d.ts +2 -2
- package/dist/lib/backgrounds/background/partials/icons-keys.d.ts +21 -1
- package/dist/lib/backgrounds/background/partials/icons-scene.d.ts +15 -6
- package/dist/lib/backgrounds/background/partials/use-icons-scene.d.ts +13 -8
- package/dist/lib/backgrounds/background/types.d.ts +26 -12
- package/dist/lib/backgrounds/index.d.ts +1 -1
- package/dist/lib/components/ui/dates/date-field/use-typed-date.d.ts +2 -2
- package/dist/lib/components/ui/dates/picker-trigger/typed-day.d.ts +7 -2
- package/dist/lib/components/ui/display/chip/partials/chip-dismiss-button.d.ts +1 -1
- package/dist/lib/components/ui/layout/app-shell/keep-shapes-inside.d.ts +7 -2
- package/dist/lib/components/ui/layout/app-shell/shapes-clear-content.d.ts +10 -3
- package/dist/lib/components/ui/layout/app-shell/theme-backdrop.d.ts +3 -1
- package/dist/lib/components/ui/layout/app-shell/use-keep-shapes-inside.d.ts +3 -3
- package/dist/lib/components/ui/layout/app-shell/watch-content.d.ts +28 -8
- package/dist/lib/components/ui/layout/auth-card/auth-card-backdrop.d.ts +23 -0
- package/dist/lib/components/ui/layout/auth-card/auth-card.d.ts +15 -1
- package/dist/lib/components/ui/primitives/icon/icon-sprites.d.ts +40 -1
- package/dist/lib/themes/define-theme.d.ts +8 -0
- package/dist/lib/themes/index.d.ts +2 -1
- package/dist/lib/vite/index.d.ts +1 -1
- package/dist/main.js +28 -28
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/{public-DWuBn4t_.js → public-DAF5SCWH.js} +1 -1
- package/dist/{scene-options-CCy3V7XS.js → scene-options-2zNF3ZkQ.js} +4 -2
- package/dist/theme-picker.js +3 -3
- package/dist/themes.js +9 -4
- package/dist/{use-chat-composer-BBFuKNqC.js → use-chat-composer-B0ze1cU9.js} +3 -3
- package/docs/components/data-display.md +1 -1
- package/docs/components/date-and-time.md +8 -4
- package/docs/components/navigation-and-layout.md +22 -0
- package/docs/components/primitives.md +21 -0
- package/docs/guides/app-shell.md +9 -8
- package/docs/guides/backgrounds.md +214 -16
- package/docs/guides/icon-motifs.md +30 -12
- package/docs/guides/themes.md +25 -4
- package/docs/guides/theming.md +7 -0
- package/docs/guides/vite-plugin.md +26 -0
- package/docs/previews/backgrounds-background-from-theme.webp +0 -0
- package/docs/previews/backgrounds-icons.webp +0 -0
- package/docs/previews/backgrounds-matrix.webp +0 -0
- package/docs/previews/date-time-datefield.webp +0 -0
- package/docs/previews/date-time-daterangefield.webp +0 -0
- package/docs/previews/foundations-themes-icon-motifs.webp +0 -0
- package/docs/roadmap.md +6 -0
- package/docs/troubleshooting.md +80 -4
- package/lib/backgrounds/css-react/icons-quiet.css +5 -5
- package/lib/backgrounds/css-react/icons-tint.css +98 -0
- package/lib/backgrounds/css-react/icons.css +100 -33
- package/lib/components/background-shared.css +5 -0
- package/lib/components/components.css +4 -7
- package/lib/components/ui/display/chip/chip-parts.css +17 -30
- package/lib/components/ui/fields/attributes/attributes.css +3 -0
- package/lib/components/ui/layout/app-shell/activity-backdrop-shapes.css +1 -1
- package/lib/components/ui/layout/auth-card/auth-card-backdrop.css +30 -0
- package/package.json +8 -3
- package/dist/background-Ce7M5V42.js +0 -250
- package/dist/icon-sprites-FxHyqyhg.js +0 -30
- package/dist/icons-scene-BpIauJ5d.js +0 -27
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { createContext as e, useContext as t } from "react";
|
|
2
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
import { DEFAULT_SPRITE_BASE as r, IconRefError as i, isSafeSpriteBase as a } from "@nxgt/material-core/icons";
|
|
4
|
-
//#region lib/components/ui/primitives/icon/icon-sprites.tsx
|
|
5
|
-
var o = e(r), s = e("pro");
|
|
6
|
-
function c({ base: e, edition: t, children: r }) {
|
|
7
|
-
if (!a(e)) throw new i("base", `IconSpritesProvider: ${JSON.stringify(e)} is not root-relative: use a path such as "/assets/icons/sprites/".`);
|
|
8
|
-
return /* @__PURE__ */ n(o, {
|
|
9
|
-
value: e,
|
|
10
|
-
children: /* @__PURE__ */ n(u, {
|
|
11
|
-
edition: t,
|
|
12
|
-
children: r
|
|
13
|
-
})
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
function l() {
|
|
17
|
-
return t(o);
|
|
18
|
-
}
|
|
19
|
-
function u({ edition: e, children: r }) {
|
|
20
|
-
let i = t(s);
|
|
21
|
-
return /* @__PURE__ */ n(s, {
|
|
22
|
-
value: e ?? i,
|
|
23
|
-
children: r
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
function d() {
|
|
27
|
-
return t(s);
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
|
-
export { d as n, l as r, c as t };
|
|
@@ -1,27 +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 { freeIcon as r } from "@nxgt/material-core/icons/free";
|
|
5
|
-
import { buildIconScene as i } from "@nxgt/material-core/backgrounds/icons";
|
|
6
|
-
//#region lib/backgrounds/background/partials/icons-scene.tsx
|
|
7
|
-
function a({ seed: a, iconsKey: o, styleKey: s, motifKey: c, spriteBase: l, edition: u, animated: d }) {
|
|
8
|
-
return /* @__PURE__ */ n(e, { node: t(() => i({
|
|
9
|
-
seed: a,
|
|
10
|
-
icons: JSON.parse(o) ?? void 0,
|
|
11
|
-
iconStyle: JSON.parse(s) ?? void 0,
|
|
12
|
-
iconMotif: JSON.parse(c),
|
|
13
|
-
spriteBase: l,
|
|
14
|
-
animated: d,
|
|
15
|
-
...u === "free" ? { mapIcon: r } : {}
|
|
16
|
-
}), [
|
|
17
|
-
a,
|
|
18
|
-
o,
|
|
19
|
-
s,
|
|
20
|
-
c,
|
|
21
|
-
l,
|
|
22
|
-
u,
|
|
23
|
-
d
|
|
24
|
-
]) });
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
export { a as default };
|