@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,93 +1,4 @@
1
- import { css as h, nothing as c, html as g } from "lit";
2
- import { property as l, queryAssignedElements as m, customElement as f } from "lit/decorators.js";
3
- import { M as p } from "../../chunks/base-component-DQTjlEVL.js";
4
- const u = h`
5
- :host {
6
- display: inline-flex;
7
- position: relative;
8
- vertical-align: middle;
9
- }
10
-
11
- .badge {
12
- box-sizing: border-box;
13
- display: inline-flex;
14
- align-items: center;
15
- justify-content: center;
16
- background-color: var(--md-sys-color-error, #B3261E);
17
- color: var(--md-sys-color-on-error, #FFFFFF);
18
- font-family: var(--md-sys-typescale-font-family, inherit);
19
- font-weight: 500;
20
- line-height: 1;
21
- white-space: nowrap;
22
- user-select: none;
23
- border-radius: var(--md-sys-shape-corner-full, 9999px);
24
- transition: transform 150ms cubic-bezier(0.2, 0, 0, 1),
25
- opacity 150ms cubic-bezier(0.2, 0, 0, 1);
26
- }
27
-
28
- /* Small Dot Badge */
29
- :host(:not([value])) .badge,
30
- :host([dot]) .badge {
31
- width: 6px;
32
- height: 6px;
33
- padding: 0;
34
- }
35
-
36
- /* Large Badge with text */
37
- :host([value]:not([dot])) .badge {
38
- min-width: 16px;
39
- height: 16px;
40
- padding: 0 4px;
41
- font-size: 11px;
42
- letter-spacing: 0.5px;
43
- }
44
-
45
- /* Anchored Positioning over slotted element */
46
- :host([anchored]) .badge {
47
- position: absolute;
48
- top: 0;
49
- right: 0;
50
- transform: translate(50%, -50%);
51
- z-index: 10;
52
- }
53
- `;
54
- var y = Object.defineProperty, b = Object.getOwnPropertyDescriptor, o = (d, r, n, s) => {
55
- for (var e = s > 1 ? void 0 : s ? b(r, n) : r, a = d.length - 1, i; a >= 0; a--)
56
- (i = d[a]) && (e = (s ? i(r, n, e) : i(e)) || e);
57
- return s && e && y(r, n, e), e;
58
- };
59
- let t = class extends p {
60
- constructor() {
61
- super(...arguments), this.value = "", this.dot = !1, this.anchored = !1, this.handleSlotChange = () => {
62
- this.anchored = this.assignedChildren.length > 0;
63
- };
64
- }
65
- render() {
66
- return g`
67
- <slot @slotchange=${this.handleSlotChange}></slot>
68
- <span class="badge">
69
- ${!this.dot && this.value ? this.value : c}
70
- </span>
71
- `;
72
- }
73
- };
74
- t.styles = [p.styles, u];
75
- o([
76
- l({ type: String, reflect: !0 })
77
- ], t.prototype, "value", 2);
78
- o([
79
- l({ type: Boolean, reflect: !0 })
80
- ], t.prototype, "dot", 2);
81
- o([
82
- l({ type: Boolean, reflect: !0 })
83
- ], t.prototype, "anchored", 2);
84
- o([
85
- m()
86
- ], t.prototype, "assignedChildren", 2);
87
- t = o([
88
- f("md-badge")
89
- ], t);
1
+ import { t as r } from "../../chunks/badge-G4EjcMoy.js";
90
2
  export {
91
- t as MdBadge
3
+ r as MdBadge
92
4
  };
