@vaadin/side-nav 24.2.0-alpha12 → 24.2.0-alpha14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/side-nav",
3
- "version": "24.2.0-alpha12",
3
+ "version": "24.2.0-alpha14",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,10 +34,10 @@
34
34
  "web-component"
35
35
  ],
36
36
  "dependencies": {
37
- "@vaadin/component-base": "24.2.0-alpha12",
38
- "@vaadin/vaadin-lumo-styles": "24.2.0-alpha12",
39
- "@vaadin/vaadin-material-styles": "24.2.0-alpha12",
40
- "@vaadin/vaadin-themable-mixin": "24.2.0-alpha12",
37
+ "@vaadin/component-base": "24.2.0-alpha14",
38
+ "@vaadin/vaadin-lumo-styles": "24.2.0-alpha14",
39
+ "@vaadin/vaadin-material-styles": "24.2.0-alpha14",
40
+ "@vaadin/vaadin-themable-mixin": "24.2.0-alpha14",
41
41
  "lit": "^2.0.0"
42
42
  },
43
43
  "devDependencies": {
@@ -50,5 +50,5 @@
50
50
  "web-types.json",
51
51
  "web-types.lit.json"
52
52
  ],
53
- "gitHead": "854d2809340ef73f765350808bb92ed5c840d147"
53
+ "gitHead": "203a2fda8d879db6ee8bccd7cf5b915de3e5008b"
54
54
  }
@@ -3,10 +3,8 @@
3
3
  * Copyright (c) 2023 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import { LitElement } from 'lit';
7
6
  import { DisabledMixin } from '@vaadin/a11y-base/src/disabled-mixin.js';
8
7
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
9
- import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
10
8
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
11
9
  import { SideNavChildrenMixin } from './vaadin-side-nav-children-mixin.js';
12
10
 
@@ -79,9 +77,7 @@ export type SideNavItemEventMap = HTMLElementEventMap & SideNavItemCustomEventMa
79
77
  *
80
78
  * @fires {CustomEvent} expanded-changed - Fired when the `expanded` property changes.
81
79
  */
82
- declare class SideNavItem extends SideNavChildrenMixin(
83
- DisabledMixin(ElementMixin(ThemableMixin(PolylitMixin(LitElement)))),
84
- ) {
80
+ declare class SideNavItem extends SideNavChildrenMixin(DisabledMixin(ElementMixin(ThemableMixin(HTMLElement)))) {
85
81
  /**
86
82
  * The path to navigate to
87
83
  */
@@ -72,8 +72,7 @@ import { SideNavChildrenMixin } from './vaadin-side-nav-children-mixin.js';
72
72
  *
73
73
  * @fires {CustomEvent} expanded-changed - Fired when the `expanded` property changes.
74
74
  *
75
- * @extends LitElement
76
- * @mixes PolylitMixin
75
+ * @extends HTMLElement
77
76
  * @mixes ThemableMixin
78
77
  * @mixes DisabledMixin
79
78
  * @mixes ElementMixin
@@ -3,10 +3,8 @@
3
3
  * Copyright (c) 2023 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import { LitElement } from 'lit';
7
6
  import { FocusMixin } from '@vaadin/a11y-base/src/focus-mixin.js';
8
7
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
9
- import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
10
8
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
11
9
  import { SideNavChildrenMixin, type SideNavI18n } from './vaadin-side-nav-children-mixin.js';
12
10
 
@@ -74,7 +72,7 @@ export type SideNavEventMap = HTMLElementEventMap & SideNavCustomEventMap;
74
72
  *
75
73
  * @fires {CustomEvent} collapsed-changed - Fired when the `collapsed` property changes.
76
74
  */
77
- declare class SideNav extends SideNavChildrenMixin(FocusMixin(ElementMixin(ThemableMixin(PolylitMixin(LitElement))))) {
75
+ declare class SideNav extends SideNavChildrenMixin(FocusMixin(ElementMixin(ThemableMixin(HTMLElement)))) {
78
76
  /**
79
77
  * Whether the side nav is collapsible. When enabled, the toggle icon is shown.
80
78
  */
@@ -64,8 +64,7 @@ import { SideNavChildrenMixin } from './vaadin-side-nav-children-mixin.js';
64
64
  *
65
65
  * @fires {CustomEvent} collapsed-changed - Fired when the `collapsed` property changes.
66
66
  *
67
- * @extends LitElement
68
- * @mixes PolylitMixin
67
+ * @extends HTMLElement
69
68
  * @mixes ThemableMixin
70
69
  * @mixes ElementMixin
71
70
  * @mixes SideNavChildrenMixin
@@ -108,9 +108,10 @@ export const sideNavItemStyles = css`
108
108
  --_child-indent-2: var(--_child-indent);
109
109
  }
110
110
 
111
- :host([current]) [part='link'] {
112
- color: var(--lumo-primary-text-color);
111
+ :host([current]) [part='content'] {
113
112
  background-color: var(--lumo-primary-color-10pct);
113
+ color: var(--lumo-primary-text-color);
114
+ border-radius: var(--lumo-border-radius-m);
114
115
  }
115
116
  `;
116
117
 
@@ -5,8 +5,11 @@ import { fieldButton } from '@vaadin/vaadin-material-styles/mixins/field-button.
5
5
  import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
6
6
 
7
7
  export const sideNavItemStyles = css`
8
- [part='link'] {
8
+ [part='content'] {
9
9
  position: relative;
10
+ }
11
+
12
+ [part='link'] {
10
13
  width: 100%;
11
14
  min-height: 32px;
12
15
  margin: 4px 0;
@@ -35,10 +38,10 @@ export const sideNavItemStyles = css`
35
38
  color: var(--material-disabled-text-color);
36
39
  }
37
40
 
38
- :host([current]) [part='link']::before {
41
+ :host([current]) [part='content']::before {
39
42
  position: absolute;
40
43
  content: '';
41
- inset: 0;
44
+ inset: 4px 0;
42
45
  background-color: var(--material-primary-color);
43
46
  opacity: 0.12;
44
47
  border-radius: 4px;
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/side-nav",
4
- "version": "24.2.0-alpha12",
4
+ "version": "24.2.0-alpha14",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/side-nav",
4
- "version": "24.2.0-alpha12",
4
+ "version": "24.2.0-alpha14",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {