@nxgt/material 3.75.0 → 3.76.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 (239) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +37 -1
  3. package/dist/{alert-dialog-BfO_ri-N.js → alert-dialog-653apk3f.js} +8 -7
  4. package/dist/{async-slice-roMAJVzG.js → async-slice-CXLbQuOc.js} +1 -1
  5. package/dist/{bubble-input-B7BVd9fX.js → bubble-input-CQwVSoU3.js} +30 -29
  6. package/dist/{button-DgenqmpS.js → button-3op3rtZh.js} +5 -4
  7. package/dist/calculator-BaSMe0SK.js +1189 -0
  8. package/dist/calculator-announce-DRd2c6Dq.js +89 -0
  9. package/dist/calculator-context-BugcKuVG.js +10 -0
  10. package/dist/calculator-field.js +172 -0
  11. package/dist/calculator-panel-announce-AZSnZUSr.js +29 -0
  12. package/dist/calculator-segment-BlJE1LaS.js +22 -0
  13. package/dist/calculator.js +2 -0
  14. package/dist/charts.js +3 -3
  15. package/dist/{chip-CiDczNxO.js → chip-MuKDwtkG.js} +2 -2
  16. package/dist/{code-editor-CohlhFsA.js → code-editor-Bp2RrdNx.js} +13 -13
  17. package/dist/code-editor.js +37 -37
  18. package/dist/{code-language-items-Cs8GLYDp.js → code-language-items-B7WR5ua_.js} +19 -24
  19. package/dist/components/base-content.css +9 -4
  20. package/dist/components/ui/collections/server-table/server-table-phone-row.css +10 -3
  21. package/dist/{components-zJdfH4im.js → components-Ci3Zo8kC.js} +15837 -17245
  22. package/dist/components.js +37 -28
  23. package/dist/conversion-variant-BDFAxqe9.js +529 -0
  24. package/dist/copy-to-clipboard-Be5Ffvs_.js +7 -0
  25. package/dist/currency-B-r3ig11.js +16 -0
  26. package/dist/currency-field-BJ9rSrif.js +285 -0
  27. package/dist/{number.utils-BG_eEt5g.js → date.utils-DUvqcjan.js} +1 -7
  28. package/dist/dialog-Bm5LvVlB.js +166 -0
  29. package/dist/dist-BZe2evxL.js +139 -0
  30. package/dist/dist-CxhKjOYm.js +28 -0
  31. package/dist/dist-DHdUUM1w.js +241 -0
  32. package/dist/{dist-C4wtXCjf.js → dist-DOK3zo5C.js} +33 -32
  33. package/dist/dist-DWZXlCZR.js +182 -0
  34. package/dist/dist-DkQbkF9T.js +33 -0
  35. package/dist/dnd.js +1 -1
  36. package/dist/{dropdown-menu-CzR6JP31.js → dropdown-menu-xlZ6NYUA.js} +160 -159
  37. package/dist/editor.js +299 -298
  38. package/dist/{empty-state-DjHGMp5F.js → empty-state-C0kviQdW.js} +2 -2
  39. package/dist/{field-blur-CdASxjL7.js → field-blur-DkiZOVNV.js} +178 -180
  40. package/dist/{field-blur-context-kZ4SD7xu.js → field-blur-context-BLGgf_3z.js} +2 -2
  41. package/dist/financial-variant-BsZEa5sF.js +459 -0
  42. package/dist/{hooks-Dqq8O3Az.js → hooks-Dg94jPRq.js} +12 -12
  43. package/dist/hooks.js +2 -2
  44. package/dist/{hover-card-BPKqte4a.js → hover-card-B1g55Hi6.js} +44 -43
  45. package/dist/i18n.js +3 -3
  46. package/dist/icon-badge-BcW66bRk.js +17 -0
  47. package/dist/{icon-button-Cr-DyDGg.js → icon-button-Cogxy1cy.js} +5 -4
  48. package/dist/{in-dialog-Vwkyp-M5.js → in-dialog-D61Yeaol.js} +2 -1
  49. package/dist/input-CC2joTjB.js +56 -0
  50. package/dist/key-layout-cR79xfGE.js +38 -0
  51. package/dist/lib/calculator/index.d.ts +16 -0
  52. package/dist/lib/calculator-field/index.d.ts +12 -0
  53. package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +2 -2
  54. package/dist/lib/components/ui/feedback/moment/moment-body.d.ts +17 -2
  55. package/dist/lib/components/ui/feedback/moment/moment-passive.d.ts +13 -0
  56. package/dist/lib/components/ui/feedback/moment/moment.d.ts +16 -2
  57. package/dist/lib/components/ui/fields/calculator-field/apply-calculated.d.ts +17 -0
  58. package/dist/lib/components/ui/fields/calculator-field/calculator-field-content.d.ts +16 -0
  59. package/dist/lib/components/ui/fields/calculator-field/calculator-field-trigger.d.ts +4 -0
  60. package/dist/lib/components/ui/fields/calculator-field/calculator-field.d.ts +12 -0
  61. package/dist/lib/components/ui/fields/calculator-field/calculator-field.types.d.ts +31 -0
  62. package/dist/lib/components/ui/fields/calculator-field/calculator-form-field.d.ts +4 -0
  63. package/dist/lib/components/ui/fields/calculator-field/index.d.ts +3 -0
  64. package/dist/lib/components/ui/fields/calculator-field/use-calculator-field.d.ts +15 -0
  65. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  66. package/dist/lib/components/ui/fields/currency-field/currency-field.d.ts +7 -1
  67. package/dist/lib/components/ui/layout/app-shell/app-sidebar-context.d.ts +4 -0
  68. package/dist/lib/components/ui/widgets/calculator/calculator-announce.d.ts +27 -0
  69. package/dist/lib/components/ui/widgets/calculator/calculator-clipboard.d.ts +19 -0
  70. package/dist/lib/components/ui/widgets/calculator/calculator-context.d.ts +49 -0
  71. package/dist/lib/components/ui/widgets/calculator/calculator-feedback.d.ts +18 -0
  72. package/dist/lib/components/ui/widgets/calculator/calculator-keyboard.d.ts +30 -0
  73. package/dist/lib/components/ui/widgets/calculator/calculator-storage.d.ts +17 -0
  74. package/dist/lib/components/ui/widgets/calculator/calculator-variant-steps.d.ts +16 -0
  75. package/dist/lib/components/ui/widgets/calculator/calculator.d.ts +11 -0
  76. package/dist/lib/components/ui/widgets/calculator/calculator.selectors.d.ts +23 -0
  77. package/dist/lib/components/ui/widgets/calculator/calculator.slice.d.ts +1881 -0
  78. package/dist/lib/components/ui/widgets/calculator/currency.d.ts +9 -0
  79. package/dist/lib/components/ui/widgets/calculator/engine.d.ts +22 -0
  80. package/dist/lib/components/ui/widgets/calculator/index.d.ts +3 -0
  81. package/dist/lib/components/ui/widgets/calculator/partials/calculator-announcer.d.ts +2 -0
  82. package/dist/lib/components/ui/widgets/calculator/partials/calculator-display.d.ts +3 -0
  83. package/dist/lib/components/ui/widgets/calculator/partials/calculator-key.d.ts +17 -0
  84. package/dist/lib/components/ui/widgets/calculator/partials/calculator-keypad.d.ts +8 -0
  85. package/dist/lib/components/ui/widgets/calculator/partials/calculator-loading.d.ts +6 -0
  86. package/dist/lib/components/ui/widgets/calculator/partials/calculator-memory.d.ts +2 -0
  87. package/dist/lib/components/ui/widgets/calculator/partials/calculator-panel-announce.d.ts +10 -0
  88. package/dist/lib/components/ui/widgets/calculator/partials/calculator-panel-body.d.ts +9 -0
  89. package/dist/lib/components/ui/widgets/calculator/partials/calculator-screen.d.ts +4 -0
  90. package/dist/lib/components/ui/widgets/calculator/partials/calculator-segment.d.ts +21 -0
  91. package/dist/lib/components/ui/widgets/calculator/partials/calculator-shell.d.ts +9 -0
  92. package/dist/lib/components/ui/widgets/calculator/partials/calculator-switcher.d.ts +5 -0
  93. package/dist/lib/components/ui/widgets/calculator/partials/calculator-tape.d.ts +4 -0
  94. package/dist/lib/components/ui/widgets/calculator/partials/calculator-tools.d.ts +4 -0
  95. package/dist/lib/components/ui/widgets/calculator/partials/keypad-navigation.d.ts +24 -0
  96. package/dist/lib/components/ui/widgets/calculator/types.d.ts +102 -0
  97. package/dist/lib/components/ui/widgets/calculator/use-calculator-clipboard.d.ts +19 -0
  98. package/dist/lib/components/ui/widgets/calculator/use-calculator-conversion.d.ts +4 -0
  99. package/dist/lib/components/ui/widgets/calculator/use-calculator-feedback.d.ts +3 -0
  100. package/dist/lib/components/ui/widgets/calculator/use-calculator-keyboard.d.ts +22 -0
  101. package/dist/lib/components/ui/widgets/calculator/use-calculator-persistence.d.ts +14 -0
  102. package/dist/lib/components/ui/widgets/calculator/use-calculator-pos.d.ts +25 -0
  103. package/dist/lib/components/ui/widgets/calculator/use-calculator-press.d.ts +26 -0
  104. package/dist/lib/components/ui/widgets/calculator/use-calculator-tape.d.ts +29 -0
  105. package/dist/lib/components/ui/widgets/calculator/use-calculator-value.d.ts +9 -0
  106. package/dist/lib/components/ui/widgets/calculator/use-calculator-variant.d.ts +23 -0
  107. package/dist/lib/components/ui/widgets/calculator/use-calculator.d.ts +10 -0
  108. package/dist/lib/components/ui/widgets/calculator/use-engine-settings.d.ts +10 -0
  109. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-fields.d.ts +19 -0
  110. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-labels.d.ts +17 -0
  111. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-math.d.ts +31 -0
  112. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-names.d.ts +4 -0
  113. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-panel.d.ts +7 -0
  114. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-rates.d.ts +29 -0
  115. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-result.d.ts +15 -0
  116. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-state.d.ts +36 -0
  117. package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-variant.d.ts +3 -0
  118. package/dist/lib/components/ui/widgets/calculator/variants/conversion/use-conversion.d.ts +24 -0
  119. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-change.d.ts +4 -0
  120. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-figures.d.ts +43 -0
  121. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-format.d.ts +12 -0
  122. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-loan-math.d.ts +14 -0
  123. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-loan.d.ts +4 -0
  124. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-margin.d.ts +4 -0
  125. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-math.d.ts +10 -0
  126. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-panel.d.ts +7 -0
  127. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-parts.d.ts +35 -0
  128. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-table.d.ts +7 -0
  129. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-variant.d.ts +3 -0
  130. package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-vat.d.ts +4 -0
  131. package/dist/lib/components/ui/widgets/calculator/variants/key-layout.d.ts +51 -0
  132. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-announce.d.ts +16 -0
  133. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-aside.d.ts +2 -0
  134. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-display.d.ts +2 -0
  135. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-fields.d.ts +2 -0
  136. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-layout.d.ts +9 -0
  137. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-line.d.ts +6 -0
  138. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-names.d.ts +2 -0
  139. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-state.d.ts +3 -0
  140. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-tender.d.ts +2 -0
  141. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-ticket-data.d.ts +41 -0
  142. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-ticket.d.ts +5 -0
  143. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-totals.d.ts +2 -0
  144. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-types.d.ts +76 -0
  145. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-variant.d.ts +3 -0
  146. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-vat.d.ts +2 -0
  147. package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-view.d.ts +28 -0
  148. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-announce.d.ts +19 -0
  149. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-base.d.ts +11 -0
  150. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-bitpad.d.ts +14 -0
  151. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-display.d.ts +9 -0
  152. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-layout.d.ts +6 -0
  153. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-names.d.ts +2 -0
  154. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-readouts.d.ts +14 -0
  155. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-reduce.d.ts +29 -0
  156. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-state.d.ts +22 -0
  157. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-toolbar.d.ts +5 -0
  158. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-variant.d.ts +3 -0
  159. package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-word.d.ts +15 -0
  160. package/dist/lib/components/ui/widgets/calculator/variants/registry.d.ts +21 -0
  161. package/dist/lib/components/ui/widgets/calculator/variants/scientific/scientific-layout.d.ts +3 -0
  162. package/dist/lib/components/ui/widgets/calculator/variants/scientific/scientific-names.d.ts +2 -0
  163. package/dist/lib/components/ui/widgets/calculator/variants/scientific/scientific-toolbar.d.ts +2 -0
  164. package/dist/lib/components/ui/widgets/calculator/variants/scientific/scientific-variant.d.ts +3 -0
  165. package/dist/lib/components/ui/widgets/calculator/variants/standard/standard-layout.d.ts +3 -0
  166. package/dist/lib/components/ui/widgets/calculator/variants/variant-loader.d.ts +34 -0
  167. package/dist/lib/components/ui/widgets/calculator/variants/variant-logic.d.ts +40 -0
  168. package/dist/lib/components/ui/widgets/calculator/variants/variant-types.d.ts +62 -0
  169. package/dist/lib/i18n/resources/en/en.d.ts +412 -0
  170. package/dist/lib/i18n/resources/en/material.json.d.ts +412 -0
  171. package/dist/lib/i18n/resources/fr/fr.d.ts +412 -0
  172. package/dist/lib/i18n/resources/fr/material.json.d.ts +412 -0
  173. package/dist/lib/i18n/resources/resources.d.ts +824 -0
  174. package/dist/lib/i18n/translator.d.ts +1 -1
  175. package/dist/lib.js +4 -3
  176. package/dist/main.js +50 -40
  177. package/dist/map.js +66 -65
  178. package/dist/material.css +1 -1
  179. package/dist/native-select-w_FlBLHV.js +40 -0
  180. package/dist/number.utils-CSueQZcv.js +7 -0
  181. package/dist/pdf-reader.js +1 -1
  182. package/dist/percent-field-lahyDJDG.js +14 -0
  183. package/dist/picker-surface-CV09H7Nb.js +1220 -0
  184. package/dist/popover-Cd7DkND4.js +233 -0
  185. package/dist/pos-types-DKCkOTYy.js +49 -0
  186. package/dist/pos-variant-GrUfbTTP.js +603 -0
  187. package/dist/print.js +1 -1
  188. package/dist/programmer-variant-eKJNKENL.js +501 -0
  189. package/dist/programmer-word-CNCF7DJF.js +15 -0
  190. package/dist/{public-DC9VQw4Z.js → public-y6g4ddxd.js} +895 -892
  191. package/dist/{rich-code-block-DBSL9zEN.js → rich-code-block-CRQ0iyLb.js} +5 -5
  192. package/dist/scientific-variant-2y3UxAAU.js +149 -0
  193. package/dist/{sortable-provider-C4tk5esY.js → sortable-provider-DdiI3Fwk.js} +2 -2
  194. package/dist/{spinner-B2MubVWb.js → spinner-C1QIewWv.js} +133 -159
  195. package/dist/standard-layout-BuSRr3TY.js +40 -0
  196. package/dist/tabs-DzEqMb1W.js +383 -0
  197. package/dist/{icon-badge-B9uvDoyY.js → text-field-BAdY-kpO.js} +20 -34
  198. package/dist/theme-picker.js +3 -3
  199. package/dist/{theme-toggle-BInlu21G.js → theme-toggle-C_VeiiCm.js} +2 -2
  200. package/dist/toggle-FeCCJqbg.js +40 -0
  201. package/dist/{toggle-group-DXXlqid2.js → toggle-group-CVMxEpWi.js} +1 -1
  202. package/dist/{toolbar-items-CRJSx1MU.js → toolbar-items-D310xDuM.js} +333 -554
  203. package/dist/{translate-material-pVlPJ1v4.js → translate-material-BypJJ1l5.js} +1 -1
  204. package/dist/{translator-BoYCward.js → translator-DJkf4J7t.js} +824 -0
  205. package/dist/{typography-B6YMbCge.js → typography-CYEquVeb.js} +1 -1
  206. package/dist/{use-chat-composer-BvWQogJe.js → use-chat-composer-DMXu9E1O.js} +4198 -4600
  207. package/dist/{use-heading-spy-B_Z4ArDh.js → use-heading-spy-DJR8YYm6.js} +19 -19
  208. package/dist/{use-material-translation-CIS2n3RB.js → use-material-translation-CD6QoVal.js} +1 -1
  209. package/dist/{use-return-focus-DNQtADAR.js → use-return-focus-Cevw_6yq.js} +106 -105
  210. package/dist/useLatest-C2PnQEeD.js +8 -0
  211. package/docs/README.md +1 -0
  212. package/docs/components/feedback-and-status.md +10 -1
  213. package/docs/components/form-fields.md +1 -0
  214. package/docs/components/rich-widgets.md +108 -0
  215. package/docs/getting-started.md +1 -0
  216. package/docs/guides/calculator.md +468 -0
  217. package/docs/guides/forms.md +4 -2
  218. package/docs/guides/i18n.md +5 -0
  219. package/docs/previews/rich-widgets-calculator-conversion.webp +0 -0
  220. package/docs/previews/rich-widgets-calculator-point-of-sale.webp +0 -0
  221. package/docs/previews/rich-widgets-calculator.webp +0 -0
  222. package/docs/roadmap.md +9 -3
  223. package/docs/troubleshooting.md +134 -0
  224. package/lib/components/base-content.css +9 -4
  225. package/lib/components/ui/collections/server-table/server-table-phone-row.css +10 -3
  226. package/lib/components/ui/widgets/calculator/calculator-bands.css +146 -0
  227. package/lib/components/ui/widgets/calculator/calculator-display.css +83 -0
  228. package/lib/components/ui/widgets/calculator/calculator-keys.css +118 -0
  229. package/lib/components/ui/widgets/calculator/calculator-pos-ticket.css +185 -0
  230. package/lib/components/ui/widgets/calculator/calculator-pos.css +38 -0
  231. package/lib/components/ui/widgets/calculator/calculator-tape.css +71 -0
  232. package/lib/components/ui/widgets/calculator/calculator.css +97 -0
  233. package/lib/components/ui/widgets/calculator/variants/conversion/conversion.css +98 -0
  234. package/lib/components/ui/widgets/calculator/variants/financial/financial.css +162 -0
  235. package/lib/components/ui/widgets/calculator/variants/programmer/programmer.css +162 -0
  236. package/package.json +17 -3
  237. package/dist/dialog-AGsB3bv4.js +0 -219
  238. package/dist/dist-B7RjY7SL.js +0 -158
  239. package/dist/dist-lmHmz_bu.js +0 -419
