@vaadin/vaadin-lumo-styles 24.0.0-alpha9 → 24.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/auto-complete.css CHANGED
@@ -95,6 +95,9 @@
95
95
  --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
96
96
  --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
97
97
  --lumo-clickable-cursor: default;
98
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
99
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
100
+ --vaadin-input-container-border-radius: var(--lumo-border-radius-m);
98
101
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
99
102
  --lumo-font-size-xxs: 0.75rem;
100
103
  --lumo-font-size-xs: 0.8125rem;
package/badge.js CHANGED
@@ -25,6 +25,7 @@ const badge = css`
25
25
  text-transform: initial;
26
26
  letter-spacing: initial;
27
27
  min-width: calc(var(--lumo-line-height-xs) * 1em + 0.45em);
28
+ flex-shrink: 0;
28
29
  }
29
30
 
30
31
  /* Ensure proper vertical alignment */
@@ -45,7 +45,7 @@ const requiredField = css`
45
45
  }
46
46
 
47
47
  :host([required]) [part='required-indicator']::after {
48
- content: var(--lumo-required-field-indicator, '');
48
+ content: var(--lumo-required-field-indicator, '\\2022');
49
49
  transition: opacity 0.2s;
50
50
  color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
51
51
  position: absolute;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/vaadin-lumo-styles",
3
- "version": "24.0.0-alpha9",
3
+ "version": "24.0.0-beta2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -41,8 +41,8 @@
41
41
  ],
42
42
  "dependencies": {
43
43
  "@polymer/polymer": "^3.0.0",
44
- "@vaadin/icon": "24.0.0-alpha9",
45
- "@vaadin/vaadin-themable-mixin": "24.0.0-alpha9"
44
+ "@vaadin/icon": "24.0.0-beta2",
45
+ "@vaadin/vaadin-themable-mixin": "24.0.0-beta2"
46
46
  },
47
47
  "devDependencies": {
48
48
  "gulp": "^4.0.2",
@@ -51,5 +51,5 @@
51
51
  "gulp-sort": "^2.0.0",
52
52
  "gulp-svgmin": "^4.1.0"
53
53
  },
54
- "gitHead": "cc3f747164041566b300bde4b105d2475649e93f"
54
+ "gitHead": "00086f1f6d487f042f189c9b9ecd7ba736960888"
55
55
  }
package/style.d.ts CHANGED
@@ -1,3 +1,5 @@
1
1
  import type { CSSResult } from 'lit';
2
2
 
3
+ export const globals: CSSResult;
4
+
3
5
  export const style: CSSResult;
package/style.js CHANGED
@@ -25,8 +25,19 @@ const style = css`
25
25
  }
26
26
  `;
27
27
 
28
+ /**
29
+ * Default values for component-specific custom properties.
30
+ */
31
+ const globals = css`
32
+ html {
33
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
34
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
35
+ --vaadin-input-container-border-radius: var(--lumo-border-radius-m);
36
+ }
37
+ `;
38
+
28
39
  const $tpl = document.createElement('template');
29
- $tpl.innerHTML = `<style>${style.toString().replace(':host', 'html')}</style>`;
40
+ $tpl.innerHTML = `<style>${style.toString().replace(':host', 'html')}$</style>`;
30
41
  document.head.appendChild($tpl.content);
31
42
 
32
- export { style };
43
+ export { globals, style };
package/typography.js CHANGED
@@ -50,45 +50,34 @@ const typography = css`
50
50
  line-height: var(--lumo-line-height-xs);
51
51
  }
52
52
 
53
- h1,
54
- h2,
55
- h3,
56
- h4,
57
- h5,
58
- h6 {
53
+ :where(h1, h2, h3, h4, h5, h6) {
59
54
  font-weight: 600;
60
55
  line-height: var(--lumo-line-height-xs);
61
- margin-top: 1.25em;
56
+ margin: 0;
62
57
  }
63
58
 
64
- h1 {
59
+ :where(h1) {
65
60
  font-size: var(--lumo-font-size-xxxl);
66
- margin-bottom: 0.75em;
67
61
  }
68
62
 
69
- h2 {
63
+ :where(h2) {
70
64
  font-size: var(--lumo-font-size-xxl);
71
- margin-bottom: 0.5em;
72
65
  }
73
66
 
74
- h3 {
67
+ :where(h3) {
75
68
  font-size: var(--lumo-font-size-xl);
76
- margin-bottom: 0.5em;
77
69
  }
78
70
 
79
- h4 {
71
+ :where(h4) {
80
72
  font-size: var(--lumo-font-size-l);
81
- margin-bottom: 0.5em;
82
73
  }
83
74
 
84
- h5 {
75
+ :where(h5) {
85
76
  font-size: var(--lumo-font-size-m);
86
- margin-bottom: 0.25em;
87
77
  }
88
78
 
89
- h6 {
79
+ :where(h6) {
90
80
  font-size: var(--lumo-font-size-xs);
91
- margin-bottom: 0;
92
81
  text-transform: uppercase;
93
82
  letter-spacing: 0.03em;
94
83
  }
package/vaadin-iconset.js CHANGED
@@ -3,14 +3,12 @@
3
3
  * Copyright (c) 2017 - 2023 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/icon/vaadin-iconset.js';
7
6
  import './version.js';
7
+ import { Iconset } from '@vaadin/icon/vaadin-iconset.js';
8
8
 
9
9
  const template = document.createElement('template');
10
10
 
11
- template.innerHTML = `<vaadin-iconset name="lumo" size="1000">
12
- <svg xmlns="http://www.w3.org/2000/svg">
13
- <defs>
11
+ template.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg"><defs>
14
12
  <g id="lumo:align-center"><path d="M167 217c0-18 17-33 38-34H795c21 0 38 15 38 34 0 18-17 33-38 33H205C184 250 167 235 167 217z m83 191c0-18 13-33 29-33H721c16 0 29 15 29 33 0 18-13 33-29 34H279C263 442 250 427 250 408zM250 792c0-18 13-33 29-34H721c16 0 29 15 29 34s-13 33-29 33H279C263 825 250 810 250 792z m-83-192c0-18 17-33 38-33H795c21 0 38 15 38 33s-17 33-38 33H205C184 633 167 618 167 600z" fill-rule="evenodd" clip-rule="evenodd"></path></g>
