hans-ui-design-lib 1.0.39 → 1.0.41
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/README.md +94 -94
- package/dist/index.cjs.js +50 -49
- package/dist/index.css +1 -1
- package/dist/index.d.ts +48 -2
- package/dist/index.es.js +19545 -19406
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -278,6 +278,9 @@ export declare type HansChartColor = Color | string;
|
|
|
278
278
|
export declare type HansChartDataPoint = number | {
|
|
279
279
|
name: string;
|
|
280
280
|
value: number;
|
|
281
|
+
} | {
|
|
282
|
+
name: string;
|
|
283
|
+
value: number[];
|
|
281
284
|
};
|
|
282
285
|
|
|
283
286
|
export declare type HansChartLabelPosition = 'horizontal' | 'vertical' | 'diagonal' | 'inside' | 'none';
|
|
@@ -292,7 +295,15 @@ export declare type HansChartProps = InferPropsFromSchema<typeof HansChartSchema
|
|
|
292
295
|
onPointClick?: (event: HansChartPointEvent) => void;
|
|
293
296
|
};
|
|
294
297
|
|
|
295
|
-
export declare const HansChartPropsList: Partial<Record<"customClasses" | "loadingType" | "title" | "height" | "backgroundColor" | "emptyText" | "chartType" | "categories" | "series" | "colors" | "showLegend" | "isLoading" | "optionOverrides", "string" | "number" | "boolean" | "function" | "json" | "method" | undefined>>;
|
|
298
|
+
export declare const HansChartPropsList: Partial<Record<"customClasses" | "loadingType" | "title" | "height" | "backgroundColor" | "emptyText" | "chartType" | "categories" | "series" | "colors" | "showLegend" | "isLoading" | "optionOverrides" | "radarIndicators" | "radarValueFormatter", "string" | "number" | "boolean" | "function" | "json" | "method" | undefined>>;
|
|
299
|
+
|
|
300
|
+
export declare type HansChartRadarIndicator = {
|
|
301
|
+
name: string;
|
|
302
|
+
max: number;
|
|
303
|
+
min?: number;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
export declare type HansChartRadarValueFormatter = (value: number, index: number, indicator: HansChartRadarIndicator) => string;
|
|
296
307
|
|
|
297
308
|
declare const HansChartSchema: {
|
|
298
309
|
readonly title: "string";
|
|
@@ -330,6 +341,16 @@ declare const HansChartSchema: {
|
|
|
330
341
|
readonly ref: Record<string, unknown>;
|
|
331
342
|
readonly webComponentType: "property";
|
|
332
343
|
};
|
|
344
|
+
readonly radarIndicators: {
|
|
345
|
+
readonly type: "custom";
|
|
346
|
+
readonly ref: HansChartRadarIndicator[];
|
|
347
|
+
readonly webComponentType: "property";
|
|
348
|
+
};
|
|
349
|
+
readonly radarValueFormatter: {
|
|
350
|
+
readonly type: "custom";
|
|
351
|
+
readonly ref: HansChartRadarValueFormatter;
|
|
352
|
+
readonly webComponentType: "property";
|
|
353
|
+
};
|
|
333
354
|
};
|
|
334
355
|
|
|
335
356
|
export declare type HansChartSeries = {
|
|
@@ -352,7 +373,7 @@ export declare type HansChartSeriesLabelOption = {
|
|
|
352
373
|
formatter?: string;
|
|
353
374
|
};
|
|
354
375
|
|
|
355
|
-
export declare type HansChartSeriesType = 'line' | 'bar' | 'pie' | 'doughnut';
|
|
376
|
+
export declare type HansChartSeriesType = 'line' | 'bar' | 'pie' | 'doughnut' | 'radar';
|
|
356
377
|
|
|
357
378
|
export declare type HansChartThemeColor = Color;
|
|
358
379
|
|
|
@@ -909,6 +930,31 @@ declare const HansPopupSchema: {
|
|
|
909
930
|
readonly portalMatchTriggerWidth: "boolean";
|
|
910
931
|
};
|
|
911
932
|
|
|
933
|
+
export declare const HansProgressBar: default_4.MemoExoticComponent<(props: HansProgressBarProps) => JSX.Element>;
|
|
934
|
+
|
|
935
|
+
export declare type HansProgressBarProps = InferPropsFromSchema<typeof HansProgressBarSchema> & Omit<default_4.HTMLAttributes<HTMLDivElement>, 'color'>;
|
|
936
|
+
|
|
937
|
+
export declare const HansProgressBarPropsList: Partial<Record<"value" | "label" | "customClasses" | "loading" | "max" | "min" | "valueLabel" | "progressColor" | "progressSize" | "showValue", "string" | "number" | "boolean" | "function" | "json" | "method" | undefined>>;
|
|
938
|
+
|
|
939
|
+
declare const HansProgressBarSchema: {
|
|
940
|
+
readonly value: "number";
|
|
941
|
+
readonly min: "number";
|
|
942
|
+
readonly max: "number";
|
|
943
|
+
readonly label: "string";
|
|
944
|
+
readonly valueLabel: "string";
|
|
945
|
+
readonly progressColor: {
|
|
946
|
+
readonly type: "custom";
|
|
947
|
+
readonly ref: Color;
|
|
948
|
+
};
|
|
949
|
+
readonly progressSize: {
|
|
950
|
+
readonly type: "custom";
|
|
951
|
+
readonly ref: Size;
|
|
952
|
+
};
|
|
953
|
+
readonly showValue: "boolean";
|
|
954
|
+
readonly loading: "boolean";
|
|
955
|
+
readonly customClasses: "string";
|
|
956
|
+
};
|
|
957
|
+
|
|
912
958
|
export declare const HansSelectOption: default_2.MemoExoticComponent<(props: HansSelectOptionProps) => JSX.Element>;
|
|
913
959
|
|
|
914
960
|
export declare type HansSelectOptionProps = InferPropsFromSchema<typeof HansSelectOptionSchema> & Omit<default_2.InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue' | 'onChange' | 'size' | 'type'> & {
|