@fuf-stack/uniform 0.12.1 → 0.14.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/CheckboxGroup/index.cjs +3 -3
- package/dist/CheckboxGroup/index.js +2 -2
- package/dist/FieldArray/index.cjs +3 -3
- package/dist/FieldArray/index.d.cts +2 -2
- package/dist/FieldArray/index.d.ts +2 -2
- package/dist/FieldArray/index.js +2 -2
- package/dist/{FieldArray-DUvn98Fe.d.cts → FieldArray-B_Gsw-to.d.cts} +11 -3
- package/dist/{FieldArray-DUvn98Fe.d.ts → FieldArray-B_Gsw-to.d.ts} +11 -3
- package/dist/Form/index.cjs +3 -3
- package/dist/Form/index.js +2 -2
- package/dist/Input/index.cjs +3 -3
- package/dist/Input/index.d.cts +2 -2
- package/dist/Input/index.d.ts +2 -2
- package/dist/Input/index.js +2 -2
- package/dist/{Input-B6dNQiiD.d.cts → Input-IkWP4cWg.d.cts} +8 -1
- package/dist/{Input-B6dNQiiD.d.ts → Input-IkWP4cWg.d.ts} +8 -1
- package/dist/RadioGroup/index.cjs +3 -3
- package/dist/RadioGroup/index.js +2 -2
- package/dist/Select/index.cjs +3 -3
- package/dist/Select/index.js +2 -2
- package/dist/SubmitButton/index.cjs +3 -3
- package/dist/SubmitButton/index.js +2 -2
- package/dist/Switch/index.cjs +3 -3
- package/dist/Switch/index.js +2 -2
- package/dist/TextArea/index.cjs +3 -3
- package/dist/TextArea/index.js +2 -2
- package/dist/{chunk-WJSY2D3D.cjs → chunk-25LLM544.cjs} +3 -3
- package/dist/{chunk-WJSY2D3D.cjs.map → chunk-25LLM544.cjs.map} +1 -1
- package/dist/{chunk-NL2RK5NJ.cjs → chunk-AG4RUDSV.cjs} +94 -101
- package/dist/chunk-AG4RUDSV.cjs.map +1 -0
- package/dist/{chunk-2L2ZE3VK.js → chunk-AQHKELUR.js} +2 -2
- package/dist/{chunk-AJCTJCJS.js → chunk-BS52M4SZ.js} +2 -2
- package/dist/{chunk-INTF7ABH.js → chunk-BZAPTLMC.js} +3 -2
- package/dist/chunk-BZAPTLMC.js.map +1 -0
- package/dist/{chunk-ADLIMAUY.js → chunk-DDZMDOSG.js} +2 -2
- package/dist/{chunk-22HRAWRF.cjs → chunk-EKE5URXQ.cjs} +3 -3
- package/dist/{chunk-22HRAWRF.cjs.map → chunk-EKE5URXQ.cjs.map} +1 -1
- package/dist/{chunk-FLVDDSDV.js → chunk-GN5NJ6ZU.js} +2 -2
- package/dist/{chunk-F2QAT7VM.cjs → chunk-HZP3EXGR.cjs} +4 -4
- package/dist/chunk-HZP3EXGR.cjs.map +1 -0
- package/dist/{chunk-JODLEFW5.js → chunk-IUNDGVMC.js} +3 -3
- package/dist/chunk-IUNDGVMC.js.map +1 -0
- package/dist/{chunk-5Q6YMU3S.cjs → chunk-JQ3E2HJO.cjs} +8 -5
- package/dist/chunk-JQ3E2HJO.cjs.map +1 -0
- package/dist/{chunk-R6H6XSOI.cjs → chunk-PZ4LZQI4.cjs} +6 -5
- package/dist/chunk-PZ4LZQI4.cjs.map +1 -0
- package/dist/{chunk-KYBPTL3Y.cjs → chunk-RY4F5YDS.cjs} +3 -3
- package/dist/{chunk-KYBPTL3Y.cjs.map → chunk-RY4F5YDS.cjs.map} +1 -1
- package/dist/{chunk-6UMW5EPE.js → chunk-VJC7VCFS.js} +92 -99
- package/dist/chunk-VJC7VCFS.js.map +1 -0
- package/dist/{chunk-KGTNPZZO.js → chunk-VP7WDLJM.js} +4 -3
- package/dist/chunk-VP7WDLJM.js.map +1 -0
- package/dist/{chunk-IQ4V57MX.cjs → chunk-VZ5MMFIF.cjs} +3 -3
- package/dist/{chunk-IQ4V57MX.cjs.map → chunk-VZ5MMFIF.cjs.map} +1 -1
- package/dist/{chunk-HWJREI53.js → chunk-WZ2WBZSC.js} +7 -4
- package/dist/chunk-WZ2WBZSC.js.map +1 -0
- package/dist/{chunk-CMRP3HEK.js → chunk-XJGJ5ZNM.js} +2 -2
- package/dist/{chunk-D276MAWR.cjs → chunk-XJWEUCV3.cjs} +4 -3
- package/dist/chunk-XJWEUCV3.cjs.map +1 -0
- package/dist/{chunk-ANXGDI6O.cjs → chunk-XJZAS7NG.cjs} +3 -3
- package/dist/{chunk-ANXGDI6O.cjs.map → chunk-XJZAS7NG.cjs.map} +1 -1
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.js +1 -1
- package/dist/index.cjs +11 -11
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -10
- package/package.json +11 -11
- package/dist/chunk-5Q6YMU3S.cjs.map +0 -1
- package/dist/chunk-6UMW5EPE.js.map +0 -1
- package/dist/chunk-D276MAWR.cjs.map +0 -1
- package/dist/chunk-F2QAT7VM.cjs.map +0 -1
- package/dist/chunk-HWJREI53.js.map +0 -1
- package/dist/chunk-INTF7ABH.js.map +0 -1
- package/dist/chunk-JODLEFW5.js.map +0 -1
- package/dist/chunk-KGTNPZZO.js.map +0 -1
- package/dist/chunk-NL2RK5NJ.cjs.map +0 -1
- package/dist/chunk-R6H6XSOI.cjs.map +0 -1
- /package/dist/{chunk-2L2ZE3VK.js.map → chunk-AQHKELUR.js.map} +0 -0
- /package/dist/{chunk-AJCTJCJS.js.map → chunk-BS52M4SZ.js.map} +0 -0
- /package/dist/{chunk-ADLIMAUY.js.map → chunk-DDZMDOSG.js.map} +0 -0
- /package/dist/{chunk-FLVDDSDV.js.map → chunk-GN5NJ6ZU.js.map} +0 -0
- /package/dist/{chunk-CMRP3HEK.js.map → chunk-XJGJ5ZNM.js.map} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkRY4F5YDScjs = require('../chunk-RY4F5YDS.cjs');
|
|
5
5
|
require('../chunk-VQWKXSHW.cjs');
|
|
6
6
|
require('../chunk-JU5RT22Y.cjs');
|
|
7
7
|
require('../chunk-OHJYXA6R.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-XJWEUCV3.cjs');
|
|
9
9
|
require('../chunk-BBB4FEY6.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.CheckboxGroup =
|
|
13
|
+
exports.CheckboxGroup = _chunkRY4F5YDScjs.CheckboxGroup_default; exports.default = _chunkRY4F5YDScjs.CheckboxGroup_default2;
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CheckboxGroup_default,
|
|
3
3
|
CheckboxGroup_default2
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-XJGJ5ZNM.js";
|
|
5
5
|
import "../chunk-KOKIM2ND.js";
|
|
6
6
|
import "../chunk-2CRY7VDQ.js";
|
|
7
7
|
import "../chunk-WKM2D7LF.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-BZAPTLMC.js";
|
|
9
9
|
import "../chunk-V46BHM2U.js";
|
|
10
10
|
export {
|
|
11
11
|
CheckboxGroup_default as CheckboxGroup,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkAG4RUDSVcjs = require('../chunk-AG4RUDSV.cjs');
|
|
5
5
|
require('../chunk-JU5RT22Y.cjs');
|
|
6
6
|
require('../chunk-OHJYXA6R.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-XJWEUCV3.cjs');
|
|
8
8
|
require('../chunk-BBB4FEY6.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.FieldArray =
|
|
12
|
+
exports.FieldArray = _chunkAG4RUDSVcjs.FieldArray_default; exports.default = _chunkAG4RUDSVcjs.FieldArray_default2;
|
|
13
13
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FieldArray } from '../FieldArray-
|
|
2
|
-
export { c as FieldArrayFieldChildren, b as FieldArrayHideOption, a as FieldArrayProps } from '../FieldArray-
|
|
1
|
+
import { F as FieldArray } from '../FieldArray-B_Gsw-to.cjs';
|
|
2
|
+
export { c as FieldArrayFieldChildren, b as FieldArrayHideOption, a as FieldArrayProps } from '../FieldArray-B_Gsw-to.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-hook-form';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FieldArray } from '../FieldArray-
|
|
2
|
-
export { c as FieldArrayFieldChildren, b as FieldArrayHideOption, a as FieldArrayProps } from '../FieldArray-
|
|
1
|
+
import { F as FieldArray } from '../FieldArray-B_Gsw-to.js';
|
|
2
|
+
export { c as FieldArrayFieldChildren, b as FieldArrayHideOption, a as FieldArrayProps } from '../FieldArray-B_Gsw-to.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react-hook-form';
|
|
5
5
|
|
package/dist/FieldArray/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FieldArray_default,
|
|
3
3
|
FieldArray_default2
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-VJC7VCFS.js";
|
|
5
5
|
import "../chunk-2CRY7VDQ.js";
|
|
6
6
|
import "../chunk-WKM2D7LF.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-BZAPTLMC.js";
|
|
8
8
|
import "../chunk-V46BHM2U.js";
|
|
9
9
|
export {
|
|
10
10
|
FieldArray_default as FieldArray,
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { UseFieldArrayInsert, FieldValues, UseFieldArrayMove, UseFieldArrayRemove } from 'react-hook-form';
|
|
3
3
|
|
|
4
4
|
type FieldArrayHideOption = 'add' | 'remove' | 'move' | 'insert' | 'all';
|
|
5
|
-
type FieldArrayFieldChildren = (
|
|
5
|
+
type FieldArrayFieldChildren = (args: {
|
|
6
|
+
duplicate: (i: number) => void;
|
|
7
|
+
index: number;
|
|
8
|
+
insert: UseFieldArrayInsert<FieldValues, string>;
|
|
9
|
+
length: number;
|
|
10
|
+
move: UseFieldArrayMove;
|
|
11
|
+
name: string;
|
|
12
|
+
remove: UseFieldArrayRemove;
|
|
13
|
+
}) => JSX.Element;
|
|
6
14
|
type MoveField = 'drag-drop' | 'button';
|
|
7
15
|
interface FieldArrayProps {
|
|
8
16
|
/** function that renders the children with provided Properties. */
|
|
@@ -17,7 +25,7 @@ interface FieldArrayProps {
|
|
|
17
25
|
name: string;
|
|
18
26
|
/** ID for test purposes. */
|
|
19
27
|
testId?: string;
|
|
20
|
-
moveField
|
|
28
|
+
moveField?: MoveField[];
|
|
21
29
|
}
|
|
22
30
|
/**
|
|
23
31
|
* FieldArray component using react-hook-form
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { UseFieldArrayInsert, FieldValues, UseFieldArrayMove, UseFieldArrayRemove } from 'react-hook-form';
|
|
3
3
|
|
|
4
4
|
type FieldArrayHideOption = 'add' | 'remove' | 'move' | 'insert' | 'all';
|
|
5
|
-
type FieldArrayFieldChildren = (
|
|
5
|
+
type FieldArrayFieldChildren = (args: {
|
|
6
|
+
duplicate: (i: number) => void;
|
|
7
|
+
index: number;
|
|
8
|
+
insert: UseFieldArrayInsert<FieldValues, string>;
|
|
9
|
+
length: number;
|
|
10
|
+
move: UseFieldArrayMove;
|
|
11
|
+
name: string;
|
|
12
|
+
remove: UseFieldArrayRemove;
|
|
13
|
+
}) => JSX.Element;
|
|
6
14
|
type MoveField = 'drag-drop' | 'button';
|
|
7
15
|
interface FieldArrayProps {
|
|
8
16
|
/** function that renders the children with provided Properties. */
|
|
@@ -17,7 +25,7 @@ interface FieldArrayProps {
|
|
|
17
25
|
name: string;
|
|
18
26
|
/** ID for test purposes. */
|
|
19
27
|
testId?: string;
|
|
20
|
-
moveField
|
|
28
|
+
moveField?: MoveField[];
|
|
21
29
|
}
|
|
22
30
|
/**
|
|
23
31
|
* FieldArray component using react-hook-form
|
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
|
|
5
|
-
require('../chunk-
|
|
4
|
+
var _chunkPZ4LZQI4cjs = require('../chunk-PZ4LZQI4.cjs');
|
|
5
|
+
require('../chunk-XJWEUCV3.cjs');
|
|
6
6
|
require('../chunk-BBB4FEY6.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.Form =
|
|
10
|
+
exports.Form = _chunkPZ4LZQI4cjs.Form_default; exports.default = _chunkPZ4LZQI4cjs.Form_default2;
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Form/index.js
CHANGED
package/dist/Input/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkJQ3E2HJOcjs = require('../chunk-JQ3E2HJO.cjs');
|
|
5
5
|
require('../chunk-VQWKXSHW.cjs');
|
|
6
6
|
require('../chunk-JU5RT22Y.cjs');
|
|
7
7
|
require('../chunk-OHJYXA6R.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-XJWEUCV3.cjs');
|
|
9
9
|
require('../chunk-BBB4FEY6.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.Input =
|
|
13
|
+
exports.Input = _chunkJQ3E2HJOcjs.Input_default; exports.default = _chunkJQ3E2HJOcjs.Input_default2;
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Input/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as Input } from '../Input-
|
|
2
|
-
export { a as InputProps } from '../Input-
|
|
1
|
+
import { I as Input } from '../Input-IkWP4cWg.cjs';
|
|
2
|
+
export { a as InputProps } from '../Input-IkWP4cWg.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
package/dist/Input/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as Input } from '../Input-
|
|
2
|
-
export { a as InputProps } from '../Input-
|
|
1
|
+
import { I as Input } from '../Input-IkWP4cWg.js';
|
|
2
|
+
export { a as InputProps } from '../Input-IkWP4cWg.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
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-WZ2WBZSC.js";
|
|
5
5
|
import "../chunk-KOKIM2ND.js";
|
|
6
6
|
import "../chunk-2CRY7VDQ.js";
|
|
7
7
|
import "../chunk-WKM2D7LF.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-BZAPTLMC.js";
|
|
9
9
|
import "../chunk-V46BHM2U.js";
|
|
10
10
|
export {
|
|
11
11
|
Input_default as Input,
|
|
@@ -18,12 +18,19 @@ interface InputProps {
|
|
|
18
18
|
startContent?: ReactNode;
|
|
19
19
|
/** HTML data-testid attribute used in e2e tests */
|
|
20
20
|
testId?: string;
|
|
21
|
+
/** allows disentangled display and form values for a field */
|
|
22
|
+
transformValue?: {
|
|
23
|
+
/** transforms the formValue of the field to the display value of the field */
|
|
24
|
+
displayValue: (value: string | number) => string | number;
|
|
25
|
+
/** transforms the displayValue of the field to the form value of the field */
|
|
26
|
+
formValue: (value: string) => string | number;
|
|
27
|
+
};
|
|
21
28
|
/** input type */
|
|
22
29
|
type?: 'number' | 'password';
|
|
23
30
|
}
|
|
24
31
|
/**
|
|
25
32
|
* Input component based on [NextUI Input](https://nextui.org/docs/components/input)
|
|
26
33
|
*/
|
|
27
|
-
declare const Input: ({ className, disabled, endContent, label, name, placeholder, startContent, testId: _testId, type, }: InputProps) => react_jsx_runtime.JSX.Element;
|
|
34
|
+
declare const Input: ({ className, disabled, endContent, label, name, placeholder, startContent, testId: _testId, transformValue, type, }: InputProps) => react_jsx_runtime.JSX.Element;
|
|
28
35
|
|
|
29
36
|
export { Input as I, type InputProps as a };
|
|
@@ -18,12 +18,19 @@ interface InputProps {
|
|
|
18
18
|
startContent?: ReactNode;
|
|
19
19
|
/** HTML data-testid attribute used in e2e tests */
|
|
20
20
|
testId?: string;
|
|
21
|
+
/** allows disentangled display and form values for a field */
|
|
22
|
+
transformValue?: {
|
|
23
|
+
/** transforms the formValue of the field to the display value of the field */
|
|
24
|
+
displayValue: (value: string | number) => string | number;
|
|
25
|
+
/** transforms the displayValue of the field to the form value of the field */
|
|
26
|
+
formValue: (value: string) => string | number;
|
|
27
|
+
};
|
|
21
28
|
/** input type */
|
|
22
29
|
type?: 'number' | 'password';
|
|
23
30
|
}
|
|
24
31
|
/**
|
|
25
32
|
* Input component based on [NextUI Input](https://nextui.org/docs/components/input)
|
|
26
33
|
*/
|
|
27
|
-
declare const Input: ({ className, disabled, endContent, label, name, placeholder, startContent, testId: _testId, type, }: InputProps) => react_jsx_runtime.JSX.Element;
|
|
34
|
+
declare const Input: ({ className, disabled, endContent, label, name, placeholder, startContent, testId: _testId, transformValue, type, }: InputProps) => react_jsx_runtime.JSX.Element;
|
|
28
35
|
|
|
29
36
|
export { Input as I, type InputProps as a };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkXJZAS7NGcjs = require('../chunk-XJZAS7NG.cjs');
|
|
5
5
|
require('../chunk-VQWKXSHW.cjs');
|
|
6
6
|
require('../chunk-JU5RT22Y.cjs');
|
|
7
7
|
require('../chunk-OHJYXA6R.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-XJWEUCV3.cjs');
|
|
9
9
|
require('../chunk-BBB4FEY6.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.RadioGroup =
|
|
13
|
+
exports.RadioGroup = _chunkXJZAS7NGcjs.RadioGroup_default; exports.default = _chunkXJZAS7NGcjs.RadioGroup_default2;
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
package/dist/RadioGroup/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RadioGroup_default,
|
|
3
3
|
RadioGroup_default2
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-DDZMDOSG.js";
|
|
5
5
|
import "../chunk-KOKIM2ND.js";
|
|
6
6
|
import "../chunk-2CRY7VDQ.js";
|
|
7
7
|
import "../chunk-WKM2D7LF.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-BZAPTLMC.js";
|
|
9
9
|
import "../chunk-V46BHM2U.js";
|
|
10
10
|
export {
|
|
11
11
|
RadioGroup_default as RadioGroup,
|
package/dist/Select/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkHZP3EXGRcjs = require('../chunk-HZP3EXGR.cjs');
|
|
5
5
|
require('../chunk-VQWKXSHW.cjs');
|
|
6
6
|
require('../chunk-JU5RT22Y.cjs');
|
|
7
7
|
require('../chunk-OHJYXA6R.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-XJWEUCV3.cjs');
|
|
9
9
|
require('../chunk-BBB4FEY6.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.Select =
|
|
13
|
+
exports.Select = _chunkHZP3EXGRcjs.Select_default; exports.default = _chunkHZP3EXGRcjs.Select_default2;
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Select/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Select_default,
|
|
3
3
|
Select_default2
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-IUNDGVMC.js";
|
|
5
5
|
import "../chunk-KOKIM2ND.js";
|
|
6
6
|
import "../chunk-2CRY7VDQ.js";
|
|
7
7
|
import "../chunk-WKM2D7LF.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-BZAPTLMC.js";
|
|
9
9
|
import "../chunk-V46BHM2U.js";
|
|
10
10
|
export {
|
|
11
11
|
Select_default as Select,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
4
|
+
var _chunkVZ5MMFIFcjs = require('../chunk-VZ5MMFIF.cjs');
|
|
5
|
+
require('../chunk-XJWEUCV3.cjs');
|
|
6
6
|
require('../chunk-BBB4FEY6.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.SubmitButton =
|
|
10
|
+
exports.SubmitButton = _chunkVZ5MMFIFcjs.SubmitButton_default; exports.default = _chunkVZ5MMFIFcjs.SubmitButton_default2;
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SubmitButton_default,
|
|
3
3
|
SubmitButton_default2
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-GN5NJ6ZU.js";
|
|
5
|
+
import "../chunk-BZAPTLMC.js";
|
|
6
6
|
import "../chunk-V46BHM2U.js";
|
|
7
7
|
export {
|
|
8
8
|
SubmitButton_default as SubmitButton,
|
package/dist/Switch/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkEKE5URXQcjs = require('../chunk-EKE5URXQ.cjs');
|
|
5
5
|
require('../chunk-VQWKXSHW.cjs');
|
|
6
6
|
require('../chunk-JU5RT22Y.cjs');
|
|
7
7
|
require('../chunk-OHJYXA6R.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-XJWEUCV3.cjs');
|
|
9
9
|
require('../chunk-BBB4FEY6.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.Switch =
|
|
13
|
+
exports.Switch = _chunkEKE5URXQcjs.Switch_default; exports.default = _chunkEKE5URXQcjs.Switch_default2;
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Switch/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Switch_default,
|
|
3
3
|
Switch_default2
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-BS52M4SZ.js";
|
|
5
5
|
import "../chunk-KOKIM2ND.js";
|
|
6
6
|
import "../chunk-2CRY7VDQ.js";
|
|
7
7
|
import "../chunk-WKM2D7LF.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-BZAPTLMC.js";
|
|
9
9
|
import "../chunk-V46BHM2U.js";
|
|
10
10
|
export {
|
|
11
11
|
Switch_default as Switch,
|
package/dist/TextArea/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk25LLM544cjs = require('../chunk-25LLM544.cjs');
|
|
5
5
|
require('../chunk-VQWKXSHW.cjs');
|
|
6
6
|
require('../chunk-JU5RT22Y.cjs');
|
|
7
7
|
require('../chunk-OHJYXA6R.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-XJWEUCV3.cjs');
|
|
9
9
|
require('../chunk-BBB4FEY6.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.TextArea =
|
|
13
|
+
exports.TextArea = _chunk25LLM544cjs.TextArea_default; exports.default = _chunk25LLM544cjs.TextArea_default2;
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
package/dist/TextArea/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TextArea_default,
|
|
3
3
|
TextArea_default2
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-AQHKELUR.js";
|
|
5
5
|
import "../chunk-KOKIM2ND.js";
|
|
6
6
|
import "../chunk-2CRY7VDQ.js";
|
|
7
7
|
import "../chunk-WKM2D7LF.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-BZAPTLMC.js";
|
|
9
9
|
import "../chunk-V46BHM2U.js";
|
|
10
10
|
export {
|
|
11
11
|
TextArea_default as TextArea,
|
|
@@ -9,7 +9,7 @@ var _chunkJU5RT22Ycjs = require('./chunk-JU5RT22Y.cjs');
|
|
|
9
9
|
var _chunkOHJYXA6Rcjs = require('./chunk-OHJYXA6R.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkXJWEUCV3cjs = require('./chunk-XJWEUCV3.cjs');
|
|
13
13
|
|
|
14
14
|
// src/TextArea/TextArea.tsx
|
|
15
15
|
var _input = require('@nextui-org/input');
|
|
@@ -24,7 +24,7 @@ var TextArea = ({
|
|
|
24
24
|
placeholder = " ",
|
|
25
25
|
testId: _testId = void 0
|
|
26
26
|
}) => {
|
|
27
|
-
const { control, debugMode, getFieldState } =
|
|
27
|
+
const { control, debugMode, getFieldState } = _chunkXJWEUCV3cjs.useFormContext.call(void 0, );
|
|
28
28
|
const { error, invalid, required, testId } = getFieldState(name, _testId);
|
|
29
29
|
const showTestIdCopyButton = debugMode === "debug-testids";
|
|
30
30
|
const showLabel = label || showTestIdCopyButton;
|
|
@@ -77,4 +77,4 @@ var TextArea_default2 = TextArea_default;
|
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
exports.TextArea_default = TextArea_default; exports.TextArea_default2 = TextArea_default2;
|
|
80
|
-
//# sourceMappingURL=chunk-
|
|
80
|
+
//# sourceMappingURL=chunk-25LLM544.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/chunk-25LLM544.cjs","../src/TextArea/TextArea.tsx","../src/TextArea/index.ts"],"names":["TextArea_default"],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACA;ACXA,0CAAyC;AAEzC,oDAAmB;AAyDgB,+CAAA;AA9BnC,IAAM,SAAA,EAAW,CAAC;AAAA,EAChB,SAAA,EAAW,IAAA;AAAA,EACX,UAAA,EAAY,KAAA,CAAA;AAAA,EACZ,SAAA,EAAW,KAAA;AAAA,EACX,MAAA,EAAQ,KAAA,CAAA;AAAA,EACR,IAAA;AAAA,EACA,YAAA,EAAc,GAAA;AAAA,EACd,MAAA,EAAQ,QAAA,EAAU,KAAA;AACpB,CAAA,EAAA,GAAqB;AACnB,EAAA,MAAM,EAAE,OAAA,EAAS,SAAA,EAAW,cAAc,EAAA,EAAI,8CAAA,CAAe;AAC7D,EAAA,MAAM,EAAE,KAAA,EAAO,OAAA,EAAS,QAAA,EAAU,OAAO,EAAA,EAAI,aAAA,CAAc,IAAA,EAAM,OAAO,CAAA;AAExE,EAAA,MAAM,qBAAA,EAAuB,UAAA,IAAc,eAAA;AAC3C,EAAA,MAAM,UAAA,EAAY,MAAA,GAAS,oBAAA;AAE3B,EAAA,uBACE,6BAAA;AAAA,IAAC,4BAAA;AAAA,IAAA;AAAA,MACC,OAAA;AAAA,MACA,IAAA;AAAA,MACA,QAAA;AAAA,MACA,MAAA,EAAQ,CAAC;AAAA,QACP,KAAA,EAAO,EAAE,QAAA,EAAU,UAAA,EAAY,QAAA,EAAU,MAAA,EAAQ,KAAA,EAAO,IAAI;AAAA,MAC9D,CAAA,EAAA,GAAM;AACJ,QAAA,uBACE,6BAAA;AAAA,UAAC,eAAA;AAAA,UAAA;AAAA,YACC,SAAA,EAAW,4BAAA,SAAY,CAAA;AAAA,YACvB,UAAA,EAAY;AAAA,cACV,YAAA,EAAc;AAAA,YAChB,CAAA;AAAA,YACA,aAAA,EAAa,MAAA;AAAA,YACb,YAAA,EAAc,MAAA,mBAAS,6BAAA,8CAAC,EAAA,EAAqB,MAAA,CAAc,CAAA;AAAA,YAC3D,UAAA;AAAA,YACA,UAAA,EAAY,QAAA;AAAA,YACZ,SAAA,EAAW,OAAA;AAAA,YACX,KAAA,EACE,UAAA,mBACE,8BAAA,oBAAA,EAAA,EACG,QAAA,EAAA;AAAA,cAAA,KAAA;AAAA,cACA,qBAAA,mBACC,6BAAA,+CAAC,EAAA,EAAsB,OAAA,CAAgB;AAAA,YAAA,EAAA,CAE3C,CAAA;AAAA,YAGJ,cAAA,EAAe,SAAA;AAAA,YACf,WAAA;AAAA,YACA,IAAA;AAAA,YACA,KAAA;AAAA,YACA,QAAA;AAAA,YACA,MAAA;AAAA,YACA,GAAA;AAAA,YACA,OAAA,EAAQ,UAAA;AAAA,YAEP;AAAA,UAAA;AAAA,QACH,CAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACF,CAAA;AAEJ,CAAA;AAEA,IAAO,iBAAA,EAAQ,QAAA;ADrBf;AACA;AElEA,IAAOA,kBAAAA,EAAQ,gBAAA;AFoEf;AACA;AACE;AACA;AACF,2FAAC","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/chunk-25LLM544.cjs","sourcesContent":[null,"import type { ReactNode } from 'react';\n\nimport { Textarea as NextTextArea } from '@nextui-org/input';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nimport { Controller } from '../Controller';\nimport { useFormContext } from '../hooks';\nimport { FieldCopyTestIdButton } from '../partials/FieldCopyTestIdButton';\nimport { FieldValidationError } from '../partials/FieldValidationError';\n\nexport interface TextAreaProps {\n /** Child components. The content of the textarea. */\n children?: ReactNode;\n /** CSS class name */\n className?: string;\n /** Determines if the TextArea is disabled or not. */\n disabled?: boolean;\n /** Label displayed above the TextArea. */\n label?: ReactNode;\n /** Name the TextArea is registered at in HTML forms (react-hook-form). */\n name: string;\n /** placeholder for the textArea content. */\n placeholder?: string;\n /** Id to grab element in internal tests. */\n testId?: string;\n}\n\n/**\n * TextArea component based on [NextUI TextArea](https://nextui.org/docs/components/textarea)\n */\nconst TextArea = ({\n children = null,\n className = undefined,\n disabled = false,\n label = undefined,\n name,\n placeholder = ' ',\n testId: _testId = undefined,\n}: TextAreaProps) => {\n const { control, debugMode, getFieldState } = useFormContext();\n const { error, invalid, required, testId } = getFieldState(name, _testId);\n\n const showTestIdCopyButton = debugMode === 'debug-testids';\n const showLabel = label || showTestIdCopyButton;\n\n return (\n <Controller\n control={control}\n name={name}\n disabled={disabled}\n render={({\n field: { disabled: isDisabled, onChange, onBlur, value, ref },\n }) => {\n return (\n <NextTextArea\n className={cn(className)}\n classNames={{\n inputWrapper: 'group-data-[focus=true]:border-focus',\n }}\n data-testid={testId}\n errorMessage={error && <FieldValidationError error={error} />}\n isDisabled={isDisabled}\n isRequired={required}\n isInvalid={invalid}\n label={\n showLabel && (\n <>\n {label}\n {showTestIdCopyButton && (\n <FieldCopyTestIdButton testId={testId} />\n )}\n </>\n )\n }\n labelPlacement=\"outside\"\n placeholder={placeholder}\n name={name}\n value={value}\n onChange={onChange}\n onBlur={onBlur}\n ref={ref}\n variant=\"bordered\"\n >\n {children}\n </NextTextArea>\n );\n }}\n />\n );\n};\n\nexport default TextArea;\n","import TextArea from './TextArea';\n\nexport type { TextAreaProps } from './TextArea';\n\nexport { TextArea };\n\nexport default TextArea;\n"]}
|