@alfadocs/ui-kit 1.142.0 → 1.143.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/{ai-permission-notice-C-xR2_iS.js → ai-permission-notice-CEDEWE2-.js} +19 -11
- package/dist/_chunks/{ai-summary-panel-BhCo2vZF.js → ai-summary-panel-CJVOjr2I.js} +3 -3
- package/dist/_chunks/{alia-sidebar-uxTsUbIt.js → alia-sidebar-AKz42_XE.js} +2 -2
- package/dist/_chunks/{anamnesis-card-sUFT0dpF.js → anamnesis-card-W8ZaDytS.js} +15 -14
- package/dist/_chunks/{anamnesis-summary-rows-C2Ca9_Qj.js → anamnesis-summary-rows-wUl7oXBO.js} +2 -2
- package/dist/_chunks/{appointment-card-C0UFYFLZ.js → appointment-card-HOZrABrQ.js} +2 -2
- package/dist/_chunks/{appointment-details-panel.history-BUXwhill.js → appointment-details-panel.history-B8R8XfGe.js} +36 -29
- package/dist/_chunks/appointment-timeline-CMc_3C74.js +776 -0
- package/dist/_chunks/{appointment-tray-dfgScPcC.js → appointment-tray-D8k5YKLU.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-CXi6moSa.js → balance-badge-cell-10BdaOQ8.js} +4 -4
- package/dist/_chunks/{calendar-appointment-editor-dialog-BDc8Q4Ji.js → calendar-appointment-editor-dialog-9kVppi9f.js} +8 -8
- package/dist/_chunks/{calendar-waiting-list-panel-js-0KEh8.js → calendar-waiting-list-panel-CSFJw5np.js} +2 -2
- package/dist/_chunks/{calendar.sheets-sBWH7Jxn.js → calendar.sheets-DZh3p8HE.js} +4 -4
- package/dist/_chunks/{care-plan-card-TZH6C60K.js → care-plan-card-CkRqA58O.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-CufvXAWa.js → care-plan-entry-card-DurPuYAP.js} +2 -2
- package/dist/_chunks/{care-plan-header-CeFXUDnL.js → care-plan-header-C4i93i8H.js} +2 -2
- package/dist/_chunks/{chat-message-B4TMeZ2m.js → chat-message-IG9uRq6y.js} +2 -2
- package/dist/_chunks/{clinical-note-card-D--IwbZa.js → clinical-note-card-D-9xmRpf.js} +68 -52
- package/dist/_chunks/{communications-panel-EP27FN7e.js → communications-panel-MgAuWYBy.js} +3 -3
- package/dist/_chunks/{control-room-rail-7SidoPJH.js → control-room-rail-DBmNpbDE.js} +2 -2
- package/dist/_chunks/{data-table-Bq1FRBGB.js → data-table-Huk4CNHs.js} +115 -115
- package/dist/_chunks/{entity-summary-CPUHzyil.js → entity-summary-DgZSdp6d.js} +2 -2
- package/dist/_chunks/{file-manager-ChQSjfU8.js → file-manager-kdPsJq_k.js} +2 -2
- package/dist/_chunks/{heatmap-D0OGx-70.js → heatmap-Cb4JSpv_.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-ByOAy2Sb.js → link-cell-renderer-Bt_sl4iP.js} +3 -3
- package/dist/_chunks/{message-card-Bw_q1qKx.js → message-card-DvBjcZgH.js} +10 -9
- package/dist/_chunks/{message-tray-g6dp_AAt.js → message-tray-BHaE254g.js} +2 -2
- package/dist/_chunks/{notes-panel-CtMLUJOe.js → notes-panel-DCKbuZqS.js} +399 -397
- package/dist/_chunks/{notification-card-DRMv2_pW.js → notification-card-CDuzAytQ.js} +11 -10
- package/dist/_chunks/{notification-tray-DqCYs9Bw.js → notification-tray-CnPV8jDA.js} +2 -2
- package/dist/_chunks/{patient-account-settings-e8Wp2g-F.js → patient-account-settings-BQ9bMsJS.js} +2 -2
- package/dist/_chunks/{patient-check-in-resume-_nwf9gpx.js → patient-check-in-resume-v5lYhMsh.js} +4 -4
- package/dist/_chunks/{portal-details-D9oF6FUV.js → portal-details-CwX3VNxh.js} +2 -2
- package/dist/_chunks/{portal-documents-DSiLSave.js → portal-documents-BWdXhWpZ.js} +2 -2
- package/dist/_chunks/{portal-parts-8qrUM-uK.js → portal-parts-DbCMuZVl.js} +2 -2
- package/dist/_chunks/{prescription-history-DFcPXYdF.js → prescription-history-DPjqflwJ.js} +2 -2
- package/dist/_chunks/{product-hub-panel-BPpmVDm5.js → product-hub-panel-DiWjSIR2.js} +2 -2
- package/dist/_chunks/{recaptcha-widget-iglUBIF3.js → recaptcha-widget-D6RwGg8B.js} +35 -35
- package/dist/_chunks/{registration-form-DRGMzq9V.js → registration-form-BEsIjznv.js} +2 -2
- package/dist/_chunks/{rich-text-editor-CQ54ybTB.js → rich-text-editor-DoCaj0qc.js} +2 -2
- package/dist/_chunks/{sync-tray-BTmveFGE.js → sync-tray-BgrO4QjH.js} +55 -53
- package/dist/_chunks/{tasks-panel-Dmp49cBo.js → tasks-panel-CDFHAHrN.js} +137 -137
- package/dist/_chunks/{timeline-DXko0M1t.js → timeline-BzGi_3GQ.js} +2 -2
- package/dist/_chunks/timestamp-UMF1llBs.js +113 -0
- package/dist/_chunks/{tool-rail-CKOuVHUQ.js → tool-rail-mWmYNRCV.js} +56 -56
- package/dist/_chunks/{use-appointment-details-read-DIRHedaM.js → use-appointment-details-read-xj0PyEhI.js} +591 -576
- package/dist/_chunks/use-resolved-theme-B0f1_oyq.js +32 -0
- package/dist/_chunks/{voice-control-panel-CfBUrzhJ.js → voice-control-panel-DqvvZN2A.js} +2 -2
- package/dist/_chunks/{workflow-map-CsfRHhlz.js → workflow-map-CwfLHuiD.js} +2 -2
- package/dist/agent-catalog.json +10 -7
- package/dist/agent-i18n/en.json +3 -3
- package/dist/appointment-editor-panel/index.js +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/ai-summary-panel/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +3 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +5 -0
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +27 -0
- package/dist/components/appointment-timeline/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/care-plan-header/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +2 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/communications-panel/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +5 -4
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/recaptcha-widget/recaptcha-widget.d.ts +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/sync-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/timestamp/index.js +1 -1
- package/dist/components/timestamp/timestamp.d.ts +6 -0
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +58 -56
- package/dist/hooks/use-resolved-theme.d.ts +20 -0
- package/dist/i18n/locales/ar.d.ts +5 -0
- package/dist/i18n/locales/ar.js +5 -0
- package/dist/i18n/locales/de.d.ts +5 -0
- package/dist/i18n/locales/de.js +5 -0
- package/dist/i18n/locales/el.d.ts +5 -0
- package/dist/i18n/locales/el.js +5 -0
- package/dist/i18n/locales/en.d.ts +5 -0
- package/dist/i18n/locales/en.js +5 -0
- package/dist/i18n/locales/es.d.ts +5 -0
- package/dist/i18n/locales/es.js +5 -0
- package/dist/i18n/locales/fr.d.ts +5 -0
- package/dist/i18n/locales/fr.js +5 -0
- package/dist/i18n/locales/hi.d.ts +5 -0
- package/dist/i18n/locales/hi.js +5 -0
- package/dist/i18n/locales/it.d.ts +5 -0
- package/dist/i18n/locales/it.js +5 -0
- package/dist/i18n/locales/ja.d.ts +5 -0
- package/dist/i18n/locales/ja.js +5 -0
- package/dist/i18n/locales/nl.d.ts +5 -0
- package/dist/i18n/locales/nl.js +5 -0
- package/dist/i18n/locales/pl.d.ts +5 -0
- package/dist/i18n/locales/pl.js +5 -0
- package/dist/i18n/locales/pt.d.ts +5 -0
- package/dist/i18n/locales/pt.js +5 -0
- package/dist/i18n/locales/ro.d.ts +5 -0
- package/dist/i18n/locales/ro.js +5 -0
- package/dist/i18n/locales/ru.d.ts +5 -0
- package/dist/i18n/locales/ru.js +5 -0
- package/dist/i18n/locales/sq.d.ts +5 -0
- package/dist/i18n/locales/sq.js +5 -0
- package/dist/i18n/locales/sv.d.ts +5 -0
- package/dist/i18n/locales/sv.js +5 -0
- package/dist/i18n/locales/tr.d.ts +5 -0
- package/dist/i18n/locales/tr.js +5 -0
- package/dist/i18n/locales/zh.d.ts +5 -0
- package/dist/i18n/locales/zh.js +5 -0
- package/dist/index.js +44 -44
- package/dist/locales/ar.json +5 -0
- package/dist/locales/de.json +5 -0
- package/dist/locales/el.json +5 -0
- package/dist/locales/en.json +5 -0
- package/dist/locales/es.json +5 -0
- package/dist/locales/fr.json +5 -0
- package/dist/locales/hi.json +5 -0
- package/dist/locales/it.json +5 -0
- package/dist/locales/ja.json +5 -0
- package/dist/locales/nl.json +5 -0
- package/dist/locales/pl.json +5 -0
- package/dist/locales/pt.json +5 -0
- package/dist/locales/ro.json +5 -0
- package/dist/locales/ru.json +5 -0
- package/dist/locales/sq.json +5 -0
- package/dist/locales/sv.json +5 -0
- package/dist/locales/tr.json +5 -0
- package/dist/locales/zh.json +5 -0
- package/dist/online-bookings-panel/index.js +1 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +2 -2
- 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.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/waiting-list-panel/index.js +2 -2
- package/package.json +1 -1
- package/dist/_chunks/appointment-timeline-BK68CCBl.js +0 -689
- package/dist/_chunks/timestamp-DPLDWdxA.js +0 -109
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as i, Fragment as q, jsx as t } from "react/jsx-runtime";
|
|
2
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
3
|
import * as T from "@radix-ui/react-popover";
|
|
4
4
|
import { c as Z } from "./index-D2ZczOXr.js";
|
|
@@ -9,13 +9,13 @@ import { u as Re } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
|
9
9
|
import { u as Ae } from "./registry-DvAUVLHh.js";
|
|
10
10
|
import { B as ze } from "./badge-BUk4RjTS.js";
|
|
11
11
|
import { B as V } from "./button-DohK_Ak_.js";
|
|
12
|
-
import { I as
|
|
13
|
-
import { C as
|
|
14
|
-
import { S as
|
|
15
|
-
import { S as
|
|
12
|
+
import { I as Oe } from "./icon-button-S8_weU3g.js";
|
|
13
|
+
import { C as je } from "./counter-WsvRuum1.js";
|
|
14
|
+
import { S as De } from "./scroll-area-CY5SLYNw.js";
|
|
15
|
+
import { S as Be } from "./separator-Bdc9bqoJ.js";
|
|
16
16
|
import { S as G } from "./skeleton-tTWJpvAq.js";
|
|
17
|
-
import { T as
|
|
18
|
-
import { f as
|
|
17
|
+
import { T as O } from "./timestamp-UMF1llBs.js";
|
|
18
|
+
import { f as Ee } from "./intl-locale-FWh-Y5_3.js";
|
|
19
19
|
import { C as Ke } from "./calendar-clock-hbObjfGY.js";
|
|
20
20
|
import { C as Me } from "./circle-alert-rGDZ73Wh.js";
|
|
21
21
|
import { L as $e } from "./loader-circle-BECIU_8N.js";
|
|
@@ -78,8 +78,8 @@ const U = {
|
|
|
78
78
|
examples: [{ args: { id: "item-1" } }],
|
|
79
79
|
descriptionKey: "ui.agent.syncTray.actions.retry",
|
|
80
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,
|
|
82
|
-
r.retry(
|
|
81
|
+
invoke: (r, d) => {
|
|
82
|
+
r.retry(d.id);
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
open_item: {
|
|
@@ -91,8 +91,8 @@ const U = {
|
|
|
91
91
|
examples: [{ args: { id: "item-1" } }],
|
|
92
92
|
descriptionKey: "ui.agent.syncTray.actions.openItem",
|
|
93
93
|
description: "Activate an item, as a click would. The host opens its detail.",
|
|
94
|
-
invoke: (r,
|
|
95
|
-
r.openItem(
|
|
94
|
+
invoke: (r, d) => {
|
|
95
|
+
r.openItem(d.id);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
},
|
|
@@ -166,12 +166,12 @@ const U = {
|
|
|
166
166
|
scheduled: { variant: "neutral", icon: Ke }
|
|
167
167
|
};
|
|
168
168
|
function Q(r) {
|
|
169
|
-
const
|
|
170
|
-
return Number.isNaN(
|
|
169
|
+
const d = r ? Date.parse(r) : NaN;
|
|
170
|
+
return Number.isNaN(d) ? -1 / 0 : d;
|
|
171
171
|
}
|
|
172
172
|
const X = 720 * 60 * 1e3;
|
|
173
173
|
function Y() {
|
|
174
|
-
return /* @__PURE__ */
|
|
174
|
+
return /* @__PURE__ */ i(
|
|
175
175
|
"div",
|
|
176
176
|
{
|
|
177
177
|
"aria-hidden": "true",
|
|
@@ -186,7 +186,7 @@ function Y() {
|
|
|
186
186
|
const Ue = xe(
|
|
187
187
|
({
|
|
188
188
|
id: r,
|
|
189
|
-
destinations:
|
|
189
|
+
destinations: d,
|
|
190
190
|
items: l,
|
|
191
191
|
variant: ee = "popover",
|
|
192
192
|
open: se,
|
|
@@ -194,25 +194,25 @@ const Ue = xe(
|
|
|
194
194
|
onOpenChange: ae,
|
|
195
195
|
onOpenItem: f,
|
|
196
196
|
onRetry: N,
|
|
197
|
-
onViewAll:
|
|
197
|
+
onViewAll: j,
|
|
198
198
|
maxItemsPerDestination: re = 5,
|
|
199
|
-
loading:
|
|
199
|
+
loading: D = !1,
|
|
200
200
|
title: ne,
|
|
201
|
-
headingLevel:
|
|
202
|
-
className:
|
|
201
|
+
headingLevel: B = 2,
|
|
202
|
+
className: E,
|
|
203
203
|
...K
|
|
204
204
|
}, oe) => {
|
|
205
|
-
const { t: o, i18n:
|
|
205
|
+
const { t: o, i18n: de } = Ce("ui"), C = Ee(de.language), ie = (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
206
|
value: se,
|
|
207
207
|
defaultValue: te,
|
|
208
208
|
onChange: ae
|
|
209
|
-
}), v = ee === "inline", S = v ? !0 : ce ?? !1, le = ne ?? o("syncTray.title"), ue = `h${
|
|
210
|
-
() => new Set(
|
|
211
|
-
[
|
|
209
|
+
}), v = ee === "inline", S = v ? !0 : ce ?? !1, le = ne ?? o("syncTray.title"), ue = `h${B}`, pe = `h${B + 1}`, $ = w(
|
|
210
|
+
() => new Set(d.map((e) => e.id)),
|
|
211
|
+
[d]
|
|
212
212
|
), fe = w(() => {
|
|
213
213
|
var n;
|
|
214
214
|
const e = /* @__PURE__ */ new Map(), a = new Map(l.map((s, p) => [s.id, p]));
|
|
215
|
-
for (const s of
|
|
215
|
+
for (const s of d) e.set(s.id, []);
|
|
216
216
|
for (const s of l) (n = e.get(s.destinationId)) == null || n.push(s);
|
|
217
217
|
for (const [s, p] of e)
|
|
218
218
|
e.set(
|
|
@@ -223,7 +223,7 @@ const Ue = xe(
|
|
|
223
223
|
})
|
|
224
224
|
);
|
|
225
225
|
return e;
|
|
226
|
-
}, [
|
|
226
|
+
}, [d, l]), u = w(
|
|
227
227
|
() => l.filter(
|
|
228
228
|
(e) => e.status === "failed" && $.has(e.destinationId)
|
|
229
229
|
).length,
|
|
@@ -297,8 +297,8 @@ const Ue = xe(
|
|
|
297
297
|
getAnchor: Ie,
|
|
298
298
|
onReturnToTrigger: () => m(!1)
|
|
299
299
|
});
|
|
300
|
-
if (
|
|
301
|
-
const A = `${M}-title`, _ = /* @__PURE__ */
|
|
300
|
+
if (d.length === 0) return null;
|
|
301
|
+
const A = `${M}-title`, _ = /* @__PURE__ */ i(q, { children: [
|
|
302
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
303
|
ue,
|
|
304
304
|
{
|
|
@@ -308,18 +308,18 @@ const Ue = xe(
|
|
|
308
308
|
children: le
|
|
309
309
|
}
|
|
310
310
|
) }),
|
|
311
|
-
/* @__PURE__ */ t(
|
|
311
|
+
/* @__PURE__ */ t(Be, {}),
|
|
312
312
|
/* @__PURE__ */ t(
|
|
313
|
-
|
|
313
|
+
De,
|
|
314
314
|
{
|
|
315
315
|
orientation: "vertical",
|
|
316
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:
|
|
317
|
+
children: /* @__PURE__ */ t("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:pt-[var(--spacing-sm)]", children: d.map((e) => {
|
|
318
318
|
const a = (fe.get(e.id) ?? []).slice(
|
|
319
319
|
0,
|
|
320
320
|
Math.max(0, re)
|
|
321
321
|
), n = `${M}-dest-${e.id}`;
|
|
322
|
-
return /* @__PURE__ */
|
|
322
|
+
return /* @__PURE__ */ i(
|
|
323
323
|
"div",
|
|
324
324
|
{
|
|
325
325
|
role: "group",
|
|
@@ -327,7 +327,7 @@ const Ue = xe(
|
|
|
327
327
|
"data-sync-destination-id": e.id,
|
|
328
328
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
329
329
|
children: [
|
|
330
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]", children: [
|
|
331
331
|
/* @__PURE__ */ t(
|
|
332
332
|
pe,
|
|
333
333
|
{
|
|
@@ -345,22 +345,23 @@ const Ue = xe(
|
|
|
345
345
|
children: e.description
|
|
346
346
|
}
|
|
347
347
|
) : null,
|
|
348
|
-
/* @__PURE__ */
|
|
349
|
-
/* @__PURE__ */
|
|
348
|
+
/* @__PURE__ */ i("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__ */ i("div", { className: "ds:flex ds:flex-wrap ds:gap-x-[var(--spacing-xs)]", children: [
|
|
350
350
|
/* @__PURE__ */ t("dt", { children: o("syncTray.lastSent") }),
|
|
351
351
|
/* @__PURE__ */ t("dd", { className: "ds:m-0", children: e.lastSentAt ? /* @__PURE__ */ t(
|
|
352
|
-
|
|
352
|
+
O,
|
|
353
353
|
{
|
|
354
354
|
locale: C,
|
|
355
355
|
value: e.lastSentAt,
|
|
356
|
+
pastOnly: !0,
|
|
356
357
|
relativeWindow: X
|
|
357
358
|
}
|
|
358
359
|
) : o("syncTray.neverSent") })
|
|
359
360
|
] }),
|
|
360
|
-
e.nextDueAt ? /* @__PURE__ */
|
|
361
|
+
e.nextDueAt ? /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-wrap ds:gap-x-[var(--spacing-xs)]", children: [
|
|
361
362
|
/* @__PURE__ */ t("dt", { children: o("syncTray.nextDue") }),
|
|
362
363
|
/* @__PURE__ */ t("dd", { className: "ds:m-0", children: /* @__PURE__ */ t(
|
|
363
|
-
|
|
364
|
+
O,
|
|
364
365
|
{
|
|
365
366
|
locale: C,
|
|
366
367
|
value: e.nextDueAt,
|
|
@@ -371,7 +372,7 @@ const Ue = xe(
|
|
|
371
372
|
] }) : null
|
|
372
373
|
] })
|
|
373
374
|
] }),
|
|
374
|
-
|
|
375
|
+
D ? /* @__PURE__ */ i(q, { children: [
|
|
375
376
|
/* @__PURE__ */ t(Y, {}),
|
|
376
377
|
/* @__PURE__ */ t(Y, {})
|
|
377
378
|
] }) : 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) => {
|
|
@@ -383,7 +384,7 @@ const Ue = xe(
|
|
|
383
384
|
children: s.title
|
|
384
385
|
}
|
|
385
386
|
);
|
|
386
|
-
return /* @__PURE__ */
|
|
387
|
+
return /* @__PURE__ */ i(
|
|
387
388
|
"li",
|
|
388
389
|
{
|
|
389
390
|
"data-sync-item-id": s.id,
|
|
@@ -393,7 +394,7 @@ const Ue = xe(
|
|
|
393
394
|
interactive: !!f
|
|
394
395
|
}),
|
|
395
396
|
children: [
|
|
396
|
-
/* @__PURE__ */
|
|
397
|
+
/* @__PURE__ */ i("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
397
398
|
f ? /* @__PURE__ */ t(
|
|
398
399
|
"button",
|
|
399
400
|
{
|
|
@@ -411,21 +412,22 @@ const Ue = xe(
|
|
|
411
412
|
children: s.detail
|
|
412
413
|
}
|
|
413
414
|
) : null,
|
|
414
|
-
/* @__PURE__ */
|
|
415
|
+
/* @__PURE__ */ i("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
415
416
|
/* @__PURE__ */ t(
|
|
416
417
|
ze,
|
|
417
418
|
{
|
|
418
419
|
variant: p.variant,
|
|
419
420
|
size: "sm",
|
|
420
421
|
leading: /* @__PURE__ */ t(b, { "aria-hidden": "true" }),
|
|
421
|
-
children:
|
|
422
|
+
children: ie(s.status)
|
|
422
423
|
}
|
|
423
424
|
),
|
|
424
425
|
s.at ? /* @__PURE__ */ t(
|
|
425
|
-
|
|
426
|
+
O,
|
|
426
427
|
{
|
|
427
428
|
locale: C,
|
|
428
429
|
value: s.at,
|
|
430
|
+
pastOnly: s.status !== "scheduled",
|
|
429
431
|
relativeWindow: X
|
|
430
432
|
}
|
|
431
433
|
) : null
|
|
@@ -460,14 +462,14 @@ const Ue = xe(
|
|
|
460
462
|
s.id
|
|
461
463
|
);
|
|
462
464
|
}) }),
|
|
463
|
-
|
|
465
|
+
j ? /* @__PURE__ */ t("div", { className: "ds:ps-[var(--spacing-xs)]", children: /* @__PURE__ */ t(
|
|
464
466
|
V,
|
|
465
467
|
{
|
|
466
468
|
type: "button",
|
|
467
469
|
intent: "outline",
|
|
468
470
|
size: "sm",
|
|
469
471
|
"aria-describedby": n,
|
|
470
|
-
onClick: () =>
|
|
472
|
+
onClick: () => j(e),
|
|
471
473
|
children: o("syncTray.viewAll")
|
|
472
474
|
}
|
|
473
475
|
) }) : null
|
|
@@ -478,15 +480,15 @@ const Ue = xe(
|
|
|
478
480
|
}) })
|
|
479
481
|
}
|
|
480
482
|
)
|
|
481
|
-
] }), H = /* @__PURE__ */ t("span", { role: "status", className: "ds:sr-only", children:
|
|
483
|
+
] }), H = /* @__PURE__ */ t("span", { role: "status", className: "ds:sr-only", children: D ? o("syncTray.loading") : "" });
|
|
482
484
|
if (v)
|
|
483
|
-
return /* @__PURE__ */
|
|
485
|
+
return /* @__PURE__ */ i(
|
|
484
486
|
"div",
|
|
485
487
|
{
|
|
486
488
|
ref: R,
|
|
487
489
|
"data-component": "sync-tray",
|
|
488
490
|
"data-component-id": r,
|
|
489
|
-
className: [J(), "ds:w-full",
|
|
491
|
+
className: [J(), "ds:w-full", E].filter(Boolean).join(" "),
|
|
490
492
|
...K,
|
|
491
493
|
children: [
|
|
492
494
|
/* @__PURE__ */ t(
|
|
@@ -512,11 +514,11 @@ const Ue = xe(
|
|
|
512
514
|
ref: R,
|
|
513
515
|
"data-component": "sync-tray",
|
|
514
516
|
"data-component-id": r,
|
|
515
|
-
className: [J(),
|
|
517
|
+
className: [J(), E].filter(Boolean).join(" "),
|
|
516
518
|
...K,
|
|
517
|
-
children: /* @__PURE__ */
|
|
519
|
+
children: /* @__PURE__ */ i(T.Root, { open: S, onOpenChange: m, children: [
|
|
518
520
|
/* @__PURE__ */ t(T.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
|
|
519
|
-
|
|
521
|
+
Oe,
|
|
520
522
|
{
|
|
521
523
|
icon: /* @__PURE__ */ t(Pe, {}),
|
|
522
524
|
intent: "outline",
|
|
@@ -525,7 +527,7 @@ const Ue = xe(
|
|
|
525
527
|
}
|
|
526
528
|
) }),
|
|
527
529
|
u > 0 ? /* @__PURE__ */ t(
|
|
528
|
-
|
|
530
|
+
je,
|
|
529
531
|
{
|
|
530
532
|
variant: "notification",
|
|
531
533
|
size: "md",
|
|
@@ -564,4 +566,4 @@ export {
|
|
|
564
566
|
J as a,
|
|
565
567
|
We as s
|
|
566
568
|
};
|
|
567
|
-
//# sourceMappingURL=sync-tray-
|
|
569
|
+
//# sourceMappingURL=sync-tray-BgrO4QjH.js.map
|