@alixpartners/ui-components 2.5.3 → 2.5.6
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/README.md +97 -97
- package/dist/CorusHeader.module-xOp6ZX_M.js +35 -0
- package/dist/RichTextEditor-cvtLFe4t.js +443 -0
- package/dist/ap-logos-2dYMA1l5.js +4 -0
- package/dist/assets/CorusHeader.css +1 -0
- package/dist/assets/Input.css +1 -1
- package/dist/assets/RichTextEditor.css +1 -1
- package/dist/assets/SplitButton.css +1 -1
- package/dist/assets/ap-icons-types.d.ts +1 -1
- package/dist/assets/ap-icons.d.ts +1 -1
- package/dist/assets/ap-logos-types.d.ts +1 -1
- package/dist/assets/ap-logos.d.ts +1 -1
- package/dist/assets/main.css +1 -1
- package/dist/components/Checkbox/Checkbox.js +3 -3
- package/dist/components/CorusHeader/CorusHeader.d.ts +3 -0
- package/dist/components/CorusHeader/CorusHeader.js +66 -0
- package/dist/components/CorusHeader/CorusHeader.types.d.ts +58 -0
- package/dist/components/CorusHeader/DropdownItemContent.d.ts +6 -0
- package/dist/components/CorusHeader/DropdownItemContent.js +17 -0
- package/dist/components/CorusHeader/DropdownMenu.d.ts +6 -0
- package/dist/components/CorusHeader/DropdownMenu.js +26 -0
- package/dist/components/CorusHeader/MegaMenuContent.d.ts +6 -0
- package/dist/components/CorusHeader/MegaMenuContent.js +29 -0
- package/dist/components/CorusHeader/UserProfileIcon.d.ts +3 -0
- package/dist/components/CorusHeader/UserProfileIcon.js +9 -0
- package/dist/components/Creatable/Creatable.js +1 -1
- package/dist/components/Datepicker/Datepicker.js +1 -1
- package/dist/components/Dialog/Dialog.js +5 -5
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Icons/IconsGallery.js +1 -1
- package/dist/components/Logo/Logo.d.ts +1 -1
- package/dist/components/Logo/Logo.js +12 -6
- package/dist/components/Logos/LogosGallery.js +1 -1
- package/dist/components/NavBar/NavBar.js +50 -352
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +3 -3
- package/dist/components/RichTextEditor/RichTextEditor.js +2 -2
- package/dist/components/RichTextEditor/RichTextEditor.model.d.ts +1 -1
- package/dist/components/RichTextEditor/RichTextEditor.test.js +76 -59
- package/dist/components/SplitButton/SplitButton.js +3 -3
- package/dist/components/TagsFields/TagsFields.js +1 -1
- package/dist/components/Toggle/Toggle.js +2 -2
- package/dist/components/Tooltip/Tooltip.js +50 -50
- package/dist/{index-7CBv-Jx6.js → index-C2s_VtSb.js} +3 -3
- package/dist/{index-DEphED6n.js → index-C8H9A55g.js} +2 -2
- package/dist/{index-DZ4Gof57.js → index-CCFDXH-J.js} +6 -6
- package/dist/{index-CpsmI33B.js → index-CCnm5-ML.js} +4 -4
- package/dist/{index-Chv2KjIL.js → index-CFqDEbIR.js} +2 -2
- package/dist/{index-BymOxiM6.js → index-CfIcUHKK.js} +1 -1
- package/dist/{index-D34Qo5Qx.js → index-ChQc_Cm6.js} +3 -3
- package/dist/{index-DrR82jOT.js → index-CmGGeUr0.js} +2 -2
- package/dist/index-D_L0ncPJ.js +312 -0
- package/dist/{index-DgdVwltD.js → index-Ii4UOx3H.js} +7 -7
- package/dist/index-Nyh2Wa71.js +27 -0
- package/dist/{index-DM51yNMI.js → index-z_kiwVc3.js} +5 -5
- package/dist/main.d.ts +1 -0
- package/dist/main.js +24 -22
- package/dist/web.config +8 -8
- package/package.json +94 -88
- package/dist/RichTextEditor-CfINW9Xs.js +0 -412
- package/dist/ap-logos-CwA4O8B7.js +0 -4
- package/dist/index-CxAtPSMM.js +0 -27
|
@@ -1,313 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { c as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
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
|
|
338
|
-
activeMenuItemHref:
|
|
339
|
-
projectName:
|
|
340
|
-
projectLogoIcon:
|
|
341
|
-
projectLogoOnClick:
|
|
342
|
-
projectTag:
|
|
343
|
-
menuItems:
|
|
344
|
-
menuButton:
|
|
345
|
-
additionalItems:
|
|
346
|
-
className:
|
|
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
|
|
350
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
354
|
-
/* @__PURE__ */
|
|
355
|
-
/* @__PURE__ */
|
|
356
|
-
/* @__PURE__ */
|
|
357
|
-
|
|
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__ */
|
|
360
|
-
/* @__PURE__ */
|
|
361
|
-
/* @__PURE__ */
|
|
362
|
-
/* @__PURE__ */
|
|
363
|
-
/* @__PURE__ */
|
|
364
|
-
/* @__PURE__ */
|
|
365
|
-
] }) : /* @__PURE__ */
|
|
366
|
-
|
|
367
|
-
] }) },
|
|
368
|
-
|
|
369
|
-
/* @__PURE__ */
|
|
370
|
-
(
|
|
371
|
-
/* @__PURE__ */
|
|
372
|
-
/* @__PURE__ */
|
|
373
|
-
|
|
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__ */
|
|
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
|
-
(
|
|
378
|
-
/* @__PURE__ */
|
|
379
|
-
/* @__PURE__ */
|
|
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
|
-
(
|
|
382
|
-
/* @__PURE__ */
|
|
383
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
22
|
-
|
|
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,
|
|
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-
|
|
9
|
-
import "../../index-
|
|
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
|
|
12
|
+
export declare function getCharacterCountFromModel(model: RichTextDocumentModel): number;
|