@vaadin/accordion 25.0.0-alpha6 → 25.0.0-alpha8

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/accordion",
3
- "version": "25.0.0-alpha6",
3
+ "version": "25.0.0-alpha8",
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/a11y-base": "25.0.0-alpha6",
41
- "@vaadin/component-base": "25.0.0-alpha6",
42
- "@vaadin/details": "25.0.0-alpha6",
43
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha6",
44
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha6",
40
+ "@vaadin/a11y-base": "25.0.0-alpha8",
41
+ "@vaadin/component-base": "25.0.0-alpha8",
42
+ "@vaadin/details": "25.0.0-alpha8",
43
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha8",
44
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha8",
45
45
  "lit": "^3.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@vaadin/chai-plugins": "25.0.0-alpha6",
49
- "@vaadin/test-runner-commands": "25.0.0-alpha6",
48
+ "@vaadin/chai-plugins": "25.0.0-alpha8",
49
+ "@vaadin/test-runner-commands": "25.0.0-alpha8",
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": "cd1d084198d2b326c58d44bb39fa4845b71ce551"
57
+ "gitHead": "ebf53673d5f639d2b1b6f2b31f640f530643ee2f"
58
58
  }
@@ -9,21 +9,19 @@ import { detailsSummary } from '@vaadin/details/src/styles/vaadin-details-summar
9
9
  export const accordionHeading = [
10
10
  detailsSummary('vaadin-accordion-heading'),
11
11
  css`
12
- @layer base {
13
- button {
14
- align-items: center;
15
- appearance: none;
16
- background: transparent;
17
- border: 0;
18
- color: inherit;
19
- cursor: inherit;
20
- display: flex;
21
- font: inherit;
22
- gap: inherit;
23
- outline: none;
24
- padding: 0;
25
- touch-action: manipulation;
26
- }
12
+ button {
13
+ align-items: center;
14
+ appearance: none;
15
+ background: transparent;
16
+ border: 0;
17
+ color: inherit;
18
+ cursor: inherit;
19
+ display: flex;
20
+ font: inherit;
21
+ gap: inherit;
22
+ outline: none;
23
+ padding: 0;
24
+ touch-action: manipulation;
27
25
  }
28
26
  `,
29
27
  ];
@@ -6,25 +6,23 @@
6
6
  import { css } from 'lit';
7
7
 
8
8
  export const accordionPanel = css`
9
- @layer base {
10
- :host {
11
- display: block;
12
- }
9
+ :host {
10
+ display: block;
11
+ }
13
12
 
14
- :host([hidden]) {
15
- display: none !important;
16
- }
13
+ :host([hidden]) {
14
+ display: none !important;
15
+ }
17
16
 
18
- [part='content'] {
19
- box-sizing: border-box;
20
- }
17
+ [part='content'] {
18
+ box-sizing: border-box;
19
+ }
21
20
 
22
- :host(:not([opened])) [part='content'] {
23
- display: none !important;
24
- }
21
+ :host(:not([opened])) [part='content'] {
22
+ display: none !important;
23
+ }
25
24
 
26
- :host([focus-ring]) {
27
- --_focus-ring: 1;
28
- }
25
+ :host([focus-ring]) {
26
+ --_focus-ring: 1;
29
27
  }
30
28
  `;
@@ -51,7 +51,7 @@ import { accordionHeading } from './styles/vaadin-accordion-heading-core-styles.
51
51
  * @mixes DirMixin
52
52
  * @mixes ThemableMixin
53
53
  */
