@cruk/chakra-components 3.2.0 → 3.3.0
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/CTABanner/index.js +1 -1
- package/dist/cjs/components/CTABanner/index.js.map +1 -1
- package/dist/cjs/components/StickyNavigation/index.js +1 -1
- package/dist/cjs/components/StickyNavigation/index.js.map +1 -1
- package/dist/cjs/theme/cruk/components/accordion.js +1 -1
- package/dist/cjs/theme/cruk/components/accordion.js.map +1 -1
- package/dist/cjs/theme/cruk/components/button.js +1 -1
- package/dist/cjs/theme/cruk/components/button.js.map +1 -1
- package/dist/cjs/theme/cruk/components/stickyNavigation.js +2 -0
- package/dist/cjs/theme/cruk/components/stickyNavigation.js.map +1 -0
- package/dist/cjs/theme/cruk/index.js +1 -1
- package/dist/cjs/theme/cruk/index.js.map +1 -1
- package/dist/cjs/theme/r4l/index.js +1 -1
- package/dist/cjs/theme/r4l/index.js.map +1 -1
- package/dist/esm/components/CTABanner/index.js +1 -1
- package/dist/esm/components/CTABanner/index.js.map +1 -1
- package/dist/esm/components/StickyNavigation/index.js +1 -1
- package/dist/esm/components/StickyNavigation/index.js.map +1 -1
- package/dist/esm/theme/cruk/components/accordion.js +1 -1
- package/dist/esm/theme/cruk/components/accordion.js.map +1 -1
- package/dist/esm/theme/cruk/components/button.js +1 -1
- package/dist/esm/theme/cruk/components/button.js.map +1 -1
- package/dist/esm/theme/cruk/components/stickyNavigation.js +2 -0
- package/dist/esm/theme/cruk/components/stickyNavigation.js.map +1 -0
- package/dist/esm/theme/cruk/index.js +1 -1
- package/dist/esm/theme/cruk/index.js.map +1 -1
- package/dist/esm/theme/r4l/index.js +1 -1
- package/dist/esm/theme/r4l/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),a=require("@chakra-ui/react"),n=require("../../theme/cruk/foundations/typography.js"),r=require("../Button/index.js"),t=require("../Heading/index.js");const i={paddingY:{base:8,md:10,lg:10,xl:16},paddingX:{base:8,md:16,lg:16,xl:20},display:"flex",flexDirection:"column",gap:10},o={primary:{...i,backgroundColor:"ctaBannerPrimaryBg",color:"ctaBannerTextOnPrimary",buttonVariant:"solid",outline:"",".cta-banner-main-body a":{color:"ctaBannerTextOnPrimary",_hover:{color:"ctaBannerTextOnPrimary"},_visited:{color:"ctaBannerTextOnPrimary"}}},primaryAlt:{...i,buttonVariant:"solid",bg:"ctaBannerSecondaryBg",color:"ctaBannerTextOnPrimary",outline:"",".cta-banner-main-body a":{color:"ctaBannerTextOnPrimary",_hover:{color:"ctaBannerTextOnPrimary"},_visited:{color:"ctaBannerTextOnPrimary"}}},secondary:{...i,buttonVariant:"secondary",bg:"backgroundLight",color:"ctaBannerTextOnSecondary",outline:"2px solid",outlineColor:"ctaBannerPrimaryBg"},secondaryAlt:{...i,buttonVariant:"secondary",bg:"backgroundLight",color:"ctaBannerTextOnSecondary",outline:"2px solid",outlineColor:"ctaBannerSecondaryBg"}},l=a.forwardRef(((i,l)=>{const{cta:c="true",variant:d,alignItems:s,heading:u,subHeading:x,body:g,href:m,ctaText:y}=i,b={left:"flex-start",center:"center"}[s],{color:B,buttonVariant:h,outline:f}=o[d];return e.jsxs(a.Box,{__css:o[d],alignItems:b,"data-cta-banner-variant":d,textAlign:s,ref:l,"aria-label":"cta-banner",role:"banner",children:[e.jsxs(a.Box,{alignItems:b,display:"flex",flexDirection:"column",gap:6,className:"cta-banner-main-body",children:[e.jsx(t.Heading2,{color:B,children:u}),x&&e.jsx(t.Heading3,{color:B,children:x}),g&&g]}),c&&e.jsx(r.Button,{as:m?"a":void 0,target:m&&"_blank",variant:h,outline:f,href:m,children:y,whiteSpace:"wrap",lineHeight:{base:n.default.lineHeights.text.sm,md:n.default.lineHeights.text.sm,lg:n.default.lineHeights.text.md,xl:n.default.lineHeights.text.md}})]})}));exports.CTABanner=l;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/CTABanner/index.tsx"],"sourcesContent":[null],"names":["baseStyle","paddingY","base","md","lg","xl","paddingX","display","flexDirection","gap","variants","primary","backgroundColor","color","buttonVariant","outline","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/CTABanner/index.tsx"],"sourcesContent":[null],"names":["baseStyle","paddingY","base","md","lg","xl","paddingX","display","flexDirection","gap","variants","primary","backgroundColor","color","buttonVariant","outline","_hover","_visited","primaryAlt","bg","secondary","outlineColor","secondaryAlt","CTABanner","forwardRef","props","ref","cta","variant","alignItems","heading","subHeading","body","href","ctaText","alignContent","left","center","textColor","_jsxs","Box","__css","textAlign","role","children","jsxs","className","_jsx","Heading2","Heading3","Button","as","undefined","target","whiteSpace","lineHeight","typography","default","lineHeights","text","sm"],"mappings":"uMAiBA,MAAMA,EAAY,CAChBC,SAAU,CAAEC,KAAM,EAAGC,GAAI,GAAIC,GAAI,GAAIC,GAAI,IACzCC,SAAU,CAAEJ,KAAM,EAAGC,GAAI,GAAIC,GAAI,GAAIC,GAAI,IACzCE,QAAS,OACTC,cAAe,SACfC,IAAK,IAGDC,EAAW,CACfC,QAAS,IACJX,EACHY,gBAAiB,qBACjBC,MAAO,yBACPC,cAAe,QACfC,QAAS,GACT,0BAA2B,CACzBF,MAAO,yBACPG,OAAQ,CACNH,MAAO,0BAETI,SAAU,CACRJ,MAAO,4BAIbK,WAAY,IACPlB,EACHc,cAAe,QACfK,GAAI,uBACJN,MAAO,yBACPE,QAAS,GACT,0BAA2B,CACzBF,MAAO,yBACPG,OAAQ,CACNH,MAAO,0BAETI,SAAU,CACRJ,MAAO,4BAIbO,UAAW,IACNpB,EACHc,cAAe,YACfK,GAAI,kBACJN,MAAO,2BACPE,QAAS,YACTM,aAAc,sBAEhBC,aAAc,IACTtB,EACHc,cAAe,YACfK,GAAI,kBACJN,MAAO,2BACPE,QAAS,YACTM,aAAc,yBAIZE,EAAYC,EAAUA,YAAwB,CAACC,EAAOC,KAC1D,MAAMC,IACJA,EAAM,OAAMC,QACZA,EAAOC,WACPA,EAAUC,QACVA,EAAOC,WACPA,EAAUC,KACVA,EAAIC,KACJA,EAAIC,QACJA,GACET,EAEEU,EAAe,CAAEC,KAAM,aAAcC,OAAQ,UAAWR,IACtDhB,MAAOyB,EAASxB,cAAEA,EAAaC,QAAEA,GAAYL,EAASkB,GAE9D,OACEW,EAAAA,KAACC,EAAAA,IAAG,CACFC,MAAO/B,EAASkB,GAChBC,WAAYM,EACa,0BAAAP,EACzBc,UAAWb,EACXH,IAAKA,EACM,aAAA,aACXiB,KAAK,SAELC,SAAA,CAAAL,EAAAM,KAACL,MAAG,CACFX,WAAYM,EACZ5B,QAAQ,OACRC,cAAc,SACdC,IAAK,EACLqC,UAAU,uBAAsBF,SAAA,CAEhCG,EAAAA,IAACC,EAAAA,SAAS,CAAAnC,MAAOyB,WAAYR,IAC5BC,GAAcgB,MAACE,EAAAA,SAAQ,CAACpC,MAAOyB,EAASM,SAAGb,IAC3CC,GAAQA,KAGVL,GACCoB,MAACG,EAAAA,OAAM,CACLC,GAAIlB,EAAO,SAAMmB,EACjBC,OAAQpB,GAAQ,SAChBL,QAASd,EACTC,QAASA,EACTkB,KAAMA,EACNW,SAAUV,EACVoB,WAAW,OACXC,WAAY,CACVrD,KAAMsD,EAAUC,QAACC,YAAYC,KAAKC,GAClCzD,GAAIqD,EAAUC,QAACC,YAAYC,KAAKC,GAChCxD,GAAIoD,EAAUC,QAACC,YAAYC,KAAKxD,GAChCE,GAAImD,EAAUC,QAACC,YAAYC,KAAKxD,QAIlC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("@chakra-ui/react"),o=require("../Button/index.js"),n=require("../Button/IconButton.js"),i=require("../Heading/index.js");require("../Icon/index.js");var r=require("../Link/index.js"),a=require("../PopOver/index.js"),s=require("react"),c=require("slugify"),l=require("@chakra-ui/icons");const d=t.createIcon({displayName:"Email",viewBox:"0 0 20 16",d:"M3 2.5C2.65625 2.5 2.375 2.8 2.375 3.16667V4.0875L9.11328 9.9875C9.92188 10.6958 11.082 10.6958 11.8906 9.9875L18.625 4.0875V3.16667C18.625 2.8 18.3438 2.5 18 2.5H3ZM2.375 6.675V13.8333C2.375 14.2 2.65625 14.5 3 14.5H18C18.3438 14.5 18.625 14.2 18.625 13.8333V6.675L13.0781 11.5333C11.5781 12.8458 9.41797 12.8458 7.92188 11.5333L2.375 6.675ZM0.5 3.16667C0.5 1.69583 1.62109 0.5 3 0.5H18C19.3789 0.5 20.5 1.69583 20.5 3.16667V13.8333C20.5 15.3042 19.3789 16.5 18 16.5H3C1.62109 16.5 0.5 15.3042 0.5 13.8333V3.16667Z"}),C=t.createIcon({displayName:"Print",viewBox:"0 0 18 18",d:"M5 0.5C3.75898 0.5 2.75 1.50898 2.75 2.75V6.125H5V2.75H12.9699L14 3.78008V6.125H16.25V3.78008C16.25 3.18242 16.0145 2.60938 15.5926 2.1875L14.5625 1.15742C14.1406 0.735547 13.5676 0.5 12.9699 0.5H5ZM14 12.875V14V16.25H5V14V13.4375V12.875H14ZM16.25 14H17.375C17.9973 14 18.5 13.4973 18.5 12.875V9.5C18.5 8.25898 17.491 7.25 16.25 7.25H2.75C1.50898 7.25 0.5 8.25898 0.5 9.5V12.875C0.5 13.4973 1.00273 14 1.625 14H2.75V16.25C2.75 17.491 3.75898 18.5 5 18.5H14C15.241 18.5 16.25 17.491 16.25 16.25V14ZM15.6875 9.21875C15.9113 9.21875 16.1259 9.30764 16.2841 9.46588C16.4424 9.62411 16.5312 9.83872 16.5312 10.0625C16.5312 10.2863 16.4424 10.5009 16.2841 10.6591C16.1259 10.8174 15.9113 10.9062 15.6875 10.9062C15.4637 10.9062 15.2491 10.8174 15.0909 10.6591C14.9326 10.5009 14.8438 10.2863 14.8438 10.0625C14.8438 9.83872 14.9326 9.62411 15.0909 9.46588C15.2491 9.30764 15.4637 9.21875 15.6875 9.21875Z"}),u=t.createIcon({displayName:"Share",viewBox:"0 0 20 16",d:"M19.0977 8.89804C20.9674 6.9759 20.9674 3.86306 19.0977 1.94093C17.443 0.239922 14.8352 0.0187918 12.9324 1.41702L12.8794 1.45444C12.4029 1.80485 12.2937 2.48525 12.6345 2.97174C12.9754 3.45822 13.6373 3.57389 14.1105 3.22348L14.1634 3.18606C15.2257 2.407 16.6785 2.52947 17.5985 3.47863C18.641 4.55027 18.641 6.28529 17.5985 7.35693L13.8855 11.1808C12.843 12.2524 11.1552 12.2524 10.1128 11.1808C9.1895 10.2316 9.07036 8.73814 9.8282 7.6495L9.86461 7.59507C10.2055 7.10518 10.093 6.42477 9.61972 6.07777C9.14648 5.73076 8.4813 5.84303 8.14375 6.32952L8.10735 6.38395C6.7439 8.3367 6.95901 11.0175 8.61368 12.7185C10.4835 14.6406 13.5115 14.6406 15.3813 12.7185L19.0977 8.89804ZM1.90233 8.10197C0.0325556 10.0241 0.0325556 13.1369 1.90233 15.0591C3.557 16.7601 6.16476 16.9812 8.06764 15.583L8.12058 15.5456C8.59713 15.1952 8.70634 14.5148 8.36548 14.0283C8.02461 13.5418 7.36275 13.4261 6.88951 13.7765L6.83656 13.8139C5.77426 14.593 4.32146 14.4705 3.40146 13.5214C2.35902 12.4463 2.35902 10.7113 3.40146 9.63967L7.11454 5.81922C8.15699 4.74758 9.84475 4.74758 10.8872 5.81922C11.8105 6.76838 11.9296 8.26186 11.1718 9.3539L11.1354 9.40834C10.7945 9.89823 10.907 10.5786 11.3803 10.9256C11.8535 11.2726 12.5187 11.1604 12.8563 10.6739L12.8927 10.6195C14.2561 8.6633 14.041 5.98251 12.3863 4.28151C10.5165 2.35937 7.4885 2.35937 5.61872 4.28151L1.90233 8.10197Z"}),h=t.createIcon({displayName:"X",viewBox:"0 0 18 16",d:"M14.6747 0.5H17.4361L11.4048 7.27692L18.5 16.5H12.9459L8.59257 10.9077L3.61734 16.5H0.852021L7.30183 9.25L0.5 0.5H6.19491L10.1258 5.61154L14.6747 0.5ZM13.7047 14.8769H15.234L5.3618 2.03846H3.71904L13.7047 14.8769Z"}),p=t.createIcon({displayName:"LinkedIn",viewBox:"0 0 18 18",d:"M4.52991 18.5H0.797321V6.48259H4.52991V18.5ZM2.66161 4.8433C1.4683 4.8433 0.5 3.85491 0.5 2.66161C0.5 2.08831 0.72774 1.5385 1.13312 1.13312C1.5385 0.72774 2.08831 0.5 2.66161 0.5C3.2349 0.5 3.78471 0.72774 4.19009 1.13312C4.59547 1.5385 4.82321 2.08831 4.82321 2.66161C4.82321 3.85491 3.85491 4.8433 2.66161 4.8433ZM18.496 18.5H14.7714V12.65C14.7714 11.2558 14.7433 9.46786 12.8308 9.46786C10.8902 9.46786 10.5929 10.9826 10.5929 12.5496V18.5H6.86429V6.48259H10.4442V8.12187H10.4964C10.9946 7.17768 12.2121 6.18125 14.0281 6.18125C17.8049 6.18125 18.5 8.6683 18.5 11.8987V18.5H18.496Z"}),x=t.createIcon({displayName:"Facebook",viewBox:"0 0 11 19",d:"M2.7626 11.0223V18.5H6.73929V11.0223H9.70466L10.3217 7.58398H6.73929V6.36758C6.73929 4.55 7.43521 3.85391 9.23157 3.85391C9.79037 3.85391 10.2395 3.86797 10.5 3.89609V0.777734C10.0098 0.640625 8.80991 0.5 8.11741 0.5C4.45269 0.5 2.7626 2.27539 2.7626 6.10391V7.58398H0.5V11.0223H2.7626Z"}),w=t.forwardRef((({children:o,isOpen:n,button:i,showToggleButton:r,...a},s)=>e.jsxs(t.Box,{id:"toggle",ref:s,...a,children:[r&&i,e.jsx(t.Collapse,{in:n,animateOpacity:!0,children:o})]}))),j=t.forwardRef((({headings:j,socialMediaSharing:f,...g},L)=>{const m=t.useBreakpointValue({base:!1,lg:!0}),[v,H]=s.useState(null),[V,k]=s.useState(!1),[B,y]=s.useState(""),[b,I]=s.useState(!1),[S,M]=s.useState(!1);s.useEffect((()=>{M(m??!1)}),[m]);const Z=()=>!m&&M((e=>!e));s.useEffect((()=>{"undefined"!=typeof window&&y(window.location.href)}),[]);const T=j.map((e=>{const t="string"==typeof e?e:e.text;return{id:c(t?.toString().toLowerCase(),{lower:!0,strict:!0}),text:t}}));s.useEffect((()=>{const e=m?32:70,t=()=>{if(V)return;let t=null,o=1/0;T.forEach((({id:n})=>{const i=document.getElementById(n);if(i){const r=i.getBoundingClientRect().top-e;if(r<=100){const e=Math.abs(r);e<o&&(o=e,t=n)}}})),H(t)};return window.addEventListener("scroll",t),requestAnimationFrame(t),()=>window.removeEventListener("scroll",t)}),[T,m,V]);const q=t.useStyleConfig("StickyNavigation");return e.jsx(e.Fragment,{children:e.jsx(t.Box,{ref:L,__css:q,...g,children:e.jsx(w,{button:e.jsx(o.Button,{onClick:Z,rightIcon:S?e.jsx(l.ChevronUpIcon,{}):e.jsx(l.ChevronDownIcon,{}),justifyContent:"space-between",children:"On this page"}),isOpen:S,onToggle:Z,showToggleButton:!0,children:e.jsxs(t.Box,{as:"nav",children:[e.jsx(t.Box,{id:"sticky-nav",children:T.map((({id:o,text:n})=>e.jsx(t.Box,{children:e.jsx(r.Link,{as:"a",href:`#${o}`,borderLeftColor:o===v?"primary !important":"transparent !important",_hover:{textDecoration:o===v?"underline !important":"none !important"},onClick:e=>((e,t)=>{e.preventDefault(),y(`${window.location.href.split("#")[0]}#${t}`);const o=document.getElementById(t);if(!o)return;Z(),k(!0),H(t);const n=m?32:70,i=e=>e.getBoundingClientRect().top+window.scrollY-n;if(m){const e=i(o);return window.scrollTo({top:e,behavior:"smooth"}),window.history.pushState(null,"",`#${t}`),void setTimeout((()=>{k(!1)}),1e3)}setTimeout((()=>{const e=i(o);window.scrollTo({top:e,behavior:"smooth"}),window.history.pushState(null,"",`#${t}`),setTimeout((()=>{k(!1)}),1e3)}),300)})(e,o),children:n})},o)))}),e.jsx(t.Box,{id:"sticky-nav-back-to-top-container",children:e.jsx(o.Button,{onClick:()=>{k(!0),window.scrollTo({top:0,behavior:"smooth"});const e=window.location.href.split("#")[0];window.history.pushState(null,"",e),y(e),setTimeout((()=>{k(!1)}),1e3)},leftIcon:e.jsx(l.ArrowUpIcon,{}),variant:"alternative",children:"Back to top"})}),e.jsx(i.Heading5,{children:"Share or print this page"}),e.jsxs(t.HStack,{id:"sticky-nav-share-tray",children:[f?.includes("X")&&e.jsx(n.IconButton,{"aria-label":"Share on X",as:"a",target:"_blank",href:`https://twitter.com/intent/tweet?text=${B}`,icon:e.jsx(h,{})}),f?.includes("LinkedIn")&&e.jsx(n.IconButton,{"aria-label":"Share on LinkedIn",as:"a",target:"_blank",href:`https://www.linkedin.com/sharing/share-offsite/?url=${B}`,icon:e.jsx(p,{})}),f?.includes("Facebook")&&e.jsx(n.IconButton,{"aria-label":"Share on Facebook",as:"a",target:"_blank",href:`https://facebook.com/sharer.php?u=${B}`,icon:e.jsx(x,{})}),e.jsx(n.IconButton,{"aria-label":"Email this page",as:"a",href:`mailto:?subject=Check out this page&body=${B}`,icon:e.jsx(d,{})}),e.jsx(n.IconButton,{"aria-label":"Print this page",as:"a",onClick:()=>{"undefined"!=typeof window&&window.print()},icon:e.jsx(C,{})}),e.jsxs(a.Popover,{isOpen:b,placement:"bottom",variant:"secondary",children:[e.jsx(t.PopoverTrigger,{children:e.jsx(n.IconButton,{onClick:()=>{navigator.clipboard.writeText(B),I(!0),setTimeout((()=>{I(!1)}),3e3)},as:"a","aria-label":"Copy page URL to clipboard",icon:e.jsx(u,{})})}),e.jsx(t.PopoverContent,{id:"sticky-nav-popover-content",children:"Link copied"})]})]})]})})})})}));exports.StickyNavigation=j;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/StickyNavigation/index.tsx"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/StickyNavigation/index.tsx"],"sourcesContent":[null],"names":["Email","createIcon","displayName","viewBox","d","Print","Share","X","LinkedIn","Facebook","Toggle","forwardRef","children","isOpen","button","showToggleButton","rest","ref","_jsxs","Box","id","_jsx","Collapse","in","animateOpacity","StickyNavigation","headings","socialMediaSharing","isLargeScreen","useBreakpointValue","base","lg","activeId","setActiveId","useState","isManualScroll","setIsManualScroll","currentUrl","setCurrentUrl","isPopoverOpen","setIsPopoverOpen","setIsOpen","useEffect","toggle","prev","window","location","href","processedHeadings","map","heading","text","slugify","toString","toLowerCase","lower","strict","headerHeight","handleScroll","current","closestDistance","Infinity","forEach","el","document","getElementById","top","getBoundingClientRect","distance","Math","abs","addEventListener","requestAnimationFrame","removeEventListener","stickyNavigationTheme","useStyleConfig","_Fragment","__css","jsx","Button","onClick","rightIcon","ChevronUpIcon","ChevronDownIcon","justifyContent","onToggle","as","Link","borderLeftColor","_hover","textDecoration","e","preventDefault","split","target","getOffsetTop","scrollY","offset","scrollTo","behavior","history","pushState","setTimeout","handleStickyNavLink","baseUrl","leftIcon","ArrowUpIcon","variant","Heading5","HStack","includes","IconButton","icon","print","Popover","placement","PopoverTrigger","navigator","clipboard","writeText","PopoverContent"],"mappings":"yVA8BA,MAAMA,EAAQC,EAAAA,WAAW,CACvBC,YAAa,QACbC,QAAS,YACTC,EAAG,wgBAGCC,EAAQJ,EAAAA,WAAW,CACvBC,YAAa,QACbC,QAAS,YACTC,EAAG,u4BAGCE,EAAQL,EAAAA,WAAW,CACvBC,YAAa,QACbC,QAAS,YACTC,EAAG,u1CAGCG,EAAIN,EAAAA,WAAW,CACnBC,YAAa,IACbC,QAAS,YACTC,EAAG,0NAGCI,EAAWP,EAAAA,WAAW,CAC1BC,YAAa,WACbC,QAAS,YACTC,EAAG,8kBAGCK,EAAWR,EAAAA,WAAW,CAC1BC,YAAa,WACbC,QAAS,YACTC,EAAG,mSAUCM,EAASC,EAAAA,YACb,EAAGC,WAAUC,SAAQC,SAAQC,sBAAqB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EAAAA,IAAC0F,EAAUA,yBACE,oBACXzB,GAAG,IACHQ,OAAO,SACP/C,KAAM,qCAAqCV,IAC3C2E,KAAM3F,EAACyD,IAAArE,QAGXY,EAAAyD,IAACiC,EAAUA,WACE,CAAA,aAAA,kBACXzB,GAAG,IACHvC,KAAM,4CAA4CV,IAClD2E,KAAM3F,MAACrB,EAAK,MAGdqB,MAAC0F,aAAU,CAAA,aACE,kBACXzB,GAAG,IACHN,QAAS,KACe,oBAAXnC,QACTA,OAAOoE,SAGXD,KAAM3F,EAAAA,IAAChB,EAAK,MAGda,EAAAA,KAACgG,EAAOA,QACN,CAAArG,OAAQ0B,EACR4E,UAAU,SACVR,QAAQ,YAER/F,SAAA,CAAAS,MAAC+F,EAAAA,eAAc,CAAAxG,SACbS,EAACyD,IAAAiC,aACC,CAAA/B,QA/HK,KACrBqC,UAAUC,UAAUC,UAAUlF,GAC9BG,GAAiB,GACjB8D,YAAW,KACT9D,GAAiB,EAAM,GACtB,IAAK,EA2HQ8C,GAAG,IACQ,aAAA,6BACX0B,KAAM3F,EAAAyD,IAACxE,EAAK,CAAA,OAGhBe,EAAAyD,IAAC0C,EAAcA,eAAA,CAACpG,GAAG,6BAA4BR,SAAA,8BAQxD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@chakra-ui/anatomy"),t=require("@chakra-ui/react");const{definePartsStyle:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@chakra-ui/anatomy"),t=require("@chakra-ui/react");const{definePartsStyle:n,defineMultiStyleConfig:o}=t.createMultiStyleConfigHelpers(e.accordionAnatomy.keys),r=t.defineStyle({border:"0"}),a=t.defineStyle({fontFamily:"body",fontWeight:"normal",fontSize:{base:"text.sm",md:"text.md"},borderBottom:"2px solid black",px:0,py:2,_hover:{color:"btnAccordionHover",bg:"unset"}}),i=t.defineStyle({_hover:{color:"accordionIconPrimary",bg:"unset"}}),l=o({baseStyle:n({container:r,button:a,panel:t.defineStyle({px:0,fontFamily:"body",fontWeight:"normal"}),icon:i}),variants:{stickyNav:n({root:{bg:{base:"navy.100",lg:"transparent"},px:{base:4,lg:0}},container:{border:"none",h5:{marginRight:"auto",px:2,fontSize:"text.sm"}},button:{px:0,pb:{base:2,lg:0},paddingTop:0,justifyContent:"space-between",alignItems:"center",_hover:{bg:"transparent"},_expanded:{bg:"transparent"},borderBottom:"none",bg:"transparent"},panel:{px:0,pb:4},icon:{display:{base:"block",lg:"none"},ml:2}})}});exports.default=l;
|
|
2
2
|
//# sourceMappingURL=accordion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.js","sources":["../../../../../src/theme/cruk/components/accordion.ts"],"sourcesContent":[null],"names":["definePartsStyle","defineMultiStyleConfig","createMultiStyleConfigHelpers","accordionAnatomy","keys","container","defineStyle","border","button","fontFamily","fontWeight","fontSize","base","md","borderBottom","px","py","_hover","color","bg","icon","accordionTheme","baseStyle","panel"],"mappings":"sIAGA,MAAMA,iBAAEA,EAAgBC,uBAAEA,GACxBC,EAAAA,8BAA8BC,EAAAA,iBAAiBC,MAE3CC,EAAYC,EAAWA,YAAC,CAAEC,OAAQ,MAElCC,EAASF,EAAAA,YAAY,CACzBG,WAAY,OACZC,WAAY,SACZC,SAAU,CAAEC,KAAM,UAAWC,GAAI,WACjCC,aAAc,kBACdC,GAAI,EACJC,GAAI,EACJC,OAAQ,CACNC,MAAO,oBACPC,GAAI,WAIFC,EAAOd,EAAAA,YAAY,CACvBW,OAAQ,CACNC,MAAO,uBACPC,GAAI,
|
|
1
|
+
{"version":3,"file":"accordion.js","sources":["../../../../../src/theme/cruk/components/accordion.ts"],"sourcesContent":[null],"names":["definePartsStyle","defineMultiStyleConfig","createMultiStyleConfigHelpers","accordionAnatomy","keys","container","defineStyle","border","button","fontFamily","fontWeight","fontSize","base","md","borderBottom","px","py","_hover","color","bg","icon","accordionTheme","baseStyle","panel","variants","stickyNav","root","lg","h5","marginRight","pb","paddingTop","justifyContent","alignItems","_expanded","display","ml"],"mappings":"sIAGA,MAAMA,iBAAEA,EAAgBC,uBAAEA,GACxBC,EAAAA,8BAA8BC,EAAAA,iBAAiBC,MAE3CC,EAAYC,EAAWA,YAAC,CAAEC,OAAQ,MAElCC,EAASF,EAAAA,YAAY,CACzBG,WAAY,OACZC,WAAY,SACZC,SAAU,CAAEC,KAAM,UAAWC,GAAI,WACjCC,aAAc,kBACdC,GAAI,EACJC,GAAI,EACJC,OAAQ,CACNC,MAAO,oBACPC,GAAI,WAIFC,EAAOd,EAAAA,YAAY,CACvBW,OAAQ,CACNC,MAAO,uBACPC,GAAI,WAuDFE,EAAiBpB,EAAuB,CAC5CqB,UA9CgBtB,EAAiB,CACjCK,YACAG,SACAe,MATYjB,EAAAA,YAAY,CACxBS,GAAI,EACJN,WAAY,OACZC,WAAY,WAOZU,SA2CAI,SAAU,CAAEC,UAxCIzB,EAAiB,CACjC0B,KAAM,CACJP,GAAI,CAAEP,KAAM,WAAYe,GAAI,eAC5BZ,GAAI,CAAEH,KAAM,EAAGe,GAAI,IAErBtB,UAAW,CACTE,OAAQ,OACRqB,GAAI,CACFC,YAAa,OACbd,GAAI,EACJJ,SAAU,YAGdH,OAAQ,CACNO,GAAI,EACJe,GAAI,CAAElB,KAAM,EAAGe,GAAI,GACnBI,WAAY,EACZC,eAAgB,gBAChBC,WAAY,SACZhB,OAAQ,CACNE,GAAI,eAENe,UAAW,CACTf,GAAI,eAENL,aAAc,OACdK,GAAI,eAENI,MAAO,CACLR,GAAI,EACJe,GAAI,GAENV,KAAM,CACJe,QAAS,CAAEvB,KAAM,QAASe,GAAI,QAC9BS,GAAI"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const o=require("@chakra-ui/react").defineStyleConfig({baseStyle:{fontFamily:"body",fontWeight:"medium",borderRadius:0,px:6,py:3,fontSize:{base:"text.sm",lg:"text.md"}},variants:{primary:{color:"buttonPrimaryText",bg:"buttonPrimaryBackground",_hover:{bg:"buttonPrimaryBackgroundHover",_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground"}},_focus:{bg:"buttonPrimaryBackgroundHover",_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground"}},_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:"buttonSecondaryText",outline:"1px solid",outlineColor:"buttonSecondaryBorder",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline","& svg":{fontSize:"1.25rem"},_hover:{color:"buttonSecondaryTextHover",outlineColor:"buttonSecondaryBackgroundHover",bg:"buttonSecondaryBackgroundHover",_disabled:{color:"buttonSecondaryDisabledText"}},_focus:{bg:"buttonPrimaryBackground",color:"buttonPrimaryText",_disabled:{color:"buttonSecondaryDisabledText",bg:"buttonSecondaryDisabledBackground"}},_disabled:{color:"buttonSecondaryDisabledText",opacity:1,outlineColor:"buttonSecondaryDisabledBorder",_hover:{outlineColor:"buttonSecondaryDisabledBorder"}}},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:"buttonPrimaryAltBackground",color:"buttonPrimaryText",_disabled:{color:"buttonSecondaryDisabledText",bg:"buttonSecondaryDisabledBackground"}},_disabled:{color:"buttonSecondaryDisabledText",opacity:1,outlineColor:"buttonSecondaryDisabledBorder",_hover:{outlineColor:"buttonSecondaryDisabledBorder"}}},alternative:{fontFamily:"body",fontWeight:"medium",bg:"buttonAlternativeBackground",color:"buttonAlternativeText",justifyContent:"space-between",textDecoration:"none",paddingInline:"0 !important",_hover:{color:"buttonAlternativeTextHover",_disabled:{color:"buttonAlternativeDisabledText",bg:"buttonAlternativeDisabledBackground"}},_disabled:{color:"buttonAlternativeDisabledText",bg:"buttonAlternativeDisabledBackground",opacity:1}},link:{fontFamily:"body",fontWeight:"medium",bg:"buttonLinkBackground",color:"buttonLinkText",padding:0,_hover:{textDecoration:"underline"}},linkNoDecoration:{fontFamily:"body",fontWeight:"medium",paddingInlineEnd:"0 !important",paddingInline:"0 !important",color:"buttonLinkText",padding:0,_hover:{textDecoration:"none"}},truncationControl:{fontFamily:"body",fontWeight:"black",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:"1px solid",outlineColor:"buttonToggleBorder",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline",_hover:{bg:"buttonToggleBackgroundHover",color:"buttonToggleTextHover",outlineColor:"buttonToggleBackgroundHover",_disabled:{color:"buttonToggleDisabledText"}}},toggleSelected:{display:"flex",justifyContent:"center",cursor:"pointer",bg:"buttonToggleSelectedBackground",color:"buttonToggleSelectedText",outline:"1px solid",outlineColor:"buttonToggleSelectedBorder",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline"},toggleDisabled:{cursor:"not-allowed",bg:"buttonToggleDisabledBackground",color:"buttonToggleDisabledText",outline:"1px solid",outlineColor:"buttonToggleDisabledBorder",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline"},video:{bg:"buttonVideoBackground",color:"buttonVideoText",padding:4},citation:{color:"buttonCitationPrimary",_before:{content:'"["'},_after:{content:'"]"'},padding:0,margin:0,px:0,py:0,paddingInline:0,fontSize:"text.xs",fontFamily:"body",fontWeight:"semibold",_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"}});exports.buttonTheme=o,exports.default=o;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const o=require("@chakra-ui/react").defineStyleConfig({baseStyle:{fontFamily:"body",fontWeight:"medium",borderRadius:0,px:6,py:3,fontSize:{base:"text.sm",lg:"text.md"},whiteSpace:"normal"},variants:{primary:{color:"buttonPrimaryText",bg:"buttonPrimaryBackground",_hover:{bg:"buttonPrimaryBackgroundHover",_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground"}},_focus:{bg:"buttonPrimaryBackgroundHover",_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground"}},_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:"buttonSecondaryText",outline:"1px solid",outlineColor:"buttonSecondaryBorder",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline","& svg":{fontSize:"1.25rem"},_hover:{color:"buttonSecondaryTextHover",outlineColor:"buttonSecondaryBackgroundHover",bg:"buttonSecondaryBackgroundHover",_disabled:{color:"buttonSecondaryDisabledText"}},_focus:{bg:"buttonPrimaryBackground",color:"buttonPrimaryText",_disabled:{color:"buttonSecondaryDisabledText",bg:"buttonSecondaryDisabledBackground"}},_disabled:{color:"buttonSecondaryDisabledText",opacity:1,outlineColor:"buttonSecondaryDisabledBorder",_hover:{outlineColor:"buttonSecondaryDisabledBorder"}}},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:"buttonPrimaryAltBackground",color:"buttonPrimaryText",_disabled:{color:"buttonSecondaryDisabledText",bg:"buttonSecondaryDisabledBackground"}},_disabled:{color:"buttonSecondaryDisabledText",opacity:1,outlineColor:"buttonSecondaryDisabledBorder",_hover:{outlineColor:"buttonSecondaryDisabledBorder"}}},alternative:{fontFamily:"body",fontWeight:"medium",bg:"buttonAlternativeBackground",color:"buttonAlternativeText",justifyContent:"space-between",textDecoration:"none",paddingInline:"0 !important",_hover:{color:"buttonAlternativeTextHover",_disabled:{color:"buttonAlternativeDisabledText",bg:"buttonAlternativeDisabledBackground"}},_disabled:{color:"buttonAlternativeDisabledText",bg:"buttonAlternativeDisabledBackground",opacity:1}},link:{fontFamily:"body",fontWeight:"medium",bg:"buttonLinkBackground",color:"buttonLinkText",padding:0,_hover:{textDecoration:"underline"}},linkNoDecoration:{fontFamily:"body",fontWeight:"medium",paddingInlineEnd:"0 !important",paddingInline:"0 !important",color:"buttonLinkText",padding:0,_hover:{textDecoration:"none"}},truncationControl:{fontFamily:"body",fontWeight:"black",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:"1px solid",outlineColor:"buttonToggleBorder",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline",_hover:{bg:"buttonToggleBackgroundHover",color:"buttonToggleTextHover",outlineColor:"buttonToggleBackgroundHover",_disabled:{color:"buttonToggleDisabledText"}}},toggleSelected:{display:"flex",justifyContent:"center",cursor:"pointer",bg:"buttonToggleSelectedBackground",color:"buttonToggleSelectedText",outline:"1px solid",outlineColor:"buttonToggleSelectedBorder",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline"},toggleDisabled:{cursor:"not-allowed",bg:"buttonToggleDisabledBackground",color:"buttonToggleDisabledText",outline:"1px solid",outlineColor:"buttonToggleDisabledBorder",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline"},video:{bg:"buttonVideoBackground",color:"buttonVideoText",padding:4},citation:{color:"buttonCitationPrimary",_before:{content:'"["'},_after:{content:'"]"'},padding:0,margin:0,px:0,py:0,paddingInline:0,fontSize:"text.xs",fontFamily:"body",fontWeight:"semibold",_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"}});exports.buttonTheme=o,exports.default=o;
|
|
2
2
|
//# sourceMappingURL=button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sources":["../../../../../src/theme/cruk/components/button.ts"],"sourcesContent":[null],"names":["buttonTheme","defineStyleConfig","baseStyle","fontFamily","fontWeight","borderRadius","px","py","fontSize","base","lg","variants","primary","color","bg","_hover","_disabled","_focus","opacity","primaryAlt","secondary","outline","outlineColor","transitionProperty","secondaryAlt","alternative","justifyContent","textDecoration","paddingInline","link","padding","linkNoDecoration","paddingInlineEnd","truncationControl","display","width","md","xl","lineHeight","sm","_visited","toggle","cursor","toggleSelected","toggleDisabled","video","citation","_before","content","_after","margin","_active","backToTop","boxSize","boxSizing","boxShadow","height","sizes","defaultProps","variant"],"mappings":"oEAEO,MAAMA,8BAAcC,kBAAkB,CAC3CC,UAAW,CACTC,WAAY,OACZC,WAAY,SACZC,aAAc,EACdC,GAAI,EACJC,GAAI,EACJC,SAAU,CAAEC,KAAM,UAAWC,GAAI,
|
|
1
|
+
{"version":3,"file":"button.js","sources":["../../../../../src/theme/cruk/components/button.ts"],"sourcesContent":[null],"names":["buttonTheme","defineStyleConfig","baseStyle","fontFamily","fontWeight","borderRadius","px","py","fontSize","base","lg","whiteSpace","variants","primary","color","bg","_hover","_disabled","_focus","opacity","primaryAlt","secondary","outline","outlineColor","transitionProperty","secondaryAlt","alternative","justifyContent","textDecoration","paddingInline","link","padding","linkNoDecoration","paddingInlineEnd","truncationControl","display","width","md","xl","lineHeight","sm","_visited","toggle","cursor","toggleSelected","toggleDisabled","video","citation","_before","content","_after","margin","_active","backToTop","boxSize","boxSizing","boxShadow","height","sizes","defaultProps","variant"],"mappings":"oEAEO,MAAMA,8BAAcC,kBAAkB,CAC3CC,UAAW,CACTC,WAAY,OACZC,WAAY,SACZC,aAAc,EACdC,GAAI,EACJC,GAAI,EACJC,SAAU,CAAEC,KAAM,UAAWC,GAAI,WACjCC,WAAY,UAEdC,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,oCAGRE,UAAW,CACTH,MAAO,4BACPC,GAAI,kCACJI,QAAS,IAGbC,WAAY,CACVN,MAAO,oBACPC,GAAI,6BACJC,OAAQ,CACND,GAAI,kCACJE,UAAW,CACTH,MAAO,4BACPC,GAAI,oCAGRG,OAAQ,CACNH,GAAI,kCACJE,UAAW,CACTH,MAAO,4BACPC,GAAI,oCAGRE,UAAW,CACTH,MAAO,4BACPC,GAAI,kCACJI,QAAS,IAGbE,UAAW,CACTN,GAAI,4BACJ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AENC,OAAQ,CACND,GAAI,wBAENqB,MAAO,CACL3B,KAAM,OACN+B,GAAI,QAENiB,OAAQ,CACNhD,KAAM,OACN+B,GAAI,UAIVkB,MAAO,CACLrB,GAAI,CACF7B,SAAU,CAAEC,KAAM,UAAWC,GAAI,WACjC6B,WAAY,UACZkB,OAAQ,OACR5B,cAAe,GAEjBW,GAAI,CACFhC,SAAU,UACV+B,WAAY,UACZkB,OAAQ,OACR5B,cAAe,IAGnB8B,aAAc,CACZC,QAAS"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const t=require("@chakra-ui/react").defineStyleConfig({baseStyle:{w:{base:"100%",lg:"293px"},mt:{base:-6,lg:0},flexShrink:0,top:{base:"0",lg:1},alignSelf:"start",zIndex:1,position:"sticky","#sticky-nav-popover-content":{px:4,py:2},"#sticky-nav-back-to-top-container":{paddingX:2,button:{pr:1,textDecoration:"underline",paddingLeft:"8px",color:"primary",fontSize:"text.sm",fontFamily:"poppins.semiBold",bg:{base:"navy.100",lg:"transparent"},paddingTop:2.5,paddingBottom:0,svg:{boxSize:"5"}}},"#sticky-nav-share-tray":{px:"0.6875rem",a:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0",_hover:{opacity:.7},transition:"opacity 0.2s ease",cursor:"pointer",px:"10px",svg:{width:"18px",height:"18px",color:"navy.600"}}},nav:{paddingBottom:4,paddingTop:2,px:{base:4,lg:"inherit"},width:"100%",bg:{base:"navy.100",lg:"transparent"}},"nav h5":{px:"0.6875rem",py:2.5,fontSize:"headings.sm"},"#sticky-nav a":{fontFamily:"body",fontWeight:"semibold",color:"altLinkColor",textDecoration:"underline",fontSize:"text.sm !important",display:"block",px:"2",py:"0.375rem",_hover:{color:"primary"},_visited:{color:"altLinkColorVisited !important"},lineHeight:"5 !important",letterSpacing:"wide",borderLeft:"3px solid transparent"},"#toggle":{mx:{base:-4,md:0},bg:{base:"navy.100",lg:"transparent"},"> button":{color:"black",width:"100%",fontSize:"headings.sm",cursor:{base:"pointer",lg:"text"},bg:{base:"navy.100",lg:"transparent"},_hover:{bg:{base:"navy.100",lg:"transparent"}},paddingBottom:{base:3,lg:0},px:{base:6,lg:2},"> span":{display:{base:"inline-block",lg:"none"}}}}}});exports.default=t,exports.stickyNavigationTheme=t;
|
|
2
|
+
//# sourceMappingURL=stickyNavigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stickyNavigation.js","sources":["../../../../../src/theme/cruk/components/stickyNavigation.ts"],"sourcesContent":[null],"names":["stickyNavigationTheme","defineStyleConfig","baseStyle","w","base","lg","mt","flexShrink","top","alignSelf","zIndex","position","px","py","paddingX","button","pr","textDecoration","paddingLeft","color","fontSize","fontFamily","bg","paddingTop","paddingBottom","svg","boxSize","a","display","lineHeight","m","p","_hover","opacity","transition","cursor","width","height","nav","fontWeight","_visited","letterSpacing","borderLeft","mx","md"],"mappings":"oEAEO,MAAMA,8BAAwBC,kBAAkB,CACrDC,UAAW,CACTC,EAAG,CAAEC,KAAM,OAAQC,GAAI,SACvBC,GAAI,CAAEF,QAAUC,GAAI,GACpBE,WAAY,EACZC,IAAK,CAAEJ,KAAM,IAAKC,GAAI,GACtBI,UAAW,QACXC,OAAQ,EACRC,SAAU,SACV,8BAA+B,CAC7BC,GAAI,EACJC,GAAI,GAEN,oCAAqC,CACnCC,SAAU,EACVC,OAAQ,CACNC,GAAI,EACJC,eAAgB,YAChBC,YAAa,MACbC,MAAO,UACPC,SAAU,UACVC,WAAY,mBACZC,GAAI,CAAElB,KAAM,WAAYC,GAAI,eAC5BkB,WAAY,IACZC,cAAe,EACfC,IAAK,CACHC,QAAS,OAIf,yBAA0B,CACxBd,GAAI,YACJe,EAAG,CACDL,GAAI,OACJH,MAAO,UACPS,QAAS,SACTC,WAAY,UACZC,EAAG,IACHC,EAAG,IACHC,OAAQ,CAAEC,QAAS,IACnBC,WAAY,oBACZC,OAAQ,UACRvB,GAAI,OACJa,IAAK,CACHW,MAAO,OACPC,OAAQ,OACRlB,MAAO,cAIbmB,IAAK,CACHd,cAAe,EACfD,WAAY,EACZX,GAAI,CAAER,KAAM,EAAGC,GAAI,WACnB+B,MAAO,OACPd,GAAI,CAAElB,KAAM,WAAYC,GAAI,gBAE9B,SAAU,CACRO,GAAI,YACJC,GAAI,IACJO,SAAU,eAEZ,gBAAiB,CACfC,WAAY,OACZkB,WAAY,WACZpB,MAAO,eACPF,eAAgB,YAChBG,SAAU,qBACVQ,QAAS,QACThB,GAAI,IACJC,GAAI,WACJmB,OAAQ,CACNb,MAAO,WAETqB,SAAU,CACRrB,MAAO,kCAETU,WAAY,eACZY,cAAe,OACfC,WAAY,yBAEd,UAAW,CACTC,GAAI,CAAEvC,QAAUwC,GAAI,GACpBtB,GAAI,CAAElB,KAAM,WAAYC,GAAI,eAC5B,WAAY,CACVc,MAAO,QACPiB,MAAO,OACPhB,SAAU,cACVe,OAAQ,CAAE/B,KAAM,UAAWC,GAAI,QAC/BiB,GAAI,CAAElB,KAAM,WAAYC,GAAI,eAC5B2B,OAAQ,CACNV,GAAI,CAAElB,KAAM,WAAYC,GAAI,gBAE9BmB,cAAe,CAAEpB,KAAM,EAAGC,GAAI,GAC9BO,GAAI,CAAER,KAAM,EAAGC,GAAI,GACnB,SAAU,CACRuB,QAAS,CAAExB,KAAM,eAAgBC,GAAI"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@chakra-ui/react"),r=require("./components/accordion.js"),o=require("./components/avatar.js"),t=require("./components/badge.js"),n=require("./components/breadcrumb.js"),s=require("./components/button.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@chakra-ui/react"),r=require("./components/accordion.js"),o=require("./components/avatar.js"),t=require("./components/badge.js"),n=require("./components/breadcrumb.js"),s=require("./components/button.js"),i=require("./components/card.js"),u=require("./components/caseStudy.js"),a=require("./components/checkbox.js"),c=require("./components/circle.js"),m=require("./components/circleDevice.js"),p=require("./components/container.js"),l=require("./components/divider.js"),d=require("./components/donateLabelToggleButton.js"),j=require("./components/fileUpload.js"),q=require("./components/footer.js"),T=require("./components/formControl.js"),f=require("./components/formErrorMessage.js"),h=require("./components/heading.js"),b=require("./components/input.js"),g=require("./components/inputNumber.js"),v=require("./components/link.js"),x=require("./components/list.js");require("./components/loader.js");var k=require("./components/logoGroup.js"),y=require("./components/paymentIconsGroup.js"),S=require("./components/popover.js"),B=require("./components/progress.js"),C=require("./components/radio.js"),L=require("./components/select.js"),N=require("./components/simpleHeader.js"),G=require("./components/stepper.js"),I=require("./components/stickyNavigation.js"),P=require("./components/table.js"),D=require("./components/tabs.js"),F=require("./components/tag.js"),H=require("./components/text.js"),U=require("./components/textarea.js"),w=require("./components/textTruncate.js"),A=require("./components/twoBlocksStatistics.js"),E=require("./foundations/index.js"),M=require("./styles.js");const _=e.extendTheme({styles:{global:M.globalTheme},...E.default,components:{Accordion:r.default,Avatar:o.default,Button:s.buttonTheme,Badge:t.badgeTheme,Container:p.default,Checkbox:a.default,Textarea:U.default,Radio:C.default,Select:L.default,Stepper:G.stepperTheme,StickyNavigation:I.stickyNavigationTheme,Tabs:D.default,Heading:h.headingTheme,TextTruncate:w.textTruncateTheme,Text:H.textTheme,Tag:F.default,Link:v.linkTheme,List:x.default,DonateLabel:d.donateLabelTheme,PaymentIconsGroup:y.default,Progress:B.default,Input:b.inputTheme,NumberInput:g.numberInputTheme,Breadcrumb:n.default,Divider:l.dividerTheme,Card:i.default,Circle:c.circleTheme,CircleDevice:m.default,Form:T.default,FormError:f.default,Table:P.tableTheme,TwoBlocksStatistics:A.default,Popover:S.default,Footer:q.footerTheme,SimpleHeader:N.simpleHeaderTheme,LogoGroup:k.logoGroupTheme,CaseStudy:u.caseStudyTheme,FileUpload:j.fileUploadTheme},config:{cssVarPrefix:"crukBrand",themeName:"CrukBrand"}});exports.default=_;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/theme/cruk/index.ts"],"sourcesContent":[null],"names":["crukBrand","extendTheme","styles","global","globalTheme","foundations","default","components","Accordion","accordionTheme","Avatar","avatarTheme","Button","buttonTheme","Badge","badgeTheme","Container","containerTheme","Checkbox","checkboxTheme","Textarea","textareaInputTheme","Radio","radioTheme","Select","selectTheme","Stepper","stepperTheme","Tabs","tabsTheme","Heading","headingTheme","TextTruncate","textTruncateTheme","Text","textTheme","Tag","tagTheme","Link","linkTheme","List","listTheme","DonateLabel","donateLabelTheme","PaymentIconsGroup","paymentIconsGroupTheme","Progress","progressTheme","Input","inputTheme","NumberInput","numberInputTheme","Breadcrumb","breadcrumbTheme","Divider","dividerTheme","Card","cardTheme","Circle","circleTheme","CircleDevice","circleDeviceTheme","Form","formControlTheme","FormError","formErrorTheme","Table","tableTheme","TwoBlocksStatistics","twoBlocksStatisticsTheme","Popover","popoverTheme","Footer","footerTheme","SimpleHeader","simpleHeaderTheme","LogoGroup","logoGroupTheme","CaseStudy","caseStudyTheme","FileUpload","fileUploadTheme","config","cssVarPrefix","themeName"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/theme/cruk/index.ts"],"sourcesContent":[null],"names":["crukBrand","extendTheme","styles","global","globalTheme","foundations","default","components","Accordion","accordionTheme","Avatar","avatarTheme","Button","buttonTheme","Badge","badgeTheme","Container","containerTheme","Checkbox","checkboxTheme","Textarea","textareaInputTheme","Radio","radioTheme","Select","selectTheme","Stepper","stepperTheme","StickyNavigation","stickyNavigationTheme","Tabs","tabsTheme","Heading","headingTheme","TextTruncate","textTruncateTheme","Text","textTheme","Tag","tagTheme","Link","linkTheme","List","listTheme","DonateLabel","donateLabelTheme","PaymentIconsGroup","paymentIconsGroupTheme","Progress","progressTheme","Input","inputTheme","NumberInput","numberInputTheme","Breadcrumb","breadcrumbTheme","Divider","dividerTheme","Card","cardTheme","Circle","circleTheme","CircleDevice","circleDeviceTheme","Form","formControlTheme","FormError","formErrorTheme","Table","tableTheme","TwoBlocksStatistics","twoBlocksStatisticsTheme","Popover","popoverTheme","Footer","footerTheme","SimpleHeader","simpleHeaderTheme","LogoGroup","logoGroupTheme","CaseStudy","caseStudyTheme","FileUpload","fileUploadTheme","config","cssVarPrefix","themeName"],"mappings":"uoDA6CM,MAAAA,EAAYC,EAAAA,YAAY,CAC5BC,OAAQ,CACNC,OAAQC,EAAWA,gBAElBC,EAAWC,QACdC,WAAY,CACVC,UAAWC,EAAcH,QACzBI,OAAQC,EAAWL,QACnBM,OAAQC,EAAWA,YACnBC,MAAOC,EAAUA,WACjBC,UAAWC,EAAcX,QACzBY,SAAUC,EAAab,QACvBc,SAAUC,EAAkBf,QAC5BgB,MAAOC,EAAUjB,QACjBkB,OAAQC,EAAWnB,QACnBoB,QAASC,EAAYA,aACrBC,iBAAkBC,EAAqBA,sBACvCC,KAAMC,EAASzB,QACf0B,QAASC,EAAYA,aACrBC,aAAcC,EAAiBA,kBAC/BC,KAAMC,EAASA,UACfC,IAAKC,EAAQjC,QACbkC,KAAMC,EAASA,UACfC,KAAMC,EAASrC,QACfsC,YAAaC,EAAgBA,iBAC7BC,kBAAmBC,EAAsBzC,QACzC0C,SAAUC,EAAa3C,QACvB4C,MAAOC,EAAUA,WACjBC,YAAaC,EAAgBA,iBAC7BC,WAAYC,EAAejD,QAC3BkD,QAASC,EAAYA,aACrBC,KAAMC,EAASrD,QACfsD,OAAQC,EAAWA,YACnBC,aAAcC,EAAiBzD,QAC/B0D,KAAMC,EAAgB3D,QACtB4D,UAAWC,EAAc7D,QACzB8D,MAAOC,EAAUA,WACjBC,oBAAqBC,EAAwBjE,QAC7CkE,QAASC,EAAYnE,QACrBoE,OAAQC,EAAWA,YACnBC,aAAcC,EAAiBA,kBAC/BC,UAAWC,EAAcA,eACzBC,UAAWC,EAAcA,eACzBC,WAAYC,EAAeA,iBAE7BC,OAAQ,CACNC,aAAc,YACdC,UAAW"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@chakra-ui/react");require("../cruk/components/accordion.js"),require("../cruk/components/badge.js"),require("../cruk/components/breadcrumb.js"),require("../cruk/components/button.js"),require("../cruk/components/card.js"),require("../cruk/components/caseStudy.js"),require("../cruk/components/checkbox.js"),require("../cruk/components/circle.js"),require("../cruk/components/circleDevice.js"),require("../cruk/components/container.js"),require("../cruk/components/divider.js"),require("../cruk/components/donateLabelToggleButton.js"),require("../cruk/components/fileUpload.js"),require("../cruk/components/footer.js"),require("../cruk/components/formControl.js"),require("../cruk/components/formErrorMessage.js"),require("../cruk/components/heading.js"),require("../cruk/components/input.js"),require("../cruk/components/inputNumber.js"),require("../cruk/components/link.js"),require("../cruk/components/list.js"),require("../cruk/components/loader.js"),require("../cruk/components/logoGroup.js"),require("../cruk/components/paymentIconsGroup.js"),require("../cruk/components/popover.js");var r=require("../cruk/components/progress.js");require("../cruk/components/radio.js"),require("../cruk/components/select.js"),require("../cruk/components/simpleHeader.js"),require("../cruk/components/stepper.js"),require("../cruk/components/table.js"),require("../cruk/components/tabs.js"),require("../cruk/components/tag.js"),require("../cruk/components/text.js"),require("../cruk/components/textarea.js"),require("../cruk/components/textTruncate.js");var o=require("../cruk/components/twoBlocksStatistics.js"),s=require("./components/breadcrumb.js"),n=require("./components/button.js"),t=require("./components/card.js"),u=require("./components/caseStudy.js"),c=require("./components/container.js"),i=require("./components/divider.js"),m=require("./components/footer.js"),p=require("./components/formControl.js"),a=require("./components/formErrorMessage.js"),j=require("./components/heading.js"),q=require("./components/input.js"),d=require("./components/link.js"),l=require("./components/list.js"),k=require("./components/popover.js");require("./components/progress.js");var f=require("./components/select.js"),b=require("./components/checkbox.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@chakra-ui/react");require("../cruk/components/accordion.js"),require("../cruk/components/badge.js"),require("../cruk/components/breadcrumb.js"),require("../cruk/components/button.js"),require("../cruk/components/card.js"),require("../cruk/components/caseStudy.js"),require("../cruk/components/checkbox.js"),require("../cruk/components/circle.js"),require("../cruk/components/circleDevice.js"),require("../cruk/components/container.js"),require("../cruk/components/divider.js"),require("../cruk/components/donateLabelToggleButton.js"),require("../cruk/components/fileUpload.js"),require("../cruk/components/footer.js"),require("../cruk/components/formControl.js"),require("../cruk/components/formErrorMessage.js"),require("../cruk/components/heading.js"),require("../cruk/components/input.js"),require("../cruk/components/inputNumber.js"),require("../cruk/components/link.js"),require("../cruk/components/list.js"),require("../cruk/components/loader.js"),require("../cruk/components/logoGroup.js"),require("../cruk/components/paymentIconsGroup.js"),require("../cruk/components/popover.js");var r=require("../cruk/components/progress.js");require("../cruk/components/radio.js"),require("../cruk/components/select.js"),require("../cruk/components/simpleHeader.js"),require("../cruk/components/stepper.js"),require("../cruk/components/stickyNavigation.js"),require("../cruk/components/table.js"),require("../cruk/components/tabs.js"),require("../cruk/components/tag.js"),require("../cruk/components/text.js"),require("../cruk/components/textarea.js"),require("../cruk/components/textTruncate.js");var o=require("../cruk/components/twoBlocksStatistics.js"),s=require("./components/breadcrumb.js"),n=require("./components/button.js"),t=require("./components/card.js"),u=require("./components/caseStudy.js"),c=require("./components/container.js"),i=require("./components/divider.js"),m=require("./components/footer.js"),p=require("./components/formControl.js"),a=require("./components/formErrorMessage.js"),j=require("./components/heading.js"),q=require("./components/input.js"),d=require("./components/link.js"),l=require("./components/list.js"),k=require("./components/popover.js");require("./components/progress.js");var f=require("./components/select.js"),b=require("./components/checkbox.js"),g=require("./components/simpleHeader.js"),h=require("./components/table.js"),T=require("./components/tag.js"),v=require("./components/text.js");require("./components/twoBlocksStatistics.js");var x=require("./components/radio.js"),y=require("./foundations/index.js"),S=require("./styles.js");const B=e.extendTheme({styles:{global:S.globalTheme},...y.default,components:{Card:t.default,Divider:i.dividerTheme,Heading:j.headingTheme,Text:v.textTheme,Button:n.buttonTheme,Container:c.default,Footer:m.footerTheme,Form:p.default,FormError:a.default,Link:d.linkTheme,Checkbox:b.default,List:l.default,Table:h.tableTheme,Tag:T.default,Breadcrumb:s.default,SimpleHeader:g.simpleHeaderTheme,CaseStudy:u.caseStudyTheme,TwoBlocksStatistics:o.default,Progress:r.default,Input:q.inputTheme,Select:f.default,Popover:k.default,Radio:x.default},config:{cssVarPrefix:"R4lBrand",themeName:"R4lBrand"}});exports.default=B;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/theme/r4l/index.ts"],"sourcesContent":[null],"names":["r4lBrand","extendTheme","styles","global","globalTheme","foundations","default","components","Card","cardTheme","Divider","dividerTheme","Heading","headingTheme","Text","textTheme","Button","buttonTheme","Container","containerTheme","Footer","footerTheme","Form","formControlTheme","FormError","formErrorTheme","Link","linkTheme","Checkbox","checkboxTheme","List","listTheme","Table","tableTheme","Tag","tagTheme","Breadcrumb","breadcrumbTheme","SimpleHeader","simpleHeaderTheme","CaseStudy","caseStudyTheme","TwoBlocksStatistics","twoBlocksStatisticsTheme","Progress","progressTheme","Input","inputTheme","Select","selectTheme","Popover","popoverTheme","Radio","radioTheme","config","cssVarPrefix","themeName"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/theme/r4l/index.ts"],"sourcesContent":[null],"names":["r4lBrand","extendTheme","styles","global","globalTheme","foundations","default","components","Card","cardTheme","Divider","dividerTheme","Heading","headingTheme","Text","textTheme","Button","buttonTheme","Container","containerTheme","Footer","footerTheme","Form","formControlTheme","FormError","formErrorTheme","Link","linkTheme","Checkbox","checkboxTheme","List","listTheme","Table","tableTheme","Tag","tagTheme","Breadcrumb","breadcrumbTheme","SimpleHeader","simpleHeaderTheme","CaseStudy","caseStudyTheme","TwoBlocksStatistics","twoBlocksStatisticsTheme","Progress","progressTheme","Input","inputTheme","Select","selectTheme","Popover","popoverTheme","Radio","radioTheme","config","cssVarPrefix","themeName"],"mappings":"0mFA6BM,MAAAA,EAAWC,EAAAA,YAAY,CAC3BC,OAAQ,CACNC,OAAQC,EAAWA,gBAElBC,EAAWC,QACdC,WAAY,CACVC,KAAMC,EAASH,QACfI,QAASC,EAAYA,aACrBC,QAASC,EAAYA,aACrBC,KAAMC,EAASA,UACfC,OAAQC,EAAWA,YACnBC,UAAWC,EAAcb,QACzBc,OAAQC,EAAWA,YACnBC,KAAMC,EAAgBjB,QACtBkB,UAAWC,EAAcnB,QACzBoB,KAAMC,EAASA,UACfC,SAAUC,EAAavB,QACvBwB,KAAMC,EAASzB,QACf0B,MAAOC,EAAUA,WACjBC,IAAKC,EAAQ7B,QACb8B,WAAYC,EAAe/B,QAC3BgC,aAAcC,EAAiBA,kBAC/BC,UAAWC,EAAcA,eACzBC,oBAAqBC,EAAwBrC,QAC7CsC,SAAUC,EAAavC,QACvBwC,MAAOC,EAAUA,WACjBC,OAAQC,EAAW3C,QACnB4C,QAASC,EAAY7C,QACrB8C,MAAOC,EAAU/C,SAEnBgD,OAAQ,CACNC,aAAc,WACdC,UAAW"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as
|
|
1
|
+
import{jsxs as a,jsx as n}from"react/jsx-runtime";import{forwardRef as r,Box as e}from"@chakra-ui/react";import t from"../../theme/cruk/foundations/typography.js";import{Button as o}from"../Button/index.js";import{Heading2 as i,Heading3 as c}from"../Heading/index.js";const l={paddingY:{base:8,md:10,lg:10,xl:16},paddingX:{base:8,md:16,lg:16,xl:20},display:"flex",flexDirection:"column",gap:10},d={primary:{...l,backgroundColor:"ctaBannerPrimaryBg",color:"ctaBannerTextOnPrimary",buttonVariant:"solid",outline:"",".cta-banner-main-body a":{color:"ctaBannerTextOnPrimary",_hover:{color:"ctaBannerTextOnPrimary"},_visited:{color:"ctaBannerTextOnPrimary"}}},primaryAlt:{...l,buttonVariant:"solid",bg:"ctaBannerSecondaryBg",color:"ctaBannerTextOnPrimary",outline:"",".cta-banner-main-body a":{color:"ctaBannerTextOnPrimary",_hover:{color:"ctaBannerTextOnPrimary"},_visited:{color:"ctaBannerTextOnPrimary"}}},secondary:{...l,buttonVariant:"secondary",bg:"backgroundLight",color:"ctaBannerTextOnSecondary",outline:"2px solid",outlineColor:"ctaBannerPrimaryBg"},secondaryAlt:{...l,buttonVariant:"secondary",bg:"backgroundLight",color:"ctaBannerTextOnSecondary",outline:"2px solid",outlineColor:"ctaBannerSecondaryBg"}},m=r(((r,l)=>{const{cta:m="true",variant:s,alignItems:g,heading:x,subHeading:y,body:b,href:u,ctaText:h}=r,p={left:"flex-start",center:"center"}[g],{color:B,buttonVariant:f,outline:T}=d[s];return a(e,{__css:d[s],alignItems:p,"data-cta-banner-variant":s,textAlign:g,ref:l,"aria-label":"cta-banner",role:"banner",children:[a(e,{alignItems:p,display:"flex",flexDirection:"column",gap:6,className:"cta-banner-main-body",children:[n(i,{color:B,children:x}),y&&n(c,{color:B,children:y}),b&&b]}),m&&n(o,{as:u?"a":void 0,target:u&&"_blank",variant:f,outline:T,href:u,children:h,whiteSpace:"wrap",lineHeight:{base:t.lineHeights.text.sm,md:t.lineHeights.text.sm,lg:t.lineHeights.text.md,xl:t.lineHeights.text.md}})]})}));export{m as CTABanner};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/CTABanner/index.tsx"],"sourcesContent":[null],"names":["baseStyle","paddingY","base","md","lg","xl","paddingX","display","flexDirection","gap","variants","primary","backgroundColor","color","buttonVariant","outline","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/CTABanner/index.tsx"],"sourcesContent":[null],"names":["baseStyle","paddingY","base","md","lg","xl","paddingX","display","flexDirection","gap","variants","primary","backgroundColor","color","buttonVariant","outline","_hover","_visited","primaryAlt","bg","secondary","outlineColor","secondaryAlt","CTABanner","forwardRef","props","ref","cta","variant","alignItems","heading","subHeading","body","href","ctaText","alignContent","left","center","textColor","_jsxs","Box","__css","textAlign","role","children","className","_jsx","Heading2","Heading3","Button","as","undefined","target","whiteSpace","lineHeight","typography","lineHeights","text","sm"],"mappings":"4QAiBA,MAAMA,EAAY,CAChBC,SAAU,CAAEC,KAAM,EAAGC,GAAI,GAAIC,GAAI,GAAIC,GAAI,IACzCC,SAAU,CAAEJ,KAAM,EAAGC,GAAI,GAAIC,GAAI,GAAIC,GAAI,IACzCE,QAAS,OACTC,cAAe,SACfC,IAAK,IAGDC,EAAW,CACfC,QAAS,IACJX,EACHY,gBAAiB,qBACjBC,MAAO,yBACPC,cAAe,QACfC,QAAS,GACT,0BAA2B,CACzBF,MAAO,yBACPG,OAAQ,CACNH,MAAO,0BAETI,SAAU,CACRJ,MAAO,4BAIbK,WAAY,IACPlB,EACHc,cAAe,QACfK,GAAI,uBACJN,MAAO,yBACPE,QAAS,GACT,0BAA2B,CACzBF,MAAO,yBACPG,OAAQ,CACNH,MAAO,0BAETI,SAAU,CACRJ,MAAO,4BAIbO,UAAW,IACNpB,EACHc,cAAe,YACfK,GAAI,kBACJN,MAAO,2BACPE,QAAS,YACTM,aAAc,sBAEhBC,aAAc,IACTtB,EACHc,cAAe,YACfK,GAAI,kBACJN,MAAO,2BACPE,QAAS,YACTM,aAAc,yBAIZE,EAAYC,GAAkC,CAACC,EAAOC,KAC1D,MAAMC,IACJA,EAAM,OAAMC,QACZA,EAAOC,WACPA,EAAUC,QACVA,EAAOC,WACPA,EAAUC,KACVA,EAAIC,KACJA,EAAIC,QACJA,GACET,EAEEU,EAAe,CAAEC,KAAM,aAAcC,OAAQ,UAAWR,IACtDhB,MAAOyB,EAASxB,cAAEA,EAAaC,QAAEA,GAAYL,EAASkB,GAE9D,OACEW,EAACC,EAAG,CACFC,MAAO/B,EAASkB,GAChBC,WAAYM,EACa,0BAAAP,EACzBc,UAAWb,EACXH,IAAKA,EACM,aAAA,aACXiB,KAAK,SAELC,SAAA,CAAAL,EAACC,EAAG,CACFX,WAAYM,EACZ5B,QAAQ,OACRC,cAAc,SACdC,IAAK,EACLoC,UAAU,uBAAsBD,SAAA,CAEhCE,EAACC,EAAS,CAAAlC,MAAOyB,WAAYR,IAC5BC,GAAce,EAACE,EAAQ,CAACnC,MAAOyB,EAASM,SAAGb,IAC3CC,GAAQA,KAGVL,GACCmB,EAACG,EAAM,CACLC,GAAIjB,EAAO,SAAMkB,EACjBC,OAAQnB,GAAQ,SAChBL,QAASd,EACTC,QAASA,EACTkB,KAAMA,EACNW,SAAUV,EACVmB,WAAW,OACXC,WAAY,CACVpD,KAAMqD,EAAWC,YAAYC,KAAKC,GAClCvD,GAAIoD,EAAWC,YAAYC,KAAKC,GAChCtD,GAAImD,EAAWC,YAAYC,KAAKtD,GAChCE,GAAIkD,EAAWC,YAAYC,KAAKtD,QAIlC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,
|
|
1
|
+
import{jsxs as t,jsx as e,Fragment as o}from"react/jsx-runtime";import{createIcon as i,forwardRef as n,Box as r,Collapse as a,useBreakpointValue as s,useStyleConfig as c,HStack as l,PopoverTrigger as d,PopoverContent as C}from"@chakra-ui/react";import{Button as p}from"../Button/index.js";import{IconButton as h}from"../Button/IconButton.js";import{Heading5 as m}from"../Heading/index.js";import"../Icon/index.js";import{Link as u}from"../Link/index.js";import{Popover as w}from"../PopOver/index.js";import{useState as f,useEffect as L}from"react";import g from"slugify";import{ArrowUpIcon as H,ChevronDownIcon as V,ChevronUpIcon as b}from"@chakra-ui/icons";const k=i({displayName:"Email",viewBox:"0 0 20 16",d:"M3 2.5C2.65625 2.5 2.375 2.8 2.375 3.16667V4.0875L9.11328 9.9875C9.92188 10.6958 11.082 10.6958 11.8906 9.9875L18.625 4.0875V3.16667C18.625 2.8 18.3438 2.5 18 2.5H3ZM2.375 6.675V13.8333C2.375 14.2 2.65625 14.5 3 14.5H18C18.3438 14.5 18.625 14.2 18.625 13.8333V6.675L13.0781 11.5333C11.5781 12.8458 9.41797 12.8458 7.92188 11.5333L2.375 6.675ZM0.5 3.16667C0.5 1.69583 1.62109 0.5 3 0.5H18C19.3789 0.5 20.5 1.69583 20.5 3.16667V13.8333C20.5 15.3042 19.3789 16.5 18 16.5H3C1.62109 16.5 0.5 15.3042 0.5 13.8333V3.16667Z"}),v=i({displayName:"Print",viewBox:"0 0 18 18",d:"M5 0.5C3.75898 0.5 2.75 1.50898 2.75 2.75V6.125H5V2.75H12.9699L14 3.78008V6.125H16.25V3.78008C16.25 3.18242 16.0145 2.60938 15.5926 2.1875L14.5625 1.15742C14.1406 0.735547 13.5676 0.5 12.9699 0.5H5ZM14 12.875V14V16.25H5V14V13.4375V12.875H14ZM16.25 14H17.375C17.9973 14 18.5 13.4973 18.5 12.875V9.5C18.5 8.25898 17.491 7.25 16.25 7.25H2.75C1.50898 7.25 0.5 8.25898 0.5 9.5V12.875C0.5 13.4973 1.00273 14 1.625 14H2.75V16.25C2.75 17.491 3.75898 18.5 5 18.5H14C15.241 18.5 16.25 17.491 16.25 16.25V14ZM15.6875 9.21875C15.9113 9.21875 16.1259 9.30764 16.2841 9.46588C16.4424 9.62411 16.5312 9.83872 16.5312 10.0625C16.5312 10.2863 16.4424 10.5009 16.2841 10.6591C16.1259 10.8174 15.9113 10.9062 15.6875 10.9062C15.4637 10.9062 15.2491 10.8174 15.0909 10.6591C14.9326 10.5009 14.8438 10.2863 14.8438 10.0625C14.8438 9.83872 14.9326 9.62411 15.0909 9.46588C15.2491 9.30764 15.4637 9.21875 15.6875 9.21875Z"}),y=i({displayName:"Share",viewBox:"0 0 20 16",d:"M19.0977 8.89804C20.9674 6.9759 20.9674 3.86306 19.0977 1.94093C17.443 0.239922 14.8352 0.0187918 12.9324 1.41702L12.8794 1.45444C12.4029 1.80485 12.2937 2.48525 12.6345 2.97174C12.9754 3.45822 13.6373 3.57389 14.1105 3.22348L14.1634 3.18606C15.2257 2.407 16.6785 2.52947 17.5985 3.47863C18.641 4.55027 18.641 6.28529 17.5985 7.35693L13.8855 11.1808C12.843 12.2524 11.1552 12.2524 10.1128 11.1808C9.1895 10.2316 9.07036 8.73814 9.8282 7.6495L9.86461 7.59507C10.2055 7.10518 10.093 6.42477 9.61972 6.07777C9.14648 5.73076 8.4813 5.84303 8.14375 6.32952L8.10735 6.38395C6.7439 8.3367 6.95901 11.0175 8.61368 12.7185C10.4835 14.6406 13.5115 14.6406 15.3813 12.7185L19.0977 8.89804ZM1.90233 8.10197C0.0325556 10.0241 0.0325556 13.1369 1.90233 15.0591C3.557 16.7601 6.16476 16.9812 8.06764 15.583L8.12058 15.5456C8.59713 15.1952 8.70634 14.5148 8.36548 14.0283C8.02461 13.5418 7.36275 13.4261 6.88951 13.7765L6.83656 13.8139C5.77426 14.593 4.32146 14.4705 3.40146 13.5214C2.35902 12.4463 2.35902 10.7113 3.40146 9.63967L7.11454 5.81922C8.15699 4.74758 9.84475 4.74758 10.8872 5.81922C11.8105 6.76838 11.9296 8.26186 11.1718 9.3539L11.1354 9.40834C10.7945 9.89823 10.907 10.5786 11.3803 10.9256C11.8535 11.2726 12.5187 11.1604 12.8563 10.6739L12.8927 10.6195C14.2561 8.6633 14.041 5.98251 12.3863 4.28151C10.5165 2.35937 7.4885 2.35937 5.61872 4.28151L1.90233 8.10197Z"}),x=i({displayName:"X",viewBox:"0 0 18 16",d:"M14.6747 0.5H17.4361L11.4048 7.27692L18.5 16.5H12.9459L8.59257 10.9077L3.61734 16.5H0.852021L7.30183 9.25L0.5 0.5H6.19491L10.1258 5.61154L14.6747 0.5ZM13.7047 14.8769H15.234L5.3618 2.03846H3.71904L13.7047 14.8769Z"}),M=i({displayName:"LinkedIn",viewBox:"0 0 18 18",d:"M4.52991 18.5H0.797321V6.48259H4.52991V18.5ZM2.66161 4.8433C1.4683 4.8433 0.5 3.85491 0.5 2.66161C0.5 2.08831 0.72774 1.5385 1.13312 1.13312C1.5385 0.72774 2.08831 0.5 2.66161 0.5C3.2349 0.5 3.78471 0.72774 4.19009 1.13312C4.59547 1.5385 4.82321 2.08831 4.82321 2.66161C4.82321 3.85491 3.85491 4.8433 2.66161 4.8433ZM18.496 18.5H14.7714V12.65C14.7714 11.2558 14.7433 9.46786 12.8308 9.46786C10.8902 9.46786 10.5929 10.9826 10.5929 12.5496V18.5H6.86429V6.48259H10.4442V8.12187H10.4964C10.9946 7.17768 12.2121 6.18125 14.0281 6.18125C17.8049 6.18125 18.5 8.6683 18.5 11.8987V18.5H18.496Z"}),B=i({displayName:"Facebook",viewBox:"0 0 11 19",d:"M2.7626 11.0223V18.5H6.73929V11.0223H9.70466L10.3217 7.58398H6.73929V6.36758C6.73929 4.55 7.43521 3.85391 9.23157 3.85391C9.79037 3.85391 10.2395 3.86797 10.5 3.89609V0.777734C10.0098 0.640625 8.80991 0.5 8.11741 0.5C4.45269 0.5 2.7626 2.27539 2.7626 6.10391V7.58398H0.5V11.0223H2.7626Z"}),Z=n((({children:o,isOpen:i,button:n,showToggleButton:s,...c},l)=>t(r,{id:"toggle",ref:l,...c,children:[s&&n,e(a,{in:i,animateOpacity:!0,children:o})]}))),T=n((({headings:i,socialMediaSharing:n,...a},T)=>{const S=s({base:!1,lg:!0}),[j,I]=f(null),[$,E]=f(!1),[N,O]=f(""),[_,F]=f(!1),[P,R]=f(!1);L((()=>{R(S??!1)}),[S]);const X=()=>!S&&R((t=>!t));L((()=>{"undefined"!=typeof window&&O(window.location.href)}),[]);const D=i.map((t=>{const e="string"==typeof t?t:t.text;return{id:g(e?.toString().toLowerCase(),{lower:!0,strict:!0}),text:e}}));L((()=>{const t=S?32:70,e=()=>{if($)return;let e=null,o=1/0;D.forEach((({id:i})=>{const n=document.getElementById(i);if(n){const r=n.getBoundingClientRect().top-t;if(r<=100){const t=Math.abs(r);t<o&&(o=t,e=i)}}})),I(e)};return window.addEventListener("scroll",e),requestAnimationFrame(e),()=>window.removeEventListener("scroll",e)}),[D,S,$]);const q=c("StickyNavigation");return e(o,{children:e(r,{ref:T,__css:q,...a,children:e(Z,{button:e(p,{onClick:X,rightIcon:e(P?b:V,{}),justifyContent:"space-between",children:"On this page"}),isOpen:P,onToggle:X,showToggleButton:!0,children:t(r,{as:"nav",children:[e(r,{id:"sticky-nav",children:D.map((({id:t,text:o})=>e(r,{children:e(u,{as:"a",href:`#${t}`,borderLeftColor:t===j?"primary !important":"transparent !important",_hover:{textDecoration:t===j?"underline !important":"none !important"},onClick:e=>((t,e)=>{t.preventDefault(),O(`${window.location.href.split("#")[0]}#${e}`);const o=document.getElementById(e);if(!o)return;X(),E(!0),I(e);const i=S?32:70,n=t=>t.getBoundingClientRect().top+window.scrollY-i;if(S){const t=n(o);return window.scrollTo({top:t,behavior:"smooth"}),window.history.pushState(null,"",`#${e}`),void setTimeout((()=>{E(!1)}),1e3)}setTimeout((()=>{const t=n(o);window.scrollTo({top:t,behavior:"smooth"}),window.history.pushState(null,"",`#${e}`),setTimeout((()=>{E(!1)}),1e3)}),300)})(e,t),children:o})},t)))}),e(r,{id:"sticky-nav-back-to-top-container",children:e(p,{onClick:()=>{E(!0),window.scrollTo({top:0,behavior:"smooth"});const t=window.location.href.split("#")[0];window.history.pushState(null,"",t),O(t),setTimeout((()=>{E(!1)}),1e3)},leftIcon:e(H,{}),variant:"alternative",children:"Back to top"})}),e(m,{children:"Share or print this page"}),t(l,{id:"sticky-nav-share-tray",children:[n?.includes("X")&&e(h,{"aria-label":"Share on X",as:"a",target:"_blank",href:`https://twitter.com/intent/tweet?text=${N}`,icon:e(x,{})}),n?.includes("LinkedIn")&&e(h,{"aria-label":"Share on LinkedIn",as:"a",target:"_blank",href:`https://www.linkedin.com/sharing/share-offsite/?url=${N}`,icon:e(M,{})}),n?.includes("Facebook")&&e(h,{"aria-label":"Share on Facebook",as:"a",target:"_blank",href:`https://facebook.com/sharer.php?u=${N}`,icon:e(B,{})}),e(h,{"aria-label":"Email this page",as:"a",href:`mailto:?subject=Check out this page&body=${N}`,icon:e(k,{})}),e(h,{"aria-label":"Print this page",as:"a",onClick:()=>{"undefined"!=typeof window&&window.print()},icon:e(v,{})}),t(w,{isOpen:_,placement:"bottom",variant:"secondary",children:[e(d,{children:e(h,{onClick:()=>{navigator.clipboard.writeText(N),F(!0),setTimeout((()=>{F(!1)}),3e3)},as:"a","aria-label":"Copy page URL to clipboard",icon:e(y,{})})}),e(C,{id:"sticky-nav-popover-content",children:"Link copied"})]})]})]})})})})}));export{T as StickyNavigation};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/StickyNavigation/index.tsx"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/StickyNavigation/index.tsx"],"sourcesContent":[null],"names":["Email","createIcon","displayName","viewBox","d","Print","Share","X","LinkedIn","Facebook","Toggle","forwardRef","children","isOpen","button","showToggleButton","rest","ref","_jsxs","Box","id","_jsx","Collapse","in","animateOpacity","StickyNavigation","headings","socialMediaSharing","isLargeScreen","useBreakpointValue","base","lg","activeId","setActiveId","useState","isManualScroll","setIsManualScroll","currentUrl","setCurrentUrl","isPopoverOpen","setIsPopoverOpen","setIsOpen","useEffect","toggle","prev","window","location","href","processedHeadings","map","heading","text","slugify","toString","toLowerCase","lower","strict","headerHeight","handleScroll","current","closestDistance","Infinity","forEach","el","document","getElementById","top","getBoundingClientRect","distance","Math","abs","addEventListener","requestAnimationFrame","removeEventListener","stickyNavigationTheme","useStyleConfig","_Fragment","__css","Button","onClick","rightIcon","ChevronUpIcon","ChevronDownIcon","justifyContent","onToggle","as","Link","borderLeftColor","_hover","textDecoration","e","preventDefault","split","target","getOffsetTop","scrollY","offset","scrollTo","behavior","history","pushState","setTimeout","handleStickyNavLink","baseUrl","leftIcon","ArrowUpIcon","variant","Heading5","HStack","includes","IconButton","icon","print","Popover","placement","PopoverTrigger","navigator","clipboard","writeText","PopoverContent"],"mappings":"kpBA8BA,MAAMA,EAAQC,EAAW,CACvBC,YAAa,QACbC,QAAS,YACTC,EAAG,wgBAGCC,EAAQJ,EAAW,CACvBC,YAAa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,EAACyF,gBACY,oBACXzB,GAAG,IACHQ,OAAO,SACP9C,KAAM,qCAAqCV,IAC3C0E,KAAM1F,EAACZ,QAGXY,EAACyF,EACY,CAAA,aAAA,kBACXzB,GAAG,IACHtC,KAAM,4CAA4CV,IAClD0E,KAAM1F,EAACrB,EAAK,MAGdqB,EAACyF,EAAU,CAAA,aACE,kBACXzB,GAAG,IACHN,QAAS,KACe,oBAAXlC,QACTA,OAAOmE,SAGXD,KAAM1F,EAAChB,EAAK,MAGda,EAAC+F,EACC,CAAApG,OAAQ0B,EACR2E,UAAU,SACVR,QAAQ,YAER9F,SAAA,CAAAS,EAAC8F,EAAc,CAAAvG,SACbS,EAACyF,EACC,CAAA/B,QA/HK,KACrBqC,UAAUC,UAAUC,UAAUjF,GAC9BG,GAAiB,GACjB6D,YAAW,KACT7D,GAAiB,EAAM,GACtB,IAAK,EA2HQ6C,GAAG,IACQ,aAAA,6BACX0B,KAAM1F,EAACf,EAAK,CAAA,OAGhBe,EAACkG,EAAc,CAACnG,GAAG,6BAA4BR,SAAA,8BAQxD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{accordionAnatomy as
|
|
1
|
+
import{accordionAnatomy as t}from"@chakra-ui/anatomy";import{createMultiStyleConfigHelpers as e,defineStyle as o}from"@chakra-ui/react";const{definePartsStyle:n,defineMultiStyleConfig:a}=e(t.keys),r=o({border:"0"}),i=o({fontFamily:"body",fontWeight:"normal",fontSize:{base:"text.sm",md:"text.md"},borderBottom:"2px solid black",px:0,py:2,_hover:{color:"btnAccordionHover",bg:"unset"}}),b=o({_hover:{color:"accordionIconPrimary",bg:"unset"}}),s=a({baseStyle:n({container:r,button:i,panel:o({px:0,fontFamily:"body",fontWeight:"normal"}),icon:b}),variants:{stickyNav:n({root:{bg:{base:"navy.100",lg:"transparent"},px:{base:4,lg:0}},container:{border:"none",h5:{marginRight:"auto",px:2,fontSize:"text.sm"}},button:{px:0,pb:{base:2,lg:0},paddingTop:0,justifyContent:"space-between",alignItems:"center",_hover:{bg:"transparent"},_expanded:{bg:"transparent"},borderBottom:"none",bg:"transparent"},panel:{px:0,pb:4},icon:{display:{base:"block",lg:"none"},ml:2}})}});export{s as default};
|
|
2
2
|
//# sourceMappingURL=accordion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.js","sources":["../../../../../src/theme/cruk/components/accordion.ts"],"sourcesContent":[null],"names":["definePartsStyle","defineMultiStyleConfig","createMultiStyleConfigHelpers","accordionAnatomy","keys","container","defineStyle","border","button","fontFamily","fontWeight","fontSize","base","md","borderBottom","px","py","_hover","color","bg","icon","accordionTheme","baseStyle","panel"],"mappings":"wIAGA,MAAMA,iBAAEA,EAAgBC,uBAAEA,GACxBC,EAA8BC,EAAiBC,MAE3CC,EAAYC,EAAY,CAAEC,OAAQ,MAElCC,EAASF,EAAY,CACzBG,WAAY,OACZC,WAAY,SACZC,SAAU,CAAEC,KAAM,UAAWC,GAAI,WACjCC,aAAc,kBACdC,GAAI,EACJC,GAAI,EACJC,OAAQ,CACNC,MAAO,oBACPC,GAAI,WAIFC,EAAOd,EAAY,CACvBW,OAAQ,CACNC,MAAO,uBACPC,GAAI,
|
|
1
|
+
{"version":3,"file":"accordion.js","sources":["../../../../../src/theme/cruk/components/accordion.ts"],"sourcesContent":[null],"names":["definePartsStyle","defineMultiStyleConfig","createMultiStyleConfigHelpers","accordionAnatomy","keys","container","defineStyle","border","button","fontFamily","fontWeight","fontSize","base","md","borderBottom","px","py","_hover","color","bg","icon","accordionTheme","baseStyle","panel","variants","stickyNav","root","lg","h5","marginRight","pb","paddingTop","justifyContent","alignItems","_expanded","display","ml"],"mappings":"wIAGA,MAAMA,iBAAEA,EAAgBC,uBAAEA,GACxBC,EAA8BC,EAAiBC,MAE3CC,EAAYC,EAAY,CAAEC,OAAQ,MAElCC,EAASF,EAAY,CACzBG,WAAY,OACZC,WAAY,SACZC,SAAU,CAAEC,KAAM,UAAWC,GAAI,WACjCC,aAAc,kBACdC,GAAI,EACJC,GAAI,EACJC,OAAQ,CACNC,MAAO,oBACPC,GAAI,WAIFC,EAAOd,EAAY,CACvBW,OAAQ,CACNC,MAAO,uBACPC,GAAI,WAuDFE,EAAiBpB,EAAuB,CAC5CqB,UA9CgBtB,EAAiB,CACjCK,YACAG,SACAe,MATYjB,EAAY,CACxBS,GAAI,EACJN,WAAY,OACZC,WAAY,WAOZU,SA2CAI,SAAU,CAAEC,UAxCIzB,EAAiB,CACjC0B,KAAM,CACJP,GAAI,CAAEP,KAAM,WAAYe,GAAI,eAC5BZ,GAAI,CAAEH,KAAM,EAAGe,GAAI,IAErBtB,UAAW,CACTE,OAAQ,OACRqB,GAAI,CACFC,YAAa,OACbd,GAAI,EACJJ,SAAU,YAGdH,OAAQ,CACNO,GAAI,EACJe,GAAI,CAAElB,KAAM,EAAGe,GAAI,GACnBI,WAAY,EACZC,eAAgB,gBAChBC,WAAY,SACZhB,OAAQ,CACNE,GAAI,eAENe,UAAW,CACTf,GAAI,eAENL,aAAc,OACdK,GAAI,eAENI,MAAO,CACLR,GAAI,EACJe,GAAI,GAENV,KAAM,CACJe,QAAS,CAAEvB,KAAM,QAASe,GAAI,QAC9BS,GAAI"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{defineStyleConfig as o}from"@chakra-ui/react";const t=o({baseStyle:{fontFamily:"body",fontWeight:"medium",borderRadius:0,px:6,py:3,fontSize:{base:"text.sm",lg:"text.md"}},variants:{primary:{color:"buttonPrimaryText",bg:"buttonPrimaryBackground",_hover:{bg:"buttonPrimaryBackgroundHover",_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground"}},_focus:{bg:"buttonPrimaryBackgroundHover",_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground"}},_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:"buttonSecondaryText",outline:"1px solid",outlineColor:"buttonSecondaryBorder",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline","& svg":{fontSize:"1.25rem"},_hover:{color:"buttonSecondaryTextHover",outlineColor:"buttonSecondaryBackgroundHover",bg:"buttonSecondaryBackgroundHover",_disabled:{color:"buttonSecondaryDisabledText"}},_focus:{bg:"buttonPrimaryBackground",color:"buttonPrimaryText",_disabled:{color:"buttonSecondaryDisabledText",bg:"buttonSecondaryDisabledBackground"}},_disabled:{color:"buttonSecondaryDisabledText",opacity:1,outlineColor:"buttonSecondaryDisabledBorder",_hover:{outlineColor:"buttonSecondaryDisabledBorder"}}},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:"buttonPrimaryAltBackground",color:"buttonPrimaryText",_disabled:{color:"buttonSecondaryDisabledText",bg:"buttonSecondaryDisabledBackground"}},_disabled:{color:"buttonSecondaryDisabledText",opacity:1,outlineColor:"buttonSecondaryDisabledBorder",_hover:{outlineColor:"buttonSecondaryDisabledBorder"}}},alternative:{fontFamily:"body",fontWeight:"medium",bg:"buttonAlternativeBackground",color:"buttonAlternativeText",justifyContent:"space-between",textDecoration:"none",paddingInline:"0 !important",_hover:{color:"buttonAlternativeTextHover",_disabled:{color:"buttonAlternativeDisabledText",bg:"buttonAlternativeDisabledBackground"}},_disabled:{color:"buttonAlternativeDisabledText",bg:"buttonAlternativeDisabledBackground",opacity:1}},link:{fontFamily:"body",fontWeight:"medium",bg:"buttonLinkBackground",color:"buttonLinkText",padding:0,_hover:{textDecoration:"underline"}},linkNoDecoration:{fontFamily:"body",fontWeight:"medium",paddingInlineEnd:"0 !important",paddingInline:"0 !important",color:"buttonLinkText",padding:0,_hover:{textDecoration:"none"}},truncationControl:{fontFamily:"body",fontWeight:"black",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:"1px solid",outlineColor:"buttonToggleBorder",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline",_hover:{bg:"buttonToggleBackgroundHover",color:"buttonToggleTextHover",outlineColor:"buttonToggleBackgroundHover",_disabled:{color:"buttonToggleDisabledText"}}},toggleSelected:{display:"flex",justifyContent:"center",cursor:"pointer",bg:"buttonToggleSelectedBackground",color:"buttonToggleSelectedText",outline:"1px solid",outlineColor:"buttonToggleSelectedBorder",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline"},toggleDisabled:{cursor:"not-allowed",bg:"buttonToggleDisabledBackground",color:"buttonToggleDisabledText",outline:"1px solid",outlineColor:"buttonToggleDisabledBorder",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline"},video:{bg:"buttonVideoBackground",color:"buttonVideoText",padding:4},citation:{color:"buttonCitationPrimary",_before:{content:'"["'},_after:{content:'"]"'},padding:0,margin:0,px:0,py:0,paddingInline:0,fontSize:"text.xs",fontFamily:"body",fontWeight:"semibold",_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};
|
|
1
|
+
import{defineStyleConfig as o}from"@chakra-ui/react";const t=o({baseStyle:{fontFamily:"body",fontWeight:"medium",borderRadius:0,px:6,py:3,fontSize:{base:"text.sm",lg:"text.md"},whiteSpace:"normal"},variants:{primary:{color:"buttonPrimaryText",bg:"buttonPrimaryBackground",_hover:{bg:"buttonPrimaryBackgroundHover",_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground"}},_focus:{bg:"buttonPrimaryBackgroundHover",_disabled:{color:"buttonPrimaryDisabledText",bg:"buttonPrimaryDisabledBackground"}},_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:"buttonSecondaryText",outline:"1px solid",outlineColor:"buttonSecondaryBorder",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline","& svg":{fontSize:"1.25rem"},_hover:{color:"buttonSecondaryTextHover",outlineColor:"buttonSecondaryBackgroundHover",bg:"buttonSecondaryBackgroundHover",_disabled:{color:"buttonSecondaryDisabledText"}},_focus:{bg:"buttonPrimaryBackground",color:"buttonPrimaryText",_disabled:{color:"buttonSecondaryDisabledText",bg:"buttonSecondaryDisabledBackground"}},_disabled:{color:"buttonSecondaryDisabledText",opacity:1,outlineColor:"buttonSecondaryDisabledBorder",_hover:{outlineColor:"buttonSecondaryDisabledBorder"}}},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:"buttonPrimaryAltBackground",color:"buttonPrimaryText",_disabled:{color:"buttonSecondaryDisabledText",bg:"buttonSecondaryDisabledBackground"}},_disabled:{color:"buttonSecondaryDisabledText",opacity:1,outlineColor:"buttonSecondaryDisabledBorder",_hover:{outlineColor:"buttonSecondaryDisabledBorder"}}},alternative:{fontFamily:"body",fontWeight:"medium",bg:"buttonAlternativeBackground",color:"buttonAlternativeText",justifyContent:"space-between",textDecoration:"none",paddingInline:"0 !important",_hover:{color:"buttonAlternativeTextHover",_disabled:{color:"buttonAlternativeDisabledText",bg:"buttonAlternativeDisabledBackground"}},_disabled:{color:"buttonAlternativeDisabledText",bg:"buttonAlternativeDisabledBackground",opacity:1}},link:{fontFamily:"body",fontWeight:"medium",bg:"buttonLinkBackground",color:"buttonLinkText",padding:0,_hover:{textDecoration:"underline"}},linkNoDecoration:{fontFamily:"body",fontWeight:"medium",paddingInlineEnd:"0 !important",paddingInline:"0 !important",color:"buttonLinkText",padding:0,_hover:{textDecoration:"none"}},truncationControl:{fontFamily:"body",fontWeight:"black",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:"1px solid",outlineColor:"buttonToggleBorder",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline",_hover:{bg:"buttonToggleBackgroundHover",color:"buttonToggleTextHover",outlineColor:"buttonToggleBackgroundHover",_disabled:{color:"buttonToggleDisabledText"}}},toggleSelected:{display:"flex",justifyContent:"center",cursor:"pointer",bg:"buttonToggleSelectedBackground",color:"buttonToggleSelectedText",outline:"1px solid",outlineColor:"buttonToggleSelectedBorder",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline"},toggleDisabled:{cursor:"not-allowed",bg:"buttonToggleDisabledBackground",color:"buttonToggleDisabledText",outline:"1px solid",outlineColor:"buttonToggleDisabledBorder",transitionProperty:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, outline"},video:{bg:"buttonVideoBackground",color:"buttonVideoText",padding:4},citation:{color:"buttonCitationPrimary",_before:{content:'"["'},_after:{content:'"]"'},padding:0,margin:0,px:0,py:0,paddingInline:0,fontSize:"text.xs",fontFamily:"body",fontWeight:"semibold",_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/cruk/components/button.ts"],"sourcesContent":[null],"names":["buttonTheme","defineStyleConfig","baseStyle","fontFamily","fontWeight","borderRadius","px","py","fontSize","base","lg","variants","primary","color","bg","_hover","_disabled","_focus","opacity","primaryAlt","secondary","outline","outlineColor","transitionProperty","secondaryAlt","alternative","justifyContent","textDecoration","paddingInline","link","padding","linkNoDecoration","paddingInlineEnd","truncationControl","display","width","md","xl","lineHeight","sm","_visited","toggle","cursor","toggleSelected","toggleDisabled","video","citation","_before","content","_after","margin","_active","backToTop","boxSize","boxSizing","boxShadow","height","sizes","defaultProps","variant"],"mappings":"qDAEO,MAAMA,EAAcC,EAAkB,CAC3CC,UAAW,CACTC,WAAY,OACZC,WAAY,SACZC,aAAc,EACdC,GAAI,EACJC,GAAI,EACJC,SAAU,CAAEC,KAAM,UAAWC,GAAI,
|
|
1
|
+
{"version":3,"file":"button.js","sources":["../../../../../src/theme/cruk/components/button.ts"],"sourcesContent":[null],"names":["buttonTheme","defineStyleConfig","baseStyle","fontFamily","fontWeight","borderRadius","px","py","fontSize","base","lg","whiteSpace","variants","primary","color","bg","_hover","_disabled","_focus","opacity","primaryAlt","secondary","outline","outlineColor","transitionProperty","secondaryAlt","alternative","justifyContent","textDecoration","paddingInline","link","padding","linkNoDecoration","paddingInlineEnd","truncationControl","display","width","md","xl","lineHeight","sm","_visited","toggle","cursor","toggleSelected","toggleDisabled","video","citation","_before","content","_after","margin","_active","backToTop","boxSize","boxSizing","boxShadow","height","sizes","defaultProps","variant"],"mappings":"qDAEO,MAAMA,EAAcC,EAAkB,CAC3CC,UAAW,CACTC,WAAY,OACZC,WAAY,SACZC,aAAc,EACdC,GAAI,EACJC,GAAI,EACJC,SAAU,CAAEC,KAAM,UAAWC,GAAI,WACjCC,WAAY,UAEdC,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,oCAGRE,UAAW,CACTH,MAAO,4BACPC,GAAI,kCACJI,QAAS,IAGbC,WAAY,CACVN,MAAO,oBACPC,GAAI,6BACJC,OAAQ,CACND,GAAI,kCACJE,UAAW,CACTH,MAAO,4BACPC,GAAI,oCAGRG,OAAQ,CACNH,GAAI,kCACJE,UAAW,CACTH,MAAO,4BACPC,GAAI,oCAGRE,UAAW,CACTH,MAAO,4BACPC,GAAI,kCACJI,QAAS,IAGbE,UAAW,CACTN,GAAI,4BACJD,MAAO,sBACPQ,QAAS,YACTC,aAAc,wBACdC,mBACE,+FACF,QAAS,CACPhB,SAAU,WAEZQ,OAAQ,CACNF,MAAO,2BACPS,aAAc,iCACdR,GAAI,iCACJE,UAAW,CACTH,MAAO,gCAGXI,OAAQ,CACNH,GAAI,0BACJD,MAAO,oBACPG,UAAW,CACTH,MAAO,8BACPC,GAAI,sCAGRE,UAAW,CACTH,MAAO,8BACPK,QAAS,EACTI,aAAc,gCACdP,OAAQ,CACNO,aAAc,mCAIpBE,aAAc,CACZV,GAAI,+BACJD,MAAO,yBACPQ,QAAS,YACTC,aAAc,2BAC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const e=t({baseStyle:{w:{base:"100%",lg:"293px"},mt:{base:-6,lg:0},flexShrink:0,top:{base:"0",lg:1},alignSelf:"start",zIndex:1,position:"sticky","#sticky-nav-popover-content":{px:4,py:2},"#sticky-nav-back-to-top-container":{paddingX:2,button:{pr:1,textDecoration:"underline",paddingLeft:"8px",color:"primary",fontSize:"text.sm",fontFamily:"poppins.semiBold",bg:{base:"navy.100",lg:"transparent"},paddingTop:2.5,paddingBottom:0,svg:{boxSize:"5"}}},"#sticky-nav-share-tray":{px:"0.6875rem",a:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0",_hover:{opacity:.7},transition:"opacity 0.2s ease",cursor:"pointer",px:"10px",svg:{width:"18px",height:"18px",color:"navy.600"}}},nav:{paddingBottom:4,paddingTop:2,px:{base:4,lg:"inherit"},width:"100%",bg:{base:"navy.100",lg:"transparent"}},"nav h5":{px:"0.6875rem",py:2.5,fontSize:"headings.sm"},"#sticky-nav a":{fontFamily:"body",fontWeight:"semibold",color:"altLinkColor",textDecoration:"underline",fontSize:"text.sm !important",display:"block",px:"2",py:"0.375rem",_hover:{color:"primary"},_visited:{color:"altLinkColorVisited !important"},lineHeight:"5 !important",letterSpacing:"wide",borderLeft:"3px solid transparent"},"#toggle":{mx:{base:-4,md:0},bg:{base:"navy.100",lg:"transparent"},"> button":{color:"black",width:"100%",fontSize:"headings.sm",cursor:{base:"pointer",lg:"text"},bg:{base:"navy.100",lg:"transparent"},_hover:{bg:{base:"navy.100",lg:"transparent"}},paddingBottom:{base:3,lg:0},px:{base:6,lg:2},"> span":{display:{base:"inline-block",lg:"none"}}}}}});export{e as default,e as stickyNavigationTheme};
|
|
2
|
+
//# sourceMappingURL=stickyNavigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stickyNavigation.js","sources":["../../../../../src/theme/cruk/components/stickyNavigation.ts"],"sourcesContent":[null],"names":["stickyNavigationTheme","defineStyleConfig","baseStyle","w","base","lg","mt","flexShrink","top","alignSelf","zIndex","position","px","py","paddingX","button","pr","textDecoration","paddingLeft","color","fontSize","fontFamily","bg","paddingTop","paddingBottom","svg","boxSize","a","display","lineHeight","m","p","_hover","opacity","transition","cursor","width","height","nav","fontWeight","_visited","letterSpacing","borderLeft","mx","md"],"mappings":"qDAEO,MAAMA,EAAwBC,EAAkB,CACrDC,UAAW,CACTC,EAAG,CAAEC,KAAM,OAAQC,GAAI,SACvBC,GAAI,CAAEF,QAAUC,GAAI,GACpBE,WAAY,EACZC,IAAK,CAAEJ,KAAM,IAAKC,GAAI,GACtBI,UAAW,QACXC,OAAQ,EACRC,SAAU,SACV,8BAA+B,CAC7BC,GAAI,EACJC,GAAI,GAEN,oCAAqC,CACnCC,SAAU,EACVC,OAAQ,CACNC,GAAI,EACJC,eAAgB,YAChBC,YAAa,MACbC,MAAO,UACPC,SAAU,UACVC,WAAY,mBACZC,GAAI,CAAElB,KAAM,WAAYC,GAAI,eAC5BkB,WAAY,IACZC,cAAe,EACfC,IAAK,CACHC,QAAS,OAIf,yBAA0B,CACxBd,GAAI,YACJe,EAAG,CACDL,GAAI,OACJH,MAAO,UACPS,QAAS,SACTC,WAAY,UACZC,EAAG,IACHC,EAAG,IACHC,OAAQ,CAAEC,QAAS,IACnBC,WAAY,oBACZC,OAAQ,UACRvB,GAAI,OACJa,IAAK,CACHW,MAAO,OACPC,OAAQ,OACRlB,MAAO,cAIbmB,IAAK,CACHd,cAAe,EACfD,WAAY,EACZX,GAAI,CAAER,KAAM,EAAGC,GAAI,WACnB+B,MAAO,OACPd,GAAI,CAAElB,KAAM,WAAYC,GAAI,gBAE9B,SAAU,CACRO,GAAI,YACJC,GAAI,IACJO,SAAU,eAEZ,gBAAiB,CACfC,WAAY,OACZkB,WAAY,WACZpB,MAAO,eACPF,eAAgB,YAChBG,SAAU,qBACVQ,QAAS,QACThB,GAAI,IACJC,GAAI,WACJmB,OAAQ,CACNb,MAAO,WAETqB,SAAU,CACRrB,MAAO,kCAETU,WAAY,eACZY,cAAe,OACfC,WAAY,yBAEd,UAAW,CACTC,GAAI,CAAEvC,QAAUwC,GAAI,GACpBtB,GAAI,CAAElB,KAAM,WAAYC,GAAI,eAC5B,WAAY,CACVc,MAAO,QACPiB,MAAO,OACPhB,SAAU,cACVe,OAAQ,CAAE/B,KAAM,UAAWC,GAAI,QAC/BiB,GAAI,CAAElB,KAAM,WAAYC,GAAI,eAC5B2B,OAAQ,CACNV,GAAI,CAAElB,KAAM,WAAYC,GAAI,gBAE9BmB,cAAe,CAAEpB,KAAM,EAAGC,GAAI,GAC9BO,GAAI,CAAER,KAAM,EAAGC,GAAI,GACnB,SAAU,CACRuB,QAAS,CAAExB,KAAM,eAAgBC,GAAI"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{extendTheme as o}from"@chakra-ui/react";import r from"./components/accordion.js";import t from"./components/avatar.js";import{badgeTheme as m}from"./components/badge.js";import e from"./components/breadcrumb.js";import{buttonTheme as n}from"./components/button.js";import s from"./components/card.js";import{caseStudyTheme as p}from"./components/caseStudy.js";import i from"./components/checkbox.js";import{circleTheme as c}from"./components/circle.js";import a from"./components/circleDevice.js";import f from"./components/container.js";import{dividerTheme as j}from"./components/divider.js";import{donateLabelTheme as l}from"./components/donateLabelToggleButton.js";import{fileUploadTheme as d}from"./components/fileUpload.js";import{footerTheme as u}from"./components/footer.js";import
|
|
1
|
+
import{extendTheme as o}from"@chakra-ui/react";import r from"./components/accordion.js";import t from"./components/avatar.js";import{badgeTheme as m}from"./components/badge.js";import e from"./components/breadcrumb.js";import{buttonTheme as n}from"./components/button.js";import s from"./components/card.js";import{caseStudyTheme as p}from"./components/caseStudy.js";import i from"./components/checkbox.js";import{circleTheme as c}from"./components/circle.js";import a from"./components/circleDevice.js";import f from"./components/container.js";import{dividerTheme as j}from"./components/divider.js";import{donateLabelTheme as l}from"./components/donateLabelToggleButton.js";import{fileUploadTheme as d}from"./components/fileUpload.js";import{footerTheme as u}from"./components/footer.js";import g from"./components/formControl.js";import b from"./components/formErrorMessage.js";import{headingTheme as k}from"./components/heading.js";import{inputTheme as x}from"./components/input.js";import{numberInputTheme as v}from"./components/inputNumber.js";import{linkTheme as T}from"./components/link.js";import y from"./components/list.js";import"./components/loader.js";import{logoGroupTheme as B}from"./components/logoGroup.js";import C from"./components/paymentIconsGroup.js";import S from"./components/popover.js";import h from"./components/progress.js";import L from"./components/radio.js";import N from"./components/select.js";import{simpleHeaderTheme as D}from"./components/simpleHeader.js";import{stepperTheme as F}from"./components/stepper.js";import{stickyNavigationTheme as G}from"./components/stickyNavigation.js";import{tableTheme as I}from"./components/table.js";import P from"./components/tabs.js";import H from"./components/tag.js";import{textTheme as w}from"./components/text.js";import A from"./components/textarea.js";import{textTruncateTheme as E}from"./components/textTruncate.js";import U from"./components/twoBlocksStatistics.js";import M from"./foundations/index.js";import{globalTheme as R}from"./styles.js";const V=o({styles:{global:R},...M,components:{Accordion:r,Avatar:t,Button:n,Badge:m,Container:f,Checkbox:i,Textarea:A,Radio:L,Select:N,Stepper:F,StickyNavigation:G,Tabs:P,Heading:k,TextTruncate:E,Text:w,Tag:H,Link:T,List:y,DonateLabel:l,PaymentIconsGroup:C,Progress:h,Input:x,NumberInput:v,Breadcrumb:e,Divider:j,Card:s,Circle:c,CircleDevice:a,Form:g,FormError:b,Table:I,TwoBlocksStatistics:U,Popover:S,Footer:u,SimpleHeader:D,LogoGroup:B,CaseStudy:p,FileUpload:d},config:{cssVarPrefix:"crukBrand",themeName:"CrukBrand"}});export{V as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/theme/cruk/index.ts"],"sourcesContent":[null],"names":["crukBrand","extendTheme","styles","global","globalTheme","foundations","components","Accordion","accordionTheme","Avatar","avatarTheme","Button","buttonTheme","Badge","badgeTheme","Container","containerTheme","Checkbox","checkboxTheme","Textarea","textareaInputTheme","Radio","radioTheme","Select","selectTheme","Stepper","stepperTheme","Tabs","tabsTheme","Heading","headingTheme","TextTruncate","textTruncateTheme","Text","textTheme","Tag","tagTheme","Link","linkTheme","List","listTheme","DonateLabel","donateLabelTheme","PaymentIconsGroup","paymentIconsGroupTheme","Progress","progressTheme","Input","inputTheme","NumberInput","numberInputTheme","Breadcrumb","breadcrumbTheme","Divider","dividerTheme","Card","cardTheme","Circle","circleTheme","CircleDevice","circleDeviceTheme","Form","formControlTheme","FormError","formErrorTheme","Table","tableTheme","TwoBlocksStatistics","twoBlocksStatisticsTheme","Popover","popoverTheme","Footer","footerTheme","SimpleHeader","simpleHeaderTheme","LogoGroup","logoGroupTheme","CaseStudy","caseStudyTheme","FileUpload","fileUploadTheme","config","cssVarPrefix","themeName"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/theme/cruk/index.ts"],"sourcesContent":[null],"names":["crukBrand","extendTheme","styles","global","globalTheme","foundations","components","Accordion","accordionTheme","Avatar","avatarTheme","Button","buttonTheme","Badge","badgeTheme","Container","containerTheme","Checkbox","checkboxTheme","Textarea","textareaInputTheme","Radio","radioTheme","Select","selectTheme","Stepper","stepperTheme","StickyNavigation","stickyNavigationTheme","Tabs","tabsTheme","Heading","headingTheme","TextTruncate","textTruncateTheme","Text","textTheme","Tag","tagTheme","Link","linkTheme","List","listTheme","DonateLabel","donateLabelTheme","PaymentIconsGroup","paymentIconsGroupTheme","Progress","progressTheme","Input","inputTheme","NumberInput","numberInputTheme","Breadcrumb","breadcrumbTheme","Divider","dividerTheme","Card","cardTheme","Circle","circleTheme","CircleDevice","circleDeviceTheme","Form","formControlTheme","FormError","formErrorTheme","Table","tableTheme","TwoBlocksStatistics","twoBlocksStatisticsTheme","Popover","popoverTheme","Footer","footerTheme","SimpleHeader","simpleHeaderTheme","LogoGroup","logoGroupTheme","CaseStudy","caseStudyTheme","FileUpload","fileUploadTheme","config","cssVarPrefix","themeName"],"mappings":"2+DA6CM,MAAAA,EAAYC,EAAY,CAC5BC,OAAQ,CACNC,OAAQC,MAEPC,EACHC,WAAY,CACVC,UAAWC,EACXC,OAAQC,EACRC,OAAQC,EACRC,MAAOC,EACPC,UAAWC,EACXC,SAAUC,EACVC,SAAUC,EACVC,MAAOC,EACPC,OAAQC,EACRC,QAASC,EACTC,iBAAkBC,EAClBC,KAAMC,EACNC,QAASC,EACTC,aAAcC,EACdC,KAAMC,EACNC,IAAKC,EACLC,KAAMC,EACNC,KAAMC,EACNC,YAAaC,EACbC,kBAAmBC,EACnBC,SAAUC,EACVC,MAAOC,EACPC,YAAaC,EACbC,WAAYC,EACZC,QAASC,EACTC,KAAMC,EACNC,OAAQC,EACRC,aAAcC,EACdC,KAAMC,EACNC,UAAWC,EACXC,MAAOC,EACPC,oBAAqBC,EACrBC,QAASC,EACTC,OAAQC,EACRC,aAAcC,EACdC,UAAWC,EACXC,UAAWC,EACXC,WAAYC,GAEdC,OAAQ,CACNC,aAAc,YACdC,UAAW"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{extendTheme as o}from"@chakra-ui/react";import"../cruk/components/accordion.js";import"../cruk/components/badge.js";import"../cruk/components/breadcrumb.js";import"../cruk/components/button.js";import"../cruk/components/card.js";import"../cruk/components/caseStudy.js";import"../cruk/components/checkbox.js";import"../cruk/components/circle.js";import"../cruk/components/circleDevice.js";import"../cruk/components/container.js";import"../cruk/components/divider.js";import"../cruk/components/donateLabelToggleButton.js";import"../cruk/components/fileUpload.js";import"../cruk/components/footer.js";import"../cruk/components/formControl.js";import"../cruk/components/formErrorMessage.js";import"../cruk/components/heading.js";import"../cruk/components/input.js";import"../cruk/components/inputNumber.js";import"../cruk/components/link.js";import"../cruk/components/list.js";import"../cruk/components/loader.js";import"../cruk/components/logoGroup.js";import"../cruk/components/paymentIconsGroup.js";import"../cruk/components/popover.js";import r from"../cruk/components/progress.js";import"../cruk/components/radio.js";import"../cruk/components/select.js";import"../cruk/components/simpleHeader.js";import"../cruk/components/stepper.js";import"../cruk/components/table.js";import"../cruk/components/tabs.js";import"../cruk/components/tag.js";import"../cruk/components/text.js";import"../cruk/components/textarea.js";import"../cruk/components/textTruncate.js";import t from"../cruk/components/twoBlocksStatistics.js";import m from"./components/breadcrumb.js";import{buttonTheme as s}from"./components/button.js";import n from"./components/card.js";import{caseStudyTheme as p}from"./components/caseStudy.js";import e from"./components/container.js";import{dividerTheme as c}from"./components/divider.js";import{footerTheme as i}from"./components/footer.js";import j from"./components/formControl.js";import u from"./components/formErrorMessage.js";import{headingTheme as a}from"./components/heading.js";import{inputTheme as k}from"./components/input.js";import{linkTheme as f}from"./components/link.js";import d from"./components/list.js";import l from"./components/popover.js";import"./components/progress.js";import b from"./components/select.js";import g from"./components/checkbox.js";import{simpleHeaderTheme as x}from"./components/simpleHeader.js";import{tableTheme as
|
|
1
|
+
import{extendTheme as o}from"@chakra-ui/react";import"../cruk/components/accordion.js";import"../cruk/components/badge.js";import"../cruk/components/breadcrumb.js";import"../cruk/components/button.js";import"../cruk/components/card.js";import"../cruk/components/caseStudy.js";import"../cruk/components/checkbox.js";import"../cruk/components/circle.js";import"../cruk/components/circleDevice.js";import"../cruk/components/container.js";import"../cruk/components/divider.js";import"../cruk/components/donateLabelToggleButton.js";import"../cruk/components/fileUpload.js";import"../cruk/components/footer.js";import"../cruk/components/formControl.js";import"../cruk/components/formErrorMessage.js";import"../cruk/components/heading.js";import"../cruk/components/input.js";import"../cruk/components/inputNumber.js";import"../cruk/components/link.js";import"../cruk/components/list.js";import"../cruk/components/loader.js";import"../cruk/components/logoGroup.js";import"../cruk/components/paymentIconsGroup.js";import"../cruk/components/popover.js";import r from"../cruk/components/progress.js";import"../cruk/components/radio.js";import"../cruk/components/select.js";import"../cruk/components/simpleHeader.js";import"../cruk/components/stepper.js";import"../cruk/components/stickyNavigation.js";import"../cruk/components/table.js";import"../cruk/components/tabs.js";import"../cruk/components/tag.js";import"../cruk/components/text.js";import"../cruk/components/textarea.js";import"../cruk/components/textTruncate.js";import t from"../cruk/components/twoBlocksStatistics.js";import m from"./components/breadcrumb.js";import{buttonTheme as s}from"./components/button.js";import n from"./components/card.js";import{caseStudyTheme as p}from"./components/caseStudy.js";import e from"./components/container.js";import{dividerTheme as c}from"./components/divider.js";import{footerTheme as i}from"./components/footer.js";import j from"./components/formControl.js";import u from"./components/formErrorMessage.js";import{headingTheme as a}from"./components/heading.js";import{inputTheme as k}from"./components/input.js";import{linkTheme as f}from"./components/link.js";import d from"./components/list.js";import l from"./components/popover.js";import"./components/progress.js";import b from"./components/select.js";import g from"./components/checkbox.js";import{simpleHeaderTheme as x}from"./components/simpleHeader.js";import{tableTheme as v}from"./components/table.js";import B from"./components/tag.js";import{textTheme as S}from"./components/text.js";import"./components/twoBlocksStatistics.js";import h from"./components/radio.js";import y from"./foundations/index.js";import{globalTheme as C}from"./styles.js";const T=o({styles:{global:C},...y,components:{Card:n,Divider:c,Heading:a,Text:S,Button:s,Container:e,Footer:i,Form:j,FormError:u,Link:f,Checkbox:g,List:d,Table:v,Tag:B,Breadcrumb:m,SimpleHeader:x,CaseStudy:p,TwoBlocksStatistics:t,Progress:r,Input:k,Select:b,Popover:l,Radio:h},config:{cssVarPrefix:"R4lBrand",themeName:"R4lBrand"}});export{T as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/theme/r4l/index.ts"],"sourcesContent":[null],"names":["r4lBrand","extendTheme","styles","global","globalTheme","foundations","components","Card","cardTheme","Divider","dividerTheme","Heading","headingTheme","Text","textTheme","Button","buttonTheme","Container","containerTheme","Footer","footerTheme","Form","formControlTheme","FormError","formErrorTheme","Link","linkTheme","Checkbox","checkboxTheme","List","listTheme","Table","tableTheme","Tag","tagTheme","Breadcrumb","breadcrumbTheme","SimpleHeader","simpleHeaderTheme","CaseStudy","caseStudyTheme","TwoBlocksStatistics","twoBlocksStatisticsTheme","Progress","progressTheme","Input","inputTheme","Select","selectTheme","Popover","popoverTheme","Radio","radioTheme","config","cssVarPrefix","themeName"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/theme/r4l/index.ts"],"sourcesContent":[null],"names":["r4lBrand","extendTheme","styles","global","globalTheme","foundations","components","Card","cardTheme","Divider","dividerTheme","Heading","headingTheme","Text","textTheme","Button","buttonTheme","Container","containerTheme","Footer","footerTheme","Form","formControlTheme","FormError","formErrorTheme","Link","linkTheme","Checkbox","checkboxTheme","List","listTheme","Table","tableTheme","Tag","tagTheme","Breadcrumb","breadcrumbTheme","SimpleHeader","simpleHeaderTheme","CaseStudy","caseStudyTheme","TwoBlocksStatistics","twoBlocksStatisticsTheme","Progress","progressTheme","Input","inputTheme","Select","selectTheme","Popover","popoverTheme","Radio","radioTheme","config","cssVarPrefix","themeName"],"mappings":"6oFA6BM,MAAAA,EAAWC,EAAY,CAC3BC,OAAQ,CACNC,OAAQC,MAEPC,EACHC,WAAY,CACVC,KAAMC,EACNC,QAASC,EACTC,QAASC,EACTC,KAAMC,EACNC,OAAQC,EACRC,UAAWC,EACXC,OAAQC,EACRC,KAAMC,EACNC,UAAWC,EACXC,KAAMC,EACNC,SAAUC,EACVC,KAAMC,EACNC,MAAOC,EACPC,IAAKC,EACLC,WAAYC,EACZC,aAAcC,EACdC,UAAWC,EACXC,oBAAqBC,EACrBC,SAAUC,EACVC,MAAOC,EACPC,OAAQC,EACRC,QAASC,EACTC,MAAOC,GAETC,OAAQ,CACNC,aAAc,WACdC,UAAW"}
|
package/dist/index.d.ts
CHANGED
|
@@ -489,11 +489,11 @@ interface Heading {
|
|
|
489
489
|
id: string;
|
|
490
490
|
text: string;
|
|
491
491
|
}
|
|
492
|
-
interface StickyNavigationProps {
|
|
492
|
+
interface StickyNavigationProps extends BoxProps {
|
|
493
493
|
headings: (Heading | string)[];
|
|
494
494
|
socialMediaSharing?: ("X" | "LinkedIn" | "Facebook" | "Email")[] | null;
|
|
495
495
|
}
|
|
496
|
-
declare const StickyNavigation:
|
|
496
|
+
declare const StickyNavigation: _chakra_ui_react.ComponentWithAs<"div", StickyNavigationProps>;
|
|
497
497
|
|
|
498
498
|
declare const Text: _chakra_ui_react.ComponentWithAs<"p", TextProps>;
|
|
499
499
|
|