@cruk/chakra-components 4.0.0-dev.21 → 4.0.0-dev.23

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"),r=require("@chakra-ui/react");const s=r.forwardRef((s,a)=>e.jsx(r.Heading,{ref:a,...s,wordBreak:"break-word"})),a=r.forwardRef((r,a)=>e.jsx(s,{as:"h1",size:{base:"3xl",lg:"4xl"},ref:a,...r})),f=r.forwardRef((r,a)=>e.jsx(s,{as:"h2",size:{base:"2xl",lg:"3xl"},ref:a,...r})),x=r.forwardRef((r,a)=>e.jsx(s,{as:"h3",size:{base:"lg",lg:"xl"},ref:a,...r})),d=r.forwardRef((r,a)=>e.jsx(s,{as:"h4",size:{base:"md",lg:"lg"},ref:a,...r})),i=r.forwardRef((r,a)=>e.jsx(s,{as:"h5",size:{base:"sm",lg:"md"},ref:a,...r})),o=r.forwardRef((r,a)=>e.jsx(s,{as:"h6",size:{base:"xs",lg:"sm"},ref:a,...r}));exports.Heading=s,exports.Heading1=a,exports.Heading2=f,exports.Heading3=x,exports.Heading4=d,exports.Heading5=i,exports.Heading6=o;
1
+ "use strict";var r=require("react/jsx-runtime"),e=require("@chakra-ui/react");const s=e.forwardRef((s,a)=>r.jsx(e.Heading,{ref:a,...s,wordBreak:"break-word",sx:{hyphens:"auto",wordWrap:"break-word",overflowWrap:"break-word",...s.sx}})),a=e.forwardRef((e,a)=>r.jsx(s,{as:"h1",size:"4xl",ref:a,...e})),o=e.forwardRef((e,a)=>r.jsx(s,{as:"h2",size:"3xl",ref:a,...e})),f=e.forwardRef((e,a)=>r.jsx(s,{as:"h3",size:"xl",ref:a,...e})),d=e.forwardRef((e,a)=>r.jsx(s,{as:"h4",size:"lg",ref:a,...e})),x=e.forwardRef((e,a)=>r.jsx(s,{as:"h5",size:"md",ref:a,...e})),i=e.forwardRef((e,a)=>r.jsx(s,{as:"h6",size:"sm",ref:a,...e}));exports.Heading=s,exports.Heading1=a,exports.Heading2=o,exports.Heading3=f,exports.Heading4=d,exports.Heading5=x,exports.Heading6=i;
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/Heading/index.tsx"],"sourcesContent":[null],"names":["Heading","forwardRef","props","ref","_jsx","ChakraHeading","wordBreak","Heading1","as","size","base","lg","Heading2","Heading3","Heading4","Heading5","Heading6"],"mappings":"8EAMA,MAAMA,EAAUC,EAAAA,WAA+B,CAACC,EAAOC,IACrDC,EAAAA,IAACC,EAAAA,QAAa,CAACF,IAAKA,KAASD,EAAOI,UAAU,gBAG1CC,EAAWN,EAAAA,WAA+B,CAACC,EAAOC,IACtDC,EAAAA,IAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,MAAOC,GAAI,OAASR,IAAKA,KAASD,KAG7DU,EAAWX,EAAAA,WAA+B,CAACC,EAAOC,IACtDC,EAAAA,IAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,MAAOC,GAAI,OAASR,IAAKA,KAASD,KAG7DW,EAAWZ,EAAAA,WAA+B,CAACC,EAAOC,IACtDC,EAAAA,IAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,KAAMC,GAAI,MAAQR,IAAKA,KAASD,KAG3DY,EAAWb,EAAAA,WAA+B,CAACC,EAAOC,IACtDC,EAAAA,IAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,KAAMC,GAAI,MAAQR,IAAKA,KAASD,KAG3Da,EAAWd,EAAAA,WAA+B,CAACC,EAAOC,IACtDC,EAAAA,IAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,KAAMC,GAAI,MAAQR,IAAKA,KAASD,KAG3Dc,EAAWf,EAAAA,WAA+B,CAACC,EAAOC,IACtDC,EAAAA,IAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,KAAMC,GAAI,MAAQR,IAAKA,KAASD"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/Heading/index.tsx"],"sourcesContent":[null],"names":["Heading","forwardRef","props","ref","_jsx","ChakraHeading","wordBreak","sx","hyphens","wordWrap","overflowWrap","Heading1","as","size","Heading2","Heading3","Heading4","Heading5","Heading6"],"mappings":"8EAMA,MAAMA,EAAUC,EAAAA,WAA+B,CAACC,EAAOC,IACrDC,EAAAA,IAACC,EAAAA,QAAa,CACZF,IAAKA,KACDD,EACJI,UAAU,aACVC,GAAI,CACFC,QAAS,OACTC,SAAU,aACVC,aAAc,gBACXR,EAAMK,OAKTI,EAAWV,EAAAA,WAA+B,CAACC,EAAOC,IACtDC,EAAAA,IAACJ,EAAO,CAACY,GAAG,KAAKC,KAAK,MAAMV,IAAKA,KAASD,KAGtCY,EAAWb,EAAAA,WAA+B,CAACC,EAAOC,IACtDC,EAAAA,IAACJ,EAAO,CAACY,GAAG,KAAKC,KAAK,MAAMV,IAAKA,KAASD,KAGtCa,EAAWd,EAAAA,WAA+B,CAACC,EAAOC,IACtDC,EAAAA,IAACJ,EAAO,CAACY,GAAG,KAAKC,KAAK,KAAKV,IAAKA,KAASD,KAGrCc,EAAWf,EAAAA,WAA+B,CAACC,EAAOC,IACtDC,EAAAA,IAACJ,EAAO,CAACY,GAAG,KAAKC,KAAK,KAAKV,IAAKA,KAASD,KAGrCe,EAAWhB,EAAAA,WAA+B,CAACC,EAAOC,IACtDC,EAAAA,IAACJ,EAAO,CAACY,GAAG,KAAKC,KAAK,KAAKV,IAAKA,KAASD,KAGrCgB,EAAWjB,EAAAA,WAA+B,CAACC,EAAOC,IACtDC,EAAAA,IAACJ,EAAO,CAACY,GAAG,KAAKC,KAAK,KAAKV,IAAKA,KAASD"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=require("@chakra-ui/react").defineStyleConfig({baseStyle:{fontFamily:"heading",fontWeight:"medium",color:"headingColor",hyphens:"auto",wordWrap:"break-word",overflowWrap:"break-word"},sizes:{"4xl":{fontSize:"headings.4xl",lineHeight:"headings.4xl"},"3xl":{fontSize:"headings.3xl",lineHeight:"headings.3xl"},"2xl":{fontSize:"headings.2xl",lineHeight:"headings.2xl"},xl:{fontSize:"headings.xl",lineHeight:"headings.xl"},lg:{fontSize:"headings.lg",lineHeight:"headings.lg"},md:{fontSize:"headings.md",lineHeight:"headings.md"},sm:{fontSize:"headings.sm",lineHeight:"headings.sm"},xs:{fontSize:"headings.xs",lineHeight:"headings.xs"}}});exports.default=e,exports.headingTheme=e;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=require("@chakra-ui/react").defineStyleConfig({baseStyle:{fontFamily:"heading",fontWeight:"medium",color:"headingColor",hyphens:"auto",wordWrap:"break-word",overflowWrap:"break-word"},sizes:{"4xl":{fontSize:"clamp(2rem, 4vw + 1rem, 3rem)",lineHeight:"clamp(2.5rem, 5vw + 1.25rem, 3.75rem)"},"3xl":{fontSize:"clamp(1.75rem, 3vw + 0.875rem, 2.25rem)",lineHeight:"clamp(2.25rem, 4vw + 1rem, 3rem)"},"2xl":{fontSize:"headings.2xl",lineHeight:"headings.2xl"},xl:{fontSize:"headings.xl",lineHeight:"headings.xl"},lg:{fontSize:"headings.lg",lineHeight:"headings.lg"},md:{fontSize:"headings.md",lineHeight:"headings.md"},sm:{fontSize:"headings.sm",lineHeight:"headings.sm"},xs:{fontSize:"headings.xs",lineHeight:"headings.xs"}}});exports.default=e,exports.headingTheme=e;
2
2
  //# sourceMappingURL=heading.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"heading.js","sources":["../../../../../src/theme/cruk/components/heading.ts"],"sourcesContent":[null],"names":["headingTheme","defineStyleConfig","baseStyle","fontFamily","fontWeight","color","hyphens","wordWrap","overflowWrap","sizes","fontSize","lineHeight","xl","lg","md","sm","xs"],"mappings":"oEAEO,MAAMA,8BAAeC,kBAAkB,CAC5CC,UAAW,CACTC,WAAY,UACZC,WAAY,SACZC,MAAO,eACPC,QAAS,OACTC,SAAU,aACVC,aAAc,cAEhBC,MAAO,CACL,MAAO,CACLC,SAAU,eACVC,WAAY,gBAEd,MAAO,CACLD,SAAU,eACVC,WAAY,gBAEd,MAAO,CACLD,SAAU,eACVC,WAAY,gBAEdC,GAAI,CACFF,SAAU,cACVC,WAAY,eAEdE,GAAI,CACFH,SAAU,cACVC,WAAY,eAEdG,GAAI,CACFJ,SAAU,cACVC,WAAY,eAEdI,GAAI,CACFL,SAAU,cACVC,WAAY,eAEdK,GAAI,CACFN,SAAU,cACVC,WAAY"}
