@alfadocs/ui-kit 1.36.1 → 1.38.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/{agenda-tray-DYGCTIWB.js → agenda-tray-CG6jUjKc.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-card-GYHa7VGp.js → anamnesis-summary-card-CclBbiXg.js} +2 -2
- package/dist/_chunks/appointment-peek-5S4O1VQP.js +115 -0
- package/dist/_chunks/appointment-peek.agent-C539tNFM.js +17 -0
- package/dist/_chunks/{appointment-timeline-ByfovxqR.js → appointment-timeline-D-rNwKpS.js} +2 -2
- package/dist/_chunks/{appointment-tray-D6UyJHej.js → appointment-tray-CK2CULg_.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-B0Z8Dwn8.js → balance-badge-cell-DHs5p0bA.js} +2 -2
- package/dist/_chunks/{booking-Dp-9qR6F.js → booking-x3J7sS2G.js} +3 -3
- package/dist/_chunks/building-2-D33bLCWL.js +24 -0
- package/dist/_chunks/calendar-workspace-Cc1LRVWY.js +9900 -0
- package/dist/_chunks/{control-room-rail-Ds45_g4f.js → control-room-rail-DQoHdE1U.js} +2 -2
- package/dist/_chunks/{data-table-BYGK-gUJ.js → data-table-Dy1lyumT.js} +2 -2
- package/dist/_chunks/editable-description-7ptNpJEg.js +142 -0
- package/dist/_chunks/editable-description.agent-Bm_LBV2j.js +21 -0
- package/dist/_chunks/{file-manager-DvkFgj7d.js → file-manager-UlcYQv8n.js} +3 -3
- package/dist/_chunks/{message-tray-BcLyaO-G.js → message-tray-CXjVsKqp.js} +2 -2
- package/dist/_chunks/{money.agent-Dw55UxUA.js → money-BY-HmKhZ.js} +33 -47
- package/dist/_chunks/money.agent-BjJ6gOkx.js +17 -0
- package/dist/_chunks/{note-timeline-CXfSV3yX.js → note-timeline-D2oPuQP6.js} +134 -73
- package/dist/_chunks/notes-panel-CkbfDDzj.js +614 -0
- package/dist/_chunks/{notification-tray-CJ8jOe-U.js → notification-tray-_NoChRKi.js} +2 -2
- package/dist/_chunks/panel-subview-BNXN8OEL.js +160 -0
- package/dist/_chunks/panel-subview.agent-BIBvE-IW.js +17 -0
- package/dist/_chunks/{patient-details-f7SSXkTJ.js → patient-details-2cIaL-Zb.js} +2 -2
- package/dist/_chunks/{patient-field-row-BQZoP4m2.js → patient-field-row-IHb2VFc2.js} +193 -172
- package/dist/_chunks/{patient-summary-card-Bz7KdUin.js → patient-summary-card-B131Q7Bp.js} +3 -3
- package/dist/_chunks/{practice-results-DOcORTkP.js → practice-results-CBNRJNnY.js} +2 -2
- package/dist/_chunks/{product-hub-panel-C0TO69P7.js → product-hub-panel-C3bMjscm.js} +2 -2
- package/dist/_chunks/{reviews-panel-BaHZb_ai.js → reviews-panel-Cy969x7q.js} +2 -2
- package/dist/_chunks/{section-card.agent-W18CHEgX.js → section-card-XR2bW1Ie.js} +20 -34
- package/dist/_chunks/section-card.agent-Bz1BhM_j.js +17 -0
- package/dist/_chunks/{signature-request-Dej2g86d.js → signature-request-b-86AGlT.js} +2 -2
- package/dist/_chunks/{skeleton-CZbwyJAA.js → skeleton-B1KTdJ4N.js} +46 -33
- package/dist/_chunks/{slot-grid-8Ko6thzz.js → slot-grid-Bk3GZL1p.js} +2 -2
- package/dist/_chunks/smartphone-DaPcFw-X.js +32 -0
- package/dist/_chunks/{task-card-BalrLkSz.js → task-card-qTKD1fIT.js} +39 -57
- package/dist/_chunks/{task-tray-wl9eti6J.js → task-tray-5co9Jr2L.js} +3 -3
- package/dist/_chunks/{tasks-panel-BDNB7hsZ.js → tasks-panel-BpH-x7U3.js} +3 -3
- package/dist/_chunks/{tool-rail-Bq5eiFMG.js → tool-rail-BP8sjxCw.js} +310 -231
- package/dist/_chunks/treatment-receipt-dUm99mdn.js +160 -0
- package/dist/_chunks/treatment-receipt.agent-bpFm2RPH.js +21 -0
- package/dist/_chunks/use-presence-transition-cDwWUXV-.js +58 -0
- package/dist/_chunks/{workflow-map-D-LEni11.js → workflow-map-CXdsxvUj.js} +140 -156
- package/dist/agent-catalog.json +65 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +1 -1
- package/dist/components/appointment-peek/appointment-peek.agent.d.ts +3 -0
- package/dist/components/appointment-peek/appointment-peek.d.ts +45 -0
- package/dist/components/appointment-peek/index.d.ts +4 -0
- package/dist/components/appointment-peek/index.js +7 -0
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/editable-description/editable-description.agent.d.ts +3 -0
- package/dist/components/editable-description/editable-description.d.ts +26 -0
- package/dist/components/editable-description/index.d.ts +4 -0
- package/dist/components/editable-description/index.js +7 -0
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/money/index.js +2 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/note-timeline/note-timeline.d.ts +8 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +16 -0
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/panel-subview/index.d.ts +4 -0
- package/dist/components/panel-subview/index.js +7 -0
- package/dist/components/panel-subview/panel-subview.agent.d.ts +3 -0
- package/dist/components/panel-subview/panel-subview.d.ts +32 -0
- 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/practice-results/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/section-card/index.js +4 -3
- package/dist/components/skeleton/index.d.ts +1 -1
- package/dist/components/skeleton/index.js +3 -2
- package/dist/components/skeleton/skeleton.d.ts +12 -0
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/treatment-receipt/index.d.ts +4 -0
- package/dist/components/treatment-receipt/index.js +7 -0
- package/dist/components/treatment-receipt/treatment-receipt.agent.d.ts +3 -0
- package/dist/components/treatment-receipt/treatment-receipt.d.ts +38 -0
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +9 -7
- package/dist/hooks/use-presence-transition.d.ts +40 -0
- package/dist/host-compat.css +7 -1
- package/dist/i18n/locales/ar.d.ts +29 -5
- package/dist/i18n/locales/ar.js +29 -5
- package/dist/i18n/locales/de.d.ts +29 -5
- package/dist/i18n/locales/de.js +29 -5
- package/dist/i18n/locales/el.d.ts +29 -5
- package/dist/i18n/locales/el.js +29 -5
- package/dist/i18n/locales/en.d.ts +29 -5
- package/dist/i18n/locales/en.js +29 -5
- package/dist/i18n/locales/es.d.ts +29 -5
- package/dist/i18n/locales/es.js +29 -5
- package/dist/i18n/locales/fr.d.ts +29 -5
- package/dist/i18n/locales/fr.js +29 -5
- package/dist/i18n/locales/hi.d.ts +29 -5
- package/dist/i18n/locales/hi.js +29 -5
- package/dist/i18n/locales/it.d.ts +29 -5
- package/dist/i18n/locales/it.js +29 -5
- package/dist/i18n/locales/ja.d.ts +29 -5
- package/dist/i18n/locales/ja.js +29 -5
- package/dist/i18n/locales/nl.d.ts +29 -5
- package/dist/i18n/locales/nl.js +29 -5
- package/dist/i18n/locales/pl.d.ts +29 -5
- package/dist/i18n/locales/pl.js +29 -5
- package/dist/i18n/locales/pt.d.ts +29 -5
- package/dist/i18n/locales/pt.js +29 -5
- package/dist/i18n/locales/ro.d.ts +29 -5
- package/dist/i18n/locales/ro.js +29 -5
- package/dist/i18n/locales/ru.d.ts +29 -5
- package/dist/i18n/locales/ru.js +29 -5
- package/dist/i18n/locales/sq.d.ts +29 -5
- package/dist/i18n/locales/sq.js +29 -5
- package/dist/i18n/locales/sv.d.ts +29 -5
- package/dist/i18n/locales/sv.js +29 -5
- package/dist/i18n/locales/tr.d.ts +29 -5
- package/dist/i18n/locales/tr.js +29 -5
- package/dist/i18n/locales/zh.d.ts +29 -5
- package/dist/i18n/locales/zh.js +29 -5
- package/dist/index.js +959 -940
- package/dist/locales/ar.json +29 -5
- package/dist/locales/de.json +29 -5
- package/dist/locales/el.json +29 -5
- package/dist/locales/en.json +29 -5
- package/dist/locales/es.json +29 -5
- package/dist/locales/fr.json +29 -5
- package/dist/locales/hi.json +29 -5
- package/dist/locales/it.json +29 -5
- package/dist/locales/ja.json +29 -5
- package/dist/locales/nl.json +29 -5
- package/dist/locales/pl.json +29 -5
- package/dist/locales/pt.json +29 -5
- package/dist/locales/ro.json +29 -5
- package/dist/locales/ru.json +29 -5
- package/dist/locales/sq.json +29 -5
- package/dist/locales/sv.json +29 -5
- package/dist/locales/tr.json +29 -5
- package/dist/locales/zh.json +29 -5
- package/dist/patterns/calendar/calendar-appointment-details.d.ts +16 -7
- package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts +23 -23
- package/dist/patterns/calendar/calendar-editor-hydration.d.ts +0 -2
- package/dist/patterns/calendar/calendar-info-hover.d.ts +18 -0
- package/dist/patterns/calendar/calendar.journey.d.ts +10 -0
- package/dist/patterns/calendar/calendar.sheets.d.ts +2 -2
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +17 -1
- package/dist/_chunks/calendar-workspace-BYwQK7fz.js +0 -9478
- package/dist/_chunks/hourglass-BEAzW1wE.js +0 -26
- package/dist/_chunks/notes-panel-Co8D3uDd.js +0 -469
- package/dist/_chunks/smartphone-C0rFF2if.js +0 -15
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { SafeHtml as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
1
|
+
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as M, useRef as S, useMemo as v } from "react";
|
|
3
|
+
import { c as u } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as V } from "react-i18next";
|
|
5
|
+
import { SafeHtml as A } from "../safe-html/index.js";
|
|
6
|
+
import { C as F, S as g } from "./skeleton-B1KTdJ4N.js";
|
|
7
|
+
import { n as E, P as H, F as L, N as R } from "./note-attachment-CwDir3kK.js";
|
|
8
|
+
import { u as D } from "./registry-DvAUVLHh.js";
|
|
9
|
+
const P = {
|
|
9
10
|
id: "note-timeline",
|
|
10
11
|
capabilities: [],
|
|
11
12
|
state: {
|
|
@@ -13,13 +14,13 @@ const _ = {
|
|
|
13
14
|
type: "Array<{ id?: string; pinned: boolean; flagged: boolean; clinical: boolean }>",
|
|
14
15
|
descriptionKey: "ui.agent.noteTimeline.state.notes",
|
|
15
16
|
description: "Structural snapshot of the rendered rows: ids and flags only, never note content or author.",
|
|
16
|
-
read: (
|
|
17
|
+
read: (s) => s.getNotes()
|
|
17
18
|
},
|
|
18
19
|
visibleCount: {
|
|
19
20
|
type: "number",
|
|
20
21
|
descriptionKey: "ui.agent.noteTimeline.state.visibleCount",
|
|
21
22
|
description: "How many notes are rendered, after the maxItems cap is applied.",
|
|
22
|
-
read: (
|
|
23
|
+
read: (s) => s.getVisibleCount()
|
|
23
24
|
}
|
|
24
25
|
},
|
|
25
26
|
actions: {},
|
|
@@ -35,7 +36,7 @@ const _ = {
|
|
|
35
36
|
description: "Sourced from the id prop — addresses a specific timeline."
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
|
-
},
|
|
39
|
+
}, x = u(
|
|
39
40
|
[
|
|
40
41
|
// Named group so the rail's connector can ask "is my ROW the last one?".
|
|
41
42
|
// A bare `last:` on the rail asks "am I the last child of my row?", which
|
|
@@ -44,7 +45,7 @@ const _ = {
|
|
|
44
45
|
"ds:group/note-row ds:relative ds:flex ds:gap-[var(--spacing-sm)]",
|
|
45
46
|
"ds:pb-3 ds:last:pb-0"
|
|
46
47
|
].join(" ")
|
|
47
|
-
),
|
|
48
|
+
), K = u(
|
|
48
49
|
[
|
|
49
50
|
"type-body-sm ds:[overflow-wrap:break-word]",
|
|
50
51
|
// `[&_p]:m-0` — the converter wraps each block in <p>; the timeline
|
|
@@ -66,7 +67,7 @@ const _ = {
|
|
|
66
67
|
},
|
|
67
68
|
defaultVariants: { lines: 3 }
|
|
68
69
|
}
|
|
69
|
-
),
|
|
70
|
+
), N = u(
|
|
70
71
|
[
|
|
71
72
|
"ds:absolute ds:top-1 ds:start-0 ds:size-[9px]",
|
|
72
73
|
"ds:rounded-[var(--radius-full)] ds:border-2",
|
|
@@ -90,81 +91,141 @@ const _ = {
|
|
|
90
91
|
defaultVariants: { tone: "default" }
|
|
91
92
|
}
|
|
92
93
|
);
|
|
93
|
-
function
|
|
94
|
-
return [...
|
|
94
|
+
function O(s) {
|
|
95
|
+
return [...s].sort((r, d) => !!r.pinned != !!d.pinned ? r.pinned ? -1 : 1 : d.dateIso.localeCompare(r.dateIso));
|
|
95
96
|
}
|
|
96
|
-
const
|
|
97
|
+
const q = M(
|
|
97
98
|
({
|
|
98
|
-
id:
|
|
99
|
-
notes:
|
|
100
|
-
maxItems:
|
|
101
|
-
lines:
|
|
102
|
-
locale:
|
|
103
|
-
emptyState:
|
|
104
|
-
"aria-label":
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
99
|
+
id: s,
|
|
100
|
+
notes: r,
|
|
101
|
+
maxItems: d = 3,
|
|
102
|
+
lines: w = 3,
|
|
103
|
+
locale: y,
|
|
104
|
+
emptyState: T,
|
|
105
|
+
"aria-label": k,
|
|
106
|
+
loading: i = !1,
|
|
107
|
+
loadingRows: j = 2,
|
|
108
|
+
className: l,
|
|
109
|
+
...c
|
|
110
|
+
}, m) => {
|
|
111
|
+
const { t: p, i18n: C } = V(), f = y ?? C.language, h = S(!1);
|
|
112
|
+
i && (h.current = !0);
|
|
113
|
+
const _ = h.current ? F : "", o = v(
|
|
114
|
+
() => O(r).slice(0, Math.max(0, d)),
|
|
115
|
+
[r, d]
|
|
116
|
+
), b = v(
|
|
112
117
|
() => ({
|
|
113
|
-
dayMonth: new Intl.DateTimeFormat(
|
|
118
|
+
dayMonth: new Intl.DateTimeFormat(f, {
|
|
114
119
|
day: "numeric",
|
|
115
120
|
month: "short"
|
|
116
121
|
}),
|
|
117
|
-
year: new Intl.DateTimeFormat(
|
|
122
|
+
year: new Intl.DateTimeFormat(f, { year: "numeric" })
|
|
118
123
|
}),
|
|
119
|
-
[
|
|
124
|
+
[f]
|
|
120
125
|
);
|
|
121
|
-
return
|
|
122
|
-
|
|
126
|
+
return D(
|
|
127
|
+
P,
|
|
123
128
|
{
|
|
124
|
-
getNotes: () =>
|
|
129
|
+
getNotes: () => o.map((e) => ({
|
|
125
130
|
id: e.id,
|
|
126
131
|
pinned: !!e.pinned,
|
|
127
132
|
flagged: !!e.flagged,
|
|
128
133
|
clinical: !!e.clinical
|
|
129
134
|
})),
|
|
130
|
-
getVisibleCount: () =>
|
|
135
|
+
getVisibleCount: () => o.length
|
|
131
136
|
},
|
|
132
|
-
|
|
133
|
-
),
|
|
137
|
+
s
|
|
138
|
+
), i && o.length === 0 ? /* @__PURE__ */ a(
|
|
134
139
|
"div",
|
|
135
140
|
{
|
|
136
|
-
ref:
|
|
141
|
+
ref: m,
|
|
137
142
|
"data-component": "note-timeline",
|
|
138
|
-
"data-component-id":
|
|
143
|
+
"data-component-id": s,
|
|
144
|
+
"data-loading": "",
|
|
145
|
+
"aria-busy": "true",
|
|
146
|
+
className: ["ds:flex ds:flex-col", l ?? ""].join(" ").trim(),
|
|
147
|
+
...c,
|
|
148
|
+
children: Array.from({ length: Math.max(1, j) }, (e, t) => /* @__PURE__ */ n("div", { "aria-hidden": "true", className: x(), children: [
|
|
149
|
+
/* @__PURE__ */ n("div", { className: "ds:flex ds:w-12 ds:shrink-0 ds:flex-col ds:items-end ds:gap-[var(--spacing-2xs)] ds:pt-px", children: [
|
|
150
|
+
/* @__PURE__ */ a(
|
|
151
|
+
g,
|
|
152
|
+
{
|
|
153
|
+
variant: "text",
|
|
154
|
+
size: "sm",
|
|
155
|
+
stagger: t * 2,
|
|
156
|
+
width: "80%"
|
|
157
|
+
}
|
|
158
|
+
),
|
|
159
|
+
/* @__PURE__ */ a(
|
|
160
|
+
g,
|
|
161
|
+
{
|
|
162
|
+
variant: "text",
|
|
163
|
+
size: "sm",
|
|
164
|
+
stagger: t * 2,
|
|
165
|
+
width: "50%"
|
|
166
|
+
}
|
|
167
|
+
)
|
|
168
|
+
] }),
|
|
169
|
+
/* @__PURE__ */ a(
|
|
170
|
+
"div",
|
|
171
|
+
{
|
|
172
|
+
className: [
|
|
173
|
+
"ds:relative ds:w-[9px] ds:shrink-0",
|
|
174
|
+
"ds:before:absolute ds:before:start-[4px] ds:before:top-[14px]",
|
|
175
|
+
"ds:before:bottom-[-12px] ds:before:w-px",
|
|
176
|
+
'ds:before:bg-[color:var(--border)] ds:before:content-[""]',
|
|
177
|
+
"ds:group-last/note-row:before:hidden"
|
|
178
|
+
].join(" "),
|
|
179
|
+
children: /* @__PURE__ */ a("span", { className: N({ tone: "default" }) })
|
|
180
|
+
}
|
|
181
|
+
),
|
|
182
|
+
/* @__PURE__ */ a("div", { className: "ds:min-w-0 ds:flex-1", children: /* @__PURE__ */ a(
|
|
183
|
+
g,
|
|
184
|
+
{
|
|
185
|
+
variant: "text",
|
|
186
|
+
size: "sm",
|
|
187
|
+
lines: t % 2 === 0 ? 3 : 2,
|
|
188
|
+
stagger: t * 2 + 1
|
|
189
|
+
}
|
|
190
|
+
) })
|
|
191
|
+
] }, t))
|
|
192
|
+
}
|
|
193
|
+
) : o.length === 0 ? /* @__PURE__ */ a(
|
|
194
|
+
"div",
|
|
195
|
+
{
|
|
196
|
+
ref: m,
|
|
197
|
+
"data-component": "note-timeline",
|
|
198
|
+
"data-component-id": s,
|
|
139
199
|
"data-empty": "",
|
|
140
|
-
className:
|
|
141
|
-
...
|
|
142
|
-
children:
|
|
200
|
+
className: l,
|
|
201
|
+
...c,
|
|
202
|
+
children: T
|
|
143
203
|
}
|
|
144
204
|
) : /* @__PURE__ */ a(
|
|
145
205
|
"div",
|
|
146
206
|
{
|
|
147
|
-
ref:
|
|
207
|
+
ref: m,
|
|
148
208
|
"data-component": "note-timeline",
|
|
149
|
-
"data-component-id":
|
|
209
|
+
"data-component-id": s,
|
|
150
210
|
role: "list",
|
|
151
|
-
"aria-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
211
|
+
"aria-busy": i || void 0,
|
|
212
|
+
"aria-label": k ?? p("noteTimeline.regionLabel"),
|
|
213
|
+
className: ["ds:flex ds:flex-col", _, l ?? ""].join(" ").trim(),
|
|
214
|
+
...c,
|
|
215
|
+
children: o.map((e) => {
|
|
216
|
+
const t = new Date(e.dateIso), z = e.pinned ? "pinned" : e.flagged ? "flagged" : "default", I = e.contentFormat === "html" ? e.content : E(e.content);
|
|
217
|
+
return /* @__PURE__ */ n(
|
|
157
218
|
"div",
|
|
158
219
|
{
|
|
159
220
|
role: "listitem",
|
|
160
221
|
"data-note-id": e.id,
|
|
161
222
|
"data-pinned": e.pinned ? "" : void 0,
|
|
162
223
|
"data-flagged": e.flagged ? "" : void 0,
|
|
163
|
-
className:
|
|
224
|
+
className: x(),
|
|
164
225
|
children: [
|
|
165
|
-
/* @__PURE__ */
|
|
166
|
-
/* @__PURE__ */ a("div", { className: "ds:font-semibold ds:tracking-[0.03em] ds:uppercase", children:
|
|
167
|
-
/* @__PURE__ */ a("div", { className: "ds:text-[color:var(--muted-foreground)]", children:
|
|
226
|
+
/* @__PURE__ */ n("div", { className: "ds:w-12 ds:shrink-0 ds:pt-px ds:text-end ds:text-[length:var(--type-meta-size)] ds:leading-[1.3]", children: [
|
|
227
|
+
/* @__PURE__ */ a("div", { className: "ds:font-semibold ds:tracking-[0.03em] ds:uppercase", children: b.dayMonth.format(t) }),
|
|
228
|
+
/* @__PURE__ */ a("div", { className: "ds:text-[color:var(--muted-foreground)]", children: b.year.format(t) })
|
|
168
229
|
] }),
|
|
169
230
|
/* @__PURE__ */ a(
|
|
170
231
|
"div",
|
|
@@ -177,41 +238,41 @@ const P = T(
|
|
|
177
238
|
'ds:before:bg-[color:var(--border)] ds:before:content-[""]',
|
|
178
239
|
"ds:group-last/note-row:before:hidden"
|
|
179
240
|
].join(" "),
|
|
180
|
-
children: /* @__PURE__ */ a("span", { className:
|
|
241
|
+
children: /* @__PURE__ */ a("span", { className: N({ tone: z }) })
|
|
181
242
|
}
|
|
182
243
|
),
|
|
183
|
-
/* @__PURE__ */
|
|
244
|
+
/* @__PURE__ */ n("div", { className: "ds:min-w-0 ds:flex-1", children: [
|
|
184
245
|
/* @__PURE__ */ a(
|
|
185
|
-
|
|
246
|
+
A,
|
|
186
247
|
{
|
|
187
|
-
html:
|
|
248
|
+
html: I,
|
|
188
249
|
profile: e.contentFormat === "html" ? "rich-text" : "markdown",
|
|
189
|
-
className:
|
|
250
|
+
className: K({ lines: w })
|
|
190
251
|
}
|
|
191
252
|
),
|
|
192
|
-
e.author || e.pinned || e.flagged || e.attachedTo ? /* @__PURE__ */
|
|
253
|
+
e.author || e.pinned || e.flagged || e.attachedTo ? /* @__PURE__ */ n("div", { className: "ds:mt-[var(--spacing-2xs)] ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-2xs)] type-meta ds:text-[color:var(--muted-foreground)]", children: [
|
|
193
254
|
e.author ? /* @__PURE__ */ a("span", { children: e.author.name }) : null,
|
|
194
|
-
e.pinned ? /* @__PURE__ */
|
|
255
|
+
e.pinned ? /* @__PURE__ */ n("span", { className: "ds:inline-flex ds:items-center", children: [
|
|
195
256
|
/* @__PURE__ */ a(
|
|
196
|
-
|
|
257
|
+
H,
|
|
197
258
|
{
|
|
198
259
|
"aria-hidden": "true",
|
|
199
260
|
className: "ds:size-3 ds:text-[color:var(--accent)]"
|
|
200
261
|
}
|
|
201
262
|
),
|
|
202
|
-
/* @__PURE__ */ a("span", { className: "ds:sr-only", children:
|
|
263
|
+
/* @__PURE__ */ a("span", { className: "ds:sr-only", children: p("noteTimeline.pinned") })
|
|
203
264
|
] }) : null,
|
|
204
|
-
e.flagged ? /* @__PURE__ */
|
|
265
|
+
e.flagged ? /* @__PURE__ */ n("span", { className: "ds:inline-flex ds:items-center", children: [
|
|
205
266
|
/* @__PURE__ */ a(
|
|
206
|
-
|
|
267
|
+
L,
|
|
207
268
|
{
|
|
208
269
|
"aria-hidden": "true",
|
|
209
270
|
className: "ds:size-3 ds:text-[color:var(--warning-readable)]"
|
|
210
271
|
}
|
|
211
272
|
),
|
|
212
|
-
/* @__PURE__ */ a("span", { className: "ds:sr-only", children:
|
|
273
|
+
/* @__PURE__ */ a("span", { className: "ds:sr-only", children: p("noteTimeline.flagged") })
|
|
213
274
|
] }) : null,
|
|
214
|
-
/* @__PURE__ */ a(
|
|
275
|
+
/* @__PURE__ */ a(R, { attachedTo: e.attachedTo })
|
|
215
276
|
] }) : null
|
|
216
277
|
] })
|
|
217
278
|
]
|
|
@@ -223,9 +284,9 @@ const P = T(
|
|
|
223
284
|
);
|
|
224
285
|
}
|
|
225
286
|
);
|
|
226
|
-
|
|
287
|
+
q.displayName = "NoteTimeline";
|
|
227
288
|
export {
|
|
228
|
-
|
|
229
|
-
|
|
289
|
+
q as N,
|
|
290
|
+
P as n
|
|
230
291
|
};
|
|
231
|
-
//# sourceMappingURL=note-timeline-
|
|
292
|
+
//# sourceMappingURL=note-timeline-D2oPuQP6.js.map
|