@florid-kit/components 3.2.3 → 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.
@@ -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 g } from "../if-defined-j0wE2gL4.mjs";
3
+ import { o as u } from "../if-defined-j0wE2gL4.mjs";
4
4
  import "./icon-button.mjs";
5
- var y = Object.defineProperty, m = Object.getOwnPropertyDescriptor, e = (i, r, l, a) => {
6
- for (var o = a > 1 ? void 0 : a ? m(r, l) : r, c = i.length - 1, p; c >= 0; c--)
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 && y(r, l, o), o;
8
+ return a && o && g(r, l, o), o;
9
9
  };
10
- let t = class extends f(d) {
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="${g(this.target || void 0)}"
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
- t.styles = h`
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
- position: relative;
131
- display: inline-block;
132
- }
133
-
134
- .link-text::after {
135
- content: "";
136
- position: absolute;
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::after {
149
- opacity: 0;
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
- e([
161
+ t([
168
162
  n({ type: String })
169
- ], t.prototype, "href", 2);
170
- e([
163
+ ], e.prototype, "href", 2);
164
+ t([
171
165
  n({ type: String })
172
- ], t.prototype, "target", 2);
173
- e([
166
+ ], e.prototype, "target", 2);
167
+ t([
174
168
  n({ type: String, reflect: !0 })
175
- ], t.prototype, "template", 2);
176
- e([
169
+ ], e.prototype, "template", 2);
170
+ t([
177
171
  n({ type: Boolean, reflect: !0 })
178
- ], t.prototype, "inverse", 2);
179
- e([
172
+ ], e.prototype, "inverse", 2);
173
+ t([
180
174
  n({ type: Boolean, reflect: !0 })
181
- ], t.prototype, "endIcon", 2);
182
- e([
175
+ ], e.prototype, "endIcon", 2);
176
+ t([
183
177
  n({ type: Boolean, reflect: !0 })
184
- ], t.prototype, "reverseEndIcon", 2);
185
- e([
178
+ ], e.prototype, "reverseEndIcon", 2);
179
+ t([
186
180
  n({ type: Boolean, reflect: !0 })
187
- ], t.prototype, "startIcon", 2);
188
- e([
181
+ ], e.prototype, "startIcon", 2);
182
+ t([
189
183
  n({ type: String })
190
- ], t.prototype, "iconSize", 2);
191
- e([
184
+ ], e.prototype, "iconSize", 2);
185
+ t([
192
186
  n({ type: Boolean, reflect: !0 })
193
- ], t.prototype, "disabled", 2);
194
- t = e([
187
+ ], e.prototype, "disabled", 2);
188
+ e = t([
195
189
  v("o-link")
196
- ], t);
190
+ ], e);
197
191
  export {
198
- t as OccitaneLink
192
+ e as OccitaneLink
199
193
  };
@@ -299,7 +299,7 @@ let l = class extends E(w) {
299
299
  if (!t) return;
300
300
  t.updateComplete && await t.updateComplete, (h = (s = ((r = t.shadowRoot) == null ? void 0 : r.querySelector("button")) ?? t) == null ? void 0 : s.focus) == null || h.call(s, { preventScroll: !0 });
301
301
  const n = (f = this.shadowRoot) == null ? void 0 : f.querySelector('.panel[role="dialog"]');
302
- n && n.setAttribute("aria-label", this.labelAriaDialogPanel || "panel-title");
302
+ n && (this.labelAriaDialogPanel ? n.setAttribute("aria-label", this.labelAriaDialogPanel) : n.setAttribute("aria-labelledby", "panel-title"));
303
303
  }
304
304
  _restoreFocusToOrigin() {
305
305
  var t, o;
@@ -519,7 +519,8 @@ let l = class extends E(w) {
519
519
  class="panel"
520
520
  role="dialog"
521
521
  aria-modal="true"
522
- aria-label="${this.labelAriaDialogPanel || "panel-title"}"
522
+ aria-label="${this.labelAriaDialogPanel || b}"
523
+ aria-labelledby="${this.labelAriaDialogPanel ? b : "panel-title"}"
523
524
  style="z-index: ${this.zIndex + 1}"
524
525
  tabindex="-1"
525
526
  >
package/index.mjs CHANGED
@@ -38,4 +38,4 @@ import "./components/search-input.mjs";
38
38
  import "./components/search-input-dropdown.mjs";
39
39
  import "./components/option-tile.mjs";
40
40
  import "./components/option-tile-group.mjs";
41
- globalThis.__FLORID_KIT__ = "3.2.3";
41
+ globalThis.__FLORID_KIT__ = "3.2.5";
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.3";
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"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@florid-kit/components",
3
- "version": "3.2.3",
3
+ "version": "3.2.5",
4
4
  "main": "index.js",
5
5
  "module": "index.mjs",
6
6
  "typings": "index.d.ts",