@alixpartners/ui-components 2.1.2 → 2.2.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.
- package/dist/ToastProvider-D5LImZ-Q.js +1136 -0
- package/dist/assets/Dialog.css +1 -1
- package/dist/assets/NavBar.css +1 -1
- package/dist/assets/SplitButton.css +1 -1
- package/dist/assets/Tooltip.css +1 -1
- package/dist/components/Banner/Banner.test.js +1 -1
- package/dist/components/Button/Button.test.js +124 -3217
- package/dist/components/Checkbox/Checkbox.js +7 -6
- package/dist/components/Checkbox/Checkbox.test.js +47 -47
- package/dist/components/Creatable/Creatable.js +107 -108
- package/dist/components/Dialog/Dialog.d.ts +21 -7
- package/dist/components/Dialog/Dialog.js +296 -61
- package/dist/components/Dialog/Dialog.test.d.ts +1 -0
- package/dist/components/Dialog/Dialog.test.js +368 -0
- package/dist/components/Dropdown/Dropdown.js +80 -81
- package/dist/components/FilePicker/FilePicker.test.js +1 -1
- package/dist/components/Ghost/Ghost.test.js +6 -6
- package/dist/components/Input/Input.test.js +2 -2
- package/dist/components/NavBar/NavBar.js +16 -16
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.test.js +1 -1
- package/dist/components/Search/Search.test.js +1 -1
- package/dist/components/SplitButton/SplitButton.js +8 -9
- package/dist/components/SplitButton/SplitButton.test.js +1 -1
- package/dist/components/Tag/Tag.test.js +1 -1
- package/dist/components/TagsFields/TagsFields.js +3 -4
- package/dist/components/Textarea/Textarea.js +68 -70
- package/dist/components/Textarea/Textarea.test.js +2 -2
- package/dist/components/Toast/Toast.d.ts +5 -19
- package/dist/components/Toast/Toast.js +65 -62
- package/dist/components/Toast/Toast.test.js +47 -30
- package/dist/components/ToastProvider/ToastContext.d.ts +11 -0
- package/dist/components/ToastProvider/ToastProvider.d.ts +19 -0
- package/dist/components/ToastProvider/ToastProvider.js +7 -0
- package/dist/components/ToastProvider/ToastProvider.test.d.ts +1 -0
- package/dist/components/ToastProvider/ToastProvider.test.js +264 -0
- package/dist/components/ToastProvider/types.d.ts +54 -0
- package/dist/components/ToastProvider/useToast.d.ts +28 -0
- package/dist/components/Toggle/Toggle.js +31 -30
- package/dist/components/Toggle/Toggle.test.js +9 -9
- package/dist/components/Tooltip/Tooltip.js +20 -19
- package/dist/{index-2H7slGYV.js → index-7CBv-Jx6.js} +1 -1
- package/dist/{index-DpfPnSMn.js → index-BymOxiM6.js} +2 -2
- package/dist/index-C-3_YVJ1.js +1539 -0
- package/dist/{index-BKtdMA_j.js → index-C4ffg1vf.js} +24 -23
- package/dist/{index-BGZDIjm9.js → index-Chv2KjIL.js} +171 -168
- package/dist/{index-BJXIvJs4.js → index-CpsmI33B.js} +24 -23
- package/dist/index-CxAtPSMM.js +27 -0
- package/dist/{index-CjQV7MmW.js → index-DEphED6n.js} +11 -11
- package/dist/index-DM51yNMI.js +237 -0
- package/dist/{index-CVWHq7Pr.js → index-D_3jWVyV.js} +37 -36
- package/dist/index-DkTDHhag.js +3098 -0
- package/dist/index-DrR82jOT.js +142 -0
- package/dist/magic-string.es-uPKorP4O.js +663 -0
- package/dist/main.d.ts +3 -0
- package/dist/main.js +38 -34
- package/dist/useToast-Cz5MGKnw.js +11 -0
- package/dist/{vi.ClIskdbk-CFW_9sOK.js → vi.bdSIJ99Y-017e_Pkz.js} +9494 -10227
- package/package.json +6 -3
- package/dist/index-DWydnyjJ.js +0 -245
- package/dist/index-DieLVN0p.js +0 -1664
- package/dist/magic-string.es-D4UQQyt0.js +0 -859
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
|
-
import { u as G,
|
|
3
|
-
import {
|
|
4
|
-
import { h as
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
2
|
+
import { u as G, d as O, P as _, c as P, b as H, f as K } from "./index-DM51yNMI.js";
|
|
3
|
+
import { P as $, D as j } from "./index-DrR82jOT.js";
|
|
4
|
+
import { h as U, R as V, u as W, F as Z } from "./index-Chv2KjIL.js";
|
|
5
|
+
import { u as q } from "./index-7CBv-Jx6.js";
|
|
6
|
+
import { R as z, A as x, c as w, C as B, a as J } from "./index-C-3_YVJ1.js";
|
|
7
|
+
import { P as E } from "./index-BymOxiM6.js";
|
|
7
8
|
import { jsx as p } from "react/jsx-runtime";
|
|
8
|
-
var m = "Popover", [
|
|
9
|
-
|
|
10
|
-
]), g =
|
|
9
|
+
var m = "Popover", [b] = H(m, [
|
|
10
|
+
w
|
|
11
|
+
]), g = w(), [Q, d] = b(m), F = (e) => {
|
|
11
12
|
const {
|
|
12
13
|
__scopePopover: n,
|
|
13
14
|
children: t,
|
|
@@ -21,11 +22,11 @@ var m = "Popover", [F, de] = H(m, [
|
|
|
21
22
|
onChange: r,
|
|
22
23
|
caller: m
|
|
23
24
|
});
|
|
24
|
-
return /* @__PURE__ */ p(
|
|
25
|
+
return /* @__PURE__ */ p(z, { ...c, children: /* @__PURE__ */ p(
|
|
25
26
|
Q,
|
|
26
27
|
{
|
|
27
28
|
scope: n,
|
|
28
|
-
contentId:
|
|
29
|
+
contentId: q(),
|
|
29
30
|
triggerRef: u,
|
|
30
31
|
open: C,
|
|
31
32
|
onOpenChange: f,
|
|
@@ -38,11 +39,11 @@ var m = "Popover", [F, de] = H(m, [
|
|
|
38
39
|
}
|
|
39
40
|
) });
|
|
40
41
|
};
|
|
41
|
-
|
|
42
|
+
F.displayName = m;
|
|
42
43
|
var N = "PopoverAnchor", S = i.forwardRef(
|
|
43
44
|
(e, n) => {
|
|
44
45
|
const { __scopePopover: t, ...a } = e, o = d(N, t), r = g(t), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = o;
|
|
45
|
-
return i.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ p(
|
|
46
|
+
return i.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ p(x, { ...r, ...a, ref: n });
|
|
46
47
|
}
|
|
47
48
|
);
|
|
48
49
|
S.displayName = N;
|
|
@@ -61,15 +62,15 @@ var y = "PopoverTrigger", D = i.forwardRef(
|
|
|
61
62
|
onClick: P(e.onClick, o.onOpenToggle)
|
|
62
63
|
}
|
|
63
64
|
);
|
|
64
|
-
return o.hasCustomAnchor ? c : /* @__PURE__ */ p(
|
|
65
|
+
return o.hasCustomAnchor ? c : /* @__PURE__ */ p(x, { asChild: !0, ...r, children: c });
|
|
65
66
|
}
|
|
66
67
|
);
|
|
67
68
|
D.displayName = y;
|
|
68
|
-
var A = "PopoverPortal", [X, Y] =
|
|
69
|
+
var A = "PopoverPortal", [X, Y] = b(A, {
|
|
69
70
|
forceMount: void 0
|
|
70
71
|
}), M = (e) => {
|
|
71
72
|
const { __scopePopover: n, forceMount: t, children: a, container: o } = e, r = d(A, n);
|
|
72
|
-
return /* @__PURE__ */ p(X, { scope: n, forceMount: t, children: /* @__PURE__ */ p(E, { present: t || r.open, children: /* @__PURE__ */ p(
|
|
73
|
+
return /* @__PURE__ */ p(X, { scope: n, forceMount: t, children: /* @__PURE__ */ p(E, { present: t || r.open, children: /* @__PURE__ */ p($, { asChild: !0, container: o, children: a }) }) });
|
|
73
74
|
};
|
|
74
75
|
M.displayName = A;
|
|
75
76
|
var v = "PopoverContent", T = i.forwardRef(
|
|
@@ -84,8 +85,8 @@ var ee = K("PopoverContent.RemoveScroll"), oe = i.forwardRef(
|
|
|
84
85
|
const t = d(v, e.__scopePopover), a = i.useRef(null), o = O(n, a), r = i.useRef(!1);
|
|
85
86
|
return i.useEffect(() => {
|
|
86
87
|
const s = a.current;
|
|
87
|
-
if (s) return
|
|
88
|
-
}, []), /* @__PURE__ */ p(
|
|
88
|
+
if (s) return U(s);
|
|
89
|
+
}, []), /* @__PURE__ */ p(V, { as: ee, allowPinchZoom: !0, children: /* @__PURE__ */ p(
|
|
89
90
|
k,
|
|
90
91
|
{
|
|
91
92
|
...e,
|
|
@@ -149,8 +150,8 @@ var ee = K("PopoverContent.RemoveScroll"), oe = i.forwardRef(
|
|
|
149
150
|
onInteractOutside: h,
|
|
150
151
|
...C
|
|
151
152
|
} = e, f = d(v, t), R = g(t);
|
|
152
|
-
return
|
|
153
|
-
|
|
153
|
+
return W(), /* @__PURE__ */ p(
|
|
154
|
+
Z,
|
|
154
155
|
{
|
|
155
156
|
asChild: !0,
|
|
156
157
|
loop: !0,
|
|
@@ -158,7 +159,7 @@ var ee = K("PopoverContent.RemoveScroll"), oe = i.forwardRef(
|
|
|
158
159
|
onMountAutoFocus: o,
|
|
159
160
|
onUnmountAutoFocus: r,
|
|
160
161
|
children: /* @__PURE__ */ p(
|
|
161
|
-
|
|
162
|
+
j,
|
|
162
163
|
{
|
|
163
164
|
asChild: !0,
|
|
164
165
|
disableOutsidePointerEvents: s,
|
|
@@ -168,7 +169,7 @@ var ee = K("PopoverContent.RemoveScroll"), oe = i.forwardRef(
|
|
|
168
169
|
onFocusOutside: l,
|
|
169
170
|
onDismiss: () => f.onOpenChange(!1),
|
|
170
171
|
children: /* @__PURE__ */ p(
|
|
171
|
-
|
|
172
|
+
B,
|
|
172
173
|
{
|
|
173
174
|
"data-state": L(f.open),
|
|
174
175
|
role: "dialog",
|
|
@@ -209,14 +210,14 @@ te.displayName = I;
|
|
|
209
210
|
var ne = "PopoverArrow", ae = i.forwardRef(
|
|
210
211
|
(e, n) => {
|
|
211
212
|
const { __scopePopover: t, ...a } = e, o = g(t);
|
|
212
|
-
return /* @__PURE__ */ p(
|
|
213
|
+
return /* @__PURE__ */ p(J, { ...o, ...a, ref: n });
|
|
213
214
|
}
|
|
214
215
|
);
|
|
215
216
|
ae.displayName = ne;
|
|
216
217
|
function L(e) {
|
|
217
218
|
return e ? "open" : "closed";
|
|
218
219
|
}
|
|
219
|
-
var fe =
|
|
220
|
+
var fe = F, ve = S, Pe = D, ge = M, he = T;
|
|
220
221
|
export {
|
|
221
222
|
ve as A,
|
|
222
223
|
he as C,
|