1
+ {"version":3,"file":"heading.js","sources":["../../../../../src/theme/cruk/components/heading.ts"],"sourcesContent":[null],"names":["headingTheme","defineStyleConfig","baseStyle","fontFamily","fontWeight","color","hyphens","wordWrap","overflowWrap","sizes","fontSize","lineHeight","xl","lg","md","sm","xs"],"mappings":"oEAEO,MAAMA,8BAAeC,kBAAkB,CAC5CC,UAAW,CACTC,WAAY,UACZC,WAAY,SACZC,MAAO,eACPC,QAAS,OACTC,SAAU,aACVC,aAAc,cAEhBC,MAAO,CACL,MAAO,CACLC,SAAU,gCACVC,WAAY,yCAEd,MAAO,CACLD,SAAU,0CACVC,WAAY,oCAEd,MAAO,CACLD,SAAU,eACVC,WAAY,gBAEdC,GAAI,CACFF,SAAU,cACVC,WAAY,eAEdE,GAAI,CACFH,SAAU,cACVC,WAAY,eAEdG,GAAI,CACFJ,SAAU,cACVC,WAAY,eAEdI,GAAI,CACFL,SAAU,cACVC,WAAY,eAEdK,GAAI,CACFN,SAAU,cACVC,WAAY"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=require("@chakra-ui/react").defineStyleConfig({baseStyle:{fontFamily:"body",fontWeight:"black",color:"headingColor",hyphens:"auto",wordWrap:"break-word",overflowWrap:"break-word"},sizes:{"4xl":{fontSize:"headings.4xl",lineHeight:"headings.4xl",fontFamily:"heading",fontWeight:"semibold"},"3xl":{fontSize:"headings.3xl",lineHeight:"headings.3xl",fontFamily:"heading",fontWeight:"semibold"},"2xl":{fontSize:"headings.2xl",lineHeight:"headings.2xl",fontFamily:"heading",fontWeight:"semibold"},xl:{fontSize:"headings.xl",lineHeight:"headings.xl",fontFamily:"heading",fontWeight:"semibold"},lg:{fontSize:"headings.lg",lineHeight:"headings.lg",fontFamily:"heading",fontWeight:"semibold"},md:{fontSize:"headings.md",lineHeight:"headings.md",fontWeight:"bold"},sm:{fontSize:"headings.sm",lineHeight:"headings.sm",fontWeight:"bold"},xs:{fontSize:"headings.xs",lineHeight:"headings.xs",fontWeight:"bold"}}});exports.default=e,exports.headingTheme=e;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=require("@chakra-ui/react").defineStyleConfig({baseStyle:{fontFamily:"body",fontWeight:"black",color:"headingColor",hyphens:"auto",wordWrap:"break-word",overflowWrap:"break-word"},sizes:{"4xl":{fontSize:"clamp(2rem, 4vw + 1rem, 3rem)",lineHeight:"clamp(2.5rem, 5vw + 1.25rem, 3.75rem)",fontFamily:"heading",fontWeight:"semibold"},"3xl":{fontSize:"clamp(1.75rem, 3vw + 0.875rem, 2.25rem)",lineHeight:"clamp(2.25rem, 4vw + 1rem, 3rem)",fontFamily:"heading",fontWeight:"semibold"},"2xl":{fontSize:"headings.2xl",lineHeight:"headings.2xl",fontFamily:"heading",fontWeight:"semibold"},xl:{fontSize:"headings.xl",lineHeight:"headings.xl",fontFamily:"heading",fontWeight:"semibold"},lg:{fontSize:"headings.lg",lineHeight:"headings.lg",fontFamily:"heading",fontWeight:"semibold"},md:{fontSize:"headings.md",lineHeight:"headings.md",fontWeight:"bold"},sm:{fontSize:"headings.sm",lineHeight:"headings.sm",fontWeight:"bold"},xs:{fontSize:"headings.xs",lineHeight:"headings.xs",fontWeight:"bold"}}});exports.default=e,exports.headingTheme=e;
2
2
  //# sourceMappingURL=heading.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"heading.js","sources":["../../../../../src/theme/r4l/components/heading.ts"],"sourcesContent":[null],"names":["headingTheme","defineStyleConfig","baseStyle","fontFamily","fontWeight","color","hyphens","wordWrap","overflowWrap","sizes","fontSize","lineHeight","xl","lg","md","sm","xs"],"mappings":"oEAEO,MAAMA,8BAAeC,kBAAkB,CAC5CC,UAAW,CACTC,WAAY,OACZC,WAAY,QACZC,MAAO,eACPC,QAAS,OACTC,SAAU,aACVC,aAAc,cAUhBC,MAAO,CACL,MAAO,CACLC,SAAU,eACVC,WAAY,eACZR,WAAY,UACZC,WAAY,YAEd,MAAO,CACLM,SAAU,eACVC,WAAY,eACZR,WAAY,UACZC,WAAY,YAEd,MAAO,CACLM,SAAU,eACVC,WAAY,eACZR,WAAY,UACZC,WAAY,YAEdQ,GAAI,CACFF,SAAU,cACVC,WAAY,cACZR,WAAY,UACZC,WAAY,YAEdS,GAAI,CACFH,SAAU,cACVC,WAAY,cACZR,WAAY,UACZC,WAAY,YAEdU,GAAI,CACFJ,SAAU,cACVC,WAAY,cACZP,WAAY,QAEdW,GAAI,CACFL,SAAU,cACVC,WAAY,cACZP,WAAY,QAEdY,GAAI,CACFN,SAAU,cACVC,WAAY,cACZP,WAAY"}
1
+ {"version":3,"file":"heading.js","sources":["../../../../../src/theme/r4l/components/heading.ts"],"sourcesContent":[null],"names":["headingTheme","defineStyleConfig","baseStyle","fontFamily","fontWeight","color","hyphens","wordWrap","overflowWrap","sizes","fontSize","lineHeight","xl","lg","md","sm","xs"],"mappings":"oEAEO,MAAMA,8BAAeC,kBAAkB,CAC5CC,UAAW,CACTC,WAAY,OACZC,WAAY,QACZC,MAAO,eACPC,QAAS,OACTC,SAAU,aACVC,aAAc,cAUhBC,MAAO,CACL,MAAO,CACLC,SAAU,gCACVC,WAAY,wCACZR,WAAY,UACZC,WAAY,YAEd,MAAO,CACLM,SAAU,0CACVC,WAAY,mCACZR,WAAY,UACZC,WAAY,YAEd,MAAO,CACLM,SAAU,eACVC,WAAY,eACZR,WAAY,UACZC,WAAY,YAEdQ,GAAI,CACFF,SAAU,cACVC,WAAY,cACZR,WAAY,UACZC,WAAY,YAEdS,GAAI,CACFH,SAAU,cACVC,WAAY,cACZR,WAAY,UACZC,WAAY,YAEdU,GAAI,CACFJ,SAAU,cACVC,WAAY,cACZP,WAAY,QAEdW,GAAI,CACFL,SAAU,cACVC,WAAY,cACZP,WAAY,QAEdY,GAAI,CACFN,SAAU,cACVC,WAAY,cACZP,WAAY"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e={display:"inline",backgroundColor:"tertiary",textTransform:"uppercase",color:"white",pt:3,px:3,boxDecorationBreak:"clone",width:"fit-content"},i=require("@chakra-ui/react").defineStyleConfig({baseStyle:{fontFamily:"body",fontWeight:"bold",color:"black",hyphens:"auto",wordWrap:"break-word",overflowWrap:"break-word"},sizes:{"4xl":{fontSize:"headings.4xl",lineHeight:"headings.4xl",...e},"3xl":{fontSize:"headings.3xl",lineHeight:"headings.3xl",...e},"2xl":{fontSize:"headings.2xl",lineHeight:"headings.2xl",...e},xl:{fontSize:"headings.xl",lineHeight:"headings.xl"},lg:{fontSize:"headings.lg",lineHeight:"headings.lg"},md:{fontFamily:"heading",fontWeight:"semibold",fontSize:"headings.md",lineHeight:"headings.md"},sm:{fontFamily:"heading",fontWeight:"semibold",fontSize:"headings.sm",lineHeight:"headings.sm"},xs:{fontFamily:"heading",fontWeight:"semibold",fontSize:"headings.xs",lineHeight:"headings.xs"}}});exports.default=i,exports.headingTheme=i;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e={display:"inline",backgroundColor:"tertiary",textTransform:"uppercase",color:"white",pt:3,px:3,boxDecorationBreak:"clone",width:"fit-content"},i=require("@chakra-ui/react").defineStyleConfig({baseStyle:{fontFamily:"body",fontWeight:"bold",color:"black",hyphens:"auto",wordWrap:"break-word",overflowWrap:"break-word"},sizes:{"4xl":{fontSize:"clamp(32px, 4vw + 16px, 48px)",lineHeight:"clamp(40px, 5vw + 20px, 60px)",...e},"3xl":{fontSize:"clamp(28px, 3vw + 14px, 36px)",lineHeight:"clamp(36px, 4vw + 16px, 48px)",...e},"2xl":{fontSize:"headings.2xl",lineHeight:"headings.2xl",...e},xl:{fontSize:"headings.xl",lineHeight:"headings.xl"},lg:{fontSize:"headings.lg",lineHeight:"headings.lg"},md:{fontFamily:"heading",fontWeight:"semibold",fontSize:"headings.md",lineHeight:"headings.md"},sm:{fontFamily:"heading",fontWeight:"semibold",fontSize:"headings.sm",lineHeight:"headings.sm"},xs:{fontFamily:"heading",fontWeight:"semibold",fontSize:"headings.xs",lineHeight:"headings.xs"}}});exports.default=i,exports.headingTheme=i;
2
2
  //# sourceMappingURL=heading.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"heading.js","sources":["../../../../../src/theme/su2c/components/heading.ts"],"sourcesContent":[null],"names":["headingLargeTheme","display","backgroundColor","textTransform","color","pt","px","boxDecorationBreak","width","headingTheme","defineStyleConfig","baseStyle","fontFamily","fontWeight","hyphens","wordWrap","overflowWrap","sizes","fontSize","lineHeight","xl","lg","md","sm","xs"],"mappings":"oEAEA,MAAMA,EAAoB,CACxBC,QAAS,SACTC,gBAAiB,WACjBC,cAAe,YACfC,MAAO,QACPC,GAAI,EACJC,GAAI,EACJC,mBAAoB,QACpBC,MAAO,eAGIC,8BAAeC,kBAAkB,CAC5CC,UAAW,CACTC,WAAY,OACZC,WAAY,OACZT,MAAO,QACPU,QAAS,OACTC,SAAU,aACVC,aAAc,cAEhBC,MAAO,CACL,MAAO,CACLC,SAAU,eACVC,WAAY,kBACTnB,GAEL,MAAO,CACLkB,SAAU,eACVC,WAAY,kBACTnB,GAEL,MAAO,CACLkB,SAAU,eACVC,WAAY,kBACTnB,GAELoB,GAAI,CACFF,SAAU,cACVC,WAAY,eAEdE,GAAI,CACFH,SAAU,cACVC,WAAY,eAEdG,GAAI,CACFV,WAAY,UACZC,WAAY,WACZK,SAAU,cACVC,WAAY,eAEdI,GAAI,CACFX,WAAY,UACZC,WAAY,WACZK,SAAU,cACVC,WAAY,eAEdK,GAAI,CACFZ,WAAY,UACZC,WAAY,WACZK,SAAU,cACVC,WAAY"}
1
+ {"version":3,"file":"heading.js","sources":["../../../../../src/theme/su2c/components/heading.ts"],"sourcesContent":[null],"names":["headingLargeTheme","display","backgroundColor","textTransform","color","pt","px","boxDecorationBreak","width","headingTheme","defineStyleConfig","baseStyle","fontFamily","fontWeight","hyphens","wordWrap","overflowWrap","sizes","fontSize","lineHeight","xl","lg","md","sm","xs"],"mappings":"oEAEA,MAAMA,EAAoB,CACxBC,QAAS,SACTC,gBAAiB,WACjBC,cAAe,YACfC,MAAO,QACPC,GAAI,EACJC,GAAI,EACJC,mBAAoB,QACpBC,MAAO,eAGIC,8BAAeC,kBAAkB,CAC5CC,UAAW,CACTC,WAAY,OACZC,WAAY,OACZT,MAAO,QACPU,QAAS,OACTC,SAAU,aACVC,aAAc,cAEhBC,MAAO,CACL,MAAO,CACLC,SAAU,gCACVC,WAAY,mCACTnB,GAEL,MAAO,CACLkB,SAAU,gCACVC,WAAY,mCACTnB,GAEL,MAAO,CACLkB,SAAU,eACVC,WAAY,kBACTnB,GAELoB,GAAI,CACFF,SAAU,cACVC,WAAY,eAEdE,GAAI,CACFH,SAAU,cACVC,WAAY,eAEdG,GAAI,CACFV,WAAY,UACZC,WAAY,WACZK,SAAU,cACVC,WAAY,eAEdI,GAAI,CACFX,WAAY,UACZC,WAAY,WACZK,SAAU,cACVC,WAAY,eAEdK,GAAI,CACFZ,WAAY,UACZC,WAAY,WACZK,SAAU,cACVC,WAAY"}
@@ -1,2 +1,2 @@
1
- import{jsx as e}from"react/jsx-runtime";import{forwardRef as s,Heading as a}from"@chakra-ui/react";const r=s((s,r)=>e(a,{ref:r,...s,wordBreak:"break-word"})),l=s((s,a)=>e(r,{as:"h1",size:{base:"3xl",lg:"4xl"},ref:a,...s})),i=s((s,a)=>e(r,{as:"h2",size:{base:"2xl",lg:"3xl"},ref:a,...s})),f=s((s,a)=>e(r,{as:"h3",size:{base:"lg",lg:"xl"},ref:a,...s})),g=s((s,a)=>e(r,{as:"h4",size:{base:"md",lg:"lg"},ref:a,...s})),m=s((s,a)=>e(r,{as:"h5",size:{base:"sm",lg:"md"},ref:a,...s})),o=s((s,a)=>e(r,{as:"h6",size:{base:"xs",lg:"sm"},ref:a,...s}));export{r as Heading,l as Heading1,i as Heading2,f as Heading3,g as Heading4,m as Heading5,o as Heading6};
1
+ import{jsx as r}from"react/jsx-runtime";import{forwardRef as e,Heading as a}from"@chakra-ui/react";const s=e((e,s)=>r(a,{ref:s,...e,wordBreak:"break-word",sx:{hyphens:"auto",wordWrap:"break-word",overflowWrap:"break-word",...e.sx}})),o=e((e,a)=>r(s,{as:"h1",size:"4xl",ref:a,...e})),i=e((e,a)=>r(s,{as:"h2",size:"3xl",ref:a,...e})),f=e((e,a)=>r(s,{as:"h3",size:"xl",ref:a,...e})),h=e((e,a)=>r(s,{as:"h4",size:"lg",ref:a,...e})),t=e((e,a)=>r(s,{as:"h5",size:"md",ref:a,...e})),d=e((e,a)=>r(s,{as:"h6",size:"sm",ref:a,...e}));export{s as Heading,o as Heading1,i as Heading2,f as Heading3,h as Heading4,t as Heading5,d as Heading6};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/Heading/index.tsx"],"sourcesContent":[null],"names":["Heading","forwardRef","props","ref","_jsx","ChakraHeading","wordBreak","Heading1","as","size","base","lg","Heading2","Heading3","Heading4","Heading5","Heading6"],"mappings":"mGAMA,MAAMA,EAAUC,EAA+B,CAACC,EAAOC,IACrDC,EAACC,EAAa,CAACF,IAAKA,KAASD,EAAOI,UAAU,gBAG1CC,EAAWN,EAA+B,CAACC,EAAOC,IACtDC,EAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,MAAOC,GAAI,OAASR,IAAKA,KAASD,KAG7DU,EAAWX,EAA+B,CAACC,EAAOC,IACtDC,EAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,MAAOC,GAAI,OAASR,IAAKA,KAASD,KAG7DW,EAAWZ,EAA+B,CAACC,EAAOC,IACtDC,EAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,KAAMC,GAAI,MAAQR,IAAKA,KAASD,KAG3DY,EAAWb,EAA+B,CAACC,EAAOC,IACtDC,EAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,KAAMC,GAAI,MAAQR,IAAKA,KAASD,KAG3Da,EAAWd,EAA+B,CAACC,EAAOC,IACtDC,EAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,KAAMC,GAAI,MAAQR,IAAKA,KAASD,KAG3Dc,EAAWf,EAA+B,CAACC,EAAOC,IACtDC,EAACJ,EAAO,CAACQ,GAAG,KAAKC,KAAM,CAAEC,KAAM,KAAMC,GAAI,MAAQR,IAAKA,KAASD"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/Heading/index.tsx"],"sourcesContent":[null],"names":["Heading","forwardRef","props","ref","_jsx","ChakraHeading","wordBreak","sx","hyphens","wordWrap","overflowWrap","Heading1","as","size","Heading2","Heading3","Heading4","Heading5","Heading6"],"mappings":"mGAMA,MAAMA,EAAUC,EAA+B,CAACC,EAAOC,IACrDC,EAACC,EAAa,CACZF,IAAKA,KACDD,EACJI,UAAU,aACVC,GAAI,CACFC,QAAS,OACTC,SAAU,aACVC,aAAc,gBACXR,EAAMK,OAKTI,EAAWV,EAA+B,CAACC,EAAOC,IACtDC,EAACJ,EAAO,CAACY,GAAG,KAAKC,KAAK,MAAMV,IAAKA,KAASD,KAGtCY,EAAWb,EAA+B,CAACC,EAAOC,IACtDC,EAACJ,EAAO,CAACY,GAAG,KAAKC,KAAK,MAAMV,IAAKA,KAASD,KAGtCa,EAAWd,EAA+B,CAACC,EAAOC,IACtDC,EAACJ,EAAO,CAACY,GAAG,KAAKC,KAAK,KAAKV,IAAKA,KAASD,KAGrCc,EAAWf,EAA+B,CAACC,EAAOC,IACtDC,EAACJ,EAAO,CAACY,GAAG,KAAKC,KAAK,KAAKV,IAAKA,KAASD,KAGrCe,EAAWhB,EAA+B,CAACC,EAAOC,IACtDC,EAACJ,EAAO,CAACY,GAAG,KAAKC,KAAK,KAAKV,IAAKA,KAASD,KAGrCgB,EAAWjB,EAA+B,CAACC,EAAOC,IACtDC,EAACJ,EAAO,CAACY,GAAG,KAAKC,KAAK,KAAKV,IAAKA,KAASD"}
@@ -1,2 +1,2 @@
1
- import{defineStyleConfig as e}from"@chakra-ui/react";const i=e({baseStyle:{fontFamily:"heading",fontWeight:"medium",color:"headingColor",hyphens:"auto",wordWrap:"break-word",overflowWrap:"break-word"},sizes:{"4xl":{fontSize:"headings.4xl",lineHeight:"headings.4xl"},"3xl":{fontSize:"headings.3xl",lineHeight:"headings.3xl"},"2xl":{fontSize:"headings.2xl",lineHeight:"headings.2xl"},xl:{fontSize:"headings.xl",lineHeight:"headings.xl"},lg:{fontSize:"headings.lg",lineHeight:"headings.lg"},md:{fontSize:"headings.md",lineHeight:"headings.md"},sm:{fontSize:"headings.sm",lineHeight:"headings.sm"},xs:{fontSize:"headings.xs",lineHeight:"headings.xs"}}});export{i as default,i as headingTheme};
1
+ import{defineStyleConfig as e}from"@chakra-ui/react";const i=e({baseStyle:{fontFamily:"heading",fontWeight:"medium",color:"headingColor",hyphens:"auto",wordWrap:"break-word",overflowWrap:"break-word"},sizes:{"4xl":{fontSize:"clamp(2rem, 4vw + 1rem, 3rem)",lineHeight:"clamp(2.5rem, 5vw + 1.25rem, 3.75rem)"},"3xl":{fontSize:"clamp(1.75rem, 3vw + 0.875rem, 2.25rem)",lineHeight:"clamp(2.25rem, 4vw + 1rem, 3rem)"},"2xl":{fontSize:"headings.2xl",lineHeight:"headings.2xl"},xl:{fontSize:"headings.xl",lineHeight:"headings.xl"},lg:{fontSize:"headings.lg",lineHeight:"headings.lg"},md:{fontSize:"headings.md",lineHeight:"headings.md"},sm:{fontSize:"headings.sm",lineHeight:"headings.sm"},xs:{fontSize:"headings.xs",lineHeight:"headings.xs"}}});export{i as default,i as headingTheme};
2
2
  //# sourceMappingURL=heading.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"heading.js","sources":["../../../../../src/theme/cruk/components/heading.ts"],"sourcesContent":[null],"names":["headingTheme","defineStyleConfig","baseStyle","fontFamily","fontWeight","color","hyphens","wordWrap","overflowWrap","sizes","fontSize","lineHeight","xl","lg","md","sm","xs"],"mappings":"qDAEO,MAAMA,EAAeC,EAAkB,CAC5CC,UAAW,CACTC,WAAY,UACZC,WAAY,SACZC,MAAO,eACPC,QAAS,OACTC,SAAU,aACVC,aAAc,cAEhBC,MAAO,CACL,MAAO,CACLC,SAAU,eACVC,WAAY,gBAEd,MAAO,CACLD,SAAU,eACVC,WAAY,gBAEd,MAAO,CACLD,SAAU,eACVC,WAAY,gBAEdC,GAAI,CACFF,SAAU,cACVC,WAAY,eAEdE,GAAI,CACFH,SAAU,cACVC,WAAY,eAEdG,GAAI,CACFJ,SAAU,cACVC,WAAY,eAEdI,GAAI,CACFL,SAAU,cACVC,WAAY,eAEdK,GAAI,CACFN,SAAU,cACVC,WAAY"}
