From dfe0b5a44a2802727b29a3fb9266e5942ad156d7 Mon Sep 17 00:00:00 2001 From: Cesar Parra Date: Fri, 6 Oct 2023 14:59:37 -0400 Subject: [PATCH 1/2] Logos - initial commit. --- .../main/staticresources/tw/css/main.css | 2 +- .../main/ui/lwc/logos/logos.html | 24 ++++++++++ .../main/ui/lwc/logos/logos.js | 48 +++++++++++++++++++ .../main/ui/lwc/logos/logos.js-meta.xml | 17 +++++++ .../main/ui/lwc/logos/logos.svg | 15 ++++++ 5 files changed, 105 insertions(+), 1 deletion(-) create mode 100644 expression-components/main/ui/lwc/logos/logos.html create mode 100644 expression-components/main/ui/lwc/logos/logos.js create mode 100644 expression-components/main/ui/lwc/logos/logos.js-meta.xml create mode 100644 expression-components/main/ui/lwc/logos/logos.svg diff --git a/expression-components/main/staticresources/tw/css/main.css b/expression-components/main/staticresources/tw/css/main.css index 70bbb81e..0eee5e8d 100644 --- a/expression-components/main/staticresources/tw/css/main.css +++ b/expression-components/main/staticresources/tw/css/main.css @@ -1 +1 @@ -/*! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,::backdrop,: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: }.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border-width:0!important}.fixed{position:fixed!important}.relative{position:relative!important}.inset-0{inset:0!important}.inset-x-0{left:0!important;right:0!important}.inset-y-0{top:0!important;bottom:0!important}.right-0{right:0!important}.top-0{top:0!important}.isolate{isolation:isolate!important}.z-50{z-index:50!important}.-m-1{margin:-.25rem!important}.-m-1\.5{margin:-.375rem!important}.-m-2{margin:-.5rem!important}.-m-2\.5{margin:-.625rem!important}.-mx-3{margin-left:-.75rem!important;margin-right:-.75rem!important}.-my-6{margin-top:-1.5rem!important;margin-bottom:-1.5rem!important}.mx-auto{margin-left:auto!important;margin-right:auto!important}.ml-3{margin-left:.75rem!important}.mt-10{margin-top:2.5rem!important}.mt-16{margin-top:4rem!important}.mt-2{margin-top:.5rem!important}.mt-6{margin-top:1.5rem!important}.block{display:block!important}.flex{display:flex!important}.inline-flex{display:inline-flex!important}.flow-root{display:flow-root!important}.hidden{display:none!important}.h-5{height:1.25rem!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-\[76rem\]{width:76rem!important}.w-auto{width:auto!important}.w-full{width:100%!important}.max-w-2xl{max-width:42rem!important}.max-w-3xl{max-width:48rem!important}.max-w-7xl{max-width:80rem!important}.max-w-xl{max-width:36rem!important}.flex-none{flex:none!important}.flex-shrink-0{flex-shrink:0!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.justify-between{justify-content:space-between!important}.gap-x-6{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.5rem*var(--tw-space-y-reverse))!important}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0!important;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))!important;border-bottom-width:calc(1px*var(--tw-divide-y-reverse))!important}.divide-gray-500\/10>:not([hidden])~:not([hidden]){border-color:#6b72801a!important}.overflow-hidden{overflow:hidden!important}.overflow-y-auto{overflow-y:auto!important}.rounded-lg{border-radius:.5rem!important}.rounded-md{border-radius:.375rem!important}.rounded-xl{border-radius:.75rem!important}.bg-dxp-bg-root{background-color:var(--dxp-g-root)!important}.bg-dxp-brand{background-color:var(--dxp-g-brand)!important}.bg-gray-900\/5{background-color:#1118270d!important}.bg-red-50{--tw-bg-opacity:1!important;background-color:rgb(254 242 242/var(--tw-bg-opacity))!important}.p-1{padding:.25rem!important}.p-1\.5{padding:.375rem!important}.p-2{padding:.5rem!important}.p-2\.5{padding:.625rem!important}.p-4{padding:1rem!important}.p-6{padding:1.5rem!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.px-3\.5{padding-left:.875rem!important;padding-right:.875rem!important}.px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-2\.5{padding-top:.625rem!important;padding-bottom:.625rem!important}.py-6{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.pb-24{padding-bottom:6rem!important}.pt-10{padding-top:2.5rem!important}.text-center{text-align:center!important}.text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-bold{font-weight:700!important}.font-medium{font-weight:500!important}.font-semibold{font-weight:600!important}.leading-6{line-height:1.5rem!important}.leading-7{line-height:1.75rem!important}.leading-8{line-height:2rem!important}.tracking-tight{letter-spacing:-.025em!important}.text-dxp-brand-foreground{color:var(--dxp-g-brand-contrast)!important}.text-dxp-text-contrast{color:var(--dxp-g-root-contrast)!important}.text-dxp-text-contrast-2{color:var(--dxp-g-root-contrast-2)!important}.text-red-400{--tw-text-opacity:1!important;color:rgb(248 113 113/var(--tw-text-opacity))!important}.text-yellow-700{--tw-text-opacity:1!important;color:rgb(161 98 7/var(--tw-text-opacity))!important}.text-yellow-800{--tw-text-opacity:1!important;color:rgb(133 77 14/var(--tw-text-opacity))!important}.shadow-2xl{--tw-shadow:0 25px 50px -12px #00000040!important;--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)!important}.shadow-2xl,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d!important;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)!important}.ring-1{--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(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.ring-inset{--tw-ring-inset:inset!important}.ring-gray-900\/10{--tw-ring-color:#1118271a!important}.hover\:bg-dxp-brand-1:hover{background-color:var(--dxp-g-brand-1)!important}.hover\:bg-dxp-brand-2:hover{background-color:var(--dxp-g-brand-2)!important}.hover\:bg-gray-50:hover{--tw-bg-opacity:1!important;background-color:rgb(249 250 251/var(--tw-bg-opacity))!important}.focus-visible\:outline:focus-visible{outline-style:solid!important}.focus-visible\:outline-2:focus-visible{outline-width:2px!important}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px!important}.focus-visible\:outline-dxp-brand:focus-visible{outline-color:var(--dxp-g-brand)!important}.focus-visible\:outline-dxp-brand-1:focus-visible{outline-color:var(--dxp-g-brand-1)!important}@media (min-width:640px){.sm\:mt-24{margin-top:6rem!important}.sm\:max-w-5xl{max-width:64rem!important}.sm\:max-w-sm{max-width:24rem!important}.sm\:pb-32{padding-bottom:8rem!important}.sm\:text-6xl{font-size:3.75rem!important;line-height:1!important}.sm\:ring-1{--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(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.sm\:ring-gray-900\/10{--tw-ring-color:#1118271a!important}}@media (min-width:1024px){.lg\:-m-4{margin:-1rem!important}.lg\:mx-0{margin-left:0!important;margin-right:0!important}.lg\:ml-10{margin-left:2.5rem!important}.lg\:mr-0{margin-right:0!important}.lg\:mt-0{margin-top:0!important}.lg\:flex{display:flex!important}.lg\:hidden{display:none!important}.lg\:max-w-none{max-width:none!important}.lg\:max-w-xl{max-width:36rem!important}.lg\:flex-1{flex:1 1 0%!important}.lg\:flex-none{flex:none!important}.lg\:flex-shrink-0{flex-shrink:0!important}.lg\:justify-end{justify-content:flex-end!important}.lg\:gap-x-12{-moz-column-gap:3rem!important;column-gap:3rem!important}.lg\:rounded-2xl{border-radius:1rem!important}.lg\:p-4{padding:1rem!important}.lg\:px-8{padding-left:2rem!important;padding-right:2rem!important}.lg\:py-40{padding-top:10rem!important;padding-bottom:10rem!important}.lg\:pt-8{padding-top:2rem!important}}@media (min-width:1280px){.xl\:ml-32{margin-left:8rem!important}} \ No newline at end of file +/*! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,::backdrop,: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: }.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border-width:0!important}.fixed{position:fixed!important}.relative{position:relative!important}.inset-0{inset:0!important}.inset-x-0{left:0!important;right:0!important}.inset-y-0{top:0!important;bottom:0!important}.right-0{right:0!important}.top-0{top:0!important}.isolate{isolation:isolate!important}.z-50{z-index:50!important}.-m-1{margin:-.25rem!important}.-m-1\.5{margin:-.375rem!important}.-m-2{margin:-.5rem!important}.-m-2\.5{margin:-.625rem!important}.-mx-3{margin-left:-.75rem!important;margin-right:-.75rem!important}.-my-6{margin-top:-1.5rem!important;margin-bottom:-1.5rem!important}.mx-auto{margin-left:auto!important;margin-right:auto!important}.ml-3{margin-left:.75rem!important}.mt-10{margin-top:2.5rem!important}.mt-16{margin-top:4rem!important}.mt-2{margin-top:.5rem!important}.mt-6{margin-top:1.5rem!important}.block{display:block!important}.flex{display:flex!important}.inline-flex{display:inline-flex!important}.flow-root{display:flow-root!important}.grid{display:grid!important}.hidden{display:none!important}.h-5{height:1.25rem!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.max-h-12{max-height:3rem!important}.w-5{width:1.25rem!important}.w-6{width:1.5rem!important}.w-\[76rem\]{width:76rem!important}.w-auto{width:auto!important}.w-full{width:100%!important}.max-w-2xl{max-width:42rem!important}.max-w-3xl{max-width:48rem!important}.max-w-7xl{max-width:80rem!important}.max-w-lg{max-width:32rem!important}.max-w-xl{max-width:36rem!important}.flex-none{flex:none!important}.flex-shrink-0{flex-shrink:0!important}.auto-cols-max{grid-auto-columns:max-content!important}.grid-flow-row{grid-auto-flow:row!important}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.place-content-center{place-content:center!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.justify-between{justify-content:space-between!important}.gap-x-6{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.gap-x-8{-moz-column-gap:2rem!important;column-gap:2rem!important}.gap-y-10{row-gap:2.5rem!important}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.5rem*var(--tw-space-y-reverse))!important}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0!important;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))!important;border-bottom-width:calc(1px*var(--tw-divide-y-reverse))!important}.divide-gray-500\/10>:not([hidden])~:not([hidden]){border-color:#6b72801a!important}.overflow-hidden{overflow:hidden!important}.overflow-y-auto{overflow-y:auto!important}.rounded-lg{border-radius:.5rem!important}.rounded-md{border-radius:.375rem!important}.rounded-xl{border-radius:.75rem!important}.bg-dxp-bg-root{background-color:var(--dxp-g-root)!important}.bg-dxp-brand{background-color:var(--dxp-g-brand)!important}.bg-gray-900\/5{background-color:#1118270d!important}.bg-red-50{--tw-bg-opacity:1!important;background-color:rgb(254 242 242/var(--tw-bg-opacity))!important}.object-contain{-o-object-fit:contain!important;object-fit:contain!important}.p-1{padding:.25rem!important}.p-1\.5{padding:.375rem!important}.p-2{padding:.5rem!important}.p-2\.5{padding:.625rem!important}.p-4{padding:1rem!important}.p-6{padding:1.5rem!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.px-3\.5{padding-left:.875rem!important;padding-right:.875rem!important}.px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-2\.5{padding-top:.625rem!important;padding-bottom:.625rem!important}.py-24{padding-top:6rem!important;padding-bottom:6rem!important}.py-6{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.pb-24{padding-bottom:6rem!important}.pt-10{padding-top:2.5rem!important}.text-center{text-align:center!important}.text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-bold{font-weight:700!important}.font-medium{font-weight:500!important}.font-semibold{font-weight:600!important}.leading-6{line-height:1.5rem!important}.leading-7{line-height:1.75rem!important}.leading-8{line-height:2rem!important}.tracking-tight{letter-spacing:-.025em!important}.text-dxp-brand-foreground{color:var(--dxp-g-brand-contrast)!important}.text-dxp-text-contrast{color:var(--dxp-g-root-contrast)!important}.text-dxp-text-contrast-2{color:var(--dxp-g-root-contrast-2)!important}.text-gray-900{--tw-text-opacity:1!important;color:rgb(17 24 39/var(--tw-text-opacity))!important}.text-red-400{--tw-text-opacity:1!important;color:rgb(248 113 113/var(--tw-text-opacity))!important}.text-yellow-700{--tw-text-opacity:1!important;color:rgb(161 98 7/var(--tw-text-opacity))!important}.text-yellow-800{--tw-text-opacity:1!important;color:rgb(133 77 14/var(--tw-text-opacity))!important}.shadow-2xl{--tw-shadow:0 25px 50px -12px #00000040!important;--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)!important}.shadow-2xl,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d!important;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)!important}.ring-1{--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(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.ring-inset{--tw-ring-inset:inset!important}.ring-gray-900\/10{--tw-ring-color:#1118271a!important}.hover\:bg-dxp-brand-1:hover{background-color:var(--dxp-g-brand-1)!important}.hover\:bg-dxp-brand-2:hover{background-color:var(--dxp-g-brand-2)!important}.hover\:bg-gray-50:hover{--tw-bg-opacity:1!important;background-color:rgb(249 250 251/var(--tw-bg-opacity))!important}.focus-visible\:outline:focus-visible{outline-style:solid!important}.focus-visible\:outline-2:focus-visible{outline-width:2px!important}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px!important}.focus-visible\:outline-dxp-brand:focus-visible{outline-color:var(--dxp-g-brand)!important}.focus-visible\:outline-dxp-brand-1:focus-visible{outline-color:var(--dxp-g-brand-1)!important}@media (min-width:640px){.sm\:mt-24{margin-top:6rem!important}.sm\:max-w-5xl{max-width:64rem!important}.sm\:max-w-sm{max-width:24rem!important}.sm\:max-w-xl{max-width:36rem!important}.sm\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))!important}.sm\:gap-x-10{-moz-column-gap:2.5rem!important;column-gap:2.5rem!important}.sm\:py-32{padding-top:8rem!important}.sm\:pb-32,.sm\:py-32{padding-bottom:8rem!important}.sm\:text-6xl{font-size:3.75rem!important;line-height:1!important}.sm\:ring-1{--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(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.sm\:ring-gray-900\/10{--tw-ring-color:#1118271a!important}}@media (min-width:768px){.md\:auto-cols-auto{grid-auto-columns:auto!important}.md\:grid-flow-col{grid-auto-flow:column!important}}@media (min-width:1024px){.lg\:-m-4{margin:-1rem!important}.lg\:mx-0{margin-left:0!important;margin-right:0!important}.lg\:ml-10{margin-left:2.5rem!important}.lg\:mr-0{margin-right:0!important}.lg\:mt-0{margin-top:0!important}.lg\:flex{display:flex!important}.lg\:hidden{display:none!important}.lg\:max-w-none{max-width:none!important}.lg\:max-w-xl{max-width:36rem!important}.lg\:flex-1{flex:1 1 0%!important}.lg\:flex-none{flex:none!important}.lg\:flex-shrink-0{flex-shrink:0!important}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))!important}.lg\:justify-end{justify-content:flex-end!important}.lg\:gap-x-12{-moz-column-gap:3rem!important;column-gap:3rem!important}.lg\:rounded-2xl{border-radius:1rem!important}.lg\:p-4{padding:1rem!important}.lg\:px-8{padding-left:2rem!important;padding-right:2rem!important}.lg\:py-40{padding-top:10rem!important;padding-bottom:10rem!important}.lg\:pt-8{padding-top:2rem!important}}@media (min-width:1280px){.xl\:ml-32{margin-left:8rem!important}} \ No newline at end of file diff --git a/expression-components/main/ui/lwc/logos/logos.html b/expression-components/main/ui/lwc/logos/logos.html new file mode 100644 index 00000000..06668f6a --- /dev/null +++ b/expression-components/main/ui/lwc/logos/logos.html @@ -0,0 +1,24 @@ + diff --git a/expression-components/main/ui/lwc/logos/logos.js b/expression-components/main/ui/lwc/logos/logos.js new file mode 100644 index 00000000..302f8946 --- /dev/null +++ b/expression-components/main/ui/lwc/logos/logos.js @@ -0,0 +1,48 @@ +import TwElement from "c/twElement"; +import evaluate from '@salesforce/apex/FormulaEvaluatorUiController.evaluate'; +import { api, wire } from "lwc"; + +export default class Logos extends TwElement { + @api expr; + + computed; + error; + + @wire(evaluate, {recordId: '', formula: '$expr'}) + evaluate({error, data}) { + if (error) { + console.error(error); + this.error = error.body.message; + } else { + this.computed = data; + this._validate(); + } + } + + get loading() { + return !this.computed && !this.error; + } + + get hasError() { + return this.error; + } + + get ready() { + return !this.loading && !this.hasError; + } + + _validate() { + if (!this.computed) { + return; + } + // Computed should contain a "title" property. + if (!("title" in this.computed)) { + this.error = 'Hero component requires a title.'; + } + + // Computed should contain a "logos" property. + if (!("logos" in this.computed)) { + this.error = 'Hero component requires a "logos" key.'; + } + } +} diff --git a/expression-components/main/ui/lwc/logos/logos.js-meta.xml b/expression-components/main/ui/lwc/logos/logos.js-meta.xml new file mode 100644 index 00000000..ebe0adb5 --- /dev/null +++ b/expression-components/main/ui/lwc/logos/logos.js-meta.xml @@ -0,0 +1,17 @@ + + + 58.0 + Logos + true + Logos + + lightningCommunity__Default + lightningCommunity__Page + + + + + + + diff --git a/expression-components/main/ui/lwc/logos/logos.svg b/expression-components/main/ui/lwc/logos/logos.svg new file mode 100644 index 00000000..4248b2a5 --- /dev/null +++ b/expression-components/main/ui/lwc/logos/logos.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + From d474ab63fdaf2f41b084ddb89fb43b0166f4dfd4 Mon Sep 17 00:00:00 2001 From: Cesar Parra Date: Sun, 8 Oct 2023 07:07:55 -0400 Subject: [PATCH 2/2] Logos - cleaning up and version release --- README.md | 38 +++++++++++++++++-- .../main/ui/lwc/logos/logos.html | 3 -- sfdx-project.json | 8 ++-- 3 files changed, 38 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 6e6348da..e83fb218 100644 --- a/README.md +++ b/README.md @@ -1183,19 +1183,19 @@ by the `Expression` language. ### Unlocked Package (`expression` namespace) -[![Install Unlocked Package in a Sandbox](assets/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04tDm0000011MfyIAE) -[![Install Unlocked Package in Production](assets/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04tDm0000011MfyIAE) +[![Install Unlocked Package in a Sandbox](assets/btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=04tDm0000011Mg8IAE) +[![Install Unlocked Package in Production](assets/btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=04tDm0000011Mg8IAE) Install with SF CLI: ```shell -sf package install --apex-compile package --wait 20 --package 04tDm0000011MfyIAE +sf package install --apex-compile package --wait 20 --package 04tDm0000011Mg8IAE ``` Install with SFDX CLI: ```shell -sfdx force:package:install --apexcompile package --wait 20 --package 04tDm0000011MfyIAE +sfdx force:package:install --apexcompile package --wait 20 --package 04tDm0000011Mg8IAE ``` ## Components @@ -1324,6 +1324,36 @@ in a community page. } ``` +### Logos + +The `Logos` component allows you to display a list of logos. It can be used +to display a list of sponsors, partners, clients, etc. + +Supports being placed in a community page. + +#### Properties + +- `Formula Expression` - The expression to evaluate. This expression should evaluate to a map with the following format: + +##### Map Format + +- `title` - The title to display. +- `logos` - List of logos to display. Each logo should be a map with the following format: + - `name` - The name of the logo. + - `src` - The URL of the image to display. + +```json +{ + "title": <>, + "logos": [ + { + "name": <>, + "src": <> + } + ] +} +``` + ## Contributing Contributions are welcome! Feel free to open an issue or submit a pull request. diff --git a/expression-components/main/ui/lwc/logos/logos.html b/expression-components/main/ui/lwc/logos/logos.html index 06668f6a..7851ed8c 100644 --- a/expression-components/main/ui/lwc/logos/logos.html +++ b/expression-components/main/ui/lwc/logos/logos.html @@ -3,9 +3,6 @@

{computed.title}

- - -
diff --git a/sfdx-project.json b/sfdx-project.json index dd598bbb..38e49aad 100644 --- a/sfdx-project.json +++ b/sfdx-project.json @@ -10,8 +10,8 @@ { "path": "expression-components", "package": "Expression Components", - "versionName": "Version 0.2", - "versionNumber": "0.2.0.NEXT", + "versionName": "Version 0.3", + "versionNumber": "0.3.0.NEXT", "default": false, "dependencies": [ { @@ -33,7 +33,7 @@ "Expression (Unlocked)": "0HoDm000000XZKSKA4", "Expression Components": "0HoDm000000XZKhKAO", "Expression (Unlocked)@1.11.0-1": "04tDm0000011MfoIAE", - "Expression Components@0.1.0-2": "04tDm0000011MftIAE", - "Expression Components@0.2.0-1": "04tDm0000011MfyIAE" + "Expression Components@0.2.0-1": "04tDm0000011MfyIAE", + "Expression Components@0.3.0-1": "04tDm0000011Mg8IAE" } } \ No newline at end of file