@bcrumbs.net/bc-ui 0.0.1 → 0.0.2

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 (100) hide show
  1. package/README.md +0 -7
  2. package/index.esm.d.ts +1 -0
  3. package/index.esm.js +16654 -4207
  4. package/package.json +13 -10
  5. package/{index.d.ts → src/index.d.ts} +24 -1
  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 +19 -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 +8 -0
  37. package/src/lib/hooks/usePrevious/index.d.ts +1 -0
  38. package/src/lib/hooks/useUrlState/index.d.ts +9 -0
  39. package/src/lib/hooks/useWindowSize/index.d.ts +1 -0
  40. package/src/lib/icon/bcicon.d.ts +29 -0
  41. package/src/lib/inputTags/index.d.ts +22 -0
  42. package/src/lib/layout/flexBox/index.d.ts +77 -0
  43. package/src/lib/layout/gridLayout/index.d.ts +11 -0
  44. package/src/lib/layout/horizontalLayout/index.d.ts +26 -0
  45. package/src/lib/layout/index.d.ts +4 -0
  46. package/src/lib/layout/verticalLayout/index.d.ts +22 -0
  47. package/src/lib/line/index.d.ts +7 -0
  48. package/{lib → src/lib}/loading/loading.d.ts +1 -2
  49. package/src/lib/navigation/bcnavigation.d.ts +10 -0
  50. package/src/lib/navigation/left-nav/index.d.ts +9 -0
  51. package/src/lib/navigation/left-nav/leftNavButton/index.d.ts +7 -0
  52. package/src/lib/navigation/types.d.ts +14 -0
  53. package/{lib → src/lib}/overlay/index.d.ts +2 -1
  54. package/{lib → src/lib}/popup/index.d.ts +1 -1
  55. package/src/lib/radioButton/index.d.ts +20 -0
  56. package/{lib → src/lib}/scrollArea/index.d.ts +1 -0
  57. package/{lib → src/lib}/searchbox/bcsearchbox.d.ts +4 -2
  58. package/src/lib/seperator/index.d.ts +16 -0
  59. package/src/lib/skeleton/index.d.ts +12 -0
  60. package/{lib → src/lib}/table/bctable.d.ts +6 -15
  61. package/src/lib/textArea/index.d.ts +4 -0
  62. package/src/lib/textbox/bctextbox.d.ts +21 -0
  63. package/{lib → src/lib}/toaster/index.d.ts +1 -1
  64. package/src/lib/utils/extractInitialsFromText.d.ts +1 -0
  65. package/src/lib/utils/formatDate.d.ts +2 -0
  66. package/src/lib/utils/index.d.ts +1 -0
  67. package/index.umd.css +0 -39
  68. package/index.umd.js +0 -4756
  69. package/lib/button/bcbutton.d.ts +0 -39
  70. package/lib/constants/Color.d.ts +0 -32
  71. package/lib/dropList/bcdrop-list.d.ts +0 -24
  72. package/lib/hooks/useForm/fieldsTypes.d.ts +0 -9
  73. package/lib/hooks/useInterval/index.d.ts +0 -2
  74. package/lib/icon/bcicon.d.ts +0 -17
  75. package/lib/navigation/bcnavigation.d.ts +0 -40
  76. package/lib/navigation/left-nav/index.d.ts +0 -26
  77. package/lib/navigation/left-nav/leftNavButton/index.d.ts +0 -13
  78. package/lib/tagsInput/bctags-input.d.ts +0 -10
  79. package/lib/textbox/bctextbox.d.ts +0 -28
  80. /package/{lib → src/lib}/block/bcblock.d.ts +0 -0
  81. /package/{lib → src/lib}/checkbox/bccheckbox.d.ts +0 -0
  82. /package/{lib → src/lib}/constants/ButtonSize.d.ts +0 -0
  83. /package/{lib → src/lib}/constants/FontFamily.d.ts +0 -0
  84. /package/{lib → src/lib}/constants/Key.d.ts +0 -0
  85. /package/{lib → src/lib}/constants/KeyCode.d.ts +0 -0
  86. /package/{lib → src/lib}/constants/TextAlign.d.ts +0 -0
  87. /package/{lib → src/lib}/constants/TextStyle.d.ts +0 -0
  88. /package/{lib → src/lib}/constants/TextWeight.d.ts +0 -0
  89. /package/{lib → src/lib}/constants/WhiteSpace.d.ts +0 -0
  90. /package/{lib → src/lib}/dropZone/index.d.ts +0 -0
  91. /package/{lib → src/lib}/hooks/useForceUpdate/index.d.ts +0 -0
  92. /package/{lib → src/lib}/hooks/useForm/validationConstant.d.ts +0 -0
  93. /package/{lib → src/lib}/hooks/withEnterAnimation/index.d.ts +0 -0
  94. /package/{lib → src/lib}/iconButton/index.d.ts +0 -0
  95. /package/{lib → src/lib}/progress/index.d.ts +0 -0
  96. /package/{lib → src/lib}/select/bcselect.d.ts +0 -0
  97. /package/{lib → src/lib}/text/bctext.d.ts +0 -0
  98. /package/{lib → src/lib}/tooltip/TooltipPlacement.d.ts +0 -0
  99. /package/{lib → src/lib}/tooltip/TooltipTrigger.d.ts +0 -0
  100. /package/{lib → src/lib}/tooltip/index.d.ts +0 -0
