From b576ce33fc1ac89607b3e4c63cb55cabe45704e4 Mon Sep 17 00:00:00 2001 From: Cesar Parra Date: Wed, 4 Oct 2023 09:36:35 -0400 Subject: [PATCH 1/6] WIP --- .gitignore | 1 + .../main/staticresources/tw/css/main.css | 2 +- .../main/ui/lwc/hero/hero.html | 21 +++++++++++++++++++ .../main/ui/lwc/hero/hero.js | 6 ++++++ .../main/ui/lwc/hero/hero.js-meta.xml | 17 +++++++++++++++ .../main/ui/lwc/hero/hero.svg | 15 +++++++++++++ sfdx-project.json | 6 +++++- tailwind.config.js | 1 + 8 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 expression-components/main/ui/lwc/hero/hero.html create mode 100644 expression-components/main/ui/lwc/hero/hero.js create mode 100644 expression-components/main/ui/lwc/hero/hero.js-meta.xml create mode 100644 expression-components/main/ui/lwc/hero/hero.svg diff --git a/.gitignore b/.gitignore index 1f4ec070..e77c7302 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,4 @@ $RECYCLE.BIN/ **/venv/ /force-app/main/default/profiles/ /IlluminatedCloud/Expression/OfflineSymbolTable.zip +/src-pull/ diff --git a/expression-components/main/staticresources/tw/css/main.css b/expression-components/main/staticresources/tw/css/main.css index 1ed0bbda..63c63814 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;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.right-0{right:0}.top-0{top:0}.z-50{z-index:50}.-m-1{margin:-.25rem}.-m-1\.5{margin:-.375rem}.-m-2{margin:-.5rem}.-m-2\.5{margin:-.625rem}.-mx-3{margin-left:-.75rem;margin-right:-.75rem}.-my-6{margin-top:-1.5rem;margin-bottom:-1.5rem}.ml-3{margin-left:.75rem}.mt-2{margin-top:.5rem}.mt-6{margin-top:1.5rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.flow-root{display:flow-root}.hidden{display:none}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-auto{width:auto}.w-full{width:100%}.flex-shrink-0{flex-shrink:0}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem*var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px*var(--tw-divide-y-reverse))}.divide-gray-500\/10>:not([hidden])~:not([hidden]){border-color:#6b72801a}.overflow-y-auto{overflow-y:auto}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.bg-dxp-brand{background-color:var(--dxp-g-brand)}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-dxp-bg-root{background-color:var(--dxp-g-root)}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.text-dxp-text-contrast{color:var(--dxp-g-root-contrast)}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity:1;color:rgb(133 77 14/var(--tw-text-opacity))}.text-dxp-brand-foreground{color:var(--dxp-g-brand-contrast)}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\:bg-indigo-500:hover{--tw-bg-opacity:1;background-color:rgb(99 102 241/var(--tw-bg-opacity))}.hover\:bg-dxp-brand-1:hover{background-color:var(--dxp-g-brand-1)}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:outline-2:focus-visible{outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-indigo-600:focus-visible{outline-color:#4f46e5}.focus-visible\:outline-dxp-brand-1:focus-visible{outline-color:var(--dxp-g-brand-1)}@media (min-width:640px){.sm\:max-w-sm{max-width:24rem}.sm\:ring-1{--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(1px + 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)}.sm\:ring-gray-900\/10{--tw-ring-color:#1118271a}}@media (min-width:1024px){.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:flex-1{flex:1 1 0%}.lg\:justify-end{justify-content:flex-end}.lg\:gap-x-12{-moz-column-gap:3rem;column-gap:3rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}} \ 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}.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}.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-indigo-600{background-color:rgb(79 70 229/var(--tw-bg-opacity))!important}.bg-indigo-600,.bg-red-50{--tw-bg-opacity:1!important}.bg-red-50{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-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{color:rgb(248 113 113/var(--tw-text-opacity))!important}.text-red-400,.text-white{--tw-text-opacity:1!important}.text-white{color:rgb(255 255 255/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-gray-50:hover{--tw-bg-opacity:1!important;background-color:rgb(249 250 251/var(--tw-bg-opacity))!important}.hover\:bg-indigo-500:hover{--tw-bg-opacity:1!important;background-color:rgb(99 102 241/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-1:focus-visible{outline-color:var(--dxp-g-brand-1)!important}.focus-visible\:outline-indigo-600:focus-visible{outline-color:#4f46e5!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 diff --git a/expression-components/main/ui/lwc/hero/hero.html b/expression-components/main/ui/lwc/hero/hero.html new file mode 100644 index 00000000..d708c2cd --- /dev/null +++ b/expression-components/main/ui/lwc/hero/hero.html @@ -0,0 +1,21 @@ + diff --git a/expression-components/main/ui/lwc/hero/hero.js b/expression-components/main/ui/lwc/hero/hero.js new file mode 100644 index 00000000..84b134c0 --- /dev/null +++ b/expression-components/main/ui/lwc/hero/hero.js @@ -0,0 +1,6 @@ +import TwElement from "c/twElement"; +import {api} from "lwc"; + +export default class Hero extends TwElement { + @api expr; +} diff --git a/expression-components/main/ui/lwc/hero/hero.js-meta.xml b/expression-components/main/ui/lwc/hero/hero.js-meta.xml new file mode 100644 index 00000000..3cd2c5af --- /dev/null +++ b/expression-components/main/ui/lwc/hero/hero.js-meta.xml @@ -0,0 +1,17 @@ + + + 58.0 + Hero + true + Hero + + lightningCommunity__Default + lightningCommunity__Page + + + + + + + diff --git a/expression-components/main/ui/lwc/hero/hero.svg b/expression-components/main/ui/lwc/hero/hero.svg new file mode 100644 index 00000000..4248b2a5 --- /dev/null +++ b/expression-components/main/ui/lwc/hero/hero.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/sfdx-project.json b/sfdx-project.json index 4a8bae00..3c2c0544 100644 --- a/sfdx-project.json +++ b/sfdx-project.json @@ -5,7 +5,7 @@ "package": "Expression (Unlocked)", "versionName": "Version 1.11", "versionNumber": "1.11.0.NEXT", - "default": true + "default": false }, { "path": "expression-components", @@ -19,6 +19,10 @@ "versionNumber": "1.11.0.LATEST" } ] + }, + { + "path": "src-pull", + "default": true } ], "name": "Expression", diff --git a/tailwind.config.js b/tailwind.config.js index 8ae4fe2e..00b57e46 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,6 +1,7 @@ /** @type {import('tailwindcss').Config} */ module.exports = { content: ["./expression-components/**/*.{html,js}"], + important: true, theme: { extend: { colors: { From fe658892f8df87cedbcb92eb9f7b1d9ee9b123e4 Mon Sep 17 00:00:00 2001 From: Cesar Parra Date: Wed, 4 Oct 2023 09:54:16 -0400 Subject: [PATCH 2/6] Nav Bar should respect colors. --- expression-components/main/staticresources/tw/css/main.css | 2 +- expression-components/main/ui/lwc/hero/hero.html | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/expression-components/main/staticresources/tw/css/main.css b/expression-components/main/staticresources/tw/css/main.css index 63c63814..5adc2d62 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}.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-indigo-600{background-color:rgb(79 70 229/var(--tw-bg-opacity))!important}.bg-indigo-600,.bg-red-50{--tw-bg-opacity:1!important}.bg-red-50{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-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{color:rgb(248 113 113/var(--tw-text-opacity))!important}.text-red-400,.text-white{--tw-text-opacity:1!important}.text-white{color:rgb(255 255 255/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-gray-50:hover{--tw-bg-opacity:1!important;background-color:rgb(249 250 251/var(--tw-bg-opacity))!important}.hover\:bg-indigo-500:hover{--tw-bg-opacity:1!important;background-color:rgb(99 102 241/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-1:focus-visible{outline-color:var(--dxp-g-brand-1)!important}.focus-visible\:outline-indigo-600:focus-visible{outline-color:#4f46e5!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}.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}.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-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{color:rgb(248 113 113/var(--tw-text-opacity))!important}.text-red-400,.text-white{--tw-text-opacity:1!important}.text-white{color:rgb(255 255 255/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 diff --git a/expression-components/main/ui/lwc/hero/hero.html b/expression-components/main/ui/lwc/hero/hero.html index d708c2cd..467400e7 100644 --- a/expression-components/main/ui/lwc/hero/hero.html +++ b/expression-components/main/ui/lwc/hero/hero.html @@ -5,8 +5,9 @@

Deploy to the cloud with confidence

Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui lorem cupidatat commodo. Elit sunt amet fugiat veniam occaecat fugiat aliqua.

From 24f8e90ff2470235cc4eb50582eec7f2aae4f564 Mon Sep 17 00:00:00 2001 From: Cesar Parra Date: Wed, 4 Oct 2023 16:51:44 -0400 Subject: [PATCH 3/6] Implementing Expression evaluator so that the Nav Bar takes its information out of the expression result --- .../main/ui/lwc/hero/hero.html | 24 ++++++---- .../main/ui/lwc/hero/hero.js | 47 ++++++++++++++++++- .../main/ui/lwc/navBar/navBar.html | 6 ++- 3 files changed, 67 insertions(+), 10 deletions(-) diff --git a/expression-components/main/ui/lwc/hero/hero.html b/expression-components/main/ui/lwc/hero/hero.html index 467400e7..60104e95 100644 --- a/expression-components/main/ui/lwc/hero/hero.html +++ b/expression-components/main/ui/lwc/hero/hero.html @@ -1,22 +1,30 @@ diff --git a/expression-components/main/ui/lwc/hero/hero.js b/expression-components/main/ui/lwc/hero/hero.js index 84b134c0..fa51b3ee 100644 --- a/expression-components/main/ui/lwc/hero/hero.js +++ b/expression-components/main/ui/lwc/hero/hero.js @@ -1,6 +1,51 @@ import TwElement from "c/twElement"; -import {api} from "lwc"; +import evaluate from '@salesforce/apex/FormulaEvaluatorUiController.evaluate'; +import { api, wire } from "lwc"; export default class Hero 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(); + } + } + + // callToAction() { + // window.open(this.computed.callToAction.url, '_self'); + // } + // + // secondaryAction() { + // window.open(this.computed.secondaryAction.url, '_self'); + // } + + _validate() { + if (!this.computed) { + return; + } + // Computed should contain a "title" property. + if (!("title" in this.computed)) { + this.error = 'Hero component requires a title.'; + } + } + + get loading() { + return !this.computed && !this.error; + } + + get hasError() { + return this.error; + } + + get ready() { + return !this.loading && !this.hasError; + } } diff --git a/expression-components/main/ui/lwc/navBar/navBar.html b/expression-components/main/ui/lwc/navBar/navBar.html index 621b522a..dc4cac2f 100644 --- a/expression-components/main/ui/lwc/navBar/navBar.html +++ b/expression-components/main/ui/lwc/navBar/navBar.html @@ -21,7 +21,11 @@