@frontile/forms 0.17.0-beta.2 → 0.17.0-beta.20
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/declarations/components/checkbox-group.d.ts +6 -7
- package/declarations/components/checkbox.d.ts +5 -6
- package/declarations/components/form-control.d.ts +0 -1
- package/declarations/components/form-description.d.ts +0 -1
- package/declarations/components/form-feedback.d.ts +0 -1
- package/declarations/components/form.d.ts +2 -3
- package/declarations/components/icons.d.ts +0 -1
- package/declarations/components/input.d.ts +12 -12
- package/declarations/components/label.d.ts +4 -5
- package/declarations/components/native-select.d.ts +7 -8
- package/declarations/components/radio-group.d.ts +6 -7
- package/declarations/components/radio.d.ts +5 -6
- package/declarations/components/select.d.ts +129 -16
- package/declarations/components/switch.d.ts +147 -0
- package/declarations/components/textarea.d.ts +6 -7
- package/declarations/index.d.ts +1 -1
- package/declarations/template-registry.d.ts +0 -1
- package/declarations/test-support.d.ts +2 -0
- package/declarations/utils/index.d.ts +0 -1
- package/dist/_app_/components/switch.js +1 -0
- package/dist/components/checkbox-group.js +9 -9
- package/dist/components/checkbox-group.js.map +1 -1
- package/dist/components/checkbox.js +15 -10
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/form-control.js +25 -29
- package/dist/components/form-control.js.map +1 -1
- package/dist/components/form-description.js +5 -5
- package/dist/components/form-description.js.map +1 -1
- package/dist/components/form-feedback.js +5 -5
- package/dist/components/form-feedback.js.map +1 -1
- package/dist/components/form.js +19 -36
- package/dist/components/form.js.map +1 -1
- package/dist/components/icons.js.map +1 -1
- package/dist/components/input.js +30 -27
- package/dist/components/input.js.map +1 -1
- package/dist/components/label.js +5 -5
- package/dist/components/label.js.map +1 -1
- package/dist/components/native-select.js +42 -42
- package/dist/components/native-select.js.map +1 -1
- package/dist/components/radio-group.js +9 -9
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/radio.js +15 -10
- package/dist/components/radio.js.map +1 -1
- package/dist/components/select.js +106 -72
- package/dist/components/select.js.map +1 -1
- package/dist/components/switch.js +60 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/textarea.js +18 -10
- package/dist/components/textarea.js.map +1 -1
- package/dist/index-CeaQc-U7.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/runtime-BPCpkOf1-BKOwiRJp.js +67 -0
- package/dist/runtime-BPCpkOf1-BKOwiRJp.js.map +1 -0
- package/dist/test-support.js +1337 -0
- package/dist/test-support.js.map +1 -0
- package/package.json +55 -55
- package/declarations/components/checkbox-group.d.ts.map +0 -1
- package/declarations/components/checkbox.d.ts.map +0 -1
- package/declarations/components/form-control.d.ts.map +0 -1
- package/declarations/components/form-description.d.ts.map +0 -1
- package/declarations/components/form-feedback.d.ts.map +0 -1
- package/declarations/components/form.d.ts.map +0 -1
- package/declarations/components/icons.d.ts.map +0 -1
- package/declarations/components/input.d.ts.map +0 -1
- package/declarations/components/label.d.ts.map +0 -1
- package/declarations/components/native-select.d.ts.map +0 -1
- package/declarations/components/radio-group.d.ts.map +0 -1
- package/declarations/components/radio.d.ts.map +0 -1
- package/declarations/components/select.d.ts.map +0 -1
- package/declarations/components/textarea.d.ts.map +0 -1
- package/declarations/index-CeaQc-U7.d.ts +0 -3
- package/declarations/index-CeaQc-U7.d.ts.map +0 -1
- package/declarations/index.d.ts.map +0 -1
- package/declarations/template-registry.d.ts.map +0 -1
- package/declarations/utils/index.d.ts.map +0 -1
|
@@ -21,21 +21,20 @@ declare class CheckboxGroup extends Component<CheckboxGroupSignature> {
|
|
|
21
21
|
get classes(): {
|
|
22
22
|
base: (slotProps?: ({
|
|
23
23
|
size?: "sm" | "md" | "lg" | undefined;
|
|
24
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
24
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | ({
|
|
25
25
|
size?: "sm" | "md" | "lg" | undefined;
|
|
26
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
26
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
27
27
|
optionsContainer: (slotProps?: ({
|
|
28
28
|
size?: "sm" | "md" | "lg" | undefined;
|
|
29
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
29
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | ({
|
|
30
30
|
size?: "sm" | "md" | "lg" | undefined;
|
|
31
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
31
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
32
32
|
label: (slotProps?: ({
|
|
33
33
|
size?: "sm" | "md" | "lg" | undefined;
|
|
34
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
34
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | ({
|
|
35
35
|
size?: "sm" | "md" | "lg" | undefined;
|
|
36
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
36
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
37
37
|
} & {} & {};
|
|
38
38
|
}
|
|
39
39
|
export { CheckboxGroup, type CheckboxGroupSignature };
|
|
40
40
|
export default CheckboxGroup;
|
|
41
|
-
//# sourceMappingURL=checkbox-group.d.ts.map
|
|
@@ -18,22 +18,21 @@ declare class Checkbox extends Component<CheckboxSignature> {
|
|
|
18
18
|
get classes(): {
|
|
19
19
|
base: (slotProps?: ({
|
|
20
20
|
size?: "sm" | "md" | "lg" | undefined;
|
|
21
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
21
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
22
22
|
input: (slotProps?: ({
|
|
23
23
|
size?: "sm" | "md" | "lg" | undefined;
|
|
24
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
24
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
25
25
|
labelContainer: (slotProps?: ({
|
|
26
26
|
size?: "sm" | "md" | "lg" | undefined;
|
|
27
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
27
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
28
28
|
label: (slotProps?: ({
|
|
29
29
|
size?: "sm" | "md" | "lg" | undefined;
|
|
30
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
30
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
31
31
|
} & {
|
|
32
32
|
input: (slotProps?: ({
|
|
33
33
|
size?: "sm" | "md" | "lg" | undefined;
|
|
34
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
34
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
35
35
|
} & {};
|
|
36
36
|
}
|
|
37
37
|
export { Checkbox, type CheckboxSignature };
|
|
38
38
|
export default Checkbox;
|
|
39
|
-
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
|
|
3
|
-
type FormResultData =
|
|
2
|
+
import { dataFrom } from 'form-data-utils';
|
|
3
|
+
type FormResultData = ReturnType<typeof dataFrom>;
|
|
4
4
|
interface FormSignature {
|
|
5
5
|
Element: HTMLFormElement;
|
|
6
6
|
Args: {
|
|
@@ -16,4 +16,3 @@ declare class Form extends Component<FormSignature> {
|
|
|
16
16
|
}
|
|
17
17
|
export { Form, type FormSignature, type FormResultData };
|
|
18
18
|
export default Form;
|
|
19
|
-
//# sourceMappingURL=form.d.ts.map
|
|
@@ -5,4 +5,3 @@ declare const IconChevronUpDown: TOC<{
|
|
|
5
5
|
export { IconChevronUpDown };
|
|
6
6
|
declare const _default: import("@ember/component/template-only").TemplateOnlyComponent<never> & (abstract new () => import("@glint/template/-private/integration").InvokableInstance<() => import("@glint/template/-private/integration").ComponentReturn<{}>> & import("@glint/template/-private/integration").HasContext<import("@glint/template/-private/integration").TemplateContext<void, {}, {}, void>>);
|
|
7
7
|
export default _default;
|
|
8
|
-
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -45,7 +45,8 @@ interface InputSignature {
|
|
|
45
45
|
declare class Input extends Component<InputSignature> {
|
|
46
46
|
uncontrolledValue: string;
|
|
47
47
|
inputRef: {
|
|
48
|
-
|
|
48
|
+
"__#1@#private": any;
|
|
49
|
+
current: HTMLInputElement | undefined;
|
|
49
50
|
setup: import("ember-modifier").FunctionBasedModifier<{
|
|
50
51
|
Args: {
|
|
51
52
|
Positional: unknown[];
|
|
@@ -68,35 +69,35 @@ declare class Input extends Component<InputSignature> {
|
|
|
68
69
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
69
70
|
hasStartContent?: boolean | undefined;
|
|
70
71
|
hasEndContent?: boolean | undefined;
|
|
71
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
72
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
72
73
|
innerContainer: (slotProps?: ({
|
|
73
74
|
size?: "sm" | "md" | "lg" | undefined;
|
|
74
75
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
75
76
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
76
77
|
hasStartContent?: boolean | undefined;
|
|
77
78
|
hasEndContent?: boolean | undefined;
|
|
78
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
79
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
79
80
|
startContent: (slotProps?: ({
|
|
80
81
|
size?: "sm" | "md" | "lg" | undefined;
|
|
81
82
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
82
83
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
83
84
|
hasStartContent?: boolean | undefined;
|
|
84
85
|
hasEndContent?: boolean | undefined;
|
|
85
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
86
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
86
87
|
endContent: (slotProps?: ({
|
|
87
88
|
size?: "sm" | "md" | "lg" | undefined;
|
|
88
89
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
89
90
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
90
91
|
hasStartContent?: boolean | undefined;
|
|
91
92
|
hasEndContent?: boolean | undefined;
|
|
92
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
93
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
93
94
|
input: (slotProps?: ({
|
|
94
95
|
size?: "sm" | "md" | "lg" | undefined;
|
|
95
96
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
96
97
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
97
98
|
hasStartContent?: boolean | undefined;
|
|
98
99
|
hasEndContent?: boolean | undefined;
|
|
99
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
100
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
100
101
|
} & {
|
|
101
102
|
base: (slotProps?: ({
|
|
102
103
|
size?: "sm" | "md" | "lg" | undefined;
|
|
@@ -104,37 +105,36 @@ declare class Input extends Component<InputSignature> {
|
|
|
104
105
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
105
106
|
hasStartContent?: boolean | undefined;
|
|
106
107
|
hasEndContent?: boolean | undefined;
|
|
107
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
108
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
108
109
|
innerContainer: (slotProps?: ({
|
|
109
110
|
size?: "sm" | "md" | "lg" | undefined;
|
|
110
111
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
111
112
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
112
113
|
hasStartContent?: boolean | undefined;
|
|
113
114
|
hasEndContent?: boolean | undefined;
|
|
114
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
115
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
115
116
|
startContent: (slotProps?: ({
|
|
116
117
|
size?: "sm" | "md" | "lg" | undefined;
|
|
117
118
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
118
119
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
119
120
|
hasStartContent?: boolean | undefined;
|
|
120
121
|
hasEndContent?: boolean | undefined;
|
|
121
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
122
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
122
123
|
endContent: (slotProps?: ({
|
|
123
124
|
size?: "sm" | "md" | "lg" | undefined;
|
|
124
125
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
125
126
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
126
127
|
hasStartContent?: boolean | undefined;
|
|
127
128
|
hasEndContent?: boolean | undefined;
|
|
128
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
129
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
129
130
|
input: (slotProps?: ({
|
|
130
131
|
size?: "sm" | "md" | "lg" | undefined;
|
|
131
132
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
132
133
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
133
134
|
hasStartContent?: boolean | undefined;
|
|
134
135
|
hasEndContent?: boolean | undefined;
|
|
135
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
136
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
136
137
|
} & {};
|
|
137
138
|
}
|
|
138
139
|
export { Input, type InputSignature };
|
|
139
140
|
export default Input;
|
|
140
|
-
//# sourceMappingURL=input.d.ts.map
|
|
@@ -23,19 +23,18 @@ declare class Label extends Component<LabelSignature> {
|
|
|
23
23
|
get classes(): {
|
|
24
24
|
base: (slotProps?: ({
|
|
25
25
|
size?: "sm" | "md" | "lg" | undefined;
|
|
26
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
26
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
27
27
|
asterisk: (slotProps?: ({
|
|
28
28
|
size?: "sm" | "md" | "lg" | undefined;
|
|
29
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
29
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
30
30
|
} & {
|
|
31
31
|
base: (slotProps?: ({
|
|
32
32
|
size?: "sm" | "md" | "lg" | undefined;
|
|
33
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
33
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
34
34
|
asterisk: (slotProps?: ({
|
|
35
35
|
size?: "sm" | "md" | "lg" | undefined;
|
|
36
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
36
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
37
37
|
} & {};
|
|
38
38
|
}
|
|
39
39
|
export { Label, type LabelSignature };
|
|
40
40
|
export default Label;
|
|
41
|
-
//# sourceMappingURL=label.d.ts.map
|
|
@@ -67,35 +67,35 @@ declare class NativeSelect<T = unknown> extends Component<NativeSelectSignature<
|
|
|
67
67
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
68
68
|
hasStartContent?: boolean | undefined;
|
|
69
69
|
hasEndContent?: boolean | undefined;
|
|
70
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
70
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
71
71
|
innerContainer: (slotProps?: ({
|
|
72
72
|
size?: "sm" | "md" | "lg" | undefined;
|
|
73
73
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
74
74
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
75
75
|
hasStartContent?: boolean | undefined;
|
|
76
76
|
hasEndContent?: boolean | undefined;
|
|
77
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
77
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
78
78
|
startContent: (slotProps?: ({
|
|
79
79
|
size?: "sm" | "md" | "lg" | undefined;
|
|
80
80
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
81
81
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
82
82
|
hasStartContent?: boolean | undefined;
|
|
83
83
|
hasEndContent?: boolean | undefined;
|
|
84
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
84
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
85
85
|
endContent: (slotProps?: ({
|
|
86
86
|
size?: "sm" | "md" | "lg" | undefined;
|
|
87
87
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
88
88
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
89
89
|
hasStartContent?: boolean | undefined;
|
|
90
90
|
hasEndContent?: boolean | undefined;
|
|
91
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
91
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
92
92
|
input: (slotProps?: ({
|
|
93
93
|
size?: "sm" | "md" | "lg" | undefined;
|
|
94
94
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
95
95
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
96
96
|
hasStartContent?: boolean | undefined;
|
|
97
97
|
hasEndContent?: boolean | undefined;
|
|
98
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
98
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
99
99
|
} & {
|
|
100
100
|
input: (slotProps?: ({
|
|
101
101
|
size?: "sm" | "md" | "lg" | undefined;
|
|
@@ -103,14 +103,14 @@ declare class NativeSelect<T = unknown> extends Component<NativeSelectSignature<
|
|
|
103
103
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
104
104
|
hasStartContent?: boolean | undefined;
|
|
105
105
|
hasEndContent?: boolean | undefined;
|
|
106
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
106
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
107
107
|
icon: (slotProps?: ({
|
|
108
108
|
size?: "sm" | "md" | "lg" | undefined;
|
|
109
109
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
110
110
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
111
111
|
hasStartContent?: boolean | undefined;
|
|
112
112
|
hasEndContent?: boolean | undefined;
|
|
113
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
113
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
114
114
|
} & {};
|
|
115
115
|
get isMultiple(): boolean;
|
|
116
116
|
handleOnChange(event: Event): void;
|
|
@@ -137,4 +137,3 @@ declare class NativeSelectItem extends Component<SelectItemSignature> {
|
|
|
137
137
|
}
|
|
138
138
|
export { NativeSelect, type NativeSelectSignature, type ListItem };
|
|
139
139
|
export default NativeSelect;
|
|
140
|
-
//# sourceMappingURL=native-select.d.ts.map
|
|
@@ -24,21 +24,20 @@ declare class RadioGroup<T extends string | number | boolean> extends Component<
|
|
|
24
24
|
get classes(): {
|
|
25
25
|
base: (slotProps?: ({
|
|
26
26
|
size?: "sm" | "md" | "lg" | undefined;
|
|
27
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
27
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | ({
|
|
28
28
|
size?: "sm" | "md" | "lg" | undefined;
|
|
29
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
29
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
30
30
|
optionsContainer: (slotProps?: ({
|
|
31
31
|
size?: "sm" | "md" | "lg" | undefined;
|
|
32
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
32
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | ({
|
|
33
33
|
size?: "sm" | "md" | "lg" | undefined;
|
|
34
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
34
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
35
35
|
label: (slotProps?: ({
|
|
36
36
|
size?: "sm" | "md" | "lg" | undefined;
|
|
37
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
37
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | ({
|
|
38
38
|
size?: "sm" | "md" | "lg" | undefined;
|
|
39
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
39
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
40
40
|
} & {} & {};
|
|
41
41
|
}
|
|
42
42
|
export { RadioGroup, type RadioGroupSignature };
|
|
43
43
|
export default RadioGroup;
|
|
44
|
-
//# sourceMappingURL=radio-group.d.ts.map
|
|
@@ -19,22 +19,21 @@ declare class Radio<T extends string | boolean | number> extends Component<Radio
|
|
|
19
19
|
get classes(): {
|
|
20
20
|
base: (slotProps?: ({
|
|
21
21
|
size?: "sm" | "md" | "lg" | undefined;
|
|
22
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
22
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
23
23
|
input: (slotProps?: ({
|
|
24
24
|
size?: "sm" | "md" | "lg" | undefined;
|
|
25
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
25
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
26
26
|
labelContainer: (slotProps?: ({
|
|
27
27
|
size?: "sm" | "md" | "lg" | undefined;
|
|
28
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
28
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
29
29
|
label: (slotProps?: ({
|
|
30
30
|
size?: "sm" | "md" | "lg" | undefined;
|
|
31
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
31
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
32
32
|
} & {
|
|
33
33
|
input: (slotProps?: ({
|
|
34
34
|
size?: "sm" | "md" | "lg" | undefined;
|
|
35
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
35
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
36
36
|
} & {};
|
|
37
37
|
}
|
|
38
38
|
export { Radio, type RadioSignature };
|
|
39
39
|
export default Radio;
|
|
40
|
-
//# sourceMappingURL=radio.d.ts.map
|
|
@@ -5,10 +5,33 @@ import { type SelectSlots, type SelectVariants, type SlotsToClasses } from '@fro
|
|
|
5
5
|
import { type PopoverSignature, type ContentSignature } from '@frontile/overlays';
|
|
6
6
|
import { type FormControlSharedArgs } from './form-control';
|
|
7
7
|
interface SelectArgs<T> extends Pick<PopoverSignature['Args'], 'placement' | 'flipOptions' | 'middleware' | 'shiftOptions' | 'offsetOptions' | 'strategy' | 'didClose'>, Pick<ListboxSignature<T>['Args'], 'appearance' | 'intent' | 'selectedKeys' | 'disabledKeys' | 'allowEmpty' | 'onSelectionChange' | 'items' | 'onAction'>, Pick<ContentSignature['Args'], 'renderInPlace' | 'target' | 'transitionDuration' | 'backdrop' | 'disableTransitions' | 'focusTrapOptions' | 'closeOnOutsideClick' | 'closeOnEscapeKey' | 'backdropTransition' | 'transition'>, FormControlSharedArgs {
|
|
8
|
+
/**
|
|
9
|
+
* Determines the selection mode of the select component.
|
|
10
|
+
* - 'single': Only one item can be selected at a time.
|
|
11
|
+
* - 'multiple': Allows multiple selections.
|
|
12
|
+
* @defaultValue 'single'
|
|
13
|
+
*/
|
|
8
14
|
selectionMode?: 'single' | 'multiple';
|
|
15
|
+
/**
|
|
16
|
+
* The unique identifier for the select component.
|
|
17
|
+
*/
|
|
9
18
|
id?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Defines the input size of the select.
|
|
21
|
+
*/
|
|
10
22
|
inputSize?: SelectVariants['size'];
|
|
11
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Defines the size of the popover dropdown.
|
|
25
|
+
* - 'sm': Small
|
|
26
|
+
* - 'md': Medium
|
|
27
|
+
* - 'lg': Large
|
|
28
|
+
* 'trigger': Same size as the trigger
|
|
29
|
+
* @defaultValue 'trigger'
|
|
30
|
+
*/
|
|
31
|
+
popoverSize?: 'sm' | 'md' | 'lg' | 'trigger';
|
|
32
|
+
/**
|
|
33
|
+
* Custom classes to style different slots within the select component.
|
|
34
|
+
*/
|
|
12
35
|
classes?: SlotsToClasses<SelectSlots>;
|
|
13
36
|
/**
|
|
14
37
|
* Whether the select should close upon selecting an item.
|
|
@@ -17,19 +40,54 @@ interface SelectArgs<T> extends Pick<PopoverSignature['Args'], 'placement' | 'fl
|
|
|
17
40
|
*/
|
|
18
41
|
closeOnItemSelect?: boolean;
|
|
19
42
|
/**
|
|
43
|
+
* Whether scrolling should be blocked when the select dropdown is open.
|
|
44
|
+
*
|
|
20
45
|
* @defaultValue true
|
|
21
46
|
*/
|
|
22
47
|
blockScroll?: boolean;
|
|
23
48
|
/**
|
|
24
|
-
*
|
|
49
|
+
* Whether the focus trap should be disabled when the dropdown is open.
|
|
50
|
+
*
|
|
51
|
+
* @defaultValue true
|
|
25
52
|
*/
|
|
26
53
|
disableFocusTrap?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* The placeholder text displayed when no option is selected.
|
|
56
|
+
*/
|
|
27
57
|
placeholder?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Whether the select should be disabled, preventing user interaction.
|
|
60
|
+
*/
|
|
28
61
|
isDisabled?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Allows filtering of the items in the select dropdown.
|
|
64
|
+
* If true, a search input is displayed for filtering.
|
|
65
|
+
*
|
|
66
|
+
* @defaultValue false
|
|
67
|
+
*/
|
|
68
|
+
isFilterable?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Function to filter the items in the select.
|
|
71
|
+
* The default implementation performs a case-insensitive search.
|
|
72
|
+
*
|
|
73
|
+
* @param itemValue - The value of an item in the dropdown.
|
|
74
|
+
* @param filterValue - The user's input in the filter/search box.
|
|
75
|
+
* @returns A boolean indicating whether the item should be shown.
|
|
76
|
+
*/
|
|
77
|
+
filter?: (itemValue: string, filterValue: string) => boolean;
|
|
78
|
+
/**
|
|
79
|
+
* If true, the select will show a loading spinner instead of the dropdown icon.
|
|
80
|
+
*/
|
|
81
|
+
isLoading?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* The name attribute for the select component, useful for form submissions.
|
|
84
|
+
*/
|
|
29
85
|
name?: string;
|
|
30
86
|
/**
|
|
31
|
-
* Whether to include a clear button.
|
|
32
|
-
*
|
|
87
|
+
* Whether to include a clear button in the select component.
|
|
88
|
+
* If enabled, this allows users to clear the selection.
|
|
89
|
+
* This option ignores the `allowEmpty` setting.
|
|
90
|
+
*
|
|
33
91
|
* @defaultValue false
|
|
34
92
|
*/
|
|
35
93
|
isClearable?: boolean;
|
|
@@ -49,21 +107,46 @@ interface SelectArgs<T> extends Pick<PopoverSignature['Args'], 'placement' | 'fl
|
|
|
49
107
|
* @defaultValue 'none'
|
|
50
108
|
*/
|
|
51
109
|
endContentPointerEvents?: 'none' | 'auto';
|
|
110
|
+
/**
|
|
111
|
+
* If true, hides the empty content when there are no options available.
|
|
112
|
+
*
|
|
113
|
+
* @defaultValue false
|
|
114
|
+
*/
|
|
115
|
+
hideEmptyContent?: boolean;
|
|
52
116
|
}
|
|
53
117
|
interface SelectSignature<T> {
|
|
54
118
|
Args: SelectArgs<T>;
|
|
55
119
|
Element: HTMLDivElement;
|
|
56
120
|
Blocks: ListboxSignature<T>['Blocks'] & {
|
|
121
|
+
/**
|
|
122
|
+
* Content to display at the **beginning** of the select component.
|
|
123
|
+
* This can be an icon, a label, or any custom UI element.
|
|
124
|
+
*
|
|
125
|
+
* Example: A search icon or a custom label.
|
|
126
|
+
*/
|
|
57
127
|
startContent: [];
|
|
128
|
+
/**
|
|
129
|
+
* Content to display at the **end** of the select component.
|
|
130
|
+
* This can be an icon, a button, or any custom UI element.
|
|
131
|
+
*
|
|
132
|
+
* Example: A clear button or a dropdown arrow.
|
|
133
|
+
*/
|
|
58
134
|
endContent: [];
|
|
135
|
+
/**
|
|
136
|
+
* The content to display when there are no available options.
|
|
137
|
+
* If `hideEmptyContent` argument is true, this content will not be shown.
|
|
138
|
+
*/
|
|
139
|
+
emptyContent: [];
|
|
59
140
|
};
|
|
60
141
|
}
|
|
61
142
|
declare class Select<T = unknown> extends Component<SelectSignature<T>> {
|
|
62
143
|
nodes: ListItem[];
|
|
63
144
|
isOpen: boolean;
|
|
64
145
|
_selectedKeys: string[];
|
|
146
|
+
filterValue?: string;
|
|
65
147
|
containerRef: {
|
|
66
|
-
|
|
148
|
+
"__#1@#private": any;
|
|
149
|
+
current: HTMLDivElement | undefined;
|
|
67
150
|
setup: import("ember-modifier").FunctionBasedModifier<{
|
|
68
151
|
Args: {
|
|
69
152
|
Positional: unknown[];
|
|
@@ -72,14 +155,27 @@ declare class Select<T = unknown> extends Component<SelectSignature<T>> {
|
|
|
72
155
|
Element: HTMLDivElement;
|
|
73
156
|
}>;
|
|
74
157
|
};
|
|
158
|
+
triggerRef: {
|
|
159
|
+
"__#1@#private": any;
|
|
160
|
+
current: HTMLInputElement | HTMLButtonElement | undefined;
|
|
161
|
+
setup: import("ember-modifier").FunctionBasedModifier<{
|
|
162
|
+
Args: {
|
|
163
|
+
Positional: unknown[];
|
|
164
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
165
|
+
};
|
|
166
|
+
Element: HTMLInputElement | HTMLButtonElement;
|
|
167
|
+
}>;
|
|
168
|
+
};
|
|
75
169
|
onSelectionChange: (keys: string[]) => void;
|
|
76
170
|
onOpenChange: (isOpen: boolean) => void;
|
|
171
|
+
onFilterChange: (event: Event) => void;
|
|
77
172
|
get selectedKeys(): string[];
|
|
78
173
|
get blockScroll(): boolean;
|
|
79
174
|
get disableFocusTrap(): boolean;
|
|
80
175
|
onAction: (key: string) => void;
|
|
81
176
|
clearSelectedKeys: (event: Event) => void;
|
|
82
177
|
onItemsChange: (nodes: ListItem[], _: "add" | "remove") => void;
|
|
178
|
+
didClose: () => void;
|
|
83
179
|
get selectedText(): string;
|
|
84
180
|
get selectedTextValue(): string;
|
|
85
181
|
get backdrop(): "blur" | "none" | "transparent" | "faded";
|
|
@@ -90,35 +186,35 @@ declare class Select<T = unknown> extends Component<SelectSignature<T>> {
|
|
|
90
186
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
91
187
|
hasStartContent?: boolean | undefined;
|
|
92
188
|
hasEndContent?: boolean | undefined;
|
|
93
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
189
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
94
190
|
innerContainer: (slotProps?: ({
|
|
95
191
|
size?: "sm" | "md" | "lg" | undefined;
|
|
96
192
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
97
193
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
98
194
|
hasStartContent?: boolean | undefined;
|
|
99
195
|
hasEndContent?: boolean | undefined;
|
|
100
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
196
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
101
197
|
startContent: (slotProps?: ({
|
|
102
198
|
size?: "sm" | "md" | "lg" | undefined;
|
|
103
199
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
104
200
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
105
201
|
hasStartContent?: boolean | undefined;
|
|
106
202
|
hasEndContent?: boolean | undefined;
|
|
107
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
203
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
108
204
|
endContent: (slotProps?: ({
|
|
109
205
|
size?: "sm" | "md" | "lg" | undefined;
|
|
110
206
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
111
207
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
112
208
|
hasStartContent?: boolean | undefined;
|
|
113
209
|
hasEndContent?: boolean | undefined;
|
|
114
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
210
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
115
211
|
input: (slotProps?: ({
|
|
116
212
|
size?: "sm" | "md" | "lg" | undefined;
|
|
117
213
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
118
214
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
119
215
|
hasStartContent?: boolean | undefined;
|
|
120
216
|
hasEndContent?: boolean | undefined;
|
|
121
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
217
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
122
218
|
} & {
|
|
123
219
|
base: (slotProps?: ({
|
|
124
220
|
size?: "sm" | "md" | "lg" | undefined;
|
|
@@ -126,38 +222,55 @@ declare class Select<T = unknown> extends Component<SelectSignature<T>> {
|
|
|
126
222
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
127
223
|
hasStartContent?: boolean | undefined;
|
|
128
224
|
hasEndContent?: boolean | undefined;
|
|
129
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
225
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
130
226
|
placeholder: (slotProps?: ({
|
|
131
227
|
size?: "sm" | "md" | "lg" | undefined;
|
|
132
228
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
133
229
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
134
230
|
hasStartContent?: boolean | undefined;
|
|
135
231
|
hasEndContent?: boolean | undefined;
|
|
136
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
232
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
137
233
|
listbox: (slotProps?: ({
|
|
138
234
|
size?: "sm" | "md" | "lg" | undefined;
|
|
139
235
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
140
236
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
141
237
|
hasStartContent?: boolean | undefined;
|
|
142
238
|
hasEndContent?: boolean | undefined;
|
|
143
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
239
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
144
240
|
icon: (slotProps?: ({
|
|
145
241
|
size?: "sm" | "md" | "lg" | undefined;
|
|
146
242
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
147
243
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
148
244
|
hasStartContent?: boolean | undefined;
|
|
149
245
|
hasEndContent?: boolean | undefined;
|
|
150
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
246
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
151
247
|
clearButton: (slotProps?: ({
|
|
152
248
|
size?: "sm" | "md" | "lg" | undefined;
|
|
153
249
|
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
154
250
|
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
155
251
|
hasStartContent?: boolean | undefined;
|
|
156
252
|
hasEndContent?: boolean | undefined;
|
|
157
|
-
} & import("tailwind-variants").ClassProp<import("tailwind-
|
|
253
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
254
|
+
input: (slotProps?: ({
|
|
255
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
256
|
+
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
257
|
+
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
258
|
+
hasStartContent?: boolean | undefined;
|
|
259
|
+
hasEndContent?: boolean | undefined;
|
|
260
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
261
|
+
emptyContent: (slotProps?: ({
|
|
262
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
263
|
+
startContentPointerEvents?: "none" | "auto" | undefined;
|
|
264
|
+
endContentPointerEvents?: "none" | "auto" | undefined;
|
|
265
|
+
hasStartContent?: boolean | undefined;
|
|
266
|
+
hasEndContent?: boolean | undefined;
|
|
267
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
158
268
|
} & {};
|
|
159
269
|
get isClearable(): boolean | undefined;
|
|
270
|
+
get filterFieldValue(): string;
|
|
271
|
+
get filteredItems(): T[] | undefined;
|
|
272
|
+
get showEmptyContent(): boolean;
|
|
273
|
+
get autoActivateMode(): 'first' | 'selected';
|
|
160
274
|
}
|
|
161
275
|
export { Select, type SelectSignature };
|
|
162
276
|
export default Select;
|
|
163
|
-
//# sourceMappingURL=select.d.ts.map
|