@florid-kit/components 3.2.2 → 3.2.3
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/aria.d.ts +1 -1
- package/components/button.d.ts +0 -1
- package/components/side-panel.mjs +1 -5
- package/components/wishlist-button.mjs +2 -2
- package/index.mjs +1 -1
- package/loader.mjs +1 -1
- package/package.json +1 -1
package/aria.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export type ARIAAttribute = ARIAPropertyToAttribute<ARIAProperty>;
|
|
|
15
15
|
/**
|
|
16
16
|
* Accessibility Object Model aria attributes.
|
|
17
17
|
*/
|
|
18
|
-
export declare const ARIA_ATTRIBUTES: ("aria-label" | "aria-modal" | "aria-
|
|
18
|
+
export declare const ARIA_ATTRIBUTES: ("aria-label" | "aria-modal" | "aria-hidden" | "aria-expanded" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-current" | "aria-description" | "aria-disabled" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-live" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext")[];
|
|
19
19
|
/**
|
|
20
20
|
* Checks if an attribute is one of the AOM aria attributes.
|
|
21
21
|
*
|
package/components/button.d.ts
CHANGED
|
@@ -26,7 +26,6 @@ export declare class OccitaneButton extends buttonBaseClass implements FormSubmi
|
|
|
26
26
|
target: "_blank" | "_self" | "_top" | "_parent" | "";
|
|
27
27
|
underlined: boolean;
|
|
28
28
|
withbadge: boolean;
|
|
29
|
-
hideRoleButton: boolean;
|
|
30
29
|
describedBy: string | null;
|
|
31
30
|
ariaExpanded: string | null;
|
|
32
31
|
private handleClick;
|
|
@@ -883,7 +883,7 @@ var G = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, p = (e, t, o
|
|
|
883
883
|
const J = E(A(w)), lt = ["primary", "secondary", "ghost", "tertiary", "link"];
|
|
884
884
|
let d = class extends J {
|
|
885
885
|
constructor() {
|
|
886
|
-
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.
|
|
886
|
+
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
887
|
}
|
|
888
888
|
get name() {
|
|
889
889
|
return this.getAttribute("name") ?? "";
|
|
@@ -944,7 +944,6 @@ let d = class extends J {
|
|
|
944
944
|
target=${this.target || b}
|
|
945
945
|
class="button"
|
|
946
946
|
?disabled=${this.disabled}
|
|
947
|
-
role=${this.hideRoleButton ? b : "button"}
|
|
948
947
|
@click=${this.handleClick}
|
|
949
948
|
@keydown=${this.handleClick}
|
|
950
949
|
aria-describedby=${this.describedBy || b}
|
|
@@ -1264,9 +1263,6 @@ p([
|
|
|
1264
1263
|
p([
|
|
1265
1264
|
a({ type: Boolean, reflect: !0 })
|
|
1266
1265
|
], d.prototype, "withbadge", 2);
|
|
1267
|
-
p([
|
|
1268
|
-
a({ type: Boolean, reflect: !0 })
|
|
1269
|
-
], d.prototype, "hideRoleButton", 2);
|
|
1270
1266
|
p([
|
|
1271
1267
|
a({ reflect: !0, attribute: "describedby" })
|
|
1272
1268
|
], d.prototype, "describedBy", 2);
|
|
@@ -20,7 +20,7 @@ let s = class extends d(b) {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
connectedCallback() {
|
|
23
|
-
super.connectedCallback(),
|
|
23
|
+
super.connectedCallback(), u("occ-wishlist-outlined"), u("occ-wishlist-filled"), this._unsubOcc = g(() => this.requestUpdate());
|
|
24
24
|
}
|
|
25
25
|
disconnectedCallback() {
|
|
26
26
|
var t;
|
|
@@ -33,7 +33,7 @@ let s = class extends d(b) {
|
|
|
33
33
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), this.toggleStatus());
|
|
34
34
|
}
|
|
35
35
|
applyStatus(t) {
|
|
36
|
-
this.status = t, this.icon = t === "filled" ? "occ-wishlist-filled" : "occ-wishlist-outlined", this.bgstyle = t === "filled" ? "none-contrast" : "none-light"
|
|
36
|
+
this.status = t, this.icon = t === "filled" ? "occ-wishlist-filled" : "occ-wishlist-outlined", this.bgstyle = t === "filled" ? "none-contrast" : "none-light";
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
39
|
const t = v[this.icon] ?? "";
|
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.3";
|
|
8
8
|
const i = {
|
|
9
9
|
"o-accordion": () => import("./components/accordion.mjs"),
|
|
10
10
|
"o-accordion-group": () => import("./components/accordion-group.mjs"),
|