@nxgt/material 3.5.0 → 3.7.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 (83) hide show
  1. package/CHANGELOG.md +92 -0
  2. package/README.md +46 -1
  3. package/dist/components/components.css +2 -0
  4. package/dist/components/theme-tokens.css +84 -72
  5. package/dist/components/tones/tokens.css +5 -5
  6. package/dist/components/ui/display/chip/chip-hairline.css +1 -1
  7. package/dist/components/ui/layout/sidebar/sidebar-tokens.css +1 -1
  8. package/dist/components/ui/overlays/dialog/dialog.css +2 -2
  9. package/dist/components/ui/primitives/field-box/field-box-tokens.css +1 -1
  10. package/dist/components/ui/primitives/toggle-group/toggle-group-segmented.css +2 -2
  11. package/dist/components/ui/primitives/toggle-group/toggle-group-separate.css +1 -1
  12. package/dist/components/ui/widgets/drawing/drawing-animate.css +123 -0
  13. package/dist/components/ui/widgets/drawing/drawing.css +459 -0
  14. package/dist/{components-CXpL1zEs.js → components-BX4icy-g.js} +734 -734
  15. package/dist/components.js +16 -16
  16. package/dist/{dialog-JQT6iETD.js → dialog-DdJ1C4BR.js} +168 -168
  17. package/dist/dnd.js +1 -1
  18. package/dist/draw-animate.js +106 -0
  19. package/dist/draw-png.js +2 -0
  20. package/dist/draw-sketch.js +38 -0
  21. package/dist/draw.js +65 -0
  22. package/dist/drawing-B8VuG7nx.js +390 -0
  23. package/dist/drawing-context-CeKeZE6b.js +10 -0
  24. package/dist/editor.js +110 -110
  25. package/dist/{icon-badge-C30yKsAM.js → icon-badge-Bb5-73XP.js} +18 -18
  26. package/dist/{icon-button-BXlI3DJ_.js → icon-button-5A6Mrj6w.js} +60 -90
  27. package/dist/lib/components/ui/display/shape/use-shape-morph.d.ts +1 -0
  28. package/dist/lib/components/ui/widgets/drawing/drawing-a11y.d.ts +20 -0
  29. package/dist/lib/components/ui/widgets/drawing/drawing-context.d.ts +23 -0
  30. package/dist/lib/components/ui/widgets/drawing/drawing-types.d.ts +63 -0
  31. package/dist/lib/components/ui/widgets/drawing/drawing.d.ts +17 -0
  32. package/dist/lib/components/ui/widgets/drawing/index.d.ts +5 -0
  33. package/dist/lib/components/ui/widgets/drawing/partials/drawing-root.d.ts +17 -0
  34. package/dist/lib/components/ui/widgets/drawing/partials/interactive-node.d.ts +22 -0
  35. package/dist/lib/components/ui/widgets/drawing/partials/primitives/content.d.ts +20 -0
  36. package/dist/lib/components/ui/widgets/drawing/partials/primitives/path.d.ts +29 -0
  37. package/dist/lib/components/ui/widgets/drawing/partials/primitives/primitive.d.ts +19 -0
  38. package/dist/lib/components/ui/widgets/drawing/partials/primitives/shapes.d.ts +18 -0
  39. package/dist/lib/components/ui/widgets/drawing/partials/react-attrs.d.ts +5 -0
  40. package/dist/lib/components/ui/widgets/drawing/partials/ring.d.ts +9 -0
  41. package/dist/lib/components/ui/widgets/drawing/partials/svg-tree.d.ts +29 -0
  42. package/dist/lib/components/ui/widgets/drawing/use-exact-text.d.ts +16 -0
  43. package/dist/lib/draw/index.d.ts +32 -0
  44. package/dist/lib/draw-animate/index.d.ts +19 -0
  45. package/dist/lib/draw-animate/morph-drawing.d.ts +32 -0
  46. package/dist/lib/draw-animate/reduced-motion.d.ts +2 -0
  47. package/dist/lib/draw-animate/use-drawing-controls.d.ts +27 -0
  48. package/dist/lib/draw-animate/use-scene-morph.d.ts +15 -0
  49. package/dist/lib/draw-png/index.d.ts +11 -0
  50. package/dist/lib/draw-sketch/index.d.ts +17 -0
  51. package/dist/lib/draw-sketch/sketch.d.ts +19 -0
  52. package/dist/lib/print/components/print-drawing.d.ts +16 -0
  53. package/dist/lib/print/index.d.ts +2 -1
  54. package/dist/main.js +21 -21
  55. package/dist/map.js +63 -63
  56. package/dist/material.css +1 -1
  57. package/dist/pdf-reader.js +1 -1
  58. package/dist/print.js +123 -115
  59. package/dist/{public-Cde8_SN8.js → public-CBlV2XuA.js} +742 -742
  60. package/dist/{sortable-provider-DYlpq8lP.js → sortable-provider-BvD98s8Y.js} +19 -19
  61. package/dist/{use-chat-composer-BwpSgP_D.js → use-chat-composer-BhdPNmYm.js} +912 -911
  62. package/dist/use-shape-morph-BKA_R5P5.js +35 -0
  63. package/docs/README.md +1 -0
  64. package/docs/components/data-display.md +2 -2
  65. package/docs/components/rich-widgets.md +196 -0
  66. package/docs/guides/drawing.md +499 -0
  67. package/docs/guides/printing.md +47 -0
  68. package/docs/guides/theming.md +86 -43
  69. package/docs/previews/rich-widgets-drawing.webp +0 -0
  70. package/docs/roadmap.md +17 -0
  71. package/docs/troubleshooting.md +166 -2
  72. package/lib/components/components.css +2 -0
  73. package/lib/components/theme-tokens.css +84 -72
  74. package/lib/components/tones/tokens.css +5 -5
  75. package/lib/components/ui/display/chip/chip-hairline.css +1 -1
  76. package/lib/components/ui/layout/sidebar/sidebar-tokens.css +1 -1
  77. package/lib/components/ui/overlays/dialog/dialog.css +2 -2
  78. package/lib/components/ui/primitives/field-box/field-box-tokens.css +1 -1
  79. package/lib/components/ui/primitives/toggle-group/toggle-group-segmented.css +2 -2
  80. package/lib/components/ui/primitives/toggle-group/toggle-group-separate.css +1 -1
  81. package/lib/components/ui/widgets/drawing/drawing-animate.css +123 -0
  82. package/lib/components/ui/widgets/drawing/drawing.css +459 -0
  83. package/package.json +22 -2
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./utils-Bcd2Z3ea.js";
2
- import { t } from "./icon-button-BXlI3DJ_.js";
3
- import { P as n } from "./tooltip-tmFoTU_d.js";
4
- import { t as r } from "./use-material-translation-hLQzOjF0.js";
2
+ import { P as t } from "./tooltip-tmFoTU_d.js";
3
+ import { t as n } from "./use-material-translation-hLQzOjF0.js";
4
+ import { t as r } from "./icon-button-5A6Mrj6w.js";
5
5
  import { t as i } from "./compose-refs-DZ0iIVF-.js";
