@florid-kit/components 0.9.17 → 0.9.19
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/components/minitile.d.ts +1 -0
- package/index.js +67 -47
- package/index.mjs +219 -196
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const $t = globalThis,
|
|
6
|
+
const $t = globalThis, Tt = $t.ShadowRoot && ($t.ShadyCSS === void 0 || $t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Mt = Symbol(), Qt = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
let he = class {
|
|
8
8
|
constructor(t, e, n) {
|
|
9
|
-
if (this._$cssResult$ = !0, n !==
|
|
9
|
+
if (this._$cssResult$ = !0, n !== Mt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = t, this.t = e;
|
|
11
11
|
}
|
|
12
12
|
get styleSheet() {
|
|
13
13
|
let t = this.o;
|
|
14
14
|
const e = this.t;
|
|
15
|
-
if (
|
|
15
|
+
if (Tt && t === void 0) {
|
|
16
16
|
const n = e !== void 0 && e.length === 1;
|
|
17
17
|
n && (t = Qt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && Qt.set(e, t));
|
|
18
18
|
}
|
|
@@ -22,20 +22,20 @@ let he = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const ye = (o) => new he(typeof o == "string" ? o : o + "", void 0,
|
|
25
|
+
const ye = (o) => new he(typeof o == "string" ? o : o + "", void 0, Mt), f = (o, ...t) => {
|
|
26
26
|
const e = o.length === 1 ? o[0] : t.reduce((n, i, r) => n + ((s) => {
|
|
27
27
|
if (s._$cssResult$ === !0) return s.cssText;
|
|
28
28
|
if (typeof s == "number") return s;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
30
|
})(i) + o[r + 1], o[0]);
|
|
31
|
-
return new he(e, o,
|
|
31
|
+
return new he(e, o, Mt);
|
|
32
32
|
}, me = (o, t) => {
|
|
33
|
-
if (
|
|
33
|
+
if (Tt) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
34
34
|
else for (const e of t) {
|
|
35
35
|
const n = document.createElement("style"), i = $t.litNonce;
|
|
36
36
|
i !== void 0 && n.setAttribute("nonce", i), n.textContent = e.cssText, o.appendChild(n);
|
|
37
37
|
}
|
|
38
|
-
}, Yt =
|
|
38
|
+
}, Yt = Tt ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
39
39
|
let e = "";
|
|
40
40
|
for (const n of t.cssRules) e += n.cssText;
|
|
41
41
|
return ye(e);
|
|
@@ -294,8 +294,8 @@ const Pe = (o, t) => {
|
|
|
294
294
|
let i, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = lt;
|
|
295
295
|
for (let h = 0; h < e; h++) {
|
|
296
296
|
const c = o[h];
|
|
297
|
-
let m, w, v = -1,
|
|
298
|
-
for (;
|
|
297
|
+
let m, w, v = -1, N = 0;
|
|
298
|
+
for (; N < c.length && (s.lastIndex = N, w = s.exec(c), w !== null); ) N = s.lastIndex, s === lt ? w[1] === "!--" ? s = ie : w[1] !== void 0 ? s = ne : w[2] !== void 0 ? (ue.test(w[2]) && (i = RegExp("</" + w[2], "g")), s = J) : w[3] !== void 0 && (s = J) : s === J ? w[0] === ">" ? (s = i ?? lt, v = -1) : w[1] === void 0 ? v = -2 : (v = s.lastIndex - w[2].length, m = w[1], s = w[3] === void 0 ? J : w[3] === '"' ? se : re) : s === se || s === re ? s = J : s === ie || s === ne ? s = lt : (s = J, i = void 0);
|
|
299
299
|
const Z = s === J && o[h + 1].startsWith("/>") ? " " : "";
|
|
300
300
|
r += s === lt ? c + Ae : v >= 0 ? (n.push(m), c.slice(0, v) + de + c.slice(v) + K + Z) : c + K + (v === -2 ? h : Z);
|
|
301
301
|
}
|
|
@@ -314,15 +314,15 @@ class vt {
|
|
|
314
314
|
for (; (i = Q.nextNode()) !== null && c.length < h; ) {
|
|
315
315
|
if (i.nodeType === 1) {
|
|
316
316
|
if (i.hasAttributes()) for (const v of i.getAttributeNames()) if (v.endsWith(de)) {
|
|
317
|
-
const
|
|
317
|
+
const N = w[s++], Z = i.getAttribute(v).split(K), wt = /([.?@])?(.*)/.exec(N);
|
|
318
318
|
c.push({ type: 1, index: r, name: wt[2], strings: Z, ctor: wt[1] === "." ? Oe : wt[1] === "?" ? ze : wt[1] === "@" ? Be : St }), i.removeAttribute(v);
|
|
319
319
|
} else v.startsWith(K) && (c.push({ type: 6, index: r }), i.removeAttribute(v));
|
|
320
320
|
if (ue.test(i.tagName)) {
|
|
321
|
-
const v = i.textContent.split(K),
|
|
322
|
-
if (
|
|
321
|
+
const v = i.textContent.split(K), N = v.length - 1;
|
|
322
|
+
if (N > 0) {
|
|
323
323
|
i.textContent = _t ? _t.emptyScript : "";
|
|
324
|
-
for (let Z = 0; Z <
|
|
325
|
-
i.append(v[
|
|
324
|
+
for (let Z = 0; Z < N; Z++) i.append(v[Z], pt()), Q.nextNode(), c.push({ type: 2, index: ++r });
|
|
325
|
+
i.append(v[N], pt());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
} else if (i.nodeType === 8) if (i.data === pe) c.push({ type: 2, index: r });
|
|
@@ -564,7 +564,7 @@ const y = (o) => (t, e) => {
|
|
|
564
564
|
* Copyright 2017 Google LLC
|
|
565
565
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
566
566
|
*/
|
|
567
|
-
const
|
|
567
|
+
const Te = { attribute: !0, type: String, converter: Ct, reflect: !1, hasChanged: jt }, Me = (o = Te, t, e) => {
|
|
568
568
|
const { kind: n, metadata: i } = e;
|
|
569
569
|
let r = globalThis.litPropertyMetadata.get(i);
|
|
570
570
|
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), n === "setter" && ((o = Object.create(o)).wrapped = !0), r.set(e.name, o), n === "accessor") {
|
|
@@ -586,7 +586,7 @@ const Me = { attribute: !0, type: String, converter: Ct, reflect: !1, hasChanged
|
|
|
586
586
|
throw Error("Unsupported decorator location: " + n);
|
|
587
587
|
};
|
|
588
588
|
function a(o) {
|
|
589
|
-
return (t, e) => typeof e == "object" ?
|
|
589
|
+
return (t, e) => typeof e == "object" ? Me(o, t, e) : ((n, i, r) => {
|
|
590
590
|
const s = i.hasOwnProperty(r);
|
|
591
591
|
return i.constructor.createProperty(r, n), s ? Object.getOwnPropertyDescriptor(i, r) : void 0;
|
|
592
592
|
})(o, t, e);
|
|
@@ -772,7 +772,7 @@ const Ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
|
|
|
772
772
|
</svg>
|
|
773
773
|
`, bo = `<svg xmlns="http://www.w3.org/2000/svg" width="10" height="8" viewBox="0 0 10 8" fill="none">
|
|
774
774
|
<path d="M1 4.5415L3 6.5415L9 0.541504" stroke="#FBF9F6" stroke-linecap="round" stroke-linejoin="round"/>
|
|
775
|
-
</svg>`,
|
|
775
|
+
</svg>`, F = {
|
|
776
776
|
wishlist: Ne,
|
|
777
777
|
playerv: Fe,
|
|
778
778
|
chevronRight: Ue,
|
|
@@ -1048,13 +1048,13 @@ const le = Vt(So);
|
|
|
1048
1048
|
* Copyright 2018 Google LLC
|
|
1049
1049
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1050
1050
|
*/
|
|
1051
|
-
const
|
|
1051
|
+
const S = (o) => o ?? d;
|
|
1052
1052
|
var Ao = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, H = (o, t, e, n) => {
|
|
1053
1053
|
for (var i = n > 1 ? void 0 : n ? Eo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1054
1054
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
1055
1055
|
return n && i && Ao(t, e, i), i;
|
|
1056
1056
|
};
|
|
1057
|
-
let
|
|
1057
|
+
let A = class extends u {
|
|
1058
1058
|
constructor() {
|
|
1059
1059
|
super(...arguments), this.bgstyle = "background-light", this.size = "medium", this.status = "empty", this.type = "button", this.strokewidth = "1", this.icon = "wishlist", this.disabled = !1, this.showSrLabel = !1, this.srLabel = "";
|
|
1060
1060
|
}
|
|
@@ -1062,7 +1062,7 @@ let S = class extends u {
|
|
|
1062
1062
|
super.updated(o), this.style.setProperty("--icon-stroke-width", this.strokewidth);
|
|
1063
1063
|
}
|
|
1064
1064
|
render() {
|
|
1065
|
-
const o =
|
|
1065
|
+
const o = F[this.icon] ?? "", t = `icon-${this.icon}`, e = o.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"').replace(/<path\b/g, '<path part="icon-path"').replace(/<g\b/g, '<g part="icon-group"').replace(/<circle\b/g, '<circle part="icon-circle"'), n = this.showSrLabel ? l`<span class="sr-only">${this.srLabel}</span>` : null, i = this.showSrLabel ? null : "icon";
|
|
1066
1066
|
return l`
|
|
1067
1067
|
${this.type === "span" ? l`
|
|
1068
1068
|
<span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
|
|
@@ -1071,7 +1071,7 @@ let S = class extends u {
|
|
|
1071
1071
|
` : l`
|
|
1072
1072
|
<button
|
|
1073
1073
|
type="button"
|
|
1074
|
-
aria-label=${
|
|
1074
|
+
aria-label=${S(i)}
|
|
1075
1075
|
class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
|
|
1076
1076
|
?disabled="${this.disabled}"
|
|
1077
1077
|
>
|
|
@@ -1082,7 +1082,7 @@ let S = class extends u {
|
|
|
1082
1082
|
`;
|
|
1083
1083
|
}
|
|
1084
1084
|
};
|
|
1085
|
-
|
|
1085
|
+
A.styles = f`
|
|
1086
1086
|
:host {
|
|
1087
1087
|
display: inline-flex;
|
|
1088
1088
|
justify-content: center;
|
|
@@ -1296,34 +1296,34 @@ S.styles = f`
|
|
|
1296
1296
|
`;
|
|
1297
1297
|
H([
|
|
1298
1298
|
a({ type: String, reflect: !0 })
|
|
1299
|
-
],
|
|
1299
|
+
], A.prototype, "bgstyle", 2);
|
|
1300
1300
|
H([
|
|
1301
1301
|
a({ type: String, reflect: !0 })
|
|
1302
|
-
],
|
|
1302
|
+
], A.prototype, "size", 2);
|
|
1303
1303
|
H([
|
|
1304
1304
|
a({ type: String, reflect: !0 })
|
|
1305
|
-
],
|
|
1305
|
+
], A.prototype, "status", 2);
|
|
1306
1306
|
H([
|
|
1307
1307
|
a({ type: String, reflect: !0 })
|
|
1308
|
-
],
|
|
1308
|
+
], A.prototype, "type", 2);
|
|
1309
1309
|
H([
|
|
1310
1310
|
a({ type: String })
|
|
1311
|
-
],
|
|
1311
|
+
], A.prototype, "strokewidth", 2);
|
|
1312
1312
|
H([
|
|
1313
1313
|
a({ type: String })
|
|
1314
|
-
],
|
|
1314
|
+
], A.prototype, "icon", 2);
|
|
1315
1315
|
H([
|
|
1316
1316
|
a({ type: Boolean, reflect: !0 })
|
|
1317
|
-
],
|
|
1317
|
+
], A.prototype, "disabled", 2);
|
|
1318
1318
|
H([
|
|
1319
1319
|
a({ type: Boolean })
|
|
1320
|
-
],
|
|
1320
|
+
], A.prototype, "showSrLabel", 2);
|
|
1321
1321
|
H([
|
|
1322
1322
|
a({ type: String })
|
|
1323
|
-
],
|
|
1324
|
-
|
|
1323
|
+
], A.prototype, "srLabel", 2);
|
|
1324
|
+
A = H([
|
|
1325
1325
|
y("o-icon-button")
|
|
1326
|
-
],
|
|
1326
|
+
], A);
|
|
1327
1327
|
var Lo = Object.defineProperty, Po = Object.getOwnPropertyDescriptor, g = (o, t, e, n) => {
|
|
1328
1328
|
for (var i = n > 1 ? void 0 : n ? Po(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
1329
1329
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
@@ -1875,7 +1875,7 @@ let b = class extends zo {
|
|
|
1875
1875
|
renderIcon(o) {
|
|
1876
1876
|
const t = o === "start" ? this.startIconModel : this.endIconModel;
|
|
1877
1877
|
if (!t) return d;
|
|
1878
|
-
const e =
|
|
1878
|
+
const e = F[t].replace(
|
|
1879
1879
|
"<svg",
|
|
1880
1880
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
1881
1881
|
);
|
|
@@ -2198,7 +2198,7 @@ let rt = class extends u {
|
|
|
2198
2198
|
(o.key === "Enter" || o.key === " ") && (o.preventDefault(), this.toggleStatus());
|
|
2199
2199
|
}
|
|
2200
2200
|
render() {
|
|
2201
|
-
const o =
|
|
2201
|
+
const o = F.wishlist.replace(
|
|
2202
2202
|
"<svg",
|
|
2203
2203
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
2204
2204
|
);
|
|
@@ -2296,12 +2296,12 @@ At([
|
|
|
2296
2296
|
rt = At([
|
|
2297
2297
|
y("o-wishlist-button")
|
|
2298
2298
|
], rt);
|
|
2299
|
-
var Ho = Object.defineProperty,
|
|
2300
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
2299
|
+
var Ho = Object.defineProperty, To = Object.getOwnPropertyDescriptor, ot = (o, t, e, n) => {
|
|
2300
|
+
for (var i = n > 1 ? void 0 : n ? To(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2301
2301
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2302
2302
|
return n && i && Ho(t, e, i), i;
|
|
2303
2303
|
};
|
|
2304
|
-
let
|
|
2304
|
+
let U = class extends u {
|
|
2305
2305
|
constructor() {
|
|
2306
2306
|
super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
|
|
2307
2307
|
}
|
|
@@ -2313,7 +2313,7 @@ let F = class extends u {
|
|
|
2313
2313
|
return l`
|
|
2314
2314
|
<a
|
|
2315
2315
|
href="${o}"
|
|
2316
|
-
target="${
|
|
2316
|
+
target="${S(this.target || void 0)}"
|
|
2317
2317
|
@click="${this._handleClick}"
|
|
2318
2318
|
>
|
|
2319
2319
|
${this.endIcon && this.reverseEndIcon ? l`
|
|
@@ -2339,7 +2339,7 @@ let F = class extends u {
|
|
|
2339
2339
|
`;
|
|
2340
2340
|
}
|
|
2341
2341
|
};
|
|
2342
|
-
|
|
2342
|
+
U.styles = f`
|
|
2343
2343
|
:host([template="standard"]) a {
|
|
2344
2344
|
color: var(--color-content-action-secondary);
|
|
2345
2345
|
font-size: var(--font-size-200);
|
|
@@ -2429,29 +2429,29 @@ F.styles = f`
|
|
|
2429
2429
|
`;
|
|
2430
2430
|
ot([
|
|
2431
2431
|
a({ type: String })
|
|
2432
|
-
],
|
|
2432
|
+
], U.prototype, "href", 2);
|
|
2433
2433
|
ot([
|
|
2434
2434
|
a({ type: String })
|
|
2435
|
-
],
|
|
2435
|
+
], U.prototype, "target", 2);
|
|
2436
2436
|
ot([
|
|
2437
2437
|
a({ type: String, reflect: !0 })
|
|
2438
|
-
],
|
|
2438
|
+
], U.prototype, "template", 2);
|
|
2439
2439
|
ot([
|
|
2440
2440
|
a({ type: Boolean, reflect: !0 })
|
|
2441
|
-
],
|
|
2441
|
+
], U.prototype, "inverse", 2);
|
|
2442
2442
|
ot([
|
|
2443
2443
|
a({ type: Boolean, reflect: !0 })
|
|
2444
|
-
],
|
|
2444
|
+
], U.prototype, "endIcon", 2);
|
|
2445
2445
|
ot([
|
|
2446
2446
|
a({ type: Boolean, reflect: !0 })
|
|
2447
|
-
],
|
|
2448
|
-
|
|
2447
|
+
], U.prototype, "reverseEndIcon", 2);
|
|
2448
|
+
U = ot([
|
|
2449
2449
|
y("o-link")
|
|
2450
|
-
],
|
|
2451
|
-
var
|
|
2450
|
+
], U);
|
|
2451
|
+
var Mo = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, Et = (o, t, e, n) => {
|
|
2452
2452
|
for (var i = n > 1 ? void 0 : n ? jo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2453
2453
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2454
|
-
return n && i &&
|
|
2454
|
+
return n && i && Mo(t, e, i), i;
|
|
2455
2455
|
};
|
|
2456
2456
|
let st = class extends u {
|
|
2457
2457
|
constructor() {
|
|
@@ -2472,7 +2472,7 @@ let st = class extends u {
|
|
|
2472
2472
|
<div class="rating">
|
|
2473
2473
|
<div class="stars">
|
|
2474
2474
|
${o.map(
|
|
2475
|
-
(t) => l`<span class="star">${C(
|
|
2475
|
+
(t) => l`<span class="star">${C(F[t] ?? "")}</span>`
|
|
2476
2476
|
)}
|
|
2477
2477
|
</div>
|
|
2478
2478
|
${this.reviewCount != null && this.href != null ? l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
|
|
@@ -2954,7 +2954,7 @@ Kt([
|
|
|
2954
2954
|
bt = Kt([
|
|
2955
2955
|
y("o-tooltip")
|
|
2956
2956
|
], bt);
|
|
2957
|
-
var Zo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor,
|
|
2957
|
+
var Zo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, V = (o, t, e, n) => {
|
|
2958
2958
|
for (var i = n > 1 ? void 0 : n ? Ko(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
2959
2959
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
2960
2960
|
return n && i && Zo(t, e, i), i;
|
|
@@ -3025,7 +3025,7 @@ let z = class extends u {
|
|
|
3025
3025
|
this.options.length > 0 && (this.options.some((e) => e.value === this.value) || (this.value = this.options[0].value));
|
|
3026
3026
|
}
|
|
3027
3027
|
render() {
|
|
3028
|
-
const o =
|
|
3028
|
+
const o = F.checkstroke.replace(
|
|
3029
3029
|
"<svg",
|
|
3030
3030
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
3031
3031
|
), t = this.options.find((e) => e.value === this.value);
|
|
@@ -3222,31 +3222,31 @@ z.styles = f`
|
|
|
3222
3222
|
display: none;
|
|
3223
3223
|
}
|
|
3224
3224
|
`;
|
|
3225
|
-
|
|
3225
|
+
V([
|
|
3226
3226
|
a({ type: Array, reflect: !0 })
|
|
3227
3227
|
], z.prototype, "options", 2);
|
|
3228
|
-
|
|
3228
|
+
V([
|
|
3229
3229
|
a({ type: String, reflect: !0 })
|
|
3230
3230
|
], z.prototype, "value", 2);
|
|
3231
|
-
|
|
3231
|
+
V([
|
|
3232
3232
|
a({ type: String, reflect: !0 })
|
|
3233
3233
|
], z.prototype, "name", 2);
|
|
3234
|
-
|
|
3234
|
+
V([
|
|
3235
3235
|
a({ type: Boolean, reflect: !0 })
|
|
3236
3236
|
], z.prototype, "disabled", 2);
|
|
3237
|
-
|
|
3237
|
+
V([
|
|
3238
3238
|
a({ type: String, reflect: !0 })
|
|
3239
3239
|
], z.prototype, "width", 2);
|
|
3240
|
-
|
|
3240
|
+
V([
|
|
3241
3241
|
et()
|
|
3242
3242
|
], z.prototype, "open", 2);
|
|
3243
|
-
|
|
3243
|
+
V([
|
|
3244
3244
|
et()
|
|
3245
3245
|
], z.prototype, "activeIndex", 2);
|
|
3246
|
-
|
|
3246
|
+
V([
|
|
3247
3247
|
et()
|
|
3248
3248
|
], z.prototype, "menuWidth", 2);
|
|
3249
|
-
z =
|
|
3249
|
+
z = V([
|
|
3250
3250
|
y("o-dropdown")
|
|
3251
3251
|
], z);
|
|
3252
3252
|
var Wo = Object.getOwnPropertyDescriptor, Go = (o, t, e, n) => {
|
|
@@ -3314,12 +3314,12 @@ Ht.styles = f`
|
|
|
3314
3314
|
Ht = Go([
|
|
3315
3315
|
y("o-dots")
|
|
3316
3316
|
], Ht);
|
|
3317
|
-
var Xo = Object.defineProperty, Jo = Object.getOwnPropertyDescriptor,
|
|
3317
|
+
var Xo = Object.defineProperty, Jo = Object.getOwnPropertyDescriptor, T = (o, t, e, n) => {
|
|
3318
3318
|
for (var i = n > 1 ? void 0 : n ? Jo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3319
3319
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3320
3320
|
return n && i && Xo(t, e, i), i;
|
|
3321
3321
|
};
|
|
3322
|
-
let
|
|
3322
|
+
let E = class extends u {
|
|
3323
3323
|
constructor() {
|
|
3324
3324
|
super(...arguments), this.options = [], this.value = "", this.name = "", this.additionaltext = "+X variant(s)", this.disabled = !1, this.width = "100%", this.open = !1, this.activeIndex = -1, this.menuWidth = "", this._handleOutsideClick = (o) => {
|
|
3325
3325
|
this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
|
|
@@ -3385,7 +3385,7 @@ let A = class extends u {
|
|
|
3385
3385
|
this.options.length > 0 && (this.options.some((t) => t.value === this.value) || (this.value = this.options[0].value));
|
|
3386
3386
|
}
|
|
3387
3387
|
render() {
|
|
3388
|
-
const o =
|
|
3388
|
+
const o = F.checkstroke.replace(
|
|
3389
3389
|
"<svg",
|
|
3390
3390
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
3391
3391
|
), t = this.options.find((e) => e.value === this.value);
|
|
@@ -3403,7 +3403,7 @@ let A = class extends u {
|
|
|
3403
3403
|
?disabled=${this.disabled}
|
|
3404
3404
|
class="btn-dropdown"
|
|
3405
3405
|
>
|
|
3406
|
-
<img alt="${
|
|
3406
|
+
<img alt="${S(t == null ? void 0 : t.label)}" src="${S(t == null ? void 0 : t.imgurl)}" />
|
|
3407
3407
|
<span id="dropdown-label" class="label">
|
|
3408
3408
|
${t ? t.label : "Select an option"}
|
|
3409
3409
|
</span>
|
|
@@ -3438,11 +3438,11 @@ let A = class extends u {
|
|
|
3438
3438
|
class="${n === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
|
|
3439
3439
|
@click=${() => this.selectOption(e)}
|
|
3440
3440
|
>
|
|
3441
|
-
<a href="${
|
|
3442
|
-
<img alt="${
|
|
3441
|
+
<a href="${S(e.url)}">
|
|
3442
|
+
<img alt="${S(e.label)}" src="${S(e.imgurl)}" />
|
|
3443
3443
|
<span class="label">${e.label}</span>
|
|
3444
3444
|
<div class="right">
|
|
3445
|
-
<span class="additional-text">${
|
|
3445
|
+
<span class="additional-text">${S(e.additionaltext)}</span>
|
|
3446
3446
|
${e.value === this.value && !e.additionaltext ? l`
|
|
3447
3447
|
<span class="check">${C(o)}</span>` : null}
|
|
3448
3448
|
</div>
|
|
@@ -3456,7 +3456,7 @@ let A = class extends u {
|
|
|
3456
3456
|
`;
|
|
3457
3457
|
}
|
|
3458
3458
|
};
|
|
3459
|
-
|
|
3459
|
+
E.styles = f`
|
|
3460
3460
|
:host {
|
|
3461
3461
|
display: inline-block;
|
|
3462
3462
|
position: relative;
|
|
@@ -3632,36 +3632,36 @@ A.styles = f`
|
|
|
3632
3632
|
display: none;
|
|
3633
3633
|
}
|
|
3634
3634
|
`;
|
|
3635
|
-
|
|
3635
|
+
T([
|
|
3636
3636
|
a({ type: Array, reflect: !0 })
|
|
3637
|
-
],
|
|
3638
|
-
|
|
3637
|
+
], E.prototype, "options", 2);
|
|
3638
|
+
T([
|
|
3639
3639
|
a({ type: String, reflect: !0 })
|
|
3640
|
-
],
|
|
3641
|
-
|
|
3640
|
+
], E.prototype, "value", 2);
|
|
3641
|
+
T([
|
|
3642
3642
|
a({ type: String, reflect: !0 })
|
|
3643
|
-
],
|
|
3644
|
-
|
|
3643
|
+
], E.prototype, "name", 2);
|
|
3644
|
+
T([
|
|
3645
3645
|
a({ type: String, reflect: !0 })
|
|
3646
|
-
],
|
|
3647
|
-
|
|
3646
|
+
], E.prototype, "additionaltext", 2);
|
|
3647
|
+
T([
|
|
3648
3648
|
a({ type: Boolean, reflect: !0 })
|
|
3649
|
-
],
|
|
3650
|
-
|
|
3649
|
+
], E.prototype, "disabled", 2);
|
|
3650
|
+
T([
|
|
3651
3651
|
a({ type: String, reflect: !0 })
|
|
3652
|
-
],
|
|
3653
|
-
|
|
3652
|
+
], E.prototype, "width", 2);
|
|
3653
|
+
T([
|
|
3654
3654
|
et()
|
|
3655
|
-
],
|
|
3656
|
-
|
|
3655
|
+
], E.prototype, "open", 2);
|
|
3656
|
+
T([
|
|
3657
3657
|
et()
|
|
3658
|
-
],
|
|
3659
|
-
|
|
3658
|
+
], E.prototype, "activeIndex", 2);
|
|
3659
|
+
T([
|
|
3660
3660
|
et()
|
|
3661
|
-
],
|
|
3662
|
-
|
|
3661
|
+
], E.prototype, "menuWidth", 2);
|
|
3662
|
+
E = T([
|
|
3663
3663
|
y("o-dropdown-variant")
|
|
3664
|
-
],
|
|
3664
|
+
], E);
|
|
3665
3665
|
/**
|
|
3666
3666
|
* @license
|
|
3667
3667
|
* Copyright 2018 Google LLC
|
|
@@ -3707,13 +3707,13 @@ let gt = class extends u {
|
|
|
3707
3707
|
width: `${this.imageSize}px`,
|
|
3708
3708
|
height: `${this.imageSize}px`
|
|
3709
3709
|
}, e = l`
|
|
3710
|
-
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${
|
|
3710
|
+
${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${S(this.option.title)}" aria-hidden="true" style=${Yo(t)} />` : ""}
|
|
3711
3711
|
<div class="m-reassurance-content">
|
|
3712
|
-
<h3 class="a-reassurance-text">${
|
|
3713
|
-
<p class="a-reassurance-description">${
|
|
3712
|
+
<h3 class="a-reassurance-text">${S(this.option.title)}</h3>
|
|
3713
|
+
<p class="a-reassurance-description">${S(this.option.description)}</p>
|
|
3714
3714
|
</div>
|
|
3715
3715
|
`;
|
|
3716
|
-
return o ? l`<a href="${
|
|
3716
|
+
return o ? l`<a href="${S(this.option.url)}" class="reassurance-item clickable">${e}</a>` : l`<div class="reassurance-item">${e}</div>`;
|
|
3717
3717
|
}
|
|
3718
3718
|
};
|
|
3719
3719
|
gt.styles = f`
|
|
@@ -3807,13 +3807,13 @@ Wt([
|
|
|
3807
3807
|
gt = Wt([
|
|
3808
3808
|
y("o-reassurance")
|
|
3809
3809
|
], gt);
|
|
3810
|
-
var oi = Object.defineProperty, ii = Object.getOwnPropertyDescriptor,
|
|
3810
|
+
var oi = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, q = (o, t, e, n) => {
|
|
3811
3811
|
for (var i = n > 1 ? void 0 : n ? ii(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3812
3812
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3813
3813
|
return n && i && oi(t, e, i), i;
|
|
3814
3814
|
};
|
|
3815
3815
|
const ni = Ft(u);
|
|
3816
|
-
let
|
|
3816
|
+
let L = class extends ni {
|
|
3817
3817
|
constructor() {
|
|
3818
3818
|
super(...arguments), this.link = "", this.name = "", this.value = "", this.text = "", this.size = "standard", this.selected = !1, this.fullwidth = !1, this.inactive = !1;
|
|
3819
3819
|
}
|
|
@@ -3836,7 +3836,7 @@ let E = class extends ni {
|
|
|
3836
3836
|
`;
|
|
3837
3837
|
}
|
|
3838
3838
|
};
|
|
3839
|
-
|
|
3839
|
+
L.styles = f`
|
|
3840
3840
|
:host {
|
|
3841
3841
|
cursor: pointer;
|
|
3842
3842
|
display: inline-flex;
|
|
@@ -3926,33 +3926,33 @@ E.styles = f`
|
|
|
3926
3926
|
align-items: center;
|
|
3927
3927
|
}
|
|
3928
3928
|
`;
|
|
3929
|
-
|
|
3929
|
+
q([
|
|
3930
3930
|
a({ type: String, reflect: !0 })
|
|
3931
|
-
],
|
|
3932
|
-
|
|
3931
|
+
], L.prototype, "link", 2);
|
|
3932
|
+
q([
|
|
3933
3933
|
a({ reflect: !0 })
|
|
3934
|
-
],
|
|
3935
|
-
|
|
3934
|
+
], L.prototype, "name", 2);
|
|
3935
|
+
q([
|
|
3936
3936
|
a({ reflect: !0 })
|
|
3937
|
-
],
|
|
3938
|
-
|
|
3937
|
+
], L.prototype, "value", 2);
|
|
3938
|
+
q([
|
|
3939
3939
|
a({ type: String })
|
|
3940
|
-
],
|
|
3941
|
-
|
|
3940
|
+
], L.prototype, "text", 2);
|
|
3941
|
+
q([
|
|
3942
3942
|
a({ type: String, reflect: !0 })
|
|
3943
|
-
],
|
|
3944
|
-
|
|
3943
|
+
], L.prototype, "size", 2);
|
|
3944
|
+
q([
|
|
3945
3945
|
a({ type: Boolean, reflect: !0 })
|
|
3946
|
-
],
|
|
3947
|
-
|
|
3946
|
+
], L.prototype, "selected", 2);
|
|
3947
|
+
q([
|
|
3948
3948
|
a({ type: Boolean, reflect: !0 })
|
|
3949
|
-
],
|
|
3950
|
-
|
|
3949
|
+
], L.prototype, "fullwidth", 2);
|
|
3950
|
+
q([
|
|
3951
3951
|
a({ type: Boolean, reflect: !0 })
|
|
3952
|
-
],
|
|
3953
|
-
|
|
3952
|
+
], L.prototype, "inactive", 2);
|
|
3953
|
+
L = q([
|
|
3954
3954
|
y("o-chip")
|
|
3955
|
-
],
|
|
3955
|
+
], L);
|
|
3956
3956
|
var ri = Object.defineProperty, si = Object.getOwnPropertyDescriptor, Gt = (o, t, e, n) => {
|
|
3957
3957
|
for (var i = n > 1 ? void 0 : n ? si(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3958
3958
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
@@ -3963,7 +3963,7 @@ let yt = class extends u {
|
|
|
3963
3963
|
super(), this.name = "", this.value = "", this.addEventListener("selected", this.onChipSelected);
|
|
3964
3964
|
}
|
|
3965
3965
|
onChipSelected(o) {
|
|
3966
|
-
const t = o.target instanceof
|
|
3966
|
+
const t = o.target instanceof L ? o.target : null;
|
|
3967
3967
|
t != null && t.link || (this.name = (t == null ? void 0 : t.name) || "", this.value = (t == null ? void 0 : t.value) || "", this.querySelectorAll("o-chip").forEach((e) => {
|
|
3968
3968
|
e !== t && (e.selected = !1);
|
|
3969
3969
|
}));
|
|
@@ -3991,13 +3991,13 @@ Gt([
|
|
|
3991
3991
|
yt = Gt([
|
|
3992
3992
|
y("o-chipset")
|
|
3993
3993
|
], yt);
|
|
3994
|
-
var ai = Object.defineProperty, li = Object.getOwnPropertyDescriptor,
|
|
3994
|
+
var ai = Object.defineProperty, li = Object.getOwnPropertyDescriptor, M = (o, t, e, n) => {
|
|
3995
3995
|
for (var i = n > 1 ? void 0 : n ? li(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
3996
3996
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
3997
3997
|
return n && i && ai(t, e, i), i;
|
|
3998
3998
|
};
|
|
3999
3999
|
const ci = Ft(u);
|
|
4000
|
-
let
|
|
4000
|
+
let P = class extends ci {
|
|
4001
4001
|
constructor() {
|
|
4002
4002
|
super(...arguments), this.name = "", this.value = "", this.type = "", this.text = "", this.selected = !1, this.disabled = !1, this.fullwidth = !1, this.crossIconName = "cross", this.strikethroughImgName = "strikeDiagonal";
|
|
4003
4003
|
}
|
|
@@ -4009,7 +4009,7 @@ let L = class extends ci {
|
|
|
4009
4009
|
this.dispatchEvent(e), e.defaultPrevented && o.preventDefault(), this.selected = t.selected;
|
|
4010
4010
|
}
|
|
4011
4011
|
crossIcon() {
|
|
4012
|
-
const o =
|
|
4012
|
+
const o = F[this.crossIconName].replace(
|
|
4013
4013
|
"<svg",
|
|
4014
4014
|
'<svg aria-hidden="true" focusable="false" part="svg"'
|
|
4015
4015
|
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
@@ -4047,7 +4047,7 @@ let L = class extends ci {
|
|
|
4047
4047
|
`;
|
|
4048
4048
|
}
|
|
4049
4049
|
};
|
|
4050
|
-
|
|
4050
|
+
P.styles = f`
|
|
4051
4051
|
:host {
|
|
4052
4052
|
cursor: pointer;
|
|
4053
4053
|
display: inline-flex;
|
|
@@ -4173,44 +4173,44 @@ L.styles = f`
|
|
|
4173
4173
|
}
|
|
4174
4174
|
}
|
|
4175
4175
|
`;
|
|
4176
|
-
|
|
4176
|
+
M([
|
|
4177
4177
|
a({ reflect: !0 })
|
|
4178
|
-
],
|
|
4179
|
-
|
|
4178
|
+
], P.prototype, "name", 2);
|
|
4179
|
+
M([
|
|
4180
4180
|
a({ reflect: !0 })
|
|
4181
|
-
],
|
|
4182
|
-
|
|
4181
|
+
], P.prototype, "value", 2);
|
|
4182
|
+
M([
|
|
4183
4183
|
a({ type: String, reflect: !0 })
|
|
4184
|
-
],
|
|
4185
|
-
|
|
4184
|
+
], P.prototype, "type", 2);
|
|
4185
|
+
M([
|
|
4186
4186
|
a({ type: String, reflect: !0 })
|
|
4187
|
-
],
|
|
4188
|
-
|
|
4187
|
+
], P.prototype, "href", 2);
|
|
4188
|
+
M([
|
|
4189
4189
|
a({ type: String, reflect: !0, attribute: "data-href" })
|
|
4190
|
-
],
|
|
4191
|
-
|
|
4190
|
+
], P.prototype, "dataHref", 2);
|
|
4191
|
+
M([
|
|
4192
4192
|
a({ type: String })
|
|
4193
|
-
],
|
|
4194
|
-
|
|
4193
|
+
], P.prototype, "text", 2);
|
|
4194
|
+
M([
|
|
4195
4195
|
a({ type: Boolean, reflect: !0 })
|
|
4196
|
-
],
|
|
4197
|
-
|
|
4196
|
+
], P.prototype, "selected", 2);
|
|
4197
|
+
M([
|
|
4198
4198
|
a({ type: Boolean, reflect: !0 })
|
|
4199
|
-
],
|
|
4200
|
-
|
|
4199
|
+
], P.prototype, "disabled", 2);
|
|
4200
|
+
M([
|
|
4201
4201
|
a({ type: Boolean, reflect: !0 })
|
|
4202
|
-
],
|
|
4203
|
-
|
|
4202
|
+
], P.prototype, "fullwidth", 2);
|
|
4203
|
+
P = M([
|
|
4204
4204
|
y("o-filter-chip")
|
|
4205
|
-
],
|
|
4206
|
-
var hi = Object.defineProperty,
|
|
4205
|
+
], P);
|
|
4206
|
+
var hi = Object.defineProperty, j = (o, t, e, n) => {
|
|
4207
4207
|
for (var i = void 0, r = o.length - 1, s; r >= 0; r--)
|
|
4208
4208
|
(s = o[r]) && (i = s(t, e, i) || i);
|
|
4209
4209
|
return i && hi(t, e, i), i;
|
|
4210
4210
|
};
|
|
4211
4211
|
const Jt = class Jt extends u {
|
|
4212
4212
|
constructor() {
|
|
4213
|
-
super(...arguments), this.type = "cart | chevron", this.titleProduct = "", this.volume = "", this.perLiter = "", this.mainPrice = "", this.imageUrl = "https://placehold.co/56x70", this.altImage = "", this.fullwidth = !1;
|
|
4213
|
+
super(...arguments), this.type = "cart | chevron", this.titleProduct = "", this.volume = "", this.perLiter = "", this.mainPrice = "", this.imageUrl = "https://placehold.co/56x70", this.altImage = "", this.fullwidth = !1, this.tagText = "";
|
|
4214
4214
|
}
|
|
4215
4215
|
onClick() {
|
|
4216
4216
|
typeof this.onClickTile == "function" && this.onClickTile();
|
|
@@ -4245,6 +4245,7 @@ const Jt = class Jt extends u {
|
|
|
4245
4245
|
class="tile ${this.fullwidth ? "fullwidth" : ""} ${this.type === "chevron" ? "fullpointer" : ""}" @click=${this.onClick}>
|
|
4246
4246
|
${this.imageUrl ? l`<img src="${this.imageUrl}" alt="${this.altImage || ""}" />` : ""}
|
|
4247
4247
|
<div class="info">
|
|
4248
|
+
${this.tagText ? l`<o-tag bgstyle="background-emphasis">${this.tagText}</o-tag>` : ""}
|
|
4248
4249
|
${this.titleProduct ? l`<div class="title">${this.titleProduct}</div>` : ""}
|
|
4249
4250
|
<div class="details">
|
|
4250
4251
|
${this.volume ? l`<span class="volume-info">${this.volume}</span>` : ""}
|
|
@@ -4330,6 +4331,11 @@ Jt.styles = f`
|
|
|
4330
4331
|
}
|
|
4331
4332
|
}
|
|
4332
4333
|
|
|
4334
|
+
.info o-tag {
|
|
4335
|
+
margin-bottom: var(--spacing-xs);
|
|
4336
|
+
display: flex;
|
|
4337
|
+
}
|
|
4338
|
+
|
|
4333
4339
|
.main-price {
|
|
4334
4340
|
font-family: var(--font-family-loccitane-sans);
|
|
4335
4341
|
color: var(--colors-noir-des-terres-500);
|
|
@@ -4349,35 +4355,38 @@ Jt.styles = f`
|
|
|
4349
4355
|
cursor: pointer;
|
|
4350
4356
|
}
|
|
4351
4357
|
`;
|
|
4352
|
-
let
|
|
4353
|
-
|
|
4358
|
+
let _ = Jt;
|
|
4359
|
+
j([
|
|
4354
4360
|
a({ type: String })
|
|
4355
|
-
],
|
|
4356
|
-
|
|
4361
|
+
], _.prototype, "type");
|
|
4362
|
+
j([
|
|
4357
4363
|
a({ type: String })
|
|
4358
|
-
],
|
|
4359
|
-
|
|
4364
|
+
], _.prototype, "titleProduct");
|
|
4365
|
+
j([
|
|
4360
4366
|
a({ type: String })
|
|
4361
|
-
],
|
|
4362
|
-
|
|
4367
|
+
], _.prototype, "volume");
|
|
4368
|
+
j([
|
|
4363
4369
|
a({ type: String })
|
|
4364
|
-
],
|
|
4365
|
-
|
|
4370
|
+
], _.prototype, "perLiter");
|
|
4371
|
+
j([
|
|
4366
4372
|
a({ type: String })
|
|
4367
|
-
],
|
|
4368
|
-
|
|
4373
|
+
], _.prototype, "mainPrice");
|
|
4374
|
+
j([
|
|
4369
4375
|
a({ type: String })
|
|
4370
|
-
],
|
|
4371
|
-
|
|
4376
|
+
], _.prototype, "imageUrl");
|
|
4377
|
+
j([
|
|
4372
4378
|
a({ type: String })
|
|
4373
|
-
],
|
|
4374
|
-
|
|
4379
|
+
], _.prototype, "altImage");
|
|
4380
|
+
j([
|
|
4375
4381
|
a({ type: Boolean })
|
|
4376
|
-
],
|
|
4377
|
-
|
|
4382
|
+
], _.prototype, "fullwidth");
|
|
4383
|
+
j([
|
|
4384
|
+
a({ type: String })
|
|
4385
|
+
], _.prototype, "tagText");
|
|
4386
|
+
j([
|
|
4378
4387
|
a({ type: Function })
|
|
4379
|
-
],
|
|
4380
|
-
customElements.define("mini-tile",
|
|
4388
|
+
], _.prototype, "onClickTile");
|
|
4389
|
+
customElements.define("mini-tile", _);
|
|
4381
4390
|
var di = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, Xt = (o, t, e, n) => {
|
|
4382
4391
|
for (var i = n > 1 ? void 0 : n ? pi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4383
4392
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
@@ -4627,7 +4636,7 @@ var fi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, B = (o, t,
|
|
|
4627
4636
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4628
4637
|
return n && i && fi(t, e, i), i;
|
|
4629
4638
|
};
|
|
4630
|
-
let gi = 0,
|
|
4639
|
+
let gi = 0, k = class extends u {
|
|
4631
4640
|
constructor() {
|
|
4632
4641
|
super(), this.checked = !1, this.indeterminate = !1, this.disabled = !1, this.size = "S", this.showLabel = !0, this.label = "Checkbox", this.name = "", this.value = "on", this.inputId = "", this.inputId || (this.inputId = `o-checkbox-${++gi}`);
|
|
4633
4642
|
}
|
|
@@ -4644,7 +4653,7 @@ let gi = 0, _ = class extends u {
|
|
|
4644
4653
|
this.disabled || (o.key === " " || o.key === "Enter") && (o.preventDefault(), this.toggle());
|
|
4645
4654
|
}
|
|
4646
4655
|
render() {
|
|
4647
|
-
const o = C(
|
|
4656
|
+
const o = C(F.checkbox.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"')), t = C(F.icoMinus.replace("<svg", '<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));
|
|
4648
4657
|
return l`
|
|
4649
4658
|
<input
|
|
4650
4659
|
type="checkbox"
|
|
@@ -4667,7 +4676,7 @@ let gi = 0, _ = class extends u {
|
|
|
4667
4676
|
`;
|
|
4668
4677
|
}
|
|
4669
4678
|
};
|
|
4670
|
-
|
|
4679
|
+
k.styles = f`
|
|
4671
4680
|
:host {
|
|
4672
4681
|
display: inline-flex;
|
|
4673
4682
|
align-items: center;
|
|
@@ -4697,10 +4706,17 @@ _.styles = f`
|
|
|
4697
4706
|
width: 16px;
|
|
4698
4707
|
height: 16px;
|
|
4699
4708
|
}
|
|
4700
|
-
:host([size="L"])
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4709
|
+
:host([size="L"]) {
|
|
4710
|
+
.box {
|
|
4711
|
+
width: 24px;
|
|
4712
|
+
height: 24px;
|
|
4713
|
+
border: 2px solid var(--color-border-secondary);
|
|
4714
|
+
}
|
|
4715
|
+
|
|
4716
|
+
.label {
|
|
4717
|
+
line-height: var(--line-height-200);
|
|
4718
|
+
font-size: var(--font-size-200);
|
|
4719
|
+
}
|
|
4704
4720
|
}
|
|
4705
4721
|
|
|
4706
4722
|
:host([checked]) .box,
|
|
@@ -4766,38 +4782,38 @@ _.styles = f`
|
|
|
4766
4782
|
`;
|
|
4767
4783
|
B([
|
|
4768
4784
|
a({ type: Boolean, reflect: !0 })
|
|
4769
|
-
],
|
|
4785
|
+
], k.prototype, "checked", 2);
|
|
4770
4786
|
B([
|
|
4771
4787
|
a({ type: Boolean, reflect: !0 })
|
|
4772
|
-
],
|
|
4788
|
+
], k.prototype, "indeterminate", 2);
|
|
4773
4789
|
B([
|
|
4774
4790
|
a({ type: Boolean, reflect: !0 })
|
|
4775
|
-
],
|
|
4791
|
+
], k.prototype, "disabled", 2);
|
|
4776
4792
|
B([
|
|
4777
4793
|
a({ type: String, reflect: !0 })
|
|
4778
|
-
],
|
|
4794
|
+
], k.prototype, "size", 2);
|
|
4779
4795
|
B([
|
|
4780
4796
|
a({ type: Boolean })
|
|
4781
|
-
],
|
|
4797
|
+
], k.prototype, "showLabel", 2);
|
|
4782
4798
|
B([
|
|
4783
4799
|
a({ type: String })
|
|
4784
|
-
],
|
|
4800
|
+
], k.prototype, "label", 2);
|
|
4785
4801
|
B([
|
|
4786
4802
|
a({ type: String })
|
|
4787
|
-
],
|
|
4803
|
+
], k.prototype, "name", 2);
|
|
4788
4804
|
B([
|
|
4789
4805
|
a({ type: String })
|
|
4790
|
-
],
|
|
4806
|
+
], k.prototype, "value", 2);
|
|
4791
4807
|
B([
|
|
4792
4808
|
a({ type: String, reflect: !0 })
|
|
4793
|
-
],
|
|
4809
|
+
], k.prototype, "inputId", 2);
|
|
4794
4810
|
B([
|
|
4795
4811
|
fe("input")
|
|
4796
|
-
],
|
|
4797
|
-
|
|
4812
|
+
], k.prototype, "inputEl", 2);
|
|
4813
|
+
k = B([
|
|
4798
4814
|
y("o-checkbox")
|
|
4799
|
-
],
|
|
4800
|
-
var yi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor,
|
|
4815
|
+
], k);
|
|
4816
|
+
var yi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, R = (o, t, e, n) => {
|
|
4801
4817
|
for (var i = n > 1 ? void 0 : n ? mi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
|
|
4802
4818
|
(s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
|
|
4803
4819
|
return n && i && yi(t, e, i), i;
|
|
@@ -4867,10 +4883,17 @@ I.styles = f`
|
|
|
4867
4883
|
width: 16px;
|
|
4868
4884
|
height: 16px;
|
|
4869
4885
|
}
|
|
4870
|
-
:host([size="L"])
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4886
|
+
:host([size="L"]) {
|
|
4887
|
+
.box {
|
|
4888
|
+
width: 24px;
|
|
4889
|
+
height: 24px;
|
|
4890
|
+
border: 2px solid #7e7173;
|
|
4891
|
+
}
|
|
4892
|
+
|
|
4893
|
+
.label {
|
|
4894
|
+
line-height: var(--line-height-200);
|
|
4895
|
+
font-size: var(--font-size-200);
|
|
4896
|
+
}
|
|
4874
4897
|
}
|
|
4875
4898
|
|
|
4876
4899
|
:host(:focus-visible) .box {
|
|
@@ -4919,33 +4942,33 @@ I.styles = f`
|
|
|
4919
4942
|
height: 0;
|
|
4920
4943
|
}
|
|
4921
4944
|
`;
|
|
4922
|
-
|
|
4945
|
+
R([
|
|
4923
4946
|
a({ type: Boolean, reflect: !0 })
|
|
4924
4947
|
], I.prototype, "checked", 2);
|
|
4925
|
-
|
|
4948
|
+
R([
|
|
4926
4949
|
a({ type: Boolean, reflect: !0 })
|
|
4927
4950
|
], I.prototype, "disabled", 2);
|
|
4928
|
-
|
|
4951
|
+
R([
|
|
4929
4952
|
a({ type: String, reflect: !0 })
|
|
4930
4953
|
], I.prototype, "size", 2);
|
|
4931
|
-
|
|
4954
|
+
R([
|
|
4932
4955
|
a({ type: Boolean })
|
|
4933
4956
|
], I.prototype, "showLabel", 2);
|
|
4934
|
-
|
|
4957
|
+
R([
|
|
4935
4958
|
a({ type: String })
|
|
4936
4959
|
], I.prototype, "label", 2);
|
|
4937
|
-
|
|
4960
|
+
R([
|
|
4938
4961
|
a({ type: String })
|
|
4939
4962
|
], I.prototype, "name", 2);
|
|
4940
|
-
|
|
4963
|
+
R([
|
|
4941
4964
|
a({ type: String })
|
|
4942
4965
|
], I.prototype, "value", 2);
|
|
4943
|
-
|
|
4966
|
+
R([
|
|
4944
4967
|
a({ type: String, reflect: !0 })
|
|
4945
4968
|
], I.prototype, "inputId", 2);
|
|
4946
|
-
|
|
4969
|
+
R([
|
|
4947
4970
|
fe("input")
|
|
4948
4971
|
], I.prototype, "inputEl", 2);
|
|
4949
|
-
I =
|
|
4972
|
+
I = R([
|
|
4950
4973
|
y("o-radio")
|
|
4951
4974
|
], I);
|