@alixpartners/ui-components 2.1.0 → 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.
Files changed (67) hide show
  1. package/dist/ToastProvider-D5LImZ-Q.js +1136 -0
  2. package/dist/assets/Creatable.css +1 -1
  3. package/dist/assets/Dialog.css +1 -1
  4. package/dist/assets/Dropdown.css +1 -1
  5. package/dist/assets/FilePicker.css +1 -1
  6. package/dist/assets/NavBar.css +1 -1
  7. package/dist/assets/SplitButton.css +1 -1
  8. package/dist/assets/TagsFields.css +1 -1
  9. package/dist/assets/Tooltip.css +1 -1
  10. package/dist/components/Banner/Banner.test.js +1 -1
  11. package/dist/components/Button/Button.test.js +124 -3217
  12. package/dist/components/Checkbox/Checkbox.js +7 -6
  13. package/dist/components/Checkbox/Checkbox.test.js +47 -47
  14. package/dist/components/Creatable/Creatable.js +107 -108
  15. package/dist/components/Dialog/Dialog.d.ts +21 -7
  16. package/dist/components/Dialog/Dialog.js +296 -61
  17. package/dist/components/Dialog/Dialog.test.d.ts +1 -0
  18. package/dist/components/Dialog/Dialog.test.js +368 -0
  19. package/dist/components/Dropdown/Dropdown.js +78 -79
  20. package/dist/components/FilePicker/FilePicker.js +6 -6
  21. package/dist/components/FilePicker/FilePicker.test.js +1 -1
  22. package/dist/components/Ghost/Ghost.test.js +6 -6
  23. package/dist/components/Input/Input.test.js +2 -2
  24. package/dist/components/NavBar/NavBar.js +16 -16
  25. package/dist/components/Radio/Radio.js +1 -1
  26. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  27. package/dist/components/RadioGroup/RadioGroup.test.js +1 -1
  28. package/dist/components/Search/Search.test.js +1 -1
  29. package/dist/components/SplitButton/SplitButton.js +8 -9
  30. package/dist/components/SplitButton/SplitButton.test.js +1 -1
  31. package/dist/components/Tag/Tag.test.js +1 -1
  32. package/dist/components/TagsFields/TagsFields.js +3 -4
  33. package/dist/components/Textarea/Textarea.test.js +2 -2
  34. package/dist/components/Toast/Toast.d.ts +5 -19
  35. package/dist/components/Toast/Toast.js +65 -62
  36. package/dist/components/Toast/Toast.test.js +47 -30
  37. package/dist/components/ToastProvider/ToastContext.d.ts +11 -0
  38. package/dist/components/ToastProvider/ToastProvider.d.ts +19 -0
  39. package/dist/components/ToastProvider/ToastProvider.js +7 -0
  40. package/dist/components/ToastProvider/ToastProvider.test.d.ts +1 -0
  41. package/dist/components/ToastProvider/ToastProvider.test.js +264 -0
  42. package/dist/components/ToastProvider/types.d.ts +54 -0
  43. package/dist/components/ToastProvider/useToast.d.ts +28 -0
  44. package/dist/components/Toggle/Toggle.js +31 -30
  45. package/dist/components/Toggle/Toggle.test.js +9 -9
  46. package/dist/components/Tooltip/Tooltip.js +20 -19
  47. package/dist/{index-2H7slGYV.js → index-7CBv-Jx6.js} +1 -1
  48. package/dist/{index-DpfPnSMn.js → index-BymOxiM6.js} +2 -2
  49. package/dist/index-C-3_YVJ1.js +1539 -0
  50. package/dist/{index-BKtdMA_j.js → index-C4ffg1vf.js} +24 -23
  51. package/dist/{index-BGZDIjm9.js → index-Chv2KjIL.js} +171 -168
  52. package/dist/{index-BJXIvJs4.js → index-CpsmI33B.js} +24 -23
  53. package/dist/index-CxAtPSMM.js +27 -0
  54. package/dist/{index-CjQV7MmW.js → index-DEphED6n.js} +11 -11
  55. package/dist/index-DM51yNMI.js +237 -0
  56. package/dist/{index-CVWHq7Pr.js → index-D_3jWVyV.js} +37 -36
  57. package/dist/index-DkTDHhag.js +3098 -0
  58. package/dist/index-DrR82jOT.js +142 -0
  59. package/dist/magic-string.es-uPKorP4O.js +663 -0
  60. package/dist/main.d.ts +5 -0
  61. package/dist/main.js +48 -42
  62. package/dist/useToast-Cz5MGKnw.js +11 -0
  63. package/dist/{vi.ClIskdbk-CFW_9sOK.js → vi.bdSIJ99Y-017e_Pkz.js} +9494 -10227
  64. package/package.json +6 -3
  65. package/dist/index-DWydnyjJ.js +0 -245
  66. package/dist/index-DieLVN0p.js +0 -1664
  67. 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, c as H, d as O, P as _, a as P, g as K } from "./index-DWydnyjJ.js";
3
- import { c as x, R as $, A as w, P as j, D as U, C as V, a as W } from "./index-DieLVN0p.js";
4
- import { h as Z, R as q, u as z, F as B } from "./index-BGZDIjm9.js";
5
- import { u as J } from "./index-2H7slGYV.js";
6
- import { P as E } from "./index-DpfPnSMn.js";
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", [F, de] = H(m, [
9
- x
10
- ]), g = x(), [Q, d] = F(m), b = (e) => {
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($, { ...c, children: /* @__PURE__ */ p(
25
+ return /* @__PURE__ */ p(z, { ...c, children: /* @__PURE__ */ p(
25
26
  Q,
26
27
  {
27
28
  scope: n,
28
- contentId: J(),
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
- b.displayName = m;
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(w, { ...r, ...a, ref: n });
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(w, { asChild: !0, ...r, children: c });
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] = F(A, {
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(j, { asChild: !0, container: o, children: a }) }) });
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 Z(s);
88
- }, []), /* @__PURE__ */ p(q, { as: ee, allowPinchZoom: !0, children: /* @__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 z(), /* @__PURE__ */ p(
153
- B,
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
- U,
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
- V,
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(W, { ...o, ...a, ref: n });
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 = b, ve = S, Pe = D, ge = M, he = T;
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,