@vaadin/vaadin-material-styles 24.1.0-alpha1 → 24.1.0-alpha10
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/color-global.js +9 -0
- package/color.js +2 -3
- package/font-icons.js +28 -29
- package/global.js +5 -0
- package/package.json +3 -3
- package/shadow.js +2 -3
- package/typography-global.js +9 -0
- package/typography.js +2 -3
- package/user-colors.js +2 -3
- package/version.js +1 -1
package/color-global.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
import { colorLight } from './color.js';
|
|
7
|
+
import { addMaterialGlobalStyles } from './global.js';
|
|
8
|
+
|
|
9
|
+
addMaterialGlobalStyles('color', colorLight);
|
package/color.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import './version.js';
|
|
7
7
|
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
8
|
+
import { addMaterialGlobalStyles } from './global.js';
|
|
8
9
|
|
|
9
10
|
const colorLight = css`
|
|
10
11
|
:host {
|
|
@@ -179,8 +180,6 @@ const colorBase = css`
|
|
|
179
180
|
}
|
|
180
181
|
`;
|
|
181
182
|
|
|
182
|
-
|
|
183
|
-
$tpl.innerHTML = `<style>${colorBase.toString().replace(':host', 'html')}</style>`;
|
|
184
|
-
document.head.appendChild($tpl.content);
|
|
183
|
+
addMaterialGlobalStyles('color-base', colorBase);
|
|
185
184
|
|
|
186
185
|
export { colorBase, colorDark, colorLight };
|
package/font-icons.js
CHANGED
|
@@ -4,36 +4,35 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import './version.js';
|
|
7
|
+
import { css } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
8
|
+
import { addMaterialGlobalStyles } from './global.js';
|
|
7
9
|
|
|
8
|
-
const
|
|
10
|
+
const fontIcons = css`
|
|
11
|
+
@font-face {
|
|
12
|
+
font-family: 'material-icons';
|
|
13
|
+
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAjAAAsAAAAADaAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAARAAAAFZSk1xEY21hcAAAAYgAAACNAAACNOuCXH5nbHlmAAACGAAABDoAAAX4NWGBxmhlYWQAAAZUAAAAMAAAADZhSa2YaGhlYQAABoQAAAAeAAAAJBGxCLtobXR4AAAGpAAAABMAAABAjXoAAGxvY2EAAAa4AAAAIgAAACIKMAjcbWF4cAAABtwAAAAfAAAAIAEeAFRuYW1lAAAG/AAAATQAAAJe3l764XBvc3QAAAgwAAAAkAAAAMondETCeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYOS4wTiBgZWBga2WbQIDA2MAhGZpYChlymZgYGJgZWbACgLSXFMYHF4xvuJnv/CvgOEG+wXG6UBhRpAcAA0HDXt4nO2R2Q0DIQxEHwt7HzSSGlJQvlJkqqGJjYdJGbH0PPJgELKBEcjBIyiQ3iQUr3BT9zNb9wvP3lPkt3rfkZNy1KXnIXpLvDgxs7DGvZ2Dk4saxxP/OHr+/KqqCZo+08EgzUa7acVoym002lubDNLZIF0M0tUg3Yz22XaD9DD6XTsN0ssgrYb6BZEQJiUAAAB4nH1UXUgcVxS+Z2ZnZpeq7IT9CbTY2Z24o1m72+zPTB/UFSS2MWssTZRs6doqialmy27bPIghPzQttCxjfEhjfGhoUFLBQoVdKixSkofCEkurwQdBgw1NqeCWFrokVt3b3pnRqm3J/Nw598537v3Od869CBC5uFm2EZkRAgl4kQcO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17
|
+
}
|
|
9
18
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
--material-icons-clock: "\\ea08";
|
|
28
|
-
--material-icons-dropdown: "\\ea09";
|
|
29
|
-
--material-icons-error: "\\ea0a";
|
|
30
|
-
--material-icons-eye: "\\ea0b";
|
|
31
|
-
--material-icons-eye-disabled: "\\ea0c";
|
|
32
|
-
--material-icons-play: "\\ea0d";
|
|
33
|
-
--material-icons-reload: "\\ea0e";
|
|
34
|
-
--material-icons-upload: "\\ea0f";
|
|
35
|
-
}
|
|
36
|
-
</style>
|
|
19
|
+
html {
|
|
20
|
+
--material-icons-arrow-downward: '\\ea01';
|
|
21
|
+
--material-icons-arrow-upward: '\\ea02';
|
|
22
|
+
--material-icons-calendar: '\\ea03';
|
|
23
|
+
--material-icons-check: '\\ea04';
|
|
24
|
+
--material-icons-chevron-left: '\\ea05';
|
|
25
|
+
--material-icons-chevron-right: '\\ea06';
|
|
26
|
+
--material-icons-clear: '\\ea07';
|
|
27
|
+
--material-icons-clock: '\\ea08';
|
|
28
|
+
--material-icons-dropdown: '\\ea09';
|
|
29
|
+
--material-icons-error: '\\ea0a';
|
|
30
|
+
--material-icons-eye: '\\ea0b';
|
|
31
|
+
--material-icons-eye-disabled: '\\ea0c';
|
|
32
|
+
--material-icons-play: '\\ea0d';
|
|
33
|
+
--material-icons-reload: '\\ea0e';
|
|
34
|
+
--material-icons-upload: '\\ea0f';
|
|
35
|
+
}
|
|
37
36
|
`;
|
|
38
37
|
|
|
39
|
-
|
|
38
|
+
addMaterialGlobalStyles('font-icons', fontIcons);
|
package/global.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/vaadin-material-styles",
|
|
3
|
-
"version": "24.1.0-
|
|
3
|
+
"version": "24.1.0-alpha10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@polymer/polymer": "^3.0.0",
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "24.1.0-
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "24.1.0-alpha10"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"gulp": "^4.0.2",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"gulp-sort": "^2.0.0",
|
|
49
49
|
"gulp-svgmin": "^4.1.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "12e39be7eb3b49c68708e8ca3de2fb22e91051a1"
|
|
52
52
|
}
|
package/shadow.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import './version.js';
|
|
7
7
|
import { css } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
8
|
+
import { addMaterialGlobalStyles } from './global.js';
|
|
8
9
|
|
|
9
10
|
const shadow = css`
|
|
10
11
|
/* prettier-ignore */
|
|
@@ -21,8 +22,6 @@ const shadow = css`
|
|
|
21
22
|
}
|
|
22
23
|
`;
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
$tpl.innerHTML = `<style>${shadow.toString().replace(':host', 'html')}</style>`;
|
|
26
|
-
document.head.appendChild($tpl.content);
|
|
25
|
+
addMaterialGlobalStyles('shadow', shadow);
|
|
27
26
|
|
|
28
27
|
export { shadow };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
import { addMaterialGlobalStyles } from './global.js';
|
|
7
|
+
import { typography } from './typography.js';
|
|
8
|
+
|
|
9
|
+
addMaterialGlobalStyles('typography', typography);
|
package/typography.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import './version.js';
|
|
7
7
|
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
8
|
+
import { addMaterialGlobalStyles } from './global.js';
|
|
8
9
|
|
|
9
10
|
const font = css`
|
|
10
11
|
:host {
|
|
@@ -105,9 +106,7 @@ const typography = css`
|
|
|
105
106
|
|
|
106
107
|
registerStyles('', typography, { moduleId: 'material-typography' });
|
|
107
108
|
|
|
108
|
-
|
|
109
|
-
$tpl.innerHTML = `<style>${font.toString().replace(':host', 'html')}</style>`;
|
|
110
|
-
document.head.appendChild($tpl.content);
|
|
109
|
+
addMaterialGlobalStyles('font', font);
|
|
111
110
|
|
|
112
111
|
export { font, typography };
|
|
113
112
|
|
package/user-colors.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import './version.js';
|
|
7
7
|
import { css } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
8
|
+
import { addMaterialGlobalStyles } from './global.js';
|
|
8
9
|
|
|
9
10
|
const userColors = css`
|
|
10
11
|
:host {
|
|
@@ -28,8 +29,6 @@ const userColors = css`
|
|
|
28
29
|
}
|
|
29
30
|
`;
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
$tpl.innerHTML = `<style>${userColors.toString().replace(':host', 'html')}</style>`;
|
|
33
|
-
document.head.appendChild($tpl.content);
|
|
32
|
+
addMaterialGlobalStyles('user-colors', userColors);
|
|
34
33
|
|
|
35
34
|
export { userColors };
|