@fuf-stack/uniform 0.3.2 → 0.5.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.
Files changed (110) hide show
  1. package/dist/FieldArray/index.cjs +13 -0
  2. package/dist/FieldArray/index.cjs.map +1 -0
  3. package/dist/FieldArray/index.d.cts +8 -0
  4. package/dist/FieldArray/index.d.ts +8 -0
  5. package/dist/FieldArray/index.js +13 -0
  6. package/dist/FieldArray/index.js.map +1 -0
  7. package/dist/FieldArray-DUvn98Fe.d.cts +27 -0
  8. package/dist/FieldArray-DUvn98Fe.d.ts +27 -0
  9. package/dist/Form/index.cjs +2 -2
  10. package/dist/Form/index.js +1 -1
  11. package/dist/Grid/index.cjs +2 -2
  12. package/dist/Grid/index.js +1 -1
  13. package/dist/Input/index.cjs +3 -3
  14. package/dist/Input/index.d.cts +2 -2
  15. package/dist/Input/index.d.ts +2 -2
  16. package/dist/Input/index.js +2 -2
  17. package/dist/{Input-B_rP1h4X.d.cts → Input-B6dNQiiD.d.cts} +3 -1
  18. package/dist/{Input-B_rP1h4X.d.ts → Input-B6dNQiiD.d.ts} +3 -1
  19. package/dist/RadioGroup/index.cjs +13 -0
  20. package/dist/RadioGroup/index.cjs.map +1 -0
  21. package/dist/RadioGroup/index.d.cts +7 -0
  22. package/dist/RadioGroup/index.d.ts +7 -0
  23. package/dist/RadioGroup/index.js +13 -0
  24. package/dist/RadioGroup/index.js.map +1 -0
  25. package/dist/RadioGroup-BU4K9cnS.d.cts +40 -0
  26. package/dist/RadioGroup-BU4K9cnS.d.ts +40 -0
  27. package/dist/Select/index.cjs +13 -0
  28. package/dist/Select/index.cjs.map +1 -0
  29. package/dist/Select/index.d.cts +8 -0
  30. package/dist/Select/index.d.ts +8 -0
  31. package/dist/Select/index.js +13 -0
  32. package/dist/Select/index.js.map +1 -0
  33. package/dist/Select-Mp6Y00dT.d.cts +40 -0
  34. package/dist/Select-Mp6Y00dT.d.ts +40 -0
  35. package/dist/SubmitButton/index.cjs +2 -2
  36. package/dist/SubmitButton/index.js +1 -1
  37. package/dist/Switch/index.cjs +13 -0
  38. package/dist/Switch/index.cjs.map +1 -0
  39. package/dist/Switch/index.d.cts +7 -0
  40. package/dist/Switch/index.d.ts +7 -0
  41. package/dist/Switch/index.js +13 -0
  42. package/dist/Switch/index.js.map +1 -0
  43. package/dist/Switch-DmjDKgKs.d.cts +20 -0
  44. package/dist/Switch-DmjDKgKs.d.ts +20 -0
  45. package/dist/TextArea/index.cjs +13 -0
  46. package/dist/TextArea/index.cjs.map +1 -0
  47. package/dist/TextArea/index.d.cts +8 -0
  48. package/dist/TextArea/index.d.ts +8 -0
  49. package/dist/TextArea/index.js +13 -0
  50. package/dist/TextArea/index.js.map +1 -0
  51. package/dist/TextArea-B-sKvTkd.d.cts +25 -0
  52. package/dist/TextArea-B-sKvTkd.d.ts +25 -0
  53. package/dist/{chunk-3DMR7T4D.js → chunk-2Z3YMYNN.js} +8 -6
  54. package/dist/chunk-2Z3YMYNN.js.map +1 -0
  55. package/dist/chunk-4IT2WVQK.cjs +76 -0
  56. package/dist/chunk-4IT2WVQK.cjs.map +1 -0
  57. package/dist/{chunk-TEJGV6NC.js → chunk-5FMJUJ7H.js} +2 -2
  58. package/dist/chunk-5FMJUJ7H.js.map +1 -0
  59. package/dist/{chunk-ZPFKVKGV.cjs → chunk-6GN255GP.cjs} +4 -4
  60. package/dist/chunk-6GN255GP.cjs.map +1 -0
  61. package/dist/chunk-6NZVSPFX.js +76 -0
  62. package/dist/chunk-6NZVSPFX.js.map +1 -0
  63. package/dist/{chunk-XUKBLFTR.cjs → chunk-AGAYQTFD.cjs} +4 -4
  64. package/dist/chunk-AGAYQTFD.cjs.map +1 -0
  65. package/dist/chunk-BIJVBXOG.js +205 -0
  66. package/dist/chunk-BIJVBXOG.js.map +1 -0
  67. package/dist/{chunk-4BELEHDQ.cjs → chunk-BNTEIMNY.cjs} +5 -5
  68. package/dist/chunk-BNTEIMNY.cjs.map +1 -0
  69. package/dist/chunk-CRKMTDKU.js +239 -0
  70. package/dist/chunk-CRKMTDKU.js.map +1 -0
  71. package/dist/chunk-EXYTFHEJ.js +81 -0
  72. package/dist/chunk-EXYTFHEJ.js.map +1 -0
  73. package/dist/{chunk-22AA557I.cjs → chunk-HT3LKDHX.cjs} +4 -4
  74. package/dist/chunk-HT3LKDHX.cjs.map +1 -0
  75. package/dist/chunk-I22ICCUC.cjs +205 -0
  76. package/dist/chunk-I22ICCUC.cjs.map +1 -0
  77. package/dist/chunk-I26DVRVR.js +287 -0
  78. package/dist/chunk-I26DVRVR.js.map +1 -0
  79. package/dist/{chunk-6XKDXQ4A.js → chunk-KFRKKWZT.js} +3 -3
  80. package/dist/chunk-KFRKKWZT.js.map +1 -0
  81. package/dist/chunk-NVJKXQ5W.cjs +239 -0
  82. package/dist/chunk-NVJKXQ5W.cjs.map +1 -0
  83. package/dist/chunk-OS4SMYPO.cjs +287 -0
  84. package/dist/chunk-OS4SMYPO.cjs.map +1 -0
  85. package/dist/{chunk-FNVT6LS4.js → chunk-OV5RMSYD.js} +2 -2
  86. package/dist/{chunk-22AA557I.cjs.map → chunk-OV5RMSYD.js.map} +1 -1
  87. package/dist/{chunk-4MEKDDB2.js → chunk-PDCEKC3G.js} +2 -2
  88. package/dist/chunk-PDCEKC3G.js.map +1 -0
  89. package/dist/{chunk-2O53LMR3.cjs → chunk-VO7ZM3KY.cjs} +11 -9
  90. package/dist/chunk-VO7ZM3KY.cjs.map +1 -0
  91. package/dist/chunk-XY7ZZARS.cjs +81 -0
  92. package/dist/chunk-XY7ZZARS.cjs.map +1 -0
  93. package/dist/hooks/index.d.cts +2 -2
  94. package/dist/hooks/index.d.ts +2 -2
  95. package/dist/index.cjs +27 -7
  96. package/dist/index.d.cts +8 -2
  97. package/dist/index.d.ts +8 -2
  98. package/dist/index.js +29 -9
  99. package/dist/partials/FieldCopyTestIdButton/index.cjs +2 -2
  100. package/dist/partials/FieldCopyTestIdButton/index.js +1 -1
  101. package/package.json +41 -17
  102. package/dist/chunk-2O53LMR3.cjs.map +0 -1
  103. package/dist/chunk-3DMR7T4D.js.map +0 -1
  104. package/dist/chunk-4BELEHDQ.cjs.map +0 -1
  105. package/dist/chunk-4MEKDDB2.js.map +0 -1
  106. package/dist/chunk-6XKDXQ4A.js.map +0 -1
  107. package/dist/chunk-FNVT6LS4.js.map +0 -1
  108. package/dist/chunk-TEJGV6NC.js.map +0 -1
  109. package/dist/chunk-XUKBLFTR.cjs.map +0 -1
  110. package/dist/chunk-ZPFKVKGV.cjs.map +0 -1
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkOS4SMYPOcjs = require('../chunk-OS4SMYPO.cjs');
5
+ require('../chunk-HT3LKDHX.cjs');
6
+ require('../chunk-QTL5FREE.cjs');
7
+ require('../chunk-WQRM7G4C.cjs');
8
+ require('../chunk-BBB4FEY6.cjs');
9
+
10
+
11
+
12
+ exports.FieldArray = _chunkOS4SMYPOcjs.FieldArray_default; exports.default = _chunkOS4SMYPOcjs.FieldArray_default2;
13
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { F as FieldArray } from '../FieldArray-DUvn98Fe.cjs';
2
+ export { c as FieldArrayFieldChildren, b as FieldArrayHideOption, a as FieldArrayProps } from '../FieldArray-DUvn98Fe.cjs';
3
+ import 'react/jsx-runtime';
4
+ import 'react-hook-form';
5
+
6
+
7
+
8
+ export { FieldArray, FieldArray as default };
@@ -0,0 +1,8 @@
1
+ import { F as FieldArray } from '../FieldArray-DUvn98Fe.js';
2
+ export { c as FieldArrayFieldChildren, b as FieldArrayHideOption, a as FieldArrayProps } from '../FieldArray-DUvn98Fe.js';
3
+ import 'react/jsx-runtime';
4
+ import 'react-hook-form';
5
+
6
+
7
+
8
+ export { FieldArray, FieldArray as default };
@@ -0,0 +1,13 @@
1
+ import {
2
+ FieldArray_default,
3
+ FieldArray_default2
4
+ } from "../chunk-I26DVRVR.js";
5
+ import "../chunk-OV5RMSYD.js";
6
+ import "../chunk-DBLODROX.js";
7
+ import "../chunk-BCMPSLSG.js";
8
+ import "../chunk-V46BHM2U.js";
9
+ export {
10
+ FieldArray_default as FieldArray,
11
+ FieldArray_default2 as default
12
+ };
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,27 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { UseFieldArrayMove, UseFieldArrayInsert, FieldValues, UseFieldArrayRemove } from 'react-hook-form';
3
+
4
+ type FieldArrayHideOption = 'add' | 'remove' | 'move' | 'insert' | 'all';
5
+ type FieldArrayFieldChildren = (name: string, index: number, length: number, move: UseFieldArrayMove, insert: UseFieldArrayInsert<FieldValues, string>, remove: UseFieldArrayRemove, duplicate: (i: number) => void) => JSX.Element;
6
+ type MoveField = 'drag-drop' | 'button';
7
+ interface FieldArrayProps {
8
+ /** function that renders the children with provided Properties. */
9
+ children: FieldArrayFieldChildren;
10
+ /** Hide a set of buttons. */
11
+ hideButtons?: FieldArrayHideOption[];
12
+ /** label of the FieldArray. */
13
+ label?: React.ReactNode;
14
+ /** stops user from deleting all items. */
15
+ lastNotDeletable?: boolean;
16
+ /** name the FieldArray is registered in RHF */
17
+ name: string;
18
+ /** ID for test purposes. */
19
+ testId?: string;
20
+ moveField: MoveField[];
21
+ }
22
+ /**
23
+ * FieldArray component using react-hook-form
24
+ */
25
+ declare const FieldArray: ({ children, hideButtons, label: _label, lastNotDeletable, name, testId: _testId, moveField, }: FieldArrayProps) => react_jsx_runtime.JSX.Element;
26
+
27
+ export { FieldArray as F, type FieldArrayProps as a, type FieldArrayHideOption as b, type FieldArrayFieldChildren as c };
@@ -0,0 +1,27 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { UseFieldArrayMove, UseFieldArrayInsert, FieldValues, UseFieldArrayRemove } from 'react-hook-form';
3
+
4
+ type FieldArrayHideOption = 'add' | 'remove' | 'move' | 'insert' | 'all';
5
+ type FieldArrayFieldChildren = (name: string, index: number, length: number, move: UseFieldArrayMove, insert: UseFieldArrayInsert<FieldValues, string>, remove: UseFieldArrayRemove, duplicate: (i: number) => void) => JSX.Element;
6
+ type MoveField = 'drag-drop' | 'button';
7
+ interface FieldArrayProps {
8
+ /** function that renders the children with provided Properties. */
9
+ children: FieldArrayFieldChildren;
10
+ /** Hide a set of buttons. */
11
+ hideButtons?: FieldArrayHideOption[];
12
+ /** label of the FieldArray. */
13
+ label?: React.ReactNode;
14
+ /** stops user from deleting all items. */
15
+ lastNotDeletable?: boolean;
16
+ /** name the FieldArray is registered in RHF */
17
+ name: string;
18
+ /** ID for test purposes. */
19
+ testId?: string;
20
+ moveField: MoveField[];
21
+ }
22
+ /**
23
+ * FieldArray component using react-hook-form
24
+ */
25
+ declare const FieldArray: ({ children, hideButtons, label: _label, lastNotDeletable, name, testId: _testId, moveField, }: FieldArrayProps) => react_jsx_runtime.JSX.Element;
26
+
27
+ export { FieldArray as F, type FieldArrayProps as a, type FieldArrayHideOption as b, type FieldArrayFieldChildren as c };
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk4BELEHDQcjs = require('../chunk-4BELEHDQ.cjs');
4
+ var _chunkBNTEIMNYcjs = require('../chunk-BNTEIMNY.cjs');
5
5
  require('../chunk-WQRM7G4C.cjs');
