@mparticle/aquarium 1.24.0 → 1.25.0-chore-add-disabled-state-queryitem-cascader.1

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/aquarium.js CHANGED
@@ -9,7 +9,7 @@ var $3 = (e, t, n) => t in e ? f5(e, t, { enumerable: !0, configurable: !0, writ
9
9
  for (var n of H1(t))
10
10
  Z3.call(t, n) && $3(e, n, t[n]);
11
11
  return e;
12
- }, _ = (e, t) => p5(e, m5(t));
12
+ }, b = (e, t) => p5(e, m5(t));
13
13
  var S1 = (e, t) => {
14
14
  var n = {};
15
15
  for (var C in e)
@@ -194,7 +194,7 @@ const R5 = {
194
194
  mpColorBorderDisabled: "#dcdcd8"
195
195
  }
196
196
  }
197
- }, s = (e) => /* @__PURE__ */ r(f1, _(o({}, e), { theme: R5 }));
197
+ }, s = (e) => /* @__PURE__ */ r(f1, o({ theme: R5 }, e));
198
198
  s.ConfigContext = f1.ConfigContext;
199
199
  s.useConfig = f1.useConfig;
200
200
  s.config = f1.config;
@@ -202,7 +202,7 @@ const U = (e) => {
202
202
  const t = {
203
203
  "with-new-icon": "u-display-flex u-align-items-center u-justify-center"
204
204
  };
205
- return /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(l2, _(o({}, e), { className: `${e.className}${e.variant ? ` ${t[e.variant]}` : ""}`, children: e.children })) });
205
+ return /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(l2, b(o({}, e), { className: `${e.className}${e.variant ? ` ${t[e.variant]}` : ""}`, children: e.children })) });
206
206
  };
207
207
  U.Group = l2.Group;
208
208
  const Z2 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(C3, o({}, e)) });
@@ -274,7 +274,7 @@ const G5 = (e) => /* @__PURE__ */ a.createElement("svg", o({ viewBox: "0 0 20 20
274
274
  }, P = (e) => {
275
275
  const { color: t = "default", size: n = "lg" } = e, C = X4[e.name], i = `icon-size-${n} icon-color-${t}`, l = `icon-${e.name}`;
276
276
  return /* @__PURE__ */ r(C, { className: i, "data-test": l });
277
- }, Ca = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(v5, o({}, e)) }), Y = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(K, _(o({}, e), { children: e.children })) });
277
+ }, Ca = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(v5, o({}, e)) }), Y = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(K, b(o({}, e), { children: e.children })) });
278
278
  Y.useForm = K.useForm;
279
279
  Y.useWatch = K.useWatch;
280
280
  Y.useFormInstance = K.useFormInstance;
@@ -310,7 +310,7 @@ e1.WeekPicker = Q.WeekPicker;
310
310
  e1.YearPicker = Q.YearPicker;
311
311
  const e6 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(c2, o({}, e)) });
312
312
  e6.Group = c2.Group;
313
- const t6 = (e, t) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(m1, _(o({}, e), { ref: t })) }), r6 = $2(t6), W = r6, n6 = (e, t) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(m1.Search, o({ ref: t }, e)) }), C6 = $2(n6), a6 = C6;
313
+ const t6 = (e, t) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(m1, b(o({}, e), { ref: t })) }), r6 = $2(t6), W = r6, n6 = (e, t) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(m1.Search, o({ ref: t }, e)) }), C6 = $2(n6), a6 = C6;
314
314
  W.Search = a6;
315
315
  W.Group = m1.Group;
316
316
  W.Password = m1.Password;
