@alfadocs/ui-kit 1.138.0 → 1.139.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-DvSWdeR0.js → address-fields-Bh9JZJHZ.js} +4 -4
- package/dist/_chunks/{ai-prompt-input-CVNeusoW.js → ai-prompt-input-B2QFwuJ1.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-Dr2V1Rtf.js → anamnesis-summary-rows-BgfBnjp0.js} +4 -4
- package/dist/_chunks/{audio-recorder-BOF5YYoC.js → audio-recorder-6dUq8I38.js} +2 -2
- package/dist/_chunks/autocomplete-HZNW7_Pa.js +642 -0
- package/dist/_chunks/{balance-badge-cell-BSB02Bwo.js → balance-badge-cell-CRrIv2hy.js} +4 -4
- package/dist/_chunks/{bill-line-table-By-YL2ms.js → bill-line-table-DCqxhode.js} +3 -3
- package/dist/_chunks/{bishop-score-DWGESRP9.js → bishop-score-M7Fi-ykx.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-SxSkOTnO.js → calendar-appointment-editor-dialog-GdnaPIOV.js} +7 -7
- package/dist/_chunks/{calendar-editor-discard-host-DjUhoFr2.js → calendar-editor-discard-host-BcMEgVEq.js} +2 -2
- package/dist/_chunks/{calendar-waiting-list-panel-331vzAdl.js → calendar-waiting-list-panel-CkZBAv_E.js} +3 -3
- package/dist/_chunks/{calendar.sheets-aodjllWd.js → calendar.sheets-B0jP2Yt0.js} +112 -111
- package/dist/_chunks/{calls-panel-BIfatK90.js → calls-panel-CtxJAzkJ.js} +2 -2
- package/dist/_chunks/{city-input-DXipzTfZ.js → city-input-DARVDJhH.js} +2 -2
- package/dist/_chunks/{combobox-BBCVQS-S.js → combobox-BYl6mY4c.js} +12 -13
- package/dist/_chunks/{communications-panel-SQ-55e3V.js → communications-panel-DBWM9II9.js} +2 -2
- package/dist/_chunks/{country-select-C2GdvRtS.js → country-select-BPISkYVU.js} +3 -3
- package/dist/_chunks/{data-grid-CxKz8flO.js → data-grid-bQ6iFm10.js} +15 -7
- package/dist/_chunks/{data-table-_tgj0C_T.js → data-table-CnLfOwxg.js} +2 -2
- package/dist/_chunks/{default-tabs-oDWQzbN7.js → default-tabs-Dm_vk6hd.js} +3 -3
- package/dist/_chunks/{document-preview-CirR3C_m.js → document-preview-FTCHXYhk.js} +2 -2
- package/dist/_chunks/{face-scheme-D_Y1StPl.js → face-scheme-Bxt7ZnJn.js} +2 -2
- package/dist/_chunks/{file-manager-CEi4z2i0.js → file-manager-Bsccb8Jj.js} +2 -2
- package/dist/_chunks/{forgot-password-form-YvI9vX-G.js → forgot-password-form-B4ufmBFn.js} +5 -4
- package/dist/_chunks/{gestational-age-calculator-CHbpC4vL.js → gestational-age-calculator-DXSPWG8u.js} +2 -2
- package/dist/_chunks/{heatmap-_546qI2V.js → heatmap-CFPaEKD_.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-CQI9MUl6.js → invoice-upload-list-Dz3CXHPP.js} +3 -3
- package/dist/_chunks/{kit-extensions-BNBf4m8O.js → kit-extensions-BB_ksnVl.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-Xx5T8u5Q.js → link-cell-renderer-CSA0KKPe.js} +5 -5
- package/dist/_chunks/{login-dev-card-Dz3ezx1o.js → login-dev-card-oRh9h7N2.js} +18 -17
- package/dist/_chunks/medication-I6QvOq6k.js +21 -0
- package/dist/_chunks/medication-line-CHdlh-F7.js +222 -0
- package/dist/_chunks/medication-search-DoEDakoM.js +380 -0
- package/dist/_chunks/{multi-select-Df3R8lv_.js → multi-select-DeMiHm8T.js} +4 -5
- package/dist/_chunks/{muscle-scheme-D_rSyGDj.js → muscle-scheme-BB2eBfww.js} +2 -2
- package/dist/_chunks/normalize-diacritics-DhJjQ3Bp.js +7 -0
- package/dist/_chunks/{notes-panel-DsEKNtsw.js → notes-panel-CnmQqhwq.js} +2 -2
- package/dist/_chunks/{optical-prescription-DaSbsh4p.js → optical-prescription-C4jpDFOE.js} +2 -2
- package/dist/_chunks/{option-row-Dc7BrbK8.js → option-row-DpCnuUqo.js} +25 -12
- package/dist/_chunks/{patient-account-settings-Cs9y-pVA.js → patient-account-settings-DfEPHmCh.js} +2 -2
- package/dist/_chunks/{patient-check-in-resume-4qi_klQV.js → patient-check-in-resume-TWs8CPQr.js} +3 -3
- package/dist/_chunks/{patient-details-Dv7EiTCo.js → patient-details-DQTxSWY4.js} +2 -2
- package/dist/_chunks/{patient-field-row-DuHWGlLz.js → patient-field-row-CXuWQeQJ.js} +6 -6
- package/dist/_chunks/patient-picker-CQNsqYn2.js +163 -0
- package/dist/_chunks/{patient-search-DBvLFArV.js → patient-search-aTFd7p9s.js} +2 -2
- package/dist/_chunks/{patient-summary-card-D-cDzOim.js → patient-summary-card-j5u7c5Us.js} +2 -2
- package/dist/_chunks/{phone-input-BL8Sj6OG.js → phone-input-DRKcJUi4.js} +2 -2
- package/dist/_chunks/{portal-details-BGc_FLQk.js → portal-details-VfeOI4PB.js} +2 -2
- package/dist/_chunks/{portal-documents-BSI1U5lI.js → portal-documents-hGHlwmbv.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-lJbzai73.js → pregnancy-dating-C-3NLI6K.js} +2 -2
- package/dist/_chunks/prescription-history-748qDVwZ.js +1544 -0
- package/dist/_chunks/print-sheet-CSeqkM3_.js +318 -0
- package/dist/_chunks/{province-select-CTM8A9SM.js → province-select-D-iY9bQG.js} +3 -3
- package/dist/_chunks/{registration-form-CuLiTA52.js → registration-form-Cs9o6e5q.js} +7 -6
- package/dist/_chunks/{reserved.agent-CabZHFJC.js → reserved.agent-L2ElYPuj.js} +7 -7
- package/dist/_chunks/{reset-password-form-D_TePSM1.js → reset-password-form-DwtSNhnA.js} +18 -17
- package/dist/_chunks/{rich-text-editor-C48omVjq.js → rich-text-editor-DFsH5RAj.js} +2 -2
- package/dist/_chunks/save-Dn8uje3f.js +22 -0
- package/dist/_chunks/{search-bar-CQ9_V3EJ.js → search-bar-k1mS5yZl.js} +2 -2
- package/dist/_chunks/{select-CIXKyUMw.js → select-Bm8s3q-X.js} +16 -17
- package/dist/_chunks/{send-registration-link-form-BjkXr0TD.js → send-registration-link-form-C1vw6H1M.js} +6 -5
- package/dist/_chunks/{signature-request-vJDSHZld.js → signature-request-D3sLLOM6.js} +2 -2
- package/dist/_chunks/sync-tray-BhnkgXKK.js +567 -0
- package/dist/_chunks/{tabs-Czkmw5ou.js → tabs-BXr5XeGq.js} +2 -2
- package/dist/_chunks/{task-editor-wKbFbGqW.js → task-editor-DDVDPKJf.js} +26 -25
- package/dist/_chunks/{tasks-panel-DbtJS4QI.js → tasks-panel-BHXaPNOZ.js} +2 -2
- package/dist/_chunks/{toolbar-DjG-cpD_.js → toolbar-Dz_hAUIZ.js} +2 -2
- package/dist/_chunks/{unit-converter-CUAUTu2B.js → unit-converter-CBy7S4Tl.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-jGkJalX8.js → use-appointment-details-read-CBSpX4DI.js} +2 -2
- package/dist/_chunks/use-error-summary-CecJZo6w.js +32 -0
- package/dist/_chunks/use-registration-submit-CVukOAQk.js +84 -0
- package/dist/_chunks/{variables-menu-DQl8H4Gh.js → variables-menu-C4NcClKi.js} +2 -2
- package/dist/_chunks/{voice-control-panel-Cp4vs1iy.js → voice-control-panel-Dc_NFH2R.js} +2 -2
- package/dist/agent-catalog.json +455 -1
- package/dist/agent-i18n/en.json +53 -0
- package/dist/appointment-editor-panel/index.js +2 -2
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/medication.d.ts +28 -0
- package/dist/components/_shared/normalize-diacritics.d.ts +5 -0
- package/dist/components/_shared/patient-picker.d.ts +7 -0
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/autocomplete.d.ts +50 -0
- package/dist/components/autocomplete/index.d.ts +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/bill-line-table/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calls-panel/index.js +1 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/communications-panel/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/document-preview/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/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +5 -0
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/medication-line/index.d.ts +6 -0
- package/dist/components/medication-line/index.js +7 -0
- package/dist/components/medication-line/medication-line.agent.d.ts +14 -0
- package/dist/components/medication-line/medication-line.d.ts +40 -0
- package/dist/components/medication-search/index.d.ts +6 -0
- package/dist/components/medication-search/index.js +10 -0
- package/dist/components/medication-search/medication-search.agent.d.ts +15 -0
- package/dist/components/medication-search/medication-search.d.ts +49 -0
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- 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/phone-input/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/print-sheet/index.d.ts +5 -0
- package/dist/components/print-sheet/index.js +6 -0
- package/dist/components/print-sheet/print-isolation.d.ts +17 -0
- package/dist/components/print-sheet/print-sheet.agent.d.ts +19 -0
- package/dist/components/print-sheet/print-sheet.d.ts +54 -0
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/sync-tray/index.d.ts +4 -0
- package/dist/components/sync-tray/index.js +7 -0
- package/dist/components/sync-tray/sync-tray.agent.d.ts +15 -0
- package/dist/components/sync-tray/sync-tray.d.ts +77 -0
- 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/unit-converter/index.js +1 -1
- package/dist/components/variables-menu/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/host-compat.css +13 -1
- package/dist/i18n/locales/ar.d.ts +134 -0
- package/dist/i18n/locales/ar.js +134 -0
- package/dist/i18n/locales/de.d.ts +134 -0
- package/dist/i18n/locales/de.js +134 -0
- package/dist/i18n/locales/el.d.ts +134 -0
- package/dist/i18n/locales/el.js +134 -0
- package/dist/i18n/locales/en.d.ts +134 -0
- package/dist/i18n/locales/en.js +134 -0
- package/dist/i18n/locales/es.d.ts +134 -0
- package/dist/i18n/locales/es.js +134 -0
- package/dist/i18n/locales/fr.d.ts +134 -0
- package/dist/i18n/locales/fr.js +134 -0
- package/dist/i18n/locales/hi.d.ts +134 -0
- package/dist/i18n/locales/hi.js +134 -0
- package/dist/i18n/locales/it.d.ts +134 -0
- package/dist/i18n/locales/it.js +134 -0
- package/dist/i18n/locales/ja.d.ts +134 -0
- package/dist/i18n/locales/ja.js +134 -0
- package/dist/i18n/locales/nl.d.ts +134 -0
- package/dist/i18n/locales/nl.js +134 -0
- package/dist/i18n/locales/pl.d.ts +134 -0
- package/dist/i18n/locales/pl.js +134 -0
- package/dist/i18n/locales/pt.d.ts +134 -0
- package/dist/i18n/locales/pt.js +134 -0
- package/dist/i18n/locales/ro.d.ts +134 -0
- package/dist/i18n/locales/ro.js +134 -0
- package/dist/i18n/locales/ru.d.ts +134 -0
- package/dist/i18n/locales/ru.js +134 -0
- package/dist/i18n/locales/sq.d.ts +134 -0
- package/dist/i18n/locales/sq.js +134 -0
- package/dist/i18n/locales/sv.d.ts +134 -0
- package/dist/i18n/locales/sv.js +134 -0
- package/dist/i18n/locales/tr.d.ts +134 -0
- package/dist/i18n/locales/tr.js +134 -0
- package/dist/i18n/locales/zh.d.ts +134 -0
- package/dist/i18n/locales/zh.js +134 -0
- package/dist/index.js +1002 -974
- package/dist/locales/ar.json +134 -0
- package/dist/locales/de.json +134 -0
- package/dist/locales/el.json +134 -0
- package/dist/locales/en.json +134 -0
- package/dist/locales/es.json +134 -0
- package/dist/locales/fr.json +134 -0
- package/dist/locales/hi.json +134 -0
- package/dist/locales/it.json +134 -0
- package/dist/locales/ja.json +134 -0
- package/dist/locales/nl.json +134 -0
- package/dist/locales/pl.json +134 -0
- package/dist/locales/pt.json +134 -0
- package/dist/locales/ro.json +134 -0
- package/dist/locales/ru.json +134 -0
- package/dist/locales/sq.json +134 -0
- package/dist/locales/sv.json +134 -0
- package/dist/locales/tr.json +134 -0
- package/dist/locales/zh.json +134 -0
- package/dist/online-bookings-panel/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +3 -3
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/dist/patterns/prescription/index.d.ts +11 -0
- package/dist/patterns/prescription/index.js +13 -0
- package/dist/patterns/prescription/prescription-composer-errors.d.ts +6 -0
- package/dist/patterns/prescription/prescription-composer-item.d.ts +34 -0
- package/dist/patterns/prescription/prescription-composer.d.ts +89 -0
- package/dist/patterns/prescription/prescription-history.d.ts +48 -0
- package/dist/patterns/prescription/prescription-patient-block.d.ts +13 -0
- package/dist/patterns/prescription/prescription-sheet.d.ts +52 -0
- package/dist/patterns/prescription/prescription-status-badge.d.ts +5 -0
- package/dist/patterns/prescription/prescription-types.d.ts +97 -0
- package/dist/patterns/prescription/prescription-validation.d.ts +40 -0
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/reset-password-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +2 -2
- package/package.json +21 -1
- package/dist/_chunks/autocomplete-D10ydpgi.js +0 -562
- package/dist/_chunks/group-options-BvKhQ3xb.js +0 -16
- package/dist/_chunks/normalize-diacritics-BNGbFNlJ.js +0 -7
- package/dist/_chunks/patient-picker-BZJuOgMw.js +0 -173
- package/dist/_chunks/use-registration-submit-CLGHxwoT.js +0 -112
|
@@ -0,0 +1,567 @@
|
|
|
1
|
+
import { jsxs as d, Fragment as q, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as xe, useId as be, useMemo as w, useState as we, useRef as c, useCallback as Te, useImperativeHandle as Ne } from "react";
|
|
3
|
+
import * as T from "@radix-ui/react-popover";
|
|
4
|
+
import { c as Z } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { useTranslation as Ce } from "react-i18next";
|
|
6
|
+
import { u as Se, f as Ie } from "./non-modal-tab-exit-j3CPOuE3.js";
|
|
7
|
+
import { u as ke } from "./use-controllable-state-BiY4xTzM.js";
|
|
8
|
+
import { u as Re } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
9
|
+
import { u as Ae } from "./registry-DvAUVLHh.js";
|
|
10
|
+
import { B as ze } from "./badge-BUk4RjTS.js";
|
|
11
|
+
import { B as V } from "./button-DohK_Ak_.js";
|
|
12
|
+
import { I as je } from "./icon-button-S8_weU3g.js";
|
|
13
|
+
import { C as De } from "./counter-WsvRuum1.js";
|
|
14
|
+
import { S as Be } from "./scroll-area-CY5SLYNw.js";
|
|
15
|
+
import { S as Ee } from "./separator-Bdc9bqoJ.js";
|
|
16
|
+
import { S as G } from "./skeleton-tTWJpvAq.js";
|
|
17
|
+
import { T as j } from "./timestamp-DPLDWdxA.js";
|
|
18
|
+
import { f as Oe } from "./intl-locale-FWh-Y5_3.js";
|
|
19
|
+
import { C as Ke } from "./calendar-clock-hbObjfGY.js";
|
|
20
|
+
import { C as Me } from "./circle-alert-rGDZ73Wh.js";
|
|
21
|
+
import { L as $e } from "./loader-circle-BECIU_8N.js";
|
|
22
|
+
import { C as Le } from "./circle-check-BN6rz4NV.js";
|
|
23
|
+
import { R as Pe } from "./refresh-cw-DnI0cLFC.js";
|
|
24
|
+
const U = {
|
|
25
|
+
type: "object",
|
|
26
|
+
properties: { id: { type: "string" } },
|
|
27
|
+
required: ["id"]
|
|
28
|
+
}, We = {
|
|
29
|
+
id: "sync-tray",
|
|
30
|
+
capabilities: ["open", "close"],
|
|
31
|
+
state: {
|
|
32
|
+
isOpen: {
|
|
33
|
+
type: "boolean",
|
|
34
|
+
descriptionKey: "ui.agent.syncTray.state.isOpen",
|
|
35
|
+
description: "Whether the panel is open. Always true for the inline variant.",
|
|
36
|
+
read: (r) => r.isOpen()
|
|
37
|
+
},
|
|
38
|
+
failedCount: {
|
|
39
|
+
type: "number",
|
|
40
|
+
descriptionKey: "ui.agent.syncTray.state.failedCount",
|
|
41
|
+
description: "How many items failed to send.",
|
|
42
|
+
read: (r) => r.getFailedCount()
|
|
43
|
+
},
|
|
44
|
+
itemIds: {
|
|
45
|
+
type: "string[]",
|
|
46
|
+
descriptionKey: "ui.agent.syncTray.state.itemIds",
|
|
47
|
+
description: "Ids of the listed items. Ids only, never titles or error text.",
|
|
48
|
+
read: (r) => r.getItemIds()
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
actions: {
|
|
52
|
+
open: {
|
|
53
|
+
safety: "read",
|
|
54
|
+
idempotent: !0,
|
|
55
|
+
descriptionKey: "ui.agent.syncTray.actions.open",
|
|
56
|
+
description: "Open the sync panel.",
|
|
57
|
+
invoke: (r) => {
|
|
58
|
+
r.open();
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
close: {
|
|
62
|
+
safety: "read",
|
|
63
|
+
idempotent: !0,
|
|
64
|
+
descriptionKey: "ui.agent.syncTray.actions.close",
|
|
65
|
+
description: "Close the sync panel.",
|
|
66
|
+
invoke: (r) => {
|
|
67
|
+
r.close();
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
retry: {
|
|
71
|
+
// Asks the host to send the item again to an outside authority.
|
|
72
|
+
safety: "write",
|
|
73
|
+
openWorld: !0,
|
|
74
|
+
idempotent: !1,
|
|
75
|
+
argsType: "{ id: string }",
|
|
76
|
+
argsSchema: U,
|
|
77
|
+
errors: ["No item matches the given id."],
|
|
78
|
+
examples: [{ args: { id: "item-1" } }],
|
|
79
|
+
descriptionKey: "ui.agent.syncTray.actions.retry",
|
|
80
|
+
description: "Ask the host to send a failed item again to its destination. Does nothing for an item that has not failed.",
|
|
81
|
+
invoke: (r, i) => {
|
|
82
|
+
r.retry(i.id);
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
open_item: {
|
|
86
|
+
safety: "read",
|
|
87
|
+
idempotent: !0,
|
|
88
|
+
argsType: "{ id: string }",
|
|
89
|
+
argsSchema: U,
|
|
90
|
+
errors: ["No item matches the given id."],
|
|
91
|
+
examples: [{ args: { id: "item-1" } }],
|
|
92
|
+
descriptionKey: "ui.agent.syncTray.actions.openItem",
|
|
93
|
+
description: "Activate an item, as a click would. The host opens its detail.",
|
|
94
|
+
invoke: (r, i) => {
|
|
95
|
+
r.openItem(i.id);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
domHooks: {
|
|
100
|
+
root: {
|
|
101
|
+
attr: "data-component",
|
|
102
|
+
value: "sync-tray",
|
|
103
|
+
description: "Marks the SyncTray root."
|
|
104
|
+
},
|
|
105
|
+
instanceId: {
|
|
106
|
+
attr: "data-component-id",
|
|
107
|
+
sourceProp: "id",
|
|
108
|
+
description: "Sourced from the id prop."
|
|
109
|
+
},
|
|
110
|
+
item: {
|
|
111
|
+
attr: "data-sync-item-id",
|
|
112
|
+
description: "Each listed item emits its id. An id only, never a title."
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}, J = Z("ds:relative ds:inline-flex ds:items-center"), Fe = [
|
|
116
|
+
"ds:flex ds:flex-col",
|
|
117
|
+
"ds:bg-[var(--popover)] ds:text-[var(--popover-foreground)]",
|
|
118
|
+
"ds:border ds:border-[color:var(--card-border)]",
|
|
119
|
+
"ds:rounded-[var(--radius-md)]",
|
|
120
|
+
"ds:shadow-[var(--shadow-lg)]",
|
|
121
|
+
"ds:z-[var(--z-popover)]",
|
|
122
|
+
"ds:w-[min(24rem,calc(100vw-2*var(--spacing-md)))]",
|
|
123
|
+
"ds:h-[calc(100dvh-6rem)] ds:sm:h-auto",
|
|
124
|
+
"ds:p-[var(--spacing-sm)]",
|
|
125
|
+
"ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
|
|
126
|
+
"ds:data-[state=closed]:fade-out-0 ds:data-[state=open]:fade-in-0",
|
|
127
|
+
"ds:data-[state=closed]:zoom-out-95 ds:data-[state=open]:zoom-in-95",
|
|
128
|
+
"ds:motion-reduce:transition-none ds:motion-reduce:animate-none",
|
|
129
|
+
"ds:focus-visible:outline-none",
|
|
130
|
+
"ds:forced-colors:border-[CanvasText]"
|
|
131
|
+
].join(" "), _e = [
|
|
132
|
+
"ds:flex ds:flex-col ds:w-full",
|
|
133
|
+
"ds:rounded-[var(--radius-md)] ds:shadow-[var(--shadow-card)]",
|
|
134
|
+
"ds:[:where(&)]:border-[length:var(--surface-border-width,var(--border-width-sm))] ds:border-[color:var(--card-border)]",
|
|
135
|
+
"ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]",
|
|
136
|
+
"ds:p-[var(--spacing-sm)]"
|
|
137
|
+
].join(" "), He = "ds:absolute ds:-top-[var(--spacing-xs)] ds:-end-[var(--spacing-xs)] ds:pointer-events-none", qe = Z(
|
|
138
|
+
[
|
|
139
|
+
"ds:relative ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
|
|
140
|
+
"ds:rounded-[var(--radius-sm)] ds:p-[var(--spacing-sm)]",
|
|
141
|
+
"ds:text-start ds:focus-visible:outline-none",
|
|
142
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)]"
|
|
143
|
+
].join(" "),
|
|
144
|
+
{
|
|
145
|
+
variants: {
|
|
146
|
+
interactive: {
|
|
147
|
+
true: "ds:transition-colors ds:hover:bg-[color:var(--muted)] ds:motion-reduce:transition-none",
|
|
148
|
+
false: ""
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
defaultVariants: { interactive: !1 }
|
|
152
|
+
}
|
|
153
|
+
), Ve = [
|
|
154
|
+
"ds:bg-transparent ds:border-0 ds:p-0 ds:text-start ds:cursor-pointer",
|
|
155
|
+
"ds:focus-visible:outline-none",
|
|
156
|
+
"ds:after:content-[''] ds:after:absolute ds:after:inset-0 ds:after:rounded-[var(--radius-sm)]",
|
|
157
|
+
"ds:focus-visible:after:outline-[length:var(--focus-ring-width)]",
|
|
158
|
+
"ds:focus-visible:after:outline-solid",
|
|
159
|
+
"ds:focus-visible:after:outline-[color:var(--ring)]",
|
|
160
|
+
"ds:focus-visible:after:outline-offset-[length:var(--focus-ring-offset)]",
|
|
161
|
+
"ds:forced-colors:focus-visible:after:outline-[CanvasText]"
|
|
162
|
+
].join(" "), Ge = {
|
|
163
|
+
sent: { variant: "success", icon: Le },
|
|
164
|
+
pending: { variant: "info", icon: $e },
|
|
165
|
+
failed: { variant: "error", icon: Me },
|
|
166
|
+
scheduled: { variant: "neutral", icon: Ke }
|
|
167
|
+
};
|
|
168
|
+
function Q(r) {
|
|
169
|
+
const i = r ? Date.parse(r) : NaN;
|
|
170
|
+
return Number.isNaN(i) ? -1 / 0 : i;
|
|
171
|
+
}
|
|
172
|
+
const X = 720 * 60 * 1e3;
|
|
173
|
+
function Y() {
|
|
174
|
+
return /* @__PURE__ */ d(
|
|
175
|
+
"div",
|
|
176
|
+
{
|
|
177
|
+
"aria-hidden": "true",
|
|
178
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:p-[var(--spacing-sm)]",
|
|
179
|
+
children: [
|
|
180
|
+
/* @__PURE__ */ t(G, { variant: "text", size: "md", width: "60%" }),
|
|
181
|
+
/* @__PURE__ */ t(G, { variant: "text", size: "sm", width: "85%" })
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
const Ue = xe(
|
|
187
|
+
({
|
|
188
|
+
id: r,
|
|
189
|
+
destinations: i,
|
|
190
|
+
items: l,
|
|
191
|
+
variant: ee = "popover",
|
|
192
|
+
open: se,
|
|
193
|
+
defaultOpen: te = !1,
|
|
194
|
+
onOpenChange: ae,
|
|
195
|
+
onOpenItem: f,
|
|
196
|
+
onRetry: N,
|
|
197
|
+
onViewAll: D,
|
|
198
|
+
maxItemsPerDestination: re = 5,
|
|
199
|
+
loading: B = !1,
|
|
200
|
+
title: ne,
|
|
201
|
+
headingLevel: E = 2,
|
|
202
|
+
className: O,
|
|
203
|
+
...K
|
|
204
|
+
}, oe) => {
|
|
205
|
+
const { t: o, i18n: ie } = Ce("ui"), C = Oe(ie.language), de = (e) => o(e === "sent" ? "syncTray.status.sent" : e === "pending" ? "syncTray.status.pending" : e === "failed" ? "syncTray.status.failed" : "syncTray.status.scheduled"), M = be(), [ce, m] = ke({
|
|
206
|
+
value: se,
|
|
207
|
+
defaultValue: te,
|
|
208
|
+
onChange: ae
|
|
209
|
+
}), v = ee === "inline", S = v ? !0 : ce ?? !1, le = ne ?? o("syncTray.title"), ue = `h${E}`, pe = `h${E + 1}`, $ = w(
|
|
210
|
+
() => new Set(i.map((e) => e.id)),
|
|
211
|
+
[i]
|
|
212
|
+
), fe = w(() => {
|
|
213
|
+
var n;
|
|
214
|
+
const e = /* @__PURE__ */ new Map(), a = new Map(l.map((s, p) => [s.id, p]));
|
|
215
|
+
for (const s of i) e.set(s.id, []);
|
|
216
|
+
for (const s of l) (n = e.get(s.destinationId)) == null || n.push(s);
|
|
217
|
+
for (const [s, p] of e)
|
|
218
|
+
e.set(
|
|
219
|
+
s,
|
|
220
|
+
[...p].sort((b, y) => {
|
|
221
|
+
const z = Q(y.at) - Q(b.at);
|
|
222
|
+
return z !== 0 && !Number.isNaN(z) ? z : (a.get(b.id) ?? 0) - (a.get(y.id) ?? 0);
|
|
223
|
+
})
|
|
224
|
+
);
|
|
225
|
+
return e;
|
|
226
|
+
}, [i, l]), u = w(
|
|
227
|
+
() => l.filter(
|
|
228
|
+
(e) => e.status === "failed" && $.has(e.destinationId)
|
|
229
|
+
).length,
|
|
230
|
+
[l, $]
|
|
231
|
+
), [me, ye] = we(
|
|
232
|
+
() => /* @__PURE__ */ new Set()
|
|
233
|
+
), I = c(null), g = c(null), L = c(N);
|
|
234
|
+
L.current = N;
|
|
235
|
+
const h = c(f);
|
|
236
|
+
h.current = f;
|
|
237
|
+
const x = c(l);
|
|
238
|
+
x.current = l;
|
|
239
|
+
const P = c(u);
|
|
240
|
+
P.current = u;
|
|
241
|
+
const W = c(S);
|
|
242
|
+
W.current = S;
|
|
243
|
+
const F = (e, a) => ye((n) => {
|
|
244
|
+
const s = new Set(n);
|
|
245
|
+
return a ? s.add(e) : s.delete(e), s;
|
|
246
|
+
}), k = Te((e) => {
|
|
247
|
+
const a = L.current;
|
|
248
|
+
if (!a) return;
|
|
249
|
+
g.current = e.id;
|
|
250
|
+
const n = a(e);
|
|
251
|
+
if (n && typeof n.then == "function") {
|
|
252
|
+
F(e.id, !0);
|
|
253
|
+
const s = () => F(e.id, !1);
|
|
254
|
+
n.then(s, s);
|
|
255
|
+
}
|
|
256
|
+
}, []);
|
|
257
|
+
Re(() => {
|
|
258
|
+
const e = g.current;
|
|
259
|
+
if (!e) return;
|
|
260
|
+
const a = I.current;
|
|
261
|
+
if (!a) return;
|
|
262
|
+
const n = a.querySelector(
|
|
263
|
+
`[data-sync-retry="${CSS.escape(e)}"]`
|
|
264
|
+
);
|
|
265
|
+
if (n) {
|
|
266
|
+
document.activeElement !== n && (g.current = null);
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
const s = document.activeElement;
|
|
270
|
+
(!s || s === document.body || !a.contains(s)) && (a.querySelector(
|
|
271
|
+
`[data-sync-item-id="${CSS.escape(e)}"]`
|
|
272
|
+
) ?? a).focus(), g.current = null;
|
|
273
|
+
});
|
|
274
|
+
const ve = w(
|
|
275
|
+
() => ({
|
|
276
|
+
open: () => m(!0),
|
|
277
|
+
close: () => m(!1),
|
|
278
|
+
isOpen: () => W.current,
|
|
279
|
+
getFailedCount: () => P.current,
|
|
280
|
+
getItemIds: () => x.current.map((e) => e.id),
|
|
281
|
+
retry: (e) => {
|
|
282
|
+
const a = x.current.find((n) => n.id === e);
|
|
283
|
+
a && a.status === "failed" && k(a);
|
|
284
|
+
},
|
|
285
|
+
openItem: (e) => {
|
|
286
|
+
var n;
|
|
287
|
+
const a = x.current.find((s) => s.id === e);
|
|
288
|
+
a && ((n = h.current) == null || n.call(h, a));
|
|
289
|
+
}
|
|
290
|
+
}),
|
|
291
|
+
[m, k]
|
|
292
|
+
);
|
|
293
|
+
Ae(We, ve, r);
|
|
294
|
+
const R = c(null);
|
|
295
|
+
Ne(oe, () => R.current, []);
|
|
296
|
+
const ge = Se(!v, {
|
|
297
|
+
getAnchor: Ie,
|
|
298
|
+
onReturnToTrigger: () => m(!1)
|
|
299
|
+
});
|
|
300
|
+
if (i.length === 0) return null;
|
|
301
|
+
const A = `${M}-title`, _ = /* @__PURE__ */ d(q, { children: [
|
|
302
|
+
/* @__PURE__ */ t("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:pb-[var(--spacing-xs)]", children: /* @__PURE__ */ t(
|
|
303
|
+
ue,
|
|
304
|
+
{
|
|
305
|
+
id: A,
|
|
306
|
+
dir: "auto",
|
|
307
|
+
className: "ds:m-0 type-title-card ds:text-[color:var(--foreground)]",
|
|
308
|
+
children: le
|
|
309
|
+
}
|
|
310
|
+
) }),
|
|
311
|
+
/* @__PURE__ */ t(Ee, {}),
|
|
312
|
+
/* @__PURE__ */ t(
|
|
313
|
+
Be,
|
|
314
|
+
{
|
|
315
|
+
orientation: "vertical",
|
|
316
|
+
className: v ? "ds:flex-1" : "ds:flex-1 ds:sm:flex-none ds:sm:[max-block-size:var(--sync-tray-max-block-size,28rem)]",
|
|
317
|
+
children: /* @__PURE__ */ t("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:pt-[var(--spacing-sm)]", children: i.map((e) => {
|
|
318
|
+
const a = (fe.get(e.id) ?? []).slice(
|
|
319
|
+
0,
|
|
320
|
+
Math.max(0, re)
|
|
321
|
+
), n = `${M}-dest-${e.id}`;
|
|
322
|
+
return /* @__PURE__ */ d(
|
|
323
|
+
"div",
|
|
324
|
+
{
|
|
325
|
+
role: "group",
|
|
326
|
+
"aria-labelledby": n,
|
|
327
|
+
"data-sync-destination-id": e.id,
|
|
328
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
329
|
+
children: [
|
|
330
|
+
/* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]", children: [
|
|
331
|
+
/* @__PURE__ */ t(
|
|
332
|
+
pe,
|
|
333
|
+
{
|
|
334
|
+
id: n,
|
|
335
|
+
dir: "auto",
|
|
336
|
+
className: "ds:m-0 type-title-item ds:text-[color:var(--foreground)] ds:[overflow-wrap:anywhere]",
|
|
337
|
+
children: e.label
|
|
338
|
+
}
|
|
339
|
+
),
|
|
340
|
+
e.description ? /* @__PURE__ */ t(
|
|
341
|
+
"p",
|
|
342
|
+
{
|
|
343
|
+
dir: "auto",
|
|
344
|
+
className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)] ds:[overflow-wrap:anywhere]",
|
|
345
|
+
children: e.description
|
|
346
|
+
}
|
|
347
|
+
) : null,
|
|
348
|
+
/* @__PURE__ */ d("dl", { className: "ds:m-0 ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] type-meta ds:text-[color:var(--muted-foreground)]", children: [
|
|
349
|
+
/* @__PURE__ */ d("div", { className: "ds:flex ds:flex-wrap ds:gap-x-[var(--spacing-xs)]", children: [
|
|
350
|
+
/* @__PURE__ */ t("dt", { children: o("syncTray.lastSent") }),
|
|
351
|
+
/* @__PURE__ */ t("dd", { className: "ds:m-0", children: e.lastSentAt ? /* @__PURE__ */ t(
|
|
352
|
+
j,
|
|
353
|
+
{
|
|
354
|
+
locale: C,
|
|
355
|
+
value: e.lastSentAt,
|
|
356
|
+
relativeWindow: X
|
|
357
|
+
}
|
|
358
|
+
) : o("syncTray.neverSent") })
|
|
359
|
+
] }),
|
|
360
|
+
e.nextDueAt ? /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-wrap ds:gap-x-[var(--spacing-xs)]", children: [
|
|
361
|
+
/* @__PURE__ */ t("dt", { children: o("syncTray.nextDue") }),
|
|
362
|
+
/* @__PURE__ */ t("dd", { className: "ds:m-0", children: /* @__PURE__ */ t(
|
|
363
|
+
j,
|
|
364
|
+
{
|
|
365
|
+
locale: C,
|
|
366
|
+
value: e.nextDueAt,
|
|
367
|
+
format: "absolute",
|
|
368
|
+
absoluteFormat: { dateStyle: "medium" }
|
|
369
|
+
}
|
|
370
|
+
) })
|
|
371
|
+
] }) : null
|
|
372
|
+
] })
|
|
373
|
+
] }),
|
|
374
|
+
B ? /* @__PURE__ */ d(q, { children: [
|
|
375
|
+
/* @__PURE__ */ t(Y, {}),
|
|
376
|
+
/* @__PURE__ */ t(Y, {})
|
|
377
|
+
] }) : a.length === 0 ? /* @__PURE__ */ t("p", { className: "ds:m-0 ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] type-body-sm ds:text-[color:var(--muted-foreground)]", children: o("syncTray.empty") }) : /* @__PURE__ */ t("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:p-0", children: a.map((s) => {
|
|
378
|
+
const p = Ge[s.status], b = p.icon, y = /* @__PURE__ */ t(
|
|
379
|
+
"span",
|
|
380
|
+
{
|
|
381
|
+
dir: "auto",
|
|
382
|
+
className: "type-body ds:font-medium ds:text-[color:var(--foreground)] ds:[overflow-wrap:anywhere]",
|
|
383
|
+
children: s.title
|
|
384
|
+
}
|
|
385
|
+
);
|
|
386
|
+
return /* @__PURE__ */ d(
|
|
387
|
+
"li",
|
|
388
|
+
{
|
|
389
|
+
"data-sync-item-id": s.id,
|
|
390
|
+
"data-status": s.status,
|
|
391
|
+
tabIndex: -1,
|
|
392
|
+
className: qe({
|
|
393
|
+
interactive: !!f
|
|
394
|
+
}),
|
|
395
|
+
children: [
|
|
396
|
+
/* @__PURE__ */ d("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
397
|
+
f ? /* @__PURE__ */ t(
|
|
398
|
+
"button",
|
|
399
|
+
{
|
|
400
|
+
type: "button",
|
|
401
|
+
className: `${Ve} ds:contents`,
|
|
402
|
+
onClick: () => f(s),
|
|
403
|
+
children: y
|
|
404
|
+
}
|
|
405
|
+
) : y,
|
|
406
|
+
s.detail ? /* @__PURE__ */ t(
|
|
407
|
+
"span",
|
|
408
|
+
{
|
|
409
|
+
dir: "auto",
|
|
410
|
+
className: "type-body-sm ds:text-[color:var(--muted-foreground)] ds:[overflow-wrap:anywhere]",
|
|
411
|
+
children: s.detail
|
|
412
|
+
}
|
|
413
|
+
) : null,
|
|
414
|
+
/* @__PURE__ */ d("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
415
|
+
/* @__PURE__ */ t(
|
|
416
|
+
ze,
|
|
417
|
+
{
|
|
418
|
+
variant: p.variant,
|
|
419
|
+
size: "sm",
|
|
420
|
+
leading: /* @__PURE__ */ t(b, { "aria-hidden": "true" }),
|
|
421
|
+
children: de(s.status)
|
|
422
|
+
}
|
|
423
|
+
),
|
|
424
|
+
s.at ? /* @__PURE__ */ t(
|
|
425
|
+
j,
|
|
426
|
+
{
|
|
427
|
+
locale: C,
|
|
428
|
+
value: s.at,
|
|
429
|
+
relativeWindow: X
|
|
430
|
+
}
|
|
431
|
+
) : null
|
|
432
|
+
] }),
|
|
433
|
+
s.status === "failed" && s.error ? /* @__PURE__ */ t(
|
|
434
|
+
"span",
|
|
435
|
+
{
|
|
436
|
+
dir: "auto",
|
|
437
|
+
className: "type-body-sm ds:text-destructive ds:[overflow-wrap:anywhere]",
|
|
438
|
+
children: s.error
|
|
439
|
+
}
|
|
440
|
+
) : null
|
|
441
|
+
] }),
|
|
442
|
+
s.status === "failed" && N ? /* @__PURE__ */ t(
|
|
443
|
+
V,
|
|
444
|
+
{
|
|
445
|
+
type: "button",
|
|
446
|
+
intent: "outline",
|
|
447
|
+
size: "sm",
|
|
448
|
+
"data-sync-retry": s.id,
|
|
449
|
+
loading: me.has(s.id),
|
|
450
|
+
"aria-label": o("syncTray.retryLabel", {
|
|
451
|
+
title: s.title
|
|
452
|
+
}),
|
|
453
|
+
className: "ds:relative ds:z-[1] ds:shrink-0",
|
|
454
|
+
onClick: () => k(s),
|
|
455
|
+
children: o("syncTray.retry")
|
|
456
|
+
}
|
|
457
|
+
) : null
|
|
458
|
+
]
|
|
459
|
+
},
|
|
460
|
+
s.id
|
|
461
|
+
);
|
|
462
|
+
}) }),
|
|
463
|
+
D ? /* @__PURE__ */ t("div", { className: "ds:ps-[var(--spacing-xs)]", children: /* @__PURE__ */ t(
|
|
464
|
+
V,
|
|
465
|
+
{
|
|
466
|
+
type: "button",
|
|
467
|
+
intent: "outline",
|
|
468
|
+
size: "sm",
|
|
469
|
+
"aria-describedby": n,
|
|
470
|
+
onClick: () => D(e),
|
|
471
|
+
children: o("syncTray.viewAll")
|
|
472
|
+
}
|
|
473
|
+
) }) : null
|
|
474
|
+
]
|
|
475
|
+
},
|
|
476
|
+
e.id
|
|
477
|
+
);
|
|
478
|
+
}) })
|
|
479
|
+
}
|
|
480
|
+
)
|
|
481
|
+
] }), H = /* @__PURE__ */ t("span", { role: "status", className: "ds:sr-only", children: B ? o("syncTray.loading") : "" });
|
|
482
|
+
if (v)
|
|
483
|
+
return /* @__PURE__ */ d(
|
|
484
|
+
"div",
|
|
485
|
+
{
|
|
486
|
+
ref: R,
|
|
487
|
+
"data-component": "sync-tray",
|
|
488
|
+
"data-component-id": r,
|
|
489
|
+
className: [J(), "ds:w-full", O].filter(Boolean).join(" "),
|
|
490
|
+
...K,
|
|
491
|
+
children: [
|
|
492
|
+
/* @__PURE__ */ t(
|
|
493
|
+
"section",
|
|
494
|
+
{
|
|
495
|
+
ref: (e) => {
|
|
496
|
+
I.current = e;
|
|
497
|
+
},
|
|
498
|
+
"aria-labelledby": A,
|
|
499
|
+
tabIndex: -1,
|
|
500
|
+
className: _e,
|
|
501
|
+
children: _
|
|
502
|
+
}
|
|
503
|
+
),
|
|
504
|
+
H
|
|
505
|
+
]
|
|
506
|
+
}
|
|
507
|
+
);
|
|
508
|
+
const he = u > 0 ? o("syncTray.labelWithFailures", { count: u }) : o("syncTray.label");
|
|
509
|
+
return /* @__PURE__ */ t(
|
|
510
|
+
"div",
|
|
511
|
+
{
|
|
512
|
+
ref: R,
|
|
513
|
+
"data-component": "sync-tray",
|
|
514
|
+
"data-component-id": r,
|
|
515
|
+
className: [J(), O].filter(Boolean).join(" "),
|
|
516
|
+
...K,
|
|
517
|
+
children: /* @__PURE__ */ d(T.Root, { open: S, onOpenChange: m, children: [
|
|
518
|
+
/* @__PURE__ */ t(T.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
|
|
519
|
+
je,
|
|
520
|
+
{
|
|
521
|
+
icon: /* @__PURE__ */ t(Pe, {}),
|
|
522
|
+
intent: "outline",
|
|
523
|
+
"aria-label": he,
|
|
524
|
+
"aria-haspopup": "dialog"
|
|
525
|
+
}
|
|
526
|
+
) }),
|
|
527
|
+
u > 0 ? /* @__PURE__ */ t(
|
|
528
|
+
De,
|
|
529
|
+
{
|
|
530
|
+
variant: "notification",
|
|
531
|
+
size: "md",
|
|
532
|
+
"aria-hidden": "true",
|
|
533
|
+
"data-testid": "sync-tray-badge",
|
|
534
|
+
className: He,
|
|
535
|
+
children: u > 99 ? "99+" : String(u)
|
|
536
|
+
}
|
|
537
|
+
) : null,
|
|
538
|
+
H,
|
|
539
|
+
/* @__PURE__ */ t(T.Portal, { children: /* @__PURE__ */ t(
|
|
540
|
+
T.Content,
|
|
541
|
+
{
|
|
542
|
+
ref: (e) => {
|
|
543
|
+
I.current = e;
|
|
544
|
+
},
|
|
545
|
+
role: "dialog",
|
|
546
|
+
"aria-labelledby": A,
|
|
547
|
+
onKeyDown: ge,
|
|
548
|
+
side: "bottom",
|
|
549
|
+
align: "end",
|
|
550
|
+
sideOffset: 8,
|
|
551
|
+
collisionPadding: 16,
|
|
552
|
+
className: Fe,
|
|
553
|
+
children: _
|
|
554
|
+
}
|
|
555
|
+
) })
|
|
556
|
+
] })
|
|
557
|
+
}
|
|
558
|
+
);
|
|
559
|
+
}
|
|
560
|
+
);
|
|
561
|
+
Ue.displayName = "SyncTray";
|
|
562
|
+
export {
|
|
563
|
+
Ue as S,
|
|
564
|
+
J as a,
|
|
565
|
+
We as s
|
|
566
|
+
};
|
|
567
|
+
//# sourceMappingURL=sync-tray-BhnkgXKK.js.map
|
|
@@ -4,7 +4,7 @@ import * as S from "@radix-ui/react-tabs";
|
|
|
4
4
|
import { a as A, c as G } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { useTranslation as te } from "react-i18next";
|
|
6
6
|
import { c as se } from "./compose-refs-C0k0tdqF.js";
|
|
7
|
-
import { S as ae } from "./select-
|
|
7
|
+
import { S as ae } from "./select-Bm8s3q-X.js";
|
|
8
8
|
import { D as V } from "./dropdown-menu-DBWaW4pq.js";
|
|
9
9
|
import { u as re } from "./registry-DvAUVLHh.js";
|
|
10
10
|
import { X as oe } from "./x-B5YnXwCz.js";
|
|
@@ -410,4 +410,4 @@ export {
|
|
|
410
410
|
Q as c,
|
|
411
411
|
de as t
|
|
412
412
|
};
|
|
413
|
-
//# sourceMappingURL=tabs-
|
|
413
|
+
//# sourceMappingURL=tabs-BXr5XeGq.js.map
|