package/package.json CHANGED
@@ -1,31 +1,34 @@
1
1
  {
2
2
  "name": "@bcrumbs.net/bc-ui",
3
3
  "description": "The UI components of Bread Crumbs portals",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "keyword": [
6
6
  "bcrumbs",
7
7
  "bc-ui"
8
8
  ],
9
9
  "peerDependencies": {
10
- "react": "17.0.2",
10
+ "react": "18.3.1",
11
11
  "@emotion/react": "11.5.0",
12
12
  "@emotion/styled": "11.3.0",
13
- "styled-components": "^4.3.2",
14
- "classnames": "^2.3.1",
15
- "react-router-dom": "^5.2.0"
13
+ "@radix-ui/themes": "^3.1.5",
14
+ "@radix-ui/react-icons": "^1.3.2"
16
15
  },
17
16
  "dependencies": {
17
+ "react-date-range": "^2.0.1",
18
18
  "react-loader-spinner": "^4.0.0",
19
19
  "react-dropzone": "^3.13.4",
20
20
  "react-custom-scrollbars": "^4.2.1",
21
- "react-tagsinput": "^3.19.0",
22
21
  "react-toastify": "^8.2.0",
23
- "@tippyjs/react": "^4.1.0"
22
+ "@tippyjs/react": "^4.1.0",
23
+ "recharts": "2.1.12"
24
+ },
25
+ "devDependencies": {
26
+ "@types/react-date-range": "^1.4.9"
24
27
  },
25
28
  "author": {
26
29
  "name": "Ahmad Mhaish"
27
30
  },
28
- "main": "./index.umd.js",
29
31
  "module": "./index.esm.js",
30
- "typings": "./index.d.ts"
31
- }
32
+ "type": "module",
33
+ "main": "./index.esm.js"
34
+ }
@@ -3,6 +3,7 @@ export * from './lib/textbox/bctextbox';
3
3
  export * from './lib/dropList/bcdrop-list';
4
4
  export * from './lib/checkbox/bccheckbox';
5
5
  export * from './lib/navigation/bcnavigation';
6
+ export * from './lib/navigation/types';
6
7
  export * from './lib/text/bctext';
7
8
  export * from './lib/table/bctable';
8
9
  export * from './lib/searchbox/bcsearchbox';
@@ -16,11 +17,33 @@ export * from './lib/addButton/bcadd-button';
16
17
  export * from './lib/progress';
17
18
  export * from './lib/dropZone';
18
19
  export * from './lib/tooltip';
