@4alldigital/foundation-ui--gamma 1.31.2 → 1.31.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- body{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(0 21 64/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity));font-family:ProximaNova-Regular,sans-serif}body:is(.dark *){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(0 17 50/var(--tw-bg-opacity));color:rgb(238 238 238/var(--tw-text-opacity))}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width:480px){.container{max-width:480px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:976px){.container{max-width:976px}}@media (min-width:1440px){.container{max-width:1440px}}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-y-0{bottom:0;top:0}.left-0{left:0}.left-auto{left:auto}.right-0{right:0}.start-3{inset-inline-start:.75rem}.top-0{top:0}.z-10{z-index:10}.m-0{margin:0}.m-auto{margin:auto}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-bottom:0;margin-top:0}.my-4{margin-bottom:1rem;margin-top:1rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-24{margin-bottom:6rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-40{margin-bottom:10rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.box-border{box-sizing:border-box}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.list-item{display:list-item}.hidden{display:none}.h-10{height:2.5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-auto{height:auto}.h-full{height:100%}.min-h-40{min-height:10rem}.min-h-48{min-height:12rem}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.min-w-0{min-width:0}.min-w-20{min-width:5rem}.max-w-3xl{max-width:48rem}.max-w-5xl{max-width:64rem}.max-w-7xl{max-width:80rem}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;appearance:none}.auto-cols-auto{grid-auto-columns:auto}.auto-rows-min{grid-auto-rows:-webkit-min-content;grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-search-layout{grid-template-columns:1fr}.grid-cols-search-layout-with-sidebar{grid-template-columns:1fr 3fr}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-x-4{column-gap:1rem}.gap-y-0{row-gap:0}.gap-y-16{row-gap:4rem}.gap-y-2{row-gap:.5rem}.gap-y-24{row-gap:6rem}.gap-y-4{row-gap:1rem}.gap-y-40{row-gap:10rem}.gap-y-8{row-gap:2rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.divide-x-2>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-left-width:calc(2px*(1 - var(--tw-divide-x-reverse)));border-right-width:calc(2px*var(--tw-divide-x-reverse))}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-0{border-width:0}.border-b{border-bottom-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-dark-body-text{--tw-border-opacity:1;border-color:rgb(238 238 238/var(--tw-border-opacity))}.border-primary{--tw-border-opacity:1;border-color:rgb(0 30 90/var(--tw-border-opacity))}.border-primary300{--tw-border-opacity:1;border-color:rgb(84 104 144/var(--tw-border-opacity))}.border-primary500{--tw-border-opacity:1;border-color:rgb(0 30 90/var(--tw-border-opacity))}.border-secondary{--tw-border-opacity:1;border-color:rgb(252 183 0/var(--tw-border-opacity))}.border-tertiary{--tw-border-opacity:1;border-color:rgb(163 176 202/var(--tw-border-opacity))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(0 30 90/var(--tw-bg-opacity))}.bg-primary-darker{--tw-bg-opacity:1;background-color:rgb(0 27 81/var(--tw-bg-opacity))}.bg-primary-lighter{--tw-bg-opacity:1;background-color:rgb(0 33 99/var(--tw-bg-opacity))}.bg-secondary{--tw-bg-opacity:1;background-color:rgb(252 183 0/var(--tw-bg-opacity))}.bg-secondary-darker{--tw-bg-opacity:1;background-color:rgb(227 165 0/var(--tw-bg-opacity))}.bg-tertiary{--tw-bg-opacity:1;background-color:rgb(163 176 202/var(--tw-bg-opacity))}.bg-tertiary-darker{--tw-bg-opacity:1;background-color:rgb(140 156 189/var(--tw-bg-opacity))}.bg-transparent{background-color:initial}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-none{background-image:none}.bg-clip-padding{background-clip:padding-box}.object-cover{object-fit:cover}.p-0{padding:0}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-11{padding-left:2.75rem;padding-right:2.75rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-bottom:0;padding-top:0}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-10{padding-bottom:2.5rem;padding-top:2.5rem}.py-16{padding-bottom:4rem;padding-top:4rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-24{padding-bottom:6rem;padding-top:6rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-40{padding-bottom:10rem;padding-top:10rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pb-8{padding-bottom:2rem}.pl-0{padding-left:0}.pl-12{padding-left:3rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.ps-3{padding-inline-start:.75rem}.pt-2{padding-top:.5rem}.pt-6{padding-top:1.5rem}.font-body{font-family:ProximaNova-Regular,sans-serif}.font-heading{font-family:ProximaNova-Bold,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.italic{font-style:italic}.leading-5{line-height:1.25rem}.leading-none{line-height:1}.text-black,.text-black-lighter{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-error{color:rgb(248 114 114/var(--tw-text-opacity))}.text-error,.text-white{--tw-text-opacity:1}.text-white{color:rgb(255 255 255/var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid #0000;outline-offset:2px}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@layer component{.form{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:#0000001a;border-radius:.25rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);display:flex;flex-direction:column}.form:is(.dark *){background-color:#0003}.form-item{--tw-border-opacity:1;-webkit-appearance:none;appearance:none;background-color:#ffffff1a;border-color:rgb(84 104 144/var(--tw-border-opacity));border-style:solid;border-width:1px;box-sizing:border-box;outline:2px solid #0000;outline-offset:2px}.form-item:is(.dark *){--tw-border-opacity:1;background-color:#0000001a;border-color:rgb(51 75 123/var(--tw-border-opacity))}.form-item{color:rgb(138 152 179/var(--tw-text-opacity))}.form-item,.form-item:focus{--tw-text-opacity:1}.form-item:focus{color:rgb(255 255 255/var(--tw-text-opacity))}.form-item:is(.dark *){--tw-text-opacity:1;color:rgb(84 104 144/var(--tw-text-opacity))}.form-item:focus:is(.dark *){--tw-text-opacity:1;color:rgb(238 238 238/var(--tw-text-opacity))}.form-item:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;--tw-ring-opacity:1!important;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.form-item:focus:is(.dark *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;--tw-ring-opacity:1!important;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.form-item:invalid{--tw-border-opacity:1;border-color:rgb(248 114 114/var(--tw-border-opacity));border-width:2px}.form-item:invalid:is(.dark *){--tw-border-opacity:1;border-color:rgb(248 114 114/var(--tw-border-opacity))}.form-item:disabled{--tw-bg-opacity:1;background-color:rgb(0 30 90/var(--tw-bg-opacity))}.form-item:disabled:is(.dark *){--tw-bg-opacity:1;background-color:rgb(0 30 90/var(--tw-bg-opacity))}.formfield-description,.label{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.formfield-description:is(.dark *),.label:is(.dark *){--tw-text-opacity:1;color:rgb(138 152 179/var(--tw-text-opacity))}.text-input{border-radius:.25rem;padding:.75rem;width:100%}.text-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))}.text-input:focus:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))}.checkbox{border-radius:.25rem}.checkbox:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))}.checkbox:focus:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))}.radio{border-radius:9999px}.radio:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))}.radio:focus:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))}.form-icon{--tw-text-opacity:1;color:rgb(138 152 179/var(--tw-text-opacity))}.form-icon:is(.dark *){--tw-text-opacity:1;color:rgb(138 152 179/var(--tw-text-opacity))}.switch{border-radius:9999px}.peer:checked~.switch{--tw-bg-opacity:1;background-color:rgb(84 104 144/var(--tw-bg-opacity))}.peer:focus~.switch{--tw-ring-opacity:1;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))}.switch:is(.dark *){--tw-border-opacity:1;border-color:rgb(0 30 90/var(--tw-border-opacity))}.peer:checked~.switch:is(.dark *){--tw-bg-opacity:1;background-color:rgb(51 75 123/var(--tw-bg-opacity))}.file-upload::-webkit-file-upload-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(84 104 144/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity))}.file-upload::file-selector-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(84 104 144/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity))}.file-upload:is(.dark *)::-webkit-file-upload-button{--tw-bg-opacity:1;background-color:rgb(51 75 123/var(--tw-bg-opacity))}.file-upload:is(.dark *)::file-selector-button{--tw-bg-opacity:1;background-color:rgb(51 75 123/var(--tw-bg-opacity))}}.file\:mr-3::-webkit-file-upload-button{margin-right:.75rem}.file\:mr-3::file-selector-button{margin-right:.75rem}.file\:cursor-pointer::-webkit-file-upload-button{cursor:pointer}.file\:cursor-pointer::file-selector-button{cursor:pointer}.file\:overflow-hidden::-webkit-file-upload-button{overflow:hidden}.file\:overflow-hidden::file-selector-button{overflow:hidden}.file\:rounded-none::-webkit-file-upload-button{border-radius:0}.file\:rounded-none::file-selector-button{border-radius:0}.file\:border-0::-webkit-file-upload-button{border-width:0}.file\:border-0::file-selector-button{border-width:0}.file\:border-solid::-webkit-file-upload-button{border-style:solid}.file\:border-solid::file-selector-button{border-style:solid}.file\:border-inherit::-webkit-file-upload-button{border-color:inherit}.file\:border-inherit::file-selector-button{border-color:inherit}.file\:p-3::-webkit-file-upload-button{padding:.75rem}.file\:p-3::file-selector-button{padding:.75rem}.file\:transition::-webkit-file-upload-button{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.file\:transition::file-selector-button{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.file\:duration-150::-webkit-file-upload-button{transition-duration:.15s}.file\:duration-150::file-selector-button{transition-duration:.15s}.file\:ease-in-out::-webkit-file-upload-button{transition-timing-function:cubic-bezier(.4,0,.2,1)}.file\:ease-in-out::file-selector-button{transition-timing-function:cubic-bezier(.4,0,.2,1)}.file\:\[border-inline-end-width\:1px\]::-webkit-file-upload-button{border-inline-end-width:1px}.file\:\[border-inline-end-width\:1px\]::file-selector-button{border-inline-end-width:1px}.file\:\[margin-inline-end\:0\.75rem\]::-webkit-file-upload-button{margin-inline-end:.75rem}.file\:\[margin-inline-end\:0\.75rem\]::file-selector-button{margin-inline-end:.75rem}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:start-\[1px\]:after{content:var(--tw-content);inset-inline-start:1px}.after\:top-\[1px\]:after{content:var(--tw-content);top:1px}.after\:h-5:after{content:var(--tw-content);height:1.25rem}.after\:w-5:after{content:var(--tw-content);width:1.25rem}.after\:rounded-full:after{border-radius:9999px;content:var(--tw-content)}.after\:border:after{border-width:1px;content:var(--tw-content)}.after\:bg-white:after{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));content:var(--tw-content)}.after\:transition-all:after{content:var(--tw-content);transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.after\:content-\[\'\'\]:after{--tw-content:"";content:var(--tw-content)}.visited\:text-body-text:visited{color:#fff}.hover\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-primary400:hover{--tw-border-opacity:1;border-color:rgb(51 75 123/var(--tw-border-opacity))}.hover\:bg-primary:hover{--tw-bg-opacity:1;background-color:rgb(0 30 90/var(--tw-bg-opacity))}.hover\:bg-primary-darker:hover{--tw-bg-opacity:1;background-color:rgb(0 27 81/var(--tw-bg-opacity))}.hover\:bg-secondary-darker:hover{--tw-bg-opacity:1;background-color:rgb(227 165 0/var(--tw-bg-opacity))}.hover\:bg-tertiary-darker:hover{--tw-bg-opacity:1;background-color:rgb(140 156 189/var(--tw-bg-opacity))}.hover\:bg-white-darker:hover{--tw-bg-opacity:1;background-color:rgb(230 230 230/var(--tw-bg-opacity))}.hover\:text-body-text-inverted:hover{--tw-text-opacity:1;color:rgb(242 242 242/var(--tw-text-opacity))}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid #0000;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:outline-none:focus-visible{outline:2px solid #0000;outline-offset:2px}.active\:scale-95:active{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\:opacity-100{opacity:1}.peer:checked~.peer-checked\:after\:translate-x-full:after{--tw-translate-x:100%;content:var(--tw-content);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\:after\:border-white:after{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity));content:var(--tw-content)}.peer:focus~.peer-focus\:ring-info{--tw-ring-opacity:1;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))}.data-\[invalid\=true\]\:bg-error[data-invalid=true]{--tw-bg-opacity:1;background-color:rgb(248 114 114/var(--tw-bg-opacity))}.data-\[valid\]\:bg-success[data-valid]{--tw-bg-opacity:1;background-color:rgb(54 211 153/var(--tw-bg-opacity))}.dark\:border-dark-body-text:is(.dark *){--tw-border-opacity:1;border-color:rgb(238 238 238/var(--tw-border-opacity))}.dark\:border-primary400:is(.dark *){--tw-border-opacity:1;border-color:rgb(51 75 123/var(--tw-border-opacity))}.dark\:bg-primary-lighter:is(.dark *){--tw-bg-opacity:1;background-color:rgb(0 33 99/var(--tw-bg-opacity))}.dark\:text-white-darker:is(.dark *){--tw-text-opacity:1;color:rgb(230 230 230/var(--tw-text-opacity))}.dark\:hover\:border-primary500:hover:is(.dark *){--tw-border-opacity:1;border-color:rgb(0 30 90/var(--tw-border-opacity))}.dark\:hover\:bg-primary-lighter:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(0 33 99/var(--tw-bg-opacity))}.peer:focus~.dark\:peer-focus\:ring-info:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))}@media (min-width:768px){.md\:relative{position:relative}.md\:left-auto{left:auto}.md\:top-auto{top:auto}.md\:block{display:block}.md\:grid{display:grid}.md\:hidden{display:none}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-search-layout{grid-template-columns:1fr}.md\:grid-cols-search-layout-with-sidebar{grid-template-columns:1fr 3fr}.md\:p-6{padding:1.5rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:py-0{padding-bottom:0;padding-top:0}.md\:pl-0{padding-left:0}.md\:pr-0{padding-right:0}.md\:pt-6{padding-top:1.5rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}}@media (min-width:976px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:text-2xl{font-size:1.5rem;line-height:2rem}.lg\:text-3xl{font-size:1.875rem;line-height:2.25rem}.lg\:text-4xl{font-size:2.25rem;line-height:2.5rem}.lg\:text-5xl{font-size:3rem;line-height:1}.lg\:text-lg{font-size:1.125rem;line-height:1.75rem}}.peer:checked~.rtl\:peer-checked\:after\:-translate-x-full:where([dir=rtl],[dir=rtl] *):after{--tw-translate-x:-100%;content:var(--tw-content);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}
1
+ body{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(0 21 64/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity));font-family:ProximaNova-Regular,sans-serif}body:is(.dark *){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(0 17 50/var(--tw-bg-opacity));color:rgb(238 238 238/var(--tw-text-opacity))}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width:480px){.container{max-width:480px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:976px){.container{max-width:976px}}@media (min-width:1440px){.container{max-width:1440px}}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-y-0{bottom:0;top:0}.left-0{left:0}.left-auto{left:auto}.right-0{right:0}.start-3{inset-inline-start:.75rem}.top-0{top:0}.z-10{z-index:10}.m-0{margin:0}.m-auto{margin:auto}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-bottom:0;margin-top:0}.my-4{margin-bottom:1rem;margin-top:1rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-24{margin-bottom:6rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-40{margin-bottom:10rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.box-border{box-sizing:border-box}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.list-item{display:list-item}.hidden{display:none}.h-10{height:2.5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-8{height:2rem}.h-full{height:100%}.min-h-64{min-height:16rem}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.min-w-0{min-width:0}.min-w-20{min-width:5rem}.max-w-3xl{max-width:48rem}.max-w-5xl{max-width:64rem}.max-w-7xl{max-width:80rem}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;appearance:none}.auto-cols-auto{grid-auto-columns:auto}.auto-rows-min{grid-auto-rows:-webkit-min-content;grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-search-layout{grid-template-columns:1fr}.grid-cols-search-layout-with-sidebar{grid-template-columns:1fr 3fr}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-x-4{column-gap:1rem}.gap-y-0{row-gap:0}.gap-y-16{row-gap:4rem}.gap-y-2{row-gap:.5rem}.gap-y-24{row-gap:6rem}.gap-y-4{row-gap:1rem}.gap-y-40{row-gap:10rem}.gap-y-8{row-gap:2rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.divide-x-2>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-left-width:calc(2px*(1 - var(--tw-divide-x-reverse)));border-right-width:calc(2px*var(--tw-divide-x-reverse))}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-0{border-width:0}.border-b{border-bottom-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-dark-body-text{--tw-border-opacity:1;border-color:rgb(238 238 238/var(--tw-border-opacity))}.border-primary{--tw-border-opacity:1;border-color:rgb(0 30 90/var(--tw-border-opacity))}.border-primary300{--tw-border-opacity:1;border-color:rgb(84 104 144/var(--tw-border-opacity))}.border-primary500{--tw-border-opacity:1;border-color:rgb(0 30 90/var(--tw-border-opacity))}.border-secondary{--tw-border-opacity:1;border-color:rgb(252 183 0/var(--tw-border-opacity))}.border-tertiary{--tw-border-opacity:1;border-color:rgb(163 176 202/var(--tw-border-opacity))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(0 30 90/var(--tw-bg-opacity))}.bg-primary-darker{--tw-bg-opacity:1;background-color:rgb(0 27 81/var(--tw-bg-opacity))}.bg-secondary{--tw-bg-opacity:1;background-color:rgb(252 183 0/var(--tw-bg-opacity))}.bg-secondary-darker{--tw-bg-opacity:1;background-color:rgb(227 165 0/var(--tw-bg-opacity))}.bg-tertiary{--tw-bg-opacity:1;background-color:rgb(163 176 202/var(--tw-bg-opacity))}.bg-tertiary-darker{--tw-bg-opacity:1;background-color:rgb(140 156 189/var(--tw-bg-opacity))}.bg-transparent{background-color:initial}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-none{background-image:none}.bg-clip-padding{background-clip:padding-box}.object-cover{object-fit:cover}.p-0{padding:0}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-11{padding-left:2.75rem;padding-right:2.75rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-bottom:0;padding-top:0}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-10{padding-bottom:2.5rem;padding-top:2.5rem}.py-16{padding-bottom:4rem;padding-top:4rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-24{padding-bottom:6rem;padding-top:6rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-40{padding-bottom:10rem;padding-top:10rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pb-8{padding-bottom:2rem}.pl-0{padding-left:0}.pl-12{padding-left:3rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.ps-3{padding-inline-start:.75rem}.pt-2{padding-top:.5rem}.pt-6{padding-top:1.5rem}.font-body{font-family:ProximaNova-Regular,sans-serif}.font-heading{font-family:ProximaNova-Bold,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.italic{font-style:italic}.leading-5{line-height:1.25rem}.leading-none{line-height:1}.text-black{color:rgb(0 0 0/var(--tw-text-opacity))}.text-black,.text-error{--tw-text-opacity:1}.text-error{color:rgb(248 114 114/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid #0000;outline-offset:2px}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@layer component{.form{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:#0000001a;border-radius:.25rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);display:flex;flex-direction:column}.form:is(.dark *){background-color:#0003}.form-item{--tw-border-opacity:1;-webkit-appearance:none;appearance:none;background-color:#ffffff1a;border-color:rgb(84 104 144/var(--tw-border-opacity));border-style:solid;border-width:1px;box-sizing:border-box;outline:2px solid #0000;outline-offset:2px}.form-item:is(.dark *){--tw-border-opacity:1;background-color:#0000001a;border-color:rgb(51 75 123/var(--tw-border-opacity))}.form-item{color:rgb(138 152 179/var(--tw-text-opacity))}.form-item,.form-item:focus{--tw-text-opacity:1}.form-item:focus{color:rgb(255 255 255/var(--tw-text-opacity))}.form-item:is(.dark *){--tw-text-opacity:1;color:rgb(84 104 144/var(--tw-text-opacity))}.form-item:focus:is(.dark *){--tw-text-opacity:1;color:rgb(238 238 238/var(--tw-text-opacity))}.form-item:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;--tw-ring-opacity:1!important;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.form-item:focus:is(.dark *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;--tw-ring-opacity:1!important;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.form-item:invalid{--tw-border-opacity:1;border-color:rgb(248 114 114/var(--tw-border-opacity));border-width:2px}.form-item:invalid:is(.dark *){--tw-border-opacity:1;border-color:rgb(248 114 114/var(--tw-border-opacity))}.form-item:disabled{--tw-bg-opacity:1;background-color:rgb(0 30 90/var(--tw-bg-opacity))}.form-item:disabled:is(.dark *){--tw-bg-opacity:1;background-color:rgb(0 30 90/var(--tw-bg-opacity))}.formfield-description,.label{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.formfield-description:is(.dark *),.label:is(.dark *){--tw-text-opacity:1;color:rgb(138 152 179/var(--tw-text-opacity))}.text-input{border-radius:.25rem;padding:.75rem;width:100%}.text-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))}.text-input:focus:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))}.checkbox{border-radius:.25rem}.checkbox:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))}.checkbox:focus:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))}.radio{border-radius:9999px}.radio:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))}.radio:focus:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))}.form-icon{--tw-text-opacity:1;color:rgb(138 152 179/var(--tw-text-opacity))}.form-icon:is(.dark *){--tw-text-opacity:1;color:rgb(138 152 179/var(--tw-text-opacity))}.switch{border-radius:9999px}.peer:checked~.switch{--tw-bg-opacity:1;background-color:rgb(84 104 144/var(--tw-bg-opacity))}.peer:focus~.switch{--tw-ring-opacity:1;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))}.switch:is(.dark *){--tw-border-opacity:1;border-color:rgb(0 30 90/var(--tw-border-opacity))}.peer:checked~.switch:is(.dark *){--tw-bg-opacity:1;background-color:rgb(51 75 123/var(--tw-bg-opacity))}.file-upload::-webkit-file-upload-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(84 104 144/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity))}.file-upload::file-selector-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(84 104 144/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity))}.file-upload:is(.dark *)::-webkit-file-upload-button{--tw-bg-opacity:1;background-color:rgb(51 75 123/var(--tw-bg-opacity))}.file-upload:is(.dark *)::file-selector-button{--tw-bg-opacity:1;background-color:rgb(51 75 123/var(--tw-bg-opacity))}}.file\:mr-3::-webkit-file-upload-button{margin-right:.75rem}.file\:mr-3::file-selector-button{margin-right:.75rem}.file\:cursor-pointer::-webkit-file-upload-button{cursor:pointer}.file\:cursor-pointer::file-selector-button{cursor:pointer}.file\:overflow-hidden::-webkit-file-upload-button{overflow:hidden}.file\:overflow-hidden::file-selector-button{overflow:hidden}.file\:rounded-none::-webkit-file-upload-button{border-radius:0}.file\:rounded-none::file-selector-button{border-radius:0}.file\:border-0::-webkit-file-upload-button{border-width:0}.file\:border-0::file-selector-button{border-width:0}.file\:border-solid::-webkit-file-upload-button{border-style:solid}.file\:border-solid::file-selector-button{border-style:solid}.file\:border-inherit::-webkit-file-upload-button{border-color:inherit}.file\:border-inherit::file-selector-button{border-color:inherit}.file\:p-3::-webkit-file-upload-button{padding:.75rem}.file\:p-3::file-selector-button{padding:.75rem}.file\:transition::-webkit-file-upload-button{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.file\:transition::file-selector-button{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.file\:duration-150::-webkit-file-upload-button{transition-duration:.15s}.file\:duration-150::file-selector-button{transition-duration:.15s}.file\:ease-in-out::-webkit-file-upload-button{transition-timing-function:cubic-bezier(.4,0,.2,1)}.file\:ease-in-out::file-selector-button{transition-timing-function:cubic-bezier(.4,0,.2,1)}.file\:\[border-inline-end-width\:1px\]::-webkit-file-upload-button{border-inline-end-width:1px}.file\:\[border-inline-end-width\:1px\]::file-selector-button{border-inline-end-width:1px}.file\:\[margin-inline-end\:0\.75rem\]::-webkit-file-upload-button{margin-inline-end:.75rem}.file\:\[margin-inline-end\:0\.75rem\]::file-selector-button{margin-inline-end:.75rem}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:start-\[1px\]:after{content:var(--tw-content);inset-inline-start:1px}.after\:top-\[1px\]:after{content:var(--tw-content);top:1px}.after\:h-5:after{content:var(--tw-content);height:1.25rem}.after\:w-5:after{content:var(--tw-content);width:1.25rem}.after\:rounded-full:after{border-radius:9999px;content:var(--tw-content)}.after\:border:after{border-width:1px;content:var(--tw-content)}.after\:bg-white:after{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));content:var(--tw-content)}.after\:transition-all:after{content:var(--tw-content);transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.after\:content-\[\'\'\]:after{--tw-content:"";content:var(--tw-content)}.visited\:text-body-text:visited{color:#fff}.hover\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-primary400:hover{--tw-border-opacity:1;border-color:rgb(51 75 123/var(--tw-border-opacity))}.hover\:bg-primary:hover{--tw-bg-opacity:1;background-color:rgb(0 30 90/var(--tw-bg-opacity))}.hover\:bg-primary-darker:hover{--tw-bg-opacity:1;background-color:rgb(0 27 81/var(--tw-bg-opacity))}.hover\:bg-secondary-darker:hover{--tw-bg-opacity:1;background-color:rgb(227 165 0/var(--tw-bg-opacity))}.hover\:bg-tertiary-darker:hover{--tw-bg-opacity:1;background-color:rgb(140 156 189/var(--tw-bg-opacity))}.hover\:text-body-text-inverted:hover{--tw-text-opacity:1;color:rgb(242 242 242/var(--tw-text-opacity))}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid #0000;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:outline-none:focus-visible{outline:2px solid #0000;outline-offset:2px}.active\:scale-95:active{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\:opacity-100{opacity:1}.peer:checked~.peer-checked\:after\:translate-x-full:after{--tw-translate-x:100%;content:var(--tw-content);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\:after\:border-white:after{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity));content:var(--tw-content)}.peer:focus~.peer-focus\:ring-info{--tw-ring-opacity:1;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))}.data-\[invalid\=true\]\:bg-error[data-invalid=true]{--tw-bg-opacity:1;background-color:rgb(248 114 114/var(--tw-bg-opacity))}.data-\[valid\]\:bg-success[data-valid]{--tw-bg-opacity:1;background-color:rgb(54 211 153/var(--tw-bg-opacity))}.dark\:border-dark-body-text:is(.dark *){--tw-border-opacity:1;border-color:rgb(238 238 238/var(--tw-border-opacity))}.dark\:border-primary400:is(.dark *){--tw-border-opacity:1;border-color:rgb(51 75 123/var(--tw-border-opacity))}.dark\:hover\:border-primary500:hover:is(.dark *){--tw-border-opacity:1;border-color:rgb(0 30 90/var(--tw-border-opacity))}.peer:focus~.dark\:peer-focus\:ring-info:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(58 191 248/var(--tw-ring-opacity))}@media (min-width:768px){.md\:relative{position:relative}.md\:left-auto{left:auto}.md\:top-auto{top:auto}.md\:block{display:block}.md\:grid{display:grid}.md\:hidden{display:none}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-search-layout{grid-template-columns:1fr}.md\:grid-cols-search-layout-with-sidebar{grid-template-columns:1fr 3fr}.md\:p-6{padding:1.5rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:py-0{padding-bottom:0;padding-top:0}.md\:pl-0{padding-left:0}.md\:pr-0{padding-right:0}.md\:pt-6{padding-top:1.5rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}}@media (min-width:976px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:text-2xl{font-size:1.5rem;line-height:2rem}.lg\:text-3xl{font-size:1.875rem;line-height:2.25rem}.lg\:text-4xl{font-size:2.25rem;line-height:2.5rem}.lg\:text-5xl{font-size:3rem;line-height:1}.lg\:text-lg{font-size:1.125rem;line-height:1.75rem}}.peer:checked~.rtl\:peer-checked\:after\:-translate-x-full:where([dir=rtl],[dir=rtl] *):after{--tw-translate-x:-100%;content:var(--tw-content);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}
2
2
  @font-face{font-display:swap;font-family:ProximaNova-Regular;font-style:normal;font-weight:400;src:url(https://cdn.tools.4alldigital.io/fonts/ProximaNovaReg.woff2) format("woff2"),url(https://cdn.tools.4alldigital.io/fonts/ProximaNovaReg.woff) format("woff")}@font-face{font-display:swap;font-family:ProximaNova-Bold;font-style:normal;font-weight:700;src:url(https://cdn.tools.4alldigital.io/fonts/ProximaNovaBold.woff2) format("woff2"),url(https://cdn.tools.4alldigital.io/fonts/ProximaNovaBold.woff) format("woff")}
package/dist/index.esm.js CHANGED
@@ -189,9 +189,8 @@ var Image = function (_a) {
189
189
  return React.createElement(nextImage, __assign({ src: typeof src === 'string' ? src : src, alt: alt, title: title, onLoad: onLoad, className: className }, rest));
190
190
  }
191
191
  catch (_c) {
192
- console.log('Not using Next.js');
193
192
  var figureClasses = cx('m-0');
194
- var classes = cx('w-full h-auto', className);
193
+ var classes = cx('w-full h-full absolute inset-0 object-cover', className);
195
194
  /**
196
195
  * Render as a figure.
197
196
  */
@@ -367,183 +366,236 @@ var Button = function (_a) {
367
366
  };
368
367
  Button.displayName = 'Button';
369
368
 
369
+ var cardWrapperClasses = 'relative rounded-lg overflow-hidden transition duration-300 ease-in-out cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-white text-black hover:bg-primary hover:text-body-text-inverted';
370
+
370
371
  var CardBasic = function (_a) {
371
372
  var id = _a.id, title = _a.title, description = _a.description, image = _a.image, className = _a.className, metaData = _a.metaData, actions = _a.actions, _b = _a.onClick, onClick = _b === void 0 ? function () { } : _b;
372
- return (jsxs("div", { id: id, "data-testid": "CardBasic", className: cx('relative rounded-lg overflow-hidden transition duration-300 ease-in-out cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-primary-lighter hover:bg-primary hover:text-body-text-inverted', className), onClick: onClick, children: [image && (jsx("div", { className: "card-image relative w-full min-h-40", children: jsx(Image, { fill: true, src: image === null || image === void 0 ? void 0 : image.src, width: 0, height: 0, sizes: "100vh", alt: image === null || image === void 0 ? void 0 : image.alt, className: "object-cover" }) })), jsxs("div", { className: "w-full p-3 flex flex-col gap-1", children: [jsx("div", { children: title && (jsx(Heading, { tag: HEADING_TAGS.H5, singleLine: true, flush: true, children: title })) }), jsx("div", { children: description && jsx(Copy, { children: description }) }), jsxs("div", { className: "flex items-center justify-between gap-2", children: [metaData && (jsx("div", { className: "flex shrink-0", children: metaData.map(function (meta, index) {
373
- if (index === 0) {
374
- return (jsxs(Copy, { className: "text-xs", as: COPY_TAG.SMALL, children: [meta, "\u00A0\u00B7"] }, meta));
375
- }
376
- if (index === metaData.length - 1) {
377
- return (jsxs(Copy, { className: "text-xs", as: COPY_TAG.SMALL, children: ["\u00A0", meta] }, meta));
378
- }
379
- return (jsxs(Copy, { className: "text-xs", as: COPY_TAG.SMALL, children: ["\u00A0", meta, "\u00A0\u00B7"] }, meta));
380
- }) })), actions && (jsxs("div", { className: "flex items-center gap-1 flex-wrap", children: [actions.like && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.like.isActive ? 'mdi:like' : 'mdi:like-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
381
- var _a;
382
- event.stopPropagation();
383
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.like) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.like.onClick === 'function') {
384
- actions.like.onClick({ id: id });
385
- }
386
- } })), actions.share && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.share.isActive ? 'mdi:share' : 'mdi:share-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
387
- var _a;
388
- event.stopPropagation();
389
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.share) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.share.onClick === 'function') {
390
- actions.share.onClick({ id: id });
391
- }
392
- } })), actions.save && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.save.isActive ? 'mdi:bookmark' : 'mdi:bookmark-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
393
- var _a;
394
- event.stopPropagation();
395
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.save) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.save.onClick === 'function') {
396
- actions.save.onClick({ id: id });
397
- }
398
- } })), actions.comment && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.comment.isActive ? 'mdi:comment' : 'mdi:comment-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
399
- var _a;
400
- event.stopPropagation();
401
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.comment) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.comment.onClick === 'function') {
402
- actions.comment.onClick({ id: id });
403
- }
404
- } })), actions.bookmark && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.bookmark.isActive ? 'mdi:bookmark' : 'mdi:bookmark-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
405
- var _a;
406
- event.stopPropagation();
407
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.bookmark) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.bookmark.onClick === 'function') {
408
- actions.bookmark.onClick({ id: id });
409
- }
410
- } })), actions.report && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.report.isActive ? 'mdi:flag' : 'mdi:flag-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
411
- var _a;
412
- event.stopPropagation();
413
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.report) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.report.onClick === 'function') {
414
- actions.report.onClick({ id: id });
415
- }
416
- } })), actions.follow && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.follow.isActive ? 'mdi:account-plus' : 'mdi:account-plus-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
417
- var _a;
418
- event.stopPropagation();
419
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.follow) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.follow.onClick === 'function') {
420
- actions.follow.onClick({ id: id });
421
- }
422
- } })), actions.download && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.download.isActive ? 'mdi:download' : 'mdi:download-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
423
- var _a;
424
- event.stopPropagation();
425
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.download) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.download.onClick === 'function') {
426
- actions.download.onClick({ id: id });
427
- }
428
- } })), actions.edit && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.edit.isActive ? 'mdi:pencil' : 'mdi:pencil-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
429
- var _a;
430
- event.stopPropagation();
431
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.edit) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.edit.onClick === 'function') {
432
- actions.edit.onClick({ id: id });
433
- }
434
- } })), actions.delete && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.delete.isActive ? 'mdi:delete' : 'mdi:delete-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
435
- var _a;
436
- event.stopPropagation();
437
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.delete) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.delete.onClick === 'function') {
438
- actions.delete.onClick({ id: id });
439
- }
440
- } }))] }))] })] })] }));
373
+ return (jsxs("div", { id: id, "data-testid": "CardBasic", className: cx(cardWrapperClasses, className), onClick: onClick, children: [image && (jsx("div", { className: "relative w-full min-h-64", children: jsx(Image, { fill: true, src: image === null || image === void 0 ? void 0 : image.src, sizes: "100vh", alt: image === null || image === void 0 ? void 0 : image.alt, className: "object-cover" }) })), jsx("div", { className: "w-full flex flex-col gap-1", children: jsxs("div", { className: "p-3", children: [jsx("div", { children: title && (jsx(Heading, { tag: HEADING_TAGS.H5, singleLine: true, flush: true, children: title })) }), jsx("div", { children: description && jsx(Copy, { children: description }) }), jsxs("div", { className: "flex items-center justify-between gap-2", children: [metaData && (jsx("div", { className: "flex shrink-0", children: metaData.map(function (meta, index) {
374
+ if (index === 0) {
375
+ return (jsxs(Copy, { className: "text-xs", as: COPY_TAG.SMALL, children: [meta, "\u00A0\u00B7"] }, meta));
376
+ }
377
+ if (index === metaData.length - 1) {
378
+ return (jsxs(Copy, { className: "text-xs", as: COPY_TAG.SMALL, children: ["\u00A0", meta] }, meta));
379
+ }
380
+ return (jsxs(Copy, { className: "text-xs", as: COPY_TAG.SMALL, children: ["\u00A0", meta, "\u00A0\u00B7"] }, meta));
381
+ }) })), actions && (jsxs("div", { className: "flex items-center gap-1 flex-wrap", children: [actions.like && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.like.isActive ? 'mdi:like' : 'mdi:like-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
382
+ var _a;
383
+ event.stopPropagation();
384
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.like) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.like.onClick === 'function') {
385
+ actions.like.onClick({ id: id });
386
+ }
387
+ } })), actions.share && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.share.isActive ? 'mdi:share' : 'mdi:share-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
388
+ var _a;
389
+ event.stopPropagation();
390
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.share) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.share.onClick === 'function') {
391
+ actions.share.onClick({ id: id });
392
+ }
393
+ } })), actions.save && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.save.isActive ? 'mdi:bookmark' : 'mdi:bookmark-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
394
+ var _a;
395
+ event.stopPropagation();
396
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.save) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.save.onClick === 'function') {
397
+ actions.save.onClick({ id: id });
398
+ }
399
+ } })), actions.comment && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.comment.isActive ? 'mdi:comment' : 'mdi:comment-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
400
+ var _a;
401
+ event.stopPropagation();
402
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.comment) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.comment.onClick === 'function') {
403
+ actions.comment.onClick({ id: id });
404
+ }
405
+ } })), actions.bookmark && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.bookmark.isActive ? 'mdi:bookmark' : 'mdi:bookmark-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
406
+ var _a;
407
+ event.stopPropagation();
408
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.bookmark) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.bookmark.onClick === 'function') {
409
+ actions.bookmark.onClick({ id: id });
410
+ }
411
+ } })), actions.report && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.report.isActive ? 'mdi:flag' : 'mdi:flag-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
412
+ var _a;
413
+ event.stopPropagation();
414
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.report) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.report.onClick === 'function') {
415
+ actions.report.onClick({ id: id });
416
+ }
417
+ } })), actions.follow && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.follow.isActive ? 'mdi:account-plus' : 'mdi:account-plus-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
418
+ var _a;
419
+ event.stopPropagation();
420
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.follow) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.follow.onClick === 'function') {
421
+ actions.follow.onClick({ id: id });
422
+ }
423
+ } })), actions.download && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.download.isActive ? 'mdi:download' : 'mdi:download-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
424
+ var _a;
425
+ event.stopPropagation();
426
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.download) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.download.onClick === 'function') {
427
+ actions.download.onClick({ id: id });
428
+ }
429
+ } })), actions.edit && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.edit.isActive ? 'mdi:pencil' : 'mdi:pencil-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
430
+ var _a;
431
+ event.stopPropagation();
432
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.edit) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.edit.onClick === 'function') {
433
+ actions.edit.onClick({ id: id });
434
+ }
435
+ } })), actions.delete && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.delete.isActive ? 'mdi:delete' : 'mdi:delete-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
436
+ var _a;
437
+ event.stopPropagation();
438
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.delete) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.delete.onClick === 'function') {
439
+ actions.delete.onClick({ id: id });
440
+ }
441
+ } }))] }))] })] }) })] }));
441
442
  };
