@florid-kit/components 3.1.14 → 3.2.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.
@@ -239,6 +239,16 @@ export declare const occIconRegistry: {
239
239
  readonly medium: string;
240
240
  readonly large: string;
241
241
  };
242
+ readonly "occ-sound-off": {
243
+ readonly small: string;
244
+ readonly medium: string;
245
+ readonly large: string;
246
+ };
247
+ readonly "occ-sound-on": {
248
+ readonly small: string;
249
+ readonly medium: string;
250
+ readonly large: string;
251
+ };
242
252
  readonly "occ-search": {
243
253
  readonly small: string;
244
254
  readonly medium: string;
@@ -0,0 +1,5 @@
1
+ export declare const variants: {
2
+ small: string;
3
+ medium: string;
4
+ large: string;
5
+ };
@@ -0,0 +1,5 @@
1
+ export declare const variants: {
2
+ small: string;
3
+ medium: string;
4
+ large: string;
5
+ };
@@ -16,14 +16,23 @@ export declare class OccitaneIconButton extends OccitaneIconButton_base {
16
16
  icon: IconName | "";
17
17
  disabled: boolean;
18
18
  highlight: boolean;
19
+ /**
20
+ * Optional toggle state. When defined, it is forwarded to the native button
21
+ * as `aria-pressed`; leave it undefined for ordinary action buttons.
22
+ */
23
+ pressed: boolean | undefined;
19
24
  showSrLabel: boolean;
20
25
  srLabel: string;
26
+ url: string;
27
+ urlTitle: string;
28
+ preventDefault: boolean;
21
29
  private _unsubOcc?;
22
30
  private _clearOccSubscription;
23
31
  private _syncOccSubscription;
24
32
  connectedCallback(): void;
25
33
  disconnectedCallback(): void;
26
34
  protected updated(changedProperties: Map<string, unknown>): void;
35
+ protected handleLinkClick(ev: Event): void;
27
36
  protected render(): typeof nothing | import('lit').TemplateResult<1>;
28
37
  }
29
38
  declare global {
@@ -1,18 +1,18 @@
1
- import { i as u, m as p, E as g, x as a, a as d, t as v } from "../performance-mixin-D7YmSeqN.mjs";
1
+ import { i as p, m as d, E as a, x as l, a as v, t as y } from "../performance-mixin-D7YmSeqN.mjs";
2
2
  import { n } from "../property-S_Y9cb04.mjs";
3
- import { o as m } from "../if-defined-j0wE2gL4.mjs";
4
- import { r as b, o as y } from "../icons-registry.mjs";
5
- import { c as x } from "../svg-utils-DOL__czZ.mjs";
6
- import { f, i as w, s as k } from "../css-C8WrrxT-.mjs";
7
- var $ = Object.defineProperty, S = Object.getOwnPropertyDescriptor, i = (t, s, e, c) => {
8
- for (var r = c > 1 ? void 0 : c ? S(s, e) : s, l = t.length - 1, h; l >= 0; l--)
9
- (h = t[l]) && (r = (c ? h(s, e, r) : h(r)) || r);
10
- return c && r && $(s, e, r), r;
3
+ import { o as u } from "../if-defined-j0wE2gL4.mjs";
4
+ import { r as g, o as m } from "../icons-registry.mjs";
5
+ import { c as f } from "../svg-utils-DOL__czZ.mjs";
6
+ import { f as x, i as w, s as k } from "../css-C8WrrxT-.mjs";
7
+ var $ = Object.defineProperty, S = Object.getOwnPropertyDescriptor, i = (t, e, r, c) => {
8
+ for (var s = c > 1 ? void 0 : c ? S(e, r) : e, h = t.length - 1, b; h >= 0; h--)
9
+ (b = t[h]) && (s = (c ? b(e, r, s) : b(s)) || s);
10
+ return c && s && $(e, r, s), s;
11
11
  };
12
12
  const z = (t) => t.startsWith("occ-");
13
- let o = class extends p(d) {
13
+ let o = class extends d(v) {
14
14
  constructor() {
15
- super(...arguments), this.bgstyle = "background-light", this.size = "medium", this.status = "empty", this.type = "button", this.strokewidth = "1", this.icon = "", this.disabled = !1, this.highlight = !1, this.showSrLabel = !1, this.srLabel = "";
15
+ super(...arguments), this.bgstyle = "background-light", this.size = "medium", this.status = "empty", this.type = "button", this.strokewidth = "1", this.icon = "", this.disabled = !1, this.highlight = !1, this.pressed = void 0, this.showSrLabel = !1, this.srLabel = "", this.url = "", this.urlTitle = "", this.preventDefault = !1;
16
16
  }
17
17
  _clearOccSubscription() {
18
18
  var t;
@@ -24,14 +24,14 @@ let o = class extends p(d) {
24
24
  this._clearOccSubscription();
25
25
  return;
26
26
  }
27
- const { svg: s } = b(t, { size: this.size, bgstyle: this.bgstyle });
28
- if (s) {
27
+ const { svg: e } = g(t, { size: this.size, bgstyle: this.bgstyle });
28
+ if (e) {
29
29
  this._clearOccSubscription();
30
30
  return;
31
31
  }
32
- this._unsubOcc || (this._unsubOcc = y(() => {
33
- const { svg: e } = b(t, { size: this.size, bgstyle: this.bgstyle });
34
- e && (this._clearOccSubscription(), this.requestUpdate());
32
+ this._unsubOcc || (this._unsubOcc = m(() => {
33
+ const { svg: r } = g(t, { size: this.size, bgstyle: this.bgstyle });
34
+ r && (this._clearOccSubscription(), this.requestUpdate());
35
35
  }));
36
36
  }
37
37
  connectedCallback() {
@@ -43,34 +43,51 @@ let o = class extends p(d) {
43
43
  updated(t) {
44
44
  super.updated(t), this.style.setProperty("--icon-stroke-width", this.strokewidth), t.has("icon") && this._syncOccSubscription();
45
45
  }
46
+ handleLinkClick(t) {
47
+ this.preventDefault && this.url && this.url.startsWith("#") && t.preventDefault();
48
+ }
46
49
  render() {
47
50
  if (!this.icon)
48
- return g;
49
- const t = x(this.icon, this.size, this.bgstyle);
50
- if (!t) return g;
51
- const s = `icon-${this.icon}`, e = this.showSrLabel ? a`<span class="sr-only">${this.srLabel}</span>` : null, c = this.showSrLabel ? "" : "icon";
52
- return a`
53
- ${this.type === "span" ? a`
54
- <span part="icon-button" class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${s} ${this.highlight ? "highlight" : ""}" ?disabled="${this.disabled}">
51
+ return a;
52
+ const t = f(this.icon, this.size, this.bgstyle);
53
+ if (!t) return a;
54
+ const e = `icon-${this.icon}`, r = this.showSrLabel ? l`<span class="sr-only">${this.srLabel}</span>` : null, c = this.showSrLabel ? "" : "icon";
55
+ let s = l``;
56
+ return this.url && this.url.length > 0 ? s = l`
57
+ <a
58
+ href=${this.url}
59
+ aria-label=${u(c) || a}
60
+ aria-describedby=${this.getAttribute("aria-describedby") || a}
61
+ ?disabled="${this.disabled}"
62
+ title=${this.urlTitle || a}
63
+ @click=${this.handleLinkClick}
64
+ >
65
+ <span part="icon-button" class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${e} ${this.highlight ? "highlight" : ""}" ?disabled="${this.disabled}">
66
+ ${t}
67
+ </span>
68
+ ${r}
69
+ </a>
70
+ ` : s = this.type === "span" ? l`
71
+ <span part="icon-button" class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${e} ${this.highlight ? "highlight" : ""}" ?disabled="${this.disabled}">
55
72
  ${t}
56
73
  </span>
57
- ` : a`
74
+ ` : l`
58
75
  <button
59
76
  type="button"
60
- aria-label=${m(c)}
61
- aria-describedby=${this.getAttribute("aria-describedby") || g}
77
+ aria-label=${u(c)}
78
+ aria-pressed=${u(this.pressed === void 0 ? void 0 : String(this.pressed))}
79
+ aria-describedby=${this.getAttribute("aria-describedby") || a}
62
80
  part="icon-button"
63
- class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${s} ${this.highlight ? "highlight" : ""}"
81
+ class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${e} ${this.highlight ? "highlight" : ""}"
64
82
  ?disabled="${this.disabled}"
65
83
  >
66
84
  ${t}
67
- ${e}
85
+ ${r}
68
86
  </button>
69
- `}
70
- `;
87
+ `, s;
71
88
  }
72
89
  };
73
- o.styles = u`
90
+ o.styles = p`
74
91
  :host {
75
92
  display: inline-flex;
76
93
  justify-content: center;
@@ -300,7 +317,7 @@ o.styles = u`
300
317
 
301
318
  .icon-button:focus-visible,
302
319
  :host(.a--tabfocus) .icon-button {
303
- ${f}
320
+ ${x}
304
321
  }
305
322
 
306
323
  :host(.go-to-top) .icon-button:focus-visible {
@@ -351,14 +368,26 @@ i([
351
368
  i([
352
369
  n({ type: Boolean, reflect: !0 })
353
370
  ], o.prototype, "highlight", 2);
371
+ i([
372
+ n({ type: Boolean })
373
+ ], o.prototype, "pressed", 2);
354
374
  i([
355
375
  n({ type: Boolean })
356
376
  ], o.prototype, "showSrLabel", 2);
357
377
  i([
358
378
  n({ type: String })
359
379
  ], o.prototype, "srLabel", 2);
380
+ i([
381
+ n({ type: String, reflect: !0 })
382
+ ], o.prototype, "url", 2);
383
+ i([
384
+ n({ type: String })
385
+ ], o.prototype, "urlTitle", 2);
386
+ i([
387
+ n({ type: Boolean, reflect: !0, attribute: "prevent-default" })
388
+ ], o.prototype, "preventDefault", 2);
360
389
  o = i([
361
- v("o-icon-button")
390
+ y("o-icon-button")
362
391
  ], o);
363
392
  export {
364
393
  o as OccitaneIconButton
@@ -0,0 +1,35 @@
1
+ import { LitElement } from 'lit';
2
+ import { IconBgStyle, IconLogicalSize } from '../assets/icons/icons';
3
+
4
+ declare const OccitaneSoundButton_base: import('../behaviors/mixin.js').MixinReturn<typeof LitElement>;
5
+ /**
6
+ * A button that toggles audio between its audible and muted states.
7
+ *
8
+ * `muted` is the source of truth: `false` renders the sound-on icon and `true`
9
+ * renders the sound-off icon. A user action dispatches a `sound-toggle` event
10
+ * after the property has been updated.
11
+ */
12
+ export declare class OccitaneSoundButton extends OccitaneSoundButton_base {
13
+ /** Whether the audio is muted. Defaults to `false` (sound on). */
14
+ muted: boolean;
15
+ /** Matches the standard icon-button size scale. */
16
+ size: IconLogicalSize;
17
+ /** Matches the standard icon-button background styles. */
18
+ bgstyle: IconBgStyle;
19
+ /** Disables the control and prevents user-initiated toggles. */
20
+ disabled: boolean;
21
+ /** Accessible action announced while sound is currently on. */
22
+ muteLabel: string;
23
+ /** Accessible action announced while sound is currently muted. */
24
+ unmuteLabel: string;
25
+ private get icon();
26
+ private get accessibleLabel();
27
+ private toggleSound;
28
+ protected render(): import('lit').TemplateResult<1>;
29
+ }
30
+ declare global {
31
+ interface HTMLElementTagNameMap {
32
+ "o-sound-button": OccitaneSoundButton;
33
+ }
34
+ }
35
+ export {};
@@ -0,0 +1,69 @@
1
+ import { m as a, a as p, x as b, t as c } from "../performance-mixin-D7YmSeqN.mjs";
2
+ import { n as o } from "../property-S_Y9cb04.mjs";
3
+ import "./icon-button.mjs";
4
+ var m = Object.defineProperty, h = Object.getOwnPropertyDescriptor, s = (d, i, u, r) => {
5
+ for (var e = r > 1 ? void 0 : r ? h(i, u) : i, n = d.length - 1, l; n >= 0; n--)
6
+ (l = d[n]) && (e = (r ? l(i, u, e) : l(e)) || e);
7
+ return r && e && m(i, u, e), e;
8
+ };
9
+ let t = class extends a(p) {
10
+ constructor() {
11
+ super(...arguments), this.muted = !1, this.size = "medium", this.bgstyle = "background-light", this.disabled = !1, this.muteLabel = "Mute sound", this.unmuteLabel = "Unmute sound";
12
+ }
13
+ get icon() {
14
+ return this.muted ? "occ-sound-off" : "occ-sound-on";
15
+ }
16
+ get accessibleLabel() {
17
+ return this.muted ? this.unmuteLabel : this.muteLabel;
18
+ }
19
+ toggleSound() {
20
+ this.disabled || (this.muted = !this.muted, this.dispatchEvent(
21
+ new CustomEvent("sound-toggle", {
22
+ detail: {
23
+ muted: this.muted,
24
+ sound: this.muted ? "off" : "on"
25
+ },
26
+ bubbles: !0,
27
+ composed: !0
28
+ })
29
+ ));
30
+ }
31
+ render() {
32
+ return b`
33
+ <o-icon-button
34
+ .icon=${this.icon}
35
+ .size=${this.size}
36
+ .bgstyle=${this.bgstyle}
37
+ .disabled=${this.disabled}
38
+ .pressed=${this.muted}
39
+ .showSrLabel=${!0}
40
+ .srLabel=${this.accessibleLabel}
41
+ @click=${this.toggleSound}
42
+ ></o-icon-button>
43
+ `;
44
+ }
45
+ };
46
+ s([
47
+ o({ type: Boolean, reflect: !0 })
48
+ ], t.prototype, "muted", 2);
49
+ s([
50
+ o({ type: String, reflect: !0 })
51
+ ], t.prototype, "size", 2);
52
+ s([
53
+ o({ type: String, reflect: !0 })
54
+ ], t.prototype, "bgstyle", 2);
55
+ s([
56
+ o({ type: Boolean, reflect: !0 })
57
+ ], t.prototype, "disabled", 2);
58
+ s([
59
+ o({ type: String })
60
+ ], t.prototype, "muteLabel", 2);
61
+ s([
62
+ o({ type: String })
63
+ ], t.prototype, "unmuteLabel", 2);
64
+ t = s([
65
+ c("o-sound-button")
66
+ ], t);
67
+ export {
68
+ t as OccitaneSoundButton
69
+ };
@@ -0,0 +1,20 @@
1
+ const C = {
2
+ small: `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M5.85864 6.01189C5.85864 7.24334 5.8603 8.4742 5.85532 9.7057C5.85366 9.78862 5.82432 9.86886 5.77174 9.934C5.68871 10.032 5.55089 10.0164 5.4258 9.91677C4.95809 9.5447 4.49038 9.17209 4.02324 8.79947C3.6762 8.52325 3.32805 8.24863 2.98322 7.96918C2.92179 7.91587 2.84098 7.88788 2.75796 7.89003C2.18786 7.8938 1.61775 7.89218 1.04712 7.89165C0.898781 7.9078 0.75044 7.85826 0.644735 7.75542C0.538463 7.65257 0.486433 7.5088 0.503039 7.36397C0.502486 6.45451 0.502486 5.54456 0.503039 4.63506C0.486988 4.49075 0.53957 4.34644 0.64584 4.24415C0.752112 4.14184 0.900453 4.09176 1.04879 4.10846C1.60783 4.10792 2.16631 4.10577 2.72534 4.11061C2.82663 4.11438 2.92571 4.08046 3.00264 4.01584C3.80632 3.37185 4.61159 2.72948 5.41869 2.08975C5.5471 1.98744 5.68105 1.9659 5.76407 2.06013C5.81998 2.1269 5.85208 2.20982 5.85485 2.29597C5.86038 3.47195 5.85872 4.64746 5.85872 5.8234L5.85864 6.01189Z" fill="#3F2B2E"/>
4
+ <path d="M7.42268 8.14117L7.05591 7.78271C7.01257 7.74082 6.98873 7.68408 6.98873 7.62469C6.98873 7.56529 7.01257 7.50803 7.05591 7.46613L8.55988 5.99572L7.05383 4.52164C7.01103 4.47975 6.9872 4.42301 6.9872 4.36361C6.98774 4.30422 7.01158 4.24748 7.05437 4.20612L7.40543 3.86038C7.44823 3.81796 7.50674 3.7941 7.56796 3.7941C7.62864 3.7941 7.68715 3.81743 7.72995 3.85985L9.236 5.33393L10.74 3.85877C10.7828 3.81688 10.8413 3.79301 10.902 3.79301C10.9632 3.79301 11.0211 3.81688 11.0639 3.8593L11.4183 4.20715C11.5077 4.29464 11.5077 4.43622 11.4183 4.52371L9.92567 5.983L11.4328 7.45654C11.4756 7.49843 11.5 7.5557 11.5 7.61509C11.5 7.67501 11.4756 7.73175 11.4323 7.77417L11.0866 8.11089C10.9972 8.19786 10.8521 8.19786 10.7632 8.11036L9.27228 6.64836L7.74668 8.14158C7.70334 8.18348 7.64537 8.20681 7.58469 8.20681C7.52401 8.20681 7.46548 8.18359 7.42268 8.14117Z" fill="#3F2B2E"/>
5
+ </svg>
6
+ `,
7
+ medium: `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
8
+ <path d="M7.82008 8.01486C7.82008 9.55417 7.8222 11.0928 7.81586 12.6321C7.81374 12.7358 7.77641 12.8361 7.70948 12.9175C7.60382 13.04 7.42841 13.0205 7.2692 12.896C6.67394 12.4309 6.07867 11.9651 5.48413 11.4993C5.04244 11.1541 4.59934 10.8108 4.16047 10.4615C4.08227 10.3948 3.97942 10.3598 3.87376 10.3625C3.14818 10.3672 2.42258 10.3652 1.69634 10.3646C1.50754 10.3847 1.31874 10.3228 1.18421 10.1943C1.04895 10.0657 0.982733 9.886 1.00387 9.70496C1.00316 8.56814 1.00316 7.4307 1.00387 6.29383C0.98344 6.11344 1.05036 5.93306 1.18562 5.80519C1.32087 5.6773 1.50967 5.6147 1.69847 5.63557C2.40996 5.6349 3.12075 5.63221 3.83225 5.63827C3.96116 5.64298 4.08727 5.60057 4.18517 5.51981C5.20804 4.71481 6.23293 3.91185 7.26015 3.11218C7.42358 2.9843 7.59407 2.95738 7.69973 3.07517C7.77088 3.15863 7.81174 3.26227 7.81526 3.36996C7.8223 4.83993 7.82019 6.30932 7.82019 7.77926L7.82008 8.01486Z" fill="#3F2B2E"/>
9
+ <path d="M9.81069 10.6765L9.34389 10.2284C9.28873 10.176 9.25839 10.1051 9.25839 10.0309C9.25839 9.95661 9.28873 9.88503 9.34389 9.83267L11.258 7.99465L9.34124 6.15204C9.28677 6.09968 9.25643 6.02876 9.25643 5.95451C9.25712 5.88028 9.28746 5.80936 9.34193 5.75765L9.78873 5.32548C9.8432 5.27245 9.91767 5.24262 9.99559 5.24262C10.0728 5.24262 10.1473 5.27179 10.2018 5.32482L12.1185 7.16742L14.0327 5.32346C14.0871 5.2711 14.1616 5.24127 14.2388 5.24127C14.3168 5.24127 14.3905 5.27109 14.445 5.32412L14.896 5.75894C15.0097 5.8683 15.0097 6.04528 14.896 6.15464L12.9963 7.97875L14.9145 9.82067C14.969 9.87303 15 9.94462 15 10.0189C15 10.0938 14.969 10.1647 14.9138 10.2177L14.4739 10.6386C14.3601 10.7473 14.1753 10.7473 14.0623 10.638L12.1647 8.81045L10.223 10.677C10.1679 10.7293 10.0941 10.7585 10.0169 10.7585C9.93964 10.7585 9.86516 10.7295 9.81069 10.6765Z" fill="#3F2B2E"/>
10
+ </svg>
11
+ `,
12
+ large: `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
13
+ <path d="M11.7173 12.0238C11.7173 14.4867 11.7206 16.9484 11.7106 19.4114C11.7073 19.5772 11.6486 19.7377 11.5435 19.868C11.3774 20.064 11.1018 20.0328 10.8516 19.8335C9.91619 19.0894 8.98077 18.3442 8.04648 17.5989C7.3524 17.0465 6.65611 16.4973 5.96645 15.9384C5.84357 15.8317 5.68195 15.7758 5.51591 15.7801C4.37572 15.7876 3.23549 15.7844 2.09425 15.7833C1.79756 15.8156 1.50088 15.7165 1.28947 15.5108C1.07693 15.3051 0.972865 15.0176 1.00608 14.7279C1.00497 12.909 1.00497 11.0891 1.00608 9.27013C0.973976 8.98151 1.07914 8.69289 1.29168 8.4883C1.50422 8.28369 1.80091 8.18353 2.09759 8.21692C3.21565 8.21584 4.33261 8.21153 5.45068 8.22123C5.65325 8.22876 5.85142 8.16092 6.00527 8.03169C7.61264 6.7437 9.22318 5.45896 10.8374 4.17949C11.0942 3.97488 11.3621 3.9318 11.5281 4.12027C11.64 4.2538 11.7042 4.41964 11.7097 4.59194C11.7208 6.9439 11.7174 9.29491 11.7174 11.6468L11.7173 12.0238Z" fill="#3F2B2E"/>
14
+ <path d="M14.8454 16.2823L14.1118 15.5654C14.0251 15.4816 13.9775 15.3682 13.9775 15.2494C13.9775 15.1306 14.0251 15.0161 14.1118 14.9323L17.1198 11.9914L14.1077 9.04327C14.0221 8.95949 13.9744 8.84601 13.9744 8.72722C13.9755 8.60844 14.0232 8.49497 14.1087 8.41224L14.8109 7.72076C14.8965 7.63592 15.0135 7.5882 15.1359 7.5882C15.2573 7.5882 15.3743 7.63486 15.4599 7.71971L18.472 10.6679L21.4799 7.71753C21.5655 7.63375 21.6825 7.58603 21.8039 7.58603C21.9263 7.58603 22.0423 7.63375 22.1279 7.71859L22.8365 8.4143C23.0153 8.58929 23.0153 8.87245 22.8365 9.04742L19.8513 11.966L22.8656 14.9131C22.9512 14.9969 23 15.1114 23 15.2302C23 15.35 22.9512 15.4635 22.8646 15.5483L22.1733 16.2218C21.9945 16.3957 21.7041 16.3957 21.5264 16.2207L18.5446 13.2967L15.4934 16.2832C15.4067 16.367 15.2907 16.4136 15.1694 16.4136C15.048 16.4136 14.931 16.3672 14.8454 16.2823Z" fill="#3F2B2E"/>
15
+ </svg>
16
+ `
17
+ };
18
+ export {
19
+ C as variants
20
+ };
@@ -0,0 +1,23 @@
1
+ const C = {
2
+ small: `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M6.00121 6.00946C6.00121 7.24128 6.00286 8.47311 5.99736 9.70487C5.99406 9.79088 5.96107 9.87429 5.90334 9.94049C5.81921 10.0322 5.68174 10.013 5.55748 9.91651C5.0802 9.5464 4.60348 9.17627 4.12675 8.80615C3.76439 8.52517 3.40038 8.24576 3.04133 7.96166C2.9792 7.91161 2.89947 7.88555 2.81809 7.8892C2.23248 7.89181 1.64744 7.89128 1.06177 7.89024C0.909468 7.90692 0.757147 7.85636 0.64828 7.75367C0.539407 7.65097 0.486077 7.50709 0.503124 7.36217C0.502574 6.45199 0.502574 5.54229 0.503124 4.63215C0.486627 4.48724 0.540513 4.34335 0.649392 4.24118C0.758813 4.13848 0.91058 4.08844 1.06344 4.10564C1.65673 4.10512 2.25004 4.10721 2.84284 4.10304C2.90717 4.10147 2.96931 4.0801 3.01989 4.04361C3.86503 3.39303 4.70794 2.74037 5.54928 2.08561C5.63781 1.98917 5.78902 1.97196 5.89955 2.04547C5.97543 2.10594 6.01447 2.19872 6.00237 2.29204C6.00127 3.46444 6.00072 4.63732 6.00127 5.8097L6.00121 6.00946Z" fill="#3F2B2E"/>
4
+ <path d="M8.86548 2.70599L9.5638 2.04656C11.9271 3.83614 12.296 7.59521 9.72436 9.82479L9.02273 9.16117C9.99709 8.33492 10.5354 7.14165 10.493 5.90308C10.4754 4.66136 9.87935 3.49109 8.86548 2.70599Z" fill="#3F2B2E"/>
5
+ <path d="M7.93841 8.1603L7.24119 7.492C7.74707 7.11093 8.02915 6.52187 7.99944 5.90941C7.9692 5.29741 7.63159 4.73597 7.09053 4.4002L7.79765 3.7319C8.52896 4.24643 8.97159 5.05026 8.9991 5.91357C9.0266 6.77688 8.63564 7.60461 7.93841 8.1603Z" fill="#3F2B2E"/>
6
+ </svg>
7
+ `,
8
+ medium: `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
9
+ <path d="M8.00154 8.01182C8.00154 9.5516 8.00364 11.0914 7.99664 12.6311V12.6317C7.99244 12.7393 7.95045 12.8429 7.87697 12.9256C7.7699 13.0403 7.59495 13.0162 7.43679 12.8956C6.82935 12.433 6.22261 11.9703 5.61586 11.5077C5.15468 11.1565 4.69139 10.8072 4.23442 10.4521L4.23372 10.4514C4.15464 10.3889 4.05387 10.3569 3.9503 10.3615C3.20498 10.3648 2.46038 10.3641 1.71499 10.3628C1.52114 10.3837 1.32728 10.3204 1.18872 10.1921C1.05015 10.0637 0.98228 9.88386 1.00398 9.70272C1.00328 8.56499 1.00328 7.42786 1.00398 6.29019C0.98298 6.10904 1.05156 5.92918 1.19013 5.80147C1.3294 5.6731 1.52256 5.61055 1.7171 5.63205C2.4722 5.6314 3.22732 5.63401 3.98179 5.6288V5.62815C4.06367 5.62619 4.14275 5.60013 4.20713 5.55451C5.28276 4.74129 6.35555 3.92547 7.42636 3.10701C7.53903 2.98646 7.73148 2.96495 7.87215 3.05683C7.96873 3.13242 8.01841 3.2484 8.00302 3.36506C8.00162 4.83056 8.00092 6.29666 8.00162 7.76212L8.00154 8.01182Z" fill="#3F2B2E"/>
10
+ <path d="M11.647 3.88249L12.5357 3.05819C15.5436 5.29518 16.0131 9.99401 12.7401 12.781L11.8471 11.9515C13.0872 10.9187 13.7723 9.42706 13.7184 7.87885C13.696 6.32669 12.9374 4.86386 11.647 3.88249Z" fill="#3F2B2E"/>
11
+ <path d="M10.4671 10.7004L9.57969 9.865V9.86435C10.2235 9.38801 10.5825 8.65234 10.5447 7.88676C10.5063 7.12177 10.0766 6.41996 9.38795 6.00025L10.2879 5.16488C11.2187 5.80803 11.782 6.81282 11.817 7.89196C11.852 8.97111 11.3545 10.0058 10.4671 10.7004Z" fill="#3F2B2E"/>
12
+ </svg>
13
+ `,
14
+ large: `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
15
+ <path d="M12.0024 12.0189C12.0024 14.4826 12.0057 16.9462 11.9947 19.4097V19.4108C11.9881 19.5828 11.9221 19.7486 11.8067 19.881C11.6384 20.0645 11.3635 20.0259 11.115 19.833C10.1604 19.0928 9.20695 18.3525 8.2535 17.6123C7.52879 17.0503 6.80076 16.4915 6.08266 15.9233L6.08156 15.9223C5.95729 15.8222 5.79893 15.7711 5.63618 15.7784C4.46497 15.7836 3.29488 15.7826 2.12355 15.7805C1.81894 15.8138 1.51429 15.7127 1.29656 15.5073C1.07881 15.3019 0.972154 15.0142 1.00625 14.7243C1.00515 12.904 1.00515 11.0846 1.00625 9.2643C0.973255 8.97447 1.08103 8.6867 1.29878 8.48235C1.51763 8.27696 1.82116 8.17688 2.12687 8.21129C3.31346 8.21025 4.50007 8.21442 5.68567 8.20607V8.20503C5.81434 8.2019 5.93861 8.1602 6.03978 8.08722C7.73005 6.78606 9.41587 5.48075 11.0986 4.17121C11.2756 3.97833 11.578 3.94393 11.7991 4.09093C11.9509 4.21187 12.0289 4.39744 12.0047 4.58409C12.0025 6.92889 12.0014 9.27465 12.0025 11.6194L12.0024 12.0189Z" fill="#3F2B2E"/>
16
+ <path d="M17.731 5.41199L19.1276 4.09311C23.8542 7.67229 24.5921 15.1904 19.4487 19.6496L18.0455 18.3223C19.9942 16.6698 21.0708 14.2833 20.986 11.8062C20.9508 9.32271 19.7587 6.98218 17.731 5.41199Z" fill="#3F2B2E"/>
17
+ <path d="M15.8768 16.3206L14.4824 14.984V14.983C15.4941 14.2208 16.0583 13.0437 15.9989 11.8188C15.9384 10.5948 15.2632 9.47193 14.1811 8.8004L15.5953 7.46381C17.0579 8.49285 17.9432 10.1005 17.9982 11.8271C18.0532 13.5538 17.2713 15.2092 15.8768 16.3206Z" fill="#3F2B2E"/>
18
+ </svg>
19
+ `
20
+ };
21
+ export {
22
+ C as variants
23
+ };
@@ -87,6 +87,8 @@ const p = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="ht
87
87
  "occ-reward-card": () => import("./icons/occ-reward-card.mjs"),
88
88
  "occ-samples": () => import("./icons/occ-samples.mjs"),
89
89
  "occ-search": () => import("./icons/occ-search.mjs"),
90
+ "occ-sound-off": () => import("./icons/occ-sound-off.mjs"),
91
+ "occ-sound-on": () => import("./icons/occ-sound-on.mjs"),
90
92
  "occ-star-0": () => import("./icons/occ-star-0.mjs"),
91
93
  "occ-star-100": () => import("./icons/occ-star-100.mjs"),
92
94
  "occ-star-25": () => import("./icons/occ-star-25.mjs"),
@@ -117,15 +119,15 @@ function F(o) {
117
119
  function B() {
118
120
  for (const o of [...n]) o();
119
121
  }
120
- function Z(o, t) {
121
- s[o] = t, y[o] = t.medium ?? t.small ?? t.large ?? "", B();
122
+ function Z(o, c) {
123
+ s[o] = c, y[o] = c.medium ?? c.small ?? c.large ?? "", B();
122
124
  }
123
125
  function b(o) {
124
126
  if (s[o] || e.has(o)) return;
125
- const t = M[o];
126
- t && e.set(
127
+ const c = M[o];
128
+ c && e.set(
127
129
  o,
128
- t().then((i) => Z(o, i.variants)).catch(() => {
130
+ c().then((i) => Z(o, i.variants)).catch(() => {
129
131
  })
130
132
  );
131
133
  }
@@ -134,17 +136,17 @@ const I = (o) => o.startsWith("occ-"), V = {
134
136
  small: 12,
135
137
  medium: 16,
136
138
  large: 24
137
- }, k = (o) => o === "xsmall" ? "small" : o, H = (o, t, i) => {
138
- const c = s[o];
139
- if (!c) return "";
139
+ }, k = (o) => o === "xsmall" ? "small" : o, H = (o, c, i) => {
140
+ const t = s[o];
141
+ if (!t) return "";
140
142
  if (i) {
141
- const r = k(t);
142
- return c[r] ?? c.large ?? c.medium ?? c.small ?? "";
143
+ const r = k(c);
144
+ return t[r] ?? t.large ?? t.medium ?? t.small ?? "";
143
145
  }
144
- return c.large ?? c.medium ?? c.small ?? "";
145
- }, S = (o, { size: t, bgstyle: i }) => {
146
- const c = V[t], r = i === "none-light" || i === "none-contrast";
147
- return I(o) ? (b(o), { svg: H(o, t, r), pixelSize: c, shouldApplyLogicalSize: r }) : { svg: l[o] ?? "", pixelSize: c, shouldApplyLogicalSize: r };
146
+ return t.large ?? t.medium ?? t.small ?? "";
147
+ }, S = (o, { size: c, bgstyle: i }) => {
148
+ const t = V[c], r = i === "none-light" || i === "none-contrast";
149
+ return I(o) ? (b(o), { svg: H(o, c, r), pixelSize: t, shouldApplyLogicalSize: r }) : { svg: l[o] ?? "", pixelSize: t, shouldApplyLogicalSize: r };
148
150
  }, y = { ...l }, A = {
149
151
  strikeDiagonal: f
150
152
  }, R = {
package/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import "./components/side-panel.mjs";
2
2
  import "./components/wishlist-button.mjs";
3
+ import "./components/sound-button.mjs";
3
4
  import "./components/icon-button.mjs";
4
5
  import "./icon-CAvOSN1L.mjs";
5
6
  import "./components/link.mjs";
@@ -37,4 +38,4 @@ import "./components/search-input.mjs";
37
38
  import "./components/search-input-dropdown.mjs";
38
39
  import "./components/option-tile.mjs";
39
40
  import "./components/option-tile-group.mjs";
40
- globalThis.__FLORID_KIT__ = "3.1.14";
41
+ globalThis.__FLORID_KIT__ = "3.2.1";
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.1.14";
7
+ globalThis.__FLORID_KIT__ = "3.2.1";
8
8
  const i = {
9
9
  "o-accordion": () => import("./components/accordion.mjs"),
10
10
  "o-accordion-group": () => import("./components/accordion-group.mjs"),
@@ -34,6 +34,7 @@ const i = {
34
34
  "o-toast": () => import("./components/toast.mjs"),
35
35
  "o-tooltip": () => import("./components/tooltip.mjs"),
36
36
  "o-wishlist-button": () => import("./components/wishlist-button.mjs"),
37
+ "o-sound-button": () => import("./components/sound-button.mjs"),
37
38
  "thumbnail-navigation": () => import("./components/thumbnail-navigation.mjs"),
38
39
  "o-arch-image": () => import("./components/arch-image.mjs"),
39
40
  "o-tag": () => import("./components/tag.mjs"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@florid-kit/components",
3
- "version": "3.1.14",
3
+ "version": "3.2.1",
4
4
  "main": "index.js",
5
5
  "module": "index.mjs",
6
6
  "typings": "index.d.ts",