20
+ export * from './lib/layout';
21
+ export * from './lib/line';
22
+ export * from './lib/dropdown';
23
+ export * from './lib/dropdown/types';
24
+ export * from './lib/dropdown/DropdownList';
25
+ export * from './lib/skeleton';
26
+ export * from './lib/seperator';
27
+ export * from './lib/avatar';
28
+ export * from './lib/inputTags';
29
+ export * from './lib/utils';
30
+ export * from './lib/radioButton';
31
+ export * from './lib/charts/pieChart';
32
+ export * from './lib/charts/barLineChart';
33
+ export * from './lib/dateRangePicker';
34
+ export * from './lib/InputWithSuggestions';
35
+ export * from './lib/textArea';
19
36
  export * from './lib/button/bcbutton';
37
+ export * from './lib/button/types';
20
38
  export * from './lib/block/bcblock';
21
39
  export * from './lib/hooks/withEnterAnimation';
22
40
  export * from './lib/hooks/useForm';
23
- export * from './lib/hooks/useForm/fieldsTypes';
24
41
  export * from './lib/hooks/useForm/validationConstant';
25
42
  export * from './lib/hooks/useInterval';
43
+ export * from './lib/hooks/useUrlState';
44
+ export * from './lib/hooks/useDropdownClickOutside';
45
+ export * from './lib/hooks/usePolling';
46
+ export * from './lib/hooks/useDebounce';
47
+ export * from './lib/hooks/useWindowSize';
48
+ export * from './lib/hooks/useInterval';
26
49
  export * from './lib/constants';
@@ -0,0 +1,42 @@
1
+ import React, { ChangeEvent, ReactElement } from 'react';
2
+ import IconType from '../constants/IconType';
3
+ import { AvatarContentProps } from '../avatar';
4
+ import { InputHeight } from '../constants';
5
+ export type SuggestionValue = string | number;
6
+ type SuggestionContent = {
7
+ icon?: IconType;
8
+ avatar?: AvatarContentProps;
9
+ text?: string;
10
+ description?: string | null;
11
+ role?: string | null;
12
+ };
13
+ export type Suggestion = {
14
+ value: SuggestionValue;
15
+ content: SuggestionContent;
16
+ hidden?: boolean;
17
+ hideRightSide?: boolean;
18
+ };
19
+ /**
20
+ * This component is used to add input with suggestions in the application
21
+ */
22
+ export type BCInputWithSuggestionsProps = {
23
+ suggestions: Suggestion[];
24
+ onChange?: (value?: string) => void;
25
+ onBlur?: (ev: ChangeEvent<HTMLInputElement>) => void;
26
+ value?: SuggestionValue;
27
+ height?: InputHeight;
28
+ name?: string;
29
+ dataId?: string | number;
30
+ placeholder?: string;
31
+ error?: string;
32
+ rightSide?: (id: string | number, value: SuggestionValue) => ReactElement;
33
+ dataTestid?: string;
34
+ isStringValue?: boolean;
35
+ appendInput?: (ev?: ChangeEvent<HTMLInputElement>) => void;
36
+ onDropdownStateChange?: (options: {
37
+ hidden: boolean;
38
+ }) => void;
39
+ onItemPicked?: (item: Suggestion) => void;
40
+ };
41
+ export declare const BCInputWithSuggestions: React.ForwardRefExoticComponent<BCInputWithSuggestionsProps & React.RefAttributes<HTMLInputElement>>;
42
+ export {};
@@ -2,10 +2,11 @@ import { ChangeEvent } from 'react';
2
2
  export interface BCAddButtonProps {
3
3
  className?: string;
4
4
  placeholder?: string;
5
- btnContent?: string;
6
5
  onChange: (ev: ChangeEvent<HTMLInputElement>) => void;
7
6
  value?: string;
8
7
  onSubmit: () => void;
9
8
  disabled?: boolean;
9
+ isLoading?: boolean;
10
+ rtl?: boolean;
10
11
  }
