fiboui 2.9.6 → 2.9.14
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/{client-DspTEDnT.js → client-CNrWulRU.js} +1604 -1525
- package/dist/content.d.ts +14 -1
- package/dist/content.js +10 -10
- package/dist/core.d.ts +32 -1
- package/dist/core.js +56 -54
- package/dist/{icons-uTGNZEj2.js → icons-CUjbVN8n.js} +126 -112
- package/dist/{index-BK9NhRgp.js → index-BBa7p7cv.js} +6 -6
- package/dist/{index-CE3dybe8.js → index-Bcf-s8v0.js} +145 -138
- package/dist/{index-vSLH4ZkD.js → index-COE2gXjP.js} +1 -1
- package/dist/{index-B7vkEz57.js → index-CpUz5DNt.js} +39 -39
- package/dist/{index-pxNM6-DO.js → index-Dm9qGQyL.js} +2 -2
- package/dist/index.d.ts +51 -2
- package/dist/index.js +1303 -1170
- package/dist/interactive.d.ts +2 -0
- package/dist/interactive.js +6 -6
- package/dist/layout.d.ts +2 -0
- package/dist/layout.js +3 -3
- package/dist/{metadata-BqVnmMLq.js → metadata-CElV09j3.js} +20 -20
- package/dist/navigation.js +2 -2
- package/dist/{page-CQCVouvN.js → page-LLSMLaL2.js} +81 -82
- package/dist/server.d.ts +2 -0
- package/dist/server.js +370 -357
- package/dist/structure.d.ts +2 -0
- package/dist/structure.js +8 -8
- package/dist/style.css +1 -1
- package/dist/theme.js +3 -3
- package/package.json +1 -1
package/dist/content.d.ts
CHANGED
|
@@ -310,6 +310,8 @@ declare class PseudoStateBuilder {
|
|
|
310
310
|
translateY(value: number | string): this;
|
|
311
311
|
rotate(degrees: number): this;
|
|
312
312
|
shadow(value: string | number): this;
|
|
313
|
+
/** Same surface as `Box().css({})` — object bag or `(property, value)`. */
|
|
314
|
+
css(styles: React$1.CSSProperties): this;
|
|
313
315
|
css(property: string, value: string | number): this;
|
|
314
316
|
padding(value: string | number): this;
|
|
315
317
|
p(value: string | number): this;
|
|
@@ -1440,10 +1442,12 @@ declare class LabelBuilder extends FiboBuilder {
|
|
|
1440
1442
|
}
|
|
1441
1443
|
export declare const Label: (text?: string | undefined) => StyleBuilder<LabelBuilder>;
|
|
1442
1444
|
type ClipShape = "circle" | "rounded" | "square";
|
|
1445
|
+
type ImagePosition = StackAlign | keyof typeof StackAlign | string;
|
|
1443
1446
|
declare class ImageBuilder extends FiboBuilder {
|
|
1444
1447
|
private _src;
|
|
1445
1448
|
private _alt;
|
|
1446
1449
|
private _fit;
|
|
1450
|
+
private _objectPosition?;
|
|
1447
1451
|
private _resizable;
|
|
1448
1452
|
/** Image-native clip (Tailwind / borderRadius on `<img>`). Distinct from
|
|
1449
1453
|
* {@link FiboBuilder.clipShape} chrome wrapper. */
|
|
@@ -1456,7 +1460,16 @@ declare class ImageBuilder extends FiboBuilder {
|
|
|
1456
1460
|
alt(value: string): this;
|
|
1457
1461
|
resizable(): this;
|
|
1458
1462
|
scaledToFit(): this;
|
|
1459
|
-
|
|
1463
|
+
/**
|
|
1464
|
+
* Cover the frame (`object-fit: cover`). Optional alignment biases the crop
|
|
1465
|
+
* — e.g. `scaledToFill(StackAlign.top)` keeps faces in a wide short hero.
|
|
1466
|
+
*/
|
|
1467
|
+
scaledToFill(alignment?: ImagePosition): this;
|
|
1468
|
+
/**
|
|
1469
|
+
* CSS `object-position` for cover/contain crops.
|
|
1470
|
+
* Accepts {@link StackAlign} (`top`, `topLeft`, …) or a raw CSS value (`'50% 20%'`).
|
|
1471
|
+
*/
|
|
1472
|
+
objectPosition(value: ImagePosition): this;
|
|
1460
1473
|
/**
|
|
1461
1474
|
* Fixed numeric `{ width, height }` still paints on the `<img>` (tests +
|
|
1462
1475
|
* object-fit). Any flexible SwiftUI frame (`maxWidth: Size.infinity`, …)
|
package/dist/content.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { A as s, B as r, I as o } from "./icons-
|
|
2
|
-
import {
|
|
3
|
-
import { A as
|
|
1
|
+
import { A as s, B as r, I as o } from "./icons-CUjbVN8n.js";
|
|
2
|
+
import { am as n, al as m } from "./client-CNrWulRU.js";
|
|
3
|
+
import { A as g, I as l, L as p, P as x, a as A, S as f } from "./index-Dm9qGQyL.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
5
|
+
g as Alert,
|
|
6
6
|
s as Avatar,
|
|
7
7
|
r as Badge,
|
|
8
8
|
n as Icon,
|
|
9
9
|
o as Image,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
l as Integration,
|
|
11
|
+
p as Label,
|
|
12
|
+
x as Progress,
|
|
13
|
+
A as Skeleton,
|
|
14
|
+
f as Spinner,
|
|
15
|
+
m as Text
|
|
16
16
|
};
|
package/dist/core.d.ts
CHANGED
|
@@ -692,6 +692,8 @@ export declare class PseudoStateBuilder {
|
|
|
692
692
|
translateY(value: number | string): this;
|
|
693
693
|
rotate(degrees: number): this;
|
|
694
694
|
shadow(value: string | number): this;
|
|
695
|
+
/** Same surface as `Box().css({})` — object bag or `(property, value)`. */
|
|
696
|
+
css(styles: React$1.CSSProperties): this;
|
|
695
697
|
css(property: string, value: string | number): this;
|
|
696
698
|
padding(value: string | number): this;
|
|
697
699
|
p(value: string | number): this;
|
|
@@ -1692,9 +1694,38 @@ type KnownKeys<T> = {
|
|
|
1692
1694
|
} extends {
|
|
1693
1695
|
[_ in keyof T]: infer U;
|
|
1694
1696
|
} ? U : never;
|
|
1695
|
-
|
|
1697
|
+
/**
|
|
1698
|
+
* Fluent CSS methods on every builder. Kept as a named exported type so
|
|
1699
|
+
* `index.d.ts` references `StyleBuilder<T>` instead of expanding the CSS map
|
|
1700
|
+
* into every widget (that blew the file past 20MB and also typed chains as `any`).
|
|
1701
|
+
*/
|
|
1702
|
+
export type StyleBuilder<T> = T & LogicalAxes & {
|
|
1696
1703
|
[K in KnownKeys<React$1.CSSProperties>]-?: (value: React$1.CSSProperties[K]) => StyleBuilder<T>;
|
|
1697
1704
|
} & React$1.ReactElement;
|
|
1705
|
+
/**
|
|
1706
|
+
* Like `React.memo`, but for fluent builders: write a normal function that
|
|
1707
|
+
* returns a builder — `createComponent` keeps every method of that return
|
|
1708
|
+
* (`GlassField().label().name()…`). No `fn('label', { opts })` bags.
|
|
1709
|
+
*
|
|
1710
|
+
* ```ts
|
|
1711
|
+
* // Preferred — your component is a normal function:
|
|
1712
|
+
* const glassField = () => {
|
|
1713
|
+
* return TextField().variant('outlined').rounded(16).className('cubee-field')
|
|
1714
|
+
* }
|
|
1715
|
+
* export const GlassField = createComponent(glassField)
|
|
1716
|
+
* GlassField().label('E-mail').name('email').type('email')
|
|
1717
|
+
*
|
|
1718
|
+
* // Optional — base factory + body gets `{ f }` (same idea as props):
|
|
1719
|
+
* export const GlassField = createComponent(TextField, ({ f }) => {
|
|
1720
|
+
* return f.variant('outlined').rounded(16).className('cubee-field')
|
|
1721
|
+
* })
|
|
1722
|
+
* ```
|
|
1723
|
+
*/
|
|
1724
|
+
export declare function createComponent<Args extends any[], B>(factory: (...args: Args) => B, setup?: (ctx: {
|
|
1725
|
+
f: B;
|
|
1726
|
+
}) => B | void): (...args: Args) => B;
|
|
1727
|
+
/** @deprecated Prefer `createComponent` — same behavior. */
|
|
1728
|
+
export declare const preset: typeof createComponent;
|
|
1698
1729
|
interface SignalLike<T> {
|
|
1699
1730
|
value: T;
|
|
1700
1731
|
subscribe: (listener: (val: T) => void) => () => void;
|
package/dist/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e, E as t, X as r, a6 as i, a3 as o, a4 as n, _ as l, F as u, T as S, L as c, Q as p, Z as g, O as T, n as b, B as v, P as F, R as
|
|
2
|
-
import { F as
|
|
1
|
+
import { C as e, E as t, X as r, a6 as i, a3 as o, a4 as n, _ as l, F as u, T as S, L as c, Q as p, Z as g, O as T, n as b, B as v, P as F, R as C, D as E, G as d, S as m, a8 as R, t as f, q as I, d as P, c as y, a9 as O, b as x, a as M, a2 as N, Y as _, e as w, f as A, a0 as B, g as V, $ as D, a1 as L, V as U, W as h, i as q, l as z, a5 as G, U as K, o as W, aa as X, h as j, N as k, r as H, H as J, s as Q, M as Y, I as Z, K as $, J as ss, a7 as as, m as es, y as ts, k as rs, z as is, p as os, j as ns, A as ls, u as us, w as Ss, x as cs, v as ps } from "./client-CNrWulRU.js";
|
|
2
|
+
import { F as Ts, P as bs, T as vs, U as Fs, a as Cs, c as Es, p as ds, w as ms } from "./page-LLSMLaL2.js";
|
|
3
3
|
export {
|
|
4
4
|
e as ComputedSignal,
|
|
5
5
|
t as Easing,
|
|
@@ -9,67 +9,69 @@ export {
|
|
|
9
9
|
n as FiboAppBuilder,
|
|
10
10
|
l as FiboStyles,
|
|
11
11
|
u as FineGrainText,
|
|
12
|
-
|
|
12
|
+
Ts as Format,
|
|
13
13
|
S as INTERACTION_EFFECTS,
|
|
14
14
|
c as ListSignal,
|
|
15
15
|
p as MOTION_PRESETS,
|
|
16
16
|
g as MotionStyles,
|
|
17
17
|
T as Observable,
|
|
18
18
|
b as Observer,
|
|
19
|
-
|
|
19
|
+
bs as Plural,
|
|
20
20
|
v as Presence,
|
|
21
21
|
F as ProviderWrapper,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
C as ReactivityRoot,
|
|
23
|
+
E as Reveal,
|
|
24
|
+
d as ScrollProgress,
|
|
25
|
+
m as Signal,
|
|
26
|
+
vs as Transform,
|
|
27
|
+
Fs as Unit,
|
|
28
|
+
R as ValueBuilder,
|
|
29
|
+
f as applyResponsiveStyles,
|
|
30
30
|
I as bindText,
|
|
31
31
|
P as collection,
|
|
32
32
|
y as computed,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
x as
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
N as
|
|
39
|
-
_ as
|
|
40
|
-
w as
|
|
41
|
-
A as
|
|
42
|
-
B as
|
|
43
|
-
V as
|
|
44
|
-
D as
|
|
45
|
-
L as
|
|
46
|
-
U as
|
|
47
|
-
h as
|
|
48
|
-
q as
|
|
49
|
-
z as
|
|
50
|
-
G as
|
|
51
|
-
K as
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
X as
|
|
55
|
-
j as
|
|
56
|
-
k as
|
|
57
|
-
H as
|
|
58
|
-
J as
|
|
59
|
-
Q as
|
|
60
|
-
Y as
|
|
61
|
-
Z as
|
|
62
|
-
$ as
|
|
63
|
-
ss as
|
|
64
|
-
as as
|
|
65
|
-
es as
|
|
66
|
-
ts as
|
|
67
|
-
rs as
|
|
68
|
-
is as
|
|
69
|
-
os as
|
|
70
|
-
ns as
|
|
71
|
-
ls as
|
|
72
|
-
us as
|
|
73
|
-
Ss as
|
|
74
|
-
|
|
33
|
+
O as createComponent,
|
|
34
|
+
Cs as createPage,
|
|
35
|
+
x as createReactivityRoot,
|
|
36
|
+
M as createStore,
|
|
37
|
+
Es as cssCurve,
|
|
38
|
+
N as endSsrRequest,
|
|
39
|
+
_ as ensureInteractionFxCss,
|
|
40
|
+
w as ensureListId,
|
|
41
|
+
A as fiboDevStats,
|
|
42
|
+
B as getCss,
|
|
43
|
+
V as getCurrentScope,
|
|
44
|
+
D as getMotionCss,
|
|
45
|
+
L as getStyleTag,
|
|
46
|
+
U as interactionEffectClass,
|
|
47
|
+
h as interactionEffectKebab,
|
|
48
|
+
q as interp,
|
|
49
|
+
z as listSignal,
|
|
50
|
+
G as mount,
|
|
51
|
+
K as normalizeInteractionEffect,
|
|
52
|
+
W as observable,
|
|
53
|
+
ds as page,
|
|
54
|
+
X as preset,
|
|
55
|
+
j as resetFiboDevStats,
|
|
56
|
+
k as resolveCssEase,
|
|
57
|
+
H as runInScope,
|
|
58
|
+
J as scrollTo,
|
|
59
|
+
Q as signal,
|
|
60
|
+
Y as springEase,
|
|
61
|
+
Z as startViewTransition,
|
|
62
|
+
$ as supportsScrollTimeline,
|
|
63
|
+
ss as supportsViewTimeline,
|
|
64
|
+
as as toElement,
|
|
65
|
+
es as useBuilderState,
|
|
66
|
+
ts as useMountTransition,
|
|
67
|
+
rs as useObservable,
|
|
68
|
+
is as usePrefersReducedMotion,
|
|
69
|
+
os as useProvider,
|
|
70
|
+
ns as useReactiveStore,
|
|
71
|
+
ls as useScrollProgress,
|
|
72
|
+
us as useSignal,
|
|
73
|
+
Ss as useSpring,
|
|
74
|
+
cs as useStagger,
|
|
75
|
+
ps as useTransition,
|
|
76
|
+
ms as withFiboStyles
|
|
75
77
|
};
|