fiboui 2.9.4 → 2.9.6
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-lzMYg4vy.js → client-DspTEDnT.js} +1717 -1591
- package/dist/content.d.ts +43 -0
- package/dist/content.js +3 -3
- package/dist/core.d.ts +43 -0
- package/dist/core.js +2 -2
- package/dist/{icons-CirVDr1q.js → icons-uTGNZEj2.js} +1 -1
- package/dist/{index-Dz8r4kWQ.js → index-B7vkEz57.js} +51 -51
- package/dist/{index-CtvQ20_N.js → index-BK9NhRgp.js} +1 -1
- package/dist/{index-DYFx4V14.js → index-CE3dybe8.js} +13 -13
- package/dist/{index-D1oVA2Du.js → index-pxNM6-DO.js} +2 -2
- package/dist/{index-C_GtMcVT.js → index-vSLH4ZkD.js} +41 -34
- package/dist/index.d.ts +89 -0
- package/dist/index.js +339 -325
- package/dist/interactive.d.ts +43 -0
- package/dist/interactive.js +2 -2
- package/dist/layout.d.ts +53 -0
- package/dist/layout.js +3 -3
- package/dist/{metadata-DPU8tP_P.js → metadata-BqVnmMLq.js} +1 -1
- package/dist/navigation.js +2 -2
- package/dist/{page-fKXx7Y-J.js → page-CQCVouvN.js} +1 -1
- package/dist/server.d.ts +53 -0
- package/dist/server.js +1139 -1016
- package/dist/structure.d.ts +43 -0
- package/dist/structure.js +2 -2
- package/dist/style.css +1 -1
- package/dist/theme.js +1 -1
- package/package.json +1 -1
package/dist/structure.d.ts
CHANGED
|
@@ -425,6 +425,12 @@ interface FrameSpec {
|
|
|
425
425
|
idealHeight?: FrameSize;
|
|
426
426
|
maxHeight?: FrameSize;
|
|
427
427
|
alignment?: StackAlign | keyof typeof StackAlign;
|
|
428
|
+
/**
|
|
429
|
+
* Stretch the direct child to the frame slot (`width/height: 100%`).
|
|
430
|
+
* Default `false` — SwiftUI-like hug + `alignment`.
|
|
431
|
+
* Use when paint (`.bg`, border) lives on the child and should fill the frame.
|
|
432
|
+
*/
|
|
433
|
+
fill?: boolean;
|
|
428
434
|
}
|
|
429
435
|
type ClipShapeName = "circle" | "rounded" | "square";
|
|
430
436
|
interface OffsetSpec {
|
|
@@ -511,6 +517,30 @@ type EdgeInsetsValue = {
|
|
|
511
517
|
/** CSS right — alias of trailing in LTR */
|
|
512
518
|
right?: number | string;
|
|
513
519
|
};
|
|
520
|
+
declare const Material: {
|
|
521
|
+
readonly ultraThin: {
|
|
522
|
+
readonly blur: 20;
|
|
523
|
+
readonly background: "rgba(255, 255, 255, 0.35)";
|
|
524
|
+
};
|
|
525
|
+
readonly thin: {
|
|
526
|
+
readonly blur: 28;
|
|
527
|
+
readonly background: "rgba(255, 255, 255, 0.48)";
|
|
528
|
+
};
|
|
529
|
+
readonly regular: {
|
|
530
|
+
readonly blur: 36;
|
|
531
|
+
readonly background: "rgba(255, 255, 255, 0.62)";
|
|
532
|
+
};
|
|
533
|
+
readonly thick: {
|
|
534
|
+
readonly blur: 48;
|
|
535
|
+
readonly background: "rgba(255, 255, 255, 0.78)";
|
|
536
|
+
};
|
|
537
|
+
readonly ultraThick: {
|
|
538
|
+
readonly blur: 60;
|
|
539
|
+
readonly background: "rgba(255, 255, 255, 0.88)";
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
type MaterialKind = keyof typeof Material;
|
|
543
|
+
type MaterialSpec = (typeof Material)[MaterialKind];
|
|
514
544
|
type SafeAreaInsetEdge = Edge | "top" | "bottom" | "leading" | "trailing" | "left" | "right";
|
|
515
545
|
type SafeAreaInsetSpec = {
|
|
516
546
|
edge: SafeAreaInsetEdge;
|
|
@@ -804,9 +834,12 @@ declare abstract class FiboBuilder {
|
|
|
804
834
|
* maxHeight: Size.infinity,
|
|
805
835
|
* alignment: StackAlign.topTrailing,
|
|
806
836
|
* })
|
|
837
|
+
* // Child fills the slot (bg/border on the child cover the frame):
|
|
838
|
+
* Box().bg('red').frame({ maxWidth: Size.infinity, fill: true })
|
|
807
839
|
* ```
|
|
808
840
|
*
|
|
809
841
|
* Chainable: each `.frame()` wraps the previous (same as SwiftUI).
|
|
842
|
+
* Default: child hugs + `alignment`. Pass `fill: true` to stretch the child.
|
|
810
843
|
*/
|
|
811
844
|
frame(spec: FrameSpec): this;
|
|
812
845
|
/**
|
|
@@ -1015,6 +1048,16 @@ declare abstract class FiboBuilder {
|
|
|
1015
1048
|
text(color: string | Colors): this;
|
|
1016
1049
|
color(value: string | Colors): this;
|
|
1017
1050
|
private resolveSemanticColor;
|
|
1051
|
+
/**
|
|
1052
|
+
* Backdrop blur (glass). Prefer over raw `.backdropFilter('blur(…)')`.
|
|
1053
|
+
* `20` → `blur(20px)`; also accepts `'20px'` or a full `blur(…)` string.
|
|
1054
|
+
*/
|
|
1055
|
+
backdropBlur(radius?: number | string): this;
|
|
1056
|
+
/**
|
|
1057
|
+
* SwiftUI `Material` glass fill — blur + translucent background.
|
|
1058
|
+
* `Box().material(Material.ultraThin)` or `.material('regular')`.
|
|
1059
|
+
*/
|
|
1060
|
+
material(kind: MaterialKind | MaterialSpec): this;
|
|
1018
1061
|
shadow(config?: ShadowConfig): this;
|
|
1019
1062
|
/**
|
|
1020
1063
|
* Breakpoint styles compiled to CSS `@media` (same engine as `.md()`).
|
package/dist/structure.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aF as r, aH as e, aG as o } from "./client-
|
|
2
|
-
import { A as C, B as d, C as i, c as l, d as n, G, b as T, L as f, P as m, T as p, a as x } from "./index-
|
|
1
|
+
import { aF as r, aH as e, aG as o } from "./client-DspTEDnT.js";
|
|
2
|
+
import { A as C, B as d, C as i, c as l, d as n, G, b as T, L as f, P as m, T as p, a as x } from "./index-B7vkEz57.js";
|
|
3
3
|
export {
|
|
4
4
|
C as AssetCard,
|
|
5
5
|
d as Banner,
|