@alfadocs/ui-kit 1.54.2 → 1.54.3

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 (146) hide show
  1. package/dist/_chunks/{address-fields-1pD-8hML.js → address-fields-BaClzQLM.js} +5 -5
  2. package/dist/_chunks/{anamnesis-summary-rows-BMjSBqhS.js → anamnesis-summary-rows-Brru7JrH.js} +3 -3
  3. package/dist/_chunks/{balance-badge-cell-BDX1Krdv.js → balance-badge-cell-C5hmahoB.js} +2 -2
  4. package/dist/_chunks/{bishop-score-CGAVpIWL.js → bishop-score-BzvVol-u.js} +2 -2
  5. package/dist/_chunks/{bmi-calculator-g_wjo4nq.js → bmi-calculator-CDmQk0b5.js} +2 -2
  6. package/dist/_chunks/{booking-BN7TXe27.js → booking-BGY3LUi8.js} +5 -5
  7. package/dist/_chunks/{calendar-workspace-BbZIx2PT.js → calendar-workspace-BJPhMb2c.js} +8 -8
  8. package/dist/_chunks/{city-input-DyxVWSRQ.js → city-input-BL5WsGJ3.js} +2 -2
  9. package/dist/_chunks/{cycle-calculator-CwDEdmda.js → cycle-calculator-LjsQd9Gl.js} +2 -2
  10. package/dist/_chunks/{data-table-DeUoJzNn.js → data-table-BErtJzaT.js} +2 -2
  11. package/dist/_chunks/{data-table-tabs-BfEmXvUk.js → data-table-tabs-D5nFZKxg.js} +2 -2
  12. package/dist/_chunks/{due-date-calculator-_0Dz_d7n.js → due-date-calculator-mDvGKmRV.js} +2 -2
  13. package/dist/_chunks/{email-input-Cmeo4zdT.js → email-input-DQixfopu.js} +2 -2
  14. package/dist/_chunks/{face-scheme-pZgT26gB.js → face-scheme-Doodi6A6.js} +2 -2
  15. package/dist/_chunks/{fetal-weight-CbE61Uyk.js → fetal-weight-DBgEaMoJ.js} +2 -2
  16. package/dist/_chunks/{file-manager-DdsAd4TQ.js → file-manager-BDNSnr7f.js} +3 -3
  17. package/dist/_chunks/{forgot-password-form-DVVOBEGj.js → forgot-password-form-Duu3pZDU.js} +3 -3
  18. package/dist/_chunks/{form-field-D9WfDpYB.js → form-field-Db0liyI8.js} +72 -63
  19. package/dist/_chunks/{gestational-age-calculator-BMkoLJGR.js → gestational-age-calculator-BVBz_5dm.js} +2 -2
  20. package/dist/_chunks/{hcg-doubling-BtW2pBJX.js → hcg-doubling-BECrAUu3.js} +2 -2
  21. package/dist/_chunks/{help-me-write-templates-Cy-iO5AU.js → help-me-write-templates-B4Y8dBv1.js} +3 -3
  22. package/dist/_chunks/{icon-picker-CSViTQL9.js → icon-picker-JZzs1ol_.js} +2 -2
  23. package/dist/_chunks/{kit-extensions-Kca1tkfP.js → kit-extensions-GQHKTLWI.js} +6 -6
  24. package/dist/_chunks/{login-dev-card-q7iTojvV.js → login-dev-card-DletSsX3.js} +4 -4
  25. package/dist/_chunks/{notes-panel-BPb-2ZnJ.js → notes-panel-DWJY3WV8.js} +2 -2
  26. package/dist/_chunks/{password-input-B7pQTk7l.js → password-input-6Yl6x1IO.js} +2 -2
  27. package/dist/_chunks/{patient-details-BP9r_lNS.js → patient-details-D7QlsGK1.js} +2 -2
  28. package/dist/_chunks/{patient-field-row-BK9JjbzA.js → patient-field-row-Dr-ndtG8.js} +5 -5
  29. package/dist/_chunks/{patient-summary-card-DGbRLzF1.js → patient-summary-card-A3WhxFwp.js} +2 -2
  30. package/dist/_chunks/{postal-code-input-BmbqjkfD.js → postal-code-input-lCk8me6K.js} +2 -2
  31. package/dist/_chunks/{pregnancy-dating-DV3o2PPl.js → pregnancy-dating-BEmsMys4.js} +2 -2
  32. package/dist/_chunks/{pregnancy-weight-gain-BLjWgtS9.js → pregnancy-weight-gain-DMVPvM3a.js} +2 -2
  33. package/dist/_chunks/{radiograph-panel.agent-C4j6eoQn.js → radiograph-panel.agent-rS3Tegx6.js} +2 -2
  34. package/dist/_chunks/{registration-form-CBDeXzlk.js → registration-form-Lz9iKrKo.js} +246 -235
  35. package/dist/_chunks/{rich-text-editor-CCCSEPlG.js → rich-text-editor-DmnWavgl.js} +2 -2
  36. package/dist/_chunks/{search-bar-D695TCDH.js → search-bar-ORcfuK9A.js} +2 -2
  37. package/dist/_chunks/{search-input-Tl-RkS5x.js → search-input-6SoR2Rf4.js} +2 -2
  38. package/dist/_chunks/{task-editor-Dl27rI3J.js → task-editor-i-juLk76.js} +3 -3
  39. package/dist/_chunks/{text-input-lZ2-t-p2.js → text-input-rzLEKhRU.js} +145 -97
  40. package/dist/_chunks/{transcript-panel-CLgtyVbR.js → transcript-panel-jOCW4Ycl.js} +2 -2
  41. package/dist/_chunks/{unit-converter-CXNr5P4J.js → unit-converter-Bvhj9r3m.js} +2 -2
  42. package/dist/_chunks/{use-appointment-details-read-BEbLseXW.js → use-appointment-details-read-B6dBBgDa.js} +3 -3
  43. package/dist/_chunks/{widget-picker-BCbwD5Z1.js → widget-picker-Ck8HTsil.js} +2 -2
  44. package/dist/agent-catalog.json +1 -1
  45. package/dist/components/address-fields/index.js +1 -1
  46. package/dist/components/appointment-details-panel/index.js +1 -1
  47. package/dist/components/bishop-score/index.js +1 -1
  48. package/dist/components/bmi-calculator/index.js +1 -1
  49. package/dist/components/booking/index.js +1 -1
  50. package/dist/components/city-input/index.js +1 -1
  51. package/dist/components/cycle-calculator/index.js +1 -1
  52. package/dist/components/data-table/index.js +1 -1
  53. package/dist/components/data-table-tabs/index.js +1 -1
  54. package/dist/components/due-date-calculator/index.js +1 -1
  55. package/dist/components/email-input/index.js +1 -1
  56. package/dist/components/face-scheme/index.js +1 -1
  57. package/dist/components/fetal-weight/index.js +1 -1
  58. package/dist/components/file-manager/index.js +1 -1
  59. package/dist/components/form-field/form-field-context.d.ts +5 -0
  60. package/dist/components/form-field/index.js +1 -1
  61. package/dist/components/gestational-age-calculator/index.js +1 -1
  62. package/dist/components/hcg-doubling/index.js +1 -1
  63. package/dist/components/icon-picker/index.js +1 -1
  64. package/dist/components/notes-panel/index.js +1 -1
  65. package/dist/components/password-input/index.js +1 -1
  66. package/dist/components/patient-details/index.js +1 -1
  67. package/dist/components/patient-summary-card/index.js +1 -1
  68. package/dist/components/patient-table/index.js +1 -1
  69. package/dist/components/postal-code-input/index.js +1 -1
  70. package/dist/components/pregnancy-dating/index.js +1 -1
  71. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  72. package/dist/components/radiograph-panel/index.js +1 -1
  73. package/dist/components/rich-text-editor/index.js +2 -2
  74. package/dist/components/search-bar/index.js +1 -1
  75. package/dist/components/search-input/index.js +1 -1
  76. package/dist/components/task-editor/index.js +1 -1
  77. package/dist/components/text-input/index.js +1 -1
  78. package/dist/components/text-input/text-input.d.ts +13 -0
  79. package/dist/components/transcript-panel/index.js +1 -1
  80. package/dist/components/unit-converter/index.js +1 -1
  81. package/dist/components/widget-picker/index.js +1 -1
  82. package/dist/hooks/use-field-match.d.ts +3 -2
  83. package/dist/i18n/locales/ar.d.ts +4 -0
  84. package/dist/i18n/locales/ar.js +4 -0
  85. package/dist/i18n/locales/de.d.ts +4 -0
  86. package/dist/i18n/locales/de.js +4 -0
  87. package/dist/i18n/locales/el.d.ts +4 -0
  88. package/dist/i18n/locales/el.js +4 -0
  89. package/dist/i18n/locales/en.d.ts +4 -0
  90. package/dist/i18n/locales/en.js +4 -0
  91. package/dist/i18n/locales/es.d.ts +4 -0
  92. package/dist/i18n/locales/es.js +4 -0
  93. package/dist/i18n/locales/fr.d.ts +4 -0
  94. package/dist/i18n/locales/fr.js +4 -0
  95. package/dist/i18n/locales/hi.d.ts +4 -0
  96. package/dist/i18n/locales/hi.js +4 -0
  97. package/dist/i18n/locales/it.d.ts +4 -0
  98. package/dist/i18n/locales/it.js +4 -0
  99. package/dist/i18n/locales/ja.d.ts +4 -0
  100. package/dist/i18n/locales/ja.js +4 -0
  101. package/dist/i18n/locales/nl.d.ts +4 -0
  102. package/dist/i18n/locales/nl.js +4 -0
  103. package/dist/i18n/locales/pl.d.ts +4 -0
  104. package/dist/i18n/locales/pl.js +4 -0
  105. package/dist/i18n/locales/pt.d.ts +4 -0
  106. package/dist/i18n/locales/pt.js +4 -0
  107. package/dist/i18n/locales/ro.d.ts +4 -0
  108. package/dist/i18n/locales/ro.js +4 -0
  109. package/dist/i18n/locales/ru.d.ts +4 -0
  110. package/dist/i18n/locales/ru.js +4 -0
  111. package/dist/i18n/locales/sq.d.ts +4 -0
  112. package/dist/i18n/locales/sq.js +4 -0
  113. package/dist/i18n/locales/sv.d.ts +4 -0
  114. package/dist/i18n/locales/sv.js +4 -0
  115. package/dist/i18n/locales/tr.d.ts +4 -0
  116. package/dist/i18n/locales/tr.js +4 -0
  117. package/dist/i18n/locales/zh.d.ts +4 -0
  118. package/dist/i18n/locales/zh.js +4 -0
  119. package/dist/index.js +42 -42
  120. package/dist/locales/ar.json +4 -0
  121. package/dist/locales/de.json +4 -0
  122. package/dist/locales/el.json +4 -0
  123. package/dist/locales/en.json +4 -0
  124. package/dist/locales/es.json +4 -0
  125. package/dist/locales/fr.json +4 -0
  126. package/dist/locales/hi.json +4 -0
  127. package/dist/locales/it.json +4 -0
  128. package/dist/locales/ja.json +4 -0
  129. package/dist/locales/nl.json +4 -0
  130. package/dist/locales/pl.json +4 -0
  131. package/dist/locales/pt.json +4 -0
  132. package/dist/locales/ro.json +4 -0
  133. package/dist/locales/ru.json +4 -0
  134. package/dist/locales/sq.json +4 -0
  135. package/dist/locales/sv.json +4 -0
  136. package/dist/locales/tr.json +4 -0
  137. package/dist/locales/zh.json +4 -0
  138. package/dist/patterns/anamnesis/index.js +1 -1
  139. package/dist/patterns/calendar/index.js +1 -1
  140. package/dist/patterns/forgot-password-form/index.js +1 -1
  141. package/dist/patterns/help-me-write-templates/index.js +1 -1
  142. package/dist/patterns/login-form/index.js +1 -1
  143. package/dist/patterns/registration-form/index.d.ts +1 -1
  144. package/dist/patterns/registration-form/index.js +1 -1
  145. package/dist/patterns/registration-form/registration-form.d.ts +16 -0
  146. package/package.json +1 -1
