@vaadin/tabsheet 25.0.0-alpha7 → 25.0.0-alpha9

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-alpha7",
3
+ "version": "25.0.0-alpha9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,16 +37,16 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@open-wc/dedupe-mixin": "^1.3.0",
40
- "@vaadin/component-base": "25.0.0-alpha7",
41
- "@vaadin/scroller": "25.0.0-alpha7",
42
- "@vaadin/tabs": "25.0.0-alpha7",
43
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha7",
44
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha7",
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",
45
45
  "lit": "^3.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@vaadin/chai-plugins": "25.0.0-alpha7",
49
- "@vaadin/test-runner-commands": "25.0.0-alpha7",
48
+ "@vaadin/chai-plugins": "25.0.0-alpha9",
49
+ "@vaadin/test-runner-commands": "25.0.0-alpha9",
50
50
  "@vaadin/testing-helpers": "^2.0.0",
51
51
  "sinon": "^18.0.0"
52
52
  },
@@ -54,5 +54,5 @@
54
54
  "web-types.json",
55
55
  "web-types.lit.json"
56
56
  ],
57
- "gitHead": "87f72707ce6866892f8be5782fa0da008e87dcbc"
57
+ "gitHead": "bbe4720721e0955ffc87a79b412bee38b1f0eb1e"
58
58
  }
@@ -10,68 +10,66 @@ import { loaderStyles } from '@vaadin/component-base/src/loader-styles.js';
10
10
  export const tabSheetStyles = [
11
11
  loaderStyles,
12
12
  css`
13
- @layer base {
14
- :host {
15
- display: flex;
16
- flex-direction: column;
17
- border: var(--vaadin-tabsheet-border-width, 1px) solid
18
- var(--vaadin-tabsheet-border-color, var(--vaadin-border-color));
19
- border-radius: var(--vaadin-tabsheet-border-radius, var(--vaadin-radius-l));
20
- overflow: hidden;
21
- }
13
+ :host {
14
+ display: flex;
15
+ flex-direction: column;
16
+ border: var(--vaadin-tabsheet-border-width, 1px) solid
17
+ var(--vaadin-tabsheet-border-color, var(--vaadin-border-color));
18
+ border-radius: var(--vaadin-tabsheet-border-radius, var(--vaadin-radius-l));
19
+ overflow: hidden;
20
+ }
22
21
 
23
- :host([hidden]) {
24
- display: none !important;
25
- }
22
+ :host([hidden]) {
23
+ display: none !important;
24
+ }
26
25
 
27
- [part='tabs-container'] {
28
- position: relative;
29
- display: flex;
30
- align-items: center;
31
- gap: var(--vaadin-tabsheet-gap, var(--vaadin-gap-container-inline));
32
- padding: var(--vaadin-tabsheet-padding, var(--vaadin-padding));
33
- box-sizing: border-box;
34
- }
26
+ [part='tabs-container'] {
27
+ position: relative;
28
+ display: flex;
29
+ align-items: center;
30
+ gap: var(--vaadin-tabsheet-gap, var(--vaadin-gap-container-inline));
31
+ padding: var(--vaadin-tabsheet-padding, var(--vaadin-padding));
32
+ box-sizing: border-box;
33
+ }
35
34
 
36
- ::slotted([slot='tabs']) {
37
- flex: 1;
38
- align-self: stretch;
39
- min-width: 8em;
40
- }
35
+ ::slotted([slot='tabs']) {
36
+ flex: 1;
37
+ align-self: stretch;
38
+ min-width: 128px;
39
+ }
41
40
 
42
- [part='content'] {
43
- position: relative;
44
- flex: 1;
45
- box-sizing: border-box;
46
- padding: var(--vaadin-tabsheet-padding, var(--vaadin-padding));
47
- border-top: var(--vaadin-tabsheet-border-width, 1px) solid transparent;
48
- margin-top: calc(var(--vaadin-tabsheet-border-width, 1px) * -1);
49
- }
41
+ [part='content'] {
42
+ position: relative;
43
+ flex: 1;
44
+ box-sizing: border-box;
45
+ padding: var(--vaadin-tabsheet-padding, var(--vaadin-padding));
46
+ border-top: var(--vaadin-tabsheet-border-width, 1px) solid transparent;
47
+ margin-top: calc(var(--vaadin-tabsheet-border-width, 1px) * -1);
48
+ }
50
49
 
51
- [part='content'][focus-ring] {
52
- border-bottom-left-radius: inherit;
53
- border-bottom-right-radius: inherit;
54
- outline-offset: calc(var(--vaadin-focus-ring-width) * -1);
55
- }
50
+ [part='content'][focus-ring] {
51
+ border-bottom-left-radius: inherit;
52
+ border-bottom-right-radius: inherit;
53
+ outline-offset: calc(var(--vaadin-focus-ring-width) * -1);
54
+ }
56
55
 
57
- [part='content'][overflow~='top'] {
58
- border-top-color: var(--vaadin-tabsheet-border-color, var(--vaadin-border-color));
59
- }
56
+ [part='content'][overflow~='top'] {
57
+ border-top-color: var(--vaadin-tabsheet-border-color, var(--vaadin-border-color));
58
+ }
60
59
 
61
- :host([loading]) [part='content'] {
62
- display: flex;
63
- align-items: center;
64
- justify-content: center;
65
- }
60
+ :host([loading]) [part='content'] {
61
+ display: flex;
62
+ align-items: center;
63
+ justify-content: center;
64
+ }
66
65
 
67
- :host([theme~='no-border']) {
68
- border: 0;
69
- border-radius: 0;
70
- }
66
+ :host([theme~='no-border']) {
67
+ border: 0;
68
+ border-radius: 0;
69
+ }
71
70
 
72
- :host([theme~='no-padding']) [part='content'] {
73
- padding: 0;
74
- }
71
+ :host([theme~='no-padding']) [part='content'] {
72
+ padding: 0 !important;
75
73
  }
76
74
  `,
77
75
  ];
