@vandeurenglenn/lite-elements 0.3.50 → 0.3.51

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 (81) hide show
  1. package/exports/banner.js +36 -36
  2. package/exports/bundle/button.js +6 -1
  3. package/exports/bundle/index.html +590 -590
  4. package/exports/bundle/themes/default/colors.module.css +180 -180
  5. package/exports/bundle/themes/default/missing/motion.css +3 -3
  6. package/exports/bundle/themes/default/missing/shape.css +12 -12
  7. package/exports/bundle/themes/default/missing/theme.dark.css +4 -4
  8. package/exports/bundle/themes/default/missing/theme.light.css +4 -4
  9. package/exports/bundle/themes/default/missing/tokens.css +8 -8
  10. package/exports/bundle/themes/default/theme.css +10 -10
  11. package/exports/bundle/themes/default/theme.dark.css +33 -33
  12. package/exports/bundle/themes/default/theme.light.css +33 -33
  13. package/exports/bundle/themes/default/tokens.css +256 -256
  14. package/exports/bundle/themes/default/typography.module.css +150 -150
  15. package/exports/bundle/upload-image.js +49 -45
  16. package/exports/button.js +148 -143
  17. package/exports/card.js +139 -139
  18. package/exports/code.js +34 -34
  19. package/exports/demo-icons.js +15 -15
  20. package/exports/demo-shell.js +539 -539
  21. package/exports/demo.js +456 -456
  22. package/exports/dialog.js +148 -148
  23. package/exports/divider.js +21 -21
  24. package/exports/drawer-button.js +13 -13
  25. package/exports/drawer-item.js +38 -38
  26. package/exports/drawer-layout.js +95 -95
  27. package/exports/drawer.js +7 -7
  28. package/exports/dropdown-menu.js +58 -58
  29. package/exports/dropdown.js +25 -25
  30. package/exports/elevation.js +50 -50
  31. package/exports/fab.js +145 -145
  32. package/exports/icon-button.js +12 -12
  33. package/exports/icon-set.js +4 -4
  34. package/exports/icon.js +15 -15
  35. package/exports/input.js +5 -5
  36. package/exports/list-item.js +42 -42
  37. package/exports/menu.js +12 -12
  38. package/exports/minute-field.js +4 -4
  39. package/exports/mixins/scroll-mixin.d.ts +1 -1
  40. package/exports/notification.js +34 -34
  41. package/exports/notifications.js +65 -65
  42. package/exports/pages.js +42 -42
  43. package/exports/pane.js +18 -18
  44. package/exports/rail.js +57 -57
  45. package/exports/root.js +7 -7
  46. package/exports/section/section.d.ts +1 -1
  47. package/exports/section.js +10 -10
  48. package/exports/section2.js +24 -24
  49. package/exports/selector.js +30 -30
  50. package/exports/summary-mirror.js +19 -19
  51. package/exports/summary.js +24 -24
  52. package/exports/supporting-pane.js +46 -46
  53. package/exports/tab.js +21 -21
  54. package/exports/tabs.js +50 -50
  55. package/exports/text-field.js +9 -9
  56. package/exports/theme.js +8 -8
  57. package/exports/themes/default/colors.module.css +180 -180
  58. package/exports/themes/default/missing/motion.css +3 -3
  59. package/exports/themes/default/missing/shape.css +12 -12
  60. package/exports/themes/default/missing/theme.dark.css +4 -4
  61. package/exports/themes/default/missing/theme.light.css +4 -4
  62. package/exports/themes/default/missing/tokens.css +8 -8
  63. package/exports/themes/default/theme.css +10 -10
  64. package/exports/themes/default/theme.dark.css +33 -33
  65. package/exports/themes/default/theme.light.css +33 -33
  66. package/exports/themes/default/tokens.css +256 -256
  67. package/exports/themes/default/typography.module.css +150 -150
  68. package/exports/time-picker.js +20 -20
  69. package/exports/toggle-button.js +3 -3
  70. package/exports/toggle.js +4 -4
  71. package/exports/top-app-bar.js +20 -20
  72. package/exports/typography.js +155 -155
  73. package/exports/upload-file.js +8 -8
  74. package/exports/upload-image.js +200 -200
  75. package/package.json +20 -28
  76. package/exports/bundle/simple-hash-router.js +0 -1
  77. package/exports/bundle/types2.js +0 -1
  78. package/exports/router/simple-hash-router.d.ts +0 -34
  79. package/exports/router/types.d.ts +0 -45
  80. package/exports/simple-hash-router.js +0 -111
  81. package/exports/types2.js +0 -1