@@ -25,7 +25,7 @@ import { a as Fn } from "./tooltip-Cp-PLePW.js";
25
25
  import { P as ne } from "./popover-9_v-7fJc.js";
26
26
  import { D as ae } from "./dialog-D52AI4nF.js";
27
27
  import { C as jn } from "./color-picker-Bu0wM8xv.js";
28
- import { T as en } from "./text-input-lZ2-t-p2.js";
28
+ import { T as en } from "./text-input-rzLEKhRU.js";
29
29
  import { C as li } from "./checkbox--ndmyokr.js";
30
30
  import { F as ci } from "./file-upload-CxjCs7TX.js";
31
31
  import { c as I } from "./createLucideIcon-DhHxpK9K.js";
@@ -4228,4 +4228,4 @@ export {
4228
4228
  Sa as r,
4229
4229
  As as w
4230
4230
  };
4231
- //# sourceMappingURL=rich-text-editor-CCCSEPlG.js.map
4231
+ //# sourceMappingURL=rich-text-editor-DmnWavgl.js.map
@@ -3,7 +3,7 @@ import { forwardRef as te, useState as j, useEffect as F, useRef as _, useMemo a
3
3
  import { c as A } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as U } from "react-i18next";
5
5
  import * as P from "@radix-ui/react-popover";
