@cruk/chakra-components 3.24.1 → 3.25.1
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/dist/cjs/components/Card/index.js +1 -1
- package/dist/cjs/components/Card/index.js.map +1 -1
- package/dist/cjs/components/KeyStatistics/index.js +1 -1
- package/dist/cjs/components/KeyStatistics/index.js.map +1 -1
- package/dist/esm/components/Card/index.js +1 -1
- package/dist/esm/components/Card/index.js.map +1 -1
- package/dist/esm/components/KeyStatistics/index.js +1 -1
- package/dist/esm/components/KeyStatistics/index.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/package.json +19 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";var e=require("react/jsx-runtime"),t=require("react"),i=require("@chakra-ui/icons"),a=require("@chakra-ui/react"),s=require("../Button/index.js");require("../Flex/index.js");var r=require("../Heading/index.js"),n=require("../Icon/index.js"),
|
|
1
|
+
"use client";"use strict";var e=require("react/jsx-runtime"),t=require("react"),i=require("@chakra-ui/icons"),a=require("@chakra-ui/react"),s=require("../Button/index.js");require("../Flex/index.js");var r=require("../Heading/index.js"),n=require("../Icon/index.js"),o=require("../Image/index.js"),c=require("../KeyStatistics/index.js"),l=require("../Link/index.js"),d=require("../Text/index.js"),x=require("../KeyStatistics/TwoBlockStatistics.js");const h=t=>{const{as:i,src:s,alt:r,width:n,height:c,aspectHeight:l,aspectWidth:d,aspectMaxHeight:x,aspectMaxWidth:h,style:g,sizes:u,...j}=t;return e.jsx(a.AspectRatio,{height:l,width:d,ratio:1,minW:128,minH:128,maxW:h,maxH:x,...j,children:e.jsx(o.Image,{as:i,src:s,alt:r,width:n,height:c,style:g,sizes:u})})},g=t=>e.jsx(a.Box,{display:{base:"block",md:"flex"},flex:{base:"unset",md:1},children:e.jsx(h,{...t})}),u=({image:t,icon:i,singleKeyStats:a,twoBlockStats:s})=>{if(i)return e.jsx(n.Icon,{name:i.name});if(a)return e.jsx(c.SingleStatistics,{statistic:a.statistic,isBarChart:a.isBarChart,labelStyle:a.labelStyle,hasSecondaryStyling:a.hasSecondaryStyling,hasKeyStatsGroupDarkTheme:a.hasKeyStatsGroupDarkTheme,icon:a.icon&&{name:a.icon.name,color:a.icon.color}});if(s)return e.jsx(x.TwoBlockStatistics,{hasSecondaryStyling:s.hasSecondaryStyling,leftValue:s.leftValue,rightValue:s.rightValue});const{isWrapped:r,...o}=t??{};return r?e.jsx(g,{...o}):e.jsx(h,{...o})},j=a.forwardRef((o,c)=>{const{variant:x="unstyled",image:h,cardImageContainer:g,icon:j,label:m,heading:p,description:S,button:y,link:f,href:k,singleKeyStats:b,twoBlockStats:w,stackProps:B,tag:q,cardLayout:C="vertical",...v}=o,I="groupNavigation"===x||"singleNavigation"===x||"noImageNavigation"===x,T=Boolean(h||j||b||w),H="horizontal"===C?{flexDirection:{base:"column",lg:"row"}}:{};return e.jsxs(a.Card,{ref:c,variant:x,href:k,sx:H,...v,children:[T&&e.jsxs(a.Box,{className:"card-imagery-container",position:"relative",height:g,children:[e.jsx(u,{image:h,icon:j,singleKeyStats:b,twoBlockStats:w}),q&&e.jsx(a.Tag,{style:{position:"absolute",top:0},...q})]}),e.jsxs(a.Stack,{width:"100%",spacing:4,height:"100%",children:[e.jsx(a.CardBody,{children:e.jsxs(a.Stack,{spacing:2,width:"100%",height:"100%",justifyContent:"horizontal"===C?"center":"flex-start",flex:1,...B,children:[m&&e.jsx(d.Text,{bgColor:"cardTextBackgroundColor",variant:"label",className:"label-text",width:"fit-content",py:1,px:3,children:m}),p&&e.jsxs(a.Flex,{justifyContent:"space-between",alignItems:"center",width:"100%",children:[e.jsx(r.Heading4,{...p}),I&&e.jsx(n.Icon,{as:i.ArrowForwardIcon,boxSize:6,p:0})]}),null!=S&&e.jsx(t.Fragment,{children:S},"description")]})}),(y||f)&&e.jsxs(a.CardFooter,{alignItems:"flex-start",children:[y&&e.jsx(s.Button,{...y}),f&&e.jsx(l.Link,{...f})]})]})]})}),m=a.forwardRef((i,n)=>{const{heading:o,description:c,hasSteps:d=!1,numberOfColumns:x,cards:h,link:g,button:u,gridGap:m={base:6,lg:8,xl:10},...p}=i;return e.jsxs(a.Stack,{ref:n,spacing:6,...p,children:[o&&e.jsx(r.Heading2,{...o}),null!=c&&e.jsx(t.Fragment,{children:c},"description"),h&&e.jsx(a.SimpleGrid,{columns:x,gap:m,children:h.map((t,i)=>e.jsx(j,{label:d?`Step: ${i+1}`:void 0,...t},`card-item-${i}`))}),u&&e.jsx(s.Button,{...u}),g&&e.jsx(l.Link,{...g})]})});exports.Card=j,exports.CardStack=m;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/Card/index.tsx"],"sourcesContent":[null],"names":["CardImage","imageProps","as","src","alt","width","height","aspectHeight","aspectWidth","aspectMaxHeight","aspectMaxWidth","style","sizes","restImageProps","_jsx","AspectRatio","ratio","minW","minH","maxW","maxH","children","Image","WrappedCardImage","Box","display","base","md","flex","CardImagery","image","icon","singleKeyStats","twoBlockStats","Icon","name","SingleStatistics","statistic","isBarChart","labelStyle","hasSecondaryStyling","color","TwoBlockStatistics","leftValue","rightValue","isWrapped","Card","forwardRef","props","ref","variant","cardImageContainer","label","heading","description","button","link","href","stackProps","tag","cardLayout","rest","displayArrow","hasImagery","Boolean","layoutStyles","flexDirection","lg","_jsxs","ChakraCard","sx","className","position","Tag","top","Stack","spacing","CardBody","justifyContent","Text","bgColor","py","px","Flex","alignItems","Heading4","ArrowForwardIcon","boxSize","p","React","Fragment","CardFooter","Button","Link","CardStack","hasSteps","numberOfColumns","cards","gridGap","xl","Heading2","SimpleGrid","columns","gap","map","card","index","undefined"],"mappings":"icAwDA,MAAMA,EAAaC,IACjB,MAAMC,GACJA,EAAEC,IACFA,EAAGC,IACHA,EAAGC,MACHA,EAAKC,OACLA,EAAMC,aACNA,EAAYC,YACZA,EAAWC,gBACXA,EAAeC,eACfA,EAAcC,MACdA,EAAKC,MACLA,KACGC,GACDZ,EAEJ,OACEa,EAAAA,IAACC,EAAAA,YAAW,CACVT,OAAQC,EACRF,MAAOG,EACPQ,MAAO,EACPC,KAAM,IACNC,KAAM,IACNC,KAAMT,EACNU,KAAMX,KACFI,EAAcQ,SAElBP,EAAAA,IAACQ,EAAAA,MAAK,CACJpB,GAAIA,EACJC,IAAKA,EACLC,IAAKA,EACLC,MAAOA,EACPC,OAAQA,EACRK,MAAOA,EACPC,MAAOA,OAMTW,EAAoBtB,GACxBa,EAAAA,IAACU,MAAG,CAACC,QAAS,CAAEC,KAAM,QAASC,GAAI,QAAUC,KAAM,CAAEF,KAAM,QAASC,GAAI,GAAGN,SACzEP,MAACd,EAAS,IAAMC,MAId4B,EAAc,EAClBC,QACAC,OACAC,iBACAC,oBAEA,GAAIF,EACF,OAAOjB,EAAAA,IAACoB,EAAAA,KAAI,CAACC,KAAMJ,EAAKI,OAG1B,GAAIH,EACF,OACElB,EAAAA,IAACsB,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Card/index.tsx"],"sourcesContent":[null],"names":["CardImage","imageProps","as","src","alt","width","height","aspectHeight","aspectWidth","aspectMaxHeight","aspectMaxWidth","style","sizes","restImageProps","_jsx","AspectRatio","ratio","minW","minH","maxW","maxH","children","Image","WrappedCardImage","Box","display","base","md","flex","CardImagery","image","icon","singleKeyStats","twoBlockStats","Icon","name","SingleStatistics","statistic","isBarChart","labelStyle","hasSecondaryStyling","hasKeyStatsGroupDarkTheme","color","TwoBlockStatistics","leftValue","rightValue","isWrapped","Card","forwardRef","props","ref","variant","cardImageContainer","label","heading","description","button","link","href","stackProps","tag","cardLayout","rest","displayArrow","hasImagery","Boolean","layoutStyles","flexDirection","lg","_jsxs","ChakraCard","sx","className","position","Tag","top","Stack","spacing","CardBody","justifyContent","Text","bgColor","py","px","Flex","alignItems","Heading4","ArrowForwardIcon","boxSize","p","React","Fragment","CardFooter","Button","Link","CardStack","hasSteps","numberOfColumns","cards","gridGap","xl","Heading2","SimpleGrid","columns","gap","map","card","index","undefined"],"mappings":"icAwDA,MAAMA,EAAaC,IACjB,MAAMC,GACJA,EAAEC,IACFA,EAAGC,IACHA,EAAGC,MACHA,EAAKC,OACLA,EAAMC,aACNA,EAAYC,YACZA,EAAWC,gBACXA,EAAeC,eACfA,EAAcC,MACdA,EAAKC,MACLA,KACGC,GACDZ,EAEJ,OACEa,EAAAA,IAACC,EAAAA,YAAW,CACVT,OAAQC,EACRF,MAAOG,EACPQ,MAAO,EACPC,KAAM,IACNC,KAAM,IACNC,KAAMT,EACNU,KAAMX,KACFI,EAAcQ,SAElBP,EAAAA,IAACQ,EAAAA,MAAK,CACJpB,GAAIA,EACJC,IAAKA,EACLC,IAAKA,EACLC,MAAOA,EACPC,OAAQA,EACRK,MAAOA,EACPC,MAAOA,OAMTW,EAAoBtB,GACxBa,EAAAA,IAACU,MAAG,CAACC,QAAS,CAAEC,KAAM,QAASC,GAAI,QAAUC,KAAM,CAAEF,KAAM,QAASC,GAAI,GAAGN,SACzEP,MAACd,EAAS,IAAMC,MAId4B,EAAc,EAClBC,QACAC,OACAC,iBACAC,oBAEA,GAAIF,EACF,OAAOjB,EAAAA,IAACoB,EAAAA,KAAI,CAACC,KAAMJ,EAAKI,OAG1B,GAAIH,EACF,OACElB,EAAAA,IAACsB,mBAAgB,CACfC,UAAWL,EAAeK,UAC1BC,WAAYN,EAAeM,WAC3BC,WAAYP,EAAeO,WAC3BC,oBAAqBR,EAAeQ,oBACpCC,0BAA2BT,EAAeS,0BAC1CV,KACEC,EAAeD,MAAQ,CACrBI,KAAMH,EAAeD,KAAKI,KAC1BO,MAAOV,EAAeD,KAAKW,SAOrC,GAAIT,EACF,OACEnB,EAAAA,IAAC6B,EAAAA,mBAAkB,CACjBH,oBAAqBP,EAAcO,oBACnCI,UAAWX,EAAcW,UACzBC,WAAYZ,EAAcY,aAKhC,MAAMC,UAAEA,KAAc7C,GAAe6B,GAAS,CAAA,EAE9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AAA,WAAWrC,IACtBC,GAAQ3C,EAAAA,IAACgF,EAAAA,KAAI,IAAKrC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("@chakra-ui/react"),t=require("../Icon/index.js"),
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("@chakra-ui/react"),t=require("../Icon/index.js"),i=require("./TwoBlockStatistics.js");const o=r.forwardRef((i,o)=>{const{icon:n,isBarChart:s,statistic:a,labelStyle:l,hasSecondaryStyling:c,hasKeyStatsGroupDarkTheme:u,...d}=i,g=(e=>parseInt(e.replace("%",""),10))(a),h=s?g:100,m=100-h;let x="white",b="",p=i.bgColor??"keyStatsPrimaryBackgroundColor";s&&(x="keyStatsAltValueBackgroundColor",b=`linear(${x} ${m}%, currentColor ${m}%)`,p=""),u&&(p="transparent");const y=u?"primary":"textOnPrimary";return e.jsx(r.Stack,{ref:o,height:"100%","aria-label":"single-statistic",borderRadius:n?"none":"100%",color:s?"keyStatsPrimaryBackgroundColor":"",...d,children:e.jsxs(r.Box,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",height:"100%",bgGradient:s?`linear(${x} ${m}%, currentColor ${m}%)`:"unset",position:"relative",className:s?"bar-chart-highlight":"statistic-highlight",bgColor:p,children:[n&&(u?e.jsx(r.Box,{"data-testid":"statistic-icon-chip",bgColor:"primary",borderRadius:"full",display:"flex",alignItems:"center",justifyContent:"center",p:{base:"0.75rem",md:"1rem"},zIndex:1,children:e.jsx(t.Icon,{name:n.name,color:n.color??"textOnPrimary",width:n.width||{base:"2rem",md:"2.5rem"},height:n.height||{base:"2rem",md:"2.5rem"}})}):e.jsx(t.Icon,{name:n.name,color:n.color??"keyStatsPrimaryTextColor",width:n.width||"6rem",height:n.height||"6rem",zIndex:1})),e.jsx(r.Text,{...l,zIndex:1,fontSize:"2.875rem",fontWeight:"semibold",color:l?.color?l?.color:y,px:4,pb:n?2:0,mt:n?6:0,children:a}),e.jsx(r.Box,{position:"absolute",alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",height:c?`${h}%`:"100%",bottom:"0px",bgGradient:c?"linear-gradient(to bottom left, #FF0087 , #00007E)":b})]})})});Object.defineProperty(exports,"CircularProgress",{enumerable:!0,get:function(){return r.CircularProgress}}),Object.defineProperty(exports,"CircularProgressLabel",{enumerable:!0,get:function(){return r.CircularProgressLabel}}),Object.defineProperty(exports,"Progress",{enumerable:!0,get:function(){return r.Progress}}),Object.defineProperty(exports,"ProgressLabel",{enumerable:!0,get:function(){return r.ProgressLabel}}),exports.TwoBlockStatistics=i.TwoBlockStatistics,exports.SingleStatistics=o;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/KeyStatistics/index.tsx"],"sourcesContent":[null],"names":["SingleStatistics","forwardRef","props","ref","icon","isBarChart","statistic","labelStyle","hasSecondaryStyling","rest","numValue","parseInt","replace","convertValue","barHeight","trackHeight","trackColor","bgGradient","bgColor","_jsx","Stack","height","borderRadius","color","children","_jsxs","Box","alignItems","display","flexDirection","justifyContent","width","position","className","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/KeyStatistics/index.tsx"],"sourcesContent":[null],"names":["SingleStatistics","forwardRef","props","ref","icon","isBarChart","statistic","labelStyle","hasSecondaryStyling","hasKeyStatsGroupDarkTheme","rest","numValue","parseInt","replace","convertValue","barHeight","trackHeight","trackColor","bgGradient","bgColor","defaultStatisticColor","_jsx","Stack","height","borderRadius","color","children","_jsxs","Box","alignItems","display","flexDirection","justifyContent","width","position","className","p","base","md","zIndex","Icon","name","Text","fontSize","fontWeight","px","pb","mt","bottom"],"mappings":"iJA0CA,MAGMA,EAAmBC,EAAAA,WACvB,CAACC,EAAOC,KACN,MAAMC,KACJA,EAAIC,WACJA,EAAUC,UACVA,EAASC,WACTA,EAAUC,oBACVA,EAAmBC,0BACnBA,KACG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,OACvBgB,OAAQ,KAGdlB,EAAAA,IAACqB,EAAAA,KAAI,IACCnC,EACJgC,OAAQ,EACRI,SAAS,WACTC,WAAW,WACXnB,MACElB,GAAYkB,MAAQlB,GAAYkB,MAAQL,EAE1CyB,GAAI,EACJC,GAAI1C,EAAO,EAAI,EACf2C,GAAI3C,EAAO,EAAI,EAACsB,SAEfpB,IAEHe,EAAAA,IAACO,EAAAA,IAAG,CACFM,SAAS,WACTL,WAAW,SACXC,QAAQ,OACRC,cAAc,SACdC,eAAe,SACfC,MAAM,OACNV,OAAQf,EAAsB,GAAGO,KAAe,OAChDiC,OAAO,MACP9B,WACEV,EACI,sDACAU"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{jsxs as t,jsx as e}from"react/jsx-runtime";import i from"react";import{ArrowForwardIcon as a}from"@chakra-ui/icons";import{forwardRef as
|
|
1
|
+
"use client";import{jsxs as t,jsx as e}from"react/jsx-runtime";import i from"react";import{ArrowForwardIcon as a}from"@chakra-ui/icons";import{forwardRef as r,Card as n,Box as o,Tag as s,Stack as l,CardBody as c,Flex as h,CardFooter as d,SimpleGrid as m,AspectRatio as g}from"@chakra-ui/react";import{Button as p}from"../Button/index.js";import"../Flex/index.js";import{Heading4 as u,Heading2 as f}from"../Heading/index.js";import{Icon as x}from"../Icon/index.js";import{Image as y}from"../Image/index.js";import{SingleStatistics as S}from"../KeyStatistics/index.js";import{Link as b}from"../Link/index.js";import{Text as k}from"../Text/index.js";import{TwoBlockStatistics as w}from"../KeyStatistics/TwoBlockStatistics.js";const j=t=>{const{as:i,src:a,alt:r,width:n,height:o,aspectHeight:s,aspectWidth:l,aspectMaxHeight:c,aspectMaxWidth:h,style:d,sizes:m,...p}=t;return e(g,{height:s,width:l,ratio:1,minW:128,minH:128,maxW:h,maxH:c,...p,children:e(y,{as:i,src:a,alt:r,width:n,height:o,style:d,sizes:m})})},v=t=>e(o,{display:{base:"block",md:"flex"},flex:{base:"unset",md:1},children:e(j,{...t})}),B=({image:t,icon:i,singleKeyStats:a,twoBlockStats:r})=>{if(i)return e(x,{name:i.name});if(a)return e(S,{statistic:a.statistic,isBarChart:a.isBarChart,labelStyle:a.labelStyle,hasSecondaryStyling:a.hasSecondaryStyling,hasKeyStatsGroupDarkTheme:a.hasKeyStatsGroupDarkTheme,icon:a.icon&&{name:a.icon.name,color:a.icon.color}});if(r)return e(w,{hasSecondaryStyling:r.hasSecondaryStyling,leftValue:r.leftValue,rightValue:r.rightValue});const{isWrapped:n,...o}=t??{};return e(n?v:j,{...o})},C=r((r,m)=>{const{variant:g="unstyled",image:f,cardImageContainer:y,icon:S,label:w,heading:j,description:v,button:C,link:K,href:I,singleKeyStats:z,twoBlockStats:H,stackProps:N,tag:T,cardLayout:W="vertical",...V}=r,D="groupNavigation"===g||"singleNavigation"===g||"noImageNavigation"===g,F=Boolean(f||S||z||H);return t(n,{ref:m,variant:g,href:I,sx:"horizontal"===W?{flexDirection:{base:"column",lg:"row"}}:{},...V,children:[F&&t(o,{className:"card-imagery-container",position:"relative",height:y,children:[e(B,{image:f,icon:S,singleKeyStats:z,twoBlockStats:H}),T&&e(s,{style:{position:"absolute",top:0},...T})]}),t(l,{width:"100%",spacing:4,height:"100%",children:[e(c,{children:t(l,{spacing:2,width:"100%",height:"100%",justifyContent:"horizontal"===W?"center":"flex-start",flex:1,...N,children:[w&&e(k,{bgColor:"cardTextBackgroundColor",variant:"label",className:"label-text",width:"fit-content",py:1,px:3,children:w}),j&&t(h,{justifyContent:"space-between",alignItems:"center",width:"100%",children:[e(u,{...j}),D&&e(x,{as:a,boxSize:6,p:0})]}),null!=v&&e(i.Fragment,{children:v},"description")]})}),(C||K)&&t(d,{alignItems:"flex-start",children:[C&&e(p,{...C}),K&&e(b,{...K})]})]})]})}),K=r((a,r)=>{const{heading:n,description:o,hasSteps:s=!1,numberOfColumns:c,cards:h,link:d,button:g,gridGap:u={base:6,lg:8,xl:10},...x}=a;return t(l,{ref:r,spacing:6,...x,children:[n&&e(f,{...n}),null!=o&&e(i.Fragment,{children:o},"description"),h&&e(m,{columns:c,gap:u,children:h.map((t,i)=>e(C,{label:s?`Step: ${i+1}`:void 0,...t},`card-item-${i}`))}),g&&e(p,{...g}),d&&e(b,{...d})]})});export{C as Card,K as CardStack};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/Card/index.tsx"],"sourcesContent":[null],"names":["CardImage","imageProps","as","src","alt","width","height","aspectHeight","aspectWidth","aspectMaxHeight","aspectMaxWidth","style","sizes","restImageProps","_jsx","AspectRatio","ratio","minW","minH","maxW","maxH","children","Image","WrappedCardImage","Box","display","base","md","flex","CardImagery","image","icon","singleKeyStats","twoBlockStats","Icon","name","SingleStatistics","statistic","isBarChart","labelStyle","hasSecondaryStyling","color","TwoBlockStatistics","leftValue","rightValue","isWrapped","Card","forwardRef","props","ref","variant","cardImageContainer","label","heading","description","button","link","href","stackProps","tag","cardLayout","rest","displayArrow","hasImagery","Boolean","_jsxs","ChakraCard","sx","flexDirection","lg","className","position","Tag","top","Stack","spacing","CardBody","justifyContent","Text","bgColor","py","px","Flex","alignItems","Heading4","ArrowForwardIcon","boxSize","p","React","Fragment","CardFooter","Button","Link","CardStack","hasSteps","numberOfColumns","cards","gridGap","xl","Heading2","SimpleGrid","columns","gap","map","card","index","undefined"],"mappings":"mtBAwDA,MAAMA,EAAaC,IACjB,MAAMC,GACJA,EAAEC,IACFA,EAAGC,IACHA,EAAGC,MACHA,EAAKC,OACLA,EAAMC,aACNA,EAAYC,YACZA,EAAWC,gBACXA,EAAeC,eACfA,EAAcC,MACdA,EAAKC,MACLA,KACGC,GACDZ,EAEJ,OACEa,EAACC,EAAW,CACVT,OAAQC,EACRF,MAAOG,EACPQ,MAAO,EACPC,KAAM,IACNC,KAAM,IACNC,KAAMT,EACNU,KAAMX,KACFI,EAAcQ,SAElBP,EAACQ,EAAK,CACJpB,GAAIA,EACJC,IAAKA,EACLC,IAAKA,EACLC,MAAOA,EACPC,OAAQA,EACRK,MAAOA,EACPC,MAAOA,OAMTW,EAAoBtB,GACxBa,EAACU,EAAG,CAACC,QAAS,CAAEC,KAAM,QAASC,GAAI,QAAUC,KAAM,CAAEF,KAAM,QAASC,GAAI,GAAGN,SACzEP,EAACd,EAAS,IAAMC,MAId4B,EAAc,EAClBC,QACAC,OACAC,iBACAC,oBAEA,GAAIF,EACF,OAAOjB,EAACoB,EAAI,CAACC,KAAMJ,EAAKI,OAG1B,GAAIH,EACF,OACElB,EAACsB,EAAgB,CACfC,UAAWL,EAAeK,UAC1BC,WAAYN,EAAeM,WAC3BC,WAAYP,EAAeO,WAC3BC,oBAAqBR,EAAeQ,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Card/index.tsx"],"sourcesContent":[null],"names":["CardImage","imageProps","as","src","alt","width","height","aspectHeight","aspectWidth","aspectMaxHeight","aspectMaxWidth","style","sizes","restImageProps","_jsx","AspectRatio","ratio","minW","minH","maxW","maxH","children","Image","WrappedCardImage","Box","display","base","md","flex","CardImagery","image","icon","singleKeyStats","twoBlockStats","Icon","name","SingleStatistics","statistic","isBarChart","labelStyle","hasSecondaryStyling","hasKeyStatsGroupDarkTheme","color","TwoBlockStatistics","leftValue","rightValue","isWrapped","Card","forwardRef","props","ref","variant","cardImageContainer","label","heading","description","button","link","href","stackProps","tag","cardLayout","rest","displayArrow","hasImagery","Boolean","_jsxs","ChakraCard","sx","flexDirection","lg","className","position","Tag","top","Stack","spacing","CardBody","justifyContent","Text","bgColor","py","px","Flex","alignItems","Heading4","ArrowForwardIcon","boxSize","p","React","Fragment","CardFooter","Button","Link","CardStack","hasSteps","numberOfColumns","cards","gridGap","xl","Heading2","SimpleGrid","columns","gap","map","card","index","undefined"],"mappings":"mtBAwDA,MAAMA,EAAaC,IACjB,MAAMC,GACJA,EAAEC,IACFA,EAAGC,IACHA,EAAGC,MACHA,EAAKC,OACLA,EAAMC,aACNA,EAAY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U1C,EAAC8E,EAAM,IAAKpC,IACtBC,GAAQ3C,EAAC+E,EAAI,IAAKpC,eAmBzBqC,EAAY9C,EAAkC,CAACC,EAAOC,KAC1D,MAAMI,QACJA,EAAOC,YACPA,EAAWwC,SACXA,GAAW,EAAKC,gBAChBA,EAAeC,MACfA,EAAKxC,KACLA,EAAID,OACJA,EAAM0C,QACNA,EAAU,CAAExE,KAAM,EAAG4C,GAAI,EAAG6B,GAAI,OAC7BrC,GACDb,EACJ,OACEiB,EAACS,EAAK,CAACzB,IAAKA,EAAK0B,QAAS,KAAOd,EAAIzC,SAAA,CAClCiC,GAAWxC,EAACsF,EAAQ,IAAK9C,IACV,MAAfC,GACCzC,EAAC2E,EAAMC,SAAQ,CAAArE,SAAoBkC,GAAf,eAErB0C,GACCnF,EAACuF,EAAU,CAACC,QAASN,EAAiBO,IAAKL,EAAO7E,SAC/C4E,EAAMO,IAAI,CAACC,EAAMC,IAChB5F,EAACiC,EAAI,CAEHM,MAAO0C,EAAW,SAASW,EAAQ,SAAMC,KACrCF,GAFC,aAAaC,QAOzBlD,GAAU1C,EAAC8E,MAAWpC,IACtBC,GAAQ3C,EAAC+E,EAAI,IAAKpC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t,jsxs as
|
|
1
|
+
import{jsx as t,jsxs as e}from"react/jsx-runtime";import{forwardRef as r,Stack as i,Box as o,Text as a}from"@chakra-ui/react";export{CircularProgress,CircularProgressLabel,Progress,ProgressLabel}from"@chakra-ui/react";import{Icon as n}from"../Icon/index.js";export{TwoBlockStatistics}from"./TwoBlockStatistics.js";const l=r((r,l)=>{const{icon:s,isBarChart:c,statistic:m,labelStyle:h,hasSecondaryStyling:d,hasKeyStatsGroupDarkTheme:g,...u}=r,p=(t=>parseInt(t.replace("%",""),10))(m),y=c?p:100,b=100-y;let f="white",x="",C=r.bgColor??"keyStatsPrimaryBackgroundColor";c&&(f="keyStatsAltValueBackgroundColor",x=`linear(${f} ${b}%, currentColor ${b}%)`,C=""),g&&(C="transparent");const k=g?"primary":"textOnPrimary";return t(i,{ref:l,height:"100%","aria-label":"single-statistic",borderRadius:s?"none":"100%",color:c?"keyStatsPrimaryBackgroundColor":"",...u,children:e(o,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",height:"100%",bgGradient:c?`linear(${f} ${b}%, currentColor ${b}%)`:"unset",position:"relative",className:c?"bar-chart-highlight":"statistic-highlight",bgColor:C,children:[s&&(g?t(o,{"data-testid":"statistic-icon-chip",bgColor:"primary",borderRadius:"full",display:"flex",alignItems:"center",justifyContent:"center",p:{base:"0.75rem",md:"1rem"},zIndex:1,children:t(n,{name:s.name,color:s.color??"textOnPrimary",width:s.width||{base:"2rem",md:"2.5rem"},height:s.height||{base:"2rem",md:"2.5rem"}})}):t(n,{name:s.name,color:s.color??"keyStatsPrimaryTextColor",width:s.width||"6rem",height:s.height||"6rem",zIndex:1})),t(a,{...h,zIndex:1,fontSize:"2.875rem",fontWeight:"semibold",color:h?.color?h?.color:k,px:4,pb:s?2:0,mt:s?6:0,children:m}),t(o,{position:"absolute",alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",height:d?`${y}%`:"100%",bottom:"0px",bgGradient:d?"linear-gradient(to bottom left, #FF0087 , #00007E)":x})]})})});export{l as SingleStatistics};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/KeyStatistics/index.tsx"],"sourcesContent":[null],"names":["SingleStatistics","forwardRef","props","ref","icon","isBarChart","statistic","labelStyle","hasSecondaryStyling","rest","numValue","parseInt","replace","convertValue","barHeight","trackHeight","trackColor","bgGradient","bgColor","_jsx","Stack","height","borderRadius","color","children","_jsxs","Box","alignItems","display","flexDirection","justifyContent","width","position","className","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/KeyStatistics/index.tsx"],"sourcesContent":[null],"names":["SingleStatistics","forwardRef","props","ref","icon","isBarChart","statistic","labelStyle","hasSecondaryStyling","hasKeyStatsGroupDarkTheme","rest","numValue","parseInt","replace","convertValue","barHeight","trackHeight","trackColor","bgGradient","bgColor","defaultStatisticColor","_jsx","Stack","height","borderRadius","color","children","_jsxs","Box","alignItems","display","flexDirection","justifyContent","width","position","className","p","base","md","zIndex","Icon","name","Text","fontSize","fontWeight","px","pb","mt","bottom"],"mappings":"0TA0CA,MAGMA,EAAmBC,EACvB,CAACC,EAAOC,KACN,MAAMC,KACJA,EAAIC,WACJA,EAAUC,UACVA,EAASC,WACTA,EAAUC,oBACVA,EAAmBC,0BACnBA,KACGC,GACDR,EAEES,EAfW,CAACL,GACpBM,SAASN,EAAUO,QAAQ,IAAK,IAAK,IAclBC,CAAaR,GACxBS,EAAaV,EAAmBM,EAAN,IAC1BK,EAAc,IAAMD,EAC1B,IAAIE,EAAa,QACbC,EAAa,GACbC,EAAUjB,EAAMiB,SAAW,iCAE3Bd,IACFY,EAAa,kCACbC,EAAa,UAAUD,KAAcD,oBAA8BA,MACnEG,EAAU,IAGRV,IACFU,EAAU,eAGZ,MAAMC,EAAwBX,EAC1B,UACA,gBAEJ,OACEY,EAACC,EAAK,CACJnB,IAAKA,EACLoB,OAAO,OAAM,aACF,mBACXC,aAAcpB,EAAO,OAAS,OAC9BqB,MAAOpB,EAAa,iCAAmC,MACnDK,EAAIgB,SAERC,EAACC,EAAG,CACFC,WAAW,SACXC,QAAQ,OACRC,cAAc,SACdC,eAAe,SACfC,MAAM,OACNV,OAAO,OACPL,WACEb,EACI,UAAUY,KAAcD,oBAA8BA,MACtD,QAENkB,SAAS,WACTC,UAAW9B,EAAa,sBAAwB,sBAChDc,QAASA,EAAOO,SAAA,CAEftB,IACEK,EACCY,EAACO,EAAG,CAAA,cACU,sBACZT,QAAQ,UACRK,aAAa,OACbM,QAAQ,OACRD,WAAW,SACXG,eAAe,SACfI,EAAG,CAAEC,KAAM,UAAWC,GAAI,QAC1BC,OAAQ,EAACb,SAETL,EAACmB,EAAI,CACHC,KAAMrC,EAAKqC,KACXhB,MAAOrB,EAAKqB,OAAS,gBACrBQ,MAAO7B,EAAK6B,OAAS,CAAEI,KAAM,OAAQC,GAAI,UACzCf,OAAQnB,EAAKmB,QAAU,CAAEc,KAAM,OAAQC,GAAI,cAI/CjB,EAACmB,EAAI,CACHC,KAAMrC,EAAKqC,KACXhB,MAAOrB,EAAKqB,OAAS,2BACrBQ,MAAO7B,EAAK6B,OAAS,OACrBV,OAAQnB,EAAKmB,QAAU,OACvBgB,OAAQ,KAGdlB,EAACqB,EAAI,IACCnC,EACJgC,OAAQ,EACRI,SAAS,WACTC,WAAW,WACXnB,MACElB,GAAYkB,MAAQlB,GAAYkB,MAAQL,EAE1CyB,GAAI,EACJC,GAAI1C,EAAO,EAAI,EACf2C,GAAI3C,EAAO,EAAI,EAACsB,SAEfpB,IAEHe,EAACO,EAAG,CACFM,SAAS,WACTL,WAAW,SACXC,QAAQ,OACRC,cAAc,SACdC,eAAe,SACfC,MAAM,OACNV,OAAQf,EAAsB,GAAGO,KAAe,OAChDiC,OAAO,MACP9B,WACEV,EACI,sDACAU"}
|
package/dist/index.d.ts
CHANGED
|
@@ -91,6 +91,11 @@ declare const TwoBlockStatistics: _chakra_ui_react.ComponentWithAs<"div", TwoBlo
|
|
|
91
91
|
type SingleStatisticsProps = ProgressProps$1 & {
|
|
92
92
|
icon?: IconProps;
|
|
93
93
|
isBarChart?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Renders the statistic for use on a dark group background:
|
|
96
|
+
* the orange tile fill is dropped, the icon sits inside a circular
|
|
97
|
+
* orange chip, and the statistic text switches to the primary colour.
|
|
98
|
+
*/
|
|
94
99
|
hasKeyStatsGroupDarkTheme?: boolean;
|
|
95
100
|
statistic: string;
|
|
96
101
|
labelStyle?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cruk/chakra-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.25.1",
|
|
4
4
|
"description": "Chakra UI v2 based components for CRUK applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -53,8 +53,6 @@
|
|
|
53
53
|
"release": "npm run build && semantic-release"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@applitools/eyes-storybook": "^3.64.13",
|
|
57
|
-
"@applitools/eyes-storybook-addon": "^1.0.4",
|
|
58
56
|
"@chakra-ui/icons": "^2.2.4",
|
|
59
57
|
"@chakra-ui/react": "^2.10.9",
|
|
60
58
|
"@emotion/react": "^11.14.0",
|
|
@@ -66,6 +64,8 @@
|
|
|
66
64
|
"slugify": "^1.6.9"
|
|
67
65
|
},
|
|
68
66
|
"devDependencies": {
|
|
67
|
+
"@applitools/eyes-storybook": "^3.64.13",
|
|
68
|
+
"@applitools/eyes-storybook-addon": "^1.0.4",
|
|
69
69
|
"@axe-core/playwright": "^4.11.2",
|
|
70
70
|
"@chromatic-com/storybook": "^4.1.3",
|
|
71
71
|
"@eslint/js": "^9.39.2",
|
|
@@ -132,5 +132,20 @@
|
|
|
132
132
|
"extends": [
|
|
133
133
|
"plugin:storybook/recommended"
|
|
134
134
|
]
|
|
135
|
-
}
|
|
135
|
+
},
|
|
136
|
+
"directories": {
|
|
137
|
+
"doc": "docs",
|
|
138
|
+
"lib": "dist"
|
|
139
|
+
},
|
|
140
|
+
"repository": {
|
|
141
|
+
"type": "git",
|
|
142
|
+
"url": "git+https://github.com/CRUKorg/cruk-chakra-components.git"
|
|
143
|
+
},
|
|
144
|
+
"keywords": [],
|
|
145
|
+
"author": "",
|
|
146
|
+
"type": "commonjs",
|
|
147
|
+
"bugs": {
|
|
148
|
+
"url": "https://github.com/CRUKorg/cruk-chakra-components/issues"
|
|
149
|
+
},
|
|
150
|
+
"homepage": "https://github.com/CRUKorg/cruk-chakra-components#readme"
|
|
136
151
|
}
|