@box/user-selector 1.47.9 → 1.49.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.
@@ -1,16 +1,15 @@
1
- import '../styles/user-selector-headless.css';const e = "_userSelectorListItemBase_19h0i_2", t = "_userSelectorInviteRow_19h0i_2", o = "_popoverContainer_19h0i_19", r = "_popoverContent_19h0i_27", s = "_userSelectorListItem_19h0i_2", n = "_listItemAvatar_19h0i_38", c = "_userSelectorGhostStateItem_19h0i_42", i = "_titleGhost_19h0i_48", _ = "_userSelectorEmptyText_19h0i_52", l = "_userSelectorEmptyContainer_19h0i_65", u = "_userSelectorInviteButtonIcon_19h0i_80", S = {
2
- userSelectorListItemBase: e,
1
+ import '../styles/user-selector-headless.css';const t = "_userSelectorInviteRow_19h0i_2", e = "_popoverContainer_19h0i_19", o = "_popoverContent_19h0i_27", r = "_userSelectorListItem_19h0i_2", s = "_listItemAvatar_19h0i_38", n = "_userSelectorGhostStateItem_19h0i_42", c = "_titleGhost_19h0i_48", i = "_userSelectorEmptyText_19h0i_52", _ = "_userSelectorEmptyContainer_19h0i_65", l = "_userSelectorInviteButtonIcon_19h0i_80", u = {
3
2
  userSelectorInviteRow: t,
4
- popoverContainer: o,
5
- popoverContent: r,
6
- userSelectorListItem: s,
7
- listItemAvatar: n,
8
- userSelectorGhostStateItem: c,
9
- titleGhost: i,
10
- userSelectorEmptyText: _,
11
- userSelectorEmptyContainer: l,
12
- userSelectorInviteButtonIcon: u
3
+ popoverContainer: e,
4
+ popoverContent: o,
5
+ userSelectorListItem: r,
6
+ listItemAvatar: s,
7
+ userSelectorGhostStateItem: n,
8
+ titleGhost: c,
9
+ userSelectorEmptyText: i,
10
+ userSelectorEmptyContainer: _,
11
+ userSelectorInviteButtonIcon: l
13
12
  };
14
13
  export {
15
- S as s
14
+ u as s
16
15
  };
@@ -1,43 +1,43 @@
1
- import { Text as l } from "@box/blueprint-web";
2
- import { AvatarPlusBadge as i } from "@box/blueprint-web-assets/icons/Line";
3
- import { useCallback as n } from "react";
1
+ import { Text as c } from "@box/blueprint-web";
2
+ import { AvatarPlusBadge as n } from "@box/blueprint-web-assets/icons/Line";
3
+ import { useCallback as i } from "react";
4
4
  import { useIntl as p } from "react-intl";
5
5
  import a from "../../messages.js";
6
6
  import { useUserSelector as u } from "../user-selector-context.js";
7
- import { s as r } from "../../../../chunks/user-selector-headless.module.js";
8
- import { jsxs as m, jsx as s } from "react/jsx-runtime";
9
- const g = ({
10
- handleInvite: e
7
+ import { s as e } from "../../../../chunks/user-selector-headless.module.js";
8
+ import { jsxs as m, jsx as t } from "react/jsx-runtime";
9
+ const C = ({
10
+ handleInvite: r
11
11
  }) => {
12
12
  const {
13
- formatMessage: t
13
+ formatMessage: s
14
14
  } = p(), {
15
15
  value: o
16
- } = u(), c = n(() => {
17
- e == null || e(o);
18
- }, [e, o]);
16
+ } = u(), l = i(() => {
17
+ r?.(o);
18
+ }, [r, o]);
19
19
  return /* @__PURE__ */ m("div", {
20
- className: r.userSelectorEmptyContainer,
21
- children: [/* @__PURE__ */ s("div", {
22
- className: r.userSelectorEmptyText,
23
- children: t(a.emptyMessage)
24
- }), e && /* @__PURE__ */ m("button", {
25
- className: r.userSelectorInviteRow,
26
- onClick: c,
20
+ className: e.userSelectorEmptyContainer,
21
+ children: [/* @__PURE__ */ t("div", {
22
+ className: e.userSelectorEmptyText,
23
+ children: s(a.emptyMessage)
24
+ }), r && /* @__PURE__ */ m("button", {
25
+ className: e.userSelectorInviteRow,
26
+ onClick: l,
27
27
  tabIndex: 0,
28
28
  type: "button",
29
- children: [/* @__PURE__ */ s("span", {
30
- className: r.userSelectorInviteButtonIcon,
31
- children: /* @__PURE__ */ s(i, {})
32
- }), /* @__PURE__ */ s(l, {
29
+ children: [/* @__PURE__ */ t("span", {
30
+ className: e.userSelectorInviteButtonIcon,
31
+ children: /* @__PURE__ */ t(n, {})
32
+ }), /* @__PURE__ */ t(c, {
33
33
  as: "span",
34
- className: r.userName,
34
+ className: e.userName,
35
35
  variant: "bodyDefault",
36
- children: t(a.inviteCollaborators)
36
+ children: s(a.inviteCollaborators)
37
37
  })]
38
38
  })]
39
39
  });
40
40
  };
41
41
  export {
42
- g as UserSelectorDefaultEmpty
42
+ C as UserSelectorDefaultEmpty
43
43
  };
@@ -1,26 +1,26 @@
1
- import d from "lodash/debounce";
1
+ import O from "lodash/debounce";
2
2
  import { useState as e, useCallback as y, useMemo as E, useEffect as b } from "react";
3
3
  const S = ({
4
- fetcher: r,
4
+ fetcher: a,
5
5
  value: n,
6
- debounceTime: a = 250,
6
+ debounceTime: r = 250,
7
7
  allowEmptyQuery: f = !1
8
8
  }) => {
9
- const [u, o] = e(!1), [m, c] = e(!1), [g, l] = e(null), [h, i] = e([]), p = y(async (O) => {
9
+ const [u, o] = e(!1), [d, c] = e(!1), [m, l] = e(null), [g, i] = e([]), p = y(async (h) => {
10
10
  try {
11
- const s = await r(O);
12
- c((s == null ? void 0 : s.length) === 0), i(s);
13
- } catch (s) {
14
- l(s);
11
+ const t = await a(h);
12
+ c(t?.length === 0), i(t);
13
+ } catch (t) {
14
+ l(t);
15
15
  } finally {
16
16
  o(!1);
17
17
  }
18
- }, [r]), t = E(() => d(p, a), [p, a]);
19
- return b(() => (n.length || f ? (o(!0), l(null), c(!1), t(n)) : (t.cancel(), o(!1), i([]), l(null), c(!1)), () => t.cancel()), [n, t, f]), {
18
+ }, [a]), s = E(() => O(p, r), [p, r]);
19
+ return b(() => (n.length || f ? (o(!0), l(null), c(!1), s(n)) : (s.cancel(), o(!1), i([]), l(null), c(!1)), () => s.cancel()), [n, s, f]), {
20
20
  isLoading: u,
21
- isEmpty: m,
22
- error: g,
23
- options: h
21
+ isEmpty: d,
22
+ error: m,
23
+ options: g
24
24
  };
25
25
  };
26
26
  export {
@@ -1,163 +1,162 @@
1
- import { Popover as p } from "@box/blueprint-web";
2
- import W from "clsx";
3
- import { forwardRef as X, useState as Y, useId as Z, useRef as _, useMemo as M, useCallback as i, useImperativeHandle as F, useEffect as P } from "react";
4
- import { UserSelectorContent as U } from "./components/user-selector-content.js";
5
- import { useAvatars as E } from "./hooks/use-avatars.js";
6
- import { useKeyboardNavigation as C } from "./hooks/use-keyboard-navigation.js";
1
+ import { Popover as m } from "@box/blueprint-web";
2
+ import J from "clsx";
3
+ import { forwardRef as Q, useState as W, useId as X, useRef as Y, useMemo as K, useCallback as i, useImperativeHandle as Z, useEffect as _ } from "react";
4
+ import { UserSelectorContent as F } from "./components/user-selector-content.js";
5
+ import { useAvatars as U } from "./hooks/use-avatars.js";
6
+ import { useKeyboardNavigation as E } from "./hooks/use-keyboard-navigation.js";
7
7
  import { useSelectOptions as tt } from "./hooks/use-select-options.js";
8
- import { UserSelectorContext as et } from "./user-selector-context.js";
9
- import { s as R } from "../../../chunks/user-selector-headless.module.js";
10
- import { jsx as a, jsxs as ot } from "react/jsx-runtime";
11
- const dt = /* @__PURE__ */ X(({
12
- fetchUsers: v,
13
- fetchAvatarUrls: y,
14
- open: I,
15
- value: N,
16
- rootElement: $,
17
- onSelectedUserChange: f,
18
- inputElementRef: A,
19
- focusOnOpen: b = !1,
20
- renderError: H,
21
- renderEmpty: L,
22
- loadingAriaLabel: V,
23
- ariaRoleDescription: q,
8
+ import { UserSelectorContext as ot } from "./user-selector-context.js";
9
+ import { s as M } from "../../../chunks/user-selector-headless.module.js";
10
+ import { jsx as f, jsxs as et } from "react/jsx-runtime";
11
+ const mt = /* @__PURE__ */ Q(({
12
+ fetchUsers: g,
13
+ fetchAvatarUrls: w,
14
+ open: d,
15
+ value: y,
16
+ rootElement: R,
17
+ onSelectedUserChange: a,
18
+ inputElementRef: N,
19
+ focusOnOpen: A = !1,
20
+ renderError: $,
21
+ renderEmpty: H,
22
+ loadingAriaLabel: L,
23
+ ariaRoleDescription: P,
24
24
  nativeFocusEnabled: c = !0,
25
- allowEmptyQuery: S = !1,
26
- onInvite: T,
27
- popoverContentContainerProps: u
28
- }, z) => {
29
- const [n, h] = Y(null), {
25
+ allowEmptyQuery: V = !1,
26
+ onInvite: q,
27
+ popoverContentContainerProps: b
28
+ }, S) => {
29
+ const [s, I] = W(null), {
30
30
  options: t,
31
31
  isEmpty: j,
32
32
  isLoading: k,
33
- error: D
33
+ error: C
34
34
  } = tt({
35
- fetcher: v,
36
- value: N,
37
- allowEmptyQuery: S
35
+ fetcher: g,
36
+ value: y,
37
+ allowEmptyQuery: V
38
38
  }), {
39
- avatars: B
40
- } = E({
41
- fetchAvatarUrls: y,
39
+ avatars: T
40
+ } = U({
41
+ fetchAvatarUrls: w,
42
42
  options: t
43
- }), m = Z(), x = _(/* @__PURE__ */ new Map()), K = M(() => `listbox-${m}`, [m]), o = i((e) => `${m}-option-${e.id}`, [m]), r = i((e) => {
44
- const s = x.current.get(e);
45
- if (s) {
46
- if (h(e), c) {
47
- s.focus();
43
+ }), u = X(), h = Y(/* @__PURE__ */ new Map()), D = K(() => `listbox-${u}`, [u]), e = i((o) => `${u}-option-${o.id}`, [u]), n = i((o) => {
44
+ const r = h.current.get(o);
45
+ if (r) {
46
+ if (I(o), c) {
47
+ r.focus();
48
48
  return;
49
49
  }
50
- s.scrollIntoView({
50
+ r.scrollIntoView({
51
51
  behavior: "smooth",
52
52
  block: "nearest",
53
53
  inline: "nearest"
54
54
  });
55
55
  }
56
- }, [c]), l = M(() => t.findIndex((e) => o(e) === n), [n, o, t]), d = i(() => {
57
- var e;
58
- (e = A.current) == null || e.focus(), h(null);
59
- }, [A]), O = i(() => {
60
- if (n) {
61
- const e = t.find((s) => o(s) === n);
62
- e && f(e);
56
+ }, [c]), l = K(() => t.findIndex((o) => e(o) === s), [s, e, t]), p = i(() => {
57
+ N.current?.focus(), I(null);
58
+ }, [N]), x = i(() => {
59
+ if (s) {
60
+ const o = t.find((r) => e(r) === s);
61
+ o && a(o);
63
62
  }
64
- }, [f, n, o, t]), g = i(() => {
63
+ }, [a, s, e, t]), v = i(() => {
65
64
  if (t.length === 0)
66
65
  return;
67
66
  if (l < t.length - 1) {
68
- const s = o(t[l + 1]);
69
- r(s);
67
+ const r = e(t[l + 1]);
68
+ n(r);
70
69
  return;
71
70
  }
72
71
  if (c) {
73
- d();
72
+ p();
74
73
  return;
75
74
  }
76
- const e = o(t[0]);
77
- r(e);
78
- }, [l, r, o, t, c, d]), w = i(() => {
75
+ const o = e(t[0]);
76
+ n(o);
77
+ }, [l, n, e, t, c, p]), O = i(() => {
79
78
  if (t.length === 0)
80
79
  return;
81
80
  if (l > 0) {
82
- const s = o(t[l - 1]);
83
- r(s);
81
+ const r = e(t[l - 1]);
82
+ n(r);
84
83
  return;
85
84
  }
86
85
  if (c) {
87
- d();
86
+ p();
88
87
  return;
89
88
  }
90
- const e = o(t[t.length - 1]);
91
- r(e);
92
- }, [l, r, o, t, c, d]), G = C({
89
+ const o = e(t[t.length - 1]);
90
+ n(o);
91
+ }, [l, n, e, t, c, p]), z = E({
93
92
  isLoading: k,
94
- error: D,
93
+ error: C,
95
94
  isEmpty: j,
96
- open: I,
97
- selectNext: g,
98
- selectPrevious: w,
99
- selectItem: O
100
- }), J = i((e, s) => {
101
- r(s), f(e);
102
- }, [r, f]);
103
- F(z, () => ({
95
+ open: d,
96
+ selectNext: v,
97
+ selectPrevious: O,
98
+ selectItem: x
99
+ }), B = i((o, r) => {
100
+ n(r), a(o);
101
+ }, [n, a]);
102
+ Z(S, () => ({
104
103
  focusFirstOption: () => {
105
- t.length > 0 && r(o(t[0]));
104
+ t.length > 0 && n(e(t[0]));
106
105
  },
107
106
  focusLastOption: () => {
108
- t.length > 0 && r(o(t[t.length - 1]));
107
+ t.length > 0 && n(e(t[t.length - 1]));
109
108
  },
110
- selectNext: g,
111
- selectPrevious: w,
112
- selectItem: O
113
- }), [r, o, t, g, w, O]), P(() => {
114
- t.length > 0 && b && r(o(t[0]));
115
- }, [t, I, o, r, b]);
116
- const Q = {
117
- fetchUsers: v,
118
- fetchAvatarUrls: y,
119
- onSelectedUserChange: f,
120
- value: N,
121
- avatars: B,
122
- activeId: n,
123
- setActiveId: h,
124
- listboxId: K,
125
- getOptionId: o
109
+ selectNext: v,
110
+ selectPrevious: O,
111
+ selectItem: x
112
+ }), [n, e, t, v, O, x]), _(() => {
113
+ t.length > 0 && A && n(e(t[0]));
114
+ }, [t, d, e, n, A]);
115
+ const G = {
116
+ fetchUsers: g,
117
+ fetchAvatarUrls: w,
118
+ onSelectedUserChange: a,
119
+ value: y,
120
+ avatars: T,
121
+ activeId: s,
122
+ setActiveId: I,
123
+ listboxId: D,
124
+ getOptionId: e
126
125
  };
127
- return /* @__PURE__ */ a(et.Provider, {
128
- value: Q,
129
- children: /* @__PURE__ */ ot(p.Root, {
126
+ return /* @__PURE__ */ f(ot.Provider, {
127
+ value: G,
128
+ children: /* @__PURE__ */ et(m.Root, {
130
129
  modal: !1,
131
- open: I,
132
- children: [/* @__PURE__ */ a(p.Anchor, {
133
- children: $
134
- }), /* @__PURE__ */ a(p.ContentContainer, {
135
- ...u,
130
+ open: d,
131
+ children: [/* @__PURE__ */ f(m.Anchor, {
132
+ children: R
133
+ }), /* @__PURE__ */ f(m.ContentContainer, {
134
+ ...b,
136
135
  align: "start",
137
- className: W(R.popoverContainer, u == null ? void 0 : u.className),
138
- onOpenAutoFocus: (e) => {
139
- e.preventDefault();
136
+ className: J(M.popoverContainer, b?.className),
137
+ onOpenAutoFocus: (o) => {
138
+ o.preventDefault();
140
139
  },
141
- children: /* @__PURE__ */ a(p.MainContent, {
142
- "aria-activedescendant": n,
143
- "aria-owns": Array.from(x.current.values()).map((e) => e.id).join(" "),
144
- "aria-roledescription": q,
145
- className: R.popoverContent,
146
- id: K,
147
- onKeyDown: G,
140
+ children: /* @__PURE__ */ f(m.MainContent, {
141
+ "aria-activedescendant": s,
142
+ "aria-owns": Array.from(h.current.values()).map((o) => o.id).join(" "),
143
+ "aria-roledescription": P,
144
+ className: M.popoverContent,
145
+ id: D,
146
+ onKeyDown: z,
148
147
  role: "listbox",
149
148
  tabIndex: -1,
150
- children: /* @__PURE__ */ a(U, {
151
- error: D,
152
- handleInvite: T,
153
- handleOptionClick: J,
149
+ children: /* @__PURE__ */ f(F, {
150
+ error: C,
151
+ handleInvite: q,
152
+ handleOptionClick: B,
154
153
  isEmpty: j,
155
154
  isLoading: k,
156
- loadingAriaLabel: V,
157
- optionRefs: x,
155
+ loadingAriaLabel: L,
156
+ optionRefs: h,
158
157
  options: t,
159
- renderEmpty: L,
160
- renderError: H
158
+ renderEmpty: H,
159
+ renderError: $
161
160
  })
162
161
  })
163
162
  })]
@@ -165,5 +164,5 @@ const dt = /* @__PURE__ */ X(({
165
164
  });
166
165
  });
167
166
  export {
168
- dt as UserSelectorHeadless
167
+ mt as UserSelectorHeadless
169
168
  };
@@ -1,114 +1,113 @@
1
- import { Text as f, Tooltip as N, Combobox as x } from "@box/blueprint-web";
1
+ import { Text as p, Tooltip as L, Combobox as x } from "@box/blueprint-web";
2
2
  import { AvatarPlusBadge as b } from "@box/blueprint-web-assets/icons/Line";
3
- import m from "clsx";
4
- import q, { forwardRef as _ } from "react";
3
+ import a from "clsx";
4
+ import C, { forwardRef as d } from "react";
5
5
  import { useIntl as v } from "react-intl";
6
6
  import S from "./messages.js";
7
7
  import { isUserContactType as O } from "./utils/isUserContactType.js";
8
- import { jsxs as p, jsx as s } from "react/jsx-runtime";
9
- import '../../styles/user-selector-list-item.css';const U = "_userSelectorListItemBase_1m2q6_1", A = "_userSelectorListItem_1m2q6_1", g = "_listItemAvatar_1m2q6_18", E = "_userInfo_1m2q6_21", T = "_title_1m2q6_28", y = "_userName_1m2q6_34", B = "_userEmail_1m2q6_35", C = "_userSelectorListItemInviteIcon_1m2q6_43", i = {
10
- userSelectorListItemBase: U,
11
- userSelectorListItem: A,
12
- listItemAvatar: g,
13
- userInfo: E,
14
- title: T,
15
- userName: y,
16
- userEmail: B,
17
- userSelectorListItemInviteIcon: C
18
- }, j = /* @__PURE__ */ _(({
19
- renderAvatar: l,
8
+ import { jsxs as _, jsx as r } from "react/jsx-runtime";
9
+ import '../../styles/user-selector-list-item.css';const U = "_userSelectorListItem_1m2q6_1", q = "_listItemAvatar_1m2q6_18", A = "_userInfo_1m2q6_21", g = "_title_1m2q6_28", E = "_userName_1m2q6_34", T = "_userEmail_1m2q6_35", k = "_userSelectorListItemInviteIcon_1m2q6_43", o = {
10
+ userSelectorListItem: U,
11
+ listItemAvatar: q,
12
+ userInfo: A,
13
+ title: g,
14
+ userName: E,
15
+ userEmail: T,
16
+ userSelectorListItemInviteIcon: k
17
+ }, y = /* @__PURE__ */ d(({
18
+ renderAvatar: c,
20
19
  title: t,
21
- subtitle: r,
22
- onClick: o,
20
+ subtitle: m,
21
+ onClick: s,
23
22
  className: e,
24
23
  id: n,
25
24
  selected: u,
26
- isCollaborator: a = !0,
27
- ...c
25
+ isCollaborator: i = !0,
26
+ ...l
28
27
  }, I) => {
29
- const L = /* @__PURE__ */ q.cloneElement(l(), {
30
- className: m(i.listItemAvatar)
28
+ const h = /* @__PURE__ */ C.cloneElement(c(), {
29
+ className: a(o.listItemAvatar)
31
30
  }), {
32
- formatMessage: h
33
- } = v(), d = /* @__PURE__ */ p("div", {
31
+ formatMessage: N
32
+ } = v(), f = /* @__PURE__ */ _("div", {
34
33
  ref: I,
35
34
  "aria-selected": u,
36
- className: m(i.userSelectorListItem, e),
35
+ className: a(o.userSelectorListItem, e),
37
36
  id: n,
38
- ...o ? {
39
- onClick: o
37
+ ...s ? {
38
+ onClick: s
40
39
  } : {},
41
- ...c,
42
- children: [L, /* @__PURE__ */ p("div", {
43
- className: m(i.userInfo),
44
- children: [/* @__PURE__ */ s("div", {
45
- className: m(i.title),
46
- children: /* @__PURE__ */ s(f, {
40
+ ...l,
41
+ children: [h, /* @__PURE__ */ _("div", {
42
+ className: a(o.userInfo),
43
+ children: [/* @__PURE__ */ r("div", {
44
+ className: a(o.title),
45
+ children: /* @__PURE__ */ r(p, {
47
46
  as: "span",
48
- className: m(i.userName),
47
+ className: a(o.userName),
49
48
  variant: "bodyDefaultSemibold",
50
49
  children: t
51
50
  })
52
- }), /* @__PURE__ */ s(f, {
51
+ }), /* @__PURE__ */ r(p, {
53
52
  as: "span",
54
- className: m(i.userEmail),
53
+ className: a(o.userEmail),
55
54
  color: "textOnLightSecondary",
56
55
  variant: "caption",
57
- children: r
56
+ children: m
58
57
  })]
59
- }), !a && /* @__PURE__ */ s(b, {
60
- className: i.userSelectorListItemInviteIcon
58
+ }), !i && /* @__PURE__ */ r(b, {
59
+ className: o.userSelectorListItemInviteIcon
61
60
  })]
62
61
  });
63
- return a ? d : /* @__PURE__ */ s(N, {
64
- content: h(S.inviteCollaboratorsTooltip),
62
+ return i ? f : /* @__PURE__ */ r(L, {
63
+ content: N(S.inviteCollaboratorsTooltip),
65
64
  side: "right",
66
- children: d
65
+ children: f
67
66
  });
68
- }), M = /* @__PURE__ */ _(({
69
- renderAvatar: l,
67
+ }), j = /* @__PURE__ */ d(({
68
+ renderAvatar: c,
70
69
  userContact: t,
71
- onClick: r,
72
- id: o,
70
+ onClick: m,
71
+ id: s,
73
72
  ...e
74
73
  }, n) => {
75
- const a = v().formatMessage(S.userName, {
74
+ const i = v().formatMessage(S.userName, {
76
75
  name: t.name,
77
76
  isCurrentUser: !!t.isCurrentUser
78
77
  });
79
- return /* @__PURE__ */ s(j, {
78
+ return /* @__PURE__ */ r(y, {
80
79
  ref: n,
81
- id: o,
80
+ id: s,
82
81
  onClick: () => {
83
- r == null || r(t, o);
82
+ m?.(t, s);
84
83
  },
85
- renderAvatar: () => l(t),
84
+ renderAvatar: () => c(t),
86
85
  subtitle: t.email,
87
- title: a,
86
+ title: i,
88
87
  ...e
89
88
  });
90
- }), H = /* @__PURE__ */ _(function(t, r) {
89
+ }), G = /* @__PURE__ */ d(function(t, m) {
91
90
  const {
92
- className: o,
91
+ className: s,
93
92
  userContact: e,
94
93
  renderAvatar: n,
95
94
  renderCustomOption: u,
96
- ...a
97
- } = t, c = O(e), I = c ? !0 : e.hideOnClick ?? !0;
98
- return /* @__PURE__ */ s(x.Option, {
99
- ref: r,
100
- className: o,
95
+ ...i
96
+ } = t, l = O(e), I = l ? !0 : e.hideOnClick ?? !0;
97
+ return /* @__PURE__ */ r(x.Option, {
98
+ ref: m,
99
+ className: s,
101
100
  hideOnClick: I,
102
101
  value: e.value,
103
- ...a,
104
- children: c ? /* @__PURE__ */ s(M, {
102
+ ...i,
103
+ children: l ? /* @__PURE__ */ r(j, {
105
104
  renderAvatar: n,
106
105
  userContact: e
107
106
  }) : u(e, () => n(e))
108
107
  });
109
108
  });
110
109
  export {
111
- H as UserSelectorComboboxOption,
112
- M as UserSelectorListItem,
113
- j as UserSelectorListItemInfo
110
+ G as UserSelectorComboboxOption,
111
+ j as UserSelectorListItem,
112
+ y as UserSelectorListItemInfo
114
113
  };
@@ -1,12 +1,12 @@
1
1
  export default {
2
- "groupSharedFeatures.userSelector.emptyMessage": "⟦萬萬萬萬萬萬 Иø ĉőľĺǻьøŗäŧоŕś ƒŏűňď 國國國國國國⟧",
3
- "groupSharedFeatures.userSelector.errorMessage": "⟦萬萬萬萬萬萬萬萬 Ŵє ωēřé úňáьĺё ŧο ľοäď üŝēŕŝ 國國國國國國國國⟧",
4
- "groupSharedFeatures.userSelector.errorMessageDescription": "⟦萬萬萬萬萬萬 Pĺëāşé ŧŕγ άĝäĭň ĺăτєґ 國國國國國國⟧",
5
- "groupSharedFeatures.userSelector.inviteCollaborators": "⟦萬萬萬萬萬 Įиνїτê Ćőļļãвôŕàţòґş 國國國國國⟧",
6
- "groupSharedFeatures.userSelector.inviteCollaboratorsTooltip": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Ťнìŝ Ρёŕѕσп ďοéŝи'ť ħåνε âçćêŝѕ ãήď ŵòй'τ ьĕ ņőťϊƒĩéď üиļėѕŝ îпνīŧěď. 國國國國國國國國國國國國國國國國國國國國⟧",
7
- "groupSharedFeatures.userSelector.loading": "⟦萬萬 Ļоàďїňğ 國國⟧",
8
- "groupSharedFeatures.userSelector.noResults": "⟦萬萬 Ñò ґëśůļţѕ 國國⟧",
9
- "groupSharedFeatures.userSelector.tryAgain": "⟦萬萬 Ťяý åġãïņ 國國⟧",
10
- "groupSharedFeatures.userSelector.userAvatar": "⟦萬萬萬 Ūŝêя ανάŧäŗ 國國國⟧",
11
- "groupSharedFeatures.userSelector.userName": "⟦萬萬萬萬萬萬萬 {name} {isCurrentUser, select, true { ()} other {}} 國國國國國國國⟧"
2
+ "groupSharedFeatures.userSelector.emptyMessage": "⟦萬萬萬萬萬萬 Иó ĉòľľäьøяäτōяś ƒõũлď 國國國國國國⟧",
3
+ "groupSharedFeatures.userSelector.errorMessage": "⟦萬萬萬萬萬萬萬萬 Ẁê шєѓê űиǻвľē ŧσ ľóāď ūşęřş 國國國國國國國國⟧",
4
+ "groupSharedFeatures.userSelector.errorMessageDescription": "⟦萬萬萬萬萬萬 Pľėāşë ţґŷ âĝāīņ ľâťĕя 國國國國國國⟧",
5
+ "groupSharedFeatures.userSelector.inviteCollaborators": "⟦萬萬萬萬萬 Іŋνïŧє Čοļľǻьőяατøгѕ 國國國國國⟧",
6
+ "groupSharedFeatures.userSelector.inviteCollaboratorsTooltip": "⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Ťніş Ρêŗѕóń ďōєѕň'ŧ нąνë άçсéѕŝ ăπď шőʼn'ţ вë ńóτîƒієď üņĺĕşŝ ĩŋνίŧеď. 國國國國國國國國國國國國國國國國國國國國⟧",
7
+ "groupSharedFeatures.userSelector.loading": "⟦萬萬 Ľøąďĭиĝ 國國⟧",
8
+ "groupSharedFeatures.userSelector.noResults": "⟦萬萬 Νô яĕśüļτş 國國⟧",
9
+ "groupSharedFeatures.userSelector.tryAgain": "⟦萬萬 Τŕý àğàîʼn 國國⟧",
10
+ "groupSharedFeatures.userSelector.userAvatar": "⟦萬萬萬 Úŝěѓ άνåťãг 國國國⟧",
11
+ "groupSharedFeatures.userSelector.userName": "⟦萬萬萬萬萬萬萬 {name} {isCurrentUser, select, true { ()} other {}} 國國國國國國國⟧"
12
12
  }
@@ -1,20 +1,20 @@
1
1
  # Text displayed when no results are found
2
- groupSharedFeatures.userSelector.emptyMessage = ⟦萬萬萬萬萬萬 Иø ĉőľĺǻьøŗäŧоŕś ƒŏűňď 國國國國國國⟧
2
+ groupSharedFeatures.userSelector.emptyMessage = ⟦萬萬萬萬萬萬 Иó ĉòľľäьøяäτōяś ƒõũлď 國國國國國國⟧
3
3
  # Text displayed when an error occurs
4
- groupSharedFeatures.userSelector.errorMessage = ⟦萬萬萬萬萬萬萬萬 Ŵє ωēřé úňáьĺё ŧο ľοäď üŝēŕŝ 國國國國國國國國⟧
4
+ groupSharedFeatures.userSelector.errorMessage = ⟦萬萬萬萬萬萬萬萬 Ẁê шєѓê űиǻвľē ŧσ ľóāď ūşęřş 國國國國國國國國⟧
5
5
  # Text displayed when an error occurs
6
- groupSharedFeatures.userSelector.errorMessageDescription = ⟦萬萬萬萬萬萬 Pĺëāşé ŧŕγ άĝäĭň ĺăτєґ 國國國國國國⟧
6
+ groupSharedFeatures.userSelector.errorMessageDescription = ⟦萬萬萬萬萬萬 Pľėāşë ţґŷ âĝāīņ ľâťĕя 國國國國國國⟧
7
7
  # Text displayed when no results are found and the user can invite collaborators
8
- groupSharedFeatures.userSelector.inviteCollaborators = ⟦萬萬萬萬萬 Įиνїτê Ćőļļãвôŕàţòґş 國國國國國⟧
8
+ groupSharedFeatures.userSelector.inviteCollaborators = ⟦萬萬萬萬萬 Іŋνïŧє Čοļľǻьőяατøгѕ 國國國國國⟧
9
9
  # Tooltip text displayed when a user is not a collaborator
10
- groupSharedFeatures.userSelector.inviteCollaboratorsTooltip = ⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Ťнìŝ Ρёŕѕσп ďοéŝи'ť ħåνε âçćêŝѕ ãήď ŵòй'τ ьĕ ņőťϊƒĩéď üиļėѕŝ îпνīŧěď. 國國國國國國國國國國國國國國國國國國國國⟧
10
+ groupSharedFeatures.userSelector.inviteCollaboratorsTooltip = ⟦萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬萬 Ťніş Ρêŗѕóń ďōєѕň'ŧ нąνë άçсéѕŝ ăπď шőʼn'ţ вë ńóτîƒієď üņĺĕşŝ ĩŋνίŧеď. 國國國國國國國國國國國國國國國國國國國國⟧
11
11
  # Aria label for loading indicator
12
- groupSharedFeatures.userSelector.loading = ⟦萬萬 Ļоàďїňğ 國國⟧
12
+ groupSharedFeatures.userSelector.loading = ⟦萬萬 Ľøąďĭиĝ 國國⟧
13
13
  # Text displayed when no results are found
14
- groupSharedFeatures.userSelector.noResults = ⟦萬萬 Ñò ґëśůļţѕ 國國⟧
14
+ groupSharedFeatures.userSelector.noResults = ⟦萬萬 Νô яĕśüļτş 國國⟧
15
15
  # Text for the "Try again" button
16
- groupSharedFeatures.userSelector.tryAgain = ⟦萬萬 Ťяý åġãïņ 國國⟧
16
+ groupSharedFeatures.userSelector.tryAgain = ⟦萬萬 Τŕý àğàîʼn 國國⟧
17
17
  # Alt text for user avatar image
18
- groupSharedFeatures.userSelector.userAvatar = ⟦萬萬萬 Ūŝêя ανάŧäŗ 國國國⟧
18
+ groupSharedFeatures.userSelector.userAvatar = ⟦萬萬萬 Úŝěѓ άνåťãг 國國國⟧
19
19
  # User name with optional "me" marker for current user
20
- groupSharedFeatures.userSelector.userName = ⟦萬萬萬萬萬萬萬 {name} {isCurrentUser, select, true { ()} other {}} 國國國國國國國⟧
20
+ groupSharedFeatures.userSelector.userName = ⟦萬萬萬萬萬萬萬 {name} {isCurrentUser, select, true { ()} other {}} 國國國國國國國⟧
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@box/user-selector",
3
- "version": "1.47.9",
3
+ "version": "1.49.0",
4
4
  "peerDependencies": {
5
- "@box/blueprint-web": "^7.8.0",
6
- "@box/blueprint-web-assets": "^4.16.0",
7
- "@box/combobox-with-api": "^0.5.14",
5
+ "@box/blueprint-web": "^12.104.1",
6
+ "@box/blueprint-web-assets": "^4.87.0",
7
+ "@box/combobox-with-api": "^1.17.0",
8
8
  "lodash": "^4.17.15",
9
9
  "react": "^17.0.0 || ^18.0.0",
10
10
  "react-dom": "^17.0.0 || ^18.0.0",
11
11
  "react-intl": "6.4.2"
12
12
  },
13
13
  "devDependencies": {
14
- "@box/blueprint-web": "^12.103.2",
15
- "@box/blueprint-web-assets": "^4.86.0",
16
- "@box/combobox-with-api": "^1.15.9",
17
- "@box/storybook-utils": "^0.14.23",
14
+ "@box/blueprint-web": "^12.104.1",
15
+ "@box/blueprint-web-assets": "^4.87.0",
16
+ "@box/combobox-with-api": "^1.17.0",
17
+ "@box/storybook-utils": "^0.14.27",
18
18
  "@types/lodash": "^4.17.14",
19
19
  "react": "^18.3.0",
20
20
  "react-dom": "^18.3.0",