digitinary-ui 1.0.69 → 1.0.71

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 (231) hide show
  1. package/dist/components/ActionDropdown/index.d.ts +8 -0
  2. package/dist/components/ArenaLabel/ArenaLabel.d.ts +7 -0
  3. package/dist/components/BarChart/BarChart.d.ts +20 -0
  4. package/dist/components/Carousel/Carousel.d.ts +11 -0
  5. package/dist/components/Chip/Chip.d.ts +1 -1
  6. package/dist/components/Chips/Chips.d.ts +9 -0
  7. package/dist/components/CounterComponent/CounterComponent.d.ts +16 -0
  8. package/dist/components/DonutChart/DonutChart.d.ts +31 -0
  9. package/dist/components/DoubleBarChart/DoubleBarChart.d.ts +21 -0
  10. package/dist/components/DropDown/DropDown.d.ts +28 -0
  11. package/dist/components/EllipsisTextWithTooltip/EllipsisTextWithTooltip.d.ts +7 -0
  12. package/dist/components/FieldArray/FieldArray.d.ts +10 -0
  13. package/dist/components/FieldArray/FieldArrayHook.d.ts +13 -0
  14. package/dist/components/FileUploader/index.d.ts +18 -0
  15. package/dist/components/FileUploader/viewFiles.d.ts +8 -0
  16. package/dist/components/InputRange/index.d.ts +13 -0
  17. package/dist/components/JsonEditor/JsonEditor.d.ts +3 -0
  18. package/dist/components/JsonField/JsonField.d.ts +11 -0
  19. package/dist/components/LineChart/LineChart.d.ts +22 -0
  20. package/dist/components/MultiSelectWithChips/MultiSelectWithChips.d.ts +26 -0
  21. package/dist/components/NewDate/ArenaDatePicker.d.ts +0 -0
  22. package/dist/components/NewDate/types.d.ts +0 -0
  23. package/dist/components/NoDataFallback/NoDataFallback.d.ts +9 -0
  24. package/dist/components/PhoneNumber/CountryFlags/index.d.ts +253 -0
  25. package/dist/components/PhoneNumber/CountryList.d.ts +6 -0
  26. package/dist/components/PhoneNumber/DropDown/DropDown.d.ts +36 -0
  27. package/dist/components/PhoneNumber/PhoneNumber.d.ts +21 -0
  28. package/dist/components/PhoneNumber/index.d.ts +2 -0
  29. package/dist/components/PieChart/PieChart.d.ts +17 -0
  30. package/dist/components/SectionHead/SectionHead.d.ts +11 -0
  31. package/dist/components/SimpleCollapseSection/SimpleCollapseSection.d.ts +11 -0
  32. package/dist/components/SimpleLabelValue/SimpleLabelValue.d.ts +11 -0
  33. package/dist/components/SimpleLabelValue/index.d.ts +1 -0
  34. package/dist/components/StackedBarChart/StackedBarChart.d.ts +26 -0
  35. package/dist/components/Stepper/Step/Step.d.ts +16 -0
  36. package/dist/components/Stepper/Stepper.d.ts +16 -0
  37. package/dist/components/TimeTracker/TimeTracker.d.ts +15 -0
  38. package/dist/components/Tooltip/Tooltip.d.ts +8 -1
  39. package/dist/components/Uploader/Uploader.d.ts +24 -0
  40. package/dist/components/index.d.ts +28 -0
  41. package/dist/icons/AccessDeniedIcon.d.ts +3 -0
  42. package/dist/icons/AccountActivation.d.ts +3 -0
  43. package/dist/icons/AccountChartIcon.d.ts +3 -0
  44. package/dist/icons/AccountDarkIcon.d.ts +3 -0
  45. package/dist/icons/AccountIcon.d.ts +3 -0
  46. package/dist/icons/AccountStatement.d.ts +3 -0
  47. package/dist/icons/ActivateAccount.d.ts +3 -0
  48. package/dist/icons/ActivateCard.d.ts +3 -0
  49. package/dist/icons/ActivateCardIcon.d.ts +3 -0
  50. package/dist/icons/ActiveIcon.d.ts +3 -0
  51. package/dist/icons/Add.d.ts +3 -0
  52. package/dist/icons/AddIcon.d.ts +3 -0
  53. package/dist/icons/AlertErrorIcon.d.ts +3 -3
  54. package/dist/icons/AlertInfoIcon.d.ts +3 -3
  55. package/dist/icons/AlertSuccessIcon.d.ts +3 -3
  56. package/dist/icons/AlertWarningIcon.d.ts +3 -3
  57. package/dist/icons/ApproveIcon.d.ts +3 -0
  58. package/dist/icons/ArenaLogo.d.ts +3 -0
  59. package/dist/icons/ArrowBottom.d.ts +1 -1
  60. package/dist/icons/ArrowIcon.d.ts +3 -0
  61. package/dist/icons/ArrowLeft.d.ts +1 -1
  62. package/dist/icons/ArrowRight.d.ts +1 -1
  63. package/dist/icons/ArrowUp.d.ts +3 -0
  64. package/dist/icons/ArrowUpIcon.d.ts +1 -1
  65. package/dist/icons/AssignIcon.d.ts +3 -0
  66. package/dist/icons/BackArrow.d.ts +3 -0
  67. package/dist/icons/BackArrowArabic.d.ts +3 -0
  68. package/dist/icons/Buyer.d.ts +3 -0
  69. package/dist/icons/Calendar.d.ts +1 -1
  70. package/dist/icons/CardIcon.d.ts +3 -0
  71. package/dist/icons/CardsIcon.d.ts +3 -0
  72. package/dist/icons/Check.d.ts +3 -0
  73. package/dist/icons/CheckMark.d.ts +1 -1
  74. package/dist/icons/ClaimIcon.d.ts +3 -0
  75. package/dist/icons/ClearField.d.ts +1 -1
  76. package/dist/icons/ClipBoard.d.ts +3 -0
  77. package/dist/icons/CloseAccount.d.ts +3 -0
  78. package/dist/icons/CloseIcon.d.ts +1 -1
  79. package/dist/icons/ConsentCharIcon.d.ts +3 -0
  80. package/dist/icons/ContactIcon.d.ts +3 -0
  81. package/dist/icons/CopyInput.d.ts +3 -0
  82. package/dist/icons/CustomerApproved.d.ts +3 -0
  83. package/dist/icons/CustomerRejected.d.ts +3 -0
  84. package/dist/icons/DangerIcon.d.ts +3 -0
  85. package/dist/icons/DefaultIcon.d.ts +3 -0
  86. package/dist/icons/DeleteIcon.d.ts +3 -0
  87. package/dist/icons/DeleteOutlinedIcon.d.ts +3 -0
  88. package/dist/icons/DisabledIcon.d.ts +3 -0
  89. package/dist/icons/Document.d.ts +3 -0
  90. package/dist/icons/DoubleLeftArrow.d.ts +1 -1
  91. package/dist/icons/DoubleRightArrow.d.ts +1 -1
  92. package/dist/icons/DownloadIcon.d.ts +3 -0
  93. package/dist/icons/EditIcon.d.ts +3 -0
  94. package/dist/icons/EmptyAccount.d.ts +3 -0
  95. package/dist/icons/EmptyActivityStatus.d.ts +3 -0
  96. package/dist/icons/EmptyCard.d.ts +3 -0
  97. package/dist/icons/EmptyCardIcon.d.ts +3 -0
  98. package/dist/icons/EmptyChannelsIcon.d.ts +3 -0
  99. package/dist/icons/EmptyDashboard.d.ts +3 -0
  100. package/dist/icons/EmptyFinance.d.ts +3 -0
  101. package/dist/icons/EmptyFinanceIcon.d.ts +3 -0
  102. package/dist/icons/EmptyLiabilitiesIcon.d.ts +3 -0
  103. package/dist/icons/EmptyRequest.d.ts +3 -0
  104. package/dist/icons/EmptyResults.d.ts +3 -0
  105. package/dist/icons/EmptySpendingIcon.d.ts +3 -0
  106. package/dist/icons/ErrorIcon.d.ts +3 -0
  107. package/dist/icons/ExcelIcon.d.ts +1 -1
  108. package/dist/icons/EyeIcon.d.ts +3 -0
  109. package/dist/icons/Fail.d.ts +3 -0
  110. package/dist/icons/FilterIcon.d.ts +3 -0
  111. package/dist/icons/Finance.d.ts +3 -0
  112. package/dist/icons/GeneralIcon.d.ts +3 -0
  113. package/dist/icons/GridView.d.ts +3 -0
  114. package/dist/icons/HidePasswordIcon.d.ts +1 -1
  115. package/dist/icons/HistoryIcon.d.ts +3 -0
  116. package/dist/icons/HomeIcon.d.ts +3 -0
  117. package/dist/icons/InactiveCardIcon.d.ts +3 -0
  118. package/dist/icons/InactiveIcon.d.ts +3 -0
  119. package/dist/icons/InfoCircle.d.ts +3 -0
  120. package/dist/icons/InfoIcon.d.ts +3 -3
  121. package/dist/icons/InfoIconOnboard.d.ts +3 -0
  122. package/dist/icons/InfoSquare.d.ts +3 -0
  123. package/dist/icons/InstallmentsPay.d.ts +3 -0
  124. package/dist/icons/IntoUser.d.ts +3 -0
  125. package/dist/icons/Kwd.d.ts +3 -0
  126. package/dist/icons/LaptopIcon.d.ts +3 -0
  127. package/dist/icons/LeadActivities.d.ts +3 -0
  128. package/dist/icons/LeadDocuments.d.ts +3 -0
  129. package/dist/icons/LeadInterestIcon.d.ts +3 -0
  130. package/dist/icons/LeadOwnerIcon.d.ts +3 -0
  131. package/dist/icons/LeadSourceIcon.d.ts +3 -0
  132. package/dist/icons/LeadStagesIcon.d.ts +3 -0
  133. package/dist/icons/LeadStatus.d.ts +3 -0
  134. package/dist/icons/LeftArrowIcon.d.ts +1 -1
  135. package/dist/icons/LinkIcon.d.ts +3 -0
  136. package/dist/icons/LoaderIcon.d.ts +1 -1
  137. package/dist/icons/LogoutIcon.d.ts +3 -0
  138. package/dist/icons/ManageCardIcon.d.ts +3 -0
  139. package/dist/icons/ManageDebitCard.d.ts +3 -0
  140. package/dist/icons/MasterCardDiamond.d.ts +3 -0
  141. package/dist/icons/MessageExclamation.d.ts +3 -0
  142. package/dist/icons/MessageSquareIcon.d.ts +3 -0
  143. package/dist/icons/Minus.d.ts +3 -0
  144. package/dist/icons/MoreSquare.d.ts +3 -0
  145. package/dist/icons/MoreSquareIcon.d.ts +3 -0
  146. package/dist/icons/MurabahaCars.d.ts +3 -0
  147. package/dist/icons/MurabahaRealEstate.d.ts +3 -0
  148. package/dist/icons/NoAvatar.d.ts +3 -0
  149. package/dist/icons/NoDocuments.d.ts +3 -0
  150. package/dist/icons/OnboardingError.d.ts +3 -0
  151. package/dist/icons/OnboardingPending.d.ts +3 -0
  152. package/dist/icons/OnboardingReject.d.ts +3 -0
  153. package/dist/icons/OnboardingSuccess.d.ts +3 -0
  154. package/dist/icons/OpenAccount.d.ts +3 -0
  155. package/dist/icons/OpenDeposit.d.ts +3 -0
  156. package/dist/icons/PayToCardIcon.d.ts +3 -0
  157. package/dist/icons/PaymentCard.d.ts +3 -0
  158. package/dist/icons/PaymentChartIcon.d.ts +3 -0
  159. package/dist/icons/PaymentDarkIcon.d.ts +3 -0
  160. package/dist/icons/PaymentIcon.d.ts +3 -0
  161. package/dist/icons/PdfIcon.d.ts +1 -1
  162. package/dist/icons/PenIcon.d.ts +3 -0
  163. package/dist/icons/PlusIcon.d.ts +3 -0
  164. package/dist/icons/PointIcon.d.ts +3 -0
  165. package/dist/icons/Profile.d.ts +3 -0
  166. package/dist/icons/ProfileIcon.d.ts +3 -0
  167. package/dist/icons/ReassignIcon.d.ts +3 -0
  168. package/dist/icons/Refresh.d.ts +3 -0
  169. package/dist/icons/RefreshIcon.d.ts +3 -0
  170. package/dist/icons/RejectIcon.d.ts +3 -0
  171. package/dist/icons/Reload.d.ts +3 -0
  172. package/dist/icons/ReportLost.d.ts +3 -0
  173. package/dist/icons/ReportStolen.d.ts +3 -0
  174. package/dist/icons/RequestCardIcon.d.ts +3 -0
  175. package/dist/icons/ResetPasswordIcon.d.ts +3 -0
  176. package/dist/icons/ResolvedIcon.d.ts +3 -0
  177. package/dist/icons/ResubmitIcon.d.ts +3 -0
  178. package/dist/icons/ReturnIcon.d.ts +3 -0
  179. package/dist/icons/RightArrowIcon.d.ts +1 -1
  180. package/dist/icons/RotatingCircle.d.ts +3 -0
  181. package/dist/icons/SearchIcon.d.ts +1 -1
  182. package/dist/icons/SelectDownArrowIcon.d.ts +3 -0
  183. package/dist/icons/SelectFieldDownArrow.d.ts +1 -1
  184. package/dist/icons/SelectFieldUpArrow.d.ts +1 -1
  185. package/dist/icons/SendCardPinIcon.d.ts +3 -0
  186. package/dist/icons/ServerBlock.d.ts +3 -0
  187. package/dist/icons/Settings.d.ts +3 -0
  188. package/dist/icons/ShowPasswordIcon.d.ts +1 -1
  189. package/dist/icons/SmallArrow.d.ts +3 -0
  190. package/dist/icons/SmallArrowRight.d.ts +3 -0
  191. package/dist/icons/SortIcon.d.ts +1 -1
  192. package/dist/icons/Sound.d.ts +3 -0
  193. package/dist/icons/StandingOrderIcon.d.ts +3 -0
  194. package/dist/icons/SubmitIcon.d.ts +3 -0
  195. package/dist/icons/Success.d.ts +3 -0
  196. package/dist/icons/SuccessIcon.d.ts +3 -0
  197. package/dist/icons/Swap.d.ts +3 -0
  198. package/dist/icons/TableView.d.ts +3 -0
  199. package/dist/icons/Tawaroq.d.ts +3 -0
  200. package/dist/icons/TimeCircle.d.ts +3 -0
  201. package/dist/icons/TopOpenLeadsIcon.d.ts +3 -0
  202. package/dist/icons/TrackingIcon.d.ts +3 -0
  203. package/dist/icons/TransferBetweenOwnAccountIcon.d.ts +3 -0
  204. package/dist/icons/TransferFromCardIcon.d.ts +3 -0
  205. package/dist/icons/TransferIcon.d.ts +3 -0
  206. package/dist/icons/TransferInternalIcon.d.ts +3 -0
  207. package/dist/icons/TransferInternational.d.ts +3 -0
  208. package/dist/icons/TransferInternationalIcon.d.ts +3 -0
  209. package/dist/icons/TransferLocalIcon.d.ts +3 -0
  210. package/dist/icons/ViewAccount.d.ts +3 -0
  211. package/dist/icons/ViewCreditCard.d.ts +3 -0
  212. package/dist/icons/ViewDebitCard.d.ts +3 -0
  213. package/dist/icons/ViewFinanceIcon.d.ts +3 -0
  214. package/dist/icons/ViewIcon.d.ts +3 -0
  215. package/dist/icons/VisaPlatinum.d.ts +3 -0
  216. package/dist/icons/VisaSignature.d.ts +3 -0
  217. package/dist/icons/WaitList.d.ts +3 -0
  218. package/dist/icons/WarningIcon.d.ts +3 -0
  219. package/dist/icons/WhiteArrowLeft.d.ts +3 -0
  220. package/dist/icons/WhiteList.d.ts +3 -0
  221. package/dist/icons/WordIcon.d.ts +3 -0
  222. package/dist/icons/ZoomIn.d.ts +3 -0
  223. package/dist/icons/ZoomInIcon.d.ts +3 -0
  224. package/dist/icons/ZoomOut.d.ts +3 -0
  225. package/dist/icons/ZoomOutIcon.d.ts +3 -0
  226. package/dist/icons/index.d.ts +179 -0
  227. package/dist/index.js +1 -1
  228. package/dist/index.js.LICENSE.txt +41 -1
  229. package/dist/types/interfaces.d.ts +8 -5
  230. package/dist/types/types.d.ts +6 -1
  231. package/package.json +9 -4
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import './style.scss';
3
+ interface DropdownButtonProps {
4
+ options?: React.ReactNode[];
5
+ customContainer?: HTMLElement;
6
+ }
7
+ declare const ActionDropdown: ({ options, customContainer }: DropdownButtonProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default ActionDropdown;
@@ -0,0 +1,7 @@
1
+ import './style.scss';
2
+ type ArenaLabel = {
3
+ label: string;
4
+ type: 'required' | 'optional';
5
+ };
6
+ declare const ArenaLabel: ({ label, type }: ArenaLabel) => import("react/jsx-runtime").JSX.Element;
7
+ export default ArenaLabel;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import './style.scss';
3
+ type DataItem = {
4
+ name: string;
5
+ value: number;
6
+ color: string;
7
+ };
8
+ type BarChartProps = {
9
+ data: DataItem[];
10
+ className?: string;
11
+ barSize: number;
12
+ width: number;
13
+ height: number;
14
+ selectedItem?: string;
15
+ yAxisFontSize?: string;
16
+ xAxisFontSize?: string;
17
+ yAxisOffset?: number;
18
+ };
19
+ declare const BarChart: React.FC<BarChartProps>;
20
+ export default BarChart;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import './style.scss';
3
+ type CarouselProps = {
4
+ items: JSX.Element[];
5
+ title: string;
6
+ move?: boolean;
7
+ setMove?: (move: boolean) => void;
8
+ className?: string;
9
+ };
10
+ declare const Carousel: React.FC<CarouselProps>;
11
+ export default Carousel;
@@ -1,7 +1,7 @@
1
1
  import { ChipPropsType } from '../../types';
2
2
  import './style.scss';
3
3
  declare const Chip: {
4
- ({ className, color, children, variant, clickable, onClick, onDelete, size, id, }: ChipPropsType): import("react/jsx-runtime").JSX.Element;
4
+ ({ className, color, children, variant, clickable, onClick, onDelete, size, id, type, }: ChipPropsType): import("react/jsx-runtime").JSX.Element;
5
5
  displayName: string;
6
6
  };
7
7
  export default Chip;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import './style.scss';
3
+ interface ChipsProps {
4
+ chips?: string[] | any[];
5
+ onDelete?: (option: string) => void;
6
+ className?: string;
7
+ }
8
+ declare const Chips: React.FC<ChipsProps>;
9
+ export default Chips;
@@ -0,0 +1,16 @@
1
+ import { SizeType } from 'types';
2
+ import './style.scss';
3
+ interface CounterComponentProps {
4
+ label?: string;
5
+ value?: number;
6
+ size?: SizeType;
7
+ onChange?: (value?: number) => void;
8
+ errorMsg?: string;
9
+ required?: boolean;
10
+ disabled?: boolean;
11
+ className?: string;
12
+ minNumber: number;
13
+ maxNumber: number;
14
+ }
15
+ declare const CounterComponent: ({ label, value, size, onChange, errorMsg, required, disabled, className, minNumber, maxNumber, }: CounterComponentProps) => import("react/jsx-runtime").JSX.Element;
16
+ export default CounterComponent;
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import './style.scss';
3
+ type DataItem = {
4
+ name: string;
5
+ value: number;
6
+ fill: string;
7
+ };
8
+ type DonutChartProps = {
9
+ data: DataItem[];
10
+ height?: number;
11
+ width?: number;
12
+ innerRadius?: number;
13
+ outerRadius?: number;
14
+ withPercentage?: boolean;
15
+ dataId?: string;
16
+ fontSize?: string;
17
+ withLegend?: boolean;
18
+ withMoreDetails?: boolean;
19
+ valueFontSize?: string;
20
+ nameFontSize?: string;
21
+ noDataState?: boolean;
22
+ endAngle?: number;
23
+ startAngle?: number;
24
+ dy?: number;
25
+ className?: string;
26
+ innerShapeRadius?: number;
27
+ outerShapeRadius?: number;
28
+ withTooltip?: boolean;
29
+ };
30
+ declare const DonutChart: React.FC<DonutChartProps>;
31
+ export default DonutChart;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './style.scss';
3
+ interface DoubleBarChartProps {
4
+ data: {
5
+ name: string;
6
+ value: number;
7
+ volume: number;
8
+ }[];
9
+ className?: string;
10
+ barSize: number;
11
+ width: number;
12
+ height: number;
13
+ selectedFirstItem: string;
14
+ selectedSeconedItem: string;
15
+ color: {
16
+ first: string;
17
+ seconed: string;
18
+ };
19
+ }
20
+ declare const DoubleBarChart: React.FC<DoubleBarChartProps>;
21
+ export default DoubleBarChart;
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import './style.scss';
3
+ type Option = {
4
+ value: string;
5
+ view: React.ReactNode;
6
+ };
7
+ type Value = {
8
+ item: Object;
9
+ [key: string]: any;
10
+ };
11
+ type DropDownProps = {
12
+ label?: string;
13
+ placeholder?: string;
14
+ options?: Option[];
15
+ value?: Value;
16
+ size?: string;
17
+ setValue?: React.Dispatch<React.SetStateAction<string>>;
18
+ clearable?: boolean;
19
+ errorMessage?: string;
20
+ required?: boolean;
21
+ disabled?: boolean;
22
+ defaultIconTitle?: string;
23
+ showDefaultIcon?: boolean;
24
+ defaultIcon?: React.ReactNode;
25
+ className?: string;
26
+ };
27
+ declare const DropDown: React.FC<DropDownProps>;
28
+ export default DropDown;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface TextWithTooltipProps {
3
+ text: string;
4
+ limit: number;
5
+ }
6
+ declare const EllipsisTextWithTooltip: React.FC<TextWithTooltipProps>;
7
+ export default EllipsisTextWithTooltip;
@@ -0,0 +1,10 @@
1
+ import './style.scss';
2
+ interface FieldArrayProps {
3
+ initialFields: any[];
4
+ fieldsSettings: any[];
5
+ value: any[];
6
+ setValue: (value: any) => void;
7
+ handleDataChanged?: () => void;
8
+ }
9
+ declare const FieldArray: ({ initialFields, fieldsSettings, value, setValue, handleDataChanged, }: FieldArrayProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default FieldArray;
@@ -0,0 +1,13 @@
1
+ type FieldArrayValue = Record<string, string | number | object>;
2
+ interface UseCusFieldArrayProps {
3
+ initialFields: any[];
4
+ value: FieldArrayValue[];
5
+ }
6
+ interface UseCusFieldArrayReturn {
7
+ fields: any[];
8
+ append: (newField: any) => void;
9
+ replace: (index: number, newField: any) => void;
10
+ remove: (index: number) => void;
11
+ }
12
+ declare const useCusFieldArray: ({ value }: UseCusFieldArrayProps) => UseCusFieldArrayReturn;
13
+ export default useCusFieldArray;
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import './style.scss';
3
+ type FileOrUrl = File | string;
4
+ interface FileUploaderProps {
5
+ multiple?: boolean;
6
+ disabled?: boolean;
7
+ accept?: string;
8
+ value: FileOrUrl[] | [];
9
+ onChange: (value: FileOrUrl[]) => void;
10
+ size?: 'small' | 'medium' | 'large';
11
+ label?: JSX.Element | string | number;
12
+ placeholder?: string | number;
13
+ required?: boolean;
14
+ key?: any;
15
+ handleDownload: (value: FileOrUrl) => void;
16
+ }
17
+ declare const FileUploader: ({ multiple, disabled, accept, value, onChange, size, label, placeholder, required, key, handleDownload, }: FileUploaderProps) => import("react/jsx-runtime").JSX.Element;
18
+ export default FileUploader;
@@ -0,0 +1,8 @@
1
+ import './style.scss';
2
+ type FileOrUrl = File | string;
3
+ declare const ViewFiles: ({ files, onChange, handleDownload, }: {
4
+ files: FileOrUrl[];
5
+ onChange: (value: FileOrUrl[]) => void;
6
+ handleDownload: (value: FileOrUrl) => void;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ export default ViewFiles;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import './style.scss';
3
+ interface InputRangeProps {
4
+ value: string;
5
+ onChange: (value: string) => void;
6
+ disabled?: boolean;
7
+ min?: string;
8
+ max?: string;
9
+ label?: JSX.Element | string | number;
10
+ required?: boolean;
11
+ }
12
+ declare const InputRange: ({ value, onChange, disabled, min, max, label, required, }: InputRangeProps) => import("react/jsx-runtime").JSX.Element;
13
+ export default InputRange;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const JsonEditor: React.FC;
3
+ export default JsonEditor;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import './style.scss';
3
+ interface JsonFieldProps {
4
+ json: string;
5
+ setJson: React.Dispatch<React.SetStateAction<string>>;
6
+ title: string;
7
+ disabled?: boolean;
8
+ className?: string;
9
+ }
10
+ declare const JsonField: React.FC<JsonFieldProps>;
11
+ export default JsonField;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import './style.scss';
3
+ type LineData = {
4
+ name: string;
5
+ [key: string]: string | number;
6
+ fill: string | number;
7
+ };
8
+ type LineItem = {
9
+ name: string;
10
+ key: string;
11
+ color: string;
12
+ dotColor: string;
13
+ };
14
+ type LineChartProps = {
15
+ data: LineData[];
16
+ lines: LineItem[];
17
+ height?: number;
18
+ width?: number;
19
+ className?: string;
20
+ };
21
+ declare const LineChartComponent: React.FC<LineChartProps>;
22
+ export default LineChartComponent;
@@ -0,0 +1,26 @@
1
+ import './style.scss';
2
+ interface Option {
3
+ value: string;
4
+ label: string;
5
+ [key: string]: string;
6
+ }
7
+ interface Group {
8
+ groupName?: string;
9
+ list: Option[];
10
+ }
11
+ interface MultiSelectGroupProps {
12
+ label?: string;
13
+ placeholder?: string;
14
+ options: Group[];
15
+ value: Option[];
16
+ setValue: (value: Option | Option[] | null) => void;
17
+ isMultiple?: boolean;
18
+ disabled?: boolean;
19
+ className?: string;
20
+ helperText?: string;
21
+ withSearch?: boolean;
22
+ itemsLabel?: string;
23
+ size?: string;
24
+ }
25
+ export declare const MultiSelectWithChips: ({ label, placeholder, options, value, setValue, isMultiple, disabled, className, helperText, withSearch, itemsLabel, size, }: MultiSelectGroupProps) => import("react/jsx-runtime").JSX.Element;
26
+ export default MultiSelectWithChips;
File without changes
File without changes
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import './style.scss';
3
+ interface NoDataFallbackProps {
4
+ icon: React.ReactNode;
5
+ message?: string;
6
+ className?: string;
7
+ }
8
+ declare const NoDataFallback: React.FC<NoDataFallbackProps>;
9
+ export default NoDataFallback;
@@ -0,0 +1,253 @@
1
+ declare const CountryFlags: {
2
+ AD: string;
3
+ AE: string;
4
+ AF: string;
5
+ AG: string;
6
+ AI: string;
7
+ AL: string;
8
+ AM: string;
9
+ AO: string;
10
+ AQ: string;
11
+ AR: string;
12
+ AS: string;
13
+ AT: string;
14
+ EU: string;
15
+ AU: string;
16
+ AW: string;
17
+ AX: string;
18
+ AZ: string;
19
+ BA: string;
20
+ BB: string;
21
+ BD: string;
22
+ BE: string;
23
+ BF: string;
24
+ BG: string;
25
+ BH: string;
26
+ BI: string;
27
+ BJ: string;
28
+ BL: string;
29
+ BM: string;
30
+ BN: string;
31
+ BO: string;
32
+ BQ: string;
33
+ BR: string;
34
+ BS: string;
35
+ BT: string;
36
+ BV: string;
37
+ BW: string;
38
+ BY: string;
39
+ BZ: string;
40
+ CA: string;
41
+ CC: string;
42
+ CD: string;
43
+ CF: string;
44
+ CG: string;
45
+ CH: string;
46
+ CI: string;
47
+ CK: string;
48
+ CL: string;
49
+ CM: string;
50
+ CN: string;
51
+ CO: string;
52
+ CR: string;
53
+ CU: string;
54
+ CV: string;
55
+ CW: string;
56
+ CX: string;
57
+ CY: string;
58
+ CZ: string;
59
+ DE: string;
60
+ DJ: string;
61
+ DK: string;
62
+ DM: string;
63
+ DO: string;
64
+ DZ: string;
65
+ EC: string;
66
+ EE: string;
67
+ EG: string;
68
+ EH: string;
69
+ ER: string;
70
+ ES: string;
71
+ ET: string;
72
+ FI: string;
73
+ FJ: string;
74
+ FK: string;
75
+ FM: string;
76
+ FO: string;
77
+ FR: string;
78
+ GA: string;
79
+ GB: string;
80
+ GD: string;
81
+ GE: string;
82
+ GF: string;
83
+ GG: string;
84
+ GH: string;
85
+ GI: string;
86
+ GL: string;
87
+ GM: string;
88
+ GN: string;
89
+ GP: string;
90
+ GQ: string;
91
+ GR: string;
92
+ GS: string;
93
+ GT: string;
94
+ GU: string;
95
+ GW: string;
96
+ GY: string;
97
+ HK: string;
98
+ HM: string;
99
+ HN: string;
100
+ HR: string;
101
+ HT: string;
102
+ HU: string;
103
+ ID: string;
104
+ IE: string;
105
+ IM: string;
106
+ IN: string;
107
+ IO: string;
108
+ IQ: string;
109
+ IR: string;
110
+ IS: string;
111
+ IT: string;
112
+ JE: string;
113
+ JM: string;
114
+ JO: string;
115
+ JP: string;
116
+ KE: string;
117
+ KG: string;
118
+ KH: string;
119
+ KI: string;
120
+ KM: string;
121
+ KN: string;
122
+ KP: string;
123
+ KR: string;
124
+ KW: string;
125
+ KY: string;
126
+ KZ: string;
127
+ LA: string;
128
+ LB: string;
129
+ LC: string;
130
+ LI: string;
131
+ LK: string;
132
+ LR: string;
133
+ LS: string;
134
+ LT: string;
135
+ LU: string;
136
+ LV: string;
137
+ LY: string;
138
+ MA: string;
139
+ MC: string;
140
+ MD: string;
141
+ ME: string;
142
+ MF: string;
143
+ MG: string;
144
+ MH: string;
145
+ MK: string;
146
+ ML: string;
147
+ MM: string;
148
+ MN: string;
149
+ MO: string;
150
+ MP: string;
151
+ MQ: string;
152
+ MR: string;
153
+ MS: string;
154
+ MT: string;
155
+ MU: string;
156
+ MV: string;
157
+ MW: string;
158
+ MX: string;
159
+ MY: string;
160
+ MZ: string;
161
+ NA: string;
162
+ NC: string;
163
+ NE: string;
164
+ NF: string;
165
+ NG: string;
166
+ NI: string;
167
+ NL: string;
168
+ NO: string;
169
+ NP: string;
170
+ NR: string;
171
+ NU: string;
172
+ NZ: string;
173
+ OM: string;
174
+ PA: string;
175
+ PE: string;
176
+ PF: string;
177
+ PG: string;
178
+ PH: string;
179
+ PK: string;
180
+ PL: string;
181
+ PM: string;
182
+ PN: string;
183
+ PR: string;
184
+ PS: string;
185
+ PT: string;
186
+ PW: string;
187
+ PY: string;
188
+ QA: string;
189
+ RE: string;
190
+ RO: string;
191
+ RS: string;
192
+ RU: string;
193
+ RW: string;
194
+ SA: string;
195
+ SB: string;
196
+ SC: string;
197
+ SD: string;
198
+ SE: string;
199
+ SG: string;
200
+ SH: string;
201
+ SI: string;
202
+ SJ: string;
203
+ SK: string;
204
+ SL: string;
205
+ SM: string;
206
+ SN: string;
207
+ SO: string;
208
+ SR: string;
209
+ SS: string;
210
+ ST: string;
211
+ SV: string;
212
+ SX: string;
213
+ SY: string;
214
+ SZ: string;
215
+ TC: string;
216
+ TD: string;
217
+ TF: string;
218
+ TG: string;
219
+ TH: string;
220
+ TJ: string;
221
+ TK: string;
222
+ TL: string;
223
+ TM: string;
224
+ TN: string;
225
+ TO: string;
226
+ TR: string;
227
+ TT: string;
228
+ TV: string;
229
+ TW: string;
230
+ TZ: string;
231
+ UA: string;
232
+ UG: string;
233
+ UM: string;
234
+ US: string;
235
+ UY: string;
236
+ UZ: string;
237
+ VA: string;
238
+ VC: string;
239
+ VE: string;
240
+ VG: string;
241
+ VI: string;
242
+ VN: string;
243
+ VU: string;
244
+ WF: string;
245
+ WS: string;
246
+ XK: string;
247
+ YE: string;
248
+ YT: string;
249
+ ZA: string;
250
+ ZM: string;
251
+ ZW: string;
252
+ };
253
+ export default CountryFlags;
@@ -0,0 +1,6 @@
1
+ export declare const countryList: {
2
+ country: string;
3
+ currency: string[];
4
+ countryCode: string;
5
+ countryCodePhone: number[];
6
+ }[];
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import './style.scss';
3
+ import { SizeType } from 'types';
4
+ type Option = {
5
+ value: string | object;
6
+ view: React.ReactNode;
7
+ };
8
+ export type countryType = {
9
+ countryCodePhone: string;
10
+ icon: React.ReactElement | null;
11
+ item: {
12
+ country: string;
13
+ countryCode: string;
14
+ countryCodePhone: number[];
15
+ currency: string[];
16
+ };
17
+ };
18
+ type DropDownProps = {
19
+ label?: string;
20
+ placeholder?: string;
21
+ options?: Option[];
22
+ value?: countryType;
23
+ size?: SizeType;
24
+ setValue?: (value: object | string) => void;
25
+ clearable?: boolean;
26
+ errorMessage?: string;
27
+ required?: boolean;
28
+ disabled?: boolean;
29
+ defaultIconTitle?: string;
30
+ showDefaultIcon?: boolean;
31
+ defaultIcon?: React.ReactNode;
32
+ className?: string;
33
+ filterFunc?: (value: string) => void;
34
+ };
35
+ declare const DropDown: React.FC<DropDownProps>;
36
+ export default DropDown;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './style.scss';
3
+ import { SizeType } from 'types';
4
+ interface Props {
5
+ phoneNumPlaceholder: string;
6
+ size?: SizeType;
7
+ clearable?: boolean;
8
+ required?: boolean;
9
+ label?: string;
10
+ optional?: boolean;
11
+ defaultIconTitle?: string;
12
+ disabled?: boolean;
13
+ countryCodeValue: string | number;
14
+ phoneNumberValue: string | number;
15
+ onCountryCodeChange: (value: string | number) => void;
16
+ onPhoneNumberChange: (value: string | number) => void;
17
+ errorMessage?: string;
18
+ className?: string;
19
+ }
20
+ declare const PhoneNumber: React.FC<Props>;
21
+ export default PhoneNumber;
@@ -0,0 +1,2 @@
1
+ export * as CountryFlags from './CountryFlags';
2
+ export * as countryList from './CountryList';
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import './style.scss';
3
+ type DataItem = {
4
+ name: string;
5
+ value: number;
6
+ fill: string;
7
+ };
8
+ type PieChartProps = {
9
+ data: DataItem[];
10
+ height?: number;
11
+ width?: number;
12
+ outerRadius?: number;
13
+ noDataState?: boolean;
14
+ className?: string;
15
+ };
16
+ declare const PieCharts: React.FC<PieChartProps>;
17
+ export default PieCharts;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import './style.scss';
3
+ import './style.scss';
4
+ type SectionHeadProps = {
5
+ text: string;
6
+ closeFunction?: () => void;
7
+ children?: JSX.Element;
8
+ className?: string;
9
+ };
10
+ declare const SectionHead: React.FC<SectionHeadProps>;
11
+ export default SectionHead;