@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
@@ -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
  });
@@ -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)