@alfadocs/ui-kit 1.40.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.
Files changed (101) hide show
  1. package/dist/_chunks/arrow-left-BfaGqVam.js +15 -0
  2. package/dist/_chunks/{calendar-workspace-SN23GsXX.js → calendar-workspace-UllCER2k.js} +18 -17
  3. package/dist/_chunks/{contact-profile-card-Zt6WNg1u.js → contact-profile-card-C0WpwpVV.js} +38 -33
  4. package/dist/_chunks/editor-overlay-DwNKaI22.js +93 -0
  5. package/dist/_chunks/format-price-DAbh61Lz.js +51 -0
  6. package/dist/_chunks/help-me-write-templates-GB70jnV9.js +764 -0
  7. package/dist/_chunks/{marketplace-app-shell-d2EtcUbe.js → marketplace-app-shell-D_g9BaDI.js} +2 -2
  8. package/dist/_chunks/{money-BY-HmKhZ.js → money-BXLBIRVO.js} +2 -2
  9. package/dist/_chunks/{notes-panel-CmTqIWlS.js → notes-panel-_diLt8Cj.js} +2 -2
  10. package/dist/_chunks/{panel-subview-Cc2Wtt7D.js → panel-subview-PMBRPFOa.js} +49 -59
  11. package/dist/_chunks/{practice-results-D_jjzwgf.js → practice-results-D11Zpt27.js} +50 -45
  12. package/dist/_chunks/rich-text-editor-D7AKKAQ2.js +3119 -0
  13. package/dist/_chunks/{sidebar-C-Gr2LL-.js → sidebar-ClTY9lLI.js} +160 -169
  14. package/dist/_chunks/{treatment-receipt-dUm99mdn.js → treatment-receipt-DU0OewqH.js} +2 -2
  15. package/dist/_chunks/trending-up-C_luYBzS.js +15 -0
  16. package/dist/_chunks/wand-sparkles-DAjKyhz7.js +27 -0
  17. package/dist/agent-catalog.json +87 -1
  18. package/dist/agent-i18n/en.json +7 -0
  19. package/dist/components/_shared/format-price.d.ts +6 -0
  20. package/dist/components/_shared/index.d.ts +1 -1
  21. package/dist/components/contact-profile-card/contact-profile-card.d.ts +2 -2
  22. package/dist/components/contact-profile-card/index.js +1 -1
  23. package/dist/components/editor-overlay/index.js +1 -1
  24. package/dist/components/index.d.ts +1 -0
  25. package/dist/components/money/index.js +1 -1
  26. package/dist/components/notes-panel/index.js +1 -1
  27. package/dist/components/panel-subview/index.js +1 -1
  28. package/dist/components/practice-results/index.js +1 -1
  29. package/dist/components/practice-results/practice-results.d.ts +2 -1
  30. package/dist/components/rich-text-editor/editor-toolbar.d.ts +6 -1
  31. package/dist/components/rich-text-editor/index.d.ts +1 -1
  32. package/dist/components/rich-text-editor/index.js +1 -1
  33. package/dist/components/rich-text-editor/rich-text-editor.d.ts +74 -0
  34. package/dist/components/sidebar/index.js +1 -1
  35. package/dist/components/treatment-receipt/index.js +1 -1
  36. package/dist/host-compat.css +13 -1
  37. package/dist/i18n/locales/ar.d.ts +79 -0
  38. package/dist/i18n/locales/ar.js +80 -1
  39. package/dist/i18n/locales/de.d.ts +79 -0
  40. package/dist/i18n/locales/de.js +80 -1
  41. package/dist/i18n/locales/el.d.ts +79 -0
  42. package/dist/i18n/locales/el.js +80 -1
  43. package/dist/i18n/locales/en.d.ts +79 -0
  44. package/dist/i18n/locales/en.js +80 -1
  45. package/dist/i18n/locales/es.d.ts +79 -0
  46. package/dist/i18n/locales/es.js +80 -1
  47. package/dist/i18n/locales/fr.d.ts +79 -0
  48. package/dist/i18n/locales/fr.js +80 -1
  49. package/dist/i18n/locales/hi.d.ts +79 -0
  50. package/dist/i18n/locales/hi.js +80 -1
  51. package/dist/i18n/locales/it.d.ts +79 -0
  52. package/dist/i18n/locales/it.js +80 -1
  53. package/dist/i18n/locales/ja.d.ts +79 -0
  54. package/dist/i18n/locales/ja.js +80 -1
  55. package/dist/i18n/locales/nl.d.ts +79 -0
  56. package/dist/i18n/locales/nl.js +80 -1
  57. package/dist/i18n/locales/pl.d.ts +79 -0
  58. package/dist/i18n/locales/pl.js +80 -1
  59. package/dist/i18n/locales/pt.d.ts +79 -0
  60. package/dist/i18n/locales/pt.js +80 -1
  61. package/dist/i18n/locales/ro.d.ts +79 -0
  62. package/dist/i18n/locales/ro.js +80 -1
  63. package/dist/i18n/locales/ru.d.ts +79 -0
  64. package/dist/i18n/locales/ru.js +80 -1
  65. package/dist/i18n/locales/sq.d.ts +79 -0
  66. package/dist/i18n/locales/sq.js +80 -1
  67. package/dist/i18n/locales/sv.d.ts +79 -0
  68. package/dist/i18n/locales/sv.js +80 -1
  69. package/dist/i18n/locales/tr.d.ts +79 -0
  70. package/dist/i18n/locales/tr.js +80 -1
  71. package/dist/i18n/locales/zh.d.ts +79 -0
  72. package/dist/i18n/locales/zh.js +80 -1
  73. package/dist/index.js +141 -134
  74. package/dist/locales/ar.json +80 -1
  75. package/dist/locales/de.json +80 -1
  76. package/dist/locales/el.json +80 -1
  77. package/dist/locales/en.json +80 -1
  78. package/dist/locales/es.json +80 -1
  79. package/dist/locales/fr.json +80 -1
  80. package/dist/locales/hi.json +80 -1
  81. package/dist/locales/it.json +80 -1
  82. package/dist/locales/ja.json +80 -1
  83. package/dist/locales/nl.json +80 -1
  84. package/dist/locales/pl.json +80 -1
  85. package/dist/locales/pt.json +80 -1
  86. package/dist/locales/ro.json +80 -1
  87. package/dist/locales/ru.json +80 -1
  88. package/dist/locales/sq.json +80 -1
  89. package/dist/locales/sv.json +80 -1
  90. package/dist/locales/tr.json +80 -1
  91. package/dist/locales/zh.json +80 -1
  92. package/dist/patterns/calendar/index.js +1 -1
  93. package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +164 -0
  94. package/dist/patterns/help-me-write-templates/index.d.ts +3 -0
  95. package/dist/patterns/help-me-write-templates/index.js +10 -0
  96. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  97. package/dist/tokens.css +51 -42
  98. package/package.json +5 -1
  99. package/dist/_chunks/editor-overlay-9tcPXNWt.js +0 -89
  100. package/dist/_chunks/format-price-BkMEbeW3.js +0 -47
  101. package/dist/_chunks/rich-text-editor-BJ1-Lkao.js +0 -2719
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "1.40.0",
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