@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"),l=require("../FormControl/FormLabel.js"),i=require("../FormControl/FormError.js");const t=e.forwardRef(({children:t,label:s,helperText:n,errorMessage:a,optionalIndicator:d,htmlFor:c,visiblyHiddenLabel:x,...m},F)=>r.jsxs(e.FormControl,{ref:F,...m,children:[s&&(x?r.jsx(e.VisuallyHidden,{children:r.jsx(l.FormLabel,{htmlFor:c,optionalIndicator:d,children:s})}):r.jsx(l.FormLabel,{htmlFor:c,optionalIndicator:d,children:s})),n&&r.jsx(e.FormHelperText,{children:n}),t,a&&r.jsxs(e.FormErrorMessage,{role:"alert",children:[r.jsx(i.default,{}),r.jsx(o.Text,{children:a})]})]}));exports.FormField=t;
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","FormHelperText","FormErrorMessage","role","FormErrorIcon","Text"],"mappings":"qOAqCA,MAAMA,EAAYC,EAAAA,WAChB,EAEIC,WACAC,QACAC,aACAC,eACAC,oBACAC,UACAC,wBACGC,GAELC,IAEAC,EAAAA,KAACC,eAAYF,IAAKA,KAASD,YACxBN,IACEK,EACCK,EAAAA,IAACC,iBAAc,CAAAZ,SACbW,EAAAA,IAACE,aAAUR,QAASA,EAASD,kBAAmBA,EAAiBJ,SAC9DC,MAILU,EAAAA,IAACE,EAAAA,UAAS,CAACR,QAASA,EAASD,kBAAmBA,EAAiBJ,SAC9DC,KAGNC,GAAcS,EAAAA,IAACG,iBAAc,CAAAd,SAAEE,IAC/BF,EACAG,GACCM,EAAAA,KAACM,EAAAA,iBAAgB,CAACC,KAAK,QAAOhB,SAAA,CAC5BW,EAAAA,IAACM,cACDN,EAAAA,IAACO,EAAAA,KAAI,CAAAlB,SAAEG"}
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 i,VisuallyHidden as t,FormHelperText as l,FormErrorMessage as n}from"@chakra-ui/react";import"../FormControl/index.js";import{Text as m}from"../Text/index.js";import{FormLabel as a}from"../FormControl/FormLabel.js";import c from"../FormControl/FormError.js";const d=e(({children:e,label:d,helperText:h,errorMessage:p,optionalIndicator:s,htmlFor:F,visiblyHiddenLabel:f,...x},j)=>r(i,{ref:j,...x,children:[d&&(f?o(t,{children:o(a,{htmlFor:F,optionalIndicator:s,children:d})}):o(a,{htmlFor:F,optionalIndicator:s,children:d})),h&&o(l,{children:h}),e,p&&r(n,{role:"alert",children:[o(c,{}),o(m,{children:p})]})]}));export{d as FormField};
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","FormHelperText","FormErrorMessage","role","FormErrorIcon","Text"],"mappings":"0VAqCA,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,GAAUR,QAASA,EAASD,kBAAmBA,EAAiBJ,SAC9DC,MAILU,EAACE,EAAS,CAACR,QAASA,EAASD,kBAAmBA,EAAiBJ,SAC9DC,KAGNC,GAAcS,EAACG,EAAc,CAAAd,SAAEE,IAC/BF,EACAG,GACCM,EAACM,EAAgB,CAACC,KAAK,QAAOhB,SAAA,CAC5BW,EAACM,MACDN,EAACO,EAAI,CAAAlB,SAAEG"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cruk/chakra-components",
3
- "version": "4.0.0-dev.29",
3
+ "version": "4.0.0-dev.30",
4
4
  "description": "Chakra UI v2 based components for CRUK applications",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,