@fuf-stack/uniform 0.2.4 → 0.3.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.
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunk2O53LMR3cjs = require('../chunk-2O53LMR3.cjs');
5
+ require('../chunk-QTL5FREE.cjs');
6
+ require('../chunk-WQRM7G4C.cjs');
7
+ require('../chunk-BBB4FEY6.cjs');
8
+ require('../chunk-22AA557I.cjs');
9
+
10
+
11
+
12
+ exports.Input = _chunk2O53LMR3cjs.Input_default; exports.default = _chunk2O53LMR3cjs.Input_default2;
13
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { I as Input } from '../Input-B_rP1h4X.cjs';
2
+ export { a as InputProps } from '../Input-B_rP1h4X.cjs';
3
+ import 'react/jsx-runtime';
4
+ import 'react';
5
+
6
+
7
+
8
+ export { Input, Input as default };
@@ -0,0 +1,8 @@
1
+ import { I as Input } from '../Input-B_rP1h4X.js';
2
+ export { a as InputProps } from '../Input-B_rP1h4X.js';
3
+ import 'react/jsx-runtime';
4
+ import 'react';
5
+
6
+
7
+
8
+ export { Input, Input as default };
@@ -0,0 +1,13 @@
1
+ import {
2
+ Input_default,
3
+ Input_default2
4
+ } from "../chunk-3DMR7T4D.js";
5
+ import "../chunk-DBLODROX.js";
6
+ import "../chunk-BCMPSLSG.js";
7
+ import "../chunk-V46BHM2U.js";
8
+ import "../chunk-FNVT6LS4.js";
9
+ export {
10
+ Input_default as Input,
11
+ Input_default2 as default
12
+ };
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,27 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ interface InputProps {
5
+ /** CSS class name */
6
+ className?: string;
7
+ /** added content to the end of the input Field. */
8
+ endContent?: ReactNode;
9
+ /** form field label (set to false to disable label) */
10
+ label?: string | false;
11
+ /** form field name */
12
+ name: string;
13
+ /** form field placeholder */
14
+ placeholder?: string;
15
+ /** content added to the start of the input field */
16
+ startContent?: ReactNode;
17
+ /** HTML data-testid attribute used in e2e tests */
18
+ testId?: string;
19
+ /** input type */
20
+ type?: 'number' | 'password';
21
+ }
22
+ /**
23
+ * Input component based on [NextUI Input](https://nextui.org/docs/components/input)
24
+ */
25
+ declare const Input: ({ className, endContent, label, name, placeholder, startContent, testId: _testId, type, }: InputProps) => react_jsx_runtime.JSX.Element;
26
+
27
+ export { Input as I, type InputProps as a };
@@ -0,0 +1,27 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ interface InputProps {
5
+ /** CSS class name */
6
+ className?: string;
7
+ /** added content to the end of the input Field. */
8
+ endContent?: ReactNode;
9
+ /** form field label (set to false to disable label) */
10
+ label?: string | false;
11
+ /** form field name */
12
+ name: string;
13
+ /** form field placeholder */
14
+ placeholder?: string;
15
+ /** content added to the start of the input field */
16
+ startContent?: ReactNode;
17
+ /** HTML data-testid attribute used in e2e tests */
18
+ testId?: string;
19
+ /** input type */
20
+ type?: 'number' | 'password';
21
+ }
22
+ /**
23
+ * Input component based on [NextUI Input](https://nextui.org/docs/components/input)
24
+ */
25
+ declare const Input: ({ className, endContent, label, name, placeholder, startContent, testId: _testId, type, }: InputProps) => react_jsx_runtime.JSX.Element;
26
+
27
+ export { Input as I, type InputProps as a };
@@ -0,0 +1,79 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
+
3
+ var _chunkQTL5FREEcjs = require('./chunk-QTL5FREE.cjs');
4
+
5
+
6
+ var _chunkWQRM7G4Ccjs = require('./chunk-WQRM7G4C.cjs');
7
+
8
+
9
+ var _chunk22AA557Icjs = require('./chunk-22AA557I.cjs');
10
+
11
+ // src/Input/Input.tsx
12
+ var _reacthookform = require('react-hook-form');
13
+ var _input = require('@nextui-org/input');
14
+ var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames);
15
+ var _jsxruntime = require('react/jsx-runtime');
16
+ var Input = ({
17
+ className = void 0,
18
+ endContent = void 0,
19
+ label = void 0,
20
+ name,
21
+ placeholder = " ",
22
+ startContent = void 0,
23
+ testId: _testId = void 0,
24
+ type = void 0
25
+ }) => {
26
+ const { control, getFieldState } = _chunkWQRM7G4Ccjs.useFormContext.call(void 0, );
27
+ const { error, invalid, required, testId } = getFieldState(name, _testId);
28
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
29
+ _reacthookform.Controller,
30
+ {
31
+ control,
32
+ name,
33
+ render: ({
34
+ field: { disabled: isDisabled, onChange, onBlur, value, ref }
35
+ }) => {
36
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
37
+ _input.Input,
38
+ {
39
+ className: _classnames2.default.call(void 0, className),
40
+ classNames: {
41
+ inputWrapper: "group-data-[focus=true]:border-primary"
42
+ },
43
+ "data-testid": testId,
44
+ endContent,
45
+ errorMessage: error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQTL5FREEcjs.FieldValidationError_default2, { error }),
46
+ isDisabled,
47
+ isInvalid: invalid,
48
+ isRequired: required,
49
+ label: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
50
+ label,
51
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22AA557Icjs.FieldCopyTestIdButton_default2, { testId })
52
+ ] }),
53
+ labelPlacement: "outside",
54
+ name,
55
+ onBlur,
56
+ onChange,
57
+ placeholder,
58
+ radius: "sm",
59
+ ref,
60
+ startContent,
61
+ type,
62
+ value,
63
+ variant: "bordered"
64
+ }
65
+ );
66
+ }
67
+ }
68
+ );
69
+ };
70
+ var Input_default = Input;
71
+
72
+ // src/Input/index.ts
73
+ var Input_default2 = Input_default;
74
+
75
+
76
+
77
+
78
+ exports.Input_default = Input_default; exports.Input_default2 = Input_default2;
79
+ //# sourceMappingURL=chunk-2O53LMR3.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Input/Input.tsx","../src/Input/index.ts"],"names":["Input_default"],"mappings":";;;;;;;;;;;AAEA,SAAS,kBAAkB;AAE3B,SAAS,SAAS,iBAAiB;AACnC,OAAO,QAAQ;AAwDoB,SAKrB,UALqB,KAKrB,YALqB;AA5BnC,IAAM,QAAQ,CAAC;AAAA,EACb,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,QAAQ;AAAA,EACR;AAAA,EACA,cAAc;AAAA,EACd,eAAe;AAAA,EACf,QAAQ,UAAU;AAAA,EAClB,OAAO;AACT,MAAkB;AAChB,QAAM,EAAE,SAAS,cAAc,IAAI,eAAe;AAClD,QAAM,EAAE,OAAO,SAAS,UAAU,OAAO,IAAI,cAAc,MAAM,OAAO;AAExE,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,QAAQ,CAAC;AAAA,QACP,OAAO,EAAE,UAAU,YAAY,UAAU,QAAQ,OAAO,IAAI;AAAA,MAC9D,MAAM;AACJ,eACE;AAAA,UAAC;AAAA;AAAA,YACC,WAAW,GAAG,SAAS;AAAA,YACvB,YAAY;AAAA,cACV,cAAc;AAAA,YAChB;AAAA,YACA,eAAa;AAAA,YACb;AAAA,YACA,cAAc,SAAS,oBAAC,gCAAqB,OAAc;AAAA,YAC3D;AAAA,YACA,WAAW;AAAA,YACX,YAAY;AAAA,YACZ,OACE,iCACG;AAAA;AAAA,cACD,oBAAC,iCAAsB,QAAgB;AAAA,eACzC;AAAA,YAEF,gBAAe;AAAA,YACf;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA,QAAO;AAAA,YACP;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA,SAAQ;AAAA;AAAA,QACV;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;AAEA,IAAO,gBAAQ;;;ACnFf,IAAOA,iBAAQ","sourcesContent":["import type { ReactNode } from 'react';\n\nimport { Controller } from 'react-hook-form';\n\nimport { Input as NextInput } from '@nextui-org/input';\nimport cn from 'classnames';\n\nimport { 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 /** 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 /** 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 /** input type */\n type?: 'number' | 'password';\n}\n\n/**\n * Input component based on [NextUI Input](https://nextui.org/docs/components/input)\n */\nconst Input = ({\n className = undefined,\n endContent = undefined,\n label = undefined,\n name,\n placeholder = ' ',\n startContent = undefined,\n testId: _testId = undefined,\n type = undefined,\n}: InputProps) => {\n const { control, getFieldState } = useFormContext();\n const { error, invalid, required, testId } = getFieldState(name, _testId);\n\n return (\n <Controller\n control={control}\n name={name}\n render={({\n field: { disabled: isDisabled, onChange, onBlur, value, ref },\n }) => {\n return (\n <NextInput\n className={cn(className)}\n classNames={{\n inputWrapper: 'group-data-[focus=true]:border-primary',\n }}\n data-testid={testId}\n endContent={endContent}\n errorMessage={error && <FieldValidationError error={error} />}\n isDisabled={isDisabled}\n isInvalid={invalid}\n isRequired={required}\n label={\n <>\n {label}\n <FieldCopyTestIdButton testId={testId} />\n </>\n }\n labelPlacement=\"outside\"\n name={name}\n onBlur={onBlur}\n onChange={onChange}\n placeholder={placeholder}\n radius=\"sm\"\n ref={ref}\n startContent={startContent}\n type={type}\n value={value}\n variant=\"bordered\"\n />\n );\n }}\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"]}
@@ -0,0 +1,79 @@
1
+ import {
2
+ FieldValidationError_default2 as FieldValidationError_default
3
+ } from "./chunk-DBLODROX.js";
4
+ import {
5
+ useFormContext
6
+ } from "./chunk-BCMPSLSG.js";
7
+ import {
8
+ FieldCopyTestIdButton_default2 as FieldCopyTestIdButton_default
9
+ } from "./chunk-FNVT6LS4.js";
10
+
11
+ // src/Input/Input.tsx
12
+ import { Controller } from "react-hook-form";
13
+ import { Input as NextInput } from "@nextui-org/input";
14
+ import cn from "classnames";
15
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
16
+ var Input = ({
17
+ className = void 0,
18
+ endContent = void 0,
19
+ label = void 0,
20
+ name,
21
+ placeholder = " ",
22
+ startContent = void 0,
23
+ testId: _testId = void 0,
24
+ type = void 0
25
+ }) => {
26
+ const { control, getFieldState } = useFormContext();
27
+ const { error, invalid, required, testId } = getFieldState(name, _testId);
28
+ return /* @__PURE__ */ jsx(
29
+ Controller,
30
+ {
31
+ control,
32
+ name,
33
+ render: ({
34
+ field: { disabled: isDisabled, onChange, onBlur, value, ref }
35
+ }) => {
36
+ return /* @__PURE__ */ jsx(
37
+ NextInput,
38
+ {
39
+ className: cn(className),
40
+ classNames: {
41
+ inputWrapper: "group-data-[focus=true]:border-primary"
42
+ },
43
+ "data-testid": testId,
44
+ endContent,
45
+ errorMessage: error && /* @__PURE__ */ jsx(FieldValidationError_default, { error }),
46
+ isDisabled,
47
+ isInvalid: invalid,
48
+ isRequired: required,
49
+ label: /* @__PURE__ */ jsxs(Fragment, { children: [
50
+ label,
51
+ /* @__PURE__ */ jsx(FieldCopyTestIdButton_default, { testId })
52
+ ] }),
53
+ labelPlacement: "outside",
54
+ name,
55
+ onBlur,
56
+ onChange,
57
+ placeholder,
58
+ radius: "sm",
59
+ ref,
60
+ startContent,
61
+ type,
62
+ value,
63
+ variant: "bordered"
64
+ }
65
+ );
66
+ }
67
+ }
68
+ );
69
+ };
70
+ var Input_default = Input;
71
+
72
+ // src/Input/index.ts
73
+ var Input_default2 = Input_default;
74
+
75
+ export {
76
+ Input_default,
77
+ Input_default2
78
+ };
79
+ //# sourceMappingURL=chunk-3DMR7T4D.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Input/Input.tsx","../src/Input/index.ts"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { Controller } from 'react-hook-form';\n\nimport { Input as NextInput } from '@nextui-org/input';\nimport cn from 'classnames';\n\nimport { 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 /** 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 /** 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 /** input type */\n type?: 'number' | 'password';\n}\n\n/**\n * Input component based on [NextUI Input](https://nextui.org/docs/components/input)\n */\nconst Input = ({\n className = undefined,\n endContent = undefined,\n label = undefined,\n name,\n placeholder = ' ',\n startContent = undefined,\n testId: _testId = undefined,\n type = undefined,\n}: InputProps) => {\n const { control, getFieldState } = useFormContext();\n const { error, invalid, required, testId } = getFieldState(name, _testId);\n\n return (\n <Controller\n control={control}\n name={name}\n render={({\n field: { disabled: isDisabled, onChange, onBlur, value, ref },\n }) => {\n return (\n <NextInput\n className={cn(className)}\n classNames={{\n inputWrapper: 'group-data-[focus=true]:border-primary',\n }}\n data-testid={testId}\n endContent={endContent}\n errorMessage={error && <FieldValidationError error={error} />}\n isDisabled={isDisabled}\n isInvalid={invalid}\n isRequired={required}\n label={\n <>\n {label}\n <FieldCopyTestIdButton testId={testId} />\n </>\n }\n labelPlacement=\"outside\"\n name={name}\n onBlur={onBlur}\n onChange={onChange}\n placeholder={placeholder}\n radius=\"sm\"\n ref={ref}\n startContent={startContent}\n type={type}\n value={value}\n variant=\"bordered\"\n />\n );\n }}\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"],"mappings":";;;;;;;;;;;AAEA,SAAS,kBAAkB;AAE3B,SAAS,SAAS,iBAAiB;AACnC,OAAO,QAAQ;AAwDoB,SAKrB,UALqB,KAKrB,YALqB;AA5BnC,IAAM,QAAQ,CAAC;AAAA,EACb,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,QAAQ;AAAA,EACR;AAAA,EACA,cAAc;AAAA,EACd,eAAe;AAAA,EACf,QAAQ,UAAU;AAAA,EAClB,OAAO;AACT,MAAkB;AAChB,QAAM,EAAE,SAAS,cAAc,IAAI,eAAe;AAClD,QAAM,EAAE,OAAO,SAAS,UAAU,OAAO,IAAI,cAAc,MAAM,OAAO;AAExE,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,QAAQ,CAAC;AAAA,QACP,OAAO,EAAE,UAAU,YAAY,UAAU,QAAQ,OAAO,IAAI;AAAA,MAC9D,MAAM;AACJ,eACE;AAAA,UAAC;AAAA;AAAA,YACC,WAAW,GAAG,SAAS;AAAA,YACvB,YAAY;AAAA,cACV,cAAc;AAAA,YAChB;AAAA,YACA,eAAa;AAAA,YACb;AAAA,YACA,cAAc,SAAS,oBAAC,gCAAqB,OAAc;AAAA,YAC3D;AAAA,YACA,WAAW;AAAA,YACX,YAAY;AAAA,YACZ,OACE,iCACG;AAAA;AAAA,cACD,oBAAC,iCAAsB,QAAgB;AAAA,eACzC;AAAA,YAEF,gBAAe;AAAA,YACf;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA,QAAO;AAAA,YACP;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA,SAAQ;AAAA;AAAA,QACV;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;AAEA,IAAO,gBAAQ;;;ACnFf,IAAOA,iBAAQ;","names":["Input_default"]}
package/dist/index.cjs CHANGED
@@ -6,22 +6,26 @@ var _chunk4BELEHDQcjs = require('./chunk-4BELEHDQ.cjs');
6
6
  var _chunkZPFKVKGVcjs = require('./chunk-ZPFKVKGV.cjs');
