@florid-kit/components 3.2.14 → 3.2.15

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.
@@ -5,6 +5,7 @@ export declare class OBreadcrumb extends OBreadcrumb_base {
5
5
  static styles: import('lit').CSSResult;
6
6
  href: string;
7
7
  active: boolean;
8
+ srlabel: string;
8
9
  private _handleClick;
9
10
  render(): import('lit').TemplateResult<1>;
10
11
  }
@@ -1,20 +1,26 @@
1
- import { i as p, m as h, a as v, x as c, t as m } from "../performance-mixin-D7YmSeqN.mjs";
2
- import { n as f } from "../property-S_Y9cb04.mjs";
3
- import { f as u } from "../css-C8WrrxT-.mjs";
4
- var d = Object.defineProperty, g = Object.getOwnPropertyDescriptor, l = (r, o, n, i) => {
5
- for (var e = i > 1 ? void 0 : i ? g(o, n) : o, a = r.length - 1, s; a >= 0; a--)
6
- (s = r[a]) && (e = (i ? s(o, n, e) : s(e)) || e);
7
- return i && e && d(o, n, e), e;
1
+ import { i as p, m as h, a as v, x as f, t as m } from "../performance-mixin-D7YmSeqN.mjs";
2
+ import { n as c } from "../property-S_Y9cb04.mjs";
3
+ import { f as u, s as y } from "../css-C8WrrxT-.mjs";
4
+ var d = Object.defineProperty, g = Object.getOwnPropertyDescriptor, n = (r, o, s, i) => {
5
+ for (var e = i > 1 ? void 0 : i ? g(o, s) : o, a = r.length - 1, l; a >= 0; a--)
6
+ (l = r[a]) && (e = (i ? l(o, s, e) : l(e)) || e);
7
+ return i && e && d(o, s, e), e;
8
8
  };
9
9
  let t = class extends h(v) {
10
10
  constructor() {
11
- super(...arguments), this.href = "", this.active = !1;
11
+ super(...arguments), this.href = "", this.active = !1, this.srlabel = "";
12
12
  }
13
13
  _handleClick(r) {
14
14
  (!this.href || this.href === "#") && r.preventDefault();
15
15
  }
16
16
  render() {
17
- return this.active ? c`<p aria-current="page"><slot></slot></p>` : c`
17
+ return this.active ? f`
18
+ <li>
19
+ <p>
20
+ <span class="sr-only">${this.srlabel}</span>
21
+ <slot></slot>
22
+ </p>
23
+ </li> ` : f`
18
24
  <li>
19
25
  <a
20
26
  href="${this.href}"
@@ -68,14 +74,21 @@ t.styles = p`
68
74
  :host(.a--tabfocus) {
69
75
  outline: none !important;
70
76
  }
77
+
78
+ .sr-only {
79
+ ${y}
80
+ }
71
81
  `;
72
- l([
73
- f({ type: String })
82
+ n([
83
+ c({ type: String })
74
84
  ], t.prototype, "href", 2);
75
- l([
76
- f({ type: Boolean, reflect: !0 })
85
+ n([
86
+ c({ type: Boolean, reflect: !0 })
77
87
  ], t.prototype, "active", 2);
78
- t = l([
88
+ n([
89
+ c({ type: String })
90
+ ], t.prototype, "srlabel", 2);
91
+ t = n([
79
92
  m("o-breadcrumb")
80
93
  ], t);
81
94
  export {
@@ -2,6 +2,7 @@ import { LitElement } from 'lit';
2
2
 
3
3
  declare const OBreadcrumbs_base: import('../behaviors/mixin.js').MixinReturn<typeof LitElement>;
4
4
  export declare class OBreadcrumbs extends OBreadcrumbs_base {
5
+ srlabel: string;
5
6
  static styles: import('lit').CSSResult;
6
7
  render(): import('lit').TemplateResult<1>;
7
8
  }
@@ -1,13 +1,17 @@
1
- import { i as m, m as o, a as u, x as v, t as c } from "../performance-mixin-D7YmSeqN.mjs";
2
- var d = Object.getOwnPropertyDescriptor, p = (s, n, l, t) => {
3
- for (var r = t > 1 ? void 0 : t ? d(n, l) : n, a = s.length - 1, i; a >= 0; a--)
4
- (i = s[a]) && (r = i(r) || r);
5
- return r;
1
+ import { i as p, m, a as u, x as c, t as v } from "../performance-mixin-D7YmSeqN.mjs";
2
+ import { n as b } from "../property-S_Y9cb04.mjs";
3
+ var d = Object.defineProperty, f = Object.getOwnPropertyDescriptor, o = (i, e, t, a) => {
4
+ for (var r = a > 1 ? void 0 : a ? f(e, t) : e, n = i.length - 1, l; n >= 0; n--)
5
+ (l = i[n]) && (r = (a ? l(e, t, r) : l(r)) || r);
6
+ return a && r && d(e, t, r), r;
6
7
  };
7
- let e = class extends o(u) {
8
+ let s = class extends m(u) {
9
+ constructor() {
10
+ super(...arguments), this.srlabel = "Breadcrumbs";
11
+ }
8
12
  render() {
9
- return v`
10
- <nav aria-label="Breadcrumbs">
13
+ return c`
14
+ <nav aria-label=${this.srlabel}>
11
15
  <ul>
12
16
  <slot></slot>
13
17
  </ul>
@@ -15,7 +19,7 @@ let e = class extends o(u) {
15
19
  `;
16
20
  }
17
21
  };
18
- e.styles = m`
22
+ s.styles = p`
19
23
  nav {
20
24
  max-width: 144rem;
21
25
  margin: auto;
@@ -27,9 +31,12 @@ e.styles = m`
27
31
  padding: var(--spacing-4-xs);
28
32
  }
29
33
  `;
30
- e = p([
31
- c("o-breadcrumbs")
32
- ], e);
34
+ o([
35
+ b({ type: String })
36
+ ], s.prototype, "srlabel", 2);
37
+ s = o([
38
+ v("o-breadcrumbs")
39
+ ], s);
33
40
  export {
34
- e as OBreadcrumbs
41
+ s as OBreadcrumbs
35
42
  };
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.14";
41
+ globalThis.__FLORID_KIT__ = "3.2.15";
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.14";
7
+ globalThis.__FLORID_KIT__ = "3.2.15";
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.14",
3
+ "version": "3.2.15",
4
4
  "main": "index.js",
5
5
  "module": "index.mjs",
6
6
  "typings": "index.d.ts",