@bcrumbs.net/bc-ui 0.0.12 → 0.0.13
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.d.ts +1 -1
- package/index.esm.js +12684 -11179
- package/package.json +1 -1
- package/src/index.d.ts +4 -0
- package/src/lib/baseComponents/radio-group.d.ts +2 -2
- package/src/lib/baseComponents/switch.d.ts +3 -0
- package/src/lib/cards/SectionDetailsCard.d.ts +16 -0
- package/src/lib/charts/ChartLegend/ChartLegend.d.ts +12 -0
- package/src/lib/charts/NewBarChart/NewBarChart.d.ts +45 -0
- package/src/lib/constants/Color.d.ts +2 -0
- package/src/lib/constants/InputHeight.d.ts +4 -0
- package/src/lib/constants/TextSize.d.ts +2 -1
- package/src/lib/hooks/useForm/index.d.ts +1 -1
- package/src/lib/icon/bcicon.d.ts +45 -0
- package/src/lib/multiSelect/BCMultiSelect.d.ts +24 -0
- package/src/lib/multiSelect/style.d.ts +93 -0
- package/src/lib/navigation/types.d.ts +11 -0
- package/src/lib/newComponents/BCRadioGroupItem/types.d.ts +2 -0
- package/src/lib/styledFormInput/StyledFormInput.d.ts +1 -1
- package/src/lib/toaster/index.d.ts +3 -2
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './lib/loading/loading';
|
|
|
2
2
|
export * from './lib/textbox/bctextbox';
|
|
3
3
|
export * from './lib/dropList/bcdrop-list';
|
|
4
4
|
export * from './lib/multiSelector/MutliSelector';
|
|
5
|
+
export * from './lib/multiSelect/BCMultiSelect';
|
|
5
6
|
export * from './lib/checkbox/bccheckbox';
|
|
6
7
|
export * from './lib/navigation/bcnavigation';
|
|
7
8
|
export * from './lib/navigation/types';
|
|
@@ -33,6 +34,8 @@ export * from './lib/radioButton';
|
|
|
33
34
|
export * from './lib/charts/pieChart';
|
|
34
35
|
export * from './lib/charts/NewPieChart/NewPieChart';
|
|
35
36
|
export * from './lib/charts/barLineChart';
|
|
37
|
+
export * from './lib/charts/ChartLegend/ChartLegend';
|
|
38
|
+
export * from './lib/charts/NewBarChart/NewBarChart';
|
|
36
39
|
export * from './lib/charts/HorizontalStatisticCard/HorizontalStatisticCard';
|
|
37
40
|
export * from './lib/dateRangePicker';
|
|
38
41
|
export * from './lib/InputWithSuggestions';
|
|
@@ -55,6 +58,7 @@ export * from './lib/baseComponents/radio-group';
|
|
|
55
58
|
export * from './lib/baseComponents/checkbox';
|
|
56
59
|
export * from './lib/baseComponents/switch';
|
|
57
60
|
export * from './lib/newComponents/BCNewCheckBox/BCNewCheckBox';
|
|
61
|
+
export * from './lib/cards/SectionDetailsCard';
|
|
58
62
|
export * from './lib/button/bcbutton';
|
|
59
63
|
export * from './lib/button/types';
|
|
60
64
|
export * from './lib/block/bcblock';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import * as RadioGroupPrimitive from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
3
3
|
import { SerializedStyles } from '@emotion/react';
|
|
4
4
|
interface RadioGroupProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root> {
|
|
5
5
|
css?: SerializedStyles;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
3
3
|
import { SerializedStyles } from '@emotion/react';
|
|
4
|
+
type SwitchSize = 'S' | 'M';
|
|
4
5
|
interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> {
|
|
5
6
|
css?: SerializedStyles;
|
|
6
7
|
rtl?: boolean;
|
|
8
|
+
size?: SwitchSize;
|
|
7
9
|
}
|
|
8
10
|
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
11
|
export { Switch };
|
|
12
|
+
export type { SwitchSize };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SerializedStyles } from '@emotion/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface SectionDetailsCardProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
titleComponent?: React.ReactNode;
|
|
7
|
+
columns?: number;
|
|
8
|
+
gap?: number;
|
|
9
|
+
containerCss?: SerializedStyles;
|
|
10
|
+
titleCss?: SerializedStyles;
|
|
11
|
+
subTitleCss?: SerializedStyles;
|
|
12
|
+
noContentContainer?: boolean;
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare const SectionDetailsCard: ({ title, subtitle, titleComponent, columns, gap, containerCss, titleCss, subTitleCss, noContentContainer, children, }: SectionDetailsCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ChartLegendItem {
|
|
2
|
+
name: string;
|
|
3
|
+
value: number;
|
|
4
|
+
color: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ChartLegendProps {
|
|
7
|
+
items: ChartLegendItem[];
|
|
8
|
+
/** When provided, displays percentage (value/total) instead of raw value */
|
|
9
|
+
total?: number;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const ChartLegend: ({ items, total, loading }: ChartLegendProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface NewBarChartDataItem {
|
|
2
|
+
name: string;
|
|
3
|
+
value: number;
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
}
|
|
6
|
+
export interface NewBarChartTooltipMeta {
|
|
7
|
+
dataKey: string;
|
|
8
|
+
value: number;
|
|
9
|
+
}
|
|
10
|
+
export interface NewBarChartProps {
|
|
11
|
+
data: NewBarChartDataItem[];
|
|
12
|
+
/** Accepts px number or CSS string (e.g. "100%"). Defaults to "100%". */
|
|
13
|
+
height?: number | string;
|
|
14
|
+
/** Data key for the primary bars. Defaults to "value". */
|
|
15
|
+
primaryDataKey?: string;
|
|
16
|
+
/** Optional second series data key for grouped bars. */
|
|
17
|
+
secondaryDataKey?: string;
|
|
18
|
+
barColor?: string;
|
|
19
|
+
secondaryBarColor?: string;
|
|
20
|
+
activeBarColor?: string;
|
|
21
|
+
activeSecondaryBarColor?: string;
|
|
22
|
+
/** Fixed bar width in px. Defaults to 48. */
|
|
23
|
+
barSize?: number;
|
|
24
|
+
/** Top corner radius only (px); bottom stays square. Defaults to 4. */
|
|
25
|
+
barRadius?: number;
|
|
26
|
+
/** Gap between bars in the same category (Recharts BarChart). */
|
|
27
|
+
barGap?: number | string;
|
|
28
|
+
/** Horizontal grid lines behind bars */
|
|
29
|
+
horizontalGrid?: boolean;
|
|
30
|
+
/** Merged into default chart margins */
|
|
31
|
+
margin?: Partial<{
|
|
32
|
+
top: number;
|
|
33
|
+
right: number;
|
|
34
|
+
bottom: number;
|
|
35
|
+
left: number;
|
|
36
|
+
}>;
|
|
37
|
+
/** With grouped bars, `meta` matches the bar under the cursor */
|
|
38
|
+
tooltipTitle?: (item: NewBarChartDataItem, meta?: NewBarChartTooltipMeta) => string;
|
|
39
|
+
tooltipSubtitle?: (item: NewBarChartDataItem) => string;
|
|
40
|
+
/** Tooltip with bottom center pointer */
|
|
41
|
+
tooltipWithCaret?: boolean;
|
|
42
|
+
/** Reverses bar order and moves Y-axis to the right for RTL layouts */
|
|
43
|
+
rtl?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export declare const NewBarChart: ({ data, height, primaryDataKey, secondaryDataKey, barColor, secondaryBarColor, activeBarColor, activeSecondaryBarColor, barSize, barRadius, barGap, horizontalGrid, margin, tooltipTitle, tooltipSubtitle, tooltipWithCaret, rtl, }: NewBarChartProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -37,6 +37,7 @@ export declare enum NewColors {
|
|
|
37
37
|
DANGER_LIGHT = "var(--bc-danger-light)",
|
|
38
38
|
SUCCESS = "var(--bc-success)",
|
|
39
39
|
SUCCESS_DARKER = "var(--bc-success-darker)",
|
|
40
|
+
SUCCESS_LIGHT = "var(--bc-success-light)",
|
|
40
41
|
DROPDOWN_ITEM = "var(--bc-dropDown-item)",
|
|
41
42
|
DROPDOWN_HOVER = "var(--bc-dropDown-hover)",
|
|
42
43
|
SUB_SIDEBAR_TITLE = "var(--bc-sub-sidebar-title)",
|
|
@@ -76,6 +77,7 @@ export declare enum NewColors {
|
|
|
76
77
|
CHARTS_DANGER = "var(--bc-charts-danger)",
|
|
77
78
|
CHARTS_LABEL = "var(--bc-charts-label)",
|
|
78
79
|
CHARTS_LEGEND_LABEL = "var(--bc-charts-legend-label)",
|
|
80
|
+
CHARTS_TOOLTIP_TITLE = "var(--bc-charts-tooltip-title)",
|
|
79
81
|
SECONDARY80 = "rgb(106, 107, 131, 0.8)",
|
|
80
82
|
SECONDARY70 = "rgb(106, 107, 131, 0.7)",
|
|
81
83
|
SECONDARY50 = "rgb(106, 107, 131, 0.5)",
|
|
@@ -18,6 +18,7 @@ export declare enum TextSizeRem {
|
|
|
18
18
|
XXL = "var(--bc-fontSize-header-3)",
|
|
19
19
|
XXXL = "var(--bc-fontSize-header-2_5)",
|
|
20
20
|
XXXXL = "var(--bc-fontSize-header-2)",
|
|
21
|
-
XXXXXL = "var(--bc-fontSize-header-1)"
|
|
21
|
+
XXXXXL = "var(--bc-fontSize-header-1)",
|
|
22
|
+
BUTTON = "var(--bc-fontSize-button)"
|
|
22
23
|
}
|
|
23
24
|
export default TextSize;
|
|
@@ -31,7 +31,7 @@ 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, lang?: boolean, searchable?: boolean, labelStyle?: SerializedStyles, containerStyle?: SerializedStyles, loading?: boolean, noEmpty?: boolean) => 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, usePortal?: boolean) => JSX.Element;
|
|
35
35
|
}
|
|
36
36
|
type useMBFormReturnType = [{
|
|
37
37
|
[key: string]: FormData;
|
package/src/lib/icon/bcicon.d.ts
CHANGED
|
@@ -401,4 +401,49 @@ export declare const BCIcons: {
|
|
|
401
401
|
height?: number | undefined;
|
|
402
402
|
fill?: string | undefined;
|
|
403
403
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
404
|
+
CrumbySettingsEntry: ({ width, height, fill }: {
|
|
405
|
+
width?: number | undefined;
|
|
406
|
+
height?: number | undefined;
|
|
407
|
+
fill?: string | undefined;
|
|
408
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
409
|
+
DashboardStatisticCard: ({ width, height, fill }: {
|
|
410
|
+
width?: number | undefined;
|
|
411
|
+
height?: number | undefined;
|
|
412
|
+
fill?: string | undefined;
|
|
413
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
414
|
+
FeedbackIcon: ({ width, height, fill }: {
|
|
415
|
+
width?: number | undefined;
|
|
416
|
+
height?: number | undefined;
|
|
417
|
+
fill?: string | undefined;
|
|
418
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
419
|
+
Chatting: ({ width, height, fill }: {
|
|
420
|
+
width?: number | undefined;
|
|
421
|
+
height?: number | undefined;
|
|
422
|
+
fill?: string | undefined;
|
|
423
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
424
|
+
Plus: ({ width, height, fill }: {
|
|
425
|
+
width?: number | undefined;
|
|
426
|
+
height?: number | undefined;
|
|
427
|
+
fill?: string | undefined;
|
|
428
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
429
|
+
SingleHollowCheck: ({ width, height, fill }: {
|
|
430
|
+
width?: number | undefined;
|
|
431
|
+
height?: number | undefined;
|
|
432
|
+
fill?: string | undefined;
|
|
433
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
434
|
+
EmptyBCrumbsSlug: ({ width, height, fill }: {
|
|
435
|
+
width?: number | undefined;
|
|
436
|
+
height?: number | undefined;
|
|
437
|
+
fill?: string | undefined;
|
|
438
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
439
|
+
GupshupIcon: ({ width, height, fill }: {
|
|
440
|
+
width?: number | undefined;
|
|
441
|
+
height?: number | undefined;
|
|
442
|
+
fill?: string | undefined;
|
|
443
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
444
|
+
Robot: ({ width, height, fill }: {
|
|
445
|
+
width?: number | undefined;
|
|
446
|
+
height?: number | undefined;
|
|
447
|
+
fill?: string | undefined;
|
|
448
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
404
449
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SerializedStyles } from '@emotion/react';
|
|
2
|
+
import { BCDropListOptionsType } from '../constants/Droplist';
|
|
3
|
+
export interface BCMultiSelectProps {
|
|
4
|
+
options: BCDropListOptionsType[];
|
|
5
|
+
selected: string[];
|
|
6
|
+
onChange: (values: string[]) => void;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
rtl?: boolean;
|
|
9
|
+
searchable?: boolean;
|
|
10
|
+
searchPlaceholder?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
maxChipsVisible?: number;
|
|
14
|
+
showSelectAll?: boolean;
|
|
15
|
+
selectAllText?: string;
|
|
16
|
+
clearAllText?: string;
|
|
17
|
+
noResultsText?: string;
|
|
18
|
+
usePortal?: boolean;
|
|
19
|
+
containerCss?: SerializedStyles;
|
|
20
|
+
buttonCss?: SerializedStyles;
|
|
21
|
+
dropDownContentCss?: SerializedStyles;
|
|
22
|
+
}
|
|
23
|
+
export declare function BCMultiSelect({ options, selected, onChange, placeholder, rtl, searchable, searchPlaceholder, disabled, className, maxChipsVisible, showSelectAll, selectAllText, clearAllText, noResultsText, usePortal, containerCss, buttonCss, dropDownContentCss, }: BCMultiSelectProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
|
+
export default BCMultiSelect;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SerializedStyles } from '@emotion/react';
|
|
3
|
+
export declare const Container: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
rtl?: boolean | undefined;
|
|
8
|
+
containerCss?: SerializedStyles | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
+
export declare const TriggerButton: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
13
|
+
} & {
|
|
14
|
+
rtl?: boolean | undefined;
|
|
15
|
+
buttonCss?: SerializedStyles | undefined;
|
|
16
|
+
}, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
17
|
+
export declare const ChipsRow: import("@emotion/styled").StyledComponent<{
|
|
18
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
19
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
20
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
21
|
+
export declare const Chip: import("@emotion/styled").StyledComponent<{
|
|
22
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
23
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
24
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
25
|
+
export declare const OverflowChip: import("@emotion/styled").StyledComponent<{
|
|
26
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
27
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
28
|
+
} & import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
29
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
30
|
+
}, {}, {}>;
|
|
31
|
+
export declare const DropDownContent: import("@emotion/styled").StyledComponent<{
|
|
32
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
33
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
34
|
+
} & {
|
|
35
|
+
rtl?: boolean | undefined;
|
|
36
|
+
openUpward?: boolean | undefined;
|
|
37
|
+
inPortal?: boolean | undefined;
|
|
38
|
+
dropDownContentCss?: SerializedStyles | undefined;
|
|
39
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
40
|
+
export declare const SearchRow: import("@emotion/styled").StyledComponent<{
|
|
41
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
42
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
43
|
+
} & {
|
|
44
|
+
rtl?: boolean | undefined;
|
|
45
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
46
|
+
export declare const SearchInput: import("@emotion/styled").StyledComponent<{
|
|
47
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
48
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
49
|
+
} & {
|
|
50
|
+
rtl?: boolean | undefined;
|
|
51
|
+
}, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
52
|
+
export declare const SearchIcon: import("@emotion/styled").StyledComponent<{
|
|
53
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
54
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
55
|
+
} & {
|
|
56
|
+
rtl?: boolean | undefined;
|
|
57
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
58
|
+
export declare const ActionRow: import("@emotion/styled").StyledComponent<{
|
|
59
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
60
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
61
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
62
|
+
export declare const ActionButton: import("@emotion/styled").StyledComponent<{
|
|
63
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
64
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
65
|
+
}, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
66
|
+
export declare const OptionsList: import("@emotion/styled").StyledComponent<{
|
|
67
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
68
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
69
|
+
} & {
|
|
70
|
+
rtl?: boolean | undefined;
|
|
71
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
72
|
+
export declare const OptionRow: import("@emotion/styled").StyledComponent<{
|
|
73
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
74
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
75
|
+
} & {
|
|
76
|
+
rtl?: boolean | undefined;
|
|
77
|
+
selected?: boolean | undefined;
|
|
78
|
+
}, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
79
|
+
export declare const OptionText: import("@emotion/styled").StyledComponent<{
|
|
80
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
81
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
82
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
83
|
+
export declare const NoResultsMessage: import("@emotion/styled").StyledComponent<{
|
|
84
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
85
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
86
|
+
} & {
|
|
87
|
+
rtl?: boolean | undefined;
|
|
88
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
89
|
+
export declare const PortalWrapper: import("@emotion/styled").StyledComponent<{
|
|
90
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
91
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
92
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
93
|
+
export declare const triggerDefaultCss: SerializedStyles;
|
|
@@ -1,22 +1,33 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
export type SubMenuItemsType = {
|
|
3
3
|
label: string;
|
|
4
|
+
title?: string;
|
|
4
5
|
link: string;
|
|
5
6
|
action: string;
|
|
6
7
|
icon: string | ReactElement;
|
|
8
|
+
tags?: string[];
|
|
9
|
+
description?: string;
|
|
7
10
|
};
|
|
8
11
|
export type SubMenuType = {
|
|
9
12
|
title?: string;
|
|
10
13
|
items?: Array<SubMenuItemsType>;
|
|
14
|
+
hide?: boolean;
|
|
11
15
|
};
|
|
12
16
|
export type NavItem = {
|
|
13
17
|
label: string;
|
|
18
|
+
title?: string;
|
|
14
19
|
icon: string | ReactElement;
|
|
15
20
|
link?: string;
|
|
16
21
|
externalLink?: string;
|
|
17
22
|
action?: string;
|
|
23
|
+
tags?: string[];
|
|
24
|
+
description?: string;
|
|
18
25
|
className?: string;
|
|
19
26
|
subMenu?: Array<SubMenuType>;
|
|
27
|
+
hide?: boolean;
|
|
28
|
+
};
|
|
29
|
+
export type NavWithTags = NavItem & {
|
|
30
|
+
subMenu?: Array<SubMenuType>;
|
|
20
31
|
};
|
|
21
32
|
export type NavType = {
|
|
22
33
|
brand?: string | ReactElement;
|
|
@@ -8,6 +8,8 @@ export interface BCRadioItemProps {
|
|
|
8
8
|
containerCssStyle?: SerializedStyles;
|
|
9
9
|
radioCssStyle?: SerializedStyles;
|
|
10
10
|
labelCssStyle?: SerializedStyles;
|
|
11
|
+
variant?: 'default' | 'filled';
|
|
12
|
+
size?: 'S' | 'M' | 'L';
|
|
11
13
|
id?: string;
|
|
12
14
|
'aria-label'?: string;
|
|
13
15
|
'aria-describedby'?: string;
|
|
@@ -25,5 +25,5 @@ export declare const SearchFilterDiv: import("@emotion/styled").StyledComponent<
|
|
|
25
25
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
26
26
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
27
27
|
export declare const searchInputStyle: import("@emotion/react").SerializedStyles;
|
|
28
|
-
export declare const InputStyle: import("@emotion/react").SerializedStyles;
|
|
28
|
+
export declare const InputStyle: (hasError?: boolean) => import("@emotion/react").SerializedStyles;
|
|
29
29
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { ToastContainerProps } from 'react-toastify';
|
|
2
|
+
import { ToastContainerProps, ToastPosition } from 'react-toastify';
|
|
3
|
+
export type { ToastPosition };
|
|
3
4
|
import 'react-toastify/dist/ReactToastify.css';
|
|
4
5
|
import { IconType } from '../constants';
|
|
5
6
|
export declare enum ToastSize {
|
|
@@ -25,6 +26,6 @@ export declare const BCToastContainer: ({ className, ...rest }: ToastContainerPr
|
|
|
25
26
|
className?: string;
|
|
26
27
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
27
28
|
export declare function triggerToast({ title, description, firstButtonText, onFirstButtonClick, onSecondButtonClick, secondButtonText, autoClose, onClose, size, icon, titlePaddingRight, fullWidth, }: ToastProps): import("react").ReactText;
|
|
29
|
+
export declare function triggerWarningToast({ title, description, firstButtonText, onFirstButtonClick, onSecondButtonClick, secondButtonText, autoClose, onClose, size, icon, titlePaddingRight, fullWidth, }: ToastProps): import("react").ReactText;
|
|
28
30
|
export declare function triggerErrorToast({ title, description, firstButtonText, onFirstButtonClick, onSecondButtonClick, secondButtonText, autoClose, onClose, size, icon, titlePaddingRight, fullWidth, }: ToastProps): import("react").ReactText;
|
|
29
31
|
export declare function closeAllToast(): void;
|
|
30
|
-
export {};
|