@florid-kit/components 3.2.4 → 3.2.5
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/link.mjs +40 -46
- package/index.mjs +1 -1
- package/loader.mjs +1 -1
- package/package.json +1 -1
package/components/link.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { i as h, m as f, a as d, x as s, t as v } from "../performance-mixin-D7YmSeqN.mjs";
|
|
2
2
|
import { n } from "../property-S_Y9cb04.mjs";
|
|
3
|
-
import { o as
|
|
3
|
+
import { o as u } from "../if-defined-j0wE2gL4.mjs";
|
|
4
4
|
import "./icon-button.mjs";
|
|
5
|
-
var
|
|
6
|
-
for (var o = a > 1 ? void 0 : a ?
|
|
5
|
+
var g = Object.defineProperty, y = Object.getOwnPropertyDescriptor, t = (i, r, l, a) => {
|
|
6
|
+
for (var o = a > 1 ? void 0 : a ? y(r, l) : r, c = i.length - 1, p; c >= 0; c--)
|
|
7
7
|
(p = i[c]) && (o = (a ? p(r, l, o) : p(o)) || o);
|
|
8
|
-
return a && o &&
|
|
8
|
+
return a && o && g(r, l, o), o;
|
|
9
9
|
};
|
|
10
|
-
let
|
|
10
|
+
let e = class extends f(d) {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1, this.startIcon = !1, this.iconSize = "xsmall", this.disabled = !1;
|
|
13
13
|
}
|
|
@@ -52,7 +52,7 @@ let t = class extends f(d) {
|
|
|
52
52
|
<a
|
|
53
53
|
class="link-wrapper"
|
|
54
54
|
href="${this.href}"
|
|
55
|
-
target="${
|
|
55
|
+
target="${u(this.target || void 0)}"
|
|
56
56
|
@click="${this._handleClick}"
|
|
57
57
|
>
|
|
58
58
|
${r}
|
|
@@ -60,12 +60,13 @@ let t = class extends f(d) {
|
|
|
60
60
|
` : s`<span class="link-wrapper">${r}</span>`;
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
|
-
|
|
63
|
+
e.styles = h`
|
|
64
64
|
:host {
|
|
65
65
|
cursor: pointer;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
:host([template="standard"]) .link-wrapper {
|
|
69
|
+
--link-underline-offset: 7px;
|
|
69
70
|
color: var(--color-content-action-secondary);
|
|
70
71
|
font-size: var(--font-size-200);
|
|
71
72
|
font-weight: var(--font-weight-400);
|
|
@@ -75,6 +76,7 @@ t.styles = h`
|
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
:host([template="discret"]) .link-wrapper {
|
|
79
|
+
--link-underline-offset: 4px;
|
|
78
80
|
color: var(--color-content-action-secondary);
|
|
79
81
|
font-size: var(--font-size-150);
|
|
80
82
|
font-weight: var(--font-weight-400);
|
|
@@ -84,6 +86,7 @@ t.styles = h`
|
|
|
84
86
|
}
|
|
85
87
|
|
|
86
88
|
:host([template="review"]) .link-wrapper {
|
|
89
|
+
--link-underline-offset: 3px;
|
|
87
90
|
color: var(--color-content-action-secondary);
|
|
88
91
|
font-size: var(--font-size-100);
|
|
89
92
|
font-weight: var(--font-weight-500);
|
|
@@ -127,27 +130,18 @@ t.styles = h`
|
|
|
127
130
|
}
|
|
128
131
|
|
|
129
132
|
.link-text {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
left: 0;
|
|
138
|
-
bottom: 0;
|
|
139
|
-
width: 100%;
|
|
140
|
-
opacity: 1;
|
|
141
|
-
height: 1px;
|
|
142
|
-
background-color: currentColor;
|
|
143
|
-
transition: opacity 0.3s ease, height 0.3s ease;
|
|
144
|
-
pointer-events: none;
|
|
133
|
+
display: inline;
|
|
134
|
+
text-decoration: underline;
|
|
135
|
+
text-decoration-thickness: 1px;
|
|
136
|
+
text-underline-offset: var(--link-underline-offset, 7px);
|
|
137
|
+
text-decoration-skip-ink: none;
|
|
138
|
+
text-decoration-color: currentColor;
|
|
139
|
+
transition: text-decoration-color 0.3s ease;
|
|
145
140
|
}
|
|
146
141
|
|
|
147
142
|
@media (hover: hover) and (pointer: fine) {
|
|
148
|
-
:host .link-wrapper:hover .link-text
|
|
149
|
-
|
|
150
|
-
height: 1px;
|
|
143
|
+
:host .link-wrapper:hover .link-text {
|
|
144
|
+
text-decoration-color: transparent;
|
|
151
145
|
}
|
|
152
146
|
|
|
153
147
|
:host([endIcon]) .link-wrapper:hover .link-end-icon {
|
|
@@ -164,36 +158,36 @@ t.styles = h`
|
|
|
164
158
|
}
|
|
165
159
|
}
|
|
166
160
|
`;
|
|
167
|
-
|
|
161
|
+
t([
|
|
168
162
|
n({ type: String })
|
|
169
|
-
],
|
|
170
|
-
|
|
163
|
+
], e.prototype, "href", 2);
|
|
164
|
+
t([
|
|
171
165
|
n({ type: String })
|
|
172
|
-
],
|
|
173
|
-
|
|
166
|
+
], e.prototype, "target", 2);
|
|
167
|
+
t([
|
|
174
168
|
n({ type: String, reflect: !0 })
|
|
175
|
-
],
|
|
176
|
-
|
|
169
|
+
], e.prototype, "template", 2);
|
|
170
|
+
t([
|
|
177
171
|
n({ type: Boolean, reflect: !0 })
|
|
178
|
-
],
|
|
179
|
-
|
|
172
|
+
], e.prototype, "inverse", 2);
|
|
173
|
+
t([
|
|
180
174
|
n({ type: Boolean, reflect: !0 })
|
|
181
|
-
],
|
|
182
|
-
|
|
175
|
+
], e.prototype, "endIcon", 2);
|
|
176
|
+
t([
|
|
183
177
|
n({ type: Boolean, reflect: !0 })
|
|
184
|
-
],
|
|
185
|
-
|
|
178
|
+
], e.prototype, "reverseEndIcon", 2);
|
|
179
|
+
t([
|
|
186
180
|
n({ type: Boolean, reflect: !0 })
|
|
187
|
-
],
|
|
188
|
-
|
|
181
|
+
], e.prototype, "startIcon", 2);
|
|
182
|
+
t([
|
|
189
183
|
n({ type: String })
|
|
190
|
-
],
|
|
191
|
-
|
|
184
|
+
], e.prototype, "iconSize", 2);
|
|
185
|
+
t([
|
|
192
186
|
n({ type: Boolean, reflect: !0 })
|
|
193
|
-
],
|
|
194
|
-
|
|
187
|
+
], e.prototype, "disabled", 2);
|
|
188
|
+
e = t([
|
|
195
189
|
v("o-link")
|
|
196
|
-
],
|
|
190
|
+
], e);
|
|
197
191
|
export {
|
|
198
|
-
|
|
192
|
+
e as OccitaneLink
|
|
199
193
|
};
|
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__ = "3.2.
|
|
7
|
+
globalThis.__FLORID_KIT__ = "3.2.5";
|
|
8
8
|
const i = {
|
|
9
9
|
"o-accordion": () => import("./components/accordion.mjs"),
|
|
10
10
|
"o-accordion-group": () => import("./components/accordion-group.mjs"),
|