@banyan_cloud/roots 2.0.43 → 2.0.45
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/esm/index.js +883 -2465
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/components/index.d.ts +0 -1
- package/dist/esm/src/components/input/richEditor/RichEditor.d.ts +3 -8
- package/dist/esm/src/components/input/richEditor/assets/index.d.ts +22 -22
- package/dist/esm/src/components/input/richEditor/types/index.d.ts +28 -0
- package/dist/esm/src/components/modal/constants/index.d.ts +15 -15
- package/dist/esm/src/components/modal/dialogBox/DialogBox.d.ts +1 -32
- package/dist/esm/src/components/modal/dialogBox/types/index.d.ts +47 -0
- package/dist/esm/src/components/modal/types/index.d.ts +1 -2
- package/dist/esm/src/components/sidePanel/BaseSidePanel.d.ts +33 -13
- package/dist/esm/src/components/sidePanel/index.d.ts +1 -1
- package/dist/esm/src/components/skeleton/Skeleton.d.ts +11 -28
- package/dist/esm/src/components/toggle/Toggle.d.ts +2 -2
- package/dist/esm/src/components/widget/BaseWidget.d.ts +80 -1
- package/dist/esm/src/components/widget/index.d.ts +1 -1
- package/package.json +1 -6
- package/dist/esm/src/components/chartsV2/BarChart/BaseVerticalBarChart.d.ts +0 -4
- package/dist/esm/src/components/chartsV2/BarChart/BaseVerticalBarChartData.d.ts +0 -121
- package/dist/esm/src/components/chartsV2/BarChart/index.d.ts +0 -1
- package/dist/esm/src/components/chartsV2/BarChart/types/index.d.ts +0 -94
- package/dist/esm/src/components/chartsV2/LineChart/BaseAreaChart.d.ts +0 -66
- package/dist/esm/src/components/chartsV2/LineChart/BaseAreaChartData.d.ts +0 -81
- package/dist/esm/src/components/chartsV2/LineChart/index.d.ts +0 -1
- package/dist/esm/src/components/chartsV2/capsuleChart/CapsuleChart.d.ts +0 -39
- package/dist/esm/src/components/chartsV2/capsuleChart/index.d.ts +0 -1
- package/dist/esm/src/components/chartsV2/index.d.ts +0 -5
- package/dist/esm/src/components/chartsV2/nestedPieChart/NestedPieChart.d.ts +0 -15
- package/dist/esm/src/components/chartsV2/nestedPieChart/Skeleton/BasePieChart.skeleton.d.ts +0 -5
- package/dist/esm/src/components/chartsV2/nestedPieChart/Skeleton/index.d.ts +0 -1
- package/dist/esm/src/components/chartsV2/nestedPieChart/index.d.ts +0 -1
- package/dist/esm/src/components/chartsV2/pieChart/BasePieChart.d.ts +0 -3
- package/dist/esm/src/components/chartsV2/pieChart/BasePieChartData.d.ts +0 -62
- package/dist/esm/src/components/chartsV2/pieChart/index.d.ts +0 -1
- package/dist/esm/src/components/chartsV2/pieChart/types/index.d.ts +0 -101
- package/dist/esm/src/components/chartsV2/utils/index.d.ts +0 -2
- package/dist/esm/src/components/widget/BaseV2Widget/BaseV2Widget.d.ts +0 -2
- package/dist/esm/src/components/widget/BaseV2Widget/index.d.ts +0 -1
- package/dist/esm/src/components/widget/fallback/WidgetFallback.d.ts +0 -23
- package/dist/esm/src/components/widget/fallback/index.d.ts +0 -1
|
@@ -1,9 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { RichEditorProps } from './types';
|
|
3
|
+
declare const RichEditor: React.FC<RichEditorProps>;
|
|
1
4
|
export default RichEditor;
|
|
2
|
-
declare function RichEditor({ className, defaultContent, setContent, placeholder, hiddenMenu, editable, }: {
|
|
3
|
-
className?: string | undefined;
|
|
4
|
-
defaultContent?: string | undefined;
|
|
5
|
-
setContent?: (() => void) | undefined;
|
|
6
|
-
placeholder?: string | undefined;
|
|
7
|
-
hiddenMenu?: {} | undefined;
|
|
8
|
-
editable?: boolean | undefined;
|
|
9
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const ColorPalletteIcon: ({ color }: {
|
|
2
|
+
color: string;
|
|
3
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const ColorHighlightIcon: ({ color }: {
|
|
5
|
+
color: string;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const TextTransformIcon: ({ color }: {
|
|
8
|
+
color: string;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const TextAlignIcon: {
|
|
11
|
+
Left: ({ color }: {
|
|
12
|
+
color?: string | undefined;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
Center: ({ color }: {
|
|
15
|
+
color?: string | undefined;
|
|
16
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
Right: ({ color }: {
|
|
18
|
+
color?: string | undefined;
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
};
|
|
21
|
+
export declare const TextLinkIcon: ({ color }: {
|
|
2
22
|
color?: string | undefined;
|
|
3
|
-
})
|
|
4
|
-
export function ColorHighlightIcon({ color }: {
|
|
5
|
-
color?: string | undefined;
|
|
6
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export function TextTransformIcon({ color }: {
|
|
8
|
-
color?: string | undefined;
|
|
9
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export namespace TextAlignIcon {
|
|
11
|
-
function Left({ color }: {
|
|
12
|
-
color: any;
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
function Center({ color }: {
|
|
15
|
-
color: any;
|
|
16
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
function Right({ color }: {
|
|
18
|
-
color: any;
|
|
19
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
}
|
|
21
|
-
export function TextLinkIcon({ color }: {
|
|
22
|
-
color: any;
|
|
23
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
export type TextType = 'p' | 'h1' | 'h2' | 'h3';
|
|
4
|
+
export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
|
+
export type HiddenMenuKey = 'bold' | 'italic' | 'underline' | 'strike' | 'color' | 'textType' | 'align' | 'link';
|
|
6
|
+
export type HiddenMenu = Partial<Record<HiddenMenuKey, boolean>>;
|
|
7
|
+
export interface RichEditorProps {
|
|
8
|
+
className?: string;
|
|
9
|
+
defaultContent?: string;
|
|
10
|
+
setContent?: (html: string) => void;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
hiddenMenu?: HiddenMenu;
|
|
13
|
+
editable?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface ToolBarProps {
|
|
16
|
+
editor: Editor | null;
|
|
17
|
+
textType: TextType;
|
|
18
|
+
onTextTypeDropdownChange: (e: React.SyntheticEvent, value: string | string[] | null | undefined) => void;
|
|
19
|
+
setLink: () => void;
|
|
20
|
+
hiddenMenu: HiddenMenu;
|
|
21
|
+
}
|
|
22
|
+
/** Small context so the dialog body can read/update the link draft
|
|
23
|
+
* without defining components inside render.
|
|
24
|
+
*/
|
|
25
|
+
export interface LinkDialogContextValue {
|
|
26
|
+
linkDraft: string;
|
|
27
|
+
setLinkDraft: (v: string) => void;
|
|
28
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
export declare const DEFAULT_ANIMATION_PROPS: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
initial: {
|
|
3
|
+
opacity: number;
|
|
4
|
+
scale: number;
|
|
5
|
+
x: string;
|
|
6
|
+
y: string;
|
|
7
7
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
animate: {
|
|
9
|
+
opacity: number;
|
|
10
|
+
scale: number;
|
|
11
|
+
x: string;
|
|
12
|
+
y: string;
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
exit: {
|
|
15
|
+
scale: number;
|
|
16
|
+
opacity: number;
|
|
17
17
|
};
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
transition: {
|
|
19
|
+
duration: number;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
@@ -1,34 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type ButtonColors } from '../../buttons';
|
|
3
|
-
export type DialogSize = 'sm' | 'md';
|
|
4
|
-
export interface DialogBoxProps {
|
|
5
|
-
className?: string;
|
|
6
|
-
size?: DialogSize;
|
|
7
|
-
}
|
|
8
|
-
export interface DialogActionHandlers {
|
|
9
|
-
dismiss: () => void;
|
|
10
|
-
}
|
|
11
|
-
export type DialogActionCallback = (handlers: DialogActionHandlers) => void;
|
|
12
|
-
export interface DialogOpenOptions {
|
|
13
|
-
title?: string | null;
|
|
14
|
-
description?: string | null;
|
|
15
|
-
actionText?: string;
|
|
16
|
-
cancelText?: string;
|
|
17
|
-
variant?: ButtonColors;
|
|
18
|
-
onAction?: DialogActionCallback | null;
|
|
19
|
-
onCancel?: (() => void) | null;
|
|
20
|
-
size?: DialogSize;
|
|
21
|
-
customAction?: ComponentType<DialogActionHandlers> | null;
|
|
22
|
-
body?: ComponentType<{
|
|
23
|
-
dismiss: () => void;
|
|
24
|
-
setNoDismissEnabled: (enabled: boolean) => void;
|
|
25
|
-
}> | null;
|
|
26
|
-
hideCancel?: boolean;
|
|
27
|
-
noDismiss?: boolean;
|
|
28
|
-
hideCrossDismiss?: boolean;
|
|
29
|
-
}
|
|
30
|
-
export interface DialogBoxHandle {
|
|
31
|
-
dialog: (options: DialogOpenOptions) => void;
|
|
32
|
-
}
|
|
1
|
+
import type { DialogBoxHandle, DialogBoxProps } from './types';
|
|
33
2
|
declare const DialogBox: import("react").ForwardRefExoticComponent<DialogBoxProps & import("react").RefAttributes<DialogBoxHandle>>;
|
|
34
3
|
export default DialogBox;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { ButtonColors } from 'components/buttons';
|
|
2
|
+
import type { ComponentType } from 'react';
|
|
3
|
+
export type DialogSize = 'sm' | 'md';
|
|
4
|
+
export interface DialogBoxProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
size?: DialogSize;
|
|
7
|
+
}
|
|
8
|
+
export interface DialogActionHandlers {
|
|
9
|
+
dismiss: () => void;
|
|
10
|
+
setNoDismissEnabled?: ((enabled: boolean) => void) | undefined;
|
|
11
|
+
}
|
|
12
|
+
export type DialogActionCallback = (handlers: DialogActionHandlers) => void;
|
|
13
|
+
export interface DialogOpenOptions {
|
|
14
|
+
title?: string | null;
|
|
15
|
+
description?: string | null;
|
|
16
|
+
actionText?: string;
|
|
17
|
+
cancelText?: string;
|
|
18
|
+
variant?: ButtonColors;
|
|
19
|
+
onAction?: DialogActionCallback | null;
|
|
20
|
+
onCancel?: (() => void) | null;
|
|
21
|
+
size?: DialogSize;
|
|
22
|
+
customAction?: ComponentType<DialogActionHandlers> | null;
|
|
23
|
+
body?: ComponentType<{
|
|
24
|
+
dismiss: () => void;
|
|
25
|
+
setNoDismissEnabled?: (enabled: boolean) => void;
|
|
26
|
+
}> | null;
|
|
27
|
+
hideCancel?: boolean;
|
|
28
|
+
noDismiss?: boolean;
|
|
29
|
+
hideCrossDismiss?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface DialogBoxHandle {
|
|
32
|
+
dialog: (options: DialogOpenOptions) => void;
|
|
33
|
+
}
|
|
34
|
+
export interface FooterInnerProps {
|
|
35
|
+
action: string;
|
|
36
|
+
cancel: string;
|
|
37
|
+
variant: ButtonColors;
|
|
38
|
+
customAction?: ComponentType<{
|
|
39
|
+
dismiss: () => void;
|
|
40
|
+
setNoDismissEnabled?: ((enabled: boolean) => void) | undefined;
|
|
41
|
+
}> | null | undefined;
|
|
42
|
+
setOpen: (open: boolean) => void;
|
|
43
|
+
hideCancel: boolean;
|
|
44
|
+
onAction?: DialogActionCallback | undefined;
|
|
45
|
+
onCancel?: (() => void) | undefined;
|
|
46
|
+
setNoDismissEnabled?: ((enabled: boolean) => void) | undefined;
|
|
47
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { MotionProps } from 'framer-motion';
|
|
2
2
|
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
3
|
-
import type { DEFAULT_ANIMATION_PROPS } from '../constants';
|
|
4
3
|
/**
|
|
5
4
|
* Footer props available for the default `ModalFooter` component.
|
|
6
5
|
*/
|
|
@@ -33,6 +32,6 @@ export interface BaseModalProps {
|
|
|
33
32
|
hideCrossDismiss?: boolean | undefined;
|
|
34
33
|
footerProps?: ModalFooterProps | undefined;
|
|
35
34
|
animation?: boolean | undefined;
|
|
36
|
-
animationProperties?:
|
|
35
|
+
animationProperties?: Record<string, object>;
|
|
37
36
|
}
|
|
38
37
|
export type FooterProps = ComponentPropsWithoutRef<'footer'> & MotionProps;
|
|
@@ -1,14 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type TabsConfig = {
|
|
3
|
+
/** Passed straight through to <Tabs>. Kept intentionally broad. */
|
|
4
|
+
tabs?: unknown[];
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
type ToggleTableDrawer = {
|
|
8
|
+
data?: {
|
|
9
|
+
index?: number;
|
|
10
|
+
} & Record<string, unknown>;
|
|
11
|
+
} & Record<string, unknown>;
|
|
12
|
+
export interface BaseSidePanelProps {
|
|
13
|
+
className?: string;
|
|
14
|
+
renderHeader?: React.ReactNode;
|
|
15
|
+
renderFooter?: React.ReactNode;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
/** When true, render inside BaseModal; otherwise render as a drawer div */
|
|
18
|
+
isModal?: boolean;
|
|
19
|
+
/** Open/close controls */
|
|
20
|
+
open?: boolean;
|
|
21
|
+
toggle?: () => void;
|
|
22
|
+
noDismiss?: boolean;
|
|
23
|
+
/** Slide-in animation (both for modal and drawer) */
|
|
24
|
+
animation?: boolean;
|
|
25
|
+
/** External state that tracks which table drawer/tab is open */
|
|
26
|
+
toggleTableDrawer?: ToggleTableDrawer;
|
|
27
|
+
setToggleTableDrawer?: (next: ToggleTableDrawer) => void;
|
|
28
|
+
/** Zero-based active tab index to sync from parent */
|
|
29
|
+
activeTab?: number;
|
|
30
|
+
/** Tabs configuration passed to <Tabs> */
|
|
31
|
+
tabsConfig?: TabsConfig;
|
|
14
32
|
}
|
|
33
|
+
declare const BaseSidePanel: React.FC<BaseSidePanelProps>;
|
|
34
|
+
export default BaseSidePanel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as BaseSidePanel } from
|
|
1
|
+
export { default as BaseSidePanel } from './BaseSidePanel';
|
|
@@ -1,29 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
let noAnimation: any;
|
|
11
|
-
let style: any;
|
|
12
|
-
}
|
|
13
|
-
namespace defaultProps {
|
|
14
|
-
let className_1: string;
|
|
15
|
-
export { className_1 as className };
|
|
16
|
-
let theme_1: string;
|
|
17
|
-
export { theme_1 as theme };
|
|
18
|
-
let height_1: null;
|
|
19
|
-
export { height_1 as height };
|
|
20
|
-
let width_1: string;
|
|
21
|
-
export { width_1 as width };
|
|
22
|
-
let variant_1: string;
|
|
23
|
-
export { variant_1 as variant };
|
|
24
|
-
let noAnimation_1: boolean;
|
|
25
|
-
export { noAnimation_1 as noAnimation };
|
|
26
|
-
let style_1: {};
|
|
27
|
-
export { style_1 as style };
|
|
28
|
-
}
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
interface SkeletonProps {
|
|
3
|
+
height?: number | string | undefined;
|
|
4
|
+
width?: number | string | undefined;
|
|
5
|
+
variant: 'text' | 'circle' | 'rounded' | 'ellipse';
|
|
6
|
+
theme: 'light' | 'dark';
|
|
7
|
+
className?: string | undefined;
|
|
8
|
+
style: CSSProperties;
|
|
9
|
+
noAnimation: boolean;
|
|
29
10
|
}
|
|
11
|
+
declare const Skeleton: (props: SkeletonProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default Skeleton;
|
|
@@ -7,12 +7,12 @@ interface ToggleOption {
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
className?: string;
|
|
9
9
|
}
|
|
10
|
-
interface ToggleProps {
|
|
10
|
+
export interface ToggleProps {
|
|
11
11
|
options?: ToggleOption[];
|
|
12
12
|
multi?: boolean;
|
|
13
13
|
defaultValue?: string | string[];
|
|
14
14
|
theme?: 'light' | 'dark';
|
|
15
|
-
value?: string | string[];
|
|
15
|
+
value?: string | string[] | number | null;
|
|
16
16
|
onChange?: (value: string | string[]) => void;
|
|
17
17
|
className?: string;
|
|
18
18
|
smooth?: boolean;
|
|
@@ -1,2 +1,81 @@
|
|
|
1
|
+
import React, { type CSSProperties, type MouseEvent, type ReactNode, type TouchEvent } from 'react';
|
|
2
|
+
interface SelectOption {
|
|
3
|
+
title: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
interface ToggleOption {
|
|
7
|
+
title: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}
|
|
10
|
+
interface BaseOptionData {
|
|
11
|
+
id: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
value?: string | string[] | number | null;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
interface DropdownOptionData extends BaseOptionData {
|
|
18
|
+
id: 'dropdown';
|
|
19
|
+
onChange: (event: React.SyntheticEvent, value: string | string[] | null | undefined) => void;
|
|
20
|
+
selectOption: SelectOption[];
|
|
21
|
+
}
|
|
22
|
+
interface ExpandOptionData extends BaseOptionData {
|
|
23
|
+
id: 'expand';
|
|
24
|
+
onClick: () => void;
|
|
25
|
+
}
|
|
26
|
+
interface DatePickerOptionData extends BaseOptionData {
|
|
27
|
+
id: 'datepicker';
|
|
28
|
+
range?: boolean;
|
|
29
|
+
onApply: (date: Date | Date[] | null) => void;
|
|
30
|
+
onClear: () => void;
|
|
31
|
+
date: Date | Date[] | null;
|
|
32
|
+
}
|
|
33
|
+
interface FilterOptionData extends BaseOptionData {
|
|
34
|
+
id: 'filter';
|
|
35
|
+
}
|
|
36
|
+
interface ToggleOptionData extends BaseOptionData {
|
|
37
|
+
id: 'toggle';
|
|
38
|
+
options: ToggleOption[];
|
|
39
|
+
onChange?: (value: string | string[]) => void;
|
|
40
|
+
}
|
|
41
|
+
interface CustomOptionData extends BaseOptionData {
|
|
42
|
+
id: 'custom';
|
|
43
|
+
render: () => ReactNode;
|
|
44
|
+
}
|
|
45
|
+
type OptionData = DropdownOptionData | ExpandOptionData | DatePickerOptionData | FilterOptionData | ToggleOptionData | CustomOptionData;
|
|
46
|
+
interface ToggleDrawerData {
|
|
47
|
+
index: number;
|
|
48
|
+
[key: string]: unknown;
|
|
49
|
+
}
|
|
50
|
+
interface BodyProps {
|
|
51
|
+
toggle: (params?: {
|
|
52
|
+
data?: ToggleDrawerData;
|
|
53
|
+
}) => void;
|
|
54
|
+
}
|
|
55
|
+
interface BaseWidgetProps {
|
|
56
|
+
loading?: boolean;
|
|
57
|
+
title?: string;
|
|
58
|
+
titleOptions?: ReactNode;
|
|
59
|
+
showBack?: boolean;
|
|
60
|
+
onBack?: () => void;
|
|
61
|
+
options?: OptionData[];
|
|
62
|
+
className?: string;
|
|
63
|
+
children?: ReactNode;
|
|
64
|
+
drawerClassName?: string;
|
|
65
|
+
overlayClassName?: string;
|
|
66
|
+
setFallback?: (value: boolean) => void;
|
|
67
|
+
style?: CSSProperties;
|
|
68
|
+
onMouseDown?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
69
|
+
onMouseUp?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
70
|
+
onTouchEnd?: (event: TouchEvent<HTMLDivElement>) => void;
|
|
71
|
+
titleDesc?: string;
|
|
72
|
+
body?: React.ComponentType<BodyProps>;
|
|
73
|
+
headerOptions?: OptionData[];
|
|
74
|
+
rightActions?: (toggleDrawerParams: {
|
|
75
|
+
toggleDrawer: (params?: {
|
|
76
|
+
data?: ToggleDrawerData;
|
|
77
|
+
}) => void;
|
|
78
|
+
}) => ReactNode;
|
|
79
|
+
}
|
|
80
|
+
declare const BaseWidget: React.ForwardRefExoticComponent<BaseWidgetProps & React.RefAttributes<HTMLDivElement>>;
|
|
1
81
|
export default BaseWidget;
|
|
2
|
-
declare const BaseWidget: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as BaseWidget } from
|
|
1
|
+
export { default as BaseWidget } from './BaseWidget';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@banyan_cloud/roots",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.45",
|
|
4
4
|
"description": "Design System Library which drives the Banyan Cloud products",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -23,16 +23,11 @@
|
|
|
23
23
|
"@tiptap/pm": "^2.11.7",
|
|
24
24
|
"@tiptap/react": "^2.11.7",
|
|
25
25
|
"@tiptap/starter-kit": "^2.10.3",
|
|
26
|
-
"chart.js": "^4.4.4",
|
|
27
|
-
"chartjs-plugin-annotation": "^3.0.1",
|
|
28
|
-
"chartjs-plugin-datalabels": "^2.2.0",
|
|
29
|
-
"d3": "^7.8.5",
|
|
30
26
|
"echarts": "^5.6.0",
|
|
31
27
|
"echarts-for-react": "^3.0.2",
|
|
32
28
|
"fast-equals": "^4.0.3",
|
|
33
29
|
"framer-motion": "12.23.12",
|
|
34
30
|
"react": "^18.2.0",
|
|
35
|
-
"react-chartjs-2": "^5.2.0",
|
|
36
31
|
"react-dom": "^18.2.0",
|
|
37
32
|
"react-error-boundary": "^4.0.10",
|
|
38
33
|
"react-syntax-highlighter": "^15.6.1"
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
export declare const sampleData: {
|
|
2
|
-
chartData: {
|
|
3
|
-
MySql: {
|
|
4
|
-
x1: number;
|
|
5
|
-
};
|
|
6
|
-
PgSql: {
|
|
7
|
-
x1: number;
|
|
8
|
-
};
|
|
9
|
-
Oracle: {
|
|
10
|
-
x1: number;
|
|
11
|
-
};
|
|
12
|
-
Oradcdcle: {
|
|
13
|
-
x1: number;
|
|
14
|
-
};
|
|
15
|
-
Oracdcdcle: {
|
|
16
|
-
x1: number;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
metaData: {
|
|
20
|
-
totalControls: {
|
|
21
|
-
x1: number;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export declare const sampleStackData: {
|
|
26
|
-
chartData: {
|
|
27
|
-
Authentication: {
|
|
28
|
-
MySql: {
|
|
29
|
-
x1: number;
|
|
30
|
-
x2: number;
|
|
31
|
-
x3: number;
|
|
32
|
-
};
|
|
33
|
-
PgSql: {
|
|
34
|
-
x1: number;
|
|
35
|
-
x2: number;
|
|
36
|
-
x3: number;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
Setting: {
|
|
40
|
-
MySql: {
|
|
41
|
-
x1: number;
|
|
42
|
-
x2: number;
|
|
43
|
-
x3: number;
|
|
44
|
-
};
|
|
45
|
-
PgSql: {
|
|
46
|
-
x1: number;
|
|
47
|
-
x2: number;
|
|
48
|
-
x3: number;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
'High Availability': {
|
|
52
|
-
MySql: {
|
|
53
|
-
x1: number;
|
|
54
|
-
x2: number;
|
|
55
|
-
x3: number;
|
|
56
|
-
};
|
|
57
|
-
PgSql: {
|
|
58
|
-
x1: number;
|
|
59
|
-
x2: number;
|
|
60
|
-
x3: number;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
Audit: {
|
|
64
|
-
MySql: {
|
|
65
|
-
x1: number;
|
|
66
|
-
x2: number;
|
|
67
|
-
x3: number;
|
|
68
|
-
};
|
|
69
|
-
PgSql: {
|
|
70
|
-
x1: number;
|
|
71
|
-
x2: number;
|
|
72
|
-
x3: number;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
Authorization: {
|
|
76
|
-
MySql: {
|
|
77
|
-
x1: number;
|
|
78
|
-
x2: number;
|
|
79
|
-
x3: number;
|
|
80
|
-
};
|
|
81
|
-
PgSql: {
|
|
82
|
-
x1: number;
|
|
83
|
-
x2: number;
|
|
84
|
-
x3: number;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
Patches: {
|
|
88
|
-
MySql: {
|
|
89
|
-
x1: number;
|
|
90
|
-
x2: number;
|
|
91
|
-
x3: number;
|
|
92
|
-
};
|
|
93
|
-
PgSql: {
|
|
94
|
-
x1: number;
|
|
95
|
-
x2: number;
|
|
96
|
-
x3: number;
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
metaData: {
|
|
101
|
-
controlsApplied: {
|
|
102
|
-
MySql: {
|
|
103
|
-
x1: number;
|
|
104
|
-
};
|
|
105
|
-
PgSql: {
|
|
106
|
-
x1: number;
|
|
107
|
-
};
|
|
108
|
-
Oracle: {
|
|
109
|
-
x1: number;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
keyData: {
|
|
113
|
-
x1: string;
|
|
114
|
-
x2: string;
|
|
115
|
-
x3: string;
|
|
116
|
-
};
|
|
117
|
-
totalControls: {
|
|
118
|
-
x1: number;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as BaseBarChartV2 } from './BaseVerticalBarChart';
|