@fuf-stack/uniform 0.4.0 → 0.6.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.
- package/dist/FieldArray/index.cjs +13 -0
- package/dist/FieldArray/index.cjs.map +1 -0
- package/dist/FieldArray/index.d.cts +8 -0
- package/dist/FieldArray/index.d.ts +8 -0
- package/dist/FieldArray/index.js +13 -0
- package/dist/FieldArray/index.js.map +1 -0
- package/dist/FieldArray-DUvn98Fe.d.cts +27 -0
- package/dist/FieldArray-DUvn98Fe.d.ts +27 -0
- package/dist/Form/index.cjs +2 -2
- package/dist/Form/index.cjs.map +1 -1
- package/dist/Form/index.d.cts +2 -2
- package/dist/Form/index.d.ts +2 -2
- package/dist/Form/index.js +1 -1
- package/dist/{Form-Bv0R3QNk.d.cts → Form-nJbG1hNH.d.cts} +1 -1
- package/dist/{Form-Bv0R3QNk.d.ts → Form-nJbG1hNH.d.ts} +1 -1
- package/dist/Grid/index.cjs.map +1 -1
- package/dist/Input/index.cjs +3 -3
- package/dist/Input/index.cjs.map +1 -1
- package/dist/Input/index.js +2 -2
- package/dist/RadioGroup/index.cjs +13 -0
- package/dist/RadioGroup/index.cjs.map +1 -0
- package/dist/RadioGroup/index.d.cts +7 -0
- package/dist/RadioGroup/index.d.ts +7 -0
- package/dist/RadioGroup/index.js +13 -0
- package/dist/RadioGroup/index.js.map +1 -0
- package/dist/RadioGroup-BU4K9cnS.d.cts +40 -0
- package/dist/RadioGroup-BU4K9cnS.d.ts +40 -0
- package/dist/Select/index.cjs +13 -0
- package/dist/Select/index.cjs.map +1 -0
- package/dist/Select/index.d.cts +8 -0
- package/dist/Select/index.d.ts +8 -0
- package/dist/Select/index.js +13 -0
- package/dist/Select/index.js.map +1 -0
- package/dist/Select-Mp6Y00dT.d.cts +40 -0
- package/dist/Select-Mp6Y00dT.d.ts +40 -0
- package/dist/SubmitButton/index.cjs +2 -2
- package/dist/SubmitButton/index.cjs.map +1 -1
- package/dist/SubmitButton/index.js +1 -1
- package/dist/Switch/index.cjs +13 -0
- package/dist/Switch/index.cjs.map +1 -0
- package/dist/Switch/index.d.cts +7 -0
- package/dist/Switch/index.d.ts +7 -0
- package/dist/Switch/index.js +13 -0
- package/dist/Switch/index.js.map +1 -0
- package/dist/Switch-DmjDKgKs.d.cts +20 -0
- package/dist/Switch-DmjDKgKs.d.ts +20 -0
- package/dist/TextArea/index.cjs +13 -0
- package/dist/TextArea/index.cjs.map +1 -0
- package/dist/TextArea/index.d.cts +8 -0
- package/dist/TextArea/index.d.ts +8 -0
- package/dist/TextArea/index.js +13 -0
- package/dist/TextArea/index.js.map +1 -0
- package/dist/TextArea-B-sKvTkd.d.cts +25 -0
- package/dist/TextArea-B-sKvTkd.d.ts +25 -0
- package/dist/chunk-3K4JQTPQ.js +205 -0
- package/dist/chunk-3K4JQTPQ.js.map +1 -0
- package/dist/chunk-3SSUEUB5.js +81 -0
- package/dist/chunk-3SSUEUB5.js.map +1 -0
- package/dist/chunk-53AGVLUG.cjs +287 -0
- package/dist/chunk-53AGVLUG.cjs.map +1 -0
- package/dist/chunk-57OFVPRD.js +287 -0
- package/dist/chunk-57OFVPRD.js.map +1 -0
- package/dist/chunk-6GN255GP.cjs.map +1 -1
- package/dist/chunk-BBB4FEY6.cjs.map +1 -1
- package/dist/{chunk-OYXZQOGU.js → chunk-BGSQU5EH.js} +4 -4
- package/dist/{chunk-2CKPLOCK.cjs → chunk-FASB7HG3.cjs} +5 -5
- package/dist/chunk-FASB7HG3.cjs.map +1 -0
- package/dist/{chunk-BNTEIMNY.cjs → chunk-JFCOC5TW.cjs} +32 -25
- package/dist/chunk-JFCOC5TW.cjs.map +1 -0
- package/dist/chunk-JR7MAHBR.cjs +81 -0
- package/dist/chunk-JR7MAHBR.cjs.map +1 -0
- package/dist/chunk-KC3PZFGE.js +76 -0
- package/dist/chunk-KC3PZFGE.js.map +1 -0
- package/dist/{chunk-HT3LKDHX.cjs → chunk-KMMS4G7A.cjs} +4 -2
- package/dist/chunk-KMMS4G7A.cjs.map +1 -0
- package/dist/chunk-OSEU4ZUE.cjs +205 -0
- package/dist/chunk-OSEU4ZUE.cjs.map +1 -0
- package/dist/{chunk-5FMJUJ7H.js → chunk-QD6IQL6U.js} +3 -3
- package/dist/{chunk-5FMJUJ7H.js.map → chunk-QD6IQL6U.js.map} +1 -1
- package/dist/chunk-QTL5FREE.cjs.map +1 -1
- package/dist/{chunk-OV5RMSYD.js → chunk-T3CCNJHK.js} +4 -2
- package/dist/chunk-T3CCNJHK.js.map +1 -0
- package/dist/chunk-WNESYY6E.cjs +239 -0
- package/dist/chunk-WNESYY6E.cjs.map +1 -0
- package/dist/chunk-WQRM7G4C.cjs.map +1 -1
- package/dist/chunk-WRYE2CF5.cjs +76 -0
- package/dist/chunk-WRYE2CF5.cjs.map +1 -0
- package/dist/{chunk-AGAYQTFD.cjs → chunk-XJ3JTLXZ.cjs} +3 -3
- package/dist/chunk-XJ3JTLXZ.cjs.map +1 -0
- package/dist/{chunk-KFRKKWZT.js → chunk-Y4CFVCUN.js} +32 -25
- package/dist/chunk-Y4CFVCUN.js.map +1 -0
- package/dist/chunk-YAVU7ZYD.js +239 -0
- package/dist/chunk-YAVU7ZYD.js.map +1 -0
- package/dist/helpers/index.cjs.map +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/index.cjs +25 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +26 -6
- package/dist/partials/FieldCopyTestIdButton/index.cjs +2 -2
- package/dist/partials/FieldCopyTestIdButton/index.cjs.map +1 -1
- package/dist/partials/FieldCopyTestIdButton/index.js +1 -1
- package/dist/partials/FieldValidationError/index.cjs.map +1 -1
- package/package.json +44 -19
- package/dist/chunk-2CKPLOCK.cjs.map +0 -1
- package/dist/chunk-AGAYQTFD.cjs.map +0 -1
- package/dist/chunk-BNTEIMNY.cjs.map +0 -1
- package/dist/chunk-HT3LKDHX.cjs.map +0 -1
- package/dist/chunk-KFRKKWZT.js.map +0 -1
- package/dist/chunk-OV5RMSYD.js.map +0 -1
- /package/dist/{chunk-OYXZQOGU.js.map → chunk-BGSQU5EH.js.map} +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunk53AGVLUGcjs = require('../chunk-53AGVLUG.cjs');
|
|
5
|
+
require('../chunk-KMMS4G7A.cjs');
|
|
6
|
+
require('../chunk-QTL5FREE.cjs');
|
|
7
|
+
require('../chunk-WQRM7G4C.cjs');
|
|
8
|
+
require('../chunk-BBB4FEY6.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.FieldArray = _chunk53AGVLUGcjs.FieldArray_default; exports.default = _chunk53AGVLUGcjs.FieldArray_default2;
|
|
13
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/uniform/uniform/packages/uniform/dist/FieldArray/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,mHAAC","file":"/home/runner/work/uniform/uniform/packages/uniform/dist/FieldArray/index.cjs"}
|
|
@@ -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-57OFVPRD.js";
|
|
5
|
+
import "../chunk-T3CCNJHK.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 };
|
package/dist/Form/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkJFCOC5TWcjs = require('../chunk-JFCOC5TW.cjs');
|
|
5
5
|
require('../chunk-WQRM7G4C.cjs');
|
|
6
6
|
require('../chunk-BBB4FEY6.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.Form =
|
|
10
|
+
exports.Form = _chunkJFCOC5TWcjs.Form_default; exports.default = _chunkJFCOC5TWcjs.Form_default2;
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Form/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/uniform/uniform/packages/uniform/dist/Form/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,iGAAC","file":"/home/runner/work/uniform/uniform/packages/uniform/dist/Form/index.cjs"}
|
package/dist/Form/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as Form } from '../Form-
|
|
2
|
-
export { a as FormProps } from '../Form-
|
|
1
|
+
import { F as Form } from '../Form-nJbG1hNH.cjs';
|
|
2
|
+
export { a as FormProps } from '../Form-nJbG1hNH.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import '@fuf-stack/veto';
|
|
5
5
|
import 'react';
|
package/dist/Form/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as Form } from '../Form-
|
|
2
|
-
export { a as FormProps } from '../Form-
|
|
1
|
+
import { F as Form } from '../Form-nJbG1hNH.js';
|
|
2
|
+
export { a as FormProps } from '../Form-nJbG1hNH.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import '@fuf-stack/veto';
|
|
5
5
|
import 'react';
|
package/dist/Form/index.js
CHANGED
|
@@ -19,7 +19,7 @@ interface FormProps {
|
|
|
19
19
|
/** veto validation schema */
|
|
20
20
|
validation?: VetoInstance;
|
|
21
21
|
/** when the validation should be triggered */
|
|
22
|
-
validationTrigger?: 'onChange' | 'onBlur' | 'onSubmit' | 'onTouched' | 'all'
|
|
22
|
+
validationTrigger?: 'onChange' | 'onBlur' | 'onSubmit' | 'onTouched' | 'all';
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Form component that has to wrap every uniform
|
|
@@ -19,7 +19,7 @@ interface FormProps {
|
|
|
19
19
|
/** veto validation schema */
|
|
20
20
|
validation?: VetoInstance;
|
|
21
21
|
/** when the validation should be triggered */
|
|
22
|
-
validationTrigger?: 'onChange' | 'onBlur' | 'onSubmit' | 'onTouched' | 'all'
|
|
22
|
+
validationTrigger?: 'onChange' | 'onBlur' | 'onSubmit' | 'onTouched' | 'all';
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Form component that has to wrap every uniform
|
package/dist/Grid/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/uniform/uniform/packages/uniform/dist/Grid/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACF,iGAAC","file":"/home/runner/work/uniform/uniform/packages/uniform/dist/Grid/index.cjs"}
|
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 _chunkFASB7HG3cjs = require('../chunk-FASB7HG3.cjs');
|
|
5
|
+
require('../chunk-KMMS4G7A.cjs');
|
|
5
6
|
require('../chunk-QTL5FREE.cjs');
|
|
6
7
|
require('../chunk-WQRM7G4C.cjs');
|
|
7
8
|
require('../chunk-BBB4FEY6.cjs');
|
|
8
|
-
require('../chunk-HT3LKDHX.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.Input =
|
|
12
|
+
exports.Input = _chunkFASB7HG3cjs.Input_default; exports.default = _chunkFASB7HG3cjs.Input_default2;
|
|
13
13
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Input/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/uniform/uniform/packages/uniform/dist/Input/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,oGAAC","file":"/home/runner/work/uniform/uniform/packages/uniform/dist/Input/index.cjs"}
|
package/dist/Input/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Input_default,
|
|
3
3
|
Input_default2
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-BGSQU5EH.js";
|
|
5
|
+
import "../chunk-T3CCNJHK.js";
|
|
5
6
|
import "../chunk-DBLODROX.js";
|
|
6
7
|
import "../chunk-BCMPSLSG.js";
|
|
7
8
|
import "../chunk-V46BHM2U.js";
|
|
8
|
-
import "../chunk-OV5RMSYD.js";
|
|
9
9
|
export {
|
|
10
10
|
Input_default as Input,
|
|
11
11
|
Input_default2 as default
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkOSEU4ZUEcjs = require('../chunk-OSEU4ZUE.cjs');
|
|
5
|
+
require('../chunk-KMMS4G7A.cjs');
|
|
6
|
+
require('../chunk-QTL5FREE.cjs');
|
|
7
|
+
require('../chunk-WQRM7G4C.cjs');
|
|
8
|
+
require('../chunk-BBB4FEY6.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.RadioGroup = _chunkOSEU4ZUEcjs.RadioGroup_default; exports.default = _chunkOSEU4ZUEcjs.RadioGroup_default2;
|
|
13
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/uniform/uniform/packages/uniform/dist/RadioGroup/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,mHAAC","file":"/home/runner/work/uniform/uniform/packages/uniform/dist/RadioGroup/index.cjs"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RadioGroup_default,
|
|
3
|
+
RadioGroup_default2
|
|
4
|
+
} from "../chunk-3K4JQTPQ.js";
|
|
5
|
+
import "../chunk-T3CCNJHK.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 _chunkWNESYY6Ecjs = require('../chunk-WNESYY6E.cjs');
|
|
5
|
+
require('../chunk-KMMS4G7A.cjs');
|
|
6
|
+
require('../chunk-QTL5FREE.cjs');
|
|
7
|
+
require('../chunk-WQRM7G4C.cjs');
|
|
8
|
+
require('../chunk-BBB4FEY6.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.Select = _chunkWNESYY6Ecjs.Select_default; exports.default = _chunkWNESYY6Ecjs.Select_default2;
|
|
13
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/uniform/uniform/packages/uniform/dist/Select/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,uGAAC","file":"/home/runner/work/uniform/uniform/packages/uniform/dist/Select/index.cjs"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Select_default,
|
|
3
|
+
Select_default2
|
|
4
|
+
} from "../chunk-YAVU7ZYD.js";
|
|
5
|
+
import "../chunk-T3CCNJHK.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
|
|
4
|
+
var _chunkXJ3JTLXZcjs = require('../chunk-XJ3JTLXZ.cjs');
|
|
5
5
|
require('../chunk-WQRM7G4C.cjs');
|
|
6
6
|
require('../chunk-BBB4FEY6.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.SubmitButton =
|
|
10
|
+
exports.SubmitButton = _chunkXJ3JTLXZcjs.SubmitButton_default; exports.default = _chunkXJ3JTLXZcjs.SubmitButton_default2;
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/uniform/uniform/packages/uniform/dist/SubmitButton/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,yHAAC","file":"/home/runner/work/uniform/uniform/packages/uniform/dist/SubmitButton/index.cjs"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkJR7MAHBRcjs = require('../chunk-JR7MAHBR.cjs');
|
|
5
|
+
require('../chunk-KMMS4G7A.cjs');
|
|
6
|
+
require('../chunk-QTL5FREE.cjs');
|
|
7
|
+
require('../chunk-WQRM7G4C.cjs');
|
|
8
|
+
require('../chunk-BBB4FEY6.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.Switch = _chunkJR7MAHBRcjs.Switch_default; exports.default = _chunkJR7MAHBRcjs.Switch_default2;
|
|
13
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/uniform/uniform/packages/uniform/dist/Switch/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,uGAAC","file":"/home/runner/work/uniform/uniform/packages/uniform/dist/Switch/index.cjs"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Switch_default,
|
|
3
|
+
Switch_default2
|
|
4
|
+
} from "../chunk-3SSUEUB5.js";
|
|
5
|
+
import "../chunk-T3CCNJHK.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 };
|