fiboui 2.9.0 → 2.9.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.
Files changed (2) hide show
  1. package/dist/index.js +22 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -281,25 +281,37 @@ class We extends y {
281
281
  principal: [],
282
282
  trailing: []
283
283
  };
284
- for (const m of t)
285
- r[je(m)].push(m);
284
+ for (const f of t)
285
+ r[je(f)].push(f);
286
286
  const { className: i, style: n, children: o, ...a } = this._props, l = ["fibo-app-bar", this.getClassName(), i].filter(Boolean).join(" "), h = {
287
287
  display: "flex",
288
- alignItems: "flex-end",
288
+ alignItems: "center",
289
289
  width: "100%",
290
- gap: 16,
291
290
  ...this.getStyle(),
292
291
  ...n && typeof n == "object" ? n : {}
293
- }, d = De.filter((m) => r[m].length > 0).map((m) => u.createElement(
292
+ }, d = {
293
+ leading: "flex-start",
294
+ principal: "center",
295
+ trailing: "flex-end"
296
+ }, m = De.map((f) => u.createElement(
294
297
  "div",
295
298
  {
296
- key: m,
297
- className: `fibo-app-bar-${m}`,
298
- style: m === "principal" ? { flex: "1 1 auto", minWidth: 0 } : { display: "flex", alignItems: "flex-end", gap: 12, flexShrink: 0 }
299
+ key: f,
300
+ className: `fibo-app-bar-${f}`,
301
+ "data-toolbar-slot": f,
302
+ "data-empty": r[f].length === 0 ? "true" : void 0,
303
+ style: {
304
+ flex: "1 1 0",
305
+ minWidth: 0,
306
+ display: "flex",
307
+ alignItems: "center",
308
+ justifyContent: d[f],
309
+ gap: 12
310
+ }
299
311
  },
300
- ...r[m]
312
+ ...r[f]
301
313
  ));
302
- return u.createElement("header", { ...a, className: l, style: h }, ...d);
314
+ return u.createElement("header", { ...a, className: l, style: h }, ...m);
303
315
  }
304
316
  }
305
317
  const Gi = _(He), zi = _(We), ae = ["top", "bottom", "left", "right"], Ve = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fiboui",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "description": "Flutter/SwiftUI-inspired React UI — fluent builders, signals, and themes. https://fiboui.vercel.app",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",