442
443
  CardBasic.displayName = 'CardBasic';
443
444
 
444
445
  var CardMedia = function (_a) {
445
- var className = _a.className;
446
- return (jsx("div", { "data-testid": "CardMedia", className: cx('relative', className), children: "CardMedia" }));
446
+ var id = _a.id, title = _a.title, description = _a.description, image = _a.image, className = _a.className, metaData = _a.metaData, actions = _a.actions, _b = _a.onClick, onClick = _b === void 0 ? function () { } : _b, playCallback = _a.playCallback;
447
+ console.log('CardMedia', title);
448
+ return (jsxs("div", { id: id, "data-testid": "CardBasic", className: cx(cardWrapperClasses, className), onClick: onClick, children: [image && (jsxs("div", { className: "relative w-full overflow-hidden h-64", children: [jsx(Image, { fill: true, src: image === null || image === void 0 ? void 0 : image.src, sizes: "100vh", alt: image === null || image === void 0 ? void 0 : image.alt, className: "object-cover" }), playCallback && (jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: "mdi:play", size: BTN_SIZES.LARGE, onClick: function (event) {
449
+ event.stopPropagation();
450
+ if (typeof playCallback === 'function') {
451
+ playCallback(event);
452
+ }
453
+ } }) }))] })), jsx("div", { className: "w-full flex flex-col gap-1", children: jsxs("div", { className: "p-3", children: [jsx("div", { children: title && (jsx(Heading, { tag: HEADING_TAGS.H5, singleLine: true, flush: true, children: title })) }), jsx("div", { children: description && jsx(Copy, { children: description }) }), jsxs("div", { className: "flex items-center justify-between gap-2", children: [metaData && (jsx("div", { className: "flex shrink-0", children: metaData.map(function (meta, index) {
454
+ if (index === 0) {
455
+ return (jsxs(Copy, { className: "text-xs", as: COPY_TAG.SMALL, children: [meta, "\u00A0\u00B7"] }, meta));
456
+ }
457
+ if (index === metaData.length - 1) {
458
+ return (jsxs(Copy, { className: "text-xs", as: COPY_TAG.SMALL, children: ["\u00A0", meta] }, meta));
459
+ }
460
+ return (jsxs(Copy, { className: "text-xs", as: COPY_TAG.SMALL, children: ["\u00A0", meta, "\u00A0\u00B7"] }, meta));
461
+ }) })), actions && (jsxs("div", { className: "flex items-center gap-1 flex-wrap", children: [actions.like && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.like.isActive ? 'mdi:like' : 'mdi:like-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
462
+ var _a;
463
+ event.stopPropagation();
464
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.like) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.like.onClick === 'function') {
465
+ actions.like.onClick({ id: id });
466
+ }
467
+ } })), actions.share && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.share.isActive ? 'mdi:share' : 'mdi:share-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
468
+ var _a;
469
+ event.stopPropagation();
470
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.share) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.share.onClick === 'function') {
471
+ actions.share.onClick({ id: id });
472
+ }
473
+ } })), actions.save && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.save.isActive ? 'mdi:bookmark' : 'mdi:bookmark-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
474
+ var _a;
475
+ event.stopPropagation();
476
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.save) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.save.onClick === 'function') {
477
+ actions.save.onClick({ id: id });
478
+ }
479
+ } })), actions.comment && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.comment.isActive ? 'mdi:comment' : 'mdi:comment-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
480
+ var _a;
481
+ event.stopPropagation();
482
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.comment) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.comment.onClick === 'function') {
483
+ actions.comment.onClick({ id: id });
484
+ }
485
+ } })), actions.bookmark && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.bookmark.isActive ? 'mdi:bookmark' : 'mdi:bookmark-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
486
+ var _a;
487
+ event.stopPropagation();
488
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.bookmark) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.bookmark.onClick === 'function') {
489
+ actions.bookmark.onClick({ id: id });
490
+ }
491
+ } })), actions.report && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.report.isActive ? 'mdi:flag' : 'mdi:flag-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
492
+ var _a;
493
+ event.stopPropagation();
494
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.report) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.report.onClick === 'function') {
495
+ actions.report.onClick({ id: id });
496
+ }
497
+ } })), actions.follow && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.follow.isActive ? 'mdi:account-plus' : 'mdi:account-plus-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
498
+ var _a;
499
+ event.stopPropagation();
500
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.follow) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.follow.onClick === 'function') {
501
+ actions.follow.onClick({ id: id });
502
+ }
503
+ } })), actions.download && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.download.isActive ? 'mdi:download' : 'mdi:download-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
504
+ var _a;
505
+ event.stopPropagation();
506
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.download) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.download.onClick === 'function') {
507
+ actions.download.onClick({ id: id });
508
+ }
509
+ } })), actions.edit && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.edit.isActive ? 'mdi:pencil' : 'mdi:pencil-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
510
+ var _a;
511
+ event.stopPropagation();
512
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.edit) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.edit.onClick === 'function') {
513
+ actions.edit.onClick({ id: id });
514
+ }
515
+ } })), actions.delete && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.delete.isActive ? 'mdi:delete' : 'mdi:delete-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
516
+ var _a;
517
+ event.stopPropagation();
518
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.delete) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.delete.onClick === 'function') {
519
+ actions.delete.onClick({ id: id });
520
+ }
521
+ } }))] }))] })] }) })] }));
447
522
  };
