@alfadocs/ui-kit 1.147.1 → 1.147.2
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/{appointment-details-panel.history-eqPMKmW0.js → appointment-details-panel.history-BxNqcA-r.js} +109 -110
- package/dist/_chunks/{calendar-appointment-editor-dialog-sY-k0GGW.js → calendar-appointment-editor-dialog-CoIFwj9g.js} +4 -4
- package/dist/_chunks/{calendar-waiting-list-panel-Bm7NAZdk.js → calendar-waiting-list-panel-DuALuqLD.js} +2 -2
- package/dist/_chunks/{calendar.sheets-CCvdZF-R.js → calendar.sheets-CueyPkTT.js} +3 -3
- package/dist/_chunks/editable-description-BsSjLnSx.js +193 -0
- package/dist/_chunks/{editable-description.agent-Bm_LBV2j.js → editable-description.agent-zyyR_hxB.js} +2 -2
- package/dist/_chunks/{notes-panel-C9aB1Cma.js → notes-panel-BHMnLbEH.js} +2 -2
- package/dist/_chunks/{rich-text-editor-CJXc5GgH.js → rich-text-editor-BAcJq1PO.js} +445 -437
- package/dist/_chunks/{use-appointment-details-read-Dod21IxM.js → use-appointment-details-read-CC74Y-r5.js} +417 -422
- package/dist/agent-catalog.json +2 -2
- package/dist/appointment-editor-panel/index.js +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/components/appointment-details-panel/appointment-details-panel.history.d.ts +4 -6
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/editable-description/editable-description.d.ts +2 -1
- package/dist/components/editable-description/index.js +2 -2
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +0 -1
- package/dist/i18n/locales/ar.js +1 -2
- package/dist/i18n/locales/de.d.ts +0 -1
- package/dist/i18n/locales/de.js +1 -2
- package/dist/i18n/locales/el.d.ts +0 -1
- package/dist/i18n/locales/el.js +1 -2
- package/dist/i18n/locales/en.d.ts +0 -1
- package/dist/i18n/locales/en.js +1 -2
- package/dist/i18n/locales/es.d.ts +0 -1
- package/dist/i18n/locales/es.js +1 -2
- package/dist/i18n/locales/fr.d.ts +0 -1
- package/dist/i18n/locales/fr.js +1 -2
- package/dist/i18n/locales/hi.d.ts +0 -1
- package/dist/i18n/locales/hi.js +1 -2
- package/dist/i18n/locales/it.d.ts +0 -1
- package/dist/i18n/locales/it.js +1 -2
- package/dist/i18n/locales/ja.d.ts +0 -1
- package/dist/i18n/locales/ja.js +1 -2
- package/dist/i18n/locales/nl.d.ts +0 -1
- package/dist/i18n/locales/nl.js +1 -2
- package/dist/i18n/locales/pl.d.ts +0 -1
- package/dist/i18n/locales/pl.js +1 -2
- package/dist/i18n/locales/pt.d.ts +0 -1
- package/dist/i18n/locales/pt.js +1 -2
- package/dist/i18n/locales/ro.d.ts +0 -1
- package/dist/i18n/locales/ro.js +1 -2
- package/dist/i18n/locales/ru.d.ts +0 -1
- package/dist/i18n/locales/ru.js +1 -2
- package/dist/i18n/locales/sq.d.ts +0 -1
- package/dist/i18n/locales/sq.js +1 -2
- package/dist/i18n/locales/sv.d.ts +0 -1
- package/dist/i18n/locales/sv.js +1 -2
- package/dist/i18n/locales/tr.d.ts +0 -1
- package/dist/i18n/locales/tr.js +1 -2
- package/dist/i18n/locales/zh.d.ts +0 -1
- package/dist/i18n/locales/zh.js +1 -2
- package/dist/index.js +7 -7
- package/dist/locales/ar.json +1 -2
- package/dist/locales/de.json +1 -2
- package/dist/locales/el.json +1 -2
- package/dist/locales/en.json +1 -2
- package/dist/locales/es.json +1 -2
- package/dist/locales/fr.json +1 -2
- package/dist/locales/hi.json +1 -2
- package/dist/locales/it.json +1 -2
- package/dist/locales/ja.json +1 -2
- package/dist/locales/nl.json +1 -2
- package/dist/locales/pl.json +1 -2
- package/dist/locales/pt.json +1 -2
- package/dist/locales/ro.json +1 -2
- package/dist/locales/ru.json +1 -2
- package/dist/locales/sq.json +1 -2
- package/dist/locales/sv.json +1 -2
- package/dist/locales/tr.json +1 -2
- package/dist/locales/zh.json +1 -2
- package/dist/online-bookings-panel/index.js +1 -1
- package/dist/patterns/calendar/index.js +2 -2
- package/dist/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +2 -2
- package/package.json +1 -1
- package/dist/_chunks/editable-description-BQauSuCG.js +0 -142
|
@@ -4,8 +4,8 @@ import { useTranslation as K } from "react-i18next";
|
|
|
4
4
|
import { d as s, b as L } from "../_chunks/toast-Cgmh1cvj.js";
|
|
5
5
|
import { a as M } from "../_chunks/tooltip-uEBdD1-5.js";
|
|
6
6
|
import { C as Q } from "../_chunks/calendar-editor-guard-9fShhNIA.js";
|
|
7
|
-
import { S as V } from "../_chunks/calendar.sheets-
|
|
8
|
-
import { W as X } from "../_chunks/calendar-waiting-list-panel-
|
|
7
|
+
import { S as V } from "../_chunks/calendar.sheets-CueyPkTT.js";
|
|
8
|
+
import { W as X } from "../_chunks/calendar-waiting-list-panel-DuALuqLD.js";
|
|
9
9
|
import { P as Y } from "../_chunks/privacy-mask-zVh0ntm0.js";
|
|
10
10
|
import { H as Z } from "../_chunks/hourglass-BEAzW1wE.js";
|
|
11
11
|
const q = { open: () => {
|
package/package.json
CHANGED
|
@@ -1,142 +0,0 @@
|
|
|
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-Dp4j9ygh.js";
|
|
6
|
-
import { I as _ } from "./icon-button-u9VMQn3x.js";
|
|
7
|
-
import { C as $, S as R } from "./skeleton-tTWJpvAq.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("ui"), [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-BQauSuCG.js.map
|