@vandeurenglenn/lite-elements 0.3.67 → 0.3.69

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 (108) hide show
  1. package/exports/banner.js +2 -1
  2. package/exports/bundle/banner.js +1 -1
  3. package/exports/bundle/button.css.js +213 -0
  4. package/exports/bundle/button.js +2 -205
  5. package/exports/bundle/card.js +2 -2
  6. package/exports/bundle/code.js +2 -2
  7. package/exports/bundle/{column-DDQ_cHlH.js → column-CFoAXmNm.js} +1 -1
  8. package/exports/bundle/demo-elements.js +1 -1
  9. package/exports/bundle/demo-icons.js +2 -2
  10. package/exports/bundle/demo-shell.js +2 -2
  11. package/exports/bundle/demo.js +2 -2
  12. package/exports/bundle/dialog.js +6 -6
  13. package/exports/bundle/divider.js +2 -2
  14. package/exports/bundle/drawer-button.js +2 -2
  15. package/exports/bundle/drawer-item.js +2 -2
  16. package/exports/bundle/drawer-layout.js +1 -1
  17. package/exports/bundle/drawer.js +3 -2
  18. package/exports/bundle/dropdown-menu.js +2 -2
  19. package/exports/bundle/dropdown.js +2 -2
  20. package/exports/bundle/elements.js +1 -1
  21. package/exports/bundle/elevation.js +2 -2
  22. package/exports/bundle/fab.js +2 -2
  23. package/exports/bundle/icon-button.js +28 -42
  24. package/exports/bundle/icon-set.js +1 -1
  25. package/exports/bundle/icon.js +3 -5
  26. package/exports/bundle/index.html +12 -0
  27. package/exports/bundle/input.js +2 -2
  28. package/exports/bundle/list-item.js +2 -2
  29. package/exports/bundle/menu.js +2 -2
  30. package/exports/bundle/minute-field.js +2 -2
  31. package/exports/bundle/notification.js +1 -1
  32. package/exports/bundle/notifications.js +3 -3
  33. package/exports/bundle/pages.js +1 -1
  34. package/exports/bundle/pane.js +3 -2
  35. package/exports/bundle/prompt.js +2 -2
  36. package/exports/bundle/{property-CVzdqkRx.js → property-ITdaEFzc.js} +2 -2
  37. package/exports/bundle/{property-dP9ZH-qy.js → property-uXlWYiST.js} +1 -1
  38. package/exports/bundle/rail.js +1 -1
  39. package/exports/bundle/root.js +2 -2
  40. package/exports/bundle/{row-UiFoKyj7.js → row-D8mlTlsJ.js} +1 -1
  41. package/exports/bundle/section.js +2 -2
  42. package/exports/bundle/section2.js +1 -1
  43. package/exports/bundle/select-mixin.js +1 -1
  44. package/exports/bundle/selector-mixin.js +1 -1
  45. package/exports/bundle/selector.js +1 -1
  46. package/exports/bundle/summary-mirror.js +1 -1
  47. package/exports/bundle/summary.js +2 -2
  48. package/exports/bundle/supporting-pane.js +1 -1
  49. package/exports/bundle/tab.js +1 -1
  50. package/exports/bundle/tabs.js +1 -1
  51. package/exports/bundle/text-field.js +2 -2
  52. package/exports/bundle/theme.js +1 -1
  53. package/exports/bundle/time-picker.js +2 -2
  54. package/exports/bundle/toggle-button.js +1 -1
  55. package/exports/bundle/toggle.js +2 -2
  56. package/exports/bundle/top-app-bar.js +4 -4
  57. package/exports/bundle/typography.js +2 -2
  58. package/exports/bundle/upload-file.js +2 -2
  59. package/exports/bundle/upload-image.js +1 -1
  60. package/exports/button/button.d.ts +2 -2
  61. package/exports/button/icon-button.d.ts +2 -2
  62. package/exports/button/styles/button.css.d.ts +2 -0
  63. package/exports/button.css.js +217 -0
  64. package/exports/button.js +17 -219
  65. package/exports/card.js +2 -1
  66. package/exports/code.js +1 -1
  67. package/exports/demo-icons.js +1 -1
  68. package/exports/demo-shell.js +2 -1
  69. package/exports/demo.js +1 -1
  70. package/exports/dialog.js +1 -1
  71. package/exports/divider.js +2 -1
  72. package/exports/drawer-button.js +2 -1
  73. package/exports/drawer-item.js +1 -1
  74. package/exports/drawer-layout.js +2 -1
  75. package/exports/drawer.js +2 -1
  76. package/exports/dropdown-menu.js +1 -1
  77. package/exports/dropdown.js +1 -1
  78. package/exports/elements.js +1 -0
  79. package/exports/elevation.js +1 -1
  80. package/exports/fab.js +1 -1
  81. package/exports/icon/icon.d.ts +1 -2
  82. package/exports/icon-button.js +30 -42
  83. package/exports/icon-set.js +1 -1
  84. package/exports/icon.js +4 -9
  85. package/exports/input.js +1 -1
  86. package/exports/list-item.js +1 -1
  87. package/exports/menu.js +1 -1
  88. package/exports/minute-field.js +1 -1
  89. package/exports/notification.js +1 -1
  90. package/exports/notifications.js +2 -1
  91. package/exports/pane.js +2 -1
  92. package/exports/prompt.js +1 -1
  93. package/exports/rail.js +2 -1
  94. package/exports/root.js +1 -1
  95. package/exports/section.js +1 -1
  96. package/exports/summary-mirror.js +1 -1
  97. package/exports/summary.js +1 -1
  98. package/exports/supporting-pane.js +2 -1
  99. package/exports/tab.js +1 -1
  100. package/exports/text-field.js +1 -1
  101. package/exports/theme.js +1 -1
  102. package/exports/time-picker.js +1 -1
  103. package/exports/toggle-button.js +2 -1
  104. package/exports/toggle.js +1 -1
  105. package/exports/top-app-bar.js +1 -1
  106. package/exports/typography.js +1 -1
  107. package/exports/upload-file.js +1 -1
  108. package/package.json +10 -2