448
523
  CardMedia.displayName = 'CardMedia';
449
524
 
450
- // title,
451
- // uuid,
452
- // image,
453
- // date,
454
- // video,
455
- // isMuted = false,
456
- // withStyles = true,
457
- // promoCards = false,
458
- // isOriginal = false,
459
- // customPath,
460
525
  var CardVideo = function (_a) {
461
526
  var video = _a.video, _b = _a.isMuted, isMuted = _b === void 0 ? true : _b, id = _a.id, title = _a.title, description = _a.description, image = _a.image, className = _a.className, metaData = _a.metaData, actions = _a.actions, _c = _a.onClick, onClick = _c === void 0 ? function () { } : _c;
462
- return (jsxs("div", { id: id, "data-testid": "CardBasic", className: cx('relative rounded-lg overflow-hidden transition duration-300 ease-in-out cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-white text-black-lighter hover:bg-white-darker dark:bg-primary-lighter dark:hover:bg-primary-lighter dark:text-white-darker', className), onClick: onClick, children: [image && (jsx("div", { className: "card-image relative w-full min-h-40", children: jsx(HoverVideoPlayer, { videoId: "video--".concat(id), playbackStartDelay: 1000, videoSrc: jsx("source", { src: video, type: "video/mp4" }), videoClassName: cx('hls-hover-video w-full min-h-48'), sizingMode: "overlay", preload: "none", loop: false, muted: isMuted, className: "w-full min-h-48", pausedOverlay: jsx("div", { className: "w-full min-h-48", children: jsx(Image
463
- // src={image?.src || ''}
464
- // width={200}
465
- // height={200}
466
- // sizes="100vh"
467
- // alt={image?.alt || ''}
468
- // className="object-cover"
469
- , {
470
- // src={image?.src || ''}
471
- // width={200}
472
- // height={200}
473
- // sizes="100vh"
474
- // alt={image?.alt || ''}
475
- // className="object-cover"
476
- fill: true, src: image === null || image === void 0 ? void 0 : image.src, width: 0, height: 0,
527
+ var cardMinHeightClass = 'min-h-64';
528
+ return (jsxs("div", { id: id, "data-testid": "CardVideo", className: cx(cardWrapperClasses, className), onClick: onClick, children: [image && video && (jsx("div", { className: cx('relative w-full h-full', cardMinHeightClass), children: jsx(HoverVideoPlayer, { videoId: "video--".concat(id), playbackStartDelay: 1000, videoSrc: jsx("source", { src: video, type: "video/mp4" }), videoClassName: cx('hls-hover-video w-full', cardMinHeightClass), sizingMode: "overlay", preload: "none", loop: false, muted: isMuted, className: cx('w-full', cardMinHeightClass), pausedOverlay: jsx("div", { className: cx('relative w-full', cardMinHeightClass), children: jsx(Image, { fill: true, src: image === null || image === void 0 ? void 0 : image.src, width: 0, height: 0,
477
529
  // sizes="100vh"
478
- alt: image === null || image === void 0 ? void 0 : image.alt, className: "object-cover" }) }), loadingOverlay: jsx("div", { className: "w-full min-h-48 flex items-center justify-center", children: jsx("div", { className: "", children: jsx(Loader, {}) }) }) }, "".concat(id, "--card")) })), jsxs("div", { className: "w-full p-3 flex flex-col gap-1", children: [jsx("div", { children: title && (jsx(Heading, { tag: HEADING_TAGS.H5, singleLine: true, flush: true, children: title })) }), jsx("div", { children: description && jsx(Copy, { children: description }) }), jsxs("div", { className: "flex items-center justify-between gap-2", children: [metaData && (jsx("div", { className: "flex shrink-0", children: metaData.map(function (meta, index) {
479
- if (index === 0) {
480
- return (jsxs(Copy, { className: "text-xs", as: COPY_TAG.SMALL, children: [meta, "\u00A0\u00B7"] }, meta));
481
- }
482
- if (index === metaData.length - 1) {
483
- return (jsxs(Copy, { className: "text-xs", as: COPY_TAG.SMALL, children: ["\u00A0", meta] }, meta));
484
- }
485
- return (jsxs(Copy, { className: "text-xs", as: COPY_TAG.SMALL, children: ["\u00A0", meta, "\u00A0\u00B7"] }, meta));
486
- }) })), actions && (jsxs("div", { className: "flex items-center gap-1 flex-wrap", children: [actions.like && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.like.isActive ? 'mdi:like' : 'mdi:like-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
487
- var _a;
488
- event.stopPropagation();
489
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.like) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.like.onClick === 'function') {
490
- actions.like.onClick({ id: id });
491
- }
492
- } })), actions.share && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.share.isActive ? 'mdi:share' : 'mdi:share-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
493
- var _a;
494
- event.stopPropagation();
495
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.share) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.share.onClick === 'function') {
496
- actions.share.onClick({ id: id });
497
- }
498
- } })), actions.save && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.save.isActive ? 'mdi:bookmark' : 'mdi:bookmark-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
499
- var _a;
500
- event.stopPropagation();
501
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.save) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.save.onClick === 'function') {
502
- actions.save.onClick({ id: id });
503
- }
504
- } })), actions.comment && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.comment.isActive ? 'mdi:comment' : 'mdi:comment-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
505
- var _a;
506
- event.stopPropagation();
507
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.comment) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.comment.onClick === 'function') {
508
- actions.comment.onClick({ id: id });
509
- }
510
- } })), actions.bookmark && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.bookmark.isActive ? 'mdi:bookmark' : 'mdi:bookmark-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
511
- var _a;
512
- event.stopPropagation();
513
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.bookmark) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.bookmark.onClick === 'function') {
514
- actions.bookmark.onClick({ id: id });
515
- }
516
- } })), actions.report && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.report.isActive ? 'mdi:flag' : 'mdi:flag-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
517
- var _a;
518
- event.stopPropagation();
519
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.report) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.report.onClick === 'function') {
520
- actions.report.onClick({ id: id });
521
- }
522
- } })), actions.follow && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.follow.isActive ? 'mdi:account-plus' : 'mdi:account-plus-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
523
- var _a;
524
- event.stopPropagation();
525
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.follow) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.follow.onClick === 'function') {
526
- actions.follow.onClick({ id: id });
527
- }
528
- } })), actions.download && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.download.isActive ? 'mdi:download' : 'mdi:download-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
529
- var _a;
530
- event.stopPropagation();
531
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.download) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.download.onClick === 'function') {
532
- actions.download.onClick({ id: id });
533
- }
534
- } })), actions.edit && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.edit.isActive ? 'mdi:pencil' : 'mdi:pencil-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
535
- var _a;
536
- event.stopPropagation();
537
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.edit) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.edit.onClick === 'function') {
538
- actions.edit.onClick({ id: id });
539
- }
540
- } })), actions.delete && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.delete.isActive ? 'mdi:delete' : 'mdi:delete-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
541
- var _a;
542
- event.stopPropagation();
543
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.delete) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.delete.onClick === 'function') {
544
- actions.delete.onClick({ id: id });
545
- }
546
- } }))] }))] })] })] }));
530
+ alt: image === null || image === void 0 ? void 0 : image.alt, className: "object-cover" }) }), loadingOverlay: jsx("div", { className: cx('w-full flex items-center justify-center', cardMinHeightClass), children: jsx("div", { className: "", children: jsx(Loader, {}) }) }) }, "".concat(id, "--card")) })), jsx("div", { className: "w-full flex flex-col gap-1", children: jsxs("div", { className: "p-3", children: [jsx("div", { children: title && (jsx(Heading, { tag: HEADING_TAGS.H5, singleLine: true, flush: true, children: title })) }), jsx("div", { children: description && jsx(Copy, { children: description }) }), jsxs("div", { className: "flex items-center justify-between gap-2", children: [metaData && (jsx("div", { className: "flex shrink-0", children: metaData.map(function (meta, index) {
531
+ if (index === 0) {
532
+ return (jsxs(Copy, { className: "text-xs", as: COPY_TAG.SMALL, children: [meta, "\u00A0\u00B7"] }, meta));
533
+ }
534
+ if (index === metaData.length - 1) {
535
+ return (jsxs(Copy, { className: "text-xs", as: COPY_TAG.SMALL, children: ["\u00A0", meta] }, meta));
536
+ }
537
+ return (jsxs(Copy, { className: "text-xs", as: COPY_TAG.SMALL, children: ["\u00A0", meta, "\u00A0\u00B7"] }, meta));
538
+ }) })), actions && (jsxs("div", { className: "flex items-center gap-1 flex-wrap", children: [actions.like && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.like.isActive ? 'mdi:like' : 'mdi:like-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
539
+ var _a;
540
+ event.stopPropagation();
541
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.like) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.like.onClick === 'function') {
542
+ actions.like.onClick({ id: id });
543
+ }
544
+ } })), actions.share && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.share.isActive ? 'mdi:share' : 'mdi:share-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
545
+ var _a;
546
+ event.stopPropagation();
547
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.share) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.share.onClick === 'function') {
548
+ actions.share.onClick({ id: id });
549
+ }
550
+ } })), actions.save && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.save.isActive ? 'mdi:bookmark' : 'mdi:bookmark-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
551
+ var _a;
552
+ event.stopPropagation();
553
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.save) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.save.onClick === 'function') {
554
+ actions.save.onClick({ id: id });
555
+ }
556
+ } })), actions.comment && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.comment.isActive ? 'mdi:comment' : 'mdi:comment-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
557
+ var _a;
558
+ event.stopPropagation();
559
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.comment) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.comment.onClick === 'function') {
560
+ actions.comment.onClick({ id: id });
561
+ }
562
+ } })), actions.bookmark && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.bookmark.isActive ? 'mdi:bookmark' : 'mdi:bookmark-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
563
+ var _a;
564
+ event.stopPropagation();
565
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.bookmark) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.bookmark.onClick === 'function') {
566
+ actions.bookmark.onClick({ id: id });
567
+ }
568
+ } })), actions.report && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.report.isActive ? 'mdi:flag' : 'mdi:flag-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
569
+ var _a;
570
+ event.stopPropagation();
571
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.report) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.report.onClick === 'function') {
572
+ actions.report.onClick({ id: id });
573
+ }
574
+ } })), actions.follow && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.follow.isActive ? 'mdi:account-plus' : 'mdi:account-plus-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
575
+ var _a;
576
+ event.stopPropagation();
577
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.follow) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.follow.onClick === 'function') {
578
+ actions.follow.onClick({ id: id });
579
+ }
580
+ } })), actions.download && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.download.isActive ? 'mdi:download' : 'mdi:download-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
581
+ var _a;
582
+ event.stopPropagation();
583
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.download) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.download.onClick === 'function') {
584
+ actions.download.onClick({ id: id });
585
+ }
586
+ } })), actions.edit && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.edit.isActive ? 'mdi:pencil' : 'mdi:pencil-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
587
+ var _a;
588
+ event.stopPropagation();
589
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.edit) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.edit.onClick === 'function') {
590
+ actions.edit.onClick({ id: id });
591
+ }
592
+ } })), actions.delete && (jsx(Button, { variant: BTN_VARIANTS.PRIMARY, icon: actions.delete.isActive ? 'mdi:delete' : 'mdi:delete-outline', size: BTN_SIZES.SMALL, onClick: function (event) {
593
+ var _a;
594
+ event.stopPropagation();
595
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.delete) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.delete.onClick === 'function') {
596
+ actions.delete.onClick({ id: id });
597
+ }
598
+ } }))] }))] })] }) })] }));
547
599
  };
