@francofantomius/material-components 0.1.0 → 1.0.0

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 (166) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/README.md +277 -83
  3. package/custom-elements.json +21010 -2354
  4. package/dist/chunks/badge-G4EjcMoy.js +89 -0
  5. package/dist/chunks/badge-G4EjcMoy.js.map +1 -0
  6. package/dist/chunks/button-B4TSZ7Sl.js +250 -0
  7. package/dist/chunks/button-B4TSZ7Sl.js.map +1 -0
  8. package/dist/chunks/card-DVffdPpv.js +163 -0
  9. package/dist/chunks/card-DVffdPpv.js.map +1 -0
  10. package/dist/chunks/checkbox-BqlboAHd.js +194 -0
  11. package/dist/chunks/checkbox-BqlboAHd.js.map +1 -0
  12. package/dist/chunks/chip-CI1ZINnr.js +169 -0
  13. package/dist/chunks/chip-CI1ZINnr.js.map +1 -0
  14. package/dist/chunks/code-C5UFBkCh.js +1830 -0
  15. package/dist/chunks/code-C5UFBkCh.js.map +1 -0
  16. package/dist/chunks/decorate-DXuynaiA.js +39 -0
  17. package/dist/chunks/decorate-DXuynaiA.js.map +1 -0
  18. package/dist/chunks/dialog-DGVEE5m_.js +158 -0
  19. package/dist/chunks/dialog-DGVEE5m_.js.map +1 -0
  20. package/dist/chunks/divider-DNepwoZv.js +82 -0
  21. package/dist/chunks/divider-DNepwoZv.js.map +1 -0
  22. package/dist/chunks/fab-C9j3WBHE.js +150 -0
  23. package/dist/chunks/fab-C9j3WBHE.js.map +1 -0
  24. package/dist/chunks/focus-ring-CuiJuM-y.js +71 -0
  25. package/dist/chunks/focus-ring-CuiJuM-y.js.map +1 -0
  26. package/dist/chunks/{form-associated-fKbeX_2P.js → form-associated-Cty_ZaS9.js} +26 -27
  27. package/dist/chunks/form-associated-Cty_ZaS9.js.map +1 -0
  28. package/dist/chunks/icon-DrNqcNEL.js +62 -0
  29. package/dist/chunks/icon-DrNqcNEL.js.map +1 -0
  30. package/dist/chunks/icon-button-BdSc7eot.js +188 -0
  31. package/dist/chunks/icon-button-BdSc7eot.js.map +1 -0
  32. package/dist/chunks/list-D8olR7oZ.js +204 -0
  33. package/dist/chunks/list-D8olR7oZ.js.map +1 -0
  34. package/dist/chunks/navigation-drawer-CKl44Ef5.js +531 -0
  35. package/dist/chunks/navigation-drawer-CKl44Ef5.js.map +1 -0
  36. package/dist/chunks/player-C4ydiIpr.js +1582 -0
  37. package/dist/chunks/player-C4ydiIpr.js.map +1 -0
  38. package/dist/chunks/progress-LQmLMDjX.js +266 -0
  39. package/dist/chunks/progress-LQmLMDjX.js.map +1 -0
  40. package/dist/chunks/radio-Bily78NT.js +205 -0
  41. package/dist/chunks/radio-Bily78NT.js.map +1 -0
  42. package/dist/chunks/ripple-squbKHhj.js +135 -0
  43. package/dist/chunks/ripple-squbKHhj.js.map +1 -0
  44. package/dist/chunks/search-bar-TXnqJ-gd.js +698 -0
  45. package/dist/chunks/search-bar-TXnqJ-gd.js.map +1 -0
  46. package/dist/chunks/snackbar-Wsz3BzEY.js +161 -0
  47. package/dist/chunks/snackbar-Wsz3BzEY.js.map +1 -0
  48. package/dist/chunks/switch-DdukrvXb.js +190 -0
  49. package/dist/chunks/switch-DdukrvXb.js.map +1 -0
  50. package/dist/chunks/table-aRTYzDyE.js +773 -0
  51. package/dist/chunks/table-aRTYzDyE.js.map +1 -0
  52. package/dist/chunks/tabs-BfOtoeir.js +191 -0
  53. package/dist/chunks/tabs-BfOtoeir.js.map +1 -0
  54. package/dist/chunks/text-field-hN6-2HQy.js +338 -0
  55. package/dist/chunks/text-field-hN6-2HQy.js.map +1 -0
  56. package/dist/chunks/top-app-bar-Dgbp6CFv.js +228 -0
  57. package/dist/chunks/top-app-bar-Dgbp6CFv.js.map +1 -0
  58. package/dist/components/account-menu/account-menu.css.d.ts +3 -0
  59. package/dist/components/account-menu/account-menu.css.d.ts.map +1 -0
  60. package/dist/components/account-menu/account-menu.d.ts +111 -0
  61. package/dist/components/account-menu/account-menu.d.ts.map +1 -0
  62. package/dist/components/app-drawer/app-drawer.css.d.ts +3 -0
  63. package/dist/components/app-drawer/app-drawer.css.d.ts.map +1 -0
  64. package/dist/components/app-drawer/app-drawer.d.ts +173 -0
  65. package/dist/components/app-drawer/app-drawer.d.ts.map +1 -0
  66. package/dist/components/badge/badge.js +2 -91
  67. package/dist/components/button/button.js +2 -261
  68. package/dist/components/card/card.js +2 -167
  69. package/dist/components/checkbox/checkbox.css.d.ts.map +1 -1
  70. package/dist/components/checkbox/checkbox.js +2 -186
  71. package/dist/components/chip/chip.js +3 -172
  72. package/dist/components/code/code.css.d.ts +2 -0
  73. package/dist/components/code/code.css.d.ts.map +1 -0
  74. package/dist/components/code/code.d.ts +106 -0
  75. package/dist/components/code/code.d.ts.map +1 -0
  76. package/dist/components/code/code.js +5 -0
  77. package/dist/components/code/highlighter.d.ts +8 -0
  78. package/dist/components/code/highlighter.d.ts.map +1 -0
  79. package/dist/components/code/linter.d.ts +44 -0
  80. package/dist/components/code/linter.d.ts.map +1 -0
  81. package/dist/components/dialog/dialog.js +2 -165
  82. package/dist/components/divider/divider.js +2 -79
  83. package/dist/components/fab/fab.js +2 -153
  84. package/dist/components/icon/icon.js +2 -68
  85. package/dist/components/icon-button/icon-button.css.d.ts.map +1 -1
  86. package/dist/components/icon-button/icon-button.js +1 -189
  87. package/dist/components/list/list.css.d.ts.map +1 -1
  88. package/dist/components/list/list.d.ts.map +1 -1
  89. package/dist/components/list/list.js +3 -188
  90. package/dist/components/navigation-drawer/navigation-drawer.css.d.ts +3 -0
  91. package/dist/components/navigation-drawer/navigation-drawer.css.d.ts.map +1 -0
  92. package/dist/components/navigation-drawer/navigation-drawer.d.ts +76 -0
  93. package/dist/components/navigation-drawer/navigation-drawer.d.ts.map +1 -0
  94. package/dist/components/navigation-drawer/navigation-drawer.js +8 -0
  95. package/dist/components/player/player.css.d.ts +2 -0
  96. package/dist/components/player/player.css.d.ts.map +1 -0
  97. package/dist/components/player/player.d.ts +99 -0
  98. package/dist/components/player/player.d.ts.map +1 -0
  99. package/dist/components/player/player.js +7 -0
  100. package/dist/components/progress/progress.css.d.ts.map +1 -1
  101. package/dist/components/progress/progress.d.ts +2 -0
  102. package/dist/components/progress/progress.d.ts.map +1 -1
  103. package/dist/components/progress/progress.js +3 -181
  104. package/dist/components/radio/radio.css.d.ts.map +1 -1
  105. package/dist/components/radio/radio.js +3 -203
  106. package/dist/components/search-bar/search-bar.css.d.ts +2 -0
  107. package/dist/components/search-bar/search-bar.css.d.ts.map +1 -0
  108. package/dist/components/search-bar/search-bar.d.ts +81 -0
  109. package/dist/components/search-bar/search-bar.d.ts.map +1 -0
  110. package/dist/components/search-bar/search-bar.js +5 -0
  111. package/dist/components/snackbar/snackbar.js +2 -162
  112. package/dist/components/switch/switch.css.d.ts.map +1 -1
  113. package/dist/components/switch/switch.js +2 -169
  114. package/dist/components/table/table.css.d.ts +8 -0
  115. package/dist/components/table/table.css.d.ts.map +1 -0
  116. package/dist/components/table/table.d.ts +158 -0
  117. package/dist/components/table/table.d.ts.map +1 -0
  118. package/dist/components/table/table.js +13 -0
  119. package/dist/components/tabs/tabs.js +3 -198
  120. package/dist/components/text-field/text-field.css.d.ts.map +1 -1
  121. package/dist/components/text-field/text-field.d.ts +1 -1
  122. package/dist/components/text-field/text-field.d.ts.map +1 -1
  123. package/dist/components/text-field/text-field.js +2 -325
  124. package/dist/components/top-app-bar/top-app-bar.css.d.ts +2 -0
  125. package/dist/components/top-app-bar/top-app-bar.css.d.ts.map +1 -0
  126. package/dist/components/top-app-bar/top-app-bar.d.ts +29 -0
  127. package/dist/components/top-app-bar/top-app-bar.d.ts.map +1 -0
  128. package/dist/components/top-app-bar/top-app-bar.js +5 -0
  129. package/dist/index.d.ts +8 -0
  130. package/dist/index.d.ts.map +1 -1
  131. package/dist/index.js +2264 -58
  132. package/dist/index.js.map +1 -1
  133. package/dist/internal/focus-ring/focus-ring.d.ts.map +1 -1
  134. package/dist/internal/focus-ring/focus-ring.js +4 -0
  135. package/dist/internal/ripple/ripple.css.d.ts.map +1 -1
  136. package/dist/internal/ripple/ripple.d.ts +0 -3
  137. package/dist/internal/ripple/ripple.d.ts.map +1 -1
  138. package/dist/internal/ripple/ripple.js +2 -142
  139. package/dist/tokens/index.js +336 -11
  140. package/dist/tokens/index.js.map +1 -1
  141. package/package.json +118 -12
  142. package/dist/chunks/base-component-DQTjlEVL.js +0 -34
  143. package/dist/chunks/base-component-DQTjlEVL.js.map +0 -1
  144. package/dist/chunks/focus-ring-Dl-XoEKK.js +0 -71
  145. package/dist/chunks/focus-ring-Dl-XoEKK.js.map +0 -1
  146. package/dist/chunks/form-associated-fKbeX_2P.js.map +0 -1
  147. package/dist/chunks/theme.css-DV3DRha-.js +0 -263
  148. package/dist/chunks/theme.css-DV3DRha-.js.map +0 -1
  149. package/dist/components/badge/badge.js.map +0 -1
  150. package/dist/components/button/button.js.map +0 -1
  151. package/dist/components/card/card.js.map +0 -1
  152. package/dist/components/checkbox/checkbox.js.map +0 -1
  153. package/dist/components/chip/chip.js.map +0 -1
  154. package/dist/components/dialog/dialog.js.map +0 -1
  155. package/dist/components/divider/divider.js.map +0 -1
  156. package/dist/components/fab/fab.js.map +0 -1
  157. package/dist/components/icon/icon.js.map +0 -1
  158. package/dist/components/icon-button/icon-button.js.map +0 -1
  159. package/dist/components/list/list.js.map +0 -1
  160. package/dist/components/progress/progress.js.map +0 -1
  161. package/dist/components/radio/radio.js.map +0 -1
  162. package/dist/components/snackbar/snackbar.js.map +0 -1
  163. package/dist/components/switch/switch.js.map +0 -1
  164. package/dist/components/tabs/tabs.js.map +0 -1
  165. package/dist/components/text-field/text-field.js.map +0 -1
  166. package/dist/internal/ripple/ripple.js.map +0 -1
