@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,167 +1,4 @@
1
- import { css as m, nothing as p, html as c } from "lit";
2
- import { property as n, query as f, customElement as g } from "lit/decorators.js";
3
- import { M as h } from "../../chunks/base-component-DQTjlEVL.js";
4
- import "../icon/icon.js";
5
- const u = m`
6
- :host {
7
- display: contents;
8
- }
9
-
10
- dialog {
11
- box-sizing: border-box;
12
- min-width: 280px;
13
- max-width: 560px;
14
- padding: 24px;
15
- border: none;
16
- border-radius: var(--md-sys-shape-corner-extra-large, 28px);
17
- background-color: var(--md-sys-color-surface-container-high, #ECE6F0);
18
- color: var(--md-sys-color-on-surface, #1D1B20);
19
- box-shadow: var(--md-sys-elevation-level3, 0px 1px 3px 0px rgba(0,0,0,0.30));
20
- font-family: var(--md-sys-typescale-font-family, inherit);
21
- position: fixed;
22
- inset: 0;
23
- margin: auto;
24
- overflow: auto;
25
- z-index: 1000;
26
- }
27
-
28
- dialog::backdrop {
29
- background-color: rgba(0, 0, 0, 0.32);
30
- backdrop-filter: blur(2px);
31
- animation: md-fade-in 150ms ease-out forwards;
32
- }
33
-
34
- dialog[open] {
35
- animation: md-dialog-in 150ms cubic-bezier(0.2, 0, 0, 1) forwards;
36
- }
37
-
38
- @keyframes md-fade-in {
39
- from { opacity: 0; }
40
- to { opacity: 1; }
41
- }
42
-
43
- @keyframes md-dialog-in {
44
- from {
45
- opacity: 0;
46
- transform: scale(0.92);
47
- }
48
- to {
49
- opacity: 1;
50
- transform: scale(1);
51
- }
52
- }
53
-
54
- .dialog-container {
55
- display: flex;
56
- flex-direction: column;
57
- gap: 16px;
58
- }
59
-
60
- .icon {
61
- display: flex;
62
- justify-content: center;
63
- color: var(--md-sys-color-secondary, #625B71);
64
- }
65
-
66
- .headline {
67
- font-size: var(--md-sys-typescale-headline-small-size, 24px);
68
- line-height: 32px;
69
- font-weight: 400;
70
- color: var(--md-sys-color-on-surface, #1D1B20);
71
- margin: 0;
72
- }
73
-
74
- .content {
75
- font-size: var(--md-sys-typescale-body-medium-size, 14px);
76
- line-height: 20px;
77
- color: var(--md-sys-color-on-surface-variant, #49454F);
78
- }
79
-
80
- .actions {
81
- display: flex;
82
- align-items: center;
83
- justify-content: flex-end;
84
- gap: 8px;
85
- padding-top: 8px;
86
- }
87
- `;
88
- var y = Object.defineProperty, x = Object.getOwnPropertyDescriptor, s = (e, o, a, l) => {
89
- for (var i = l > 1 ? void 0 : l ? x(o, a) : o, r = e.length - 1, d; r >= 0; r--)
90
- (d = e[r]) && (i = (l ? d(o, a, i) : d(i)) || i);
91
- return l && i && y(o, a, i), i;
92
- };
93
- let t = class extends h {
94
- constructor() {
95
- super(...arguments), this.open = !1, this.headline = "", this.icon = "", this.returnValue = "", this.handleCancel = (e) => {
96
- e.preventDefault(), this.close("cancel");
97
- }, this.handleBackdropClick = (e) => {
98
- if (e.target === this.dialogElement) {
99
- const o = this.dialogElement.getBoundingClientRect();
100
- o.top <= e.clientY && e.clientY <= o.top + o.height && o.left <= e.clientX && e.clientX <= o.left + o.width || this.close("backdrop");
101
- }
102
- };
103
- }
104
- updated(e) {
105
- super.updated(e), e.has("open") && (this.open ? this.dialogElement && !this.dialogElement.open && this.dialogElement.showModal() : this.dialogElement && this.dialogElement.open && this.dialogElement.close());
106
- }
107
- showModal() {
108
- this.open = !0;
109
- }
110
- show() {
111
- this.open = !0;
112
- }
113
- close(e) {
114
- e !== void 0 && (this.returnValue = e), this.open = !1, this.emitEvent("close", { returnValue: this.returnValue });
115
- }
116
- render() {
117
- return c`
118
- <dialog
119
- @cancel=${this.handleCancel}
120
- @click=${this.handleBackdropClick}
121
- >
122
- <div class="dialog-container">
123
- <div class="icon">
124
- <slot name="icon">
125
- ${this.icon ? c`<md-icon name=${this.icon} size="32"></md-icon>` : p}
126
- </slot>
127
- </div>
128
-
129
- <slot name="headline">
130
- ${this.headline ? c`<h2 class="headline">${this.headline}</h2>` : p}
131
- </slot>
132
-
133
- <div class="content">
134
- <slot></slot>
135
- </div>
136
-
137
- <div class="actions">
138
- <slot name="actions"></slot>
139
- </div>
140
- </div>
141
- </dialog>
142
- `;
143
- }
144
- };
145
- t.styles = [h.styles, u];
146
- s([
147
- n({ type: Boolean, reflect: !0 })
148
- ], t.prototype, "open", 2);
149
- s([
150
- n({ type: String })
151
- ], t.prototype, "headline", 2);
152
- s([
153
- n({ type: String })
154
- ], t.prototype, "icon", 2);
155
- s([
156
- n({ type: String, attribute: "return-value" })
157
- ], t.prototype, "returnValue", 2);
158
- s([
159
- f("dialog")
160
- ], t.prototype, "dialogElement", 2);
161
- t = s([
162
- g("md-dialog")
163
- ], t);
1
+ import { t as r } from "../../chunks/dialog-DGVEE5m_.js";
164
2
  export {
165
- t as MdDialog
3
+ r as MdDialog
166
4
  };