548
600
  CardVideo.displayName = 'CardVideo';
549
601
 
@@ -734,4 +786,11 @@ var FormField = function (_a) {
734
786
  };
735
787
  FormField.displayName = 'FormField';
736
788
 
737
- export { BTN_SIZES, BTN_TYPES, BTN_VARIANTS, Blockquote, Button, COPY_ALIGN, COPY_CONTEXTUAL, COPY_SIZE, COPY_TAG, COPY_TRANSFORM, CPL_SPACING, CRL_SIZE, Card, Container, ContentPageLayout, ContentRowsLayout, Copy, FIELD_TYPES, Form, FormField, HEADING_ALIGN, HEADING_TAGS, HEADING_TRANSFORM, Heading, Hr, Icon, Image, Link, List, ListItem, ListTag, Loader, Notice, Variants };
789
+ var CardVariant;
790
+ (function (CardVariant) {
791
+ CardVariant["BASIC"] = "basic";
792
+ CardVariant["MEDIA"] = "media";
793
+ CardVariant["VIDEO"] = "video";
794
+ })(CardVariant || (CardVariant = {}));
795
+
796
+ export { BTN_SIZES, BTN_TYPES, BTN_VARIANTS, Blockquote, Button, COPY_ALIGN, COPY_CONTEXTUAL, COPY_SIZE, COPY_TAG, COPY_TRANSFORM, CPL_SPACING, CRL_SIZE, Card, CardVariant, Container, ContentPageLayout, ContentRowsLayout, Copy, FIELD_TYPES, Form, FormField, HEADING_ALIGN, HEADING_TAGS, HEADING_TRANSFORM, Heading, Hr, Icon, Image, Link, List, ListItem, ListTag, Loader, Notice, Variants };
package/dist/index.js CHANGED
@@ -191,9 +191,8 @@ var Image = function (_a) {
191
191
  return React.createElement(nextImage, __assign({ src: typeof src === 'string' ? src : src, alt: alt, title: title, onLoad: onLoad, className: className }, rest));
192
192
  }