@@ -1,327 +1,4 @@
1
- import { css as u, nothing as a, html as o } from "lit";
2
- import { property as i, state as f, query as g, queryAssignedElements as m, customElement as x } from "lit/decorators.js";
3
- import { M as c } from "../../chunks/form-associated-fKbeX_2P.js";
4
- import "../../internal/ripple/ripple.js";
5
- import "../icon/icon.js";
6
- const v = u`
7
- :host {
8
- display: inline-flex;
9
- flex-direction: column;
10
- min-width: 240px;
11
- vertical-align: top;
12
- font-family: var(--md-sys-typescale-font-family, inherit);
13
- -webkit-tap-highlight-color: transparent;
14
- }
15
-
16
- :host([disabled]) {
17
- pointer-events: none;
18
- opacity: 0.38;
19
- }
20
-
21
- .container {
22
- position: relative;
23
- display: flex;
24
- align-items: center;
25
- min-height: 56px;
26
- padding: 0 16px;
27
- box-sizing: border-box;
28
- transition: background-color 150ms cubic-bezier(0.2, 0, 0, 1),
29
- border-color 150ms cubic-bezier(0.2, 0, 0, 1);
30
- }
31
-
32
- /* --- Filled Variant (Default) --- */
33
- :host(:not([variant])) .container,
34
- :host([variant="filled"]) .container {
35
- background-color: var(--md-sys-color-surface-container-highest, #E6E0E9);
36
- border-radius: var(--md-sys-shape-corner-extra-small, 4px) var(--md-sys-shape-corner-extra-small, 4px) 0 0;
37
- border-bottom: 1px solid var(--md-sys-color-on-surface-variant, #49454F);
38
- }
39
-
40
- :host(:not([variant])[focused]) .container,
41
- :host([variant="filled"][focused]) .container {
42
- border-bottom: 2px solid var(--md-sys-color-primary, #6750A4);
43
- }
44
-
45
- :host(:not([variant])[error]) .container,
46
- :host([variant="filled"][error]) .container {
47
- border-bottom-color: var(--md-sys-color-error, #B3261E);
48
- }
49
-
50
- /* --- Outlined Variant --- */
51
- :host([variant="outlined"]) .container {
52
- background-color: transparent;
53
- border: 1px solid var(--md-sys-color-outline, #79747E);
54
- border-radius: var(--md-sys-shape-corner-extra-small, 4px);
55
- }
56
-
57
- :host([variant="outlined"][focused]) .container {
58
- border: 2px solid var(--md-sys-color-primary, #6750A4);
59
- padding: 0 15px; /* Offset for 2px border */
60
- }
61
-
62
- :host([variant="outlined"][error]) .container {
63
- border-color: var(--md-sys-color-error, #B3261E);
64
- }
65
-
66
- /* Floating Label */
67
- .label {
68
- position: absolute;
69
- left: 16px;
70
- top: 50%;
71
- transform: translateY(-50%);
72
- font-size: 16px;
73
- color: var(--md-sys-color-on-surface-variant, #49454F);
74
- pointer-events: none;
75
- transition: transform 150ms cubic-bezier(0.2, 0, 0, 1),
76
- font-size 150ms cubic-bezier(0.2, 0, 0, 1),
77
- color 150ms cubic-bezier(0.2, 0, 0, 1);
78
- transform-origin: top left;
79
- }
80
-
81
- :host([has-leading-icon]) .label {
82
- left: 48px;
83
- }
84
-
85
- :host([focused]) .label,
86
- :host([has-value]) .label,
87
- :host([has-placeholder]) .label {
88
- transform: translateY(-110%) scale(0.75);
89
- }
90
-
91
- :host([variant="filled"][focused]) .label,
92
- :host([variant="filled"][has-value]) .label,
93
- :host([variant="filled"][has-placeholder]) .label {
94
- top: 35%;
95
- }
96
-
97
- :host([variant="outlined"][focused]) .label,
98
- :host([variant="outlined"][has-value]) .label,
99
- :host([variant="outlined"][has-placeholder]) .label {
100
- top: 0;
101
- left: 12px;
102
- background-color: var(--md-sys-color-surface, #FEF7FF);
103
- padding: 0 4px;
104
- }
105
-
106
- :host([focused]) .label {
107
- color: var(--md-sys-color-primary, #6750A4);
108
- }
109
-
110
- :host([error]) .label {
111
- color: var(--md-sys-color-error, #B3261E);
112
- }
113
-
114
- .input-wrapper {
115
- display: flex;
116
- align-items: center;
117
- flex: 1;
118
- height: 100%;
119
- min-width: 0;
120
- }
121
-
122
- :host(:not([variant])) .input-wrapper,
123
- :host([variant="filled"]) .input-wrapper {
124
- padding-top: 18px;
125
- }
126
-
127
- input {
128
- flex: 1;
129
- width: 100%;
130
- border: none;
131
- outline: none;
132
- background: transparent;
133
- font-family: inherit;
134
- font-size: 16px;
135
- line-height: 24px;
136
- color: var(--md-sys-color-on-surface, #1D1B20);
137
- padding: 0;
138
- }
139
-
140
- input::placeholder {
141
- color: var(--md-sys-color-on-surface-variant, #49454F);
142
- opacity: 0.6;
143
- }
144
-
145
- .affix {
146
- font-size: 16px;
147
- color: var(--md-sys-color-on-surface-variant, #49454F);
148
- user-select: none;
149
- }
150
-
151
- .prefix { margin-right: 4px; }
152
- .suffix { margin-left: 4px; }
153
-
154
- .icon-slot {
155
- display: inline-flex;
156
- align-items: center;
157
- justify-content: center;
158
- color: var(--md-sys-color-on-surface-variant, #49454F);
159
- }
160
-
161
- .leading-icon { margin-right: 12px; }
162
- .trailing-icon { margin-left: 12px; }
163
-
164
- :host([error]) .trailing-icon {
165
- color: var(--md-sys-color-error, #B3261E);
166
- }
167
-
168
- /* Supporting / Error text */
169
- .supporting-text {
170
- display: flex;
171
- justify-content: space-between;
172
- padding: 4px 16px 0;
173
- font-size: 12px;
174
- line-height: 16px;
175
- color: var(--md-sys-color-on-surface-variant, #49454F);
176
- }
177
-
178
- :host([error]) .supporting-text {
179
- color: var(--md-sys-color-error, #B3261E);
180
- }
181
- `;
182
- var y = Object.defineProperty, b = Object.getOwnPropertyDescriptor, e = (r, n, p, l) => {
183
- for (var s = l > 1 ? void 0 : l ? b(n, p) : n, h = r.length - 1, d; h >= 0; h--)
184
- (d = r[h]) && (s = (l ? d(n, p, s) : d(s)) || s);
185
- return l && s && y(n, p, s), s;
186
- };
187
- let t = class extends c {
188
- constructor() {
189
- super(...arguments), this.variant = "filled", this.label = "", this.value = "", this.placeholder = "", this.type = "text", this.readonly = !1, this.error = !1, this.errorText = "", this.supportingText = "", this.prefixText = "", this.suffixText = "", this.maxLength = -1, this.pattern = "", this.leadingIcon = "", this.trailingIcon = "", this.focused = !1, this.handleFocus = () => {
190
- this.focused = !0, this.toggleAttribute("focused", !0);
191
- }, this.handleBlur = () => {
192
- this.focused = !1, this.toggleAttribute("focused", !1), this.validateInput();
193
- }, this.handleInput = (r) => {
194
- const n = r.target;
195
- this.value = n.value, this.setFormValue(this.value), this.emitEvent("input", { value: this.value });
196
- }, this.handleChange = () => {
197
- this.emitEvent("change", { value: this.value });
198
- };
199
- }
200
- connectedCallback() {
201
- super.connectedCallback(), this.setFormValue(this.value);
202
- }
203
- willUpdate(r) {
204
- super.willUpdate(r), r.has("value") && (this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.validateInput());
205
- }
206
- updated(r) {
207
- super.updated(r), r.has("placeholder") && this.toggleAttribute("has-placeholder", !!this.placeholder);
208
- }
209
- formResetCallback() {
210
- this.value = "", this.error = !1, this.setFormValue(null);
211
- }
212
- validateInput() {
213
- this.inputElement && (this.required && !this.value ? (this.setValidity({ valueMissing: !0 }, this.errorText || "This field is required"), this.error = !0) : this.pattern && !new RegExp(this.pattern).test(this.value) ? (this.setValidity({ patternMismatch: !0 }, this.errorText || "Invalid format"), this.error = !0) : (this.setValidity({}), this.errorText || (this.error = !1)));
214
- }
215
- handleSlotChange() {
216
- const r = !!(this.leadingIcon || this.assignedLeadingIcons && this.assignedLeadingIcons.length > 0);
217
- this.toggleAttribute("has-leading-icon", r);
218
- }
219
- render() {
220
- const r = this.error ? this.errorText || this.supportingText : this.supportingText;
221
- return o`
222
- <div class="container" @click=${() => this.inputElement?.focus()}>
223
- ${this.variant === "filled" ? o`<md-ripple ?disabled=${this.disabled}></md-ripple>` : a}
224
-
225
- <span class="icon-slot leading-icon">
226
- <slot name="leading-icon" @slotchange=${this.handleSlotChange}>
227
- ${this.leadingIcon ? o`<md-icon name=${this.leadingIcon}></md-icon>` : a}
228
- </slot>
229
- </span>
230
-
231
- <div class="input-wrapper">
232
- ${this.label ? o`<label class="label">${this.label}</label>` : a}
233
- ${this.prefixText ? o`<span class="affix prefix">${this.prefixText}</span>` : a}
234
- <input
235
- type=${this.type}
236
- .value=${this.value}
237
- placeholder=${this.focused || !this.label ? this.placeholder : ""}
238
- ?disabled=${this.disabled}
239
- ?readonly=${this.readonly}
240
- ?required=${this.required}
241
- maxlength=${this.maxLength > 0 ? this.maxLength : a}
242
- @focus=${this.handleFocus}
243
- @blur=${this.handleBlur}
244
- @input=${this.handleInput}
245
- @change=${this.handleChange}
246
- />
247
- ${this.suffixText ? o`<span class="affix suffix">${this.suffixText}</span>` : a}
248
- </div>
249
-
250
- <span class="icon-slot trailing-icon">
251
- <slot name="trailing-icon">
252
- ${this.error ? o`<md-icon name="error" filled></md-icon>` : this.trailingIcon ? o`<md-icon name=${this.trailingIcon}></md-icon>` : a}
253
- </slot>
254
- </span>
255
- </div>
256
-
257
- ${r || this.maxLength > 0 ? o`
258
- <div class="supporting-text">
259
- <span>${r}</span>
260
- ${this.maxLength > 0 ? o`<span>${this.value.length} / ${this.maxLength}</span>` : a}
261
- </div>
262
- ` : a}
263
- `;
264
- }
265
- };
266
- t.styles = [c.styles, v];
267
- e([
268
- i({ type: String, reflect: !0 })
269
- ], t.prototype, "variant", 2);
270
- e([
271
- i({ type: String })
272
- ], t.prototype, "label", 2);
273
- e([
274
- i({ type: String })
275
- ], t.prototype, "value", 2);
276
- e([
277
- i({ type: String })
278
- ], t.prototype, "placeholder", 2);
279
- e([
280
- i({ type: String })
281
- ], t.prototype, "type", 2);
282
- e([
283
- i({ type: Boolean, reflect: !0 })
284
- ], t.prototype, "readonly", 2);
285
- e([
286
- i({ type: Boolean, reflect: !0 })
287
- ], t.prototype, "error", 2);
288
- e([
289
- i({ type: String, attribute: "error-text" })
290
- ], t.prototype, "errorText", 2);
291
- e([
292
- i({ type: String, attribute: "supporting-text" })
293
- ], t.prototype, "supportingText", 2);
294
- e([
295
- i({ type: String, attribute: "prefix-text" })
296
- ], t.prototype, "prefixText", 2);
297
- e([
298
- i({ type: String, attribute: "suffix-text" })
299
- ], t.prototype, "suffixText", 2);
300
- e([
301
- i({ type: Number, attribute: "maxlength" })
302
- ], t.prototype, "maxLength", 2);
303
- e([
304
- i({ type: String })
305
- ], t.prototype, "pattern", 2);
306
- e([
307
- i({ type: String, attribute: "leading-icon" })
308
- ], t.prototype, "leadingIcon", 2);
309
- e([
310
- i({ type: String, attribute: "trailing-icon" })
311
- ], t.prototype, "trailingIcon", 2);
312
- e([
313
- f()
314
- ], t.prototype, "focused", 2);
315
- e([
316
- g("input")
317
- ], t.prototype, "inputElement", 2);
318
- e([
319
- m({ slot: "leading-icon" })
320
- ], t.prototype, "assignedLeadingIcons", 2);
321
- t = e([
322
- x("md-text-field")
323
- ], t);
1
+ import { t as e } from "../../chunks/text-field-hN6-2HQy.js";
324
2
  export {
325
- t as MdTextField
3
+ e as MdTextField
326
4
  };