167
- //# sourceMappingURL=dialog.js.map
@@ -1,81 +1,4 @@
1
- import { css as h, html as d } from "lit";
2
- import { property as s, customElement as v } from "lit/decorators.js";
3
- import { M as p } from "../../chunks/base-component-DQTjlEVL.js";
4
- const m = h`
5
- :host {
6
- display: block;
7
- box-sizing: border-box;
8
- }
9
-
10
- :host(:not([vertical])) {
11
- width: 100%;
12
- height: 1px;
13
- background-color: var(--md-sys-color-outline-variant, #CAC4D0);
14
- }
15
-
16
- :host([vertical]) {
17
- display: inline-block;
18
- width: 1px;
19
- height: 100%;
20
- vertical-align: middle;
21
- background-color: var(--md-sys-color-outline-variant, #CAC4D0);
22
- }
23
-
24
- :host([inset]:not([vertical])) {
25
- margin-left: 16px;
26
- margin-right: 16px;
27
- width: calc(100% - 32px);
28
- }
29
-
30
- :host([inset-start]:not([vertical])) {
31
- margin-left: 16px;
32
- width: calc(100% - 16px);
33
- }
34
-
35
- :host([inset-end]:not([vertical])) {
36
- margin-right: 16px;
37
- width: calc(100% - 16px);
38
- }
39
-
40
- :host([inset][vertical]) {
41
- margin-top: 8px;
42
- margin-bottom: 8px;
43
- height: calc(100% - 16px);
44
- }
45
- `;
46
- var u = Object.defineProperty, f = Object.getOwnPropertyDescriptor, r = (c, i, a, o) => {
47
- for (var t = o > 1 ? void 0 : o ? f(i, a) : i, l = c.length - 1, n; l >= 0; l--)
48
- (n = c[l]) && (t = (o ? n(i, a, t) : n(t)) || t);
49
- return o && t && u(i, a, t), t;
50
- };
51
- let e = class extends p {
52
- constructor() {
53
- super(...arguments), this.vertical = !1, this.inset = !1, this.insetStart = !1, this.insetEnd = !1;
54
- }
55
- connectedCallback() {
56
- super.connectedCallback(), this.setAttribute("role", "separator"), this.setAttribute("aria-orientation", this.vertical ? "vertical" : "horizontal");
57
- }
58
- render() {
59
- return d``;
60
- }
61
- };
62
- e.styles = [p.styles, m];
63
- r([
64
- s({ type: Boolean, reflect: !0 })
65
- ], e.prototype, "vertical", 2);
66
- r([
67
- s({ type: Boolean, reflect: !0 })
68
- ], e.prototype, "inset", 2);
69
- r([
70
- s({ type: Boolean, reflect: !0, attribute: "inset-start" })
71
- ], e.prototype, "insetStart", 2);
72
- r([
73
- s({ type: Boolean, reflect: !0, attribute: "inset-end" })
74
- ], e.prototype, "insetEnd", 2);
75
- e = r([
76
- v("md-divider")
77
- ], e);
1
+ import { t as i } from "../../chunks/divider-DNepwoZv.js";
78
2
  export {
79
- e as MdDivider
3
+ i as MdDivider
80
4
  };