93
- //# sourceMappingURL=badge.js.map
@@ -1,263 +1,4 @@
1
- import { css as g, nothing as s, html as a } from "lit";
2
- import { property as n, queryAssignedElements as p, customElement as v } from "lit/decorators.js";
3
- import { M as b } 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 u = g`
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
- min-width: 64px;
26
- height: 40px;
27
- padding: 0 24px;
28
- border: none;
29
- border-radius: var(--md-sys-shape-corner-full, 9999px);
30
- font-family: var(--md-sys-typescale-font-family, inherit);
31
- font-size: var(--md-sys-typescale-label-large-size, 14px);
32
- font-weight: 500;
33
- line-height: 20px;
34
- letter-spacing: 0.1px;
35
- text-decoration: none;
36
- text-align: center;
37
- cursor: pointer;
38
- user-select: none;
39
- outline: none;
40
- transition: box-shadow 200ms cubic-bezier(0.2, 0, 0, 1),
41
- background-color 200ms cubic-bezier(0.2, 0, 0, 1),
42
- color 200ms cubic-bezier(0.2, 0, 0, 1);
43
- overflow: hidden;
44
- }
45
-
46
- :host([has-icon]) button,
47
- :host([has-icon]) a {
48
- padding-left: 16px;
49
- }
50
-
51
- :host([has-trailing-icon]) button,
52
- :host([has-trailing-icon]) a {
53
- padding-right: 16px;
54
- }
55
-
56
- /* --- Filled (Default) --- */
57
- :host(:not([variant])) button,
58
- :host(:not([variant])) a,
59
- :host([variant="filled"]) button,
60
- :host([variant="filled"]) a {
61
- background-color: var(--md-sys-color-primary, #6750a4);
62
- color: var(--md-sys-color-on-primary, #ffffff);
63
- box-shadow: var(--md-sys-elevation-level0, none);
64
- }
65
-
66
- :host([variant="filled"]:hover) button,
67
- :host([variant="filled"]:hover) a,
68
- :host(:not([variant]):hover) button,
69
- :host(:not([variant]):hover) a {
70
- box-shadow: var(--md-sys-elevation-level1, 0px 1px 3px 1px rgba(0,0,0,0.15));
71
- }
72
-
73
- /* --- Elevated --- */
74
- :host([variant="elevated"]) button,
75
- :host([variant="elevated"]) a {
76
- background-color: var(--md-sys-color-surface-container-low, #f7f2fa);
77
- color: var(--md-sys-color-primary, #6750a4);
78
- box-shadow: var(--md-sys-elevation-level1, 0px 1px 3px 1px rgba(0,0,0,0.15));
79
- }
80
-
81
- :host([variant="elevated"]:hover) button,
82
- :host([variant="elevated"]:hover) a {
83
- box-shadow: var(--md-sys-elevation-level2, 0px 2px 6px 2px rgba(0,0,0,0.15));
84
- }
85
-
86
- /* --- Filled Tonal --- */
87
- :host([variant="tonal"]) button,
88
- :host([variant="tonal"]) a {
89
- background-color: var(--md-sys-color-secondary-container, #e8def8);
90
- color: var(--md-sys-color-on-secondary-container, #1d192b);
91
- box-shadow: var(--md-sys-elevation-level0, none);
92
- }
93
-
94
- :host([variant="tonal"]:hover) button,
95
- :host([variant="tonal"]:hover) a {
96
- box-shadow: var(--md-sys-elevation-level1, 0px 1px 3px 1px rgba(0,0,0,0.15));
97
- }
98
-
99
- /* --- Outlined --- */
100
- :host([variant="outlined"]) button,
101
- :host([variant="outlined"]) a {
102
- background-color: transparent;
103
- color: var(--md-sys-color-primary, #6750a4);
104
- border: 1px solid var(--md-sys-color-outline, #79747e);
105
- }
106
-
107
- /* --- Text --- */
108
- :host([variant="text"]) button,
109
- :host([variant="text"]) a {
110
- background-color: transparent;
111
- color: var(--md-sys-color-primary, #6750a4);
112
- padding: 0 12px;
113
- }
114
-
115
- /* --- Disabled --- */
116
- :host([disabled]) button,
117
- :host([disabled]) a {
118
- cursor: not-allowed;
119
- box-shadow: none;
120
- }
121
-
122
- :host([disabled]:not([variant="outlined"]):not([variant="text"])) button,
123
- :host([disabled]:not([variant="outlined"]):not([variant="text"])) a {
124
- background-color: rgba(29, 27, 32, 0.12);
125
- color: rgba(29, 27, 32, 0.38);
126
- }
127
-
128
- :host([disabled][variant="outlined"]) button,
129
- :host([disabled][variant="outlined"]) a {
130
- border-color: rgba(29, 27, 32, 0.12);
131
- color: rgba(29, 27, 32, 0.38);
132
- }
133
-
134
- :host([disabled][variant="text"]) button,
135
- :host([disabled][variant="text"]) a {
136
- color: rgba(29, 27, 32, 0.38);
137
- }
138
-
139
- .content {
140
- display: inline-flex;
141
- align-items: center;
142
- gap: 8px;
143
- position: relative;
144
- z-index: 1;
145
- }
146
-
147
- .spinner {
148
- width: 18px;
149
- height: 18px;
150
- border: 2px solid currentColor;
151
- border-top-color: transparent;
152
- border-radius: 50%;
153
- animation: md-spin 800ms linear infinite;
154
- }
155
-
156
- @keyframes md-spin {
157
- to {
158
- transform: rotate(360deg);
159
- }
160
- }
161
- `;
162
- var m = Object.defineProperty, y = Object.getOwnPropertyDescriptor, o = (e, i, d, l) => {
163
- for (var r = l > 1 ? void 0 : l ? y(i, d) : i, h = e.length - 1, c; h >= 0; h--)
164
- (c = e[h]) && (r = (l ? c(i, d, r) : c(r)) || r);
165
- return l && r && m(i, d, r), r;
166
- };
167
- let t = class extends b {
168
- constructor() {
169
- super(...arguments), this.variant = "filled", this.disabled = !1, this.loading = !1, this.type = "button", this.href = "", this.target = "", this.icon = "", this.trailingIcon = "", this.handleClick = (e) => {
170
- if (this.disabled || this.loading) {
171
- e.preventDefault(), e.stopImmediatePropagation();
172
- return;
173
- }
174
- if (this.type === "submit" || this.type === "reset") {
175
- const i = this.closest("form");
176
- i && (this.type === "submit" ? i.requestSubmit() : i.reset());
177
- }
178
- };
179
- }
180
- handleSlotChange() {
181
- const e = !!(this.icon || this.assignedIcons && this.assignedIcons.length > 0), i = !!(this.trailingIcon || this.assignedTrailingIcons && this.assignedTrailingIcons.length > 0);
182
- this.toggleAttribute("has-icon", e), this.toggleAttribute("has-trailing-icon", i);
183
- }
184
- firstUpdated() {
185
- this.handleSlotChange();
186
- }
187
- render() {
188
- const e = a`
189
- <md-ripple ?disabled=${this.disabled || this.loading}></md-ripple>
190
- <md-focus-ring></md-focus-ring>
191
- <span class="content">
192
- ${this.loading ? a`<span class="spinner" aria-hidden="true"></span>` : a`
193
- <slot name="icon" @slotchange=${this.handleSlotChange}>
194
- ${this.icon ? a`<md-icon name=${this.icon}></md-icon>` : s}
195
- </slot>
196
- `}
197
- <slot @slotchange=${this.handleSlotChange}></slot>
198
- ${this.loading ? s : a`
199
- <slot name="trailing-icon" @slotchange=${this.handleSlotChange}>
200
- ${this.trailingIcon ? a`<md-icon name=${this.trailingIcon}></md-icon>` : s}
201
- </slot>
202
- `}
203
- </span>
204
- `;
205
- return this.href ? a`
206
- <a
207
- href=${this.disabled ? s : this.href}
208
- target=${this.target || s}
209
- aria-disabled=${this.disabled ? "true" : s}
210
- tabindex=${this.disabled ? "-1" : "0"}
211
- @click=${this.handleClick}
212
- >
213
- ${e}
214
- </a>
215
- ` : a`
216
- <button
217
- type=${this.type}
218
- ?disabled=${this.disabled || this.loading}
219
- @click=${this.handleClick}
220
- >
221
- ${e}
222
- </button>
223
- `;
224
- }
225
- };
226
- t.styles = [b.styles, u];
227
- o([
228
- n({ type: String, reflect: !0 })
229
- ], t.prototype, "variant", 2);
230
- o([
231
- n({ type: Boolean, reflect: !0 })
232
- ], t.prototype, "disabled", 2);
233
- o([
234
- n({ type: Boolean, reflect: !0 })
235
- ], t.prototype, "loading", 2);
236
- o([
237
- n({ type: String })
238
- ], t.prototype, "type", 2);
239
- o([
240
- n({ type: String })
241
- ], t.prototype, "href", 2);
242
- o([
243
- n({ type: String })
244
- ], t.prototype, "target", 2);
245
- o([
246
- n({ type: String })
247
- ], t.prototype, "icon", 2);
248
- o([
249
- n({ type: String, attribute: "trailing-icon" })
250
- ], t.prototype, "trailingIcon", 2);
251
- o([
252
- p({ slot: "icon" })
253
- ], t.prototype, "assignedIcons", 2);
254
- o([
255
- p({ slot: "trailing-icon" })
256
- ], t.prototype, "assignedTrailingIcons", 2);
257
- t = o([
258
- v("md-button")
259
- ], t);
1
+ import { t as o } from "../../chunks/button-B4TSZ7Sl.js";
260
2
  export {
261
- t as MdButton
3
+ o as MdButton
262
4
  };
