@bcrumbs.net/bc-ui 0.0.12 → 0.0.14

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bcrumbs.net/bc-ui",
3
3
  "description": "The UI components of Bread Crumbs portals",
4
- "version": "0.0.12",
4
+ "version": "0.0.14",
5
5
  "keyword": [
6
6
  "bcrumbs",
7
7
  "bc-ui"
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';
@@ -43,6 +46,7 @@ export * from './lib/newComponents/BCNewTable/BCNewTable';
43
46
  export * from './lib/newComponents/BCNewDropdown/BCNewDropdown';
44
47
  export * from './lib/newComponents/BCNewTooltip/BCNewTooltip';
45
48
  export * from './lib/newComponents/BCNewAlertDialog/BCNewAlertDialog';
49
+ export type { RAlertDialogProps } from './lib/newComponents/BCNewAlertDialog/BCNewAlertDialog';
46
50
  export * from './lib/newComponents/BCNewDialog/BCNewDialog';
47
51
  export * from './lib/newComponents/BCRadioGroupItem/BCRadioItem';
48
52
  export * from './lib/newComponents/BCNewTabs/BCNewTabs';
@@ -55,6 +59,7 @@ export * from './lib/baseComponents/radio-group';
55
59
  export * from './lib/baseComponents/checkbox';
56
60
  export * from './lib/baseComponents/switch';
57
61
  export * from './lib/newComponents/BCNewCheckBox/BCNewCheckBox';
62
+ export * from './lib/cards/SectionDetailsCard';
58
63
  export * from './lib/button/bcbutton';
59
64
  export * from './lib/button/types';
60
65
  export * from './lib/block/bcblock';
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  interface ButtonStyleProps {
3
- variant?: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
3
+ variant?: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link' | 'warning';
4
4
  size?: 'default' | 'sm' | 'lg' | 'icon';
5
5
  }
6
6
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, ButtonStyleProps {
@@ -1,5 +1,5 @@
1
- import * as React from "react";
2
- import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
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;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Formats Y-axis tick values with a leading zero for decimals (e.g. 0.75, not .75).
3
+ * Uses Western numerals for consistent chart readability across locales.
4
+ */
5
+ export declare function formatChartAxisTick(value: number): string;
6
+ export declare const CHART_Y_AXIS_WIDTH = 44;
7
+ /** Gap between Y-axis line and tick labels (larger in RTL where axis is on the right). */
8
+ export declare function getChartYAxisTickMargin(rtl: boolean): number;
9
+ /**
10
+ * Positions labels inside the plot area, away from the axis line.
11
+ * Right-side axis (RTL): anchor end + negative dx shifts labels left of the line.
12
+ * Left-side axis (LTR): same anchor keeps labels in the margin to the left of the line.
13
+ */
14
+ export declare function getChartYAxisTickStyle(rtl: boolean): {
15
+ textAnchor: "end";
16
+ dx: number;
17
+ };
18
+ /** Space between X-axis category labels and the horizontal axis line. */
19
+ export declare const CHART_X_AXIS_TICK_MARGIN = 10;
20
+ /** Merges Recharts Y-axis tick SVG props (tick may also be a component or boolean). */
21
+ export declare function mergeYAxisTickProps(base: Record<string, unknown>, override: unknown, rtlStyle: ReturnType<typeof getChartYAxisTickStyle>): Record<string, unknown>;
@@ -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)",
@@ -1,5 +1,6 @@
1
1
  export declare enum InputHeight {
2
2
  M = "M",
3
+ ML = "ML",
3
4
  L = "L",
4
5
  XL = "XL"
5
6
  }
@@ -7,6 +8,9 @@ export declare const HeightValues: {
7
8
  M: {
8
9
  height: string;
9
10
  };
11
+ ML: {
12
+ height: string;
13
+ };
10
14
  L: {
11
15
  height: string;
12
16
  };
@@ -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;
@@ -28,10 +28,10 @@ interface useBCFormReturnFunctions {
28
28
  validateForm: () => boolean;
29
29
  onChange: (targetVal: string, e: React.ChangeEvent<HTMLInputElement>) => void;
30
30
  resetValidationStates: () => void;
31
- renderField: (name: string, label: string, type: FieldType, readonly?: boolean, placeholder?: string, tooltip?: string, dynamicStyle?: SerializedStyles) => JSX.Element;
31
+ renderField: (name: string, label: string, type: FieldType, readonly?: boolean, placeholder?: string, tooltip?: string, dynamicStyle?: SerializedStyles, autoComplete?: string) => 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;
@@ -401,4 +401,64 @@ 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;
449
+ HelpCircle: ({ width, height, fill }: {
450
+ width?: number | undefined;
451
+ height?: number | undefined;
452
+ fill?: string | undefined;
453
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
454
+ SingleUser: ({ width, height, fill }: {
455
+ width?: number | undefined;
456
+ height?: number | undefined;
457
+ fill?: string | undefined;
458
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
459
+ ChatWithBubble: ({ width, height, fill }: {
460
+ width?: number | undefined;
461
+ height?: number | undefined;
462
+ fill?: string | undefined;
463
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
404
464
  };
@@ -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,34 @@
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;
10
+ hide?: boolean;
7
11
  };
8
12
  export type SubMenuType = {
9
13
  title?: string;
10
14
  items?: Array<SubMenuItemsType>;
15
+ hide?: boolean;
11
16
  };
12
17
  export type NavItem = {
13
18
  label: string;
19
+ title?: string;
14
20
  icon: string | ReactElement;
15
21
  link?: string;
16
22
  externalLink?: string;
17
23
  action?: string;
24
+ tags?: string[];
25
+ description?: string;
18
26
  className?: string;
19
27
  subMenu?: Array<SubMenuType>;
28
+ hide?: boolean;
29
+ };
30
+ export type NavWithTags = NavItem & {
31
+ subMenu?: Array<SubMenuType>;
20
32
  };
21
33
  export type NavType = {
22
34
  brand?: string | ReactElement;
@@ -1,3 +1,28 @@
1
1
  import React from 'react';
2
- import { RAlertDialogProps } from './types';
3
- export declare const BCNewAlertDialog: React.FC<RAlertDialogProps>;
2
+ import type { SerializedStyles } from '@emotion/react';
3
+ export interface RAlertDialogProps {
4
+ component?: React.ReactNode;
5
+ title?: string;
6
+ description?: string;
7
+ cancelText?: string;
8
+ cancelCssStyle?: SerializedStyles;
9
+ cancelAction?: () => void;
10
+ confirmText?: string;
11
+ confirmCssStyle?: SerializedStyles;
12
+ confirmAction: () => void;
13
+ loading?: boolean;
14
+ disabled?: boolean;
15
+ headerItemsPosition?: string;
16
+ disableTrigger?: boolean;
17
+ triggerCssStyle?: SerializedStyles;
18
+ open?: boolean;
19
+ onOpenChange?: (open: boolean) => void;
20
+ titleCssStyle?: SerializedStyles;
21
+ descriptionCssStyle?: SerializedStyles;
22
+ noTrigger?: boolean;
23
+ rtl?: boolean;
24
+ icon?: React.ReactNode;
25
+ iconBackgroundColor?: string;
26
+ noConfirmButton?: boolean;
27
+ }
28
+ export declare const BCNewAlertDialog: ({ component, title, description, cancelText, cancelCssStyle, confirmText, confirmCssStyle, confirmAction, triggerCssStyle, headerItemsPosition, disableTrigger, open, onOpenChange, titleCssStyle, descriptionCssStyle, noTrigger, rtl, icon, iconBackgroundColor, noConfirmButton, cancelAction, }: RAlertDialogProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,27 +1 @@
1
- import { SerializedStyles } from '@emotion/react';
2
- import { ReactNode } from 'react';
3
- export type RAlertDialogProps = {
4
- component?: ReactNode;
5
- title?: string;
6
- description?: string;
7
- cancelText?: string;
8
- cancelCssStyle?: SerializedStyles;
9
- cancelAction?: () => void;
10
- confirmText?: string;
11
- confirmCssStyle?: SerializedStyles;
12
- confirmAction: () => void;
13
- loading?: boolean;
14
- disabled?: boolean;
15
- headerItemsPosition?: string;
16
- disableTrigger?: boolean;
17
- triggerCssStyle?: SerializedStyles;
18
- open?: boolean;
19
- onOpenChange?: (open: boolean) => void;
20
- titleCssStyle?: SerializedStyles;
21
- descriptionCssStyle?: SerializedStyles;
22
- noTrigger?: boolean;
23
- rtl?: boolean;
24
- icon?: ReactNode;
25
- iconBackgroundColor?: string;
26
- noConfirmButton?: boolean;
27
- };
1
+ export type { RAlertDialogProps } from './BCNewAlertDialog';
@@ -30,4 +30,5 @@ export type RDropdownProps = {
30
30
  beforeActionsComponent?: ReactNode;
31
31
  afterActionsComponent?: ReactNode;
32
32
  rtl?: boolean;
33
+ onOpenChange?: (open: boolean) => void;
33
34
  };
@@ -7,4 +7,5 @@ export type RTooltipProps = {
7
7
  contentCssStyle?: SerializedStyles;
8
8
  delayDuration?: number;
9
9
  side?: 'top' | 'bottom' | 'left' | 'right';
10
+ open?: boolean;
10
11
  };
@@ -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 {};
@@ -11,6 +11,7 @@ export interface BCTextboxProps {
11
11
  placeholder?: string;
12
12
  maxLength?: number;
13
13
  autoCompleteList?: string[];
14
+ autoComplete?: string;
14
15
  onBlur?: (ev: ChangeEvent<HTMLInputElement>) => any;
15
16
  onClick?: (ev: any) => any;
16
17
  onFocus?: (ev: ChangeEvent<HTMLInputElement>) => any;
@@ -19,5 +20,5 @@ export interface BCTextboxProps {
19
20
  export interface BCTextboxState {
20
21
  showAutoComplete: boolean;
21
22
  }
22
- export declare const BCTextbox: ({ className, name, onChange, onKeyDown, onClick, value, type, disabled, placeholder, maxLength, autoCompleteList, onBlur, onFocus, inputStyle, }: BCTextboxProps) => import("@emotion/react/jsx-runtime").JSX.Element;
23
+ export declare const BCTextbox: ({ className, name, onChange, onKeyDown, onClick, value, type, disabled, placeholder, maxLength, autoCompleteList, autoComplete, onBlur, onFocus, inputStyle, }: BCTextboxProps) => import("@emotion/react/jsx-runtime").JSX.Element;
23
24
  export default BCTextbox;
@@ -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 {};