@getflip/swirl-components 0.8.2 → 0.8.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 (24) hide show
  1. package/dist/cjs/flip-console-layout.cjs.entry.js +2 -5
  2. package/dist/cjs/flip-tree-navigation-item.cjs.entry.js +3 -12
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/swirl-components.cjs.js +1 -1
  5. package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
  6. package/dist/collection/components/flip-console-layout/flip-console-layout.css +0 -7
  7. package/dist/collection/components/flip-console-layout/flip-console-layout.js +1 -6
  8. package/dist/collection/components/flip-tree-navigation-item/flip-tree-navigation-item.css +2 -1
  9. package/dist/collection/components/flip-tree-navigation-item/flip-tree-navigation-item.js +2 -11
  10. package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
  11. package/dist/components/flip-console-layout.js +8 -17
  12. package/dist/components/flip-tree-navigation-item.js +3 -12
  13. package/dist/esm/flip-console-layout.entry.js +2 -5
  14. package/dist/esm/flip-tree-navigation-item.entry.js +3 -12
  15. package/dist/esm/loader.js +1 -1
  16. package/dist/esm/swirl-components.js +1 -1
  17. package/dist/swirl-components/p-38cf01d0.entry.js +1 -0
  18. package/dist/swirl-components/p-7a637c6f.entry.js +1 -0
  19. package/dist/swirl-components/swirl-components.esm.js +1 -1
  20. package/dist/types/components/flip-console-layout/flip-console-layout.d.ts +0 -1
  21. package/dist/types/components/flip-tree-navigation-item/flip-tree-navigation-item.d.ts +0 -1
  22. package/package.json +1 -1
  23. package/dist/swirl-components/p-a57ef771.entry.js +0 -1
  24. package/dist/swirl-components/p-f41c04a1.entry.js +0 -1
@@ -91,13 +91,6 @@
91
91
  grid-area: navigation;
92
92
  }
93
93
 
94
- @media (min-width: 768px) {
95
-
96
- .console-layout__hide-navigation-button {
97
- display: none
98
- }
99
- }
100
-
101
94
  .console-layout__user {
102
95
  overflow: hidden;
103
96
  margin-top: var(--s-border-width-default);
@@ -18,9 +18,6 @@ export class FlipConsoleLayout {
18
18
  this.onMobileNavigationToggleClick = () => {
19
19
  this.toggleSidebar();
20
20
  };
21
- this.onHideNavigationButtonClick = () => {
22
- this.hideSidebar();
23
- };
24
21
  this.onClick = (event) => {
25
22
  var _a;
26
23
  const target = event.target;
@@ -116,9 +113,7 @@ export class FlipConsoleLayout {
116
113
  h("path", { d: "M12.2072 10.9785L7.32419 10.1459L0.625 14.0709L5.38887 14.9629L12.2072 10.9785Z", fill: "#80A8F4" })),
117
114
  h("flip-text", { class: "console-layout__logo-text", weight: "medium" }, this.logoText))),
118
115
  h("nav", { "aria-label": this.navigationLabel, class: "console-layout__navigation" },
119
- h("slot", { name: "navigation" }),
120
- this.sidebarActive && (h("flip-visually-hidden", null,
121
- h("button", { class: "console-layout__hide-navigation-button", onClick: this.onHideNavigationButtonClick, type: "button" }, this.hideNavigationButtonLabel)))),
116
+ h("slot", { name: "navigation" })),
122
117
  h("div", { class: "console-layout__user" },
123
118
  h("slot", { name: "user" }))),
124
119
  h("main", { "aria-labelledby": "app-name", class: "console-layout__main" },
@@ -24,7 +24,8 @@
24
24
  }
25
25
 
26
26
  :host(:focus) {
27
- outline-color: var(--s-focus-default);
27
+ background-color: var(--s-surface-hovered);
28
+ outline: none;
28
29
  }
29
30
 
30
31
  :host(.tree-navigation-item--active) {
@@ -3,16 +3,7 @@ import classnames from "classnames";
3
3
  export class FlipTreeNavigationItem {
4
4
  constructor() {
5
5
  this.onKeyDown = (event) => {
6
- if (event.code === "Space") {
7
- event.preventDefault();
8
- }
9
- else if (event.code === "Enter") {
10
- event.preventDefault();
11
- this.el.click();
12
- }
13
- };
14
- this.onKeyUp = (event) => {
15
- if (event.code === "Space") {
6
+ if (event.code === "Enter") {
16
7
  event.preventDefault();
17
8
  this.el.click();
18
9
  }
@@ -23,7 +14,7 @@ export class FlipTreeNavigationItem {
23
14
  "tree-navigation-item--active": this.active,
24
15
  "tree-navigation-item--has-icon": Boolean(this.icon),
25
16
  });
26
- return (h(Host, { class: className, onKeyDown: this.onKeyDown, onKeyUp: this.onKeyUp, role: "button", tabIndex: 0 },
17
+ return (h(Host, { class: className, onKeyDown: this.onKeyDown, role: "link", tabIndex: 0 },
27
18
  this.icon && (h("span", { class: "tree-navigation-item__icon", innerHTML: this.icon })),
28
19
  h("span", { class: "tree-navigation-item__label" }, this.label)));
29
20
  }