6
- import { S as oe } from "./search-input-Tl-RkS5x.js";
6
+ import { S as oe } from "./search-input-6SoR2Rf4.js";
7
7
  import { b as ie } from "./menu-row-BAr8bx1I.js";
8
8
  import { u as W } from "./registry-DvAUVLHh.js";
9
9
  import { n as O } from "./normalize-diacritics-BNGbFNlJ.js";
@@ -611,4 +611,4 @@ export {
611
611
  Me as f,
612
612
  J as s
613
613
  };
614
- //# sourceMappingURL=search-bar-D695TCDH.js.map
614
+ //# sourceMappingURL=search-bar-ORcfuK9A.js.map
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as ne } from "react/jsx-runtime";
2
2
  import { forwardRef as ie, useState as R, useRef as K, useCallback as V, useImperativeHandle as oe, useEffect as de } from "react";
3
3
  import { c as x } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as le } from "react-i18next";
5
- import { T as ce } from "./text-input-lZ2-t-p2.js";
5
+ import { T as ce } from "./text-input-rzLEKhRU.js";
6
6
  import { S as ue } from "./spinner-a0FTYX9Q.js";
7
7
  import { u as fe, a as me } from "./form-field-context-DtiROUJV.js";
8
8
  import { u as be } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
@@ -234,4 +234,4 @@ we.displayName = "SearchInput";
234
234
  export {
235
235
  we as S
236
236
  };
237
- //# sourceMappingURL=search-input-Tl-RkS5x.js.map
237
+ //# sourceMappingURL=search-input-6SoR2Rf4.js.map
@@ -8,7 +8,7 @@ import { I as We } from "./icon-button-mKIvw90h.js";
8
8
  import { C as Qe } from "./combobox-DppVSuUm.js";
9
9
  import { D as ce } from "./dialog-D52AI4nF.js";
10
10
  import { D as Bt } from "./date-picker-BnhBmcH6.js";
11
- import { F as H } from "./form-field-D9WfDpYB.js";
11
+ import { F as H } from "./form-field-Db0liyI8.js";
12
12
  import { I as Ft } from "./icon-button-group-BsQkbCX4.js";
13
13
  import { P as Pt } from "./panel-header-D_mTdhUp.js";
14
14
  import { P as Ot } from "./panel-subview-D8HGXaUa.js";
@@ -19,7 +19,7 @@ import { S as Ke } from "./select-DHPmASkG.js";
19
19
  import { S as He } from "./skeleton-B1KTdJ4N.js";
20
20
  import { S as $t } from "./switch-D--x7n6h.js";
21
21
  import { T as zt } from "./text-area-CDuItrvL.js";
22
- import { T as Oe } from "./text-input-lZ2-t-p2.js";
22
+ import { T as Oe } from "./text-input-rzLEKhRU.js";
23
23
  import { T as qt } from "./time-picker-DKKmpFh3.js";
24
24
  import { u as Vt } from "./registry-DvAUVLHh.js";