7
7
 
8
8
 
9
- var _chunkXUKBLFTRcjs = require('./chunk-XUKBLFTR.cjs');
9
+ var _chunk2O53LMR3cjs = require('./chunk-2O53LMR3.cjs');
10
10
 
11
11
 
12
+ var _chunkQTL5FREEcjs = require('./chunk-QTL5FREE.cjs');
12
13
 
13
- var _chunkWQRM7G4Ccjs = require('./chunk-WQRM7G4C.cjs');
14
14
 
15
+ var _chunkXUKBLFTRcjs = require('./chunk-XUKBLFTR.cjs');
15
16
 
16
- var _chunk22AA557Icjs = require('./chunk-22AA557I.cjs');
17
17
 
18
18
 
19
- var _chunkQTL5FREEcjs = require('./chunk-QTL5FREE.cjs');
19
+ var _chunkWQRM7G4Ccjs = require('./chunk-WQRM7G4C.cjs');
20
20
 
21
21
 
22
22
  var _chunkBBB4FEY6cjs = require('./chunk-BBB4FEY6.cjs');
23
23
 
24
24
 
25
+ var _chunk22AA557Icjs = require('./chunk-22AA557I.cjs');
26
+
27
+
28
+
25
29
 
26
30
 
27
31
 
@@ -29,5 +33,5 @@ var _chunkBBB4FEY6cjs = require('./chunk-BBB4FEY6.cjs');
29
33
 
