@alixpartners/ui-components 2.5.3 → 2.5.5

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 (61) hide show
  1. package/dist/CorusHeader.module-xOp6ZX_M.js +35 -0
  2. package/dist/RichTextEditor-cvtLFe4t.js +443 -0
  3. package/dist/ap-logos-2dYMA1l5.js +4 -0
  4. package/dist/assets/CorusHeader.css +1 -0
  5. package/dist/assets/Input.css +1 -1
  6. package/dist/assets/RichTextEditor.css +1 -1
  7. package/dist/assets/SplitButton.css +1 -1
  8. package/dist/assets/ap-icons-types.d.ts +1 -1
  9. package/dist/assets/ap-icons.d.ts +1 -1
  10. package/dist/assets/ap-logos-types.d.ts +1 -1
  11. package/dist/assets/ap-logos.d.ts +1 -1
  12. package/dist/assets/main.css +1 -1
  13. package/dist/components/Checkbox/Checkbox.js +3 -3
  14. package/dist/components/CorusHeader/CorusHeader.d.ts +3 -0
  15. package/dist/components/CorusHeader/CorusHeader.js +65 -0
  16. package/dist/components/CorusHeader/CorusHeader.types.d.ts +47 -0
  17. package/dist/components/CorusHeader/DropdownItemContent.d.ts +6 -0
  18. package/dist/components/CorusHeader/DropdownItemContent.js +17 -0
  19. package/dist/components/CorusHeader/DropdownMenu.d.ts +6 -0
  20. package/dist/components/CorusHeader/DropdownMenu.js +26 -0
  21. package/dist/components/CorusHeader/MegaMenuContent.d.ts +6 -0
  22. package/dist/components/CorusHeader/MegaMenuContent.js +24 -0
  23. package/dist/components/CorusHeader/UserProfileIcon.d.ts +3 -0
  24. package/dist/components/CorusHeader/UserProfileIcon.js +9 -0
  25. package/dist/components/Creatable/Creatable.js +1 -1
  26. package/dist/components/Datepicker/Datepicker.js +1 -1
  27. package/dist/components/Dialog/Dialog.js +5 -5
  28. package/dist/components/Dropdown/Dropdown.js +1 -1
  29. package/dist/components/Icons/IconsGallery.js +1 -1
  30. package/dist/components/Logo/Logo.d.ts +1 -1
  31. package/dist/components/Logo/Logo.js +12 -6
  32. package/dist/components/Logos/LogosGallery.js +1 -1
  33. package/dist/components/NavBar/NavBar.js +50 -352
  34. package/dist/components/Radio/Radio.js +1 -1
  35. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  36. package/dist/components/RichTextEditor/RichTextEditor.d.ts +3 -3
  37. package/dist/components/RichTextEditor/RichTextEditor.js +2 -2
  38. package/dist/components/RichTextEditor/RichTextEditor.model.d.ts +1 -1
  39. package/dist/components/RichTextEditor/RichTextEditor.test.js +76 -59
  40. package/dist/components/SplitButton/SplitButton.js +3 -3
  41. package/dist/components/TagsFields/TagsFields.js +1 -1
  42. package/dist/components/Toggle/Toggle.js +2 -2
  43. package/dist/components/Tooltip/Tooltip.js +50 -50
  44. package/dist/{index-7CBv-Jx6.js → index-C2s_VtSb.js} +3 -3
  45. package/dist/{index-DEphED6n.js → index-C8H9A55g.js} +2 -2
  46. package/dist/{index-DZ4Gof57.js → index-CCFDXH-J.js} +6 -6
  47. package/dist/{index-CpsmI33B.js → index-CCnm5-ML.js} +4 -4
  48. package/dist/{index-Chv2KjIL.js → index-CFqDEbIR.js} +2 -2
  49. package/dist/{index-BymOxiM6.js → index-CfIcUHKK.js} +1 -1
  50. package/dist/{index-D34Qo5Qx.js → index-ChQc_Cm6.js} +3 -3
  51. package/dist/{index-DrR82jOT.js → index-CmGGeUr0.js} +2 -2
  52. package/dist/index-D_L0ncPJ.js +312 -0
  53. package/dist/{index-DgdVwltD.js → index-Ii4UOx3H.js} +7 -7
  54. package/dist/index-Nyh2Wa71.js +27 -0
  55. package/dist/{index-DM51yNMI.js → index-z_kiwVc3.js} +5 -5
  56. package/dist/main.d.ts +1 -0
  57. package/dist/main.js +24 -22
  58. package/package.json +16 -10
  59. package/dist/RichTextEditor-CfINW9Xs.js +0 -412
  60. package/dist/ap-logos-CwA4O8B7.js +0 -4
  61. package/dist/index-CxAtPSMM.js +0 -27
