@alfadocs/ui-kit 1.42.0 → 1.44.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 (126) hide show
  1. package/dist/_chunks/{calendar-ChJQzRw-.js → calendar-U6N0F99w.js} +383 -359
  2. package/dist/_chunks/calendar-workspace-DBYAtdyd.js +12161 -0
  3. package/dist/_chunks/control-room-rail-Cv7GpMqX.js +354 -0
  4. package/dist/_chunks/{face-scheme-Dg6ZyLKb.js → face-scheme-Bm6pe7R8.js} +265 -275
  5. package/dist/_chunks/help-me-write-templates-GUeEn3Ff.js +741 -0
  6. package/dist/_chunks/{marketplace-app-shell-D_g9BaDI.js → marketplace-app-shell-DdwPj03y.js} +3 -3
  7. package/dist/_chunks/{notes-panel-CRAovkjx.js → notes-panel-CY4KmDo-.js} +159 -152
  8. package/dist/_chunks/{panel-subview-PMBRPFOa.js → panel-subview-CYnuX-KR.js} +61 -40
  9. package/dist/_chunks/rich-text-editor-BYE6kK4u.js +3839 -0
  10. package/dist/_chunks/{sidebar-ClTY9lLI.js → sidebar-DbZXLl8h.js} +2 -2
  11. package/dist/_chunks/tab-bar-Cw9UK18Z.js +228 -0
  12. package/dist/_chunks/{tool-rail-D89USYE6.js → tool-rail-CCFqDfAn.js} +282 -276
  13. package/dist/_chunks/undo-2-CYNAzclj.js +26 -0
  14. package/dist/_chunks/use-edge-resize-BHesP0kg.js +149 -0
  15. package/dist/_chunks/use-scroll-overflow-UbLrUfBo.js +72 -0
  16. package/dist/_chunks/variables-menu-vXUaSBj4.js +401 -0
  17. package/dist/agent-catalog.json +84 -3
  18. package/dist/agent-i18n/en.json +14 -3
  19. package/dist/components/calendar/calendar.d.ts +6 -0
  20. package/dist/components/calendar/index.js +1 -1
  21. package/dist/components/control-room-rail/control-room-rail.d.ts +9 -0
  22. package/dist/components/control-room-rail/index.js +1 -1
  23. package/dist/components/face-scheme/index.js +1 -1
  24. package/dist/components/index.d.ts +1 -0
  25. package/dist/components/notes-panel/index.js +1 -1
  26. package/dist/components/notes-panel/notes-panel.d.ts +4 -0
  27. package/dist/components/panel-subview/index.js +1 -1
  28. package/dist/components/panel-subview/panel-subview.d.ts +6 -0
  29. package/dist/components/rich-text-editor/editor-toolbar.d.ts +35 -3
  30. package/dist/components/rich-text-editor/index.d.ts +1 -1
  31. package/dist/components/rich-text-editor/index.js +1 -1
  32. package/dist/components/rich-text-editor/rich-text-editor.d.ts +98 -15
  33. package/dist/components/sidebar/index.js +1 -1
  34. package/dist/components/tab-bar/index.js +1 -1
  35. package/dist/components/tool-rail/index.js +1 -1
  36. package/dist/components/tool-rail/tool-rail.d.ts +16 -0
  37. package/dist/components/variables-menu/index.d.ts +4 -0
  38. package/dist/components/variables-menu/index.js +6 -0
  39. package/dist/components/variables-menu/variables-menu.agent.d.ts +10 -0
  40. package/dist/components/variables-menu/variables-menu.d.ts +53 -0
  41. package/dist/hooks/index.d.ts +2 -0
  42. package/dist/hooks/index.js +35 -32
  43. package/dist/hooks/use-edge-resize.d.ts +13 -1
  44. package/dist/host-compat.css +5 -5
  45. package/dist/i18n/locales/ar.d.ts +77 -6
  46. package/dist/i18n/locales/ar.js +78 -7
  47. package/dist/i18n/locales/de.d.ts +77 -6
  48. package/dist/i18n/locales/de.js +78 -7
  49. package/dist/i18n/locales/el.d.ts +77 -6
  50. package/dist/i18n/locales/el.js +78 -7
  51. package/dist/i18n/locales/en.d.ts +77 -6
  52. package/dist/i18n/locales/en.js +85 -7
  53. package/dist/i18n/locales/es.d.ts +77 -6
  54. package/dist/i18n/locales/es.js +78 -7
  55. package/dist/i18n/locales/fr.d.ts +77 -6
  56. package/dist/i18n/locales/fr.js +78 -7
  57. package/dist/i18n/locales/hi.d.ts +77 -6
  58. package/dist/i18n/locales/hi.js +78 -7
  59. package/dist/i18n/locales/it.d.ts +77 -6
  60. package/dist/i18n/locales/it.js +78 -7
  61. package/dist/i18n/locales/ja.d.ts +77 -6
  62. package/dist/i18n/locales/ja.js +78 -7
  63. package/dist/i18n/locales/nl.d.ts +77 -6
  64. package/dist/i18n/locales/nl.js +78 -7
  65. package/dist/i18n/locales/pl.d.ts +77 -6
  66. package/dist/i18n/locales/pl.js +78 -7
  67. package/dist/i18n/locales/pt.d.ts +77 -6
  68. package/dist/i18n/locales/pt.js +78 -7
  69. package/dist/i18n/locales/ro.d.ts +77 -6
  70. package/dist/i18n/locales/ro.js +78 -7
  71. package/dist/i18n/locales/ru.d.ts +77 -6
  72. package/dist/i18n/locales/ru.js +78 -7
  73. package/dist/i18n/locales/sq.d.ts +77 -6
  74. package/dist/i18n/locales/sq.js +78 -7
  75. package/dist/i18n/locales/sv.d.ts +77 -6
  76. package/dist/i18n/locales/sv.js +78 -7
  77. package/dist/i18n/locales/tr.d.ts +77 -6
  78. package/dist/i18n/locales/tr.js +78 -7
  79. package/dist/i18n/locales/zh.d.ts +77 -6
  80. package/dist/i18n/locales/zh.js +78 -7
  81. package/dist/index.js +916 -913
  82. package/dist/locales/ar.json +78 -7
  83. package/dist/locales/de.json +78 -7
  84. package/dist/locales/el.json +78 -7
  85. package/dist/locales/en.json +78 -7
  86. package/dist/locales/es.json +78 -7
  87. package/dist/locales/fr.json +78 -7
  88. package/dist/locales/hi.json +78 -7
  89. package/dist/locales/it.json +78 -7
  90. package/dist/locales/ja.json +78 -7
  91. package/dist/locales/nl.json +78 -7
  92. package/dist/locales/pl.json +78 -7
  93. package/dist/locales/pt.json +78 -7
  94. package/dist/locales/ro.json +78 -7
  95. package/dist/locales/ru.json +78 -7
  96. package/dist/locales/sq.json +78 -7
  97. package/dist/locales/sv.json +78 -7
  98. package/dist/locales/tr.json +78 -7
  99. package/dist/locales/zh.json +78 -7
  100. package/dist/patterns/calendar/calendar-bookings-panel.d.ts +8 -3
  101. package/dist/patterns/calendar/calendar-care-rules.d.ts +49 -0
  102. package/dist/patterns/calendar/calendar-task-editor.d.ts +31 -0
  103. package/dist/patterns/calendar/calendar-workspace.d.ts +8 -1
  104. package/dist/patterns/calendar/calendar-workspace.model.d.ts +39 -12
  105. package/dist/patterns/calendar/calendar.data.d.ts +9 -0
  106. package/dist/patterns/calendar/calendar.journey.d.ts +35 -3
  107. package/dist/patterns/calendar/calendar.model.d.ts +23 -1
  108. package/dist/patterns/calendar/calendar.sheets.d.ts +21 -3
  109. package/dist/patterns/calendar/calendar.surface.d.ts +6 -1
  110. package/dist/patterns/calendar/calendar.types.d.ts +32 -1
  111. package/dist/patterns/calendar/index.js +1 -1
  112. package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +58 -26
  113. package/dist/patterns/help-me-write-templates/index.d.ts +1 -1
  114. package/dist/patterns/help-me-write-templates/index.js +1 -1
  115. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  116. package/dist/tokens.css +6 -6
  117. package/package.json +5 -1
  118. package/dist/_chunks/calendar-workspace-qlxrxCqm.js +0 -11392
  119. package/dist/_chunks/control-room-rail-CnNZusR5.js +0 -337
  120. package/dist/_chunks/help-me-write-templates-B-m7zgJa.js +0 -775
  121. package/dist/_chunks/highlighter-DSkckT2Q.js +0 -15
  122. package/dist/_chunks/rich-text-editor-DUMeifwc.js +0 -3176
  123. package/dist/_chunks/tab-bar-rDkLiaA6.js +0 -268
  124. package/dist/_chunks/use-edge-resize-ZnGG7gyO.js +0 -139
  125. package/dist/_chunks/use-overflow-collapse-BIOzKbni.js +0 -32
  126. package/dist/_chunks/wand-sparkles-DAjKyhz7.js +0 -27
