@mesh.ai/rabbit 0.0.48 → 0.0.49
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/@mesh.ai/rabbit.es.js +6367 -6634
- package/dist/@mesh.ai/rabbit.umd.js +21 -21
- package/dist/index.d.ts +1087 -1
- package/package.json +1 -99
- package/dist/commitlint.config.d.ts +0 -0
- package/dist/src/lib/components/atoms/Button/index.d.ts +0 -14
- package/dist/src/lib/components/atoms/Checkbox/index.d.ts +0 -4
- package/dist/src/lib/components/atoms/Chip/index.d.ts +0 -3
- package/dist/src/lib/components/atoms/Chip/types.d.ts +0 -9
- package/dist/src/lib/components/atoms/Dropdown/index.d.ts +0 -17
- package/dist/src/lib/components/atoms/Input/index.d.ts +0 -6
- package/dist/src/lib/components/atoms/Select/index.d.ts +0 -11
- package/dist/src/lib/components/atoms/Tooltip/index.d.ts +0 -8
- package/dist/src/lib/components/atoms/index.d.ts +0 -7
- package/dist/src/lib/components/index.d.ts +0 -2
- package/dist/src/lib/components/molecules/ChipGroup/index.d.ts +0 -7
- package/dist/src/lib/components/molecules/ChipGroup/types.d.ts +0 -7
- package/dist/src/lib/components/molecules/SplitButton/index.d.ts +0 -12
- package/dist/src/lib/components/molecules/agGrid/AgGridWrapper.d.ts +0 -1
- package/dist/src/lib/components/molecules/agGrid/index.d.ts +0 -0
- package/dist/src/lib/components/molecules/agGrid/utils/registerAgGrid.d.ts +0 -2
- package/dist/src/lib/components/molecules/cards/CardKPI/index.d.ts +0 -3
- package/dist/src/lib/components/molecules/cards/CardKPI/types.d.ts +0 -17
- package/dist/src/lib/components/molecules/cards/index.d.ts +0 -1
- package/dist/src/lib/components/molecules/charts/charts/HistogramChart/components/ChartCardHistogramTooltip.d.ts +0 -19
- package/dist/src/lib/components/molecules/charts/charts/HistogramChart/index.d.ts +0 -5
- package/dist/src/lib/components/molecules/charts/charts/HistogramChart/types.d.ts +0 -35
- package/dist/src/lib/components/molecules/charts/charts/LineChart/components/ChartCardLineTooltip.d.ts +0 -21
- package/dist/src/lib/components/molecules/charts/charts/LineChart/components/LineSeriesWrapper.d.ts +0 -2
- package/dist/src/lib/components/molecules/charts/charts/LineChart/index.d.ts +0 -5
- package/dist/src/lib/components/molecules/charts/charts/LineChart/types.d.ts +0 -63
- package/dist/src/lib/components/molecules/charts/charts/SankeyChart/components/ChartCardSankeyTooltip.d.ts +0 -12
- package/dist/src/lib/components/molecules/charts/charts/SankeyChart/index.d.ts +0 -5
- package/dist/src/lib/components/molecules/charts/charts/SankeyChart/types.d.ts +0 -38
- package/dist/src/lib/components/molecules/charts/common/components/ChartTextTooltip.d.ts +0 -11
- package/dist/src/lib/components/molecules/charts/common/hooks/useDownload.d.ts +0 -5
- package/dist/src/lib/components/molecules/charts/common/utils/chartColors.d.ts +0 -15
- package/dist/src/lib/components/molecules/charts/index.d.ts +0 -3
- package/dist/src/lib/components/molecules/index.d.ts +0 -4
- package/dist/src/lib/index.d.ts +0 -1
- package/dist/src/lib/storybook-utils.d.ts +0 -5
- package/dist/src/lib/utils/index.d.ts +0 -2
- package/dist/tailwind.config.d.ts +0 -94
- package/dist/vite.config.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mesh.ai/rabbit",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.49",
|
|
5
5
|
"packageManager": "pnpm@8.6.0",
|
|
6
6
|
"main": "./dist/@mesh.ai/rabbit.umd.js",
|
|
7
7
|
"module": "./dist/@mesh.ai/rabbit.es.js ",
|
|
@@ -18,104 +18,6 @@
|
|
|
18
18
|
"node": "18"
|
|
19
19
|
},
|
|
20
20
|
"sideEffects": false,
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"@ag-grid-community/client-side-row-model": "^30.2.0",
|
|
23
|
-
"@ag-grid-community/core": "^30.2.0",
|
|
24
|
-
"@ag-grid-community/csv-export": "^30.2.0",
|
|
25
|
-
"@ag-grid-community/react": "^30.2.0",
|
|
26
|
-
"@ag-grid-community/styles": "^30.2.0",
|
|
27
|
-
"@ag-grid-enterprise/column-tool-panel": "^30.2.0",
|
|
28
|
-
"@ag-grid-enterprise/core": "^30.2.0",
|
|
29
|
-
"@ag-grid-enterprise/filter-tool-panel": "^30.2.0",
|
|
30
|
-
"@ag-grid-enterprise/multi-filter": "^30.2.0",
|
|
31
|
-
"@ag-grid-enterprise/row-grouping": "^30.2.0",
|
|
32
|
-
"@ag-grid-enterprise/set-filter": "^30.2.0",
|
|
33
|
-
"@ag-grid-enterprise/side-bar": "^30.2.0",
|
|
34
|
-
"@radix-ui/react-checkbox": "^1.0.4",
|
|
35
|
-
"@radix-ui/react-dropdown-menu": "^2.0.6",
|
|
36
|
-
"@radix-ui/react-select": "^2.0.0",
|
|
37
|
-
"@radix-ui/react-slot": "^1.0.2",
|
|
38
|
-
"@radix-ui/react-toggle": "^1.0.3",
|
|
39
|
-
"@radix-ui/react-toggle-group": "^1.0.4",
|
|
40
|
-
"@radix-ui/react-tooltip": "^1.0.6",
|
|
41
|
-
"@visx/axis": "^3.3.0",
|
|
42
|
-
"@visx/glyph": "^3.3.0",
|
|
43
|
-
"@visx/grid": "^3.3.0",
|
|
44
|
-
"@visx/group": "^3.3.0",
|
|
45
|
-
"@visx/responsive": "^3.3.0",
|
|
46
|
-
"@visx/scale": "^3.3.0",
|
|
47
|
-
"@visx/shape": "^3.3.0",
|
|
48
|
-
"@visx/text": "^3.3.0",
|
|
49
|
-
"@visx/tooltip": "^3.3.0",
|
|
50
|
-
"@visx/xychart": "^3.3.0",
|
|
51
|
-
"class-variance-authority": "^0.7.0",
|
|
52
|
-
"clsx": "^2.0.0",
|
|
53
|
-
"d3-array": "^3.2.4",
|
|
54
|
-
"d3-format": "^3.1.0",
|
|
55
|
-
"d3-sankey": "^0.12.3",
|
|
56
|
-
"lucide-react": "^0.269.0",
|
|
57
|
-
"modern-screenshot": "^4.4.28",
|
|
58
|
-
"react": "18.2.0",
|
|
59
|
-
"react-dom": "18.2.0",
|
|
60
|
-
"tailwind-merge": "^1.14.0"
|
|
61
|
-
},
|
|
62
|
-
"devDependencies": {
|
|
63
|
-
"@babel/core": "7.22.10",
|
|
64
|
-
"@babel/plugin-transform-react-pure-annotations": "^7.22.5",
|
|
65
|
-
"@commitlint/cli": "^17.7.1",
|
|
66
|
-
"@commitlint/config-conventional": "^17.7.0",
|
|
67
|
-
"@storybook/addon-essentials": "7.3.1",
|
|
68
|
-
"@storybook/addon-interactions": "7.3.1",
|
|
69
|
-
"@storybook/addon-links": "7.3.1",
|
|
70
|
-
"@storybook/addon-styling": "1.3.6",
|
|
71
|
-
"@storybook/blocks": "7.3.1",
|
|
72
|
-
"@storybook/react": "7.3.1",
|
|
73
|
-
"@storybook/react-vite": "7.3.1",
|
|
74
|
-
"@storybook/testing-library": "0.2.0",
|
|
75
|
-
"@testing-library/react": "14.0.0",
|
|
76
|
-
"@types/d3-array": "^3.0.7",
|
|
77
|
-
"@types/d3-format": "^3.0.2",
|
|
78
|
-
"@types/d3-sankey": "^0.12.1",
|
|
79
|
-
"@types/node": "20.5.0",
|
|
80
|
-
"@types/react": "18.2.20",
|
|
81
|
-
"@types/react-dom": "18.2.7",
|
|
82
|
-
"@typescript-eslint/eslint-plugin": "5.60.0",
|
|
83
|
-
"@visx/mock-data": "^3.3.0",
|
|
84
|
-
"@vitejs/plugin-react": "4.0.4",
|
|
85
|
-
"@vitest/coverage-v8": "0.34.2",
|
|
86
|
-
"autoprefixer": "10.4.15",
|
|
87
|
-
"babel-loader": "9.1.3",
|
|
88
|
-
"commitizen": "^4.3.0",
|
|
89
|
-
"cz-conventional-changelog": "^3.3.0",
|
|
90
|
-
"eslint": "8.47.0",
|
|
91
|
-
"eslint-config-airbnb": "^19.0.4",
|
|
92
|
-
"eslint-config-airbnb-typescript": "^17.1.0",
|
|
93
|
-
"eslint-config-prettier": "9.0.0",
|
|
94
|
-
"eslint-config-standard-with-typescript": "37.0.0",
|
|
95
|
-
"eslint-plugin-import": "2.28.0",
|
|
96
|
-
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
97
|
-
"eslint-plugin-n": "16.0.1",
|
|
98
|
-
"eslint-plugin-prettier": "^5.0.0",
|
|
99
|
-
"eslint-plugin-promise": "6.1.1",
|
|
100
|
-
"eslint-plugin-react": "7.33.2",
|
|
101
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
102
|
-
"eslint-plugin-storybook": "0.6.13",
|
|
103
|
-
"husky": "8.0.3",
|
|
104
|
-
"jsdom": "22.1.0",
|
|
105
|
-
"json": "11.0.0",
|
|
106
|
-
"lint-staged": "14.0.0",
|
|
107
|
-
"postcss": "8.4.28",
|
|
108
|
-
"prettier": "3.0.2",
|
|
109
|
-
"prop-types": "15.8.1",
|
|
110
|
-
"sass": "^1.68.0",
|
|
111
|
-
"storybook": "7.3.1",
|
|
112
|
-
"tailwindcss": "3.3.3",
|
|
113
|
-
"tailwindcss-animate": "^1.0.7",
|
|
114
|
-
"typescript": "5.1.6",
|
|
115
|
-
"vite": "4.4.9",
|
|
116
|
-
"vite-plugin-dts": "3.5.2",
|
|
117
|
-
"vitest": "0.34.2"
|
|
118
|
-
},
|
|
119
21
|
"peerDependencies": {
|
|
120
22
|
"react": "^17.0 || ^18.0.0",
|
|
121
23
|
"react-dom": "^17.0 || ^18.0.0"
|
|
File without changes
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
|
-
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "text" | "filled" | "outline" | null | undefined;
|
|
5
|
-
status?: "default" | "error" | null | undefined;
|
|
6
|
-
size?: "small" | "icon" | "normal" | "smallIcon" | null | undefined;
|
|
7
|
-
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
|
-
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
9
|
-
asChild?: boolean;
|
|
10
|
-
iconLeft?: ReactElement;
|
|
11
|
-
iconRight?: ReactElement;
|
|
12
|
-
}
|
|
13
|
-
declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
|
-
export { Button };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
|
-
declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4
|
-
export default Checkbox;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import * as DropdownPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
|
-
declare const Dropdown: import("react").FC<DropdownPrimitive.DropdownMenuProps>;
|
|
4
|
-
declare const DropdownTrigger: import("react").ForwardRefExoticComponent<DropdownPrimitive.DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5
|
-
declare const DropdownPortal: import("react").FC<DropdownPrimitive.DropdownMenuPortalProps>;
|
|
6
|
-
declare const DropdownSub: import("react").FC<DropdownPrimitive.DropdownMenuSubProps>;
|
|
7
|
-
declare const DropdownRadioGroup: import("react").ForwardRefExoticComponent<DropdownPrimitive.DropdownMenuRadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
-
declare const DropdownGroup: import("react").ForwardRefExoticComponent<Omit<DropdownPrimitive.DropdownMenuGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
declare const DropdownSubTrigger: import("react").ForwardRefExoticComponent<Omit<DropdownPrimitive.DropdownMenuSubTriggerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
-
declare const DropdownSubContent: import("react").ForwardRefExoticComponent<Omit<DropdownPrimitive.DropdownMenuSubContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
-
declare const DropdownContent: import("react").ForwardRefExoticComponent<Omit<DropdownPrimitive.DropdownMenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
-
declare const DropdownItem: import("react").ForwardRefExoticComponent<Omit<DropdownPrimitive.DropdownMenuItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
-
declare const DropdownCheckboxItem: import("react").ForwardRefExoticComponent<Omit<DropdownPrimitive.DropdownMenuCheckboxItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
-
declare const DropdownRadioItem: import("react").ForwardRefExoticComponent<Omit<DropdownPrimitive.DropdownMenuRadioItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
-
declare const DropdownLabel: import("react").ForwardRefExoticComponent<Omit<DropdownPrimitive.DropdownMenuLabelProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
-
declare const DropdownSeparator: import("react").ForwardRefExoticComponent<Omit<DropdownPrimitive.DropdownMenuSeparatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
-
export { Dropdown, DropdownTrigger, DropdownContent, DropdownItem, DropdownCheckboxItem, DropdownRadioItem, DropdownLabel, DropdownSeparator, DropdownGroup, DropdownPortal, DropdownSub, DropdownSubContent, DropdownSubTrigger, DropdownRadioGroup, };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
-
className?: string;
|
|
4
|
-
}
|
|
5
|
-
declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
6
|
-
export default Input;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
3
|
-
declare const Select: import("react").FC<SelectPrimitive.SelectProps>;
|
|
4
|
-
declare const SelectGroup: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
-
declare const SelectValue: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
6
|
-
declare const SelectTrigger: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
7
|
-
declare const SelectContent: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
-
declare const SelectLabel: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
declare const SelectItem: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
-
declare const SelectSeparator: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
-
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
3
|
-
declare const TooltipProvider: import("react").FC<TooltipPrimitive.TooltipProviderProps>;
|
|
4
|
-
declare const Tooltip: import("react").FC<TooltipPrimitive.TooltipProps>;
|
|
5
|
-
declare const TooltipTrigger: import("react").ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
declare const TooltipPortal: import("react").FC<TooltipPrimitive.TooltipPortalProps>;
|
|
7
|
-
declare const TooltipContent: import("react").ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, TooltipPortal };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ToggleGroupItemProps, ToggleGroupSingleProps, ToggleGroupMultipleProps } from '@radix-ui/react-toggle-group';
|
|
3
|
-
import { ChipProps } from '../../atoms/Chip/types';
|
|
4
|
-
export declare function ChipGroup({ children, ...props }: (ToggleGroupSingleProps | ToggleGroupMultipleProps) & {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare function ChipGroupItem({ value, disabled, selected, icon, label, count, ...props }: Omit<ToggleGroupItemProps, 'asChild'> & ChipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ButtonProps } from '../../atoms';
|
|
3
|
-
type SplitButtonProps = ButtonProps;
|
|
4
|
-
declare const SplitButtonDropdownItem: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
-
declare const SplitButtonDropdownGroup: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
-
declare const SplitButtonDropdownRadioGroup: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dropdown-menu").DropdownMenuRadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
-
declare const SplitButtonDropdownLabel: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuLabelProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
-
declare const SplitButtonDropdownCheckboxItem: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuCheckboxItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
declare const SplitButtonDropdownRadioItem: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuRadioItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
-
declare const SplitButtonDropdownContent: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
-
declare function SplitButton({ children, size, status, variant, ...props }: SplitButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export { SplitButton, SplitButtonDropdownContent, SplitButtonDropdownItem, SplitButtonDropdownGroup, SplitButtonDropdownRadioGroup, SplitButtonDropdownLabel, SplitButtonDropdownCheckboxItem, SplitButtonDropdownRadioItem, };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AgGridReact as AgGridWrapper, type AgGridReactProps } from '@ag-grid-community/react';
|
|
File without changes
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface CardKPIProps {
|
|
3
|
-
/** Title of the Card */
|
|
4
|
-
title: string;
|
|
5
|
-
/** Main KPI to be shown */
|
|
6
|
-
count: number;
|
|
7
|
-
/** Total KPI Count to be shown */
|
|
8
|
-
totalCount?: number;
|
|
9
|
-
/** Subtext of the card */
|
|
10
|
-
subTitle?: string;
|
|
11
|
-
/** Add a classname to the parent */
|
|
12
|
-
className?: string;
|
|
13
|
-
/** Removes default dimensions to the card. Relies on the consumer to set height and width */
|
|
14
|
-
unstyledDimension?: boolean;
|
|
15
|
-
/** Add custom styles if necessary */
|
|
16
|
-
style?: React.CSSProperties;
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as CardKPI } from './CardKPI';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
interface ChartCardTooltipType {
|
|
3
|
-
xValue?: string;
|
|
4
|
-
yValue?: number;
|
|
5
|
-
tooltipTitle: string;
|
|
6
|
-
xAxisLabel: string;
|
|
7
|
-
yAxisLabel: string;
|
|
8
|
-
legendValue: string;
|
|
9
|
-
legendDarkColor: string;
|
|
10
|
-
legendLightColor: string;
|
|
11
|
-
}
|
|
12
|
-
declare function ChartCardHistogramTooltip({ xValue, yValue, tooltipTitle, xAxisLabel, yAxisLabel, legendValue, legendDarkColor, legendLightColor, }: PropsWithChildren<ChartCardTooltipType>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
declare namespace ChartCardHistogramTooltip {
|
|
14
|
-
var defaultProps: {
|
|
15
|
-
xValue: undefined;
|
|
16
|
-
yValue: undefined;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export default ChartCardHistogramTooltip;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DownloadRef } from '../../common/hooks/useDownload';
|
|
3
|
-
import { HistogramChartProps } from './types';
|
|
4
|
-
declare const HistogramChart: import("react").ForwardRefExoticComponent<Omit<HistogramChartProps, "height" | "width"> & import("react").RefAttributes<DownloadRef>>;
|
|
5
|
-
export default HistogramChart;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export interface HistogramChartProps {
|
|
2
|
-
/** Title name for the tooltip of the chart */
|
|
3
|
-
tooltipTitle: string;
|
|
4
|
-
/** Name of the label to be displayed on Y-Axis of the line chart */
|
|
5
|
-
xAxisLabel: string;
|
|
6
|
-
/** Name of the label to be displayed on Y-Axis of the line chart */
|
|
7
|
-
yAxisLabel: string;
|
|
8
|
-
/** Width of the chart in pixels */
|
|
9
|
-
width: number;
|
|
10
|
-
/** Height of the chart in pixels */
|
|
11
|
-
height: number;
|
|
12
|
-
/** The domain of the histogram. [fromNumber, toNumber] */
|
|
13
|
-
domain?: [number, number];
|
|
14
|
-
/** The number of bins the data would be grouped to. Note: this is an indicating number only. Might differ in actual value. */
|
|
15
|
-
binCount?: number;
|
|
16
|
-
/** The Maximum number of bins the data would be grouped to. */
|
|
17
|
-
maxBinCount?: number;
|
|
18
|
-
/** The Minimum number of bins the data would be grouped to. */
|
|
19
|
-
minBinCount?: number;
|
|
20
|
-
/** Frequency series for the histogram */
|
|
21
|
-
data: number[];
|
|
22
|
-
/** Whether the domain be made into nearest integers. This makes the xAxis adhere to integers. */
|
|
23
|
-
integerBins?: boolean;
|
|
24
|
-
/** Whether the yAxis be made into nearest integers. This makes the yAxis adhere to integers. */
|
|
25
|
-
integerYAxis?: boolean;
|
|
26
|
-
/** Symbol to appended before or after the ticks in xAxis */
|
|
27
|
-
xAxisUnitSymbol?: AxisSymbolType;
|
|
28
|
-
/** Symbol to appended before or after the ticks in yAxis */
|
|
29
|
-
yAxisUnitSymbol?: AxisSymbolType;
|
|
30
|
-
}
|
|
31
|
-
interface AxisSymbolType {
|
|
32
|
-
symbol: string;
|
|
33
|
-
position: 'pre' | 'post';
|
|
34
|
-
}
|
|
35
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { ChartDataType } from '../types';
|
|
3
|
-
interface ChartCardTooltipType {
|
|
4
|
-
xValue?: ChartDataType['x'];
|
|
5
|
-
yValue?: ChartDataType['y'];
|
|
6
|
-
tooltipTitle: string;
|
|
7
|
-
xAxisLabel: string;
|
|
8
|
-
yAxisLabel: string;
|
|
9
|
-
showSideBySide: boolean;
|
|
10
|
-
legendValue: string;
|
|
11
|
-
legendDarkColor: string;
|
|
12
|
-
legendLightColor: string;
|
|
13
|
-
}
|
|
14
|
-
declare function ChartCardLineTooltip({ xValue, yValue, tooltipTitle, xAxisLabel, yAxisLabel, showSideBySide, legendValue, legendDarkColor, legendLightColor, }: PropsWithChildren<ChartCardTooltipType>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
declare namespace ChartCardLineTooltip {
|
|
16
|
-
var defaultProps: {
|
|
17
|
-
xValue: undefined;
|
|
18
|
-
yValue: undefined;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export default ChartCardLineTooltip;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { LineChartProps } from './types';
|
|
3
|
-
import { DownloadRef } from '../../common/hooks/useDownload';
|
|
4
|
-
declare const LineChart: import("react").ForwardRefExoticComponent<Omit<LineChartProps, "height" | "width"> & import("react").RefAttributes<DownloadRef>>;
|
|
5
|
-
export default LineChart;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { ChartColorsType } from '../../common/utils/chartColors';
|
|
2
|
-
export interface ChartDataType {
|
|
3
|
-
x: string;
|
|
4
|
-
y: number | null;
|
|
5
|
-
nodeId: string;
|
|
6
|
-
color: ChartColorsType;
|
|
7
|
-
}
|
|
8
|
-
interface AxisSymbolType {
|
|
9
|
-
symbol: string;
|
|
10
|
-
position: 'pre' | 'post';
|
|
11
|
-
}
|
|
12
|
-
export interface Node {
|
|
13
|
-
id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
}
|
|
16
|
-
export interface LineSeriesWrapperProps {
|
|
17
|
-
data: ChartDataType[];
|
|
18
|
-
xAccessor: (d: ChartDataType) => ChartDataType['x'];
|
|
19
|
-
yAccessor: (d: ChartDataType) => ChartDataType['y'];
|
|
20
|
-
connectNulls: boolean;
|
|
21
|
-
}
|
|
22
|
-
export interface LineChartProps {
|
|
23
|
-
/** the maximum number of characters to show in a x-axis label */
|
|
24
|
-
xAxisCharLimit?: number;
|
|
25
|
-
/** Show the chart in either 'mini' or 'full' mode to show limited or full data. Full mode as ability to select nodes to display */
|
|
26
|
-
mode?: 'mini' | 'full';
|
|
27
|
-
/** Height of the chart in pixels */
|
|
28
|
-
height: number;
|
|
29
|
-
/** Width of the chart in pixels */
|
|
30
|
-
width: number;
|
|
31
|
-
/** Symbol to appended before or after the ticks in xAxis */
|
|
32
|
-
xAxisUnitSymbol?: AxisSymbolType;
|
|
33
|
-
/** Symbol to appended before or after the ticks in yAxis */
|
|
34
|
-
yAxisUnitSymbol?: AxisSymbolType;
|
|
35
|
-
/** Name of the label to be displayed on X-Axis of the line chart */
|
|
36
|
-
xAxisLabel: string;
|
|
37
|
-
/** Name of the label to be displayed on Y-Axis of the line chart */
|
|
38
|
-
yAxisLabel: string;
|
|
39
|
-
/** Values for the x-Axis of the line chart */
|
|
40
|
-
xAxisValues: string[];
|
|
41
|
-
/** Data that corresponds to each node in the chart. These will generally contain info to be shown on the tooltip. */
|
|
42
|
-
nodes: Node[];
|
|
43
|
-
/** Data that corresponds to each line in the chart. Each item in the array corresponds to a line on the chart */
|
|
44
|
-
series: {
|
|
45
|
-
/** Id of the matching node. This will be used to fetch tooltip details for the line */
|
|
46
|
-
id: string;
|
|
47
|
-
/** Data with respect to y-Axis. This should be in the same order as xAxis values giving rise to [x,y] pairs. */
|
|
48
|
-
data: ChartDataType['y'][];
|
|
49
|
-
}[];
|
|
50
|
-
/** Title name for the tooltip of the chart */
|
|
51
|
-
tooltipTitle: string;
|
|
52
|
-
/** Number of characters post which the data in tooltip will be stacked instead of side-by-side */
|
|
53
|
-
tooltipStackCharLimit?: number;
|
|
54
|
-
/** Domain of x-Axis - string values of the band */
|
|
55
|
-
xAxisDomain?: string[];
|
|
56
|
-
/** Domain of y-Axis - The start and end of values for yAxis */
|
|
57
|
-
yAxisDomain?: [number, number];
|
|
58
|
-
/** Should a Line connect if there are missing values */
|
|
59
|
-
connectNulls?: boolean;
|
|
60
|
-
/** Maxiumum number of nodes to be shown in `mini` mode */
|
|
61
|
-
maxNodesInMiniMode: number;
|
|
62
|
-
}
|
|
63
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { SankeyLink } from 'd3-sankey';
|
|
3
|
-
import { Node, Link } from '../types';
|
|
4
|
-
interface ChartCardTooltipType {
|
|
5
|
-
tooltipTitle: string;
|
|
6
|
-
fromLabel: string;
|
|
7
|
-
toLabel: string;
|
|
8
|
-
weightLabel: string;
|
|
9
|
-
tooltipData: SankeyLink<Node, Link>;
|
|
10
|
-
}
|
|
11
|
-
declare function ChartCardLineTooltip({ tooltipData, fromLabel, toLabel, weightLabel, tooltipTitle, }: PropsWithChildren<ChartCardTooltipType>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export default ChartCardLineTooltip;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SankeyProps } from './types';
|
|
3
|
-
import { DownloadRef } from '../../common/hooks/useDownload';
|
|
4
|
-
declare const SankeyChart: import("react").ForwardRefExoticComponent<Omit<SankeyProps, "height" | "width"> & import("react").RefAttributes<DownloadRef>>;
|
|
5
|
-
export default SankeyChart;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export interface Node {
|
|
2
|
-
/** Source node ID. */
|
|
3
|
-
id: string;
|
|
4
|
-
/** Name of the Node. This will be displayed on the chart */
|
|
5
|
-
name: string;
|
|
6
|
-
/** Group ID. This helps the nodes to be aligned. */
|
|
7
|
-
group: number;
|
|
8
|
-
}
|
|
9
|
-
export interface Link {
|
|
10
|
-
/** Source node ID. Value should be present in nodes[]. */
|
|
11
|
-
source: string;
|
|
12
|
-
/** Target node ID. Value should be present in nodes[]. */
|
|
13
|
-
target: string;
|
|
14
|
-
/** Weight between each node. */
|
|
15
|
-
weight: number;
|
|
16
|
-
}
|
|
17
|
-
export interface Group {
|
|
18
|
-
/** Group ID */
|
|
19
|
-
id: number;
|
|
20
|
-
/** Name of the Group */
|
|
21
|
-
name: string;
|
|
22
|
-
}
|
|
23
|
-
export interface SankeyProps {
|
|
24
|
-
/** Height of the chart in pixels */
|
|
25
|
-
height: number;
|
|
26
|
-
/** width of the chart in pixels */
|
|
27
|
-
width: number;
|
|
28
|
-
/** Header text for the tooltip */
|
|
29
|
-
tooltipTitle: string;
|
|
30
|
-
/** Array of nodes. Each node has an id, name and a groupId it belongs to */
|
|
31
|
-
nodes: Node[];
|
|
32
|
-
/** Array of Links. Each node has an sourceId, targetId and weight between them */
|
|
33
|
-
links: Link[];
|
|
34
|
-
/** Array of Groups. Contains details about each group */
|
|
35
|
-
groups: Group[];
|
|
36
|
-
/** Label describining the weight between two nodes. Appears in tooltip. */
|
|
37
|
-
weightLabel: string;
|
|
38
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TextProps } from '@visx/text';
|
|
3
|
-
interface ChartTextTooltipProps {
|
|
4
|
-
textLabel: string;
|
|
5
|
-
axisCharLimit: number;
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
textStyles: TextProps;
|
|
9
|
-
}
|
|
10
|
-
export default function ChartTextTooltip({ textLabel, axisCharLimit, x, y, textStyles, }: ChartTextTooltipProps): React.ReactNode;
|
|
11
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type ChartColorsType = {
|
|
2
|
-
name: string;
|
|
3
|
-
dark: string;
|
|
4
|
-
light: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const chartColors: {
|
|
7
|
-
name: string;
|
|
8
|
-
dark: string;
|
|
9
|
-
light: string;
|
|
10
|
-
}[];
|
|
11
|
-
export declare function getColor(n: number): {
|
|
12
|
-
name: string;
|
|
13
|
-
dark: string;
|
|
14
|
-
light: string;
|
|
15
|
-
};
|
package/dist/src/lib/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components';
|