@alfadocs/ui-kit 0.36.0 → 0.38.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 (201) hide show
  1. package/dist/_chunks/Alfadocs_Logo_Mark-7o3L3WBI.js +56 -0
  2. package/dist/_chunks/{alia-sidebar-BEoMl6UL.js → alia-sidebar-DXsYPinm.js} +2 -2
  3. package/dist/_chunks/{ar-CEpIJtcO.js → ar-Cn_NxqkN.js} +2 -2
  4. package/dist/_chunks/bmi-BxD-tFzU.js +32 -0
  5. package/dist/_chunks/bmi-calculator-BRUru9QX.js +213 -0
  6. package/dist/_chunks/{booking-eM0y0NIR.js → booking-DK_BPHnQ.js} +4 -4
  7. package/dist/_chunks/calculator-dialog-B74fqpFZ.js +40 -0
  8. package/dist/_chunks/chart-DnHvmiDX.js +312 -0
  9. package/dist/_chunks/{chat-message-D53_fH2w.js → chat-message-ASgGtj-L.js} +30 -39
  10. package/dist/_chunks/{contact-profile-card-BA6fgS45.js → contact-profile-card-DHyuAPXM.js} +14 -13
  11. package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +185 -0
  12. package/dist/_chunks/{date-picker-B94HAV4A.js → date-picker-CvQfs6Xh.js} +2 -2
  13. package/dist/_chunks/{date-range-picker-D8CHNYQT.js → date-range-picker-U9fn1g9d.js} +3 -3
  14. package/dist/_chunks/{date-time-picker-D1GEzf8p.js → date-time-picker-Cva0ZCWw.js} +2 -2
  15. package/dist/_chunks/{de-Dfbeau59.js → de-BMM2H7Bs.js} +2 -2
  16. package/dist/_chunks/dependent-selector-CRWgieHm.js +324 -0
  17. package/dist/_chunks/document-scanner-CdHQ6lTN.js +702 -0
  18. package/dist/_chunks/due-date-calculator-CUspKSTw.js +171 -0
  19. package/dist/_chunks/{editable-currency-cell-renderer-CZcVWBPo.js → editable-currency-cell-renderer-DGKuRNVG.js} +2 -2
  20. package/dist/_chunks/{el-Dro3J7CP.js → el-BYPonAaK.js} +2 -2
  21. package/dist/_chunks/{es-Dvg8u70B.js → es-CMkVCQ4F.js} +2 -2
  22. package/dist/_chunks/{file-upload-CdozCPct.js → file-upload-CnzRcErt.js} +2 -1
  23. package/dist/_chunks/fiscal-code-input-BZ0FxwUl.js +540 -0
  24. package/dist/_chunks/{fr-VOGjBSPP.js → fr-BcuWxqft.js} +2 -2
  25. package/dist/_chunks/gestation-BXEgDGmP.js +50 -0
  26. package/dist/_chunks/gestational-age-calculator-CsQ05qDy.js +165 -0
  27. package/dist/_chunks/heart-C0faivFf.js +20 -0
  28. package/dist/_chunks/{hi-BSDxWU_y.js → hi-wkq_rQAh.js} +2 -2
  29. package/dist/_chunks/image-C6RM5hfF.js +16 -0
  30. package/dist/_chunks/insert-result-yJ0QavoN.js +133 -0
  31. package/dist/_chunks/{isSameWeek-Dfzu29cW.js → isSameWeek-Bim5ftRd.js} +2 -2
  32. package/dist/_chunks/{it-CuonvcI_.js → it-GiQrQ9p4.js} +3 -3
  33. package/dist/_chunks/{ja-DO57gIOT.js → ja-qfYg3Rua.js} +2 -2
  34. package/dist/_chunks/{logo-_Z-jLq80.js → logo-yituK7sE.js} +42 -91
  35. package/dist/_chunks/{marketplace-app-shell-DXHxy9dj.js → marketplace-app-shell-BnClrL2B.js} +2 -2
  36. package/dist/_chunks/{nl-DjPaaWaW.js → nl-xOogO4sZ.js} +2 -2
  37. package/dist/_chunks/{patient-shell-CDvMw_Nk.js → patient-shell-Bz3CdO84.js} +2 -2
  38. package/dist/_chunks/{pl-Cl4lOx2N.js → pl-GnOW6eGK.js} +3 -3
  39. package/dist/_chunks/{practice-results-BFM_lyUs.js → practice-results-C8ciLQap.js} +3 -2
  40. package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +209 -0
  41. package/dist/_chunks/{privacy-lock-DD-wHxBg.js → privacy-lock-BmX_gkvt.js} +2 -2
  42. package/dist/_chunks/{pt-D7qO5CzD.js → pt-_bV5b5RW.js} +2 -2
  43. package/dist/_chunks/{public-footer.agent-Cjfe5jus.js → public-footer.agent-zw1vFin_.js} +2 -2
  44. package/dist/_chunks/qr-code-DNXhi6se.js +568 -0
  45. package/dist/_chunks/{react-day-picker-DsjfS7uI.js → react-day-picker-CdtIiKjx.js} +27 -27
  46. package/dist/_chunks/{rich-text-editor-CHmr9Bz8.js → rich-text-editor-DLbg2852.js} +114 -124
  47. package/dist/_chunks/{ro-CP2-VJ_O.js → ro-BEcyh5Nj.js} +2 -2
  48. package/dist/_chunks/rotate-ccw-BWANpitO.js +15 -0
  49. package/dist/_chunks/{ru-RPn9_Lpq.js → ru-Bi86hqMf.js} +3 -3
  50. package/dist/_chunks/session-countdown-LPnhTHjn.js +214 -0
  51. package/dist/_chunks/{shield-check-BhHyReu8.js → shield-check-C73ma9Cs.js} +8 -24
  52. package/dist/_chunks/{sign-in-with-alfadocs-button-BI0fVonM.js → sign-in-with-alfadocs-button-DeHBFRNS.js} +2 -2
  53. package/dist/_chunks/social-sign-in-button-X54ySJr1.js +243 -0
  54. package/dist/_chunks/{sq-AQvefouo.js → sq-BujHSAWu.js} +2 -2
  55. package/dist/_chunks/subDays-_T9YeKPX.js +8 -0
  56. package/dist/_chunks/{sv-zkx9eBtD.js → sv-C8AeDrTA.js} +2 -2
  57. package/dist/_chunks/{tr-Dmr412Ac.js → tr-CMSs_Vgf.js} +2 -2
  58. package/dist/_chunks/unit-converter-EUwO6QYq.js +168 -0
  59. package/dist/_chunks/wallet-pay-button-DK4ESYge.js +250 -0
  60. package/dist/_chunks/{zh-CN-DxVt64Zk.js → zh-CN-eXB-PFu4.js} +3 -3
  61. package/dist/agent-catalog.json +203 -1
  62. package/dist/brand/provider-marks/apple-pay.d.ts +12 -0
  63. package/dist/brand/provider-marks/apple.d.ts +12 -0
  64. package/dist/brand/provider-marks/google-pay.d.ts +12 -0
  65. package/dist/brand/provider-marks/google.d.ts +13 -0
  66. package/dist/components/_shared/insert-result.d.ts +47 -0
  67. package/dist/components/bmi-calculator/bmi-calculator.d.ts +27 -0
  68. package/dist/components/bmi-calculator/bmi.d.ts +37 -0
  69. package/dist/components/bmi-calculator/index.d.ts +4 -0
  70. package/dist/components/bmi-calculator/index.js +15 -0
  71. package/dist/components/booking/index.js +1 -1
  72. package/dist/components/calculator-dialog/calculator-dialog.d.ts +26 -0
  73. package/dist/components/calculator-dialog/index.d.ts +3 -0
  74. package/dist/components/calculator-dialog/index.js +5 -0
  75. package/dist/components/chart/chart.d.ts +7 -0
  76. package/dist/components/chart/index.js +1 -1
  77. package/dist/components/chat-message/index.js +1 -1
  78. package/dist/components/contact-profile-card/index.js +1 -1
  79. package/dist/components/cycle-calculator/cycle-calculator.d.ts +21 -0
  80. package/dist/components/cycle-calculator/cycle.d.ts +37 -0
  81. package/dist/components/cycle-calculator/index.d.ts +4 -0
  82. package/dist/components/cycle-calculator/index.js +7 -0
  83. package/dist/components/data-table/index.js +1 -1
  84. package/dist/components/date-picker/index.js +1 -1
  85. package/dist/components/date-range-picker/index.js +1 -1
  86. package/dist/components/date-time-picker/index.js +1 -1
  87. package/dist/components/dependent-selector/dependent-selector.agent.d.ts +4 -0
  88. package/dist/components/dependent-selector/dependent-selector.d.ts +72 -0
  89. package/dist/components/dependent-selector/index.d.ts +4 -0
  90. package/dist/components/dependent-selector/index.js +6 -0
  91. package/dist/components/document-scanner/document-scanner.agent.d.ts +4 -0
  92. package/dist/components/document-scanner/document-scanner.d.ts +93 -0
  93. package/dist/components/document-scanner/index.d.ts +4 -0
  94. package/dist/components/document-scanner/index.js +6 -0
  95. package/dist/components/due-date-calculator/due-date-calculator.d.ts +21 -0
  96. package/dist/components/due-date-calculator/gestation.d.ts +60 -0
  97. package/dist/components/due-date-calculator/index.d.ts +4 -0
  98. package/dist/components/due-date-calculator/index.js +13 -0
  99. package/dist/components/file-upload/index.js +1 -1
  100. package/dist/components/fiscal-code-input/calculate-codice-fiscale.d.ts +24 -0
  101. package/dist/components/fiscal-code-input/fiscal-code-input.agent.d.ts +4 -0
  102. package/dist/components/fiscal-code-input/fiscal-code-input.d.ts +61 -0
  103. package/dist/components/fiscal-code-input/index.d.ts +6 -0
  104. package/dist/components/fiscal-code-input/index.js +11 -0
  105. package/dist/components/fiscal-code-input/is-valid-codice-fiscale.d.ts +21 -0
  106. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +27 -0
  107. package/dist/components/gestational-age-calculator/index.d.ts +3 -0
  108. package/dist/components/gestational-age-calculator/index.js +5 -0
  109. package/dist/components/index.d.ts +15 -0
  110. package/dist/components/logo/index.js +1 -1
  111. package/dist/components/practice-results/index.js +1 -1
  112. package/dist/components/pregnancy-weight-gain/index.d.ts +4 -0
  113. package/dist/components/pregnancy-weight-gain/index.js +9 -0
  114. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +19 -0
  115. package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +41 -0
  116. package/dist/components/privacy-lock/index.js +1 -1
  117. package/dist/components/public-footer/index.js +1 -1
  118. package/dist/components/qr-code/index.d.ts +5 -0
  119. package/dist/components/qr-code/index.js +8 -0
  120. package/dist/components/qr-code/qr-code.agent.d.ts +3 -0
  121. package/dist/components/qr-code/qr-code.d.ts +59 -0
  122. package/dist/components/qr-code/qr-encode.d.ts +46 -0
  123. package/dist/components/rich-text-editor/index.js +1 -1
  124. package/dist/components/session-countdown/index.d.ts +4 -0
  125. package/dist/components/session-countdown/index.js +6 -0
  126. package/dist/components/session-countdown/session-countdown.agent.d.ts +3 -0
  127. package/dist/components/session-countdown/session-countdown.d.ts +38 -0
  128. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  129. package/dist/components/skeleton/skeleton.d.ts +1 -1
  130. package/dist/components/social-sign-in-button/index.d.ts +3 -0
  131. package/dist/components/social-sign-in-button/index.js +5 -0
  132. package/dist/components/social-sign-in-button/social-sign-in-button.d.ts +56 -0
  133. package/dist/components/unit-converter/index.d.ts +4 -0
  134. package/dist/components/unit-converter/index.js +9 -0
  135. package/dist/components/unit-converter/unit-converter.d.ts +21 -0
  136. package/dist/components/unit-converter/units.d.ts +18 -0
  137. package/dist/components/wallet-pay-button/index.d.ts +3 -0
  138. package/dist/components/wallet-pay-button/index.js +5 -0
  139. package/dist/components/wallet-pay-button/wallet-pay-button.d.ts +63 -0
  140. package/dist/i18n/locales/ar.d.ts +316 -0
  141. package/dist/i18n/locales/ar.js +307 -0
  142. package/dist/i18n/locales/de.d.ts +316 -0
  143. package/dist/i18n/locales/de.js +307 -0
  144. package/dist/i18n/locales/el.d.ts +316 -0
  145. package/dist/i18n/locales/el.js +307 -0
  146. package/dist/i18n/locales/en.d.ts +316 -0
  147. package/dist/i18n/locales/en.js +310 -0
  148. package/dist/i18n/locales/es.d.ts +316 -0
  149. package/dist/i18n/locales/es.js +307 -0
  150. package/dist/i18n/locales/fr.d.ts +316 -0
  151. package/dist/i18n/locales/fr.js +307 -0
  152. package/dist/i18n/locales/hi.d.ts +316 -0
  153. package/dist/i18n/locales/hi.js +307 -0
  154. package/dist/i18n/locales/it.d.ts +316 -0
  155. package/dist/i18n/locales/it.js +307 -0
  156. package/dist/i18n/locales/ja.d.ts +316 -0
  157. package/dist/i18n/locales/ja.js +303 -0
  158. package/dist/i18n/locales/nl.d.ts +316 -0
  159. package/dist/i18n/locales/nl.js +307 -0
  160. package/dist/i18n/locales/pl.d.ts +316 -0
  161. package/dist/i18n/locales/pl.js +307 -0
  162. package/dist/i18n/locales/pt.d.ts +316 -0
  163. package/dist/i18n/locales/pt.js +310 -0
  164. package/dist/i18n/locales/ro.d.ts +316 -0
  165. package/dist/i18n/locales/ro.js +307 -0
  166. package/dist/i18n/locales/ru.d.ts +316 -0
  167. package/dist/i18n/locales/ru.js +307 -0
  168. package/dist/i18n/locales/sq.d.ts +316 -0
  169. package/dist/i18n/locales/sq.js +307 -0
  170. package/dist/i18n/locales/sv.d.ts +316 -0
  171. package/dist/i18n/locales/sv.js +307 -0
  172. package/dist/i18n/locales/tr.d.ts +316 -0
  173. package/dist/i18n/locales/tr.js +307 -0
  174. package/dist/i18n/locales/zh.d.ts +316 -0
  175. package/dist/i18n/locales/zh.js +303 -0
  176. package/dist/index.js +597 -527
  177. package/dist/locales/ar.json +316 -0
  178. package/dist/locales/de.json +316 -0
  179. package/dist/locales/el.json +316 -0
  180. package/dist/locales/en.json +316 -0
  181. package/dist/locales/es.json +316 -0
  182. package/dist/locales/fr.json +316 -0
  183. package/dist/locales/hi.json +316 -0
  184. package/dist/locales/it.json +316 -0
  185. package/dist/locales/ja.json +316 -0
  186. package/dist/locales/nl.json +316 -0
  187. package/dist/locales/pl.json +316 -0
  188. package/dist/locales/pt.json +316 -0
  189. package/dist/locales/ro.json +316 -0
  190. package/dist/locales/ru.json +316 -0
  191. package/dist/locales/sq.json +316 -0
  192. package/dist/locales/sv.json +316 -0
  193. package/dist/locales/tr.json +316 -0
  194. package/dist/locales/zh.json +316 -0
  195. package/dist/patterns/alia-assistant/index.js +1 -1
  196. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  197. package/dist/patterns/patient-shell/index.js +1 -1
  198. package/dist/tokens.css +1 -1
  199. package/package.json +57 -1
  200. package/dist/_chunks/chart-DLkVn_ex.js +0 -292
  201. package/dist/_chunks/subDays-CANHP9hz.js +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "0.36.0",