@@ -0,0 +1,285 @@
1
+ import { t as e } from "./utils-BLfntITJ.js";
2
+ import { n as t } from "./spinner-C1QIewWv.js";
3
+ import { a as n, i as r, n as i } from "./field-blur-context-BLGgf_3z.js";
4
+ import { i as a } from "./translate-material-BypJJ1l5.js";
5
+ import { t as o } from "./use-material-translation-CD6QoVal.js";
6
+ import { t as s } from "./icon-button-Cogxy1cy.js";
7
+ import { t as c } from "./input-CC2joTjB.js";
8
+ import { t as l } from "./text-field-BAdY-kpO.js";
9
+ import { t as u } from "./number.utils-CSueQZcv.js";
10
+ import { useCallback as d, useEffect as f, useId as p, useMemo as m, useRef as h, useState as g } from "react";
11
+ import { jsx as _, jsxs as v } from "react/jsx-runtime";
12
+ import { Minus as y, Plus as b } from "lucide-react";
13
+ import { clampNumber as x, parseNumberInput as S, stepNumber as C } from "@nxgt/material-core/parse-number";
14
+ import { currencyFractionDigits as w } from "@nxgt/material-core/currency-digits";
15
+ //#region lib/components/ui/fields/number-field/number-stepper.tsx
16
+ function T({ hovered: e, focused: t, focusVisible: n }) {
17
+ return e || !t || n;
18
+ }
19
+ function E(e) {
20
+ try {
21
+ return e.matches(":focus-visible");
22
+ } catch {
23
+ return !0;
24
+ }
25
+ }
26
+ function D({ direction: e, label: n, disabled: r, onStep: i }) {
27
+ let a = h(null), o = h(!1), [c, l] = g(!1);
28
+ return /* @__PURE__ */ _(t, {
29
+ content: n,
30
+ open: c,
31
+ onOpenChange: (e) => {
32
+ let t = a.current;
33
+ l(e && T({
34
+ hovered: o.current,
35
+ focused: t != null && document.activeElement === t,
36
+ focusVisible: t != null && E(t)
37
+ }));
38
+ },
39
+ children: /* @__PURE__ */ _(s, {
40
+ ref: a,
41
+ variant: "outlined",
42
+ color: "default",
43
+ className: "size-9 shrink-0 rounded-field",
44
+ disabled: r,
45
+ "aria-label": n,
46
+ onPointerEnter: () => {
47
+ o.current = !0;
48
+ },
49
+ onPointerLeave: () => {
50
+ o.current = !1;
51
+ },
52
+ onClick: () => i(e),
53
+ children: _(e < 0 ? y : b, {})
54
+ })
55
+ });
56
+ }
57
+ function O(e) {
58
+ let { t } = o();
59
+ return e ? {
60
+ decreaseLabel: t("material.number-field.decrease-named", "Decrease {label}", { label: e }),
61
+ increaseLabel: t("material.number-field.increase-named", "Increase {label}", { label: e })
62
+ } : {
63
+ decreaseLabel: t("material.number-field.decrease", "Decrease"),
64
+ increaseLabel: t("material.number-field.increase", "Increase")
65
+ };
66
+ }
67
+ //#endregion
68
+ //#region lib/components/ui/fields/number-field/format-number-input.ts
69
+ function k(e, t = "en") {
70
+ let n = String(e === 0 ? 0 : e);
71
+ try {
72
+ let r = u(e === 0 ? 0 : e, {
73
+ language: t,
74
+ useGrouping: !1,
75
+ maximumFractionDigits: 20,
76
+ numberingSystem: "latn"
77
+ }), i = S(r);
78
+ return e !== 0 && i !== e ? n : r;
79
+ } catch {
80
+ return n;
81
+ }
82
+ }
83
+ //#endregion
84
+ //#region lib/components/ui/fields/number-field/use-number-input.ts
85
+ function A({ value: e, defaultValue: t, onChange: n, min: r, max: i, step: a, language: o }) {
86
+ let s = (e) => k(e, o), c = e !== void 0, [l, u] = g(t), d = c ? e : l, [p, m] = g(() => d == null ? "" : s(d));
87
+ f(() => {
88
+ c && m((t) => e == null ? t.trim() === "" ? t : "" : S(t) === e ? t : k(e, o));
89
+ }, [
90
+ c,
91
+ e,
92
+ o
93
+ ]);
94
+ let _ = h(o);
95
+ f(() => {
96
+ _.current !== o && (_.current = o, m((e) => d != null && S(e) === d ? k(d, o) : e));
97
+ }, [o, d]);
98
+ let v = (e) => {
99
+ c || u(e), n?.(e);
100
+ };
101
+ return {
102
+ draft: p,
103
+ amount: d,
104
+ type: (e) => {
105
+ if (m(e), e.trim() === "") v(null);
106
+ else {
107
+ let t = S(e);
108
+ t != null && v(t);
109
+ }
110
+ },
111
+ commit: (e) => {
112
+ let t = S(e), n = t == null ? null : x(t, r, i);
113
+ m(n == null ? "" : s(n)), v(n);
114
+ },
115
+ stepBy: (e) => {
116
+ let t = C(d, e, a, r, i);
117
+ m(s(t)), v(t);
118
+ }
119
+ };
120
+ }
121
+ //#endregion
122
+ //#region lib/components/ui/fields/number-field/number-control.tsx
123
+ function j({ error: e, disabled: t, value: n, defaultValue: r = null, onChange: i, onBlur: a, min: s, max: l, step: u = 1, hideSteppers: d = !1, suffix: f, stepperName: p, ...m }) {
124
+ let { language: h } = o(), { draft: g, amount: y, type: b, commit: x, stepBy: S } = A({
125
+ value: n,
126
+ defaultValue: r,
127
+ onChange: i,
128
+ min: s,
129
+ max: l,
130
+ step: u,
131
+ language: h
132
+ }), { decreaseLabel: C, increaseLabel: w } = O(p), T = s != null && y != null && y <= s, E = l != null && y != null && y >= l;
133
+ return /* @__PURE__ */ v("div", {
134
+ className: "flex items-center gap-1",
135
+ children: [
136
+ !d && /* @__PURE__ */ _(D, {
137
+ direction: -1,
138
+ label: C,
139
+ disabled: t || T,
140
+ onStep: S
141
+ }),
142
+ /* @__PURE__ */ _(c, {
143
+ ...m,
144
+ inputMode: "decimal",
145
+ autoComplete: "off",
146
+ disabled: t,
147
+ "aria-invalid": e || void 0,
148
+ value: g,
149
+ className: "text-center",
150
+ onChange: (e) => b(e.target.value),
151
+ onBlur: (e) => {
152
+ x(e.target.value), a?.(e);
153
+ }
154
+ }),
155
+ !d && /* @__PURE__ */ _(D, {
156
+ direction: 1,
157
+ label: w,
158
+ disabled: t || E,
159
+ onStep: S
160
+ }),
161
+ f != null && /* @__PURE__ */ _("span", {
162
+ className: "px-1 font-medium text-muted-foreground text-sm",
163
+ children: f
164
+ })
165
+ ]
166
+ });
167
+ }
168
+ //#endregion
169
+ //#region lib/components/ui/fields/number-field/number-field.tsx
170
+ function M({ label: t, helperText: a, error: o, required: s, className: c, name: l, id: u, "aria-describedby": d, ...f }) {
171
+ let m = i(), h = p(), g = u ?? h, y = p();
172
+ return /* @__PURE__ */ v("div", {
173
+ ref: m,
174
+ "data-slot": "number-field",
175
+ "data-pw": l ?? "number-field",
176
+ className: e("grid w-full content-start gap-1.5", c),
177
+ children: [
178
+ t && /* @__PURE__ */ _(r, {
179
+ htmlFor: g,
180
+ withAsterisk: s,
181
+ children: t
182
+ }),
183
+ /* @__PURE__ */ _(j, {
184
+ ...f,
185
+ id: g,
186
+ name: l,
187
+ stepperName: typeof t == "string" && t ? t : f["aria-label"] || void 0,
188
+ error: o,
189
+ required: s,
190
+ "aria-describedby": [a ? y : void 0, d].filter(Boolean).join(" ") || void 0
191
+ }),
192
+ a && /* @__PURE__ */ _(n, {
193
+ id: y,
194
+ error: o,
195
+ children: a
196
+ })
197
+ ]
198
+ });
199
+ }
200
+ //#endregion
201
+ //#region lib/components/ui/fields/currency-field/parse-currency.ts
202
+ function N(e) {
203
+ let t = e.trim().replace(/[\s\u00a0]/g, "");
204
+ if (!t) return null;
205
+ let n = t.lastIndexOf(",") > t.lastIndexOf(".") ? t.replace(/\./g, "").replace(",", ".") : t.replace(/,/g, ""), r = Number(n);
206
+ return Number.isFinite(r) ? r : null;
207
+ }
208
+ //#endregion
209
+ //#region lib/components/ui/fields/currency-field/use-currency-amount.ts
210
+ function P(e, t, n) {
211
+ return u(e, {
212
+ language: n,
213
+ minimumFractionDigits: t,
214
+ maximumFractionDigits: t
215
+ });
216
+ }
217
+ function F({ value: e, defaultValue: t, onChange: n, currency: r, fractionDigits: i }) {
218
+ let o = m(() => w(r, i), [r, i]), s = a()?.language, c = e !== void 0, [l, u] = g(t), p = c ? e : l, _ = h(null), v = d((e) => {
219
+ let t = P(e, o, s);
220
+ return _.current = {
221
+ text: t,
222
+ value: e
223
+ }, t;
224
+ }, [o, s]), [y, b] = g(() => p == null ? "" : v(p));
225
+ f(() => {
226
+ c && b((t) => e == null ? "" : N(t) === e || _.current?.text === t && _.current.value === e ? t : v(e));
227
+ }, [
228
+ c,
229
+ e,
230
+ v
231
+ ]);
232
+ let x = h(p);
233
+ x.current = p, f(() => {
234
+ let e = x.current;
235
+ b(e == null ? "" : v(e));
236
+ }, [v]);
237
+ let S = (e) => {
238
+ c || u(e), n?.(e);
239
+ };
240
+ return {
241
+ draft: y,
242
+ change: (e) => {
243
+ b(e);
244
+ let t = N(e);
245
+ e.trim() === "" ? S(null) : t != null && S(t);
246
+ },
247
+ commit: (e) => {
248
+ let t = e.trim(), n = _.current?.text === t ? _.current.value : N(e);
249
+ b(n == null ? t : v(n)), S(n);
250
+ }
251
+ };
252
+ }
253
+ //#endregion
254
+ //#region lib/components/ui/fields/currency-field/currency-field.tsx
255
+ function I({ value: t, defaultValue: n = null, onChange: r, currency: i = "EUR", fractionDigits: a, trailingAction: o, className: s, ...c }) {
256
+ let { draft: u, change: d, commit: f } = F({
257
+ value: t,
258
+ defaultValue: n,
259
+ onChange: r,
260
+ currency: i,
261
+ fractionDigits: a
262
+ });
263
+ return /* @__PURE__ */ _(l, {
264
+ ...c,
265
+ className: e(o && "[&_input]:pr-28!", s),
266
+ inputMode: "decimal",
267
+ autoComplete: "off",
268
+ spellCheck: !1,
269
+ value: u,
270
+ trailing: o ? /* @__PURE__ */ v("span", {
271
+ "data-slot": "currency-trailing",
272
+ className: "flex h-8! w-auto! items-center gap-1 bg-transparent! ps-1 pe-1.5 text-xs font-medium text-muted-foreground",
273
+ children: [i, o]
274
+ }) : /* @__PURE__ */ _("span", {
275
+ className: "px-1 text-xs font-medium text-muted-foreground",
276
+ children: i
277
+ }),
278
+ onChange: (e) => d(e.target.value),
279
+ onBlur: (e) => {
280
+ f(e.target.value), c.onBlur?.(e);
281
+ }
282
+ });
283
+ }
284
+ //#endregion
285
+ export { x as a, j as i, N as n, S as o, M as r, C as s, I as t };
@@ -2668,10 +2668,4 @@ var tn = {
2668
2668
  formatDateRangeFilter: en
2669
2669
  };
