@dxos/plugin-status-bar 0.13.0 → 0.14.0
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/lib/StatusBar.mjs +11 -6
- package/dist/lib/StatusBar.mjs.map +1 -1
- package/dist/lib/chunk-StatusBarActions.mjs +1 -1
- package/dist/lib/chunk-VersionNumber.mjs +1 -1
- package/dist/types/src/components/StatusBar/StatusBar.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/src/components/StatusBar/StatusBar.tsx +7 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-status-bar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Status bar plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -84,11 +84,11 @@
|
|
|
84
84
|
"@ark-ui/react": "^5.39.1",
|
|
85
85
|
"date-fns": "^3.6.0",
|
|
86
86
|
"effect": "4.0.0",
|
|
87
|
-
"@dxos/app-framework": "0.
|
|
88
|
-
"@dxos/app-toolkit": "0.
|
|
89
|
-
"@dxos/plugin-deck": "0.
|
|
90
|
-
"@dxos/
|
|
91
|
-
"@dxos/
|
|
87
|
+
"@dxos/app-framework": "0.14.0",
|
|
88
|
+
"@dxos/app-toolkit": "0.14.0",
|
|
89
|
+
"@dxos/plugin-deck": "0.14.0",
|
|
90
|
+
"@dxos/util": "0.14.0",
|
|
91
|
+
"@dxos/react-client": "0.14.0"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@storybook/react-vite": "^10.6.0",
|
|
@@ -97,16 +97,16 @@
|
|
|
97
97
|
"react": "~19.2.7",
|
|
98
98
|
"react-dom": "~19.2.7",
|
|
99
99
|
"vite": "^8.2.2",
|
|
100
|
-
"@dxos/plugin-testing": "0.
|
|
101
|
-
"@dxos/react-ui": "0.
|
|
102
|
-
"@dxos/ui-theme": "0.
|
|
100
|
+
"@dxos/plugin-testing": "0.14.0",
|
|
101
|
+
"@dxos/react-ui": "0.14.0",
|
|
102
|
+
"@dxos/ui-theme": "0.14.0"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
105
|
"effect": "4.0.0",
|
|
106
106
|
"react": "~19.2.7",
|
|
107
107
|
"react-dom": "~19.2.7",
|
|
108
|
-
"@dxos/react-ui": "^0.
|
|
109
|
-
"@dxos/ui-theme": "^0.
|
|
108
|
+
"@dxos/react-ui": "^0.14.0",
|
|
109
|
+
"@dxos/ui-theme": "^0.14.0"
|
|
110
110
|
},
|
|
111
111
|
"publishConfig": {
|
|
112
112
|
"access": "public"
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { ark } from '@ark-ui/react/factory';
|
|
6
6
|
import React, { type ComponentPropsWithRef, type PropsWithChildren, type ReactNode, forwardRef } from 'react';
|
|
7
7
|
|
|
8
|
+
import * as Layout from '@dxos/react-ui/Layout';
|
|
8
9
|
import type * as Util from '@dxos/react-ui/Util';
|
|
9
10
|
import { mx } from '@dxos/ui-theme';
|
|
10
11
|
|
|
@@ -17,9 +18,9 @@ type StatusBarItemProps = Util.ThemedClassName<PropsWithChildren>;
|
|
|
17
18
|
const StatusBarItem = forwardRef<HTMLDivElement, StatusBarItemProps>(
|
|
18
19
|
({ classNames, children, ...props }, forwardedRef) => {
|
|
19
20
|
return (
|
|
20
|
-
<
|
|
21
|
+
<Layout.Grid {...props} role='status' center classNames={classNames} ref={forwardedRef}>
|
|
21
22
|
{children}
|
|
22
|
-
</
|
|
23
|
+
</Layout.Grid>
|
|
23
24
|
);
|
|
24
25
|
},
|
|
25
26
|
);
|
|
@@ -75,9 +76,9 @@ const StatusBarButton = forwardRef<HTMLButtonElement, StatusBarButtonProps>(
|
|
|
75
76
|
type StartContentProps = Util.ThemedClassName<PropsWithChildren<{}>>;
|
|
76
77
|
|
|
77
78
|
const StartContent = forwardRef<HTMLDivElement, StartContentProps>(({ classNames, children }, forwardedRef) => (
|
|
78
|
-
<
|
|
79
|
+
<Layout.Flex align='center' classNames={['flex-grow space-x-2', classNames]} ref={forwardedRef}>
|
|
79
80
|
{children}
|
|
80
|
-
</
|
|
81
|
+
</Layout.Flex>
|
|
81
82
|
));
|
|
82
83
|
|
|
83
84
|
//
|
|
@@ -87,9 +88,9 @@ const StartContent = forwardRef<HTMLDivElement, StartContentProps>(({ classNames
|
|
|
87
88
|
type EndContentProps = Util.ThemedClassName<PropsWithChildren<{}>>;
|
|
88
89
|
|
|
89
90
|
const EndContent = forwardRef<HTMLDivElement, EndContentProps>(({ classNames, children }, forwardedRef) => (
|
|
90
|
-
<
|
|
91
|
+
<Layout.Flex align='center' justify='end' classNames={['flex-grow', classNames]} ref={forwardedRef}>
|
|
91
92
|
{children}
|
|
92
|
-
</
|
|
93
|
+
</Layout.Flex>
|
|
93
94
|
));
|
|
94
95
|
|
|
95
96
|
//
|