@alfadocs/ui-kit 1.56.0 → 1.58.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/{address-fields-BfjxS05Z.js → address-fields-CJtu7LQU.js} +2 -2
- package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js → ai-credits-notice-ktklr8fy.js} +2 -2
- package/dist/_chunks/ai-permission-notice-DyuEGwAt.js +206 -0
- package/dist/_chunks/alia-sidebar-dybRpWml.js +1284 -0
- package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js → anamnesis-summary-rows-M-FUkw9p.js} +6 -6
- package/dist/_chunks/{app-frame-B-0O9CrU.js → app-frame-CqmDh2v5.js} +2 -2
- package/dist/_chunks/{appointment-peek-BIZaDeCi.js → appointment-peek-WvNbE4JG.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DmqYEIT9.js → appointment-timeline-Z0494xO-.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js → balance-badge-cell-CGoJZlKf.js} +3 -3
- package/dist/_chunks/{booking-WyNGKPE2.js → booking-CiFSAMR-.js} +4 -4
- package/dist/_chunks/{calculator-dialog-pCPWta7h.js → calculator-dialog-CzQv03p0.js} +2 -2
- package/dist/_chunks/{calendar-workspace-Du2ryaI-.js → calendar-workspace-DNHzjG7O.js} +19 -19
- package/dist/_chunks/{care-plan-card-Ddjh5Doc.js → care-plan-card-DxrRLRdW.js} +2 -2
- package/dist/_chunks/{care-plan-header-DUX_SVvF.js → care-plan-header-BMwZIgHJ.js} +2 -2
- package/dist/_chunks/{chart-HsF1KHbx.js → chart-ZMkX-Gqy.js} +338 -341
- package/dist/_chunks/{city-input-BC_nYINn.js → city-input-3J3bz9EO.js} +2 -2
- package/dist/_chunks/{clinical-note-card-14JIoUR0.js → clinical-note-card-hx939bvw.js} +2 -2
- package/dist/_chunks/{color-picker-BRQ4Y9SO.js → color-picker-BsggJovx.js} +128 -123
- package/dist/_chunks/{contact-card-CmK05vNb.js → contact-card-fHBMwEsx.js} +2 -2
- package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js → contact-profile-card-CMyBYgRR.js} +2 -2
- package/dist/_chunks/{control-room-rail-Tx2jW250.js → control-room-rail-CJ85HkS2.js} +2 -2
- package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js → cycle-calculator-Cww9DzIa.js} +2 -2
- package/dist/_chunks/dashboard-grid-Cs7cJAsA.js +933 -0
- package/dist/_chunks/{data-table-D8fuhqO1.js → data-table-Yn5xiGzs.js} +3 -3
- package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js → data-table-tabs-CHYAAeHy.js} +2 -2
- package/dist/_chunks/{date-picker-wRAcq2lt.js → date-picker-BSZuKo13.js} +69 -62
- package/dist/_chunks/{date-range-picker-CtUOI38x.js → date-range-picker-CFk-5O3R.js} +176 -171
- package/dist/_chunks/{date-time-picker-CLeLKuv9.js → date-time-picker-CjxTkblD.js} +92 -85
- package/dist/_chunks/{dialog-CUzbnKLw.js → dialog-Dn-iQ0Jp.js} +2 -2
- package/dist/_chunks/{document-preview-uoTekVR7.js → document-preview-CHGGG0l_.js} +2 -2
- package/dist/_chunks/{due-date-calculator-CSjklbyw.js → due-date-calculator-D_qFUiHp.js} +2 -2
- package/dist/_chunks/{entity-summary-DcB0fIiv.js → entity-summary-CWcCSThK.js} +2 -2
- package/dist/_chunks/{face-scheme-BicuUA2K.js → face-scheme-DSKDdIsb.js} +2 -2
- package/dist/_chunks/{file-manager-Cc_uO8r2.js → file-manager-DEtkQR1F.js} +4 -4
- package/dist/_chunks/{forgot-password-form-DEx-M_QR.js → forgot-password-form-CEqOmNuX.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js → gestational-age-calculator-CZi43xKG.js} +2 -2
- package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js → hcg-doubling-Ccvh7OaU.js} +2 -2
- package/dist/_chunks/{header-settings-ge_3gYEq.js → header-settings-BMcCx2LC.js} +2 -2
- package/dist/_chunks/{heatmap-Gf9r7Tn1.js → heatmap-DiyOSQk9.js} +2 -2
- package/dist/_chunks/{help-me-write-templates-fV-Apf72.js → help-me-write-templates-CM1p6qkm.js} +3 -3
- package/dist/_chunks/{hover-card-BnTueNS2.js → hover-card-U_ZYoh1n.js} +201 -187
- package/dist/_chunks/{icon-picker-DWrqmI1c.js → icon-picker-rOFTawXk.js} +3 -3
- package/dist/_chunks/{info-tip-B0jmIt6M.js → info-tip-CJpNpzZe.js} +2 -2
- package/dist/_chunks/{kit-extensions-Byfxy6sy.js → kit-extensions-DYVxWcqv.js} +4 -4
- package/dist/_chunks/{link-cell-renderer-TeJNvymP.js → link-cell-renderer-C1wOyxDF.js} +3 -3
- package/dist/_chunks/link-gRw3NtOt.js +137 -0
- package/dist/_chunks/{list-RRN2TJ_7.js → list-CNnn7DOD.js} +75 -73
- package/dist/_chunks/{locale-picker-DfNSdOpy.js → locale-picker-BGfrZyTw.js} +2 -2
- package/dist/_chunks/{login-dev-card-DmZ1B0lB.js → login-dev-card-CIim81VB.js} +2 -2
- package/dist/_chunks/marketplace-app-shell-CSDmGLPW.js +613 -0
- package/dist/_chunks/{message-tray-BB95DA82.js → message-tray-DmU0poD7.js} +76 -69
- package/dist/_chunks/{nav-grid-BqCPH8sm.js → nav-grid-Byx8PxuB.js} +2 -2
- package/dist/_chunks/navigation-dismiss-B1mcW1CT.js +9 -0
- package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js +89 -0
- package/dist/_chunks/{note-attachment-I1NLoeRZ.js → note-attachment-Bt2cddsZ.js} +2 -2
- package/dist/_chunks/{note-timeline-CsY8YOE7.js → note-timeline-CX9nAgAR.js} +2 -2
- package/dist/_chunks/{notes-panel-DceRhthG.js → notes-panel-DHLHsxpW.js} +4 -4
- package/dist/_chunks/{notification-tray-__sJXnsz.js → notification-tray-DPU-Xg0i.js} +83 -76
- package/dist/_chunks/{panel-subview-BT-Apwgb.js → panel-subview-D4o6ar6_.js} +61 -47
- package/dist/_chunks/{patient-details-DsTtjpuX.js → patient-details-BCaVuaXz.js} +2 -2
- package/dist/_chunks/{patient-field-row-BvZ9luz-.js → patient-field-row-jcRSTrp4.js} +7 -7
- package/dist/_chunks/{patient-summary-card-9nQWTQf6.js → patient-summary-card-kQIfPQOE.js} +4 -4
- package/dist/_chunks/{payment-automation-upsell-DiHovmUL.js → payment-automation-upsell-C4wHOxsp.js} +2 -2
- package/dist/_chunks/{payment-request-card-CwDpwXUC.js → payment-request-card-DAniJNLX.js} +2 -2
- package/dist/_chunks/{pdf-viewer-C3minW5b.js → pdf-viewer-CNQxa4tv.js} +396 -391
- package/dist/_chunks/{phone-input-DxkHMYmu.js → phone-input-O9camxkq.js} +156 -151
- package/dist/_chunks/popover-BG75rYjN.js +367 -0
- package/dist/_chunks/{practice-results-Dhbo-fc_.js → practice-results-D07wgCqV.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js → pregnancy-dating-BFzv9g1N.js} +2 -2
- package/dist/_chunks/{product-hub-panel-BSSiGGG4.js → product-hub-panel-DCYX0rPG.js} +103 -96
- package/dist/_chunks/{public-footer-CxpG6J1M.js → public-footer-ZWTEG1Rq.js} +2 -2
- package/dist/_chunks/{public-header.agent-pr2hyiND.js → public-header.agent-C1SlVSYt.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js → radiograph-panel.agent-DyqbTECc.js} +4 -4
- package/dist/_chunks/{registration-form-D7iNqMBF.js → registration-form-DrSR9Sjk.js} +4 -4
- package/dist/_chunks/{rich-text-editor-CkFfmA3v.js → rich-text-editor-UgXri8h6.js} +490 -485
- package/dist/_chunks/{scroll-area-ZtFCv9K7.js → scroll-area-CY5SLYNw.js} +104 -74
- package/dist/_chunks/{search-bar-DQJS0wJN.js → search-bar-mA4bPe3t.js} +294 -255
- package/dist/_chunks/{sheet-C7SwIxwB.js → sheet-Dtjk0CVv.js} +3 -3
- package/dist/_chunks/sidebar-D4Wllqfz.js +2029 -0
- package/dist/_chunks/{sign-document-B6HlyCGV.js → sign-document-D4iHS_Ug.js} +2 -2
- package/dist/_chunks/{signature-request-DhbpB9N9.js → signature-request-dAVgE0_5.js} +3 -3
- package/dist/_chunks/{signed-out-frame-B2GTIeqA.js → signed-out-frame-DOJpobp8.js} +3 -3
- package/dist/_chunks/{state-backed-text-input-DECQy5aA.js → state-backed-text-input-Cgh4ms3p.js} +2 -2
- package/dist/_chunks/{task-editor-ByyRu29Y.js → task-editor-BflEZmcF.js} +7 -6
- package/dist/_chunks/{tool-rail-Bwyuw_Ot.js → tool-rail-CTq1KwxW.js} +115 -114
- package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js → use-appointment-details-read-izwoXh-G.js} +8 -8
- package/dist/_chunks/use-state-backed-input-DhRQo6gM.js +57 -0
- package/dist/_chunks/{voice-control-panel-Bg1eklL0.js → voice-control-panel-an-bpQfF.js} +3 -3
- package/dist/_chunks/{widget-picker-DXYBMTfe.js → widget-picker-DlJOgYrZ.js} +80 -57
- package/dist/agent-catalog.json +3 -3
- package/dist/agent-i18n/en.json +1 -1
- package/dist/components/_shared/navigation-dismiss.d.ts +8 -0
- package/dist/components/_shared/non-modal-tab-exit.d.ts +15 -4
- package/dist/components/_shared/use-state-backed-input.d.ts +3 -2
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/ai-permission-notice.d.ts +32 -0
- package/dist/components/ai-permission-notice/index.d.ts +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/app-frame/index.js +1 -1
- 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/booking/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-header/index.js +1 -1
- package/dist/components/chart/chart.d.ts +5 -5
- package/dist/components/chart/index.js +1 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/dashboard-grid.d.ts +33 -8
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/data-table-tabs/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/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/gestational-age-calculator/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/hover-card/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/link.d.ts +5 -3
- package/dist/components/list/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/nav-grid/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/patient-details/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/pdf-viewer/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-header/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/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/scroll-area.d.ts +6 -5
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-bar/search-bar.d.ts +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.d.ts +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/sidebar-move.d.ts +88 -0
- package/dist/components/sidebar/sidebar.d.ts +26 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/host-compat.css +2 -1
- package/dist/i18n/locales/ar.d.ts +24 -0
- package/dist/i18n/locales/ar.js +26 -2
- package/dist/i18n/locales/de.d.ts +24 -0
- package/dist/i18n/locales/de.js +26 -2
- package/dist/i18n/locales/el.d.ts +24 -0
- package/dist/i18n/locales/el.js +26 -2
- package/dist/i18n/locales/en.d.ts +24 -0
- package/dist/i18n/locales/en.js +26 -2
- package/dist/i18n/locales/es.d.ts +24 -0
- package/dist/i18n/locales/es.js +26 -2
- package/dist/i18n/locales/fr.d.ts +24 -0
- package/dist/i18n/locales/fr.js +26 -2
- package/dist/i18n/locales/hi.d.ts +24 -0
- package/dist/i18n/locales/hi.js +26 -2
- package/dist/i18n/locales/it.d.ts +24 -0
- package/dist/i18n/locales/it.js +26 -2
- package/dist/i18n/locales/ja.d.ts +24 -0
- package/dist/i18n/locales/ja.js +26 -2
- package/dist/i18n/locales/nl.d.ts +24 -0
- package/dist/i18n/locales/nl.js +26 -2
- package/dist/i18n/locales/pl.d.ts +24 -0
- package/dist/i18n/locales/pl.js +26 -2
- package/dist/i18n/locales/pt.d.ts +24 -0
- package/dist/i18n/locales/pt.js +26 -2
- package/dist/i18n/locales/ro.d.ts +24 -0
- package/dist/i18n/locales/ro.js +26 -2
- package/dist/i18n/locales/ru.d.ts +24 -0
- package/dist/i18n/locales/ru.js +26 -2
- package/dist/i18n/locales/sq.d.ts +24 -0
- package/dist/i18n/locales/sq.js +26 -2
- package/dist/i18n/locales/sv.d.ts +24 -0
- package/dist/i18n/locales/sv.js +26 -2
- package/dist/i18n/locales/tr.d.ts +24 -0
- package/dist/i18n/locales/tr.js +26 -2
- package/dist/i18n/locales/zh.d.ts +24 -0
- package/dist/i18n/locales/zh.js +26 -2
- package/dist/index.js +204 -203
- package/dist/locales/ar.json +26 -2
- package/dist/locales/de.json +26 -2
- package/dist/locales/el.json +26 -2
- package/dist/locales/en.json +26 -2
- package/dist/locales/es.json +26 -2
- package/dist/locales/fr.json +26 -2
- package/dist/locales/hi.json +26 -2
- package/dist/locales/it.json +26 -2
- package/dist/locales/ja.json +26 -2
- package/dist/locales/nl.json +26 -2
- package/dist/locales/pl.json +26 -2
- package/dist/locales/pt.json +26 -2
- package/dist/locales/ro.json +26 -2
- package/dist/locales/ru.json +26 -2
- package/dist/locales/sq.json +26 -2
- package/dist/locales/sv.json +26 -2
- package/dist/locales/tr.json +26 -2
- package/dist/locales/zh.json +26 -2
- package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts +10 -13
- package/dist/patterns/alia-assistant/alia-popout.d.ts +5 -3
- package/dist/patterns/alia-assistant/index.d.ts +2 -0
- package/dist/patterns/alia-assistant/index.js +6 -5
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/login-form/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 +40 -10
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/ai-permission-notice-5vpblPCx.js +0 -171
- package/dist/_chunks/alia-sidebar-DOei4Iyu.js +0 -1183
- package/dist/_chunks/dashboard-grid-DfEY2qci.js +0 -844
- package/dist/_chunks/link-2HokYuIi.js +0 -130
- package/dist/_chunks/marketplace-app-shell-Dcx-JEjg.js +0 -541
- package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js +0 -65
- package/dist/_chunks/popover-BI3oV3eY.js +0 -305
- package/dist/_chunks/sidebar-DLsG2AIk.js +0 -1349
- package/dist/_chunks/use-state-backed-input-C7ESmxKB.js +0 -59
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { useCallback as f } from "react";
|
|
2
|
-
const l = "data-radix-focus-guard";
|
|
3
|
-
function s(e) {
|
|
4
|
-
return e.hidden || e.disabled === !0 || e.tagName === "INPUT" && e.type === "hidden" ? !1 : e.tabIndex >= 0;
|
|
5
|
-
}
|
|
6
|
-
function c(e, r) {
|
|
7
|
-
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
8
|
-
let t = e;
|
|
9
|
-
for (; t; ) {
|
|
10
|
-
if (r !== void 0 && t === r) return !1;
|
|
11
|
-
if (getComputedStyle(t).display === "none") return !0;
|
|
12
|
-
t = t.parentElement;
|
|
13
|
-
}
|
|
14
|
-
return !1;
|
|
15
|
-
}
|
|
16
|
-
function E(e, r) {
|
|
17
|
-
const t = e.ownerDocument.createTreeWalker(
|
|
18
|
-
e,
|
|
19
|
-
NodeFilter.SHOW_ELEMENT,
|
|
20
|
-
{
|
|
21
|
-
acceptNode: (i) => s(i) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP
|
|
22
|
-
}
|
|
23
|
-
), n = [];
|
|
24
|
-
for (; t.nextNode(); ) n.push(t.currentNode);
|
|
25
|
-
return r === "last" && n.reverse(), n.find((i) => !c(i, e));
|
|
26
|
-
}
|
|
27
|
-
function N(e) {
|
|
28
|
-
return c(e) || (e.focus(), e.ownerDocument.activeElement !== e) ? !1 : (e.tagName === "INPUT" && e.select(), !0);
|
|
29
|
-
}
|
|
30
|
-
function T(e, r) {
|
|
31
|
-
const t = e.ownerDocument, n = t.createTreeWalker(t.body, NodeFilter.SHOW_ELEMENT, {
|
|
32
|
-
acceptNode: (u) => {
|
|
33
|
-
const o = u;
|
|
34
|
-
return o === e || o.hidden || o.hasAttribute("inert") ? NodeFilter.FILTER_REJECT : s(o) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
let i = e;
|
|
38
|
-
if (!r) for (; i.lastChild; ) i = i.lastChild;
|
|
39
|
-
n.currentNode = i;
|
|
40
|
-
let a = null;
|
|
41
|
-
const d = () => r ? n.previousNode() : n.nextNode();
|
|
42
|
-
for (let u = d(); u; u = d()) {
|
|
43
|
-
const o = u;
|
|
44
|
-
if (o.hasAttribute(l)) a = o;
|
|
45
|
-
else if (N(o)) return "moved";
|
|
46
|
-
}
|
|
47
|
-
return a ? (a.focus(), t.activeElement === a ? "native" : "none") : "none";
|
|
48
|
-
}
|
|
49
|
-
function b(e) {
|
|
50
|
-
return f(
|
|
51
|
-
(r) => {
|
|
52
|
-
if (!e || r.defaultPrevented || r.key !== "Tab" || r.altKey || r.ctrlKey || r.metaKey)
|
|
53
|
-
return;
|
|
54
|
-
const t = r.currentTarget, n = t.ownerDocument.activeElement;
|
|
55
|
-
if (!n || !t.contains(n)) return;
|
|
56
|
-
const i = r.shiftKey, a = E(t, i ? "first" : "last");
|
|
57
|
-
(n === a || n === t && (!a || i)) && T(t, i) === "moved" && r.preventDefault();
|
|
58
|
-
},
|
|
59
|
-
[e]
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
export {
|
|
63
|
-
b as u
|
|
64
|
-
};
|
|
65
|
-
//# sourceMappingURL=non-modal-tab-exit-D2Bd93Bq.js.map
|
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
import { jsx as s, jsxs as X } from "react/jsx-runtime";
|
|
2
|
-
import { useState as C, useCallback as g, useRef as z, useEffect as h, useMemo as q, forwardRef as f, useId as D, useContext as u, createContext as N } from "react";
|
|
3
|
-
import * as p from "@radix-ui/react-popover";
|
|
4
|
-
import { c as G } from "./index-D2ZczOXr.js";
|
|
5
|
-
import { useTranslation as J } from "react-i18next";
|
|
6
|
-
import { I as Q } from "./icon-button-COX76Jdj.js";
|
|
7
|
-
import { u as U } from "./registry-DvAUVLHh.js";
|
|
8
|
-
import { X as Y } from "./x-B5YnXwCz.js";
|
|
9
|
-
const Z = {
|
|
10
|
-
id: "popover",
|
|
11
|
-
capabilities: ["open", "close"],
|
|
12
|
-
state: {
|
|
13
|
-
isOpen: {
|
|
14
|
-
type: "boolean",
|
|
15
|
-
descriptionKey: "ui.agent.popover.state.isOpen",
|
|
16
|
-
description: "True when the popover is currently open.",
|
|
17
|
-
read: (e) => e.getIsOpen()
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
actions: {
|
|
21
|
-
open: {
|
|
22
|
-
safety: "read",
|
|
23
|
-
idempotent: !0,
|
|
24
|
-
descriptionKey: "ui.agent.popover.actions.open",
|
|
25
|
-
description: "Open the popover.",
|
|
26
|
-
invoke: (e) => {
|
|
27
|
-
e.open();
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
close: {
|
|
31
|
-
safety: "read",
|
|
32
|
-
idempotent: !0,
|
|
33
|
-
descriptionKey: "ui.agent.popover.actions.close",
|
|
34
|
-
description: "Close the popover.",
|
|
35
|
-
invoke: (e) => {
|
|
36
|
-
e.close();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
domHooks: {
|
|
41
|
-
root: { attr: "data-component", value: "popover" },
|
|
42
|
-
instanceId: {
|
|
43
|
-
attr: "data-component-id",
|
|
44
|
-
sourceProp: "id",
|
|
45
|
-
description: "Sourced from the id prop on Popover.Root."
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}, y = N({
|
|
49
|
-
headingId: void 0,
|
|
50
|
-
setHeadingId: () => {
|
|
51
|
-
},
|
|
52
|
-
descriptionId: void 0,
|
|
53
|
-
setDescriptionId: () => {
|
|
54
|
-
}
|
|
55
|
-
}), k = N({
|
|
56
|
-
isHoverMode: !1,
|
|
57
|
-
clearHoverTimer: () => {
|
|
58
|
-
},
|
|
59
|
-
closeWithDelay: () => {
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
function _(e) {
|
|
63
|
-
if (e === "top" || e === "bottom") return e;
|
|
64
|
-
const o = typeof document < "u" && document.documentElement.dir === "rtl";
|
|
65
|
-
return e === "start" ? o ? "right" : "left" : o ? "left" : "right";
|
|
66
|
-
}
|
|
67
|
-
const $ = G(
|
|
68
|
-
[
|
|
69
|
-
// `--card-border` 32% alpha provides a subtle edge that survives dark
|
|
70
|
-
// without becoming a heavy outline. The previous transparent border
|
|
71
|
-
// relied on the drop-shadow alone, which reads as a faint halo against
|
|
72
|
-
// dark surfaces and lets the popover float as an unbounded blob; the
|
|
73
|
-
// earlier heavy `--border` (grey-800 since WCAG 1.4.11 bump in 67fef8c)
|
|
74
|
-
// overcorrected the other way and made the popover read as a charcoal
|
|
75
|
-
// box. The forced-colors override below upgrades the border to
|
|
76
|
-
// `CanvasText` so HCM still repaints a fully visible edge.
|
|
77
|
-
"ds:relative ds:bg-[var(--popover)] ds:border ds:border-[color:var(--card-border)] ds:rounded-[var(--radius-md)]",
|
|
78
|
-
"ds:p-[var(--spacing-md)]",
|
|
79
|
-
"ds:shadow-[var(--shadow-lg)]",
|
|
80
|
-
"ds:z-[var(--z-popover)]",
|
|
81
|
-
"ds:text-[var(--popover-foreground)] ds:text-[length:var(--font-size-sm)]",
|
|
82
|
-
"ds:break-words",
|
|
83
|
-
"ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
|
|
84
|
-
"ds:data-[state=closed]:fade-out-0 ds:data-[state=open]:fade-in-0",
|
|
85
|
-
"ds:data-[state=closed]:zoom-out-95 ds:data-[state=open]:zoom-in-95",
|
|
86
|
-
"ds:data-[side=bottom]:slide-in-from-top-2 ds:data-[side=left]:slide-in-from-right-2",
|
|
87
|
-
"ds:data-[side=right]:slide-in-from-left-2 ds:data-[side=top]:slide-in-from-bottom-2",
|
|
88
|
-
"ds:motion-reduce:transition-none ds:motion-reduce:animate-none",
|
|
89
|
-
"ds:forced-colors:border-[CanvasText]",
|
|
90
|
-
"ds:focus-visible:outline-none"
|
|
91
|
-
].join(" "),
|
|
92
|
-
{
|
|
93
|
-
variants: {
|
|
94
|
-
size: {
|
|
95
|
-
sm: "ds:max-w-[var(--popover-size-sm)]",
|
|
96
|
-
md: "ds:max-w-[var(--popover-size-md)]",
|
|
97
|
-
lg: "ds:max-w-[var(--popover-size-lg)]"
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
defaultVariants: {
|
|
101
|
-
size: "md"
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
), M = N(void 0);
|
|
105
|
-
function T({
|
|
106
|
-
openOn: e = "click",
|
|
107
|
-
children: o,
|
|
108
|
-
id: r,
|
|
109
|
-
open: i,
|
|
110
|
-
onOpenChange: t,
|
|
111
|
-
defaultOpen: c,
|
|
112
|
-
modal: P
|
|
113
|
-
}) {
|
|
114
|
-
const [b, I] = C(c ?? !1), m = i !== void 0, l = m ? i : b, n = g(
|
|
115
|
-
(w) => {
|
|
116
|
-
m || I(w), t == null || t(w);
|
|
117
|
-
},
|
|
118
|
-
[m, t]
|
|
119
|
-
), d = z(null), v = e === "hover" || e === "hover-or-click", a = g(() => {
|
|
120
|
-
d.current && (clearTimeout(d.current), d.current = null);
|
|
121
|
-
}, []), H = g(() => {
|
|
122
|
-
a(), d.current = setTimeout(() => {
|
|
123
|
-
n(!0);
|
|
124
|
-
}, 300);
|
|
125
|
-
}, [a, n]), x = g(() => {
|
|
126
|
-
a(), d.current = setTimeout(() => {
|
|
127
|
-
n(!1);
|
|
128
|
-
}, 300);
|
|
129
|
-
}, [a, n]);
|
|
130
|
-
h(() => () => a(), [a]);
|
|
131
|
-
const R = z(l);
|
|
132
|
-
h(() => {
|
|
133
|
-
R.current = l;
|
|
134
|
-
}, [l]);
|
|
135
|
-
const W = q(
|
|
136
|
-
() => ({
|
|
137
|
-
getIsOpen: () => R.current,
|
|
138
|
-
open: () => n(!0),
|
|
139
|
-
close: () => n(!1)
|
|
140
|
-
}),
|
|
141
|
-
[n]
|
|
142
|
-
);
|
|
143
|
-
U(Z, W, r);
|
|
144
|
-
const [K, F] = C(void 0), [L, V] = C(
|
|
145
|
-
void 0
|
|
146
|
-
), S = v ? {
|
|
147
|
-
onMouseEnter: H,
|
|
148
|
-
onMouseLeave: x,
|
|
149
|
-
onFocus: () => {
|
|
150
|
-
a(), n(!0);
|
|
151
|
-
},
|
|
152
|
-
onBlur: x
|
|
153
|
-
} : {};
|
|
154
|
-
return /* @__PURE__ */ s(M.Provider, { value: r, children: /* @__PURE__ */ s(
|
|
155
|
-
y.Provider,
|
|
156
|
-
{
|
|
157
|
-
value: { headingId: K, setHeadingId: F, descriptionId: L, setDescriptionId: V },
|
|
158
|
-
children: /* @__PURE__ */ s(
|
|
159
|
-
k.Provider,
|
|
160
|
-
{
|
|
161
|
-
value: { isHoverMode: v, clearHoverTimer: a, closeWithDelay: x },
|
|
162
|
-
children: /* @__PURE__ */ s(
|
|
163
|
-
p.Root,
|
|
164
|
-
{
|
|
165
|
-
open: l,
|
|
166
|
-
onOpenChange: n,
|
|
167
|
-
modal: P,
|
|
168
|
-
children: v ? /* @__PURE__ */ s("span", { className: "ds:inline-flex", ...S, children: o }) : o
|
|
169
|
-
}
|
|
170
|
-
)
|
|
171
|
-
}
|
|
172
|
-
)
|
|
173
|
-
}
|
|
174
|
-
) });
|
|
175
|
-
}
|
|
176
|
-
T.displayName = "Popover.Root";
|
|
177
|
-
const j = f(({ children: e, ...o }, r) => /* @__PURE__ */ s(p.Trigger, { ref: r, ...o, children: e }));
|
|
178
|
-
j.displayName = "Popover.Trigger";
|
|
179
|
-
const A = f(
|
|
180
|
-
({
|
|
181
|
-
side: e = "bottom",
|
|
182
|
-
align: o = "center",
|
|
183
|
-
size: r = "md",
|
|
184
|
-
showArrow: i = !0,
|
|
185
|
-
className: t,
|
|
186
|
-
children: c,
|
|
187
|
-
...P
|
|
188
|
-
}, b) => {
|
|
189
|
-
const { headingId: I, descriptionId: m } = u(y), l = u(M), {
|
|
190
|
-
isHoverMode: n,
|
|
191
|
-
clearHoverTimer: d,
|
|
192
|
-
closeWithDelay: v
|
|
193
|
-
} = u(k), a = _(e), H = n ? {
|
|
194
|
-
onMouseEnter: d,
|
|
195
|
-
onMouseLeave: v,
|
|
196
|
-
onFocus: d,
|
|
197
|
-
onBlur: v
|
|
198
|
-
} : {};
|
|
199
|
-
return /* @__PURE__ */ s(p.Portal, { children: /* @__PURE__ */ X(
|
|
200
|
-
p.Content,
|
|
201
|
-
{
|
|
202
|
-
ref: b,
|
|
203
|
-
side: a,
|
|
204
|
-
align: o,
|
|
205
|
-
sideOffset: 8,
|
|
206
|
-
collisionPadding: 8,
|
|
207
|
-
"aria-labelledby": I,
|
|
208
|
-
"aria-describedby": m,
|
|
209
|
-
className: $({ size: r, className: t }),
|
|
210
|
-
"data-component": "popover",
|
|
211
|
-
"data-component-id": l,
|
|
212
|
-
...H,
|
|
213
|
-
...P,
|
|
214
|
-
children: [
|
|
215
|
-
c,
|
|
216
|
-
i && /* @__PURE__ */ s(
|
|
217
|
-
p.Arrow,
|
|
218
|
-
{
|
|
219
|
-
width: 12,
|
|
220
|
-
height: 6,
|
|
221
|
-
className: "ds:fill-[var(--popover)]"
|
|
222
|
-
}
|
|
223
|
-
)
|
|
224
|
-
]
|
|
225
|
-
}
|
|
226
|
-
) });
|
|
227
|
-
}
|
|
228
|
-
);
|
|
229
|
-
A.displayName = "Popover.Content";
|
|
230
|
-
const B = f(
|
|
231
|
-
({ className: e }, o) => {
|
|
232
|
-
const { t: r } = J("ui");
|
|
233
|
-
return /* @__PURE__ */ s(
|
|
234
|
-
"div",
|
|
235
|
-
{
|
|
236
|
-
className: [
|
|
237
|
-
"ds:absolute ds:top-[var(--spacing-sm)] ds:end-[var(--spacing-sm)]",
|
|
238
|
-
e
|
|
239
|
-
].filter(Boolean).join(" "),
|
|
240
|
-
children: /* @__PURE__ */ s(p.Close, { asChild: !0, children: /* @__PURE__ */ s(
|
|
241
|
-
Q,
|
|
242
|
-
{
|
|
243
|
-
ref: o,
|
|
244
|
-
icon: /* @__PURE__ */ s(Y, {}),
|
|
245
|
-
intent: "ghost",
|
|
246
|
-
size: "sm",
|
|
247
|
-
"aria-label": r("common.close", "Close")
|
|
248
|
-
}
|
|
249
|
-
) })
|
|
250
|
-
}
|
|
251
|
-
);
|
|
252
|
-
}
|
|
253
|
-
);
|
|
254
|
-
B.displayName = "Popover.Close";
|
|
255
|
-
const E = f(
|
|
256
|
-
({ as: e = "h3", className: o, ...r }, i) => {
|
|
257
|
-
const t = D(), { setHeadingId: c } = u(y);
|
|
258
|
-
return h(() => (c(t), () => c(void 0)), [t, c]), /* @__PURE__ */ s(
|
|
259
|
-
e,
|
|
260
|
-
{
|
|
261
|
-
ref: i,
|
|
262
|
-
id: t,
|
|
263
|
-
className: [
|
|
264
|
-
"type-title-item ds:leading-snug ds:break-words",
|
|
265
|
-
"ds:pe-[var(--spacing-xl)]",
|
|
266
|
-
o
|
|
267
|
-
].filter(Boolean).join(" "),
|
|
268
|
-
...r
|
|
269
|
-
}
|
|
270
|
-
);
|
|
271
|
-
}
|
|
272
|
-
);
|
|
273
|
-
E.displayName = "Popover.Heading";
|
|
274
|
-
const O = f(({ className: e, ...o }, r) => {
|
|
275
|
-
const i = D(), { setDescriptionId: t } = u(y);
|
|
276
|
-
return h(() => (t(i), () => t(void 0)), [i, t]), /* @__PURE__ */ s(
|
|
277
|
-
"div",
|
|
278
|
-
{
|
|
279
|
-
ref: r,
|
|
280
|
-
id: i,
|
|
281
|
-
className: [
|
|
282
|
-
"ds:text-[var(--muted-foreground)] type-body-sm ds:mt-[var(--spacing-xs)]",
|
|
283
|
-
e
|
|
284
|
-
].filter(Boolean).join(" "),
|
|
285
|
-
...o
|
|
286
|
-
}
|
|
287
|
-
);
|
|
288
|
-
});
|
|
289
|
-
O.displayName = "Popover.Description";
|
|
290
|
-
const ae = Object.assign(T, {
|
|
291
|
-
Root: T,
|
|
292
|
-
Trigger: j,
|
|
293
|
-
// Radix pass-through: position Content against an arbitrary element when a
|
|
294
|
-
// Trigger button is unsuitable (e.g. anchoring an editor to a role=tab).
|
|
295
|
-
Anchor: p.Anchor,
|
|
296
|
-
Content: A,
|
|
297
|
-
Close: B,
|
|
298
|
-
Heading: E,
|
|
299
|
-
Description: O
|
|
300
|
-
});
|
|
301
|
-
export {
|
|
302
|
-
ae as P,
|
|
303
|
-
Z as p
|
|
304
|
-
};
|
|
305
|
-
//# sourceMappingURL=popover-BI3oV3eY.js.map
|