@box/combobox-with-api 0.28.2 → 0.28.4
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,17 +1,17 @@
|
|
|
1
|
-
import { Text as
|
|
1
|
+
import { Text as L, LoadingIndicator as G } from "@box/blueprint-web";
|
|
2
2
|
import { Tree as H } from "@box/tree";
|
|
3
|
-
import { useReducer as J, useState as V, useMemo as K, useCallback as
|
|
4
|
-
import { RootTreeNode as i, getServiceNode as
|
|
3
|
+
import { useReducer as J, useState as V, useMemo as K, useCallback as O, useEffect as W } from "react";
|
|
4
|
+
import { RootTreeNode as i, getServiceNode as g } from "../esm/lib/components/combobox-with-api-tree-view/tree-utils.js";
|
|
5
5
|
import { jsxs as N, jsx as u } from "react/jsx-runtime";
|
|
6
|
-
import '../styles/dynamic-loading-tree.css';const Q = "
|
|
6
|
+
import '../styles/dynamic-loading-tree.css';const Q = "_container_xz6fa_1", X = "_disabled_xz6fa_12", Y = "_label_xz6fa_15", Z = "_hiddenLabel_xz6fa_27", F = "_comboboxContainer_xz6fa_30", ee = "_withComboboxButtons_xz6fa_46", ae = "_error_xz6fa_54", te = "_textInputWrapper_xz6fa_62", ne = "_textInput_xz6fa_62", le = "_errorIcon_xz6fa_84", se = "_comboboxButtons_xz6fa_87", oe = "_withChips_xz6fa_94", re = "_inlineError_xz6fa_104", ie = "_popover_xz6fa_108", de = "_option_xz6fa_134", ce = "_indicator_xz6fa_157", pe = "_indicatorIcon_xz6fa_166", me = "_optionWithIndicator_xz6fa_169", _e = "_loadingIndicator_xz6fa_172", ue = "_noResultOption_xz6fa_175", C = {
|
|
7
7
|
container: Q,
|
|
8
8
|
disabled: X,
|
|
9
9
|
label: Y,
|
|
10
10
|
hiddenLabel: Z,
|
|
11
11
|
comboboxContainer: F,
|
|
12
12
|
withComboboxButtons: ee,
|
|
13
|
-
error:
|
|
14
|
-
textInputWrapper:
|
|
13
|
+
error: ae,
|
|
14
|
+
textInputWrapper: te,
|
|
15
15
|
textInput: ne,
|
|
16
16
|
errorIcon: le,
|
|
17
17
|
comboboxButtons: se,
|
|
@@ -25,12 +25,12 @@ import '../styles/dynamic-loading-tree.css';const Q = "_container_bezt1_1", X =
|
|
|
25
25
|
loadingIndicator: _e,
|
|
26
26
|
noResultOption: ue
|
|
27
27
|
};
|
|
28
|
-
let n = /* @__PURE__ */ function(
|
|
29
|
-
return
|
|
28
|
+
let n = /* @__PURE__ */ function(t) {
|
|
29
|
+
return t.LOAD_DATA = "LOAD_DATA", t.LOAD_ERROR = "LOAD_DATA_ERROR", t.LOAD_SUCCESS = "LOAD_DATA_SUCCESS", t.LOAD_MORE = "LOAD_DATA_SUCCESS", t.RESET = "RESET", t;
|
|
30
30
|
}({});
|
|
31
|
-
const
|
|
32
|
-
levelName:
|
|
33
|
-
parentDisplayValue:
|
|
31
|
+
const ye = ({
|
|
32
|
+
levelName: t,
|
|
33
|
+
parentDisplayValue: h,
|
|
34
34
|
displayValue: o
|
|
35
35
|
}) => /* @__PURE__ */ N("div", {
|
|
36
36
|
style: {
|
|
@@ -43,132 +43,132 @@ const be = ({
|
|
|
43
43
|
display: "flex",
|
|
44
44
|
alignItems: "flex-start"
|
|
45
45
|
},
|
|
46
|
-
children: [/* @__PURE__ */ u(
|
|
46
|
+
children: [/* @__PURE__ */ u(L, {
|
|
47
47
|
as: "span",
|
|
48
48
|
variant: "labelBold",
|
|
49
|
-
children: `${
|
|
50
|
-
}), /* @__PURE__ */ u(
|
|
49
|
+
children: `${t}`
|
|
50
|
+
}), /* @__PURE__ */ u(L, {
|
|
51
51
|
as: "span",
|
|
52
52
|
variant: "label",
|
|
53
|
-
children: `/${
|
|
53
|
+
children: `/${h}`
|
|
54
54
|
})]
|
|
55
|
-
}), /* @__PURE__ */ u(
|
|
55
|
+
}), /* @__PURE__ */ u(L, {
|
|
56
56
|
as: "span",
|
|
57
57
|
variant: "bodyDefault",
|
|
58
58
|
children: o
|
|
59
59
|
})]
|
|
60
|
-
}),
|
|
60
|
+
}), he = (t, h) => {
|
|
61
61
|
const {
|
|
62
62
|
id: o,
|
|
63
63
|
items: m,
|
|
64
|
-
marker:
|
|
65
|
-
} =
|
|
66
|
-
switch (
|
|
64
|
+
marker: y
|
|
65
|
+
} = h.payload;
|
|
66
|
+
switch (h.type) {
|
|
67
67
|
case n.LOAD_DATA:
|
|
68
68
|
return {
|
|
69
|
-
...
|
|
69
|
+
...t,
|
|
70
70
|
[o]: {
|
|
71
|
-
...
|
|
71
|
+
...t[o],
|
|
72
72
|
status: "loading"
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
case n.LOAD_ERROR:
|
|
76
76
|
return {
|
|
77
|
-
...
|
|
77
|
+
...t,
|
|
78
78
|
[o]: {
|
|
79
|
-
...
|
|
80
|
-
marker:
|
|
79
|
+
...t[o],
|
|
80
|
+
marker: y,
|
|
81
81
|
status: "error"
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
case n.LOAD_SUCCESS: {
|
|
85
85
|
const {
|
|
86
|
-
itemsWithParent:
|
|
87
|
-
itemsIds:
|
|
88
|
-
} = m.reduce((
|
|
86
|
+
itemsWithParent: x,
|
|
87
|
+
itemsIds: v
|
|
88
|
+
} = m.reduce((b, d) => ({
|
|
89
89
|
itemsWithParent: {
|
|
90
|
-
...
|
|
90
|
+
...b.itemsWithParent,
|
|
91
91
|
[d.id]: {
|
|
92
92
|
...d,
|
|
93
93
|
parent: o,
|
|
94
94
|
children: []
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
|
-
itemsIds: [...
|
|
97
|
+
itemsIds: [...b.itemsIds, d.id]
|
|
98
98
|
}), {
|
|
99
99
|
itemsWithParent: {},
|
|
100
100
|
itemsIds: []
|
|
101
101
|
});
|
|
102
102
|
return {
|
|
103
|
-
...
|
|
103
|
+
...t,
|
|
104
104
|
[o]: {
|
|
105
|
-
...
|
|
105
|
+
...t[o],
|
|
106
106
|
status: "success",
|
|
107
|
-
marker:
|
|
108
|
-
children: [...
|
|
107
|
+
marker: y,
|
|
108
|
+
children: [...t[o].children || [], ...v]
|
|
109
109
|
},
|
|
110
|
-
...
|
|
110
|
+
...x
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
113
|
case n.RESET:
|
|
114
114
|
return {
|
|
115
|
-
...
|
|
115
|
+
...t,
|
|
116
116
|
[o]: {
|
|
117
|
-
...
|
|
117
|
+
...t[o],
|
|
118
118
|
status: "success",
|
|
119
|
-
marker:
|
|
119
|
+
marker: y,
|
|
120
120
|
children: []
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
123
|
default:
|
|
124
|
-
return
|
|
124
|
+
return t;
|
|
125
125
|
}
|
|
126
|
-
},
|
|
127
|
-
ariaLabel:
|
|
128
|
-
onSelect:
|
|
126
|
+
}, Oe = ({
|
|
127
|
+
ariaLabel: t,
|
|
128
|
+
onSelect: h,
|
|
129
129
|
selectedNodes: o,
|
|
130
130
|
defaultFetcher: m,
|
|
131
|
-
levels:
|
|
132
|
-
selectableLevels:
|
|
133
|
-
multiselect:
|
|
134
|
-
open:
|
|
131
|
+
levels: y,
|
|
132
|
+
selectableLevels: x,
|
|
133
|
+
multiselect: v,
|
|
134
|
+
open: b,
|
|
135
135
|
searchInput: d,
|
|
136
136
|
noResultMessage: B,
|
|
137
137
|
loadingAriaLabel: U
|
|
138
138
|
}) => {
|
|
139
|
-
const [
|
|
139
|
+
const [f, s] = J(he, {
|
|
140
140
|
[i.id]: i
|
|
141
|
-
}), [
|
|
141
|
+
}), [A, P] = V({
|
|
142
142
|
nodes: [],
|
|
143
143
|
selectedIds: []
|
|
144
|
-
}), [T,
|
|
144
|
+
}), [T, D] = V(!1), E = K(() => Math.max(...x), [x]), z = O((e = f) => {
|
|
145
145
|
const r = [];
|
|
146
|
-
return [...Object.values(e).map((
|
|
147
|
-
const _ = [...
|
|
148
|
-
...
|
|
146
|
+
return [...Object.values(e).map((a) => {
|
|
147
|
+
const _ = [...a.children], l = {
|
|
148
|
+
...a,
|
|
149
149
|
children: _,
|
|
150
150
|
metadata: {
|
|
151
|
-
...
|
|
151
|
+
...a.metadata,
|
|
152
152
|
variant: "content",
|
|
153
|
-
isLoading:
|
|
153
|
+
isLoading: a.status === "loading" && !a.children.length
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
156
|
let c;
|
|
157
|
-
return
|
|
157
|
+
return a.children.length && a.status === "loading" && (c = g(l.id, l.metadata.displayValue, "loading")), a.status === "error" && (c = g(l.id, l.metadata.displayValue, "reload")), a.status === "success" && a.marker && (c = g(l.id, l.metadata.displayValue, "loadMore")), c && (r.push(c), l.children.push(c.id)), l;
|
|
158
158
|
}), ...r];
|
|
159
|
-
}, [
|
|
159
|
+
}, [f]), R = O((e) => {
|
|
160
160
|
var _;
|
|
161
|
-
const r = (_ = e.ancestors) == null ? void 0 : _.find((l) => l.level === e.level - 1), p =
|
|
162
|
-
return e.level === 1 || d === "" ? e.displayValue : /* @__PURE__ */ u(
|
|
161
|
+
const r = (_ = e.ancestors) == null ? void 0 : _.find((l) => l.level === e.level - 1), p = y.find((l) => l.level === e.level);
|
|
162
|
+
return e.level === 1 || d === "" ? e.displayValue : /* @__PURE__ */ u(ye, {
|
|
163
163
|
displayValue: e.displayValue,
|
|
164
164
|
levelName: p.displayName,
|
|
165
165
|
parentDisplayValue: r.displayName
|
|
166
166
|
});
|
|
167
|
-
}, [
|
|
167
|
+
}, [y, d]), S = O((e) => ({
|
|
168
168
|
id: e.value,
|
|
169
|
-
name:
|
|
169
|
+
name: R(e),
|
|
170
170
|
parent: i.id,
|
|
171
|
-
isBranch: e.level !==
|
|
171
|
+
isBranch: e.level !== E,
|
|
172
172
|
children: [],
|
|
173
173
|
metadata: {
|
|
174
174
|
variant: "content",
|
|
@@ -178,19 +178,19 @@ const be = ({
|
|
|
178
178
|
marker: e.marker,
|
|
179
179
|
ancestors: e.ancestors
|
|
180
180
|
}
|
|
181
|
-
}), [
|
|
181
|
+
}), [R, E]);
|
|
182
182
|
W(() => {
|
|
183
183
|
P({
|
|
184
|
-
nodes: z(
|
|
184
|
+
nodes: z(f),
|
|
185
185
|
selectedIds: o
|
|
186
186
|
});
|
|
187
|
-
}, [z, o,
|
|
188
|
-
if (!
|
|
187
|
+
}, [z, o, f]), W(() => {
|
|
188
|
+
if (!b)
|
|
189
189
|
return;
|
|
190
190
|
const {
|
|
191
191
|
signal: e
|
|
192
192
|
} = new AbortController();
|
|
193
|
-
|
|
193
|
+
D(!0), d ? (s({
|
|
194
194
|
type: n.RESET,
|
|
195
195
|
payload: {
|
|
196
196
|
id: i.id,
|
|
@@ -204,18 +204,18 @@ const be = ({
|
|
|
204
204
|
onlySelectableOptions: !1,
|
|
205
205
|
ancestorId: null
|
|
206
206
|
}).then((r) => {
|
|
207
|
-
const p = r.options.map((
|
|
208
|
-
id:
|
|
209
|
-
name:
|
|
207
|
+
const p = r.options.map((a) => ({
|
|
208
|
+
id: a.value,
|
|
209
|
+
name: R(a),
|
|
210
210
|
parent: i.id,
|
|
211
|
-
isBranch:
|
|
211
|
+
isBranch: a.level < E,
|
|
212
212
|
children: [],
|
|
213
213
|
metadata: {
|
|
214
214
|
variant: "content",
|
|
215
|
-
level:
|
|
216
|
-
selectable:
|
|
217
|
-
displayValue:
|
|
218
|
-
ancestors:
|
|
215
|
+
level: a.level,
|
|
216
|
+
selectable: a.selectable,
|
|
217
|
+
displayValue: a.displayValue,
|
|
218
|
+
ancestors: a.ancestors
|
|
219
219
|
}
|
|
220
220
|
}));
|
|
221
221
|
s({
|
|
@@ -231,14 +231,14 @@ const be = ({
|
|
|
231
231
|
items: p,
|
|
232
232
|
marker: r.marker
|
|
233
233
|
}
|
|
234
|
-
}),
|
|
234
|
+
}), D(!1);
|
|
235
235
|
}).catch(() => {
|
|
236
236
|
s({
|
|
237
237
|
type: n.LOAD_ERROR,
|
|
238
238
|
payload: {
|
|
239
239
|
id: i.id
|
|
240
240
|
}
|
|
241
|
-
}),
|
|
241
|
+
}), D(!1);
|
|
242
242
|
})) : (s({
|
|
243
243
|
type: n.RESET,
|
|
244
244
|
payload: {
|
|
@@ -272,27 +272,27 @@ const be = ({
|
|
|
272
272
|
items: p,
|
|
273
273
|
marker: r.marker
|
|
274
274
|
}
|
|
275
|
-
}),
|
|
275
|
+
}), D(!1);
|
|
276
276
|
}).catch(() => {
|
|
277
277
|
s({
|
|
278
278
|
type: n.LOAD_ERROR,
|
|
279
279
|
payload: {
|
|
280
280
|
id: i.id
|
|
281
281
|
}
|
|
282
|
-
}),
|
|
282
|
+
}), D(!1);
|
|
283
283
|
}));
|
|
284
|
-
}, [m, S,
|
|
285
|
-
const M =
|
|
284
|
+
}, [m, S, b, d, y, E, R]);
|
|
285
|
+
const M = O((e) => {
|
|
286
286
|
const {
|
|
287
287
|
isExpanded: r,
|
|
288
288
|
isDisabled: p,
|
|
289
|
-
element:
|
|
289
|
+
element: a
|
|
290
290
|
} = e;
|
|
291
291
|
if (!r || p) {
|
|
292
292
|
s({
|
|
293
293
|
type: n.RESET,
|
|
294
294
|
payload: {
|
|
295
|
-
id:
|
|
295
|
+
id: a.id,
|
|
296
296
|
items: []
|
|
297
297
|
}
|
|
298
298
|
});
|
|
@@ -300,11 +300,11 @@ const be = ({
|
|
|
300
300
|
}
|
|
301
301
|
const {
|
|
302
302
|
level: _
|
|
303
|
-
} =
|
|
303
|
+
} = a.metadata, {
|
|
304
304
|
id: l,
|
|
305
305
|
marker: c
|
|
306
|
-
} =
|
|
307
|
-
signal:
|
|
306
|
+
} = a, {
|
|
307
|
+
signal: I
|
|
308
308
|
} = new AbortController();
|
|
309
309
|
s({
|
|
310
310
|
type: n.LOAD_DATA,
|
|
@@ -312,14 +312,14 @@ const be = ({
|
|
|
312
312
|
id: l
|
|
313
313
|
}
|
|
314
314
|
}), m({
|
|
315
|
-
signal:
|
|
315
|
+
signal: I,
|
|
316
316
|
marker: c,
|
|
317
317
|
searchInput: "",
|
|
318
318
|
level: _ + 1,
|
|
319
319
|
ancestorId: l,
|
|
320
320
|
onlySelectableOptions: !1
|
|
321
321
|
}).then((k) => {
|
|
322
|
-
const q = k.options.map((w) => (
|
|
322
|
+
const q = k.options.map((w) => (a.children.push(w.value), S(w)));
|
|
323
323
|
s({
|
|
324
324
|
type: n.LOAD_SUCCESS,
|
|
325
325
|
payload: {
|
|
@@ -336,11 +336,11 @@ const be = ({
|
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
338
|
});
|
|
339
|
-
}, [m, S]), j =
|
|
340
|
-
const r =
|
|
339
|
+
}, [m, S]), j = O((e) => {
|
|
340
|
+
const r = f[e], {
|
|
341
341
|
level: p
|
|
342
342
|
} = r.metadata, {
|
|
343
|
-
id:
|
|
343
|
+
id: a,
|
|
344
344
|
marker: _
|
|
345
345
|
} = r, {
|
|
346
346
|
signal: l
|
|
@@ -348,22 +348,22 @@ const be = ({
|
|
|
348
348
|
s({
|
|
349
349
|
type: n.LOAD_DATA,
|
|
350
350
|
payload: {
|
|
351
|
-
id:
|
|
351
|
+
id: a
|
|
352
352
|
}
|
|
353
353
|
}), m({
|
|
354
354
|
signal: l,
|
|
355
355
|
marker: _,
|
|
356
356
|
searchInput: d,
|
|
357
357
|
level: d === "" ? p + 1 : null,
|
|
358
|
-
ancestorId:
|
|
358
|
+
ancestorId: a !== i.id ? a.toString() : null,
|
|
359
359
|
onlySelectableOptions: !1
|
|
360
360
|
}).then((c) => {
|
|
361
|
-
const
|
|
361
|
+
const I = c.options.map(S);
|
|
362
362
|
s({
|
|
363
363
|
type: n.LOAD_SUCCESS,
|
|
364
364
|
payload: {
|
|
365
|
-
id:
|
|
366
|
-
items:
|
|
365
|
+
id: a,
|
|
366
|
+
items: I,
|
|
367
367
|
marker: c.marker
|
|
368
368
|
}
|
|
369
369
|
});
|
|
@@ -371,30 +371,30 @@ const be = ({
|
|
|
371
371
|
s({
|
|
372
372
|
type: n.LOAD_ERROR,
|
|
373
373
|
payload: {
|
|
374
|
-
id:
|
|
374
|
+
id: a,
|
|
375
375
|
marker: _
|
|
376
376
|
}
|
|
377
377
|
});
|
|
378
378
|
});
|
|
379
|
-
}, [m, S, d,
|
|
379
|
+
}, [m, S, d, f]), $ = A.nodes.length === 0 || A.nodes[0].children.length === 0 && A.nodes[0].id === i.id;
|
|
380
380
|
return /* @__PURE__ */ N("div", {
|
|
381
381
|
children: [T && /* @__PURE__ */ u("div", {
|
|
382
|
-
className:
|
|
382
|
+
className: C.noResultOption,
|
|
383
383
|
children: /* @__PURE__ */ u(G, {
|
|
384
384
|
"aria-label": U,
|
|
385
|
-
className:
|
|
385
|
+
className: C.loadingIndicator
|
|
386
386
|
})
|
|
387
387
|
}), $ && !T ? /* @__PURE__ */ u("div", {
|
|
388
|
-
className:
|
|
388
|
+
className: C.noResultOption,
|
|
389
389
|
children: B
|
|
390
390
|
}) : /* @__PURE__ */ u(H, {
|
|
391
|
-
"aria-label":
|
|
392
|
-
data:
|
|
393
|
-
multiSelect:
|
|
391
|
+
"aria-label": t,
|
|
392
|
+
data: A.nodes,
|
|
393
|
+
multiSelect: v,
|
|
394
394
|
onExpand: M,
|
|
395
395
|
onLoadData: j,
|
|
396
396
|
onNodeSelect: (e) => {
|
|
397
|
-
|
|
397
|
+
x.includes(e.element.metadata.level) ? h(e) : (e.isSelected = !1, e.treeState.selectedIds.delete(e.element.id));
|
|
398
398
|
},
|
|
399
399
|
size: "large",
|
|
400
400
|
togglableSelect: !0,
|
|
@@ -403,7 +403,7 @@ const be = ({
|
|
|
403
403
|
});
|
|
404
404
|
};
|
|
405
405
|
export {
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
406
|
+
Oe as D,
|
|
407
|
+
ye as S,
|
|
408
|
+
C as s
|
|
409
409
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._container_xz6fa_1{font-weight:400;font-size:.875rem;font-family:Lato,-apple-system,BlinkMacSystemFont,San Francisco,Segoe UI,Roboto,Helvetica Neue,sans-serif;line-height:1.25rem;letter-spacing:.01875rem;text-transform:none;text-decoration:none;display:flex;flex-direction:column}._container_xz6fa_1._disabled_xz6fa_12{opacity:.1}._container_xz6fa_1 ._label_xz6fa_15{font-weight:700;font-size:.875rem;font-family:Lato,-apple-system,BlinkMacSystemFont,San Francisco,Segoe UI,Roboto,Helvetica Neue,sans-serif;line-height:1.25rem;letter-spacing:.01875rem;text-transform:none;text-decoration:none;flex:0 0 fit-content;color:var(--text-text-on-light);overflow-wrap:break-word}._container_xz6fa_1 ._label_xz6fa_15:not(._hiddenLabel_xz6fa_27){margin-block-end:var(--space-2)}._container_xz6fa_1 ._comboboxContainer_xz6fa_30{position:relative;display:flex;flex-wrap:wrap;gap:var(--space-2);overflow-y:auto;background-color:var(--surface-dropdown-surface);border-top:var(--blueprint-combobox-border-top-width, var(--border-1)) solid var(--blueprint-combobox-border-color, var(--border-input-border));border-right:var(--blueprint-combobox-border-right-width, var(--border-1)) solid var(--blueprint-combobox-border-color, var(--border-input-border));border-bottom:var(--blueprint-combobox-border-bottom-width, var(--border-1)) solid var(--blueprint-combobox-border-color, var(--border-input-border));border-left:var(--blueprint-combobox-border-left-width, var(--border-1)) solid var(--blueprint-combobox-border-color, var(--border-input-border));border-radius:var(--blueprint-combobox-input-radius, var(--radius-2));box-shadow:var(--innershadow-1);padding-block:calc((40px - var(--space-5)) / 2 - var(--border-1));padding-inline:var(--space-3)}._container_xz6fa_1 ._comboboxContainer_xz6fa_30._withComboboxButtons_xz6fa_46{padding-inline-end:var(--space-10)}._container_xz6fa_1 ._comboboxContainer_xz6fa_30:not(:disabled):has(input:focus){background-color:var(--surface-dropdown-surface-focus);border:var(--border-2) solid var(--outline-focus-on-light);padding-block:calc((40px - var(--space-5)) / 2 - var(--border-2))}._container_xz6fa_1 ._comboboxContainer_xz6fa_30:not(:disabled)._error_xz6fa_54,._container_xz6fa_1 ._comboboxContainer_xz6fa_30:not(:disabled):has([aria-invalid=true]){background-color:var(--surface-dropdown-surface-error);border-top:var(--blueprint-combobox-border-error-top-width, var(--border-2)) solid var(--border-input-border-error);border-right:var(--blueprint-combobox-border-error-right-width, var(--border-2)) solid var(--border-input-border-error);border-bottom:var(--blueprint-combobox-border-error-bottom-width, var(--border-2)) solid var(--border-input-border-error);border-left:var(--blueprint-combobox-border-error-left-width, var(--border-2)) solid var(--border-input-border-error);padding-block:calc((40px - var(--space-5)) / 2 - var(--border-2))}._container_xz6fa_1 ._comboboxContainer_xz6fa_30 ._textInputWrapper_xz6fa_62{display:flex;flex:content;gap:var(--space-2);align-items:center}._container_xz6fa_1 ._comboboxContainer_xz6fa_30 ._textInputWrapper_xz6fa_62 ._textInput_xz6fa_62{font-weight:400;font-size:.875rem;font-family:Lato,-apple-system,BlinkMacSystemFont,San Francisco,Segoe UI,Roboto,Helvetica Neue,sans-serif;line-height:1.25rem;letter-spacing:.01875rem;text-transform:none;text-decoration:none;width:100%;height:var(--space-5);padding:0;color:var(--text-text-on-light);background-color:transparent;border:none;outline:none}._container_xz6fa_1 ._comboboxContainer_xz6fa_30 ._textInputWrapper_xz6fa_62 ._errorIcon_xz6fa_84 path{fill:var(--icon-icon-error-on-light)}._container_xz6fa_1 ._comboboxContainer_xz6fa_30 ._textInputWrapper_xz6fa_62 ._comboboxButtons_xz6fa_87{position:absolute;top:var(--space-2);right:var(--space-2);display:flex;align-items:center}._container_xz6fa_1 ._comboboxContainer_xz6fa_30._withChips_xz6fa_94{max-height:calc(2 * var(--space-2) + 3 * var(--space-6));padding-block:calc((40px - var(--space-7)) / 2 - var(--border-1))}._container_xz6fa_1 ._comboboxContainer_xz6fa_30._withChips_xz6fa_94:not(:disabled)._error_xz6fa_54{padding-block:calc((40px - var(--space-7)) / 2 - var(--border-2))}._container_xz6fa_1 ._comboboxContainer_xz6fa_30._withChips_xz6fa_94:not(:disabled):has(input:focus){padding-block:calc((40px - var(--space-7)) / 2 - var(--border-2))}._container_xz6fa_1 ._inlineError_xz6fa_104{margin-block-start:var(--space-2)}._popover_xz6fa_108{font-weight:400;font-size:.875rem;font-family:Lato,-apple-system,BlinkMacSystemFont,San Francisco,Segoe UI,Roboto,Helvetica Neue,sans-serif;line-height:1.25rem;letter-spacing:.01875rem;text-transform:none;text-decoration:none;z-index:380;max-height:300px;overflow:auto;background-color:var(--surface-menu-surface);border:var(--border-1) solid var(--border-card-border);border-radius:var(--radius-3);padding-block:var(--space-3);padding-inline:var(--space-3);box-shadow:var(--dropshadow-3)}._popover_xz6fa_108 ul{padding-inline-start:0}._popover_xz6fa_108 ._option_xz6fa_134{position:relative;box-sizing:border-box;width:100%;overflow-wrap:break-word;border:var(--border-2) solid transparent;border-radius:var(--radius-3);outline:none;cursor:pointer;-webkit-user-select:none;user-select:none;padding-block:var(--space-2);padding-inline:var(--space-2)}._popover_xz6fa_108 ._option_xz6fa_134[aria-disabled]{opacity:.1}._popover_xz6fa_108 ._option_xz6fa_134[data-active-item]:not([aria-disabled]){background-color:var(--surface-menu-surface-focus);border:var(--border-2) solid var(--outline-focus-on-light)}._popover_xz6fa_108 ._option_xz6fa_134:hover{background-color:var(--surface-menu-surface-hover)}._popover_xz6fa_108 ._option_xz6fa_134 ._indicator_xz6fa_157{position:absolute;top:0;left:var(--space-2);display:flex;align-items:center;justify-content:center;height:var(--size-9)}._popover_xz6fa_108 ._option_xz6fa_134 ._indicator_xz6fa_157 ._indicatorIcon_xz6fa_166 path{fill:var(--icon-icon-on-light)}._popover_xz6fa_108 ._optionWithIndicator_xz6fa_169{padding-inline:var(--space-10) var(--space-2)}._popover_xz6fa_108 ._loadingIndicator_xz6fa_172{position:unset}._popover_xz6fa_108 ._noResultOption_xz6fa_175{color:var(--text-text-on-light);text-align:center;-webkit-user-select:none;user-select:none}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/combobox-with-api",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.4",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@ariakit/react": "0.4.15",
|
|
6
6
|
"@box/blueprint-web": "^7.8.0",
|
|
@@ -11,11 +11,12 @@
|
|
|
11
11
|
"react-intl": "^6.4.2"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@box/tree": "^0.40.
|
|
14
|
+
"@box/tree": "^0.40.3",
|
|
15
|
+
"react-accessible-treeview": "2.9.0"
|
|
15
16
|
},
|
|
16
17
|
"devDependencies": {
|
|
17
|
-
"@box/blueprint-web": "^9.19.
|
|
18
|
-
"@box/blueprint-web-assets": "^4.37.
|
|
18
|
+
"@box/blueprint-web": "^9.19.2",
|
|
19
|
+
"@box/blueprint-web-assets": "^4.37.2",
|
|
19
20
|
"@box/storybook-utils": "^0.8.3",
|
|
20
21
|
"react": "^18.3.0",
|
|
21
22
|
"react-dom": "^18.3.0"
|