@windstream/react-shared-components 0.0.10 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +623 -623
- package/dist/contentful/index.d.ts +6 -2
- package/dist/contentful/index.esm.js +1 -1
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +1 -1
- package/dist/contentful/index.js.map +1 -1
- package/dist/core.d.ts +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +159 -159
- package/src/components/accordion/Accordion.stories.tsx +225 -225
- package/src/components/accordion/index.tsx +36 -36
- package/src/components/accordion/types.ts +9 -9
- package/src/components/alert-card/types.ts +9 -9
- package/src/components/brand-button/BrandButton.stories.tsx +221 -221
- package/src/components/brand-button/helpers.ts +35 -35
- package/src/components/brand-button/index.tsx +90 -90
- package/src/components/brand-button/types.ts +26 -26
- package/src/components/button/Button.stories.tsx +108 -108
- package/src/components/button/index.tsx +23 -23
- package/src/components/button/types.ts +14 -14
- package/src/components/call-button/CallButton.stories.tsx +324 -324
- package/src/components/call-button/index.tsx +80 -80
- package/src/components/call-button/types.ts +9 -9
- package/src/components/checkbox/Checkbox.stories.tsx +248 -248
- package/src/components/checkbox/types.ts +23 -23
- package/src/components/checklist/Checklist.stories.tsx +151 -151
- package/src/components/checklist/index.tsx +33 -33
- package/src/components/checklist/types.ts +5 -5
- package/src/components/collapse/Collapse.stories.tsx +256 -256
- package/src/components/collapse/index.tsx +44 -44
- package/src/components/collapse/types.ts +5 -5
- package/src/components/divider/Divider.stories.tsx +206 -206
- package/src/components/divider/index.tsx +23 -23
- package/src/components/divider/type.ts +2 -2
- package/src/components/input/Input.stories.tsx +358 -358
- package/src/components/input/index.tsx +174 -174
- package/src/components/input/types.ts +36 -36
- package/src/components/link/Link.stories.tsx +163 -163
- package/src/components/link/index.tsx +96 -96
- package/src/components/link/types.ts +25 -25
- package/src/components/list/List.stories.tsx +272 -272
- package/src/components/list/index.tsx +86 -86
- package/src/components/list/list-item/index.tsx +36 -36
- package/src/components/list/list-item/types.ts +13 -13
- package/src/components/list/types.ts +29 -29
- package/src/components/material-icon/MaterialIcon.stories.tsx +330 -330
- package/src/components/material-icon/constants.ts +95 -95
- package/src/components/material-icon/index.tsx +44 -44
- package/src/components/material-icon/types.ts +31 -31
- package/src/components/modal/Modal.stories.tsx +171 -171
- package/src/components/modal/index.tsx +168 -168
- package/src/components/modal/types.ts +23 -23
- package/src/components/radio-button/index.tsx +73 -73
- package/src/components/radio-button/types.ts +21 -21
- package/src/components/see-more/SeeMore.stories.tsx +182 -182
- package/src/components/see-more/index.tsx +38 -38
- package/src/components/see-more/types.ts +3 -3
- package/src/components/select/Select.stories.tsx +410 -410
- package/src/components/select/index.tsx +150 -150
- package/src/components/select/types.ts +34 -34
- package/src/components/select-plan-button/SelectPlanButton.stories.tsx +160 -160
- package/src/components/select-plan-button/index.tsx +20 -20
- package/src/components/select-plan-button/types.ts +3 -3
- package/src/components/skeleton/Skeleton.stories.tsx +180 -180
- package/src/components/skeleton/index.tsx +61 -61
- package/src/components/skeleton/types.ts +3 -3
- package/src/components/spinner/Spinner.stories.tsx +335 -335
- package/src/components/spinner/index.tsx +44 -44
- package/src/components/spinner/types.ts +4 -4
- package/src/components/text/Text.stories.tsx +302 -302
- package/src/components/text/index.tsx +26 -26
- package/src/components/text/types.ts +45 -45
- package/src/components/tooltip/Tooltip.stories.tsx +220 -220
- package/src/components/tooltip/index.tsx +78 -78
- package/src/components/tooltip/types.ts +6 -6
- package/src/components/view-cart-button/ViewCartButton.stories.tsx +241 -241
- package/src/components/view-cart-button/index.tsx +38 -38
- package/src/components/view-cart-button/types.ts +4 -4
- package/src/contentful/blocks/accordion/index.tsx +7 -7
- package/src/contentful/blocks/button/index.tsx +5 -5
- package/src/contentful/blocks/callout/index.tsx +7 -7
- package/src/contentful/blocks/cards/index.tsx +7 -7
- package/src/contentful/blocks/carousel/index.tsx +7 -7
- package/src/contentful/blocks/cta-callout/index.tsx +6 -0
- package/src/contentful/blocks/cta-callout/types.ts +1 -0
- package/src/contentful/blocks/floating-banner/index.tsx +7 -7
- package/src/contentful/blocks/footer/index.tsx +7 -7
- package/src/contentful/blocks/image-promo-bar/index.tsx +7 -7
- package/src/contentful/blocks/modal/index.tsx +5 -5
- package/src/contentful/blocks/navigation/index.tsx +7 -7
- package/src/contentful/blocks/primary-hero/index.tsx +7 -7
- package/src/contentful/blocks/shape-background-wrapper/index.tsx +123 -123
- package/src/contentful/blocks/shape-background-wrapper/types.ts +35 -35
- package/src/contentful/blocks/text/index.tsx +6 -6
- package/src/contentful/index.ts +4 -1
- package/src/hooks/use-body-scroll-lock.ts +31 -31
- package/src/index.ts +81 -81
- package/src/setupTests.ts +46 -46
- package/src/styles/globals.css +275 -319
- package/src/types/global.d.ts +9 -9
- package/src/utils/index.ts +49 -49
|
@@ -87,5 +87,9 @@ type ShapeBackgroundWrapperProps = {
|
|
|
87
87
|
|
|
88
88
|
declare const ShapeBackgroundWrapper: React$1.FC<ShapeBackgroundWrapperProps>;
|
|
89
89
|
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
type CtaCalloutProps = {};
|
|
91
|
+
|
|
92
|
+
declare const CtaCallout: React.FC<CtaCalloutProps>;
|
|
93
|
+
|
|
94
|
+
export { Accordion, Button, Callout, Cards, Carousel, CtaCallout, FloatingBanner, Footer, ImagePromoBar, Modal, Navigation, PrimaryHero, ShapeBackgroundWrapper, Text };
|
|
95
|
+
export type { AccordionProps, ButtonProps, CalloutProps, CardsProps, CarouselProps, CtaCalloutProps, FloatingBannerProps, FooterProps, ImagePromoBarProps, ModalProps, NavigationProps, PrimaryHeroProps, ShapeBackgroundWrapperProps, TextProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as
|
|
1
|
+
import{jsx as e,jsxs as l}from"react/jsx-runtime";const t=({fields:l})=>e("div",{children:"Accordion"}),i=({fields:l})=>e("div",{children:"Callout"}),n=({fields:l})=>e("div",{children:"Cards"}),a=({fields:l})=>e("div",{children:"Carousel"}),s=({fields:l})=>e("div",{children:"FloatingBanner"}),r=({fields:l})=>e("div",{children:"Footer component"}),d=({fields:l})=>e("div",{children:"Image Promo Bar"}),o=({fields:l})=>e("div",{children:"Navigation"}),h=({fields:l})=>e("div",{children:"Primary Hero"}),c=({fields:l})=>e("div",{children:"Text Block"}),C=({fields:l})=>e("div",{children:"Button Block"}),v=({fields:l})=>e("div",{children:"Modal Block"}),g=({children:t,background:i,className:n,fill:a="yellow",maxFit:s,show:r=!0,path:d="path2"})=>{const o=`${d}`,h={blue:"text-[#07B2E2]",green:"text-[#26B170]",yellow:"text-[#F5FF1E]",purple:"text-[#931D69]",white:"text-white",navy:"text-[#00002D]"},c={blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"},C="string"==typeof i&&i in c,v=C?c[i]:void 0,g=i&&!C?{background:i}:void 0,p=a in h?h[a]:"text-[#F5FF1E]";return r?l("div",{className:`shape-bg relative overflow-hidden ${null!=n?n:""} ${s?"max-content":""} ${null!=v?v:g?"":"bg-white"}`,style:g,children:["path1"===d&&e("svg",{className:`shape-bg-svg absolute pointer-events-none z-0 left-1/2 top-[-2371px] translate-x-[-55%] ${o} fill-current ${p}`,width:"2262",height:"4359",viewBox:"0 0 2262 4359",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e("path",{d:"M1838.72 444.021C2216.45 758.242 2351.22 1060.81 2202.83 1982.25C2062.95 2851.55 1923.57 4265.14 1394.48 4348.94C1079.75 4409.66 766.955 4172.68 508.523 4003.04C340.876 3884.89 192.855 3774.9 26.6866 3661.93C-27.6562 3624.7 8.69435 3542.15 74.1261 3555.69C415.628 3626.61 686.916 3615.36 942.942 3443.48C1410.95 3163.54 1632.32 2141.02 1629.56 1543.75C1637.51 910.76 1276.06 582.318 829.643 352.709C587.562 235.528 333.508 169.963 100.699 149.757C31.9431 143.965 25.0259 47.9703 92.459 33.1281C623.196 -84.6769 1404.59 131.886 1839.84 443.573"})}),"path2"===d&&e("svg",{className:`shape-bg-svg absolute pointer-events-none z-0 left-1/2 top-[45.8px] translate-x-[-101%] ${o} fill-current ${p}`,width:"3739",height:"3666",viewBox:"0 0 3739 3666",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e("path",{d:"M1662.93 3664.31C2153.52 3637.23 2442.1 3474.65 2872.31 2646.41C3278.25 1865.09 4009.1 647.09 3634.26 264.38C3417.79 27.9944 3025.37 31.7818 2716.76 13.9013C2511.72 8.81634 2327.31 8.87399 2126.55 0.511773C2060.73 -2.00127 2040.7 85.9475 2101.3 114.087C2417.76 260.743 2628.86 431.51 2731.94 722.142C2940.79 1225.9 2508.91 2178.82 2150.63 2656.7C1779.64 3169.63 1293.64 3217.84 798.345 3136.04C534.128 3085.8 291.072 2986.97 92.1133 2864.4C33.4593 2828.06 -29.3236 2901.01 15.967 2953.13C371.841 3364.12 1128.29 3656.09 1663.56 3665.34"})}),"path3"===d&&e("svg",{className:`shape-bg-svg absolute pointer-events-none z-0 top-[-2600px] left-1/2 translate-x-[-55%] ${o} fill-current ${p}`,width:"3044",height:"3248",viewBox:"0 0 3044 3248",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e("path",{d:"M1.21857 1353.6C-0.931975 1765.46 120.504 2015.15 791.765 2417.01C1424.98 2796.19 2407.16 3469.31 2746.34 3175.04C2955.08 3005.86 2971.76 2677.32 3002.33 2420C3016.95 2248.7 3026.23 2094.39 3043.38 1926.83C3048.81 1871.88 2976.24 1850.67 2949.63 1899.96C2810.91 2157.33 2657.35 2325.33 2408.95 2396.88C1976.88 2546.15 1201.39 2136.59 819.655 1812.63C409.231 1476.27 393.475 1067.19 486.97 656.895C542.372 438.358 637.352 239.983 749.974 79.7081C783.347 32.4684 725.487 -23.7534 679.587 11.5067C317.699 288.49 35.1358 906.671 0.328344 1354.07"})}),"path4"===d&&e("svg",{className:`shape-bg-svg absolute pointer-events-none z-0 left-1/2 top-[-1966.1px] translate-x-[-48%] ${o} fill-current ${p}`,width:"3739",height:"3666",viewBox:"0 0 3739 3666",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e("path",{d:"M1662.93 3664.31C2153.52 3637.23 2442.1 3474.65 2872.31 2646.41C3278.25 1865.1 4009.1 647.091 3634.26 264.381C3417.79 27.9951 3025.37 31.7826 2716.76 13.902C2511.72 8.81709 2327.31 8.87474 2126.55 0.512528C2060.73 -2.00052 2040.7 85.9483 2101.3 114.088C2417.76 260.743 2628.86 431.51 2731.94 722.143C2940.79 1225.9 2508.91 2178.82 2150.63 2656.7C1779.64 3169.63 1293.64 3217.84 798.345 3136.04C534.128 3085.8 291.072 2986.98 92.1133 2864.4C33.4593 2828.06 -29.3236 2901.01 15.967 2953.13C371.841 3364.12 1128.29 3656.09 1663.56 3665.34"})}),e("div",{className:"shape-bg-content relative z-[1]",children:t})]}):e("div",{className:n,style:g,children:t})},p=({fields:l})=>e("div",{children:"CTA Callout Block"});export{t as Accordion,C as Button,i as Callout,n as Cards,a as Carousel,p as CtaCallout,s as FloatingBanner,r as Footer,d as ImagePromoBar,v as Modal,o as Navigation,h as PrimaryHero,g as ShapeBackgroundWrapper,c as Text};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../src/contentful/blocks/accordion/index.tsx","../../src/contentful/blocks/callout/index.tsx","../../src/contentful/blocks/cards/index.tsx","../../src/contentful/blocks/carousel/index.tsx","../../src/contentful/blocks/floating-banner/index.tsx","../../src/contentful/blocks/footer/index.tsx","../../src/contentful/blocks/image-promo-bar/index.tsx","../../src/contentful/blocks/navigation/index.tsx","../../src/contentful/blocks/primary-hero/index.tsx","../../src/contentful/blocks/text/index.tsx","../../src/contentful/blocks/button/index.tsx","../../src/contentful/blocks/modal/index.tsx","../../src/contentful/blocks/shape-background-wrapper/index.tsx"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["Accordion","fields","_jsx","Callout","Cards","Carousel","FloatingBanner","Footer","ImagePromoBar","Navigation","PrimaryHero","Text","Button","Modal","ShapeBackgroundWrapper","children","background","className","fill","maxFit","show","path","variantClass","textColorClasses","blue","green","yellow","purple","white","navy","bgColorClasses","isThemeKey","bgClass","undefined","bgStyle","fillClass","_jsxs","style","width","height","viewBox","xmlns","focusable","d"],"mappings":"wDAEaA,EAAkD,EAAGC,YACzDC,gCCDIC,EAA8C,EAAGF,YACrDC,8BCDIE,EAA0C,EAAGH,YACjDC,4BCDIG,EAAgD,EAAGJ,YACvDC,+BCDII,EAA0D,EAAGL,YACjEC,qCCDIK,EAA4C,EAAGN,YACnDC,uCCDIM,EAA0D,EAAGP,YACjEC,sCCDIO,EAAoD,EAAGR,YAC3DC,iCCDIQ,EAAsD,EAAGT,YAC7DC,mCCDIS,EAAwC,EAAGV,YAC/CC,iCCDIU,EAA4C,EAAGX,YACnDC,mCCDIW,EAA0C,EAAGZ,YACjDC,kCCCIY,EAAgE,EACzEC,WACAC,aACAC,YACAC,OAAO,SACPC,SACAC,QAAO,EACPC,OAAO,YAEP,MAAMC,EAAe,GAAGD,IAElBE,EAA6C,CAC/CC,KAAM,iBACNC,MAAO,iBACPC,OAAQ,iBACRC,OAAQ,iBACRC,MAAO,aACPC,KAAM,kBAGJC,EAA2C,CAC7CN,KAAM,eACNC,MAAO,eACPC,OAAQ,eACRC,OAAQ,eACRC,MAAO,WACPC,KAAM,gBAGJE,EACoB,iBAAff,GAA2BA,KAAcc,EAE9CE,EAAUD,EACVD,EAAed,QACfiB,EACAC,EAAUlB,IAAee,EAAa,CAAEf,mBAAeiB,EAEvDE,EACFjB,KAAQK,EACFA,EAAiBL,GACjB,iBAEV,OAAKE,EASDgB,EAAA,MAAA,CACInB,UAAW,
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../src/contentful/blocks/accordion/index.tsx","../../src/contentful/blocks/callout/index.tsx","../../src/contentful/blocks/cards/index.tsx","../../src/contentful/blocks/carousel/index.tsx","../../src/contentful/blocks/floating-banner/index.tsx","../../src/contentful/blocks/footer/index.tsx","../../src/contentful/blocks/image-promo-bar/index.tsx","../../src/contentful/blocks/navigation/index.tsx","../../src/contentful/blocks/primary-hero/index.tsx","../../src/contentful/blocks/text/index.tsx","../../src/contentful/blocks/button/index.tsx","../../src/contentful/blocks/modal/index.tsx","../../src/contentful/blocks/shape-background-wrapper/index.tsx","../../src/contentful/blocks/cta-callout/index.tsx"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["Accordion","fields","_jsx","Callout","Cards","Carousel","FloatingBanner","Footer","ImagePromoBar","Navigation","PrimaryHero","Text","Button","Modal","ShapeBackgroundWrapper","children","background","className","fill","maxFit","show","path","variantClass","textColorClasses","blue","green","yellow","purple","white","navy","bgColorClasses","isThemeKey","bgClass","undefined","bgStyle","fillClass","_jsxs","style","width","height","viewBox","xmlns","focusable","d","CtaCallout"],"mappings":"wDAEaA,EAAkD,EAAGC,YACzDC,gCCDIC,EAA8C,EAAGF,YACrDC,8BCDIE,EAA0C,EAAGH,YACjDC,4BCDIG,EAAgD,EAAGJ,YACvDC,+BCDII,EAA0D,EAAGL,YACjEC,qCCDIK,EAA4C,EAAGN,YACnDC,uCCDIM,EAA0D,EAAGP,YACjEC,sCCDIO,EAAoD,EAAGR,YAC3DC,iCCDIQ,EAAsD,EAAGT,YAC7DC,mCCDIS,EAAwC,EAAGV,YAC/CC,iCCDIU,EAA4C,EAAGX,YACnDC,mCCDIW,EAA0C,EAAGZ,YACjDC,kCCCIY,EAAgE,EACzEC,WACAC,aACAC,YACAC,OAAO,SACPC,SACAC,QAAO,EACPC,OAAO,YAEP,MAAMC,EAAe,GAAGD,IAElBE,EAA6C,CAC/CC,KAAM,iBACNC,MAAO,iBACPC,OAAQ,iBACRC,OAAQ,iBACRC,MAAO,aACPC,KAAM,kBAGJC,EAA2C,CAC7CN,KAAM,eACNC,MAAO,eACPC,OAAQ,eACRC,OAAQ,eACRC,MAAO,WACPC,KAAM,gBAGJE,EACoB,iBAAff,GAA2BA,KAAcc,EAE9CE,EAAUD,EACVD,EAAed,QACfiB,EACAC,EAAUlB,IAAee,EAAa,CAAEf,mBAAeiB,EAEvDE,EACFjB,KAAQK,EACFA,EAAiBL,GACjB,iBAEV,OAAKE,EASDgB,EAAA,MAAA,CACInB,UAAW,qCAAqCA,QAAAA,EAAa,MAAME,EAAS,cAAgB,MAAMa,QAAAA,EAAaE,EAAuB,GAAb,aAEzHG,MAAOH,EAAOnB,SAAA,CAEJ,UAATM,GACGnB,EAAA,MAAA,CACIe,UAAW,2FAA2FK,kBAA6Ba,IACnIG,MAAM,OACNC,OAAO,OACPC,QAAQ,gBACRtB,KAAK,OACLuB,MAAM,6BAA4B,cACtB,OACZC,UAAU,QAAO3B,SAEjBb,EAAA,OAAA,CAAMyC,EAAE,qiBAGN,UAATtB,GACGnB,EAAA,MAAA,CACIe,UAAW,2FAA2FK,kBAA6Ba,IACnIG,MAAM,OACNC,OAAO,OACPC,QAAQ,gBACRtB,KAAK,OACLuB,MAAM,6BAA4B,cACtB,OACZC,UAAU,QAAO3B,SAEjBb,EAAA,OAAA,CAAMyC,EAAE,8hBAGN,UAATtB,GACGnB,EAAA,MAAA,CACIe,UAAW,2FAA2FK,kBAA6Ba,IACnIG,MAAM,OACNC,OAAO,OACPC,QAAQ,gBACRtB,KAAK,OACLuB,MAAM,6BAA4B,cACtB,OACZC,UAAU,QAAO3B,SAEjBb,EAAA,OAAA,CAAMyC,EAAE,oiBAGN,UAATtB,GACGnB,EAAA,MAAA,CACIe,UAAW,6FAA6FK,kBAA6Ba,IACrIG,MAAM,OACNC,OAAO,OACPC,QAAQ,gBACRtB,KAAK,OACLuB,MAAM,6BAA4B,cACtB,OACZC,UAAU,QAAO3B,SAEjBb,EAAA,OAAA,CAAMyC,EAAE,8hBAIhBzC,EAAA,MAAA,CAAKe,UAAU,kCAAiCF,SAAEA,OArElDb,EAAA,MAAA,CAAKe,UAAWA,EAAWoB,MAAOH,EAAOnB,SACpCA,KC/CJ6B,EAAwC,EAAE3C,YAC9CC"}
|
package/dist/contentful/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime");exports.Accordion=({fields:
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime");exports.Accordion=({fields:t})=>e.jsx("div",{children:"Accordion"}),exports.Button=({fields:t})=>e.jsx("div",{children:"Button Block"}),exports.Callout=({fields:t})=>e.jsx("div",{children:"Callout"}),exports.Cards=({fields:t})=>e.jsx("div",{children:"Cards"}),exports.Carousel=({fields:t})=>e.jsx("div",{children:"Carousel"}),exports.CtaCallout=({fields:t})=>e.jsx("div",{children:"CTA Callout Block"}),exports.FloatingBanner=({fields:t})=>e.jsx("div",{children:"FloatingBanner"}),exports.Footer=({fields:t})=>e.jsx("div",{children:"Footer component"}),exports.ImagePromoBar=({fields:t})=>e.jsx("div",{children:"Image Promo Bar"}),exports.Modal=({fields:t})=>e.jsx("div",{children:"Modal Block"}),exports.Navigation=({fields:t})=>e.jsx("div",{children:"Navigation"}),exports.PrimaryHero=({fields:t})=>e.jsx("div",{children:"Primary Hero"}),exports.ShapeBackgroundWrapper=({children:t,background:s,className:l,fill:i="yellow",maxFit:r,show:a=!0,path:n="path2"})=>{const o=`${n}`,d={blue:"text-[#07B2E2]",green:"text-[#26B170]",yellow:"text-[#F5FF1E]",purple:"text-[#931D69]",white:"text-white",navy:"text-[#00002D]"},x={blue:"bg-[#07B2E2]",green:"bg-[#26B170]",yellow:"bg-[#F5FF1E]",purple:"bg-[#931D69]",white:"bg-white",navy:"bg-[#00002D]"},h="string"==typeof s&&s in x,p=h?x[s]:void 0,c=s&&!h?{background:s}:void 0,C=i in d?d[i]:"text-[#F5FF1E]";return a?e.jsxs("div",{className:`shape-bg relative overflow-hidden ${null!=l?l:""} ${r?"max-content":""} ${null!=p?p:c?"":"bg-white"}`,style:c,children:["path1"===n&&e.jsx("svg",{className:`shape-bg-svg absolute pointer-events-none z-0 left-1/2 top-[-2371px] translate-x-[-55%] ${o} fill-current ${C}`,width:"2262",height:"4359",viewBox:"0 0 2262 4359",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M1838.72 444.021C2216.45 758.242 2351.22 1060.81 2202.83 1982.25C2062.95 2851.55 1923.57 4265.14 1394.48 4348.94C1079.75 4409.66 766.955 4172.68 508.523 4003.04C340.876 3884.89 192.855 3774.9 26.6866 3661.93C-27.6562 3624.7 8.69435 3542.15 74.1261 3555.69C415.628 3626.61 686.916 3615.36 942.942 3443.48C1410.95 3163.54 1632.32 2141.02 1629.56 1543.75C1637.51 910.76 1276.06 582.318 829.643 352.709C587.562 235.528 333.508 169.963 100.699 149.757C31.9431 143.965 25.0259 47.9703 92.459 33.1281C623.196 -84.6769 1404.59 131.886 1839.84 443.573"})}),"path2"===n&&e.jsx("svg",{className:`shape-bg-svg absolute pointer-events-none z-0 left-1/2 top-[45.8px] translate-x-[-101%] ${o} fill-current ${C}`,width:"3739",height:"3666",viewBox:"0 0 3739 3666",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M1662.93 3664.31C2153.52 3637.23 2442.1 3474.65 2872.31 2646.41C3278.25 1865.09 4009.1 647.09 3634.26 264.38C3417.79 27.9944 3025.37 31.7818 2716.76 13.9013C2511.72 8.81634 2327.31 8.87399 2126.55 0.511773C2060.73 -2.00127 2040.7 85.9475 2101.3 114.087C2417.76 260.743 2628.86 431.51 2731.94 722.142C2940.79 1225.9 2508.91 2178.82 2150.63 2656.7C1779.64 3169.63 1293.64 3217.84 798.345 3136.04C534.128 3085.8 291.072 2986.97 92.1133 2864.4C33.4593 2828.06 -29.3236 2901.01 15.967 2953.13C371.841 3364.12 1128.29 3656.09 1663.56 3665.34"})}),"path3"===n&&e.jsx("svg",{className:`shape-bg-svg absolute pointer-events-none z-0 top-[-2600px] left-1/2 translate-x-[-55%] ${o} fill-current ${C}`,width:"3044",height:"3248",viewBox:"0 0 3044 3248",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M1.21857 1353.6C-0.931975 1765.46 120.504 2015.15 791.765 2417.01C1424.98 2796.19 2407.16 3469.31 2746.34 3175.04C2955.08 3005.86 2971.76 2677.32 3002.33 2420C3016.95 2248.7 3026.23 2094.39 3043.38 1926.83C3048.81 1871.88 2976.24 1850.67 2949.63 1899.96C2810.91 2157.33 2657.35 2325.33 2408.95 2396.88C1976.88 2546.15 1201.39 2136.59 819.655 1812.63C409.231 1476.27 393.475 1067.19 486.97 656.895C542.372 438.358 637.352 239.983 749.974 79.7081C783.347 32.4684 725.487 -23.7534 679.587 11.5067C317.699 288.49 35.1358 906.671 0.328344 1354.07"})}),"path4"===n&&e.jsx("svg",{className:`shape-bg-svg absolute pointer-events-none z-0 left-1/2 top-[-1966.1px] translate-x-[-48%] ${o} fill-current ${C}`,width:"3739",height:"3666",viewBox:"0 0 3739 3666",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M1662.93 3664.31C2153.52 3637.23 2442.1 3474.65 2872.31 2646.41C3278.25 1865.1 4009.1 647.091 3634.26 264.381C3417.79 27.9951 3025.37 31.7826 2716.76 13.902C2511.72 8.81709 2327.31 8.87474 2126.55 0.512528C2060.73 -2.00052 2040.7 85.9483 2101.3 114.088C2417.76 260.743 2628.86 431.51 2731.94 722.143C2940.79 1225.9 2508.91 2178.82 2150.63 2656.7C1779.64 3169.63 1293.64 3217.84 798.345 3136.04C534.128 3085.8 291.072 2986.98 92.1133 2864.4C33.4593 2828.06 -29.3236 2901.01 15.967 2953.13C371.841 3364.12 1128.29 3656.09 1663.56 3665.34"})}),e.jsx("div",{className:"shape-bg-content relative z-[1]",children:t})]}):e.jsx("div",{className:l,style:c,children:t})},exports.Text=({fields:t})=>e.jsx("div",{children:"Text Block"});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/contentful/blocks/accordion/index.tsx","../../src/contentful/blocks/button/index.tsx","../../src/contentful/blocks/callout/index.tsx","../../src/contentful/blocks/cards/index.tsx","../../src/contentful/blocks/carousel/index.tsx","../../src/contentful/blocks/floating-banner/index.tsx","../../src/contentful/blocks/footer/index.tsx","../../src/contentful/blocks/image-promo-bar/index.tsx","../../src/contentful/blocks/modal/index.tsx","../../src/contentful/blocks/navigation/index.tsx","../../src/contentful/blocks/primary-hero/index.tsx","../../src/contentful/blocks/shape-background-wrapper/index.tsx","../../src/contentful/blocks/text/index.tsx"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["fields","_jsx","children","background","className","fill","maxFit","show","path","variantClass","textColorClasses","blue","green","yellow","purple","white","navy","bgColorClasses","isThemeKey","bgClass","undefined","bgStyle","fillClass","_jsxs","style","width","height","viewBox","xmlns","focusable","d"],"mappings":"kEAE+D,EAAGA,YACzDC,EAAAA,iDCDgD,EAAGD,YACnDC,EAAAA,qDCDkD,EAAGD,YACrDC,EAAAA,8CCD8C,EAAGD,YACjDC,EAAAA,+CCDoD,EAAGD,YACvDC,EAAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/contentful/blocks/accordion/index.tsx","../../src/contentful/blocks/button/index.tsx","../../src/contentful/blocks/callout/index.tsx","../../src/contentful/blocks/cards/index.tsx","../../src/contentful/blocks/carousel/index.tsx","../../src/contentful/blocks/cta-callout/index.tsx","../../src/contentful/blocks/floating-banner/index.tsx","../../src/contentful/blocks/footer/index.tsx","../../src/contentful/blocks/image-promo-bar/index.tsx","../../src/contentful/blocks/modal/index.tsx","../../src/contentful/blocks/navigation/index.tsx","../../src/contentful/blocks/primary-hero/index.tsx","../../src/contentful/blocks/shape-background-wrapper/index.tsx","../../src/contentful/blocks/text/index.tsx"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["fields","_jsx","children","background","className","fill","maxFit","show","path","variantClass","textColorClasses","blue","green","yellow","purple","white","navy","bgColorClasses","isThemeKey","bgClass","undefined","bgStyle","fillClass","_jsxs","style","width","height","viewBox","xmlns","focusable","d"],"mappings":"kEAE+D,EAAGA,YACzDC,EAAAA,iDCDgD,EAAGD,YACnDC,EAAAA,qDCDkD,EAAGD,YACrDC,EAAAA,8CCD8C,EAAGD,YACjDC,EAAAA,+CCDoD,EAAGD,YACvDC,EAAAA,oDCD4C,EAAED,YAC9CC,EAAAA,iECD8D,EAAGD,YACjEC,EAAAA,sDCDgD,EAAGD,YACnDC,EAAAA,+DCD8D,EAAGD,YACjEC,EAAAA,sDCD8C,EAAGD,YACjDC,EAAAA,uDCDwD,EAAGD,YAC3DC,EAAAA,uDCD0D,EAAGD,YAC7DC,EAAAA,oECCoE,EACzEC,WACAC,aACAC,YACAC,OAAO,SACPC,SACAC,QAAO,EACPC,OAAO,YAEP,MAAMC,EAAe,GAAGD,IAElBE,EAA6C,CAC/CC,KAAM,iBACNC,MAAO,iBACPC,OAAQ,iBACRC,OAAQ,iBACRC,MAAO,aACPC,KAAM,kBAGJC,EAA2C,CAC7CN,KAAM,eACNC,MAAO,eACPC,OAAQ,eACRC,OAAQ,eACRC,MAAO,WACPC,KAAM,gBAGJE,EACoB,iBAAff,GAA2BA,KAAcc,EAE9CE,EAAUD,EACVD,EAAed,QACfiB,EACAC,EAAUlB,IAAee,EAAa,CAAEf,mBAAeiB,EAEvDE,EACFjB,KAAQK,EACFA,EAAiBL,GACjB,iBAEV,OAAKE,EASDgB,EAAAA,KAAA,MAAA,CACInB,UAAW,qCAAqCA,QAAAA,EAAa,MAAME,EAAS,cAAgB,MAAMa,QAAAA,EAAaE,EAAuB,GAAb,aAEzHG,MAAOH,EAAOnB,SAAA,CAEJ,UAATM,GACGP,MAAA,MAAA,CACIG,UAAW,2FAA2FK,kBAA6Ba,IACnIG,MAAM,OACNC,OAAO,OACPC,QAAQ,gBACRtB,KAAK,OACLuB,MAAM,6BAA4B,cACtB,OACZC,UAAU,QAAO3B,SAEjBD,EAAAA,IAAA,OAAA,CAAM6B,EAAE,qiBAGN,UAATtB,GACGP,EAAAA,IAAA,MAAA,CACIG,UAAW,2FAA2FK,kBAA6Ba,IACnIG,MAAM,OACNC,OAAO,OACPC,QAAQ,gBACRtB,KAAK,OACLuB,MAAM,6BAA4B,cACtB,OACZC,UAAU,QAAO3B,SAEjBD,EAAAA,IAAA,OAAA,CAAM6B,EAAE,8hBAGN,UAATtB,GACGP,MAAA,MAAA,CACIG,UAAW,2FAA2FK,kBAA6Ba,IACnIG,MAAM,OACNC,OAAO,OACPC,QAAQ,gBACRtB,KAAK,OACLuB,MAAM,6BAA4B,cACtB,OACZC,UAAU,QAAO3B,SAEjBD,EAAAA,IAAA,OAAA,CAAM6B,EAAE,oiBAGN,UAATtB,GACGP,EAAAA,IAAA,MAAA,CACIG,UAAW,6FAA6FK,kBAA6Ba,IACrIG,MAAM,OACNC,OAAO,OACPC,QAAQ,gBACRtB,KAAK,OACLuB,MAAM,6BAA4B,cACtB,OACZC,UAAU,QAAO3B,SAEjBD,EAAAA,IAAA,OAAA,CAAM6B,EAAE,8hBAIhB7B,EAAAA,IAAA,MAAA,CAAKG,UAAU,kCAAiCF,SAAEA,OArElDD,EAAAA,IAAA,MAAA,CAAKG,UAAWA,EAAWoB,MAAOH,EAAOnB,SACpCA,kBC/CoC,EAAGF,YAC/CC,EAAAA"}
|
package/dist/core.d.ts
CHANGED
|
@@ -55,15 +55,15 @@ type InputFieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
|
55
55
|
|
|
56
56
|
declare const InputField: ForwardRefRenderFunction<HTMLInputElement, InputFieldProps>;
|
|
57
57
|
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
58
|
-
state?: "default" | "
|
|
59
|
-
size?: "
|
|
58
|
+
state?: "default" | "error" | "filled" | "active" | "focus" | "hover" | undefined;
|
|
59
|
+
size?: "medium" | "large" | "slim" | undefined;
|
|
60
60
|
label?: string | undefined;
|
|
61
61
|
errorText?: string | undefined;
|
|
62
|
-
prefixIconName?: "
|
|
62
|
+
prefixIconName?: "search" | "location_on" | undefined;
|
|
63
63
|
prefixIconSize?: 20 | 24 | 40 | 48 | undefined;
|
|
64
64
|
prefixIconFill?: boolean | undefined;
|
|
65
65
|
suffixIconFill?: boolean | undefined;
|
|
66
|
-
suffixIconName?: "visibility" | "
|
|
66
|
+
suffixIconName?: "visibility" | "lock" | "visibility_off" | undefined;
|
|
67
67
|
suffixIconSize?: 20 | 24 | 40 | 48 | undefined;
|
|
68
68
|
containerClassName?: string | undefined;
|
|
69
69
|
prefixIconClassName?: string | undefined;
|
|
@@ -295,7 +295,7 @@ type ButtonCustomProps = {
|
|
|
295
295
|
};
|
|
296
296
|
type ButtonProps = ButtonCustomProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className">;
|
|
297
297
|
|
|
298
|
-
declare const BrandButton: React$1.ForwardRefExoticComponent<_shared_components_brand_button_types.ButtonCustomProps & Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "
|
|
298
|
+
declare const BrandButton: React$1.ForwardRefExoticComponent<_shared_components_brand_button_types.ButtonCustomProps & Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
299
299
|
|
|
300
300
|
declare const Checklist: React__default.FC<ChecklistProps>;
|
|
301
301
|
|
package/dist/index.d.ts
CHANGED
|
@@ -295,7 +295,7 @@ type ButtonCustomProps = {
|
|
|
295
295
|
};
|
|
296
296
|
type ButtonProps = ButtonCustomProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className">;
|
|
297
297
|
|
|
298
|
-
declare const BrandButton: React$1.ForwardRefExoticComponent<_shared_components_brand_button_types.ButtonCustomProps & Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "
|
|
298
|
+
declare const BrandButton: React$1.ForwardRefExoticComponent<_shared_components_brand_button_types.ButtonCustomProps & Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
299
299
|
|
|
300
300
|
declare const Checklist: React__default.FC<ChecklistProps>;
|
|
301
301
|
|