@fuf-stack/uniform 0.9.0 → 0.9.1

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,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkWCQYZ5RIcjs = require('../chunk-WCQYZ5RI.cjs');
4
+ var _chunkU3PJEVXLcjs = require('../chunk-U3PJEVXL.cjs');
5
5
  require('../chunk-KMMS4G7A.cjs');
6
6
  require('../chunk-QTL5FREE.cjs');
7
7
  require('../chunk-LDCRR7FP.cjs');
@@ -9,5 +9,5 @@ require('../chunk-BBB4FEY6.cjs');
9
9
 
10
10
 
11
11
 
12
- exports.Select = _chunkWCQYZ5RIcjs.Select_default; exports.default = _chunkWCQYZ5RIcjs.Select_default2;
12
+ exports.Select = _chunkU3PJEVXLcjs.Select_default; exports.default = _chunkU3PJEVXLcjs.Select_default2;
13
13
  //# sourceMappingURL=index.cjs.map
@@ -1,6 +1,9 @@
1
- import { S as Select } from '../Select-Mp6Y00dT.cjs';
2
- export { a as SelectProps } from '../Select-Mp6Y00dT.cjs';
1
+ import { S as Select } from '../Select-2IgkXjF0.cjs';
2
+ export { a as SelectProps } from '../Select-2IgkXjF0.cjs';
3
3
  import 'react/jsx-runtime';
4
+ import 'tailwind-variants';
5
+ import 'tailwind-variants/dist/config.js';
6
+ import '@fuf-stack/pixel-utils';
4
7
  import 'react-select';
5
8
 
6
9
 
@@ -1,6 +1,9 @@
1
- import { S as Select } from '../Select-Mp6Y00dT.js';
2
- export { a as SelectProps } from '../Select-Mp6Y00dT.js';
1
+ import { S as Select } from '../Select-2IgkXjF0.js';
2
+ export { a as SelectProps } from '../Select-2IgkXjF0.js';
3
3
  import 'react/jsx-runtime';
4
+ import 'tailwind-variants';
5
+ import 'tailwind-variants/dist/config.js';
6
+ import '@fuf-stack/pixel-utils';
4
7
  import 'react-select';
5
8
 
6
9
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Select_default,
3
3
  Select_default2
4
- } from "../chunk-C2AWFTC5.js";
4
+ } from "../chunk-I2R4W3KH.js";
5
5
  import "../chunk-T3CCNJHK.js";
6
6
  import "../chunk-DBLODROX.js";
7
7
  import "../chunk-HWDQZO7X.js";