30
34
 
31
35
 
32
- exports.FieldCopyTestIdButton = _chunk22AA557Icjs.FieldCopyTestIdButton_default; exports.FieldValidationError = _chunkQTL5FREEcjs.FieldValidationError_default; exports.Form = _chunk4BELEHDQcjs.Form_default; exports.Grid = _chunkZPFKVKGVcjs.Grid_default; exports.SubmitButton = _chunkXUKBLFTRcjs.SubmitButton_default; exports.recursiveFieldKeySearch = _chunkWQRM7G4Ccjs.recursiveFieldKeySearch; exports.slugify = _chunkBBB4FEY6cjs.slugify; exports.useFormContext = _chunkWQRM7G4Ccjs.useFormContext;
36
+ exports.FieldCopyTestIdButton = _chunk22AA557Icjs.FieldCopyTestIdButton_default; exports.FieldValidationError = _chunkQTL5FREEcjs.FieldValidationError_default; exports.Form = _chunk4BELEHDQcjs.Form_default; exports.Grid = _chunkZPFKVKGVcjs.Grid_default; exports.Input = _chunk2O53LMR3cjs.Input_default; exports.SubmitButton = _chunkXUKBLFTRcjs.SubmitButton_default; exports.recursiveFieldKeySearch = _chunkWQRM7G4Ccjs.recursiveFieldKeySearch; exports.slugify = _chunkBBB4FEY6cjs.slugify; exports.useFormContext = _chunkWQRM7G4Ccjs.useFormContext;
33
37
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -2,6 +2,7 @@ export { F as Form, a as FormProps } from './Form-Bv0R3QNk.cjs';
2
2
  export { G as Grid, a as GridProps } from './Grid-DF3L9NF3.cjs';
