@florid-kit/components 0.8.40 → 0.8.42
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/index.js +30 -20
- package/index.mjs +51 -41
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -29,9 +29,8 @@
|
|
|
29
29
|
* Copyright 2017 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
31
|
*/function K(o){return a({...o,state:!0,attribute:!1})}const mt=b`
|
|
32
|
-
outline: 1px dashed var(--
|
|
32
|
+
outline: 1px dashed var(--color-border-primary);
|
|
33
33
|
outline-offset: 2px;
|
|
34
|
-
outline: dashed black;
|
|
35
34
|
`;b`
|
|
36
35
|
:host * {
|
|
37
36
|
box-sizing: border-box;
|
|
@@ -78,7 +77,7 @@
|
|
|
78
77
|
`,Ne=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
79
78
|
<path d="M7.12506 1C10.5018 1 13.2509 3.74834 13.251 7.125C13.2511 8.59738 12.7172 10.0206 11.7491 11.1299L14.8731 14.2539C15.0433 14.4253 15.0435 14.7018 14.8731 14.873C14.7913 14.9555 14.6797 15.002 14.5635 15.002C14.4475 15.0019 14.3357 14.9554 14.254 14.873L11.1309 11.749C10.0555 12.6818 8.6564 13.251 7.12506 13.251C3.7484 13.2508 1.00006 10.5017 1.00006 7.125C1.00025 3.74846 3.74852 1.00019 7.12506 1ZM7.12506 1.875C4.22971 1.87522 1.87506 4.23058 1.87506 7.12598C1.87532 10.0212 4.22987 12.3758 7.12506 12.376C10.0204 12.376 12.3758 10.0213 12.376 7.12598C12.376 4.23044 10.0206 1.875 7.12506 1.875Z" fill="#3F2B2E"/>
|
|
80
79
|
</svg>
|
|
81
|
-
`,
|
|
80
|
+
`,Fe=`<?xml version="1.0" encoding="utf-8"?>
|
|
82
81
|
<!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
83
82
|
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
84
83
|
viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
|
|
@@ -88,7 +87,7 @@
|
|
|
88
87
|
<path class="st0" d="M40,20c0,0.7-0.6,1.2-1.2,1.2H21.2v17.5c0,0.7-0.6,1.2-1.2,1.2s-1.2-0.6-1.2-1.2V21.2H1.2C0.6,21.2,0,20.7,0,20
|
|
89
88
|
s0.6-1.2,1.2-1.2h17.5V1.2C18.8,0.6,19.3,0,20,0s1.2,0.6,1.2,1.2v17.5h17.5C39.4,18.8,40,19.3,40,20z"/>
|
|
90
89
|
</svg>
|
|
91
|
-
`,
|
|
90
|
+
`,Re=`<?xml version="1.0" encoding="utf-8"?>
|
|
92
91
|
<!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
93
92
|
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
94
93
|
viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
|
|
@@ -131,7 +130,7 @@
|
|
|
131
130
|
<path d="M2.31202e-08 7.85218C0.974855 6.83983 3.01741 4.44477 6.12766 0.666992L6.54545 0.926252C5.54739 3.04971 4.35203 5.40773 2.95938 8.00033C4.35203 10.5929 5.54739 12.9509 6.54545 15.0744L6.12766 15.3337C3.01741 11.5559 0.974855 9.16082 0 8.14847L2.31202e-08 7.85218Z" fill="#3F2B2E"/>
|
|
132
131
|
<path d="M16 8.14847C15.0251 9.16082 12.9826 11.5559 9.87234 15.3337L9.45455 15.0744C10.4526 12.9509 11.648 10.5929 13.0406 8.00033C11.648 5.40773 10.4526 3.04971 9.45455 0.92625L9.87234 0.666992C12.9826 4.44477 15.0251 6.83983 16 7.85218V8.14847Z" fill="#3F2B2E"/>
|
|
133
132
|
</svg>
|
|
134
|
-
`,G={wishlist:Ie,playerv:Oe,chevronRight:Be,chevronLeft:ze,icoPlus:
|
|
133
|
+
`,G={wishlist:Ie,playerv:Oe,chevronRight:Be,chevronLeft:ze,icoPlus:Fe,icoMinus:Re,"star-0":De,"star-25":He,"star-50":Te,"star-75":Me,"star-100":je,cross:Ue,search:Ne,arrowLeft:Ve,arrowTop:Ze,cart:qe,notifyme:We,triangledown:Ke,triangleup:Ge,checkstroke:Xe,pause:Je,mapDualArrow:Qe,swipeDualArrow:to},eo={strikeDiagonal:Ye};/**
|
|
135
134
|
* @license
|
|
136
135
|
* Copyright 2017 Google LLC
|
|
137
136
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -173,6 +172,10 @@
|
|
|
173
172
|
display: inline-flex;
|
|
174
173
|
}
|
|
175
174
|
|
|
175
|
+
:host(.a--tabfocus) {
|
|
176
|
+
outline: none !important;
|
|
177
|
+
}
|
|
178
|
+
|
|
176
179
|
:host([fullwidth]) {
|
|
177
180
|
width: 100%;
|
|
178
181
|
}
|
|
@@ -1010,7 +1013,7 @@
|
|
|
1010
1013
|
--line-height: var(--line-height-280);
|
|
1011
1014
|
}
|
|
1012
1015
|
}
|
|
1013
|
-
`;g([a({type:Boolean,reflect:!0})],v.prototype,"open",2);g([a({type:Boolean,reflect:!0})],v.prototype,"showHeader",2);g([a({type:Boolean,reflect:!0})],v.prototype,"showFooter",2);g([a({type:Boolean,reflect:!0})],v.prototype,"showHeaderStartIcon",2);g([a({type:String,reflect:!0})],v.prototype,"headerTitle",2);g([a({type:String,reflect:!0})],v.prototype,"headerTitleClassName",2);g([a({type:String,reflect:!0})],v.prototype,"closeButtonLabel",2);g([a({type:String,reflect:!0})],v.prototype,"firstButtonLabel",2);g([a({type:String,reflect:!0})],v.prototype,"firstButtonVariant",2);g([a({type:Object,reflect:!0})],v.prototype,"firstButtonProps",2);g([a({type:Boolean,reflect:!0})],v.prototype,"onFirstButtonClickClose",2);g([a({type:String,reflect:!0})],v.prototype,"secondButtonLabel",2);g([a({type:String,reflect:!0})],v.prototype,"secondButtonVariant",2);g([a({type:Object,reflect:!0})],v.prototype,"secondButtonProps",2);g([a({type:Boolean,reflect:!0})],v.prototype,"onSecondButtonClickClose",2);g([a({type:Boolean,reflect:!0})],v.prototype,"disablePortal",2);g([a({type:Number,reflect:!0})],v.prototype,"zIndex",2);g([a({type:Boolean,reflect:!0})],v.prototype,"initialized",2);v=g([x("o-side-panel")],v);var Co=Object.defineProperty,ko=Object.getOwnPropertyDescriptor,
|
|
1016
|
+
`;g([a({type:Boolean,reflect:!0})],v.prototype,"open",2);g([a({type:Boolean,reflect:!0})],v.prototype,"showHeader",2);g([a({type:Boolean,reflect:!0})],v.prototype,"showFooter",2);g([a({type:Boolean,reflect:!0})],v.prototype,"showHeaderStartIcon",2);g([a({type:String,reflect:!0})],v.prototype,"headerTitle",2);g([a({type:String,reflect:!0})],v.prototype,"headerTitleClassName",2);g([a({type:String,reflect:!0})],v.prototype,"closeButtonLabel",2);g([a({type:String,reflect:!0})],v.prototype,"firstButtonLabel",2);g([a({type:String,reflect:!0})],v.prototype,"firstButtonVariant",2);g([a({type:Object,reflect:!0})],v.prototype,"firstButtonProps",2);g([a({type:Boolean,reflect:!0})],v.prototype,"onFirstButtonClickClose",2);g([a({type:String,reflect:!0})],v.prototype,"secondButtonLabel",2);g([a({type:String,reflect:!0})],v.prototype,"secondButtonVariant",2);g([a({type:Object,reflect:!0})],v.prototype,"secondButtonProps",2);g([a({type:Boolean,reflect:!0})],v.prototype,"onSecondButtonClickClose",2);g([a({type:Boolean,reflect:!0})],v.prototype,"disablePortal",2);g([a({type:Number,reflect:!0})],v.prototype,"zIndex",2);g([a({type:Boolean,reflect:!0})],v.prototype,"initialized",2);v=g([x("o-side-panel")],v);var Co=Object.defineProperty,ko=Object.getOwnPropertyDescriptor,F=(o,t,e,n)=>{for(var i=n>1?void 0:n?ko(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Co(t,e,i),i};let P=class extends u{constructor(){super(...arguments),this.thumbnails=[],this.activeIndex=0,this.disabledIndexes=[],this.maxWidth="100%",this.altressource="visual",this.focusedIndex=0,this.playerIconTemplate=l`
|
|
1014
1017
|
<o-icon-button
|
|
1015
1018
|
icon="playerv"
|
|
1016
1019
|
size="xsmall"
|
|
@@ -1146,7 +1149,7 @@
|
|
|
1146
1149
|
height: 0;
|
|
1147
1150
|
width: 0;
|
|
1148
1151
|
}
|
|
1149
|
-
`;
|
|
1152
|
+
`;F([a({type:Array})],P.prototype,"thumbnails",2);F([a({type:Number})],P.prototype,"activeIndex",2);F([a({type:Array})],P.prototype,"disabledIndexes",2);F([a({type:String})],P.prototype,"maxWidth",2);F([a({type:String})],P.prototype,"altressource",2);F([a({type:Object})],P.prototype,"swiperInstance",2);F([K()],P.prototype,"focusedIndex",2);P=F([x("thumbnail-navigation")],P);var Ao=Object.defineProperty,Eo=Object.getOwnPropertyDescriptor,jt=(o,t,e,n)=>{for(var i=n>1?void 0:n?Eo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Ao(t,e,i),i};let lt=class extends u{constructor(){super(...arguments),this.type="",this.bgstyle="background-white"}render(){return l`
|
|
1150
1153
|
<span class="tag ${this.bgstyle}"><slot></slot></span>
|
|
1151
1154
|
`}};lt.styles=b`
|
|
1152
1155
|
.tag {
|
|
@@ -1866,7 +1869,7 @@
|
|
|
1866
1869
|
overflow: hidden;
|
|
1867
1870
|
}
|
|
1868
1871
|
}
|
|
1869
|
-
`;Nt([a({type:Object,reflect:!0})],ht.prototype,"option",2);Nt([a({type:Number,reflect:!0})],ht.prototype,"imageSize",2);ht=Nt([x("o-reassurance")],ht);var Uo=Object.defineProperty,No=Object.getOwnPropertyDescriptor,H=(o,t,e,n)=>{for(var i=n>1?void 0:n?No(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Uo(t,e,i),i};const
|
|
1872
|
+
`;Nt([a({type:Object,reflect:!0})],ht.prototype,"option",2);Nt([a({type:Number,reflect:!0})],ht.prototype,"imageSize",2);ht=Nt([x("o-reassurance")],ht);var Uo=Object.defineProperty,No=Object.getOwnPropertyDescriptor,H=(o,t,e,n)=>{for(var i=n>1?void 0:n?No(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Uo(t,e,i),i};const Fo=Dt(u);let k=class extends Fo{constructor(){super(...arguments),this.link="",this.name="",this.value="",this.text="",this.size="standard",this.selected=!1,this.fullwidth=!1,this.inactive=!1}handleClick(o){this.selected||(this.selected=!0);const t={selected:this.selected},e=new CustomEvent("selected",{detail:t,bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(e),e.defaultPrevented&&o.preventDefault(),this.selected=t.selected}render(){const o=this.text;return this.link?l`
|
|
1870
1873
|
<a href="${this.link}" class="o-chip" tabindex="${this.inactive?"-1":"0"}" aria-hidden="${this.inactive?"true":"false"}">
|
|
1871
1874
|
${o?this.text:l`<slot></slot>`}
|
|
1872
1875
|
</a>
|
|
@@ -1890,6 +1893,10 @@
|
|
|
1890
1893
|
--button-endicon-svg-width: 0px; /* No endicon SVG for secondary button */
|
|
1891
1894
|
}
|
|
1892
1895
|
|
|
1896
|
+
:host(.a--tabfocus) {
|
|
1897
|
+
outline: none !important;
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1893
1900
|
:host([fullwidth]) {
|
|
1894
1901
|
width: 100%;
|
|
1895
1902
|
}
|
|
@@ -1960,7 +1967,7 @@
|
|
|
1960
1967
|
display: inline-flex;
|
|
1961
1968
|
align-items: center;
|
|
1962
1969
|
}
|
|
1963
|
-
`;H([a({type:String,reflect:!0})],k.prototype,"link",2);H([a({reflect:!0})],k.prototype,"name",2);H([a({reflect:!0})],k.prototype,"value",2);H([a({type:String})],k.prototype,"text",2);H([a({type:String,reflect:!0})],k.prototype,"size",2);H([a({type:Boolean,reflect:!0})],k.prototype,"selected",2);H([a({type:Boolean,reflect:!0})],k.prototype,"fullwidth",2);H([a({type:Boolean,reflect:!0})],k.prototype,"inactive",2);k=H([x("o-chip")],k);var
|
|
1970
|
+
`;H([a({type:String,reflect:!0})],k.prototype,"link",2);H([a({reflect:!0})],k.prototype,"name",2);H([a({reflect:!0})],k.prototype,"value",2);H([a({type:String})],k.prototype,"text",2);H([a({type:String,reflect:!0})],k.prototype,"size",2);H([a({type:Boolean,reflect:!0})],k.prototype,"selected",2);H([a({type:Boolean,reflect:!0})],k.prototype,"fullwidth",2);H([a({type:Boolean,reflect:!0})],k.prototype,"inactive",2);k=H([x("o-chip")],k);var Ro=Object.defineProperty,Vo=Object.getOwnPropertyDescriptor,Ft=(o,t,e,n)=>{for(var i=n>1?void 0:n?Vo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Ro(t,e,i),i};let dt=class extends u{constructor(){super(),this.name="",this.value="",this.addEventListener("selected",this.onChipSelected)}onChipSelected(o){const t=o.target instanceof k?o.target:null;t!=null&&t.link||(this.name=(t==null?void 0:t.name)||"",this.value=(t==null?void 0:t.value)||"",this.querySelectorAll("o-chip").forEach(e=>{e!==t&&(e.selected=!1)}))}render(){return l`
|
|
1964
1971
|
<slot></slot>
|
|
1965
1972
|
`}};dt.styles=b`
|
|
1966
1973
|
:host {
|
|
@@ -1969,7 +1976,7 @@
|
|
|
1969
1976
|
flex-wrap: wrap;
|
|
1970
1977
|
gap: var(--spacing-s);
|
|
1971
1978
|
}
|
|
1972
|
-
`;
|
|
1979
|
+
`;Ft([a({reflect:!0})],dt.prototype,"name",2);Ft([a({reflect:!0})],dt.prototype,"value",2);dt=Ft([x("o-chipset")],dt);var Zo=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,T=(o,t,e,n)=>{for(var i=n>1?void 0:n?qo(t,e):t,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=(n?s(t,e,i):s(i))||i);return n&&i&&Zo(t,e,i),i};const Wo=Dt(u);let E=class extends Wo{constructor(){super(...arguments),this.name="",this.value="",this.type="",this.dataHref="",this.text="",this.selected=!1,this.disabled=!1,this.fullwidth=!1,this.crossIconName="cross",this.strikethroughImgName="strikeDiagonal"}handleClick(o){if(o instanceof KeyboardEvent&&o.key!=="Enter"&&o.key!==" ")return;this.selected=!this.selected;const t={selected:this.selected},e=new CustomEvent("selected",{detail:t,bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(e),e.defaultPrevented&&o.preventDefault(),this.selected=t.selected}crossIcon(){const o=G[this.crossIconName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="svg"').replace(/stroke=[#"'a-z1-9]*/gi,"");return l`<span class="cross-icon">${L(o)}</span>`}strikeThroughImg(){const o=eo[this.strikethroughImgName].replace("<svg",'<svg aria-hidden="true" focusable="false" part="strikethrough"').replace(/stroke=[#"'a-z1-9]*/gi,"");return L(o)}render(){const o=this.text;return l`${this.type==="link"?l`
|
|
1973
1980
|
<a role="button" tabindex="0" class="button" href=${this.dataHref} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
|
|
1974
1981
|
aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
|
|
1975
1982
|
${o?l`
|
|
@@ -2005,6 +2012,10 @@
|
|
|
2005
2012
|
--button-strikethrough-stroke: var(--color-border-secondary);
|
|
2006
2013
|
}
|
|
2007
2014
|
|
|
2015
|
+
:host(.a--tabfocus) {
|
|
2016
|
+
outline: none !important;
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2008
2019
|
:host([fullwidth]) {
|
|
2009
2020
|
width: 100%;
|
|
2010
2021
|
}
|
|
@@ -2110,7 +2121,7 @@
|
|
|
2110
2121
|
stroke-linecap: round;
|
|
2111
2122
|
}
|
|
2112
2123
|
}
|
|
2113
|
-
`;T([a({reflect:!0})],E.prototype,"name",2);T([a({reflect:!0})],E.prototype,"value",2);T([a({type:String,reflect:!0})],E.prototype,"type",2);T([a({type:String,reflect:!0,attribute:"data-href"})],E.prototype,"dataHref",2);T([a({type:String})],E.prototype,"text",2);T([a({type:Boolean,reflect:!0})],E.prototype,"selected",2);T([a({type:Boolean,reflect:!0})],E.prototype,"disabled",2);T([a({type:Boolean,reflect:!0})],E.prototype,"fullwidth",2);E=T([x("o-filter-chip")],E);var Ko=Object.defineProperty,
|
|
2124
|
+
`;T([a({reflect:!0})],E.prototype,"name",2);T([a({reflect:!0})],E.prototype,"value",2);T([a({type:String,reflect:!0})],E.prototype,"type",2);T([a({type:String,reflect:!0,attribute:"data-href"})],E.prototype,"dataHref",2);T([a({type:String})],E.prototype,"text",2);T([a({type:Boolean,reflect:!0})],E.prototype,"selected",2);T([a({type:Boolean,reflect:!0})],E.prototype,"disabled",2);T([a({type:Boolean,reflect:!0})],E.prototype,"fullwidth",2);E=T([x("o-filter-chip")],E);var Ko=Object.defineProperty,R=(o,t,e,n)=>{for(var i=void 0,r=o.length-1,s;r>=0;r--)(s=o[r])&&(i=s(t,e,i)||i);return i&&Ko(t,e,i),i};const Rt=class Rt extends u{constructor(){super(...arguments),this.type="cart | chevron",this.titleProduct="",this.volume="",this.perLiter="",this.mainPrice="",this.imageUrl="https://placehold.co/56x70",this.altImage=""}onClick(){typeof this.onClickTile=="function"&&this.onClickTile()}get icons(){return this.type==="chevron"?l`
|
|
2114
2125
|
<o-icon-button
|
|
2115
2126
|
@click=${this.onClick}
|
|
2116
2127
|
icon="chevronRight"
|
|
@@ -2134,17 +2145,15 @@
|
|
|
2134
2145
|
${this.imageUrl?l`<img src="${this.imageUrl}" alt="${this.altImage||""}" />`:""}
|
|
2135
2146
|
<div class="info">
|
|
2136
2147
|
${this.titleProduct?l`<div class="title">${this.titleProduct}</div>`:""}
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
</div>
|
|
2143
|
-
`:""}
|
|
2148
|
+
<div class="details">
|
|
2149
|
+
${this.volume?l`<span class="volume-info">${this.volume}</span>`:""}
|
|
2150
|
+
${this.type==="cart"&&this.mainPrice?l`<span class="main-price">${this.mainPrice}</span>`:""}
|
|
2151
|
+
${this.type==="cart"&&this.perLiter?l`<span class="per-liter">${this.perLiter}</span>`:""}
|
|
2152
|
+
</div>
|
|
2144
2153
|
</div>
|
|
2145
2154
|
${this.icons}
|
|
2146
2155
|
</div>
|
|
2147
|
-
`}};
|
|
2156
|
+
`}};Rt.styles=b`
|
|
2148
2157
|
.tile {
|
|
2149
2158
|
display: flex;
|
|
2150
2159
|
align-items: center;
|
|
@@ -2163,6 +2172,7 @@
|
|
|
2163
2172
|
object-fit: cover;
|
|
2164
2173
|
width: 56px;
|
|
2165
2174
|
height: auto;
|
|
2175
|
+
background: linear-gradient(to bottom, #F9F5F0, #F7F2EA);
|
|
2166
2176
|
}
|
|
2167
2177
|
|
|
2168
2178
|
.info {
|
|
@@ -2216,4 +2226,4 @@
|
|
|
2216
2226
|
letter-spacing: var(--letter-spacing-absolute);
|
|
2217
2227
|
line-height: var(--line-height-160);
|
|
2218
2228
|
}
|
|
2219
|
-
`;let S=
|
|
2229
|
+
`;let S=Rt;R([a({type:String})],S.prototype,"type");R([a({type:String})],S.prototype,"titleProduct");R([a({type:String})],S.prototype,"volume");R([a({type:String})],S.prototype,"perLiter");R([a({type:String})],S.prototype,"mainPrice");R([a({type:String})],S.prototype,"imageUrl");R([a({type:String})],S.prototype,"altImage");R([a({type:Function})],S.prototype,"onClickTile");customElements.define("mini-tile",S);
|
package/index.mjs
CHANGED
|
@@ -600,9 +600,8 @@ function K(o) {
|
|
|
600
600
|
return a({ ...o, state: !0, attribute: !1 });
|
|
601
601
|
}
|
|
602
602
|
const mt = b`
|
|
603
|
-
outline: 1px dashed var(--
|
|
603
|
+
outline: 1px dashed var(--color-border-primary);
|
|
604
604
|
outline-offset: 2px;
|
|
605
|
-
outline: dashed black;
|
|
606
605
|
`;
|
|
607
606
|
b`
|
|
608
607
|
:host * {
|
|
@@ -690,7 +689,7 @@ const Ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
690
689
|
`, Ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
691
690
|
<path d="M7.12506 1C10.5018 1 13.2509 3.74834 13.251 7.125C13.2511 8.59738 12.7172 10.0206 11.7491 11.1299L14.8731 14.2539C15.0433 14.4253 15.0435 14.7018 14.8731 14.873C14.7913 14.9555 14.6797 15.002 14.5635 15.002C14.4475 15.0019 14.3357 14.9554 14.254 14.873L11.1309 11.749C10.0555 12.6818 8.6564 13.251 7.12506 13.251C3.7484 13.2508 1.00006 10.5017 1.00006 7.125C1.00025 3.74846 3.74852 1.00019 7.12506 1ZM7.12506 1.875C4.22971 1.87522 1.87506 4.23058 1.87506 7.12598C1.87532 10.0212 4.22987 12.3758 7.12506 12.376C10.0204 12.376 12.3758 10.0213 12.376 7.12598C12.376 4.23044 10.0206 1.875 7.12506 1.875Z" fill="#3F2B2E"/>
|
|
692
691
|
</svg>
|
|
693
|
-
`,
|
|
692
|
+
`, Fe = `<?xml version="1.0" encoding="utf-8"?>
|
|
694
693
|
<!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
695
694
|
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
696
695
|
viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
|
|
@@ -700,7 +699,7 @@ const Ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
700
699
|
<path class="st0" d="M40,20c0,0.7-0.6,1.2-1.2,1.2H21.2v17.5c0,0.7-0.6,1.2-1.2,1.2s-1.2-0.6-1.2-1.2V21.2H1.2C0.6,21.2,0,20.7,0,20
|
|
701
700
|
s0.6-1.2,1.2-1.2h17.5V1.2C18.8,0.6,19.3,0,20,0s1.2,0.6,1.2,1.2v17.5h17.5C39.4,18.8,40,19.3,40,20z"/>
|
|
702
701
|
</svg>
|
|
703
|
-
`,
|
|
702
|
+
`, Re = `<?xml version="1.0" encoding="utf-8"?>
|
|
704
703
|
<!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
705
704
|
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
706
705
|
viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
|
|
@@ -748,8 +747,8 @@ const Ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
748
747
|
playerv: Oe,
|
|
749
748
|
chevronRight: Be,
|
|
750
749
|
chevronLeft: ze,
|
|
751
|
-
icoPlus:
|
|
752
|
-
icoMinus:
|
|
750
|
+
icoPlus: Fe,
|
|
751
|
+
icoMinus: Re,
|
|
753
752
|
"star-0": De,
|
|
754
753
|
"star-25": He,
|
|
755
754
|
"star-50": Te,
|
|
@@ -899,6 +898,10 @@ f.styles = b`
|
|
|
899
898
|
display: inline-flex;
|
|
900
899
|
}
|
|
901
900
|
|
|
901
|
+
:host(.a--tabfocus) {
|
|
902
|
+
outline: none !important;
|
|
903
|
+
}
|
|
904
|
+
|
|
902
905
|
:host([fullwidth]) {
|
|
903
906
|
width: 100%;
|
|
904
907
|
}
|
|
@@ -2294,7 +2297,7 @@ g([
|
|
|
2294
2297
|
v = g([
|
|
2295
2298
|
x("o-side-panel")
|
|
2296
2299
|
], v);
|
|
2297
|
-
var Co = Object.defineProperty, ko = Object.getOwnPropertyDescriptor,
|
|
2300
|
+
var Co = Object.defineProperty, ko = Object.getOwnPropertyDescriptor, F = (o, t, e, n) => {
|
|
2298
2301
|
for (var i = n > 1 ? void 0 : n ? ko(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2299
2302
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2300
2303
|
return n && i && Co(t, e, i), i;
|
|
@@ -2482,28 +2485,28 @@ P.styles = b`
|
|
|
2482
2485
|
width: 0;
|
|
2483
2486
|
}
|
|
2484
2487
|
`;
|
|
2485
|
-
|
|
2488
|
+
F([
|
|
2486
2489
|
a({ type: Array })
|
|
2487
2490
|
], P.prototype, "thumbnails", 2);
|
|
2488
|
-
|
|
2491
|
+
F([
|
|
2489
2492
|
a({ type: Number })
|
|
2490
2493
|
], P.prototype, "activeIndex", 2);
|
|
2491
|
-
|
|
2494
|
+
F([
|
|
2492
2495
|
a({ type: Array })
|
|
2493
2496
|
], P.prototype, "disabledIndexes", 2);
|
|
2494
|
-
|
|
2497
|
+
F([
|
|
2495
2498
|
a({ type: String })
|
|
2496
2499
|
], P.prototype, "maxWidth", 2);
|
|
2497
|
-
|
|
2500
|
+
F([
|
|
2498
2501
|
a({ type: String })
|
|
2499
2502
|
], P.prototype, "altressource", 2);
|
|
2500
|
-
|
|
2503
|
+
F([
|
|
2501
2504
|
a({ type: Object })
|
|
2502
2505
|
], P.prototype, "swiperInstance", 2);
|
|
2503
|
-
|
|
2506
|
+
F([
|
|
2504
2507
|
K()
|
|
2505
2508
|
], P.prototype, "focusedIndex", 2);
|
|
2506
|
-
P =
|
|
2509
|
+
P = F([
|
|
2507
2510
|
x("thumbnail-navigation")
|
|
2508
2511
|
], P);
|
|
2509
2512
|
var Ao = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, jt = (o, t, e, n) => {
|
|
@@ -3564,8 +3567,8 @@ var Uo = Object.defineProperty, No = Object.getOwnPropertyDescriptor, H = (o, t,
|
|
|
3564
3567
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3565
3568
|
return n && i && Uo(t, e, i), i;
|
|
3566
3569
|
};
|
|
3567
|
-
const
|
|
3568
|
-
let k = class extends
|
|
3570
|
+
const Fo = Dt(u);
|
|
3571
|
+
let k = class extends Fo {
|
|
3569
3572
|
constructor() {
|
|
3570
3573
|
super(...arguments), this.link = "", this.name = "", this.value = "", this.text = "", this.size = "standard", this.selected = !1, this.fullwidth = !1, this.inactive = !1;
|
|
3571
3574
|
}
|
|
@@ -3603,6 +3606,10 @@ k.styles = b`
|
|
|
3603
3606
|
--button-endicon-svg-width: 0px; /* No endicon SVG for secondary button */
|
|
3604
3607
|
}
|
|
3605
3608
|
|
|
3609
|
+
:host(.a--tabfocus) {
|
|
3610
|
+
outline: none !important;
|
|
3611
|
+
}
|
|
3612
|
+
|
|
3606
3613
|
:host([fullwidth]) {
|
|
3607
3614
|
width: 100%;
|
|
3608
3615
|
}
|
|
@@ -3701,10 +3708,10 @@ H([
|
|
|
3701
3708
|
k = H([
|
|
3702
3709
|
x("o-chip")
|
|
3703
3710
|
], k);
|
|
3704
|
-
var
|
|
3711
|
+
var Ro = Object.defineProperty, Vo = Object.getOwnPropertyDescriptor, Ft = (o, t, e, n) => {
|
|
3705
3712
|
for (var i = n > 1 ? void 0 : n ? Vo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3706
3713
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3707
|
-
return n && i &&
|
|
3714
|
+
return n && i && Ro(t, e, i), i;
|
|
3708
3715
|
};
|
|
3709
3716
|
let dt = class extends u {
|
|
3710
3717
|
constructor() {
|
|
@@ -3730,13 +3737,13 @@ dt.styles = b`
|
|
|
3730
3737
|
gap: var(--spacing-s);
|
|
3731
3738
|
}
|
|
3732
3739
|
`;
|
|
3733
|
-
|
|
3740
|
+
Ft([
|
|
3734
3741
|
a({ reflect: !0 })
|
|
3735
3742
|
], dt.prototype, "name", 2);
|
|
3736
|
-
|
|
3743
|
+
Ft([
|
|
3737
3744
|
a({ reflect: !0 })
|
|
3738
3745
|
], dt.prototype, "value", 2);
|
|
3739
|
-
dt =
|
|
3746
|
+
dt = Ft([
|
|
3740
3747
|
x("o-chipset")
|
|
3741
3748
|
], dt);
|
|
3742
3749
|
var Zo = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, T = (o, t, e, n) => {
|
|
@@ -3811,6 +3818,10 @@ E.styles = b`
|
|
|
3811
3818
|
--button-strikethrough-stroke: var(--color-border-secondary);
|
|
3812
3819
|
}
|
|
3813
3820
|
|
|
3821
|
+
:host(.a--tabfocus) {
|
|
3822
|
+
outline: none !important;
|
|
3823
|
+
}
|
|
3824
|
+
|
|
3814
3825
|
:host([fullwidth]) {
|
|
3815
3826
|
width: 100%;
|
|
3816
3827
|
}
|
|
@@ -3944,12 +3955,12 @@ T([
|
|
|
3944
3955
|
E = T([
|
|
3945
3956
|
x("o-filter-chip")
|
|
3946
3957
|
], E);
|
|
3947
|
-
var Ko = Object.defineProperty,
|
|
3958
|
+
var Ko = Object.defineProperty, R = (o, t, e, n) => {
|
|
3948
3959
|
for (var i = void 0, r = o.length - 1, s; r >= 0; r--)
|
|
3949
3960
|
(s = o[r]) && (i = s(t, e, i) || i);
|
|
3950
3961
|
return i && Ko(t, e, i), i;
|
|
3951
3962
|
};
|
|
3952
|
-
const
|
|
3963
|
+
const Rt = class Rt extends u {
|
|
3953
3964
|
constructor() {
|
|
3954
3965
|
super(...arguments), this.type = "cart | chevron", this.titleProduct = "", this.volume = "", this.perLiter = "", this.mainPrice = "", this.imageUrl = "https://placehold.co/56x70", this.altImage = "";
|
|
3955
3966
|
}
|
|
@@ -3984,20 +3995,18 @@ const Ft = class Ft extends u {
|
|
|
3984
3995
|
${this.imageUrl ? l`<img src="${this.imageUrl}" alt="${this.altImage || ""}" />` : ""}
|
|
3985
3996
|
<div class="info">
|
|
3986
3997
|
${this.titleProduct ? l`<div class="title">${this.titleProduct}</div>` : ""}
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
</div>
|
|
3993
|
-
` : ""}
|
|
3998
|
+
<div class="details">
|
|
3999
|
+
${this.volume ? l`<span class="volume-info">${this.volume}</span>` : ""}
|
|
4000
|
+
${this.type === "cart" && this.mainPrice ? l`<span class="main-price">${this.mainPrice}</span>` : ""}
|
|
4001
|
+
${this.type === "cart" && this.perLiter ? l`<span class="per-liter">${this.perLiter}</span>` : ""}
|
|
4002
|
+
</div>
|
|
3994
4003
|
</div>
|
|
3995
4004
|
${this.icons}
|
|
3996
4005
|
</div>
|
|
3997
4006
|
`;
|
|
3998
4007
|
}
|
|
3999
4008
|
};
|
|
4000
|
-
|
|
4009
|
+
Rt.styles = b`
|
|
4001
4010
|
.tile {
|
|
4002
4011
|
display: flex;
|
|
4003
4012
|
align-items: center;
|
|
@@ -4016,6 +4025,7 @@ Ft.styles = b`
|
|
|
4016
4025
|
object-fit: cover;
|
|
4017
4026
|
width: 56px;
|
|
4018
4027
|
height: auto;
|
|
4028
|
+
background: linear-gradient(to bottom, #F9F5F0, #F7F2EA);
|
|
4019
4029
|
}
|
|
4020
4030
|
|
|
4021
4031
|
.info {
|
|
@@ -4070,29 +4080,29 @@ Ft.styles = b`
|
|
|
4070
4080
|
line-height: var(--line-height-160);
|
|
4071
4081
|
}
|
|
4072
4082
|
`;
|
|
4073
|
-
let S =
|
|
4074
|
-
|
|
4083
|
+
let S = Rt;
|
|
4084
|
+
R([
|
|
4075
4085
|
a({ type: String })
|
|
4076
4086
|
], S.prototype, "type");
|
|
4077
|
-
|
|
4087
|
+
R([
|
|
4078
4088
|
a({ type: String })
|
|
4079
4089
|
], S.prototype, "titleProduct");
|
|
4080
|
-
|
|
4090
|
+
R([
|
|
4081
4091
|
a({ type: String })
|
|
4082
4092
|
], S.prototype, "volume");
|
|
4083
|
-
|
|
4093
|
+
R([
|
|
4084
4094
|
a({ type: String })
|
|
4085
4095
|
], S.prototype, "perLiter");
|
|
4086
|
-
|
|
4096
|
+
R([
|
|
4087
4097
|
a({ type: String })
|
|
4088
4098
|
], S.prototype, "mainPrice");
|
|
4089
|
-
|
|
4099
|
+
R([
|
|
4090
4100
|
a({ type: String })
|
|
4091
4101
|
], S.prototype, "imageUrl");
|
|
4092
|
-
|
|
4102
|
+
R([
|
|
4093
4103
|
a({ type: String })
|
|
4094
4104
|
], S.prototype, "altImage");
|
|
4095
|
-
|
|
4105
|
+
R([
|
|
4096
4106
|
a({ type: Function })
|
|
4097
4107
|
], S.prototype, "onClickTile");
|
|
4098
4108
|
customElements.define("mini-tile", S);
|