@gpustack/core-ui 1.0.4 → 1.0.6

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.
@@ -1,6 +1,6 @@
1
1
  import { o as e, r as t, t as n } from "./rolldown-runtime-BETGA6I9.js";
2
2
  import { t as r } from "./lodash-k2j6dYGv.js";
3
- import { t as i } from "./highlight-code-CyMnhIMR.js";
3
+ import { t as i } from "./highlight-code-BGo6UgwT.js";
4
4
  import a, { Fragment as o, useCallback as s, useEffect as c, useMemo as l } from "react";
5
5
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
6
6
  import { EyeOutlined as p } from "@ant-design/icons";
@@ -1,4 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  import { ChartProps } from './types';
3
- declare const _default: React.NamedExoticComponent<ChartProps>;
4
- export default _default;
3
+ declare const BarChart: React.FC<ChartProps>;
4
+ export default BarChart;
@@ -2,5 +2,6 @@ import { default as React } from 'react';
2
2
  import { ChartProps } from './types';
3
3
  declare const BarChart: React.FC<ChartProps & {
4
4
  maxItems?: number;
5
+ barWidth?: number;
5
6
  }>;
6
7
  export default BarChart;
@@ -1,7 +1,7 @@
1
- import { BarSeriesOption, GaugeSeriesOption, LineSeriesOption, ScatterSeriesOption } from 'echarts/charts';
1
+ import { BarSeriesOption, GaugeSeriesOption, LineSeriesOption, PieSeriesOption, ScatterSeriesOption } from 'echarts/charts';
2
2
  import { DatasetComponentOption, GridComponentOption, TitleComponentOption, TooltipComponentOption } from 'echarts/components';
3
3
  import { ComposeOption } from 'echarts/core';
4
4
  import * as echarts from 'echarts/core';
5
- type ECOption = ComposeOption<BarSeriesOption | LineSeriesOption | TitleComponentOption | TooltipComponentOption | GridComponentOption | DatasetComponentOption | GaugeSeriesOption | ScatterSeriesOption>;
5
+ type ECOption = ComposeOption<BarSeriesOption | LineSeriesOption | TitleComponentOption | TooltipComponentOption | GridComponentOption | DatasetComponentOption | GaugeSeriesOption | ScatterSeriesOption | PieSeriesOption>;
6
6
  export type { ECOption };
7
7
  export default echarts;
@@ -8,6 +8,7 @@ type AddModalProps = {
8
8
  width?: number | string;
9
9
  footer?: React.ReactNode;
10
10
  subTitle?: React.ReactNode;
11
+ loading?: boolean;
11
12
  };
12
13
  declare const FormDrawer: React.FC<AddModalProps>;
