fiboui 2.8.2 → 2.8.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/README.md +3 -3
- package/dist/{client-BISJTJUX.js → client-DOrZXJAN.js} +6843 -6225
- package/dist/content.js +3 -3
- package/dist/core.js +55 -55
- package/dist/{icons-BGZkIpm8.js → icons-DujcjAOD.js} +5 -5
- package/dist/{index-CZs58ByQ.js → index-19mPjg_D.js} +3 -3
- package/dist/{index-5LiratLS.js → index-C0qI47Zw.js} +14 -14
- package/dist/{index-DBeuxHdZ.js → index-CYMoWJMX.js} +78 -78
- package/dist/{index-B5hJpNl2.js → index-rNMzRy8Y.js} +13 -13
- package/dist/{index-C2EZ1rgJ.js → index-uks8jtfK.js} +30 -30
- package/dist/index.d.ts +319 -274
- package/dist/index.js +194 -194
- package/dist/interactive.js +13 -13
- package/dist/layout.js +7 -7
- package/dist/{metadata-SJcQu-yM.js → metadata-9Bpw89m2.js} +17 -17
- package/dist/navigation.js +4 -4
- package/dist/page-BOQJIKa5.js +184 -0
- package/dist/server.js +663 -621
- package/dist/structure.js +3 -3
- package/dist/theme.js +5 -5
- package/package.json +1 -1
- package/dist/page-D8FyCPcH.js +0 -302
package/README.md
CHANGED
|
@@ -148,12 +148,12 @@ Box()
|
|
|
148
148
|
.children(() => [
|
|
149
149
|
Text(`Count: ${count.value}`),
|
|
150
150
|
Button('+').onPress(() => {
|
|
151
|
-
count.
|
|
151
|
+
count.change((n) => n + 1)
|
|
152
152
|
}),
|
|
153
153
|
])
|
|
154
154
|
```
|
|
155
155
|
|
|
156
|
-
`.bindSignal` re-assembles. Read `.value` inside a **function child** so updates are live. `` Text(`Total ${todos.$length}`) `` stays live without a function child. Forms and validation: [Form](docs/components/interactive-form.md).
|
|
156
|
+
`.bindSignal` re-assembles. Read `.value` inside a **function child** so updates are live. `.value =`, `.set()`, `.change()`, and `.reset()` all notify the same way. `` Text(`Total ${todos.$length}`) `` stays live without a function child. Forms and validation: [Form](docs/components/interactive-form.md).
|
|
157
157
|
|
|
158
158
|
```mermaid
|
|
159
159
|
sequenceDiagram
|
|
@@ -162,7 +162,7 @@ sequenceDiagram
|
|
|
162
162
|
participant H as onPress
|
|
163
163
|
|
|
164
164
|
UI->>S: .bindSignal(count)
|
|
165
|
-
H->>S: count.
|
|
165
|
+
H->>S: count.change(n => n + 1)
|
|
166
166
|
S-->>UI: notify subscribers
|
|
167
167
|
UI->>UI: re-assemble children()
|
|
168
168
|
```
|