3
3
  export { slugify } from './helpers/index.cjs';
4
4
  export { recursiveFieldKeySearch, useFormContext } from './hooks/index.cjs';
5
+ export { I as Input, a as InputProps } from './Input-B_rP1h4X.cjs';
5
6
  export { F as FieldCopyTestIdButton, a as FieldCopyTestIdButtonProps } from './FieldCopyTestIdButton-D-z1usqE.cjs';
6
7
  export { F as FieldValidationError, a as FieldValidationErrorProps } from './FieldValidationError-BSXedjCA.cjs';
7
8
  export { S as SubmitButton, a as SubmitButtonProps } from './SubmitButton-BEp_zzwf.cjs';
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export { F as Form, a as FormProps } from './Form-Bv0R3QNk.js';
2
2
  export { G as Grid, a as GridProps } from './Grid-DF3L9NF3.js';
3
3
  export { slugify } from './helpers/index.js';
4
4
  export { recursiveFieldKeySearch, useFormContext } from './hooks/index.js';
5
+ export { I as Input, a as InputProps } from './Input-B_rP1h4X.js';
5
6
  export { F as FieldCopyTestIdButton, a as FieldCopyTestIdButtonProps } from './FieldCopyTestIdButton-D-z1usqE.js';
6
7
  export { F as FieldValidationError, a as FieldValidationErrorProps } from './FieldValidationError-BSXedjCA.js';
