@florid-kit/components 4.1.5 → 4.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion.mjs +13 -11
- package/components/filter-chip.mjs +27 -32
- package/index.mjs +1 -1
- package/loader.mjs +1 -1
- package/package.json +1 -1
package/components/accordion.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { i as p, m as c, a as h, x as f, t as m } from "../performance-mixin-D7YmSeqN.mjs";
|
|
2
2
|
import { n as d } from "../property-S_Y9cb04.mjs";
|
|
3
|
-
import { f as
|
|
3
|
+
import { f as b } from "../css-C8WrrxT-.mjs";
|
|
4
4
|
import "./icon-button.mjs";
|
|
5
|
-
var
|
|
6
|
-
for (var e =
|
|
7
|
-
(l = a[r]) && (e = (
|
|
8
|
-
return
|
|
5
|
+
var g = Object.defineProperty, u = Object.getOwnPropertyDescriptor, n = (a, i, s, o) => {
|
|
6
|
+
for (var e = o > 1 ? void 0 : o ? u(i, s) : i, r = a.length - 1, l; r >= 0; r--)
|
|
7
|
+
(l = a[r]) && (e = (o ? l(i, s, e) : l(e)) || e);
|
|
8
|
+
return o && e && g(i, s, e), e;
|
|
9
9
|
};
|
|
10
10
|
let y = 0, t = class extends c(h) {
|
|
11
11
|
constructor() {
|
|
@@ -79,7 +79,7 @@ t.styles = p`
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.header:focus-visible {
|
|
82
|
-
${
|
|
82
|
+
${b};
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
:host([disabled]) .header {
|
|
@@ -140,13 +140,15 @@ t.styles = p`
|
|
|
140
140
|
.panel {
|
|
141
141
|
display: grid;
|
|
142
142
|
grid-template-rows: 0fr;
|
|
143
|
-
transition: grid-template-rows 220ms ease, opacity 220ms ease;
|
|
143
|
+
transition: grid-template-rows 220ms ease, opacity 220ms ease, visibility 220ms ease;
|
|
144
144
|
opacity: 0;
|
|
145
|
+
visibility: hidden;
|
|
145
146
|
}
|
|
146
147
|
|
|
147
148
|
:host([expanded]) .panel {
|
|
148
149
|
grid-template-rows: 1fr;
|
|
149
150
|
opacity: 1;
|
|
151
|
+
visibility: visible;
|
|
150
152
|
}
|
|
151
153
|
|
|
152
154
|
.panel-inner {
|
|
@@ -169,16 +171,16 @@ t.styles = p`
|
|
|
169
171
|
padding-bottom: var(--spacing-3-xl);
|
|
170
172
|
}
|
|
171
173
|
`;
|
|
172
|
-
|
|
174
|
+
n([
|
|
173
175
|
d({ type: String })
|
|
174
176
|
], t.prototype, "label", 2);
|
|
175
|
-
|
|
177
|
+
n([
|
|
176
178
|
d({ type: Boolean, reflect: !0 })
|
|
177
179
|
], t.prototype, "expanded", 2);
|
|
178
|
-
|
|
180
|
+
n([
|
|
179
181
|
d({ type: Boolean, reflect: !0 })
|
|
180
182
|
], t.prototype, "disabled", 2);
|
|
181
|
-
t =
|
|
183
|
+
t = n([
|
|
182
184
|
m("o-accordion")
|
|
183
185
|
], t);
|
|
184
186
|
export {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { m as p, a as b, i as u, x as
|
|
1
|
+
import { m as p, a as b, i as u, x as r, E as l, t as f } from "../performance-mixin-D7YmSeqN.mjs";
|
|
2
2
|
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
6
|
import { o as y } from "../unsafe-svg-BipL_msF.mjs";
|
|
7
|
-
import "
|
|
8
|
-
var x = Object.defineProperty, k = Object.getOwnPropertyDescriptor,
|
|
9
|
-
for (var
|
|
10
|
-
(h = t[d]) && (
|
|
11
|
-
return c &&
|
|
7
|
+
import "../icon-CAvOSN1L.mjs";
|
|
8
|
+
var x = Object.defineProperty, k = Object.getOwnPropertyDescriptor, o = (t, s, a, c) => {
|
|
9
|
+
for (var n = c > 1 ? void 0 : c ? k(s, a) : s, d = t.length - 1, h; d >= 0; d--)
|
|
10
|
+
(h = t[d]) && (n = (c ? h(s, a, n) : h(n)) || n);
|
|
11
|
+
return c && n && x(s, a, n), n;
|
|
12
12
|
};
|
|
13
13
|
const $ = p(v(b));
|
|
14
14
|
let e = class extends $ {
|
|
@@ -19,11 +19,11 @@ let e = class extends $ {
|
|
|
19
19
|
if (t instanceof KeyboardEvent && t.key !== "Enter" && t.key !== " ")
|
|
20
20
|
return;
|
|
21
21
|
this.selected = !this.selected;
|
|
22
|
-
const
|
|
23
|
-
this.dispatchEvent(a), a.defaultPrevented && t.preventDefault(), this.selected =
|
|
22
|
+
const s = { selected: this.selected }, a = new CustomEvent("selected", { detail: s, bubbles: !0, composed: !0, cancelable: !0 });
|
|
23
|
+
this.dispatchEvent(a), a.defaultPrevented && t.preventDefault(), this.selected = s.selected;
|
|
24
24
|
}
|
|
25
25
|
crossIcon() {
|
|
26
|
-
return
|
|
26
|
+
return r`<o-icon size="small" icon="occ-close-outlined" bgstyle="none-light"></o-icon>`;
|
|
27
27
|
}
|
|
28
28
|
strikeThroughImg() {
|
|
29
29
|
const t = m[this.strikethroughImgName].replace(
|
|
@@ -34,21 +34,21 @@ let e = class extends $ {
|
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
36
|
const t = this.text;
|
|
37
|
-
return
|
|
37
|
+
return r`${this.type === "link" ? r`
|
|
38
38
|
<a role="button" tabindex="0" class="button" href=${this.href} ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
|
|
39
39
|
aria-label=${this.ariaLabel || l} aria-pressed=${this.selected}>
|
|
40
|
-
${t ?
|
|
41
|
-
${this.text ?
|
|
42
|
-
` :
|
|
40
|
+
${t ? r`
|
|
41
|
+
${this.text ? r`<span class="text">${this.text}</span>` : l}
|
|
42
|
+
` : r`
|
|
43
43
|
<span class="text"><slot></slot></span>`}
|
|
44
44
|
${this.selected ? this.crossIcon() : l}
|
|
45
45
|
</a>
|
|
46
|
-
` :
|
|
46
|
+
` : r`
|
|
47
47
|
<button type="button" class="button" ?disabled=${this.disabled} @click=${this.handleClick}
|
|
48
48
|
aria-label=${this.ariaLabel} aria-pressed=${this.selected}>
|
|
49
|
-
${t ?
|
|
50
|
-
${this.text ?
|
|
51
|
-
` :
|
|
49
|
+
${t ? r`
|
|
50
|
+
${this.text ? r`<span class="text">${this.text}</span>` : l}
|
|
51
|
+
` : r`
|
|
52
52
|
<span class="text"><slot></slot></span>`}
|
|
53
53
|
${this.selected ? this.crossIcon() : l}
|
|
54
54
|
</button>
|
|
@@ -182,40 +182,35 @@ e.styles = u`
|
|
|
182
182
|
stroke-width: 4px;
|
|
183
183
|
stroke-linecap: round;
|
|
184
184
|
}
|
|
185
|
-
|
|
186
|
-
o-icon-button::part(icon-button) {
|
|
187
|
-
padding-left: 0;
|
|
188
|
-
padding-right: 0;
|
|
189
|
-
}
|
|
190
185
|
`;
|
|
191
|
-
|
|
186
|
+
o([
|
|
192
187
|
i({ reflect: !0 })
|
|
193
188
|
], e.prototype, "name", 2);
|
|
194
|
-
|
|
189
|
+
o([
|
|
195
190
|
i({ reflect: !0 })
|
|
196
191
|
], e.prototype, "value", 2);
|
|
197
|
-
|
|
192
|
+
o([
|
|
198
193
|
i({ type: String, reflect: !0 })
|
|
199
194
|
], e.prototype, "type", 2);
|
|
200
|
-
|
|
195
|
+
o([
|
|
201
196
|
i({ type: String, reflect: !0 })
|
|
202
197
|
], e.prototype, "href", 2);
|
|
203
|
-
|
|
198
|
+
o([
|
|
204
199
|
i({ type: String, reflect: !0, attribute: "data-href" })
|
|
205
200
|
], e.prototype, "dataHref", 2);
|
|
206
|
-
|
|
201
|
+
o([
|
|
207
202
|
i({ type: String })
|
|
208
203
|
], e.prototype, "text", 2);
|
|
209
|
-
|
|
204
|
+
o([
|
|
210
205
|
i({ type: Boolean, reflect: !0 })
|
|
211
206
|
], e.prototype, "selected", 2);
|
|
212
|
-
|
|
207
|
+
o([
|
|
213
208
|
i({ type: Boolean, reflect: !0 })
|
|
214
209
|
], e.prototype, "disabled", 2);
|
|
215
|
-
|
|
210
|
+
o([
|
|
216
211
|
i({ type: Boolean, reflect: !0 })
|
|
217
212
|
], e.prototype, "fullwidth", 2);
|
|
218
|
-
e =
|
|
213
|
+
e = o([
|
|
219
214
|
f("o-filter-chip")
|
|
220
215
|
], e);
|
|
221
216
|
export {
|
package/index.mjs
CHANGED
package/loader.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import "./components/link.mjs";
|
|
|
4
4
|
import "./components/header-simplify.mjs";
|
|
5
5
|
import "./components/breadcrumb.mjs";
|
|
6
6
|
import "./components/breadcrumbs.mjs";
|
|
7
|
-
globalThis.__FLORID_KIT__ = "4.1.
|
|
7
|
+
globalThis.__FLORID_KIT__ = "4.1.6";
|
|
8
8
|
const i = {
|
|
9
9
|
"o-accordion": () => import("./components/accordion.mjs"),
|
|
10
10
|
"o-accordion-group": () => import("./components/accordion-group.mjs"),
|