@@ -423,15 +423,16 @@ const d6 = (e) => {
423
423
  M && (E += " query-item--open"), c && c.length !== 0 && (E += " query-item--selected"), e.errorMessage && (E += " query-item--error");
424
424
  const Z = h != null ? h : c.slice(-1);
425
425
  return /* @__PURE__ */ u(S, { children: [
426
- /* @__PURE__ */ r(O1, _(o({}, r1), { children: /* @__PURE__ */ r(
426
+ /* @__PURE__ */ r(O1, b(o({}, r1), { children: /* @__PURE__ */ r(
427
427
  W,
428
428
  {
429
+ disabled: e.disabled,
429
430
  readOnly: !0,
430
431
  placeholder: e.placeholder,
431
432
  status: e.errorMessage ? "error" : void 0,
432
433
  className: E,
433
434
  value: Z,
434
- prefix: b()
435
+ prefix: _()
435
436
  }
436
437
  ) })),
437
438
  e.errorMessage && /* @__PURE__ */ r(T.Text, { type: "danger", children: e.errorMessage })
@@ -462,21 +463,21 @@ const d6 = (e) => {
462
463
  }
463
464
  }), H;
464
465
  }
465
- function b() {
466
+ function _() {
466
467
  var g;
467
468
  return /* @__PURE__ */ r(P, { name: (g = e.icon) != null ? g : "empty", size: "sm", color: "primary" });
468
469
  }
469
- }, T = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(v1, _(o({}, e), { children: e.children })) }), g6 = (e) => e === "base" ? 14 : e === "sm" ? 12 : e === "lg" ? 16 : 20, f6 = (e) => e === "base" ? 1.571428571428571 : e === "sm" ? 1.666666666666667 : e === "lg" ? 1.5 : 1.4, p6 = (n) => {
470
+ }, T = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(v1, b(o({}, e), { children: e.children })) }), g6 = (e) => e === "base" ? 14 : e === "sm" ? 12 : e === "lg" ? 16 : 20, f6 = (e) => e === "base" ? 1.571428571428571 : e === "sm" ? 1.666666666666667 : e === "lg" ? 1.5 : 1.4, p6 = (n) => {
470
471
  var C = n, { size: e = "base" } = C, t = S1(C, ["size"]);
471
472
  const i = g6(e), l = f6(e);
472
- return /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(f1, { theme: { components: { Typography: { fontSize: i, lineHeight: l } } }, children: /* @__PURE__ */ r(v1.Text, _(o({}, t), { children: t.children })) }) });
473
+ return /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(f1, { theme: { components: { Typography: { fontSize: i, lineHeight: l } } }, children: /* @__PURE__ */ r(v1.Text, b(o({}, t), { children: t.children })) }) });
473
474
  };
474
475
  T.Text = p6;
475
- const m6 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(v1.Title, _(o({}, e), { children: e.children })) });
476
+ const m6 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(v1.Title, b(o({}, e), { children: e.children })) });
476
477
  T.Title = m6;
477
- const v6 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(v1.Link, _(o({}, e), { children: e.children })) });
478
+ const v6 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(v1.Link, b(o({}, e), { children: e.children })) });
478
479
  T.Link = v6;
479
- const L6 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(v1.Paragraph, _(o({}, e), { children: e.children })) });
480
+ const L6 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(v1.Paragraph, b(o({}, e), { children: e.children })) });
480
481
  T.Paragraph = L6;
481
482
  const w6 = (e) => {
482
483
  const t = !!e.errorMessage && !e.disabled;
@@ -542,7 +543,7 @@ const _6 = (e) => {
542
543
  loading: e.loading
543
544
  };
544
545
  let C = "primary";
545
- return e.type === "default" && (C = "default"), e.type === "disabled" && (C = "default"), /* @__PURE__ */ r(S, { children: /* @__PURE__ */ u(U, _(o({}, n), { children: [
546
+ return e.type === "default" && (C = "default"), e.type === "disabled" && (C = "default"), /* @__PURE__ */ r(S, { children: /* @__PURE__ */ u(U, b(o({}, n), { children: [
546
547
  /* @__PURE__ */ r(P, { name: "add", size: "md", color: C }),
547
548
  /* @__PURE__ */ r("span", { children: e.text })
548
549
  ] })) });
@@ -584,7 +585,7 @@ const ca = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(M5, o({}, e
584
585
  E6.TabPane = g2.TabPane;
585
586
  const $6 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(f2, o({}, e)) }), x6 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(f2.CheckableTag, o({}, e)) });
586
587
  $6.CheckableTag = x6;
587
- const sa = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(V5, o({}, e)) }), da = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(H5, o({}, e)) }), j1 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(S5, _(o({}, e), { children: /* @__PURE__ */ r(S, { children: e.children }) })) }), Z6 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(p2, o({}, e)) });
588
+ const sa = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(V5, o({}, e)) }), da = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(H5, o({}, e)) }), j1 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(S5, b(o({}, e), { children: /* @__PURE__ */ r(S, { children: e.children }) })) }), Z6 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(p2, o({}, e)) });
588
589
  Z6.Countdown = p2.Countdown;