package/exports/drawer.js CHANGED
@@ -75,13 +75,13 @@ let CustomDrawer = (() => {
75
75
  }
76
76
  static styles = [style];
77
77
  render() {
78
- return html `
79
- <custom-pane .open=${this.open} .mobile=${this.mobile} .type=${this.type} .id=${this.id}>
80
- <slot name="headline" slot="headline"></slot>
81
- <slot name="menu-button" slot="menu-button"></slot>
82
- <slot name="content" slot="content"></slot>
83
- <slot name="footer" slot="footer"></slot>
84
- </custom-pane>
78
+ return html `
79
+ <custom-pane .open=${this.open} .mobile=${this.mobile} .type=${this.type} .id=${this.id}>
80
+ <slot name="headline" slot="headline"></slot>
81
+ <slot name="menu-button" slot="menu-button"></slot>
82
+ <slot name="content" slot="content"></slot>
83
+ <slot name="footer" slot="footer"></slot>
84
+ </custom-pane>
85
85
  `;
86
86
  }
87
87
  constructor() {
@@ -99,67 +99,67 @@ let CustomDropdownMenu = (() => {
99
99
  }
100
100
  };
101
101
  static styles = [
102
- css `
103
- :host {
104
- position: relative;
105
- display: block;
106
- --custom-dropdown-top: 48px;
107
- }
108
-
109
- custom-dropdown {
110
- display: flex;
111
- flex-direction: column;
112
- width: fit-content;
113
- top: var(--custom-dropdown-top);
114
- padding: 8px 0;
115
- border-radius: var(--md-sys-shape-corner-extra-small);
116
- }
117
-
118
- custom-elevation {
119
- --md-elevation-level: var(--elevation-level, 1);
120
- border-radius: var(--md-sys-shape-corner-extra-small);
121
- }
122
-
123
- :host([bottom]) custom-dropdown {
124
- transform-origin: bottom left;
125
- top: auto;
126
- bottom: var(--custom-dropdown-top);
127
- }
128
-
129
- :host([right]) custom-dropdown {
130
- transform-origin: top right;
131
- right: 0;
132
- }
133
-
134
- :host([bottom][right]) custom-dropdown {
135
- transform-origin: bottom right;
136
- }
137
-
138
- .scrim {
139
- position: fixed;
140
- inset: 0;
141
- pointer-events: none;
142
- }
143
-
144
- :host([open]) .scrim {
145
- pointer-events: auto;
146
- }
102
+ css `
103
+ :host {
104
+ position: relative;
105
+ display: block;
106
+ --custom-dropdown-top: 48px;
107
+ }
108
+
109
+ custom-dropdown {
110
+ display: flex;
111
+ flex-direction: column;
112
+ width: fit-content;
113
+ top: var(--custom-dropdown-top);
114
+ padding: 8px 0;
115
+ border-radius: var(--md-sys-shape-corner-extra-small);
116
+ }
117
+
118
+ custom-elevation {
119
+ --md-elevation-level: var(--elevation-level, 1);
120
+ border-radius: var(--md-sys-shape-corner-extra-small);
121
+ }
122
+
123
+ :host([bottom]) custom-dropdown {
124
+ transform-origin: bottom left;
125
+ top: auto;
126
+ bottom: var(--custom-dropdown-top);
127
+ }
128
+
129
+ :host([right]) custom-dropdown {
130
+ transform-origin: top right;
131
+ right: 0;
132
+ }
133
+
134
+ :host([bottom][right]) custom-dropdown {
135
+ transform-origin: bottom right;
136
+ }
137
+
138
+ .scrim {
139
+ position: fixed;
140
+ inset: 0;
141
+ pointer-events: none;
142
+ }
143
+
144
+ :host([open]) .scrim {
145
+ pointer-events: auto;
146
+ }
147
147
  `
148
148
  ];
149
149
  render() {
150
- return html `
151
- <span class="scrim" @click=${this._scrimClick}></span>
152
-
153
- <custom-button part="button" @click=${() => (this.open = !this.open)}>
154
- <custom-icon slot="icon" .icon=${this.icon}></custom-icon>
155
- </custom-button>
156
-
157
- <custom-dropdown part="dropdown" .open=${this.open} ?right=${this.right} ?bottom=${this.bottom}>
158
- <custom-elevation></custom-elevation>
159
- <custom-menu @selected=${this._onselected}>
160
- <slot></slot>
161
- </custom-menu>
162
- </custom-dropdown>
150
+ return html `
151
+ <span class="scrim" @click=${this._scrimClick}></span>
152
+
153
+ <custom-button part="button" @click=${() => (this.open = !this.open)}>
154
+ <custom-icon slot="icon" .icon=${this.icon}></custom-icon>
155
+ </custom-button>
156
+
157
+ <custom-dropdown part="dropdown" .open=${this.open} ?right=${this.right} ?bottom=${this.bottom}>
158
+ <custom-elevation></custom-elevation>
159
+ <custom-menu @selected=${this._onselected}>
160
+ <slot></slot>
161
+ </custom-menu>
162
+ </custom-dropdown>
163
163
  `;
164
164
  }
165
165
  static {
@@ -24,31 +24,31 @@ let CustomDropdown = (() => {
24
24
  get open() { return this.#open_accessor_storage; }
25
25
  set open(value) { this.#open_accessor_storage = value; }
26
26
  static styles = [
27
- css `
28
- :host {
29
- position: absolute;
30
- pointer-events: none;
31
- opacity: 0;
32
- flex: 1;
33
- width: fit-content;
34
- display: flex;
35
- flex-direction: column;
36
- border: 1px;
37
- background: var(--md-sys-color-surface);
38
- z-index: 1001;
39
- transform: scale(0, 0);
40
- transform-origin: top left;
41
- transition: var(--md-sys-motion-easing-emphasized-accelerate) 200ms opacity,
42
- var(--md-sys-motion-easing-emphasized-accelerate) 200ms transform;
43
- }
44
-
45
- :host([open]) {
46
- pointer-events: auto;
47
- opacity: 1;
48
- transform: scale(1, 1);
49
- transition: var(--md-sys-motion-easing-emphasized-decelerate) 500ms opacity,
50
- var(--md-sys-motion-easing-emphasized-decelerate) 500ms transform;
51
- }
27
+ css `
28
+ :host {
29
+ position: absolute;
30
+ pointer-events: none;
31
+ opacity: 0;
32
+ flex: 1;
33
+ width: fit-content;
34
+ display: flex;
35
+ flex-direction: column;
36
+ border: 1px;
37
+ background: var(--md-sys-color-surface);
38
+ z-index: 1001;
39
+ transform: scale(0, 0);
40
+ transform-origin: top left;
41
+ transition: var(--md-sys-motion-easing-emphasized-accelerate) 200ms opacity,
42
+ var(--md-sys-motion-easing-emphasized-accelerate) 200ms transform;
43
+ }
44
+
45
+ :host([open]) {
46
+ pointer-events: auto;
47
+ opacity: 1;
48
+ transform: scale(1, 1);
49
+ transition: var(--md-sys-motion-easing-emphasized-decelerate) 500ms opacity,
50
+ var(--md-sys-motion-easing-emphasized-decelerate) 500ms transform;
51
+ }
52
52
  `
53
53
  ];
54
54
  render() {
@@ -34,56 +34,56 @@ let CustomElevation = (() => {
34
34
  this.style.setProperty('--md-elevation-level', String(value));
35
35
  }
36
36
  render() {
37
- return html `
38
- <style>
39
- :host {
40
- --_level: var(--md-elevation-level, 0);
41
- --_shadow-color: var(--md-sys-color-shadow);
42
- display: flex;
43
- pointer-events: none;
44
- }
45
-
46
- :host,
47
- .shadow,
48
- .shadow::before,
49
- .shadow::after {
50
- border-radius: inherit;
51
- inset: 0;
52
- position: absolute;
53
- transition-duration: inherit;
54
- transition-timing-function: inherit;
55
- }
56
-
57
- .shadow::before,
58
- .shadow::after {
59
- content: '';
60
- transition-property: box-shadow, opacity;
61
- }
62
-
63
- .shadow::before {
64
- box-shadow: 0px
65
- calc(
66
- 1px * (clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 3, 1) + 2 * clamp(0, var(--_level) - 4, 1))
67
- )
68
- calc(
69
- 1px * (2 * clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 2, 1) + clamp(0, var(--_level) - 4, 1))
70
- )
71
- 0px var(--_shadow-color);
72
- opacity: 0.3;
73
- }
74
-
75
- .shadow::after {
76
- box-shadow: 0px
77
- calc(
78
- 1px * (clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 1, 1) + 2 * clamp(0, var(--_level) - 2, 3))
79
- )
80
- calc(1px * (3 * clamp(0, var(--_level), 2) + 2 * clamp(0, var(--_level) - 2, 3)))
81
- calc(1px * (clamp(0, var(--_level), 4) + 2 * clamp(0, var(--_level) - 4, 1))) var(--_shadow-color);
82
- opacity: 0.15;
83
- }
84
- </style>
85
-
86
- <span class="shadow"></span>
37
+ return html `
38
+ <style>
39
+ :host {
40
+ --_level: var(--md-elevation-level, 0);
41
+ --_shadow-color: var(--md-sys-color-shadow);
42
+ display: flex;
43
+ pointer-events: none;
44
+ }
45
+
46
+ :host,
47
+ .shadow,
48
+ .shadow::before,
49
+ .shadow::after {
50
+ border-radius: inherit;
51
+ inset: 0;
52
+ position: absolute;
53
+ transition-duration: inherit;
54
+ transition-timing-function: inherit;
55
+ }
56
+
57
+ .shadow::before,
58
+ .shadow::after {
59
+ content: '';
60
+ transition-property: box-shadow, opacity;
61
+ }
62
+
63
+ .shadow::before {
64
+ box-shadow: 0px
65
+ calc(
66
+ 1px * (clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 3, 1) + 2 * clamp(0, var(--_level) - 4, 1))
67
+ )
68
+ calc(
69
+ 1px * (2 * clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 2, 1) + clamp(0, var(--_level) - 4, 1))
70
+ )
71
+ 0px var(--_shadow-color);
72
+ opacity: 0.3;
73
+ }
74
+
75
+ .shadow::after {
76
+ box-shadow: 0px
77
+ calc(
78
+ 1px * (clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 1, 1) + 2 * clamp(0, var(--_level) - 2, 3))
79
+ )
80
+ calc(1px * (3 * clamp(0, var(--_level), 2) + 2 * clamp(0, var(--_level) - 2, 3)))
81
+ calc(1px * (clamp(0, var(--_level), 4) + 2 * clamp(0, var(--_level) - 4, 1))) var(--_shadow-color);
82
+ opacity: 0.15;
83
+ }
84
+ </style>
85
+
86
+ <span class="shadow"></span>
87
87
  `;
88
88
  }
89
89
  constructor() {
package/exports/fab.js CHANGED
@@ -25,154 +25,154 @@ let CustomButton = (() => {
25
25
  get type() { return this.#type_accessor_storage; }
26
26
  set type(value) { this.#type_accessor_storage = value; }
27
27
  static styles = [
28
- css `
29
- :host {
30
- color: var(--custom-fab-color, --md-sys-color-on-background);
31
- display: flex;
32
-
33
- height: 56px;
34
- width: 56px;
35
- border-radius: var(--md-sys-shape-corner-extra-large);
36
- position: relative;
37
- pointer-events: auto;
38
- cursor: pointer;
39
- box-sizing: border-box;
40
- padding: 16px;
41
-
42
- --elevation-level: 0;
43
- }
44
-
45
- button {
46
- box-sizing: border-box;
47
- border: none;
48
- background: transparent;
49
- color: inherit;
50
- align-items: center;
51
- justify-content: center;
52
- user-select: none;
53
- outline: none;
54
- cursor: pointer;
55
- border-radius: inherit;
56
- padding: none;
57
- width: inherit;
58
- height: inherit;
59
- display: flex;
60
- pointer-events: none;
61
- }
62
-
63
- ::slotted(*) {
64
- font-family: var(--md-sys-typescale-label-large-font-family-name);
65
- font-style: var(--md-sys-typescale-label-large-font-family-style);
66
- font-weight: var(--md-sys-typescale-label-large-font-weight);
67
- font-size: var(--md-sys-typescale-label-large-font-size);
68
- letter-spacing: var(--md-sys-typescale-label-large-tracking);
69
- line-height: var(--md-sys-typescale-label-large-height);
70
- text-transform: var(--md-sys-typescale-label-large-text-transform);
71
- text-decoration: var(--md-sys-typescale-label-large-text-decoration);
72
- }
73
-
74
- :host([type='filled']),
75
- :host([type='filled']) ::slotted(*) {
76
- color: var(--md-sys-color-on-primary);
77
- fill: var(--md-sys-color-on-primary);
78
- background: var(--md-sys-color-primary);
79
- }
80
-
81
- :host([type='outlined']),
82
- :host([type='outlined']) ::slotted(*) {
83
- color: var(--md-sys-color-on-surface);
84
- fill: var(--md-sys-color-on-surface);
85
- background: var(--md-sys-color-surface);
86
- border: solid 1px;
87
- border-color: var(--md-sys-color-outline);
88
- }
89
-
90
- :host([type='elevated']),
91
- :host([type='elevated']) ::slotted(*) {
92
- color: var(--md-sys-color-primary);
93
- fill: var(--md-sys-color-primary);
94
- background: var(--md-sys-color-surface-container-low);
95
- }
96
-
97
- :host([type='tertiary']),
98
- :host([type='tertiary']) ::slotted(*) {
99
- background: var(--md-sys-color-tertiary);
100
- color: var(--md-sys-color-on-tertiary);
101
- fill: var(--md-sys-color-on-tertiary);
102
- }
103
-
104
- :host([type='tonal']),
105
- :host([type='tonal']) ::slotted(*) {
106
- background: var(--md-sys-color-secondary-container);
107
- color: var(--md-sys-color-on-seconday-container);
108
- fill: var(--md-sys-color-on-seconday-container);
109
- }
110
-
111
- custom-elevation {
112
- --md-elevation-level: var(--elevation-level);
113
- }
114
-
115
- custom-elevation {
116
- --elevation-level: 1;
117
- }
118
-
119
- :host([type='normal']) button {
120
- align-items: center;
121
- justify-content: center;
122
- }
123
-
124
- :host([type='extended']) button {
125
- align-items: center;
126
- }
127
-
128
- :host([type='extended']) {
129
- min-width: 80px;
130
- width: fit-content;
131
- }
132
-
133
- :not([name='icon']) ::slotted(*) {
134
- margin-left: 24px;
135
- margin-right: 24px;
136
- }
137
-
138
- :host([has-icon][has-label]) .label {
139
- padding-left: 8px;
140
- padding-right: 24px;
141
- }
142
- :host([has-icon][has-label]) slot[name='icon']::slotted(*) {
143
- padding-left: 16px;
144
- }
145
-
146
- :host([disabled]) .label,
147
- :host([disabled]) slot[name='icon']::slotted(*) {
148
- opacity: 0.38;
149
- }
150
-
151
- ::slotted(*) {
152
- pointer-events: none;
153
- }
154
-
155
- :host(:focus),
156
- :host(:hover) {
157
- --elevation-level: 2;
158
- }
159
-
160
- :host(:active) {
161
- --elevation-level: 0;
162
- }
163
-
164
- button * {
165
- pointer-events: none;
166
- }
28
+ css `
29
+ :host {
30
+ color: var(--custom-fab-color, --md-sys-color-on-background);
31
+ display: flex;
32
+
33
+ height: 56px;
34
+ width: 56px;
35
+ border-radius: var(--md-sys-shape-corner-extra-large);
36
+ position: relative;
37
+ pointer-events: auto;
38
+ cursor: pointer;
39
+ box-sizing: border-box;
40
+ padding: 16px;
41
+
42
+ --elevation-level: 0;
43
+ }
44
+
45
+ button {
46
+ box-sizing: border-box;
47
+ border: none;
48
+ background: transparent;
49
+ color: inherit;
50
+ align-items: center;
51
+ justify-content: center;
52
+ user-select: none;
53
+ outline: none;
54
+ cursor: pointer;
55
+ border-radius: inherit;
56
+ padding: none;
57
+ width: inherit;
58
+ height: inherit;
59
+ display: flex;
60
+ pointer-events: none;
61
+ }
62
+
63
+ ::slotted(*) {
64
+ font-family: var(--md-sys-typescale-label-large-font-family-name);
65
+ font-style: var(--md-sys-typescale-label-large-font-family-style);
66
+ font-weight: var(--md-sys-typescale-label-large-font-weight);
67
+ font-size: var(--md-sys-typescale-label-large-font-size);
68
+ letter-spacing: var(--md-sys-typescale-label-large-tracking);
69
+ line-height: var(--md-sys-typescale-label-large-height);
70
+ text-transform: var(--md-sys-typescale-label-large-text-transform);
71
+ text-decoration: var(--md-sys-typescale-label-large-text-decoration);
72
+ }
73
+
74
+ :host([type='filled']),
75
+ :host([type='filled']) ::slotted(*) {
76
+ color: var(--md-sys-color-on-primary);
77
+ fill: var(--md-sys-color-on-primary);
78
+ background: var(--md-sys-color-primary);
79
+ }
80
+
81
+ :host([type='outlined']),
82
+ :host([type='outlined']) ::slotted(*) {
83
+ color: var(--md-sys-color-on-surface);
84
+ fill: var(--md-sys-color-on-surface);
85
+ background: var(--md-sys-color-surface);
86
+ border: solid 1px;
87
+ border-color: var(--md-sys-color-outline);
88
+ }
89
+
90
+ :host([type='elevated']),
91
+ :host([type='elevated']) ::slotted(*) {
92
+ color: var(--md-sys-color-primary);
93
+ fill: var(--md-sys-color-primary);
94
+ background: var(--md-sys-color-surface-container-low);
95
+ }
96
+
97
+ :host([type='tertiary']),
98
+ :host([type='tertiary']) ::slotted(*) {
99
+ background: var(--md-sys-color-tertiary);
100
+ color: var(--md-sys-color-on-tertiary);
101
+ fill: var(--md-sys-color-on-tertiary);
102
+ }
103
+
104
+ :host([type='tonal']),
105
+ :host([type='tonal']) ::slotted(*) {
106
+ background: var(--md-sys-color-secondary-container);
107
+ color: var(--md-sys-color-on-seconday-container);
108
+ fill: var(--md-sys-color-on-seconday-container);
109
+ }
110
+
111
+ custom-elevation {
112
+ --md-elevation-level: var(--elevation-level);
113
+ }
114
+
115
+ custom-elevation {
116
+ --elevation-level: 1;
117
+ }
118
+
119
+ :host([type='normal']) button {
120
+ align-items: center;
121
+ justify-content: center;
122
+ }
123
+
124
+ :host([type='extended']) button {
125
+ align-items: center;
126
+ }
127
+
128
+ :host([type='extended']) {
129
+ min-width: 80px;
130
+ width: fit-content;
131
+ }
132
+
133
+ :not([name='icon']) ::slotted(*) {
134
+ margin-left: 24px;
135
+ margin-right: 24px;
136
+ }
137
+
138
+ :host([has-icon][has-label]) .label {
139
+ padding-left: 8px;
140
+ padding-right: 24px;
141
+ }
142
+ :host([has-icon][has-label]) slot[name='icon']::slotted(*) {
143
+ padding-left: 16px;
144
+ }
145
+
146
+ :host([disabled]) .label,
147
+ :host([disabled]) slot[name='icon']::slotted(*) {
148
+ opacity: 0.38;
149
+ }
150
+
151
+ ::slotted(*) {
152
+ pointer-events: none;
153
+ }
154
+
155
+ :host(:focus),
156
+ :host(:hover) {
157
+ --elevation-level: 2;
158
+ }
159
+
160
+ :host(:active) {
161
+ --elevation-level: 0;
162
+ }
163
+
164
+ button * {
165
+ pointer-events: none;
166
+ }
167
167
  `
168
168
  ];