@@ -30,21 +30,21 @@ export interface TabSheetEventMap extends HTMLElementEventMap, TabSheetCustomEve
30
30
  * `<vaadin-tabsheet>` is a Web Component for organizing and grouping content
31
31
  * into scrollable panels. The panels can be switched between by using tabs.
32
32
  *
33
- * ```
34
- * <vaadin-tabsheet>
35
- * <div slot="prefix">Prefix</div>
36
- * <div slot="suffix">Suffix</div>
33
+ * ```html
34
+ * <vaadin-tabsheet>
35
+ * <div slot="prefix">Prefix</div>
36
+ * <div slot="suffix">Suffix</div>
37
37
  *
38
- * <vaadin-tabs slot="tabs">
39
- * <vaadin-tab id="tab-1">Tab 1</vaadin-tab>
40
- * <vaadin-tab id="tab-2">Tab 2</vaadin-tab>
41
- * <vaadin-tab id="tab-3">Tab 3</vaadin-tab>
42
- * </vaadin-tabs>
38
+ * <vaadin-tabs slot="tabs">
39
+ * <vaadin-tab id="tab-1">Tab 1</vaadin-tab>
40
+ * <vaadin-tab id="tab-2">Tab 2</vaadin-tab>
41
+ * <vaadin-tab id="tab-3">Tab 3</vaadin-tab>
42
+ * </vaadin-tabs>
43
43
  *
