@box/metadata-taxonomy-picker 3.1.34 → 3.1.35

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.
@@ -3,63 +3,63 @@ import { useTaxonomyPickerController as t } from "../esm/lib/hooks/use-taxonomy-
3
3
  import { t as n } from "./taxonomy-items-list.js";
4
4
  import { t as r } from "./taxonomy-level-filter.js";
5
5
  import { messages as i } from "../esm/lib/components/metadata-taxonomy-picker-shell/messages.js";
6
- import { forwardRef as a, useCallback as o, useEffect as ee, useId as te, useLayoutEffect as s, useMemo as c, useRef as l, useState as u } from "react";
7
- import ne from "clsx";
8
- import { useIntl as re } from "react-intl";
9
- import { Breadcrumb as ie, ChipsGroup as ae, IconButton as oe, InputChip as d, Popover as f, useForkRef as se } from "@box/blueprint-web";
10
- import { Search as ce, XMark as le } from "@box/blueprint-web-assets/icons/Fill";
11
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
12
- import '../styles/metadata-taxonomy-picker-shell.css';var h = /* @__PURE__ */ function(e) {
6
+ import { forwardRef as a, useCallback as o, useEffect as ee, useId as te, useLayoutEffect as s, useMemo as c, useRef as l, useState as ne } from "react";
7
+ import re from "clsx";
8
+ import { useIntl as ie } from "react-intl";
9
+ import { Breadcrumb as ae, ChipsGroup as oe, IconButton as se, InputChip as u, Popover as d, Text as ce, useForkRef as le } from "@box/blueprint-web";
10
+ import { Search as ue, XMark as de } from "@box/blueprint-web-assets/icons/Fill";
11
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
12
+ import '../styles/metadata-taxonomy-picker-shell.css';var m = /* @__PURE__ */ function(e) {
13
13
  return e.SingleLevel = "single-level", e.MultiLevel = "multi-level", e;
14
- }({}), g = {
15
- container: "_container_1mgby_1",
16
- label: "_label_1mgby_8",
17
- trigger: "_trigger_1mgby_16",
18
- searchInput: "_searchInput_1mgby_34",
19
- chips: "_chips_1mgby_46",
20
- searchIcon: "_searchIcon_1mgby_83",
21
- popover: "_popover_1mgby_92",
22
- clearButton: "_clearButton_1mgby_100",
23
- breadcrumbContainer: "_breadcrumbContainer_1mgby_104"
14
+ }({}), h = {
15
+ container: "_container_nitxb_1",
16
+ label: "_label_nitxb_8",
17
+ trigger: "_trigger_nitxb_12",
18
+ searchInput: "_searchInput_nitxb_30",
19
+ chips: "_chips_nitxb_42",
20
+ searchIcon: "_searchIcon_nitxb_79",
21
+ popover: "_popover_nitxb_88",
22
+ clearButton: "_clearButton_nitxb_96",
23
+ breadcrumbContainer: "_breadcrumbContainer_nitxb_100"
24
24
  };
25
- function ue(e) {
25
+ function fe(e) {
26
26
  let t = null;
27
27
  for (let n of e) n.selectable !== !1 && (t === null || n.level > t) && (t = n.level);
28
28
  return t;
29
29
  }
30
- var de = [];
31
- function fe(e) {
30
+ var pe = [];
31
+ function me(e) {
32
32
  if (e != null) return (typeof e == "function" ? e() : e) ?? void 0;
33
33
  }
34
- var _ = /*#__PURE__*/ a(function({ itemsService: a, eventService: _, levels: v = de, mode: pe, multiSelect: y, value: b, onValueChange: x, placeholder: me, disabled: S = !1, label: C, containerClassName: he, portalElement: ge }, _e) {
35
- let { formatMessage: w } = re(), T = te(), E = `${T}-listbox`, D = l(null), ve = se(D, _e), O = l(null), k = l(null), [ye, be] = u(null), A = l(0), j = l(!1), xe = fe(ge), M = pe === h.SingleLevel, { state: N, isOpen: P, handleOpenChange: F, handleInputValueChange: I, actions: L } = t(a, v, _), { items: R, levelStack: z } = N, { drillDown: B, navigateBack: V, loadMore: Se, setSearchScopeOverride: H } = L, U = N.searchInputValue !== "", W = c(() => ue(N.availableLevels), [N.availableLevels]);
34
+ var g = /*#__PURE__*/ a(function({ itemsService: a, eventService: g, levels: _ = pe, mode: he, multiSelect: v, value: y, onValueChange: b, placeholder: ge, disabled: x = !1, label: S, containerClassName: _e, portalElement: ve }, ye) {
35
+ let { formatMessage: C } = ie(), w = te(), T = `${w}-listbox`, E = l(null), be = le(E, ye), D = l(null), O = l(null), [xe, Se] = ne(null), k = l(0), A = l(!1), Ce = me(ve), j = he === m.SingleLevel, { state: M, isOpen: N, handleOpenChange: P, handleInputValueChange: F, actions: I } = t(a, _, g), { items: L, levelStack: R } = M, { drillDown: z, navigateBack: B, loadMore: we, setSearchScopeOverride: V } = I, H = M.searchInputValue !== "", U = c(() => fe(M.availableLevels), [M.availableLevels]);
36
36
  ee(() => {
37
- H(M && W !== null ? {
37
+ V(j && U !== null ? {
38
38
  parentId: null,
39
- levelFilter: W
39
+ levelFilter: U
40
40
  } : void 0);
41
41
  }, [
42
- M,
43
- W,
44
- H
42
+ j,
43
+ U,
44
+ V
45
45
  ]);
46
- let [Ce, G] = u(""), K = l(!1), we = o(() => {
47
- K.current = !0;
48
- }, []), Te = o((e) => {
49
- K.current = !1, I(e.target.value);
50
- }, [I]);
46
+ let [Te, W] = ne(""), G = l(!1), Ee = o(() => {
47
+ G.current = !0;
48
+ }, []), De = o((e) => {
49
+ G.current = !1, F(e.target.value);
50
+ }, [F]);
51
51
  s(() => {
52
- K.current ? N.searchInputValue === "" && (K.current = !1, G("")) : G(N.searchInputValue);
53
- }, [N.searchInputValue]), s(() => {
52
+ G.current ? M.searchInputValue === "" && (G.current = !1, W("")) : W(M.searchInputValue);
53
+ }, [M.searchInputValue]), s(() => {
54
54
  let e;
55
- return !U && j.current && (e = requestAnimationFrame(() => {
56
- k.current?.scrollTo(A.current);
57
- })), j.current = U, () => {
55
+ return !H && A.current && (e = requestAnimationFrame(() => {
56
+ O.current?.scrollTo(k.current);
57
+ })), A.current = H, () => {
58
58
  e !== void 0 && cancelAnimationFrame(e);
59
59
  };
60
- }, [U]);
61
- let q = c(() => new Set(b.map((e) => e.id)), [b]), Ee = c(() => !y && b.length === 1 ? b[0].id : "", [y, b]), J = o((e, t = !0) => {
62
- let n = R.find((t) => t.id === e);
60
+ }, [H]);
61
+ let K = c(() => new Set(y.map((e) => e.id)), [y]), Oe = c(() => !v && y.length === 1 ? y[0].id : "", [v, y]), q = o((e, t = !0) => {
62
+ let n = L.find((t) => t.id === e);
63
63
  if (!n || !n.selectable) return;
64
64
  let r = {
65
65
  id: n.id,
@@ -67,16 +67,16 @@ var _ = /*#__PURE__*/ a(function({ itemsService: a, eventService: _, levels: v =
67
67
  level: n.level,
68
68
  ancestors: n.ancestors
69
69
  };
70
- y ? x(q.has(e) ? b.filter((t) => t.id !== e) : [...b, r]) : (x([r]), t && F(!1));
70
+ v ? b(K.has(e) ? y.filter((t) => t.id !== e) : [...y, r]) : (b([r]), t && P(!1));
71
71
  }, [
72
- R,
72
+ L,
73
+ v,
74
+ K,
73
75
  y,
74
- q,
75
76
  b,
76
- x,
77
- F
78
- ]), Y = o((e, t = !0) => {
79
- let n = N.searchResults.find((t) => t.id === e);
77
+ P
78
+ ]), J = o((e, t = !0) => {
79
+ let n = M.searchResults.find((t) => t.id === e);
80
80
  if (!n || !n.selectable) return;
81
81
  let r = {
82
82
  id: n.id,
@@ -84,197 +84,199 @@ var _ = /*#__PURE__*/ a(function({ itemsService: a, eventService: _, levels: v =
84
84
  level: n.level,
85
85
  ancestors: n.ancestors
86
86
  };
87
- y ? x(q.has(e) ? b.filter((t) => t.id !== e) : [...b, r]) : (x([r]), t !== !1 && F(!1));
87
+ v ? b(K.has(e) ? y.filter((t) => t.id !== e) : [...y, r]) : (b([r]), t !== !1 && P(!1));
88
88
  }, [
89
- N.searchResults,
89
+ M.searchResults,
90
+ v,
91
+ K,
90
92
  y,
91
- q,
92
93
  b,
93
- x,
94
- F
95
- ]), X = o((e) => {
96
- let t = N.searchResults.find((t) => t.id === e);
97
- t && L.drillDown({
94
+ P
95
+ ]), Y = o((e) => {
96
+ let t = M.searchResults.find((t) => t.id === e);
97
+ t && I.drillDown({
98
98
  id: t.id,
99
99
  displayName: t.displayName,
100
100
  ancestors: t.ancestors
101
101
  });
102
- }, [N.searchResults, L]), De = o((e) => {
103
- let t = N.items.find((t) => t.id === e);
104
- t && B({
102
+ }, [M.searchResults, I]), X = o((e) => {
103
+ let t = M.items.find((t) => t.id === e);
104
+ t && z({
105
105
  id: t.id,
106
106
  displayName: t.displayName
107
107
  });
108
- }, [N.items, B]), Z = o((e) => !(!e.hasChildren || M && W !== null && e.level >= W), [M, W]), Oe = c(() => R.map((e) => ({
108
+ }, [M.items, z]), Z = o((e) => !(!e.hasChildren || j && U !== null && e.level >= U), [j, U]), ke = c(() => L.map((e) => ({
109
109
  id: e.id,
110
110
  displayName: e.displayName,
111
111
  selectable: e.selectable,
112
- multiSelect: y,
113
- isSelected: q.has(e.id),
112
+ multiSelect: v,
113
+ isSelected: K.has(e.id),
114
114
  showDrillDown: Z(e),
115
115
  ancestors: e.ancestors,
116
- onSelect: J,
117
- onDrillDown: De
116
+ onSelect: q,
117
+ onDrillDown: X
118
118
  })), [
119
- R,
120
- y,
121
- q,
119
+ L,
120
+ v,
121
+ K,
122
122
  Z,
123
- J,
124
- De
125
- ]), Q = c(() => z.length === 0 ? [] : [{
123
+ q,
124
+ X
125
+ ]), Q = c(() => R.length === 0 ? [] : [{
126
126
  id: e,
127
- name: w(i.breadcrumbRootLabel)
128
- }, ...z.map((e) => ({
127
+ name: C(i.breadcrumbRootLabel)
128
+ }, ...R.map((e) => ({
129
129
  id: e.id,
130
130
  name: e.displayName
131
- }))], [z, w]), ke = o((e) => {
132
- V(e === "__breadcrumb_root__" ? null : e);
133
- }, [V]), Ae = !M && U && N.availableLevels.length > 1, je = c(() => N.searchResults.map((e) => ({
131
+ }))], [R, C]), Ae = o((e) => {
132
+ B(e === "__breadcrumb_root__" ? null : e);
133
+ }, [B]), je = !j && H && M.availableLevels.length > 1, Me = c(() => M.searchResults.map((e) => ({
134
134
  id: e.id,
135
135
  displayName: e.displayName,
136
136
  selectable: e.selectable,
137
- multiSelect: y,
138
- isSelected: q.has(e.id),
137
+ multiSelect: v,
138
+ isSelected: K.has(e.id),
139
139
  showDrillDown: Z(e),
140
140
  ancestors: e.ancestors,
141
- onSelect: Y,
142
- onDrillDown: X
141
+ onSelect: J,
142
+ onDrillDown: Y
143
143
  })), [
144
- N.searchResults,
145
- y,
146
- q,
144
+ M.searchResults,
145
+ v,
146
+ K,
147
147
  Z,
148
- Y,
149
- X
150
- ]), Me = o((e) => {
151
- e.target === e.currentTarget && D.current?.focus();
152
- }, [D]), $ = b.length > 0, Ne = me ?? w(i.placeholder), Pe = (e) => {
153
- !S && e.target === e.currentTarget && (e.preventDefault(), D.current?.focus());
154
- }, Fe = () => {
155
- !S && !P && F(!0);
156
- }, Ie = o(() => {
157
- S || (x([]), I(""));
148
+ J,
149
+ Y
150
+ ]), Ne = o((e) => {
151
+ e.target === e.currentTarget && E.current?.focus();
152
+ }, [E]), $ = y.length > 0, Pe = ge ?? C(i.placeholder), Fe = (e) => {
153
+ !x && e.target === e.currentTarget && (e.preventDefault(), E.current?.focus());
154
+ }, Ie = () => {
155
+ !x && !N && P(!0);
156
+ }, Le = o(() => {
157
+ x || (b([]), F(""));
158
158
  }, [
159
- S,
160
159
  x,
161
- I
162
- ]), Le = (e) => {
163
- !U && e.target.value && (A.current = k.current?.getScrollTop() ?? 0), G(e.target.value), K.current || I(e.target.value);
164
- }, Re = (e) => {
165
- S || x(b.filter((t) => t.id !== e.id));
160
+ b,
161
+ F
162
+ ]), Re = (e) => {
163
+ !H && e.target.value && (k.current = O.current?.getScrollTop() ?? 0), W(e.target.value), G.current || F(e.target.value);
164
+ }, ze = (e) => {
165
+ x || b(y.filter((t) => t.id !== e.id));
166
166
  };
167
- return /* @__PURE__ */ m(f.Root, {
167
+ return /* @__PURE__ */ p(d.Root, {
168
168
  modal: !1,
169
- onOpenChange: F,
170
- open: P,
171
- children: [/* @__PURE__ */ p(f.Anchor, { children: /* @__PURE__ */ m("div", {
172
- className: ne(g.container, he),
173
- children: [C && /* @__PURE__ */ p("label", {
174
- className: g.label,
175
- htmlFor: T,
176
- children: C
177
- }), /* @__PURE__ */ m("div", {
178
- className: g.trigger,
179
- "data-disabled": S,
180
- onMouseDown: Pe,
181
- ref: O,
169
+ onOpenChange: P,
170
+ open: N,
171
+ children: [/* @__PURE__ */ f(d.Anchor, { children: /* @__PURE__ */ p("div", {
172
+ className: re(h.container, _e),
173
+ children: [S && /* @__PURE__ */ f(ce, {
174
+ as: "label",
175
+ className: h.label,
176
+ htmlFor: w,
177
+ variant: "bodyDefaultBold",
178
+ children: S
179
+ }), /* @__PURE__ */ p("div", {
180
+ className: h.trigger,
181
+ "data-disabled": x,
182
+ onMouseDown: Fe,
183
+ ref: D,
182
184
  children: [
183
- y && $ && /* @__PURE__ */ p(ae, {
184
- className: g.chips,
185
- onClick: Me,
186
- children: b.map((e) => /* @__PURE__ */ p(d, {
185
+ v && $ && /* @__PURE__ */ f(oe, {
186
+ className: h.chips,
187
+ onClick: Ne,
188
+ children: y.map((e) => /* @__PURE__ */ f(u, {
187
189
  label: e.displayName,
188
- onDelete: () => Re(e),
189
- tabIndex: S ? -1 : void 0
190
+ onDelete: () => ze(e),
191
+ tabIndex: x ? -1 : void 0
190
192
  }, e.id))
191
193
  }),
192
- !y && $ && /* @__PURE__ */ p(d, {
193
- label: b[0].displayName,
194
- tabIndex: S ? -1 : void 0
194
+ !v && $ && /* @__PURE__ */ f(u, {
195
+ label: y[0].displayName,
196
+ tabIndex: x ? -1 : void 0
195
197
  }),
196
- /* @__PURE__ */ p("input", {
197
- "aria-controls": E,
198
- "aria-expanded": P,
198
+ /* @__PURE__ */ f("input", {
199
+ "aria-controls": T,
200
+ "aria-expanded": N,
199
201
  "aria-haspopup": "listbox",
200
- className: g.searchInput,
201
- disabled: S,
202
- id: T,
203
- onChange: Le,
204
- onCompositionStart: we,
205
- onCompositionEnd: Te,
206
- onFocus: Fe,
207
- placeholder: $ ? void 0 : Ne,
208
- ref: ve,
202
+ className: h.searchInput,
203
+ disabled: x,
204
+ id: w,
205
+ onChange: Re,
206
+ onCompositionStart: Ee,
207
+ onCompositionEnd: De,
208
+ onFocus: Ie,
209
+ placeholder: $ ? void 0 : Pe,
210
+ ref: be,
209
211
  role: "combobox",
210
212
  type: "text",
211
- value: Ce
213
+ value: Te
212
214
  }),
213
- !y && $ && /* @__PURE__ */ p(oe, {
214
- "aria-label": w(i.clearAriaLabel),
215
- className: g.clearButton,
216
- icon: le,
215
+ !v && $ && /* @__PURE__ */ f(se, {
216
+ "aria-label": C(i.clearAriaLabel),
217
+ className: h.clearButton,
218
+ icon: de,
217
219
  size: "x-small",
218
- tabIndex: S ? -1 : void 0,
219
- onClick: Ie
220
+ tabIndex: x ? -1 : void 0,
221
+ onClick: Le
220
222
  }),
221
- /* @__PURE__ */ p(ce, {
223
+ /* @__PURE__ */ f(ue, {
222
224
  "aria-hidden": "true",
223
- className: g.searchIcon,
225
+ className: h.searchIcon,
224
226
  role: "presentation"
225
227
  })
226
228
  ]
227
229
  })]
228
- }) }), /* @__PURE__ */ m(f.ContentContainer, {
230
+ }) }), /* @__PURE__ */ p(d.ContentContainer, {
229
231
  align: "start",
230
- className: g.popover,
231
- container: xe,
232
+ className: h.popover,
233
+ container: Ce,
232
234
  onInteractOutside: (e) => {
233
- O.current?.contains(e.target) && e.preventDefault();
235
+ D.current?.contains(e.target) && e.preventDefault();
234
236
  },
235
237
  onOpenAutoFocus: (e) => e.preventDefault(),
236
- ref: be,
238
+ ref: Se,
237
239
  children: [
238
- Q.length > 0 && !U && /* @__PURE__ */ p("div", {
239
- className: g.breadcrumbContainer,
240
- children: /* @__PURE__ */ p(ie, {
241
- breadcrumbAriaLabel: w(i.breadcrumbAriaLabel),
240
+ Q.length > 0 && !H && /* @__PURE__ */ f("div", {
241
+ className: h.breadcrumbContainer,
242
+ children: /* @__PURE__ */ f(ae, {
243
+ breadcrumbAriaLabel: C(i.breadcrumbAriaLabel),
242
244
  crumbs: Q,
243
- onPageLinkClick: ke,
245
+ onPageLinkClick: Ae,
244
246
  rootIconVariant: "taxonomy",
245
- isInteractive: !S,
247
+ isInteractive: !x,
246
248
  isResponsiveEnabled: !1,
247
249
  size: "small",
248
- truncatedLinksIconAriaLabel: w(i.breadcrumbTruncatedLinksLabel),
250
+ truncatedLinksIconAriaLabel: C(i.breadcrumbTruncatedLinksLabel),
249
251
  truncationMethod: "folder-tree"
250
252
  })
251
253
  }),
252
- Ae && /* @__PURE__ */ p(r, {
253
- availableLevels: v,
254
- container: ye,
255
- levelFilter: N.levelFilter,
256
- onLevelFilterChange: L.setLevelFilter
254
+ je && /* @__PURE__ */ f(r, {
255
+ availableLevels: _,
256
+ container: xe,
257
+ levelFilter: M.levelFilter,
258
+ onLevelFilterChange: I.setLevelFilter
257
259
  }),
258
- /* @__PURE__ */ p(n, {
259
- error: U ? N.searchError : N.initialLoadError,
260
- estimatedRowHeight: U ? 44 : void 0,
261
- hasMore: U ? N.searchNextMarker !== void 0 : N.itemsNextMarker !== void 0,
262
- hasVariableRowHeight: U,
263
- isFetching: U ? N.isFetchingSearch : N.isFetching,
264
- isFetchingMore: U ? N.isFetchingSearchMore : N.isFetchingMore,
265
- isSearchMode: U,
266
- items: U ? je : Oe,
267
- listboxId: E,
268
- loadMoreError: U ? N.searchLoadMoreError : N.loadMoreError,
269
- multiSelect: y,
270
- onFocusExit: () => D.current?.focus(),
271
- onLoadMore: U ? L.searchLoadMore : Se,
272
- onRetry: L.retry,
273
- ref: k,
274
- selectedValue: Ee
260
+ /* @__PURE__ */ f(n, {
261
+ error: H ? M.searchError : M.initialLoadError,
262
+ estimatedRowHeight: H ? 44 : void 0,
263
+ hasMore: H ? M.searchNextMarker !== void 0 : M.itemsNextMarker !== void 0,
264
+ hasVariableRowHeight: H,
265
+ isFetching: H ? M.isFetchingSearch : M.isFetching,
266
+ isFetchingMore: H ? M.isFetchingSearchMore : M.isFetchingMore,
267
+ isSearchMode: H,
268
+ items: H ? Me : ke,
269
+ listboxId: T,
270
+ loadMoreError: H ? M.searchLoadMoreError : M.loadMoreError,
271
+ multiSelect: v,
272
+ onFocusExit: () => E.current?.focus(),
273
+ onLoadMore: H ? I.searchLoadMore : we,
274
+ onRetry: I.retry,
275
+ ref: O,
276
+ selectedValue: Oe
275
277
  })
276
278
  ]
277
279
  })]
278
280
  });
279
281
  });
280
- export { h as n, _ as t };
282
+ export { m as n, g as t };
@@ -1 +1 @@
1
- ._container_1mgby_1{gap:var(--bp-space-020,.5rem);flex-direction:column;width:100%;display:flex}._label_1mgby_8{color:var(--bp-text-text-on-light);font-size:var(--bp-font-size-040,1rem);font-weight:var(--bp-font-weight-bold,600);line-height:var(--bp-line-height-040,1.5rem);cursor:pointer}._trigger_1mgby_16{box-sizing:border-box;align-items:center;gap:var(--space-2);width:100%;min-height:var(--bp-size-100,2.5rem);padding-block:var(--bp-space-020,.5rem);padding-inline:var(--bp-space-030,.75rem);color:var(--bp-text-text-on-light);background-color:var(--surface-dropdown-surface);border:var(--bp-border-01,.0625rem) solid var(--bp-border-input-border);border-radius:var(--bp-radius-06,.75rem);font:inherit;cursor:pointer;outline:none;flex-wrap:wrap;display:flex}._trigger_1mgby_16:has(._searchInput_1mgby_34:focus){background-color:var(--surface-dropdown-surface-focus);border-color:var(--outline-focus-on-light);border-width:var(--bp-border-02,.125rem)}._trigger_1mgby_16[data-disabled=true]{opacity:.6;cursor:not-allowed}._trigger_1mgby_16[data-disabled=true] button{pointer-events:none}._trigger_1mgby_16 ._chips_1mgby_46{display:contents}._trigger_1mgby_16[data-disabled=true] ._chips_1mgby_46>*{pointer-events:none}input[type=text]._searchInput_1mgby_34{width:auto;min-width:var(--size-12);color:var(--bp-text-text-on-light);box-shadow:none;font:inherit;font-size:var(--bp-font-size-05,.9375rem);line-height:var(--body-default-line-height,1.25rem);cursor:inherit;background:0 0;border:none;border-radius:0;outline:none;flex:1;padding:0}input[type=text]._searchInput_1mgby_34:hover,input[type=text]._searchInput_1mgby_34:focus,input[type=text]._searchInput_1mgby_34:disabled{box-shadow:none;background:0 0;border:none;border-radius:0;outline:none}input[type=text]._searchInput_1mgby_34::placeholder{color:var(--bp-text-text-on-light-secondary);font-family:inherit;font-size:var(--bp-font-size-05,.9375rem);font-weight:var(--bp-font-weight-regular,400)}._searchIcon_1mgby_83{width:var(--bp-size-040,1rem);height:var(--bp-size-040,1rem);color:var(--bp-icon-icon-on-light-secondary);pointer-events:none;flex-shrink:0;margin-inline-start:auto}._popover_1mgby_92{width:var(--radix-popover-trigger-width);max-width:none}._popover_1mgby_92 div[data-radix-popper-content-wrapper]:has([role=menu]){background-color:var(--bp-surface-menu-surface-dropdown)}._clearButton_1mgby_100{flex-shrink:0}._breadcrumbContainer_1mgby_104{min-width:0;padding-block:var(--bp-space-020,.5rem);padding-inline:var(--bp-space-020,.5rem);border-bottom:var(--bp-border-01,.0625rem) solid var(--bp-border-divider);align-items:center;display:flex}._breadcrumbContainer_1mgby_104 li:first-child:has(button){margin-inline-start:calc(-1 * var(--bp-space-010,.25rem))}
1
+ ._container_nitxb_1{gap:var(--bp-space-020,.5rem);flex-direction:column;width:100%;display:flex}._label_nitxb_8{cursor:pointer}._trigger_nitxb_12{box-sizing:border-box;align-items:center;gap:var(--space-2);width:100%;min-height:var(--bp-size-100,2.5rem);padding-block:var(--bp-space-020,.5rem);padding-inline:var(--bp-space-030,.75rem);color:var(--bp-text-text-on-light);background-color:var(--surface-dropdown-surface);border:var(--bp-border-01,.0625rem) solid var(--bp-border-input-border);border-radius:var(--bp-radius-06,.75rem);font:inherit;cursor:pointer;outline:none;flex-wrap:wrap;display:flex}._trigger_nitxb_12:has(._searchInput_nitxb_30:focus){background-color:var(--surface-dropdown-surface-focus);border-color:var(--outline-focus-on-light);border-width:var(--bp-border-02,.125rem)}._trigger_nitxb_12[data-disabled=true]{opacity:.6;cursor:not-allowed}._trigger_nitxb_12[data-disabled=true] button{pointer-events:none}._trigger_nitxb_12 ._chips_nitxb_42{display:contents}._trigger_nitxb_12[data-disabled=true] ._chips_nitxb_42>*{pointer-events:none}input[type=text]._searchInput_nitxb_30{width:auto;min-width:var(--size-12);color:var(--bp-text-text-on-light);box-shadow:none;font:inherit;font-size:var(--bp-font-size-05,.9375rem);line-height:var(--body-default-line-height,1.25rem);cursor:inherit;background:0 0;border:none;border-radius:0;outline:none;flex:1;padding:0}input[type=text]._searchInput_nitxb_30:hover,input[type=text]._searchInput_nitxb_30:focus,input[type=text]._searchInput_nitxb_30:disabled{box-shadow:none;background:0 0;border:none;border-radius:0;outline:none}input[type=text]._searchInput_nitxb_30::placeholder{color:var(--bp-text-text-on-light-secondary);font-family:inherit;font-size:var(--bp-font-size-05,.9375rem);font-weight:var(--bp-font-weight-regular,400)}._searchIcon_nitxb_79{width:var(--bp-size-040,1rem);height:var(--bp-size-040,1rem);color:var(--bp-icon-icon-on-light-secondary);pointer-events:none;flex-shrink:0;margin-inline-start:auto}._popover_nitxb_88{width:var(--radix-popover-trigger-width);max-width:none}._popover_nitxb_88 div[data-radix-popper-content-wrapper]:has([role=menu]){background-color:var(--bp-surface-menu-surface-dropdown)}._clearButton_nitxb_96{flex-shrink:0}._breadcrumbContainer_nitxb_100{min-width:0;padding-block:var(--bp-space-020,.5rem);padding-inline:var(--bp-space-020,.5rem);border-bottom:var(--bp-border-01,.0625rem) solid var(--bp-border-divider);align-items:center;display:flex}._breadcrumbContainer_nitxb_100 li:first-child:has(button){margin-inline-start:calc(-1 * var(--bp-space-010,.25rem))}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/metadata-taxonomy-picker",
3
- "version": "3.1.34",
3
+ "version": "3.1.35",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
6
  "@ariakit/react": "^0.4.21",