@fuf-stack/uniform 0.19.3 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkYLTKVPHEcjs = require('../chunk-YLTKVPHE.cjs');
4
+ var _chunkNVSZYURKcjs = require('../chunk-NVSZYURK.cjs');
5
5
  require('../chunk-GNYQC5IJ.cjs');
6
6
  require('../chunk-PA2DQCBY.cjs');
7
7
  require('../chunk-F4VYFBYC.cjs');
@@ -10,5 +10,5 @@ require('../chunk-555JRYCS.cjs');
10
10
 
11
11
 
12
12
 
13
- exports.CheckboxGroup = _chunkYLTKVPHEcjs.CheckboxGroup_default; exports.default = _chunkYLTKVPHEcjs.CheckboxGroup_default2;
13
+ exports.CheckboxGroup = _chunkNVSZYURKcjs.CheckboxGroup_default; exports.default = _chunkNVSZYURKcjs.CheckboxGroup_default2;
14
14
  //# sourceMappingURL=index.cjs.map
@@ -1,9 +1,10 @@
1
- import { C as CheckboxGroup } from '../CheckboxGroup-Dh0YW4KV.cjs';
2
- export { b as CheckboxGroupOption, a as CheckboxGroupProps } from '../CheckboxGroup-Dh0YW4KV.cjs';
1
+ import { C as CheckboxGroup } from '../CheckboxGroup-B_1mu8Xo.cjs';
2
+ export { b as CheckboxGroupOption, a as CheckboxGroupProps } from '../CheckboxGroup-B_1mu8Xo.cjs';
3
3
  import 'react/jsx-runtime';
4
- import 'tailwind-variants/dist/config.js';
5
4
  import 'tailwind-variants';
5
+ import 'tailwind-variants/dist/config.js';
6
6
  import '@fuf-stack/pixel-utils';
7
+ import 'react';
7
8
 
8
9
 
9
10
 
@@ -1,9 +1,10 @@
1
- import { C as CheckboxGroup } from '../CheckboxGroup-Dh0YW4KV.js';
2
- export { b as CheckboxGroupOption, a as CheckboxGroupProps } from '../CheckboxGroup-Dh0YW4KV.js';
1
+ import { C as CheckboxGroup } from '../CheckboxGroup-B_1mu8Xo.js';
2
+ export { b as CheckboxGroupOption, a as CheckboxGroupProps } from '../CheckboxGroup-B_1mu8Xo.js';
3
3
  import 'react/jsx-runtime';
4
- import 'tailwind-variants/dist/config.js';
5
4
  import 'tailwind-variants';
5
+ import 'tailwind-variants/dist/config.js';
6
6
  import '@fuf-stack/pixel-utils';
7
+ import 'react';
7
8
 
8
9
 
9
10
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CheckboxGroup_default,
3
3
  CheckboxGroup_default2
4
- } from "../chunk-BC6ZP7TF.js";
4
+ } from "../chunk-OLPDYX6B.js";
5
5
  import "../chunk-UTFZRBBS.js";
6
6
  import "../chunk-BQGN3JTU.js";
7
7
  import "../chunk-5R7ZPSN2.js";
