@warp-ds/elements 1.1.1-next.1 → 1.1.1-next.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.
Files changed (2) hide show
  1. package/dist/index.js +23 -17
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -458,7 +458,7 @@ const N = (r) => r ?? B, co = {
458
458
  pillSmallLoading: `${f.pillSmall} ${k.xsmall} ${S.pill} ${m.inProgress}`,
459
459
  link: `${f.link} ${k.medium} ${S.link}`,
460
460
  linkSmall: `${f.link} ${k.xsmall} ${S.link}`,
461
- linkAsButton: "inline-block hover:no-underline",
461
+ linkAsButton: "inline-block hover:no-underline text-center",
462
462
  a11y: "sr-only",
463
463
  fullWidth: "w-full max-w-full",
464
464
  contentWidth: "max-w-max"
@@ -5512,35 +5512,41 @@ function Ya() {
5512
5512
  const Xa = (r, o, e, t) => r === "nb" ? e : r === "fi" ? t : o, de = (r, o, e) => {
5513
5513
  const t = Ya(), a = Xa(t, r, o, e);
5514
5514
  Vo.load(t, a), Vo.activate(t);
5515
- }, ja = $`<span class=${Eo.separator} aria-hidden='true'>/</span>`;
5515
+ }, ja = $`<span class=${Eo.separator}
5516
+ >/</span
5517
+ >`;
5516
5518
  class Pr extends Ko(H) {
5517
5519
  constructor() {
5518
- super(), de(ya, za, _a), this.ariaLabel = Vo._(
5519
- {
5520
- id: "breadcrumbs.ariaLabel",
5521
- message: "You are here",
5522
- comment: "Default screenreader message for the breadcrumb component"
5523
- }
5524
- );
5520
+ super(), de(ya, za, _a), this.ariaLabel = Vo._({
5521
+ id: "breadcrumbs.ariaLabel",
5522
+ message: "You are here",
5523
+ comment: "Default screenreader message for the breadcrumb component"
5524
+ });
5525
5525
  }
5526
5526
  connectedCallback() {
5527
5527
  super.connectedCallback();
5528
5528
  const e = Array.from(this.children).flat(1 / 0).filter((t) => t).map((t, a) => {
5529
5529
  if (typeof t == "string") {
5530
5530
  const c = a === children.length - 1;
5531
- return $`<span class=${Eo.text} aria-current=${c ? "page" : void 0}>${t}</span>`;
5531
+ return $`<span
5532
+ class=${Eo.text}
5533
+ aria-current=${c ? "page" : void 0}
5534
+ >${t}</span
5535
+ >`;
5532
5536
  }
5533
- return t.classList.add(t.tagName === "A" ? Eo.link : Eo.text), t;
5537
+ return t.classList.add(
5538
+ t.tagName === "A" ? Eo.link : Eo.text
5539
+ ), t;
5534
5540
  });
5535
5541
  this._children = ta(e, ja);
5536
5542
  }
5537
5543
  render() {
5538
5544
  return $`
5539
- <nav aria-label=${this.ariaLabel}>
5540
- <h2 class=${Eo.a11y}>${this.ariaLabel}</h2>
5541
- <div class=${Eo.wrapper}>
5542
- ${this._children}
5543
- </div>
5545
+ <nav aria-labelledby="breadCrumbLabel">
5546
+ <h2 id="breadCrumbLabel" class=${Eo.a11y}>
5547
+ ${this.ariaLabel}
5548
+ </h2>
5549
+ <div class=${Eo.wrapper}>${this._children}</div>
5544
5550
  </nav>
5545
5551
  `;
5546
5552
  }
@@ -6196,7 +6202,7 @@ Z(Pr, "styles", Q`
6196
6202
  .sm\\:px-32{padding-left:3.2rem;padding-right:3.2rem;}
6197
6203
  .sm\\:pb-32{padding-bottom:3.2rem;}
6198
6204
  .sm\\:pt-32{padding-top:3.2rem;}
6199
- }
6205
+ };
6200
6206
  `), Z(Pr, "properties", {
6201
6207
  ariaLabel: { type: String }
6202
6208
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@warp-ds/elements",
3
3
  "type": "module",
4
- "version": "1.1.1-next.1",
4
+ "version": "1.1.1-next.3",
5
5
  "description": "Custom elements for Warp",
6
6
  "exports": {
7
7
  ".": "./dist/index.js",
@@ -78,8 +78,8 @@
78
78
  "@lingui/core": "^4.5.0",
79
79
  "@open-wc/testing": "3.2.0",
80
80
  "@warp-ds/core": "1.0.0",
81
- "@warp-ds/css": "^1.1.1",
82
- "@warp-ds/icons": "1.1.0-next.12",
81
+ "@warp-ds/css": "^1.1.2",
82
+ "@warp-ds/icons": "1.1.0",
83
83
  "@warp-ds/uno": "^1.1.0",
84
84
  "glob": "8.1.0",
85
85
  "html-format": "1.1.2",