6
6
  require('../chunk-BBB4FEY6.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.Form = _chunk4BELEHDQcjs.Form_default; exports.default = _chunk4BELEHDQcjs.Form_default2;
10
+ exports.Form = _chunkBNTEIMNYcjs.Form_default; exports.default = _chunkBNTEIMNYcjs.Form_default2;
11
11
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Form_default,
3
3
  Form_default2
4
- } from "../chunk-6XKDXQ4A.js";
4
+ } from "../chunk-KFRKKWZT.js";
5
5
  import "../chunk-BCMPSLSG.js";
6
6
  import "../chunk-V46BHM2U.js";
7
7
  export {
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkZPFKVKGVcjs = require('../chunk-ZPFKVKGV.cjs');
4
+ var _chunk6GN255GPcjs = require('../chunk-6GN255GP.cjs');
5
5
 
6
6
 
7
7
 
8
- exports.Grid = _chunkZPFKVKGVcjs.Grid_default; exports.default = _chunkZPFKVKGVcjs.Grid_default2;
8
+ exports.Grid = _chunk6GN255GPcjs.Grid_default; exports.default = _chunk6GN255GPcjs.Grid_default2;
9
9
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Grid_default,
3
3
  Grid_default2
4
- } from "../chunk-4MEKDDB2.js";
4
+ } from "../chunk-PDCEKC3G.js";
5
5
  export {
6
6
  Grid_default as Grid,
7
7
  Grid_default2 as default
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk2O53LMR3cjs = require('../chunk-2O53LMR3.cjs');
4
+ var _chunkVO7ZM3KYcjs = require('../chunk-VO7ZM3KY.cjs');
5
+ require('../chunk-HT3LKDHX.cjs');
5
6
  require('../chunk-QTL5FREE.cjs');
6
7
  require('../chunk-WQRM7G4C.cjs');
7
8
  require('../chunk-BBB4FEY6.cjs');
8
- require('../chunk-22AA557I.cjs');
9
9
 
10
10
 
11
11
 
12
- exports.Input = _chunk2O53LMR3cjs.Input_default; exports.default = _chunk2O53LMR3cjs.Input_default2;
12
+ exports.Input = _chunkVO7ZM3KYcjs.Input_default; exports.default = _chunkVO7ZM3KYcjs.Input_default2;
13
13
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
- import { I as Input } from '../Input-B_rP1h4X.cjs';
2
- export { a as InputProps } from '../Input-B_rP1h4X.cjs';
1
+ import { I as Input } from '../Input-B6dNQiiD.cjs';
2
+ export { a as InputProps } from '../Input-B6dNQiiD.cjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5
 
@@ -1,5 +1,5 @@
1
- import { I as Input } from '../Input-B_rP1h4X.js';
2
- export { a as InputProps } from '../Input-B_rP1h4X.js';
1
+ import { I as Input } from '../Input-B6dNQiiD.js';
2
+ export { a as InputProps } from '../Input-B6dNQiiD.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5
 
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  Input_default,
3
3
  Input_default2
4
- } from "../chunk-3DMR7T4D.js";
4
+ } from "../chunk-2Z3YMYNN.js";
5
+ import "../chunk-OV5RMSYD.js";
5
6
  import "../chunk-DBLODROX.js";
