@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.
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ export interface ChartContainerProps {
3
+ children: React.ReactNode;
4
+ }
5
+ export declare const ChartContainer: React.FC<ChartContainerProps>;
6
+ export default ChartContainer;
@@ -1,2 +1,3 @@
1
1
  import { ChartHeaderProps } from './types';
2
- export declare const ChartHeader: React.FC<ChartHeaderProps>;
2
+ declare const ChartHeader: React.FC<ChartHeaderProps>;
3
+ export default ChartHeader;
@@ -1,3 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  import { ChartLegendsProps } from './types';
3
- export declare const ChartLegends: React.NamedExoticComponent<ChartLegendsProps>;
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);
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { CoreChartProps } from './types';
3
+ export declare const CoreChart: React.FC<CoreChartProps>;
4
+ export default CoreChart;
@@ -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
- import { SearchInputProps } from './types';
2
- declare const SearchInput: ({ leftSlot, rightSlot, error, placeholder, value, onChange, name, ...rest }: SearchInputProps) => import("react/jsx-runtime").JSX.Element;
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;
@@ -25,6 +25,8 @@ export type StatCardAxisConfig = {
25
25
  tickFormatter?: (value: string | number) => string;
26
26
  dateOnly?: boolean;
27
27
  smart?: boolean;
28
+ timeZone?: string;
29
+ hour12?: boolean;
28
30
  };
29
31
  export type StatCardProps = {
30
32
  title: string;