@gpustack/core-ui 1.0.20 → 1.0.21
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/index.css +1 -1
- package/dist/index.es.js +328 -349
- package/dist/src/lib/components/collapse-container/index.d.ts +1 -1
- package/dist/src/lib/components/index.d.ts +1 -0
- package/dist/src/lib/components/metadata-list/index.d.ts +2 -0
- package/dist/src/lib/components/switch-card/index.d.ts +18 -0
- package/package.json +1 -1
|
@@ -21,4 +21,4 @@ export interface CollapseContainerProps {
|
|
|
21
21
|
content?: React.CSSProperties;
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
export default function CollapsibleContainer({ title, subtitle, right, deleteBtn, defaultOpen, open, onToggle, disabled, showExpandIcon, variant, className, collapsible, iconPlacement, styles: cardStyles, children }:
|
|
24
|
+
export default function CollapsibleContainer({ title, subtitle, right, deleteBtn, defaultOpen, open, onToggle, disabled, showExpandIcon, variant, className, collapsible, iconPlacement, styles: cardStyles, children }: CollapseContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -104,6 +104,7 @@ export { default as SmallCloseButton } from './small-close-button';
|
|
|
104
104
|
export { default as SpeechContent } from './speech-content';
|
|
105
105
|
export { default as StatusTag } from './status-tag';
|
|
106
106
|
export { default as SubDrawer, type SubDrawerProps } from './sub-drawer';
|
|
107
|
+
export { default as SwitchCard } from './switch-card';
|
|
107
108
|
export { default as Table } from './table';
|
|
108
109
|
export { default as CellContent } from './table/components/cell-content';
|
|
109
110
|
export { default as RowChildren } from './table/components/row-children';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface SwitchCardProps {
|
|
3
|
+
label: React.ReactNode;
|
|
4
|
+
value?: boolean;
|
|
5
|
+
defaultValue?: boolean;
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
showSwitch?: boolean;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
styles?: {
|
|
10
|
+
wrapper?: React.CSSProperties;
|
|
11
|
+
checkboxWrapper?: React.CSSProperties;
|
|
12
|
+
label?: React.CSSProperties;
|
|
13
|
+
};
|
|
14
|
+
action?: React.ReactNode;
|
|
15
|
+
onChange?: (checked: boolean) => void;
|
|
16
|
+
}
|
|
17
|
+
declare const SwitchCard: React.FC<SwitchCardProps>;
|
|
18
|
+
export default SwitchCard;
|