@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
@@ -0,0 +1,344 @@
1
+ import { jsxs as c, jsx as n } from "react/jsx-runtime";
2
+ import { forwardRef as ce, useId as le, useMemo as G, useRef as L, useState as x, useEffect as _, useCallback as l, useImperativeHandle as ue } from "react";
3
+ import { c as i } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as me } from "react-i18next";
5
+ import { P as ge } from "./pdf-viewer-B6MC6VTx.js";
6
+ import { S as pe } from "./signature-capture-CpMBhqQ9.js";
7
+ import { u as fe } from "./registry-nPAVE19X.js";
8
+ import { C as J } from "./circle-check-9AeSgJD_.js";
9
+ const ve = {
10
+ id: "sign-document",
11
+ capabilities: ["submit"],
12
+ state: {
13
+ isReadComplete: {
14
+ type: "boolean",
15
+ descriptionKey: "signDocument.agent.state.isReadComplete",
16
+ description: "True when the reader has reached the last page (or read-gating is off).",
17
+ read: (a) => a.isReadComplete()
18
+ }
19
+ },
20
+ actions: {
21
+ submit: {
22
+ safety: "write",
23
+ descriptionKey: "signDocument.agent.actions.confirm",
24
+ description: "Confirm the current signature, emitting it via onSign. No-op if unsigned.",
25
+ invoke: (a) => a.confirm()
26
+ },
27
+ reset: {
28
+ safety: "destructive",
29
+ descriptionKey: "signDocument.agent.actions.reset",
30
+ description: "Clear the captured signature and return to unsigned.",
31
+ invoke: (a) => {
32
+ a.reset();
33
+ }
34
+ }
35
+ },
36
+ domHooks: {
37
+ root: {
38
+ attr: "data-component",
39
+ value: "sign-document",
40
+ description: "Marks the SignDocument wrapper."
41
+ },
42
+ instanceId: {
43
+ attr: "data-component-id",
44
+ sourceProp: "id",
45
+ description: "Sourced from the id prop."
46
+ }
47
+ }
48
+ }, be = i(
49
+ [
50
+ "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
51
+ "ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--card-border)]",
52
+ "ds:shadow-[var(--shadow-card)] ds:[.theme-accessible_&]:border-2",
53
+ "ds:bg-[var(--background)] ds:text-[var(--foreground)]",
54
+ "ds:p-[var(--spacing-md)]",
55
+ "ds:aria-disabled:opacity-[var(--opacity-50)] ds:aria-disabled:cursor-not-allowed"
56
+ ].join(" ")
57
+ ), he = i(
58
+ ["type-heading-sm ds:text-[var(--foreground)]"].join(" ")
59
+ ), xe = i(
60
+ ["ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"].join(" ")
61
+ ), ye = i(
62
+ ["type-body-sm ds:font-medium ds:text-[var(--foreground)]"].join(" ")
63
+ ), De = i(
64
+ [
65
+ "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
66
+ "type-body-sm ds:text-[var(--muted-foreground)]"
67
+ ].join(" ")
68
+ ), Se = i(
69
+ [
70
+ "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
71
+ "type-body-sm",
72
+ "ds:rounded-[var(--radius-sm)]",
73
+ "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
74
+ "ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
75
+ "ds:bg-[color-mix(in_srgb,var(--info)_10%,transparent)]",
76
+ "ds:text-[var(--foreground)]",
77
+ "ds:border ds:border-[color:color-mix(in_srgb,var(--info)_40%,transparent)]"
78
+ ].join(" ")
79
+ ), Ce = i(
80
+ [
81
+ "ds:inline-flex ds:inline-size-full ds:items-center ds:justify-center",
82
+ "ds:[min-block-size:var(--min-target-size)]",
83
+ "ds:[min-inline-size:var(--min-target-size)]",
84
+ "ds:gap-[var(--spacing-xs)]",
85
+ "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
86
+ "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
87
+ "ds:rounded-[var(--radius-sm)]",
88
+ "ds:bg-[var(--primary)] ds:text-[var(--primary-foreground)]",
89
+ "ds:text-[length:var(--font-size-base)] ds:font-medium",
90
+ "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
91
+ "ds:hover:bg-[var(--primary-hover)]",
92
+ "ds:focus-visible:outline-[length:var(--focus-ring-width)]",
93
+ "ds:focus-visible:outline-solid",
94
+ "ds:focus-visible:outline-[var(--ring)]",
95
+ "ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
96
+ "ds:forced-colors:focus-visible:outline-[CanvasText]",
97
+ "ds:disabled:opacity-[var(--opacity-50)] ds:disabled:cursor-not-allowed",
98
+ "ds:disabled:hover:bg-[var(--primary)]"
99
+ ].join(" ")
100
+ ), we = i(
101
+ [
102
+ "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
103
+ "ds:rounded-[var(--radius-sm)]",
104
+ "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
105
+ "ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]",
106
+ "ds:bg-[color-mix(in_srgb,var(--success)_12%,transparent)]",
107
+ "ds:text-[var(--foreground)]",
108
+ "ds:border ds:border-[color:color-mix(in_srgb,var(--success)_45%,transparent)]"
109
+ ].join(" ")
110
+ ), Q = i(["type-body-sm"].join(" "), {
111
+ variants: {
112
+ placement: {
113
+ pad: "ds:text-[var(--muted-foreground)]",
114
+ banner: "ds:block ds:text-[var(--foreground)]"
115
+ }
116
+ },
117
+ defaultVariants: { placement: "pad" }
118
+ });
119
+ function U(a, g) {
120
+ const t = new Date(a);
121
+ if (Number.isNaN(t.getTime())) return a;
122
+ try {
123
+ return new Intl.DateTimeFormat(g, {
124
+ dateStyle: "long",
125
+ timeStyle: "short"
126
+ }).format(t);
127
+ } catch {
128
+ return t.toISOString();
129
+ }
130
+ }
131
+ const je = ce(
132
+ ({
133
+ id: a,
134
+ src: g,
135
+ documentTitle: t,
136
+ requireReadToEnd: z = !0,
137
+ onSign: y,
138
+ onError: D,
139
+ signedAt: S = null,
140
+ signedByNote: o,
141
+ disabled: C = !1,
142
+ readOnly: w = !1,
143
+ ariaLabel: j,
144
+ className: W
145
+ }, X) => {
146
+ const { t: s, i18n: R } = me(), H = le(), p = G(
147
+ () => `sign-doc-${H.replace(/[^a-zA-Z0-9-_]/g, "")}`,
148
+ [H]
149
+ ), E = `${p}-doc-heading`, T = `${p}-sign-label`, Y = `${p}-live`, N = `${p}-gate-hint`, f = L(null), [$, k] = x(0), [q, K] = x(1), [B, I] = x(!1), [A, u] = x(!1), m = S != null, ee = C || w || m, v = L(y), b = L(D);
150
+ _(() => {
151
+ v.current = y, b.current = D;
152
+ }, [y, D]), _(() => {
153
+ I(!1), k(0), K(1), u(!1);
154
+ }, [g]);
155
+ const se = l(
156
+ (e) => {
157
+ k(e.numPages), e.numPages <= 1 && I(!0);
158
+ },
159
+ []
160
+ ), ne = l((e) => {
161
+ K(e), k((r) => (r > 0 && e >= r && I(!0), r));
162
+ }, []), ae = l((e) => {
163
+ var r;
164
+ (r = b.current) == null || r.call(b, e);
165
+ }, []), F = !m && !w;
166
+ _(() => {
167
+ if (!F) return;
168
+ const e = () => {
169
+ const Z = f.current;
170
+ Z && u(!Z.isEmpty());
171
+ };
172
+ e();
173
+ const r = window.setInterval(e, 200);
174
+ return () => window.clearInterval(r);
175
+ }, [F]);
176
+ const d = !z || B, M = !(!ee && d) || !A, te = l((e) => {
177
+ var r;
178
+ (r = v.current) == null || r.call(v, e);
179
+ }, []), P = l(async () => {
180
+ const e = f.current;
181
+ return e ? e.confirm() : null;
182
+ }, []), O = l(() => {
183
+ var e;
184
+ (e = f.current) == null || e.clear(), u(!1);
185
+ }, []), V = G(
186
+ () => ({
187
+ reset: O,
188
+ confirm: P,
189
+ isReadComplete: () => d
190
+ }),
191
+ [O, P, d]
192
+ );
193
+ ue(X, () => V, [V]), fe(ve, V, a);
194
+ const re = j ?? (t ? s("signDocument.regionLabelNamed", { title: t }) : s("signDocument.regionLabel")), ie = t ?? s("signDocument.documentLabel"), oe = m ? s("signDocument.signedOn", {
195
+ date: U(S, R.language)
196
+ }) : d ? s("signDocument.readyToSign") : "", de = d ? A ? "" : s("signDocument.signToEnable") : s("signDocument.scrollToEnd"), h = o != null && o.signer && (o != null && o.subject) ? s("signDocument.signedByOnBehalf", {
197
+ signer: o.signer,
198
+ subject: o.subject
199
+ }) : null;
200
+ return /* @__PURE__ */ c(
201
+ "div",
202
+ {
203
+ role: "group",
204
+ "aria-labelledby": !j && t ? E : void 0,
205
+ "aria-label": j || !t ? re : void 0,
206
+ "aria-disabled": C || void 0,
207
+ className: [be(), W].filter(Boolean).join(" "),
208
+ "data-component": "sign-document",
209
+ "data-component-id": a,
210
+ "data-signed": m || void 0,
211
+ children: [
212
+ /* @__PURE__ */ n(
213
+ "span",
214
+ {
215
+ role: "status",
216
+ "aria-live": "polite",
217
+ "aria-atomic": "true",
218
+ className: "ds:sr-only",
219
+ "data-testid": "sign-document-live",
220
+ id: Y,
221
+ children: oe
222
+ }
223
+ ),
224
+ /* @__PURE__ */ n("span", { className: "ds:sr-only", id: N, children: de }),
225
+ t ? /* @__PURE__ */ n("h2", { id: E, className: he(), children: t }) : null,
226
+ /* @__PURE__ */ n(
227
+ ge,
228
+ {
229
+ src: g,
230
+ ariaLabel: ie,
231
+ onLoadComplete: se,
232
+ onPageChange: ne,
233
+ onError: ae
234
+ }
235
+ ),
236
+ m ? (
237
+ /* ---- Already-signed, read-only ---- */
238
+ /* @__PURE__ */ c(
239
+ "div",
240
+ {
241
+ className: we(),
242
+ "data-testid": "sign-document-signed",
243
+ children: [
244
+ /* @__PURE__ */ n(
245
+ J,
246
+ {
247
+ "aria-hidden": "true",
248
+ className: "ds:size-5 ds:text-[var(--success)] ds:shrink-0"
249
+ }
250
+ ),
251
+ /* @__PURE__ */ c("span", { className: "type-body-sm", children: [
252
+ /* @__PURE__ */ n("strong", { className: "ds:font-semibold", children: s("signDocument.signed") }),
253
+ " — ",
254
+ s("signDocument.signedOn", {
255
+ date: U(S, R.language)
256
+ }),
257
+ h ? /* @__PURE__ */ n(
258
+ "span",
259
+ {
260
+ className: Q({ placement: "banner" }),
261
+ "data-testid": "sign-document-attribution",
262
+ children: h
263
+ }
264
+ ) : null
265
+ ] })
266
+ ]
267
+ }
268
+ )
269
+ ) : w ? null : (
270
+ /* ---- Sign surface ---- */
271
+ /* @__PURE__ */ c(
272
+ "div",
273
+ {
274
+ className: xe(),
275
+ role: "group",
276
+ "aria-labelledby": T,
277
+ "aria-describedby": N,
278
+ children: [
279
+ /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
280
+ /* @__PURE__ */ n("span", { id: T, className: ye(), children: s("signDocument.signatureSection") }),
281
+ $ > 0 ? /* @__PURE__ */ n(
282
+ "span",
283
+ {
284
+ className: De(),
285
+ "data-testid": "sign-document-progress",
286
+ children: s("signDocument.pageProgress", {
287
+ current: q,
288
+ total: $
289
+ })
290
+ }
291
+ ) : null
292
+ ] }),
293
+ h ? /* @__PURE__ */ n(
294
+ "p",
295
+ {
296
+ className: Q({ placement: "pad" }),
297
+ "data-testid": "sign-document-attribution",
298
+ children: h
299
+ }
300
+ ) : null,
301
+ z && !d ? /* @__PURE__ */ n("p", { className: Se(), "data-testid": "sign-document-hint", children: s("signDocument.scrollToEnd") }) : null,
302
+ /* @__PURE__ */ n(
303
+ pe,
304
+ {
305
+ ref: f,
306
+ ariaLabel: s("signDocument.signatureSection"),
307
+ disabled: C || !d,
308
+ onStart: () => u(!0),
309
+ onClear: () => u(!1),
310
+ onConfirm: te
311
+ }
312
+ ),
313
+ /* @__PURE__ */ c(
314
+ "button",
315
+ {
316
+ type: "button",
317
+ onClick: () => {
318
+ M || P();
319
+ },
320
+ disabled: M,
321
+ "aria-describedby": N,
322
+ className: Ce(),
323
+ "data-testid": "sign-document-confirm",
324
+ children: [
325
+ /* @__PURE__ */ n(J, { "aria-hidden": "true", className: "ds:size-4" }),
326
+ s("signDocument.confirm")
327
+ ]
328
+ }
329
+ )
330
+ ]
331
+ }
332
+ )
333
+ )
334
+ ]
335
+ }
336
+ );
337
+ }
338
+ );
339
+ je.displayName = "SignDocument";
340
+ export {
341
+ je as S,
342
+ ve as s
343
+ };
344
+ //# sourceMappingURL=sign-document-B-3k_0LO.js.map
@@ -84,8 +84,8 @@ const Pe = {
84
84
  ), ae = R(
85
85
  [
86
86
  "ds:inline-flex ds:flex-1 ds:items-center ds:justify-center",
87
- "ds:min-block-size-[var(--min-target-size)]",
88
- "ds:min-inline-size-[var(--min-target-size)]",
87
+ "ds:[min-block-size:var(--min-target-size)]",
88
+ "ds:[min-inline-size:var(--min-target-size)]",
89
89
  "ds:gap-[var(--spacing-xs)]",
90
90
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
91
91
  "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
@@ -105,8 +105,8 @@ const Pe = {
105
105
  ), Be = R(
106
106
  [
107
107
  "ds:inline-flex ds:flex-1 ds:items-center ds:justify-center",
108
- "ds:min-block-size-[var(--min-target-size)]",
109
- "ds:min-inline-size-[var(--min-target-size)]",
108
+ "ds:[min-block-size:var(--min-target-size)]",
109
+ "ds:[min-inline-size:var(--min-target-size)]",
110
110
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
111
111
  "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
112
112
  "ds:rounded-[var(--radius-sm)]",
@@ -124,7 +124,7 @@ const Pe = {
124
124
  ), $e = R(
125
125
  [
126
126
  "ds:block ds:inline-size-full",
127
- "ds:min-block-size-[var(--min-target-size)]",
127
+ "ds:[min-block-size:var(--min-target-size)]",
128
128
  "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
129
129
  "ds:rounded-[var(--radius-sm)]",
130
130
  "ds:border ds:border-[color:var(--border)]",
@@ -490,4 +490,4 @@ export {
490
490
  Ue as S,
491
491
  Pe as s
492
492
  };
493
- //# sourceMappingURL=signature-capture-DoiBd6i3.js.map
493
+ //# sourceMappingURL=signature-capture-CpMBhqQ9.js.map
@@ -1,4 +1,4 @@
1
- import { o as s, q as r, r as i, v as m } from "./react-day-picker-CdtIiKjx.js";
1
+ import { q as s, r, v as i, w as m } from "./date-picker-variants-DLi1Va_e.js";
2
2
  const d = {
3
3
  lessThanXSeconds: {
4
4
  one: "më pak se një sekondë",
@@ -205,11 +205,11 @@ const d = {
205
205
  evening: "në mbrëmje",
206
206
  night: "në mesnatë"
207
207
  }
208
- }, y = (e, a) => {
208
+ }, w = (e, a) => {
209
209
  const t = Number(e);
210
210
  return (a == null ? void 0 : a.unit) === "hour" ? String(t) : t === 1 ? t + "-rë" : t === 4 ? t + "t" : t + "-të";
211
- }, w = {
212
- ordinalNumber: y,
211
+ }, y = {
212
+ ordinalNumber: w,
213
213
  era: r({
214
214
  values: j,
215
215
  defaultWidth: "wide"
@@ -342,7 +342,7 @@ const d = {
342
342
  formatDistance: h,
343
343
  formatLong: b,
344
344
  formatRelative: g,
345
- localize: w,
345
+ localize: y,
346
346
  match: X,
347
347
  options: {
348
348
  weekStartsOn: 1,
@@ -352,4 +352,4 @@ const d = {
352
352
  export {
353
353
  T as sq
354
354
  };
355
- //# sourceMappingURL=sq-BujHSAWu.js.map
355
+ //# sourceMappingURL=sq-_hRPaeUy.js.map
@@ -0,0 +1,8 @@
1
+ import { a as o } from "./date-picker-variants-DLi1Va_e.js";
2
+ function n(a, s, r) {
3
+ return o(a, -s, r);
4
+ }
5
+ export {
6
+ n as s
7
+ };
8
+ //# sourceMappingURL=subDays-Dv7q9S7u.js.map
@@ -1,4 +1,4 @@
1
- import { o as d, q as r, r as i, v as m } from "./react-day-picker-CdtIiKjx.js";
1
+ import { q as d, r, v as i, w as m } from "./date-picker-variants-DLi1Va_e.js";
2
2
  const s = {
3
3
  lessThanXSeconds: {
4
4
  one: "mindre än en sekund",
@@ -373,4 +373,4 @@ const s = {
373
373
  export {
374
374
  q as sv
375
375
  };
376
- //# sourceMappingURL=sv-C8AeDrTA.js.map
376
+ //# sourceMappingURL=sv-g009fSpe.js.map
@@ -0,0 +1,105 @@
1
+ import { jsx as a, jsxs as u, Fragment as b } from "react/jsx-runtime";
2
+ import { forwardRef as h, Fragment as x } from "react";
3
+ import { c as o } from "./index-D2ZczOXr.js";
4
+ import { B as C } from "./badge-zsf5i5bH.js";
5
+ function w(r) {
6
+ return r > 99 ? "99+" : String(r);
7
+ }
8
+ const N = o("ds:shrink-0", {
9
+ variants: {
10
+ position: {
11
+ top: "ds:pt-[var(--spacing-md)]",
12
+ bottom: "ds:pb-[var(--spacing-md)]"
13
+ },
14
+ fill: {
15
+ false: "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
16
+ true: ""
17
+ }
18
+ },
19
+ defaultVariants: { position: "top", fill: !1 }
20
+ }), k = "ds:flex ds:[justify-content:safe_center] ds:overflow-x-auto ds:rounded-[var(--radius-lg)] ds:border ds:border-[color:var(--card-border)] ds:bg-[var(--card)]/80 ds:backdrop-blur-md ds:shadow-[var(--shadow-md)] ds:py-[var(--spacing-xs)]", y = o(
21
+ "ds:flex ds:items-stretch ds:gap-[var(--spacing-xs)] ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
22
+ {
23
+ variants: {
24
+ fill: { false: "ds:shrink-0", true: "ds:w-full" }
25
+ },
26
+ defaultVariants: { fill: !1 }
27
+ }
28
+ ), f = o(
29
+ "ds:group ds:flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)] ds:min-h-[var(--min-target-size)] ds:rounded-[var(--radius-sm)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)] ds:whitespace-nowrap ds:cursor-pointer ds:appearance-none ds:border-0 ds:bg-transparent ds:text-[length:var(--font-size-sm)] ds:font-[var(--font-weight-regular)] ds:text-[color:var(--foreground)] ds:no-underline ds:hover:bg-[var(--muted)]/20 ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)] ds:forced-colors:focus-visible:outline-[CanvasText]",
30
+ {
31
+ variants: {
32
+ fill: {
33
+ // Responsive: label under the icon below `sm`, beside it at `sm`+.
34
+ false: "ds:flex-col ds:sm:flex-row ds:sm:gap-[var(--spacing-sm)]",
35
+ // Fill the bar, always icon-over-label. No `min-w-0`, so a tab never
36
+ // shrinks below its label (labels never overlap); if the full set can't
37
+ // fit, the pill scrolls instead.
38
+ true: "ds:flex-1 ds:basis-0 ds:flex-col"
39
+ }
40
+ },
41
+ defaultVariants: { fill: !1 }
42
+ }
43
+ ), V = "ds:inline-flex ds:items-center ds:text-[color:var(--accent)] ds:[&>svg]:size-4", B = "ds:group-aria-[current=page]:underline ds:group-aria-[current=page]:decoration-2 ds:group-aria-[current=page]:decoration-[color:var(--accent)] ds:group-aria-[current=page]:underline-offset-[var(--spacing-xs)]", j = h(
44
+ ({
45
+ items: r,
46
+ ariaLabel: g,
47
+ onSelect: e,
48
+ renderLink: t,
49
+ fill: n = !1,
50
+ position: v = "top",
51
+ className: c
52
+ }, m) => /* @__PURE__ */ a(
53
+ "div",
54
+ {
55
+ ref: m,
56
+ "data-component": "tab-bar",
57
+ className: `${N({ position: v, fill: n })}${c ? ` ${c}` : ""}`,
58
+ children: /* @__PURE__ */ a("div", { className: k, children: /* @__PURE__ */ a("nav", { "aria-label": g, className: y({ fill: n }), children: r.map((s) => {
59
+ const l = typeof s.badgeCount == "number" && s.badgeCount > 0 ? s.badgeCount : void 0, d = s.isActive ? "page" : void 0, i = /* @__PURE__ */ u(b, { children: [
60
+ s.icon ? /* @__PURE__ */ a("span", { "aria-hidden": "true", className: V, children: s.icon }) : null,
61
+ /* @__PURE__ */ u("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
62
+ /* @__PURE__ */ a("span", { className: B, children: s.label }),
63
+ l !== void 0 ? /* @__PURE__ */ a(C, { variant: "neutral", children: w(l) }) : null
64
+ ] })
65
+ ] });
66
+ if (s.href !== void 0) {
67
+ const p = f({ fill: n });
68
+ return t ? /* @__PURE__ */ a(x, { children: t({
69
+ href: s.href,
70
+ className: p,
71
+ children: i,
72
+ "aria-current": d,
73
+ onClick: s.onClick
74
+ }) }, s.id) : /* @__PURE__ */ a(
75
+ "a",
76
+ {
77
+ href: s.href,
78
+ "aria-current": d,
79
+ className: p,
80
+ ...s.onClick ? { onClick: s.onClick } : {},
81
+ children: i
82
+ },
83
+ s.id
84
+ );
85
+ }
86
+ return /* @__PURE__ */ a(
87
+ "button",
88
+ {
89
+ type: "button",
90
+ "aria-current": d,
91
+ className: f({ fill: n }),
92
+ onClick: () => e == null ? void 0 : e(s.id),
93
+ children: i
94
+ },
95
+ s.id
96
+ );
97
+ }) }) })
98
+ }
99
+ )
100
+ );
101
+ j.displayName = "TabBar";
102
+ export {
103
+ j as T
104
+ };
105
+ //# sourceMappingURL=tab-bar-Xetknddo.js.map
@@ -5,7 +5,7 @@ import { useTranslation as g } from "react-i18next";
5
5
  import { I as y } from "./icon-button-CKEOrN37.js";
6
6
  import { I as K } from "./icon-button-group-C48khLE0.js";
7
7
  import { S as x } from "./switch-BJ6HD3Mn.js";
8
- import { D as o } from "./dropdown-menu-BC5ZdOMo.js";
8
+ import { D as o } from "./dropdown-menu-CUEXqKis.js";
9
9
  import { u as z } from "./use-theme-C2dHKUAN.js";
10
10
  import { u as D } from "./registry-nPAVE19X.js";
11
11
  import { M as v, S as C } from "./sun-BuXE0xUS.js";
@@ -352,4 +352,4 @@ export {
352
352
  O as T,
353
353
  H as t
354
354
  };
355
- //# sourceMappingURL=theme-toggle-DpC28kt5.js.map
355
+ //# sourceMappingURL=theme-toggle-ClATnY4Q.js.map
@@ -838,7 +838,7 @@ function Oe({
838
838
  "ds:forced-colors:border ds:forced-colors:border-[CanvasText]",
839
839
  "ds:rounded-[var(--radius-md)]",
840
840
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:py-[var(--spacing-sm)]",
841
- "[max-inline-size:360px] max-sm:[max-inline-size:88dvw]",
841
+ "ds:[max-inline-size:360px] ds:max-sm:[max-inline-size:88dvw]",
842
842
  "break-words",
843
843
  "ds:z-[var(--z-toast)]",
844
844
  "ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
@@ -985,4 +985,4 @@ export {
985
985
  Ze as e,
986
986
  aa as t
987
987
  };
988
- //# sourceMappingURL=toast.agent-WHHfw5VX.js.map
988
+ //# sourceMappingURL=toast.agent-B0MCsvdZ.js.map
@@ -1,4 +1,4 @@
1
- import { o, q as n, r as i, v as m } from "./react-day-picker-CdtIiKjx.js";
1
+ import { q as o, r as n, v as i, w as m } from "./date-picker-variants-DLi1Va_e.js";
2
2
  const d = {
3
3
  lessThanXSeconds: {
4
4
  one: "bir saniyeden az",
@@ -375,4 +375,4 @@ const d = {
375
375
  export {
376
376
  O as tr
377
377
  };
378
- //# sourceMappingURL=tr-CMSs_Vgf.js.map
378
+ //# sourceMappingURL=tr-OKUOuhMW.js.map