15
13
  <g id="lumo:align-left"><path d="M167 217c0-18 17-33 38-34H795c21 0 38 15 38 34 0 18-17 33-38 33H205C184 250 167 235 167 217z m0 191c0-18 13-33 28-33H638c16 0 29 15 29 33 0 18-13 33-29 34H195C179 442 167 427 167 408zM167 792c0-18 13-33 28-34H638c16 0 29 15 29 34s-13 33-29 33H195C179 825 167 810 167 792z m0-192c0-18 17-33 38-33H795c21 0 38 15 38 33s-17 33-38 33H205C184 633 167 618 167 600z" fill-rule="evenodd" clip-rule="evenodd"></path></g>
16
14
  <g id="lumo:align-right"><path d="M167 217c0-18 17-33 38-34H795c21 0 38 15 38 34 0 18-17 33-38 33H205C184 250 167 235 167 217z m166 191c0-18 13-33 29-33H805c16 0 29 15 28 33 0 18-13 33-28 34H362C346 442 333 427 333 408zM333 792c0-18 13-33 29-34H805c16 0 29 15 28 34s-13 33-28 33H362C346 825 333 810 333 792z m-166-192c0-18 17-33 38-33H795c21 0 38 15 38 33s-17 33-38 33H205C184 633 167 618 167 600z" fill-rule="evenodd" clip-rule="evenodd"></path></g>
@@ -53,8 +51,6 @@ template.innerHTML = `<vaadin-iconset name="lumo" size="1000">
53
51
  <g id="lumo:unordered-list"><path d="M146 325c-42 0-67-26-67-63 0-37 25-63 67-63 42 0 67 26 67 63 0 37-25 63-67 63z m0 250c-42 0-67-26-67-63 0-37 25-63 67-63 42 0 67 26 67 63 0 37-25 63-67 63z m0 250c-42 0-67-26-67-63 0-37 25-63 67-63 42 0 67 26 67 63 0 37-25 63-67 63zM333 258c0-18 15-33 34-33h516c18 0 33 15 34 33 0 18-15 33-34 34H367c-18 0-33-15-34-34z m0 250c0-18 15-33 34-33h516c18 0 33 15 34 33s-15 33-34 34H367c-18 0-33-15-34-34z m0 250c0-18 15-33 34-33h516c18 0 33 15 34 33s-15 33-34 34H367c-18 0-33-15-34-34z"></path></g>
54
52
  <g id="lumo:upload"><path d="M454 271V604c0 21-17 38-37 38s-38-17-38-38V271L254 382c-15 14-39 12-53-3-14-15-12-39 3-53L391 160c14-13 36-13 51-1 0 0 0 0 0 1l187 166c15 14 17 37 3 53-14 15-37 17-53 3L454 271zM675 704c0-21 17-38 37-37 21 0 38 17 38 37v92c0 21-17 38-38 37H121c-21 0-38-17-38-37v-92c0-21 17-38 38-37s38 17 37 37v54h517v-54z"></path></g>
55
53
  <g id="lumo:user"><path d="M500 500c-69 0-125-56-125-125s56-125 125-125 125 56 125 125-56 125-125 125z m-292 292c0-115 131-208 292-209s292 93 292 209H208z"></path></g>
56
- </defs>
57
- </svg>
58
- </vaadin-iconset>`;
54
+ </defs></svg>`;
59
55
 
60
- document.head.appendChild(template.content);
56
+ Iconset.register('lumo', 1000, template);
package/version.js CHANGED
@@ -12,7 +12,7 @@
12
12
  */
13
13
  class Lumo extends HTMLElement {
14
14
  static get version() {
15
- return '24.0.0-alpha9';
15
+ return '24.0.0-beta2';
16
16
  }
17
17
  }
18
18