@florid-kit/components 3.2.7 → 3.2.8

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.
@@ -24,6 +24,7 @@ export declare class OccitaneButton extends buttonBaseClass implements FormSubmi
24
24
  panelTarget: string;
25
25
  href: string;
26
26
  target: "_blank" | "_self" | "_top" | "_parent" | "";
27
+ title: string;
27
28
  underlined: boolean;
28
29
  withbadge: boolean;
29
30
  describedBy: string | null;
@@ -1,4 +1,4 @@
1
- import { E as b, i as C, a as w, m as E, x as u, t as S } from "../performance-mixin-D7YmSeqN.mjs";
1
+ import { E as p, i as C, a as w, m as S, x as u, t as E } from "../performance-mixin-D7YmSeqN.mjs";
2
2
  import { n as a } from "../property-S_Y9cb04.mjs";
3
3
  import { f as g } from "../css-C8WrrxT-.mjs";
4
4
  import { i as B, m as A } from "../element-internals-Dw7LndlH.mjs";
@@ -105,7 +105,7 @@ class N extends j {
105
105
  super(...arguments), this.prevData = {};
106
106
  }
107
107
  render(t) {
108
- return b;
108
+ return p;
109
109
  }
110
110
  update(t, [o]) {
111
111
  var n;
@@ -226,7 +226,7 @@ var U = Object.defineProperty, W = Object.getOwnPropertyDescriptor, c = (e, t, o
226
226
  (s = e[r]) && (i = (n ? s(t, o, i) : s(i)) || i);
227
227
  return n && i && U(t, o, i), i;
228
228
  };
229
- let l = class extends E(w) {
229
+ let l = class extends S(w) {
230
230
  constructor() {
231
231
  super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.showHeaderStartIcon = !1, this.headerTitle = "", this.headerTitleClassName = "panel-title", this.labelDialog = "", this.labelAriaDialogPanel = "", this.addToBagProductCount = "", this.closeButtonLabel = "Close the modal", this.goBackButtonLabel = "Go back to", this.firstButtonLabel = "Close", this.firstButtonVariant = "primary", this.firstButtonProps = {}, this.onFirstButtonClickClose = !1, this.secondButtonLabel = "", this.secondButtonVariant = "secondary", this.secondButtonProps = {}, this.onSecondButtonClickClose = !1, this.stickyFooter = !1, this.disablePortal = !1, this.zIndex = 99, this.initialized = !1, this.showDetail = !1, this.isHidingDetail = !1, this.previousFocusedElement = null, this.previousFocusedSelector = null, this._hideTimeout = null, this._onOpenDetail = async (e) => {
232
232
  var o, n;
@@ -519,8 +519,8 @@ let l = class extends E(w) {
519
519
  class="panel"
520
520
  role="dialog"
521
521
  aria-modal="true"
522
- aria-label="${this.labelAriaDialogPanel || b}"
523
- aria-labelledby="${this.labelAriaDialogPanel ? b : "panel-title"}"
522
+ aria-label="${this.labelAriaDialogPanel || p}"
523
+ aria-labelledby="${this.labelAriaDialogPanel ? p : "panel-title"}"
524
524
  style="z-index: ${this.zIndex + 1}"
525
525
  tabindex="-1"
526
526
  >
@@ -874,17 +874,17 @@ c([
874
874
  a({ type: Boolean })
875
875
  ], l.prototype, "isHidingDetail", 2);
876
876
  l = c([
877
- S("o-side-panel")
877
+ E("o-side-panel")
878
878
  ], l);
879
- var G = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, p = (e, t, o, n) => {
879
+ var G = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, b = (e, t, o, n) => {
880
880
  for (var i = n > 1 ? void 0 : n ? Q(t, o) : t, r = e.length - 1, s; r >= 0; r--)
881
881
  (s = e[r]) && (i = (n ? s(t, o, i) : s(i)) || i);
882
882
  return n && i && G(t, o, i), i;
883
883
  };
884
- const J = E(A(w)), lt = ["primary", "secondary", "ghost", "tertiary", "link"];
884
+ const J = S(A(w)), lt = ["primary", "secondary", "ghost", "tertiary", "link"];
885
885
  let d = class extends J {
886
886
  constructor() {
887
- super(...arguments), this.type = "submit", this.value = "", this.variant = "primary", this.text = "", this.textsecond = "", this.fullwidth = !1, this.disabled = !1, this.startIconModel = "", this.endIconModel = "", this.startIcon = !1, this.endIcon = !1, this.panelTarget = "", this.href = "", this.target = "", this.underlined = !1, this.withbadge = !1, this.describedBy = null, this.ariaExpanded = null;
887
+ super(...arguments), this.type = "submit", this.value = "", this.variant = "primary", this.text = "", this.textsecond = "", this.fullwidth = !1, this.disabled = !1, this.startIconModel = "", this.endIconModel = "", this.startIcon = !1, this.endIcon = !1, this.panelTarget = "", this.href = "", this.target = "", this.title = "", this.underlined = !1, this.withbadge = !1, this.describedBy = null, this.ariaExpanded = null;
888
888
  }
889
889
  get name() {
890
890
  return this.getAttribute("name") ?? "";
@@ -916,9 +916,9 @@ let d = class extends J {
916
916
  }
917
917
  renderIcon(e) {
918
918
  const t = e === "start" ? this.startIconModel : this.endIconModel;
919
- if (!t) return b;
919
+ if (!t) return p;
920
920
  const o = I[t] ?? "";
921
- if (!o) return b;
921
+ if (!o) return p;
922
922
  const n = z(o);
923
923
  return u`<span class="${e === "start" ? "icon-start" : "icon-end"}">${F(n)}</span>`;
924
924
  }
@@ -926,14 +926,15 @@ let d = class extends J {
926
926
  const e = this.text || this.textsecond;
927
927
  return u`
928
928
  <button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
929
- aria-describedby=${this.describedBy || b} aria-expanded=${this.ariaExpanded || b} >
930
- ${this.startIcon ? this.renderIcon("start") : b}
929
+ title=${this.title || p}
930
+ aria-describedby=${this.describedBy || p} aria-expanded=${this.ariaExpanded || p} >
931
+ ${this.startIcon ? this.renderIcon("start") : p}
931
932
  ${e ? u`
932
- ${this.text ? u`<span class="text">${this.text}</span>` : b}
933
- ${this.textsecond ? u`<span class="text">${this.textsecond}</span>` : b}
934
- ${this.withbadge ? u`<slot></slot>` : b}
933
+ ${this.text ? u`<span class="text">${this.text}</span>` : p}
934
+ ${this.textsecond ? u`<span class="text">${this.textsecond}</span>` : p}
935
+ ${this.withbadge ? u`<slot></slot>` : p}
935
936
  ` : u`<slot></slot>`}
936
- ${this.endIcon ? this.renderIcon("end") : b}
937
+ ${this.endIcon ? this.renderIcon("end") : p}
937
938
  </button>
938
939
  `;
939
940
  }
@@ -942,19 +943,20 @@ let d = class extends J {
942
943
  return u`
943
944
  <a
944
945
  href=${this.href}
945
- target=${this.target || b}
946
+ target=${this.target || p}
947
+ title=${this.title || p}
946
948
  class="button"
947
949
  ?disabled=${this.disabled}
948
950
  @click=${this.handleClick}
949
951
  @keydown=${this.handleClick}
950
- aria-describedby=${this.describedBy || b}
952
+ aria-describedby=${this.describedBy || p}
951
953
  >
952
- ${this.startIcon ? this.renderIcon("start") : b}
954
+ ${this.startIcon ? this.renderIcon("start") : p}
953
955
  ${e ? u`
954
- ${this.text ? u`<span>${this.text}</span>` : b}
955
- ${this.textsecond ? u`<span>${this.textsecond}</span>` : b}
956
+ ${this.text ? u`<span>${this.text}</span>` : p}
957
+ ${this.textsecond ? u`<span>${this.textsecond}</span>` : p}
956
958
  ` : u`<slot></slot>`}
957
- ${this.endIcon ? this.renderIcon("end") : b}
959
+ ${this.endIcon ? this.renderIcon("end") : p}
958
960
  </a>
959
961
  `;
960
962
  }
@@ -1216,62 +1218,65 @@ d.styles = C`
1216
1218
  transform: translateX(4px);
1217
1219
  }
1218
1220
  `;
1219
- p([
1221
+ b([
1220
1222
  a()
1221
1223
  ], d.prototype, "type", 2);
1222
- p([
1224
+ b([
1223
1225
  a()
1224
1226
  ], d.prototype, "value", 2);
1225
- p([
1227
+ b([
1226
1228
  a({ type: String, reflect: !0 })
1227
1229
  ], d.prototype, "variant", 2);
1228
- p([
1230
+ b([
1229
1231
  a({ type: String })
1230
1232
  ], d.prototype, "text", 2);
1231
- p([
1233
+ b([
1232
1234
  a({ type: String })
1233
1235
  ], d.prototype, "textsecond", 2);
1234
- p([
1236
+ b([
1235
1237
  a({ type: Boolean, reflect: !0 })
1236
1238
  ], d.prototype, "fullwidth", 2);
1237
- p([
1239
+ b([
1238
1240
  a({ type: Boolean, reflect: !0 })
1239
1241
  ], d.prototype, "disabled", 2);
1240
- p([
1242
+ b([
1241
1243
  a({ type: String })
1242
1244
  ], d.prototype, "startIconModel", 2);
1243
- p([
1245
+ b([
1244
1246
  a({ type: String })
1245
1247
  ], d.prototype, "endIconModel", 2);
1246
- p([
1248
+ b([
1247
1249
  a({ type: Boolean, reflect: !0, attribute: "starticon" })
1248
1250
  ], d.prototype, "startIcon", 2);
1249
- p([
1251
+ b([
1250
1252
  a({ type: Boolean, reflect: !0, attribute: "endicon" })
1251
1253
  ], d.prototype, "endIcon", 2);
1252
- p([
1254
+ b([
1253
1255
  a({ type: String, attribute: "paneltarget" })
1254
1256
  ], d.prototype, "panelTarget", 2);
1255
- p([
1257
+ b([
1256
1258
  a({ type: String })
1257
1259
  ], d.prototype, "href", 2);
1258
- p([
1260
+ b([
1259
1261
  a({ type: String })
1260
1262
  ], d.prototype, "target", 2);
1261
- p([
1263
+ b([
1264
+ a({ type: String })
1265
+ ], d.prototype, "title", 2);
1266
+ b([
1262
1267
  a({ type: Boolean, reflect: !0 })
1263
1268
  ], d.prototype, "underlined", 2);
1264
- p([
1269
+ b([
1265
1270
  a({ type: Boolean, reflect: !0 })
1266
1271
  ], d.prototype, "withbadge", 2);
1267
- p([
1272
+ b([
1268
1273
  a({ reflect: !0, attribute: "describedby" })
1269
1274
  ], d.prototype, "describedBy", 2);
1270
- p([
1275
+ b([
1271
1276
  a({ reflect: !0, attribute: "expanded" })
1272
1277
  ], d.prototype, "ariaExpanded", 2);
1273
- d = p([
1274
- S("o-button")
1278
+ d = b([
1279
+ E("o-button")
1275
1280
  ], d);
1276
1281
  export {
1277
1282
  d as O,
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.7";
41
+ globalThis.__FLORID_KIT__ = "3.2.8";
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.7";
7
+ globalThis.__FLORID_KIT__ = "3.2.8";
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.7",
3
+ "version": "3.2.8",
4
4
  "main": "index.js",
5
5
  "module": "index.mjs",
6
6
  "typings": "index.d.ts",