fiboui 2.2.3 → 2.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/content.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { b as s, A as r, B as o, I as t, c as n, L as I, P as g, a as l, S as m } from "./index-DgRpEUs0.js";
3
- import { T as x } from "./index-BObp1JkM.js";
4
- import { I as f } from "./index-CZQ5erLU.js";
2
+ import { b as s, A as r, B as o, I as t, c as n, L as I, P as g, a as l, S as m } from "./index-CKbAiJg2.js";
3
+ import { T as x } from "./index-Des7FiFH.js";
4
+ import { I as f } from "./index-nFXU29Ly.js";
5
5
  export {
6
6
  s as Alert,
7
7
  r as Avatar,
package/dist/core.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { C as a, F as r, M as o, p as t, O as i, d as l, P as n, R as u, f as p, h as S, S as c, V as g, c as b, b as v, a as d, t as m, g as T, q as R, v as P, o as F, n as y, r as C, i as E, s as f, m as M, j as O, l as x, k as V, u as B, e as h } from "./builder-3Bc2PfP9.js";
3
- import { E as k, l as w, F as A, k as I, P as q, c as G, j as N, m as W, t as _, g as z, b as D, h as H, a as J, i as K, u as L, e as Q, f as U, d as X } from "./mount-D59e1COl.js";
4
- import { F as Z, b as $ } from "./FineGrain-BEvB51B2.js";
2
+ import { C as a, F as r, M as o, p as t, O as i, d as l, P as n, R as u, f as p, h as S, S as c, V as g, c as b, b as v, a as d, t as m, g as T, q as R, v as P, o as F, n as y, r as C, i as E, s as f, m as M, j as O, l as x, k as V, u as B, e as h } from "./builder-DxmEDvW3.js";
3
+ import { E as k, l as w, F as A, k as I, P as q, c as G, j as N, m as W, t as _, g as z, b as D, h as H, a as J, i as K, u as L, e as Q, f as U, d as X } from "./mount-B316Ig0o.js";
4
+ import { F as Z, b as $ } from "./FineGrain-Bishpo5C.js";
5
5
  export {
6
6
  a as ComputedSignal,
7
7
  k as Easing,
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import o from "react";
3
- import { w as l, x as i } from "./builder-3Bc2PfP9.js";
3
+ import { w as l, x as i } from "./builder-DxmEDvW3.js";
4
4
  const a = o.memo((r) => {
5
5
  const { className: c, style: e, children: s, ...t } = r;
6
6
  return o.createElement(
@@ -3,10 +3,10 @@ var oe = Object.defineProperty;
3
3
  var le = (n, s, e) => s in n ? oe(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e;
4
4
  var i = (n, s, e) => le(n, typeof s != "symbol" ? s + "" : s, e);
5
5
  import t, { useState as D, useRef as L, useLayoutEffect as Z, useEffect as ce } from "react";
6
- import { w, x as I, G as T, H as q } from "./builder-3Bc2PfP9.js";
7
- import { B as C } from "./index-BlciuWzU.js";
6
+ import { w, x as I, G as T, H as q } from "./builder-DxmEDvW3.js";
7
+ import { B as C } from "./index-B_NshIUT.js";
8
8
  import { t as de } from "./bundle-mjs-wppB-TKB.js";
9
- import { T as me } from "./index-BObp1JkM.js";
9
+ import { T as me } from "./index-Des7FiFH.js";
10
10
  const he = t.memo((n) => {
11
11
  const { text: s, subtitle: e, number: r, color: d, className: p, style: c, children: u, ...g } = n;
12
12
  return t.createElement(
@@ -3,10 +3,10 @@ var U = Object.defineProperty;
3
3
  var G = (n, s, e) => s in n ? U(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e;
4
4
  var r = (n, s, e) => G(n, typeof s != "symbol" ? s + "" : s, e);
5
5
  import t from "react";
6
- import { w as C, x as F } from "./builder-3Bc2PfP9.js";
7
- import { B as j } from "./index-BlciuWzU.js";
8
- import { T as O } from "./index-BObp1JkM.js";
9
- import { R as J } from "./index-CZQ5erLU.js";
6
+ import { w as C, x as F } from "./builder-DxmEDvW3.js";
7
+ import { B as j } from "./index-B_NshIUT.js";
8
+ import { T as O } from "./index-Des7FiFH.js";
9
+ import { R as J } from "./index-nFXU29Ly.js";
10
10
  import { jsxs as $, jsx as f } from "react/jsx-runtime";
11
11
  const K = ({ size: n }) => t.createElement(
12
12
  "svg",
@@ -3,7 +3,7 @@ var H = Object.defineProperty;
3
3
  var O = (c, l, e) => l in c ? H(c, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[l] = e;
4
4
  var r = (c, l, e) => O(c, typeof l != "symbol" ? l + "" : l, e);
5
5
  import t, { useState as M, useEffect as j, useRef as F } from "react";
6
- import { w as $, x as D, S as P } from "./builder-3Bc2PfP9.js";
6
+ import { w as $, x as D, S as P } from "./builder-DxmEDvW3.js";
7
7
  import { t as L } from "./bundle-mjs-wppB-TKB.js";
8
8
  const q = t.memo((c) => {
9
9
  const {
@@ -3,8 +3,8 @@ var m = Object.defineProperty;
3
3
  var p = (i, e, t) => e in i ? m(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
4
4
  var o = (i, e, t) => p(i, typeof e != "symbol" ? e + "" : e, t);
5
5
  import h from "react";
6
- import { w as c, x as f } from "./builder-3Bc2PfP9.js";
7
- import { F as g } from "./FineGrain-BEvB51B2.js";
6
+ import { w as c, x as f } from "./builder-DxmEDvW3.js";
7
+ import { F as g } from "./FineGrain-Bishpo5C.js";
8
8
  const y = {
9
9
  h1: { fontSize: "2.25rem", fontWeight: 700, letterSpacing: "-0.025em", lineHeight: 1.2 },
10
10
  h2: { fontSize: "1.875rem", fontWeight: 700, letterSpacing: "-0.025em", lineHeight: 1.25 },
@@ -3,10 +3,10 @@ var G = Object.defineProperty;
3
3
  var X = (n, s, e) => s in n ? G(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e;
4
4
  var r = (n, s, e) => X(n, typeof s != "symbol" ? s + "" : s, e);
5
5
  import i, { useState as V, useRef as D, useLayoutEffect as q } from "react";
6
- import { w as _, x as b, I as J, G as F, P as K } from "./builder-3Bc2PfP9.js";
6
+ import { w as _, x as b, I as J, G as F, P as K } from "./builder-DxmEDvW3.js";
7
7
  import { P as W } from "./PluginManager-D5-ApsSN.js";
8
- import { R as Q, I as U } from "./index-CZQ5erLU.js";
9
- import { T as ee } from "./index-BObp1JkM.js";
8
+ import { R as Q, I as U } from "./index-nFXU29Ly.js";
9
+ import { T as ee } from "./index-Des7FiFH.js";
10
10
  import { e as te, L as ie } from "./Link-ElmaMZB8.js";
11
11
  class se extends b {
12
12
  build() {
@@ -3,7 +3,7 @@ var m = Object.defineProperty;
3
3
  var p = (e, t, s) => t in e ? m(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
4
4
  var r = (e, t, s) => p(e, typeof t != "symbol" ? t + "" : t, s);
5
5
  import o from "react";
6
- import { w as a, x as u } from "./builder-3Bc2PfP9.js";
6
+ import { w as a, x as u } from "./builder-DxmEDvW3.js";
7
7
  class g extends u {
8
8
  constructor() {
9
9
  super(...arguments);
package/dist/index.d.ts CHANGED
@@ -1604,13 +1604,56 @@ export declare function ScrollProgress({ children }: ScrollProgressProps): React
1604
1604
  display: "contents";
1605
1605
  };
1606
1606
  }, HTMLDivElement>;
1607
- declare function scrollTo$1(target: string | Element, options?: {
1607
+ type ScrollToOptions$1 = {
1608
1608
  behavior?: ScrollBehavior;
1609
1609
  block?: ScrollLogicalPosition;
1610
- }): void;
1610
+ /** Also set `location.hash` (in-page anchor navigation). */
1611
+ hash?: boolean;
1612
+ };
1613
+ /**
1614
+ * Smooth-scroll to an element id / selector / Element.
1615
+ * Pass `hash: true` to update the URL hash (replaces the old site-only `goHash`).
1616
+ */
1617
+ declare function scrollTo$1(target: string | Element, options?: ScrollToOptions$1): void;
1611
1618
  export declare function startViewTransition(update: () => void): void;
1612
1619
  export declare function supportsViewTimeline(): boolean;
1613
1620
  export declare function supportsScrollTimeline(): boolean;
1621
+ /**
1622
+ * Browser helpers that did not exist as package exports before.
1623
+ * Prefer extending existing APIs (`scrollTo`) over inventing parallel ones.
1624
+ * Keep stable names the site already used (`goHash`, `openExternal`) as aliases.
1625
+ */
1626
+ /** Write text to the system clipboard. Returns false if unavailable. */
1627
+ export declare function writeClipboard(text: string): Promise<boolean>;
1628
+ /** Open a URL (default: new tab + noopener). Canonical name. */
1629
+ declare function open$1(url: string, options?: {
1630
+ target?: "_blank" | "_self";
1631
+ features?: string;
1632
+ }): void;
1633
+ /** Alias — name the fibogrid site already used. Do not remove (no break). */
1634
+ export declare const openExternal: typeof open$1;
1635
+ /**
1636
+ * In-page hash jump. Name the site already used.
1637
+ * Implementation = existing `scrollTo(id, { hash: true })` (no parallel logic).
1638
+ */
1639
+ export declare function goHash(id: string, options?: {
1640
+ behavior?: ScrollBehavior;
1641
+ block?: ScrollLogicalPosition;
1642
+ }): void;
1643
+ export type HotkeyChord = {
1644
+ key: string;
1645
+ meta?: boolean;
1646
+ ctrl?: boolean;
1647
+ alt?: boolean;
1648
+ shift?: boolean;
1649
+ /** Require meta OR ctrl (⌘K / Ctrl+K). */
1650
+ metaOrCtrl?: boolean;
1651
+ preventDefault?: boolean;
1652
+ when?: () => boolean;
1653
+ run: () => void;
1654
+ };
1655
+ /** Bind global keydown chords. Returns unsubscribe. SSR-safe. */
1656
+ export declare function bindHotkeys(chords: HotkeyChord[]): () => void;
1614
1657
  export declare function ensureMotionCss(): void;
1615
1658
  export declare function getMotionCss(): string;
1616
1659
  export declare function getCss(): string;
@@ -44904,9 +44947,11 @@ export declare function getPersistedState<T>(key: string, storage?: StorageAdapt
44904
44947
 
44905
44948
  export {
44906
44949
  Image$1 as Image,
44950
+ ScrollToOptions$1 as ScrollToOptions,
44907
44951
  Store as ReactiveStore,
44908
44952
  Store$1 as Store,
44909
44953
  Text$1 as Text,
44954
+ open$1 as open,
44910
44955
  scrollTo$1 as scrollTo,
44911
44956
  };
44912
44957