@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.
- package/components.json +95 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/swirl-card.cjs.entry.js +2 -2
- package/dist/cjs/swirl-components.cjs.js +1 -1
- package/dist/cjs/swirl-shell-navigation-item.cjs.entry.js +2 -2
- package/dist/collection/components/swirl-card/swirl-card.js +27 -2
- package/dist/collection/components/swirl-shell-navigation-item/swirl-shell-navigation-item.js +35 -10
- package/dist/components/assets/pdfjs/pdf.worker.min.mjs +1 -1
- package/dist/components/swirl-card.js +3 -2
- package/dist/components/swirl-shell-navigation-item.js +4 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/swirl-card.entry.js +2 -2
- package/dist/esm/swirl-components.js +1 -1
- package/dist/esm/swirl-shell-navigation-item.entry.js +2 -2
- package/dist/swirl-components/p-da2dea0c.entry.js +1 -0
- package/dist/swirl-components/p-e213fde4.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-card/swirl-card.d.ts +2 -0
- package/dist/types/components/swirl-shell-navigation-item/swirl-shell-navigation-item.d.ts +3 -1
- package/dist/types/components.d.ts +8 -4
- package/package.json +1 -1
- package/vscode-data.json +36 -0
- package/dist/swirl-components/p-2ac6c167.entry.js +0 -1
- package/dist/swirl-components/p-64c2ba52.entry.js +0 -1
package/dist/collection/components/swirl-shell-navigation-item/swirl-shell-navigation-item.js
CHANGED
|
@@ -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: '
|
|
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: '
|
|
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
|
-
"
|
|
320
|
-
"type": "
|
|
321
|
-
"attribute": "
|
|
319
|
+
"swirlAriaCurrent": {
|
|
320
|
+
"type": "string",
|
|
321
|
+
"attribute": "swirl-aria-current",
|
|
322
322
|
"mutable": false,
|
|
323
323
|
"complexType": {
|
|
324
|
-
"original": "
|
|
325
|
-
"resolved": "
|
|
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",
|