@trackunit/react-form-components 2.6.48 → 2.6.49

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.
@@ -2,32 +2,251 @@
2
2
  * The container for the select component — with state styling
3
3
  * !This is _the_ place in select styles to manage the aperance of the text and background
4
4
  */
5
- export declare const cvaSelectContainer: (props?: ({
6
- fieldSize?: "small" | "medium" | "large" | null | undefined;
7
- disabled?: boolean | null | undefined;
8
- invalid?: boolean | null | undefined;
9
- focused?: boolean | null | undefined;
10
- readOnly?: boolean | null | undefined;
11
- defaultVariants?: "disabled" | "readOnly" | "invalid" | "fieldSize" | "focused" | null | undefined;
12
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
- export declare const cvaSelectControl: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
14
- export declare const cvaSelectLoadingMessage: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
15
- export declare const cvaSelectNoOptionsMessage: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
16
- export declare const cvaSelectDropdownIconContainer: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
17
- export declare const cvaSelectPrefixSuffix: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
18
- export declare const cvaSelectClearIndicator: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
19
- export declare const cvaSelectDropdownIndicator: (props?: ({
20
- menuIsOpen?: boolean | null | undefined;
21
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
22
- export declare const cvaSelectValueContainer: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
23
- export declare const cvaSelectSingleValue: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
24
- export declare const cvaSelectMenu: (props?: ({
25
- placement?: "top" | "bottom" | null | undefined;
26
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
27
- export declare const cvaSelectMenuList: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
28
- export declare const cvaSelectPlaceholder: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
29
- export declare const cvaSelectIndicatorsContainer: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
30
- export declare const cvaSelectMultiValue: (props?: ({
31
- hidden?: boolean | null | undefined;
32
- invisible?: boolean | null | undefined;
33
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
+ export declare const cvaSelectContainer: import("cva").CVAComponent<Omit<{
6
+ base: string[];
7
+ variants: {
8
+ fieldSize: {
9
+ small: string;
10
+ medium: string;
11
+ large: string;
12
+ };
13
+ disabled: {
14
+ true: string;
15
+ false: string;
16
+ };
17
+ invalid: {
18
+ true: string;
19
+ false: string;
20
+ };
21
+ focused: {
22
+ true: string;
23
+ false: string;
24
+ };
25
+ readOnly: {
26
+ true: string;
27
+ false: string;
28
+ };
29
+ defaultVariants: {
30
+ invalid: false;
31
+ disabled: false;
32
+ fieldSize: string;
33
+ focused: false;
34
+ readOnly: false;
35
+ };
36
+ };
37
+ }, "defaultVariants"> & {
38
+ variants: {
39
+ fieldSize: {
40
+ small: string;
41
+ medium: string;
42
+ large: string;
43
+ };
44
+ disabled: {
45
+ true: string;
46
+ false: string;
47
+ };
48
+ invalid: {
49
+ true: string;
50
+ false: string;
51
+ };
52
+ focused: {
53
+ true: string;
54
+ false: string;
55
+ };
56
+ readOnly: {
57
+ true: string;
58
+ false: string;
59
+ };
60
+ defaultVariants: {
61
+ invalid: false;
62
+ disabled: false;
63
+ fieldSize: string;
64
+ focused: false;
65
+ readOnly: false;
66
+ };
67
+ };
68
+ defaultVariants: Omit<{}, never>;
69
+ }, {
70
+ fieldSize: {
71
+ small: string;
72
+ medium: string;
73
+ large: string;
74
+ };
75
+ disabled: {
76
+ true: string;
77
+ false: string;
78
+ };
79
+ invalid: {
80
+ true: string;
81
+ false: string;
82
+ };
83
+ focused: {
84
+ true: string;
85
+ false: string;
86
+ };
87
+ readOnly: {
88
+ true: string;
89
+ false: string;
90
+ };
91
+ defaultVariants: {
92
+ invalid: false;
93
+ disabled: false;
94
+ fieldSize: string;
95
+ focused: false;
96
+ readOnly: false;
97
+ };
98
+ }>;
99
+ export declare const cvaSelectControl: import("cva").CVAComponent<Omit<{
100
+ base: string[];
101
+ }, "defaultVariants"> & {
102
+ variants: unknown;
103
+ defaultVariants: Omit<{}, never>;
104
+ }, unknown>;
105
+ export declare const cvaSelectLoadingMessage: import("cva").CVAComponent<Omit<{
106
+ base: string[];
107
+ }, "defaultVariants"> & {
108
+ variants: unknown;
109
+ defaultVariants: Omit<{}, never>;
110
+ }, unknown>;
111
+ export declare const cvaSelectNoOptionsMessage: import("cva").CVAComponent<Omit<{
112
+ base: string[];
113
+ }, "defaultVariants"> & {
114
+ variants: unknown;
115
+ defaultVariants: Omit<{}, never>;
116
+ }, unknown>;
117
+ export declare const cvaSelectDropdownIconContainer: import("cva").CVAComponent<Omit<{
118
+ base: string[];
119
+ }, "defaultVariants"> & {
120
+ variants: unknown;
121
+ defaultVariants: Omit<{}, never>;
122
+ }, unknown>;
123
+ export declare const cvaSelectPrefixSuffix: import("cva").CVAComponent<Omit<{
124
+ base: string[];
125
+ }, "defaultVariants"> & {
126
+ variants: unknown;
127
+ defaultVariants: Omit<{}, never>;
128
+ }, unknown>;
129
+ export declare const cvaSelectClearIndicator: import("cva").CVAComponent<Omit<{
130
+ base: string[];
131
+ }, "defaultVariants"> & {
132
+ variants: unknown;
133
+ defaultVariants: Omit<{}, never>;
134
+ }, unknown>;
135
+ export declare const cvaSelectDropdownIndicator: import("cva").CVAComponent<Omit<{
136
+ base: string[];
137
+ variants: {
138
+ menuIsOpen: {
139
+ true: string;
140
+ false: string;
141
+ };
142
+ };
143
+ }, "defaultVariants"> & {
144
+ variants: {
145
+ menuIsOpen: {
146
+ true: string;
147
+ false: string;
148
+ };
149
+ };
150
+ defaultVariants: Omit<{}, never>;
151
+ }, {
152
+ menuIsOpen: {
153
+ true: string;
154
+ false: string;
155
+ };
156
+ }>;
157
+ export declare const cvaSelectValueContainer: import("cva").CVAComponent<Omit<{
158
+ base: string[];
159
+ }, "defaultVariants"> & {
160
+ variants: unknown;
161
+ defaultVariants: Omit<{}, never>;
162
+ }, unknown>;
163
+ export declare const cvaSelectSingleValue: import("cva").CVAComponent<Omit<{
164
+ base: string[];
165
+ }, "defaultVariants"> & {
166
+ variants: unknown;
167
+ defaultVariants: Omit<{}, never>;
168
+ }, unknown>;
169
+ export declare const cvaSelectMenu: import("cva").CVAComponent<Omit<{
170
+ base: string[];
171
+ variants: {
172
+ placement: {
173
+ bottom: string;
174
+ top: string;
175
+ };
176
+ };
177
+ defaultVariants: {
178
+ placement: "bottom";
179
+ };
180
+ }, "defaultVariants"> & {
181
+ variants: {
182
+ placement: {
183
+ bottom: string;
184
+ top: string;
185
+ };
186
+ };
187
+ defaultVariants: Omit<{}, "placement"> & {
188
+ placement: "bottom";
189
+ };
190
+ }, {
191
+ placement: {
192
+ bottom: string;
193
+ top: string;
194
+ };
195
+ }>;
196
+ export declare const cvaSelectMenuList: import("cva").CVAComponent<Omit<{
197
+ base: string[];
198
+ }, "defaultVariants"> & {
199
+ variants: unknown;
200
+ defaultVariants: Omit<{}, never>;
201
+ }, unknown>;
202
+ export declare const cvaSelectPlaceholder: import("cva").CVAComponent<Omit<{
203
+ base: string[];
204
+ }, "defaultVariants"> & {
205
+ variants: unknown;
206
+ defaultVariants: Omit<{}, never>;
207
+ }, unknown>;
208
+ export declare const cvaSelectIndicatorsContainer: import("cva").CVAComponent<Omit<{
209
+ base: string[];
210
+ }, "defaultVariants"> & {
211
+ variants: unknown;
212
+ defaultVariants: Omit<{}, never>;
213
+ }, unknown>;
214
+ export declare const cvaSelectMultiValue: import("cva").CVAComponent<Omit<{
215
+ base: never[];
216
+ variants: {
217
+ hidden: {
218
+ true: string;
219
+ false: string;
220
+ };
221
+ invisible: {
222
+ true: string;
223
+ false: string;
224
+ };
225
+ };
226
+ defaultVariants: {
227
+ hidden: false;
228
+ };
229
+ }, "defaultVariants"> & {
230
+ variants: {
231
+ hidden: {
232
+ true: string;
233
+ false: string;
234
+ };
235
+ invisible: {
236
+ true: string;
237
+ false: string;
238
+ };
239
+ };
240
+ defaultVariants: Omit<{}, "hidden"> & {
241
+ hidden: false;
242
+ };
243
+ }, {
244
+ hidden: {
245
+ true: string;
246
+ false: string;
247
+ };
248
+ invisible: {
249
+ true: string;
250
+ false: string;
251
+ };
252
+ }>;
@@ -2,13 +2,77 @@
2
2
  * Checkbox input styling - directly styles the input element (no wrapper span needed).
3
3
  * Uses appearance-none to remove native styling, similar to RadioItem.
4
4
  */
5
- export declare const cvaCheckbox: (props?: ({
6
- invalid?: boolean | null | undefined;
7
- state?: "selected" | "deselected" | "indeterminate" | null | undefined;
8
- disabled?: boolean | null | undefined;
9
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
+ export declare const cvaCheckbox: import("cva").CVAComponent<Omit<{
6
+ base: string[];
7
+ variants: {
8
+ invalid: {
9
+ true: string[];
10
+ false: string;
11
+ };
12
+ state: {
13
+ selected: string[];
14
+ deselected: string[];
15
+ indeterminate: string[];
16
+ };
17
+ disabled: {
18
+ true: string[];
19
+ false: string;
20
+ };
21
+ };
22
+ compoundVariants: {
23
+ state: "selected";
24
+ invalid: true;
25
+ className: ("border-danger-600" | "group-active:ring-2" | "group-active:ring-inset" | "active:ring-danger-700" | "bg-danger-600" | "hover:bg-danger-700" | "hover:border-danger-700" | "group-hover:bg-danger-700" | "group-hover:border-danger-700" | "active:bg-danger-700" | "group-active:bg-danger-700" | "group-active:border-danger-700" | "group-active:ring-danger-700")[];
26
+ }[];
27
+ defaultVariants: {
28
+ state: "deselected";
29
+ };
30
+ }, "defaultVariants"> & {
31
+ variants: {
32
+ invalid: {
33
+ true: string[];
34
+ false: string;
35
+ };
36
+ state: {
37
+ selected: string[];
38
+ deselected: string[];
39
+ indeterminate: string[];
40
+ };
41
+ disabled: {
42
+ true: string[];
43
+ false: string;
44
+ };
45
+ };
46
+ defaultVariants: Omit<{}, "state"> & {
47
+ state: "deselected";
48
+ };
49
+ }, {
50
+ invalid: {
51
+ true: string[];
52
+ false: string;
53
+ };
54
+ state: {
55
+ selected: string[];
56
+ deselected: string[];
57
+ indeterminate: string[];
58
+ };
59
+ disabled: {
60
+ true: string[];
61
+ false: string;
62
+ };
63
+ }>;
10
64
  /**
11
65
  * Icon overlay container - positioned on top of the input, receives no pointer events
12
66
  */
13
- export declare const cvaCheckboxIconOverlay: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
14
- export declare const cvaCheckboxIcon: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
67
+ export declare const cvaCheckboxIconOverlay: import("cva").CVAComponent<Omit<{
68
+ base: string[];
69
+ }, "defaultVariants"> & {
70
+ variants: unknown;
71
+ defaultVariants: Omit<{}, never>;
72
+ }, unknown>;
73
+ export declare const cvaCheckboxIcon: import("cva").CVAComponent<Omit<{
74
+ base: string[];
75
+ }, "defaultVariants"> & {
76
+ variants: unknown;
77
+ defaultVariants: Omit<{}, never>;
78
+ }, unknown>;
@@ -1,3 +1,30 @@
1
- export declare const cvaInputColorField: (props?: ({
2
- readOnly?: boolean | null | undefined;
3
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
1
+ export declare const cvaInputColorField: import("cva").CVAComponent<Omit<{
2
+ base: string[];
3
+ variants: {
4
+ readOnly: {
5
+ true: string;
6
+ false: string;
7
+ };
8
+ };
9
+ compoundVariants: {
10
+ readOnly: true;
11
+ }[];
12
+ defaultVariants: {
13
+ readOnly: false;
14
+ };
15
+ }, "defaultVariants"> & {
16
+ variants: {
17
+ readOnly: {
18
+ true: string;
19
+ false: string;
20
+ };
21
+ };
22
+ defaultVariants: Omit<{}, "readOnly"> & {
23
+ readOnly: false;
24
+ };
25
+ }, {
26
+ readOnly: {
27
+ true: string;
28
+ false: string;
29
+ };
30
+ }>;
@@ -1,11 +1,101 @@
1
- export declare const cvaDropZone: (props?: ({
2
- size?: "small" | "medium" | "large" | null | undefined;
3
- disabled?: boolean | null | undefined;
4
- dragActive?: boolean | null | undefined;
5
- dropComplete?: boolean | null | undefined;
6
- invalid?: boolean | null | undefined;
7
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
- export declare const cvaDropZoneLabel: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
9
- export declare const cvaDropZoneIconBackground: (props?: ({
10
- invalid?: boolean | null | undefined;
11
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
1
+ export declare const cvaDropZone: import("cva").CVAComponent<Omit<{
2
+ base: string[];
3
+ variants: {
4
+ size: {
5
+ small: string[];
6
+ medium: string[];
7
+ large: string[];
8
+ };
9
+ disabled: {
10
+ true: string[];
11
+ false: string;
12
+ };
13
+ dragActive: {
14
+ true: string[];
15
+ false: string;
16
+ };
17
+ dropComplete: {
18
+ true: string[];
19
+ false: string;
20
+ };
21
+ invalid: {
22
+ true: string[];
23
+ false: string;
24
+ };
25
+ };
26
+ }, "defaultVariants"> & {
27
+ variants: {
28
+ size: {
29
+ small: string[];
30
+ medium: string[];
31
+ large: string[];
32
+ };
33
+ disabled: {
34
+ true: string[];
35
+ false: string;
36
+ };
37
+ dragActive: {
38
+ true: string[];
39
+ false: string;
40
+ };
41
+ dropComplete: {
42
+ true: string[];
43
+ false: string;
44
+ };
45
+ invalid: {
46
+ true: string[];
47
+ false: string;
48
+ };
49
+ };
50
+ defaultVariants: Omit<{}, never>;
51
+ }, {
52
+ size: {
53
+ small: string[];
54
+ medium: string[];
55
+ large: string[];
56
+ };
57
+ disabled: {
58
+ true: string[];
59
+ false: string;
60
+ };
61
+ dragActive: {
62
+ true: string[];
63
+ false: string;
64
+ };
65
+ dropComplete: {
66
+ true: string[];
67
+ false: string;
68
+ };
69
+ invalid: {
70
+ true: string[];
71
+ false: string;
72
+ };
73
+ }>;
74
+ export declare const cvaDropZoneLabel: import("cva").CVAComponent<Omit<{
75
+ base: string[];
76
+ }, "defaultVariants"> & {
77
+ variants: unknown;
78
+ defaultVariants: Omit<{}, never>;
79
+ }, unknown>;
80
+ export declare const cvaDropZoneIconBackground: import("cva").CVAComponent<Omit<{
81
+ base: string[];
82
+ variants: {
83
+ invalid: {
84
+ true: string[];
85
+ false: string[];
86
+ };
87
+ };
88
+ }, "defaultVariants"> & {
89
+ variants: {
90
+ invalid: {
91
+ true: string[];
92
+ false: string[];
93
+ };
94
+ };
95
+ defaultVariants: Omit<{}, never>;
96
+ }, {
97
+ invalid: {
98
+ true: string[];
99
+ false: string[];
100
+ };
101
+ }>;
@@ -1,7 +1,57 @@
1
- export declare const cvaFormGroup: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
2
- export declare const cvaFormGroupContainerBefore: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
3
- export declare const cvaFormGroupContainerAfter: (props?: ({
4
- invalid?: boolean | null | undefined;
5
- isWarning?: boolean | null | undefined;
6
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
- export declare const cvaHelpAddon: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
1
+ export declare const cvaFormGroup: import("cva").CVAComponent<Omit<{
2
+ base: string[];
3
+ }, "defaultVariants"> & {
4
+ variants: unknown;
5
+ defaultVariants: Omit<{}, never>;
6
+ }, unknown>;
7
+ export declare const cvaFormGroupContainerBefore: import("cva").CVAComponent<Omit<{
8
+ base: string[];
9
+ }, "defaultVariants"> & {
10
+ variants: unknown;
11
+ defaultVariants: Omit<{}, never>;
12
+ }, unknown>;
13
+ export declare const cvaFormGroupContainerAfter: import("cva").CVAComponent<Omit<{
14
+ base: string[];
15
+ variants: {
16
+ invalid: {
17
+ true: string;
18
+ false: string;
19
+ };
20
+ isWarning: {
21
+ true: string;
22
+ false: string;
23
+ };
24
+ };
25
+ compoundVariants: {
26
+ invalid: true;
27
+ isWarning: true;
28
+ className: "text-danger-500 ";
29
+ }[];
30
+ }, "defaultVariants"> & {
31
+ variants: {
32
+ invalid: {
33
+ true: string;
34
+ false: string;
35
+ };
36
+ isWarning: {
37
+ true: string;
38
+ false: string;
39
+ };
40
+ };
41
+ defaultVariants: Omit<{}, never>;
42
+ }, {
43
+ invalid: {
44
+ true: string;
45
+ false: string;
46
+ };
47
+ isWarning: {
48
+ true: string;
49
+ false: string;
50
+ };
51
+ }>;
52
+ export declare const cvaHelpAddon: import("cva").CVAComponent<Omit<{
53
+ base: string[];
54
+ }, "defaultVariants"> & {
55
+ variants: unknown;
56
+ defaultVariants: Omit<{}, never>;
57
+ }, unknown>;
@@ -1,5 +1,55 @@
1
- export declare const cvaLabel: (props?: ({
2
- invalid?: boolean | null | undefined;
3
- disabled?: boolean | null | undefined;
4
- truncate?: boolean | null | undefined;
5
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
1
+ export declare const cvaLabel: import("cva").CVAComponent<Omit<{
2
+ base: string[];
3
+ variants: {
4
+ invalid: {
5
+ true: string;
6
+ false: string;
7
+ };
8
+ disabled: {
9
+ true: string;
10
+ false: string;
11
+ };
12
+ truncate: {
13
+ true: string;
14
+ false: string;
15
+ };
16
+ };
17
+ defaultVariants: {
18
+ invalid: false;
19
+ disabled: false;
20
+ truncate: true;
21
+ };
22
+ }, "defaultVariants"> & {
23
+ variants: {
24
+ invalid: {
25
+ true: string;
26
+ false: string;
27
+ };
28
+ disabled: {
29
+ true: string;
30
+ false: string;
31
+ };
32
+ truncate: {
33
+ true: string;
34
+ false: string;
35
+ };
36
+ };
37
+ defaultVariants: Omit<{}, "disabled" | "invalid" | "truncate"> & {
38
+ invalid: false;
39
+ disabled: false;
40
+ truncate: true;
41
+ };
42
+ }, {
43
+ invalid: {
44
+ true: string;
45
+ false: string;
46
+ };
47
+ disabled: {
48
+ true: string;
49
+ false: string;
50
+ };
51
+ truncate: {
52
+ true: string;
53
+ false: string;
54
+ };
55
+ }>;