@alixpartners/ui-components 2.5.2 → 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.
- 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 +65 -0
- package/dist/components/CorusHeader/CorusHeader.types.d.ts +47 -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 +24 -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 +10 -3
- package/dist/components/RichTextEditor/RichTextEditor.js +5 -3
- 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/package.json +16 -10
- package/dist/RichTextEditor-CHGQT1Qj.js +0 -363
- package/dist/ap-logos-CwA4O8B7.js +0 -4
- package/dist/index-CxAtPSMM.js +0 -27
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import { u as H, R as $, I as j, c as T, a as z } from "./index-C8H9A55g.js";
|
|
3
|
+
import { u as W, P as O, d as X, c as g, b as Y } from "./index-z_kiwVc3.js";
|
|
4
|
+
import { u as C } from "./index-C2s_VtSb.js";
|
|
5
|
+
import { R as q, A as J, P as Q, C as Z, I as ee, c as re, G as ae, L as ne, a as oe, b as te, d as ue, e as se, S as ie, f as ce, g as le, h as de } from "./index-Ii4UOx3H.js";
|
|
6
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
7
|
+
var _ = "Menubar", [x, pe, be] = z(_), [D] = Y(_, [
|
|
8
|
+
be,
|
|
9
|
+
T
|
|
10
|
+
]), p = re(), G = T(), [fe, A] = D(_), K = t.forwardRef(
|
|
11
|
+
(e, n) => {
|
|
12
|
+
const {
|
|
13
|
+
__scopeMenubar: r,
|
|
14
|
+
value: a,
|
|
15
|
+
onValueChange: o,
|
|
16
|
+
defaultValue: h,
|
|
17
|
+
loop: b = !0,
|
|
18
|
+
dir: l,
|
|
19
|
+
...i
|
|
20
|
+
} = e, f = H(l), s = G(r), [M, d] = W({
|
|
21
|
+
prop: a,
|
|
22
|
+
onChange: o,
|
|
23
|
+
defaultProp: h ?? "",
|
|
24
|
+
caller: _
|
|
25
|
+
}), [v, c] = t.useState(null);
|
|
26
|
+
return /* @__PURE__ */ u(
|
|
27
|
+
fe,
|
|
28
|
+
{
|
|
29
|
+
scope: r,
|
|
30
|
+
value: M,
|
|
31
|
+
onMenuOpen: t.useCallback(
|
|
32
|
+
(m) => {
|
|
33
|
+
d(m), c(m);
|
|
34
|
+
},
|
|
35
|
+
[d]
|
|
36
|
+
),
|
|
37
|
+
onMenuClose: t.useCallback(() => d(""), [d]),
|
|
38
|
+
onMenuToggle: t.useCallback(
|
|
39
|
+
(m) => {
|
|
40
|
+
d((N) => N ? "" : m), c(m);
|
|
41
|
+
},
|
|
42
|
+
[d]
|
|
43
|
+
),
|
|
44
|
+
dir: f,
|
|
45
|
+
loop: b,
|
|
46
|
+
children: /* @__PURE__ */ u(x.Provider, { scope: r, children: /* @__PURE__ */ u(x.Slot, { scope: r, children: /* @__PURE__ */ u(
|
|
47
|
+
$,
|
|
48
|
+
{
|
|
49
|
+
asChild: !0,
|
|
50
|
+
...s,
|
|
51
|
+
orientation: "horizontal",
|
|
52
|
+
loop: b,
|
|
53
|
+
dir: f,
|
|
54
|
+
currentTabStopId: v,
|
|
55
|
+
onCurrentTabStopIdChange: c,
|
|
56
|
+
children: /* @__PURE__ */ u(O.div, { role: "menubar", ...i, ref: n })
|
|
57
|
+
}
|
|
58
|
+
) }) })
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
K.displayName = _;
|
|
64
|
+
var y = "MenubarMenu", [me, F] = D(y), k = (e) => {
|
|
65
|
+
const { __scopeMenubar: n, value: r, ...a } = e, o = C(), h = r || o || "LEGACY_REACT_AUTO_VALUE", b = A(y, n), l = p(n), i = t.useRef(null), f = t.useRef(!1), s = b.value === h;
|
|
66
|
+
return t.useEffect(() => {
|
|
67
|
+
s || (f.current = !1);
|
|
68
|
+
}, [s]), /* @__PURE__ */ u(
|
|
69
|
+
me,
|
|
70
|
+
{
|
|
71
|
+
scope: n,
|
|
72
|
+
value: h,
|
|
73
|
+
triggerId: C(),
|
|
74
|
+
triggerRef: i,
|
|
75
|
+
contentId: C(),
|
|
76
|
+
wasKeyboardTriggerOpenRef: f,
|
|
77
|
+
children: /* @__PURE__ */ u(
|
|
78
|
+
q,
|
|
79
|
+
{
|
|
80
|
+
...l,
|
|
81
|
+
open: s,
|
|
82
|
+
onOpenChange: (M) => {
|
|
83
|
+
M || b.onMenuClose();
|
|
84
|
+
},
|
|
85
|
+
modal: !1,
|
|
86
|
+
dir: b.dir,
|
|
87
|
+
...a
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
};
|
|
93
|
+
k.displayName = y;
|
|
94
|
+
var S = "MenubarTrigger", L = t.forwardRef(
|
|
95
|
+
(e, n) => {
|
|
96
|
+
const { __scopeMenubar: r, disabled: a = !1, ...o } = e, h = G(r), b = p(r), l = A(S, r), i = F(S, r), f = t.useRef(null), s = X(n, f, i.triggerRef), [M, d] = t.useState(!1), v = l.value === i.value;
|
|
97
|
+
return /* @__PURE__ */ u(x.ItemSlot, { scope: r, value: i.value, disabled: a, children: /* @__PURE__ */ u(
|
|
98
|
+
j,
|
|
99
|
+
{
|
|
100
|
+
asChild: !0,
|
|
101
|
+
...h,
|
|
102
|
+
focusable: !a,
|
|
103
|
+
tabStopId: i.value,
|
|
104
|
+
children: /* @__PURE__ */ u(J, { asChild: !0, ...b, children: /* @__PURE__ */ u(
|
|
105
|
+
O.button,
|
|
106
|
+
{
|
|
107
|
+
type: "button",
|
|
108
|
+
role: "menuitem",
|
|
109
|
+
id: i.triggerId,
|
|
110
|
+
"aria-haspopup": "menu",
|
|
111
|
+
"aria-expanded": v,
|
|
112
|
+
"aria-controls": v ? i.contentId : void 0,
|
|
113
|
+
"data-highlighted": M ? "" : void 0,
|
|
114
|
+
"data-state": v ? "open" : "closed",
|
|
115
|
+
"data-disabled": a ? "" : void 0,
|
|
116
|
+
disabled: a,
|
|
117
|
+
...o,
|
|
118
|
+
ref: s,
|
|
119
|
+
onPointerDown: g(e.onPointerDown, (c) => {
|
|
120
|
+
!a && c.button === 0 && c.ctrlKey === !1 && (l.onMenuOpen(i.value), v || c.preventDefault());
|
|
121
|
+
}),
|
|
122
|
+
onPointerEnter: g(e.onPointerEnter, () => {
|
|
123
|
+
var m;
|
|
124
|
+
!!l.value && !v && (l.onMenuOpen(i.value), (m = f.current) == null || m.focus());
|
|
125
|
+
}),
|
|
126
|
+
onKeyDown: g(e.onKeyDown, (c) => {
|
|
127
|
+
a || (["Enter", " "].includes(c.key) && l.onMenuToggle(i.value), c.key === "ArrowDown" && l.onMenuOpen(i.value), ["Enter", " ", "ArrowDown"].includes(c.key) && (i.wasKeyboardTriggerOpenRef.current = !0, c.preventDefault()));
|
|
128
|
+
}),
|
|
129
|
+
onFocus: g(e.onFocus, () => d(!0)),
|
|
130
|
+
onBlur: g(e.onBlur, () => d(!1))
|
|
131
|
+
}
|
|
132
|
+
) })
|
|
133
|
+
}
|
|
134
|
+
) });
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
L.displayName = S;
|
|
138
|
+
var Me = "MenubarPortal", B = (e) => {
|
|
139
|
+
const { __scopeMenubar: n, ...r } = e, a = p(n);
|
|
140
|
+
return /* @__PURE__ */ u(Q, { ...a, ...r });
|
|
141
|
+
};
|
|
142
|
+
B.displayName = Me;
|
|
143
|
+
var w = "MenubarContent", U = t.forwardRef(
|
|
144
|
+
(e, n) => {
|
|
145
|
+
const { __scopeMenubar: r, align: a = "start", ...o } = e, h = p(r), b = A(w, r), l = F(w, r), i = pe(r), f = t.useRef(!1);
|
|
146
|
+
return /* @__PURE__ */ u(
|
|
147
|
+
Z,
|
|
148
|
+
{
|
|
149
|
+
id: l.contentId,
|
|
150
|
+
"aria-labelledby": l.triggerId,
|
|
151
|
+
"data-radix-menubar-content": "",
|
|
152
|
+
...h,
|
|
153
|
+
...o,
|
|
154
|
+
ref: n,
|
|
155
|
+
align: a,
|
|
156
|
+
onCloseAutoFocus: g(e.onCloseAutoFocus, (s) => {
|
|
157
|
+
var d;
|
|
158
|
+
!!!b.value && !f.current && ((d = l.triggerRef.current) == null || d.focus()), f.current = !1, s.preventDefault();
|
|
159
|
+
}),
|
|
160
|
+
onFocusOutside: g(e.onFocusOutside, (s) => {
|
|
161
|
+
const M = s.target;
|
|
162
|
+
i().some((v) => {
|
|
163
|
+
var c;
|
|
164
|
+
return (c = v.ref.current) == null ? void 0 : c.contains(M);
|
|
165
|
+
}) && s.preventDefault();
|
|
166
|
+
}),
|
|
167
|
+
onInteractOutside: g(e.onInteractOutside, () => {
|
|
168
|
+
f.current = !0;
|
|
169
|
+
}),
|
|
170
|
+
onEntryFocus: (s) => {
|
|
171
|
+
l.wasKeyboardTriggerOpenRef.current || s.preventDefault();
|
|
172
|
+
},
|
|
173
|
+
onKeyDown: g(
|
|
174
|
+
e.onKeyDown,
|
|
175
|
+
(s) => {
|
|
176
|
+
if (["ArrowRight", "ArrowLeft"].includes(s.key)) {
|
|
177
|
+
const M = s.target, d = M.hasAttribute("data-radix-menubar-subtrigger"), v = M.closest("[data-radix-menubar-content]") !== s.currentTarget, m = (b.dir === "rtl" ? "ArrowRight" : "ArrowLeft") === s.key;
|
|
178
|
+
if (!m && d || v && m) return;
|
|
179
|
+
let R = i().filter((I) => !I.disabled).map((I) => I.value);
|
|
180
|
+
m && R.reverse();
|
|
181
|
+
const P = R.indexOf(l.value);
|
|
182
|
+
R = b.loop ? ke(R, P + 1) : R.slice(P + 1);
|
|
183
|
+
const [E] = R;
|
|
184
|
+
E && b.onMenuOpen(E);
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{ checkForDefaultPrevented: !1 }
|
|
188
|
+
),
|
|
189
|
+
style: {
|
|
190
|
+
...e.style,
|
|
191
|
+
"--radix-menubar-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
192
|
+
"--radix-menubar-content-available-width": "var(--radix-popper-available-width)",
|
|
193
|
+
"--radix-menubar-content-available-height": "var(--radix-popper-available-height)",
|
|
194
|
+
"--radix-menubar-trigger-width": "var(--radix-popper-anchor-width)",
|
|
195
|
+
"--radix-menubar-trigger-height": "var(--radix-popper-anchor-height)"
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
);
|
|
201
|
+
U.displayName = w;
|
|
202
|
+
var ve = "MenubarGroup", ge = t.forwardRef(
|
|
203
|
+
(e, n) => {
|
|
204
|
+
const { __scopeMenubar: r, ...a } = e, o = p(r);
|
|
205
|
+
return /* @__PURE__ */ u(ae, { ...o, ...a, ref: n });
|
|
206
|
+
}
|
|
207
|
+
);
|
|
208
|
+
ge.displayName = ve;
|
|
209
|
+
var he = "MenubarLabel", Re = t.forwardRef(
|
|
210
|
+
(e, n) => {
|
|
211
|
+
const { __scopeMenubar: r, ...a } = e, o = p(r);
|
|
212
|
+
return /* @__PURE__ */ u(ne, { ...o, ...a, ref: n });
|
|
213
|
+
}
|
|
214
|
+
);
|
|
215
|
+
Re.displayName = he;
|
|
216
|
+
var _e = "MenubarItem", V = t.forwardRef(
|
|
217
|
+
(e, n) => {
|
|
218
|
+
const { __scopeMenubar: r, ...a } = e, o = p(r);
|
|
219
|
+
return /* @__PURE__ */ u(ee, { ...o, ...a, ref: n });
|
|
220
|
+
}
|
|
221
|
+
);
|
|
222
|
+
V.displayName = _e;
|
|
223
|
+
var Ie = "MenubarCheckboxItem", Ce = t.forwardRef(
|
|
224
|
+
(e, n) => {
|
|
225
|
+
const { __scopeMenubar: r, ...a } = e, o = p(r);
|
|
226
|
+
return /* @__PURE__ */ u(oe, { ...o, ...a, ref: n });
|
|
227
|
+
}
|
|
228
|
+
);
|
|
229
|
+
Ce.displayName = Ie;
|
|
230
|
+
var xe = "MenubarRadioGroup", Se = t.forwardRef(
|
|
231
|
+
(e, n) => {
|
|
232
|
+
const { __scopeMenubar: r, ...a } = e, o = p(r);
|
|
233
|
+
return /* @__PURE__ */ u(te, { ...o, ...a, ref: n });
|
|
234
|
+
}
|
|
235
|
+
);
|
|
236
|
+
Se.displayName = xe;
|
|
237
|
+
var we = "MenubarRadioItem", Ae = t.forwardRef(
|
|
238
|
+
(e, n) => {
|
|
239
|
+
const { __scopeMenubar: r, ...a } = e, o = p(r);
|
|
240
|
+
return /* @__PURE__ */ u(ue, { ...o, ...a, ref: n });
|
|
241
|
+
}
|
|
242
|
+
);
|
|
243
|
+
Ae.displayName = we;
|
|
244
|
+
var ye = "MenubarItemIndicator", Ne = t.forwardRef((e, n) => {
|
|
245
|
+
const { __scopeMenubar: r, ...a } = e, o = p(r);
|
|
246
|
+
return /* @__PURE__ */ u(se, { ...o, ...a, ref: n });
|
|
247
|
+
});
|
|
248
|
+
Ne.displayName = ye;
|
|
249
|
+
var Pe = "MenubarSeparator", Ee = t.forwardRef(
|
|
250
|
+
(e, n) => {
|
|
251
|
+
const { __scopeMenubar: r, ...a } = e, o = p(r);
|
|
252
|
+
return /* @__PURE__ */ u(ie, { ...o, ...a, ref: n });
|
|
253
|
+
}
|
|
254
|
+
);
|
|
255
|
+
Ee.displayName = Pe;
|
|
256
|
+
var Te = "MenubarArrow", Oe = t.forwardRef(
|
|
257
|
+
(e, n) => {
|
|
258
|
+
const { __scopeMenubar: r, ...a } = e, o = p(r);
|
|
259
|
+
return /* @__PURE__ */ u(ce, { ...o, ...a, ref: n });
|
|
260
|
+
}
|
|
261
|
+
);
|
|
262
|
+
Oe.displayName = Te;
|
|
263
|
+
var De = "MenubarSubTrigger", Ge = t.forwardRef(
|
|
264
|
+
(e, n) => {
|
|
265
|
+
const { __scopeMenubar: r, ...a } = e, o = p(r);
|
|
266
|
+
return /* @__PURE__ */ u(
|
|
267
|
+
le,
|
|
268
|
+
{
|
|
269
|
+
"data-radix-menubar-subtrigger": "",
|
|
270
|
+
...o,
|
|
271
|
+
...a,
|
|
272
|
+
ref: n
|
|
273
|
+
}
|
|
274
|
+
);
|
|
275
|
+
}
|
|
276
|
+
);
|
|
277
|
+
Ge.displayName = De;
|
|
278
|
+
var Ke = "MenubarSubContent", Fe = t.forwardRef(
|
|
279
|
+
(e, n) => {
|
|
280
|
+
const { __scopeMenubar: r, ...a } = e, o = p(r);
|
|
281
|
+
return /* @__PURE__ */ u(
|
|
282
|
+
de,
|
|
283
|
+
{
|
|
284
|
+
...o,
|
|
285
|
+
"data-radix-menubar-content": "",
|
|
286
|
+
...a,
|
|
287
|
+
ref: n,
|
|
288
|
+
style: {
|
|
289
|
+
...e.style,
|
|
290
|
+
"--radix-menubar-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
291
|
+
"--radix-menubar-content-available-width": "var(--radix-popper-available-width)",
|
|
292
|
+
"--radix-menubar-content-available-height": "var(--radix-popper-available-height)",
|
|
293
|
+
"--radix-menubar-trigger-width": "var(--radix-popper-anchor-width)",
|
|
294
|
+
"--radix-menubar-trigger-height": "var(--radix-popper-anchor-height)"
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
);
|
|
298
|
+
}
|
|
299
|
+
);
|
|
300
|
+
Fe.displayName = Ke;
|
|
301
|
+
function ke(e, n) {
|
|
302
|
+
return e.map((r, a) => e[(n + a) % e.length]);
|
|
303
|
+
}
|
|
304
|
+
var je = K, ze = k, We = L, Xe = B, Ye = U, qe = V;
|
|
305
|
+
export {
|
|
306
|
+
Ye as C,
|
|
307
|
+
qe as I,
|
|
308
|
+
ze as M,
|
|
309
|
+
Xe as P,
|
|
310
|
+
je as R,
|
|
311
|
+
We as T
|
|
312
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
|
-
import { d as N, c as v, b as je, P as F,
|
|
3
|
-
import { u as Ze, c as pe, a as $e, I as qe, R as Je } from "./index-
|
|
4
|
-
import { P as Qe, D as et } from "./index-
|
|
5
|
-
import { h as tt, u as nt, R as ot, F as rt } from "./index-
|
|
6
|
-
import { R as ct, A as at, c as ve, C as st, a as ut } from "./index-
|
|
7
|
-
import { P as H } from "./index-
|
|
8
|
-
import { a as Me } from "./index-
|
|
2
|
+
import { d as N, c as v, b as je, P as F, i as He, e as We, a as ze } from "./index-z_kiwVc3.js";
|
|
3
|
+
import { u as Ze, c as pe, a as $e, I as qe, R as Je } from "./index-C8H9A55g.js";
|
|
4
|
+
import { P as Qe, D as et } from "./index-CmGGeUr0.js";
|
|
5
|
+
import { h as tt, u as nt, R as ot, F as rt } from "./index-CFqDEbIR.js";
|
|
6
|
+
import { R as ct, A as at, c as ve, C as st, a as ut } from "./index-ChQc_Cm6.js";
|
|
7
|
+
import { P as H } from "./index-CfIcUHKK.js";
|
|
8
|
+
import { a as Me } from "./index-C2s_VtSb.js";
|
|
9
9
|
import { jsx as u } from "react/jsx-runtime";
|
|
10
10
|
var Q = ["Enter", " "], it = ["ArrowDown", "PageUp", "Home"], he = ["ArrowUp", "PageDown", "End"], lt = [...it, ...he], dt = {
|
|
11
11
|
ltr: [...Q, "ArrowRight"],
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { h as z } from "./index-z_kiwVc3.js";
|
|
3
|
+
function n(r) {
|
|
4
|
+
const [d, e] = u.useState(void 0);
|
|
5
|
+
return z(() => {
|
|
6
|
+
if (r) {
|
|
7
|
+
e({ width: r.offsetWidth, height: r.offsetHeight });
|
|
8
|
+
const f = new ResizeObserver((i) => {
|
|
9
|
+
if (!Array.isArray(i) || !i.length)
|
|
10
|
+
return;
|
|
11
|
+
const b = i[0];
|
|
12
|
+
let o, t;
|
|
13
|
+
if ("borderBoxSize" in b) {
|
|
14
|
+
const s = b.borderBoxSize, h = Array.isArray(s) ? s[0] : s;
|
|
15
|
+
o = h.inlineSize, t = h.blockSize;
|
|
16
|
+
} else
|
|
17
|
+
o = r.offsetWidth, t = r.offsetHeight;
|
|
18
|
+
e({ width: o, height: t });
|
|
19
|
+
});
|
|
20
|
+
return f.observe(r, { box: "border-box" }), () => f.unobserve(r);
|
|
21
|
+
} else
|
|
22
|
+
e(void 0);
|
|
23
|
+
}, [r]), d;
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
n as u
|
|
27
|
+
};
|
package/dist/main.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export { default as TabNavigation } from './components/TabNavigation/TabNavigati
|
|
|
26
26
|
export { default as Dialog } from './components/Dialog/Dialog.tsx';
|
|
27
27
|
export { default as TagsFields } from './components/TagsFields/TagsFields.tsx';
|
|
28
28
|
export { default as NavBar, type MenuItem, type Notifications, type UserProfile, } from './components/NavBar/NavBar.tsx';
|
|
29
|
+
export { default as CorusHeader, type CorusHeaderMenuItem, type CorusHeaderNavGroup, type CorusHeaderNavItem, type CorusHeaderProps, } from './components/CorusHeader/CorusHeader.tsx';
|
|
29
30
|
export { default as Tag, type TagColors } from './components/Tag/Tag.tsx';
|
|
30
31
|
export { default as Tooltip, type TooltipProps } from './components/Tooltip/Tooltip.tsx';
|
|
31
32
|
export { default as Spinner } from './components/Spinner/Spinner.tsx';
|
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as r } from "./components/Button/Button.js";
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as t } from "./components/Checkbox/Checkbox.js";
|
|
3
3
|
import { default as s } from "./components/Icon/Icon.js";
|
|
4
4
|
import { default as l } from "./components/Input/Input.js";
|
|
5
5
|
import { default as u } from "./components/Radio/Radio.js";
|
|
@@ -9,15 +9,15 @@ import { default as c } from "./components/Toggle/Toggle.js";
|
|
|
9
9
|
import { default as D } from "./components/Banner/Banner.js";
|
|
10
10
|
import { default as h } from "./components/Ghost/Ghost.js";
|
|
11
11
|
import { default as B } from "./components/Dropdown/Dropdown.js";
|
|
12
|
-
import { default as
|
|
12
|
+
import { default as R, useFilePickerContext as v } from "./components/FilePicker/FilePicker.js";
|
|
13
13
|
import { default as I } from "./components/Search/Search.js";
|
|
14
14
|
import { default as S } from "./components/Datepicker/Datepicker.js";
|
|
15
|
-
import { R as N } from "./RichTextEditor-
|
|
15
|
+
import { R as N } from "./RichTextEditor-cvtLFe4t.js";
|
|
16
16
|
import { default as w } from "./components/Toast/Toast.js";
|
|
17
17
|
import { T as E } from "./ToastProvider-D5LImZ-Q.js";
|
|
18
|
-
import { u as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
18
|
+
import { u as L } from "./useToast-Cz5MGKnw.js";
|
|
19
|
+
import { default as q } from "./components/Creatable/Creatable.js";
|
|
20
|
+
import { default as z } from "./components/SplitButton/SplitButton.js";
|
|
21
21
|
import { default as K } from "./components/DragAndDrop/DragAndDrop.js";
|
|
22
22
|
import { c as O, d as Q } from "./DragAndDrop.utils-D3xTV9EK.js";
|
|
23
23
|
import { default as W } from "./components/Tab/Tab.js";
|
|
@@ -25,44 +25,46 @@ import { default as Y } from "./components/TabNavigation/TabNavigation.js";
|
|
|
25
25
|
import { default as _ } from "./components/Dialog/Dialog.js";
|
|
26
26
|
import { default as oo } from "./components/TagsFields/TagsFields.js";
|
|
27
27
|
import { default as ro } from "./components/NavBar/NavBar.js";
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as so } from "./components/
|
|
30
|
-
import { default as lo } from "./components/
|
|
31
|
-
import { default as xo } from "./components/
|
|
32
|
-
import {
|
|
28
|
+
import { default as to } from "./components/CorusHeader/CorusHeader.js";
|
|
29
|
+
import { default as so } from "./components/Tag/Tag.js";
|
|
30
|
+
import { default as lo } from "./components/Tooltip/Tooltip.js";
|
|
31
|
+
import { default as xo } from "./components/Spinner/Spinner.js";
|
|
32
|
+
import { default as io } from "./components/Illustration/Illustration.js";
|
|
33
|
+
import { a as To } from "./ap-logos-2dYMA1l5.js";
|
|
33
34
|
import './assets/main.css';export {
|
|
34
35
|
D as Banner,
|
|
35
36
|
r as Button,
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
t as Checkbox,
|
|
38
|
+
to as CorusHeader,
|
|
39
|
+
q as Creatable,
|
|
38
40
|
S as Datepicker,
|
|
39
41
|
_ as Dialog,
|
|
40
42
|
K as DragAndDrop,
|
|
41
43
|
B as Dropdown,
|
|
42
|
-
|
|
44
|
+
R as FilePicker,
|
|
43
45
|
h as Ghost,
|
|
44
46
|
s as Icon,
|
|
45
|
-
|
|
47
|
+
io as Illustration,
|
|
46
48
|
l as Input,
|
|
47
49
|
ro as NavBar,
|
|
48
50
|
u as Radio,
|
|
49
51
|
m as RadioGroup,
|
|
50
52
|
N as RichTextEditor,
|
|
51
53
|
I as Search,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
xo as Spinner,
|
|
55
|
+
z as SplitButton,
|
|
54
56
|
W as Tab,
|
|
55
57
|
Y as TabNavigation,
|
|
56
|
-
|
|
58
|
+
so as Tag,
|
|
57
59
|
oo as TagsFields,
|
|
58
60
|
n as Textarea,
|
|
59
61
|
w as Toast,
|
|
60
62
|
E as ToastProvider,
|
|
61
63
|
c as Toggle,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
+
lo as Tooltip,
|
|
65
|
+
To as apLogos,
|
|
64
66
|
O as composeValidators,
|
|
65
67
|
Q as defaultValidator,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
v as useFilePickerContext,
|
|
69
|
+
L as useToast
|
|
68
70
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alixpartners/ui-components",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -25,24 +25,32 @@
|
|
|
25
25
|
"test:unit": "vitest --project unit",
|
|
26
26
|
"test:storybook": "vitest --project storybook",
|
|
27
27
|
"test:ui": "vitest --ui",
|
|
28
|
+
"test:playwright": "playwright test",
|
|
29
|
+
"test:playwright:chromium": "playwright test --project=chromium",
|
|
30
|
+
"test:playwright:firefox": "playwright test --project=firefox",
|
|
31
|
+
"test:playwright:webkit": "playwright test --project=webkit",
|
|
28
32
|
"coverage": "vitest run --coverage",
|
|
29
33
|
"generate-icons": "node ./src/assets/generateIconsHelperFiles.js",
|
|
30
|
-
"generate-illustrations": "node ./src/assets/generateIllustrationsHelperFiles.js"
|
|
34
|
+
"generate-illustrations": "node ./src/assets/generateIllustrationsHelperFiles.js",
|
|
35
|
+
"generate-e2e-code": "npx playwright codegen"
|
|
31
36
|
},
|
|
32
37
|
"dependencies": {
|
|
33
38
|
"clsx": "^2.1.1"
|
|
34
39
|
},
|
|
35
40
|
"peerDependencies": {
|
|
36
|
-
"
|
|
37
|
-
"react-dom": "^18.3.1",
|
|
41
|
+
"notistack": "^3.0.1",
|
|
38
42
|
"radix-ui": "^1.4.2",
|
|
39
|
-
"
|
|
43
|
+
"react": "^18.3.1",
|
|
44
|
+
"react-dom": "^18.3.1"
|
|
40
45
|
},
|
|
41
46
|
"devDependencies": {
|
|
42
47
|
"@chromatic-com/storybook": "^4.0.1",
|
|
43
48
|
"@eslint/js": "^9.25.0",
|
|
49
|
+
"@playwright/test": "^1.60.0",
|
|
44
50
|
"@storybook/addon-designs": "^10.0.2",
|
|
51
|
+
"@storybook/addon-docs": "^9.0.18",
|
|
45
52
|
"@storybook/addon-onboarding": "^9.0.18",
|
|
53
|
+
"@storybook/addon-vitest": "9.0.18",
|
|
46
54
|
"@storybook/react-vite": "^9.0.18",
|
|
47
55
|
"@testing-library/react": "^16.3.0",
|
|
48
56
|
"@types/node": "^22.15.21",
|
|
@@ -58,11 +66,12 @@
|
|
|
58
66
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
59
67
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
60
68
|
"eslint-plugin-storybook": "^9.0.18",
|
|
69
|
+
"glob": "^11.0.2",
|
|
61
70
|
"globals": "^16.0.0",
|
|
62
71
|
"happy-dom": "^15.11.6",
|
|
63
72
|
"jsdom": "^26.1.0",
|
|
64
73
|
"notistack": "^3.0.1",
|
|
65
|
-
"playwright": "^1.
|
|
74
|
+
"playwright": "^1.60.0",
|
|
66
75
|
"postcss-scss": "^4.0.9",
|
|
67
76
|
"prettier": "^3.5.3",
|
|
68
77
|
"sass": "^1.89.0",
|
|
@@ -75,10 +84,7 @@
|
|
|
75
84
|
"vite": "^6.3.5",
|
|
76
85
|
"vite-plugin-dts": "^4.5.4",
|
|
77
86
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
78
|
-
"vitest": "^3.1.4"
|
|
79
|
-
"@storybook/addon-vitest": "9.0.18",
|
|
80
|
-
"@storybook/addon-docs": "^9.0.18",
|
|
81
|
-
"glob": "^11.0.2"
|
|
87
|
+
"vitest": "^3.1.4"
|
|
82
88
|
},
|
|
83
89
|
"eslintConfig": {
|
|
84
90
|
"extends": [
|