@bcrumbs.net/bc-ui 0.0.1 → 0.0.3

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.
Files changed (104) hide show
  1. package/README.md +0 -7
  2. package/index.esm.d.ts +1 -0
  3. package/index.esm.js +15798 -4211
  4. package/package.json +14 -10
  5. package/src/index.d.ts +51 -0
  6. package/src/lib/InputWithSuggestions/index.d.ts +42 -0
  7. package/{lib → src/lib}/addButton/bcadd-button.d.ts +3 -2
  8. package/src/lib/avatar/index.d.ts +21 -0
  9. package/src/lib/button/bcbutton.d.ts +24 -0
  10. package/src/lib/button/types.d.ts +19 -0
  11. package/src/lib/charts/barLineChart/index.d.ts +28 -0
  12. package/src/lib/charts/barLineChart/types.d.ts +10 -0
  13. package/src/lib/charts/pieChart/index.d.ts +12 -0
  14. package/src/lib/constants/BoxShadow.d.ts +6 -0
  15. package/src/lib/constants/Color.d.ts +73 -0
  16. package/src/lib/constants/Droplist.d.ts +7 -0
  17. package/src/lib/constants/DroplistSizes.d.ts +14 -0
  18. package/{lib → src/lib}/constants/IconType.d.ts +14 -8
  19. package/src/lib/constants/InputHeight.d.ts +16 -0
  20. package/{lib → src/lib}/constants/LineHeight.d.ts +1 -1
  21. package/src/lib/constants/LogoSize.d.ts +6 -0
  22. package/{lib → src/lib}/constants/TextSize.d.ts +1 -1
  23. package/{lib → src/lib}/constants/index.d.ts +4 -0
  24. package/src/lib/dateRangePicker/StaticRanges.d.ts +3 -0
  25. package/src/lib/dateRangePicker/StyledDateRange.d.ts +10 -0
  26. package/src/lib/dateRangePicker/index.d.ts +30 -0
  27. package/src/lib/dropList/bcdrop-list.d.ts +16 -0
  28. package/src/lib/dropdown/DropdownList/DropdownListItem/index.d.ts +57 -0
  29. package/src/lib/dropdown/DropdownList/index.d.ts +71 -0
  30. package/src/lib/dropdown/index.d.ts +46 -0
  31. package/src/lib/dropdown/types.d.ts +50 -0
  32. package/src/lib/hooks/useDebounce/index.d.ts +9 -0
  33. package/src/lib/hooks/useDropdownClickOutside/index.d.ts +2 -0
  34. package/{lib → src/lib}/hooks/useForm/index.d.ts +6 -6
  35. package/src/lib/hooks/useInterval/index.d.ts +1 -0
  36. package/src/lib/hooks/usePolling/index.d.ts +10 -0
  37. package/src/lib/hooks/usePrevious/index.d.ts +1 -0
  38. package/src/lib/hooks/useToggle/index.d.ts +1 -0
  39. package/src/lib/hooks/useUrlState/index.d.ts +9 -0
  40. package/src/lib/hooks/useWindowSize/index.d.ts +1 -0
  41. package/src/lib/icon/bcicon.d.ts +29 -0
  42. package/src/lib/inputTags/index.d.ts +22 -0
  43. package/src/lib/layout/flexBox/index.d.ts +77 -0
  44. package/src/lib/layout/gridLayout/index.d.ts +11 -0
  45. package/src/lib/layout/horizontalLayout/index.d.ts +26 -0
  46. package/src/lib/layout/index.d.ts +4 -0
  47. package/src/lib/layout/verticalLayout/index.d.ts +22 -0
  48. package/src/lib/lazyScrollbar/index.d.ts +10 -0
  49. package/src/lib/line/index.d.ts +7 -0
  50. package/{lib → src/lib}/loading/loading.d.ts +1 -2
  51. package/src/lib/navigation/bcnavigation.d.ts +10 -0
  52. package/src/lib/navigation/left-nav/index.d.ts +9 -0
  53. package/src/lib/navigation/left-nav/leftNavButton/index.d.ts +7 -0
  54. package/src/lib/navigation/types.d.ts +14 -0
  55. package/{lib → src/lib}/overlay/index.d.ts +2 -1
  56. package/{lib → src/lib}/popup/index.d.ts +1 -1
  57. package/src/lib/radioButton/index.d.ts +20 -0
  58. package/{lib → src/lib}/scrollArea/index.d.ts +1 -0
  59. package/src/lib/searchbox/bcsearchbox.d.ts +12 -0
  60. package/src/lib/seperator/index.d.ts +16 -0
  61. package/src/lib/skeleton/index.d.ts +12 -0
  62. package/{lib → src/lib}/table/bctable.d.ts +20 -19
  63. package/src/lib/textArea/index.d.ts +4 -0
  64. package/src/lib/textbox/bctextbox.d.ts +21 -0
  65. package/{lib → src/lib}/toaster/index.d.ts +1 -1
  66. package/src/lib/utils/extractInitialsFromText.d.ts +1 -0
  67. package/src/lib/utils/formatDate.d.ts +2 -0
  68. package/src/lib/utils/index.d.ts +1 -0
  69. package/index.d.ts +0 -26
  70. package/index.umd.css +0 -39
  71. package/index.umd.js +0 -4756
  72. package/lib/button/bcbutton.d.ts +0 -39
  73. package/lib/constants/Color.d.ts +0 -32
  74. package/lib/dropList/bcdrop-list.d.ts +0 -24
  75. package/lib/hooks/useForm/fieldsTypes.d.ts +0 -9
  76. package/lib/hooks/useInterval/index.d.ts +0 -2
  77. package/lib/icon/bcicon.d.ts +0 -17
  78. package/lib/navigation/bcnavigation.d.ts +0 -40
  79. package/lib/navigation/left-nav/index.d.ts +0 -26
  80. package/lib/navigation/left-nav/leftNavButton/index.d.ts +0 -13
  81. package/lib/searchbox/bcsearchbox.d.ts +0 -9
  82. package/lib/tagsInput/bctags-input.d.ts +0 -10
  83. package/lib/textbox/bctextbox.d.ts +0 -28
  84. /package/{lib → src/lib}/block/bcblock.d.ts +0 -0
  85. /package/{lib → src/lib}/checkbox/bccheckbox.d.ts +0 -0
  86. /package/{lib → src/lib}/constants/ButtonSize.d.ts +0 -0
  87. /package/{lib → src/lib}/constants/FontFamily.d.ts +0 -0
  88. /package/{lib → src/lib}/constants/Key.d.ts +0 -0
  89. /package/{lib → src/lib}/constants/KeyCode.d.ts +0 -0
  90. /package/{lib → src/lib}/constants/TextAlign.d.ts +0 -0
  91. /package/{lib → src/lib}/constants/TextStyle.d.ts +0 -0
  92. /package/{lib → src/lib}/constants/TextWeight.d.ts +0 -0
  93. /package/{lib → src/lib}/constants/WhiteSpace.d.ts +0 -0
  94. /package/{lib → src/lib}/dropZone/index.d.ts +0 -0
  95. /package/{lib → src/lib}/hooks/useForceUpdate/index.d.ts +0 -0
  96. /package/{lib → src/lib}/hooks/useForm/validationConstant.d.ts +0 -0
  97. /package/{lib → src/lib}/hooks/withEnterAnimation/index.d.ts +0 -0
  98. /package/{lib → src/lib}/iconButton/index.d.ts +0 -0
  99. /package/{lib → src/lib}/progress/index.d.ts +0 -0
  100. /package/{lib → src/lib}/select/bcselect.d.ts +0 -0
  101. /package/{lib → src/lib}/text/bctext.d.ts +0 -0
  102. /package/{lib → src/lib}/tooltip/TooltipPlacement.d.ts +0 -0
  103. /package/{lib → src/lib}/tooltip/TooltipTrigger.d.ts +0 -0
  104. /package/{lib → src/lib}/tooltip/index.d.ts +0 -0
