@alfadocs/ui-kit 1.12.5 → 1.13.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 (87) hide show
  1. package/dist/_chunks/{actions-cell-renderer-DnSLrgQD.js → actions-cell-renderer-ReurEy5i.js} +2 -2
  2. package/dist/_chunks/{address-fields-CZP4Wncx.js → address-fields-CZ0pEdEI.js} +4 -4
  3. package/dist/_chunks/{ai-prompt-input-DnbfEJnr.js → ai-prompt-input-CrHr-5H8.js} +2 -2
  4. package/dist/_chunks/{anamnesis-summary-rows-BfhxWPO3.js → anamnesis-summary-rows-CRWO8x8g.js} +4 -4
  5. package/dist/_chunks/{audio-recorder-EWBCNIsd.js → audio-recorder-DXG6LTtO.js} +2 -2
  6. package/dist/_chunks/{autocomplete-BrONKN8l.js → autocomplete-MpBhz-fG.js} +86 -74
  7. package/dist/_chunks/{balance-badge-cell-7L6nzB29.js → balance-badge-cell--iQ_gtmi.js} +4 -4
  8. package/dist/_chunks/{bishop-score-Cnu0xs-z.js → bishop-score-CJUVBfAu.js} +2 -2
  9. package/dist/_chunks/{booking-CBHKdsZl.js → booking-DQbo6mQF.js} +609 -591
  10. package/dist/_chunks/{care-plan-card-aDN4oem9.js → care-plan-card-D-FMfDKH.js} +2 -2
  11. package/dist/_chunks/{care-plan-entry-card-BEhANdBE.js → care-plan-entry-card-Bvw_9T-d.js} +2 -2
  12. package/dist/_chunks/{care-plan-header-CkpPyQqG.js → care-plan-header-B5CBE0zu.js} +2 -2
  13. package/dist/_chunks/{city-input-towzBenY.js → city-input-DaQc-Hbj.js} +2 -2
  14. package/dist/_chunks/{combobox-DiMLItyu.js → combobox-D7_NLE2Z.js} +89 -81
  15. package/dist/_chunks/{contact-profile-card-BMIBr5s9.js → contact-profile-card-BZqi8Hck.js} +38 -36
  16. package/dist/_chunks/{country-select-UEF9BEeQ.js → country-select-DzbPFktV.js} +2 -2
  17. package/dist/_chunks/{document-preview-oyx9RhCo.js → document-preview-CDb-n_W7.js} +2 -2
  18. package/dist/_chunks/{face-scheme-CZaKm6fG.js → face-scheme-DA2vjqaM.js} +2 -2
  19. package/dist/_chunks/{file-manager-C0y7HBAN.js → file-manager-UsD8e_AB.js} +2 -2
  20. package/dist/_chunks/{gestational-age-calculator-CxZelpu2.js → gestational-age-calculator-CiOQjzgx.js} +2 -2
  21. package/dist/_chunks/key-value-pair-BIBdZBLg.js +188 -0
  22. package/dist/_chunks/{link-cell-renderer-CenJx-_7.js → link-cell-renderer-CIASXsVM.js} +4 -4
  23. package/dist/_chunks/{multi-select-DqL4o0qV.js → multi-select-DYOvx2SJ.js} +56 -48
  24. package/dist/_chunks/{muscle-scheme-yfzP_xoJ.js → muscle-scheme-BSJsI4-I.js} +2 -2
  25. package/dist/_chunks/{optical-prescription-Dj3Eh5Ok.js → optical-prescription-BvwuqTpl.js} +2 -2
  26. package/dist/_chunks/{patient-details-xrqe13az.js → patient-details-BQaUzPqp.js} +5 -5
  27. package/dist/_chunks/{patient-search-D5ufYoRc.js → patient-search-HeEUB-_X.js} +2 -2
  28. package/dist/_chunks/{patient-summary-card-CBfuDvJ5.js → patient-summary-card-CvDxhbBR.js} +2 -2
  29. package/dist/_chunks/{payment-request-card-YVCcCZ25.js → payment-request-card-lmKLwsDs.js} +2 -2
  30. package/dist/_chunks/{periodontal-chart-BatZEFar.js → periodontal-chart-B9fphroR.js} +2 -2
  31. package/dist/_chunks/{periodontal-chart-card-BBpY_rBc.js → periodontal-chart-card-qEZPXj83.js} +2 -2
  32. package/dist/_chunks/{pregnancy-dating-DtToyMyc.js → pregnancy-dating-D2wchD11.js} +2 -2
  33. package/dist/_chunks/{province-select-BDywtmL-.js → province-select-BBc7s7vR.js} +2 -2
  34. package/dist/_chunks/{select-BW5ecXlX.js → select-Bi8zril7.js} +165 -136
  35. package/dist/_chunks/{signature-request-DVDTKLjM.js → signature-request-CUe903hj.js} +2 -2
  36. package/dist/_chunks/{tabs-CBb2AidH.js → tabs-DqKtTIjZ.js} +2 -2
  37. package/dist/_chunks/{tasks-panel-Do5SFp-j.js → tasks-panel-DPCNaRko.js} +2 -2
  38. package/dist/_chunks/{tooth-scheme-WdyVymQ1.js → tooth-scheme-2IsmbE6w.js} +2 -2
  39. package/dist/_chunks/{unit-converter-BPumXMA6.js → unit-converter-C6jMjqL9.js} +2 -2
  40. package/dist/_chunks/{workflow-map-DE_ribRM.js → workflow-map-wcw3t6g4.js} +2 -2
  41. package/dist/agent-catalog.json +1 -1
  42. package/dist/components/_shared/option.d.ts +1 -0
  43. package/dist/components/address-fields/index.js +1 -1
  44. package/dist/components/ai-prompt-input/index.js +1 -1
  45. package/dist/components/audio-recorder/index.js +1 -1
  46. package/dist/components/autocomplete/index.js +1 -1
  47. package/dist/components/bishop-score/index.js +1 -1
  48. package/dist/components/booking/index.js +1 -1
  49. package/dist/components/care-plan-card/index.js +1 -1
  50. package/dist/components/care-plan-entry-card/index.js +1 -1
  51. package/dist/components/care-plan-header/index.js +1 -1
  52. package/dist/components/city-input/index.js +1 -1
  53. package/dist/components/combobox/index.js +1 -1
  54. package/dist/components/contact-profile-card/index.js +1 -1
  55. package/dist/components/country-select/index.js +1 -1
  56. package/dist/components/data-table/index.js +2 -2
  57. package/dist/components/document-preview/index.js +1 -1
  58. package/dist/components/face-scheme/index.js +1 -1
  59. package/dist/components/file-manager/index.js +1 -1
  60. package/dist/components/gestational-age-calculator/index.js +1 -1
  61. package/dist/components/key-value-pair/index.js +1 -1
  62. package/dist/components/key-value-pair/key-value-pair.d.ts +16 -0
  63. package/dist/components/multi-select/index.js +1 -1
  64. package/dist/components/muscle-scheme/index.js +1 -1
  65. package/dist/components/optical-prescription/index.js +1 -1
  66. package/dist/components/patient-details/index.js +1 -1
  67. package/dist/components/patient-search/index.js +1 -1
  68. package/dist/components/patient-summary-card/index.js +1 -1
  69. package/dist/components/patient-table/index.js +1 -1
  70. package/dist/components/payment-card/index.js +1 -1
  71. package/dist/components/periodontal-chart/index.js +1 -1
  72. package/dist/components/periodontal-chart-card/index.js +1 -1
  73. package/dist/components/pregnancy-dating/index.js +1 -1
  74. package/dist/components/province-select/index.js +1 -1
  75. package/dist/components/select/index.js +1 -1
  76. package/dist/components/select/select.d.ts +24 -0
  77. package/dist/components/skeleton-scheme/index.js +1 -1
  78. package/dist/components/tabs/index.js +1 -1
  79. package/dist/components/tasks-panel/index.js +1 -1
  80. package/dist/components/tooth-scheme/index.js +1 -1
  81. package/dist/components/unit-converter/index.js +1 -1
  82. package/dist/components/workflow/index.js +1 -1
  83. package/dist/index.js +40 -40
  84. package/dist/patterns/anamnesis/index.js +1 -1
  85. package/dist/patterns/signature-request/index.js +1 -1
  86. package/package.json +1 -1
  87. package/dist/_chunks/key-value-pair-BubG4fUa.js +0 -144