589
590
  const O2 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(c3, o({}, e)) });
590
591
  O2.DirectoryTree = c3.DirectoryTree;
@@ -612,7 +613,7 @@ q.SELECTION_COLUMN = N.SELECTION_COLUMN;
612
613
  const g3 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(d3, o({}, e)) });
613
614
  g3.PRESENTED_IMAGE_DEFAULT = d3.PRESENTED_IMAGE_DEFAULT;
614
615
  g3.PRESENTED_IMAGE_SIMPLE = d3.PRESENTED_IMAGE_SIMPLE;
615
- const j2 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r($5, _(o({}, e), { children: /* @__PURE__ */ r(S, { children: e.children }) })) });
616
+ const j2 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r($5, b(o({}, e), { children: /* @__PURE__ */ r(S, { children: e.children }) })) });
616
617
  function A6(e) {
617
618
  return /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(y2, o({}, e)) });
618
619
  }
@@ -623,13 +624,13 @@ F1.PRESENTED_IMAGE_404 = B1.PRESENTED_IMAGE_404;
623
624
  F1.PRESENTED_IMAGE_500 = B1.PRESENTED_IMAGE_500;
624
625
  const F2 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(_2, o({}, e)) });
625
626
  F2.setDefaultIndicator = _2.setDefaultIndicator;
626
- const o1 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(a1, _(o({}, e), { active: !0, style: o({ width: "100%" }, e.style) })) });
627
+ const o1 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(a1, b(o({}, e), { active: !0, style: o({ width: "100%" }, e.style) })) });
627
628
  o1.Avatar = a1.Avatar;
628
629
  o1.Button = a1.Button;
629
630
  o1.Node = a1.Node;
630
631
  o1.Image = a1.Image;
631
632
  o1.Input = a1.Input;
632
- const ga = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(Z5, o({}, e)) }), fa = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(I5, _(o({}, e), { children: /* @__PURE__ */ r(S, { children: e.children }) })) }), pa = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(k5, o({}, e)) }), j = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(D, o({}, e)) });
633
+ const ga = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(Z5, o({}, e)) }), fa = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(I5, b(o({}, e), { children: /* @__PURE__ */ r(S, { children: e.children }) })) }), pa = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(k5, o({}, e)) }), j = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(D, o({}, e)) });
633
634
  j.info = D.info;
634
635
  j.success = D.success;
635
636
  j.confirm = D.confirm;
@@ -692,13 +693,13 @@ function P6(e) {
692
693
  }
693
694
  function ma(e) {
694
695
  const [t, n, C] = P6(e.fetchData);
695
- return /* @__PURE__ */ r(S, { children: /* @__PURE__ */ u(j, _(o({}, e), { children: [
696
+ return /* @__PURE__ */ r(S, { children: /* @__PURE__ */ u(j, b(o({}, e), { children: [
696
697
  t && /* @__PURE__ */ r(o1, {}),
697
698
  n && /* @__PURE__ */ r(F1, { status: "error", title: "Error Loading" }),
698
699
  !t && !n && e.children(C)
699
700
  ] })) });
700
701
  }
701
- const z = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(T5, o({}, e)) }), O = (e) => /* @__PURE__ */ r(S, { children: /* @__PURE__ */ r(z, _(o({ align: "center", justify: "center" }, e), { children: e.children })) }), va = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(A5, o({}, e)) }), f3 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(M2, o({}, e)) });
702
+ const z = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(T5, o({}, e)) }), O = (e) => /* @__PURE__ */ r(S, { children: /* @__PURE__ */ r(z, b(o({ align: "center", justify: "center" }, e), { children: e.children })) }), va = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(A5, o({}, e)) }), f3 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(M2, o({}, e)) });
702
703
  f3.Compact = M2.Compact;
