@hellobetterdigitalnz/betterui 0.0.3-337 → 0.0.3-338
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/index.cjs.js +11 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1112 -1091
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/Components/Form/DropdownField/DropdownField.stories.tsx +48 -52
- package/src/Components/Form/DropdownField/DropdownField.tsx +270 -243
- package/src/Components/Form/DropdownField/DropdownFieldItem.tsx +33 -33
package/package.json
CHANGED
|
@@ -1,52 +1,48 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from
|
|
2
|
-
import DropdownField from "./DropdownField";
|
|
3
|
-
import {NameValueInterface} from "./DropdownFieldProps";
|
|
4
|
-
import Users from "../../Icons/People/Users/Users";
|
|
5
|
-
|
|
6
|
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
|
|
7
|
-
const meta = {
|
|
8
|
-
title:
|
|
9
|
-
component: DropdownField,
|
|
10
|
-
parameters: {
|
|
11
|
-
layout:
|
|
12
|
-
},
|
|
13
|
-
tags: [
|
|
14
|
-
} satisfies Meta<typeof DropdownField>;
|
|
15
|
-
|
|
16
|
-
export default meta;
|
|
17
|
-
type Story = StoryObj<typeof DropdownField>;
|
|
18
|
-
|
|
19
|
-
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|
|
20
|
-
export const Default: Story = {
|
|
21
|
-
args: {
|
|
22
|
-
name:
|
|
23
|
-
placeholder:
|
|
24
|
-
options: [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
label:
|
|
44
|
-
value:
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
},
|
|
50
|
-
] as NameValueInterface[]
|
|
51
|
-
},
|
|
52
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import DropdownField from "./DropdownField";
|
|
3
|
+
import { NameValueInterface } from "./DropdownFieldProps";
|
|
4
|
+
import Users from "../../Icons/People/Users/Users";
|
|
5
|
+
|
|
6
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
|
|
7
|
+
const meta = {
|
|
8
|
+
title: "Form / Dropdown Field",
|
|
9
|
+
component: DropdownField,
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: "centered",
|
|
12
|
+
},
|
|
13
|
+
tags: ["autodocs"],
|
|
14
|
+
} satisfies Meta<typeof DropdownField>;
|
|
15
|
+
|
|
16
|
+
export default meta;
|
|
17
|
+
type Story = StoryObj<typeof DropdownField>;
|
|
18
|
+
|
|
19
|
+
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|
|
20
|
+
export const Default: Story = {
|
|
21
|
+
args: {
|
|
22
|
+
name: "dropdown-field",
|
|
23
|
+
placeholder: "Super long placeholder text",
|
|
24
|
+
options: ["Lorem ipsum", "Suspendisse sit amet", "In sagittis metus"],
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const Props: Story = {
|
|
29
|
+
args: {
|
|
30
|
+
name: "dropdown-field",
|
|
31
|
+
placeholder: "Placeholder text",
|
|
32
|
+
options: [
|
|
33
|
+
{
|
|
34
|
+
label: "Lorem ispsum",
|
|
35
|
+
value: 1,
|
|
36
|
+
icon: <Users />,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: "In sagittis metus",
|
|
40
|
+
value: 2,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: "Suspendisse potenti",
|
|
44
|
+
value: 3,
|
|
45
|
+
},
|
|
46
|
+
] as NameValueInterface[],
|
|
47
|
+
},
|
|
48
|
+
};
|
|
@@ -1,243 +1,270 @@
|
|
|
1
|
-
import cx from "classnames";
|
|
2
|
-
import DropdownFieldProps, { NameValueInterface } from "./DropdownFieldProps";
|
|
3
|
-
import styles from "./dropdown.module.scss";
|
|
4
|
-
import { useEffect, useState, useRef, MouseEvent, useCallback } from "react";
|
|
5
|
-
import CaretDown from "../../Icons/Arrows/CaretDown/CaretDown";
|
|
6
|
-
import CaretUp from "../../Icons/Arrows/CaretUp/CaretUp";
|
|
7
|
-
import DropdownFieldSelector from "./DropdownFieldSelector";
|
|
8
|
-
import DropdownFieldItem from "./DropdownFieldItem";
|
|
9
|
-
import LoadingInput from "../LoadingInput/LoadingInput.tsx";
|
|
10
|
-
import { createPortal } from "react-dom";
|
|
11
|
-
|
|
12
|
-
const DropdownField = (props: DropdownFieldProps) => {
|
|
13
|
-
const {
|
|
14
|
-
name,
|
|
15
|
-
id,
|
|
16
|
-
value,
|
|
17
|
-
options,
|
|
18
|
-
placeholder,
|
|
19
|
-
extraClass,
|
|
20
|
-
disabled = false,
|
|
21
|
-
readonly = false,
|
|
22
|
-
error,
|
|
23
|
-
ariaLabel,
|
|
24
|
-
required,
|
|
25
|
-
emptyString,
|
|
26
|
-
commentInDropdown,
|
|
27
|
-
loading,
|
|
28
|
-
onChange,
|
|
29
|
-
} = props;
|
|
30
|
-
|
|
31
|
-
const [opened, setOpened] = useState(false);
|
|
32
|
-
const [selected, setSelected] = useState<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
if (
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
1
|
+
import cx from "classnames";
|
|
2
|
+
import DropdownFieldProps, { NameValueInterface } from "./DropdownFieldProps";
|
|
3
|
+
import styles from "./dropdown.module.scss";
|
|
4
|
+
import { useEffect, useState, useRef, MouseEvent, useCallback } from "react";
|
|
5
|
+
import CaretDown from "../../Icons/Arrows/CaretDown/CaretDown";
|
|
6
|
+
import CaretUp from "../../Icons/Arrows/CaretUp/CaretUp";
|
|
7
|
+
import DropdownFieldSelector from "./DropdownFieldSelector";
|
|
8
|
+
import DropdownFieldItem from "./DropdownFieldItem";
|
|
9
|
+
import LoadingInput from "../LoadingInput/LoadingInput.tsx";
|
|
10
|
+
import { createPortal } from "react-dom";
|
|
11
|
+
|
|
12
|
+
const DropdownField = (props: DropdownFieldProps) => {
|
|
13
|
+
const {
|
|
14
|
+
name,
|
|
15
|
+
id,
|
|
16
|
+
value,
|
|
17
|
+
options,
|
|
18
|
+
placeholder,
|
|
19
|
+
extraClass,
|
|
20
|
+
disabled = false,
|
|
21
|
+
readonly = false,
|
|
22
|
+
error,
|
|
23
|
+
ariaLabel,
|
|
24
|
+
required,
|
|
25
|
+
emptyString,
|
|
26
|
+
commentInDropdown,
|
|
27
|
+
loading,
|
|
28
|
+
onChange,
|
|
29
|
+
} = props;
|
|
30
|
+
|
|
31
|
+
const [opened, setOpened] = useState(false);
|
|
32
|
+
const [selected, setSelected] = useState<
|
|
33
|
+
string | number | undefined | null | boolean
|
|
34
|
+
>();
|
|
35
|
+
const [label, setLabel] = useState("");
|
|
36
|
+
const [dropdownStyles, setDropdownStyles] = useState<React.CSSProperties>({});
|
|
37
|
+
|
|
38
|
+
const dropdownRef = useRef<HTMLDivElement>(null);
|
|
39
|
+
const dropdownSelectorRef = useRef<HTMLDivElement>(null);
|
|
40
|
+
const controlRef = useRef<HTMLDivElement>(null);
|
|
41
|
+
const lastPosition = useRef<DOMRect | null>(null);
|
|
42
|
+
const [selectedIcon, setSelectedIcon] = useState<React.ReactNode>(null);
|
|
43
|
+
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
setSelected(value);
|
|
46
|
+
}, [value]);
|
|
47
|
+
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
for (const option of options) {
|
|
50
|
+
let matched = null;
|
|
51
|
+
if (typeof option === "string") {
|
|
52
|
+
matched = option === selected ? option : null;
|
|
53
|
+
} else {
|
|
54
|
+
matched = option.value === selected ? option.label : null;
|
|
55
|
+
}
|
|
56
|
+
if (matched) {
|
|
57
|
+
setLabel(matched);
|
|
58
|
+
setSelectedIcon(
|
|
59
|
+
typeof option === "object" ? (option.icon ?? null) : null,
|
|
60
|
+
);
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}, [selected, options]);
|
|
65
|
+
|
|
66
|
+
const updateDropdownPosition = useCallback(() => {
|
|
67
|
+
if (opened && controlRef.current && dropdownSelectorRef.current) {
|
|
68
|
+
const rect = controlRef.current.getBoundingClientRect();
|
|
69
|
+
const dropdownHeight = dropdownSelectorRef.current.offsetHeight;
|
|
70
|
+
const spaceBelow = window.innerHeight - rect.bottom;
|
|
71
|
+
|
|
72
|
+
const dropdownTop =
|
|
73
|
+
spaceBelow < dropdownHeight ? rect.top - dropdownHeight : rect.bottom;
|
|
74
|
+
|
|
75
|
+
setDropdownStyles({
|
|
76
|
+
top: `${dropdownTop}px`,
|
|
77
|
+
left: `${rect.left}px`,
|
|
78
|
+
width: `${rect.width}px`,
|
|
79
|
+
position: "fixed",
|
|
80
|
+
zIndex: 99999,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}, [opened]);
|
|
84
|
+
|
|
85
|
+
const handlePositionChanges = useCallback(() => {
|
|
86
|
+
if (!controlRef.current) return;
|
|
87
|
+
|
|
88
|
+
updateDropdownPosition();
|
|
89
|
+
const currentPosition = controlRef.current.getBoundingClientRect();
|
|
90
|
+
|
|
91
|
+
if (
|
|
92
|
+
opened &&
|
|
93
|
+
lastPosition.current &&
|
|
94
|
+
(lastPosition.current.top !== currentPosition.top ||
|
|
95
|
+
lastPosition.current.left !== currentPosition.left)
|
|
96
|
+
) {
|
|
97
|
+
setOpened(false);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
lastPosition.current = currentPosition;
|
|
101
|
+
}, [opened, updateDropdownPosition]);
|
|
102
|
+
|
|
103
|
+
useEffect(() => {
|
|
104
|
+
const handleClickOutside = (event: MouseEvent) => {
|
|
105
|
+
if (
|
|
106
|
+
dropdownRef.current &&
|
|
107
|
+
!dropdownRef.current.contains(event.target as Node) &&
|
|
108
|
+
dropdownSelectorRef.current &&
|
|
109
|
+
!dropdownSelectorRef.current.contains(event.target as Node)
|
|
110
|
+
) {
|
|
111
|
+
setOpened(false);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
// @ts-ignore
|
|
116
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
117
|
+
|
|
118
|
+
return () => {
|
|
119
|
+
// @ts-ignore
|
|
120
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
121
|
+
};
|
|
122
|
+
}, []);
|
|
123
|
+
|
|
124
|
+
useEffect(() => {
|
|
125
|
+
if (opened) {
|
|
126
|
+
window.addEventListener("resize", handlePositionChanges);
|
|
127
|
+
window.addEventListener("scroll", handlePositionChanges, true);
|
|
128
|
+
updateDropdownPosition();
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return () => {
|
|
132
|
+
window.removeEventListener("resize", handlePositionChanges);
|
|
133
|
+
window.removeEventListener("scroll", handlePositionChanges, true);
|
|
134
|
+
};
|
|
135
|
+
}, [opened, handlePositionChanges, updateDropdownPosition]);
|
|
136
|
+
|
|
137
|
+
useEffect(() => {
|
|
138
|
+
if (!controlRef.current) return;
|
|
139
|
+
|
|
140
|
+
const observer = new ResizeObserver(() => {
|
|
141
|
+
if (!controlRef.current) return;
|
|
142
|
+
|
|
143
|
+
const currentPosition = controlRef.current.getBoundingClientRect();
|
|
144
|
+
if (
|
|
145
|
+
lastPosition.current &&
|
|
146
|
+
(lastPosition.current.y !== currentPosition.y ||
|
|
147
|
+
lastPosition.current.x !== currentPosition.x ||
|
|
148
|
+
lastPosition.current.top !== currentPosition.top ||
|
|
149
|
+
lastPosition.current.left !== currentPosition.left)
|
|
150
|
+
) {
|
|
151
|
+
setOpened(false);
|
|
152
|
+
}
|
|
153
|
+
lastPosition.current = currentPosition;
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
observer.observe(controlRef.current);
|
|
157
|
+
|
|
158
|
+
return () => {
|
|
159
|
+
observer.disconnect();
|
|
160
|
+
};
|
|
161
|
+
}, []);
|
|
162
|
+
|
|
163
|
+
const classNames = [styles.dropdown];
|
|
164
|
+
|
|
165
|
+
if (error) {
|
|
166
|
+
classNames.push(styles.error);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
if (extraClass) {
|
|
170
|
+
classNames.push(extraClass);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
if (disabled) {
|
|
174
|
+
classNames.push(styles.disabled);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
const handleOpenClose = () => {
|
|
178
|
+
if (disabled || readonly) return;
|
|
179
|
+
setOpened(!opened);
|
|
180
|
+
};
|
|
181
|
+
const handleSelect = (
|
|
182
|
+
e: MouseEvent,
|
|
183
|
+
value: string | number | undefined | null | boolean,
|
|
184
|
+
) => {
|
|
185
|
+
e.stopPropagation();
|
|
186
|
+
setSelected(value);
|
|
187
|
+
setOpened(false);
|
|
188
|
+
if (onChange) {
|
|
189
|
+
onChange(e, value);
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
return (
|
|
194
|
+
<div ref={dropdownRef} className={cx(classNames)}>
|
|
195
|
+
{loading && <LoadingInput />}
|
|
196
|
+
<div
|
|
197
|
+
ref={controlRef}
|
|
198
|
+
className={styles.control}
|
|
199
|
+
onClick={handleOpenClose}
|
|
200
|
+
>
|
|
201
|
+
{!selected && placeholder && (
|
|
202
|
+
<div className={styles.placeholder} aria-label={ariaLabel}>
|
|
203
|
+
{placeholder}
|
|
204
|
+
</div>
|
|
205
|
+
)}
|
|
206
|
+
{(selected || !placeholder) && (
|
|
207
|
+
<div className={styles.label} aria-label={ariaLabel}>
|
|
208
|
+
{selectedIcon && (
|
|
209
|
+
<div className={`${styles.labelIcon} labelIcon`}>
|
|
210
|
+
{selectedIcon}
|
|
211
|
+
</div>
|
|
212
|
+
)}
|
|
213
|
+
{label}
|
|
214
|
+
{!!selected && <div className={styles.reset}></div>}
|
|
215
|
+
</div>
|
|
216
|
+
)}
|
|
217
|
+
<div className={styles.chevron}>
|
|
218
|
+
{!opened && <CaretDown />}
|
|
219
|
+
{!!opened && <CaretUp />}
|
|
220
|
+
</div>
|
|
221
|
+
</div>
|
|
222
|
+
{opened &&
|
|
223
|
+
!readonly &&
|
|
224
|
+
!disabled &&
|
|
225
|
+
createPortal(
|
|
226
|
+
<DropdownFieldSelector
|
|
227
|
+
ref={dropdownSelectorRef}
|
|
228
|
+
style={{ ...dropdownStyles }}
|
|
229
|
+
>
|
|
230
|
+
{commentInDropdown && (
|
|
231
|
+
<div className={styles.message}>{commentInDropdown}</div>
|
|
232
|
+
)}
|
|
233
|
+
{!!emptyString && (
|
|
234
|
+
<DropdownFieldItem
|
|
235
|
+
label={emptyString}
|
|
236
|
+
value={""}
|
|
237
|
+
handleSelect={handleSelect}
|
|
238
|
+
/>
|
|
239
|
+
)}
|
|
240
|
+
{options.map(
|
|
241
|
+
(option: string | NameValueInterface, index: number) => {
|
|
242
|
+
return (
|
|
243
|
+
<DropdownFieldItem
|
|
244
|
+
key={index}
|
|
245
|
+
handleSelect={handleSelect}
|
|
246
|
+
label={typeof option === "object" ? option.label : option}
|
|
247
|
+
value={typeof option === "object" ? option.value : option}
|
|
248
|
+
icon={typeof option === "object" ? option.icon : undefined}
|
|
249
|
+
/>
|
|
250
|
+
);
|
|
251
|
+
},
|
|
252
|
+
)}
|
|
253
|
+
</DropdownFieldSelector>,
|
|
254
|
+
document.body,
|
|
255
|
+
)}
|
|
256
|
+
|
|
257
|
+
<input
|
|
258
|
+
name={name}
|
|
259
|
+
value={selected ? selected.toString() : ""}
|
|
260
|
+
id={id}
|
|
261
|
+
type={"hidden"}
|
|
262
|
+
required={required}
|
|
263
|
+
disabled={disabled}
|
|
264
|
+
readOnly={readonly}
|
|
265
|
+
/>
|
|
266
|
+
</div>
|
|
267
|
+
);
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
export default DropdownField;
|