81
- //# sourceMappingURL=divider.js.map
@@ -1,155 +1,4 @@
1
- import { css as b, nothing as h, html as d } from "lit";
2
- import { property as s, customElement as m } from "lit/decorators.js";
3
- import { M as c } from "../../chunks/base-component-DQTjlEVL.js";
4
- import "../../internal/ripple/ripple.js";
5
- import "../../chunks/focus-ring-Dl-XoEKK.js";
6
- import "../icon/icon.js";
7
- const x = b`
8
- :host {
9
- display: inline-flex;
10
- outline: none;
11
- vertical-align: middle;
12
- -webkit-tap-highlight-color: transparent;
13
- }
14
-
15
- :host([disabled]) {
16
- pointer-events: none;
17
- }
18
-
19
- button {
20
- position: relative;
21
- display: inline-flex;
22
- align-items: center;
23
- justify-content: center;
24
- box-sizing: border-box;
25
- border: none;
26
- cursor: pointer;
27
- user-select: none;
28
- outline: none;
29
- background-color: var(--md-sys-color-primary-container, #EADDFF);
30
- color: var(--md-sys-color-on-primary-container, #21005D);
31
- box-shadow: var(--md-sys-elevation-level3, 0px 1px 3px 0px rgba(0,0,0,0.30));
32
- transition: box-shadow 200ms cubic-bezier(0.2, 0, 0, 1),
33
- background-color 200ms cubic-bezier(0.2, 0, 0, 1);
34
- overflow: hidden;
35
- }
36
-
37
- button:hover {
38
- box-shadow: var(--md-sys-elevation-level4, 0px 2px 3px 0px rgba(0,0,0,0.30));
39
- }
40
-
41
- :host([lowered]) button {
42
- box-shadow: var(--md-sys-elevation-level1, 0px 1px 3px 1px rgba(0,0,0,0.15));
43
- }
44
-
45
- :host([lowered]) button:hover {
46
- box-shadow: var(--md-sys-elevation-level2, 0px 2px 6px 2px rgba(0,0,0,0.15));
47
- }
48
-
49
- /* --- Sizes --- */
50
- :host(:not([size])) button,
51
- :host([size="medium"]) button {
52
- width: 56px;
53
- height: 56px;
54
- border-radius: var(--md-sys-shape-corner-large, 16px);
55
- }
56
-
57
- :host([size="small"]) button {
58
- width: 40px;
59
- height: 40px;
60
- border-radius: var(--md-sys-shape-corner-medium, 12px);
61
- }
62
-
63
- :host([size="large"]) button {
64
- width: 96px;
65
- height: 96px;
66
- border-radius: var(--md-sys-shape-corner-extra-large, 28px);
67
- }
68
-
69
- :host([size="large"]) md-icon {
70
- --md-icon-size: 36px;
71
- }
72
-
73
- /* --- Extended FAB --- */
74
- :host([extended]) button {
75
- width: auto;
76
- min-width: 80px;
77
- height: 56px;
78
- padding: 0 20px;
79
- border-radius: var(--md-sys-shape-corner-large, 16px);
80
- gap: 12px;
81
- }
82
-
83
- .label {
84
- font-family: var(--md-sys-typescale-font-family, inherit);
85
- font-size: var(--md-sys-typescale-label-large-size, 14px);
86
- font-weight: 500;
87
- line-height: 20px;
88
- letter-spacing: 0.1px;
89
- white-space: nowrap;
90
- }
91
-
92
- .content {
93
- display: inline-flex;
94
- align-items: center;
95
- justify-content: center;
96
- gap: 12px;
97
- position: relative;
98
- z-index: 1;
99
- }
100
- `;
101
- var u = Object.defineProperty, y = Object.getOwnPropertyDescriptor, o = (r, i, a, n) => {
102
- for (var t = n > 1 ? void 0 : n ? y(i, a) : i, l = r.length - 1, p; l >= 0; l--)
103
- (p = r[l]) && (t = (n ? p(i, a, t) : p(t)) || t);
104
- return n && t && u(i, a, t), t;
105
- };
106
- let e = class extends c {
107
- constructor() {
108
- super(...arguments), this.size = "medium", this.label = "", this.icon = "", this.lowered = !1, this.disabled = !1, this.extended = !1;
109
- }
110
- updated(r) {
111
- super.updated(r), r.has("label") && (this.extended = !!this.label);
112
- }
113
- render() {
114
- return d`
115
- <button ?disabled=${this.disabled}>
116
- <md-ripple ?disabled=${this.disabled}></md-ripple>
117
- <md-focus-ring></md-focus-ring>
118
- <span class="content">
119
- <slot name="icon">
120
- ${this.icon ? d`<md-icon name=${this.icon}></md-icon>` : h}
121
- </slot>
122
- <slot>
123
- ${this.label ? d`<span class="label">${this.label}</span>` : h}
124
- </slot>
125
- </span>
126
- </button>
127
- `;
128
- }
129
- };
130
- e.styles = [c.styles, x];
131
- o([
132
- s({ type: String, reflect: !0 })
133
- ], e.prototype, "size", 2);
134
- o([
135
- s({ type: String })
136
- ], e.prototype, "label", 2);
137
- o([
138
- s({ type: String })
139
- ], e.prototype, "icon", 2);
140
- o([
141
- s({ type: Boolean, reflect: !0 })
142
- ], e.prototype, "lowered", 2);
143
- o([
144
- s({ type: Boolean, reflect: !0 })
145
- ], e.prototype, "disabled", 2);
146
- o([
147
- s({ type: Boolean, reflect: !0 })
148
- ], e.prototype, "extended", 2);
149
- e = o([
150
- m("md-fab")
151
- ], e);
1
+ import { t as r } from "../../chunks/fab-C9j3WBHE.js";
152
2
  export {
153
- e as MdFab
3
+ r as MdFab
154
4
  };
