se-design 1.0.94 → 1.0.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/style.css +1 -1
- package/dist/components/DropdownWithInputTags/index.d.ts +12 -0
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/index210.js.map +1 -1
- package/dist/index214.js +3 -3
- package/dist/index214.js.map +1 -1
- package/dist/index33.js +10 -11
- package/dist/index39.js +166 -164
- package/dist/index39.js.map +1 -1
- package/dist/index40.js +45 -40
- package/dist/index40.js.map +1 -1
- package/dist/index43.js +7 -8
- package/dist/index44.js +1 -2
- package/dist/index60.js +16 -17
- package/dist/index7.js +7 -8
- package/dist/index70.js +1 -2
- package/package.json +1 -1
package/dist/index39.js
CHANGED
|
@@ -1,44 +1,46 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Popover as
|
|
1
|
+
import r, { forwardRef as Oe, useState as R, useRef as U, useCallback as W, useEffect as x, useImperativeHandle as Ie } from "react";
|
|
2
|
+
import { Popover as Ae } from "./index19.js";
|
|
3
3
|
import { Icon as Te } from "./index6.js";
|
|
4
|
-
import { Checkbox as
|
|
5
|
-
import { Button as
|
|
6
|
-
import { getA11yNameAttributes as
|
|
4
|
+
import { Checkbox as Re } from "./index24.js";
|
|
5
|
+
import { Button as ne } from "./index4.js";
|
|
6
|
+
import { getA11yNameAttributes as Le } from "./index86.js";
|
|
7
7
|
import "./index77.js";
|
|
8
|
-
import { useCombobox as
|
|
9
|
-
import { useStableId as
|
|
10
|
-
import { announce as
|
|
8
|
+
import { useCombobox as He } from "./index73.js";
|
|
9
|
+
import { useStableId as le } from "./index212.js";
|
|
10
|
+
import { announce as Ke } from "./index80.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
function d() {
|
|
13
13
|
return d = Object.assign ? Object.assign.bind() : function(v) {
|
|
14
14
|
for (var i = 1; i < arguments.length; i++) {
|
|
15
|
-
var
|
|
16
|
-
for (var k in
|
|
15
|
+
var b = arguments[i];
|
|
16
|
+
for (var k in b) ({}).hasOwnProperty.call(b, k) && (v[k] = b[k]);
|
|
17
17
|
}
|
|
18
18
|
return v;
|
|
19
19
|
}, d.apply(null, arguments);
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const Qe = /* @__PURE__ */ Oe(({
|
|
22
22
|
value: v,
|
|
23
23
|
onChange: i,
|
|
24
|
-
placeholder:
|
|
24
|
+
placeholder: b = "Type to search or add custom tags...",
|
|
25
25
|
className: k = "",
|
|
26
26
|
options: g = [],
|
|
27
|
-
renderOption:
|
|
27
|
+
renderOption: j,
|
|
28
28
|
label: D,
|
|
29
|
-
ariaLabel:
|
|
29
|
+
ariaLabel: re,
|
|
30
30
|
ariaLabelledBy: oe,
|
|
31
|
-
ariaDescribedBy:
|
|
31
|
+
ariaDescribedBy: ae,
|
|
32
32
|
automationId: c = "",
|
|
33
33
|
noOptionsMessage: L = "No options found",
|
|
34
|
-
allowCustomTags:
|
|
35
|
-
disabled:
|
|
34
|
+
allowCustomTags: z = !0,
|
|
35
|
+
disabled: o = !1,
|
|
36
36
|
type: H = "select",
|
|
37
|
-
showInput:
|
|
38
|
-
displayTagBy:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
showInput: B = !0,
|
|
38
|
+
displayTagBy: G = "label",
|
|
39
|
+
nonRemovableTags: K = [],
|
|
40
|
+
hideSelectedOptions: se = !1,
|
|
41
|
+
isWithPortal: ie = !1
|
|
42
|
+
}, ce) => {
|
|
43
|
+
const q = (e) => e.map((t) => {
|
|
42
44
|
const n = g.find((s) => s.value === t);
|
|
43
45
|
return n ? {
|
|
44
46
|
label: n.label,
|
|
@@ -47,30 +49,30 @@ const Ge = /* @__PURE__ */ Ce(({
|
|
|
47
49
|
label: t,
|
|
48
50
|
value: t
|
|
49
51
|
};
|
|
50
|
-
}), [
|
|
51
|
-
if (
|
|
52
|
-
const t = [...
|
|
52
|
+
}), [l, f] = R(() => q(v || [])), [a, y] = R(""), [V, ue] = R(g), [u, p] = R(!1), pe = U(null), $ = U(null), O = U(!1), S = H === "multi-select-without-cta", m = H === "multi-select" || S, me = le(c, "dropdown-input-tags-listbox"), J = le(c ? `${c}-label` : void 0, "dropdown-input-tags-label"), I = W((e) => {
|
|
53
|
+
if (o) return;
|
|
54
|
+
const t = [...l];
|
|
53
55
|
t.some((n) => n.value === e.value) || (t.push({
|
|
54
56
|
label: e.label,
|
|
55
57
|
value: e.value
|
|
56
58
|
}), f(t), i?.(t.map((n) => n.value))), y(""), p(!1);
|
|
57
|
-
}, [
|
|
59
|
+
}, [o, l, i]), F = W((e, t) => {
|
|
58
60
|
let n = [];
|
|
59
|
-
e ? n = [...
|
|
61
|
+
e ? n = [...l, {
|
|
60
62
|
label: t.label,
|
|
61
63
|
value: t.value
|
|
62
|
-
}] : n =
|
|
63
|
-
}, [
|
|
64
|
-
id:
|
|
64
|
+
}] : n = l.filter((s) => s.value !== t.value), f(n), y(""), S && (O.current = !0, i?.(n.map((s) => s.value)));
|
|
65
|
+
}, [l, S, i]), A = "__add_custom_tag__", Q = "__no_results__", de = {
|
|
66
|
+
id: Q,
|
|
65
67
|
label: L,
|
|
66
|
-
value:
|
|
68
|
+
value: Q,
|
|
67
69
|
__noResults: !0
|
|
68
|
-
},
|
|
69
|
-
if (!
|
|
70
|
-
if (e.value ===
|
|
71
|
-
const t =
|
|
70
|
+
}, fe = (e) => !!e?.__noResults, X = W((e) => {
|
|
71
|
+
if (!o) {
|
|
72
|
+
if (e.value === A) {
|
|
73
|
+
const t = a.trim();
|
|
72
74
|
if (!t) return;
|
|
73
|
-
const n = [...
|
|
75
|
+
const n = [...l];
|
|
74
76
|
n.some((s) => s.value === t) || (n.push({
|
|
75
77
|
label: t,
|
|
76
78
|
value: t
|
|
@@ -78,126 +80,126 @@ const Ge = /* @__PURE__ */ Ce(({
|
|
|
78
80
|
return;
|
|
79
81
|
}
|
|
80
82
|
if (m) {
|
|
81
|
-
const t =
|
|
82
|
-
|
|
83
|
+
const t = l.some((n) => n.value === e.value);
|
|
84
|
+
F(!t, e);
|
|
83
85
|
} else
|
|
84
86
|
I(e);
|
|
85
87
|
}
|
|
86
|
-
}, [
|
|
87
|
-
id:
|
|
88
|
-
label: `Add "${
|
|
89
|
-
value:
|
|
90
|
-
}] : [],
|
|
91
|
-
containerProps:
|
|
92
|
-
inputProps:
|
|
93
|
-
listboxProps:
|
|
88
|
+
}, [o, m, l, a, i, F, I]), Y = se ? V.filter((e) => !l.some((t) => t.value === e.value)) : V, w = Y.length > 0 ? Y : z && a.trim() ? [{
|
|
89
|
+
id: A,
|
|
90
|
+
label: `Add "${a.trim()}"`,
|
|
91
|
+
value: A
|
|
92
|
+
}] : [], Z = w.length === 0 && u ? [de] : w, {
|
|
93
|
+
containerProps: ge,
|
|
94
|
+
inputProps: ee,
|
|
95
|
+
listboxProps: he,
|
|
94
96
|
getOptionProps: N,
|
|
95
97
|
highlightedIndex: h,
|
|
96
|
-
setHighlightedIndex:
|
|
97
|
-
isKeyboardFocused:
|
|
98
|
-
} =
|
|
99
|
-
items:
|
|
98
|
+
setHighlightedIndex: E,
|
|
99
|
+
isKeyboardFocused: te
|
|
100
|
+
} = He({
|
|
101
|
+
items: Z,
|
|
100
102
|
isOpen: u,
|
|
101
103
|
onOpenChange: p,
|
|
102
|
-
onSelect:
|
|
103
|
-
listboxId:
|
|
104
|
-
hasItems:
|
|
104
|
+
onSelect: X,
|
|
105
|
+
listboxId: me,
|
|
106
|
+
hasItems: Z.length > 0,
|
|
105
107
|
keepHighlightOnSelect: m,
|
|
106
108
|
closeOnTab: H !== "multi-select",
|
|
107
|
-
isItemDisabled:
|
|
108
|
-
}), _ = (e) => e ? `highlighted${
|
|
109
|
-
|
|
110
|
-
if (
|
|
111
|
-
|
|
109
|
+
isItemDisabled: fe
|
|
110
|
+
}), _ = (e) => e ? `highlighted${te ? " keyboard-highlight" : ""}` : "";
|
|
111
|
+
x(() => {
|
|
112
|
+
if (O.current) {
|
|
113
|
+
O.current = !1;
|
|
112
114
|
return;
|
|
113
115
|
}
|
|
114
|
-
f(
|
|
115
|
-
}, [v, g, u]),
|
|
116
|
-
const e = g.filter((t) => t.label.toLowerCase().includes(
|
|
117
|
-
|
|
118
|
-
}, [
|
|
119
|
-
u && w.length === 0 &&
|
|
116
|
+
f(q(v || []));
|
|
117
|
+
}, [v, g, u]), x(() => {
|
|
118
|
+
const e = g.filter((t) => t.label.toLowerCase().includes(a.toLowerCase()) || t.value.toLowerCase().includes(a.toLowerCase()));
|
|
119
|
+
ue(e);
|
|
120
|
+
}, [a, g]), x(() => {
|
|
121
|
+
u && w.length === 0 && a.trim() && h === -1 && Ke(L, {
|
|
120
122
|
assertiveness: "polite",
|
|
121
123
|
batchId: "dropdown-input-tags-empty-state",
|
|
122
124
|
delay: 300
|
|
123
125
|
});
|
|
124
|
-
}, [w.length, u,
|
|
125
|
-
const
|
|
126
|
-
if (l) return;
|
|
127
|
-
const t =
|
|
126
|
+
}, [w.length, u, a, h]);
|
|
127
|
+
const ve = (e) => {
|
|
128
|
+
if (o || K.includes(l[e]?.value)) return;
|
|
129
|
+
const t = l.filter((n, s) => s !== e);
|
|
128
130
|
f(t), (!m || S || m && !u) && i?.(t.map((n) => n.value));
|
|
129
|
-
},
|
|
130
|
-
if (!
|
|
131
|
-
if (e.key === "Backspace" &&
|
|
132
|
-
e.preventDefault();
|
|
133
|
-
const t =
|
|
131
|
+
}, we = (e) => {
|
|
132
|
+
if (!o) {
|
|
133
|
+
if (e.key === "Backspace" && a === "" && l.length > 0) {
|
|
134
|
+
if (e.preventDefault(), K.includes(l[l.length - 1]?.value)) return;
|
|
135
|
+
const t = l.slice(0, -1);
|
|
134
136
|
f(t), i?.(t.map((n) => n.value));
|
|
135
137
|
return;
|
|
136
138
|
}
|
|
137
|
-
if (e.key === "Enter" &&
|
|
139
|
+
if (e.key === "Enter" && a.trim() && V.length === 0 && z) {
|
|
138
140
|
e.preventDefault();
|
|
139
|
-
const t = [...
|
|
140
|
-
t.some((n) => n.value ===
|
|
141
|
-
label:
|
|
142
|
-
value:
|
|
143
|
-
}), f(t), i?.(t.map((n) => n.value))), y(""),
|
|
141
|
+
const t = [...l];
|
|
142
|
+
t.some((n) => n.value === a.trim()) || (t.push({
|
|
143
|
+
label: a.trim(),
|
|
144
|
+
value: a.trim()
|
|
145
|
+
}), f(t), i?.(t.map((n) => n.value))), y(""), E(-1), p(!1);
|
|
144
146
|
return;
|
|
145
147
|
}
|
|
146
|
-
|
|
148
|
+
ee.onKeyDown(e);
|
|
147
149
|
}
|
|
148
|
-
},
|
|
149
|
-
if (
|
|
150
|
+
}, Ee = (e) => {
|
|
151
|
+
if (o) return;
|
|
150
152
|
const t = e.target.value;
|
|
151
|
-
y(t),
|
|
152
|
-
},
|
|
153
|
-
|
|
154
|
-
},
|
|
155
|
-
|
|
156
|
-
},
|
|
157
|
-
if (
|
|
153
|
+
y(t), E(-1), t.trim() && !u && p(!0);
|
|
154
|
+
}, be = () => {
|
|
155
|
+
o || (a.trim() || g.length > 0) && p(!0);
|
|
156
|
+
}, ke = (e) => {
|
|
157
|
+
o || (e.stopPropagation(), $.current?.focus(), !u && (a.trim() || g.length > 0) && p(!0));
|
|
158
|
+
}, ye = (e) => {
|
|
159
|
+
if (o) {
|
|
158
160
|
e.preventDefault(), e.stopPropagation();
|
|
159
161
|
return;
|
|
160
162
|
}
|
|
161
163
|
e.target.closest(".input-with-tags-container") && e.stopPropagation();
|
|
162
|
-
},
|
|
163
|
-
|
|
164
|
+
}, Se = () => {
|
|
165
|
+
o || p(!u);
|
|
164
166
|
};
|
|
165
|
-
|
|
166
|
-
toggleDropdown:
|
|
167
|
+
Ie(ce, () => ({
|
|
168
|
+
toggleDropdown: Se
|
|
167
169
|
}), []);
|
|
168
|
-
const
|
|
169
|
-
const P =
|
|
170
|
-
return /* @__PURE__ */
|
|
170
|
+
const Ne = (e, t, n, s) => {
|
|
171
|
+
const P = l.some((C) => C.value === e.value), T = h === t, M = N(t, P);
|
|
172
|
+
return /* @__PURE__ */ r.createElement("div", d({
|
|
171
173
|
key: e.id
|
|
172
|
-
},
|
|
173
|
-
className: `dropdown-with-input-tags-option ${_(
|
|
174
|
+
}, M, {
|
|
175
|
+
className: `dropdown-with-input-tags-option ${_(T)}`,
|
|
174
176
|
onClick: () => !s && n(e),
|
|
175
|
-
onMouseEnter: () =>
|
|
177
|
+
onMouseEnter: () => E(t),
|
|
176
178
|
"data-automation-id": `${c}-option-${e.id}`
|
|
177
|
-
}), /* @__PURE__ */
|
|
179
|
+
}), /* @__PURE__ */ r.createElement("span", {
|
|
178
180
|
className: "option-label"
|
|
179
|
-
}, e.label), e.value !== e.label && /* @__PURE__ */
|
|
181
|
+
}, e.label), e.value !== e.label && /* @__PURE__ */ r.createElement("span", {
|
|
180
182
|
className: "option-value"
|
|
181
183
|
}, e.value));
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
const e =
|
|
184
|
+
}, _e = () => {
|
|
185
|
+
O.current = !0;
|
|
186
|
+
const e = l.map((t) => t.value);
|
|
185
187
|
i?.(e), p(!1);
|
|
186
|
-
},
|
|
188
|
+
}, Pe = () => {
|
|
187
189
|
f([]);
|
|
188
|
-
},
|
|
189
|
-
const n =
|
|
190
|
-
return /* @__PURE__ */
|
|
190
|
+
}, Ce = (e, t) => {
|
|
191
|
+
const n = l.some((T) => T.value === e.value), s = h === t, P = N(t, n);
|
|
192
|
+
return /* @__PURE__ */ r.createElement("div", d({
|
|
191
193
|
key: e.id
|
|
192
194
|
}, P, {
|
|
193
195
|
className: `dropdown-with-input-tags-option dropdown-with-input-tags-multi-select-option ${_(s)}`,
|
|
194
196
|
"aria-checked": n,
|
|
195
197
|
onClick: () => {
|
|
196
|
-
|
|
198
|
+
o || (F(!n, e), $.current?.focus());
|
|
197
199
|
},
|
|
198
|
-
onMouseEnter: () =>
|
|
200
|
+
onMouseEnter: () => E(t),
|
|
199
201
|
"data-automation-id": `${c}-option-${e.id}`
|
|
200
|
-
}), /* @__PURE__ */
|
|
202
|
+
}), /* @__PURE__ */ r.createElement(Re, {
|
|
201
203
|
automationId: "checkbox",
|
|
202
204
|
className: "checkbox",
|
|
203
205
|
checked: n,
|
|
@@ -206,113 +208,113 @@ const Ge = /* @__PURE__ */ Ce(({
|
|
|
206
208
|
label: e.label,
|
|
207
209
|
tabIndex: -1
|
|
208
210
|
}));
|
|
209
|
-
},
|
|
211
|
+
}, De = () => /* @__PURE__ */ r.createElement("div", {
|
|
210
212
|
className: "dropdown-with-input-tags-ctas-container",
|
|
211
213
|
onKeyDown: (e) => {
|
|
212
214
|
(e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "Home" || e.key === "End") && e.stopPropagation();
|
|
213
215
|
}
|
|
214
|
-
}, /* @__PURE__ */
|
|
216
|
+
}, /* @__PURE__ */ r.createElement(ne, {
|
|
215
217
|
label: "Clear",
|
|
216
218
|
type: "link",
|
|
217
219
|
size: "sm",
|
|
218
|
-
onClick:
|
|
220
|
+
onClick: Pe,
|
|
219
221
|
automationId: `${c}-clear-button`
|
|
220
|
-
}), /* @__PURE__ */
|
|
222
|
+
}), /* @__PURE__ */ r.createElement(ne, {
|
|
221
223
|
label: "Apply",
|
|
222
224
|
type: "primary",
|
|
223
225
|
size: "sm",
|
|
224
|
-
onClick:
|
|
226
|
+
onClick: _e,
|
|
225
227
|
automationId: `${c}-apply-button`
|
|
226
228
|
}));
|
|
227
|
-
return /* @__PURE__ */
|
|
228
|
-
className: `dropdown-with-input-tags-wrapper ${k} ${
|
|
229
|
+
return /* @__PURE__ */ r.createElement("div", d({
|
|
230
|
+
className: `dropdown-with-input-tags-wrapper ${k} ${o ? "disabled-wrapper" : ""}`,
|
|
229
231
|
"data-automation-id": c
|
|
230
|
-
},
|
|
231
|
-
id:
|
|
232
|
+
}, ge), D && /* @__PURE__ */ r.createElement("label", {
|
|
233
|
+
id: J,
|
|
232
234
|
className: "dropdown-with-input-tags-label"
|
|
233
|
-
}, D), /* @__PURE__ */
|
|
234
|
-
onClick:
|
|
235
|
-
}, /* @__PURE__ */
|
|
236
|
-
ref:
|
|
235
|
+
}, D), /* @__PURE__ */ r.createElement("div", {
|
|
236
|
+
onClick: ye
|
|
237
|
+
}, /* @__PURE__ */ r.createElement(Ae, {
|
|
238
|
+
ref: pe,
|
|
237
239
|
className: "dropdown-with-input-tags-popover",
|
|
238
240
|
contentWidth: "full",
|
|
239
241
|
position: "bottom-left",
|
|
240
|
-
isPopoverOpen: !
|
|
241
|
-
onPopoverToggle:
|
|
242
|
+
isPopoverOpen: !o && u,
|
|
243
|
+
onPopoverToggle: o ? () => {
|
|
242
244
|
} : p,
|
|
243
245
|
disableClickToggle: !0,
|
|
244
|
-
isWithPortal:
|
|
246
|
+
isWithPortal: ie,
|
|
245
247
|
renderPopoverContents: ({
|
|
246
248
|
closePopoverCb: e
|
|
247
|
-
}) => /* @__PURE__ */
|
|
249
|
+
}) => /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement("div", d({}, he, {
|
|
248
250
|
className: "dropdown-with-input-tags-content"
|
|
249
251
|
}, m && {
|
|
250
252
|
"aria-multiselectable": "true"
|
|
251
253
|
}), w.length > 0 ? w.map((t, n) => {
|
|
252
|
-
if (t.value ===
|
|
253
|
-
const C = h === n,
|
|
254
|
-
return /* @__PURE__ */
|
|
254
|
+
if (t.value === A) {
|
|
255
|
+
const C = h === n, $e = N(n, !1);
|
|
256
|
+
return /* @__PURE__ */ r.createElement("div", d({
|
|
255
257
|
key: t.id
|
|
256
|
-
},
|
|
258
|
+
}, $e, {
|
|
257
259
|
className: `dropdown-with-input-tags-option dropdown-with-input-tags-custom-option ${_(C)}`,
|
|
258
260
|
onClick: () => {
|
|
259
|
-
|
|
261
|
+
o || (X(t), e());
|
|
260
262
|
},
|
|
261
|
-
onMouseEnter: () =>
|
|
262
|
-
}), 'Add "',
|
|
263
|
+
onMouseEnter: () => E(n)
|
|
264
|
+
}), 'Add "', a.trim(), '"');
|
|
263
265
|
}
|
|
264
266
|
if (m)
|
|
265
|
-
return
|
|
266
|
-
const s =
|
|
267
|
+
return Ce(t, n);
|
|
268
|
+
const s = l.some((C) => C.value === t.value), P = h === n, M = {
|
|
267
269
|
...N(n, s),
|
|
268
|
-
onMouseEnter: () =>
|
|
270
|
+
onMouseEnter: () => E(n),
|
|
269
271
|
className: `dropdown-with-input-tags-option ${_(P)}`
|
|
270
272
|
};
|
|
271
|
-
return
|
|
272
|
-
}) : /* @__PURE__ */
|
|
273
|
+
return j ? j(t, M, I) : Ne(t, n, I, o);
|
|
274
|
+
}) : /* @__PURE__ */ r.createElement("div", d({}, N(0, !1), {
|
|
273
275
|
className: `dropdown-with-input-tags-no-options ${_(h === 0)}`
|
|
274
|
-
}), /* @__PURE__ */
|
|
276
|
+
}), /* @__PURE__ */ r.createElement("div", {
|
|
275
277
|
className: "dropdown-with-input-tags-no-options-text"
|
|
276
|
-
}, L))), m && !S &&
|
|
277
|
-
renderPopoverSrcElement: () => /* @__PURE__ */
|
|
278
|
+
}, L))), m && !S && De()),
|
|
279
|
+
renderPopoverSrcElement: () => /* @__PURE__ */ r.createElement("div", {
|
|
278
280
|
className: "dropdown-with-input-tags-input-container"
|
|
279
|
-
}, /* @__PURE__ */
|
|
280
|
-
className: `input-with-tags-container ${
|
|
281
|
-
onClick:
|
|
281
|
+
}, /* @__PURE__ */ r.createElement("div", {
|
|
282
|
+
className: `input-with-tags-container ${o ? "disabled-input-with-tags-container" : ""} ${te ? "keyboard-focused" : ""}`,
|
|
283
|
+
onClick: ke,
|
|
282
284
|
onKeyDown: (e) => {
|
|
283
285
|
e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey && $.current?.focus();
|
|
284
286
|
}
|
|
285
|
-
},
|
|
287
|
+
}, l.map((e, t) => /* @__PURE__ */ r.createElement("span", {
|
|
286
288
|
key: t,
|
|
287
289
|
className: "tag-in-inputwithtags"
|
|
288
|
-
}, e[
|
|
290
|
+
}, e[G], !o && !K.includes(e.value) && /* @__PURE__ */ r.createElement(Te, {
|
|
289
291
|
name: "close",
|
|
290
292
|
className: "close-icon-in-inputwithtags",
|
|
291
|
-
ariaLabel: `Remove tag ${e[
|
|
292
|
-
onClick: () =>
|
|
293
|
+
ariaLabel: `Remove tag ${e[G]}`,
|
|
294
|
+
onClick: () => ve(t),
|
|
293
295
|
shouldStopPropagation: !0
|
|
294
|
-
}))), (
|
|
296
|
+
}))), (B || !l.length || m) && /* @__PURE__ */ r.createElement("input", d({
|
|
295
297
|
ref: $
|
|
296
|
-
},
|
|
298
|
+
}, ee, {
|
|
297
299
|
type: "text",
|
|
298
|
-
value:
|
|
299
|
-
onChange:
|
|
300
|
-
onKeyDown:
|
|
301
|
-
onFocus:
|
|
302
|
-
placeholder:
|
|
303
|
-
className: `input-with-tags-input${!
|
|
304
|
-
disabled:
|
|
305
|
-
},
|
|
306
|
-
ariaLabel:
|
|
300
|
+
value: a,
|
|
301
|
+
onChange: Ee,
|
|
302
|
+
onKeyDown: we,
|
|
303
|
+
onFocus: be,
|
|
304
|
+
placeholder: l.length === 0 ? b : "",
|
|
305
|
+
className: `input-with-tags-input${!B && l.length > 0 && !a ? " sr-only" : ""}`,
|
|
306
|
+
disabled: o
|
|
307
|
+
}, Le({
|
|
308
|
+
ariaLabel: re || (D ? void 0 : "Search and select options"),
|
|
307
309
|
ariaLabelledBy: oe,
|
|
308
|
-
internalLabelId: D ?
|
|
309
|
-
ariaDescribedBy:
|
|
310
|
+
internalLabelId: D ? J : void 0,
|
|
311
|
+
ariaDescribedBy: ae
|
|
310
312
|
}))))),
|
|
311
313
|
automationId: c,
|
|
312
314
|
popoverContentAutomationId: `${c}-content`
|
|
313
315
|
})));
|
|
314
316
|
});
|
|
315
317
|
export {
|
|
316
|
-
|
|
318
|
+
Qe as DropdownWithInputTags
|
|
317
319
|
};
|
|
318
320
|
//# sourceMappingURL=index39.js.map
|