@alfadocs/ui-kit 0.41.2 → 0.43.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 (199) hide show
  1. package/dist/_chunks/address-autocomplete-CSjMrBvu.js +358 -0
  2. package/dist/_chunks/{alia-sidebar-DXsYPinm.js → alia-sidebar-BpX4z_af.js} +2 -2
  3. package/dist/_chunks/{ar-Cn_NxqkN.js → ar-DEz65ZJW.js} +2 -2
  4. package/dist/_chunks/bmi-calculator-DuVSFDuw.js +259 -0
  5. package/dist/_chunks/{booking-4mCw3Mpl.js → booking-CtLwaxkK.js} +4 -4
  6. package/dist/_chunks/{breadcrumb-CLlhx7qo.js → breadcrumb-OTbaY70e.js} +4 -4
  7. package/dist/_chunks/{calculator-dialog-B74fqpFZ.js → calculator-dialog-DdexHrTP.js} +2 -2
  8. package/dist/_chunks/{chart-Cbt0_sKv.js → chart-Cg3e9EH9.js} +101 -99
  9. package/dist/_chunks/cycle-calculator-Dln-y1k_.js +192 -0
  10. package/dist/_chunks/{date-picker-CvQfs6Xh.js → date-picker-Bq7xhMA-.js} +109 -108
  11. package/dist/_chunks/date-picker-variants-DLi1Va_e.js +3238 -0
  12. package/dist/_chunks/{date-range-picker-U9fn1g9d.js → date-range-picker-DcXuI9y7.js} +20 -19
  13. package/dist/_chunks/{date-time-picker-Cva0ZCWw.js → date-time-picker-RimumeLR.js} +18 -17
  14. package/dist/_chunks/{de-BMM2H7Bs.js → de-bTBGdjPS.js} +2 -2
  15. package/dist/_chunks/{dialog-Cee13rHU.js → dialog-DOYgd75U.js} +46 -37
  16. package/dist/_chunks/{document-scanner-CqS_klIr.js → document-scanner-BqLsGs4Y.js} +7 -7
  17. package/dist/_chunks/{dropdown-menu-BC5ZdOMo.js → dropdown-menu-CUEXqKis.js} +2 -2
  18. package/dist/_chunks/{due-date-calculator-CUspKSTw.js → due-date-calculator-Cc4dRqTI.js} +62 -41
  19. package/dist/_chunks/{editable-currency-cell-renderer-DgkCIIcO.js → editable-currency-cell-renderer-9jqwDv5x.js} +3 -3
  20. package/dist/_chunks/{el-BYPonAaK.js → el-BWG5RXxa.js} +6 -6
  21. package/dist/_chunks/{es-CMkVCQ4F.js → es-DfO_G435.js} +2 -2
  22. package/dist/_chunks/{fr-BcuWxqft.js → fr-BTn24bs8.js} +2 -2
  23. package/dist/_chunks/{freemium-paywall-BAk3a6er.js → freemium-paywall-BLXESpH4.js} +2 -2
  24. package/dist/_chunks/{gestation-BXEgDGmP.js → gestation-mWF4AXea.js} +3 -3
  25. package/dist/_chunks/{gestational-age-calculator-CsQ05qDy.js → gestational-age-calculator-ZMSrzkRW.js} +59 -45
  26. package/dist/_chunks/{header-CTZWX-tm.js → header-Ce1Br27u.js} +70 -75
  27. package/dist/_chunks/{header-settings-CBLwUK6t.js → header-settings-Bx0Biimh.js} +2 -2
  28. package/dist/_chunks/{hi-wkq_rQAh.js → hi-Dj3oYd84.js} +2 -2
  29. package/dist/_chunks/index.modern-D2LGACWg.js +1529 -0
  30. package/dist/_chunks/insert-result-DisOY2G-.js +243 -0
  31. package/dist/_chunks/{isSameWeek-Bim5ftRd.js → isSameWeek-HfxKk6Lz.js} +2 -2
  32. package/dist/_chunks/{it-GiQrQ9p4.js → it-Y85ofIQQ.js} +7 -7
  33. package/dist/_chunks/{ja-qfYg3Rua.js → ja-CQ7J6YoA.js} +2 -2
  34. package/dist/_chunks/{kbd-Cglkd7CY.js → kbd-D855ZXIW.js} +2 -2
  35. package/dist/_chunks/map-view-Tb5VfK9Y.js +333 -0
  36. package/dist/_chunks/marketplace-app-shell-Dc5cTIt8.js +428 -0
  37. package/dist/_chunks/{nl-xOogO4sZ.js → nl-D9kHCmp3.js} +2 -2
  38. package/dist/_chunks/{patient-search-CBq62kmL.js → patient-search-DPe2ZYEL.js} +2 -2
  39. package/dist/_chunks/{patient-shell-DF81lALv.js → patient-shell-CnT4L8gn.js} +3 -3
  40. package/dist/_chunks/{payment-form-Dy3WIIsC.js → payment-form-BzVsG6Ks.js} +5 -5
  41. package/dist/_chunks/{pdf-viewer-Cy6Ul3hZ.js → pdf-viewer-B6MC6VTx.js} +139 -126
  42. package/dist/_chunks/{pl-GnOW6eGK.js → pl-B3Smqpkr.js} +3 -3
  43. package/dist/_chunks/{practice-results-C0d4IL5E.js → practice-results-CrLpEiiW.js} +4 -4
  44. package/dist/_chunks/pregnancy-weight-gain-zZL5Ir2-.js +224 -0
  45. package/dist/_chunks/{pt-_bV5b5RW.js → pt-D3J-1c_7.js} +6 -6
  46. package/dist/_chunks/{public-header.agent-B2dDg2_d.js → public-header.agent-BY6FH71R.js} +2 -2
  47. package/dist/_chunks/radio-group-CLjK-SlK.js +167 -0
  48. package/dist/_chunks/{rich-text-editor-DLbg2852.js → rich-text-editor-DhGIBd4a.js} +10 -10
  49. package/dist/_chunks/{ro-BEcyh5Nj.js → ro-BKAbbEA3.js} +2 -2
  50. package/dist/_chunks/{ru-Bi86hqMf.js → ru-BeG8f0Ep.js} +3 -3
  51. package/dist/_chunks/{sheet-BV-yuLE2.js → sheet-xbzu4YiY.js} +7 -7
  52. package/dist/_chunks/sign-document-B-3k_0LO.js +344 -0
  53. package/dist/_chunks/{signature-capture-DoiBd6i3.js → signature-capture-CpMBhqQ9.js} +6 -6
  54. package/dist/_chunks/{sq-BujHSAWu.js → sq-_hRPaeUy.js} +6 -6
  55. package/dist/_chunks/subDays-Dv7q9S7u.js +8 -0
  56. package/dist/_chunks/{sv-C8AeDrTA.js → sv-g009fSpe.js} +2 -2
  57. package/dist/_chunks/tab-bar-Xetknddo.js +105 -0
  58. package/dist/_chunks/{theme-toggle-DpC28kt5.js → theme-toggle-ClATnY4Q.js} +2 -2
  59. package/dist/_chunks/{toast.agent-WHHfw5VX.js → toast.agent-B0MCsvdZ.js} +2 -2
  60. package/dist/_chunks/{tr-CMSs_Vgf.js → tr-OKUOuhMW.js} +2 -2
  61. package/dist/_chunks/{unit-converter-EUwO6QYq.js → unit-converter-CuXCXJhK.js} +46 -40
  62. package/dist/_chunks/{workflow-map-C3gB0FvB.js → workflow-map-BFNpzTiw.js} +2 -2
  63. package/dist/_chunks/{zh-CN-eXB-PFu4.js → zh-CN-De4zwEhx.js} +3 -3
  64. package/dist/agent-catalog.json +1 -1
  65. package/dist/brand/product-lockup/product-lockup.d.ts +16 -0
  66. package/dist/components/_shared/calendar-class-names.d.ts +8 -0
  67. package/dist/components/_shared/index.d.ts +2 -0
  68. package/dist/components/_shared/insert-result.d.ts +78 -6
  69. package/dist/components/address-autocomplete/address-autocomplete.d.ts +77 -0
  70. package/dist/components/address-autocomplete/index.d.ts +4 -0
  71. package/dist/components/address-autocomplete/index.js +6 -0
  72. package/dist/components/address-autocomplete/parse-address.d.ts +52 -0
  73. package/dist/components/badge/badge.d.ts +1 -1
  74. package/dist/components/bmi-calculator/bmi-calculator.d.ts +11 -1
  75. package/dist/components/bmi-calculator/index.js +1 -1
  76. package/dist/components/booking/index.js +1 -1
  77. package/dist/components/breadcrumb/index.js +1 -1
  78. package/dist/components/calculator-dialog/index.js +1 -1
  79. package/dist/components/card/card.d.ts +1 -1
  80. package/dist/components/chart/chart.d.ts +10 -0
  81. package/dist/components/chart/index.js +1 -1
  82. package/dist/components/cycle-calculator/cycle-calculator.d.ts +12 -2
  83. package/dist/components/cycle-calculator/index.js +1 -1
  84. package/dist/components/data-table/index.js +1 -1
  85. package/dist/components/date-picker/date-picker.d.ts +0 -1
  86. package/dist/components/date-picker/index.js +1 -1
  87. package/dist/components/date-range-picker/date-range-picker.d.ts +0 -1
  88. package/dist/components/date-range-picker/index.js +1 -1
  89. package/dist/components/date-time-picker/date-time-picker.d.ts +0 -1
  90. package/dist/components/date-time-picker/index.js +1 -1
  91. package/dist/components/dialog/index.js +1 -1
  92. package/dist/components/document-scanner/index.js +1 -1
  93. package/dist/components/dropdown-menu/index.js +1 -1
  94. package/dist/components/due-date-calculator/due-date-calculator.d.ts +11 -1
  95. package/dist/components/due-date-calculator/index.js +2 -2
  96. package/dist/components/freemium-paywall/index.js +1 -1
  97. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +12 -2
  98. package/dist/components/gestational-age-calculator/index.js +1 -1
  99. package/dist/components/header/header.d.ts +8 -0
  100. package/dist/components/header/index.js +1 -1
  101. package/dist/components/header-settings/index.js +1 -1
  102. package/dist/components/index.d.ts +3 -1
  103. package/dist/components/kbd/index.js +1 -1
  104. package/dist/components/map-view/index.js +1 -1
  105. package/dist/components/matrix-rain/matrix-rain.d.ts +1 -1
  106. package/dist/components/patient-search/index.js +1 -1
  107. package/dist/components/payment-form/index.js +1 -1
  108. package/dist/components/pdf-viewer/index.js +1 -1
  109. package/dist/components/practice-results/index.js +1 -1
  110. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  111. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +12 -2
  112. package/dist/components/public-header/index.js +1 -1
  113. package/dist/components/public-header/public-header.d.ts +1 -1
  114. package/dist/components/radio-group/index.js +1 -1
  115. package/dist/components/rich-text-editor/index.js +1 -1
  116. package/dist/components/sheet/index.js +1 -1
  117. package/dist/components/sign-document/index.js +1 -1
  118. package/dist/components/sign-document/sign-document.d.ts +12 -0
  119. package/dist/components/signature-capture/index.js +1 -1
  120. package/dist/components/stat/stat.d.ts +1 -1
  121. package/dist/components/tab-bar/index.d.ts +3 -0
  122. package/dist/components/tab-bar/index.js +5 -0
  123. package/dist/components/tab-bar/tab-bar.d.ts +104 -0
  124. package/dist/components/theme-toggle/index.js +1 -1
  125. package/dist/components/toast/index.js +1 -1
  126. package/dist/components/unit-converter/index.js +1 -1
  127. package/dist/components/unit-converter/unit-converter.d.ts +11 -1
  128. package/dist/components/workflow/index.js +1 -1
  129. package/dist/i18n/locales/ar.d.ts +17 -0
  130. package/dist/i18n/locales/ar.js +18 -1
  131. package/dist/i18n/locales/de.d.ts +17 -0
  132. package/dist/i18n/locales/de.js +18 -1
  133. package/dist/i18n/locales/el.d.ts +17 -0
  134. package/dist/i18n/locales/el.js +18 -1
  135. package/dist/i18n/locales/en.d.ts +17 -0
  136. package/dist/i18n/locales/en.js +18 -1
  137. package/dist/i18n/locales/es.d.ts +17 -0
  138. package/dist/i18n/locales/es.js +18 -1
  139. package/dist/i18n/locales/fr.d.ts +17 -0
  140. package/dist/i18n/locales/fr.js +18 -1
  141. package/dist/i18n/locales/hi.d.ts +17 -0
  142. package/dist/i18n/locales/hi.js +18 -1
  143. package/dist/i18n/locales/it.d.ts +17 -0
  144. package/dist/i18n/locales/it.js +18 -1
  145. package/dist/i18n/locales/ja.d.ts +17 -0
  146. package/dist/i18n/locales/ja.js +18 -1
  147. package/dist/i18n/locales/nl.d.ts +17 -0
  148. package/dist/i18n/locales/nl.js +18 -1
  149. package/dist/i18n/locales/pl.d.ts +17 -0
  150. package/dist/i18n/locales/pl.js +18 -1
  151. package/dist/i18n/locales/pt.d.ts +17 -0
  152. package/dist/i18n/locales/pt.js +18 -1
  153. package/dist/i18n/locales/ro.d.ts +17 -0
  154. package/dist/i18n/locales/ro.js +18 -1
  155. package/dist/i18n/locales/ru.d.ts +17 -0
  156. package/dist/i18n/locales/ru.js +18 -1
  157. package/dist/i18n/locales/sq.d.ts +17 -0
  158. package/dist/i18n/locales/sq.js +18 -1
  159. package/dist/i18n/locales/sv.d.ts +17 -0
  160. package/dist/i18n/locales/sv.js +18 -1
  161. package/dist/i18n/locales/tr.d.ts +17 -0
  162. package/dist/i18n/locales/tr.js +18 -1
  163. package/dist/i18n/locales/zh.d.ts +17 -0
  164. package/dist/i18n/locales/zh.js +18 -1
  165. package/dist/index.js +605 -599
  166. package/dist/locales/ar.json +18 -1
  167. package/dist/locales/de.json +18 -1
  168. package/dist/locales/el.json +18 -1
  169. package/dist/locales/en.json +18 -1
  170. package/dist/locales/es.json +18 -1
  171. package/dist/locales/fr.json +18 -1
  172. package/dist/locales/hi.json +18 -1
  173. package/dist/locales/it.json +18 -1
  174. package/dist/locales/ja.json +18 -1
  175. package/dist/locales/nl.json +18 -1
  176. package/dist/locales/pl.json +18 -1
  177. package/dist/locales/pt.json +18 -1
  178. package/dist/locales/ro.json +18 -1
  179. package/dist/locales/ru.json +18 -1
  180. package/dist/locales/sq.json +18 -1
  181. package/dist/locales/sv.json +18 -1
  182. package/dist/locales/tr.json +18 -1
  183. package/dist/locales/zh.json +18 -1
  184. package/dist/patterns/alia-assistant/index.js +1 -1
  185. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  186. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +87 -4
  187. package/dist/patterns/patient-shell/index.js +1 -1
  188. package/dist/tokens.css +1411 -2
  189. package/package.json +16 -1
  190. package/dist/_chunks/bmi-calculator-DnEr513I.js +0 -213
  191. package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +0 -185
  192. package/dist/_chunks/insert-result-yJ0QavoN.js +0 -133
  193. package/dist/_chunks/map-view-qJLybrmN.js +0 -1850
  194. package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +0 -296
  195. package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +0 -209
  196. package/dist/_chunks/radio-group-BcF92GEF.js +0 -152
  197. package/dist/_chunks/react-day-picker-CdtIiKjx.js +0 -3174
  198. package/dist/_chunks/sign-document-CpLDZ6Db.js +0 -316
  199. package/dist/_chunks/subDays-_T9YeKPX.js +0 -8
