@proximus/lavender-carousel 1.4.20-alpha.2 → 1.4.20-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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<=47.938rem){.carousel{gap:var(--px-carousel-gap-default--mobile,var(--px-carousel-gap-default))}}@media screen and (width>=48rem) 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<=47.938rem){#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<=47.938rem){: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>=48rem) 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<=47.938rem){.carousel{gap:var(--px-carousel-gap-default--mobile,var(--px-carousel-gap-default))}}@media screen and (width>=48rem) 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<=47.938rem){#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<=47.938rem){: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>=48rem) 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
|
if (!o(r, n)) {
|
|
136
170
|
u(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
@@ -346,12 +380,72 @@ var v = [
|
|
|
346
380
|
set overflowXDesktop(e) {
|
|
347
381
|
d(this, "overflow-x--desktop", e);
|
|
348
382
|
}
|
|
383
|
+
get overflowY() {
|
|
384
|
+
return this.getAttribute("overflow-y") ?? "visible";
|
|
385
|
+
}
|
|
386
|
+
set overflowY(e) {
|
|
387
|
+
d(this, "overflow-y", e);
|
|
388
|
+
}
|
|
389
|
+
get overflowYMobile() {
|
|
390
|
+
return this.getAttribute("overflow-y--mobile");
|
|
391
|
+
}
|
|
392
|
+
set overflowYMobile(e) {
|
|
393
|
+
d(this, "overflow-y--mobile", e);
|
|
394
|
+
}
|
|
395
|
+
get overflowYTablet() {
|
|
396
|
+
return this.getAttribute("overflow-y--tablet");
|
|
397
|
+
}
|
|
398
|
+
set overflowYTablet(e) {
|
|
399
|
+
d(this, "overflow-y--tablet", e);
|
|
400
|
+
}
|
|
401
|
+
get overflowYLaptop() {
|
|
402
|
+
return this.getAttribute("overflow-y--laptop");
|
|
403
|
+
}
|
|
404
|
+
set overflowYLaptop(e) {
|
|
405
|
+
d(this, "overflow-y--laptop", e);
|
|
406
|
+
}
|
|
407
|
+
get overflowYDesktop() {
|
|
408
|
+
return this.getAttribute("overflow-y--desktop");
|
|
409
|
+
}
|
|
410
|
+
set overflowYDesktop(e) {
|
|
411
|
+
d(this, "overflow-y--desktop", e);
|
|
412
|
+
}
|
|
413
|
+
get maxHeight() {
|
|
414
|
+
return this.getAttribute("max-height") ?? "none";
|
|
415
|
+
}
|
|
416
|
+
set maxHeight(e) {
|
|
417
|
+
d(this, "max-height", e);
|
|
418
|
+
}
|
|
419
|
+
get maxHeightMobile() {
|
|
420
|
+
return this.getAttribute("max-height--mobile");
|
|
421
|
+
}
|
|
422
|
+
set maxHeightMobile(e) {
|
|
423
|
+
d(this, "max-height--mobile", e);
|
|
424
|
+
}
|
|
425
|
+
get maxHeightTablet() {
|
|
426
|
+
return this.getAttribute("max-height--tablet");
|
|
427
|
+
}
|
|
428
|
+
set maxHeightTablet(e) {
|
|
429
|
+
d(this, "max-height--tablet", e);
|
|
430
|
+
}
|
|
431
|
+
get maxHeightLaptop() {
|
|
432
|
+
return this.getAttribute("max-height--laptop");
|
|
433
|
+
}
|
|
434
|
+
set maxHeightLaptop(e) {
|
|
435
|
+
d(this, "max-height--laptop", e);
|
|
436
|
+
}
|
|
437
|
+
get maxHeightDesktop() {
|
|
438
|
+
return this.getAttribute("max-height--desktop");
|
|
439
|
+
}
|
|
440
|
+
set maxHeightDesktop(e) {
|
|
441
|
+
d(this, "max-height--desktop", e);
|
|
442
|
+
}
|
|
349
443
|
get $el() {
|
|
350
444
|
return this.shadowRoot.firstElementChild;
|
|
351
445
|
}
|
|
352
446
|
};
|
|
353
447
|
customElements.get("px-stack") || customElements.define("px-stack", C);
|
|
354
|
-
var w = (e) => e === "direction" || e.startsWith("direction--"),
|
|
448
|
+
var w = (e) => e === "direction" || e.startsWith("direction--"), ee = class extends C {
|
|
355
449
|
get direction() {
|
|
356
450
|
return "column";
|
|
357
451
|
}
|
|
@@ -362,8 +456,8 @@ var w = (e) => e === "direction" || e.startsWith("direction--"), T = class exten
|
|
|
362
456
|
w(e) || super.attributeChangedCallback(e, t, n);
|
|
363
457
|
}
|
|
364
458
|
};
|
|
365
|
-
customElements.get("px-vstack") || customElements.define("px-vstack",
|
|
366
|
-
var
|
|
459
|
+
customElements.get("px-vstack") || customElements.define("px-vstack", ee);
|
|
460
|
+
var te = class extends C {
|
|
367
461
|
get direction() {
|
|
368
462
|
return "row";
|
|
369
463
|
}
|
|
@@ -374,10 +468,10 @@ var ee = class extends C {
|
|
|
374
468
|
w(e) || super.attributeChangedCallback(e, t, n);
|
|
375
469
|
}
|
|
376
470
|
};
|
|
377
|
-
customElements.get("px-hstack") || customElements.define("px-hstack",
|
|
471
|
+
customElements.get("px-hstack") || customElements.define("px-hstack", te);
|
|
378
472
|
//#endregion
|
|
379
473
|
//#region ../Layout/src/Spacer.ts
|
|
380
|
-
var
|
|
474
|
+
var ne = class extends HTMLElement {
|
|
381
475
|
constructor() {
|
|
382
476
|
super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
|
|
383
477
|
}
|
|
@@ -423,14 +517,14 @@ var te = class extends HTMLElement {
|
|
|
423
517
|
e ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
|
|
424
518
|
}
|
|
425
519
|
};
|
|
426
|
-
customElements.get("px-spacer") || customElements.define("px-spacer",
|
|
520
|
+
customElements.get("px-spacer") || customElements.define("px-spacer", ne);
|
|
427
521
|
//#endregion
|
|
428
522
|
//#region ../Layout/src/Page.css?inline
|
|
429
|
-
var
|
|
430
|
-
|
|
431
|
-
var
|
|
523
|
+
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();
|
|
524
|
+
T.replaceSync(re);
|
|
525
|
+
var ie = class extends n {
|
|
432
526
|
constructor() {
|
|
433
|
-
super(
|
|
527
|
+
super(T), this.template = () => `
|
|
434
528
|
<px-container border-radius="none" padding="none">
|
|
435
529
|
<px-vstack>
|
|
436
530
|
<px-container id="header-container" border-radius="none">
|
|
@@ -610,21 +704,21 @@ var re = class extends n {
|
|
|
610
704
|
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;
|
|
611
705
|
}
|
|
612
706
|
};
|
|
613
|
-
customElements.get("px-page") === void 0 && customElements.define("px-page",
|
|
707
|
+
customElements.get("px-page") === void 0 && customElements.define("px-page", ie);
|
|
614
708
|
//#endregion
|
|
615
709
|
//#region ../ButtonIcon/src/buttonicon.css?inline
|
|
616
|
-
var
|
|
617
|
-
|
|
618
|
-
var
|
|
710
|
+
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();
|
|
711
|
+
E.replaceSync(ae);
|
|
712
|
+
var D = [
|
|
619
713
|
"",
|
|
620
714
|
"default",
|
|
621
715
|
"small"
|
|
622
|
-
],
|
|
716
|
+
], O = [
|
|
623
717
|
"",
|
|
624
718
|
"default",
|
|
625
719
|
"secondary",
|
|
626
720
|
"naked"
|
|
627
|
-
],
|
|
721
|
+
], oe = class e extends t {
|
|
628
722
|
static {
|
|
629
723
|
this.template = s("<button class=\"btn-icon\"><slot></slot></button>");
|
|
630
724
|
}
|
|
@@ -632,7 +726,7 @@ var O = [
|
|
|
632
726
|
this.nativeName = "button";
|
|
633
727
|
}
|
|
634
728
|
constructor() {
|
|
635
|
-
super(
|
|
729
|
+
super(E), f(this.shadowRoot, e.template);
|
|
636
730
|
}
|
|
637
731
|
static get observedAttributes() {
|
|
638
732
|
return [
|
|
@@ -678,10 +772,10 @@ var O = [
|
|
|
678
772
|
this.$el.classList.toggle("btn-icon--state-loading");
|
|
679
773
|
}
|
|
680
774
|
updateSize(e, t) {
|
|
681
|
-
this.checkName(
|
|
775
|
+
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("\", \"")}".`);
|
|
682
776
|
}
|
|
683
777
|
updateVariant(e, t) {
|
|
684
|
-
this.checkName(
|
|
778
|
+
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("\", \"")}".`);
|
|
685
779
|
}
|
|
686
780
|
get inverted() {
|
|
687
781
|
return this.hasAttribute("inverted");
|
|
@@ -714,10 +808,10 @@ var O = [
|
|
|
714
808
|
this._updateAttribute("aria-expanded", e);
|
|
715
809
|
}
|
|
716
810
|
};
|
|
717
|
-
customElements.get("px-button-icon") || customElements.define("px-button-icon",
|
|
811
|
+
customElements.get("px-button-icon") || customElements.define("px-button-icon", oe);
|
|
718
812
|
//#endregion
|
|
719
813
|
//#region ../Icon/common/src/IconSet.ts
|
|
720
|
-
var
|
|
814
|
+
var k = class extends HTMLElement {
|
|
721
815
|
constructor() {
|
|
722
816
|
super();
|
|
723
817
|
}
|
|
@@ -751,8 +845,8 @@ var j = class extends HTMLElement {
|
|
|
751
845
|
e && e.remove();
|
|
752
846
|
}
|
|
753
847
|
};
|
|
754
|
-
customElements.get("px-icon-set") || customElements.define("px-icon-set",
|
|
755
|
-
var
|
|
848
|
+
customElements.get("px-icon-set") || customElements.define("px-icon-set", k);
|
|
849
|
+
var A = [
|
|
756
850
|
"Inherit",
|
|
757
851
|
"Brand",
|
|
758
852
|
"Accent",
|
|
@@ -766,9 +860,9 @@ var M = [
|
|
|
766
860
|
"StateHover",
|
|
767
861
|
"StateActive",
|
|
768
862
|
"StateDisabled"
|
|
769
|
-
].map((e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)),
|
|
770
|
-
|
|
771
|
-
var
|
|
863
|
+
].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();
|
|
864
|
+
M.replaceSync(j);
|
|
865
|
+
var se = class e extends n {
|
|
772
866
|
static {
|
|
773
867
|
this.template = s("<svg aria-hidden=\"true\"><use></use></svg>");
|
|
774
868
|
}
|
|
@@ -787,7 +881,7 @@ var oe = class e extends n {
|
|
|
787
881
|
];
|
|
788
882
|
}
|
|
789
883
|
constructor(...t) {
|
|
790
|
-
super(...t,
|
|
884
|
+
super(...t, M), f(this.shadowRoot, e.template), this.#t = this.attachInternals?.(), this.#t && (this.#t.role = "img");
|
|
791
885
|
}
|
|
792
886
|
attributeChangedCallback(e, t, n) {
|
|
793
887
|
if (t !== n) switch (e) {
|
|
@@ -798,7 +892,7 @@ var oe = class e extends n {
|
|
|
798
892
|
this.updateAttribute(e, t, n, l);
|
|
799
893
|
break;
|
|
800
894
|
case "color":
|
|
801
|
-
this.updateAttribute(e, t, n,
|
|
895
|
+
this.updateAttribute(e, t, n, A);
|
|
802
896
|
break;
|
|
803
897
|
case "disabled":
|
|
804
898
|
this.color = "state-disabled";
|
|
@@ -873,18 +967,18 @@ var oe = class e extends n {
|
|
|
873
967
|
a(this, "disabled", e);
|
|
874
968
|
}
|
|
875
969
|
};
|
|
876
|
-
customElements.get("px-icon") || customElements.define("px-icon",
|
|
970
|
+
customElements.get("px-icon") || customElements.define("px-icon", se);
|
|
877
971
|
//#endregion
|
|
878
972
|
//#region src/appleseed.css?inline
|
|
879
|
-
var
|
|
880
|
-
|
|
881
|
-
var
|
|
973
|
+
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();
|
|
974
|
+
N.replaceSync(ce);
|
|
975
|
+
var P = class extends HTMLElement {
|
|
882
976
|
constructor() {
|
|
883
977
|
super(), this.template = (e, t) => `<div class="container">
|
|
884
978
|
${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"}">
|
|
885
979
|
<div></div>
|
|
886
980
|
</div>`).join("")}
|
|
887
|
-
</div>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
981
|
+
</div>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [N], this.shadowRoot.innerHTML = this.template(this.amount, this.active);
|
|
888
982
|
}
|
|
889
983
|
static get observedAttributes() {
|
|
890
984
|
return ["amount", "active"];
|
|
@@ -910,85 +1004,85 @@ var F = class extends HTMLElement {
|
|
|
910
1004
|
return parseInt(this.getAttribute("active") ?? "0") || 0;
|
|
911
1005
|
}
|
|
912
1006
|
};
|
|
913
|
-
customElements.get("px-appleseed") || customElements.define("px-appleseed",
|
|
1007
|
+
customElements.get("px-appleseed") || customElements.define("px-appleseed", P);
|
|
914
1008
|
//#endregion
|
|
915
1009
|
//#region ../../../node_modules/lodash-es/isObject.js
|
|
916
|
-
function
|
|
1010
|
+
function F(e) {
|
|
917
1011
|
var t = typeof e;
|
|
918
1012
|
return e != null && (t == "object" || t == "function");
|
|
919
1013
|
}
|
|
920
1014
|
//#endregion
|
|
921
1015
|
//#region ../../../node_modules/lodash-es/_freeGlobal.js
|
|
922
|
-
var
|
|
923
|
-
return
|
|
924
|
-
},
|
|
925
|
-
function
|
|
926
|
-
for (var t = e.length; t-- &&
|
|
1016
|
+
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() {
|
|
1017
|
+
return I.Date.now();
|
|
1018
|
+
}, R = /\s/;
|
|
1019
|
+
function z(e) {
|
|
1020
|
+
for (var t = e.length; t-- && R.test(e.charAt(t)););
|
|
927
1021
|
return t;
|
|
928
1022
|
}
|
|
929
1023
|
//#endregion
|
|
930
1024
|
//#region ../../../node_modules/lodash-es/_baseTrim.js
|
|
931
|
-
var
|
|
932
|
-
function
|
|
933
|
-
return e && e.slice(0,
|
|
1025
|
+
var B = /^\s+/;
|
|
1026
|
+
function V(e) {
|
|
1027
|
+
return e && e.slice(0, z(e) + 1).replace(B, "");
|
|
934
1028
|
}
|
|
935
1029
|
//#endregion
|
|
936
1030
|
//#region ../../../node_modules/lodash-es/_Symbol.js
|
|
937
|
-
var
|
|
938
|
-
function
|
|
939
|
-
var t =
|
|
1031
|
+
var H = I.Symbol, U = Object.prototype, de = U.hasOwnProperty, fe = U.toString, W = H ? H.toStringTag : void 0;
|
|
1032
|
+
function pe(e) {
|
|
1033
|
+
var t = de.call(e, W), n = e[W];
|
|
940
1034
|
try {
|
|
941
|
-
e[
|
|
1035
|
+
e[W] = void 0;
|
|
942
1036
|
var r = !0;
|
|
943
1037
|
} catch {}
|
|
944
|
-
var i =
|
|
945
|
-
return r && (t ? e[
|
|
1038
|
+
var i = fe.call(e);
|
|
1039
|
+
return r && (t ? e[W] = n : delete e[W]), i;
|
|
946
1040
|
}
|
|
947
1041
|
//#endregion
|
|
948
1042
|
//#region ../../../node_modules/lodash-es/_objectToString.js
|
|
949
|
-
var
|
|
950
|
-
function
|
|
951
|
-
return
|
|
1043
|
+
var me = Object.prototype.toString;
|
|
1044
|
+
function he(e) {
|
|
1045
|
+
return me.call(e);
|
|
952
1046
|
}
|
|
953
1047
|
//#endregion
|
|
954
1048
|
//#region ../../../node_modules/lodash-es/_baseGetTag.js
|
|
955
|
-
var
|
|
956
|
-
function
|
|
957
|
-
return e == null ? e === void 0 ?
|
|
1049
|
+
var ge = "[object Null]", _e = "[object Undefined]", G = H ? H.toStringTag : void 0;
|
|
1050
|
+
function ve(e) {
|
|
1051
|
+
return e == null ? e === void 0 ? _e : ge : G && G in Object(e) ? pe(e) : he(e);
|
|
958
1052
|
}
|
|
959
1053
|
//#endregion
|
|
960
1054
|
//#region ../../../node_modules/lodash-es/isObjectLike.js
|
|
961
|
-
function
|
|
1055
|
+
function ye(e) {
|
|
962
1056
|
return typeof e == "object" && !!e;
|
|
963
1057
|
}
|
|
964
1058
|
//#endregion
|
|
965
1059
|
//#region ../../../node_modules/lodash-es/isSymbol.js
|
|
966
|
-
var
|
|
967
|
-
function
|
|
968
|
-
return typeof e == "symbol" ||
|
|
1060
|
+
var be = "[object Symbol]";
|
|
1061
|
+
function xe(e) {
|
|
1062
|
+
return typeof e == "symbol" || ye(e) && ve(e) == be;
|
|
969
1063
|
}
|
|
970
1064
|
//#endregion
|
|
971
1065
|
//#region ../../../node_modules/lodash-es/toNumber.js
|
|
972
|
-
var
|
|
973
|
-
function
|
|
1066
|
+
var K = NaN, Se = /^[-+]0x[0-9a-f]+$/i, Ce = /^0b[01]+$/i, we = /^0o[0-7]+$/i, Te = parseInt;
|
|
1067
|
+
function q(e) {
|
|
974
1068
|
if (typeof e == "number") return e;
|
|
975
|
-
if (
|
|
976
|
-
if (
|
|
1069
|
+
if (xe(e)) return K;
|
|
1070
|
+
if (F(e)) {
|
|
977
1071
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
978
|
-
e =
|
|
1072
|
+
e = F(t) ? t + "" : t;
|
|
979
1073
|
}
|
|
980
1074
|
if (typeof e != "string") return e === 0 ? e : +e;
|
|
981
|
-
e =
|
|
982
|
-
var n =
|
|
983
|
-
return n ||
|
|
1075
|
+
e = V(e);
|
|
1076
|
+
var n = Ce.test(e);
|
|
1077
|
+
return n || we.test(e) ? Te(e.slice(2), n ? 2 : 8) : Se.test(e) ? K : +e;
|
|
984
1078
|
}
|
|
985
1079
|
//#endregion
|
|
986
1080
|
//#region ../../../node_modules/lodash-es/debounce.js
|
|
987
|
-
var
|
|
1081
|
+
var J = "Expected a function", Ee = Math.max, De = Math.min;
|
|
988
1082
|
function Oe(e, t, n) {
|
|
989
1083
|
var r, i, a, o, s, c, l = 0, u = !1, d = !1, f = !0;
|
|
990
|
-
if (typeof e != "function") throw TypeError(
|
|
991
|
-
t =
|
|
1084
|
+
if (typeof e != "function") throw TypeError(J);
|
|
1085
|
+
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);
|
|
992
1086
|
function p(t) {
|
|
993
1087
|
var n = r, a = i;
|
|
994
1088
|
return r = i = void 0, l = t, o = e.apply(a, n), o;
|
|
@@ -1005,7 +1099,7 @@ function Oe(e, t, n) {
|
|
|
1005
1099
|
return c === void 0 || n >= t || n < 0 || d && r >= a;
|
|
1006
1100
|
}
|
|
1007
1101
|
function _() {
|
|
1008
|
-
var e =
|
|
1102
|
+
var e = L();
|
|
1009
1103
|
if (g(e)) return v(e);
|
|
1010
1104
|
s = setTimeout(_, h(e));
|
|
1011
1105
|
}
|
|
@@ -1016,10 +1110,10 @@ function Oe(e, t, n) {
|
|
|
1016
1110
|
s !== void 0 && clearTimeout(s), l = 0, r = c = i = s = void 0;
|
|
1017
1111
|
}
|
|
1018
1112
|
function b() {
|
|
1019
|
-
return s === void 0 ? o : v(
|
|
1113
|
+
return s === void 0 ? o : v(L());
|
|
1020
1114
|
}
|
|
1021
1115
|
function x() {
|
|
1022
|
-
var e =
|
|
1116
|
+
var e = L(), n = g(e);
|
|
1023
1117
|
if (r = arguments, i = this, c = e, n) {
|
|
1024
1118
|
if (s === void 0) return m(c);
|
|
1025
1119
|
if (d) return clearTimeout(s), s = setTimeout(_, t), p(c);
|
|
@@ -1034,7 +1128,7 @@ var ke = "Expected a function";
|
|
|
1034
1128
|
function Ae(e, t, n) {
|
|
1035
1129
|
var r = !0, i = !0;
|
|
1036
1130
|
if (typeof e != "function") throw TypeError(ke);
|
|
1037
|
-
return
|
|
1131
|
+
return F(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), Oe(e, t, {
|
|
1038
1132
|
leading: r,
|
|
1039
1133
|
maxWait: t,
|
|
1040
1134
|
trailing: i
|
|
@@ -1123,4 +1217,4 @@ var $ = class e extends HTMLElement {
|
|
|
1123
1217
|
};
|
|
1124
1218
|
customElements.get("px-carousel-item") || customElements.define("px-carousel-item", $);
|
|
1125
1219
|
//#endregion
|
|
1126
|
-
export {
|
|
1220
|
+
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": "1.4.20-alpha.
|
|
4
|
+
"version": "1.4.20-alpha.4",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|