155
- //# sourceMappingURL=fab.js.map
@@ -1,70 +1,4 @@
1
- import { css as f, html as h } from "lit";
2
- import { property as p, customElement as c } from "lit/decorators.js";
3
- import { M as m } from "../../chunks/base-component-DQTjlEVL.js";
4
- const d = f`
5
- :host {
6
- display: inline-flex;
7
- align-items: center;
8
- justify-content: center;
9
- vertical-align: middle;
10
- width: var(--md-icon-size, 24px);
11
- height: var(--md-icon-size, 24px);
12
- font-size: var(--md-icon-size, 24px);
13
- line-height: 1;
14
- letter-spacing: normal;
15
- text-transform: none;
16
- white-space: nowrap;
17
- word-wrap: normal;
18
- direction: ltr;
19
- font-family: 'Material Symbols Outlined', 'Material Icons', sans-serif;
20
- font-weight: normal;
21
- font-style: normal;
22
- font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
23
- user-select: none;
24
- flex-shrink: 0;
25
- color: inherit;
26
- }
27
-
28
- :host([filled]) {
29
- font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
30
- }
31
-
32
- ::slotted(svg) {
33
- width: 100%;
34
- height: 100%;
35
- fill: currentColor;
36
- }
37
- `;
38
- var y = Object.defineProperty, u = Object.getOwnPropertyDescriptor, o = (s, i, n, r) => {
39
- for (var e = r > 1 ? void 0 : r ? u(i, n) : i, l = s.length - 1, a; l >= 0; l--)
40
- (a = s[l]) && (e = (r ? a(i, n, e) : a(e)) || e);
41
- return r && e && y(i, n, e), e;
42
- };
43
- let t = class extends m {
44
- constructor() {
45
- super(...arguments), this.name = "", this.filled = !1, this.size = "";
46
- }
47
- updated(s) {
48
- super.updated(s), s.has("size") && (this.size ? this.style.setProperty("--md-icon-size", isNaN(Number(this.size)) ? this.size : `${this.size}px`) : this.style.removeProperty("--md-icon-size"));
49
- }
50
- render() {
51
- return h`<slot>${this.name}</slot>`;
52
- }
53
- };
54
- t.styles = [m.styles, d];
55
- o([
56
- p({ type: String })
57
- ], t.prototype, "name", 2);
58
- o([
59
- p({ type: Boolean, reflect: !0 })
60
- ], t.prototype, "filled", 2);
61
- o([
62
- p({ type: String })
63
- ], t.prototype, "size", 2);
64
- t = o([
65
- c("md-icon")
66
- ], t);
1
+ import { t as r } from "../../chunks/icon-DrNqcNEL.js";
67
2
  export {
68
- t as MdIcon
3
+ r as MdIcon
69
4
  };
