@florid-kit/components 3.2.10 → 3.2.12
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/button.d.ts +1 -1
- package/components/icon-button.mjs +13 -6
- package/components/side-panel.mjs +4 -4
- package/components/thumbnail-navigation.mjs +5 -1
- package/index.mjs +1 -1
- package/loader.mjs +1 -1
- package/package.json +1 -1
package/components/button.d.ts
CHANGED
|
@@ -24,7 +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
|
-
|
|
27
|
+
ctatitle: string;
|
|
28
28
|
underlined: boolean;
|
|
29
29
|
withbadge: boolean;
|
|
30
30
|
describedBy: string | null;
|
|
@@ -1,12 +1,12 @@
|
|
|
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 b } 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
7
|
var $ = Object.defineProperty, S = Object.getOwnPropertyDescriptor, i = (t, e, r, c) => {
|
|
8
|
-
for (var s = c > 1 ? void 0 : c ? S(e, r) : e, h = t.length - 1,
|
|
9
|
-
(
|
|
8
|
+
for (var s = c > 1 ? void 0 : c ? S(e, r) : e, h = t.length - 1, u; h >= 0; h--)
|
|
9
|
+
(u = t[h]) && (s = (c ? u(e, r, s) : u(s)) || s);
|
|
10
10
|
return c && s && $(e, r, s), s;
|
|
11
11
|
};
|
|
12
12
|
const z = (t) => t.startsWith("occ-");
|
|
@@ -56,7 +56,7 @@ let o = class extends d(v) {
|
|
|
56
56
|
return this.url && this.url.length > 0 ? s = l`
|
|
57
57
|
<a
|
|
58
58
|
href=${this.url}
|
|
59
|
-
aria-label=${
|
|
59
|
+
aria-label=${b(c) || a}
|
|
60
60
|
aria-describedby=${this.getAttribute("aria-describedby") || a}
|
|
61
61
|
?disabled="${this.disabled}"
|
|
62
62
|
title=${this.urlTitle || a}
|
|
@@ -74,8 +74,8 @@ let o = class extends d(v) {
|
|
|
74
74
|
` : l`
|
|
75
75
|
<button
|
|
76
76
|
type="button"
|
|
77
|
-
aria-label=${
|
|
78
|
-
aria-pressed=${
|
|
77
|
+
aria-label=${b(c)}
|
|
78
|
+
aria-pressed=${b(this.pressed === void 0 ? void 0 : String(this.pressed))}
|
|
79
79
|
aria-describedby=${this.getAttribute("aria-describedby") || a}
|
|
80
80
|
part="icon-button"
|
|
81
81
|
class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${e} ${this.highlight ? "highlight" : ""}"
|
|
@@ -320,6 +320,13 @@ o.styles = p`
|
|
|
320
320
|
${x}
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
+
:host(.layer-play-video.a--tabfocus) {
|
|
324
|
+
.icon-button {
|
|
325
|
+
outline-width: 0.2rem;
|
|
326
|
+
outline-color: var(--color-content-body-inverse, white);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
323
330
|
:host(.go-to-top) .icon-button:focus-visible {
|
|
324
331
|
${w}
|
|
325
332
|
}
|
|
@@ -884,7 +884,7 @@ var G = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, b = (e, t, o
|
|
|
884
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.
|
|
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.ctatitle = "", this.underlined = !1, this.withbadge = !1, this.describedBy = null, this.ariaExpanded = null;
|
|
888
888
|
}
|
|
889
889
|
get name() {
|
|
890
890
|
return this.getAttribute("name") ?? "";
|
|
@@ -926,7 +926,7 @@ 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
|
-
title=${this.
|
|
929
|
+
title=${this.ctatitle || p}
|
|
930
930
|
aria-describedby=${this.describedBy || p} aria-expanded=${this.ariaExpanded || p} >
|
|
931
931
|
${this.startIcon ? this.renderIcon("start") : p}
|
|
932
932
|
${e ? u`
|
|
@@ -944,7 +944,7 @@ let d = class extends J {
|
|
|
944
944
|
<a
|
|
945
945
|
href=${this.href}
|
|
946
946
|
target=${this.target || p}
|
|
947
|
-
title=${this.
|
|
947
|
+
title=${this.ctatitle || p}
|
|
948
948
|
class="button"
|
|
949
949
|
?disabled=${this.disabled}
|
|
950
950
|
@click=${this.handleClick}
|
|
@@ -1262,7 +1262,7 @@ b([
|
|
|
1262
1262
|
], d.prototype, "target", 2);
|
|
1263
1263
|
b([
|
|
1264
1264
|
a({ type: String })
|
|
1265
|
-
], d.prototype, "
|
|
1265
|
+
], d.prototype, "ctatitle", 2);
|
|
1266
1266
|
b([
|
|
1267
1267
|
a({ type: Boolean, reflect: !0 })
|
|
1268
1268
|
], d.prototype, "underlined", 2);
|
|
@@ -133,6 +133,10 @@ r.styles = u`
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
+
.thumb[aria-current="true"] {
|
|
137
|
+
box-shadow: 0 0 0px 2px var(--color-border-secondary);
|
|
138
|
+
}
|
|
139
|
+
|
|
136
140
|
.thumb[aria-selected="true"]::before,
|
|
137
141
|
.a--tabfocus::before {
|
|
138
142
|
content: "";
|
|
@@ -168,7 +172,7 @@ r.styles = u`
|
|
|
168
172
|
display: flex;
|
|
169
173
|
gap: 8px;
|
|
170
174
|
margin: 0;
|
|
171
|
-
padding:
|
|
175
|
+
padding: 2px;
|
|
172
176
|
overflow-x: auto;
|
|
173
177
|
padding-bottom: 4px;
|
|
174
178
|
scrollbar-width: thin;
|
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.12";
|
|
8
8
|
const i = {
|
|
9
9
|
"o-accordion": () => import("./components/accordion.mjs"),
|
|
10
10
|
"o-accordion-group": () => import("./components/accordion-group.mjs"),
|