@alfadocs/ui-kit 1.39.0 → 1.41.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-consent-banner-DvtaM3yg.js → ai-consent-banner-D7I2U-cz.js} +37 -36
- package/dist/_chunks/arrow-left-BfaGqVam.js +15 -0
- package/dist/_chunks/{booking-Dn3jvv3K.js → booking-D43ASl8y.js} +1109 -1103
- package/dist/_chunks/{calendar-workspace-B-fUbm62.js → calendar-workspace-UllCER2k.js} +2170 -2163
- package/dist/_chunks/{contact-profile-card-Zt6WNg1u.js → contact-profile-card-C0WpwpVV.js} +38 -33
- package/dist/_chunks/editor-overlay-DwNKaI22.js +93 -0
- package/dist/_chunks/format-price-DAbh61Lz.js +51 -0
- package/dist/_chunks/help-me-write-templates-GB70jnV9.js +764 -0
- package/dist/_chunks/{marketplace-app-shell-d2EtcUbe.js → marketplace-app-shell-D_g9BaDI.js} +2 -2
- package/dist/_chunks/{money-BY-HmKhZ.js → money-BXLBIRVO.js} +2 -2
- package/dist/_chunks/{notes-panel-CAD1Ytcj.js → notes-panel-_diLt8Cj.js} +76 -73
- package/dist/_chunks/{panel-subview-Cc2Wtt7D.js → panel-subview-PMBRPFOa.js} +49 -59
- package/dist/_chunks/{practice-results-D_jjzwgf.js → practice-results-D11Zpt27.js} +50 -45
- package/dist/_chunks/rich-text-editor-D7AKKAQ2.js +3119 -0
- package/dist/_chunks/{sidebar-C-Gr2LL-.js → sidebar-ClTY9lLI.js} +160 -169
- package/dist/_chunks/{treatment-receipt-dUm99mdn.js → treatment-receipt-DU0OewqH.js} +2 -2
- package/dist/_chunks/trending-up-C_luYBzS.js +15 -0
- package/dist/_chunks/wand-sparkles-DAjKyhz7.js +27 -0
- package/dist/agent-catalog.json +87 -1
- package/dist/agent-i18n/en.json +7 -0
- package/dist/components/_shared/format-price.d.ts +6 -0
- package/dist/components/_shared/index.d.ts +1 -1
- package/dist/components/ai-consent-banner/ai-consent-banner.d.ts +9 -0
- package/dist/components/ai-consent-banner/index.d.ts +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/booking/booking-types.d.ts +6 -0
- package/dist/components/booking/cascade.d.ts +6 -0
- package/dist/components/booking/index.js +1 -1
- package/dist/components/contact-profile-card/contact-profile-card.d.ts +2 -2
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/editor-overlay/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/money/index.js +1 -1
- package/dist/components/notes-panel/index.d.ts +1 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +8 -1
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +2 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +6 -1
- package/dist/components/rich-text-editor/index.d.ts +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +122 -0
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/host-compat.css +13 -1
- package/dist/i18n/locales/ar.d.ts +92 -11
- package/dist/i18n/locales/ar.js +94 -13
- package/dist/i18n/locales/de.d.ts +92 -11
- package/dist/i18n/locales/de.js +94 -13
- package/dist/i18n/locales/el.d.ts +92 -11
- package/dist/i18n/locales/el.js +94 -13
- package/dist/i18n/locales/en.d.ts +81 -0
- package/dist/i18n/locales/en.js +83 -2
- package/dist/i18n/locales/es.d.ts +92 -11
- package/dist/i18n/locales/es.js +94 -13
- package/dist/i18n/locales/fr.d.ts +92 -11
- package/dist/i18n/locales/fr.js +94 -13
- package/dist/i18n/locales/hi.d.ts +92 -11
- package/dist/i18n/locales/hi.js +94 -13
- package/dist/i18n/locales/it.d.ts +92 -11
- package/dist/i18n/locales/it.js +94 -13
- package/dist/i18n/locales/ja.d.ts +92 -11
- package/dist/i18n/locales/ja.js +94 -13
- package/dist/i18n/locales/nl.d.ts +92 -11
- package/dist/i18n/locales/nl.js +94 -13
- package/dist/i18n/locales/pl.d.ts +92 -11
- package/dist/i18n/locales/pl.js +94 -13
- package/dist/i18n/locales/pt.d.ts +92 -11
- package/dist/i18n/locales/pt.js +94 -13
- package/dist/i18n/locales/ro.d.ts +92 -11
- package/dist/i18n/locales/ro.js +94 -13
- package/dist/i18n/locales/ru.d.ts +92 -11
- package/dist/i18n/locales/ru.js +94 -13
- package/dist/i18n/locales/sq.d.ts +92 -11
- package/dist/i18n/locales/sq.js +94 -13
- package/dist/i18n/locales/sv.d.ts +92 -11
- package/dist/i18n/locales/sv.js +94 -13
- package/dist/i18n/locales/tr.d.ts +92 -11
- package/dist/i18n/locales/tr.js +94 -13
- package/dist/i18n/locales/zh.d.ts +92 -11
- package/dist/i18n/locales/zh.js +94 -13
- package/dist/index.js +143 -136
- package/dist/locales/ar.json +94 -13
- package/dist/locales/de.json +94 -13
- package/dist/locales/el.json +94 -13
- package/dist/locales/en.json +83 -2
- package/dist/locales/es.json +94 -13
- package/dist/locales/fr.json +94 -13
- package/dist/locales/hi.json +94 -13
- package/dist/locales/it.json +94 -13
- package/dist/locales/ja.json +94 -13
- package/dist/locales/nl.json +94 -13
- package/dist/locales/pl.json +94 -13
- package/dist/locales/pt.json +94 -13
- package/dist/locales/ro.json +94 -13
- package/dist/locales/ru.json +94 -13
- package/dist/locales/sq.json +94 -13
- package/dist/locales/sv.json +94 -13
- package/dist/locales/tr.json +94 -13
- package/dist/locales/zh.json +94 -13
- package/dist/patterns/calendar/calendar.journey.d.ts +9 -1
- package/dist/patterns/calendar/calendar.sheets.d.ts +6 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +164 -0
- package/dist/patterns/help-me-write-templates/index.d.ts +3 -0
- package/dist/patterns/help-me-write-templates/index.js +10 -0
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/tokens.css +51 -42
- package/package.json +5 -1
- package/dist/_chunks/editor-overlay-9tcPXNWt.js +0 -89
- package/dist/_chunks/format-price-BkMEbeW3.js +0 -47
- package/dist/_chunks/rich-text-editor-C6fE-uP4.js +0 -2627
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfadocs/ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.41.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
|
|
6
6
|
"license": "BUSL-1.1",
|
|
@@ -817,6 +817,10 @@
|
|
|
817
817
|
"types": "./dist/patterns/calendar/index.d.ts",
|
|
818
818
|
"import": "./dist/patterns/calendar/index.js"
|
|
819
819
|
},
|
|
820
|
+
"./patterns/help-me-write-templates": {
|
|
821
|
+
"types": "./dist/patterns/help-me-write-templates/index.d.ts",
|
|
822
|
+
"import": "./dist/patterns/help-me-write-templates/index.js"
|
|
823
|
+
},
|
|
820
824
|
"./patterns/marketplace-app-shell": {
|
|
821
825
|
"types": "./dist/patterns/marketplace-app-shell/index.d.ts",
|
|
822
826
|
"import": "./dist/patterns/marketplace-app-shell/index.js"
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { jsx as s, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as p, useId as w, useCallback as y, useEffect as k } from "react";
|
|
3
|
-
import { useTranslation as E } from "react-i18next";
|
|
4
|
-
import { c as j } from "./index-D2ZczOXr.js";
|
|
5
|
-
import { I } from "./icon-button-CehAeZoP.js";
|
|
6
|
-
import { X as N } from "./x-B5YnXwCz.js";
|
|
7
|
-
const z = j(
|
|
8
|
-
[
|
|
9
|
-
// Spans the editor's block-end edge (a docked bar) and expands from the pill.
|
|
10
|
-
"ds:absolute ds:z-20",
|
|
11
|
-
"ds:[inset-inline-start:var(--spacing-md)] ds:[inset-inline-end:var(--spacing-md)]",
|
|
12
|
-
"ds:[inset-block-end:var(--spacing-md)]",
|
|
13
|
-
// Slim docked bar — compact but with a little breathing room.
|
|
14
|
-
"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
15
|
-
"ds:p-[var(--spacing-md)]",
|
|
16
|
-
"ds:rounded-[var(--radius-lg)]",
|
|
17
|
-
// Apple "Liquid Glass": a translucent base + backdrop blur/saturate so the
|
|
18
|
-
// editor shows through, a specular top "rim" + inner hairline ring, and a
|
|
19
|
-
// soft drop shadow for a floating slab. --card-border is theme-aware (dark
|
|
20
|
-
// hairline on light themes, bright on dark), so the rim reads in all four.
|
|
21
|
-
"ds:bg-[color-mix(in_srgb,var(--popover)_64%,transparent)]",
|
|
22
|
-
"ds:backdrop-blur-xl ds:backdrop-saturate-150",
|
|
23
|
-
"ds:border ds:border-[color-mix(in_srgb,var(--card-border)_70%,transparent)]",
|
|
24
|
-
"ds:shadow-[inset_0_1px_0_0_var(--card-border),inset_0_0_0_1px_color-mix(in_srgb,var(--card-border)_35%,transparent),var(--shadow-lg)]",
|
|
25
|
-
// Liquid-glass grow out of the pill (bottom-inline-end origin).
|
|
26
|
-
"ds:origin-bottom-right ds:animate-in ds:fade-in-0 ds:zoom-in-95",
|
|
27
|
-
"ds:motion-reduce:animate-none"
|
|
28
|
-
].join(" ")
|
|
29
|
-
), C = "ds:text-[length:var(--font-size-base)] ds:font-medium ds:text-[color:var(--foreground)]";
|
|
30
|
-
function D({
|
|
31
|
-
open: n,
|
|
32
|
-
onClose: t,
|
|
33
|
-
title: a,
|
|
34
|
-
ariaLabel: v,
|
|
35
|
-
children: b,
|
|
36
|
-
footer: i,
|
|
37
|
-
id: g,
|
|
38
|
-
className: x
|
|
39
|
-
}) {
|
|
40
|
-
const { t: _ } = E(), o = p(null), c = p(null), l = w(), d = y(() => t(), [t]);
|
|
41
|
-
return k(() => {
|
|
42
|
-
if (!n) return;
|
|
43
|
-
c.current = document.activeElement;
|
|
44
|
-
const h = window.requestAnimationFrame(() => {
|
|
45
|
-
var r, u;
|
|
46
|
-
(u = ((r = o.current) == null ? void 0 : r.querySelector(
|
|
47
|
-
'input, textarea, button, [tabindex]:not([tabindex="-1"])'
|
|
48
|
-
)) ?? o.current) == null || u.focus();
|
|
49
|
-
}), m = (e) => {
|
|
50
|
-
e.key === "Escape" && (e.stopPropagation(), d());
|
|
51
|
-
};
|
|
52
|
-
return document.addEventListener("keydown", m), () => {
|
|
53
|
-
var e, r;
|
|
54
|
-
window.cancelAnimationFrame(h), document.removeEventListener("keydown", m), (r = (e = c.current) == null ? void 0 : e.focus) == null || r.call(e);
|
|
55
|
-
};
|
|
56
|
-
}, [n, d]), n ? /* @__PURE__ */ s("div", { "data-component": "editor-overlay", "data-component-id": g, children: /* @__PURE__ */ f(
|
|
57
|
-
"div",
|
|
58
|
-
{
|
|
59
|
-
ref: o,
|
|
60
|
-
role: "dialog",
|
|
61
|
-
"aria-modal": "false",
|
|
62
|
-
"aria-labelledby": a ? l : void 0,
|
|
63
|
-
"aria-label": a ? void 0 : v,
|
|
64
|
-
tabIndex: -1,
|
|
65
|
-
className: [z(), x].filter(Boolean).join(" "),
|
|
66
|
-
children: [
|
|
67
|
-
a ? /* @__PURE__ */ f("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
68
|
-
/* @__PURE__ */ s("div", { id: l, className: C, children: a }),
|
|
69
|
-
/* @__PURE__ */ s(
|
|
70
|
-
I,
|
|
71
|
-
{
|
|
72
|
-
size: "sm",
|
|
73
|
-
intent: "ghost",
|
|
74
|
-
icon: /* @__PURE__ */ s(N, {}),
|
|
75
|
-
"aria-label": _("common.close"),
|
|
76
|
-
onClick: d
|
|
77
|
-
}
|
|
78
|
-
)
|
|
79
|
-
] }) : null,
|
|
80
|
-
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: b }),
|
|
81
|
-
i ? /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-sm)]", children: i }) : null
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
) }) : null;
|
|
85
|
-
}
|
|
86
|
-
export {
|
|
87
|
-
D as E
|
|
88
|
-
};
|
|
89
|
-
//# sourceMappingURL=editor-overlay-9tcPXNWt.js.map
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
const a = /* @__PURE__ */ new Set([
|
|
2
|
-
"BIF",
|
|
3
|
-
"CLP",
|
|
4
|
-
"DJF",
|
|
5
|
-
"GNF",
|
|
6
|
-
"IDR",
|
|
7
|
-
"JPY",
|
|
8
|
-
"KMF",
|
|
9
|
-
"KRW",
|
|
10
|
-
"MGA",
|
|
11
|
-
"PYG",
|
|
12
|
-
"RWF",
|
|
13
|
-
"UGX",
|
|
14
|
-
"VND",
|
|
15
|
-
"VUV",
|
|
16
|
-
"XAF",
|
|
17
|
-
"XOF",
|
|
18
|
-
"XPF"
|
|
19
|
-
]);
|
|
20
|
-
function s(e, n, o) {
|
|
21
|
-
const r = n.toUpperCase(), t = a.has(r) ? e : e / 100;
|
|
22
|
-
try {
|
|
23
|
-
return new Intl.NumberFormat(o, {
|
|
24
|
-
style: "currency",
|
|
25
|
-
currency: r
|
|
26
|
-
}).format(t);
|
|
27
|
-
} catch {
|
|
28
|
-
return `${a.has(r) ? String(t) : t.toFixed(2)} ${r}`;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function u(e, n, o, r = {}) {
|
|
32
|
-
const t = n.toUpperCase(), c = a.has(t) ? e : e / 100;
|
|
33
|
-
try {
|
|
34
|
-
return new Intl.NumberFormat(o, {
|
|
35
|
-
style: "currency",
|
|
36
|
-
currency: t,
|
|
37
|
-
...r
|
|
38
|
-
}).formatToParts(c);
|
|
39
|
-
} catch {
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
export {
|
|
44
|
-
s as a,
|
|
45
|
-
u as f
|
|
46
|
-
};
|
|
47
|
-
//# sourceMappingURL=format-price-BkMEbeW3.js.map
|