3
+ "version": "0.38.0",
4
4
  "type": "module",
5
5
  "description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
6
6
  "license": "BUSL-1.1",
@@ -91,6 +91,30 @@
91
91
  "types": "./dist/components/benefit-card/index.d.ts",
92
92
  "import": "./dist/components/benefit-card/index.js"
93
93
  },
94
+ "./bmi-calculator": {
95
+ "types": "./dist/components/bmi-calculator/index.d.ts",
96
+ "import": "./dist/components/bmi-calculator/index.js"
97
+ },
98
+ "./calculator-dialog": {
99
+ "types": "./dist/components/calculator-dialog/index.d.ts",
100
+ "import": "./dist/components/calculator-dialog/index.js"
101
+ },
102
+ "./cycle-calculator": {
103
+ "types": "./dist/components/cycle-calculator/index.d.ts",
104
+ "import": "./dist/components/cycle-calculator/index.js"
105
+ },
106
+ "./gestational-age-calculator": {
107
+ "types": "./dist/components/gestational-age-calculator/index.d.ts",
108
+ "import": "./dist/components/gestational-age-calculator/index.js"
109
+ },
110
+ "./pregnancy-weight-gain": {
111
+ "types": "./dist/components/pregnancy-weight-gain/index.d.ts",
112
+ "import": "./dist/components/pregnancy-weight-gain/index.js"
113
+ },
114
+ "./unit-converter": {
115
+ "types": "./dist/components/unit-converter/index.d.ts",
116
+ "import": "./dist/components/unit-converter/index.js"
117
+ },
94
118
  "./booking": {
95
119
  "types": "./dist/components/booking/index.d.ts",
96
120
  "import": "./dist/components/booking/index.js"
@@ -183,6 +207,10 @@
183
207
  "types": "./dist/components/date-time-picker/index.d.ts",
184
208
  "import": "./dist/components/date-time-picker/index.js"
185
209
  },
