se-design 1.0.87-dev.2 → 1.0.88-dev
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/Icon/index.d.ts +0 -5
- package/dist/components/InputWithTags/index.d.ts +1 -3
- package/dist/components/SidebarOverlay/index.d.ts +41 -0
- package/dist/components/Tooltip/index.d.ts +1 -5
- package/dist/index112.js +1 -1
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +2 -2
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +1 -1
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +2 -2
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +1 -1
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +1 -1
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +2 -2
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +1 -1
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +2 -2
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +1 -1
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +1 -1
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +1 -1
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +1 -1
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +2 -2
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +1 -1
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +2 -2
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +2 -2
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +1 -1
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +2 -2
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +2 -2
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +1 -1
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +1 -1
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +1 -1
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +2 -2
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +2 -2
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +2 -2
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +1 -1
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +1 -1
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +1 -1
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +1 -1
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +1 -1
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +1 -1
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +1 -1
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +1 -1
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +2 -2
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +2 -2
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +1 -1
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +1 -1
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +1 -1
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +1 -1
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +1 -1
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +1 -1
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +1 -1
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +2 -2
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +1 -1
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +2 -2
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +2 -2
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +2 -2
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +107 -111
- package/dist/index16.js.map +1 -1
- package/dist/index160.js +2 -2
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +1 -1
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +1 -1
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +1 -1
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +1 -1
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +1 -1
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +1 -1
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +1 -1
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +1 -1
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +1 -1
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +1 -1
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +1 -1
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +1 -1
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +1 -1
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +1 -1
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +1 -1
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +1 -1
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +1 -1
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +1 -1
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +1 -1
- package/dist/index179.js.map +1 -1
- package/dist/index180.js +1 -1
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +1 -1
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +1 -1
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +1 -1
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +1 -1
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +2 -2
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +2 -2
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +1 -1
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +1 -1
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +2 -2
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +2 -2
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +1 -1
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +1 -1
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +1 -1
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +1 -1
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +1 -1
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +1 -1
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +1 -1
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +1 -1
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +1 -1
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +2 -2
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +2 -2
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +2 -2
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +149 -2
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +9 -149
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +5 -8
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +4 -5
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +1 -1
- package/dist/index208.js +3 -3
- package/dist/index208.js.map +1 -1
- package/dist/{index225.js → index224.js} +1 -1
- package/dist/{index225.js.map → index224.js.map} +1 -1
- package/dist/index23.js +16 -16
- package/dist/index23.js.map +1 -1
- package/dist/{index233.js → index232.js} +1 -1
- package/dist/{index233.js.map → index232.js.map} +1 -1
- package/dist/{index236.js → index235.js} +1 -1
- package/dist/{index236.js.map → index235.js.map} +1 -1
- package/dist/index244.js +173 -0
- package/dist/index244.js.map +1 -0
- package/dist/index245.js +3 -169
- package/dist/index245.js.map +1 -1
- package/dist/index247.js +22 -0
- package/dist/index247.js.map +1 -0
- package/dist/index248.js +9 -18
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +9 -9
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +1 -2
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +4 -9
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +170 -5
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +11 -170
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +6 -11
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +5 -5
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +37 -5
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +2 -38
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +8 -2
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +326 -7
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +47 -324
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +2 -50
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +76 -2
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +82 -65
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +48 -89
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +7 -51
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +4 -7
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +51 -4
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +2 -52
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +2 -2
- package/dist/index28.js +149 -88
- package/dist/index28.js.map +1 -1
- package/dist/index29.js +1 -1
- package/dist/index30.js +1 -1
- package/dist/index32.js +10 -11
- package/dist/index33.js +1 -1
- package/dist/index35.js +1 -1
- package/dist/index36.js +1 -1
- package/dist/index37.js +36 -55
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +162 -163
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +51 -55
- package/dist/index39.js.map +1 -1
- package/dist/index4.js +61 -66
- package/dist/index4.js.map +1 -1
- package/dist/index40.js +1 -1
- package/dist/index42.js +7 -8
- package/dist/index43.js +1 -2
- package/dist/index45.js +38 -39
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +51 -52
- package/dist/index46.js.map +1 -1
- package/dist/index49.js +1 -1
- package/dist/index51.js +1 -1
- package/dist/index52.js +1 -1
- package/dist/index53.js +1 -1
- package/dist/index55.js +16 -17
- package/dist/index57.js +1 -1
- package/dist/index6.js +299 -305
- package/dist/index6.js.map +1 -1
- package/dist/index61.js +1 -1
- package/dist/index63.js +1 -1
- package/dist/index65.js +2 -3
- package/dist/index7.js +8 -9
- package/dist/index79.js +1 -1
- package/dist/index81.js +7 -9
- package/dist/index81.js.map +1 -1
- package/dist/index9.js +20 -20
- package/dist/index9.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/icons/cloud-check.svg +0 -4
- package/dist/index223.js +0 -8
- package/dist/index223.js.map +0 -1
- package/dist/index246.js +0 -7
- package/dist/index246.js.map +0 -1
- package/dist/index269.js +0 -5
- package/dist/index269.js.map +0 -1
package/dist/index37.js
CHANGED
|
@@ -1,77 +1,58 @@
|
|
|
1
|
-
import a, { useState as
|
|
1
|
+
import a, { useState as p, useRef as N } from "react";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { Icon as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return r;
|
|
14
|
-
}, c.apply(null, arguments);
|
|
15
|
-
}
|
|
16
|
-
function K({
|
|
17
|
-
value: r,
|
|
18
|
-
onChange: n,
|
|
19
|
-
placeholder: i,
|
|
20
|
-
className: s,
|
|
21
|
-
error: m,
|
|
22
|
-
errorMessage: w,
|
|
23
|
-
label: u,
|
|
24
|
-
ariaLabel: y,
|
|
25
|
-
ariaLabelledBy: b,
|
|
26
|
-
automationId: E = ""
|
|
3
|
+
import { Icon as k } from "./index6.js";
|
|
4
|
+
function D({
|
|
5
|
+
value: g,
|
|
6
|
+
onChange: s,
|
|
7
|
+
placeholder: f,
|
|
8
|
+
className: d,
|
|
9
|
+
error: o,
|
|
10
|
+
errorMessage: h,
|
|
11
|
+
label: c,
|
|
12
|
+
automationId: w = ""
|
|
27
13
|
}) {
|
|
28
|
-
const [
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const e = o.filter((A, I) => I !== t);
|
|
34
|
-
p(e), n?.(e);
|
|
35
|
-
}, k = (t) => {
|
|
36
|
-
if (t.key === "Enter" && l.trim()) {
|
|
14
|
+
const [n, l] = p([...g]), [i, r] = p(""), u = N(null), m = (t) => {
|
|
15
|
+
const e = n.filter((y, E) => E !== t);
|
|
16
|
+
l(e), s?.(e);
|
|
17
|
+
}, v = (t) => {
|
|
18
|
+
if (t.key === "Enter" && i.trim()) {
|
|
37
19
|
t.preventDefault();
|
|
38
|
-
const e = [...
|
|
39
|
-
|
|
40
|
-
} else t.key === "Backspace" &&
|
|
20
|
+
const e = [...n, i.trim()];
|
|
21
|
+
l(e), r(""), s?.(e);
|
|
22
|
+
} else t.key === "Backspace" && i === "" && n.length > 0 && m(n.length - 1);
|
|
41
23
|
};
|
|
42
24
|
return /* @__PURE__ */ a.createElement("div", {
|
|
43
25
|
className: "input-with-tags-main-container",
|
|
44
|
-
"data-automation-id":
|
|
45
|
-
},
|
|
46
|
-
id: f,
|
|
26
|
+
"data-automation-id": w
|
|
27
|
+
}, c && /* @__PURE__ */ a.createElement("div", {
|
|
47
28
|
className: "label-container"
|
|
48
|
-
},
|
|
49
|
-
className: `input-with-tags-container ${
|
|
50
|
-
onClick: () =>
|
|
51
|
-
},
|
|
29
|
+
}, c), /* @__PURE__ */ a.createElement("div", {
|
|
30
|
+
className: `input-with-tags-container ${o ? "input-with-tags-error" : ""} ${d}`,
|
|
31
|
+
onClick: () => u.current?.focus()
|
|
32
|
+
}, n.map((t, e) => /* @__PURE__ */ a.createElement("span", {
|
|
52
33
|
key: e,
|
|
53
34
|
className: "tag-in-inputwithtags",
|
|
54
35
|
"data-automation-id": `input-tag-${e}`
|
|
55
|
-
}, t, /* @__PURE__ */ a.createElement(
|
|
36
|
+
}, t, /* @__PURE__ */ a.createElement(k, {
|
|
56
37
|
name: "close",
|
|
57
38
|
className: "close-icon-in-inputwithtags",
|
|
58
39
|
ariaLabel: `Remove tag ${t}`,
|
|
59
|
-
onClick: () =>
|
|
40
|
+
onClick: () => m(e),
|
|
60
41
|
shouldStopPropagation: !0
|
|
61
|
-
}))), /* @__PURE__ */ a.createElement("input",
|
|
42
|
+
}))), /* @__PURE__ */ a.createElement("input", {
|
|
62
43
|
className: "input-with-tags-input",
|
|
63
|
-
ref:
|
|
44
|
+
ref: u,
|
|
64
45
|
type: "text",
|
|
65
|
-
value:
|
|
66
|
-
onChange: (t) =>
|
|
67
|
-
onKeyDown:
|
|
68
|
-
placeholder:
|
|
46
|
+
value: i,
|
|
47
|
+
onChange: (t) => r(t.target.value),
|
|
48
|
+
onKeyDown: v,
|
|
49
|
+
placeholder: f,
|
|
69
50
|
"data-automation-id": "input-with-tags-input-field"
|
|
70
|
-
}
|
|
51
|
+
})), o && /* @__PURE__ */ a.createElement("div", {
|
|
71
52
|
className: "error-message"
|
|
72
|
-
},
|
|
53
|
+
}, h));
|
|
73
54
|
}
|
|
74
55
|
export {
|
|
75
|
-
|
|
56
|
+
D as InputWithTags
|
|
76
57
|
};
|
|
77
58
|
//# sourceMappingURL=index37.js.map
|
package/dist/index37.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index37.js","sources":["../src/components/InputWithTags/index.tsx"],"sourcesContent":["import React, { useState, KeyboardEvent, useRef } from \"react\";\nimport './styles.scss';\nimport { Icon } from '../Icon';\
|
|
1
|
+
{"version":3,"file":"index37.js","sources":["../src/components/InputWithTags/index.tsx"],"sourcesContent":["import React, { useState, KeyboardEvent, useRef } from \"react\";\nimport './styles.scss';\nimport { Icon } from '../Icon';\n\nexport interface InputWithTagsProps {\n value: string[];\n onChange?: (tags: string[]) => void;\n placeholder?: string;\n className?: string;\n error?: boolean;\n errorMessage?: string;\n label?: string;\n automationId?: string;\n}\n\nexport function InputWithTags({ \n value, \n onChange, \n placeholder, \n className, \n error, \n errorMessage, \n label,\n automationId = ''\n}: InputWithTagsProps) {\n const [tags, setTags] = useState<string[]>([...value]);\n const [inputValue, setInputValue] = useState('');\n const inputRef = useRef<HTMLInputElement>(null);\n\n const removeTag = (indexToRemove: number) => {\n const newTags = tags.filter((_, i) => i !== indexToRemove);\n setTags(newTags);\n onChange?.(newTags);\n };\n\n const handleKeyDown = (e: KeyboardEvent<HTMLInputElement>) => {\n if (e.key === 'Enter' && inputValue.trim()) {\n e.preventDefault();\n const newTags = [...tags, inputValue.trim()];\n setTags(newTags);\n setInputValue(\"\");\n onChange?.(newTags);\n } else if (e.key === 'Backspace' && inputValue === \"\" && tags.length > 0) {\n removeTag(tags.length - 1);\n }\n };\n\n return (\n <div className=\"input-with-tags-main-container\" data-automation-id={automationId}>\n {label && <div className=\"label-container\">{label}</div>}\n <div \n className={`input-with-tags-container ${error ? 'input-with-tags-error' : ''} ${className}`} \n onClick={() => inputRef.current?.focus()}\n >\n {tags.map((tag, index) => (\n <span key={index} className=\"tag-in-inputwithtags\" data-automation-id={`input-tag-${index}`}>\n {tag} \n <Icon\n name=\"close\"\n className=\"close-icon-in-inputwithtags\"\n ariaLabel={`Remove tag ${tag}`}\n onClick={() => removeTag(index)}\n shouldStopPropagation\n />\n </span>\n ))}\n <input\n className=\"input-with-tags-input\"\n ref={inputRef}\n type=\"text\"\n value={inputValue}\n onChange={(e) => setInputValue(e.target.value)}\n onKeyDown={handleKeyDown}\n placeholder={placeholder}\n data-automation-id=\"input-with-tags-input-field\"\n />\n </div>\n {error && <div className=\"error-message\">{errorMessage}</div>}\n </div>\n );\n}"],"names":["React__default","useState","useRef","Icon","InputWithTags","value","onChange","placeholder","className","error","errorMessage","label","automationId","tags","setTags","inputValue","setInputValue","inputRef","removeTag","indexToRemove","newTags","filter","_","i","handleKeyDown","e","key","trim","preventDefault","length","React","createElement","onClick","current","focus","map","tag","index","name","ariaLabel","shouldStopPropagation","ref","type","target","onKeyDown"],"mappings":"AAeO,OAAAA,KAAA,YAAAC,GAAA,UAAAC,SAAA;AAAA,OAAA;AAAA,SAAA,QAAAC,SAAA;AAAA,SAASC,EAAc;AAAA,EAC1BC,OAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,aAAAA;AAAAA,EACAC,WAAAA;AAAAA,EACAC,OAAAA;AAAAA,EACAC,cAAAA;AAAAA,EACAC,OAAAA;AAAAA,EACAC,cAAAA,IAAe;AACC,GAAG;AACnB,QAAM,CAACC,GAAMC,CAAO,IAAIb,EAAmB,CAAC,GAAGI,CAAK,CAAC,GAC/C,CAACU,GAAYC,CAAa,IAAIf,EAAS,EAAE,GACzCgB,IAAWf,EAAyB,IAAI,GAExCgB,IAAYA,CAACC,MAA0B;AACzC,UAAMC,IAAUP,EAAKQ,OAAO,CAACC,GAAGC,MAAMA,MAAMJ,CAAa;AACzDL,IAAAA,EAAQM,CAAO,GACfd,IAAWc,CAAO;AAAA,EACtB,GAEMI,IAAgBA,CAACC,MAAuC;AAC1D,QAAIA,EAAEC,QAAQ,WAAWX,EAAWY,QAAQ;AACxCF,MAAAA,EAAEG,eAAAA;AACF,YAAMR,IAAU,CAAC,GAAGP,GAAME,EAAWY,MAAM;AAC3Cb,MAAAA,EAAQM,CAAO,GACfJ,EAAc,EAAE,GAChBV,IAAWc,CAAO;AAAA,IACtB,MAAA,CAAWK,EAAEC,QAAQ,eAAeX,MAAe,MAAMF,EAAKgB,SAAS,KACnEX,EAAUL,EAAKgB,SAAS,CAAC;AAAA,EAEjC;AAEA,SACIC,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKvB,WAAU;AAAA,IAAiC,sBAAoBI;AAAAA,EAAAA,GAC/DD,KAASmB,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKvB,WAAU;AAAA,EAAA,GAAmBG,CAAW,GACvDmB,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IACIvB,WAAW,6BAA6BC,IAAQ,0BAA0B,EAAE,IAAID,CAAS;AAAA,IACzFwB,SAASA,MAAMf,EAASgB,SAASC,MAAAA;AAAAA,EAAM,GAEtCrB,EAAKsB,IAAI,CAACC,GAAKC,MACZP,gBAAAA,EAAAC,cAAA,QAAA;AAAA,IAAML,KAAKW;AAAAA,IAAO7B,WAAU;AAAA,IAAuB,sBAAoB,aAAa6B,CAAK;AAAA,EAAA,GACpFD,GACDN,gBAAAA,EAAAC,cAAC5B,GAAI;AAAA,IACDmC,MAAK;AAAA,IACL9B,WAAU;AAAA,IACV+B,WAAW,cAAcH,CAAG;AAAA,IAC5BJ,SAASA,MAAMd,EAAUmB,CAAK;AAAA,IAC9BG,uBAAqB;AAAA,EAAA,CACxB,CACC,CACT,GACDV,gBAAAA,EAAAC,cAAA,SAAA;AAAA,IACIvB,WAAU;AAAA,IACViC,KAAKxB;AAAAA,IACLyB,MAAK;AAAA,IACLrC,OAAOU;AAAAA,IACPT,UAAWmB,CAAAA,MAAMT,EAAcS,EAAEkB,OAAOtC,KAAK;AAAA,IAC7CuC,WAAWpB;AAAAA,IACXjB,aAAAA;AAAAA,IACA,sBAAmB;AAAA,EAAA,CACtB,CACA,GACJE,KAASqB,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKvB,WAAU;AAAA,EAAA,GAAiBE,CAAkB,CAC3D;AAEb;"}
|
package/dist/index38.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import o, { forwardRef as
|
|
2
|
-
import { Popover as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import { Checkbox as
|
|
5
|
-
import { Button as
|
|
6
|
-
import { getA11yNameAttributes as
|
|
1
|
+
import o, { forwardRef as _e, useState as I, useRef as M, useCallback as U, useEffect as W, useImperativeHandle as Pe } from "react";
|
|
2
|
+
import { Popover as Ce } from "./index19.js";
|
|
3
|
+
import { Icon as De } from "./index6.js";
|
|
4
|
+
import { Checkbox as $e } from "./index23.js";
|
|
5
|
+
import { Button as Z } from "./index4.js";
|
|
6
|
+
import { getA11yNameAttributes as Te } from "./index81.js";
|
|
7
7
|
import "./index72.js";
|
|
8
|
-
import { useCombobox as
|
|
9
|
-
import { useStableId as
|
|
10
|
-
import { announce as
|
|
8
|
+
import { useCombobox as Oe } from "./index68.js";
|
|
9
|
+
import { useStableId as Ae } from "./index205.js";
|
|
10
|
+
import { announce as Ie } from "./index75.js";
|
|
11
11
|
/* empty css */
|
|
12
|
-
function
|
|
13
|
-
return
|
|
12
|
+
function f() {
|
|
13
|
+
return f = Object.assign ? Object.assign.bind() : function(w) {
|
|
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) && (w[k] = b[k]);
|
|
17
17
|
}
|
|
18
|
-
return
|
|
19
|
-
},
|
|
18
|
+
return w;
|
|
19
|
+
}, f.apply(null, arguments);
|
|
20
20
|
}
|
|
21
|
-
const
|
|
22
|
-
value:
|
|
21
|
+
const Be = /* @__PURE__ */ _e(({
|
|
22
|
+
value: w,
|
|
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
27
|
renderOption: x,
|
|
28
|
-
label:
|
|
29
|
-
ariaLabel:
|
|
30
|
-
ariaLabelledBy:
|
|
31
|
-
ariaDescribedBy:
|
|
32
|
-
automationId:
|
|
28
|
+
label: R,
|
|
29
|
+
ariaLabel: ee,
|
|
30
|
+
ariaLabelledBy: te,
|
|
31
|
+
ariaDescribedBy: ne,
|
|
32
|
+
automationId: p = "",
|
|
33
33
|
noOptionsMessage: L = "No options found",
|
|
34
34
|
allowCustomTags: j = !0,
|
|
35
|
-
disabled:
|
|
35
|
+
disabled: a = !1,
|
|
36
36
|
type: H = "select",
|
|
37
37
|
showInput: z = !0,
|
|
38
38
|
displayTagBy: B = "label",
|
|
39
|
-
isWithPortal:
|
|
40
|
-
},
|
|
39
|
+
isWithPortal: oe = !1
|
|
40
|
+
}, ae) => {
|
|
41
41
|
const G = (e) => e.map((t) => {
|
|
42
42
|
const n = g.find((s) => s.value === t);
|
|
43
43
|
return n ? {
|
|
@@ -47,157 +47,157 @@ const Ge = /* @__PURE__ */ Ce(({
|
|
|
47
47
|
label: t,
|
|
48
48
|
value: t
|
|
49
49
|
};
|
|
50
|
-
}), [
|
|
51
|
-
if (
|
|
52
|
-
const t = [...
|
|
50
|
+
}), [l, d] = I(() => G(w || [])), [r, y] = I(""), [K, le] = I(g), [c, u] = I(!1), re = M(null), D = M(null), $ = M(!1), S = H === "multi-select-without-cta", m = H === "multi-select" || S, se = Ae(p, "dropdown-input-tags-listbox"), T = U((e) => {
|
|
51
|
+
if (a) return;
|
|
52
|
+
const t = [...l];
|
|
53
53
|
t.some((n) => n.value === e.value) || (t.push({
|
|
54
54
|
label: e.label,
|
|
55
55
|
value: e.value
|
|
56
|
-
}),
|
|
57
|
-
}, [
|
|
56
|
+
}), d(t), i?.(t.map((n) => n.value))), y(""), u(!1);
|
|
57
|
+
}, [a, l, i]), V = U((e, t) => {
|
|
58
58
|
let n = [];
|
|
59
|
-
e ? n = [...
|
|
59
|
+
e ? n = [...l, {
|
|
60
60
|
label: t.label,
|
|
61
61
|
value: t.value
|
|
62
|
-
}] : n =
|
|
63
|
-
}, [
|
|
64
|
-
id:
|
|
62
|
+
}] : n = l.filter((s) => s.value !== t.value), d(n), y(""), S && ($.current = !0, i?.(n.map((s) => s.value)));
|
|
63
|
+
}, [l, S, i]), O = "__add_custom_tag__", q = "__no_results__", ie = {
|
|
64
|
+
id: q,
|
|
65
65
|
label: L,
|
|
66
|
-
value:
|
|
66
|
+
value: q,
|
|
67
67
|
__noResults: !0
|
|
68
|
-
},
|
|
69
|
-
if (!
|
|
68
|
+
}, ce = (e) => !!e?.__noResults, J = U((e) => {
|
|
69
|
+
if (!a) {
|
|
70
70
|
if (e.value === O) {
|
|
71
71
|
const t = r.trim();
|
|
72
72
|
if (!t) return;
|
|
73
|
-
const n = [...
|
|
73
|
+
const n = [...l];
|
|
74
74
|
n.some((s) => s.value === t) || (n.push({
|
|
75
75
|
label: t,
|
|
76
76
|
value: t
|
|
77
|
-
}),
|
|
77
|
+
}), d(n), i?.(n.map((s) => s.value))), y(""), u(!1);
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
80
|
if (m) {
|
|
81
|
-
const t =
|
|
81
|
+
const t = l.some((n) => n.value === e.value);
|
|
82
82
|
V(!t, e);
|
|
83
83
|
} else
|
|
84
|
-
|
|
84
|
+
T(e);
|
|
85
85
|
}
|
|
86
|
-
}, [
|
|
86
|
+
}, [a, m, l, r, i, V, T]), v = K.length > 0 ? K : j && r.trim() ? [{
|
|
87
87
|
id: O,
|
|
88
88
|
label: `Add "${r.trim()}"`,
|
|
89
89
|
value: O
|
|
90
|
-
}] : [],
|
|
91
|
-
containerProps:
|
|
92
|
-
inputProps:
|
|
93
|
-
listboxProps:
|
|
90
|
+
}] : [], Q = v.length === 0 && c ? [ie] : v, {
|
|
91
|
+
containerProps: ue,
|
|
92
|
+
inputProps: X,
|
|
93
|
+
listboxProps: pe,
|
|
94
94
|
getOptionProps: N,
|
|
95
95
|
highlightedIndex: h,
|
|
96
|
-
setHighlightedIndex:
|
|
97
|
-
isKeyboardFocused:
|
|
98
|
-
} =
|
|
99
|
-
items:
|
|
100
|
-
isOpen:
|
|
101
|
-
onOpenChange:
|
|
102
|
-
onSelect:
|
|
103
|
-
listboxId:
|
|
104
|
-
hasItems:
|
|
96
|
+
setHighlightedIndex: E,
|
|
97
|
+
isKeyboardFocused: Y
|
|
98
|
+
} = Oe({
|
|
99
|
+
items: Q,
|
|
100
|
+
isOpen: c,
|
|
101
|
+
onOpenChange: u,
|
|
102
|
+
onSelect: J,
|
|
103
|
+
listboxId: se,
|
|
104
|
+
hasItems: Q.length > 0,
|
|
105
105
|
keepHighlightOnSelect: m,
|
|
106
106
|
closeOnTab: H !== "multi-select",
|
|
107
|
-
isItemDisabled:
|
|
108
|
-
}), _ = (e) => e ? `highlighted${
|
|
107
|
+
isItemDisabled: ce
|
|
108
|
+
}), _ = (e) => e ? `highlighted${Y ? " keyboard-highlight" : ""}` : "";
|
|
109
109
|
W(() => {
|
|
110
|
-
if (
|
|
111
|
-
|
|
110
|
+
if ($.current) {
|
|
111
|
+
$.current = !1;
|
|
112
112
|
return;
|
|
113
113
|
}
|
|
114
|
-
|
|
115
|
-
}, [
|
|
114
|
+
d(G(w || []));
|
|
115
|
+
}, [w, g, c]), W(() => {
|
|
116
116
|
const e = g.filter((t) => t.label.toLowerCase().includes(r.toLowerCase()) || t.value.toLowerCase().includes(r.toLowerCase()));
|
|
117
|
-
|
|
117
|
+
le(e);
|
|
118
118
|
}, [r, g]), W(() => {
|
|
119
|
-
|
|
119
|
+
c && v.length === 0 && r.trim() && h === -1 && Ie(L, {
|
|
120
120
|
assertiveness: "polite",
|
|
121
121
|
batchId: "dropdown-input-tags-empty-state",
|
|
122
122
|
delay: 300
|
|
123
123
|
});
|
|
124
|
-
}, [
|
|
125
|
-
const
|
|
126
|
-
if (
|
|
127
|
-
const t =
|
|
128
|
-
|
|
129
|
-
},
|
|
130
|
-
if (!
|
|
131
|
-
if (e.key === "Backspace" && r === "" &&
|
|
124
|
+
}, [v.length, c, r, h]);
|
|
125
|
+
const me = (e) => {
|
|
126
|
+
if (a) return;
|
|
127
|
+
const t = l.filter((n, s) => s !== e);
|
|
128
|
+
d(t), (!m || S || m && !c) && i?.(t.map((n) => n.value));
|
|
129
|
+
}, fe = (e) => {
|
|
130
|
+
if (!a) {
|
|
131
|
+
if (e.key === "Backspace" && r === "" && l.length > 0) {
|
|
132
132
|
e.preventDefault();
|
|
133
|
-
const t =
|
|
134
|
-
|
|
133
|
+
const t = l.slice(0, -1);
|
|
134
|
+
d(t), i?.(t.map((n) => n.value));
|
|
135
135
|
return;
|
|
136
136
|
}
|
|
137
137
|
if (e.key === "Enter" && r.trim() && K.length === 0 && j) {
|
|
138
138
|
e.preventDefault();
|
|
139
|
-
const t = [...
|
|
139
|
+
const t = [...l];
|
|
140
140
|
t.some((n) => n.value === r.trim()) || (t.push({
|
|
141
141
|
label: r.trim(),
|
|
142
142
|
value: r.trim()
|
|
143
|
-
}),
|
|
143
|
+
}), d(t), i?.(t.map((n) => n.value))), y(""), E(-1), u(!1);
|
|
144
144
|
return;
|
|
145
145
|
}
|
|
146
|
-
|
|
146
|
+
X.onKeyDown(e);
|
|
147
147
|
}
|
|
148
|
-
},
|
|
149
|
-
if (
|
|
148
|
+
}, de = (e) => {
|
|
149
|
+
if (a) return;
|
|
150
150
|
const t = e.target.value;
|
|
151
|
-
y(t),
|
|
152
|
-
},
|
|
153
|
-
|
|
151
|
+
y(t), E(-1), t.trim() && !c && u(!0);
|
|
152
|
+
}, ge = () => {
|
|
153
|
+
a || (r.trim() || g.length > 0) && u(!0);
|
|
154
|
+
}, he = (e) => {
|
|
155
|
+
a || (e.stopPropagation(), D.current?.focus(), !c && (r.trim() || g.length > 0) && u(!0));
|
|
154
156
|
}, we = (e) => {
|
|
155
|
-
|
|
156
|
-
}, be = (e) => {
|
|
157
|
-
if (l) {
|
|
157
|
+
if (a) {
|
|
158
158
|
e.preventDefault(), e.stopPropagation();
|
|
159
159
|
return;
|
|
160
160
|
}
|
|
161
161
|
e.target.closest(".input-with-tags-container") && e.stopPropagation();
|
|
162
|
-
},
|
|
163
|
-
|
|
162
|
+
}, ve = () => {
|
|
163
|
+
a || u(!c);
|
|
164
164
|
};
|
|
165
|
-
|
|
166
|
-
toggleDropdown:
|
|
165
|
+
Pe(ae, () => ({
|
|
166
|
+
toggleDropdown: ve
|
|
167
167
|
}), []);
|
|
168
|
-
const
|
|
169
|
-
const P =
|
|
170
|
-
return /* @__PURE__ */ o.createElement("div",
|
|
168
|
+
const Ee = (e, t, n, s) => {
|
|
169
|
+
const P = l.some((C) => C.value === e.value), A = h === t, F = N(t, P);
|
|
170
|
+
return /* @__PURE__ */ o.createElement("div", f({
|
|
171
171
|
key: e.id
|
|
172
172
|
}, F, {
|
|
173
173
|
className: `dropdown-with-input-tags-option ${_(A)}`,
|
|
174
174
|
onClick: () => !s && n(e),
|
|
175
|
-
onMouseEnter: () =>
|
|
176
|
-
"data-automation-id": `${
|
|
175
|
+
onMouseEnter: () => E(t),
|
|
176
|
+
"data-automation-id": `${p}-option-${e.id}`
|
|
177
177
|
}), /* @__PURE__ */ o.createElement("span", {
|
|
178
178
|
className: "option-label"
|
|
179
179
|
}, e.label), e.value !== e.label && /* @__PURE__ */ o.createElement("span", {
|
|
180
180
|
className: "option-value"
|
|
181
181
|
}, e.value));
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
const e =
|
|
185
|
-
i?.(e),
|
|
186
|
-
},
|
|
187
|
-
|
|
188
|
-
},
|
|
189
|
-
const n =
|
|
190
|
-
return /* @__PURE__ */ o.createElement("div",
|
|
182
|
+
}, be = () => {
|
|
183
|
+
$.current = !0;
|
|
184
|
+
const e = l.map((t) => t.value);
|
|
185
|
+
i?.(e), u(!1);
|
|
186
|
+
}, ke = () => {
|
|
187
|
+
d([]);
|
|
188
|
+
}, ye = (e, t) => {
|
|
189
|
+
const n = l.some((A) => A.value === e.value), s = h === t, P = N(t, n);
|
|
190
|
+
return /* @__PURE__ */ o.createElement("div", f({
|
|
191
191
|
key: e.id
|
|
192
192
|
}, P, {
|
|
193
193
|
className: `dropdown-with-input-tags-option dropdown-with-input-tags-multi-select-option ${_(s)}`,
|
|
194
194
|
"aria-checked": n,
|
|
195
195
|
onClick: () => {
|
|
196
|
-
|
|
196
|
+
a || (V(!n, e), D.current?.focus());
|
|
197
197
|
},
|
|
198
|
-
onMouseEnter: () =>
|
|
199
|
-
"data-automation-id": `${
|
|
200
|
-
}), /* @__PURE__ */ o.createElement(
|
|
198
|
+
onMouseEnter: () => E(t),
|
|
199
|
+
"data-automation-id": `${p}-option-${e.id}`
|
|
200
|
+
}), /* @__PURE__ */ o.createElement($e, {
|
|
201
201
|
automationId: "checkbox",
|
|
202
202
|
className: "checkbox",
|
|
203
203
|
checked: n,
|
|
@@ -206,113 +206,112 @@ const Ge = /* @__PURE__ */ Ce(({
|
|
|
206
206
|
label: e.label,
|
|
207
207
|
tabIndex: -1
|
|
208
208
|
}));
|
|
209
|
-
},
|
|
209
|
+
}, Se = () => /* @__PURE__ */ o.createElement("div", {
|
|
210
210
|
className: "dropdown-with-input-tags-ctas-container",
|
|
211
211
|
onKeyDown: (e) => {
|
|
212
212
|
(e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "Home" || e.key === "End") && e.stopPropagation();
|
|
213
213
|
}
|
|
214
|
-
}, /* @__PURE__ */ o.createElement(
|
|
214
|
+
}, /* @__PURE__ */ o.createElement(Z, {
|
|
215
215
|
label: "Clear",
|
|
216
216
|
type: "link",
|
|
217
217
|
size: "sm",
|
|
218
|
-
onClick:
|
|
219
|
-
automationId: `${
|
|
220
|
-
}), /* @__PURE__ */ o.createElement(
|
|
218
|
+
onClick: ke,
|
|
219
|
+
automationId: `${p}-clear-button`
|
|
220
|
+
}), /* @__PURE__ */ o.createElement(Z, {
|
|
221
221
|
label: "Apply",
|
|
222
222
|
type: "primary",
|
|
223
223
|
size: "sm",
|
|
224
|
-
onClick:
|
|
225
|
-
automationId: `${
|
|
224
|
+
onClick: be,
|
|
225
|
+
automationId: `${p}-apply-button`
|
|
226
226
|
}));
|
|
227
|
-
return /* @__PURE__ */ o.createElement("div",
|
|
228
|
-
className: `dropdown-with-input-tags-wrapper ${k} ${
|
|
229
|
-
"data-automation-id":
|
|
230
|
-
},
|
|
231
|
-
id:
|
|
227
|
+
return /* @__PURE__ */ o.createElement("div", f({
|
|
228
|
+
className: `dropdown-with-input-tags-wrapper ${k} ${a ? "disabled-wrapper" : ""}`,
|
|
229
|
+
"data-automation-id": p
|
|
230
|
+
}, ue), R && /* @__PURE__ */ o.createElement("label", {
|
|
231
|
+
id: `${p}-label`,
|
|
232
232
|
className: "dropdown-with-input-tags-label"
|
|
233
|
-
},
|
|
234
|
-
onClick:
|
|
235
|
-
}, /* @__PURE__ */ o.createElement(
|
|
236
|
-
ref:
|
|
233
|
+
}, R), /* @__PURE__ */ o.createElement("div", {
|
|
234
|
+
onClick: we
|
|
235
|
+
}, /* @__PURE__ */ o.createElement(Ce, {
|
|
236
|
+
ref: re,
|
|
237
237
|
className: "dropdown-with-input-tags-popover",
|
|
238
238
|
contentWidth: "full",
|
|
239
239
|
position: "bottom-left",
|
|
240
|
-
isPopoverOpen: !
|
|
241
|
-
onPopoverToggle:
|
|
242
|
-
} :
|
|
240
|
+
isPopoverOpen: !a && c,
|
|
241
|
+
onPopoverToggle: a ? () => {
|
|
242
|
+
} : u,
|
|
243
243
|
disableClickToggle: !0,
|
|
244
|
-
isWithPortal:
|
|
244
|
+
isWithPortal: oe,
|
|
245
245
|
renderPopoverContents: ({
|
|
246
246
|
closePopoverCb: e
|
|
247
|
-
}) => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("div",
|
|
247
|
+
}) => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("div", f({}, pe, {
|
|
248
248
|
className: "dropdown-with-input-tags-content"
|
|
249
249
|
}, m && {
|
|
250
250
|
"aria-multiselectable": "true"
|
|
251
|
-
}),
|
|
251
|
+
}), v.length > 0 ? v.map((t, n) => {
|
|
252
252
|
if (t.value === O) {
|
|
253
|
-
const C = h === n,
|
|
254
|
-
return /* @__PURE__ */ o.createElement("div",
|
|
253
|
+
const C = h === n, Ne = N(n, !1);
|
|
254
|
+
return /* @__PURE__ */ o.createElement("div", f({
|
|
255
255
|
key: t.id
|
|
256
|
-
},
|
|
256
|
+
}, Ne, {
|
|
257
257
|
className: `dropdown-with-input-tags-option dropdown-with-input-tags-custom-option ${_(C)}`,
|
|
258
258
|
onClick: () => {
|
|
259
|
-
|
|
259
|
+
a || (J(t), e());
|
|
260
260
|
},
|
|
261
|
-
onMouseEnter: () =>
|
|
261
|
+
onMouseEnter: () => E(n)
|
|
262
262
|
}), 'Add "', r.trim(), '"');
|
|
263
263
|
}
|
|
264
264
|
if (m)
|
|
265
|
-
return
|
|
266
|
-
const s =
|
|
265
|
+
return ye(t, n);
|
|
266
|
+
const s = l.some((C) => C.value === t.value), P = h === n, F = {
|
|
267
267
|
...N(n, s),
|
|
268
|
-
onMouseEnter: () =>
|
|
268
|
+
onMouseEnter: () => E(n),
|
|
269
269
|
className: `dropdown-with-input-tags-option ${_(P)}`
|
|
270
270
|
};
|
|
271
|
-
return x ? x(t, F,
|
|
272
|
-
}) : /* @__PURE__ */ o.createElement("div",
|
|
271
|
+
return x ? x(t, F, T) : Ee(t, n, T, a);
|
|
272
|
+
}) : /* @__PURE__ */ o.createElement("div", f({}, N(0, !1), {
|
|
273
273
|
className: `dropdown-with-input-tags-no-options ${_(h === 0)}`
|
|
274
274
|
}), /* @__PURE__ */ o.createElement("div", {
|
|
275
275
|
className: "dropdown-with-input-tags-no-options-text"
|
|
276
|
-
}, L))), m && !S &&
|
|
276
|
+
}, L))), m && !S && Se()),
|
|
277
277
|
renderPopoverSrcElement: () => /* @__PURE__ */ o.createElement("div", {
|
|
278
278
|
className: "dropdown-with-input-tags-input-container"
|
|
279
279
|
}, /* @__PURE__ */ o.createElement("div", {
|
|
280
|
-
className: `input-with-tags-container ${
|
|
281
|
-
onClick:
|
|
280
|
+
className: `input-with-tags-container ${a ? "disabled-input-with-tags-container" : ""} ${Y ? "keyboard-focused" : ""}`,
|
|
281
|
+
onClick: he,
|
|
282
282
|
onKeyDown: (e) => {
|
|
283
|
-
e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey &&
|
|
283
|
+
e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey && D.current?.focus();
|
|
284
284
|
}
|
|
285
|
-
},
|
|
285
|
+
}, l.map((e, t) => /* @__PURE__ */ o.createElement("span", {
|
|
286
286
|
key: t,
|
|
287
287
|
className: "tag-in-inputwithtags"
|
|
288
|
-
}, e[B], !
|
|
288
|
+
}, e[B], !a && /* @__PURE__ */ o.createElement(De, {
|
|
289
289
|
name: "close",
|
|
290
290
|
className: "close-icon-in-inputwithtags",
|
|
291
291
|
ariaLabel: `Remove tag ${e[B]}`,
|
|
292
|
-
onClick: () =>
|
|
292
|
+
onClick: () => me(t),
|
|
293
293
|
shouldStopPropagation: !0
|
|
294
|
-
}))), (z || !
|
|
295
|
-
ref:
|
|
296
|
-
},
|
|
294
|
+
}))), (z || !l.length || m) && /* @__PURE__ */ o.createElement("input", f({
|
|
295
|
+
ref: D
|
|
296
|
+
}, X, {
|
|
297
297
|
type: "text",
|
|
298
298
|
value: r,
|
|
299
|
-
onChange:
|
|
300
|
-
onKeyDown:
|
|
301
|
-
onFocus:
|
|
302
|
-
placeholder:
|
|
303
|
-
className: `input-with-tags-input${!z &&
|
|
304
|
-
disabled:
|
|
305
|
-
},
|
|
306
|
-
ariaLabel:
|
|
307
|
-
ariaLabelledBy:
|
|
308
|
-
|
|
309
|
-
ariaDescribedBy: le
|
|
299
|
+
onChange: de,
|
|
300
|
+
onKeyDown: fe,
|
|
301
|
+
onFocus: ge,
|
|
302
|
+
placeholder: l.length === 0 ? b : "",
|
|
303
|
+
className: `input-with-tags-input${!z && l.length > 0 && !r ? " sr-only" : ""}`,
|
|
304
|
+
disabled: a
|
|
305
|
+
}, Te({
|
|
306
|
+
ariaLabel: ee || R || "Search and select options",
|
|
307
|
+
ariaLabelledBy: te,
|
|
308
|
+
ariaDescribedBy: ne
|
|
310
309
|
}))))),
|
|
311
|
-
automationId:
|
|
312
|
-
popoverContentAutomationId: `${
|
|
310
|
+
automationId: p,
|
|
311
|
+
popoverContentAutomationId: `${p}-content`
|
|
313
312
|
})));
|
|
314
313
|
});
|
|
315
314
|
export {
|
|
316
|
-
|
|
315
|
+
Be as DropdownWithInputTags
|
|
317
316
|
};
|
|
318
317
|
//# sourceMappingURL=index38.js.map
|