@vandeurenglenn/lite-elements 0.3.50 → 0.3.52

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.
Files changed (82) hide show
  1. package/exports/banner.js +36 -36
  2. package/exports/bundle/button.js +6 -1
  3. package/exports/bundle/dialog.js +10 -8
  4. package/exports/bundle/index.html +590 -590
  5. package/exports/bundle/themes/default/colors.module.css +180 -180
  6. package/exports/bundle/themes/default/missing/motion.css +3 -3
  7. package/exports/bundle/themes/default/missing/shape.css +12 -12
  8. package/exports/bundle/themes/default/missing/theme.dark.css +4 -4
  9. package/exports/bundle/themes/default/missing/theme.light.css +4 -4
  10. package/exports/bundle/themes/default/missing/tokens.css +8 -8
  11. package/exports/bundle/themes/default/theme.css +10 -10
  12. package/exports/bundle/themes/default/theme.dark.css +33 -33
  13. package/exports/bundle/themes/default/theme.light.css +33 -33
  14. package/exports/bundle/themes/default/tokens.css +256 -256
  15. package/exports/bundle/themes/default/typography.module.css +150 -150
  16. package/exports/bundle/upload-image.js +49 -45
  17. package/exports/button.js +148 -143
  18. package/exports/card.js +139 -139
  19. package/exports/code.js +34 -34
  20. package/exports/demo-icons.js +15 -15
  21. package/exports/demo-shell.js +539 -539
  22. package/exports/demo.js +456 -456
  23. package/exports/dialog.js +150 -148
  24. package/exports/divider.js +21 -21
  25. package/exports/drawer-button.js +13 -13
  26. package/exports/drawer-item.js +38 -38
  27. package/exports/drawer-layout.js +95 -95
  28. package/exports/drawer.js +7 -7
  29. package/exports/dropdown-menu.js +58 -58
  30. package/exports/dropdown.js +25 -25
  31. package/exports/elevation.js +50 -50
  32. package/exports/fab.js +145 -145
  33. package/exports/icon-button.js +12 -12
  34. package/exports/icon-set.js +4 -4
  35. package/exports/icon.js +15 -15
  36. package/exports/input.js +5 -5
  37. package/exports/list-item.js +42 -42
  38. package/exports/menu.js +12 -12
  39. package/exports/minute-field.js +4 -4
  40. package/exports/mixins/scroll-mixin.d.ts +1 -1
  41. package/exports/notification.js +34 -34
  42. package/exports/notifications.js +65 -65
  43. package/exports/pages.js +42 -42
  44. package/exports/pane.js +18 -18
  45. package/exports/rail.js +57 -57
  46. package/exports/root.js +7 -7
  47. package/exports/section/section.d.ts +1 -1
  48. package/exports/section.js +10 -10
  49. package/exports/section2.js +24 -24
  50. package/exports/selector.js +30 -30
  51. package/exports/summary-mirror.js +19 -19
  52. package/exports/summary.js +24 -24
  53. package/exports/supporting-pane.js +46 -46
  54. package/exports/tab.js +21 -21
  55. package/exports/tabs.js +50 -50
  56. package/exports/text-field.js +9 -9
  57. package/exports/theme.js +8 -8
  58. package/exports/themes/default/colors.module.css +180 -180
  59. package/exports/themes/default/missing/motion.css +3 -3
  60. package/exports/themes/default/missing/shape.css +12 -12
  61. package/exports/themes/default/missing/theme.dark.css +4 -4
  62. package/exports/themes/default/missing/theme.light.css +4 -4
  63. package/exports/themes/default/missing/tokens.css +8 -8
  64. package/exports/themes/default/theme.css +10 -10
  65. package/exports/themes/default/theme.dark.css +33 -33
  66. package/exports/themes/default/theme.light.css +33 -33
  67. package/exports/themes/default/tokens.css +256 -256
  68. package/exports/themes/default/typography.module.css +150 -150
  69. package/exports/time-picker.js +20 -20
  70. package/exports/toggle-button.js +3 -3
  71. package/exports/toggle.js +4 -4
  72. package/exports/top-app-bar.js +20 -20
  73. package/exports/typography.js +155 -155
  74. package/exports/upload-file.js +8 -8
  75. package/exports/upload-image.js +200 -200
  76. package/package.json +20 -28
  77. package/exports/bundle/simple-hash-router.js +0 -1
  78. package/exports/bundle/types2.js +0 -1
  79. package/exports/router/simple-hash-router.d.ts +0 -34
  80. package/exports/router/types.d.ts +0 -45
  81. package/exports/simple-hash-router.js +0 -111
  82. package/exports/types2.js +0 -1