210
+ "./dependent-selector": {
211
+ "types": "./dist/components/dependent-selector/index.d.ts",
212
+ "import": "./dist/components/dependent-selector/index.js"
213
+ },
186
214
  "./description-list": {
187
215
  "types": "./dist/components/description-list/index.d.ts",
188
216
  "import": "./dist/components/description-list/index.js"
@@ -191,10 +219,18 @@
191
219
  "types": "./dist/components/dialog/index.d.ts",
192
220
  "import": "./dist/components/dialog/index.js"
193
221
  },
222
+ "./document-scanner": {
223
+ "types": "./dist/components/document-scanner/index.d.ts",
224
+ "import": "./dist/components/document-scanner/index.js"
225
+ },
194
226
  "./dropdown-menu": {
195
227
  "types": "./dist/components/dropdown-menu/index.d.ts",
196
228
  "import": "./dist/components/dropdown-menu/index.js"
197
229
  },
230
+ "./due-date-calculator": {
231
+ "types": "./dist/components/due-date-calculator/index.d.ts",
232
+ "import": "./dist/components/due-date-calculator/index.js"
233
+ },
198
234
  "./email-input": {
199
235
  "types": "./dist/components/email-input/index.d.ts",
200
236
  "import": "./dist/components/email-input/index.js"
@@ -207,6 +243,10 @@
207
243
  "types": "./dist/components/file-upload/index.d.ts",
208
244
  "import": "./dist/components/file-upload/index.js"
209
245
  },