@@ -0,0 +1,217 @@
1
+ import { css } from '@vandeurenglenn/lite';
2
+
3
+ var style = css `
4
+ :host {
5
+ --custom-button-border-radius: var(--md-sys-shape-corner-large);
6
+ color: var(--custom-button-color, --md-sys-color-on-background);
7
+ display: flex;
8
+
9
+ height: 40px;
10
+ border-radius: var(--custom-button-border-radius);
11
+ position: relative;
12
+ pointer-events: auto;
13
+ cursor: pointer;
14
+ overflow: hidden;
15
+
16
+ --elevation-level: 0;
17
+ }
18
+
19
+ button {
20
+ box-sizing: border-box;
21
+ border: none;
22
+ background: transparent;
23
+ color: inherit;
24
+ align-items: center;
25
+ justify-content: center;
26
+ user-select: none;
27
+ outline: none;
28
+ cursor: pointer;
29
+ border-radius: inherit;
30
+ padding: 0;
31
+ width: 100%;
32
+ height: 100%;
33
+ display: flex;
34
+ position: relative;
35
+ pointer-events: none;
36
+ font-size: inherit;
37
+ }
38
+
39
+ .label,
40
+ ::slotted(*) {
41
+ font-family: var(--md-sys-typescale-label-large-font-family-name);
42
+ font-style: var(--md-sys-typescale-label-large-font-family-style);
43
+ font-weight: var(--md-sys-typescale-label-large-font-weight);
44
+ font-size: var(--md-sys-typescale-label-large-font-size);
45
+ letter-spacing: var(--md-sys-typescale-label-large-tracking);
46
+ line-height: var(--md-sys-typescale-label-large-height);
47
+ text-transform: var(--md-sys-typescale-label-large-text-transform);
48
+ text-decoration: var(--md-sys-typescale-label-large-text-decoration);
49
+ }
50
+
51
+ :host([type='filled']) {
52
+ background: var(--md-sys-color-primary);
53
+ }
54
+
55
+ :host([type='filled']),
56
+ :host([type='filled']) ::slotted(*) {
57
+ color: var(--md-sys-color-on-primary);
58
+ fill: var(--md-sys-color-on-primary);
59
+ }
60
+
61
+ :host([type='outlined']) {
62
+ border: solid 1px;
63
+ border-color: var(--md-sys-color-outline);
64
+ background: var(--md-sys-color-surface);
65
+ }
66
+
67
+ :host([type='outlined']),
68
+ :host([type='outlined']) ::slotted(*) {
69
+ color: var(--md-sys-color-on-surface);
70
+ fill: var(--md-sys-color-on-surface);
71
+ }
72
+
73
+ :host([type='elevated']) {
74
+ background: var(--md-sys-color-surface-container-low);
75
+ }
76
+
77
+ :host([type='elevated']),
78
+ :host([type='elevated']) ::slotted(*) {
79
+ color: var(--md-sys-color-primary);
80
+ fill: var(--md-sys-color-primary);
81
+ }
82
+
83
+ :host([type='tertiary']) {
84
+ background: var(--md-sys-color-tertiary);
85
+ }
86
+
87
+ :host([type='tertiary']),
88
+ :host([type='tertiary']) ::slotted(*) {
89
+ color: var(--md-sys-color-on-tertiary);
90
+ fill: var(--md-sys-color-on-tertiary);
91
+ }
92
+
93
+ :host([type='tonal']) {
94
+ background: var(--md-sys-color-secondary-container);
95
+ }
96
+
97
+ :host([type='tonal']),
98
+ :host([type='tonal']) ::slotted(*) {
99
+ color: var(--md-sys-color-on-secondary-container);
100
+ fill: var(--md-sys-color-on-secondary-container);
101
+ }
102
+
103
+ custom-elevation {
104
+ --md-elevation-level: var(--elevation-level);
105
+ }
106
+
107
+ :host([type='elevated']) custom-elevation {
108
+ --elevation-level: 1;
109
+ }
110
+
111
+ :host([type='filled']),
112
+ :host([type='outlined']),
113
+ :host([type='text']),
114
+ :host([type='tonal']) {
115
+ --elevation-level: 0;
116
+ }
117
+
118
+ :host([has-label]) .label {
119
+ padding-left: 24px;
120
+ padding-right: 24px;
121
+ align-items: center;
122
+ display: flex;
123
+ justify-content: center;
124
+ flex: 1;
125
+ text-align: center;
126
+ }
127
+
128
+ :host([has-icon]:not([has-label])) {
129
+ border-radius: 50%;
130
+ width: 40px;
131
+ align-items: center;
132
+ justify-content: center;
133
+ }
134
+
135
+ :host([has-icon][has-label]) .label {
136
+ padding-left: 8px;
137
+ padding-right: 24px;
138
+ text-align: end;
139
+ }
140
+ :host([has-icon][has-label]) slot[name='icon']::slotted(*) {
141
+ padding-left: 16px;
142
+ }
143
+
144
+ :host([disabled]) .label,
145
+ :host([disabled]) slot[name='icon']::slotted(*) {
146
+ opacity: 0.28;
147
+ }
148
+ .label {
149
+ font-size: inherit;
150
+ }
151
+
152
+ ::slotted(*) {
153
+ pointer-events: none;
154
+ }
155
+
156
+ :host([type='elevated']:focus),
157
+ :host([type='elevated']:hover) {
158
+ --elevation-level: 2;
159
+ }
160
+
161
+ :host(:active) {
162
+ --elevation-level: 0;
163
+ }
164
+
165
+ button * {
166
+ pointer-events: none;
167
+ }
168
+ .hover {
169
+ position: absolute;
170
+ inset: 0;
171
+ background-color: var(--md-sys-color-primary);
172
+ opacity: 0;
173
+ transition: opacity 200ms;
174
+ border-radius: var(--custom-button-border-radius);
175
+ }
176
+
177
+ :host(:focus) .hover,
178
+ :host(:hover) .hover {
179
+ opacity: 0.1;
180
+ }
181
+
182
+ :host(:active) .hover {
183
+ opacity: 0.2;
184
+ }
185
+
186
+ :host([type='filled']:focus) .hover,
187
+ :host([type='filled']:hover) .hover {
188
+ background-color: var(--md-sys-color-on-primary);
189
+ opacity: 0.1;
190
+ }
191
+
192
+ :host([type='filled']:active) .hover {
193
+ opacity: 0.2;
194
+ }
195
+
196
+ :host([type='tertiary']:focus) .hover,
197
+ :host([type='tertiary']:hover) .hover {
198
+ background-color: var(--md-sys-color-on-tertiary);
199
+ opacity: 0.1;
200
+ }
201
+
202
+ :host([type='tertiary']:active) .hover {
203
+ opacity: 0.2;
204
+ }
205
+
206
+ :host([type='tonal']:focus) .hover,
207
+ :host([type='tonal']:hover) .hover {
208
+ background-color: var(--md-sys-color-on-secondary-container);
209
+ opacity: 0.1;
210
+ }
211
+
212
+ :host([type='tonal']:active) .hover {
213
+ opacity: 0.2;
214
+ }
215
+ `;
216
+
217
+ export { style as default };
package/exports/button.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
- import { customElement, property, css, html, LiteElement } from '@vandeurenglenn/lite';
2
+ import { customElement, LiteElement, property, html } from '@vandeurenglenn/lite';
3
3
  import './elevation.js';