1
+ {"version":3,"file":"heading.js","sources":["../../../../../src/theme/cruk/components/heading.ts"],"sourcesContent":[null],"names":["headingTheme","defineStyleConfig","baseStyle","fontFamily","fontWeight","color","hyphens","wordWrap","overflowWrap","sizes","fontSize","lineHeight","xl","lg","md","sm","xs"],"mappings":"qDAEO,MAAMA,EAAeC,EAAkB,CAC5CC,UAAW,CACTC,WAAY,UACZC,WAAY,SACZC,MAAO,eACPC,QAAS,OACTC,SAAU,aACVC,aAAc,cAEhBC,MAAO,CACL,MAAO,CACLC,SAAU,gCACVC,WAAY,yCAEd,MAAO,CACLD,SAAU,0CACVC,WAAY,oCAEd,MAAO,CACLD,SAAU,eACVC,WAAY,gBAEdC,GAAI,CACFF,SAAU,cACVC,WAAY,eAEdE,GAAI,CACFH,SAAU,cACVC,WAAY,eAEdG,GAAI,CACFJ,SAAU,cACVC,WAAY,eAEdI,GAAI,CACFL,SAAU,cACVC,WAAY,eAEdK,GAAI,CACFN,SAAU,cACVC,WAAY"}
@@ -1,2 +1,2 @@
1
- import{defineStyleConfig as e}from"@chakra-ui/react";const i=e({baseStyle:{fontFamily:"body",fontWeight:"black",color:"headingColor",hyphens:"auto",wordWrap:"break-word",overflowWrap:"break-word"},sizes:{"4xl":{fontSize:"headings.4xl",lineHeight:"headings.4xl",fontFamily:"heading",fontWeight:"semibold"},"3xl":{fontSize:"headings.3xl",lineHeight:"headings.3xl",fontFamily:"heading",fontWeight:"semibold"},"2xl":{fontSize:"headings.2xl",lineHeight:"headings.2xl",fontFamily:"heading",fontWeight:"semibold"},xl:{fontSize:"headings.xl",lineHeight:"headings.xl",fontFamily:"heading",fontWeight:"semibold"},lg:{fontSize:"headings.lg",lineHeight:"headings.lg",fontFamily:"heading",fontWeight:"semibold"},md:{fontSize:"headings.md",lineHeight:"headings.md",fontWeight:"bold"},sm:{fontSize:"headings.sm",lineHeight:"headings.sm",fontWeight:"bold"},xs:{fontSize:"headings.xs",lineHeight:"headings.xs",fontWeight:"bold"}}});export{i as default,i as headingTheme};
1
+ import{defineStyleConfig as e}from"@chakra-ui/react";const i=e({baseStyle:{fontFamily:"body",fontWeight:"black",color:"headingColor",hyphens:"auto",wordWrap:"break-word",overflowWrap:"break-word"},sizes:{"4xl":{fontSize:"clamp(2rem, 4vw + 1rem, 3rem)",lineHeight:"clamp(2.5rem, 5vw + 1.25rem, 3.75rem)",fontFamily:"heading",fontWeight:"semibold"},"3xl":{fontSize:"clamp(1.75rem, 3vw + 0.875rem, 2.25rem)",lineHeight:"clamp(2.25rem, 4vw + 1rem, 3rem)",fontFamily:"heading",fontWeight:"semibold"},"2xl":{fontSize:"headings.2xl",lineHeight:"headings.2xl",fontFamily:"heading",fontWeight:"semibold"},xl:{fontSize:"headings.xl",lineHeight:"headings.xl",fontFamily:"heading",fontWeight:"semibold"},lg:{fontSize:"headings.lg",lineHeight:"headings.lg",fontFamily:"heading",fontWeight:"semibold"},md:{fontSize:"headings.md",lineHeight:"headings.md",fontWeight:"bold"},sm:{fontSize:"headings.sm",lineHeight:"headings.sm",fontWeight:"bold"},xs:{fontSize:"headings.xs",lineHeight:"headings.xs",fontWeight:"bold"}}});export{i as default,i as headingTheme};
2
2
  //# sourceMappingURL=heading.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"heading.js","sources":["../../../../../src/theme/r4l/components/heading.ts"],"sourcesContent":[null],"names":["headingTheme","defineStyleConfig","baseStyle","fontFamily","fontWeight","color","hyphens","wordWrap","overflowWrap","sizes","fontSize","lineHeight","xl","lg","md","sm","xs"],"mappings":"qDAEO,MAAMA,EAAeC,EAAkB,CAC5CC,UAAW,CACTC,WAAY,OACZC,WAAY,QACZC,MAAO,eACPC,QAAS,OACTC,SAAU,aACVC,aAAc,cAUhBC,MAAO,CACL,MAAO,CACLC,SAAU,eACVC,WAAY,eACZR,WAAY,UACZC,WAAY,YAEd,MAAO,CACLM,SAAU,eACVC,WAAY,eACZR,WAAY,UACZC,WAAY,YAEd,MAAO,CACLM,SAAU,eACVC,WAAY,eACZR,WAAY,UACZC,WAAY,YAEdQ,GAAI,CACFF,SAAU,cACVC,WAAY,cACZR,WAAY,UACZC,WAAY,YAEdS,GAAI,CACFH,SAAU,cACVC,WAAY,cACZR,WAAY,UACZC,WAAY,YAEdU,GAAI,CACFJ,SAAU,cACVC,WAAY,cACZP,WAAY,QAEdW,GAAI,CACFL,SAAU,cACVC,WAAY,cACZP,WAAY,QAEdY,GAAI,CACFN,SAAU,cACVC,WAAY,cACZP,WAAY"}