7
8
  export { S as SubmitButton, a as SubmitButtonProps } from './SubmitButton-BEp_zzwf.js';
package/dist/index.js CHANGED
@@ -4,6 +4,12 @@ import {
4
4
  import {
5
5
  Grid_default
6
6
  } from "./chunk-4MEKDDB2.js";
7
+ import {
8
+ Input_default
9
+ } from "./chunk-3DMR7T4D.js";
10
+ import {
11
+ FieldValidationError_default
12
+ } from "./chunk-DBLODROX.js";
7
13
  import {
8
14
  SubmitButton_default
9
15
  } from "./chunk-TEJGV6NC.js";
@@ -11,20 +17,18 @@ import {
11
17
  recursiveFieldKeySearch,
12
18
  useFormContext
13
19
  } from "./chunk-BCMPSLSG.js";
14
- import {
15
- FieldCopyTestIdButton_default
16
- } from "./chunk-FNVT6LS4.js";
17
- import {
18
- FieldValidationError_default
19
- } from "./chunk-DBLODROX.js";
20
20
  import {
21
21
  slugify
22
22
  } from "./chunk-V46BHM2U.js";
23
+ import {
24
+ FieldCopyTestIdButton_default
25
+ } from "./chunk-FNVT6LS4.js";
23
26
  export {
24
27
  FieldCopyTestIdButton_default as FieldCopyTestIdButton,
25
28
  FieldValidationError_default as FieldValidationError,
26
29
  Form_default as Form,
27
30
  Grid_default as Grid,
31
+ Input_default as Input,
28
32
  SubmitButton_default as SubmitButton,
29
33
  recursiveFieldKeySearch,
30
34
  slugify,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuf-stack/uniform",
3
- "version": "0.2.4",
3
+ "version": "0.3.1",
4
4
  "description": "fuf react form library",
5
5
  "author": "Hannes Tiede",
6
6
  "homepage": "https://github.com/fuf-stack/uniform#readme",
@@ -36,6 +36,11 @@
36
36
  "require": "./dist/hooks/index.cjs",
37
37
  "types": "./dist/hooks/index.d.ts"
38
38
  },
39
+ "./Input": {
40
+ "import": "./dist/Input/index.js",
41
+ "require": "./dist/Input/index.cjs",
42
+ "types": "./dist/Input/index.d.ts"
43
+ },
39
44
  "./partials/FieldCopyTestIdButton": {
40
45
  "import": "./dist/partials/FieldCopyTestIdButton/index.js",
41
46
  "require": "./dist/partials/FieldCopyTestIdButton/index.cjs",
@@ -82,27 +87,28 @@
82
87
  "@nextui-org/select": "2.1.27",
83
88
  "@nextui-org/switch": "2.0.28",
84
89
  "@nextui-org/system": "2.1.2",
85
- "@react-aria/visually-hidden": "3.8.10",
86
- "react-icons": "5.1.0",
90
+ "@nextui-org/theme": "2.2.3",
91
+ "@react-aria/visually-hidden": "3.8.12",
92
+ "react-icons": "5.2.1",
87
93
  "classnames": "2.5.1",
88
- "react-hook-form": "7.51.3",
94
+ "react-hook-form": "7.51.4",
89
95
  "react-select": "5.8.0",
90
96
  "slug": "9.0.0",
91
97
  "tailwind-variants": "0.2.1",
92
- "@fuf-stack/pixels": "0.5.7",
93
- "@fuf-stack/veto": "0.2.1"
98
+ "@fuf-stack/pixels": "0.5.9",
99
+ "@fuf-stack/veto": "0.3.2"
94
100
  },
95
101
  "devDependencies": {
96
102
  "@types/debug": "4.1.12",
97
- "@types/react": "18.3.1",
103
+ "@types/react": "18.3.2",
98
104
  "@types/react-dom": "18.3.0",
99
105
  "@types/slug": "5.0.8",
100
106
  "react": "18.3.1",
101
107
  "react-dom": "18.3.1",
102
108
  "@repo/storybook-config": "0.0.1",
103
109
  "@repo/tsup-config": "0.0.1",
104
- "@repo/vite-config": "0.0.1",
105
- "@repo/tailwind-config": "0.0.1"
110
+ "@repo/tailwind-config": "0.0.1",
111
+ "@repo/vite-config": "0.0.1"
106
112
  },
107
113
  "scripts": {
108
114
  "build": "tsup --config node_modules/@repo/tsup-config/config.ts",