44
- * <div tab="tab-1">Panel 1</div>
45
- * <div tab="tab-2">Panel 2</div>
46
- * <div tab="tab-3">Panel 3</div>
47
- * </vaadin-tabsheet>
44
+ * <div tab="tab-1">Panel 1</div>
45
+ * <div tab="tab-2">Panel 2</div>
46
+ * <div tab="tab-3">Panel 3</div>
47
+ * </vaadin-tabsheet>
48
48
  * ```
49
49
  *
50
50
  * ### Styling
@@ -18,21 +18,21 @@ import { TabSheetMixin } from './vaadin-tabsheet-mixin.js';
18
18
  * `<vaadin-tabsheet>` is a Web Component for organizing and grouping content
19
19
  * into scrollable panels. The panels can be switched between by using tabs.
20
20
  *
21
- * ```
22
- * <vaadin-tabsheet>
23
- * <div slot="prefix">Prefix</div>
24
- * <div slot="suffix">Suffix</div>
21
+ * ```html
22
+ * <vaadin-tabsheet>
23
+ * <div slot="prefix">Prefix</div>
24
+ * <div slot="suffix">Suffix</div>
25
25
  *
26
- * <vaadin-tabs slot="tabs">
27
- * <vaadin-tab id="tab-1">Tab 1</vaadin-tab>
28
- * <vaadin-tab id="tab-2">Tab 2</vaadin-tab>
29
- * <vaadin-tab id="tab-3">Tab 3</vaadin-tab>
30
- * </vaadin-tabs>
26
+ * <vaadin-tabs slot="tabs">
27
+ * <vaadin-tab id="tab-1">Tab 1</vaadin-tab>
28
+ * <vaadin-tab id="tab-2">Tab 2</vaadin-tab>
29
+ * <vaadin-tab id="tab-3">Tab 3</vaadin-tab>
30
+ * </vaadin-tabs>
31
31
  *
32
- * <div tab="tab-1">Panel 1</div>
33
- * <div tab="tab-2">Panel 2</div>
34
- * <div tab="tab-3">Panel 3</div>
35
- * </vaadin-tabsheet>
32
+ * <div tab="tab-1">Panel 1</div>
33
+ * <div tab="tab-2">Panel 2</div>
34
+ * <div tab="tab-3">Panel 3</div>
35
+ * </vaadin-tabsheet>
36
36
  * ```
37
37
  *
38
38
  * ### Styling
@@ -62,7 +62,7 @@ import { TabSheetMixin } from './vaadin-tabsheet-mixin.js';
62
62
  * @mixes ElementMixin
63
63
  * @mixes ThemableMixin
64
64
  */