1
+ {"version":3,"file":"heading.js","sources":["../../../../../src/theme/r4l/components/heading.ts"],"sourcesContent":[null],"names":["headingTheme","defineStyleConfig","baseStyle","fontFamily","fontWeight","color","hyphens","wordWrap","overflowWrap","sizes","fontSize","lineHeight","xl","lg","md","sm","xs"],"mappings":"qDAEO,MAAMA,EAAeC,EAAkB,CAC5CC,UAAW,CACTC,WAAY,OACZC,WAAY,QACZC,MAAO,eACPC,QAAS,OACTC,SAAU,aACVC,aAAc,cAUhBC,MAAO,CACL,MAAO,CACLC,SAAU,gCACVC,WAAY,wCACZR,WAAY,UACZC,WAAY,YAEd,MAAO,CACLM,SAAU,0CACVC,WAAY,mCACZR,WAAY,UACZC,WAAY,YAEd,MAAO,CACLM,SAAU,eACVC,WAAY,eACZR,WAAY,UACZC,WAAY,YAEdQ,GAAI,CACFF,SAAU,cACVC,WAAY,cACZR,WAAY,UACZC,WAAY,YAEdS,GAAI,CACFH,SAAU,cACVC,WAAY,cACZR,WAAY,UACZC,WAAY,YAEdU,GAAI,CACFJ,SAAU,cACVC,WAAY,cACZP,WAAY,QAEdW,GAAI,CACFL,SAAU,cACVC,WAAY,cACZP,WAAY,QAEdY,GAAI,CACFN,SAAU,cACVC,WAAY,cACZP,WAAY"}
@@ -1,2 +1,2 @@
1
- import{defineStyleConfig as e}from"@chakra-ui/react";const i={display:"inline",backgroundColor:"tertiary",textTransform:"uppercase",color:"white",pt:3,px:3,boxDecorationBreak:"clone",width:"fit-content"},n=e({baseStyle:{fontFamily:"body",fontWeight:"bold",color:"black",hyphens:"auto",wordWrap:"break-word",overflowWrap:"break-word"},sizes:{"4xl":{fontSize:"headings.4xl",lineHeight:"headings.4xl",...i},"3xl":{fontSize:"headings.3xl",lineHeight:"headings.3xl",...i},"2xl":{fontSize:"headings.2xl",lineHeight:"headings.2xl",...i},xl:{fontSize:"headings.xl",lineHeight:"headings.xl"},lg:{fontSize:"headings.lg",lineHeight:"headings.lg"},md:{fontFamily:"heading",fontWeight:"semibold",fontSize:"headings.md",lineHeight:"headings.md"},sm:{fontFamily:"heading",fontWeight:"semibold",fontSize:"headings.sm",lineHeight:"headings.sm"},xs:{fontFamily:"heading",fontWeight:"semibold",fontSize:"headings.xs",lineHeight:"headings.xs"}}});export{n as default,n as headingTheme};
1
+ import{defineStyleConfig as e}from"@chakra-ui/react";const i={display:"inline",backgroundColor:"tertiary",textTransform:"uppercase",color:"white",pt:3,px:3,boxDecorationBreak:"clone",width:"fit-content"},n=e({baseStyle:{fontFamily:"body",fontWeight:"bold",color:"black",hyphens:"auto",wordWrap:"break-word",overflowWrap:"break-word"},sizes:{"4xl":{fontSize:"clamp(32px, 4vw + 16px, 48px)",lineHeight:"clamp(40px, 5vw + 20px, 60px)",...i},"3xl":{fontSize:"clamp(28px, 3vw + 14px, 36px)",lineHeight:"clamp(36px, 4vw + 16px, 48px)",...i},"2xl":{fontSize:"headings.2xl",lineHeight:"headings.2xl",...i},xl:{fontSize:"headings.xl",lineHeight:"headings.xl"},lg:{fontSize:"headings.lg",lineHeight:"headings.lg"},md:{fontFamily:"heading",fontWeight:"semibold",fontSize:"headings.md",lineHeight:"headings.md"},sm:{fontFamily:"heading",fontWeight:"semibold",fontSize:"headings.sm",lineHeight:"headings.sm"},xs:{fontFamily:"heading",fontWeight:"semibold",fontSize:"headings.xs",lineHeight:"headings.xs"}}});export{n as default,n as headingTheme};
2
2
  //# sourceMappingURL=heading.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"heading.js","sources":["../../../../../src/theme/su2c/components/heading.ts"],"sourcesContent":[null],"names":["headingLargeTheme","display","backgroundColor","textTransform","color","pt","px","boxDecorationBreak","width","headingTheme","defineStyleConfig","baseStyle","fontFamily","fontWeight","hyphens","wordWrap","overflowWrap","sizes","fontSize","lineHeight","xl","lg","md","sm","xs"],"mappings":"qDAEA,MAAMA,EAAoB,CACxBC,QAAS,SACTC,gBAAiB,WACjBC,cAAe,YACfC,MAAO,QACPC,GAAI,EACJC,GAAI,EACJC,mBAAoB,QACpBC,MAAO,eAGIC,EAAeC,EAAkB,CAC5CC,UAAW,CACTC,WAAY,OACZC,WAAY,OACZT,MAAO,QACPU,QAAS,OACTC,SAAU,aACVC,aAAc,cAEhBC,MAAO,CACL,MAAO,CACLC,SAAU,eACVC,WAAY,kBACTnB,GAEL,MAAO,CACLkB,SAAU,eACVC,WAAY,kBACTnB,GAEL,MAAO,CACLkB,SAAU,eACVC,WAAY,kBACTnB,GAELoB,GAAI,CACFF,SAAU,cACVC,WAAY,eAEdE,GAAI,CACFH,SAAU,cACVC,WAAY,eAEdG,GAAI,CACFV,WAAY,UACZC,WAAY,WACZK,SAAU,cACVC,WAAY,eAEdI,GAAI,CACFX,WAAY,UACZC,WAAY,WACZK,SAAU,cACVC,WAAY,eAEdK,GAAI,CACFZ,WAAY,UACZC,WAAY,WACZK,SAAU,cACVC,WAAY"}