6
7
  import "../chunk-BCMPSLSG.js";
7
8
  import "../chunk-V46BHM2U.js";
8
- import "../chunk-FNVT6LS4.js";
9
9
  export {
10
10
  Input_default as Input,
11
11
  Input_default2 as default
@@ -4,6 +4,8 @@ import { ReactNode } from 'react';
4
4
  interface InputProps {
5
5
  /** CSS class name */
6
6
  className?: string;
7
+ /** input field is disabled */
8
+ disabled?: boolean;
7
9
  /** added content to the end of the input Field. */
8
10
  endContent?: ReactNode;
9
11
  /** form field label (set to false to disable label) */
@@ -22,6 +24,6 @@ interface InputProps {
22
24
  /**
23
25
  * Input component based on [NextUI Input](https://nextui.org/docs/components/input)
24
26
  */
25
- declare const Input: ({ className, endContent, label, name, placeholder, startContent, testId: _testId, type, }: InputProps) => react_jsx_runtime.JSX.Element;
27
+ declare const Input: ({ className, disabled, endContent, label, name, placeholder, startContent, testId: _testId, type, }: InputProps) => react_jsx_runtime.JSX.Element;
26
28
 
27
29
  export { Input as I, type InputProps as a };
@@ -4,6 +4,8 @@ import { ReactNode } from 'react';
4
4
  interface InputProps {
5
5
  /** CSS class name */
6
6
  className?: string;
7
+ /** input field is disabled */
8
+ disabled?: boolean;
7
9
  /** added content to the end of the input Field. */
8
10
  endContent?: ReactNode;
9
11
  /** form field label (set to false to disable label) */
@@ -22,6 +24,6 @@ interface InputProps {
22
24
  /**
23
25
  * Input component based on [NextUI Input](https://nextui.org/docs/components/input)
24
26
  */
25
- declare const Input: ({ className, endContent, label, name, placeholder, startContent, testId: _testId, type, }: InputProps) => react_jsx_runtime.JSX.Element;
27
+ declare const Input: ({ className, disabled, endContent, label, name, placeholder, startContent, testId: _testId, type, }: InputProps) => react_jsx_runtime.JSX.Element;
26
28
 
27
29
  export { Input as I, type InputProps as a };
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkI22ICCUCcjs = require('../chunk-I22ICCUC.cjs');
5
+ require('../chunk-HT3LKDHX.cjs');
6
+ require('../chunk-QTL5FREE.cjs');
7
+ require('../chunk-WQRM7G4C.cjs');
8
+ require('../chunk-BBB4FEY6.cjs');
9
+
10
+
11
+
12
+ exports.RadioGroup = _chunkI22ICCUCcjs.RadioGroup_default; exports.default = _chunkI22ICCUCcjs.RadioGroup_default2;
13
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { R as RadioGroup } from '../RadioGroup-BU4K9cnS.cjs';
2
+ export { a as RadioGroupProps } from '../RadioGroup-BU4K9cnS.cjs';
3
+ import 'react';
4
+
5
+
6
+
7
+ export { RadioGroup, RadioGroup as default };
@@ -0,0 +1,7 @@
1
+ import { R as RadioGroup } from '../RadioGroup-BU4K9cnS.js';
2
+ export { a as RadioGroupProps } from '../RadioGroup-BU4K9cnS.js';
3
+ import 'react';
4
+
5
+
6
+
7
+ export { RadioGroup, RadioGroup as default };
@@ -0,0 +1,13 @@
1
+ import {
2
+ RadioGroup_default,
3
+ RadioGroup_default2
4
+ } from "../chunk-BIJVBXOG.js";
5
+ import "../chunk-OV5RMSYD.js";
6
+ import "../chunk-DBLODROX.js";
7
+ import "../chunk-BCMPSLSG.js";
8
+ import "../chunk-V46BHM2U.js";
9
+ export {
10
+ RadioGroup_default as RadioGroup,
11
+ RadioGroup_default2 as default
12
+ };
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,40 @@
1
+ import { ReactNode, ReactElement } from 'react';
2
+
3
+ interface RadioGroupOption {
4
+ /** Description of the value. Works with variant radioBox. */
5
+ description?: React.ReactNode;
6
+ /** disables the option */
7
+ disabled?: boolean;
8
+ /** option label */
9
+ label?: React.ReactNode;
10
+ /** option icon */
11
+ icon?: ReactNode;
12
+ /** HTML data-testid attribute of the option */
13
+ testId?: string;
14
+ /** option value */
15
+ value: string;
16
+ }
17
+ interface RadioGroupProps {
18
+ /** CSS class name */
19
+ className?: string;
20
+ /** Determines if the Buttons are disabled or not. */
21
+ disabled?: boolean;
22
+ /** determines orientation of the Buttons. */
23
+ inline?: boolean;
24
+ /** Label displayed next to the RadioButton. */
25
+ label?: ReactNode;
26
+ /** Name the RadioButtons are registered at in HTML forms (react-hook-form). */
27
+ name: string;
28
+ /** Radio button configuration. */
29
+ options: RadioGroupOption[];
30
+ /** Id to grab element in internal tests. */
31
+ testId?: string;
32
+ /** How the RadioGroup should look like. */
33
+ variant?: 'default' | 'radioBox' | 'radioButton';
34
+ }
35
+ /**
36
+ * RadioGroup component based on [NextUI RadioGroup](https://nextui.org/docs/components/radio-group)
37
+ */
38
+ declare const RadioGroup: ({ className, disabled, inline, label, name, options, testId: _testId, variant, }: RadioGroupProps) => ReactElement;
39
+
40
+ export { RadioGroup as R, type RadioGroupProps as a };
@@ -0,0 +1,40 @@
1
+ import { ReactNode, ReactElement } from 'react';
2
+
3
+ interface RadioGroupOption {
4
+ /** Description of the value. Works with variant radioBox. */
5
+ description?: React.ReactNode;
6
+ /** disables the option */
7
+ disabled?: boolean;
8
+ /** option label */
9
+ label?: React.ReactNode;
10
+ /** option icon */
11
+ icon?: ReactNode;
12
+ /** HTML data-testid attribute of the option */
13
+ testId?: string;
14
+ /** option value */
15
+ value: string;
16
+ }
17
+ interface RadioGroupProps {
18
+ /** CSS class name */
19
+ className?: string;
20
+ /** Determines if the Buttons are disabled or not. */
21
+ disabled?: boolean;
22
+ /** determines orientation of the Buttons. */
23
+ inline?: boolean;
24
+ /** Label displayed next to the RadioButton. */
25
+ label?: ReactNode;
26
+ /** Name the RadioButtons are registered at in HTML forms (react-hook-form). */
27
+ name: string;
28
+ /** Radio button configuration. */
29
+ options: RadioGroupOption[];
30
+ /** Id to grab element in internal tests. */
31
+ testId?: string;
32
+ /** How the RadioGroup should look like. */
33
+ variant?: 'default' | 'radioBox' | 'radioButton';
34
+ }
35
+ /**
36
+ * RadioGroup component based on [NextUI RadioGroup](https://nextui.org/docs/components/radio-group)
37
+ */
38
+ declare const RadioGroup: ({ className, disabled, inline, label, name, options, testId: _testId, variant, }: RadioGroupProps) => ReactElement;
39
+
40
+ export { RadioGroup as R, type RadioGroupProps as a };
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkNVJKXQ5Wcjs = require('../chunk-NVJKXQ5W.cjs');
5
+ require('../chunk-HT3LKDHX.cjs');
6
+ require('../chunk-QTL5FREE.cjs');
7
+ require('../chunk-WQRM7G4C.cjs');
8
+ require('../chunk-BBB4FEY6.cjs');
9
+
10
+
11
+
12
+ exports.Select = _chunkNVJKXQ5Wcjs.Select_default; exports.default = _chunkNVJKXQ5Wcjs.Select_default2;
13
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { S as Select } from '../Select-Mp6Y00dT.cjs';
2
+ export { a as SelectProps } from '../Select-Mp6Y00dT.cjs';
3
+ import 'react/jsx-runtime';
4
+ import 'react-select';
5
+
6
+
7
+
8
+ export { Select, Select as default };
@@ -0,0 +1,8 @@
1
+ import { S as Select } from '../Select-Mp6Y00dT.js';
2
+ export { a as SelectProps } from '../Select-Mp6Y00dT.js';
3
+ import 'react/jsx-runtime';
4
+ import 'react-select';
5
+
6
+
7
+
8
+ export { Select, Select as default };
@@ -0,0 +1,13 @@
1
+ import {
2
+ Select_default,
3
+ Select_default2
4
+ } from "../chunk-CRKMTDKU.js";
5
+ import "../chunk-OV5RMSYD.js";
6
+ import "../chunk-DBLODROX.js";
7
+ import "../chunk-BCMPSLSG.js";
8
+ import "../chunk-V46BHM2U.js";
9
+ export {
10
+ Select_default as Select,
11
+ Select_default2 as default
12
+ };
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,40 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Props } from 'react-select';
3
+
4
+ type SelectOption = {
5
+ /** option label */
6
+ label?: React.ReactNode;
7
+ /** option value */
8
+ value: string;
9
+ };
10
+ interface SelectProps {
11
+ /** CSS class name */
12
+ className?: string;
13
+ /** Determine if the */
14
+ clearable?: boolean;
15
+ /** Set the select to disabled state. */
16
+ disabled?: boolean;
17
+ filterOption?: undefined | ((option?: SelectOption, inputValue?: string) => boolean);
18
+ /** The value of the search input */
19
+ inputValue?: string;
20
+ /** Label that should be associated with the select. */
21
+ label?: React.ReactNode;
22
+ /** Set the select to a loading state. */
23
+ loading?: boolean;
24
+ /** switch between single and multi select mode. */
25
+ multiSelect?: boolean;
26
+ /** The name for the Select component, used by react-hook-form */
27
+ name: string;
28
+ /** Placeholder that is displayed when nothing is selected */
29
+ placeholder?: string;
30
+ /** The options for the Select component */
31
+ options: SelectOption[];
32
+ /** Handle change events on the input */
33
+ onInputChange?: Props['onInputChange'];
34
+ /** HTML data-testid attribute used in e2e tests */
35
+ testId?: string;
36
+ }
37
+ /** Select component based on [NextUI Select](https://nextui.org/docs/components/select) and [React-Select](https://react-select.com/home) */
38
+ declare const Select: ({ className, clearable, disabled, filterOption, inputValue, label: _label, loading, multiSelect, name, onInputChange, options, placeholder, testId: _testId, }: SelectProps) => react_jsx_runtime.JSX.Element;
39
+
40
+ export { Select as S, type SelectProps as a };
@@ -0,0 +1,40 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Props } from 'react-select';
3
+
4
+ type SelectOption = {
5
+ /** option label */
6
+ label?: React.ReactNode;
7
+ /** option value */
8
+ value: string;
9
+ };
10
+ interface SelectProps {
11
+ /** CSS class name */
12
+ className?: string;
13
+ /** Determine if the */
14
+ clearable?: boolean;
15
+ /** Set the select to disabled state. */
16
+ disabled?: boolean;
17
+ filterOption?: undefined | ((option?: SelectOption, inputValue?: string) => boolean);
18
+ /** The value of the search input */
19
+ inputValue?: string;
20
+ /** Label that should be associated with the select. */
21
+ label?: React.ReactNode;
22
+ /** Set the select to a loading state. */
23
+ loading?: boolean;
24
+ /** switch between single and multi select mode. */
25
+ multiSelect?: boolean;
26
+ /** The name for the Select component, used by react-hook-form */
27
+ name: string;
28
+ /** Placeholder that is displayed when nothing is selected */
29
+ placeholder?: string;
30
+ /** The options for the Select component */
31
+ options: SelectOption[];
32
+ /** Handle change events on the input */
33
+ onInputChange?: Props['onInputChange'];
34
+ /** HTML data-testid attribute used in e2e tests */
35
+ testId?: string;
36
+ }
37
+ /** Select component based on [NextUI Select](https://nextui.org/docs/components/select) and [React-Select](https://react-select.com/home) */
38
+ declare const Select: ({ className, clearable, disabled, filterOption, inputValue, label: _label, loading, multiSelect, name, onInputChange, options, placeholder, testId: _testId, }: SelectProps) => react_jsx_runtime.JSX.Element;
39
+
40
+ export { Select as S, type SelectProps as a };
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkXUKBLFTRcjs = require('../chunk-XUKBLFTR.cjs');
4
+ var _chunkAGAYQTFDcjs = require('../chunk-AGAYQTFD.cjs');
5
5
  require('../chunk-WQRM7G4C.cjs');
6
6
  require('../chunk-BBB4FEY6.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.SubmitButton = _chunkXUKBLFTRcjs.SubmitButton_default; exports.default = _chunkXUKBLFTRcjs.SubmitButton_default2;
10
+ exports.SubmitButton = _chunkAGAYQTFDcjs.SubmitButton_default; exports.default = _chunkAGAYQTFDcjs.SubmitButton_default2;
11
11
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SubmitButton_default,
3
3
  SubmitButton_default2
4
- } from "../chunk-TEJGV6NC.js";
4
+ } from "../chunk-5FMJUJ7H.js";
5
5
  import "../chunk-BCMPSLSG.js";
6
6
  import "../chunk-V46BHM2U.js";
7
7
  export {
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkXY7ZZARScjs = require('../chunk-XY7ZZARS.cjs');
5
+ require('../chunk-HT3LKDHX.cjs');
6
+ require('../chunk-QTL5FREE.cjs');
7
+ require('../chunk-WQRM7G4C.cjs');
8
+ require('../chunk-BBB4FEY6.cjs');
9
+
10
+
11
+
12
+ exports.Switch = _chunkXY7ZZARScjs.Switch_default; exports.default = _chunkXY7ZZARScjs.Switch_default2;
13
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { S as Switch } from '../Switch-DmjDKgKs.cjs';
2
+ export { a as SwitchProps } from '../Switch-DmjDKgKs.cjs';
3
+ import 'react/jsx-runtime';
4
+
5
+
6
+
7
+ export { Switch, Switch as default };
@@ -0,0 +1,7 @@
1
+ import { S as Switch } from '../Switch-DmjDKgKs.js';
2
+ export { a as SwitchProps } from '../Switch-DmjDKgKs.js';
3
+ import 'react/jsx-runtime';
4
+
5
+
6
+
7
+ export { Switch, Switch as default };
@@ -0,0 +1,13 @@
1
+ import {
2
+ Switch_default,
3
+ Switch_default2
4
+ } from "../chunk-EXYTFHEJ.js";
5
+ import "../chunk-OV5RMSYD.js";
6
+ import "../chunk-DBLODROX.js";
7
+ import "../chunk-BCMPSLSG.js";
8
+ import "../chunk-V46BHM2U.js";
9
+ export {
10
+ Switch_default as Switch,
11
+ Switch_default2 as default
12
+ };
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,20 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ interface SwitchProps {
4
+ /** CSS class name */
5
+ className: string;
6
+ /** whether the select should be disabled */
7
+ disabled?: boolean;
8
+ /** component displayed next to the switch. */
9
+ label: React.ReactNode;
10
+ /** name the field is registered under */
11
+ name: string;
12
+ /** HTML data-testid attribute used in e2e tests */
13
+ testId?: string;
14
+ }
15
+ /**
16
+ * Switch component based on [NextUI Switch](https://nextui.org/docs/components/switch)
17
+ */
18
+ declare const Switch: ({ className, disabled, label: _label, name, testId: _testId, }: SwitchProps) => react_jsx_runtime.JSX.Element;
19
+
20
+ export { Switch as S, type SwitchProps as a };
@@ -0,0 +1,20 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ interface SwitchProps {
4
+ /** CSS class name */
5
+ className: string;
6
+ /** whether the select should be disabled */
7
+ disabled?: boolean;
8
+ /** component displayed next to the switch. */
9
+ label: React.ReactNode;
10
+ /** name the field is registered under */
11
+ name: string;
12
+ /** HTML data-testid attribute used in e2e tests */
13
+ testId?: string;
14
+ }
15
+ /**
16
+ * Switch component based on [NextUI Switch](https://nextui.org/docs/components/switch)
17
+ */
18
+ declare const Switch: ({ className, disabled, label: _label, name, testId: _testId, }: SwitchProps) => react_jsx_runtime.JSX.Element;
19
+
20
+ export { Switch as S, type SwitchProps as a };