246
+ "./fiscal-code-input": {
247
+ "types": "./dist/components/fiscal-code-input/index.d.ts",
248
+ "import": "./dist/components/fiscal-code-input/index.js"
249
+ },
210
250
  "./flag": {
211
251
  "types": "./dist/components/flag/index.d.ts",
212
252
  "import": "./dist/components/flag/index.js"
@@ -355,6 +395,10 @@
355
395
  "types": "./dist/components/public-header/index.d.ts",
356
396
  "import": "./dist/components/public-header/index.js"
357
397
  },
398
+ "./qr-code": {
399
+ "types": "./dist/components/qr-code/index.d.ts",
400
+ "import": "./dist/components/qr-code/index.js"
401
+ },
358
402
  "./radio-group": {
359
403
  "types": "./dist/components/radio-group/index.d.ts",
360
404
  "import": "./dist/components/radio-group/index.js"
@@ -399,6 +443,10 @@
399
443
  "types": "./dist/components/separator/index.d.ts",
400
444
  "import": "./dist/components/separator/index.js"
401
445
  },
446
+ "./session-countdown": {
447
+ "types": "./dist/components/session-countdown/index.d.ts",
448
+ "import": "./dist/components/session-countdown/index.js"
449
+ },
402
450
  "./sheet": {
403
451
  "types": "./dist/components/sheet/index.d.ts",
404
452
  "import": "./dist/components/sheet/index.js"
@@ -427,6 +475,10 @@
427
475
  "types": "./dist/components/slot-grid/index.d.ts",
428
476
  "import": "./dist/components/slot-grid/index.js"
429
477
  },