193
193
  catch (_c) {
194
- console.log('Not using Next.js');
195
194
  var figureClasses = cx('m-0');
196
- var classes = cx('w-full h-auto', className);
195
+ var classes = cx('w-full h-full absolute inset-0 object-cover', className);
197
196
  /**
198
197
  * Render as a figure.
199
198
  */
@@ -369,183 +368,236 @@ var Button = function (_a) {
369
368
  };
370
369
  Button.displayName = 'Button';
371
370
 
371
+ var cardWrapperClasses = 'relative rounded-lg overflow-hidden transition duration-300 ease-in-out cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-white text-black hover:bg-primary hover:text-body-text-inverted';
372
+
372
373
  var CardBasic = function (_a) {
373
374
  var id = _a.id, title = _a.title, description = _a.description, image = _a.image, className = _a.className, metaData = _a.metaData, actions = _a.actions, _b = _a.onClick, onClick = _b === void 0 ? function () { } : _b;
374
- return (jsxRuntime.jsxs("div", { id: id, "data-testid": "CardBasic", className: cx('relative rounded-lg overflow-hidden transition duration-300 ease-in-out cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-primary-lighter hover:bg-primary hover:text-body-text-inverted', className), onClick: onClick, children: [image && (jsxRuntime.jsx("div", { className: "card-image relative w-full min-h-40", children: jsxRuntime.jsx(Image, { fill: true, src: image === null || image === void 0 ? void 0 : image.src, width: 0, height: 0, sizes: "100vh", alt: image === null || image === void 0 ? void 0 : image.alt, className: "object-cover" }) })), jsxRuntime.jsxs("div", { className: "w-full p-3 flex flex-col gap-1", children: [jsxRuntime.jsx("div", { children: title && (jsxRuntime.jsx(Heading, { tag: exports.HEADING_TAGS.H5, singleLine: true, flush: true, children: title })) }), jsxRuntime.jsx("div", { children: description && jsxRuntime.jsx(Copy, { children: description }) }), jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [metaData && (jsxRuntime.jsx("div", { className: "flex shrink-0", children: metaData.map(function (meta, index) {
375
- if (index === 0) {
376
- return (jsxRuntime.jsxs(Copy, { className: "text-xs", as: exports.COPY_TAG.SMALL, children: [meta, "\u00A0\u00B7"] }, meta));
377
- }
378
- if (index === metaData.length - 1) {
379
- return (jsxRuntime.jsxs(Copy, { className: "text-xs", as: exports.COPY_TAG.SMALL, children: ["\u00A0", meta] }, meta));
380
- }
381
- return (jsxRuntime.jsxs(Copy, { className: "text-xs", as: exports.COPY_TAG.SMALL, children: ["\u00A0", meta, "\u00A0\u00B7"] }, meta));
382
- }) })), actions && (jsxRuntime.jsxs("div", { className: "flex items-center gap-1 flex-wrap", children: [actions.like && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.like.isActive ? 'mdi:like' : 'mdi:like-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
383
- var _a;
384
- event.stopPropagation();
385
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.like) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.like.onClick === 'function') {
386
- actions.like.onClick({ id: id });
387
- }
388
- } })), actions.share && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.share.isActive ? 'mdi:share' : 'mdi:share-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
389
- var _a;
390
- event.stopPropagation();
391
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.share) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.share.onClick === 'function') {
392
- actions.share.onClick({ id: id });
393
- }
394
- } })), actions.save && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.save.isActive ? 'mdi:bookmark' : 'mdi:bookmark-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
395
- var _a;
396
- event.stopPropagation();
397
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.save) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.save.onClick === 'function') {
398
- actions.save.onClick({ id: id });
399
- }
400
- } })), actions.comment && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.comment.isActive ? 'mdi:comment' : 'mdi:comment-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
401
- var _a;
402
- event.stopPropagation();
403
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.comment) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.comment.onClick === 'function') {
404
- actions.comment.onClick({ id: id });
405
- }
406
- } })), actions.bookmark && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.bookmark.isActive ? 'mdi:bookmark' : 'mdi:bookmark-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
407
- var _a;
408
- event.stopPropagation();
409
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.bookmark) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.bookmark.onClick === 'function') {
410
- actions.bookmark.onClick({ id: id });
411
- }
412
- } })), actions.report && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.report.isActive ? 'mdi:flag' : 'mdi:flag-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
413
- var _a;
414
- event.stopPropagation();
415
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.report) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.report.onClick === 'function') {
416
- actions.report.onClick({ id: id });
417
- }
418
- } })), actions.follow && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.follow.isActive ? 'mdi:account-plus' : 'mdi:account-plus-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
419
- var _a;
420
- event.stopPropagation();
421
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.follow) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.follow.onClick === 'function') {
422
- actions.follow.onClick({ id: id });
423
- }
424
- } })), actions.download && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.download.isActive ? 'mdi:download' : 'mdi:download-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
425
- var _a;
426
- event.stopPropagation();
427
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.download) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.download.onClick === 'function') {
428
- actions.download.onClick({ id: id });
429
- }
430
- } })), actions.edit && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.edit.isActive ? 'mdi:pencil' : 'mdi:pencil-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
431
- var _a;
432
- event.stopPropagation();
433
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.edit) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.edit.onClick === 'function') {
434
- actions.edit.onClick({ id: id });
435
- }
436
- } })), actions.delete && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.delete.isActive ? 'mdi:delete' : 'mdi:delete-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
437
- var _a;
438
- event.stopPropagation();
439
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.delete) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.delete.onClick === 'function') {
440
- actions.delete.onClick({ id: id });
441
- }
442
- } }))] }))] })] })] }));
375
+ return (jsxRuntime.jsxs("div", { id: id, "data-testid": "CardBasic", className: cx(cardWrapperClasses, className), onClick: onClick, children: [image && (jsxRuntime.jsx("div", { className: "relative w-full min-h-64", children: jsxRuntime.jsx(Image, { fill: true, src: image === null || image === void 0 ? void 0 : image.src, sizes: "100vh", alt: image === null || image === void 0 ? void 0 : image.alt, className: "object-cover" }) })), jsxRuntime.jsx("div", { className: "w-full flex flex-col gap-1", children: jsxRuntime.jsxs("div", { className: "p-3", children: [jsxRuntime.jsx("div", { children: title && (jsxRuntime.jsx(Heading, { tag: exports.HEADING_TAGS.H5, singleLine: true, flush: true, children: title })) }), jsxRuntime.jsx("div", { children: description && jsxRuntime.jsx(Copy, { children: description }) }), jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [metaData && (jsxRuntime.jsx("div", { className: "flex shrink-0", children: metaData.map(function (meta, index) {
376
+ if (index === 0) {
377
+ return (jsxRuntime.jsxs(Copy, { className: "text-xs", as: exports.COPY_TAG.SMALL, children: [meta, "\u00A0\u00B7"] }, meta));
378
+ }
379
+ if (index === metaData.length - 1) {
380
+ return (jsxRuntime.jsxs(Copy, { className: "text-xs", as: exports.COPY_TAG.SMALL, children: ["\u00A0", meta] }, meta));
381
+ }
382
+ return (jsxRuntime.jsxs(Copy, { className: "text-xs", as: exports.COPY_TAG.SMALL, children: ["\u00A0", meta, "\u00A0\u00B7"] }, meta));
383
+ }) })), actions && (jsxRuntime.jsxs("div", { className: "flex items-center gap-1 flex-wrap", children: [actions.like && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.like.isActive ? 'mdi:like' : 'mdi:like-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
384
+ var _a;
385
+ event.stopPropagation();
386
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.like) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.like.onClick === 'function') {
387
+ actions.like.onClick({ id: id });
388
+ }
389
+ } })), actions.share && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.share.isActive ? 'mdi:share' : 'mdi:share-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
390
+ var _a;
391
+ event.stopPropagation();
392
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.share) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.share.onClick === 'function') {
393
+ actions.share.onClick({ id: id });
394
+ }
395
+ } })), actions.save && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.save.isActive ? 'mdi:bookmark' : 'mdi:bookmark-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
396
+ var _a;
397
+ event.stopPropagation();
398
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.save) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.save.onClick === 'function') {
399
+ actions.save.onClick({ id: id });
400
+ }
401
+ } })), actions.comment && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.comment.isActive ? 'mdi:comment' : 'mdi:comment-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
402
+ var _a;
403
+ event.stopPropagation();
404
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.comment) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.comment.onClick === 'function') {
405
+ actions.comment.onClick({ id: id });
406
+ }
407
+ } })), actions.bookmark && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.bookmark.isActive ? 'mdi:bookmark' : 'mdi:bookmark-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
408
+ var _a;
409
+ event.stopPropagation();
410
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.bookmark) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.bookmark.onClick === 'function') {
411
+ actions.bookmark.onClick({ id: id });
412
+ }
413
+ } })), actions.report && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.report.isActive ? 'mdi:flag' : 'mdi:flag-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
414
+ var _a;
415
+ event.stopPropagation();
416
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.report) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.report.onClick === 'function') {
417
+ actions.report.onClick({ id: id });
418
+ }
419
+ } })), actions.follow && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.follow.isActive ? 'mdi:account-plus' : 'mdi:account-plus-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
420
+ var _a;
421
+ event.stopPropagation();
422
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.follow) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.follow.onClick === 'function') {
423
+ actions.follow.onClick({ id: id });
424
+ }
425
+ } })), actions.download && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.download.isActive ? 'mdi:download' : 'mdi:download-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
426
+ var _a;
427
+ event.stopPropagation();
428
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.download) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.download.onClick === 'function') {
429
+ actions.download.onClick({ id: id });
430
+ }
431
+ } })), actions.edit && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.edit.isActive ? 'mdi:pencil' : 'mdi:pencil-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
432
+ var _a;
433
+ event.stopPropagation();
434
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.edit) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.edit.onClick === 'function') {
435
+ actions.edit.onClick({ id: id });
436
+ }
437
+ } })), actions.delete && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.delete.isActive ? 'mdi:delete' : 'mdi:delete-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
438
+ var _a;
439
+ event.stopPropagation();
440
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.delete) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.delete.onClick === 'function') {
441
+ actions.delete.onClick({ id: id });
442
+ }
443
+ } }))] }))] })] }) })] }));
443
444
  };
