@nxgt/material 3.10.2 → 3.11.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 (107) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/README.md +4 -4
  3. package/dist/{async-slice-DDjaJY_F.js → async-slice-4qbER86I.js} +1 -1
  4. package/dist/button-BNjw-pnE.js +327 -0
  5. package/dist/button-group-context-CaP0X5p_.js +5 -0
  6. package/dist/{button-tones-BgZJ1tkD.js → button-tones-BwuVvAmd.js} +9 -1
  7. package/dist/{callout-view-DdJPdFrP.js → callout-view-C6voDS00.js} +1 -1
  8. package/dist/charts.js +5 -5
  9. package/dist/{chip-DpySRqCy.js → chip-DLgQTJBZ.js} +4 -4
  10. package/dist/{code-editor-BiA14xua.js → code-editor-BZbaYLvo.js} +8 -8
  11. package/dist/code-editor.js +7 -7
  12. package/dist/{code-language-items-C_dJ6GVs.js → code-language-items-BT5BO5w6.js} +2 -2
  13. package/dist/components/base.css +21 -6
  14. package/dist/components/components.css +5 -2
  15. package/dist/components/type-scale.css +194 -0
  16. package/dist/components/ui/actions/button/button.css +156 -0
  17. package/dist/components/ui/actions/button-group/button-group-standard.css +131 -0
  18. package/dist/components/ui/actions/button-group/button-group.css +4 -1
  19. package/dist/components/ui/actions/icon-button/icon-button.css +115 -0
  20. package/dist/components/ui/actions/morph-fill.css +62 -0
  21. package/dist/{components-BkF9N-Yx.js → components-1GK7YIhY.js} +14685 -14688
  22. package/dist/components.js +23 -23
  23. package/dist/{dialog-CkIYpJXk.js → dialog-BQp5IdFl.js} +147 -147
  24. package/dist/dnd.js +1 -1
  25. package/dist/{dropdown-menu-BC5Tbhb9.js → dropdown-menu-BsH9W_3C.js} +3 -3
  26. package/dist/editor-viewer.js +1 -1
  27. package/dist/editor.js +13 -13
  28. package/dist/{empty-state-SeAg2TOX.js → empty-state-WaU4-T2c.js} +5 -5
  29. package/dist/escape-owner-C4W_sOAU.js +116 -0
  30. package/dist/{field-blur-DPLsMufs.js → field-blur-CJHzVSh9.js} +1 -1
  31. package/dist/{field-blur-context-1ZwJgsHE.js → field-blur-context-Cft9s7Hg.js} +2 -2
  32. package/dist/{hover-card-Cox-tPDz.js → hover-card-C0fw2kLK.js} +72 -71
  33. package/dist/i18n.js +12 -12
  34. package/dist/{icon-badge-q3Ve8gra.js → icon-badge-DUAq9f7H.js} +4 -4
  35. package/dist/icon-button-ifTpXt0A.js +355 -0
  36. package/dist/{illustration-BfHRpVzM.js → illustration-BmQmvW_4.js} +1 -1
  37. package/dist/illustrations.js +2 -2
  38. package/dist/lib/components/ui/actions/button/button-tones.d.ts +16 -0
  39. package/dist/lib/components/ui/actions/button/button.d.ts +13 -0
  40. package/dist/lib/components/ui/actions/button/button.variants.d.ts +4 -3
  41. package/dist/lib/components/ui/actions/button-group/button-group-context.d.ts +16 -0
  42. package/dist/lib/components/ui/actions/button-group/button-group-reset.d.ts +13 -0
  43. package/dist/lib/components/ui/actions/button-group/button-group.d.ts +19 -2
  44. package/dist/lib/components/ui/actions/icon-button/icon-button-shape.d.ts +3 -2
  45. package/dist/lib/components/ui/actions/icon-button/icon-button.d.ts +18 -4
  46. package/dist/lib/components/ui/actions/icon-button/icon-button.variants.d.ts +34 -4
  47. package/dist/lib/components/ui/feedback/typing-indicator/typing-indicator.d.ts +1 -1
  48. package/dist/lib/components/ui/fields/slider/split-slider-props.d.ts +1 -1
  49. package/dist/lib/components/ui/fields/slider/use-slider-control.d.ts +1 -1
  50. package/dist/lib/components/ui/overlays/dialog/dialog-variants.d.ts +1 -1
  51. package/dist/lib/components/ui/primitives/toggle/toggle.d.ts +1 -1
  52. package/dist/lib/components/ui/primitives/typography/typography.d.ts +17 -7
  53. package/dist/lib/components/ui/primitives/typography/typography.variants.d.ts +55 -0
  54. package/dist/lib/components/ui/selection/choice-group/use-choice-group-field.d.ts +2 -2
  55. package/dist/lib/i18n/translator.d.ts +1 -1
  56. package/dist/lib.js +2 -2
  57. package/dist/{line-path-BQeLQZ-P.js → line-path-C5pZGC49.js} +1 -1
  58. package/dist/main.js +29 -29
  59. package/dist/map.js +9 -9
  60. package/dist/material.css +1 -1
  61. package/dist/pdf-reader.js +1 -1
  62. package/dist/print.js +1 -1
  63. package/dist/{public-CtpsxV4I.js → public-B0Nq_yYV.js} +524 -524
  64. package/dist/{render-json-DyFYFIkZ.js → render-json-BOhvPnSv.js} +1 -1
  65. package/dist/{rich-code-block-C2Fp_FDU.js → rich-code-block-v7WmeZp9.js} +5 -5
  66. package/dist/{rich-text-viewer-LO1IZCWs.js → rich-text-viewer-W15XIwah.js} +2 -2
  67. package/dist/{skeleton-Bmp4gWAH.js → skeleton-DSdtr2qc.js} +1 -1
  68. package/dist/{sortable-provider-pVaEZzty.js → sortable-provider-CgDTolQR.js} +3 -3
  69. package/dist/{spinner-CsHcmcpF.js → spinner-BtSIYVrC.js} +3 -3
  70. package/dist/{state-scenes-SGNyZjTz.js → state-scenes-BX03WmSu.js} +1 -1
  71. package/dist/styles.css +2 -0
  72. package/dist/theme-picker.js +3 -3
  73. package/dist/{theme-toggle-oU-fh6WE.js → theme-toggle-B2Pehdhn.js} +2 -2
  74. package/dist/{toggle-group-j8zaxEg1.js → toggle-group-BMJNcFAC.js} +1 -1
  75. package/dist/{toolbar-items-CqHvlTU8.js → toolbar-items-rUHdVqAq.js} +399 -398
  76. package/dist/{tooltip-rhbqNmr3.js → tooltip-CkttDIab.js} +1 -1
  77. package/dist/{translate-material-CGZljjp1.js → translate-material-Bd_KgfB8.js} +1 -1
  78. package/dist/{translator-DCYO4Ij3.js → translator-Dje8HrNz.js} +5 -5
  79. package/dist/{use-chat-composer-nWWfVyrK.js → use-chat-composer-Bt2ULsv6.js} +4172 -4172
  80. package/dist/{use-material-translation-DkxcLbLM.js → use-material-translation-B3V_bz-5.js} +1 -1
  81. package/dist/{utils-Bcd2Z3ea.js → utils-BLfntITJ.js} +14 -1
  82. package/docs/components/buttons-and-actions.md +64 -15
  83. package/docs/components/navigation-and-layout.md +1 -1
  84. package/docs/components/primitives.md +52 -10
  85. package/docs/guides/theming.md +51 -0
  86. package/docs/previews/buttons-actions-button.webp +0 -0
  87. package/docs/previews/buttons-actions-iconbutton.webp +0 -0
  88. package/docs/previews/primitives-typography.webp +0 -0
  89. package/docs/roadmap.md +35 -4
  90. package/docs/troubleshooting.md +58 -2
  91. package/lib/components/base.css +21 -6
  92. package/lib/components/components.css +5 -2
  93. package/lib/components/type-scale.css +194 -0
  94. package/lib/components/ui/actions/button/button.css +156 -0
  95. package/lib/components/ui/actions/button-group/button-group-standard.css +131 -0
  96. package/lib/components/ui/actions/button-group/button-group.css +4 -1
  97. package/lib/components/ui/actions/icon-button/icon-button.css +115 -0
  98. package/lib/components/ui/actions/morph-fill.css +62 -0
  99. package/lib/styles.css +2 -0
  100. package/package.json +1 -1
  101. package/dist/button-DbfdITBB.js +0 -322
  102. package/dist/components/ui/actions/icon-button/icon-button-morph-media.css +0 -65
  103. package/dist/components/ui/actions/icon-button/icon-button-morph.css +0 -152
  104. package/dist/escape-owner-CripBce_.js +0 -57
  105. package/dist/icon-button-DJcWpIhu.js +0 -319
  106. package/lib/components/ui/actions/icon-button/icon-button-morph-media.css +0 -65
  107. package/lib/components/ui/actions/icon-button/icon-button-morph.css +0 -152