1
+ {"version":3,"file":"heading.js","sources":["../../../../../src/theme/su2c/components/heading.ts"],"sourcesContent":[null],"names":["headingLargeTheme","display","backgroundColor","textTransform","color","pt","px","boxDecorationBreak","width","headingTheme","defineStyleConfig","baseStyle","fontFamily","fontWeight","hyphens","wordWrap","overflowWrap","sizes","fontSize","lineHeight","xl","lg","md","sm","xs"],"mappings":"qDAEA,MAAMA,EAAoB,CACxBC,QAAS,SACTC,gBAAiB,WACjBC,cAAe,YACfC,MAAO,QACPC,GAAI,EACJC,GAAI,EACJC,mBAAoB,QACpBC,MAAO,eAGIC,EAAeC,EAAkB,CAC5CC,UAAW,CACTC,WAAY,OACZC,WAAY,OACZT,MAAO,QACPU,QAAS,OACTC,SAAU,aACVC,aAAc,cAEhBC,MAAO,CACL,MAAO,CACLC,SAAU,gCACVC,WAAY,mCACTnB,GAEL,MAAO,CACLkB,SAAU,gCACVC,WAAY,mCACTnB,GAEL,MAAO,CACLkB,SAAU,eACVC,WAAY,kBACTnB,GAELoB,GAAI,CACFF,SAAU,cACVC,WAAY,eAEdE,GAAI,CACFH,SAAU,cACVC,WAAY,eAEdG,GAAI,CACFV,WAAY,UACZC,WAAY,WACZK,SAAU,cACVC,WAAY,eAEdI,GAAI,CACFX,WAAY,UACZC,WAAY,WACZK,SAAU,cACVC,WAAY,eAEdK,GAAI,CACFZ,WAAY,UACZC,WAAY,WACZK,SAAU,cACVC,WAAY"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cruk/chakra-components",
3
- "version": "4.0.0-dev.21",
3
+ "version": "4.0.0-dev.23",
4
4
  "description": "Chakra UI v2 based components for CRUK applications",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,