@vaadin/scroller 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/scroller",
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,20 +34,20 @@
37
34
  ],
38
35
  "dependencies": {
39
36
  "@open-wc/dedupe-mixin": "^1.3.0",
40
- "@vaadin/a11y-base": "25.0.0-alpha9",
41
- "@vaadin/component-base": "25.0.0-alpha9",
42
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha9",
43
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha9",
37
+ "@vaadin/a11y-base": "25.0.0-beta2",
38
+ "@vaadin/component-base": "25.0.0-beta2",
39
+ "@vaadin/vaadin-themable-mixin": "25.0.0-beta2",
44
40
  "lit": "^3.0.0"
45
41
  },
46
42
  "devDependencies": {
47
- "@vaadin/chai-plugins": "25.0.0-alpha9",
48
- "@vaadin/test-runner-commands": "25.0.0-alpha9",
49
- "@vaadin/testing-helpers": "^2.0.0"
43
+ "@vaadin/chai-plugins": "25.0.0-beta2",
44
+ "@vaadin/test-runner-commands": "25.0.0-beta2",
45
+ "@vaadin/testing-helpers": "^2.0.0",
46
+ "@vaadin/vaadin-lumo-styles": "25.0.0-beta2"
50
47
  },
51
48
  "web-types": [
52
49
  "web-types.json",
53
50
  "web-types.lit.json"
54
51
  ],
55
- "gitHead": "bbe4720721e0955ffc87a79b412bee38b1f0eb1e"
52
+ "gitHead": "e078f8371ae266f05c7ca1ec25686cc489c83f24"
56
53
  }
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) 2020 - 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
8
 
9
9
  export const scrollerStyles = css`
@@ -33,8 +33,8 @@ export const scrollerStyles = css`
33
33
  overflow: hidden;
34
34
  }
35
35
 