@@ -1,28 +1,28 @@
1
- import { t as e } from "./utils-Bcd2Z3ea.js";
1
+ import { t as e } from "./utils-BLfntITJ.js";
2
2
  import { o as t, r as n } from "./dist-DVRQkaTK.js";
3
3
  import { a as r, c as i, i as a, l as o, o as s, r as c, s as l } from "./dist-lmHmz_bu.js";
4
- import { S as u, b as d, o as f, x as p } from "./tooltip-rhbqNmr3.js";
4
+ import { S as u, b as d, o as f, x as p } from "./tooltip-CkttDIab.js";
5
5
  import { c as m, i as h, l as g, o as ee, r as _, s as te, t as ne } from "./in-dialog-Vwkyp-M5.js";
6
- import { t as v } from "./use-material-translation-DkxcLbLM.js";
7
- import { n as re } from "./icon-button-DJcWpIhu.js";
8
- import { r as ie } from "./escape-owner-CripBce_.js";
9
- import { X as ae } from "lucide-react";
10
- import * as y from "react";
11
- import { useCallback as oe, useContext as se, useRef as b } from "react";
12
- import { Fragment as ce, jsx as x, jsxs as le } from "react/jsx-runtime";
13
- import { forwardEscape as ue, keepListEscape as de } from "@nxgt/material-core/escape-forward";
6
+ import { t as re } from "./use-material-translation-B3V_bz-5.js";
7
+ import { n as ie } from "./icon-button-ifTpXt0A.js";
8
+ import { o as ae, r as oe } from "./escape-owner-C4W_sOAU.js";
9
+ import { X as se } from "lucide-react";
10
+ import * as v from "react";
11
+ import { useCallback as ce, useContext as le, useRef as y } from "react";
12
+ import { Fragment as ue, jsx as b, jsxs as de } from "react/jsx-runtime";
13
+ import { forwardEscape as fe, keepListEscape as pe } from "@nxgt/material-core/escape-forward";
14
14
  //#region ../../node_modules/@radix-ui/react-dialog/dist/index.mjs
