@fuf-stack/uniform 0.9.0 → 0.9.2
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/Select/index.cjs +2 -2
- package/dist/Select/index.d.cts +5 -2
- package/dist/Select/index.d.ts +5 -2
- package/dist/Select/index.js +1 -1
- package/dist/Select-fR2SSJSx.d.cts +178 -0
- package/dist/Select-fR2SSJSx.d.ts +178 -0
- package/dist/chunk-HQLY2H3C.js +237 -0
- package/dist/chunk-HQLY2H3C.js.map +1 -0
- package/dist/chunk-KN7JXFK5.cjs +237 -0
- package/dist/chunk-KN7JXFK5.cjs.map +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
- package/dist/Select-Mp6Y00dT.d.cts +0 -40
- package/dist/Select-Mp6Y00dT.d.ts +0 -40
- package/dist/chunk-C2AWFTC5.js +0 -239
- package/dist/chunk-C2AWFTC5.js.map +0 -1
- package/dist/chunk-WCQYZ5RI.cjs +0 -239
- package/dist/chunk-WCQYZ5RI.cjs.map +0 -1
package/dist/Select/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkKN7JXFK5cjs = require('../chunk-KN7JXFK5.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 =
|
|
12
|
+
exports.Select = _chunkKN7JXFK5cjs.Select_default; exports.default = _chunkKN7JXFK5cjs.Select_default2;
|
|
13
13
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Select/index.d.cts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { S as Select } from '../Select-
|
|
2
|
-
export { a as SelectProps } from '../Select-
|
|
1
|
+
import { S as Select } from '../Select-fR2SSJSx.cjs';
|
|
2
|
+
export { a as SelectProps } from '../Select-fR2SSJSx.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
|
|
package/dist/Select/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { S as Select } from '../Select-
|
|
2
|
-
export { a as SelectProps } from '../Select-
|
|
1
|
+
import { S as Select } from '../Select-fR2SSJSx.js';
|
|
2
|
+
export { a as SelectProps } from '../Select-fR2SSJSx.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
|
|
package/dist/Select/index.js
CHANGED
|
@@ -0,0 +1,178 @@
|
|
|
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
|
+
multiValue: string;
|
|
31
|
+
multiValueContainer: string;
|
|
32
|
+
multiValueLabel: string;
|
|
33
|
+
multiValueRemove: string;
|
|
34
|
+
noOptionsMessage: string;
|
|
35
|
+
option_focused: string;
|
|
36
|
+
option_selected: string;
|
|
37
|
+
option: string;
|
|
38
|
+
placeholder: string;
|
|
39
|
+
selectContainer: string;
|
|
40
|
+
singleValue: string;
|
|
41
|
+
valueContainer: string;
|
|
42
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
43
|
+
invalid: {
|
|
44
|
+
true: {
|
|
45
|
+
control: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}, {
|
|
49
|
+
invalid: {
|
|
50
|
+
true: {
|
|
51
|
+
control: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}>, {
|
|
55
|
+
invalid: {
|
|
56
|
+
true: {
|
|
57
|
+
control: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
}, {
|
|
61
|
+
base: string;
|
|
62
|
+
clearIndicator: string;
|
|
63
|
+
control: string;
|
|
64
|
+
control_focused: string;
|
|
65
|
+
crossIcon: string;
|
|
66
|
+
downChevron: string;
|
|
67
|
+
dropdownIndicator: string;
|
|
68
|
+
group: string;
|
|
69
|
+
groupHeading: string;
|
|
70
|
+
indicatorsContainer: string;
|
|
71
|
+
indicatorSeparator: string;
|
|
72
|
+
input: string;
|
|
73
|
+
loadingIndicator: string;
|
|
74
|
+
loadingMessage: string;
|
|
75
|
+
menu: string;
|
|
76
|
+
menuList: string;
|
|
77
|
+
multiValue: string;
|
|
78
|
+
multiValueContainer: string;
|
|
79
|
+
multiValueLabel: string;
|
|
80
|
+
multiValueRemove: string;
|
|
81
|
+
noOptionsMessage: string;
|
|
82
|
+
option_focused: string;
|
|
83
|
+
option_selected: string;
|
|
84
|
+
option: string;
|
|
85
|
+
placeholder: string;
|
|
86
|
+
selectContainer: string;
|
|
87
|
+
singleValue: string;
|
|
88
|
+
valueContainer: string;
|
|
89
|
+
}, tailwind_variants.TVReturnType<{
|
|
90
|
+
invalid: {
|
|
91
|
+
true: {
|
|
92
|
+
control: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
}, {
|
|
96
|
+
base: string;
|
|
97
|
+
clearIndicator: string;
|
|
98
|
+
control: string;
|
|
99
|
+
control_focused: string;
|
|
100
|
+
crossIcon: string;
|
|
101
|
+
downChevron: string;
|
|
102
|
+
dropdownIndicator: string;
|
|
103
|
+
group: string;
|
|
104
|
+
groupHeading: string;
|
|
105
|
+
indicatorsContainer: string;
|
|
106
|
+
indicatorSeparator: string;
|
|
107
|
+
input: string;
|
|
108
|
+
loadingIndicator: string;
|
|
109
|
+
loadingMessage: string;
|
|
110
|
+
menu: string;
|
|
111
|
+
menuList: string;
|
|
112
|
+
multiValue: string;
|
|
113
|
+
multiValueContainer: string;
|
|
114
|
+
multiValueLabel: string;
|
|
115
|
+
multiValueRemove: string;
|
|
116
|
+
noOptionsMessage: string;
|
|
117
|
+
option_focused: string;
|
|
118
|
+
option_selected: string;
|
|
119
|
+
option: string;
|
|
120
|
+
placeholder: string;
|
|
121
|
+
selectContainer: string;
|
|
122
|
+
singleValue: string;
|
|
123
|
+
valueContainer: string;
|
|
124
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
125
|
+
invalid: {
|
|
126
|
+
true: {
|
|
127
|
+
control: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
}, {
|
|
131
|
+
invalid: {
|
|
132
|
+
true: {
|
|
133
|
+
control: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
}>, unknown, unknown, undefined>>;
|
|
137
|
+
type SelectOption = {
|
|
138
|
+
/** option label */
|
|
139
|
+
label?: React.ReactNode;
|
|
140
|
+
/** option value */
|
|
141
|
+
value: string;
|
|
142
|
+
};
|
|
143
|
+
type VariantProps = TVProps<typeof selectVariants>;
|
|
144
|
+
type ClassName = TVClassName<typeof selectVariants>;
|
|
145
|
+
interface SelectProps extends VariantProps {
|
|
146
|
+
/** CSS class name */
|
|
147
|
+
className?: ClassName;
|
|
148
|
+
/** Determine if the */
|
|
149
|
+
clearable?: boolean;
|
|
150
|
+
/** Set the select to disabled state. */
|
|
151
|
+
disabled?: boolean;
|
|
152
|
+
/** Filter Select Options */
|
|
153
|
+
filterOption?: undefined | ((option?: SelectOption, inputValue?: string) => boolean);
|
|
154
|
+
/** Format the label of the option */
|
|
155
|
+
formatOptionLabel?: undefined | Props['formatOptionLabel'];
|
|
156
|
+
/** The value of the search input */
|
|
157
|
+
inputValue?: string;
|
|
158
|
+
/** Label that should be associated with the select. */
|
|
159
|
+
label?: React.ReactNode;
|
|
160
|
+
/** Set the select to a loading state. */
|
|
161
|
+
loading?: boolean;
|
|
162
|
+
/** switch between single and multi select mode. */
|
|
163
|
+
multiSelect?: boolean;
|
|
164
|
+
/** The name for the Select component, used by react-hook-form */
|
|
165
|
+
name: string;
|
|
166
|
+
/** Placeholder that is displayed when nothing is selected */
|
|
167
|
+
placeholder?: string;
|
|
168
|
+
/** The options for the Select component */
|
|
169
|
+
options: SelectOption[];
|
|
170
|
+
/** Handle change events on the input */
|
|
171
|
+
onInputChange?: Props['onInputChange'];
|
|
172
|
+
/** HTML data-testid attribute used in e2e tests */
|
|
173
|
+
testId?: string;
|
|
174
|
+
}
|
|
175
|
+
/** Select component based on [NextUI Select](https://nextui.org/docs/components/select) and [React-Select](https://react-select.com/home) */
|
|
176
|
+
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;
|
|
177
|
+
|
|
178
|
+
export { Select as S, type SelectProps as a };
|
|
@@ -0,0 +1,178 @@
|
|
|
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
|
+
multiValue: string;
|
|
31
|
+
multiValueContainer: string;
|
|
32
|
+
multiValueLabel: string;
|
|
33
|
+
multiValueRemove: string;
|
|
34
|
+
noOptionsMessage: string;
|
|
35
|
+
option_focused: string;
|
|
36
|
+
option_selected: string;
|
|
37
|
+
option: string;
|
|
38
|
+
placeholder: string;
|
|
39
|
+
selectContainer: string;
|
|
40
|
+
singleValue: string;
|
|
41
|
+
valueContainer: string;
|
|
42
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
43
|
+
invalid: {
|
|
44
|
+
true: {
|
|
45
|
+
control: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}, {
|
|
49
|
+
invalid: {
|
|
50
|
+
true: {
|
|
51
|
+
control: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}>, {
|
|
55
|
+
invalid: {
|
|
56
|
+
true: {
|
|
57
|
+
control: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
}, {
|
|
61
|
+
base: string;
|
|
62
|
+
clearIndicator: string;
|
|
63
|
+
control: string;
|
|
64
|
+
control_focused: string;
|
|
65
|
+
crossIcon: string;
|
|
66
|
+
downChevron: string;
|
|
67
|
+
dropdownIndicator: string;
|
|
68
|
+
group: string;
|
|
69
|
+
groupHeading: string;
|
|
70
|
+
indicatorsContainer: string;
|
|
71
|
+
indicatorSeparator: string;
|
|
72
|
+
input: string;
|
|
73
|
+
loadingIndicator: string;
|
|
74
|
+
loadingMessage: string;
|
|
75
|
+
menu: string;
|
|
76
|
+
menuList: string;
|
|
77
|
+
multiValue: string;
|
|
78
|
+
multiValueContainer: string;
|
|
79
|
+
multiValueLabel: string;
|
|
80
|
+
multiValueRemove: string;
|
|
81
|
+
noOptionsMessage: string;
|
|
82
|
+
option_focused: string;
|
|
83
|
+
option_selected: string;
|
|
84
|
+
option: string;
|
|
85
|
+
placeholder: string;
|
|
86
|
+
selectContainer: string;
|
|
87
|
+
singleValue: string;
|
|
88
|
+
valueContainer: string;
|
|
89
|
+
}, tailwind_variants.TVReturnType<{
|
|
90
|
+
invalid: {
|
|
91
|
+
true: {
|
|
92
|
+
control: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
}, {
|
|
96
|
+
base: string;
|
|
97
|
+
clearIndicator: string;
|
|
98
|
+
control: string;
|
|
99
|
+
control_focused: string;
|
|
100
|
+
crossIcon: string;
|
|
101
|
+
downChevron: string;
|
|
102
|
+
dropdownIndicator: string;
|
|
103
|
+
group: string;
|
|
104
|
+
groupHeading: string;
|
|
105
|
+
indicatorsContainer: string;
|
|
106
|
+
indicatorSeparator: string;
|
|
107
|
+
input: string;
|
|
108
|
+
loadingIndicator: string;
|
|
109
|
+
loadingMessage: string;
|
|
110
|
+
menu: string;
|
|
111
|
+
menuList: string;
|
|
112
|
+
multiValue: string;
|
|
113
|
+
multiValueContainer: string;
|
|
114
|
+
multiValueLabel: string;
|
|
115
|
+
multiValueRemove: string;
|
|
116
|
+
noOptionsMessage: string;
|
|
117
|
+
option_focused: string;
|
|
118
|
+
option_selected: string;
|
|
119
|
+
option: string;
|
|
120
|
+
placeholder: string;
|
|
121
|
+
selectContainer: string;
|
|
122
|
+
singleValue: string;
|
|
123
|
+
valueContainer: string;
|
|
124
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
125
|
+
invalid: {
|
|
126
|
+
true: {
|
|
127
|
+
control: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
}, {
|
|
131
|
+
invalid: {
|
|
132
|
+
true: {
|
|
133
|
+
control: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
}>, unknown, unknown, undefined>>;
|
|
137
|
+
type SelectOption = {
|
|
138
|
+
/** option label */
|
|
139
|
+
label?: React.ReactNode;
|
|
140
|
+
/** option value */
|
|
141
|
+
value: string;
|
|
142
|
+
};
|
|
143
|
+
type VariantProps = TVProps<typeof selectVariants>;
|
|
144
|
+
type ClassName = TVClassName<typeof selectVariants>;
|
|
145
|
+
interface SelectProps extends VariantProps {
|
|
146
|
+
/** CSS class name */
|
|
147
|
+
className?: ClassName;
|
|
148
|
+
/** Determine if the */
|
|
149
|
+
clearable?: boolean;
|
|
150
|
+
/** Set the select to disabled state. */
|
|
151
|
+
disabled?: boolean;
|
|
152
|
+
/** Filter Select Options */
|
|
153
|
+
filterOption?: undefined | ((option?: SelectOption, inputValue?: string) => boolean);
|
|
154
|
+
/** Format the label of the option */
|
|
155
|
+
formatOptionLabel?: undefined | Props['formatOptionLabel'];
|
|
156
|
+
/** The value of the search input */
|
|
157
|
+
inputValue?: string;
|
|
158
|
+
/** Label that should be associated with the select. */
|
|
159
|
+
label?: React.ReactNode;
|
|
160
|
+
/** Set the select to a loading state. */
|
|
161
|
+
loading?: boolean;
|
|
162
|
+
/** switch between single and multi select mode. */
|
|
163
|
+
multiSelect?: boolean;
|
|
164
|
+
/** The name for the Select component, used by react-hook-form */
|
|
165
|
+
name: string;
|
|
166
|
+
/** Placeholder that is displayed when nothing is selected */
|
|
167
|
+
placeholder?: string;
|
|
168
|
+
/** The options for the Select component */
|
|
169
|
+
options: SelectOption[];
|
|
170
|
+
/** Handle change events on the input */
|
|
171
|
+
onInputChange?: Props['onInputChange'];
|
|
172
|
+
/** HTML data-testid attribute used in e2e tests */
|
|
173
|
+
testId?: string;
|
|
174
|
+
}
|
|
175
|
+
/** Select component based on [NextUI Select](https://nextui.org/docs/components/select) and [React-Select](https://react-select.com/home) */
|
|
176
|
+
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;
|
|
177
|
+
|
|
178
|
+
export { Select as S, type SelectProps as a };
|
|
@@ -0,0 +1,237 @@
|
|
|
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
|
+
multiValue: "items-center gap-1.5 rounded bg-default-100 py-0.5 pl-2 pr-1",
|
|
37
|
+
multiValueContainer: "",
|
|
38
|
+
multiValueLabel: "py-0.5 leading-6",
|
|
39
|
+
multiValueRemove: "rounded text-default-500 hover:cursor-pointer hover:border-default-300 hover:text-default-800",
|
|
40
|
+
noOptionsMessage: "rounded-sm p-2 text-foreground-500",
|
|
41
|
+
option_focused: "bg-default-100 active:bg-default-200",
|
|
42
|
+
option_selected: "bg-default-300",
|
|
43
|
+
option: "rounded px-3 py-2 hover:cursor-pointer",
|
|
44
|
+
placeholder: "py-0.5 pl-1 text-foreground-500",
|
|
45
|
+
selectContainer: "",
|
|
46
|
+
singleValue: "!ml-1 !leading-7",
|
|
47
|
+
valueContainer: "gap-1 p-1"
|
|
48
|
+
},
|
|
49
|
+
variants: {
|
|
50
|
+
invalid: {
|
|
51
|
+
true: {
|
|
52
|
+
control: "border-danger hover:border-danger"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
var InputComponent = (props) => {
|
|
58
|
+
const testId = `${props.selectProps["data-testid"]}_input`;
|
|
59
|
+
return /* @__PURE__ */ jsx(components.Input, { "data-testid": testId, ...props });
|
|
60
|
+
};
|
|
61
|
+
var OptionComponent = (props) => {
|
|
62
|
+
const testId = `${props.selectProps["data-testid"]}_option_${props?.data?.testId ?? props?.data?.value}`;
|
|
63
|
+
return /* @__PURE__ */ jsx("div", { "data-testid": testId, children: /* @__PURE__ */ jsx(components.Option, { ...props }) });
|
|
64
|
+
};
|
|
65
|
+
var DropdownIndicatorComponent = (props) => {
|
|
66
|
+
const testId = props?.selectProps["data-testid"];
|
|
67
|
+
return /* @__PURE__ */ jsx("div", { "data-testid": `${testId}_dropdown`, children: /* @__PURE__ */ jsx(components.DropdownIndicator, { ...props }) });
|
|
68
|
+
};
|
|
69
|
+
var Select = ({
|
|
70
|
+
className = void 0,
|
|
71
|
+
clearable = true,
|
|
72
|
+
disabled = false,
|
|
73
|
+
filterOption = void 0,
|
|
74
|
+
formatOptionLabel = void 0,
|
|
75
|
+
inputValue = void 0,
|
|
76
|
+
label: _label = void 0,
|
|
77
|
+
loading = false,
|
|
78
|
+
multiSelect = false,
|
|
79
|
+
name,
|
|
80
|
+
onInputChange = void 0,
|
|
81
|
+
options,
|
|
82
|
+
placeholder = void 0,
|
|
83
|
+
testId: _testId = void 0
|
|
84
|
+
}) => {
|
|
85
|
+
const { control, getFieldState } = useFormContext();
|
|
86
|
+
const { error, invalid, required, testId } = getFieldState(name, _testId);
|
|
87
|
+
const [isFocused, setIsFocused] = useState(false);
|
|
88
|
+
const variants = selectVariants({ invalid });
|
|
89
|
+
const classNames = variantsToClassNames(variants, className, "base");
|
|
90
|
+
const {
|
|
91
|
+
getBaseProps,
|
|
92
|
+
getErrorMessageProps,
|
|
93
|
+
getHelperWrapperProps,
|
|
94
|
+
getLabelProps,
|
|
95
|
+
getMainWrapperProps,
|
|
96
|
+
getTriggerProps,
|
|
97
|
+
getValueProps,
|
|
98
|
+
label
|
|
99
|
+
} = useSelect({
|
|
100
|
+
children: [],
|
|
101
|
+
classNames,
|
|
102
|
+
errorMessage: JSON.stringify(error),
|
|
103
|
+
isDisabled: disabled,
|
|
104
|
+
isInvalid: invalid,
|
|
105
|
+
isLoading: loading,
|
|
106
|
+
isRequired: required,
|
|
107
|
+
label: _label,
|
|
108
|
+
labelPlacement: "outside",
|
|
109
|
+
placeholder: " "
|
|
110
|
+
});
|
|
111
|
+
return /* @__PURE__ */ jsx(
|
|
112
|
+
Controller,
|
|
113
|
+
{
|
|
114
|
+
control,
|
|
115
|
+
name,
|
|
116
|
+
render: ({
|
|
117
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
118
|
+
field: { onChange, value, ref, onBlur }
|
|
119
|
+
}) => /* @__PURE__ */ jsx(
|
|
120
|
+
"div",
|
|
121
|
+
{
|
|
122
|
+
...getBaseProps(),
|
|
123
|
+
className: cn(classNames.base, "group mt-2"),
|
|
124
|
+
"data-testid": testId,
|
|
125
|
+
children: /* @__PURE__ */ jsxs("div", { ...getMainWrapperProps(), children: [
|
|
126
|
+
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
127
|
+
label && /* @__PURE__ */ jsxs(
|
|
128
|
+
"label",
|
|
129
|
+
{
|
|
130
|
+
htmlFor: `react-select-${name}-input`,
|
|
131
|
+
className: cn(
|
|
132
|
+
getLabelProps().className.replace("absolute", "relative").replace("block", ""),
|
|
133
|
+
"!pointer-events-auto bottom-2 ml-1"
|
|
134
|
+
),
|
|
135
|
+
children: [
|
|
136
|
+
label,
|
|
137
|
+
/* @__PURE__ */ jsx(FieldCopyTestIdButton_default, { testId })
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
),
|
|
141
|
+
/* @__PURE__ */ jsx(
|
|
142
|
+
ReactSelect,
|
|
143
|
+
{
|
|
144
|
+
"aria-errormessage": "",
|
|
145
|
+
"aria-labelledby": getTriggerProps()["aria-labelledby"]?.split(" ")[1],
|
|
146
|
+
"aria-invalid": invalid,
|
|
147
|
+
classNames: {
|
|
148
|
+
control: () => cn(classNames.control, {
|
|
149
|
+
[classNames.control_focused]: isFocused && !invalid
|
|
150
|
+
}),
|
|
151
|
+
clearIndicator: () => classNames.clearIndicator,
|
|
152
|
+
dropdownIndicator: () => classNames.dropdownIndicator,
|
|
153
|
+
groupHeading: () => classNames.groupHeading,
|
|
154
|
+
indicatorsContainer: () => classNames.indicatorsContainer,
|
|
155
|
+
indicatorSeparator: () => classNames.indicatorSeparator,
|
|
156
|
+
input: () => classNames.input,
|
|
157
|
+
menu: () => classNames.menu,
|
|
158
|
+
multiValue: () => classNames.multiValue,
|
|
159
|
+
multiValueLabel: () => cn(
|
|
160
|
+
classNames.multiValueLabel,
|
|
161
|
+
`${getValueProps().className}`
|
|
162
|
+
),
|
|
163
|
+
multiValueRemove: () => classNames.multiValueRemove,
|
|
164
|
+
noOptionsMessage: () => classNames.noOptionsMessage,
|
|
165
|
+
option: ({
|
|
166
|
+
isFocused: optionIsFocused,
|
|
167
|
+
isSelected: optionIsSelected
|
|
168
|
+
}) => cn(classNames.option, {
|
|
169
|
+
[classNames.option_focused]: optionIsFocused,
|
|
170
|
+
[classNames.option_selected]: optionIsSelected
|
|
171
|
+
}),
|
|
172
|
+
placeholder: () => classNames.placeholder,
|
|
173
|
+
singleValue: () => cn(classNames.singleValue, `${getValueProps().className}`),
|
|
174
|
+
valueContainer: () => classNames.valueContainer
|
|
175
|
+
},
|
|
176
|
+
components: {
|
|
177
|
+
Input: InputComponent,
|
|
178
|
+
Option: OptionComponent,
|
|
179
|
+
DropdownIndicator: DropdownIndicatorComponent
|
|
180
|
+
},
|
|
181
|
+
"data-testid": `${testId}_select`,
|
|
182
|
+
filterOption,
|
|
183
|
+
formatOptionLabel,
|
|
184
|
+
inputValue,
|
|
185
|
+
instanceId: name,
|
|
186
|
+
isClearable: clearable,
|
|
187
|
+
isDisabled: disabled,
|
|
188
|
+
isLoading: loading,
|
|
189
|
+
isMulti: multiSelect,
|
|
190
|
+
name,
|
|
191
|
+
menuPosition: "fixed",
|
|
192
|
+
menuShouldBlockScroll: true,
|
|
193
|
+
options,
|
|
194
|
+
placeholder,
|
|
195
|
+
value: options.find((option) => option.value === value),
|
|
196
|
+
onBlur: (_e) => {
|
|
197
|
+
setIsFocused(false);
|
|
198
|
+
return onBlur();
|
|
199
|
+
},
|
|
200
|
+
onChange: (option) => {
|
|
201
|
+
if (multiSelect) {
|
|
202
|
+
const transformedOptions = [];
|
|
203
|
+
option?.forEach((o) => {
|
|
204
|
+
transformedOptions.push(o.value);
|
|
205
|
+
});
|
|
206
|
+
onChange(transformedOptions);
|
|
207
|
+
} else {
|
|
208
|
+
onChange(option && option.value);
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
onFocus: (_e) => {
|
|
212
|
+
setIsFocused(true);
|
|
213
|
+
},
|
|
214
|
+
onInputChange,
|
|
215
|
+
ref,
|
|
216
|
+
unstyled: true
|
|
217
|
+
}
|
|
218
|
+
)
|
|
219
|
+
] }),
|
|
220
|
+
error && // eslint-disable-next-line react/jsx-props-no-spreading
|
|
221
|
+
/* @__PURE__ */ jsx("div", { ...getHelperWrapperProps(), children: /* @__PURE__ */ jsx("div", { ...getErrorMessageProps(), children: /* @__PURE__ */ jsx(FieldValidationError_default, { error }) }) })
|
|
222
|
+
] })
|
|
223
|
+
}
|
|
224
|
+
)
|
|
225
|
+
}
|
|
226
|
+
);
|
|
227
|
+
};
|
|
228
|
+
var Select_default = Select;
|
|
229
|
+
|
|
230
|
+
// src/Select/index.ts
|
|
231
|
+
var Select_default2 = Select_default;
|
|
232
|
+
|
|
233
|
+
export {
|
|
234
|
+
Select_default,
|
|
235
|
+
Select_default2
|
|
236
|
+
};
|
|
237
|
+
//# sourceMappingURL=chunk-HQLY2H3C.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/Select/Select.tsx","../src/Select/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { Props } from 'react-select';\n\nimport { useState } from 'react';\nimport { Controller } from 'react-hook-form';\nimport ReactSelect, { components } from 'react-select';\n\nimport { useSelect } from '@nextui-org/select';\n\nimport { cn, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { useFormContext } from '../hooks';\nimport { FieldCopyTestIdButton } from '../partials/FieldCopyTestIdButton';\nimport { FieldValidationError } from '../partials/FieldValidationError';\n\nexport const selectVariants = tv({\n slots: {\n base: '',\n clearIndicator:\n 'rounded-md p-1 text-foreground-500 hover:cursor-pointer hover:bg-default-200 hover:text-foreground-800',\n control:\n 'rounded-lg border-2 border-default-200 shadow-sm !duration-150 transition-background hover:border-default-400 motion-reduce:transition-none',\n control_focused: 'border-primary hover:border-primary',\n crossIcon: '',\n downChevron: '',\n dropdownIndicator:\n 'rounded-md p-1 text-foreground-500 hover:cursor-pointer hover:bg-default-200 hover:text-black',\n group: '',\n groupHeading: 'mb-1 ml-3 mt-2 text-sm text-foreground-500',\n indicatorsContainer: 'gap-1 p-1',\n indicatorSeparator: 'bg-default-300',\n input: 'py-0.5 pl-1',\n loadingIndicator: '',\n loadingMessage: '',\n menu: 'mt-2 rounded-xl border border-default-200 bg-background p-1 shadow-lg',\n menuList: '',\n multiValue: 'items-center gap-1.5 rounded bg-default-100 py-0.5 pl-2 pr-1',\n multiValueContainer: '',\n multiValueLabel: 'py-0.5 leading-6',\n multiValueRemove:\n 'rounded text-default-500 hover:cursor-pointer hover:border-default-300 hover:text-default-800',\n noOptionsMessage: 'rounded-sm p-2 text-foreground-500',\n option_focused: 'bg-default-100 active:bg-default-200',\n option_selected: 'bg-default-300',\n option: 'rounded px-3 py-2 hover:cursor-pointer',\n placeholder: 'py-0.5 pl-1 text-foreground-500',\n selectContainer: '',\n singleValue: '!ml-1 !leading-7',\n valueContainer: 'gap-1 p-1',\n },\n variants: {\n invalid: {\n true: {\n control: 'border-danger hover:border-danger',\n },\n },\n },\n});\n\ntype SelectOption = {\n /** option label */\n label?: React.ReactNode;\n /** option value */\n value: string;\n};\n\ntype VariantProps = TVProps<typeof selectVariants>;\ntype ClassName = TVClassName<typeof selectVariants>;\n\nexport interface SelectProps extends VariantProps {\n /** CSS class name */\n className?: ClassName; // string;\n /** Determine if the */\n clearable?: boolean;\n /** Set the select to disabled state. */\n disabled?: boolean;\n /** Filter Select Options */\n filterOption?:\n | undefined\n | ((option?: SelectOption, inputValue?: string) => boolean);\n /** Format the label of the option */\n formatOptionLabel?: undefined | Props['formatOptionLabel'];\n /** The value of the search input */\n inputValue?: string;\n /** Label that should be associated with the select. */\n label?: React.ReactNode;\n /** Set the select to a loading state. */\n loading?: boolean;\n /** switch between single and multi select mode. */\n multiSelect?: boolean;\n /** The name for the Select component, used by react-hook-form */\n name: string;\n /** Placeholder that is displayed when nothing is selected */\n placeholder?: string;\n /** The options for the Select component */\n options: SelectOption[];\n /** Handle change events on the input */\n onInputChange?: Props['onInputChange'];\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\nconst InputComponent: typeof components.Input = (props) => {\n // @ts-expect-error data-testid is not a default prop\n // eslint-disable-next-line react/prop-types, react/destructuring-assignment\n const testId = `${props.selectProps['data-testid']}_input`;\n // eslint-disable-next-line react/jsx-props-no-spreading\n return <components.Input data-testid={testId} {...props} />;\n};\n\nconst OptionComponent: typeof components.Option = (props) => {\n // @ts-expect-error data-testid is not a default prop\n // eslint-disable-next-line react/prop-types, react/destructuring-assignment\n const testId = `${props.selectProps['data-testid']}_option_${props?.data?.testId ?? props?.data?.value}`;\n return (\n <div data-testid={testId}>\n {/* eslint-disable-next-line react/jsx-props-no-spreading */}\n <components.Option {...props} />\n </div>\n );\n};\n\nconst DropdownIndicatorComponent: typeof components.DropdownIndicator = (\n props,\n) => {\n // @ts-expect-error data-testid is not a default prop\n // eslint-disable-next-line react/prop-types\n const testId = props?.selectProps['data-testid'] as string;\n return (\n <div data-testid={`${testId}_dropdown`}>\n {/* eslint-disable-next-line react/jsx-props-no-spreading */}\n <components.DropdownIndicator {...props} />\n </div>\n );\n};\n\n/** Select component based on [NextUI Select](https://nextui.org/docs/components/select) and [React-Select](https://react-select.com/home) */\nconst Select = ({\n className = undefined,\n clearable = true,\n disabled = false,\n filterOption = undefined,\n formatOptionLabel = undefined,\n inputValue = undefined,\n label: _label = undefined,\n loading = false,\n multiSelect = false,\n name,\n onInputChange = undefined,\n options,\n placeholder = undefined,\n testId: _testId = undefined,\n}: SelectProps) => {\n const { control, getFieldState } = useFormContext();\n const { error, invalid, required, testId } = getFieldState(name, _testId);\n\n const [isFocused, setIsFocused] = useState(false);\n\n const variants = selectVariants({ invalid });\n const classNames = variantsToClassNames(variants, className, 'base');\n\n const {\n getBaseProps,\n getErrorMessageProps,\n getHelperWrapperProps,\n getLabelProps,\n getMainWrapperProps,\n getTriggerProps,\n getValueProps,\n label,\n } = useSelect({\n children: [],\n classNames,\n errorMessage: JSON.stringify(error),\n isDisabled: disabled,\n isInvalid: invalid,\n isLoading: loading,\n isRequired: required,\n label: _label,\n labelPlacement: 'outside',\n placeholder: ' ',\n });\n\n return (\n <Controller\n control={control}\n name={name}\n render={({\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n field: { onChange, value, ref, onBlur },\n }) => (\n <div\n // eslint-disable-next-line react/jsx-props-no-spreading\n {...getBaseProps()}\n className={cn(classNames.base, 'group mt-2')}\n data-testid={testId}\n >\n {/* eslint-disable-next-line react/jsx-props-no-spreading */}\n <div {...getMainWrapperProps()}>\n <div className=\"relative\">\n {label && (\n <label\n htmlFor={`react-select-${name}-input`}\n className={cn(\n getLabelProps()\n .className.replace('absolute', 'relative')\n .replace('block', ''),\n '!pointer-events-auto bottom-2 ml-1',\n )}\n >\n {label}\n <FieldCopyTestIdButton testId={testId} />\n </label>\n )}\n <ReactSelect\n aria-errormessage=\"\"\n aria-labelledby={\n getTriggerProps()['aria-labelledby']?.split(' ')[1]\n }\n aria-invalid={invalid}\n classNames={{\n control: () =>\n cn(classNames.control, {\n [classNames.control_focused]: isFocused && !invalid,\n }),\n clearIndicator: () => classNames.clearIndicator,\n dropdownIndicator: () => classNames.dropdownIndicator,\n groupHeading: () => classNames.groupHeading,\n indicatorsContainer: () => classNames.indicatorsContainer,\n indicatorSeparator: () => classNames.indicatorSeparator,\n input: () => classNames.input,\n menu: () => classNames.menu,\n multiValue: () => classNames.multiValue,\n multiValueLabel: () =>\n cn(\n classNames.multiValueLabel,\n `${getValueProps().className}`,\n ),\n multiValueRemove: () => classNames.multiValueRemove,\n noOptionsMessage: () => classNames.noOptionsMessage,\n option: ({\n isFocused: optionIsFocused,\n isSelected: optionIsSelected,\n }) =>\n cn(classNames.option, {\n [classNames.option_focused]: optionIsFocused,\n [classNames.option_selected]: optionIsSelected,\n }),\n placeholder: () => classNames.placeholder,\n singleValue: () =>\n cn(classNames.singleValue, `${getValueProps().className}`),\n valueContainer: () => classNames.valueContainer,\n }}\n components={{\n Input: InputComponent,\n Option: OptionComponent,\n DropdownIndicator: DropdownIndicatorComponent,\n }}\n // Does not affect the testId of the select, but is needed to pass it to sub-components\n data-testid={`${testId}_select`}\n filterOption={filterOption}\n formatOptionLabel={formatOptionLabel}\n inputValue={inputValue}\n instanceId={name}\n isClearable={clearable}\n isDisabled={disabled}\n isLoading={loading}\n isMulti={multiSelect}\n name={name}\n // set menuPosition to fixed so that menu can be rendered\n // inside Card / Modal components, menuShouldBlockScroll\n // prevents container scroll when menu is open\n menuPosition=\"fixed\"\n menuShouldBlockScroll\n options={options}\n placeholder={placeholder}\n value={options.find((option) => option.value === value)}\n onBlur={(_e) => {\n setIsFocused(false);\n return onBlur();\n }}\n onChange={(option) => {\n if (multiSelect) {\n const transformedOptions: string[] = [];\n // @ts-expect-error in this case option is an array.\n option?.forEach((o: { value: string }) => {\n transformedOptions.push(o.value);\n });\n onChange(transformedOptions);\n } else {\n // @ts-expect-error in this case option is of type SelectOption and has the property value.\n onChange(option && option.value);\n }\n }}\n onFocus={(_e) => {\n setIsFocused(true);\n }}\n onInputChange={onInputChange}\n ref={ref}\n unstyled\n />\n </div>\n {error && (\n // eslint-disable-next-line react/jsx-props-no-spreading\n <div {...getHelperWrapperProps()}>\n {/* eslint-disable-next-line react/jsx-props-no-spreading */}\n <div {...getErrorMessageProps()}>\n <FieldValidationError error={error} />\n </div>\n </div>\n )}\n </div>\n </div>\n )}\n />\n );\n};\n\nexport default Select;\n","import Select from './Select';\n\nexport type { SelectProps } from './Select';\n\nexport { Select };\n\nexport default Select;\n"],"mappings":";;;;;;;;;;;AAGA,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAC3B,OAAO,eAAe,kBAAkB;AAExC,SAAS,iBAAiB;AAE1B,SAAS,IAAI,IAAI,4BAA4B;AAkGpC,cA8FO,YA9FP;AA5FF,IAAM,iBAAiB,GAAG;AAAA,EAC/B,OAAO;AAAA,IACL,MAAM;AAAA,IACN,gBACE;AAAA,IACF,SACE;AAAA,IACF,iBAAiB;AAAA,IACjB,WAAW;AAAA,IACX,aAAa;AAAA,IACb,mBACE;AAAA,IACF,OAAO;AAAA,IACP,cAAc;AAAA,IACd,qBAAqB;AAAA,IACrB,oBAAoB;AAAA,IACpB,OAAO;AAAA,IACP,kBAAkB;AAAA,IAClB,gBAAgB;AAAA,IAChB,MAAM;AAAA,IACN,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,qBAAqB;AAAA,IACrB,iBAAiB;AAAA,IACjB,kBACE;AAAA,IACF,kBAAkB;AAAA,IAClB,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,IACjB,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,iBAAiB;AAAA,IACjB,aAAa;AAAA,IACb,gBAAgB;AAAA,EAClB;AAAA,EACA,UAAU;AAAA,IACR,SAAS;AAAA,MACP,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