36
- :host([theme~='overflow-indicators'])::before,
37
- :host([theme~='overflow-indicators'])::after {
36
+ :host([theme*='overflow-indicator'])::before,
37
+ :host([theme*='overflow-indicator'])::after {
38
38
  content: '';
39
39
  display: none;
40
40
  position: sticky;
@@ -42,16 +42,18 @@ export const scrollerStyles = css`
42
42
  z-index: 9999;
43
43
  height: 1px;
44
44
  margin-bottom: -1px;
45
- background: var(--vaadin-scroller-border-color, var(--vaadin-border-color));
45
+ background: var(--vaadin-scroller-border-color, var(--vaadin-border-color-secondary));
46
46
  }
47
47
 
48
- :host([theme~='overflow-indicators'])::after {
48
+ :host([theme*='overflow-indicator'])::after {
49
49
  margin-bottom: 0;
50
50
  margin-top: -1px;
51
51
  }
52
52
 
53
+ :host([theme~='overflow-indicator-top'][overflow~='top'])::before,
53
54
  :host([theme~='overflow-indicators'][overflow~='top'])::before,
54
- :host([theme~='overflow-indicators'][overflow~='bottom'])::after {
55
+ :host([theme~='overflow-indicators'][overflow~='bottom'])::after,
56
+ :host([theme~='overflow-indicator-bottom'][overflow~='bottom'])::after {
55
57
  display: block;
56
58
  }
57
59
  `;
@@ -15,6 +15,7 @@ import { ScrollerMixin } from './vaadin-scroller-mixin.js';
15
15
  * <div>Content</div>
16
16
  * </vaadin-scroller>
17
17
  * ```
18
+ *
18
19
  * The following attributes are exposed for styling:
19
20
  *
20
21
  * Attribute | Description
@@ -10,7 +10,7 @@ import { OverflowController } from '@vaadin/component-base/src/overflow-controll
10
10
  import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
11
11
  import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
12
12
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
13
- import { scrollerStyles } from './styles/vaadin-scroller-core-styles.js';
13
+ import { scrollerStyles } from './styles/vaadin-scroller-base-styles.js';
14
14
  import { ScrollerMixin } from './vaadin-scroller-mixin.js';
15
15
 
16
16
  /**
@@ -21,6 +21,7 @@ import { ScrollerMixin } from './vaadin-scroller-mixin.js';
21
21
  * <div>Content</div>
22
22
  * </vaadin-scroller>
23
23
  * ```
24
+ *
24
25
  * The following attributes are exposed for styling:
25
26
  *
26
27
  * Attribute | Description
@@ -1,2 +1,2 @@
1
- import './theme/lumo/vaadin-scroller.js';
1
+ import './src/vaadin-scroller.js';
2
2
  export * from './src/vaadin-scroller.js';
package/web-types.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/scroller",
4
- "version": "25.0.0-alpha9",
4
+ "version": "25.0.0-beta2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "vaadin-scroller",
11
- "description": "`<vaadin-scroller>` provides a simple way to enable scrolling when its content is overflowing.\n\n```html\n<vaadin-scroller>\n <div>Content</div>\n</vaadin-scroller>\n```\nThe following attributes are exposed for styling:\n\nAttribute | Description\n-------------| -----------\n`focus-ring` | Set when the element is focused using the keyboard.\n`focused` | Set when the element is focused.\n`overflow` | Set to `top`, `bottom`, `start`, `end`, all of them, or none.",
11
+ "description": "`<vaadin-scroller>` provides a simple way to enable scrolling when its content is overflowing.\n\n```html\n<vaadin-scroller>\n <div>Content</div>\n</vaadin-scroller>\n```\n\nThe following attributes are exposed for styling:\n\nAttribute | Description\n-------------| -----------\n`focus-ring` | Set when the element is focused using the keyboard.\n`focused` | Set when the element is focused.\n`overflow` | Set to `top`, `bottom`, `start`, `end`, all of them, or none.",
12
12
  "attributes": [
13
13
  {
14
14
  "name": "scroll-direction",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/scroller",
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": {
@@ -16,7 +16,7 @@
16
16
  "elements": [
17
17
  {
18
18
  "name": "vaadin-scroller",
19
- "description": "`<vaadin-scroller>` provides a simple way to enable scrolling when its content is overflowing.\n\n```html\n<vaadin-scroller>\n <div>Content</div>\n</vaadin-scroller>\n```\nThe following attributes are exposed for styling:\n\nAttribute | Description\n-------------| -----------\n`focus-ring` | Set when the element is focused using the keyboard.\n`focused` | Set when the element is focused.\n`overflow` | Set to `top`, `bottom`, `start`, `end`, all of them, or none.",
19
+ "description": "`<vaadin-scroller>` provides a simple way to enable scrolling when its content is overflowing.\n\n```html\n<vaadin-scroller>\n <div>Content</div>\n</vaadin-scroller>\n```\n\nThe following attributes are exposed for styling:\n\nAttribute | Description\n-------------| -----------\n`focus-ring` | Set when the element is focused using the keyboard.\n`focused` | Set when the element is focused.\n`overflow` | Set to `top`, `bottom`, `start`, `end`, all of them, or none.",
20
20
  "extension": true,
21
21
  "attributes": [
22
22
  {
@@ -1,8 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2020 - 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 scrollerStyles: CSSResult;
@@ -1,29 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (c) 2020 - 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 scrollerStyles = css`
9
- :host {
10
- display: block;
11
- overflow: auto;
12
- }
13
-
14
- :host([hidden]) {
15
- display: none !important;
16
- }
17
-
18
- :host([scroll-direction='vertical']) {
19
- overflow-x: hidden;
20
- }
21
-
22
- :host([scroll-direction='horizontal']) {
23
- overflow-y: hidden;
24
- }
25
-
26
- :host([scroll-direction='none']) {
27
- overflow: hidden;
28
- }
29
- `;
@@ -1,4 +0,0 @@
1
- import '@vaadin/vaadin-lumo-styles/color.js';
2
- import '@vaadin/vaadin-lumo-styles/style.js';
3
- declare const scroller: import("lit").CSSResult;
4
- export { scroller };
@@ -1,43 +0,0 @@
1
- import '@vaadin/vaadin-lumo-styles/color.js';
2
- import '@vaadin/vaadin-lumo-styles/style.js';
3
- import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
4
-
5
- const scroller = css`
6
- :host {
7
- outline: none;
8
- --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
9
- --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
10
- }
11
-
12
- :host([focus-ring]) {
13
- box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
14
- }
15
-
16
- /* Show dividers when content overflows */
17
-
18
- :host([theme~='overflow-indicators'])::before,
19
- :host([theme~='overflow-indicators'])::after {
20
- content: '';
21
- display: none;
22
- position: sticky;
23
- inset: 0;
24
- z-index: 9999;
25
- height: 1px;
26
- margin-bottom: -1px;
27
- background: var(--lumo-contrast-10pct);
28
- }
29
-
30
- :host([theme~='overflow-indicators'])::after {
31
- margin-bottom: 0;
32
- margin-top: -1px;
33
- }
34
-
35
- :host([theme~='overflow-indicators'][overflow~='top'])::before,
36
- :host([theme~='overflow-indicators'][overflow~='bottom'])::after {
37
- display: block;
38
- }
39
- `;
40
-
41
- registerStyles('vaadin-scroller', scroller, { moduleId: 'lumo-scroller' });
42
-
43
- export { scroller };
@@ -1,2 +0,0 @@
1
- import './vaadin-scroller-styles.js';
2
- import '../../src/vaadin-scroller.js';
@@ -1,2 +0,0 @@
1
- import './vaadin-scroller-styles.js';
2
- import '../../src/vaadin-scroller.js';