@vaadin/select 24.8.0-alpha9 → 25.0.0-alpha2
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/README.md +0 -29
- package/package.json +19 -20
- package/src/{vaadin-lit-select-item.d.ts → vaadin-select-base-styles.d.ts} +3 -1
- package/src/vaadin-select-base-styles.js +36 -0
- package/src/{vaadin-lit-select.d.ts → vaadin-select-core-styles.d.ts} +3 -1
- package/src/{vaadin-lit-select-list-box.d.ts → vaadin-select-core-styles.js} +11 -1
- package/src/vaadin-select-item.js +28 -19
- package/src/vaadin-select-list-box.d.ts +1 -2
- package/src/vaadin-select-list-box.js +15 -26
- package/src/vaadin-select-overlay-base-styles.js +23 -0
- package/src/vaadin-select-overlay-core-styles.js +23 -0
- package/src/vaadin-select-overlay.js +21 -26
- package/src/vaadin-select-value-button-base-styles.js +32 -0
- package/src/vaadin-select-value-button.js +11 -7
- package/src/vaadin-select.js +34 -72
- package/web-types.json +2 -2
- package/web-types.lit.json +2 -2
- package/src/vaadin-lit-select-item.js +0 -70
- package/src/vaadin-lit-select-list-box.js +0 -85
- package/src/vaadin-lit-select-overlay.js +0 -70
- package/src/vaadin-lit-select-value-button.js +0 -42
- package/src/vaadin-lit-select.js +0 -122
- package/theme/lumo/vaadin-lit-select.d.ts +0 -7
- package/theme/lumo/vaadin-lit-select.js +0 -7
- package/theme/material/vaadin-lit-select.d.ts +0 -7
- package/theme/material/vaadin-lit-select.js +0 -7
- package/theme/material/vaadin-select-styles.d.ts +0 -7
- package/theme/material/vaadin-select-styles.js +0 -77
- package/theme/material/vaadin-select.d.ts +0 -7
- package/theme/material/vaadin-select.js +0 -7
- package/vaadin-lit-select.d.ts +0 -1
- package/vaadin-lit-select.js +0 -2
- /package/src/{vaadin-select-value-button-styles.js → vaadin-select-value-button-core-styles.js} +0 -0
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
-
*/
|
|
6
|
-
import '@vaadin/input-container/theme/material/vaadin-input-container-styles.js';
|
|
7
|
-
import '@vaadin/vaadin-material-styles/font-icons.js';
|
|
8
|
-
import { item } from '@vaadin/item/theme/material/vaadin-item-styles.js';
|
|
9
|
-
import { listBox } from '@vaadin/list-box/theme/material/vaadin-list-box-styles.js';
|
|
10
|
-
import { inputFieldShared } from '@vaadin/vaadin-material-styles/mixins/input-field-shared.js';
|
|
11
|
-
import { menuOverlay } from '@vaadin/vaadin-material-styles/mixins/menu-overlay.js';
|
|
12
|
-
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
13
|
-
|
|
14
|
-
registerStyles('vaadin-select-item', item, { moduleId: 'material-select-item' });
|
|
15
|
-
|
|
16
|
-
registerStyles('vaadin-select-list-box', listBox, { moduleId: 'material-select-list-box' });
|
|
17
|
-
|
|
18
|
-
const select = css`
|
|
19
|
-
:host {
|
|
20
|
-
-webkit-tap-highlight-color: transparent;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* placeholder styles */
|
|
24
|
-
:host [part='input-field'] ::slotted([slot='value'][placeholder]) {
|
|
25
|
-
color: var(--material-disabled-text-color);
|
|
26
|
-
transition: opacity 0.175s 0.1s;
|
|
27
|
-
opacity: 1;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
:host([has-label]:not([focused]):not([invalid]):not([theme='always-float-label']))
|
|
31
|
-
::slotted([slot='value'][placeholder]) {
|
|
32
|
-
opacity: 0;
|
|
33
|
-
/* Avoid a flash of the placeholder text on init */
|
|
34
|
-
transition: none;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
:host [part='input-field'] ::slotted([slot='value']) {
|
|
38
|
-
color: var(--material-body-text-color);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
[part='toggle-button']::before {
|
|
42
|
-
content: var(--material-icons-dropdown);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
:host([opened]) [part='toggle-button'] {
|
|
46
|
-
transform: rotate(180deg);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
:host([disabled]) {
|
|
50
|
-
pointer-events: none;
|
|
51
|
-
}
|
|
52
|
-
`;
|
|
53
|
-
|
|
54
|
-
registerStyles('vaadin-select', [inputFieldShared, select], { moduleId: 'material-select' });
|
|
55
|
-
|
|
56
|
-
registerStyles(
|
|
57
|
-
'vaadin-select-value-button',
|
|
58
|
-
css`
|
|
59
|
-
:host {
|
|
60
|
-
font: inherit;
|
|
61
|
-
letter-spacing: normal;
|
|
62
|
-
text-transform: none;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
::slotted(*) {
|
|
66
|
-
font: inherit;
|
|
67
|
-
padding: 4px 0;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
::slotted(*:hover) {
|
|
71
|
-
background-color: transparent;
|
|
72
|
-
}
|
|
73
|
-
`,
|
|
74
|
-
{ moduleId: 'material-select-value-button' },
|
|
75
|
-
);
|
|
76
|
-
|
|
77
|
-
registerStyles('vaadin-select-overlay', [menuOverlay], { moduleId: 'material-select-overlay' });
|
package/vaadin-lit-select.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/vaadin-select.js';
|
package/vaadin-lit-select.js
DELETED
/package/src/{vaadin-select-value-button-styles.js → vaadin-select-value-button-core-styles.js}
RENAMED
|
File without changes
|