@fuf-stack/uniform 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/CheckboxGroup/index.cjs +2 -2
  2. package/dist/CheckboxGroup/index.js +2 -2
  3. package/dist/FieldArray/index.cjs +2 -2
  4. package/dist/FieldArray/index.js +2 -2
  5. package/dist/Form/index.cjs +2 -2
  6. package/dist/Form/index.js +2 -2
  7. package/dist/Input/index.cjs +4 -4
  8. package/dist/Input/index.d.cts +2 -2
  9. package/dist/Input/index.d.ts +2 -2
  10. package/dist/Input/index.js +3 -3
  11. package/dist/{Input-DsBWaOSk.d.ts → Input-BpsVvxwO.d.ts} +2 -2
  12. package/dist/{Input-qD-RcDl4.d.cts → Input-Com9bFxL.d.cts} +2 -2
  13. package/dist/RadioBoxes/index.cjs +2 -2
  14. package/dist/RadioBoxes/index.js +2 -2
  15. package/dist/RadioGroup/index.cjs +2 -2
  16. package/dist/RadioGroup/index.js +2 -2
  17. package/dist/RadioTabs/index.cjs +4 -4
  18. package/dist/RadioTabs/index.js +3 -3
  19. package/dist/Select/index.cjs +2 -2
  20. package/dist/Select/index.js +2 -2
  21. package/dist/SubmitButton/index.cjs +2 -2
  22. package/dist/SubmitButton/index.js +2 -2
  23. package/dist/Switch/index.cjs +4 -4
  24. package/dist/Switch/index.d.cts +4 -2
  25. package/dist/Switch/index.d.ts +4 -2
  26. package/dist/Switch/index.js +3 -3
  27. package/dist/{Switch-CLs964dL.d.cts → Switch-BaMtW2HN.d.cts} +12 -3
  28. package/dist/{Switch-CLs964dL.d.ts → Switch-BaMtW2HN.d.ts} +12 -3
  29. package/dist/TextArea/index.cjs +4 -4
  30. package/dist/TextArea/index.js +3 -3
  31. package/dist/{chunk-NR5MV234.js → chunk-3PTHYFAU.js} +10 -2
  32. package/dist/chunk-3PTHYFAU.js.map +1 -0
  33. package/dist/{chunk-SHB3Z5GN.cjs → chunk-AZT3TDWZ.cjs} +3 -3
  34. package/dist/{chunk-SHB3Z5GN.cjs.map → chunk-AZT3TDWZ.cjs.map} +1 -1
  35. package/dist/{chunk-QTROOQ53.cjs → chunk-DOBUPJPN.cjs} +10 -2
  36. package/dist/chunk-DOBUPJPN.cjs.map +1 -0
  37. package/dist/{chunk-IZFO7YMQ.js → chunk-GHO2VFUQ.js} +2 -2
  38. package/dist/{chunk-IZFO7YMQ.js.map → chunk-GHO2VFUQ.js.map} +1 -1
  39. package/dist/{chunk-IAMV2JNU.cjs → chunk-I4OVSJFQ.cjs} +2 -2
  40. package/dist/chunk-I4OVSJFQ.cjs.map +1 -0
  41. package/dist/{chunk-XDHY7DXJ.js → chunk-NNKOK5EU.js} +2 -2
  42. package/dist/{chunk-I2PJDXWB.cjs → chunk-OWWUTKGY.cjs} +18 -41
  43. package/dist/chunk-OWWUTKGY.cjs.map +1 -0
  44. package/dist/chunk-P6HJOG7D.cjs +41 -0
  45. package/dist/chunk-P6HJOG7D.cjs.map +1 -0
  46. package/dist/chunk-Q2BOMFJ5.js +41 -0
  47. package/dist/chunk-Q2BOMFJ5.js.map +1 -0
  48. package/dist/{chunk-EPY6UDD3.js → chunk-QDFIRRB5.js} +4 -4
  49. package/dist/chunk-QDFIRRB5.js.map +1 -0
  50. package/dist/{chunk-2EYP66KF.cjs → chunk-SG6PWCRL.cjs} +5 -5
  51. package/dist/chunk-SG6PWCRL.cjs.map +1 -0
  52. package/dist/{chunk-KMDTMBYI.js → chunk-U5WBLGZV.js} +18 -41
  53. package/dist/chunk-U5WBLGZV.js.map +1 -0
  54. package/dist/hooks/index.cjs +3 -3
  55. package/dist/hooks/index.js +2 -2
  56. package/dist/hooks/useInputValueDebounce/index.cjs +3 -3
  57. package/dist/hooks/useInputValueDebounce/index.d.cts +6 -6
  58. package/dist/hooks/useInputValueDebounce/index.d.ts +6 -6
  59. package/dist/hooks/useInputValueDebounce/index.js +2 -2
  60. package/dist/hooks/useInputValueTransform/index.cjs +2 -2
  61. package/dist/hooks/useInputValueTransform/index.d.cts +28 -60
  62. package/dist/hooks/useInputValueTransform/index.d.ts +28 -60
  63. package/dist/hooks/useInputValueTransform/index.js +1 -1
  64. package/dist/index.cjs +7 -7
  65. package/dist/index.d.cts +3 -2
  66. package/dist/index.d.ts +3 -2
  67. package/dist/index.js +6 -6
  68. package/package.json +4 -4
  69. package/dist/chunk-2EYP66KF.cjs.map +0 -1
  70. package/dist/chunk-EPY6UDD3.js.map +0 -1
  71. package/dist/chunk-G5UX55XC.js +0 -37
  72. package/dist/chunk-G5UX55XC.js.map +0 -1
  73. package/dist/chunk-I2PJDXWB.cjs.map +0 -1
  74. package/dist/chunk-IAMV2JNU.cjs.map +0 -1
  75. package/dist/chunk-KMDTMBYI.js.map +0 -1
  76. package/dist/chunk-NR5MV234.js.map +0 -1
  77. package/dist/chunk-QTROOQ53.cjs.map +0 -1
  78. package/dist/chunk-TSB65253.cjs +0 -37
  79. package/dist/chunk-TSB65253.cjs.map +0 -1
  80. /package/dist/{chunk-XDHY7DXJ.js.map → chunk-NNKOK5EU.js.map} +0 -0
@@ -6,8 +6,8 @@ require('../chunk-PA2DQCBY.cjs');
6
6
  require('../chunk-GNYQC5IJ.cjs');
