@nxgt/material 3.7.5 → 3.8.1

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 (177) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +39 -6
  3. package/bin/nxgt-theme.js +6 -0
  4. package/dist/{async-slice-o_fpqeGX.js → async-slice-DDjaJY_F.js} +2 -2
  5. package/dist/background--Bf_EbFR.js +159 -0
  6. package/dist/backgrounds/backgrounds.css +2 -0
  7. package/dist/backgrounds/css-react/moon.css +97 -0
  8. package/dist/backgrounds.js +3 -139
  9. package/dist/browser-only-DQ94lWF8.js +18 -0
  10. package/dist/bubble-input-B7BVd9fX.js +237 -0
  11. package/dist/{button--cF4gY14.js → button-DbfdITBB.js} +51 -57
  12. package/dist/charts.js +3 -3
  13. package/dist/{chip-D1B1dL77.js → chip-DpySRqCy.js} +2 -2
  14. package/dist/{client-only.utils-lQ7GqP8w.js → client-only.utils-3nHNzCki.js} +1 -1
  15. package/dist/{code-editor-0CdGwKDg.js → code-editor-BiA14xua.js} +7 -7
  16. package/dist/code-editor.js +6 -6
  17. package/dist/{code-language-items-CGARRbVm.js → code-language-items-C_dJ6GVs.js} +2 -2
  18. package/dist/components/theme-tokens.css +34 -35
  19. package/dist/components/tones/app-tones.css +2 -1
  20. package/dist/components/tones/containers.css +4 -1
  21. package/dist/components/tones/index.css +2 -0
  22. package/dist/components/tones/surface.css +1 -0
  23. package/dist/components/tones/tokens.css +8 -3
  24. package/dist/components/tones/zone-paint.css +15 -0
  25. package/dist/components/ui/feedback/toast/toast-tokens.css +1 -0
  26. package/dist/components/ui/layout/app-shell/activity-backdrop.css +26 -0
  27. package/dist/components/ui/layout/sidebar/sidebar-tokens.css +5 -2
  28. package/dist/components/ui/media/media-player/nxgt-media-player.css +7 -32
  29. package/dist/components/ui/primitives/field-box/field-box-tokens.css +5 -2
  30. package/dist/{components-CDrQCOsU.js → components-DNUYg8QM.js} +18625 -18532
  31. package/dist/components.js +24 -22
  32. package/dist/{dialog-DdJ1C4BR.js → dialog-CkIYpJXk.js} +55 -53
  33. package/dist/dist-B7RjY7SL.js +158 -0
  34. package/dist/dist-C4wtXCjf.js +593 -0
  35. package/dist/dist-DVRQkaTK.js +111 -0
  36. package/dist/dist-lmHmz_bu.js +419 -0
  37. package/dist/dnd.js +1 -1
  38. package/dist/dropdown-menu-BC5Tbhb9.js +908 -0
  39. package/dist/editor.js +527 -527
  40. package/dist/empty-state-s2CSjKXJ.js +126 -0
  41. package/dist/{escape-owner-B8k7DvFa.js → escape-owner-CripBce_.js} +2 -1
  42. package/dist/{field-blur-DFUazxsL.js → field-blur-DPLsMufs.js} +1 -1
  43. package/dist/{field-blur-context-Dw9ZAgBr.js → field-blur-context-1ZwJgsHE.js} +2 -2
  44. package/dist/has-text-content-Ds2dkHX_.js +10 -0
  45. package/dist/hooks.js +35 -33
  46. package/dist/{hover-card-D5iHS9q1.js → hover-card-Cox-tPDz.js} +41 -39
  47. package/dist/{i18n-provider-C6SBK_nO.js → i18n-provider-C6HhBw34.js} +1 -1
  48. package/dist/i18n.js +6 -6
  49. package/dist/{icon-badge-Bb5-73XP.js → icon-badge-q3Ve8gra.js} +3 -3
  50. package/dist/{icon-button-5A6Mrj6w.js → icon-button-DJcWpIhu.js} +2 -1
  51. package/dist/{in-dialog-AiwTD3DK.js → in-dialog-Vwkyp-M5.js} +6 -5
  52. package/dist/lib/backgrounds/background/available.d.ts +3 -3
  53. package/dist/lib/backgrounds/background/background.d.ts +7 -3
  54. package/dist/lib/backgrounds/background/types.d.ts +7 -1
  55. package/dist/lib/backgrounds/index.d.ts +1 -1
  56. package/dist/lib/components/ui/layout/account-menu/account-menu-avatar.d.ts +1 -1
  57. package/dist/lib/components/ui/layout/app-shell/activity-chrome.d.ts +17 -0
  58. package/dist/lib/components/ui/layout/app-shell/activity-layout.d.ts +6 -4
  59. package/dist/lib/components/ui/layout/app-shell/backdrop-layer.d.ts +11 -0
  60. package/dist/lib/components/ui/layout/app-shell/keep-shapes-inside.d.ts +17 -0
  61. package/dist/lib/components/ui/layout/app-shell/theme-backdrop.d.ts +6 -0
  62. package/dist/lib/components/ui/layout/app-shell/use-activity-backdrop.d.ts +18 -0
  63. package/dist/lib/components/ui/layout/app-shell/use-keep-shapes-inside.d.ts +9 -0
  64. package/dist/lib/hooks/resolve-theme.d.ts +46 -1
  65. package/dist/lib/hooks/theme-store.d.ts +35 -4
  66. package/dist/lib/hooks/use-theme.d.ts +20 -4
  67. package/dist/lib/i18n/resources/en/en.d.ts +4 -0
  68. package/dist/lib/i18n/resources/en/material.json.d.ts +4 -0
  69. package/dist/lib/i18n/resources/fr/fr.d.ts +4 -0
  70. package/dist/lib/i18n/resources/fr/material.json.d.ts +4 -0
  71. package/dist/lib/i18n/resources/resources.d.ts +8 -0
  72. package/dist/lib/i18n/translator.d.ts +1 -1
  73. package/dist/lib/theme-picker/index.d.ts +7 -0
  74. package/dist/lib/theme-picker/partials/mini-background.d.ts +10 -0
  75. package/dist/lib/theme-picker/partials/mode-control.d.ts +5 -0
  76. package/dist/lib/theme-picker/partials/theme-tile.d.ts +12 -0
  77. package/dist/lib/theme-picker/theme-label.d.ts +7 -0
  78. package/dist/lib/theme-picker/theme-picker.d.ts +25 -0
  79. package/dist/lib/themes/index.d.ts +14 -0
  80. package/dist/lib/themes/nxgt-theme-provider.d.ts +29 -0
  81. package/dist/lib/themes/nxgt-theme.d.ts +22 -0
  82. package/dist/lib/themes/theme-context.d.ts +28 -0
  83. package/dist/lib/themes/theme-value.d.ts +5 -0
  84. package/dist/lib/vite/index.d.ts +1 -1
  85. package/dist/lib.js +3 -3
  86. package/dist/main.js +43 -39
  87. package/dist/map.js +8 -8
  88. package/dist/material.css +1 -1
  89. package/dist/nxgt-theme-CgSb9Obl.js +37 -0
  90. package/dist/pdf-reader.js +1 -1
  91. package/dist/print.js +2 -2
  92. package/dist/{public-SsiazLEv.js → public-Ce30uvp0.js} +591 -587
  93. package/dist/read-storage-C2J90bNm.js +10 -0
  94. package/dist/{rich-code-block-CwNwQs5z.js → rich-code-block-C2Fp_FDU.js} +5 -5
  95. package/dist/{sortable-provider-BvD98s8Y.js → sortable-provider-pVaEZzty.js} +3 -3
  96. package/dist/{spinner-CtGCPza-.js → spinner-CsHcmcpF.js} +2 -2
  97. package/dist/{stored-language-Bb7yX5uE.js → stored-language-BeIKw3-K.js} +15 -15
  98. package/dist/styles.css +8 -1
  99. package/dist/theme-context-BagPvRcz.js +16 -0
  100. package/dist/theme-picker.js +118 -0
  101. package/dist/theme-store-CSl51uNH.js +91 -0
  102. package/dist/theme-toggle-C8os82b4.js +48 -0
  103. package/dist/themes.js +42 -0
  104. package/dist/toggle-group-j8zaxEg1.js +69 -0
  105. package/dist/{toolbar-items-DsDDD5AY.js → toolbar-items-CqHvlTU8.js} +443 -589
  106. package/dist/tooltip-rhbqNmr3.js +1064 -0
  107. package/dist/{translate-material-Bsjc4Tow.js → translate-material-CGZljjp1.js} +2 -2
  108. package/dist/{translator-or2y0JJB.js → translator-DCYO4Ij3.js} +3 -3
  109. package/dist/{use-background-activity-B8jLHNop.js → use-background-activity-KxQgelFF.js} +1 -1
  110. package/dist/{use-chat-composer-DZ01a16D.js → use-chat-composer-CDrgWGMM.js} +4684 -4886
  111. package/dist/{use-heading-spy-ByOQNnFZ.js → use-heading-spy-DXo6IOX9.js} +52 -121
  112. package/dist/{use-material-translation-hLQzOjF0.js → use-material-translation-DkxcLbLM.js} +2 -2
  113. package/dist/use-slice-reducer-BGkeGtML.js +42 -0
  114. package/dist/use-theme-Cd-aiDJo.js +31 -0
  115. package/docs/README.md +2 -1
  116. package/docs/components/foundations.md +39 -0
  117. package/docs/components/navigation-and-layout.md +3 -3
  118. package/docs/getting-started.md +1 -1
  119. package/docs/guides/app-shell.md +41 -6
  120. package/docs/guides/backgrounds.md +43 -7
  121. package/docs/guides/i18n.md +1 -1
  122. package/docs/guides/themes.md +103 -0
  123. package/docs/guides/theming.md +288 -84
  124. package/docs/guides/vite-plugin.md +26 -0
  125. package/docs/previews/backgrounds-background-from-theme.webp +0 -0
  126. package/docs/previews/backgrounds-geometry-more.webp +0 -0
  127. package/docs/previews/backgrounds-geometry.webp +0 -0
  128. package/docs/previews/backgrounds-illustrated-scenes.webp +0 -0
  129. package/docs/previews/backgrounds-light-more.webp +0 -0
  130. package/docs/previews/backgrounds-light.webp +0 -0
  131. package/docs/previews/backgrounds-material-more.webp +0 -0
  132. package/docs/previews/backgrounds-matrix.webp +0 -0
  133. package/docs/previews/backgrounds-moon.webp +0 -0
  134. package/docs/previews/backgrounds-motif-shapes.webp +0 -0
  135. package/docs/previews/backgrounds-motifs.webp +0 -0
  136. package/docs/previews/foundations-themes-themepicker.webp +0 -0
  137. package/docs/roadmap.md +25 -0
  138. package/docs/troubleshooting.md +35 -7
  139. package/lib/backgrounds/backgrounds.css +2 -0
  140. package/lib/backgrounds/css-react/moon.css +97 -0
  141. package/lib/components/theme-tokens.css +34 -35
  142. package/lib/components/tones/app-tones.css +2 -1
  143. package/lib/components/tones/containers.css +4 -1
  144. package/lib/components/tones/index.css +2 -0
  145. package/lib/components/tones/surface.css +1 -0
  146. package/lib/components/tones/tokens.css +8 -3
  147. package/lib/components/tones/zone-paint.css +15 -0
  148. package/lib/components/ui/feedback/toast/toast-tokens.css +1 -0
  149. package/lib/components/ui/layout/app-shell/activity-backdrop.css +26 -0
  150. package/lib/components/ui/layout/sidebar/sidebar-tokens.css +5 -2
  151. package/lib/components/ui/media/media-player/nxgt-media-player.css +7 -32
  152. package/lib/components/ui/primitives/field-box/field-box-tokens.css +5 -2
  153. package/lib/styles.css +8 -1
  154. package/lib/theme-picker/theme-picker-list.css +29 -0
  155. package/lib/theme-picker/theme-picker.css +192 -0
  156. package/lib/theme-picker/theme-tile-background.css +77 -0
  157. package/lib/theme-picker/theme-tile-textures-night.css +63 -0
  158. package/lib/theme-picker/theme-tile-textures.css +153 -0
  159. package/lib/themes/ambre.css +134 -0
  160. package/lib/themes/ardoise.css +133 -0
  161. package/lib/themes/bleumono.css +136 -0
  162. package/lib/themes/bluemoon.css +136 -0
  163. package/lib/themes/corail.css +136 -0
  164. package/lib/themes/foret.css +133 -0
  165. package/lib/themes/lavande.css +133 -0
  166. package/lib/themes/menthe.css +136 -0
  167. package/lib/themes/ocean.css +136 -0
  168. package/lib/themes/pink.css +134 -0
  169. package/lib/themes/prune.css +133 -0
  170. package/lib/themes/sable.css +133 -0
  171. package/lib/themes/slate.css +133 -0
  172. package/lib/themes/teal.css +137 -0
  173. package/package.json +30 -2
  174. package/dist/dropdown-menu-DWtgUVW7.js +0 -1490
  175. package/dist/empty-state-CRWLQ1sM.js +0 -191
  176. package/dist/tooltip-tmFoTU_d.js +0 -1582
  177. package/dist/use-slice-reducer-0r5dXnJe.js +0 -58
