@getflip/swirl-components 0.418.0 → 0.419.0

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.
@@ -61,9 +61,9 @@ export class SwirlShellNavigationItem {
61
61
  const tooltipContent = this.description
62
62
  ? `${this.label} ${this.description}`
63
63
  : this.label;
64
- return (h(Host, { key: '449f8152f3e43b5286253b3cad88b97e7e7511fa' }, h("swirl-tooltip", { key: 'c38fd294886949488ebb68e44243dedf4b9353cb', active: this.hideLabel, content: tooltipContent, delay: 100, position: "right", positioning: "fixed" }, h(Tag, { key: 'b109c272afaa8d81406c77f9a383eb0265ba0abe', class: tagClassNames, href: this.href, target: this.target, type: isLink ? undefined : "button", title: !this.hideLabel ? this.label : undefined }, h("span", { key: 'e798c1c7fd44a3f60969649f377dc569ef790d14', class: "shell-navigation-item__icon" }, h("slot", { key: '74253d57363c4ab083e1df01bcc8ff3a39dc875b', name: "icon" })), !this.hideLabel ? (this.variant !== "default" ? (h("span", { class: labelClassNames }, this.label)) : (h("div", { class: "shell-navigation-item__text-wrapper" }, h("span", { class: labelClassNames }, this.label), this.description && (h("span", { class: "shell-navigation-item__description" }, this.description))))) : (h("swirl-visually-hidden", null, h("span", { class: labelClassNames }, this.label))), hasBadge && (h("span", { key: '314a39b2198bc28f55ee94a14eec540ac465924a', class: "shell-navigation-item__badge-wrapper" }, h("swirl-badge", { key: '67e82dd1cf4e5097fb8572aefba5c6c43808a0f7', "aria-label": this.badgeLabel, class: classnames("shell-navigation-item__badge", {
64
+ return (h(Host, { key: 'd505754d266ddc520ca2799a37a16854888a612d' }, h("swirl-tooltip", { key: 'e0002b379cce5ab7a52611a2df3422c179389062', active: this.hideLabel, content: tooltipContent, delay: 100, position: "right", positioning: "fixed" }, h(Tag, { key: 'ab6ed515b943e59d86268ed4774af65cc704fb3f', "aria-current": this.swirlAriaCurrent, class: tagClassNames, href: this.href, target: this.target, type: isLink ? undefined : "button", title: !this.hideLabel ? this.label : undefined }, h("span", { key: 'baefe0e2aa6112acf161c01f82677b0c894252b4', class: "shell-navigation-item__icon" }, h("slot", { key: 'e4d519727b08262fdbfa6c765e519085a6c08440', name: "icon" })), !this.hideLabel ? (this.variant !== "default" ? (h("span", { class: labelClassNames }, this.label)) : (h("div", { class: "shell-navigation-item__text-wrapper" }, h("span", { class: labelClassNames }, this.label), this.description && (h("span", { class: "shell-navigation-item__description" }, this.description))))) : (h("swirl-visually-hidden", null, h("span", { class: labelClassNames }, this.label))), hasBadge && (h("span", { key: 'db70cc0455aa760f8473202e22d6fb959d1bfa61', class: "shell-navigation-item__badge-wrapper" }, h("swirl-badge", { key: 'c445e347a6f25a8a8c6d1fa1f9b9c65ffb8ca7cc', "aria-label": this.badgeLabel, class: classnames("shell-navigation-item__badge", {
65
65
  "shell-navigation-item__badge--dot": this.badgeLabel === "",
66
- }), label: this.badgeLabel, size: "xs", variant: this.badgeLabel === "" ? "dot" : "default" }))), showIsNewTag && (h("swirl-tag", { key: 'e4c5c0f2efa1237f658c3a0378046e5c16188228', class: "shell-navigation-item__is-new-tag", intent: "info", label: this.markAsNewLabel.toLocaleUpperCase(), size: "s", variant: "strong" })), showIsNewBadge && (h("swirl-badge", { key: '21aac8cdecddb54b7c654d119c5a07eeadf5d216', class: "shell-navigation-item__is-new-badge", intent: "info", label: this.markAsNewLabel.toLocaleUpperCase(), size: "xs", variant: "dot" }))))));
66
+ }), label: this.badgeLabel, size: "xs", variant: this.badgeLabel === "" ? "dot" : "default" }))), showIsNewTag && (h("swirl-tag", { key: '71707e518c201de65e968a64b2b03faa99412b81', class: "shell-navigation-item__is-new-tag", intent: "info", label: this.markAsNewLabel.toLocaleUpperCase(), size: "s", variant: "strong" })), showIsNewBadge && (h("swirl-badge", { key: '452a7976c577cc1dd0957be269a44c3659da7082', class: "shell-navigation-item__is-new-badge", intent: "info", label: this.markAsNewLabel.toLocaleUpperCase(), size: "xs", variant: "dot" }))))));
67
67
  }
68
68
  static get is() { return "swirl-shell-navigation-item"; }
69
69
  static get encapsulation() { return "shadow"; }
@@ -316,14 +316,20 @@ export class SwirlShellNavigationItem {
316
316
  "reflect": false,
317
317
  "defaultValue": "\"New\""
318
318
  },
319
- "useCustomIconSize": {
320
- "type": "boolean",
321
- "attribute": "use-custom-icon-size",
319
+ "swirlAriaCurrent": {
320
+ "type": "string",
321
+ "attribute": "swirl-aria-current",
322
322
  "mutable": false,
323
323
  "complexType": {
324
- "original": "boolean",
325
- "resolved": "boolean",
326
- "references": {}
324
+ "original": "SwirlShellNavigationItemAriaCurrent",
325
+ "resolved": "\"page\" | \"true\"",
326
+ "references": {
327
+ "SwirlShellNavigationItemAriaCurrent": {
328
+ "location": "local",
329
+ "path": "/home/runner/work/swirl/swirl/packages/swirl-components/src/components/swirl-shell-navigation-item/swirl-shell-navigation-item.tsx",
330
+ "id": "src/components/swirl-shell-navigation-item/swirl-shell-navigation-item.tsx::SwirlShellNavigationItemAriaCurrent"
331
+ }
332
+ }
327
333
  },
328
334
  "required": false,
329
335
  "optional": true,
@@ -333,8 +339,7 @@ export class SwirlShellNavigationItem {
333
339
  },
334
340
  "getter": false,
335
341
  "setter": false,
336
- "reflect": false,
337
- "defaultValue": "false"
342
+ "reflect": false
338
343
  },
339
344
  "target": {
340
345
  "type": "string",
@@ -355,6 +360,26 @@ export class SwirlShellNavigationItem {
355
360
  "setter": false,
356
361
  "reflect": false
357
362
  },
363
+ "useCustomIconSize": {
364
+ "type": "boolean",
365
+ "attribute": "use-custom-icon-size",
366
+ "mutable": false,
367
+ "complexType": {
368
+ "original": "boolean",
369
+ "resolved": "boolean",
370
+ "references": {}
371
+ },
372
+ "required": false,
373
+ "optional": true,
374
+ "docs": {
375
+ "tags": [],
376
+ "text": ""
377
+ },
378
+ "getter": false,
379
+ "setter": false,
380
+ "reflect": false,
381
+ "defaultValue": "false"
382
+ },
358
383
  "variant": {
359
384
  "type": "string",
360
385
  "attribute": "variant",