@bcrumbs.net/bc-ui 0.0.11 → 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/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.11",
4
+ "version": "0.0.13",
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';
@@ -53,8 +56,9 @@ export * from './lib/newComponents/BCNewDropdown/types';
53
56
  export * from './lib/newComponents/BCRadioGroupItem/types';
54
57
  export * from './lib/baseComponents/radio-group';
55
58
  export * from './lib/baseComponents/checkbox';
59
+ export * from './lib/baseComponents/switch';
56
60
  export * from './lib/newComponents/BCNewCheckBox/BCNewCheckBox';
57
- export * from './lib/turnstile';
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 "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;
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ import * as SwitchPrimitives from '@radix-ui/react-switch';
3
+ import { SerializedStyles } from '@emotion/react';
4
+ type SwitchSize = 'S' | 'M';
5
+ interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> {
6
+ css?: SerializedStyles;
7
+ rtl?: boolean;
8
+ size?: SwitchSize;
9
+ }
10
+ declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
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;
@@ -19,6 +19,7 @@ export declare enum NewColors {
19
19
  INFO_COLOR = "var(--bc-info)",
20
20
  INFO_LIGHT = "var(--bc-info-light)",
21
21
  FONT_COLOR = "#000",
22
+ PRIMARY_LIGHT = "var(--bc-primary-light)",
22
23
  SECONDARY = "var(--bc-secondary)",
23
24
  SECONDARY_HOVER = "var(--bc-secondary-hover)",
24
25
  SECONDARY_FOREGROUND = "var(--bc-secondary-foreground)",
@@ -36,6 +37,7 @@ export declare enum NewColors {
36
37
  DANGER_LIGHT = "var(--bc-danger-light)",
37
38
  SUCCESS = "var(--bc-success)",
38
39
  SUCCESS_DARKER = "var(--bc-success-darker)",
40
+ SUCCESS_LIGHT = "var(--bc-success-light)",
39
41
  DROPDOWN_ITEM = "var(--bc-dropDown-item)",
40
42
  DROPDOWN_HOVER = "var(--bc-dropDown-hover)",
41
43
  SUB_SIDEBAR_TITLE = "var(--bc-sub-sidebar-title)",
@@ -50,6 +52,7 @@ export declare enum NewColors {
50
52
  CONTROLS = "var(--bc-controls)",
51
53
  FOREGROUND = "var(--bc-foreground)",
52
54
  BACKGROUND = "var(--bc-background)",
55
+ BACKGROUND_SECONDARY = "var(--bc-background-secondary)",
53
56
  PLACEHOLDER = "var(--bc-placeholder)",
54
57
  HOVER_BG = "var(--bc-hover-bg)",
55
58
  CARD = "var(--bc-card)",
@@ -74,6 +77,7 @@ export declare enum NewColors {
74
77
  CHARTS_DANGER = "var(--bc-charts-danger)",
75
78
  CHARTS_LABEL = "var(--bc-charts-label)",
76
79
  CHARTS_LEGEND_LABEL = "var(--bc-charts-legend-label)",
80
+ CHARTS_TOOLTIP_TITLE = "var(--bc-charts-tooltip-title)",
77
81
  SECONDARY80 = "rgb(106, 107, 131, 0.8)",
78
82
  SECONDARY70 = "rgb(106, 107, 131, 0.7)",
79
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,6 +28,7 @@ export interface BCDropListProps {
28
28
  searchable?: boolean;
29
29
  searchPlaceholder?: string;
30
30
  usePortal?: boolean;
31
+ keepOpenOnSelect?: boolean;
31
32
  }
32
- export declare function BCDropList({ className, selected, options, onSelectOption, noEmpty, placeholder, emptyText, buttonSize, rtl, icon, containerCss, buttonCss, dropDownContentCss, loading, disabled, allowCreate, onCreateNew, createPlaceholder, addText, createText, id, searchable, searchPlaceholder, usePortal, }: BCDropListProps): import("@emotion/react/jsx-runtime").JSX.Element;
33
+ export declare function BCDropList({ className, selected, options, onSelectOption, noEmpty, placeholder, emptyText, buttonSize, rtl, icon, containerCss, buttonCss, dropDownContentCss, loading, disabled, allowCreate, onCreateNew, createPlaceholder, addText, createText, id, searchable, searchPlaceholder, usePortal, keepOpenOnSelect, }: BCDropListProps): import("@emotion/react/jsx-runtime").JSX.Element;
33
34
  export default BCDropList;
@@ -74,6 +74,7 @@ export declare const DropDownContent: import("@emotion/styled").StyledComponent<
74
74
  } & {
75
75
  rtl?: boolean | undefined;
76
76
  openUpward?: boolean | undefined;
77
+ inPortal?: boolean | undefined;
77
78
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
78
79
  export declare const PortalWrapper: import("@emotion/styled").StyledComponent<{
79
80
  theme?: import("@emotion/react").Theme | undefined;
@@ -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;
@@ -24,6 +24,7 @@ export declare const BCIcons: {
24
24
  WhatsApp: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
25
25
  Instagram: ({ width, height }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
26
26
  Facebook: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
27
+ Telegram: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
27
28
  Google: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
28
29
  Broadcast: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
29
30
  Bot: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -395,4 +396,54 @@ export declare const BCIcons: {
395
396
  height?: number | undefined;
396
397
  fill?: string | undefined;
397
398
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
399
+ ChevronDown: ({ width, height, fill }: {
400
+ width?: number | undefined;
401
+ height?: number | undefined;
402
+ fill?: string | undefined;
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;
398
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;
@@ -16,5 +16,7 @@ export interface MultiSelectorProps {
16
16
  allowCreate?: boolean;
17
17
  onCreateNew?: (value: string) => Promise<void>;
18
18
  createPlaceholder?: string;
19
+ usePortal?: boolean;
20
+ keepOpenOnSelect?: boolean;
19
21
  }
20
- export declare const MultiSelector: ({ onSelect, options, selectedValues, onRemove, loading, disabled, rtl, placeholder, allowCreate, onCreateNew, createPlaceholder, }: MultiSelectorProps) => import("@emotion/react/jsx-runtime").JSX.Element;
22
+ export declare const MultiSelector: ({ onSelect, options, selectedValues, onRemove, loading, disabled, rtl, placeholder, allowCreate, onCreateNew, createPlaceholder, usePortal, keepOpenOnSelect, }: MultiSelectorProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -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 {};
@@ -1,47 +0,0 @@
1
- /// <reference types="react" />
2
- export type TurnstileTheme = 'light' | 'dark' | 'auto';
3
- export type TurnstileSize = 'normal' | 'compact';
4
- export interface BCTurnstileProps {
5
- /** Cloudflare Turnstile site key */
6
- siteKey: string;
7
- /** Callback when verification succeeds */
8
- onSuccess?: (token: string) => void;
9
- /** Callback when verification fails */
10
- onError?: (error?: string) => void;
11
- /** Callback when token expires */
12
- onExpire?: () => void;
13
- /** Widget theme */
14
- theme?: TurnstileTheme;
15
- /** Widget size */
16
- size?: TurnstileSize;
17
- /** Additional class name */
18
- className?: string;
19
- /** Action identifier for analytics */
20
- action?: string;
21
- }
22
- export interface BCTurnstileRef {
23
- /** Reset the widget */
24
- reset: () => void;
25
- /** Get the current response token */
26
- getResponse: () => string | undefined;
27
- /** Execute the challenge (for invisible mode) */
28
- execute: () => void;
29
- }
30
- /**
31
- * BCTurnstile - Cloudflare Turnstile CAPTCHA component
32
- *
33
- * Usage:
34
- * ```tsx
35
- * const turnstileRef = useRef<BCTurnstileRef>(null);
36
- * const [token, setToken] = useState<string | null>(null);
37
- *
38
- * <BCTurnstile
39
- * ref={turnstileRef}
40
- * siteKey="your-site-key"
41
- * onSuccess={(token) => setToken(token)}
42
- * onError={() => setToken(null)}
43
- * />
44
- * ```
45
- */
46
- export declare const BCTurnstile: import("react").ForwardRefExoticComponent<BCTurnstileProps & import("react").RefAttributes<BCTurnstileRef>>;
47
- export default BCTurnstile;
@@ -1 +0,0 @@
1
- export * from './BCTurnstile';