@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.
@@ -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 }: CollapsibleContainerProps): import("react/jsx-runtime").JSX.Element;
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';
@@ -7,6 +7,8 @@ interface MetadataListProps {
7
7
  btnText?: string;
8
8
  styles?: {
9
9
  wrapper?: React.CSSProperties;
10
+ item?: React.CSSProperties;
11
+ delBtn?: React.CSSProperties;
10
12
  };
11
13
  onAdd?: () => void;
12
14
  onDelete?: (index: number, item: any) => void;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpustack/core-ui",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "private": false,
5
5
  "sideEffects": [
6
6
  "**/*.css",