@bikdotai/bik-component-library 0.0.814-beta.1 → 0.0.814-beta.2

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,61 +1,3 @@
1
- import { FontSpec, TooltipItem } from 'chart';
2
- export interface AxisDetailsI {
3
- title?: string;
4
- titleColor?: string;
5
- data: number[];
6
- labelColor?: string;
7
- ticksCallback?: (value: string) => string;
8
- stepSize?: number;
9
- max?: number;
10
- toolTipCallback?: (value: any) => string;
11
- }
12
-
13
- export interface RGBColorI {
14
- r: number;
15
- g: number;
16
- b: number;
17
- a?: number;
18
- }
19
-
20
- export interface ChartHeadingI {
21
- heading: string;
22
- color?: string;
23
- }
24
-
25
- export interface StackedDataset {
26
- data: number[];
27
- /** Single color for all bars, or array of colors for per-bar coloring */
28
- backgroundColor: string | string[];
29
- label?: string;
30
- }
31
-
32
- export interface HorizontalGraphI {
33
- graphCanvasHeight?: number;
34
- tickColor?: string;
35
- labelColor?: string;
36
- chartHeading?: ChartHeadingI;
37
- xAxis: AxisDetailsI;
38
- yAxis: AxisDetailsI;
39
- barColorRGBA?: RGBColorI;
40
- /** Array of colors for each bar (overrides barColorRGBA when provided) */
41
- barColors?: string[];
42
- outerPadding?: string;
43
- maintainAspectRatio?: boolean;
44
- showTotal?: boolean;
45
- tooltipConfig?: {
46
- titleCallback?: (toolTipItems: TooltipItem<'bar'>[]) => string | string[];
47
- labelCallback?: (toolTipItem: TooltipItem<'bar'>) => string | string[];
48
- footerCallback?: (toolTipItems: TooltipItem<'bar'>[]) => string | string[];
49
- footerStyles?: {
50
- footerFont?: Partial<FontSpec>;
51
- };
52
- };
53
- skipOuterLayout?: boolean;
54
- isInternationalStore?: boolean;
55
- /** Enable stacked bars */
56
- stacked?: boolean;
57
- /** Additional datasets for stacked bars (used with stacked=true) */
58
- stackedDatasets?: StackedDataset[];
59
- /** Callback when a bar is clicked, receives the index of the clicked bar */
60
- onBarClick?: (index: number) => void;
61
- }
1
+ import { default as React } from 'react';
2
+ import { HorizontalGraphI } from './HorizontalGraph.d';
3
+ export declare const HorizontalGraph: React.FC<HorizontalGraphI>;
@@ -1,2 +1,2 @@
1
1
  import { default as React } from 'react';
2
- export declare const LazyVerticalGraph: React.LazyExoticComponent<React.FC<import('./VerticalBarGraph/VerticalGraph').VerticalGraphI>>;
2
+ export declare const LazyVerticalGraph: React.LazyExoticComponent<React.FC<VerticalGraphI>>;
@@ -1,48 +1,3 @@
1
- export interface AxisDetailsI {
2
- title?: string;
3
- titleColor?: string;
4
- data: (string | number)[];
5
- labelColor?: string;
6
- ticksCallback?: (value: string) => string;
7
- toolTipCallback?: (value: string) => string;
8
- }
9
-
10
- export interface RGBColorI {
11
- r: number;
12
- g: number;
13
- b: number;
14
- a?: number;
15
- }
16
-
17
- export interface ChartHeadingI {
18
- heading: string;
19
- color?: string;
20
- }
21
-
22
- export interface VerticalGraphI {
23
- graphCanvasHeight?: number;
24
- tickColor?: string;
25
- labelColor?: string;
26
- chartHeading?: ChartHeadingI;
27
- xAxis: AxisDetailsI;
28
- yAxis: AxisDetailsI;
29
- barColorRGBA: RGBColorI;
30
- isFunnel?: boolean;
31
- outerPadding?: string;
32
- allowChartPopup?: boolean;
33
- showConvertToPieChart?: boolean;
34
- pieChartSize?: number;
35
- popupData?: {
36
- xAxis: AxisDetailsI;
37
- yAxis: AxisDetailsI;
38
- barColorRGBA: RGBColorI;
39
- chartHeading?: string;
40
- headerLeftCustomElement?: React.ReactNode;
41
- };
42
- currencyProps?: {
43
- symbol?: string;
44
- isInternationalStore?: boolean;
45
- };
46
- showTotal?: boolean;
47
- PieChartComponent?: React.ComponentType<any>;
48
- }
1
+ import { default as React } from 'react';
2
+ import { VerticalGraphI } from './VerticalGraph.d';
3
+ export declare const VerticalGraph: React.FC<VerticalGraphI>;
@@ -4,3 +4,4 @@ export * from './ChipDropdown';
4
4
  export { DropdownPopover };
5
5
  export * from './OpenedDropdown';
6
6
  export * from './MenuItem/MenuItem';
7
+ export * from './type';
@@ -1,22 +1,21 @@
1
- export interface SwitchProps extends React.HTMLAttributes<HTMLDivElement> {
2
- customThumbColor?: SwitchColorProps;
3
- trackColor?: SwitchColorProps;
4
- onValueChange: (val: boolean) => Promise<boolean | void | string>;
5
- value: boolean;
6
- trackLength?: number;
7
- trackHeight?: number;
8
- disabled?: boolean;
9
- duration?: number;
10
- // thumbIcon?: () => JSX.Element;
11
- // trackText?: string;
12
- // textStyle?: TextStyle;
13
- containerStyle?: React.CSSProperties;
14
- type?: 'brand' | 'greenred';
15
- isLoading?: boolean;
16
- 'data-test'?: string;
17
- }
18
-
19
- export interface SwitchColorProps {
20
- false: string;
21
- true: string;
22
- }
1
+ /// <reference types="react" />
2
+ export declare const Switch: import('react').ForwardRefExoticComponent<Omit<SwitchProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
3
+ export declare const SwitchContainer: import('styled-components').StyledComponent<"div", any, {
4
+ trackLength: number;
5
+ trackHeight: number;
6
+ trackColor: SwitchColorProps;
7
+ value: boolean;
8
+ borderColor: SwitchColorProps;
9
+ duration: number;
10
+ disabled?: boolean | undefined;
11
+ outlineColor: SwitchColorProps;
12
+ }, never>;
13
+ export declare const Thumb: import('styled-components').StyledComponent<"div", any, {
14
+ value: boolean;
15
+ duration: number;
16
+ thumbColor: SwitchColorProps;
17
+ }, never>;
18
+ export declare const Loader: import('styled-components').StyledComponent<"div", any, {
19
+ value: boolean;
20
+ trackColor: SwitchColorProps;
21
+ }, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bikdotai/bik-component-library",
3
- "version": "0.0.814-beta.1",
3
+ "version": "0.0.814-beta.2",
4
4
  "description": "Bik Component Library",
5
5
  "repository": {
6
6
  "type": "git",