25
25
  import { u as Lt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
@@ -1240,4 +1240,4 @@ export {
1240
1240
  vo as T,
1241
1241
  lo as t
1242
1242
  };
1243
- //# sourceMappingURL=task-editor-Dl27rI3J.js.map
1243
+ //# sourceMappingURL=task-editor-i-juLk76.js.map
@@ -1,12 +1,12 @@
1
- import { jsxs as ee, jsx as d } from "react/jsx-runtime";
2
- import { forwardRef as te, useState as k, useRef as O, useCallback as R, useMemo as se } from "react";
3
- import { c as j } from "./index-D2ZczOXr.js";
4
- import { useTranslation as ae } from "react-i18next";
5
- import { u as re, a as ne } from "./form-field-context-DtiROUJV.js";
6
- import { I as ie, a as w, b as E } from "./input-surface-xyERuLU_.js";
7
- import { u as oe } from "./registry-DvAUVLHh.js";
8
- import { X as de } from "./x-B5YnXwCz.js";
9
- const ue = {
1
+ import { jsxs as Ie, jsx as c } from "react/jsx-runtime";
2
+ import { forwardRef as Te, useState as U, useRef as K, useEffect as B, useCallback as Q, useMemo as Ve } from "react";
3
+ import { c as Z } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as Se } from "react-i18next";
5
+ import { u as Re, a as ze } from "./form-field-context-DtiROUJV.js";
6
+ import { I as Oe, a as H, b as q } from "./input-surface-xyERuLU_.js";
7
+ import { u as _e } from "./registry-DvAUVLHh.js";
8
+ import { X as $e } from "./x-B5YnXwCz.js";
9
+ const je = {
10
10
  id: "text-input",
11
11
  capabilities: ["set_value"],
12
12
  state: {
@@ -35,8 +35,8 @@ const ue = {
35
35
  idempotent: !0,
36
36
  descriptionKey: "ui.agent.textInput.actions.setValue",
37
37
  description: "Replace the input value.",
38
- invoke: (s, l) => {
39
- s.setValue(l.value);
38
+ invoke: (s, b) => {
39
+ s.setValue(b.value);
40
40
  }
41
41
  },
42
42
  clear: {
@@ -69,7 +69,7 @@ const ue = {
69
69
  description: "Sourced from the id prop."
70
70
  }
71
71
  }
72
- }, le = j(
72
+ }, Ne = Z(
73
73
  [
74
74
  "ds:relative ds:flex ds:items-center ds:w-full",
75
75
  "ds:rounded-[var(--radius-sm)]",
@@ -78,7 +78,7 @@ const ue = {
78
78
  "ds:forced-colors:focus-within:outline-[CanvasText]",
79
79
  "ds:has-[:disabled]:cursor-not-allowed"
80
80
  ].join(" ")
81
- ), ce = j(
81
+ ), Pe = Z(
82
82
  [
83
83
  "ds:w-full ds:rounded-[var(--radius-sm)] ds:border ds:bg-input ds:text-foreground",
84
84
  "ds:shadow-[var(--shadow-input)]",
@@ -91,11 +91,11 @@ const ue = {
91
91
  {
92
92
  variants: {
93
93
  size: {
94
- sm: `${w.sm} ${E.sm}`,
95
- md: `${w.md} ${E.md}`,
96
- lg: `${w.lg} ${E.lg}`
94
+ sm: `${H.sm} ${q.sm}`,
95
+ md: `${H.md} ${q.md}`,
96
+ lg: `${H.lg} ${q.lg}`
97
97
  },
98
- tone: ie,
98
+ tone: Oe,
99
99
  hasStart: {
100
100
  true: "ds:ps-10",
101
101
  false: ""
@@ -120,50 +120,91 @@ const ue = {
120
120
  hasEnd: !1
121
121
  }
122
122
  }
123
- ), _ = "ds:absolute ds:inset-y-0 ds:flex ds:items-center ds:pointer-events-none ds:text-muted-foreground", pe = te(
123
+ ), Y = "ds:absolute ds:inset-y-0 ds:flex ds:items-center ds:pointer-events-none ds:text-muted-foreground", ke = Te(
124
124
  ({
125
125
  size: s = "md",
126
- tone: l = "default",
127
- startAdornment: c,
128
- endAdornment: p,
129
- clearable: $ = !1,
130
- onClear: f,
131
- className: F,
132
- id: m,
133
- disabled: U,
134
- value: I,
135
- defaultValue: D,
136
- onChange: a,
137
- onCompositionStart: v,
138
- onCompositionEnd: g,
139
- ...T
140
- }, o) => {
141
- const { t: K } = ae("ui"), i = re(), B = ne(i, m), S = i.disabled || U, H = i.invalid ? "error" : l, u = I !== void 0, [q, h] = k(
142
- String(D ?? "")
143
- ), V = u ? String(I) : q, M = V.length > 0, b = O(!1), [W, z] = k(!1), r = O(null), X = R(
126
+ tone: b = "default",
127
+ startAdornment: x,
128
+ endAdornment: w,
129
+ clearable: C = !1,
130
+ onClear: E,
131
+ className: ee,
132
+ id: I,
133
+ disabled: te,
134
+ value: M,
135
+ defaultValue: se,
136
+ onChange: i,
137
+ onCompositionStart: T,
138
+ onCompositionEnd: V,
139
+ blockPaste: h = !1,
140
+ blockCopy: p = !1,
141
+ onPaste: S,
142
+ onDrop: R,
143
+ onCopy: z,
144
+ onCut: O,
145
+ onDragStart: _,
146
+ onBlur: $,
147
+ ...D
148
+ }, f) => {
149
+ const { t: j } = Se("ui"), n = Re(), ae = ze(n, I), W = n.disabled || te, ie = n.invalid ? "error" : b, g = M !== void 0, [ne, N] = U(
150
+ String(se ?? "")
151
+ ), X = g ? String(M) : ne, re = X.length > 0, P = K(!1), [de, A] = U(!1), [u, k] = U(void 0), l = u && (u.kind === "paste" ? h : p) ? u : void 0, m = l ? l.kind === "paste" ? j(
152
+ "inputs.clipboard.pasteBlocked",
153
+ "Pasting is turned off for this field. Please type it."
154
+ ) : j(
155
+ "inputs.clipboard.copyBlocked",
156
+ "Copying is turned off for this field."
157
+ ) : void 0, a = n.setNotice, y = K(!1);
158
+ B(() => {
159
+ m !== void 0 ? (y.current = !0, a == null || a(m)) : y.current && (y.current = !1, a == null || a(void 0));
160
+ }, [m, a]), B(
161
+ () => () => {
162
+ y.current && (a == null || a(void 0));
163
+ },
164
+ [a]
165
+ ), B(() => {
166
+ u && !l && k(void 0);
167
+ }, [u, l]);
168
+ const v = (e, t) => {
169
+ e.preventDefault(), k((d) => ({ kind: t, count: ((d == null ? void 0 : d.count) ?? 0) + 1 }));
170
+ }, G = () => {
171
+ u !== void 0 && k(void 0);
172
+ }, oe = (e) => {
173
+ h && v(e, "paste"), S == null || S(e);
174
+ }, ue = (e) => {
175
+ h && v(e, "paste"), R == null || R(e);
176
+ }, le = (e) => {
177
+ p && v(e, "copy"), z == null || z(e);
178
+ }, ce = (e) => {
179
+ p && v(e, "copy"), O == null || O(e);
180
+ }, pe = (e) => {
181
+ p && v(e, "copy"), _ == null || _(e);
182
+ }, fe = (e) => {
183
+ G(), $ == null || $(e);
184
+ }, r = K(null), me = Q(
144
185
  (e) => {
145
- r.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
186
+ r.current = e, typeof f == "function" ? f(e) : f && (f.current = e);
146
187
  },
147
- [o]
148
- ), A = !!c, N = $ && M && !S && !T.readOnly, G = !!p || N, L = (e) => {
149
- u || h(e.target.value), !b.current && (a == null || a(e));
150
- }, J = (e) => {
151
- b.current = !0, z(!0), v == null || v(e);
152
- }, Q = (e) => {
153
- b.current = !1, z(!1), g == null || g(e);
188
+ [f]
189
+ ), ve = !!x, L = C && re && !W && !D.readOnly, he = !!w || L, ge = (e) => {
190
+ G(), g || N(e.target.value), !P.current && (i == null || i(e));
191
+ }, ye = (e) => {
192
+ P.current = !0, A(!0), T == null || T(e);
193
+ }, be = (e) => {
194
+ P.current = !1, A(!1), V == null || V(e);
154
195
  const t = e.currentTarget;
155
- u || h(t.value), a == null || a({
196
+ g || N(t.value), i == null || i({
156
197
  ...e,
157
198
  target: t,
158
199
  currentTarget: t
159
200
  });
160
- }, Y = () => {
201
+ }, xe = () => {
161
202
  var t;
162
- u || h("");
203
+ g || N("");
163
204
  const e = r.current;
164
- if (e && a) {
165
- const x = Object.getPrototypeOf(e), n = (t = Object.getOwnPropertyDescriptor(x, "value")) == null ? void 0 : t.set;
166
- n == null || n.call(e, ""), a({
205
+ if (e && i) {
206
+ const d = Object.getPrototypeOf(e), o = (t = Object.getOwnPropertyDescriptor(d, "value")) == null ? void 0 : t.set;
207
+ o == null || o.call(e, ""), i({
167
208
  target: e,
168
209
  currentTarget: e,
169
210
  bubbles: !0,
@@ -179,105 +220,112 @@ const ue = {
179
220
  }
180
221
  });
181
222
  }
182
- f == null || f(), e == null || e.focus();
183
- }, y = R((e) => {
184
- var P;
223
+ E == null || E(), e == null || e.focus();
224
+ }, F = Q((e) => {
225
+ var J;
185
226
  const t = r.current;
186
227
  if (!t) return;
187
- const x = Object.getPrototypeOf(t), n = (P = Object.getOwnPropertyDescriptor(x, "value")) == null ? void 0 : P.set;
188
- n == null || n.call(t, e), t.dispatchEvent(new Event("input", { bubbles: !0 })), t.dispatchEvent(new Event("change", { bubbles: !0 }));
189
- }, []), Z = se(
228
+ const d = Object.getPrototypeOf(t), o = (J = Object.getOwnPropertyDescriptor(d, "value")) == null ? void 0 : J.set;
229
+ o == null || o.call(t, e), t.dispatchEvent(new Event("input", { bubbles: !0 })), t.dispatchEvent(new Event("change", { bubbles: !0 }));
230
+ }, []), we = Ve(
190
231
  () => ({
191
232
  getValue: () => {
192
233
  var e;
193
234
  return ((e = r.current) == null ? void 0 : e.value) ?? "";
194
235
  },
195
236
  setValue: (e) => {
196
- y(e);
237
+ F(e);
197
238
  },
198
239
  clear: () => {
199
- y("");
240
+ F("");
200
241
  },
201
242
  focus: () => {
202
243
  var e;
203
244
  (e = r.current) == null || e.focus();
204
245
  }
205
246
  }),
206
- [y]
247
+ [F]
207
248
  );
208
- oe(ue, Z, m);
209
- const C = (e) => {
249
+ _e(je, we, I);
250
+ const Ee = (e) => {
210
251
  var t;
211
252
  e.target !== r.current && (e.target.closest("button") || (t = r.current) == null || t.focus());
212
253
  };
213
254
  return (
214
255
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions -- click on wrapper forwards focus to the inner input; keyboard interaction stays on the input itself
215
- /* @__PURE__ */ ee(
256
+ /* @__PURE__ */ Ie(
216
257
  "div",
217
258
  {
218
- className: le(),
219
- onClick: C,
259
+ className: Ne(),
260
+ onClick: Ee,
220
261
  "data-component": "text-input",
221
- "data-component-id": m,
222
- "data-composing": W ? "true" : void 0,
262
+ "data-component-id": I,
263
+ "data-composing": de ? "true" : void 0,
223
264
  children: [
224
- c ? /* @__PURE__ */ d(
265
+ x ? /* @__PURE__ */ c(
225
266
  "span",
226
267
  {
227
268
  "aria-hidden": "true",
228
- className: `${_} ds:start-0 ds:ps-3 ds:[&_svg]:size-4`,
229
- children: c
269
+ className: `${Y} ds:start-0 ds:ps-3 ds:[&_svg]:size-4`,
270
+ children: x
230
271
  }
231
272
  ) : null,
232
- /* @__PURE__ */ d(
273
+ /* @__PURE__ */ c(
233
274
  "input",
234
275
  {
235
- ref: X,
236
- id: B,
276
+ ref: me,
277
+ id: ae,
237
278
  type: "text",
238
- value: V,
239
- disabled: S,
240
- "aria-describedby": i.describedBy || void 0,
241
- "aria-invalid": i.invalid || void 0,
242
- "aria-required": i.required || void 0,
243
- onChange: L,
244
- onCompositionStart: J,
245
- onCompositionEnd: Q,
246
- className: ce({
279
+ value: X,
280
+ disabled: W,
281
+ "aria-describedby": n.describedBy || void 0,
282
+ "aria-invalid": n.invalid || void 0,
283
+ "aria-required": n.required || void 0,
284
+ onChange: ge,
285
+ onCompositionStart: ye,
286
+ onCompositionEnd: be,
287
+ onPaste: oe,
288
+ onDrop: ue,
289
+ onCopy: le,
290
+ onCut: ce,
291
+ onDragStart: pe,
292
+ onBlur: fe,
293
+ className: Pe({
247
294
  size: s,
248
- tone: H,
249
- hasStart: A,
250
- hasEnd: G,
251
- className: F
295
+ tone: ie,
296
+ hasStart: ve,
297
+ hasEnd: he,
298
+ className: ee
252
299
  }),
253
- ...T
300
+ ...D
254
301
  }
255
302
  ),
256
- N ? /* @__PURE__ */ d(
303
+ L ? /* @__PURE__ */ c(
257
304
  "button",
258
305
  {
259
306
  type: "button",
260
- "aria-label": K("inputs.text.clear", "Clear input"),
261
- onClick: Y,
307
+ "aria-label": j("inputs.text.clear", "Clear input"),
308
+ onClick: xe,
262
309
  className: "ds:absolute ds:inset-y-0 ds:end-0 ds:pe-3 ds:flex ds:items-center ds:pointer-events-auto ds:text-muted-foreground ds:hover:text-foreground ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
263
- children: /* @__PURE__ */ d(de, { "aria-hidden": "true", className: "ds:size-4" })
310
+ children: /* @__PURE__ */ c($e, { "aria-hidden": "true", className: "ds:size-4" })
264
311
  }
265
- ) : p ? /* @__PURE__ */ d(
312
+ ) : w ? /* @__PURE__ */ c(
266
313
  "span",
267
314
  {
268
315
  "aria-hidden": "true",
269
- className: `${_} ds:end-0 ds:pe-3 ds:[&_svg]:size-4`,
270
- children: p
316
+ className: `${Y} ds:end-0 ds:pe-3 ds:[&_svg]:size-4`,
317
+ children: w
271
318
  }
272
- ) : null
319
+ ) : null,
320
+ h || p ? /* @__PURE__ */ c("span", { role: "status", className: "ds:sr-only", children: l && m ? `${m}${l.count % 2 === 0 ? " " : ""}` : "" }) : null
273
321
  ]
274
322
  }
275
323
  )
276
324
  );
277
325
  }
278
326
  );
279
- pe.displayName = "TextInput";
327
+ ke.displayName = "TextInput";
280
328
  export {
281
- pe as T
329
+ ke as T
282
330
  };
283
- //# sourceMappingURL=text-input-lZ2-t-p2.js.map
331
+ //# sourceMappingURL=text-input-rzLEKhRU.js.map
@@ -4,7 +4,7 @@ import { c as V } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as q } from "react-i18next";
5
5
  import { u as D } from "./registry-DvAUVLHh.js";
6
6
  import { u as B } from "./index-CJE9uQmb.js";
7
- import { S as U } from "./search-input-Tl-RkS5x.js";
7
+ import { S as U } from "./search-input-6SoR2Rf4.js";
8
8
  import { P as G } from "./panel-header-D_mTdhUp.js";
9
9
  import { u as Q } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
10
10
  import { F as W } from "./file-text-5yv6r2ls.js";
@@ -371,4 +371,4 @@ export {
371
371
  ae as T,
372
372
  Y as t
373
373
  };
374
- //# sourceMappingURL=transcript-panel-CLgtyVbR.js.map
374
+ //# sourceMappingURL=transcript-panel-jOCW4Ycl.js.map
@@ -3,7 +3,7 @@ import { forwardRef as H, useState as h, useMemo as $, useEffect as j, useRef as
3
3
  import { c as z } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as M } from "react-i18next";
5
5
  import { u as Y } from "./registry-DvAUVLHh.js";
6
- import { F as C } from "./form-field-D9WfDpYB.js";
6
+ import { F as C } from "./form-field-Db0liyI8.js";
7
7
  import { N as B } from "./number-input-DRDRYZJg.js";
8
8
  import { S } from "./select-DHPmASkG.js";
9
9
  import { I as D } from "./insert-result-BuWQl11Z.js";
@@ -334,4 +334,4 @@ export {
334
334
  ee as b,
335
335
  Q as c
336
336
  };
337
- //# sourceMappingURL=unit-converter-CXNr5P4J.js.map
337
+ //# sourceMappingURL=unit-converter-Bvhj9r3m.js.map
@@ -16,7 +16,7 @@ import { E as zt } from "./editable-description-CCrAEJMq.js";
16
16
  import { N as Xe } from "./note-timeline-CsY8YOE7.js";
17
17
  import { P as _t } from "./panel-header-D_mTdhUp.js";
18
18
  import { P as Ge } from "./panel-subview-D8HGXaUa.js";
19
- import { P as Ot } from "./patient-summary-card-DGbRLzF1.js";
19
+ import { P as Ot } from "./patient-summary-card-A3WhxFwp.js";
20
20
  import { S as ne } from "./section-card-XR2bW1Ie.js";
21
21
  import { C as nn, S as ue } from "./skeleton-B1KTdJ4N.js";
22
22
  import { T as an } from "./text-area-CDuItrvL.js";
@@ -53,7 +53,7 @@ import { P as vn } from "./phone-FceYcIFQ.js";
53
53
  import { M as yn } from "./mail-BqXVF2zH.js";
54
54
  import { M as bn } from "./map-pin-BaY37-Km.js";
55
55
  import { C as kn } from "./calendar-days-BGWklvE-.js";
56
- import { H as wn } from "./patient-field-row-BK9JjbzA.js";
56
+ import { H as wn } from "./patient-field-row-Dr-ndtG8.js";
57
57
  import { A as It } from "./armchair-BaLDW6Hz.js";
58
58
  import { B as xn } from "./building-2-D33bLCWL.js";
59
59
  import { N as Nn } from "./notebook-pen-CO7HoM-W.js";
@@ -2195,4 +2195,4 @@ export {
2195
2195
  Kn as s,
2196
2196
  Oi as u
2197
2197
  };
2198
- //# sourceMappingURL=use-appointment-details-read-BEbLseXW.js.map
2198
+ //# sourceMappingURL=use-appointment-details-read-B6dBBgDa.js.map
@@ -3,7 +3,7 @@ import { forwardRef as P, useState as N, useEffect as S, useMemo as f, useCallba
3
3
  import { c as _ } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as j } from "react-i18next";
5
5
  import { D as l } from "./dialog-D52AI4nF.js";
6
- import { T as z } from "./text-input-lZ2-t-p2.js";
6
+ import { T as z } from "./text-input-rzLEKhRU.js";
7
7
  import { B as C } from "./badge-hnBt8o7n.js";
8
8
  import { u as I } from "./registry-DvAUVLHh.js";
9
9
  import { S as L } from "./search-QbWPlY5f.js";
@@ -190,4 +190,4 @@ export {
190
190
  B as W,
191
191
  R as w
192
192
  };
193
- //# sourceMappingURL=widget-picker-BCbwD5Z1.js.map
193
+ //# sourceMappingURL=widget-picker-Ck8HTsil.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.54.2",
3
+ "packageVersion": "1.54.3",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -1,4 +1,4 @@
1
- import { A as e, a } from "../../_chunks/address-fields-1pD-8hML.js";
1
+ import { A as e, a } from "../../_chunks/address-fields-BaClzQLM.js";
2
2
  export {
3
3
  e as AddressFields,
4
4
  a as addressFieldsAgent
@@ -1,4 +1,4 @@
1
- import { A as e, a as n, p, u as s } from "../../_chunks/use-appointment-details-read-BEbLseXW.js";
1
+ import { A as e, a as n, p, u as s } from "../../_chunks/use-appointment-details-read-B6dBBgDa.js";
2
2
  export {
3
3
  e as AppointmentDetailsPanel,
4
4
  n as appointmentDetailsPanelAgent,
@@ -1,4 +1,4 @@
1
- import { B as O, a as S, b as o, c as B, d as P, e } from "../../_chunks/bishop-score-CGAVpIWL.js";
1
+ import { B as O, a as S, b as o, c as B, d as P, e } from "../../_chunks/bishop-score-BzvVol-u.js";
2
2
  export {
3
3
  O as BISHOP_COMPONENTS,
4
4
  S as BISHOP_MAX_SCORE,
@@ -1,4 +1,4 @@
1
- import { B as m } from "../../_chunks/bmi-calculator-g_wjo4nq.js";
1
+ import { B as m } from "../../_chunks/bmi-calculator-CDmQk0b5.js";
2
2
  import { b as e, a as t, c as r, d as T, e as c, f as i, i as b, k as n, l as f } from "../../_chunks/bmi-BxD-tFzU.js";
3
3
  export {
4
4
  m as BmiCalculator,
@@ -1,4 +1,4 @@
1
- import { B as A, C as R, O as a, b as s } from "../../_chunks/booking-BN7TXe27.js";
1
+ import { B as A, C as R, O as a, b as s } from "../../_chunks/booking-BGY3LUi8.js";
2
2
  export {
3
3
  A as Booking,
4
4
  R as CONFIRMATION_CHANNEL_ORDER,
@@ -1,4 +1,4 @@
1
- import { C as p, c as a } from "../../_chunks/city-input-DyxVWSRQ.js";
1
+ import { C as p, c as a } from "../../_chunks/city-input-BL5WsGJ3.js";
2
2
  export {
3
3
  p as CityInput,
4
4
  a as cityInputAgent
@@ -1,4 +1,4 @@
1
- import { C as e, L as l, p as r } from "../../_chunks/cycle-calculator-CwDEdmda.js";
1
+ import { C as e, L as l, p as r } from "../../_chunks/cycle-calculator-LjsQd9Gl.js";
2
2
  export {
3
3
  e as CycleCalculator,
4
4
  l as LUTEAL_PHASE_DAYS,
@@ -1,4 +1,4 @@
1
- import { D as r, E as l, T as t, a as s, b as d, c as o, d as n, e as i, f as R, i as C, g as T } from "../../_chunks/data-table-DeUoJzNn.js";
1
+ import { D as r, E as l, T as t, a as s, b as d, c as o, d as n, e as i, f as R, i as C, g as T } from "../../_chunks/data-table-BErtJzaT.js";
2
2
  import { B as g, C as D, a as b, E as x, b as c, R as p, T as u, c as m, r as E, u as f } from "../../_chunks/editable-currency-cell-renderer-CfFp_1hI.js";
3
3
  import { D as h, a as A, b as w, I as y, L as I, N as L, c as N, S as P, d as W, e as B, T as U, f as _, g as k, U as v } from "../../_chunks/link-cell-renderer-D-xv2HMS.js";
4
4
  import { A as X, a as j } from "../../_chunks/actions-cell-renderer-CjzSqMgn.js";
@@ -1,4 +1,4 @@
1
- import { D as b, d as t, a as T, b as e } from "../../_chunks/data-table-tabs-BfEmXvUk.js";
1
+ import { D as b, d as t, a as T, b as e } from "../../_chunks/data-table-tabs-D5nFZKxg.js";
2
2
  export {
3
3
  b as DataTableTabs,
4
4
  t as dataTableTabsAgent,
@@ -1,4 +1,4 @@
1
- import { D as e } from "../../_chunks/due-date-calculator-_0Dz_d7n.js";
1
+ import { D as e } from "../../_chunks/due-date-calculator-mDvGKmRV.js";
2
2
  import { C as r, a as o, D, G as _, M as T, T as M, c as E, b as l, g as C, p as A, r as N, d as i, t as n } from "../../_chunks/antenatal-schedule-timeline-BZzgjfyd.js";
3
3
  export {
4
4
  r as CRL_DATING_MAX_MM,
@@ -1,4 +1,4 @@
1
- import { E as t, e as m } from "../../_chunks/email-input-Cmeo4zdT.js";
1
+ import { E as t, e as m } from "../../_chunks/email-input-DQixfopu.js";
2
2
  export {
3
3
  t as EmailInput,
4
4
  m as emailInputAgent
@@ -1,4 +1,4 @@
1
- import { A as e, F as o, a as n, b as A, c as i, d as f, e as t, I, f as N, g as T, h as F, i as _, j as E, k as c, l as h, m as r, n as p, o as O, p as S, q as m, r as l, s as d, t as C, u as D } from "../../_chunks/face-scheme-pZgT26gB.js";
1
+ import { A as e, F as o, a as n, b as A, c as i, d as f, e as t, I, f as N, g as T, h as F, i as _, j as E, k as c, l as h, m as r, n as p, o as O, p as S, q as m, r as l, s as d, t as C, u as D } from "../../_chunks/face-scheme-Doodi6A6.js";
2
2
  export {
3
3
  e as ANNOTATION_TOOL_KIND,
4
4
  o as FACE_ANNOTATION_TOOLS,
@@ -1,4 +1,4 @@
1
- import { F as a, e as i } from "../../_chunks/fetal-weight-CbE61Uyk.js";
1
+ import { F as a, e as i } from "../../_chunks/fetal-weight-DBgEaMoJ.js";
2
2
  export {
3
3
  a as FetalWeight,
4
4
  i as estimateFetalWeight
@@ -1,4 +1,4 @@
1
- import { F as r, f } from "../../_chunks/file-manager-DdsAd4TQ.js";
1
+ import { F as r, f } from "../../_chunks/file-manager-BDNSnr7f.js";
2
2
  export {
3
3
  r as FileManager,
4
4
  f as fileManagerAgent
@@ -15,6 +15,11 @@ export interface FormFieldContextShape {
15
15
  * `useFormFieldControlId`.
16
16
  */
17
17
  registerControlId?: (controlId: string) => () => void;
18
+ /**
19
+ * A control shows a short note under the field, e.g. that a paste was
20
+ * refused; `undefined` removes it. The control announces it itself.
21
+ */
22
+ setNotice?: (notice: string | undefined) => void;
18
23
  }
19
24
  export declare const FormFieldContext: import("react").Context<FormFieldContextShape | null>;
20
25
  export declare function useFormField(): FormFieldContextShape;
@@ -1,4 +1,4 @@
1
- import { F } from "../../_chunks/form-field-D9WfDpYB.js";
1
+ import { F } from "../../_chunks/form-field-Db0liyI8.js";
2
2
  import { F as s, u as l, a as m, b as a } from "../../_chunks/form-field-context-DtiROUJV.js";
3
3
  export {
4
4
  F as FormField,
@@ -1,4 +1,4 @@
1
- import { G as t } from "../../_chunks/gestational-age-calculator-BMkoLJGR.js";
1
+ import { G as t } from "../../_chunks/gestational-age-calculator-BVBz_5dm.js";
2
2
  export {
3
3
  t as GestationalAgeCalculator
4
4
  };
@@ -1,4 +1,4 @@
1
- import { H, M as g, a as o } from "../../_chunks/hcg-doubling-BtW2pBJX.js";
1
+ import { H, M as g, a as o } from "../../_chunks/hcg-doubling-BECrAUu3.js";
2
2
  export {
3
3
  H as HcgDoubling,
4
4
  g as MINIMAL_48H_RISE_PERCENT,