@cruk/chakra-components 4.0.0-dev.29 → 4.0.0-dev.30
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var r=require("react/jsx-runtime"),e=require("@chakra-ui/react");require("../FormControl/index.js");var o=require("../Text/index.js"),
|
|
1
|
+
"use strict";var r=require("react/jsx-runtime"),e=require("@chakra-ui/react");require("../FormControl/index.js");var o=require("../Text/index.js"),i=require("../FormControl/FormLabel.js"),l=require("../FormControl/FormError.js");const t=e.forwardRef(({children:t,label:n,helperText:a,errorMessage:s,optionalIndicator:d,htmlFor:m,visiblyHiddenLabel:x,...c},h)=>r.jsxs(e.FormControl,{ref:h,...c,children:[n&&(x?r.jsx(e.VisuallyHidden,{children:r.jsx(i.FormLabel,{htmlFor:m,optionalIndicator:d,children:n})}):r.jsx(i.FormLabel,{htmlFor:m,optionalIndicator:d,children:n})),a&&r.jsx(o.Text,{fontFamily:"body",fontWeight:"normal",mt:"-4px",mb:3,color:"formPrimaryLabel",lineHeight:"text.xs",fontSize:"sm",children:a}),t,s&&r.jsxs(e.FormErrorMessage,{role:"alert",children:[r.jsx(l.default,{}),r.jsx(o.Text,{children:s})]})]}));exports.FormField=t;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/FormField/index.tsx"],"sourcesContent":[null],"names":["FormField","forwardRef","children","label","helperText","errorMessage","optionalIndicator","htmlFor","visiblyHiddenLabel","rest","ref","_jsxs","FormControl","_jsx","VisuallyHidden","FormLabel","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/FormField/index.tsx"],"sourcesContent":[null],"names":["FormField","forwardRef","children","label","helperText","errorMessage","optionalIndicator","htmlFor","visiblyHiddenLabel","rest","ref","_jsxs","FormControl","_jsx","VisuallyHidden","FormLabel","Text","fontFamily","fontWeight","mt","mb","color","lineHeight","fontSize","FormErrorMessage","role","FormErrorIcon"],"mappings":"qOAoCA,MAAMA,EAAYC,EAAAA,WAChB,EAEIC,WACAC,QACAC,aACAC,eACAC,oBACAC,UACAC,wBACGC,GAELC,IAEAC,EAAAA,KAACC,eAAYF,IAAKA,KAASD,YACxBN,IACEK,EACCK,EAAAA,IAACC,EAAAA,eAAc,CAAAZ,SACbW,EAAAA,IAACE,EAAAA,UAAS,CAACR,QAASA,EAASD,kBAAmBA,WAC7CH,MAILU,EAAAA,IAACE,EAAAA,UAAS,CAACR,QAASA,EAASD,kBAAmBA,EAAiBJ,SAC9DC,KAGNC,GACCS,EAAAA,IAACG,EAAAA,KAAI,CACHC,WAAW,OACXC,WAAW,SACXC,GAAG,OACHC,GAAI,EACJC,MAAM,mBACNC,WAAW,UACXC,SAAS,KAAIrB,SAEZE,IAGJF,EACAG,GACCM,OAACa,EAAAA,kBAAiBC,KAAK,QAAOvB,SAAA,CAC5BW,EAAAA,IAACa,EAAAA,YACDb,EAAAA,IAACG,EAAAA,KAAI,CAAAd,SAAEG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as r,jsx as o}from"react/jsx-runtime";import{forwardRef as e,FormControl as
|
|
1
|
+
import{jsxs as r,jsx as o}from"react/jsx-runtime";import{forwardRef as e,FormControl as t,VisuallyHidden as i,FormErrorMessage as l}from"@chakra-ui/react";import"../FormControl/index.js";import{Text as m}from"../Text/index.js";import{FormLabel as n}from"../FormControl/FormLabel.js";import a from"../FormControl/FormError.js";const c=e(({children:e,label:c,helperText:d,errorMessage:h,optionalIndicator:p,htmlFor:s,visiblyHiddenLabel:f,...x},F)=>r(t,{ref:F,...x,children:[c&&(f?o(i,{children:o(n,{htmlFor:s,optionalIndicator:p,children:c})}):o(n,{htmlFor:s,optionalIndicator:p,children:c})),d&&o(m,{fontFamily:"body",fontWeight:"normal",mt:"-4px",mb:3,color:"formPrimaryLabel",lineHeight:"text.xs",fontSize:"sm",children:d}),e,h&&r(l,{role:"alert",children:[o(a,{}),o(m,{children:h})]})]}));export{c as FormField};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/FormField/index.tsx"],"sourcesContent":[null],"names":["FormField","forwardRef","children","label","helperText","errorMessage","optionalIndicator","htmlFor","visiblyHiddenLabel","rest","ref","_jsxs","FormControl","_jsx","VisuallyHidden","FormLabel","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/FormField/index.tsx"],"sourcesContent":[null],"names":["FormField","forwardRef","children","label","helperText","errorMessage","optionalIndicator","htmlFor","visiblyHiddenLabel","rest","ref","_jsxs","FormControl","_jsx","VisuallyHidden","FormLabel","Text","fontFamily","fontWeight","mt","mb","color","lineHeight","fontSize","FormErrorMessage","role","FormErrorIcon"],"mappings":"sUAoCA,MAAMA,EAAYC,EAChB,EAEIC,WACAC,QACAC,aACAC,eACAC,oBACAC,UACAC,wBACGC,GAELC,IAEAC,EAACC,GAAYF,IAAKA,KAASD,YACxBN,IACEK,EACCK,EAACC,EAAc,CAAAZ,SACbW,EAACE,EAAS,CAACR,QAASA,EAASD,kBAAmBA,WAC7CH,MAILU,EAACE,EAAS,CAACR,QAASA,EAASD,kBAAmBA,EAAiBJ,SAC9DC,KAGNC,GACCS,EAACG,EAAI,CACHC,WAAW,OACXC,WAAW,SACXC,GAAG,OACHC,GAAI,EACJC,MAAM,mBACNC,WAAW,UACXC,SAAS,KAAIrB,SAEZE,IAGJF,EACAG,GACCM,EAACa,GAAiBC,KAAK,QAAOvB,SAAA,CAC5BW,EAACa,MACDb,EAACG,EAAI,CAAAd,SAAEG"}
|