13
14
  export default FormDrawer;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  interface LabelSelectorProps {
3
- labels: Record<string, any>;
3
+ value?: Record<string, any>;
4
4
  label?: string;
5
5
  btnText?: string;
6
6
  description?: React.ReactNode;
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  interface ListInputProps {
3
3
  required?: boolean;
4
- dataList: string[];
4
+ value?: string[];
5
5
  label?: React.ReactNode;
6
6
  description?: React.ReactNode;
7
7
  btnText?: string;
@@ -13,7 +13,7 @@ interface ListInputProps {
13
13
  wrapper?: React.CSSProperties;
14
14
  item?: React.CSSProperties;
15
15
  };
16
- onChange: (data: string[]) => void;
16
+ onChange?: (data: string[]) => void;
17
17
  onBlur?: (e: any, index: number) => void;
18
18
  onDelete?: (index: number) => void;
19
19
  renderItem?: (data: any, props: {
@@ -1,3 +1,4 @@
1
+ import { SelectProps } from 'antd';
1
2
  import { default as React } from 'react';
2
3
  type PageToolsProps = {
3
4
  left?: React.ReactNode;
@@ -48,7 +49,7 @@ interface FilterBarProps {
48
49
  onClear: () => void;
49
50
  };
50
51
  select?: {
51
- showSearch?: boolean;
52
+ showSearch?: SelectProps['showSearch'];
52
53
  };
53
54
  widths?: {
54
55
  input?: number;
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./useIntl-BZWVSOXz.js";
2
- import { t } from "./editor-wrap-CMFkPgsW.js";
2
+ import { t } from "./editor-wrap-DFbXkvlV.js";
3
3
  import { forwardRef as n, useEffect as r, useImperativeHandle as i, useRef as a } from "react";
4
4
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
5
5
  import { ImportOutlined as c, LoadingOutlined as l } from "@ant-design/icons";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpustack/core-ui",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "private": false,
5
5
  "sideEffects": [
6
6
  "**/*.css",
@@ -1 +0,0 @@
1
- .editor-wrap{border-radius:var(--border-radius-mini);font-size:0;overflow:hidden}.editor-wrap .code-pre{margin-bottom:0}.editor-wrap .editor-header{background-color:var(--color-editor-header-bg);justify-content:space-between;align-items:center;padding-block:0;padding-inline:12px 10px;display:flex}.editor-wrap .scrollbar .slider{border-radius:6px}
@@ -1 +0,0 @@
1
- .index-module__wrapper___AP3Au{width:100%;padding-inline:8px;overflow-y:auto}.code-pre.dark .hljs{color:#abb2bf;background:var(--color-editor-dark)}.code-pre.dark .hljs-comment,.code-pre.dark .hljs-quote{color:#5c6370;font-style:italic}.code-pre.dark .hljs-doctag,.code-pre.dark .hljs-keyword,.code-pre.dark .hljs-formula{color:#c678dd}.code-pre.dark .hljs-section,.code-pre.dark .hljs-name,.code-pre.dark .hljs-selector-tag,.code-pre.dark .hljs-deletion,.code-pre.dark .hljs-subst{color:#e06c75}.code-pre.dark .hljs-literal{color:#56b6c2}.code-pre.dark .hljs-string,.code-pre.dark .hljs-regexp,.code-pre.dark .hljs-addition,.code-pre.dark .hljs-attribute,.code-pre.dark .hljs-meta .hljs-string{color:#98c379}.code-pre.dark .hljs-attr,.code-pre.dark .hljs-variable,.code-pre.dark .hljs-template-variable,.code-pre.dark .hljs-type,.code-pre.dark .hljs-selector-class,.code-pre.dark .hljs-selector-attr,.code-pre.dark .hljs-selector-pseudo,.code-pre.dark .hljs-number{color:#d19a66}.code-pre.dark .hljs-symbol,.code-pre.dark .hljs-bullet,.code-pre.dark .hljs-link,.code-pre.dark .hljs-meta,.code-pre.dark .hljs-selector-id,.code-pre.dark .hljs-title{color:#61aeee}.code-pre.dark .hljs-built_in,.code-pre.dark .hljs-title.class_,.code-pre.dark .hljs-class .hljs-title{color:#e6c07b}.code-pre.dark .hljs-emphasis{font-style:italic}.code-pre.dark .hljs-strong{font-weight:700}.code-pre.dark .hljs-link{text-decoration:underline}pre code.hljs{padding:1em;display:block;overflow-x:auto}code.hljs{padding:3px 5px}.code-pre.light .hljs{color:#383a42;background:var(--color-editor-light)}.code-pre.light .hljs-comment,.code-pre.light .hljs-quote{color:#a0a1a7;font-style:italic}.code-pre.light .hljs-doctag,.code-pre.light .hljs-keyword,.code-pre.light .hljs-formula{color:#a626a4}.code-pre.light .hljs-section,.code-pre.light .hljs-name,.code-pre.light .hljs-selector-tag,.code-pre.light .hljs-deletion,.code-pre.light .hljs-subst{color:#e45649}.code-pre.light .hljs-literal{color:#0184bb}.code-pre.light .hljs-string,.code-pre.light .hljs-regexp,.code-pre.light .hljs-addition,.code-pre.light .hljs-attribute,.code-pre.light .hljs-meta .hljs-string{color:#50a14f}.code-pre.light .hljs-attr,.code-pre.light .hljs-variable,.code-pre.light .hljs-template-variable,.code-pre.light .hljs-type,.code-pre.light .hljs-selector-class,.code-pre.light .hljs-selector-attr,.code-pre.light .hljs-selector-pseudo,.code-pre.light .hljs-number{color:#986801}.code-pre.light .hljs-symbol,.code-pre.light .hljs-bullet,.code-pre.light .hljs-link,.code-pre.light .hljs-meta,.code-pre.light .hljs-selector-id,.code-pre.light .hljs-title{color:#4078f2}.code-pre.light .hljs-built_in,.code-pre.light .hljs-title.class_,.code-pre.light .hljs-class .hljs-title{color:#c18401}.code-pre.light .hljs-emphasis{font-style:italic}.code-pre.light .hljs-strong{font-weight:700}.code-pre.light .hljs-link{text-decoration:underline}.high-light-wrapper{text-align:left;font-size:var(--font-size-code)}.high-light-wrapper .hljs{font-weight:var(--font-weight-normal);padding-block:1.2em;padding-inline:0}.high-light-wrapper .hljs::-webkit-scrollbar{height:var(--scrollbar-size)}.high-light-wrapper .hljs::-webkit-scrollbar-thumb{background-color:#0000;border-radius:4px}.high-light-wrapper .hljs::-webkit-scrollbar-track{background-color:#0000}.high-light-wrapper .hljs.light:hover::-webkit-scrollbar-thumb{background-color:var(--color-scrollbar-thumb);border-radius:4px}.high-light-wrapper .hljs.dark:hover::-webkit-scrollbar-thumb{background-color:var(--scrollbar-handle-light-bg);border-radius:4px}.high-light-wrapper .code-pre{border-radius:0 0 var(--border-radius-mini) var(--border-radius-mini);white-space:pre-wrap;padding-inline:12px;position:relative}.high-light-wrapper .code-pre code{line-height:1.6}.high-light-wrapper .code-pre.copyable{padding-inline:12px 32px}.high-light-wrapper .code-pre .copy-button{position:absolute;top:6px;right:6px}.high-light-wrapper .code-pre.dark{background-color:var(--color-editor-dark)}.high-light-wrapper .code-pre.dark:hover::-webkit-scrollbar-thumb{background-color:var(--scrollbar-handle-light-bg);border-radius:4px}.high-light-wrapper .code-pre.light{background-color:#fafafa}.high-light-wrapper .code-pre.light:hover::-webkit-scrollbar-thumb{background-color:var(--color-scrollbar-thumb);border-radius:4px}