package/exports/dialog.js CHANGED
@@ -94,161 +94,163 @@ let CustomDialog = (() => {
94
94
  this.open = false;
95
95
  }
96
96
  static styles = [
97
- css `
98
- :host {
99
- position: absolute;
100
- inset: 0;
101
- display: flex;
102
- flex-direction: column;
103
- align-items: center;
104
- justify-content: center;
105
- pointer-events: none;
106
- }
107
-
108
- .header {
109
- height: 56px;
110
- box-sizing: border-box;
111
- }
112
-
113
- .scrim,
114
- .dialog {
115
- transition: var(--md-sys-motion-easing-emphasized-accelerate) 200ms opacity,
116
- var(--md-sys-motion-easing-emphasized-accelerate) 200ms transform;
117
- }
118
-
119
- .scrim {
120
- position: absolute;
121
- inset: 0;
122
- background-color: var(--md-sys-color-scrim);
123
- opacity: 0;
124
- pointer-events: none;
125
- }
126
-
127
- dialog {
128
- pointer-events: none;
129
- border: none;
130
- min-width: var(--custom-dialog-min-width, 280px);
131
- max-width: var(--custom-dialog-max-width, 560px);
132
- width: fit-content;
133
- border-radius: var(--md-sys-shape-corner-extra-large);
134
- background-color: var(--md-sys-color-surface-container-high);
135
- color: var(--md-sys-color-on-surface);
136
- padding: 24px;
137
- box-sizing: border-box;
138
- position: relative;
139
- opacity: 0;
140
- transform: scaleY(0.1);
141
- }
142
-
143
- .body {
144
- overflow-y: auto;
145
- }
146
-
147
- :host([has-actions]) .body {
148
- padding-top: 16px;
149
- padding-bottom: 24px;
150
- }
151
-
152
- :host([has-header][has-hero]) .header {
153
- padding-top: 16px;
154
- }
155
-
156
- slot[name='title']::slotted(*) {
157
- font-family: var(--md-sys-typescale-title-large-font-family-name);
158
- font-style: var(--md-sys-typescale-title-large-font-family-style);
159
- font-weight: var(--md-sys-typescale-title-large-font-weight);
160
- font-size: var(--md-sys-typescale-title-large-font-size);
161
- letter-spacing: var(--md-sys-typescale-title-large-tracking);
162
- line-height: var(--md-sys-typescale-title-large-height);
163
- text-transform: var(--md-sys-typescale-title-large-text-transform);
164
- text-decoration: var(--md-sys-typescale-title-large-text-decoration);
165
- }
166
-
167
- :host([has-hero]) slot[name='title']::slotted(*) {
168
- padding-top: 16px;
169
- position: absolute;
170
- left: 50%;
171
- transform: translateX(-50%);
172
- }
173
-
174
- :host([fullscreen]) slot[name='title']::slotted(*) {
175
- padding-left: 16px;
176
- }
177
-
178
- :host(:not([fullscreen])) dialog {
179
- align-items: center;
180
- justify-content: center;
181
- }
182
-
183
- slot[name='supporting-text']::slotted(*) {
184
- color: var(--md-sys-color-on-surface-variant);
185
- padding-bottom: 16px;
186
- }
187
-
188
- slot[name='actions']::slotted(*) {
189
- align-items: center;
190
- justify-content: end;
191
- }
192
-
193
- :host([open]) dialog,
194
- :host([open]) .scrim {
195
- pointer-events: auto;
196
- opacity: 1;
197
- transform: scaleY(1);
198
- transition: var(--md-sys-motion-easing-emphasized-decelerate) 500ms opacity,
199
- var(--md-sys-motion-easing-emphasized-decelerate) 500ms transform;
200
- }
201
-
202
- :host([open]) .scrim {
203
- opacity: 0.44;
204
- }
205
-
206
- :host([fullscreen]) slot[name='actions']::slotted(*) {
207
- --custom-icon-size: 12px;
208
- --custom-button-color: var(--md-sys-color-primary);
209
- }
210
-
211
- slot[name='actions'] {
212
- align-items: flex-end;
213
- }
97
+ css `
98
+ :host {
99
+ position: absolute;
100
+ inset: 0;
101
+ display: flex;
102
+ flex-direction: column;
103
+ align-items: center;
104
+ justify-content: center;
105
+ pointer-events: none;
106
+ }
107
+
108
+ .header {
109
+ height: 56px;
110
+ box-sizing: border-box;
111
+ }
112
+
113
+ .scrim,
114
+ .dialog {
115
+ transition: var(--md-sys-motion-easing-emphasized-accelerate) 200ms opacity,
116
+ var(--md-sys-motion-easing-emphasized-accelerate) 200ms transform;
117
+ }
118
+
119
+ .scrim {
120
+ position: absolute;
121
+ inset: 0;
122
+ background-color: var(--md-sys-color-scrim);
123
+ opacity: 0;
124
+ pointer-events: none;
125
+ }
126
+
127
+ dialog {
128
+ pointer-events: none;
129
+ border: none;
130
+ min-width: var(--custom-dialog-min-width, 280px);
131
+ max-width: var(--custom-dialog-max-width, 560px);
132
+ width: fit-content;
133
+ border-radius: var(--md-sys-shape-corner-extra-large);
134
+ background-color: var(--md-sys-color-surface-container-high);
135
+ color: var(--md-sys-color-on-surface);
136
+ padding: 24px;
137
+ box-sizing: border-box;
138
+ position: relative;
139
+ opacity: 0;
140
+ transform: scaleY(0.1);
141
+ }
142
+
143
+ .body {
144
+ margin-top: 16px;
145
+ margin-bottom: 24px;
146
+ overflow-y: auto;
147
+ }
148
+
149
+ :host([has-actions]) .body {
150
+ margin-top: 16px;
151
+ margin-bottom: 24px;
152
+ }
153
+
154
+ :host([has-header][has-hero]) .header {
155
+ padding-top: 16px;
156
+ }
157
+
158
+ slot[name='title']::slotted(*) {
159
+ font-family: var(--md-sys-typescale-title-large-font-family-name);
160
+ font-style: var(--md-sys-typescale-title-large-font-family-style);
161
+ font-weight: var(--md-sys-typescale-title-large-font-weight);
162
+ font-size: var(--md-sys-typescale-title-large-font-size);
163
+ letter-spacing: var(--md-sys-typescale-title-large-tracking);
164
+ line-height: var(--md-sys-typescale-title-large-height);
165
+ text-transform: var(--md-sys-typescale-title-large-text-transform);
166
+ text-decoration: var(--md-sys-typescale-title-large-text-decoration);
167
+ }
168
+
169
+ :host([has-hero]) slot[name='title']::slotted(*) {
170
+ padding-top: 16px;
171
+ position: absolute;
172
+ left: 50%;
173
+ transform: translateX(-50%);
174
+ }
175
+
176
+ :host([fullscreen]) slot[name='title']::slotted(*) {
177
+ padding-left: 16px;
178
+ }
179
+
180
+ :host(:not([fullscreen])) dialog {
181
+ align-items: center;
182
+ justify-content: center;
183
+ }
184
+
185
+ slot[name='supporting-text']::slotted(*) {
186
+ color: var(--md-sys-color-on-surface-variant);
187
+ padding-bottom: 16px;
188
+ }
189
+
190
+ slot[name='actions']::slotted(*) {
191
+ align-items: center;
192
+ justify-content: end;
193
+ }
194
+
195
+ :host([open]) dialog,
196
+ :host([open]) .scrim {
197
+ pointer-events: auto;
198
+ opacity: 1;
199
+ transform: scaleY(1);
200
+ transition: var(--md-sys-motion-easing-emphasized-decelerate) 500ms opacity,
201
+ var(--md-sys-motion-easing-emphasized-decelerate) 500ms transform;
202
+ }
203
+
204
+ :host([open]) .scrim {
205
+ opacity: 0.44;
206
+ }
207
+
208
+ :host([fullscreen]) slot[name='actions']::slotted(*) {
209
+ --custom-icon-size: 12px;
210
+ --custom-button-color: var(--md-sys-color-primary);
211
+ }
212
+
213
+ slot[name='actions'] {
214
+ align-items: flex-end;
215
+ }
214
216
  `
215
217
  ];
216
218
  render() {
217
- return html `
218
- <span class="scrim" @click=${this._close}></span>
219
- <dialog ?open=${this.open}>
220
- <custom-elevation level=${this.fullscreen ? 0 : 3}></custom-elevation>
221
- <slot name="hero-icon"></slot>
222
- <slot name="supporting-text"></slot>
223
- <slot name="header">
224
- <flex-row class="header" center>
225
- <flex-row center style="width: 100%">
226
- <slot name="header-start">
219
+ return html `
220
+ <span class="scrim" @click=${this._close}></span>
221
+ <dialog ?open=${this.open}>
222
+ <custom-elevation level=${this.fullscreen ? 0 : 3}></custom-elevation>
223
+ <slot name="hero-icon"></slot>
224
+ <slot name="supporting-text"></slot>
225
+ <slot name="header">
226
+ <flex-row class="header" center>
227
+ <flex-row center style="width: 100%">
228
+ <slot name="header-start">
227
229
  ${this.fullscreen
228
- ? html `<custom-button @click=${this._close}
229
- ><custom-icon slot="icon">close</custom-icon></custom-button
230
+ ? html `<custom-button @click=${this._close}
231
+ ><custom-icon slot="icon">close</custom-icon></custom-button
230
232
  >`
231
- : ''}
232
- </slot>
233
- <slot name="title"></slot>
234
- <flex-it></flex-it>
235
- <slot name="header-end">
236
- ${this.fullscreen ? html `<slot name="actions"></slot>` : ''}
233
+ : ''}
234
+ </slot>
235
+ <slot name="title"></slot>
236
+ <flex-it></flex-it>
237
+ <slot name="header-end">
238
+ ${this.fullscreen ? html `<slot name="actions"></slot>` : ''}
237
239
  ${this.fullscreen
238
240
  ? ''
239
- : html `<custom-button @click=${this._close}
240
- ><custom-icon slot="icon">close</custom-icon></custom-button
241
- >`}
242
- </slot>
243
- </flex-row>
244
- </flex-row>
245
- </slot>
246
- <flex-column class="body">
247
- <slot></slot>
248
- </flex-column>
249
-
250
- ${this.fullscreen ? '' : html `<slot name="actions"></slot>`}
251
- </dialog>
241
+ : html `<custom-button @click=${this._close}
242
+ ><custom-icon slot="icon">close</custom-icon></custom-button
243
+ >`}
244
+ </slot>
245
+ </flex-row>
246
+ </flex-row>
247
+ </slot>
248
+ <flex-column class="body">
249
+ <slot></slot>
250
+ </flex-column>
251
+
252
+ ${this.fullscreen ? '' : html `<slot name="actions"></slot>`}
253
+ </dialog>
252
254
  `;
253
255
  }
254
256
  static {
@@ -22,27 +22,27 @@ let CustomDivider = (() => {
22
22
  middleInset: { type: Boolean, reflect: true, attribute: 'middle-inset' }
23
23
  };
24
24
  render() {
25
- return html `
26
- <style>
27
- :host {
28
- display: block;
29
- box-sizing: border-box;
30
- min-height: 1px;
31
- margin: 8px 0 16px 0;
32
- width: 100%;
33
- background: var(--md-sys-color-outline);
34
- }
35
-
36
- :host([inset]) {
37
- margin-left: 16px;
38
- margin-right: 0;
39
- }
40
-
41
- :host([middle-inset]) {
42
- margin-left: 16px;
43
- margin-right: 16px;
44
- }
45
- </style>
25
+ return html `
26
+ <style>
27
+ :host {
28
+ display: block;
29
+ box-sizing: border-box;
30
+ min-height: 1px;
31
+ margin: 8px 0 16px 0;
32
+ width: 100%;
33
+ background: var(--md-sys-color-outline);
34
+ }
35
+
36
+ :host([inset]) {
37
+ margin-left: 16px;
38
+ margin-right: 0;
39
+ }
40
+
41
+ :host([middle-inset]) {
42
+ margin-left: 16px;
43
+ margin-right: 16px;
44
+ }
45
+ </style>
46
46
  `;