6
6
  import { GripVertical as a } from "lucide-react";
7
7
  import o, { cloneElement as s, createContext as c, forwardRef as l, memo as u, useCallback as d, useContext as f, useEffect as p, useLayoutEffect as m, useMemo as h, useReducer as g, useRef as _, useState as v } from "react";
@@ -2514,15 +2514,15 @@ function sr({ disabled: e = !1, children: t, sensors: n, collisionDetection: r =
2514
2514
  //#endregion
2515
2515
  //#region lib/components/ui/collections/dnd/drag-handle.tsx
2516
2516
  function cr({ label: i, asSlot: o = !1, className: s, onClick: c, ...l }) {
2517
- let { t: u } = r(), d = i ?? u("material.dnd.drag", "Drag"), f = ir(), p = f?.listeners, m = f?.attributes, h = f?.setActivatorNodeRef;
2518
- return o ? /* @__PURE__ */ y(n, {
2517
+ let { t: u } = n(), d = i ?? u("material.dnd.drag", "Drag"), f = ir(), p = f?.listeners, m = f?.attributes, h = f?.setActivatorNodeRef;
2518
+ return o ? /* @__PURE__ */ y(t, {
2519
2519
  ref: h,
2520
2520
  "data-slot": "drag-handle",
2521
2521
  className: e("cursor-pointer", s),
2522
2522
  ...m,
2523
2523
  ...p,
2524
2524
  ...l
2525
- }) : /* @__PURE__ */ y(t, {
2525
+ }) : /* @__PURE__ */ y(r, {
2526
2526
  ref: h,
2527
2527
  type: "button",
2528
2528
  variant: "ghost",
@@ -2541,9 +2541,9 @@ function cr({ label: i, asSlot: o = !1, className: s, onClick: c, ...l }) {
2541
2541
  }
2542
2542
  //#endregion
2543
2543
  //#region lib/components/ui/collections/dnd/draggable.tsx
2544
- function lr({ id: t, data: r, disabled: i, asSlot: a = !1, className: o, style: s, ...c }) {
2544
+ function lr({ id: n, data: r, disabled: i, asSlot: a = !1, className: o, style: s, ...c }) {
2545
2545
  let { attributes: l, listeners: u, setNodeRef: d, setActivatorNodeRef: f, transform: p, isDragging: m } = hn({
2546
- id: t,
2546
+ id: n,
2547
2547
  data: r,
2548
2548
  disabled: i
2549
2549
  });
@@ -2554,7 +2554,7 @@ function lr({ id: t, data: r, disabled: i, asSlot: a = !1, className: o, style:
2554
2554
  isDragging: m,
2555
2555
  setActivatorNodeRef: f
2556
2556
  },
2557
- children: /* @__PURE__ */ y(a ? n : "div", {
2557
+ children: /* @__PURE__ */ y(a ? t : "div", {
2558
2558
  ref: d,
2559
2559
  "data-slot": "draggable",
2560
2560
  "data-dragging": m || void 0,
@@ -2572,16 +2572,16 @@ function lr({ id: t, data: r, disabled: i, asSlot: a = !1, className: o, style:
2572
2572
  }
2573
2573
  //#endregion
2574
2574
  //#region lib/components/ui/collections/dnd/draggable-droppable.tsx
2575
- function ur({ id: t, data: r, disabled: a, asSlot: o = !1, className: s, style: c, ...l }) {
2575
+ function ur({ id: n, data: r, disabled: a, asSlot: o = !1, className: s, style: c, ...l }) {
2576
2576
  let u = hn({
2577
- id: t,
2577
+ id: n,
2578
2578
  data: r,
2579
2579
  disabled: a
2580
2580
  }), d = yn({
2581
- id: t,
2581
+ id: n,
2582
2582
  data: r,
2583
2583
  disabled: a
2584
- }), f = o ? n : "div";
2584
+ }), f = o ? t : "div";
2585
2585
  return /* @__PURE__ */ y(rr, {
2586
2586
  value: {
2587
2587
  attributes: u.attributes,
@@ -2608,13 +2608,13 @@ function ur({ id: t, data: r, disabled: a, asSlot: o = !1, className: s, style:
2608
2608
  }
2609
2609
  //#endregion
2610
2610
  //#region lib/components/ui/collections/dnd/droppable.tsx
2611
- function dr({ id: t, data: r, disabled: i, asSlot: a = !1, className: o, ...s }) {
2611
+ function dr({ id: n, data: r, disabled: i, asSlot: a = !1, className: o, ...s }) {
2612
2612
  let { setNodeRef: c, isOver: l } = yn({
2613
- id: t,
2613
+ id: n,
2614
2614
  data: r,
2615
2615
  disabled: i
2616
2616
  });
2617
- return /* @__PURE__ */ y(a ? n : "div", {
2617
+ return /* @__PURE__ */ y(a ? t : "div", {
2618
2618
  ref: c,
2619
2619
  "data-slot": "droppable",
2620
2620
  "data-over": l || void 0,
@@ -2636,12 +2636,12 @@ function fr(e, t, n, r) {
2636
2636
  }
2637
2637
  //#endregion
2638
2638
  //#region lib/components/ui/collections/dnd/sortable.tsx
2639
- function pr({ id: t, data: r, disabled: i, asSlot: a = !1, handleOnly: o = !1, className: s, style: c, ...l }) {
2639
+ function pr({ id: n, data: r, disabled: i, asSlot: a = !1, handleOnly: o = !1, className: s, style: c, ...l }) {
2640
2640
  let u = er({
2641
- id: t,
2641
+ id: n,
2642
2642
  data: r,
2643
2643
  disabled: i
2644
- }), d = a ? n : "div";
2644
+ }), d = a ? t : "div";
2645
2645
  return /* @__PURE__ */ y(rr, {
2646
2646
  value: {
2647
2647
  attributes: u.attributes,