@vaadin/tabsheet 25.0.0-alpha9 → 25.0.0-beta2

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/tabsheet",
3
- "version": "25.0.0-alpha9",
3
+ "version": "25.0.0-beta2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -21,9 +21,6 @@
21
21
  "type": "module",
22
22
  "files": [
23
23
  "src",
24
- "!src/styles/*-base-styles.d.ts",
25
- "!src/styles/*-base-styles.js",
26
- "theme",
27
24
  "vaadin-*.d.ts",
28
25
  "vaadin-*.js",
29
26
  "web-types.json",
@@ -37,22 +34,22 @@
37
34
  ],
38
35
  "dependencies": {
39
36
  "@open-wc/dedupe-mixin": "^1.3.0",
40
- "@vaadin/component-base": "25.0.0-alpha9",
41
- "@vaadin/scroller": "25.0.0-alpha9",
42
- "@vaadin/tabs": "25.0.0-alpha9",
43
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha9",
44
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha9",
37
+ "@vaadin/component-base": "25.0.0-beta2",
38
+ "@vaadin/scroller": "25.0.0-beta2",
39
+ "@vaadin/tabs": "25.0.0-beta2",
40
+ "@vaadin/vaadin-themable-mixin": "25.0.0-beta2",
45
41
  "lit": "^3.0.0"
46
42
  },
47
43
  "devDependencies": {
48
- "@vaadin/chai-plugins": "25.0.0-alpha9",
49
- "@vaadin/test-runner-commands": "25.0.0-alpha9",
44
+ "@vaadin/chai-plugins": "25.0.0-beta2",
45
+ "@vaadin/test-runner-commands": "25.0.0-beta2",
50
46
  "@vaadin/testing-helpers": "^2.0.0",
51
- "sinon": "^18.0.0"
47
+ "@vaadin/vaadin-lumo-styles": "25.0.0-beta2",
48
+ "sinon": "^21.0.0"
52
49
  },
53
50
  "web-types": [
54
51
  "web-types.json",
55
52
  "web-types.lit.json"
56
53
  ],
57
- "gitHead": "bbe4720721e0955ffc87a79b412bee38b1f0eb1e"
54
+ "gitHead": "e078f8371ae266f05c7ca1ec25686cc489c83f24"
58
55
  }
@@ -3,9 +3,9 @@
3
3
  * Copyright (c) 2022 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import '@vaadin/component-base/src/style-props.js';
6
+ import '@vaadin/component-base/src/styles/style-props.js';
7
7
  import { css } from 'lit';
8
- import { loaderStyles } from '@vaadin/component-base/src/loader-styles.js';
8
+ import { loaderStyles } from '@vaadin/component-base/src/styles/loader-styles.js';
9
9
 
