@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.
- package/exports/banner.js +36 -36
- package/exports/bundle/button.js +6 -1
- package/exports/bundle/dialog.js +10 -8
- package/exports/bundle/index.html +590 -590
- package/exports/bundle/themes/default/colors.module.css +180 -180
- package/exports/bundle/themes/default/missing/motion.css +3 -3
- package/exports/bundle/themes/default/missing/shape.css +12 -12
- package/exports/bundle/themes/default/missing/theme.dark.css +4 -4
- package/exports/bundle/themes/default/missing/theme.light.css +4 -4
- package/exports/bundle/themes/default/missing/tokens.css +8 -8
- package/exports/bundle/themes/default/theme.css +10 -10
- package/exports/bundle/themes/default/theme.dark.css +33 -33
- package/exports/bundle/themes/default/theme.light.css +33 -33
- package/exports/bundle/themes/default/tokens.css +256 -256
- package/exports/bundle/themes/default/typography.module.css +150 -150
- package/exports/bundle/upload-image.js +49 -45
- package/exports/button.js +148 -143
- package/exports/card.js +139 -139
- package/exports/code.js +34 -34
- package/exports/demo-icons.js +15 -15
- package/exports/demo-shell.js +539 -539
- package/exports/demo.js +456 -456
- package/exports/dialog.js +150 -148
- package/exports/divider.js +21 -21
- package/exports/drawer-button.js +13 -13
- package/exports/drawer-item.js +38 -38
- package/exports/drawer-layout.js +95 -95
- package/exports/drawer.js +7 -7
- package/exports/dropdown-menu.js +58 -58
- package/exports/dropdown.js +25 -25
- package/exports/elevation.js +50 -50
- package/exports/fab.js +145 -145
- package/exports/icon-button.js +12 -12
- package/exports/icon-set.js +4 -4
- package/exports/icon.js +15 -15
- package/exports/input.js +5 -5
- package/exports/list-item.js +42 -42
- package/exports/menu.js +12 -12
- package/exports/minute-field.js +4 -4
- package/exports/mixins/scroll-mixin.d.ts +1 -1
- package/exports/notification.js +34 -34
- package/exports/notifications.js +65 -65
- package/exports/pages.js +42 -42
- package/exports/pane.js +18 -18
- package/exports/rail.js +57 -57
- package/exports/root.js +7 -7
- package/exports/section/section.d.ts +1 -1
- package/exports/section.js +10 -10
- package/exports/section2.js +24 -24
- package/exports/selector.js +30 -30
- package/exports/summary-mirror.js +19 -19
- package/exports/summary.js +24 -24
- package/exports/supporting-pane.js +46 -46
- package/exports/tab.js +21 -21
- package/exports/tabs.js +50 -50
- package/exports/text-field.js +9 -9
- package/exports/theme.js +8 -8
- package/exports/themes/default/colors.module.css +180 -180
- package/exports/themes/default/missing/motion.css +3 -3
- package/exports/themes/default/missing/shape.css +12 -12
- package/exports/themes/default/missing/theme.dark.css +4 -4
- package/exports/themes/default/missing/theme.light.css +4 -4
- package/exports/themes/default/missing/tokens.css +8 -8
- package/exports/themes/default/theme.css +10 -10
- package/exports/themes/default/theme.dark.css +33 -33
- package/exports/themes/default/theme.light.css +33 -33
- package/exports/themes/default/tokens.css +256 -256
- package/exports/themes/default/typography.module.css +150 -150
- package/exports/time-picker.js +20 -20
- package/exports/toggle-button.js +3 -3
- package/exports/toggle.js +4 -4
- package/exports/top-app-bar.js +20 -20
- package/exports/typography.js +155 -155
- package/exports/upload-file.js +8 -8
- package/exports/upload-image.js +200 -200
- package/package.json +20 -28
- package/exports/bundle/simple-hash-router.js +0 -1
- package/exports/bundle/types2.js +0 -1
- package/exports/router/simple-hash-router.d.ts +0 -34
- package/exports/router/types.d.ts +0 -45
- package/exports/simple-hash-router.js +0 -111
- package/exports/types2.js +0 -1
package/exports/summary.js
CHANGED
|
@@ -16,33 +16,33 @@ let CustomSummary = (() => {
|
|
|
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
|
-
flex-direction: column;
|
|
23
|
-
height: 100%;
|
|
24
|
-
min-height: 400px;
|
|
25
|
-
max-width: 1200px;
|
|
26
|
-
}
|
|
27
|
-
::slotted([slot='left']) {
|
|
28
|
-
padding-bottom: 24px;
|
|
29
|
-
}
|
|
30
|
-
@media (min-width: 1200px) {
|
|
31
|
-
:host {
|
|
32
|
-
flex-direction: row;
|
|
33
|
-
width: 80%;
|
|
34
|
-
}
|
|
35
|
-
::slotted([slot='left']) {
|
|
36
|
-
padding-right: 24px;
|
|
37
|
-
padding-bottom: 0;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
19
|
+
css `
|
|
20
|
+
:host {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
height: 100%;
|
|
24
|
+
min-height: 400px;
|
|
25
|
+
max-width: 1200px;
|
|
26
|
+
}
|
|
27
|
+
::slotted([slot='left']) {
|
|
28
|
+
padding-bottom: 24px;
|
|
29
|
+
}
|
|
30
|
+
@media (min-width: 1200px) {
|
|
31
|
+
:host {
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
width: 80%;
|
|
34
|
+
}
|
|
35
|
+
::slotted([slot='left']) {
|
|
36
|
+
padding-right: 24px;
|
|
37
|
+
padding-bottom: 0;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
40
|
`
|
|
41
41
|
];
|
|
42
42
|
render() {
|
|
43
|
-
return html `
|
|
44
|
-
<slot name="left"></slot>
|
|
45
|
-
<slot name="right"></slot>
|
|
43
|
+
return html `
|
|
44
|
+
<slot name="left"></slot>
|
|
45
|
+
<slot name="right"></slot>
|
|
46
46
|
`;
|
|
47
47
|
}
|
|
48
48
|
static {
|
|
@@ -76,52 +76,52 @@ let CustomSupportingPane = (() => {
|
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
render() {
|
|
79
|
-
return html `<style>
|
|
80
|
-
:host {
|
|
81
|
-
display: flex;
|
|
82
|
-
flex-direction: column;
|
|
83
|
-
height: 100%;
|
|
84
|
-
background: var(--md-sys-color-surface);
|
|
85
|
-
color: var(--md-sys-color-on-surface);
|
|
86
|
-
width: 100%;
|
|
87
|
-
position: relative;
|
|
88
|
-
--supporting-pane-width: 360px;
|
|
89
|
-
}
|
|
90
|
-
.support {
|
|
91
|
-
position: absolute;
|
|
92
|
-
right: 0;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
:host([left]) {
|
|
96
|
-
left: 0;
|
|
97
|
-
right: none;
|
|
98
|
-
}
|
|
99
|
-
:host([variant='expanded']) .support {
|
|
100
|
-
--custom-pane-width: var(--supporting-pane-width);
|
|
101
|
-
}
|
|
102
|
-
:host([variant='expanded']) {
|
|
103
|
-
flex-direction: row;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
:host([variant='compact']) .support {
|
|
107
|
-
position: absolute;
|
|
108
|
-
flex-direction: row;
|
|
109
|
-
}
|
|
110
|
-
main {
|
|
111
|
-
width: 100%;
|
|
112
|
-
}
|
|
113
|
-
:host([open]) main {
|
|
114
|
-
width: calc(100% - var(--supporting-pane-width));
|
|
115
|
-
}
|
|
116
|
-
</style>
|
|
117
|
-
<main>
|
|
118
|
-
<slot></slot>
|
|
119
|
-
</main>
|
|
120
|
-
<custom-pane class="support" ?open=${this.open} ?right=${!this.left} .id=${this.id}>
|
|
121
|
-
<slot name="supporting">
|
|
122
|
-
<slot name="supporting-header" slot="header"></slot>
|
|
123
|
-
<slot name="supporting-content"></slot>
|
|
124
|
-
</slot>
|
|
79
|
+
return html `<style>
|
|
80
|
+
:host {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
height: 100%;
|
|
84
|
+
background: var(--md-sys-color-surface);
|
|
85
|
+
color: var(--md-sys-color-on-surface);
|
|
86
|
+
width: 100%;
|
|
87
|
+
position: relative;
|
|
88
|
+
--supporting-pane-width: 360px;
|
|
89
|
+
}
|
|
90
|
+
.support {
|
|
91
|
+
position: absolute;
|
|
92
|
+
right: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:host([left]) {
|
|
96
|
+
left: 0;
|
|
97
|
+
right: none;
|
|
98
|
+
}
|
|
99
|
+
:host([variant='expanded']) .support {
|
|
100
|
+
--custom-pane-width: var(--supporting-pane-width);
|
|
101
|
+
}
|
|
102
|
+
:host([variant='expanded']) {
|
|
103
|
+
flex-direction: row;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:host([variant='compact']) .support {
|
|
107
|
+
position: absolute;
|
|
108
|
+
flex-direction: row;
|
|
109
|
+
}
|
|
110
|
+
main {
|
|
111
|
+
width: 100%;
|
|
112
|
+
}
|
|
113
|
+
:host([open]) main {
|
|
114
|
+
width: calc(100% - var(--supporting-pane-width));
|
|
115
|
+
}
|
|
116
|
+
</style>
|
|
117
|
+
<main>
|
|
118
|
+
<slot></slot>
|
|
119
|
+
</main>
|
|
120
|
+
<custom-pane class="support" ?open=${this.open} ?right=${!this.left} .id=${this.id}>
|
|
121
|
+
<slot name="supporting">
|
|
122
|
+
<slot name="supporting-header" slot="header"></slot>
|
|
123
|
+
<slot name="supporting-content"></slot>
|
|
124
|
+
</slot>
|
|
125
125
|
</custom-pane>`;
|
|
126
126
|
}
|
|
127
127
|
constructor() {
|
package/exports/tab.js
CHANGED
|
@@ -17,27 +17,27 @@ let CustomTab = (() => {
|
|
|
17
17
|
__runInitializers(_classThis, _classExtraInitializers);
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return html `
|
|
21
|
-
<style>
|
|
22
|
-
:host {
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
justify-content: center;
|
|
26
|
-
gap: 8px;
|
|
27
|
-
height: 40px;
|
|
28
|
-
padding: 0 12px;
|
|
29
|
-
box-sizing: border-box;
|
|
30
|
-
width: auto;
|
|
31
|
-
font: var(--_supporting-text-type);
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
white-space: nowrap;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
slot {
|
|
37
|
-
pointer-events: none;
|
|
38
|
-
}
|
|
39
|
-
</style>
|
|
40
|
-
<slot></slot>
|
|
20
|
+
return html `
|
|
21
|
+
<style>
|
|
22
|
+
:host {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
gap: 8px;
|
|
27
|
+
height: 40px;
|
|
28
|
+
padding: 0 12px;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
width: auto;
|
|
31
|
+
font: var(--_supporting-text-type);
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
slot {
|
|
37
|
+
pointer-events: none;
|
|
38
|
+
}
|
|
39
|
+
</style>
|
|
40
|
+
<slot></slot>
|
|
41
41
|
`;
|
|
42
42
|
}
|
|
43
43
|
});
|
package/exports/tabs.js
CHANGED
|
@@ -21,56 +21,56 @@ let CustomTabs = (() => {
|
|
|
21
21
|
}
|
|
22
22
|
// TODO: make scrollable
|
|
23
23
|
render() {
|
|
24
|
-
return html `
|
|
25
|
-
<style>
|
|
26
|
-
:host {
|
|
27
|
-
--custom-tabs-background: var(---md-sys-color-surface);
|
|
28
|
-
--selected-color: var(--md-sys-color-primary);
|
|
29
|
-
--selected-tab-color: var(--md-sys-color-primary);
|
|
30
|
-
--custom-tabs-shape: var(--md-sys-shape-corner-none);
|
|
31
|
-
--inactive-color: var(--md-sys-color-on-surface-variant);
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-direction: row;
|
|
34
|
-
min-height: var(--custom-tabs-height, 64px);
|
|
35
|
-
overflow-x: auto;
|
|
36
|
-
background: var(--custom-tabs-background);
|
|
37
|
-
border-radius: var(--custom-tabs-shape);
|
|
38
|
-
}
|
|
39
|
-
::slotted(*) {
|
|
40
|
-
color: var(--inactive-color);
|
|
41
|
-
}
|
|
42
|
-
::slotted(.custom-selected) {
|
|
43
|
-
color: var(--selected-color);
|
|
44
|
-
border-bottom: 2px solid var(--selected-tab-color);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
:host([round]) ::slotted(*) {
|
|
48
|
-
gap: 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
:host([round]) ::slotted(.custom-selected) {
|
|
52
|
-
--md-sys-color-on-surface: var(--md-sys-color-on-tertiary);
|
|
53
|
-
color: var(--md-sys-color-on-tertiary);
|
|
54
|
-
background: var(--md-sys-color-tertiary);
|
|
55
|
-
border: none;
|
|
56
|
-
border-radius: var(--md-sys-shape-corner-extra-large);
|
|
57
|
-
}
|
|
58
|
-
::-webkit-scrollbar {
|
|
59
|
-
width: 6px;
|
|
60
|
-
border-radius: 12px;
|
|
61
|
-
}
|
|
62
|
-
::-webkit-scrollbar-track {
|
|
63
|
-
background: #f1f1f1;
|
|
64
|
-
}
|
|
65
|
-
::-webkit-scrollbar-thumb {
|
|
66
|
-
background: #888;
|
|
67
|
-
border-radius: 12px;
|
|
68
|
-
}
|
|
69
|
-
::-webkit-scrollbar-thumb:hover {
|
|
70
|
-
background: #555;
|
|
71
|
-
}
|
|
72
|
-
</style>
|
|
73
|
-
<slot></slot>
|
|
24
|
+
return html `
|
|
25
|
+
<style>
|
|
26
|
+
:host {
|
|
27
|
+
--custom-tabs-background: var(---md-sys-color-surface);
|
|
28
|
+
--selected-color: var(--md-sys-color-primary);
|
|
29
|
+
--selected-tab-color: var(--md-sys-color-primary);
|
|
30
|
+
--custom-tabs-shape: var(--md-sys-shape-corner-none);
|
|
31
|
+
--inactive-color: var(--md-sys-color-on-surface-variant);
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: row;
|
|
34
|
+
min-height: var(--custom-tabs-height, 64px);
|
|
35
|
+
overflow-x: auto;
|
|
36
|
+
background: var(--custom-tabs-background);
|
|
37
|
+
border-radius: var(--custom-tabs-shape);
|
|
38
|
+
}
|
|
39
|
+
::slotted(*) {
|
|
40
|
+
color: var(--inactive-color);
|
|
41
|
+
}
|
|
42
|
+
::slotted(.custom-selected) {
|
|
43
|
+
color: var(--selected-color);
|
|
44
|
+
border-bottom: 2px solid var(--selected-tab-color);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host([round]) ::slotted(*) {
|
|
48
|
+
gap: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:host([round]) ::slotted(.custom-selected) {
|
|
52
|
+
--md-sys-color-on-surface: var(--md-sys-color-on-tertiary);
|
|
53
|
+
color: var(--md-sys-color-on-tertiary);
|
|
54
|
+
background: var(--md-sys-color-tertiary);
|
|
55
|
+
border: none;
|
|
56
|
+
border-radius: var(--md-sys-shape-corner-extra-large);
|
|
57
|
+
}
|
|
58
|
+
::-webkit-scrollbar {
|
|
59
|
+
width: 6px;
|
|
60
|
+
border-radius: 12px;
|
|
61
|
+
}
|
|
62
|
+
::-webkit-scrollbar-track {
|
|
63
|
+
background: #f1f1f1;
|
|
64
|
+
}
|
|
65
|
+
::-webkit-scrollbar-thumb {
|
|
66
|
+
background: #888;
|
|
67
|
+
border-radius: 12px;
|
|
68
|
+
}
|
|
69
|
+
::-webkit-scrollbar-thumb:hover {
|
|
70
|
+
background: #555;
|
|
71
|
+
}
|
|
72
|
+
</style>
|
|
73
|
+
<slot></slot>
|
|
74
74
|
`;
|
|
75
75
|
}
|
|
76
76
|
});
|
package/exports/text-field.js
CHANGED
|
@@ -64,15 +64,15 @@ let TextField = (() => {
|
|
|
64
64
|
this.trailingIconSlot.addEventListener('slotchange', this.#trailingIconSlotChange);
|
|
65
65
|
}
|
|
66
66
|
static styles = [
|
|
67
|
-
css `
|
|
68
|
-
:host {
|
|
69
|
-
display: block;
|
|
70
|
-
}
|
|
71
|
-
.label {
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
:host([has-leading-icon]) {
|
|
75
|
-
}
|
|
67
|
+
css `
|
|
68
|
+
:host {
|
|
69
|
+
display: block;
|
|
70
|
+
}
|
|
71
|
+
.label {
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:host([has-leading-icon]) {
|
|
75
|
+
}
|
|
76
76
|
`
|
|
77
77
|
];
|
|
78
78
|
render() {
|
package/exports/theme.js
CHANGED
|
@@ -82,14 +82,14 @@ let CustomTheme = (() => {
|
|
|
82
82
|
// this.load('./themes/default/tokens.js')
|
|
83
83
|
this.load('./themes/default/theme.css');
|
|
84
84
|
const style = document.createElement('style');
|
|
85
|
-
style.innerHTML = `
|
|
86
|
-
html, body {
|
|
87
|
-
inset: 0;
|
|
88
|
-
position: absolute;
|
|
89
|
-
margin: 0;
|
|
90
|
-
background: var(--md-sys-color-background);
|
|
91
|
-
color: var(--md-sys-color-on-background);
|
|
92
|
-
overflow: hidden;
|
|
85
|
+
style.innerHTML = `
|
|
86
|
+
html, body {
|
|
87
|
+
inset: 0;
|
|
88
|
+
position: absolute;
|
|
89
|
+
margin: 0;
|
|
90
|
+
background: var(--md-sys-color-background);
|
|
91
|
+
color: var(--md-sys-color-on-background);
|
|
92
|
+
overflow: hidden;
|
|
93
93
|
}`;
|
|
94
94
|
document.head.appendChild(style);
|
|
95
95
|
if (this.loadFont || this.loadSymbols)
|