169
169
  render() {
170
- return html `
171
- <button>
172
- <custom-elevation></custom-elevation>
173
- <slot name="icon"></slot>
174
- <slot></slot>
175
- </button>
170
+ return html `
171
+ <button>
172
+ <custom-elevation></custom-elevation>
173
+ <slot name="icon"></slot>
174
+ <slot></slot>
175
+ </button>
176
176
  `;
177
177
  }
178
178
  constructor() {
@@ -28,21 +28,21 @@ let CustomIconButton = (() => {
28
28
  get icon() { return this.#icon_accessor_storage; }
29
29
  set icon(value) { this.#icon_accessor_storage = value; }
30
30
  static styles = [
31
- css `
32
- :host {
33
- display: block;
34
- }
35
-
36
- custom-icon {
37
- --custom-icon-color: var(--md-sys-color-on-surface);
38
- }
31
+ css `
32
+ :host {
33
+ display: block;
34
+ }
35
+
36
+ custom-icon {
37
+ --custom-icon-color: var(--md-sys-color-on-surface);
38
+ }
39
39
  `
40
40
  ];
41
41
  render() {
42
- return html `
43
- <custom-button>
44
- <custom-icon slot="icon" .icon=${this.icon}></custom-icon>
45
- </custom-button>
42
+ return html `
43
+ <custom-button>
44
+ <custom-icon slot="icon" .icon=${this.icon}></custom-icon>
45
+ </custom-button>
46
46
  `;
47
47
  }
48
48
  constructor() {
@@ -18,10 +18,10 @@ let CustomIconSet = (() => {
18
18
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
19
19
  }
20
20
  static styles = [
21
- css `
22
- :host {
23
- display: none;
24
- }
21
+ css `
22
+ :host {
23
+ display: none;
24
+ }
25
25
  `
26
26
  ];
27
27
  #getIcon(name) {