444
445
  CardBasic.displayName = 'CardBasic';
445
446
 
446
447
  var CardMedia = function (_a) {
447
- var className = _a.className;
448
- return (jsxRuntime.jsx("div", { "data-testid": "CardMedia", className: cx('relative', className), children: "CardMedia" }));
448
+ var id = _a.id, title = _a.title, description = _a.description, image = _a.image, className = _a.className, metaData = _a.metaData, actions = _a.actions, _b = _a.onClick, onClick = _b === void 0 ? function () { } : _b, playCallback = _a.playCallback;
449
+ console.log('CardMedia', title);
450
+ return (jsxRuntime.jsxs("div", { id: id, "data-testid": "CardBasic", className: cx(cardWrapperClasses, className), onClick: onClick, children: [image && (jsxRuntime.jsxs("div", { className: "relative w-full overflow-hidden h-64", children: [jsxRuntime.jsx(Image, { fill: true, src: image === null || image === void 0 ? void 0 : image.src, sizes: "100vh", alt: image === null || image === void 0 ? void 0 : image.alt, className: "object-cover" }), playCallback && (jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: "mdi:play", size: exports.BTN_SIZES.LARGE, onClick: function (event) {
451
+ event.stopPropagation();
452
+ if (typeof playCallback === 'function') {
453
+ playCallback(event);
454
+ }
455
+ } }) }))] })), jsxRuntime.jsx("div", { className: "w-full flex flex-col gap-1", children: jsxRuntime.jsxs("div", { className: "p-3", children: [jsxRuntime.jsx("div", { children: title && (jsxRuntime.jsx(Heading, { tag: exports.HEADING_TAGS.H5, singleLine: true, flush: true, children: title })) }), jsxRuntime.jsx("div", { children: description && jsxRuntime.jsx(Copy, { children: description }) }), jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [metaData && (jsxRuntime.jsx("div", { className: "flex shrink-0", children: metaData.map(function (meta, index) {
456
+ if (index === 0) {
457
+ return (jsxRuntime.jsxs(Copy, { className: "text-xs", as: exports.COPY_TAG.SMALL, children: [meta, "\u00A0\u00B7"] }, meta));
458
+ }
459
+ if (index === metaData.length - 1) {
460
+ return (jsxRuntime.jsxs(Copy, { className: "text-xs", as: exports.COPY_TAG.SMALL, children: ["\u00A0", meta] }, meta));
461
+ }
462
+ return (jsxRuntime.jsxs(Copy, { className: "text-xs", as: exports.COPY_TAG.SMALL, children: ["\u00A0", meta, "\u00A0\u00B7"] }, meta));
463
+ }) })), actions && (jsxRuntime.jsxs("div", { className: "flex items-center gap-1 flex-wrap", children: [actions.like && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.like.isActive ? 'mdi:like' : 'mdi:like-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
464
+ var _a;
465
+ event.stopPropagation();
466
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.like) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.like.onClick === 'function') {
467
+ actions.like.onClick({ id: id });
468
+ }
469
+ } })), actions.share && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.share.isActive ? 'mdi:share' : 'mdi:share-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
470
+ var _a;
471
+ event.stopPropagation();
472
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.share) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.share.onClick === 'function') {
473
+ actions.share.onClick({ id: id });
474
+ }
475
+ } })), actions.save && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.save.isActive ? 'mdi:bookmark' : 'mdi:bookmark-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
476
+ var _a;
477
+ event.stopPropagation();
478
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.save) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.save.onClick === 'function') {
479
+ actions.save.onClick({ id: id });
480
+ }
481
+ } })), actions.comment && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.comment.isActive ? 'mdi:comment' : 'mdi:comment-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
482
+ var _a;
483
+ event.stopPropagation();
484
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.comment) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.comment.onClick === 'function') {
485
+ actions.comment.onClick({ id: id });
486
+ }
487
+ } })), actions.bookmark && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.bookmark.isActive ? 'mdi:bookmark' : 'mdi:bookmark-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
488
+ var _a;
489
+ event.stopPropagation();
490
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.bookmark) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.bookmark.onClick === 'function') {
491
+ actions.bookmark.onClick({ id: id });
492
+ }
493
+ } })), actions.report && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.report.isActive ? 'mdi:flag' : 'mdi:flag-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
494
+ var _a;
495
+ event.stopPropagation();
496
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.report) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.report.onClick === 'function') {
497
+ actions.report.onClick({ id: id });
498
+ }
499
+ } })), actions.follow && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.follow.isActive ? 'mdi:account-plus' : 'mdi:account-plus-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
500
+ var _a;
501
+ event.stopPropagation();
502
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.follow) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.follow.onClick === 'function') {
503
+ actions.follow.onClick({ id: id });
504
+ }
505
+ } })), actions.download && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.download.isActive ? 'mdi:download' : 'mdi:download-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
506
+ var _a;
507
+ event.stopPropagation();
508
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.download) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.download.onClick === 'function') {
509
+ actions.download.onClick({ id: id });
510
+ }
511
+ } })), actions.edit && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.edit.isActive ? 'mdi:pencil' : 'mdi:pencil-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
512
+ var _a;
513
+ event.stopPropagation();
514
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.edit) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.edit.onClick === 'function') {
515
+ actions.edit.onClick({ id: id });
516
+ }
517
+ } })), actions.delete && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.delete.isActive ? 'mdi:delete' : 'mdi:delete-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
518
+ var _a;
519
+ event.stopPropagation();
520
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.delete) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.delete.onClick === 'function') {
521
+ actions.delete.onClick({ id: id });
522
+ }
523
+ } }))] }))] })] }) })] }));
449
524
  };