54
- class AccordionHeading extends ActiveMixin(DirMixin(LumoInjectionMixin(ThemableMixin(PolylitMixin(LitElement))))) {
54
+ class AccordionHeading extends ActiveMixin(DirMixin(ThemableMixin(PolylitMixin(LumoInjectionMixin(LitElement))))) {
55
55
  static get is() {
56
56
  return 'vaadin-accordion-heading';
57
57
  }
@@ -41,7 +41,7 @@ import { AccordionPanelMixin } from './vaadin-accordion-panel-mixin.js';
41
41
  * @mixes AccordionPanelMixin
42
42
  * @mixes ThemableMixin
43
43
  */
44
- class AccordionPanel extends AccordionPanelMixin(LumoInjectionMixin(ThemableMixin(PolylitMixin(LitElement)))) {
44
+ class AccordionPanel extends AccordionPanelMixin(ThemableMixin(PolylitMixin(LumoInjectionMixin(LitElement)))) {
45
45
  static get is() {
46
46
  return 'vaadin-accordion-panel';
47
47
  }
@@ -38,7 +38,7 @@ export type AccordionEventMap = AccordionCustomEventMap & HTMLElementEventMap;
38
38
  * Only one panel can be opened at a time, opening a new one forces
39
39
  * previous panel to close and hide its content.
40
40
  *
41
- * ```
41
+ * ```html
42
42
  * <vaadin-accordion>
43
43
  * <vaadin-accordion-panel>
44
44
  * <vaadin-accordion-heading slot="summary">Panel 1</vaadin-accordion-heading>
@@ -56,15 +56,6 @@ export type AccordionEventMap = AccordionCustomEventMap & HTMLElementEventMap;
56
56
  * See the [`<vaadin-accordion-panel>`](#/elements/vaadin-accordion-panel)
57
57
  * documentation for the available state attributes and stylable shadow parts.
58
58
  *
59
- * **Note:** You can apply the theme to `<vaadin-accordion>` component itself,
60
- * especially by using the following CSS selector:
61
- *
62
- * ```
63
- * :host ::slotted(vaadin-accordion-panel) {
64
- * margin-bottom: 5px;
65
- * }
66
- * ```
67
- *
68
59
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
69
60
  *
70
61
  * @fires {CustomEvent} items-changed - Fired when the `items` property changes.
@@ -8,7 +8,6 @@ import { css, html, LitElement } from 'lit';
8
8
  import { defineCustomElement } from '@vaadin/component-base/src/define.js';
9
9
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
10
10
  import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
11
- import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
12
11
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
13
12
  import { AccordionMixin } from './vaadin-accordion-mixin.js';
14
13
 
@@ -24,7 +23,7 @@ import { AccordionMixin } from './vaadin-accordion-mixin.js';
24
23
  * Only one panel can be opened at a time, opening a new one forces
25
24
  * previous panel to close and hide its content.
26
25
  *
27
- * ```
26
+ * ```html
28
27
  * <vaadin-accordion>
29
28
  * <vaadin-accordion-panel>
30
29
  * <vaadin-accordion-heading slot="summary">Panel 1</vaadin-accordion-heading>
@@ -42,15 +41,6 @@ import { AccordionMixin } from './vaadin-accordion-mixin.js';
42
41
  * See the [`<vaadin-accordion-panel>`](#/elements/vaadin-accordion-panel)
43
42
  * documentation for the available state attributes and stylable shadow parts.
44
43
  *
45
- * **Note:** You can apply the theme to `<vaadin-accordion>` component itself,
46
- * especially by using the following CSS selector:
47
- *
48
- * ```
49
- * :host ::slotted(vaadin-accordion-panel) {
50
- * margin-bottom: 5px;
51
- * }
52
- * ```
53
- *
54
44
  * See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
55
45
  *
56
46
  * @fires {CustomEvent} items-changed - Fired when the `items` property changes.
@@ -62,7 +52,7 @@ import { AccordionMixin } from './vaadin-accordion-mixin.js';
62
52
  * @mixes ElementMixin
63
53
  * @mixes ThemableMixin
64
54
  */
65
- class Accordion extends AccordionMixin(LumoInjectionMixin(ThemableMixin(ElementMixin(PolylitMixin(LitElement))))) {
55
+ class Accordion extends AccordionMixin(ThemableMixin(ElementMixin(PolylitMixin(LitElement)))) {
66
56
  static get is() {
67
57
  return 'vaadin-accordion';
68
58
  }
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/accordion",
4
- "version": "25.0.0-alpha6",
4
+ "version": "25.0.0-alpha8",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -185,7 +185,7 @@
185
185
  },
186
186
  {
187
187
  "name": "vaadin-accordion",
188
- "description": "`<vaadin-accordion>` is a Web Component implementing accordion widget:\na vertically stacked set of expandable panels. The component should be\nused as a wrapper for two or more `<vaadin-accordion-panel>` components.\n\nPanel headings function as controls that enable users to open (expand)\nor hide (collapse) their associated sections of content. The user can\ntoggle panels by mouse click, Enter and Space keys.\n\nOnly one panel can be opened at a time, opening a new one forces\nprevious panel to close and hide its content.\n\n```\n<vaadin-accordion>\n <vaadin-accordion-panel>\n <vaadin-accordion-heading slot=\"summary\">Panel 1</vaadin-accordion-heading>\n <div>This panel is opened, so the text is visible by default.</div>\n </vaadin-accordion-panel>\n <vaadin-accordion-panel>\n <vaadin-accordion-heading slot=\"summary\">Panel 2</vaadin-accordion-heading>\n <div>After opening this panel, the first one becomes closed.</div>\n </vaadin-accordion-panel>\n</vaadin-accordion>\n```\n\n### Styling\n\nSee the [`<vaadin-accordion-panel>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha6/#/elements/vaadin-accordion-panel)\ndocumentation for the available state attributes and stylable shadow parts.\n\n**Note:** You can apply the theme to `<vaadin-accordion>` component itself,\nespecially by using the following CSS selector:\n\n```\n:host ::slotted(vaadin-accordion-panel) {\n margin-bottom: 5px;\n}\n```\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
188
+ "description": "`<vaadin-accordion>` is a Web Component implementing accordion widget:\na vertically stacked set of expandable panels. The component should be\nused as a wrapper for two or more `<vaadin-accordion-panel>` components.\n\nPanel headings function as controls that enable users to open (expand)\nor hide (collapse) their associated sections of content. The user can\ntoggle panels by mouse click, Enter and Space keys.\n\nOnly one panel can be opened at a time, opening a new one forces\nprevious panel to close and hide its content.\n\n```html\n<vaadin-accordion>\n <vaadin-accordion-panel>\n <vaadin-accordion-heading slot=\"summary\">Panel 1</vaadin-accordion-heading>\n <div>This panel is opened, so the text is visible by default.</div>\n </vaadin-accordion-panel>\n <vaadin-accordion-panel>\n <vaadin-accordion-heading slot=\"summary\">Panel 2</vaadin-accordion-heading>\n <div>After opening this panel, the first one becomes closed.</div>\n </vaadin-accordion-panel>\n</vaadin-accordion>\n```\n\n### Styling\n\nSee the [`<vaadin-accordion-panel>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha8/#/elements/vaadin-accordion-panel)\ndocumentation for the available state attributes and stylable shadow parts.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
189
189
  "attributes": [
190
190
  {
191
191
  "name": "opened",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/accordion",
4
- "version": "25.0.0-alpha6",
4
+ "version": "25.0.0-alpha8",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -79,7 +79,7 @@
79
79
  },
80
80
  {
81
81
  "name": "vaadin-accordion",
82
- "description": "`<vaadin-accordion>` is a Web Component implementing accordion widget:\na vertically stacked set of expandable panels. The component should be\nused as a wrapper for two or more `<vaadin-accordion-panel>` components.\n\nPanel headings function as controls that enable users to open (expand)\nor hide (collapse) their associated sections of content. The user can\ntoggle panels by mouse click, Enter and Space keys.\n\nOnly one panel can be opened at a time, opening a new one forces\nprevious panel to close and hide its content.\n\n```\n<vaadin-accordion>\n <vaadin-accordion-panel>\n <vaadin-accordion-heading slot=\"summary\">Panel 1</vaadin-accordion-heading>\n <div>This panel is opened, so the text is visible by default.</div>\n </vaadin-accordion-panel>\n <vaadin-accordion-panel>\n <vaadin-accordion-heading slot=\"summary\">Panel 2</vaadin-accordion-heading>\n <div>After opening this panel, the first one becomes closed.</div>\n </vaadin-accordion-panel>\n</vaadin-accordion>\n```\n\n### Styling\n\nSee the [`<vaadin-accordion-panel>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha6/#/elements/vaadin-accordion-panel)\ndocumentation for the available state attributes and stylable shadow parts.\n\n**Note:** You can apply the theme to `<vaadin-accordion>` component itself,\nespecially by using the following CSS selector:\n\n```\n:host ::slotted(vaadin-accordion-panel) {\n margin-bottom: 5px;\n}\n```\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
82
+ "description": "`<vaadin-accordion>` is a Web Component implementing accordion widget:\na vertically stacked set of expandable panels. The component should be\nused as a wrapper for two or more `<vaadin-accordion-panel>` components.\n\nPanel headings function as controls that enable users to open (expand)\nor hide (collapse) their associated sections of content. The user can\ntoggle panels by mouse click, Enter and Space keys.\n\nOnly one panel can be opened at a time, opening a new one forces\nprevious panel to close and hide its content.\n\n```html\n<vaadin-accordion>\n <vaadin-accordion-panel>\n <vaadin-accordion-heading slot=\"summary\">Panel 1</vaadin-accordion-heading>\n <div>This panel is opened, so the text is visible by default.</div>\n </vaadin-accordion-panel>\n <vaadin-accordion-panel>\n <vaadin-accordion-heading slot=\"summary\">Panel 2</vaadin-accordion-heading>\n <div>After opening this panel, the first one becomes closed.</div>\n </vaadin-accordion-panel>\n</vaadin-accordion>\n```\n\n### Styling\n\nSee the [`<vaadin-accordion-panel>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha8/#/elements/vaadin-accordion-panel)\ndocumentation for the available state attributes and stylable shadow parts.\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
83
83
  "extension": true,
84
84
  "attributes": [
85
85
  {