@@ -0,0 +1,280 @@
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 { ReactNode } from 'react';
6
+
7
+ declare const checkboxGroupVariants: tailwind_variants.TVReturnType<{
8
+ color: {
9
+ readonly default: {
10
+ wrapper: string;
11
+ };
12
+ readonly primary: {
13
+ wrapper: string;
14
+ };
15
+ readonly secondary: {
16
+ wrapper: string;
17
+ };
18
+ readonly success: {
19
+ wrapper: string;
20
+ };
21
+ readonly warning: {
22
+ wrapper: string;
23
+ };
24
+ readonly danger: {
25
+ wrapper: string;
26
+ };
27
+ readonly info: {
28
+ readonly wrapper: "text-info-foreground after:bg-info after:text-info-foreground";
29
+ };
30
+ };
31
+ lineThrough: {
32
+ true: {
33
+ optionLabel: string[];
34
+ };
35
+ };
36
+ }, {
37
+ base: string;
38
+ errorMessage: string;
39
+ label: string;
40
+ optionBase: string;
41
+ optionIcon: string;
42
+ optionLabel: string;
43
+ optionLabelSubline: string;
44
+ optionWrapper: string;
45
+ wrapper: string;
46
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<{
47
+ color: {
48
+ readonly default: {
49
+ wrapper: string;
50
+ };
51
+ readonly primary: {
52
+ wrapper: string;
53
+ };
54
+ readonly secondary: {
55
+ wrapper: string;
56
+ };
57
+ readonly success: {
58
+ wrapper: string;
59
+ };
60
+ readonly warning: {
61
+ wrapper: string;
62
+ };
63
+ readonly danger: {
64
+ wrapper: string;
65
+ };
66
+ readonly info: {
67
+ readonly wrapper: "text-info-foreground after:bg-info after:text-info-foreground";
68
+ };
69
+ };
70
+ lineThrough: {
71
+ true: {
72
+ optionLabel: string[];
73
+ };
74
+ };
75
+ }, {
76
+ color: {
77
+ readonly default: {
78
+ wrapper: string;
79
+ };
80
+ readonly primary: {
81
+ wrapper: string;
82
+ };
83
+ readonly secondary: {
84
+ wrapper: string;
85
+ };
86
+ readonly success: {
87
+ wrapper: string;
88
+ };
89
+ readonly warning: {
90
+ wrapper: string;
91
+ };
92
+ readonly danger: {
93
+ wrapper: string;
94
+ };
95
+ readonly info: {
96
+ readonly wrapper: "text-info-foreground after:bg-info after:text-info-foreground";
97
+ };
98
+ };
99
+ lineThrough: {
100
+ true: {
101
+ optionLabel: string[];
102
+ };
103
+ };
104
+ }>, {
105
+ color: {
106
+ readonly default: {
107
+ wrapper: string;
108
+ };
109
+ readonly primary: {
110
+ wrapper: string;
111
+ };
112
+ readonly secondary: {
113
+ wrapper: string;
114
+ };
115
+ readonly success: {
116
+ wrapper: string;
117
+ };
118
+ readonly warning: {
119
+ wrapper: string;
120
+ };
121
+ readonly danger: {
122
+ wrapper: string;
123
+ };
124
+ readonly info: {
125
+ readonly wrapper: "text-info-foreground after:bg-info after:text-info-foreground";
126
+ };
127
+ };
128
+ lineThrough: {
129
+ true: {
130
+ optionLabel: string[];
131
+ };
132
+ };
133
+ }, {
134
+ base: string;
135
+ errorMessage: string;
136
+ label: string;
137
+ optionBase: string;
138
+ optionIcon: string;
139
+ optionLabel: string;
140
+ optionLabelSubline: string;
141
+ optionWrapper: string;
142
+ wrapper: string;
143
+ }, tailwind_variants.TVReturnType<{
144
+ color: {
145
+ readonly default: {
146
+ wrapper: string;
147
+ };
148
+ readonly primary: {
149
+ wrapper: string;
150
+ };
151
+ readonly secondary: {
152
+ wrapper: string;
153
+ };
154
+ readonly success: {
155
+ wrapper: string;
156
+ };
157
+ readonly warning: {
158
+ wrapper: string;
159
+ };
160
+ readonly danger: {
161
+ wrapper: string;
162
+ };
163
+ readonly info: {
164
+ readonly wrapper: "text-info-foreground after:bg-info after:text-info-foreground";
165
+ };
166
+ };
167
+ lineThrough: {
168
+ true: {
169
+ optionLabel: string[];
170
+ };
171
+ };
172
+ }, {
173
+ base: string;
174
+ errorMessage: string;
175
+ label: string;
176
+ optionBase: string;
177
+ optionIcon: string;
178
+ optionLabel: string;
179
+ optionLabelSubline: string;
180
+ optionWrapper: string;
181
+ wrapper: string;
182
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<{
183
+ color: {
184
+ readonly default: {
185
+ wrapper: string;
186
+ };
187
+ readonly primary: {
188
+ wrapper: string;
189
+ };
190
+ readonly secondary: {
191
+ wrapper: string;
192
+ };
193
+ readonly success: {
194
+ wrapper: string;
195
+ };
196
+ readonly warning: {
197
+ wrapper: string;
198
+ };
199
+ readonly danger: {
200
+ wrapper: string;
201
+ };
202
+ readonly info: {
203
+ readonly wrapper: "text-info-foreground after:bg-info after:text-info-foreground";
204
+ };
205
+ };
206
+ lineThrough: {
207
+ true: {
208
+ optionLabel: string[];
209
+ };
210
+ };
211
+ }, {
212
+ color: {
213
+ readonly default: {
214
+ wrapper: string;
215
+ };
216
+ readonly primary: {
217
+ wrapper: string;
218
+ };
219
+ readonly secondary: {
220
+ wrapper: string;
221
+ };
222
+ readonly success: {
223
+ wrapper: string;
224
+ };
225
+ readonly warning: {
226
+ wrapper: string;
227
+ };
228
+ readonly danger: {
229
+ wrapper: string;
230
+ };
231
+ readonly info: {
232
+ readonly wrapper: "text-info-foreground after:bg-info after:text-info-foreground";
233
+ };
234
+ };
235
+ lineThrough: {
236
+ true: {
237
+ optionLabel: string[];
238
+ };
239
+ };
240
+ }>, unknown, unknown, undefined>>;
241
+ type VariantProps = TVProps<typeof checkboxGroupVariants>;
242
+ type ClassName = TVClassName<typeof checkboxGroupVariants>;
243
+ type CheckboxGroupOption = {
244
+ /** option label */
245
+ label?: ReactNode;
246
+ /** subline displayed below the label */
247
+ labelSubline?: ReactNode;
248
+ /** option value */
249
+ value: string;
250
+ /** disables the option */
251
+ disabled?: boolean;
252
+ /** HTML data-testid attribute of the option */
253
+ testId?: string;
254
+ };
255
+ interface CheckboxGroupProps extends VariantProps {
256
+ /** CSS class name */
257
+ className?: ClassName;
258
+ /** Color scheme of the checkboxes */
259
+ color?: VariantProps['color'];
260
+ /** Sets all checkboxes disabled */
261
+ disabled?: boolean;
262
+ /** Orientation of the checkboxes */
263
+ inline?: boolean;
264
+ /** Label displayed above the checkboxes */
265
+ label?: ReactNode;
266
+ /** Whether the checkboxes label should be crossed out */
267
+ lineThrough?: boolean;
268
+ /** Name the Field is registered on the form */
269
+ name: string;
270
+ /** Checkboxes that should be displayed. */
271
+ options: CheckboxGroupOption[];
272
+ /** HTML data-testid attribute used in e2e tests */
273
+ testId?: string;
274
+ }
275
+ /**
276
+ * CheckboxGroup component based on [HeroUI CheckboxGroup](https://www.heroui.com//docs/components/checkbox-group)
277
+ */
278
+ declare const CheckboxGroup: ({ className, color, inline, label, lineThrough, options, disabled, name, testId: _testId, }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
279
+
280
+ export { CheckboxGroup as C, type CheckboxGroupProps as a, type CheckboxGroupOption as b };
@@ -0,0 +1,280 @@
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 { ReactNode } from 'react';
6
+
7
+ declare const checkboxGroupVariants: tailwind_variants.TVReturnType<{
8
+ color: {
9
+ readonly default: {
10
+ wrapper: string;
11
+ };
12
+ readonly primary: {
13
+ wrapper: string;
14
+ };
15
+ readonly secondary: {
16
+ wrapper: string;
17
+ };
18
+ readonly success: {
19
+ wrapper: string;
20
+ };
21
+ readonly warning: {
22
+ wrapper: string;
23
+ };
24
+ readonly danger: {
25
+ wrapper: string;
26
+ };
27
+ readonly info: {
28
+ readonly wrapper: "text-info-foreground after:bg-info after:text-info-foreground";
29
+ };
30
+ };
31
+ lineThrough: {
32
+ true: {
33
+ optionLabel: string[];
34
+ };
35
+ };
36
+ }, {
37
+ base: string;
38
+ errorMessage: string;
39
+ label: string;
40
+ optionBase: string;
41
+ optionIcon: string;
42
+ optionLabel: string;
43
+ optionLabelSubline: string;
44
+ optionWrapper: string;
45
+ wrapper: string;
46
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<{
47
+ color: {
48
+ readonly default: {
49
+ wrapper: string;
50
+ };
51
+ readonly primary: {
52
+ wrapper: string;
53
+ };
54
+ readonly secondary: {
55
+ wrapper: string;
56
+ };
57
+ readonly success: {
58
+ wrapper: string;
59
+ };
60
+ readonly warning: {
61
+ wrapper: string;
62
+ };
63
+ readonly danger: {
64
+ wrapper: string;
65
+ };
66
+ readonly info: {
67
+ readonly wrapper: "text-info-foreground after:bg-info after:text-info-foreground";
68
+ };
69
+ };
70
+ lineThrough: {
71
+ true: {
72
+ optionLabel: string[];
73
+ };
74
+ };
75
+ }, {
76
+ color: {
77
+ readonly default: {
78
+ wrapper: string;
79
+ };
80
+ readonly primary: {
81
+ wrapper: string;
82
+ };
83
+ readonly secondary: {
84
+ wrapper: string;
85
+ };
86
+ readonly success: {
87
+ wrapper: string;
88
+ };
89
+ readonly warning: {
90
+ wrapper: string;
91
+ };
92
+ readonly danger: {
93
+ wrapper: string;
94
+ };
95
+ readonly info: {
96
+ readonly wrapper: "text-info-foreground after:bg-info after:text-info-foreground";
97
+ };
98
+ };
99
+ lineThrough: {
100
+ true: {
101
+ optionLabel: string[];
102
+ };
103
+ };
104
+ }>, {
105
+ color: {
106
+ readonly default: {
107
+ wrapper: string;
108
+ };
109
+ readonly primary: {
110
+ wrapper: string;
111
+ };
112
+ readonly secondary: {
113
+ wrapper: string;
114
+ };
115
+ readonly success: {
116
+ wrapper: string;
117
+ };
118
+ readonly warning: {
119
+ wrapper: string;
120
+ };
121
+ readonly danger: {
122
+ wrapper: string;
123
+ };
124
+ readonly info: {
125
+ readonly wrapper: "text-info-foreground after:bg-info after:text-info-foreground";
126
+ };
127
+ };
128
+ lineThrough: {
129
+ true: {
130
+ optionLabel: string[];
131
+ };
132
+ };
133
+ }, {
134
+ base: string;
135
+ errorMessage: string;
136
+ label: string;
137
+ optionBase: string;
138
+ optionIcon: string;
139
+ optionLabel: string;
140
+ optionLabelSubline: string;
141
+ optionWrapper: string;
142
+ wrapper: string;
143
+ }, tailwind_variants.TVReturnType<{
144
+ color: {
145
+ readonly default: {
146
+ wrapper: string;
147
+ };
148
+ readonly primary: {
149
+ wrapper: string;
150
+ };
151
+ readonly secondary: {
152
+ wrapper: string;
153
+ };
154
+ readonly success: {
155
+ wrapper: string;
156
+ };
157
+ readonly warning: {
158
+ wrapper: string;
159
+ };
160
+ readonly danger: {
161
+ wrapper: string;
162
+ };
163
+ readonly info: {
164
+ readonly wrapper: "text-info-foreground after:bg-info after:text-info-foreground";
165
+ };
166
+ };
167
+ lineThrough: {
168
+ true: {
169
+ optionLabel: string[];
170
+ };
171
+ };
172
+ }, {
173
+ base: string;
174
+ errorMessage: string;
175
+ label: string;
176
+ optionBase: string;
177
+ optionIcon: string;
178
+ optionLabel: string;
179
+ optionLabelSubline: string;
180
+ optionWrapper: string;
181
+ wrapper: string;
182
+ }, undefined, tailwind_variants_dist_config_js.TVConfig<{
183
+ color: {
184
+ readonly default: {
185
+ wrapper: string;
186
+ };
187
+ readonly primary: {
188
+ wrapper: string;
189
+ };
190
+ readonly secondary: {
191
+ wrapper: string;
192
+ };
193
+ readonly success: {
194
+ wrapper: string;
195
+ };
196
+ readonly warning: {
197
+ wrapper: string;
198
+ };
199
+ readonly danger: {
200
+ wrapper: string;
201
+ };
202
+ readonly info: {
203
+ readonly wrapper: "text-info-foreground after:bg-info after:text-info-foreground";
204
+ };
205
+ };
206
+ lineThrough: {
207
+ true: {
208
+ optionLabel: string[];
209
+ };
210
+ };
211
+ }, {
212
+ color: {
213
+ readonly default: {
214
+ wrapper: string;
215
+ };
216
+ readonly primary: {
217
+ wrapper: string;
218
+ };
219
+ readonly secondary: {
220
+ wrapper: string;
221
+ };
222
+ readonly success: {
223
+ wrapper: string;
224
+ };
225
+ readonly warning: {
226
+ wrapper: string;
227
+ };
228
+ readonly danger: {
229
+ wrapper: string;
230
+ };
231
+ readonly info: {
232
+ readonly wrapper: "text-info-foreground after:bg-info after:text-info-foreground";
233
+ };
234
+ };
235
+ lineThrough: {
236
+ true: {
237
+ optionLabel: string[];
238
+ };
239
+ };
240
+ }>, unknown, unknown, undefined>>;
241
+ type VariantProps = TVProps<typeof checkboxGroupVariants>;
242
+ type ClassName = TVClassName<typeof checkboxGroupVariants>;
243
+ type CheckboxGroupOption = {
244
+ /** option label */
245
+ label?: ReactNode;
246
+ /** subline displayed below the label */
247
+ labelSubline?: ReactNode;
248
+ /** option value */
249
+ value: string;
250
+ /** disables the option */
251
+ disabled?: boolean;
252
+ /** HTML data-testid attribute of the option */
253
+ testId?: string;
254
+ };
255
+ interface CheckboxGroupProps extends VariantProps {
256
+ /** CSS class name */
257
+ className?: ClassName;
258
+ /** Color scheme of the checkboxes */
259
+ color?: VariantProps['color'];
260
+ /** Sets all checkboxes disabled */
261
+ disabled?: boolean;
262
+ /** Orientation of the checkboxes */
263
+ inline?: boolean;
264
+ /** Label displayed above the checkboxes */
265
+ label?: ReactNode;
266
+ /** Whether the checkboxes label should be crossed out */
267
+ lineThrough?: boolean;
268
+ /** Name the Field is registered on the form */
269
+ name: string;
270
+ /** Checkboxes that should be displayed. */
271
+ options: CheckboxGroupOption[];
272
+ /** HTML data-testid attribute used in e2e tests */
273
+ testId?: string;
274
+ }
275
+ /**
276
+ * CheckboxGroup component based on [HeroUI CheckboxGroup](https://www.heroui.com//docs/components/checkbox-group)
277
+ */
278
+ declare const CheckboxGroup: ({ className, color, inline, label, lineThrough, options, disabled, name, testId: _testId, }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
279
+
280
+ export { CheckboxGroup as C, type CheckboxGroupProps as a, type CheckboxGroupOption as b };
@@ -1,5 +1,5 @@
1
- import { R as RadioBoxes } from '../RadioBoxes-C61IRDCU.cjs';
2
- export { a as RadioBoxesProps } from '../RadioBoxes-C61IRDCU.cjs';
1
+ import { R as RadioBoxes } from '../RadioBoxes-BmJBBZVd.cjs';
2
+ export { a as RadioBoxesProps } from '../RadioBoxes-BmJBBZVd.cjs';
3
3
  import 'tailwind-variants/dist/config.js';
4
4
  import 'tailwind-variants';
5
5
  import '@fuf-stack/pixel-utils';
@@ -1,5 +1,5 @@
1
- import { R as RadioBoxes } from '../RadioBoxes-C61IRDCU.js';
2
- export { a as RadioBoxesProps } from '../RadioBoxes-C61IRDCU.js';
1
+ import { R as RadioBoxes } from '../RadioBoxes-BmJBBZVd.js';
2
+ export { a as RadioBoxesProps } from '../RadioBoxes-BmJBBZVd.js';
3
3
  import 'tailwind-variants/dist/config.js';
4
4
  import 'tailwind-variants';
5
5
  import '@fuf-stack/pixel-utils';
@@ -1,5 +1,5 @@
1
- import { R as RadioGroup } from '../RadioGroup-C7I27oav.cjs';
2
- export { a as RadioGroupProps } from '../RadioGroup-C7I27oav.cjs';
1
+ import { R as RadioGroup } from '../RadioGroup-BJijfixt.cjs';
2
+ export { a as RadioGroupProps } from '../RadioGroup-BJijfixt.cjs';
3
3
  import 'tailwind-variants/dist/config.js';
4
4
  import 'tailwind-variants';
5
5
  import '@fuf-stack/pixel-utils';
@@ -1,5 +1,5 @@
1
- import { R as RadioGroup } from '../RadioGroup-C7I27oav.js';
2
- export { a as RadioGroupProps } from '../RadioGroup-C7I27oav.js';
1
+ import { R as RadioGroup } from '../RadioGroup-BJijfixt.js';
2
+ export { a as RadioGroupProps } from '../RadioGroup-BJijfixt.js';
3
3
  import 'tailwind-variants/dist/config.js';
4
4
  import 'tailwind-variants';
5
5
  import '@fuf-stack/pixel-utils';