@alfadocs/ui-kit 1.3.13 → 1.4.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 (185) hide show
  1. package/dist/_chunks/agenda-card.agent-Cb5tuEh3.js +28 -0
  2. package/dist/_chunks/{alia-sidebar-DzNz1gDf.js → alia-sidebar-DSBZMick.js} +3 -3
  3. package/dist/_chunks/{anamnesis-i18n-CfC0qYzy.js → anamnesis-i18n-BA631X4t.js} +2209 -2144
  4. package/dist/_chunks/{antenatal-schedule-timeline-BMMpi2lb.js → antenatal-schedule-timeline-u8TsS2QJ.js} +27 -26
  5. package/dist/_chunks/{appointment-timeline-B630OT_J.js → appointment-timeline-Bqf1sTU5.js} +2 -2
  6. package/dist/_chunks/{ar-THMLfSoN.js → ar-BR1FGFP2.js} +14 -14
  7. package/dist/_chunks/{bmi-calculator-CM0-G2mg.js → bmi-calculator-CpyY13MV.js} +2 -2
  8. package/dist/_chunks/{booking-DjNbd7C1.js → booking-BjsA7j1-.js} +699 -688
  9. package/dist/_chunks/calculator-dialog-12d3Sxaz.js +48 -0
  10. package/dist/_chunks/{care-plan-card-1G_f4I5s.js → care-plan-card-BvQy366X.js} +3 -3
  11. package/dist/_chunks/{care-plan-entry-card-DmBsffHS.js → care-plan-entry-card-apk_5B3O.js} +2 -2
  12. package/dist/_chunks/{chat-container-HlFnoEIl.js → chat-container-CYYego1W.js} +105 -81
  13. package/dist/_chunks/cycle-calculator-B7fyH-h4.js +425 -0
  14. package/dist/_chunks/{date-picker-ZHejTVAJ.js → date-picker-Bp64zk2p.js} +19 -19
  15. package/dist/_chunks/date-picker-variants-pKAJfnWr.js +2089 -0
  16. package/dist/_chunks/{date-range-picker-pEG3Ln3i.js → date-range-picker-CDrZ8Zh0.js} +27 -27
  17. package/dist/_chunks/{date-time-picker-695QvBGj.js → date-time-picker-DafkGDGO.js} +10 -10
  18. package/dist/_chunks/{de-DmZ-8rTN.js → de-3iM4rGqo.js} +7 -7
  19. package/dist/_chunks/{document-preview-D3gg4MXB.js → document-preview-DOrsqiN1.js} +2 -2
  20. package/dist/_chunks/due-date-calculator-CnkbbAej.js +571 -0
  21. package/dist/_chunks/{editor-overlay-DE3esyio.js → editor-overlay-B1tr2i7B.js} +22 -21
  22. package/dist/_chunks/{el-Bela9mxs.js → el-C96rGJvU.js} +2 -2
  23. package/dist/_chunks/{es-BNncHKex.js → es-Cxiqjx8r.js} +12 -12
  24. package/dist/_chunks/fetal-weight-avlj-l-S.js +223 -0
  25. package/dist/_chunks/format-4HNwNGrN.js +1315 -0
  26. package/dist/_chunks/{fr-CH8ADfhN.js → fr-Bhr6SYKj.js} +21 -21
  27. package/dist/_chunks/{freemium-paywall-C_Ue6wxU.js → freemium-paywall-DRDdWuOg.js} +3 -3
  28. package/dist/_chunks/gestational-age-calculator-BljY_DVJ.js +488 -0
  29. package/dist/_chunks/hcg-doubling-Cv_vH61p.js +312 -0
  30. package/dist/_chunks/header-settings-Cn5fPXCE.js +335 -0
  31. package/dist/_chunks/{hi-Bppfxp8l.js → hi-BxXX26d_.js} +12 -12
  32. package/dist/_chunks/isSameWeek-B73MagWB.js +13 -0
  33. package/dist/_chunks/{it-B4ySaRyK.js → it-Xmjomvyj.js} +24 -24
  34. package/dist/_chunks/{ja-CGF6Io9P.js → ja-mfZvt1ZV.js} +16 -16
  35. package/dist/_chunks/{link-cell-renderer-C5XLwVXQ.js → link-cell-renderer-CJ_gk7gl.js} +3 -3
  36. package/dist/_chunks/{locale-picker-BfBUdT1m.js → locale-picker-D9Kv2zrK.js} +153 -132
  37. package/dist/_chunks/map-view-2yZCQW2l.js +445 -0
  38. package/dist/_chunks/{marketplace-app-shell-DwcFMxzp.js → marketplace-app-shell-BLRvg-M0.js} +49 -40
  39. package/dist/_chunks/{nl-DuShqwuV.js → nl-DDs-KEnD.js} +15 -15
  40. package/dist/_chunks/{notes-panel-DPsgB4Mv.js → notes-panel-CiFN3sLW.js} +2 -2
  41. package/dist/_chunks/{number-input-DrozbZAU.js → number-input-DOe5VYei.js} +64 -64
  42. package/dist/_chunks/{optical-prescription-BDHJr8Zz.js → optical-prescription-CRemE8fL.js} +2 -2
  43. package/dist/_chunks/{parse-DvA97ro9.js → parse-JqixfsU0.js} +43 -43
  44. package/dist/_chunks/parseISO-fOGpHKXm.js +120 -0
  45. package/dist/_chunks/{patient-details-DqjjwPmt.js → patient-details-CpunD0qx.js} +3 -3
  46. package/dist/_chunks/{patient-table-BmIDrLIS.js → patient-table-2eWx-Rrk.js} +2 -2
  47. package/dist/_chunks/{payment-form-h-BZ8onk.js → payment-form-Ds1I9KqB.js} +308 -231
  48. package/dist/_chunks/{pdf-viewer-Ddx-T053.js → pdf-viewer-DUIsV9s5.js} +429 -369
  49. package/dist/_chunks/{pl-CKQwX9Fk.js → pl-BYYMnEWP.js} +18 -18
  50. package/dist/_chunks/{practice-results-B-HPc13W.js → practice-results-SjCniMd2.js} +2 -2
  51. package/dist/_chunks/pregnancy-dating-BmpHScZ0.js +770 -0
  52. package/dist/_chunks/pregnancy-weight-gain-B5KSJzdc.js +553 -0
  53. package/dist/_chunks/progress-CK8otcQ-.js +343 -0
  54. package/dist/_chunks/{pt-_njpXyOZ.js → pt-BSPnVrQ7.js} +20 -20
  55. package/dist/_chunks/{radiograph-panel.agent-BQZ64Riy.js → radiograph-panel.agent-CtFtNMzk.js} +3 -3
  56. package/dist/_chunks/{rich-text-editor-CfeXPPWs.js → rich-text-editor-BedTpWzL.js} +2 -2
  57. package/dist/_chunks/{ro-3X6_4FcN.js → ro-BbiylGmG.js} +14 -14
  58. package/dist/_chunks/{ru-bAcgmnS-.js → ru-BX_qsV67.js} +14 -14
  59. package/dist/_chunks/{session-countdown-Bc70VXN1.js → session-countdown-BL-Psg8u.js} +2 -2
  60. package/dist/_chunks/{sign-document-CW_ByDUh.js → sign-document-jF4fZDJ5.js} +2 -2
  61. package/dist/_chunks/slot-grid-DNiUcXy2.js +640 -0
  62. package/dist/_chunks/{sparkline-BTY4B5tv.js → sparkline-BmGcEyZO.js} +209 -164
  63. package/dist/_chunks/{sq-jYFqr4Ga.js → sq-i9UOk4P7.js} +10 -10
  64. package/dist/_chunks/subDays-CAUv47M1.js +8 -0
  65. package/dist/_chunks/{sv-BSGEJ-8B.js → sv-CpTdtmDQ.js} +8 -8
  66. package/dist/_chunks/{tab-bar-Axhk6xzx.js → tab-bar-BYESZINM.js} +83 -77
  67. package/dist/_chunks/task-card.agent-CF2N_uu4.js +29 -0
  68. package/dist/_chunks/{tr-CTpgUtw6.js → tr-DXG2QN1K.js} +17 -17
  69. package/dist/_chunks/{unit-converter-COgkN7YP.js → unit-converter-CHPDuV7W.js} +2 -2
  70. package/dist/_chunks/{warning-stack-BtjmJChC.js → warning-stack-B7t_8jRE.js} +42 -37
  71. package/dist/_chunks/{zh-CN-BgM0Io2O.js → zh-CN-vPkPEK6H.js} +18 -18
  72. package/dist/agent-catalog.json +6426 -3382
  73. package/dist/agent-i18n/en.json +234 -15
  74. package/dist/components/agenda-card/index.js +1 -1
  75. package/dist/components/appointment-timeline/index.js +1 -1
  76. package/dist/components/bmi-calculator/index.js +1 -1
  77. package/dist/components/booking/index.js +1 -1
  78. package/dist/components/calculator-dialog/index.js +1 -1
  79. package/dist/components/care-plan-card/index.js +1 -1
  80. package/dist/components/care-plan-entry-card/index.js +1 -1
  81. package/dist/components/chat-container/chat-container.d.ts +14 -0
  82. package/dist/components/chat-container/index.js +1 -1
  83. package/dist/components/cycle-calculator/cycle-calculator.agent.d.ts +4 -0
  84. package/dist/components/cycle-calculator/cycle-calculator.d.ts +42 -0
  85. package/dist/components/cycle-calculator/index.d.ts +1 -1
  86. package/dist/components/cycle-calculator/index.js +1 -1
  87. package/dist/components/data-table/index.js +1 -1
  88. package/dist/components/date-picker/index.js +1 -1
  89. package/dist/components/date-range-picker/index.js +1 -1
  90. package/dist/components/date-time-picker/index.js +1 -1
  91. package/dist/components/document-preview/index.js +1 -1
  92. package/dist/components/due-date-calculator/due-date-calculator.agent.d.ts +4 -0
  93. package/dist/components/due-date-calculator/due-date-calculator.d.ts +61 -1
  94. package/dist/components/due-date-calculator/index.d.ts +1 -1
  95. package/dist/components/due-date-calculator/index.js +2 -2
  96. package/dist/components/editor-overlay/editor-overlay.d.ts +7 -1
  97. package/dist/components/editor-overlay/index.js +1 -1
  98. package/dist/components/fetal-weight/fetal-weight.agent.d.ts +4 -0
  99. package/dist/components/fetal-weight/fetal-weight.d.ts +26 -0
  100. package/dist/components/fetal-weight/index.d.ts +1 -1
  101. package/dist/components/fetal-weight/index.js +1 -1
  102. package/dist/components/freemium-paywall/index.js +1 -1
  103. package/dist/components/gestational-age-calculator/gestational-age-calculator.agent.d.ts +4 -0
  104. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +44 -2
  105. package/dist/components/gestational-age-calculator/index.d.ts +1 -1
  106. package/dist/components/gestational-age-calculator/index.js +1 -1
  107. package/dist/components/hcg-doubling/hcg-doubling.agent.d.ts +4 -0
  108. package/dist/components/hcg-doubling/hcg-doubling.d.ts +30 -0
  109. package/dist/components/hcg-doubling/index.d.ts +1 -1
  110. package/dist/components/hcg-doubling/index.js +1 -1
  111. package/dist/components/header-settings/header-settings.d.ts +13 -1
  112. package/dist/components/header-settings/index.js +1 -1
  113. package/dist/components/locale-picker/index.js +1 -1
  114. package/dist/components/locale-picker/locale-picker.d.ts +9 -0
  115. package/dist/components/map-view/index.js +1 -1
  116. package/dist/components/map-view/map-view.d.ts +22 -0
  117. package/dist/components/notes-panel/index.js +1 -1
  118. package/dist/components/number-input/index.js +1 -1
  119. package/dist/components/number-input/number-input.d.ts +2 -1
  120. package/dist/components/optical-prescription/index.js +1 -1
  121. package/dist/components/patient-details/index.js +1 -1
  122. package/dist/components/patient-table/index.js +1 -1
  123. package/dist/components/payment-form/index.d.ts +1 -1
  124. package/dist/components/payment-form/index.js +1 -1
  125. package/dist/components/payment-form/payment-form.d.ts +32 -1
  126. package/dist/components/pdf-viewer/index.js +1 -1
  127. package/dist/components/pdf-viewer/pdf-viewer.d.ts +13 -0
  128. package/dist/components/practice-results/index.js +1 -1
  129. package/dist/components/pregnancy-dating/index.d.ts +1 -1
  130. package/dist/components/pregnancy-dating/index.js +1 -1
  131. package/dist/components/pregnancy-dating/pregnancy-dating.agent.d.ts +4 -0
  132. package/dist/components/pregnancy-dating/pregnancy-dating.d.ts +65 -1
  133. package/dist/components/pregnancy-weight-gain/index.d.ts +2 -1
  134. package/dist/components/pregnancy-weight-gain/index.js +6 -5
  135. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.agent.d.ts +4 -0
  136. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +35 -0
  137. package/dist/components/progress/index.js +1 -1
  138. package/dist/components/progress/progress.d.ts +13 -0
  139. package/dist/components/radiograph-panel/index.js +1 -1
  140. package/dist/components/rich-text-editor/index.js +1 -1
  141. package/dist/components/session-countdown/index.js +1 -1
  142. package/dist/components/sign-document/index.js +1 -1
  143. package/dist/components/slot-grid/index.d.ts +2 -1
  144. package/dist/components/slot-grid/index.js +5 -4
  145. package/dist/components/slot-grid/slot-grid.agent.d.ts +4 -0
  146. package/dist/components/slot-grid/slot-grid.d.ts +34 -0
  147. package/dist/components/sparkline/index.js +1 -1
  148. package/dist/components/sparkline/sparkline.d.ts +10 -0
  149. package/dist/components/tab-bar/index.js +1 -1
  150. package/dist/components/tab-bar/tab-bar.d.ts +13 -0
  151. package/dist/components/task-card/index.js +1 -1
  152. package/dist/components/unit-converter/index.js +1 -1
  153. package/dist/components/warning-stack/index.js +1 -1
  154. package/dist/index.js +630 -627
  155. package/dist/patterns/alia-assistant/index.js +1 -1
  156. package/dist/patterns/anamnesis/anamnesis-derive.d.ts +27 -8
  157. package/dist/patterns/anamnesis/anamnesis-format.d.ts +11 -3
  158. package/dist/patterns/anamnesis/anamnesis-highlight.d.ts +6 -0
  159. package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts +23 -9
  160. package/dist/patterns/anamnesis/anamnesis-types.d.ts +7 -0
  161. package/dist/patterns/anamnesis/anamnesis.d.ts +16 -7
  162. package/dist/patterns/anamnesis/index.d.ts +3 -2
  163. package/dist/patterns/anamnesis/index.js +7 -6
  164. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  165. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +6 -0
  166. package/dist/tokens.css +1 -1
  167. package/package.json +1 -1
  168. package/dist/_chunks/agenda-card.agent-mTCrkKSZ.js +0 -27
  169. package/dist/_chunks/calculator-dialog-DuXMQSdm.js +0 -40
  170. package/dist/_chunks/cycle-calculator-BwqYVPB4.js +0 -252
  171. package/dist/_chunks/date-picker-variants-eL6HjWvw.js +0 -3363
  172. package/dist/_chunks/due-date-calculator-CwfsFd3T.js +0 -256
  173. package/dist/_chunks/fetal-weight-ePlLjJPc.js +0 -122
  174. package/dist/_chunks/gestational-age-calculator-DdgbH69Z.js +0 -311
  175. package/dist/_chunks/hcg-doubling-BBqD2wI2.js +0 -170
  176. package/dist/_chunks/header-settings--pjYOe6g.js +0 -284
  177. package/dist/_chunks/isSameDay-DUEiAT0G.js +0 -39
  178. package/dist/_chunks/isSameWeek-CK4HS9lH.js +0 -14
  179. package/dist/_chunks/map-view-CsaHfoo6.js +0 -378
  180. package/dist/_chunks/pregnancy-dating-DzYTlBkT.js +0 -421
  181. package/dist/_chunks/pregnancy-weight-gain-O6J0sUIi.js +0 -322
  182. package/dist/_chunks/progress-DA413-zn.js +0 -299
  183. package/dist/_chunks/slot-grid-CQSULZjd.js +0 -502
  184. package/dist/_chunks/subDays-BcNi04uf.js +0 -8
  185. package/dist/_chunks/task-card.agent-Bt14CzUd.js +0 -25
