@florid-kit/components 2.6.18 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/icons/icons-occ.d.ts +315 -0
- package/assets/icons/icons.d.ts +12 -84
- package/assets/icons/svg-utils.d.ts +13 -0
- package/behaviors/performance-mixin.d.ts +0 -23
- package/behaviors/performance-reporter.d.ts +1 -0
- package/components/accordion-group.mjs +61 -0
- package/components/accordion.mjs +185 -0
- package/components/arch-image.mjs +135 -0
- package/components/badge.mjs +75 -0
- package/components/breadcrumb.mjs +83 -0
- package/components/breadcrumbs.mjs +35 -0
- package/components/button.d.ts +3 -0
- package/components/button.mjs +12 -0
- package/components/checkbox.mjs +188 -0
- package/components/chip.d.ts +4 -0
- package/components/chip.mjs +245 -0
- package/components/chipset.mjs +44 -0
- package/components/dots.mjs +60 -0
- package/components/dropdown-variant.d.ts +1 -0
- package/components/dropdown-variant.mjs +446 -0
- package/components/dropdown.d.ts +1 -0
- package/components/dropdown.mjs +303 -0
- package/components/feedback-message.mjs +136 -0
- package/components/filter-chip.mjs +218 -0
- package/components/footer-simplify.mjs +178 -0
- package/components/header-simplify.mjs +234 -0
- package/components/icon-button.d.ts +5 -0
- package/components/icon-button.mjs +340 -0
- package/components/input.mjs +298 -0
- package/components/link.mjs +172 -0
- package/components/mediumtile.mjs +307 -0
- package/components/minitile.mjs +234 -0
- package/components/option-tile-group.mjs +105 -0
- package/components/option-tile.mjs +413 -0
- package/components/popin.mjs +412 -0
- package/components/radio.mjs +165 -0
- package/components/rating.mjs +81 -0
- package/components/reassurance.mjs +163 -0
- package/components/search-input-dropdown.mjs +314 -0
- package/components/search-input.mjs +107 -0
- package/components/side-panel.mjs +1206 -0
- package/components/tab.mjs +140 -0
- package/components/tablist.mjs +44 -0
- package/components/tag.mjs +86 -0
- package/components/textarea.mjs +269 -0
- package/components/thumbnail-navigation.mjs +232 -0
- package/components/toast.mjs +191 -0
- package/components/tooltip.mjs +125 -0
- package/components/wishlist-button.mjs +132 -0
- package/css-C8WrrxT-.mjs +41 -0
- package/directive-helpers-BHuwIghp.mjs +11 -0
- package/directive-oAbCiebi.mjs +27 -0
- package/element-internals-Dw7LndlH.mjs +19 -0
- package/icons-BZ0oOFaE.mjs +104 -0
- package/icons-occ.mjs +834 -0
- package/if-defined-j0wE2gL4.mjs +10 -0
- package/index.mjs +41 -9719
- package/live-C_TUoYRm.mjs +30 -0
- package/loader.d.ts +3 -0
- package/loader.mjs +78 -0
- package/logo-CEgaTL93.mjs +4 -0
- package/package.json +19 -1
- package/performance-mixin-D7YmSeqN.mjs +628 -0
- package/performance-reporter-B7ZOqnDk.mjs +89 -0
- package/property-S_Y9cb04.mjs +36 -0
- package/query-NJDNu0-P.mjs +25 -0
- package/state-DjMxXomO.mjs +12 -0
- package/svg-utils-wXxOZLnu.mjs +47 -0
- package/unsafe-svg-C3uTocNg.mjs +34 -0
- package/index.js +0 -5755
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { i as d, m as p, a as b, x as c, t as u } from "../performance-mixin-D7YmSeqN.mjs";
|
|
2
|
+
import { n as o } from "../property-S_Y9cb04.mjs";
|
|
3
|
+
import { e as g } from "../query-NJDNu0-P.mjs";
|
|
4
|
+
import "./icon-button.mjs";
|
|
5
|
+
var f = Object.defineProperty, y = Object.getOwnPropertyDescriptor, t = (i, s, a, n) => {
|
|
6
|
+
for (var r = n > 1 ? void 0 : n ? y(s, a) : s, l = i.length - 1, h; l >= 0; l--)
|
|
7
|
+
(h = i[l]) && (r = (n ? h(s, a, r) : h(r)) || r);
|
|
8
|
+
return n && r && f(s, a, r), r;
|
|
9
|
+
};
|
|
10
|
+
let m = 0, e = class extends p(b) {
|
|
11
|
+
constructor() {
|
|
12
|
+
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-${++m}`);
|
|
13
|
+
}
|
|
14
|
+
toggle() {
|
|
15
|
+
this.disabled || (this.indeterminate ? (this.indeterminate = !1, this.checked = !0) : this.checked = !this.checked, this.syncInput(), this.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 })));
|
|
16
|
+
}
|
|
17
|
+
syncInput() {
|
|
18
|
+
this.inputEl && (this.inputEl.checked = this.checked, this.inputEl.indeterminate = this.indeterminate);
|
|
19
|
+
}
|
|
20
|
+
updated(i) {
|
|
21
|
+
this.syncInput();
|
|
22
|
+
}
|
|
23
|
+
handleKeyDown(i) {
|
|
24
|
+
this.disabled || (i.key === " " || i.key === "Enter") && (i.preventDefault(), this.toggle());
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
const i = c`<o-icon-button size="${this.size === "L" ? "small" : "xsmall"}" icon="occ-check-outlined" bgstyle="none-light"></o-icon-button>`, s = c`<o-icon-button size="${this.size === "L" ? "small" : "xsmall"}" icon="occ-minus" bgstyle="none-light"></o-icon-button>`;
|
|
28
|
+
return c`
|
|
29
|
+
<input
|
|
30
|
+
type="checkbox"
|
|
31
|
+
id=${this.inputId}
|
|
32
|
+
?checked=${this.checked}
|
|
33
|
+
?disabled=${this.disabled}
|
|
34
|
+
name=${this.name}
|
|
35
|
+
value=${this.value}
|
|
36
|
+
@change=${(a) => {
|
|
37
|
+
const n = a.target;
|
|
38
|
+
this.checked = n.checked, this.indeterminate = n.indeterminate, this.dispatchEvent(new Event("change", { bubbles: !0, composed: !0 }));
|
|
39
|
+
}}
|
|
40
|
+
/>
|
|
41
|
+
|
|
42
|
+
<div class="box" role="checkbox" tabindex=${this.disabled ? -1 : 0} aria-checked=${this.indeterminate ? "mixed" : String(this.checked)} aria-disabled=${String(this.disabled)} @click=${this.toggle} @keydown=${this.handleKeyDown}>
|
|
43
|
+
<span class="icon"> ${this.indeterminate ? s : this.checked ? i : null} </span>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
${this.showLabel ? c`<label class="label" for=${this.inputId}>${this.label}</label>` : ""}
|
|
47
|
+
`;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
e.styles = d`
|
|
51
|
+
:host {
|
|
52
|
+
display: inline-flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
gap: var(--spacing-s);
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
user-select: none;
|
|
57
|
+
outline: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host([disabled]) {
|
|
61
|
+
opacity: 0.5;
|
|
62
|
+
cursor: not-allowed;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.box {
|
|
66
|
+
position: relative;
|
|
67
|
+
display: inline-flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
border: 1px solid var(--color-border-secondary);
|
|
71
|
+
background: var(--color-container-bg-default);
|
|
72
|
+
border-radius: var(--radius-m);
|
|
73
|
+
box-sizing: border-box;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:host([size="S"]) .box {
|
|
77
|
+
width: 16px;
|
|
78
|
+
height: 16px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:host([size="L"]) .box {
|
|
82
|
+
width: 24px;
|
|
83
|
+
height: 24px;
|
|
84
|
+
border: 2px solid var(--color-border-secondary);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
:host([size="L"]) .label {
|
|
88
|
+
line-height: var(--line-height-200);
|
|
89
|
+
font-size: var(--font-size-200);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:host([checked]) .box,
|
|
93
|
+
:host([indeterminate]) .box {
|
|
94
|
+
background: var(--color-container-action-primary-default);
|
|
95
|
+
border-color: var(--color-border-primary);
|
|
96
|
+
|
|
97
|
+
svg {
|
|
98
|
+
width: 100%;
|
|
99
|
+
height: 100%;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:host(:focus-visible) .box {
|
|
104
|
+
box-shadow: 0 0 0 3px var(--color-border-primary);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.box:hover:not([aria-disabled="true"]) {
|
|
108
|
+
box-shadow: 0 0 0 4px #e8dfe3;
|
|
109
|
+
}
|
|
110
|
+
.box:active:not([aria-disabled="true"]) {
|
|
111
|
+
box-shadow: 0 0 0 4px #d6c6cc;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.label {
|
|
115
|
+
color: var(--color-content-action-secondary);
|
|
116
|
+
font-family: var(--font-family-loccitane-sans);
|
|
117
|
+
font-size: var(--font-size-100);
|
|
118
|
+
font-weight: var(--font-weight-400);
|
|
119
|
+
line-height: var(--line-height-160);
|
|
120
|
+
letter-spacing: var(--letter-spacing-400);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.icon {
|
|
124
|
+
position: absolute;
|
|
125
|
+
inset: 0;
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
pointer-events: none;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
input {
|
|
133
|
+
position: absolute;
|
|
134
|
+
opacity: 0;
|
|
135
|
+
pointer-events: none;
|
|
136
|
+
width: 0;
|
|
137
|
+
height: 0;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.indeterminate {
|
|
141
|
+
width: 10px;
|
|
142
|
+
height: 10px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.indeterminate path {
|
|
146
|
+
fill: var(--color-border-light);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
svg path {
|
|
150
|
+
stroke: var(--color-border-light);
|
|
151
|
+
}
|
|
152
|
+
`;
|
|
153
|
+
t([
|
|
154
|
+
o({ type: Boolean, reflect: !0 })
|
|
155
|
+
], e.prototype, "checked", 2);
|
|
156
|
+
t([
|
|
157
|
+
o({ type: Boolean, reflect: !0 })
|
|
158
|
+
], e.prototype, "indeterminate", 2);
|
|
159
|
+
t([
|
|
160
|
+
o({ type: Boolean, reflect: !0 })
|
|
161
|
+
], e.prototype, "disabled", 2);
|
|
162
|
+
t([
|
|
163
|
+
o({ type: String, reflect: !0 })
|
|
164
|
+
], e.prototype, "size", 2);
|
|
165
|
+
t([
|
|
166
|
+
o({ type: Boolean })
|
|
167
|
+
], e.prototype, "showLabel", 2);
|
|
168
|
+
t([
|
|
169
|
+
o({ type: String })
|
|
170
|
+
], e.prototype, "label", 2);
|
|
171
|
+
t([
|
|
172
|
+
o({ type: String })
|
|
173
|
+
], e.prototype, "name", 2);
|
|
174
|
+
t([
|
|
175
|
+
o({ type: String })
|
|
176
|
+
], e.prototype, "value", 2);
|
|
177
|
+
t([
|
|
178
|
+
o({ type: String, reflect: !0 })
|
|
179
|
+
], e.prototype, "inputId", 2);
|
|
180
|
+
t([
|
|
181
|
+
g("input")
|
|
182
|
+
], e.prototype, "inputEl", 2);
|
|
183
|
+
e = t([
|
|
184
|
+
u("o-checkbox")
|
|
185
|
+
], e);
|
|
186
|
+
export {
|
|
187
|
+
e as OccitaneCheckbox
|
|
188
|
+
};
|
package/components/chip.d.ts
CHANGED
|
@@ -11,6 +11,10 @@ export declare class OccitaneChip extends buttonBaseClass {
|
|
|
11
11
|
selected: boolean;
|
|
12
12
|
fullwidth: boolean;
|
|
13
13
|
inactive: boolean;
|
|
14
|
+
withprice: boolean;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
private strikethroughImgName;
|
|
17
|
+
private strikeThroughImg;
|
|
14
18
|
private handleClick;
|
|
15
19
|
protected render(): import('lit').TemplateResult<1>;
|
|
16
20
|
}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { m as p, a as b, i as u, E as c, x as l, t as v } from "../performance-mixin-D7YmSeqN.mjs";
|
|
2
|
+
import { n as o } from "../property-S_Y9cb04.mjs";
|
|
3
|
+
import { f as g } from "../css-C8WrrxT-.mjs";
|
|
4
|
+
import { m as f } from "../element-internals-Dw7LndlH.mjs";
|
|
5
|
+
import { i as m } from "../icons-BZ0oOFaE.mjs";
|
|
6
|
+
import { o as y } from "../unsafe-svg-C3uTocNg.mjs";
|
|
7
|
+
var x = Object.defineProperty, w = Object.getOwnPropertyDescriptor, e = (r, i, n, a) => {
|
|
8
|
+
for (var s = a > 1 ? void 0 : a ? w(i, n) : i, h = r.length - 1, d; h >= 0; h--)
|
|
9
|
+
(d = r[h]) && (s = (a ? d(i, n, s) : d(s)) || s);
|
|
10
|
+
return a && s && x(i, n, s), s;
|
|
11
|
+
};
|
|
12
|
+
const k = p(f(b));
|
|
13
|
+
let t = class extends k {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.link = "", this.name = "", this.value = "", this.text = "", this.size = "standard", this.selected = !1, this.fullwidth = !1, this.inactive = !1, this.withprice = !1, this.disabled = !1, this.strikethroughImgName = "strikeDiagonal";
|
|
16
|
+
}
|
|
17
|
+
strikeThroughImg() {
|
|
18
|
+
const r = m[this.strikethroughImgName].replace(
|
|
19
|
+
"<svg",
|
|
20
|
+
'<svg aria-hidden="true" focusable="false" part="strikethrough"'
|
|
21
|
+
).replace(/stroke=[#"'a-z1-9]*/gi, "");
|
|
22
|
+
return y(r);
|
|
23
|
+
}
|
|
24
|
+
handleClick(r) {
|
|
25
|
+
this.selected || (this.selected = !0);
|
|
26
|
+
const i = { selected: this.selected }, n = new CustomEvent("selected", { detail: i, bubbles: !0, composed: !0, cancelable: !0 });
|
|
27
|
+
this.dispatchEvent(n), n.defaultPrevented && r.preventDefault(), this.selected = i.selected;
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
const r = this.text, i = this.link, n = this.withprice, a = this.disabled;
|
|
31
|
+
return i ? l`
|
|
32
|
+
<a href="${this.link}" class="o-chip" tabindex="${this.inactive ? "-1" : c}"
|
|
33
|
+
aria-current="${this.selected ? "true" : c}">
|
|
34
|
+
${r ? this.text : l`<slot></slot>`}
|
|
35
|
+
${n ? l`<slot name="price"></slot><slot name="basicprice"></slot>` : c}
|
|
36
|
+
</a>
|
|
37
|
+
${a ? this.strikeThroughImg() : c}
|
|
38
|
+
` : l`
|
|
39
|
+
<button type="button" class="button" @click=${this.handleClick}
|
|
40
|
+
aria-label=${this.ariaLabel || c} aria-pressed=${this.selected}>
|
|
41
|
+
${r ? this.text : l`<slot></slot>`}
|
|
42
|
+
${n ? l`<slot name="price"></slot><slot name="basicprice"></slot>` : c}
|
|
43
|
+
</button>
|
|
44
|
+
${a ? this.strikeThroughImg() : c}
|
|
45
|
+
`;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
t.styles = u`
|
|
49
|
+
:host {
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
position: relative;
|
|
53
|
+
--button-bg: var(--color-container-action-secondary-default);
|
|
54
|
+
--button-bg-hover: var(--color-container-action-secondary-hover);
|
|
55
|
+
--button-bg-pressed: var(--color-container-action-secondary-pressed);
|
|
56
|
+
--button-text: var(--color-content-action-secondary);
|
|
57
|
+
--button-text-hover: var(--color-content-action-secondary);
|
|
58
|
+
--button-border: var(--color-border-secondary);
|
|
59
|
+
--button-border-width: var(--border-m);
|
|
60
|
+
--button-padding: calc(var(--spacing-xs) - var(--button-border-width)) calc(var(--spacing-m) - var(--button-border-width));
|
|
61
|
+
--button-endicon-svg-width: 0px; /* No endicon SVG for secondary button */
|
|
62
|
+
--button-strikethrough-stroke: var(--color-border-secondary);
|
|
63
|
+
--price-margin: var(--spacing-s);
|
|
64
|
+
--basicprice-font-size: var(--font-size-100);
|
|
65
|
+
--basicprice-spacing: var(--spacing-2-xs);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host(.a--tabfocus) {
|
|
69
|
+
outline: none !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host([fullwidth]) {
|
|
73
|
+
width: 100%;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:host([selected]) {
|
|
77
|
+
--button-bg: var(--color-container-filter-default);
|
|
78
|
+
--button-bg-hover: var(--color-container-filter-hover);
|
|
79
|
+
--button-bg-pressed: var(--color-container-filter-pressed);
|
|
80
|
+
--button-text: var(--color-content-action-primary);
|
|
81
|
+
--button-text-hover: var(--color-content-action-primary);
|
|
82
|
+
--button-border: transparent;
|
|
83
|
+
--button-border-width: var(--border-m);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:host([disabled]) {
|
|
87
|
+
--button-bg: var(--color-container-disabled);
|
|
88
|
+
}
|
|
89
|
+
:host([disabled][selected]) {
|
|
90
|
+
--button-text: var(--color-content-action-primary);
|
|
91
|
+
--button-bg: var(--color-container-filter-pressed);
|
|
92
|
+
--button-strikethrough-stroke: var(--color-border-tertiary);
|
|
93
|
+
opacity: 0.6;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host([disabled]) a::after {
|
|
97
|
+
content: "";
|
|
98
|
+
position: absolute;
|
|
99
|
+
height: 100%;
|
|
100
|
+
width: 100%;
|
|
101
|
+
display: block;
|
|
102
|
+
z-index: 2;
|
|
103
|
+
top: 0;
|
|
104
|
+
bottom: 0;
|
|
105
|
+
left: 0;
|
|
106
|
+
right: 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
:host([withprice]) a {
|
|
110
|
+
display: inline-flex;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
:host([withprice][selected]) a:hover,
|
|
114
|
+
:host([withprice][selected]) .button:hover,
|
|
115
|
+
:host([withprice][disabled]) a:hover,
|
|
116
|
+
:host([withprice][disabled]) .button:hover {
|
|
117
|
+
background-color: var(--button-bg);
|
|
118
|
+
color: var(--button-text);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:host([size="large"]) {
|
|
122
|
+
--button-padding: calc(var(--spacing-m) - var(--button-border-width)) calc(var(--spacing-xl) - var(--button-border-width));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.o-chip,
|
|
126
|
+
.button {
|
|
127
|
+
display: inline-flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
justify-content: center;
|
|
130
|
+
width: 100%;
|
|
131
|
+
height: 100%;
|
|
132
|
+
background-color: var(--button-bg);
|
|
133
|
+
color: var(--button-text);
|
|
134
|
+
border: var(--button-border-width, var(--border-m)) solid var(--button-border);
|
|
135
|
+
border-radius: var(--radius-m);
|
|
136
|
+
font-family: var(--font-family-loccitane-sans);
|
|
137
|
+
font-size: var(--font-size-150);
|
|
138
|
+
font-weight: var(--font-weight-400);
|
|
139
|
+
line-height: var(--line-height-200);
|
|
140
|
+
min-width: 64px;
|
|
141
|
+
padding: var(--button-padding);
|
|
142
|
+
text-decoration: none;
|
|
143
|
+
cursor: inherit;
|
|
144
|
+
box-sizing: border-box;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.o-chip span,
|
|
148
|
+
.button span {
|
|
149
|
+
font-family: var(--font-family-loccitane-sans);
|
|
150
|
+
font-size: var(--font-size-150);
|
|
151
|
+
font-weight: var(--font-weight-400);
|
|
152
|
+
line-height: var(--line-height-200);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.o-chip:hover,
|
|
156
|
+
.button:hover {
|
|
157
|
+
background-color: var(--button-bg-hover);
|
|
158
|
+
color: var(--button-text-hover);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.o-chip:active,
|
|
162
|
+
.button:active {
|
|
163
|
+
background-color: var(--button-bg-pressed);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.o-chip:focus-visible,
|
|
167
|
+
.button:focus-visible {
|
|
168
|
+
${g};
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
span.text + span.text::before {
|
|
172
|
+
content: "•";
|
|
173
|
+
margin-right: 8px;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.button > * {
|
|
177
|
+
display: inline-flex;
|
|
178
|
+
align-items: center;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
::slotted([slot=price])::before {
|
|
182
|
+
content: "•";
|
|
183
|
+
margin: 0 var(--price-margin);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
::slotted([slot=basicprice]) {
|
|
187
|
+
font-size: var(--basicprice-font-size);
|
|
188
|
+
margin-left: var(--basicprice-spacing);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
[part="strikethrough"] {
|
|
192
|
+
position: absolute;
|
|
193
|
+
width: 100%;
|
|
194
|
+
height: 100%;
|
|
195
|
+
top: 0;
|
|
196
|
+
bottom: 0;
|
|
197
|
+
left: 0;
|
|
198
|
+
right: 0;
|
|
199
|
+
padding-left: 2px;
|
|
200
|
+
padding-right: 2px;
|
|
201
|
+
box-sizing: border-box;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
[part="strikethrough"] line {
|
|
205
|
+
stroke: var(--button-strikethrough-stroke);
|
|
206
|
+
stroke-width: 4px;
|
|
207
|
+
stroke-linecap: round;
|
|
208
|
+
}
|
|
209
|
+
`;
|
|
210
|
+
e([
|
|
211
|
+
o({ type: String, reflect: !0 })
|
|
212
|
+
], t.prototype, "link", 2);
|
|
213
|
+
e([
|
|
214
|
+
o({ reflect: !0 })
|
|
215
|
+
], t.prototype, "name", 2);
|
|
216
|
+
e([
|
|
217
|
+
o({ reflect: !0 })
|
|
218
|
+
], t.prototype, "value", 2);
|
|
219
|
+
e([
|
|
220
|
+
o({ type: String })
|
|
221
|
+
], t.prototype, "text", 2);
|
|
222
|
+
e([
|
|
223
|
+
o({ type: String, reflect: !0 })
|
|
224
|
+
], t.prototype, "size", 2);
|
|
225
|
+
e([
|
|
226
|
+
o({ type: Boolean, reflect: !0 })
|
|
227
|
+
], t.prototype, "selected", 2);
|
|
228
|
+
e([
|
|
229
|
+
o({ type: Boolean, reflect: !0 })
|
|
230
|
+
], t.prototype, "fullwidth", 2);
|
|
231
|
+
e([
|
|
232
|
+
o({ type: Boolean, reflect: !0 })
|
|
233
|
+
], t.prototype, "inactive", 2);
|
|
234
|
+
e([
|
|
235
|
+
o({ type: Boolean, reflect: !0 })
|
|
236
|
+
], t.prototype, "withprice", 2);
|
|
237
|
+
e([
|
|
238
|
+
o({ type: Boolean, reflect: !0 })
|
|
239
|
+
], t.prototype, "disabled", 2);
|
|
240
|
+
t = e([
|
|
241
|
+
v("o-chip")
|
|
242
|
+
], t);
|
|
243
|
+
export {
|
|
244
|
+
t as OccitaneChip
|
|
245
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { i as p, m as c, a as u, x as m, t as v } from "../performance-mixin-D7YmSeqN.mjs";
|
|
2
|
+
import { n as f } from "../property-S_Y9cb04.mjs";
|
|
3
|
+
import { OccitaneChip as h } from "./chip.mjs";
|
|
4
|
+
var x = Object.defineProperty, O = Object.getOwnPropertyDescriptor, l = (o, e, t, s) => {
|
|
5
|
+
for (var r = s > 1 ? void 0 : s ? O(e, t) : e, n = o.length - 1, i; n >= 0; n--)
|
|
6
|
+
(i = o[n]) && (r = (s ? i(e, t, r) : i(r)) || r);
|
|
7
|
+
return s && r && x(e, t, r), r;
|
|
8
|
+
};
|
|
9
|
+
let a = class extends c(u) {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(), this.name = "", this.value = "", this.addEventListener("selected", this.onChipSelected);
|
|
12
|
+
}
|
|
13
|
+
onChipSelected(o) {
|
|
14
|
+
const e = o.target instanceof h ? o.target : null;
|
|
15
|
+
e != null && e.link || (this.name = (e == null ? void 0 : e.name) || "", this.value = (e == null ? void 0 : e.value) || "", this.querySelectorAll("o-chip").forEach((t) => {
|
|
16
|
+
t !== e && (t.selected = !1);
|
|
17
|
+
}));
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
return m`
|
|
21
|
+
<slot></slot>
|
|
22
|
+
`;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
a.styles = p`
|
|
26
|
+
:host {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: row;
|
|
29
|
+
flex-wrap: wrap;
|
|
30
|
+
gap: var(--spacing-s);
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
l([
|
|
34
|
+
f({ reflect: !0 })
|
|
35
|
+
], a.prototype, "name", 2);
|
|
36
|
+
l([
|
|
37
|
+
f({ reflect: !0 })
|
|
38
|
+
], a.prototype, "value", 2);
|
|
39
|
+
a = l([
|
|
40
|
+
v("o-chipset")
|
|
41
|
+
], a);
|
|
42
|
+
export {
|
|
43
|
+
a as OccitaneChipset
|
|
44
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { i as s, m as d, a as l, x as p, t as h } from "../performance-mixin-D7YmSeqN.mjs";
|
|
2
|
+
var u = Object.getOwnPropertyDescriptor, v = (t, a, i, c) => {
|
|
3
|
+
for (var r = c > 1 ? void 0 : c ? u(a, i) : a, o = t.length - 1, n; o >= 0; o--)
|
|
4
|
+
(n = t[o]) && (r = n(r) || r);
|
|
5
|
+
return r;
|
|
6
|
+
};
|
|
7
|
+
let e = class extends d(l) {
|
|
8
|
+
render() {
|
|
9
|
+
return p` <span class="dots"></span> `;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
e.styles = s`
|
|
13
|
+
:host {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
height: 20px;
|
|
18
|
+
width: 20px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.dots {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
width: 6px;
|
|
24
|
+
height: 6px;
|
|
25
|
+
border-radius: 50%;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
border: 1px solid var(--color-border-primary);
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
background-color: var(--color-container-action-secondary-default);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:host(:hover) .dots {
|
|
33
|
+
background-color: var(--color-container-action-secondary-hover);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:host(:active) .dots {
|
|
37
|
+
background-color: var(--color-container-action-secondary-pressed);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:host([aria-current="true"]) .dots {
|
|
41
|
+
background-color: var(--color-container-action-primary-default);
|
|
42
|
+
border: 0.5px solid var(--color-border-light);
|
|
43
|
+
width: 8px;
|
|
44
|
+
height: 8px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host([aria-current="true"]:hover) .dots {
|
|
48
|
+
background-color: var(--color-container-action-primary-hover);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:host([aria-current="true"]:active) .dots {
|
|
52
|
+
background-color: var(--color-container-action-primary-pressed);
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
55
|
+
e = v([
|
|
56
|
+
h("o-dots")
|
|
57
|
+
], e);
|
|
58
|
+
export {
|
|
59
|
+
e as OccitaneDots
|
|
60
|
+
};
|
|
@@ -28,6 +28,7 @@ export declare class OccitaneDropdownVariant extends OccitaneDropdownVariant_bas
|
|
|
28
28
|
private _scheduleFlush;
|
|
29
29
|
private _flushPending;
|
|
30
30
|
private _emitTrackingEvent;
|
|
31
|
+
private _unsubOcc?;
|
|
31
32
|
connectedCallback(): void;
|
|
32
33
|
disconnectedCallback(): void;
|
|
33
34
|
_handleOutsideClick: (e: MouseEvent) => void;
|