450
525
  CardMedia.displayName = 'CardMedia';
451
526
 
452
- // title,
453
- // uuid,
454
- // image,
455
- // date,
456
- // video,
457
- // isMuted = false,
458
- // withStyles = true,
459
- // promoCards = false,
460
- // isOriginal = false,
461
- // customPath,
462
527
  var CardVideo = function (_a) {
463
528
  var video = _a.video, _b = _a.isMuted, isMuted = _b === void 0 ? true : _b, id = _a.id, title = _a.title, description = _a.description, image = _a.image, className = _a.className, metaData = _a.metaData, actions = _a.actions, _c = _a.onClick, onClick = _c === void 0 ? function () { } : _c;
464
- return (jsxRuntime.jsxs("div", { id: id, "data-testid": "CardBasic", className: cx('relative rounded-lg overflow-hidden transition duration-300 ease-in-out cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-white text-black-lighter hover:bg-white-darker dark:bg-primary-lighter dark:hover:bg-primary-lighter dark:text-white-darker', className), onClick: onClick, children: [image && (jsxRuntime.jsx("div", { className: "card-image relative w-full min-h-40", children: jsxRuntime.jsx(HoverVideoPlayer, { videoId: "video--".concat(id), playbackStartDelay: 1000, videoSrc: jsxRuntime.jsx("source", { src: video, type: "video/mp4" }), videoClassName: cx('hls-hover-video w-full min-h-48'), sizingMode: "overlay", preload: "none", loop: false, muted: isMuted, className: "w-full min-h-48", pausedOverlay: jsxRuntime.jsx("div", { className: "w-full min-h-48", children: jsxRuntime.jsx(Image
465
- // src={image?.src || ''}
466
- // width={200}
467
- // height={200}
468
- // sizes="100vh"
469
- // alt={image?.alt || ''}
470
- // className="object-cover"
471
- , {
472
- // src={image?.src || ''}
473
- // width={200}
474
- // height={200}
475
- // sizes="100vh"
476
- // alt={image?.alt || ''}
477
- // className="object-cover"
478
- fill: true, src: image === null || image === void 0 ? void 0 : image.src, width: 0, height: 0,
529
+ var cardMinHeightClass = 'min-h-64';
530
+ return (jsxRuntime.jsxs("div", { id: id, "data-testid": "CardVideo", className: cx(cardWrapperClasses, className), onClick: onClick, children: [image && video && (jsxRuntime.jsx("div", { className: cx('relative w-full h-full', cardMinHeightClass), children: jsxRuntime.jsx(HoverVideoPlayer, { videoId: "video--".concat(id), playbackStartDelay: 1000, videoSrc: jsxRuntime.jsx("source", { src: video, type: "video/mp4" }), videoClassName: cx('hls-hover-video w-full', cardMinHeightClass), sizingMode: "overlay", preload: "none", loop: false, muted: isMuted, className: cx('w-full', cardMinHeightClass), pausedOverlay: jsxRuntime.jsx("div", { className: cx('relative w-full', cardMinHeightClass), children: jsxRuntime.jsx(Image, { fill: true, src: image === null || image === void 0 ? void 0 : image.src, width: 0, height: 0,
479
531
  // sizes="100vh"
480
- alt: image === null || image === void 0 ? void 0 : image.alt, className: "object-cover" }) }), loadingOverlay: jsxRuntime.jsx("div", { className: "w-full min-h-48 flex items-center justify-center", children: jsxRuntime.jsx("div", { className: "", children: jsxRuntime.jsx(Loader, {}) }) }) }, "".concat(id, "--card")) })), jsxRuntime.jsxs("div", { className: "w-full p-3 flex flex-col gap-1", children: [jsxRuntime.jsx("div", { children: title && (jsxRuntime.jsx(Heading, { tag: exports.HEADING_TAGS.H5, singleLine: true, flush: true, children: title })) }), jsxRuntime.jsx("div", { children: description && jsxRuntime.jsx(Copy, { children: description }) }), jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [metaData && (jsxRuntime.jsx("div", { className: "flex shrink-0", children: metaData.map(function (meta, index) {
481
- if (index === 0) {
482
- return (jsxRuntime.jsxs(Copy, { className: "text-xs", as: exports.COPY_TAG.SMALL, children: [meta, "\u00A0\u00B7"] }, meta));
483
- }
484
- if (index === metaData.length - 1) {
485
- return (jsxRuntime.jsxs(Copy, { className: "text-xs", as: exports.COPY_TAG.SMALL, children: ["\u00A0", meta] }, meta));
486
- }
487
- return (jsxRuntime.jsxs(Copy, { className: "text-xs", as: exports.COPY_TAG.SMALL, children: ["\u00A0", meta, "\u00A0\u00B7"] }, meta));
488
- }) })), actions && (jsxRuntime.jsxs("div", { className: "flex items-center gap-1 flex-wrap", children: [actions.like && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.like.isActive ? 'mdi:like' : 'mdi:like-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
489
- var _a;
490
- event.stopPropagation();
491
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.like) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.like.onClick === 'function') {
492
- actions.like.onClick({ id: id });
493
- }
494
- } })), actions.share && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.share.isActive ? 'mdi:share' : 'mdi:share-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
495
- var _a;
496
- event.stopPropagation();
497
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.share) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.share.onClick === 'function') {
498
- actions.share.onClick({ id: id });
499
- }
500
- } })), actions.save && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.save.isActive ? 'mdi:bookmark' : 'mdi:bookmark-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
501
- var _a;
502
- event.stopPropagation();
503
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.save) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.save.onClick === 'function') {
504
- actions.save.onClick({ id: id });
505
- }
506
- } })), actions.comment && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.comment.isActive ? 'mdi:comment' : 'mdi:comment-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
507
- var _a;
508
- event.stopPropagation();
509
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.comment) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.comment.onClick === 'function') {
510
- actions.comment.onClick({ id: id });
511
- }
512
- } })), actions.bookmark && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.bookmark.isActive ? 'mdi:bookmark' : 'mdi:bookmark-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
513
- var _a;
514
- event.stopPropagation();
515
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.bookmark) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.bookmark.onClick === 'function') {
516
- actions.bookmark.onClick({ id: id });
517
- }
518
- } })), actions.report && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.report.isActive ? 'mdi:flag' : 'mdi:flag-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
519
- var _a;
520
- event.stopPropagation();
521
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.report) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.report.onClick === 'function') {
522
- actions.report.onClick({ id: id });
523
- }
524
- } })), actions.follow && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.follow.isActive ? 'mdi:account-plus' : 'mdi:account-plus-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
525
- var _a;
526
- event.stopPropagation();
527
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.follow) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.follow.onClick === 'function') {
528
- actions.follow.onClick({ id: id });
529
- }
530
- } })), actions.download && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.download.isActive ? 'mdi:download' : 'mdi:download-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
531
- var _a;
532
- event.stopPropagation();
533
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.download) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.download.onClick === 'function') {
534
- actions.download.onClick({ id: id });
535
- }
536
- } })), actions.edit && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.edit.isActive ? 'mdi:pencil' : 'mdi:pencil-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
537
- var _a;
538
- event.stopPropagation();
539
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.edit) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.edit.onClick === 'function') {
540
- actions.edit.onClick({ id: id });
541
- }
542
- } })), actions.delete && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.delete.isActive ? 'mdi:delete' : 'mdi:delete-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
543
- var _a;
544
- event.stopPropagation();
545
- if (((_a = actions === null || actions === void 0 ? void 0 : actions.delete) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.delete.onClick === 'function') {
546
- actions.delete.onClick({ id: id });
547
- }
548
- } }))] }))] })] })] }));
532
+ alt: image === null || image === void 0 ? void 0 : image.alt, className: "object-cover" }) }), loadingOverlay: jsxRuntime.jsx("div", { className: cx('w-full flex items-center justify-center', cardMinHeightClass), children: jsxRuntime.jsx("div", { className: "", children: jsxRuntime.jsx(Loader, {}) }) }) }, "".concat(id, "--card")) })), jsxRuntime.jsx("div", { className: "w-full flex flex-col gap-1", children: jsxRuntime.jsxs("div", { className: "p-3", children: [jsxRuntime.jsx("div", { children: title && (jsxRuntime.jsx(Heading, { tag: exports.HEADING_TAGS.H5, singleLine: true, flush: true, children: title })) }), jsxRuntime.jsx("div", { children: description && jsxRuntime.jsx(Copy, { children: description }) }), jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [metaData && (jsxRuntime.jsx("div", { className: "flex shrink-0", children: metaData.map(function (meta, index) {
533
+ if (index === 0) {
534
+ return (jsxRuntime.jsxs(Copy, { className: "text-xs", as: exports.COPY_TAG.SMALL, children: [meta, "\u00A0\u00B7"] }, meta));
535
+ }
536
+ if (index === metaData.length - 1) {
537
+ return (jsxRuntime.jsxs(Copy, { className: "text-xs", as: exports.COPY_TAG.SMALL, children: ["\u00A0", meta] }, meta));
538
+ }
539
+ return (jsxRuntime.jsxs(Copy, { className: "text-xs", as: exports.COPY_TAG.SMALL, children: ["\u00A0", meta, "\u00A0\u00B7"] }, meta));
540
+ }) })), actions && (jsxRuntime.jsxs("div", { className: "flex items-center gap-1 flex-wrap", children: [actions.like && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.like.isActive ? 'mdi:like' : 'mdi:like-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
541
+ var _a;
542
+ event.stopPropagation();
543
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.like) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.like.onClick === 'function') {
544
+ actions.like.onClick({ id: id });
545
+ }
546
+ } })), actions.share && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.share.isActive ? 'mdi:share' : 'mdi:share-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
547
+ var _a;
548
+ event.stopPropagation();
549
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.share) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.share.onClick === 'function') {
550
+ actions.share.onClick({ id: id });
551
+ }
552
+ } })), actions.save && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.save.isActive ? 'mdi:bookmark' : 'mdi:bookmark-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
553
+ var _a;
554
+ event.stopPropagation();
555
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.save) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.save.onClick === 'function') {
556
+ actions.save.onClick({ id: id });
557
+ }
558
+ } })), actions.comment && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.comment.isActive ? 'mdi:comment' : 'mdi:comment-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
559
+ var _a;
560
+ event.stopPropagation();
561
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.comment) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.comment.onClick === 'function') {
562
+ actions.comment.onClick({ id: id });
563
+ }
564
+ } })), actions.bookmark && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.bookmark.isActive ? 'mdi:bookmark' : 'mdi:bookmark-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
565
+ var _a;
566
+ event.stopPropagation();
567
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.bookmark) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.bookmark.onClick === 'function') {
568
+ actions.bookmark.onClick({ id: id });
569
+ }
570
+ } })), actions.report && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.report.isActive ? 'mdi:flag' : 'mdi:flag-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
571
+ var _a;
572
+ event.stopPropagation();
573
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.report) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.report.onClick === 'function') {
574
+ actions.report.onClick({ id: id });
575
+ }
576
+ } })), actions.follow && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.follow.isActive ? 'mdi:account-plus' : 'mdi:account-plus-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
577
+ var _a;
578
+ event.stopPropagation();
579
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.follow) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.follow.onClick === 'function') {
580
+ actions.follow.onClick({ id: id });
581
+ }
582
+ } })), actions.download && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.download.isActive ? 'mdi:download' : 'mdi:download-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
583
+ var _a;
584
+ event.stopPropagation();
585
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.download) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.download.onClick === 'function') {
586
+ actions.download.onClick({ id: id });
587
+ }
588
+ } })), actions.edit && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.edit.isActive ? 'mdi:pencil' : 'mdi:pencil-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
589
+ var _a;
590
+ event.stopPropagation();
591
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.edit) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.edit.onClick === 'function') {
592
+ actions.edit.onClick({ id: id });
593
+ }
594
+ } })), actions.delete && (jsxRuntime.jsx(Button, { variant: exports.BTN_VARIANTS.PRIMARY, icon: actions.delete.isActive ? 'mdi:delete' : 'mdi:delete-outline', size: exports.BTN_SIZES.SMALL, onClick: function (event) {
595
+ var _a;
596
+ event.stopPropagation();
597
+ if (((_a = actions === null || actions === void 0 ? void 0 : actions.delete) === null || _a === void 0 ? void 0 : _a.onClick) && typeof actions.delete.onClick === 'function') {
598
+ actions.delete.onClick({ id: id });
599
+ }
600
+ } }))] }))] })] }) })] }));
549
601
  };
