@fuf-stack/uniform 0.9.5 → 0.9.7
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/CheckboxGroup/index.cjs +3 -3
- package/dist/CheckboxGroup/index.d.cts +5 -2
- package/dist/CheckboxGroup/index.d.ts +5 -2
- package/dist/CheckboxGroup/index.js +2 -2
- package/dist/CheckboxGroup-o-qWkWe1.d.cts +130 -0
- package/dist/CheckboxGroup-o-qWkWe1.d.ts +130 -0
- package/dist/FieldArray/index.cjs +3 -3
- package/dist/FieldArray/index.js +2 -2
- package/dist/{FieldValidationError-BSXedjCA.d.cts → FieldValidationError-DAT12Ess.d.cts} +2 -1
- package/dist/{FieldValidationError-BSXedjCA.d.ts → FieldValidationError-DAT12Ess.d.ts} +2 -1
- package/dist/Input/index.cjs +3 -3
- package/dist/Input/index.js +2 -2
- package/dist/RadioGroup/index.cjs +3 -3
- package/dist/RadioGroup/index.d.cts +5 -2
- package/dist/RadioGroup/index.d.ts +5 -2
- package/dist/RadioGroup/index.js +2 -2
- package/dist/RadioGroup-D_kiBt0M.d.cts +162 -0
- package/dist/RadioGroup-D_kiBt0M.d.ts +162 -0
- package/dist/Select/index.cjs +3 -3
- package/dist/Select/index.d.cts +3 -3
- package/dist/Select/index.d.ts +3 -3
- package/dist/Select/index.js +2 -2
- package/dist/Select-BhS4z0Pj.d.cts +317 -0
- package/dist/Select-BhS4z0Pj.d.ts +317 -0
- package/dist/Switch/index.cjs +3 -3
- package/dist/Switch/index.d.cts +5 -2
- package/dist/Switch/index.d.ts +5 -2
- package/dist/Switch/index.js +2 -2
- package/dist/Switch-Fdldj8LV.d.cts +126 -0
- package/dist/Switch-Fdldj8LV.d.ts +126 -0
- package/dist/TextArea/index.cjs +3 -3
- package/dist/TextArea/index.js +2 -2
- package/dist/{chunk-OCR2UWG2.cjs → chunk-4RTJ5XR2.cjs} +3 -3
- package/dist/{chunk-OCR2UWG2.cjs.map → chunk-4RTJ5XR2.cjs.map} +1 -1
- package/dist/{chunk-FMQNL3RT.js → chunk-F7GG67YU.js} +2 -2
- package/dist/{chunk-W24WP5YE.cjs → chunk-HFMFDBEV.cjs} +46 -14
- package/dist/chunk-HFMFDBEV.cjs.map +1 -0
- package/dist/{chunk-NHPQEYYN.js → chunk-HOCRJOEU.js} +2 -2
- package/dist/{chunk-TNELIBCV.cjs → chunk-JDRMKZ35.cjs} +4 -4
- package/dist/{chunk-TNELIBCV.cjs.map → chunk-JDRMKZ35.cjs.map} +1 -1
- package/dist/{chunk-4AHVJWTB.js → chunk-JG5VQZ4V.js} +46 -14
- package/dist/chunk-JG5VQZ4V.js.map +1 -0
- package/dist/{chunk-5UHHZ7KY.cjs → chunk-JRFKYVXY.cjs} +3 -3
- package/dist/{chunk-5UHHZ7KY.cjs.map → chunk-JRFKYVXY.cjs.map} +1 -1
- package/dist/chunk-LDW7K7LW.js +231 -0
- package/dist/chunk-LDW7K7LW.js.map +1 -0
- package/dist/{chunk-INTLZONV.cjs → chunk-NQ4JZ7AK.cjs} +37 -15
- package/dist/chunk-NQ4JZ7AK.cjs.map +1 -0
- package/dist/{chunk-QVBZ5RLN.cjs → chunk-NXTXKBTP.cjs} +104 -113
- package/dist/chunk-NXTXKBTP.cjs.map +1 -0
- package/dist/{chunk-QTL5FREE.cjs → chunk-OHJYXA6R.cjs} +7 -5
- package/dist/chunk-OHJYXA6R.cjs.map +1 -0
- package/dist/{chunk-YUAJN6HW.cjs → chunk-PAX2HXPK.cjs} +54 -19
- package/dist/chunk-PAX2HXPK.cjs.map +1 -0
- package/dist/{chunk-AVKEYJH7.js → chunk-PFX4YRWI.js} +38 -16
- package/dist/chunk-PFX4YRWI.js.map +1 -0
- package/dist/{chunk-DTSX7YON.js → chunk-SCTH3FAO.js} +2 -2
- package/dist/{chunk-ARUVDZFG.js → chunk-VZFPQ6ZZ.js} +54 -19
- package/dist/chunk-VZFPQ6ZZ.js.map +1 -0
- package/dist/{chunk-DBLODROX.js → chunk-WKM2D7LF.js} +7 -5
- package/dist/chunk-WKM2D7LF.js.map +1 -0
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +10 -10
- package/dist/partials/FieldValidationError/index.cjs +2 -2
- package/dist/partials/FieldValidationError/index.d.cts +2 -2
- package/dist/partials/FieldValidationError/index.d.ts +2 -2
- package/dist/partials/FieldValidationError/index.js +1 -1
- package/package.json +6 -6
- package/dist/CheckboxGroup-BYsQ0A0q.d.cts +0 -32
- package/dist/CheckboxGroup-BYsQ0A0q.d.ts +0 -32
- package/dist/RadioGroup-BU4K9cnS.d.cts +0 -40
- package/dist/RadioGroup-BU4K9cnS.d.ts +0 -40
- package/dist/Select-C08Oftdr.d.cts +0 -184
- package/dist/Select-C08Oftdr.d.ts +0 -184
- package/dist/Switch-OkO3GdPy.d.cts +0 -20
- package/dist/Switch-OkO3GdPy.d.ts +0 -20
- package/dist/chunk-4AHVJWTB.js.map +0 -1
- package/dist/chunk-ARUVDZFG.js.map +0 -1
- package/dist/chunk-AVKEYJH7.js.map +0 -1
- package/dist/chunk-DBLODROX.js.map +0 -1
- package/dist/chunk-I5M2A3MN.js +0 -240
- package/dist/chunk-I5M2A3MN.js.map +0 -1
- package/dist/chunk-INTLZONV.cjs.map +0 -1
- package/dist/chunk-QTL5FREE.cjs.map +0 -1
- package/dist/chunk-QVBZ5RLN.cjs.map +0 -1
- package/dist/chunk-W24WP5YE.cjs.map +0 -1
- package/dist/chunk-YUAJN6HW.cjs.map +0 -1
- /package/dist/{chunk-FMQNL3RT.js.map → chunk-F7GG67YU.js.map} +0 -0
- /package/dist/{chunk-NHPQEYYN.js.map → chunk-HOCRJOEU.js.map} +0 -0
- /package/dist/{chunk-DTSX7YON.js.map → chunk-SCTH3FAO.js.map} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkHFMFDBEVcjs = require('../chunk-HFMFDBEV.cjs');
|
|
5
5
|
require('../chunk-KMMS4G7A.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-OHJYXA6R.cjs');
|
|
7
7
|
require('../chunk-LDCRR7FP.cjs');
|
|
8
8
|
require('../chunk-BBB4FEY6.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.CheckboxGroup =
|
|
12
|
+
exports.CheckboxGroup = _chunkHFMFDBEVcjs.CheckboxGroup_default; exports.default = _chunkHFMFDBEVcjs.CheckboxGroup_default2;
|
|
13
13
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { C as CheckboxGroup } from '../CheckboxGroup-
|
|
2
|
-
export { b as CheckboxGroupOption, a as CheckboxGroupProps } from '../CheckboxGroup-
|
|
1
|
+
import { C as CheckboxGroup } from '../CheckboxGroup-o-qWkWe1.cjs';
|
|
2
|
+
export { b as CheckboxGroupOption, a as CheckboxGroupProps } from '../CheckboxGroup-o-qWkWe1.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
|
+
import 'tailwind-variants/dist/config.js';
|
|
5
|
+
import 'tailwind-variants';
|
|
6
|
+
import '@fuf-stack/pixel-utils';
|
|
4
7
|
|
|
5
8
|
|
|
6
9
|
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { C as CheckboxGroup } from '../CheckboxGroup-
|
|
2
|
-
export { b as CheckboxGroupOption, a as CheckboxGroupProps } from '../CheckboxGroup-
|
|
1
|
+
import { C as CheckboxGroup } from '../CheckboxGroup-o-qWkWe1.js';
|
|
2
|
+
export { b as CheckboxGroupOption, a as CheckboxGroupProps } from '../CheckboxGroup-o-qWkWe1.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
|
+
import 'tailwind-variants/dist/config.js';
|
|
5
|
+
import 'tailwind-variants';
|
|
6
|
+
import '@fuf-stack/pixel-utils';
|
|
4
7
|
|
|
5
8
|
|
|
6
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CheckboxGroup_default,
|
|
3
3
|
CheckboxGroup_default2
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-JG5VQZ4V.js";
|
|
5
5
|
import "../chunk-T3CCNJHK.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-WKM2D7LF.js";
|
|
7
7
|
import "../chunk-HWDQZO7X.js";
|
|
8
8
|
import "../chunk-V46BHM2U.js";
|
|
9
9
|
export {
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
3
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
4
|
+
import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
|
|
5
|
+
|
|
6
|
+
declare const checkboxGroupVariants: tailwind_variants.TVReturnType<{
|
|
7
|
+
[key: string]: {
|
|
8
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
9
|
+
base?: tailwind_variants.ClassValue;
|
|
10
|
+
label?: tailwind_variants.ClassValue;
|
|
11
|
+
errorMessage?: tailwind_variants.ClassValue;
|
|
12
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
13
|
+
itemIcon?: tailwind_variants.ClassValue;
|
|
14
|
+
itemLabel?: tailwind_variants.ClassValue;
|
|
15
|
+
itemWrapper?: tailwind_variants.ClassValue;
|
|
16
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
} | {
|
|
20
|
+
[x: string]: {
|
|
21
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
22
|
+
base?: tailwind_variants.ClassValue;
|
|
23
|
+
label?: tailwind_variants.ClassValue;
|
|
24
|
+
errorMessage?: tailwind_variants.ClassValue;
|
|
25
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
26
|
+
itemIcon?: tailwind_variants.ClassValue;
|
|
27
|
+
itemLabel?: tailwind_variants.ClassValue;
|
|
28
|
+
itemWrapper?: tailwind_variants.ClassValue;
|
|
29
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
} | {}, {
|
|
33
|
+
base: string;
|
|
34
|
+
errorMessage: string;
|
|
35
|
+
itemBase: string;
|
|
36
|
+
itemIcon: string;
|
|
37
|
+
itemLabel: string;
|
|
38
|
+
itemWrapper: string;
|
|
39
|
+
label: string;
|
|
40
|
+
wrapper: string;
|
|
41
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
|
|
42
|
+
[key: string]: {
|
|
43
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
44
|
+
base?: tailwind_variants.ClassValue;
|
|
45
|
+
label?: tailwind_variants.ClassValue;
|
|
46
|
+
errorMessage?: tailwind_variants.ClassValue;
|
|
47
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
48
|
+
itemIcon?: tailwind_variants.ClassValue;
|
|
49
|
+
itemLabel?: tailwind_variants.ClassValue;
|
|
50
|
+
itemWrapper?: tailwind_variants.ClassValue;
|
|
51
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
} | {}>, {
|
|
55
|
+
[key: string]: {
|
|
56
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
57
|
+
base?: tailwind_variants.ClassValue;
|
|
58
|
+
label?: tailwind_variants.ClassValue;
|
|
59
|
+
errorMessage?: tailwind_variants.ClassValue;
|
|
60
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
61
|
+
itemIcon?: tailwind_variants.ClassValue;
|
|
62
|
+
itemLabel?: tailwind_variants.ClassValue;
|
|
63
|
+
itemWrapper?: tailwind_variants.ClassValue;
|
|
64
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
} | {}, {
|
|
68
|
+
base: string;
|
|
69
|
+
errorMessage: string;
|
|
70
|
+
itemBase: string;
|
|
71
|
+
itemIcon: string;
|
|
72
|
+
itemLabel: string;
|
|
73
|
+
itemWrapper: string;
|
|
74
|
+
label: string;
|
|
75
|
+
wrapper: string;
|
|
76
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
77
|
+
base: string;
|
|
78
|
+
errorMessage: string;
|
|
79
|
+
itemBase: string;
|
|
80
|
+
itemIcon: string;
|
|
81
|
+
itemLabel: string;
|
|
82
|
+
itemWrapper: string;
|
|
83
|
+
label: string;
|
|
84
|
+
wrapper: string;
|
|
85
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
|
|
86
|
+
[key: string]: {
|
|
87
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
88
|
+
base?: tailwind_variants.ClassValue;
|
|
89
|
+
label?: tailwind_variants.ClassValue;
|
|
90
|
+
errorMessage?: tailwind_variants.ClassValue;
|
|
91
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
92
|
+
itemIcon?: tailwind_variants.ClassValue;
|
|
93
|
+
itemLabel?: tailwind_variants.ClassValue;
|
|
94
|
+
itemWrapper?: tailwind_variants.ClassValue;
|
|
95
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
99
|
+
type VariantProps = TVProps<typeof checkboxGroupVariants>;
|
|
100
|
+
type ClassName = TVClassName<typeof checkboxGroupVariants>;
|
|
101
|
+
type CheckboxGroupOption = {
|
|
102
|
+
/** option label */
|
|
103
|
+
label?: React.ReactNode;
|
|
104
|
+
/** option value */
|
|
105
|
+
value: string;
|
|
106
|
+
/** disables the option */
|
|
107
|
+
disabled?: boolean;
|
|
108
|
+
/** HTML data-testid attribute of the option */
|
|
109
|
+
testId?: string;
|
|
110
|
+
};
|
|
111
|
+
interface CheckboxGroupProps extends VariantProps {
|
|
112
|
+
/** CSS class name. ClassName: string | { buttons?: string | { base?: string; active?: string }; base?: string;} */
|
|
113
|
+
className?: ClassName;
|
|
114
|
+
/** label displayed above the Checkboxes */
|
|
115
|
+
label?: React.ReactNode;
|
|
116
|
+
/** Name the Field is registered on the form. */
|
|
117
|
+
name: string;
|
|
118
|
+
/** Checkboxes that should be displayed. */
|
|
119
|
+
options: CheckboxGroupOption[];
|
|
120
|
+
/** sets all buttons disabled */
|
|
121
|
+
disabled?: boolean;
|
|
122
|
+
/** id for internal testing. */
|
|
123
|
+
testId?: string;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* CheckboxGroup component based on [NextUI CheckboxGroup](https://nextui.org/docs/components/checkbox-group)
|
|
127
|
+
*/
|
|
128
|
+
declare const CheckboxGroup: ({ className, label, options, disabled, name, testId: _testId, }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
129
|
+
|
|
130
|
+
export { CheckboxGroup as C, type CheckboxGroupProps as a, type CheckboxGroupOption as b };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
3
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
4
|
+
import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
|
|
5
|
+
|
|
6
|
+
declare const checkboxGroupVariants: tailwind_variants.TVReturnType<{
|
|
7
|
+
[key: string]: {
|
|
8
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
9
|
+
base?: tailwind_variants.ClassValue;
|
|
10
|
+
label?: tailwind_variants.ClassValue;
|
|
11
|
+
errorMessage?: tailwind_variants.ClassValue;
|
|
12
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
13
|
+
itemIcon?: tailwind_variants.ClassValue;
|
|
14
|
+
itemLabel?: tailwind_variants.ClassValue;
|
|
15
|
+
itemWrapper?: tailwind_variants.ClassValue;
|
|
16
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
} | {
|
|
20
|
+
[x: string]: {
|
|
21
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
22
|
+
base?: tailwind_variants.ClassValue;
|
|
23
|
+
label?: tailwind_variants.ClassValue;
|
|
24
|
+
errorMessage?: tailwind_variants.ClassValue;
|
|
25
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
26
|
+
itemIcon?: tailwind_variants.ClassValue;
|
|
27
|
+
itemLabel?: tailwind_variants.ClassValue;
|
|
28
|
+
itemWrapper?: tailwind_variants.ClassValue;
|
|
29
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
} | {}, {
|
|
33
|
+
base: string;
|
|
34
|
+
errorMessage: string;
|
|
35
|
+
itemBase: string;
|
|
36
|
+
itemIcon: string;
|
|
37
|
+
itemLabel: string;
|
|
38
|
+
itemWrapper: string;
|
|
39
|
+
label: string;
|
|
40
|
+
wrapper: string;
|
|
41
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
|
|
42
|
+
[key: string]: {
|
|
43
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
44
|
+
base?: tailwind_variants.ClassValue;
|
|
45
|
+
label?: tailwind_variants.ClassValue;
|
|
46
|
+
errorMessage?: tailwind_variants.ClassValue;
|
|
47
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
48
|
+
itemIcon?: tailwind_variants.ClassValue;
|
|
49
|
+
itemLabel?: tailwind_variants.ClassValue;
|
|
50
|
+
itemWrapper?: tailwind_variants.ClassValue;
|
|
51
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
} | {}>, {
|
|
55
|
+
[key: string]: {
|
|
56
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
57
|
+
base?: tailwind_variants.ClassValue;
|
|
58
|
+
label?: tailwind_variants.ClassValue;
|
|
59
|
+
errorMessage?: tailwind_variants.ClassValue;
|
|
60
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
61
|
+
itemIcon?: tailwind_variants.ClassValue;
|
|
62
|
+
itemLabel?: tailwind_variants.ClassValue;
|
|
63
|
+
itemWrapper?: tailwind_variants.ClassValue;
|
|
64
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
} | {}, {
|
|
68
|
+
base: string;
|
|
69
|
+
errorMessage: string;
|
|
70
|
+
itemBase: string;
|
|
71
|
+
itemIcon: string;
|
|
72
|
+
itemLabel: string;
|
|
73
|
+
itemWrapper: string;
|
|
74
|
+
label: string;
|
|
75
|
+
wrapper: string;
|
|
76
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
77
|
+
base: string;
|
|
78
|
+
errorMessage: string;
|
|
79
|
+
itemBase: string;
|
|
80
|
+
itemIcon: string;
|
|
81
|
+
itemLabel: string;
|
|
82
|
+
itemWrapper: string;
|
|
83
|
+
label: string;
|
|
84
|
+
wrapper: string;
|
|
85
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
|
|
86
|
+
[key: string]: {
|
|
87
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
88
|
+
base?: tailwind_variants.ClassValue;
|
|
89
|
+
label?: tailwind_variants.ClassValue;
|
|
90
|
+
errorMessage?: tailwind_variants.ClassValue;
|
|
91
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
92
|
+
itemIcon?: tailwind_variants.ClassValue;
|
|
93
|
+
itemLabel?: tailwind_variants.ClassValue;
|
|
94
|
+
itemWrapper?: tailwind_variants.ClassValue;
|
|
95
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
99
|
+
type VariantProps = TVProps<typeof checkboxGroupVariants>;
|
|
100
|
+
type ClassName = TVClassName<typeof checkboxGroupVariants>;
|
|
101
|
+
type CheckboxGroupOption = {
|
|
102
|
+
/** option label */
|
|
103
|
+
label?: React.ReactNode;
|
|
104
|
+
/** option value */
|
|
105
|
+
value: string;
|
|
106
|
+
/** disables the option */
|
|
107
|
+
disabled?: boolean;
|
|
108
|
+
/** HTML data-testid attribute of the option */
|
|
109
|
+
testId?: string;
|
|
110
|
+
};
|
|
111
|
+
interface CheckboxGroupProps extends VariantProps {
|
|
112
|
+
/** CSS class name. ClassName: string | { buttons?: string | { base?: string; active?: string }; base?: string;} */
|
|
113
|
+
className?: ClassName;
|
|
114
|
+
/** label displayed above the Checkboxes */
|
|
115
|
+
label?: React.ReactNode;
|
|
116
|
+
/** Name the Field is registered on the form. */
|
|
117
|
+
name: string;
|
|
118
|
+
/** Checkboxes that should be displayed. */
|
|
119
|
+
options: CheckboxGroupOption[];
|
|
120
|
+
/** sets all buttons disabled */
|
|
121
|
+
disabled?: boolean;
|
|
122
|
+
/** id for internal testing. */
|
|
123
|
+
testId?: string;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* CheckboxGroup component based on [NextUI CheckboxGroup](https://nextui.org/docs/components/checkbox-group)
|
|
127
|
+
*/
|
|
128
|
+
declare const CheckboxGroup: ({ className, label, options, disabled, name, testId: _testId, }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
129
|
+
|
|
130
|
+
export { CheckboxGroup as C, type CheckboxGroupProps as a, type CheckboxGroupOption as b };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkJDRMKZ35cjs = require('../chunk-JDRMKZ35.cjs');
|
|
5
5
|
require('../chunk-KMMS4G7A.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-OHJYXA6R.cjs');
|
|
7
7
|
require('../chunk-LDCRR7FP.cjs');
|
|
8
8
|
require('../chunk-BBB4FEY6.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.FieldArray =
|
|
12
|
+
exports.FieldArray = _chunkJDRMKZ35cjs.FieldArray_default; exports.default = _chunkJDRMKZ35cjs.FieldArray_default2;
|
|
13
13
|
//# sourceMappingURL=index.cjs.map
|
package/dist/FieldArray/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FieldArray_default,
|
|
3
3
|
FieldArray_default2
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-F7GG67YU.js";
|
|
5
5
|
import "../chunk-T3CCNJHK.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-WKM2D7LF.js";
|
|
7
7
|
import "../chunk-HWDQZO7X.js";
|
|
8
8
|
import "../chunk-V46BHM2U.js";
|
|
9
9
|
export {
|
|
@@ -2,12 +2,13 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { FieldError } from 'react-hook-form';
|
|
3
3
|
|
|
4
4
|
interface FieldValidationErrorProps {
|
|
5
|
+
className?: string;
|
|
5
6
|
error: FieldError[] | Record<string, FieldError[]>;
|
|
6
7
|
testId?: string;
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
10
|
* Renders a validation error of a field
|
|
10
11
|
*/
|
|
11
|
-
declare const FieldValidationError: ({ error, testId, }: FieldValidationErrorProps) => react_jsx_runtime.JSX.Element | null;
|
|
12
|
+
declare const FieldValidationError: ({ className, error, testId, }: FieldValidationErrorProps) => react_jsx_runtime.JSX.Element | null;
|
|
12
13
|
|
|
13
14
|
export { FieldValidationError as F, type FieldValidationErrorProps as a };
|
|
@@ -2,12 +2,13 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { FieldError } from 'react-hook-form';
|
|
3
3
|
|
|
4
4
|
interface FieldValidationErrorProps {
|
|
5
|
+
className?: string;
|
|
5
6
|
error: FieldError[] | Record<string, FieldError[]>;
|
|
6
7
|
testId?: string;
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
10
|
* Renders a validation error of a field
|
|
10
11
|
*/
|
|
11
|
-
declare const FieldValidationError: ({ error, testId, }: FieldValidationErrorProps) => react_jsx_runtime.JSX.Element | null;
|
|
12
|
+
declare const FieldValidationError: ({ className, error, testId, }: FieldValidationErrorProps) => react_jsx_runtime.JSX.Element | null;
|
|
12
13
|
|
|
13
14
|
export { FieldValidationError as F, type FieldValidationErrorProps as a };
|
package/dist/Input/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkJRFKYVXYcjs = require('../chunk-JRFKYVXY.cjs');
|
|
5
5
|
require('../chunk-KMMS4G7A.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-OHJYXA6R.cjs');
|
|
7
7
|
require('../chunk-LDCRR7FP.cjs');
|
|
8
8
|
require('../chunk-BBB4FEY6.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.Input =
|
|
12
|
+
exports.Input = _chunkJRFKYVXYcjs.Input_default; exports.default = _chunkJRFKYVXYcjs.Input_default2;
|
|
13
13
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Input/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Input_default,
|
|
3
3
|
Input_default2
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-SCTH3FAO.js";
|
|
5
5
|
import "../chunk-T3CCNJHK.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-WKM2D7LF.js";
|
|
7
7
|
import "../chunk-HWDQZO7X.js";
|
|
8
8
|
import "../chunk-V46BHM2U.js";
|
|
9
9
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkPAX2HXPKcjs = require('../chunk-PAX2HXPK.cjs');
|
|
5
5
|
require('../chunk-KMMS4G7A.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-OHJYXA6R.cjs');
|
|
7
7
|
require('../chunk-LDCRR7FP.cjs');
|
|
8
8
|
require('../chunk-BBB4FEY6.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.RadioGroup =
|
|
12
|
+
exports.RadioGroup = _chunkPAX2HXPKcjs.RadioGroup_default; exports.default = _chunkPAX2HXPKcjs.RadioGroup_default2;
|
|
13
13
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { R as RadioGroup } from '../RadioGroup-
|
|
2
|
-
export { a as RadioGroupProps } from '../RadioGroup-
|
|
1
|
+
import { R as RadioGroup } from '../RadioGroup-D_kiBt0M.cjs';
|
|
2
|
+
export { a as RadioGroupProps } from '../RadioGroup-D_kiBt0M.cjs';
|
|
3
|
+
import 'tailwind-variants/dist/config.js';
|
|
4
|
+
import 'tailwind-variants';
|
|
5
|
+
import '@fuf-stack/pixel-utils';
|
|
3
6
|
import 'react';
|
|
4
7
|
|
|
5
8
|
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { R as RadioGroup } from '../RadioGroup-
|
|
2
|
-
export { a as RadioGroupProps } from '../RadioGroup-
|
|
1
|
+
import { R as RadioGroup } from '../RadioGroup-D_kiBt0M.js';
|
|
2
|
+
export { a as RadioGroupProps } from '../RadioGroup-D_kiBt0M.js';
|
|
3
|
+
import 'tailwind-variants/dist/config.js';
|
|
4
|
+
import 'tailwind-variants';
|
|
5
|
+
import '@fuf-stack/pixel-utils';
|
|
3
6
|
import 'react';
|
|
4
7
|
|
|
5
8
|
|
package/dist/RadioGroup/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RadioGroup_default,
|
|
3
3
|
RadioGroup_default2
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-VZFPQ6ZZ.js";
|
|
5
5
|
import "../chunk-T3CCNJHK.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-WKM2D7LF.js";
|
|
7
7
|
import "../chunk-HWDQZO7X.js";
|
|
8
8
|
import "../chunk-V46BHM2U.js";
|
|
9
9
|
export {
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
2
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
3
|
+
import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
|
|
4
|
+
import { ReactNode, ReactElement } from 'react';
|
|
5
|
+
|
|
6
|
+
declare const radioGroupVariants: tailwind_variants.TVReturnType<{
|
|
7
|
+
[key: string]: {
|
|
8
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
9
|
+
base?: tailwind_variants.ClassValue;
|
|
10
|
+
label?: tailwind_variants.ClassValue;
|
|
11
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
12
|
+
itemLabel?: tailwind_variants.ClassValue;
|
|
13
|
+
itemWrapper?: tailwind_variants.ClassValue;
|
|
14
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
15
|
+
buttonGroup?: tailwind_variants.ClassValue;
|
|
16
|
+
itemBaseActive?: tailwind_variants.ClassValue;
|
|
17
|
+
itemControl?: tailwind_variants.ClassValue;
|
|
18
|
+
itemDescription?: tailwind_variants.ClassValue;
|
|
19
|
+
itemLabelWrapper?: tailwind_variants.ClassValue;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
} | {
|
|
23
|
+
[x: string]: {
|
|
24
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
25
|
+
base?: tailwind_variants.ClassValue;
|
|
26
|
+
label?: tailwind_variants.ClassValue;
|
|
27
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
28
|
+
itemLabel?: tailwind_variants.ClassValue;
|
|
29
|
+
itemWrapper?: tailwind_variants.ClassValue;
|
|
30
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
31
|
+
buttonGroup?: tailwind_variants.ClassValue;
|
|
32
|
+
itemBaseActive?: tailwind_variants.ClassValue;
|
|
33
|
+
itemControl?: tailwind_variants.ClassValue;
|
|
34
|
+
itemDescription?: tailwind_variants.ClassValue;
|
|
35
|
+
itemLabelWrapper?: tailwind_variants.ClassValue;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
} | {}, {
|
|
39
|
+
base: string;
|
|
40
|
+
buttonGroup: string;
|
|
41
|
+
itemBase: string;
|
|
42
|
+
itemBaseActive: string;
|
|
43
|
+
itemControl: string;
|
|
44
|
+
itemDescription: string;
|
|
45
|
+
itemLabel: string;
|
|
46
|
+
itemLabelWrapper: string;
|
|
47
|
+
itemWrapper: string;
|
|
48
|
+
label: string;
|
|
49
|
+
wrapper: string;
|
|
50
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
|
|
51
|
+
[key: string]: {
|
|
52
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
53
|
+
base?: tailwind_variants.ClassValue;
|
|
54
|
+
label?: tailwind_variants.ClassValue;
|
|
55
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
56
|
+
itemLabel?: tailwind_variants.ClassValue;
|
|
57
|
+
itemWrapper?: tailwind_variants.ClassValue;
|
|
58
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
59
|
+
buttonGroup?: tailwind_variants.ClassValue;
|
|
60
|
+
itemBaseActive?: tailwind_variants.ClassValue;
|
|
61
|
+
itemControl?: tailwind_variants.ClassValue;
|
|
62
|
+
itemDescription?: tailwind_variants.ClassValue;
|
|
63
|
+
itemLabelWrapper?: tailwind_variants.ClassValue;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
} | {}>, {
|
|
67
|
+
[key: string]: {
|
|
68
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
69
|
+
base?: tailwind_variants.ClassValue;
|
|
70
|
+
label?: tailwind_variants.ClassValue;
|
|
71
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
72
|
+
itemLabel?: tailwind_variants.ClassValue;
|
|
73
|
+
itemWrapper?: tailwind_variants.ClassValue;
|
|
74
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
75
|
+
buttonGroup?: tailwind_variants.ClassValue;
|
|
76
|
+
itemBaseActive?: tailwind_variants.ClassValue;
|
|
77
|
+
itemControl?: tailwind_variants.ClassValue;
|
|
78
|
+
itemDescription?: tailwind_variants.ClassValue;
|
|
79
|
+
itemLabelWrapper?: tailwind_variants.ClassValue;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
} | {}, {
|
|
83
|
+
base: string;
|
|
84
|
+
buttonGroup: string;
|
|
85
|
+
itemBase: string;
|
|
86
|
+
itemBaseActive: string;
|
|
87
|
+
itemControl: string;
|
|
88
|
+
itemDescription: string;
|
|
89
|
+
itemLabel: string;
|
|
90
|
+
itemLabelWrapper: string;
|
|
91
|
+
itemWrapper: string;
|
|
92
|
+
label: string;
|
|
93
|
+
wrapper: string;
|
|
94
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
95
|
+
base: string;
|
|
96
|
+
buttonGroup: string;
|
|
97
|
+
itemBase: string;
|
|
98
|
+
itemBaseActive: string;
|
|
99
|
+
itemControl: string;
|
|
100
|
+
itemDescription: string;
|
|
101
|
+
itemLabel: string;
|
|
102
|
+
itemLabelWrapper: string;
|
|
103
|
+
itemWrapper: string;
|
|
104
|
+
label: string;
|
|
105
|
+
wrapper: string;
|
|
106
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<unknown, {
|
|
107
|
+
[key: string]: {
|
|
108
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
109
|
+
base?: tailwind_variants.ClassValue;
|
|
110
|
+
label?: tailwind_variants.ClassValue;
|
|
111
|
+
itemBase?: tailwind_variants.ClassValue;
|
|
112
|
+
itemLabel?: tailwind_variants.ClassValue;
|
|
113
|
+
itemWrapper?: tailwind_variants.ClassValue;
|
|
114
|
+
wrapper?: tailwind_variants.ClassValue;
|
|
115
|
+
buttonGroup?: tailwind_variants.ClassValue;
|
|
116
|
+
itemBaseActive?: tailwind_variants.ClassValue;
|
|
117
|
+
itemControl?: tailwind_variants.ClassValue;
|
|
118
|
+
itemDescription?: tailwind_variants.ClassValue;
|
|
119
|
+
itemLabelWrapper?: tailwind_variants.ClassValue;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
123
|
+
type VariantProps = TVProps<typeof radioGroupVariants>;
|
|
124
|
+
type ClassName = TVClassName<typeof radioGroupVariants>;
|
|
125
|
+
interface RadioGroupOption {
|
|
126
|
+
/** Description of the value. Works with variant radioBox. */
|
|
127
|
+
description?: React.ReactNode;
|
|
128
|
+
/** disables the option */
|
|
129
|
+
disabled?: boolean;
|
|
130
|
+
/** option label */
|
|
131
|
+
label?: React.ReactNode;
|
|
132
|
+
/** option icon */
|
|
133
|
+
icon?: ReactNode;
|
|
134
|
+
/** HTML data-testid attribute of the option */
|
|
135
|
+
testId?: string;
|
|
136
|
+
/** option value */
|
|
137
|
+
value: string;
|
|
138
|
+
}
|
|
139
|
+
interface RadioGroupProps extends VariantProps {
|
|
140
|
+
/** CSS class name */
|
|
141
|
+
className?: ClassName;
|
|
142
|
+
/** Determines if the Buttons are disabled or not. */
|
|
143
|
+
disabled?: boolean;
|
|
144
|
+
/** determines orientation of the Buttons. */
|
|
145
|
+
inline?: boolean;
|
|
146
|
+
/** Label displayed next to the RadioButton. */
|
|
147
|
+
label?: ReactNode;
|
|
148
|
+
/** Name the RadioButtons are registered at in HTML forms (react-hook-form). */
|
|
149
|
+
name: string;
|
|
150
|
+
/** Radio button configuration. */
|
|
151
|
+
options: RadioGroupOption[];
|
|
152
|
+
/** Id to grab element in internal tests. */
|
|
153
|
+
testId?: string;
|
|
154
|
+
/** How the RadioGroup should look like. */
|
|
155
|
+
variant?: 'default' | 'radioBox' | 'radioButton';
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* RadioGroup component based on [NextUI RadioGroup](https://nextui.org/docs/components/radio-group)
|
|
159
|
+
*/
|
|
160
|
+
declare const RadioGroup: ({ className, disabled, inline, label, name, options, testId: _testId, variant, }: RadioGroupProps) => ReactElement;
|
|
161
|
+
|
|
162
|
+
export { RadioGroup as R, type RadioGroupProps as a };
|