@cruk/chakra-components 2.1.0-dev.6 → 2.1.0-dev.7
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 e=require("react/jsx-runtime"),a=require("@chakra-ui/react");require("../Radio/index.js");var n=require("../Text/index.js");const i=a.forwardRef(((i,r)=>{const t=a.useStyleConfig("RadioConsent",i),{legend:s,name:d,attributes:l,onChange:c,selectedValue:o,...u}=i;return e.jsx(a.Box,{width:"100%",ref:r,__css:t,...u,children:e.jsx(a.RadioGroup,{defaultValue:o,children:e.jsx("
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),a=require("@chakra-ui/react");require("../Radio/index.js");var n=require("../Text/index.js");const i=a.forwardRef(((i,r)=>{const t=a.useStyleConfig("RadioConsent",i),{legend:s,name:d,attributes:l,onChange:c,selectedValue:o,...u}=i;return e.jsx(a.Box,{width:"100%",ref:r,__css:t,...u,children:e.jsx(a.RadioGroup,{defaultValue:o,children:e.jsx(a.VStack,{align:"start",children:e.jsxs("fieldset",{children:[e.jsx(n.Text,{as:"legend",my:2,fontWeight:"legendFontWeight",children:s}),e.jsx(a.HStack,{spacing:"2em",children:l.map((i=>e.jsx(a.Radio,{name:d,checked:o===i.value,onChange:c,value:i.value,maxWidth:"5em",size:"lg",children:e.jsx(n.Text,{as:"span",children:i.option})},i.value)))})]})})})})}));exports.RadioConsent=i;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/RadioConsent/index.tsx"],"sourcesContent":[null],"names":["RadioConsent","forwardRef","props","ref","styles","useStyleConfig","legend","name","attributes","onChange","selectedValue","rest","_jsx","jsx","Box","width","__css","children","RadioGroup","defaultValue","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/RadioConsent/index.tsx"],"sourcesContent":[null],"names":["RadioConsent","forwardRef","props","ref","styles","useStyleConfig","legend","name","attributes","onChange","selectedValue","rest","_jsx","jsx","Box","width","__css","children","RadioGroup","defaultValue","VStack","align","_jsxs","jsxs","Text","as","my","fontWeight","HStack","spacing","map","item","Radio","checked","value","maxWidth","size","option"],"mappings":"6IA0BM,MAAAA,EAAeC,EAAUA,YAA2B,CAACC,EAAOC,KAChE,MAAMC,EAASC,EAAAA,eAAe,eAAgBH,IACxCI,OAAEA,EAAMC,KAAEA,EAAIC,WAAEA,EAAUC,SAAEA,EAAQC,cAAEA,KAAkBC,GAAST,EACvE,OACEU,EAAAC,IAACC,EAAGA,IAAA,CAACC,MAAM,OAAOZ,IAAKA,EAAKa,MAAOZ,KAAYO,EAAIM,SACjDL,EAAAA,IAACM,EAAAA,WAAW,CAAAC,aAAcT,EACxBO,SAAAL,MAACQ,EAAAA,OAAM,CAACC,MAAM,QAAOJ,SACnBK,EACEC,KAAA,WAAA,CAAAN,SAAA,CAAAL,EAAAC,IAACW,OAAI,CAACC,GAAG,SAASC,GAAI,EAAGC,WAAW,mBAAkBV,SACnDX,IAEHM,MAACgB,EAAAA,OAAM,CAACC,QAAQ,MAAKZ,SAClBT,EAAWsB,KAAKC,GACfnB,MAACoB,EAAAA,MACC,CAAAzB,KAAMA,EAEN0B,QAASvB,IAAkBqB,EAAKG,MAChCzB,SAAUA,EACVyB,MAAOH,EAAKG,MACZC,SAAS,MACTC,KAAK,KAELnB,SAAAL,MAACY,EAAAA,KAAI,CAACC,GAAG,OAAMR,SAAEc,EAAKM,UAPjBN,EAAKG,mBAclB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as n}from"react/jsx-runtime";import{forwardRef as i,useStyleConfig as t,Box as a,RadioGroup as r,VStack as l,HStack as d,Radio as o}from"@chakra-ui/react";import"../Radio/index.js";import{Text as c}from"../Text/index.js";const s=i(((i,s)=>{const h=t("RadioConsent",i),{legend:m,name:u,attributes:g,onChange:p,selectedValue:f,...x}=i;return e(a,{width:"100%",ref:s,__css:h,...x,children:e(r,{defaultValue:f,children:e("
|
|
1
|
+
import{jsx as e,jsxs as n}from"react/jsx-runtime";import{forwardRef as i,useStyleConfig as t,Box as a,RadioGroup as r,VStack as l,HStack as d,Radio as o}from"@chakra-ui/react";import"../Radio/index.js";import{Text as c}from"../Text/index.js";const s=i(((i,s)=>{const h=t("RadioConsent",i),{legend:m,name:u,attributes:g,onChange:p,selectedValue:f,...x}=i;return e(a,{width:"100%",ref:s,__css:h,...x,children:e(r,{defaultValue:f,children:e(l,{align:"start",children:n("fieldset",{children:[e(c,{as:"legend",my:2,fontWeight:"legendFontWeight",children:m}),e(d,{spacing:"2em",children:g.map((n=>e(o,{name:u,checked:f===n.value,onChange:p,value:n.value,maxWidth:"5em",size:"lg",children:e(c,{as:"span",children:n.option})},n.value)))})]})})})})}));export{s as RadioConsent};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/RadioConsent/index.tsx"],"sourcesContent":[null],"names":["RadioConsent","forwardRef","props","ref","styles","useStyleConfig","legend","name","attributes","onChange","selectedValue","rest","_jsx","Box","width","__css","children","RadioGroup","defaultValue","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/RadioConsent/index.tsx"],"sourcesContent":[null],"names":["RadioConsent","forwardRef","props","ref","styles","useStyleConfig","legend","name","attributes","onChange","selectedValue","rest","_jsx","Box","width","__css","children","RadioGroup","defaultValue","VStack","align","_jsxs","Text","as","my","fontWeight","HStack","spacing","map","item","Radio","checked","value","maxWidth","size","option"],"mappings":"kPA0BM,MAAAA,EAAeC,GAAqC,CAACC,EAAOC,KAChE,MAAMC,EAASC,EAAe,eAAgBH,IACxCI,OAAEA,EAAMC,KAAEA,EAAIC,WAAEA,EAAUC,SAAEA,EAAQC,cAAEA,KAAkBC,GAAST,EACvE,OACEU,EAACC,EAAG,CAACC,MAAM,OAAOX,IAAKA,EAAKY,MAAOX,KAAYO,EAAIK,SACjDJ,EAACK,EAAW,CAAAC,aAAcR,EACxBM,SAAAJ,EAACO,EAAM,CAACC,MAAM,QAAOJ,SACnBK,EACE,WAAA,CAAAL,SAAA,CAAAJ,EAACU,EAAI,CAACC,GAAG,SAASC,GAAI,EAAGC,WAAW,mBAAkBT,SACnDV,IAEHM,EAACc,EAAM,CAACC,QAAQ,MAAKX,SAClBR,EAAWoB,KAAKC,GACfjB,EAACkB,EACC,CAAAvB,KAAMA,EAENwB,QAASrB,IAAkBmB,EAAKG,MAChCvB,SAAUA,EACVuB,MAAOH,EAAKG,MACZC,SAAS,MACTC,KAAK,KAELlB,SAAAJ,EAACU,EAAI,CAACC,GAAG,OAAMP,SAAEa,EAAKM,UAPjBN,EAAKG,mBAclB"}
|