703
704
  const C1 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(L1, o({}, e)) });
704
705
  C1.Sider = L1.Sider;
@@ -707,7 +708,7 @@ C1.Content = L1.Content;
707
708
  C1.Header = L1.Header;
708
709
  const La = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(B5, o({}, e)) }), O6 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(V2, o({}, e)) });
709
710
  O6.Link = V2.Link;
710
- const N6 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(H2, _(o({}, e), { children: e.children })) });
711
+ const N6 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(H2, b(o({}, e), { children: e.children })) });
711
712
  N6.Button = H2.Button;
712
713
  const D6 = (e) => /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r(S2, o({}, e)) });
713
714
  D6.Item = S2.Item;
@@ -798,13 +799,13 @@ const U2 = (i) => {
798
799
  ) });
799
800
  };
800
801
  function J1(e) {
801
- return /* @__PURE__ */ r(O, { vertical: !0, children: e.items.map((t, n) => /* @__PURE__ */ r(N5, { children: t.type === "menu" ? /* @__PURE__ */ r(i1, { expandIcon: null, className: "globalNavigation__menu", items: [U6(t, n)] }, n) : /* @__PURE__ */ D5(G2, _(o({}, t), { type: "link", key: n })) }, n)) });
802
+ return /* @__PURE__ */ r(O, { vertical: !0, children: e.items.map((t, n) => /* @__PURE__ */ r(N5, { children: t.type === "menu" ? /* @__PURE__ */ r(i1, { expandIcon: null, className: "globalNavigation__menu", items: [U6(t, n)] }, n) : /* @__PURE__ */ D5(G2, b(o({}, t), { type: "link", key: n })) }, n)) });
802
803
  }