327
- //# sourceMappingURL=text-field.js.map
@@ -0,0 +1,2 @@
1
+ export declare const topAppBarStyles: import('lit').CSSResult;
2
+ //# sourceMappingURL=top-app-bar.css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"top-app-bar.css.d.ts","sourceRoot":"","sources":["../../../src/components/top-app-bar/top-app-bar.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,yBAuI3B,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { MdBaseElement } from '../../internal/base-component.js';
2
+ export type TopAppBarVariant = 'center-aligned' | 'small' | 'medium' | 'large';
3
+ /**
4
+ * Material Design 3 Top App Bar component.
5
+ *
6
+ * @slot navigation - Leading navigation icon button (e.g. menu, back arrow). Also aliased as `leading-icon` or `leading`.
7
+ * @slot headline - Primary title text. Also aliased as `title`.
8
+ * @slot subtitle - Secondary subtitle text. Also aliased as `supporting-text`.
9
+ * @slot actions - Trailing action icon buttons or menus. Also aliased as `trailing-icon` or `trailing`.
10
+ * @slot - Default slot for additional bar contents.
11
+ */
12
+ export declare class MdTopAppBar extends MdBaseElement {
13
+ static styles: import('lit').CSSResultGroup[];
14
+ variant: TopAppBarVariant;
15
+ headline: string;
16
+ subtitle: string;
17
+ elevated: boolean;
18
+ fixed: boolean;
19
+ render(): import('lit-html').TemplateResult<1>;
20
+ }
21
+ export declare class MdTopBar extends MdTopAppBar {
22
+ }
23
+ declare global {
24
+ interface HTMLElementTagNameMap {
25
+ 'md-top-app-bar': MdTopAppBar;
26
+ 'md-top-bar': MdTopAppBar;
27
+ }
28
+ }
29
+ //# sourceMappingURL=top-app-bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"top-app-bar.d.ts","sourceRoot":"","sources":["../../../src/components/top-app-bar/top-app-bar.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAGjE,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE/E;;;;;;;;GAQG;AACH,qBACa,WAAY,SAAQ,aAAa;IAC5C,OAAgB,MAAM,iCAA2C;IAGjE,OAAO,EAAE,gBAAgB,CAAoB;IAG7C,QAAQ,SAAM;IAGd,QAAQ,SAAM;IAGd,QAAQ,UAAS;IAGjB,KAAK,UAAS;IAEL,MAAM;CAuEhB;AAGD,qBACa,QAAS,SAAQ,WAAW;CAAG;AAG5C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,WAAW,CAAC;QAC9B,YAAY,EAAE,WAAW,CAAC;KAC3B;CACF"}
@@ -0,0 +1,5 @@
1
+ import { n as o, t as r } from "../../chunks/top-app-bar-Dgbp6CFv.js";
2
+ export {
3
+ r as MdTopAppBar,
4
+ o as MdTopBar
5
+ };
package/dist/index.d.ts CHANGED
@@ -20,4 +20,12 @@ export * from './components/chip/chip.js';
20
20
  export * from './components/tabs/tabs.js';
21
21
  export * from './components/list/list.js';
22
22
  export * from './components/snackbar/snackbar.js';
23
+ export * from './components/top-app-bar/top-app-bar.js';
24
+ export * from './components/navigation-drawer/navigation-drawer.js';
25
+ export * from './components/table/table.js';
26
+ export * from './components/search-bar/search-bar.js';
27
+ export * from './components/code/code.js';
28
+ export * from './components/player/player.js';
29
+ export * from './components/app-drawer/app-drawer.js';
30
+ export * from './components/account-menu/account-menu.js';
23
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,mBAAmB,CAAC;AAGlC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AAGpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AACxD,cAAc,yBAAyB,CAAC;AACxC,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,mBAAmB,CAAC;AAGlC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AAGpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AACxD,cAAc,yBAAyB,CAAC;AACxC,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qDAAqD,CAAC;AACpE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uCAAuC,CAAC;AACtD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uCAAuC,CAAC;AACtD,cAAc,2CAA2C,CAAC"}