@fuf-stack/uniform 1.9.0 → 1.10.1
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/Checkboxes/index.cjs +7 -12
- package/dist/Checkboxes/index.cjs.map +1 -1
- package/dist/Checkboxes/index.d.cts +2 -2
- package/dist/Checkboxes/index.d.ts +2 -2
- package/dist/Checkboxes/index.js +6 -11
- package/dist/{Checkboxes-CDjOYw76.d.cts → Checkboxes-CBgO9itq.d.cts} +2 -0
- package/dist/{Checkboxes-wWzFP2sn.d.ts → Checkboxes-CFbsc6zg.d.ts} +2 -0
- package/dist/FieldArray/index.cjs +9 -12
- package/dist/FieldArray/index.cjs.map +1 -1
- package/dist/FieldArray/index.d.cts +2 -2
- package/dist/FieldArray/index.d.ts +2 -2
- package/dist/FieldArray/index.js +8 -11
- package/dist/{FieldArray-Cql1zcch.d.cts → FieldArray-72vn2MG9.d.cts} +2 -2
- package/dist/{FieldArray-Cql1zcch.d.ts → FieldArray-72vn2MG9.d.ts} +2 -2
- package/dist/FieldCard/index.cjs +19 -0
- package/dist/FieldCard/index.cjs.map +1 -0
- package/dist/FieldCard/index.d.cts +95 -0
- package/dist/FieldCard/index.d.ts +95 -0
- package/dist/FieldCard/index.js +19 -0
- package/dist/Form/index.cjs +6 -16
- package/dist/Form/index.cjs.map +1 -1
- package/dist/Form/index.js +5 -15
- package/dist/Input/index.cjs +8 -12
- package/dist/Input/index.cjs.map +1 -1
- package/dist/Input/index.d.cts +2 -2
- package/dist/Input/index.d.ts +2 -2
- package/dist/Input/index.js +7 -11
- package/dist/{Input-DMVTcinm.d.cts → Input-BGYDOpbo.d.cts} +4 -2
- package/dist/{Input-BcdS2xBM.d.ts → Input-__SqMh2n.d.ts} +4 -2
- package/dist/{RadioBox-B0s3q9g6.d.cts → RadioBox-DnqCiTR1.d.cts} +2 -0
- package/dist/{RadioBox-B0s3q9g6.d.ts → RadioBox-DnqCiTR1.d.ts} +2 -0
- package/dist/RadioBoxes/index.cjs +7 -12
- package/dist/RadioBoxes/index.cjs.map +1 -1
- package/dist/RadioBoxes/index.d.cts +2 -2
- package/dist/RadioBoxes/index.d.ts +2 -2
- package/dist/RadioBoxes/index.js +6 -11
- package/dist/RadioTabs/index.cjs +7 -12
- package/dist/RadioTabs/index.cjs.map +1 -1
- package/dist/RadioTabs/index.d.cts +2 -2
- package/dist/RadioTabs/index.d.ts +2 -2
- package/dist/RadioTabs/index.js +6 -11
- package/dist/{RadioTabs-D9Px3XEs.d.cts → RadioTabs-DkR5fvl4.d.cts} +3 -1
- package/dist/{RadioTabs-D9Px3XEs.d.ts → RadioTabs-DkR5fvl4.d.ts} +3 -1
- package/dist/Radios/index.cjs +7 -12
- package/dist/Radios/index.cjs.map +1 -1
- package/dist/Radios/index.d.cts +2 -2
- package/dist/Radios/index.d.ts +2 -2
- package/dist/Radios/index.js +6 -11
- package/dist/{Radios-DprlJhoq.d.cts → Radios-lLVlvY_B.d.cts} +3 -1
- package/dist/{Radios-DprlJhoq.d.ts → Radios-lLVlvY_B.d.ts} +3 -1
- package/dist/Select/index.cjs +8 -12
- package/dist/Select/index.cjs.map +1 -1
- package/dist/Select/index.d.cts +3 -2
- package/dist/Select/index.d.ts +3 -2
- package/dist/Select/index.js +7 -11
- package/dist/{Select-CDkZmZp2.d.cts → Select-DWlnKj5c.d.cts} +8 -5
- package/dist/{Select-CDkZmZp2.d.ts → Select-DWlnKj5c.d.ts} +8 -5
- package/dist/Slider/index.cjs +7 -7
- package/dist/Slider/index.d.cts +2 -2
- package/dist/Slider/index.d.ts +2 -2
- package/dist/Slider/index.js +6 -6
- package/dist/{Slider-CIVhjJy1.d.cts → Slider-CxHvafJA.d.cts} +4 -2
- package/dist/{Slider-CIVhjJy1.d.ts → Slider-CxHvafJA.d.ts} +4 -2
- package/dist/SubmitButton/index.cjs +6 -16
- package/dist/SubmitButton/index.cjs.map +1 -1
- package/dist/SubmitButton/index.js +5 -15
- package/dist/Switch/index.cjs +7 -12
- package/dist/Switch/index.cjs.map +1 -1
- package/dist/Switch/index.d.cts +2 -2
- package/dist/Switch/index.d.ts +2 -2
- package/dist/Switch/index.js +6 -11
- package/dist/{Switch-CqBVdRJe.d.cts → Switch-B4AuHAMX.d.cts} +2 -0
- package/dist/{Switch-CqBVdRJe.d.ts → Switch-B4AuHAMX.d.ts} +2 -0
- package/dist/SwitchBox/index.cjs +7 -12
- package/dist/SwitchBox/index.cjs.map +1 -1
- package/dist/SwitchBox/index.js +6 -11
- package/dist/TextArea/index.cjs +8 -12
- package/dist/TextArea/index.cjs.map +1 -1
- package/dist/TextArea/index.d.cts +2 -2
- package/dist/TextArea/index.d.ts +2 -2
- package/dist/TextArea/index.js +7 -11
- package/dist/{TextArea-DhxNWYNg.d.cts → TextArea-CYcFOcun.d.cts} +2 -0
- package/dist/{TextArea-DhxNWYNg.d.ts → TextArea-CYcFOcun.d.ts} +2 -0
- package/dist/{chunk-JICFOKDO.js → chunk-264VRHMT.js} +5 -3
- package/dist/chunk-264VRHMT.js.map +1 -0
- package/dist/{chunk-WWRIMXSN.js → chunk-26VE4IGU.js} +3 -3
- package/dist/{chunk-UUGSI3FD.js → chunk-2HDXHQOC.js} +2 -2
- package/dist/chunk-2HDXHQOC.js.map +1 -0
- package/dist/{chunk-6RZT2BKH.cjs → chunk-2UQCRQEJ.cjs} +5 -5
- package/dist/{chunk-6RZT2BKH.cjs.map → chunk-2UQCRQEJ.cjs.map} +1 -1
- package/dist/chunk-36LBVB45.js +1 -0
- package/dist/chunk-3JAVQAL5.cjs +1 -0
- package/dist/{chunk-KWJMKX5J.cjs.map → chunk-3JAVQAL5.cjs.map} +1 -1
- package/dist/{chunk-NTOYCWCJ.cjs → chunk-3ZQXSGR2.cjs} +1 -1
- package/dist/{chunk-NTOYCWCJ.cjs.map → chunk-3ZQXSGR2.cjs.map} +1 -1
- package/dist/{chunk-CG7GDQAP.js → chunk-4CQWTUQR.js} +6 -4
- package/dist/chunk-4CQWTUQR.js.map +1 -0
- package/dist/{chunk-LTE7PW7F.cjs → chunk-55VJM3KD.cjs} +5 -3
- package/dist/chunk-55VJM3KD.cjs.map +1 -0
- package/dist/{chunk-GE7HUIAK.js → chunk-5MTIQ6WD.js} +3 -3
- package/dist/{chunk-NV4YVZYX.cjs → chunk-6AWHOBNL.cjs} +6 -6
- package/dist/{chunk-NV4YVZYX.cjs.map → chunk-6AWHOBNL.cjs.map} +1 -1
- package/dist/{chunk-7WKVH43M.cjs → chunk-6GN62PBG.cjs} +6 -3
- package/dist/chunk-6GN62PBG.cjs.map +1 -0
- package/dist/{chunk-DQAZSXD6.js → chunk-7MOAXLQZ.js} +4 -4
- package/dist/chunk-7MOAXLQZ.js.map +1 -0
- package/dist/{chunk-MHQ2V7UW.js → chunk-7OMJ26AT.js} +4 -2
- package/dist/chunk-7OMJ26AT.js.map +1 -0
- package/dist/{chunk-MEYGGRBQ.cjs → chunk-7ZE7IZ5R.cjs} +7 -7
- package/dist/chunk-7ZE7IZ5R.cjs.map +1 -0
- package/dist/{chunk-UBLASN6D.cjs → chunk-AQJLKHAE.cjs} +5 -5
- package/dist/{chunk-UBLASN6D.cjs.map → chunk-AQJLKHAE.cjs.map} +1 -1
- package/dist/{chunk-XBVXMQBW.js → chunk-C6WYP35Z.js} +4 -2
- package/dist/chunk-C6WYP35Z.js.map +1 -0
- package/dist/{chunk-IU4RL2D7.cjs → chunk-ECUVOZGQ.cjs} +9 -6
- package/dist/chunk-ECUVOZGQ.cjs.map +1 -0
- package/dist/{chunk-CEVS6WSG.js → chunk-EVASKP6Q.js} +7 -4
- package/dist/chunk-EVASKP6Q.js.map +1 -0
- package/dist/{chunk-UUGUQGMX.cjs → chunk-FYN7ZWLW.cjs} +10 -10
- package/dist/{chunk-UUGUQGMX.cjs.map → chunk-FYN7ZWLW.cjs.map} +1 -1
- package/dist/{chunk-7FOSZV75.js → chunk-GEC75GNL.js} +10 -9
- package/dist/chunk-GEC75GNL.js.map +1 -0
- package/dist/{chunk-NKIZA3ZO.cjs → chunk-HEPNEBRF.cjs} +3 -3
- package/dist/{chunk-NKIZA3ZO.cjs.map → chunk-HEPNEBRF.cjs.map} +1 -1
- package/dist/{chunk-TUIK3MER.js → chunk-IV45K4WU.js} +2 -2
- package/dist/{chunk-246OISWB.js → chunk-KBKMMDLM.js} +4 -2
- package/dist/chunk-KBKMMDLM.js.map +1 -0
- package/dist/{chunk-SR76XJW4.cjs → chunk-KDNO5YO5.cjs} +7 -5
- package/dist/chunk-KDNO5YO5.cjs.map +1 -0
- package/dist/{chunk-ZJDU5EPE.js → chunk-LEMQGDFE.js} +1 -1
- package/dist/{chunk-IKOYYA75.js → chunk-LO7UKHOS.js} +2 -2
- package/dist/{chunk-RRG5ZLVF.cjs → chunk-LWPZZ2AW.cjs} +5 -5
- package/dist/{chunk-RRG5ZLVF.cjs.map → chunk-LWPZZ2AW.cjs.map} +1 -1
- package/dist/{chunk-XXLYUZY4.js → chunk-NG3CJ3UE.js} +6 -6
- package/dist/chunk-NG3CJ3UE.js.map +1 -0
- package/dist/chunk-NXBYGCPL.cjs +149 -0
- package/dist/chunk-NXBYGCPL.cjs.map +1 -0
- package/dist/{chunk-BOCYHTFE.js → chunk-O2XJNQQK.js} +1 -7
- package/dist/chunk-O2XJNQQK.js.map +1 -0
- package/dist/{chunk-TKICOKNS.cjs → chunk-OKJWLH7T.cjs} +3 -9
- package/dist/chunk-OKJWLH7T.cjs.map +1 -0
- package/dist/{chunk-A3PYIWG2.js → chunk-OORASWXL.js} +2 -2
- package/dist/chunk-OORASWXL.js.map +1 -0
- package/dist/{chunk-XMCL3F4W.js → chunk-PRUIH5LI.js} +5 -3
- package/dist/chunk-PRUIH5LI.js.map +1 -0
- package/dist/{chunk-IZZTVGEW.js → chunk-QLNJZDVF.js} +5 -2
- package/dist/chunk-QLNJZDVF.js.map +1 -0
- package/dist/{chunk-LUO4I3TW.js → chunk-RHARCEQE.js} +32 -14
- package/dist/chunk-RHARCEQE.js.map +1 -0
- package/dist/{chunk-VIV3MSIX.cjs → chunk-RVBTLB5G.cjs} +6 -4
- package/dist/chunk-RVBTLB5G.cjs.map +1 -0
- package/dist/{chunk-ZZW7JZ2U.js → chunk-SJWL6EMI.js} +3 -3
- package/dist/{chunk-FUMQULCR.cjs → chunk-SW3NGBCE.cjs} +3 -3
- package/dist/chunk-SW3NGBCE.cjs.map +1 -0
- package/dist/{chunk-THCIT66I.cjs → chunk-THDHNYP7.cjs} +5 -3
- package/dist/chunk-THDHNYP7.cjs.map +1 -0
- package/dist/{chunk-Y7YEI6T2.js → chunk-UB7CSOZU.js} +3 -3
- package/dist/chunk-UB7CSOZU.js.map +1 -0
- package/dist/{chunk-YCCBMAN2.cjs → chunk-V3M7HL26.cjs} +12 -11
- package/dist/chunk-V3M7HL26.cjs.map +1 -0
- package/dist/{chunk-JQQ32JOD.cjs → chunk-WXSISX5Y.cjs} +3 -3
- package/dist/chunk-WXSISX5Y.cjs.map +1 -0
- package/dist/{chunk-V65AMUKK.cjs → chunk-WYM6IAIJ.cjs} +8 -6
- package/dist/chunk-WYM6IAIJ.cjs.map +1 -0
- package/dist/{chunk-2OXNDD5W.cjs → chunk-XPFJZAG7.cjs} +32 -14
- package/dist/chunk-XPFJZAG7.cjs.map +1 -0
- package/dist/{chunk-XC3C2W4M.cjs → chunk-YYR23V5P.cjs} +5 -3
- package/dist/chunk-YYR23V5P.cjs.map +1 -0
- package/dist/{chunk-7O6LAGV2.cjs → chunk-Z6QACVK7.cjs} +10 -10
- package/dist/chunk-Z6QACVK7.cjs.map +1 -0
- package/dist/chunk-ZIMWVUMQ.js +149 -0
- package/dist/chunk-ZIMWVUMQ.js.map +1 -0
- package/dist/helpers/index.cjs +2 -4
- package/dist/helpers/index.cjs.map +1 -1
- package/dist/helpers/index.d.cts +1 -25
- package/dist/helpers/index.d.ts +1 -25
- package/dist/helpers/index.js +1 -3
- package/dist/hooks/useClientValidation/index.cjs +5 -5
- package/dist/hooks/useClientValidation/index.js +4 -4
- package/dist/hooks/useController/index.cjs +4 -4
- package/dist/hooks/useController/index.js +3 -3
- package/dist/hooks/useFormContext/index.cjs +6 -5
- package/dist/hooks/useFormContext/index.cjs.map +1 -1
- package/dist/hooks/useFormContext/index.d.cts +2 -2
- package/dist/hooks/useFormContext/index.d.ts +2 -2
- package/dist/hooks/useFormContext/index.js +4 -3
- package/dist/hooks/useInputValueDebounce/index.cjs +2 -2
- package/dist/hooks/useInputValueDebounce/index.js +1 -1
- package/dist/hooks/useUniformField/index.cjs +6 -6
- package/dist/hooks/useUniformField/index.d.cts +9 -5
- package/dist/hooks/useUniformField/index.d.ts +9 -5
- package/dist/hooks/useUniformField/index.js +5 -5
- package/dist/hooks/useUniformFieldArray/index.cjs +8 -7
- package/dist/hooks/useUniformFieldArray/index.cjs.map +1 -1
- package/dist/hooks/useUniformFieldArray/index.d.cts +6 -5
- package/dist/hooks/useUniformFieldArray/index.d.ts +6 -5
- package/dist/hooks/useUniformFieldArray/index.js +7 -6
- package/dist/hooks/useWatchUserChange/index.cjs +5 -5
- package/dist/hooks/useWatchUserChange/index.js +4 -4
- package/dist/index.cjs +31 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -17
- package/dist/index.d.ts +18 -17
- package/dist/index.js +43 -39
- package/package.json +9 -9
- package/dist/chunk-246OISWB.js.map +0 -1
- package/dist/chunk-2OXNDD5W.cjs.map +0 -1
- package/dist/chunk-7FOSZV75.js.map +0 -1
- package/dist/chunk-7O6LAGV2.cjs.map +0 -1
- package/dist/chunk-7WKVH43M.cjs.map +0 -1
- package/dist/chunk-A3PYIWG2.js.map +0 -1
- package/dist/chunk-BOCYHTFE.js.map +0 -1
- package/dist/chunk-CEVS6WSG.js.map +0 -1
- package/dist/chunk-CG7GDQAP.js.map +0 -1
- package/dist/chunk-DQAZSXD6.js.map +0 -1
- package/dist/chunk-FUMQULCR.cjs.map +0 -1
- package/dist/chunk-IU4RL2D7.cjs.map +0 -1
- package/dist/chunk-IZZTVGEW.js.map +0 -1
- package/dist/chunk-JICFOKDO.js.map +0 -1
- package/dist/chunk-JQQ32JOD.cjs.map +0 -1
- package/dist/chunk-KWJMKX5J.cjs +0 -1
- package/dist/chunk-LTE7PW7F.cjs.map +0 -1
- package/dist/chunk-LUO4I3TW.js.map +0 -1
- package/dist/chunk-MEYGGRBQ.cjs.map +0 -1
- package/dist/chunk-MHQ2V7UW.js.map +0 -1
- package/dist/chunk-SR76XJW4.cjs.map +0 -1
- package/dist/chunk-THCIT66I.cjs.map +0 -1
- package/dist/chunk-TKICOKNS.cjs.map +0 -1
- package/dist/chunk-UUGSI3FD.js.map +0 -1
- package/dist/chunk-V3GDAELU.js +0 -1
- package/dist/chunk-V65AMUKK.cjs.map +0 -1
- package/dist/chunk-VIV3MSIX.cjs.map +0 -1
- package/dist/chunk-XBVXMQBW.js.map +0 -1
- package/dist/chunk-XC3C2W4M.cjs.map +0 -1
- package/dist/chunk-XMCL3F4W.js.map +0 -1
- package/dist/chunk-XXLYUZY4.js.map +0 -1
- package/dist/chunk-Y7YEI6T2.js.map +0 -1
- package/dist/chunk-YCCBMAN2.cjs.map +0 -1
- package/dist/hooks/index.cjs +0 -49
- package/dist/hooks/index.cjs.map +0 -1
- package/dist/hooks/index.d.cts +0 -14
- package/dist/hooks/index.d.ts +0 -14
- package/dist/hooks/index.js +0 -49
- /package/dist/{hooks → FieldCard}/index.js.map +0 -0
- /package/dist/{chunk-WWRIMXSN.js.map → chunk-26VE4IGU.js.map} +0 -0
- /package/dist/{chunk-V3GDAELU.js.map → chunk-36LBVB45.js.map} +0 -0
- /package/dist/{chunk-GE7HUIAK.js.map → chunk-5MTIQ6WD.js.map} +0 -0
- /package/dist/{chunk-TUIK3MER.js.map → chunk-IV45K4WU.js.map} +0 -0
- /package/dist/{chunk-ZJDU5EPE.js.map → chunk-LEMQGDFE.js.map} +0 -0
- /package/dist/{chunk-IKOYYA75.js.map → chunk-LO7UKHOS.js.map} +0 -0
- /package/dist/{chunk-ZZW7JZ2U.js.map → chunk-SJWL6EMI.js.map} +0 -0
package/dist/Slider/index.cjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
4
|
+
var _chunkXPFJZAG7cjs = require('../chunk-XPFJZAG7.cjs');
|
|
5
|
+
require('../chunk-V3M7HL26.cjs');
|
|
6
6
|
require('../chunk-OE5BOGGX.cjs');
|
|
7
7
|
require('../chunk-NHEZXA4H.cjs');
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-UUGUQGMX.cjs');
|
|
10
|
-
require('../chunk-UBLASN6D.cjs');
|
|
8
|
+
require('../chunk-6AWHOBNL.cjs');
|
|
11
9
|
require('../chunk-PCTYJUY7.cjs');
|
|
12
10
|
require('../chunk-56TQOKG7.cjs');
|
|
13
|
-
require('../chunk-
|
|
11
|
+
require('../chunk-FYN7ZWLW.cjs');
|
|
12
|
+
require('../chunk-AQJLKHAE.cjs');
|
|
13
|
+
require('../chunk-OKJWLH7T.cjs');
|
|
14
14
|
require('../chunk-555JRYCS.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.Slider =
|
|
18
|
+
exports.Slider = _chunkXPFJZAG7cjs.Slider_default; exports.default = _chunkXPFJZAG7cjs.Slider_default2;
|
|
19
19
|
//# sourceMappingURL=index.cjs.map
|
package/dist/Slider/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Slider } from '../Slider-
|
|
2
|
-
export { a as SliderProps } from '../Slider-
|
|
1
|
+
import { S as Slider } from '../Slider-CxHvafJA.cjs';
|
|
2
|
+
export { a as SliderProps } from '../Slider-CxHvafJA.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants';
|
|
5
5
|
import '@fuf-stack/pixel-utils';
|
package/dist/Slider/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Slider } from '../Slider-
|
|
2
|
-
export { a as SliderProps } from '../Slider-
|
|
1
|
+
import { S as Slider } from '../Slider-CxHvafJA.js';
|
|
2
|
+
export { a as SliderProps } from '../Slider-CxHvafJA.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants';
|
|
5
5
|
import '@fuf-stack/pixel-utils';
|
package/dist/Slider/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Slider_default,
|
|
3
3
|
Slider_default2
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-RHARCEQE.js";
|
|
5
|
+
import "../chunk-GEC75GNL.js";
|
|
6
6
|
import "../chunk-NTDKZW4E.js";
|
|
7
7
|
import "../chunk-ELYGQTXB.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-ZZW7JZ2U.js";
|
|
10
|
-
import "../chunk-TUIK3MER.js";
|
|
8
|
+
import "../chunk-5MTIQ6WD.js";
|
|
11
9
|
import "../chunk-AHJJIANM.js";
|
|
12
10
|
import "../chunk-CNTOODUQ.js";
|
|
13
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-SJWL6EMI.js";
|
|
12
|
+
import "../chunk-IV45K4WU.js";
|
|
13
|
+
import "../chunk-O2XJNQQK.js";
|
|
14
14
|
import "../chunk-K2V4ULA2.js";
|
|
15
15
|
export {
|
|
16
16
|
Slider_default as Slider,
|
|
@@ -103,6 +103,8 @@ declare const sliderVariants: tailwind_variants.TVReturnType<{
|
|
|
103
103
|
type VariantProps = TVProps<typeof sliderVariants>;
|
|
104
104
|
type ClassName = TVClassName<typeof sliderVariants>;
|
|
105
105
|
interface SliderProps extends VariantProps {
|
|
106
|
+
/** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */
|
|
107
|
+
ariaLabel?: string;
|
|
106
108
|
/** CSS class name */
|
|
107
109
|
className?: ClassName;
|
|
108
110
|
/** input field is disabled */
|
|
@@ -111,8 +113,8 @@ interface SliderProps extends VariantProps {
|
|
|
111
113
|
endContent?: ReactNode;
|
|
112
114
|
/** The offset from where the fill should start */
|
|
113
115
|
fillOffset?: number;
|
|
114
|
-
/** form field label
|
|
115
|
-
label?: string
|
|
116
|
+
/** form field label */
|
|
117
|
+
label?: string;
|
|
116
118
|
/** form field name */
|
|
117
119
|
name: string;
|
|
118
120
|
/**
|
|
@@ -103,6 +103,8 @@ declare const sliderVariants: tailwind_variants.TVReturnType<{
|
|
|
103
103
|
type VariantProps = TVProps<typeof sliderVariants>;
|
|
104
104
|
type ClassName = TVClassName<typeof sliderVariants>;
|
|
105
105
|
interface SliderProps extends VariantProps {
|
|
106
|
+
/** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */
|
|
107
|
+
ariaLabel?: string;
|
|
106
108
|
/** CSS class name */
|
|
107
109
|
className?: ClassName;
|
|
108
110
|
/** input field is disabled */
|
|
@@ -111,8 +113,8 @@ interface SliderProps extends VariantProps {
|
|
|
111
113
|
endContent?: ReactNode;
|
|
112
114
|
/** The offset from where the fill should start */
|
|
113
115
|
fillOffset?: number;
|
|
114
|
-
/** form field label
|
|
115
|
-
label?: string
|
|
116
|
+
/** form field label */
|
|
117
|
+
label?: string;
|
|
116
118
|
/** form field name */
|
|
117
119
|
name: string;
|
|
118
120
|
/**
|
|
@@ -1,24 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-NTOYCWCJ.cjs');
|
|
10
|
-
require('../chunk-YCCBMAN2.cjs');
|
|
11
|
-
require('../chunk-OE5BOGGX.cjs');
|
|
12
|
-
require('../chunk-NHEZXA4H.cjs');
|
|
13
|
-
require('../chunk-NV4YVZYX.cjs');
|
|
14
|
-
require('../chunk-UUGUQGMX.cjs');
|
|
15
|
-
require('../chunk-UBLASN6D.cjs');
|
|
16
|
-
require('../chunk-PCTYJUY7.cjs');
|
|
17
|
-
require('../chunk-56TQOKG7.cjs');
|
|
18
|
-
require('../chunk-TKICOKNS.cjs');
|
|
4
|
+
var _chunkWXSISX5Ycjs = require('../chunk-WXSISX5Y.cjs');
|
|
5
|
+
require('../chunk-3JAVQAL5.cjs');
|
|
6
|
+
require('../chunk-FYN7ZWLW.cjs');
|
|
7
|
+
require('../chunk-AQJLKHAE.cjs');
|
|
8
|
+
require('../chunk-OKJWLH7T.cjs');
|
|
19
9
|
require('../chunk-555JRYCS.cjs');
|
|
20
10
|
|
|
21
11
|
|
|
22
12
|
|
|
23
|
-
exports.SubmitButton =
|
|
13
|
+
exports.SubmitButton = _chunkWXSISX5Ycjs.SubmitButton_default; exports.default = _chunkWXSISX5Ycjs.SubmitButton_default2;
|
|
24
14
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/SubmitButton/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/SubmitButton/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,yHAAC","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/SubmitButton/index.cjs"}
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SubmitButton_default,
|
|
3
3
|
SubmitButton_default2
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-ZJDU5EPE.js";
|
|
10
|
-
import "../chunk-7FOSZV75.js";
|
|
11
|
-
import "../chunk-NTDKZW4E.js";
|
|
12
|
-
import "../chunk-ELYGQTXB.js";
|
|
13
|
-
import "../chunk-GE7HUIAK.js";
|
|
14
|
-
import "../chunk-ZZW7JZ2U.js";
|
|
15
|
-
import "../chunk-TUIK3MER.js";
|
|
16
|
-
import "../chunk-AHJJIANM.js";
|
|
17
|
-
import "../chunk-CNTOODUQ.js";
|
|
18
|
-
import "../chunk-BOCYHTFE.js";
|
|
4
|
+
} from "../chunk-OORASWXL.js";
|
|
5
|
+
import "../chunk-36LBVB45.js";
|
|
6
|
+
import "../chunk-SJWL6EMI.js";
|
|
7
|
+
import "../chunk-IV45K4WU.js";
|
|
8
|
+
import "../chunk-O2XJNQQK.js";
|
|
19
9
|
import "../chunk-K2V4ULA2.js";
|
|
20
10
|
export {
|
|
21
11
|
SubmitButton_default as SubmitButton,
|
package/dist/Switch/index.cjs
CHANGED
|
@@ -1,24 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-MEYGGRBQ.cjs');
|
|
7
|
-
require('../chunk-NKIZA3ZO.cjs');
|
|
8
|
-
require('../chunk-6RZT2BKH.cjs');
|
|
9
|
-
require('../chunk-NTOYCWCJ.cjs');
|
|
10
|
-
require('../chunk-YCCBMAN2.cjs');
|
|
4
|
+
var _chunkRVBTLB5Gcjs = require('../chunk-RVBTLB5G.cjs');
|
|
5
|
+
require('../chunk-V3M7HL26.cjs');
|
|
11
6
|
require('../chunk-OE5BOGGX.cjs');
|
|
12
7
|
require('../chunk-NHEZXA4H.cjs');
|
|
13
|
-
require('../chunk-
|
|
14
|
-
require('../chunk-UUGUQGMX.cjs');
|
|
15
|
-
require('../chunk-UBLASN6D.cjs');
|
|
8
|
+
require('../chunk-6AWHOBNL.cjs');
|
|
16
9
|
require('../chunk-PCTYJUY7.cjs');
|
|
17
10
|
require('../chunk-56TQOKG7.cjs');
|
|
18
|
-
require('../chunk-
|
|
11
|
+
require('../chunk-FYN7ZWLW.cjs');
|
|
12
|
+
require('../chunk-AQJLKHAE.cjs');
|
|
13
|
+
require('../chunk-OKJWLH7T.cjs');
|
|
19
14
|
require('../chunk-555JRYCS.cjs');
|
|
20
15
|
|
|
21
16
|
|
|
22
17
|
|
|
23
|
-
exports.Switch =
|
|
18
|
+
exports.Switch = _chunkRVBTLB5Gcjs.Switch_default; exports.default = _chunkRVBTLB5Gcjs.Switch_default2;
|
|
24
19
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/Switch/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/Switch/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,uGAAC","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/Switch/index.cjs"}
|
package/dist/Switch/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Switch } from '../Switch-
|
|
2
|
-
export { a as SwitchProps } from '../Switch-
|
|
1
|
+
import { S as Switch } from '../Switch-B4AuHAMX.cjs';
|
|
2
|
+
export { a as SwitchProps } from '../Switch-B4AuHAMX.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants';
|
|
5
5
|
import '@fuf-stack/pixel-utils';
|
package/dist/Switch/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Switch } from '../Switch-
|
|
2
|
-
export { a as SwitchProps } from '../Switch-
|
|
1
|
+
import { S as Switch } from '../Switch-B4AuHAMX.js';
|
|
2
|
+
export { a as SwitchProps } from '../Switch-B4AuHAMX.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants';
|
|
5
5
|
import '@fuf-stack/pixel-utils';
|
package/dist/Switch/index.js
CHANGED
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Switch_default,
|
|
3
3
|
Switch_default2
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-DQAZSXD6.js";
|
|
7
|
-
import "../chunk-IKOYYA75.js";
|
|
8
|
-
import "../chunk-WWRIMXSN.js";
|
|
9
|
-
import "../chunk-ZJDU5EPE.js";
|
|
10
|
-
import "../chunk-7FOSZV75.js";
|
|
4
|
+
} from "../chunk-PRUIH5LI.js";
|
|
5
|
+
import "../chunk-GEC75GNL.js";
|
|
11
6
|
import "../chunk-NTDKZW4E.js";
|
|
12
7
|
import "../chunk-ELYGQTXB.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-ZZW7JZ2U.js";
|
|
15
|
-
import "../chunk-TUIK3MER.js";
|
|
8
|
+
import "../chunk-5MTIQ6WD.js";
|
|
16
9
|
import "../chunk-AHJJIANM.js";
|
|
17
10
|
import "../chunk-CNTOODUQ.js";
|
|
18
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-SJWL6EMI.js";
|
|
12
|
+
import "../chunk-IV45K4WU.js";
|
|
13
|
+
import "../chunk-O2XJNQQK.js";
|
|
19
14
|
import "../chunk-K2V4ULA2.js";
|
|
20
15
|
export {
|
|
21
16
|
Switch_default as Switch,
|
|
@@ -80,6 +80,8 @@ declare const switchVariants: tailwind_variants.TVReturnType<{
|
|
|
80
80
|
type VariantProps = TVProps<typeof switchVariants>;
|
|
81
81
|
type ClassName = TVClassName<typeof switchVariants>;
|
|
82
82
|
interface SwitchProps extends VariantProps {
|
|
83
|
+
/** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */
|
|
84
|
+
ariaLabel?: string;
|
|
83
85
|
/** CSS class name */
|
|
84
86
|
className?: ClassName;
|
|
85
87
|
/** whether the select should be disabled */
|
|
@@ -80,6 +80,8 @@ declare const switchVariants: tailwind_variants.TVReturnType<{
|
|
|
80
80
|
type VariantProps = TVProps<typeof switchVariants>;
|
|
81
81
|
type ClassName = TVClassName<typeof switchVariants>;
|
|
82
82
|
interface SwitchProps extends VariantProps {
|
|
83
|
+
/** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */
|
|
84
|
+
ariaLabel?: string;
|
|
83
85
|
/** CSS class name */
|
|
84
86
|
className?: ClassName;
|
|
85
87
|
/** whether the select should be disabled */
|
package/dist/SwitchBox/index.cjs
CHANGED
|
@@ -2,25 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-MEYGGRBQ.cjs');
|
|
8
|
-
require('../chunk-NKIZA3ZO.cjs');
|
|
9
|
-
require('../chunk-6RZT2BKH.cjs');
|
|
10
|
-
require('../chunk-NTOYCWCJ.cjs');
|
|
11
|
-
require('../chunk-YCCBMAN2.cjs');
|
|
5
|
+
var _chunkSW3NGBCEcjs = require('../chunk-SW3NGBCE.cjs');
|
|
6
|
+
require('../chunk-V3M7HL26.cjs');
|
|
12
7
|
require('../chunk-OE5BOGGX.cjs');
|
|
13
8
|
require('../chunk-NHEZXA4H.cjs');
|
|
14
|
-
require('../chunk-
|
|
15
|
-
require('../chunk-UUGUQGMX.cjs');
|
|
16
|
-
require('../chunk-UBLASN6D.cjs');
|
|
9
|
+
require('../chunk-6AWHOBNL.cjs');
|
|
17
10
|
require('../chunk-PCTYJUY7.cjs');
|
|
18
11
|
require('../chunk-56TQOKG7.cjs');
|
|
19
|
-
require('../chunk-
|
|
12
|
+
require('../chunk-FYN7ZWLW.cjs');
|
|
13
|
+
require('../chunk-AQJLKHAE.cjs');
|
|
14
|
+
require('../chunk-OKJWLH7T.cjs');
|
|
20
15
|
require('../chunk-555JRYCS.cjs');
|
|
21
16
|
|
|
22
17
|
|
|
23
18
|
|
|
24
19
|
|
|
25
|
-
exports.SwitchBox =
|
|
20
|
+
exports.SwitchBox = _chunkSW3NGBCEcjs.SwitchBox_default; exports.default = _chunkSW3NGBCEcjs.SwitchBox_default2; exports.switchBoxVariants = _chunkSW3NGBCEcjs.switchBoxVariants;
|
|
26
21
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/SwitchBox/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/SwitchBox/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACF,iLAAC","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/SwitchBox/index.cjs"}
|
package/dist/SwitchBox/index.js
CHANGED
|
@@ -2,21 +2,16 @@ import {
|
|
|
2
2
|
SwitchBox_default,
|
|
3
3
|
SwitchBox_default2,
|
|
4
4
|
switchBoxVariants
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-DQAZSXD6.js";
|
|
8
|
-
import "../chunk-IKOYYA75.js";
|
|
9
|
-
import "../chunk-WWRIMXSN.js";
|
|
10
|
-
import "../chunk-ZJDU5EPE.js";
|
|
11
|
-
import "../chunk-7FOSZV75.js";
|
|
5
|
+
} from "../chunk-2HDXHQOC.js";
|
|
6
|
+
import "../chunk-GEC75GNL.js";
|
|
12
7
|
import "../chunk-NTDKZW4E.js";
|
|
13
8
|
import "../chunk-ELYGQTXB.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-ZZW7JZ2U.js";
|
|
16
|
-
import "../chunk-TUIK3MER.js";
|
|
9
|
+
import "../chunk-5MTIQ6WD.js";
|
|
17
10
|
import "../chunk-AHJJIANM.js";
|
|
18
11
|
import "../chunk-CNTOODUQ.js";
|
|
19
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-SJWL6EMI.js";
|
|
13
|
+
import "../chunk-IV45K4WU.js";
|
|
14
|
+
import "../chunk-O2XJNQQK.js";
|
|
20
15
|
import "../chunk-K2V4ULA2.js";
|
|
21
16
|
export {
|
|
22
17
|
SwitchBox_default as SwitchBox,
|
package/dist/TextArea/index.cjs
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-NKIZA3ZO.cjs');
|
|
8
|
-
require('../chunk-6RZT2BKH.cjs');
|
|
9
|
-
require('../chunk-NTOYCWCJ.cjs');
|
|
10
|
-
require('../chunk-YCCBMAN2.cjs');
|
|
4
|
+
var _chunkKDNO5YO5cjs = require('../chunk-KDNO5YO5.cjs');
|
|
5
|
+
require('../chunk-3ZQXSGR2.cjs');
|
|
6
|
+
require('../chunk-V3M7HL26.cjs');
|
|
11
7
|
require('../chunk-OE5BOGGX.cjs');
|
|
12
8
|
require('../chunk-NHEZXA4H.cjs');
|
|
13
|
-
require('../chunk-
|
|
14
|
-
require('../chunk-UUGUQGMX.cjs');
|
|
15
|
-
require('../chunk-UBLASN6D.cjs');
|
|
9
|
+
require('../chunk-6AWHOBNL.cjs');
|
|
16
10
|
require('../chunk-PCTYJUY7.cjs');
|
|
17
11
|
require('../chunk-56TQOKG7.cjs');
|
|
18
|
-
require('../chunk-
|
|
12
|
+
require('../chunk-FYN7ZWLW.cjs');
|
|
13
|
+
require('../chunk-AQJLKHAE.cjs');
|
|
14
|
+
require('../chunk-OKJWLH7T.cjs');
|
|
19
15
|
require('../chunk-555JRYCS.cjs');
|
|
20
16
|
|
|
21
17
|
|
|
22
18
|
|
|
23
|
-
exports.TextArea =
|
|
19
|
+
exports.TextArea = _chunkKDNO5YO5cjs.TextArea_default; exports.default = _chunkKDNO5YO5cjs.TextArea_default2;
|
|
24
20
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/TextArea/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/TextArea/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,6GAAC","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/TextArea/index.cjs"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TextArea } from '../TextArea-
|
|
2
|
-
export { a as TextAreaProps } from '../TextArea-
|
|
1
|
+
import { T as TextArea } from '../TextArea-CYcFOcun.cjs';
|
|
2
|
+
export { a as TextAreaProps } from '../TextArea-CYcFOcun.cjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants';
|
|
5
5
|
import '@fuf-stack/pixel-utils';
|
package/dist/TextArea/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TextArea } from '../TextArea-
|
|
2
|
-
export { a as TextAreaProps } from '../TextArea-
|
|
1
|
+
import { T as TextArea } from '../TextArea-CYcFOcun.js';
|
|
2
|
+
export { a as TextAreaProps } from '../TextArea-CYcFOcun.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'tailwind-variants';
|
|
5
5
|
import '@fuf-stack/pixel-utils';
|
package/dist/TextArea/index.js
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TextArea_default,
|
|
3
3
|
TextArea_default2
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-IKOYYA75.js";
|
|
8
|
-
import "../chunk-WWRIMXSN.js";
|
|
9
|
-
import "../chunk-ZJDU5EPE.js";
|
|
10
|
-
import "../chunk-7FOSZV75.js";
|
|
4
|
+
} from "../chunk-264VRHMT.js";
|
|
5
|
+
import "../chunk-LEMQGDFE.js";
|
|
6
|
+
import "../chunk-GEC75GNL.js";
|
|
11
7
|
import "../chunk-NTDKZW4E.js";
|
|
12
8
|
import "../chunk-ELYGQTXB.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-ZZW7JZ2U.js";
|
|
15
|
-
import "../chunk-TUIK3MER.js";
|
|
9
|
+
import "../chunk-5MTIQ6WD.js";
|
|
16
10
|
import "../chunk-AHJJIANM.js";
|
|
17
11
|
import "../chunk-CNTOODUQ.js";
|
|
18
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-SJWL6EMI.js";
|
|
13
|
+
import "../chunk-IV45K4WU.js";
|
|
14
|
+
import "../chunk-O2XJNQQK.js";
|
|
19
15
|
import "../chunk-K2V4ULA2.js";
|
|
20
16
|
export {
|
|
21
17
|
TextArea_default as TextArea,
|
|
@@ -61,6 +61,8 @@ declare const textAreaVariants: tailwind_variants.TVReturnType<{
|
|
|
61
61
|
type VariantProps = TVProps<typeof textAreaVariants>;
|
|
62
62
|
type ClassName = TVClassName<typeof textAreaVariants>;
|
|
63
63
|
interface TextAreaProps extends VariantProps {
|
|
64
|
+
/** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */
|
|
65
|
+
ariaLabel?: string;
|
|
64
66
|
/** Child components. The content of the textarea. */
|
|
65
67
|
children?: ReactNode;
|
|
66
68
|
/** CSS class name */
|
|
@@ -61,6 +61,8 @@ declare const textAreaVariants: tailwind_variants.TVReturnType<{
|
|
|
61
61
|
type VariantProps = TVProps<typeof textAreaVariants>;
|
|
62
62
|
type ClassName = TVClassName<typeof textAreaVariants>;
|
|
63
63
|
interface TextAreaProps extends VariantProps {
|
|
64
|
+
/** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */
|
|
65
|
+
ariaLabel?: string;
|
|
64
66
|
/** Child components. The content of the textarea. */
|
|
65
67
|
children?: ReactNode;
|
|
66
68
|
/** CSS class name */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useInputValueDebounce
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LEMQGDFE.js";
|
|
4
4
|
import {
|
|
5
5
|
useUniformField
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GEC75GNL.js";
|
|
7
7
|
import {
|
|
8
8
|
__objRest,
|
|
9
9
|
__spreadValues
|
|
@@ -40,6 +40,7 @@ var TextArea = (_a) => {
|
|
|
40
40
|
"placeholder"
|
|
41
41
|
]);
|
|
42
42
|
const {
|
|
43
|
+
ariaLabel,
|
|
43
44
|
disabled,
|
|
44
45
|
errorMessage,
|
|
45
46
|
field: {
|
|
@@ -79,6 +80,7 @@ var TextArea = (_a) => {
|
|
|
79
80
|
placeholder,
|
|
80
81
|
value,
|
|
81
82
|
variant: "bordered",
|
|
83
|
+
"aria-label": !placeholder || placeholder.trim() === "" ? ariaLabel : void 0,
|
|
82
84
|
classNames: {
|
|
83
85
|
base: classNames.base,
|
|
84
86
|
clearButton: classNames.clearButton,
|
|
@@ -100,4 +102,4 @@ export {
|
|
|
100
102
|
TextArea_default,
|
|
101
103
|
TextArea_default2
|
|
102
104
|
};
|
|
103
|
-
//# sourceMappingURL=chunk-
|
|
105
|
+
//# sourceMappingURL=chunk-264VRHMT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/TextArea/TextArea.tsx","../src/TextArea/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport { Textarea as HeroTextArea } from '@heroui/input';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { useInputValueDebounce } from '../hooks/useInputValueDebounce';\nimport { useUniformField } from '../hooks/useUniformField';\n\n// input variants\nexport const textAreaVariants = tv({\n slots: {\n /** wrapper around the whole input */\n base: '',\n /** clear button */\n clearButton: '',\n /** actual input element */\n input: '',\n /** inner wrapper (HeroUI inputWrapper slot) */\n inputWrapper: 'bg-content1 group-data-[focus=true]:border-focus',\n },\n});\n\ntype VariantProps = TVProps<typeof textAreaVariants>;\ntype ClassName = TVClassName<typeof textAreaVariants>;\n\nexport interface TextAreaProps extends VariantProps {\n /** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */\n ariaLabel?: string;\n /** Child components. The content of the textarea. */\n children?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** debounce delay in milliseconds for form state updates (default: 300ms) */\n debounceDelay?: number;\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 [HeroUI TextArea](https://www.heroui.com//docs/components/textarea)\n */\nconst TextArea = ({\n children = null,\n className: _className = undefined,\n debounceDelay = 300,\n name,\n placeholder = ' ',\n ...uniformFieldProps\n}: TextAreaProps) => {\n const {\n ariaLabel,\n disabled,\n errorMessage,\n field: {\n onChange: fieldOnChange,\n onBlur: fieldOnBlur,\n value: fieldValue,\n ref,\n },\n invalid,\n label,\n required,\n testId,\n } = useUniformField({ name, ...uniformFieldProps });\n\n // Use debounced handlers for form updates\n const { onChange, onBlur, value } = useInputValueDebounce({\n debounceDelay,\n onBlur: fieldOnBlur,\n onChange: fieldOnChange,\n value: fieldValue,\n });\n\n // classNames from slots\n const variants = textAreaVariants();\n const classNames = variantsToClassNames(variants, _className, 'base');\n\n return (\n <HeroTextArea\n ref={ref}\n data-testid={testId}\n errorMessage={errorMessage}\n id={testId}\n isDisabled={disabled}\n isInvalid={invalid}\n isRequired={required}\n label={label}\n labelPlacement=\"outside\"\n name={name}\n onBlur={onBlur}\n onChange={onChange}\n placeholder={placeholder}\n value={value}\n variant=\"bordered\"\n // Only add aria-label if there's no meaningful placeholder (HeroUI uses placeholder as aria-label)\n aria-label={\n !placeholder || placeholder.trim() === '' ? ariaLabel : undefined\n }\n classNames={{\n base: classNames.base,\n clearButton: classNames.clearButton,\n // set padding to 0 for error message exit animation\n helperWrapper: 'p-0',\n input: classNames.input,\n inputWrapper: classNames.inputWrapper,\n }}\n >\n {children}\n </HeroTextArea>\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"],"mappings":";;;;;;;;;;;;AAGA,SAAS,YAAY,oBAAoB;AAEzC,SAAS,IAAI,4BAA4B;AAmFrC;AA7EG,IAAM,mBAAmB,GAAG;AAAA,EACjC,OAAO;AAAA;AAAA,IAEL,MAAM;AAAA;AAAA,IAEN,aAAa;AAAA;AAAA,IAEb,OAAO;AAAA;AAAA,IAEP,cAAc;AAAA,EAChB;AACF,CAAC;AA6BD,IAAM,WAAW,CAAC,OAOG;AAPH,eAChB;AAAA,eAAW;AAAA,IACX,WAAW,aAAa;AAAA,IACxB,gBAAgB;AAAA,IAChB;AAAA,IACA,cAAc;AAAA,EAxDhB,IAmDkB,IAMb,8BANa,IAMb;AAAA,IALH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGA,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA,OAAO;AAAA,MACL,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,OAAO;AAAA,MACP;AAAA,IACF;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI,gBAAgB,iBAAE,QAAS,kBAAmB;AAGlD,QAAM,EAAE,UAAU,QAAQ,MAAM,IAAI,sBAAsB;AAAA,IACxD;AAAA,IACA,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,OAAO;AAAA,EACT,CAAC;AAGD,QAAM,WAAW,iBAAiB;AAClC,QAAM,aAAa,qBAAqB,UAAU,YAAY,MAAM;AAEpE,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,eAAa;AAAA,MACb;AAAA,MACA,IAAI;AAAA,MACJ,YAAY;AAAA,MACZ,WAAW;AAAA,MACX,YAAY;AAAA,MACZ;AAAA,MACA,gBAAe;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,SAAQ;AAAA,MAER,cACE,CAAC,eAAe,YAAY,KAAK,MAAM,KAAK,YAAY;AAAA,MAE1D,YAAY;AAAA,QACV,MAAM,WAAW;AAAA,QACjB,aAAa,WAAW;AAAA;AAAA,QAExB,eAAe;AAAA,QACf,OAAO,WAAW;AAAA,QAClB,cAAc,WAAW;AAAA,MAC3B;AAAA,MAEC;AAAA;AAAA,EACH;AAEJ;AAEA,IAAO,mBAAQ;;;ACpHf,IAAOA,oBAAQ;","names":["TextArea_default"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFormContext
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SJWL6EMI.js";
|
|
4
4
|
import {
|
|
5
5
|
flatArrayKey
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-O2XJNQQK.js";
|
|
7
7
|
import {
|
|
8
8
|
__async
|
|
9
9
|
} from "./chunk-K2V4ULA2.js";
|
|
@@ -65,4 +65,4 @@ export {
|
|
|
65
65
|
useClientValidation,
|
|
66
66
|
clientValidationSchemaByName
|
|
67
67
|
};
|
|
68
|
-
//# sourceMappingURL=chunk-
|
|
68
|
+
//# sourceMappingURL=chunk-26VE4IGU.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useUniformField
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GEC75GNL.js";
|
|
4
4
|
import {
|
|
5
5
|
__objRest,
|
|
6
6
|
__spreadProps,
|
|
@@ -212,4 +212,4 @@ export {
|
|
|
212
212
|
SwitchBox_default,
|
|
213
213
|
SwitchBox_default2
|
|
214
214
|
};
|
|
215
|
-
//# sourceMappingURL=chunk-
|
|
215
|
+
//# sourceMappingURL=chunk-2HDXHQOC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/SwitchBox/SwitchBox.tsx","../src/SwitchBox/index.ts"],"sourcesContent":["import type { TVClassName } from '@fuf-stack/pixel-utils';\nimport type { SwitchProps as HeroSwitchProps } from '@heroui/switch';\nimport type { ReactNode } from 'react';\n\nimport { useRef } from 'react';\n\nimport { useSwitch } from '@heroui/switch';\nimport { VisuallyHidden } from '@react-aria/visually-hidden';\n\nimport { cn, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { useUniformField } from '../hooks/useUniformField';\n\nexport const switchBoxVariants = tv({\n slots: {\n box: 'group inline-flex w-full cursor-pointer items-center justify-between rounded-lg border-2 border-default hover:bg-content2 data-[selected=true]:border-focus',\n description: 'text-foreground opacity-70',\n icon: '',\n label:\n 'font-medium text-foreground group-data-[required=true]:after:ml-0.5 group-data-[required=true]:after:text-danger group-data-[required=true]:after:content-[\"*\"]',\n wrapper: '',\n thumb: '',\n thumbIcon: '',\n },\n variants: {\n isDisabled: {\n true: {\n box: 'pointer-events-none opacity-disabled',\n },\n },\n isInvalid: {\n true: {\n box: '!border-danger',\n label: '!text-danger',\n },\n },\n size: {\n sm: {\n box: 'gap-2 p-3',\n description: 'text-xs',\n label: 'text-xs',\n },\n md: {\n box: 'gap-4 p-4',\n description: 'text-small',\n label: 'text-sm',\n },\n lg: {\n box: 'gap-4 p-5',\n description: 'text-small',\n label: 'text-base',\n },\n },\n },\n defaultVariants: {\n size: 'md',\n },\n});\n\ntype ClassName = TVClassName<typeof switchBoxVariants>;\n\nexport interface SwitchBoxProps {\n /** CSS class name */\n className?: ClassName;\n /** Description text displayed below the label */\n description?: ReactNode;\n /** whether the switch should be disabled */\n disabled?: boolean;\n /** Icon to be displayed in the box */\n icon?: ReactNode;\n /** component displayed as the label */\n label?: ReactNode;\n /** name the field is registered under */\n name: string;\n /** whether the field is required */\n required?: boolean;\n /* Size of the switch */\n size?: 'sm' | 'md' | 'lg';\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** Icon to be displayed inside the thumb */\n thumbIcon?: HeroSwitchProps['thumbIcon'];\n}\n\n/**\n * SwitchBox component - A card-like box with a switch control\n */\nconst SwitchBox = ({\n className = undefined,\n description = undefined,\n icon = undefined,\n name,\n size = undefined,\n thumbIcon = undefined,\n ...uniformFieldProps\n}: SwitchBoxProps) => {\n const {\n defaultValue,\n disabled,\n errorMessage,\n field,\n getErrorMessageProps,\n getHelperWrapperProps,\n invalid,\n label,\n onBlur,\n onChange,\n ref,\n required,\n testId,\n } = useUniformField({\n name,\n ...uniformFieldProps,\n });\n\n // Ref for the visual switch to forward focus\n const visualSwitchRef = useRef<HTMLInputElement>(null);\n\n // Use the useSwitch hook to get access to all the necessary props\n const {\n Component,\n slots,\n isSelected,\n getBaseProps,\n getInputProps,\n getWrapperProps,\n } = useSwitch({\n defaultSelected: !!defaultValue,\n isDisabled: disabled,\n isSelected: !!field.value,\n name: `${name}_switch`,\n onValueChange: onChange,\n size,\n thumbIcon,\n });\n\n // classNames from slots\n const variants = switchBoxVariants({\n isDisabled: disabled,\n isInvalid: invalid,\n size,\n });\n const classNames = variantsToClassNames(variants, className, 'box');\n\n return (\n <div>\n <Component\n {...getBaseProps()}\n className={classNames.box}\n data-invalid={invalid}\n data-required={required}\n data-testid={testId}\n >\n <VisuallyHidden>\n <input\n ref={ref}\n aria-label={typeof label === 'string' ? label : name}\n checked={!!field.value}\n name={name}\n tabIndex={-1}\n type=\"checkbox\"\n onChange={(e) => {\n onChange(e.target.checked);\n }}\n onFocus={() => {\n // When RHF focuses this hidden input (e.g., on validation error),\n // forward focus to the visual switch to show focus ring\n visualSwitchRef.current?.focus();\n }}\n />\n {/* Visual switch input for focus ring */}\n <input\n ref={visualSwitchRef}\n {...getInputProps()}\n onBlur={(e) => {\n // Call HeroUI's internal onBlur to clear focus state and remove focus ring\n getInputProps().onBlur?.(e);\n // Then call RHF's onBlur to mark field as touched\n onBlur();\n }}\n />\n </VisuallyHidden>\n {!icon ? (\n <span\n {...getWrapperProps()}\n className={cn(getWrapperProps().className, classNames.wrapper)}\n >\n <span className={cn(slots.thumb({ class: classNames.thumb }))}>\n {thumbIcon && typeof thumbIcon === 'function'\n ? thumbIcon({\n isSelected: !!isSelected,\n className: slots.thumbIcon({ class: classNames.thumbIcon }),\n width: '1em',\n height: '1em',\n 'data-checked': isSelected ? 'true' : 'false',\n })\n : thumbIcon}\n </span>\n </span>\n ) : null}\n {icon ? <div className={classNames.icon}>{icon}</div> : null}\n <div className=\"grow\">\n {label ? <div className={classNames.label}>{label}</div> : null}\n {description ? (\n <div className={classNames.description}>{description}</div>\n ) : null}\n </div>\n {icon ? (\n <span\n {...getWrapperProps()}\n className={cn(getWrapperProps().className, classNames.wrapper)}\n >\n <span className={cn(slots.thumb({ class: classNames.thumb }))}>\n {thumbIcon && typeof thumbIcon === 'function'\n ? thumbIcon({\n isSelected: !!isSelected,\n className: slots.thumbIcon({ class: classNames.thumbIcon }),\n width: '1em',\n height: '1em',\n 'data-checked': isSelected ? 'true' : 'false',\n })\n : thumbIcon}\n </span>\n </span>\n ) : null}\n </Component>\n {invalid ? (\n <div\n {...getHelperWrapperProps()}\n className={cn(\n getHelperWrapperProps()?.className,\n // force helper to be visible (for some reason it's hidden by default) and remove margin\n 'ml-0 block',\n )}\n >\n <div {...getErrorMessageProps()}>{errorMessage}</div>\n </div>\n ) : null}\n </div>\n );\n};\n\nexport default SwitchBox;\n","import SwitchBox from './SwitchBox';\n\nexport type { SwitchBoxProps } from './SwitchBox';\n\nexport { switchBoxVariants } from './SwitchBox';\nexport { SwitchBox };\n\nexport default SwitchBox;\n"],"mappings":"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","names":["_a","_b","SwitchBox_default"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkFYN7ZWLWcjs = require('./chunk-FYN7ZWLW.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkOKJWLH7Tcjs = require('./chunk-OKJWLH7T.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk555JRYCScjs = require('./chunk-555JRYCS.cjs');
|
|
@@ -17,7 +17,7 @@ var useClientValidation = (data, schemaFactory, options) => {
|
|
|
17
17
|
formState: { touchedFields },
|
|
18
18
|
validation: { setClientValidationSchema },
|
|
19
19
|
trigger
|
|
20
|
-
} =
|
|
20
|
+
} = _chunkFYN7ZWLWcjs.useFormContext.call(void 0, );
|
|
21
21
|
const autoGeneratedKey = _react.useId.call(void 0, );
|
|
22
22
|
const key = (_a = options == null ? void 0 : options.key) != null ? _a : autoGeneratedKey;
|
|
23
23
|
const dataHash = JSON.stringify(data);
|
|
@@ -45,7 +45,7 @@ var clientValidationSchemaByName = (name, fieldSchema) => {
|
|
|
45
45
|
for (let i = segments.length - 1; i >= 0; i -= 1) {
|
|
46
46
|
const segment = segments[i];
|
|
47
47
|
const isNumeric = /^\d+$/.test(segment);
|
|
48
|
-
const isFlatArrayKey = segment ===
|
|
48
|
+
const isFlatArrayKey = segment === _chunkOKJWLH7Tcjs.flatArrayKey;
|
|
49
49
|
if (isFlatArrayKey) {
|
|
50
50
|
continue;
|
|
51
51
|
}
|
|
@@ -65,4 +65,4 @@ var clientValidationSchemaByName = (name, fieldSchema) => {
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
exports.useClientValidation = useClientValidation; exports.clientValidationSchemaByName = clientValidationSchemaByName;
|
|
68
|
-
//# sourceMappingURL=chunk-
|
|
68
|
+
//# sourceMappingURL=chunk-2UQCRQEJ.cjs.map
|