@fluidattacks/design 9.1.0 → 9.1.2

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.
@@ -12,6 +12,7 @@ import "react-dom";
12
12
  import "../../typography/heading/index.js";
13
13
  import "../../typography/span/index.js";
14
14
  import "../../typography/text/index.js";
15
+ import "../../inputs/styles.js";
15
16
  import "../../container/index.js";
16
17
  import "../../icon-button/index.js";
17
18
  import "../../../_virtual/dayjs.min.js";
@@ -20,7 +21,7 @@ import "../../layout/categories/buttons/index.js";
20
21
  import { InputNumber as S } from "../../inputs/fields/number/index.js";
21
22
  import "../../inputs/utils/action-button/index.js";
22
23
  import "../../../node_modules/react-international-phone/dist/index.js";
23
- const it = ({
24
+ const pt = ({
24
25
  control: u,
25
26
  description: B,
26
27
  disabled: t,
@@ -141,5 +142,5 @@ const it = ({
141
142
  );
142
143
  };
143
144
  export {
144
- it as CardWithInput
145
+ pt as CardWithInput
145
146
  };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
2
  import I from "../../../_virtual/snakeCase.js";
3
- import { forwardRef as O, useContext as $, useMemo as B, useCallback as h, Fragment as L } from "react";
3
+ import { forwardRef as O, useContext as $, useMemo as B, useCallback as p, Fragment as L } from "react";
4
4
  import { useTheme as R } from "styled-components";
5
5
  import { FiltersContext as A } from "../context/index.js";
6
6
  import { NoMatches as P } from "../search/no-matches/index.js";
@@ -15,6 +15,7 @@ import "react-dom";
15
15
  import "../../typography/heading/index.js";
16
16
  import "../../typography/span/index.js";
17
17
  import { Text as M } from "../../typography/text/index.js";
18
+ import "../../inputs/styles.js";
18
19
  import { Tag as K } from "../../tag/index.js";
19
20
  import "../../../_virtual/dayjs.min.js";
20
21
  import "../../icon-button/index.js";
@@ -26,8 +27,8 @@ import { parseTextFilterValue as U, parseCheckboxesFilterValue as X, parseInclud
26
27
  const Z = (c, d) => {
27
28
  if (d?.some((t) => t.type === "text") ?? !1)
28
29
  return U(c ?? "").text ? "1" : "0";
29
- const l = new Set(d?.map((t) => t.type) ?? []);
30
- if (l.size === 1 && l.has("checkboxes"))
30
+ const i = new Set(d?.map((t) => t.type) ?? []);
31
+ if (i.size === 1 && i.has("checkboxes"))
31
32
  return X(
32
33
  c ?? ""
33
34
  ).values.length.toString();
@@ -38,11 +39,11 @@ const Z = (c, d) => {
38
39
  return (t.length + f.length).toString();
39
40
  }
40
41
  return (c ?? "").split(",").filter((t) => t && t !== "-").length.toString();
41
- }, ke = O(function({
42
+ }, Te = O(function({
42
43
  includeSearch: d = !1,
43
44
  groupedFilters: g,
44
- handleChangeId: l,
45
- pinnedFilters: p
45
+ handleChangeId: i,
46
+ pinnedFilters: h
46
47
  }, b) {
47
48
  const t = R(), {
48
49
  id: f,
@@ -51,16 +52,16 @@ const Z = (c, d) => {
51
52
  values: s,
52
53
  updateSearch: v,
53
54
  setValues: u
54
- } = $(A), C = q(g, y), w = B(() => Object.values(s).filter(Boolean).length > 0, [s]), S = p.length > 0, V = h(
55
+ } = $(A), C = q(g, y), w = B(() => Object.values(s).filter(Boolean).length > 0, [s]), S = h.length > 0, V = p(
55
56
  (e) => () => {
56
- l(e), v({ previousValue: s[e] ?? "" }), m({ searchFilter: "", searchGlobal: "" });
57
+ i(e), v({ previousValue: s[e] ?? "" }), m({ searchFilter: "", searchGlobal: "" });
57
58
  },
58
- [l, v, m, s]
59
- ), j = h(() => {
59
+ [i, v, m, s]
60
+ ), j = p(() => {
60
61
  u(
61
62
  (e) => Object.keys(e).reduce((n, r) => ({ ...n, [r]: "" }), {})
62
- ), l("");
63
- }, [u, l]), z = h(
63
+ ), i("");
64
+ }, [u, i]), z = p(
64
65
  (e) => {
65
66
  m((n) => ({
66
67
  ...n,
@@ -68,7 +69,7 @@ const Z = (c, d) => {
68
69
  }));
69
70
  },
70
71
  [m]
71
- ), E = h(
72
+ ), E = p(
72
73
  (e) => (n) => {
73
74
  u((r) => ({ ...r, [e]: n }));
74
75
  },
@@ -107,7 +108,7 @@ const Z = (c, d) => {
107
108
  scroll: "y",
108
109
  width: "100%",
109
110
  children: [
110
- S ? /* @__PURE__ */ o(k, { "data-testid": "menu-pinned", children: p.map((e) => {
111
+ S ? /* @__PURE__ */ o(k, { "data-testid": "menu-pinned", children: h.map((e) => {
111
112
  const n = e.options?.[0]?.items?.map((r) => ({
112
113
  name: r.label ?? r.value,
113
114
  value: r.value
@@ -140,17 +141,17 @@ const Z = (c, d) => {
140
141
  children: e
141
142
  }
142
143
  ) : void 0,
143
- n.map((i) => {
144
- const G = s[i.id], F = Z(
144
+ n.map((l) => {
145
+ const G = s[l.id], F = Z(
145
146
  G,
146
- i.options
147
+ l.options
147
148
  );
148
149
  return /* @__PURE__ */ o(L, { children: /* @__PURE__ */ a(
149
150
  N,
150
151
  {
151
152
  as: "button",
152
- "data-testid": i.id,
153
- onClick: V(i.id),
153
+ "data-testid": l.id,
154
+ onClick: V(l.id),
154
155
  children: [
155
156
  /* @__PURE__ */ o(
156
157
  T,
@@ -161,7 +162,7 @@ const Z = (c, d) => {
161
162
  iconType: "fa-light"
162
163
  }
163
164
  ),
164
- i.label,
165
+ l.label,
165
166
  /* @__PURE__ */ a(
166
167
  x,
167
168
  {
@@ -170,7 +171,7 @@ const Z = (c, d) => {
170
171
  gap: 0.5,
171
172
  style: { marginLeft: "auto" },
172
173
  children: [
173
- f === i.id ? /* @__PURE__ */ o(
174
+ f === l.id ? /* @__PURE__ */ o(
174
175
  T,
175
176
  {
176
177
  icon: "chevron-right",
@@ -185,7 +186,7 @@ const Z = (c, d) => {
185
186
  )
186
187
  ]
187
188
  }
188
- ) }, i.id);
189
+ ) }, l.id);
189
190
  })
190
191
  ]
191
192
  },
@@ -197,5 +198,5 @@ const Z = (c, d) => {
197
198
  ] });
198
199
  });
199
200
  export {
200
- ke as FiltersMenu
201
+ Te as FiltersMenu
201
202
  };
@@ -16,9 +16,9 @@ import "react-dom";
16
16
  import "../../../typography/heading/index.js";
17
17
  import { Span as G } from "../../../typography/span/index.js";
18
18
  import "../../../typography/text/index.js";
19
+ import "../../../inputs/styles.js";
19
20
  import "../../../container/index.js";
20
21
  import { Tag as H } from "../../../tag/index.js";
21
- import "../../../../_virtual/isEqual.js";
22
22
  import "../../../icon-button/index.js";
23
23
  import "../../../button/index.js";
24
24
  import { InputDateRange as J } from "../../../inputs/fields/date-range/index.js";
@@ -1,200 +1,205 @@
1
- import { jsx as o, jsxs as z } from "react/jsx-runtime";
2
- import { useVirtualizer as He } from "../../../../../node_modules/@tanstack/react-virtual/dist/esm/index.js";
3
- import { useState as v, useMemo as I, useRef as y, useCallback as g } from "react";
4
- import { useButton as Ue } from "../../../../../node_modules/react-aria/dist/private/button/useButton.js";
5
- import { useComboBox as We } from "../../../../../node_modules/react-aria/dist/private/combobox/useComboBox.js";
6
- import { useFilter as Ye } from "../../../../../node_modules/react-aria/dist/private/i18n/useFilter.js";
7
- import { useListBox as qe } from "../../../../../node_modules/react-aria/dist/private/listbox/useListBox.js";
8
- import { useComboBoxState as Je } from "../../../../../node_modules/react-stately/dist/private/combobox/useComboBoxState.js";
9
- import { Item as Pe } from "../../../../../node_modules/react-stately/dist/private/collections/Item.js";
10
- import { useTheme as Qe } from "styled-components";
11
- import { OutlineContainer as Xe } from "../../../outline-container/index.js";
12
- import { StyledTextInputContainer as Ze } from "../../../styles.js";
1
+ import { jsx as t, jsxs as F } from "react/jsx-runtime";
2
+ import { useVirtualizer as We } from "../../../../../node_modules/@tanstack/react-virtual/dist/esm/index.js";
3
+ import { useState as v, useMemo as x, useRef as g, useCallback as y } from "react";
4
+ import { useButton as Ye } from "../../../../../node_modules/react-aria/dist/private/button/useButton.js";
5
+ import { useComboBox as qe } from "../../../../../node_modules/react-aria/dist/private/combobox/useComboBox.js";
6
+ import { useFilter as Je } from "../../../../../node_modules/react-aria/dist/private/i18n/useFilter.js";
7
+ import { useListBox as Pe } from "../../../../../node_modules/react-aria/dist/private/listbox/useListBox.js";
8
+ import { useComboBoxState as Qe } from "../../../../../node_modules/react-stately/dist/private/combobox/useComboBoxState.js";
9
+ import { Item as Xe } from "../../../../../node_modules/react-stately/dist/private/collections/Item.js";
10
+ import { useTheme as Ze } from "styled-components";
11
+ import { OutlineContainer as _e } from "../../../outline-container/index.js";
12
+ import { StyledTextInputContainer as eo } from "../../../styles.js";
13
13
  import { Popover as de } from "../../../utils/popover/index.js";
14
- import { Option as _e } from "../option/index.js";
15
- import { StyledStatusMessage as eo, ChevronIconButton as oo, StyledDropdown as he, StyledGroupHeader as to, StyledEmptyMessage as ro } from "../styles.js";
14
+ import { Option as oo } from "../option/index.js";
15
+ import { StyledStatusMessage as to, ChevronIconButton as ro, StyledDropdown as he, StyledGroupHeader as no, StyledEmptyMessage as so } from "../styles.js";
16
+ import { describeSelection as lo, toSelection as me } from "../utils.js";
16
17
  import { Icon as q } from "../../../../icon/index.js";
17
- import { IconButton as no } from "../../../../icon-button/index.js";
18
+ import { IconButton as ao } from "../../../../icon-button/index.js";
18
19
  import "../../../../typography/heading/index.js";
19
20
  import "../../../../typography/span/index.js";
20
21
  import { Text as J } from "../../../../typography/text/index.js";
21
- import { useClickOutside as so } from "../../../../../hooks/use-click-outside.js";
22
- const zo = ({
22
+ import { useClickOutside as co } from "../../../../../hooks/use-click-outside.js";
23
+ const ko = ({
23
24
  field: u,
24
25
  disabled: h = !1,
25
- disabledKeys: R,
26
- error: me,
26
+ disabledKeys: $,
27
+ error: ge,
27
28
  helpLink: ye,
28
- helpLinkText: ge,
29
- helpText: ve,
29
+ helpLinkText: ve,
30
+ helpText: xe,
30
31
  label: P,
31
- loadingItems: xe,
32
- name: a,
32
+ loadingItems: $e,
33
+ name: l,
33
34
  multiSelection: r = !1,
34
- items: n,
35
- onBlur: L,
35
+ items: o,
36
+ onBlur: K,
36
37
  onChange: f,
37
38
  onClear: Q,
38
- placeholder: $e,
39
- clearable: be = !1,
39
+ placeholder: be,
40
+ clearable: we = !1,
40
41
  emptyMessage: X,
41
42
  statusMessage: Z,
42
- required: we,
43
- setValue: x,
44
- tooltip: Se,
45
- value: Be,
46
- watch: F,
47
- weight: Ce
43
+ required: Se,
44
+ setValue: b,
45
+ tooltip: Be,
46
+ value: Ce,
47
+ watch: w,
48
+ weight: Ae
48
49
  }) => {
49
- const m = Qe(), D = h ? void 0 : me, d = u?.value ?? Be, [G, $] = v(
50
- n.find((e) => e.value === d)?.name ?? ""
51
- ), [_, k] = v(d), j = (xe === !1 || !d) && !r, N = I(
52
- () => j ? n.find((e) => e.value === d)?.name ?? "" : "",
53
- [j, d, n]
54
- ), [Ae, Oe] = v(d), [ze, Ie] = v(N);
55
- j && (d !== Ae || N !== ze) && (Oe(d), Ie(N), $(N), k(d ?? ""));
56
- const [Re, H] = v(n), [ee, b] = v(!1), { contains: M } = Ye({ sensitivity: "base" }), U = y(null), W = y(null), w = y(null), S = y(null), oe = y(null), B = y(null), Y = y(/* @__PURE__ */ new Set()), Fe = I(() => {
57
- const e = Y.current, s = Array.from(R ?? []), l = n.some((t) => t.group !== void 0);
58
- return n.toSorted((t, p) => {
59
- if (t.value === "All") return -1;
50
+ const m = Ze(), k = h ? void 0 : ge, d = u?.value ?? Ce, [D, S] = v(() => r ? lo(
51
+ me(w?.(`${l}Options`)),
52
+ o.map((e) => e.value),
53
+ $ ?? [],
54
+ o.find((e) => e.value === "All")?.name
55
+ ).text : o.find((e) => e.value === d)?.name ?? ""), [_, G] = v(d), j = ($e === !1 || !d) && !r, M = x(
56
+ () => j ? o.find((e) => e.value === d)?.name ?? "" : "",
57
+ [j, d, o]
58
+ ), [Oe, ze] = v(d), [Ie, Re] = v(M);
59
+ j && (d !== Oe || M !== Ie) && (ze(d), Re(M), S(M), G(d ?? ""));
60
+ const [Fe, H] = v(o), [ee, B] = v(!1), { contains: N } = Je({ sensitivity: "base" }), U = g(null), W = g(null), C = g(null), A = g(null), oe = g(null), O = g(null), Y = g(/* @__PURE__ */ new Set()), ke = x(() => {
61
+ const e = Y.current, s = Array.from($ ?? []), c = o.some((n) => n.group !== void 0);
62
+ return o.toSorted((n, p) => {
63
+ if (n.value === "All") return -1;
60
64
  if (p.value === "All") return 1;
61
- const E = s.includes(t.value), K = s.includes(p.value);
62
- if (l) {
63
- const A = t.group ?? "", O = p.group ?? "";
64
- if (!t.group && p.group) return -1;
65
- if (t.group && !p.group) return 1;
66
- if (A !== O)
67
- return A.localeCompare(O);
68
- if (E && !K) return 1;
69
- if (!E && K) return -1;
65
+ const E = s.includes(n.value), L = s.includes(p.value);
66
+ if (c) {
67
+ const I = n.group ?? "", R = p.group ?? "";
68
+ if (!n.group && p.group) return -1;
69
+ if (n.group && !p.group) return 1;
70
+ if (I !== R)
71
+ return I.localeCompare(R);
72
+ if (E && !L) return 1;
73
+ if (!E && L) return -1;
70
74
  if (r) {
71
- const ue = e.has(t.value), fe = e.has(p.value);
75
+ const ue = e.has(n.value), fe = e.has(p.value);
72
76
  if (ue && !fe) return -1;
73
77
  if (!ue && fe) return 1;
74
78
  }
75
- return t.name.localeCompare(p.name);
79
+ return n.name.localeCompare(p.name);
76
80
  }
77
- if (E && !K) return 1;
78
- if (!E && K) return -1;
81
+ if (E && !L) return 1;
82
+ if (!E && L) return -1;
79
83
  if (r) {
80
- const A = e.has(t.value), O = e.has(p.value);
81
- return A && !O ? -1 : !A && O ? 1 : t.name.localeCompare(p.name);
84
+ const I = e.has(n.value), R = e.has(p.value);
85
+ return I && !R ? -1 : !I && R ? 1 : n.name.localeCompare(p.name);
82
86
  }
83
87
  return 0;
84
88
  }).map(
85
- (t) => M(t.name, G) || ee ? /* @__PURE__ */ o(
86
- Pe,
89
+ (n) => N(n.name, D) || ee ? /* @__PURE__ */ t(
90
+ Xe,
87
91
  {
88
- "aria-label": t.value,
89
- hrefLang: t.href,
90
- textValue: t.tag,
91
- children: t.name
92
+ "aria-label": n.value,
93
+ hrefLang: n.href,
94
+ textValue: n.name,
95
+ children: n.name
92
96
  },
93
- t.value
97
+ n.value
94
98
  ) : null
95
99
  );
96
- }, [M, R, G, n, r, ee]), De = g(
100
+ }, [N, $, D, o, r, ee]), De = y(
97
101
  (e) => {
98
102
  const s = e.split(/,|\s/u).slice(-1)[0].trim();
99
- $(r ? s : e), e === "" || e.endsWith(",") ? b(!0) : (b(!1), k((l) => {
100
- const c = e === "" ? "" : l;
101
- return u && u.onChange(c), f && f(e), c;
103
+ S(r ? s : e), e === "" || e.endsWith(",") ? B(!0) : (B(!1), G((c) => {
104
+ const i = e === "" ? "" : c;
105
+ return u && u.onChange(i), f && f(e), i;
102
106
  }), H(
103
- n.filter(
104
- (l) => M(l.name, r ? s : e)
107
+ o.filter(
108
+ (c) => N(c.name, r ? s : e)
105
109
  )
106
110
  ));
107
111
  },
108
- [M, n, u, r, f]
109
- ), Ge = g(
112
+ [N, o, u, r, f]
113
+ ), Ge = y(
110
114
  (e) => {
111
- $(n.find((s) => s.value === e)?.name ?? ""), k(e ? String(e) : ""), u && u.onChange(e), f && f(e ? String(e) : ""), H(n);
115
+ S(o.find((s) => s.value === e)?.name ?? ""), G(e ? String(e) : ""), u && u.onChange(e), f && f(e ? String(e) : ""), H(o);
112
116
  },
113
- [n, u, f]
114
- ), te = g(
117
+ [o, u, f]
118
+ ), te = y(
115
119
  (e) => {
116
- e.key === "Enter" && e.preventDefault(), b(!1);
120
+ e.key === "Enter" && e.preventDefault(), B(!1);
117
121
  },
118
122
  []
119
- ), ke = g(() => {
120
- L && L(), u && u.onBlur();
121
- }, [u, L]), Ne = g(() => {
122
- b(!0);
123
- }, []), i = Je({
123
+ ), Me = y(() => {
124
+ K && K(), u && u.onBlur();
125
+ }, [u, K]), Ne = y(() => {
126
+ B(!0);
127
+ }, []), a = Qe({
124
128
  allowsCustomValue: r,
125
129
  allowsEmptyCollection: !0,
126
- disabledKeys: R,
127
- inputValue: G,
128
- items: Re,
130
+ disabledKeys: $,
131
+ inputValue: D,
132
+ items: Fe,
129
133
  menuTrigger: "focus",
130
134
  shouldCloseOnBlur: !r,
131
135
  selectedKey: _,
132
- onBlur: ke,
136
+ onBlur: Me,
133
137
  onInputChange: De,
134
138
  onKeyDown: te,
135
139
  onKeyUp: Ne,
136
140
  onOpenChange(e, s) {
137
- if (e && r && F) {
138
- const l = F(`${a}Options`) ?? [], c = Array.isArray(l) ? l : l ? [l] : [];
139
- Y.current = new Set(c.filter(Boolean));
140
- }
141
- b(
141
+ e && r && w && (Y.current = new Set(
142
+ me(w(`${l}Options`)).filter(Boolean)
143
+ )), B(
142
144
  e && (s === "manual" || s === "focus")
143
145
  ), e && s !== "focus" && requestAnimationFrame(() => {
144
146
  U.current?.focus();
145
147
  });
146
148
  },
147
149
  onSelectionChange: r ? void 0 : Ge,
148
- children: Fe
149
- }), Me = g(() => {
150
- $(""), k(null), H(n), i.setSelectedKey(null), i.setInputValue(""), f && f(""), r && x && (x(`${a}Options`, []), x(`${a}CheckAll`, "")), Q?.();
151
- }, [n, r, a, Q, f, x, i]), {
150
+ children: ke
151
+ }), Te = y(() => {
152
+ S(""), G(null), H(o), a.setSelectedKey(null), a.setInputValue(""), f && f(""), r && b && (b(`${l}Options`, []), b(`${l}CheckAll`, "")), Q?.();
153
+ }, [o, r, l, Q, f, b, a]), {
152
154
  buttonProps: Ve,
153
- inputProps: Te,
154
- listBoxProps: Ee
155
- } = We(
155
+ inputProps: Ee,
156
+ listBoxProps: Le
157
+ } = qe(
156
158
  {
157
- inputValue: G,
159
+ inputValue: D,
158
160
  buttonRef: W,
159
- id: a,
161
+ id: l,
160
162
  inputRef: U,
161
- label: P ?? a,
162
- listBoxRef: w,
163
- name: a,
164
- placeholder: $e,
165
- popoverRef: B
163
+ label: P ?? l,
164
+ listBoxRef: C,
165
+ name: l,
166
+ placeholder: be,
167
+ popoverRef: O
166
168
  },
167
- i
168
- ), { listBoxProps: re } = qe(Ee, i, w), { buttonProps: Ke } = Ue(Ve, W), { width: ne } = S.current?.getBoundingClientRect() ?? {
169
+ a
170
+ ), { listBoxProps: re } = Pe(Le, a, C), { buttonProps: Ke } = Ye(Ve, W), { width: ne } = A.current?.getBoundingClientRect() ?? {
169
171
  width: 240
170
172
  };
171
- so(S, () => {
172
- i.isOpen && !r && i.close();
173
- }, [B]);
174
- const C = Array.from(i.collection), se = r ? C.findLastIndex(
173
+ co(A, () => {
174
+ a.isOpen && !r && a.close();
175
+ }, [O]);
176
+ const z = Array.from(a.collection), se = r ? z.findLastIndex(
175
177
  (e) => e.key === "All" || Y.current.has(String(e.key))
176
- ) : -1, Le = I(() => n.map((e) => e.value), [n]), le = I(
177
- () => new Map(n.map((e) => [e.value, e.group])),
178
- [n]
179
- ), V = I(() => C.reduce(
180
- (e, s, l) => {
181
- const c = le.get(String(s.key));
182
- return c !== void 0 && c !== e.currentGroup ? (e.result.push({ type: "header", group: c }), e.currentGroup = c) : c === void 0 && e.currentGroup !== void 0 && (e.currentGroup = void 0), e.result.push({ type: "item", index: l }), e;
178
+ ) : -1, je = x(() => o.map((e) => e.value), [o]), le = x(
179
+ () => new Map(o.map((e) => [e.value, e.group])),
180
+ [o]
181
+ ), He = x(
182
+ () => new Map(o.map((e) => [e.value, e.tag])),
183
+ [o]
184
+ ), T = x(() => z.reduce(
185
+ (e, s, c) => {
186
+ const i = le.get(String(s.key));
187
+ return i !== void 0 && i !== e.currentGroup ? (e.result.push({ type: "header", group: i }), e.currentGroup = i) : i === void 0 && e.currentGroup !== void 0 && (e.currentGroup = void 0), e.result.push({ type: "item", index: c }), e;
183
188
  },
184
189
  { result: [], currentGroup: void 0 }
185
- ).result, [C, le]), ie = He({
186
- count: V.length,
187
- estimateSize: (e) => V[e].type === "header" ? 44 : 28,
188
- getScrollElement: () => w.current,
190
+ ).result, [z, le]), ae = We({
191
+ count: T.length,
192
+ estimateSize: (e) => T[e].type === "header" ? 44 : 28,
193
+ getScrollElement: () => C.current,
189
194
  useFlushSync: !1
190
- }), ae = i.isOpen && !h, T = ae && !!Z, ce = ae && n.length === 0 && !!X, je = g(
195
+ }), ce = a.isOpen && !h, V = ce && !!Z, ie = ce && o.length === 0 && !!X, Ue = y(
191
196
  (e) => {
192
197
  e.preventDefault();
193
198
  },
194
199
  []
195
- ), pe = T ? (
200
+ ), pe = V ? (
196
201
  // A listbox only owns options, so the row itself must stay presentational
197
- /* @__PURE__ */ o(eo, { onMouseDown: je, role: "presentation", children: /* @__PURE__ */ o("div", { "aria-live": "polite", role: "status", children: /* @__PURE__ */ o(
202
+ /* @__PURE__ */ t(to, { onMouseDown: Ue, role: "presentation", children: /* @__PURE__ */ t("div", { "aria-live": "polite", role: "status", children: /* @__PURE__ */ t(
198
203
  J,
199
204
  {
200
205
  color: m.palette.gray[400],
@@ -205,39 +210,39 @@ const zo = ({
205
210
  }
206
211
  ) }) })
207
212
  ) : null;
208
- return /* @__PURE__ */ z(
209
- Xe,
213
+ return /* @__PURE__ */ F(
214
+ _e,
210
215
  {
211
216
  containerRef: oe,
212
- error: D,
217
+ error: k,
213
218
  helpLink: ye,
214
- helpLinkText: ge,
215
- helpText: ve,
216
- htmlFor: a,
217
- id: `combobox-${a}`,
219
+ helpLinkText: ve,
220
+ helpText: xe,
221
+ htmlFor: l,
222
+ id: `combobox-${l}`,
218
223
  label: P,
219
- required: we,
220
- tooltip: Se,
221
- weight: Ce,
224
+ required: Se,
225
+ tooltip: Be,
226
+ weight: Ae,
222
227
  children: [
223
- /* @__PURE__ */ z(
224
- Ze,
228
+ /* @__PURE__ */ F(
229
+ eo,
225
230
  {
226
- className: `${h ? "disabled" : ""} ${D ? "error" : ""}`,
227
- ref: S,
231
+ className: `${h ? "disabled" : ""} ${k ? "error" : ""}`,
232
+ ref: A,
228
233
  children: [
229
- /* @__PURE__ */ o(
234
+ /* @__PURE__ */ t(
230
235
  "input",
231
236
  {
232
- ...Te,
233
- "aria-invalid": D ? "true" : "false",
234
- "aria-label": a,
237
+ ...Ee,
238
+ "aria-invalid": k ? "true" : "false",
239
+ "aria-label": l,
235
240
  disabled: h,
236
241
  onKeyDown: te,
237
242
  ref: U
238
243
  }
239
244
  ),
240
- D ? /* @__PURE__ */ o(
245
+ k ? /* @__PURE__ */ t(
241
246
  q,
242
247
  {
243
248
  icon: "exclamation-circle",
@@ -246,33 +251,33 @@ const zo = ({
246
251
  iconSize: "lg"
247
252
  }
248
253
  ) : void 0,
249
- be && !h && (r ? (F?.(`${a}Options`)?.length ?? 0) > 0 : _) ? /* @__PURE__ */ o(
250
- no,
254
+ we && !h && (r ? (w?.(`${l}Options`)?.length ?? 0) > 0 : _) ? /* @__PURE__ */ t(
255
+ ao,
251
256
  {
252
257
  icon: "xmark",
253
258
  iconColor: m.palette.gray[400],
254
259
  iconSize: "sm",
255
260
  iconType: "fa-light",
256
- onClick: Me,
261
+ onClick: Te,
257
262
  px: 0.125,
258
263
  py: 0.125,
259
264
  type: "reset",
260
265
  variant: "ghost"
261
266
  }
262
267
  ) : void 0,
263
- /* @__PURE__ */ z(
264
- oo,
268
+ /* @__PURE__ */ F(
269
+ ro,
265
270
  {
266
271
  ...Ke,
267
272
  $variant: "ghost",
268
- className: `action ${i.isOpen && !h ? "open" : "closed"}`,
273
+ className: `action ${a.isOpen && !h ? "open" : "closed"}`,
269
274
  disabled: h,
270
275
  px: 0.125,
271
276
  py: 0.125,
272
277
  ref: W,
273
278
  type: "button",
274
279
  children: [
275
- /* @__PURE__ */ o("div", { className: "chevron-down", children: /* @__PURE__ */ o(
280
+ /* @__PURE__ */ t("div", { className: "chevron-down", children: /* @__PURE__ */ t(
276
281
  q,
277
282
  {
278
283
  clickable: !1,
@@ -282,7 +287,7 @@ const zo = ({
282
287
  iconType: "fa-light"
283
288
  }
284
289
  ) }),
285
- /* @__PURE__ */ o("div", { className: "chevron-up", children: /* @__PURE__ */ o(
290
+ /* @__PURE__ */ t("div", { className: "chevron-up", children: /* @__PURE__ */ t(
286
291
  q,
287
292
  {
288
293
  clickable: !1,
@@ -298,36 +303,36 @@ const zo = ({
298
303
  ]
299
304
  }
300
305
  ),
301
- i.isOpen && i.collection.size > 0 && !h ? /* @__PURE__ */ o(
306
+ a.isOpen && a.collection.size > 0 && !h ? /* @__PURE__ */ t(
302
307
  de,
303
308
  {
304
309
  className: "dropdown",
305
- id: `popover-${a}`,
310
+ id: `popover-${l}`,
306
311
  offset: 4,
307
312
  placement: "bottom start",
308
- popoverRef: B,
309
- state: i,
310
- triggerRef: S,
311
- children: /* @__PURE__ */ z(
313
+ popoverRef: O,
314
+ state: a,
315
+ triggerRef: A,
316
+ children: /* @__PURE__ */ F(
312
317
  he,
313
318
  {
314
319
  ...re,
315
- $hasStatus: T,
316
- $multiSelection: r && !Array.from(R ?? []).includes("All"),
320
+ $hasStatus: V,
321
+ $multiSelection: r && !Array.from($ ?? []).includes("All"),
317
322
  $width: ne,
318
- ref: w,
323
+ ref: C,
319
324
  children: [
320
- /* @__PURE__ */ o(
325
+ /* @__PURE__ */ t(
321
326
  "div",
322
327
  {
323
328
  style: {
324
- height: `${ie.getTotalSize()}px`,
329
+ height: `${ae.getTotalSize()}px`,
325
330
  position: "relative"
326
331
  },
327
- children: ie.getVirtualItems().map((e) => {
328
- const s = V[e.index];
332
+ children: ae.getVirtualItems().map((e) => {
333
+ const s = T[e.index];
329
334
  if (s.type === "header")
330
- return /* @__PURE__ */ o(
335
+ return /* @__PURE__ */ t(
331
336
  "div",
332
337
  {
333
338
  style: {
@@ -338,7 +343,7 @@ const zo = ({
338
343
  height: `${e.size}px`,
339
344
  transform: `translateY(${e.start}px)`
340
345
  },
341
- children: /* @__PURE__ */ o(to, { children: /* @__PURE__ */ o(
346
+ children: /* @__PURE__ */ t(no, { children: /* @__PURE__ */ t(
342
347
  J,
343
348
  {
344
349
  color: m.palette.gray[400],
@@ -350,8 +355,8 @@ const zo = ({
350
355
  },
351
356
  `header-${e.index}`
352
357
  );
353
- const l = C[s.index], c = V[e.index + 1], t = l.key === "All" && c?.type === "header", p = r && s.index === se && se >= 0 && s.index < C.length - 1 && !t;
354
- return /* @__PURE__ */ o(
358
+ const c = z[s.index], i = T[e.index + 1], n = c.key === "All" && i?.type === "header", p = r && s.index === se && se >= 0 && s.index < z.length - 1 && !n;
359
+ return /* @__PURE__ */ t(
355
360
  "div",
356
361
  {
357
362
  style: {
@@ -363,23 +368,24 @@ const zo = ({
363
368
  transform: `translateY(${e.start}px)`,
364
369
  borderBottom: p ? `1px solid ${m.palette.gray[200]}` : void 0
365
370
  },
366
- children: /* @__PURE__ */ o(
367
- _e,
371
+ children: /* @__PURE__ */ t(
372
+ oo,
368
373
  {
369
- allItemKeys: Le,
374
+ allItemKeys: je,
370
375
  containerRef: oe,
371
- item: l,
376
+ item: c,
372
377
  multiSelection: r,
373
- name: a,
374
- popoverRef: B,
375
- setInputValue: $,
376
- setValue: x,
377
- state: i,
378
- watch: F
378
+ name: l,
379
+ popoverRef: O,
380
+ setInputValue: S,
381
+ setValue: b,
382
+ state: a,
383
+ tag: He.get(String(c.key)),
384
+ watch: w
379
385
  }
380
386
  )
381
387
  },
382
- l.key
388
+ c.key
383
389
  );
384
390
  })
385
391
  }
@@ -389,26 +395,26 @@ const zo = ({
389
395
  }
390
396
  )
391
397
  }
392
- ) : !ce && !T ? null : /* @__PURE__ */ o(
398
+ ) : !ie && !V ? null : /* @__PURE__ */ t(
393
399
  de,
394
400
  {
395
401
  className: "dropdown",
396
- id: `popover-${a}-empty`,
402
+ id: `popover-${l}-empty`,
397
403
  offset: 4,
398
404
  placement: "bottom start",
399
- popoverRef: B,
400
- state: i,
401
- triggerRef: S,
402
- children: /* @__PURE__ */ z(
405
+ popoverRef: O,
406
+ state: a,
407
+ triggerRef: A,
408
+ children: /* @__PURE__ */ F(
403
409
  he,
404
410
  {
405
411
  ...re,
406
- $hasStatus: T,
412
+ $hasStatus: V,
407
413
  $multiSelection: !1,
408
414
  $width: ne,
409
- ref: w,
415
+ ref: C,
410
416
  children: [
411
- ce ? /* @__PURE__ */ o(ro, { children: /* @__PURE__ */ o(
417
+ ie ? /* @__PURE__ */ t(so, { children: /* @__PURE__ */ t(
412
418
  J,
413
419
  {
414
420
  color: m.palette.gray[400],
@@ -429,5 +435,5 @@ const zo = ({
429
435
  );
430
436
  };
431
437
  export {
432
- zo as ComboBoxField
438
+ ko as ComboBoxField
433
439
  };
@@ -7,5 +7,6 @@ declare const withEmptyMessage: import('storybook/internal/csf').AnnotatedStoryF
7
7
  declare const withStatusMessage: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IComboBoxProps>;
8
8
  declare const withClearButton: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IComboBoxProps>;
9
9
  declare const groupedMultiSelect: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IComboBoxProps>;
10
- export { Default, multiSelectWithAll, withEmptyMessage, withStatusMessage, withClearButton, groupedMultiSelect, };
10
+ declare const preselectedMultiSelect: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IComboBoxProps>;
11
+ export { Default, multiSelectWithAll, withEmptyMessage, withStatusMessage, withClearButton, groupedMultiSelect, preselectedMultiSelect, };
11
12
  export default config;
@@ -1,3 +1,3 @@
1
1
  import { IOptionProps } from '../types';
2
- declare const Option: <T extends object>({ allItemKeys, containerRef, item, multiSelection, name, popoverRef, setInputValue, setValue, state, watch, }: Readonly<IOptionProps<T>>) => JSX.Element;
2
+ declare const Option: <T extends object>({ allItemKeys, containerRef, item, multiSelection, name, popoverRef, setInputValue, setValue, state, tag, watch, }: Readonly<IOptionProps<T>>) => JSX.Element;
3
3
  export { Option };
@@ -1,123 +1,125 @@
1
- import { jsx as d, jsxs as U } from "react/jsx-runtime";
2
- import G from "../../../../../_virtual/isEqual.js";
3
- import { useRef as H, useMemo as g, useCallback as y } from "react";
1
+ import { jsx as l, jsxs as G } from "react/jsx-runtime";
2
+ import { useRef as H, useMemo as f, useCallback as k } from "react";
4
3
  import { useOption as J } from "../../../../../node_modules/react-aria/dist/private/listbox/useOption.js";
5
4
  import { useTheme as Q } from "styled-components";
6
5
  import { StyledOption as W } from "../styles.js";
7
- import { Checkbox as j } from "../../../../checkbox/index.js";
8
- import { Icon as X } from "../../../../icon/index.js";
9
- import { Link as Y } from "../../../../link/index.js";
10
- import { Tag as Z } from "../../../../tag/index.js";
6
+ import { describeSelection as X, toSelection as j } from "../utils.js";
7
+ import { Checkbox as u } from "../../../../checkbox/index.js";
8
+ import { Icon as Y } from "../../../../icon/index.js";
9
+ import { Link as Z } from "../../../../link/index.js";
10
+ import { Tag as _ } from "../../../../tag/index.js";
11
11
  import "../../../../typography/heading/index.js";
12
12
  import "../../../../typography/span/index.js";
13
- import { Text as _ } from "../../../../typography/text/index.js";
14
- import { useClickOutside as I } from "../../../../../hooks/use-click-outside.js";
15
- import { openUrl as V } from "../../../../../utils/open-url.js";
16
- const yo = ({
17
- allItemKeys: L,
18
- containerRef: T,
13
+ import { Text as I } from "../../../../typography/text/index.js";
14
+ import { useClickOutside as V } from "../../../../../hooks/use-click-outside.js";
15
+ import { openUrl as oo } from "../../../../../utils/open-url.js";
16
+ const Co = ({
17
+ allItemKeys: a,
18
+ containerRef: D,
19
19
  item: o,
20
- multiSelection: p,
20
+ multiSelection: s,
21
21
  name: e,
22
- popoverRef: D,
23
- setInputValue: t,
22
+ popoverRef: w,
23
+ setInputValue: i,
24
24
  setValue: n,
25
25
  state: c,
26
- watch: f
26
+ tag: C,
27
+ watch: h
27
28
  }) => {
28
- const K = Q(), C = H(null), h = o.props.hrefLang, A = c.disabledKeys, i = L.filter(
29
- (r) => !Array.from(A).includes(r) && r !== "All"
30
- ), { optionProps: q, isSelected: O, isFocused: w, isDisabled: $ } = J(
29
+ const z = Q(), y = H(null), d = o.props.hrefLang, g = c.disabledKeys, A = a.filter(
30
+ (r) => !Array.from(g).includes(r) && r !== "All"
31
+ ), { optionProps: F, isSelected: $, isFocused: q, isDisabled: O } = J(
31
32
  { key: o.key },
32
33
  c,
33
- C
34
- ), k = g(() => c.collection.getItem("All")?.rendered?.toString(), [c.collection]), z = [
35
- O ? "selected" : "",
36
- w ? "focused" : "",
37
- $ ? "disabled" : ""
38
- ].join(" "), m = y(
34
+ y
35
+ ), m = f(() => c.collection.getItem("All")?.rendered?.toString(), [c.collection]), B = [
36
+ $ ? "selected" : "",
37
+ q ? "focused" : "",
38
+ O ? "disabled" : ""
39
+ ].join(" "), b = k(
39
40
  (r) => {
40
- if (i.length > 0 && r.length === i.length && G([...i].sort(), [...r].sort()) && !Array.from(A).includes("All") && k)
41
- n?.(`${e}CheckAll`, k), t(k);
42
- else {
43
- n?.(`${e}CheckAll`, "");
44
- const l = [...r].sort();
45
- t(
46
- l.length <= 2 ? l.join(", ") : `${l.slice(0, 2).join(", ")}, +${l.length - 2} more`
47
- );
48
- }
41
+ const { allSelected: t, text: p } = X(
42
+ r,
43
+ a,
44
+ g,
45
+ m
46
+ );
47
+ n?.(`${e}CheckAll`, t ? p : ""), i(p);
49
48
  },
50
- [k, A, i, e, t, n]
51
- ), F = y(
49
+ [a, m, g, e, i, n]
50
+ ), K = k(
52
51
  (r) => {
53
52
  if (r.target.checked) {
54
- const a = [...i].sort();
55
- n?.(`${e}Options`, a), n?.(`${e}CheckAll`, r.target.value), t(r.target.value);
53
+ const t = [...A].sort();
54
+ n?.(`${e}Options`, t), n?.(`${e}CheckAll`, r.target.value), i(r.target.value);
56
55
  } else
57
- n?.(`${e}Options`, []), n?.(`${e}CheckAll`, ""), t("");
56
+ n?.(`${e}Options`, []), n?.(`${e}CheckAll`, ""), i("");
58
57
  },
59
- [i, e, t, n]
60
- ), B = y(
58
+ [A, e, i, n]
59
+ ), M = k(
61
60
  (r) => {
62
- const a = r.target.value, l = f?.(`${e}Options`) ?? [], u = Array.isArray(l) ? l : l ? [l] : [], v = r.target.checked ? [...u, a] : u.filter((R) => R !== a);
63
- n?.(`${e}Options`, v), m(v);
61
+ const t = r.target.value, p = j(h?.(`${e}Options`)), T = r.target.checked ? [...p, t] : p.filter((E) => E !== t);
62
+ n?.(`${e}Options`, T), b(T);
64
63
  },
65
- [e, n, f, m]
66
- ), s = f?.(`${e}Options`), b = g(() => Array.isArray(s) ? s : typeof s == "string" && s ? [s] : [], [s]), E = g(
67
- () => b.includes(o.key.toString()),
68
- [b, o.key]
69
- ), S = f?.(`${e}CheckAll`), M = g(() => !!S, [S]), N = o.key === "All" ? /* @__PURE__ */ d(
70
- j,
64
+ [e, n, h, b]
65
+ ), S = h?.(`${e}Options`), v = f(
66
+ () => j(S),
67
+ [S]
68
+ ), N = f(
69
+ () => v.includes(o.key.toString()),
70
+ [v, o.key]
71
+ ), x = h?.(`${e}CheckAll`), P = f(() => !!x, [x]), R = o.key === "All" ? /* @__PURE__ */ l(
72
+ u,
71
73
  {
72
- checked: M,
74
+ checked: P,
73
75
  label: o.rendered?.toString(),
74
76
  name: `${e}CheckAll`,
75
- onChange: F,
77
+ onChange: K,
76
78
  value: o.rendered?.toString()
77
79
  }
78
- ) : /* @__PURE__ */ d(
79
- j,
80
+ ) : /* @__PURE__ */ l(
81
+ u,
80
82
  {
81
- checked: E,
83
+ checked: N,
82
84
  label: o.rendered?.toString(),
83
85
  name: `${e}Options`,
84
- onChange: B,
86
+ onChange: M,
85
87
  value: o.key.toString()
86
88
  }
87
- ), x = p && !$ ? N : /* @__PURE__ */ d(
88
- _,
89
+ ), L = s && !O ? R : /* @__PURE__ */ l(
90
+ I,
89
91
  {
90
- color: K.palette.gray[800],
92
+ color: z.palette.gray[800],
91
93
  size: "md",
92
94
  textOverflow: "ellipsis",
93
95
  whiteSpace: "nowrap",
94
96
  children: o.rendered
95
97
  }
96
- ), P = y(
98
+ ), U = k(
97
99
  (r) => {
98
- r.preventDefault(), t(o.rendered?.toString() ?? ""), c.setSelectedKey(o.key), requestAnimationFrame(() => {
100
+ r.preventDefault(), i(o.rendered?.toString() ?? ""), c.setSelectedKey(o.key), requestAnimationFrame(() => {
99
101
  c.setOpen(!1);
100
- }), V(h);
102
+ }), oo(d);
101
103
  },
102
- [h, o.key, o.rendered, c, t]
104
+ [d, o.key, o.rendered, c, i]
103
105
  );
104
- return I(D, () => {
105
- p && c.close();
106
- }, [T]), /* @__PURE__ */ U(
106
+ return V(w, () => {
107
+ s && c.close();
108
+ }, [D]), /* @__PURE__ */ G(
107
109
  W,
108
110
  {
109
- ...!p && !h ? q : {},
110
- $multiSelection: p,
111
- className: z,
112
- ref: C,
111
+ ...!s && !d ? F : {},
112
+ $multiSelection: s,
113
+ className: B,
114
+ ref: y,
113
115
  children: [
114
- h ? /* @__PURE__ */ d(Y, { href: h, onClick: P, children: x }) : x,
115
- O && !$ && !p ? /* @__PURE__ */ d(X, { icon: "check", iconSize: "sm", iconType: "fa-light" }) : void 0,
116
- o.rendered === o.textValue ? void 0 : /* @__PURE__ */ d(Z, { tagLabel: o.textValue, variant: "inactive" })
116
+ d ? /* @__PURE__ */ l(Z, { href: d, onClick: U, children: L }) : L,
117
+ $ && !O && !s ? /* @__PURE__ */ l(Y, { icon: "check", iconSize: "sm", iconType: "fa-light" }) : void 0,
118
+ C === void 0 ? void 0 : /* @__PURE__ */ l(_, { tagLabel: C, variant: "inactive" })
117
119
  ]
118
120
  }
119
121
  );
120
122
  };
121
123
  export {
122
- yo as Option
124
+ Co as Option
123
125
  };
@@ -28,6 +28,7 @@ interface IItem {
28
28
  * @property { string } name - The name of the Select.
29
29
  * @property { MutableRefObject } popoverRef - The ref of the options popover.
30
30
  * @property { ComboBoxState<T> } state - The state of the ComboBox.
31
+ * @property { string } [tag] - Optional tag shown next to the option.
31
32
  */
32
33
  interface IOptionProps<T> {
33
34
  allItemKeys: string[];
@@ -39,6 +40,7 @@ interface IOptionProps<T> {
39
40
  setInputValue: React.Dispatch<React.SetStateAction<string>>;
40
41
  state: ComboBoxState<T>;
41
42
  setValue?: UseFormSetValue<any>;
43
+ tag?: string;
42
44
  watch?: UseFormWatch<any>;
43
45
  }
44
46
  /**
@@ -0,0 +1,7 @@
1
+ import { Key } from 'react-aria';
2
+ declare const toSelection: (options: unknown) => string[];
3
+ declare const describeSelection: (selected: readonly string[], keys: readonly string[], disabledKeys: Iterable<Key>, allName: string | undefined) => {
4
+ allSelected: boolean;
5
+ text: string;
6
+ };
7
+ export { describeSelection, toSelection };
@@ -0,0 +1,16 @@
1
+ import h from "../../../../_virtual/isEqual.js";
2
+ const g = (t) => Array.isArray(t) ? t : typeof t == "string" && t ? [t] : [], u = (t, i, a, c) => {
3
+ const o = new Set(a), r = i.filter(
4
+ (s) => s !== "All" && !o.has(s)
5
+ ), l = o.has("All") ? void 0 : c, n = !!l && r.length > 0 && t.length === r.length && h([...r].sort(), [...t].sort());
6
+ if (n && l) return { allSelected: n, text: l };
7
+ const e = [...t].sort();
8
+ return {
9
+ allSelected: n,
10
+ text: e.length <= 2 ? e.join(", ") : `${e.slice(0, 2).join(", ")}, +${e.length - 2} more`
11
+ };
12
+ };
13
+ export {
14
+ u as describeSelection,
15
+ g as toSelection
16
+ };
@@ -6,7 +6,6 @@ import { Icon as E } from "../icon/index.js";
6
6
  import { IconButton as P } from "../icon-button/index.js";
7
7
  import { OutlineContainer as S } from "../inputs/outline-container/index.js";
8
8
  import { StyledTextInputContainer as x } from "../inputs/styles.js";
9
- import "../../_virtual/isEqual.js";
10
9
  import "../checkbox/index.js";
11
10
  import "../typography/heading/index.js";
12
11
  import "../typography/span/index.js";
@@ -38,7 +37,7 @@ const C = 300, s = () => {
38
37
  timeStamp: t.timeStamp,
39
38
  type: t.type
40
39
  };
41
- }, J = ({
40
+ }, q = ({
42
41
  name: o,
43
42
  onClear: t,
44
43
  onChange: i,
@@ -112,5 +111,5 @@ const C = 300, s = () => {
112
111
  ] }) });
113
112
  };
114
113
  export {
115
- J as Search
114
+ q as Search
116
115
  };
@@ -9,7 +9,7 @@ import { Thumb as k } from "./thumb/index.js";
9
9
  import { normalizeValue as v } from "./utils.js";
10
10
  import { Container as w } from "../container/index.js";
11
11
  import { OutlineContainer as y } from "../inputs/outline-container/index.js";
12
- import "../../_virtual/isEqual.js";
12
+ import "../inputs/styles.js";
13
13
  import "../checkbox/index.js";
14
14
  import "../icon/index.js";
15
15
  import "../../_virtual/lodash.js";
package/package.json CHANGED
@@ -135,5 +135,5 @@
135
135
  "./dist/index.js"
136
136
  ],
137
137
  "typings": "./dist/index.d.ts",
138
- "version": "9.1.0"
138
+ "version": "9.1.2"
139
139
  }