@@ -1,39 +0,0 @@
1
- import { LegacyRef, MouseEvent } from 'react';
2
- import { ButtonSize } from '../constants';
3
- export interface BCButtonDropListItem {
4
- key: string;
5
- value: string;
6
- }
7
- export interface BCButtonProps {
8
- className?: string;
9
- onClick: (event: MouseEvent<HTMLButtonElement>) => void;
10
- onSubClick?: (key: string) => void;
11
- text: string;
12
- text2?: string;
13
- type?: 'button' | 'submit' | 'reset' | undefined;
14
- disabled?: boolean;
15
- loading?: boolean;
16
- icon?: string;
17
- hasDropList?: boolean;
18
- dropListItems?: BCButtonDropListItem[];
19
- refProp?: LegacyRef<HTMLButtonElement>;
20
- onClick2?: () => void;
21
- buttonSize?: ButtonSize;
22
- buttonType?: string;
23
- loadingIconPath?: string;
24
- }
25
- export interface BCButtonState {
26
- showDropdown: boolean;
27
- }
28
- export declare const BCButton: {
29
- ({ className, onClick, text, disabled, loading, icon, refProp, hasDropList, onClick2, text2, type, buttonSize, buttonType, loadingIconPath, }: BCButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
30
- defaultProps: {
31
- className: string;
32
- text: string;
33
- loading: boolean;
34
- disabled: boolean;
35
- hasDropList: boolean;
36
- dropListItems: undefined;
37
- };
38
- };
39
- export default BCButton;
@@ -1,32 +0,0 @@
1
- export declare enum Color {
2
- INHERIT = "inherit",
3
- PRIMARY = "#2eb582",
4
- PRIMARY_LIGHTER = "#6fd8ad",
5
- PRIMARY_DARKER = "#09151e",
6
- SECONDARY = "#4e4f4f",
7
- SECONDARY_LIGHT = "#9b9b9b",
8
- SECONDARY_LIGHT_HOVER = "#191919",
9
- LIGHT_COLOR = "#ccdbd5",
10
- DANGER_COLOR = "#b52e2e",
11
- SUCCESS_COLOR = "#2eb582",
12
- CONTROLS_COLOR = "#fff",
13
- PRIMARY90 = "rgba(46, 181, 130, 0.9)",
14
- PRIMARY80 = "rgba(46, 181, 130, 0.8)",
15
- PRIMARY60 = "rgba(46, 181, 130, 0.6)",
16
- PRIMARY40 = "rgba(46, 181, 130, 0.4)",
17
- PRIMARY30 = "rgba(46, 181, 130, 0.3)",
18
- PRIMARY20 = "rgba(46, 181, 130, 0.2)",
19
- PRIMARY10 = "rgba(46, 181, 130, 0.1)",
20
- PRIMARY05 = "rgba(46, 181, 130, 0.05)",
21
- SECONDARY90 = "rgb(78, 79, 79, 0.9)",
22
- SECONDARY80 = "rgb(78, 79, 79, 0.8)",
23
- SECONDARY60 = "rgb(78, 79, 79, 0.6)",
24
- SECONDARY50 = "rgb(78, 79, 79, 0.5)",
25
- SECONDARY40 = "rgb(78, 79, 79, 0.4)",
26
- SECONDARY30 = "rgb(78, 79, 79, 0.3)",
27
- SECONDARY20 = "rgb(78, 79, 79, 0.2)",
28
- SECONDARY10 = "rgb(78, 79, 79, 0.1)",
29
- SECONDARY05 = "rgb(78, 79, 79, 0.05)",
30
- PRIMARY_DARKER80 = "rgb(9, 21, 30, 0.8)"
31
- }
32
- export default Color;
@@ -1,24 +0,0 @@
1
- export interface BCDropListOptionsType {
2
- icon?: string;
3
- text: string;
4
- styleClass?: string;
5
- value: string;
6
- note?: string;
7
- }
8
- export interface BCDropListProps {
9
- className?: string;
10
- selected: string;
11
- options: BCDropListOptionsType[];
12
- onSelectOption: (value?: string) => void;
13
- noEmpty?: boolean;
14
- emptyText?: string;
15
- placeholder?: string;
16
- }
17
- export declare const BCDropList: {
18
- ({ className, selected, options, onSelectOption, noEmpty, placeholder, emptyText }: BCDropListProps): import("@emotion/react/jsx-runtime").JSX.Element;
19
- defaultProps: {
20
- className: string;
21
- noEmpty: boolean;
22
- };
23
- };
24
- export default BCDropList;
@@ -1,9 +0,0 @@
1
- export declare const FIELDS_TYPES: {
2
- Password: string;
3
- Text: string;
4
- Email: string;
5
- Number: string;
6
- Boolean: string;
7
- Droplist: string;
8
- File: string;
9
- };
@@ -1,2 +0,0 @@
1
- declare function useInterval(callback: () => void, delay: number | null): void;
2
- export default useInterval;
@@ -1,17 +0,0 @@
1
- import Color from '../constants/Color';
2
- import IconType from '../constants/IconType';
3
- export declare enum IconSize {
4
- XXL = 72,
5
- XL = 42,
6
- L = 28,
7
- M = 18,
8
- S = 14
9
- }
10
- export type IconProps = {
11
- icon: IconType;
12
- size?: IconSize;
13
- color?: Color;
14
- className?: string;
15
- dataQA?: string;
16
- };
17
- export declare function BCIcon({ icon, size, color, className, dataQA, }: IconProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,40 +0,0 @@
1
- export interface BCNavigationProps {
2
- brand: string;
3
- handleLeftNavItemClick: (event: any, viewName: string) => void;
4
- navModel: {
5
- brand: string;
6
- leftLinks: Array<{
7
- label: string;
8
- icon: string;
9
- toolTip?: string;
10
- activeIcon?: string;
11
- link: string;
12
- view: string;
13
- isRouteBtn: boolean;
14
- alwaysShows: boolean;
15
- showWhenUserAuth: boolean;
16
- hideWhenUserAuth: boolean;
17
- anotherWebsite?: boolean;
18
- className?: string;
19
- }>;
20
- leftBottomLinks: Array<{
21
- label: string;
22
- icon: string;
23
- toolTip?: string;
24
- activeIcon?: string;
25
- link: string;
26
- view: string;
27
- isRouteBtn: boolean;
28
- alwaysShows: boolean;
29
- showWhenUserAuth: boolean;
30
- hideWhenUserAuth: boolean;
31
- anotherWebsite?: boolean;
32
- className?: string;
33
- }>;
34
- };
35
- location: any;
36
- name?: string;
37
- surname?: string;
38
- }
39
- export declare const BCNavigation: ({ brand, navModel, handleLeftNavItemClick, name, surname, location, }: BCNavigationProps) => import("@emotion/react/jsx-runtime").JSX.Element;
40
- export default BCNavigation;
@@ -1,26 +0,0 @@
1
- export type NavItem = {
2
- label: string;
3
- icon: string;
4
- toolTip?: string;
5
- activeIcon?: string;
6
- link: string;
7
- view: string;
8
- isRouteBtn: boolean;
9
- alwaysShows: boolean;
10
- showWhenUserAuth?: boolean;
11
- hideWhenUserAuth?: boolean;
12
- anotherWebsite?: boolean;
13
- className?: string;
14
- };
15
- export type Props = {
16
- leftLinks: Array<NavItem>;
17
- onLeftNavButtonClick: (event: any, viewName: string) => void;
18
- className?: string;
19
- location: any;
20
- brand: string;
21
- };
22
- declare const LeftNav: {
23
- ({ leftLinks, onLeftNavButtonClick, className, location, }: Props): import("@emotion/react/jsx-runtime").JSX.Element;
24
- displayName: string;
25
- };
26
- export default LeftNav;
@@ -1,13 +0,0 @@
1
- export type Props = {
2
- link: string;
3
- label: string;
4
- viewName: string;
5
- onClick: (event: any, viewName: string) => void;
6
- active: boolean;
7
- activeIcon?: string;
8
- icon: string;
9
- anotherWebsite?: boolean;
10
- toolTip?: string;
11
- };
12
- export declare const LeftNavButton: ({ link, label, viewName, onClick, active, activeIcon, icon, anotherWebsite, toolTip, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
13
- export default LeftNavButton;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- export interface BCSearchboxProps {
3
- className?: string;
4
- onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
5
- value?: string;
6
- name?: string;
7
- }
8
- export declare const BCSearchbox: ({ className, onChange, value, name, }: BCSearchboxProps) => import("@emotion/react/jsx-runtime").JSX.Element;
9
- export default BCSearchbox;
@@ -1,10 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface BCTagsInputProps {
3
- className?: string;
4
- value: string[];
5
- placeholder?: string;
6
- onChange: () => void;
7
- renderInput: () => ReactNode;
8
- }
9
- export declare const BCTagsInput: (props: BCTagsInputProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
- export default BCTagsInput;
@@ -1,28 +0,0 @@
1
- export interface BCTextboxProps {
2
- className?: string;
3
- name?: string;
4
- onChange?: (val: string, event: any) => any;
5
- onKeyPress?: () => any;
6
- onKeyDown?: () => any;
7
- value: string;
8
- type: string;
9
- disabled?: boolean;
10
- placeholder?: string;
11
- maxLength?: number;
12
- autoCompleteList?: string[];
13
- onBlur?: () => any;
14
- }
15
- export interface BCTextboxState {
16
- showAutoComplete: boolean;
17
- }
18
- export declare const BCTextbox: {
19
- ({ className, name, onChange, onKeyPress, onKeyDown, value, type, disabled, placeholder, maxLength, autoCompleteList, onBlur, }: BCTextboxProps): import("@emotion/react/jsx-runtime").JSX.Element;
20
- defaultProps: {
21
- className: string;
22
- value: string;
23
- disabled: boolean;
24
- placeholder: undefined;
25
- maxLength: undefined;
26
- };
27
- };
28
- export default BCTextbox;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes