@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.
Files changed (82) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/README.md +6 -4
  3. package/bin/nxgt-backdrop-sprite.js +15 -0
  4. package/dist/background-BtSZsTvY.js +286 -0
  5. package/dist/backgrounds/css-react/icons-quiet.css +5 -5
  6. package/dist/backgrounds/css-react/icons-tint.css +98 -0
  7. package/dist/backgrounds/css-react/icons.css +100 -33
  8. package/dist/backgrounds.js +1 -1
  9. package/dist/{celestial-scene-DaOsRFF3.js → celestial-scene-8Muu6f7O.js} +1 -1
  10. package/dist/components/background-shared.css +5 -0
  11. package/dist/components/components.css +4 -7
  12. package/dist/components/ui/display/chip/chip-parts.css +17 -30
  13. package/dist/components/ui/fields/attributes/attributes.css +3 -0
  14. package/dist/components/ui/layout/app-shell/activity-backdrop-shapes.css +1 -1
  15. package/dist/components/ui/layout/auth-card/auth-card-backdrop.css +30 -0
  16. package/dist/{components-SJxc3fpp.js → components-B0oezhGe.js} +13966 -13937
  17. package/dist/components.js +16 -16
  18. package/dist/editor.js +1 -1
  19. package/dist/{empty-state-CJh9f2pc.js → empty-state-lj7vjYWG.js} +1 -1
  20. package/dist/icon-sprites-CaYXzOL4.js +46 -0
  21. package/dist/icons-scene-M4HBeN2c.js +54 -0
  22. package/dist/{illustration-BmQmvW_4.js → illustration-B4_W-OUS.js} +2 -2
  23. package/dist/illustrations.js +1 -1
  24. package/dist/lib/backgrounds/background/partials/icons-check.d.ts +2 -2
  25. package/dist/lib/backgrounds/background/partials/icons-keys.d.ts +21 -1
  26. package/dist/lib/backgrounds/background/partials/icons-scene.d.ts +15 -6
  27. package/dist/lib/backgrounds/background/partials/use-icons-scene.d.ts +13 -8
  28. package/dist/lib/backgrounds/background/types.d.ts +26 -12
  29. package/dist/lib/backgrounds/index.d.ts +1 -1
  30. package/dist/lib/components/ui/dates/date-field/use-typed-date.d.ts +2 -2
  31. package/dist/lib/components/ui/dates/picker-trigger/typed-day.d.ts +7 -2
  32. package/dist/lib/components/ui/display/chip/partials/chip-dismiss-button.d.ts +1 -1
  33. package/dist/lib/components/ui/layout/app-shell/keep-shapes-inside.d.ts +7 -2
  34. package/dist/lib/components/ui/layout/app-shell/shapes-clear-content.d.ts +10 -3
  35. package/dist/lib/components/ui/layout/app-shell/theme-backdrop.d.ts +3 -1
  36. package/dist/lib/components/ui/layout/app-shell/use-keep-shapes-inside.d.ts +3 -3
  37. package/dist/lib/components/ui/layout/app-shell/watch-content.d.ts +28 -8
  38. package/dist/lib/components/ui/layout/auth-card/auth-card-backdrop.d.ts +23 -0
  39. package/dist/lib/components/ui/layout/auth-card/auth-card.d.ts +15 -1
  40. package/dist/lib/components/ui/primitives/icon/icon-sprites.d.ts +40 -1
  41. package/dist/lib/themes/define-theme.d.ts +8 -0
  42. package/dist/lib/themes/index.d.ts +2 -1
  43. package/dist/lib/vite/index.d.ts +1 -1
  44. package/dist/main.js +28 -28
  45. package/dist/material.css +1 -1
  46. package/dist/pdf-reader.js +1 -1
  47. package/dist/{public-DWuBn4t_.js → public-DAF5SCWH.js} +1 -1
  48. package/dist/{scene-options-CCy3V7XS.js → scene-options-2zNF3ZkQ.js} +4 -2
  49. package/dist/theme-picker.js +3 -3
  50. package/dist/themes.js +9 -4
  51. package/dist/{use-chat-composer-BBFuKNqC.js → use-chat-composer-B0ze1cU9.js} +3 -3
  52. package/docs/components/data-display.md +1 -1
  53. package/docs/components/date-and-time.md +8 -4
  54. package/docs/components/navigation-and-layout.md +22 -0
  55. package/docs/components/primitives.md +21 -0
  56. package/docs/guides/app-shell.md +9 -8
  57. package/docs/guides/backgrounds.md +214 -16
  58. package/docs/guides/icon-motifs.md +30 -12
  59. package/docs/guides/themes.md +25 -4
  60. package/docs/guides/theming.md +7 -0
  61. package/docs/guides/vite-plugin.md +26 -0
  62. package/docs/previews/backgrounds-background-from-theme.webp +0 -0
  63. package/docs/previews/backgrounds-icons.webp +0 -0
  64. package/docs/previews/backgrounds-matrix.webp +0 -0
  65. package/docs/previews/date-time-datefield.webp +0 -0
  66. package/docs/previews/date-time-daterangefield.webp +0 -0
  67. package/docs/previews/foundations-themes-icon-motifs.webp +0 -0
  68. package/docs/roadmap.md +6 -0
  69. package/docs/troubleshooting.md +80 -4
  70. package/lib/backgrounds/css-react/icons-quiet.css +5 -5
  71. package/lib/backgrounds/css-react/icons-tint.css +98 -0
  72. package/lib/backgrounds/css-react/icons.css +100 -33
  73. package/lib/components/background-shared.css +5 -0
  74. package/lib/components/components.css +4 -7
  75. package/lib/components/ui/display/chip/chip-parts.css +17 -30
  76. package/lib/components/ui/fields/attributes/attributes.css +3 -0
  77. package/lib/components/ui/layout/app-shell/activity-backdrop-shapes.css +1 -1
  78. package/lib/components/ui/layout/auth-card/auth-card-backdrop.css +30 -0
  79. package/package.json +8 -3
  80. package/dist/background-Ce7M5V42.js +0 -250
  81. package/dist/icon-sprites-FxHyqyhg.js +0 -30
  82. 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 };