@cruk/chakra-components 2.0.0 → 2.0.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/README.md +3 -3
- package/dist/cjs/components/Checkbox/index.js.map +1 -1
- package/dist/cjs/components/FileUploader/FileItem.js.map +1 -1
- package/dist/cjs/components/FileUploader/index.js.map +1 -1
- package/dist/cjs/components/Link/index.js.map +1 -1
- package/dist/cjs/components/PopoverAlert/index.js +2 -0
- package/dist/cjs/components/PopoverAlert/index.js.map +1 -0
- package/dist/cjs/components/RichHeader/index.js.map +1 -1
- package/dist/cjs/components/SideNav/index.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/theme/cruk/components/card.js.map +1 -1
- package/dist/cjs/theme/cruk/components/link.js.map +1 -1
- package/dist/cjs/theme/cruk/components/popover.js +1 -1
- package/dist/cjs/theme/cruk/components/popover.js.map +1 -1
- package/dist/cjs/theme/cruk/components/progress.js.map +1 -1
- package/dist/cjs/theme/cruk/components/stepper.js.map +1 -1
- package/dist/cjs/theme/cruk/foundations/colors.js +1 -1
- package/dist/cjs/theme/cruk/foundations/colors.js.map +1 -1
- package/dist/cjs/theme/cruk/foundations/semantic-tokens.js +1 -1
- package/dist/cjs/theme/cruk/foundations/semantic-tokens.js.map +1 -1
- package/dist/cjs/theme/cruk/index.js.map +1 -1
- package/dist/cjs/theme/r4l/components/link.js.map +1 -1
- package/dist/cjs/theme/r4l/components/progress.js.map +1 -1
- package/dist/cjs/theme/r4l/foundations/colors.js +1 -1
- package/dist/cjs/theme/r4l/foundations/colors.js.map +1 -1
- package/dist/cjs/theme/su2c/components/accordion.js.map +1 -1
- package/dist/cjs/theme/su2c/components/button.js +1 -1
- package/dist/cjs/theme/su2c/components/button.js.map +1 -1
- package/dist/cjs/theme/su2c/components/link.js.map +1 -1
- package/dist/cjs/theme/su2c/components/radio.js.map +1 -1
- package/dist/cjs/theme/su2c/components/stepper.js.map +1 -1
- package/dist/cjs/theme/su2c/components/tabs.js.map +1 -1
- package/dist/cjs/theme/su2c/foundations/colors.js +1 -1
- package/dist/cjs/theme/su2c/foundations/colors.js.map +1 -1
- package/dist/cjs/theme/su2c/foundations/semantic-tokens.js +1 -1
- package/dist/cjs/theme/su2c/foundations/semantic-tokens.js.map +1 -1
- package/dist/esm/components/Checkbox/index.js.map +1 -1
- package/dist/esm/components/FileUploader/FileItem.js.map +1 -1
- package/dist/esm/components/FileUploader/index.js.map +1 -1
- package/dist/esm/components/Link/index.js.map +1 -1
- package/dist/esm/components/PopoverAlert/index.js +2 -0
- package/dist/esm/components/PopoverAlert/index.js.map +1 -0
- package/dist/esm/components/RichHeader/index.js.map +1 -1
- package/dist/esm/components/SideNav/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/theme/cruk/components/card.js.map +1 -1
- package/dist/esm/theme/cruk/components/link.js.map +1 -1
- package/dist/esm/theme/cruk/components/popover.js +1 -1
- package/dist/esm/theme/cruk/components/popover.js.map +1 -1
- package/dist/esm/theme/cruk/components/progress.js.map +1 -1
- package/dist/esm/theme/cruk/components/stepper.js.map +1 -1
- package/dist/esm/theme/cruk/foundations/colors.js +1 -1
- package/dist/esm/theme/cruk/foundations/colors.js.map +1 -1
- package/dist/esm/theme/cruk/foundations/semantic-tokens.js +1 -1
- package/dist/esm/theme/cruk/foundations/semantic-tokens.js.map +1 -1
- package/dist/esm/theme/r4l/components/link.js.map +1 -1
- package/dist/esm/theme/r4l/components/progress.js.map +1 -1
- package/dist/esm/theme/r4l/foundations/colors.js +1 -1
- package/dist/esm/theme/r4l/foundations/colors.js.map +1 -1
- package/dist/esm/theme/su2c/components/accordion.js.map +1 -1
- package/dist/esm/theme/su2c/components/button.js +1 -1
- package/dist/esm/theme/su2c/components/button.js.map +1 -1
- package/dist/esm/theme/su2c/components/link.js.map +1 -1
- package/dist/esm/theme/su2c/components/radio.js.map +1 -1
- package/dist/esm/theme/su2c/components/stepper.js.map +1 -1
- package/dist/esm/theme/su2c/components/tabs.js.map +1 -1
- package/dist/esm/theme/su2c/foundations/colors.js +1 -1
- package/dist/esm/theme/su2c/foundations/colors.js.map +1 -1
- package/dist/esm/theme/su2c/foundations/semantic-tokens.js +1 -1
- package/dist/esm/theme/su2c/foundations/semantic-tokens.js.map +1 -1
- package/dist/index.d.ts +15 -4
- package/package.json +11 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{defineStyleConfig as o}from"@chakra-ui/react";const t=o({baseStyle:{fontFamily:"body",fontWeight:"bold",borderRadius:"100px",textTransform:"uppercase",px:6,pt:
|
|
1
|
+
import{defineStyleConfig as o}from"@chakra-ui/react";const t=o({baseStyle:{fontFamily:"body",fontWeight:"bold",borderRadius:"100px",textTransform:"uppercase",px:6,pt:3,pb:2,"> span > svg":{mt:"-1"}},variants:{primary:{color:"buttonPrimaryText",bg:"buttonPrimaryBackground",_hover:{bg:"buttonPrimaryBackgroundHover",_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground"}},_focus:{bg:"buttonPrimaryBackgroundHover",_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground"},_pressed:{bg:"buttonPrimaryPressed"}},_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground",opacity:1}},primaryAlt:{color:"buttonPrimaryText",bg:"buttonPrimaryAltBackground",_hover:{bg:"buttonPrimaryAltBackgroundHover",_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground"}},_focus:{bg:"buttonPrimaryAltBackgroundHover",_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground"}},_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground",opacity:1}},secondary:{bg:"buttonSecondaryBackground",color:"su2c_black",outline:"2px solid",outlineColor:"buttonSecondaryBorder",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline",_hover:{color:"su2c_black",outlineColor:"buttonSecondaryBackgroundHover",bg:"buttonSecondaryBackgroundHover",_disabled:{color:"buttonSecondaryDisabledText"}},_focus:{outlineColor:"buttonSecondaryBackgroundHover",bg:"buttonSecondaryBackgroundHover",color:"buttonSecondaryText",_disabled:{color:"buttonSecondaryDisabledText",bg:"buttonSecondaryDisabledBackground"}},_disabled:{color:"buttonSecondaryDisabledText",opacity:1,outlineColor:"buttonSecondaryDisabledBorder",border:"1px",_hover:{outlineColor:"buttonSecondaryDisabledBorder"}},"> span > svg":{position:"relative",bottom:.5,fill:"buttonSecondaryIconFill","> path":{fill:"buttonSecondaryIconFill"}}},secondaryAlt:{bg:"buttonSecondaryAltBackground",color:"buttonSecondaryAltText",outline:"1px solid",outlineColor:"buttonSecondaryAltBorder",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline",_hover:{color:"buttonSecondaryAltTextHover",outlineColor:"buttonSecondaryAltBackgroundHover",bg:"buttonSecondaryAltBackgroundHover",_disabled:{color:"buttonSecondaryDisabledText"}},_focus:{bg:"buttonSecondaryAltBackground",color:"buttonSecondaryAltText",_disabled:{color:"buttonSecondaryDisabledText",bg:"buttonSecondaryDisabledBackground"}},_disabled:{color:"buttonSecondaryDisabledText",opacity:1,outlineColor:"buttonSecondaryDisabledBorder",_hover:{outlineColor:"buttonSecondaryDisabledBorder"}}},alternative:{fontFamily:"body",fontWeight:"semibold",bg:"buttonAlternativeBackground",color:"buttonAlternativeText",justifyContent:"space-between",textDecoration:"none",padding:"15px 24px",lineHeight:"1 !important",_hover:{color:"buttonAlternativeTextHover",_disabled:{color:"buttonAlternativeDisabledText",bg:"buttonAlternativeDisabledBackground"}},_disabled:{color:"buttonAlternativeDisabledText",bg:"buttonAlternativeDisabledBackground",opacity:1,_hover:{color:"buttonAlternativeDisabledText",bg:"buttonAlternativeDisabledBackground",opacity:1}},_focus:{color:"buttonTertiaryText"}},link:{fontWeight:"medium",bg:"buttonLinkBackground",color:"buttonLinkText",padding:0,_hover:{textDecoration:"underline"}},sU2CLink:{fontFamily:"body",fontWeight:"normal",color:"linkColor",textDecoration:"underline",fontSize:"text.md",lineHeight:"text.md",textTransform:"capitalize",_hover:{color:"linkColorHover"},_visited:{color:"linkColorVisited"},letterSpacing:"wide"},linkNoDecoration:{fontWeight:"medium",paddingInlineEnd:"0 !important",paddingInline:"0 !important",color:"buttonLinkText",padding:0,_hover:{textDecoration:"none"}},linkToggle:{fontWeight:"medium",bg:"buttonLinkBackground",color:"linkColor",padding:0,"> span":{alignSelf:"start",marginInlineEnd:0,marginInlineStart:0},_hover:{textDecoration:"underline"},_disabled:{cursor:"pointer"}},truncationControl:{textDecoration:"none",color:"truncateColor",display:"contents",padding:"0",width:"0",fontSize:{base:"text.sm",md:"text.sm",lg:"text.md",xl:"text.md"},lineHeight:{sm:"text.sm",md:"text.sm",lg:"text.md",xl:"text.md"},_visited:{color:"truncateColor"},_hover:{color:"truncateColorHover",textDecoration:"underline"}},toggle:{fontSize:{base:"text.sm",lg:"text.md"},display:"flex",justifyContent:"center",cursor:"pointer",bg:"buttonToggleBackground",color:"buttonToggleText",outline:"2px solid",outlineColor:"buttonToggleBorder",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline",_hover:{bg:"buttonToggleBackgroundHover",color:"buttonToggleText",outlineColor:"buttonToggleBackgroundHover",_disabled:{color:"buttonToggleDisabledText"}},padding:"12px 20px"},toggleSelected:{display:"flex",justifyContent:"center",cursor:"pointer",bg:"buttonToggleSelectedBackground",color:"buttonToggleText",outline:"2px solid",outlineColor:"buttonToggleSelectedBorder",padding:"12px 20px",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline"},toggleDisabled:{display:"flex",justifyContent:"center",cursor:"not-allowed",bg:"buttonToggleDisabledBackground",color:"black",outline:"2px solid",outlineColor:"buttonToggleDisabledBorder",opacity:1,padding:"12px 20px",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline"},ellipses:{display:"flex",justifyContent:"center",bg:"buttonToggleDisabledBackground",color:"black",opacity:1,padding:"0px 0px",_disabled:{opacity:1,cursor:"pointer"},transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline"},video:{bg:"buttonVideoBackground",color:"buttonVideoText",padding:4},citation:{position:"relative",verticalAlign:"super",color:"buttonCitationPrimary",_before:{content:'"["'},_after:{content:'"]"'},padding:0,margin:0,px:0,py:0,paddingInline:0,fontSize:"text.xs",_visited:{color:"buttonCitationPrimary",textDecoration:"none"},_hover:{color:"buttonCitationPrimary",textDecoration:"none",bg:"btnCitationBgPrimary"},_active:{color:"white",textDecoration:"none",bg:"buttonCitationPrimary"}},backToTop:{"> svg":{boxSize:{base:7,sm:10}},bg:"buttonPrimaryAltBackground",borderRadius:"full",boxSizing:"border-box",paddingInline:0,color:"white",boxShadow:{base:"2px 2px 6px rgba(0, 0, 0, 0.4)",sm:"none"},_active:{boxShadow:"none",bg:"buttonBackToTopHover"},_hover:{bg:"buttonBackToTopHover"},width:{base:"40px",sm:"56px"},height:{base:"40px",sm:"56px"}}},sizes:{md:{fontSize:{base:"text.sm",lg:"text.md"},lineHeight:"text.md",height:"auto",paddingInline:6},sm:{fontSize:"text.sm",lineHeight:"text.sm",height:"auto",paddingInline:6}},defaultProps:{variant:"primary"}});export{t as buttonTheme,t as default};
|
|
2
2
|
//# sourceMappingURL=button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sources":["../../../../../src/theme/su2c/components/button.ts"],"sourcesContent":[null],"names":["buttonTheme","defineStyleConfig","baseStyle","fontFamily","fontWeight","borderRadius","textTransform","px","pt","pb","variants","primary","color","bg","_hover","_disabled","_focus","_pressed","opacity","primaryAlt","secondary","outline","outlineColor","transitionProperty","border","position","bottom","secondaryAlt","alternative","justifyContent","textDecoration","padding","lineHeight","link","sU2CLink","fontSize","_visited","letterSpacing","linkNoDecoration","paddingInlineEnd","paddingInline","linkToggle","alignSelf","marginInlineEnd","marginInlineStart","cursor","truncationControl","display","width","base","md","lg","xl","sm","toggle","toggleSelected","toggleDisabled","ellipses","video","citation","verticalAlign","_before","content","_after","margin","py","_active","backToTop","boxSize","boxSizing","boxShadow","height","sizes","defaultProps","variant"],"mappings":"qDAEO,MAAMA,EAAcC,EAAkB,CAC3CC,UAAW,CACTC,WAAY,OACZC,WAAY,OACZC,aAAc,QACdC,cAAe,YACfC,GAAI,EACJC,GAAI,EACJC,GAAI,
|
|
1
|
+
{"version":3,"file":"button.js","sources":["../../../../../src/theme/su2c/components/button.ts"],"sourcesContent":[null],"names":["buttonTheme","defineStyleConfig","baseStyle","fontFamily","fontWeight","borderRadius","textTransform","px","pt","pb","mt","variants","primary","color","bg","_hover","_disabled","_focus","_pressed","opacity","primaryAlt","secondary","outline","outlineColor","transitionProperty","border","position","bottom","fill","secondaryAlt","alternative","justifyContent","textDecoration","padding","lineHeight","link","sU2CLink","fontSize","_visited","letterSpacing","linkNoDecoration","paddingInlineEnd","paddingInline","linkToggle","alignSelf","marginInlineEnd","marginInlineStart","cursor","truncationControl","display","width","base","md","lg","xl","sm","toggle","toggleSelected","toggleDisabled","ellipses","video","citation","verticalAlign","_before","content","_after","margin","py","_active","backToTop","boxSize","boxSizing","boxShadow","height","sizes","defaultProps","variant"],"mappings":"qDAEO,MAAMA,EAAcC,EAAkB,CAC3CC,UAAW,CACTC,WAAY,OACZC,WAAY,OACZC,aAAc,QACdC,cAAe,YACfC,GAAI,EACJC,GAAI,EACJC,GAAI,EACJ,eAAgB,CACdC,GAAI,OAGRC,SAAU,CACRC,QAAS,CACPC,MAAO,oBACPC,GAAI,0BACJC,OAAQ,CACND,GAAI,+BACJE,UAAW,CACTH,MAAO,4BACPC,GAAI,oCAGRG,OAAQ,CACNH,GAAI,+BACJE,UAAW,CACTH,MAAO,4BACPC,GAAI,mCAENI,SAAU,CACRJ,GAAI,yBAGRE,UAAW,CACTH,MAAO,4BACPC,GAAI,kCACJK,QAAS,IAGbC,WAAY,CACVP,MAAO,oBACPC,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|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","sources":["../../../../../src/theme/su2c/components/link.ts"],"sourcesContent":[null],"names":["linkTheme","defineStyleConfig","baseStyle","marginBlockStart","lg","base","fontFamily","fontWeight","color","textDecoration","fontSize","lineHeight","_hover","_visited","letterSpacing","variants","altInline","file","svg","navigation","navigationAlt","footer","mb","display","reference","left","position","verticalAlign","sizes","md","sm"],"mappings":"qDAEO,MAAMA,EAAYC,EAAkB,CACzCC,UAAW,CACT,yBAA0B,CAWxBC,iBAAkB,
|
|
1
|
+
{"version":3,"file":"link.js","sources":["../../../../../src/theme/su2c/components/link.ts"],"sourcesContent":[null],"names":["linkTheme","defineStyleConfig","baseStyle","marginBlockStart","lg","base","fontFamily","fontWeight","color","textDecoration","fontSize","lineHeight","_hover","_visited","letterSpacing","variants","altInline","file","svg","navigation","navigationAlt","footer","mb","display","reference","left","position","verticalAlign","sizes","md","sm"],"mappings":"qDAEO,MAAMA,EAAYC,EAAkB,CACzCC,UAAW,CACT,yBAA0B,CAWxBC,iBAAkB,CAChBC,GAAI,+BACJC,KAAM,kCAGVC,WAAY,OACZC,WAAY,WACZC,MAAO,YACPC,eAAgB,YAChBC,SAAU,UACVC,WAAY,UACZC,OAAQ,CACNJ,MAAO,kBAETK,SAAU,CACRL,MAAO,oBAETM,cAAe,QAEjBC,SAAU,CACRC,UAAW,CACTR,MAAO,eACPC,eAAgB,YAChBC,SAAU,UACVC,WAAY,UACZC,OAAQ,CACNJ,MAAO,gCAETK,SAAU,CACRL,MAAO,kCAETM,cAAe,QAEjBG,KAAM,CACJT,MAAO,YACPK,SAAU,CACRK,IAAK,CACHV,MAAO,sBAKbW,WAAY,CACVX,MAAO,sBACPC,eAAgB,OAChBG,OAAQ,CACNJ,MAAO,sBACPC,eAAgB,QAElBI,SAAU,CACRL,MAAO,sBACPI,OAAQ,CACNJ,MAAO,yBAIbY,cAAe,CACbX,eAAgB,OAChBG,OAAQ,CACNH,eAAgB,SAGpBY,OAAQ,CACNb,MAAO,YACPK,SAAU,CAAEL,MAAO,oBACnBI,OAAQ,CAAEJ,MAAO,kBACjBE,SAAU,UACVC,WAAY,UACZW,GAAI,IACJC,QAAS,QACTT,cAAe,QAEjBU,UAAW,CACThB,MAAO,iBACPiB,KAAM,MACNC,SAAU,WACVC,cAAe,SACff,OAAQ,CACNJ,MAAO,kBAKboB,MAAO,CACLC,GAAI,CACFnB,SAAU,UACVC,WAAY,WAEdmB,GAAI,CACFpB,SAAU,UACVC,WAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.js","sources":["../../../../../src/theme/su2c/components/radio.ts"],"sourcesContent":[null],"names":["definePartsStyle","defineMultiStyleConfig","createMultiStyleConfigHelpers","radioAnatomy","keys","radioTheme","baseStyle","control","borderColor","_checked","bg","color","_hover","_disabled","label","container","variants","outline","border","padding"],"mappings":"
|
|
1
|
+
{"version":3,"file":"radio.js","sources":["../../../../../src/theme/su2c/components/radio.ts"],"sourcesContent":[null],"names":["definePartsStyle","defineMultiStyleConfig","createMultiStyleConfigHelpers","radioAnatomy","keys","radioTheme","baseStyle","control","borderColor","_checked","bg","color","_hover","_disabled","label","container","variants","outline","border","padding"],"mappings":"gKAGA,MAAMA,iBAAEA,EAAgBC,uBAAEA,GACxBC,EAA8BC,EAAaC,MAuCvCC,EAAaJ,EAAuB,CACxCK,UAtCgBN,EAAiB,CACjCO,QAAS,CACPC,YAAa,kBACbC,SAAU,CACRD,YAAa,kBACbE,GAAI,QACJC,MAAO,UACPC,OAAQ,CACNJ,YAAa,kBACbE,GAAI,oBAGRG,UAAW,CACTH,GAAI,WACJF,YAAa,YAEfI,OAAQ,CACNF,GAAI,YAGRI,MAAO,CACLJ,GAAI,kBACJC,MAAO,YAETI,UAAW,CAAE,IAebC,SAAU,CAAEC,QAZEjB,EAAiB,CAC/BO,QAAS,CAAE,EACXO,MAAO,CAAE,EACTC,UAAW,CACTG,OAAQ,YACRV,YAAa,kBACbW,QAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepper.js","sources":["../../../../../src/theme/su2c/components/stepper.ts"],"sourcesContent":[null],"names":["stepperTheme","defineStyleConfig","baseStyle","display","width","backgroundColor","color","textTransform","stepper","gap","alignItems","maxWidth","pb","flex","description","base","xl","lg","md","sm","marginTop","fontFamily","fontWeight","fontSize","fontStyle","lineHeight","letterSpacing","marginLeft","step","separator","height","bgColor","visibility","indicator","zIndex","borderColor","borderWidth","outline","outlineOffset","marginBottom","transform"],"mappings":"qDAEO,MAAMA,EAAeC,EAAkB,CAC5CC,UAAW,CACT,OAAQ,CACNC,QAAS,
|
|
1
|
+
{"version":3,"file":"stepper.js","sources":["../../../../../src/theme/su2c/components/stepper.ts"],"sourcesContent":[null],"names":["stepperTheme","defineStyleConfig","baseStyle","display","width","backgroundColor","color","textTransform","stepper","gap","alignItems","maxWidth","pb","flex","description","base","xl","lg","md","sm","marginTop","fontFamily","fontWeight","fontSize","fontStyle","lineHeight","letterSpacing","marginLeft","step","separator","height","bgColor","visibility","indicator","zIndex","borderColor","borderWidth","outline","outlineOffset","marginBottom","transform"],"mappings":"qDAEO,MAAMA,EAAeC,EAAkB,CAC5CC,UAAW,CACT,OAAQ,CACNC,QAAS,eACTC,MAAO,OACPC,gBAAiB,cACjBC,MAAO,SAET,OAAQ,CACNC,cAAe,aAEjBC,QAAS,CACP,iCAAkC,CAChCC,IAAK,EACLC,WAAY,aACZC,SAAU,OACVC,GAAI,MAEN,kBAAmB,CACjB,iBAAkB,CAChBC,KAAM,WAIZC,YAAa,CACXX,QAAS,CACPY,KAAM,OACNC,GAAI,QACJC,GAAI,QACJC,GAAI,OACJC,GAAI,QAENC,UAAW,IACXT,SAAU,SACVL,MAAO,QACPe,WAAY,OACZC,WAAY,SACZC,SAAU,UACVC,UAAW,SACXC,WAAY,UACZC,cAAe,OACf,iCAAkC,CAChCC,WAAY,MAEd,+BAAgC,CAC9BA,WAAY,MAGhBC,KAAM,CACJnB,IAAK,GAEPoB,UAAW,CACTC,OAAQ,MACRC,QAAS,2BACT,+BAAgC,CAC9BC,WAAY,UAEd,0BAA2B,CACzBD,QAAS,0BAEX,iCAAkC,CAChCJ,WAAY,IAGhBM,UAAW,CACT7B,MAAO,CAAEW,KAAM,IAAKE,GAAI,IAAKD,GAAI,KACjCc,OAAQ,CAAEf,KAAM,IAAKE,GAAI,IAAKD,GAAI,KAClCkB,OAAQ,IAER,0BAA2B,CACzBH,QAAS,yBACTI,YAAa,yBACbC,YAAa,OAGf,wBAAyB,CACvBL,QAAS,uBACTI,YAAa,uBACbE,QAAS,CACPtB,KAAM,kBACNE,GAAI,kBACJD,GAAI,mBAENsB,cAAe,CAAEvB,KAAM,OAAQE,GAAI,OAAQD,GAAI,QAC/CZ,MAAO,CAAEW,KAAM,IAAKE,GAAI,KAAMD,GAAI,MAClCc,OAAQ,CAAEf,KAAM,IAAKE,GAAI,KAAMD,GAAI,MACnCuB,aAAc,KACdC,UAAW,oBAGb,4BAA6B,CAC3BT,QAAS,QACTI,YAAa,2BACbC,YAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.js","sources":["../../../../../src/theme/su2c/components/tabs.ts"],"sourcesContent":[null],"names":["definePartsStyle","defineMultiStyleConfig","createMultiStyleConfigHelpers","tabsAnatomy","keys","tabsTheme","baseStyle","tablist","tab","tabpanel","variants","default","borderTopRadius","border","borderBottom","borderColor","mr","fontWeight","_selected","bg","color","mb","_hover","pt","borderTop","defaultProps","variant"],"mappings":"+
|
|
1
|
+
{"version":3,"file":"tabs.js","sources":["../../../../../src/theme/su2c/components/tabs.ts"],"sourcesContent":[null],"names":["definePartsStyle","defineMultiStyleConfig","createMultiStyleConfigHelpers","tabsAnatomy","keys","tabsTheme","baseStyle","tablist","tab","tabpanel","variants","default","borderTopRadius","border","borderBottom","borderColor","mr","fontWeight","_selected","bg","color","mb","_hover","pt","borderTop","defaultProps","variant"],"mappings":"+JAGA,MAAMA,iBAAEA,EAAgBC,uBAAEA,GACxBC,EAA8BC,EAAYC,MAyCtCC,EAAYJ,EAAuB,CACvCK,UAxCgBN,EAAiB,CACjCO,QAAS,CAAE,EACXC,IAAK,CAAE,EACPC,SAAU,CAAE,IAsCZC,SANe,CACfC,QA9BqBX,GAAiB,KAAO,CAC7CQ,IAAK,CACHI,gBAAiB,MACjBC,OAAQ,YACRC,aAAc,OACdC,YAAa,UACbC,GAAI,IACJC,WAAY,SACZC,UAAW,CACTC,GAAI,UACJL,aAAc,OACdD,OAAQ,OACRO,MAAO,YACPH,WAAY,OACZI,GAAI,QAENC,OAAQ,CACNH,GAAI,UACJC,MAAO,cAGXb,QAAS,CAAE,EACXE,SAAU,CACRc,GAAI,IACJC,UAAW,YACXT,YAAa,gBAWfU,aAAc,CACZC,QAAS"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const F={su2c_black:"#231F20",orange:{100:"#FFEFDB",200:"#FFDAAD",300:"#FFB04D",500:"#FF8E00",600:"#FF8E00",700:"#EE5A04",800:"#D74100",900:"#BD3900"},red:{500:"#EF4135"},yellow:{500:"#FFC325"},grey:{100:"#E6E6E6",200:"#E5E5E7",500:"#A5A5A9",600:"#555759",800:"#3C3D3F"},status:{success:"#3D854D",warning:"#FDC02F",error:"#D51311",information:"#006DA7"}};export{F as default};
|
|
1
|
+
const F={su2c_black:"#231F20",orange:{100:"#FFEFDB",200:"#FFDAAD",300:"#FFB04D",500:"#FF8E00",600:"#FF8E00",700:"#EE5A04",800:"#D74100",900:"#BD3900"},red:{500:"#EF4135"},yellow:{500:"#FFC325"},grey:{100:"#E6E6E6",200:"#E5E5E7",500:"#A5A5A9",600:"#555759",800:"#3C3D3F"},status:{default:"#000000",success:"#3D854D",warning:"#FDC02F",error:"#D51311",information:"#006DA7"}};export{F as default};
|
|
2
2
|
//# sourceMappingURL=colors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.js","sources":["../../../../../src/theme/su2c/foundations/colors.ts"],"sourcesContent":[null],"names":["colors","su2c_black","orange","red","yellow","grey","status","success","warning","error","information"],"mappings":"AAAA,MAAMA,EAAS,CACbC,WAAY,UAEZC,OAAQ,CACN,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,WAEPC,IAAK,CACH,IAAK,WAEPC,OAAQ,CACN,IAAK,WAEPC,KAAM,CACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,WAEPC,OAAQ,CACNC,QAAS,UACTC,QAAS,UACTC,MAAO,UACPC,YAAa"}
|
|
1
|
+
{"version":3,"file":"colors.js","sources":["../../../../../src/theme/su2c/foundations/colors.ts"],"sourcesContent":[null],"names":["colors","su2c_black","orange","red","yellow","grey","status","default","success","warning","error","information"],"mappings":"AAAA,MAAMA,EAAS,CACbC,WAAY,UAEZC,OAAQ,CACN,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,WAEPC,IAAK,CACH,IAAK,WAEPC,OAAQ,CACN,IAAK,WAEPC,KAAM,CACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,WAEPC,OAAQ,CACNC,QAAS,UACTC,QAAS,UACTC,QAAS,UACTC,MAAO,UACPC,YAAa"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{componentTokens as r,brandBaseTokens as e}from"../../cruk/foundations/semantic-tokens.js";const o={...e,primary:"orange.500",secondary:"orange.500",tertiary:"su2c_black",textOnPrimary:"su2c_black",textOnSecondary:"su2c_black",textOnTertiary:"white"},t={...r,textDark:"su2c_black",textLight:"white",backgroundLight:"white",backgroundDark:o.textOnPrimary,textInputBorder:"grey.600",selectionBorder:"grey.500",selectBackground:"grey.900",disabled:"grey.300",buttonPrimaryBackground:"orange.
|
|
1
|
+
import{componentTokens as r,brandBaseTokens as e}from"../../cruk/foundations/semantic-tokens.js";const o={...e,primary:"orange.500",secondary:"orange.500",tertiary:"su2c_black",textOnPrimary:"su2c_black",textOnSecondary:"su2c_black",textOnTertiary:"white"},t={...r,textDark:"su2c_black",textLight:"white",backgroundLight:"white",backgroundDark:o.textOnPrimary,textInputBorder:"grey.600",selectionBorder:"grey.500",selectBackground:"grey.900",disabled:"grey.300",buttonPrimaryBackground:"orange.600",buttonPrimaryHover:"orange.700",buttonPrimaryBorder:"orange.600",buttonPrimaryText:"su2c_black",buttonPrimaryBorderHover:"orange.700",buttonPrimaryTextHover:"su2c_black",buttonPrimaryBackgroundHover:"orange.700",buttonPrimaryDisabledBackground:"grey.200",buttonPrimaryDisabledBorder:"grey.200",buttonPrimaryDisabledText:"grey.600",buttonSecondaryBackground:"white",buttonSecondaryBorder:"orange.700",buttonSecondaryText:"su2c_black",buttonSecondaryBackgroundHover:"orange.100",buttonSecondaryBorderHover:"orange.100",buttonSecondaryTextHover:"su2c_black",buttonSecondaryIconFill:"orange.700",buttonSecondaryDisabledBackground:"white",buttonSecondaryDisabledBorder:"grey.600",buttonSecondaryDisabledText:"grey.600",buttonAlternativeBackground:"white",buttonAlternativeText:"su2c_black",buttonAlternativeTextHover:"orange.800",buttonAlternativeDisabledBackground:"grey.100",buttonAlternativeDisabledText:"grey.600",buttonTertiaryText:"orange.800",buttonTertiaryTextHover:"orange.800",buttonTertiaryDisabledText:"grey.800",buttonToggleBackground:"white",buttonToggleText:"su2c_black",buttonToggleBorder:"orange.500",buttonToggleBackgroundHover:"orange.100",buttonToggleSelectedBackground:"orange.500",buttonToggleSelectedBorder:"orange.500",buttonToggleDisabledBackground:"white",buttonToggleDisabledText:"grey.600",buttonToggleDisabledBorder:"grey.600",buttonLinkHover:"grey.600",keyStatsPrimaryBarColor:o.primary,keyStatsPrimaryBackgroundColor:o.primary,keyStatsPrimaryTextColor:o.textOnPrimary,keyStatsAltHigherValueBackgroundColor:o.tertiary,keyStatsAltLowerValueBackgroundColor:o.tertiary,keyStatsTwoBlockHighBarColor:"orange.500",keyStatsTwoBlockLowBarColor:"tertiary",keyStatsTextTwoBlockPrimaryColor:"orange.800",keyStatsTextTwoBlockSecondaryColor:o.textOnPrimary,linkColor:"orange.800",linkColorHover:"orange.900",linkColorVisited:"orange.900",altLinkColor:o.tertiary,altLinkColorHover:"grey.800",altLinkColorVisited:"grey.800",cardTextBackgroundColor:"grey.200",cardTextColor:"black",loaderColor1:"orange.500",loaderColor2:"red.500",loaderColor3:"su2c_black",totaliserBackground:"tertiary",totaliserBubbleTextColor:"white",totaliserBubbleTotalColor:"white",totaliserTextTransform:"uppercase",textColor:"black",captionColor:"black",textDonateByCancerInfo:"cyan.700",labelColor:"black",sideNavTopLevelBorder:"grey.600",sideNavSideBorder:"su2c_black",tagBg:"orange.800",tagColor:"white",ctaBannerPrimaryBg:"magenta.700",ctaBannerSecondaryBg:"navy.600",ctaBannerTextOnPrimary:"white",ctaBannerTextOnSecondary:"black",indicatorColorActive:"orange.600",indicatorColorComplete:"orange.600",indicatorColorIncomplete:"grey.600",checkboxDisabledText:"grey.600"},a={containerMax:"960px"},n={colors:{...o,...t},fontWeights:{legendFontWeight:"semibold"}};export{o as brandBaseTokens,t as componentTokens,a as componentWidths,n as default};
|
|
2
2
|
//# sourceMappingURL=semantic-tokens.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semantic-tokens.js","sources":["../../../../../src/theme/su2c/foundations/semantic-tokens.ts"],"sourcesContent":[null],"names":["brandBaseTokens","defaultBrandTokens","primary","secondary","tertiary","textOnPrimary","textOnSecondary","textOnTertiary","componentTokens","defaultComponentTokens","textDark","textLight","backgroundLight","backgroundDark","textInputBorder","selectionBorder","selectBackground","disabled","buttonPrimaryBackground","buttonPrimaryHover","buttonPrimaryBorder","buttonPrimaryText","buttonPrimaryBorderHover","buttonPrimaryTextHover","buttonPrimaryBackgroundHover","buttonPrimaryDisabledBackground","buttonPrimaryDisabledBorder","buttonPrimaryDisabledText","buttonSecondaryBackground","buttonSecondaryBorder","buttonSecondaryText","buttonSecondaryBackgroundHover","buttonSecondaryBorderHover","buttonSecondaryTextHover","buttonSecondaryDisabledBackground","buttonSecondaryDisabledBorder","buttonSecondaryDisabledText","buttonAlternativeBackground","buttonAlternativeText","buttonAlternativeTextHover","buttonAlternativeDisabledBackground","buttonAlternativeDisabledText","buttonTertiaryText","buttonTertiaryTextHover","buttonTertiaryDisabledText","buttonToggleBackground","buttonToggleText","buttonToggleBorder","buttonToggleBackgroundHover","buttonToggleSelectedBackground","buttonToggleSelectedBorder","buttonToggleDisabledBackground","buttonToggleDisabledText","buttonToggleDisabledBorder","buttonLinkHover","keyStatsPrimaryBarColor","keyStatsPrimaryBackgroundColor","keyStatsPrimaryTextColor","keyStatsAltHigherValueBackgroundColor","keyStatsAltLowerValueBackgroundColor","keyStatsTwoBlockHighBarColor","keyStatsTwoBlockLowBarColor","keyStatsTextTwoBlockPrimaryColor","keyStatsTextTwoBlockSecondaryColor","linkColor","linkColorHover","linkColorVisited","altLinkColor","altLinkColorHover","altLinkColorVisited","cardTextBackgroundColor","cardTextColor","loaderColor1","loaderColor2","loaderColor3","totaliserBackground","totaliserBubbleTextColor","totaliserBubbleTotalColor","totaliserTextTransform","textColor","captionColor","textDonateByCancerInfo","labelColor","sideNavTopLevelBorder","sideNavSideBorder","tagBg","tagColor","ctaBannerPrimaryBg","ctaBannerSecondaryBg","ctaBannerTextOnPrimary","ctaBannerTextOnSecondary","indicatorColorActive","indicatorColorComplete","indicatorColorIncomplete","checkboxDisabledText","componentWidths","containerMax","semanticTokens","colors","fontWeights","legendFontWeight"],"mappings":"iGAMA,MAAMA,EAAsC,IACvCC,EACHC,QAAS,aACTC,UAAW,aACXC,SAAU,aACVC,cAAe,aACfC,gBAAiB,aACjBC,eAAgB,SAGZC,EAAsC,IACvCC,EACHC,SAAU,aACVC,UAAW,QACXC,gBAAiB,QACjBC,eAAgBb,EAAgBK,cAGhCS,gBAAiB,WACjBC,gBAAiB,WACjBC,iBAAkB,WAClBC,SAAU,WAGVC,wBAAyB,aACzBC,mBAAoB,aACpBC,oBAAqB,aACrBC,kBAAmB,aACnBC,yBAA0B,aAC1BC,uBAAwB,aACxBC,6BAA8B,aAC9BC,gCAAiC,WACjCC,4BAA6B,WAC7BC,0BAA2B,WAE3BC,0BAA2B,QAC3BC,sBAAuB,aACvBC,oBAAqB,aACrBC,+BAAgC,aAChCC,2BAA4B,aAC5BC,yBAA0B,aAC1BC,kCAAmC,
|
|
1
|
+
{"version":3,"file":"semantic-tokens.js","sources":["../../../../../src/theme/su2c/foundations/semantic-tokens.ts"],"sourcesContent":[null],"names":["brandBaseTokens","defaultBrandTokens","primary","secondary","tertiary","textOnPrimary","textOnSecondary","textOnTertiary","componentTokens","defaultComponentTokens","textDark","textLight","backgroundLight","backgroundDark","textInputBorder","selectionBorder","selectBackground","disabled","buttonPrimaryBackground","buttonPrimaryHover","buttonPrimaryBorder","buttonPrimaryText","buttonPrimaryBorderHover","buttonPrimaryTextHover","buttonPrimaryBackgroundHover","buttonPrimaryDisabledBackground","buttonPrimaryDisabledBorder","buttonPrimaryDisabledText","buttonSecondaryBackground","buttonSecondaryBorder","buttonSecondaryText","buttonSecondaryBackgroundHover","buttonSecondaryBorderHover","buttonSecondaryTextHover","buttonSecondaryIconFill","buttonSecondaryDisabledBackground","buttonSecondaryDisabledBorder","buttonSecondaryDisabledText","buttonAlternativeBackground","buttonAlternativeText","buttonAlternativeTextHover","buttonAlternativeDisabledBackground","buttonAlternativeDisabledText","buttonTertiaryText","buttonTertiaryTextHover","buttonTertiaryDisabledText","buttonToggleBackground","buttonToggleText","buttonToggleBorder","buttonToggleBackgroundHover","buttonToggleSelectedBackground","buttonToggleSelectedBorder","buttonToggleDisabledBackground","buttonToggleDisabledText","buttonToggleDisabledBorder","buttonLinkHover","keyStatsPrimaryBarColor","keyStatsPrimaryBackgroundColor","keyStatsPrimaryTextColor","keyStatsAltHigherValueBackgroundColor","keyStatsAltLowerValueBackgroundColor","keyStatsTwoBlockHighBarColor","keyStatsTwoBlockLowBarColor","keyStatsTextTwoBlockPrimaryColor","keyStatsTextTwoBlockSecondaryColor","linkColor","linkColorHover","linkColorVisited","altLinkColor","altLinkColorHover","altLinkColorVisited","cardTextBackgroundColor","cardTextColor","loaderColor1","loaderColor2","loaderColor3","totaliserBackground","totaliserBubbleTextColor","totaliserBubbleTotalColor","totaliserTextTransform","textColor","captionColor","textDonateByCancerInfo","labelColor","sideNavTopLevelBorder","sideNavSideBorder","tagBg","tagColor","ctaBannerPrimaryBg","ctaBannerSecondaryBg","ctaBannerTextOnPrimary","ctaBannerTextOnSecondary","indicatorColorActive","indicatorColorComplete","indicatorColorIncomplete","checkboxDisabledText","componentWidths","containerMax","semanticTokens","colors","fontWeights","legendFontWeight"],"mappings":"iGAMA,MAAMA,EAAsC,IACvCC,EACHC,QAAS,aACTC,UAAW,aACXC,SAAU,aACVC,cAAe,aACfC,gBAAiB,aACjBC,eAAgB,SAGZC,EAAsC,IACvCC,EACHC,SAAU,aACVC,UAAW,QACXC,gBAAiB,QACjBC,eAAgBb,EAAgBK,cAGhCS,gBAAiB,WACjBC,gBAAiB,WACjBC,iBAAkB,WAClBC,SAAU,WAGVC,wBAAyB,aACzBC,mBAAoB,aACpBC,oBAAqB,aACrBC,kBAAmB,aACnBC,yBAA0B,aAC1BC,uBAAwB,aACxBC,6BAA8B,aAC9BC,gCAAiC,WACjCC,4BAA6B,WAC7BC,0BAA2B,WAE3BC,0BAA2B,QAC3BC,sBAAuB,aACvBC,oBAAqB,aACrBC,+BAAgC,aAChCC,2BAA4B,aAC5BC,yBAA0B,aAC1BC,wBAAyB,aACzBC,kCAAmC,QACnCC,8BAA+B,WAC/BC,4BAA6B,WAE7BC,4BAA6B,QAC7BC,sBAAuB,aACvBC,2BAA4B,aAC5BC,oCAAqC,WACrCC,8BAA+B,WAC/BC,mBAAoB,aACpBC,wBAAyB,aACzBC,2BAA4B,WAC5BC,uBAAwB,QACxBC,iBAAkB,aAClBC,mBAAoB,aACpBC,4BAA6B,aAC7BC,+BAAgC,aAChCC,2BAA4B,aAC5BC,+BAAgC,QAChCC,yBAA0B,WAC1BC,2BAA4B,WAC5BC,gBAAiB,WAGjBC,wBAAyBxD,EAAgBE,QACzCuD,+BAAgCzD,EAAgBE,QAChDwD,yBAA0B1D,EAAgBK,cAC1CsD,sCAAuC3D,EAAgBI,SACvDwD,qCAAsC5D,EAAgBI,SACtDyD,6BAA8B,aAC9BC,4BAA6B,WAC7BC,iCAAkC,aAClCC,mCAAoChE,EAAgBK,cAGpD4D,UAAW,aACXC,eAAgB,aAChBC,iBAAkB,aAClBC,aAAcpE,EAAgBI,SAC9BiE,kBAAmB,WACnBC,oBAAqB,WAErBC,wBAAyB,WACzBC,cAAe,QAGfC,aAAc,aACdC,aAAc,UACdC,aAAc,aAEdC,oBAAqB,WACrBC,yBAA0B,QAC1BC,0BAA2B,QAC3BC,uBAAwB,YAGxBC,UAAW,QACXC,aAAc,QACdC,uBAAwB,WACxBC,WAAY,QAGZC,sBAAuB,WACvBC,kBAAmB,aAGnBC,MAAO,aACPC,SAAU,QAGVC,mBAAoB,cACpBC,qBAAsB,WACtBC,uBAAwB,QACxBC,yBAA0B,QAG1BC,qBAAsB,aACtBC,uBAAwB,aACxBC,yBAA0B,WAG1BC,qBAAsB,YAGlBC,EAAkB,CACtBC,aAAc,SAQVC,EAAiB,CACrBC,OAAQ,IACHnG,KACAQ,GAEL4F,YAVsC,CAEtCC,iBAAkB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _chakra_ui_react from '@chakra-ui/react';
|
|
2
|
-
import { AccordionProps, AvatarProps, BoxProps, BreadcrumbItemProps, BreadcrumbLinkProps as BreadcrumbLinkProps$1, ButtonProps as ButtonProps$1, HeadingProps, IconProps as IconProps$1, ImageProps as ImageProps$2, ResponsiveValue, ContainerProps, ProgressProps as ProgressProps$1, ChakraProps, LinkProps as LinkProps$1,
|
|
3
|
-
export { AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AvatarBadge, AvatarGroup, Box, BoxProps, BreadcrumbItem, BreadcrumbItemProps, ButtonGroup, ChakraBaseProvider, Container, Flex, FlexProps, FormControl, FormErrorMessage, FormHelperText, Grid, GridItem, HStack, HeadingProps, InputAddon, InputGroup, InputLeftAddon, InputLeftElement, InputRightAddon, InputRightElement, LinkOverlay, List, ListIcon, ListItem, OrderedList, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverProps, PopoverTrigger, Portal, Radio, RadioGroup, Select, SimpleGrid, Stack, Tab, TabList, TabPanel, TabPanels, TableContainer, Tag, TagProps, Tbody, Td, TextProps, Textarea, TextareaProps, Th, Thead, Tr, UnorderedList, VStack, VisuallyHidden, Wrap, WrapItem, extendBaseTheme } from '@chakra-ui/react';
|
|
2
|
+
import { AccordionProps, AvatarProps, BoxProps, BreadcrumbItemProps, BreadcrumbLinkProps as BreadcrumbLinkProps$1, ButtonProps as ButtonProps$1, HeadingProps, IconProps as IconProps$1, ComponentWithAs, ImageProps as ImageProps$2, ResponsiveValue, ContainerProps, ProgressProps as ProgressProps$1, ChakraProps, LinkProps as LinkProps$1, CardProps as CardProps$1, StackProps, TagProps, CheckboxProps, CheckboxGroupProps, GridProps, InputProps as InputProps$1, TabsProps, FlexProps, FormLabelProps as FormLabelProps$1, ListItemProps, ListProps, NumberInputFieldProps, NumberInputProps, PopoverProps, StepperProps as StepperProps$1, TextProps, TextareaProps, RadioGroupProps, DividerProps, TableProps } from '@chakra-ui/react';
|
|
3
|
+
export { AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AvatarBadge, AvatarGroup, Box, BoxProps, BreadcrumbItem, BreadcrumbItemProps, ButtonGroup, ChakraBaseProvider, Container, Flex, FlexProps, FormControl, FormErrorMessage, FormHelperText, Grid, GridItem, HStack, HeadingProps, InputAddon, InputGroup, InputLeftAddon, InputLeftElement, InputRightAddon, InputRightElement, LinkOverlay, List, ListIcon, ListItem, OrderedList, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverProps, PopoverTrigger, Portal, Radio, RadioGroup, Select, SimpleGrid, Stack, Tab, TabList, TabPanel, TabPanels, TableContainer, Tag, TagProps, Tbody, Td, TextProps, Textarea, TextareaProps, Th, Thead, Theme, Tr, UnorderedList, VStack, VisuallyHidden, Wrap, WrapItem, extendBaseTheme } from '@chakra-ui/react';
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
5
|
import React__default, { HTMLAttributes, CSSProperties, ElementType, ReactElement, ChangeEventHandler, FC, ReactNode } from 'react';
|
|
6
6
|
import * as _chakra_ui_icons from '@chakra-ui/icons';
|
|
@@ -61,6 +61,9 @@ declare const Heading6: _chakra_ui_react.ComponentWithAs<"h6", HeadingProps>;
|
|
|
61
61
|
type IconProps = IconProps$1 & {
|
|
62
62
|
name?: string;
|
|
63
63
|
};
|
|
64
|
+
declare const Icon: ComponentWithAs<"svg", IconProps$1 & {
|
|
65
|
+
name?: string;
|
|
66
|
+
}>;
|
|
64
67
|
|
|
65
68
|
type ImageProps$1 = ImageProps$2 & {
|
|
66
69
|
aspectHeight?: ResponsiveValue<number>;
|
|
@@ -351,6 +354,14 @@ declare const ParagraphWithMedia: _chakra_ui_react.ComponentWithAs<"div", Paragr
|
|
|
351
354
|
|
|
352
355
|
declare const Popover: (props: PopoverProps) => react_jsx_runtime.JSX.Element;
|
|
353
356
|
|
|
357
|
+
interface PopoverAlertProps {
|
|
358
|
+
variant: "warning" | "error" | "success" | "information" | "secondary";
|
|
359
|
+
alertContent: string;
|
|
360
|
+
alertTrigger: string;
|
|
361
|
+
children?: React.ReactNode;
|
|
362
|
+
}
|
|
363
|
+
declare const PopoverAlert: React.FC<PopoverAlertProps>;
|
|
364
|
+
|
|
354
365
|
interface ProgressProps extends ProgressProps$1 {
|
|
355
366
|
secondaryValue?: number;
|
|
356
367
|
barColor?: string;
|
|
@@ -643,7 +654,7 @@ declare const Wheelchairs: _chakra_ui_react.ComponentWithAs<"svg", _chakra_ui_re
|
|
|
643
654
|
declare const YouTube: _chakra_ui_react.ComponentWithAs<"svg", _chakra_ui_react.IconProps>;
|
|
644
655
|
|
|
645
656
|
type SemanticTokensType = {
|
|
646
|
-
[key: string]: string;
|
|
657
|
+
[key: string]: string | number | object;
|
|
647
658
|
};
|
|
648
659
|
type AtLeastOnePropertyOf<T> = {
|
|
649
660
|
[K in keyof T]: {
|
|
@@ -653,4 +664,4 @@ type AtLeastOnePropertyOf<T> = {
|
|
|
653
664
|
};
|
|
654
665
|
}[keyof T];
|
|
655
666
|
|
|
656
|
-
export { Accordion, Adult, Alert, AlertBanner, type AlertBannerProps, Apple, ArrownDown as ArrowDown, ArrowDownListItem, ArrowReturnUpIcon, ArrownUp as ArrowUp, type AtLeastOnePropertyOf, Avatar, Badge, Bagdrop, Breadcrumb, BreadcrumbLink, Button, type ButtonProps, Card, type CardProps, CardStack, type CardStackProps, CheckCircle, CheckList, CheckListUL, Checkbox, CheckboxGroup, Children, CircleDevice, Clock, CloudUpload, Cross, Date, DatePicker, DirectDebit, Divider, Dogs, DonateWidget, EmailIcon, Facebook, FileUploader, Footer, type FooterNavigationLink, type FooterProps, Footnote, FormField, FormLabel, FourInFour, FundraisingRegulator, GoogleMapEmbed, GooglePay, Heading, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, Heart, HeartSu2c, Image, type ImageLink, type ImageProps$1 as ImageProps, Info, Input, Instagram, Link, LinkedIn, Loader, LogoGroup, type LogoGroupProps, type LogoProps, MasterCard, Microscope, Navigation, type NavigationProps, Newsletter, NumberInput, OnThisPageHeadings, OneInFour, OvarianIcon, ParagraphWithMedia, Parking, PauseIcon, PayPal, PdfIcon, People, PhoneIcon, PlayIcon, Plus, PlusSu2c, Popover, Pound, ProgressBar, Pushchair, QuoteIcon, RadioConsent, ReferenceBlock, ReferenceBlockContainer, type ReferenceBlockContainerProps, type ReferenceBlockProps, Refreshments, RichHeader, Royalties, type SemanticTokensType, Share, Shower, SideNav, SimpleHeader, SingleStatistics, SocialProof, SpeechBubble, SpotifyEmbed, Stepper, Success, Table, Tabs, Text, TextTruncate, TextareaWithWordCount, ThreeInFour, ThumbsUp, ThumbsUpSu2c, TikTok, ToggleGroup, Toilets, Totaliser, TwoBlockStatistics, TwoInFour, Venue, Video, Visa, WhatsApp, Wheelchairs, X, YouTube, YouTubeEmbed, crukBrand, r4lBrand, su2cBrand };
|
|
667
|
+
export { Accordion, Adult, Alert, AlertBanner, type AlertBannerProps, Apple, ArrownDown as ArrowDown, ArrowDownListItem, ArrowReturnUpIcon, ArrownUp as ArrowUp, type AtLeastOnePropertyOf, Avatar, Badge, Bagdrop, Breadcrumb, BreadcrumbLink, Button, type ButtonProps, Card, type CardProps, CardStack, type CardStackProps, CheckCircle, CheckList, CheckListUL, Checkbox, CheckboxGroup, Children, CircleDevice, Clock, CloudUpload, Cross, Date, DatePicker, DirectDebit, Divider, Dogs, DonateWidget, EmailIcon, Facebook, FileUploader, Footer, type FooterNavigationLink, type FooterProps, Footnote, FormField, FormLabel, FourInFour, FundraisingRegulator, GoogleMapEmbed, GooglePay, Heading, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, Heart, HeartSu2c, Icon, type IconProps, Image, type ImageLink, type ImageProps$1 as ImageProps, Info, Input, Instagram, Link, LinkedIn, Loader, LogoGroup, type LogoGroupProps, type LogoProps, MasterCard, Microscope, Navigation, type NavigationProps, Newsletter, NumberInput, OnThisPageHeadings, OneInFour, OvarianIcon, ParagraphWithMedia, Parking, PauseIcon, PayPal, PdfIcon, People, PhoneIcon, PlayIcon, Plus, PlusSu2c, Popover, PopoverAlert, type PopoverAlertProps, Pound, ProgressBar, Pushchair, QuoteIcon, RadioConsent, ReferenceBlock, ReferenceBlockContainer, type ReferenceBlockContainerProps, type ReferenceBlockProps, Refreshments, RichHeader, Royalties, type SemanticTokensType, Share, Shower, SideNav, SimpleHeader, SingleStatistics, SocialProof, SpeechBubble, SpotifyEmbed, Stepper, Success, Table, Tabs, Text, TextTruncate, TextareaWithWordCount, ThreeInFour, ThumbsUp, ThumbsUpSu2c, TikTok, ToggleGroup, Toilets, Totaliser, TwoBlockStatistics, TwoInFour, Venue, Video, Visa, WhatsApp, Wheelchairs, X, YouTube, YouTubeEmbed, crukBrand, r4lBrand, su2cBrand };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cruk/chakra-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Chakra UI v2 based components for CRUK applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
|
+
"lint-staged": {
|
|
19
|
+
"src/**/*.{js,ts,tsx}": [
|
|
20
|
+
"prettier --write"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
18
23
|
"scripts": {
|
|
19
24
|
"dev": "vite",
|
|
20
25
|
"build": "rm -rf dist/ && rollup --config",
|
|
@@ -31,6 +36,8 @@
|
|
|
31
36
|
"test-storybook:ci": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"npm run build-storybook --quiet && npx http-server storybook-static --port 6006 --silent\" \"wait-on tcp:6006 && npm run test-storybook\"",
|
|
32
37
|
"prettier": "prettier --write 'src/**/*.{js,ts,tsx}'",
|
|
33
38
|
"prettier:test": "prettier --check 'src/**/*.{js,ts,tsx}'",
|
|
39
|
+
"prepare": "husky",
|
|
40
|
+
"format": "lint-staged",
|
|
34
41
|
"release": "semantic-release"
|
|
35
42
|
},
|
|
36
43
|
"dependencies": {
|
|
@@ -98,7 +105,9 @@
|
|
|
98
105
|
"typescript-eslint": "^8.24.1",
|
|
99
106
|
"vite": "^6.1.1",
|
|
100
107
|
"vitest": "^3.0.6",
|
|
101
|
-
"wait-on": "^8.0.2"
|
|
108
|
+
"wait-on": "^8.0.2",
|
|
109
|
+
"husky": "^9.1.7",
|
|
110
|
+
"lint-staged": "^15.2.2"
|
|
102
111
|
},
|
|
103
112
|
"peerDependencies": {
|
|
104
113
|
"@chakra-ui/icons": "^2.2.4",
|