@florid-kit/components 0.8.41 → 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.
Files changed (3) hide show
  1. package/index.js +17 -18
  2. package/index.mjs +38 -39
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -77,7 +77,7 @@
77
77
  `,Ne=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
78
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"/>
79
79
  </svg>
80
- `,Re=`<?xml version="1.0" encoding="utf-8"?>
80
+ `,Fe=`<?xml version="1.0" encoding="utf-8"?>
81
81
  <!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
82
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"
83
83
  viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
@@ -87,7 +87,7 @@
87
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
88
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"/>
89
89
  </svg>
90
- `,Fe=`<?xml version="1.0" encoding="utf-8"?>
90
+ `,Re=`<?xml version="1.0" encoding="utf-8"?>
91
91
  <!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
92
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"
93
93
  viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
@@ -130,7 +130,7 @@
130
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"/>
131
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"/>
132
132
  </svg>
133
- `,G={wishlist:Ie,playerv:Oe,chevronRight:Be,chevronLeft:ze,icoPlus:Re,icoMinus:Fe,"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};/**
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};/**
134
134
  * @license
135
135
  * Copyright 2017 Google LLC
136
136
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1013,7 +1013,7 @@
1013
1013
  --line-height: var(--line-height-280);
1014
1014
  }
1015
1015
  }
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,R=(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`
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`
1017
1017
  <o-icon-button
1018
1018
  icon="playerv"
1019
1019
  size="xsmall"
@@ -1149,7 +1149,7 @@
1149
1149
  height: 0;
1150
1150
  width: 0;
1151
1151
  }
1152
- `;R([a({type:Array})],P.prototype,"thumbnails",2);R([a({type:Number})],P.prototype,"activeIndex",2);R([a({type:Array})],P.prototype,"disabledIndexes",2);R([a({type:String})],P.prototype,"maxWidth",2);R([a({type:String})],P.prototype,"altressource",2);R([a({type:Object})],P.prototype,"swiperInstance",2);R([K()],P.prototype,"focusedIndex",2);P=R([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`
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`
1153
1153
  <span class="tag ${this.bgstyle}"><slot></slot></span>
1154
1154
  `}};lt.styles=b`
1155
1155
  .tag {
@@ -1869,7 +1869,7 @@
1869
1869
  overflow: hidden;
1870
1870
  }
1871
1871
  }
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 Ro=Dt(u);let k=class extends Ro{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`
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`
1873
1873
  <a href="${this.link}" class="o-chip" tabindex="${this.inactive?"-1":"0"}" aria-hidden="${this.inactive?"true":"false"}">
1874
1874
  ${o?this.text:l`<slot></slot>`}
1875
1875
  </a>
@@ -1967,7 +1967,7 @@
1967
1967
  display: inline-flex;
1968
1968
  align-items: center;
1969
1969
  }
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 Fo=Object.defineProperty,Vo=Object.getOwnPropertyDescriptor,Rt=(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&&Fo(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`
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`
1971
1971
  <slot></slot>
1972
1972
  `}};dt.styles=b`
1973
1973
  :host {
@@ -1976,7 +1976,7 @@
1976
1976
  flex-wrap: wrap;
1977
1977
  gap: var(--spacing-s);
1978
1978
  }
1979
- `;Rt([a({reflect:!0})],dt.prototype,"name",2);Rt([a({reflect:!0})],dt.prototype,"value",2);dt=Rt([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`
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`
1980
1980
  <a role="button" tabindex="0" class="button" href=${this.dataHref} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
1981
1981
  aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
1982
1982
  ${o?l`
@@ -2121,7 +2121,7 @@
2121
2121
  stroke-linecap: round;
2122
2122
  }
2123
2123
  }
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,F=(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 Ft=class Ft 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`
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`
2125
2125
  <o-icon-button
2126
2126
  @click=${this.onClick}
2127
2127
  icon="chevronRight"
@@ -2145,17 +2145,15 @@
2145
2145
  ${this.imageUrl?l`<img src="${this.imageUrl}" alt="${this.altImage||""}" />`:""}
2146
2146
  <div class="info">
2147
2147
  ${this.titleProduct?l`<div class="title">${this.titleProduct}</div>`:""}
2148
- ${this.type==="cart"&&(this.volume||this.mainPrice||this.perLiter)?l`
2149
- <div class="details">
2150
- ${this.volume?l`<span class="volume-info">${this.volume}</span>`:""}
2151
- ${this.mainPrice?l`<span class="main-price">${this.mainPrice}</span>`:""}
2152
- ${this.perLiter?l`<span class="per-liter">${this.perLiter}</span>`:""}
2153
- </div>
2154
- `:""}
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>
2155
2153
  </div>
2156
2154
  ${this.icons}
2157
2155
  </div>
2158
- `}};Ft.styles=b`
2156
+ `}};Rt.styles=b`
2159
2157
  .tile {
2160
2158
  display: flex;
2161
2159
  align-items: center;
@@ -2174,6 +2172,7 @@
2174
2172
  object-fit: cover;
2175
2173
  width: 56px;
2176
2174
  height: auto;
2175
+ background: linear-gradient(to bottom, #F9F5F0, #F7F2EA);
2177
2176
  }
2178
2177
 
2179
2178
  .info {
@@ -2227,4 +2226,4 @@
2227
2226
  letter-spacing: var(--letter-spacing-absolute);
2228
2227
  line-height: var(--line-height-160);
2229
2228
  }
2230
- `;let S=Ft;F([a({type:String})],S.prototype,"type");F([a({type:String})],S.prototype,"titleProduct");F([a({type:String})],S.prototype,"volume");F([a({type:String})],S.prototype,"perLiter");F([a({type:String})],S.prototype,"mainPrice");F([a({type:String})],S.prototype,"imageUrl");F([a({type:String})],S.prototype,"altImage");F([a({type:Function})],S.prototype,"onClickTile");customElements.define("mini-tile",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
@@ -689,7 +689,7 @@ const Ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
689
689
  `, Ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
690
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"/>
691
691
  </svg>
692
- `, Re = `<?xml version="1.0" encoding="utf-8"?>
692
+ `, Fe = `<?xml version="1.0" encoding="utf-8"?>
693
693
  <!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
694
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"
695
695
  viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
@@ -699,7 +699,7 @@ const Ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
699
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
700
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"/>
701
701
  </svg>
702
- `, Fe = `<?xml version="1.0" encoding="utf-8"?>
702
+ `, Re = `<?xml version="1.0" encoding="utf-8"?>
703
703
  <!-- Generator: $$$/GeneralStr/196=Adobe Illustrator 27.6.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
704
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"
705
705
  viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">
@@ -747,8 +747,8 @@ const Ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
747
747
  playerv: Oe,
748
748
  chevronRight: Be,
749
749
  chevronLeft: ze,
750
- icoPlus: Re,
751
- icoMinus: Fe,
750
+ icoPlus: Fe,
751
+ icoMinus: Re,
752
752
  "star-0": De,
753
753
  "star-25": He,
754
754
  "star-50": Te,
@@ -2297,7 +2297,7 @@ g([
2297
2297
  v = g([
2298
2298
  x("o-side-panel")
2299
2299
  ], v);
2300
- var Co = Object.defineProperty, ko = Object.getOwnPropertyDescriptor, R = (o, t, e, n) => {
2300
+ var Co = Object.defineProperty, ko = Object.getOwnPropertyDescriptor, F = (o, t, e, n) => {
2301
2301
  for (var i = n > 1 ? void 0 : n ? ko(t, e) : t, r = o.length - 1, s; r >= 0; r--)
2302
2302
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
2303
2303
  return n && i && Co(t, e, i), i;
@@ -2485,28 +2485,28 @@ P.styles = b`
2485
2485
  width: 0;
2486
2486
  }
2487
2487
  `;
2488
- R([
2488
+ F([
2489
2489
  a({ type: Array })
2490
2490
  ], P.prototype, "thumbnails", 2);
2491
- R([
2491
+ F([
2492
2492
  a({ type: Number })
2493
2493
  ], P.prototype, "activeIndex", 2);
2494
- R([
2494
+ F([
2495
2495
  a({ type: Array })
2496
2496
  ], P.prototype, "disabledIndexes", 2);
2497
- R([
2497
+ F([
2498
2498
  a({ type: String })
2499
2499
  ], P.prototype, "maxWidth", 2);
2500
- R([
2500
+ F([
2501
2501
  a({ type: String })
2502
2502
  ], P.prototype, "altressource", 2);
2503
- R([
2503
+ F([
2504
2504
  a({ type: Object })
2505
2505
  ], P.prototype, "swiperInstance", 2);
2506
- R([
2506
+ F([
2507
2507
  K()
2508
2508
  ], P.prototype, "focusedIndex", 2);
2509
- P = R([
2509
+ P = F([
2510
2510
  x("thumbnail-navigation")
2511
2511
  ], P);
2512
2512
  var Ao = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, jt = (o, t, e, n) => {
@@ -3567,8 +3567,8 @@ var Uo = Object.defineProperty, No = Object.getOwnPropertyDescriptor, H = (o, t,
3567
3567
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
3568
3568
  return n && i && Uo(t, e, i), i;
3569
3569
  };
3570
- const Ro = Dt(u);
3571
- let k = class extends Ro {
3570
+ const Fo = Dt(u);
3571
+ let k = class extends Fo {
3572
3572
  constructor() {
3573
3573
  super(...arguments), this.link = "", this.name = "", this.value = "", this.text = "", this.size = "standard", this.selected = !1, this.fullwidth = !1, this.inactive = !1;
3574
3574
  }
@@ -3708,10 +3708,10 @@ H([
3708
3708
  k = H([
3709
3709
  x("o-chip")
3710
3710
  ], k);
3711
- var Fo = Object.defineProperty, Vo = Object.getOwnPropertyDescriptor, Rt = (o, t, e, n) => {
3711
+ var Ro = Object.defineProperty, Vo = Object.getOwnPropertyDescriptor, Ft = (o, t, e, n) => {
3712
3712
  for (var i = n > 1 ? void 0 : n ? Vo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
3713
3713
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
3714
- return n && i && Fo(t, e, i), i;
3714
+ return n && i && Ro(t, e, i), i;
3715
3715
  };
3716
3716
  let dt = class extends u {
3717
3717
  constructor() {
@@ -3737,13 +3737,13 @@ dt.styles = b`
3737
3737
  gap: var(--spacing-s);
3738
3738
  }
3739
3739
  `;
3740
- Rt([
3740
+ Ft([
3741
3741
  a({ reflect: !0 })
3742
3742
  ], dt.prototype, "name", 2);
3743
- Rt([
3743
+ Ft([
3744
3744
  a({ reflect: !0 })
3745
3745
  ], dt.prototype, "value", 2);
3746
- dt = Rt([
3746
+ dt = Ft([
3747
3747
  x("o-chipset")
3748
3748
  ], dt);
3749
3749
  var Zo = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, T = (o, t, e, n) => {
@@ -3955,12 +3955,12 @@ T([
3955
3955
  E = T([
3956
3956
  x("o-filter-chip")
3957
3957
  ], E);
3958
- var Ko = Object.defineProperty, F = (o, t, e, n) => {
3958
+ var Ko = Object.defineProperty, R = (o, t, e, n) => {
3959
3959
  for (var i = void 0, r = o.length - 1, s; r >= 0; r--)
3960
3960
  (s = o[r]) && (i = s(t, e, i) || i);
3961
3961
  return i && Ko(t, e, i), i;
3962
3962
  };
3963
- const Ft = class Ft extends u {
3963
+ const Rt = class Rt extends u {
3964
3964
  constructor() {
3965
3965
  super(...arguments), this.type = "cart | chevron", this.titleProduct = "", this.volume = "", this.perLiter = "", this.mainPrice = "", this.imageUrl = "https://placehold.co/56x70", this.altImage = "";
3966
3966
  }
@@ -3995,20 +3995,18 @@ const Ft = class Ft extends u {
3995
3995
  ${this.imageUrl ? l`<img src="${this.imageUrl}" alt="${this.altImage || ""}" />` : ""}
3996
3996
  <div class="info">
3997
3997
  ${this.titleProduct ? l`<div class="title">${this.titleProduct}</div>` : ""}
3998
- ${this.type === "cart" && (this.volume || this.mainPrice || this.perLiter) ? l`
3999
- <div class="details">
4000
- ${this.volume ? l`<span class="volume-info">${this.volume}</span>` : ""}
4001
- ${this.mainPrice ? l`<span class="main-price">${this.mainPrice}</span>` : ""}
4002
- ${this.perLiter ? l`<span class="per-liter">${this.perLiter}</span>` : ""}
4003
- </div>
4004
- ` : ""}
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>
4005
4003
  </div>
4006
4004
  ${this.icons}
4007
4005
  </div>
4008
4006
  `;
4009
4007
  }
4010
4008
  };
4011
- Ft.styles = b`
4009
+ Rt.styles = b`
4012
4010
  .tile {
4013
4011
  display: flex;
4014
4012
  align-items: center;
@@ -4027,6 +4025,7 @@ Ft.styles = b`
4027
4025
  object-fit: cover;
4028
4026
  width: 56px;
4029
4027
  height: auto;
4028
+ background: linear-gradient(to bottom, #F9F5F0, #F7F2EA);
4030
4029
  }
4031
4030
 
4032
4031
  .info {
@@ -4081,29 +4080,29 @@ Ft.styles = b`
4081
4080
  line-height: var(--line-height-160);
4082
4081
  }
4083
4082
  `;
4084
- let S = Ft;
4085
- F([
4083
+ let S = Rt;
4084
+ R([
4086
4085
  a({ type: String })
4087
4086
  ], S.prototype, "type");
4088
- F([
4087
+ R([
4089
4088
  a({ type: String })
4090
4089
  ], S.prototype, "titleProduct");
4091
- F([
4090
+ R([
4092
4091
  a({ type: String })
4093
4092
  ], S.prototype, "volume");
4094
- F([
4093
+ R([
4095
4094
  a({ type: String })
4096
4095
  ], S.prototype, "perLiter");
4097
- F([
4096
+ R([
4098
4097
  a({ type: String })
4099
4098
  ], S.prototype, "mainPrice");
4100
- F([
4099
+ R([
4101
4100
  a({ type: String })
4102
4101
  ], S.prototype, "imageUrl");
4103
- F([
4102
+ R([
4104
4103
  a({ type: String })
4105
4104
  ], S.prototype, "altImage");
4106
- F([
4105
+ R([
4107
4106
  a({ type: Function })
4108
4107
  ], S.prototype, "onClickTile");
4109
4108
  customElements.define("mini-tile", S);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@florid-kit/components",
3
- "version": "0.8.41",
3
+ "version": "0.8.42",
4
4
  "main": "index.js",
5
5
  "module": "index.mjs",
6
6
  "typings": "index.d.ts",