@object-ui/components 4.6.0 → 4.8.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.
|
@@ -18,6 +18,7 @@ export * from './sort-builder';
|
|
|
18
18
|
export * from './grouping-editor';
|
|
19
19
|
export * from './action-param-dialog';
|
|
20
20
|
export * from './view-skeleton';
|
|
21
|
+
export * from './refresh-indicator';
|
|
21
22
|
export * from './view-states';
|
|
22
23
|
export * from './mobile-dialog-content';
|
|
23
24
|
export * from './export-progress-dialog';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ObjectUI
|
|
3
|
+
* Copyright (c) 2024-present ObjectStack Inc.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import * as React from "react";
|
|
9
|
+
export interface RefreshIndicatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
/** Whether the indicator is active. When false, nothing is rendered. */
|
|
11
|
+
active: boolean;
|
|
12
|
+
/** Accessible label. Defaults to "Refreshing". */
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Thin, absolutely-positioned indeterminate progress bar that animates across
|
|
17
|
+
* the top edge of its nearest positioned ancestor. Use it to signal that a
|
|
18
|
+
* re-fetch is in flight while existing data stays visible underneath — covers
|
|
19
|
+
* the gap between "loading skeleton (no data yet)" and "data swapped in".
|
|
20
|
+
*
|
|
21
|
+
* The parent **must** be `position: relative` (or absolute/fixed) for the
|
|
22
|
+
* indicator to anchor to its top edge.
|
|
23
|
+
*/
|
|
24
|
+
export declare const RefreshIndicator: React.FC<RefreshIndicatorProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@object-ui/components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Standard UI component library for Object UI, built with Shadcn UI + Tailwind CSS",
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
"tailwind-merge": "^3.6.0",
|
|
70
70
|
"tailwindcss-animate": "^1.0.7",
|
|
71
71
|
"vaul": "^1.1.2",
|
|
72
|
-
"@object-ui/core": "4.
|
|
73
|
-
"@object-ui/i18n": "4.
|
|
74
|
-
"@object-ui/react": "4.
|
|
75
|
-
"@object-ui/types": "4.
|
|
72
|
+
"@object-ui/core": "4.8.0",
|
|
73
|
+
"@object-ui/i18n": "4.8.0",
|
|
74
|
+
"@object-ui/react": "4.8.0",
|
|
75
|
+
"@object-ui/types": "4.8.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"react": "^18.0.0 || ^19.0.0",
|