70
- //# sourceMappingURL=icon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button.css.d.ts","sourceRoot":"","sources":["../../../src/components/icon-button/icon-button.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,yBAqG5B,CAAC"}
1
+ {"version":3,"file":"icon-button.css.d.ts","sourceRoot":"","sources":["../../../src/components/icon-button/icon-button.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,yBAsG5B,CAAC"}
@@ -1,192 +1,4 @@
1
- import { css as b, nothing as a, html as l } from "lit";
2
- import { property as o, customElement as u } from "lit/decorators.js";
3
- import { M as p } from "../../chunks/base-component-DQTjlEVL.js";
4
- import "../../internal/ripple/ripple.js";
5
- import "../../chunks/focus-ring-Dl-XoEKK.js";
6
- import "../icon/icon.js";
7
- const v = b`
8
- :host {
9
- display: inline-flex;
10
- outline: none;
11
- vertical-align: middle;
12
- -webkit-tap-highlight-color: transparent;
13
- }
14
-
15
- :host([disabled]) {
16
- pointer-events: none;
17
- }
18
-
19
- button, a {
20
- position: relative;
21
- display: inline-flex;
22
- align-items: center;
23
- justify-content: center;
24
- box-sizing: border-box;
25
- width: 40px;
26
- height: 40px;
27
- padding: 0;
28
- border: none;
29
- border-radius: var(--md-sys-shape-corner-full, 50%);
30
- background-color: transparent;
31
- color: var(--md-sys-color-on-surface-variant, #49454F);
32
- cursor: pointer;
33
- user-select: none;
34
- outline: none;
35
- text-decoration: none;
36
- transition: background-color 150ms cubic-bezier(0.2, 0, 0, 1),
37
- color 150ms cubic-bezier(0.2, 0, 0, 1);
38
- }
39
-
40
- /* --- Filled --- */
41
- :host([variant="filled"]) button,
42
- :host([variant="filled"]) a {
43
- background-color: var(--md-sys-color-primary, #6750A4);
44
- color: var(--md-sys-color-on-primary, #FFFFFF);
45
- }
46
-
47
- :host([variant="filled"][selected]) button,
48
- :host([variant="filled"][selected]) a {
49
- background-color: var(--md-sys-color-primary, #6750A4);
50
- color: var(--md-sys-color-on-primary, #FFFFFF);
51
- }
52
-
53
- /* --- Tonal --- */
54
- :host([variant="tonal"]) button,
55
- :host([variant="tonal"]) a {
56
- background-color: var(--md-sys-color-secondary-container, #E8DEF8);
57
- color: var(--md-sys-color-on-secondary-container, #1D192B);
58
- }
59
-
60
- /* --- Outlined --- */
61
- :host([variant="outlined"]) button,
62
- :host([variant="outlined"]) a {
63
- border: 1px solid var(--md-sys-color-outline, #79747E);
64
- color: var(--md-sys-color-on-surface-variant, #49454F);
65
- }
66
-
67
- :host([variant="outlined"][selected]) button,
68
- :host([variant="outlined"][selected]) a {
69
- background-color: var(--md-sys-color-inverse-surface, #313033);
70
- color: var(--md-sys-color-inverse-on-surface, #F4EFF4);
71
- border: none;
72
- }
73
-
74
- /* --- Toggle / Selected for Standard --- */
75
- :host(:not([variant])[selected]) button,
76
- :host(:not([variant])[selected]) a,
77
- :host([variant="standard"][selected]) button,
78
- :host([variant="standard"][selected]) a {
79
- color: var(--md-sys-color-primary, #6750A4);
80
- }
81
-
82
- /* --- Disabled --- */
83
- :host([disabled]) button,
84
- :host([disabled]) a {
85
- cursor: not-allowed;
86
- color: rgba(29, 27, 32, 0.38);
87
- }
88
-
89
- :host([disabled][variant="filled"]) button,
90
- :host([disabled][variant="filled"]) a,
91
- :host([disabled][variant="tonal"]) button,
92
- :host([disabled][variant="tonal"]) a {
93
- background-color: rgba(29, 27, 32, 0.12);
94
- }
95
-
96
- :host([disabled][variant="outlined"]) button,
97
- :host([disabled][variant="outlined"]) a {
98
- border-color: rgba(29, 27, 32, 0.12);
99
- }
100
-
101
- .content {
102
- display: inline-flex;
103
- align-items: center;
104
- justify-content: center;
105
- position: relative;
106
- z-index: 1;
107
- }
108
- `;
109
- var m = Object.defineProperty, y = Object.getOwnPropertyDescriptor, e = (r, s, d, n) => {
110
- for (var i = n > 1 ? void 0 : n ? y(s, d) : s, c = r.length - 1, h; c >= 0; c--)
111
- (h = r[c]) && (i = (n ? h(s, d, i) : h(i)) || i);
112
- return n && i && m(s, d, i), i;
113
- };
114
- let t = class extends p {
115
- constructor() {
116
- super(...arguments), this.variant = "standard", this.disabled = !1, this.toggle = !1, this.selected = !1, this.icon = "", this.selectedIcon = "", this.ariaLabelText = "", this.href = "", this.target = "", this.handleClick = (r) => {
117
- if (this.disabled) {
118
- r.preventDefault(), r.stopImmediatePropagation();
119
- return;
120
- }
121
- this.toggle && (this.selected = !this.selected, this.emitEvent("change", { selected: this.selected }));
122
- };
123
- }
124
- render() {
125
- const r = this.selected && this.selectedIcon ? this.selectedIcon : this.icon, s = l`
126
- <md-ripple ?disabled=${this.disabled} unbounded></md-ripple>
127
- <md-focus-ring></md-focus-ring>
128
- <span class="content">
129
- <slot>
130
- ${r ? l`<md-icon name=${r} ?filled=${this.selected}></md-icon>` : a}
131
- </slot>
132
- </span>
133
- `;
134
- return this.href ? l`
135
- <a
136
- href=${this.disabled ? a : this.href}
137
- target=${this.target || a}
138
- aria-label=${this.ariaLabelText || a}
139
- aria-pressed=${this.toggle ? this.selected ? "true" : "false" : a}
140
- aria-disabled=${this.disabled ? "true" : a}
141
- tabindex=${this.disabled ? "-1" : "0"}
142
- @click=${this.handleClick}
143
- >
144
- ${s}
145
- </a>
146
- ` : l`
147
- <button
148
- aria-label=${this.ariaLabelText || a}
149
- aria-pressed=${this.toggle ? this.selected ? "true" : "false" : a}
150
- ?disabled=${this.disabled}
151
- @click=${this.handleClick}
152
- >
153
- ${s}
154
- </button>
155
- `;
156
- }
157
- };
158
- t.styles = [p.styles, v];
159
- e([
160
- o({ type: String, reflect: !0 })
161
- ], t.prototype, "variant", 2);
162
- e([
163
- o({ type: Boolean, reflect: !0 })
164
- ], t.prototype, "disabled", 2);
165
- e([
166
- o({ type: Boolean, reflect: !0 })
167
- ], t.prototype, "toggle", 2);
168
- e([
169
- o({ type: Boolean, reflect: !0 })
170
- ], t.prototype, "selected", 2);
171
- e([
172
- o({ type: String })
173
- ], t.prototype, "icon", 2);
174
- e([
175
- o({ type: String, attribute: "selected-icon" })
176
- ], t.prototype, "selectedIcon", 2);
177
- e([
178
- o({ type: String, attribute: "aria-label" })
179
- ], t.prototype, "ariaLabelText", 2);
180
- e([
181
- o({ type: String })
182
- ], t.prototype, "href", 2);
183
- e([
184
- o({ type: String })
185
- ], t.prototype, "target", 2);
186
- t = e([
187
- u("md-icon-button")
188
- ], t);
1
+ import { t } from "../../chunks/icon-button-BdSc7eot.js";
189
2
  export {
190
3
  t as MdIconButton
191
4
  };
192
- //# sourceMappingURL=icon-button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.css.d.ts","sourceRoot":"","sources":["../../../src/components/list/list.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,yBAOtB,CAAC;AAEF,eAAO,MAAM,cAAc,yBA6E1B,CAAC"}
1
+ {"version":3,"file":"list.css.d.ts","sourceRoot":"","sources":["../../../src/components/list/list.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,yBAStB,CAAC;AAEF,eAAO,MAAM,cAAc,yBA4F1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/components/list/list.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,iCAAiC,CAAC;AACzC,OAAO,yCAAyC,CAAC;AAGjD,qBACa,UAAW,SAAQ,aAAa;IAC3C,OAAgB,MAAM,iCAA0C;IAGhE,QAAQ,SAAM;IAGd,cAAc,SAAM;IAGpB,sBAAsB,SAAM;IAG5B,WAAW,UAAS;IAGpB,QAAQ,UAAS;IAGjB,IAAI,SAAM;IAGV,MAAM,SAAM;IAEZ,OAAO,CAAC,WAAW,CASjB;IAEO,MAAM;CA+ChB;AAED,qBACa,MAAO,SAAQ,aAAa;IACvC,OAAgB,MAAM,iCAAsC;IAEnD,iBAAiB;IAKjB,MAAM;CAGhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;QAClB,cAAc,EAAE,UAAU,CAAC;KAC5B;CACF"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/components/list/list.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,iCAAiC,CAAC;AACzC,OAAO,yCAAyC,CAAC;AAGjD,qBACa,UAAW,SAAQ,aAAa;IAC3C,OAAgB,MAAM,iCAA0C;IAGhE,QAAQ,SAAM;IAGd,cAAc,SAAM;IAGpB,sBAAsB,SAAM;IAG5B,WAAW,UAAS;IAGpB,QAAQ,UAAS;IAGjB,IAAI,SAAM;IAGV,MAAM,SAAM;IAEZ,OAAO,CAAC,WAAW,CASjB;IAEO,MAAM;CAkDhB;AAED,qBACa,MAAO,SAAQ,aAAa;IACvC,OAAgB,MAAM,iCAAsC;IAEnD,iBAAiB;IAKjB,MAAM;CAGhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;QAClB,cAAc,EAAE,UAAU,CAAC;KAC5B;CACF"}