@juspay/blend-design-system 0.0.14 → 0.0.15-beta
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/components/Charts/ChartContainer.d.ts +6 -0
- package/dist/components/Charts/ChartHeader.d.ts +2 -1
- package/dist/components/Charts/ChartLegend.d.ts +2 -1
- package/dist/components/Charts/ChartUtils.d.ts +3 -3
- package/dist/components/Charts/CoreChart.d.ts +4 -0
- package/dist/components/Charts/index.d.ts +4 -0
- package/dist/components/Charts/types.d.ts +17 -0
- package/dist/components/Inputs/SearchInput/SearchInput.d.ts +7 -2
- package/dist/components/StatCard/types.d.ts +2 -0
- package/dist/main.js +11558 -11340
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ChartLegendsProps } from './types';
|
|
3
|
-
|
|
3
|
+
declare const _default: React.NamedExoticComponent<ChartLegendsProps>;
|
|
4
|
+
export default _default;
|
|
@@ -3,6 +3,6 @@ export declare function transformNestedData(data: NewNestedDataPoint[], selected
|
|
|
3
3
|
export declare function lightenHexColor(hex: string, amount?: number): string;
|
|
4
4
|
export declare const formatNumber: (value: number | string) => string;
|
|
5
5
|
export declare const capitaliseCamelCase: (text: string) => string;
|
|
6
|
-
export declare const createSmartDateTimeFormatter: () => ((value: string | number) => string);
|
|
7
|
-
export declare const getAxisFormatterWithConfig: (axisType: AxisType, dateOnly?: boolean, smart?: boolean) => ((value: string | number) => string);
|
|
8
|
-
export declare const getAxisFormatter: (axisType: AxisType) => ((value: string | number) => string);
|
|
6
|
+
export declare const createSmartDateTimeFormatter: (timeZone?: string, hour12?: boolean) => ((value: string | number) => string);
|
|
7
|
+
export declare const getAxisFormatterWithConfig: (axisType: AxisType, dateOnly?: boolean, smart?: boolean, timeZone?: string, hour12?: boolean) => ((value: string | number) => string);
|
|
8
|
+
export declare const getAxisFormatter: (axisType: AxisType, timeZone?: string, hour12?: boolean) => ((value: string | number) => string);
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
export { default as Charts } from './Charts';
|
|
2
|
+
export { default as CoreChart } from './CoreChart';
|
|
3
|
+
export { default as ChartContainer } from './ChartContainer';
|
|
4
|
+
export { default as ChartHeader } from './ChartHeader';
|
|
5
|
+
export { default as ChartLegends } from './ChartLegend';
|
|
2
6
|
export * from './types';
|
|
@@ -55,6 +55,8 @@ export type AxisConfig = {
|
|
|
55
55
|
customTick?: React.ComponentType<TickProps>;
|
|
56
56
|
dateOnly?: boolean;
|
|
57
57
|
smart?: boolean;
|
|
58
|
+
timeZone?: string;
|
|
59
|
+
hour12?: boolean;
|
|
58
60
|
};
|
|
59
61
|
export type XAxisConfig = AxisConfig;
|
|
60
62
|
export type YAxisConfig = AxisConfig;
|
|
@@ -83,6 +85,21 @@ export type RenderChartProps = {
|
|
|
83
85
|
xAxis?: XAxisConfig;
|
|
84
86
|
yAxis?: YAxisConfig;
|
|
85
87
|
};
|
|
88
|
+
export type CoreChartProps = {
|
|
89
|
+
chartType?: ChartType;
|
|
90
|
+
data: NewNestedDataPoint[];
|
|
91
|
+
colors?: string[];
|
|
92
|
+
barsize?: number;
|
|
93
|
+
xAxis?: XAxisConfig;
|
|
94
|
+
yAxis?: YAxisConfig;
|
|
95
|
+
height?: number | string;
|
|
96
|
+
width?: number | string;
|
|
97
|
+
isSmallScreen?: boolean;
|
|
98
|
+
hoveredKey?: string | null;
|
|
99
|
+
onHoveredKeyChange?: (key: string | null) => void;
|
|
100
|
+
selectedKeys?: string[];
|
|
101
|
+
enableHover?: boolean;
|
|
102
|
+
};
|
|
86
103
|
export type ChartsProps = {
|
|
87
104
|
chartType?: ChartType;
|
|
88
105
|
data: NewNestedDataPoint[];
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
declare const SearchInput: import('react').ForwardRefExoticComponent<{
|
|
2
|
+
leftSlot?: React.ReactNode;
|
|
3
|
+
rightSlot?: React.ReactNode;
|
|
4
|
+
error?: boolean;
|
|
5
|
+
value?: string;
|
|
6
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
+
} & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "style" | "className"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
3
8
|
export default SearchInput;
|