@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
|
@@ -3,7 +3,7 @@ import { useState as _, useCallback as g, useMemo as T, useRef as B, useContext
|
|
|
3
3
|
import { useTranslation as po } from "react-i18next";
|
|
4
4
|
import { I as G } from "./icon-button-8xqRnkdG.js";
|
|
5
5
|
import { a as fo } from "./panel-header-D_mTdhUp.js";
|
|
6
|
-
import { T as mo } from "./tool-rail-
|
|
6
|
+
import { T as mo } from "./tool-rail-BP8sjxCw.js";
|
|
7
7
|
import { u as go } from "./use-persistent-state-nZwZAnE9.js";
|
|
8
8
|
import { S as Ro } from "./star-Bf9L2Uot.js";
|
|
9
9
|
import { X as vo } from "./x-B5YnXwCz.js";
|
|
@@ -334,4 +334,4 @@ export {
|
|
|
334
334
|
Ho as d,
|
|
335
335
|
Ko as u
|
|
336
336
|
};
|
|
337
|
-
//# sourceMappingURL=control-room-rail-
|
|
337
|
+
//# sourceMappingURL=control-room-rail-DQoHdE1U.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s, jsxs as L } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as j, forwardRef as $, useState as G, useCallback as D, useEffect as K, useRef as B, createContext as Ce, useContext as Re, isValidElement as At, cloneElement as Pt, useImperativeHandle as Ot } from "react";
|
|
3
|
-
import { S as Mt } from "./skeleton-
|
|
3
|
+
import { S as Mt } from "./skeleton-B1KTdJ4N.js";
|
|
4
4
|
import { E as zt } from "./empty-state-X0sVPfVo.js";
|
|
5
5
|
import { c as Gt } from "./index-D2ZczOXr.js";
|
|
6
6
|
import { useTranslation as A } from "react-i18next";
|
|
@@ -1820,4 +1820,4 @@ export {
|
|
|
1820
1820
|
fa as g,
|
|
1821
1821
|
W as i
|
|
1822
1822
|
};
|
|
1823
|
-
//# sourceMappingURL=data-table-
|
|
1823
|
+
//# sourceMappingURL=data-table-Dy1lyumT.js.map
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { jsx as s, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as z, useState as I, useRef as T, useMemo as V } from "react";
|
|
3
|
+
import { c as i } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as L } from "react-i18next";
|
|
5
|
+
import { B as M } from "./button-nJaPh_HC.js";
|
|
6
|
+
import { I as _ } from "./icon-button-8xqRnkdG.js";
|
|
7
|
+
import { C as $, S as R } from "./skeleton-B1KTdJ4N.js";
|
|
8
|
+
import { P as A } from "./pencil-B1sKKyuT.js";
|
|
9
|
+
const x = i(
|
|
10
|
+
"ds:flex ds:min-w-0 ds:items-start ds:gap-[var(--spacing-xs)]"
|
|
11
|
+
), b = i(
|
|
12
|
+
[
|
|
13
|
+
"ds:m-0 ds:flex ds:min-w-0 ds:flex-1 ds:list-none ds:flex-col ds:p-0",
|
|
14
|
+
"ds:gap-[var(--spacing-2xs)]"
|
|
15
|
+
].join(" ")
|
|
16
|
+
), O = ["80%", "60%", "66%"], P = i(
|
|
17
|
+
"ds:m-0 ds:min-w-0 ds:flex-1 type-body-sm ds:text-[color:var(--muted-foreground)]"
|
|
18
|
+
), v = i(
|
|
19
|
+
"ds:flex ds:items-start ds:gap-[var(--spacing-xs)] type-body-sm ds:text-[color:var(--foreground)]"
|
|
20
|
+
), N = i(
|
|
21
|
+
[
|
|
22
|
+
"ds:mt-[var(--spacing-sm)] ds:size-[var(--spacing-xs)] ds:shrink-0 ds:self-start",
|
|
23
|
+
"ds:rounded-[var(--radius-full)] ds:bg-[color:var(--border)]"
|
|
24
|
+
].join(" ")
|
|
25
|
+
), G = z(
|
|
26
|
+
({
|
|
27
|
+
value: c,
|
|
28
|
+
maxLines: r = 3,
|
|
29
|
+
loading: d = !1,
|
|
30
|
+
onEdit: m,
|
|
31
|
+
editButtonRef: y,
|
|
32
|
+
emptyLabel: w,
|
|
33
|
+
editLabel: D,
|
|
34
|
+
seeMoreLabel: E,
|
|
35
|
+
showLessLabel: k,
|
|
36
|
+
className: p,
|
|
37
|
+
...f
|
|
38
|
+
}, u) => {
|
|
39
|
+
const { t: n } = L(), [o, C] = I(!1), h = T(!1);
|
|
40
|
+
d && (h.current = !0);
|
|
41
|
+
const j = h.current ? $ : "", a = V(
|
|
42
|
+
() => (c ?? "").split(/\r?\n/).map((e) => e.trim()).filter(Boolean),
|
|
43
|
+
[c]
|
|
44
|
+
), B = Math.max(0, a.length - r), S = o ? a : a.slice(0, r), g = D ?? n("editableDescription.edit");
|
|
45
|
+
return d && a.length === 0 ? /* @__PURE__ */ s(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
...f,
|
|
49
|
+
ref: u,
|
|
50
|
+
"data-component": "editable-description",
|
|
51
|
+
"data-loading": "",
|
|
52
|
+
"aria-busy": "true",
|
|
53
|
+
className: [x(), p].filter(Boolean).join(" "),
|
|
54
|
+
children: /* @__PURE__ */ s("ul", { "aria-hidden": "true", className: b(), children: O.slice(0, Math.max(1, r)).map(
|
|
55
|
+
(e, l) => /* @__PURE__ */ t("li", { className: v(), children: [
|
|
56
|
+
/* @__PURE__ */ s("span", { className: N() }),
|
|
57
|
+
/* @__PURE__ */ s(
|
|
58
|
+
R,
|
|
59
|
+
{
|
|
60
|
+
variant: "text",
|
|
61
|
+
size: "sm",
|
|
62
|
+
stagger: l,
|
|
63
|
+
width: e,
|
|
64
|
+
className: "ds:mt-[var(--spacing-xs)]"
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
] }, e)
|
|
68
|
+
) })
|
|
69
|
+
}
|
|
70
|
+
) : /* @__PURE__ */ t(
|
|
71
|
+
"div",
|
|
72
|
+
{
|
|
73
|
+
...f,
|
|
74
|
+
ref: u,
|
|
75
|
+
"data-component": "editable-description",
|
|
76
|
+
"data-empty": a.length === 0 ? "" : void 0,
|
|
77
|
+
"aria-busy": d || void 0,
|
|
78
|
+
className: [x(), p].filter(Boolean).join(" "),
|
|
79
|
+
children: [
|
|
80
|
+
a.length === 0 ? /* @__PURE__ */ s("p", { "data-editable-description-empty": "", className: P(), children: w ?? n("editableDescription.empty") }) : /* @__PURE__ */ t("ul", { className: `${b()} ${j}`.trim(), children: [
|
|
81
|
+
S.map((e, l) => /* @__PURE__ */ t(
|
|
82
|
+
"li",
|
|
83
|
+
{
|
|
84
|
+
"data-editable-description-line": "",
|
|
85
|
+
className: v(),
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ s("span", { "aria-hidden": "true", className: N() }),
|
|
88
|
+
/* @__PURE__ */ s("span", { className: "ds:min-w-0 ds:[overflow-wrap:anywhere]", children: e })
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
`${l}-${e}`
|
|
92
|
+
)),
|
|
93
|
+
B > 0 ? (
|
|
94
|
+
// An ITEM of the list, aligned with the text rather than the
|
|
95
|
+
// dots, so opening it does not shift the column.
|
|
96
|
+
/* @__PURE__ */ t("li", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
97
|
+
/* @__PURE__ */ s(
|
|
98
|
+
"span",
|
|
99
|
+
{
|
|
100
|
+
"aria-hidden": "true",
|
|
101
|
+
className: "ds:size-[var(--spacing-xs)] ds:shrink-0"
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
/* @__PURE__ */ s(
|
|
105
|
+
M,
|
|
106
|
+
{
|
|
107
|
+
intent: "link",
|
|
108
|
+
size: "sm",
|
|
109
|
+
"data-editable-description-toggle": "",
|
|
110
|
+
className: "ds:!ps-0 ds:!pe-0",
|
|
111
|
+
"aria-expanded": o,
|
|
112
|
+
onClick: () => C((e) => !e),
|
|
113
|
+
children: o ? k ?? n("editableDescription.showLess") : E ?? n("editableDescription.seeMore")
|
|
114
|
+
}
|
|
115
|
+
)
|
|
116
|
+
] })
|
|
117
|
+
) : null
|
|
118
|
+
] }),
|
|
119
|
+
m ? /* @__PURE__ */ s(
|
|
120
|
+
_,
|
|
121
|
+
{
|
|
122
|
+
ref: y,
|
|
123
|
+
icon: /* @__PURE__ */ s(A, { "aria-hidden": "true" }),
|
|
124
|
+
intent: "ghost",
|
|
125
|
+
size: "sm",
|
|
126
|
+
className: "ds:-mt-[var(--spacing-sm)] ds:shrink-0",
|
|
127
|
+
"aria-label": g,
|
|
128
|
+
tooltip: g,
|
|
129
|
+
"data-editable-description-edit": "",
|
|
130
|
+
onClick: m
|
|
131
|
+
}
|
|
132
|
+
) : null
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
G.displayName = "EditableDescription";
|
|
139
|
+
export {
|
|
140
|
+
G as E
|
|
141
|
+
};
|
|
142
|
+
//# sourceMappingURL=editable-description-7ptNpJEg.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
id: "editable-description",
|
|
3
|
+
capabilities: [],
|
|
4
|
+
state: {},
|
|
5
|
+
actions: {},
|
|
6
|
+
domHooks: {
|
|
7
|
+
root: {
|
|
8
|
+
attr: "data-component",
|
|
9
|
+
value: "editable-description",
|
|
10
|
+
description: "Marks the element as a kit EditableDescription."
|
|
11
|
+
},
|
|
12
|
+
item: {
|
|
13
|
+
attr: "data-editable-description-line",
|
|
14
|
+
description: "One visible description line."
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
e
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=editable-description.agent-Bm_LBV2j.js.map
|
|
@@ -4,7 +4,7 @@ import { c as Ve } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as J } from "react-i18next";
|
|
5
5
|
import { B as kt, b as He, c as ge } from "./breadcrumb-agut0PwN.js";
|
|
6
6
|
import { E as Mt } from "./empty-state-X0sVPfVo.js";
|
|
7
|
-
import { S as he } from "./skeleton-
|
|
7
|
+
import { S as he } from "./skeleton-B1KTdJ4N.js";
|
|
8
8
|
import { u as Ct } from "./use-controllable-state-BiY4xTzM.js";
|
|
9
9
|
import { u as wt } from "./registry-DvAUVLHh.js";
|
|
10
10
|
import { B as X } from "./button-nJaPh_HC.js";
|
|
@@ -16,7 +16,7 @@ import { F as Nt, a as Tt } from "./file-Cwe9VC1A.js";
|
|
|
16
16
|
import { F as Ft } from "./file-text-5yv6r2ls.js";
|
|
17
17
|
import { F as At } from "./file-spreadsheet-DmwyfV4O.js";
|
|
18
18
|
import { C as Dt } from "./chevron-right-I9AeSxH2.js";
|
|
19
|
-
import { D as Te } from "./data-table-
|
|
19
|
+
import { D as Te } from "./data-table-Dy1lyumT.js";
|
|
20
20
|
import { A as Rt, a as It } from "./actions-cell-renderer-CUn1pqEq.js";
|
|
21
21
|
import { B as $e } from "./badge-BudgzTe_.js";
|
|
22
22
|
import { D as Ge } from "./download-CfYKJO_j.js";
|
|
@@ -1757,4 +1757,4 @@ export {
|
|
|
1757
1757
|
yn as F,
|
|
1758
1758
|
Gt as f
|
|
1759
1759
|
};
|
|
1760
|
-
//# sourceMappingURL=file-manager-
|
|
1760
|
+
//# sourceMappingURL=file-manager-UlcYQv8n.js.map
|
|
@@ -8,7 +8,7 @@ import { u as le } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
|
8
8
|
import { I as me } from "./icon-button-8xqRnkdG.js";
|
|
9
9
|
import { B as L } from "./button-nJaPh_HC.js";
|
|
10
10
|
import { S as F } from "./separator-CYU_bGFn.js";
|
|
11
|
-
import { S as h } from "./skeleton-
|
|
11
|
+
import { S as h } from "./skeleton-B1KTdJ4N.js";
|
|
12
12
|
import { S as pe } from "./scroll-area-BZOvUhwQ.js";
|
|
13
13
|
import { M as ge } from "./message-card-Dm5Xshup.js";
|
|
14
14
|
import { u as ue } from "./registry-DvAUVLHh.js";
|
|
@@ -491,4 +491,4 @@ export {
|
|
|
491
491
|
Te as M,
|
|
492
492
|
fe as m
|
|
493
493
|
};
|
|
494
|
-
//# sourceMappingURL=message-tray-
|
|
494
|
+
//# sourceMappingURL=message-tray-CXjVsKqp.js.map
|
|
@@ -2,9 +2,9 @@ import { jsxs as V, jsx as p } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as z, useMemo as N } from "react";
|
|
3
3
|
import { c as Z } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as $ } from "react-i18next";
|
|
5
|
-
import { V as
|
|
6
|
-
import { f as
|
|
7
|
-
const
|
|
5
|
+
import { V as O } from "./visually-hidden-BHxEUGyT.js";
|
|
6
|
+
import { f as R, a as T } from "./format-price-BkMEbeW3.js";
|
|
7
|
+
const U = Z(
|
|
8
8
|
[
|
|
9
9
|
"ds:inline-flex ds:items-baseline ds:whitespace-nowrap",
|
|
10
10
|
// Lining, fixed-width figures: without these a column of amounts
|
|
@@ -31,86 +31,72 @@ const T = Z(
|
|
|
31
31
|
},
|
|
32
32
|
defaultVariants: { size: "md", tone: "default", strikethrough: !1 }
|
|
33
33
|
}
|
|
34
|
-
),
|
|
34
|
+
), C = z(
|
|
35
35
|
({
|
|
36
36
|
value: o,
|
|
37
37
|
currency: s = "EUR",
|
|
38
|
-
locale:
|
|
39
|
-
size:
|
|
38
|
+
locale: v,
|
|
39
|
+
size: x,
|
|
40
40
|
tone: l = "default",
|
|
41
|
-
decimals:
|
|
41
|
+
decimals: a = "full",
|
|
42
42
|
signDisplay: m = "auto",
|
|
43
|
-
strikethrough:
|
|
43
|
+
strikethrough: y,
|
|
44
44
|
className: g,
|
|
45
45
|
...h
|
|
46
|
-
},
|
|
47
|
-
const { i18n:
|
|
48
|
-
const e =
|
|
46
|
+
}, j) => {
|
|
47
|
+
const { i18n: b } = $(), n = v ?? b.language, { nodes: k, full: w } = N(() => {
|
|
48
|
+
const e = R(
|
|
49
49
|
o,
|
|
50
50
|
s,
|
|
51
|
-
|
|
51
|
+
n,
|
|
52
52
|
m === "always" ? { signDisplay: "exceptZero" } : {}
|
|
53
|
-
),
|
|
53
|
+
), f = T(o, s, n);
|
|
54
54
|
if (!e)
|
|
55
|
-
return { nodes: [{ text:
|
|
56
|
-
const i = e.map((t) => t.value).join(""), P = e.filter((t) => t.type === "fraction").every((t) => /^0+$/.test(t.value)),
|
|
57
|
-
if (
|
|
58
|
-
const c = e.filter((d) => !
|
|
55
|
+
return { nodes: [{ text: f, muted: !1 }], full: f };
|
|
56
|
+
const i = e.map((t) => t.value).join(""), P = e.filter((t) => t.type === "fraction").every((t) => /^0+$/.test(t.value)), u = (t) => t === "decimal" || t === "fraction";
|
|
57
|
+
if (a === "hideWhenZero" && P) {
|
|
58
|
+
const c = e.filter((d) => !u(d.type)).map((d) => d.value).join("").trim();
|
|
59
59
|
return { nodes: [{ text: c, muted: !1 }], full: c };
|
|
60
60
|
}
|
|
61
|
-
return
|
|
61
|
+
return a === "muted" ? {
|
|
62
62
|
nodes: e.map((t) => ({
|
|
63
63
|
text: t.value,
|
|
64
|
-
muted:
|
|
64
|
+
muted: u(t.type)
|
|
65
65
|
})),
|
|
66
66
|
full: i
|
|
67
67
|
} : { nodes: [{ text: i, muted: !1 }], full: i };
|
|
68
|
-
}, [o, s,
|
|
68
|
+
}, [o, s, n, a, m]), M = l === "auto" ? o < 0 ? "negative" : "default" : l;
|
|
69
69
|
return /* @__PURE__ */ V(
|
|
70
70
|
"span",
|
|
71
71
|
{
|
|
72
|
-
ref:
|
|
72
|
+
ref: j,
|
|
73
73
|
"data-component": "money",
|
|
74
74
|
"data-currency": s.toUpperCase(),
|
|
75
|
-
className:
|
|
76
|
-
size:
|
|
77
|
-
tone:
|
|
78
|
-
strikethrough:
|
|
75
|
+
className: U({
|
|
76
|
+
size: x,
|
|
77
|
+
tone: M,
|
|
78
|
+
strikethrough: y,
|
|
79
79
|
className: g
|
|
80
80
|
}),
|
|
81
81
|
...h,
|
|
82
82
|
children: [
|
|
83
|
-
|
|
83
|
+
k.map((r, e) => /* @__PURE__ */ p(
|
|
84
84
|
"span",
|
|
85
85
|
{
|
|
86
86
|
"aria-hidden": "true",
|
|
87
|
-
className:
|
|
88
|
-
children:
|
|
87
|
+
className: r.muted ? "ds:opacity-70 ds:[font-size:0.85em]" : void 0,
|
|
88
|
+
children: r.text
|
|
89
89
|
},
|
|
90
|
-
`${e}-${
|
|
90
|
+
`${e}-${r.text}`
|
|
91
91
|
)),
|
|
92
|
-
/* @__PURE__ */ p(
|
|
92
|
+
/* @__PURE__ */ p(O, { children: w })
|
|
93
93
|
]
|
|
94
94
|
}
|
|
95
95
|
);
|
|
96
96
|
}
|
|
97
97
|
);
|
|
98
|
-
|
|
99
|
-
const W = {
|
|
100
|
-
id: "money",
|
|
101
|
-
capabilities: [],
|
|
102
|
-
state: {},
|
|
103
|
-
actions: {},
|
|
104
|
-
domHooks: {
|
|
105
|
-
root: {
|
|
106
|
-
attr: "data-component",
|
|
107
|
-
value: "money",
|
|
108
|
-
description: "Marks the element as a kit Money amount."
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
};
|
|
98
|
+
C.displayName = "Money";
|
|
112
99
|
export {
|
|
113
|
-
|
|
114
|
-
W as m
|
|
100
|
+
C as M
|
|
115
101
|
};
|
|
116
|
-
//# sourceMappingURL=money
|
|
102
|
+
//# sourceMappingURL=money-BY-HmKhZ.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
id: "money",
|
|
3
|
+
capabilities: [],
|
|
4
|
+
state: {},
|
|
5
|
+
actions: {},
|
|
6
|
+
domHooks: {
|
|
7
|
+
root: {
|
|
8
|
+
attr: "data-component",
|
|
9
|
+
value: "money",
|
|
10
|
+
description: "Marks the element as a kit Money amount."
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
t as m
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=money.agent-BjJ6gOkx.js.map
|