@florid-kit/components 3.1.2 → 3.1.4
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/aria.d.ts +1 -1
- package/components/button.mjs +1 -1
- package/components/chip.mjs +1 -1
- package/components/dropdown-variant.mjs +1 -1
- package/components/dropdown.mjs +1 -1
- package/components/filter-chip.mjs +1 -1
- package/components/icon.d.ts +51 -0
- package/components/input.mjs +9 -8
- package/components/popin.mjs +1 -1
- package/components/rating.mjs +1 -1
- package/components/side-panel.mjs +1 -1
- package/components/toast.mjs +1 -1
- package/components/wishlist-button.mjs +1 -1
- package/icon-CAvOSN1L.mjs +276 -0
- package/index.mjs +1 -0
- package/loader.mjs +1 -0
- package/package.json +1 -1
- package/unsafe-html-DAJ3o0dq.mjs +27 -0
- package/unsafe-svg-BipL_msF.mjs +14 -0
- package/unsafe-svg-C3uTocNg.mjs +0 -34
package/aria.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export type ARIAAttribute = ARIAPropertyToAttribute<ARIAProperty>;
|
|
|
15
15
|
/**
|
|
16
16
|
* Accessibility Object Model aria attributes.
|
|
17
17
|
*/
|
|
18
|
-
export declare const ARIA_ATTRIBUTES: ("aria-label" | "aria-modal" | "aria-pressed" | "aria-expanded" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-current" | "aria-description" | "aria-disabled" | "aria-haspopup" | "aria-
|
|
18
|
+
export declare const ARIA_ATTRIBUTES: ("aria-label" | "aria-modal" | "aria-pressed" | "aria-hidden" | "aria-expanded" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-current" | "aria-description" | "aria-disabled" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-live" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-placeholder" | "aria-posinset" | "aria-readonly" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext")[];
|
|
19
19
|
/**
|
|
20
20
|
* Checks if an attribute is one of the AOM aria attributes.
|
|
21
21
|
*
|
package/components/button.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import "../element-internals-Dw7LndlH.mjs";
|
|
|
5
5
|
import { O as c, v as e } from "./side-panel.mjs";
|
|
6
6
|
import "../icons-registry.mjs";
|
|
7
7
|
import "../svg-utils-DOL__czZ.mjs";
|
|
8
|
-
import "../unsafe-svg-
|
|
8
|
+
import "../unsafe-svg-BipL_msF.mjs";
|
|
9
9
|
export {
|
|
10
10
|
c as OccitaneButton,
|
|
11
11
|
e as variants
|
package/components/chip.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { n as o } from "../property-S_Y9cb04.mjs";
|
|
|
3
3
|
import { f as g } from "../css-C8WrrxT-.mjs";
|
|
4
4
|
import { m as f } from "../element-internals-Dw7LndlH.mjs";
|
|
5
5
|
import { i as m } from "../icons-registry.mjs";
|
|
6
|
-
import { o as y } from "../unsafe-svg-
|
|
6
|
+
import { o as y } from "../unsafe-svg-BipL_msF.mjs";
|
|
7
7
|
var x = Object.defineProperty, w = Object.getOwnPropertyDescriptor, e = (r, i, n, a) => {
|
|
8
8
|
for (var s = a > 1 ? void 0 : a ? w(i, n) : i, h = r.length - 1, d; h >= 0; h--)
|
|
9
9
|
(d = r[h]) && (s = (a ? d(i, n, s) : d(s)) || s);
|
|
@@ -2,7 +2,7 @@ import { i as m, m as y, a as w, x as p, t as x } from "../performance-mixin-D7Y
|
|
|
2
2
|
import { n as c } from "../property-S_Y9cb04.mjs";
|
|
3
3
|
import { r as f } from "../state-DjMxXomO.mjs";
|
|
4
4
|
import { e as _, o as k, a as $ } from "../icons-registry.mjs";
|
|
5
|
-
import { o as I } from "../unsafe-svg-
|
|
5
|
+
import { o as I } from "../unsafe-svg-BipL_msF.mjs";
|
|
6
6
|
import { o as l } from "../if-defined-j0wE2gL4.mjs";
|
|
7
7
|
var O = Object.defineProperty, C = Object.getOwnPropertyDescriptor, r = (e, i, o, t) => {
|
|
8
8
|
for (var n = t > 1 ? void 0 : t ? C(i, o) : i, s = e.length - 1, d; s >= 0; s--)
|
package/components/dropdown.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { i as u, m as v, a as b, x as s, t as f } from "../performance-mixin-D7Y
|
|
|
2
2
|
import { n as l } from "../property-S_Y9cb04.mjs";
|
|
3
3
|
import { r as h } from "../state-DjMxXomO.mjs";
|
|
4
4
|
import { e as g, o as y, a as m } from "../icons-registry.mjs";
|
|
5
|
-
import { o as p } from "../unsafe-svg-
|
|
5
|
+
import { o as p } from "../unsafe-svg-BipL_msF.mjs";
|
|
6
6
|
var w = Object.defineProperty, x = Object.getOwnPropertyDescriptor, n = (e, t, r, o) => {
|
|
7
7
|
for (var i = o > 1 ? void 0 : o ? x(t, r) : t, c = e.length - 1, d; c >= 0; c--)
|
|
8
8
|
(d = e[c]) && (i = (o ? d(t, r, i) : d(i)) || i);
|
|
@@ -3,7 +3,7 @@ import { n as i } from "../property-S_Y9cb04.mjs";
|
|
|
3
3
|
import { f as g } from "../css-C8WrrxT-.mjs";
|
|
4
4
|
import { m as v } from "../element-internals-Dw7LndlH.mjs";
|
|
5
5
|
import { i as m } from "../icons-registry.mjs";
|
|
6
|
-
import { o as y } from "../unsafe-svg-
|
|
6
|
+
import { o as y } from "../unsafe-svg-BipL_msF.mjs";
|
|
7
7
|
import "./icon-button.mjs";
|
|
8
8
|
var x = Object.defineProperty, k = Object.getOwnPropertyDescriptor, r = (t, s, a, c) => {
|
|
9
9
|
for (var n = c > 1 ? void 0 : c ? k(s, a) : s, d = t.length - 1, h; d >= 0; d--)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { LitElement, nothing } from 'lit';
|
|
2
|
+
import { IconBgStyle, IconLogicalSize, IconName } from '../assets/icons/icons';
|
|
3
|
+
|
|
4
|
+
type bgstyle = IconBgStyle;
|
|
5
|
+
type size = IconLogicalSize;
|
|
6
|
+
type status = "empty" | "filled";
|
|
7
|
+
declare const OccitaneIcon_base: import('../behaviors/mixin.js').MixinReturn<typeof LitElement>;
|
|
8
|
+
/**
|
|
9
|
+
* `<o-icon>` renders an icon from the central registry as a non-interactive,
|
|
10
|
+
* decorative-or-labelled graphic. It shares the visual language of
|
|
11
|
+
* `<o-icon-button>` (sizes, bgStyles, status, OCC lazy-loading) but carries no
|
|
12
|
+
* button semantics — no `<button>`, no cursor, no hover/active/disabled states.
|
|
13
|
+
*
|
|
14
|
+
* Accessibility:
|
|
15
|
+
* - Decorative by default — when no `label` is set the host is `aria-hidden`
|
|
16
|
+
* so assistive tech skips it (the inner SVG is also `aria-hidden`).
|
|
17
|
+
* - Meaningful when `label` is set — the host becomes `role="img"` with the
|
|
18
|
+
* given `aria-label`, so screen readers announce it as a single image.
|
|
19
|
+
*
|
|
20
|
+
* Use this to replace markup like
|
|
21
|
+
* `<span class="m-icon-colored-rounded"><i class="a-icon-reward-card"/></span>`
|
|
22
|
+
* with `<o-icon icon="occ-reward-card" bgstyle="background-light"></o-icon>`.
|
|
23
|
+
*/
|
|
24
|
+
export declare class OccitaneIcon extends OccitaneIcon_base {
|
|
25
|
+
static styles: import('lit').CSSResult;
|
|
26
|
+
bgstyle: bgstyle;
|
|
27
|
+
size: size;
|
|
28
|
+
status: status;
|
|
29
|
+
strokewidth: string;
|
|
30
|
+
icon: IconName | "";
|
|
31
|
+
/**
|
|
32
|
+
* Accessible name. When set, the icon is announced as an image with this
|
|
33
|
+
* label. When empty (default), the icon is treated as decorative and hidden
|
|
34
|
+
* from assistive technology.
|
|
35
|
+
*/
|
|
36
|
+
label: string;
|
|
37
|
+
private _unsubOcc?;
|
|
38
|
+
private _clearOccSubscription;
|
|
39
|
+
private _syncOccSubscription;
|
|
40
|
+
private _syncHostA11y;
|
|
41
|
+
connectedCallback(): void;
|
|
42
|
+
disconnectedCallback(): void;
|
|
43
|
+
protected updated(changedProperties: Map<string, unknown>): void;
|
|
44
|
+
protected render(): typeof nothing | import('lit').TemplateResult<1>;
|
|
45
|
+
}
|
|
46
|
+
declare global {
|
|
47
|
+
interface HTMLElementTagNameMap {
|
|
48
|
+
"o-icon": OccitaneIcon;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export {};
|
package/components/input.mjs
CHANGED
|
@@ -3,17 +3,18 @@ import { n as o } from "../property-S_Y9cb04.mjs";
|
|
|
3
3
|
import { e as m } from "../query-NJDNu0-P.mjs";
|
|
4
4
|
import { l as y } from "../live-C_TUoYRm.mjs";
|
|
5
5
|
import { o as h } from "../if-defined-j0wE2gL4.mjs";
|
|
6
|
+
import { o as w } from "../unsafe-html-DAJ3o0dq.mjs";
|
|
6
7
|
import "./icon-button.mjs";
|
|
7
|
-
import { m as
|
|
8
|
-
var
|
|
9
|
-
for (var a = l > 1 ? void 0 : l ?
|
|
8
|
+
import { m as x, i as d } from "../element-internals-Dw7LndlH.mjs";
|
|
9
|
+
var $ = Object.defineProperty, I = Object.getOwnPropertyDescriptor, e = (r, i, c, l) => {
|
|
10
|
+
for (var a = l > 1 ? void 0 : l ? I(i, c) : i, p = r.length - 1, u; p >= 0; p--)
|
|
10
11
|
(u = r[p]) && (a = (l ? u(i, c, a) : u(a)) || a);
|
|
11
|
-
return l && a &&
|
|
12
|
+
return l && a && $(i, c, a), a;
|
|
12
13
|
};
|
|
13
|
-
const
|
|
14
|
-
let
|
|
14
|
+
const S = f(x(b));
|
|
15
|
+
let E = 0, t = class extends S {
|
|
15
16
|
constructor() {
|
|
16
|
-
super(), this.label = "", this.value = "", this.placeholder = "", this.helperText = "", this.state = "default", this.disabled = !1, this.leadingIcon = "", this.trailingIcon = "", this.name = "", this.required = !1, this.clearLabel = "Clear", this.inputId = "", this.inputId || (this.inputId = `o-input-${++
|
|
17
|
+
super(), this.label = "", this.value = "", this.placeholder = "", this.helperText = "", this.state = "default", this.disabled = !1, this.leadingIcon = "", this.trailingIcon = "", this.name = "", this.required = !1, this.clearLabel = "Clear", this.inputId = "", this.inputId || (this.inputId = `o-input-${++E}`);
|
|
17
18
|
}
|
|
18
19
|
updated(r) {
|
|
19
20
|
(r.has("value") || r.has("name")) && this[d].setFormValue(this.value);
|
|
@@ -86,7 +87,7 @@ let S = 0, t = class extends I {
|
|
|
86
87
|
${this.helperText ? n`
|
|
87
88
|
<div class="helper-text" id="${this.inputId}-helper">
|
|
88
89
|
${this.renderHelperIcon()}
|
|
89
|
-
<p>${this.helperText}</p>
|
|
90
|
+
<p>${w(this.helperText)}</p>
|
|
90
91
|
</div>
|
|
91
92
|
` : s}
|
|
92
93
|
`;
|
package/components/popin.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { m as u, a as g, x as s, i as f } from "../performance-mixin-D7YmSeqN.mjs";
|
|
2
2
|
import { n } from "../property-S_Y9cb04.mjs";
|
|
3
3
|
import { r as h } from "../state-DjMxXomO.mjs";
|
|
4
|
-
import { o as m } from "../unsafe-svg-
|
|
4
|
+
import { o as m } from "../unsafe-svg-BipL_msF.mjs";
|
|
5
5
|
import "./icon-button.mjs";
|
|
6
6
|
const b = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
7
7
|
<svg
|
package/components/rating.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as f, m as u, a as g, x as c, t as h } from "../performance-mixin-D7YmSeqN.mjs";
|
|
2
2
|
import { n as p } from "../property-S_Y9cb04.mjs";
|
|
3
|
-
import { o as v } from "../unsafe-svg-
|
|
3
|
+
import { o as v } from "../unsafe-svg-BipL_msF.mjs";
|
|
4
4
|
import { o as m, r as d } from "../icons-registry.mjs";
|
|
5
5
|
import "./link.mjs";
|
|
6
6
|
var y = Object.defineProperty, b = Object.getOwnPropertyDescriptor, i = (t, e, r, s) => {
|
|
@@ -4,7 +4,7 @@ import { f as w } from "../css-C8WrrxT-.mjs";
|
|
|
4
4
|
import { i as E, m as P } from "../element-internals-Dw7LndlH.mjs";
|
|
5
5
|
import { e as $, o as _, a as I } from "../icons-registry.mjs";
|
|
6
6
|
import { g as z } from "../svg-utils-DOL__czZ.mjs";
|
|
7
|
-
import { o as F } from "../unsafe-svg-
|
|
7
|
+
import { o as F } from "../unsafe-svg-BipL_msF.mjs";
|
|
8
8
|
import "./icon-button.mjs";
|
|
9
9
|
import { i as O, t as L, e as R } from "../directive-oAbCiebi.mjs";
|
|
10
10
|
import { f as q } from "../directive-helpers-BHuwIghp.mjs";
|
package/components/toast.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as f, m as p, a as u, x as m, t as d } from "../performance-mixin-D7YmSeqN.mjs";
|
|
2
2
|
import { n as a } from "../property-S_Y9cb04.mjs";
|
|
3
|
-
import { o as v } from "../unsafe-svg-
|
|
3
|
+
import { o as v } from "../unsafe-svg-BipL_msF.mjs";
|
|
4
4
|
import "./icon-button.mjs";
|
|
5
5
|
import { t as g } from "../icons-registry.mjs";
|
|
6
6
|
var y = Object.defineProperty, x = Object.getOwnPropertyDescriptor, o = (t, i, r, s) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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
|
-
import { o as g } from "../unsafe-svg-
|
|
3
|
+
import { o as g } from "../unsafe-svg-BipL_msF.mjs";
|
|
4
4
|
import { e as u, o as y, a as v } from "../icons-registry.mjs";
|
|
5
5
|
import { g as w } from "../svg-utils-DOL__czZ.mjs";
|
|
6
6
|
import { f as m, s as S } from "../css-C8WrrxT-.mjs";
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { i as p, m as d, a as u, E as a, x as m, t as v } from "./performance-mixin-D7YmSeqN.mjs";
|
|
2
|
+
import { n } from "./property-S_Y9cb04.mjs";
|
|
3
|
+
import { r as g, o as b } from "./icons-registry.mjs";
|
|
4
|
+
import { c as x } from "./svg-utils-DOL__czZ.mjs";
|
|
5
|
+
var y = Object.defineProperty, f = Object.getOwnPropertyDescriptor, e = (t, s, c, h) => {
|
|
6
|
+
for (var o = h > 1 ? void 0 : h ? f(s, c) : s, l = t.length - 1, r; l >= 0; l--)
|
|
7
|
+
(r = t[l]) && (o = (h ? r(s, c, o) : r(o)) || o);
|
|
8
|
+
return h && o && y(s, c, o), o;
|
|
9
|
+
};
|
|
10
|
+
const w = (t) => t.startsWith("occ-");
|
|
11
|
+
let i = class extends d(u) {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments), this.bgstyle = "none-light", this.size = "medium", this.status = "empty", this.strokewidth = "1", this.icon = "", this.label = "";
|
|
14
|
+
}
|
|
15
|
+
_clearOccSubscription() {
|
|
16
|
+
var t;
|
|
17
|
+
(t = this._unsubOcc) == null || t.call(this), this._unsubOcc = void 0;
|
|
18
|
+
}
|
|
19
|
+
_syncOccSubscription() {
|
|
20
|
+
const t = this.icon;
|
|
21
|
+
if (!t || !w(t)) {
|
|
22
|
+
this._clearOccSubscription();
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const { svg: s } = g(t, { size: this.size, bgstyle: this.bgstyle });
|
|
26
|
+
if (s) {
|
|
27
|
+
this._clearOccSubscription();
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
this._unsubOcc || (this._unsubOcc = b(() => {
|
|
31
|
+
const { svg: c } = g(t, { size: this.size, bgstyle: this.bgstyle });
|
|
32
|
+
c && (this._clearOccSubscription(), this.requestUpdate());
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
35
|
+
_syncHostA11y() {
|
|
36
|
+
this.label ? (this.setAttribute("role", "img"), this.setAttribute("aria-label", this.label), this.removeAttribute("aria-hidden")) : (this.setAttribute("aria-hidden", "true"), this.removeAttribute("role"), this.removeAttribute("aria-label"));
|
|
37
|
+
}
|
|
38
|
+
connectedCallback() {
|
|
39
|
+
super.connectedCallback(), this._syncOccSubscription();
|
|
40
|
+
}
|
|
41
|
+
disconnectedCallback() {
|
|
42
|
+
this._clearOccSubscription(), super.disconnectedCallback();
|
|
43
|
+
}
|
|
44
|
+
updated(t) {
|
|
45
|
+
super.updated(t), this.style.setProperty("--icon-stroke-width", this.strokewidth), t.has("icon") && this._syncOccSubscription(), t.has("label") && this._syncHostA11y();
|
|
46
|
+
}
|
|
47
|
+
render() {
|
|
48
|
+
if (!this.icon)
|
|
49
|
+
return a;
|
|
50
|
+
const t = x(this.icon, this.size, this.bgstyle);
|
|
51
|
+
if (!t) return a;
|
|
52
|
+
const s = `icon-${this.icon}`;
|
|
53
|
+
return m`
|
|
54
|
+
<span
|
|
55
|
+
part="icon"
|
|
56
|
+
class="icon ${this.size} ${this.bgstyle} ${this.status} ${s}"
|
|
57
|
+
>
|
|
58
|
+
${t}
|
|
59
|
+
</span>
|
|
60
|
+
`;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
i.styles = p`
|
|
64
|
+
:host {
|
|
65
|
+
display: inline-flex;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
align-items: center;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/*
|
|
71
|
+
* Reserve the host's footprint while the (code-split) SVG loads, so the
|
|
72
|
+
* host doesn't collapse to 0×0 and shift surrounding content (CLS).
|
|
73
|
+
* Values mirror the rendered .icon sizes below.
|
|
74
|
+
*/
|
|
75
|
+
:host([size="xsmall"]) { min-width: 20px; min-height: 20px; }
|
|
76
|
+
:host([size="small"]) { min-width: 32px; min-height: 32px; }
|
|
77
|
+
:host([size="medium"]) { min-width: 40px; min-height: 40px; }
|
|
78
|
+
:host([size="large"]) { min-width: 40px; min-height: 40px; }
|
|
79
|
+
|
|
80
|
+
:host([bgstyle="none-light"][size="xsmall"]),
|
|
81
|
+
:host([bgstyle="none-contrast"][size="xsmall"]),
|
|
82
|
+
:host([bgstyle="ghost-light"][size="xsmall"]),
|
|
83
|
+
:host([bgstyle="ghost-contrast"][size="xsmall"]) { min-width: 8px; min-height: 8px; }
|
|
84
|
+
:host([bgstyle="none-light"][size="small"]),
|
|
85
|
+
:host([bgstyle="none-contrast"][size="small"]),
|
|
86
|
+
:host([bgstyle="ghost-light"][size="small"]),
|
|
87
|
+
:host([bgstyle="ghost-contrast"][size="small"]) { min-width: 12px; min-height: 12px; }
|
|
88
|
+
:host([bgstyle="none-light"][size="medium"]),
|
|
89
|
+
:host([bgstyle="none-contrast"][size="medium"]),
|
|
90
|
+
:host([bgstyle="ghost-light"][size="medium"]),
|
|
91
|
+
:host([bgstyle="ghost-contrast"][size="medium"]) { min-width: 16px; min-height: 16px; }
|
|
92
|
+
:host([bgstyle="none-light"][size="large"]),
|
|
93
|
+
:host([bgstyle="none-contrast"][size="large"]),
|
|
94
|
+
:host([bgstyle="ghost-light"][size="large"]),
|
|
95
|
+
:host([bgstyle="ghost-contrast"][size="large"]) { min-width: 24px; min-height: 24px; }
|
|
96
|
+
|
|
97
|
+
.icon {
|
|
98
|
+
display: flex;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
align-items: center;
|
|
101
|
+
width: 32px;
|
|
102
|
+
height: 32px;
|
|
103
|
+
border-radius: var(--radius-full);
|
|
104
|
+
position: relative;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.icon.icon-wishlist svg path {
|
|
108
|
+
stroke: var(--color-content-action-secondary);
|
|
109
|
+
stroke-width: var(--icon-stroke-width, 1);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.icon.filled svg {
|
|
113
|
+
fill: var(--color-content-action-secondary);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.icon.xsmall {
|
|
117
|
+
width: 20px;
|
|
118
|
+
height: 20px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.icon.xsmall:not(.icon-wishlist) svg {
|
|
122
|
+
width: 8px;
|
|
123
|
+
height: 8px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.icon.small {
|
|
127
|
+
width: 32px;
|
|
128
|
+
height: 32px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.icon.small:not(.icon-wishlist) svg {
|
|
132
|
+
width: 16px;
|
|
133
|
+
height: 16px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.icon.medium {
|
|
137
|
+
width: 40px;
|
|
138
|
+
height: 40px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.icon.medium:not(.icon-wishlist) svg {
|
|
142
|
+
width: 16px;
|
|
143
|
+
height: 16px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.icon.large {
|
|
147
|
+
width: 40px;
|
|
148
|
+
height: 40px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.icon.large:not(.icon-wishlist) svg {
|
|
152
|
+
width: 24px;
|
|
153
|
+
height: 24px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* No background — icon sizes itself to the glyph */
|
|
157
|
+
.icon.none-light, .icon.none-contrast,
|
|
158
|
+
.icon.ghost-light, .icon.ghost-contrast {
|
|
159
|
+
background-color: transparent;
|
|
160
|
+
width: auto;
|
|
161
|
+
height: auto;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.icon.none-light.xsmall svg,
|
|
165
|
+
.icon.none-contrast.xsmall svg,
|
|
166
|
+
.icon.ghost-light.xsmall svg,
|
|
167
|
+
.icon.ghost-contrast.xsmall svg {
|
|
168
|
+
width: 8px;
|
|
169
|
+
height: 8px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.icon.none-light.small svg,
|
|
173
|
+
.icon.none-contrast.small svg,
|
|
174
|
+
.icon.ghost-light.small svg,
|
|
175
|
+
.icon.ghost-contrast.small svg {
|
|
176
|
+
width: 12px;
|
|
177
|
+
height: 12px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.icon.none-light.medium svg,
|
|
181
|
+
.icon.none-contrast.medium svg,
|
|
182
|
+
.icon.ghost-light.medium svg,
|
|
183
|
+
.icon.ghost-contrast.medium svg {
|
|
184
|
+
width: 16px;
|
|
185
|
+
height: 16px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.icon.none-light.large svg,
|
|
189
|
+
.icon.none-contrast.large svg,
|
|
190
|
+
.icon.ghost-light.large svg,
|
|
191
|
+
.icon.ghost-contrast.large svg {
|
|
192
|
+
width: 24px;
|
|
193
|
+
height: 24px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.icon.none-light svg path,
|
|
197
|
+
.icon.ghost-light svg path {
|
|
198
|
+
stroke: none;
|
|
199
|
+
fill: var(--color-content-action-primary);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.icon.icon-wishlist.none-light svg path,
|
|
203
|
+
.icon.icon-wishlist.ghost-light svg path {
|
|
204
|
+
stroke: var(--color-content-action-primary);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.icon.none-light.icon-wishlist svg path,
|
|
208
|
+
.icon.ghost-light.icon-wishlist svg path {
|
|
209
|
+
fill: none;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
:host([status="filled"]) .icon.none-light.icon-wishlist svg path,
|
|
213
|
+
:host([status="filled"]) .icon.ghost-light.icon-wishlist svg path {
|
|
214
|
+
fill: var(--color-content-action-primary);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* Rounded coloured background (replaces .m-icon-colored-rounded) */
|
|
218
|
+
.icon.background-light {
|
|
219
|
+
background-color: var(--color-alpha-light-strong);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.icon.background-contrast {
|
|
223
|
+
background-color: var(--color-container-action-tertiary-default);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* Status / feedback colours */
|
|
227
|
+
.icon.icon-success,
|
|
228
|
+
.icon.icon-error,
|
|
229
|
+
.icon.icon-info {
|
|
230
|
+
background-color: transparent;
|
|
231
|
+
width: auto;
|
|
232
|
+
height: auto;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.icon.icon-success svg path,
|
|
236
|
+
.icon.icon-error svg path,
|
|
237
|
+
.icon.icon-info svg path {
|
|
238
|
+
stroke: var(--color-content-action-primary);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.icon.icon-success svg path {
|
|
242
|
+
fill: var(--color-content-success);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.icon.icon-error svg path {
|
|
246
|
+
fill: var(--color-content-error);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.icon.icon-info svg path {
|
|
250
|
+
fill: var(--color-content-info);
|
|
251
|
+
}
|
|
252
|
+
`;
|
|
253
|
+
e([
|
|
254
|
+
n({ type: String, reflect: !0 })
|
|
255
|
+
], i.prototype, "bgstyle", 2);
|
|
256
|
+
e([
|
|
257
|
+
n({ type: String, reflect: !0 })
|
|
258
|
+
], i.prototype, "size", 2);
|
|
259
|
+
e([
|
|
260
|
+
n({ type: String, reflect: !0 })
|
|
261
|
+
], i.prototype, "status", 2);
|
|
262
|
+
e([
|
|
263
|
+
n({ type: String })
|
|
264
|
+
], i.prototype, "strokewidth", 2);
|
|
265
|
+
e([
|
|
266
|
+
n({ type: String })
|
|
267
|
+
], i.prototype, "icon", 2);
|
|
268
|
+
e([
|
|
269
|
+
n({ type: String })
|
|
270
|
+
], i.prototype, "label", 2);
|
|
271
|
+
i = e([
|
|
272
|
+
v("o-icon")
|
|
273
|
+
], i);
|
|
274
|
+
export {
|
|
275
|
+
i as OccitaneIcon
|
|
276
|
+
};
|
package/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "./components/side-panel.mjs";
|
|
2
2
|
import "./components/wishlist-button.mjs";
|
|
3
3
|
import "./components/icon-button.mjs";
|
|
4
|
+
import "./icon-CAvOSN1L.mjs";
|
|
4
5
|
import "./components/link.mjs";
|
|
5
6
|
import "./components/rating.mjs";
|
|
6
7
|
import "./components/thumbnail-navigation.mjs";
|
package/loader.mjs
CHANGED
|
@@ -15,6 +15,7 @@ const i = {
|
|
|
15
15
|
"o-dropdown-variant": () => import("./components/dropdown-variant.mjs"),
|
|
16
16
|
"o-feedback-message": () => import("./components/feedback-message.mjs"),
|
|
17
17
|
"o-filter-chip": () => import("./components/filter-chip.mjs"),
|
|
18
|
+
"o-icon": () => import("./icon-CAvOSN1L.mjs"),
|
|
18
19
|
"o-input": () => import("./components/input.mjs"),
|
|
19
20
|
"o-medium-tile": () => import("./components/mediumtile.mjs"),
|
|
20
21
|
"mini-tile": () => import("./components/minitile.mjs"),
|
package/package.json
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { E as r, T as s } from "./performance-mixin-D7YmSeqN.mjs";
|
|
2
|
+
import { i as n, t as o, e as c } from "./directive-oAbCiebi.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* @license
|
|
5
|
+
* Copyright 2017 Google LLC
|
|
6
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
class e extends n {
|
|
9
|
+
constructor(t) {
|
|
10
|
+
if (super(t), this.it = r, t.type !== o.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
11
|
+
}
|
|
12
|
+
render(t) {
|
|
13
|
+
if (t === r || t == null) return this._t = void 0, this.it = t;
|
|
14
|
+
if (t === s) return t;
|
|
15
|
+
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
16
|
+
if (t === this.it) return this._t;
|
|
17
|
+
this.it = t;
|
|
18
|
+
const i = [t];
|
|
19
|
+
return i.raw = i, this._t = { _$litType$: this.constructor.resultType, strings: i, values: [] };
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
e.directiveName = "unsafeHTML", e.resultType = 1;
|
|
23
|
+
const l = c(e);
|
|
24
|
+
export {
|
|
25
|
+
e,
|
|
26
|
+
l as o
|
|
27
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { e as t } from "./directive-oAbCiebi.mjs";
|
|
2
|
+
import { e as o } from "./unsafe-html-DAJ3o0dq.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* @license
|
|
5
|
+
* Copyright 2017 Google LLC
|
|
6
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
class e extends o {
|
|
9
|
+
}
|
|
10
|
+
e.directiveName = "unsafeSVG", e.resultType = 2;
|
|
11
|
+
const a = t(e);
|
|
12
|
+
export {
|
|
13
|
+
a as o
|
|
14
|
+
};
|
package/unsafe-svg-C3uTocNg.mjs
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { i as o, t as c, e as u } from "./directive-oAbCiebi.mjs";
|
|
2
|
-
import { E as r, T as a } from "./performance-mixin-D7YmSeqN.mjs";
|
|
3
|
-
/**
|
|
4
|
-
* @license
|
|
5
|
-
* Copyright 2017 Google LLC
|
|
6
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
-
*/
|
|
8
|
-
class i extends o {
|
|
9
|
-
constructor(t) {
|
|
10
|
-
if (super(t), this.it = r, t.type !== c.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
11
|
-
}
|
|
12
|
-
render(t) {
|
|
13
|
-
if (t === r || t == null) return this._t = void 0, this.it = t;
|
|
14
|
-
if (t === a) return t;
|
|
15
|
-
if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
16
|
-
if (t === this.it) return this._t;
|
|
17
|
-
this.it = t;
|
|
18
|
-
const e = [t];
|
|
19
|
-
return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
i.directiveName = "unsafeHTML", i.resultType = 1;
|
|
23
|
-
/**
|
|
24
|
-
* @license
|
|
25
|
-
* Copyright 2017 Google LLC
|
|
26
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/
|
|
28
|
-
class s extends i {
|
|
29
|
-
}
|
|
30
|
-
s.directiveName = "unsafeSVG", s.resultType = 2;
|
|
31
|
-
const d = u(s);
|
|
32
|
-
export {
|
|
33
|
-
d as o
|
|
34
|
-
};
|