@florid-kit/components 3.2.12 → 3.2.14

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.
@@ -1,16 +1,16 @@
1
- import { m as b, a as p, i as u, x as o, E as l, t as f } from "../performance-mixin-D7YmSeqN.mjs";
1
+ import { m as p, a as b, i as u, x as o, E as l, t as f } from "../performance-mixin-D7YmSeqN.mjs";
2
2
  import { n as i } from "../property-S_Y9cb04.mjs";
3
3
  import { f as g } from "../css-C8WrrxT-.mjs";
4
4
  import { m as v } from "../element-internals-Dw7LndlH.mjs";
5
5
  import { i as m } from "../icons-registry.mjs";
6
6
  import { o as y } from "../unsafe-svg-BipL_msF.mjs";
7
7
  import "./icon-button.mjs";
8
- var x = Object.defineProperty, k = Object.getOwnPropertyDescriptor, r = (t, s, a, c) => {
9
- for (var n = c > 1 ? void 0 : c ? k(s, a) : s, d = t.length - 1, h; d >= 0; d--)
10
- (h = t[d]) && (n = (c ? h(s, a, n) : h(n)) || n);
11
- return c && n && x(s, a, n), n;
8
+ var x = Object.defineProperty, k = Object.getOwnPropertyDescriptor, r = (t, n, a, c) => {
9
+ for (var s = c > 1 ? void 0 : c ? k(n, a) : n, d = t.length - 1, h; d >= 0; d--)
10
+ (h = t[d]) && (s = (c ? h(n, a, s) : h(s)) || s);
11
+ return c && s && x(n, a, s), s;
12
12
  };
13
- const $ = b(v(p));
13
+ const $ = p(v(b));
14
14
  let e = class extends $ {
15
15
  constructor() {
16
16
  super(...arguments), this.name = "", this.value = "", this.type = "", this.text = "", this.selected = !1, this.disabled = !1, this.fullwidth = !1, this.crossIconName = "cross", this.strikethroughImgName = "strikeDiagonal";
@@ -19,8 +19,8 @@ let e = class extends $ {
19
19
  if (t instanceof KeyboardEvent && t.key !== "Enter" && t.key !== " ")
20
20
  return;
21
21
  this.selected = !this.selected;
22
- const s = { selected: this.selected }, a = new CustomEvent("selected", { detail: s, bubbles: !0, composed: !0, cancelable: !0 });
23
- this.dispatchEvent(a), a.defaultPrevented && t.preventDefault(), this.selected = s.selected;
22
+ const n = { selected: this.selected }, a = new CustomEvent("selected", { detail: n, bubbles: !0, composed: !0, cancelable: !0 });
23
+ this.dispatchEvent(a), a.defaultPrevented && t.preventDefault(), this.selected = n.selected;
24
24
  }
25
25
  crossIcon() {
26
26
  return o`<o-icon-button size="small" icon="occ-close-outlined" bgstyle="none-light"></o-icon-button>`;
@@ -182,6 +182,11 @@ e.styles = u`
182
182
  stroke-width: 4px;
183
183
  stroke-linecap: round;
184
184
  }
185
+
186
+ o-icon-button::part(icon-button) {
187
+ padding-left: 0;
188
+ padding-right: 0;
189
+ }
185
190
  `;
186
191
  r([
187
192
  i({ reflect: !0 })
@@ -20,6 +20,7 @@ export declare class MediumTile extends MediumTile_base {
20
20
  tagText: string;
21
21
  onClickTile?: () => void;
22
22
  onClickIcon?: () => void;
23
+ highlight: boolean;
23
24
  private onClick;
24
25
  private onClickIcons;
25
26
  get iconLabel(): string;
@@ -10,7 +10,7 @@ var v = Object.defineProperty, y = Object.getOwnPropertyDescriptor, e = (n, o, l
10
10
  };
11
11
  let t = class extends f(d) {
12
12
  constructor() {
13
- super(...arguments), this.type = "cart | notifyme", this.titleProduct = "", this.descriptionProduct = "", this.volume = "", this.perLiter = "", this.mainPrice = "", this.salesPercentage = "", this.oldPrice = "", this.imageUrl = "https://placehold.co/112x140", this.outOfStock = !1, this.outOfStockText = "Out of stock", this.altImage = "", this.fullwidth = !1, this.current = !1, this.hideIcon = !1, this.tagText = "";
13
+ super(...arguments), this.type = "cart | notifyme", this.titleProduct = "", this.descriptionProduct = "", this.volume = "", this.perLiter = "", this.mainPrice = "", this.salesPercentage = "", this.oldPrice = "", this.imageUrl = "https://placehold.co/112x140", this.outOfStock = !1, this.outOfStockText = "Out of stock", this.altImage = "", this.fullwidth = !1, this.current = !1, this.hideIcon = !1, this.tagText = "", this.highlight = !1;
14
14
  }
15
15
  onClick(n) {
16
16
  var l, r, s;
@@ -53,6 +53,7 @@ let t = class extends f(d) {
53
53
  title="${this.iconLabel}"
54
54
  srlabel="${this.iconLabel}"
55
55
  ?showsrlabel=${!0}
56
+ ?highlight=${this.highlight}
56
57
  ></o-icon-button>
57
58
  `;
58
59
  }
@@ -363,6 +364,9 @@ e([
363
364
  e([
364
365
  i({ attribute: !1 })
365
366
  ], t.prototype, "onClickIcon", 2);
367
+ e([
368
+ i({ type: Boolean, reflect: !0 })
369
+ ], t.prototype, "highlight", 2);
366
370
  t = e([
367
371
  g("o-medium-tile")
368
372
  ], t);
@@ -15,6 +15,7 @@ export declare class MiniTile extends MiniTile_base {
15
15
  onClickTile?: () => void;
16
16
  onClickIcon?: () => void;
17
17
  productUrl: string;
18
+ highlight: boolean;
18
19
  private onClick;
19
20
  private onClickIcons;
20
21
  get icons(): import('lit').TemplateResult<1>;
@@ -9,7 +9,7 @@ var u = Object.defineProperty, o = (p, r, s, l) => {
9
9
  };
10
10
  const c = class c extends d(f) {
11
11
  constructor() {
12
- super(...arguments), this.type = "cart | chevron", this.titleProduct = "", this.volume = "", this.perLiter = "", this.mainPrice = "", this.imageUrl = "https://placehold.co/56x70", this.altImage = "", this.fullwidth = !1, this.tagText = "", this.outOfStock = !1, this.productUrl = "";
12
+ super(...arguments), this.type = "cart | chevron", this.titleProduct = "", this.volume = "", this.perLiter = "", this.mainPrice = "", this.imageUrl = "https://placehold.co/56x70", this.altImage = "", this.fullwidth = !1, this.tagText = "", this.outOfStock = !1, this.productUrl = "", this.highlight = !1;
13
13
  }
14
14
  onClick(r) {
15
15
  var l, a, n;
@@ -48,8 +48,9 @@ const c = class c extends d(f) {
48
48
  status="empty"
49
49
  strokewidth="0"
50
50
  class=${this.outOfStock ? "js-availability-notify-details-cart" : "add-to-bag"}
51
- title="${window.Resources[this.outOfStock ? "NOSTOCK" : "ADD_TO_CART"]} - ${this.titleProduct || ""} ${this.volume || ""}"
52
- ></o-icon-button>
51
+ title="${(window.Resources || {})[this.outOfStock ? "NOSTOCK" : "ADD_TO_CART"]} - ${this.titleProduct || ""} ${this.volume || ""}"
52
+ ?highlight=${this.highlight}
53
+ ></o-icon-button>
53
54
  `;
54
55
  }
55
56
  render() {
@@ -57,7 +58,7 @@ const c = class c extends d(f) {
57
58
  <div class="tile fullpointer ${this.fullwidth ? "fullwidth" : ""}">
58
59
  <a href="${this.productUrl}"
59
60
  @click=${this.onClick}
60
- title="${window.Resources.VIEW_PRODUCT || ""} - ${this.titleProduct || ""} ${this.volume || ""} ${this.mainPrice ? " - " + this.mainPrice : ""}"
61
+ title="${(window.Resources || {}).VIEW_PRODUCT || ""} - ${this.titleProduct || ""} ${this.volume || ""} ${this.mainPrice ? " - " + this.mainPrice : ""}"
61
62
  >
62
63
  ${this.imageUrl ? t`<img src="${this.imageUrl}" alt="${this.altImage || ""}" />` : ""}
63
64
  <span class="info">
@@ -79,7 +80,7 @@ const c = class c extends d(f) {
79
80
  type="button"
80
81
  class="tile fullpointer ${this.fullwidth ? "fullwidth" : ""}"
81
82
  @click=${this.onClick}
82
- title="${window.Resources.VIEW_PRODUCT || ""} - ${this.titleProduct || ""} ${this.volume || ""} ${this.mainPrice ? " - " + this.mainPrice : ""}"
83
+ title="${(window.Resources || {}).VIEW_PRODUCT || ""} - ${this.titleProduct || ""} ${this.volume || ""} ${this.mainPrice ? " - " + this.mainPrice : ""}"
83
84
  >
84
85
  ${this.imageUrl ? t`<img src="${this.imageUrl}" alt="${this.altImage || ""}" />` : ""}
85
86
  <div class="info">
@@ -262,6 +263,9 @@ o([
262
263
  o([
263
264
  e({ type: String })
264
265
  ], i.prototype, "productUrl");
266
+ o([
267
+ e({ type: Boolean, reflect: !0 })
268
+ ], i.prototype, "highlight");
265
269
  customElements.define("mini-tile", i);
266
270
  export {
267
271
  i as MiniTile
package/index.mjs CHANGED
@@ -38,4 +38,4 @@ import "./components/search-input.mjs";
38
38
  import "./components/search-input-dropdown.mjs";
39
39
  import "./components/option-tile.mjs";
40
40
  import "./components/option-tile-group.mjs";
41
- globalThis.__FLORID_KIT__ = "3.2.12";
41
+ globalThis.__FLORID_KIT__ = "3.2.14";
package/loader.mjs CHANGED
@@ -4,7 +4,7 @@ import "./components/link.mjs";
4
4
  import "./components/header-simplify.mjs";
5
5
  import "./components/breadcrumb.mjs";
6
6
  import "./components/breadcrumbs.mjs";
7
- globalThis.__FLORID_KIT__ = "3.2.12";
7
+ globalThis.__FLORID_KIT__ = "3.2.14";
8
8
  const i = {
9
9
  "o-accordion": () => import("./components/accordion.mjs"),
10
10
  "o-accordion-group": () => import("./components/accordion-group.mjs"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@florid-kit/components",
3
- "version": "3.2.12",
3
+ "version": "3.2.14",
4
4
  "main": "index.js",
5
5
  "module": "index.mjs",
6
6
  "typings": "index.d.ts",