@nxgt/material 3.101.0 → 3.103.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 (155) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +32 -2
  3. package/dist/{alert-dialog-DYzxchiS.js → alert-dialog-NFyAiSqc.js} +1 -1
  4. package/dist/{async-slice-drJyPvuM.js → async-slice-D35bX79S.js} +1 -1
  5. package/dist/{bubble-input-CQwVSoU3.js → bubble-input-BxI1WmNs.js} +17 -5
  6. package/dist/{button-GeIsUekU.js → button-Be7GZzF9.js} +2 -2
  7. package/dist/{calculator-BS4PAm6l.js → calculator-BGy1Q7rn.js} +261 -460
  8. package/dist/calculator-field.js +7 -7
  9. package/dist/{calculator-segment-CEdwE24M.js → calculator-segment-uixk6lBg.js} +1 -1
  10. package/dist/calculator.js +1 -1
  11. package/dist/charts.js +3 -3
  12. package/dist/{chip-BdEtFQ85.js → chip-3rWebZEM.js} +2 -2
  13. package/dist/{code-editor-BByXZOGy.js → code-editor-BqSVMfy-.js} +178 -177
  14. package/dist/code-editor.js +5 -5
  15. package/dist/{code-language-items-CSZX5zxD.js → code-language-items-Cf2LJVg2.js} +14 -5
  16. package/dist/components/ui/actions/action-card/action-card-tile.css +47 -0
  17. package/dist/components/ui/display/code/code-moonlight.css +10 -10
  18. package/dist/{components-DQ4MljCr.js → components-D2liJ9Yu.js} +17725 -17287
  19. package/dist/components.js +38 -37
  20. package/dist/{conversion-variant-DTQqAyDt.js → conversion-variant-clFZ6ZMJ.js} +5 -5
  21. package/dist/{currency-field-Dnju7ss2.js → currency-field-CBFEVNM1.js} +24 -23
  22. package/dist/{dialog-5_2__tu8.js → dialog-CrIIINTk.js} +3 -3
  23. package/dist/dnd.js +1 -1
  24. package/dist/{dropdown-menu-FdGC5kIP.js → dropdown-menu-BnfLWu8n.js} +1 -1
  25. package/dist/editor.js +9 -9
  26. package/dist/{empty-state-BoepPG5v.js → empty-state-CuUaCPY7.js} +1 -1
  27. package/dist/{field-blur-DkiZOVNV.js → field-blur-DMJwPLsg.js} +9 -9
  28. package/dist/field-blur-context-3rKussBQ.js +29 -0
  29. package/dist/{financial-variant-BhqJp5C-.js → financial-variant-BY_VCUuk.js} +5 -5
  30. package/dist/{hooks-DjcbJZiO.js → hooks-hHoZbL-4.js} +106 -61
  31. package/dist/hooks.js +3 -3
  32. package/dist/{hover-card-CmHJeBeY.js → hover-card-Do2-uzlF.js} +1 -1
  33. package/dist/i18n.js +3 -3
  34. package/dist/{icon-badge-LGUPQh_c.js → icon-badge-CHaVNEmb.js} +1 -1
  35. package/dist/{icon-button-BSVpO1jP.js → icon-button-BIAubLeJ.js} +1 -1
  36. package/dist/key-layout-D2goCDkD.js +31 -0
  37. package/dist/keypad.js +551 -0
  38. package/dist/label-DR-zZyGQ.js +47 -0
  39. package/dist/lib/components/ui/display/code/code-block-parts.d.ts +1 -1
  40. package/dist/lib/components/ui/display/code/code-block.d.ts +4 -1
  41. package/dist/lib/components/ui/display/code/languages.d.ts +2 -0
  42. package/dist/lib/components/ui/display/code/moonlight-tokens.d.ts +10 -10
  43. package/dist/lib/components/ui/feedback/confirm-dialog/confirm-dialog-props.d.ts +73 -0
  44. package/dist/lib/components/ui/feedback/confirm-dialog/confirm-dialog-rules.d.ts +12 -0
  45. package/dist/lib/components/ui/feedback/confirm-dialog/confirm-dialog.d.ts +5 -61
  46. package/dist/lib/components/ui/feedback/confirm-dialog/confirm-footer.d.ts +12 -0
  47. package/dist/lib/components/ui/feedback/confirm-dialog/confirm-phrase.d.ts +26 -0
  48. package/dist/lib/components/ui/feedback/confirm-dialog/use-confirm-action.d.ts +1 -1
  49. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  50. package/dist/lib/components/ui/layout/index.d.ts +1 -0
  51. package/dist/lib/components/ui/layout/panel-card/index.d.ts +1 -0
  52. package/dist/lib/components/ui/layout/panel-card/panel-card.d.ts +21 -0
  53. package/dist/lib/components/ui/selection/index.d.ts +1 -0
  54. package/dist/lib/components/ui/selection/status-menu/index.d.ts +3 -0
  55. package/dist/lib/components/ui/selection/status-menu/partials/status-confirm.d.ts +12 -0
  56. package/dist/lib/components/ui/selection/status-menu/partials/status-icon.d.ts +6 -0
  57. package/dist/lib/components/ui/selection/status-menu/partials/status-items.d.ts +18 -0
  58. package/dist/lib/components/ui/selection/status-menu/partials/status-menu-list.d.ts +14 -0
  59. package/dist/lib/components/ui/selection/status-menu/partials/status-sheet-row.d.ts +11 -0
  60. package/dist/lib/components/ui/selection/status-menu/partials/status-sheet.d.ts +21 -0
  61. package/dist/lib/components/ui/selection/status-menu/partials/status-trigger.d.ts +18 -0
  62. package/dist/lib/components/ui/selection/status-menu/status-menu-data.d.ts +12 -0
  63. package/dist/lib/components/ui/selection/status-menu/status-menu-form-field.d.ts +20 -0
  64. package/dist/lib/components/ui/selection/status-menu/status-menu.d.ts +13 -0
  65. package/dist/lib/components/ui/selection/status-menu/types.d.ts +76 -0
  66. package/dist/lib/components/ui/selection/status-menu/use-status-change.d.ts +18 -0
  67. package/dist/lib/components/ui/selection/status-menu/use-status-menu.d.ts +30 -0
  68. package/dist/lib/components/ui/widgets/calculator/partials/calculator-keypad.d.ts +1 -5
  69. package/dist/lib/components/ui/widgets/calculator/variants/key-layout.d.ts +3 -49
  70. package/dist/lib/components/ui/widgets/keypad/cash-model.d.ts +16 -0
  71. package/dist/lib/components/ui/widgets/keypad/index.d.ts +5 -0
  72. package/dist/lib/components/ui/widgets/keypad/key-layout.d.ts +56 -0
  73. package/dist/lib/components/ui/widgets/keypad/keypad-binding.d.ts +32 -0
  74. package/dist/lib/components/ui/widgets/keypad/keypad-cash.d.ts +28 -0
  75. package/dist/lib/components/ui/widgets/keypad/keypad-display.d.ts +11 -0
  76. package/dist/lib/components/ui/widgets/keypad/keypad-entry.d.ts +39 -0
  77. package/dist/lib/components/ui/widgets/keypad/keypad-grid.d.ts +27 -0
  78. package/dist/lib/components/ui/widgets/{calculator/partials/calculator-key.d.ts → keypad/keypad-key.d.ts} +6 -3
  79. package/dist/lib/components/ui/widgets/keypad/keypad-layout.d.ts +19 -0
  80. package/dist/lib/components/ui/widgets/{calculator/partials → keypad}/keypad-navigation.d.ts +1 -1
  81. package/dist/lib/components/ui/widgets/keypad/keypad.d.ts +9 -0
  82. package/dist/lib/components/ui/widgets/keypad/keypad.types.d.ts +91 -0
  83. package/dist/lib/components/ui/widgets/keypad/use-keypad-cash.d.ts +14 -0
  84. package/dist/lib/components/ui/widgets/keypad/use-keypad-keyboard.d.ts +7 -0
  85. package/dist/lib/components/ui/widgets/keypad/use-keypad-number.d.ts +10 -0
  86. package/dist/lib/components/ui/widgets/keypad/use-keypad-quantity.d.ts +16 -0
  87. package/dist/lib/components/ui/widgets/keypad/use-keypad-value.d.ts +17 -0
  88. package/dist/lib/components/ui/widgets/keypad/use-keypad.d.ts +23 -0
  89. package/dist/lib/hooks/index.d.ts +1 -0
  90. package/dist/lib/hooks/use-barcode-scanner.d.ts +39 -0
  91. package/dist/lib/i18n/resources/en/en.d.ts +25 -0
  92. package/dist/lib/i18n/resources/en/material.json.d.ts +26 -1
  93. package/dist/lib/i18n/resources/fr/fr.d.ts +25 -0
  94. package/dist/lib/i18n/resources/fr/material.json.d.ts +26 -1
  95. package/dist/lib/i18n/resources/resources.d.ts +50 -0
  96. package/dist/lib/i18n/translator.d.ts +1 -1
  97. package/dist/lib/keypad/index.d.ts +20 -0
  98. package/dist/lib.js +1 -1
  99. package/dist/main.js +54 -53
  100. package/dist/map.js +9 -9
  101. package/dist/material.css +1 -1
  102. package/dist/pdf-reader.js +1 -1
  103. package/dist/{percent-field-DGlU_xii.js → percent-field-DU8eIMD3.js} +15 -14
  104. package/dist/{picker-surface-CGhqNR8a.js → picker-surface-XmA--JVI.js} +4 -4
  105. package/dist/{popover-ZxL7ktKk.js → popover-D8iHiAbl.js} +1 -1
  106. package/dist/{pos-types-BQ0QpYMp.js → pos-types-BEAY27Rm.js} +1 -1
  107. package/dist/{pos-variant-CKy8h_5i.js → pos-variant-ClGI92Lt.js} +25 -25
  108. package/dist/print.js +1 -1
  109. package/dist/{programmer-variant-CbHstE28.js → programmer-variant-Boq2O8hB.js} +30 -30
  110. package/dist/{public-D-tdOz4b.js → public-DOrXKmcL.js} +9 -9
  111. package/dist/{rich-code-block-CTPj1LuD.js → rich-code-block-Djj2XE_u.js} +18 -18
  112. package/dist/{scientific-variant-B8U9h3II.js → scientific-variant-BzF_aMQP.js} +8 -8
  113. package/dist/{sortable-provider-CSoWE7Ce.js → sortable-provider-DCZjsIIH.js} +2 -2
  114. package/dist/{spinner-ffuwBXHl.js → spinner-Cg0y_E_K.js} +1 -1
  115. package/dist/standard-layout-DTr9yy8Z.js +48 -0
  116. package/dist/{tabs-JgRq6ZJx.js → tabs-DpessV5s.js} +1 -1
  117. package/dist/{text-field-DURkIP-v.js → text-field-Dxk9lAKM.js} +16 -15
  118. package/dist/theme-picker.js +13 -13
  119. package/dist/{theme-toggle-n_Zg7JAA.js → theme-toggle-B6Jl5Kfn.js} +1 -1
  120. package/dist/{toolbar-items-IANZdcw4.js → toolbar-items-Cs1XrZsH.js} +4 -4
  121. package/dist/{translate-material-CMHUH5Ha.js → translate-material-Du0j0t97.js} +1 -1
  122. package/dist/{translator-9zA-Um3W.js → translator-BVs4n0Fz.js} +52 -2
  123. package/dist/use-calculator-keyboard-BZ1CA4Ut.js +222 -0
  124. package/dist/{use-chat-composer-BoIN7RCA.js → use-chat-composer-B4m3OEm1.js} +241 -240
  125. package/dist/{use-heading-spy-Ciw9GBHL.js → use-heading-spy-CO3_AtY9.js} +235 -154
  126. package/dist/{use-material-translation-CLNaMhUf.js → use-material-translation-uNc1FyC8.js} +1 -1
  127. package/dist/{use-return-focus-DWhbTGVe.js → use-return-focus-AfLRrUm-.js} +1 -1
  128. package/docs/README.md +1 -0
  129. package/docs/components/README.md +1 -0
  130. package/docs/components/buttons-and-actions.md +34 -2
  131. package/docs/components/data-display.md +4 -1
  132. package/docs/components/feedback-and-status.md +20 -0
  133. package/docs/components/navigation-and-layout.md +28 -0
  134. package/docs/components/rich-widgets.md +28 -0
  135. package/docs/components/selection-and-choice.md +120 -0
  136. package/docs/guides/calculator.md +1 -1
  137. package/docs/guides/cards-and-tiles.md +21 -24
  138. package/docs/guides/forms.md +1 -0
  139. package/docs/guides/helpers.md +49 -0
  140. package/docs/guides/keypad.md +225 -0
  141. package/docs/previews/data-display-codeblock.webp +0 -0
  142. package/docs/previews/data-display-codegroup.webp +0 -0
  143. package/docs/previews/data-display-jsonviewer.webp +0 -0
  144. package/docs/previews/navigation-layout-panelcard.webp +0 -0
  145. package/docs/previews/rich-widgets-keypad.webp +0 -0
  146. package/docs/previews/selection-choice-statusmenu.webp +0 -0
  147. package/docs/roadmap.md +21 -0
  148. package/docs/troubleshooting.md +63 -0
  149. package/lib/components/ui/actions/action-card/action-card-tile.css +47 -0
  150. package/lib/components/ui/display/code/code-moonlight.css +10 -10
  151. package/lib/components/ui/widgets/calculator/calculator.css +87 -0
  152. package/package.json +7 -2
  153. package/dist/field-blur-context-BLGgf_3z.js +0 -73
  154. package/dist/key-layout-cR79xfGE.js +0 -38
  155. package/dist/standard-layout-BuSRr3TY.js +0 -40
