@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,17 +1,17 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import * as
|
|
4
|
-
import { c as
|
|
1
|
+
import { jsxs as N, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as b, useId as re, useContext as G, useRef as S, useEffect as K, useMemo as O, useLayoutEffect as ne, createContext as V } from "react";
|
|
3
|
+
import * as d from "@radix-ui/react-dropdown-menu";
|
|
4
|
+
import { c as j } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { S as oe } from "./separator-Bdc9bqoJ.js";
|
|
6
|
-
import { K } from "./kbd-Bx7eQv9f.js";
|
|
7
|
-
import { b as
|
|
8
|
-
import { P as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { C as
|
|
12
|
-
import { C as
|
|
13
|
-
import { a as
|
|
14
|
-
const
|
|
6
|
+
import { K as A } from "./kbd-Bx7eQv9f.js";
|
|
7
|
+
import { b as E } from "./menu-row-BAr8bx1I.js";
|
|
8
|
+
import { P as L } from "./popup-region-qz_5_A0V.js";
|
|
9
|
+
import { u as de } from "./use-controllable-state-BiY4xTzM.js";
|
|
10
|
+
import { u as ie } from "./registry-DvAUVLHh.js";
|
|
11
|
+
import { C as ce } from "./chevron-right-I9AeSxH2.js";
|
|
12
|
+
import { C as le } from "./check-DrFSN__t.js";
|
|
13
|
+
import { a as ue } from "./use-direction-Dp8h70PP.js";
|
|
14
|
+
const pe = {
|
|
15
15
|
id: "dropdown-menu",
|
|
16
16
|
capabilities: ["open", "close", "set_value"],
|
|
17
17
|
state: {
|
|
@@ -122,7 +122,7 @@ const ue = {
|
|
|
122
122
|
description: "On a ChoiceSub or SwitchItem row given a name: the setting that set_value / set_checked address."
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
},
|
|
125
|
+
}, $ = j(
|
|
126
126
|
[
|
|
127
127
|
"ds:z-[var(--z-dropdown)]",
|
|
128
128
|
// Roomier panel: wider floor, larger radius, deeper float and a
|
|
@@ -152,17 +152,20 @@ const ue = {
|
|
|
152
152
|
"ds:motion-reduce:animate-none",
|
|
153
153
|
"ds:forced-colors:border-[CanvasText]"
|
|
154
154
|
].join(" ")
|
|
155
|
-
),
|
|
155
|
+
), M = j(
|
|
156
156
|
[
|
|
157
157
|
"ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
158
158
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
159
159
|
"ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
|
|
160
160
|
"ds:rounded-[var(--radius-md)]",
|
|
161
161
|
"ds:min-h-[var(--min-target-size)]",
|
|
162
|
-
|
|
162
|
+
// The ink comes from the variants below, one colour class per state:
|
|
163
|
+
// two text-colour utilities on one element resolve by stylesheet order,
|
|
164
|
+
// not by class order, and --foreground would win over --destructive.
|
|
165
|
+
"ds:text-[length:var(--font-size-sm)]",
|
|
163
166
|
"ds:cursor-pointer ds:select-none ds:outline-none",
|
|
164
167
|
// Radix highlights on hover and on keyboard focus alike.
|
|
165
|
-
|
|
168
|
+
E.highlighted,
|
|
166
169
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
167
170
|
"ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)]",
|
|
168
171
|
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
@@ -170,8 +173,34 @@ const ue = {
|
|
|
170
173
|
// Disabled
|
|
171
174
|
"ds:data-[disabled]:opacity-50 ds:data-[disabled]:cursor-not-allowed",
|
|
172
175
|
"ds:data-[disabled]:pointer-events-none"
|
|
173
|
-
].join(" ")
|
|
174
|
-
|
|
176
|
+
].join(" "),
|
|
177
|
+
{
|
|
178
|
+
variants: {
|
|
179
|
+
/* Item only. A lit row repoints --destructive to the accent ink
|
|
180
|
+
(MENU_ROW_HIGHLIGHT), so the label keeps its contrast there. */
|
|
181
|
+
variant: { default: "", destructive: "" },
|
|
182
|
+
/* An Item that is disabled with a reason: it keeps focus, so it is
|
|
183
|
+
muted rather than faded, and the reason stays readable. */
|
|
184
|
+
unavailable: {
|
|
185
|
+
true: "ds:text-[color:var(--muted-foreground)] ds:cursor-not-allowed",
|
|
186
|
+
false: ""
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
compoundVariants: [
|
|
190
|
+
{
|
|
191
|
+
variant: "default",
|
|
192
|
+
unavailable: !1,
|
|
193
|
+
className: "ds:text-[color:var(--foreground)]"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
variant: "destructive",
|
|
197
|
+
unavailable: !1,
|
|
198
|
+
className: "ds:text-[color:var(--destructive)]"
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
defaultVariants: { variant: "default", unavailable: !1 }
|
|
202
|
+
}
|
|
203
|
+
), me = j(
|
|
175
204
|
[
|
|
176
205
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
177
206
|
"ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-2xs)]",
|
|
@@ -183,189 +212,232 @@ const ue = {
|
|
|
183
212
|
"ds:text-[color:var(--muted-foreground)]",
|
|
184
213
|
"ds:select-none"
|
|
185
214
|
].join(" ")
|
|
186
|
-
),
|
|
215
|
+
), q = "ds:inline-flex ds:items-center ds:justify-center ds:size-4 ds:shrink-0", F = V(
|
|
187
216
|
void 0
|
|
188
|
-
),
|
|
217
|
+
), he = () => new Promise((e) => {
|
|
189
218
|
typeof requestAnimationFrame == "function" ? requestAnimationFrame(() => e()) : setTimeout(e, 16);
|
|
190
|
-
}),
|
|
219
|
+
}), H = V(void 0), B = ({
|
|
191
220
|
dir: e,
|
|
192
221
|
id: t,
|
|
193
|
-
open:
|
|
194
|
-
defaultOpen:
|
|
195
|
-
onOpenChange:
|
|
196
|
-
...
|
|
222
|
+
open: a,
|
|
223
|
+
defaultOpen: r,
|
|
224
|
+
onOpenChange: l,
|
|
225
|
+
...u
|
|
197
226
|
}) => {
|
|
198
|
-
const
|
|
199
|
-
value:
|
|
200
|
-
defaultValue:
|
|
201
|
-
onChange:
|
|
202
|
-
}),
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}, [
|
|
206
|
-
const
|
|
207
|
-
() => (
|
|
208
|
-
|
|
227
|
+
const g = ue(), [f, w] = de({
|
|
228
|
+
value: a,
|
|
229
|
+
defaultValue: r ?? !1,
|
|
230
|
+
onChange: l
|
|
231
|
+
}), c = f ?? !1, o = S(c);
|
|
232
|
+
K(() => {
|
|
233
|
+
o.current = c;
|
|
234
|
+
}, [c]);
|
|
235
|
+
const m = S(/* @__PURE__ */ new Map()), C = S(0), I = O(
|
|
236
|
+
() => (h, x) => (m.current.set(h, x), () => {
|
|
237
|
+
m.current.get(h) === x && m.current.delete(h);
|
|
209
238
|
}),
|
|
210
239
|
[]
|
|
211
|
-
),
|
|
212
|
-
const
|
|
213
|
-
|
|
214
|
-
},
|
|
215
|
-
const
|
|
216
|
-
|
|
217
|
-
const
|
|
240
|
+
), T = O(() => {
|
|
241
|
+
const h = (i) => {
|
|
242
|
+
o.current = i, w(i);
|
|
243
|
+
}, x = async (i, n, p) => {
|
|
244
|
+
const y = !o.current;
|
|
245
|
+
y && h(!0);
|
|
246
|
+
const v = C.current;
|
|
218
247
|
try {
|
|
219
|
-
let
|
|
220
|
-
for (let
|
|
221
|
-
await
|
|
222
|
-
if (!
|
|
223
|
-
throw new Error(`No ${
|
|
224
|
-
|
|
248
|
+
let k = m.current.get(i);
|
|
249
|
+
for (let R = 0; !k && R < 30; R += 1)
|
|
250
|
+
await he(), k = m.current.get(i);
|
|
251
|
+
if (!k || k.kind !== n)
|
|
252
|
+
throw new Error(`No ${n} setting named "${i}" in this menu`);
|
|
253
|
+
p(k);
|
|
225
254
|
} finally {
|
|
226
|
-
|
|
255
|
+
y && C.current === v && h(!1);
|
|
227
256
|
}
|
|
228
257
|
};
|
|
229
258
|
return {
|
|
230
|
-
getIsOpen: () =>
|
|
259
|
+
getIsOpen: () => o.current,
|
|
231
260
|
open: () => {
|
|
232
|
-
|
|
261
|
+
C.current += 1, h(!0);
|
|
233
262
|
},
|
|
234
263
|
close: () => {
|
|
235
|
-
|
|
264
|
+
C.current += 1, h(!1);
|
|
236
265
|
},
|
|
237
|
-
getSettings: () => [...
|
|
238
|
-
if (
|
|
239
|
-
const { value:
|
|
266
|
+
getSettings: () => [...m.current].map(([i, n]) => {
|
|
267
|
+
if (n.kind === "choice") {
|
|
268
|
+
const { value: v, options: k, disabled: R } = n.read();
|
|
240
269
|
return {
|
|
241
270
|
setting: i,
|
|
242
271
|
kind: "choice",
|
|
243
|
-
value:
|
|
244
|
-
options:
|
|
245
|
-
disabled:
|
|
272
|
+
value: v,
|
|
273
|
+
options: k.map((D) => D.value),
|
|
274
|
+
disabled: R
|
|
246
275
|
};
|
|
247
276
|
}
|
|
248
|
-
const { checked:
|
|
249
|
-
return { setting: i, kind: "switch", checked:
|
|
277
|
+
const { checked: p, disabled: y } = n.read();
|
|
278
|
+
return { setting: i, kind: "switch", checked: p, disabled: y };
|
|
250
279
|
}),
|
|
251
|
-
setValue: (i,
|
|
252
|
-
const { options:
|
|
253
|
-
if (
|
|
280
|
+
setValue: (i, n) => x(i, "choice", (p) => {
|
|
281
|
+
const { options: y, disabled: v, closeOnSelect: k } = p.read(), R = y.find((D) => D.value === n);
|
|
282
|
+
if (v || !R || R.disabled)
|
|
254
283
|
throw new Error(
|
|
255
|
-
`"${
|
|
284
|
+
`"${n}" is not an option that "${i}" can take now`
|
|
256
285
|
);
|
|
257
|
-
|
|
286
|
+
p.pick(n), k && h(!1);
|
|
258
287
|
}),
|
|
259
|
-
setChecked: (i,
|
|
260
|
-
if (
|
|
288
|
+
setChecked: (i, n) => x(i, "switch", (p) => {
|
|
289
|
+
if (p.read().disabled)
|
|
261
290
|
throw new Error(`"${i}" is disabled`);
|
|
262
|
-
|
|
291
|
+
p.pick(n);
|
|
263
292
|
})
|
|
264
293
|
};
|
|
265
|
-
}, [
|
|
266
|
-
return
|
|
267
|
-
|
|
294
|
+
}, [w]);
|
|
295
|
+
return ie(pe, T, t), /* @__PURE__ */ s(H.Provider, { value: t, children: /* @__PURE__ */ s(F.Provider, { value: I, children: /* @__PURE__ */ s(
|
|
296
|
+
d.Root,
|
|
268
297
|
{
|
|
269
|
-
dir: e ??
|
|
270
|
-
open:
|
|
271
|
-
onOpenChange:
|
|
272
|
-
...
|
|
298
|
+
dir: e ?? g,
|
|
299
|
+
open: c,
|
|
300
|
+
onOpenChange: w,
|
|
301
|
+
...u
|
|
273
302
|
}
|
|
274
303
|
) }) });
|
|
275
304
|
};
|
|
276
|
-
|
|
277
|
-
const
|
|
278
|
-
const
|
|
279
|
-
return /* @__PURE__ */ s(
|
|
280
|
-
|
|
305
|
+
B.displayName = "DropdownMenu.Root";
|
|
306
|
+
const fe = d.Trigger, ge = d.Portal, ve = d.Group, be = d.RadioGroup, U = b(({ className: e, sideOffset: t = 8, ...a }, r) => {
|
|
307
|
+
const l = G(H);
|
|
308
|
+
return /* @__PURE__ */ s(d.Portal, { children: /* @__PURE__ */ s(L, { popupRef: r, children: (u) => /* @__PURE__ */ s(
|
|
309
|
+
d.Content,
|
|
281
310
|
{
|
|
282
|
-
ref:
|
|
311
|
+
ref: u,
|
|
283
312
|
sideOffset: t,
|
|
284
|
-
className:
|
|
313
|
+
className: $({ className: e }),
|
|
285
314
|
"data-component": "dropdown-menu",
|
|
286
|
-
"data-component-id":
|
|
287
|
-
...
|
|
315
|
+
"data-component-id": l,
|
|
316
|
+
...a
|
|
288
317
|
}
|
|
289
318
|
) }) });
|
|
290
319
|
});
|
|
291
|
-
|
|
292
|
-
const
|
|
320
|
+
U.displayName = "DropdownMenu.Content";
|
|
321
|
+
const W = b(
|
|
293
322
|
({
|
|
294
323
|
className: e,
|
|
295
324
|
startIcon: t,
|
|
296
|
-
endIcon:
|
|
297
|
-
description:
|
|
298
|
-
shortcut:
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
{
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
children: r
|
|
325
|
+
endIcon: a,
|
|
326
|
+
description: r,
|
|
327
|
+
shortcut: l,
|
|
328
|
+
variant: u,
|
|
329
|
+
disabled: g,
|
|
330
|
+
disabledReason: f,
|
|
331
|
+
textValue: w,
|
|
332
|
+
onSelect: c,
|
|
333
|
+
onClick: o,
|
|
334
|
+
children: m,
|
|
335
|
+
"aria-describedby": C,
|
|
336
|
+
...I
|
|
337
|
+
}, T) => {
|
|
338
|
+
const h = re(), x = `${h}-reason`, i = `${h}-label`, n = !!(g && f), p = n ? f : r, y = n && !I["aria-label"] && !I["aria-labelledby"];
|
|
339
|
+
return /* @__PURE__ */ N(
|
|
340
|
+
d.Item,
|
|
341
|
+
{
|
|
342
|
+
ref: T,
|
|
343
|
+
className: M({ variant: u, unavailable: n, className: e }),
|
|
344
|
+
disabled: n ? !1 : g,
|
|
345
|
+
textValue: w ?? (n && typeof m == "string" ? m : void 0),
|
|
346
|
+
"aria-describedby": n ? [C, x].filter(Boolean).join(" ") : C,
|
|
347
|
+
onClick: (v) => {
|
|
348
|
+
n || o == null || o(v);
|
|
349
|
+
},
|
|
350
|
+
onSelect: (v) => {
|
|
351
|
+
if (n) {
|
|
352
|
+
v.preventDefault();
|
|
353
|
+
return;
|
|
326
354
|
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
355
|
+
c == null || c(v);
|
|
356
|
+
},
|
|
357
|
+
...I,
|
|
358
|
+
...n ? { "aria-disabled": !0, "data-unavailable": "" } : void 0,
|
|
359
|
+
...y ? { "aria-labelledby": i } : void 0,
|
|
360
|
+
children: [
|
|
361
|
+
t ? /* @__PURE__ */ s(
|
|
362
|
+
"span",
|
|
363
|
+
{
|
|
364
|
+
"aria-hidden": "true",
|
|
365
|
+
className: "ds:inline-flex ds:size-4 ds:shrink-0 ds:items-center ds:justify-center",
|
|
366
|
+
children: t
|
|
367
|
+
}
|
|
368
|
+
) : null,
|
|
369
|
+
/* @__PURE__ */ N("span", { className: "ds:flex-1 ds:flex ds:flex-col ds:min-w-0", children: [
|
|
370
|
+
/* @__PURE__ */ s(
|
|
371
|
+
"span",
|
|
372
|
+
{
|
|
373
|
+
id: y ? i : void 0,
|
|
374
|
+
className: "ds:truncate",
|
|
375
|
+
children: m
|
|
376
|
+
}
|
|
377
|
+
),
|
|
378
|
+
n ? (
|
|
379
|
+
/* Wraps inside the width the labels set (w-0 + min-w-full),
|
|
380
|
+
rather than widening the menu or being cut off. */
|
|
381
|
+
/* @__PURE__ */ s(
|
|
382
|
+
"span",
|
|
383
|
+
{
|
|
384
|
+
id: x,
|
|
385
|
+
className: "type-meta ds:text-[color:var(--muted-foreground)] ds:w-0 ds:min-w-full ds:whitespace-normal ds:[overflow-wrap:anywhere]",
|
|
386
|
+
children: p
|
|
387
|
+
}
|
|
388
|
+
)
|
|
389
|
+
) : p ? /* @__PURE__ */ s("span", { className: "type-meta ds:text-[color:var(--muted-foreground)] ds:truncate", children: p }) : null
|
|
390
|
+
] }),
|
|
391
|
+
l ? /* @__PURE__ */ s("span", { className: "ds:ms-auto", children: /* @__PURE__ */ s(A, { keys: l, size: "sm" }) }) : a ? /* @__PURE__ */ s(
|
|
392
|
+
"span",
|
|
393
|
+
{
|
|
394
|
+
"aria-hidden": "true",
|
|
395
|
+
className: "ds:ms-auto ds:inline-flex ds:size-4 ds:shrink-0 ds:items-center ds:justify-center",
|
|
396
|
+
children: a
|
|
397
|
+
}
|
|
398
|
+
) : null
|
|
399
|
+
]
|
|
400
|
+
}
|
|
401
|
+
);
|
|
402
|
+
}
|
|
331
403
|
);
|
|
332
|
-
|
|
333
|
-
const
|
|
334
|
-
|
|
404
|
+
W.displayName = "DropdownMenu.Item";
|
|
405
|
+
const J = b(({ className: e, children: t, ...a }, r) => /* @__PURE__ */ N(
|
|
406
|
+
d.CheckboxItem,
|
|
335
407
|
{
|
|
336
|
-
ref:
|
|
337
|
-
className:
|
|
338
|
-
...
|
|
408
|
+
ref: r,
|
|
409
|
+
className: M({ className: e }),
|
|
410
|
+
...a,
|
|
339
411
|
children: [
|
|
340
|
-
/* @__PURE__ */ s("span", { className:
|
|
412
|
+
/* @__PURE__ */ s("span", { className: q, children: /* @__PURE__ */ s(d.ItemIndicator, { children: /* @__PURE__ */ s(le, { "aria-hidden": !0, className: "ds:size-4" }) }) }),
|
|
341
413
|
/* @__PURE__ */ s("span", { className: "ds:flex-1 ds:truncate", children: t })
|
|
342
414
|
]
|
|
343
415
|
}
|
|
344
416
|
));
|
|
345
|
-
|
|
346
|
-
function
|
|
347
|
-
const
|
|
417
|
+
J.displayName = "DropdownMenu.CheckboxItem";
|
|
418
|
+
function Q(e, t) {
|
|
419
|
+
const a = G(F), r = S(t);
|
|
348
420
|
ne(() => {
|
|
349
|
-
|
|
350
|
-
}),
|
|
351
|
-
if (!e || !
|
|
352
|
-
const
|
|
421
|
+
r.current = t;
|
|
422
|
+
}), K(() => {
|
|
423
|
+
if (!e || !a) return;
|
|
424
|
+
const l = r.current.kind === "choice" ? {
|
|
353
425
|
kind: "choice",
|
|
354
|
-
read: () =>
|
|
355
|
-
pick: (
|
|
356
|
-
|
|
426
|
+
read: () => r.current.read(),
|
|
427
|
+
pick: (u) => r.current.pick(
|
|
428
|
+
u
|
|
357
429
|
)
|
|
358
430
|
} : {
|
|
359
431
|
kind: "switch",
|
|
360
|
-
read: () =>
|
|
361
|
-
pick: (
|
|
362
|
-
|
|
432
|
+
read: () => r.current.read(),
|
|
433
|
+
pick: (u) => r.current.pick(
|
|
434
|
+
u
|
|
363
435
|
)
|
|
364
436
|
};
|
|
365
|
-
return
|
|
366
|
-
}, [e,
|
|
437
|
+
return a(e, l);
|
|
438
|
+
}, [e, a]);
|
|
367
439
|
}
|
|
368
|
-
const
|
|
440
|
+
const we = [
|
|
369
441
|
"ds:ms-auto ds:inline-flex ds:items-center ds:shrink-0",
|
|
370
442
|
"ds:h-4 ds:w-7 ds:p-[2px]",
|
|
371
443
|
"ds:rounded-[var(--radius-full)]",
|
|
@@ -380,7 +452,7 @@ const ve = [
|
|
|
380
452
|
// HCM strips fills — paint the checked track with the system
|
|
381
453
|
// selection colour so state isn't conveyed by thumb position alone.
|
|
382
454
|
"ds:forced-colors:[[data-state=checked]_&]:bg-[SelectedItem]"
|
|
383
|
-
].join(" "),
|
|
455
|
+
].join(" "), ye = [
|
|
384
456
|
"ds:block ds:size-3",
|
|
385
457
|
"ds:rounded-[var(--radius-full)]",
|
|
386
458
|
"ds:bg-[color:var(--background)]",
|
|
@@ -388,42 +460,42 @@ const ve = [
|
|
|
388
460
|
"ds:[[data-state=checked]_&]:border-transparent",
|
|
389
461
|
"ds:shadow-[var(--shadow-sm)]",
|
|
390
462
|
"ds:forced-colors:bg-[CanvasText]"
|
|
391
|
-
].join(" "),
|
|
392
|
-
const { checked:
|
|
393
|
-
return
|
|
463
|
+
].join(" "), X = b(({ className: e, children: t, onSelect: a, name: r, ...l }, u) => {
|
|
464
|
+
const { checked: g, onCheckedChange: f, disabled: w } = l;
|
|
465
|
+
return Q(r, {
|
|
394
466
|
kind: "switch",
|
|
395
|
-
read: () => ({ checked:
|
|
467
|
+
read: () => ({ checked: g === !0, disabled: w === !0 }),
|
|
396
468
|
// What a click does, and only when it would change something: the
|
|
397
469
|
// consumer's onSelect, then the new state.
|
|
398
|
-
pick: (
|
|
399
|
-
|
|
470
|
+
pick: (c) => {
|
|
471
|
+
c !== (g === !0) && (a == null || a(new Event("menu.itemSelect", { cancelable: !0 })), f == null || f(c));
|
|
400
472
|
}
|
|
401
|
-
}), /* @__PURE__ */
|
|
402
|
-
|
|
473
|
+
}), /* @__PURE__ */ N(
|
|
474
|
+
d.CheckboxItem,
|
|
403
475
|
{
|
|
404
|
-
ref:
|
|
405
|
-
className:
|
|
406
|
-
"data-setting":
|
|
407
|
-
onSelect: (
|
|
408
|
-
|
|
476
|
+
ref: u,
|
|
477
|
+
className: M({ className: e }),
|
|
478
|
+
"data-setting": r,
|
|
479
|
+
onSelect: (c) => {
|
|
480
|
+
c.preventDefault(), a == null || a(c);
|
|
409
481
|
},
|
|
410
|
-
...
|
|
482
|
+
...l,
|
|
411
483
|
children: [
|
|
412
484
|
/* @__PURE__ */ s("span", { className: "ds:flex-1 ds:truncate", children: t }),
|
|
413
|
-
/* @__PURE__ */ s("span", { "aria-hidden": "true", className:
|
|
485
|
+
/* @__PURE__ */ s("span", { "aria-hidden": "true", className: we, children: /* @__PURE__ */ s("span", { className: ye }) })
|
|
414
486
|
]
|
|
415
487
|
}
|
|
416
488
|
);
|
|
417
489
|
});
|
|
418
|
-
|
|
419
|
-
const
|
|
420
|
-
|
|
490
|
+
X.displayName = "DropdownMenu.SwitchItem";
|
|
491
|
+
const Y = be, z = b(({ className: e, children: t, ...a }, r) => /* @__PURE__ */ N(
|
|
492
|
+
d.RadioItem,
|
|
421
493
|
{
|
|
422
|
-
ref:
|
|
423
|
-
className:
|
|
424
|
-
...
|
|
494
|
+
ref: r,
|
|
495
|
+
className: M({ className: e }),
|
|
496
|
+
...a,
|
|
425
497
|
children: [
|
|
426
|
-
/* @__PURE__ */ s("span", { className:
|
|
498
|
+
/* @__PURE__ */ s("span", { className: q, "aria-hidden": "true", children: /* @__PURE__ */ s(
|
|
427
499
|
"span",
|
|
428
500
|
{
|
|
429
501
|
className: [
|
|
@@ -435,7 +507,7 @@ const Q = we, I = m(({ className: e, children: t, ...r }, n) => /* @__PURE__ */
|
|
|
435
507
|
"ds:not-forced-colors:[[data-highlighted][data-state=checked]_&]:border-[color:var(--accent-foreground)]",
|
|
436
508
|
"ds:forced-colors:border-[CanvasText]"
|
|
437
509
|
].join(" "),
|
|
438
|
-
children: /* @__PURE__ */ s(
|
|
510
|
+
children: /* @__PURE__ */ s(d.ItemIndicator, { children: /* @__PURE__ */ s(
|
|
439
511
|
"span",
|
|
440
512
|
{
|
|
441
513
|
className: [
|
|
@@ -451,35 +523,35 @@ const Q = we, I = m(({ className: e, children: t, ...r }, n) => /* @__PURE__ */
|
|
|
451
523
|
]
|
|
452
524
|
}
|
|
453
525
|
));
|
|
454
|
-
|
|
455
|
-
const
|
|
456
|
-
|
|
526
|
+
z.displayName = "DropdownMenu.RadioItem";
|
|
527
|
+
const Z = b(({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
528
|
+
d.Label,
|
|
457
529
|
{
|
|
458
|
-
ref:
|
|
459
|
-
className:
|
|
530
|
+
ref: a,
|
|
531
|
+
className: me({ className: e }),
|
|
460
532
|
...t
|
|
461
533
|
}
|
|
462
534
|
));
|
|
463
|
-
|
|
464
|
-
const
|
|
535
|
+
Z.displayName = "DropdownMenu.Label";
|
|
536
|
+
const ee = b(({ className: e, ...t }, a) => /* @__PURE__ */ s(d.Separator, { ref: a, asChild: !0, ...t, children: /* @__PURE__ */ s(
|
|
465
537
|
oe,
|
|
466
538
|
{
|
|
467
539
|
className: ["ds:my-[calc(var(--spacing-xs)/2)]", e ?? ""].filter(Boolean).join(" ")
|
|
468
540
|
}
|
|
469
541
|
) }));
|
|
470
|
-
|
|
471
|
-
const
|
|
472
|
-
({ keys: e, separator: t = "none" },
|
|
542
|
+
ee.displayName = "DropdownMenu.Separator";
|
|
543
|
+
const se = b(
|
|
544
|
+
({ keys: e, separator: t = "none" }, a) => /* @__PURE__ */ s("span", { ref: a, className: "ds:ms-auto ds:ps-[var(--spacing-sm)]", children: /* @__PURE__ */ s(A, { keys: e, separator: t, size: "sm" }) })
|
|
473
545
|
);
|
|
474
|
-
|
|
475
|
-
const
|
|
476
|
-
|
|
546
|
+
se.displayName = "DropdownMenu.Shortcut";
|
|
547
|
+
const te = d.Sub, _ = b(({ className: e, startIcon: t, children: a, ...r }, l) => /* @__PURE__ */ N(
|
|
548
|
+
d.SubTrigger,
|
|
477
549
|
{
|
|
478
|
-
ref:
|
|
479
|
-
className:
|
|
480
|
-
className: [
|
|
550
|
+
ref: l,
|
|
551
|
+
className: M({
|
|
552
|
+
className: [E.open, e].filter(Boolean).join(" ")
|
|
481
553
|
}),
|
|
482
|
-
...
|
|
554
|
+
...r,
|
|
483
555
|
children: [
|
|
484
556
|
t ? /* @__PURE__ */ s(
|
|
485
557
|
"span",
|
|
@@ -489,9 +561,9 @@ const ee = o.Sub, j = m(({ className: e, startIcon: t, children: r, ...n }, a) =
|
|
|
489
561
|
children: t
|
|
490
562
|
}
|
|
491
563
|
) : null,
|
|
492
|
-
/* @__PURE__ */ s("span", { className: "ds:flex-1 ds:truncate", children:
|
|
564
|
+
/* @__PURE__ */ s("span", { className: "ds:flex-1 ds:truncate", children: a }),
|
|
493
565
|
/* @__PURE__ */ s(
|
|
494
|
-
|
|
566
|
+
ce,
|
|
495
567
|
{
|
|
496
568
|
"aria-hidden": !0,
|
|
497
569
|
className: "ds:ms-auto ds:size-4 ds:shrink-0 ds:rtl:-scale-x-100"
|
|
@@ -500,96 +572,96 @@ const ee = o.Sub, j = m(({ className: e, startIcon: t, children: r, ...n }, a) =
|
|
|
500
572
|
]
|
|
501
573
|
}
|
|
502
574
|
));
|
|
503
|
-
|
|
504
|
-
const
|
|
505
|
-
|
|
575
|
+
_.displayName = "DropdownMenu.SubTrigger";
|
|
576
|
+
const P = b(({ className: e, ...t }, a) => /* @__PURE__ */ s(d.Portal, { children: /* @__PURE__ */ s(L, { popupRef: a, children: (r) => /* @__PURE__ */ s(
|
|
577
|
+
d.SubContent,
|
|
506
578
|
{
|
|
507
|
-
ref:
|
|
579
|
+
ref: r,
|
|
508
580
|
sideOffset: 8,
|
|
509
581
|
"data-component": "dropdown-menu-sub-content",
|
|
510
|
-
className:
|
|
582
|
+
className: $({ className: e }),
|
|
511
583
|
...t
|
|
512
584
|
}
|
|
513
585
|
) }) }));
|
|
514
|
-
|
|
515
|
-
function
|
|
586
|
+
P.displayName = "DropdownMenu.SubContent";
|
|
587
|
+
function ae({
|
|
516
588
|
label: e,
|
|
517
589
|
value: t,
|
|
518
|
-
onValueChange:
|
|
519
|
-
options:
|
|
520
|
-
startIcon:
|
|
521
|
-
disabled:
|
|
522
|
-
closeOnSelect:
|
|
523
|
-
name:
|
|
524
|
-
className:
|
|
590
|
+
onValueChange: a,
|
|
591
|
+
options: r,
|
|
592
|
+
startIcon: l,
|
|
593
|
+
disabled: u,
|
|
594
|
+
closeOnSelect: g = !1,
|
|
595
|
+
name: f,
|
|
596
|
+
className: w
|
|
525
597
|
}) {
|
|
526
|
-
const
|
|
527
|
-
return
|
|
598
|
+
const c = r.find((o) => o.value === t);
|
|
599
|
+
return Q(f, {
|
|
528
600
|
kind: "choice",
|
|
529
601
|
read: () => ({
|
|
530
602
|
value: t,
|
|
531
|
-
options:
|
|
532
|
-
disabled:
|
|
533
|
-
closeOnSelect:
|
|
603
|
+
options: r,
|
|
604
|
+
disabled: u === !0,
|
|
605
|
+
closeOnSelect: g
|
|
534
606
|
}),
|
|
535
|
-
pick: (
|
|
536
|
-
}), /* @__PURE__ */
|
|
607
|
+
pick: (o) => a(o)
|
|
608
|
+
}), /* @__PURE__ */ N(te, { children: [
|
|
537
609
|
/* @__PURE__ */ s(
|
|
538
|
-
|
|
610
|
+
_,
|
|
539
611
|
{
|
|
540
|
-
startIcon:
|
|
541
|
-
disabled:
|
|
542
|
-
className:
|
|
612
|
+
startIcon: l,
|
|
613
|
+
disabled: u,
|
|
614
|
+
className: w,
|
|
543
615
|
"data-component": "dropdown-menu-choice",
|
|
544
616
|
"data-value": t,
|
|
545
|
-
"data-setting":
|
|
546
|
-
children: /* @__PURE__ */
|
|
617
|
+
"data-setting": f,
|
|
618
|
+
children: /* @__PURE__ */ N("span", { className: "ds:flex ds:min-w-0 ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
547
619
|
/* @__PURE__ */ s("span", { className: "ds:truncate", children: e }),
|
|
548
|
-
|
|
620
|
+
c ? /* @__PURE__ */ s("span", { className: "ds:shrink-0 ds:text-[color:var(--muted-foreground)] ds:[[data-highlighted]_&]:text-current", children: c.label }) : null
|
|
549
621
|
] })
|
|
550
622
|
}
|
|
551
623
|
),
|
|
552
|
-
/* @__PURE__ */ s(
|
|
553
|
-
|
|
624
|
+
/* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
|
|
625
|
+
Y,
|
|
554
626
|
{
|
|
555
627
|
value: t,
|
|
556
|
-
onValueChange: (
|
|
557
|
-
children:
|
|
558
|
-
|
|
628
|
+
onValueChange: (o) => a(o),
|
|
629
|
+
children: r.map((o) => /* @__PURE__ */ s(
|
|
630
|
+
z,
|
|
559
631
|
{
|
|
560
|
-
value:
|
|
561
|
-
disabled:
|
|
562
|
-
onSelect:
|
|
563
|
-
children:
|
|
632
|
+
value: o.value,
|
|
633
|
+
disabled: o.disabled,
|
|
634
|
+
onSelect: g ? void 0 : (m) => m.preventDefault(),
|
|
635
|
+
children: o.label
|
|
564
636
|
},
|
|
565
|
-
|
|
637
|
+
o.value
|
|
566
638
|
))
|
|
567
639
|
}
|
|
568
640
|
) })
|
|
569
641
|
] });
|
|
570
642
|
}
|
|
571
|
-
|
|
572
|
-
const
|
|
573
|
-
Root:
|
|
574
|
-
Trigger:
|
|
575
|
-
Portal:
|
|
576
|
-
Content:
|
|
577
|
-
Group:
|
|
578
|
-
Item:
|
|
579
|
-
CheckboxItem:
|
|
580
|
-
SwitchItem:
|
|
581
|
-
RadioGroup:
|
|
582
|
-
RadioItem:
|
|
583
|
-
Label:
|
|
584
|
-
Separator:
|
|
585
|
-
Shortcut:
|
|
586
|
-
Sub:
|
|
587
|
-
SubTrigger:
|
|
588
|
-
SubContent:
|
|
589
|
-
ChoiceSub:
|
|
643
|
+
ae.displayName = "DropdownMenu.ChoiceSub";
|
|
644
|
+
const _e = {
|
|
645
|
+
Root: B,
|
|
646
|
+
Trigger: fe,
|
|
647
|
+
Portal: ge,
|
|
648
|
+
Content: U,
|
|
649
|
+
Group: ve,
|
|
650
|
+
Item: W,
|
|
651
|
+
CheckboxItem: J,
|
|
652
|
+
SwitchItem: X,
|
|
653
|
+
RadioGroup: Y,
|
|
654
|
+
RadioItem: z,
|
|
655
|
+
Label: Z,
|
|
656
|
+
Separator: ee,
|
|
657
|
+
Shortcut: se,
|
|
658
|
+
Sub: te,
|
|
659
|
+
SubTrigger: _,
|
|
660
|
+
SubContent: P,
|
|
661
|
+
ChoiceSub: ae
|
|
590
662
|
};
|
|
591
663
|
export {
|
|
592
|
-
|
|
593
|
-
|
|
664
|
+
_e as D,
|
|
665
|
+
pe as d
|
|
594
666
|
};
|
|
595
|
-
//# sourceMappingURL=dropdown-menu-
|
|
667
|
+
//# sourceMappingURL=dropdown-menu-Dmbak7q6.js.map
|