@bcrumbs.net/bc-ui 0.0.7 → 0.0.9
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/index.esm.js +2791 -1524
- package/package.json +1 -1
- package/src/index.d.ts +3 -0
- package/src/lib/addButton/bcadd-button.d.ts +1 -1
- package/src/lib/baseComponents/alert-dialog.d.ts +4 -1
- package/src/lib/baseComponents/checkbox.d.ts +8 -0
- package/src/lib/button/types.d.ts +1 -7
- package/src/lib/constants/Color.d.ts +58 -81
- package/src/lib/dropList/bcdrop-list.d.ts +2 -0
- package/src/lib/hooks/useForm/index.d.ts +4 -7
- package/src/lib/icon/bcicon.d.ts +64 -0
- package/src/lib/multiSelector/MutliSelector.d.ts +20 -0
- package/src/lib/navigation/bcnavigation.d.ts +9 -1
- package/src/lib/newComponents/BCNewAlertDialog/types.d.ts +3 -0
- package/src/lib/newComponents/BCNewCheckBox/BCNewCheckBox.d.ts +4 -0
- package/src/lib/newComponents/BCNewCheckBox/types.d.ts +19 -0
- package/src/lib/newComponents/BCNewTable/types.d.ts +7 -0
- package/src/lib/progress/index.d.ts +3 -1
- package/src/lib/tagDisplay/TagDisplay.d.ts +3 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './lib/loading/loading';
|
|
2
2
|
export * from './lib/textbox/bctextbox';
|
|
3
3
|
export * from './lib/dropList/bcdrop-list';
|
|
4
|
+
export * from './lib/multiSelector/MutliSelector';
|
|
4
5
|
export * from './lib/checkbox/bccheckbox';
|
|
5
6
|
export * from './lib/navigation/bcnavigation';
|
|
6
7
|
export * from './lib/navigation/types';
|
|
@@ -49,6 +50,8 @@ export * from './lib/newComponents/BCNewTable/types';
|
|
|
49
50
|
export * from './lib/newComponents/BCNewDropdown/types';
|
|
50
51
|
export * from './lib/newComponents/BCRadioGroupItem/types';
|
|
51
52
|
export * from './lib/baseComponents/radio-group';
|
|
53
|
+
export * from './lib/baseComponents/checkbox';
|
|
54
|
+
export * from './lib/newComponents/BCNewCheckBox/BCNewCheckBox';
|
|
52
55
|
export * from './lib/button/bcbutton';
|
|
53
56
|
export * from './lib/button/types';
|
|
54
57
|
export * from './lib/block/bcblock';
|
|
@@ -9,4 +9,4 @@ export interface BCAddButtonProps {
|
|
|
9
9
|
isLoading?: boolean;
|
|
10
10
|
rtl?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare const BCAddButton: ({ className, placeholder, value, onSubmit, onChange, isLoading, rtl }: 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;
|
|
@@ -4,7 +4,10 @@ declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
|
4
4
|
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
6
6
|
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
|
|
7
|
+
interface AlertDialogContentProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content> {
|
|
8
|
+
onOverlayClick?: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare const AlertDialogContent: React.ForwardRefExoticComponent<AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
11
|
declare const AlertDialogHeader: {
|
|
9
12
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
13
|
displayName: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
|
+
import { SerializedStyles } from '@emotion/react';
|
|
4
|
+
interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> {
|
|
5
|
+
css?: SerializedStyles;
|
|
6
|
+
}
|
|
7
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
export { Checkbox };
|
|
@@ -9,11 +9,5 @@ export declare enum ButtonType {
|
|
|
9
9
|
GHOST = "ghost",
|
|
10
10
|
DANGER = "danger",
|
|
11
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"
|
|
12
|
+
GREEN = "green"
|
|
19
13
|
}
|
|
@@ -1,107 +1,51 @@
|
|
|
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
1
|
export declare enum NewColors {
|
|
74
2
|
PRIMARY = "var(--bc-primary)",
|
|
3
|
+
PRIMARY60 = "var(--bc-primary-60)",
|
|
4
|
+
PRIMARY40 = "var(--bc-primary-40)",
|
|
5
|
+
PRIMARY30 = "var(--bc-primary-30)",
|
|
6
|
+
PRIMARY20 = "var(--bc-primary-20)",
|
|
7
|
+
PRIMARY10 = "var(--bc-primary-10)",
|
|
8
|
+
PRIMARY05 = "var(--bc-primary-05)",
|
|
75
9
|
PRIMARY_400 = "var(--bc-primary-400)",
|
|
76
10
|
PRIMARY_FOREGROUND = "var(--bc-primary-foreground)",
|
|
77
11
|
PRIMARY_LIGHTER = "var(--bc-primary-lighter)",
|
|
78
|
-
PRIMARY_BORDER = "var(--
|
|
12
|
+
PRIMARY_BORDER = "var(--bc-primary-border)",
|
|
79
13
|
PRIMARY_DARKER = "var(--bc-primary-darker)",
|
|
14
|
+
PRIMARY_DARKER_2 = "var(--bc-primary-darker-2)",
|
|
80
15
|
PRIMARY_PARAGRAPH = "var(--bc-primary-paragraph)",
|
|
81
16
|
INBOX_BACKGROUND = "var(--bc-inbox-background)",
|
|
82
|
-
|
|
83
|
-
INFO_COLOR = "var(--
|
|
17
|
+
BACKGROUND_DARKER = "var(--bc-background-darker)",
|
|
18
|
+
INFO_COLOR = "var(--bc-info)",
|
|
19
|
+
INFO_LIGHT = "var(--bc-info-light)",
|
|
20
|
+
FONT_COLOR = "#000",
|
|
84
21
|
SECONDARY = "var(--bc-secondary)",
|
|
85
22
|
SECONDARY_HOVER = "var(--bc-secondary-hover)",
|
|
86
23
|
SECONDARY_FOREGROUND = "var(--bc-secondary-foreground)",
|
|
87
24
|
SECONDARY_LIGHT = "var(--bc-secondary-light)",
|
|
88
25
|
SECONDARY_NEUTRAL = " var(--Border-border-neutral-secondary, #E5E7EB)",
|
|
89
26
|
SECONDARY_HEADING = "var(--Secondary-Color-Heading, #3F434A)",
|
|
90
|
-
|
|
91
|
-
|
|
27
|
+
DARK = "var(--bc-dark)",
|
|
28
|
+
GRAY = "var(--bc-gray)",
|
|
29
|
+
DISABLED = "var(--bc-disabled)",
|
|
92
30
|
LIGHT_COLOR = "var(--bc-light-color)",
|
|
93
31
|
DANGER = "var(--bc-danger)",
|
|
94
32
|
DANGER_FOREGROUND = "var(--bc-danger-foreground)",
|
|
95
33
|
DANGER_DARKER = "var(--bc-danger-darker)",
|
|
96
34
|
DANGER_ALERT = "var(--bc-danger-alert)",
|
|
35
|
+
DANGER_LIGHT = "var(--bc-danger-light)",
|
|
36
|
+
SUCCESS = "var(--bc-success)",
|
|
37
|
+
SUCCESS_DARKER = "var(--bc-success-darker)",
|
|
38
|
+
DROPDOWN_ITEM = "var(--bc-dropDown-item)",
|
|
39
|
+
DROPDOWN_HOVER = "var(--bc-dropDown-hover)",
|
|
40
|
+
SUB_SIDEBAR_TITLE = "var(--bc-sub-sidebar-title)",
|
|
97
41
|
MUTED = "var(--bc-muted)",
|
|
98
42
|
MUTED_FOREGROUND = "var(--bc-muted-foreground)",
|
|
43
|
+
ACTIVE_COLOR = "var(--bc-active-color)",
|
|
99
44
|
TABLE_HEADER = "var(--bc-table-header)",
|
|
100
45
|
TABLE_HEADER_FOREGROUND = "var(--bc-table-header-foreground)",
|
|
101
46
|
ALTERNATIVE_FOREGROUND = "var(--bc-alternative-foreground)",
|
|
102
47
|
BORDER_COLOR = "var(--bc-border-color)",
|
|
103
48
|
SECONDARY_BORDER = "var(--bc-secondary-border)",
|
|
104
|
-
SUCCESS = "var(--bc-success)",
|
|
105
49
|
CONTROLS = "var(--bc-controls)",
|
|
106
50
|
FOREGROUND = "var(--bc-foreground)",
|
|
107
51
|
BACKGROUND = "var(--bc-background)",
|
|
@@ -114,7 +58,40 @@ export declare enum NewColors {
|
|
|
114
58
|
CARD_HOVER_LIGHT = "var(--bc-card-hover-light)",
|
|
115
59
|
TAG_BACKGROUND = "var(--bc-tag-background)",
|
|
116
60
|
TAG_COLOR = "var(--bc-tag-color)",
|
|
117
|
-
|
|
118
|
-
|
|
61
|
+
DARK_BLUE = "#457578",
|
|
62
|
+
LIGHT_BLUE = "#e0f3e8",
|
|
63
|
+
ACCENT10 = "rgba(89, 111, 255, 0.1)",
|
|
64
|
+
CONTROLS_COLOR = "#fff",
|
|
65
|
+
GREY_BORDER = "#D9D9D9",
|
|
66
|
+
GREY_TEXT_COLOR = "#727272",
|
|
67
|
+
GREY_LIGHT_BORDER = "#e4e4e4",
|
|
68
|
+
WARNING_DOWNLOAD = "rgba(255, 153, 0, 0.1)",
|
|
69
|
+
GREY_WHITE = "#f0f1f5",
|
|
70
|
+
SECONDARY80 = "rgb(106, 107, 131, 0.8)",
|
|
71
|
+
SECONDARY70 = "rgb(106, 107, 131, 0.7)",
|
|
72
|
+
SECONDARY50 = "rgb(106, 107, 131, 0.5)",
|
|
73
|
+
SECONDARY40 = "rgb(106, 107, 131, 0.4)",
|
|
74
|
+
SECONDARY30 = "rgb(106, 107, 131, 0.3)",
|
|
75
|
+
SECONDARY20 = "rgb(106, 107, 131, 0.2)",
|
|
76
|
+
SECONDARY10 = "rgb(106, 107, 131, 0.1)",
|
|
77
|
+
SECONDARY05 = "rgb(106, 107, 131, 0.05)",
|
|
78
|
+
COLD_FUSION = "#6666FF",
|
|
79
|
+
BLUEBERRY = "#330066",
|
|
80
|
+
HOT_MAGENTA = "#FF3366",
|
|
81
|
+
BURNING_ORANGE = "#FF6600",
|
|
82
|
+
LEMON_YELLOW = "#FFCC00",
|
|
83
|
+
KRYPTONITE_GREEN = "#CCFF00",
|
|
84
|
+
GREEN = "#66FF66",
|
|
85
|
+
CRAZY_CYAN = "#66FFFF",
|
|
86
|
+
EXOPLANET_BLUE = "#66CCFF",
|
|
87
|
+
PURPLE = "#9999FF",
|
|
88
|
+
PURPLE_RAIN = "#9966FF",
|
|
89
|
+
VIOLET = "#CC66FF",
|
|
90
|
+
AEROSMITH_PINK = "#FF66FF",
|
|
91
|
+
RED_HOT_HOOD = "#FF3300",
|
|
92
|
+
MR_WOLF = "#330033",
|
|
93
|
+
DAGOBAH_FOREST = "#003333",
|
|
94
|
+
CHROME_ORANGE = "#FF9900"
|
|
119
95
|
}
|
|
120
|
-
export default
|
|
96
|
+
export default NewColors;
|
|
97
|
+
export { NewColors as Color };
|
|
@@ -26,5 +26,7 @@ export interface BCDropListProps {
|
|
|
26
26
|
searchable?: boolean;
|
|
27
27
|
searchPlaceholder?: string;
|
|
28
28
|
}
|
|
29
|
+
export declare const DropListButtonStyle: SerializedStyles;
|
|
30
|
+
export declare const DropListMenuStyle: SerializedStyles;
|
|
29
31
|
export declare const BCDropList: ({ className, selected, options, onSelectOption, noEmpty, placeholder, emptyText, buttonSize, rtl, icon, containerCss, buttonCss, dropDownContentCss, loading, disabled, allowCreate, onCreateNew, createPlaceholder, addText, createText, id, searchable, searchPlaceholder, }: BCDropListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
30
32
|
export default BCDropList;
|
|
@@ -31,14 +31,11 @@ interface useBCFormReturnFunctions {
|
|
|
31
31
|
renderField: (name: string, label: string, type: FieldType, readonly?: boolean, placeholder?: string, tooltip?: string, dynamicStyle?: SerializedStyles) => JSX.Element;
|
|
32
32
|
_renderFieldInput: (name: string, type: FieldType, readonly: boolean, placeholder: string) => JSX.Element;
|
|
33
33
|
onDroplistSelectionChange: (name: string, selectedKey?: string) => void;
|
|
34
|
-
renderDroplistField: (name: string, label: string, options: BCDropListOptionsType[], placeholder?: string, tooltip?: string) => JSX.Element;
|
|
34
|
+
renderDroplistField: (name: string, label: string, options: BCDropListOptionsType[], placeholder?: string, tooltip?: string, lang?: boolean, searchable?: boolean, labelStyle?: SerializedStyles, containerStyle?: SerializedStyles, loading?: boolean, noEmpty?: boolean) => JSX.Element;
|
|
35
35
|
}
|
|
36
|
-
type useMBFormReturnType = [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
useBCFormReturnFunctions
|
|
41
|
-
];
|
|
36
|
+
type useMBFormReturnType = [{
|
|
37
|
+
[key: string]: FormData;
|
|
38
|
+
}, useBCFormReturnFunctions];
|
|
42
39
|
export declare const useBCForm: (formInitialValue?: {
|
|
43
40
|
[key: string]: FormField;
|
|
44
41
|
}, t?: any) => useMBFormReturnType;
|
package/src/lib/icon/bcicon.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export declare const BCIcons: {
|
|
|
36
36
|
ContactBook: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
37
37
|
Contact: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
38
38
|
ContactLifeCycle: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
39
|
+
LinkedAgent: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
39
40
|
MirroringScreen: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
40
41
|
Managemnet: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
41
42
|
Agents: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -45,6 +46,7 @@ export declare const BCIcons: {
|
|
|
45
46
|
Webhooks: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
46
47
|
ConvLifecycle: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
47
48
|
Channels: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
49
|
+
Flag: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
48
50
|
RatingSettings: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
49
51
|
CrumbySettings: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
50
52
|
CrumbyAIIcon: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -57,6 +59,7 @@ export declare const BCIcons: {
|
|
|
57
59
|
LeadingClose: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
58
60
|
LeadingOpen: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
59
61
|
Upload: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
62
|
+
Import: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
60
63
|
Close: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
61
64
|
Text: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
62
65
|
Website: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -260,4 +263,65 @@ export declare const BCIcons: {
|
|
|
260
263
|
height?: number | undefined;
|
|
261
264
|
fill?: string | undefined;
|
|
262
265
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
266
|
+
UnderScorePen: ({ width, height, fill }: {
|
|
267
|
+
width?: number | undefined;
|
|
268
|
+
height?: number | undefined;
|
|
269
|
+
fill?: string | undefined;
|
|
270
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
271
|
+
CancelIcon: ({ width, height, fill }: {
|
|
272
|
+
width?: number | undefined;
|
|
273
|
+
height?: number | undefined;
|
|
274
|
+
fill?: string | undefined;
|
|
275
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
276
|
+
SaveIcon: ({ width, height, fill }: {
|
|
277
|
+
width?: number | undefined;
|
|
278
|
+
height?: number | undefined;
|
|
279
|
+
fill?: string | undefined;
|
|
280
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
281
|
+
BroadcastHistory: ({ width, height, fill }: {
|
|
282
|
+
width?: number | undefined;
|
|
283
|
+
height?: number | undefined;
|
|
284
|
+
fill?: string | undefined;
|
|
285
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
286
|
+
DraftBroadcastIcon: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
287
|
+
ScheduledBroadcastIcon: ({ width, height, fill }: {
|
|
288
|
+
width?: number | undefined;
|
|
289
|
+
height?: number | undefined;
|
|
290
|
+
fill?: string | undefined;
|
|
291
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
292
|
+
InProgressBroadcastIcon: ({ width, height, fill }: {
|
|
293
|
+
width?: number | undefined;
|
|
294
|
+
height?: number | undefined;
|
|
295
|
+
fill?: string | undefined;
|
|
296
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
297
|
+
CompletedBroadcastIcon: ({ width, height, fill }: {
|
|
298
|
+
width?: number | undefined;
|
|
299
|
+
height?: number | undefined;
|
|
300
|
+
fill?: string | undefined;
|
|
301
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
302
|
+
FailedBroadcastIcon: ({ width, height, fill }: {
|
|
303
|
+
width?: number | undefined;
|
|
304
|
+
height?: number | undefined;
|
|
305
|
+
fill?: string | undefined;
|
|
306
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
307
|
+
CostIcon: ({ width, height, fill }: {
|
|
308
|
+
width?: number | undefined;
|
|
309
|
+
height?: number | undefined;
|
|
310
|
+
fill?: string | undefined;
|
|
311
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
312
|
+
CancelDialogIcon: ({ width, height, fill }: {
|
|
313
|
+
width?: number | undefined;
|
|
314
|
+
height?: number | undefined;
|
|
315
|
+
fill?: string | undefined;
|
|
316
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
317
|
+
CheckBoxIcon: ({ width, height, fill }: {
|
|
318
|
+
width?: number | undefined;
|
|
319
|
+
height?: number | undefined;
|
|
320
|
+
fill?: string | undefined;
|
|
321
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
322
|
+
InboxAccessIcon: ({ width, height, fill }: {
|
|
323
|
+
width?: number | undefined;
|
|
324
|
+
height?: number | undefined;
|
|
325
|
+
fill?: string | undefined;
|
|
326
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
263
327
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BCDropListOptionsType } from '../constants/Droplist';
|
|
3
|
+
export declare const TagContainer: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
+
export interface MultiSelectorProps {
|
|
8
|
+
onSelect: (value: string | undefined) => void;
|
|
9
|
+
options: BCDropListOptionsType[];
|
|
10
|
+
selectedValues: string[];
|
|
11
|
+
onRemove: (value: string) => void;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
rtl?: boolean;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
allowCreate?: boolean;
|
|
17
|
+
onCreateNew?: (value: string) => Promise<void>;
|
|
18
|
+
createPlaceholder?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const MultiSelector: ({ onSelect, options, selectedValues, onRemove, loading, disabled, rtl, placeholder, allowCreate, onCreateNew, createPlaceholder, }: MultiSelectorProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { NavItem, NavType } from './types';
|
|
2
3
|
export interface BCNavigationProps {
|
|
3
4
|
brand?: string;
|
|
@@ -7,6 +8,13 @@ export interface BCNavigationProps {
|
|
|
7
8
|
rtl: boolean;
|
|
8
9
|
activeItem?: NavItem | null;
|
|
9
10
|
hasSubMenu?: boolean;
|
|
11
|
+
customSubSidebar?: React.ReactNode;
|
|
12
|
+
customSidebarTitle?: string;
|
|
13
|
+
solidMenuColor: boolean;
|
|
10
14
|
}
|
|
11
|
-
export declare const
|
|
15
|
+
export declare const SubMenu: import("@emotion/styled").StyledComponent<{
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
18
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
+
export declare const BCNavigation: ({ brand, navModel, handleLeftNavItemClick, location, rtl, activeItem, hasSubMenu, customSubSidebar, customSidebarTitle, solidMenuColor, }: BCNavigationProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
20
|
export default BCNavigation;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SerializedStyles } from '@emotion/react';
|
|
2
|
+
export interface BCCheckBoxProps {
|
|
3
|
+
checked?: boolean;
|
|
4
|
+
defaultChecked?: boolean;
|
|
5
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
value?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
label?: string;
|
|
11
|
+
size?: 'sm' | 'md' | 'lg';
|
|
12
|
+
containerCss?: SerializedStyles;
|
|
13
|
+
checkboxCss?: SerializedStyles;
|
|
14
|
+
labelCss?: SerializedStyles;
|
|
15
|
+
wrapperCss?: SerializedStyles;
|
|
16
|
+
className?: string;
|
|
17
|
+
showWrapper?: boolean;
|
|
18
|
+
id?: string;
|
|
19
|
+
}
|
|
@@ -10,6 +10,11 @@ export type RTableProps = {
|
|
|
10
10
|
setFinishedOperation?: (value: string | null | number) => void;
|
|
11
11
|
loading?: boolean;
|
|
12
12
|
tableHeight?: string;
|
|
13
|
+
enableRowSelection?: boolean;
|
|
14
|
+
selectedRowIds?: string[];
|
|
15
|
+
onRowSelect?: (rowId: string, selected: boolean) => void;
|
|
16
|
+
onSelectAll?: (selected: boolean) => void;
|
|
17
|
+
getRowId?: (row: any) => string;
|
|
13
18
|
};
|
|
14
19
|
export type TableRecords = {
|
|
15
20
|
columns: CustomColumn[];
|
|
@@ -20,6 +25,7 @@ export type TableRecords = {
|
|
|
20
25
|
dropDownSide?: 'bottom' | 'right' | 'top' | 'left';
|
|
21
26
|
dropDownAlign?: 'center' | 'end' | 'start';
|
|
22
27
|
dropDownContentClassName?: SerializedStyles;
|
|
28
|
+
dropDownItemCssStyle?: SerializedStyles;
|
|
23
29
|
onPointerDownHandler?: (info: any) => void;
|
|
24
30
|
staticColumns?: boolean;
|
|
25
31
|
staticHeight?: string;
|
|
@@ -36,6 +42,7 @@ export type TableAction = {
|
|
|
36
42
|
onClick: (info: CellContext<any, any>) => void;
|
|
37
43
|
inDropdown?: boolean;
|
|
38
44
|
hidden?: boolean;
|
|
45
|
+
dynamicHidden?: (info: CellContext<any, any>) => boolean;
|
|
39
46
|
Icon?: keyof typeof import('@radix-ui/react-icons') | React.ReactNode;
|
|
40
47
|
actionIconCssStyle?: SerializedStyles;
|
|
41
48
|
actionTextCssStyle?: SerializedStyles;
|
|
@@ -2,7 +2,9 @@ import { PropsWithChildren } from 'react';
|
|
|
2
2
|
import Color from '../constants/Color';
|
|
3
3
|
export type ProgressBarProps = {
|
|
4
4
|
width?: string;
|
|
5
|
+
height?: string;
|
|
6
|
+
padding?: string;
|
|
5
7
|
progressPercent: number;
|
|
6
8
|
color?: Color;
|
|
7
9
|
};
|
|
8
|
-
export declare function BCProgressBar({ progressPercent,
|
|
10
|
+
export declare function BCProgressBar({ progressPercent, color, ...props }: PropsWithChildren<ProgressBarProps>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
export declare const StateToColorMap: Record<string, string>;
|
|
3
|
+
export declare const StateToBackgroundColorMap: Record<string, string>;
|
|
4
|
+
export declare const StateToBorderColorMap: Record<string, string>;
|
|
2
5
|
interface TagDisplayProps {
|
|
3
6
|
value: string[];
|
|
4
7
|
}
|