fiboui 2.2.0 → 2.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.
- package/README.md +1 -1
- package/dist/{FineGrain-6w615KQw.js → FineGrain-uhDvqyeZ.js} +1 -1
- package/dist/Link-ElmaMZB8.js +89 -0
- package/dist/{Router-i6Nc6qVs.js → Router-BwbaHooU.js} +139 -127
- package/dist/{builder-KLTu7nAI.js → builder-KX69ixME.js} +593 -558
- package/dist/content.js +3 -3
- package/dist/core.js +46 -43
- package/dist/{index-CbTvwN9K.js → index-B7jJYOv5.js} +4 -4
- package/dist/{index-ijbJR6lD.js → index-CgPc0zLh.js} +5 -5
- package/dist/{index-BN2z9MuJ.js → index-Cud42ieq.js} +12 -12
- package/dist/{index-DU2MC5u3.js → index-D0tQrTAU.js} +46 -46
- package/dist/{index-CdJvNseK.js → index-D7exw6yn.js} +116 -113
- package/dist/{index-DhPBYTPt.js → index-Dj85aIkg.js} +2 -2
- package/dist/{index-CYnY7jAX.js → index-hNxXTy6z.js} +1 -1
- package/dist/index.d.ts +33 -8
- package/dist/index.js +314 -297
- package/dist/interactive.js +1 -1
- package/dist/layout.js +2 -2
- package/dist/mount-DX2mgYvd.js +358 -0
- package/dist/navigation.js +2 -2
- package/dist/{provider-B0eB-Wy7.js → provider-CihtUuRx.js} +48 -32
- package/dist/structure.js +2 -2
- package/dist/style.css +1 -1
- package/dist/theme.js +1 -1
- package/package.json +2 -1
- package/dist/Link-DDzSPY1Q.js +0 -88
- package/dist/mount-D5gt_GWO.js +0 -331
package/dist/index.d.ts
CHANGED
|
@@ -267,7 +267,6 @@ declare abstract class GestureBuilder {
|
|
|
267
267
|
abstract wrap(children: React$1.ReactNode): React$1.ReactNode;
|
|
268
268
|
}
|
|
269
269
|
export declare class PseudoStateBuilder {
|
|
270
|
-
private baseClassName;
|
|
271
270
|
private pseudoState;
|
|
272
271
|
private parentBuilder;
|
|
273
272
|
private isGroup;
|
|
@@ -276,7 +275,7 @@ export declare class PseudoStateBuilder {
|
|
|
276
275
|
private transitionDelay;
|
|
277
276
|
private transitionProperties;
|
|
278
277
|
private transforms;
|
|
279
|
-
constructor(
|
|
278
|
+
constructor(pseudoState: string, parentBuilder: FiboBuilder, isGroup?: boolean);
|
|
280
279
|
bg(color: string): this;
|
|
281
280
|
color(value: string): this;
|
|
282
281
|
text(color: string): this;
|
|
@@ -414,7 +413,6 @@ declare abstract class FiboBuilder {
|
|
|
414
413
|
protected _cssStyles: React$1.CSSProperties;
|
|
415
414
|
protected _classNames: string[];
|
|
416
415
|
protected _children: React$1.ReactNode[];
|
|
417
|
-
protected _responsive?: ResponsiveStyles;
|
|
418
416
|
protected _theme?: ThemeConfig;
|
|
419
417
|
protected _state: Map<string, any>;
|
|
420
418
|
protected _providers: Map<string, any>;
|
|
@@ -425,7 +423,6 @@ declare abstract class FiboBuilder {
|
|
|
425
423
|
protected _animationConfig?: Partial<AnimationOptions>;
|
|
426
424
|
protected _animatedProps: Map<string, Signal<any>>;
|
|
427
425
|
protected _transforms: string[];
|
|
428
|
-
protected _pseudoStateClassName?: string;
|
|
429
426
|
protected _transitionClass?: string;
|
|
430
427
|
protected _motionClass?: string;
|
|
431
428
|
protected _staggerMs?: number;
|
|
@@ -455,8 +452,11 @@ declare abstract class FiboBuilder {
|
|
|
455
452
|
* that `.anchor()` applies).
|
|
456
453
|
*/
|
|
457
454
|
scrollMargin(value: number | string): this;
|
|
455
|
+
/** Stamp a class onto the host. Used by PseudoStateBuilder (hashed `:hover` etc.). */
|
|
456
|
+
addClassName(name: string): this;
|
|
458
457
|
/**
|
|
459
|
-
* React list key. After this is called, React reads the key as a string
|
|
458
|
+
* React list key. After this is called, React reads the key as a string
|
|
459
|
+
* on both the builder element and the inner host wrapper.
|
|
460
460
|
* Builders are valid elements — you do not need `.build()`.
|
|
461
461
|
*/
|
|
462
462
|
key(value: string | number): this;
|
|
@@ -501,6 +501,11 @@ declare abstract class FiboBuilder {
|
|
|
501
501
|
color(value: string | Colors): this;
|
|
502
502
|
private resolveSemanticColor;
|
|
503
503
|
shadow(config?: ShadowConfig): this;
|
|
504
|
+
/**
|
|
505
|
+
* Breakpoint styles compiled to CSS `@media` (same engine as `.md()`).
|
|
506
|
+
* Tiers stay mutually exclusive: mobile `<768`, tablet `768–1023`, desktop `≥1024`.
|
|
507
|
+
* No `window.innerWidth` — hydrate-safe.
|
|
508
|
+
*/
|
|
504
509
|
responsive(styles: ResponsiveStyles): this;
|
|
505
510
|
/**
|
|
506
511
|
* CSS `@media` (min-width or a raw query). Compiles to a class — no resize JS.
|
|
@@ -508,6 +513,7 @@ declare abstract class FiboBuilder {
|
|
|
508
513
|
* @example Box().padding(8).media('md', { padding: 16 }).media('(prefers-color-scheme: dark)', { backgroundColor: '#111' })
|
|
509
514
|
*/
|
|
510
515
|
media(query: BreakpointKey | string, styles: React$1.CSSProperties): this;
|
|
516
|
+
private registerMediaStyles;
|
|
511
517
|
sm(styles: React$1.CSSProperties): this;
|
|
512
518
|
md(styles: React$1.CSSProperties): this;
|
|
513
519
|
lg(styles: React$1.CSSProperties): this;
|
|
@@ -634,7 +640,6 @@ declare abstract class FiboBuilder {
|
|
|
634
640
|
focusRing(color?: string): this;
|
|
635
641
|
protected ensureInteractiveTransition(): void;
|
|
636
642
|
theme(themeConfig: ThemeConfig): this;
|
|
637
|
-
private getPseudoStateClassName;
|
|
638
643
|
hover(): PseudoStateBuilder;
|
|
639
644
|
hover(callback: PseudoStateFn): this;
|
|
640
645
|
focus(): PseudoStateBuilder;
|
|
@@ -1608,8 +1613,20 @@ export declare function supportsViewTimeline(): boolean;
|
|
|
1608
1613
|
export declare function supportsScrollTimeline(): boolean;
|
|
1609
1614
|
export declare function ensureMotionCss(): void;
|
|
1610
1615
|
export declare function getMotionCss(): string;
|
|
1616
|
+
export declare function getCss(): string;
|
|
1617
|
+
/** `<style id="fibo-dynamic-styles">` HTML. Call **after** `renderToString` so rules are collected. */
|
|
1618
|
+
export declare function getStyleTag(): string;
|
|
1619
|
+
/**
|
|
1620
|
+
* Inject collected CSS into a document. Place as a **later sibling** of the app
|
|
1621
|
+
* so registrations from children run first during SSR.
|
|
1622
|
+
*/
|
|
1623
|
+
export declare function FiboStyles(): React$1.ReactElement;
|
|
1611
1624
|
export declare function MotionStyles(): React$1.ReactElement;
|
|
1612
|
-
/**
|
|
1625
|
+
/**
|
|
1626
|
+
* Current viewport width. Hydration uses 1024 (desktop) so the first client
|
|
1627
|
+
* render matches SSR; the real width arrives after mount.
|
|
1628
|
+
* Prefer `.md()` / `.responsive()` (CSS `@media`) over this hook.
|
|
1629
|
+
*/
|
|
1613
1630
|
export declare function useViewportWidth(): number;
|
|
1614
1631
|
type Constructor<T = any> = new (...args: any[]) => T;
|
|
1615
1632
|
type Factory<T = any> = () => T;
|
|
@@ -43026,11 +43043,12 @@ declare class PathBuilder extends ShapeBuilder {
|
|
|
43026
43043
|
}
|
|
43027
43044
|
export declare const Path: () => PathBuilder;
|
|
43028
43045
|
declare class LinearGradientBuilder extends FiboBuilder {
|
|
43029
|
-
private _id
|
|
43046
|
+
private _id?;
|
|
43030
43047
|
private _colors;
|
|
43031
43048
|
private _stops?;
|
|
43032
43049
|
private _angle;
|
|
43033
43050
|
id(value: string): this;
|
|
43051
|
+
private gradientId;
|
|
43034
43052
|
colors(colors: string[]): this;
|
|
43035
43053
|
stops(stops: number[]): this;
|
|
43036
43054
|
angle(degrees: number): this;
|
|
@@ -44778,6 +44796,7 @@ interface RouterContextValue {
|
|
|
44778
44796
|
replace: (path: string) => void;
|
|
44779
44797
|
params: Record<string, string>;
|
|
44780
44798
|
query: URLSearchParams;
|
|
44799
|
+
hash: string;
|
|
44781
44800
|
}
|
|
44782
44801
|
interface NavigateOptions {
|
|
44783
44802
|
replace?: boolean;
|
|
@@ -44797,6 +44816,12 @@ interface RouterProps {
|
|
|
44797
44816
|
fallback?: React$1.ComponentType;
|
|
44798
44817
|
loading?: React$1.ReactNode;
|
|
44799
44818
|
basename?: string;
|
|
44819
|
+
/** Request path for SSR. First client render uses this (or `/`), then window after mount. */
|
|
44820
|
+
initialPath?: string;
|
|
44821
|
+
/** Request search string (`?a=1` or `a=1`) for SSR. */
|
|
44822
|
+
initialSearch?: string;
|
|
44823
|
+
/** Request hash (`#section` or `section`) for SSR. */
|
|
44824
|
+
initialHash?: string;
|
|
44800
44825
|
errorBoundary?: React$1.ReactNode | ((error: Error, errorInfo: React$1.ErrorInfo) => React$1.ReactNode);
|
|
44801
44826
|
onError?: (error: Error, errorInfo: React$1.ErrorInfo) => void;
|
|
44802
44827
|
}
|