@florid-kit/components 3.0.1 → 3.1.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.
- package/assets/icons/icons.d.ts +8 -2
- package/assets/icons/occ-gen/occ-address.d.ts +5 -0
- package/assets/icons/occ-gen/occ-autorep.d.ts +5 -0
- package/assets/icons/occ-gen/occ-back.d.ts +5 -0
- package/assets/icons/occ-gen/occ-bag-filled.d.ts +5 -0
- package/assets/icons/occ-gen/occ-bag-outlined.d.ts +5 -0
- package/assets/icons/occ-gen/occ-bag-strike.d.ts +5 -0
- package/assets/icons/occ-gen/occ-bottle.d.ts +5 -0
- package/assets/icons/occ-gen/occ-briefcase.d.ts +5 -0
- package/assets/icons/occ-gen/occ-burger.d.ts +5 -0
- package/assets/icons/occ-gen/occ-card.d.ts +5 -0
- package/assets/icons/occ-gen/occ-career.d.ts +5 -0
- package/assets/icons/occ-gen/occ-check-filled.d.ts +5 -0
- package/assets/icons/occ-gen/occ-check-outlined.d.ts +5 -0
- package/assets/icons/occ-gen/occ-chevron-bottom.d.ts +5 -0
- package/assets/icons/occ-gen/occ-chevron-double.d.ts +5 -0
- package/assets/icons/occ-gen/occ-chevron-left.d.ts +5 -0
- package/assets/icons/occ-gen/occ-chevron-right.d.ts +5 -0
- package/assets/icons/occ-gen/occ-chevron-top.d.ts +5 -0
- package/assets/icons/occ-gen/occ-close-filled.d.ts +5 -0
- package/assets/icons/occ-gen/occ-close-outlined.d.ts +5 -0
- package/assets/icons/occ-gen/occ-cream-tube.d.ts +5 -0
- package/assets/icons/occ-gen/occ-cream.d.ts +5 -0
- package/assets/icons/occ-gen/occ-eye-hide.d.ts +5 -0
- package/assets/icons/occ-gen/occ-eye-show.d.ts +5 -0
- package/assets/icons/occ-gen/occ-gear-outline.d.ts +5 -0
- package/assets/icons/occ-gen/occ-gear.d.ts +5 -0
- package/assets/icons/occ-gen/occ-geoloc.d.ts +5 -0
- package/assets/icons/occ-gen/occ-gift.d.ts +5 -0
- package/assets/icons/occ-gen/occ-group.d.ts +5 -0
- package/assets/icons/occ-gen/occ-hand-shake.d.ts +5 -0
- package/assets/icons/occ-gen/occ-info.d.ts +5 -0
- package/assets/icons/occ-gen/occ-loaders.d.ts +4 -0
- package/assets/icons/occ-gen/occ-location.d.ts +5 -0
- package/assets/icons/occ-gen/occ-mail.d.ts +5 -0
- package/assets/icons/occ-gen/occ-message.d.ts +5 -0
- package/assets/icons/occ-gen/occ-minus.d.ts +5 -0
- package/assets/icons/occ-gen/occ-order-sent.d.ts +5 -0
- package/assets/icons/occ-gen/occ-order.d.ts +5 -0
- package/assets/icons/occ-gen/occ-padlock.d.ts +5 -0
- package/assets/icons/occ-gen/occ-pause.d.ts +5 -0
- package/assets/icons/occ-gen/occ-play.d.ts +5 -0
- package/assets/icons/occ-gen/occ-plus.d.ts +5 -0
- package/assets/icons/occ-gen/occ-product.d.ts +5 -0
- package/assets/icons/occ-gen/occ-profil-filled.d.ts +5 -0
- package/assets/icons/occ-gen/occ-profil-outlined.d.ts +5 -0
- package/assets/icons/occ-gen/occ-refill.d.ts +5 -0
- package/assets/icons/occ-gen/occ-refine.d.ts +5 -0
- package/assets/icons/occ-gen/occ-reward-card.d.ts +5 -0
- package/assets/icons/occ-gen/occ-samples.d.ts +5 -0
- package/assets/icons/occ-gen/occ-search.d.ts +5 -0
- package/assets/icons/occ-gen/occ-star-0.d.ts +5 -0
- package/assets/icons/occ-gen/occ-star-100.d.ts +5 -0
- package/assets/icons/occ-gen/occ-star-25.d.ts +5 -0
- package/assets/icons/occ-gen/occ-star-50.d.ts +5 -0
- package/assets/icons/occ-gen/occ-star-75.d.ts +5 -0
- package/assets/icons/occ-gen/occ-store.d.ts +5 -0
- package/assets/icons/occ-gen/occ-trash.d.ts +5 -0
- package/assets/icons/occ-gen/occ-triangle-down.d.ts +5 -0
- package/assets/icons/occ-gen/occ-triangle-up.d.ts +5 -0
- package/assets/icons/occ-gen/occ-warning-stroke.d.ts +5 -0
- package/assets/icons/occ-gen/occ-warning.d.ts +5 -0
- package/assets/icons/occ-gen/occ-wishlist-filled.d.ts +5 -0
- package/assets/icons/occ-gen/occ-wishlist-outlined.d.ts +5 -0
- package/components/button.mjs +2 -2
- package/components/chip.mjs +1 -1
- package/components/dropdown-variant.mjs +8 -8
- package/components/dropdown.mjs +6 -6
- package/components/filter-chip.mjs +1 -1
- package/components/icon-button.mjs +17 -16
- package/components/rating.d.ts +3 -0
- package/components/rating.mjs +43 -36
- package/components/side-panel.mjs +50 -48
- package/components/toast.mjs +1 -1
- package/components/wishlist-button.d.ts +2 -0
- package/components/wishlist-button.mjs +19 -15
- package/icons/occ-address.mjs +20 -0
- package/icons/occ-autorep.mjs +26 -0
- package/icons/occ-back.mjs +17 -0
- package/icons/occ-bag-filled.mjs +17 -0
- package/icons/occ-bag-outlined.mjs +17 -0
- package/icons/occ-bag-strike.mjs +26 -0
- package/icons/occ-bottle.mjs +20 -0
- package/icons/occ-briefcase.mjs +17 -0
- package/icons/occ-burger.mjs +23 -0
- package/icons/occ-card.mjs +23 -0
- package/icons/occ-career.mjs +43 -0
- package/icons/occ-check-filled.mjs +17 -0
- package/icons/occ-check-outlined.mjs +17 -0
- package/icons/occ-chevron-bottom.mjs +17 -0
- package/icons/occ-chevron-double.mjs +20 -0
- package/icons/occ-chevron-left.mjs +17 -0
- package/icons/occ-chevron-right.mjs +17 -0
- package/icons/occ-chevron-top.mjs +17 -0
- package/icons/occ-close-filled.mjs +17 -0
- package/icons/occ-close-outlined.mjs +17 -0
- package/icons/occ-cream-tube.mjs +23 -0
- package/icons/occ-cream.mjs +23 -0
- package/icons/occ-eye-hide.mjs +17 -0
- package/icons/occ-eye-show.mjs +20 -0
- package/icons/occ-gear-outline.mjs +22 -0
- package/icons/occ-gear.mjs +22 -0
- package/icons/occ-geoloc.mjs +17 -0
- package/icons/occ-gift.mjs +17 -0
- package/icons/occ-group.mjs +20 -0
- package/icons/occ-hand-shake.mjs +57 -0
- package/icons/occ-info.mjs +17 -0
- package/icons/occ-location.mjs +20 -0
- package/icons/occ-mail.mjs +17 -0
- package/icons/occ-message.mjs +38 -0
- package/icons/occ-minus.mjs +17 -0
- package/icons/occ-order-sent.mjs +26 -0
- package/icons/occ-order.mjs +20 -0
- package/icons/occ-padlock.mjs +20 -0
- package/icons/occ-pause.mjs +20 -0
- package/icons/occ-play.mjs +17 -0
- package/icons/occ-plus.mjs +17 -0
- package/icons/occ-product.mjs +21 -0
- package/icons/occ-profil-filled.mjs +20 -0
- package/icons/occ-profil-outlined.mjs +20 -0
- package/icons/occ-refill.mjs +20 -0
- package/icons/occ-refine.mjs +20 -0
- package/icons/occ-reward-card.mjs +20 -0
- package/icons/occ-samples.mjs +26 -0
- package/icons/occ-search.mjs +17 -0
- package/icons/occ-star-0.mjs +17 -0
- package/icons/occ-star-100.mjs +17 -0
- package/icons/occ-star-25.mjs +17 -0
- package/icons/occ-star-50.mjs +17 -0
- package/icons/occ-star-75.mjs +17 -0
- package/icons/occ-store.mjs +17 -0
- package/icons/occ-trash.mjs +23 -0
- package/icons/occ-triangle-down.mjs +17 -0
- package/icons/occ-triangle-up.mjs +17 -0
- package/icons/occ-warning-stroke.mjs +23 -0
- package/icons/occ-warning.mjs +17 -0
- package/icons/occ-wishlist-filled.mjs +17 -0
- package/icons/occ-wishlist-outlined.mjs +17 -0
- package/{icons-BZ0oOFaE.mjs → icons-registry.mjs} +116 -58
- package/index.mjs +0 -3
- package/package.json +1 -1
- package/{svg-utils-wXxOZLnu.mjs → svg-utils-DOL__czZ.mjs} +1 -1
- package/icons-occ.mjs +0 -834
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { i as
|
|
1
|
+
import { i as g, m as p, E as b, x as a, a as d, t as v } from "../performance-mixin-D7YmSeqN.mjs";
|
|
2
2
|
import { n as i } from "../property-S_Y9cb04.mjs";
|
|
3
|
-
import { o as
|
|
4
|
-
import {
|
|
5
|
-
import { c as m } from "../svg-utils-
|
|
3
|
+
import { o as y } from "../if-defined-j0wE2gL4.mjs";
|
|
4
|
+
import { r as u, o as f } from "../icons-registry.mjs";
|
|
5
|
+
import { c as m } from "../svg-utils-DOL__czZ.mjs";
|
|
6
6
|
import { f as x, i as w, s as k } from "../css-C8WrrxT-.mjs";
|
|
7
|
-
var $ = Object.defineProperty, O = Object.getOwnPropertyDescriptor, n = (t, s,
|
|
8
|
-
for (var
|
|
9
|
-
(h = t[l]) && (
|
|
10
|
-
return
|
|
7
|
+
var $ = Object.defineProperty, O = Object.getOwnPropertyDescriptor, n = (t, s, c, e) => {
|
|
8
|
+
for (var r = e > 1 ? void 0 : e ? O(s, c) : s, l = t.length - 1, h; l >= 0; l--)
|
|
9
|
+
(h = t[l]) && (r = (e ? h(s, c, r) : h(r)) || r);
|
|
10
|
+
return e && r && $(s, c, r), r;
|
|
11
11
|
};
|
|
12
12
|
const S = (t) => t.startsWith("occ-");
|
|
13
|
-
let o = class extends
|
|
13
|
+
let o = class extends p(d) {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments), this.bgstyle = "background-light", this.size = "medium", this.status = "empty", this.type = "button", this.strokewidth = "1", this.icon = "", this.disabled = !1, this.highlight = !1, this.showSrLabel = !1, this.srLabel = "";
|
|
16
16
|
}
|
|
@@ -24,13 +24,14 @@ let o = class extends g(p) {
|
|
|
24
24
|
this._clearOccSubscription();
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
|
-
const { svg: s } =
|
|
27
|
+
const { svg: s } = u(t, { size: this.size, bgstyle: this.bgstyle });
|
|
28
28
|
if (s) {
|
|
29
29
|
this._clearOccSubscription();
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
32
|
this._unsubOcc || (this._unsubOcc = f(() => {
|
|
33
|
-
this.
|
|
33
|
+
const { svg: c } = u(t, { size: this.size, bgstyle: this.bgstyle });
|
|
34
|
+
c && (this._clearOccSubscription(), this.requestUpdate());
|
|
34
35
|
}));
|
|
35
36
|
}
|
|
36
37
|
connectedCallback() {
|
|
@@ -47,7 +48,7 @@ let o = class extends g(p) {
|
|
|
47
48
|
return b;
|
|
48
49
|
const t = m(this.icon, this.size, this.bgstyle);
|
|
49
50
|
if (!t) return b;
|
|
50
|
-
const s = `icon-${this.icon}`,
|
|
51
|
+
const s = `icon-${this.icon}`, c = this.showSrLabel ? a`<span class="sr-only">${this.srLabel}</span>` : null, e = this.showSrLabel ? "" : "icon";
|
|
51
52
|
return a`
|
|
52
53
|
${this.type === "span" ? a`
|
|
53
54
|
<span part="icon-button" class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${s} ${this.highlight ? "highlight" : ""}" ?disabled="${this.disabled}">
|
|
@@ -56,20 +57,20 @@ let o = class extends g(p) {
|
|
|
56
57
|
` : a`
|
|
57
58
|
<button
|
|
58
59
|
type="button"
|
|
59
|
-
aria-label=${
|
|
60
|
+
aria-label=${y(e)}
|
|
60
61
|
aria-describedby=${this.getAttribute("aria-describedby") || b}
|
|
61
62
|
part="icon-button"
|
|
62
63
|
class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${s} ${this.highlight ? "highlight" : ""}"
|
|
63
64
|
?disabled="${this.disabled}"
|
|
64
65
|
>
|
|
65
66
|
${t}
|
|
66
|
-
${
|
|
67
|
+
${c}
|
|
67
68
|
</button>
|
|
68
69
|
`}
|
|
69
70
|
`;
|
|
70
71
|
}
|
|
71
72
|
};
|
|
72
|
-
o.styles =
|
|
73
|
+
o.styles = g`
|
|
73
74
|
:host {
|
|
74
75
|
display: inline-flex;
|
|
75
76
|
justify-content: center;
|
|
@@ -333,7 +334,7 @@ n([
|
|
|
333
334
|
i({ type: String })
|
|
334
335
|
], o.prototype, "srLabel", 2);
|
|
335
336
|
o = n([
|
|
336
|
-
|
|
337
|
+
v("o-icon-button")
|
|
337
338
|
], o);
|
|
338
339
|
export {
|
|
339
340
|
o as OccitaneIconButton
|
package/components/rating.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export declare class OccitaneRating extends OccitaneRating_base {
|
|
|
5
5
|
rating: number;
|
|
6
6
|
reviewCount?: string;
|
|
7
7
|
href?: string;
|
|
8
|
+
private _unsubOcc?;
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
disconnectedCallback(): void;
|
|
8
11
|
static styles: import('lit').CSSResult;
|
|
9
12
|
private getStarKeys;
|
|
10
13
|
protected render(): import('lit').TemplateResult<1>;
|
package/components/rating.mjs
CHANGED
|
@@ -1,44 +1,51 @@
|
|
|
1
|
-
import { i as f, m as
|
|
2
|
-
import { n as
|
|
3
|
-
import { o as
|
|
4
|
-
import {
|
|
1
|
+
import { i as f, m as u, a as g, x as c, t as h } from "../performance-mixin-D7YmSeqN.mjs";
|
|
2
|
+
import { n as p } from "../property-S_Y9cb04.mjs";
|
|
3
|
+
import { o as v } from "../unsafe-svg-C3uTocNg.mjs";
|
|
4
|
+
import { o as m, r as d } from "../icons-registry.mjs";
|
|
5
5
|
import "./link.mjs";
|
|
6
|
-
var y = Object.defineProperty,
|
|
7
|
-
for (var
|
|
8
|
-
(l =
|
|
9
|
-
return
|
|
6
|
+
var y = Object.defineProperty, b = Object.getOwnPropertyDescriptor, i = (t, e, r, s) => {
|
|
7
|
+
for (var n = s > 1 ? void 0 : s ? b(e, r) : e, o = t.length - 1, l; o >= 0; o--)
|
|
8
|
+
(l = t[o]) && (n = (s ? l(e, r, n) : l(n)) || n);
|
|
9
|
+
return s && n && y(e, r, n), n;
|
|
10
10
|
};
|
|
11
|
-
let
|
|
11
|
+
let a = class extends u(g) {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments), this.rating = 0;
|
|
14
14
|
}
|
|
15
|
+
connectedCallback() {
|
|
16
|
+
super.connectedCallback(), this._unsubOcc = m(() => this.requestUpdate());
|
|
17
|
+
}
|
|
18
|
+
disconnectedCallback() {
|
|
19
|
+
var t;
|
|
20
|
+
(t = this._unsubOcc) == null || t.call(this), super.disconnectedCallback();
|
|
21
|
+
}
|
|
15
22
|
getStarKeys() {
|
|
16
|
-
const
|
|
17
|
-
for (let
|
|
18
|
-
const
|
|
19
|
-
let
|
|
20
|
-
|
|
23
|
+
const t = [];
|
|
24
|
+
for (let e = 0; e < 5; e++) {
|
|
25
|
+
const r = this.rating - e;
|
|
26
|
+
let s;
|
|
27
|
+
r >= 1 ? s = 100 : r <= 0 ? s = 0 : s = Math.round(r * 100 / 25) * 25, t.push(`occ-star-${s}`);
|
|
21
28
|
}
|
|
22
|
-
return
|
|
29
|
+
return t;
|
|
23
30
|
}
|
|
24
31
|
render() {
|
|
25
|
-
const
|
|
26
|
-
return
|
|
32
|
+
const t = this.getStarKeys();
|
|
33
|
+
return c`
|
|
27
34
|
<div class="rating">
|
|
28
35
|
<div class="stars">
|
|
29
|
-
${
|
|
30
|
-
(
|
|
31
|
-
const { svg:
|
|
32
|
-
return
|
|
36
|
+
${t.map(
|
|
37
|
+
(e) => {
|
|
38
|
+
const { svg: r } = d(e, { size: "small", bgstyle: "none-contrast" });
|
|
39
|
+
return c`<span class="star">${v(r)}</span>`;
|
|
33
40
|
}
|
|
34
41
|
)}
|
|
35
42
|
</div>
|
|
36
|
-
${this.reviewCount != null && this.href != null ?
|
|
43
|
+
${this.reviewCount != null && this.href != null ? c`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
|
|
37
44
|
</div>
|
|
38
45
|
`;
|
|
39
46
|
}
|
|
40
47
|
};
|
|
41
|
-
|
|
48
|
+
a.styles = f`
|
|
42
49
|
.rating {
|
|
43
50
|
display: flex;
|
|
44
51
|
align-items: center;
|
|
@@ -64,18 +71,18 @@ n.styles = f`
|
|
|
64
71
|
}
|
|
65
72
|
|
|
66
73
|
`;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
],
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
],
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
],
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
],
|
|
74
|
+
i([
|
|
75
|
+
p({ type: Number })
|
|
76
|
+
], a.prototype, "rating", 2);
|
|
77
|
+
i([
|
|
78
|
+
p({ type: String })
|
|
79
|
+
], a.prototype, "reviewCount", 2);
|
|
80
|
+
i([
|
|
81
|
+
p({ type: String })
|
|
82
|
+
], a.prototype, "href", 2);
|
|
83
|
+
a = i([
|
|
84
|
+
h("o-rating")
|
|
85
|
+
], a);
|
|
79
86
|
export {
|
|
80
|
-
|
|
87
|
+
a as OccitaneRating
|
|
81
88
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { E as p, i as
|
|
1
|
+
import { E as p, i as C, a as w, m as S, x as h, t as B } from "../performance-mixin-D7YmSeqN.mjs";
|
|
2
2
|
import { n as r } from "../property-S_Y9cb04.mjs";
|
|
3
3
|
import { f as x } from "../css-C8WrrxT-.mjs";
|
|
4
|
-
import { i as
|
|
5
|
-
import { o as
|
|
6
|
-
import { g as
|
|
7
|
-
import { o as
|
|
4
|
+
import { i as E, m as P } from "../element-internals-Dw7LndlH.mjs";
|
|
5
|
+
import { e as $, o as _, a as I } from "../icons-registry.mjs";
|
|
6
|
+
import { g as F } from "../svg-utils-DOL__czZ.mjs";
|
|
7
|
+
import { o as z } from "../unsafe-svg-C3uTocNg.mjs";
|
|
8
8
|
import "./icon-button.mjs";
|
|
9
|
-
import { i as
|
|
10
|
-
import { f as
|
|
9
|
+
import { i as O, t as L, e as R } from "../directive-oAbCiebi.mjs";
|
|
10
|
+
import { f as q } from "../directive-helpers-BHuwIghp.mjs";
|
|
11
11
|
/**
|
|
12
12
|
* @license
|
|
13
13
|
* Copyright 2023 Google LLC
|
|
14
14
|
* SPDX-License-Identifier: Apache-2.0
|
|
15
15
|
*/
|
|
16
|
-
function
|
|
16
|
+
function T(e) {
|
|
17
17
|
e.addInitializer((t) => {
|
|
18
18
|
const o = t;
|
|
19
19
|
o.addEventListener("click", async (i) => {
|
|
20
|
-
const { type: n, [
|
|
20
|
+
const { type: n, [E]: s } = o, { form: a } = s;
|
|
21
21
|
if (!(!a || n === "button") && (await new Promise((b) => {
|
|
22
22
|
setTimeout(b);
|
|
23
23
|
}), !i.defaultPrevented)) {
|
|
@@ -57,39 +57,39 @@ const y = (e, t) => {
|
|
|
57
57
|
if ((t = e._$AM) === void 0) break;
|
|
58
58
|
o = t._$AN, o.delete(e), e = t;
|
|
59
59
|
} while ((o == null ? void 0 : o.size) === 0);
|
|
60
|
-
},
|
|
60
|
+
}, D = (e) => {
|
|
61
61
|
for (let t; t = e._$AM; e = t) {
|
|
62
62
|
let o = t._$AN;
|
|
63
63
|
if (o === void 0) t._$AN = o = /* @__PURE__ */ new Set();
|
|
64
64
|
else if (o.has(e)) break;
|
|
65
|
-
o.add(e),
|
|
65
|
+
o.add(e), j(t);
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
-
function
|
|
69
|
-
this._$AN !== void 0 ? (m(this), this._$AM = e,
|
|
68
|
+
function H(e) {
|
|
69
|
+
this._$AN !== void 0 ? (m(this), this._$AM = e, D(this)) : this._$AM = e;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function M(e, t = !1, o = 0) {
|
|
72
72
|
const i = this._$AH, n = this._$AN;
|
|
73
73
|
if (n !== void 0 && n.size !== 0) if (t) if (Array.isArray(i)) for (let s = o; s < i.length; s++) y(i[s], !1), m(i[s]);
|
|
74
74
|
else i != null && (y(i, !1), m(i));
|
|
75
75
|
else y(this, e);
|
|
76
76
|
}
|
|
77
|
-
const
|
|
78
|
-
e.type == L.CHILD && (e._$AP ?? (e._$AP =
|
|
77
|
+
const j = (e) => {
|
|
78
|
+
e.type == L.CHILD && (e._$AP ?? (e._$AP = M), e._$AQ ?? (e._$AQ = H));
|
|
79
79
|
};
|
|
80
|
-
class
|
|
80
|
+
class K extends O {
|
|
81
81
|
constructor() {
|
|
82
82
|
super(...arguments), this._$AN = void 0;
|
|
83
83
|
}
|
|
84
84
|
_$AT(t, o, i) {
|
|
85
|
-
super._$AT(t, o, i),
|
|
85
|
+
super._$AT(t, o, i), D(this), this.isConnected = t._$AU;
|
|
86
86
|
}
|
|
87
87
|
_$AO(t, o = !0) {
|
|
88
88
|
var i, n;
|
|
89
89
|
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (n = this.disconnected) == null || n.call(this)), o && (y(this, t), m(this));
|
|
90
90
|
}
|
|
91
91
|
setValue(t) {
|
|
92
|
-
if (
|
|
92
|
+
if (q(this._$Ct)) this._$Ct._$AI(t, this);
|
|
93
93
|
else {
|
|
94
94
|
const o = [...this._$Ct._$AH];
|
|
95
95
|
o[this._$Ci] = t, this._$Ct._$AI(o, this, 0);
|
|
@@ -100,7 +100,7 @@ class j extends z {
|
|
|
100
100
|
reconnected() {
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
class
|
|
103
|
+
class N extends K {
|
|
104
104
|
constructor() {
|
|
105
105
|
super(...arguments), this.prevData = {};
|
|
106
106
|
}
|
|
@@ -127,7 +127,7 @@ class K extends j {
|
|
|
127
127
|
(!t || !(n in t) && i[n] === o[n]) && (i[n] = void 0);
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
class
|
|
130
|
+
class V extends N {
|
|
131
131
|
constructor() {
|
|
132
132
|
super(...arguments), this.eventData = {};
|
|
133
133
|
}
|
|
@@ -171,7 +171,7 @@ class N extends K {
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
class
|
|
174
|
+
class X extends V {
|
|
175
175
|
apply(t) {
|
|
176
176
|
if (!t)
|
|
177
177
|
return;
|
|
@@ -220,13 +220,13 @@ class V extends N {
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
const
|
|
224
|
-
var
|
|
225
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
223
|
+
const k = R(X);
|
|
224
|
+
var U = Object.defineProperty, W = Object.getOwnPropertyDescriptor, c = (e, t, o, i) => {
|
|
225
|
+
for (var n = i > 1 ? void 0 : i ? W(t, o) : t, s = e.length - 1, a; s >= 0; s--)
|
|
226
226
|
(a = e[s]) && (n = (i ? a(t, o, n) : a(n)) || n);
|
|
227
|
-
return i && n &&
|
|
227
|
+
return i && n && U(t, o, n), n;
|
|
228
228
|
};
|
|
229
|
-
let l = class extends
|
|
229
|
+
let l = class extends S(w) {
|
|
230
230
|
constructor() {
|
|
231
231
|
super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.showHeaderStartIcon = !1, this.headerTitle = "", this.headerTitleClassName = "panel-title", this.labelDialog = "", this.labelAriaDialogPanel = "", this.addToBagProductCount = "", this.closeButtonLabel = "Close the modal", this.goBackButtonLabel = "Go back to", this.firstButtonLabel = "Close", this.firstButtonVariant = "primary", this.firstButtonProps = {}, this.onFirstButtonClickClose = !1, this.secondButtonLabel = "", this.secondButtonVariant = "secondary", this.secondButtonProps = {}, this.onSecondButtonClickClose = !1, this.stickyFooter = !1, this.disablePortal = !1, this.zIndex = 99, this.initialized = !1, this.showDetail = !1, this.isHidingDetail = !1, this.previousFocusedElement = null, this.previousFocusedSelector = null, this._hideTimeout = null, this._onOpenDetail = async (e) => {
|
|
232
232
|
var o, i;
|
|
@@ -330,8 +330,8 @@ let l = class extends C(w) {
|
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
if (document.querySelector("#refineandsortpopin")) {
|
|
333
|
-
const a = t.querySelector(".close-btn"), b = a ? this.resolveFocusable(a) : null, f = t.querySelector(".js-clear-refinements"), v = f ? this.resolveFocusable(f) : null, g = (
|
|
334
|
-
e.preventDefault(), e.stopPropagation(),
|
|
333
|
+
const a = t.querySelector(".close-btn"), b = a ? this.resolveFocusable(a) : null, f = t.querySelector(".js-clear-refinements"), v = f ? this.resolveFocusable(f) : null, g = (A) => {
|
|
334
|
+
e.preventDefault(), e.stopPropagation(), A.focus();
|
|
335
335
|
};
|
|
336
336
|
if (b && v) {
|
|
337
337
|
if (!e.shiftKey && o === v) return g(b);
|
|
@@ -465,7 +465,7 @@ let l = class extends C(w) {
|
|
|
465
465
|
.variant=${this.firstButtonVariant}
|
|
466
466
|
@click=${this.handleFirstClick}
|
|
467
467
|
@keydown=${this.handleFirstClick}
|
|
468
|
-
${
|
|
468
|
+
${k(this.firstButtonProps)}
|
|
469
469
|
>
|
|
470
470
|
${this.firstButtonLabel}
|
|
471
471
|
</o-button>
|
|
@@ -475,7 +475,7 @@ let l = class extends C(w) {
|
|
|
475
475
|
.variant=${this.secondButtonVariant}
|
|
476
476
|
@click=${this.handleSecondClick}
|
|
477
477
|
@keydown=${this.handleSecondClick}
|
|
478
|
-
${
|
|
478
|
+
${k(this.secondButtonProps)}
|
|
479
479
|
>
|
|
480
480
|
${this.secondButtonLabel}
|
|
481
481
|
</o-button>
|
|
@@ -516,7 +516,7 @@ let l = class extends C(w) {
|
|
|
516
516
|
`;
|
|
517
517
|
}
|
|
518
518
|
};
|
|
519
|
-
l.styles =
|
|
519
|
+
l.styles = C`
|
|
520
520
|
:host {
|
|
521
521
|
--z-overlay: 99;
|
|
522
522
|
--z-panel: 100;
|
|
@@ -842,15 +842,15 @@ c([
|
|
|
842
842
|
r({ type: Boolean })
|
|
843
843
|
], l.prototype, "isHidingDetail", 2);
|
|
844
844
|
l = c([
|
|
845
|
-
|
|
845
|
+
B("o-side-panel")
|
|
846
846
|
], l);
|
|
847
|
-
var
|
|
848
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
847
|
+
var G = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, u = (e, t, o, i) => {
|
|
848
|
+
for (var n = i > 1 ? void 0 : i ? Q(t, o) : t, s = e.length - 1, a; s >= 0; s--)
|
|
849
849
|
(a = e[s]) && (n = (i ? a(t, o, n) : a(n)) || n);
|
|
850
|
-
return i && n &&
|
|
850
|
+
return i && n && G(t, o, n), n;
|
|
851
851
|
};
|
|
852
|
-
const
|
|
853
|
-
let d = class extends
|
|
852
|
+
const J = S(P(w)), lt = ["primary", "secondary", "ghost", "tertiary"];
|
|
853
|
+
let d = class extends J {
|
|
854
854
|
constructor() {
|
|
855
855
|
super(...arguments), this.type = "submit", this.value = "", this.variant = "primary", this.text = "", this.textsecond = "", this.fullwidth = !1, this.disabled = !1, this.startIconModel = "", this.endIconModel = "", this.startIcon = !1, this.endIcon = !1, this.panelTarget = "", this.href = "", this.target = "", this.underlined = !1, this.withbadge = !1, this.hideRoleButton = !1, this.describedBy = null, this.ariaExpanded = null;
|
|
856
856
|
}
|
|
@@ -861,7 +861,7 @@ let d = class extends Q {
|
|
|
861
861
|
this.setAttribute("name", e);
|
|
862
862
|
}
|
|
863
863
|
get form() {
|
|
864
|
-
return this[
|
|
864
|
+
return this[E].form;
|
|
865
865
|
}
|
|
866
866
|
handleClick(e) {
|
|
867
867
|
if (!(e instanceof KeyboardEvent && !["Enter", " "].includes(e.key)) && this.panelTarget) {
|
|
@@ -873,8 +873,10 @@ let d = class extends Q {
|
|
|
873
873
|
return this.href ? this.renderLink() : this.renderButton();
|
|
874
874
|
}
|
|
875
875
|
connectedCallback() {
|
|
876
|
-
var
|
|
877
|
-
super.connectedCallback()
|
|
876
|
+
var o, i;
|
|
877
|
+
super.connectedCallback();
|
|
878
|
+
const e = (o = this.startIconModel) == null ? void 0 : o.startsWith("occ-"), t = (i = this.endIconModel) == null ? void 0 : i.startsWith("occ-");
|
|
879
|
+
(e || t) && (e && $(this.startIconModel), t && $(this.endIconModel), this._unsubOcc = _(() => this.requestUpdate()));
|
|
878
880
|
}
|
|
879
881
|
disconnectedCallback() {
|
|
880
882
|
var e;
|
|
@@ -883,10 +885,10 @@ let d = class extends Q {
|
|
|
883
885
|
renderIcon(e) {
|
|
884
886
|
const t = e === "start" ? this.startIconModel : this.endIconModel;
|
|
885
887
|
if (!t) return p;
|
|
886
|
-
const o =
|
|
888
|
+
const o = I[t] ?? "";
|
|
887
889
|
if (!o) return p;
|
|
888
|
-
const i =
|
|
889
|
-
return h`<span class="${e === "start" ? "icon-start" : "icon-end"}">${
|
|
890
|
+
const i = F(o);
|
|
891
|
+
return h`<span class="${e === "start" ? "icon-start" : "icon-end"}">${z(i)}</span>`;
|
|
890
892
|
}
|
|
891
893
|
renderButton() {
|
|
892
894
|
const e = this.text || this.textsecond;
|
|
@@ -926,9 +928,9 @@ let d = class extends Q {
|
|
|
926
928
|
`;
|
|
927
929
|
}
|
|
928
930
|
};
|
|
929
|
-
|
|
931
|
+
T(d);
|
|
930
932
|
d.formAssociated = !0;
|
|
931
|
-
d.styles =
|
|
933
|
+
d.styles = C`
|
|
932
934
|
:host {
|
|
933
935
|
--button-border: transparent;
|
|
934
936
|
--badge-outer-width: 19px;
|
|
@@ -1197,10 +1199,10 @@ u([
|
|
|
1197
1199
|
r({ reflect: !0, attribute: "expanded" })
|
|
1198
1200
|
], d.prototype, "ariaExpanded", 2);
|
|
1199
1201
|
d = u([
|
|
1200
|
-
|
|
1202
|
+
B("o-button")
|
|
1201
1203
|
], d);
|
|
1202
1204
|
export {
|
|
1203
1205
|
d as O,
|
|
1204
1206
|
l as OccitaneSidePanel,
|
|
1205
|
-
|
|
1207
|
+
lt as v
|
|
1206
1208
|
};
|
package/components/toast.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { i as f, m as p, a as u, x as m, t as d } from "../performance-mixin-D7Y
|
|
|
2
2
|
import { n as a } from "../property-S_Y9cb04.mjs";
|
|
3
3
|
import { o as v } from "../unsafe-svg-C3uTocNg.mjs";
|
|
4
4
|
import "./icon-button.mjs";
|
|
5
|
-
import { t as g } from "../icons-
|
|
5
|
+
import { t as g } from "../icons-registry.mjs";
|
|
6
6
|
var y = Object.defineProperty, x = Object.getOwnPropertyDescriptor, o = (t, i, r, s) => {
|
|
7
7
|
for (var n = s > 1 ? void 0 : s ? x(i, r) : i, l = t.length - 1, c; l >= 0; l--)
|
|
8
8
|
(c = t[l]) && (n = (s ? c(i, r, n) : c(n)) || n);
|
|
@@ -9,7 +9,9 @@ export declare class OccitaneWishlistButton extends OccitaneWishlistButton_base
|
|
|
9
9
|
bgstyle: string;
|
|
10
10
|
ariaDescribedBy: string;
|
|
11
11
|
label: string;
|
|
12
|
+
private _unsubOcc?;
|
|
12
13
|
connectedCallback(): void;
|
|
14
|
+
disconnectedCallback(): void;
|
|
13
15
|
protected firstUpdated(): void;
|
|
14
16
|
private handleKeydown;
|
|
15
17
|
private toggleStatus;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { i as
|
|
1
|
+
import { i as d, m as p, a as b, x as h, t as f } from "../performance-mixin-D7YmSeqN.mjs";
|
|
2
2
|
import { n as r } from "../property-S_Y9cb04.mjs";
|
|
3
3
|
import { o as g } from "../unsafe-svg-C3uTocNg.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { g as
|
|
6
|
-
import { f as
|
|
7
|
-
var
|
|
8
|
-
for (var e = n > 1 ? void 0 : n ?
|
|
4
|
+
import { e as u, o as y, a as v } from "../icons-registry.mjs";
|
|
5
|
+
import { g as w } from "../svg-utils-DOL__czZ.mjs";
|
|
6
|
+
import { f as m, s as S } from "../css-C8WrrxT-.mjs";
|
|
7
|
+
var O = Object.defineProperty, x = Object.getOwnPropertyDescriptor, o = (t, i, a, n) => {
|
|
8
|
+
for (var e = n > 1 ? void 0 : n ? x(i, a) : i, l = t.length - 1, c; l >= 0; l--)
|
|
9
9
|
(c = t[l]) && (e = (n ? c(i, a, e) : c(e)) || e);
|
|
10
|
-
return n && e &&
|
|
10
|
+
return n && e && O(i, a, e), e;
|
|
11
11
|
};
|
|
12
|
-
let s = class extends p(
|
|
12
|
+
let s = class extends p(b) {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments), this.status = "empty", this.icon = "occ-wishlist-outlined", this.bgstyle = "none-contrast", this.ariaDescribedBy = "a-product-name", this.label = "Add to wishlist", this.toggleStatus = () => {
|
|
15
15
|
this.status = this.status === "empty" ? "filled" : "empty", this.icon = this.status === "filled" ? "occ-wishlist-filled" : "occ-wishlist-outlined", this.bgstyle = this.status === "filled" ? "none-contrast" : "none-light", this.setAttribute("aria-pressed", String(this.status === "filled")), this.dispatchEvent(new CustomEvent("wishlist-toggle", {
|
|
@@ -20,7 +20,11 @@ let s = class extends p(d) {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
connectedCallback() {
|
|
23
|
-
super.connectedCallback(), this.setAttribute("role", "button"), this.setAttribute("aria-pressed", String(this.status === "filled"));
|
|
23
|
+
super.connectedCallback(), this.setAttribute("role", "button"), this.setAttribute("aria-pressed", String(this.status === "filled")), u("occ-wishlist-outlined"), u("occ-wishlist-filled"), this._unsubOcc = y(() => this.requestUpdate());
|
|
24
|
+
}
|
|
25
|
+
disconnectedCallback() {
|
|
26
|
+
var t;
|
|
27
|
+
(t = this._unsubOcc) == null || t.call(this), super.disconnectedCallback();
|
|
24
28
|
}
|
|
25
29
|
firstUpdated() {
|
|
26
30
|
this.addEventListener("click", this.toggleStatus), this.addEventListener("keydown", this.handleKeydown);
|
|
@@ -29,9 +33,9 @@ let s = class extends p(d) {
|
|
|
29
33
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), this.toggleStatus());
|
|
30
34
|
}
|
|
31
35
|
render() {
|
|
32
|
-
const t =
|
|
36
|
+
const t = v[this.icon] ?? "";
|
|
33
37
|
if (!t) return h``;
|
|
34
|
-
const i =
|
|
38
|
+
const i = w(t);
|
|
35
39
|
return h`
|
|
36
40
|
<button type="button" aria-describedby="${this.ariaDescribedBy}" class="wishlist-button">
|
|
37
41
|
<span class="sr-only">${this.label}</span>
|
|
@@ -49,7 +53,7 @@ let s = class extends p(d) {
|
|
|
49
53
|
this.label = t, this.requestUpdate();
|
|
50
54
|
}
|
|
51
55
|
};
|
|
52
|
-
s.styles =
|
|
56
|
+
s.styles = d`
|
|
53
57
|
:host {
|
|
54
58
|
display: inline-flex;
|
|
55
59
|
justify-content: center;
|
|
@@ -79,7 +83,7 @@ s.styles = u`
|
|
|
79
83
|
}
|
|
80
84
|
|
|
81
85
|
.wishlist-button:focus-visible {
|
|
82
|
-
${
|
|
86
|
+
${m};
|
|
83
87
|
}
|
|
84
88
|
|
|
85
89
|
.wishlist-button:hover svg path {
|
|
@@ -97,7 +101,7 @@ s.styles = u`
|
|
|
97
101
|
}
|
|
98
102
|
|
|
99
103
|
.sr-only {
|
|
100
|
-
${
|
|
104
|
+
${S}
|
|
101
105
|
}
|
|
102
106
|
|
|
103
107
|
:host([icon="occ-wishlist-outlined"][bgstyle="none-contrast"]) .wishlist-button svg path {
|
|
@@ -125,7 +129,7 @@ o([
|
|
|
125
129
|
r({ type: String, reflect: !0 })
|
|
126
130
|
], s.prototype, "label", 2);
|
|
127
131
|
s = o([
|
|
128
|
-
|
|
132
|
+
f("o-wishlist-button")
|
|
129
133
|
], s);
|
|
130
134
|
export {
|
|
131
135
|
s as OccitaneWishlistButton
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const C = {
|
|
2
|
+
small: `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path d="M4.05 4.15V7.25H7.96V4.15L6 2.43L4.05 4.15ZM7.18 4.5V6.47H4.83V4.5L6 3.47L7.18 4.5Z" fill="#3F2B2E"/>
|
|
4
|
+
<path d="M9.93 2.65L9.86 2.52C9.12 1.31 7.57 0.5 6 0.5C4.35 0.5 2.77 1.36 2.07 2.64C1.54 3.62 1.37 4.83 1.6 6.04C2.24 9.63 5.69 11.35 5.83 11.42L6 11.5L6.17 11.42C6.17 11.42 6.44 11.29 6.84 11.03C7.89 10.34 10.35 8.4 10.5 5.19V4.65C10.46 3.94 10.26 3.26 9.93 2.65ZM9.72 5.17C9.6 7.9 7.6 9.6 6.42 10.37C6.25 10.48 6.11 10.56 6.01 10.62C5.33 10.24 2.86 8.66 2.37 5.9C2.18 4.88 2.32 3.83 2.76 3.02C3.32 2 4.66 1.29 6.01 1.29C7.36 1.29 8.6 1.95 9.19 2.92L9.25 3.03C9.52 3.53 9.68 4.11 9.72 4.67V5.17Z" fill="#3F2B2E"/>
|
|
5
|
+
</svg>
|
|
6
|
+
`,
|
|
7
|
+
medium: `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<path d="M5.3591 5.46338V9.74767H10.6497V5.46338L7.99938 3.08655L5.3591 5.46338ZM9.48953 6.00266V8.55925H6.51922V6.00266L7.99938 4.66445L9.48953 6.00266Z" fill="#3F2B2E"/>
|
|
9
|
+
<path d="M14 6.16245C13.94 5.20373 13.68 4.26498 13.2399 3.43609L13.1399 3.25632C12.1498 1.60852 10.0896 0.5 7.99938 0.5C5.80915 0.509987 3.69893 1.67843 2.75883 3.43609C2.05876 4.7743 1.82873 6.41212 2.12877 8.05992C2.97885 12.9334 7.55933 15.2703 7.74935 15.3702L7.99938 15.5L8.2494 15.3702C8.2494 15.3702 8.59944 15.1904 9.13949 14.8409C10.5296 13.9121 13.8 11.2756 13.99 6.91145V6.17244L14 6.16245ZM8.50943 13.8422C8.30941 13.982 8.12939 14.0819 7.99938 14.1618C7.06928 13.6225 3.89895 11.5153 3.26888 7.8502C3.02886 6.48202 3.20888 5.08389 3.77894 4.00533C4.50901 2.64714 6.24919 1.6984 8.00938 1.6984C9.76956 1.6984 11.3797 2.57723 12.1498 3.86551L12.2298 4.01531C12.5799 4.68442 12.7999 5.4534 12.8399 6.2024V6.8715C12.6799 10.5266 10.0596 12.8036 8.50943 13.8322V13.8422Z" fill="#3F2B2E"/>
|
|
10
|
+
</svg>
|
|
11
|
+
`,
|
|
12
|
+
large: `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
13
|
+
<path d="M8 8.15V14.46H16.02V8.15L12 4.67L8 8.15ZM14.75 8.72V13.22H9.26V8.72L12 6.34L14.75 8.72Z" fill="#3F2B2E"/>
|
|
14
|
+
<path d="M21.5 9.14C21.41 7.67 21 6.23 20.3 4.97L20.15 4.7C18.59 2.19 15.32 0.5 12 0.5C8.52 0.5 5.19 2.29 3.7 4.95C2.58 7 2.23 9.52 2.7 12.05C4.06 19.6 11.41 23.22 11.72 23.37L12 23.5L12.28 23.37C12.28 23.37 12.86 23.09 13.7 22.55C15.94 21.11 21.19 17.02 21.5 10.28V9.14ZM13.01 21.5C12.58 21.78 12.23 21.98 12 22.1C10.68 21.38 5.04 17.96 3.95 11.83C3.53 9.61 3.85 7.32 4.81 5.55C6.06 3.31 9.02 1.75 12 1.75C14.98 1.75 17.73 3.2 19.05 5.33L19.19 5.57C19.79 6.66 20.15 7.92 20.23 9.17V10.25C19.96 16.16 15.59 19.83 13.01 21.5Z" fill="#3F2B2E"/>
|
|
15
|
+
</svg>
|
|
16
|
+
`
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
C as variants
|
|
20
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const l = {
|
|
2
|
+
small: `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.46 0.84L11.5 0.59L11.01 0.5L10.97 0.75C10.85 1.43 10.88 2.4 10.92 3.05L10.08 2.21C8.98 1.14 7.53 0.55 6 0.55C2.98 0.55 0.52 3.01 0.52 6.03H1.02C1.02 3.28 3.25 1.05 5.99 1.05C7.39 1.05 8.72 1.6 9.72 2.57L10.55 3.4C10 3.37 9.18 3.35 8.28 3.46L8.03 3.49L8.09 3.98L8.34 3.95C9.84 3.77 11.16 3.95 11.18 3.95L11.49 3.99L11.46 3.67C11.46 3.67 11.28 1.85 11.46 0.83V0.84Z" fill="#432A2E"/>
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.99 11.01C4.59 11.01 3.26 10.46 2.26 9.49L1.41 8.64C1.99 8.67 2.85 8.68 3.69 8.6L3.64 8.1C2.29 8.23 0.8 8.1 0.79 8.1L0.5 8.07L0.52 8.36C0.52 8.36 0.63 9.76 0.52 11.23L1.02 11.27C1.09 10.38 1.08 9.54 1.06 8.98L1.91 9.84C3.01 10.91 4.46 11.5 5.99 11.5C9.01 11.5 11.46 9.04 11.46 6.02H10.96C10.96 8.77 8.73 11 5.99 11V11.01Z" fill="#432A2E"/>
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.93 3.82V3.9C4.84 5.87 4.65 8.95 4.51 9.38V9.77H7.25L7.5 9.72V9.46L7.48 9.37C7.34 8.98 7.15 5.81 7.06 3.9V3.82L6.68 3.33H5.29L4.93 3.82ZM5.44 4L5.56 3.84H6.44L6.56 4C6.56 4.15 6.58 4.43 6.6 4.78C6.47 4.58 6.26 4.43 6 4.43C5.74 4.43 5.53 4.57 5.4 4.78C5.42 4.43 5.43 4.15 5.44 4ZM6.21 5.15C6.21 5.27 6.12 5.36 6 5.36C5.88 5.36 5.79 5.26 5.79 5.15C5.79 5.04 5.88 4.94 6 4.94C6.12 4.94 6.21 5.04 6.21 5.15ZM6 5.88C6.28 5.88 6.52 5.71 6.64 5.48C6.71 6.8 6.82 8.55 6.94 9.26H5.06C5.18 8.52 5.29 6.78 5.36 5.48C5.48 5.72 5.72 5.89 6 5.89V5.88Z" fill="#432A2E"/>
|
|
6
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.32 3.11V2.73L6.61 2.77V2.31L6.31 2.26H5.69L5.39 2.31V2.77L5.68 2.73V3.11H6.32Z" fill="#432A2E"/>
|
|
7
|
+
</svg>
|
|
8
|
+
`,
|
|
9
|
+
medium: `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.94 1.4194L15 1.10984L14.3796 1L14.3195 1.30956C14.1594 2.17832 14.1994 3.40656 14.2495 4.22539L13.1787 3.15692C11.7777 1.79886 9.92638 1.04993 7.97498 1.03994C4.13224 1.03994 1.01001 4.16548 1.01001 8H1.64046C1.65046 4.52496 4.49249 1.67903 7.98499 1.67903C9.76626 1.67903 11.4575 2.36805 12.7384 3.60628L13.7891 4.65478C13.0886 4.61484 12.0479 4.59486 10.8971 4.73466L10.5868 4.77461L10.6669 5.40371L10.9771 5.36377C12.8885 5.13409 14.5697 5.36377 14.5897 5.36377L14.99 5.42368L14.95 5.02425C14.95 5.02425 14.7198 2.70756 14.95 1.4194H14.94Z" fill="#3F2B2E"/>
|
|
11
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.98499 14.3509C6.20372 14.3509 4.51251 13.6619 3.23159 12.4237L2.15082 11.3452C2.88134 11.3752 3.99214 11.3952 5.0629 11.2953L5.00286 10.6662C3.28163 10.8359 1.39028 10.6662 1.37026 10.6662L1 10.6362L1.03002 11.0057C1.03002 11.0057 1.17012 12.7932 1.03002 14.6505L1.66047 14.7004C1.75054 13.572 1.73052 12.5036 1.71051 11.7946L2.80129 12.883C4.20229 14.2411 6.05361 14.99 8.005 15C11.8477 15 14.97 11.8745 14.97 8.03994H14.3395C14.3395 11.535 11.4975 14.3709 8.005 14.3709L7.98499 14.3509Z" fill="#3F2B2E"/>
|
|
12
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.57398 5.07418V5.17404C6.44389 7.7903 6.20372 11.8944 6.01358 12.4636L5.99357 12.5835V12.9729H9.99643V12.6334L9.97641 12.4536C9.79628 11.9344 9.5361 7.71041 9.41601 5.17404V5.06419L8.91565 4.41512H7.05432L6.57398 5.07418ZM7.24446 5.31384L7.40457 5.09415H8.58542L8.75554 5.31384C8.75554 5.51355 8.78556 5.86305 8.80558 6.31241C8.63545 6.05278 8.33524 5.88302 8.005 5.88302C7.67477 5.88302 7.37455 6.05278 7.20443 6.31241C7.22445 5.86305 7.24446 5.50357 7.25447 5.31384H7.24446ZM8.2752 6.85164C8.2752 7.01141 8.1451 7.13124 7.995 7.13124C7.84489 7.13124 7.7148 7.00143 7.7148 6.85164C7.7148 6.70185 7.84489 6.57204 7.995 6.57204C8.1451 6.57204 8.2752 6.70185 8.2752 6.85164ZM7.995 7.81027C8.36526 7.81027 8.68549 7.59058 8.8456 7.28103C8.94568 9.01854 9.09578 11.3252 9.24589 12.3039H6.72409C6.8842 11.3153 7.03431 9.01854 7.12437 7.28103C7.28449 7.59058 7.60472 7.81027 7.97498 7.81027H7.995Z" fill="#3F2B2E"/>
|
|
13
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.4153 4.12554L8.4253 3.62625L8.80558 3.66619V3.06705L8.4153 2.99715H7.5747L7.18442 3.06705V3.66619L7.56469 3.62625L7.5747 4.12554H8.4153Z" fill="#3F2B2E"/>
|
|
14
|
+
</svg>
|
|
15
|
+
`,
|
|
16
|
+
large: `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
17
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M22.91 1.6703L23 1.18008L22.02 1L21.93 1.49022C21.69 2.85084 21.74 4.79172 21.82 6.08231L20.14 4.40155C17.94 2.27058 15.04 1.09004 11.98 1.08004C5.95 1.08004 1.05 6.00227 1.05 12.045H2.04C2.04 6.55252 6.5 2.08049 11.98 2.08049C14.78 2.0905 17.44 3.17099 19.45 5.12187L21.1 6.78263C20 6.7126 18.36 6.69259 16.56 6.90268L16.07 6.96271L16.19 7.95316L16.68 7.89313C19.69 7.53297 22.33 7.89313 22.35 7.89313L22.98 7.98317L22.92 7.35289C22.92 7.35289 22.55 3.70123 22.92 1.68031L22.91 1.6703Z" fill="#432A2E"/>
|
|
18
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.99 22.0096C9.19 21.9995 6.53 20.9191 4.52 18.9682L2.83 17.2674C3.98 17.3174 5.72 17.3474 7.4 17.1874L7.3 16.1969C4.6 16.457 1.62 16.1969 1.59 16.1969L1 16.1469L1.05 16.7372C1.05 16.7372 1.27 19.5484 1.05 22.4698L2.04 22.5498C2.18 20.769 2.15 19.0882 2.11 17.9677L3.82 19.6785C6.02 21.8095 8.92 22.99 11.98 23C18.01 23 22.92 18.0778 22.92 12.035H21.93C21.93 17.5275 17.47 21.9995 11.99 21.9995V22.0096Z" fill="#432A2E"/>
|
|
19
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.87 7.62301V7.78308C9.68 11.7149 9.31 17.8877 9.02 18.7381L8.99 18.9181V19.5084H14.99V18.9982L14.96 18.7181C14.68 17.9377 14.3 11.5948 14.13 7.77308V7.61301L13.38 6.63256H10.6L9.87 7.62301ZM10.87 7.98317L11.11 7.66303H12.88L13.13 7.99318C13.14 8.28331 13.17 8.82356 13.2 9.50387C12.94 9.11369 12.5 8.85357 12 8.85357C11.5 8.85357 11.06 9.11369 10.8 9.50387C10.83 8.82356 10.86 8.29331 10.87 7.99318V7.98317ZM12.42 10.2842C12.42 10.5243 12.23 10.7144 11.99 10.7144C11.75 10.7144 11.56 10.5243 11.56 10.2842C11.56 10.0441 11.75 9.85402 11.99 9.85402C12.23 9.85402 12.42 10.0441 12.42 10.2842ZM12 11.7349C12.56 11.7349 13.04 11.4047 13.28 10.9345C13.43 13.5357 13.65 17.0073 13.89 18.4779H10.12C10.36 16.9973 10.58 13.5357 10.73 10.9345C10.97 11.4047 11.45 11.7249 12.01 11.7249L12 11.7349Z" fill="#432A2E"/>
|
|
20
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.64 6.20236V5.45202L13.22 5.51205V4.60164L12.62 4.50159H11.38L10.78 4.60164V5.51205L11.36 5.45202V6.20236H12.64Z" fill="#432A2E"/>
|
|
21
|
+
</svg>
|
|
22
|
+
`
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
l as variants
|
|
26
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const C = {
|
|
2
|
+
small: `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path d="M10.4936 10.49V10.46C10.5837 8.33241 9.61329 5.95505 7.29241 5.76526C6.21199 5.67536 4.86148 5.69534 3.56098 5.70533C3.03078 5.70533 2.53059 5.71532 2.0504 5.70533C2.71065 6.37458 3.74105 7.5333 4.73143 9.08158L4.29126 9.36126C3.04078 7.40344 1.72028 6.09489 1.21008 5.62542L1 5.43563L1.21008 5.24584C1.71027 4.78635 3.01077 3.48779 4.27125 1.5L4.71142 1.77969C3.70103 3.36792 2.66064 4.53663 2.01039 5.19589C2.49057 5.19589 3.00077 5.19589 3.54097 5.19589C4.85147 5.1859 6.21199 5.16593 7.32242 5.25583C9.98344 5.47558 11.0939 8.12264 10.9938 10.48L10.4736 10.5L10.4936 10.49Z" fill="#3F2B2E"/>
|
|
4
|
+
</svg>
|
|
5
|
+
`,
|
|
6
|
+
medium: `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7
|
+
<path d="M14.3003 14V13.9601C14.4205 11.1248 13.0684 7.96007 9.81343 7.7005C8.29111 7.5807 6.40824 7.60067 4.57545 7.62063C3.83432 7.62063 3.12324 7.6406 2.46223 7.63062C3.38363 8.51913 4.83585 10.0566 6.21795 12.1231L5.60702 12.4925C3.85435 9.87687 2.00153 8.13977 1.29044 7.51082L1 7.25125L1.29044 6.99168C1.99151 6.37271 3.81429 4.65557 5.57698 2L6.18791 2.36938C4.77575 4.49584 3.32354 6.03328 2.40214 6.91181C3.07316 6.91181 3.79426 6.91181 4.5454 6.90183C6.38821 6.88186 8.29111 6.8619 9.84348 6.9817C13.5792 7.2812 15.1315 10.8053 14.9913 13.9501L14.2602 13.97L14.3003 14Z" fill="#3F2B2E"/>
|
|
8
|
+
</svg>
|
|
9
|
+
`,
|
|
10
|
+
large: `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
11
|
+
<path d="M20.9489 21V20.94C21.1189 16.6724 19.189 11.935 14.5493 11.5353C12.3894 11.3554 9.68954 11.3853 7.0897 11.4153C6.03976 11.4253 5.01982 11.4453 4.07988 11.4353C5.3998 12.7746 7.45967 15.0833 9.43956 18.1816L8.55961 18.7413C6.05976 14.8234 3.41992 12.2049 2.40998 11.2554L2 10.8756L2.40998 10.4958C3.40992 9.56635 6.00976 6.97779 8.52961 3L9.40956 3.55969C7.38968 6.74792 5.3198 9.06663 4.01988 10.3859C4.96982 10.3859 6.00976 10.3859 7.0797 10.3659C9.70954 10.3359 12.4294 10.3159 14.6392 10.4958C19.9589 10.9456 22.1788 16.2326 21.9888 20.96L20.9489 20.99V21Z" fill="#3F2B2E"/>
|
|
12
|
+
</svg>
|
|
13
|
+
`
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
C as variants
|
|
17
|
+
};
|