@@ -0,0 +1,343 @@
1
+ import { jsx as u, jsxs as V } from "react/jsx-runtime";
2
+ import { forwardRef as C, useId as ge, useRef as d, useState as ve, useEffect as he, useMemo as be, useImperativeHandle as ye, createContext as xe, useContext as we } from "react";
3
+ import { c as Z } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as S } from "react-i18next";
5
+ import { u as Pe } from "./registry-DvAUVLHh.js";
6
+ import { u as W } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
7
+ const ke = {
8
+ id: "progress",
9
+ // set_value → the `set_value` action + the `value` state slot it writes.
10
+ capabilities: ["set_value"],
11
+ state: {
12
+ value: {
13
+ type: "number | null",
14
+ descriptionKey: "ui.agent.progress.state.value",
15
+ description: "The figure the bar currently shows, in the same units as the `max` prop (default max 100) — including a value written imperatively by `set_value`. Null while indeterminate.",
16
+ read: (e) => e.getValue()
17
+ },
18
+ indeterminate: {
19
+ type: "boolean",
20
+ descriptionKey: "ui.agent.progress.state.indeterminate",
21
+ description: 'True when the operation reports no measurable progress. Read this before treating a null/0 `value` as "nothing done yet" — the two are different states.',
22
+ read: (e) => e.isIndeterminate()
23
+ }
24
+ },
25
+ actions: {
26
+ set_value: {
27
+ // Paints the bar directly, bypassing React — not read-only, even though
28
+ // nothing is persisted server-side. §3: when in doubt, the more
29
+ // conservative class.
30
+ safety: "write",
31
+ argsType: "{ value: number }",
32
+ argsSchema: {
33
+ type: "object",
34
+ properties: {
35
+ value: {
36
+ type: "number",
37
+ minimum: 0,
38
+ description: "Progress figure in the same units as the `max` prop (default max 100). Clamped to [0, max]."
39
+ }
40
+ },
41
+ required: ["value"],
42
+ additionalProperties: !1
43
+ },
44
+ idempotent: !0,
45
+ errors: [
46
+ "Has no visible effect on an indeterminate instance — the animated fill ignores the painted value. Check the `indeterminate` state slot first.",
47
+ "Overwritten by the next React render that changes the `value` prop."
48
+ ],
49
+ examples: [
50
+ { args: { value: 80 }, note: "Paint the bar at 80% of a default max." }
51
+ ],
52
+ descriptionKey: "ui.agent.progress.actions.setValue",
53
+ description: "Paint the displayed progress value straight onto the DOM, bypassing React. Read it back with the `value` state slot — the `value` prop does not change.",
54
+ invoke: (e, c) => {
55
+ e.setValue(c.value);
56
+ }
57
+ }
58
+ },
59
+ domHooks: {
60
+ root: { attr: "data-component", value: "progress" },
61
+ instanceId: {
62
+ attr: "data-component-id",
63
+ sourceProp: "id",
64
+ description: "Sourced from the id prop. Also the registry key — without an `id` the instance does not register and the handle-driven action/state are unreachable."
65
+ }
66
+ }
67
+ }, j = xe(null);
68
+ function $() {
69
+ const e = we(j);
70
+ if (!e)
71
+ throw new Error("Progress sub-components must be used within <Progress>");
72
+ return e;
73
+ }
74
+ const M = {
75
+ sm: { viewBox: "0 0 24 24", cx: 12, cy: 12, r: 10 },
76
+ md: { viewBox: "0 0 40 40", cx: 20, cy: 20, r: 18 },
77
+ lg: { viewBox: "0 0 56 56", cx: 28, cy: 28, r: 26 }
78
+ }, Ie = Z(
79
+ "ds:relative ds:w-full ds:overflow-hidden ds:rounded-[var(--radius-full)] ds:bg-[var(--progress-track)]",
80
+ {
81
+ variants: {
82
+ size: { sm: "ds:h-1", md: "ds:h-2", lg: "ds:h-3" }
83
+ },
84
+ defaultVariants: { size: "md" }
85
+ }
86
+ ), Y = Z("", {
87
+ variants: {
88
+ size: {
89
+ sm: "ds:w-6 ds:h-6",
90
+ md: "ds:w-10 ds:h-10",
91
+ lg: "ds:w-14 ds:h-14"
92
+ }
93
+ },
94
+ defaultVariants: { size: "md" }
95
+ }), z = C(({ children: e, className: c, ...t }, a) => {
96
+ const r = $(), { t: m, i18n: f } = S(), p = r.isIndeterminate ? m("common.loading", "Loading...") : m("common.progress_label", {
97
+ percent: new Intl.NumberFormat(f.language, {
98
+ style: "percent",
99
+ maximumFractionDigits: 0
100
+ }).format((r.value ?? 0) / r.max)
101
+ });
102
+ return /* @__PURE__ */ u(
103
+ "span",
104
+ {
105
+ ref: a,
106
+ id: r.labelId,
107
+ className: ["type-label ds:text-foreground", c].filter(Boolean).join(" "),
108
+ ...t,
109
+ children: e ?? p
110
+ }
111
+ );
112
+ });
113
+ z.displayName = "Progress.Label";
114
+ const ee = C(({ className: e, ...c }, t) => {
115
+ const a = $(), { t: r, i18n: m } = S(), f = a.isIndeterminate ? r("common.loading", "Loading...") : new Intl.NumberFormat(m.language, {
116
+ style: "percent",
117
+ maximumFractionDigits: 0
118
+ }).format((a.value ?? 0) / a.max);
119
+ return /* @__PURE__ */ u(
120
+ "span",
121
+ {
122
+ ref: t,
123
+ className: [
124
+ "type-body-sm ds:tabular-nums ds:text-muted-foreground",
125
+ e
126
+ ].filter(Boolean).join(" "),
127
+ ...c,
128
+ children: f
129
+ }
130
+ );
131
+ });
132
+ ee.displayName = "Progress.Value";
133
+ const te = C(
134
+ ({
135
+ id: e,
136
+ value: c,
137
+ max: t = 100,
138
+ shape: a = "bar",
139
+ size: r = "md",
140
+ ariaLabel: m,
141
+ ariaValueText: f,
142
+ debouncePercent: p = 1,
143
+ disabled: D = !1,
144
+ className: re,
145
+ children: L,
146
+ ...A
147
+ }, se) => {
148
+ const B = ge(), { t: F, i18n: ae } = S(), w = d(null), P = d(null), k = d(null), I = d(null), g = d(null), s = c === void 0, n = s ? void 0 : Math.min(t, Math.max(0, c)), ne = n !== void 0 ? n / t * 100 : void 0, [_, oe] = ve(!1);
149
+ he(() => {
150
+ oe(!0);
151
+ }, []);
152
+ const v = _ || s ? ne : 0, h = d(null), T = d(s);
153
+ T.current = s, W(() => {
154
+ var o, i;
155
+ if (s || v === void 0) {
156
+ h.current = null;
157
+ return;
158
+ }
159
+ if (h.current = _ ? n ?? 0 : 0, a === "bar")
160
+ (o = P.current) == null || o.style.setProperty(
161
+ "--progress-value",
162
+ String(v)
163
+ );
164
+ else {
165
+ const { r: l } = M[r], x = 2 * Math.PI * l * (1 - v / 100);
166
+ (i = I.current) == null || i.style.setProperty(
167
+ "stroke-dashoffset",
168
+ String(x)
169
+ );
170
+ }
171
+ }, [s, v, a, r, _, n]), W(() => {
172
+ const o = a === "bar" ? w.current : k.current;
173
+ if (!o) return;
174
+ if (s) {
175
+ o.removeAttribute("aria-valuenow"), g.current = null;
176
+ return;
177
+ }
178
+ if (n === void 0) return;
179
+ const i = n / t * 100, l = g.current;
180
+ (l === null ? 1 / 0 : Math.abs(i - l)) >= p && (o.setAttribute("aria-valuenow", String(n)), g.current = i);
181
+ }, [s, n, t, p, a]);
182
+ const E = d(null), R = be(
183
+ () => ({
184
+ getValue: () => h.current,
185
+ isIndeterminate: () => T.current,
186
+ setValue: (o) => {
187
+ var Q, U;
188
+ const i = Math.min(t, Math.max(0, o)), l = i / t * 100;
189
+ if (h.current = i, a === "bar")
190
+ (Q = P.current) == null || Q.style.setProperty(
191
+ "--progress-value",
192
+ String(l)
193
+ );
194
+ else {
195
+ const { r: fe } = M[r], pe = 2 * Math.PI * fe * (1 - l / 100);
196
+ (U = I.current) == null || U.style.setProperty(
197
+ "stroke-dashoffset",
198
+ String(pe)
199
+ );
200
+ }
201
+ const y = a === "bar" ? w.current : k.current, x = g.current;
202
+ (x === null ? 1 / 0 : Math.abs(l - x)) >= p && y && (y.setAttribute("aria-valuenow", String(i)), g.current = l);
203
+ }
204
+ }),
205
+ [t, a, r, p]
206
+ );
207
+ ye(se, () => R, [R]), Pe(ke, R, e);
208
+ const ie = s ? F("common.loading", "Loading...") : F("common.progress_label", {
209
+ percent: new Intl.NumberFormat(ae.language, {
210
+ style: "percent",
211
+ maximumFractionDigits: 0
212
+ }).format((n ?? 0) / t)
213
+ }), H = m ? { "aria-label": m } : { "aria-labelledby": B, "aria-label": ie }, O = s ? { "aria-busy": !0, "aria-valuemin": 0, "aria-valuemax": t } : {
214
+ "aria-valuemin": 0,
215
+ "aria-valuemax": t,
216
+ ...f ? { "aria-valuetext": f } : {}
217
+ }, K = D ? { "aria-disabled": !0 } : {}, q = [
218
+ "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
219
+ D && "ds:opacity-50",
220
+ re
221
+ ].filter(Boolean).join(" "), X = {
222
+ labelId: B,
223
+ isIndeterminate: s,
224
+ value: n,
225
+ max: t
226
+ };
227
+ if (a === "bar") {
228
+ const o = s ? [
229
+ "ds:absolute ds:[inset-block:0] ds:bg-primary ds:rounded-[var(--radius-full)]",
230
+ "ds:[@media(prefers-reduced-motion:no-preference)]:animate-[progress-bar-indeterminate_1200ms_ease-in-out_infinite]",
231
+ "ds:[.theme-accessible_&]:animate-none",
232
+ "ds:motion-reduce:animate-[progress-indeterminate-pulse_var(--animation-duration)_ease-in-out_infinite]"
233
+ ].join(" ") : [
234
+ "ds:absolute ds:[inset-block:0] ds:start-0",
235
+ "ds:[inline-size:calc(var(--progress-value,0)*1%)]",
236
+ "ds:bg-primary ds:rounded-[var(--radius-full)]",
237
+ "ds:transition-[inline-size] ds:duration-[var(--animation-duration)]",
238
+ "ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
239
+ ].join(" ");
240
+ return /* @__PURE__ */ u(j.Provider, { value: X, children: /* @__PURE__ */ V(
241
+ "div",
242
+ {
243
+ ref: E,
244
+ className: q,
245
+ "data-component": "progress",
246
+ "data-component-id": e,
247
+ ...A,
248
+ children: [
249
+ L,
250
+ /* @__PURE__ */ u(
251
+ "div",
252
+ {
253
+ ref: w,
254
+ role: "progressbar",
255
+ ...H,
256
+ ...O,
257
+ ...K,
258
+ className: Ie({ size: r }),
259
+ children: /* @__PURE__ */ u("div", { ref: P, className: o })
260
+ }
261
+ )
262
+ ]
263
+ }
264
+ ) });
265
+ }
266
+ const { viewBox: le, cx: G, cy: J, r: N } = M[r], b = 2 * Math.PI * N, ce = b * 0.25, de = s ? ce : b, ue = s ? [
267
+ Y({ size: r }),
268
+ "ds:[transform:rotate(-90deg)]",
269
+ "ds:[@media(prefers-reduced-motion:no-preference)]:animate-[progress-circular-spin_1200ms_linear_infinite]",
270
+ "ds:[.theme-accessible_&]:animate-none",
271
+ "ds:motion-reduce:animate-[progress-indeterminate-pulse_var(--animation-duration)_ease-in-out_infinite]"
272
+ ].join(" ") : [
273
+ Y({ size: r }),
274
+ "ds:[transform:rotate(-90deg)]",
275
+ "ds:rtl:[transform:rotate(-90deg)_scaleX(-1)]"
276
+ ].join(" "), me = [
277
+ "ds:stroke-primary ds:[stroke-width:var(--spacing-xs)]",
278
+ !s && "ds:transition-[stroke-dashoffset] ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
279
+ ].filter(Boolean).join(" ");
280
+ return /* @__PURE__ */ u(j.Provider, { value: X, children: /* @__PURE__ */ V(
281
+ "div",
282
+ {
283
+ ref: E,
284
+ className: q,
285
+ "data-component": "progress",
286
+ "data-component-id": e,
287
+ ...A,
288
+ children: [
289
+ L,
290
+ /* @__PURE__ */ V(
291
+ "svg",
292
+ {
293
+ ref: k,
294
+ role: "progressbar",
295
+ ...H,
296
+ ...O,
297
+ ...K,
298
+ viewBox: le,
299
+ className: ue,
300
+ children: [
301
+ /* @__PURE__ */ u(
302
+ "circle",
303
+ {
304
+ cx: G,
305
+ cy: J,
306
+ r: N,
307
+ fill: "none",
308
+ strokeDasharray: b,
309
+ className: "ds:[stroke:var(--progress-track)] ds:[stroke-width:var(--spacing-xs)]"
310
+ }
311
+ ),
312
+ /* @__PURE__ */ u(
313
+ "circle",
314
+ {
315
+ ref: I,
316
+ cx: G,
317
+ cy: J,
318
+ r: N,
319
+ fill: "none",
320
+ strokeLinecap: "round",
321
+ strokeDasharray: b,
322
+ strokeDashoffset: de,
323
+ className: me
324
+ }
325
+ )
326
+ ]
327
+ }
328
+ )
329
+ ]
330
+ }
331
+ ) });
332
+ }
333
+ );
334
+ te.displayName = "Progress";
335
+ const De = Object.assign(te, {
336
+ Label: z,
337
+ Value: ee
338
+ });
339
+ export {
340
+ De as P,
341
+ ke as p
342
+ };
343
+ //# sourceMappingURL=progress-CK8otcQ-.js.map
@@ -1,4 +1,4 @@
1
- import { A as s, B as i, E as r, F as d } from "./date-picker-variants-eL6HjWvw.js";
1
+ import { g as s, h as i, j as r, k as d } from "./format-4HNwNGrN.js";
2
2
  const m = {
3
3
  lessThanXSeconds: {
4
4
  one: "menos de um segundo",
@@ -244,27 +244,27 @@ const m = {
244
244
  formattingValues: y,
245
245
  defaultFormattingWidth: "wide"
246
246
  })
247
- }, W = /^(\d+)(º|ª)?/i, j = /\d+/i, z = {
247
+ }, j = /^(\d+)(º|ª)?/i, W = /\d+/i, k = {
248
248
  narrow: /^(ac|dc|a|d)/i,
249
249
  abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,
250
250
  wide: /^(antes de cristo|antes da era comum|depois de cristo|era comum)/i
251
- }, D = {
251
+ }, z = {
252
252
  any: [/^ac/i, /^dc/i],
253
253
  wide: [
254
254
  /^(antes de cristo|antes da era comum)/i,
255
255
  /^(depois de cristo|era comum)/i
256
256
  ]
257
- }, k = {
257
+ }, D = {
258
258
  narrow: /^[1234]/i,
259
259
  abbreviated: /^T[1234]/i,
260
260
  wide: /^[1234](º|ª)? trimestre/i
261
261
  }, C = {
262
262
  any: [/1/i, /2/i, /3/i, /4/i]
263
- }, F = {
263
+ }, H = {
264
264
  narrow: /^[jfmasond]/i,
265
265
  abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,
266
266
  wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i
267
- }, H = {
267
+ }, F = {
268
268
  narrow: [
269
269
  /^j/i,
270
270
  /^f/i,
@@ -298,13 +298,13 @@ const m = {
298
298
  short: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,
299
299
  abbreviated: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,
300
300
  wide: /^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i
301
- }, A = {
301
+ }, V = {
302
302
  narrow: [/^d/i, /^s/i, /^t/i, /^q/i, /^q/i, /^s/i, /^s/i],
303
303
  any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[áa]/i]
304
- }, V = {
304
+ }, X = {
305
305
  narrow: /^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,
306
306
  any: /^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i
307
- }, X = {
307
+ }, A = {
308
308
  any: {
309
309
  am: /^a/i,
310
310
  pm: /^p/i,
@@ -317,39 +317,39 @@ const m = {
317
317
  }
318
318
  }, E = {
319
319
  ordinalNumber: d({
320
- matchPattern: W,
321
- parsePattern: j,
320
+ matchPattern: j,
321
+ parsePattern: W,
322
322
  valueCallback: (a) => parseInt(a, 10)
323
323
  }),
324
324
  era: r({
325
- matchPatterns: z,
325
+ matchPatterns: k,
326
326
  defaultMatchWidth: "wide",
327
- parsePatterns: D,
327
+ parsePatterns: z,
328
328
  defaultParseWidth: "any"
329
329
  }),
330
330
  quarter: r({
331
- matchPatterns: k,
331
+ matchPatterns: D,
332
332
  defaultMatchWidth: "wide",
333
333
  parsePatterns: C,
334
334
  defaultParseWidth: "any",
335
335
  valueCallback: (a) => a + 1
336
336
  }),
337
337
  month: r({
338
- matchPatterns: F,
338
+ matchPatterns: H,
339
339
  defaultMatchWidth: "wide",
340
- parsePatterns: H,
340
+ parsePatterns: F,
341
341
  defaultParseWidth: "any"
342
342
  }),
343
343
  day: r({
344
344
  matchPatterns: T,
345
345
  defaultMatchWidth: "wide",
346
- parsePatterns: A,
346
+ parsePatterns: V,
347
347
  defaultParseWidth: "any"
348
348
  }),
349
349
  dayPeriod: r({
350
- matchPatterns: V,
350
+ matchPatterns: X,
351
351
  defaultMatchWidth: "any",
352
- parsePatterns: X,
352
+ parsePatterns: A,
353
353
  defaultParseWidth: "any"
354
354
  })
355
355
  }, N = {
@@ -367,4 +367,4 @@ const m = {
367
367
  export {
368
368
  N as pt
369
369
  };
370
- //# sourceMappingURL=pt-_njpXyOZ.js.map
370
+ //# sourceMappingURL=pt-BSPnVrQ7.js.map
@@ -8,8 +8,8 @@ import { B as L } from "./badge-DCOqV9mI.js";
8
8
  import { F as V } from "./form-field-M5UpX65Z.js";
9
9
  import { T as oe } from "./text-area-Bt3p7Pt0.js";
10
10
  import { F as de } from "./file-upload-CwxdqkMK.js";
11
- import { D as te } from "./date-picker-ZHejTVAJ.js";
12
- import { D as le } from "./date-range-picker-pEG3Ln3i.js";
11
+ import { D as te } from "./date-picker-Bp64zk2p.js";
12
+ import { D as le } from "./date-range-picker-CDrZ8Zh0.js";
13
13
  import { E } from "./empty-state-CrLsi0XI.js";
14
14
  import { P as ne } from "./panel-header-D313n_9-.js";
15
15
  import { c as $ } from "./createLucideIcon-DhHxpK9K.js";
@@ -533,4 +533,4 @@ export {
533
533
  qe as R,
534
534
  Ae as r
535
535
  };
536
- //# sourceMappingURL=radiograph-panel.agent-BQZ64Riy.js.map
536
+ //# sourceMappingURL=radiograph-panel.agent-CtFtNMzk.js.map
@@ -7,7 +7,7 @@ import { u as Ft } from "./registry-DvAUVLHh.js";
7
7
  import { S as gt } from "./spinner-hbwuKwMf.js";
8
8
  import { I as F } from "./icon-button-C_kbcd7I.js";
9
9
  import { T as Bt } from "./text-area-Bt3p7Pt0.js";
10
- import { E as Kt } from "./editor-overlay-DE3esyio.js";
10
+ import { E as Kt } from "./editor-overlay-B1tr2i7B.js";
11
11
  import { X as lt } from "./x-B5YnXwCz.js";
12
12
  import { R as Vt } from "./rotate-ccw-BBQnIVTr.js";
13
13
  import { C as Gt } from "./check-DrFSN__t.js";
@@ -2626,4 +2626,4 @@ export {
2626
2626
  hn as r,
2627
2627
  Qn as w
2628
2628
  };
2629
- //# sourceMappingURL=rich-text-editor-CfeXPPWs.js.map
2629
+ //# sourceMappingURL=rich-text-editor-BedTpWzL.js.map
@@ -1,4 +1,4 @@
1
- import { A as m, B as t, E as n, F as s } from "./date-picker-variants-eL6HjWvw.js";
1
+ import { g as m, h as t, j as n, k as s } from "./format-4HNwNGrN.js";
2
2
  const d = {
3
3
  lessThanXSeconds: {
4
4
  one: "mai puțin de o secundă",
@@ -239,23 +239,23 @@ const d = {
239
239
  narrow: /^(Î|D)/i,
240
240
  abbreviated: /^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i,
241
241
  wide: /^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i
242
- }, F = {
242
+ }, k = {
243
243
  any: [/^ÎC/i, /^DC/i],
244
244
  wide: [
245
245
  /^(Înainte de Cristos|Înaintea erei noastre)/i,
246
246
  /^(După Cristos|Era noastră)/i
247
247
  ]
248
- }, k = {
248
+ }, x = {
249
249
  narrow: /^[1234]/i,
250
250
  abbreviated: /^T[1234]/i,
251
251
  wide: /^trimestrul [1234]/i
252
- }, x = {
252
+ }, F = {
253
253
  any: [/1/i, /2/i, /3/i, /4/i]
254
254
  }, H = {
255
255
  narrow: /^[ifmaasond]/i,
256
256
  abbreviated: /^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,
257
257
  wide: /^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i
258
- }, E = {
258
+ }, T = {
259
259
  narrow: [
260
260
  /^i/i,
261
261
  /^f/i,
@@ -284,7 +284,7 @@ const d = {
284
284
  /^n/i,
285
285
  /^d/i
286
286
  ]
287
- }, T = {
287
+ }, E = {
288
288
  narrow: /^[dlmjvs]/i,
289
289
  short: /^(d|l|ma|mi|j|v|s)/i,
290
290
  abbreviated: /^(dum|lun|mar|mie|jo|vi|sâ)/i,
@@ -306,7 +306,7 @@ const d = {
306
306
  evening: /seara/i,
307
307
  night: /noaptea/i
308
308
  }
309
- }, A = {
309
+ }, L = {
310
310
  ordinalNumber: s({
311
311
  matchPattern: D,
312
312
  parsePattern: C,
@@ -315,24 +315,24 @@ const d = {
315
315
  era: n({
316
316
  matchPatterns: j,
317
317
  defaultMatchWidth: "wide",
318
- parsePatterns: F,
318
+ parsePatterns: k,
319
319
  defaultParseWidth: "any"
320
320
  }),
321
321
  quarter: n({
322
- matchPatterns: k,
322
+ matchPatterns: x,
323
323
  defaultMatchWidth: "wide",
324
- parsePatterns: x,
324
+ parsePatterns: F,
325
325
  defaultParseWidth: "any",
326
326
  valueCallback: (a) => a + 1
327
327
  }),
328
328
  month: n({
329
329
  matchPatterns: H,
330
330
  defaultMatchWidth: "wide",
331
- parsePatterns: E,
331
+ parsePatterns: T,
332
332
  defaultParseWidth: "any"
333
333
  }),
334
334
  day: n({
335
- matchPatterns: T,
335
+ matchPatterns: E,
336
336
  defaultMatchWidth: "wide",
337
337
  parsePatterns: V,
338
338
  defaultParseWidth: "any"
@@ -349,7 +349,7 @@ const d = {
349
349
  formatLong: p,
350
350
  formatRelative: b,
351
351
  localize: W,
352
- match: A,
352
+ match: L,
353
353
  options: {
354
354
  weekStartsOn: 1,
355
355
  firstWeekContainsDate: 1
@@ -358,4 +358,4 @@ const d = {
358
358
  export {
359
359
  N as ro
360
360
  };
361
- //# sourceMappingURL=ro-3X6_4FcN.js.map
361
+ //# sourceMappingURL=ro-BbiylGmG.js.map
@@ -1,5 +1,5 @@
1
- import { A as s, B as u, E as o, F as g } from "./date-picker-variants-eL6HjWvw.js";
2
- import { i as d } from "./isSameWeek-CK4HS9lH.js";
1
+ import { g as s, h as u, j as o, k as g } from "./format-4HNwNGrN.js";
2
+ import { i as d } from "./isSameWeek-B73MagWB.js";
3
3
  function l(e, t) {
4
4
  if (e.one !== void 0 && t === 1)
5
5
  return e.one;
@@ -438,7 +438,7 @@ const P = {
438
438
  formattingValues: z,
439
439
  defaultFormattingWidth: "wide"
440
440
  })
441
- }, X = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i, E = /\d+/i, L = {
441
+ }, X = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i, L = /\d+/i, E = {
442
442
  narrow: /^((до )?н\.?\s?э\.?)/i,
443
443
  abbreviated: /^((до )?н\.?\s?э\.?)/i,
444
444
  wide: /^(до нашей эры|нашей эры|наша эра)/i
@@ -491,11 +491,11 @@ const P = {
491
491
  }, R = {
492
492
  narrow: [/^в/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i],
493
493
  any: [/^в[ос]/i, /^п[он]/i, /^в/i, /^ср/i, /^ч/i, /^п[ят]/i, /^с[уб]/i]
494
- }, A = {
494
+ }, Q = {
495
495
  narrow: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,
496
496
  abbreviated: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,
497
497
  wide: /^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i
498
- }, Q = {
498
+ }, j = {
499
499
  any: {
500
500
  am: /^дп/i,
501
501
  pm: /^пп/i,
@@ -506,14 +506,14 @@ const P = {
506
506
  evening: /^в/i,
507
507
  night: /^н/i
508
508
  }
509
- }, B = {
509
+ }, A = {
510
510
  ordinalNumber: g({
511
511
  matchPattern: X,
512
- parsePattern: E,
512
+ parsePattern: L,
513
513
  valueCallback: (e) => parseInt(e, 10)
514
514
  }),
515
515
  era: o({
516
- matchPatterns: L,
516
+ matchPatterns: E,
517
517
  defaultMatchWidth: "wide",
518
518
  parsePatterns: H,
519
519
  defaultParseWidth: "any"
@@ -538,24 +538,24 @@ const P = {
538
538
  defaultParseWidth: "any"
539
539
  }),
540
540
  dayPeriod: o({
541
- matchPatterns: A,
541
+ matchPatterns: Q,
542
542
  defaultMatchWidth: "wide",
543
- parsePatterns: Q,
543
+ parsePatterns: j,
544
544
  defaultParseWidth: "any"
545
545
  })
546
- }, j = {
546
+ }, B = {
547
547
  code: "ru",
548
548
  formatDistance: f,
549
549
  formatLong: w,
550
550
  formatRelative: N,
551
551
  localize: V,
552
- match: B,
552
+ match: A,
553
553
  options: {
554
554
  weekStartsOn: 1,
555
555
  firstWeekContainsDate: 1
556
556
  }
557
557
  };
558
558
  export {
559
- j as ru
559
+ B as ru
560
560
  };
561
- //# sourceMappingURL=ru-bAcgmnS-.js.map
561
+ //# sourceMappingURL=ru-BX_qsV67.js.map
@@ -3,7 +3,7 @@ import { forwardRef as H, useEffect as b, useMemo as v, useRef as W, useState as
3
3
  import { c as Z } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as G } from "react-i18next";
5
5
  import { B as J } from "./button-CPGiR_bH.js";
6
- import { P as Q } from "./progress-DA413-zn.js";
6
+ import { P as Q } from "./progress-CK8otcQ-.js";
7
7
  import { L as Y } from "./live-region-C41SO3cA.js";
8
8
  import { u as E } from "./registry-DvAUVLHh.js";
9
9
  import { c as L } from "./createLucideIcon-DhHxpK9K.js";
@@ -221,4 +221,4 @@ export {
221
221
  wn as S,
222
222
  tn as s
223
223
  };
224
- //# sourceMappingURL=session-countdown-Bc70VXN1.js.map
224
+ //# sourceMappingURL=session-countdown-BL-Psg8u.js.map