11
- export declare const BCAddButton: ({ className, placeholder, value, onSubmit, onChange, }: 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;
@@ -0,0 +1,19 @@
1
+ import Color from '../constants/Color';
2
+ export declare enum AvatarSize {
3
+ S = 28,
4
+ M = 36,
5
+ L = 42,
6
+ XXL = 72
7
+ }
8
+ export type AvatarContentProps = {
9
+ url?: string | null;
10
+ text?: string;
11
+ color?: string;
12
+ textColor?: Color;
13
+ };
14
+ export type AvatarProps = AvatarContentProps & {
15
+ size?: AvatarSize;
16
+ className?: string;
17
+ showTooltip?: boolean;
18
+ };
19
+ export declare function BCAvatar({ url, text, color, size, className, textColor, showTooltip, }: AvatarProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { LegacyRef, MouseEvent, ReactElement } from 'react';
2
+ import { ButtonSize } from '../constants';
3
+ export interface BCButtonProps {
4
+ className?: string;
5
+ onClick: (event: MouseEvent<HTMLButtonElement>) => void;
6
+ onSubClick?: (key: string) => void;
7
+ text: string | ReactElement;
8
+ text2?: string;
9
+ type?: 'button' | 'submit' | 'reset' | undefined;
10
+ disabled?: boolean;
11
+ loading?: boolean;
12
+ icon?: string | ReactElement;
13
+ hasDropList?: boolean;
14
+ refProp?: LegacyRef<HTMLButtonElement>;
15
+ onClick2?: () => void;
16
+ buttonSize?: ButtonSize;
17
+ buttonType?: 'primary-btn' | 'sec-btn' | 'rounded-btn';
18
+ loadingIconPath?: string;
19
+ }
20
+ export interface BCButtonState {
21
+ showDropdown: boolean;
22
+ }
23
+ export declare const BCButton: ({ className, onClick, text, disabled, loading, icon, refProp, hasDropList, onClick2, text2, type, buttonSize, buttonType, loadingIconPath, }: BCButtonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
24
+ export default BCButton;
@@ -0,0 +1,19 @@
1
+ export declare enum HTMLButtonType {
2
+ BUTTON = "button",
3
+ SUBMIT = "submit"
4
+ }
5
+ export declare enum ButtonType {
6
+ DARK = "dark",
7
+ PRIMARY = "primary",
8
+ SECONDARY = "secondary",
9
+ GHOST = "ghost",
10
+ DANGER = "danger",
11
+ DANGER_LIGHT = "dangerLight",
12
+ GREEN = "green",
13
+ BURNING_ORANGE = "burningOrange",
14
+ COLD_FUSION = "coldFusion",
15
+ COLD_FUSION01 = "coldFusion01",
16
+ DAGOBAH_FOREST = "dagobahForest",
17
+ WHITE = "white",
18
+ BORDERED_WHITE = "bordered_white"
19
+ }
@@ -0,0 +1,28 @@
1
+ import { XAxisProps, YAxisProps, TooltipProps } from 'recharts';
2
+ import { ValueType, NameType } from 'recharts/types/component/DefaultTooltipContent';
3
+ import { ContentType, Formatter } from 'recharts/types/component/DefaultLegendContent';
4
+ import { BarPropsType, LineProps } from './types';
5
+ interface IProps {
6
+ data: any[];
7
+ percentage?: number;
8
+ xAxisProps: XAxisProps;
9
+ tooltipProps?: TooltipProps<ValueType, NameType>;
10
+ lineProps?: LineProps;
11
+ barProps: BarPropsType;
12
+ yAxisProps?: YAxisProps;
13
+ endYaxisProps?: YAxisProps;
14
+ height?: number;
15
+ legendProps?: {
16
+ content?: ContentType;
17
+ formatter?: Formatter;
18
+ };
19
+ primaryColor?: string;
20
+ secondaryColor?: string;
21
+ barColor?: string;
22
+ rtl?: boolean;
23
+ showGrid?: boolean;
24
+ showYAxis?: boolean;
25
+ showLegend?: boolean;
26
+ }
27
+ export declare function BCBarLineChart({ data, percentage, tooltipProps, xAxisProps, lineProps, barProps, yAxisProps, endYaxisProps, height, legendProps, primaryColor, secondaryColor, barColor, rtl, showGrid, showYAxis, showLegend }: IProps): import("@emotion/react/jsx-runtime").JSX.Element;
28
+ export {};
@@ -0,0 +1,10 @@
1
+ import { DataKey } from "recharts/types/util/types";
2
+ import { LineProps as RechartsLineProps } from "recharts";
3
+ export type AxisPropType = "number" | "category" | undefined;
4
+ export type LineProps = RechartsLineProps & {
5
+ ref?: undefined;
6
+ };
7
+ export type BarPropsType = {
8
+ dataKey: DataKey<any>;
9
+ fill?: string;
10
+ };
@@ -0,0 +1,12 @@
1
+ type DataPropsType = {
2
+ value: number;
3
+ color?: string;
4
+ offset?: number;
5
+ };
6
+ type MiniPiePropsType = {
7
+ data: DataPropsType[];
8
+ width?: number;
9
+ height?: number;
10
+ };
11
+ export declare function BCMiniPie({ data, width, height }: MiniPiePropsType): import("@emotion/react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,6 @@
1
+ export declare const BoxShadow: {
2
+ S: string;
3
+ M: string;
4
+ L: string;
5
+ };
6
+ export default BoxShadow;
@@ -0,0 +1,73 @@
1
+ export declare enum Color {
2
+ INHERIT = "inherit",
3
+ PRIMARY = "#006466",
4
+ PRIMARY_LIGHTER = "#95D5B2",
5
+ PRIMARY_DARKER = "#065A60",
6
+ SECONDARY = "#4e4f4f",
7
+ SECONDARY_LIGHT = "#9b9b9b",
8
+ SECONDARY_LIGHT_HOVER = "#191919",
9
+ LIGHT_COLOR = "#ccdbd5",
10
+ DANGER_COLOR = "#b52e2e",
11
+ SUCCESS_COLOR = "#2eb583",
12
+ CONTROLS_COLOR = "#fff",
13
+ FONT_COLOR = "#000",
14
+ ACCENT10 = "rgba(89, 111, 255, 0.1)",
15
+ PRIMARY90 = "rgba(0, 100, 102, 0.9)",
16
+ PRIMARY80 = "rgba(0, 100, 102, 0.8)",
17
+ PRIMARY60 = "rgba(0, 100, 102, 0.6)",
18
+ PRIMARY40 = "rgba(0, 100, 102, 0.4)",
19
+ PRIMARY30 = "rgba(0, 100, 102, 0.3)",
20
+ PRIMARY20 = "rgba(0, 100, 102, 0.2)",
21
+ PRIMARY10 = "rgba(0, 100, 102, 0.1)",
22
+ PRIMARY05 = "rgba(0, 100, 102, 0.05)",
23
+ PRIMARY_LIGHTER90 = "rgba(149, 213, 178, 0.9)",
24
+ PRIMARY_LIGHTER80 = "rgba(149, 213, 178, 0.8)",
25
+ PRIMARY_LIGHTER60 = "rgba(149, 213, 178, 0.6)",
26
+ PRIMARY_LIGHTER40 = "rgba(149, 213, 178, 0.4)",
27
+ PRIMARY_LIGHTER30 = "rgba(149, 213, 178, 0.3)",
28
+ PRIMARY_LIGHTER20 = "rgba(149, 213, 178, 0.2)",
29
+ PRIMARY_LIGHTER10 = "rgba(149, 213, 178, 0.1)",
30
+ PRIMARY_LIGHTER05 = "rgba(149, 213, 178, 0.05)",
31
+ SECONDARY90 = "rgb(106, 107, 131, 0.9)",
32
+ SECONDARY80 = "rgb(106, 107, 131, 0.8)",
33
+ SECONDARY70 = "rgb(106, 107, 131, 0.7)",
34
+ SECONDARY60 = "rgb(106, 107, 131, 0.6)",
35
+ SECONDARY50 = "rgb(106, 107, 131, 0.5)",
36
+ SECONDARY40 = "rgb(106, 107, 131, 0.4)",
37
+ SECONDARY30 = "rgb(106, 107, 131, 0.3)",
38
+ SECONDARY20 = "rgb(106, 107, 131, 0.2)",
39
+ SECONDARY10 = "rgb(106, 107, 131, 0.1)",
40
+ SECONDARY05 = "rgb(106, 107, 131, 0.05)",
41
+ GREY_LIGHT_BORDER = "#e4e4e4",
42
+ GREY_BORDER = "#D9D9D9",
43
+ GREY_TEXT_COLOR = "#727272",
44
+ PRIMARY_DARKER80 = "rgb(6, 90, 96, 0.8)",
45
+ DAGOBAH_FOREST = "#003333",
46
+ CHROME_ORANGE = "#FF9900",
47
+ CHROME_ORANGE20 = "rgba(255, 153, 0, 0.2)",
48
+ RED_HOT_HOOD = "#FF3300",
49
+ MR_WOLF = "#330033",
50
+ RED_HOT_HOOD50 = "rgba(255,51,0,0.5)",
51
+ COLD_FUSION = "#6666FF",
52
+ BLUEBERRY = "#330066",
53
+ HOT_MAGENTA = "#FF3366",
54
+ BURNING_ORANGE = "#FF6600",
55
+ LEMON_YELLOW = "#FFCC00",
56
+ LASER_YELLOW = "#FFFF00",
57
+ KRYPTONITE_GREEN = "#CCFF00",
58
+ GREEN = "#66FF66",
59
+ DARK_GREEN = "#148643",
60
+ CRAZY_CYAN = "#66FFFF",
61
+ EXOPLANET_BLUE = "#66CCFF",
62
+ DARK_BLUE = "#457578",
63
+ LIGHT_BLUE = "#e0f3e8",
64
+ PURPLE = "#9999FF",
65
+ PURPLE_RAIN = "#9966FF",
66
+ VIOLET = "#CC66FF",
67
+ AEROSMITH_PINK = "#FF66FF",
68
+ WARNING_DOWNLOAD = "rgba(255, 153, 0, 0.1)",
69
+ GREY_WHITE = "#f0f1f5",
70
+ SLIDER_DOT = "#dededf",
71
+ ASSETS_PLAN_COLOR = "#35354C"
72
+ }
73
+ export default Color;
@@ -0,0 +1,7 @@
1
+ export interface BCDropListOptionsType {
2
+ icon?: string;
3
+ text: string;
4
+ styleClass?: string;
5
+ value: string;
6
+ note?: string;
7
+ }
@@ -0,0 +1,14 @@
1
+ export declare enum DropdownSize {
2
+ S = "S",
3
+ M = "M",
4
+ L = "L",
5
+ XL = "XL"
6
+ }
7
+ export declare enum DropdownListWidth {
8
+ XXS = 90,
9
+ XS = 120,
10
+ S = 190,
11
+ M = 220,
12
+ L = 240,
13
+ XL = 360
14
+ }
@@ -3,12 +3,12 @@ export declare enum IconType {
3
3
  color = "color",
4
4
  colorPalette = "colorPalette",
5
5
  group = "group",
6
- user = "user",
6
+ user = "fa fa-user-circle-o",
7
7
  users = "users",
8
8
  folderMinus = "folderMinus",
9
9
  folderPlus = "folderPlus",
10
10
  close = "fa fa-times",
11
- chevronDown = "chevronDown",
11
+ chevronDown = "fa fa-chevron-down",
12
12
  chevronUpSmall = "chevronUpSmall",
13
13
  chevronDownSmall = "chevronDownSmall",
14
14
  userPlus = "userPlus",
@@ -24,14 +24,14 @@ export declare enum IconType {
24
24
  checkmarkUnchecked = "checkmarkUnchecked",
25
25
  checkmarkUncheckedEmpty = "checkmarkUncheckedEmpty",
26
26
  checkmark = "checkmark",
27
- chevronRightSmall = "chevronRightSmall",
28
- chevronLeftRight = "chevronLeftRight",
27
+ chevronRightSmall = "fa fa-chevron-right",
28
+ chevronLeftRight = "fa fa-chevron-left",
29
29
  back = "back",
30
30
  name = "name",
31
31
  flag = "flag",
32
32
  globe = "globe",
33
33
  search = "search",
34
- settings = "settings",
34
+ settings = "fa fa-sliders",
35
35
  grid = "grid",
36
36
  columns = "columns",
37
37
  set = "set",
@@ -48,7 +48,7 @@ export declare enum IconType {
48
48
  share1 = "share1",
49
49
  share2 = "share2",
50
50
  chevronLeft = "chevronLeft",
51
- help = "help",
51
+ help = "fa fa-question-circle",
52
52
  mail = "mail",
53
53
  upload = "upload",
54
54
  menu = "menu",
@@ -144,7 +144,7 @@ export declare enum IconType {
144
144
  pauseWithCircle = "pauseWithCircle",
145
145
  replay = "replay",
146
146
  chevronRight = "chevronRight",
147
- feed = "feed",
147
+ feedback = "fa fa-comment",
148
148
  list = "list",
149
149
  repeat = "repeat",
150
150
  refreshccw = "refreshccw",
@@ -182,6 +182,12 @@ export declare enum IconType {
182
182
  plus = "fa fa-plus-square-o",
183
183
  image = "fa fa-file-image-o",
184
184
  externalLink = "fa fa-external-link",
185
- link = "fa fa-link"
185
+ link = "fa fa-link",
186
+ logout = "fa fa-sign-out",
187
+ roadmap = "fa fa-road",
188
+ changelog = "fa fa-refresh",
189
+ timeoutline = "fa fa-clock-o",
190
+ profile = "fa fa-user",
191
+ tags = "fa fa-tags"
186
192
  }
187
193
  export default IconType;
@@ -0,0 +1,16 @@
1
+ export declare enum InputHeight {
2
+ M = "M",
3
+ L = "L",
4
+ XL = "XL"
5
+ }
6
+ export declare const HeightValues: {
7
+ M: {
8
+ height: string;
9
+ };
10
+ L: {
11
+ height: string;
12
+ };
13
+ XL: {
14
+ height: string;
15
+ };
16
+ };
@@ -1,7 +1,7 @@
1
1
  export declare const LineHeight: {
2
2
  10: string;
3
3
  12: string;
4
- 16: string;
4
+ 14: string;
5
5
  18: string;
6
6
  22: string;
7
7
  26: string;
@@ -0,0 +1,6 @@
1
+ export declare enum LogoSize {
2
+ S = 18,
3
+ M = 36,
4
+ XL = 72
5
+ }
6
+ export default LogoSize;
@@ -1,7 +1,7 @@
1
1
  export declare enum TextSize {
2
2
  XXS = 10,
3
3
  XS = 12,
4
- S = 16,
4
+ S = 14,
5
5
  M = 18,
6
6
  L = 22,
7
7
  XL = 26,
@@ -8,3 +8,7 @@ export * from './TextStyle';
8
8
  export * from './TextWeight';
9
9
  export * from './WhiteSpace';
10
10
  export * from './ButtonSize';
11
+ export * from './DroplistSizes';
12
+ export * from './LogoSize';
13
+ export * from './Droplist';
14
+ export * from './InputHeight';
@@ -0,0 +1,3 @@
1
+ import { StaticRange } from 'react-date-range';
2
+ declare const staticRanges: StaticRange[];
3
+ export default staticRanges;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { DateRangePicker } from 'react-date-range';
3
+ import 'react-date-range/dist/styles.css';
4
+ import 'react-date-range/dist/theme/default.css';
5
+ declare const StyledDateRange: import("@emotion/styled").StyledComponent<import("react-date-range").DateRangePickerProps & {
6
+ theme?: import("@emotion/react").Theme | undefined;
7
+ }, {}, {
8
+ ref?: import("react").Ref<DateRangePicker> | undefined;
9
+ }>;
10
+ export default StyledDateRange;
@@ -0,0 +1,30 @@
1
+ import { Locale } from 'date-fns';
2
+ export type Range = {
3
+ startDate?: Date;
4
+ endDate?: Date;
5
+ color?: string;
6
+ key?: string;
7
+ autoFocus?: boolean;
8
+ disabled?: boolean;
9
+ showDateDisplay?: boolean;
10
+ label?: string;
11
+ };
12
+ export declare enum DateRangePosition {
13
+ START = "start",
14
+ END = "end"
15
+ }
16
+ export type DateRangePickerPropsType = {
17
+ className?: string;
18
+ buttonClassName?: string;
19
+ onApply: (range: Range) => void;
20
+ range: Range;
21
+ minDate?: Date;
22
+ maxDate?: Date;
23
+ position?: DateRangePosition;
24
+ withoutIcon?: boolean;
25
+ withChevron?: boolean;
26
+ disabled?: boolean;
27
+ locale?: Locale;
28
+ rtl?: boolean;
29
+ };
30
+ export declare function BCDateRangePicker({ className, onApply, range, minDate, maxDate, position, buttonClassName, withoutIcon, withChevron, disabled, locale, rtl, }: DateRangePickerPropsType): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { ButtonSize, BCDropListOptionsType } from '../constants';
3
+ export interface BCDropListProps {
4
+ className?: string;
5
+ selected?: string;
6
+ options: BCDropListOptionsType[];
7
+ onSelectOption: (value?: string) => void;
8
+ noEmpty?: boolean;
9
+ emptyText?: string;
10
+ placeholder?: string;
11
+ buttonSize?: ButtonSize;
12
+ rtl?: boolean;
13
+ icon?: React.ReactNode;
14
+ }
15
+ export declare const BCDropList: ({ className, selected, options, onSelectOption, noEmpty, placeholder, emptyText, buttonSize, rtl, icon, }: BCDropListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
16
+ export default BCDropList;
@@ -0,0 +1,57 @@
1
+ import React from 'react';
2
+ import { TooltipPlacement } from '../../../tooltip';
3
+ import { DropdownSize } from '../../../constants';
4
+ export declare const SizeValues: {
5
+ S: {
6
+ height: number;
7
+ padding: string;
8
+ marginBottom: number;
9
+ };
10
+ M: {
11
+ height: number;
12
+ padding: string;
13
+ marginBottom: number;
14
+ };
15
+ L: {
16
+ height: number;
17
+ padding: string;
18
+ marginBottom: number;
19
+ };
20
+ XL: {
21
+ height: number;
22
+ padding: string;
23
+ marginBottom: number;
24
+ };
25
+ };
26
+ export type DropDownItemStyleProps = {
27
+ value: string | number;
28
+ selected?: boolean;
29
+ tmpSelected?: boolean;
30
+ size: DropdownSize;
31
+ disabled?: boolean;
32
+ itemAsLink?: boolean;
33
+ borderRadius?: number;
34
+ disableHover?: boolean;
35
+ hideBackgroundColorOnSelected?: boolean;
36
+ };
37
+ export type DropDownItemProps = {
38
+ value: string | number;
39
+ children?: React.ReactElement[];
40
+ selected?: boolean;
41
+ disabled?: boolean;
42
+ tooltipText?: string;
43
+ tooltipTextPlacement?: TooltipPlacement;
44
+ tmpSelected?: boolean;
45
+ size: DropdownSize;
46
+ onClick?: (value: string | number) => void;
47
+ onMouseDown?: (value: string | number, e: React.MouseEvent) => void;
48
+ onMouseEnter?: () => void;
49
+ onMouseLeave?: () => void;
50
+ itemAsLink?: boolean;
51
+ className?: string;
52
+ showTooltipOnDisabled?: boolean;
53
+ borderRadius?: number;
54
+ getRef?: (ref: HTMLDivElement | null) => void;
55
+ hideBackgroundColorOnSelected?: boolean;
56
+ };
57
+ export declare function DropdownListItem({ value, children, size, onClick, onMouseDown, onMouseEnter, onMouseLeave, selected, disabled, tmpSelected, itemAsLink, tooltipText, className, tooltipTextPlacement, showTooltipOnDisabled, borderRadius, hideBackgroundColorOnSelected, getRef, }: DropDownItemProps): import("@emotion/react/jsx-runtime").JSX.Element;