@@ -1,15 +1,15 @@
1
- import { jsxs as P, jsx as o, Fragment as V } from "react/jsx-runtime";
2
- import { forwardRef as j, useId as z, useRef as m, useCallback as B, useEffect as E } from "react";
1
+ import { jsxs as P, jsx as o, Fragment as z } from "react/jsx-runtime";
2
+ import { forwardRef as S, useId as B, useRef as m, useCallback as D, useEffect as E } from "react";
3
3
  import { c as b } from "./index-D2ZczOXr.js";
4
- import { I as D } from "./icon-button-CehAeZoP.js";
5
- import { P as M } from "./panel-header-D_mTdhUp.js";
6
- import { S as q } from "./scroll-area-BZOvUhwQ.js";
7
- import { u as S } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
8
- import { u as K } from "./use-presence-transition-cDwWUXV-.js";
9
- import { A as U } from "./arrow-left-BfaGqVam.js";
10
- const _ = b(
4
+ import { I as M } from "./icon-button-CehAeZoP.js";
5
+ import { P as q } from "./panel-header-D_mTdhUp.js";
6
+ import { S as K } from "./scroll-area-BZOvUhwQ.js";
7
+ import { u as j } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
8
+ import { u as U } from "./use-presence-transition-cDwWUXV-.js";
9
+ import { A as _ } from "./arrow-left-BfaGqVam.js";
10
+ const G = b(
11
11
  "ds:relative ds:flex ds:h-full ds:min-h-0 ds:flex-col ds:overflow-hidden"
12
- ), G = b(
12
+ ), J = b(
13
13
  [
14
14
  "ds:absolute ds:inset-0 ds:z-[2] ds:flex ds:min-h-0 ds:flex-col",
15
15
  "ds:bg-[var(--background)] ds:focus-visible:outline-none",
@@ -22,26 +22,39 @@ const _ = b(
22
22
  "ds:rtl:data-[presence=entering]:-translate-x-full ds:rtl:data-[presence=leaving]:-translate-x-full",
23
23
  "ds:data-[presence=leaving]:pointer-events-none"
24
24
  ].join(" ")
25
- ), J = '[role="combobox"][aria-expanded="true"], [aria-haspopup][aria-expanded="true"]', Q = b(
25
+ ), Q = '[role="combobox"][aria-expanded="true"], [aria-haspopup][aria-expanded="true"]', W = b(
26
26
  [
27
- "ds:flex ds:shrink-0 ds:items-center ds:justify-end",
27
+ "ds:flex ds:shrink-0 ds:items-center",
28
28
  "ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]",
29
29
  "ds:border-t ds:border-[color:var(--border)]"
30
- ].join(" ")
31
- ), A = j(
30
+ ].join(" "),
31
+ {
32
+ variants: {
33
+ /** `'end'` (default): a single trailing action cluster, as most
34
+ * footers use. `'between'` splits the row — a leading destructive
35
+ * action (Remove, say) at the start and the Cancel/Save cluster at
36
+ * the end — for a footer with two sides instead of one. */
37
+ align: {
38
+ end: "ds:justify-end",
39
+ between: "ds:justify-between"
40
+ }
41
+ },
42
+ defaultVariants: { align: "end" }
43
+ }
44
+ ), A = S(
32
45
  ({ className: t, children: i, ...p }, c) => /* @__PURE__ */ o(
33
46
  "div",
34
47
  {
35
48
  ref: c,
36
49
  "data-component": "panel-subview-host",
37
- className: [_(), t].filter(Boolean).join(" "),
50
+ className: [G(), t].filter(Boolean).join(" "),
38
51
  ...p,
39
52
  children: i
40
53
  }
41
54
  )
42
55
  );
43
56
  A.displayName = "PanelSubview.Host";
44
- const I = j(
57
+ const I = S(
45
58
  ({
46
59
  open: t,
47
60
  onBack: i,
@@ -50,22 +63,23 @@ const I = j(
50
63
  icon: N,
51
64
  headingLevel: k,
52
65
  headerActions: H,
53
- footer: h,
54
- onExited: L,
66
+ footer: g,
67
+ footerAlign: L = "end",
68
+ onExited: O,
55
69
  initialFocusRef: l,
56
- className: O,
57
- children: R,
70
+ className: R,
71
+ children: V,
58
72
  ...C
59
73
  }, d) => {
60
- const g = z(), s = K(t, { onExited: L }), u = m(null), v = m(null), w = m(i);
74
+ const h = B(), s = U(t, { onExited: O }), u = m(null), v = m(null), w = m(i);
61
75
  w.current = i;
62
- const { ref: x } = s, T = B(
76
+ const { ref: y } = s, T = D(
63
77
  (e) => {
64
- u.current = e, x(e), typeof d == "function" ? d(e) : d && (d.current = e);
78
+ u.current = e, y(e), typeof d == "function" ? d(e) : d && (d.current = e);
65
79
  },
66
- [x, d]
67
- ), y = m(t);
68
- t && !y.current && typeof document < "u" && (v.current = document.activeElement instanceof HTMLElement ? document.activeElement : null), y.current = t, S(() => {
80
+ [y, d]
81
+ ), x = m(t);
82
+ t && !x.current && typeof document < "u" && (v.current = document.activeElement instanceof HTMLElement ? document.activeElement : null), x.current = t, j(() => {
69
83
  const e = u.current, n = e == null ? void 0 : e.parentElement;
70
84
  if (!t || !e || !n) return;
71
85
  const r = Array.from(n.children).filter(
@@ -76,7 +90,7 @@ const I = j(
76
90
  };
77
91
  }, [t, s.mounted, l]);
78
92
  const f = !t;
79
- return S(() => {
93
+ return j(() => {
80
94
  const e = u.current;
81
95
  if (!e) return;
82
96
  const n = document.activeElement;
@@ -91,7 +105,7 @@ const I = j(
91
105
  const e = u.current;
92
106
  if (!t || !e) return;
93
107
  const n = (r) => {
94
- r.key === "Escape" && (r.stopPropagation(), !(r.defaultPrevented && e.querySelector(J)) && (r.preventDefault(), w.current()));
108
+ r.key === "Escape" && (r.stopPropagation(), !(r.defaultPrevented && e.querySelector(Q)) && (r.preventDefault(), w.current()));
95
109
  };
96
110
  return e.addEventListener("keydown", n), () => e.removeEventListener("keydown", n);
97
111
  }, [t, s.mounted]), s.mounted ? /* @__PURE__ */ P(
@@ -100,26 +114,26 @@ const I = j(
100
114
  ...C,
101
115
  ref: T,
102
116
  tabIndex: -1,
103
- "aria-labelledby": g,
117
+ "aria-labelledby": h,
104
118
  "aria-hidden": f || void 0,
105
119
  "data-component": "panel-subview",
106
120
  "data-presence": s.phase,
107
- className: [G(), O].filter(Boolean).join(" "),
121
+ className: [J(), R].filter(Boolean).join(" "),
108
122
  children: [
109
123
  /* @__PURE__ */ o(
110
- M,
124
+ q,
111
125
  {
112
126
  icon: N,
113
127
  title: p,
114
- headingId: g,
128
+ headingId: h,
115
129
  headingLevel: k,
116
130
  sticky: !0,
117
131
  divider: !0,
118
- actions: /* @__PURE__ */ P(V, { children: [
132
+ actions: /* @__PURE__ */ P(z, { children: [
119
133
  /* @__PURE__ */ o(
120
- D,
134
+ M,
121
135
  {
122
- icon: /* @__PURE__ */ o(U, { "aria-hidden": "true" }),
136
+ icon: /* @__PURE__ */ o(_, { "aria-hidden": "true" }),
123
137
  intent: "ghost",
124
138
  size: "sm",
125
139
  flipIconInRtl: !0,
@@ -133,18 +147,25 @@ const I = j(
133
147
  ] })
134
148
  }
135
149
  ),
136
- /* @__PURE__ */ o(q, { orientation: "vertical", className: "ds:min-h-0 ds:flex-1", children: R }),
137
- h ? /* @__PURE__ */ o("div", { "data-panel-subview-footer": "", className: Q(), children: h }) : null
150
+ /* @__PURE__ */ o(K, { orientation: "vertical", className: "ds:min-h-0 ds:flex-1", children: V }),
151
+ g ? /* @__PURE__ */ o(
152
+ "div",
153
+ {
154
+ "data-panel-subview-footer": "",
155
+ className: W({ align: L }),
156
+ children: g
157
+ }
158
+ ) : null
138
159
  ]
139
160
  }
140
161
  ) : null;
141
162
  }
142
163
  );
143
164
  I.displayName = "PanelSubview";
144
- const re = Object.assign(I, {
165
+ const se = Object.assign(I, {
145
166
  Host: A
146
167
  });
147
168
  export {
148
- re as P
169
+ se as P
149
170
  };
150
- //# sourceMappingURL=panel-subview-PMBRPFOa.js.map
171
+ //# sourceMappingURL=panel-subview-CYnuX-KR.js.map