@cosxai/ui 0.3.1 → 0.3.2
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/package.json
CHANGED
|
@@ -276,7 +276,11 @@ export function ActionBar({
|
|
|
276
276
|
}, [expandedKey, setExpandedKey]);
|
|
277
277
|
|
|
278
278
|
// ----- Empty state -----
|
|
279
|
-
|
|
279
|
+
// Bar renders when EITHER any page item is registered OR the
|
|
280
|
+
// status dot is set. Without the statusDot check, an app whose
|
|
281
|
+
// only consumer is `useActionBarStatusDot` (e.g. a system-status-
|
|
282
|
+
// only surface) would never see the bar at all.
|
|
283
|
+
if (items.length === 0 && !statusDot) return null;
|
|
280
284
|
|
|
281
285
|
// ----- Collapsed handle (phone only) -----
|
|
282
286
|
if (isPhone && collapsibleOnPhone && collapsed) {
|