@@ -0,0 +1,18 @@
1
+ import { Suspense as e, use as t } from "react";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ import { browser as r } from "react-dom";
4
+ //#region lib/lib/browser-only.tsx
5
+ function i({ reason: e, children: n }) {
6
+ return t(r(e)), n;
7
+ }
8
+ function a({ reason: t, fallback: r = null, children: a }) {
9
+ return /* @__PURE__ */ n(e, {
10
+ fallback: r,
11
+ children: /* @__PURE__ */ n(i, {
12
+ reason: t,
13
+ children: a
14
+ })
15
+ });
16
+ }
17
+ //#endregion
18
+ export { a as t };
@@ -0,0 +1,237 @@
1
+ import { o as e } from "./dist-DVRQkaTK.js";
2
+ import { a as t, c as n, i as r, l as i, s as a, t as o } from "./dist-lmHmz_bu.js";
3
+ import { i as s, n as c, r as l, t as u } from "./dist-C4wtXCjf.js";
4
+ import { t as d } from "./browser-only-DQ94lWF8.js";
5
+ import * as f from "react";
6
+ import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
7
+ //#region ../../node_modules/@radix-ui/react-radio-group/dist/index.mjs
8
+ var g = Object.defineProperty, _ = (e, t) => g(e, "name", {
9
+ value: t,
10
+ configurable: !0
11
+ }), v = "Radio", [y, b] = n(v), [x, S] = y(v);
12
+ function C(e) {
13
+ let { __scopeRadio: t, checked: n = !1, children: r, disabled: i, form: a, name: o, onCheck: s, required: c, value: l = "on", internal_do_not_use_render: u } = e, [d, p] = f.useState(null), [h, g] = f.useState(null), v = f.useRef(!1), [y, b] = f.useReducer((e) => e + 1, 0), S = {
14
+ checked: n,
15
+ disabled: i,
16
+ required: c,
17
+ name: o,
18
+ form: a,
19
+ value: l,
20
+ control: d,
21
+ setControl: p,
22
+ hasConsumerStoppedPropagationRef: v,
23
+ userInteractionCount: y,
24
+ onUserInteraction: b,
25
+ isFormControl: !d || !!a || !!d.closest("form"),
26
+ bubbleInput: h,
27
+ setBubbleInput: g,
28
+ onCheck: /* @__PURE__ */ _(() => s?.(), "onCheck")
29
+ };
30
+ return /* @__PURE__ */ m(x, {
31
+ scope: t,
32
+ ...S,
33
+ children: A(u) ? u(S) : r
34
+ });
35
+ }
36
+ _(C, "RadioProvider");
37
+ var w = "RadioTrigger", T = /* @__PURE__ */ f.forwardRef(/* @__PURE__ */ _(function({ __scopeRadio: t, onClick: n, ...r }, o) {
38
+ let { checked: s, disabled: c, value: l, setControl: u, onCheck: d, hasConsumerStoppedPropagationRef: f, onUserInteraction: p, isFormControl: h, bubbleInput: g } = S(w, t), _ = e(o, u);
39
+ return /* @__PURE__ */ m(i.button, {
40
+ type: "button",
41
+ role: "radio",
42
+ "aria-checked": s,
43
+ "data-state": j(s),
44
+ "data-disabled": c ? "" : void 0,
45
+ disabled: c,
46
+ value: l,
47
+ ...r,
48
+ ref: _,
49
+ onClick: a(n, (e) => {
50
+ s || (p(), d()), g && h && (f.current = e.isPropagationStopped(), f.current || e.stopPropagation());
51
+ })
52
+ });
53
+ }, "RadioTrigger")), E = "RadioIndicator", D = /* @__PURE__ */ f.forwardRef(/* @__PURE__ */ _(function(e, t) {
54
+ let { __scopeRadio: n, forceMount: a, ...o } = e, s = S(E, n);
55
+ return /* @__PURE__ */ m(r, {
56
+ present: a || s.checked,
57
+ children: /* @__PURE__ */ m(i.span, {
58
+ "data-state": j(s.checked),
59
+ "data-disabled": s.disabled ? "" : void 0,
60
+ ...o,
61
+ ref: t
62
+ })
63
+ });
64
+ }, "RadioIndicator")), O = "RadioBubbleInput", k = /* @__PURE__ */ f.forwardRef(/* @__PURE__ */ _(function({ __scopeRadio: t, onClick: n, ...r }, s) {
65
+ let { control: c, checked: l, required: u, disabled: d, name: p, value: h, form: g, bubbleInput: _, setBubbleInput: v, hasConsumerStoppedPropagationRef: y, userInteractionCount: b } = S(O, t), x = e(s, v), C = o(c), w = f.useRef(!1), T = f.useRef(l), E = f.useRef(b);
66
+ f.useEffect(() => {
67
+ let e = _;
68
+ if (!e) return;
69
+ let t = window.HTMLInputElement.prototype, n = Object.getOwnPropertyDescriptor(t, "checked").set, r = b !== E.current;
70
+ E.current = b;
71
+ let i = T.current !== l;
72
+ T.current = l;
73
+ let a = !(r && y.current);
74
+ if (i && n) {
75
+ w.current = !r;
76
+ let t = new Event("click", { bubbles: a });
77
+ n.call(e, l), e.dispatchEvent(t), w.current = !1;
78
+ }
79
+ }, [
80
+ _,
81
+ l,
82
+ y,
83
+ b
84
+ ]);
85
+ let D = f.useRef(l);
86
+ return /* @__PURE__ */ m(i.input, {
87
+ type: "radio",
88
+ "aria-hidden": !0,
89
+ defaultChecked: D.current,
90
+ required: u,
91
+ disabled: d,
92
+ name: p,
93
+ value: h,
94
+ form: g,
95
+ ...r,
96
+ tabIndex: -1,
97
+ ref: x,
98
+ onClick: a(n, (e) => {
99
+ w.current && e.stopPropagation();
100
+ }),
101
+ style: {
102
+ ...r.style,
103
+ ...C,
104
+ position: "absolute",
105
+ pointerEvents: "none",
106
+ opacity: 0,
107
+ margin: 0,
108
+ transform: "translateX(-100%)"
109
+ }
110
+ });
111
+ }, "RadioBubbleInput"));
112
+ function A(e) {
113
+ return typeof e == "function";
114
+ }
115
+ _(A, "isFunction");
116
+ function j(e) {
117
+ return e ? "checked" : "unchecked";
118
+ }
119
+ _(j, "getState");
120
+ var M = [
121
+ "ArrowUp",
122
+ "ArrowDown",
123
+ "ArrowLeft",
124
+ "ArrowRight"
125
+ ], N = "RadioGroup", [P, F] = n(N, [l, b]), I = l(), L = b(), [R, z] = P(N), B = /* @__PURE__ */ f.forwardRef(/* @__PURE__ */ _(function(n, r) {
126
+ let { __scopeRadioGroup: a, name: o, form: l, defaultValue: u, value: d, required: p = !1, disabled: h = !1, orientation: g, dir: v, loop: y = !0, onValueChange: b, ...x } = n, S = I(a), C = s(v), [w, T] = t({
127
+ prop: d,
128
+ defaultProp: u ?? null,
129
+ onChange: b,
130
+ caller: N
131
+ }), [E, D] = f.useState(null), O = e(r, D), k = f.useRef(w);
132
+ return f.useEffect(() => {
133
+ let e = l ? E?.ownerDocument.getElementById(l) : E?.closest("form");
134
+ if (e instanceof HTMLFormElement) {
135
+ let t = /* @__PURE__ */ _(() => T(k.current), "reset");
136
+ return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
137
+ }
138
+ }, [
139
+ E,
140
+ l,
141
+ T
142
+ ]), /* @__PURE__ */ m(R, {
143
+ scope: a,
144
+ name: o,
145
+ form: l,
146
+ required: p,
147
+ disabled: h,
148
+ value: w,
149
+ onValueChange: T,
150
+ children: /* @__PURE__ */ m(c, {
151
+ asChild: !0,
152
+ ...S,
153
+ orientation: g,
154
+ dir: C,
155
+ loop: y,
156
+ children: /* @__PURE__ */ m(i.div, {
157
+ role: "radiogroup",
158
+ "aria-required": p,
159
+ "aria-orientation": g,
160
+ "data-disabled": h ? "" : void 0,
161
+ dir: C,
162
+ ...x,
163
+ ref: O
164
+ })
165
+ })
166
+ });
167
+ }, "RadioGroup")), V = "RadioGroupItemProvider", H = "RadioGroupItemTrigger";
168
+ function U(e) {
169
+ let { __scopeRadioGroup: t, value: n, disabled: r, children: i, internal_do_not_use_render: a } = e, o = z(V, t), s = L(t), c = o.disabled || r;
170
+ return /* @__PURE__ */ m(C, {
171
+ ...s,
172
+ checked: o.value === n,
173
+ disabled: c,
174
+ required: o.required,
175
+ name: o.name,
176
+ form: o.form,
177
+ value: n,
178
+ onCheck: () => o.onValueChange(n),
179
+ internal_do_not_use_render: a,
180
+ children: i
181
+ });
182
+ }
183
+ _(U, "RadioGroupItemProvider");
184
+ var W = /* @__PURE__ */ f.forwardRef(/* @__PURE__ */ _(function(t, n) {
185
+ let { __scopeRadioGroup: r, ...i } = t, o = I(r), s = L(r), { checked: c, disabled: l } = S(H, s.__scopeRadio), d = f.useRef(null), p = e(n, d), h = f.useRef(!1);
186
+ return f.useEffect(() => {
187
+ let e = /* @__PURE__ */ _((e) => {
188
+ M.includes(e.key) && (h.current = !0);
189
+ }, "handleKeyDown"), t = /* @__PURE__ */ _(() => h.current = !1, "handleKeyUp");
190
+ return document.addEventListener("keydown", e), document.addEventListener("keyup", t), () => {
191
+ document.removeEventListener("keydown", e), document.removeEventListener("keyup", t);
192
+ };
193
+ }, []), /* @__PURE__ */ m(u, {
194
+ asChild: !0,
195
+ ...o,
196
+ focusable: !l,
197
+ active: c,
198
+ children: /* @__PURE__ */ m(T, {
199
+ ...s,
200
+ ...i,
201
+ ref: p,
202
+ onKeyDown: a(i.onKeyDown, (e) => {
203
+ e.key === "Enter" && e.preventDefault();
204
+ }),
205
+ onFocus: a(i.onFocus, () => {
206
+ h.current && d.current?.click();
207
+ })
208
+ })
209
+ });
210
+ }, "RadioGroupItemTrigger")), G = /* @__PURE__ */ f.forwardRef(/* @__PURE__ */ _(function(e, t) {
211
+ let { __scopeRadioGroup: n, ...r } = e;
212
+ return /* @__PURE__ */ m(k, {
213
+ ...L(n),
214
+ ...r,
215
+ ref: t
216
+ });
217
+ }, "RadioGroupItemBubbleInput")), K = /* @__PURE__ */ f.forwardRef(/* @__PURE__ */ _(function(e, t) {
218
+ let { __scopeRadioGroup: n, ...r } = e;
219
+ return /* @__PURE__ */ m(D, {
220
+ ...L(n),
221
+ ...r,
222
+ ref: t
223
+ });
224
+ }, "RadioGroupIndicator"));
225
+ //#endregion
226
+ //#region lib/components/ui/primitives/bubble-input/bubble-input.tsx
227
+ function q({ children: e }) {
228
+ return /* @__PURE__ */ m(d, {
229
+ reason: "Radix's hidden form input carries an inline style",
230
+ children: e
231
+ });
232
+ }
233
+ function J(e, t) {
234
+ return { internal_do_not_use_render: ({ isFormControl: n }) => /* @__PURE__ */ h(p, { children: [e, n ? /* @__PURE__ */ m(q, { children: t }) : null] }) };
235
+ }
236
+ //#endregion
237
+ export { U as a, G as i, B as n, W as o, K as r, J as t };
@@ -1,11 +1,13 @@
1
1
  import { t as e } from "./utils-Bcd2Z3ea.js";
