@fuf-stack/uniform 0.21.1 → 0.21.3
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.js +2 -2
- 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.js +2 -2
- package/dist/RadioBoxes/index.cjs +3 -3
- package/dist/RadioBoxes/index.js +2 -2
- package/dist/RadioGroup/index.cjs +3 -3
- package/dist/RadioGroup/index.js +2 -2
- package/dist/RadioTabs/index.cjs +3 -3
- package/dist/RadioTabs/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-5PNXBS5K.cjs → chunk-3S4EF5DI.cjs} +3 -3
- package/dist/{chunk-5PNXBS5K.cjs.map → chunk-3S4EF5DI.cjs.map} +1 -1
- package/dist/{chunk-IIWHSNQG.cjs → chunk-4KHMUAWA.cjs} +4 -4
- package/dist/{chunk-IIWHSNQG.cjs.map → chunk-4KHMUAWA.cjs.map} +1 -1
- package/dist/{chunk-IWHBCTIB.js → chunk-55T4FZCW.js} +2 -2
- package/dist/{chunk-P44L3XR4.js → chunk-6JH2Z7JC.js} +2 -2
- package/dist/{chunk-JQGCMXUB.js → chunk-7AK7HQSV.js} +2 -2
- package/dist/{chunk-KF57IEIV.js → chunk-AHOV7WDC.js} +2 -2
- package/dist/{chunk-SXYWWUMK.cjs → chunk-DBDSXMV4.cjs} +4 -4
- package/dist/{chunk-SXYWWUMK.cjs.map → chunk-DBDSXMV4.cjs.map} +1 -1
- package/dist/{chunk-WGUKDO53.cjs → chunk-FWVEQEZT.cjs} +7 -7
- package/dist/{chunk-WGUKDO53.cjs.map → chunk-FWVEQEZT.cjs.map} +1 -1
- package/dist/{chunk-ZZ4Q3FLC.cjs → chunk-H3SUJP7L.cjs} +39 -6
- package/dist/chunk-H3SUJP7L.cjs.map +1 -0
- package/dist/{chunk-C5LVVYXY.js → chunk-IXW3GRGE.js} +2 -2
- package/dist/{chunk-CK5D6TE5.cjs → chunk-LHG7ZWZE.cjs} +4 -4
- package/dist/{chunk-CK5D6TE5.cjs.map → chunk-LHG7ZWZE.cjs.map} +1 -1
- package/dist/{chunk-33BKBYR2.js → chunk-LIDFPXT5.js} +2 -2
- package/dist/{chunk-4WCWNYCA.js → chunk-LYK2E47G.js} +2 -2
- package/dist/{chunk-J7NVQTEW.cjs → chunk-MPBVK2JD.cjs} +5 -5
- package/dist/{chunk-J7NVQTEW.cjs.map → chunk-MPBVK2JD.cjs.map} +1 -1
- package/dist/{chunk-H7X5Q6SW.js → chunk-N5URRORT.js} +2 -2
- package/dist/{chunk-4AWDOV7M.js → chunk-NCGK5YVT.js} +40 -7
- package/dist/chunk-NCGK5YVT.js.map +1 -0
- package/dist/{chunk-EQXSFBZW.cjs → chunk-PHXEJGWP.cjs} +4 -4
- package/dist/{chunk-EQXSFBZW.cjs.map → chunk-PHXEJGWP.cjs.map} +1 -1
- package/dist/{chunk-UTKY3KL2.js → chunk-RGFZL2JG.js} +2 -2
- package/dist/{chunk-DUXD4EBJ.js → chunk-THLXWSYU.js} +2 -2
- package/dist/{chunk-YLAMHHJB.cjs → chunk-TK4WVD6M.cjs} +4 -4
- package/dist/{chunk-YLAMHHJB.cjs.map → chunk-TK4WVD6M.cjs.map} +1 -1
- package/dist/{chunk-BUNJMA4O.cjs → chunk-TTMRC2PR.cjs} +5 -8
- package/dist/chunk-TTMRC2PR.cjs.map +1 -0
- package/dist/{chunk-K2B7NTWK.cjs → chunk-UUUFYOHS.cjs} +4 -4
- package/dist/{chunk-K2B7NTWK.cjs.map → chunk-UUUFYOHS.cjs.map} +1 -1
- package/dist/{chunk-KNP3VJSM.js → chunk-YWPA3MTJ.js} +3 -6
- package/dist/chunk-YWPA3MTJ.js.map +1 -0
- package/dist/{chunk-DOU4QUFP.cjs → chunk-ZEF7WVKQ.cjs} +4 -4
- package/dist/{chunk-DOU4QUFP.cjs.map → chunk-ZEF7WVKQ.cjs.map} +1 -1
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.d.cts +18 -18
- package/dist/hooks/index.d.ts +18 -18
- package/dist/hooks/index.js +1 -1
- package/dist/index.cjs +13 -13
- package/dist/index.js +12 -12
- package/package.json +6 -6
- package/dist/chunk-4AWDOV7M.js.map +0 -1
- package/dist/chunk-BUNJMA4O.cjs.map +0 -1
- package/dist/chunk-KNP3VJSM.js.map +0 -1
- package/dist/chunk-ZZ4Q3FLC.cjs.map +0 -1
- /package/dist/{chunk-IWHBCTIB.js.map → chunk-55T4FZCW.js.map} +0 -0
- /package/dist/{chunk-P44L3XR4.js.map → chunk-6JH2Z7JC.js.map} +0 -0
- /package/dist/{chunk-JQGCMXUB.js.map → chunk-7AK7HQSV.js.map} +0 -0
- /package/dist/{chunk-KF57IEIV.js.map → chunk-AHOV7WDC.js.map} +0 -0
- /package/dist/{chunk-C5LVVYXY.js.map → chunk-IXW3GRGE.js.map} +0 -0
- /package/dist/{chunk-33BKBYR2.js.map → chunk-LIDFPXT5.js.map} +0 -0
- /package/dist/{chunk-4WCWNYCA.js.map → chunk-LYK2E47G.js.map} +0 -0
- /package/dist/{chunk-H7X5Q6SW.js.map → chunk-N5URRORT.js.map} +0 -0
- /package/dist/{chunk-UTKY3KL2.js.map → chunk-RGFZL2JG.js.map} +0 -0
- /package/dist/{chunk-DUXD4EBJ.js.map → chunk-THLXWSYU.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 _chunkZEF7WVKQcjs = require('../chunk-ZEF7WVKQ.cjs');
|
|
5
5
|
require('../chunk-GNYQC5IJ.cjs');
|
|
6
6
|
require('../chunk-PA2DQCBY.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-H3SUJP7L.cjs');
|
|
8
8
|
require('../chunk-CESGUF6F.cjs');
|
|
9
9
|
require('../chunk-555JRYCS.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.CheckboxGroup =
|
|
13
|
+
exports.CheckboxGroup = _chunkZEF7WVKQcjs.CheckboxGroup_default; exports.default = _chunkZEF7WVKQcjs.CheckboxGroup_default2;
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CheckboxGroup_default,
|
|
3
3
|
CheckboxGroup_default2
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-7AK7HQSV.js";
|
|
5
5
|
import "../chunk-UTFZRBBS.js";
|
|
6
6
|
import "../chunk-BQGN3JTU.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-NCGK5YVT.js";
|
|
8
8
|
import "../chunk-UAV6PVB4.js";
|
|
9
9
|
import "../chunk-K2V4ULA2.js";
|
|
10
10
|
export {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkFWVEQEZTcjs = require('../chunk-FWVEQEZT.cjs');
|
|
5
5
|
require('../chunk-TTD3KL6E.cjs');
|
|
6
6
|
require('../chunk-GNYQC5IJ.cjs');
|
|
7
7
|
require('../chunk-PA2DQCBY.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-H3SUJP7L.cjs');
|
|
9
9
|
require('../chunk-CESGUF6F.cjs');
|
|
10
10
|
require('../chunk-555JRYCS.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.FieldArray =
|
|
14
|
+
exports.FieldArray = _chunkFWVEQEZTcjs.FieldArray_default; exports.default = _chunkFWVEQEZTcjs.FieldArray_default2;
|
|
15
15
|
//# sourceMappingURL=index.cjs.map
|
package/dist/FieldArray/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FieldArray_default,
|
|
3
3
|
FieldArray_default2
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-55T4FZCW.js";
|
|
5
5
|
import "../chunk-B62HKKMS.js";
|
|
6
6
|
import "../chunk-UTFZRBBS.js";
|
|
7
7
|
import "../chunk-BQGN3JTU.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-NCGK5YVT.js";
|
|
9
9
|
import "../chunk-UAV6PVB4.js";
|
|
10
10
|
import "../chunk-K2V4ULA2.js";
|
|
11
11
|
export {
|
package/dist/Form/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
4
|
+
var _chunkTTMRC2PRcjs = require('../chunk-TTMRC2PR.cjs');
|
|
5
|
+
require('../chunk-H3SUJP7L.cjs');
|
|
6
6
|
require('../chunk-CESGUF6F.cjs');
|
|
7
7
|
require('../chunk-555JRYCS.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.Form =
|
|
11
|
+
exports.Form = _chunkTTMRC2PRcjs.Form_default; exports.default = _chunkTTMRC2PRcjs.Form_default2;
|
|
12
12
|
//# 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 _chunk4KHMUAWAcjs = require('../chunk-4KHMUAWA.cjs');
|
|
5
5
|
require('../chunk-GNYQC5IJ.cjs');
|
|
6
6
|
require('../chunk-PA2DQCBY.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-H3SUJP7L.cjs');
|
|
8
8
|
require('../chunk-CESGUF6F.cjs');
|
|
9
9
|
require('../chunk-555JRYCS.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.Input =
|
|
13
|
+
exports.Input = _chunk4KHMUAWAcjs.Input_default; exports.default = _chunk4KHMUAWAcjs.Input_default2;
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Input/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Input_default,
|
|
3
3
|
Input_default2
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-LIDFPXT5.js";
|
|
5
5
|
import "../chunk-UTFZRBBS.js";
|
|
6
6
|
import "../chunk-BQGN3JTU.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-NCGK5YVT.js";
|
|
8
8
|
import "../chunk-UAV6PVB4.js";
|
|
9
9
|
import "../chunk-K2V4ULA2.js";
|
|
10
10
|
export {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkLHG7ZWZEcjs = require('../chunk-LHG7ZWZE.cjs');
|
|
5
5
|
require('../chunk-GNYQC5IJ.cjs');
|
|
6
6
|
require('../chunk-PA2DQCBY.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-H3SUJP7L.cjs');
|
|
8
8
|
require('../chunk-CESGUF6F.cjs');
|
|
9
9
|
require('../chunk-555JRYCS.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.RadioBoxes =
|
|
13
|
+
exports.RadioBoxes = _chunkLHG7ZWZEcjs.RadioBoxes_default; exports.default = _chunkLHG7ZWZEcjs.RadioBoxes_default2;
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
package/dist/RadioBoxes/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RadioBoxes_default,
|
|
3
3
|
RadioBoxes_default2
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-AHOV7WDC.js";
|
|
5
5
|
import "../chunk-UTFZRBBS.js";
|
|
6
6
|
import "../chunk-BQGN3JTU.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-NCGK5YVT.js";
|
|
8
8
|
import "../chunk-UAV6PVB4.js";
|
|
9
9
|
import "../chunk-K2V4ULA2.js";
|
|
10
10
|
export {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkDBDSXMV4cjs = require('../chunk-DBDSXMV4.cjs');
|
|
5
5
|
require('../chunk-GNYQC5IJ.cjs');
|
|
6
6
|
require('../chunk-PA2DQCBY.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-H3SUJP7L.cjs');
|
|
8
8
|
require('../chunk-CESGUF6F.cjs');
|
|
9
9
|
require('../chunk-555JRYCS.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.RadioGroup =
|
|
13
|
+
exports.RadioGroup = _chunkDBDSXMV4cjs.RadioGroup_default; exports.default = _chunkDBDSXMV4cjs.RadioGroup_default2;
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
package/dist/RadioGroup/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RadioGroup_default,
|
|
3
3
|
RadioGroup_default2
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-LYK2E47G.js";
|
|
5
5
|
import "../chunk-UTFZRBBS.js";
|
|
6
6
|
import "../chunk-BQGN3JTU.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-NCGK5YVT.js";
|
|
8
8
|
import "../chunk-UAV6PVB4.js";
|
|
9
9
|
import "../chunk-K2V4ULA2.js";
|
|
10
10
|
export {
|
package/dist/RadioTabs/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 _chunkUUUFYOHScjs = require('../chunk-UUUFYOHS.cjs');
|
|
5
5
|
require('../chunk-GNYQC5IJ.cjs');
|
|
6
6
|
require('../chunk-PA2DQCBY.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-H3SUJP7L.cjs');
|
|
8
8
|
require('../chunk-CESGUF6F.cjs');
|
|
9
9
|
require('../chunk-555JRYCS.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.RadioTabs =
|
|
13
|
+
exports.RadioTabs = _chunkUUUFYOHScjs.RadioTabs_default; exports.default = _chunkUUUFYOHScjs.RadioTabs_default2;
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
package/dist/RadioTabs/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RadioTabs_default,
|
|
3
3
|
RadioTabs_default2
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-RGFZL2JG.js";
|
|
5
5
|
import "../chunk-UTFZRBBS.js";
|
|
6
6
|
import "../chunk-BQGN3JTU.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-NCGK5YVT.js";
|
|
8
8
|
import "../chunk-UAV6PVB4.js";
|
|
9
9
|
import "../chunk-K2V4ULA2.js";
|
|
10
10
|
export {
|
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 _chunkPHXEJGWPcjs = require('../chunk-PHXEJGWP.cjs');
|
|
5
5
|
require('../chunk-GNYQC5IJ.cjs');
|
|
6
6
|
require('../chunk-PA2DQCBY.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-H3SUJP7L.cjs');
|
|
8
8
|
require('../chunk-CESGUF6F.cjs');
|
|
9
9
|
require('../chunk-555JRYCS.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.Select =
|
|
13
|
+
exports.Select = _chunkPHXEJGWPcjs.Select_default; exports.default = _chunkPHXEJGWPcjs.Select_default2;
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Select/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Select_default,
|
|
3
3
|
Select_default2
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-THLXWSYU.js";
|
|
5
5
|
import "../chunk-UTFZRBBS.js";
|
|
6
6
|
import "../chunk-BQGN3JTU.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-NCGK5YVT.js";
|
|
8
8
|
import "../chunk-UAV6PVB4.js";
|
|
9
9
|
import "../chunk-K2V4ULA2.js";
|
|
10
10
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
4
|
+
var _chunk3S4EF5DIcjs = require('../chunk-3S4EF5DI.cjs');
|
|
5
|
+
require('../chunk-H3SUJP7L.cjs');
|
|
6
6
|
require('../chunk-CESGUF6F.cjs');
|
|
7
7
|
require('../chunk-555JRYCS.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.SubmitButton =
|
|
11
|
+
exports.SubmitButton = _chunk3S4EF5DIcjs.SubmitButton_default; exports.default = _chunk3S4EF5DIcjs.SubmitButton_default2;
|
|
12
12
|
//# 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-6JH2Z7JC.js";
|
|
5
|
+
import "../chunk-NCGK5YVT.js";
|
|
6
6
|
import "../chunk-UAV6PVB4.js";
|
|
7
7
|
import "../chunk-K2V4ULA2.js";
|
|
8
8
|
export {
|
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 _chunkMPBVK2JDcjs = require('../chunk-MPBVK2JD.cjs');
|
|
5
5
|
require('../chunk-GNYQC5IJ.cjs');
|
|
6
6
|
require('../chunk-PA2DQCBY.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-H3SUJP7L.cjs');
|
|
8
8
|
require('../chunk-CESGUF6F.cjs');
|
|
9
9
|
require('../chunk-555JRYCS.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.Switch =
|
|
13
|
+
exports.Switch = _chunkMPBVK2JDcjs.Switch_default; exports.default = _chunkMPBVK2JDcjs.Switch_default2;
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Switch/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Switch_default,
|
|
3
3
|
Switch_default2
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-IXW3GRGE.js";
|
|
5
5
|
import "../chunk-UTFZRBBS.js";
|
|
6
6
|
import "../chunk-BQGN3JTU.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-NCGK5YVT.js";
|
|
8
8
|
import "../chunk-UAV6PVB4.js";
|
|
9
9
|
import "../chunk-K2V4ULA2.js";
|
|
10
10
|
export {
|
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 _chunkTK4WVD6Mcjs = require('../chunk-TK4WVD6M.cjs');
|
|
5
5
|
require('../chunk-GNYQC5IJ.cjs');
|
|
6
6
|
require('../chunk-PA2DQCBY.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-H3SUJP7L.cjs');
|
|
8
8
|
require('../chunk-CESGUF6F.cjs');
|
|
9
9
|
require('../chunk-555JRYCS.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.TextArea =
|
|
13
|
+
exports.TextArea = _chunkTK4WVD6Mcjs.TextArea_default; exports.default = _chunkTK4WVD6Mcjs.TextArea_default2;
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|
package/dist/TextArea/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TextArea_default,
|
|
3
3
|
TextArea_default2
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-N5URRORT.js";
|
|
5
5
|
import "../chunk-UTFZRBBS.js";
|
|
6
6
|
import "../chunk-BQGN3JTU.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-NCGK5YVT.js";
|
|
8
8
|
import "../chunk-UAV6PVB4.js";
|
|
9
9
|
import "../chunk-K2V4ULA2.js";
|
|
10
10
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkH3SUJP7Lcjs = require('./chunk-H3SUJP7L.cjs');
|
|
4
4
|
|
|
5
5
|
// src/SubmitButton/SubmitButton.tsx
|
|
6
6
|
var _pixelutils = require('@fuf-stack/pixel-utils');
|
|
@@ -17,7 +17,7 @@ var SubmitButton = ({
|
|
|
17
17
|
const {
|
|
18
18
|
formState: { isSubmitting },
|
|
19
19
|
triggerSubmit
|
|
20
|
-
} =
|
|
20
|
+
} = _chunkH3SUJP7Lcjs.useFormContext.call(void 0, );
|
|
21
21
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22
22
|
_pixels.Button,
|
|
23
23
|
{
|
|
@@ -42,4 +42,4 @@ var SubmitButton_default2 = SubmitButton_default;
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
exports.SubmitButton_default = SubmitButton_default; exports.SubmitButton_default2 = SubmitButton_default2;
|
|
45
|
-
//# sourceMappingURL=chunk-
|
|
45
|
+
//# sourceMappingURL=chunk-3S4EF5DI.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-3S4EF5DI.cjs","../src/SubmitButton/SubmitButton.tsx","../src/SubmitButton/index.ts"],"names":["SubmitButton_default"],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACDA,oDAA4B;AAC5B,2CAAuB;AAoCnB,+CAAA;AAdJ,IAAM,aAAA,EAAe,CAAC;AAAA,EACpB,SAAA,EAAW,QAAA;AAAA,EACX,UAAA,EAAY,KAAA,CAAA;AAAA,EACZ,MAAA,EAAQ,SAAA;AAAA,EACR,QAAA,EAAU,KAAA;AAAA,EACV,KAAA,EAAO,IAAA;AAAA,EACP,OAAA,EAAS;AACX,CAAA,EAAA,GAAyB;AACvB,EAAA,MAAM;AAAA,IACJ,SAAA,EAAW,EAAE,aAAa,CAAA;AAAA,IAC1B;AAAA,EACF,EAAA,EAAI,8CAAA,CAAe;AAEnB,EAAA,uBACE,6BAAA;AAAA,IAAC,cAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,4BAAA,SAAY,CAAA;AAAA,MACvB,KAAA;AAAA,MACA,MAAA,EAAQ,iCAAA,MAAQ,EAAQ,EAAE,WAAA,EAAa,KAAK,CAAC,CAAA;AAAA,MAC7C,QAAA,EAAU,YAAA;AAAA,MACV,OAAA,EAAS,QAAA,GAAW,YAAA;AAAA,MAIpB,OAAA,EAAS,aAAA;AAAA,MACT,IAAA;AAAA,MACA,IAAA,EAAK,QAAA;AAAA,MAEJ;AAAA,IAAA;AAAA,EACH,CAAA;AAEJ,CAAA;AAEA,IAAO,qBAAA,EAAQ,YAAA;ADtBf;AACA;AE/BA,IAAOA,sBAAAA,EAAQ,oBAAA;AFiCf;AACA;AACE;AACA;AACF,2GAAC","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/chunk-3S4EF5DI.cjs","sourcesContent":[null,"import type { ButtonProps } from '@fuf-stack/pixels';\nimport type { ReactNode } from 'react';\n\nimport { cn, slugify } from '@fuf-stack/pixel-utils';\nimport { Button } from '@fuf-stack/pixels';\n\nimport { useFormContext } from '../hooks';\n\nexport interface SubmitButtonProps {\n /** child components */\n children?: ReactNode;\n /** CSS class name */\n className?: string;\n /** color of the button */\n color?: ButtonProps['color'];\n /** If set loading animation is shown */\n loading?: boolean;\n /** size of the button */\n size?: ButtonProps['size'];\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\n/**\n * From SubmitButton\n */\nconst SubmitButton = ({\n children = 'Submit',\n className = undefined,\n color = 'success',\n loading = false,\n size = 'md',\n testId = 'form_submit_button',\n}: SubmitButtonProps) => {\n const {\n formState: { isSubmitting },\n triggerSubmit,\n } = useFormContext();\n\n return (\n <Button\n className={cn(className)}\n color={color}\n testId={slugify(testId, { replaceDots: true })}\n disabled={isSubmitting}\n loading={loading || isSubmitting}\n // @ts-expect-error we use form context triggerSubmit\n // here so that submit button also works in special\n // scenarios (e.g. when used in modal)\n onClick={triggerSubmit}\n size={size}\n type=\"submit\"\n >\n {children}\n </Button>\n );\n};\n\nexport default SubmitButton;\n","import SubmitButton from './SubmitButton';\n\nexport type { SubmitButtonProps } from './SubmitButton';\n\nexport { SubmitButton };\n\nexport default SubmitButton;\n"]}
|
|
@@ -7,7 +7,7 @@ var _chunkPA2DQCBYcjs = require('./chunk-PA2DQCBY.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkH3SUJP7Lcjs = require('./chunk-H3SUJP7L.cjs');
|
|
11
11
|
|
|
12
12
|
// src/Input/Input.tsx
|
|
13
13
|
var _input = require('@heroui/input');
|
|
@@ -26,9 +26,9 @@ var Input = ({
|
|
|
26
26
|
transformValue = void 0,
|
|
27
27
|
type = void 0
|
|
28
28
|
}) => {
|
|
29
|
-
const { control, debugMode, getFieldState } =
|
|
29
|
+
const { control, debugMode, getFieldState } = _chunkH3SUJP7Lcjs.useFormContext.call(void 0, );
|
|
30
30
|
const { error, invalid, required, testId } = getFieldState(name, _testId);
|
|
31
|
-
const { field } =
|
|
31
|
+
const { field } = _chunkH3SUJP7Lcjs.useController.call(void 0, {
|
|
32
32
|
control,
|
|
33
33
|
disabled,
|
|
34
34
|
name
|
|
@@ -88,4 +88,4 @@ var Input_default2 = Input_default;
|
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
exports.Input_default = Input_default; exports.Input_default2 = Input_default2;
|
|
91
|
-
//# sourceMappingURL=chunk-
|
|
91
|
+
//# sourceMappingURL=chunk-4KHMUAWA.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-4KHMUAWA.cjs","../src/Input/Input.tsx","../src/Input/index.ts"],"names":["Input_default"],"mappings":"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","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/chunk-4KHMUAWA.cjs","sourcesContent":[null,"import type { ReactNode } from 'react';\n\nimport { Input as HeroInput } from '@heroui/input';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nimport { useController, useFormContext } from '../hooks';\nimport { FieldCopyTestIdButton } from '../partials/FieldCopyTestIdButton';\nimport { FieldValidationError } from '../partials/FieldValidationError';\n\nexport interface InputProps {\n /** CSS class name */\n className?: string;\n /** input field is disabled */\n disabled?: boolean;\n /** added content to the end of the input Field. */\n endContent?: ReactNode;\n /** form field label (set to false to disable label) */\n label?: string | false;\n /** form field name */\n name: string;\n /** form field placeholder */\n placeholder?: string;\n /** size of the input */\n size?: 'sm' | 'md' | 'lg';\n /** content added to the start of the input field */\n startContent?: ReactNode;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** allows disentangled display and form values for a field */\n transformValue?: {\n /** transforms the formValue of the field to the display value of the field */\n displayValue: (value: string | number) => string | number;\n /** transforms the displayValue of the field to the form value of the field */\n formValue: (value: string) => string | number;\n };\n /** input type */\n type?: 'number' | 'password';\n}\n\n/**\n * Input component based on [HeroUI Input](https://www.heroui.com//docs/components/input)\n */\nconst Input = ({\n className = undefined,\n disabled = false,\n endContent = undefined,\n label = undefined,\n name,\n placeholder = ' ',\n size = undefined,\n startContent = undefined,\n testId: _testId = undefined,\n transformValue = undefined,\n type = undefined,\n}: InputProps) => {\n const { control, debugMode, getFieldState } = useFormContext();\n const { error, invalid, required, testId } = getFieldState(name, _testId);\n\n const { field } = useController({\n control,\n disabled,\n name,\n });\n\n const { disabled: isDisabled, onChange, onBlur, value, ref } = field;\n\n const showTestIdCopyButton = debugMode === 'debug-testids';\n const showLabel = label || showTestIdCopyButton;\n\n /**\n * Determines the display value for the input field:\n * 1. If transformValue.displayValue is provided, applies the transform to the current value\n * (useful for formatting like adding currency symbols, date formatting, etc.)\n * 2. Falls back to the raw value if no transform is provided\n * 3. Ensures a defined value by using empty string as fallback (prevents uncontrolled input warnings)\n *\n * Examples:\n * - With transform: value \"1000\" → displayValue \"$1,000\"\n * - Without transform: value \"1000\" → displayValue \"1000\"\n * - Undefined value: value undefined → displayValue \"\"\n */\n const displayValue = transformValue?.displayValue\n ? transformValue.displayValue(value ?? '')\n : (value ?? '');\n\n /**\n * Handles input value changes with special processing:\n * 1. For number inputs:\n * - Preserves empty string (prevents NaN in the form state)\n * - Converts non-empty values to numbers\n * Example: \"\" → \"\" (empty stays empty)\n * \"42\" → 42 (converts to number)\n *\n * 2. For text inputs with transformValue.formValue:\n * - Applies custom transform before updating form state\n * - Useful for converting display format to storage format\n * Example: \"$1,000\" → \"1000\" (strips formatting)\n *\n * 3. For regular text inputs:\n * - Passes through the raw input value\n * Example: \"hello\" → \"hello\" (no transformation)\n *\n * @param e The input change event\n */\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n const inputValue = e.target.value;\n if (type === 'number') {\n onChange(inputValue === '' ? '' : Number(inputValue));\n } else {\n onChange(\n transformValue?.formValue\n ? transformValue.formValue(inputValue)\n : inputValue,\n );\n }\n };\n\n return (\n <HeroInput\n className={cn(className)}\n classNames={{\n inputWrapper: 'bg-content1 group-data-[focus=true]:border-focus',\n }}\n data-testid={testId}\n endContent={endContent}\n errorMessage={\n error && <FieldValidationError error={error} testId={testId} />\n }\n isDisabled={isDisabled}\n isInvalid={invalid}\n isRequired={required}\n label={\n showLabel && (\n <>\n {label}\n {showTestIdCopyButton && <FieldCopyTestIdButton testId={testId} />}\n </>\n )\n }\n labelPlacement=\"outside\"\n name={name}\n onBlur={onBlur}\n onChange={handleChange}\n placeholder={placeholder}\n radius=\"sm\"\n ref={ref}\n size={size}\n startContent={startContent}\n type={type}\n // @ts-expect-error number is ok here\n value={displayValue}\n variant=\"bordered\"\n />\n );\n};\n\nexport default Input;\n","import Input from './Input';\n\nexport type { InputProps } from './Input';\n\nexport { Input };\n\nexport default Input;\n"]}
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useFieldArray,
|
|
12
12
|
useFormContext,
|
|
13
13
|
useInput
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NCGK5YVT.js";
|
|
15
15
|
import {
|
|
16
16
|
toNullishString
|
|
17
17
|
} from "./chunk-UAV6PVB4.js";
|
|
@@ -383,4 +383,4 @@ export {
|
|
|
383
383
|
FieldArray_default,
|
|
384
384
|
FieldArray_default2
|
|
385
385
|
};
|
|
386
|
-
//# sourceMappingURL=chunk-
|
|
386
|
+
//# sourceMappingURL=chunk-55T4FZCW.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFormContext
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NCGK5YVT.js";
|
|
4
4
|
|
|
5
5
|
// src/SubmitButton/SubmitButton.tsx
|
|
6
6
|
import { cn, slugify } from "@fuf-stack/pixel-utils";
|
|
@@ -42,4 +42,4 @@ export {
|
|
|
42
42
|
SubmitButton_default,
|
|
43
43
|
SubmitButton_default2
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=chunk-
|
|
45
|
+
//# sourceMappingURL=chunk-6JH2Z7JC.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
useController,
|
|
9
9
|
useFormContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NCGK5YVT.js";
|
|
11
11
|
import {
|
|
12
12
|
__spreadProps,
|
|
13
13
|
__spreadValues
|
|
@@ -182,4 +182,4 @@ export {
|
|
|
182
182
|
CheckboxGroup_default,
|
|
183
183
|
CheckboxGroup_default2
|
|
184
184
|
};
|
|
185
|
-
//# sourceMappingURL=chunk-
|
|
185
|
+
//# sourceMappingURL=chunk-7AK7HQSV.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
useController,
|
|
9
9
|
useFormContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NCGK5YVT.js";
|
|
11
11
|
import {
|
|
12
12
|
__objRest,
|
|
13
13
|
__spreadProps,
|
|
@@ -166,4 +166,4 @@ export {
|
|
|
166
166
|
RadioBoxes_default,
|
|
167
167
|
RadioBoxes_default2
|
|
168
168
|
};
|
|
169
|
-
//# sourceMappingURL=chunk-
|
|
169
|
+
//# sourceMappingURL=chunk-AHOV7WDC.js.map
|
|
@@ -7,7 +7,7 @@ var _chunkPA2DQCBYcjs = require('./chunk-PA2DQCBY.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkH3SUJP7Lcjs = require('./chunk-H3SUJP7L.cjs');
|
|
11
11
|
|
|
12
12
|
// src/RadioGroup/RadioGroup.tsx
|
|
13
13
|
var _radio = require('@heroui/radio');
|
|
@@ -39,9 +39,9 @@ var RadioGroup = ({
|
|
|
39
39
|
options,
|
|
40
40
|
testId: _testId = void 0
|
|
41
41
|
}) => {
|
|
42
|
-
const { control, debugMode, getFieldState, getValues } =
|
|
42
|
+
const { control, debugMode, getFieldState, getValues } = _chunkH3SUJP7Lcjs.useFormContext.call(void 0, );
|
|
43
43
|
const { error, invalid, required, testId } = getFieldState(name, _testId);
|
|
44
|
-
const { field } =
|
|
44
|
+
const { field } = _chunkH3SUJP7Lcjs.useController.call(void 0, { control, disabled, name });
|
|
45
45
|
const { onChange, disabled: isDisabled, onBlur, ref } = field;
|
|
46
46
|
const showTestIdCopyButton = debugMode === "debug-testids";
|
|
47
47
|
const showLabel = label || showTestIdCopyButton;
|
|
@@ -109,4 +109,4 @@ var RadioGroup_default2 = RadioGroup_default;
|
|
|
109
109
|
|
|
110
110
|
|
|
111
111
|
exports.RadioGroup_default = RadioGroup_default; exports.RadioGroup_default2 = RadioGroup_default2;
|
|
112
|
-
//# sourceMappingURL=chunk-
|
|
112
|
+
//# sourceMappingURL=chunk-DBDSXMV4.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-DBDSXMV4.cjs","../src/RadioGroup/RadioGroup.tsx","../src/RadioGroup/index.ts"],"names":["RadioGroup_default"],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACA;ACRA,sCAAoD;AAEpD,oDAAkD;AAsGjC,+CAAA;AAhGV,IAAM,mBAAA,EAAqB,4BAAA;AAAG,EACnC,KAAA,EAAO;AAAA;AAAA,IAEL,IAAA,EAAM,OAAA;AAAA,IACN,QAAA,EAAU,EAAA;AAAA,IACV,WAAA,EAAa,8CAAA;AAAA,IACb,eAAA,EAAiB,EAAA;AAAA,IACjB,SAAA,EAAW,SAAA;AAAA,IACX,gBAAA,EAAkB,EAAA;AAAA,IAClB,WAAA,EACE,+HAAA;AAAA;AAAA;AAAA;AAAA,IAGF,KAAA,EACE,oFAAA;AAAA,IACF,OAAA,EAAS;AAAA,EACX;AACF,CAAC,CAAA;AAsCD,IAAM,WAAA,EAAa,CAAC;AAAA,EAClB,UAAA,EAAY,KAAA,CAAA;AAAA,EACZ,SAAA,EAAW,KAAA;AAAA,EACX,OAAA,EAAS,KAAA;AAAA,EACT,MAAA,EAAQ,KAAA,CAAA;AAAA,EACR,IAAA;AAAA,EACA,OAAA;AAAA,EACA,MAAA,EAAQ,QAAA,EAAU,KAAA;AACpB,CAAA,EAAA,GAAqC;AACnC,EAAA,MAAM,EAAE,OAAA,EAAS,SAAA,EAAW,aAAA,EAAe,UAAU,EAAA,EAAI,8CAAA,CAAe;AAExE,EAAA,MAAM,EAAE,KAAA,EAAO,OAAA,EAAS,QAAA,EAAU,OAAO,EAAA,EAAI,aAAA,CAAc,IAAA,EAAM,OAAO,CAAA;AAExE,EAAA,MAAM,EAAE,MAAM,EAAA,EAAI,6CAAA,EAAgB,OAAA,EAAS,QAAA,EAAU,KAAK,CAAC,CAAA;AAC3D,EAAA,MAAM,EAAE,QAAA,EAAU,QAAA,EAAU,UAAA,EAAY,MAAA,EAAQ,IAAI,EAAA,EAAI,KAAA;AAExD,EAAA,MAAM,qBAAA,EAAuB,UAAA,IAAc,eAAA;AAC3C,EAAA,MAAM,UAAA,EAAY,MAAA,GAAS,oBAAA;AAE3B,EAAA,MAAM,SAAA,EAAW,kBAAA,CAAmB,CAAA;AACpC,EAAA,MAAM,WAAA,EAAa,8CAAA,QAAqB,EAAU,SAAA,EAAW,MAAM,CAAA;AAEnE,EAAA,MAAM,eAAA,EAAiB;AAAA,IACrB,IAAA,EAAM,UAAA,CAAW,QAAA;AAAA,IACjB,OAAA,EAAS,UAAA,CAAW,WAAA;AAAA,IACpB,WAAA,EAAa,UAAA,CAAW,eAAA;AAAA,IACxB,KAAA,EAAO,UAAA,CAAW,SAAA;AAAA,IAClB,YAAA,EAAc,UAAA,CAAW,gBAAA;AAAA,IACzB,OAAA,EAAS,UAAA,CAAW;AAAA,EACtB,CAAA;AAEA,EAAA,uBACE,6BAAA;AAAA,IAAC,iBAAA;AAAA,IAAA;AAAA,MACC,UAAA;AAAA,MAGA,cAAA,EAAc,OAAA;AAAA,MACd,eAAA,EAAe,QAAA;AAAA,MACf,aAAA,EAAa,MAAA;AAAA,MACb,YAAA,EAAc,SAAA,CAAU,CAAA,CAAE,IAAI,CAAA;AAAA,MAC9B,YAAA,EACE,MAAA,mBAAS,6BAAA,8CAAC,EAAA,EAAqB,KAAA,EAAc,OAAA,CAAgB,CAAA;AAAA,MAE/D,UAAA;AAAA,MACA,SAAA,EAAW,OAAA;AAAA,MACX,UAAA,EAAY,QAAA;AAAA,MACZ,KAAA,EACE,UAAA;AAAA,sBAEE,8BAAA,OAAC,EAAA,EACE,QAAA,EAAA;AAAA,QAAA,KAAA;AAAA,QACA,qBAAA,mBAAwB,6BAAA,+CAAC,EAAA,EAAsB,OAAA,CAAgB;AAAA,MAAA,EAAA,CAClE,CAAA;AAAA,MAGJ,IAAA;AAAA,MACA,WAAA,EAAa,OAAA,EAAS,aAAA,EAAe,UAAA;AAAA,MACrC,MAAA;AAAA,MACA,GAAA;AAAA,MAEC,QAAA,EAAA,OAAA,CAAQ,GAAA,CAAI,CAAC,MAAA,EAAA,GAAW;AACvB,QAAA,GAAA,CAAI,QAAA,GAAW,MAAA,EAAQ;AACrB,UAAA,MAAM,aAAA,EAAe,iCAAA;AAAA,YACnB,CAAA,EAAA;AACA,YAAA;AACF,UAAA;AACA,UAAA;AACG,YAAA;AAAA,YAAA;AAAA,cAAA;AACa,cAAA;AACC,cAAA;AACoB,cAAA;AAEjC,cAAA;AACc,cAAA;AAEwB,YAAA;AAJjC,YAAA;AAKP,UAAA;AAEJ,QAAA;AACA,QAAA;AACD,MAAA;AAAA,IAAA;AACH,EAAA;AAEJ;AAEO;ADhDM;AACA;AElGNA;AFoGM;AACA;AACA;AACA;AACA","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/chunk-DBDSXMV4.cjs","sourcesContent":[null,"import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactElement, ReactNode } from 'react';\n\nimport { RadioGroup as HeroRadioGroup, Radio } from '@heroui/radio';\n\nimport { slugify, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { useController, useFormContext } from '../hooks';\nimport { FieldCopyTestIdButton } from '../partials/FieldCopyTestIdButton';\nimport { FieldValidationError } from '../partials/FieldValidationError';\n\nexport const radioGroupVariants = tv({\n slots: {\n // Needs group for group-data condition\n base: 'group',\n itemBase: '',\n itemControl: 'bg-focus group-data-[invalid=true]:bg-danger',\n itemDescription: '',\n itemLabel: 'text-sm',\n itemLabelWrapper: '',\n itemWrapper:\n 'group-data-[invalid=true]:!border-danger [&:not(group-data-[invalid=\"true\"]):not(group-data-[selected=\"false\"])]:border-focus', // TODO: get rid of !.\n // see HeroUI styles for group-data condition,\n // e.g.: https://github.com/heroui-inc/heroui/blob/main/packages/core/theme/src/components/select.ts\n label:\n 'text-sm text-foreground subpixel-antialiased group-data-[invalid=true]:text-danger',\n wrapper: '',\n },\n});\n\ntype VariantProps = TVProps<typeof radioGroupVariants>;\ntype ClassName = TVClassName<typeof radioGroupVariants>;\n\nexport interface RadioGroupOption {\n /** disables the option */\n disabled?: boolean;\n /** option label */\n label?: React.ReactNode;\n /** option icon */\n icon?: ReactNode;\n /** HTML data-testid attribute of the option */\n testId?: string;\n /** option value */\n value: string;\n}\n\nexport interface RadioGroupProps extends VariantProps {\n /** CSS class name */\n className?: ClassName;\n /** Determines if the Buttons are disabled or not. */\n disabled?: boolean;\n /** determines orientation of the Buttons. */\n inline?: boolean;\n /** Label displayed next to the RadioButton. */\n label?: ReactNode;\n /** Name the RadioButtons are registered at in HTML forms (react-hook-form). */\n name: string;\n /** Radio button configuration. */\n options: RadioGroupOption[];\n /** Id to grab element in internal tests. */\n testId?: string;\n}\n\n/**\n * RadioGroup component based on [HeroUI RadioGroup](https://www.heroui.com//docs/components/radio-group)\n */\nconst RadioGroup = ({\n className = undefined,\n disabled = false,\n inline = false,\n label = undefined,\n name,\n options,\n testId: _testId = undefined,\n}: RadioGroupProps): ReactElement => {\n const { control, debugMode, getFieldState, getValues } = useFormContext();\n\n const { error, invalid, required, testId } = getFieldState(name, _testId);\n\n const { field } = useController({ control, disabled, name });\n const { onChange, disabled: isDisabled, onBlur, ref } = field;\n\n const showTestIdCopyButton = debugMode === 'debug-testids';\n const showLabel = label || showTestIdCopyButton;\n\n const variants = radioGroupVariants();\n const classNames = variantsToClassNames(variants, className, 'base');\n\n const itemClassNames = {\n base: classNames.itemBase,\n control: classNames.itemControl,\n description: classNames.itemDescription,\n label: classNames.itemLabel,\n labelWrapper: classNames.itemLabelWrapper,\n wrapper: classNames.itemWrapper,\n };\n\n return (\n <HeroRadioGroup\n classNames={classNames}\n // see HeroUI styles for group-data condition (data-invalid),\n // e.g.: https://github.com/heroui-inc/heroui/blob/main/packages/components/select/src/use-select.ts\n data-invalid={invalid}\n data-required={required}\n data-testid={testId}\n defaultValue={getValues()[name]}\n errorMessage={\n error && <FieldValidationError error={error} testId={testId} />\n }\n isDisabled={isDisabled}\n isInvalid={invalid}\n isRequired={required}\n label={\n showLabel && (\n // eslint-disable-next-line jsx-a11y/label-has-associated-control\n <label>\n {label}\n {showTestIdCopyButton && <FieldCopyTestIdButton testId={testId} />}\n </label>\n )\n }\n name={name}\n orientation={inline ? 'horizontal' : 'vertical'}\n onBlur={onBlur}\n ref={ref}\n >\n {options.map((option) => {\n if ('value' in option) {\n const optionTestId = slugify(\n `${testId}_option_${option.testId || option.value}`,\n { replaceDots: true },\n );\n return (\n <Radio\n classNames={itemClassNames}\n data-testid={optionTestId}\n isDisabled={isDisabled || option.disabled}\n key={option.value}\n onChange={onChange}\n value={option.value}\n >\n {option.label ? option.label : option.value}\n </Radio>\n );\n }\n return null;\n })}\n </HeroRadioGroup>\n );\n};\n\nexport default RadioGroup;\n","import RadioGroup from './RadioGroup';\n\nexport type { RadioGroupProps } from './RadioGroup';\n\nexport { RadioGroup };\n\nexport default RadioGroup;\n"]}
|