@bcrumbs.net/bc-ui 0.0.7 → 0.0.8

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.7",
4
+ "version": "0.0.8",
5
5
  "keyword": [
6
6
  "bcrumbs",
7
7
  "bc-ui"
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';
@@ -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;
@@ -79,7 +79,7 @@ export declare enum NewColors {
79
79
  PRIMARY_DARKER = "var(--bc-primary-darker)",
80
80
  PRIMARY_PARAGRAPH = "var(--bc-primary-paragraph)",
81
81
  INBOX_BACKGROUND = "var(--bc-inbox-background)",
82
- PLAYGROUND_BACKGROUND = "var(--bc-playground-background)",
82
+ BACKGROUND_DARKER = "var(--bc-background-darker)",
83
83
  INFO_COLOR = "var(--Text-text-info, #175CD3)",
84
84
  SECONDARY = "var(--bc-secondary)",
85
85
  SECONDARY_HOVER = "var(--bc-secondary-hover)",
@@ -87,6 +87,7 @@ export declare enum NewColors {
87
87
  SECONDARY_LIGHT = "var(--bc-secondary-light)",
88
88
  SECONDARY_NEUTRAL = " var(--Border-border-neutral-secondary, #E5E7EB)",
89
89
  SECONDARY_HEADING = "var(--Secondary-Color-Heading, #3F434A)",
90
+ SUB_SIDEBAR_TITLE = "var(--bc-sub-sidebar-title)",
90
91
  DROPDOWN_ITEM = "var(--bc-dropDown-item)",
91
92
  DROPDOWN_HOVER = "var(--bc-dropDown-hover)",
92
93
  LIGHT_COLOR = "var(--bc-light-color)",
@@ -94,14 +95,17 @@ export declare enum NewColors {
94
95
  DANGER_FOREGROUND = "var(--bc-danger-foreground)",
95
96
  DANGER_DARKER = "var(--bc-danger-darker)",
96
97
  DANGER_ALERT = "var(--bc-danger-alert)",
98
+ DANGER_LIGHT = "var(--bc-danger-light)",
97
99
  MUTED = "var(--bc-muted)",
98
100
  MUTED_FOREGROUND = "var(--bc-muted-foreground)",
101
+ ACTIVE_COLOR = "var(--bc-active-color)",
99
102
  TABLE_HEADER = "var(--bc-table-header)",
100
103
  TABLE_HEADER_FOREGROUND = "var(--bc-table-header-foreground)",
101
104
  ALTERNATIVE_FOREGROUND = "var(--bc-alternative-foreground)",
102
105
  BORDER_COLOR = "var(--bc-border-color)",
103
106
  SECONDARY_BORDER = "var(--bc-secondary-border)",
104
107
  SUCCESS = "var(--bc-success)",
108
+ SUCCESS_DARKER = "var(--bc-success-darker)",
105
109
  CONTROLS = "var(--bc-controls)",
106
110
  FOREGROUND = "var(--bc-foreground)",
107
111
  BACKGROUND = "var(--bc-background)",
@@ -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
- [key: string]: FormData;
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;
@@ -260,4 +260,50 @@ export declare const BCIcons: {
260
260
  height?: number | undefined;
261
261
  fill?: string | undefined;
262
262
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
263
+ UnderScorePen: ({ width, height, fill }: {
264
+ width?: number | undefined;
265
+ height?: number | undefined;
266
+ fill?: string | undefined;
267
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
268
+ CancelIcon: ({ width, height, fill }: {
269
+ width?: number | undefined;
270
+ height?: number | undefined;
271
+ fill?: string | undefined;
272
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
273
+ SaveIcon: ({ width, height, fill }: {
274
+ width?: number | undefined;
275
+ height?: number | undefined;
276
+ fill?: string | undefined;
277
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
278
+ BroadcastHistory: ({ width, height, fill }: {
279
+ width?: number | undefined;
280
+ height?: number | undefined;
281
+ fill?: string | undefined;
282
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
283
+ DraftBroadcastIcon: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
284
+ ScheduledBroadcastIcon: ({ width, height, fill }: {
285
+ width?: number | undefined;
286
+ height?: number | undefined;
287
+ fill?: string | undefined;
288
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
289
+ InProgressBroadcastIcon: ({ width, height, fill }: {
290
+ width?: number | undefined;
291
+ height?: number | undefined;
292
+ fill?: string | undefined;
293
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
294
+ CompletedBroadcastIcon: ({ width, height, fill }: {
295
+ width?: number | undefined;
296
+ height?: number | undefined;
297
+ fill?: string | undefined;
298
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
299
+ FailedBroadcastIcon: ({ width, height, fill }: {
300
+ width?: number | undefined;
301
+ height?: number | undefined;
302
+ fill?: string | undefined;
303
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
304
+ CostIcon: ({ width, height, fill }: {
305
+ width?: number | undefined;
306
+ height?: number | undefined;
307
+ fill?: string | undefined;
308
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
263
309
  };
@@ -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,12 @@ export interface BCNavigationProps {
7
8
  rtl: boolean;
8
9
  activeItem?: NavItem | null;
9
10
  hasSubMenu?: boolean;
11
+ customSubSidebar?: React.ReactNode;
12
+ customSidebarTitle?: string;
10
13
  }
11
- export declare const BCNavigation: ({ brand, navModel, handleLeftNavItemClick, location, rtl, activeItem, hasSubMenu, }: BCNavigationProps) => import("@emotion/react/jsx-runtime").JSX.Element;
14
+ export declare const SubMenu: import("@emotion/styled").StyledComponent<{
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
17
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
18
+ export declare const BCNavigation: ({ brand, navModel, handleLeftNavItemClick, location, rtl, activeItem, hasSubMenu, customSubSidebar, customSidebarTitle, }: BCNavigationProps) => import("@emotion/react/jsx-runtime").JSX.Element;
12
19
  export default BCNavigation;
@@ -21,4 +21,6 @@ export type RAlertDialogProps = {
21
21
  descriptionCssStyle?: SerializedStyles;
22
22
  noTrigger?: boolean;
23
23
  rtl?: boolean;
24
+ icon?: ReactNode;
25
+ iconBackgroundColor?: string;
24
26
  };
@@ -20,6 +20,7 @@ export type TableRecords = {
20
20
  dropDownSide?: 'bottom' | 'right' | 'top' | 'left';
21
21
  dropDownAlign?: 'center' | 'end' | 'start';
22
22
  dropDownContentClassName?: SerializedStyles;
23
+ dropDownItemCssStyle?: SerializedStyles;
23
24
  onPointerDownHandler?: (info: any) => void;
24
25
  staticColumns?: boolean;
25
26
  staticHeight?: string;
@@ -36,6 +37,7 @@ export type TableAction = {
36
37
  onClick: (info: CellContext<any, any>) => void;
37
38
  inDropdown?: boolean;
38
39
  hidden?: boolean;
40
+ dynamicHidden?: (info: CellContext<any, any>) => boolean;
39
41
  Icon?: keyof typeof import('@radix-ui/react-icons') | React.ReactNode;
40
42
  actionIconCssStyle?: SerializedStyles;
41
43
  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, width, color }: PropsWithChildren<ProgressBarProps>): import("@emotion/react/jsx-runtime").JSX.Element;
10
+ export declare function BCProgressBar({ progressPercent, color, ...props }: PropsWithChildren<ProgressBarProps>): import("@emotion/react/jsx-runtime").JSX.Element;