65
- class TabSheet extends TabSheetMixin(ThemableMixin(ElementMixin(LumoInjectionMixin(PolylitMixin(LitElement))))) {
65
+ class TabSheet extends TabSheetMixin(ThemableMixin(ElementMixin(PolylitMixin(LumoInjectionMixin(LitElement))))) {
66
66
  static get is() {
67
67
  return 'vaadin-tabsheet';
68
68
  }
@@ -40,7 +40,7 @@ const tabsheet = css`
40
40
  }
41
41
 
42
42
  :host([theme~='no-padding']) [part='content'] {
43
- padding: 0;
43
+ padding: 0 !important;
44
44
  }
45
45
  `;
46
46
 
package/web-types.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/tabsheet",
4
- "version": "25.0.0-alpha7",
4
+ "version": "25.0.0-alpha9",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "vaadin-tabsheet",
11
- "description": "`<vaadin-tabsheet>` is a Web Component for organizing and grouping content\ninto scrollable panels. The panels can be switched between by using tabs.\n\n```\n <vaadin-tabsheet>\n <div slot=\"prefix\">Prefix</div>\n <div slot=\"suffix\">Suffix</div>\n\n <vaadin-tabs slot=\"tabs\">\n <vaadin-tab id=\"tab-1\">Tab 1</vaadin-tab>\n <vaadin-tab id=\"tab-2\">Tab 2</vaadin-tab>\n <vaadin-tab id=\"tab-3\">Tab 3</vaadin-tab>\n </vaadin-tabs>\n\n <div tab=\"tab-1\">Panel 1</div>\n <div tab=\"tab-2\">Panel 2</div>\n <div tab=\"tab-3\">Panel 3</div>\n </vaadin-tabsheet>\n```\n\n### Styling\n\nThe following shadow DOM parts are exposed for styling:\n\nPart name | Description\n--------- | ---------------\n`tabs-container` | The container for the slotted prefix, tabs and suffix\n`content` | The container for the slotted panels\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n------------------|-------------\n`loading` | Set when a tab without associated content is selected\n`overflow` | Set to `top`, `bottom`, `start`, `end`, all of them, or none.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
11
+ "description": "`<vaadin-tabsheet>` is a Web Component for organizing and grouping content\ninto scrollable panels. The panels can be switched between by using tabs.\n\n```html\n<vaadin-tabsheet>\n <div slot=\"prefix\">Prefix</div>\n <div slot=\"suffix\">Suffix</div>\n\n <vaadin-tabs slot=\"tabs\">\n <vaadin-tab id=\"tab-1\">Tab 1</vaadin-tab>\n <vaadin-tab id=\"tab-2\">Tab 2</vaadin-tab>\n <vaadin-tab id=\"tab-3\">Tab 3</vaadin-tab>\n </vaadin-tabs>\n\n <div tab=\"tab-1\">Panel 1</div>\n <div tab=\"tab-2\">Panel 2</div>\n <div tab=\"tab-3\">Panel 3</div>\n</vaadin-tabsheet>\n```\n\n### Styling\n\nThe following shadow DOM parts are exposed for styling:\n\nPart name | Description\n--------- | ---------------\n`tabs-container` | The container for the slotted prefix, tabs and suffix\n`content` | The container for the slotted panels\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n------------------|-------------\n`loading` | Set when a tab without associated content is selected\n`overflow` | Set to `top`, `bottom`, `start`, `end`, all of them, or none.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
12
12
  "attributes": [
13
13
  {
14
14
  "name": "selected",
@@ -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-alpha7",
4
+ "version": "25.0.0-alpha9",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -16,7 +16,7 @@
16
16
  "elements": [
17
17
  {
18
18
  "name": "vaadin-tabsheet",
19
- "description": "`<vaadin-tabsheet>` is a Web Component for organizing and grouping content\ninto scrollable panels. The panels can be switched between by using tabs.\n\n```\n <vaadin-tabsheet>\n <div slot=\"prefix\">Prefix</div>\n <div slot=\"suffix\">Suffix</div>\n\n <vaadin-tabs slot=\"tabs\">\n <vaadin-tab id=\"tab-1\">Tab 1</vaadin-tab>\n <vaadin-tab id=\"tab-2\">Tab 2</vaadin-tab>\n <vaadin-tab id=\"tab-3\">Tab 3</vaadin-tab>\n </vaadin-tabs>\n\n <div tab=\"tab-1\">Panel 1</div>\n <div tab=\"tab-2\">Panel 2</div>\n <div tab=\"tab-3\">Panel 3</div>\n </vaadin-tabsheet>\n```\n\n### Styling\n\nThe following shadow DOM parts are exposed for styling:\n\nPart name | Description\n--------- | ---------------\n`tabs-container` | The container for the slotted prefix, tabs and suffix\n`content` | The container for the slotted panels\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n------------------|-------------\n`loading` | Set when a tab without associated content is selected\n`overflow` | Set to `top`, `bottom`, `start`, `end`, all of them, or none.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
19
+ "description": "`<vaadin-tabsheet>` is a Web Component for organizing and grouping content\ninto scrollable panels. The panels can be switched between by using tabs.\n\n```html\n<vaadin-tabsheet>\n <div slot=\"prefix\">Prefix</div>\n <div slot=\"suffix\">Suffix</div>\n\n <vaadin-tabs slot=\"tabs\">\n <vaadin-tab id=\"tab-1\">Tab 1</vaadin-tab>\n <vaadin-tab id=\"tab-2\">Tab 2</vaadin-tab>\n <vaadin-tab id=\"tab-3\">Tab 3</vaadin-tab>\n </vaadin-tabs>\n\n <div tab=\"tab-1\">Panel 1</div>\n <div tab=\"tab-2\">Panel 2</div>\n <div tab=\"tab-3\">Panel 3</div>\n</vaadin-tabsheet>\n```\n\n### Styling\n\nThe following shadow DOM parts are exposed for styling:\n\nPart name | Description\n--------- | ---------------\n`tabs-container` | The container for the slotted prefix, tabs and suffix\n`content` | The container for the slotted panels\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n------------------|-------------\n`loading` | Set when a tab without associated content is selected\n`overflow` | Set to `top`, `bottom`, `start`, `end`, all of them, or none.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
20
20
  "extension": true,
21
21
  "attributes": [
22
22
  {