@proximus/lavender-carousel 2.0.0-alpha.226 → 2.0.0-alpha.228
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +172 -78
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AttributeBreakpointHandlerDelegate as e, PxElement as t, WithExtraAttributes as n, accessibilityAttributes as r, backgroundColorValues as i, booleanPropertyToAttributeSetter as a, checkName as o, createTemplate as s, gapValues as c, iconSizeValuesKC as l, log as u, propertyToAttributeSetter as d, renderTemplate as f } from "@proximus/lavender-common";
|
|
2
2
|
//#region src/carousel.css?inline
|
|
3
|
-
var p = ":host{display:block}:host *{box-sizing:border-box}:host{--px-carousel-visible-items:1;--px-carousel-gap-default:var(--px-spacing-default-desktop)}:host([visible-items=\"1\"]){--px-carousel-visible-items:1}:host([visible-items=\"2\"]){--px-carousel-visible-items:2}:host([visible-items=\"3\"]){--px-carousel-visible-items:3}:host([visible-items=\"4\"]){--px-carousel-visible-items:4}:host([visible-items=\"5\"]){--px-carousel-visible-items:5}:host([visible-items=\"6\"]){--px-carousel-visible-items:6}:host([visible-items=\"7\"]){--px-carousel-visible-items:7}:host([visible-items=\"8\"]){--px-carousel-visible-items:8}:host([visible-items=\"9\"]){--px-carousel-visible-items:9}:host([visible-items--mobile=\"1\"]){--px-carousel-visible-items--mobile:1}:host([visible-items--mobile=\"2\"]){--px-carousel-visible-items--mobile:2}:host([visible-items--mobile=\"3\"]){--px-carousel-visible-items--mobile:3}:host([visible-items--mobile=\"4\"]){--px-carousel-visible-items--mobile:4}:host([visible-items--mobile=\"5\"]){--px-carousel-visible-items--mobile:5}:host([visible-items--mobile=\"6\"]){--px-carousel-visible-items--mobile:6}:host([visible-items--mobile=\"7\"]){--px-carousel-visible-items--mobile:7}:host([visible-items--mobile=\"8\"]){--px-carousel-visible-items--mobile:8}:host([visible-items--mobile=\"9\"]){--px-carousel-visible-items--mobile:9}:host([visible-items--tablet=\"1\"]){--px-carousel-visible-items--tablet:1}:host([visible-items--tablet=\"2\"]){--px-carousel-visible-items--tablet:2}:host([visible-items--tablet=\"3\"]){--px-carousel-visible-items--tablet:3}:host([visible-items--tablet=\"4\"]){--px-carousel-visible-items--tablet:4}:host([visible-items--tablet=\"5\"]){--px-carousel-visible-items--tablet:5}:host([visible-items--tablet=\"6\"]){--px-carousel-visible-items--tablet:6}:host([visible-items--tablet=\"7\"]){--px-carousel-visible-items--tablet:7}:host([visible-items--tablet=\"8\"]){--px-carousel-visible-items--tablet:8}:host([visible-items--tablet=\"9\"]){--px-carousel-visible-items--tablet:9}:host([visible-items--laptop=\"1\"]){--px-carousel-visible-items--laptop:1}:host([visible-items--laptop=\"2\"]){--px-carousel-visible-items--laptop:2}:host([visible-items--laptop=\"3\"]){--px-carousel-visible-items--laptop:3}:host([visible-items--laptop=\"4\"]){--px-carousel-visible-items--laptop:4}:host([visible-items--laptop=\"5\"]){--px-carousel-visible-items--laptop:5}:host([visible-items--laptop=\"6\"]){--px-carousel-visible-items--laptop:6}:host([visible-items--laptop=\"7\"]){--px-carousel-visible-items--laptop:7}:host([visible-items--laptop=\"8\"]){--px-carousel-visible-items--laptop:8}:host([visible-items--laptop=\"9\"]){--px-carousel-visible-items--laptop:9}:host([visible-items--desktop=\"1\"]){--px-carousel-visible-items--desktop:1}:host([visible-items--desktop=\"2\"]){--px-carousel-visible-items--desktop:2}:host([visible-items--desktop=\"3\"]){--px-carousel-visible-items--desktop:3}:host([visible-items--desktop=\"4\"]){--px-carousel-visible-items--desktop:4}:host([visible-items--desktop=\"5\"]){--px-carousel-visible-items--desktop:5}:host([visible-items--desktop=\"6\"]){--px-carousel-visible-items--desktop:6}:host([visible-items--desktop=\"7\"]){--px-carousel-visible-items--desktop:7}:host([visible-items--desktop=\"8\"]){--px-carousel-visible-items--desktop:8}:host([visible-items--desktop=\"9\"]){--px-carousel-visible-items--desktop:9}:host([gap=default]){--px-carousel-gap-default:var(--px-spacing-default-desktop)}:host([gap=s]){--px-carousel-gap-default:var(--px-spacing-s-desktop)}:host([gap=xs]){--px-carousel-gap-default:var(--px-spacing-xs-desktop)}:host([gap=\"2xs\"]){--px-carousel-gap-default:var(--px-spacing-2xs-desktop)}:host([gap=l]){--px-carousel-gap-default:var(--px-spacing-l-desktop)}:host([gap=none]){--px-carousel-gap-default:0}:host([gap--mobile=default]){--px-carousel-gap-default--mobile:var(--px-spacing-default-mobile)}:host([gap--mobile=s]){--px-carousel-gap-default--mobile:var(--px-spacing-s-mobile)}:host([gap--mobile=xs]){--px-carousel-gap-default--mobile:var(--px-spacing-xs-mobile)}:host([gap--mobile=\"2xs\"]){--px-carousel-gap-default--mobile:var(--px-spacing-2xs-mobile)}:host([gap--mobile=l]){--px-carousel-gap-default--mobile:var(--px-spacing-l-mobile)}:host([gap--mobile=none]){--px-carousel-gap-default--mobile:0}:host([gap--tablet=default]){--px-carousel-gap-default--tablet:var(--px-spacing-default-tablet)}:host([gap--tablet=s]){--px-carousel-gap-default--tablet:var(--px-spacing-s-tablet)}:host([gap--tablet=xs]){--px-carousel-gap-default--tablet:var(--px-spacing-xs-tablet)}:host([gap--tablet=\"2xs\"]){--px-carousel-gap-default--tablet:var(--px-spacing-2xs-tablet)}:host([gap--tablet=l]){--px-carousel-gap-default--tablet:var(--px-spacing-l-tablet)}:host([gap--tablet=none]){--px-carousel-gap-default--tablet:0}:host([gap--laptop=default]){--px-carousel-gap-default--laptop:var(--px-spacing-default-laptop)}:host([gap--laptop=s]){--px-carousel-gap-default--laptop:var(--px-spacing-s-laptop)}:host([gap--laptop=xs]){--px-carousel-gap-default--laptop:var(--px-spacing-xs-laptop)}:host([gap--laptop=\"2xs\"]){--px-carousel-gap-default--laptop:var(--px-spacing-2xs-laptop)}:host([gap--laptop=l]){--px-carousel-gap-default--laptop:var(--px-spacing-l-laptop)}:host([gap--laptop=none]){--px-carousel-gap-default--laptop:0}:host([gap--desktop=default]){--px-carousel-gap-default--desktop:var(--px-spacing-default-desktop)}:host([gap--desktop=s]){--px-carousel-gap-default--desktop:var(--px-spacing-s-desktop)}:host([gap--desktop=xs]){--px-carousel-gap-default--desktop:var(--px-spacing-xs-desktop)}:host([gap--desktop=\"2xs\"]){--px-carousel-gap-default--desktop:var(--px-spacing-2xs-desktop)}:host([gap--desktop=l]){--px-carousel-gap-default--desktop:var(--px-spacing-l-desktop)}:host([gap--desktop=none]){--px-carousel-gap-default--desktop:0}.carousel{scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;gap:var(--px-carousel-gap-default--desktop,var(--px-carousel-gap-default));display:flex;overflow:auto hidden}@media screen and (width<=48rem){.carousel{gap:var(--px-carousel-gap-default--mobile,var(--px-carousel-gap-default))}}@media screen and (width>=48.0625rem) and (width<=64rem){.carousel{gap:var(--px-carousel-gap-default--tablet,var(--px-carousel-gap-default))}}@media screen and (width>=64.0625rem) and (width<=90rem){.carousel{gap:var(--px-carousel-gap-default--laptop,var(--px-carousel-gap-default))}}#appleseed-container{margin-inline:var(--px-spacing-s-mobile)}@media screen and (width<=48rem){#button-icons{display:none}}.carousel::-webkit-scrollbar{display:none}", m = "::slotted(*){border-radius:var(--px-radius-main);height:100%}.carousel-item{height:100%}:host{scroll-snap-align:start;border-radius:var(--px-radius-main);--visible-items:var(--px-carousel-visible-items--desktop,var(--px-carousel-visible-items,1));--spacing:var(--px-carousel-gap-default--desktop,var(--px-carousel-gap-default,var(--px-spacing-s-desktop)));min-width:calc((100% - max(var(--visible-items), 2) * var(--spacing)) / var(--visible-items) - 64px / max(var(--visible-items), 2));background:#fff;justify-content:center;align-items:center;overflow:hidden}@media screen and (width<=48rem){:host{--visible-items:var(--px-carousel-visible-items--mobile,var(--px-carousel-visible-items,1));--spacing:var(--px-carousel-gap-default--mobile,var(--px-carousel-gap-default,var(--px-spacing-s-mobile)))}}@media screen and (width>=48.0625rem) and (width<=64rem){:host{--visible-items:var(--px-carousel-visible-items--tablet,var(--px-carousel-visible-items,1));--spacing:var(--px-carousel-gap-default--tablet,var(--px-carousel-gap-default,var(--px-spacing-s-desktop)))}}@media screen and (width>=64.0625rem) and (width<=90rem){:host{--visible-items:var(--px-carousel-visible-items--laptop,var(--px-carousel-visible-items,1));--spacing:var(--px-carousel-gap-default--laptop,var(--px-carousel-gap-default,var(--px-spacing-s-desktop)))}}@media screen and (width<=48rem){:host{scroll-snap-align:center;flex:1 0 var(--px-carousel-min-width-mobile,var(--px-carousel-min-width-all-mobile))!important}}@media screen and (width>=48rem) and (width<=64rem){:host{flex:1 0 var(--px-carousel-min-width-tablet,var(--px-carousel-min-width-all-tablet))!important}}", h = ":host{--host-gap--mobile:var(--px-spacing-none-mobile);--host-gap--tablet:var(--px-spacing-none-tablet);--host-gap--laptop:var(--px-spacing-none-desktop);--host-gap--desktop:var(--px-spacing-none-desktop);--overflow-x-all:visible;--overflow-x-all-mobile:initial;--overflow-x-all-tablet:initial;--overflow-x-all-laptop:initial;--overflow-x-all-desktop:initial;display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{--flex-direction--mobile-value:row;--flex-direction--tablet-value:row;--flex-direction--laptop-value:row;--flex-direction--desktop-value:row;--flex-gap--mobile-value:var(--px-spacing-none-mobile);--flex-gap--tablet-value:var(--px-spacing-none-tablet);--flex-gap--laptop-value:var(--px-spacing-none-desktop);--flex-gap--desktop-value:var(--px-spacing-none-desktop);--flex-align-items--mobile-value:stretch;--flex-align-items--tablet-value:stretch;--flex-align-items--laptop-value:stretch;--flex-align-items--desktop-value:stretch;--flex-justify-content--mobile-value:flex-start;--flex-justify-content--tablet-value:flex-start;--flex-justify-content--laptop-value:flex-start;--flex-justify-content--desktop-value:flex-start;--flex-wrap--mobile-value:nowrap;--flex-wrap--tablet-value:nowrap;--flex-wrap--laptop-value:nowrap;--flex-wrap--desktop-value:nowrap;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);width:100%;height:100%;overflow-x:var(--overflow-x-all);display:flex}@media screen and (width<=47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=48rem){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (width>=48rem) and (width<=64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=64.0625rem){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (width>=64.0625rem) and (width<=90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop,var(--overflow-x-all))}}@media screen and (width>=90.0625rem){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop,var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}:host(px-vstack) .flex-container{--flex-direction--mobile-value:column!important;--flex-direction--tablet-value:column!important;--flex-direction--laptop-value:column!important;--flex-direction--desktop-value:column!important}:host(px-hstack) .flex-container{--flex-direction--mobile-value:row!important;--flex-direction--tablet-value:row!important;--flex-direction--laptop-value:row!important;--flex-direction--desktop-value:row!important}", g = new CSSStyleSheet();
|
|
3
|
+
var p = ":host{display:block}:host *{box-sizing:border-box}:host{--px-carousel-visible-items:1;--px-carousel-gap-default:var(--px-spacing-default-desktop)}:host([visible-items=\"1\"]){--px-carousel-visible-items:1}:host([visible-items=\"2\"]){--px-carousel-visible-items:2}:host([visible-items=\"3\"]){--px-carousel-visible-items:3}:host([visible-items=\"4\"]){--px-carousel-visible-items:4}:host([visible-items=\"5\"]){--px-carousel-visible-items:5}:host([visible-items=\"6\"]){--px-carousel-visible-items:6}:host([visible-items=\"7\"]){--px-carousel-visible-items:7}:host([visible-items=\"8\"]){--px-carousel-visible-items:8}:host([visible-items=\"9\"]){--px-carousel-visible-items:9}:host([visible-items--mobile=\"1\"]){--px-carousel-visible-items--mobile:1}:host([visible-items--mobile=\"2\"]){--px-carousel-visible-items--mobile:2}:host([visible-items--mobile=\"3\"]){--px-carousel-visible-items--mobile:3}:host([visible-items--mobile=\"4\"]){--px-carousel-visible-items--mobile:4}:host([visible-items--mobile=\"5\"]){--px-carousel-visible-items--mobile:5}:host([visible-items--mobile=\"6\"]){--px-carousel-visible-items--mobile:6}:host([visible-items--mobile=\"7\"]){--px-carousel-visible-items--mobile:7}:host([visible-items--mobile=\"8\"]){--px-carousel-visible-items--mobile:8}:host([visible-items--mobile=\"9\"]){--px-carousel-visible-items--mobile:9}:host([visible-items--tablet=\"1\"]){--px-carousel-visible-items--tablet:1}:host([visible-items--tablet=\"2\"]){--px-carousel-visible-items--tablet:2}:host([visible-items--tablet=\"3\"]){--px-carousel-visible-items--tablet:3}:host([visible-items--tablet=\"4\"]){--px-carousel-visible-items--tablet:4}:host([visible-items--tablet=\"5\"]){--px-carousel-visible-items--tablet:5}:host([visible-items--tablet=\"6\"]){--px-carousel-visible-items--tablet:6}:host([visible-items--tablet=\"7\"]){--px-carousel-visible-items--tablet:7}:host([visible-items--tablet=\"8\"]){--px-carousel-visible-items--tablet:8}:host([visible-items--tablet=\"9\"]){--px-carousel-visible-items--tablet:9}:host([visible-items--laptop=\"1\"]){--px-carousel-visible-items--laptop:1}:host([visible-items--laptop=\"2\"]){--px-carousel-visible-items--laptop:2}:host([visible-items--laptop=\"3\"]){--px-carousel-visible-items--laptop:3}:host([visible-items--laptop=\"4\"]){--px-carousel-visible-items--laptop:4}:host([visible-items--laptop=\"5\"]){--px-carousel-visible-items--laptop:5}:host([visible-items--laptop=\"6\"]){--px-carousel-visible-items--laptop:6}:host([visible-items--laptop=\"7\"]){--px-carousel-visible-items--laptop:7}:host([visible-items--laptop=\"8\"]){--px-carousel-visible-items--laptop:8}:host([visible-items--laptop=\"9\"]){--px-carousel-visible-items--laptop:9}:host([visible-items--desktop=\"1\"]){--px-carousel-visible-items--desktop:1}:host([visible-items--desktop=\"2\"]){--px-carousel-visible-items--desktop:2}:host([visible-items--desktop=\"3\"]){--px-carousel-visible-items--desktop:3}:host([visible-items--desktop=\"4\"]){--px-carousel-visible-items--desktop:4}:host([visible-items--desktop=\"5\"]){--px-carousel-visible-items--desktop:5}:host([visible-items--desktop=\"6\"]){--px-carousel-visible-items--desktop:6}:host([visible-items--desktop=\"7\"]){--px-carousel-visible-items--desktop:7}:host([visible-items--desktop=\"8\"]){--px-carousel-visible-items--desktop:8}:host([visible-items--desktop=\"9\"]){--px-carousel-visible-items--desktop:9}:host([gap=default]){--px-carousel-gap-default:var(--px-spacing-default-desktop)}:host([gap=s]){--px-carousel-gap-default:var(--px-spacing-s-desktop)}:host([gap=xs]){--px-carousel-gap-default:var(--px-spacing-xs-desktop)}:host([gap=\"2xs\"]){--px-carousel-gap-default:var(--px-spacing-2xs-desktop)}:host([gap=l]){--px-carousel-gap-default:var(--px-spacing-l-desktop)}:host([gap=none]){--px-carousel-gap-default:0}:host([gap--mobile=default]){--px-carousel-gap-default--mobile:var(--px-spacing-default-mobile)}:host([gap--mobile=s]){--px-carousel-gap-default--mobile:var(--px-spacing-s-mobile)}:host([gap--mobile=xs]){--px-carousel-gap-default--mobile:var(--px-spacing-xs-mobile)}:host([gap--mobile=\"2xs\"]){--px-carousel-gap-default--mobile:var(--px-spacing-2xs-mobile)}:host([gap--mobile=l]){--px-carousel-gap-default--mobile:var(--px-spacing-l-mobile)}:host([gap--mobile=none]){--px-carousel-gap-default--mobile:0}:host([gap--tablet=default]){--px-carousel-gap-default--tablet:var(--px-spacing-default-tablet)}:host([gap--tablet=s]){--px-carousel-gap-default--tablet:var(--px-spacing-s-tablet)}:host([gap--tablet=xs]){--px-carousel-gap-default--tablet:var(--px-spacing-xs-tablet)}:host([gap--tablet=\"2xs\"]){--px-carousel-gap-default--tablet:var(--px-spacing-2xs-tablet)}:host([gap--tablet=l]){--px-carousel-gap-default--tablet:var(--px-spacing-l-tablet)}:host([gap--tablet=none]){--px-carousel-gap-default--tablet:0}:host([gap--laptop=default]){--px-carousel-gap-default--laptop:var(--px-spacing-default-laptop)}:host([gap--laptop=s]){--px-carousel-gap-default--laptop:var(--px-spacing-s-laptop)}:host([gap--laptop=xs]){--px-carousel-gap-default--laptop:var(--px-spacing-xs-laptop)}:host([gap--laptop=\"2xs\"]){--px-carousel-gap-default--laptop:var(--px-spacing-2xs-laptop)}:host([gap--laptop=l]){--px-carousel-gap-default--laptop:var(--px-spacing-l-laptop)}:host([gap--laptop=none]){--px-carousel-gap-default--laptop:0}:host([gap--desktop=default]){--px-carousel-gap-default--desktop:var(--px-spacing-default-desktop)}:host([gap--desktop=s]){--px-carousel-gap-default--desktop:var(--px-spacing-s-desktop)}:host([gap--desktop=xs]){--px-carousel-gap-default--desktop:var(--px-spacing-xs-desktop)}:host([gap--desktop=\"2xs\"]){--px-carousel-gap-default--desktop:var(--px-spacing-2xs-desktop)}:host([gap--desktop=l]){--px-carousel-gap-default--desktop:var(--px-spacing-l-desktop)}:host([gap--desktop=none]){--px-carousel-gap-default--desktop:0}.carousel{scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;gap:var(--px-carousel-gap-default--desktop,var(--px-carousel-gap-default));display:flex;overflow:auto hidden}@media screen and (width<=48rem){.carousel{gap:var(--px-carousel-gap-default--mobile,var(--px-carousel-gap-default))}}@media screen and (width>=48.0625rem) and (width<=64rem){.carousel{gap:var(--px-carousel-gap-default--tablet,var(--px-carousel-gap-default))}}@media screen and (width>=64.0625rem) and (width<=90rem){.carousel{gap:var(--px-carousel-gap-default--laptop,var(--px-carousel-gap-default))}}#appleseed-container{margin-inline:var(--px-spacing-s-mobile)}@media screen and (width<=48rem){#button-icons{display:none}}.carousel::-webkit-scrollbar{display:none}", m = "::slotted(*){border-radius:var(--px-radius-main);height:100%}.carousel-item{height:100%}:host{scroll-snap-align:start;border-radius:var(--px-radius-main);--visible-items:var(--px-carousel-visible-items--desktop,var(--px-carousel-visible-items,1));--spacing:var(--px-carousel-gap-default--desktop,var(--px-carousel-gap-default,var(--px-spacing-s-desktop)));min-width:calc((100% - max(var(--visible-items), 2) * var(--spacing)) / var(--visible-items) - 64px / max(var(--visible-items), 2));background:#fff;justify-content:center;align-items:center;overflow:hidden}@media screen and (width<=48rem){:host{--visible-items:var(--px-carousel-visible-items--mobile,var(--px-carousel-visible-items,1));--spacing:var(--px-carousel-gap-default--mobile,var(--px-carousel-gap-default,var(--px-spacing-s-mobile)))}}@media screen and (width>=48.0625rem) and (width<=64rem){:host{--visible-items:var(--px-carousel-visible-items--tablet,var(--px-carousel-visible-items,1));--spacing:var(--px-carousel-gap-default--tablet,var(--px-carousel-gap-default,var(--px-spacing-s-desktop)))}}@media screen and (width>=64.0625rem) and (width<=90rem){:host{--visible-items:var(--px-carousel-visible-items--laptop,var(--px-carousel-visible-items,1));--spacing:var(--px-carousel-gap-default--laptop,var(--px-carousel-gap-default,var(--px-spacing-s-desktop)))}}@media screen and (width<=48rem){:host{scroll-snap-align:center;flex:1 0 var(--px-carousel-min-width-mobile,var(--px-carousel-min-width-all-mobile))!important}}@media screen and (width>=48rem) and (width<=64rem){:host{flex:1 0 var(--px-carousel-min-width-tablet,var(--px-carousel-min-width-all-tablet))!important}}", h = ":host{--host-gap--mobile:var(--px-spacing-none-mobile);--host-gap--tablet:var(--px-spacing-none-tablet);--host-gap--laptop:var(--px-spacing-none-desktop);--host-gap--desktop:var(--px-spacing-none-desktop);--overflow-x-all:visible;--overflow-x-all-mobile:initial;--overflow-x-all-tablet:initial;--overflow-x-all-laptop:initial;--overflow-x-all-desktop:initial;display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{--flex-direction--mobile-value:row;--flex-direction--tablet-value:row;--flex-direction--laptop-value:row;--flex-direction--desktop-value:row;--flex-gap--mobile-value:var(--px-spacing-none-mobile);--flex-gap--tablet-value:var(--px-spacing-none-tablet);--flex-gap--laptop-value:var(--px-spacing-none-desktop);--flex-gap--desktop-value:var(--px-spacing-none-desktop);--flex-align-items--mobile-value:stretch;--flex-align-items--tablet-value:stretch;--flex-align-items--laptop-value:stretch;--flex-align-items--desktop-value:stretch;--flex-justify-content--mobile-value:flex-start;--flex-justify-content--tablet-value:flex-start;--flex-justify-content--laptop-value:flex-start;--flex-justify-content--desktop-value:flex-start;--flex-wrap--mobile-value:nowrap;--flex-wrap--tablet-value:nowrap;--flex-wrap--laptop-value:nowrap;--flex-wrap--desktop-value:nowrap;--flex-overflow-y--mobile-value:visible;--flex-overflow-y--tablet-value:visible;--flex-overflow-y--laptop-value:visible;--flex-overflow-y--desktop-value:visible;--flex-max-height--mobile-value:none;--flex-max-height--tablet-value:none;--flex-max-height--laptop-value:none;--flex-max-height--desktop-value:none;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);width:100%;height:100%;overflow-x:var(--overflow-x-all);overflow-y:var(--flex-overflow-y--mobile-value);max-height:var(--flex-max-height--mobile-value);display:flex}@media screen and (width<=47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=48rem){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value);overflow-y:var(--flex-overflow-y--tablet-value);max-height:var(--flex-max-height--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (width>=48rem) and (width<=64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=64.0625rem){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value);overflow-y:var(--flex-overflow-y--laptop-value);max-height:var(--flex-max-height--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (width>=64.0625rem) and (width<=90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop,var(--overflow-x-all))}}@media screen and (width>=90.0625rem){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-y:var(--flex-overflow-y--desktop-value);max-height:var(--flex-max-height--desktop-value);overflow-x:var(--overflow-x-all-desktop,var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}:host(px-vstack) .flex-container{--flex-direction--mobile-value:column!important;--flex-direction--tablet-value:column!important;--flex-direction--laptop-value:column!important;--flex-direction--desktop-value:column!important}:host(px-hstack) .flex-container{--flex-direction--mobile-value:row!important;--flex-direction--tablet-value:row!important;--flex-direction--laptop-value:row!important;--flex-direction--desktop-value:row!important}", g = new CSSStyleSheet();
|
|
4
4
|
g.replaceSync(h);
|
|
5
5
|
var _ = document.createElement("template");
|
|
6
6
|
_.innerHTML = "<div class=\"flex-container\"><slot></slot></div>";
|
|
@@ -81,7 +81,17 @@ var v = [
|
|
|
81
81
|
"overflow-x--mobile",
|
|
82
82
|
"overflow-x--tablet",
|
|
83
83
|
"overflow-x--laptop",
|
|
84
|
-
"overflow-x--desktop"
|
|
84
|
+
"overflow-x--desktop",
|
|
85
|
+
"overflow-y",
|
|
86
|
+
"overflow-y--mobile",
|
|
87
|
+
"overflow-y--tablet",
|
|
88
|
+
"overflow-y--laptop",
|
|
89
|
+
"overflow-y--desktop",
|
|
90
|
+
"max-height",
|
|
91
|
+
"max-height--mobile",
|
|
92
|
+
"max-height--tablet",
|
|
93
|
+
"max-height--laptop",
|
|
94
|
+
"max-height--desktop"
|
|
85
95
|
];
|
|
86
96
|
}
|
|
87
97
|
attributeChangedCallback(e, t, n) {
|
|
@@ -119,7 +129,19 @@ var v = [
|
|
|
119
129
|
case "direction--tablet":
|
|
120
130
|
case "direction--laptop":
|
|
121
131
|
case "direction--desktop":
|
|
122
|
-
this.updateFlexProperties(e, t, n, v);
|
|
132
|
+
this.updateFlexProperties(e, t, n, v), this.updateVerticalStyles();
|
|
133
|
+
break;
|
|
134
|
+
case "overflow-y":
|
|
135
|
+
case "overflow-y--mobile":
|
|
136
|
+
case "overflow-y--tablet":
|
|
137
|
+
case "overflow-y--laptop":
|
|
138
|
+
case "overflow-y--desktop":
|
|
139
|
+
case "max-height":
|
|
140
|
+
case "max-height--mobile":
|
|
141
|
+
case "max-height--tablet":
|
|
142
|
+
case "max-height--laptop":
|
|
143
|
+
case "max-height--desktop":
|
|
144
|
+
n && !this.isValidVerticalValue(e, n) && u(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}.`), this.updateVerticalStyles();
|
|
123
145
|
break;
|
|
124
146
|
case "overflow-x":
|
|
125
147
|
case "overflow-x--mobile":
|
|
@@ -131,6 +153,18 @@ var v = [
|
|
|
131
153
|
default: super.attributeChangedCallback(e, t, n);
|
|
132
154
|
}
|
|
133
155
|
}
|
|
156
|
+
isValidVerticalValue(e, t) {
|
|
157
|
+
return e.startsWith("overflow-y") ? S.includes(t) : CSS.supports("max-height", t);
|
|
158
|
+
}
|
|
159
|
+
updateVerticalStyles() {
|
|
160
|
+
for (let e of t.breakpoints) {
|
|
161
|
+
let t = this.localName === "px-stack" && this.getAttribute(`direction--${e}`) || this.direction, n = t === "column" || t === "column-reverse";
|
|
162
|
+
for (let t of ["overflow-y", "max-height"]) {
|
|
163
|
+
let r = this.getAttribute(`${t}--${e}`) || this.getAttribute(t);
|
|
164
|
+
this.updateStyle(t, e, n && r && this.isValidVerticalValue(t, r) ? r : null);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
134
168
|
updateOverflowX(e, t, n, r) {
|
|
135
169
|
o(r, n) ? this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n) : u(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
136
170
|
}
|
|
@@ -339,12 +373,72 @@ var v = [
|
|
|
339
373
|
set overflowXDesktop(e) {
|
|
340
374
|
d(this, "overflow-x--desktop", e);
|
|
341
375
|
}
|
|
376
|
+
get overflowY() {
|
|
377
|
+
return this.getAttribute("overflow-y") ?? "visible";
|
|
378
|
+
}
|
|
379
|
+
set overflowY(e) {
|
|
380
|
+
d(this, "overflow-y", e);
|
|
381
|
+
}
|
|
382
|
+
get overflowYMobile() {
|
|
383
|
+
return this.getAttribute("overflow-y--mobile");
|
|
384
|
+
}
|
|
385
|
+
set overflowYMobile(e) {
|
|
386
|
+
d(this, "overflow-y--mobile", e);
|
|
387
|
+
}
|
|
388
|
+
get overflowYTablet() {
|
|
389
|
+
return this.getAttribute("overflow-y--tablet");
|
|
390
|
+
}
|
|
391
|
+
set overflowYTablet(e) {
|
|
392
|
+
d(this, "overflow-y--tablet", e);
|
|
393
|
+
}
|
|
394
|
+
get overflowYLaptop() {
|
|
395
|
+
return this.getAttribute("overflow-y--laptop");
|
|
396
|
+
}
|
|
397
|
+
set overflowYLaptop(e) {
|
|
398
|
+
d(this, "overflow-y--laptop", e);
|
|
399
|
+
}
|
|
400
|
+
get overflowYDesktop() {
|
|
401
|
+
return this.getAttribute("overflow-y--desktop");
|
|
402
|
+
}
|
|
403
|
+
set overflowYDesktop(e) {
|
|
404
|
+
d(this, "overflow-y--desktop", e);
|
|
405
|
+
}
|
|
406
|
+
get maxHeight() {
|
|
407
|
+
return this.getAttribute("max-height") ?? "none";
|
|
408
|
+
}
|
|
409
|
+
set maxHeight(e) {
|
|
410
|
+
d(this, "max-height", e);
|
|
411
|
+
}
|
|
412
|
+
get maxHeightMobile() {
|
|
413
|
+
return this.getAttribute("max-height--mobile");
|
|
414
|
+
}
|
|
415
|
+
set maxHeightMobile(e) {
|
|
416
|
+
d(this, "max-height--mobile", e);
|
|
417
|
+
}
|
|
418
|
+
get maxHeightTablet() {
|
|
419
|
+
return this.getAttribute("max-height--tablet");
|
|
420
|
+
}
|
|
421
|
+
set maxHeightTablet(e) {
|
|
422
|
+
d(this, "max-height--tablet", e);
|
|
423
|
+
}
|
|
424
|
+
get maxHeightLaptop() {
|
|
425
|
+
return this.getAttribute("max-height--laptop");
|
|
426
|
+
}
|
|
427
|
+
set maxHeightLaptop(e) {
|
|
428
|
+
d(this, "max-height--laptop", e);
|
|
429
|
+
}
|
|
430
|
+
get maxHeightDesktop() {
|
|
431
|
+
return this.getAttribute("max-height--desktop");
|
|
432
|
+
}
|
|
433
|
+
set maxHeightDesktop(e) {
|
|
434
|
+
d(this, "max-height--desktop", e);
|
|
435
|
+
}
|
|
342
436
|
get $el() {
|
|
343
437
|
return this.shadowRoot.firstElementChild;
|
|
344
438
|
}
|
|
345
439
|
};
|
|
346
440
|
customElements.get("px-stack") || customElements.define("px-stack", C);
|
|
347
|
-
var w = (e) => e === "direction" || e.startsWith("direction--"),
|
|
441
|
+
var w = (e) => e === "direction" || e.startsWith("direction--"), ee = class extends C {
|
|
348
442
|
get direction() {
|
|
349
443
|
return "column";
|
|
350
444
|
}
|
|
@@ -355,8 +449,8 @@ var w = (e) => e === "direction" || e.startsWith("direction--"), T = class exten
|
|
|
355
449
|
w(e) || super.attributeChangedCallback(e, t, n);
|
|
356
450
|
}
|
|
357
451
|
};
|
|
358
|
-
customElements.get("px-vstack") || customElements.define("px-vstack",
|
|
359
|
-
var
|
|
452
|
+
customElements.get("px-vstack") || customElements.define("px-vstack", ee);
|
|
453
|
+
var te = class extends C {
|
|
360
454
|
get direction() {
|
|
361
455
|
return "row";
|
|
362
456
|
}
|
|
@@ -367,10 +461,10 @@ var ee = class extends C {
|
|
|
367
461
|
w(e) || super.attributeChangedCallback(e, t, n);
|
|
368
462
|
}
|
|
369
463
|
};
|
|
370
|
-
customElements.get("px-hstack") || customElements.define("px-hstack",
|
|
464
|
+
customElements.get("px-hstack") || customElements.define("px-hstack", te);
|
|
371
465
|
//#endregion
|
|
372
466
|
//#region ../Layout/src/Spacer.ts
|
|
373
|
-
var
|
|
467
|
+
var ne = class extends HTMLElement {
|
|
374
468
|
constructor() {
|
|
375
469
|
super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
|
|
376
470
|
}
|
|
@@ -416,14 +510,14 @@ var te = class extends HTMLElement {
|
|
|
416
510
|
e ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
|
|
417
511
|
}
|
|
418
512
|
};
|
|
419
|
-
customElements.get("px-spacer") || customElements.define("px-spacer",
|
|
513
|
+
customElements.get("px-spacer") || customElements.define("px-spacer", ne);
|
|
420
514
|
//#endregion
|
|
421
515
|
//#region ../Layout/src/Page.css?inline
|
|
422
|
-
var
|
|
423
|
-
|
|
424
|
-
var
|
|
516
|
+
var re = ":host{box-sizing:border-box;display:block}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5rem}", T = new CSSStyleSheet();
|
|
517
|
+
T.replaceSync(re);
|
|
518
|
+
var ie = class extends n {
|
|
425
519
|
constructor() {
|
|
426
|
-
super(
|
|
520
|
+
super(T), this.template = () => `
|
|
427
521
|
<px-container border-radius="none" padding="none">
|
|
428
522
|
<px-vstack>
|
|
429
523
|
<px-container id="header-container" border-radius="none">
|
|
@@ -603,21 +697,21 @@ var re = class extends n {
|
|
|
603
697
|
this.$headerContainer.paddingLeft = e, this.$headerContainer.paddingRight = e, this.$bodyContainer.paddingLeft = e, this.$bodyContainer.paddingRight = e, this.$contactContainer.paddingLeft = e, this.$contactContainer.paddingRight = e, this.$footerContainer.paddingLeft = e, this.$footerContainer.paddingRight = e, this.$imageContainer.paddingLeft = e, this.$imageContainer.paddingRight = e;
|
|
604
698
|
}
|
|
605
699
|
};
|
|
606
|
-
customElements.get("px-page") === void 0 && customElements.define("px-page",
|
|
700
|
+
customElements.get("px-page") === void 0 && customElements.define("px-page", ie);
|
|
607
701
|
//#endregion
|
|
608
702
|
//#region ../ButtonIcon/src/buttonicon.css?inline
|
|
609
|
-
var
|
|
610
|
-
|
|
611
|
-
var
|
|
703
|
+
var ae = ":host{display:inline-block}.btn-icon,.btn-icon *{box-sizing:border-box}.btn-icon{font-size:var(--px-font-size-base);width:var(--px-size-l);height:var(--px-size-l);vertical-align:middle;cursor:pointer;--btn-transition:all .2s ease-in-out 0s;transition:var(--btn-transition);background:var(--px-color-background-container-primary-default);color:var(--px-color-icon-brand-inverted);border-radius:var(--px-radius-pill);padding:var(--px-padding-xs-mobile);border:var(--px-size-border-m) solid transparent;justify-content:center;align-items:center;display:inline-flex}.btn-icon ::slotted(px-icon){line-height:0}.btn-icon:hover:not([disabled],[aria-disabled=true],.btn-icon--state-loading){background:var(--px-color-background-state-hover-bordered-default);color:var(--px-color-icon-brand-default);border-color:var(--px-color-border-state-hover-default)}.btn-icon:active:not([disabled],[aria-disabled=true],.btn-icon--state-loading){background:var(--px-color-background-state-active-inverted);color:var(--px-color-icon-state-active-default);border-color:var(--px-color-border-state-active-default)}.btn-icon:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}.btn-icon[disabled],.btn-icon[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-icon-state-disabled-default);cursor:default;pointer-events:none}.btn-icon.btn-icon--state-loading{background:var(--px-color-background-state-disabled-default);color:var(--px-color-icon-brand-default);cursor:inherit}.btn-icon--size-small{padding:var(--px-padding-2xs-mobile);width:var(--px-size-m);height:var(--px-size-m)}.btn-icon--variant-secondary{background-color:var(--px-color-background-container-secondary-default);color:var(--px-color-icon-brand-default)}.btn-icon--variant-naked{color:var(--px-color-icon-brand-default);background-color:#0000;width:auto;height:auto}:host([inverted]) .btn-icon{background:var(--px-color-background-container-primary-inverted);color:var(--px-color-icon-brand-default)}:host([inverted]) .btn-icon:hover:not([disabled],[aria-disabled=true],.btn-icon--state-loading){background:var(--px-color-background-state-hover-bordered-inverted);color:var(--px-color-icon-brand-inverted);border-color:var(--px-color-border-state-hover-inverted)}:host([inverted]) .btn-icon:active:not([disabled],[aria-disabled=true],.btn-icon--state-loading){background:var(--px-color-background-state-hover-default);color:var(--px-color-icon-state-active-inverted);border-color:var(--px-color-border-state-active-inverted)}:host([inverted]) .btn-icon:focus-visible:not([disabled],[aria-disabled=true]){outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) .btn-icon[disabled],:host([inverted]) .btn-icon[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-icon-state-disabled-inverted)}:host([inverted]) .btn-icon.btn-icon--state-loading{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-icon-brand-inverted);border-color:#0000}:host([inverted]) .btn-icon.btn-icon--variant-naked{color:var(--px-color-icon-brand-inverted);background-color:#0000}:host([inverted]) .btn-icon--variant-secondary{background-color:var(--px-color-background-container-secondary-inverted);color:var(--px-color-icon-brand-inverted)}@media screen and (width>=48rem){.btn-icon{padding:var(--px-padding-xs-desktop)}.btn-icon:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn-icon--size-small{padding:var(--px-padding-2xs-desktop)}}@media screen and (width>=64.0625rem){.btn-icon{padding:var(--px-padding-xs-desktop)}.btn-icon:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn-icon--size-small{padding:var(--px-padding-2xs-desktop)}}", E = new CSSStyleSheet();
|
|
704
|
+
E.replaceSync(ae);
|
|
705
|
+
var D = [
|
|
612
706
|
"",
|
|
613
707
|
"default",
|
|
614
708
|
"small"
|
|
615
|
-
],
|
|
709
|
+
], O = [
|
|
616
710
|
"",
|
|
617
711
|
"default",
|
|
618
712
|
"secondary",
|
|
619
713
|
"naked"
|
|
620
|
-
],
|
|
714
|
+
], oe = class e extends t {
|
|
621
715
|
static {
|
|
622
716
|
this.template = s("<button class=\"btn-icon\"><slot></slot></button>");
|
|
623
717
|
}
|
|
@@ -625,7 +719,7 @@ var O = [
|
|
|
625
719
|
this.nativeName = "button";
|
|
626
720
|
}
|
|
627
721
|
constructor() {
|
|
628
|
-
super(
|
|
722
|
+
super(E), f(this.shadowRoot, e.template);
|
|
629
723
|
}
|
|
630
724
|
static get observedAttributes() {
|
|
631
725
|
return [
|
|
@@ -671,10 +765,10 @@ var O = [
|
|
|
671
765
|
this.$el.classList.toggle("btn-icon--state-loading");
|
|
672
766
|
}
|
|
673
767
|
updateSize(e, t) {
|
|
674
|
-
this.checkName(
|
|
768
|
+
this.checkName(D, t) ? (e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`btn-icon--size-${e}`), t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`btn-icon--size-${t}`)) : u(`"${t}" is not a valid size value for ${this.tagName.toLowerCase()}. Allowed values are: "${D.join("\", \"")}".`);
|
|
675
769
|
}
|
|
676
770
|
updateVariant(e, t) {
|
|
677
|
-
this.checkName(
|
|
771
|
+
this.checkName(O, t) ? (e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`btn-icon--variant-${e}`), t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`btn-icon--variant-${t}`)) : u(`"${t}" is not a valid variant value for ${this.tagName.toLowerCase()}. Allowed values are: "${O.join("\", \"")}".`);
|
|
678
772
|
}
|
|
679
773
|
get inverted() {
|
|
680
774
|
return this.hasAttribute("inverted");
|
|
@@ -707,10 +801,10 @@ var O = [
|
|
|
707
801
|
this._updateAttribute("aria-expanded", e);
|
|
708
802
|
}
|
|
709
803
|
};
|
|
710
|
-
customElements.get("px-button-icon") || customElements.define("px-button-icon",
|
|
804
|
+
customElements.get("px-button-icon") || customElements.define("px-button-icon", oe);
|
|
711
805
|
//#endregion
|
|
712
806
|
//#region ../Icon/common/src/IconSet.ts
|
|
713
|
-
var
|
|
807
|
+
var k = class extends HTMLElement {
|
|
714
808
|
constructor() {
|
|
715
809
|
super();
|
|
716
810
|
}
|
|
@@ -744,8 +838,8 @@ var j = class extends HTMLElement {
|
|
|
744
838
|
e && e.remove();
|
|
745
839
|
}
|
|
746
840
|
};
|
|
747
|
-
customElements.get("px-icon-set") || customElements.define("px-icon-set",
|
|
748
|
-
var
|
|
841
|
+
customElements.get("px-icon-set") || customElements.define("px-icon-set", k);
|
|
842
|
+
var A = [
|
|
749
843
|
"Inherit",
|
|
750
844
|
"Brand",
|
|
751
845
|
"Accent",
|
|
@@ -759,9 +853,9 @@ var M = [
|
|
|
759
853
|
"StateHover",
|
|
760
854
|
"StateActive",
|
|
761
855
|
"StateDisabled"
|
|
762
|
-
].map((e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)),
|
|
763
|
-
|
|
764
|
-
var
|
|
856
|
+
].map((e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)), j = ":host{flex-direction:column;justify-content:center;display:inline-flex}svg{font-size:var(--px-size-icon-s);width:1em;height:1em;color:var(--px-color-icon-accent-default);line-height:1}.inherit{color:inherit}.brand{color:var(--px-color-icon-brand-default)}.accent{color:var(--px-color-icon-accent-default)}.neutral{color:var(--px-color-icon-neutral-default)}.dimmed{color:var(--px-color-icon-dimmed-default)}.purpose-success{color:var(--px-color-icon-purpose-success-default)}.purpose-warning{color:var(--px-color-icon-purpose-warning-default)}.purpose-error{color:var(--px-color-icon-purpose-error-default)}.purpose-unlimited{color:var(--px-color-icon-purpose-unlimited-default)}.purpose-promo{color:var(--px-color-icon-purpose-promo-default)}.state-hover:hover{color:var(--px-color-icon-state-hover-default)}.state-active:active{color:var(--px-color-icon-state-active-default)}.state-disabled{color:var(--px-color-icon-state-disabled-default)}:host([inverted]) svg{color:var(--px-color-icon-accent-inverted)}:host([inverted]) .inherit{color:inherit}:host([inverted]) .brand{color:var(--px-color-icon-brand-inverted)}:host([inverted]) .accent{color:var(--px-color-icon-accent-inverted)}:host([inverted]) .neutral{color:var(--px-color-icon-neutral-inverted)}:host([inverted]) .dimmed{color:var(--px-color-icon-dimmed-inverted)}:host([inverted]) .purpose-success{color:var(--px-color-icon-purpose-success-inverted)}:host([inverted]) .purpose-warning{color:var(--px-color-icon-purpose-warning-inverted)}:host([inverted]) .purpose-error{color:var(--px-color-icon-purpose-error-inverted)}:host([inverted]) .purpose-unlimited{color:var(--px-color-icon-purpose-unlimited-inverted)}:host([inverted]) .purpose-promo{color:var(--px-color-icon-purpose-promo-inverted)}:host([inverted]) .state-hover:hover{color:var(--px-color-icon-state-hover-inverted)}:host([inverted]) .state-active:active{color:var(--px-color-icon-state-active-inverted)}:host([inverted]) .state-disabled{color:var(--px-color-icon-state-disabled-inverted)}.size-xs{font-size:var(--px-size-icon-xs)}.size-s{font-size:var(--px-size-icon-s)}.size-m{font-size:var(--px-size-icon-m)}.size-l{font-size:var(--px-size-icon-l)}.size-xl{font-size:var(--px-size-icon-xl)}", M = new CSSStyleSheet();
|
|
857
|
+
M.replaceSync(j);
|
|
858
|
+
var se = class e extends n {
|
|
765
859
|
static {
|
|
766
860
|
this.template = s("<svg aria-hidden=\"true\"><use></use></svg>");
|
|
767
861
|
}
|
|
@@ -780,7 +874,7 @@ var oe = class e extends n {
|
|
|
780
874
|
];
|
|
781
875
|
}
|
|
782
876
|
constructor(...t) {
|
|
783
|
-
super(...t,
|
|
877
|
+
super(...t, M), f(this.shadowRoot, e.template), this.#t = this.attachInternals?.(), this.#t && (this.#t.role = "img");
|
|
784
878
|
}
|
|
785
879
|
attributeChangedCallback(e, t, n) {
|
|
786
880
|
if (t !== n) switch (e) {
|
|
@@ -791,7 +885,7 @@ var oe = class e extends n {
|
|
|
791
885
|
this.updateAttribute(e, t, n, l);
|
|
792
886
|
break;
|
|
793
887
|
case "color":
|
|
794
|
-
this.updateAttribute(e, t, n,
|
|
888
|
+
this.updateAttribute(e, t, n, A);
|
|
795
889
|
break;
|
|
796
890
|
case "disabled":
|
|
797
891
|
this.color = "state-disabled";
|
|
@@ -860,18 +954,18 @@ var oe = class e extends n {
|
|
|
860
954
|
a(this, "disabled", e);
|
|
861
955
|
}
|
|
862
956
|
};
|
|
863
|
-
customElements.get("px-icon") || customElements.define("px-icon",
|
|
957
|
+
customElements.get("px-icon") || customElements.define("px-icon", se);
|
|
864
958
|
//#endregion
|
|
865
959
|
//#region src/appleseed.css?inline
|
|
866
|
-
var
|
|
867
|
-
|
|
868
|
-
var
|
|
960
|
+
var ce = ":host{--px-appleseed-size-l:14px;--px-appleseed-size-m:10px;--px-appleseed-size-s:6px;--px-appleseed-size-xs:4px}.container{display:flex}:is(.container:has(#seed-0.appleseed-6-plus[active]),.container:has(#seed-1.appleseed-6-plus[active])) :nth-child(4)>div{width:var(--px-appleseed-size-s);height:var(--px-appleseed-size-s)}:is(.container:has(#seed-0.appleseed-6-plus[active]),.container:has(#seed-1.appleseed-6-plus[active])) :nth-child(5)>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}:is(.container:has(#seed-2.appleseed-6-plus[active]) :nth-child(2),.container:has(#seed-2.appleseed-6-plus[active]) :nth-child(4))>div{width:var(--px-appleseed-size-s);height:var(--px-appleseed-size-s)}:is(.container:has(#seed-2.appleseed-6-plus[active]) :first-child,.container:has(#seed-2.appleseed-6-plus[active]) :nth-child(5))>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}.container:has(#seed-3.appleseed-6-plus[active]) :first-child>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}.container:has(#seed-3.appleseed-6-plus[active]) :nth-child(2)>div{width:var(--px-appleseed-size-s);height:var(--px-appleseed-size-s)}.container:has(#seed-3.appleseed-6-plus[active]) :nth-child(5)>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}.container:has(#seed-4.appleseed-6-plus[active]) :first-child>div{width:var(--px-appleseed-size-xs);height:var(--px-appleseed-size-xs)}.container:has(#seed-4.appleseed-6-plus[active]) :nth-child(2)>div{width:var(--px-appleseed-size-s);height:var(--px-appleseed-size-s)}.appleseed{width:var(--px-size-icon-m);height:var(--px-size-icon-m);justify-content:center;align-items:center;display:flex}@media screen and (width<=47.938rem){.appleseed{width:var(--px-size-icon-s);height:var(--px-size-icon-s)}}:is(.appleseed-6-plus,.appleseed-6-minus)>div{box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-brand-default);border-radius:var(--px-radius-main);height:var(--px-appleseed-size-m);width:var(--px-appleseed-size-m)}:is(.appleseed-6-plus,.appleseed-6-minus)[active]>div{width:var(--px-appleseed-size-l);height:var(--px-appleseed-size-l);background-color:var(--px-color-icon-brand-default)}", N = new CSSStyleSheet();
|
|
961
|
+
N.replaceSync(ce);
|
|
962
|
+
var P = class extends HTMLElement {
|
|
869
963
|
constructor() {
|
|
870
964
|
super(), this.template = (e, t) => `<div class="container">
|
|
871
965
|
${Array.from({ length: Math.min(e, 5) }, (n, r) => `<div id="seed-${r}" ${t === r ? "active" : ""} class="appleseed ${e > 5 ? "appleseed-6-plus" : "appleseed-6-minus"}">
|
|
872
966
|
<div></div>
|
|
873
967
|
</div>`).join("")}
|
|
874
|
-
</div>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
968
|
+
</div>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [N], this.shadowRoot.innerHTML = this.template(this.amount, this.active);
|
|
875
969
|
}
|
|
876
970
|
static get observedAttributes() {
|
|
877
971
|
return ["amount", "active"];
|
|
@@ -897,85 +991,85 @@ var F = class extends HTMLElement {
|
|
|
897
991
|
return parseInt(this.getAttribute("active") ?? "0") || 0;
|
|
898
992
|
}
|
|
899
993
|
};
|
|
900
|
-
customElements.get("px-appleseed") || customElements.define("px-appleseed",
|
|
994
|
+
customElements.get("px-appleseed") || customElements.define("px-appleseed", P);
|
|
901
995
|
//#endregion
|
|
902
996
|
//#region ../../../node_modules/lodash-es/isObject.js
|
|
903
|
-
function
|
|
997
|
+
function F(e) {
|
|
904
998
|
var t = typeof e;
|
|
905
999
|
return e != null && (t == "object" || t == "function");
|
|
906
1000
|
}
|
|
907
1001
|
//#endregion
|
|
908
1002
|
//#region ../../../node_modules/lodash-es/_freeGlobal.js
|
|
909
|
-
var
|
|
910
|
-
return
|
|
911
|
-
},
|
|
912
|
-
function
|
|
913
|
-
for (var t = e.length; t-- &&
|
|
1003
|
+
var le = typeof global == "object" && global && global.Object === Object && global, ue = typeof self == "object" && self && self.Object === Object && self, I = le || ue || Function("return this")(), L = function() {
|
|
1004
|
+
return I.Date.now();
|
|
1005
|
+
}, R = /\s/;
|
|
1006
|
+
function z(e) {
|
|
1007
|
+
for (var t = e.length; t-- && R.test(e.charAt(t)););
|
|
914
1008
|
return t;
|
|
915
1009
|
}
|
|
916
1010
|
//#endregion
|
|
917
1011
|
//#region ../../../node_modules/lodash-es/_baseTrim.js
|
|
918
|
-
var
|
|
919
|
-
function
|
|
920
|
-
return e && e.slice(0,
|
|
1012
|
+
var B = /^\s+/;
|
|
1013
|
+
function V(e) {
|
|
1014
|
+
return e && e.slice(0, z(e) + 1).replace(B, "");
|
|
921
1015
|
}
|
|
922
1016
|
//#endregion
|
|
923
1017
|
//#region ../../../node_modules/lodash-es/_Symbol.js
|
|
924
|
-
var
|
|
925
|
-
function
|
|
926
|
-
var t =
|
|
1018
|
+
var H = I.Symbol, U = Object.prototype, de = U.hasOwnProperty, fe = U.toString, W = H ? H.toStringTag : void 0;
|
|
1019
|
+
function pe(e) {
|
|
1020
|
+
var t = de.call(e, W), n = e[W];
|
|
927
1021
|
try {
|
|
928
|
-
e[
|
|
1022
|
+
e[W] = void 0;
|
|
929
1023
|
var r = !0;
|
|
930
1024
|
} catch {}
|
|
931
|
-
var i =
|
|
932
|
-
return r && (t ? e[
|
|
1025
|
+
var i = fe.call(e);
|
|
1026
|
+
return r && (t ? e[W] = n : delete e[W]), i;
|
|
933
1027
|
}
|
|
934
1028
|
//#endregion
|
|
935
1029
|
//#region ../../../node_modules/lodash-es/_objectToString.js
|
|
936
|
-
var
|
|
937
|
-
function
|
|
938
|
-
return
|
|
1030
|
+
var me = Object.prototype.toString;
|
|
1031
|
+
function he(e) {
|
|
1032
|
+
return me.call(e);
|
|
939
1033
|
}
|
|
940
1034
|
//#endregion
|
|
941
1035
|
//#region ../../../node_modules/lodash-es/_baseGetTag.js
|
|
942
|
-
var
|
|
943
|
-
function
|
|
944
|
-
return e == null ? e === void 0 ?
|
|
1036
|
+
var ge = "[object Null]", _e = "[object Undefined]", G = H ? H.toStringTag : void 0;
|
|
1037
|
+
function ve(e) {
|
|
1038
|
+
return e == null ? e === void 0 ? _e : ge : G && G in Object(e) ? pe(e) : he(e);
|
|
945
1039
|
}
|
|
946
1040
|
//#endregion
|
|
947
1041
|
//#region ../../../node_modules/lodash-es/isObjectLike.js
|
|
948
|
-
function
|
|
1042
|
+
function ye(e) {
|
|
949
1043
|
return typeof e == "object" && !!e;
|
|
950
1044
|
}
|
|
951
1045
|
//#endregion
|
|
952
1046
|
//#region ../../../node_modules/lodash-es/isSymbol.js
|
|
953
|
-
var
|
|
954
|
-
function
|
|
955
|
-
return typeof e == "symbol" ||
|
|
1047
|
+
var be = "[object Symbol]";
|
|
1048
|
+
function xe(e) {
|
|
1049
|
+
return typeof e == "symbol" || ye(e) && ve(e) == be;
|
|
956
1050
|
}
|
|
957
1051
|
//#endregion
|
|
958
1052
|
//#region ../../../node_modules/lodash-es/toNumber.js
|
|
959
|
-
var
|
|
960
|
-
function
|
|
1053
|
+
var K = NaN, Se = /^[-+]0x[0-9a-f]+$/i, Ce = /^0b[01]+$/i, we = /^0o[0-7]+$/i, Te = parseInt;
|
|
1054
|
+
function q(e) {
|
|
961
1055
|
if (typeof e == "number") return e;
|
|
962
|
-
if (
|
|
963
|
-
if (
|
|
1056
|
+
if (xe(e)) return K;
|
|
1057
|
+
if (F(e)) {
|
|
964
1058
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
965
|
-
e =
|
|
1059
|
+
e = F(t) ? t + "" : t;
|
|
966
1060
|
}
|
|
967
1061
|
if (typeof e != "string") return e === 0 ? e : +e;
|
|
968
|
-
e =
|
|
969
|
-
var n =
|
|
970
|
-
return n ||
|
|
1062
|
+
e = V(e);
|
|
1063
|
+
var n = Ce.test(e);
|
|
1064
|
+
return n || we.test(e) ? Te(e.slice(2), n ? 2 : 8) : Se.test(e) ? K : +e;
|
|
971
1065
|
}
|
|
972
1066
|
//#endregion
|
|
973
1067
|
//#region ../../../node_modules/lodash-es/debounce.js
|
|
974
|
-
var
|
|
1068
|
+
var J = "Expected a function", Ee = Math.max, De = Math.min;
|
|
975
1069
|
function Oe(e, t, n) {
|
|
976
1070
|
var r, i, a, o, s, c, l = 0, u = !1, d = !1, f = !0;
|
|
977
|
-
if (typeof e != "function") throw TypeError(
|
|
978
|
-
t =
|
|
1071
|
+
if (typeof e != "function") throw TypeError(J);
|
|
1072
|
+
t = q(t) || 0, F(n) && (u = !!n.leading, d = "maxWait" in n, a = d ? Ee(q(n.maxWait) || 0, t) : a, f = "trailing" in n ? !!n.trailing : f);
|
|
979
1073
|
function p(t) {
|
|
980
1074
|
var n = r, a = i;
|
|
981
1075
|
return r = i = void 0, l = t, o = e.apply(a, n), o;
|
|
@@ -992,7 +1086,7 @@ function Oe(e, t, n) {
|
|
|
992
1086
|
return c === void 0 || n >= t || n < 0 || d && r >= a;
|
|
993
1087
|
}
|
|
994
1088
|
function _() {
|
|
995
|
-
var e =
|
|
1089
|
+
var e = L();
|
|
996
1090
|
if (g(e)) return v(e);
|
|
997
1091
|
s = setTimeout(_, h(e));
|
|
998
1092
|
}
|
|
@@ -1003,10 +1097,10 @@ function Oe(e, t, n) {
|
|
|
1003
1097
|
s !== void 0 && clearTimeout(s), l = 0, r = c = i = s = void 0;
|
|
1004
1098
|
}
|
|
1005
1099
|
function b() {
|
|
1006
|
-
return s === void 0 ? o : v(
|
|
1100
|
+
return s === void 0 ? o : v(L());
|
|
1007
1101
|
}
|
|
1008
1102
|
function x() {
|
|
1009
|
-
var e =
|
|
1103
|
+
var e = L(), n = g(e);
|
|
1010
1104
|
if (r = arguments, i = this, c = e, n) {
|
|
1011
1105
|
if (s === void 0) return m(c);
|
|
1012
1106
|
if (d) return clearTimeout(s), s = setTimeout(_, t), p(c);
|
|
@@ -1021,7 +1115,7 @@ var ke = "Expected a function";
|
|
|
1021
1115
|
function Ae(e, t, n) {
|
|
1022
1116
|
var r = !0, i = !0;
|
|
1023
1117
|
if (typeof e != "function") throw TypeError(ke);
|
|
1024
|
-
return
|
|
1118
|
+
return F(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), Oe(e, t, {
|
|
1025
1119
|
leading: r,
|
|
1026
1120
|
maxWait: t,
|
|
1027
1121
|
trailing: i
|
|
@@ -1110,4 +1204,4 @@ var $ = class e extends HTMLElement {
|
|
|
1110
1204
|
};
|
|
1111
1205
|
customElements.get("px-carousel-item") || customElements.define("px-carousel-item", $);
|
|
1112
1206
|
//#endregion
|
|
1113
|
-
export {
|
|
1207
|
+
export { P as AppleSeed, X as CAROUSEL_ITEM_CONNECTED_EVENT, Z as Carousel, $ as CarouselItem };
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@proximus/lavender-carousel",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.228",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|