@@ -1,4 +1,4 @@
1
- import { A as l, B as r, C as t, a as s, D as n, b as d, c as i, d as o, E as C, e as R, I as F, L as g, N as T, f as b, S as u, g as c, h as D, T as m, i as p, j as x, k as f, l as y, m as E, n as S, o as h, U as A, p as L, q as N, u as k } from "../../_chunks/editable-currency-cell-renderer-DgkCIIcO.js";
1
+ import { A as l, B as r, C as t, a as s, D as n, b as d, c as i, d as o, E as C, e as R, I as F, L as g, N as T, f as b, S as u, g as c, h as D, T as m, i as p, j as x, k as f, l as y, m as E, n as S, o as h, U as A, p as L, q as N, u as k } from "../../_chunks/editable-currency-cell-renderer-9jqwDv5x.js";
2
2
  export {
3
3
  l as ActionsCellRenderer,
4
4
  r as BalanceCellRenderer,
@@ -1,6 +1,5 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
2
  import { triggerVariants } from '../_shared';
3
- import '../../tokens/themes/bridges/react-day-picker.css';
4
3
  /** Curated imperative handle exposed via `ref` — also consumed by the agent adapter. */
5
4
  export interface DatePickerHandle {
6
5
  /** Get the current selected date, or undefined. */
@@ -1,4 +1,4 @@
1
- import { D as r, d as t } from "../../_chunks/date-picker-CvQfs6Xh.js";
1
+ import { D as r, d as t } from "../../_chunks/date-picker-Bq7xhMA-.js";
2
2
  export {
3
3
  r as DatePicker,
4
4
  t as datePickerAgent
@@ -1,6 +1,5 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
2
  import { triggerVariants } from '../_shared';
3
- import '../../tokens/themes/bridges/react-day-picker.css';
4
3
  export interface DateRangePreset {
5
4
  label: string;
6
5
  range: () => {
@@ -1,4 +1,4 @@
1
- import { D as r, d as t } from "../../_chunks/date-range-picker-U9fn1g9d.js";
1
+ import { D as r, d as t } from "../../_chunks/date-range-picker-DcXuI9y7.js";
2
2
  export {
3
3
  r as DateRangePicker,
4
4
  t as dateRangePickerAgent
@@ -1,6 +1,5 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
2
  import { triggerVariants } from '../_shared';
3
- import '../../tokens/themes/bridges/react-day-picker.css';
4
3
  /** Curated imperative handle exposed via `ref` — also consumed by the agent adapter. */
5
4
  export interface DateTimePickerHandle {
6
5
  /** Get the current selected datetime, or undefined. */
@@ -1,4 +1,4 @@
1
- import { D as i, d as r } from "../../_chunks/date-time-picker-Cva0ZCWw.js";
1
+ import { D as i, d as r } from "../../_chunks/date-time-picker-RimumeLR.js";
2
2
  export {
3
3
  i as DateTimePicker,
4
4
  r as dateTimePickerAgent
@@ -1,4 +1,4 @@
1
- import { D as g, d } from "../../_chunks/dialog-Cee13rHU.js";
1
+ import { D as g, d } from "../../_chunks/dialog-DOYgd75U.js";
2
2
  export {
3
3
  g as Dialog,
4
4
  d as dialogAgent
@@ -1,4 +1,4 @@
1
- import { D as a, d as c } from "../../_chunks/document-scanner-CqS_klIr.js";
1
+ import { D as a, d as c } from "../../_chunks/document-scanner-BqLsGs4Y.js";
2
2
  export {
3
3
  a as DocumentScanner,
4
4
  c as documentScannerAgent
@@ -1,4 +1,4 @@
1
- import { D as d, d as e } from "../../_chunks/dropdown-menu-BC5ZdOMo.js";
1
+ import { D as d, d as e } from "../../_chunks/dropdown-menu-CUEXqKis.js";
2
2
  export {
3
3
  d as DropdownMenu,
4
4
  e as dropdownMenuAgent
@@ -1,5 +1,5 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
- import { type InsertPayload } from '../_shared/insert-result';
2
+ import { type InsertPayload, type InsertVariant, type InsertMode } from '../_shared/insert-result';
3
3
  import { type DueDateMethod, type DueDateResult } from './gestation';
4
4
  declare const rootVariants: (props?: ({
5
5
  width?: "auto" | "full" | null | undefined;
@@ -11,6 +11,16 @@ export interface DueDateCalculatorProps extends VariantProps<typeof rootVariants
11
11
  onResultChange?: (result: DueDateResult | null) => void;
12
12
  /** When provided, shows an "Insert" button that emits the result for an editor. */
13
13
  onInsert?: (payload: InsertPayload) => void;
14
+ /**
15
+ * Which verb the result button performs. Defaults to `'insert'`.
16
+ * Use `'copy'` in an app-shell surface (no editor to insert into) — the
17
+ * button writes the result to the clipboard as a multi-format `ClipboardItem`.
18
+ */
19
+ insertVariant?: InsertVariant;
20
+ /** `copy` variant only — fired after a successful clipboard write. */
21
+ onCopy?: (mode: InsertMode) => void;
22
+ /** `copy` variant only — fired if the clipboard write can't proceed. */
23
+ onError?: (error: unknown) => void;
14
24
  /** Opaque instance id, emitted as `data-component-id`. */
15
25
  id?: string;
16
26
  /** Extra class names on the wrapper. */
@@ -1,5 +1,5 @@
1
- import { D as s } from "../../_chunks/due-date-calculator-CUspKSTw.js";
2
- import { D as E, G as o, M as D, T as r, c as T, g as _, t as C } from "../../_chunks/gestation-BXEgDGmP.js";
1
+ import { D as s } from "../../_chunks/due-date-calculator-Cc4dRqTI.js";
2
+ import { D as E, G as o, M as D, T as r, c as T, g as _, t as C } from "../../_chunks/gestation-mWF4AXea.js";
3
3
  export {
4
4
  E as DEFAULT_CYCLE_LENGTH,
5
5
  s as DueDateCalculator,
@@ -1,4 +1,4 @@
1
- import { F as m, f as l } from "../../_chunks/freemium-paywall-BAk3a6er.js";
1
+ import { F as m, f as l } from "../../_chunks/freemium-paywall-BLXESpH4.js";
2
2
  export {
3
3
  m as FreemiumPaywall,
4
4
  l as freemiumPaywallAgent
@@ -1,5 +1,5 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
- import { type InsertPayload } from '../_shared/insert-result';
2
+ import { type InsertPayload, type InsertVariant, type InsertMode } from '../_shared/insert-result';
3
3
  import { type Trimester, type GestationalAge } from '../due-date-calculator';
4
4
  declare const rootVariants: (props?: ({
5
5
  width?: "auto" | "full" | null | undefined;
@@ -15,8 +15,18 @@ export interface GestationalAgeCalculatorProps extends VariantProps<typeof rootV
15
15
  defaultMethod?: DateMethod;
16
16
  /** Fires whenever a result can be computed (and `null` when it can't). */
17
17
  onResultChange?: (result: GestationalAgeResult | null) => void;
18
- /** When provided, shows an "Insert" button that emits the result for an editor. */
18
+ /** When provided, shows the result-action buttons that emit / copy the result. */
19
19
  onInsert?: (payload: InsertPayload) => void;
20
+ /**
21
+ * Which verb the result button performs. Defaults to `'insert'`.
22
+ * Use `'copy'` in an app-shell surface (no editor to insert into) — the
23
+ * button writes the result to the clipboard as a multi-format `ClipboardItem`.
24
+ */
25
+ insertVariant?: InsertVariant;
26
+ /** `copy` variant only — fired after a successful clipboard write. */
27
+ onCopy?: (mode: InsertMode) => void;
28
+ /** `copy` variant only — fired if the clipboard write can't proceed. */
29
+ onError?: (error: unknown) => void;
20
30
  /** Opaque instance id, emitted as `data-component-id`. */
21
31
  id?: string;
22
32
  /** Extra class names on the wrapper. */
@@ -1,4 +1,4 @@
1
- import { G as t } from "../../_chunks/gestational-age-calculator-CsQ05qDy.js";
1
+ import { G as t } from "../../_chunks/gestational-age-calculator-ZMSrzkRW.js";
2
2
  export {
3
3
  t as GestationalAgeCalculator
4
4
  };
@@ -21,6 +21,14 @@ export interface HeaderBrandProps extends Omit<AnchorHTMLAttributes<HTMLAnchorEl
21
21
  children?: ReactNode;
22
22
  /** Destination href. Defaults to "/". */
23
23
  href?: string;
24
+ /**
25
+ * Render through Radix `Slot` so a consumer's router link (`<Link>`) takes
26
+ * over the brand anchor while keeping the kit's `brandVariants` styling and
27
+ * any forwarded `aria-label`. Pass a single link element as `children` (the
28
+ * logo + wordmark go inside it). With `asChild` off the output is the plain
29
+ * `<a href>` exactly as before.
30
+ */
31
+ asChild?: boolean;
24
32
  }
25
33
  export declare const HeaderBrand: import("react").ForwardRefExoticComponent<HeaderBrandProps & import("react").RefAttributes<HTMLAnchorElement>>;
26
34
  export declare function HeaderBrandDivider({ className, ...props }: HTMLAttributes<HTMLSpanElement>): ReactNode;
@@ -1,4 +1,4 @@
1
- import { H as r, a as d, b as H, c as s, d as n, e as t, f as i, g as o } from "../../_chunks/header-CTZWX-tm.js";
1
+ import { H as r, a as d, b as H, c as s, d as n, e as t, f as i, g as o } from "../../_chunks/header-Ce1Br27u.js";
2
2
  export {
3
3
  r as Header,
4
4
  d as HeaderBrand,
@@ -1,4 +1,4 @@
1
- import { H as t } from "../../_chunks/header-settings-CBLwUK6t.js";
1
+ import { H as t } from "../../_chunks/header-settings-Bx0Biimh.js";
2
2
  export {
3
3
  t as HeaderSettings
4
4
  };
@@ -9,6 +9,7 @@ export * from './sign-in-with-alfadocs-button';
9
9
  export { SafeHtml, sanitiseHtml } from './_shared/safe-html';
10
10
  export type { SafeHtmlProps, SafeHtmlProfile } from './_shared/safe-html';
11
11
  export type { OptionShape } from './_shared/option';
12
+ export * from './address-autocomplete';
12
13
  export * from './autocomplete';
13
14
  export * from './checkbox';
14
15
  export * from './checkbox-group';
@@ -38,7 +39,7 @@ export * from './switch';
38
39
  export * from './text-area';
39
40
  export * from './text-input';
40
41
  export * from './time-picker';
41
- export { InsertButton, type InsertButtonProps, type InsertPayload, type InsertMode, type InsertCardData, type InsertCardField, } from './_shared/insert-result';
42
+ export { InsertButton, svgCardToPngDataUri, type InsertButtonProps, type InsertVariant, type InsertPayload, type InsertMode, type InsertCardData, type InsertCardField, type SvgCardToPngOptions, } from './_shared/insert-result';
42
43
  export * from './accordion';
43
44
  export * from './avatar';
44
45
  export * from './badge';
@@ -79,6 +80,7 @@ export * from './sidebar';
79
80
  export * from './skip-link';
80
81
  export * from './stepper-accordion';
81
82
  export * from './stepper-progress';
83
+ export * from './tab-bar';
82
84
  export * from './tabs';
83
85
  export * from './theme-toggle';
84
86
  export * from './agenda-card';
@@ -1,4 +1,4 @@
1
- import { K as b, k as d } from "../../_chunks/kbd-Cglkd7CY.js";
1
+ import { K as b, k as d } from "../../_chunks/kbd-D855ZXIW.js";
2
2
  export {
3
3
  b as Kbd,
4
4
  d as kbdGlyphs
@@ -1,4 +1,4 @@
1
- import { M as o } from "../../_chunks/map-view-qJLybrmN.js";
1
+ import { M as o } from "../../_chunks/map-view-Tb5VfK9Y.js";
2
2
  export {
3
3
  o as MapView
4
4
  };
@@ -7,7 +7,7 @@ declare const GLYPH_PRESETS: {
7
7
  };
8
8
  type GlyphPreset = keyof typeof GLYPH_PRESETS;
9
9
  declare const wrapperVariants: (props?: ({
10
- background?: "solid" | "transparent" | null | undefined;
10
+ background?: "transparent" | "solid" | null | undefined;
11
11
  vibe?: "ghost" | "terminal" | "clean" | "hologram" | "synthwave" | "oscilloscope" | null | undefined;
12
12
  mask?: "center" | "none" | null | undefined;
13
13
  maskRadius?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
@@ -1,4 +1,4 @@
1
- import { P as t, p as r } from "../../_chunks/patient-search-CBq62kmL.js";
1
+ import { P as t, p as r } from "../../_chunks/patient-search-DPe2ZYEL.js";
2
2
  export {
3
3
  t as PatientSearch,
4
4
  r as patientSearchAgent
@@ -1,4 +1,4 @@
1
- import { P as r, f as s, p as m, a as e, s as n, b as o, c as i } from "../../_chunks/payment-form-Dy3WIIsC.js";
1
+ import { P as r, f as s, p as m, a as e, s as n, b as o, c as i } from "../../_chunks/payment-form-BzVsG6Ks.js";
2
2
  export {
3
3
  r as PaymentForm,
4
4
  s as formatPaymentAmount,
@@ -1,4 +1,4 @@
1
- import { P as p, p as a } from "../../_chunks/pdf-viewer-Cy6Ul3hZ.js";
1
+ import { P as p, p as a } from "../../_chunks/pdf-viewer-B6MC6VTx.js";
2
2
  export {
3
3
  p as PDFViewer,
4
4
  a as pdfViewerAgent
@@ -1,4 +1,4 @@
1
- import { P as t, p as a } from "../../_chunks/practice-results-C0d4IL5E.js";
1
+ import { P as t, p as a } from "../../_chunks/practice-results-CrLpEiiW.js";
2
2
  export {
3
3
  t as PracticeResults,
4
4
  a as practiceResultsAgent
@@ -1,4 +1,4 @@
1
- import { P as s, R as n, T as i, a as r, r as A } from "../../_chunks/pregnancy-weight-gain-BCdi-JSv.js";
1
+ import { P as s, R as n, T as i, a as r, r as A } from "../../_chunks/pregnancy-weight-gain-zZL5Ir2-.js";
2
2
  export {
3
3
  s as PregnancyWeightGain,
4
4
  n as RATE_BANDS,
@@ -1,5 +1,5 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
- import { type InsertPayload } from '../_shared/insert-result';
2
+ import { type InsertPayload, type InsertVariant, type InsertMode } from '../_shared/insert-result';
3
3
  import { type WeightGainResult } from './weight-gain';
4
4
  declare const rootVariants: (props?: ({
5
5
  width?: "auto" | "full" | null | undefined;
@@ -7,8 +7,18 @@ declare const rootVariants: (props?: ({
7
7
  export interface PregnancyWeightGainProps extends VariantProps<typeof rootVariants> {
8
8
  /** Fires whenever a result can be computed (and `null` when it can't). */
9
9
  onResultChange?: (result: WeightGainResult | null) => void;
10
- /** When provided, shows an "Insert" button that emits the result for an editor. */
10
+ /** When provided, shows the result-action buttons that emit / copy the result. */
11
11
  onInsert?: (payload: InsertPayload) => void;
12
+ /**
13
+ * Verb the result-action buttons perform. Defaults to `'insert'` (editor
14
+ * extension). Pass `'copy'` from an app shell to copy the result to the
15
+ * clipboard instead.
16
+ */
17
+ insertVariant?: InsertVariant;
18
+ /** `copy` variant only — fired after a successful clipboard write. */
19
+ onCopy?: (mode: InsertMode) => void;
20
+ /** `copy` variant only — fired if the clipboard write can't proceed. */
21
+ onError?: (error: unknown) => void;
12
22
  /** Opaque instance id, emitted as `data-component-id`. */
13
23
  id?: string;
14
24
  /** Extra class names on the wrapper. */
@@ -1,4 +1,4 @@
1
- import { P as r, p } from "../../_chunks/public-header.agent-B2dDg2_d.js";
1
+ import { P as r, p } from "../../_chunks/public-header.agent-BY6FH71R.js";
2
2
  export {
3
3
  r as PublicHeader,
4
4
  p as publicHeaderAgent
@@ -65,7 +65,7 @@ export interface PublicHeaderDropdownLinkProps extends Omit<AnchorHTMLAttributes
65
65
  children: ReactNode;
66
66
  }
67
67
  declare const rootVariants: (props?: ({
68
- variant?: "dark" | "pill" | "transparent" | null | undefined;
68
+ variant?: "dark" | "transparent" | "pill" | null | undefined;
69
69
  sticky?: "none" | "top" | "scroll-up" | null | undefined;
70
70
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
71
71
  export declare const PublicHeader: import("react").ForwardRefExoticComponent<PublicHeaderProps & import("react").RefAttributes<HTMLElement>> & {
@@ -1,5 +1,5 @@
1
1
  import { R as a } from "../../_chunks/radio-TWf9Q-mp.js";
2
- import { R as p } from "../../_chunks/radio-group-BcF92GEF.js";
2
+ import { R as p } from "../../_chunks/radio-group-CLjK-SlK.js";
3
3
  export {
4
4
  a as Radio,
5
5
  p as RadioGroup
@@ -1,4 +1,4 @@
1
- import { R as t, e as o, r as s, t as i, a as e, w as n } from "../../_chunks/rich-text-editor-DLbg2852.js";
1
+ import { R as t, e as o, r as s, t as i, a as e, w as n } from "../../_chunks/rich-text-editor-DhGIBd4a.js";
2
2
  export {
3
3
  t as RichTextEditor,
4
4
  o as editorSurfaceVariants,
@@ -1,4 +1,4 @@
1
- import { S as t, s as a } from "../../_chunks/sheet-BV-yuLE2.js";
1
+ import { S as t, s as a } from "../../_chunks/sheet-xbzu4YiY.js";
2
2
  export {
3
3
  t as Sheet,
4
4
  a as sheetAgent
@@ -1,4 +1,4 @@
1
- import { S as o, s } from "../../_chunks/sign-document-CpLDZ6Db.js";
1
+ import { S as o, s } from "../../_chunks/sign-document-B-3k_0LO.js";
2
2
  export {
3
3
  o as SignDocument,
4
4
  s as signDocumentAgent
@@ -23,6 +23,18 @@ export interface SignDocumentProps {
23
23
  * that surface signed status. `null` / `undefined` → unsigned.
24
24
  */
25
25
  signedAt?: string | null;
26
+ /**
27
+ * Optional on-behalf attribution. When both `signer` and `subject` are
28
+ * given, a "Signed by {signer} on behalf of {subject}" note renders both
29
+ * near the signature pad (so the signer sees who they're signing for) AND
30
+ * inside the already-signed read-only banner. Omit (the default) and
31
+ * nothing extra renders — the existing subject-agnostic API is unchanged.
32
+ * Provide both to opt in; a lone `signer` or `subject` renders nothing.
33
+ */
34
+ signedByNote?: {
35
+ signer: string;
36
+ subject: string;
37
+ };
26
38
  /** Disable all controls (document still readable). */
27
39
  disabled?: boolean;
28
40
  /** Render read-only: the document is shown but the pad is suppressed. */
@@ -1,4 +1,4 @@
1
- import { S as r, s as t } from "../../_chunks/signature-capture-DoiBd6i3.js";
1
+ import { S as r, s as t } from "../../_chunks/signature-capture-CpMBhqQ9.js";
2
2
  export {
3
3
  r as SignatureCapture,
4
4
  t as signatureCaptureAgent
@@ -1,7 +1,7 @@
1
1
  import { type HTMLAttributes, type ReactNode } from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
3
  declare const statVariants: (props?: ({
4
- variant?: "default" | "compact" | "elevated" | "outlined" | null | undefined;
4
+ variant?: "default" | "compact" | "outlined" | "elevated" | null | undefined;
5
5
  size?: "sm" | "md" | "lg" | null | undefined;
6
6
  align?: "center" | "end" | "start" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -0,0 +1,3 @@
1
+ export { TabBar } from './tab-bar';
2
+ export type { TabBarProps, TabBarItem, TabBarRenderLinkProps } from './tab-bar';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { T as o } from "../../_chunks/tab-bar-Xetknddo.js";
2
+ export {
3
+ o as TabBar
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,104 @@
1
+ /**
2
+ * TabBar — a floating-pill bar of page-level navigation tabs.
3
+ *
4
+ * Each tab is an icon + label (+ optional count badge); the active tab is
5
+ * marked with `aria-current="page"` and an `--accent` underline. The bar is a
6
+ * glassy `--card` pill that floats on whatever canvas the consumer provides
7
+ * (the strip area itself is transparent, so it blends with the surrounding
8
+ * surface).
9
+ *
10
+ * Two layouts:
11
+ * - default (`fill` off): content-width tabs that **centre** when they fit and
12
+ * scroll from the inline-start (`safe center`) when they overflow, with a
13
+ * gutter preserved at both ends. The label stacks under the icon below `sm`.
14
+ * Use this when the tab set is open-ended (e.g. a marketplace app's routes).
15
+ * - `fill`: equal-width tabs that fill the bar and always stack the label under
16
+ * the icon — a fixed, always-visible set that fits any column width without
17
+ * scrolling (e.g. a patient portal's four sections).
18
+ *
19
+ * Tabs render as links when given an `href` (real navigation) or as buttons
20
+ * otherwise (in-app view switching via `onSelect`). Use it as a header (top,
21
+ * default) for section navigation; `position="bottom"` floats it from the
22
+ * bottom edge for a footer.
23
+ *
24
+ * SPA / consumer-router links: pass `renderLink` and TabBar hands each `href`
25
+ * tab off to your router's `<Link>` instead of rendering its own `<a>` — the
26
+ * embedded MarketplaceAppShell strip uses this so a tab click is a client-side
27
+ * route change, not a full page navigation. The kit forwards the same
28
+ * `className` + `aria-current` so the accent-underline active styling and the
29
+ * `aria-current="page"` marker survive in both modes. With `renderLink`
30
+ * omitted the output is the plain `<a href>` exactly as before.
31
+ */
32
+ import { type MouseEvent, type ReactNode } from 'react';
33
+ export interface TabBarItem {
34
+ /** Stable id; also the value handed to `onSelect` for button tabs. */
35
+ id: string;
36
+ /** Pre-translated label — consumers localise their own nav copy. */
37
+ label: string;
38
+ /** Optional leading icon (a lucide-react element or equivalent), tinted with `--accent`. */
39
+ icon?: ReactNode;
40
+ /** Optional unseen-item count rendered as a pill badge. */
41
+ badgeCount?: number;
42
+ /** Mark the tab as the current page (`aria-current='page'` + accent underline). */
43
+ isActive?: boolean;
44
+ /** When set, the tab renders as a link to this href; otherwise it's a button. */
45
+ href?: string;
46
+ /**
47
+ * Optional click handler threaded onto the link tab's `<a>` (or, when
48
+ * `renderLink` is supplied, available to the consumer's router element). Use
49
+ * it to intercept a same-origin click and route client-side without a full
50
+ * navigation. Only applies to `href` (link) tabs — button tabs use `onSelect`.
51
+ */
52
+ onClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
53
+ }
54
+ /**
55
+ * Props the kit hands to `renderLink` for each `href` tab. The consumer returns
56
+ * their router's `<Link to={href}>` carrying the same `className` (the active
57
+ * accent-underline styling) and `aria-current` (`'page'` on the active tab).
58
+ */
59
+ export interface TabBarRenderLinkProps {
60
+ /** The tab's destination — feed it to your router's `to` / `href`. */
61
+ href: string;
62
+ /** The kit's tab classes (CVA output) — apply verbatim to the link element. */
63
+ className: string;
64
+ /** Icon + label + badge — render as the link's children. */
65
+ children: ReactNode;
66
+ /** `'page'` on the active tab, otherwise omitted — forward to the link. */
67
+ 'aria-current'?: 'page';
68
+ /** Optional per-item click handler (the item's `onClick`), if supplied. */
69
+ onClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
70
+ }
71
+ export interface TabBarProps {
72
+ /** The tabs, in order. */
73
+ items: TabBarItem[];
74
+ /** Accessible name for the `<nav>` landmark. */
75
+ ariaLabel: string;
76
+ /** Fires with the tab `id` when a button tab (one without `href`) is chosen. */
77
+ onSelect?: (id: string) => void;
78
+ /**
79
+ * Render an `href` tab via the consumer's router instead of the kit's own
80
+ * `<a>`. TabBar calls it for each link tab and renders the returned node; the
81
+ * consumer returns their `<Link to={href}>` carrying the supplied `className`
82
+ * + `aria-current` so the active accent underline and the `aria-current="page"`
83
+ * marker are preserved. Use it for SPA navigation (e.g. the MarketplaceAppShell
84
+ * strip) so a tab click is a client-side route change, not a full page load.
85
+ * Omit it to render the plain `<a href>` exactly as before. Button tabs (no
86
+ * `href`) ignore `renderLink` and continue to use `onSelect`.
87
+ */
88
+ renderLink?: (props: TabBarRenderLinkProps) => ReactNode;
89
+ /**
90
+ * Equal-width tabs that fill the bar and always stack the label under the
91
+ * icon (for a fixed, always-visible set). Off (default) = content-width tabs
92
+ * that centre when they fit and scroll when they overflow.
93
+ */
94
+ fill?: boolean;
95
+ /**
96
+ * Float side. `'top'` (default) gutters from the top edge for a header;
97
+ * `'bottom'` gutters from the bottom edge for a footer.
98
+ */
99
+ position?: 'top' | 'bottom';
100
+ /** Extra classes merged onto the outer strip (e.g. sticky/fixed positioning). */
101
+ className?: string;
102
+ }
103
+ export declare const TabBar: import("react").ForwardRefExoticComponent<TabBarProps & import("react").RefAttributes<HTMLDivElement>>;
104
+ //# sourceMappingURL=tab-bar.d.ts.map
@@ -1,4 +1,4 @@
1
- import { T as o, t } from "../../_chunks/theme-toggle-DpC28kt5.js";
1
+ import { T as o, t } from "../../_chunks/theme-toggle-ClATnY4Q.js";
2
2
  export {
3
3
  o as ThemeToggle,
4
4
  t as themeToggleAgent
@@ -1,4 +1,4 @@
1
- import { T as s, t as o, a as e, b as r, c as n, d as c, e as g } from "../../_chunks/toast.agent-WHHfw5VX.js";
1
+ import { T as s, t as o, a as e, b as r, c as n, d as c, e as g } from "../../_chunks/toast.agent-B0MCsvdZ.js";
2
2
  export {
3
3
  s as Toaster,
4
4
  o as toastAgent,
@@ -1,4 +1,4 @@
1
- import { C as r, U as t, a as U, b as e, c as n } from "../../_chunks/unit-converter-EUwO6QYq.js";
1
+ import { C as r, U as t, a as U, b as e, c as n } from "../../_chunks/unit-converter-CuXCXJhK.js";
2
2
  export {
3
3
  r as CATEGORIES,
4
4
  t as UNITS,
@@ -1,5 +1,5 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
- import { type InsertPayload } from '../_shared/insert-result';
2
+ import { type InsertPayload, type InsertVariant, type InsertMode } from '../_shared/insert-result';
3
3
  import { type UnitCategory } from './units';
4
4
  declare const rootVariants: (props?: ({
5
5
  width?: "auto" | "full" | null | undefined;
@@ -11,6 +11,16 @@ export interface UnitConverterProps extends VariantProps<typeof rootVariants> {
11
11
  onResultChange?: (value: number | null) => void;
12
12
  /** When provided, shows an "Insert" button that emits the result for an editor. */
13
13
  onInsert?: (payload: InsertPayload) => void;
14
+ /**
15
+ * Which verb the result button performs. Defaults to `'insert'`.
16
+ * Use `'copy'` in an app-shell surface (no editor to insert into) — the
17
+ * button writes the result to the clipboard as a multi-format `ClipboardItem`.
18
+ */
19
+ insertVariant?: InsertVariant;
20
+ /** `copy` variant only — fired after a successful clipboard write. */
21
+ onCopy?: (mode: InsertMode) => void;
22
+ /** `copy` variant only — fired if the clipboard write can't proceed. */
23
+ onError?: (error: unknown) => void;
14
24
  /** Opaque instance id, emitted as `data-component-id`. */
15
25
  id?: string;
16
26
  /** Extra class names on the wrapper. */
@@ -1,4 +1,4 @@
1
- import { C as r, W as e, a as s, b as d, c as w, i as t, l as f, m as l, r as i, w as k, d as n, e as A, f as C } from "../../_chunks/workflow-map-C3gB0FvB.js";
1
+ import { C as r, W as e, a as s, b as d, c as w, i as t, l as f, m as l, r as i, w as k, d as n, e as A, f as C } from "../../_chunks/workflow-map-BFNpzTiw.js";
2
2
  export {
3
3
  r as CORE_PATIENT_FIELDS,
4
4
  e as WorkflowCard,
@@ -189,6 +189,19 @@ export declare const arUi: {
189
189
  readonly results_many: "{{count}} نتيجة";
190
190
  readonly results_other: "{{count}} نتيجة";
191
191
  };
192
+ readonly addressAutocomplete: {
193
+ readonly ariaLabel: "العنوان";
194
+ readonly listLabel: "اقتراحات العنوان";
195
+ readonly placeholder: "ابدأ بكتابة عنوان…";
196
+ readonly loading: "جارٍ تحميل الاقتراحات…";
197
+ readonly noResults: "لا توجد عناوين مطابقة";
198
+ readonly results_one: "{{count}} اقتراح";
199
+ readonly results_zero: "{{count}} اقتراحات";
200
+ readonly results_two: "{{count}} اقتراحات";
201
+ readonly results_few: "{{count}} اقتراحات";
202
+ readonly results_many: "{{count}} اقتراحات";
203
+ readonly results_other: "{{count}} اقتراحات";
204
+ };
192
205
  readonly phone: {
193
206
  readonly placeholder: "رقم الهاتف";
194
207
  readonly searchCountry: "ابحث عن الدول…";
@@ -1401,6 +1414,7 @@ export declare const arUi: {
1401
1414
  readonly loading: "جارٍ تحميل PDF…";
1402
1415
  readonly error: "تعذّر تحميل PDF";
1403
1416
  readonly pageOverlay: "طبقة الصفحة {{page}}";
1417
+ readonly pagesRegionLabel: "صفحات المستند";
1404
1418
  };
1405
1419
  readonly mapView: {
1406
1420
  readonly label: "خريطة";
@@ -1792,6 +1806,9 @@ export declare const arUi: {
1792
1806
  readonly text: "إدراج نص";
1793
1807
  readonly image: "إدراج صورة";
1794
1808
  readonly textImage: "إدراج نص + صورة";
1809
+ readonly copyText: "نسخ النص";
1810
+ readonly copyImage: "نسخ الصورة";
1811
+ readonly copyTextImage: "نسخ النص + الصورة";
1795
1812
  readonly title: {
1796
1813
  readonly bmi: "مؤشر كتلة الجسم";
1797
1814
  readonly dueDate: "تاريخ الولادة المتوقع";