7
7
  require('../chunk-Y6EAPURV.cjs');
8
8
  require('../chunk-L4YPB7MU.cjs');
9
- require('../chunk-I2PJDXWB.cjs');
10
- require('../chunk-TSB65253.cjs');
9
+ require('../chunk-OWWUTKGY.cjs');
10
+ require('../chunk-P6HJOG7D.cjs');
11
11
  require('../chunk-555JRYCS.cjs');
12
12
 
13
13
 
@@ -6,8 +6,8 @@ import "../chunk-BQGN3JTU.js";
6
6
  import "../chunk-UTFZRBBS.js";
7
7
  import "../chunk-7QWLAPOT.js";
8
8
  import "../chunk-57WY5GAE.js";
9
- import "../chunk-KMDTMBYI.js";
10
- import "../chunk-G5UX55XC.js";
9
+ import "../chunk-U5WBLGZV.js";
10
+ import "../chunk-Q2BOMFJ5.js";
11
11
  import "../chunk-K2V4ULA2.js";
12
12
  export {
13
13
  CheckboxGroup_default as CheckboxGroup,
@@ -7,8 +7,8 @@ require('../chunk-PA2DQCBY.cjs');
7
7
  require('../chunk-GNYQC5IJ.cjs');
8
8
  require('../chunk-Y6EAPURV.cjs');
9
9
  require('../chunk-L4YPB7MU.cjs');
10
- require('../chunk-I2PJDXWB.cjs');
11
- require('../chunk-TSB65253.cjs');
10
+ require('../chunk-OWWUTKGY.cjs');
11
+ require('../chunk-P6HJOG7D.cjs');
12
12
  require('../chunk-555JRYCS.cjs');
13
13
 
14
14
 
@@ -7,8 +7,8 @@ import "../chunk-BQGN3JTU.js";
7
7
  import "../chunk-UTFZRBBS.js";
8
8
  import "../chunk-7QWLAPOT.js";
9
9
  import "../chunk-57WY5GAE.js";
10
- import "../chunk-KMDTMBYI.js";
11
- import "../chunk-G5UX55XC.js";
10
+ import "../chunk-U5WBLGZV.js";
11
+ import "../chunk-Q2BOMFJ5.js";
12
12
  import "../chunk-K2V4ULA2.js";
13
13
  export {
14
14
  FieldArray_default as FieldArray,
@@ -4,8 +4,8 @@
4
4
  var _chunkXALYGZ3Rcjs = require('../chunk-XALYGZ3R.cjs');
5
5
  require('../chunk-Y6EAPURV.cjs');
6
6
  require('../chunk-L4YPB7MU.cjs');
7
- require('../chunk-I2PJDXWB.cjs');
8
- require('../chunk-TSB65253.cjs');
7
+ require('../chunk-OWWUTKGY.cjs');
8
+ require('../chunk-P6HJOG7D.cjs');
9
9
  require('../chunk-555JRYCS.cjs');
10
10
 
11
11
 
@@ -4,8 +4,8 @@ import {
4
4
  } from "../chunk-DPOGZE5O.js";
5
5
  import "../chunk-7QWLAPOT.js";
6
6
  import "../chunk-57WY5GAE.js";
7
- import "../chunk-KMDTMBYI.js";
8
- import "../chunk-G5UX55XC.js";
7
+ import "../chunk-U5WBLGZV.js";
8
+ import "../chunk-Q2BOMFJ5.js";
9
9
  import "../chunk-K2V4ULA2.js";
10
10
  export {
11
11
  Form_default as Form,
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk2EYP66KFcjs = require('../chunk-2EYP66KF.cjs');
4
+ var _chunkSG6PWCRLcjs = require('../chunk-SG6PWCRL.cjs');
5
5
  require('../chunk-PA2DQCBY.cjs');
6
6
  require('../chunk-GNYQC5IJ.cjs');
7
7
  require('../chunk-Y6EAPURV.cjs');
8
8
  require('../chunk-L4YPB7MU.cjs');
9
- require('../chunk-I2PJDXWB.cjs');
10
- require('../chunk-TSB65253.cjs');
9
+ require('../chunk-OWWUTKGY.cjs');
10
+ require('../chunk-P6HJOG7D.cjs');
11
11
  require('../chunk-555JRYCS.cjs');
12
12
 
13
13
 
14
14
 
15
- exports.Input = _chunk2EYP66KFcjs.Input_default; exports.default = _chunk2EYP66KFcjs.Input_default2;
15
+ exports.Input = _chunkSG6PWCRLcjs.Input_default; exports.default = _chunkSG6PWCRLcjs.Input_default2;
16
16
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
- import { I as Input } from '../Input-qD-RcDl4.cjs';
2
- export { a as InputProps } from '../Input-qD-RcDl4.cjs';
1
+ import { I as Input } from '../Input-Com9bFxL.cjs';
2
+ export { a as InputProps } from '../Input-Com9bFxL.cjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import '../hooks/useInputValueTransform/index.cjs';
@@ -1,5 +1,5 @@
1
- import { I as Input } from '../Input-DsBWaOSk.js';
2
- export { a as InputProps } from '../Input-DsBWaOSk.js';
1
+ import { I as Input } from '../Input-BpsVvxwO.js';
2
+ export { a as InputProps } from '../Input-BpsVvxwO.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import '../hooks/useInputValueTransform/index.js';
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  Input_default,
3
3
  Input_default2
4
- } from "../chunk-EPY6UDD3.js";
4
+ } from "../chunk-QDFIRRB5.js";
5
5
  import "../chunk-BQGN3JTU.js";
6
6
  import "../chunk-UTFZRBBS.js";
7
7
  import "../chunk-7QWLAPOT.js";
8
8
  import "../chunk-57WY5GAE.js";
9
- import "../chunk-KMDTMBYI.js";
10
- import "../chunk-G5UX55XC.js";
9
+ import "../chunk-U5WBLGZV.js";
10
+ import "../chunk-Q2BOMFJ5.js";
11
11
  import "../chunk-K2V4ULA2.js";
12
12
  export {
13
13
  Input_default as Input,
@@ -24,13 +24,13 @@ interface InputProps {
24
24
  /** HTML data-testid attribute used in e2e tests */
25
25
  testId?: string;
26
26
  /** allows disentangled display and form values for a field */
27
- transformValue?: InputValueTransform;
27
+ transform?: InputValueTransform;
28
28
  /** input type */
29
29
  type?: 'number' | 'password';
30
30
  }
31
31
  /**
32
32
  * Input component based on [HeroUI Input](https://www.heroui.com//docs/components/input)
33
33
  */
34
- declare const Input: ({ className, debounceDelay, disabled, endContent, label, name, placeholder, size, startContent, testId: _testId, transformValue, type, }: InputProps) => react_jsx_runtime.JSX.Element;
34
+ declare const Input: ({ className, debounceDelay, disabled, endContent, label, name, placeholder, size, startContent, testId: _testId, transform, type, }: InputProps) => react_jsx_runtime.JSX.Element;
35
35
 
36
36
  export { Input as I, type InputProps as a };
@@ -24,13 +24,13 @@ interface InputProps {
24
24
  /** HTML data-testid attribute used in e2e tests */
25
25
  testId?: string;
26
26
  /** allows disentangled display and form values for a field */
27
- transformValue?: InputValueTransform;
27
+ transform?: InputValueTransform;
28
28
  /** input type */
29
29
  type?: 'number' | 'password';
30
30
  }
31
31
  /**
32
32
  * Input component based on [HeroUI Input](https://www.heroui.com//docs/components/input)
33
33
  */
34
- declare const Input: ({ className, debounceDelay, disabled, endContent, label, name, placeholder, size, startContent, testId: _testId, transformValue, type, }: InputProps) => react_jsx_runtime.JSX.Element;
34
+ declare const Input: ({ className, debounceDelay, disabled, endContent, label, name, placeholder, size, startContent, testId: _testId, transform, type, }: InputProps) => react_jsx_runtime.JSX.Element;
35
35
 
36
36
  export { Input as I, type InputProps as a };
@@ -6,8 +6,8 @@ require('../chunk-PA2DQCBY.cjs');
6
6
  require('../chunk-GNYQC5IJ.cjs');
7
7
  require('../chunk-Y6EAPURV.cjs');
8
8
  require('../chunk-L4YPB7MU.cjs');
9
- require('../chunk-I2PJDXWB.cjs');
10
- require('../chunk-TSB65253.cjs');
9
+ require('../chunk-OWWUTKGY.cjs');
10
+ require('../chunk-P6HJOG7D.cjs');
11
11
  require('../chunk-555JRYCS.cjs');
12
12
 
13
13
 
@@ -6,8 +6,8 @@ import "../chunk-BQGN3JTU.js";
6
6
  import "../chunk-UTFZRBBS.js";
7
7
  import "../chunk-7QWLAPOT.js";
8
8
  import "../chunk-57WY5GAE.js";
9
- import "../chunk-KMDTMBYI.js";
10
- import "../chunk-G5UX55XC.js";
9
+ import "../chunk-U5WBLGZV.js";
10
+ import "../chunk-Q2BOMFJ5.js";
11
11
  import "../chunk-K2V4ULA2.js";
12
12
  export {
13
13
  RadioBoxes_default as RadioBoxes,
@@ -6,8 +6,8 @@ require('../chunk-PA2DQCBY.cjs');
6
6
  require('../chunk-GNYQC5IJ.cjs');
7
7
  require('../chunk-Y6EAPURV.cjs');
8
8
  require('../chunk-L4YPB7MU.cjs');
9
- require('../chunk-I2PJDXWB.cjs');
10
- require('../chunk-TSB65253.cjs');
9
+ require('../chunk-OWWUTKGY.cjs');
10
+ require('../chunk-P6HJOG7D.cjs');
11
11
  require('../chunk-555JRYCS.cjs');
12
12
 
13
13
 
@@ -6,8 +6,8 @@ import "../chunk-BQGN3JTU.js";
6
6
  import "../chunk-UTFZRBBS.js";
7
7
  import "../chunk-7QWLAPOT.js";
8
8
  import "../chunk-57WY5GAE.js";
9
- import "../chunk-KMDTMBYI.js";
10
- import "../chunk-G5UX55XC.js";
9
+ import "../chunk-U5WBLGZV.js";
10
+ import "../chunk-Q2BOMFJ5.js";
11
11
  import "../chunk-K2V4ULA2.js";
12
12
  export {
13
13
  RadioGroup_default as RadioGroup,
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkIAMV2JNUcjs = require('../chunk-IAMV2JNU.cjs');
4
+ var _chunkI4OVSJFQcjs = require('../chunk-I4OVSJFQ.cjs');
5
5
  require('../chunk-PA2DQCBY.cjs');
6
6
  require('../chunk-GNYQC5IJ.cjs');
7
7
  require('../chunk-Y6EAPURV.cjs');
8
8
  require('../chunk-L4YPB7MU.cjs');
9
- require('../chunk-I2PJDXWB.cjs');
10
- require('../chunk-TSB65253.cjs');
9
+ require('../chunk-OWWUTKGY.cjs');
10
+ require('../chunk-P6HJOG7D.cjs');
11
11
  require('../chunk-555JRYCS.cjs');
12
12
 
13
13
 
14
14
 
15
- exports.RadioTabs = _chunkIAMV2JNUcjs.RadioTabs_default; exports.default = _chunkIAMV2JNUcjs.RadioTabs_default2;
15
+ exports.RadioTabs = _chunkI4OVSJFQcjs.RadioTabs_default; exports.default = _chunkI4OVSJFQcjs.RadioTabs_default2;
16
16
  //# sourceMappingURL=index.cjs.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  RadioTabs_default,
3
3
  RadioTabs_default2
4
- } from "../chunk-IZFO7YMQ.js";
4
+ } from "../chunk-GHO2VFUQ.js";
5
5
  import "../chunk-BQGN3JTU.js";
6
6
  import "../chunk-UTFZRBBS.js";
7
7
  import "../chunk-7QWLAPOT.js";
8
8
  import "../chunk-57WY5GAE.js";
9
- import "../chunk-KMDTMBYI.js";
10
- import "../chunk-G5UX55XC.js";
9
+ import "../chunk-U5WBLGZV.js";
10
+ import "../chunk-Q2BOMFJ5.js";
11
11
  import "../chunk-K2V4ULA2.js";
12
12
  export {
13
13
  RadioTabs_default as RadioTabs,
@@ -6,8 +6,8 @@ require('../chunk-PA2DQCBY.cjs');
6
6
  require('../chunk-GNYQC5IJ.cjs');
7
7
  require('../chunk-Y6EAPURV.cjs');
8
8
  require('../chunk-L4YPB7MU.cjs');
9
- require('../chunk-I2PJDXWB.cjs');
10
- require('../chunk-TSB65253.cjs');
9
+ require('../chunk-OWWUTKGY.cjs');
10
+ require('../chunk-P6HJOG7D.cjs');
11
11
  require('../chunk-555JRYCS.cjs');
12
12
 
13
13
 
@@ -6,8 +6,8 @@ import "../chunk-BQGN3JTU.js";
6
6
  import "../chunk-UTFZRBBS.js";
7
7
  import "../chunk-7QWLAPOT.js";
8
8
  import "../chunk-57WY5GAE.js";
9
- import "../chunk-KMDTMBYI.js";
10
- import "../chunk-G5UX55XC.js";
9
+ import "../chunk-U5WBLGZV.js";
10
+ import "../chunk-Q2BOMFJ5.js";
11
11
  import "../chunk-K2V4ULA2.js";
12
12
  export {
13
13
  Select_default as Select,
@@ -4,8 +4,8 @@
4
4
  var _chunkPL44Y7AMcjs = require('../chunk-PL44Y7AM.cjs');
5
5
  require('../chunk-Y6EAPURV.cjs');
6
6
  require('../chunk-L4YPB7MU.cjs');
7
- require('../chunk-I2PJDXWB.cjs');
8
- require('../chunk-TSB65253.cjs');
7
+ require('../chunk-OWWUTKGY.cjs');
8
+ require('../chunk-P6HJOG7D.cjs');
9
9
  require('../chunk-555JRYCS.cjs');
10
10
 
11
11
 
@@ -4,8 +4,8 @@ import {
4
4
  } from "../chunk-3BE3GUCZ.js";
5
5
  import "../chunk-7QWLAPOT.js";
6
6
  import "../chunk-57WY5GAE.js";
7
- import "../chunk-KMDTMBYI.js";
8
- import "../chunk-G5UX55XC.js";
7
+ import "../chunk-U5WBLGZV.js";
8
+ import "../chunk-Q2BOMFJ5.js";
9
9
  import "../chunk-K2V4ULA2.js";
10
10
  export {
11
11
  SubmitButton_default as SubmitButton,
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkQTROOQ53cjs = require('../chunk-QTROOQ53.cjs');
4
+ var _chunkDOBUPJPNcjs = require('../chunk-DOBUPJPN.cjs');
5
5
  require('../chunk-PA2DQCBY.cjs');
6
6
  require('../chunk-GNYQC5IJ.cjs');
7
7
  require('../chunk-Y6EAPURV.cjs');
8
8
  require('../chunk-L4YPB7MU.cjs');
9
- require('../chunk-I2PJDXWB.cjs');
10
- require('../chunk-TSB65253.cjs');
9
+ require('../chunk-OWWUTKGY.cjs');
10
+ require('../chunk-P6HJOG7D.cjs');
11
11
  require('../chunk-555JRYCS.cjs');
12
12
 
13
13
 
14
14
 
15
- exports.Switch = _chunkQTROOQ53cjs.Switch_default; exports.default = _chunkQTROOQ53cjs.Switch_default2;
15
+ exports.Switch = _chunkDOBUPJPNcjs.Switch_default; exports.default = _chunkDOBUPJPNcjs.Switch_default2;
16
16
  //# sourceMappingURL=index.cjs.map
@@ -1,9 +1,11 @@
1
- import { S as Switch } from '../Switch-CLs964dL.cjs';
2
- export { a as SwitchProps } from '../Switch-CLs964dL.cjs';
1
+ import { S as Switch } from '../Switch-BaMtW2HN.cjs';
2
+ export { a as SwitchProps } from '../Switch-BaMtW2HN.cjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants/dist/config.js';
5
5
  import 'tailwind-variants';
6
6
  import '@fuf-stack/pixel-utils';
7
+ import '@heroui/switch';
8
+ import 'react';
7
9
 
8
10
 
9
11
 
@@ -1,9 +1,11 @@
1
- import { S as Switch } from '../Switch-CLs964dL.js';
2
- export { a as SwitchProps } from '../Switch-CLs964dL.js';
1
+ import { S as Switch } from '../Switch-BaMtW2HN.js';
2
+ export { a as SwitchProps } from '../Switch-BaMtW2HN.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'tailwind-variants/dist/config.js';
5
5
  import 'tailwind-variants';
6
6
  import '@fuf-stack/pixel-utils';
7
+ import '@heroui/switch';
8
+ import 'react';
7
9
 
8
10
 
9
11
 
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  Switch_default,
3
3
  Switch_default2
4
- } from "../chunk-NR5MV234.js";
4
+ } from "../chunk-3PTHYFAU.js";
5
5
  import "../chunk-BQGN3JTU.js";
6
6
  import "../chunk-UTFZRBBS.js";
7
7
  import "../chunk-7QWLAPOT.js";
8
8
  import "../chunk-57WY5GAE.js";
9
- import "../chunk-KMDTMBYI.js";
10
- import "../chunk-G5UX55XC.js";
9
+ import "../chunk-U5WBLGZV.js";
10
+ import "../chunk-Q2BOMFJ5.js";
11
11
  import "../chunk-K2V4ULA2.js";
12
12
  export {
13
13
  Switch_default as Switch,
@@ -2,6 +2,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
3
3
  import * as tailwind_variants from 'tailwind-variants';
4
4
  import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
5
+ import { SwitchProps as SwitchProps$1 } from '@heroui/switch';
6
+ import { ReactNode } from 'react';
5
7
 
6
8
  declare const switchVariants: tailwind_variants.TVReturnType<{
7
9
  [key: string]: {
@@ -111,16 +113,23 @@ interface SwitchProps extends VariantProps {
111
113
  className?: ClassName;
112
114
  /** whether the select should be disabled */
113
115
  disabled?: boolean;
114
- /** component displayed next to the switch. */
115
- label?: React.ReactNode;
116
+ /** Icon to be displayed at the end of the switch (when enabled) */
117
+ endContent?: ReactNode;
118
+ /** component displayed next to the switch */
119
+ label?: ReactNode;
116
120
  /** name the field is registered under */
117
121
  name: string;
122
+ size?: 'sm' | 'md' | 'lg';
123
+ /** Icon to be displayed at the start of the switch (when disabled) */
124
+ startContent?: ReactNode;
118
125
  /** HTML data-testid attribute used in e2e tests */
119
126
  testId?: string;
127
+ /** Icon to be displayed inside the thumb */
128
+ thumbIcon?: SwitchProps$1['thumbIcon'];
120
129
  }
121
130
  /**
122
131
  * Switch component based on [HeroUI Switch](https://www.heroui.com//docs/components/switch)
123
132
  */
124
- declare const Switch: ({ className, disabled, label: _label, name, testId: _testId, }: SwitchProps) => react_jsx_runtime.JSX.Element;
133
+ declare const Switch: ({ className, disabled, endContent, label: _label, name, size, startContent, testId: _testId, thumbIcon, }: SwitchProps) => react_jsx_runtime.JSX.Element;
125
134
 
126
135
  export { Switch as S, type SwitchProps as a };
@@ -2,6 +2,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
3
3
  import * as tailwind_variants from 'tailwind-variants';
4
4
  import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
5
+ import { SwitchProps as SwitchProps$1 } from '@heroui/switch';
6
+ import { ReactNode } from 'react';
5
7
 
6
8
  declare const switchVariants: tailwind_variants.TVReturnType<{
7
9
  [key: string]: {
@@ -111,16 +113,23 @@ interface SwitchProps extends VariantProps {
111
113
  className?: ClassName;
112
114
  /** whether the select should be disabled */
113
115
  disabled?: boolean;
114
- /** component displayed next to the switch. */
115
- label?: React.ReactNode;
116
+ /** Icon to be displayed at the end of the switch (when enabled) */
117
+ endContent?: ReactNode;
118
+ /** component displayed next to the switch */
119
+ label?: ReactNode;
116
120
  /** name the field is registered under */
117
121
  name: string;
122
+ size?: 'sm' | 'md' | 'lg';
123
+ /** Icon to be displayed at the start of the switch (when disabled) */
124
+ startContent?: ReactNode;
118
125
  /** HTML data-testid attribute used in e2e tests */
119
126
  testId?: string;
127
+ /** Icon to be displayed inside the thumb */
128
+ thumbIcon?: SwitchProps$1['thumbIcon'];
120
129
  }
121
130
  /**
122
131
  * Switch component based on [HeroUI Switch](https://www.heroui.com//docs/components/switch)
123
132
  */
124
- declare const Switch: ({ className, disabled, label: _label, name, testId: _testId, }: SwitchProps) => react_jsx_runtime.JSX.Element;
133
+ declare const Switch: ({ className, disabled, endContent, label: _label, name, size, startContent, testId: _testId, thumbIcon, }: SwitchProps) => react_jsx_runtime.JSX.Element;
125
134
 
126
135
  export { Switch as S, type SwitchProps as a };
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkSHB3Z5GNcjs = require('../chunk-SHB3Z5GN.cjs');
4
+ var _chunkAZT3TDWZcjs = require('../chunk-AZT3TDWZ.cjs');
5
5
  require('../chunk-PA2DQCBY.cjs');
6
6
  require('../chunk-GNYQC5IJ.cjs');
7
7
  require('../chunk-Y6EAPURV.cjs');
8
8
  require('../chunk-L4YPB7MU.cjs');
9
- require('../chunk-I2PJDXWB.cjs');
10
- require('../chunk-TSB65253.cjs');
9
+ require('../chunk-OWWUTKGY.cjs');
10
+ require('../chunk-P6HJOG7D.cjs');
11
11
  require('../chunk-555JRYCS.cjs');
12
12
 
13
13
 
14
14
 
15
- exports.TextArea = _chunkSHB3Z5GNcjs.TextArea_default; exports.default = _chunkSHB3Z5GNcjs.TextArea_default2;
15
+ exports.TextArea = _chunkAZT3TDWZcjs.TextArea_default; exports.default = _chunkAZT3TDWZcjs.TextArea_default2;
16
16
  //# sourceMappingURL=index.cjs.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  TextArea_default,
3
3
  TextArea_default2
4
- } from "../chunk-XDHY7DXJ.js";
4
+ } from "../chunk-NNKOK5EU.js";
5
5
  import "../chunk-BQGN3JTU.js";
6
6
  import "../chunk-UTFZRBBS.js";
7
7
  import "../chunk-7QWLAPOT.js";
8
8
  import "../chunk-57WY5GAE.js";
9
- import "../chunk-KMDTMBYI.js";
10
- import "../chunk-G5UX55XC.js";
9
+ import "../chunk-U5WBLGZV.js";
10
+ import "../chunk-Q2BOMFJ5.js";
11
11
  import "../chunk-K2V4ULA2.js";
12
12
  export {
13
13
  TextArea_default as TextArea,
@@ -36,9 +36,13 @@ var switchVariants = tv({
36
36
  var Switch = ({
37
37
  className = void 0,
38
38
  disabled = false,
39
+ endContent = void 0,
39
40
  label: _label = void 0,
40
41
  name,
41
- testId: _testId = void 0
42
+ size = void 0,
43
+ startContent = void 0,
44
+ testId: _testId = void 0,
45
+ thumbIcon = void 0
42
46
  }) => {
43
47
  const { control, debugMode, getFieldState } = useFormContext();
44
48
  const { error, required, testId, invalid } = getFieldState(name, _testId);
@@ -64,6 +68,7 @@ var Switch = ({
64
68
  "data-invalid": invalid,
65
69
  "data-required": required,
66
70
  "data-testid": testId,
71
+ endContent,
67
72
  isDisabled,
68
73
  isSelected: !!value,
69
74
  name,
@@ -71,6 +76,9 @@ var Switch = ({
71
76
  onValueChange: onChange,
72
77
  ref,
73
78
  required,
79
+ size,
80
+ startContent,
81
+ thumbIcon,
74
82
  value,
75
83
  children: [
76
84
  label,
@@ -95,4 +103,4 @@ export {
95
103
  Switch_default,
96
104
  Switch_default2
97
105
  };
98
- //# sourceMappingURL=chunk-NR5MV234.js.map
106
+ //# sourceMappingURL=chunk-3PTHYFAU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Switch/Switch.tsx","../src/Switch/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { SwitchProps as HeroSwitchProps } from '@heroui/switch';\nimport type { ReactNode } from 'react';\n\nimport { Switch as HeroSwitch } from '@heroui/switch';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { useController, useFormContext, useInput } from '../hooks';\nimport { FieldCopyTestIdButton } from '../partials/FieldCopyTestIdButton';\nimport { FieldValidationError } from '../partials/FieldValidationError';\n\nexport const switchVariants = tv({\n slots: {\n base: '',\n endContent: '',\n errorMessage: 'ml-1 mt-1',\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 group-data-[required=true]:after:ml-0.5 group-data-[required=true]:after:text-danger group-data-[required=true]:after:content-[\"*\"]',\n outerWrapper: 'place-content-center',\n startContent: '',\n thumb: '',\n thumbIcon: '',\n wrapper: '',\n },\n});\n\ntype VariantProps = TVProps<typeof switchVariants>;\ntype ClassName = TVClassName<typeof switchVariants>;\n\nexport interface SwitchProps extends VariantProps {\n /** CSS class name */\n className?: ClassName;\n /** whether the select should be disabled */\n disabled?: boolean;\n /** Icon to be displayed at the end of the switch (when enabled) */\n endContent?: ReactNode;\n /** component displayed next to the switch */\n label?: ReactNode;\n /** name the field is registered under */\n name: string;\n /* Size of the switch */\n size?: 'sm' | 'md' | 'lg';\n /** Icon to be displayed at the start of the switch (when disabled) */\n startContent?: ReactNode;\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 * Switch component based on [HeroUI Switch](https://www.heroui.com//docs/components/switch)\n */\nconst Switch = ({\n className = undefined,\n disabled = false,\n endContent = undefined,\n label: _label = undefined,\n name,\n size = undefined,\n startContent = undefined,\n testId: _testId = undefined,\n thumbIcon = undefined,\n}: SwitchProps) => {\n const { control, debugMode, getFieldState } = useFormContext();\n const { error, required, testId, invalid } = getFieldState(name, _testId);\n\n const { field } = useController({ name, control, disabled });\n const { disabled: isDisabled, value, ref, onBlur, onChange } = field;\n\n const { label, getInputProps, getErrorMessageProps } = useInput({\n errorMessage: JSON.stringify(error),\n isInvalid: invalid,\n isRequired: required,\n label: _label,\n labelPlacement: 'outside',\n placeholder: ' ',\n });\n\n const variants = switchVariants();\n const classNames = variantsToClassNames(variants, className, 'outerWrapper');\n\n const showTestIdCopyButton = debugMode === 'debug-testids';\n\n return (\n <div className={classNames.outerWrapper}>\n <HeroSwitch\n aria-describedby={getInputProps()['aria-describedby']}\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 endContent={endContent}\n isDisabled={isDisabled}\n isSelected={!!value}\n name={name}\n onBlur={onBlur}\n onValueChange={onChange}\n ref={ref}\n required={required}\n size={size}\n startContent={startContent}\n thumbIcon={thumbIcon}\n value={value}\n >\n {label}\n {showTestIdCopyButton && <FieldCopyTestIdButton testId={testId} />}\n </HeroSwitch>\n {error && (\n <div className={classNames.errorMessage}>\n <div\n /* eslint-disable-next-line react/jsx-props-no-spreading */\n {...getErrorMessageProps()}\n >\n <FieldValidationError error={error} testId={testId} />\n </div>\n </div>\n )}\n </div>\n );\n};\n\nexport default Switch;\n","import Switch from './Switch';\n\nexport type { SwitchProps } from './Switch';\n\nexport { Switch };\n\nexport default Switch;\n"],"mappings":";;;;;;;;;;;;;;;;;AAIA,SAAS,UAAU,kBAAkB;AAErC,SAAS,IAAI,4BAA4B;AAmFnC,SAsB2B,KAtB3B;AA7EC,IAAM,iBAAiB,GAAG;AAAA,EAC/B,OAAO;AAAA,IACL,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,cAAc;AAAA;AAAA;AAAA,IAGd,OACE;AAAA,IACF,cAAc;AAAA,IACd,cAAc;AAAA,IACd,OAAO;AAAA,IACP,WAAW;AAAA,IACX,SAAS;AAAA,EACX;AACF,CAAC;AA6BD,IAAM,SAAS,CAAC;AAAA,EACd,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,aAAa;AAAA,EACb,OAAO,SAAS;AAAA,EAChB;AAAA,EACA,OAAO;AAAA,EACP,eAAe;AAAA,EACf,QAAQ,UAAU;AAAA,EAClB,YAAY;AACd,MAAmB;AACjB,QAAM,EAAE,SAAS,WAAW,cAAc,IAAI,eAAe;AAC7D,QAAM,EAAE,OAAO,UAAU,QAAQ,QAAQ,IAAI,cAAc,MAAM,OAAO;AAExE,QAAM,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,SAAS,SAAS,CAAC;AAC3D,QAAM,EAAE,UAAU,YAAY,OAAO,KAAK,QAAQ,SAAS,IAAI;AAE/D,QAAM,EAAE,OAAO,eAAe,qBAAqB,IAAI,SAAS;AAAA,IAC9D,cAAc,KAAK,UAAU,KAAK;AAAA,IAClC,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,gBAAgB;AAAA,IAChB,aAAa;AAAA,EACf,CAAC;AAED,QAAM,WAAW,eAAe;AAChC,QAAM,aAAa,qBAAqB,UAAU,WAAW,cAAc;AAE3E,QAAM,uBAAuB,cAAc;AAE3C,SACE,qBAAC,SAAI,WAAW,WAAW,cACzB;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,oBAAkB,cAAc,EAAE,kBAAkB;AAAA,QACpD;AAAA,QAGA,gBAAc;AAAA,QACd,iBAAe;AAAA,QACf,eAAa;AAAA,QACb;AAAA,QACA;AAAA,QACA,YAAY,CAAC,CAAC;AAAA,QACd;AAAA,QACA;AAAA,QACA,eAAe;AAAA,QACf;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QAEC;AAAA;AAAA,UACA,wBAAwB,oBAAC,iCAAsB,QAAgB;AAAA;AAAA;AAAA,IAClE;AAAA,IACC,SACC,oBAAC,SAAI,WAAW,WAAW,cACzB;AAAA,MAAC;AAAA,uCAEK,qBAAqB,IAF1B;AAAA,QAIC,8BAAC,gCAAqB,OAAc,QAAgB;AAAA;AAAA,IACtD,GACF;AAAA,KAEJ;AAEJ;AAEA,IAAO,iBAAQ;;;ACzHf,IAAOA,kBAAQ;","names":["Switch_default"]}
@@ -10,7 +10,7 @@ var _chunkGNYQC5IJcjs = require('./chunk-GNYQC5IJ.cjs');
10
10
  var _chunkY6EAPURVcjs = require('./chunk-Y6EAPURV.cjs');
11
11
 
12
12
 
13
- var _chunkI2PJDXWBcjs = require('./chunk-I2PJDXWB.cjs');
13
+ var _chunkOWWUTKGYcjs = require('./chunk-OWWUTKGY.cjs');
14
14
 
15
15
  // src/TextArea/TextArea.tsx
16
16
  var _input = require('@heroui/input');
@@ -40,7 +40,7 @@ var TextArea = ({
40
40
  value: fieldValue,
41
41
  ref
42
42
  } = field;
43
- const { onChange, onBlur, value } = _chunkI2PJDXWBcjs.useInputValueDebounce.call(void 0, {
43
+ const { onChange, onBlur, value } = _chunkOWWUTKGYcjs.useInputValueDebounce.call(void 0, {
44
44
  debounceDelay,
45
45
  onBlur: fieldOnBlur,
46
46
  onChange: fieldOnChange,
@@ -85,4 +85,4 @@ var TextArea_default2 = TextArea_default;
85
85
 
86
86
 
87
87
  exports.TextArea_default = TextArea_default; exports.TextArea_default2 = TextArea_default2;
88
- //# sourceMappingURL=chunk-SHB3Z5GN.cjs.map
88
+ //# sourceMappingURL=chunk-AZT3TDWZ.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/chunk-SHB3Z5GN.cjs","../src/TextArea/TextArea.tsx","../src/TextArea/index.ts"],"names":["TextArea_default"],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACA;ACZA,sCAAyC;AAEzC,oDAAmB;AA0EF,+CAAA;AA9CjB,IAAM,SAAA,EAAW,CAAC;AAAA,EAChB,SAAA,EAAW,IAAA;AAAA,EACX,UAAA,EAAY,KAAA,CAAA;AAAA,EACZ,cAAA,EAAgB,GAAA;AAAA,EAChB,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,EAAE,MAAM,EAAA,EAAI,6CAAA;AAAc,IAC9B,OAAA;AAAA,IACA,QAAA;AAAA,IACA;AAAA,EACF,CAAC,CAAA;AAED,EAAA,MAAM;AAAA,IACJ,QAAA,EAAU,UAAA;AAAA,IACV,QAAA,EAAU,aAAA;AAAA,IACV,MAAA,EAAQ,WAAA;AAAA,IACR,KAAA,EAAO,UAAA;AAAA,IACP;AAAA,EACF,EAAA,EAAI,KAAA;AAGJ,EAAA,MAAM,EAAE,QAAA,EAAU,MAAA,EAAQ,MAAM,EAAA,EAAI,qDAAA;AAAsB,IACxD,aAAA;AAAA,IACA,MAAA,EAAQ,WAAA;AAAA,IACR,QAAA,EAAU,aAAA;AAAA,IACV,KAAA,EAAO;AAAA,EACT,CAAC,CAAA;AAED,EAAA,MAAM,qBAAA,EAAuB,UAAA,IAAc,eAAA;AAC3C,EAAA,MAAM,UAAA,EAAY,MAAA,GAAS,oBAAA;AAE3B,EAAA,uBACE,6BAAA;AAAA,IAAC,eAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,4BAAA,SAAY,CAAA;AAAA,MACvB,UAAA,EAAY;AAAA,QACV,YAAA,EAAc;AAAA,MAChB,CAAA;AAAA,MACA,aAAA,EAAa,MAAA;AAAA,MACb,YAAA,EACE,MAAA,mBAAS,6BAAA,8CAAC,EAAA,EAAqB,KAAA,EAAc,OAAA,CAAgB,CAAA;AAAA,MAE/D,UAAA;AAAA,MACA,UAAA,EAAY,QAAA;AAAA,MACZ,SAAA,EAAW,OAAA;AAAA,MACX,KAAA,EACE,UAAA,mBACE,8BAAA,oBAAA,EAAA,EACG,QAAA,EAAA;AAAA,QAAA,KAAA;AAAA,QACA,qBAAA,mBAAwB,6BAAA,+CAAC,EAAA,EAAsB,OAAA,CAAgB;AAAA,MAAA,EAAA,CAClE,CAAA;AAAA,MAGJ,cAAA,EAAe,SAAA;AAAA,MACf,IAAA;AAAA,MACA,MAAA;AAAA,MACA,QAAA;AAAA,MACA,WAAA;AAAA,MACA,GAAA;AAAA,MACA,KAAA;AAAA,MACA,OAAA,EAAQ,UAAA;AAAA,MAEP;AAAA,IAAA;AAAA,EACH,CAAA;AAEJ,CAAA;AAEA,IAAO,iBAAA,EAAQ,QAAA;AD1Bf;AACA;AE1EA,IAAOA,kBAAAA,EAAQ,gBAAA;AF4Ef;AACA;AACE;AACA;AACF,2FAAC","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/chunk-SHB3Z5GN.cjs","sourcesContent":[null,"import type { ReactNode } from 'react';\n\nimport { Textarea as HeroTextArea } from '@heroui/input';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nimport { useController, useFormContext, useInputValueDebounce } 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 /** 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 = undefined,\n debounceDelay = 300,\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 { field } = useController({\n control,\n disabled,\n name,\n });\n\n const {\n disabled: isDisabled,\n onChange: fieldOnChange,\n onBlur: fieldOnBlur,\n value: fieldValue,\n ref,\n } = field;\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 const showTestIdCopyButton = debugMode === 'debug-testids';\n const showLabel = label || showTestIdCopyButton;\n\n return (\n <HeroTextArea\n className={cn(className)}\n classNames={{\n inputWrapper: 'bg-content1 group-data-[focus=true]:border-focus',\n }}\n data-testid={testId}\n errorMessage={\n error && <FieldValidationError error={error} testId={testId} />\n }\n isDisabled={isDisabled}\n isRequired={required}\n isInvalid={invalid}\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={onChange}\n placeholder={placeholder}\n ref={ref}\n value={value as string}\n variant=\"bordered\"\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"]}
1
+ {"version":3,"sources":["/home/runner/work/pixels/pixels/packages/uniform/dist/chunk-AZT3TDWZ.cjs","../src/TextArea/TextArea.tsx","../src/TextArea/index.ts"],"names":["TextArea_default"],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACA;ACZA,sCAAyC;AAEzC,oDAAmB;AA0EF,+CAAA;AA9CjB,IAAM,SAAA,EAAW,CAAC;AAAA,EAChB,SAAA,EAAW,IAAA;AAAA,EACX,UAAA,EAAY,KAAA,CAAA;AAAA,EACZ,cAAA,EAAgB,GAAA;AAAA,EAChB,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,EAAE,MAAM,EAAA,EAAI,6CAAA;AAAc,IAC9B,OAAA;AAAA,IACA,QAAA;AAAA,IACA;AAAA,EACF,CAAC,CAAA;AAED,EAAA,MAAM;AAAA,IACJ,QAAA,EAAU,UAAA;AAAA,IACV,QAAA,EAAU,aAAA;AAAA,IACV,MAAA,EAAQ,WAAA;AAAA,IACR,KAAA,EAAO,UAAA;AAAA,IACP;AAAA,EACF,EAAA,EAAI,KAAA;AAGJ,EAAA,MAAM,EAAE,QAAA,EAAU,MAAA,EAAQ,MAAM,EAAA,EAAI,qDAAA;AAAsB,IACxD,aAAA;AAAA,IACA,MAAA,EAAQ,WAAA;AAAA,IACR,QAAA,EAAU,aAAA;AAAA,IACV,KAAA,EAAO;AAAA,EACT,CAAC,CAAA;AAED,EAAA,MAAM,qBAAA,EAAuB,UAAA,IAAc,eAAA;AAC3C,EAAA,MAAM,UAAA,EAAY,MAAA,GAAS,oBAAA;AAE3B,EAAA,uBACE,6BAAA;AAAA,IAAC,eAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,4BAAA,SAAY,CAAA;AAAA,MACvB,UAAA,EAAY;AAAA,QACV,YAAA,EAAc;AAAA,MAChB,CAAA;AAAA,MACA,aAAA,EAAa,MAAA;AAAA,MACb,YAAA,EACE,MAAA,mBAAS,6BAAA,8CAAC,EAAA,EAAqB,KAAA,EAAc,OAAA,CAAgB,CAAA;AAAA,MAE/D,UAAA;AAAA,MACA,UAAA,EAAY,QAAA;AAAA,MACZ,SAAA,EAAW,OAAA;AAAA,MACX,KAAA,EACE,UAAA,mBACE,8BAAA,oBAAA,EAAA,EACG,QAAA,EAAA;AAAA,QAAA,KAAA;AAAA,QACA,qBAAA,mBAAwB,6BAAA,+CAAC,EAAA,EAAsB,OAAA,CAAgB;AAAA,MAAA,EAAA,CAClE,CAAA;AAAA,MAGJ,cAAA,EAAe,SAAA;AAAA,MACf,IAAA;AAAA,MACA,MAAA;AAAA,MACA,QAAA;AAAA,MACA,WAAA;AAAA,MACA,GAAA;AAAA,MACA,KAAA;AAAA,MACA,OAAA,EAAQ,UAAA;AAAA,MAEP;AAAA,IAAA;AAAA,EACH,CAAA;AAEJ,CAAA;AAEA,IAAO,iBAAA,EAAQ,QAAA;AD1Bf;AACA;AE1EA,IAAOA,kBAAAA,EAAQ,gBAAA;AF4Ef;AACA;AACE;AACA;AACF,2FAAC","file":"/home/runner/work/pixels/pixels/packages/uniform/dist/chunk-AZT3TDWZ.cjs","sourcesContent":[null,"import type { ReactNode } from 'react';\n\nimport { Textarea as HeroTextArea } from '@heroui/input';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nimport { useController, useFormContext, useInputValueDebounce } 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 /** 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 = undefined,\n debounceDelay = 300,\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 { field } = useController({\n control,\n disabled,\n name,\n });\n\n const {\n disabled: isDisabled,\n onChange: fieldOnChange,\n onBlur: fieldOnBlur,\n value: fieldValue,\n ref,\n } = field;\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 const showTestIdCopyButton = debugMode === 'debug-testids';\n const showLabel = label || showTestIdCopyButton;\n\n return (\n <HeroTextArea\n className={cn(className)}\n classNames={{\n inputWrapper: 'bg-content1 group-data-[focus=true]:border-focus',\n }}\n data-testid={testId}\n errorMessage={\n error && <FieldValidationError error={error} testId={testId} />\n }\n isDisabled={isDisabled}\n isRequired={required}\n isInvalid={invalid}\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={onChange}\n placeholder={placeholder}\n ref={ref}\n value={value as string}\n variant=\"bordered\"\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"]}
@@ -36,9 +36,13 @@ var switchVariants = _pixelutils.tv.call(void 0, {
36
36
  var Switch = ({
37
37
  className = void 0,
38
38
  disabled = false,
39
+ endContent = void 0,
39
40
  label: _label = void 0,
40
41
  name,
41
- testId: _testId = void 0
42
+ size = void 0,
43
+ startContent = void 0,
44
+ testId: _testId = void 0,
45
+ thumbIcon = void 0
42
46
  }) => {
43
47
  const { control, debugMode, getFieldState } = _chunkY6EAPURVcjs.useFormContext.call(void 0, );
44
48
  const { error, required, testId, invalid } = getFieldState(name, _testId);
@@ -64,6 +68,7 @@ var Switch = ({
64
68
  "data-invalid": invalid,
65
69
  "data-required": required,
66
70
  "data-testid": testId,
71
+ endContent,
67
72
  isDisabled,
68
73
  isSelected: !!value,
69
74
  name,
@@ -71,6 +76,9 @@ var Switch = ({
71
76
  onValueChange: onChange,
72
77
  ref,
73
78
  required,
79
+ size,
80
+ startContent,
81
+ thumbIcon,
74
82
  value,
75
83
  children: [
76
84
  label,
@@ -95,4 +103,4 @@ var Switch_default2 = Switch_default;
95
103
 
96
104
 
97
105
  exports.Switch_default = Switch_default; exports.Switch_default2 = Switch_default2;
98
- //# sourceMappingURL=chunk-QTROOQ53.cjs.map
106
+ //# sourceMappingURL=chunk-DOBUPJPN.cjs.map