@@ -4,7 +4,7 @@ import { c as R } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as ae } from "react-i18next";
5
5
  import { B as re } from "./badge-sTusUqZD.js";
6
6
  import { C as S } from "./card-DPmk26CL.js";
7
- import { K as ne, a as se } from "./key-value-pair-BubG4fUa.js";
7
+ import { K as ne, a as se } from "./key-value-pair-BIBdZBLg.js";
8
8
  import { u as oe } from "./registry-DvAUVLHh.js";
9
9
  const de = {
10
10
  id: "periodontal-chart-card",
@@ -452,4 +452,4 @@ export {
452
452
  he as a,
453
453
  de as p
454
454
  };
455
- //# sourceMappingURL=periodontal-chart-card-BBpY_rBc.js.map
455
+ //# sourceMappingURL=periodontal-chart-card-qEZPXj83.js.map
@@ -8,7 +8,7 @@ import { R as j } from "./radio-group-rXDJADzW.js";
8
8
  import { F as f } from "./form-field-CahJzTxp.js";
9
9
  import { D as V } from "./date-picker-CepI_oI2.js";
10
10
  import { N as H } from "./number-input-Cgu2TtA8.js";
11
- import { S as Ce } from "./select-BW5ecXlX.js";
11
+ import { S as Ce } from "./select-Bi8zril7.js";
12
12
  import { S as je } from "./switch-OILsBLWo.js";
13
13
  import { C as ie } from "./card-DPmk26CL.js";
14
14
  import { B as $ } from "./badge-sTusUqZD.js";
@@ -767,4 +767,4 @@ Ue.displayName = "PregnancyDating";
767
767
  export {
768
768
  Ue as P
769
769
  };
770
- //# sourceMappingURL=pregnancy-dating-DtToyMyc.js.map
770
+ //# sourceMappingURL=pregnancy-dating-D2wchD11.js.map
@@ -1,7 +1,7 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { forwardRef as N, useMemo as p, useCallback as O, useRef as h, useEffect as z } from "react";
3
3
  import { useTranslation as U } from "react-i18next";
4
- import { C as F } from "./combobox-DiMLItyu.js";
4
+ import { C as F } from "./combobox-D7_NLE2Z.js";
5
5
  import { u as y } from "./use-controllable-state-BiY4xTzM.js";
6
6
  import { u as G } from "./registry-DvAUVLHh.js";
7
7
  const w = [
@@ -258,4 +258,4 @@ export {
258
258
  k as P,
259
259
  _ as p
260
260
  };
261
- //# sourceMappingURL=province-select-BDywtmL-.js.map
261
+ //# sourceMappingURL=province-select-BBc7s7vR.js.map
@@ -1,13 +1,13 @@
1
- import { jsx as t, jsxs as g } from "react/jsx-runtime";
2
- import { forwardRef as a, useContext as fe, useState as G, useRef as q, useMemo as ge } from "react";
1
+ import { jsx as t, jsxs as f } from "react/jsx-runtime";
2
+ import { forwardRef as i, useContext as fe, useState as q, useRef as L, useMemo as ge } from "react";
3
3
  import { u as he } from "./registry-DvAUVLHh.js";
4
4
  import * as o from "@radix-ui/react-select";
5
- import { c as I } from "./index-D2ZczOXr.js";
5
+ import { c as j } from "./index-D2ZczOXr.js";
6
6
  import { useTranslation as ve } from "react-i18next";
7
7
  import { u as be, F as ye } from "./form-field-context-B3APVHKx.js";
8
8
  import { g as Se } from "./group-options-BvKhQ3xb.js";
9
9
  import { C as xe } from "./chevron-up-umRGgtJA.js";
10
- import { C as L } from "./chevron-down-DWE7GSq9.js";
10
+ import { C as $ } from "./chevron-down-DWE7GSq9.js";
11
11
  import { C as Ne } from "./check-DrFSN__t.js";
12
12
  import { u as we } from "./use-direction-Dp8h70PP.js";
13
13
  import { X as Ce } from "./x-B5YnXwCz.js";
@@ -95,7 +95,7 @@ const ze = {
95
95
  description: "Stable opaque option value emitted on each rendered option."
96
96
  }
97
97
  }
98
- }, $ = I(
98
+ }, A = j(
99
99
  [
100
100
  "ds:group ds:inline-flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:w-full",
101
101
  "ds:rounded-[var(--radius-sm)] ds:border ds:border-border ds:bg-input",
@@ -125,7 +125,7 @@ const ze = {
125
125
  tone: "default"
126
126
  }
127
127
  }
128
- ), Ie = I(
128
+ ), Ie = j(
129
129
  [
130
130
  "ds:z-[var(--z-dropdown)] ds:overflow-hidden",
131
131
  "ds:rounded-[var(--radius-md)] ds:border ds:border-border ds:bg-background ds:text-foreground",
@@ -137,7 +137,7 @@ const ze = {
137
137
  "ds:data-[side=top]:slide-in-from-bottom-2",
138
138
  "ds:motion-reduce:animate-none"
139
139
  ].join(" ")
140
- ), je = I(
140
+ ), je = j(
141
141
  [
142
142
  "ds:relative ds:flex ds:cursor-pointer ds:items-center",
143
143
  "ds:rounded-[var(--radius-sm)]",
@@ -157,11 +157,11 @@ const ze = {
157
157
  size: "md"
158
158
  }
159
159
  }
160
- ), Ve = [
160
+ ), ke = [
161
161
  "ds:ps-8 ds:pe-3 ds:py-1.5",
162
162
  "type-eyebrow ds:text-muted-foreground",
163
163
  "ds:sticky ds:top-0 ds:bg-background"
164
- ].join(" "), ke = {
164
+ ].join(" "), Ve = {
165
165
  sm: "ds:size-3.5",
166
166
  md: "ds:size-4",
167
167
  lg: "ds:size-5"
@@ -176,23 +176,23 @@ function Re(...e) {
176
176
  n && (typeof n == "function" ? n(s) : n.current = s);
177
177
  };
178
178
  }
179
- const A = (e) => /* @__PURE__ */ t(o.Root, { ...e });
180
- A.displayName = "Select.Root";
181
- const _ = a(
179
+ const _ = (e) => /* @__PURE__ */ t(o.Root, { ...e });
180
+ _.displayName = "Select.Root";
181
+ const H = i(
182
182
  ({ size: e, tone: s, className: n, children: r, ...l }, c) => /* @__PURE__ */ t(
183
183
  o.Trigger,
184
184
  {
185
185
  ref: c,
186
- className: $({ size: e, tone: s, className: n }),
186
+ className: A({ size: e, tone: s, className: n }),
187
187
  ...l,
188
188
  children: r
189
189
  }
190
190
  )
191
191
  );
192
- _.displayName = "Select.Trigger";
193
- const H = a((e, s) => /* @__PURE__ */ t(o.Value, { ref: s, ...e }));
194
- H.displayName = "Select.Value";
195
- const j = a(
192
+ H.displayName = "Select.Trigger";
193
+ const M = i((e, s) => /* @__PURE__ */ t(o.Value, { ref: s, ...e }));
194
+ M.displayName = "Select.Value";
195
+ const k = i(
196
196
  ({
197
197
  className: e,
198
198
  children: s,
@@ -200,7 +200,7 @@ const j = a(
200
200
  sideOffset: r = 4,
201
201
  container: l,
202
202
  ...c
203
- }, h) => /* @__PURE__ */ t(o.Portal, { container: l ?? void 0, children: /* @__PURE__ */ g(
203
+ }, h) => /* @__PURE__ */ t(o.Portal, { container: l ?? void 0, children: /* @__PURE__ */ f(
204
204
  o.Content,
205
205
  {
206
206
  ref: h,
@@ -212,13 +212,13 @@ const j = a(
212
212
  children: [
213
213
  /* @__PURE__ */ t(o.ScrollUpButton, { className: "ds:flex ds:items-center ds:justify-center ds:h-6 ds:bg-background ds:cursor-default", children: /* @__PURE__ */ t(xe, { "aria-hidden": "true", className: "ds:size-4" }) }),
214
214
  s,
215
- /* @__PURE__ */ t(o.ScrollDownButton, { className: "ds:flex ds:items-center ds:justify-center ds:h-6 ds:bg-background ds:cursor-default", children: /* @__PURE__ */ t(L, { "aria-hidden": "true", className: "ds:size-4" }) })
215
+ /* @__PURE__ */ t(o.ScrollDownButton, { className: "ds:flex ds:items-center ds:justify-center ds:h-6 ds:bg-background ds:cursor-default", children: /* @__PURE__ */ t($, { "aria-hidden": "true", className: "ds:size-4" }) })
216
216
  ]
217
217
  }
218
218
  ) })
219
219
  );
220
- j.displayName = "Select.Content";
221
- const V = a(({ className: e, ...s }, n) => /* @__PURE__ */ t(
220
+ k.displayName = "Select.Content";
221
+ const V = i(({ className: e, ...s }, n) => /* @__PURE__ */ t(
222
222
  o.Viewport,
223
223
  {
224
224
  ref: n,
@@ -227,54 +227,82 @@ const V = a(({ className: e, ...s }, n) => /* @__PURE__ */ t(
227
227
  }
228
228
  ));
229
229
  V.displayName = "Select.Viewport";
230
- const k = a(({ size: e = "md", className: s, children: n, startAdornment: r, ...l }, c) => {
231
- const h = Te[e ?? "md"], S = ke[e ?? "md"];
232
- return /* @__PURE__ */ g(
233
- o.Item,
234
- {
235
- ref: c,
236
- className: je({ size: e, className: s }),
237
- ...l,
238
- children: [
239
- /* @__PURE__ */ t(
240
- "span",
241
- {
242
- className: `ds:absolute ${h} ds:inline-flex ds:items-center ds:justify-center`,
243
- "aria-hidden": "true",
244
- children: /* @__PURE__ */ t(o.ItemIndicator, { children: /* @__PURE__ */ t(Ne, { className: S }) })
245
- }
246
- ),
247
- r ? (
248
- // Decorative by contract — accessible name comes from the item text.
230
+ const T = i(
231
+ ({ size: e = "md", className: s, children: n, startAdornment: r, endContent: l, ...c }, h) => {
232
+ const S = Te[e ?? "md"], x = Ve[e ?? "md"];
233
+ return /* @__PURE__ */ f(
234
+ o.Item,
235
+ {
236
+ ref: h,
237
+ className: je({ size: e, className: s }),
238
+ ...c,
239
+ children: [
249
240
  /* @__PURE__ */ t(
250
241
  "span",
251
242
  {
243
+ className: `ds:absolute ${S} ds:inline-flex ds:items-center ds:justify-center`,
252
244
  "aria-hidden": "true",
253
- className: "ds:inline-flex ds:items-center ds:shrink-0 ds:me-[var(--spacing-xs)]",
254
- children: r
245
+ children: /* @__PURE__ */ t(o.ItemIndicator, { children: /* @__PURE__ */ t(Ne, { className: x }) })
255
246
  }
256
- )
257
- ) : null,
258
- /* @__PURE__ */ t(o.ItemText, { children: n })
259
- ]
260
- }
261
- );
262
- });
263
- k.displayName = "Select.Item";
264
- const M = a((e, s) => /* @__PURE__ */ t(o.ItemText, { ref: s, ...e }));
265
- M.displayName = "Select.ItemText";
266
- const U = a((e, s) => /* @__PURE__ */ t(o.Group, { ref: s, ...e }));
267
- U.displayName = "Select.Group";
268
- const T = a(({ className: e, ...s }, n) => /* @__PURE__ */ t(
247
+ ),
248
+ r ? (
249
+ // Decorative by contract — accessible name comes from the item text.
250
+ /* @__PURE__ */ t(
251
+ "span",
252
+ {
253
+ "aria-hidden": "true",
254
+ className: "ds:inline-flex ds:items-center ds:shrink-0 ds:me-[var(--spacing-xs)]",
255
+ children: r
256
+ }
257
+ )
258
+ ) : null,
259
+ l ? (
260
+ // Radix points the item's `aria-labelledby` at `ItemText`, so
261
+ // anything rendered outside it is dropped from the accessible
262
+ // name — a price there would be visible but never announced.
263
+ // It therefore goes INSIDE `ItemText`, wrapped in a flex row so
264
+ // `ms-auto` still pins it to the inline-end (and flips in RTL).
265
+ //
266
+ // The trade-off is deliberate: Radix mirrors `ItemText` into the
267
+ // closed trigger, so the selected item's trailing content shows
268
+ // there too. For the case this exists for — a price — that reads
269
+ // as a feature, not a leak. The wrapper is rendered ONLY when
270
+ // `endContent` is supplied, so every existing item keeps its
271
+ // previous DOM exactly.
272
+ //
273
+ // `asChild` is required, not stylistic. `SelectItemText`
274
+ // destructures `className` and `style` off its props and never
275
+ // applies them, so styling it directly is silently discarded.
276
+ // It must also GROW: as a plain flex item of the row it sizes to
277
+ // its content, leaving `ms-auto` no free space to absorb, and the
278
+ // chip would sit against the label instead of the row's end —
279
+ // the ragged column this change exists to remove. `asChild` makes
280
+ // our own span become the ItemText element, so `flex-1` lands.
281
+ /* @__PURE__ */ t(o.ItemText, { asChild: !0, children: /* @__PURE__ */ f("span", { className: "ds:flex ds:flex-1 ds:min-w-0 ds:items-center ds:gap-[var(--spacing-sm)]", children: [
282
+ /* @__PURE__ */ t("span", { className: "ds:min-w-0 ds:truncate", children: n }),
283
+ /* @__PURE__ */ t("span", { className: "ds:inline-flex ds:items-center ds:ms-auto ds:shrink-0", children: l })
284
+ ] }) })
285
+ ) : /* @__PURE__ */ t(o.ItemText, { children: n })
286
+ ]
287
+ }
288
+ );
289
+ }
290
+ );
291
+ T.displayName = "Select.Item";
292
+ const U = i((e, s) => /* @__PURE__ */ t(o.ItemText, { ref: s, ...e }));
293
+ U.displayName = "Select.ItemText";
294
+ const W = i((e, s) => /* @__PURE__ */ t(o.Group, { ref: s, ...e }));
295
+ W.displayName = "Select.Group";
296
+ const R = i(({ className: e, ...s }, n) => /* @__PURE__ */ t(
269
297
  o.Label,
270
298
  {
271
299
  ref: n,
272
- className: [Ve, e].filter(Boolean).join(" "),
300
+ className: [ke, e].filter(Boolean).join(" "),
273
301
  ...s
274
302
  }
275
303
  ));
276
- T.displayName = "Select.Label";
277
- const W = a(({ className: e, ...s }, n) => /* @__PURE__ */ t(
304
+ R.displayName = "Select.Label";
305
+ const E = i(({ className: e, ...s }, n) => /* @__PURE__ */ t(
278
306
  o.Separator,
279
307
  {
280
308
  ref: n,
@@ -282,8 +310,8 @@ const W = a(({ className: e, ...s }, n) => /* @__PURE__ */ t(
282
310
  ...s
283
311
  }
284
312
  ));
285
- W.displayName = "Select.Separator";
286
- const E = a(function({
313
+ E.displayName = "Select.Separator";
314
+ const X = i(function({
287
315
  options: s,
288
316
  value: n,
289
317
  defaultValue: r,
@@ -291,79 +319,79 @@ const E = a(function({
291
319
  placeholder: c,
292
320
  clearable: h = !1,
293
321
  disabled: S,
294
- required: X,
322
+ required: x,
295
323
  name: J,
296
- id: x,
297
- size: R = "md",
324
+ id: N,
325
+ size: B = "md",
298
326
  tone: Q = "default",
299
327
  className: Y,
300
328
  container: Z,
301
- "aria-label": B
329
+ "aria-label": O
302
330
  }, ee) {
303
- const { t: N } = ve(), u = be(), p = fe(ye) !== null, [te, b] = G(
331
+ const { t: w } = ve(), u = be(), p = fe(ye) !== null, [te, b] = q(
304
332
  n ?? r ?? ""
305
- ), m = n !== void 0, v = m ? n : te, [w, C] = G(!1), O = q(v);
306
- O.current = v;
307
- const se = x ?? (p ? u.id : void 0), D = (p ? u.disabled : !1) || !!S, oe = (p ? u.required : !1) || !!X, F = p ? u.invalid : !1, ne = F ? "error" : Q, ie = p && u.describedBy ? u.describedBy : void 0, z = q(null), de = Re(ee, z), ae = we(z), d = l, re = (i) => {
308
- m || b(i), d == null || d(i);
309
- }, le = (i) => {
333
+ ), g = n !== void 0, v = g ? n : te, [C, z] = q(!1), D = L(v);
334
+ D.current = v;
335
+ const se = N ?? (p ? u.id : void 0), F = (p ? u.disabled : !1) || !!S, oe = (p ? u.required : !1) || !!x, K = p ? u.invalid : !1, ne = K ? "error" : Q, de = p && u.describedBy ? u.describedBy : void 0, I = L(null), ae = Re(ee, I), ie = we(I), a = l, re = (d) => {
336
+ g || b(d), a == null || a(d);
337
+ }, le = (d) => {
310
338
  var y;
311
- i.preventDefault(), i.stopPropagation(), m || b(""), d == null || d(""), (y = z.current) == null || y.focus();
312
- }, K = c ?? N("inputs.select.placeholder", "Select…"), ce = h && !!v && !D, ue = Se(s), pe = ge(
339
+ d.preventDefault(), d.stopPropagation(), g || b(""), a == null || a(""), (y = I.current) == null || y.focus();
340
+ }, P = c ?? w("inputs.select.placeholder", "Select…"), ce = h && !!v && !F, ue = Se(s), pe = ge(
313
341
  () => ({
314
- getValue: () => O.current,
315
- setValue: (i) => {
316
- m || b(i), d == null || d(i);
342
+ getValue: () => D.current,
343
+ setValue: (d) => {
344
+ g || b(d), a == null || a(d);
317
345
  },
318
346
  clear: () => {
319
- m || b(""), d == null || d("");
347
+ g || b(""), a == null || a("");
320
348
  },
321
- open: () => C(!0),
322
- close: () => C(!1),
323
- isOpen: () => w
349
+ open: () => z(!0),
350
+ close: () => z(!1),
351
+ isOpen: () => C
324
352
  }),
325
- [d, m, w]
353
+ [a, g, C]
326
354
  );
327
- return he(ze, pe, x), /* @__PURE__ */ g(
355
+ return he(ze, pe, N), /* @__PURE__ */ f(
328
356
  o.Root,
329
357
  {
330
358
  value: v === "" ? void 0 : v,
331
359
  onValueChange: re,
332
- open: w,
333
- onOpenChange: C,
334
- disabled: D,
360
+ open: C,
361
+ onOpenChange: z,
362
+ disabled: F,
335
363
  required: oe,
336
364
  name: J,
337
- dir: ae,
365
+ dir: ie,
338
366
  children: [
339
- /* @__PURE__ */ g(
367
+ /* @__PURE__ */ f(
340
368
  o.Trigger,
341
369
  {
342
- ref: de,
370
+ ref: ae,
343
371
  id: se,
344
- "aria-label": B ?? (p ? void 0 : K),
345
- "aria-labelledby": !B && p ? `${u.id}-label` : void 0,
346
- "aria-describedby": ie,
347
- "aria-invalid": F || void 0,
372
+ "aria-label": O ?? (p ? void 0 : P),
373
+ "aria-labelledby": !O && p ? `${u.id}-label` : void 0,
374
+ "aria-describedby": de,
375
+ "aria-invalid": K || void 0,
348
376
  "data-component": "select",
349
- "data-component-id": x,
350
- className: $({
351
- size: R,
377
+ "data-component-id": N,
378
+ className: A({
379
+ size: B,
352
380
  tone: ne,
353
381
  className: Y
354
382
  }),
355
383
  children: [
356
- /* @__PURE__ */ t("span", { className: "ds:min-w-0 ds:truncate ds:text-start", children: /* @__PURE__ */ t(o.Value, { placeholder: K }) }),
357
- /* @__PURE__ */ g("span", { className: "ds:ms-auto ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
384
+ /* @__PURE__ */ t("span", { className: "ds:min-w-0 ds:truncate ds:text-start", children: /* @__PURE__ */ t(o.Value, { placeholder: P }) }),
385
+ /* @__PURE__ */ f("span", { className: "ds:ms-auto ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
358
386
  ce ? /* @__PURE__ */ t(
359
387
  "button",
360
388
  {
361
389
  type: "button",
362
- "aria-label": N("inputs.select.clear", "Clear selection"),
390
+ "aria-label": w("inputs.select.clear", "Clear selection"),
363
391
  onClick: le,
364
- onPointerDown: (i) => i.stopPropagation(),
365
- onKeyDown: (i) => {
366
- (i.key === "Enter" || i.key === " ") && i.stopPropagation();
392
+ onPointerDown: (d) => d.stopPropagation(),
393
+ onKeyDown: (d) => {
394
+ (d.key === "Enter" || d.key === " ") && d.stopPropagation();
367
395
  },
368
396
  className: [
369
397
  "ds:inline-flex ds:items-center ds:justify-center ds:rounded-[var(--radius-sm)]",
@@ -377,7 +405,7 @@ const E = a(function({
377
405
  }
378
406
  ) : null,
379
407
  /* @__PURE__ */ t(o.Icon, { asChild: !0, children: /* @__PURE__ */ t(
380
- L,
408
+ $,
381
409
  {
382
410
  "aria-hidden": "true",
383
411
  className: [
@@ -391,52 +419,53 @@ const E = a(function({
391
419
  ]
392
420
  }
393
421
  ),
394
- /* @__PURE__ */ t(j, { container: Z, children: /* @__PURE__ */ t(V, { children: s.length === 0 ? /* @__PURE__ */ t("div", { className: "ds:ps-8 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground", children: N("inputs.select.noOptions", "No options") }) : ue.map(({ group: i, items: y }, me) => {
395
- const P = y.map((f) => /* @__PURE__ */ t(
396
- k,
422
+ /* @__PURE__ */ t(k, { container: Z, children: /* @__PURE__ */ t(V, { children: s.length === 0 ? /* @__PURE__ */ t("div", { className: "ds:ps-8 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground", children: w("inputs.select.noOptions", "No options") }) : ue.map(({ group: d, items: y }, me) => {
423
+ const G = y.map((m) => /* @__PURE__ */ t(
424
+ T,
397
425
  {
398
- value: f.value,
399
- disabled: f.disabled,
400
- size: R,
401
- "data-option-id": f.value,
402
- startAdornment: f.startAdornment,
403
- children: f.label
426
+ value: m.value,
427
+ disabled: m.disabled,
428
+ size: B,
429
+ "data-option-id": m.value,
430
+ startAdornment: m.startAdornment,
431
+ endContent: m.endContent,
432
+ children: m.label
404
433
  },
405
- f.value
434
+ m.value
406
435
  ));
407
- return i ? /* @__PURE__ */ g(o.Group, { children: [
408
- /* @__PURE__ */ t(T, { children: i }),
409
- P
410
- ] }, `group-${i}`) : /* @__PURE__ */ t(o.Group, { children: P }, `group-${me}`);
436
+ return d ? /* @__PURE__ */ f(o.Group, { children: [
437
+ /* @__PURE__ */ t(R, { children: d }),
438
+ G
439
+ ] }, `group-${d}`) : /* @__PURE__ */ t(o.Group, { children: G }, `group-${me}`);
411
440
  }) }) })
412
441
  ]
413
442
  }
414
443
  );
415
444
  });
416
- E.displayName = "Select";
417
- const Be = Object.assign(E, {
418
- Root: A,
419
- Trigger: _,
420
- Value: H,
421
- Content: j,
445
+ X.displayName = "Select";
446
+ const Be = Object.assign(X, {
447
+ Root: _,
448
+ Trigger: H,
449
+ Value: M,
450
+ Content: k,
422
451
  Viewport: V,
423
- Item: k,
424
- ItemText: M,
425
- Group: U,
426
- Label: T,
427
- Separator: W
452
+ Item: T,
453
+ ItemText: U,
454
+ Group: W,
455
+ Label: R,
456
+ Separator: E
428
457
  }), Me = Be;
429
458
  export {
430
459
  Me as S,
431
- j as a,
432
- U as b,
433
- k as c,
434
- M as d,
435
- T as e,
436
- A as f,
437
- W as g,
438
- _ as h,
439
- H as i,
460
+ k as a,
461
+ W as b,
462
+ T as c,
463
+ U as d,
464
+ R as e,
465
+ _ as f,
466
+ E as g,
467
+ H as h,
468
+ M as i,
440
469
  V as j
441
470
  };
442
- //# sourceMappingURL=select-BW5ecXlX.js.map
471
+ //# sourceMappingURL=select-Bi8zril7.js.map
@@ -6,7 +6,7 @@ import { B as z } from "./button-nJaPh_HC.js";
6
6
  import { I as xe } from "./icon-button-DA2CAGHZ.js";
7
7
  import { C as Y } from "./checkbox-BuZ1u__2.js";
8
8
  import { a as Re } from "./whatsapp-button-CuFIHJzG.js";
9
- import { S as Z } from "./select-BW5ecXlX.js";
9
+ import { S as Z } from "./select-Bi8zril7.js";
10
10
  import { S as be } from "./switch-OILsBLWo.js";
11
11
  import { A as _ } from "./alert-CiJT540z.js";
12
12
  import { I as Ne } from "./info-tip-C119cwQl.js";
@@ -414,4 +414,4 @@ Me.displayName = "SignatureRequestModal";
414
414
  export {
415
415
  Me as S
416
416
  };
417
- //# sourceMappingURL=signature-request-DVDTKLjM.js.map
417
+ //# sourceMappingURL=signature-request-CUe903hj.js.map
@@ -5,7 +5,7 @@ import * as k from "@radix-ui/react-dropdown-menu";
5
5
  import { a as N, c as M } from "./index-D2ZczOXr.js";
6
6
  import { useTranslation as Y } from "react-i18next";
7
7
  import { c as Z } from "./compose-refs-C0k0tdqF.js";
8
- import { S as D } from "./select-BW5ecXlX.js";
8
+ import { S as D } from "./select-Bi8zril7.js";
9
9
  import { u as ee } from "./registry-DvAUVLHh.js";
10
10
  import { X as te } from "./x-B5YnXwCz.js";
11
11
  import { u as se } from "./use-direction-Dp8h70PP.js";
@@ -405,4 +405,4 @@ export {
405
405
  F as c,
406
406
  re as t
407
407
  };
408
- //# sourceMappingURL=tabs-CBb2AidH.js.map
408
+ //# sourceMappingURL=tabs-DqKtTIjZ.js.map
@@ -7,7 +7,7 @@ import { B as ae } from "./button-nJaPh_HC.js";
7
7
  import { I as $ } from "./icon-button-DA2CAGHZ.js";
8
8
  import { B as he } from "./button-group-CaxRJsNG.js";
9
9
  import { P as gt } from "./panel-header-D313n_9-.js";
10
- import { S as ve } from "./select-BW5ecXlX.js";
10
+ import { S as ve } from "./select-Bi8zril7.js";
11
11
  import { S as ht } from "./switch-OILsBLWo.js";
12
12
  import { S as vt } from "./skeleton-CZbwyJAA.js";
13
13
  import { E as ne } from "./empty-state-X0sVPfVo.js";
@@ -754,4 +754,4 @@ export {
754
754
  Gt as T,
755
755
  qt as t
756
756
  };
757
- //# sourceMappingURL=tasks-panel-Do5SFp-j.js.map
757
+ //# sourceMappingURL=tasks-panel-DPCNaRko.js.map
@@ -7,7 +7,7 @@ import { useTranslation as io } from "react-i18next";
7
7
  import { u as Xo } from "./registry-DvAUVLHh.js";
8
8
  import { I as Jo } from "./icon-button-DA2CAGHZ.js";
9
9
  import { P as rt } from "./popover-Cqcjx-Ny.js";
10
- import { S as en } from "./select-BW5ecXlX.js";
10
+ import { S as en } from "./select-Bi8zril7.js";
11
11
  import { S as at } from "./switch-OILsBLWo.js";
12
12
  import { o as zt, K as tn, a0 as on, J as Ke, R as Ue, u as ro, U as ao, G as nn, S as rn, w as Ve, X as F, f as de, $ as st, _ as Vt, E as ft, a1 as ce, H as Bt, z as ut, y as an, l as ct, A as so, L as sn, t as pt, W as dt, s as co, Y as lo, x as cn, V as dn, a2 as ln, a3 as $, a4 as U, a5 as hn, Z as un, C as ho, Q as pn, a6 as fn, k as Gt, T as mn, O as gn, q as vn, N as bn } from "./tooth-data-DR8Kdnup.js";
13
13
  import { S as yn } from "./settings-d25ju_6L.js";
@@ -2048,4 +2048,4 @@ export {
2048
2048
  Nn as r,
2049
2049
  $n as t
2050
2050
  };
2051
- //# sourceMappingURL=tooth-scheme-WdyVymQ1.js.map
2051
+ //# sourceMappingURL=tooth-scheme-2IsmbE6w.js.map
@@ -5,7 +5,7 @@ import { useTranslation as M } from "react-i18next";
5
5
  import { u as Y } from "./registry-DvAUVLHh.js";
6
6
  import { F as C } from "./form-field-CahJzTxp.js";
7
7
  import { N as B } from "./number-input-Cgu2TtA8.js";
8
- import { S } from "./select-BW5ecXlX.js";
8
+ import { S } from "./select-Bi8zril7.js";
9
9
  import { I as D } from "./insert-result-LCNTskNJ.js";
10
10
  const L = [
11
11
  "weight",
@@ -334,4 +334,4 @@ export {
334
334
  ee as b,
335
335
  Q as c
336
336
  };
337
- //# sourceMappingURL=unit-converter-BPumXMA6.js.map
337
+ //# sourceMappingURL=unit-converter-C6jMjqL9.js.map
@@ -4,7 +4,7 @@ import { c as j } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as M } from "react-i18next";
5
5
  import { C } from "./card-DPmk26CL.js";
6
6
  import { B as ye } from "./badge-sTusUqZD.js";
7
- import { a as Z } from "./key-value-pair-BubG4fUa.js";
7
+ import { a as Z } from "./key-value-pair-BIBdZBLg.js";
8
8
  import { T as xe } from "./timestamp-BV2lC-wV.js";
9
9
  import { I as S } from "./icon-button-DA2CAGHZ.js";
10
10
  import { P as U } from "./pencil-B1sKKyuT.js";
@@ -1353,4 +1353,4 @@ export {
1353
1353
  ee as r,
1354
1354
  L as w
1355
1355
  };
1356
- //# sourceMappingURL=workflow-map-DE_ribRM.js.map
1356
+ //# sourceMappingURL=workflow-map-wcw3t6g4.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.12.5",
3
+ "packageVersion": "1.13.0",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -6,5 +6,6 @@ export interface OptionShape<T extends string = string> {
6
6
  disabled?: boolean;
7
7
  description?: string;
8
8
  startAdornment?: ReactNode;
9
+ endContent?: ReactNode;
9
10
  }
10
11
  //# sourceMappingURL=option.d.ts.map
@@ -1,4 +1,4 @@
1
- import { A as e, a } from "../../_chunks/address-fields-CZP4Wncx.js";
1
+ import { A as e, a } from "../../_chunks/address-fields-CZ0pEdEI.js";
2
2
  export {
3
3
  e as AddressFields,
4
4
  a as addressFieldsAgent
@@ -1,4 +1,4 @@
1
- import { A as a, a as o } from "../../_chunks/ai-prompt-input-DnbfEJnr.js";
1
+ import { A as a, a as o } from "../../_chunks/ai-prompt-input-CrHr-5H8.js";
2
2
  export {
3
3
  a as AIPromptInput,
4
4
  o as aiPromptInputAgent
@@ -1,4 +1,4 @@
1
- import { A as r, a } from "../../_chunks/audio-recorder-EWBCNIsd.js";
1
+ import { A as r, a } from "../../_chunks/audio-recorder-DXG6LTtO.js";
2
2
  export {
3
3
  r as AudioRecorder,
4
4
  a as audioRecorderAgent
@@ -1,4 +1,4 @@
1
- import { A as e, a as o, b as m } from "../../_chunks/autocomplete-BrONKN8l.js";
1
+ import { A as e, a as o, b as m } from "../../_chunks/autocomplete-MpBhz-fG.js";
2
2
  export {
3
3
  e as Autocomplete,
4
4
  o as autocompleteAgent,