@@ -1,313 +1,11 @@
1
- import { jsx as e, jsxs as C } from "react/jsx-runtime";
2
- import ae from "../Tag/Tag.js";
3
- import G from "../Icon/Icon.js";
4
- import { c as x } from "../../clsx-OuTLNxxd.js";
5
- import ne from "../Logo/Logo.js";
6
- import * as s from "react";
7
- import { useState as y } from "react";
8
- import { u as re, R as oe, I as te, c as H, a as ie } from "../../index-DEphED6n.js";
9
- import { u as ue, P as z, d as se, c as R, b as le } from "../../index-DM51yNMI.js";
10
- import { u as K } from "../../index-7CBv-Jx6.js";
11
- import { R as ce, A as de, P as me, C as be, I as ve, c as pe, G as _e, L as fe, a as ge, b as he, d as Me, e as Ne, S as Ce, f as Re, g as Pe, h as we } from "../../index-DgdVwltD.js";
12
- import '../../assets/NavBar.css';var S = "Menubar", [L, xe, Se] = ie(S), [Y] = le(S, [
13
- Se,
14
- H
15
- ]), p = pe(), Q = H(), [ye, V] = Y(S), X = s.forwardRef(
16
- (a, o) => {
17
- const {
18
- __scopeMenubar: n,
19
- value: r,
20
- onValueChange: u,
21
- defaultValue: M,
22
- loop: v = !0,
23
- dir: t,
24
- ...d
25
- } = a, _ = re(t), c = Q(n), [g, m] = ue({
26
- prop: r,
27
- onChange: u,
28
- defaultProp: M ?? "",
29
- caller: S
30
- }), [h, l] = s.useState(null);
31
- return /* @__PURE__ */ e(
32
- ye,
33
- {
34
- scope: n,
35
- value: g,
36
- onMenuOpen: s.useCallback(
37
- (f) => {
38
- m(f), l(f);
39
- },
40
- [m]
41
- ),
42
- onMenuClose: s.useCallback(() => m(""), [m]),
43
- onMenuToggle: s.useCallback(
44
- (f) => {
45
- m((w) => w ? "" : f), l(f);
46
- },
47
- [m]
48
- ),
49
- dir: _,
50
- loop: v,
51
- children: /* @__PURE__ */ e(L.Provider, { scope: n, children: /* @__PURE__ */ e(L.Slot, { scope: n, children: /* @__PURE__ */ e(
52
- oe,
53
- {
54
- asChild: !0,
55
- ...c,
56
- orientation: "horizontal",
57
- loop: v,
58
- dir: _,
59
- currentTabStopId: h,
60
- onCurrentTabStopIdChange: l,
61
- children: /* @__PURE__ */ e(z.div, { role: "menubar", ...d, ref: o })
62
- }
63
- ) }) })
64
- }
65
- );
66
- }
67
- );
68
- X.displayName = S;
69
- var j = "MenubarMenu", [Ae, J] = Y(j), W = (a) => {
70
- const { __scopeMenubar: o, value: n, ...r } = a, u = K(), M = n || u || "LEGACY_REACT_AUTO_VALUE", v = V(j, o), t = p(o), d = s.useRef(null), _ = s.useRef(!1), c = v.value === M;
71
- return s.useEffect(() => {
72
- c || (_.current = !1);
73
- }, [c]), /* @__PURE__ */ e(
74
- Ae,
75
- {
76
- scope: o,
77
- value: M,
78
- triggerId: K(),
79
- triggerRef: d,
80
- contentId: K(),
81
- wasKeyboardTriggerOpenRef: _,
82
- children: /* @__PURE__ */ e(
83
- ce,
84
- {
85
- ...t,
86
- open: c,
87
- onOpenChange: (g) => {
88
- g || v.onMenuClose();
89
- },
90
- modal: !1,
91
- dir: v.dir,
92
- ...r
93
- }
94
- )
95
- }
96
- );
97
- };
98
- W.displayName = j;
99
- var F = "MenubarTrigger", Z = s.forwardRef(
100
- (a, o) => {
101
- const { __scopeMenubar: n, disabled: r = !1, ...u } = a, M = Q(n), v = p(n), t = V(F, n), d = J(F, n), _ = s.useRef(null), c = se(o, _, d.triggerRef), [g, m] = s.useState(!1), h = t.value === d.value;
102
- return /* @__PURE__ */ e(L.ItemSlot, { scope: n, value: d.value, disabled: r, children: /* @__PURE__ */ e(
103
- te,
104
- {
105
- asChild: !0,
106
- ...M,
107
- focusable: !r,
108
- tabStopId: d.value,
109
- children: /* @__PURE__ */ e(de, { asChild: !0, ...v, children: /* @__PURE__ */ e(
110
- z.button,
111
- {
112
- type: "button",
113
- role: "menuitem",
114
- id: d.triggerId,
115
- "aria-haspopup": "menu",
116
- "aria-expanded": h,
117
- "aria-controls": h ? d.contentId : void 0,
118
- "data-highlighted": g ? "" : void 0,
119
- "data-state": h ? "open" : "closed",
120
- "data-disabled": r ? "" : void 0,
121
- disabled: r,
122
- ...u,
123
- ref: c,
124
- onPointerDown: R(a.onPointerDown, (l) => {
125
- !r && l.button === 0 && l.ctrlKey === !1 && (t.onMenuOpen(d.value), h || l.preventDefault());
126
- }),
127
- onPointerEnter: R(a.onPointerEnter, () => {
128
- var f;
129
- !!t.value && !h && (t.onMenuOpen(d.value), (f = _.current) == null || f.focus());
130
- }),
131
- onKeyDown: R(a.onKeyDown, (l) => {
132
- r || (["Enter", " "].includes(l.key) && t.onMenuToggle(d.value), l.key === "ArrowDown" && t.onMenuOpen(d.value), ["Enter", " ", "ArrowDown"].includes(l.key) && (d.wasKeyboardTriggerOpenRef.current = !0, l.preventDefault()));
133
- }),
134
- onFocus: R(a.onFocus, () => m(!0)),
135
- onBlur: R(a.onBlur, () => m(!1))
136
- }
137
- ) })
138
- }
139
- ) });
140
- }
141
- );
142
- Z.displayName = F;
143
- var Oe = "MenubarPortal", $ = (a) => {
144
- const { __scopeMenubar: o, ...n } = a, r = p(o);
145
- return /* @__PURE__ */ e(me, { ...r, ...n });
146
- };
147
- $.displayName = Oe;
148
- var U = "MenubarContent", q = s.forwardRef(
149
- (a, o) => {
150
- const { __scopeMenubar: n, align: r = "start", ...u } = a, M = p(n), v = V(U, n), t = J(U, n), d = xe(n), _ = s.useRef(!1);
151
- return /* @__PURE__ */ e(
152
- be,
153
- {
154
- id: t.contentId,
155
- "aria-labelledby": t.triggerId,
156
- "data-radix-menubar-content": "",
157
- ...M,
158
- ...u,
159
- ref: o,
160
- align: r,
161
- onCloseAutoFocus: R(a.onCloseAutoFocus, (c) => {
162
- var m;
163
- !!!v.value && !_.current && ((m = t.triggerRef.current) == null || m.focus()), _.current = !1, c.preventDefault();
164
- }),
165
- onFocusOutside: R(a.onFocusOutside, (c) => {
166
- const g = c.target;
167
- d().some((h) => {
168
- var l;
169
- return (l = h.ref.current) == null ? void 0 : l.contains(g);
170
- }) && c.preventDefault();
171
- }),
172
- onInteractOutside: R(a.onInteractOutside, () => {
173
- _.current = !0;
174
- }),
175
- onEntryFocus: (c) => {
176
- t.wasKeyboardTriggerOpenRef.current || c.preventDefault();
177
- },
178
- onKeyDown: R(
179
- a.onKeyDown,
180
- (c) => {
181
- if (["ArrowRight", "ArrowLeft"].includes(c.key)) {
182
- const g = c.target, m = g.hasAttribute("data-radix-menubar-subtrigger"), h = g.closest("[data-radix-menubar-content]") !== c.currentTarget, f = (v.dir === "rtl" ? "ArrowRight" : "ArrowLeft") === c.key;
183
- if (!f && m || h && f) return;
184
- let N = d().filter((D) => !D.disabled).map((D) => D.value);
185
- f && N.reverse();
186
- const b = N.indexOf(t.value);
187
- N = v.loop ? $e(N, b + 1) : N.slice(b + 1);
188
- const [P] = N;
189
- P && v.onMenuOpen(P);
190
- }
191
- },
192
- { checkForDefaultPrevented: !1 }
193
- ),
194
- style: {
195
- ...a.style,
196
- "--radix-menubar-content-transform-origin": "var(--radix-popper-transform-origin)",
197
- "--radix-menubar-content-available-width": "var(--radix-popper-available-width)",
198
- "--radix-menubar-content-available-height": "var(--radix-popper-available-height)",
199
- "--radix-menubar-trigger-width": "var(--radix-popper-anchor-width)",
200
- "--radix-menubar-trigger-height": "var(--radix-popper-anchor-height)"
201
- }
202
- }
203
- );
204
- }
205
- );
206
- q.displayName = U;
207
- var Ee = "MenubarGroup", Be = s.forwardRef(
208
- (a, o) => {
209
- const { __scopeMenubar: n, ...r } = a, u = p(n);
210
- return /* @__PURE__ */ e(_e, { ...u, ...r, ref: o });
211
- }
212
- );
213
- Be.displayName = Ee;
214
- var Te = "MenubarLabel", Ie = s.forwardRef(
215
- (a, o) => {
216
- const { __scopeMenubar: n, ...r } = a, u = p(n);
217
- return /* @__PURE__ */ e(fe, { ...u, ...r, ref: o });
218
- }
219
- );
220
- Ie.displayName = Te;
221
- var ke = "MenubarItem", ee = s.forwardRef(
222
- (a, o) => {
223
- const { __scopeMenubar: n, ...r } = a, u = p(n);
224
- return /* @__PURE__ */ e(ve, { ...u, ...r, ref: o });
225
- }
226
- );
227
- ee.displayName = ke;
228
- var De = "MenubarCheckboxItem", Ge = s.forwardRef(
229
- (a, o) => {
230
- const { __scopeMenubar: n, ...r } = a, u = p(n);
231
- return /* @__PURE__ */ e(ge, { ...u, ...r, ref: o });
232
- }
233
- );
234
- Ge.displayName = De;
235
- var Ke = "MenubarRadioGroup", Le = s.forwardRef(
236
- (a, o) => {
237
- const { __scopeMenubar: n, ...r } = a, u = p(n);
238
- return /* @__PURE__ */ e(he, { ...u, ...r, ref: o });
239
- }
240
- );
241
- Le.displayName = Ke;
242
- var Fe = "MenubarRadioItem", Ue = s.forwardRef(
243
- (a, o) => {
244
- const { __scopeMenubar: n, ...r } = a, u = p(n);
245
- return /* @__PURE__ */ e(Me, { ...u, ...r, ref: o });
246
- }
247
- );
248
- Ue.displayName = Fe;
249
- var Ve = "MenubarItemIndicator", je = s.forwardRef((a, o) => {
250
- const { __scopeMenubar: n, ...r } = a, u = p(n);
251
- return /* @__PURE__ */ e(Ne, { ...u, ...r, ref: o });
252
- });
253
- je.displayName = Ve;
254
- var He = "MenubarSeparator", ze = s.forwardRef(
255
- (a, o) => {
256
- const { __scopeMenubar: n, ...r } = a, u = p(n);
257
- return /* @__PURE__ */ e(Ce, { ...u, ...r, ref: o });
258
- }
259
- );
260
- ze.displayName = He;
261
- var Ye = "MenubarArrow", Qe = s.forwardRef(
262
- (a, o) => {
263
- const { __scopeMenubar: n, ...r } = a, u = p(n);
264
- return /* @__PURE__ */ e(Re, { ...u, ...r, ref: o });
265
- }
266
- );
267
- Qe.displayName = Ye;
268
- var Xe = "MenubarSubTrigger", Je = s.forwardRef(
269
- (a, o) => {
270
- const { __scopeMenubar: n, ...r } = a, u = p(n);
271
- return /* @__PURE__ */ e(
272
- Pe,
273
- {
274
- "data-radix-menubar-subtrigger": "",
275
- ...u,
276
- ...r,
277
- ref: o
278
- }
279
- );
280
- }
281
- );
282
- Je.displayName = Xe;
283
- var We = "MenubarSubContent", Ze = s.forwardRef(
284
- (a, o) => {
285
- const { __scopeMenubar: n, ...r } = a, u = p(n);
286
- return /* @__PURE__ */ e(
287
- we,
288
- {
289
- ...u,
290
- "data-radix-menubar-content": "",
291
- ...r,
292
- ref: o,
293
- style: {
294
- ...a.style,
295
- "--radix-menubar-content-transform-origin": "var(--radix-popper-transform-origin)",
296
- "--radix-menubar-content-available-width": "var(--radix-popper-available-width)",
297
- "--radix-menubar-content-available-height": "var(--radix-popper-available-height)",
298
- "--radix-menubar-trigger-width": "var(--radix-popper-anchor-width)",
299
- "--radix-menubar-trigger-height": "var(--radix-popper-anchor-height)"
300
- }
301
- }
302
- );
303
- }
304
- );
305
- Ze.displayName = We;
306
- function $e(a, o) {
307
- return a.map((n, r) => a[(o + r) % a.length]);
308
- }
309
- var A = X, O = W, E = Z, B = $, T = q, I = ee;
310
- const i = {
1
+ import { jsx as a, jsxs as i } from "react/jsx-runtime";
2
+ import z from "../Tag/Tag.js";
3
+ import f from "../Icon/Icon.js";
4
+ import { c as o } from "../../clsx-OuTLNxxd.js";
5
+ import K from "../Logo/Logo.js";
6
+ import { useState as u } from "react";
7
+ import { R as v, M as _, T as b, P as d, C as p, I as N } from "../../index-D_L0ncPJ.js";
8
+ import '../../assets/NavBar.css';const n = {
311
9
  "navbar-wrapper": "NavBar-module__navbar-wrapper___e-f8y",
312
10
  "navbar-container": "NavBar-module__navbar-container___KnbUz",
313
11
  "navbar-logo-container": "NavBar-module__navbar-logo-container___VXWAo",
@@ -334,58 +32,58 @@ const i = {
334
32
  "navbar-notification-container": "NavBar-module__navbar-notification-container___K2YeD",
335
33
  "navbar-notification-badge": "NavBar-module__navbar-notification-badge___vp5bK"
336
34
  };
337
- function la({
338
- activeMenuItemHref: a,
339
- projectName: o,
340
- projectLogoIcon: n,
341
- projectLogoOnClick: r,
342
- projectTag: u,
343
- menuItems: M,
344
- menuButton: v,
345
- additionalItems: t,
346
- className: d,
347
- maxWidth: _
35
+ function E({
36
+ activeMenuItemHref: P,
37
+ projectName: C,
38
+ projectLogoIcon: k,
39
+ projectLogoOnClick: O,
40
+ projectTag: g,
41
+ menuItems: h,
42
+ menuButton: j,
43
+ additionalItems: e,
44
+ className: M,
45
+ maxWidth: L
348
46
  }) {
349
- const c = (b) => b ? a === b : !1, [g, m] = y(!1), [h, l] = y(!1), [f, w] = y(!1), [k, N] = y(null);
350
- return /* @__PURE__ */ e("div", { className: x(i["navbar-wrapper"], d), children: /* @__PURE__ */ C("div", { className: i["navbar-container"], style: {
351
- maxWidth: _
47
+ const w = (r) => r ? P === r : !1, [x, t] = u(!1), [y, c] = u(!1), [H, s] = u(!1), [B, m] = u(null);
48
+ return /* @__PURE__ */ a("div", { className: o(n["navbar-wrapper"], M), children: /* @__PURE__ */ i("div", { className: n["navbar-container"], style: {
49
+ maxWidth: L
352
50
  }, children: [
353
- /* @__PURE__ */ C("div", { className: i["navbar-logo-container"], children: [
354
- /* @__PURE__ */ e("a", { onClick: r, className: i["navbar-logo-link"], children: /* @__PURE__ */ e(ne, { logo: n, color: "white" }) }),
355
- /* @__PURE__ */ e("span", { className: i["navbar-project-name-separator"] }),
356
- /* @__PURE__ */ e("span", { className: i["navbar-project-name"], children: o }),
357
- u && /* @__PURE__ */ e(ae, { type: "basic", color: "green", size: "md", structure: "border", label: u })
51
+ /* @__PURE__ */ i("div", { className: n["navbar-logo-container"], children: [
52
+ /* @__PURE__ */ a("a", { onClick: O, className: n["navbar-logo-link"], children: /* @__PURE__ */ a(K, { logo: k, color: "white" }) }),
53
+ /* @__PURE__ */ a("span", { className: n["navbar-project-name-separator"] }),
54
+ /* @__PURE__ */ a("span", { className: n["navbar-project-name"], children: C }),
55
+ g && /* @__PURE__ */ a(z, { type: "basic", color: "green", size: "md", structure: "border", label: g })
358
56
  ] }),
359
- /* @__PURE__ */ C("div", { className: i["navbar-menu"], children: [
360
- /* @__PURE__ */ e("div", { className: i["navbar-menu-button"], children: v }),
361
- /* @__PURE__ */ e(A, { className: i["navbar-menu-list"], children: M == null ? void 0 : M.map((b) => /* @__PURE__ */ e("div", { onPointerLeave: () => N(null), children: /* @__PURE__ */ C(O, { open: k === b.label, onOpenChange: (P) => N(P ? b.label : null), children: [
362
- /* @__PURE__ */ e(E, { "data-state": k === b.label ? "open" : "closed", onClick: () => N(b.label), onPointerMove: () => N(b.label), className: i["navbar-menu-list-item"], children: b.menuItems ? /* @__PURE__ */ C("span", { className: i["navbar-menu-list-item-trigger-container"], children: [
363
- /* @__PURE__ */ e("span", { children: b.label }),
364
- /* @__PURE__ */ e(G, { icon: "ap-icon-expand-more", className: x(i["navbar-menu-list-item-arrow"]) })
365
- ] }) : /* @__PURE__ */ e("a", { className: x(i["navbar-menu-list-item-action"], c(b.href) && i["navbar-menu-list-item-action-active"]), onClick: b.onClick, children: b.label }) }),
366
- b.menuItems && /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(T, { className: i["navbar-menu-list-item-submenu"], children: b.menuItems.map((P) => /* @__PURE__ */ e(I, { className: i["navbar-menu-list-item-submenu-item"], children: /* @__PURE__ */ e("a", { onClick: P.onClick, children: P.label }) }, P.label)) }) })
367
- ] }) }, b.label)) }),
368
- t && /* @__PURE__ */ e("span", { className: i["navbar-menu-additional-separator"] }),
369
- /* @__PURE__ */ C("div", { className: i["navbar-menu-additional"], children: [
370
- (t == null ? void 0 : t.notifications) && /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e("div", { onPointerLeave: () => m(!1), children: /* @__PURE__ */ C(O, { open: g, onOpenChange: m, children: [
371
- /* @__PURE__ */ e(E, { onClick: () => m(!0), onPointerMove: () => m(!0), className: i["navbar-menu-additional-trigger"], children: /* @__PURE__ */ C("div", { className: i["navbar-notification-container"], children: [
372
- /* @__PURE__ */ e(G, { icon: "ap-icon-notification-filled", className: x(i["navbar-menu-additional-icon"], i["navbar-menu-additional-icon-notification"]) }),
373
- t.notifications.count > 0 && /* @__PURE__ */ e("span", { className: i["navbar-notification-badge"], children: t.notifications.count > 99 ? "99+" : t.notifications.count })
57
+ /* @__PURE__ */ i("div", { className: n["navbar-menu"], children: [
58
+ /* @__PURE__ */ a("div", { className: n["navbar-menu-button"], children: j }),
59
+ /* @__PURE__ */ a(v, { className: n["navbar-menu-list"], children: h == null ? void 0 : h.map((r) => /* @__PURE__ */ a("div", { onPointerLeave: () => m(null), children: /* @__PURE__ */ i(_, { open: B === r.label, onOpenChange: (l) => m(l ? r.label : null), children: [
60
+ /* @__PURE__ */ a(b, { "data-state": B === r.label ? "open" : "closed", onClick: () => m(r.label), onPointerMove: () => m(r.label), className: n["navbar-menu-list-item"], children: r.menuItems ? /* @__PURE__ */ i("span", { className: n["navbar-menu-list-item-trigger-container"], children: [
61
+ /* @__PURE__ */ a("span", { children: r.label }),
62
+ /* @__PURE__ */ a(f, { icon: "ap-icon-expand-more", className: o(n["navbar-menu-list-item-arrow"]) })
63
+ ] }) : /* @__PURE__ */ a("a", { className: o(n["navbar-menu-list-item-action"], w(r.href) && n["navbar-menu-list-item-action-active"]), onClick: r.onClick, children: r.label }) }),
64
+ r.menuItems && /* @__PURE__ */ a(d, { children: /* @__PURE__ */ a(p, { className: n["navbar-menu-list-item-submenu"], children: r.menuItems.map((l) => /* @__PURE__ */ a(N, { className: n["navbar-menu-list-item-submenu-item"], children: /* @__PURE__ */ a("a", { onClick: l.onClick, children: l.label }) }, l.label)) }) })
65
+ ] }) }, r.label)) }),
66
+ e && /* @__PURE__ */ a("span", { className: n["navbar-menu-additional-separator"] }),
67
+ /* @__PURE__ */ i("div", { className: n["navbar-menu-additional"], children: [
68
+ (e == null ? void 0 : e.notifications) && /* @__PURE__ */ a(v, { children: /* @__PURE__ */ a("div", { onPointerLeave: () => t(!1), children: /* @__PURE__ */ i(_, { open: x, onOpenChange: t, children: [
69
+ /* @__PURE__ */ a(b, { onClick: () => t(!0), onPointerMove: () => t(!0), className: n["navbar-menu-additional-trigger"], children: /* @__PURE__ */ i("div", { className: n["navbar-notification-container"], children: [
70
+ /* @__PURE__ */ a(f, { icon: "ap-icon-notification-filled", className: o(n["navbar-menu-additional-icon"], n["navbar-menu-additional-icon-notification"]) }),
71
+ e.notifications.count > 0 && /* @__PURE__ */ a("span", { className: n["navbar-notification-badge"], children: e.notifications.count > 99 ? "99+" : e.notifications.count })
374
72
  ] }) }),
375
- /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(T, { align: "end", className: i["navbar-menu-list-item-submenu"], children: /* @__PURE__ */ e(I, { className: i["navbar-menu-list-item-submenu-item"], children: t.notifications.content }) }) })
73
+ /* @__PURE__ */ a(d, { children: /* @__PURE__ */ a(p, { align: "end", className: n["navbar-menu-list-item-submenu"], children: /* @__PURE__ */ a(N, { className: n["navbar-menu-list-item-submenu-item"], children: e.notifications.content }) }) })
376
74
  ] }) }) }),
377
- (t == null ? void 0 : t.help) && /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e("div", { onPointerLeave: () => l(!1), children: /* @__PURE__ */ C(O, { open: h, onOpenChange: l, children: [
378
- /* @__PURE__ */ e(E, { onClick: () => l(!0), onPointerMove: () => l(!0), className: i["navbar-menu-additional-trigger"], children: /* @__PURE__ */ e(G, { icon: "ap-icon-help-filled", className: x(i["navbar-menu-additional-icon"], i["navbar-menu-additional-icon-help"]) }) }),
379
- /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(T, { align: "end", className: i["navbar-menu-list-item-submenu"], children: /* @__PURE__ */ e(I, { className: i["navbar-menu-list-item-submenu-item"], children: t.help }) }) })
75
+ (e == null ? void 0 : e.help) && /* @__PURE__ */ a(v, { children: /* @__PURE__ */ a("div", { onPointerLeave: () => c(!1), children: /* @__PURE__ */ i(_, { open: y, onOpenChange: c, children: [
76
+ /* @__PURE__ */ a(b, { onClick: () => c(!0), onPointerMove: () => c(!0), className: n["navbar-menu-additional-trigger"], children: /* @__PURE__ */ a(f, { icon: "ap-icon-help-filled", className: o(n["navbar-menu-additional-icon"], n["navbar-menu-additional-icon-help"]) }) }),
77
+ /* @__PURE__ */ a(d, { children: /* @__PURE__ */ a(p, { align: "end", className: n["navbar-menu-list-item-submenu"], children: /* @__PURE__ */ a(N, { className: n["navbar-menu-list-item-submenu-item"], children: e.help }) }) })
380
78
  ] }) }) }),
381
- (t == null ? void 0 : t.userProfile) && /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e("div", { onPointerLeave: () => w(!1), children: /* @__PURE__ */ C(O, { open: f, onOpenChange: w, children: [
382
- /* @__PURE__ */ e(E, { onClick: () => w(!0), onPointerMove: () => w(!0), className: i["navbar-menu-additional-trigger"], children: /* @__PURE__ */ e("span", { className: i["navbar-menu-additional-user-profile"], children: t.userProfile.initials }) }),
383
- /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(T, { align: "end", className: i["navbar-menu-list-item-submenu"], children: /* @__PURE__ */ e(I, { className: i["navbar-menu-list-item-submenu-item"], children: t.userProfile.content }) }) })
79
+ (e == null ? void 0 : e.userProfile) && /* @__PURE__ */ a(v, { children: /* @__PURE__ */ a("div", { onPointerLeave: () => s(!1), children: /* @__PURE__ */ i(_, { open: H, onOpenChange: s, children: [
80
+ /* @__PURE__ */ a(b, { onClick: () => s(!0), onPointerMove: () => s(!0), className: n["navbar-menu-additional-trigger"], children: /* @__PURE__ */ a("span", { className: n["navbar-menu-additional-user-profile"], children: e.userProfile.initials }) }),
81
+ /* @__PURE__ */ a(d, { children: /* @__PURE__ */ a(p, { align: "end", className: n["navbar-menu-list-item-submenu"], children: /* @__PURE__ */ a(N, { className: n["navbar-menu-list-item-submenu-item"], children: e.userProfile.content }) }) })
384
82
  ] }) }) })
385
83
  ] })
386
84
  ] })
387
85
  ] }) });
388
86
  }
389
87
  export {
390
- la as default
88
+ E as default
391
89
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
2
  import { useId as r } from "react";
3
3
  import { c as m } from "../../clsx-OuTLNxxd.js";
4
- import { I as c, a as n } from "../../index-CpsmI33B.js";
4
+ import { I as c, a as n } from "../../index-CCnm5-ML.js";
5
5
  import '../../assets/Radio.css';const _ = "Radio-module__item___3Kvj7", u = "Radio-module__indicator___TJ5hz", b = "Radio-module__label___c-sYW", f = "Radio-module__disabled___RZ0be", a = {
6
6
  item: _,
7
7
  indicator: u,
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { c as p } from "../../clsx-OuTLNxxd.js";
3
3
  import { useState as f } from "react";
4
- import { R } from "../../index-CpsmI33B.js";
4
+ import { R } from "../../index-CCnm5-ML.js";
5
5
  import '../../assets/RadioGroup.css';const z = "RadioGroup-module__root___ewZw-", b = "RadioGroup-module__horizontal___QsBvv", h = "RadioGroup-module__disabled___n-nfI", t = {
6
6
  root: z,
7
7
  horizontal: b,
@@ -18,8 +18,8 @@ type RichTextEditorProps = {
18
18
  helpLinkText?: string;
19
19
  toolbarLayout?: ToolbarLayout;
20
20
  showToolbar?: boolean;
21
- showWordCount?: boolean;
22
- maxWords?: number;
21
+ showCharacterCount?: boolean;
22
+ maxCharacters?: number;
23
23
  resizable?: boolean;
24
24
  rows?: number;
25
25
  fullWidth?: boolean;
@@ -29,5 +29,5 @@ type RichTextEditorProps = {
29
29
  onChange?: (value: string) => void;
30
30
  onModelChange?: (model: RichTextDocumentModel) => void;
31
31
  };
32
- export default function RichTextEditor({ className, label, required, value, placeholder, disabled, errorMessage, helpText, helpLink, helpLinkText, toolbarLayout, showToolbar, showWordCount, maxWords, resizable, rows, fullWidth, tooltipEnabled, formatOptions, toolbarOptions, onChange, onModelChange, }: RichTextEditorProps): import("react/jsx-runtime").JSX.Element;
32
+ export default function RichTextEditor({ className, label, required, value, placeholder, disabled, errorMessage, helpText, helpLink, helpLinkText, toolbarLayout, showToolbar, showCharacterCount, maxCharacters, resizable, rows, fullWidth, tooltipEnabled, formatOptions, toolbarOptions, onChange, onModelChange, }: RichTextEditorProps): import("react/jsx-runtime").JSX.Element;
33
33
  export {};
@@ -5,8 +5,8 @@ import "../Dialog/Dialog.js";
5
5
  import "../Icon/Icon.js";
6
6
  import "../Input/Input.js";
7
7
  import "../Tooltip/Tooltip.js";
8
- import { R as l } from "../../RichTextEditor-CfINW9Xs.js";
9
- import "../../index-DZ4Gof57.js";
8
+ import { R as l } from "../../RichTextEditor-cvtLFe4t.js";
9
+ import "../../index-CCFDXH-J.js";
10
10
  export {
11
11
  l as default
12
12
  };
@@ -9,4 +9,4 @@ export type RichTextDocumentModel = {
9
9
  };
10
10
  export declare function createModelFromHtml(html: string): RichTextDocumentModel;
11
11
  export declare function renderModelToHtml(model: RichTextDocumentModel): string;
12
- export declare function getWordCountFromModel(model: RichTextDocumentModel): number;
12
+ export declare function getCharacterCountFromModel(model: RichTextDocumentModel): number;