@florid-kit/components 3.2.27 → 3.3.1

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.
@@ -29,6 +29,8 @@ export declare class OccitaneButton extends buttonBaseClass implements FormSubmi
29
29
  withbadge: boolean;
30
30
  describedBy: string | null;
31
31
  ariaExpanded: string | null;
32
+ private updateDescription;
33
+ protected updated(): void;
32
34
  private handleClick;
33
35
  protected render(): import('lit').TemplateResult<1>;
34
36
  private _unsubOcc?;
@@ -0,0 +1,21 @@
1
+ import { LitElement } from 'lit';
2
+
3
+ declare const OccitaneContentPush_base: import('../behaviors/mixin.js').MixinReturn<typeof LitElement>;
4
+ export declare class OccitaneContentPush extends OccitaneContentPush_base {
5
+ heading: string;
6
+ headingLevel: number;
7
+ description: string;
8
+ label: string;
9
+ href: string;
10
+ target: "_blank" | "_parent" | "_self" | "_top" | "";
11
+ static shadowRootOptions: ShadowRootInit;
12
+ static styles: import('lit').CSSResult;
13
+ get headingTag(): import('lit/static-html.js').StaticValue;
14
+ render(): import('lit').TemplateResult;
15
+ }
16
+ declare global {
17
+ interface HTMLElementTagNameMap {
18
+ "o-content-push": OccitaneContentPush;
19
+ }
20
+ }
21
+ export {};
@@ -0,0 +1,173 @@
1
+ import { x as $, a as b, i as x, m as w, t as S } from "../performance-mixin-D7YmSeqN.mjs";
2
+ import { n as c } from "../property-S_Y9cb04.mjs";
3
+ import { o as m } from "../if-defined-j0wE2gL4.mjs";
4
+ import "./link.mjs";
5
+ /**
6
+ * @license
7
+ * Copyright 2020 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ */
10
+ const y = Symbol.for(""), _ = (t) => {
11
+ if ((t == null ? void 0 : t.r) === y) return t == null ? void 0 : t._$litStatic$;
12
+ }, O = (t) => ({ _$litStatic$: t, r: y }), u = /* @__PURE__ */ new Map(), z = (t) => (e, ...r) => {
13
+ const i = r.length;
14
+ let a, l;
15
+ const n = [], g = [];
16
+ let p, s = 0, f = !1;
17
+ for (; s < i; ) {
18
+ for (p = e[s]; s < i && (l = r[s], (a = _(l)) !== void 0); ) p += a + e[++s], f = !0;
19
+ s !== i && g.push(l), n.push(p), s++;
20
+ }
21
+ if (s === i && n.push(e[i]), f) {
22
+ const v = n.join("$$lit$$");
23
+ (e = u.get(v)) === void 0 && (n.raw = n, u.set(v, e = n)), r = g;
24
+ }
25
+ return t(e, ...r);
26
+ }, d = z($);
27
+ var P = Object.defineProperty, k = Object.getOwnPropertyDescriptor, h = (t, e, r, i) => {
28
+ for (var a = i > 1 ? void 0 : i ? k(e, r) : e, l = t.length - 1, n; l >= 0; l--)
29
+ (n = t[l]) && (a = (i ? n(e, r, a) : n(a)) || a);
30
+ return i && a && P(e, r, a), a;
31
+ };
32
+ let o = class extends w(b) {
33
+ constructor() {
34
+ super(...arguments), this.heading = "", this.headingLevel = 3, this.description = "", this.label = "", this.href = "", this.target = "";
35
+ }
36
+ // h1 belongs to the page, so the push heading is h2..h6.
37
+ get headingTag() {
38
+ const t = Math.min(Math.max(Math.round(this.headingLevel) || 3, 2), 6);
39
+ return O(`h${t}`);
40
+ }
41
+ render() {
42
+ const t = this.headingTag;
43
+ return d`
44
+ <slot name="media"></slot>
45
+ <div class="content">
46
+ ${this.heading ? d`<${t} id="heading" class="heading" part="heading">${this.heading}</${t}>` : ""}
47
+ ${this.description ? d`<p class="description" part="description">${this.description}</p>` : ""}
48
+ ${this.href && this.label ? d`<a
49
+ class="cta"
50
+ href="${this.href}"
51
+ target="${m(this.target || void 0)}"
52
+ aria-describedby="${m(this.heading ? "heading" : void 0)}"
53
+ >
54
+ <o-link inverse endIcon>${this.label}</o-link>
55
+ </a>` : ""}
56
+ </div>
57
+ `;
58
+ }
59
+ };
60
+ o.shadowRootOptions = {
61
+ ...b.shadowRootOptions,
62
+ delegatesFocus: !0
63
+ };
64
+ o.styles = x`
65
+ :host {
66
+ position: relative;
67
+ display: grid;
68
+ grid-template: minmax(0, 1fr) / minmax(0, 1fr);
69
+ aspect-ratio: 9 / 16;
70
+ overflow: hidden;
71
+ isolation: isolate;
72
+ outline: none !important;
73
+ }
74
+
75
+ /* Media and text share the same grid cell: the text sits over the image. */
76
+ ::slotted([slot="media"]),
77
+ .content {
78
+ grid-area: 1 / 1;
79
+ }
80
+
81
+ ::slotted([slot="media"]) {
82
+ display: block;
83
+ width: 100%;
84
+ height: 100%;
85
+ object-fit: cover;
86
+ }
87
+
88
+ .content {
89
+ z-index: 1;
90
+ align-self: end;
91
+ display: flex;
92
+ flex-direction: column;
93
+ align-items: flex-start;
94
+ gap: var(--spacing-l);
95
+ padding: var(--spacing-6-xl) var(--spacing-xl) var(--spacing-3-xl);
96
+ background: linear-gradient(
97
+ to bottom,
98
+ rgba(52, 41, 44, 0) 0%,
99
+ rgba(52, 41, 44, 0.65) 17.975%
100
+ );
101
+ color: var(--color-content-body-inverse);
102
+ word-break: break-word;
103
+ }
104
+
105
+ .heading {
106
+ margin: 0;
107
+ font: var(--font-weight-500) var(--font-size-450) / var(--line-height-320)
108
+ var(--font-family-loccitane-serif-condensed);
109
+ letter-spacing: var(--letter-spacing-absolute);
110
+ text-transform: uppercase;
111
+ }
112
+
113
+ .description {
114
+ margin: 0;
115
+ font: var(--font-weight-400) var(--font-size-250) / var(--line-height-240)
116
+ var(--font-family-loccitane-serif);
117
+ letter-spacing: var(--letter-spacing-000);
118
+ }
119
+
120
+ @media (min-width: 1025px) {
121
+ .description {
122
+ font-size: var(--font-size-300);
123
+ line-height: var(--line-height-280);
124
+ }
125
+ }
126
+
127
+ .cta {
128
+ color: inherit;
129
+ text-decoration: none;
130
+ }
131
+
132
+ /* Stretched link: the whole push is clickable, the CTA stays the only tab stop. */
133
+ .cta::after {
134
+ content: "";
135
+ position: absolute;
136
+ inset: 0;
137
+ }
138
+
139
+ .cta o-link {
140
+ position: relative;
141
+ z-index: 1;
142
+ }
143
+
144
+ /* Light ring (text color): the CTA always sits on the dark gradient. */
145
+ .cta:focus-visible {
146
+ outline: 1px dashed currentColor;
147
+ outline-offset: 2px;
148
+ }
149
+ `;
150
+ h([
151
+ c({ type: String })
152
+ ], o.prototype, "heading", 2);
153
+ h([
154
+ c({ type: Number })
155
+ ], o.prototype, "headingLevel", 2);
156
+ h([
157
+ c({ type: String })
158
+ ], o.prototype, "description", 2);
159
+ h([
160
+ c({ type: String })
161
+ ], o.prototype, "label", 2);
162
+ h([
163
+ c({ type: String })
164
+ ], o.prototype, "href", 2);
165
+ h([
166
+ c({ type: String })
167
+ ], o.prototype, "target", 2);
168
+ o = h([
169
+ S("o-content-push")
170
+ ], o);
171
+ export {
172
+ o as OccitaneContentPush
173
+ };
@@ -1,4 +1,4 @@
1
- import { E as u, i as C, a as w, m as E, x as p, t as S } from "../performance-mixin-D7YmSeqN.mjs";
1
+ import { E as b, i as E, a as w, m as C, x as u, t as S } from "../performance-mixin-D7YmSeqN.mjs";
2
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 D, m as P } from "../element-internals-Dw7LndlH.mjs";
@@ -77,7 +77,7 @@ function M(e, t = !1, o = 0) {
77
77
  const K = (e) => {
78
78
  e.type == O.CHILD && (e._$AP ?? (e._$AP = M), e._$AQ ?? (e._$AQ = H));
79
79
  };
80
- class j extends L {
80
+ class N extends L {
81
81
  constructor() {
82
82
  super(...arguments), this._$AN = void 0;
83
83
  }
@@ -100,12 +100,12 @@ class j extends L {
100
100
  reconnected() {
101
101
  }
102
102
  }
103
- class N extends j {
103
+ class j extends N {
104
104
  constructor() {
105
105
  super(...arguments), this.prevData = {};
106
106
  }
107
107
  render(t) {
108
- return u;
108
+ return b;
109
109
  }
110
110
  update(t, [o]) {
111
111
  var n;
@@ -127,7 +127,7 @@ class N extends j {
127
127
  (!t || !(i in t) && n[i] === o[i]) && (n[i] = void 0);
128
128
  }
129
129
  }
130
- class V extends N {
130
+ class V extends j {
131
131
  constructor() {
132
132
  super(...arguments), this.eventData = {};
133
133
  }
@@ -226,7 +226,7 @@ var U = Object.defineProperty, W = Object.getOwnPropertyDescriptor, c = (e, t, o
226
226
  (s = e[r]) && (i = (n ? s(t, o, i) : s(i)) || i);
227
227
  return n && i && U(t, o, i), i;
228
228
  };
229
- let l = class extends E(w) {
229
+ let l = class extends C(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.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
232
  var o, n;
@@ -456,9 +456,9 @@ let l = class extends E(w) {
456
456
  }, 500);
457
457
  }
458
458
  render() {
459
- const e = this.showHeader ? p`
459
+ const e = this.showHeader ? u`
460
460
  <div tabindex="-1" part="header" class="header ${this.showDetail ? "detail-view-header" : ""}">
461
- ${this.showHeaderStartIcon ? p`
461
+ ${this.showHeaderStartIcon ? u`
462
462
  <o-icon-button
463
463
  icon="arrowLeft"
464
464
  size="small"
@@ -488,9 +488,9 @@ let l = class extends E(w) {
488
488
  aria-describedby="panel-title"
489
489
  ></o-icon-button>
490
490
  </div>
491
- ` : null, t = this.showFooter ? p`
491
+ ` : null, t = this.showFooter ? u`
492
492
  <div class="footer" part="footer">
493
- ${this.firstButtonVariant && this.firstButtonLabel ? p`
493
+ ${this.firstButtonVariant && this.firstButtonLabel ? u`
494
494
  <o-button
495
495
  .variant=${this.firstButtonVariant}
496
496
  @click=${this.handleFirstClick}
@@ -500,7 +500,7 @@ let l = class extends E(w) {
500
500
  ${this.firstButtonLabel}
501
501
  </o-button>
502
502
  ` : null}
503
- ${this.secondButtonVariant && this.secondButtonLabel ? p`
503
+ ${this.secondButtonVariant && this.secondButtonLabel ? u`
504
504
  <o-button
505
505
  .variant=${this.secondButtonVariant}
506
506
  @click=${this.handleSecondClick}
@@ -512,14 +512,14 @@ let l = class extends E(w) {
512
512
  ` : null}
513
513
  </div>
514
514
  ` : null;
515
- return p`
515
+ return u`
516
516
  <div class="overlay" style="z-index: ${this.zIndex}" @click=${this.handleClosePanel}></div>
517
517
  <div
518
518
  class="panel"
519
519
  role="dialog"
520
520
  aria-modal="true"
521
- aria-label="${this.labelAriaDialogPanel || u}"
522
- aria-labelledby="${this.labelAriaDialogPanel ? u : "panel-title"}"
521
+ aria-label="${this.labelAriaDialogPanel || b}"
522
+ aria-labelledby="${this.labelAriaDialogPanel ? b : "panel-title"}"
523
523
  style="z-index: ${this.zIndex + 1}"
524
524
  tabindex="-1"
525
525
  >
@@ -528,7 +528,7 @@ let l = class extends E(w) {
528
528
 
529
529
  <div part="content" class="content ${this.isHidingDetail ? "slide-out-right" : ""} ${this.showDetail ? "with-detail" : ""}">
530
530
 
531
- ${this.showDetail ? p`
531
+ ${this.showDetail ? u`
532
532
  <div class="detail-view">
533
533
  ${e}
534
534
  <div class="detail-content">
@@ -537,7 +537,7 @@ let l = class extends E(w) {
537
537
  </div>
538
538
  </div>
539
539
  </div>
540
- ` : p`<slot></slot>`}
540
+ ` : u`<slot></slot>`}
541
541
  </div>
542
542
 
543
543
  ${this.stickyFooter ? null : t}
@@ -547,7 +547,7 @@ let l = class extends E(w) {
547
547
  `;
548
548
  }
549
549
  };
550
- l.styles = C`
550
+ l.styles = E`
551
551
  :host {
552
552
  --z-overlay: 99;
553
553
  --z-panel: 100;
@@ -872,15 +872,20 @@ c([
872
872
  l = c([
873
873
  S("o-side-panel")
874
874
  ], l);
875
- var G = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, b = (e, t, o, n) => {
875
+ var G = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, p = (e, t, o, n) => {
876
876
  for (var i = n > 1 ? void 0 : n ? Q(t, o) : t, r = e.length - 1, s; r >= 0; r--)
877
877
  (s = e[r]) && (i = (n ? s(t, o, i) : s(i)) || i);
878
878
  return n && i && G(t, o, i), i;
879
879
  };
880
- const J = E(P(w)), lt = ["primary", "secondary", "ghost", "tertiary", "link"];
880
+ const J = C(P(w)), lt = ["primary", "secondary", "ghost", "tertiary", "link"];
881
881
  let d = class extends J {
882
882
  constructor() {
883
- 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.ctatitle = "", this.underlined = !1, this.withbadge = !1, this.describedBy = null, this.ariaExpanded = null;
883
+ 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.ctatitle = "", this.underlined = !1, this.withbadge = !1, this.describedBy = null, this.ariaExpanded = null, this.updateDescription = () => {
884
+ const e = this.renderRoot.querySelector(".button"), t = this.describedBy || this.getAttribute("aria-describedby");
885
+ if (!e || !t) return;
886
+ const o = this.getRootNode();
887
+ e.ariaDescribedByElements = t.split(/\s+/).map((n) => n && o.getElementById(n)).filter((n) => !!n);
888
+ };
884
889
  }
885
890
  get name() {
886
891
  return this.getAttribute("name") ?? "";
@@ -891,6 +896,9 @@ let d = class extends J {
891
896
  get form() {
892
897
  return this[D].form;
893
898
  }
899
+ updated() {
900
+ this.updateDescription();
901
+ }
894
902
  handleClick(e) {
895
903
  if (!(e instanceof KeyboardEvent && !["Enter", " "].includes(e.key)) && this.panelTarget) {
896
904
  const t = document.getElementById(this.panelTarget);
@@ -902,64 +910,63 @@ let d = class extends J {
902
910
  }
903
911
  connectedCallback() {
904
912
  var o, n;
905
- super.connectedCallback();
913
+ super.connectedCallback(), this.addEventListener("focusin", this.updateDescription);
906
914
  const e = (o = this.startIconModel) == null ? void 0 : o.startsWith("occ-"), t = (n = this.endIconModel) == null ? void 0 : n.startsWith("occ-");
907
915
  (e || t) && (e && $(this.startIconModel), t && $(this.endIconModel), this._unsubOcc = _(() => this.requestUpdate()));
908
916
  }
909
917
  disconnectedCallback() {
910
918
  var e;
911
- (e = this._unsubOcc) == null || e.call(this), super.disconnectedCallback();
919
+ this.removeEventListener("focusin", this.updateDescription), (e = this._unsubOcc) == null || e.call(this), super.disconnectedCallback();
912
920
  }
913
921
  renderIcon(e) {
914
922
  const t = e === "start" ? this.startIconModel : this.endIconModel;
915
- if (!t) return u;
923
+ if (!t) return b;
916
924
  const o = I[t] ?? "";
917
- if (!o) return u;
925
+ if (!o) return b;
918
926
  const n = z(o);
919
- return p`<span class="${e === "start" ? "icon-start" : "icon-end"}">${F(n)}</span>`;
927
+ return u`<span class="${e === "start" ? "icon-start" : "icon-end"}">${F(n)}</span>`;
920
928
  }
921
929
  renderButton() {
922
930
  const e = this.text || this.textsecond;
923
- return p`
931
+ return u`
924
932
  <button type=${this.type} class="button" ?disabled=${this.disabled} @click=${this.handleClick} @keydown=${this.handleClick}
925
- title=${this.ctatitle || u}
926
- aria-describedby=${this.describedBy || u} aria-expanded=${this.ariaExpanded || u} >
927
- ${this.startIcon ? this.renderIcon("start") : u}
928
- ${e ? p`
929
- ${this.text ? p`<span class="text">${this.text}</span>` : u}
930
- ${this.textsecond ? p`<span class="text">${this.textsecond}</span>` : u}
931
- ${this.withbadge ? p`<slot></slot>` : u}
932
- ` : p`<slot></slot>`}
933
- ${this.endIcon ? this.renderIcon("end") : u}
933
+ title=${this.ctatitle || b}
934
+ aria-expanded=${this.ariaExpanded || b} >
935
+ ${this.startIcon ? this.renderIcon("start") : b}
936
+ ${e ? u`
937
+ ${this.text ? u`<span class="text">${this.text}</span>` : b}
938
+ ${this.textsecond ? u`<span class="text">${this.textsecond}</span>` : b}
939
+ ${this.withbadge ? u`<slot></slot>` : b}
940
+ ` : u`<slot></slot>`}
941
+ ${this.endIcon ? this.renderIcon("end") : b}
934
942
  </button>
935
943
  `;
936
944
  }
937
945
  renderLink() {
938
946
  const e = this.text || this.textsecond;
939
- return p`
947
+ return u`
940
948
  <a
941
949
  href=${this.href}
942
- target=${this.target || u}
943
- title=${this.ctatitle || u}
950
+ target=${this.target || b}
951
+ title=${this.ctatitle || b}
944
952
  class="button"
945
953
  ?disabled=${this.disabled}
946
954
  @click=${this.handleClick}
947
955
  @keydown=${this.handleClick}
948
- aria-describedby=${this.describedBy || u}
949
956
  >
950
- ${this.startIcon ? this.renderIcon("start") : u}
951
- ${e ? p`
952
- ${this.text ? p`<span>${this.text}</span>` : u}
953
- ${this.textsecond ? p`<span>${this.textsecond}</span>` : u}
954
- ` : p`<slot></slot>`}
955
- ${this.endIcon ? this.renderIcon("end") : u}
957
+ ${this.startIcon ? this.renderIcon("start") : b}
958
+ ${e ? u`
959
+ ${this.text ? u`<span>${this.text}</span>` : b}
960
+ ${this.textsecond ? u`<span>${this.textsecond}</span>` : b}
961
+ ` : u`<slot></slot>`}
962
+ ${this.endIcon ? this.renderIcon("end") : b}
956
963
  </a>
957
964
  `;
958
965
  }
959
966
  };
960
967
  q(d);
961
968
  d.formAssociated = !0;
962
- d.styles = C`
969
+ d.styles = E`
963
970
  :host {
964
971
  --button-border: transparent;
965
972
  --badge-outer-width: 19px;
@@ -1214,64 +1221,64 @@ d.styles = C`
1214
1221
  transform: translateX(4px);
1215
1222
  }
1216
1223
  `;
1217
- b([
1224
+ p([
1218
1225
  a()
1219
1226
  ], d.prototype, "type", 2);
1220
- b([
1227
+ p([
1221
1228
  a()
1222
1229
  ], d.prototype, "value", 2);
1223
- b([
1230
+ p([
1224
1231
  a({ type: String, reflect: !0 })
1225
1232
  ], d.prototype, "variant", 2);
1226
- b([
1233
+ p([
1227
1234
  a({ type: String })
1228
1235
  ], d.prototype, "text", 2);
1229
- b([
1236
+ p([
1230
1237
  a({ type: String })
1231
1238
  ], d.prototype, "textsecond", 2);
1232
- b([
1239
+ p([
1233
1240
  a({ type: Boolean, reflect: !0 })
1234
1241
  ], d.prototype, "fullwidth", 2);
1235
- b([
1242
+ p([
1236
1243
  a({ type: Boolean, reflect: !0 })
1237
1244
  ], d.prototype, "disabled", 2);
1238
- b([
1245
+ p([
1239
1246
  a({ type: String })
1240
1247
  ], d.prototype, "startIconModel", 2);
1241
- b([
1248
+ p([
1242
1249
  a({ type: String })
1243
1250
  ], d.prototype, "endIconModel", 2);
1244
- b([
1251
+ p([
1245
1252
  a({ type: Boolean, reflect: !0, attribute: "starticon" })
1246
1253
  ], d.prototype, "startIcon", 2);
1247
- b([
1254
+ p([
1248
1255
  a({ type: Boolean, reflect: !0, attribute: "endicon" })
1249
1256
  ], d.prototype, "endIcon", 2);
1250
- b([
1257
+ p([
1251
1258
  a({ type: String, attribute: "paneltarget" })
1252
1259
  ], d.prototype, "panelTarget", 2);
1253
- b([
1260
+ p([
1254
1261
  a({ type: String })
1255
1262
  ], d.prototype, "href", 2);
1256
- b([
1263
+ p([
1257
1264
  a({ type: String })
1258
1265
  ], d.prototype, "target", 2);
1259
- b([
1266
+ p([
1260
1267
  a({ type: String })
1261
1268
  ], d.prototype, "ctatitle", 2);
1262
- b([
1269
+ p([
1263
1270
  a({ type: Boolean, reflect: !0 })
1264
1271
  ], d.prototype, "underlined", 2);
1265
- b([
1272
+ p([
1266
1273
  a({ type: Boolean, reflect: !0 })
1267
1274
  ], d.prototype, "withbadge", 2);
1268
- b([
1275
+ p([
1269
1276
  a({ reflect: !0, attribute: "describedby" })
1270
1277
  ], d.prototype, "describedBy", 2);
1271
- b([
1278
+ p([
1272
1279
  a({ reflect: !0, attribute: "expanded" })
1273
1280
  ], d.prototype, "ariaExpanded", 2);
1274
- d = b([
1281
+ d = p([
1275
1282
  S("o-button")
1276
1283
  ], d);
1277
1284
  export {
package/index.mjs CHANGED
@@ -38,4 +38,5 @@ 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.27";
41
+ import "./components/content-push.mjs";
42
+ globalThis.__FLORID_KIT__ = "3.3.1";
package/loader.mjs CHANGED
@@ -4,13 +4,14 @@ 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.27";
7
+ globalThis.__FLORID_KIT__ = "3.3.1";
8
8
  const i = {
9
9
  "o-accordion": () => import("./components/accordion.mjs"),
10
10
  "o-accordion-group": () => import("./components/accordion-group.mjs"),
11
11
  "o-checkbox": () => import("./components/checkbox.mjs"),
12
12
  "o-chip": () => import("./components/chip.mjs"),
13
13
  "o-chipset": () => import("./components/chipset.mjs"),
14
+ "o-content-push": () => import("./components/content-push.mjs"),
14
15
  "o-dots": () => import("./components/dots.mjs"),
15
16
  "o-dropdown": () => import("./components/dropdown.mjs"),
16
17
  "o-dropdown-variant": () => import("./components/dropdown-variant.mjs"),
@@ -44,22 +45,22 @@ const i = {
44
45
  }, a = document.createElement("style");
45
46
  a.textContent = `${Object.keys(i).join(":not(:defined),")}:not(:defined){opacity:0;max-height:0;overflow:hidden}`;
46
47
  document.head.appendChild(a);
47
- const m = /* @__PURE__ */ new Set();
48
- function p(e = document) {
48
+ const p = /* @__PURE__ */ new Set();
49
+ function m(e = document) {
49
50
  const o = /* @__PURE__ */ new Set();
50
51
  e.querySelectorAll("*").forEach((r) => {
51
52
  const n = r.tagName.toLowerCase();
52
- i[n] && !m.has(n) && o.add(n);
53
+ i[n] && !p.has(n) && o.add(n);
53
54
  });
54
55
  const t = [];
55
56
  for (const r of o)
56
- m.add(r), t.push(i[r]());
57
+ p.add(r), t.push(i[r]());
57
58
  return Promise.allSettled(t);
58
59
  }
59
- document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", () => p()) : p();
60
+ document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", () => m()) : m();
60
61
  function d(e) {
61
62
  const o = e.tagName.toLowerCase();
62
- if (i[o] && !m.has(o)) return !0;
63
+ if (i[o] && !p.has(o)) return !0;
63
64
  for (const t of Array.from(e.children))
64
65
  if (d(t)) return !0;
65
66
  return !1;
@@ -68,7 +69,7 @@ const s = new MutationObserver((e) => {
68
69
  for (const o of e)
69
70
  for (const t of Array.from(o.addedNodes))
70
71
  if (t instanceof Element && d(t)) {
71
- p();
72
+ m();
72
73
  return;
73
74
  }
74
75
  });
@@ -77,5 +78,5 @@ s.observe(document.documentElement, {
77
78
  subtree: !0
78
79
  });
79
80
  export {
80
- p as loadComponents
81
+ m as loadComponents
81
82
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@florid-kit/components",
3
- "version": "3.2.27",
3
+ "version": "3.3.1",
4
4
  "main": "index.js",
5
5
  "module": "index.mjs",
6
6
  "typings": "index.d.ts",