@getflip/swirl-components 0.388.0 → 0.389.1

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 (30) hide show
  1. package/components.json +75 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/swirl-components.cjs.js +1 -1
  4. package/dist/cjs/swirl-resource-list-section.cjs.entry.js +1 -1
  5. package/dist/cjs/swirl-separator.cjs.entry.js +5 -1
  6. package/dist/cjs/swirl-shell-navigation-item.cjs.entry.js +6 -2
  7. package/dist/collection/components/swirl-resource-list-section/swirl-resource-list-section.js +1 -1
  8. package/dist/collection/components/swirl-separator/swirl-separator.js +31 -1
  9. package/dist/collection/components/swirl-shell-navigation-item/swirl-shell-navigation-item.js +26 -2
  10. package/dist/components/assets/pdfjs/pdf.worker.min.mjs +4 -1
  11. package/dist/components/swirl-resource-list-section.js +1 -1
  12. package/dist/components/swirl-separator2.js +6 -1
  13. package/dist/components/swirl-shell-navigation-item.js +7 -2
  14. package/dist/esm/loader.js +1 -1
  15. package/dist/esm/swirl-components.js +1 -1
  16. package/dist/esm/swirl-resource-list-section.entry.js +1 -1
  17. package/dist/esm/swirl-separator.entry.js +5 -1
  18. package/dist/esm/swirl-shell-navigation-item.entry.js +6 -2
  19. package/dist/swirl-components/p-83cb302b.entry.js +1 -0
  20. package/dist/swirl-components/p-b243a736.entry.js +1 -0
  21. package/dist/swirl-components/p-ccd7a58d.entry.js +1 -0
  22. package/dist/swirl-components/swirl-components.esm.js +1 -1
  23. package/dist/types/components/swirl-separator/swirl-separator.d.ts +2 -0
  24. package/dist/types/components/swirl-shell-navigation-item/swirl-shell-navigation-item.d.ts +1 -0
  25. package/dist/types/components.d.ts +18 -2
  26. package/package.json +1 -1
  27. package/vscode-data.json +16 -0
  28. package/dist/swirl-components/p-5f5034b5.entry.js +0 -1
  29. package/dist/swirl-components/p-efcb16ef.entry.js +0 -1
  30. package/dist/swirl-components/p-fc54fadf.entry.js +0 -1
@@ -5,6 +5,7 @@ export class SwirlSeparator {
5
5
  this.borderColor = "default";
6
6
  this.color = "default";
7
7
  this.orientation = "horizontal";
8
+ this.semantics = "separator";
8
9
  this.spacing = "8";
9
10
  }
10
11
  componentWillLoad() {
@@ -27,7 +28,10 @@ export class SwirlSeparator {
27
28
  paddingLeft: `var(--s-space-${this.spacing})`,
28
29
  };
29
30
  const className = classnames("separator", `separator--color-${this.color}`, `separator--orientation-${this.orientation}`);
30
- return (h(Host, { key: '17b01a0eecb1f97564885965da64a90967730e14', "aria-orientation": this.orientation, class: className, role: "separator", style: styles }, h("span", { key: 'e9f7f71c5da01191f232455e8f5e6d9c39131a24', class: "separator__line" }), this.label && (h(Fragment, { key: '1f9f5c1d0b16766ed8677d7657946c335a5ab8ac' }, h("span", { key: 'ae1e1cc3149d5f0be42ea4be999cfda0fcfb6def', class: "separator__label" }, this.label), h("span", { key: '029ca069ba60923d67310941f464a92212e4fbd5', class: "separator__line" })))));
31
+ const attributes = this.semantics === "separator"
32
+ ? { "aria-orientation": this.orientation }
33
+ : {};
34
+ return (h(Host, { key: '23acb3a29638b92737838e75a54d7616e6c9150e', ...attributes, class: className, role: this.semantics, style: styles }, h("span", { key: '3ebf80f47fb36438403551f560db91ecf7d7e559', class: "separator__line" }), this.label && (h(Fragment, { key: '84ac7960ba714ab27559751c11bd7c4b56ac3176' }, h("span", { key: '6f8dc3ad3bde938789e28ad05c67da657262a4d1', class: "separator__label" }, this.label), h("span", { key: '63ddb77ea887a890bb1731d12a939783b592e21a', class: "separator__line" })))));
31
35
  }
32
36
  static get is() { return "swirl-separator"; }
33
37
  static get encapsulation() { return "shadow"; }
@@ -140,6 +144,32 @@ export class SwirlSeparator {
140
144
  "reflect": false,
141
145
  "defaultValue": "\"horizontal\""
142
146
  },
