@florid-kit/components 3.2.15 → 3.2.17
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/components/icon-button.d.ts +5 -0
- package/components/icon-button.mjs +22 -19
- package/components/side-panel.d.ts +0 -1
- package/components/side-panel.mjs +56 -60
- package/index.mjs +1 -1
- package/loader.mjs +1 -1
- package/package.json +1 -1
|
@@ -25,6 +25,11 @@ export declare class OccitaneIconButton extends OccitaneIconButton_base {
|
|
|
25
25
|
srLabel: string;
|
|
26
26
|
url: string;
|
|
27
27
|
urlTitle: string;
|
|
28
|
+
/**
|
|
29
|
+
* Opt-in: with `showSrLabel`, omit the empty `aria-label` on the native
|
|
30
|
+
* button so its accessible name comes only from the sr-only label.
|
|
31
|
+
*/
|
|
32
|
+
noAriaLabel: boolean;
|
|
28
33
|
preventDefault: boolean;
|
|
29
34
|
private _unsubOcc?;
|
|
30
35
|
private _clearOccSubscription;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { i as p, m as d, E as a, x as l, a as v, t as y } from "../performance-mixin-D7YmSeqN.mjs";
|
|
2
2
|
import { n } from "../property-S_Y9cb04.mjs";
|
|
3
|
-
import { o as
|
|
3
|
+
import { o as u } from "../if-defined-j0wE2gL4.mjs";
|
|
4
4
|
import { r as g, o as m } from "../icons-registry.mjs";
|
|
5
5
|
import { c as f } from "../svg-utils-DOL__czZ.mjs";
|
|
6
6
|
import { f as x, i as w, s as k } from "../css-C8WrrxT-.mjs";
|
|
7
|
-
var $ = Object.defineProperty, S = Object.getOwnPropertyDescriptor, i = (t,
|
|
8
|
-
for (var
|
|
9
|
-
(
|
|
10
|
-
return c &&
|
|
7
|
+
var $ = Object.defineProperty, S = Object.getOwnPropertyDescriptor, i = (t, s, r, c) => {
|
|
8
|
+
for (var e = c > 1 ? void 0 : c ? S(s, r) : s, h = t.length - 1, b; h >= 0; h--)
|
|
9
|
+
(b = t[h]) && (e = (c ? b(s, r, e) : b(e)) || e);
|
|
10
|
+
return c && e && $(s, r, e), e;
|
|
11
11
|
};
|
|
12
12
|
const z = (t) => t.startsWith("occ-");
|
|
13
13
|
let o = class extends d(v) {
|
|
14
14
|
constructor() {
|
|
15
|
-
super(...arguments), this.bgstyle = "background-light", this.size = "medium", this.status = "empty", this.type = "button", this.strokewidth = "1", this.icon = "", this.disabled = !1, this.highlight = !1, this.pressed = void 0, this.showSrLabel = !1, this.srLabel = "", this.url = "", this.urlTitle = "", this.preventDefault = !1;
|
|
15
|
+
super(...arguments), this.bgstyle = "background-light", this.size = "medium", this.status = "empty", this.type = "button", this.strokewidth = "1", this.icon = "", this.disabled = !1, this.highlight = !1, this.pressed = void 0, this.showSrLabel = !1, this.srLabel = "", this.url = "", this.urlTitle = "", this.noAriaLabel = !1, this.preventDefault = !1;
|
|
16
16
|
}
|
|
17
17
|
_clearOccSubscription() {
|
|
18
18
|
var t;
|
|
@@ -24,8 +24,8 @@ let o = class extends d(v) {
|
|
|
24
24
|
this._clearOccSubscription();
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
|
-
const { svg:
|
|
28
|
-
if (
|
|
27
|
+
const { svg: s } = g(t, { size: this.size, bgstyle: this.bgstyle });
|
|
28
|
+
if (s) {
|
|
29
29
|
this._clearOccSubscription();
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
@@ -51,40 +51,40 @@ let o = class extends d(v) {
|
|
|
51
51
|
return a;
|
|
52
52
|
const t = f(this.icon, this.size, this.bgstyle);
|
|
53
53
|
if (!t) return a;
|
|
54
|
-
const
|
|
55
|
-
let
|
|
56
|
-
return this.url && this.url.length > 0 ?
|
|
54
|
+
const s = `icon-${this.icon}`, r = this.showSrLabel ? l`<span class="sr-only">${this.srLabel}</span>` : null, c = this.showSrLabel ? this.noAriaLabel ? void 0 : "" : "icon";
|
|
55
|
+
let e = l``;
|
|
56
|
+
return this.url && this.url.length > 0 ? e = l`
|
|
57
57
|
<a
|
|
58
58
|
href=${this.url}
|
|
59
|
-
aria-label=${
|
|
59
|
+
aria-label=${u(c) || a}
|
|
60
60
|
aria-describedby=${this.getAttribute("aria-describedby") || a}
|
|
61
61
|
?disabled="${this.disabled}"
|
|
62
62
|
title=${this.urlTitle || a}
|
|
63
63
|
@click=${this.handleLinkClick}
|
|
64
64
|
>
|
|
65
|
-
<span part="icon-button" class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${
|
|
65
|
+
<span part="icon-button" class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${s} ${this.highlight ? "highlight" : ""}" ?disabled="${this.disabled}">
|
|
66
66
|
${t}
|
|
67
67
|
</span>
|
|
68
68
|
${r}
|
|
69
69
|
</a>
|
|
70
|
-
` :
|
|
71
|
-
<span part="icon-button" class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${
|
|
70
|
+
` : e = this.type === "span" ? l`
|
|
71
|
+
<span part="icon-button" class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${s} ${this.highlight ? "highlight" : ""}" ?disabled="${this.disabled}">
|
|
72
72
|
${t}
|
|
73
73
|
</span>
|
|
74
74
|
` : l`
|
|
75
75
|
<button
|
|
76
76
|
type="button"
|
|
77
|
-
aria-label=${
|
|
78
|
-
aria-pressed=${
|
|
77
|
+
aria-label=${u(c)}
|
|
78
|
+
aria-pressed=${u(this.pressed === void 0 ? void 0 : String(this.pressed))}
|
|
79
79
|
aria-describedby=${this.getAttribute("aria-describedby") || a}
|
|
80
80
|
part="icon-button"
|
|
81
|
-
class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${
|
|
81
|
+
class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${s} ${this.highlight ? "highlight" : ""}"
|
|
82
82
|
?disabled="${this.disabled}"
|
|
83
83
|
>
|
|
84
84
|
${t}
|
|
85
85
|
${r}
|
|
86
86
|
</button>
|
|
87
|
-
`,
|
|
87
|
+
`, e;
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
o.styles = p`
|
|
@@ -390,6 +390,9 @@ i([
|
|
|
390
390
|
i([
|
|
391
391
|
n({ type: String })
|
|
392
392
|
], o.prototype, "urlTitle", 2);
|
|
393
|
+
i([
|
|
394
|
+
n({ type: Boolean, attribute: "no-aria-label" })
|
|
395
|
+
], o.prototype, "noAriaLabel", 2);
|
|
393
396
|
i([
|
|
394
397
|
n({ type: Boolean, reflect: !0, attribute: "prevent-default" })
|
|
395
398
|
], o.prototype, "preventDefault", 2);
|
|
@@ -18,7 +18,6 @@ export declare class OccitaneSidePanel extends OccitaneSidePanel_base {
|
|
|
18
18
|
headerTitleClassName: string;
|
|
19
19
|
labelDialog: string;
|
|
20
20
|
labelAriaDialogPanel: string;
|
|
21
|
-
addToBagProductCount: string;
|
|
22
21
|
closeButtonLabel: string;
|
|
23
22
|
goBackButtonLabel: string;
|
|
24
23
|
firstButtonLabel: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { E as
|
|
1
|
+
import { E as u, i as C, a as w, m as E, x as p, t as S } from "../performance-mixin-D7YmSeqN.mjs";
|
|
2
2
|
import { n as a } from "../property-S_Y9cb04.mjs";
|
|
3
|
-
import { f as
|
|
4
|
-
import { i as
|
|
3
|
+
import { f as g } from "../css-C8WrrxT-.mjs";
|
|
4
|
+
import { i as D, m as P } from "../element-internals-Dw7LndlH.mjs";
|
|
5
5
|
import { e as $, o as _, a as I } from "../icons-registry.mjs";
|
|
6
6
|
import { g as z } from "../svg-utils-DOL__czZ.mjs";
|
|
7
7
|
import { o as F } from "../unsafe-svg-BipL_msF.mjs";
|
|
@@ -17,7 +17,7 @@ function q(e) {
|
|
|
17
17
|
e.addInitializer((t) => {
|
|
18
18
|
const o = t;
|
|
19
19
|
o.addEventListener("click", async (n) => {
|
|
20
|
-
const { type: i, [
|
|
20
|
+
const { type: i, [D]: r } = o, { form: s } = r;
|
|
21
21
|
if (!(!s || i === "button") && (await new Promise((h) => {
|
|
22
22
|
setTimeout(h);
|
|
23
23
|
}), !n.defaultPrevented)) {
|
|
@@ -57,7 +57,7 @@ const v = (e, t) => {
|
|
|
57
57
|
if ((t = e._$AM) === void 0) break;
|
|
58
58
|
o = t._$AN, o.delete(e), e = t;
|
|
59
59
|
} while ((o == null ? void 0 : o.size) === 0);
|
|
60
|
-
},
|
|
60
|
+
}, B = (e) => {
|
|
61
61
|
for (let t; t = e._$AM; e = t) {
|
|
62
62
|
let o = t._$AN;
|
|
63
63
|
if (o === void 0) t._$AN = o = /* @__PURE__ */ new Set();
|
|
@@ -66,7 +66,7 @@ const v = (e, t) => {
|
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
function H(e) {
|
|
69
|
-
this._$AN !== void 0 ? (y(this), this._$AM = e,
|
|
69
|
+
this._$AN !== void 0 ? (y(this), this._$AM = e, B(this)) : this._$AM = e;
|
|
70
70
|
}
|
|
71
71
|
function M(e, t = !1, o = 0) {
|
|
72
72
|
const n = this._$AH, i = this._$AN;
|
|
@@ -82,7 +82,7 @@ class j extends L {
|
|
|
82
82
|
super(...arguments), this._$AN = void 0;
|
|
83
83
|
}
|
|
84
84
|
_$AT(t, o, n) {
|
|
85
|
-
super._$AT(t, o, n),
|
|
85
|
+
super._$AT(t, o, n), B(this), this.isConnected = t._$AU;
|
|
86
86
|
}
|
|
87
87
|
_$AO(t, o = !0) {
|
|
88
88
|
var n, i;
|
|
@@ -105,7 +105,7 @@ class N extends j {
|
|
|
105
105
|
super(...arguments), this.prevData = {};
|
|
106
106
|
}
|
|
107
107
|
render(t) {
|
|
108
|
-
return
|
|
108
|
+
return u;
|
|
109
109
|
}
|
|
110
110
|
update(t, [o]) {
|
|
111
111
|
var n;
|
|
@@ -226,9 +226,9 @@ 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
|
|
229
|
+
let l = class extends E(w) {
|
|
230
230
|
constructor() {
|
|
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.
|
|
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.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;
|
|
233
233
|
const t = ((o = e.detail) == null ? void 0 : o.origin) ?? document.activeElement;
|
|
234
234
|
if (this._detailOriginEl = t, this._detailOriginClass = (t == null ? void 0 : t.className) ?? "", this.showDetail = !0, this.showHeaderStartIcon = !0, await this.updateComplete, this._detailOriginClass) {
|
|
@@ -336,12 +336,12 @@ let l = class extends S(w) {
|
|
|
336
336
|
return;
|
|
337
337
|
}
|
|
338
338
|
if (document.querySelector("#refineandsortpopin")) {
|
|
339
|
-
const s = t.querySelector(".close-btn"), h = s ? this.resolveFocusable(s) : null, f = t.querySelector(".js-clear-refinements"),
|
|
340
|
-
e.preventDefault(), e.stopPropagation(),
|
|
339
|
+
const s = t.querySelector(".close-btn"), h = s ? this.resolveFocusable(s) : null, f = t.querySelector(".js-clear-refinements"), m = f ? this.resolveFocusable(f) : null, x = (A) => {
|
|
340
|
+
e.preventDefault(), e.stopPropagation(), A.focus();
|
|
341
341
|
};
|
|
342
|
-
if (h &&
|
|
343
|
-
if (!e.shiftKey && n ===
|
|
344
|
-
if (e.shiftKey && n === h) return x(
|
|
342
|
+
if (h && m) {
|
|
343
|
+
if (!e.shiftKey && n === m) return x(h);
|
|
344
|
+
if (e.shiftKey && n === h) return x(m);
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
const r = this.renderRoot.querySelector(".close-btn");
|
|
@@ -456,9 +456,9 @@ let l = class extends S(w) {
|
|
|
456
456
|
}, 500);
|
|
457
457
|
}
|
|
458
458
|
render() {
|
|
459
|
-
const e = this.showHeader ?
|
|
459
|
+
const e = this.showHeader ? p`
|
|
460
460
|
<div tabindex="-1" part="header" class="header ${this.showDetail ? "detail-view-header" : ""}">
|
|
461
|
-
${this.showHeaderStartIcon ?
|
|
461
|
+
${this.showHeaderStartIcon ? p`
|
|
462
462
|
<o-icon-button
|
|
463
463
|
icon="arrowLeft"
|
|
464
464
|
size="small"
|
|
@@ -471,11 +471,10 @@ let l = class extends S(w) {
|
|
|
471
471
|
showsrlabel="true"
|
|
472
472
|
></o-icon-button>
|
|
473
473
|
` : null}
|
|
474
|
-
<div class="header-title-container"
|
|
474
|
+
<div class="header-title-container">
|
|
475
475
|
<p role="heading" aria-level="1" id="panel-title" class="${this.headerTitleClassName}">
|
|
476
476
|
${this.headerTitle}
|
|
477
477
|
</p>
|
|
478
|
-
${this.addToBagProductCount ? u`<span class="a-quantity">${this.addToBagProductCount}</span>` : null}
|
|
479
478
|
</div>
|
|
480
479
|
<o-icon-button
|
|
481
480
|
icon="occ-close-outlined"
|
|
@@ -489,9 +488,9 @@ let l = class extends S(w) {
|
|
|
489
488
|
aria-describedby="panel-title"
|
|
490
489
|
></o-icon-button>
|
|
491
490
|
</div>
|
|
492
|
-
` : null, t = this.showFooter ?
|
|
491
|
+
` : null, t = this.showFooter ? p`
|
|
493
492
|
<div class="footer" part="footer">
|
|
494
|
-
${this.firstButtonVariant && this.firstButtonLabel ?
|
|
493
|
+
${this.firstButtonVariant && this.firstButtonLabel ? p`
|
|
495
494
|
<o-button
|
|
496
495
|
.variant=${this.firstButtonVariant}
|
|
497
496
|
@click=${this.handleFirstClick}
|
|
@@ -501,7 +500,7 @@ let l = class extends S(w) {
|
|
|
501
500
|
${this.firstButtonLabel}
|
|
502
501
|
</o-button>
|
|
503
502
|
` : null}
|
|
504
|
-
${this.secondButtonVariant && this.secondButtonLabel ?
|
|
503
|
+
${this.secondButtonVariant && this.secondButtonLabel ? p`
|
|
505
504
|
<o-button
|
|
506
505
|
.variant=${this.secondButtonVariant}
|
|
507
506
|
@click=${this.handleSecondClick}
|
|
@@ -513,14 +512,14 @@ let l = class extends S(w) {
|
|
|
513
512
|
` : null}
|
|
514
513
|
</div>
|
|
515
514
|
` : null;
|
|
516
|
-
return
|
|
515
|
+
return p`
|
|
517
516
|
<div class="overlay" style="z-index: ${this.zIndex}" @click=${this.handleClosePanel}></div>
|
|
518
517
|
<div
|
|
519
518
|
class="panel"
|
|
520
519
|
role="dialog"
|
|
521
520
|
aria-modal="true"
|
|
522
|
-
aria-label="${this.labelAriaDialogPanel ||
|
|
523
|
-
aria-labelledby="${this.labelAriaDialogPanel ?
|
|
521
|
+
aria-label="${this.labelAriaDialogPanel || u}"
|
|
522
|
+
aria-labelledby="${this.labelAriaDialogPanel ? u : "panel-title"}"
|
|
524
523
|
style="z-index: ${this.zIndex + 1}"
|
|
525
524
|
tabindex="-1"
|
|
526
525
|
>
|
|
@@ -529,7 +528,7 @@ let l = class extends S(w) {
|
|
|
529
528
|
|
|
530
529
|
<div part="content" class="content ${this.isHidingDetail ? "slide-out-right" : ""} ${this.showDetail ? "with-detail" : ""}">
|
|
531
530
|
|
|
532
|
-
${this.showDetail ?
|
|
531
|
+
${this.showDetail ? p`
|
|
533
532
|
<div class="detail-view">
|
|
534
533
|
${e}
|
|
535
534
|
<div class="detail-content">
|
|
@@ -538,7 +537,7 @@ let l = class extends S(w) {
|
|
|
538
537
|
</div>
|
|
539
538
|
</div>
|
|
540
539
|
</div>
|
|
541
|
-
` :
|
|
540
|
+
` : p`<slot></slot>`}
|
|
542
541
|
</div>
|
|
543
542
|
|
|
544
543
|
${this.stickyFooter ? null : t}
|
|
@@ -690,7 +689,7 @@ l.styles = C`
|
|
|
690
689
|
|
|
691
690
|
.panel:focus-visible,
|
|
692
691
|
.close-btn:focus-visible {
|
|
693
|
-
${
|
|
692
|
+
${g}
|
|
694
693
|
}
|
|
695
694
|
|
|
696
695
|
[role="document"] {
|
|
@@ -822,9 +821,6 @@ c([
|
|
|
822
821
|
c([
|
|
823
822
|
a({ type: String })
|
|
824
823
|
], l.prototype, "labelAriaDialogPanel", 2);
|
|
825
|
-
c([
|
|
826
|
-
a({ type: String })
|
|
827
|
-
], l.prototype, "addToBagProductCount", 2);
|
|
828
824
|
c([
|
|
829
825
|
a({ type: String })
|
|
830
826
|
], l.prototype, "closeButtonLabel", 2);
|
|
@@ -874,14 +870,14 @@ c([
|
|
|
874
870
|
a({ type: Boolean })
|
|
875
871
|
], l.prototype, "isHidingDetail", 2);
|
|
876
872
|
l = c([
|
|
877
|
-
|
|
873
|
+
S("o-side-panel")
|
|
878
874
|
], l);
|
|
879
875
|
var G = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, b = (e, t, o, n) => {
|
|
880
876
|
for (var i = n > 1 ? void 0 : n ? Q(t, o) : t, r = e.length - 1, s; r >= 0; r--)
|
|
881
877
|
(s = e[r]) && (i = (n ? s(t, o, i) : s(i)) || i);
|
|
882
878
|
return n && i && G(t, o, i), i;
|
|
883
879
|
};
|
|
884
|
-
const J =
|
|
880
|
+
const J = E(P(w)), lt = ["primary", "secondary", "ghost", "tertiary", "link"];
|
|
885
881
|
let d = class extends J {
|
|
886
882
|
constructor() {
|
|
887
883
|
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.ctatitle = "", this.underlined = !1, this.withbadge = !1, this.describedBy = null, this.ariaExpanded = null;
|
|
@@ -893,7 +889,7 @@ let d = class extends J {
|
|
|
893
889
|
this.setAttribute("name", e);
|
|
894
890
|
}
|
|
895
891
|
get form() {
|
|
896
|
-
return this[
|
|
892
|
+
return this[D].form;
|
|
897
893
|
}
|
|
898
894
|
handleClick(e) {
|
|
899
895
|
if (!(e instanceof KeyboardEvent && !["Enter", " "].includes(e.key)) && this.panelTarget) {
|
|
@@ -916,47 +912,47 @@ let d = class extends J {
|
|
|
916
912
|
}
|
|
917
913
|
renderIcon(e) {
|
|
918
914
|
const t = e === "start" ? this.startIconModel : this.endIconModel;
|
|
919
|
-
if (!t) return
|
|
915
|
+
if (!t) return u;
|
|
920
916
|
const o = I[t] ?? "";
|
|
921
|
-
if (!o) return
|
|
917
|
+
if (!o) return u;
|
|
922
918
|
const n = z(o);
|
|
923
|
-
return
|
|
919
|
+
return p`<span class="${e === "start" ? "icon-start" : "icon-end"}">${F(n)}</span>`;
|
|
924
920
|
}
|
|
925
921
|
renderButton() {
|
|
926
922
|
const e = this.text || this.textsecond;
|
|
927
|
-
return
|
|
923
|
+
return p`
|
|
928
924
|
<button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
|
|
929
|
-
title=${this.ctatitle ||
|
|
930
|
-
aria-describedby=${this.describedBy ||
|
|
931
|
-
${this.startIcon ? this.renderIcon("start") :
|
|
932
|
-
${e ?
|
|
933
|
-
${this.text ?
|
|
934
|
-
${this.textsecond ?
|
|
935
|
-
${this.withbadge ?
|
|
936
|
-
` :
|
|
937
|
-
${this.endIcon ? this.renderIcon("end") :
|
|
925
|
+
title=${this.ctatitle || u}
|
|
926
|
+
aria-describedby=${this.describedBy || u} aria-expanded=${this.ariaExpanded || u} >
|
|
927
|
+
${this.startIcon ? this.renderIcon("start") : u}
|
|
928
|
+
${e ? p`
|
|
929
|
+
${this.text ? p`<span class="text">${this.text}</span>` : u}
|
|
930
|
+
${this.textsecond ? p`<span class="text">${this.textsecond}</span>` : u}
|
|
931
|
+
${this.withbadge ? p`<slot></slot>` : u}
|
|
932
|
+
` : p`<slot></slot>`}
|
|
933
|
+
${this.endIcon ? this.renderIcon("end") : u}
|
|
938
934
|
</button>
|
|
939
935
|
`;
|
|
940
936
|
}
|
|
941
937
|
renderLink() {
|
|
942
938
|
const e = this.text || this.textsecond;
|
|
943
|
-
return
|
|
939
|
+
return p`
|
|
944
940
|
<a
|
|
945
941
|
href=${this.href}
|
|
946
|
-
target=${this.target ||
|
|
947
|
-
title=${this.ctatitle ||
|
|
942
|
+
target=${this.target || u}
|
|
943
|
+
title=${this.ctatitle || u}
|
|
948
944
|
class="button"
|
|
949
945
|
?disabled=${this.disabled}
|
|
950
946
|
@click=${this.handleClick}
|
|
951
947
|
@keydown=${this.handleClick}
|
|
952
|
-
aria-describedby=${this.describedBy ||
|
|
948
|
+
aria-describedby=${this.describedBy || u}
|
|
953
949
|
>
|
|
954
|
-
${this.startIcon ? this.renderIcon("start") :
|
|
955
|
-
${e ?
|
|
956
|
-
${this.text ?
|
|
957
|
-
${this.textsecond ?
|
|
958
|
-
` :
|
|
959
|
-
${this.endIcon ? this.renderIcon("end") :
|
|
950
|
+
${this.startIcon ? this.renderIcon("start") : u}
|
|
951
|
+
${e ? p`
|
|
952
|
+
${this.text ? p`<span>${this.text}</span>` : u}
|
|
953
|
+
${this.textsecond ? p`<span>${this.textsecond}</span>` : u}
|
|
954
|
+
` : p`<slot></slot>`}
|
|
955
|
+
${this.endIcon ? this.renderIcon("end") : u}
|
|
960
956
|
</a>
|
|
961
957
|
`;
|
|
962
958
|
}
|
|
@@ -976,7 +972,7 @@ d.styles = C`
|
|
|
976
972
|
}
|
|
977
973
|
|
|
978
974
|
:host(.a--tabfocus) .button {
|
|
979
|
-
${
|
|
975
|
+
${g};
|
|
980
976
|
}
|
|
981
977
|
|
|
982
978
|
:host([fullwidth]) {
|
|
@@ -1127,7 +1123,7 @@ d.styles = C`
|
|
|
1127
1123
|
}
|
|
1128
1124
|
|
|
1129
1125
|
.button:focus-visible {
|
|
1130
|
-
${
|
|
1126
|
+
${g};
|
|
1131
1127
|
}
|
|
1132
1128
|
|
|
1133
1129
|
span.text + span.text::before {
|
|
@@ -1276,7 +1272,7 @@ b([
|
|
|
1276
1272
|
a({ reflect: !0, attribute: "expanded" })
|
|
1277
1273
|
], d.prototype, "ariaExpanded", 2);
|
|
1278
1274
|
d = b([
|
|
1279
|
-
|
|
1275
|
+
S("o-button")
|
|
1280
1276
|
], d);
|
|
1281
1277
|
export {
|
|
1282
1278
|
d as O,
|
package/index.mjs
CHANGED
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
|
+
globalThis.__FLORID_KIT__ = "3.2.17";
|
|
8
8
|
const i = {
|
|
9
9
|
"o-accordion": () => import("./components/accordion.mjs"),
|
|
10
10
|
"o-accordion-group": () => import("./components/accordion-group.mjs"),
|