263
- //# sourceMappingURL=button.js.map
@@ -1,169 +1,4 @@
1
- import { css as h, nothing as r, html as l } from "lit";
2
- import { property as o, customElement as m } from "lit/decorators.js";
3
- import { M as v } from "../../chunks/base-component-DQTjlEVL.js";
4
- import "../../internal/ripple/ripple.js";
5
- import "../../chunks/focus-ring-Dl-XoEKK.js";
6
- const x = h`
7
- :host {
8
- display: block;
9
- border-radius: var(--md-sys-shape-corner-medium, 12px);
10
- box-sizing: border-box;
11
- font-family: var(--md-sys-typescale-font-family, inherit);
12
- position: relative;
13
- overflow: hidden;
14
- transition: box-shadow 200ms cubic-bezier(0.2, 0, 0, 1),
15
- background-color 200ms cubic-bezier(0.2, 0, 0, 1);
16
- }
17
-
18
- /* --- Elevated (Default) --- */
19
- :host(:not([variant])),
20
- :host([variant="elevated"]) {
21
- background-color: var(--md-sys-color-surface-container-low, #F7F2FA);
22
- box-shadow: var(--md-sys-elevation-level1, 0px 1px 3px 1px rgba(0,0,0,0.15));
23
- }
24
-
25
- :host(:not([variant])[interactive]:hover),
26
- :host([variant="elevated"][interactive]:hover) {
27
- box-shadow: var(--md-sys-elevation-level2, 0px 2px 6px 2px rgba(0,0,0,0.15));
28
- }
29
-
30
- /* --- Filled --- */
31
- :host([variant="filled"]) {
32
- background-color: var(--md-sys-color-surface-container-highest, #E6E0E9);
33
- box-shadow: var(--md-sys-elevation-level0, none);
34
- }
35
-
36
- :host([variant="filled"][interactive]:hover) {
37
- box-shadow: var(--md-sys-elevation-level1, 0px 1px 3px 1px rgba(0,0,0,0.15));
38
- }
39
-
40
- /* --- Outlined --- */
41
- :host([variant="outlined"]) {
42
- background-color: var(--md-sys-color-surface, #FEF7FF);
43
- border: 1px solid var(--md-sys-color-outline-variant, #CAC4D0);
44
- box-shadow: var(--md-sys-elevation-level0, none);
45
- }
46
-
47
- :host([variant="outlined"][interactive]:hover) {
48
- box-shadow: var(--md-sys-elevation-level1, 0px 1px 3px 1px rgba(0,0,0,0.15));
49
- }
50
-
51
- :host([interactive]) {
52
- cursor: pointer;
53
- }
54
-
55
- :host([disabled]) {
56
- pointer-events: none;
57
- opacity: 0.38;
58
- }
59
-
60
- .card-container {
61
- display: flex;
62
- flex-direction: column;
63
- height: 100%;
64
- position: relative;
65
- text-decoration: none;
66
- color: inherit;
67
- }
68
-
69
- ::slotted([slot="media"]) {
70
- width: 100%;
71
- max-height: 200px;
72
- object-fit: cover;
73
- display: block;
74
- }
75
-
76
- .header {
77
- padding: 16px 16px 0;
78
- }
79
-
80
- .body {
81
- padding: 16px;
82
- flex: 1;
83
- font-size: var(--md-sys-typescale-body-medium-size, 14px);
84
- line-height: 20px;
85
- color: var(--md-sys-color-on-surface-variant, #49454F);
86
- }
87
-
88
- .actions {
89
- display: flex;
90
- align-items: center;
91
- justify-content: flex-end;
92
- gap: 8px;
93
- padding: 8px 16px 16px;
94
- }
95
- `;
96
- var b = Object.defineProperty, f = Object.getOwnPropertyDescriptor, a = (e, s, d, n) => {
97
- for (var i = n > 1 ? void 0 : n ? f(s, d) : s, c = e.length - 1, p; c >= 0; c--)
98
- (p = e[c]) && (i = (n ? p(s, d, i) : p(i)) || i);
99
- return n && i && b(s, d, i), i;
100
- };
101
- let t = class extends v {
102
- constructor() {
103
- super(...arguments), this.variant = "elevated", this.interactive = !1, this.disabled = !1, this.href = "", this.target = "", this.handleClick = (e) => {
104
- if (this.disabled) {
105
- e.preventDefault(), e.stopImmediatePropagation();
106
- return;
107
- }
108
- this.interactive && this.emitEvent("card-click");
109
- };
110
- }
111
- render() {
112
- const e = l`
113
- ${this.interactive ? l`<md-ripple ?disabled=${this.disabled}></md-ripple><md-focus-ring></md-focus-ring>` : r}
114
- <slot name="media"></slot>
115
- <div class="header">
116
- <slot name="header"></slot>
117
- </div>
118
- <div class="body">
119
- <slot></slot>
120
- </div>
121
- <div class="actions">
122
- <slot name="actions"></slot>
123
- </div>
124
- `;
125
- return this.href ? l`
126
- <a
127
- class="card-container"
128
- href=${this.disabled ? r : this.href}
129
- target=${this.target || r}
130
- aria-disabled=${this.disabled ? "true" : r}
131
- tabindex=${this.disabled ? "-1" : this.interactive ? "0" : r}
132
- @click=${this.handleClick}
133
- >
134
- ${e}
135
- </a>
136
- ` : l`
137
- <div
138
- class="card-container"
139
- tabindex=${this.interactive && !this.disabled ? "0" : r}
140
- @click=${this.handleClick}
141
- >
142
- ${e}
143
- </div>
144
- `;
145
- }
146
- };
147
- t.styles = [v.styles, x];
148
- a([
149
- o({ type: String, reflect: !0 })
150
- ], t.prototype, "variant", 2);
151
- a([
152
- o({ type: Boolean, reflect: !0 })
153
- ], t.prototype, "interactive", 2);
154
- a([
155
- o({ type: Boolean, reflect: !0 })
156
- ], t.prototype, "disabled", 2);
157
- a([
158
- o({ type: String })
159
- ], t.prototype, "href", 2);
160
- a([
161
- o({ type: String })
162
- ], t.prototype, "target", 2);
163
- t = a([
164
- m("md-card")
165
- ], t);
1
+ import { t as o } from "../../chunks/card-DVffdPpv.js";
166
2
  export {
167
- t as MdCard
3
+ o as MdCard
168
4
  };
169
- //# sourceMappingURL=card.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.css.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,yBAoG1B,CAAC"}
1
+ {"version":3,"file":"checkbox.css.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,yBAyG1B,CAAC"}