147
+ "semantics": {
148
+ "type": "string",
149
+ "attribute": "semantics",
150
+ "mutable": false,
151
+ "complexType": {
152
+ "original": "SwirlSeparatorSemantics",
153
+ "resolved": "\"none\" | \"separator\"",
154
+ "references": {
155
+ "SwirlSeparatorSemantics": {
156
+ "location": "local",
157
+ "path": "/home/runner/work/swirl/swirl/packages/swirl-components/src/components/swirl-separator/swirl-separator.tsx",
158
+ "id": "src/components/swirl-separator/swirl-separator.tsx::SwirlSeparatorSemantics"
159
+ }
160
+ }
161
+ },
162
+ "required": false,
163
+ "optional": true,
164
+ "docs": {
165
+ "tags": [],
166
+ "text": ""
167
+ },
168
+ "getter": false,
169
+ "setter": false,
170
+ "reflect": false,
171
+ "defaultValue": "\"separator\""
172
+ },
143
173
  "spacing": {
144
174
  "type": "string",
145
175
  "attribute": "spacing",
@@ -8,6 +8,7 @@ export class SwirlShellNavigationItem {
8
8
  this.hideLabel = false;
9
9
  this.inlineLabelColor = "default";
10
10
  this.markAsNewLabel = "New";
11
+ this.useCustomIconSize = false;
11
12
  this.variant = "default";
12
13
  }
13
14
  componentWillLoad() {
@@ -17,6 +18,9 @@ export class SwirlShellNavigationItem {
17
18
  this.forceIconProps();
18
19
  }
19
20
  forceIconProps() {
21
+ if (this.useCustomIconSize) {
22
+ return;
23
+ }
20
24
  const iconEl = this.el.querySelector("[slot='icon']");
21
25
  const smallIcon = (this.hideLabel && this.variant === "app-icon") ||
22
26
  this.variant === "default";
@@ -57,9 +61,9 @@ export class SwirlShellNavigationItem {
57
61
  const tooltipContent = this.description
58
62
  ? `${this.label} ${this.description}`
59
63
  : this.label;
60
- return (h(Host, { key: 'eb3cc38916a4a868d447c631b65d2ebfb3c158e5' }, h("swirl-tooltip", { key: '5d38b0bf756b0a845d0ddff0aa6fe2a955da44f8', active: this.hideLabel, content: tooltipContent, delay: 100, position: "right", positioning: "fixed" }, h(Tag, { key: '852f4913ae1c9e90f0ecccf32f14d857321c5694', class: tagClassNames, href: this.href, target: this.target, type: isLink ? undefined : "button", title: !this.hideLabel ? this.label : undefined }, h("span", { key: 'f9de6d6dc253563b0397fbbc42d4bdb5260015fb', class: "shell-navigation-item__icon" }, h("slot", { key: 'e1a0fc498c658f9094c906b8319971af9025883e', 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: '6697baa3fdc919e7a2b7c8595b871566a6b8eaa2', class: "shell-navigation-item__badge-wrapper" }, h("swirl-badge", { key: 'feadd39faef80c53f72a77e16a5def012d77c53b', "aria-label": this.badgeLabel, class: classnames("shell-navigation-item__badge", {
64
+ return (h(Host, { key: '5f8337a6e328f4b70794c5df34bea4ce004cdbfc' }, h("swirl-tooltip", { key: 'de803be5c5e466daed55cf67c6127f897425e10d', active: this.hideLabel, content: tooltipContent, delay: 100, position: "right", positioning: "fixed" }, h(Tag, { key: '56b42a124385745a2048c1fac11abd75c5f5ea47', class: tagClassNames, href: this.href, target: this.target, type: isLink ? undefined : "button", title: !this.hideLabel ? this.label : undefined }, h("span", { key: 'fe342b65d7beef54084c3fecd2f448bf2cf8e5c8', class: "shell-navigation-item__icon" }, h("slot", { key: '9c1b2a2476fc0235e3241ed57b458a97809ad50a', 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: '89bb559959dae885912f6af1311c22755cd14af2', class: "shell-navigation-item__badge-wrapper" }, h("swirl-badge", { key: 'b9015202651b5c205849113fcc0e8ce783d18412', "aria-label": this.badgeLabel, class: classnames("shell-navigation-item__badge", {
61
65
  "shell-navigation-item__badge--dot": this.badgeLabel === "",
62
- }), label: this.badgeLabel, size: "xs", variant: this.badgeLabel === "" ? "dot" : "default" }))), showIsNewTag && (h("swirl-tag", { key: 'dd8f48f9940c328b8fae2676e9a3b773a70e12d1', class: "shell-navigation-item__is-new-tag", intent: "info", label: this.markAsNewLabel.toLocaleUpperCase(), size: "s", variant: "strong" })), showIsNewBadge && (h("swirl-badge", { key: 'ffbfa549236b20fc6fff35a96865386ea7b7517f', 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: '9e05640b202bd785e50ae6741804b64c3e1e276a', class: "shell-navigation-item__is-new-tag", intent: "info", label: this.markAsNewLabel.toLocaleUpperCase(), size: "s", variant: "strong" })), showIsNewBadge && (h("swirl-badge", { key: '30aa107e83bc07394bd7de154109097d0ccf51c4', class: "shell-navigation-item__is-new-badge", intent: "info", label: this.markAsNewLabel.toLocaleUpperCase(), size: "xs", variant: "dot" }))))));
63
67
  }
64
68
  static get is() { return "swirl-shell-navigation-item"; }
65
69
  static get encapsulation() { return "shadow"; }
@@ -312,6 +316,26 @@ export class SwirlShellNavigationItem {
312
316
  "reflect": false,
313
317
  "defaultValue": "\"New\""
314
318
  },
319
+ "useCustomIconSize": {
320
+ "type": "boolean",
321
+ "attribute": "use-custom-icon-size",
322
+ "mutable": false,
323
+ "complexType": {
324
+ "original": "boolean",
325
+ "resolved": "boolean",
326
+ "references": {}
327
+ },
328
+ "required": false,
329
+ "optional": true,
330
+ "docs": {
331
+ "tags": [],
332
+ "text": ""
333
+ },
334
+ "getter": false,
335
+ "setter": false,
336
+ "reflect": false,
337
+ "defaultValue": "false"
338
+ },
315
339
  "target": {
316
340
  "type": "string",
317
341
  "attribute": "target",