803
804
  function U6(e, t) {
804
805
  const n = [
805
806
  { label: e.label, type: "group", key: String(e.label) + "_groupTitle" }
806
807
  ];
807
- return e.type === "menu" && e.children.map((l, c) => _(o({}, l), {
808
+ return e.type === "menu" && e.children.map((l, c) => b(o({}, l), {
808
809
  expandIcon: null,
809
810
  key: `${String(l.label)}${c}`,
810
811
  label: P2(l.label, l.hrefOptions)
@@ -921,19 +922,19 @@ function e8(e) {
921
922
  c(i);
922
923
  }, [i]), R2(() => {
923
924
  var m, V, g;
924
- const b = (g = (m = e.avatarOptions) == null ? void 0 : m.src) != null ? g : (V = e.avatarOptions) == null ? void 0 : V.srcSet;
925
- typeof b == "string" && s6(b, h);
925
+ const _ = (g = (m = e.avatarOptions) == null ? void 0 : m.src) != null ? g : (V = e.avatarOptions) == null ? void 0 : V.srcSet;
926
+ typeof _ == "string" && s6(_, h);
926
927
  });
927
- const f = x2(B2(c, 200), []), M = !!t && !l.length, w = Q1(() => b1(), [l]), y = Q1(() => i.flatMap((b) => {
928
+ const f = x2(B2(c, 200), []), M = !!t && !l.length, w = Q1(() => b1(), [l]), y = Q1(() => i.flatMap((_) => {
928
929
  let m = [];
929
- const { accounts: V } = b;
930
+ const { accounts: V } = _;
930
931
  if (V) {
931
932
  const g = V.flatMap(({ workspaces: p }) => p);
932
933
  m = m.concat(g);
933
934
  }
934
935
  return m;
935
- }).find((b) => b.isActive), [i]), B = l6(y == null ? void 0 : y.label), R = d6(y == null ? void 0 : y.label) ? u6(y == null ? void 0 : y.label, Y6) : void 0, r1 = !!t || w.filter((b) => !!b.label).length > 5, E = (b) => {
936
- setTimeout(b ? () => {
936
+ }).find((_) => _.isActive), [i]), B = l6(y == null ? void 0 : y.label), R = d6(y == null ? void 0 : y.label) ? u6(y == null ? void 0 : y.label, Y6) : void 0, r1 = !!t || w.filter((_) => !!_.label).length > 5, E = (_) => {
937
+ setTimeout(_ ? () => {
937
938
  var m;
938
939
  (m = C.current) == null || m.focus({
939
940
  cursor: "all"
@@ -968,22 +969,22 @@ function e8(e) {
968
969
  "div",
969
970
  {
970
971
  className: "globalNavigation__item workspaceSelector__menuItem",
971
- onClick: (b) => {
972
+ onClick: (_) => {
972
973
  E(!0);
973
974
  },
974
975
  children: /* @__PURE__ */ u(z, { vertical: !0, align: "center", justify: "center", children: [
975
- /* @__PURE__ */ r(D2, _(o({}, e.avatarOptions), { className: "workspaceSelector__avatar", children: Z(d, B) })),
976
+ /* @__PURE__ */ r(D2, b(o({}, e.avatarOptions), { className: "workspaceSelector__avatar", children: Z(d, B) })),
976
977
  R && /* @__PURE__ */ r(T.Text, { className: "workspaceSelector__label", children: R })
977
978
  ] })
978
979
  }
979
980
  )
980
981
  }
981
982
  );
982
- function Z(b, m) {
983
- return b ? "" : m;
983
+ function Z(_, m) {
984
+ return _ ? "" : m;
984
985
  }
985
986
  function b1() {
986
- return l.reduce((b, m) => (b.push({
987
+ return l.reduce((_, m) => (_.push({
987
988
  type: "org",
988
989
  className: "workspaceSelector__orgName" + (m.label ? "" : " u-display-none"),
989
990
  label: m.label,
@@ -992,7 +993,7 @@ function e8(e) {
992
993
  accounts: m.accounts,
993
994
  workspaces: m.accounts.flatMap((V) => V.workspaces)
994
995
  }), m.accounts.forEach((V) => {
995
- b.push({
996
+ _.push({
996
997
  type: "account",
997
998
  className: "workspaceSelector__accountName" + (V.label ? "" : " u-display-none"),
998
999
  label: V.label,
@@ -1000,7 +1001,7 @@ function e8(e) {
1000
1001
  key: `${V.id}_${V.label}`,
1001
1002
  workspaces: V.workspaces
1002
1003
  }), V.workspaces.forEach((g) => {
1003
- b.push({
1004
+ _.push({
1004
1005
  type: "workspace",
1005
1006
  className: "workspaceSelector__workspaceName" + (g.isActive ? " workspaceSelector__workspaceName--active" : ""),
1006
1007
  label: /* @__PURE__ */ u(z, { justify: "space-between", align: "center", gap: "small", children: [
@@ -1013,10 +1014,10 @@ function e8(e) {
1013
1014
  isActive: g.isActive
1014
1015
  });
1015
1016
  });
1016
- }), b), []);
1017
+ }), _), []);
1017
1018
  }
1018
- function M1(b) {
1019
- const m = b.target.value.toLowerCase();
1019
+ function M1(_) {
1020
+ const m = _.target.value.toLowerCase();
1020
1021
  if (n(m), m) {
1021
1022
  const g = V();
1022
1023
  f(g);
@@ -1623,7 +1624,7 @@ const t8 = 4.5, r8 = "Join the new mParticle Experience!", n8 = "Managing your d
1623
1624
  return /* @__PURE__ */ r("a", { href: h.href, className: B, children: l }, c);
1624
1625
  }
1625
1626
  const f = n(d);
1626
- return I3.createElement(l.type, _(o({}, l.props), { children: f }));
1627
+ return I3.createElement(l.type, b(o({}, l.props), { children: f }));
1627
1628
  };
1628
1629
  return F5.map(C, (l) => I3.isValidElement(l) ? i(l) : l);
1629
1630
  }