@@ -1,3 +1,3 @@
1
- import { t as e } from "./public-D-tdOz4b.js";
1
+ import { t as e } from "./public-DOrXKmcL.js";
2
2
  import { configurePdfReader as t } from "@nxgt/material-core/pdf-reader";
3
3
  export { e as PdfReader, t as configurePdfReader };
@@ -1,7 +1,8 @@
1
1
  import { t as e } from "./utils-BLfntITJ.js";
2
- import { a as t, i as n, n as r } from "./field-blur-context-BLGgf_3z.js";
3
- import { t as i } from "./use-material-translation-CLNaMhUf.js";
4
- import { a, r as o } from "./currency-field-Dnju7ss2.js";
2
+ import { t } from "./label-DR-zZyGQ.js";
3
+ import { t as n } from "./use-material-translation-uNc1FyC8.js";
4
+ import { i as r, n as i } from "./field-blur-context-3rKussBQ.js";
5
+ import { a, r as o } from "./currency-field-CBFEVNM1.js";
5
6
  import { useId as s } from "react";
6
7
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
7
8
  import { LockIcon as u } from "lucide-react";
@@ -10,8 +11,8 @@ function d(e) {
10
11
  return e === "success" ? "circle" : e === "warning" ? "triangle" : e === "error" ? "diamond" : "square";
11
12
  }
