@cdx-ui/primitives 0.0.1-alpha.34 → 0.0.1-alpha.36
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/lib/commonjs/{form-control/createFormError.js → field/createFieldError.js} +4 -4
- package/lib/commonjs/field/createFieldError.js.map +1 -0
- package/lib/commonjs/{form-control/createFormErrorIcon.js → field/createFieldErrorIcon.js} +4 -4
- package/lib/commonjs/field/createFieldErrorIcon.js.map +1 -0
- package/lib/commonjs/{form-control/createFormErrorText.js → field/createFieldErrorText.js} +4 -4
- package/lib/commonjs/field/createFieldErrorText.js.map +1 -0
- package/lib/commonjs/{form-control/createFormHelper.js → field/createFieldHelper.js} +4 -4
- package/lib/commonjs/field/createFieldHelper.js.map +1 -0
- package/lib/commonjs/{form-control/createFormHelperText.js → field/createFieldHelperText.js} +4 -4
- package/lib/commonjs/field/createFieldHelperText.js.map +1 -0
- package/lib/commonjs/{form-control/createFormLabel.js → field/createFieldLabel.js} +4 -6
- package/lib/commonjs/field/createFieldLabel.js.map +1 -0
- package/lib/commonjs/{form-control/createFormField.js → field/createFieldRoot.js} +4 -4
- package/lib/commonjs/field/createFieldRoot.js.map +1 -0
- package/lib/commonjs/field/index.js +46 -0
- package/lib/commonjs/field/index.js.map +1 -0
- package/lib/commonjs/{form-control → field}/types.js.map +1 -1
- package/lib/commonjs/form/createFormRoot.js.map +1 -0
- package/lib/commonjs/form/index.js +15 -0
- package/lib/commonjs/form/index.js.map +1 -0
- package/lib/commonjs/form/types.js +6 -0
- package/lib/{module/form-control → commonjs/form}/types.js.map +1 -1
- package/lib/commonjs/index.js +28 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/progress/context.js +11 -0
- package/lib/commonjs/progress/context.js.map +1 -0
- package/lib/commonjs/progress/createProgressIndicator.js +42 -0
- package/lib/commonjs/progress/createProgressIndicator.js.map +1 -0
- package/lib/commonjs/progress/createProgressRoot.js +96 -0
- package/lib/commonjs/progress/createProgressRoot.js.map +1 -0
- package/lib/commonjs/progress/index.js +25 -0
- package/lib/commonjs/progress/index.js.map +1 -0
- package/lib/commonjs/progress/types.js +6 -0
- package/lib/commonjs/progress/types.js.map +1 -0
- package/lib/module/{form-control/createFormError.js → field/createFieldError.js} +2 -2
- package/lib/module/field/createFieldError.js.map +1 -0
- package/lib/module/{form-control/createFormErrorIcon.js → field/createFieldErrorIcon.js} +2 -2
- package/lib/module/field/createFieldErrorIcon.js.map +1 -0
- package/lib/module/{form-control/createFormErrorText.js → field/createFieldErrorText.js} +2 -2
- package/lib/module/field/createFieldErrorText.js.map +1 -0
- package/lib/module/{form-control/createFormHelper.js → field/createFieldHelper.js} +2 -2
- package/lib/module/field/createFieldHelper.js.map +1 -0
- package/lib/module/{form-control/createFormHelperText.js → field/createFieldHelperText.js} +2 -2
- package/lib/module/field/createFieldHelperText.js.map +1 -0
- package/lib/module/{form-control/createFormLabel.js → field/createFieldLabel.js} +2 -4
- package/lib/module/field/createFieldLabel.js.map +1 -0
- package/lib/module/{form-control/createFormField.js → field/createFieldRoot.js} +2 -2
- package/lib/module/field/createFieldRoot.js.map +1 -0
- package/lib/module/field/index.js +42 -0
- package/lib/module/field/index.js.map +1 -0
- package/lib/module/field/types.js.map +1 -0
- package/lib/module/form/createFormRoot.js.map +1 -0
- package/lib/module/form/index.js +11 -0
- package/lib/module/form/index.js.map +1 -0
- package/lib/module/form/types.js +4 -0
- package/lib/module/form/types.js.map +1 -0
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/progress/context.js +5 -0
- package/lib/module/progress/context.js.map +1 -0
- package/lib/module/progress/createProgressIndicator.js +37 -0
- package/lib/module/progress/createProgressIndicator.js.map +1 -0
- package/lib/module/progress/createProgressRoot.js +91 -0
- package/lib/module/progress/createProgressRoot.js.map +1 -0
- package/lib/module/progress/index.js +15 -0
- package/lib/module/progress/index.js.map +1 -0
- package/lib/module/progress/types.js +4 -0
- package/lib/module/progress/types.js.map +1 -0
- package/lib/typescript/field/createFieldError.d.ts +5 -0
- package/lib/typescript/field/createFieldError.d.ts.map +1 -0
- package/lib/typescript/field/createFieldErrorIcon.d.ts +5 -0
- package/lib/typescript/field/createFieldErrorIcon.d.ts.map +1 -0
- package/lib/typescript/field/createFieldErrorText.d.ts +5 -0
- package/lib/typescript/field/createFieldErrorText.d.ts.map +1 -0
- package/lib/typescript/field/createFieldHelper.d.ts +5 -0
- package/lib/typescript/field/createFieldHelper.d.ts.map +1 -0
- package/lib/typescript/field/createFieldHelperText.d.ts +5 -0
- package/lib/typescript/field/createFieldHelperText.d.ts.map +1 -0
- package/lib/typescript/field/createFieldLabel.d.ts +6 -0
- package/lib/typescript/field/createFieldLabel.d.ts.map +1 -0
- package/lib/typescript/field/createFieldRoot.d.ts +6 -0
- package/lib/typescript/field/createFieldRoot.d.ts.map +1 -0
- package/lib/typescript/field/index.d.ts +13 -0
- package/lib/typescript/field/index.d.ts.map +1 -0
- package/lib/typescript/{form-control → field}/types.d.ts +14 -24
- package/lib/typescript/field/types.d.ts.map +1 -0
- package/lib/typescript/form/createFormRoot.d.ts +4 -0
- package/lib/typescript/form/createFormRoot.d.ts.map +1 -0
- package/lib/typescript/form/index.d.ts +6 -0
- package/lib/typescript/form/index.d.ts.map +1 -0
- package/lib/typescript/form/types.d.ts +14 -0
- package/lib/typescript/form/types.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +3 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/progress/context.d.ts +13 -0
- package/lib/typescript/progress/context.d.ts.map +1 -0
- package/lib/typescript/progress/createProgressIndicator.d.ts +3 -0
- package/lib/typescript/progress/createProgressIndicator.d.ts.map +1 -0
- package/lib/typescript/progress/createProgressRoot.d.ts +4 -0
- package/lib/typescript/progress/createProgressRoot.d.ts.map +1 -0
- package/lib/typescript/progress/index.d.ts +10 -0
- package/lib/typescript/progress/index.d.ts.map +1 -0
- package/lib/typescript/progress/types.d.ts +25 -0
- package/lib/typescript/progress/types.d.ts.map +1 -0
- package/package.json +2 -2
- package/src/{form-control/createFormError.tsx → field/createFieldError.tsx} +1 -1
- package/src/{form-control/createFormErrorIcon.tsx → field/createFieldErrorIcon.tsx} +1 -1
- package/src/{form-control/createFormErrorText.tsx → field/createFieldErrorText.tsx} +1 -1
- package/src/{form-control/createFormHelper.tsx → field/createFieldHelper.tsx} +1 -1
- package/src/{form-control/createFormHelperText.tsx → field/createFieldHelperText.tsx} +1 -1
- package/src/{form-control/createFormLabel.tsx → field/createFieldLabel.tsx} +3 -3
- package/src/{form-control/createFormField.tsx → field/createFieldRoot.tsx} +3 -3
- package/src/field/index.tsx +68 -0
- package/src/{form-control → field}/types.tsx +28 -42
- package/src/{form-control → form}/createFormRoot.tsx +3 -3
- package/src/form/index.tsx +12 -0
- package/src/form/types.tsx +16 -0
- package/src/index.ts +3 -1
- package/src/progress/context.tsx +13 -0
- package/src/progress/createProgressIndicator.tsx +35 -0
- package/src/progress/createProgressRoot.tsx +109 -0
- package/src/progress/index.ts +28 -0
- package/src/progress/types.ts +37 -0
- package/lib/commonjs/form-control/createFormError.js.map +0 -1
- package/lib/commonjs/form-control/createFormErrorIcon.js.map +0 -1
- package/lib/commonjs/form-control/createFormErrorText.js.map +0 -1
- package/lib/commonjs/form-control/createFormField.js.map +0 -1
- package/lib/commonjs/form-control/createFormHelper.js.map +0 -1
- package/lib/commonjs/form-control/createFormHelperText.js.map +0 -1
- package/lib/commonjs/form-control/createFormLabel.js.map +0 -1
- package/lib/commonjs/form-control/createFormRoot.js.map +0 -1
- package/lib/commonjs/form-control/index.js +0 -53
- package/lib/commonjs/form-control/index.js.map +0 -1
- package/lib/module/form-control/createFormError.js.map +0 -1
- package/lib/module/form-control/createFormErrorIcon.js.map +0 -1
- package/lib/module/form-control/createFormErrorText.js.map +0 -1
- package/lib/module/form-control/createFormField.js.map +0 -1
- package/lib/module/form-control/createFormHelper.js.map +0 -1
- package/lib/module/form-control/createFormHelperText.js.map +0 -1
- package/lib/module/form-control/createFormLabel.js.map +0 -1
- package/lib/module/form-control/createFormRoot.js.map +0 -1
- package/lib/module/form-control/index.js +0 -49
- package/lib/module/form-control/index.js.map +0 -1
- package/lib/typescript/form-control/createFormError.d.ts +0 -5
- package/lib/typescript/form-control/createFormError.d.ts.map +0 -1
- package/lib/typescript/form-control/createFormErrorIcon.d.ts +0 -5
- package/lib/typescript/form-control/createFormErrorIcon.d.ts.map +0 -1
- package/lib/typescript/form-control/createFormErrorText.d.ts +0 -5
- package/lib/typescript/form-control/createFormErrorText.d.ts.map +0 -1
- package/lib/typescript/form-control/createFormField.d.ts +0 -6
- package/lib/typescript/form-control/createFormField.d.ts.map +0 -1
- package/lib/typescript/form-control/createFormHelper.d.ts +0 -5
- package/lib/typescript/form-control/createFormHelper.d.ts.map +0 -1
- package/lib/typescript/form-control/createFormHelperText.d.ts +0 -5
- package/lib/typescript/form-control/createFormHelperText.d.ts.map +0 -1
- package/lib/typescript/form-control/createFormLabel.d.ts +0 -8
- package/lib/typescript/form-control/createFormLabel.d.ts.map +0 -1
- package/lib/typescript/form-control/createFormRoot.d.ts +0 -6
- package/lib/typescript/form-control/createFormRoot.d.ts.map +0 -1
- package/lib/typescript/form-control/index.d.ts +0 -14
- package/lib/typescript/form-control/index.d.ts.map +0 -1
- package/lib/typescript/form-control/types.d.ts.map +0 -1
- package/src/form-control/index.tsx +0 -71
- /package/lib/commonjs/{form-control → field}/types.js +0 -0
- /package/lib/commonjs/{form-control → form}/createFormRoot.js +0 -0
- /package/lib/module/{form-control → field}/types.js +0 -0
- /package/lib/module/{form-control → form}/createFormRoot.js +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
export const
|
|
5
|
+
export const createFieldErrorIcon = BaseFormErrorIcon => /*#__PURE__*/forwardRef(({
|
|
6
6
|
children,
|
|
7
7
|
...props
|
|
8
8
|
}, ref) => /*#__PURE__*/_jsx(BaseFormErrorIcon, {
|
|
@@ -10,4 +10,4 @@ export const createFormErrorIcon = BaseFormErrorIcon => /*#__PURE__*/forwardRef(
|
|
|
10
10
|
...props,
|
|
11
11
|
children: children
|
|
12
12
|
}));
|
|
13
|
-
//# sourceMappingURL=
|
|
13
|
+
//# sourceMappingURL=createFieldErrorIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","jsx","_jsx","createFieldErrorIcon","BaseFormErrorIcon","children","props","ref"],"sourceRoot":"../../../src","sources":["field/createFieldErrorIcon.tsx"],"mappings":";;AACA,SAASA,UAAU,QAAQ,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEnC,OAAO,MAAMC,oBAAoB,GAAQC,iBAAyC,iBAChFJ,UAAU,CAA0C,CAAC;EAAEK,QAAQ;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,kBAC9EL,IAAA,CAACE,iBAAiB;EAACG,GAAG,EAAEA,GAAI;EAAA,GAAMD,KAAK;EAAAD,QAAA,EACpCA;AAAQ,CACQ,CACpB,CAAC","ignoreList":[]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
export const
|
|
5
|
+
export const createFieldErrorText = BaseFormErrorText => /*#__PURE__*/forwardRef(({
|
|
6
6
|
children,
|
|
7
7
|
...props
|
|
8
8
|
}, ref) => /*#__PURE__*/_jsx(BaseFormErrorText, {
|
|
@@ -10,4 +10,4 @@ export const createFormErrorText = BaseFormErrorText => /*#__PURE__*/forwardRef(
|
|
|
10
10
|
...props,
|
|
11
11
|
children: children
|
|
12
12
|
}));
|
|
13
|
-
//# sourceMappingURL=
|
|
13
|
+
//# sourceMappingURL=createFieldErrorText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","jsx","_jsx","createFieldErrorText","BaseFormErrorText","children","props","ref"],"sourceRoot":"../../../src","sources":["field/createFieldErrorText.tsx"],"mappings":";;AACA,SAASA,UAAU,QAAQ,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEnC,OAAO,MAAMC,oBAAoB,GAAQC,iBAAyC,iBAChFJ,UAAU,CAA0C,CAAC;EAAEK,QAAQ;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,kBAC9EL,IAAA,CAACE,iBAAiB;EAACG,GAAG,EAAEA,GAAI;EAAA,GAAMD,KAAK;EAAAD,QAAA,EACpCA;AAAQ,CACQ,CACpB,CAAC","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import React, { forwardRef } from 'react';
|
|
4
4
|
import { useFormControlContext } from '@cdx-ui/utils';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
export const
|
|
6
|
+
export const createFieldHelper = BaseFormHelper => /*#__PURE__*/forwardRef(({
|
|
7
7
|
children,
|
|
8
8
|
...props
|
|
9
9
|
}, ref) => {
|
|
@@ -32,4 +32,4 @@ export const createFormHelper = BaseFormHelper => /*#__PURE__*/forwardRef(({
|
|
|
32
32
|
children: children
|
|
33
33
|
});
|
|
34
34
|
});
|
|
35
|
-
//# sourceMappingURL=
|
|
35
|
+
//# sourceMappingURL=createFieldHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useFormControlContext","jsx","_jsx","createFieldHelper","BaseFormHelper","children","props","ref","helpTextId","setHasHelpText","isInvalid","useEffect","undefined","id"],"sourceRoot":"../../../src","sources":["field/createFieldHelper.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,qBAAqB,QAAQ,eAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEtD,OAAO,MAAMC,iBAAiB,GAAQC,cAAsC,iBAC1EL,UAAU,CAA0C,CAAC;EAAEM,QAAQ;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EACnF,MAAM;IAAEC,UAAU;IAAEC,cAAc;IAAEC;EAAU,CAAC,GAAGV,qBAAqB,CAAC,CAAC;EAEzEF,KAAK,CAACa,SAAS,CAAC,MAAM;IACpB,IAAID,SAAS,EAAE;MACbD,cAAc,GAAG,KAAK,CAAC;MACvB,OAAOG,SAAS;IAClB;IACAH,cAAc,GAAG,IAAI,CAAC;IACtB,OAAO,MAAM;MACXA,cAAc,GAAG,KAAK,CAAC;IACzB,CAAC;EACH,CAAC,EAAE,CAACA,cAAc,EAAEC,SAAS,CAAC,CAAC;EAE/B,IAAIA,SAAS,EAAE;IACb,OAAO,IAAI;EACb;EAEA,oBACER,IAAA,CAACE,cAAc;IAACG,GAAG,EAAEA,GAAI;IAAA,GAAMD,KAAK;IAAQO,EAAE,EAAEL,UAAW;IAAAH,QAAA,EACxDA;EAAQ,CACK,CAAC;AAErB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
export const
|
|
5
|
+
export const createFieldHelperText = BaseFormHelperText => /*#__PURE__*/forwardRef(({
|
|
6
6
|
children,
|
|
7
7
|
...props
|
|
8
8
|
}, ref) => /*#__PURE__*/_jsx(BaseFormHelperText, {
|
|
@@ -10,4 +10,4 @@ export const createFormHelperText = BaseFormHelperText => /*#__PURE__*/forwardRe
|
|
|
10
10
|
...props,
|
|
11
11
|
children: children
|
|
12
12
|
}));
|
|
13
|
-
//# sourceMappingURL=
|
|
13
|
+
//# sourceMappingURL=createFieldHelperText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","jsx","_jsx","createFieldHelperText","BaseFormHelperText","children","props","ref"],"sourceRoot":"../../../src","sources":["field/createFieldHelperText.tsx"],"mappings":";;AACA,SAASA,UAAU,QAAQ,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEnC,OAAO,MAAMC,qBAAqB,GAAQC,kBAA0C,iBAClFJ,UAAU,CAA0C,CAAC;EAAEK,QAAQ;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,kBAC9EL,IAAA,CAACE,kBAAkB;EAACG,GAAG,EAAEA,GAAI;EAAA,GAAMD,KAAK;EAAAD,QAAA,EACrCA;AAAQ,CACS,CACrB,CAAC","ignoreList":[]}
|
|
@@ -4,9 +4,7 @@ import { forwardRef } from 'react';
|
|
|
4
4
|
import { useFormControlContext } from '@cdx-ui/utils';
|
|
5
5
|
import { dataAttributes } from '../utils/dataAttributes';
|
|
6
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
export const
|
|
8
|
-
Label: BaseFormLabel
|
|
9
|
-
}) => /*#__PURE__*/forwardRef(({
|
|
7
|
+
export const createFieldLabel = BaseFormLabel => /*#__PURE__*/forwardRef(({
|
|
10
8
|
children,
|
|
11
9
|
htmlFor: htmlForProp,
|
|
12
10
|
requiredIndicator,
|
|
@@ -30,4 +28,4 @@ export const createFormLabel = ({
|
|
|
30
28
|
children: [children, field.isRequired ? requiredIndicator : null]
|
|
31
29
|
});
|
|
32
30
|
});
|
|
33
|
-
//# sourceMappingURL=
|
|
31
|
+
//# sourceMappingURL=createFieldLabel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","useFormControlContext","dataAttributes","jsxs","_jsxs","createFieldLabel","BaseFormLabel","children","htmlFor","htmlForProp","requiredIndicator","props","ref","field","fieldId","id","labelId","undefined","invalid","isInvalid","required","isRequired"],"sourceRoot":"../../../src","sources":["field/createFieldLabel.tsx"],"mappings":";;AACA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,qBAAqB,QAAQ,eAAe;AACrD,SAASC,cAAc,QAAQ,yBAAyB;AAAC,SAAAC,IAAA,IAAAC,KAAA;AAGzD,OAAO,MAAMC,gBAAgB,GAAQC,aAAqC,iBACxEN,UAAU,CACR,CAAC;EAAEO,QAAQ;EAAEC,OAAO,EAAEC,WAAW;EAAEC,iBAAiB;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EACxE,MAAMC,KAAK,GAAGZ,qBAAqB,CAAC,CAAC;EACrC,MAAMa,OAAO,GAAGD,KAAK,CAACE,EAAE;EACxB,MAAMC,OAAO,GAAGH,KAAK,CAACG,OAAO;;EAE7B;EACA,MAAMR,OAAO,GAAGC,WAAW,KAAKK,OAAO,GAAG,GAAGA,OAAO,QAAQ,GAAGG,SAAS,CAAC;EAEzE,oBACEb,KAAA,CAACE,aAAa;IACZM,GAAG,EAAEA,GAAI;IAAA,GACJD,KAAK;IACVI,EAAE,EAAEC,OAAQ;IACZR,OAAO,EAAEA,OAAQ;IAAA,GACbN,cAAc,CAAC;MAAEgB,OAAO,EAAEL,KAAK,CAACM,SAAS;MAAEC,QAAQ,EAAEP,KAAK,CAACQ;IAAW,CAAC,CAAC;IAAAd,QAAA,GAE3EA,QAAQ,EACRM,KAAK,CAACQ,UAAU,GAAGX,iBAAiB,GAAG,IAAI;EAAA,CAC/B,CAAC;AAEpB,CACF,CAAC","ignoreList":[]}
|
|
@@ -4,7 +4,7 @@ import React, { forwardRef } from 'react';
|
|
|
4
4
|
import { useFormControlRoot, FormControlContext } from '@cdx-ui/utils';
|
|
5
5
|
import { dataAttributes } from '../utils/dataAttributes';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
export const
|
|
7
|
+
export const createFieldRoot = BaseFormField => /*#__PURE__*/forwardRef(({
|
|
8
8
|
children,
|
|
9
9
|
...props
|
|
10
10
|
}, ref) => {
|
|
@@ -26,4 +26,4 @@ export const createFormField = BaseFormField => /*#__PURE__*/forwardRef(({
|
|
|
26
26
|
})
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
|
-
//# sourceMappingURL=
|
|
29
|
+
//# sourceMappingURL=createFieldRoot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useFormControlRoot","FormControlContext","dataAttributes","jsx","_jsx","createFieldRoot","BaseFormField","children","props","ref","htmlProps","context","Provider","value","disabled","isDisabled","invalid","isInvalid","required","isRequired"],"sourceRoot":"../../../src","sources":["field/createFieldRoot.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,kBAAkB,EAAEC,kBAAkB,QAAQ,eAAe;AACtE,SAASC,cAAc,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGzD,OAAO,MAAMC,eAAe,GAAQC,aAAqC,iBACvEP,UAAU,CACR,CAAC;EAAEQ,QAAQ;EAAE,GAAGC;AAAwD,CAAC,EAAEC,GAAa,KAAK;EAC3F,MAAM;IAAEC,SAAS;IAAE,GAAGC;EAAQ,CAAC,GAAGX,kBAAkB,CAACQ,KAAK,CAAC;EAE3D,oBACEJ,IAAA,CAACH,kBAAkB,CAACW,QAAQ;IAACC,KAAK,EAAEF,OAAQ;IAAAJ,QAAA,eAC1CH,IAAA,CAACE,aAAa;MACZG,GAAG,EAAEA,GAAI;MAAA,GACJC,SAAS;MAAA,GACVR,cAAc,CAAC;QACjBY,QAAQ,EAAEH,OAAO,CAACI,UAAU;QAC5BC,OAAO,EAAEL,OAAO,CAACM,SAAS;QAC1BC,QAAQ,EAAEP,OAAO,CAACQ;MACpB,CAAC,CAAC;MAAAZ,QAAA,EAEDA;IAAQ,CACI;EAAC,CACW,CAAC;AAElC,CACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createFieldError } from './createFieldError';
|
|
4
|
+
import { createFieldErrorIcon } from './createFieldErrorIcon';
|
|
5
|
+
import { createFieldErrorText } from './createFieldErrorText';
|
|
6
|
+
import { createFieldRoot } from './createFieldRoot';
|
|
7
|
+
import { createFieldHelper } from './createFieldHelper';
|
|
8
|
+
import { createFieldHelperText } from './createFieldHelperText';
|
|
9
|
+
import { createFieldLabel } from './createFieldLabel';
|
|
10
|
+
export function createField({
|
|
11
|
+
Root,
|
|
12
|
+
Label,
|
|
13
|
+
Helper,
|
|
14
|
+
HelperText,
|
|
15
|
+
Error,
|
|
16
|
+
ErrorText,
|
|
17
|
+
ErrorIcon
|
|
18
|
+
}) {
|
|
19
|
+
const FieldRoot = createFieldRoot(Root);
|
|
20
|
+
FieldRoot.displayName = 'FieldPrimitive';
|
|
21
|
+
const FieldLabel = createFieldLabel(Label);
|
|
22
|
+
FieldLabel.displayName = 'FieldPrimitive.Label';
|
|
23
|
+
const FieldHelper = createFieldHelper(Helper);
|
|
24
|
+
FieldHelper.displayName = 'FieldPrimitive.Helper';
|
|
25
|
+
const FieldHelperText = createFieldHelperText(HelperText);
|
|
26
|
+
FieldHelperText.displayName = 'FieldPrimitive.HelperText';
|
|
27
|
+
const FieldError = createFieldError(Error);
|
|
28
|
+
FieldError.displayName = 'FieldPrimitive.Error';
|
|
29
|
+
const FieldErrorText = createFieldErrorText(ErrorText);
|
|
30
|
+
FieldErrorText.displayName = 'FieldPrimitive.ErrorText';
|
|
31
|
+
const FieldErrorIcon = createFieldErrorIcon(ErrorIcon);
|
|
32
|
+
FieldErrorIcon.displayName = 'FieldPrimitive.ErrorIcon';
|
|
33
|
+
return Object.assign(FieldRoot, {
|
|
34
|
+
Label: FieldLabel,
|
|
35
|
+
Helper: FieldHelper,
|
|
36
|
+
HelperText: FieldHelperText,
|
|
37
|
+
Error: FieldError,
|
|
38
|
+
ErrorText: FieldErrorText,
|
|
39
|
+
ErrorIcon: FieldErrorIcon
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createFieldError","createFieldErrorIcon","createFieldErrorText","createFieldRoot","createFieldHelper","createFieldHelperText","createFieldLabel","createField","Root","Label","Helper","HelperText","Error","ErrorText","ErrorIcon","FieldRoot","displayName","FieldLabel","FieldHelper","FieldHelperText","FieldError","FieldErrorText","FieldErrorIcon","Object","assign"],"sourceRoot":"../../../src","sources":["field/index.tsx"],"mappings":";;AACA,SAASA,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,eAAe,QAAQ,mBAAmB;AACnD,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,SAASC,gBAAgB,QAAQ,oBAAoB;AAcrD,OAAO,SAASC,WAAWA,CAA+D;EACxFC,IAAI;EACJC,KAAK;EACLC,MAAM;EACNC,UAAU;EACVC,KAAK;EACLC,SAAS;EACTC;AASF,CAAC,EAAE;EACD,MAAMC,SAAS,GAAGZ,eAAe,CAACK,IAAI,CAAC;EACvCO,SAAS,CAACC,WAAW,GAAG,gBAAgB;EAExC,MAAMC,UAAU,GAAGX,gBAAgB,CAACG,KAAK,CAAC;EAC1CQ,UAAU,CAACD,WAAW,GAAG,sBAAsB;EAE/C,MAAME,WAAW,GAAGd,iBAAiB,CAACM,MAAM,CAAC;EAC7CQ,WAAW,CAACF,WAAW,GAAG,uBAAuB;EAEjD,MAAMG,eAAe,GAAGd,qBAAqB,CAACM,UAAU,CAAC;EACzDQ,eAAe,CAACH,WAAW,GAAG,2BAA2B;EAEzD,MAAMI,UAAU,GAAGpB,gBAAgB,CAACY,KAAK,CAAC;EAC1CQ,UAAU,CAACJ,WAAW,GAAG,sBAAsB;EAE/C,MAAMK,cAAc,GAAGnB,oBAAoB,CAACW,SAAS,CAAC;EACtDQ,cAAc,CAACL,WAAW,GAAG,0BAA0B;EAEvD,MAAMM,cAAc,GAAGrB,oBAAoB,CAACa,SAAS,CAAC;EACtDQ,cAAc,CAACN,WAAW,GAAG,0BAA0B;EAEvD,OAAOO,MAAM,CAACC,MAAM,CAACT,SAAS,EAAE;IAC9BN,KAAK,EAAEQ,UAAU;IACjBP,MAAM,EAAEQ,WAAW;IACnBP,UAAU,EAAEQ,eAAe;IAC3BP,KAAK,EAAEQ,UAAU;IACjBP,SAAS,EAAEQ,cAAc;IACzBP,SAAS,EAAEQ;EACb,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["field/types.tsx"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","jsx","_jsx","createFormRoot","BaseFormRoot","children","props","ref"],"sourceRoot":"../../../src","sources":["form/createFormRoot.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAG1C;;AAEA,OAAO,MAAMC,cAAc,GAAQC,YAAoC,iBACrEJ,UAAU,CACR,CAAC;EAAEK,QAAQ;EAAE,GAAGC;AAAuD,CAAC,EAAEC,GAAa,kBACrFL,IAAA,CAACE,YAAY;EAACG,GAAG,EAAEA,GAAI;EAAA,GAAMD,KAAK;EAAAD,QAAA,EAC/BA;AAAQ,CACG,CAElB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createFormRoot","createForm","Root","FormRoot","displayName"],"sourceRoot":"../../../src","sources":["form/index.tsx"],"mappings":";;AACA,SAASA,cAAc,QAAQ,kBAAkB;AAIjD,OAAO,SAASC,UAAUA,CAAO;EAAEC;AAA0C,CAAC,EAAE;EAC9E,MAAMC,QAAQ,GAAGH,cAAc,CAACE,IAAI,CAAC;EAErCC,QAAQ,CAACC,WAAW,GAAG,eAAe;EAEtC,OAAOD,QAAQ;AACjB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["form/types.tsx"],"mappings":"","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -4,11 +4,13 @@ export * from './avatar';
|
|
|
4
4
|
export * from './button';
|
|
5
5
|
export * from './checkbox';
|
|
6
6
|
export * from './dialog';
|
|
7
|
-
export * from './
|
|
7
|
+
export * from './field';
|
|
8
|
+
export * from './form';
|
|
8
9
|
export * from './input';
|
|
9
10
|
export * from './link';
|
|
10
11
|
export { OverlayInsetsProvider } from './overlay';
|
|
11
12
|
export * from './select';
|
|
12
13
|
export * from './switch';
|
|
14
|
+
export * from './progress';
|
|
13
15
|
export { dataAttributes } from './utils/dataAttributes';
|
|
14
16
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["OverlayInsetsProvider","dataAttributes"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,cAAc,UAAU;AACxB,cAAc,UAAU;AACxB,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,
|
|
1
|
+
{"version":3,"names":["OverlayInsetsProvider","dataAttributes"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,cAAc,UAAU;AACxB,cAAc,UAAU;AACxB,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,SAA0BA,qBAAqB,QAAQ,WAAW;AAClE,cAAc,UAAU;AACxB,cAAc,UAAU;AACxB,cAAc,YAAY;AAE1B,SAASC,cAAc,QAAQ,wBAAwB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createContext","ProgressProvider","useProgressContext"],"sourceRoot":"../../../src","sources":["progress/context.tsx"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,eAAe;AAW7C,OAAO,MAAM,CAACC,gBAAgB,EAAEC,kBAAkB,CAAC,GACjDF,aAAa,CAAuB,iBAAiB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef, useMemo } from 'react';
|
|
4
|
+
import { dataAttributes } from '../utils/dataAttributes';
|
|
5
|
+
import { useProgressContext } from './context';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
export const createProgressIndicator = BaseIndicator => /*#__PURE__*/forwardRef((props, ref) => {
|
|
8
|
+
const {
|
|
9
|
+
style,
|
|
10
|
+
...rest
|
|
11
|
+
} = props;
|
|
12
|
+
const {
|
|
13
|
+
percent,
|
|
14
|
+
state,
|
|
15
|
+
max,
|
|
16
|
+
value
|
|
17
|
+
} = useProgressContext();
|
|
18
|
+
const filledStyle = useMemo(() => {
|
|
19
|
+
const pct = `${String(percent)}%`;
|
|
20
|
+
return {
|
|
21
|
+
width: pct,
|
|
22
|
+
height: '100%'
|
|
23
|
+
};
|
|
24
|
+
}, [percent]);
|
|
25
|
+
const dataAttrs = dataAttributes({
|
|
26
|
+
state,
|
|
27
|
+
value: value === null ? undefined : String(value),
|
|
28
|
+
max: String(max)
|
|
29
|
+
});
|
|
30
|
+
return /*#__PURE__*/_jsx(BaseIndicator, {
|
|
31
|
+
ref: ref,
|
|
32
|
+
...rest,
|
|
33
|
+
...dataAttrs,
|
|
34
|
+
style: [filledStyle, style]
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=createProgressIndicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","useMemo","dataAttributes","useProgressContext","jsx","_jsx","createProgressIndicator","BaseIndicator","props","ref","style","rest","percent","state","max","value","filledStyle","pct","String","width","height","dataAttrs","undefined"],"sourceRoot":"../../../src","sources":["progress/createProgressIndicator.tsx"],"mappings":";;AACA,SAASA,UAAU,EAAEC,OAAO,QAA8B,OAAO;AAEjE,SAASC,cAAc,QAAQ,yBAAyB;AACxD,SAASC,kBAAkB,QAAQ,WAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAI/C,OAAO,MAAMC,uBAAuB,GAAoBC,aAAqC,iBAC3FP,UAAU,CAAwB,CAACQ,KAAK,EAAEC,GAAG,KAAK;EAChD,MAAM;IAAEC,KAAK;IAAE,GAAGC;EAAK,CAAC,GAAGH,KAAgD;EAC3E,MAAM;IAAEI,OAAO;IAAEC,KAAK;IAAEC,GAAG;IAAEC;EAAM,CAAC,GAAGZ,kBAAkB,CAAC,CAAC;EAE3D,MAAMa,WAAW,GAAGf,OAAO,CAAC,MAAiB;IAC3C,MAAMgB,GAAG,GAAG,GAAGC,MAAM,CAACN,OAAO,CAAC,GAAoB;IAClD,OAAO;MAAEO,KAAK,EAAEF,GAAG;MAAEG,MAAM,EAAE;IAAO,CAAC;EACvC,CAAC,EAAE,CAACR,OAAO,CAAC,CAAC;EAEb,MAAMS,SAAS,GAAGnB,cAAc,CAAC;IAC/BW,KAAK;IACLE,KAAK,EAAEA,KAAK,KAAK,IAAI,GAAGO,SAAS,GAAGJ,MAAM,CAACH,KAAK,CAAC;IACjDD,GAAG,EAAEI,MAAM,CAACJ,GAAG;EACjB,CAAC,CAAC;EAEF,oBACET,IAAA,CAACE,aAAa;IACZE,GAAG,EAAEA,GAAoB;IAEvB,GAAGE,IAAI;IACP,GAAGU,SAAS;IACZX,KAAK,EAAE,CAACM,WAAW,EAAEN,KAAK;EAAC,CAE9B,CAAC;AAEN,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { forwardRef, useMemo } from 'react';
|
|
4
|
+
import { dataAttributes } from '../utils/dataAttributes';
|
|
5
|
+
import { ProgressProvider } from './context';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
function clamp(n, min, max) {
|
|
8
|
+
return Math.min(max, Math.max(min, n));
|
|
9
|
+
}
|
|
10
|
+
function resolveState(value, max, clamped) {
|
|
11
|
+
if (value === null) {
|
|
12
|
+
return 'indeterminate';
|
|
13
|
+
}
|
|
14
|
+
if (max <= 0) {
|
|
15
|
+
return 'complete';
|
|
16
|
+
}
|
|
17
|
+
if (clamped !== null && clamped >= max) {
|
|
18
|
+
return 'complete';
|
|
19
|
+
}
|
|
20
|
+
return 'loading';
|
|
21
|
+
}
|
|
22
|
+
function defaultGetValueLabel(value, max) {
|
|
23
|
+
if (max <= 0) {
|
|
24
|
+
return '0%';
|
|
25
|
+
}
|
|
26
|
+
return `${String(Math.round(value / max * 100))}%`;
|
|
27
|
+
}
|
|
28
|
+
export const createProgressRoot = BaseRoot => /*#__PURE__*/forwardRef((props, ref) => {
|
|
29
|
+
const {
|
|
30
|
+
value: valueProp = 0,
|
|
31
|
+
max: maxProp = 100,
|
|
32
|
+
getValueLabel = defaultGetValueLabel,
|
|
33
|
+
children,
|
|
34
|
+
accessibilityRole = 'progressbar',
|
|
35
|
+
accessibilityValue: accessibilityValueProp,
|
|
36
|
+
role = 'progressbar',
|
|
37
|
+
...restProps
|
|
38
|
+
} = props;
|
|
39
|
+
const max = maxProp > 0 ? maxProp : 0;
|
|
40
|
+
const isIndeterminate = valueProp === null;
|
|
41
|
+
const clampedValue = valueProp === null ? null : clamp(Number.isFinite(valueProp) ? valueProp : 0, 0, max);
|
|
42
|
+
const percent = useMemo(() => {
|
|
43
|
+
if (clampedValue === null || max <= 0) {
|
|
44
|
+
return 0;
|
|
45
|
+
}
|
|
46
|
+
return clampedValue / max * 100;
|
|
47
|
+
}, [clampedValue, max]);
|
|
48
|
+
const state = useMemo(() => resolveState(valueProp, max, clampedValue), [valueProp, max, clampedValue]);
|
|
49
|
+
const contextValue = useMemo(() => ({
|
|
50
|
+
value: clampedValue,
|
|
51
|
+
max,
|
|
52
|
+
percent,
|
|
53
|
+
state
|
|
54
|
+
}), [clampedValue, max, percent, state]);
|
|
55
|
+
const dataAttrs = dataAttributes({
|
|
56
|
+
state,
|
|
57
|
+
value: clampedValue === null ? undefined : String(clampedValue),
|
|
58
|
+
max: String(max)
|
|
59
|
+
});
|
|
60
|
+
const accessibilityValue = useMemo(() => {
|
|
61
|
+
if (accessibilityValueProp !== undefined) {
|
|
62
|
+
return accessibilityValueProp;
|
|
63
|
+
}
|
|
64
|
+
if (isIndeterminate || clampedValue === null) {
|
|
65
|
+
return {
|
|
66
|
+
min: 0,
|
|
67
|
+
max,
|
|
68
|
+
text: 'Indeterminate'
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
min: 0,
|
|
73
|
+
max,
|
|
74
|
+
now: clampedValue,
|
|
75
|
+
text: getValueLabel(clampedValue, max)
|
|
76
|
+
};
|
|
77
|
+
}, [accessibilityValueProp, isIndeterminate, clampedValue, max, getValueLabel]);
|
|
78
|
+
return /*#__PURE__*/_jsx(ProgressProvider, {
|
|
79
|
+
value: contextValue,
|
|
80
|
+
children: /*#__PURE__*/_jsx(BaseRoot, {
|
|
81
|
+
ref: ref,
|
|
82
|
+
...restProps,
|
|
83
|
+
role: role,
|
|
84
|
+
accessibilityRole: accessibilityRole,
|
|
85
|
+
accessibilityValue: accessibilityValue,
|
|
86
|
+
...dataAttrs,
|
|
87
|
+
children: children
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
//# sourceMappingURL=createProgressRoot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["forwardRef","useMemo","dataAttributes","ProgressProvider","jsx","_jsx","clamp","n","min","max","Math","resolveState","value","clamped","defaultGetValueLabel","String","round","createProgressRoot","BaseRoot","props","ref","valueProp","maxProp","getValueLabel","children","accessibilityRole","accessibilityValue","accessibilityValueProp","role","restProps","isIndeterminate","clampedValue","Number","isFinite","percent","state","contextValue","dataAttrs","undefined","text","now"],"sourceRoot":"../../../src","sources":["progress/createProgressRoot.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createProgressIndicator } from './createProgressIndicator';
|
|
4
|
+
import { createProgressRoot } from './createProgressRoot';
|
|
5
|
+
export { useProgressContext } from './context';
|
|
6
|
+
export function createProgress(components) {
|
|
7
|
+
const Progress = createProgressRoot(components.Root);
|
|
8
|
+
const Indicator = createProgressIndicator(components.Indicator);
|
|
9
|
+
Progress.displayName = 'ProgressPrimitive';
|
|
10
|
+
Indicator.displayName = 'ProgressPrimitive.Indicator';
|
|
11
|
+
return Object.assign(Progress, {
|
|
12
|
+
Indicator
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createProgressIndicator","createProgressRoot","useProgressContext","createProgress","components","Progress","Root","Indicator","displayName","Object","assign"],"sourceRoot":"../../../src","sources":["progress/index.ts"],"mappings":";;AACA,SAASA,uBAAuB,QAAQ,2BAA2B;AACnE,SAASC,kBAAkB,QAAQ,sBAAsB;AAKzD,SAASC,kBAAkB,QAAQ,WAAW;AAE9C,OAAO,SAASC,cAAcA,CAK5BC,UAGD,EAAE;EACD,MAAMC,QAAQ,GAAGJ,kBAAkB,CAAqBG,UAAU,CAACE,IAAI,CAAC;EACxE,MAAMC,SAAS,GAAGP,uBAAuB,CAA+BI,UAAU,CAACG,SAAS,CAAC;EAE7FF,QAAQ,CAACG,WAAW,GAAG,mBAAmB;EAC1CD,SAAS,CAACC,WAAW,GAAG,6BAA6B;EAErD,OAAOC,MAAM,CAACC,MAAM,CAACL,QAAQ,EAAE;IAC7BE;EACF,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["progress/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFieldError.d.ts","sourceRoot":"","sources":["../../../src/field/createFieldError.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAAG,eAAe,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;eACvC,KAAK,CAAC,SAAS;iCA2B9C,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export declare const createFieldErrorIcon: <T>(BaseFormErrorIcon: React.ComponentType<T>) => React.ForwardRefExoticComponent<{
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
} & React.RefAttributes<unknown>>;
|
|
5
|
+
//# sourceMappingURL=createFieldErrorIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFieldErrorIcon.d.ts","sourceRoot":"","sources":["../../../src/field/createFieldErrorIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,eAAO,MAAM,oBAAoB,GAAI,CAAC,EAAG,mBAAmB,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;eAC/C,KAAK,CAAC,SAAS;iCAI9C,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export declare const createFieldErrorText: <T>(BaseFormErrorText: React.ComponentType<T>) => React.ForwardRefExoticComponent<{
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
} & React.RefAttributes<unknown>>;
|
|
5
|
+
//# sourceMappingURL=createFieldErrorText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFieldErrorText.d.ts","sourceRoot":"","sources":["../../../src/field/createFieldErrorText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,eAAO,MAAM,oBAAoB,GAAI,CAAC,EAAG,mBAAmB,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;eAC/C,KAAK,CAAC,SAAS;iCAI9C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFieldHelper.d.ts","sourceRoot":"","sources":["../../../src/field/createFieldHelper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,eAAO,MAAM,iBAAiB,GAAI,CAAC,EAAG,gBAAgB,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;eACzC,KAAK,CAAC,SAAS;iCAuB9C,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export declare const createFieldHelperText: <T>(BaseFormHelperText: React.ComponentType<T>) => React.ForwardRefExoticComponent<{
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
} & React.RefAttributes<unknown>>;
|
|
5
|
+
//# sourceMappingURL=createFieldHelperText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFieldHelperText.d.ts","sourceRoot":"","sources":["../../../src/field/createFieldHelperText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,eAAO,MAAM,qBAAqB,GAAI,CAAC,EAAG,oBAAoB,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;eACjD,KAAK,CAAC,SAAS;iCAI9C,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { IFieldLabelProps } from './types';
|
|
3
|
+
export declare const createFieldLabel: <T>(BaseFormLabel: React.ComponentType<T>) => React.ForwardRefExoticComponent<IFieldLabelProps & {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
} & React.RefAttributes<unknown>>;
|
|
6
|
+
//# sourceMappingURL=createFieldLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFieldLabel.d.ts","sourceRoot":"","sources":["../../../src/field/createFieldLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAAG,eAAe,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;eACpB,KAAK,CAAC,SAAS;iCAsBlE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IFieldRootProps } from './types';
|
|
3
|
+
export declare const createFieldRoot: <T>(BaseFormField: React.ComponentType<T>) => React.ForwardRefExoticComponent<IFieldRootProps & {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
} & React.RefAttributes<unknown>>;
|
|
6
|
+
//# sourceMappingURL=createFieldRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFieldRoot.d.ts","sourceRoot":"","sources":["../../../src/field/createFieldRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,eAAO,MAAM,eAAe,GAAI,CAAC,EAAG,eAAe,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;eAEb,KAAK,CAAC,SAAS;iCAmBxE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { IFieldComponentType } from './types';
|
|
3
|
+
export type { IFieldRootProps, IFieldLabelProps, IFieldHelperProps, IFieldHelperTextProps, IFieldErrorProps, IFieldErrorTextProps, IFieldErrorIconProps, IFieldComponentType, } from './types';
|
|
4
|
+
export declare function createField<Root, Label, Helper, HelperText, Error, ErrorText, ErrorIcon>({ Root, Label, Helper, HelperText, Error, ErrorText, ErrorIcon, }: {
|
|
5
|
+
Root: React.ComponentType<Root>;
|
|
6
|
+
Label: React.ComponentType<Label>;
|
|
7
|
+
Helper: React.ComponentType<Helper>;
|
|
8
|
+
HelperText: React.ComponentType<HelperText>;
|
|
9
|
+
Error: React.ComponentType<Error>;
|
|
10
|
+
ErrorText: React.ComponentType<ErrorText>;
|
|
11
|
+
ErrorIcon: React.ComponentType<ErrorIcon>;
|
|
12
|
+
}): IFieldComponentType<Root, Label, Helper, HelperText, Error, ErrorText, ErrorIcon>;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/field/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAEjB,wBAAgB,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,EACxF,IAAI,EACJ,KAAK,EACL,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,SAAS,GACV,EAAE;IACD,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAChC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAClC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IACpC,UAAU,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IAC5C,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAClC,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IAC1C,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;CAC3C,GA6BO,mBAAmB,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,CAAC,CACxF"}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { TextProps, ViewProps } from 'react-native';
|
|
3
|
-
/**
|
|
4
|
-
* Props for the Form container (`<form>` on web, `<View>` on RN).
|
|
5
|
-
* Does NOT provide field-level context — use `Form.Field` for that.
|
|
6
|
-
*
|
|
7
|
-
* Web-only submit props (`onSubmit`, `action`, `method`) belong in the
|
|
8
|
-
* platform-specific base component (`FormRoot.web.tsx`), not here.
|
|
9
|
-
*/
|
|
10
|
-
export interface IFormProps {
|
|
11
|
-
}
|
|
12
3
|
/**
|
|
13
4
|
* Props for a single form field (`Form.Field`).
|
|
14
5
|
* Provides field-level context (name, validation state, ids) to children.
|
|
@@ -19,7 +10,7 @@ export interface IFormProps {
|
|
|
19
10
|
*
|
|
20
11
|
* **Submit UX:** "focus first invalid on error" needs form-level validation state; not built in yet.
|
|
21
12
|
*/
|
|
22
|
-
export interface
|
|
13
|
+
export interface IFieldRootProps extends ViewProps {
|
|
23
14
|
/** Unique id for this field. Auto-generated if not provided. */
|
|
24
15
|
readonly id?: string;
|
|
25
16
|
/**
|
|
@@ -36,7 +27,7 @@ export interface IFormFieldProps extends ViewProps {
|
|
|
36
27
|
/** If true, the field is read-only. */
|
|
37
28
|
readonly isReadOnly?: boolean;
|
|
38
29
|
}
|
|
39
|
-
export interface
|
|
30
|
+
export interface IFieldLabelProps extends TextProps {
|
|
40
31
|
/**
|
|
41
32
|
* Associates the label with a control `id` on web (`<label htmlFor>`).
|
|
42
33
|
* If omitted, defaults to the same id `Input.Field` gets from form context: `fieldId + "-input"`.
|
|
@@ -49,24 +40,23 @@ export interface IFormLabelProps extends TextProps {
|
|
|
49
40
|
*/
|
|
50
41
|
readonly requiredIndicator?: React.ReactNode;
|
|
51
42
|
}
|
|
52
|
-
export interface
|
|
43
|
+
export interface IFieldHelperProps extends ViewProps {
|
|
53
44
|
}
|
|
54
|
-
export interface
|
|
45
|
+
export interface IFieldHelperTextProps extends TextProps {
|
|
55
46
|
}
|
|
56
|
-
export interface
|
|
47
|
+
export interface IFieldErrorProps extends ViewProps {
|
|
57
48
|
}
|
|
58
|
-
export interface
|
|
49
|
+
export interface IFieldErrorTextProps extends TextProps {
|
|
59
50
|
}
|
|
60
|
-
export interface
|
|
51
|
+
export interface IFieldErrorIconProps extends ViewProps {
|
|
61
52
|
}
|
|
62
|
-
export type
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
ErrorIcon: React.ForwardRefExoticComponent<InnerForwardRefExoticComponent<ErrorIcon> & IFormErrorIconProps>;
|
|
53
|
+
export type IFieldComponentType<Root, Label, Helper, HelperText, Error, ErrorText, ErrorIcon> = React.ForwardRefExoticComponent<InnerForwardRefExoticComponent<Root> & IFieldRootProps> & {
|
|
54
|
+
Label: React.ForwardRefExoticComponent<InnerForwardRefExoticComponent<Label> & IFieldLabelProps>;
|
|
55
|
+
Helper: React.ForwardRefExoticComponent<InnerForwardRefExoticComponent<Helper> & IFieldHelperProps>;
|
|
56
|
+
HelperText: React.ForwardRefExoticComponent<InnerForwardRefExoticComponent<HelperText> & IFieldHelperTextProps>;
|
|
57
|
+
Error: React.ForwardRefExoticComponent<InnerForwardRefExoticComponent<Error> & IFieldErrorProps>;
|
|
58
|
+
ErrorText: React.ForwardRefExoticComponent<InnerForwardRefExoticComponent<ErrorText> & IFieldErrorTextProps>;
|
|
59
|
+
ErrorIcon: React.ForwardRefExoticComponent<InnerForwardRefExoticComponent<ErrorIcon> & IFieldErrorIconProps>;
|
|
70
60
|
};
|
|
71
61
|
type InnerForwardRefExoticComponent<T> = React.PropsWithoutRef<T> & React.RefAttributes<unknown>;
|
|
72
62
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/field/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD;;;;;;;;;GASG;AACH,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,gEAAgE;IAChE,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,0EAA0E;IAC1E,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,yEAAyE;IACzE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,sCAAsC;IACtC,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,uCAAuC;IACvC,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9C;AAED,MAAM,WAAW,iBAAkB,SAAQ,SAAS;CAAG;AAEvD,MAAM,WAAW,qBAAsB,SAAQ,SAAS;CAAG;AAE3D,MAAM,WAAW,gBAAiB,SAAQ,SAAS;CAAG;AAEtD,MAAM,WAAW,oBAAqB,SAAQ,SAAS;CAAG;AAE1D,MAAM,WAAW,oBAAqB,SAAQ,SAAS;CAAG;AAE1D,MAAM,MAAM,mBAAmB,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,IAC1F,KAAK,CAAC,yBAAyB,CAAC,8BAA8B,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,GAAG;IACxF,KAAK,EAAE,KAAK,CAAC,yBAAyB,CACpC,8BAA8B,CAAC,KAAK,CAAC,GAAG,gBAAgB,CACzD,CAAC;IACF,MAAM,EAAE,KAAK,CAAC,yBAAyB,CACrC,8BAA8B,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAC3D,CAAC;IACF,UAAU,EAAE,KAAK,CAAC,yBAAyB,CACzC,8BAA8B,CAAC,UAAU,CAAC,GAAG,qBAAqB,CACnE,CAAC;IACF,KAAK,EAAE,KAAK,CAAC,yBAAyB,CACpC,8BAA8B,CAAC,KAAK,CAAC,GAAG,gBAAgB,CACzD,CAAC;IACF,SAAS,EAAE,KAAK,CAAC,yBAAyB,CACxC,8BAA8B,CAAC,SAAS,CAAC,GAAG,oBAAoB,CACjE,CAAC;IACF,SAAS,EAAE,KAAK,CAAC,yBAAyB,CACxC,8BAA8B,CAAC,SAAS,CAAC,GAAG,oBAAoB,CACjE,CAAC;CACH,CAAC;AAEJ,KAAK,8BAA8B,CAAC,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFormRoot.d.ts","sourceRoot":"","sources":["../../../src/form/createFormRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAkB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAIlE,eAAO,MAAM,cAAc,GAAI,CAAC,EAAG,cAAc,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAG,kBAAkB,CAAC,CAAC,CAO3F,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export type { IFormRootProps, IFormComponentType } from './types';
|
|
3
|
+
export declare function createForm<Root>({ Root }: {
|
|
4
|
+
Root: React.ComponentType<Root>;
|
|
5
|
+
}): import("./types").IFormComponentType<Root>;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/form/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElE,wBAAgB,UAAU,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAA;CAAE,8CAM7E"}
|