4
+ import style from './button.css.js';
4
5
 
5
6
  let CustomButton = (() => {
6
7
  let _classDecorators = [customElement('custom-button')];
@@ -11,27 +12,27 @@ let CustomButton = (() => {
11
12
  let _hasIcon_decorators;
12
13
  let _hasIcon_initializers = [];
13
14
  let _hasIcon_extraInitializers = [];
14
- let _hasLabel_decorators;
15
- let _hasLabel_initializers = [];
16
- let _hasLabel_extraInitializers = [];
17
15
  let _type_decorators;
18
16
  let _type_initializers = [];
19
17
  let _type_extraInitializers = [];
20
18
  let _label_decorators;
21
19
  let _label_initializers = [];
22
20
  let _label_extraInitializers = [];
21
+ let _hasLabel_decorators;
22
+ let _hasLabel_initializers = [];
23
+ let _hasLabel_extraInitializers = [];
23
24
  (class extends _classSuper {
24
25
  static { _classThis = this; }
25
26
  static {
26
27
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
27
28
  _hasIcon_decorators = [property({ attribute: 'has-icon', reflect: true })];
28
- _hasLabel_decorators = [property({ attribute: 'has-label', reflect: true })];
29
29
  _type_decorators = [property({ attribute: 'type', reflect: true })];
30
30
  _label_decorators = [property({ attribute: true })];
31
+ _hasLabel_decorators = [property({ attribute: 'has-label', reflect: true })];
31
32
  __esDecorate(this, null, _hasIcon_decorators, { kind: "accessor", name: "hasIcon", static: false, private: false, access: { has: obj => "hasIcon" in obj, get: obj => obj.hasIcon, set: (obj, value) => { obj.hasIcon = value; } }, metadata: _metadata }, _hasIcon_initializers, _hasIcon_extraInitializers);
32
- __esDecorate(this, null, _hasLabel_decorators, { kind: "accessor", name: "hasLabel", static: false, private: false, access: { has: obj => "hasLabel" in obj, get: obj => obj.hasLabel, set: (obj, value) => { obj.hasLabel = value; } }, metadata: _metadata }, _hasLabel_initializers, _hasLabel_extraInitializers);
33
33
  __esDecorate(this, null, _type_decorators, { kind: "accessor", name: "type", static: false, private: false, access: { has: obj => "type" in obj, get: obj => obj.type, set: (obj, value) => { obj.type = value; } }, metadata: _metadata }, _type_initializers, _type_extraInitializers);
34
34
  __esDecorate(this, null, _label_decorators, { kind: "accessor", name: "label", static: false, private: false, access: { has: obj => "label" in obj, get: obj => obj.label, set: (obj, value) => { obj.label = value; } }, metadata: _metadata }, _label_initializers, _label_extraInitializers);
35
+ __esDecorate(this, null, _hasLabel_decorators, { kind: "accessor", name: "hasLabel", static: false, private: false, access: { has: obj => "hasLabel" in obj, get: obj => obj.hasLabel, set: (obj, value) => { obj.hasLabel = value; } }, metadata: _metadata }, _hasLabel_initializers, _hasLabel_extraInitializers);
35
36
  __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
36
37
  _classThis = _classDescriptor.value;
37
38
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
@@ -39,227 +40,24 @@ let CustomButton = (() => {
39
40
  #hasIcon_accessor_storage = __runInitializers(this, _hasIcon_initializers, void 0);
40
41
  get hasIcon() { return this.#hasIcon_accessor_storage; }
41
42
  set hasIcon(value) { this.#hasIcon_accessor_storage = value; }
42
- #hasLabel_accessor_storage = (__runInitializers(this, _hasIcon_extraInitializers), __runInitializers(this, _hasLabel_initializers, void 0));
43
- get hasLabel() { return this.#hasLabel_accessor_storage; }
44
- set hasLabel(value) { this.#hasLabel_accessor_storage = value; }
45
- #type_accessor_storage = (__runInitializers(this, _hasLabel_extraInitializers), __runInitializers(this, _type_initializers, 'text'));
43
+ #type_accessor_storage = (__runInitializers(this, _hasIcon_extraInitializers), __runInitializers(this, _type_initializers, 'text'));
46
44
  get type() { return this.#type_accessor_storage; }
47
45
  set type(value) { this.#type_accessor_storage = value; }
48
46
  #label_accessor_storage = (__runInitializers(this, _type_extraInitializers), __runInitializers(this, _label_initializers, void 0));
49
47
  get label() { return this.#label_accessor_storage; }
50
48
  set label(value) { this.#label_accessor_storage = value; }
51
- static styles = [
52
- css `
53
- :host {
54
- --custom-button-border-radius: var(--md-sys-shape-corner-large);
55
- color: var(--custom-button-color, --md-sys-color-on-background);
56
- display: flex;
57
-
58
- height: 40px;
59
- border-radius: var(--custom-button-border-radius);
60
- position: relative;
61
- pointer-events: auto;
62
- cursor: pointer;
63
- overflow: hidden;
64
-
65
- --elevation-level: 0;
66
- }
67
-
68
- button {
69
- box-sizing: border-box;
70
- border: none;
71
- background: transparent;
72
- color: inherit;
73
- align-items: center;
74
- justify-content: center;
75
- user-select: none;
76
- outline: none;
77
- cursor: pointer;
78
- border-radius: inherit;
79
- padding: 0;
80
- width: 100%;
81
- height: 100%;
82
- display: flex;
83
- position: relative;
84
- pointer-events: none;
85
- font-size: inherit;
86
- }
87
-
88
- .label {
89
- flex: 1;
90
- text-align: center;
91
- }
92
-
93
- .label,
94
- ::slotted(*) {
95
- font-family: var(--md-sys-typescale-label-large-font-family-name);
96
- font-style: var(--md-sys-typescale-label-large-font-family-style);
97
- font-weight: var(--md-sys-typescale-label-large-font-weight);
98
- font-size: var(--md-sys-typescale-label-large-font-size);
99
- letter-spacing: var(--md-sys-typescale-label-large-tracking);
100
- line-height: var(--md-sys-typescale-label-large-height);
101
- text-transform: var(--md-sys-typescale-label-large-text-transform);
102
- text-decoration: var(--md-sys-typescale-label-large-text-decoration);
103
- }
104
-
105
- :host([type='filled']),
106
- :host([type='filled']) ::slotted(*) {
107
- color: var(--md-sys-color-on-primary);
108
- fill: var(--md-sys-color-on-primary);
109
- background: var(--md-sys-color-primary);
110
- }
111
-
112
- :host([type='outlined']) {
113
- border: solid 1px;
114
- border-color: var(--md-sys-color-outline);
115
- }
116
-
117
- :host([type='outlined']),
118
- :host([type='outlined']) ::slotted(*) {
119
- color: var(--md-sys-color-on-surface);
120
- fill: var(--md-sys-color-on-surface);
121
- background: var(--md-sys-color-surface);
122
- }
123
-
124
- :host([type='elevated']),
125
- :host([type='elevated']) ::slotted(*) {
126
- color: var(--md-sys-color-primary);
127
- fill: var(--md-sys-color-primary);
128
- background: var(--md-sys-color-surface-container-low);
129
- }
130
-
131
- :host([type='tertiary']),
132
- :host([type='tertiary']) ::slotted(*) {
133
- background: var(--md-sys-color-tertiary);
134
- color: var(--md-sys-color-on-tertiary);
135
- fill: var(--md-sys-color-on-tertiary);
136
- }
137
-
138
- :host([type='tonal']),
139
- :host([type='tonal']) ::slotted(*) {
140
- background: var(--md-sys-color-secondary-container);
141
- color: var(--md-sys-color-on-secondary-container);
142
- fill: var(--md-sys-color-on-secondary-container);
143
- }
144
-
145
- custom-elevation {
146
- --md-elevation-level: var(--elevation-level);
147
- }
148
-
149
- :host([type='elevated']) custom-elevation {
150
- --elevation-level: 1;
151
- }
152
-
153
- :host([type='filled']),
154
- :host([type='outlined']),
155
- :host([type='text']),
156
- :host([type='tonal']) {
157
- --elevation-level: 0;
158
- }
159
-
160
- :host([has-label]) .label {
161
- padding-left: 24px;
162
- padding-right: 24px;
163
- align-items: center;
164
- display: flex;
165
- justify-content: center;
166
- }
167
-
168
- :host([has-icon]:not([has-label])) {
169
- border-radius: 50%;
170
- width: 40px;
171
- align-items: center;
172
- justify-content: center;
173
- }
174
-
175
- :host([has-icon][has-label]) .label {
176
- padding-left: 8px;
177
- padding-right: 24px;
178
- text-align: end;
179
- }
180
- :host([has-icon][has-label]) slot[name='icon']::slotted(*) {
181
- padding-left: 16px;
182
- }
183
-
184
- :host([disabled]) .label,
185
- :host([disabled]) slot[name='icon']::slotted(*) {
186
- opacity: 0.28;
187
- }
188
- .label {
189
- font-size: inherit;
190
- }
191
-
192
- ::slotted(*) {
193
- pointer-events: none;
194
- }
195
-
196
- :host([type='elevated']:focus),
197
- :host([type='elevated']:hover) {
198
- --elevation-level: 2;
199
- }
200
-
201
- :host(:active) {
202
- --elevation-level: 0;
203
- }
204
-
205
- button * {
206
- pointer-events: none;
207
- }
208
- .hover {
209
- position: absolute;
210
- inset: 0;
211
- background-color: var(--md-sys-color-primary);
212
- opacity: 0;
213
- transition: opacity 200ms;
214
- border-radius: var(--custom-button-border-radius);
215
- }
216
-
217
- :host(:focus) .hover,
218
- :host(:hover) .hover {
219
- opacity: 0.1;
220
- }
221
-
222
- :host(:active) .hover {
223
- opacity: 0.2;
224
- }
225
-
226
- :host([type='filled']:focus) .hover,
227
- :host([type='filled']:hover) .hover {
228
- background-color: var(--md-sys-color-on-primary);
229
- opacity: 0.1;
230
- }
231
-
232
- :host([type='filled']:active) .hover {
233
- opacity: 0.2;
234
- }
235
-
236
- :host([type='tertiary']:focus) .hover,
237
- :host([type='tertiary']:hover) .hover {
238
- background-color: var(--md-sys-color-on-tertiary);
239
- opacity: 0.1;
240
- }
241
-
242
- :host([type='tertiary']:active) .hover {
243
- opacity: 0.2;
244
- }
245
-
246
- :host([type='tonal']:focus) .hover,
247
- :host([type='tonal']:hover) .hover {
248
- background-color: var(--md-sys-color-on-secondary-container);
249
- opacity: 0.1;
250
- }
251
-
252
- :host([type='tonal']:active) .hover {
253
- opacity: 0.2;
254
- }
255
- `
256
- ];
257
- connectedCallback() {
49
+ #hasLabel_accessor_storage = (__runInitializers(this, _label_extraInitializers), __runInitializers(this, _hasLabel_initializers, void 0));
50
+ get hasLabel() { return this.#hasLabel_accessor_storage; }
51
+ set hasLabel(value) { this.#hasLabel_accessor_storage = value; }
52
+ static styles = [style];
53
+ firstRender() {
258
54
  const slots = Array.from(this.shadowRoot.querySelectorAll('slot'));
259
55
  for (const slot of slots) {
260
56
  slot.addEventListener('slotchange', () => this.#slotchange(slot));
261
57
  }
262
- this.#slotchange(slots[0]);
58
+ if (slots?.length > 0)
59
+ for (const slot of slots)
60
+ this.#slotchange(slot);
263
61
  }
264
62
  onChange(propertyKey, value) {
265
63
  if (propertyKey === 'label') {
@@ -269,7 +67,7 @@ let CustomButton = (() => {
269
67
  this.hasLabel = false;
270
68
  }
271
69
  }
272
- #slotchange = (__runInitializers(this, _label_extraInitializers), (slot) => {
70
+ #slotchange = (__runInitializers(this, _hasLabel_extraInitializers), (slot) => {
273
71
  if (slot.getAttribute('name') === 'icon') {
274
72
  this.hasIcon = Array.from(slot?.assignedNodes() || []).length !== 0;
275
73
  }
package/exports/card.js CHANGED
@@ -1,8 +1,9 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
- import { customElement, html, LiteElement } from '@vandeurenglenn/lite';
2
+ import { customElement, LiteElement, html } from '@vandeurenglenn/lite';
3
3
  import './button.js';
4
4
  import './divider.js';
5
5
  import './elevation.js';
6
+ import './button.css.js';
6
7
 
7
8
  let CustomCard = (() => {
8
9
  let _classDecorators = [customElement('custom-card')];
package/exports/code.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
- import { customElement, property, css, html, LiteElement } from '@vandeurenglenn/lite';
2
+ import { customElement, LiteElement, property, css, html } from '@vandeurenglenn/lite';
3
3
 
4
4
  let DemoCode = (() => {
5
5
  let _classDecorators = [customElement('demo-code')];
@@ -1,5 +1,5 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
- import { customElement, css, html, LiteElement } from '@vandeurenglenn/lite';
2
+ import { customElement, LiteElement, css, html } from '@vandeurenglenn/lite';
3
3
  import './icon-set.js';
4
4
  import '@vandeurenglenn/little-pubsub';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
- import { customElement, query, css, html, LiteElement } from '@vandeurenglenn/lite';
2
+ import { customElement, LiteElement, query, css, html } from '@vandeurenglenn/lite';
3
3
  import './demo-icons.js';
4
4
  import './section.js';
5
5
  import './card.js';
@@ -35,6 +35,7 @@ import './notification.js';
35
35
  import './notifications.js';
36
36
  import './code.js';
37
37
  import './elevation.js';
38
+ import './button.css.js';
38
39
  import '@vandeurenglenn/flex-elements/it.js';
39
40
  import './selector-mixin.js';
40
41
  import './select-mixin.js';
package/exports/demo.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
- import { customElement, query, css, html, LiteElement } from '@vandeurenglenn/lite';
2
+ import { customElement, LiteElement, query, css, html } from '@vandeurenglenn/lite';
3
3
 
4
4
  let DemoShell = (() => {
5
5
  let _classDecorators = [customElement('demo-shell')];
package/exports/dialog.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
- import { customElement, property, css, html, LiteElement } from '@vandeurenglenn/lite';
2
+ import { customElement, LiteElement, property, css, html } from '@vandeurenglenn/lite';
3
3
  import './elevation.js';
4
4
  import './icon.js';
5
5
  import '@vandeurenglenn/little-pubsub';
@@ -1,7 +1,8 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
- import { customElement, html, LiteElement } from '@vandeurenglenn/lite';
2
+ import { customElement, LiteElement, html } from '@vandeurenglenn/lite';
3
3
  import './button.js';
4
4
  import './elevation.js';
5
+ import './button.css.js';
5
6
 
6
7
  let CustomDivider = (() => {
7
8
  let _classDecorators = [customElement('custom-divider')];
@@ -1,8 +1,9 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
- import { customElement, property, css, html, LiteElement } from '@vandeurenglenn/lite';
2
+ import { customElement, LiteElement, property, css, html } from '@vandeurenglenn/lite';
3
3
  import './icon-button.js';
4
4
  import './button.js';
5
5
  import './elevation.js';
6
+ import './button.css.js';
6
7
  import './icon.js';
7
8
  import '@vandeurenglenn/little-pubsub';
8
9
 
@@ -1,5 +1,5 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
- import { customElement, css, html, LiteElement } from '@vandeurenglenn/lite';
2
+ import { customElement, LiteElement, css, html } from '@vandeurenglenn/lite';
3
3
 
4
4
  let CustomDrawerItem = (() => {
5
5
  let _classDecorators = [customElement('custom-drawer-item')];
@@ -1,5 +1,5 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
- import { customElement, property, html, LiteElement } from '@vandeurenglenn/lite';
2
+ import { customElement, LiteElement, property, html } from '@vandeurenglenn/lite';
3
3
  import './drawer.js';
4
4
  import './drawer-button.js';
5
5
  import './drawer-item.js';
@@ -7,6 +7,7 @@ import './top-app-bar.js';
7
7
  import '@vandeurenglenn/flex-elements/column.js';
8
8
  import './elevation.js';
9
9
  import './button.js';
10
+ import './button.css.js';
10
11
  import './pane.js';
11
12
  import './icon-button.js';
12
13
  import './icon.js';
package/exports/drawer.js CHANGED
@@ -1,9 +1,10 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
- import { customElement, property, html, LiteElement } from '@vandeurenglenn/lite';
2
+ import { customElement, LiteElement, property, html } from '@vandeurenglenn/lite';
3
3
  import './elevation.js';
4
4
  import './button.js';
5
5
  import './pane.js';
6
6
  import style from '@vandeurenglenn/custom-shared-styles/drawer.css';
7
+ import './button.css.js';
7
8
  import './icon-button.js';
8
9
  import './icon.js';
9
10
  import '@vandeurenglenn/little-pubsub';
@@ -1,5 +1,5 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
- import { customElement, property, query, css, html, LiteElement } from '@vandeurenglenn/lite';
2
+ import { customElement, LiteElement, property, query, css, html } from '@vandeurenglenn/lite';
3
3
  import './dropdown.js';
4
4
  import './menu.js';
5
5
  import './icon.js';
@@ -1,5 +1,5 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
- import { customElement, property, css, html, LiteElement } from '@vandeurenglenn/lite';
2
+ import { customElement, LiteElement, property, css, html } from '@vandeurenglenn/lite';
3
3
 
4
4
  let CustomDropdown = (() => {
5
5
  let _classDecorators = [customElement('custom-dropdown')];
@@ -32,6 +32,7 @@ export { CustomNotifications } from './notifications.js';
32
32
  import './tslib.es6-Cg9lAhfj.js';
33
33
  import '@vandeurenglenn/lite';
34
34
  import './elevation.js';
35
+ import './button.css.js';
35
36
  import '@vandeurenglenn/flex-elements/it.js';
36
37
  import './selector-mixin.js';
37
38
  import './select-mixin.js';
@@ -1,5 +1,5 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
- import { customElement, property, html, LiteElement } from '@vandeurenglenn/lite';
2
+ import { customElement, LiteElement, property, html } from '@vandeurenglenn/lite';
3
3
 
4
4
  /**
5
5
  * @license
package/exports/fab.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { _ as __esDecorate, a as __runInitializers } from './tslib.es6-Cg9lAhfj.js';
2
- import { customElement, property, css, html, LiteElement } from '@vandeurenglenn/lite';
2
+ import { customElement, LiteElement, property, css, html } from '@vandeurenglenn/lite';
3
3
  import './elevation.js';
4
4
 
5
5
  let CustomButton = (() => {
@@ -2,10 +2,9 @@ import { LiteElement } from '@vandeurenglenn/lite';
2
2
  export declare class CustomIcon extends LiteElement {
3
3
  accessor host: any;
4
4
  accessor icon: any;
5
- accessor setName: any;
5
+ accessor setName: string;
6
6
  accessor _icon: any;
7
7
  onChange(propertyKey: any, value: any): void;
8
8
  static styles: import("lit").CSSResult[];
9
- connectedCallback(): void;
10
9
  render(): import("lit-html").TemplateResult<1>;
11
10
  }