@florid-kit/components 3.2.1 → 3.2.2

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.
@@ -315,7 +315,7 @@ o.styles = p`
315
315
  fill: var(--color-content-disabled);
316
316
  }
317
317
 
318
- .icon-button:focus-visible,
318
+ :host(:not(.no-outline)) .icon-button:focus-visible,
319
319
  :host(.a--tabfocus) .icon-button {
320
320
  ${x}
321
321
  }
@@ -18,10 +18,10 @@ const c = class c extends d(f) {
18
18
  new CustomEvent("tile-click", { bubbles: !0, composed: !0 })
19
19
  ));
20
20
  }
21
- onClickIcons() {
22
- var r;
23
- (r = this.onClickIcon) == null || r.call(this), this.dispatchEvent(
24
- new CustomEvent("tile-icon-click", { bubbles: !0, composed: !0 })
21
+ onClickIcons(r) {
22
+ var s;
23
+ (s = this.onClickIcon) == null || s.call(this), this.dispatchEvent(
24
+ new CustomEvent("tile-icon-click", { bubbles: !0, composed: !0, detail: { event: r } })
25
25
  );
26
26
  }
27
27
  get icons() {
@@ -46,6 +46,10 @@ export declare class OccitaneSidePanel extends OccitaneSidePanel_base {
46
46
  mode: ShadowRootMode;
47
47
  slotAssignment?: SlotAssignmentMode | undefined;
48
48
  };
49
+ /**
50
+ * Focus the first focusable and interactive element and return it.
51
+ * @returns {HTMLElement?}
52
+ */
49
53
  private focusFirstInPanel;
50
54
  private resolveFocusable;
51
55
  connectedCallback(): void;
@@ -61,7 +65,12 @@ export declare class OccitaneSidePanel extends OccitaneSidePanel_base {
61
65
  private trapFocus;
62
66
  private isUnavailableElement;
63
67
  private getFocusableElements;
64
- openPanel(): void;
68
+ /**
69
+ * Open the panel.
70
+ * @param {Boolean} withVisibleFocus whether to have the visible tabfocus or not. Defaults to FALSE.
71
+ * @param {HTMLElement|String|null} elementToFocus the element inside the sidepanel to focus. Otherwise, default focus behavior.
72
+ */
73
+ openPanel(withVisibleFocus?: boolean, elementToFocus?: HTMLElement | String | null): void;
65
74
  closePanel(e?: Event): void;
66
75
  private handleClosePanel;
67
76
  private handleFirstClick;
@@ -1,10 +1,10 @@
1
- import { E as p, i as C, a as w, m as S, x as h, t as E } from "../performance-mixin-D7YmSeqN.mjs";
2
- import { n as s } from "../property-S_Y9cb04.mjs";
1
+ import { E as b, i as C, a as w, m as E, x as u, t as S } from "../performance-mixin-D7YmSeqN.mjs";
2
+ import { n as a } from "../property-S_Y9cb04.mjs";
3
3
  import { f as g } from "../css-C8WrrxT-.mjs";
4
4
  import { i as B, m as A } from "../element-internals-Dw7LndlH.mjs";
5
5
  import { e as $, o as _, a as I } from "../icons-registry.mjs";
6
- import { g as F } from "../svg-utils-DOL__czZ.mjs";
7
- import { o as z } from "../unsafe-svg-BipL_msF.mjs";
6
+ import { g as z } from "../svg-utils-DOL__czZ.mjs";
7
+ import { o as F } from "../unsafe-svg-BipL_msF.mjs";
8
8
  import "./icon-button.mjs";
9
9
  import { i as L, t as O, e as R } from "../directive-oAbCiebi.mjs";
10
10
  import { f as T } from "../directive-helpers-BHuwIghp.mjs";
@@ -16,26 +16,26 @@ import { f as T } from "../directive-helpers-BHuwIghp.mjs";
16
16
  function q(e) {
17
17
  e.addInitializer((t) => {
18
18
  const o = t;
19
- o.addEventListener("click", async (i) => {
20
- const { type: n, [B]: r } = o, { form: l } = r;
21
- if (!(!l || n === "button") && (await new Promise((b) => {
22
- setTimeout(b);
23
- }), !i.defaultPrevented)) {
24
- if (n === "reset") {
25
- l.reset();
19
+ o.addEventListener("click", async (n) => {
20
+ const { type: i, [B]: r } = o, { form: s } = r;
21
+ if (!(!s || i === "button") && (await new Promise((h) => {
22
+ setTimeout(h);
23
+ }), !n.defaultPrevented)) {
24
+ if (i === "reset") {
25
+ s.reset();
26
26
  return;
27
27
  }
28
- l.addEventListener(
28
+ s.addEventListener(
29
29
  "submit",
30
- (b) => {
31
- Object.defineProperty(b, "submitter", {
30
+ (h) => {
31
+ Object.defineProperty(h, "submitter", {
32
32
  configurable: !0,
33
33
  enumerable: !0,
34
34
  get: () => o
35
35
  });
36
36
  },
37
37
  { capture: !0, once: !0 }
38
- ), r.setFormValue(o.value), l.requestSubmit();
38
+ ), r.setFormValue(o.value), s.requestSubmit();
39
39
  }
40
40
  });
41
41
  });
@@ -46,10 +46,10 @@ function q(e) {
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
48
  const v = (e, t) => {
49
- var i;
49
+ var n;
50
50
  const o = e._$AN;
51
51
  if (o === void 0) return !1;
52
- for (const n of o) (i = n._$AO) == null || i.call(n, t, !1), v(n, t);
52
+ for (const i of o) (n = i._$AO) == null || n.call(i, t, !1), v(i, t);
53
53
  return !0;
54
54
  }, y = (e) => {
55
55
  let t, o;
@@ -69,9 +69,9 @@ function H(e) {
69
69
  this._$AN !== void 0 ? (y(this), this._$AM = e, D(this)) : this._$AM = e;
70
70
  }
71
71
  function M(e, t = !1, o = 0) {
72
- const i = this._$AH, n = this._$AN;
73
- if (n !== void 0 && n.size !== 0) if (t) if (Array.isArray(i)) for (let r = o; r < i.length; r++) v(i[r], !1), y(i[r]);
74
- else i != null && (v(i, !1), y(i));
72
+ const n = this._$AH, i = this._$AN;
73
+ if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(n)) for (let r = o; r < n.length; r++) v(n[r], !1), y(n[r]);
74
+ else n != null && (v(n, !1), y(n));
75
75
  else v(this, e);
76
76
  }
77
77
  const K = (e) => {
@@ -81,12 +81,12 @@ class j extends L {
81
81
  constructor() {
82
82
  super(...arguments), this._$AN = void 0;
83
83
  }
84
- _$AT(t, o, i) {
85
- super._$AT(t, o, i), D(this), this.isConnected = t._$AU;
84
+ _$AT(t, o, n) {
85
+ super._$AT(t, o, n), D(this), this.isConnected = t._$AU;
86
86
  }
87
87
  _$AO(t, o = !0) {
88
- var i, n;
89
- t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (n = this.disconnected) == null || n.call(this)), o && (v(this, t), y(this));
88
+ var n, i;
89
+ t !== this.isConnected && (this.isConnected = t, t ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), o && (v(this, t), y(this));
90
90
  }
91
91
  setValue(t) {
92
92
  if (T(this._$Ct)) this._$Ct._$AI(t, this);
@@ -105,26 +105,26 @@ class N extends j {
105
105
  super(...arguments), this.prevData = {};
106
106
  }
107
107
  render(t) {
108
- return p;
108
+ return b;
109
109
  }
110
110
  update(t, [o]) {
111
- var i;
112
- this.element !== t.element && (this.element = t.element), this.host = ((i = t.options) === null || i === void 0 ? void 0 : i.host) || this.element, this.apply(o), this.groom(o), this.prevData = { ...o };
111
+ var n;
112
+ this.element !== t.element && (this.element = t.element), this.host = ((n = t.options) === null || n === void 0 ? void 0 : n.host) || this.element, this.apply(o), this.groom(o), this.prevData = { ...o };
113
113
  }
114
114
  apply(t) {
115
115
  if (!t)
116
116
  return;
117
- const { prevData: o, element: i } = this;
118
- for (const n in t) {
119
- const r = t[n];
120
- r !== o[n] && (i[n] = r);
117
+ const { prevData: o, element: n } = this;
118
+ for (const i in t) {
119
+ const r = t[i];
120
+ r !== o[i] && (n[i] = r);
121
121
  }
122
122
  }
123
123
  groom(t) {
124
- const { prevData: o, element: i } = this;
124
+ const { prevData: o, element: n } = this;
125
125
  if (o)
126
- for (const n in o)
127
- (!t || !(n in t) && i[n] === o[n]) && (i[n] = void 0);
126
+ for (const i in o)
127
+ (!t || !(i in t) && n[i] === o[i]) && (n[i] = void 0);
128
128
  }
129
129
  }
130
130
  class V extends N {
@@ -134,23 +134,23 @@ class V extends N {
134
134
  apply(t) {
135
135
  if (t)
136
136
  for (const o in t) {
137
- const i = t[o];
138
- i !== this.eventData[o] && this.applyEvent(o, i);
137
+ const n = t[o];
138
+ n !== this.eventData[o] && this.applyEvent(o, n);
139
139
  }
140
140
  }
141
141
  applyEvent(t, o) {
142
- const { prevData: i, element: n } = this;
143
- this.eventData[t] = o, i[t] && n.removeEventListener(t, this, o), n.addEventListener(t, this, o);
142
+ const { prevData: n, element: i } = this;
143
+ this.eventData[t] = o, n[t] && i.removeEventListener(t, this, o), i.addEventListener(t, this, o);
144
144
  }
145
145
  groom(t) {
146
- const { prevData: o, element: i } = this;
146
+ const { prevData: o, element: n } = this;
147
147
  if (o)
148
- for (const n in o)
149
- (!t || !(n in t) && i[n] === o[n]) && this.groomEvent(n, o[n]);
148
+ for (const i in o)
149
+ (!t || !(i in t) && n[i] === o[i]) && this.groomEvent(i, o[i]);
150
150
  }
151
151
  groomEvent(t, o) {
152
- const { element: i } = this;
153
- delete this.eventData[t], i.removeEventListener(t, this, o);
152
+ const { element: n } = this;
153
+ delete this.eventData[t], n.removeEventListener(t, this, o);
154
154
  }
155
155
  handleEvent(t) {
156
156
  const o = this.eventData[t.type];
@@ -158,16 +158,16 @@ class V extends N {
158
158
  }
159
159
  disconnected() {
160
160
  const { eventData: t, element: o } = this;
161
- for (const i in t) {
162
- const n = i.slice(1), r = t[i];
163
- o.removeEventListener(n, this, r);
161
+ for (const n in t) {
162
+ const i = n.slice(1), r = t[n];
163
+ o.removeEventListener(i, this, r);
164
164
  }
165
165
  }
166
166
  reconnected() {
167
167
  const { eventData: t, element: o } = this;
168
- for (const i in t) {
169
- const n = i.slice(1), r = t[i];
170
- o.addEventListener(n, this, r);
168
+ for (const n in t) {
169
+ const i = n.slice(1), r = t[n];
170
+ o.addEventListener(i, this, r);
171
171
  }
172
172
  }
173
173
  }
@@ -175,65 +175,65 @@ class X extends V {
175
175
  apply(t) {
176
176
  if (!t)
177
177
  return;
178
- const { prevData: o, element: i } = this;
179
- for (const n in t) {
180
- const r = t[n];
181
- if (r === o[n])
178
+ const { prevData: o, element: n } = this;
179
+ for (const i in t) {
180
+ const r = t[i];
181
+ if (r === o[i])
182
182
  continue;
183
- const l = n.slice(1);
184
- switch (n[0]) {
183
+ const s = i.slice(1);
184
+ switch (i[0]) {
185
185
  case "@":
186
- this.eventData[l] = r, this.applyEvent(l, r);
186
+ this.eventData[s] = r, this.applyEvent(s, r);
187
187
  break;
188
188
  case ".":
189
- i[l] = r;
189
+ n[s] = r;
190
190
  break;
191
191
  case "?":
192
- r ? i.setAttribute(l, "") : i.removeAttribute(l);
192
+ r ? n.setAttribute(s, "") : n.removeAttribute(s);
193
193
  break;
194
194
  default:
195
- r != null ? i.setAttribute(n, String(r)) : i.removeAttribute(n);
195
+ r != null ? n.setAttribute(i, String(r)) : n.removeAttribute(i);
196
196
  break;
197
197
  }
198
198
  }
199
199
  }
200
200
  groom(t) {
201
- const { prevData: o, element: i } = this;
201
+ const { prevData: o, element: n } = this;
202
202
  if (o)
203
- for (const n in o) {
204
- const r = n.slice(1);
205
- if (!t || !(n in t) && i[r] === o[n])
206
- switch (n[0]) {
203
+ for (const i in o) {
204
+ const r = i.slice(1);
205
+ if (!t || !(i in t) && n[r] === o[i])
206
+ switch (i[0]) {
207
207
  case "@":
208
- this.groomEvent(r, o[n]);
208
+ this.groomEvent(r, o[i]);
209
209
  break;
210
210
  case ".":
211
- i[r] = void 0;
211
+ n[r] = void 0;
212
212
  break;
213
213
  case "?":
214
- i.removeAttribute(r);
214
+ n.removeAttribute(r);
215
215
  break;
216
216
  default:
217
- i.removeAttribute(n);
217
+ n.removeAttribute(i);
218
218
  break;
219
219
  }
220
220
  }
221
221
  }
222
222
  }
223
223
  const k = R(X);
224
- var U = Object.defineProperty, W = Object.getOwnPropertyDescriptor, c = (e, t, o, i) => {
225
- for (var n = i > 1 ? void 0 : i ? W(t, o) : t, r = e.length - 1, l; r >= 0; r--)
226
- (l = e[r]) && (n = (i ? l(t, o, n) : l(n)) || n);
227
- return i && n && U(t, o, n), n;
224
+ var U = Object.defineProperty, W = Object.getOwnPropertyDescriptor, c = (e, t, o, n) => {
225
+ for (var i = n > 1 ? void 0 : n ? W(t, o) : t, r = e.length - 1, s; r >= 0; r--)
226
+ (s = e[r]) && (i = (n ? s(t, o, i) : s(i)) || i);
227
+ return n && i && U(t, o, i), i;
228
228
  };
229
- let a = class extends S(w) {
229
+ let l = class extends E(w) {
230
230
  constructor() {
231
231
  super(...arguments), this.open = !1, this.showHeader = !0, this.showFooter = !1, this.showHeaderStartIcon = !1, this.headerTitle = "", this.headerTitleClassName = "panel-title", this.labelDialog = "", this.labelAriaDialogPanel = "", this.addToBagProductCount = "", this.closeButtonLabel = "Close the modal", this.goBackButtonLabel = "Go back to", this.firstButtonLabel = "Close", this.firstButtonVariant = "primary", this.firstButtonProps = {}, this.onFirstButtonClickClose = !1, this.secondButtonLabel = "", this.secondButtonVariant = "secondary", this.secondButtonProps = {}, this.onSecondButtonClickClose = !1, this.stickyFooter = !1, this.disablePortal = !1, this.zIndex = 99, this.initialized = !1, this.showDetail = !1, this.isHidingDetail = !1, this.previousFocusedElement = null, this.previousFocusedSelector = null, this._hideTimeout = null, this._onOpenDetail = async (e) => {
232
- var o, i;
232
+ var o, n;
233
233
  const t = ((o = e.detail) == null ? void 0 : o.origin) ?? document.activeElement;
234
234
  if (this._detailOriginEl = t, this._detailOriginClass = (t == null ? void 0 : t.className) ?? "", this.showDetail = !0, this.showHeaderStartIcon = !0, await this.updateComplete, this._detailOriginClass) {
235
- const n = (i = this.shadowRoot) == null ? void 0 : i.querySelector(".detail-view");
236
- n && n.setAttribute("fromelement", this._detailOriginClass);
235
+ const i = (n = this.shadowRoot) == null ? void 0 : n.querySelector(".detail-view");
236
+ i && i.setAttribute("fromelement", this._detailOriginClass);
237
237
  }
238
238
  await this.focusDetailReturnBtn();
239
239
  }, this._detailOriginEl = null, this._detailOriginClass = "", this.handleKeyDown = (e) => {
@@ -245,15 +245,15 @@ let a = class extends S(w) {
245
245
  const t = e.currentTarget, o = (t == null ? void 0 : t.getAttribute("data-role")) === "back";
246
246
  if (this.showDetail && o) {
247
247
  this.isHidingDetail = !0;
248
- const i = this.renderRoot.querySelector(".content"), n = async () => {
248
+ const n = this.renderRoot.querySelector(".content"), i = async () => {
249
249
  this.showDetail = !1, this.isHidingDetail = !1, this.showHeaderStartIcon = !1, await this.updateComplete, this._restoreFocusToOrigin();
250
250
  };
251
- if (i) {
251
+ if (n) {
252
252
  this.showHeaderStartIcon = !1;
253
253
  const r = () => {
254
- this.showDetail = !1, this.isHidingDetail = !1, i.removeEventListener("animationend", r), n();
254
+ this.showDetail = !1, this.isHidingDetail = !1, n.removeEventListener("animationend", r), i();
255
255
  };
256
- i.addEventListener("animationend", r);
256
+ n.addEventListener("animationend", r);
257
257
  } else
258
258
  this.showDetail = !1, this.isHidingDetail = !1, this.showHeaderStartIcon = !1;
259
259
  return;
@@ -261,9 +261,14 @@ let a = class extends S(w) {
261
261
  this.closePanel(e);
262
262
  };
263
263
  }
264
+ /**
265
+ * Focus the first focusable and interactive element and return it.
266
+ * @returns {HTMLElement?}
267
+ */
264
268
  focusFirstInPanel() {
265
- var t, o, i;
266
- (i = this.getFocusableElements().filter((n) => !!n && !n.hasAttribute("disabled"))[0] ?? ((t = this.shadowRoot) == null ? void 0 : t.querySelector(".close-btn")) ?? ((o = this.shadowRoot) == null ? void 0 : o.querySelector(".panel"))) == null || i.focus({ preventScroll: !0 });
269
+ var o, n;
270
+ const t = this.getFocusableElements().filter((i) => !!i && !i.hasAttribute("disabled"))[0] ?? ((o = this.shadowRoot) == null ? void 0 : o.querySelector(".close-btn")) ?? ((n = this.shadowRoot) == null ? void 0 : n.querySelector(".panel"));
271
+ return t == null || t.focus({ preventScroll: !0 }), t;
267
272
  }
268
273
  resolveFocusable(e) {
269
274
  var o;
@@ -281,7 +286,7 @@ let a = class extends S(w) {
281
286
  document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), this.removeEventListener("keydown", this.handleKeyDown), super.disconnectedCallback(), this.removeEventListener("open-detail", this._onOpenDetail);
282
287
  }
283
288
  async focusDetailReturnBtn() {
284
- var n, r, l, b, f;
289
+ var i, r, s, h, f;
285
290
  await this.updateComplete;
286
291
  const e = this.getDeepActiveElement(document);
287
292
  if (e && e !== document.body)
@@ -290,18 +295,18 @@ let a = class extends S(w) {
290
295
  } catch {
291
296
  }
292
297
  await new Promise(requestAnimationFrame);
293
- const t = (n = this.shadowRoot) == null ? void 0 : n.querySelector(".detail-view .return-btn");
298
+ const t = (i = this.shadowRoot) == null ? void 0 : i.querySelector(".detail-view .return-btn");
294
299
  if (!t) return;
295
- t.updateComplete && await t.updateComplete, (b = (l = ((r = t.shadowRoot) == null ? void 0 : r.querySelector("button")) ?? t) == null ? void 0 : l.focus) == null || b.call(l, { preventScroll: !0 });
296
- const i = (f = this.shadowRoot) == null ? void 0 : f.querySelector('.panel[role="dialog"]');
297
- i && i.setAttribute("aria-label", this.labelAriaDialogPanel || "panel-title");
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
+ const n = (f = this.shadowRoot) == null ? void 0 : f.querySelector('.panel[role="dialog"]');
302
+ n && n.setAttribute("aria-label", this.labelAriaDialogPanel || "panel-title");
298
303
  }
299
304
  _restoreFocusToOrigin() {
300
305
  var t, o;
301
306
  const e = this._detailOriginEl;
302
307
  !e || !document.contains(e) || ((o = (t = document.activeElement) == null ? void 0 : t.blur) == null || o.call(t), requestAnimationFrame(() => {
303
- var n;
304
- e.classList.add("a--tabfocus"), (((n = e.shadowRoot) == null ? void 0 : n.querySelector('button, .button, [tabindex]:not([tabindex="-1"])')) ?? null ?? e).focus({ preventScroll: !0 });
308
+ var i;
309
+ e.classList.add("a--tabfocus"), (((i = e.shadowRoot) == null ? void 0 : i.querySelector('button, .button, [tabindex]:not([tabindex="-1"])')) ?? null ?? e).focus({ preventScroll: !0 });
305
310
  }));
306
311
  }
307
312
  getDeepActiveElement(e = this.shadowRoot) {
@@ -316,8 +321,8 @@ let a = class extends S(w) {
316
321
  e.preventDefault(), e.stopPropagation(), (r = this.renderRoot.querySelector(".panel")) == null || r.focus({ preventScroll: !0 });
317
322
  return;
318
323
  }
319
- const i = o[0], n = o[o.length - 1];
320
- !t || !o.includes(t) ? (e.preventDefault(), e.stopPropagation(), (e.shiftKey ? n : i).focus({ preventScroll: !0 })) : !e.shiftKey && t === n ? (e.preventDefault(), e.stopPropagation(), i.focus({ preventScroll: !0 })) : e.shiftKey && t === i && (e.preventDefault(), e.stopPropagation(), n.focus({ preventScroll: !0 }));
324
+ const n = o[0], i = o[o.length - 1];
325
+ !t || !o.includes(t) ? (e.preventDefault(), e.stopPropagation(), (e.shiftKey ? i : n).focus({ preventScroll: !0 })) : !e.shiftKey && t === i ? (e.preventDefault(), e.stopPropagation(), n.focus({ preventScroll: !0 })) : e.shiftKey && t === n && (e.preventDefault(), e.stopPropagation(), i.focus({ preventScroll: !0 }));
321
326
  }
322
327
  trapFocus(e) {
323
328
  if (e.key !== "Tab") return;
@@ -325,32 +330,32 @@ let a = class extends S(w) {
325
330
  if (!t) return;
326
331
  const o = this.getFocusableElements();
327
332
  e.target && e.target.closest("o-side-panel") && !o.includes(e.target) && o.splice(1, 0, e.target);
328
- const i = e.composedPath()[0] ?? this.getDeepActiveElement(document);
333
+ const n = e.composedPath()[0] ?? this.getDeepActiveElement(document);
329
334
  if (this.showDetail) {
330
- this.wrapFocus(e, i, o);
335
+ this.wrapFocus(e, n, o);
331
336
  return;
332
337
  }
333
338
  if (document.querySelector("#refineandsortpopin")) {
334
- const l = t.querySelector(".close-btn"), b = l ? this.resolveFocusable(l) : null, f = t.querySelector(".js-clear-refinements"), m = f ? this.resolveFocusable(f) : null, x = (P) => {
339
+ const s = t.querySelector(".close-btn"), h = s ? this.resolveFocusable(s) : null, f = t.querySelector(".js-clear-refinements"), m = f ? this.resolveFocusable(f) : null, x = (P) => {
335
340
  e.preventDefault(), e.stopPropagation(), P.focus();
336
341
  };
337
- if (b && m) {
338
- if (!e.shiftKey && i === m) return x(b);
339
- if (e.shiftKey && i === b) return x(m);
342
+ if (h && m) {
343
+ if (!e.shiftKey && n === m) return x(h);
344
+ if (e.shiftKey && n === h) return x(m);
340
345
  }
341
346
  }
342
347
  const r = this.renderRoot.querySelector(".close-btn");
343
- if (!e.shiftKey && r && r.contains(i)) {
348
+ if (!e.shiftKey && r && r.contains(n)) {
344
349
  e.preventDefault();
345
- const l = this.renderRoot.querySelector(
350
+ const s = this.renderRoot.querySelector(
346
351
  ".o-whats-inside--content p"
347
352
  );
348
- if (l) {
349
- l.focus();
353
+ if (s) {
354
+ s.focus();
350
355
  return;
351
356
  }
352
357
  }
353
- this.wrapFocus(e, i, o);
358
+ this.wrapFocus(e, n, o);
354
359
  }
355
360
  isUnavailableElement(e) {
356
361
  if (!(e instanceof HTMLElement)) return !1;
@@ -361,45 +366,59 @@ let a = class extends S(w) {
361
366
  getFocusableElements() {
362
367
  const e = this.showDetail ? this.renderRoot.querySelector(".detail-view") : this.renderRoot.querySelector(".panel");
363
368
  if (!e) return [];
364
- const t = (r) => this.isUnavailableElement(r) ? !1 : r.matches(a.focusablesSelector), o = [], i = /* @__PURE__ */ new Set(), n = (r) => {
365
- if (i.has(r) || (i.add(r), r instanceof HTMLElement && r.closest("[hidden], [inert], [aria-hidden='true']"))) return;
369
+ const t = (r) => this.isUnavailableElement(r) ? !1 : r.matches(l.focusablesSelector), o = [], n = /* @__PURE__ */ new Set(), i = (r) => {
370
+ if (n.has(r) || (n.add(r), r instanceof HTMLElement && r.closest("[hidden], [inert], [aria-hidden='true']"))) return;
366
371
  if (t(r)) {
367
372
  const f = this.resolveFocusable(r);
368
373
  f && !this.isUnavailableElement(f) && o.push(f);
369
374
  }
370
- const l = r.tagName.toLowerCase();
371
- if (l === "o-icon-button" || l === "o-button") return;
375
+ const s = r.tagName.toLowerCase();
376
+ if (s === "o-icon-button" || s === "o-button") return;
372
377
  if (r instanceof HTMLSlotElement) {
373
- r.assignedElements({ flatten: !0 }).forEach(n);
378
+ r.assignedElements({ flatten: !0 }).forEach(i);
374
379
  return;
375
380
  }
376
- const b = r.shadowRoot;
377
- b && Array.from(b.children).forEach(n), Array.from(r.children).forEach(n);
381
+ const h = r.shadowRoot;
382
+ h && Array.from(h.children).forEach(i), Array.from(r.children).forEach(i);
378
383
  };
379
- return n(e), o;
384
+ return i(e), o;
380
385
  }
381
- openPanel() {
382
- var t;
383
- this.removeAttribute("hidden"), this.getBoundingClientRect(), this.previousFocusedElement = document.activeElement, this.previousFocusedSelector = (t = this.previousFocusedElement) == null ? void 0 : t.getAttribute("paneltarget"), this.open = !0, document.body.style.overflow = "hidden", document.body.setAttribute("data-side-panel", "open");
384
- const e = this.renderRoot.querySelector(".panel");
385
- e && e.setAttribute("aria-modal", "true"), this.updateComplete.then(async () => {
386
- var o, i;
387
- if (this.showHeader) {
388
- const n = (o = this.shadowRoot) == null ? void 0 : o.querySelector(".panel .close-btn");
389
- n != null && n.updateComplete && await n.updateComplete;
390
- const r = this.resolveFocusable(n);
391
- (i = r == null ? void 0 : r.focus) == null || i.call(r, { preventScroll: !0 });
386
+ /**
387
+ * Open the panel.
388
+ * @param {Boolean} withVisibleFocus whether to have the visible tabfocus or not. Defaults to FALSE.
389
+ * @param {HTMLElement|String|null} elementToFocus the element inside the sidepanel to focus. Otherwise, default focus behavior.
390
+ */
391
+ openPanel(e = !1, t = null) {
392
+ var n;
393
+ this.removeAttribute("hidden"), this.getBoundingClientRect(), this.previousFocusedElement = document.activeElement, this.previousFocusedSelector = (n = this.previousFocusedElement) == null ? void 0 : n.getAttribute("paneltarget"), this.open = !0, document.body.style.overflow = "hidden", document.body.setAttribute("data-side-panel", "open");
394
+ const o = this.renderRoot.querySelector(".panel");
395
+ o && o.setAttribute("aria-modal", "true"), this.updateComplete.then(async () => {
396
+ var i, r;
397
+ if (this.showHeader && !t) {
398
+ const s = (i = this.shadowRoot) == null ? void 0 : i.querySelector(".panel .close-btn");
399
+ s != null && s.updateComplete && await s.updateComplete;
400
+ const h = this.resolveFocusable(s);
401
+ (r = h == null ? void 0 : h.focus) == null || r.call(h, { preventScroll: !0 }), e || (s == null || s.classList.add("no-outline"), h == null || h.addEventListener("focusout", () => {
402
+ s == null || s.classList.remove("no-outline");
403
+ }, { once: !0 }));
392
404
  } else
393
405
  this.focusFirstInPanel();
394
406
  }), this.dispatchEvent(
395
- new CustomEvent("open", { bubbles: !0, composed: !0 })
407
+ new CustomEvent("open", {
408
+ bubbles: !0,
409
+ composed: !0,
410
+ detail: {
411
+ withVisibleFocus: e,
412
+ elementToFocus: t
413
+ }
414
+ })
396
415
  );
397
416
  }
398
417
  closePanel(e) {
399
- var i, n, r;
418
+ var n, i, r;
400
419
  this.open = !1, this.showDetail = !1, document.body.style.overflow = "", document.body.removeAttribute("data-side-panel");
401
420
  let t = this.previousFocusedElement;
402
- t != null && t.isConnected || (t = document.querySelector(`[paneltarget="${this.previousFocusedSelector}"]`)), (t == null ? void 0 : t.tagName.toLowerCase()) === "o-button" ? (r = (n = (i = t.shadowRoot) == null ? void 0 : i.querySelector(".button")) == null ? void 0 : n.focus) == null || r.call(n) : t == null || t.focus();
421
+ t != null && t.isConnected || (t = document.querySelector(`[paneltarget="${this.previousFocusedSelector}"]`)), (t == null ? void 0 : t.tagName.toLowerCase()) === "o-button" ? (r = (i = (n = t.shadowRoot) == null ? void 0 : n.querySelector(".button")) == null ? void 0 : i.focus) == null || r.call(i) : t == null || t.focus();
403
422
  const o = this.renderRoot.querySelector(".panel");
404
423
  o && o.removeAttribute("aria-modal"), this.dispatchEvent(
405
424
  new CustomEvent("close", { bubbles: !0, composed: !0, detail: { event: e } })
@@ -437,9 +456,9 @@ let a = class extends S(w) {
437
456
  }, 500);
438
457
  }
439
458
  render() {
440
- const e = this.showHeader ? h`
459
+ const e = this.showHeader ? u`
441
460
  <div tabindex="-1" part="header" class="header ${this.showDetail ? "detail-view-header" : ""}">
442
- ${this.showHeaderStartIcon ? h`
461
+ ${this.showHeaderStartIcon ? u`
443
462
  <o-icon-button
444
463
  icon="arrowLeft"
445
464
  size="small"
@@ -456,7 +475,7 @@ let a = class extends S(w) {
456
475
  <p role="heading" aria-level="1" id="panel-title" class="${this.headerTitleClassName}">
457
476
  ${this.headerTitle}
458
477
  </p>
459
- ${this.addToBagProductCount ? h`<span class="a-quantity">${this.addToBagProductCount}</span>` : null}
478
+ ${this.addToBagProductCount ? u`<span class="a-quantity">${this.addToBagProductCount}</span>` : null}
460
479
  </div>
461
480
  <o-icon-button
462
481
  icon="occ-close-outlined"
@@ -470,9 +489,9 @@ let a = class extends S(w) {
470
489
  aria-describedby="panel-title"
471
490
  ></o-icon-button>
472
491
  </div>
473
- ` : null, t = this.showFooter ? h`
492
+ ` : null, t = this.showFooter ? u`
474
493
  <div class="footer" part="footer">
475
- ${this.firstButtonVariant && this.firstButtonLabel ? h`
494
+ ${this.firstButtonVariant && this.firstButtonLabel ? u`
476
495
  <o-button
477
496
  .variant=${this.firstButtonVariant}
478
497
  @click=${this.handleFirstClick}
@@ -482,7 +501,7 @@ let a = class extends S(w) {
482
501
  ${this.firstButtonLabel}
483
502
  </o-button>
484
503
  ` : null}
485
- ${this.secondButtonVariant && this.secondButtonLabel ? h`
504
+ ${this.secondButtonVariant && this.secondButtonLabel ? u`
486
505
  <o-button
487
506
  .variant=${this.secondButtonVariant}
488
507
  @click=${this.handleSecondClick}
@@ -494,7 +513,7 @@ let a = class extends S(w) {
494
513
  ` : null}
495
514
  </div>
496
515
  ` : null;
497
- return h`
516
+ return u`
498
517
  <div class="overlay" style="z-index: ${this.zIndex}" @click=${this.handleClosePanel}></div>
499
518
  <div
500
519
  class="panel"
@@ -509,7 +528,7 @@ let a = class extends S(w) {
509
528
 
510
529
  <div part="content" class="content ${this.isHidingDetail ? "slide-out-right" : ""} ${this.showDetail ? "with-detail" : ""}">
511
530
 
512
- ${this.showDetail ? h`
531
+ ${this.showDetail ? u`
513
532
  <div class="detail-view">
514
533
  ${e}
515
534
  <div class="detail-content">
@@ -518,7 +537,7 @@ let a = class extends S(w) {
518
537
  </div>
519
538
  </div>
520
539
  </div>
521
- ` : h`<slot></slot>`}
540
+ ` : u`<slot></slot>`}
522
541
  </div>
523
542
 
524
543
  ${this.stickyFooter ? null : t}
@@ -528,7 +547,7 @@ let a = class extends S(w) {
528
547
  `;
529
548
  }
530
549
  };
531
- a.styles = C`
550
+ l.styles = C`
532
551
  :host {
533
552
  --z-overlay: 99;
534
553
  --z-panel: 100;
@@ -771,97 +790,97 @@ a.styles = C`
771
790
  box-sizing: border-box;
772
791
  }
773
792
  `;
774
- a.focusablesSelector = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';
775
- a.focusablesCustomElementsSelector = "o-icon-button, o-button";
776
- a.shadowRootOptions = {
793
+ l.focusablesSelector = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), o-icon-button, o-button';
794
+ l.focusablesCustomElementsSelector = "o-icon-button, o-button";
795
+ l.shadowRootOptions = {
777
796
  ...w.shadowRootOptions,
778
797
  // This helps send focus into the first focusable in shadow when host is focused
779
798
  delegatesFocus: !0
780
799
  };
781
800
  c([
782
- s({ type: Boolean, reflect: !0 })
783
- ], a.prototype, "open", 2);
801
+ a({ type: Boolean, reflect: !0 })
802
+ ], l.prototype, "open", 2);
784
803
  c([
785
- s({ type: Boolean })
786
- ], a.prototype, "showHeader", 2);
804
+ a({ type: Boolean })
805
+ ], l.prototype, "showHeader", 2);
787
806
  c([
788
- s({ type: Boolean })
789
- ], a.prototype, "showFooter", 2);
807
+ a({ type: Boolean })
808
+ ], l.prototype, "showFooter", 2);
790
809
  c([
791
- s({ type: Boolean })
792
- ], a.prototype, "showHeaderStartIcon", 2);
810
+ a({ type: Boolean })
811
+ ], l.prototype, "showHeaderStartIcon", 2);
793
812
  c([
794
- s({ type: String })
795
- ], a.prototype, "headerTitle", 2);
813
+ a({ type: String })
814
+ ], l.prototype, "headerTitle", 2);
796
815
  c([
797
- s({ type: String })
798
- ], a.prototype, "headerTitleClassName", 2);
816
+ a({ type: String })
817
+ ], l.prototype, "headerTitleClassName", 2);
799
818
  c([
800
- s({ type: String })
801
- ], a.prototype, "labelDialog", 2);
819
+ a({ type: String })
820
+ ], l.prototype, "labelDialog", 2);
802
821
  c([
803
- s({ type: String })
804
- ], a.prototype, "labelAriaDialogPanel", 2);
822
+ a({ type: String })
823
+ ], l.prototype, "labelAriaDialogPanel", 2);
805
824
  c([
806
- s({ type: String })
807
- ], a.prototype, "addToBagProductCount", 2);
825
+ a({ type: String })
826
+ ], l.prototype, "addToBagProductCount", 2);
808
827
  c([
809
- s({ type: String })
810
- ], a.prototype, "closeButtonLabel", 2);
828
+ a({ type: String })
829
+ ], l.prototype, "closeButtonLabel", 2);
811
830
  c([
812
- s({ type: String })
813
- ], a.prototype, "goBackButtonLabel", 2);
831
+ a({ type: String })
832
+ ], l.prototype, "goBackButtonLabel", 2);
814
833
  c([
815
- s({ type: String })
816
- ], a.prototype, "firstButtonLabel", 2);
834
+ a({ type: String })
835
+ ], l.prototype, "firstButtonLabel", 2);
817
836
  c([
818
- s({ type: String })
819
- ], a.prototype, "firstButtonVariant", 2);
837
+ a({ type: String })
838
+ ], l.prototype, "firstButtonVariant", 2);
820
839
  c([
821
- s({ type: Object })
822
- ], a.prototype, "firstButtonProps", 2);
840
+ a({ type: Object })
841
+ ], l.prototype, "firstButtonProps", 2);
823
842
  c([
824
- s({ type: Boolean })
825
- ], a.prototype, "onFirstButtonClickClose", 2);
843
+ a({ type: Boolean })
844
+ ], l.prototype, "onFirstButtonClickClose", 2);
826
845
  c([
827
- s({ type: String })
828
- ], a.prototype, "secondButtonLabel", 2);
846
+ a({ type: String })
847
+ ], l.prototype, "secondButtonLabel", 2);
829
848
  c([
830
- s({ type: String })
831
- ], a.prototype, "secondButtonVariant", 2);
849
+ a({ type: String })
850
+ ], l.prototype, "secondButtonVariant", 2);
832
851
  c([
833
- s({ type: Object })
834
- ], a.prototype, "secondButtonProps", 2);
852
+ a({ type: Object })
853
+ ], l.prototype, "secondButtonProps", 2);
835
854
  c([
836
- s({ type: Boolean })
837
- ], a.prototype, "onSecondButtonClickClose", 2);
855
+ a({ type: Boolean })
856
+ ], l.prototype, "onSecondButtonClickClose", 2);
838
857
  c([
839
- s({ type: Boolean, reflect: !0 })
840
- ], a.prototype, "stickyFooter", 2);
858
+ a({ type: Boolean, reflect: !0 })
859
+ ], l.prototype, "stickyFooter", 2);
841
860
  c([
842
- s({ type: Boolean })
843
- ], a.prototype, "disablePortal", 2);
861
+ a({ type: Boolean })
862
+ ], l.prototype, "disablePortal", 2);
844
863
  c([
845
- s({ type: Number })
846
- ], a.prototype, "zIndex", 2);
864
+ a({ type: Number })
865
+ ], l.prototype, "zIndex", 2);
847
866
  c([
848
- s({ type: Boolean, reflect: !0 })
849
- ], a.prototype, "initialized", 2);
867
+ a({ type: Boolean, reflect: !0 })
868
+ ], l.prototype, "initialized", 2);
850
869
  c([
851
- s({ type: Boolean })
852
- ], a.prototype, "showDetail", 2);
870
+ a({ type: Boolean })
871
+ ], l.prototype, "showDetail", 2);
853
872
  c([
854
- s({ type: Boolean })
855
- ], a.prototype, "isHidingDetail", 2);
856
- a = c([
857
- E("o-side-panel")
858
- ], a);
859
- var G = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, u = (e, t, o, i) => {
860
- for (var n = i > 1 ? void 0 : i ? Q(t, o) : t, r = e.length - 1, l; r >= 0; r--)
861
- (l = e[r]) && (n = (i ? l(t, o, n) : l(n)) || n);
862
- return i && n && G(t, o, n), n;
873
+ a({ type: Boolean })
874
+ ], l.prototype, "isHidingDetail", 2);
875
+ l = c([
876
+ S("o-side-panel")
877
+ ], l);
878
+ var G = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, p = (e, t, o, n) => {
879
+ for (var i = n > 1 ? void 0 : n ? Q(t, o) : t, r = e.length - 1, s; r >= 0; r--)
880
+ (s = e[r]) && (i = (n ? s(t, o, i) : s(i)) || i);
881
+ return n && i && G(t, o, i), i;
863
882
  };
864
- const J = S(A(w)), lt = ["primary", "secondary", "ghost", "tertiary", "link"];
883
+ const J = E(A(w)), lt = ["primary", "secondary", "ghost", "tertiary", "link"];
865
884
  let d = class extends J {
866
885
  constructor() {
867
886
  super(...arguments), this.type = "submit", this.value = "", this.variant = "primary", this.text = "", this.textsecond = "", this.fullwidth = !1, this.disabled = !1, this.startIconModel = "", this.endIconModel = "", this.startIcon = !1, this.endIcon = !1, this.panelTarget = "", this.href = "", this.target = "", this.underlined = !1, this.withbadge = !1, this.hideRoleButton = !1, this.describedBy = null, this.ariaExpanded = null;
@@ -878,16 +897,16 @@ let d = class extends J {
878
897
  handleClick(e) {
879
898
  if (!(e instanceof KeyboardEvent && !["Enter", " "].includes(e.key)) && this.panelTarget) {
880
899
  const t = document.getElementById(this.panelTarget);
881
- t instanceof a && (t != null && t.openPanel) && typeof t.openPanel == "function" ? (e.preventDefault(), t.openPanel()) : console.warn(`[o-button] No side panel with id="${this.panelTarget}" found or it does not have an openPanel method.`);
900
+ t instanceof l && (t != null && t.openPanel) && typeof t.openPanel == "function" ? (e.preventDefault(), t.openPanel()) : console.warn(`[o-button] No side panel with id="${this.panelTarget}" found or it does not have an openPanel method.`);
882
901
  }
883
902
  }
884
903
  render() {
885
904
  return this.href ? this.renderLink() : this.renderButton();
886
905
  }
887
906
  connectedCallback() {
888
- var o, i;
907
+ var o, n;
889
908
  super.connectedCallback();
890
- const e = (o = this.startIconModel) == null ? void 0 : o.startsWith("occ-"), t = (i = this.endIconModel) == null ? void 0 : i.startsWith("occ-");
909
+ const e = (o = this.startIconModel) == null ? void 0 : o.startsWith("occ-"), t = (n = this.endIconModel) == null ? void 0 : n.startsWith("occ-");
891
910
  (e || t) && (e && $(this.startIconModel), t && $(this.endIconModel), this._unsubOcc = _(() => this.requestUpdate()));
892
911
  }
893
912
  disconnectedCallback() {
@@ -896,46 +915,46 @@ let d = class extends J {
896
915
  }
897
916
  renderIcon(e) {
898
917
  const t = e === "start" ? this.startIconModel : this.endIconModel;
899
- if (!t) return p;
918
+ if (!t) return b;
900
919
  const o = I[t] ?? "";
901
- if (!o) return p;
902
- const i = F(o);
903
- return h`<span class="${e === "start" ? "icon-start" : "icon-end"}">${z(i)}</span>`;
920
+ if (!o) return b;
921
+ const n = z(o);
922
+ return u`<span class="${e === "start" ? "icon-start" : "icon-end"}">${F(n)}</span>`;
904
923
  }
905
924
  renderButton() {
906
925
  const e = this.text || this.textsecond;
907
- return h`
926
+ return u`
908
927
  <button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
909
- aria-describedby=${this.describedBy || p} aria-expanded=${this.ariaExpanded || p} >
910
- ${this.startIcon ? this.renderIcon("start") : p}
911
- ${e ? h`
912
- ${this.text ? h`<span class="text">${this.text}</span>` : p}
913
- ${this.textsecond ? h`<span class="text">${this.textsecond}</span>` : p}
914
- ${this.withbadge ? h`<slot></slot>` : p}
915
- ` : h`<slot></slot>`}
916
- ${this.endIcon ? this.renderIcon("end") : p}
928
+ aria-describedby=${this.describedBy || b} aria-expanded=${this.ariaExpanded || b} >
929
+ ${this.startIcon ? this.renderIcon("start") : b}
930
+ ${e ? u`
931
+ ${this.text ? u`<span class="text">${this.text}</span>` : b}
932
+ ${this.textsecond ? u`<span class="text">${this.textsecond}</span>` : b}
933
+ ${this.withbadge ? u`<slot></slot>` : b}
934
+ ` : u`<slot></slot>`}
935
+ ${this.endIcon ? this.renderIcon("end") : b}
917
936
  </button>
918
937
  `;
919
938
  }
920
939
  renderLink() {
921
940
  const e = this.text || this.textsecond;
922
- return h`
941
+ return u`
923
942
  <a
924
943
  href=${this.href}
925
- target=${this.target || p}
944
+ target=${this.target || b}
926
945
  class="button"
927
946
  ?disabled=${this.disabled}
928
- role=${this.hideRoleButton ? p : "button"}
947
+ role=${this.hideRoleButton ? b : "button"}
929
948
  @click=${this.handleClick}
930
949
  @keydown=${this.handleClick}
931
- aria-describedby=${this.describedBy || p}
950
+ aria-describedby=${this.describedBy || b}
932
951
  >
933
- ${this.startIcon ? this.renderIcon("start") : p}
934
- ${e ? h`
935
- ${this.text ? h`<span>${this.text}</span>` : p}
936
- ${this.textsecond ? h`<span>${this.textsecond}</span>` : p}
937
- ` : h`<slot></slot>`}
938
- ${this.endIcon ? this.renderIcon("end") : p}
952
+ ${this.startIcon ? this.renderIcon("start") : b}
953
+ ${e ? u`
954
+ ${this.text ? u`<span>${this.text}</span>` : b}
955
+ ${this.textsecond ? u`<span>${this.textsecond}</span>` : b}
956
+ ` : u`<slot></slot>`}
957
+ ${this.endIcon ? this.renderIcon("end") : b}
939
958
  </a>
940
959
  `;
941
960
  }
@@ -1197,68 +1216,68 @@ d.styles = C`
1197
1216
  transform: translateX(4px);
1198
1217
  }
1199
1218
  `;
1200
- u([
1201
- s()
1219
+ p([
1220
+ a()
1202
1221
  ], d.prototype, "type", 2);
1203
- u([
1204
- s()
1222
+ p([
1223
+ a()
1205
1224
  ], d.prototype, "value", 2);
1206
- u([
1207
- s({ type: String, reflect: !0 })
1225
+ p([
1226
+ a({ type: String, reflect: !0 })
1208
1227
  ], d.prototype, "variant", 2);
1209
- u([
1210
- s({ type: String })
1228
+ p([
1229
+ a({ type: String })
1211
1230
  ], d.prototype, "text", 2);
1212
- u([
1213
- s({ type: String })
1231
+ p([
1232
+ a({ type: String })
1214
1233
  ], d.prototype, "textsecond", 2);
1215
- u([
1216
- s({ type: Boolean, reflect: !0 })
1234
+ p([
1235
+ a({ type: Boolean, reflect: !0 })
1217
1236
  ], d.prototype, "fullwidth", 2);
1218
- u([
1219
- s({ type: Boolean, reflect: !0 })
1237
+ p([
1238
+ a({ type: Boolean, reflect: !0 })
1220
1239
  ], d.prototype, "disabled", 2);
1221
- u([
1222
- s({ type: String })
1240
+ p([
1241
+ a({ type: String })
1223
1242
  ], d.prototype, "startIconModel", 2);
1224
- u([
1225
- s({ type: String })
1243
+ p([
1244
+ a({ type: String })
1226
1245
  ], d.prototype, "endIconModel", 2);
1227
- u([
1228
- s({ type: Boolean, reflect: !0, attribute: "starticon" })
1246
+ p([
1247
+ a({ type: Boolean, reflect: !0, attribute: "starticon" })
1229
1248
  ], d.prototype, "startIcon", 2);
1230
- u([
1231
- s({ type: Boolean, reflect: !0, attribute: "endicon" })
1249
+ p([
1250
+ a({ type: Boolean, reflect: !0, attribute: "endicon" })
1232
1251
  ], d.prototype, "endIcon", 2);
1233
- u([
1234
- s({ type: String, attribute: "paneltarget" })
1252
+ p([
1253
+ a({ type: String, attribute: "paneltarget" })
1235
1254
  ], d.prototype, "panelTarget", 2);
1236
- u([
1237
- s({ type: String })
1255
+ p([
1256
+ a({ type: String })
1238
1257
  ], d.prototype, "href", 2);
1239
- u([
1240
- s({ type: String })
1258
+ p([
1259
+ a({ type: String })
1241
1260
  ], d.prototype, "target", 2);
1242
- u([
1243
- s({ type: Boolean, reflect: !0 })
1261
+ p([
1262
+ a({ type: Boolean, reflect: !0 })
1244
1263
  ], d.prototype, "underlined", 2);
1245
- u([
1246
- s({ type: Boolean, reflect: !0 })
1264
+ p([
1265
+ a({ type: Boolean, reflect: !0 })
1247
1266
  ], d.prototype, "withbadge", 2);
1248
- u([
1249
- s({ type: Boolean, reflect: !0 })
1267
+ p([
1268
+ a({ type: Boolean, reflect: !0 })
1250
1269
  ], d.prototype, "hideRoleButton", 2);
1251
- u([
1252
- s({ reflect: !0, attribute: "describedby" })
1270
+ p([
1271
+ a({ reflect: !0, attribute: "describedby" })
1253
1272
  ], d.prototype, "describedBy", 2);
1254
- u([
1255
- s({ reflect: !0, attribute: "expanded" })
1273
+ p([
1274
+ a({ reflect: !0, attribute: "expanded" })
1256
1275
  ], d.prototype, "ariaExpanded", 2);
1257
- d = u([
1258
- E("o-button")
1276
+ d = p([
1277
+ S("o-button")
1259
1278
  ], d);
1260
1279
  export {
1261
1280
  d as O,
1262
- a as OccitaneSidePanel,
1281
+ l as OccitaneSidePanel,
1263
1282
  lt as v
1264
1283
  };
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.1";
41
+ globalThis.__FLORID_KIT__ = "3.2.2";
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.1";
7
+ globalThis.__FLORID_KIT__ = "3.2.2";
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.1",
3
+ "version": "3.2.2",
4
4
  "main": "index.js",
5
5
  "module": "index.mjs",
6
6
  "typings": "index.d.ts",