2
- import { F as t, P as n, o as r, t as i } from "./tooltip-tmFoTU_d.js";
3
- import { t as a } from "./spinner-CtGCPza-.js";
2
+ import { n as t, t as n } from "./dist-DVRQkaTK.js";
3
+ import { o as r, t as i } from "./tooltip-rhbqNmr3.js";
4
+ import { t as a } from "./spinner-CsHcmcpF.js";
4
5
  import { i as o, r as s, t as c } from "./button-tones-BgZJ1tkD.js";
5
- import { Children as l, Fragment as u, cloneElement as d, isValidElement as f, useCallback as p, useContext as m, useEffect as h, useRef as g, useState as _ } from "react";
6
- import { jsx as v, jsxs as y } from "react/jsx-runtime";
6
+ import { t as l } from "./has-text-content-Ds2dkHX_.js";
7
+ import { Children as u, Fragment as d, cloneElement as f, isValidElement as p, useCallback as m, useContext as h, useEffect as g, useRef as _, useState as v } from "react";
8
+ import { jsx as y, jsxs as b } from "react/jsx-runtime";
7
9
  //#region lib/components/ui/actions/button/busy-click-capture.ts
8
- function b(e, t, n) {
10
+ function x(e, t, n) {
9
11
  return (r) => {
10
12
  if (e || t.isLocked()) {
11
13
  r.preventDefault(), r.stopPropagation();
@@ -16,7 +18,7 @@ function b(e, t, n) {
16
18
  }
17
19
  //#endregion
18
20
  //#region lib/components/ui/actions/button/button.variants.ts
19
- var x = r("inline-flex center truncate **:truncate gap-2 h-min cursor-pointer whitespace-nowrap rounded-full text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 aria-busy:cursor-progress [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error px-4 py-2 has-[>svg]:px-3", {
21
+ var S = r("inline-flex center truncate **:truncate gap-2 h-min cursor-pointer whitespace-nowrap rounded-full text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 aria-busy:cursor-progress [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error px-4 py-2 has-[>svg]:px-3", {
20
22
  variants: {
21
23
  variant: {
22
24
  filled: "shadow-xs",
@@ -226,103 +228,95 @@ var x = r("inline-flex center truncate **:truncate gap-2 h-min cursor-pointer wh
226
228
  class: `${s.default} ${c.default} hover:bg-foreground/10 active:bg-muted focus:bg-foreground/10`
227
229
  }
228
230
  ]
229
- }), S = ((e) => x(e?.variant === "ghost" && e.color === null ? {
231
+ }), C = ((e) => S(e?.variant === "ghost" && e.color === null ? {
230
232
  ...e,
231
233
  color: void 0
232
- } : e)), C = {
234
+ } : e)), w = {
233
235
  xs: "min-h-6",
234
236
  sm: "min-h-8",
235
237
  default: "min-h-9",
236
238
  lg: "min-h-10"
237
239
  };
238
- function w(e, t) {
239
- return !e || t?.startsWith("icon") ? !1 : `h-auto ${t ? C[t] : ""} whitespace-normal **:whitespace-normal text-center`;
240
- }
241
- //#endregion
242
- //#region lib/components/ui/actions/button/has-text-content.ts
243
- function T(e) {
244
- return e == null || typeof e == "boolean" ? !1 : typeof e == "string" || typeof e == "number" || typeof e == "bigint" ? String(e).trim() !== "" : Array.isArray(e) ? e.some(T) : f(e) ? !E(e.props["aria-hidden"]) && T(e.props.children) : !1;
245
- }
246
- function E(e) {
247
- return !!e && e !== "false";
240
+ function T(e, t) {
241
+ return !e || t?.startsWith("icon") ? !1 : `h-auto ${t ? w[t] : ""} whitespace-normal **:whitespace-normal text-center`;
248
242
  }
249
243
  //#endregion
250
244
  //#region lib/components/ui/actions/button/label-text.tsx
251
- function D(e) {
245
+ function E(e) {
252
246
  let t = [], n = 0, r = [], i = () => {
253
247
  if (r.length === 0) return;
254
248
  let e = r.join("");
255
- r = [], e.trim() === "" ? t.push(e) : t.push(/* @__PURE__ */ v("span", {
249
+ r = [], e.trim() === "" ? t.push(e) : t.push(/* @__PURE__ */ y("span", {
256
250
  "data-slot": "button-label",
257
251
  children: e
258
252
  }, `label-${n++}`));
259
253
  };
260
- for (let n of l.toArray(e)) {
254
+ for (let n of u.toArray(e)) {
261
255
  if (typeof n == "string" || typeof n == "number" || typeof n == "bigint") {
262
256
  r.push(n);
263
257
  continue;
264
258
  }
265
- i(), t.push(O(n));
259
+ i(), t.push(D(n));
266
260
  }
267
261
  return i(), t;
268
262
  }
269
- function O(e) {
270
- return f(e) && e.type === u ? d(e, void 0, D(e.props.children)) : e;
263
+ function D(e) {
264
+ return p(e) && e.type === d ? f(e, void 0, E(e.props.children)) : e;
271
265
  }
272
266
  //#endregion
273
267
  //#region lib/components/ui/actions/button/use-click-lock.ts
274
- var k = 1e3;
275
- function A(e, t) {
276
- let n = g(!1), r = g(!1), i = g(void 0), [a, o] = _(!1), s = p(() => {
268
+ var O = 1e3;
269
+ function k(e, t) {
270
+ let n = _(!1), r = _(!1), i = _(void 0), [a, o] = v(!1), s = m(() => {
277
271
  n.current = !1, r.current = !1, clearTimeout(i.current), o(!1);
278
- }, []), c = p(() => {
272
+ }, []), c = m(() => {
279
273
  e && (n.current = !0, o(!0), clearTimeout(i.current), i.current = setTimeout(() => {
280
274
  r.current || s();
281
- }, k));
275
+ }, O));
282
276
  }, [e, s]);
283
- return h(() => {
277
+ return g(() => {
284
278
  n.current && (t ? r.current = !0 : r.current && s());
285
- }, [t, s]), h(() => () => clearTimeout(i.current), []), {
279
+ }, [t, s]), g(() => () => clearTimeout(i.current), []), {
286
280
  locked: a,
287
281
  lock: c,
288
- isLocked: p(() => n.current, [])
282
+ isLocked: m(() => n.current, [])
289
283
  };
290
284
  }
291
285
  //#endregion
292
286
  //#region lib/components/ui/actions/button/button.tsx
293
- function j({ className: r, variant: i = "filled", asChild: s = !1, children: c, color: l, size: u, loading: d = !1, lockOnClick: f, spinnerVariant: p = "2", wrap: h, disabled: g, onClickCapture: _, type: x = "button", ...C }) {
294
- let E = s ? n : "button", O = m(o) || !!(C["aria-label"] || C["aria-labelledby"]) || T(c), k = A(f, d), j = d || k.locked, M = b(j, k, _);
295
- return /* @__PURE__ */ v(o, {
287
+ function A({ className: r, variant: i = "filled", asChild: s = !1, children: c, color: u, size: d, loading: f = !1, lockOnClick: p, spinnerVariant: m = "2", wrap: g, disabled: _, onClickCapture: v, type: S = "button", ...w }) {
288
+ let D = s ? n : "button", O = h(o) || !!(w["aria-label"] || w["aria-labelledby"]) || l(c), A = k(p, f), j = f || A.locked, M = x(j, A, v);
289
+ return /* @__PURE__ */ y(o, {
296
290
  value: O,
297
- children: /* @__PURE__ */ y(E, {
291
+ children: /* @__PURE__ */ b(D, {
298
292
  "data-slot": "button",
299
293
  "data-variant": i,
300
- "data-color": l,
301
- "data-size": u,
302
- className: e("w-fit max-w-full truncate justify-center line-clamp-1 text-ellipsis duration-500", S({
294
+ "data-color": u,
295
+ "data-size": d,
296
+ className: e("w-fit max-w-full truncate justify-center line-clamp-1 text-ellipsis duration-500", C({
303
297
  variant: i,
304
- color: l,
305
- size: u
306
- }), w(h, u), r),
307
- type: s ? void 0 : x,
308
- disabled: g,
309
- ...C,
310
- "aria-disabled": j || C["aria-disabled"],
311
- "aria-busy": j || C["aria-busy"],
298
+ color: u,
299
+ size: d
300
+ }), T(g, d), r),
301
+ type: s ? void 0 : S,
302
+ disabled: _,
303
+ ...w,
304
+ "aria-disabled": j || w["aria-disabled"],
305
+ "aria-busy": j || w["aria-busy"],
312
306
  onClickCapture: M,
313
- children: [j && /* @__PURE__ */ v(a, {
314
- variant: p,
315
- color: i === "filled" ? "light" : l,
316
- className: e("starting:scale-0 duration-500", p === "4" ? "size-7.5" : "size-4.5")
317
- }), /* @__PURE__ */ v(t, { children: s ? c : D(c) })]
307
+ children: [j && /* @__PURE__ */ y(a, {
308
+ variant: m,
309
+ color: i === "filled" ? "light" : u,
310
+ className: e("starting:scale-0 duration-500", m === "4" ? "size-7.5" : "size-4.5")
311
+ }), /* @__PURE__ */ y(t, { children: s ? c : E(c) })]
318
312
  })
319
313
  });
320
314
  }
321
- function M({ tooltip: e, ...t }) {
322
- return e ? /* @__PURE__ */ v(i, {
315
+ function j({ tooltip: e, ...t }) {
316
+ return e ? /* @__PURE__ */ y(i, {
323
317
  content: e,
324
- children: /* @__PURE__ */ v(j, { ...t })
325
- }) : /* @__PURE__ */ v(j, { ...t });
318
+ children: /* @__PURE__ */ y(A, { ...t })
319
+ }) : /* @__PURE__ */ y(A, { ...t });
326
320
  }
327
321
  //#endregion
328
- export { S as a, T as i, A as n, b as o, D as r, M as t };
322
+ export { x as a, C as i, k as n, E as r, j as t };
package/dist/charts.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { t as e } from "./ui.utils-CAnKTCw5.js";
2
2
  import { t } from "./utils-Bcd2Z3ea.js";
3
- import { t as n } from "./use-material-translation-hLQzOjF0.js";
4
- import { t as r } from "./button--cF4gY14.js";
3
+ import { t as n } from "./use-material-translation-DkxcLbLM.js";
4
+ import { t as r } from "./button-DbfdITBB.js";
5
5
  import { t as i } from "./use-ssr-media-query-C6M5m8sf.js";
6
6
  import { i as a, n as o, r as s, t as c } from "./util-4heV2LPI.js";
7
7
  import { t as l } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
8
8
  import { t as u } from "./warn-once-C_e47JM8.js";
9
- import { t as d } from "./chip-D1B1dL77.js";
9
+ import { t as d } from "./chip-DpySRqCy.js";
10
10
  import { c as f, d as p, f as m, i as h, o as g, p as _, s as v, t as y } from "./line-path-BQeLQZ-P.js";
11
11
  import { t as b } from "./live-status-BGPaN8r8.js";
12
12
  import { t as x } from "./linear-G97mfnKF.js";
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./utils-Bcd2Z3ea.js";
2
- import { t } from "./tooltip-tmFoTU_d.js";
3
- import { t as n } from "./use-material-translation-hLQzOjF0.js";
2
+ import { t } from "./tooltip-rhbqNmr3.js";
3
+ import { t as n } from "./use-material-translation-DkxcLbLM.js";
4
4
  import { i as r } from "./button-tones-BgZJ1tkD.js";
5
5
  import { t as i } from "./react-node-text-Crkpfpco.js";
6
6
  import { Check as a, X as o } from "lucide-react";
@@ -1,4 +1,4 @@
1
- import { i as e } from "./use-slice-reducer-0r5dXnJe.js";
1
+ import { t as e } from "./browser-only-DQ94lWF8.js";
2
2
  import { Suspense as t, createContext as n, createElement as r, useContext as i } from "react";
3
3
  //#region lib/lib/client-only.utils.ts
4
4
  var a = n(!1);
@@ -1,14 +1,14 @@
1
1
  import { r as e } from "./rolldown-runtime-BFFgcFxR.js";
2
2
  import { t } from "./utils-Bcd2Z3ea.js";
3
- import { D as n } from "./tooltip-tmFoTU_d.js";
4
- import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-DWtgUVW7.js";
5
- import { a as c, i as l, n as u } from "./field-blur-context-Dw9ZAgBr.js";
6
- import { a as d, d as f, r as p, t as m, u as h } from "./toolbar-items-DsDDD5AY.js";
3
+ import { a as n } from "./dist-lmHmz_bu.js";
4
+ import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-BC5Tbhb9.js";
5
+ import { a as c, i as l, n as u } from "./field-blur-context-1ZwJgsHE.js";
6
+ import { a as d, d as f, r as p, t as m, u as h } from "./toolbar-items-CqHvlTU8.js";
7
7
  import { t as g } from "./is-production-GLw59WU8.js";
8
- import { t as _ } from "./use-material-translation-hLQzOjF0.js";
9
- import { i as v, n as y, o as b, t as x } from "./code-language-items-CGARRbVm.js";
8
+ import { t as _ } from "./use-material-translation-DkxcLbLM.js";
9
+ import { i as v, n as y, o as b, t as x } from "./code-language-items-C_dJ6GVs.js";
10
10
  import { t as S } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
11
- import { n as C, t as w } from "./escape-owner-B8k7DvFa.js";
11
+ import { n as C, t as w } from "./escape-owner-CripBce_.js";
12
12
  import { t as T } from "./skeleton-Bmp4gWAH.js";
13
13
  import { t as E } from "./react-node-text-Crkpfpco.js";
14
14
  import { Check as D, ChevronDown as O, CircleAlert as ee, Copy as k, FileCode2 as te, Lock as ne, Maximize2 as re, Minimize2 as A, Search as ie, TriangleAlert as ae, WandSparkles as oe, WrapText as se } from "lucide-react";
@@ -1,14 +1,14 @@
1
1
  import { t as e } from "./utils-Bcd2Z3ea.js";
2
- import { D as t } from "./tooltip-tmFoTU_d.js";
3
- import { d as n, r, t as i, u as a } from "./toolbar-items-DsDDD5AY.js";
4
- import { t as o } from "./use-material-translation-hLQzOjF0.js";
5
- import { i as s, n as c, o as l } from "./code-language-items-CGARRbVm.js";
6
- import { r as u, t as d } from "./field-blur-DFUazxsL.js";
2
+ import { a as t } from "./dist-lmHmz_bu.js";
3
+ import { d as n, r, t as i, u as a } from "./toolbar-items-CqHvlTU8.js";
4
+ import { t as o } from "./use-material-translation-DkxcLbLM.js";
5
+ import { i as s, n as c, o as l } from "./code-language-items-C_dJ6GVs.js";
6
+ import { r as u, t as d } from "./field-blur-DPLsMufs.js";
7
7
  import { t as f } from "./skeleton-Bmp4gWAH.js";
8
8
  import { t as p } from "./live-status-BGPaN8r8.js";
9
9
  import { t as m } from "./use-mobile-BDro060N.js";
10
10
  import { t as h } from "./react-node-text-Crkpfpco.js";
11
- import { a as g, c as _, d as v, f as y, i as b, l as x, m as S, o as C, p as w, r as T, s as E, t as D, u as O } from "./code-editor-0CdGwKDg.js";
11
+ import { a as g, c as _, d as v, f as y, i as b, l as x, m as S, o as C, p as w, r as T, s as E, t as D, u as O } from "./code-editor-BiA14xua.js";
12
12
  import { ChevronDown as k, ChevronUp as A, Columns2 as j } from "lucide-react";
13
13
  import { useEffect as M, useRef as N, useState as P } from "react";
14
14
  import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
- import { d as e, f as t } from "./dropdown-menu-DWtgUVW7.js";
2
- import { t as n } from "./use-material-translation-hLQzOjF0.js";
1
+ import { d as e, f as t } from "./dropdown-menu-BC5Tbhb9.js";
2
+ import { t as n } from "./use-material-translation-DkxcLbLM.js";
3
3
  import { t as r } from "./live-status-BGPaN8r8.js";
4
4
  import { useEffect as i, useRef as a, useState as o } from "react";
5
5
  import { jsx as s } from "react/jsx-runtime";