@gpustack/core-ui 1.0.31 → 1.0.33
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.
|
@@ -84,7 +84,7 @@ export { default as MoreButton } from './more-button';
|
|
|
84
84
|
export { default as NoResult } from './no-result';
|
|
85
85
|
export { default as OverlayScroller, TooltipOverlayScroller as TooltipOverlayScroller } from './overlay-scroller';
|
|
86
86
|
export { default as PageBreadcrumb } from './page-breadcrumb';
|
|
87
|
-
export {
|
|
87
|
+
export { HeaderLeft, HeaderRight, HeaderSlotContext, usePageContentStyle, type HeaderSlotContextValue } from './page-container';
|
|
88
88
|
export { FilterBar, FiltersButton, default as PageTools } from './page-tools';
|
|
89
89
|
export { default as Popover } from './popover';
|
|
90
90
|
export { default as ProgressBar } from './progress-bar';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type HeaderSlotContextValue = {
|
|
2
|
+
leftEl: HTMLElement | null;
|
|
3
|
+
rightEl: HTMLElement | null;
|
|
4
|
+
setContentStyle: (style: React.CSSProperties | undefined) => () => void;
|
|
5
|
+
registerSlot: (slot: 'left' | 'right') => () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const HeaderSlotContext: import('react').Context<HeaderSlotContextValue | null>;
|
|
8
|
+
export declare const HeaderLeft: React.FC<{
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const HeaderRight: React.FC<{
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const usePageContentStyle: (style?: React.CSSProperties) => void;
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const PageContainerInner: React.FC<PageContainerProps & {
|
|
3
|
-
paddingInlinePageContainerContent?: number;
|
|
4
|
-
extraContentRender?: () => React.ReactNode;
|
|
5
|
-
leftContent?: React.ReactNode;
|
|
6
|
-
rightContent?: React.ReactNode;
|
|
7
|
-
styles?: {
|
|
8
|
-
containerWrapper?: React.CSSProperties;
|
|
9
|
-
};
|
|
10
|
-
}>;
|
|
11
|
-
export declare const PageBox: React.FC<{
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
style?: React.CSSProperties;
|
|
14
|
-
}>;
|
|
15
|
-
export default PageContainerInner;
|
|
1
|
+
export { HeaderLeft, HeaderRight, HeaderSlotContext, usePageContentStyle, type HeaderSlotContextValue } from './header-slot';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gpustack/core-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.33",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,33 +13,33 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
|
-
"types": "./dist/
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
17
|
"import": "./dist/index.es.js"
|
|
18
18
|
},
|
|
19
19
|
"./markdown": {
|
|
20
|
-
"types": "./dist/
|
|
20
|
+
"types": "./dist/markdown.d.ts",
|
|
21
21
|
"import": "./dist/markdown.es.js"
|
|
22
22
|
},
|
|
23
23
|
"./yaml-editor": {
|
|
24
|
-
"types": "./dist/
|
|
24
|
+
"types": "./dist/yaml-editor.d.ts",
|
|
25
25
|
"import": "./dist/yaml-editor.es.js"
|
|
26
26
|
},
|
|
27
27
|
"./excel": {
|
|
28
|
-
"types": "./dist/
|
|
28
|
+
"types": "./dist/excel.d.ts",
|
|
29
29
|
"import": "./dist/excel.es.js"
|
|
30
30
|
},
|
|
31
31
|
"./file-readers": {
|
|
32
|
-
"types": "./dist/
|
|
32
|
+
"types": "./dist/file-readers.d.ts",
|
|
33
33
|
"import": "./dist/file-readers.es.js"
|
|
34
34
|
},
|
|
35
35
|
"./utils": {
|
|
36
|
-
"types": "./dist/
|
|
36
|
+
"types": "./dist/lib/utils/index.d.ts",
|
|
37
37
|
"import": "./dist/utils.es.js"
|
|
38
38
|
},
|
|
39
39
|
"./style.css": "./dist/index.css"
|
|
40
40
|
},
|
|
41
41
|
"module": "./dist/index.es.js",
|
|
42
|
-
"types": "./dist/
|
|
42
|
+
"types": "./dist/index.d.ts",
|
|
43
43
|
"files": [
|
|
44
44
|
"dist"
|
|
45
45
|
],
|