@alfadocs/ui-kit 0.37.0 → 0.39.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.
- package/dist/_chunks/Alfadocs_Logo_Mark-7o3L3WBI.js +56 -0
- package/dist/_chunks/{accordion-bSU21uTV.js → accordion-9lJSMMsZ.js} +6 -6
- package/dist/_chunks/{agenda-tray-By_asPN9.js → agenda-tray-Dyj9ChHC.js} +22 -21
- package/dist/_chunks/{alia-sidebar-BEoMl6UL.js → alia-sidebar-DXsYPinm.js} +2 -2
- package/dist/_chunks/{ar-D1RwVZFj.js → ar-Cn_NxqkN.js} +2 -2
- package/dist/_chunks/bmi-BxD-tFzU.js +32 -0
- package/dist/_chunks/bmi-calculator-DnEr513I.js +213 -0
- package/dist/_chunks/{booking-DqXsd1Mv.js → booking-4mCw3Mpl.js} +5 -5
- package/dist/_chunks/calculator-dialog-B74fqpFZ.js +40 -0
- package/dist/_chunks/{chart-DnHvmiDX.js → chart-Cbt0_sKv.js} +46 -37
- package/dist/_chunks/{chat-message-D53_fH2w.js → chat-message-ASgGtj-L.js} +30 -39
- package/dist/_chunks/{collapsible-CERONory.js → collapsible-X3oaLPU3.js} +5 -5
- package/dist/_chunks/{contact-profile-card-BA6fgS45.js → contact-profile-card-DHyuAPXM.js} +14 -13
- package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +185 -0
- package/dist/_chunks/{date-picker-CXFpu-qY.js → date-picker-CvQfs6Xh.js} +2 -2
- package/dist/_chunks/{date-range-picker-I-q5rifj.js → date-range-picker-U9fn1g9d.js} +3 -3
- package/dist/_chunks/{date-time-picker-CqpGPlcH.js → date-time-picker-Cva0ZCWw.js} +2 -2
- package/dist/_chunks/{de-HTQ4b4-J.js → de-BMM2H7Bs.js} +2 -2
- package/dist/_chunks/dependent-selector-CRWgieHm.js +324 -0
- package/dist/_chunks/document-scanner-CqS_klIr.js +703 -0
- package/dist/_chunks/due-date-calculator-CUspKSTw.js +171 -0
- package/dist/_chunks/{editable-currency-cell-renderer-DnjwZNZP.js → editable-currency-cell-renderer-DgkCIIcO.js} +3 -3
- package/dist/_chunks/{el-Dr1pjuDq.js → el-BYPonAaK.js} +2 -2
- package/dist/_chunks/{es-CvyTjLS0.js → es-CMkVCQ4F.js} +2 -2
- package/dist/_chunks/{file-upload-CdozCPct.js → file-upload-BosbPDb1.js} +3 -2
- package/dist/_chunks/fiscal-code-input-BZ0FxwUl.js +540 -0
- package/dist/_chunks/{fr-CS7aqaFR.js → fr-BcuWxqft.js} +2 -2
- package/dist/_chunks/{freemium-paywall-D1N02Oam.js → freemium-paywall-BAk3a6er.js} +7 -7
- package/dist/_chunks/gestation-BXEgDGmP.js +50 -0
- package/dist/_chunks/gestational-age-calculator-CsQ05qDy.js +165 -0
- package/dist/_chunks/header-settings-CBLwUK6t.js +244 -0
- package/dist/_chunks/heart-C0faivFf.js +20 -0
- package/dist/_chunks/{hi-3uy8KpsH.js → hi-wkq_rQAh.js} +2 -2
- package/dist/_chunks/image-C6RM5hfF.js +16 -0
- package/dist/_chunks/insert-result-yJ0QavoN.js +133 -0
- package/dist/_chunks/{isSameWeek-DRpMibi9.js → isSameWeek-Bim5ftRd.js} +2 -2
- package/dist/_chunks/{it-B_RF5VSw.js → it-GiQrQ9p4.js} +3 -3
- package/dist/_chunks/{ja-C1mEYy35.js → ja-qfYg3Rua.js} +2 -2
- package/dist/_chunks/{logo-_Z-jLq80.js → logo-yituK7sE.js} +42 -91
- package/dist/_chunks/{map-view-vD5pvWs9.js → map-view-qJLybrmN.js} +2 -2
- package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +296 -0
- package/dist/_chunks/{message-card-BbRhZkDI.js → message-card-DSPw5ghw.js} +20 -19
- package/dist/_chunks/{message-tray-B762TKuv.js → message-tray-hSQff9u4.js} +3 -3
- package/dist/_chunks/{nl-Dl7lO2t3.js → nl-xOogO4sZ.js} +2 -2
- package/dist/_chunks/{notification-card-DMdO4g54.js → notification-card-CObnGdJu.js} +22 -21
- package/dist/_chunks/{notification-tray-Dl3FTleW.js → notification-tray-BWHDIjgd.js} +2 -2
- package/dist/_chunks/{otp-input-CDTWT5EK.js → otp-input-CMphfBxZ.js} +70 -71
- package/dist/_chunks/{patient-shell-CDvMw_Nk.js → patient-shell-DF81lALv.js} +37 -36
- package/dist/_chunks/{payment-form-D5rgnZu7.js → payment-form-Dy3WIIsC.js} +18 -18
- package/dist/_chunks/{pdf-viewer-DvtEHcEP.js → pdf-viewer-Cy6Ul3hZ.js} +2 -2
- package/dist/_chunks/{pl-Dgsogljx.js → pl-GnOW6eGK.js} +3 -3
- package/dist/_chunks/{practice-results-BFM_lyUs.js → practice-results-C0d4IL5E.js} +4 -3
- package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +209 -0
- package/dist/_chunks/{privacy-lock-DD-wHxBg.js → privacy-lock-BmX_gkvt.js} +2 -2
- package/dist/_chunks/{pt-Dm2JF4bc.js → pt-_bV5b5RW.js} +2 -2
- package/dist/_chunks/{public-footer.agent-Cjfe5jus.js → public-footer.agent-okt8ZRc5.js} +3 -3
- package/dist/_chunks/qr-code-DNXhi6se.js +568 -0
- package/dist/_chunks/{react-day-picker-DYDdR8Vv.js → react-day-picker-CdtIiKjx.js} +24 -24
- package/dist/_chunks/{reviews-panel-Dow8Dzoa.js → reviews-panel-CPrXu5TX.js} +2 -2
- package/dist/_chunks/{rich-text-editor-CHmr9Bz8.js → rich-text-editor-DLbg2852.js} +114 -124
- package/dist/_chunks/{ro-BXFZ_xIX.js → ro-BEcyh5Nj.js} +2 -2
- package/dist/_chunks/rotate-ccw-BWANpitO.js +15 -0
- package/dist/_chunks/{ru-BPQkNRRV.js → ru-Bi86hqMf.js} +3 -3
- package/dist/_chunks/session-countdown-LPnhTHjn.js +214 -0
- package/dist/_chunks/{shield-check-BhHyReu8.js → shield-check-C73ma9Cs.js} +8 -24
- package/dist/_chunks/{sidebar-BbR8f6oe.js → sidebar-_vJXI9rB.js} +2 -2
- package/dist/_chunks/sign-document-DId1p-nn.js +315 -0
- package/dist/_chunks/{sign-in-with-alfadocs-button-BI0fVonM.js → sign-in-with-alfadocs-button-DeHBFRNS.js} +2 -2
- package/dist/_chunks/{signature-capture-C-fF71xI.js → signature-capture-BRzCklg4.js} +27 -24
- package/dist/_chunks/social-sign-in-button-X54ySJr1.js +243 -0
- package/dist/_chunks/{sparkline-DEROcSl0.js → sparkline-DGhCSw8M.js} +55 -46
- package/dist/_chunks/{sq-ChTlGFcJ.js → sq-BujHSAWu.js} +2 -2
- package/dist/_chunks/{stepper-accordion-BfS6lUB9.js → stepper-accordion-Dki6r9ZE.js} +2 -2
- package/dist/_chunks/subDays-_T9YeKPX.js +8 -0
- package/dist/_chunks/{sv-Do_gs6ir.js → sv-C8AeDrTA.js} +2 -2
- package/dist/_chunks/{tag-CyoaEmf_.js → tag-CdA0s_VV.js} +16 -16
- package/dist/_chunks/{task-card-BUVMh6HN.js → task-card-CPyQ5AXC.js} +6 -5
- package/dist/_chunks/{task-tray-DRK0b0Qb.js → task-tray-B8jFv5FV.js} +36 -35
- package/dist/_chunks/{tr-da_UnkYH.js → tr-CMSs_Vgf.js} +2 -2
- package/dist/_chunks/{transcript-panel-DyhTpAP7.js → transcript-panel-CR7VY1uw.js} +8 -7
- package/dist/_chunks/unit-converter-EUwO6QYq.js +168 -0
- package/dist/_chunks/wallet-pay-button-DK4ESYge.js +250 -0
- package/dist/_chunks/{warning-stack-bDicCvxs.js → warning-stack-DNR3-IbP.js} +17 -16
- package/dist/_chunks/{workflow-map-uSiHbOWQ.js → workflow-map-C3gB0FvB.js} +3 -2
- package/dist/_chunks/{zh-CN-C9qi5oak.js → zh-CN-eXB-PFu4.js} +3 -3
- package/dist/agent-catalog.json +241 -1
- package/dist/brand/provider-marks/apple-pay.d.ts +12 -0
- package/dist/brand/provider-marks/apple.d.ts +12 -0
- package/dist/brand/provider-marks/google-pay.d.ts +12 -0
- package/dist/brand/provider-marks/google.d.ts +13 -0
- package/dist/components/_shared/insert-result.d.ts +47 -0
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/bmi-calculator/bmi-calculator.d.ts +3 -0
- package/dist/components/bmi-calculator/index.js +6 -5
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/calculator-dialog.d.ts +26 -0
- package/dist/components/calculator-dialog/index.d.ts +3 -0
- package/dist/components/calculator-dialog/index.js +5 -0
- package/dist/components/chart/chart.d.ts +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/cycle-calculator.d.ts +21 -0
- package/dist/components/cycle-calculator/cycle.d.ts +37 -0
- package/dist/components/cycle-calculator/index.d.ts +4 -0
- package/dist/components/cycle-calculator/index.js +7 -0
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dependent-selector/dependent-selector.agent.d.ts +4 -0
- package/dist/components/dependent-selector/dependent-selector.d.ts +72 -0
- package/dist/components/dependent-selector/index.d.ts +4 -0
- package/dist/components/dependent-selector/index.js +6 -0
- package/dist/components/document-scanner/document-scanner.agent.d.ts +4 -0
- package/dist/components/document-scanner/document-scanner.d.ts +93 -0
- package/dist/components/document-scanner/index.d.ts +4 -0
- package/dist/components/document-scanner/index.js +6 -0
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +3 -0
- package/dist/components/due-date-calculator/gestation.d.ts +16 -0
- package/dist/components/due-date-calculator/index.d.ts +1 -1
- package/dist/components/due-date-calculator/index.js +10 -7
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/fiscal-code-input/calculate-codice-fiscale.d.ts +24 -0
- package/dist/components/fiscal-code-input/fiscal-code-input.agent.d.ts +4 -0
- package/dist/components/fiscal-code-input/fiscal-code-input.d.ts +61 -0
- package/dist/components/fiscal-code-input/index.d.ts +6 -0
- package/dist/components/fiscal-code-input/index.js +11 -0
- package/dist/components/fiscal-code-input/is-valid-codice-fiscale.d.ts +21 -0
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +27 -0
- package/dist/components/gestational-age-calculator/index.d.ts +3 -0
- package/dist/components/gestational-age-calculator/index.js +5 -0
- package/dist/components/header-settings/header-settings.agent.d.ts +4 -0
- package/dist/components/header-settings/header-settings.d.ts +36 -0
- package/dist/components/header-settings/index.d.ts +2 -0
- package/dist/components/header-settings/index.js +2 -241
- package/dist/components/index.d.ts +14 -0
- package/dist/components/locale-picker/locale-picker.agent.d.ts +4 -0
- package/dist/components/locale-picker/locale-picker.d.ts +80 -0
- package/dist/components/logo/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/otp-input/index.d.ts +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.d.ts +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.d.ts +4 -0
- package/dist/components/pregnancy-weight-gain/index.js +9 -0
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +19 -0
- package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +41 -0
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/qr-code/index.d.ts +5 -0
- package/dist/components/qr-code/index.js +8 -0
- package/dist/components/qr-code/qr-code.agent.d.ts +3 -0
- package/dist/components/qr-code/qr-code.d.ts +59 -0
- package/dist/components/qr-code/qr-encode.d.ts +46 -0
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/session-countdown/index.d.ts +4 -0
- package/dist/components/session-countdown/index.js +6 -0
- package/dist/components/session-countdown/session-countdown.agent.d.ts +3 -0
- package/dist/components/session-countdown/session-countdown.d.ts +38 -0
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sign-document/index.d.ts +4 -0
- package/dist/components/sign-document/index.js +6 -0
- package/dist/components/sign-document/sign-document.agent.d.ts +4 -0
- package/dist/components/sign-document/sign-document.d.ts +47 -0
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/social-sign-in-button/index.d.ts +3 -0
- package/dist/components/social-sign-in-button/index.js +5 -0
- package/dist/components/social-sign-in-button/social-sign-in-button.d.ts +56 -0
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/sparkline/sparkline.d.ts +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/unit-converter/index.d.ts +4 -0
- package/dist/components/unit-converter/index.js +9 -0
- package/dist/components/unit-converter/unit-converter.d.ts +21 -0
- package/dist/components/unit-converter/units.d.ts +18 -0
- package/dist/components/wallet-pay-button/index.d.ts +3 -0
- package/dist/components/wallet-pay-button/index.js +5 -0
- package/dist/components/wallet-pay-button/wallet-pay-button.d.ts +63 -0
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locale-meta.d.ts +56 -0
- package/dist/i18n/locales/ar.d.ts +274 -0
- package/dist/i18n/locales/ar.js +271 -0
- package/dist/i18n/locales/de.d.ts +274 -0
- package/dist/i18n/locales/de.js +271 -0
- package/dist/i18n/locales/el.d.ts +274 -0
- package/dist/i18n/locales/el.js +271 -0
- package/dist/i18n/locales/en.d.ts +274 -0
- package/dist/i18n/locales/en.js +274 -0
- package/dist/i18n/locales/es.d.ts +274 -0
- package/dist/i18n/locales/es.js +271 -0
- package/dist/i18n/locales/fr.d.ts +274 -0
- package/dist/i18n/locales/fr.js +271 -0
- package/dist/i18n/locales/hi.d.ts +274 -0
- package/dist/i18n/locales/hi.js +271 -0
- package/dist/i18n/locales/it.d.ts +274 -0
- package/dist/i18n/locales/it.js +271 -0
- package/dist/i18n/locales/ja.d.ts +274 -0
- package/dist/i18n/locales/ja.js +267 -0
- package/dist/i18n/locales/nl.d.ts +274 -0
- package/dist/i18n/locales/nl.js +271 -0
- package/dist/i18n/locales/pl.d.ts +274 -0
- package/dist/i18n/locales/pl.js +271 -0
- package/dist/i18n/locales/pt.d.ts +274 -0
- package/dist/i18n/locales/pt.js +274 -0
- package/dist/i18n/locales/ro.d.ts +274 -0
- package/dist/i18n/locales/ro.js +271 -0
- package/dist/i18n/locales/ru.d.ts +274 -0
- package/dist/i18n/locales/ru.js +271 -0
- package/dist/i18n/locales/sq.d.ts +274 -0
- package/dist/i18n/locales/sq.js +271 -0
- package/dist/i18n/locales/sv.d.ts +274 -0
- package/dist/i18n/locales/sv.js +271 -0
- package/dist/i18n/locales/tr.d.ts +274 -0
- package/dist/i18n/locales/tr.js +271 -0
- package/dist/i18n/locales/zh.d.ts +274 -0
- package/dist/i18n/locales/zh.js +267 -0
- package/dist/index.js +590 -535
- package/dist/locales/ar.json +274 -0
- package/dist/locales/de.json +274 -0
- package/dist/locales/el.json +274 -0
- package/dist/locales/en.json +274 -0
- package/dist/locales/es.json +274 -0
- package/dist/locales/fr.json +274 -0
- package/dist/locales/hi.json +274 -0
- package/dist/locales/it.json +274 -0
- package/dist/locales/ja.json +274 -0
- package/dist/locales/nl.json +274 -0
- package/dist/locales/pl.json +274 -0
- package/dist/locales/pt.json +274 -0
- package/dist/locales/ro.json +274 -0
- package/dist/locales/ru.json +274 -0
- package/dist/locales/sq.json +274 -0
- package/dist/locales/sv.json +274 -0
- package/dist/locales/tr.json +274 -0
- package/dist/locales/zh.json +274 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +12 -8
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +53 -1
- package/dist/_chunks/bmi-calculator-DQD5_nE-.js +0 -214
- package/dist/_chunks/due-date-calculator-kf9U_g7O.js +0 -173
- package/dist/_chunks/marketplace-app-shell-DXHxy9dj.js +0 -295
- package/dist/_chunks/subDays-D-WYRpdW.js +0 -8
|
@@ -48,7 +48,9 @@ const Pe = {
|
|
|
48
48
|
"ds:signature-capture-alfadocs ds:flex ds:flex-col",
|
|
49
49
|
"ds:gap-[var(--spacing-sm)]",
|
|
50
50
|
"ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
51
|
-
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
|
|
51
|
+
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--card-border)]",
|
|
52
|
+
"ds:shadow-[var(--shadow-card)]",
|
|
53
|
+
"ds:[.theme-accessible_&]:border-2",
|
|
52
54
|
"ds:p-[var(--spacing-sm)]",
|
|
53
55
|
"ds:aria-disabled:opacity-[var(--opacity-50)] ds:aria-disabled:cursor-not-allowed"
|
|
54
56
|
].join(" ")
|
|
@@ -138,7 +140,8 @@ const Pe = {
|
|
|
138
140
|
"ds:inline-size-[var(--signature-width)]",
|
|
139
141
|
"ds:block-size-[var(--signature-height)]",
|
|
140
142
|
"ds:rounded-[var(--radius-sm)]",
|
|
141
|
-
"ds:border ds:border-[color:var(--border)]",
|
|
143
|
+
"ds:border ds:border-[color:var(--card-border)]",
|
|
144
|
+
"ds:[.theme-accessible_&]:border-2",
|
|
142
145
|
"ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
143
146
|
"ds:font-[family-name:var(--font-sans)]",
|
|
144
147
|
"ds:italic",
|
|
@@ -187,13 +190,13 @@ async function Ie(t) {
|
|
|
187
190
|
return "";
|
|
188
191
|
}
|
|
189
192
|
function He(t, n, s, i, a) {
|
|
190
|
-
const
|
|
193
|
+
const v = Math.max(
|
|
191
194
|
1,
|
|
192
195
|
typeof window < "u" ? window.devicePixelRatio : 1
|
|
193
196
|
), z = document.createElement("canvas");
|
|
194
|
-
z.width = Math.floor(n *
|
|
197
|
+
z.width = Math.floor(n * v), z.height = Math.floor(s * v);
|
|
195
198
|
const l = z.getContext("2d");
|
|
196
|
-
return l && (l.setTransform(
|
|
199
|
+
return l && (l.setTransform(v, 0, 0, v, 0, 0), l.fillStyle = a, l.fillRect(0, 0, n, s), l.fillStyle = i, l.font = "32px italic sans-serif", l.textAlign = "center", l.textBaseline = "middle", l.fillText(t, n / 2, s / 2, n - 16)), z;
|
|
197
200
|
}
|
|
198
201
|
const Ue = ze(
|
|
199
202
|
({
|
|
@@ -202,7 +205,7 @@ const Ue = ze(
|
|
|
202
205
|
onClear: s,
|
|
203
206
|
onStart: i,
|
|
204
207
|
width: a = 400,
|
|
205
|
-
height:
|
|
208
|
+
height: v = 200,
|
|
206
209
|
penColor: z,
|
|
207
210
|
backgroundColor: l,
|
|
208
211
|
allowTypedFallback: ce = !0,
|
|
@@ -213,13 +216,13 @@ const Ue = ze(
|
|
|
213
216
|
const { t: o } = Me(), G = Se(), Z = `${ae(
|
|
214
217
|
() => `sig-${G.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
215
218
|
[G]
|
|
216
|
-
)}-live`, F = C(null), J = C(null), V = C(null), K = C(null), y = C(null), [d, ge] = N("draw"), [S, L] = N(""), [pe, I] = N(!1),
|
|
219
|
+
)}-live`, F = C(null), J = C(null), V = C(null), K = C(null), y = C(null), [d, ge] = N("draw"), [S, L] = N(""), [pe, I] = N(!1), me = C("empty"), [ve, be] = N(""), [b, he] = N(""), [w, ye] = N(""), j = C(i), E = C(s), B = C(n);
|
|
217
220
|
P(() => {
|
|
218
221
|
j.current = i, E.current = s, B.current = n;
|
|
219
222
|
}, [i, s, n]);
|
|
220
223
|
const g = T(
|
|
221
224
|
(e) => {
|
|
222
|
-
|
|
225
|
+
me.current = e, be(o(`signature.state.${e}`));
|
|
223
226
|
},
|
|
224
227
|
[o]
|
|
225
228
|
);
|
|
@@ -272,10 +275,10 @@ const Ue = ze(
|
|
|
272
275
|
), p = Math.max(1, Math.floor(r.width * c)), x = Math.max(1, Math.floor(r.height * c)), A = Math.min(p, Q), k = Math.min(x, Q);
|
|
273
276
|
if (e.width === A && e.height === k)
|
|
274
277
|
return;
|
|
275
|
-
const
|
|
278
|
+
const m = y.current, M = m ? m.toData() : null;
|
|
276
279
|
e.width = A, e.height = k;
|
|
277
280
|
const D = e.getContext("2d");
|
|
278
|
-
D && D.scale(c, c),
|
|
281
|
+
D && D.scale(c, c), m && (w && (m.backgroundColor = w), b && (m.penColor = b), m.clear(), M && M.length > 0 && m.fromData(M));
|
|
279
282
|
},
|
|
280
283
|
[w, b]
|
|
281
284
|
);
|
|
@@ -304,18 +307,18 @@ const Ue = ze(
|
|
|
304
307
|
if (d === "typed") return S.trim().length === 0;
|
|
305
308
|
const e = y.current;
|
|
306
309
|
return e ? e.isEmpty() : !0;
|
|
307
|
-
}, [d, S]),
|
|
310
|
+
}, [d, S]), _ = T(async () => {
|
|
308
311
|
var ne;
|
|
309
312
|
const e = de(
|
|
310
313
|
typeof a == "number" ? `${a}` : String(a)
|
|
311
314
|
), r = de(
|
|
312
|
-
typeof
|
|
315
|
+
typeof v == "number" ? `${v}` : String(v)
|
|
313
316
|
), c = d === "draw" ? V.current ?? J.current ?? F.current : K.current ?? F.current, p = c == null ? void 0 : c.getBoundingClientRect(), x = e ?? (p ? p.width : 400), A = r ?? (p ? p.height : 200);
|
|
314
|
-
let k = "",
|
|
317
|
+
let k = "", m = "", M;
|
|
315
318
|
if (d === "draw") {
|
|
316
319
|
const u = y.current;
|
|
317
320
|
if (!u || u.isEmpty()) return null;
|
|
318
|
-
k = u.toDataURL("image/png"),
|
|
321
|
+
k = u.toDataURL("image/png"), m = u.toSVG(), M = u.toData();
|
|
319
322
|
} else {
|
|
320
323
|
const u = S.trim();
|
|
321
324
|
if (u.length === 0) return null;
|
|
@@ -327,7 +330,7 @@ const Ue = ze(
|
|
|
327
330
|
w || "transparent"
|
|
328
331
|
).toDataURL("image/png");
|
|
329
332
|
const W = u.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
330
|
-
|
|
333
|
+
m = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${x} ${A}" width="${x}" height="${A}"><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-family="sans-serif" font-style="italic" font-size="32" fill="${b || "currentColor"}" letter-spacing="3">${W}</text></svg>`;
|
|
331
334
|
}
|
|
332
335
|
const D = x * 25.4 / 96, ke = A * 25.4 / 96, Ce = (/* @__PURE__ */ new Date()).toISOString();
|
|
333
336
|
let te = "";
|
|
@@ -337,7 +340,7 @@ const Ue = ze(
|
|
|
337
340
|
}
|
|
338
341
|
const re = {
|
|
339
342
|
png: k,
|
|
340
|
-
svg:
|
|
343
|
+
svg: m,
|
|
341
344
|
widthMm: D,
|
|
342
345
|
heightMm: ke,
|
|
343
346
|
capturedAt: Ce,
|
|
@@ -345,23 +348,23 @@ const Ue = ze(
|
|
|
345
348
|
strokes: M
|
|
346
349
|
};
|
|
347
350
|
return g("captured"), (ne = B.current) == null || ne.call(B, re), re;
|
|
348
|
-
}, [d, S, a,
|
|
351
|
+
}, [d, S, a, v, b, w, g]), O = ae(
|
|
349
352
|
() => ({
|
|
350
353
|
clear: H,
|
|
351
354
|
undo: U,
|
|
352
355
|
isEmpty: Y,
|
|
353
|
-
confirm:
|
|
356
|
+
confirm: _
|
|
354
357
|
}),
|
|
355
|
-
[H, U, Y,
|
|
358
|
+
[H, U, Y, _]
|
|
356
359
|
);
|
|
357
|
-
Re(fe, () =>
|
|
360
|
+
Re(fe, () => O, [O]), Ne(Pe, O, t);
|
|
358
361
|
const we = d === "typed" ? S.trim().length > 0 : pe, ee = f || !we, xe = {
|
|
359
362
|
"--signature-width": oe(
|
|
360
363
|
a,
|
|
361
364
|
"var(--signature-default-width)"
|
|
362
365
|
),
|
|
363
366
|
"--signature-height": oe(
|
|
364
|
-
|
|
367
|
+
v,
|
|
365
368
|
"var(--signature-default-height)"
|
|
366
369
|
)
|
|
367
370
|
};
|
|
@@ -421,7 +424,7 @@ const Ue = ze(
|
|
|
421
424
|
"aria-atomic": "true",
|
|
422
425
|
className: "ds:sr-only",
|
|
423
426
|
"data-testid": "signature-live",
|
|
424
|
-
children:
|
|
427
|
+
children: ve
|
|
425
428
|
}
|
|
426
429
|
),
|
|
427
430
|
/* @__PURE__ */ X(
|
|
@@ -473,7 +476,7 @@ const Ue = ze(
|
|
|
473
476
|
{
|
|
474
477
|
type: "button",
|
|
475
478
|
onClick: () => {
|
|
476
|
-
ee ||
|
|
479
|
+
ee || _();
|
|
477
480
|
},
|
|
478
481
|
"aria-disabled": ee || void 0,
|
|
479
482
|
"aria-describedby": Z,
|
|
@@ -495,4 +498,4 @@ export {
|
|
|
495
498
|
Ue as S,
|
|
496
499
|
Pe as s
|
|
497
500
|
};
|
|
498
|
-
//# sourceMappingURL=signature-capture-
|
|
501
|
+
//# sourceMappingURL=signature-capture-BRzCklg4.js.map
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { jsx as s, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as y, useRef as p, useEffect as N } from "react";
|
|
3
|
+
import { c as n } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as j } from "react-i18next";
|
|
5
|
+
import { S as V } from "./spinner-CCByyvcb.js";
|
|
6
|
+
function A({ className: e }) {
|
|
7
|
+
return /* @__PURE__ */ s(
|
|
8
|
+
"svg",
|
|
9
|
+
{
|
|
10
|
+
"aria-hidden": "true",
|
|
11
|
+
focusable: "false",
|
|
12
|
+
viewBox: "0 0 24 24",
|
|
13
|
+
fill: "currentColor",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
className: e,
|
|
16
|
+
children: /* @__PURE__ */ s("path", { d: "M17.05 12.536c-.024-2.51 2.05-3.715 2.143-3.774-1.168-1.708-2.985-1.942-3.63-1.967-1.546-.157-3.018.91-3.802.91-.783 0-1.99-.888-3.273-.864-1.684.025-3.236.978-4.102 2.485-1.748 3.03-.448 7.513 1.255 9.97.832 1.203 1.825 2.552 3.127 2.504 1.255-.05 1.73-.81 3.247-.81 1.518 0 1.945.81 3.273.786 1.351-.025 2.206-1.227 3.03-2.434.955-1.394 1.348-2.745 1.372-2.815-.03-.013-2.633-1.01-2.66-4.001m-2.48-7.343c.692-.838 1.158-2.002 1.03-3.163-.997.04-2.205.664-2.92 1.502-.64.742-1.2 1.927-1.05 3.066 1.112.086 2.247-.566 2.94-1.405" })
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
function v({ className: e }) {
|
|
21
|
+
return /* @__PURE__ */ m(
|
|
22
|
+
"svg",
|
|
23
|
+
{
|
|
24
|
+
"aria-hidden": "true",
|
|
25
|
+
focusable: "false",
|
|
26
|
+
viewBox: "0 0 24 24",
|
|
27
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
28
|
+
className: e,
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ s(
|
|
31
|
+
"path",
|
|
32
|
+
{
|
|
33
|
+
fill: "#4285F4",
|
|
34
|
+
d: "M23.52 12.273c0-.851-.076-1.67-.218-2.455H12v4.642h6.458a5.52 5.52 0 0 1-2.394 3.622v3.01h3.878c2.269-2.09 3.578-5.166 3.578-8.819z"
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
/* @__PURE__ */ s(
|
|
38
|
+
"path",
|
|
39
|
+
{
|
|
40
|
+
fill: "#34A853",
|
|
41
|
+
d: "M12 24c3.24 0 5.956-1.075 7.942-2.908l-3.878-3.01c-1.075.72-2.45 1.146-4.064 1.146-3.125 0-5.77-2.11-6.714-4.946H1.276v3.106A11.995 11.995 0 0 0 12 24z"
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
/* @__PURE__ */ s(
|
|
45
|
+
"path",
|
|
46
|
+
{
|
|
47
|
+
fill: "#FBBC05",
|
|
48
|
+
d: "M5.286 14.282A7.213 7.213 0 0 1 4.91 12c0-.792.136-1.562.376-2.282V6.612H1.276A11.995 11.995 0 0 0 0 12c0 1.936.464 3.768 1.276 5.388l4.01-3.106z"
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ s(
|
|
52
|
+
"path",
|
|
53
|
+
{
|
|
54
|
+
fill: "#EA4335",
|
|
55
|
+
d: "M12 4.773c1.762 0 3.344.605 4.589 1.794l3.442-3.442C17.951 1.19 15.235 0 12 0A11.995 11.995 0 0 0 1.276 6.612l4.01 3.106C6.23 6.882 8.875 4.773 12 4.773z"
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
const M = n(
|
|
63
|
+
[
|
|
64
|
+
"ds:relative ds:inline-flex ds:items-center ds:justify-center",
|
|
65
|
+
"ds:font-medium ds:whitespace-nowrap",
|
|
66
|
+
"ds:rounded-[var(--radius-md)]",
|
|
67
|
+
"ds:gap-[var(--spacing-sm)]",
|
|
68
|
+
"ds:border ds:border-solid",
|
|
69
|
+
"ds:active:opacity-90",
|
|
70
|
+
"ds:transition-[background-color,box-shadow,opacity]",
|
|
71
|
+
"ds:duration-[var(--animation-duration)]",
|
|
72
|
+
// Focus ring is `var(--ring)` (the kit primary), NEVER the brand
|
|
73
|
+
// surface colour — painting the ring in the brand hue on a brand
|
|
74
|
+
// surface makes it invisible. Same rule WhatsAppButton codifies.
|
|
75
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
76
|
+
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
77
|
+
// Windows High Contrast Mode strips brand fills — repaint a solid
|
|
78
|
+
// border edge + swap the focus ring to CanvasText so the affordance
|
|
79
|
+
// stays identifiable.
|
|
80
|
+
"ds:forced-colors:border-[ButtonBorder]",
|
|
81
|
+
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
82
|
+
"ds:disabled:opacity-50 ds:disabled:cursor-not-allowed",
|
|
83
|
+
"ds:aria-busy:cursor-wait",
|
|
84
|
+
"ds:motion-reduce:transition-none"
|
|
85
|
+
].join(" "),
|
|
86
|
+
{
|
|
87
|
+
variants: {
|
|
88
|
+
provider: {
|
|
89
|
+
apple: "",
|
|
90
|
+
google: ""
|
|
91
|
+
},
|
|
92
|
+
appearance: {
|
|
93
|
+
light: "",
|
|
94
|
+
dark: ""
|
|
95
|
+
},
|
|
96
|
+
size: {
|
|
97
|
+
// Heights mirror Button (sm 32 / md 40 / lg 48). `sm` (32px) and
|
|
98
|
+
// `md` (40px) both fall below `--min-target-size` (44 base / 48
|
|
99
|
+
// accessible), so each adds the ::before pseudo-element touch-
|
|
100
|
+
// target expansion to reach the minimum on mobile, collapsing
|
|
101
|
+
// above the `sm:` breakpoint. This component is the patient
|
|
102
|
+
// check-in (HTP-5104) mobile sign-in surface and `md` is the
|
|
103
|
+
// DEFAULT size rendered there, so it MUST meet WCAG 2.5.5 at both
|
|
104
|
+
// theme levels — unlike Button/WhatsApp, we do not leave md short.
|
|
105
|
+
// `lg` (48px) already meets the minimum natively.
|
|
106
|
+
sm: [
|
|
107
|
+
"ds:h-8 ds:ps-3 ds:pe-3 ds:text-[length:var(--font-size-sm)] ds:[&_svg]:size-4",
|
|
108
|
+
"ds:min-h-[var(--min-target-size)] ds:sm:min-h-0",
|
|
109
|
+
'ds:before:absolute ds:before:inset-x-[calc((var(--min-target-size)-100%)/-2)] ds:before:inset-y-[calc((var(--min-target-size)-100%)/-2)] ds:before:content-[""] ds:sm:before:hidden'
|
|
110
|
+
].join(" "),
|
|
111
|
+
md: [
|
|
112
|
+
"ds:h-10 ds:ps-4 ds:pe-4 ds:text-[length:var(--font-size-base)] ds:[&_svg]:size-5",
|
|
113
|
+
"ds:min-h-[var(--min-target-size)] ds:sm:min-h-0",
|
|
114
|
+
'ds:before:absolute ds:before:inset-x-[calc((var(--min-target-size)-100%)/-2)] ds:before:inset-y-[calc((var(--min-target-size)-100%)/-2)] ds:before:content-[""] ds:sm:before:hidden'
|
|
115
|
+
].join(" "),
|
|
116
|
+
lg: "ds:h-12 ds:ps-5 ds:pe-5 ds:text-[length:var(--font-size-lg)] ds:[&_svg]:size-6"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
compoundVariants: [
|
|
120
|
+
/* Apple — light: white surface, black logo + text. */
|
|
121
|
+
{
|
|
122
|
+
provider: "apple",
|
|
123
|
+
appearance: "light",
|
|
124
|
+
class: "ds:bg-[var(--brand-apple-light)] ds:text-[var(--brand-apple-light-foreground)] ds:border-[var(--brand-apple-light-border)] ds:hover:bg-[var(--brand-apple-light-hover)]"
|
|
125
|
+
},
|
|
126
|
+
/* Apple — dark: black surface, white logo + text. */
|
|
127
|
+
{
|
|
128
|
+
provider: "apple",
|
|
129
|
+
appearance: "dark",
|
|
130
|
+
class: "ds:bg-[var(--brand-apple-dark)] ds:text-[var(--brand-apple-dark-foreground)] ds:border-[var(--brand-apple-dark)] ds:hover:bg-[var(--brand-apple-dark-hover)]"
|
|
131
|
+
},
|
|
132
|
+
/* Google — light: white/neutral surface, grey text. */
|
|
133
|
+
{
|
|
134
|
+
provider: "google",
|
|
135
|
+
appearance: "light",
|
|
136
|
+
class: "ds:bg-[var(--brand-google-light)] ds:text-[var(--brand-google-light-foreground)] ds:border-[var(--brand-google-light-border)] ds:hover:bg-[var(--brand-google-light-hover)]"
|
|
137
|
+
},
|
|
138
|
+
/* Google — dark: Google-blue surface, white text. */
|
|
139
|
+
{
|
|
140
|
+
provider: "google",
|
|
141
|
+
appearance: "dark",
|
|
142
|
+
class: "ds:bg-[var(--brand-google-dark)] ds:text-[var(--brand-google-dark-foreground)] ds:border-[var(--brand-google-dark)] ds:hover:bg-[var(--brand-google-dark-hover)]"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
defaultVariants: {
|
|
146
|
+
appearance: "light",
|
|
147
|
+
size: "md"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
), _ = {
|
|
151
|
+
sm: "md",
|
|
152
|
+
md: "lg",
|
|
153
|
+
lg: "lg"
|
|
154
|
+
}, C = n(
|
|
155
|
+
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
156
|
+
{
|
|
157
|
+
variants: {
|
|
158
|
+
size: {
|
|
159
|
+
sm: "ds:size-4",
|
|
160
|
+
md: "ds:size-5",
|
|
161
|
+
lg: "ds:size-6"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
defaultVariants: { size: "md" }
|
|
165
|
+
}
|
|
166
|
+
), E = n(
|
|
167
|
+
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
168
|
+
{
|
|
169
|
+
variants: {
|
|
170
|
+
appearance: {
|
|
171
|
+
light: "",
|
|
172
|
+
dark: "ds:rounded-[var(--radius-sm)] ds:bg-[var(--brand-google-tile)]"
|
|
173
|
+
},
|
|
174
|
+
size: {
|
|
175
|
+
sm: "ds:[&_svg]:size-4",
|
|
176
|
+
md: "ds:[&_svg]:size-5",
|
|
177
|
+
lg: "ds:[&_svg]:size-6"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
compoundVariants: [
|
|
181
|
+
{ appearance: "dark", size: "sm", class: "ds:p-1" },
|
|
182
|
+
{ appearance: "dark", size: "md", class: "ds:p-1.5" },
|
|
183
|
+
{ appearance: "dark", size: "lg", class: "ds:p-2" }
|
|
184
|
+
],
|
|
185
|
+
defaultVariants: { appearance: "light", size: "md" }
|
|
186
|
+
}
|
|
187
|
+
), I = y(
|
|
188
|
+
({
|
|
189
|
+
provider: e,
|
|
190
|
+
appearance: r = "light",
|
|
191
|
+
size: d = "md",
|
|
192
|
+
loading: a = !1,
|
|
193
|
+
disabled: u,
|
|
194
|
+
label: b,
|
|
195
|
+
onLoadingCancelled: i,
|
|
196
|
+
type: f = "button",
|
|
197
|
+
className: h,
|
|
198
|
+
...z
|
|
199
|
+
}, k) => {
|
|
200
|
+
const { t } = j(), l = d ?? "md", w = b ?? t(`socialSignInButton.${e}`), c = p(a), o = p(i);
|
|
201
|
+
c.current = a, o.current = i, N(() => {
|
|
202
|
+
const g = (B) => {
|
|
203
|
+
B.persisted && c.current && o.current && o.current();
|
|
204
|
+
};
|
|
205
|
+
return window.addEventListener("pageshow", g), () => window.removeEventListener("pageshow", g);
|
|
206
|
+
}, []);
|
|
207
|
+
const x = [
|
|
208
|
+
M({ provider: e, appearance: r, size: d }),
|
|
209
|
+
h
|
|
210
|
+
].filter(Boolean).join(" "), S = e === "apple" ? /* @__PURE__ */ s(A, { className: "ds:shrink-0" }) : r === "dark" ? /* @__PURE__ */ s("span", { className: E({ appearance: r, size: d }), children: /* @__PURE__ */ s(v, {}) }) : /* @__PURE__ */ s(v, { className: "ds:shrink-0" });
|
|
211
|
+
return /* @__PURE__ */ m(
|
|
212
|
+
"button",
|
|
213
|
+
{
|
|
214
|
+
ref: k,
|
|
215
|
+
type: f,
|
|
216
|
+
disabled: u || a,
|
|
217
|
+
"aria-busy": a || void 0,
|
|
218
|
+
"data-component": "social-sign-in-button",
|
|
219
|
+
"data-provider": e,
|
|
220
|
+
"data-appearance": r,
|
|
221
|
+
className: x,
|
|
222
|
+
...z,
|
|
223
|
+
children: [
|
|
224
|
+
a ? /* @__PURE__ */ s("span", { className: C({ size: l }), children: /* @__PURE__ */ s(
|
|
225
|
+
V,
|
|
226
|
+
{
|
|
227
|
+
size: _[l],
|
|
228
|
+
variant: "pulse",
|
|
229
|
+
className: "ds:size-full",
|
|
230
|
+
label: t("socialSignInButton.loading")
|
|
231
|
+
}
|
|
232
|
+
) }) : S,
|
|
233
|
+
/* @__PURE__ */ s("span", { children: w })
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
);
|
|
239
|
+
I.displayName = "SocialSignInButton";
|
|
240
|
+
export {
|
|
241
|
+
I as S
|
|
242
|
+
};
|
|
243
|
+
//# sourceMappingURL=social-sign-in-button-X54ySJr1.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as j, useId as G, useMemo as
|
|
1
|
+
import { jsx as v, jsxs as P } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as j, useId as G, useMemo as w, useRef as V, useState as A, useEffect as H, useImperativeHandle as Z } from "react";
|
|
3
3
|
import { c as $ } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as q } from "react-i18next";
|
|
5
5
|
import J from "react-apexcharts";
|
|
6
|
-
import
|
|
6
|
+
import R from "apexcharts";
|
|
7
7
|
import { g as D, u as K } from "./apexcharts-theme-BJigns_V.js";
|
|
8
8
|
import { u as Q } from "./registry-nPAVE19X.js";
|
|
9
9
|
function X(n) {
|
|
@@ -15,8 +15,8 @@ function X(n) {
|
|
|
15
15
|
const o = s - a;
|
|
16
16
|
i += o * (n[s] - c), l += o * o;
|
|
17
17
|
}
|
|
18
|
-
const d = l === 0 ? 0 : i / l,
|
|
19
|
-
return { slope: d, direction:
|
|
18
|
+
const d = l === 0 ? 0 : i / l, k = 0.01 * (Math.max(...n) - Math.min(...n) || 1), u = Math.abs(d) < k ? "steady" : d > 0 ? "increasing" : "decreasing";
|
|
19
|
+
return { slope: d, direction: u };
|
|
20
20
|
}
|
|
21
21
|
const Y = {
|
|
22
22
|
id: "sparkline",
|
|
@@ -50,7 +50,10 @@ const Y = {
|
|
|
50
50
|
size: {
|
|
51
51
|
xs: "ds:h-6",
|
|
52
52
|
sm: "ds:h-8",
|
|
53
|
-
md: "ds:h-10"
|
|
53
|
+
md: "ds:h-10",
|
|
54
|
+
// Applied when an explicit `height` prop is given: the wrapper
|
|
55
|
+
// grows with the svg instead of clipping at the size's fixed height.
|
|
56
|
+
auto: ""
|
|
54
57
|
}
|
|
55
58
|
},
|
|
56
59
|
defaultVariants: { size: "md" }
|
|
@@ -76,26 +79,26 @@ const ne = j(
|
|
|
76
79
|
color: l,
|
|
77
80
|
showEndpoint: d = !1,
|
|
78
81
|
showTooltip: M = !1,
|
|
79
|
-
width:
|
|
80
|
-
height:
|
|
82
|
+
width: k,
|
|
83
|
+
height: u,
|
|
81
84
|
className: s,
|
|
82
85
|
...o
|
|
83
86
|
}, _) => {
|
|
84
|
-
var
|
|
85
|
-
const { t:
|
|
87
|
+
var S;
|
|
88
|
+
const { t: m, i18n: C } = q(), T = G(), p = w(
|
|
86
89
|
() => `sparkline-${T.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
87
90
|
[T]
|
|
88
|
-
),
|
|
91
|
+
), h = V(null), [O, E] = A(0), { direction: y } = X(t), z = w(() => {
|
|
89
92
|
if (t.length === 0)
|
|
90
|
-
return
|
|
91
|
-
const e = (
|
|
93
|
+
return m("sparkline.noData", "No data");
|
|
94
|
+
const e = (b) => new Intl.NumberFormat(C.language).format(b), r = m(`sparkline.direction.${y}`), g = {
|
|
92
95
|
min: e(Math.min(...t)),
|
|
93
96
|
max: e(Math.max(...t)),
|
|
94
97
|
current: e(t[t.length - 1]),
|
|
95
98
|
direction: r
|
|
96
99
|
};
|
|
97
|
-
return i ?
|
|
98
|
-
}, [t, i, y, C.language,
|
|
100
|
+
return i ? m("sparkline.summary", { label: i, ...g }) : m("sparkline.summaryNoLabel", g);
|
|
101
|
+
}, [t, i, y, C.language, m]), [f, W] = A(
|
|
99
102
|
() => {
|
|
100
103
|
try {
|
|
101
104
|
return D();
|
|
@@ -104,7 +107,7 @@ const ne = j(
|
|
|
104
107
|
}
|
|
105
108
|
}
|
|
106
109
|
);
|
|
107
|
-
|
|
110
|
+
H(() => {
|
|
108
111
|
let e;
|
|
109
112
|
const r = new MutationObserver(() => {
|
|
110
113
|
clearTimeout(e), e = setTimeout(() => {
|
|
@@ -120,57 +123,60 @@ const ne = j(
|
|
|
120
123
|
}), () => {
|
|
121
124
|
clearTimeout(e), r.disconnect();
|
|
122
125
|
};
|
|
123
|
-
}, []),
|
|
124
|
-
const e =
|
|
126
|
+
}, []), H(() => {
|
|
127
|
+
const e = h.current;
|
|
125
128
|
if (!e) return;
|
|
126
|
-
const r = new ResizeObserver((
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
+
const r = new ResizeObserver((g) => {
|
|
130
|
+
const b = g[0];
|
|
131
|
+
b && E(Math.floor(b.contentRect.width));
|
|
129
132
|
});
|
|
130
133
|
return r.observe(e), () => r.disconnect();
|
|
131
|
-
}, []), K(
|
|
132
|
-
const x =
|
|
134
|
+
}, []), K(h);
|
|
135
|
+
const x = w(
|
|
133
136
|
() => ({
|
|
134
137
|
updateSeries(e) {
|
|
135
138
|
var r;
|
|
136
|
-
(r =
|
|
139
|
+
(r = R.getChartByID(p)) == null || r.updateSeries([{ data: e }]);
|
|
137
140
|
},
|
|
138
141
|
updateOptions(e) {
|
|
139
142
|
var r;
|
|
140
|
-
(r =
|
|
143
|
+
(r = R.getChartByID(p)) == null || r.updateOptions(e);
|
|
141
144
|
},
|
|
142
145
|
async dataURI() {
|
|
143
|
-
const e =
|
|
146
|
+
const e = R.getChartByID(p);
|
|
144
147
|
return e ? (await e.dataURI()).imgURI : "";
|
|
145
148
|
}
|
|
146
149
|
}),
|
|
147
|
-
[
|
|
150
|
+
[p]
|
|
148
151
|
);
|
|
149
152
|
Z(_, () => x, [x]), Q(Y, x, n);
|
|
150
|
-
const I = l ?? ((
|
|
153
|
+
const I = l ?? ((S = f.colors) == null ? void 0 : S[0]) ?? "currentColor";
|
|
151
154
|
if (t.length === 0)
|
|
152
|
-
return /* @__PURE__ */
|
|
155
|
+
return /* @__PURE__ */ v(
|
|
153
156
|
"div",
|
|
154
157
|
{
|
|
155
|
-
ref:
|
|
158
|
+
ref: h,
|
|
156
159
|
role: "img",
|
|
157
|
-
"aria-label":
|
|
160
|
+
"aria-label": z,
|
|
158
161
|
dir: "ltr",
|
|
159
|
-
className: U({
|
|
162
|
+
className: U({
|
|
163
|
+
size: u !== void 0 ? "auto" : c,
|
|
164
|
+
className: s
|
|
165
|
+
}),
|
|
160
166
|
...o
|
|
161
167
|
}
|
|
162
168
|
);
|
|
163
|
-
const
|
|
164
|
-
...
|
|
169
|
+
const N = re(), B = {
|
|
170
|
+
...f,
|
|
165
171
|
chart: {
|
|
166
|
-
...
|
|
167
|
-
id:
|
|
172
|
+
...f.chart,
|
|
173
|
+
id: p,
|
|
168
174
|
type: a,
|
|
169
175
|
sparkline: { enabled: !0 },
|
|
170
176
|
toolbar: { show: !1 },
|
|
171
177
|
animations: {
|
|
172
|
-
enabled: !
|
|
173
|
-
dynamicAnimation: { enabled: !
|
|
178
|
+
enabled: !N,
|
|
179
|
+
dynamicAnimation: { enabled: !N }
|
|
174
180
|
},
|
|
175
181
|
zoom: { enabled: !1 },
|
|
176
182
|
parentHeightOffset: 0
|
|
@@ -200,26 +206,29 @@ const ne = j(
|
|
|
200
206
|
]
|
|
201
207
|
} : { size: 0 },
|
|
202
208
|
grid: {
|
|
203
|
-
...
|
|
209
|
+
...f.grid,
|
|
204
210
|
show: !1,
|
|
205
211
|
// ApexCharts grid.padding uses physical keys (not CSS logical properties).
|
|
206
212
|
// The chart wrapper enforces dir="ltr" so these always resolve correctly.
|
|
207
213
|
padding: { top: 2, right: 2, bottom: 2, left: 2 }
|
|
208
214
|
}
|
|
209
|
-
}, F =
|
|
215
|
+
}, F = k ?? (O > 0 ? O : "100%"), L = u ?? te[c ?? "md"];
|
|
210
216
|
return /* @__PURE__ */ P(
|
|
211
217
|
"div",
|
|
212
218
|
{
|
|
213
|
-
ref:
|
|
219
|
+
ref: h,
|
|
214
220
|
role: "img",
|
|
215
|
-
"aria-label":
|
|
221
|
+
"aria-label": z,
|
|
216
222
|
dir: "ltr",
|
|
217
|
-
className: U({
|
|
223
|
+
className: U({
|
|
224
|
+
size: u !== void 0 ? "auto" : c,
|
|
225
|
+
className: s
|
|
226
|
+
}),
|
|
218
227
|
"data-component": "sparkline",
|
|
219
228
|
"data-component-id": n,
|
|
220
229
|
...o,
|
|
221
230
|
children: [
|
|
222
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ v(
|
|
223
232
|
J,
|
|
224
233
|
{
|
|
225
234
|
type: a,
|
|
@@ -230,7 +239,7 @@ const ne = j(
|
|
|
230
239
|
"aria-hidden": "true"
|
|
231
240
|
}
|
|
232
241
|
),
|
|
233
|
-
d && /* @__PURE__ */
|
|
242
|
+
d && /* @__PURE__ */ v(
|
|
234
243
|
"span",
|
|
235
244
|
{
|
|
236
245
|
"aria-hidden": "true",
|
|
@@ -249,4 +258,4 @@ export {
|
|
|
249
258
|
Y as s,
|
|
250
259
|
X as u
|
|
251
260
|
};
|
|
252
|
-
//# sourceMappingURL=sparkline-
|
|
261
|
+
//# sourceMappingURL=sparkline-DGhCSw8M.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as s, q as r, r as i, v as m } from "./react-day-picker-
|
|
1
|
+
import { o as s, q as r, r as i, v as m } from "./react-day-picker-CdtIiKjx.js";
|
|
2
2
|
const d = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "më pak se një sekondë",
|
|
@@ -352,4 +352,4 @@ const d = {
|
|
|
352
352
|
export {
|
|
353
353
|
T as sq
|
|
354
354
|
};
|
|
355
|
-
//# sourceMappingURL=sq-
|
|
355
|
+
//# sourceMappingURL=sq-BujHSAWu.js.map
|
|
@@ -88,7 +88,7 @@ const J = [
|
|
|
88
88
|
}), Q = v(
|
|
89
89
|
[
|
|
90
90
|
"ds:group/item ds:overflow-hidden ds:rounded-[var(--radius-md)]",
|
|
91
|
-
"ds:border ds:border-[var(--border)] ds:bg-[var(--card)]",
|
|
91
|
+
"ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2 ds:bg-[var(--card)]",
|
|
92
92
|
"ds:data-[state=open]:border-[var(--primary)]",
|
|
93
93
|
"ds:transition-[border-color] ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]",
|
|
94
94
|
"ds:motion-reduce:transition-none"
|
|
@@ -254,4 +254,4 @@ ne.displayName = "StepperAccordion";
|
|
|
254
254
|
export {
|
|
255
255
|
ne as S
|
|
256
256
|
};
|
|
257
|
-
//# sourceMappingURL=stepper-accordion-
|
|
257
|
+
//# sourceMappingURL=stepper-accordion-Dki6r9ZE.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as d, q as r, r as i, v as m } from "./react-day-picker-
|
|
1
|
+
import { o as d, q as r, r as i, v as m } from "./react-day-picker-CdtIiKjx.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-
|
|
376
|
+
//# sourceMappingURL=sv-C8AeDrTA.js.map
|