@florid-kit/components 2.6.17 → 3.0.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-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.mjs +158 -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 +215 -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/css.d.ts +1 -0
- package/directive-helpers-BHuwIghp.mjs +11 -0
- package/directive-oAbCiebi.mjs +27 -0
- package/element-internals-Dw7LndlH.mjs +19 -0
- package/icons-Pdn_6YtT.mjs +104 -0
- package/icons-occ.mjs +834 -0
- package/if-defined-j0wE2gL4.mjs +10 -0
- package/index.mjs +41 -9712
- 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-CRDBD8ES.mjs +47 -0
- package/unsafe-svg-C3uTocNg.mjs +34 -0
- package/index.js +0 -5748
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { m as h, a as b, i as p, E as u, x as c, t as v } from "../performance-mixin-D7YmSeqN.mjs";
|
|
2
|
+
import { n as r } from "../property-S_Y9cb04.mjs";
|
|
3
|
+
import { f } from "../css-C8WrrxT-.mjs";
|
|
4
|
+
import { m as g } from "../element-internals-Dw7LndlH.mjs";
|
|
5
|
+
var m = Object.defineProperty, y = Object.getOwnPropertyDescriptor, e = (n, o, a, s) => {
|
|
6
|
+
for (var i = s > 1 ? void 0 : s ? y(o, a) : o, l = n.length - 1, d; l >= 0; l--)
|
|
7
|
+
(d = n[l]) && (i = (s ? d(o, a, i) : d(i)) || i);
|
|
8
|
+
return s && i && m(o, a, i), i;
|
|
9
|
+
};
|
|
10
|
+
const x = h(g(b));
|
|
11
|
+
let t = class extends x {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments), this.link = "", this.name = "", this.value = "", this.text = "", this.size = "standard", this.selected = !1, this.fullwidth = !1, this.inactive = !1;
|
|
14
|
+
}
|
|
15
|
+
handleClick(n) {
|
|
16
|
+
this.selected || (this.selected = !0);
|
|
17
|
+
const o = { selected: this.selected }, a = new CustomEvent("selected", { detail: o, bubbles: !0, composed: !0, cancelable: !0 });
|
|
18
|
+
this.dispatchEvent(a), a.defaultPrevented && n.preventDefault(), this.selected = o.selected;
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
const n = this.text;
|
|
22
|
+
return this.link ? c`
|
|
23
|
+
<a href="${this.link}" class="o-chip" tabindex="${this.inactive ? "-1" : u}"
|
|
24
|
+
aria-current="${this.selected ? "true" : u}">
|
|
25
|
+
${n ? this.text : c`<slot></slot>`}
|
|
26
|
+
</a>
|
|
27
|
+
` : c`
|
|
28
|
+
<button type="button" class="button" @click=${this.handleClick}
|
|
29
|
+
aria-label=${this.ariaLabel || u} aria-pressed=${this.selected}>
|
|
30
|
+
${n ? this.text : c`<slot></slot>`}
|
|
31
|
+
</button>
|
|
32
|
+
`;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
t.styles = p`
|
|
36
|
+
:host {
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
display: inline-flex;
|
|
39
|
+
--button-bg: var(--color-container-action-secondary-default);
|
|
40
|
+
--button-bg-hover: var(--color-container-action-secondary-hover);
|
|
41
|
+
--button-bg-pressed: var(--color-container-action-secondary-pressed);
|
|
42
|
+
--button-text: var(--color-content-action-secondary);
|
|
43
|
+
--button-text-hover: var(--color-content-action-secondary);
|
|
44
|
+
--button-border: var(--color-border-secondary);
|
|
45
|
+
--button-border-width: var(--border-m);
|
|
46
|
+
--button-padding: var(--spacing-xs) var(--spacing-m);
|
|
47
|
+
--button-endicon-svg-width: 0px; /* No endicon SVG for secondary button */
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host(.a--tabfocus) {
|
|
51
|
+
outline: none !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host([fullwidth]) {
|
|
55
|
+
width: 100%;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:host([selected]) {
|
|
59
|
+
--button-bg: var(--color-container-filter-default);
|
|
60
|
+
--button-bg-hover: var(--color-container-filter-hover);
|
|
61
|
+
--button-bg-pressed: var(--color-container-filter-pressed);
|
|
62
|
+
--button-text: var(--color-content-action-primary);
|
|
63
|
+
--button-text-hover: var(--color-content-action-primary);
|
|
64
|
+
--button-border: transparent;
|
|
65
|
+
--button-border-width: var(--border-m);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host([size="large"]) {
|
|
69
|
+
--button-padding: var(--spacing-m) var(--spacing-xl);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.o-chip,
|
|
73
|
+
.button {
|
|
74
|
+
display: inline-flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
width: 100%;
|
|
78
|
+
gap: var(--spacing-2-xs);
|
|
79
|
+
height: 100%;
|
|
80
|
+
background-color: var(--button-bg);
|
|
81
|
+
color: var(--button-text);
|
|
82
|
+
border: var(--button-border-width, var(--border-m)) solid var(--button-border);
|
|
83
|
+
border-radius: var(--radius-m);
|
|
84
|
+
font-family: var(--font-family-loccitane-sans);
|
|
85
|
+
font-size: var(--font-size-150);
|
|
86
|
+
font-weight: var(--font-weight-400);
|
|
87
|
+
line-height: var(--line-height-200);
|
|
88
|
+
min-width: 64px;
|
|
89
|
+
padding: var(--button-padding);
|
|
90
|
+
text-decoration: none;
|
|
91
|
+
cursor: inherit;
|
|
92
|
+
box-sizing: border-box;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.o-chip span,
|
|
96
|
+
.button span {
|
|
97
|
+
font-family: var(--font-family-loccitane-sans);
|
|
98
|
+
font-size: var(--font-size-150);
|
|
99
|
+
font-weight: var(--font-weight-400);
|
|
100
|
+
line-height: var(--line-height-200);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.o-chip:hover,
|
|
104
|
+
.button:hover {
|
|
105
|
+
background-color: var(--button-bg-hover);
|
|
106
|
+
color: var(--button-text-hover);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.o-chip:active,
|
|
110
|
+
.button:active {
|
|
111
|
+
background-color: var(--button-bg-pressed);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.o-chip:focus-visible,
|
|
115
|
+
.button:focus-visible {
|
|
116
|
+
${f};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
span.text + span.text::before {
|
|
120
|
+
content: "•";
|
|
121
|
+
margin-right: 8px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.button > * {
|
|
125
|
+
display: inline-flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
}
|
|
128
|
+
`;
|
|
129
|
+
e([
|
|
130
|
+
r({ type: String, reflect: !0 })
|
|
131
|
+
], t.prototype, "link", 2);
|
|
132
|
+
e([
|
|
133
|
+
r({ reflect: !0 })
|
|
134
|
+
], t.prototype, "name", 2);
|
|
135
|
+
e([
|
|
136
|
+
r({ reflect: !0 })
|
|
137
|
+
], t.prototype, "value", 2);
|
|
138
|
+
e([
|
|
139
|
+
r({ type: String })
|
|
140
|
+
], t.prototype, "text", 2);
|
|
141
|
+
e([
|
|
142
|
+
r({ type: String, reflect: !0 })
|
|
143
|
+
], t.prototype, "size", 2);
|
|
144
|
+
e([
|
|
145
|
+
r({ type: Boolean, reflect: !0 })
|
|
146
|
+
], t.prototype, "selected", 2);
|
|
147
|
+
e([
|
|
148
|
+
r({ type: Boolean, reflect: !0 })
|
|
149
|
+
], t.prototype, "fullwidth", 2);
|
|
150
|
+
e([
|
|
151
|
+
r({ type: Boolean, reflect: !0 })
|
|
152
|
+
], t.prototype, "inactive", 2);
|
|
153
|
+
t = e([
|
|
154
|
+
v("o-chip")
|
|
155
|
+
], t);
|
|
156
|
+
export {
|
|
157
|
+
t as OccitaneChip
|
|
158
|
+
};
|
|
@@ -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;
|