@vaadin/combo-box 23.2.0-dev.8a7678b70 → 23.3.0-alpha1

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.
@@ -1,5 +1,6 @@
1
1
  import '@vaadin/vaadin-material-styles/color.js';
2
2
  import '@vaadin/vaadin-overlay/theme/material/vaadin-overlay.js';
3
+ import { loader } from '@vaadin/vaadin-material-styles/mixins/loader.js';
3
4
  import { menuOverlay } from '@vaadin/vaadin-material-styles/mixins/menu-overlay.js';
4
5
  import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
5
6
 
@@ -21,102 +22,15 @@ const comboBoxOverlay = css`
21
22
  padding: 0;
22
23
  }
23
24
 
24
- :host([loading]) [part='loader'] {
25
- height: 2px;
25
+ [part~='loader'] {
26
26
  position: absolute;
27
27
  z-index: 1;
28
28
  top: -2px;
29
29
  left: 0;
30
30
  right: 0;
31
- background: var(--material-background-color)
32
- linear-gradient(
33
- 90deg,
34
- transparent 0%,
35
- transparent 20%,
36
- var(--material-primary-color) 20%,
37
- var(--material-primary-color) 40%,
38
- transparent 40%,
39
- transparent 60%,
40
- var(--material-primary-color) 60%,
41
- var(--material-primary-color) 80%,
42
- transparent 80%,
43
- transparent 100%
44
- )
45
- 0 0 / 400% 100% repeat-x;
46
- opacity: 0;
47
- animation: 3s linear infinite material-combo-box-loader-progress, 0.3s 0.1s both material-combo-box-loader-fade-in;
48
- }
49
-
50
- [part='loader']::before {
51
- content: '';
52
- display: block;
53
- height: 100%;
54
- opacity: 0.16;
55
- background: var(--material-primary-color);
56
- }
57
-
58
- @keyframes material-combo-box-loader-fade-in {
59
- 0% {
60
- opacity: 0;
61
- }
62
-
63
- 100% {
64
- opacity: 1;
65
- }
66
- }
67
-
68
- @keyframes material-combo-box-loader-progress {
69
- 0% {
70
- background-position: 0 0;
71
- background-size: 300% 100%;
72
- }
73
-
74
- 33% {
75
- background-position: -100% 0;
76
- background-size: 400% 100%;
77
- }
78
-
79
- 67% {
80
- background-position: -200% 0;
81
- background-size: 250% 100%;
82
- }
83
-
84
- 100% {
85
- background-position: -300% 0;
86
- background-size: 300% 100%;
87
- }
88
- }
89
-
90
- /* RTL specific styles */
91
-
92
- @keyframes material-combo-box-loader-progress-rtl {
93
- 0% {
94
- background-position: 100% 0;
95
- background-size: 300% 100%;
96
- }
97
-
98
- 33% {
99
- background-position: 200% 0;
100
- background-size: 400% 100%;
101
- }
102
-
103
- 67% {
104
- background-position: 300% 0;
105
- background-size: 250% 100%;
106
- }
107
-
108
- 100% {
109
- background-position: 400% 0;
110
- background-size: 300% 100%;
111
- }
112
- }
113
-
114
- :host([loading][dir='rtl']) [part='loader'] {
115
- animation: 3s linear infinite material-combo-box-loader-progress-rtl,
116
- 0.3s 0.1s both material-combo-box-loader-fade-in;
117
31
  }
118
32
  `;
119
33
 
120
- registerStyles('vaadin-combo-box-overlay', [menuOverlay, comboBoxOverlay], {
34
+ registerStyles('vaadin-combo-box-overlay', [menuOverlay, comboBoxOverlay, loader], {
121
35
  moduleId: 'material-combo-box-overlay',
122
36
  });