10
10
  export const tabSheetStyles = [
11
11
  loaderStyles,
@@ -14,7 +14,7 @@ export const tabSheetStyles = [
14
14
  display: flex;
15
15
  flex-direction: column;
16
16
  border: var(--vaadin-tabsheet-border-width, 1px) solid
17
- var(--vaadin-tabsheet-border-color, var(--vaadin-border-color));
17
+ var(--vaadin-tabsheet-border-color, var(--vaadin-border-color-secondary));
18
18
  border-radius: var(--vaadin-tabsheet-border-radius, var(--vaadin-radius-l));
19
19
  overflow: hidden;
20
20
  }
@@ -27,8 +27,8 @@ export const tabSheetStyles = [
27
27
  position: relative;
28
28
  display: flex;
29
29
  align-items: center;
30
- gap: var(--vaadin-tabsheet-gap, var(--vaadin-gap-container-inline));
31
- padding: var(--vaadin-tabsheet-padding, var(--vaadin-padding));
30
+ gap: var(--vaadin-tabsheet-gap, var(--vaadin-gap-s));
31
+ padding: var(--vaadin-tabsheet-padding, var(--vaadin-padding-m));
32
32
  box-sizing: border-box;
33
33
  }
34
34
 
@@ -38,11 +38,15 @@ export const tabSheetStyles = [
38
38
  min-width: 128px;
39
39
  }
40
40
 
41
+ ::slotted([hidden]) {
42
+ display: none !important;
43
+ }
44
+
41
45
  [part='content'] {
42
46
  position: relative;
43
47
  flex: 1;
44
48
  box-sizing: border-box;
45
- padding: var(--vaadin-tabsheet-padding, var(--vaadin-padding));
49
+ padding: var(--vaadin-tabsheet-padding, var(--vaadin-padding-l));
46
50
  border-top: var(--vaadin-tabsheet-border-width, 1px) solid transparent;
47
51
  margin-top: calc(var(--vaadin-tabsheet-border-width, 1px) * -1);
48
52
  }
@@ -54,7 +58,7 @@ export const tabSheetStyles = [
54
58
  }
55
59
 
56
60
  [part='content'][overflow~='top'] {
57
- border-top-color: var(--vaadin-tabsheet-border-color, var(--vaadin-border-color));
61
+ border-top-color: var(--vaadin-tabsheet-border-color, var(--vaadin-border-color-secondary));
58
62
  }
59
63
 
60
64
  :host([loading]) [part='content'] {
@@ -21,11 +21,9 @@ export declare class TabSheetMixinClass<Tab extends HTMLElement> {
21
21
  selected: number | null | undefined;
22
22
 
23
23
  /**
24
- * The list of `<vaadin-tab>`s from which a selection can be made.
24
+ * A read-only list of `<vaadin-tab>`s from which a selection can be made.
25
25
  * It is populated from the elements passed inside the slotted
26
26
  * `<vaadin-tabs>`, and updated dynamically when adding or removing items.
27
- *
28
- * Note: unlike `<vaadin-combo-box>`, this property is read-only.
29
27
  */
30
28
  readonly items: Tab[] | undefined;
31
29
  }
@@ -79,11 +79,9 @@ export const TabSheetMixin = (superClass) =>
79
79
  static get properties() {
80
80
  return {
81
81
  /**
82
- * The list of `<vaadin-tab>`s from which a selection can be made.
82
+ * A read-only list of `<vaadin-tab>`s from which a selection can be made.
83
83
  * It is populated from the elements passed inside the slotted
84
84
  * `<vaadin-tabs>`, and updated dynamically when adding or removing items.
85
- *
86
- * Note: unlike `<vaadin-combo-box>`, this property is read-only.
87
85
  * @type {!Array<!Tab> | undefined}
88
86
  */
89
87
  items: {
@@ -11,7 +11,7 @@ import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
11
11
  import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
12
12
  import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
13
13
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
14
- import { tabSheetStyles } from './styles/vaadin-tabsheet-core-styles.js';
14
+ import { tabSheetStyles } from './styles/vaadin-tabsheet-base-styles.js';
15
15
  import { TabSheetMixin } from './vaadin-tabsheet-mixin.js';
16
16
 
17
17
  /**
@@ -1,2 +1,2 @@
1
- import './theme/lumo/vaadin-tabsheet.js';
1
+ import './src/vaadin-tabsheet.js';
2
2
  export * from './src/vaadin-tabsheet.js';
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/tabsheet",
4
- "version": "25.0.0-alpha9",
4
+ "version": "25.0.0-beta2",
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/tabsheet",
4
- "version": "25.0.0-alpha9",
4
+ "version": "25.0.0-beta2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -1,8 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2022 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import type { CSSResult } from 'lit';
7
-
8
- export const tabSheetStyles: CSSResult;
@@ -1,35 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2022 - 2025 Vaadin Ltd.
4
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */
6
- import { css } from 'lit';
7
-
8
- export const tabSheetStyles = css`
9
- :host {
10
- display: flex;
11
- flex-direction: column;
12
- }
13
-
14
- :host([hidden]) {
15
- display: none !important;
16
- }
17
-
18
- [part='tabs-container'] {
19
- position: relative;
20
- display: flex;
21
- align-items: center;
22
- }
23
-
24
- ::slotted([slot='tabs']) {
25
- flex: 1;
26
- align-self: stretch;
27
- min-width: 8em;
28
- }
29
-
30
- [part='content'] {
31
- position: relative;
32
- flex: 1;
33
- box-sizing: border-box;
34
- }
35
- `;
@@ -1,5 +0,0 @@
1
- import '@vaadin/vaadin-lumo-styles/color.js';
2
- import '@vaadin/vaadin-lumo-styles/spacing.js';
3
- import '@vaadin/vaadin-lumo-styles/typography.js';
4
- declare const tabsheet: import("lit").CSSResult;
5
- export { tabsheet };
@@ -1,49 +0,0 @@
1
- import '@vaadin/vaadin-lumo-styles/color.js';
2
- import '@vaadin/vaadin-lumo-styles/spacing.js';
3
- import '@vaadin/vaadin-lumo-styles/typography.js';
4
- import { loader } from '@vaadin/vaadin-lumo-styles/mixins/loader.js';
5
- import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
6
-
7
- const tabsheet = css`
8
- :host {
9
- font-size: var(--lumo-font-size-m);
10
- line-height: var(--lumo-line-height-m);
11
- font-family: var(--lumo-font-family);
12
- }
13
-
14
- :host([theme~='bordered']) {
15
- border: 1px solid var(--lumo-contrast-20pct);
16
- border-radius: var(--lumo-border-radius-l);
17
- }
18
-
19
- [part='tabs-container'] {
20
- box-shadow: inset 0 -1px 0 0 var(--lumo-contrast-10pct);
21
- padding: var(--lumo-space-xs) var(--lumo-space-s);
22
- gap: var(--lumo-space-s);
23
- }
24
-
25
- ::slotted([slot='tabs']) {
26
- box-shadow: initial;
27
- margin: calc(var(--lumo-space-xs) * -1) calc(var(--lumo-space-s) * -1);
28
- }
29
-
30
- [part='content'] {
31
- padding: var(--lumo-space-s) var(--lumo-space-m);
32
- border-bottom-left-radius: inherit;
33
- border-bottom-right-radius: inherit;
34
- }
35
-
36
- :host([loading]) [part='content'] {
37
- display: flex;
38
- align-items: center;
39
- justify-content: center;
40
- }
41
-
42
- :host([theme~='no-padding']) [part='content'] {
43
- padding: 0 !important;
44
- }
45
- `;
46
-
47
- registerStyles('vaadin-tabsheet', [tabsheet, loader], { moduleId: 'lumo-tabsheet' });
48
-
49
- export { tabsheet };
@@ -1,4 +0,0 @@
1
- import '@vaadin/tabs/theme/lumo/vaadin-tabs.js';
2
- import '@vaadin/scroller/theme/lumo/vaadin-scroller.js';
3
- import './vaadin-tabsheet-styles.js';
4
- import '../../src/vaadin-tabsheet.js';
@@ -1,4 +0,0 @@
1
- import '@vaadin/tabs/theme/lumo/vaadin-tabs.js';
2
- import '@vaadin/scroller/theme/lumo/vaadin-scroller.js';
3
- import './vaadin-tabsheet-styles.js';
4
- import '../../src/vaadin-tabsheet.js';