@bcrumbs.net/bc-ui 0.0.1 → 0.0.3
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/README.md +0 -7
- package/index.esm.d.ts +1 -0
- package/index.esm.js +15798 -4211
- package/package.json +14 -10
- package/src/index.d.ts +51 -0
- package/src/lib/InputWithSuggestions/index.d.ts +42 -0
- package/{lib → src/lib}/addButton/bcadd-button.d.ts +3 -2
- package/src/lib/avatar/index.d.ts +21 -0
- package/src/lib/button/bcbutton.d.ts +24 -0
- package/src/lib/button/types.d.ts +19 -0
- package/src/lib/charts/barLineChart/index.d.ts +28 -0
- package/src/lib/charts/barLineChart/types.d.ts +10 -0
- package/src/lib/charts/pieChart/index.d.ts +12 -0
- package/src/lib/constants/BoxShadow.d.ts +6 -0
- package/src/lib/constants/Color.d.ts +73 -0
- package/src/lib/constants/Droplist.d.ts +7 -0
- package/src/lib/constants/DroplistSizes.d.ts +14 -0
- package/{lib → src/lib}/constants/IconType.d.ts +14 -8
- package/src/lib/constants/InputHeight.d.ts +16 -0
- package/{lib → src/lib}/constants/LineHeight.d.ts +1 -1
- package/src/lib/constants/LogoSize.d.ts +6 -0
- package/{lib → src/lib}/constants/TextSize.d.ts +1 -1
- package/{lib → src/lib}/constants/index.d.ts +4 -0
- package/src/lib/dateRangePicker/StaticRanges.d.ts +3 -0
- package/src/lib/dateRangePicker/StyledDateRange.d.ts +10 -0
- package/src/lib/dateRangePicker/index.d.ts +30 -0
- package/src/lib/dropList/bcdrop-list.d.ts +16 -0
- package/src/lib/dropdown/DropdownList/DropdownListItem/index.d.ts +57 -0
- package/src/lib/dropdown/DropdownList/index.d.ts +71 -0
- package/src/lib/dropdown/index.d.ts +46 -0
- package/src/lib/dropdown/types.d.ts +50 -0
- package/src/lib/hooks/useDebounce/index.d.ts +9 -0
- package/src/lib/hooks/useDropdownClickOutside/index.d.ts +2 -0
- package/{lib → src/lib}/hooks/useForm/index.d.ts +6 -6
- package/src/lib/hooks/useInterval/index.d.ts +1 -0
- package/src/lib/hooks/usePolling/index.d.ts +10 -0
- package/src/lib/hooks/usePrevious/index.d.ts +1 -0
- package/src/lib/hooks/useToggle/index.d.ts +1 -0
- package/src/lib/hooks/useUrlState/index.d.ts +9 -0
- package/src/lib/hooks/useWindowSize/index.d.ts +1 -0
- package/src/lib/icon/bcicon.d.ts +29 -0
- package/src/lib/inputTags/index.d.ts +22 -0
- package/src/lib/layout/flexBox/index.d.ts +77 -0
- package/src/lib/layout/gridLayout/index.d.ts +11 -0
- package/src/lib/layout/horizontalLayout/index.d.ts +26 -0
- package/src/lib/layout/index.d.ts +4 -0
- package/src/lib/layout/verticalLayout/index.d.ts +22 -0
- package/src/lib/lazyScrollbar/index.d.ts +10 -0
- package/src/lib/line/index.d.ts +7 -0
- package/{lib → src/lib}/loading/loading.d.ts +1 -2
- package/src/lib/navigation/bcnavigation.d.ts +10 -0
- package/src/lib/navigation/left-nav/index.d.ts +9 -0
- package/src/lib/navigation/left-nav/leftNavButton/index.d.ts +7 -0
- package/src/lib/navigation/types.d.ts +14 -0
- package/{lib → src/lib}/overlay/index.d.ts +2 -1
- package/{lib → src/lib}/popup/index.d.ts +1 -1
- package/src/lib/radioButton/index.d.ts +20 -0
- package/{lib → src/lib}/scrollArea/index.d.ts +1 -0
- package/src/lib/searchbox/bcsearchbox.d.ts +12 -0
- package/src/lib/seperator/index.d.ts +16 -0
- package/src/lib/skeleton/index.d.ts +12 -0
- package/{lib → src/lib}/table/bctable.d.ts +20 -19
- package/src/lib/textArea/index.d.ts +4 -0
- package/src/lib/textbox/bctextbox.d.ts +21 -0
- package/{lib → src/lib}/toaster/index.d.ts +1 -1
- package/src/lib/utils/extractInitialsFromText.d.ts +1 -0
- package/src/lib/utils/formatDate.d.ts +2 -0
- package/src/lib/utils/index.d.ts +1 -0
- package/index.d.ts +0 -26
- package/index.umd.css +0 -39
- package/index.umd.js +0 -4756
- package/lib/button/bcbutton.d.ts +0 -39
- package/lib/constants/Color.d.ts +0 -32
- package/lib/dropList/bcdrop-list.d.ts +0 -24
- package/lib/hooks/useForm/fieldsTypes.d.ts +0 -9
- package/lib/hooks/useInterval/index.d.ts +0 -2
- package/lib/icon/bcicon.d.ts +0 -17
- package/lib/navigation/bcnavigation.d.ts +0 -40
- package/lib/navigation/left-nav/index.d.ts +0 -26
- package/lib/navigation/left-nav/leftNavButton/index.d.ts +0 -13
- package/lib/searchbox/bcsearchbox.d.ts +0 -9
- package/lib/tagsInput/bctags-input.d.ts +0 -10
- package/lib/textbox/bctextbox.d.ts +0 -28
- /package/{lib → src/lib}/block/bcblock.d.ts +0 -0
- /package/{lib → src/lib}/checkbox/bccheckbox.d.ts +0 -0
- /package/{lib → src/lib}/constants/ButtonSize.d.ts +0 -0
- /package/{lib → src/lib}/constants/FontFamily.d.ts +0 -0
- /package/{lib → src/lib}/constants/Key.d.ts +0 -0
- /package/{lib → src/lib}/constants/KeyCode.d.ts +0 -0
- /package/{lib → src/lib}/constants/TextAlign.d.ts +0 -0
- /package/{lib → src/lib}/constants/TextStyle.d.ts +0 -0
- /package/{lib → src/lib}/constants/TextWeight.d.ts +0 -0
- /package/{lib → src/lib}/constants/WhiteSpace.d.ts +0 -0
- /package/{lib → src/lib}/dropZone/index.d.ts +0 -0
- /package/{lib → src/lib}/hooks/useForceUpdate/index.d.ts +0 -0
- /package/{lib → src/lib}/hooks/useForm/validationConstant.d.ts +0 -0
- /package/{lib → src/lib}/hooks/withEnterAnimation/index.d.ts +0 -0
- /package/{lib → src/lib}/iconButton/index.d.ts +0 -0
- /package/{lib → src/lib}/progress/index.d.ts +0 -0
- /package/{lib → src/lib}/select/bcselect.d.ts +0 -0
- /package/{lib → src/lib}/text/bctext.d.ts +0 -0
- /package/{lib → src/lib}/tooltip/TooltipPlacement.d.ts +0 -0
- /package/{lib → src/lib}/tooltip/TooltipTrigger.d.ts +0 -0
- /package/{lib → src/lib}/tooltip/index.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,31 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bcrumbs.net/bc-ui",
|
|
3
3
|
"description": "The UI components of Bread Crumbs portals",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.3",
|
|
5
5
|
"keyword": [
|
|
6
6
|
"bcrumbs",
|
|
7
7
|
"bc-ui"
|
|
8
8
|
],
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"react": "
|
|
10
|
+
"react": "18.3.1",
|
|
11
11
|
"@emotion/react": "11.5.0",
|
|
12
12
|
"@emotion/styled": "11.3.0",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"react-router-dom": "^5.2.0"
|
|
13
|
+
"@radix-ui/themes": "^3.1.5",
|
|
14
|
+
"@radix-ui/react-icons": "^1.3.2"
|
|
16
15
|
},
|
|
17
16
|
"dependencies": {
|
|
17
|
+
"react-date-range": "^2.0.1",
|
|
18
18
|
"react-loader-spinner": "^4.0.0",
|
|
19
19
|
"react-dropzone": "^3.13.4",
|
|
20
20
|
"react-custom-scrollbars": "^4.2.1",
|
|
21
|
-
"react-tagsinput": "^3.19.0",
|
|
22
21
|
"react-toastify": "^8.2.0",
|
|
23
|
-
"@tippyjs/react": "^4.1.0"
|
|
22
|
+
"@tippyjs/react": "^4.1.0",
|
|
23
|
+
"recharts": "2.1.12",
|
|
24
|
+
"date-fns": "^2.28.0"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@types/react-date-range": "^1.4.9"
|
|
24
28
|
},
|
|
25
29
|
"author": {
|
|
26
30
|
"name": "Ahmad Mhaish"
|
|
27
31
|
},
|
|
28
|
-
"main": "./index.umd.js",
|
|
29
32
|
"module": "./index.esm.js",
|
|
30
|
-
"
|
|
31
|
-
|
|
33
|
+
"type": "module",
|
|
34
|
+
"main": "./index.esm.js"
|
|
35
|
+
}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export * from './lib/loading/loading';
|
|
2
|
+
export * from './lib/textbox/bctextbox';
|
|
3
|
+
export * from './lib/dropList/bcdrop-list';
|
|
4
|
+
export * from './lib/checkbox/bccheckbox';
|
|
5
|
+
export * from './lib/navigation/bcnavigation';
|
|
6
|
+
export * from './lib/navigation/types';
|
|
7
|
+
export * from './lib/text/bctext';
|
|
8
|
+
export * from './lib/table/bctable';
|
|
9
|
+
export * from './lib/searchbox/bcsearchbox';
|
|
10
|
+
export * from './lib/toaster';
|
|
11
|
+
export * from './lib/icon/bcicon';
|
|
12
|
+
export * from './lib/iconButton';
|
|
13
|
+
export * from './lib/overlay';
|
|
14
|
+
export * from './lib/popup';
|
|
15
|
+
export * from './lib/scrollArea';
|
|
16
|
+
export * from './lib/lazyScrollbar';
|
|
17
|
+
export * from './lib/addButton/bcadd-button';
|
|
18
|
+
export * from './lib/progress';
|
|
19
|
+
export * from './lib/dropZone';
|
|
20
|
+
export * from './lib/tooltip';
|
|
21
|
+
export * from './lib/layout';
|
|
22
|
+
export * from './lib/line';
|
|
23
|
+
export * from './lib/dropdown';
|
|
24
|
+
export * from './lib/dropdown/types';
|
|
25
|
+
export * from './lib/dropdown/DropdownList';
|
|
26
|
+
export * from './lib/skeleton';
|
|
27
|
+
export * from './lib/seperator';
|
|
28
|
+
export * from './lib/avatar';
|
|
29
|
+
export * from './lib/inputTags';
|
|
30
|
+
export * from './lib/utils';
|
|
31
|
+
export * from './lib/radioButton';
|
|
32
|
+
export * from './lib/charts/pieChart';
|
|
33
|
+
export * from './lib/charts/barLineChart';
|
|
34
|
+
export * from './lib/dateRangePicker';
|
|
35
|
+
export * from './lib/InputWithSuggestions';
|
|
36
|
+
export * from './lib/textArea';
|
|
37
|
+
export * from './lib/button/bcbutton';
|
|
38
|
+
export * from './lib/button/types';
|
|
39
|
+
export * from './lib/block/bcblock';
|
|
40
|
+
export * from './lib/hooks/withEnterAnimation';
|
|
41
|
+
export * from './lib/hooks/useForm';
|
|
42
|
+
export * from './lib/hooks/useForm/validationConstant';
|
|
43
|
+
export * from './lib/hooks/useInterval';
|
|
44
|
+
export * from './lib/hooks/useUrlState';
|
|
45
|
+
export * from './lib/hooks/useDropdownClickOutside';
|
|
46
|
+
export * from './lib/hooks/usePolling';
|
|
47
|
+
export * from './lib/hooks/useDebounce';
|
|
48
|
+
export * from './lib/hooks/useWindowSize';
|
|
49
|
+
export * from './lib/hooks/useInterval';
|
|
50
|
+
export * from './lib/hooks/useToggle';
|
|
51
|
+
export * from './lib/constants';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React, { ChangeEvent, ReactElement } from 'react';
|
|
2
|
+
import IconType from '../constants/IconType';
|
|
3
|
+
import { AvatarContentProps } from '../avatar';
|
|
4
|
+
import { InputHeight } from '../constants';
|
|
5
|
+
export type SuggestionValue = string | number;
|
|
6
|
+
type SuggestionContent = {
|
|
7
|
+
icon?: IconType;
|
|
8
|
+
avatar?: AvatarContentProps;
|
|
9
|
+
text?: string;
|
|
10
|
+
description?: string | null;
|
|
11
|
+
role?: string | null;
|
|
12
|
+
};
|
|
13
|
+
export type Suggestion = {
|
|
14
|
+
value: SuggestionValue;
|
|
15
|
+
content: SuggestionContent;
|
|
16
|
+
hidden?: boolean;
|
|
17
|
+
hideRightSide?: boolean;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* This component is used to add input with suggestions in the application
|
|
21
|
+
*/
|
|
22
|
+
export type BCInputWithSuggestionsProps = {
|
|
23
|
+
suggestions: Suggestion[];
|
|
24
|
+
onChange?: (value?: string) => void;
|
|
25
|
+
onBlur?: (ev: ChangeEvent<HTMLInputElement>) => void;
|
|
26
|
+
value?: SuggestionValue;
|
|
27
|
+
height?: InputHeight;
|
|
28
|
+
name?: string;
|
|
29
|
+
dataId?: string | number;
|
|
30
|
+
placeholder?: string;
|
|
31
|
+
error?: string;
|
|
32
|
+
rightSide?: (id: string | number, value: SuggestionValue) => ReactElement;
|
|
33
|
+
dataTestid?: string;
|
|
34
|
+
isStringValue?: boolean;
|
|
35
|
+
appendInput?: (ev?: ChangeEvent<HTMLInputElement>) => void;
|
|
36
|
+
onDropdownStateChange?: (options: {
|
|
37
|
+
hidden: boolean;
|
|
38
|
+
}) => void;
|
|
39
|
+
onItemPicked?: (item: Suggestion) => void;
|
|
40
|
+
};
|
|
41
|
+
export declare const BCInputWithSuggestions: React.ForwardRefExoticComponent<BCInputWithSuggestionsProps & React.RefAttributes<HTMLInputElement>>;
|
|
42
|
+
export {};
|
|
@@ -2,10 +2,11 @@ import { ChangeEvent } from 'react';
|
|
|
2
2
|
export interface BCAddButtonProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
placeholder?: string;
|
|
5
|
-
btnContent?: string;
|
|
6
5
|
onChange: (ev: ChangeEvent<HTMLInputElement>) => void;
|
|
7
6
|
value?: string;
|
|
8
7
|
onSubmit: () => void;
|
|
9
8
|
disabled?: boolean;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
rtl?: boolean;
|
|
10
11
|
}
|
|
11
|
-
export declare const BCAddButton: ({ className, placeholder, value, onSubmit, onChange, }: BCAddButtonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const BCAddButton: ({ className, placeholder, value, onSubmit, onChange, isLoading, rtl }: BCAddButtonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import Color from '../constants/Color';
|
|
2
|
+
export declare enum AvatarSize {
|
|
3
|
+
S = 28,
|
|
4
|
+
M = 36,
|
|
5
|
+
L = 42,
|
|
6
|
+
XL = 72,
|
|
7
|
+
XXL = 92,
|
|
8
|
+
XXXL = 122
|
|
9
|
+
}
|
|
10
|
+
export type AvatarContentProps = {
|
|
11
|
+
url?: string | null;
|
|
12
|
+
text?: string;
|
|
13
|
+
color?: string;
|
|
14
|
+
textColor?: Color;
|
|
15
|
+
};
|
|
16
|
+
export type AvatarProps = AvatarContentProps & {
|
|
17
|
+
size?: AvatarSize;
|
|
18
|
+
className?: string;
|
|
19
|
+
showTooltip?: boolean;
|
|
20
|
+
};
|
|
21
|
+
export declare function BCAvatar({ url, text, color, size, className, textColor, showTooltip, }: AvatarProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { LegacyRef, MouseEvent, ReactElement } from 'react';
|
|
2
|
+
import { ButtonSize } from '../constants';
|
|
3
|
+
export interface BCButtonProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
onClick: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
6
|
+
onSubClick?: (key: string) => void;
|
|
7
|
+
text: string | ReactElement;
|
|
8
|
+
text2?: string;
|
|
9
|
+
type?: 'button' | 'submit' | 'reset' | undefined;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
icon?: string | ReactElement;
|
|
13
|
+
hasDropList?: boolean;
|
|
14
|
+
refProp?: LegacyRef<HTMLButtonElement>;
|
|
15
|
+
onClick2?: () => void;
|
|
16
|
+
buttonSize?: ButtonSize;
|
|
17
|
+
buttonType?: 'primary-btn' | 'sec-btn' | 'rounded-btn';
|
|
18
|
+
loadingIconPath?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface BCButtonState {
|
|
21
|
+
showDropdown: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const BCButton: ({ className, onClick, text, disabled, loading, icon, refProp, hasDropList, onClick2, text2, type, buttonSize, buttonType, loadingIconPath, }: BCButtonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
|
+
export default BCButton;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum HTMLButtonType {
|
|
2
|
+
BUTTON = "button",
|
|
3
|
+
SUBMIT = "submit"
|
|
4
|
+
}
|
|
5
|
+
export declare enum ButtonType {
|
|
6
|
+
DARK = "dark",
|
|
7
|
+
PRIMARY = "primary",
|
|
8
|
+
SECONDARY = "secondary",
|
|
9
|
+
GHOST = "ghost",
|
|
10
|
+
DANGER = "danger",
|
|
11
|
+
DANGER_LIGHT = "dangerLight",
|
|
12
|
+
GREEN = "green",
|
|
13
|
+
BURNING_ORANGE = "burningOrange",
|
|
14
|
+
COLD_FUSION = "coldFusion",
|
|
15
|
+
COLD_FUSION01 = "coldFusion01",
|
|
16
|
+
DAGOBAH_FOREST = "dagobahForest",
|
|
17
|
+
WHITE = "white",
|
|
18
|
+
BORDERED_WHITE = "bordered_white"
|
|
19
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { XAxisProps, YAxisProps, TooltipProps } from 'recharts';
|
|
2
|
+
import { ValueType, NameType } from 'recharts/types/component/DefaultTooltipContent';
|
|
3
|
+
import { ContentType, Formatter } from 'recharts/types/component/DefaultLegendContent';
|
|
4
|
+
import { BarPropsType, LineProps } from './types';
|
|
5
|
+
interface IProps {
|
|
6
|
+
data: any[];
|
|
7
|
+
percentage?: number;
|
|
8
|
+
xAxisProps: XAxisProps;
|
|
9
|
+
tooltipProps?: TooltipProps<ValueType, NameType>;
|
|
10
|
+
lineProps?: LineProps;
|
|
11
|
+
barProps: BarPropsType;
|
|
12
|
+
yAxisProps?: YAxisProps;
|
|
13
|
+
endYaxisProps?: YAxisProps;
|
|
14
|
+
height?: number;
|
|
15
|
+
legendProps?: {
|
|
16
|
+
content?: ContentType;
|
|
17
|
+
formatter?: Formatter;
|
|
18
|
+
};
|
|
19
|
+
primaryColor?: string;
|
|
20
|
+
secondaryColor?: string;
|
|
21
|
+
barColor?: string;
|
|
22
|
+
rtl?: boolean;
|
|
23
|
+
showGrid?: boolean;
|
|
24
|
+
showYAxis?: boolean;
|
|
25
|
+
showLegend?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare function BCBarLineChart({ data, percentage, tooltipProps, xAxisProps, lineProps, barProps, yAxisProps, endYaxisProps, height, legendProps, primaryColor, secondaryColor, barColor, rtl, showGrid, showYAxis, showLegend }: IProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DataKey } from "recharts/types/util/types";
|
|
2
|
+
import { LineProps as RechartsLineProps } from "recharts";
|
|
3
|
+
export type AxisPropType = "number" | "category" | undefined;
|
|
4
|
+
export type LineProps = RechartsLineProps & {
|
|
5
|
+
ref?: undefined;
|
|
6
|
+
};
|
|
7
|
+
export type BarPropsType = {
|
|
8
|
+
dataKey: DataKey<any>;
|
|
9
|
+
fill?: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type DataPropsType = {
|
|
2
|
+
value: number;
|
|
3
|
+
color?: string;
|
|
4
|
+
offset?: number;
|
|
5
|
+
};
|
|
6
|
+
type MiniPiePropsType = {
|
|
7
|
+
data: DataPropsType[];
|
|
8
|
+
width?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
};
|
|
11
|
+
export declare function BCMiniPie({ data, width, height }: MiniPiePropsType): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export declare enum Color {
|
|
2
|
+
INHERIT = "inherit",
|
|
3
|
+
PRIMARY = "#006466",
|
|
4
|
+
PRIMARY_LIGHTER = "#95D5B2",
|
|
5
|
+
PRIMARY_DARKER = "#065A60",
|
|
6
|
+
SECONDARY = "#4e4f4f",
|
|
7
|
+
SECONDARY_LIGHT = "#9b9b9b",
|
|
8
|
+
SECONDARY_LIGHT_HOVER = "#191919",
|
|
9
|
+
LIGHT_COLOR = "#ccdbd5",
|
|
10
|
+
DANGER_COLOR = "#b52e2e",
|
|
11
|
+
SUCCESS_COLOR = "#2eb583",
|
|
12
|
+
CONTROLS_COLOR = "#fff",
|
|
13
|
+
FONT_COLOR = "#000",
|
|
14
|
+
ACCENT10 = "rgba(89, 111, 255, 0.1)",
|
|
15
|
+
PRIMARY90 = "rgba(0, 100, 102, 0.9)",
|
|
16
|
+
PRIMARY80 = "rgba(0, 100, 102, 0.8)",
|
|
17
|
+
PRIMARY60 = "rgba(0, 100, 102, 0.6)",
|
|
18
|
+
PRIMARY40 = "rgba(0, 100, 102, 0.4)",
|
|
19
|
+
PRIMARY30 = "rgba(0, 100, 102, 0.3)",
|
|
20
|
+
PRIMARY20 = "rgba(0, 100, 102, 0.2)",
|
|
21
|
+
PRIMARY10 = "rgba(0, 100, 102, 0.1)",
|
|
22
|
+
PRIMARY05 = "rgba(0, 100, 102, 0.05)",
|
|
23
|
+
PRIMARY_LIGHTER90 = "rgba(149, 213, 178, 0.9)",
|
|
24
|
+
PRIMARY_LIGHTER80 = "rgba(149, 213, 178, 0.8)",
|
|
25
|
+
PRIMARY_LIGHTER60 = "rgba(149, 213, 178, 0.6)",
|
|
26
|
+
PRIMARY_LIGHTER40 = "rgba(149, 213, 178, 0.4)",
|
|
27
|
+
PRIMARY_LIGHTER30 = "rgba(149, 213, 178, 0.3)",
|
|
28
|
+
PRIMARY_LIGHTER20 = "rgba(149, 213, 178, 0.2)",
|
|
29
|
+
PRIMARY_LIGHTER10 = "rgba(149, 213, 178, 0.1)",
|
|
30
|
+
PRIMARY_LIGHTER05 = "rgba(149, 213, 178, 0.05)",
|
|
31
|
+
SECONDARY90 = "rgb(106, 107, 131, 0.9)",
|
|
32
|
+
SECONDARY80 = "rgb(106, 107, 131, 0.8)",
|
|
33
|
+
SECONDARY70 = "rgb(106, 107, 131, 0.7)",
|
|
34
|
+
SECONDARY60 = "rgb(106, 107, 131, 0.6)",
|
|
35
|
+
SECONDARY50 = "rgb(106, 107, 131, 0.5)",
|
|
36
|
+
SECONDARY40 = "rgb(106, 107, 131, 0.4)",
|
|
37
|
+
SECONDARY30 = "rgb(106, 107, 131, 0.3)",
|
|
38
|
+
SECONDARY20 = "rgb(106, 107, 131, 0.2)",
|
|
39
|
+
SECONDARY10 = "rgb(106, 107, 131, 0.1)",
|
|
40
|
+
SECONDARY05 = "rgb(106, 107, 131, 0.05)",
|
|
41
|
+
GREY_LIGHT_BORDER = "#e4e4e4",
|
|
42
|
+
GREY_BORDER = "#D9D9D9",
|
|
43
|
+
GREY_TEXT_COLOR = "#727272",
|
|
44
|
+
PRIMARY_DARKER80 = "rgb(6, 90, 96, 0.8)",
|
|
45
|
+
DAGOBAH_FOREST = "#003333",
|
|
46
|
+
CHROME_ORANGE = "#FF9900",
|
|
47
|
+
CHROME_ORANGE20 = "rgba(255, 153, 0, 0.2)",
|
|
48
|
+
RED_HOT_HOOD = "#FF3300",
|
|
49
|
+
MR_WOLF = "#330033",
|
|
50
|
+
RED_HOT_HOOD50 = "rgba(255,51,0,0.5)",
|
|
51
|
+
COLD_FUSION = "#6666FF",
|
|
52
|
+
BLUEBERRY = "#330066",
|
|
53
|
+
HOT_MAGENTA = "#FF3366",
|
|
54
|
+
BURNING_ORANGE = "#FF6600",
|
|
55
|
+
LEMON_YELLOW = "#FFCC00",
|
|
56
|
+
LASER_YELLOW = "#FFFF00",
|
|
57
|
+
KRYPTONITE_GREEN = "#CCFF00",
|
|
58
|
+
GREEN = "#66FF66",
|
|
59
|
+
DARK_GREEN = "#148643",
|
|
60
|
+
CRAZY_CYAN = "#66FFFF",
|
|
61
|
+
EXOPLANET_BLUE = "#66CCFF",
|
|
62
|
+
DARK_BLUE = "#457578",
|
|
63
|
+
LIGHT_BLUE = "#e0f3e8",
|
|
64
|
+
PURPLE = "#9999FF",
|
|
65
|
+
PURPLE_RAIN = "#9966FF",
|
|
66
|
+
VIOLET = "#CC66FF",
|
|
67
|
+
AEROSMITH_PINK = "#FF66FF",
|
|
68
|
+
WARNING_DOWNLOAD = "rgba(255, 153, 0, 0.1)",
|
|
69
|
+
GREY_WHITE = "#f0f1f5",
|
|
70
|
+
SLIDER_DOT = "#dededf",
|
|
71
|
+
ASSETS_PLAN_COLOR = "#35354C"
|
|
72
|
+
}
|
|
73
|
+
export default Color;
|
|
@@ -3,12 +3,12 @@ export declare enum IconType {
|
|
|
3
3
|
color = "color",
|
|
4
4
|
colorPalette = "colorPalette",
|
|
5
5
|
group = "group",
|
|
6
|
-
user = "user",
|
|
6
|
+
user = "fa fa-user-circle-o",
|
|
7
7
|
users = "users",
|
|
8
8
|
folderMinus = "folderMinus",
|
|
9
9
|
folderPlus = "folderPlus",
|
|
10
10
|
close = "fa fa-times",
|
|
11
|
-
chevronDown = "
|
|
11
|
+
chevronDown = "fa fa-chevron-down",
|
|
12
12
|
chevronUpSmall = "chevronUpSmall",
|
|
13
13
|
chevronDownSmall = "chevronDownSmall",
|
|
14
14
|
userPlus = "userPlus",
|
|
@@ -24,14 +24,14 @@ export declare enum IconType {
|
|
|
24
24
|
checkmarkUnchecked = "checkmarkUnchecked",
|
|
25
25
|
checkmarkUncheckedEmpty = "checkmarkUncheckedEmpty",
|
|
26
26
|
checkmark = "checkmark",
|
|
27
|
-
chevronRightSmall = "
|
|
28
|
-
chevronLeftRight = "
|
|
27
|
+
chevronRightSmall = "fa fa-chevron-right",
|
|
28
|
+
chevronLeftRight = "fa fa-chevron-left",
|
|
29
29
|
back = "back",
|
|
30
30
|
name = "name",
|
|
31
31
|
flag = "flag",
|
|
32
32
|
globe = "globe",
|
|
33
33
|
search = "search",
|
|
34
|
-
settings = "
|
|
34
|
+
settings = "fa fa-sliders",
|
|
35
35
|
grid = "grid",
|
|
36
36
|
columns = "columns",
|
|
37
37
|
set = "set",
|
|
@@ -48,7 +48,7 @@ export declare enum IconType {
|
|
|
48
48
|
share1 = "share1",
|
|
49
49
|
share2 = "share2",
|
|
50
50
|
chevronLeft = "chevronLeft",
|
|
51
|
-
help = "
|
|
51
|
+
help = "fa fa-question-circle",
|
|
52
52
|
mail = "mail",
|
|
53
53
|
upload = "upload",
|
|
54
54
|
menu = "menu",
|
|
@@ -144,7 +144,7 @@ export declare enum IconType {
|
|
|
144
144
|
pauseWithCircle = "pauseWithCircle",
|
|
145
145
|
replay = "replay",
|
|
146
146
|
chevronRight = "chevronRight",
|
|
147
|
-
|
|
147
|
+
feedback = "fa fa-comment",
|
|
148
148
|
list = "list",
|
|
149
149
|
repeat = "repeat",
|
|
150
150
|
refreshccw = "refreshccw",
|
|
@@ -182,6 +182,12 @@ export declare enum IconType {
|
|
|
182
182
|
plus = "fa fa-plus-square-o",
|
|
183
183
|
image = "fa fa-file-image-o",
|
|
184
184
|
externalLink = "fa fa-external-link",
|
|
185
|
-
link = "fa fa-link"
|
|
185
|
+
link = "fa fa-link",
|
|
186
|
+
logout = "fa fa-sign-out",
|
|
187
|
+
roadmap = "fa fa-road",
|
|
188
|
+
changelog = "fa fa-refresh",
|
|
189
|
+
timeoutline = "fa fa-clock-o",
|
|
190
|
+
profile = "fa fa-user",
|
|
191
|
+
tags = "fa fa-tags"
|
|
186
192
|
}
|
|
187
193
|
export default IconType;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DateRangePicker } from 'react-date-range';
|
|
3
|
+
import 'react-date-range/dist/styles.css';
|
|
4
|
+
import 'react-date-range/dist/theme/default.css';
|
|
5
|
+
declare const StyledDateRange: import("@emotion/styled").StyledComponent<import("react-date-range").DateRangePickerProps & {
|
|
6
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
+
}, {}, {
|
|
8
|
+
ref?: import("react").Ref<DateRangePicker> | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
export default StyledDateRange;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Locale } from 'date-fns';
|
|
2
|
+
export type Range = {
|
|
3
|
+
startDate?: Date;
|
|
4
|
+
endDate?: Date;
|
|
5
|
+
color?: string;
|
|
6
|
+
key?: string;
|
|
7
|
+
autoFocus?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
showDateDisplay?: boolean;
|
|
10
|
+
label?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare enum DateRangePosition {
|
|
13
|
+
START = "start",
|
|
14
|
+
END = "end"
|
|
15
|
+
}
|
|
16
|
+
export type DateRangePickerPropsType = {
|
|
17
|
+
className?: string;
|
|
18
|
+
buttonClassName?: string;
|
|
19
|
+
onApply: (range: Range) => void;
|
|
20
|
+
range: Range;
|
|
21
|
+
minDate?: Date;
|
|
22
|
+
maxDate?: Date;
|
|
23
|
+
position?: DateRangePosition;
|
|
24
|
+
withoutIcon?: boolean;
|
|
25
|
+
withChevron?: boolean;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
locale?: Locale;
|
|
28
|
+
rtl?: boolean;
|
|
29
|
+
};
|
|
30
|
+
export declare function BCDateRangePicker({ className, onApply, range, minDate, maxDate, position, buttonClassName, withoutIcon, withChevron, disabled, locale, rtl, }: DateRangePickerPropsType): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonSize, BCDropListOptionsType } from '../constants';
|
|
3
|
+
export interface BCDropListProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
selected?: string;
|
|
6
|
+
options: BCDropListOptionsType[];
|
|
7
|
+
onSelectOption: (value?: string) => void;
|
|
8
|
+
noEmpty?: boolean;
|
|
9
|
+
emptyText?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
buttonSize?: ButtonSize;
|
|
12
|
+
rtl?: boolean;
|
|
13
|
+
icon?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare const BCDropList: ({ className, selected, options, onSelectOption, noEmpty, placeholder, emptyText, buttonSize, rtl, icon, }: BCDropListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default BCDropList;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TooltipPlacement } from '../../../tooltip';
|
|
3
|
+
import { DropdownSize } from '../../../constants';
|
|
4
|
+
export declare const SizeValues: {
|
|
5
|
+
S: {
|
|
6
|
+
height: number;
|
|
7
|
+
padding: string;
|
|
8
|
+
marginBottom: number;
|
|
9
|
+
};
|
|
10
|
+
M: {
|
|
11
|
+
height: number;
|
|
12
|
+
padding: string;
|
|
13
|
+
marginBottom: number;
|
|
14
|
+
};
|
|
15
|
+
L: {
|
|
16
|
+
height: number;
|
|
17
|
+
padding: string;
|
|
18
|
+
marginBottom: number;
|
|
19
|
+
};
|
|
20
|
+
XL: {
|
|
21
|
+
height: number;
|
|
22
|
+
padding: string;
|
|
23
|
+
marginBottom: number;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export type DropDownItemStyleProps = {
|
|
27
|
+
value: string | number;
|
|
28
|
+
selected?: boolean;
|
|
29
|
+
tmpSelected?: boolean;
|
|
30
|
+
size: DropdownSize;
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
itemAsLink?: boolean;
|
|
33
|
+
borderRadius?: number;
|
|
34
|
+
disableHover?: boolean;
|
|
35
|
+
hideBackgroundColorOnSelected?: boolean;
|
|
36
|
+
};
|
|
37
|
+
export type DropDownItemProps = {
|
|
38
|
+
value: string | number;
|
|
39
|
+
children?: React.ReactElement[];
|
|
40
|
+
selected?: boolean;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
tooltipText?: string;
|
|
43
|
+
tooltipTextPlacement?: TooltipPlacement;
|
|
44
|
+
tmpSelected?: boolean;
|
|
45
|
+
size: DropdownSize;
|
|
46
|
+
onClick?: (value: string | number) => void;
|
|
47
|
+
onMouseDown?: (value: string | number, e: React.MouseEvent) => void;
|
|
48
|
+
onMouseEnter?: () => void;
|
|
49
|
+
onMouseLeave?: () => void;
|
|
50
|
+
itemAsLink?: boolean;
|
|
51
|
+
className?: string;
|
|
52
|
+
showTooltipOnDisabled?: boolean;
|
|
53
|
+
borderRadius?: number;
|
|
54
|
+
getRef?: (ref: HTMLDivElement | null) => void;
|
|
55
|
+
hideBackgroundColorOnSelected?: boolean;
|
|
56
|
+
};
|
|
57
|
+
export declare function DropdownListItem({ value, children, size, onClick, onMouseDown, onMouseEnter, onMouseLeave, selected, disabled, tmpSelected, itemAsLink, tooltipText, className, tooltipTextPlacement, showTooltipOnDisabled, borderRadius, hideBackgroundColorOnSelected, getRef, }: DropDownItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|