2670
2670
  //#endregion
2671
- //#region lib/lib/number.utils.ts
2672
- function nn(e, t = {}) {
2673
- let { language: n = "en-US", ...r } = t, i = new Intl.NumberFormat(n, r).format(e);
2674
- return i === "NaN" ? "" : i;
2675
- }
2676
- //#endregion
2677
- export { f as A, b as C, g as D, _ as E, a as F, i as I, l as M, c as N, m as O, n as P, te as S, v as T, C as _, Jt as a, re as b, Xt as c, Dt as d, Te as f, w as g, T as h, qt as i, u as j, p as k, Yt as l, E as m, tn as n, Gt as o, O as p, en as r, Kt as s, nn as t, X as u, S as v, y as w, ne as x, x as y };
2671
+ export { u as A, y as C, m as D, g as E, i as F, c as M, n as N, p as O, a as P, b as S, _ as T, S as _, Gt as a, ne as b, Yt as c, Te as d, O as f, C as g, w as h, Jt as i, l as j, f as k, X as l, T as m, en as n, Kt as o, E as p, qt as r, Xt as s, tn as t, Dt as u, x as v, v as w, te as x, re as y };
@@ -0,0 +1,166 @@
1
+ import { t as e } from "./utils-BLfntITJ.js";
2
+ import { r as t, t as n } from "./in-dialog-D61Yeaol.js";
3
+ import { a as r, c as i, i as a, l as o, n as s, o as c, r as l, s as u, t as d, u as f } from "./use-return-focus-Cevw_6yq.js";
4
+ import { t as p } from "./dist-DkQbkF9T.js";
5
+ import { t as m } from "./use-material-translation-CD6QoVal.js";
6
+ import { n as h } from "./icon-button-Cogxy1cy.js";
7
+ import { i as g } from "./escape-owner-DpaP0lm1.js";
8
+ import { jsx as _, jsxs as v } from "react/jsx-runtime";
9
+ import { X as y } from "lucide-react";
10
+ //#region lib/components/ui/overlays/dialog/dialog-outside.ts
11
+ function b(e) {
12
+ let t = e.target;
13
+ t instanceof Element && t.closest("[data-slot=\"combobox-content\"]") && e.preventDefault();
14
+ }
15
+ function x(e) {
16
+ return (t) => {
17
+ b(t), e?.(t);
18
+ };
19
+ }
20
+ function S(e) {
21
+ return {
22
+ ...e,
23
+ onPointerDownOutside: x(e.onPointerDownOutside),
24
+ onFocusOutside: x(e.onFocusOutside),
25
+ onInteractOutside: x(e.onInteractOutside)
26
+ };
27
+ }
28
+ //#endregion
29
+ //#region lib/components/ui/overlays/dialog/dialog-variants.ts
30
+ var C = p("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 [--dialog-px:1.5rem] max-h-[calc(100dvh-2rem)] supports-[not(height:100dvh)]:max-h-[calc(100vh-2rem)] overflow-y-auto has-[>[data-slot=dialog-body]]:flex has-[>[data-slot=dialog-body]]:flex-col has-[>[data-slot=dialog-body]]:overflow-hidden", {
31
+ variants: {
32
+ size: {
33
+ sm: "sm:max-w-sm",
34
+ md: "sm:max-w-lg",
35
+ lg: "sm:max-w-2xl",
36
+ xl: "sm:max-w-4xl",
37
+ full: "sm:max-w-[calc(100%-4rem)]"
38
+ },
39
+ mobilePresentation: {
40
+ dialog: "",
41
+ "bottom-sheet": "max-sm:top-auto max-sm:bottom-0 max-sm:left-0 max-sm:max-w-none max-sm:translate-x-0 max-sm:translate-y-0 max-sm:max-h-[calc(100dvh-1.5rem)] max-sm:pb-[max(1.5rem,env(safe-area-inset-bottom))]",
42
+ top: "max-sm:top-3 max-sm:translate-y-0 max-sm:max-h-[calc(100dvh-1.5rem)]",
43
+ fullscreen: "max-sm:inset-0 max-sm:h-dvh max-sm:max-h-none max-sm:max-w-none max-sm:translate-x-0 max-sm:translate-y-0 max-sm:content-start max-sm:pt-[max(1.5rem,env(safe-area-inset-top))]"
44
+ }
45
+ },
46
+ defaultVariants: {
47
+ size: "md",
48
+ mobilePresentation: "dialog"
49
+ }
50
+ });
51
+ //#endregion
52
+ //#region lib/components/ui/overlays/dialog/dialog-parts.tsx
53
+ function w({ className: t, ...n }) {
54
+ return /* @__PURE__ */ _("div", {
55
+ "data-slot": "dialog-header",
56
+ className: e("flex flex-col gap-2 text-center sm:text-left", t),
57
+ ...n
58
+ });
59
+ }
60
+ function T({ className: t, stackOnPhone: n = !0, ...r }) {
61
+ return /* @__PURE__ */ _("div", {
62
+ "data-slot": "dialog-footer",
63
+ className: e("flex gap-2 pt-2", n ? "flex-col-reverse max-sm:*:w-full sm:flex-row sm:justify-end" : "flex-row justify-end max-sm:justify-between", t),
64
+ ...r
65
+ });
66
+ }
67
+ function E({ className: t, ...n }) {
68
+ return /* @__PURE__ */ _(o, {
69
+ "data-slot": "dialog-title",
70
+ className: e("text-2xl/8 font-medium tracking-tight text-foreground", t),
71
+ ...n
72
+ });
73
+ }
74
+ function D({ className: t, ...n }) {
75
+ return /* @__PURE__ */ _(c, {
76
+ "data-slot": "dialog-description",
77
+ className: e("text-muted-foreground text-sm/6", t),
78
+ ...n
79
+ });
80
+ }
81
+ //#endregion
82
+ //#region lib/components/ui/overlays/dialog/dialog.tsx
83
+ function O({ ...e }) {
84
+ return /* @__PURE__ */ _(t, {
85
+ value: e.modal ?? !0,
86
+ children: /* @__PURE__ */ _(l, {
87
+ "data-slot": "dialog",
88
+ ...e
89
+ })
90
+ });
91
+ }
92
+ function k({ asChild: e = !0, ...t }) {
93
+ return /* @__PURE__ */ _(f, {
94
+ "data-slot": "dialog-trigger",
95
+ ...t,
96
+ asChild: e
97
+ });
98
+ }
99
+ function A({ ...e }) {
100
+ return /* @__PURE__ */ _(i, {
101
+ "data-slot": "dialog-portal",
102
+ ...e
103
+ });
104
+ }
105
+ function j({ className: t, color: n, children: r, type: i = "button", variant: o = "ghost", ...s }) {
106
+ let { t: c } = m();
107
+ return /* @__PURE__ */ _(a, {
108
+ "aria-label": r ? void 0 : c("material.buttons.close", "Close"),
109
+ ...s,
110
+ type: i,
111
+ className: e("absolute top-4 right-4", h({
112
+ variant: o,
113
+ color: n,
114
+ className: t
115
+ })),
116
+ "data-slot": "dialog-close",
117
+ children: r || /* @__PURE__ */ _(y, { className: "size-4" })
118
+ });
119
+ }
120
+ function M({ className: t, scrim: n = "dim", ...r }) {
121
+ return /* @__PURE__ */ _(u, {
122
+ "data-slot": "dialog-overlay",
123
+ "data-scrim": n,
124
+ className: e("nxgt-scrim fixed inset-0 z-50", t),
125
+ ...r
126
+ });
127
+ }
128
+ function N({ className: t, children: i, onInteractOutside: a, onPointerDownOutside: o, onFocusOutside: c, onOpenAutoFocus: l, onCloseAutoFocus: u, onEscapeKeyDown: f, size: p, mobilePresentation: m, scrim: h, container: y, ref: b, ...x }) {
129
+ let w = d({
130
+ onOpenAutoFocus: l,
131
+ onCloseAutoFocus: u
132
+ }), T = s(S({
133
+ ref: b,
134
+ onEscapeKeyDown: f,
135
+ onInteractOutside: a,
136
+ onPointerDownOutside: o,
137
+ onFocusOutside: c
138
+ }));
139
+ return /* @__PURE__ */ _(g, { children: /* @__PURE__ */ _(n, {
140
+ value: !0,
141
+ children: /* @__PURE__ */ v(A, {
142
+ "data-slot": "dialog-portal",
143
+ container: y,
144
+ children: [/* @__PURE__ */ _(M, {
145
+ ref: T.overlayRef,
146
+ scrim: h
147
+ }), /* @__PURE__ */ _(r, {
148
+ ref: T.ref,
149
+ "data-slot": "dialog-content",
150
+ "data-presentation": m ?? void 0,
151
+ className: e(C({
152
+ size: p,
153
+ mobilePresentation: m
154
+ }), t),
155
+ onOpenAutoFocus: w.onOpenAutoFocus,
156
+ onCloseAutoFocus: w.onCloseAutoFocus,
157
+ onEscapeKeyDown: T.onEscapeKeyDown,
158
+ ...x,
159
+ ...T.outside,
160
+ children: i
161
+ })]
162
+ })
163
+ }) });
164
+ }
165
+ //#endregion
166
+ export { A as a, T as c, S as d, M as i, w as l, j as n, k as o, N as r, D as s, O as t, E as u };
@@ -0,0 +1,139 @@
1
+ import { i as e, t } from "./dist-DWZXlCZR.js";
2
+ import { a as n } from "./dist-DHdUUM1w.js";
3
+ import { i as r, n as i, r as a, t as o } from "./dist-DOK3zo5C.js";
4
+ import { n as s } from "./dist-CxhKjOYm.js";
5
+ import * as c from "react";
6
+ import { jsx as l } from "react/jsx-runtime";
7
+ //#region ../../node_modules/@radix-ui/react-separator/dist/index.mjs
8
+ var u = Object.defineProperty, d = (e, t) => u(e, "name", {
9
+ value: t,
10
+ configurable: !0
11
+ }), f = "horizontal", p = ["horizontal", "vertical"], m = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ d(function(t, n) {
12
+ let { decorative: r, orientation: i = f, ...a } = t, o = h(i) ? i : f, s = r ? { role: "none" } : {
13
+ "aria-orientation": o === "vertical" ? o : void 0,
14
+ role: "separator"
15
+ };
16
+ return /* @__PURE__ */ l(e.div, {
17
+ "data-orientation": o,
18
+ ...s,
19
+ ...a,
20
+ ref: n
21
+ });
22
+ }, "Separator"));
23
+ function h(e) {
24
+ return p.includes(e);
25
+ }
26
+ d(h, "isValidOrientation");
27
+ var g = m, _ = Object.defineProperty, v = (e, t) => _(e, "name", {
28
+ value: t,
29
+ configurable: !0
30
+ }), y = "ToggleGroup", [b, x] = n(y, [a]), S = a(), C = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ v(function(e, t) {
31
+ let { type: n, ...r } = e;
32
+ if (n === "single") return /* @__PURE__ */ l(E, {
33
+ role: "radiogroup",
34
+ ...r,
35
+ ref: t
36
+ });
37
+ if (n === "multiple") return /* @__PURE__ */ l(D, {
38
+ role: "toolbar",
39
+ ...r,
40
+ ref: t
41
+ });
42
+ throw Error(`Missing prop \`type\` expected on \`${y}\``);
43
+ }, "ToggleGroup")), [w, T] = b(y), E = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ v(function(e, n) {
44
+ let { value: r, defaultValue: i, onValueChange: a = /* @__PURE__ */ v(() => {}, "onValueChange"), ...o } = e, [s, u] = t({
45
+ prop: r,
46
+ defaultProp: i ?? "",
47
+ onChange: a,
48
+ caller: y
49
+ });
50
+ return /* @__PURE__ */ l(w, {
51
+ scope: e.__scopeToggleGroup,
52
+ type: "single",
53
+ value: c.useMemo(() => s ? [s] : [], [s]),
54
+ onItemActivate: u,
55
+ onItemDeactivate: c.useCallback(() => u(""), [u]),
56
+ children: /* @__PURE__ */ l(A, {
57
+ ...o,
58
+ ref: n
59
+ })
60
+ });
61
+ }, "ToggleGroupImplSingle")), D = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ v(function(e, n) {
62
+ let { value: r, defaultValue: i, onValueChange: a = /* @__PURE__ */ v(() => {}, "onValueChange"), ...o } = e, [s, u] = t({
63
+ prop: r,
64
+ defaultProp: i ?? [],
65
+ onChange: a,
66
+ caller: y
67
+ }), d = c.useCallback((e) => u((t = []) => [...t, e]), [u]), f = c.useCallback((e) => u((t = []) => t.filter((t) => t !== e)), [u]);
68
+ return /* @__PURE__ */ l(w, {
69
+ scope: e.__scopeToggleGroup,
70
+ type: "multiple",
71
+ value: s,
72
+ onItemActivate: d,
73
+ onItemDeactivate: f,
74
+ children: /* @__PURE__ */ l(A, {
75
+ ...o,
76
+ ref: n
77
+ })
78
+ });
79
+ }, "ToggleGroupImplMultiple")), [O, k] = b(y), A = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ v(function(t, n) {
80
+ let { __scopeToggleGroup: a, disabled: o = !1, rovingFocus: s = !0, orientation: c, dir: u, loop: d = !0, ...f } = t, p = S(a), m = r(u), h = {
81
+ dir: m,
82
+ ...f
83
+ };
84
+ return /* @__PURE__ */ l(O, {
85
+ scope: a,
86
+ rovingFocus: s,
87
+ disabled: o,
88
+ children: s ? /* @__PURE__ */ l(i, {
89
+ asChild: !0,
90
+ ...p,
91
+ orientation: c,
92
+ dir: m,
93
+ loop: d,
94
+ children: /* @__PURE__ */ l(e.div, {
95
+ ...h,
96
+ ref: n
97
+ })
98
+ }) : /* @__PURE__ */ l(e.div, {
99
+ ...h,
100
+ ref: n
101
+ })
102
+ });
103
+ }, "ToggleGroupImpl")), j = "ToggleGroupItem", M = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ v(function(e, t) {
104
+ let n = T(j, e.__scopeToggleGroup), r = k(j, e.__scopeToggleGroup), i = S(e.__scopeToggleGroup), a = n.value.includes(e.value), s = r.disabled || e.disabled, u = {
105
+ ...e,
106
+ pressed: a,
107
+ disabled: s
108
+ }, d = c.useRef(null);
109
+ return r.rovingFocus ? /* @__PURE__ */ l(o, {
110
+ asChild: !0,
111
+ ...i,
112
+ focusable: !s,
113
+ active: a,
114
+ ref: d,
115
+ children: /* @__PURE__ */ l(N, {
116
+ ...u,
117
+ ref: t
118
+ })
119
+ }) : /* @__PURE__ */ l(N, {
120
+ ...u,
121
+ ref: t
122
+ });
123
+ }, "ToggleGroupItem")), N = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ v(function(e, t) {
124
+ let { __scopeToggleGroup: n, value: r, ...i } = e, a = T(j, n), o = {
125
+ role: "radio",
126
+ "aria-checked": e.pressed,
127
+ "aria-pressed": void 0
128
+ };
129
+ return /* @__PURE__ */ l(s, {
130
+ ...a.type === "single" ? o : void 0,
131
+ ...i,
132
+ ref: t,
133
+ onPressedChange: (e) => {
134
+ e ? a.onItemActivate(r) : a.onItemDeactivate(r);
135
+ }
136
+ });
137
+ }, "ToggleGroupItemImpl"));
138
+ //#endregion
139
+ export { g as i, M as n, x as r, C as t };
@@ -0,0 +1,28 @@
1
+ import { i as e, r as t, t as n } from "./dist-DWZXlCZR.js";
2
+ import * as r from "react";
3
+ import { jsx as i } from "react/jsx-runtime";
4
+ //#region ../../node_modules/@radix-ui/react-toggle/dist/index.mjs
5
+ var a = Object.defineProperty, o = (e, t) => a(e, "name", {
6
+ value: t,
7
+ configurable: !0
8
+ }), s = "Toggle", c = /* @__PURE__ */ r.forwardRef(/* @__PURE__ */ o(function(r, a) {
9
+ let { pressed: o, defaultPressed: c, onPressedChange: l, ...u } = r, [d, f] = n({
10
+ prop: o,
11
+ onChange: l,
12
+ defaultProp: c ?? !1,
13
+ caller: s
14
+ });
15
+ return /* @__PURE__ */ i(e.button, {
16
+ type: "button",
17
+ "aria-pressed": d,
18
+ "data-state": d ? "on" : "off",
19
+ "data-disabled": r.disabled ? "" : void 0,
20
+ ...u,
21
+ ref: a,
22
+ onClick: t(r.onClick, () => {
23
+ r.disabled || f(!d);
24
+ })
25
+ });
26
+ }, "Toggle")), l = c;
27
+ //#endregion
28
+ export { c as n, l as t };