12
13
  var f = (...e) => e.filter(Boolean).join(" ") || void 0;
13
- function p({ error: e, disabled: t, locked: n, reasonId: r, tone: o, value: s, defaultValue: l = null, onChange: u, onBlur: d, min: p, max: h, step: g = 1, suffix: _, hideSteppers: v, ...y }) {
14
- let { language: b } = i(), { draft: x, type: S, commit: C } = a({
14
+ function p({ error: e, disabled: t, locked: r, reasonId: i, tone: o, value: s, defaultValue: l = null, onChange: u, onBlur: d, min: p, max: h, step: g = 1, suffix: _, hideSteppers: v, ...y }) {
15
+ let { language: b } = n(), { draft: x, type: S, commit: C } = a({
15
16
  value: s,
16
17
  defaultValue: l,
17
18
  onChange: u,
@@ -23,7 +24,7 @@ function p({ error: e, disabled: t, locked: n, reasonId: r, tone: o, value: s, d
23
24
  return /* @__PURE__ */ c(m, {
24
25
  tone: e ? "error" : o,
25
26
  invalid: e,
26
- locked: n,
27
+ locked: r,
27
28
  disabled: t,
28
29
  max: _,
29
30
  children: /* @__PURE__ */ c("input", {
@@ -31,15 +32,15 @@ function p({ error: e, disabled: t, locked: n, reasonId: r, tone: o, value: s, d
31
32
  inputMode: "decimal",
32
33
  autoComplete: "off",
33
34
  disabled: t,
34
- readOnly: n || void 0,
35
+ readOnly: r || void 0,
35
36
  "aria-invalid": e || void 0,
36
- "aria-describedby": f(y["aria-describedby"], n ? r : void 0),
37
+ "aria-describedby": f(y["aria-describedby"], r ? i : void 0),
37
38
  value: x,
38
39
  className: "nxgt-score-input",
39
40
  size: Math.max(x.length, 1),
40
41
  onChange: (e) => S(e.target.value),
41
42
  onBlur: (e) => {
42
- n || C(e.target.value), d?.(e);
43
+ r || C(e.target.value), d?.(e);
43
44
  }
44
45
  })
45
46
  });
@@ -85,8 +86,8 @@ function h({ id: e, children: t }) {
85
86
  function g(e) {
86
87
  return e.variant === "score" ? /* @__PURE__ */ c(_, { ...e }) : /* @__PURE__ */ c(o, { ...e });
87
88
  }
88
- function _({ label: i, helperText: a, error: o, required: u, className: d, name: f, id: m, "aria-describedby": g, variant: _, tone: v, locked: y, lockedReason: b, ...x }) {
89
- let S = r(), C = s(), w = m ?? C, T = s(), E = s();
89
+ function _({ label: n, helperText: a, error: o, required: u, className: d, name: f, id: m, "aria-describedby": g, variant: _, tone: v, locked: y, lockedReason: b, ...x }) {
90
+ let S = i(), C = s(), w = m ?? C, T = s(), E = s();
90
91
  return /* @__PURE__ */ l("div", {
91
92
  ref: S,
92
93
  "data-slot": "number-field",
@@ -94,10 +95,10 @@ function _({ label: i, helperText: a, error: o, required: u, className: d, name:
94
95
  "data-pw": f ?? "number-field",
95
96
  className: e("grid w-full content-start gap-1.5", d),
96
97
  children: [
97
- i && /* @__PURE__ */ c(n, {
98
+ n && /* @__PURE__ */ c(t, {
98
99
  htmlFor: w,
99
100
  withAsterisk: u,
100
- children: i
101
+ children: n
101
102
  }),
102
103
  /* @__PURE__ */ c(p, {
103
104
  ...x,
@@ -114,7 +115,7 @@ function _({ label: i, helperText: a, error: o, required: u, className: d, name:
114
115
  id: E,
115
116
  children: b
116
117
  }),
117
- a && /* @__PURE__ */ c(t, {
118
+ a && /* @__PURE__ */ c(r, {
118
119
  id: T,
119
120
  error: o,
120
121
  children: a
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "./utils-BLfntITJ.js";
2
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-DWhbTGVe.js";
4
- import { i as p, o as m, r as h, t as g } from "./popover-ZxL7ktKk.js";
5
- import { t as _ } from "./use-material-translation-CLNaMhUf.js";
6
- import { n as v, t as y } from "./icon-button-BSVpO1jP.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-AfLRrUm-.js";
4
+ import { i as p, o as m, r as h, t as g } from "./popover-D8iHiAbl.js";
5
+ import { t as _ } from "./use-material-translation-uNc1FyC8.js";
6
+ import { n as v, t as y } from "./icon-button-BIAubLeJ.js";
7
7
  import { t as b } from "./use-ssr-media-query-C6M5m8sf.js";
8
8
  import { i as x } from "./escape-owner-DpaP0lm1.js";
9
9
  import * as S from "react";
@@ -1,7 +1,7 @@
1
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 { i as r, r as i, t as a } from "./dist-DWZXlCZR.js";
4
- import { S as o, d as s, f as c, l, p as u, u as d, x as f } from "./spinner-ffuwBXHl.js";
4
+ import { S as o, d as s, f as c, l, p as u, u as d, x as f } from "./spinner-Cg0y_E_K.js";
5
5
  import { a as p, i as m, r as h } from "./dist-DHdUUM1w.js";
6
6
  import { a as g, c as _, l as v, o as y, r as b, s as x, t as S } from "./in-dialog-D61Yeaol.js";
7
7
  import { i as C } from "./escape-owner-DpaP0lm1.js";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./use-material-translation-CLNaMhUf.js";
1
+ import { t as e } from "./use-material-translation-uNc1FyC8.js";
2
2
  import { n as t } from "./calculator-context-BugcKuVG.js";
3
3
  import { t as n } from "./calculator-announce-DRd2c6Dq.js";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
@@ -1,11 +1,11 @@
1
1
  import { t as e } from "./utils-BLfntITJ.js";
2
- import { t } from "./use-material-translation-CLNaMhUf.js";
3
- import { t as n } from "./icon-button-BSVpO1jP.js";
2
+ import { t } from "./use-material-translation-uNc1FyC8.js";
3
+ import { t as n } from "./icon-button-BIAubLeJ.js";
4
4
  import { n as r } from "./calculator-context-BugcKuVG.js";
5
- import { a as i, n as a, r as o, t as s } from "./pos-types-BQ0QpYMp.js";
6
- import { i as c, n as l, s as u } from "./key-layout-cR79xfGE.js";
5
+ import { a as i, n as a, r as o, t as s } from "./pos-types-BEAY27Rm.js";
6
+ import { o as c, r as l, t as u } from "./key-layout-D2goCDkD.js";
7
7
  import { n as d, t as f } from "./currency-B-r3ig11.js";
8
- import { t as p } from "./calculator-segment-CEdwE24M.js";
8
+ import { t as p } from "./calculator-segment-uixk6lBg.js";
9
9
  import { useId as m, useState as h } from "react";
10
10
  import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
11
11
  import { ChevronDown as y, X as b } from "lucide-react";
@@ -434,29 +434,29 @@ function Z() {
434
434
  var re = {
435
435
  columns: 12,
436
436
  rows: [
437
- u([
438
- l(7),
439
- l(8),
440
- l(9),
441
- c("backspace", "backspace", "⌫", "utility", "backspace", "Delete last digit")
437
+ c([
438
+ u(7),
439
+ u(8),
440
+ u(9),
441
+ l("backspace", "backspace", "⌫", "utility", "backspace", "Delete last digit")
442
442
  ]),
443
- u([
444
- l(4),
445
- l(5),
446
- l(6),
447
- c("clear", "C", "C", "utility", "clear", "Clear the amount")
443
+ c([
444
+ u(4),
445
+ u(5),
446
+ u(6),
447
+ l("clear", "C", "C", "utility", "clear", "Clear the amount")
448
448
  ]),
449
- u([
450
- l(1),
451
- l(2),
452
- l(3),
453
- c("quantity", "*", "×", "operator", "quantity", "Enter a quantity")
449
+ c([
450
+ u(1),
451
+ u(2),
452
+ u(3),
453
+ l("quantity", "*", "×", "operator", "quantity", "Enter a quantity")
454
454
  ]),
455
- u([
456
- c("double-zero", "00", "00", "digit", "double-zero", "Double zero"),
457
- l(0),
458
- c("discount", "%", "%", "operator", "discount", "Enter a discount"),
459
- c("add-line", "=", "+", "equals", "add-line", "Add to ticket")
455
+ c([
456
+ l("double-zero", "00", "00", "digit", "double-zero", "Double zero"),
457
+ u(0),
458
+ l("discount", "%", "%", "operator", "discount", "Enter a discount"),
459
+ l("add-line", "=", "+", "equals", "add-line", "Add to ticket")
460
460
  ])
461
461
  ]
462
462
  }, ie = [], ae = 6, oe = 3, se = /* @__PURE__ */ new Set([
package/dist/print.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as e, t } from "./translate-material-CMHUH5Ha.js";
1
+ import { i as e, t } from "./translate-material-Du0j0t97.js";
2
2
  import { Children as n, createContext as r, isValidElement as i, useCallback as a, useContext as o, useEffect as s, useMemo as c, useState as l } from "react";
3
3
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
4
4
  import { resolvePdfFileName as f } from "@nxgt/material-core/pdf-file-name";
@@ -1,9 +1,9 @@
1
- import { t as e } from "./use-material-translation-CLNaMhUf.js";
1
+ import { t as e } from "./use-material-translation-uNc1FyC8.js";
2
2
  import { t } from "./toggle-FeCCJqbg.js";
3
3
  import { n } from "./calculator-context-BugcKuVG.js";
4
- import { i as r, n as i, s as a } from "./key-layout-cR79xfGE.js";
4
+ import { o as r, r as i, t as a } from "./key-layout-D2goCDkD.js";
5
5
  import { t as o } from "./programmer-word-CNCF7DJF.js";
6
- import { t as s } from "./calculator-segment-CEdwE24M.js";
6
+ import { t as s } from "./calculator-segment-uixk6lBg.js";
7
7
  import { useId as c, useState as l } from "react";
8
8
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
9
9
  import { calculate as f, formatExpression as p, sessionOptions as m, toCanonical as h, tokenize as g } from "@nxgt/material-core/calculator";
@@ -108,7 +108,7 @@ function L(e, t) {
108
108
  }
109
109
  //#endregion
110
110
  //#region lib/components/ui/widgets/calculator/variants/programmer/programmer-layout.ts
111
- var R = (e, t, n, i, a) => r(e, t, n, "function", i, a, 2), z = (e) => ({ ...r(`h${e}`, e, e.toUpperCase(), "digit", `hex-${e}`, `Digit ${e.toUpperCase()}`, 2) }), B = [
111
+ var R = (e, t, n, r, a) => i(e, t, n, "function", r, a, 2), z = (e) => ({ ...i(`h${e}`, e, e.toUpperCase(), "digit", `hex-${e}`, `Digit ${e.toUpperCase()}`, 2) }), B = [
112
112
  [
113
113
  z("a"),
114
114
  z("b"),
@@ -130,42 +130,42 @@ var R = (e, t, n, i, a) => r(e, t, n, "function", i, a, 2), z = (e) => ({ ...r(`
130
130
  R("shr", "shr", ">>", "shift-right", "Shift right (arithmetic)"),
131
131
  R("rol", "rol", "ROL", "rotate-left", "Rotate left"),
132
132
  R("ror", "ror", "ROR", "rotate-right", "Rotate right"),
133
- r("open", "(", "(", "bracket", "open-paren", "Open parenthesis", 2),
134
- r("close", ")", ")", "bracket", "close-paren", "Close parenthesis", 2)
133
+ i("open", "(", "(", "bracket", "open-paren", "Open parenthesis", 2),
134
+ i("close", ")", ")", "bracket", "close-paren", "Close parenthesis", 2)
135
135
  ]
136
136
  ], V = {
137
137
  columns: 12,
138
138
  split: B.length,
139
139
  rows: [
140
140
  ...B,
141
- a([
142
- r("clear", "C", "C", "utility", "clear", "Clear all"),
143
- r("sign", "±", "±", "utility", "sign", "Change sign"),
144
- r("mod", "mod", "mod", "operator", "modulo", "Modulo"),
145
- r("divide", "/", "÷", "operator", "divide", "Divided by")
141
+ r([
142
+ i("clear", "C", "C", "utility", "clear", "Clear all"),
143
+ i("sign", "±", "±", "utility", "sign", "Change sign"),
144
+ i("mod", "mod", "mod", "operator", "modulo", "Modulo"),
145
+ i("divide", "/", "÷", "operator", "divide", "Divided by")
146
146
  ]),
147
- a([
148
- i(7),
149
- i(8),
150
- i(9),
151
- r("multiply", "*", "×", "operator", "multiply", "Times")
147
+ r([
148
+ a(7),
149
+ a(8),
150
+ a(9),
151
+ i("multiply", "*", "×", "operator", "multiply", "Times")
152
152
  ]),
153
- a([
154
- i(4),
155
- i(5),
156
- i(6),
157
- r("subtract", "-", "−", "operator", "subtract", "Minus")
153
+ r([
154
+ a(4),
155
+ a(5),
156
+ a(6),
157
+ i("subtract", "-", "−", "operator", "subtract", "Minus")
158
158
  ]),
159
- a([
160
- i(1),
161
- i(2),
162
- i(3),
163
- r("add", "+", "+", "operator", "add", "Plus")
159
+ r([
160
+ a(1),
161
+ a(2),
162
+ a(3),
163
+ i("add", "+", "+", "operator", "add", "Plus")
164
164
  ]),
165
- a([
166
- i(0, 2),
167
- r("backspace", "backspace", "⌫", "utility", "backspace", "Delete last character"),
168
- r("equals", "=", "=", "equals", "equals", "Equals")
165
+ r([
166
+ a(0, 2),
167
+ i("backspace", "backspace", "⌫", "utility", "backspace", "Delete last character"),
168
+ i("equals", "=", "=", "equals", "equals", "Equals")
169
169
  ])
170
170
  ]
171
171
  }, H = [
@@ -3,25 +3,25 @@ import { n as t } from "./ui.utils-CAnKTCw5.js";
3
3
  import { t as n } from "./utils-BLfntITJ.js";
4
4
  import { o as r } from "./dist-DVRQkaTK.js";
5
5
  import { i, n as a, r as o } from "./dist-DWZXlCZR.js";
6
- import { o as s } from "./spinner-ffuwBXHl.js";
6
+ import { o as s } from "./spinner-Cg0y_E_K.js";
7
7
  import { a as c, i as l, n as u } from "./dist-DHdUUM1w.js";
8
8
  import { i as d } from "./dist-DOK3zo5C.js";
9
9
  import { r as f, t as p } from "./in-dialog-D61Yeaol.js";
10
- import { a as m, c as h, i as g, l as _, n as v, o as ee, r as y, s as b, t as te, u as ne } from "./use-return-focus-DWhbTGVe.js";
11
- import { c as x, d as S, f as C, i as w, l as T, n as E, o as D, t as re, u as O } from "./dropdown-menu-FdGC5kIP.js";
12
- import { a as k, b as ie, d as ae, f as oe, i as se, n as A, o as ce, r as le, s as j, t as M, u as ue, v as de } from "./toolbar-items-IANZdcw4.js";
10
+ import { a as m, c as h, i as g, l as _, n as v, o as ee, r as y, s as b, t as te, u as ne } from "./use-return-focus-AfLRrUm-.js";
11
+ import { c as x, d as S, f as C, i as w, l as T, n as E, o as D, t as re, u as O } from "./dropdown-menu-BnfLWu8n.js";
12
+ import { a as k, b as ie, d as ae, f as oe, i as se, n as A, o as ce, r as le, s as j, t as M, u as ue, v as de } from "./toolbar-items-Cs1XrZsH.js";
13
13
  import { t as fe } from "./dist-DkQbkF9T.js";
14
- import { t as pe } from "./button-GeIsUekU.js";
15
- import { t as N } from "./use-material-translation-CLNaMhUf.js";
16
- import { n as me, t as he } from "./icon-button-BSVpO1jP.js";
14
+ import { t as pe } from "./button-Be7GZzF9.js";
15
+ import { t as N } from "./use-material-translation-uNc1FyC8.js";
16
+ import { n as me, t as he } from "./icon-button-BIAubLeJ.js";
17
17
  import { t as ge } from "./useEvent-2fKq-6w8.js";
18
18
  import { n as _e, t as ve } from "./toggle-group-CVMxEpWi.js";
19
19
  import { i as ye } from "./escape-owner-DpaP0lm1.js";
20
20
  import { n as be } from "./use-slice-reducer-BGkeGtML.js";
21
21
  import { t as xe } from "./input-CC2joTjB.js";
22
22
  import { r as Se } from "./use-csp-nonce-ZKs9k-ov.js";
23
- import { n as Ce, t as we } from "./empty-state-BoepPG5v.js";
24
- import { r as Te, t as Ee, u as De } from "./dialog-5_2__tu8.js";
23
+ import { n as Ce, t as we } from "./empty-state-CuUaCPY7.js";
24
+ import { r as Te, t as Ee, u as De } from "./dialog-CrIIINTk.js";
25
25
  import { t as Oe } from "./client-only.utils-3nHNzCki.js";
26
26
  import { t as ke } from "./use-scroll-away-PQRFZkT2.js";
27
27
  import * as P from "react";
@@ -1,7 +1,7 @@
1
- import { n as e } from "./spinner-ffuwBXHl.js";
2
- import { c as t, n, t as r } from "./dropdown-menu-FdGC5kIP.js";
3
- import { t as i } from "./use-material-translation-CLNaMhUf.js";
4
- import { a, i as o, n as s, o as c, t as l } from "./code-language-items-CSZX5zxD.js";
1
+ import { n as e } from "./spinner-Cg0y_E_K.js";
2
+ import { c as t, n, t as r } from "./dropdown-menu-BnfLWu8n.js";
3
+ import { t as i } from "./use-material-translation-uNc1FyC8.js";
4
+ import { i as a, n as o, o as s, s as c, t as l } from "./code-language-items-Cf2LJVg2.js";
5
5
  import { i as u, n as d, r as f, s as p } from "./dist-C3GR7kJd.js";
6
6
  import { t as m } from "./code-block-spec-CGLKRhwD.js";
7
7
  import { Suspense as h, lazy as g, useEffect as _, useRef as v, useState as y } from "react";
@@ -49,9 +49,9 @@ function O({ filename: e, editable: t, onRename: n }) {
49
49
  }
50
50
  //#endregion
51
51
  //#region lib/components/ui/widgets/editor/extensions/code/code-block-language.tsx
52
- function k({ language: e, editable: a, onChange: s }) {
53
- let { t: c } = i(), u = e ? o(e) : c("material.code.plain-text", "Plain text");
54
- return a ? /* @__PURE__ */ x(r, { children: [/* @__PURE__ */ b(t, {
52
+ function k({ language: e, editable: o, onChange: s }) {
53
+ let { t: c } = i(), u = e ? a(e) : c("material.code.plain-text", "Plain text");
54
+ return o ? /* @__PURE__ */ x(r, { children: [/* @__PURE__ */ b(t, {
55
55
  asChild: !0,
56
56
  children: /* @__PURE__ */ x("button", {
57
57
  type: "button",
@@ -101,7 +101,7 @@ function j(e) {
101
101
  }
102
102
  //#endregion
103
103
  //#region lib/components/ui/widgets/editor/extensions/code/code-block-head.tsx
104
- function M({ node: e, editor: t, updateAttributes: n, editable: r, wrap: a, onWrapChange: o, onOpen: l }) {
104
+ function M({ node: e, editor: t, updateAttributes: n, editable: r, wrap: a, onWrapChange: s, onOpen: l }) {
105
105
  let { t: u } = i(), { status: d, copy: f } = c(), p = d === "copied", m = j(t);
106
106
  return /* @__PURE__ */ x("div", {
107
107
  className: "nxgt-code-block-head",
@@ -121,7 +121,7 @@ function M({ node: e, editor: t, updateAttributes: n, editable: r, wrap: a, onWr
121
121
  /* @__PURE__ */ b(A, {
122
122
  label: u("material.code.word-wrap", "Word wrap"),
123
123
  pressed: a,
124
- onClick: () => o(!a),
124
+ onClick: () => s(!a),
125
125
  children: /* @__PURE__ */ b(D, { "aria-hidden": !0 })
126
126
  }),
127
127
  /* @__PURE__ */ b(A, {
@@ -134,7 +134,7 @@ function M({ node: e, editor: t, updateAttributes: n, editable: r, wrap: a, onWr
134
134
  onClick: l,
135
135
  children: /* @__PURE__ */ b(E, { "aria-hidden": !0 })
136
136
  }),
137
- m && S(/* @__PURE__ */ b(s, {
137
+ m && S(/* @__PURE__ */ b(o, {
138
138
  slot: "code-block-copy-status",
139
139
  status: d
140
140
  }), m)
@@ -143,7 +143,7 @@ function M({ node: e, editor: t, updateAttributes: n, editable: r, wrap: a, onWr
143
143
  }
144
144
  //#endregion
145
145
  //#region lib/components/ui/widgets/editor/extensions/code/code-block-open.tsx
146
- var N = g(() => import("./code-editor-BByXZOGy.js").then((e) => e.n).then((e) => ({ default: e.CodeEditor })));
146
+ var N = g(() => import("./code-editor-BqSVMfy-.js").then((e) => e.n).then((e) => ({ default: e.CodeEditor })));
147
147
  function P() {
148
148
  let { t: e } = i();
149
149
  return /* @__PURE__ */ b("div", {
@@ -152,8 +152,8 @@ function P() {
152
152
  children: e("material.code.opening", "Opening the editor…")
153
153
  });
154
154
  }
155
- function F({ code: e, language: t, filename: n, label: r, theme: i, within: o, onClose: s }) {
156
- let c = v(null), [l, u] = y(a(t ?? void 0));
155
+ function F({ code: e, language: t, filename: n, label: r, theme: i, within: a, onClose: o }) {
156
+ let c = v(null), [l, u] = y(s(t ?? void 0));
157
157
  return S(/* @__PURE__ */ b(h, {
158
158
  fallback: /* @__PURE__ */ b(P, {}),
159
159
  children: /* @__PURE__ */ b(N, {
@@ -168,10 +168,10 @@ function F({ code: e, language: t, filename: n, label: r, theme: i, within: o, o
168
168
  onFullscreenChange: (t) => {
169
169
  if (t) return;
170
170
  let n = c.current?.editor();
171
- s(n ? n.getValue() : e, l);
171
+ o(n ? n.getValue() : e, l);
172
172
  }
173
173
  })
174
- }), o.closest("[role=\"dialog\"]") ?? document.body);
174
+ }), a.closest("[role=\"dialog\"]") ?? document.body);
175
175
  }
176
176
  //#endregion
177
177
  //#region lib/components/ui/widgets/editor/extensions/code/code-block-write-back.ts
@@ -190,10 +190,10 @@ function L(e, t, n, r) {
190
190
  if (typeof t != "number" || !e.isEditable) return !1;
191
191
  let i = e.state.doc.nodeAt(t);
192
192
  if (i?.type.name !== "codeBlock") return !1;
193
- let o = I(i.textContent, n), s = a(i.attrs.language ?? null ?? void 0) !== r;
194
- if (o.from === o.to && !o.text && !s) return !1;
193
+ let a = I(i.textContent, n), o = s(i.attrs.language ?? null ?? void 0) !== r;
194
+ if (a.from === a.to && !a.text && !o) return !1;
195
195
  let { tr: c, schema: l } = e.state, u = t + 1;
196
- return o.text ? c.replaceWith(u + o.from, u + o.to, l.text(o.text)) : o.from !== o.to && c.delete(u + o.from, u + o.to), s && c.setNodeAttribute(t, "language", r), e.view.dispatch(c), !0;
196
+ return a.text ? c.replaceWith(u + a.from, u + a.to, l.text(a.text)) : a.from !== a.to && c.delete(u + a.from, u + a.to), o && c.setNodeAttribute(t, "language", r), e.view.dispatch(c), !0;
197
197
  }
198
198
  //#endregion
199
199
  //#region lib/components/ui/widgets/editor/extensions/code/code-block-view.tsx
@@ -1,19 +1,19 @@
1
- import { t as e } from "./use-material-translation-CLNaMhUf.js";
1
+ import { t as e } from "./use-material-translation-uNc1FyC8.js";
2
2
  import { t } from "./toggle-FeCCJqbg.js";
3
3
  import { n } from "./calculator-context-BugcKuVG.js";
4
- import { i as r, o as i } from "./key-layout-cR79xfGE.js";
5
- import { t as a } from "./standard-layout-BuSRr3TY.js";
6
- import { t as o } from "./calculator-segment-CEdwE24M.js";
4
+ import { a as r, r as i } from "./key-layout-D2goCDkD.js";
5
+ import { t as a } from "./standard-layout-DTr9yy8Z.js";
6
+ import { t as o } from "./calculator-segment-uixk6lBg.js";
7
7
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
8
  import { scientificOptions as l } from "@nxgt/material-core/calculator/scientific";
9
9
  //#region lib/components/ui/widgets/calculator/variants/scientific/scientific-layout.ts
10
- var u = (e, t, n, i, a, o, s = 2) => ({
11
- ...r(e, t, n, "function", i, a, s),
10
+ var u = (e, t, n, r, a, o, s = 2) => ({
11
+ ...i(e, t, n, "function", r, a, s),
12
12
  alt: o
13
- }), d = (e, t, n, r) => ({
13
+ }), d = (e, t, n, i) => ({
14
14
  key: e,
15
15
  glyph: t,
16
- name: i(n, r)
16
+ name: r(n, i)
17
17
  }), f = (e, t, n, r, i) => u(e, `fn:${e}`, t, n, r, i), p = [
18
18
  [
19
19
  f("sin", "sin", "sine", "Sine", d("fn:asin", "asin", "arcsine", "Inverse sine")),
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./utils-BLfntITJ.js";
2
2
  import { t } from "./dist-DVRQkaTK.js";
3
- import { t as n } from "./use-material-translation-CLNaMhUf.js";
4
- import { t as r } from "./icon-button-BSVpO1jP.js";
3
+ import { t as n } from "./use-material-translation-uNc1FyC8.js";
4
+ import { t as r } from "./icon-button-BIAubLeJ.js";
5
5
  import { t as i } from "./compose-refs-G4J4kaUA.js";
6
6
  import a, { cloneElement as o, createContext as s, forwardRef as c, memo as l, useCallback as u, useContext as d, useEffect as f, useId as p, useLayoutEffect as m, useMemo as h, useReducer as g, useRef as _, useState as v } from "react";
7
7
  import { jsx as y } from "react/jsx-runtime";
@@ -5,7 +5,7 @@ import { a as i, i as a, n as o, r as s, t as c } from "./dist-DWZXlCZR.js";
5
5
  import { a as l, i as u, n as d, r as f, t as p } from "./dist-DHdUUM1w.js";
6
6
  import { a as m, c as h, d as g, i as _, l as v, o as y, r as b, t as x, u as S } from "./floating-ui.dom-KkZSW8_E.js";
7
7
  import { t as C } from "./dist-DkQbkF9T.js";
8
- import { t as w } from "./use-material-translation-CLNaMhUf.js";
8
+ import { t as w } from "./use-material-translation-uNc1FyC8.js";
9
9
  import * as T from "react";
10
10
  import { useLayoutEffect as E, useRef as D, useSyncExternalStore as O } from "react";
11
11
  import { jsx as k, jsxs as A } from "react/jsx-runtime";
@@ -0,0 +1,48 @@
1
+ import { o as e, r as t, t as n } from "./key-layout-D2goCDkD.js";
2
+ //#endregion
3
+ //#region lib/components/ui/widgets/calculator/variants/standard/standard-layout.ts
4
+ var r = {
5
+ columns: 12,
6
+ rows: [
7
+ [
8
+ t("open", "(", "(", "bracket", "open-paren", "Open parenthesis", 2),
9
+ t("close", ")", ")", "bracket", "close-paren", "Close parenthesis", 2),
10
+ t("mc", "mc", "MC", "memory", "memory-clear", "Memory clear", 2),
11
+ t("mr", "mr", "MR", "memory", "memory-recall", "Memory recall", 2),
12
+ t("m+", "m+", "M+", "memory", "memory-add", "Add to memory", 2),
13
+ t("m-", "m-", "M−", "memory", "memory-subtract", "Subtract from memory", 2)
14
+ ],
15
+ e([
16
+ t("clear", "C", "C", "utility", "clear", "Clear all"),
17
+ t("sign", "±", "±", "utility", "sign", "Change sign"),
18
+ t("percent", "%", "%", "utility", "percent", "Percent"),
19
+ t("divide", "/", "÷", "operator", "divide", "Divided by")
20
+ ]),
21
+ e([
22
+ n(7),
23
+ n(8),
24
+ n(9),
25
+ t("multiply", "*", "×", "operator", "multiply", "Times")
26
+ ]),
27
+ e([
28
+ n(4),
29
+ n(5),
30
+ n(6),
31
+ t("subtract", "-", "−", "operator", "subtract", "Minus")
32
+ ]),
33
+ e([
34
+ n(1),
35
+ n(2),
36
+ n(3),
37
+ t("add", "+", "+", "operator", "add", "Plus")
38
+ ]),
39
+ e([
40
+ n(0),
41
+ t("decimal", ".", ".", "digit", "decimal", "Decimal separator"),
42
+ t("backspace", "backspace", "⌫", "utility", "backspace", "Delete last character"),
43
+ t("equals", "=", "=", "equals", "equals", "Equals")
44
+ ])
45
+ ]
46
+ };
47
+ //#endregion
48
+ export { r as t };
@@ -3,7 +3,7 @@ import { n as t } from "./dist-DVRQkaTK.js";
3
3
  import { i as n, r, t as i } from "./dist-DWZXlCZR.js";
4
4
  import { a, i as o, r as s } from "./dist-DHdUUM1w.js";
5
5
  import { i as c, n as l, r as u, t as d } from "./dist-DOK3zo5C.js";
6
- import { t as f } from "./use-material-translation-CLNaMhUf.js";
6
+ import { t as f } from "./use-material-translation-uNc1FyC8.js";
7
7
  import * as p from "react";
8
8
  import { createContext as m, useCallback as h, useContext as g, useEffect as ee, useLayoutEffect as _, useRef as v, useState as te } from "react";
9
9
  import { Fragment as ne, jsx as y, jsxs as b } from "react/jsx-runtime";
@@ -1,7 +1,8 @@
1
1
  import { t as e } from "./utils-BLfntITJ.js";
2
- import { a as t, i as n, n as r } from "./field-blur-context-BLGgf_3z.js";
3
- import { t as i } from "./dist-DkQbkF9T.js";
4
- import { t as a } from "./icon-button-BSVpO1jP.js";
2
+ import { t } from "./label-DR-zZyGQ.js";
3
+ import { t as n } from "./dist-DkQbkF9T.js";
4
+ import { t as r } from "./icon-button-BIAubLeJ.js";
5
+ import { i, n as a } from "./field-blur-context-3rKussBQ.js";
5
6
  import { t as o } from "./compose-refs-G4J4kaUA.js";
6
7
  import { a as s, o as c, t as l } from "./input-CC2joTjB.js";
7
8
  import { isValidElement as u, useEffect as d, useId as f, useMemo as p, useRef as m, useState as h } from "react";
@@ -16,7 +17,7 @@ function y({ className: t, ...n }) {
16
17
  ...n
17
18
  });
18
19
  }
19
- var b = i("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none [&>kbd]:rounded-field-inner [&>svg:not([class*='size-'])]:size-4", {
20
+ var b = n("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none [&>kbd]:rounded-field-inner [&>svg:not([class*='size-'])]:size-4", {
20
21
  variants: { align: {
21
22
  "inline-start": "order-first ps-3 has-[>button]:ps-[0.3rem] has-[>kbd]:ps-[0.4rem]",
22
23
  "inline-end": "order-last pe-3 has-[>button]:pe-[0.3rem] has-[>kbd]:pe-[0.4rem]",
@@ -37,12 +38,12 @@ function x({ className: t, align: n = "inline-start", ...r }) {
37
38
  ...r
38
39
  });
39
40
  }
40
- function S({ className: t, type: n = "button", variant: r = "ghost", ...i }) {
41
- return /* @__PURE__ */ g(a, {
41
+ function S({ className: t, type: n = "button", variant: i = "ghost", ...a }) {
42
+ return /* @__PURE__ */ g(r, {
42
43
  type: n,
43
- variant: r,
44
+ variant: i,
44
45
  className: e("size-8", t),
45
- ...i
46
+ ...a
46
47
  });
47
48
  }
48
49
  function C({ className: t, ...n }) {
@@ -126,9 +127,9 @@ function A({ leading: t, trailing: n, ref: r, ...i }) {
126
127
  }
127
128
  //#endregion
128
129
  //#region lib/components/ui/fields/text-field/text-field.tsx
129
- function j({ error: i, helperText: a, label: o, className: s, leading: c, trailing: d, ...p }) {
130
- let m = r(), h = f(), y = f(), b = v(p["aria-describedby"], !!a && y), x = !!c && !u(c), S = !!d && !u(d), C = {
131
- "aria-invalid": i,
130
+ function j({ error: n, helperText: r, label: o, className: s, leading: c, trailing: d, ...p }) {
131
+ let m = a(), h = f(), y = f(), b = v(p["aria-describedby"], !!r && y), x = !!c && !u(c), S = !!d && !u(d), C = {
132
+ "aria-invalid": n,
132
133
  ...p,
133
134
  id: p.id ?? h,
134
135
  "aria-describedby": b
@@ -151,16 +152,16 @@ function j({ error: i, helperText: a, label: o, className: s, leading: c, traili
151
152
  ref: m,
152
153
  "data-slot": "text-field",
153
154
  className: e("grid w-full content-start gap-1.5", s),
154
- children: [/* @__PURE__ */ g(n, {
155
+ children: [/* @__PURE__ */ g(t, {
155
156
  withAsterisk: p.required,
156
157
  htmlFor: p.id ?? h,
157
158
  children: o
158
159
  }), /* @__PURE__ */ _("div", {
159
160
  className: "flex flex-col gap-0.5",
160
- children: [w, a ? /* @__PURE__ */ g(t, {
161
+ children: [w, r ? /* @__PURE__ */ g(i, {
161
162
  id: y,
162
- error: i,
163
- children: a
163
+ error: n,
164
+ children: r
164
165
  }) : null]
165
166
  })]
166
167
  });