@cruk/chakra-components 3.0.2 → 3.0.4

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/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  ![Logo](.github/assets/logo.png)
2
+
2
3
  # CRUK Chakra Components 🎨
3
4
 
4
5
  A [Chakra UI v2](https://v2.chakra-ui.com/docs/) based component library that provides styled components following the [Cancer Research UK Helix design system](https://zeroheight.com/721bd94bd/p/074a6c-helix-design-system---cancer-research-uk) 🧬.
@@ -27,8 +28,8 @@ npm install @chakra-ui/react @emotion/react @emotion/styled framer-motion
27
28
 
28
29
  **NOTE:** Not all projects use `npm` as their package managers, use whichever is appropriate for your project.
29
30
 
30
-
31
31
  ### Basic Setup
32
+
32
33
  Once added to the project, you can use the `ChakraBaseProvider` to wrap your application and provide styled based on the `crukBrand` theme.
33
34
 
34
35
  ```typescript
@@ -44,7 +45,6 @@ const App = ({ Component, pageProps }: AppProps) => (
44
45
  export default App;
45
46
  ```
46
47
 
47
-
48
48
  - 📖 [Styling documentation](https://super-succotash-wg8qmo1.pages.github.io/styling)
49
49
  - 📖 [Theming documentation](https://super-succotash-wg8qmo1.pages.github.io/theming)
50
50
 
@@ -53,6 +53,7 @@ export default App;
53
53
  ### Development Setup
54
54
 
55
55
  After cloning the repository, install the dependencies:
56
+
56
57
  ```bash
57
58
  # Clone and setup
58
59
  git clone https://github.com/CRUKorg/cruk-chakra-components
@@ -64,6 +65,7 @@ npm run storybook
64
65
  ```
65
66
 
66
67
  ### Quick Test
68
+
67
69
  ```bash
68
70
  npm run test # Unit tests
69
71
  npm run test-ct # Component tests
@@ -73,55 +75,87 @@ npm run test-ct # Component tests
73
75
 
74
76
  ### Release Process
75
77
 
76
- This library uses [semantic-release](https://github.com/semantic-release/semantic-release) to automate versioning and package publishing.
78
+ This library uses [semantic-release](https://github.com/semantic-release/semantic-release) to automate versioning and package publishing based on **pull request titles** and **commit content**.
77
79
 
78
80
  #### Branch Strategy
79
81
 
80
82
  - `dev` branch: Configured as a prerelease branch with the `dev` prerelease tag
81
83
  - `main` branch: Configured as a regular release branch
82
84
 
83
- #### Creating a Standard Release
85
+ #### Release Requirements
84
86
 
85
- To create a standard release (patch or minor version):
87
+ **Important:** Only pull requests with `RELEASE` in the title will trigger a release. The version type (major/minor/patch) is determined by the commit content within that PR.
88
+
89
+ #### Creating a Release
90
+
91
+ 1. **Create your pull request with `RELEASE` in the title:**
86
92
 
87
- 1. Create a commit with the appropriate type and include `RELEASE` in the message:
88
- ```
89
- feat: add new Button variant *RELEASE*
90
- ```
91
- or
92
93
  ```
93
- fix: resolve Button focus state issue *RELEASE*
94
+ RELEASE: Add new Button component
95
+ RELEASE: Fix accessibility issues
96
+ Feature update - RELEASE v2.1.0
94
97
  ```
95
98
 
96
- 2. Push your changes to the appropriate branch:
97
- ```bash
98
- git push origin dev # For prerelease
99
- git push origin main # For standard release
99
+ 2. **Use conventional commit messages** within your PR to determine the release type:
100
+
101
+ **Patch Release** (v1.0.0 v1.0.1):
102
+
103
+ ```
104
+ fix: resolve Button focus state issue
105
+ docs: update component documentation
106
+ test: add missing unit tests
107
+ refactor: improve component structure
100
108
  ```
101
109
 
102
- 3. The release will be automatically triggered by the CI/CD pipeline.
110
+ **Minor Release** (v1.0.0 v1.1.0):
103
111
 
104
- #### Creating a Breaking Change
112
+ ```
113
+ feat: add new Button variant
114
+ feature: implement dark mode support
115
+ ```
105
116
 
106
- To create a breaking change (major version):
117
+ **Major Release** (v1.0.0 v2.0.0):
107
118
 
108
- 1. Create a commit that includes `BREAKING CHANGE:` or `BREAKING CHANGES:` in the commit message body and include `RELEASE`:
109
119
  ```
110
- feat: redesign Button component API RELEASE
111
-
120
+ feat: redesign Button component API
121
+
112
122
  BREAKING CHANGE: The Button component no longer accepts 'size' prop, use 'buttonSize' instead.
113
123
  ```
114
124
 
115
- 2. Push your changes to the appropriate branch.
125
+ 3. **Merge your PR** to the appropriate branch:
116
126
 
117
- 3. The semantic-release system will:
118
- - Analyse your commits
119
- - Detect the breaking change
120
- - Increment the major version number (following semver)
127
+ - Merge to `dev` for prerelease versions
128
+ - Merge to `main` for standard releases
129
+
130
+ 4. The semantic-release system will automatically:
131
+ - Analyse the PR title and commit content
132
+ - Determine the appropriate version bump
121
133
  - Generate release notes
122
134
  - Publish to npm
123
135
  - Create a GitHub release
124
136
 
137
+ #### Examples
138
+
139
+ ✅ **Will trigger a minor release:**
140
+
141
+ - PR title: "RELEASE: Add new components"
142
+ - Contains commit: "feat: add new Button variant"
143
+
144
+ ✅ **Will trigger a patch release:**
145
+
146
+ - PR title: "RELEASE: Bug fixes"
147
+ - Contains commit: "fix: resolve styling issue"
148
+
149
+ ✅ **Will trigger a major release:**
150
+
151
+ - PR title: "RELEASE: Breaking API changes"
152
+ - Contains commit with: "BREAKING CHANGE: removed deprecated props"
153
+
154
+ ❌ **Will NOT trigger any release:**
155
+
156
+ - PR title: "Add new components" (missing "RELEASE")
157
+ - Even with commits like "feat: new component"
158
+
125
159
  #### Manual Release
126
160
 
127
161
  If needed, you can manually trigger a release:
@@ -131,9 +165,11 @@ npm run release
131
165
  ```
132
166
 
133
167
  ## Resources 📖
168
+
134
169
  - [Component Examples (Storybook)](https://helix-components.cms.app.crnet.org)
135
170
  - [Full Documentation (Style guide, Theming, Testing and more)](https://super-succotash-wg8qmo1.pages.github.io/)
136
171
  - [Need help? Message us on Slack](https://cruk.slack.com/archives/C07BNR9FY4E)
137
172
 
138
173
  ## 📄 Licence
174
+
139
175
  MIT © Cancer Research UK
@@ -1,2 +1,2 @@
1
- "use client";"use strict";var e=require("react/jsx-runtime"),t=require("@chakra-ui/icons"),i=require("@chakra-ui/react"),a=require("../Button/index.js");require("../Flex/index.js");var s=require("../Heading/index.js"),r=require("../Icon/index.js"),n=require("../Image/index.js"),o=require("../KeyStatistics/index.js"),l=require("../Link/index.js"),c=require("../Text/index.js"),d=require("../KeyStatistics/TwoBlockStatistics.js");const x=t=>{const{as:a,src:s,alt:r,width:o,height:l,aspectHeight:c,aspectWidth:d,aspectMaxHeight:x,aspectMaxWidth:h,style:g,...u}=t;return e.jsx(i.AspectRatio,{height:c,width:d,ratio:1,minW:128,minH:128,maxW:h,maxH:x,...u,children:e.jsx(n.Image,{as:a,src:s,alt:r,width:o,height:l,style:g})})},h=t=>e.jsx(i.Box,{display:{base:"block",md:"flex"},flex:{base:"unset",md:1},children:e.jsx(x,{...t})}),g=({image:t,icon:i,singleKeyStats:a,twoBlockStats:s})=>{if(i)return e.jsx(r.Icon,{name:i.name});if(a)return e.jsx(o.SingleStatistics,{statistic:a.statistic,isBarChart:a.isBarChart,labelStyle:a.labelStyle,hasSecondaryStyling:a.hasSecondaryStyling,icon:a.icon&&{name:a.icon.name,color:a.icon.color}});if(s)return e.jsx(d.TwoBlockStatistics,{hasSecondaryStyling:s.hasSecondaryStyling,leftValue:s.leftValue,rightValue:s.rightValue});const{isWrapped:n,...l}=t??{};return n?e.jsx(h,{...l}):e.jsx(x,{...l})},u=i.forwardRef(((n,o)=>{const{variant:d="unstyled",image:x,cardImageContainer:h,icon:u,label:j,heading:p,description:S,button:m,link:y,href:f,singleKeyStats:k,twoBlockStats:w,stackProps:b,tag:B,cardLayout:v="vertical",...C}=n,q="groupNavigation"===d||"singleNavigation"===d||"noImageNavigation"===d,I=Boolean(x||u||k||w);return e.jsx(i.Card,{ref:o,variant:d,href:f,...C,children:e.jsxs(i.Flex,{direction:"horizontal"===v?{base:"column",lg:"row"}:"column",width:"100%",children:[I&&e.jsxs(i.Box,{style:{position:"relative"},flexShrink:0,width:"horizontal"===v?{base:"100%",lg:"293px"}:"100%",height:h,children:[e.jsx(g,{image:x,icon:u,singleKeyStats:k,twoBlockStats:w}),B&&e.jsx(i.Tag,{style:{position:"absolute",top:0},...B})]}),e.jsxs(i.Stack,{width:"100%",spacing:4,height:"100%",children:[e.jsx(i.CardBody,{display:"horizontal"===v?"flex":void 0,alignItems:"horizontal"===v?"center":void 0,height:"100%",py:7,children:e.jsxs(i.Stack,{spacing:2,width:"100%",height:"100%",flex:1,justifyContent:"center",...b,children:[j&&e.jsx(c.Text,{bgColor:"cardTextBackgroundColor",variant:"label",className:"label-text",width:"fit-content",py:1,px:3,children:j}),p&&e.jsxs(i.Flex,{justifyContent:"space-between",alignItems:"center",width:"100%",children:[e.jsx(s.Heading4,{...p}),q&&e.jsx(r.Icon,{as:t.ArrowForwardIcon,boxSize:6,p:0})]}),S]})}),(m||y)&&e.jsxs(i.CardFooter,{alignItems:"flex-start",children:[m&&e.jsx(a.Button,{...m}),y&&e.jsx(l.Link,{...y})]})]})]})})})),j=i.forwardRef(((t,r)=>{const{heading:n,description:o,hasSteps:c=!1,numberOfColumns:d,cards:x,link:h,button:g,gridGap:j={base:6,lg:8,xl:10},...p}=t;return e.jsxs(i.Stack,{ref:r,spacing:6,...p,children:[n&&e.jsx(s.Heading2,{...n}),o,x&&e.jsx(i.SimpleGrid,{columns:d,gap:j,children:x.map(((t,i)=>e.jsx(u,{label:c?`Step: ${i+1}`:void 0,...t},`card-item-${i}`)))}),g&&e.jsx(a.Button,{...g}),h&&e.jsx(l.Link,{...h})]})}));exports.Card=u,exports.CardStack=j;
1
+ "use client";"use strict";var e=require("react/jsx-runtime"),t=require("@chakra-ui/icons"),i=require("@chakra-ui/react"),a=require("../Button/index.js");require("../Flex/index.js");var s=require("../Heading/index.js"),r=require("../Icon/index.js"),n=require("../Image/index.js"),o=require("../KeyStatistics/index.js"),c=require("../Link/index.js"),l=require("../Text/index.js"),d=require("../KeyStatistics/TwoBlockStatistics.js");const x=t=>{const{as:a,src:s,alt:r,width:o,height:c,aspectHeight:l,aspectWidth:d,aspectMaxHeight:x,aspectMaxWidth:h,style:g,...u}=t;return e.jsx(i.AspectRatio,{height:l,width:d,ratio:1,minW:128,minH:128,maxW:h,maxH:x,...u,children:e.jsx(n.Image,{as:a,src:s,alt:r,width:o,height:c,style:g})})},h=t=>e.jsx(i.Box,{display:{base:"block",md:"flex"},flex:{base:"unset",md:1},children:e.jsx(x,{...t})}),g=({image:t,icon:i,singleKeyStats:a,twoBlockStats:s})=>{if(i)return e.jsx(r.Icon,{name:i.name});if(a)return e.jsx(o.SingleStatistics,{statistic:a.statistic,isBarChart:a.isBarChart,labelStyle:a.labelStyle,hasSecondaryStyling:a.hasSecondaryStyling,icon:a.icon&&{name:a.icon.name,color:a.icon.color}});if(s)return e.jsx(d.TwoBlockStatistics,{hasSecondaryStyling:s.hasSecondaryStyling,leftValue:s.leftValue,rightValue:s.rightValue});const{isWrapped:n,...c}=t??{};return n?e.jsx(h,{...c}):e.jsx(x,{...c})},u=i.forwardRef(((n,o)=>{const{variant:d="unstyled",image:x,cardImageContainer:h,icon:u,label:j,heading:m,description:p,button:S,link:y,href:f,singleKeyStats:k,twoBlockStats:b,stackProps:w,tag:B,cardLayout:C="vertical",...q}=n,v="groupNavigation"===d||"singleNavigation"===d||"noImageNavigation"===d,I=Boolean(x||u||k||b),H="horizontal"===C?{flexDirection:{base:"column",lg:"row"}}:{};return e.jsxs(i.Card,{ref:o,variant:d,href:f,sx:H,...q,children:[I&&e.jsxs(i.Box,{className:"card-imagery-container",position:"relative",height:h,children:[e.jsx(g,{image:x,icon:u,singleKeyStats:k,twoBlockStats:b}),B&&e.jsx(i.Tag,{style:{position:"absolute",top:0},...B})]}),e.jsxs(i.Stack,{width:"100%",spacing:4,height:"100%",children:[e.jsx(i.CardBody,{children:e.jsxs(i.Stack,{spacing:2,width:"100%",height:"100%",justifyContent:"horizontal"===C?"center":"flex-start",flex:1,...w,children:[j&&e.jsx(l.Text,{bgColor:"cardTextBackgroundColor",variant:"label",className:"label-text",width:"fit-content",py:1,px:3,children:j}),m&&e.jsxs(i.Flex,{justifyContent:"space-between",alignItems:"center",width:"100%",children:[e.jsx(s.Heading4,{...m}),v&&e.jsx(r.Icon,{as:t.ArrowForwardIcon,boxSize:6,p:0})]}),p]})}),(S||y)&&e.jsxs(i.CardFooter,{alignItems:"flex-start",children:[S&&e.jsx(a.Button,{...S}),y&&e.jsx(c.Link,{...y})]})]})]})})),j=i.forwardRef(((t,r)=>{const{heading:n,description:o,hasSteps:l=!1,numberOfColumns:d,cards:x,link:h,button:g,gridGap:j={base:6,lg:8,xl:10},...m}=t;return e.jsxs(i.Stack,{ref:r,spacing:6,...m,children:[n&&e.jsx(s.Heading2,{...n}),o,x&&e.jsx(i.SimpleGrid,{columns:d,gap:j,children:x.map(((t,i)=>e.jsx(u,{label:l?`Step: ${i+1}`:void 0,...t},`card-item-${i}`)))}),g&&e.jsx(a.Button,{...g}),h&&e.jsx(c.Link,{...h})]})}));exports.Card=u,exports.CardStack=j;
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","restImageProps","_jsx","AspectRatio","ratio","minW","minH","maxW","maxH","children","jsx","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","ChakraCard","_jsxs","Flex","direction","lg","jsxs","position","flexShrink","Tag","top","Stack","spacing","CardBody","undefined","alignItems","py","justifyContent","Text","bgColor","className","px","Heading4","ArrowForwardIcon","boxSize","p","CardFooter","Button","Link","CardStack","hasSteps","numberOfColumns","cards","gridGap","xl","Heading2","SimpleGrid","columns","gap","map","card","index"],"mappings":"8aAuDA,MAAMA,EAAaC,IACjB,MAAMC,GACJA,EAAEC,IACFA,EAAGC,IACHA,EAAGC,MACHA,EAAKC,OACLA,EAAMC,aACNA,EAAYC,YACZA,EAAWC,gBACXA,EAAeC,eACfA,EAAcC,MACdA,KACGC,GAC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GJC,GACCa,EAAAI,KAACH,EAAIA,KAAA,CACHc,eAAe,gBACfF,WAAW,SACX1E,MAAM,OAAMe,SAAA,CAEZP,EAAAA,IAACyE,EAAAA,SAAa,IAAAjC,IACbS,GACCjD,MAACqB,EAAAA,KAAK,CAAAhC,GAAIqF,EAAAA,iBAAkBC,QAAS,EAAGC,EAAG,OAIhDnC,QAIHC,GAAUC,IACVU,EAACI,KAAAoB,aAAW,CAAAX,WAAW,aACpB3D,SAAA,CAAAmC,GAAU1C,EAAAQ,IAACsE,SAAM,IAAKpC,IACtBC,GAAQ3C,MAAC+E,EAAAA,KAAI,IAAKpC,cAKhB,IAeXqC,EAAY9C,EAAUA,YAAwB,CAACC,EAAOC,KAC1D,MAAMI,QACJA,EAAOC,YACPA,EAAWwC,SACXA,GAAW,EAAKC,gBAChBA,EAAeC,MACfA,EAAKxC,KACLA,EAAID,OACJA,EAAM0C,QACNA,EAAU,CAAEvE,KAAM,EAAG2C,GAAI,EAAG6B,GAAI,OAC7BrC,GACDb,EACJ,OACEkB,OAACS,EAAKA,MAAA,CAAC1B,IAAKA,EAAK2B,QAAS,KAAOf,YAC9BR,GAAWxC,EAAAA,IAACsF,EAAAA,SAAQ,IAAK9C,IACzBC,EACA0C,GACCnF,EAAAA,IAACuF,EAAAA,YAAWC,QAASN,EAAiBO,IAAKL,EAAO7E,SAC/C4E,EAAMO,KAAI,CAACC,EAAMC,IAChB5F,EAAAA,IAACiC,EAEC,CAAAM,MAAO0C,EAAW,SAASW,EAAQ,SAAM3B,KACrC0B,GAFC,aAAaC,SAOzBlD,GAAU1C,EAAAA,IAAC8E,EAAAA,OAAW,IAAApC,IACtBC,GAAQ3C,EAAAA,IAAC+E,EAAAA,SAASpC,MACb"}
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","restImageProps","_jsx","AspectRatio","ratio","minW","minH","maxW","maxH","children","jsx","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","jsxs","ChakraCard","sx","className","position","Tag","top","Stack","spacing","CardBody","justifyContent","Text","bgColor","py","px","Flex","alignItems","Heading4","ArrowForwardIcon","boxSize","p","CardFooter","Button","Link","CardStack","hasSteps","numberOfColumns","cards","gridGap","xl","Heading2","SimpleGrid","columns","gap","map","card","index","undefined"],"mappings":"8aAuDA,MAAMA,EAAaC,IACjB,MAAMC,GACJA,EAAEC,IACFA,EAAGC,IACHA,EAAGC,MACHA,EAAKC,OACLA,EAAMC,aACNA,EAAYC,YACZA,EAAWC,gBACXA,EAAeC,eACfA,EAAcC,MACdA,KACGC,GACDX,EAEJ,OACEY,EAAAA,IAACC,EAAAA,YAAW,CACVR,OAAQC,EACRF,MAAOG,EACPO,MAAO,EACPC,KAAM,IACNC,KAAM,IACNC,KAAMR,EACNS,KAAMV,KACFG,EAEJQ,SAAAP,EAAAQ,IAACC,QAAK,CACJpB,GAAIA,EACJC,IAAKA,EACLC,IAAKA,EACLC,MAAOA,EACPC,OAAQA,EACRK,MAAOA,KAEG,EAIZY,EAAoBtB,GACxBY,EAAAQ,IAACG,MAAI,CAAAC,QAAS,CAAEC,KAAM,QAASC,GAAI,QAAUC,KAAM,CAAEF,KAAM,QAASC,GAAI,GAAGP,SACzEP,MAACb,EAAS,IAAMC,MAId4B,EAAc,EAClBC,QACAC,OACAC,iBACAC,oBAEA,GAAIF,EACF,OAAOlB,EAAAA,IAACqB,EAAAA,KAAK,CAAAC,KAAMJ,EAAKI,OAG1B,GAAIH,EACF,OACEnB,EAAAA,IAACuB,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,EACA0C,GACCnF,EAAAA,IAACuF,EAAAA,YAAWC,QAASN,EAAiBO,IAAKL,EAAO7E,SAC/C4E,EAAMO,KAAI,CAACC,EAAMC,IAChB5F,EAAAA,IAACiC,EAEC,CAAAM,MAAO0C,EAAW,SAASW,EAAQ,SAAMC,KACrCF,GAFC,aAAaC,SAOzBlD,GAAU1C,EAAAA,IAAC8E,EAAAA,OAAW,IAAApC,IACtBC,GAAQ3C,EAAAA,IAAC+E,EAAAA,SAASpC,MACb"}
@@ -1,2 +1,2 @@
1
- "use client";import{jsx as t,jsxs as i}from"react/jsx-runtime";import{ArrowForwardIcon as e}from"@chakra-ui/icons";import{forwardRef as a,Card as n,Flex as r,Box as o,Tag as s,Stack as l,CardBody as c,CardFooter as h,SimpleGrid as d,AspectRatio as m}from"@chakra-ui/react";import{Button as g}from"../Button/index.js";import"../Flex/index.js";import{Heading4 as p,Heading2 as u}from"../Heading/index.js";import{Icon as f}from"../Icon/index.js";import{Image as x}from"../Image/index.js";import{SingleStatistics as y}from"../KeyStatistics/index.js";import{Link as S}from"../Link/index.js";import{Text as b}from"../Text/index.js";import{TwoBlockStatistics as w}from"../KeyStatistics/TwoBlockStatistics.js";const k=i=>{const{as:e,src:a,alt:n,width:r,height:o,aspectHeight:s,aspectWidth:l,aspectMaxHeight:c,aspectMaxWidth:h,style:d,...g}=i;return t(m,{height:s,width:l,ratio:1,minW:128,minH:128,maxW:h,maxH:c,...g,children:t(x,{as:e,src:a,alt:n,width:r,height:o,style:d})})},j=i=>t(o,{display:{base:"block",md:"flex"},flex:{base:"unset",md:1},children:t(k,{...i})}),v=({image:i,icon:e,singleKeyStats:a,twoBlockStats:n})=>{if(e)return t(f,{name:e.name});if(a)return t(y,{statistic:a.statistic,isBarChart:a.isBarChart,labelStyle:a.labelStyle,hasSecondaryStyling:a.hasSecondaryStyling,icon:a.icon&&{name:a.icon.name,color:a.icon.color}});if(n)return t(w,{hasSecondaryStyling:n.hasSecondaryStyling,leftValue:n.leftValue,rightValue:n.rightValue});const{isWrapped:r,...o}=i??{};return t(r?j:k,{...o})},B=a(((a,d)=>{const{variant:m="unstyled",image:u,cardImageContainer:x,icon:y,label:w,heading:k,description:j,button:B,link:C,href:I,singleKeyStats:z,twoBlockStats:H,stackProps:K,tag:W,cardLayout:N="vertical",...V}=a,T="groupNavigation"===m||"singleNavigation"===m||"noImageNavigation"===m,L=Boolean(u||y||z||H);return t(n,{ref:d,variant:m,href:I,...V,children:i(r,{direction:"horizontal"===N?{base:"column",lg:"row"}:"column",width:"100%",children:[L&&i(o,{style:{position:"relative"},flexShrink:0,width:"horizontal"===N?{base:"100%",lg:"293px"}:"100%",height:x,children:[t(v,{image:u,icon:y,singleKeyStats:z,twoBlockStats:H}),W&&t(s,{style:{position:"absolute",top:0},...W})]}),i(l,{width:"100%",spacing:4,height:"100%",children:[t(c,{display:"horizontal"===N?"flex":void 0,alignItems:"horizontal"===N?"center":void 0,height:"100%",py:7,children:i(l,{spacing:2,width:"100%",height:"100%",flex:1,justifyContent:"center",...K,children:[w&&t(b,{bgColor:"cardTextBackgroundColor",variant:"label",className:"label-text",width:"fit-content",py:1,px:3,children:w}),k&&i(r,{justifyContent:"space-between",alignItems:"center",width:"100%",children:[t(p,{...k}),T&&t(f,{as:e,boxSize:6,p:0})]}),j]})}),(B||C)&&i(h,{alignItems:"flex-start",children:[B&&t(g,{...B}),C&&t(S,{...C})]})]})]})})})),C=a(((e,a)=>{const{heading:n,description:r,hasSteps:o=!1,numberOfColumns:s,cards:c,link:h,button:m,gridGap:p={base:6,lg:8,xl:10},...f}=e;return i(l,{ref:a,spacing:6,...f,children:[n&&t(u,{...n}),r,c&&t(d,{columns:s,gap:p,children:c.map(((i,e)=>t(B,{label:o?`Step: ${e+1}`:void 0,...i},`card-item-${e}`)))}),m&&t(g,{...m}),h&&t(S,{...h})]})}));export{B as Card,C as CardStack};
1
+ "use client";import{jsxs as t,jsx as e}from"react/jsx-runtime";import{ArrowForwardIcon as i}from"@chakra-ui/icons";import{forwardRef as a,Card as n,Box as r,Tag as o,Stack as s,CardBody as l,Flex as c,CardFooter as d,SimpleGrid as h,AspectRatio as m}from"@chakra-ui/react";import{Button as g}from"../Button/index.js";import"../Flex/index.js";import{Heading4 as p,Heading2 as f}from"../Heading/index.js";import{Icon as u}from"../Icon/index.js";import{Image as x}from"../Image/index.js";import{SingleStatistics as y}from"../KeyStatistics/index.js";import{Link as S}from"../Link/index.js";import{Text as b}from"../Text/index.js";import{TwoBlockStatistics as w}from"../KeyStatistics/TwoBlockStatistics.js";const j=t=>{const{as:i,src:a,alt:n,width:r,height:o,aspectHeight:s,aspectWidth:l,aspectMaxHeight:c,aspectMaxWidth:d,style:h,...g}=t;return e(m,{height:s,width:l,ratio:1,minW:128,minH:128,maxW:d,maxH:c,...g,children:e(x,{as:i,src:a,alt:n,width:r,height:o,style:h})})},k=t=>e(r,{display:{base:"block",md:"flex"},flex:{base:"unset",md:1},children:e(j,{...t})}),v=({image:t,icon:i,singleKeyStats:a,twoBlockStats:n})=>{if(i)return e(u,{name:i.name});if(a)return e(y,{statistic:a.statistic,isBarChart:a.isBarChart,labelStyle:a.labelStyle,hasSecondaryStyling:a.hasSecondaryStyling,icon:a.icon&&{name:a.icon.name,color:a.icon.color}});if(n)return e(w,{hasSecondaryStyling:n.hasSecondaryStyling,leftValue:n.leftValue,rightValue:n.rightValue});const{isWrapped:r,...o}=t??{};return e(r?k:j,{...o})},B=a(((a,h)=>{const{variant:m="unstyled",image:f,cardImageContainer:x,icon:y,label:w,heading:j,description:k,button:B,link:C,href:I,singleKeyStats:H,twoBlockStats:K,stackProps:N,tag:W,cardLayout:V="vertical",...z}=a,T="groupNavigation"===m||"singleNavigation"===m||"noImageNavigation"===m,L=Boolean(f||y||H||K);return t(n,{ref:h,variant:m,href:I,sx:"horizontal"===V?{flexDirection:{base:"column",lg:"row"}}:{},...z,children:[L&&t(r,{className:"card-imagery-container",position:"relative",height:x,children:[e(v,{image:f,icon:y,singleKeyStats:H,twoBlockStats:K}),W&&e(o,{style:{position:"absolute",top:0},...W})]}),t(s,{width:"100%",spacing:4,height:"100%",children:[e(l,{children:t(s,{spacing:2,width:"100%",height:"100%",justifyContent:"horizontal"===V?"center":"flex-start",flex:1,...N,children:[w&&e(b,{bgColor:"cardTextBackgroundColor",variant:"label",className:"label-text",width:"fit-content",py:1,px:3,children:w}),j&&t(c,{justifyContent:"space-between",alignItems:"center",width:"100%",children:[e(p,{...j}),T&&e(u,{as:i,boxSize:6,p:0})]}),k]})}),(B||C)&&t(d,{alignItems:"flex-start",children:[B&&e(g,{...B}),C&&e(S,{...C})]})]})]})})),C=a(((i,a)=>{const{heading:n,description:r,hasSteps:o=!1,numberOfColumns:l,cards:c,link:d,button:m,gridGap:p={base:6,lg:8,xl:10},...u}=i;return t(s,{ref:a,spacing:6,...u,children:[n&&e(f,{...n}),r,c&&e(h,{columns:l,gap:p,children:c.map(((t,i)=>e(B,{label:o?`Step: ${i+1}`:void 0,...t},`card-item-${i}`)))}),m&&e(g,{...m}),d&&e(S,{...d})]})}));export{B as Card,C 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","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","ChakraCard","_jsxs","Flex","direction","lg","position","flexShrink","Tag","top","Stack","spacing","CardBody","undefined","alignItems","py","justifyContent","Text","bgColor","className","px","Heading4","ArrowForwardIcon","boxSize","p","CardFooter","Button","Link","CardStack","hasSteps","numberOfColumns","cards","gridGap","xl","Heading2","SimpleGrid","columns","gap","map","card","index"],"mappings":"8rBAuDA,MAAMA,EAAaC,IACjB,MAAMC,GACJA,EAAEC,IACFA,EAAGC,IACHA,EAAGC,MACHA,EAAKC,OACLA,EAAMC,aACNA,EAAYC,YACZA,EAAWC,gBACXA,EAAeC,eACfA,EAAcC,MACdA,KACGC,GACDX,EAEJ,OACEY,EAACC,EAAW,CACVR,OAAQC,EACRF,MAAOG,EACPO,MAAO,EACPC,KAAM,IACNC,KAAM,IACNC,KAAMR,EACNS,KAAMV,KACFG,EAEJQ,SAAAP,EAACQ,EAAK,CACJnB,GAAIA,EACJC,IAAKA,EACLC,IAAKA,EACLC,MAAOA,EACPC,OAAQA,EACRK,MAAOA,KAEG,EAIZW,EAAoBrB,GACxBY,EAACU,EAAI,CAAAC,QAAS,CAAEC,KAAM,QAASC,GAAI,QAAUC,KAAM,CAAEF,KAAM,QAASC,GAAI,GAAGN,SACzEP,EAACb,EAAS,IAAMC,MAId2B,EAAc,EAClBC,QACAC,OACAC,iBACAC,oBAEA,GAAIF,EACF,OAAOjB,EAACoB,EAAK,CAAAC,KAAMJ,EAAKI,OAG1B,GAAIH,EACF,OACElB,EAACsB,EAAgB,CACfC,UAAWL,EAAeK,UAC1BC,WAAYN,EAAeM,WAC3BC,WAAYP,EAAeO,WAC3BC,oBAAqBR,EAAeQ,oBACpCT,KACEC,EAAeD,MAAQ,CACrBI,KAAMH,EAAeD,KAAKI,KAC1BM,MAAOT,EAAeD,KAAKU,SAOrC,GAAIR,EACF,OACEnB,EAAC4B,EAAkB,CACjBF,oBAAqBP,EAAcO,oBACnCG,UAAWV,EAAcU,UACzBC,WAAYX,EAAcW,aAKhC,MAAMC,UAAEA,KAAc3C,GAAe4B,GAAS,CAAE,EAEhD,OACEhB,EADK+B,EACJtB,EAEAtB,MAFqBC,GAGvB,EAGG4C,EAAOC,GAA6B,CAACC,EAAOC,KAChD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,aACV7E,MAAM,cACNyE,GAAI,EACJK,GAAI,EAAC/D,SAEJ+B,IAGJC,GACCa,EAACC,EAAI,CACHa,eAAe,gBACfF,WAAW,SACXxE,MAAM,OAAMe,SAAA,CAEZP,EAACuE,EAAa,IAAAhC,IACbS,GACChD,EAACoB,EAAK,CAAA/B,GAAImF,EAAkBC,QAAS,EAAGC,EAAG,OAIhDlC,QAIHC,GAAUC,IACVU,EAACuB,EAAW,CAAAX,WAAW,aACpBzD,SAAA,CAAAkC,GAAUzC,EAAC4E,EAAM,IAAKnC,IACtBC,GAAQ1C,EAAC6E,EAAI,IAAKnC,cAKhB,IAeXoC,EAAY7C,GAAkC,CAACC,EAAOC,KAC1D,MAAMI,QACJA,EAAOC,YACPA,EAAWuC,SACXA,GAAW,EAAKC,gBAChBA,EAAeC,MACfA,EAAKvC,KACLA,EAAID,OACJA,EAAMyC,QACNA,EAAU,CAAEtE,KAAM,EAAG2C,GAAI,EAAG4B,GAAI,OAC7BpC,GACDb,EACJ,OACEkB,EAACQ,EAAK,CAACzB,IAAKA,EAAK0B,QAAS,KAAOd,YAC9BR,GAAWvC,EAACoF,EAAQ,IAAK7C,IACzBC,EACAyC,GACCjF,EAACqF,GAAWC,QAASN,EAAiBO,IAAKL,EAAO3E,SAC/C0E,EAAMO,KAAI,CAACC,EAAMC,IAChB1F,EAACgC,EAEC,CAAAM,MAAOyC,EAAW,SAASW,EAAQ,SAAM3B,KACrC0B,GAFC,aAAaC,SAOzBjD,GAAUzC,EAAC4E,EAAW,IAAAnC,IACtBC,GAAQ1C,EAAC6E,MAASnC,MACb"}
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","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","CardFooter","Button","Link","CardStack","hasSteps","numberOfColumns","cards","gridGap","xl","Heading2","SimpleGrid","columns","gap","map","card","index","undefined"],"mappings":"8rBAuDA,MAAMA,EAAaC,IACjB,MAAMC,GACJA,EAAEC,IACFA,EAAGC,IACHA,EAAGC,MACHA,EAAKC,OACLA,EAAMC,aACNA,EAAYC,YACZA,EAAWC,gBACXA,EAAeC,eACfA,EAAcC,MACdA,KACGC,GACDX,EAEJ,OACEY,EAACC,EAAW,CACVR,OAAQC,EACRF,MAAOG,EACPO,MAAO,EACPC,KAAM,IACNC,KAAM,IACNC,KAAMR,EACNS,KAAMV,KACFG,EAEJQ,SAAAP,EAACQ,EAAK,CACJnB,GAAIA,EACJC,IAAKA,EACLC,IAAKA,EACLC,MAAOA,EACPC,OAAQA,EACRK,MAAOA,KAEG,EAIZW,EAAoBrB,GACxBY,EAACU,EAAI,CAAAC,QAAS,CAAEC,KAAM,QAASC,GAAI,QAAUC,KAAM,CAAEF,KAAM,QAASC,GAAI,GAAGN,SACzEP,EAACb,EAAS,IAAMC,MAId2B,EAAc,EAClBC,QACAC,OACAC,iBACAC,oBAEA,GAAIF,EACF,OAAOjB,EAACoB,EAAK,CAAAC,KAAMJ,EAAKI,OAG1B,GAAIH,EACF,OACElB,EAACsB,EAAgB,CACfC,UAAWL,EAAeK,UAC1BC,WAAYN,EAAeM,WAC3BC,WAAYP,EAAeO,WAC3BC,oBAAqBR,EAAeQ,oBACpCT,KACEC,EAAeD,MAAQ,CACrBI,KAAMH,EAAeD,KAAKI,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AM,KACF8B,EAEHrC,SAAA,CAAA+B,GACCtC,EAACgE,EACC,CAAAC,QAAQ,0BACR7B,QAAQ,QACRoB,UAAU,aACVhE,MAAM,cACN0E,GAAI,EACJC,GAAI,EAEH5D,SAAA+B,IAGJC,GACCY,EAACiB,EACC,CAAAL,eAAe,gBACfM,WAAW,SACX7E,MAAM,OAENe,SAAA,CAAAP,EAACsE,EAAQ,IAAK/B,IACbS,GACChD,EAACoB,EAAK,CAAA/B,GAAIkF,EAAkBC,QAAS,EAAGC,EAAG,OAIhDjC,QAIHC,GAAUC,IACVS,EAACuB,EAAW,CAAAL,WAAW,aACpB9D,SAAA,CAAAkC,GAAUzC,EAAC2E,EAAM,IAAKlC,IACtBC,GAAQ1C,EAAC4E,EAAI,IAAKlC,YAId,IAeXmC,EAAY5C,GAAkC,CAACC,EAAOC,KAC1D,MAAMI,QACJA,EAAOC,YACPA,EAAWsC,SACXA,GAAW,EAAKC,gBAChBA,EAAeC,MACfA,EAAKtC,KACLA,EAAID,OACJA,EAAMwC,QACNA,EAAU,CAAErE,KAAM,EAAG2C,GAAI,EAAG2B,GAAI,OAC7BnC,GACDb,EACJ,OACEiB,EAACS,EAAK,CAACzB,IAAKA,EAAK0B,QAAS,KAAOd,YAC9BR,GAAWvC,EAACmF,EAAQ,IAAK5C,IACzBC,EACAwC,GACChF,EAACoF,GAAWC,QAASN,EAAiBO,IAAKL,EAAO1E,SAC/CyE,EAAMO,KAAI,CAACC,EAAMC,IAChBzF,EAACgC,EAEC,CAAAM,MAAOwC,EAAW,SAASW,EAAQ,SAAMC,KACrCF,GAFC,aAAaC,SAOzBhD,GAAUzC,EAAC2E,EAAW,IAAAlC,IACtBC,GAAQ1C,EAAC4E,MAASlC,MACb"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cruk/chakra-components",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "description": "Chakra UI v2 based components for CRUK applications",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,