@covalent/components 8.0.0 → 8.1.0-beta.1
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.
- package/_commonjsHelpers-2367a3a2.js +1 -0
- package/_commonjsHelpers-de2741aa.mjs +28 -0
- package/action-ribbon.mjs +2 -2
- package/alert.mjs +2 -2
- package/app-shell/app-shell.d.ts +2 -0
- package/app-shell/app-shell.d.ts.map +1 -1
- package/app-shell.js +1 -1
- package/app-shell.mjs +22 -12
- package/button.mjs +3 -3
- package/check-list-item.js +8 -6
- package/check-list-item.mjs +34 -28
- package/checkbox.mjs +4 -4
- package/chip-13877bb8.mjs +3116 -0
- package/chip-3c12a33d.js +493 -0
- package/chip-set.js +76 -0
- package/chip-set.mjs +532 -0
- package/chip.js +1 -0
- package/chip.mjs +12 -0
- package/circular-progress.mjs +1 -1
- package/code-snippet.js +13 -1
- package/code-snippet.mjs +12252 -7
- package/{dialog-3ca1b701.mjs → dialog-3444dd4d.mjs} +8 -8
- package/dialog.mjs +2 -2
- package/drawer.mjs +2 -2
- package/empty-state.js +1 -1
- package/empty-state.mjs +3 -3
- package/expansion-panel-item.js +25 -0
- package/expansion-panel-item.mjs +107 -0
- package/expansion-panel.js +7 -0
- package/expansion-panel.mjs +59 -0
- package/{form-element-ffcf59ff.mjs → form-element-7353b3c4.mjs} +1 -1
- package/formfield.js +80 -0
- package/formfield.mjs +277 -0
- package/{foundation-39dc72d2.mjs → foundation-eff81c1e.mjs} +1 -1
- package/icon-button.mjs +2 -2
- package/icon-check-toggle.mjs +4 -4
- package/icon-radio-toggle.mjs +4 -4
- package/icon.mjs +2 -2
- package/index.js +1 -568
- package/index.mjs +113 -3728
- package/linear-progress.mjs +4 -4
- package/list/check-list-item.d.ts.map +1 -1
- package/list/radio-list-item.d.ts.map +1 -1
- package/{mwc-list-item.css-b0009fc7.mjs → list-item-1fc0d619.mjs} +3 -1
- package/{mwc-list-item.css-25adc0c4.js → list-item-209613bf.js} +2 -1
- package/list-item.js +7 -1
- package/list-item.mjs +29 -8
- package/list.js +1 -1
- package/list.mjs +5 -5
- package/menu.mjs +5 -5
- package/{mwc-checkbox-base-f10fd709.mjs → mwc-checkbox-base-afeeff16.mjs} +3 -3
- package/{mwc-drawer-base-135de8a5.mjs → mwc-drawer-base-0c2b4060.mjs} +1 -1
- package/{mwc-icon-bf656cf5.mjs → mwc-icon-28b10c70.mjs} +1 -1
- package/{mwc-line-ripple-directive-b24a914e.mjs → mwc-line-ripple-directive-315e996d.mjs} +1 -1
- package/{mwc-list-base-76e37212.mjs → mwc-list-base-8aa5bfd8.mjs} +2 -2
- package/{mwc-list-item-base-fe4398c3.mjs → mwc-list-item-base-bf1a075b.mjs} +2 -2
- package/{mwc-menu-base-c4bc88ea.mjs → mwc-menu-base-872420a4.mjs} +2 -2
- package/{mwc-radio-base-a374fbd9.mjs → mwc-radio-base-18a887dd.mjs} +3 -3
- package/{mwc-slider.css-8b6f275c.mjs → mwc-slider.css-03537082.mjs} +3 -3
- package/{mwc-tab-base-be0c887f.mjs → mwc-tab-base-cd1570e4.mjs} +2 -2
- package/{mwc-top-app-bar-base-55da3fe4.mjs → mwc-top-app-bar-base-c7380903.mjs} +1 -1
- package/nav-list-item.js +2 -2
- package/nav-list-item.mjs +29 -29
- package/package.json +16 -1
- package/radio-list-item.js +8 -6
- package/radio-list-item.mjs +36 -30
- package/radio.mjs +4 -4
- package/{ripple-handlers-f37f21cf.mjs → ripple-handlers-38a43e50.mjs} +1 -1
- package/select.mjs +8 -8
- package/side-sheet.mjs +2 -2
- package/slider-range.mjs +4 -4
- package/slider.mjs +8 -8
- package/snackbar.mjs +1 -1
- package/style.css +1 -1
- package/switch.mjs +3 -3
- package/tab-bar.mjs +3 -3
- package/tab.mjs +3 -3
- package/textarea.mjs +4 -4
- package/textfield/textfield.d.ts +1 -0
- package/textfield/textfield.d.ts.map +1 -1
- package/{textfield-63d1859a.mjs → textfield-a2e37241.mjs} +3 -3
- package/textfield.js +1 -1
- package/textfield.mjs +7 -4
- package/toolbar.mjs +2 -2
- package/tooltip.mjs +1 -1
- package/top-app-bar-fixed.mjs +2 -2
- package/top-app-bar.mjs +2 -2
- package/tree-list-item.mjs +2 -2
- package/{tslib.es6-f3e988cd.mjs → tslib.es6-226581a4.mjs} +5 -5
- package/code-snippet-2137b11c.js +0 -13
- package/code-snippet-ccca324f.mjs +0 -12278
- package/list-item-04b6ffa1.js +0 -8
- package/list-item-1c4f9e23.mjs +0 -32
package/formfield.mjs
ADDED
@@ -0,0 +1,277 @@
|
|
1
|
+
import { x as u, i as m, r as h, e as y } from "./query-assigned-elements-4a39219d.mjs";
|
2
|
+
import { _ as b, a as f, b as a } from "./tslib.es6-226581a4.mjs";
|
3
|
+
import { B as v } from "./base-element-67ae173f.mjs";
|
4
|
+
import { F as p } from "./form-element-7353b3c4.mjs";
|
5
|
+
import { o as w } from "./observer-be7b92e2.mjs";
|
6
|
+
import { n as d } from "./property-9b6ea53b.mjs";
|
7
|
+
import { i as g } from "./query-d843aa92.mjs";
|
8
|
+
import { o as x } from "./query-assigned-nodes-df691e78.mjs";
|
9
|
+
import { o as _ } from "./class-map-4b94b017.mjs";
|
10
|
+
import "./utils-2932417c.mjs";
|
11
|
+
/**
|
12
|
+
* @license
|
13
|
+
* Copyright 2016 Google Inc.
|
14
|
+
*
|
15
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
16
|
+
* of this software and associated documentation files (the "Software"), to deal
|
17
|
+
* in the Software without restriction, including without limitation the rights
|
18
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
19
|
+
* copies of the Software, and to permit persons to whom the Software is
|
20
|
+
* furnished to do so, subject to the following conditions:
|
21
|
+
*
|
22
|
+
* The above copyright notice and this permission notice shall be included in
|
23
|
+
* all copies or substantial portions of the Software.
|
24
|
+
*
|
25
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
26
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
27
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
28
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
29
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
30
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
31
|
+
* THE SOFTWARE.
|
32
|
+
*/
|
33
|
+
var C = (
|
34
|
+
/** @class */
|
35
|
+
function() {
|
36
|
+
function r(e) {
|
37
|
+
e === void 0 && (e = {}), this.adapter = e;
|
38
|
+
}
|
39
|
+
return Object.defineProperty(r, "cssClasses", {
|
40
|
+
get: function() {
|
41
|
+
return {};
|
42
|
+
},
|
43
|
+
enumerable: !1,
|
44
|
+
configurable: !0
|
45
|
+
}), Object.defineProperty(r, "strings", {
|
46
|
+
get: function() {
|
47
|
+
return {};
|
48
|
+
},
|
49
|
+
enumerable: !1,
|
50
|
+
configurable: !0
|
51
|
+
}), Object.defineProperty(r, "numbers", {
|
52
|
+
get: function() {
|
53
|
+
return {};
|
54
|
+
},
|
55
|
+
enumerable: !1,
|
56
|
+
configurable: !0
|
57
|
+
}), Object.defineProperty(r, "defaultAdapter", {
|
58
|
+
get: function() {
|
59
|
+
return {};
|
60
|
+
},
|
61
|
+
enumerable: !1,
|
62
|
+
configurable: !0
|
63
|
+
}), r.prototype.init = function() {
|
64
|
+
}, r.prototype.destroy = function() {
|
65
|
+
}, r;
|
66
|
+
}()
|
67
|
+
);
|
68
|
+
/**
|
69
|
+
* @license
|
70
|
+
* Copyright 2017 Google Inc.
|
71
|
+
*
|
72
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
73
|
+
* of this software and associated documentation files (the "Software"), to deal
|
74
|
+
* in the Software without restriction, including without limitation the rights
|
75
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
76
|
+
* copies of the Software, and to permit persons to whom the Software is
|
77
|
+
* furnished to do so, subject to the following conditions:
|
78
|
+
*
|
79
|
+
* The above copyright notice and this permission notice shall be included in
|
80
|
+
* all copies or substantial portions of the Software.
|
81
|
+
*
|
82
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
83
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
84
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
85
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
86
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
87
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
88
|
+
* THE SOFTWARE.
|
89
|
+
*/
|
90
|
+
var F = {
|
91
|
+
ROOT: "mdc-form-field"
|
92
|
+
}, I = {
|
93
|
+
LABEL_SELECTOR: ".mdc-form-field > label"
|
94
|
+
};
|
95
|
+
/**
|
96
|
+
* @license
|
97
|
+
* Copyright 2017 Google Inc.
|
98
|
+
*
|
99
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
100
|
+
* of this software and associated documentation files (the "Software"), to deal
|
101
|
+
* in the Software without restriction, including without limitation the rights
|
102
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
103
|
+
* copies of the Software, and to permit persons to whom the Software is
|
104
|
+
* furnished to do so, subject to the following conditions:
|
105
|
+
*
|
106
|
+
* The above copyright notice and this permission notice shall be included in
|
107
|
+
* all copies or substantial portions of the Software.
|
108
|
+
*
|
109
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
110
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
111
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
112
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
113
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
114
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
115
|
+
* THE SOFTWARE.
|
116
|
+
*/
|
117
|
+
var O = (
|
118
|
+
/** @class */
|
119
|
+
function(r) {
|
120
|
+
b(e, r);
|
121
|
+
function e(t) {
|
122
|
+
var i = r.call(this, f(f({}, e.defaultAdapter), t)) || this;
|
123
|
+
return i.click = function() {
|
124
|
+
i.handleClick();
|
125
|
+
}, i;
|
126
|
+
}
|
127
|
+
return Object.defineProperty(e, "cssClasses", {
|
128
|
+
get: function() {
|
129
|
+
return F;
|
130
|
+
},
|
131
|
+
enumerable: !1,
|
132
|
+
configurable: !0
|
133
|
+
}), Object.defineProperty(e, "strings", {
|
134
|
+
get: function() {
|
135
|
+
return I;
|
136
|
+
},
|
137
|
+
enumerable: !1,
|
138
|
+
configurable: !0
|
139
|
+
}), Object.defineProperty(e, "defaultAdapter", {
|
140
|
+
get: function() {
|
141
|
+
return {
|
142
|
+
activateInputRipple: function() {
|
143
|
+
},
|
144
|
+
deactivateInputRipple: function() {
|
145
|
+
},
|
146
|
+
deregisterInteractionHandler: function() {
|
147
|
+
},
|
148
|
+
registerInteractionHandler: function() {
|
149
|
+
}
|
150
|
+
};
|
151
|
+
},
|
152
|
+
enumerable: !1,
|
153
|
+
configurable: !0
|
154
|
+
}), e.prototype.init = function() {
|
155
|
+
this.adapter.registerInteractionHandler("click", this.click);
|
156
|
+
}, e.prototype.destroy = function() {
|
157
|
+
this.adapter.deregisterInteractionHandler("click", this.click);
|
158
|
+
}, e.prototype.handleClick = function() {
|
159
|
+
var t = this;
|
160
|
+
this.adapter.activateInputRipple(), requestAnimationFrame(function() {
|
161
|
+
t.adapter.deactivateInputRipple();
|
162
|
+
});
|
163
|
+
}, e;
|
164
|
+
}(C)
|
165
|
+
);
|
166
|
+
const E = O;
|
167
|
+
/**
|
168
|
+
* @license
|
169
|
+
* Copyright 2018 Google LLC
|
170
|
+
* SPDX-License-Identifier: Apache-2.0
|
171
|
+
*/
|
172
|
+
class n extends v {
|
173
|
+
constructor() {
|
174
|
+
super(...arguments), this.alignEnd = !1, this.spaceBetween = !1, this.nowrap = !1, this.label = "", this.mdcFoundationClass = E;
|
175
|
+
}
|
176
|
+
createAdapter() {
|
177
|
+
return {
|
178
|
+
registerInteractionHandler: (e, t) => {
|
179
|
+
this.labelEl.addEventListener(e, t);
|
180
|
+
},
|
181
|
+
deregisterInteractionHandler: (e, t) => {
|
182
|
+
this.labelEl.removeEventListener(e, t);
|
183
|
+
},
|
184
|
+
activateInputRipple: async () => {
|
185
|
+
const e = this.input;
|
186
|
+
if (e instanceof p) {
|
187
|
+
const t = await e.ripple;
|
188
|
+
t && t.startPress();
|
189
|
+
}
|
190
|
+
},
|
191
|
+
deactivateInputRipple: async () => {
|
192
|
+
const e = this.input;
|
193
|
+
if (e instanceof p) {
|
194
|
+
const t = await e.ripple;
|
195
|
+
t && t.endPress();
|
196
|
+
}
|
197
|
+
}
|
198
|
+
};
|
199
|
+
}
|
200
|
+
get input() {
|
201
|
+
var e, t;
|
202
|
+
return (t = (e = this.slottedInputs) === null || e === void 0 ? void 0 : e[0]) !== null && t !== void 0 ? t : null;
|
203
|
+
}
|
204
|
+
render() {
|
205
|
+
const e = {
|
206
|
+
"mdc-form-field--align-end": this.alignEnd,
|
207
|
+
"mdc-form-field--space-between": this.spaceBetween,
|
208
|
+
"mdc-form-field--nowrap": this.nowrap
|
209
|
+
};
|
210
|
+
return u`
|
211
|
+
<div class="mdc-form-field ${_(e)}">
|
212
|
+
<slot></slot>
|
213
|
+
<label class="mdc-label"
|
214
|
+
@click="${this._labelClick}">${this.label}</label>
|
215
|
+
</div>`;
|
216
|
+
}
|
217
|
+
click() {
|
218
|
+
this._labelClick();
|
219
|
+
}
|
220
|
+
_labelClick() {
|
221
|
+
const e = this.input;
|
222
|
+
e && (e.focus(), e.click());
|
223
|
+
}
|
224
|
+
}
|
225
|
+
a([
|
226
|
+
d({ type: Boolean })
|
227
|
+
], n.prototype, "alignEnd", void 0);
|
228
|
+
a([
|
229
|
+
d({ type: Boolean })
|
230
|
+
], n.prototype, "spaceBetween", void 0);
|
231
|
+
a([
|
232
|
+
d({ type: Boolean })
|
233
|
+
], n.prototype, "nowrap", void 0);
|
234
|
+
a([
|
235
|
+
d({ type: String }),
|
236
|
+
w(async function(r) {
|
237
|
+
var e;
|
238
|
+
(e = this.input) === null || e === void 0 || e.setAttribute("aria-label", r);
|
239
|
+
})
|
240
|
+
], n.prototype, "label", void 0);
|
241
|
+
a([
|
242
|
+
g(".mdc-form-field")
|
243
|
+
], n.prototype, "mdcRoot", void 0);
|
244
|
+
a([
|
245
|
+
x("", !0, "*")
|
246
|
+
], n.prototype, "slottedInputs", void 0);
|
247
|
+
a([
|
248
|
+
g("label")
|
249
|
+
], n.prototype, "labelEl", void 0);
|
250
|
+
/**
|
251
|
+
* @license
|
252
|
+
* Copyright 2021 Google LLC
|
253
|
+
* SPDX-LIcense-Identifier: Apache-2.0
|
254
|
+
*/
|
255
|
+
const P = m`.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}:host{display:inline-flex}.mdc-form-field{width:100%}::slotted(*){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}::slotted(mwc-switch){margin-right:10px}[dir=rtl] ::slotted(mwc-switch),::slotted(mwc-switch[dir=rtl]){margin-left:10px}`, R = `::slotted(cv-switch){margin-right:10px}[dir=rtl] ::slotted(cv-switch),::slotted(cv-switch[dir=rtl]){margin-left:10px}
|
256
|
+
`;
|
257
|
+
var k = Object.defineProperty, j = Object.getOwnPropertyDescriptor, B = (r, e, t, i) => {
|
258
|
+
for (var o = i > 1 ? void 0 : i ? j(e, t) : e, s = r.length - 1, c; s >= 0; s--)
|
259
|
+
(c = r[s]) && (o = (i ? c(e, t, o) : c(o)) || o);
|
260
|
+
return i && o && k(e, t, o), o;
|
261
|
+
};
|
262
|
+
let l = class extends n {
|
263
|
+
};
|
264
|
+
l.styles = [
|
265
|
+
m`
|
266
|
+
${h(R)}
|
267
|
+
`,
|
268
|
+
P
|
269
|
+
];
|
270
|
+
l = B([
|
271
|
+
y("cv-formfield")
|
272
|
+
], l);
|
273
|
+
const G = l;
|
274
|
+
export {
|
275
|
+
l as CovalentFormfield,
|
276
|
+
G as default
|
277
|
+
};
|
package/icon-button.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { s as h, x as p, i as u, r as f, e as g } from "./query-assigned-elements-4a39219d.mjs";
|
2
|
-
import {
|
3
|
-
import { e as _, R as x } from "./ripple-handlers-
|
2
|
+
import { b as n } from "./tslib.es6-226581a4.mjs";
|
3
|
+
import { e as _, R as x } from "./ripple-handlers-38a43e50.mjs";
|
4
4
|
import { a as m } from "./aria-property-fa2717fe.mjs";
|
5
5
|
import { n as d } from "./property-9b6ea53b.mjs";
|
6
6
|
import { t as v } from "./state-b5e865db.mjs";
|
package/icon-check-toggle.mjs
CHANGED
@@ -2,16 +2,16 @@ import { i as m, r as h, x as l, e as f } from "./query-assigned-elements-4a3921
|
|
2
2
|
import { n as s } from "./property-9b6ea53b.mjs";
|
3
3
|
import { o as d } from "./class-map-4b94b017.mjs";
|
4
4
|
import { o as g } from "./style-map-bc3ed3e0.mjs";
|
5
|
-
import { C as y } from "./mwc-checkbox-base-
|
5
|
+
import { C as y } from "./mwc-checkbox-base-afeeff16.mjs";
|
6
6
|
import { s as v } from "./mwc-checkbox.css-8f4f1a9b.mjs";
|
7
|
-
import "./tslib.es6-
|
8
|
-
import "./ripple-handlers-
|
7
|
+
import "./tslib.es6-226581a4.mjs";
|
8
|
+
import "./ripple-handlers-38a43e50.mjs";
|
9
9
|
import "./base-element-67ae173f.mjs";
|
10
10
|
import "./utils-2932417c.mjs";
|
11
11
|
import "./state-b5e865db.mjs";
|
12
12
|
import "./query-d843aa92.mjs";
|
13
13
|
import "./aria-property-fa2717fe.mjs";
|
14
|
-
import "./form-element-
|
14
|
+
import "./form-element-7353b3c4.mjs";
|
15
15
|
import "./event-options-78d6cf94.mjs";
|
16
16
|
import "./if-defined-c367f208.mjs";
|
17
17
|
const u = `:host .mdc-toggle__background{position:absolute;top:4px;right:4px;width:15px;height:15px;border:none;color:var(--mdc-theme-text-icon-on-dark)}:host .mdc-toggle__checkmark-path{transition:stroke-dashoffset .18s cubic-bezier(.4,0,.6,1) 0ms;stroke:currentcolor;stroke-width:3.12px;stroke-dashoffset:29.7833;stroke-dasharray:29.7833}:host .showCheck{stroke-dashoffset:0;opacity:1}:host([width=fill]){width:100%}.container{display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;row-gap:8px;width:var(--width);height:var(--height);border:solid 2px var(--mdc-theme-border);border-radius:8px;color:var(--mdc-theme-text-primary-on-background);--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.container:before,.container:after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.container:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.container:after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.container.mdc-ripple-upgraded:before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.container.mdc-ripple-upgraded:after{top:0;left:0;transform:scale(0);transform-origin:center center}.container.mdc-ripple-upgraded--unbounded:after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.container.mdc-ripple-upgraded--foreground-activation:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.container.mdc-ripple-upgraded--foreground-deactivation:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.container:before,.container:after{top:0%;left:0%;width:100%;height:100%}.container.mdc-ripple-upgraded:before,.container.mdc-ripple-upgraded:after{top:var(--mdc-ripple-top, 0%);left:var(--mdc-ripple-left, 0%);width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.container.mdc-ripple-upgraded:after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.container:before,.container:after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.container:hover:before,.container.mdc-ripple-surface--hover:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.container.mdc-ripple-upgraded--background-focused:before,.container:not(.mdc-ripple-upgraded):focus:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.container:not(.mdc-ripple-upgraded):after{transition:opacity .15s linear}.container:not(.mdc-ripple-upgraded):active:after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.container.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, .12)}.container:after,.container:before{border-radius:8px}.container:hover{cursor:pointer}.cornerFill{background:linear-gradient(225deg,var(--mdc-theme-secondary) 28px,transparent 0)}.checked{border:solid 2px var(--mdc-theme-primary);background-color:var(--mdc-theme-surface-primary-highlight)}.checked:hover{background-color:var(--mdc-theme-surface-primary-highlight-hover)}[name=icon]::slotted(*){font-size:40px;color:var(--mdc-theme-text-icon-on-background)}[name=text]::slotted(*){color:var(--mdc-theme-text-primary-on-background);font-family:var(--mdc-typography-body1-font-family);font-size:var(--mdc-typography-body1-font-size);font-weight:var(--mdc-typography-body1-font-weight);line-height:var(--mdc-typography-body1-line-height);letter-spacing:.4px}[name=text]::slotted(*:last-child){color:var(--mdc-theme-text-secondary-on-background);font-family:var(--mdc-typography-body2-font-family);font-size:var(--mdc-typography-body2-font-size);font-weight:var(--mdc-typography-body2-font-weight);line-height:var(--mdc-typography-body2-line-height)}
|
package/icon-radio-toggle.mjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { i as p, r as s, x as c, e as l } from "./query-assigned-elements-4a39219d.mjs";
|
2
|
-
import { R as h } from "./mwc-radio-base-
|
2
|
+
import { R as h } from "./mwc-radio-base-18a887dd.mjs";
|
3
3
|
import { s as y } from "./mwc-radio.css-7454bb11.mjs";
|
4
4
|
import { n as g } from "./property-9b6ea53b.mjs";
|
5
|
-
import "./tslib.es6-
|
6
|
-
import "./ripple-handlers-
|
5
|
+
import "./tslib.es6-226581a4.mjs";
|
6
|
+
import "./ripple-handlers-38a43e50.mjs";
|
7
7
|
import "./base-element-67ae173f.mjs";
|
8
8
|
import "./utils-2932417c.mjs";
|
9
9
|
import "./state-b5e865db.mjs";
|
@@ -11,7 +11,7 @@ import "./query-d843aa92.mjs";
|
|
11
11
|
import "./class-map-4b94b017.mjs";
|
12
12
|
import "./style-map-bc3ed3e0.mjs";
|
13
13
|
import "./aria-property-fa2717fe.mjs";
|
14
|
-
import "./form-element-
|
14
|
+
import "./form-element-7353b3c4.mjs";
|
15
15
|
import "./observer-be7b92e2.mjs";
|
16
16
|
import "./event-options-78d6cf94.mjs";
|
17
17
|
import "./if-defined-c367f208.mjs";
|
package/icon.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { I as l } from "./mwc-icon-
|
1
|
+
import { I as l } from "./mwc-icon-28b10c70.mjs";
|
2
2
|
import { i as c, e as f } from "./query-assigned-elements-4a39219d.mjs";
|
3
|
-
import "./tslib.es6-
|
3
|
+
import "./tslib.es6-226581a4.mjs";
|
4
4
|
/**
|
5
5
|
* @license
|
6
6
|
* Copyright 2021 Google LLC
|