@alfadocs/ui-kit 1.115.0 → 1.116.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/accessible-target-Bs9ELM3l.js +6 -0
- package/dist/_chunks/{actions-cell-renderer-bI27uXXC.js → actions-cell-renderer-DzHxDyI7.js} +3 -3
- package/dist/_chunks/{address-fields-D5Ije0S2.js → address-fields-BFVCtfP2.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-rows-BZ36ULQk.js → anamnesis-summary-rows-gEXqU5i5.js} +6 -6
- package/dist/_chunks/{appointment-card-D_-aBrx5.js → appointment-card-BMZoXaGx.js} +3 -3
- package/dist/_chunks/{appointment-peek-DWfcpoGy.js → appointment-peek-B1CCv-7J.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DxLu3afn.js → appointment-timeline-0k4LxODn.js} +3 -3
- package/dist/_chunks/{appointment-tray-BhXOJpIJ.js → appointment-tray-DIxpgIXM.js} +2 -2
- package/dist/_chunks/arrow-down-left-DECv-dJt.js +15 -0
- package/dist/_chunks/{balance-badge-cell-CXHihM22.js → balance-badge-cell-L7bD0Nsh.js} +6 -6
- package/dist/_chunks/bill-line-table-WEIRDcv6.js +1563 -0
- package/dist/_chunks/{bmi-calculator-Ba4yoR31.js → bmi-calculator-BjUfXqcY.js} +2 -2
- package/dist/_chunks/{button-group-CUnNnt8a.js → button-group-BvU9vRnX.js} +2 -2
- package/dist/_chunks/{calculator-dialog-D4TyJwqy.js → calculator-dialog-BGX5XQCM.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BVzFi4hH.js → calendar-appointment-editor-dialog-DqZMb4yd.js} +16 -16
- package/dist/_chunks/{care-plan-card-BA3MfdfZ.js → care-plan-card-CfV8jiF0.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-CUtFZ813.js → care-plan-entry-card-Bt01kyTl.js} +3 -3
- package/dist/_chunks/{chart-DebrFZ6L.js → chart-BSx8cfMm.js} +2 -2
- package/dist/_chunks/circle-off-DuT9pVy2.js +16 -0
- package/dist/_chunks/combobox-BBCVQS-S.js +935 -0
- package/dist/_chunks/{compact-editor-fields-cP6yh7xv.js → compact-editor-fields-6sTWRLtf.js} +3 -3
- package/dist/_chunks/{contact-profile-card-DMXWBBkU.js → contact-profile-card-BRCHbQ3-.js} +2 -2
- package/dist/_chunks/{country-select-CUuGOAoZ.js → country-select-C2GdvRtS.js} +2 -2
- package/dist/_chunks/{cycle-calculator-C68V9rdH.js → cycle-calculator-Brd0PP4U.js} +2 -2
- package/dist/_chunks/{dashboard-grid-DrOkTtya.js → dashboard-grid-3aidD-IQ.js} +2 -2
- package/dist/_chunks/{toolbar-Bc3pjfG5.js → data-grid-ByhrYGVw.js} +3013 -3106
- package/dist/_chunks/{data-grid-tabs-CsLbIv0h.js → data-grid-tabs-D9Y4DeeH.js} +2 -2
- package/dist/_chunks/{data-table-DXaE2Ret.js → data-table-B47iw2CO.js} +101 -100
- package/dist/_chunks/{date-range-panel-CBFfkgmz.js → date-range-panel-B-DUtfw3.js} +7 -7
- package/dist/_chunks/default-tabs-BQcSqcNG.js +2250 -0
- package/dist/_chunks/dialog-CIUn5oLb.js +348 -0
- package/dist/_chunks/{document-preview-WvJKHJOP.js → document-preview-B_JGHsEW.js} +2 -2
- package/dist/_chunks/{dropdown-menu-CqxBthww.js → dropdown-menu-Dmbak7q6.js} +320 -248
- package/dist/_chunks/{due-date-calculator-C1UA5jpS.js → due-date-calculator-DzIQXEX5.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-CtlMhLai.js → editable-currency-cell-renderer-p-Q1UkZS.js} +2 -2
- package/dist/_chunks/export-files-BByoK9Cg.js +248 -0
- package/dist/_chunks/{face-scheme-DkoxiDCh.js → face-scheme-CEjJUnNe.js} +19 -18
- package/dist/_chunks/{fetal-weight-DmZzMRzB.js → fetal-weight-CJTlfh_k.js} +2 -2
- package/dist/_chunks/{file-manager-DFFExyym.js → file-manager-DEe51ZDe.js} +5 -5
- package/dist/_chunks/format-price-CIX0YJZn.js +179 -0
- package/dist/_chunks/{grid-context-AwsLJRhH.js → grid-context-jn9y8tNE.js} +4 -4
- package/dist/_chunks/{hcg-doubling-CC-dbKE8.js → hcg-doubling-BUZQkSYC.js} +2 -2
- package/dist/_chunks/{header-settings-Df9q1uHt.js → header-settings-DNgvO8fS.js} +2 -2
- package/dist/_chunks/{heatmap-eXdtmEoU.js → heatmap-tn1WxoMT.js} +3 -3
- package/dist/_chunks/{help-me-write-templates-CWxgjDZl.js → help-me-write-templates-C28E_rOt.js} +2 -2
- package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
- package/dist/_chunks/{icon-button-group-C9mPK-bX.js → icon-button-group-Ca2VkXy5.js} +2 -2
- package/dist/_chunks/{kit-extensions-CzG0RmhQ.js → kit-extensions-BFfLg7c-.js} +6 -6
- package/dist/_chunks/{link-cell-renderer-Ditt5mvT.js → link-cell-renderer-D-Io828l.js} +4 -4
- package/dist/_chunks/{marketplace-app-shell-CcEHJgDd.js → marketplace-app-shell-CBHNg8x-.js} +4 -4
- package/dist/_chunks/money-OE6_oDPH.js +138 -0
- package/dist/_chunks/{muscle-scheme-BkmDUTmk.js → muscle-scheme-7UsRsCHP.js} +2 -2
- package/dist/_chunks/{notes-panel-BVYG_MJE.js → notes-panel-DexbfrFo.js} +3 -3
- package/dist/_chunks/number-input-DUSvP7Dq.js +625 -0
- package/dist/_chunks/{optical-prescription-CvbN8yD2.js → optical-prescription-Da_r8pMr.js} +2 -2
- package/dist/_chunks/parts-CtcTW1PN.js +869 -0
- package/dist/_chunks/{patient-details-DlT-vpSe.js → patient-details-PJ0Y__7t.js} +2 -2
- package/dist/_chunks/{patient-field-row-B54uzvu-.js → patient-field-row-0QP8KCVp.js} +5 -5
- package/dist/_chunks/{patient-search-DDRDCjZi.js → patient-search-Bdx_Ob3y.js} +2 -2
- package/dist/_chunks/{patient-summary-card-Dy9-CzON.js → patient-summary-card-BOfXDP8a.js} +3 -3
- package/dist/_chunks/{payment-request-card-BmV2pLoM.js → payment-request-card-_04afZEx.js} +14 -13
- package/dist/_chunks/{practice-results-BlxfBx-D.js → practice-results-CrBjScXX.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-qZpw3zj8.js → pregnancy-dating-Bg_VUPwl.js} +2 -2
- package/dist/_chunks/{pregnancy-weight-gain-DQoOM8QV.js → pregnancy-weight-gain-B-eXFdmq.js} +2 -2
- package/dist/_chunks/{province-select-cVOlwEc5.js → province-select-CTM8A9SM.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-C1LGeX-G.js → radiograph-panel.agent-9jwXlOXB.js} +2 -2
- package/dist/_chunks/{reserved.agent-6p3Hm4oH.js → reserved.agent-C1zRHaya.js} +4 -4
- package/dist/_chunks/{rich-text-editor-efaMWbYz.js → rich-text-editor-r80Zw8ll.js} +12 -11
- package/dist/_chunks/row-actions-Df7TJbNR.js +213 -0
- package/dist/_chunks/{signature-request-BnTihryS.js → signature-request-CgvjLic3.js} +3 -3
- package/dist/_chunks/{tab-bar-C_pggqVr.js → tab-bar-DTn8pHqH.js} +2 -2
- package/dist/_chunks/{tabs-CXYjr_8O.js → tabs-CsmgkiG6.js} +2 -2
- package/dist/_chunks/{task-editor-CSa6vQ9r.js → task-editor-DgUjtqpX.js} +168 -178
- package/dist/_chunks/{tasks-panel-CVjY1d7Q.js → tasks-panel-B5Nsf10r.js} +2 -2
- package/dist/_chunks/{theme-toggle-CObX2Ffa.js → theme-toggle-DfvdEg_V.js} +3 -3
- package/dist/_chunks/{token-insert-menu-Dl3x2ekR.js → token-insert-menu-BdcmK5Um.js} +2 -2
- package/dist/_chunks/toolbar-DbUQBrq4.js +159 -0
- package/dist/_chunks/{tooth-scheme-C-ALCHaV.js → tooth-scheme-LTkT4EXd.js} +2 -2
- package/dist/_chunks/{transaction-chip-CohY6sTA.js → transaction-chip-CkYd-3ky.js} +47 -57
- package/dist/_chunks/{treatment-receipt-BydbojdD.js → treatment-receipt-1VnuinhY.js} +2 -2
- package/dist/_chunks/undo-2-EBxWjj1W.js +15 -0
- package/dist/_chunks/{unit-converter-D77vmlzN.js → unit-converter-YKlHyUC2.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-BMAiQYo6.js → use-appointment-details-read-_r7cjTtm.js} +7 -7
- package/dist/_chunks/{verify-identity-types-C85EXNzy.js → verify-identity-types-D_LdByCp.js} +2 -2
- package/dist/_chunks/{widget-picker-U4JsEhQE.js → widget-picker-DrxJjEkv.js} +2 -2
- package/dist/_chunks/{workflow-map-B4XkcET0.js → workflow-map-D-u8_YSr.js} +2 -2
- package/dist/_chunks/{workflow-status-9wb7iWUd.js → workflow-status-fykpTxfb.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-DNSe65yd.js → workflow-webhook-action-DM3W8XZE.js} +2 -2
- package/dist/agent-catalog.json +1080 -1
- package/dist/agent-i18n/en.json +50 -0
- package/dist/components/_shared/accessible-target.d.ts +12 -0
- package/dist/components/_shared/decimal.d.ts +171 -0
- package/dist/components/_shared/format-price.d.ts +54 -2
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/bill-line-table/bill-line-table.agent.d.ts +4 -0
- package/dist/components/bill-line-table/bill-line-table.columns.d.ts +47 -0
- package/dist/components/bill-line-table/bill-line-table.d.ts +4 -0
- package/dist/components/bill-line-table/bill-line-table.model.d.ts +173 -0
- package/dist/components/bill-line-table/bill-line-table.types.d.ts +443 -0
- package/dist/components/bill-line-table/bill-line-table.variants.d.ts +34 -0
- package/dist/components/bill-line-table/index.d.ts +6 -0
- package/dist/components/bill-line-table/index.js +23 -0
- package/dist/components/bill-table/bill-table.agent.d.ts +4 -0
- package/dist/components/bill-table/bill-table.d.ts +13 -0
- package/dist/components/bill-table/bill-table.variants.d.ts +55 -0
- package/dist/components/bill-table/cells.d.ts +89 -0
- package/dist/components/bill-table/columns.d.ts +21 -0
- package/dist/components/bill-table/default-tabs.d.ts +21 -0
- package/dist/components/bill-table/handle.d.ts +19 -0
- package/dist/components/bill-table/index.d.ts +7 -0
- package/dist/components/bill-table/index.js +19 -0
- package/dist/components/bill-table/model.d.ts +103 -0
- package/dist/components/bill-table/row-actions.d.ts +27 -0
- package/dist/components/bill-table/status-maps.d.ts +225 -0
- package/dist/components/bill-table/types.d.ts +542 -0
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts +59 -1
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-grid/body.d.ts +6 -0
- package/dist/components/data-grid/data-grid.variants.d.ts +1 -9
- package/dist/components/data-grid/editors.d.ts +7 -1
- package/dist/components/data-grid/index.js +9 -8
- package/dist/components/data-grid/selection.d.ts +10 -0
- package/dist/components/data-grid/types.d.ts +61 -11
- package/dist/components/data-grid-tabs/index.js +1 -1
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/dialog/focus-return.d.ts +12 -0
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -0
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/money/index.js +1 -1
- package/dist/components/money/money.d.ts +39 -6
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/number-input/index.d.ts +2 -2
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.d.ts +43 -2
- package/dist/components/number-input/use-locale-number.d.ts +67 -3
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/row-actions/index.d.ts +3 -0
- package/dist/components/row-actions/index.js +5 -0
- package/dist/components/row-actions/row-actions.d.ts +63 -0
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/smart-date/smart-date.d.ts +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/token-insert-menu/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/components/workflow-status/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/decimal/index.js +149 -0
- package/dist/host-compat.css +4 -1
- package/dist/i18n/locales/ar.d.ts +248 -0
- package/dist/i18n/locales/ar.js +249 -1
- package/dist/i18n/locales/de.d.ts +248 -0
- package/dist/i18n/locales/de.js +249 -1
- package/dist/i18n/locales/el.d.ts +248 -0
- package/dist/i18n/locales/el.js +249 -1
- package/dist/i18n/locales/en.d.ts +248 -0
- package/dist/i18n/locales/en.js +249 -1
- package/dist/i18n/locales/es.d.ts +248 -0
- package/dist/i18n/locales/es.js +249 -1
- package/dist/i18n/locales/fr.d.ts +248 -0
- package/dist/i18n/locales/fr.js +249 -1
- package/dist/i18n/locales/hi.d.ts +248 -0
- package/dist/i18n/locales/hi.js +249 -1
- package/dist/i18n/locales/it.d.ts +248 -0
- package/dist/i18n/locales/it.js +249 -1
- package/dist/i18n/locales/ja.d.ts +248 -0
- package/dist/i18n/locales/ja.js +249 -1
- package/dist/i18n/locales/nl.d.ts +248 -0
- package/dist/i18n/locales/nl.js +249 -1
- package/dist/i18n/locales/pl.d.ts +248 -0
- package/dist/i18n/locales/pl.js +249 -1
- package/dist/i18n/locales/pt.d.ts +248 -0
- package/dist/i18n/locales/pt.js +249 -1
- package/dist/i18n/locales/ro.d.ts +248 -0
- package/dist/i18n/locales/ro.js +249 -1
- package/dist/i18n/locales/ru.d.ts +248 -0
- package/dist/i18n/locales/ru.js +249 -1
- package/dist/i18n/locales/sq.d.ts +248 -0
- package/dist/i18n/locales/sq.js +249 -1
- package/dist/i18n/locales/sv.d.ts +248 -0
- package/dist/i18n/locales/sv.js +249 -1
- package/dist/i18n/locales/tr.d.ts +248 -0
- package/dist/i18n/locales/tr.js +249 -1
- package/dist/i18n/locales/zh.d.ts +248 -0
- package/dist/i18n/locales/zh.js +249 -1
- package/dist/index.js +1298 -1246
- package/dist/locales/ar.json +249 -1
- package/dist/locales/de.json +249 -1
- package/dist/locales/el.json +249 -1
- package/dist/locales/en.json +249 -1
- package/dist/locales/es.json +249 -1
- package/dist/locales/fr.json +249 -1
- package/dist/locales/hi.json +249 -1
- package/dist/locales/it.json +249 -1
- package/dist/locales/ja.json +249 -1
- package/dist/locales/nl.json +249 -1
- package/dist/locales/pl.json +249 -1
- package/dist/locales/pt.json +249 -1
- package/dist/locales/ro.json +249 -1
- package/dist/locales/ru.json +249 -1
- package/dist/locales/sq.json +249 -1
- package/dist/locales/sv.json +249 -1
- package/dist/locales/tr.json +249 -1
- package/dist/locales/zh.json +249 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/verify-identity/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +17 -1
- package/dist/_chunks/combobox-duuDRI1t.js +0 -688
- package/dist/_chunks/dialog-BTjSQjdY.js +0 -274
- package/dist/_chunks/format-price-BcFBa-WP.js +0 -52
- package/dist/_chunks/money-Tsczpjfz.js +0 -102
- package/dist/_chunks/number-input-CVwI1ltI.js +0 -423
- package/dist/_chunks/parts-Wz2LeGnH.js +0 -1113
- package/dist/_chunks/undo-2-CYNAzclj.js +0 -26
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as S, useEffect as V, useMemo as D, forwardRef as i, useContext as A, createContext as z } from "react";
|
|
3
|
-
import * as s from "@radix-ui/react-dialog";
|
|
4
|
-
import { c as b } from "./index-D2ZczOXr.js";
|
|
5
|
-
import { useTranslation as F } from "react-i18next";
|
|
6
|
-
import { u as I } from "./use-controllable-state-BiY4xTzM.js";
|
|
7
|
-
import { u as w } from "./registry-DvAUVLHh.js";
|
|
8
|
-
import { u as L } from "./non-modal-tab-exit-j3CPOuE3.js";
|
|
9
|
-
import { X as M } from "./x-B5YnXwCz.js";
|
|
10
|
-
const P = {
|
|
11
|
-
id: "dialog",
|
|
12
|
-
capabilities: ["open", "close", "dismiss"],
|
|
13
|
-
state: {
|
|
14
|
-
isOpen: {
|
|
15
|
-
type: "boolean",
|
|
16
|
-
descriptionKey: "ui.agent.dialog.state.isOpen",
|
|
17
|
-
description: "True when the dialog is currently open.",
|
|
18
|
-
read: (e) => e.getIsOpen()
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
actions: {
|
|
22
|
-
open: {
|
|
23
|
-
safety: "read",
|
|
24
|
-
idempotent: !0,
|
|
25
|
-
descriptionKey: "ui.agent.dialog.actions.open",
|
|
26
|
-
description: "Open the dialog.",
|
|
27
|
-
invoke: (e) => {
|
|
28
|
-
e.open();
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
close: {
|
|
32
|
-
safety: "read",
|
|
33
|
-
idempotent: !0,
|
|
34
|
-
descriptionKey: "ui.agent.dialog.actions.close",
|
|
35
|
-
description: "Close the dialog. Reversible by reopening.",
|
|
36
|
-
invoke: (e) => {
|
|
37
|
-
e.close();
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
dismiss: {
|
|
41
|
-
safety: "destructive",
|
|
42
|
-
idempotent: !0,
|
|
43
|
-
descriptionKey: "ui.agent.dialog.actions.dismiss",
|
|
44
|
-
description: "Dismiss the dialog. Loses any in-progress input that has not been committed.",
|
|
45
|
-
invoke: (e) => {
|
|
46
|
-
e.close();
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
domHooks: {
|
|
51
|
-
root: { attr: "data-component", value: "dialog" },
|
|
52
|
-
instanceId: {
|
|
53
|
-
attr: "data-component-id",
|
|
54
|
-
sourceProp: "id",
|
|
55
|
-
description: "Sourced from the id prop on Dialog.Root."
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}, K = [
|
|
59
|
-
"ds-dialog__backdrop",
|
|
60
|
-
"ds:backdrop-blur-sm",
|
|
61
|
-
"ds:data-[state=open]:animate-in ds:data-[state=open]:fade-in-0",
|
|
62
|
-
"ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out-0",
|
|
63
|
-
"ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
64
|
-
].join(" "), U = [
|
|
65
|
-
"ds:focus-visible:outline-none",
|
|
66
|
-
"ds:data-[state=open]:animate-in ds:data-[state=open]:fade-in-0 ds:data-[state=open]:zoom-in-95",
|
|
67
|
-
"ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out-0 ds:data-[state=closed]:zoom-out-95",
|
|
68
|
-
"ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
69
|
-
].join(" "), X = b(`ds-dialog ds-dialog__surface ${U}`, {
|
|
70
|
-
variants: {
|
|
71
|
-
size: {
|
|
72
|
-
sm: "ds-dialog__surface--sm",
|
|
73
|
-
md: "",
|
|
74
|
-
lg: "ds-dialog__surface--lg",
|
|
75
|
-
xl: "ds-dialog__surface--xl",
|
|
76
|
-
fullscreen: "ds-dialog__surface--fullscreen"
|
|
77
|
-
},
|
|
78
|
-
// `body` pins the header and footer and scrolls only `Dialog.Body` once
|
|
79
|
-
// the content passes the height cap. `surface` (default) scrolls the
|
|
80
|
-
// whole panel as one block.
|
|
81
|
-
scroll: {
|
|
82
|
-
surface: "",
|
|
83
|
-
body: "ds-dialog__surface--scroll-body"
|
|
84
|
-
},
|
|
85
|
-
// `flush` drops the surface padding for content that brings its own
|
|
86
|
-
// header, scroll box and footer (a docked panel thrown in a dialog).
|
|
87
|
-
flush: {
|
|
88
|
-
true: "ds-dialog__surface--flush",
|
|
89
|
-
false: ""
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
defaultVariants: { size: "md", scroll: "surface", flush: !1 }
|
|
93
|
-
}), h = z({ modal: !0 }), y = ({
|
|
94
|
-
children: e,
|
|
95
|
-
id: o,
|
|
96
|
-
open: a,
|
|
97
|
-
defaultOpen: l,
|
|
98
|
-
onOpenChange: g,
|
|
99
|
-
modal: r = !0,
|
|
100
|
-
...m
|
|
101
|
-
}) => {
|
|
102
|
-
const [c, d] = I({
|
|
103
|
-
value: a,
|
|
104
|
-
defaultValue: l ?? !1,
|
|
105
|
-
onChange: g
|
|
106
|
-
}), n = c ?? !1, p = S(n);
|
|
107
|
-
V(() => {
|
|
108
|
-
p.current = n;
|
|
109
|
-
}, [n]);
|
|
110
|
-
const u = D(
|
|
111
|
-
() => ({
|
|
112
|
-
getIsOpen: () => p.current,
|
|
113
|
-
open: () => d(!0),
|
|
114
|
-
close: () => d(!1)
|
|
115
|
-
}),
|
|
116
|
-
[d]
|
|
117
|
-
);
|
|
118
|
-
w(P, u, o);
|
|
119
|
-
const f = D(() => ({ id: o, modal: r }), [o, r]);
|
|
120
|
-
return /* @__PURE__ */ t(h.Provider, { value: f, children: /* @__PURE__ */ t(
|
|
121
|
-
s.Root,
|
|
122
|
-
{
|
|
123
|
-
open: n,
|
|
124
|
-
onOpenChange: d,
|
|
125
|
-
modal: r,
|
|
126
|
-
...m,
|
|
127
|
-
children: e
|
|
128
|
-
}
|
|
129
|
-
) });
|
|
130
|
-
};
|
|
131
|
-
y.displayName = "Dialog.Root";
|
|
132
|
-
const C = i(({ children: e, ...o }, a) => /* @__PURE__ */ t(s.Trigger, { ref: a, ...o, children: e }));
|
|
133
|
-
C.displayName = "Dialog.Trigger";
|
|
134
|
-
const N = i(({ children: e, ...o }, a) => /* @__PURE__ */ t(s.Close, { ref: a, ...o, children: e }));
|
|
135
|
-
N.displayName = "Dialog.Close";
|
|
136
|
-
const x = i(
|
|
137
|
-
({
|
|
138
|
-
size: e = "md",
|
|
139
|
-
variant: o = "default",
|
|
140
|
-
scroll: a = "surface",
|
|
141
|
-
flush: l = !1,
|
|
142
|
-
hideCloseButton: g,
|
|
143
|
-
className: r,
|
|
144
|
-
children: m,
|
|
145
|
-
onKeyDown: c,
|
|
146
|
-
...d
|
|
147
|
-
}, n) => {
|
|
148
|
-
const { t: p } = F("ui"), { id: u, modal: f } = A(h), B = L(!f), E = o === "alert" ? { role: "alertdialog" } : {}, H = g ?? o !== "default";
|
|
149
|
-
return /* @__PURE__ */ _(s.Portal, { children: [
|
|
150
|
-
/* @__PURE__ */ t(
|
|
151
|
-
s.Overlay,
|
|
152
|
-
{
|
|
153
|
-
"data-component": "dialog-overlay",
|
|
154
|
-
className: K
|
|
155
|
-
}
|
|
156
|
-
),
|
|
157
|
-
/* @__PURE__ */ _(
|
|
158
|
-
s.Content,
|
|
159
|
-
{
|
|
160
|
-
ref: n,
|
|
161
|
-
...E,
|
|
162
|
-
"data-component": "dialog",
|
|
163
|
-
"data-component-id": u,
|
|
164
|
-
className: X({ size: e, scroll: a, flush: l, className: r }),
|
|
165
|
-
...d,
|
|
166
|
-
onKeyDown: (v) => {
|
|
167
|
-
c == null || c(v), B(v);
|
|
168
|
-
},
|
|
169
|
-
children: [
|
|
170
|
-
m,
|
|
171
|
-
!H && // The close is a plain button carrying the `ds-dialog__close`
|
|
172
|
-
// contract class — the SAME class a vanilla host renders. The CSS
|
|
173
|
-
// (src/styles.css) owns its position, sizing, glyph size, hover
|
|
174
|
-
// wash, and focus ring from tokens, so the React and non-React
|
|
175
|
-
// close buttons are identical and can't drift.
|
|
176
|
-
/* @__PURE__ */ t(
|
|
177
|
-
s.Close,
|
|
178
|
-
{
|
|
179
|
-
type: "button",
|
|
180
|
-
className: "ds-dialog__close",
|
|
181
|
-
"aria-label": p("common.close", "Close"),
|
|
182
|
-
children: /* @__PURE__ */ t(M, { "aria-hidden": "true" })
|
|
183
|
-
}
|
|
184
|
-
)
|
|
185
|
-
]
|
|
186
|
-
}
|
|
187
|
-
)
|
|
188
|
-
] });
|
|
189
|
-
}
|
|
190
|
-
);
|
|
191
|
-
x.displayName = "Dialog.Content";
|
|
192
|
-
const R = i(
|
|
193
|
-
({ className: e, ...o }, a) => /* @__PURE__ */ t(
|
|
194
|
-
"div",
|
|
195
|
-
{
|
|
196
|
-
ref: a,
|
|
197
|
-
className: ["ds-dialog__header", e].filter(Boolean).join(" "),
|
|
198
|
-
...o
|
|
199
|
-
}
|
|
200
|
-
)
|
|
201
|
-
);
|
|
202
|
-
R.displayName = "Dialog.Header";
|
|
203
|
-
const O = i(
|
|
204
|
-
({ className: e, ...o }, a) => /* @__PURE__ */ t(
|
|
205
|
-
"div",
|
|
206
|
-
{
|
|
207
|
-
ref: a,
|
|
208
|
-
className: ["ds-dialog__body", e].filter(Boolean).join(" "),
|
|
209
|
-
...o
|
|
210
|
-
}
|
|
211
|
-
)
|
|
212
|
-
);
|
|
213
|
-
O.displayName = "Dialog.Body";
|
|
214
|
-
const T = i(({ className: e, ...o }, a) => /* @__PURE__ */ t(
|
|
215
|
-
s.Title,
|
|
216
|
-
{
|
|
217
|
-
ref: a,
|
|
218
|
-
className: ["ds-dialog__title type-title-card ds:break-words", e].filter(Boolean).join(" "),
|
|
219
|
-
...o
|
|
220
|
-
}
|
|
221
|
-
));
|
|
222
|
-
T.displayName = "Dialog.Title";
|
|
223
|
-
const j = i(({ className: e, ...o }, a) => /* @__PURE__ */ t(
|
|
224
|
-
s.Description,
|
|
225
|
-
{
|
|
226
|
-
ref: a,
|
|
227
|
-
className: ["type-body-sm ds:text-[var(--muted-foreground)]", e].filter(Boolean).join(" "),
|
|
228
|
-
...o
|
|
229
|
-
}
|
|
230
|
-
));
|
|
231
|
-
j.displayName = "Dialog.Description";
|
|
232
|
-
const Y = b(
|
|
233
|
-
[
|
|
234
|
-
"ds:@container/dialog-footer",
|
|
235
|
-
"ds:flex ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-sm)]",
|
|
236
|
-
"ds:@max-[384px]/dialog-footer:[&>*]:w-full",
|
|
237
|
-
"ds:mt-[var(--spacing-md)]"
|
|
238
|
-
].join(" "),
|
|
239
|
-
{
|
|
240
|
-
variants: {
|
|
241
|
-
divider: {
|
|
242
|
-
true: "ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-md)]",
|
|
243
|
-
false: ""
|
|
244
|
-
}
|
|
245
|
-
},
|
|
246
|
-
defaultVariants: { divider: !1 }
|
|
247
|
-
}
|
|
248
|
-
), k = i(
|
|
249
|
-
({ className: e, divider: o = !1, ...a }, l) => /* @__PURE__ */ t(
|
|
250
|
-
"div",
|
|
251
|
-
{
|
|
252
|
-
ref: l,
|
|
253
|
-
className: Y({ divider: o, className: e }),
|
|
254
|
-
...a
|
|
255
|
-
}
|
|
256
|
-
)
|
|
257
|
-
);
|
|
258
|
-
k.displayName = "Dialog.Footer";
|
|
259
|
-
const oe = Object.assign(y, {
|
|
260
|
-
Root: y,
|
|
261
|
-
Trigger: C,
|
|
262
|
-
Content: x,
|
|
263
|
-
Header: R,
|
|
264
|
-
Title: T,
|
|
265
|
-
Description: j,
|
|
266
|
-
Body: O,
|
|
267
|
-
Footer: k,
|
|
268
|
-
Close: N
|
|
269
|
-
});
|
|
270
|
-
export {
|
|
271
|
-
oe as D,
|
|
272
|
-
P as d
|
|
273
|
-
};
|
|
274
|
-
//# sourceMappingURL=dialog-BTjSQjdY.js.map
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { n as s } from "./intl-locale-FWh-Y5_3.js";
|
|
2
|
-
const n = /* @__PURE__ */ new Set([
|
|
3
|
-
"BIF",
|
|
4
|
-
"CLP",
|
|
5
|
-
"DJF",
|
|
6
|
-
"GNF",
|
|
7
|
-
"IDR",
|
|
8
|
-
"JPY",
|
|
9
|
-
"KMF",
|
|
10
|
-
"KRW",
|
|
11
|
-
"MGA",
|
|
12
|
-
"PYG",
|
|
13
|
-
"RWF",
|
|
14
|
-
"UGX",
|
|
15
|
-
"VND",
|
|
16
|
-
"VUV",
|
|
17
|
-
"XAF",
|
|
18
|
-
"XOF",
|
|
19
|
-
"XPF"
|
|
20
|
-
]);
|
|
21
|
-
function u(r, o, a) {
|
|
22
|
-
const t = o.toUpperCase(), e = n.has(t) ? r : r / 100;
|
|
23
|
-
try {
|
|
24
|
-
return new Intl.NumberFormat(s(a), {
|
|
25
|
-
style: "currency",
|
|
26
|
-
currency: t
|
|
27
|
-
}).format(e);
|
|
28
|
-
} catch {
|
|
29
|
-
return `${n.has(t) ? String(e) : e.toFixed(2)} ${t}`;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
function F(r, o, a, t) {
|
|
33
|
-
return r === 0 ? t : u(r, o, a);
|
|
34
|
-
}
|
|
35
|
-
function f(r, o, a, t = {}) {
|
|
36
|
-
const e = o.toUpperCase(), c = n.has(e) ? r : r / 100;
|
|
37
|
-
try {
|
|
38
|
-
return new Intl.NumberFormat(s(a), {
|
|
39
|
-
style: "currency",
|
|
40
|
-
currency: e,
|
|
41
|
-
...t
|
|
42
|
-
}).formatToParts(c);
|
|
43
|
-
} catch {
|
|
44
|
-
return null;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
export {
|
|
48
|
-
u as a,
|
|
49
|
-
F as b,
|
|
50
|
-
f
|
|
51
|
-
};
|
|
52
|
-
//# sourceMappingURL=format-price-BcFBa-WP.js.map
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { jsxs as V, jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as z, useMemo as N } from "react";
|
|
3
|
-
import { c as Z } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as $ } from "react-i18next";
|
|
5
|
-
import { V as O } from "./visually-hidden-BHxEUGyT.js";
|
|
6
|
-
import { f as R, a as T } from "./format-price-BcFBa-WP.js";
|
|
7
|
-
const U = Z(
|
|
8
|
-
[
|
|
9
|
-
"ds:inline-flex ds:items-baseline ds:whitespace-nowrap",
|
|
10
|
-
// Lining, fixed-width figures: without these a column of amounts
|
|
11
|
-
// wanders because glyph widths differ between digits.
|
|
12
|
-
"ds:tabular-nums"
|
|
13
|
-
].join(" "),
|
|
14
|
-
{
|
|
15
|
-
variants: {
|
|
16
|
-
size: {
|
|
17
|
-
sm: "type-body-sm",
|
|
18
|
-
md: "type-body",
|
|
19
|
-
lg: "type-title-item"
|
|
20
|
-
},
|
|
21
|
-
tone: {
|
|
22
|
-
default: "ds:text-[color:var(--foreground)]",
|
|
23
|
-
muted: "ds:text-[color:var(--muted-foreground)]",
|
|
24
|
-
positive: "ds:text-[color:var(--success-foreground)]",
|
|
25
|
-
negative: "ds:text-[color:var(--destructive)]"
|
|
26
|
-
},
|
|
27
|
-
strikethrough: {
|
|
28
|
-
true: "ds:line-through ds:decoration-from-font",
|
|
29
|
-
false: ""
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
defaultVariants: { size: "md", tone: "default", strikethrough: !1 }
|
|
33
|
-
}
|
|
34
|
-
), C = z(
|
|
35
|
-
({
|
|
36
|
-
value: o,
|
|
37
|
-
currency: s = "EUR",
|
|
38
|
-
locale: v,
|
|
39
|
-
size: x,
|
|
40
|
-
tone: l = "default",
|
|
41
|
-
decimals: a = "full",
|
|
42
|
-
signDisplay: m = "auto",
|
|
43
|
-
strikethrough: y,
|
|
44
|
-
className: g,
|
|
45
|
-
...h
|
|
46
|
-
}, j) => {
|
|
47
|
-
const { i18n: b } = $("ui"), n = v ?? b.language, { nodes: k, full: w } = N(() => {
|
|
48
|
-
const e = R(
|
|
49
|
-
o,
|
|
50
|
-
s,
|
|
51
|
-
n,
|
|
52
|
-
m === "always" ? { signDisplay: "exceptZero" } : {}
|
|
53
|
-
), f = T(o, s, n);
|
|
54
|
-
if (!e)
|
|
55
|
-
return { nodes: [{ text: f, muted: !1 }], full: f };
|
|
56
|
-
const i = e.map((t) => t.value).join(""), P = e.filter((t) => t.type === "fraction").every((t) => /^0+$/.test(t.value)), u = (t) => t === "decimal" || t === "fraction";
|
|
57
|
-
if (a === "hideWhenZero" && P) {
|
|
58
|
-
const c = e.filter((d) => !u(d.type)).map((d) => d.value).join("").trim();
|
|
59
|
-
return { nodes: [{ text: c, muted: !1 }], full: c };
|
|
60
|
-
}
|
|
61
|
-
return a === "muted" ? {
|
|
62
|
-
nodes: e.map((t) => ({
|
|
63
|
-
text: t.value,
|
|
64
|
-
muted: u(t.type)
|
|
65
|
-
})),
|
|
66
|
-
full: i
|
|
67
|
-
} : { nodes: [{ text: i, muted: !1 }], full: i };
|
|
68
|
-
}, [o, s, n, a, m]), M = l === "auto" ? o < 0 ? "negative" : "default" : l;
|
|
69
|
-
return /* @__PURE__ */ V(
|
|
70
|
-
"span",
|
|
71
|
-
{
|
|
72
|
-
ref: j,
|
|
73
|
-
"data-component": "money",
|
|
74
|
-
"data-currency": s.toUpperCase(),
|
|
75
|
-
className: U({
|
|
76
|
-
size: x,
|
|
77
|
-
tone: M,
|
|
78
|
-
strikethrough: y,
|
|
79
|
-
className: g
|
|
80
|
-
}),
|
|
81
|
-
...h,
|
|
82
|
-
children: [
|
|
83
|
-
k.map((r, e) => /* @__PURE__ */ p(
|
|
84
|
-
"span",
|
|
85
|
-
{
|
|
86
|
-
"aria-hidden": "true",
|
|
87
|
-
className: r.muted ? "ds:opacity-70 ds:[font-size:0.85em]" : void 0,
|
|
88
|
-
children: r.text
|
|
89
|
-
},
|
|
90
|
-
`${e}-${r.text}`
|
|
91
|
-
)),
|
|
92
|
-
/* @__PURE__ */ p(O, { children: w })
|
|
93
|
-
]
|
|
94
|
-
}
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
);
|
|
98
|
-
C.displayName = "Money";
|
|
99
|
-
export {
|
|
100
|
-
C as M
|
|
101
|
-
};
|
|
102
|
-
//# sourceMappingURL=money-Tsczpjfz.js.map
|