@kadoui/react 1.10.13 → 1.10.15
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/components/AccessNavigation/AccessNavigation.d.ts.map +1 -1
- package/dist/components/AccessNavigation/AccessNavigation.js +2 -0
- package/dist/components/Popover/Popover.d.ts +2 -0
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/Popover/Popover.js +3 -1
- package/dist/components/Popover/PopoverAccessNavigation.d.ts +3 -0
- package/dist/components/Popover/PopoverAccessNavigation.d.ts.map +1 -0
- package/dist/components/Popover/PopoverAccessNavigation.js +5 -0
- package/dist/components/Popover/PopoverBody.d.ts.map +1 -1
- package/dist/components/Popover/PopoverBody.js +2 -2
- package/dist/components/Popover/PopoverContext.d.ts.map +1 -1
- package/dist/components/Popover/PopoverRoot.d.ts +1 -2
- package/dist/components/Popover/PopoverRoot.d.ts.map +1 -1
- package/dist/components/Popover/PopoverRoot.js +2 -30
- package/dist/components/Popover/PopoverToggle.js +2 -2
- package/dist/components/SelectBox/SelectBoxOptions.d.ts +1 -1
- package/dist/components/SelectBox/SelectBoxOptions.d.ts.map +1 -1
- package/dist/components/SelectBox/SelectBoxOptions.js +26 -24
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessNavigation.d.ts","sourceRoot":"","sources":["../../../src/components/AccessNavigation/AccessNavigation.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAiB,SAAS,EAAqB,MAAM,OAAO,CAAC;AAIpF,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACpE,GAAG,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACvC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC;CACvB,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,EAC/B,GAAG,EACH,YAAY,EACZ,SAAe,EACf,GAAG,EACH,SAAS,EACT,GAAG,CAAC,EACL,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"AccessNavigation.d.ts","sourceRoot":"","sources":["../../../src/components/AccessNavigation/AccessNavigation.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAiB,SAAS,EAAqB,MAAM,OAAO,CAAC;AAIpF,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACpE,GAAG,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACvC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC;CACvB,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,EAC/B,GAAG,EACH,YAAY,EACZ,SAAe,EACf,GAAG,EACH,SAAS,EACT,GAAG,CAAC,EACL,EAAE,sBAAsB,2CAsExB"}
|
|
@@ -28,6 +28,7 @@ export function AccessNavigation({ ref, focusOnMount, direction = "y", dir, onKe
|
|
|
28
28
|
? "ArrowRight"
|
|
29
29
|
: "ArrowLeft")) {
|
|
30
30
|
ev.preventDefault();
|
|
31
|
+
ev.stopPropagation();
|
|
31
32
|
const nextIndex = currentIndex === -1 || currentIndex === focusableChildren.length - 1
|
|
32
33
|
? 0
|
|
33
34
|
: currentIndex + 1;
|
|
@@ -36,6 +37,7 @@ export function AccessNavigation({ ref, focusOnMount, direction = "y", dir, onKe
|
|
|
36
37
|
if (ev.key ===
|
|
37
38
|
(direction === "y" ? "ArrowUp" : currentDir === "ltr" ? "ArrowLeft" : "ArrowRight")) {
|
|
38
39
|
ev.preventDefault();
|
|
40
|
+
ev.stopPropagation();
|
|
39
41
|
const prevIndex = currentIndex <= 0 ? focusableChildren.length - 1 : currentIndex - 1;
|
|
40
42
|
focusableChildren[prevIndex]?.focus();
|
|
41
43
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { PopoverBody } from "./PopoverBody";
|
|
2
2
|
import { PopoverRoot } from "./PopoverRoot";
|
|
3
3
|
import { PopoverToggle } from "./PopoverToggle";
|
|
4
|
+
import { PopoverAccessNavigation } from "./PopoverAccessNavigation";
|
|
4
5
|
export declare const Popover: typeof PopoverRoot & {
|
|
6
|
+
AccessNavigation: typeof PopoverAccessNavigation;
|
|
5
7
|
Toggle: typeof PopoverToggle;
|
|
6
8
|
Body: typeof PopoverBody;
|
|
7
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,eAAO,MAAM,OAAO;;;;CAIlB,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { PopoverBody } from "./PopoverBody";
|
|
2
2
|
import { PopoverRoot } from "./PopoverRoot";
|
|
3
3
|
import { PopoverToggle } from "./PopoverToggle";
|
|
4
|
+
import { PopoverAccessNavigation } from "./PopoverAccessNavigation";
|
|
4
5
|
export const Popover = Object.assign(PopoverRoot, {
|
|
6
|
+
AccessNavigation: PopoverAccessNavigation,
|
|
5
7
|
Toggle: PopoverToggle,
|
|
6
|
-
Body: PopoverBody
|
|
8
|
+
Body: PopoverBody,
|
|
7
9
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopoverAccessNavigation.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/PopoverAccessNavigation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,EACvB,MAAM,sCAAsC,CAAC;AAE9C,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,sBAAsB,2CAEhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverBody.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/PopoverBody.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAO,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAC/D,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,
|
|
1
|
+
{"version":3,"file":"PopoverBody.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/PopoverBody.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAO,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAC/D,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,EAAE,iBAAiB,kDAiB7E"}
|
|
@@ -4,10 +4,10 @@ import { use } from "react";
|
|
|
4
4
|
import { PopoverContext } from "./PopoverContext";
|
|
5
5
|
export function PopoverBody({ preventClose, onClick, ...p }) {
|
|
6
6
|
const { bodyRef, isOpen } = use(PopoverContext);
|
|
7
|
-
return
|
|
7
|
+
return isOpen ? (_jsx("div", { ref: bodyRef, "data-state": isOpen, onClick: (ev) => {
|
|
8
8
|
if (preventClose) {
|
|
9
9
|
ev.stopPropagation();
|
|
10
10
|
}
|
|
11
11
|
onClick?.(ev);
|
|
12
|
-
}, ...p })) : null
|
|
12
|
+
}, ...p })) : null;
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverContext.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/PopoverContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE3E,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3C,SAAS,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IAC/C,OAAO,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC1C,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;CAClC,
|
|
1
|
+
{"version":3,"file":"PopoverContext.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/PopoverContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE3E,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3C,SAAS,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IAC/C,OAAO,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC1C,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,cAAc,0CAAwD,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { HTMLAttributes } from "react";
|
|
|
2
2
|
import { PopoverContextT } from "./PopoverContext";
|
|
3
3
|
export type PopoverRootPropsT = HTMLAttributes<HTMLDivElement> & {
|
|
4
4
|
mode?: PopoverContextT["mode"];
|
|
5
|
-
accessHorizontalArrows?: "ArrowRight" | "ArrowLeft";
|
|
6
5
|
};
|
|
7
|
-
export declare function PopoverRoot({ mode,
|
|
6
|
+
export declare function PopoverRoot({ mode, onMouseEnter, onMouseLeave, ...p }: PopoverRootPropsT): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
//# sourceMappingURL=PopoverRoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopoverRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/PopoverRoot.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"PopoverRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/PopoverRoot.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAA+B,MAAM,OAAO,CAAC;AAGpE,OAAO,EAAkB,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnE,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAC/D,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;CAChC,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAC1B,IAAc,EACd,YAAY,EACZ,YAAY,EACZ,GAAG,CAAC,EACL,EAAE,iBAAiB,2CAiEnB"}
|
|
@@ -4,7 +4,7 @@ import { usePathname } from "next/navigation";
|
|
|
4
4
|
import { useEffect, useRef, useState } from "react";
|
|
5
5
|
import { selectAccessibleChildren } from "../../utils";
|
|
6
6
|
import { PopoverContext } from "./PopoverContext";
|
|
7
|
-
export function PopoverRoot({ mode = "click",
|
|
7
|
+
export function PopoverRoot({ mode = "click", onMouseEnter, onMouseLeave, ...p }) {
|
|
8
8
|
const pathname = usePathname();
|
|
9
9
|
const [isOpen, setOpen] = useState(false);
|
|
10
10
|
const toggleRef = useRef(null);
|
|
@@ -35,35 +35,7 @@ export function PopoverRoot({ mode = "click", accessHorizontalArrows, onKeyDown,
|
|
|
35
35
|
}
|
|
36
36
|
firstChild.focus();
|
|
37
37
|
};
|
|
38
|
-
|
|
39
|
-
if (!accessHorizontalArrows) {
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
if (ev.key === "ArrowRight") {
|
|
43
|
-
if (accessHorizontalArrows === "ArrowRight") {
|
|
44
|
-
setOpen(true);
|
|
45
|
-
selectFirstMenuChild();
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
setOpen(false);
|
|
49
|
-
toggleRef.current?.focus();
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
if (ev.key === "ArrowLeft") {
|
|
53
|
-
if (accessHorizontalArrows === "ArrowLeft") {
|
|
54
|
-
setOpen(true);
|
|
55
|
-
selectFirstMenuChild();
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
setOpen(false);
|
|
59
|
-
toggleRef.current?.focus();
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
return (_jsx(PopoverContext, { value: { isOpen, setOpen, toggleRef, bodyRef, mode }, children: _jsx("div", { "data-state": isOpen ? "active" : "inactive", onKeyDown: (ev) => {
|
|
64
|
-
onKeyDown?.(ev);
|
|
65
|
-
handleKeyDown(ev);
|
|
66
|
-
}, onMouseEnter: (ev) => {
|
|
38
|
+
return (_jsx(PopoverContext, { value: { isOpen, setOpen, toggleRef, bodyRef, mode }, children: _jsx("div", { "data-state": isOpen, onMouseEnter: (ev) => {
|
|
67
39
|
onMouseEnter?.(ev);
|
|
68
40
|
if (["hover", "both"].includes(mode)) {
|
|
69
41
|
ev.stopPropagation();
|
|
@@ -4,11 +4,11 @@ import { use } from "react";
|
|
|
4
4
|
import { PopoverContext } from "./PopoverContext";
|
|
5
5
|
export function PopoverToggle({ onClick, ...props }) {
|
|
6
6
|
const { mode, toggleRef, isOpen, setOpen } = use(PopoverContext);
|
|
7
|
-
return (_jsx("button", { ref: toggleRef, "data-state": isOpen
|
|
7
|
+
return (_jsx("button", { ref: toggleRef, "data-state": isOpen, onClick: (ev) => {
|
|
8
8
|
onClick?.(ev);
|
|
9
9
|
ev.stopPropagation();
|
|
10
10
|
if (["click", "both"].includes(mode)) {
|
|
11
|
-
setOpen(prev => !prev);
|
|
11
|
+
setOpen((prev) => !prev);
|
|
12
12
|
}
|
|
13
13
|
}, ...props }));
|
|
14
14
|
}
|
|
@@ -14,6 +14,6 @@ type MergedSelectMode = WithMultiSelect | WithSingleSelect;
|
|
|
14
14
|
type SelectBoxOptionsPropsT = ButtonHTMLAttributes<HTMLButtonElement> & MergedSelectMode & {
|
|
15
15
|
options: SelectBoxOptionT[];
|
|
16
16
|
};
|
|
17
|
-
export default function SelectBoxOptions({ options, multiSelect, optionValue, setOptionValue, ...p }: SelectBoxOptionsPropsT): import("react/jsx-runtime").JSX.Element
|
|
17
|
+
export default function SelectBoxOptions({ options, multiSelect, optionValue, setOptionValue, ...p }: SelectBoxOptionsPropsT): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export {};
|
|
19
19
|
//# sourceMappingURL=SelectBoxOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectBoxOptions.d.ts","sourceRoot":"","sources":["../../../src/components/SelectBox/SelectBoxOptions.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,cAAc,EAAO,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAG3C,KAAK,eAAe,GAAG;IACrB,WAAW,EAAE,IAAI,CAAC;IAClB,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAChC,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;CAC9D,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,WAAW,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACrC,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC,CAAC;CACnE,CAAC;AAEF,KAAK,gBAAgB,GAAG,eAAe,GAAG,gBAAgB,CAAC;AAE3D,KAAK,sBAAsB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GACnE,gBAAgB,GAAG;IACjB,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC7B,CAAC;AAEJ,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,OAAO,EACP,WAAW,EACX,WAAW,EACX,cAAc,EACd,GAAG,CAAC,EACL,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"SelectBoxOptions.d.ts","sourceRoot":"","sources":["../../../src/components/SelectBox/SelectBoxOptions.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,cAAc,EAAO,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAG3C,KAAK,eAAe,GAAG;IACrB,WAAW,EAAE,IAAI,CAAC;IAClB,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAChC,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;CAC9D,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,WAAW,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACrC,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC,CAAC;CACnE,CAAC;AAEF,KAAK,gBAAgB,GAAG,eAAe,GAAG,gBAAgB,CAAC;AAE3D,KAAK,sBAAsB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GACnE,gBAAgB,GAAG;IACjB,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC7B,CAAC;AAEJ,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,OAAO,EACP,WAAW,EACX,WAAW,EACX,cAAc,EACd,GAAG,CAAC,EACL,EAAE,sBAAsB,2CAuDxB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { use } from "react";
|
|
4
4
|
import { SelectBoxContext } from "./SelectBoxContext";
|
|
5
5
|
export default function SelectBoxOptions({ options, multiSelect, optionValue, setOptionValue, ...p }) {
|
|
@@ -14,30 +14,32 @@ export default function SelectBoxOptions({ options, multiSelect, optionValue, se
|
|
|
14
14
|
otherOptions.push(item);
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
const renderOptions = (options, isOther) => {
|
|
18
|
+
return options.map((item) => {
|
|
19
|
+
const isSelected = multiSelect
|
|
20
|
+
? optionValue.some((v) => v.value === item.value)
|
|
21
|
+
: optionValue?.value === item.value;
|
|
22
|
+
return (_jsx("button", { type: "button", disabled: isOther, "data-state": isSelected, onClick: () => {
|
|
23
|
+
if (multiSelect) {
|
|
24
|
+
if (isSelected) {
|
|
25
|
+
setOptionValue(optionValue.filter((v) => v.value !== item.value));
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
setOptionValue([...optionValue, item]);
|
|
29
|
+
}
|
|
26
30
|
}
|
|
27
31
|
else {
|
|
28
|
-
|
|
32
|
+
if (isSelected) {
|
|
33
|
+
setOptionValue(null);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
setOptionValue(item);
|
|
37
|
+
setInputSearch(item.name);
|
|
38
|
+
setInputFocused(false);
|
|
39
|
+
}
|
|
29
40
|
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
setOptionValue(item);
|
|
37
|
-
setInputSearch(item.name);
|
|
38
|
-
setInputFocused(false);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}, ...p, children: item.name }, item.value));
|
|
42
|
-
});
|
|
41
|
+
}, ...p, children: item.name }, item.value));
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
return (_jsxs(_Fragment, { children: [renderOptions(filteredOptions), renderOptions(otherOptions, true)] }));
|
|
43
45
|
}
|