47
47
  }
48
48
  static {
@@ -48,19 +48,19 @@ let CustomDrawerButton = (() => {
48
48
  document.dispatchEvent(new CustomEvent('custom-pane-open', { detail: this.id }));
49
49
  }
50
50
  static styles = [
51
- css `
52
- :host {
53
- display: block;
54
- opacity: 1;
55
- pointer-events: auto;
56
- will-change: width, opacity;
57
- }
58
-
59
- :host([drawer-open]) {
60
- opacity: 0;
61
- pointer-events: none;
62
- width: 0;
63
- }
51
+ css `
52
+ :host {
53
+ display: block;
54
+ opacity: 1;
55
+ pointer-events: auto;
56
+ will-change: width, opacity;
57
+ }
58
+
59
+ :host([drawer-open]) {
60
+ opacity: 0;
61
+ pointer-events: none;
62
+ width: 0;
63
+ }
64
64
  `
65
65
  ];
66
66
  render() {
@@ -16,47 +16,47 @@ let CustomDrawerItem = (() => {
16
16
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
17
17
  }
18
18
  static styles = [
19
- css `
20
- :host {
21
- display: flex;
22
- padding-left: 16px;
23
- padding-right: 24px;
24
- height: 100%;
25
- min-height: 54px;
26
- max-height: 54px;
27
- width: 100%;
28
- box-sizing: border-box;
29
- border-radius: var(--md-sys-shape-corner-extra-large);
30
- align-items: center;
31
- pointer-events: auto;
32
- cursor: pointer;
33
- }
34
-
35
- slot {
36
- pointer-events: none;
37
- }
38
-
39
- slot[name='icon']::slotted(*) {
40
- margin-right: 12px;
41
- height: 24px;
42
- width: 24px;
43
- }
44
-
45
- slot[name='end']::slotted(*) {
46
- margin-left: 12px;
47
- box-sizing: border-box;
48
- }
49
-
50
- :host([non-interactive]) {
51
- pointer-events: none;
52
- }
19
+ css `
20
+ :host {
21
+ display: flex;
22
+ padding-left: 16px;
23
+ padding-right: 24px;
24
+ height: 100%;
25
+ min-height: 54px;
26
+ max-height: 54px;
27
+ width: 100%;
28
+ box-sizing: border-box;
29
+ border-radius: var(--md-sys-shape-corner-extra-large);
30
+ align-items: center;
31
+ pointer-events: auto;
32
+ cursor: pointer;
33
+ }
34
+
35
+ slot {
36
+ pointer-events: none;
37
+ }
38
+
39
+ slot[name='icon']::slotted(*) {
40
+ margin-right: 12px;
41
+ height: 24px;
42
+ width: 24px;
43
+ }
44
+
45
+ slot[name='end']::slotted(*) {
46
+ margin-left: 12px;
47
+ box-sizing: border-box;
48
+ }
49
+
50
+ :host([non-interactive]) {
51
+ pointer-events: none;
52
+ }
53
53
  `
54
54
  ];
55
55
  render() {
56
- return html `
57
- <slot name="icon"></slot>
58
- <slot></slot>
59
- <slot name="end"></slot>
56
+ return html `
57
+ <slot name="icon"></slot>
58
+ <slot></slot>
59
+ <slot name="end"></slot>
60
60
  `;
61
61
  }
62
62
  static {