@@ -0,0 +1,181 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as tailwind_variants from 'tailwind-variants';
3
+ import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
4
+ import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
5
+ import { Props } from 'react-select';
6
+
7
+ declare const selectVariants: tailwind_variants.TVReturnType<{
8
+ invalid: {
9
+ true: {
10
+ control: string;
11
+ };
12
+ };
13
+ }, {
14
+ base: string;
15
+ clearIndicator: string;
16
+ control: string;
17
+ control_focused: string;
18
+ crossIcon: string;
19
+ downChevron: string;
20
+ dropdownIndicator: string;
21
+ group: string;
22
+ groupHeading: string;
23
+ indicatorsContainer: string;
24
+ indicatorSeparator: string;
25
+ input: string;
26
+ loadingIndicator: string;
27
+ loadingMessage: string;
28
+ menu: string;
29
+ menuList: string;
30
+ menuPortal: string;
31
+ multiValue: string;
32
+ multiValueContainer: string;
33
+ multiValueLabel: string;
34
+ multiValueRemove: string;
35
+ noOptionsMessage: string;
36
+ option: string;
37
+ option_selected: string;
38
+ option_focused: string;
39
+ placeholder: string;
40
+ selectContainer: string;
41
+ singleValue: string;
42
+ valueContainer: string;
43
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<{
44
+ invalid: {
45
+ true: {
46
+ control: string;
47
+ };
48
+ };
49
+ }, {
50
+ invalid: {
51
+ true: {
52
+ control: string;
53
+ };
54
+ };
55
+ }>, {
56
+ invalid: {
57
+ true: {
58
+ control: string;
59
+ };
60
+ };
61
+ }, {
62
+ base: string;
63
+ clearIndicator: string;
64
+ control: string;
65
+ control_focused: string;
66
+ crossIcon: string;
67
+ downChevron: string;
68
+ dropdownIndicator: string;
69
+ group: string;
70
+ groupHeading: string;
71
+ indicatorsContainer: string;
72
+ indicatorSeparator: string;
73
+ input: string;
74
+ loadingIndicator: string;
75
+ loadingMessage: string;
76
+ menu: string;
77
+ menuList: string;
78
+ menuPortal: string;
79
+ multiValue: string;
80
+ multiValueContainer: string;
81
+ multiValueLabel: string;
82
+ multiValueRemove: string;
83
+ noOptionsMessage: string;
84
+ option: string;
85
+ option_selected: string;
86
+ option_focused: string;
87
+ placeholder: string;
88
+ selectContainer: string;
89
+ singleValue: string;
90
+ valueContainer: string;
91
+ }, tailwind_variants.TVReturnType<{
92
+ invalid: {
93
+ true: {
94
+ control: string;
95
+ };
96
+ };
97
+ }, {
98
+ base: string;
99
+ clearIndicator: string;
100
+ control: string;
101
+ control_focused: string;
102
+ crossIcon: string;
103
+ downChevron: string;
104
+ dropdownIndicator: string;
105
+ group: string;
106
+ groupHeading: string;
107
+ indicatorsContainer: string;
108
+ indicatorSeparator: string;
109
+ input: string;
110
+ loadingIndicator: string;
111
+ loadingMessage: string;
112
+ menu: string;
113
+ menuList: string;
114
+ menuPortal: string;
115
+ multiValue: string;
116
+ multiValueContainer: string;
117
+ multiValueLabel: string;
118
+ multiValueRemove: string;
119
+ noOptionsMessage: string;
120
+ option: string;
121
+ option_selected: string;
122
+ option_focused: string;
123
+ placeholder: string;
124
+ selectContainer: string;
125
+ singleValue: string;
126
+ valueContainer: string;
127
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<{
128
+ invalid: {
129
+ true: {
130
+ control: string;
131
+ };
132
+ };
133
+ }, {
134
+ invalid: {
135
+ true: {
136
+ control: string;
137
+ };
138
+ };
139
+ }>, unknown, unknown, undefined>>;
140
+ type SelectOption = {
141
+ /** option label */
142
+ label?: React.ReactNode;
143
+ /** option value */
144
+ value: string;
145
+ };
146
+ type VariantProps = TVProps<typeof selectVariants>;
147
+ type ClassName = TVClassName<typeof selectVariants>;
148
+ interface SelectProps extends VariantProps {
149
+ /** CSS class name */
150
+ className?: ClassName;
151
+ /** Determine if the */
152
+ clearable?: boolean;
153
+ /** Set the select to disabled state. */
154
+ disabled?: boolean;
155
+ /** Filter Select Options */
156
+ filterOption?: undefined | ((option?: SelectOption, inputValue?: string) => boolean);
157
+ /** Format the label of the option */
158
+ formatOptionLabel?: undefined | Props['formatOptionLabel'];
159
+ /** The value of the search input */
160
+ inputValue?: string;
161
+ /** Label that should be associated with the select. */
162
+ label?: React.ReactNode;
163
+ /** Set the select to a loading state. */
164
+ loading?: boolean;
165
+ /** switch between single and multi select mode. */
166
+ multiSelect?: boolean;
167
+ /** The name for the Select component, used by react-hook-form */
168
+ name: string;
169
+ /** Placeholder that is displayed when nothing is selected */
170
+ placeholder?: string;
171
+ /** The options for the Select component */
172
+ options: SelectOption[];
173
+ /** Handle change events on the input */
174
+ onInputChange?: Props['onInputChange'];
175
+ /** HTML data-testid attribute used in e2e tests */
176
+ testId?: string;
177
+ }
178
+ /** Select component based on [NextUI Select](https://nextui.org/docs/components/select) and [React-Select](https://react-select.com/home) */
179
+ declare const Select: ({ className, clearable, disabled, filterOption, formatOptionLabel, inputValue, label: _label, loading, multiSelect, name, onInputChange, options, placeholder, testId: _testId, }: SelectProps) => react_jsx_runtime.JSX.Element;
180
+
181
+ export { Select as S, type SelectProps as a };
@@ -0,0 +1,181 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as tailwind_variants from 'tailwind-variants';
3
+ import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
4
+ import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
5
+ import { Props } from 'react-select';
6
+
7
+ declare const selectVariants: tailwind_variants.TVReturnType<{
8
+ invalid: {
9
+ true: {
10
+ control: string;
11
+ };
12
+ };
13
+ }, {
14
+ base: string;
15
+ clearIndicator: string;
16
+ control: string;
17
+ control_focused: string;
18
+ crossIcon: string;
19
+ downChevron: string;
20
+ dropdownIndicator: string;
21
+ group: string;
22
+ groupHeading: string;
23
+ indicatorsContainer: string;
24
+ indicatorSeparator: string;
25
+ input: string;
26
+ loadingIndicator: string;
27
+ loadingMessage: string;
28
+ menu: string;
29
+ menuList: string;
30
+ menuPortal: string;
31
+ multiValue: string;
32
+ multiValueContainer: string;
33
+ multiValueLabel: string;
34
+ multiValueRemove: string;
35
+ noOptionsMessage: string;
36
+ option: string;
37
+ option_selected: string;
38
+ option_focused: string;
39
+ placeholder: string;
40
+ selectContainer: string;
41
+ singleValue: string;
42
+ valueContainer: string;
43
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<{
44
+ invalid: {
45
+ true: {
46
+ control: string;
47
+ };
48
+ };
49
+ }, {
50
+ invalid: {
51
+ true: {
52
+ control: string;
53
+ };
54
+ };
55
+ }>, {
56
+ invalid: {
57
+ true: {
58
+ control: string;
59
+ };
60
+ };
61
+ }, {
62
+ base: string;
63
+ clearIndicator: string;
64
+ control: string;
65
+ control_focused: string;
66
+ crossIcon: string;
67
+ downChevron: string;
68
+ dropdownIndicator: string;
69
+ group: string;
70
+ groupHeading: string;
71
+ indicatorsContainer: string;
72
+ indicatorSeparator: string;
73
+ input: string;
74
+ loadingIndicator: string;
75
+ loadingMessage: string;
76
+ menu: string;
77
+ menuList: string;
78
+ menuPortal: string;
79
+ multiValue: string;
80
+ multiValueContainer: string;
81
+ multiValueLabel: string;
82
+ multiValueRemove: string;
83
+ noOptionsMessage: string;
84
+ option: string;
85
+ option_selected: string;
86
+ option_focused: string;
87
+ placeholder: string;
88
+ selectContainer: string;
89
+ singleValue: string;
90
+ valueContainer: string;
91
+ }, tailwind_variants.TVReturnType<{
92
+ invalid: {
93
+ true: {
94
+ control: string;
95
+ };
96
+ };
97
+ }, {
98
+ base: string;
99
+ clearIndicator: string;
100
+ control: string;
101
+ control_focused: string;
102
+ crossIcon: string;
103
+ downChevron: string;
104
+ dropdownIndicator: string;
105
+ group: string;
106
+ groupHeading: string;
107
+ indicatorsContainer: string;
108
+ indicatorSeparator: string;
109
+ input: string;
110
+ loadingIndicator: string;
111
+ loadingMessage: string;
112
+ menu: string;
113
+ menuList: string;
114
+ menuPortal: string;
115
+ multiValue: string;
116
+ multiValueContainer: string;
117
+ multiValueLabel: string;
118
+ multiValueRemove: string;
119
+ noOptionsMessage: string;
120
+ option: string;
121
+ option_selected: string;
122
+ option_focused: string;
123
+ placeholder: string;
124
+ selectContainer: string;
125
+ singleValue: string;
126
+ valueContainer: string;
127
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<{
128
+ invalid: {
129
+ true: {
130
+ control: string;
131
+ };
132
+ };
133
+ }, {
134
+ invalid: {
135
+ true: {
136
+ control: string;
137
+ };
138
+ };
139
+ }>, unknown, unknown, undefined>>;
140
+ type SelectOption = {
141
+ /** option label */
142
+ label?: React.ReactNode;
143
+ /** option value */
144
+ value: string;
145
+ };
146
+ type VariantProps = TVProps<typeof selectVariants>;
147
+ type ClassName = TVClassName<typeof selectVariants>;
148
+ interface SelectProps extends VariantProps {
149
+ /** CSS class name */
150
+ className?: ClassName;
151
+ /** Determine if the */
152
+ clearable?: boolean;
153
+ /** Set the select to disabled state. */
154
+ disabled?: boolean;
155
+ /** Filter Select Options */
156
+ filterOption?: undefined | ((option?: SelectOption, inputValue?: string) => boolean);
157
+ /** Format the label of the option */
158
+ formatOptionLabel?: undefined | Props['formatOptionLabel'];
159
+ /** The value of the search input */
160
+ inputValue?: string;
161
+ /** Label that should be associated with the select. */
162
+ label?: React.ReactNode;
163
+ /** Set the select to a loading state. */
164
+ loading?: boolean;
165
+ /** switch between single and multi select mode. */
166
+ multiSelect?: boolean;
167
+ /** The name for the Select component, used by react-hook-form */
168
+ name: string;
169
+ /** Placeholder that is displayed when nothing is selected */
170
+ placeholder?: string;
171
+ /** The options for the Select component */
172
+ options: SelectOption[];
173
+ /** Handle change events on the input */
174
+ onInputChange?: Props['onInputChange'];
175
+ /** HTML data-testid attribute used in e2e tests */
176
+ testId?: string;
177
+ }
178
+ /** Select component based on [NextUI Select](https://nextui.org/docs/components/select) and [React-Select](https://react-select.com/home) */
179
+ declare const Select: ({ className, clearable, disabled, filterOption, formatOptionLabel, inputValue, label: _label, loading, multiSelect, name, onInputChange, options, placeholder, testId: _testId, }: SelectProps) => react_jsx_runtime.JSX.Element;
180
+
181
+ export { Select as S, type SelectProps as a };
@@ -0,0 +1,244 @@
1
+ import {
2
+ FieldCopyTestIdButton_default
3
+ } from "./chunk-T3CCNJHK.js";
4
+ import {
5
+ FieldValidationError_default
6
+ } from "./chunk-DBLODROX.js";
7
+ import {
8
+ useFormContext
9
+ } from "./chunk-HWDQZO7X.js";
10
+
11
+ // src/Select/Select.tsx
12
+ import { useState } from "react";
13
+ import { Controller } from "react-hook-form";
14
+ import ReactSelect, { components } from "react-select";
15
+ import { useSelect } from "@nextui-org/select";
16
+ import { cn, tv, variantsToClassNames } from "@fuf-stack/pixel-utils";
17
+ import { jsx, jsxs } from "react/jsx-runtime";
18
+ var selectVariants = tv({
19
+ slots: {
20
+ base: "",
21
+ clearIndicator: "rounded-md p-1 text-foreground-500 hover:cursor-pointer hover:bg-default-200 hover:text-foreground-800",
22
+ control: "rounded-lg border-2 border-default-200 shadow-sm !duration-150 transition-background hover:border-default-400 motion-reduce:transition-none",
23
+ control_focused: "border-primary hover:border-primary",
24
+ crossIcon: "",
25
+ downChevron: "",
26
+ dropdownIndicator: "rounded-md p-1 text-foreground-500 hover:cursor-pointer hover:bg-default-200 hover:text-black",
27
+ group: "",
28
+ groupHeading: "mb-1 ml-3 mt-2 text-sm text-foreground-500",
29
+ indicatorsContainer: "gap-1 p-1",
30
+ indicatorSeparator: "bg-default-300",
31
+ input: "py-0.5 pl-1",
32
+ loadingIndicator: "",
33
+ loadingMessage: "",
34
+ menu: "mt-2 rounded-xl border border-default-200 bg-background p-1 shadow-lg",
35
+ menuList: "",
36
+ // ensure menu has same z-index as modal so it is visible when rendered in modal
37
+ // see: https://github.com/nextui-org/nextui/blob/main/packages/core/theme/src/components/modal.ts (see z-50)
38
+ menuPortal: "!z-50",
39
+ multiValue: "items-center gap-1.5 rounded bg-default-100 py-0.5 pl-2 pr-1",
40
+ multiValueContainer: "",
41
+ multiValueLabel: "py-0.5 leading-6",
42
+ multiValueRemove: "rounded text-default-500 hover:cursor-pointer hover:border-default-300 hover:text-default-800",
43
+ noOptionsMessage: "rounded-sm p-2 text-foreground-500",
44
+ option: "rounded px-3 py-2 hover:cursor-pointer",
45
+ option_selected: "bg-default-300",
46
+ option_focused: "bg-default-100 active:bg-default-200",
47
+ placeholder: "py-0.5 pl-1 text-foreground-500",
48
+ selectContainer: "",
49
+ singleValue: "!ml-1 !leading-7",
50
+ valueContainer: "gap-1 p-1"
51
+ },
52
+ variants: {
53
+ invalid: {
54
+ true: {
55
+ control: "border-danger hover:border-danger"
56
+ }
57
+ }
58
+ }
59
+ });
60
+ var InputComponent = (props) => {
61
+ const testId = `${props.selectProps["data-testid"]}_input`;
62
+ return /* @__PURE__ */ jsx(components.Input, { "data-testid": testId, ...props });
63
+ };
64
+ var OptionComponent = (props) => {
65
+ const testId = `${props.selectProps["data-testid"]}_option_${props?.data?.testId ?? props?.data?.value}`;
66
+ return /* @__PURE__ */ jsx("div", { "data-testid": testId, children: /* @__PURE__ */ jsx(components.Option, { ...props }) });
67
+ };
68
+ var DropdownIndicatorComponent = (props) => {
69
+ const testId = props?.selectProps["data-testid"];
70
+ return /* @__PURE__ */ jsx("div", { "data-testid": `${testId}_dropdown`, children: /* @__PURE__ */ jsx(components.DropdownIndicator, { ...props }) });
71
+ };
72
+ var Select = ({
73
+ className = void 0,
74
+ clearable = true,
75
+ disabled = false,
76
+ filterOption = void 0,
77
+ formatOptionLabel = void 0,
78
+ inputValue = void 0,
79
+ label: _label = void 0,
80
+ loading = false,
81
+ multiSelect = false,
82
+ name,
83
+ onInputChange = void 0,
84
+ options,
85
+ placeholder = void 0,
86
+ testId: _testId = void 0
87
+ }) => {
88
+ const { control, getFieldState } = useFormContext();
89
+ const { error, invalid, required, testId } = getFieldState(name, _testId);
90
+ const [isFocused, setIsFocused] = useState(false);
91
+ const variants = selectVariants({ invalid });
92
+ const classNames = variantsToClassNames(variants, className, "base");
93
+ const {
94
+ label,
95
+ getBaseProps,
96
+ getLabelProps,
97
+ getTriggerProps,
98
+ getValueProps,
99
+ getMainWrapperProps,
100
+ getHelperWrapperProps,
101
+ getErrorMessageProps
102
+ } = useSelect({
103
+ isLoading: loading,
104
+ isInvalid: invalid,
105
+ isRequired: required,
106
+ isDisabled: disabled,
107
+ errorMessage: JSON.stringify(error),
108
+ label: _label,
109
+ labelPlacement: "outside",
110
+ placeholder: " ",
111
+ children: [],
112
+ classNames
113
+ });
114
+ return /* @__PURE__ */ jsx(
115
+ Controller,
116
+ {
117
+ control,
118
+ name,
119
+ render: ({
120
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
121
+ field: { onChange, value, ref, onBlur }
122
+ }) => /* @__PURE__ */ jsx(
123
+ "div",
124
+ {
125
+ ...getBaseProps(),
126
+ className: cn(classNames.base, "group mt-2"),
127
+ "data-testid": testId,
128
+ children: /* @__PURE__ */ jsxs("div", { ...getMainWrapperProps(), children: [
129
+ /* @__PURE__ */ jsxs("div", { className: "relative", children: [
130
+ label && /* @__PURE__ */ jsxs(
131
+ "label",
132
+ {
133
+ htmlFor: `react-select-${name}-input`,
134
+ className: cn(
135
+ getLabelProps().className.replace("absolute", "relative").replace("block", ""),
136
+ "!pointer-events-auto bottom-2 ml-1"
137
+ ),
138
+ children: [
139
+ label,
140
+ /* @__PURE__ */ jsx(FieldCopyTestIdButton_default, { testId })
141
+ ]
142
+ }
143
+ ),
144
+ /* @__PURE__ */ jsx(
145
+ ReactSelect,
146
+ {
147
+ "aria-errormessage": "",
148
+ "aria-invalid": invalid,
149
+ "data-testid": `${testId}_select`,
150
+ ...() => {
151
+ const { className: _className, ...rest } = getTriggerProps();
152
+ return rest;
153
+ },
154
+ "aria-labelledby": getTriggerProps()["aria-labelledby"]?.split(" ")[1],
155
+ classNames: {
156
+ control: () => cn(classNames.control, {
157
+ [classNames.control_focused]: isFocused && !invalid
158
+ }),
159
+ placeholder: () => classNames.placeholder,
160
+ input: () => classNames.input,
161
+ valueContainer: () => classNames.valueContainer,
162
+ singleValue: () => cn(classNames.singleValue, `${getValueProps().className}`),
163
+ multiValue: () => classNames.multiValue,
164
+ multiValueLabel: () => cn(
165
+ classNames.multiValueLabel,
166
+ `${getValueProps().className}`
167
+ ),
168
+ multiValueRemove: () => classNames.multiValueRemove,
169
+ indicatorsContainer: () => classNames.indicatorsContainer,
170
+ clearIndicator: () => classNames.clearIndicator,
171
+ indicatorSeparator: () => classNames.indicatorSeparator,
172
+ dropdownIndicator: () => classNames.dropdownIndicator,
173
+ menu: () => classNames.menu,
174
+ groupHeading: () => classNames.groupHeading,
175
+ option: ({
176
+ isFocused: optionIsFocused,
177
+ isSelected: optionIsSelected
178
+ }) => cn(classNames.option, {
179
+ [classNames.option_focused]: optionIsFocused,
180
+ [classNames.option_selected]: optionIsSelected
181
+ }),
182
+ noOptionsMessage: () => classNames.noOptionsMessage,
183
+ menuPortal: () => classNames.menuPortal
184
+ },
185
+ components: {
186
+ Input: InputComponent,
187
+ Option: OptionComponent,
188
+ DropdownIndicator: DropdownIndicatorComponent
189
+ },
190
+ filterOption,
191
+ formatOptionLabel,
192
+ instanceId: name,
193
+ inputValue,
194
+ isClearable: clearable,
195
+ isDisabled: disabled,
196
+ isLoading: loading,
197
+ isMulti: multiSelect,
198
+ options,
199
+ placeholder,
200
+ unstyled: true,
201
+ onChange: (option) => {
202
+ if (multiSelect) {
203
+ const transformedOptions = [];
204
+ option?.forEach((o) => {
205
+ transformedOptions.push(o.value);
206
+ });
207
+ onChange(transformedOptions);
208
+ } else {
209
+ onChange(option && option.value);
210
+ }
211
+ },
212
+ onInputChange,
213
+ menuPortalTarget: document.getElementById("modal_body")?.parentNode?.parentNode || document.body,
214
+ value: options.find((option) => option.value === value),
215
+ onBlur: (_e) => {
216
+ setIsFocused(false);
217
+ return onBlur();
218
+ },
219
+ onFocus: (_e) => {
220
+ setIsFocused(true);
221
+ },
222
+ name,
223
+ ref
224
+ }
225
+ )
226
+ ] }),
227
+ error && // eslint-disable-next-line react/jsx-props-no-spreading
228
+ /* @__PURE__ */ jsx("div", { ...getHelperWrapperProps(), children: /* @__PURE__ */ jsx("div", { ...getErrorMessageProps(), children: /* @__PURE__ */ jsx(FieldValidationError_default, { error }) }) })
229
+ ] })
230
+ }
231
+ )
232
+ }
233
+ );
234
+ };
235
+ var Select_default = Select;
236
+
237
+ // src/Select/index.ts
238
+ var Select_default2 = Select_default;
239
+
240
+ export {
241
+ Select_default,
242
+ Select_default2
243
+ };
244
+ //# sourceMappingURL=chunk-I2R4W3KH.js.map