15
- var fe = Object.defineProperty, S = (e, t) => fe(e, "name", {
15
+ var me = Object.defineProperty, x = (e, t) => me(e, "name", {
16
16
  value: t,
17
17
  configurable: !0
18
- }), C = "Dialog", [w, pe] = i(C), [me, T] = w(C), E = /* @__PURE__ */ S((e) => {
19
- let { __scopeDialog: t, children: n, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = e, l = y.useRef(null), u = y.useRef(null), [d, f] = r({
18
+ }), S = "Dialog", [C, he] = i(S), [ge, w] = C(S), T = /* @__PURE__ */ x((e) => {
19
+ let { __scopeDialog: t, children: n, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = e, l = v.useRef(null), u = v.useRef(null), [d, f] = r({
20
20
  prop: i,
21
21
  defaultProp: a ?? !1,
22
22
  onChange: o,
23
- caller: C
24
- }), [p, m] = y.useState(0), [h, g] = y.useState(0);
25
- return /* @__PURE__ */ x(me, {
23
+ caller: S
24
+ }), [p, m] = v.useState(0), [h, g] = v.useState(0);
25
+ return /* @__PURE__ */ b(ge, {
26
26
  scope: t,
27
27
  triggerRef: l,
28
28
  contentRef: u,
@@ -35,53 +35,53 @@ var fe = Object.defineProperty, S = (e, t) => fe(e, "name", {
35
35
  setDescriptionCount: g,
36
36
  open: d,
37
37
  onOpenChange: f,
38
- onOpenToggle: y.useCallback(() => f((e) => !e), [f]),
38
+ onOpenToggle: v.useCallback(() => f((e) => !e), [f]),
39
39
  modal: s,
40
40
  children: n
41
41
  });
42
- }, "Dialog"), he = "DialogTrigger", D = /* @__PURE__ */ y.forwardRef(/* @__PURE__ */ S(function(e, n) {
43
- let { __scopeDialog: r, ...i } = e, a = T(he, r), s = t(n, a.triggerRef);
44
- return /* @__PURE__ */ x(o.button, {
42
+ }, "Dialog"), _e = "DialogTrigger", E = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, n) {
43
+ let { __scopeDialog: r, ...i } = e, a = w(_e, r), s = t(n, a.triggerRef);
44
+ return /* @__PURE__ */ b(o.button, {
45
45
  type: "button",
46
46
  "aria-haspopup": "dialog",
47
47
  "aria-expanded": a.open,
48
48
  "aria-controls": a.open ? a.contentId : void 0,
49
- "data-state": z(a.open),
49
+ "data-state": R(a.open),
50
50
  ...i,
51
51
  ref: s,
52
52
  onClick: l(e.onClick, a.onOpenToggle)
53
53
  });
54
- }, "DialogTrigger")), O = "DialogPortal", [ge, k] = w(O, { forceMount: void 0 }), A = /* @__PURE__ */ S((e) => {
55
- let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, o = T(O, t);
56
- return /* @__PURE__ */ x(ge, {
54
+ }, "DialogTrigger")), D = "DialogPortal", [ve, O] = C(D, { forceMount: void 0 }), k = /* @__PURE__ */ x((e) => {
55
+ let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, o = w(D, t);
56
+ return /* @__PURE__ */ b(ve, {
57
57
  scope: t,
58
58
  forceMount: n,
59
- children: y.Children.map(r, (e) => /* @__PURE__ */ x(a, {
59
+ children: v.Children.map(r, (e) => /* @__PURE__ */ b(a, {
60
60
  present: n || o.open,
61
- children: /* @__PURE__ */ x(d, {
61
+ children: /* @__PURE__ */ b(d, {
62
62
  asChild: !0,
63
63
  container: i,
64
64
  children: e
65
65
  })
66
66
  }))
67
67
  });
68
- }, "DialogPortal"), j = "DialogOverlay", M = /* @__PURE__ */ y.forwardRef(/* @__PURE__ */ S(function(e, t) {
69
- let n = k(j, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, o = T(j, e.__scopeDialog);
70
- return o.modal ? /* @__PURE__ */ x(a, {
68
+ }, "DialogPortal"), A = "DialogOverlay", j = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, t) {
69
+ let n = O(A, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, o = w(A, e.__scopeDialog);
70
+ return o.modal ? /* @__PURE__ */ b(a, {
71
71
  present: r || o.open,
72
- children: /* @__PURE__ */ x(ve, {
72
+ children: /* @__PURE__ */ b(be, {
73
73
  ...i,
74
74
  ref: t
75
75
  })
76
76
  }) : null;
77
- }, "DialogOverlay")), _e = n("DialogOverlay.RemoveScroll"), ve = /* @__PURE__ */ y.forwardRef(/* @__PURE__ */ S(function(e, n) {
78
- let { __scopeDialog: r, ...i } = e, a = T(j, r), s = t(n, u());
79
- return /* @__PURE__ */ x(te, {
80
- as: _e,
77
+ }, "DialogOverlay")), ye = n("DialogOverlay.RemoveScroll"), be = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, n) {
78
+ let { __scopeDialog: r, ...i } = e, a = w(A, r), s = t(n, u());
79
+ return /* @__PURE__ */ b(te, {
80
+ as: ye,
81
81
  allowPinchZoom: !0,
82
82
  shards: [a.contentRef],
83
- children: /* @__PURE__ */ x(o.div, {
84
- "data-state": z(a.open),
83
+ children: /* @__PURE__ */ b(o.div, {
84
+ "data-state": R(a.open),
85
85
  ...i,
86
86
  ref: s,
87
87
  style: {
@@ -90,24 +90,24 @@ var fe = Object.defineProperty, S = (e, t) => fe(e, "name", {
90
90
  }
91
91
  })
92
92
  });
93
- }, "DialogOverlayImpl")), N = "DialogContent", P = /* @__PURE__ */ y.forwardRef(/* @__PURE__ */ S(function(e, t) {
94
- let n = k(N, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, o = T(N, e.__scopeDialog);
95
- return /* @__PURE__ */ x(a, {
93
+ }, "DialogOverlayImpl")), M = "DialogContent", N = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, t) {
94
+ let n = O(M, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, o = w(M, e.__scopeDialog);
95
+ return /* @__PURE__ */ b(a, {
96
96
  present: r || o.open,
97
- children: o.modal ? /* @__PURE__ */ x(ye, {
97
+ children: o.modal ? /* @__PURE__ */ b(xe, {
98
98
  ...i,
99
99
  ref: t
100
- }) : /* @__PURE__ */ x(be, {
100
+ }) : /* @__PURE__ */ b(Se, {
101
101
  ...i,
102
102
  ref: t
103
103
  })
104
104
  });
105
- }, "DialogContent")), ye = /* @__PURE__ */ y.forwardRef(/* @__PURE__ */ S(function(e, n) {
106
- let r = T(N, e.__scopeDialog), i = y.useRef(null), a = t(n, r.contentRef, i);
107
- return y.useEffect(() => {
105
+ }, "DialogContent")), xe = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, n) {
106
+ let r = w(M, e.__scopeDialog), i = v.useRef(null), a = t(n, r.contentRef, i);
107
+ return v.useEffect(() => {
108
108
  let e = i.current;
109
109
  if (e) return ee(e);
110
- }, []), /* @__PURE__ */ x(F, {
110
+ }, []), /* @__PURE__ */ b(P, {
111
111
  ...e,
112
112
  ref: a,
113
113
  trapFocus: r.open,
@@ -121,9 +121,9 @@ var fe = Object.defineProperty, S = (e, t) => fe(e, "name", {
121
121
  }),
122
122
  onFocusOutside: l(e.onFocusOutside, (e) => e.preventDefault())
123
123
  });
124
- }, "DialogContentModal")), be = /* @__PURE__ */ y.forwardRef(/* @__PURE__ */ S(function(e, t) {
125
- let n = T(N, e.__scopeDialog), r = y.useRef(!1), i = y.useRef(!1);
126
- return /* @__PURE__ */ x(F, {
124
+ }, "DialogContentModal")), Se = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, t) {
125
+ let n = w(M, e.__scopeDialog), r = v.useRef(!1), i = v.useRef(!1);
126
+ return /* @__PURE__ */ b(P, {
127
127
  ...e,
128
128
  ref: t,
129
129
  trapFocus: !1,
@@ -137,69 +137,69 @@ var fe = Object.defineProperty, S = (e, t) => fe(e, "name", {
137
137
  n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
138
138
  }
139
139
  });
140
- }, "DialogContentNonModal")), F = /* @__PURE__ */ y.forwardRef(/* @__PURE__ */ S(function(e, t) {
141
- let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...o } = e, s = T(N, n);
142
- return m(), /* @__PURE__ */ x(ce, { children: /* @__PURE__ */ x(g, {
140
+ }, "DialogContentNonModal")), P = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, t) {
141
+ let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...o } = e, s = w(M, n);
142
+ return m(), /* @__PURE__ */ b(ue, { children: /* @__PURE__ */ b(g, {
143
143
  asChild: !0,
144
144
  loop: !0,
145
145
  trapped: r,
146
146
  onMountAutoFocus: i,
147
147
  onUnmountAutoFocus: a,
148
- children: /* @__PURE__ */ x(p, {
148
+ children: /* @__PURE__ */ b(p, {
149
149
  role: "dialog",
150
150
  id: s.contentId,
151
151
  "aria-describedby": s.descriptionPresent ? s.descriptionId : void 0,
152
152
  "aria-labelledby": s.titlePresent ? s.titleId : void 0,
153
- "data-state": z(s.open),
153
+ "data-state": R(s.open),
154
154
  ...o,
155
155
  ref: t,
156
156
  deferPointerDownOutside: !0,
157
157
  onDismiss: () => s.onOpenChange(!1)
158
158
  })
159
159
  }) });
160
- }, "DialogContentImpl")), xe = "DialogTitle", I = /* @__PURE__ */ y.forwardRef(/* @__PURE__ */ S(function(e, t) {
161
- let { __scopeDialog: n, ...r } = e, i = T(xe, n), { setTitleCount: a } = i;
162
- return s(() => (a((e) => e + 1), () => a((e) => e - 1)), [a]), /* @__PURE__ */ x(o.h2, {
160
+ }, "DialogContentImpl")), Ce = "DialogTitle", F = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, t) {
161
+ let { __scopeDialog: n, ...r } = e, i = w(Ce, n), { setTitleCount: a } = i;
162
+ return s(() => (a((e) => e + 1), () => a((e) => e - 1)), [a]), /* @__PURE__ */ b(o.h2, {
163
163
  id: i.titleId,
164
164
  ...r,
165
165
  ref: t
166
166
  });
167
- }, "DialogTitle")), Se = "DialogDescription", L = /* @__PURE__ */ y.forwardRef(/* @__PURE__ */ S(function(e, t) {
168
- let { __scopeDialog: n, ...r } = e, i = T(Se, n), { setDescriptionCount: a } = i;
169
- return s(() => (a((e) => e + 1), () => a((e) => e - 1)), [a]), /* @__PURE__ */ x(o.p, {
167
+ }, "DialogTitle")), we = "DialogDescription", I = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, t) {
168
+ let { __scopeDialog: n, ...r } = e, i = w(we, n), { setDescriptionCount: a } = i;
169
+ return s(() => (a((e) => e + 1), () => a((e) => e - 1)), [a]), /* @__PURE__ */ b(o.p, {
170
170
  id: i.descriptionId,
171
171
  ...r,
172
172
  ref: t
173
173
  });
174
- }, "DialogDescription")), Ce = "DialogClose", R = /* @__PURE__ */ y.forwardRef(/* @__PURE__ */ S(function(e, t) {
175
- let { __scopeDialog: n, ...r } = e, i = T(Ce, n);
176
- return /* @__PURE__ */ x(o.button, {
174
+ }, "DialogDescription")), Te = "DialogClose", L = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ x(function(e, t) {
175
+ let { __scopeDialog: n, ...r } = e, i = w(Te, n);
176
+ return /* @__PURE__ */ b(o.button, {
177
177
  type: "button",
178
178
  ...r,
179
179
  ref: t,
180
180
  onClick: l(e.onClick, () => i.onOpenChange(!1))
181
181
  });
182
182
  }, "DialogClose"));
183
- function z(e) {
183
+ function R(e) {
184
184
  return e ? "open" : "closed";
185
185
  }
186
- S(z, "getState");
186
+ x(R, "getState");
187
187
  //#endregion
188
188
  //#region lib/components/ui/primitives/field-box/field-box.ts
189
- var B = "nxgt-field-box", we = "nxgt-field-list", V = (e) => e ? "" : void 0;
190
- function Te(e) {
189
+ var z = "nxgt-field-box", Ee = "nxgt-field-list", B = (e) => e ? "" : void 0;
190
+ function De(e) {
191
191
  return {
192
192
  "data-size": e.size,
193
- "data-filled": V(e.filled),
194
- "data-open": V(e.list?.open),
193
+ "data-filled": B(e.filled),
194
+ "data-open": B(e.list?.open),
195
195
  "data-list-side": e.list?.open ? e.list.side : void 0,
196
- "data-focused": V(e.focused),
197
- "data-invalid": V(e.invalid),
198
- "data-disabled": V(e.disabled),
199
- "data-readonly": V(e.readOnly)
196
+ "data-focused": B(e.focused),
197
+ "data-invalid": B(e.invalid),
198
+ "data-disabled": B(e.disabled),
199
+ "data-readonly": B(e.readOnly)
200
200
  };
201
201
  }
202
- var Ee = /* @__PURE__ */ new Set([
202
+ var Oe = /* @__PURE__ */ new Set([
203
203
  "checkbox",
204
204
  "radio",
205
205
  "file",
@@ -211,26 +211,26 @@ var Ee = /* @__PURE__ */ new Set([
211
211
  "reset",
212
212
  "image"
213
213
  ]);
214
- function H(e, t = "text") {
215
- return e || (Ee.has(t) ? void 0 : " ");
214
+ function V(e, t = "text") {
215
+ return e || (Oe.has(t) ? void 0 : " ");
216
216
  }
217
217
  //#endregion
218
218
  //#region lib/components/ui/overlays/dialog/use-escape-forward.ts
219
- function De(e, n) {
220
- let r = b(null);
219
+ function ke(e, n) {
220
+ let r = y(null);
221
221
  return {
222
222
  ref: t(r, n),
223
223
  onEscapeKeyDown(t) {
224
- de(t), ie(t, r.current), e?.(t), ue(r.current, t);
224
+ pe(t), oe(t, r.current), e?.(t), fe(r.current, t);
225
225
  }
226
226
  };
227
227
  }
228
228
  //#endregion
229
229
  //#region lib/components/ui/overlays/dialog/use-overlay-order.ts
230
- function Oe(e) {
231
- let n = b(null);
230
+ function Ae(e) {
231
+ let n = y(null);
232
232
  return {
233
- overlayRef: oe((e) => {
233
+ overlayRef: ce((e) => {
234
234
  let t = n.current;
235
235
  !e || !t?.isConnected || t.parentNode === e.parentNode && t.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_FOLLOWING && t.before(e);
236
236
  }, []),
@@ -239,20 +239,20 @@ function Oe(e) {
239
239
  }
240
240
  //#endregion
241
241
  //#region lib/components/ui/overlays/dialog/use-modal-content.ts
242
- function U({ ref: e, onEscapeKeyDown: t, ...n }, r) {
243
- let i = se(_) ?? !0, a = De(t, h(r ?? i, e)), o = Oe(a.ref);
242
+ function H({ ref: e, onEscapeKeyDown: t, ...n }, r) {
243
+ let i = le(_) ?? !0, a = ke(t, h(r ?? i, e)), o = Ae(a.ref);
244
244
  return {
245
245
  ref: o.contentRef,
246
246
  overlayRef: o.overlayRef,
247
247
  onEscapeKeyDown: a.onEscapeKeyDown,
248
248
  outside: {
249
- onPointerDownOutside: W(n.onPointerDownOutside),
250
- onFocusOutside: W(n.onFocusOutside),
251
- onInteractOutside: W(n.onInteractOutside)
249
+ onPointerDownOutside: U(n.onPointerDownOutside),
250
+ onFocusOutside: U(n.onFocusOutside),
251
+ onInteractOutside: U(n.onInteractOutside)
252
252
  }
253
253
  };
254
254
  }
255
- function W(e) {
255
+ function U(e) {
256
256
  return (t) => {
257
257
  e?.(t);
258
258
  let n = t.target;
@@ -261,33 +261,33 @@ function W(e) {
261
261
  }
262
262
  //#endregion
263
263
  //#region lib/components/ui/overlays/dialog/menu-trigger.ts
264
- var G = "[role=\"menu\"]", ke = 8;
265
- function Ae(e) {
266
- let t = null, n = e?.closest(G) ?? null;
267
- for (let e = 0; n && e < ke; e++) {
264
+ var W = "[role=\"menu\"]", je = 8;
265
+ function Me(e) {
266
+ let t = null, n = e?.closest(W) ?? null;
267
+ for (let e = 0; n && e < je; e++) {
268
268
  let e = n.getAttribute("data-return-focus"), r = e ? n.ownerDocument.getElementById(e) : null;
269
269
  if (r) return r;
270
270
  let [i] = (n.getAttribute("aria-labelledby") ?? "").split(/\s+/), a = i ? n.ownerDocument.getElementById(i) : null;
271
271
  if (!a) break;
272
- t = a, n = a.closest(G);
272
+ t = a, n = a.closest(W);
273
273
  }
274
274
  return t;
275
275
  }
276
276
  //#endregion
277
277
  //#region lib/components/ui/overlays/dialog/use-return-focus.ts
278
- var je = "button:not([disabled]), input:not([disabled]):not([type=\"hidden\"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"]), [contenteditable=\"true\"]";
279
- function Me(e) {
280
- ([...e.querySelectorAll(je)].find((e) => e.tabIndex >= 0 && e.getClientRects().length > 0) ?? e).focus({ preventScroll: !0 });
278
+ var Ne = "button:not([disabled]), input:not([disabled]):not([type=\"hidden\"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"]), [contenteditable=\"true\"]";
279
+ function Pe(e) {
280
+ ([...e.querySelectorAll(Ne)].find((e) => e.tabIndex >= 0 && e.getClientRects().length > 0) ?? e).focus({ preventScroll: !0 });
281
281
  }
282
- function K(e, { focusFallback: t = !1 } = {}) {
283
- let n = b(null), r = b(null);
282
+ function G(e, { focusFallback: t = !1 } = {}) {
283
+ let n = y(null), r = y(null);
284
284
  return {
285
285
  onOpenAutoFocus(i) {
286
286
  let a = document.activeElement;
287
- n.current = a instanceof HTMLElement && a !== document.body ? a : null, r.current = Ae(n.current), e.onOpenAutoFocus?.(i);
287
+ n.current = a instanceof HTMLElement && a !== document.body ? a : null, r.current = Me(n.current), e.onOpenAutoFocus?.(i);
288
288
  let o = i.target;
289
289
  !t || i.defaultPrevented || !(o instanceof HTMLElement) || queueMicrotask(() => {
290
- o.isConnected && !o.contains(document.activeElement) && Me(o);
290
+ o.isConnected && !o.contains(document.activeElement) && Pe(o);
291
291
  });
292
292
  },
293
293
  onCloseAutoFocus(t) {
@@ -301,49 +301,49 @@ function K(e, { focusFallback: t = !1 } = {}) {
301
301
  }
302
302
  //#endregion
303
303
  //#region lib/components/ui/primitives/input/input-box.ts
304
- var Ne = "selection:bg-primary selection:text-primary-foreground", q = [
304
+ var Fe = "selection:bg-primary selection:text-primary-foreground", K = [
305
305
  "inline-flex gap-2 items-center h-11 max-h-full w-full min-w-0",
306
306
  "px-2 py-1 text-base md:text-sm outline-none",
307
307
  "placeholder:text-muted-foreground",
308
308
  "file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-muted-foreground",
309
309
  "disabled:pointer-events-none"
310
- ], J = [
311
- ...q,
312
- Ne,
313
- B
314
- ], Pe = [...q, B], Y = J;
315
- function Fe({ className: t, type: n = "text", ...r }) {
316
- return /* @__PURE__ */ x("input", {
310
+ ], q = [
311
+ ...K,
312
+ Fe,
313
+ z
314
+ ], Ie = [...K, z], J = q;
315
+ function Le({ className: t, type: n = "text", ...r }) {
316
+ return /* @__PURE__ */ b("input", {
317
317
  type: n,
318
318
  "data-slot": "input",
319
- className: e(Y, t),
319
+ className: e(J, t),
320
320
  "data-pw": r.name ?? "input",
321
321
  ...r,
322
- placeholder: H(r.placeholder, n)
322
+ placeholder: V(r.placeholder, n)
323
323
  });
324
324
  }
325
325
  //#endregion
326
326
  //#region lib/components/ui/overlays/dialog/dialog-outside.ts
327
- function Ie(e) {
327
+ function Re(e) {
328
328
  let t = e.target;
329
329
  t instanceof Element && t.closest("[data-slot=\"combobox-content\"]") && e.preventDefault();
330
330
  }
331
- function X(e) {
331
+ function Y(e) {
332
332
  return (t) => {
333
- Ie(t), e?.(t);
333
+ Re(t), e?.(t);
334
334
  };
335
335
  }
336
- function Z(e) {
336
+ function X(e) {
337
337
  return {
338
338
  ...e,
339
- onPointerDownOutside: X(e.onPointerDownOutside),
340
- onFocusOutside: X(e.onFocusOutside),
341
- onInteractOutside: X(e.onInteractOutside)
339
+ onPointerDownOutside: Y(e.onPointerDownOutside),
340
+ onFocusOutside: Y(e.onFocusOutside),
341
+ onInteractOutside: Y(e.onInteractOutside)
342
342
  };
343
343
  }
344
344
  //#endregion
345
345
  //#region lib/components/ui/overlays/dialog/dialog-variants.ts
346
- var Le = f("nxgt-dialog fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 p-6 max-h-[calc(100dvh-2rem)] supports-[not(height:100dvh)]:max-h-[calc(100vh-2rem)] overflow-y-auto", {
346
+ var ze = f("nxgt-dialog fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 p-6 max-h-[calc(100dvh-2rem)] supports-[not(height:100dvh)]:max-h-[calc(100vh-2rem)] overflow-y-auto", {
347
347
  variants: {
348
348
  size: {
349
349
  sm: "sm:max-w-sm",
@@ -365,29 +365,29 @@ var Le = f("nxgt-dialog fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(
365
365
  });
366
366
  //#endregion
367
367
  //#region lib/components/ui/overlays/dialog/dialog-parts.tsx
368
- function Re({ className: t, ...n }) {
369
- return /* @__PURE__ */ x("div", {
368
+ function Z({ className: t, ...n }) {
369
+ return /* @__PURE__ */ b("div", {
370
370
  "data-slot": "dialog-header",
371
371
  className: e("flex flex-col gap-2 text-center sm:text-left", t),
372
372
  ...n
373
373
  });
374
374
  }
375
- function ze({ className: t, ...n }) {
376
- return /* @__PURE__ */ x("div", {
375
+ function Be({ className: t, ...n }) {
376
+ return /* @__PURE__ */ b("div", {
377
377
  "data-slot": "dialog-footer",
378
378
  className: e("flex flex-col-reverse gap-2 pt-2 max-sm:*:w-full sm:flex-row sm:justify-end", t),
379
379
  ...n
380
380
  });
381
381
  }
382
- function Be({ className: t, ...n }) {
383
- return /* @__PURE__ */ x(I, {
382
+ function Ve({ className: t, ...n }) {
383
+ return /* @__PURE__ */ b(F, {
384
384
  "data-slot": "dialog-title",
385
385
  className: e("text-2xl/8 font-medium tracking-tight text-foreground", t),
386
386
  ...n
387
387
  });
388
388
  }
389
- function Ve({ className: t, ...n }) {
390
- return /* @__PURE__ */ x(L, {
389
+ function He({ className: t, ...n }) {
390
+ return /* @__PURE__ */ b(I, {
391
391
  "data-slot": "dialog-description",
392
392
  className: e("text-muted-foreground text-sm/6", t),
393
393
  ...n
@@ -395,75 +395,75 @@ function Ve({ className: t, ...n }) {
395
395
  }
396
396
  //#endregion
397
397
  //#region lib/components/ui/overlays/dialog/dialog.tsx
398
- function He({ ...e }) {
399
- return /* @__PURE__ */ x(_, {
398
+ function Ue({ ...e }) {
399
+ return /* @__PURE__ */ b(_, {
400
400
  value: e.modal ?? !0,
401
- children: /* @__PURE__ */ x(E, {
401
+ children: /* @__PURE__ */ b(T, {
402
402
  "data-slot": "dialog",
403
403
  ...e
404
404
  })
405
405
  });
406
406
  }
407
- function Ue({ asChild: e = !0, ...t }) {
408
- return /* @__PURE__ */ x(D, {
407
+ function We({ asChild: e = !0, ...t }) {
408
+ return /* @__PURE__ */ b(E, {
409
409
  "data-slot": "dialog-trigger",
410
410
  ...t,
411
411
  asChild: e
412
412
  });
413
413
  }
414
414
  function Q({ ...e }) {
415
- return /* @__PURE__ */ x(A, {
415
+ return /* @__PURE__ */ b(k, {
416
416
  "data-slot": "dialog-portal",
417
417
  ...e
418
418
  });
419
419
  }
420
- function We({ className: t, color: n, children: r, type: i = "button", variant: a = "ghost", ...o }) {
421
- let { t: s } = v();
422
- return /* @__PURE__ */ x(R, {
420
+ function Ge({ className: t, color: n, children: r, type: i = "button", variant: a = "ghost", ...o }) {
421
+ let { t: s } = re();
422
+ return /* @__PURE__ */ b(L, {
423
423
  "aria-label": r ? void 0 : s("material.buttons.close", "Close"),
424
424
  ...o,
425
425
  type: i,
426
- className: e("absolute top-4 right-4", re({
426
+ className: e("absolute top-4 right-4", ie({
427
427
  variant: a,
428
428
  color: n,
429
429
  className: t
430
430
  })),
431
431
  "data-slot": "dialog-close",
432
- children: r || /* @__PURE__ */ x(ae, { className: "size-4" })
432
+ children: r || /* @__PURE__ */ b(se, { className: "size-4" })
433
433
  });
434
434
  }
435
435
  function $({ className: t, scrim: n = "dim", ...r }) {
436
- return /* @__PURE__ */ x(M, {
436
+ return /* @__PURE__ */ b(j, {
437
437
  "data-slot": "dialog-overlay",
438
438
  "data-scrim": n,
439
439
  className: e("nxgt-scrim fixed inset-0 z-50", t),
440
440
  ...r
441
441
  });
442
442
  }
443
- function Ge({ className: t, children: n, onInteractOutside: r, onPointerDownOutside: i, onFocusOutside: a, onOpenAutoFocus: o, onCloseAutoFocus: s, onEscapeKeyDown: c, size: l, mobilePresentation: u, scrim: d, container: f, ref: p, ...m }) {
444
- let h = K({
443
+ function Ke({ className: t, children: n, onInteractOutside: r, onPointerDownOutside: i, onFocusOutside: a, onOpenAutoFocus: o, onCloseAutoFocus: s, onEscapeKeyDown: c, size: l, mobilePresentation: u, scrim: d, container: f, ref: p, ...m }) {
444
+ let h = G({
445
445
  onOpenAutoFocus: o,
446
446
  onCloseAutoFocus: s
447
- }), g = U(Z({
447
+ }), g = H(X({
448
448
  ref: p,
449
449
  onEscapeKeyDown: c,
450
450
  onInteractOutside: r,
451
451
  onPointerDownOutside: i,
452
452
  onFocusOutside: a
453
453
  }));
454
- return /* @__PURE__ */ x(ne, {
454
+ return /* @__PURE__ */ b(ae, { children: /* @__PURE__ */ b(ne, {
455
455
  value: !0,
456
- children: /* @__PURE__ */ le(Q, {
456
+ children: /* @__PURE__ */ de(Q, {
457
457
  "data-slot": "dialog-portal",
458
458
  container: f,
459
- children: [/* @__PURE__ */ x($, {
459
+ children: [/* @__PURE__ */ b($, {
460
460
  ref: g.overlayRef,
461
461
  scrim: d
462
- }), /* @__PURE__ */ x(P, {
462
+ }), /* @__PURE__ */ b(N, {
463
463
  ref: g.ref,
464
464
  "data-slot": "dialog-content",
465
465
  "data-presentation": u ?? void 0,
466
- className: e(Le({
466
+ className: e(ze({
467
467
  size: l,
468
468
  mobilePresentation: u
469
469
  }), t),
@@ -475,7 +475,7 @@ function Ge({ className: t, children: n, onInteractOutside: r, onPointerDownOuts
475
475
  children: n
476
476
  })]
477
477
  })
478
- });
478
+ }) });
479
479
  }
480
480
  //#endregion
481
- export { pe as A, R as C, A as D, M as E, I as O, E as S, L as T, U as _, Q as a, we as b, ze as c, Z as d, Fe as f, K as g, Pe as h, $ as i, D as k, Re as l, J as m, We as n, Ue as o, Y as p, Ge as r, Ve as s, He as t, Be as u, H as v, P as w, Te as x, B as y };
481
+ export { he as A, L as C, k as D, j as E, F as O, T as S, I as T, H as _, Q as a, Ee as b, Be as c, X as d, Le as f, G as g, Ie as h, $ as i, E as k, Z as l, q as m, Ge as n, We as o, J as p, Ke as r, He as s, Ue as t, Ve as u, V as v, N as w, De as x, z as y };
package/dist/dnd.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { t as e } from "./compose-refs-DZ0iIVF-.js";
2
- import { _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v } from "./sortable-provider-pVaEZzty.js";
2
+ import { _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v } from "./sortable-provider-CgDTolQR.js";
3
3
  export { r as CSS, u as DndOverlay, i as DndProvider, g as DragHandle, p as Draggable, n as DraggableDroppable, l as Droppable, f as Sortable, _ as SortableProvider, o as arrayMove, c as closestCenter, e as composeRefs, m as horizontalListSortingStrategy, h as insertIds, s as pointerWithin, t as rectIntersection, v as useDndActiveId, a as useDndItem, d as verticalListSortingStrategy };
@@ -1,10 +1,10 @@
1
- import { t as e } from "./utils-Bcd2Z3ea.js";
1
+ import { t as e } from "./utils-BLfntITJ.js";
2
2
  import { n as t, o as n, r } from "./dist-DVRQkaTK.js";
3
3
  import { a as i, c as a, i as o, l as s, n as c, r as l, s as u, u as d } from "./dist-lmHmz_bu.js";
4
- import { b as f, c as p, d as m, f as h, u as ee, x as te } from "./tooltip-rhbqNmr3.js";
4
+ import { b as f, c as p, d as m, f as h, u as ee, x as te } from "./tooltip-CkttDIab.js";
5
5
  import { a as g, i as _, n as ne, r as v, t as y } from "./dist-C4wtXCjf.js";
6
6
  import { a as re, c as ie, l as ae, o as oe, r as b, s as se, t as ce } from "./in-dialog-Vwkyp-M5.js";
7
- import { t as x } from "./spinner-CsHcmcpF.js";
7
+ import { t as x } from "./spinner-BtSIYVrC.js";
8
8
  import * as S from "react";
9
9
  import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
10
10
  //#region ../../node_modules/@radix-ui/react-menu/dist/index.mjs
@@ -1,2 +1,2 @@
1
- import { t as e } from "./rich-text-viewer-LO1IZCWs.js";
1
+ import { t as e } from "./rich-text-viewer-W15XIwah.js";
2
2
  export { e as RichTextViewer };