550
602
  CardVideo.displayName = 'CardVideo';
551
603
 
@@ -736,6 +788,13 @@ var FormField = function (_a) {
736
788
  };
737
789
  FormField.displayName = 'FormField';
738
790
 
791
+ exports.CardVariant = void 0;
792
+ (function (CardVariant) {
793
+ CardVariant["BASIC"] = "basic";
794
+ CardVariant["MEDIA"] = "media";
795
+ CardVariant["VIDEO"] = "video";
796
+ })(exports.CardVariant || (exports.CardVariant = {}));
797
+
739
798
  exports.Blockquote = Blockquote;
740
799
  exports.Button = Button;
741
800
  exports.Card = Card;
@@ -3,4 +3,8 @@ import Card from '.';
3
3
  declare const meta: Meta<typeof Card>;
4
4
  type Story = StoryObj<typeof Card>;
5
5
  export declare const Default: Story;
6
+ export declare const Basic: Story;
7
+ export declare const Video: Story;
8
+ export declare const Media: Story;
9
+ export declare const MediaMultiple: Story;
6
10
  export default meta;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare enum CardVariant {
2
3
  BASIC = "basic",
3
4
  MEDIA = "media",
@@ -39,6 +40,7 @@ export interface CardData {
39
40
  metaData?: string[];
40
41
  actions?: Actions;
41
42
  onClick?: (data: any) => void;
43
+ playCallback?: (event: React.MouseEvent<HTMLButtonElement>) => void;
42
44
  }
43
45
  export interface Props {
44
46
  variant?: CardVariant;
@@ -0,0 +1 @@
1
+ export declare const cardWrapperClasses = "relative rounded-lg overflow-hidden transition duration-300 ease-in-out cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-white text-black hover:bg-primary hover:text-body-text-inverted";
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Props } from './CardMedia.types';
3
3
  declare const CardMedia: {
4
- ({ className }: Props): React.ReactElement;
4
+ ({ id, title, description, image, className, metaData, actions, onClick, playCallback, }: Props): React.ReactElement;
5
5
  displayName: string;
6
6
  };
7
7
  export default CardMedia;
@@ -40,3 +40,4 @@ export type { Props as FormProps } from './Form/Form.types';
40
40
  export type { Props as FormFieldProps } from './FormField/FormField.types';
41
41
  export { FIELD_TYPES } from './FormField/FormField.types';
42
42
  export type { Props as CardProps } from './Card/Card.types';
43
+ export { CardVariant } from './Card/Card.types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4alldigital/foundation-ui--gamma",
3
- "version": "1.31.2",
3
+ "version": "1.31.4",
4
4
  "description": "Foundation UI Component library with GAMMA theme. ",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -25,7 +25,7 @@
25
25
  "publishConfig": {
26
26
  "access": "public"
27
27
  },
28
- "gitHead": "2720fd9e6e2c232d793040fdcf4cdd27bcd29830",
28
+ "gitHead": "514d39909665a12fceb1b070c3893f62492eb27d",
29
29
  "dependencies": {
30
30
  "@elastic/datemath": "^5.0.3",
31
31
  "@elastic/eui": "^94.1.0",
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import CardBasic from '.';
3
- declare const meta: Meta<typeof CardBasic>;
4
- type Story = StoryObj<typeof CardBasic>;
5
- export declare const Default: Story;
6
- export default meta;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import CardMedia from '.';
3
- declare const meta: Meta<typeof CardMedia>;
4
- type Story = StoryObj<typeof CardMedia>;
5
- export declare const Default: Story;
6
- export default meta;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import CardVideo from '.';
3
- declare const meta: Meta<typeof CardVideo>;
4
- type Story = StoryObj<typeof CardVideo>;
5
- export declare const Default: Story;
6
- export default meta;