478
+ "./social-sign-in-button": {
479
+ "types": "./dist/components/social-sign-in-button/index.d.ts",
480
+ "import": "./dist/components/social-sign-in-button/index.js"
481
+ },
430
482
  "./sparkline": {
431
483
  "types": "./dist/components/sparkline/index.d.ts",
432
484
  "import": "./dist/components/sparkline/index.js"
@@ -511,6 +563,10 @@
511
563
  "types": "./dist/components/typing-indicator/index.d.ts",
512
564
  "import": "./dist/components/typing-indicator/index.js"
513
565
  },
566
+ "./wallet-pay-button": {
567
+ "types": "./dist/components/wallet-pay-button/index.d.ts",
568
+ "import": "./dist/components/wallet-pay-button/index.js"
569
+ },
514
570
  "./warning-stack": {
515
571
  "types": "./dist/components/warning-stack/index.d.ts",
516
572
  "import": "./dist/components/warning-stack/index.js"
@@ -1,292 +0,0 @@
1
- import { jsxs as b, jsx as s } from "react/jsx-runtime";
2
- import { forwardRef as J, useId as K, useMemo as i, useRef as Q, useState as O, useEffect as E, useImperativeHandle as X } from "react";
3
- import { c as tt } from "./index-D2ZczOXr.js";
4
- import { useTranslation as et } from "react-i18next";
5
- import ot from "react-apexcharts";
6
- import N from "apexcharts";
7
- import { u as rt, g as P } from "./apexcharts-theme-BJigns_V.js";
8
- import { u as at } from "./use-prefers-reduced-motion-BMwIQRjB.js";
9
- import { u as nt } from "./registry-nPAVE19X.js";
10
- const st = {
11
- id: "chart",
12
- capabilities: [],
13
- state: {},
14
- actions: {
15
- update_series: {
16
- safety: "read",
17
- argsType: "series",
18
- description: "Replace the chart series without remounting.",
19
- invoke: (a, l) => {
20
- a.updateSeries(l.series);
21
- }
22
- },
23
- export_png: {
24
- safety: "read",
25
- description: "Return a PNG data URI of the chart for export or screenshotting.",
26
- invoke: (a) => a.dataURI()
27
- }
28
- },
29
- domHooks: {
30
- root: { attr: "data-component", value: "chart" },
31
- instanceId: {
32
- attr: "data-component-id",
33
- sourceProp: "id",
34
- description: "Sourced from the id prop."
35
- }
36
- }
37
- }, it = tt("ds:relative ds:block ds:w-full", {
38
- variants: {
39
- density: {
40
- compact: "ds:min-h-[var(--chart-min-height-compact)]",
41
- comfortable: "ds:min-h-[var(--chart-min-height-comfortable)]"
42
- }
43
- },
44
- defaultVariants: { density: "comfortable" }
45
- }), ct = [
46
- "verticalLines",
47
- "horizontalLines",
48
- "slantedLines",
49
- "squares",
50
- "circles"
51
- ], lt = ["line", "bar", "area"], dt = ["pie", "donut", "radialBar"];
52
- function g(a) {
53
- return dt.includes(a);
54
- }
55
- function mt(a) {
56
- return lt.includes(a);
57
- }
58
- function ut(a, l) {
59
- return g(l) ? [
60
- {
61
- name: "",
62
- data: a
63
- }
64
- ] : a;
65
- }
66
- const ht = J(
67
- ({
68
- title: a,
69
- id: l,
70
- type: r,
71
- series: u,
72
- categories: p,
73
- labels: f,
74
- height: $,
75
- width: k,
76
- patterns: I = !1,
77
- toolbar: v = !1,
78
- locale: G,
79
- density: H,
80
- className: V
81
- }, _) => {
82
- const { t: o, i18n: F } = et(), C = K(), d = i(
83
- () => `chart-${C.replace(/[^a-zA-Z0-9-_]/g, "")}`,
84
- [C]
85
- ), T = `${d}-summary`, x = Q(null), [w, M] = O(0);
86
- rt(x);
87
- const m = G ?? F.language ?? "en", [A, U] = O(
88
- () => {
89
- try {
90
- return P();
91
- } catch {
92
- return {};
93
- }
94
- }
95
- );
96
- E(() => {
97
- if (typeof document > "u") return;
98
- let t;
99
- const e = new MutationObserver(() => {
100
- clearTimeout(t), t = setTimeout(() => {
101
- try {
102
- U(P());
103
- } catch {
104
- }
105
- }, 50);
106
- });
107
- return e.observe(document.documentElement, {
108
- attributes: !0,
109
- attributeFilter: ["class"]
110
- }), () => {
111
- clearTimeout(t), e.disconnect();
112
- };
113
- }, []), E(() => {
114
- const t = x.current;
115
- if (!t || typeof ResizeObserver > "u") return;
116
- const e = new ResizeObserver((n) => {
117
- const c = n[0];
118
- c && M(Math.floor(c.contentRect.width));
119
- });
120
- return e.observe(t), () => e.disconnect();
121
- }, []);
122
- const y = i(
123
- () => ({
124
- async dataURI() {
125
- const t = N.getChartByID(d);
126
- return t ? (await t.dataURI()).imgURI : "";
127
- },
128
- updateSeries(t) {
129
- const e = N.getChartByID(d);
130
- e && (g(r), e.updateSeries(t));
131
- }
132
- }),
133
- [d, r]
134
- );
135
- X(_, () => y, [y]), nt(st, y, l);
136
- const R = typeof document < "u" && document.documentElement.dir === "rtl", z = i(
137
- () => ut(u, r),
138
- [u, r]
139
- ), h = i(
140
- () => new Intl.NumberFormat(m),
141
- [m]
142
- ), L = i(
143
- () => ({
144
- name: m,
145
- options: {
146
- toolbar: {
147
- download: o("chart.toolbar.download"),
148
- selection: o("chart.toolbar.selection"),
149
- selectionZoom: o("chart.toolbar.selectionZoom"),
150
- zoomIn: o("chart.toolbar.zoomIn"),
151
- zoomOut: o("chart.toolbar.zoomOut"),
152
- pan: o("chart.toolbar.pan"),
153
- reset: o("chart.toolbar.reset"),
154
- exportToSVG: o("chart.toolbar.exportToSVG"),
155
- exportToPNG: o("chart.toolbar.exportToPNG"),
156
- exportToCSV: o("chart.toolbar.exportToCSV")
157
- }
158
- }
159
- }),
160
- [m, o]
161
- ), S = at(), D = i(() => {
162
- const t = A, e = {
163
- ...t,
164
- chart: {
165
- ...t.chart,
166
- id: d,
167
- toolbar: { show: v },
168
- zoom: { enabled: v },
169
- animations: {
170
- enabled: !S,
171
- dynamicAnimation: { enabled: !S }
172
- },
173
- locales: [L],
174
- defaultLocale: m,
175
- parentHeightOffset: 0
176
- },
177
- labels: f,
178
- legend: {
179
- ...t.legend,
180
- position: "bottom",
181
- // ApexCharts legend.horizontalAlign is a physical prop mapped internally
182
- // to the chart's own text flow. For RTL we flip via `yaxis.opposite`
183
- // and ApexCharts' own `direction: 'rtl'` handling; legend stays anchored
184
- // to the inline-start by asking for 'left' on LTR and 'right' on RTL.
185
- horizontalAlign: R ? "right" : "left",
186
- fontFamily: "inherit"
187
- },
188
- tooltip: {
189
- ...t.tooltip,
190
- y: {
191
- formatter: (n) => h.format(n)
192
- }
193
- },
194
- noData: {
195
- text: o("chart.noData")
196
- }
197
- };
198
- return mt(r) && (e.xaxis = {
199
- ...t.xaxis,
200
- categories: p ?? []
201
- }, e.yaxis = {
202
- ...t.yaxis,
203
- opposite: R,
204
- labels: {
205
- formatter: (n) => h.format(n)
206
- }
207
- }, e.stroke = {
208
- curve: "smooth",
209
- width: r === "bar" ? 0 : 2
210
- }, e.dataLabels = { enabled: !1 }), I ? e.fill = {
211
- type: "pattern",
212
- opacity: r === "area" ? 0.3 : 1,
213
- pattern: {
214
- style: [...ct],
215
- strokeWidth: 2
216
- }
217
- } : r === "area" && (e.fill = {
218
- type: "gradient",
219
- opacity: 0.3
220
- }), e;
221
- }, [
222
- A,
223
- d,
224
- v,
225
- S,
226
- L,
227
- m,
228
- f,
229
- h,
230
- o,
231
- r,
232
- p,
233
- R,
234
- I
235
- ]), W = k ?? (w > 0 ? w : "100%"), B = $ ?? 320, Y = i(() => {
236
- const t = g(r) ? f ?? [] : p ?? [], e = z;
237
- return /* @__PURE__ */ b("table", { id: T, className: "ds:sr-only", children: [
238
- /* @__PURE__ */ s("caption", { children: a }),
239
- /* @__PURE__ */ s("thead", { children: /* @__PURE__ */ b("tr", { children: [
240
- /* @__PURE__ */ s("th", { scope: "col", children: o("chart.table.series") }),
241
- t.map((n, c) => /* @__PURE__ */ s("th", { scope: "col", children: n }, `${n}-${c}`))
242
- ] }) }),
243
- /* @__PURE__ */ s("tbody", { children: e.map((n, c) => /* @__PURE__ */ b("tr", { children: [
244
- /* @__PURE__ */ s("th", { scope: "row", children: n.name || o("chart.table.value") }),
245
- n.data.map((j, q) => /* @__PURE__ */ s("td", { children: h.format(j) }, `${c}-${q}`))
246
- ] }, `${n.name}-${c}`)) })
247
- ] });
248
- }, [
249
- r,
250
- z,
251
- f,
252
- p,
253
- T,
254
- a,
255
- o,
256
- h
257
- ]), Z = i(() => (g(r), u), [u, r]);
258
- return /* @__PURE__ */ b(
259
- "div",
260
- {
261
- ref: x,
262
- role: "img",
263
- "aria-label": a,
264
- "aria-describedby": T,
265
- className: it({ density: H, className: V }),
266
- "data-component": "chart",
267
- "data-component-id": l,
268
- children: [
269
- Y,
270
- /* @__PURE__ */ s(
271
- ot,
272
- {
273
- type: r,
274
- series: Z,
275
- options: D,
276
- width: W,
277
- height: B,
278
- "aria-hidden": "true"
279
- }
280
- )
281
- ]
282
- }
283
- );
284
- }
285
- );
286
- ht.displayName = "Chart";
287
- export {
288
- ht as C,
289
- it as a,
290
- st as c
291
- };
292
- //# sourceMappingURL=chart-DLkVn_ex.js.map
@@ -1,8 +0,0 @@
1
- import { a as o } from "./react-day-picker-DsjfS7uI.js";
2
- function n(a, s, r) {
3
- return o(a, -s, r);
4
- }
5
- export {
6
- n as s
7
- };
8
- //# sourceMappingURL=subDays-CANHP9hz.js.map