@kashifd/jwero-components 0.7.80 → 0.7.82

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 (169) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.es.js +63667 -0
  3. package/dist/index.umd.js +1056 -0
  4. package/dist/src/App.d.ts +6 -0
  5. package/dist/src/components/JweroAccordian.d.ts +7 -0
  6. package/dist/src/components/JweroBreadcrumbs.d.ts +14 -0
  7. package/dist/src/components/JweroChip.d.ts +26 -0
  8. package/dist/src/components/JweroDialogHeader.d.ts +29 -0
  9. package/dist/src/components/JweroPicker.d.ts +5 -0
  10. package/dist/src/components/JweroPopper.d.ts +14 -0
  11. package/dist/src/components/JweroRadio.d.ts +10 -0
  12. package/dist/src/components/JweroSidebar.d.ts +23 -0
  13. package/dist/src/components/JweroToggleButton.d.ts +9 -0
  14. package/dist/src/components/JweroTypography.d.ts +71 -0
  15. package/dist/src/components/jwero_actions_button/index.d.ts +22 -0
  16. package/dist/src/components/jwero_alerts/index.d.ts +15 -0
  17. package/dist/src/components/jwero_avatars/index.d.ts +21 -0
  18. package/dist/src/components/jwero_badger/index.d.ts +11 -0
  19. package/dist/src/components/jwero_button_menu/components/JweroMenu.d.ts +35 -0
  20. package/dist/src/components/jwero_button_menu/index.d.ts +24 -0
  21. package/dist/src/components/jwero_charts/components/AreaChart.d.ts +9 -0
  22. package/dist/src/components/jwero_charts/components/BarChart.d.ts +10 -0
  23. package/dist/src/components/jwero_charts/components/Funnel.d.ts +4 -0
  24. package/dist/src/components/jwero_charts/components/FunnelChart.d.ts +9 -0
  25. package/dist/src/components/jwero_charts/components/LineChart.d.ts +9 -0
  26. package/dist/src/components/jwero_charts/components/MultipleLineChart.d.ts +11 -0
  27. package/dist/src/components/jwero_charts/components/NumericChart.d.ts +9 -0
  28. package/dist/src/components/jwero_charts/components/PieChart.d.ts +8 -0
  29. package/dist/src/components/jwero_charts/components/RacingBarChart.d.ts +9 -0
  30. package/dist/src/components/jwero_charts/components/RadialChart.d.ts +14 -0
  31. package/dist/src/components/jwero_charts/index.d.ts +26 -0
  32. package/dist/src/components/jwero_checkbox/index.d.ts +10 -0
  33. package/dist/src/components/jwero_confirmation_dialog/index.d.ts +44 -0
  34. package/dist/src/components/jwero_custom_field/index.d.ts +30 -0
  35. package/dist/src/components/jwero_data_card/components/CardAreaGraph.d.ts +7 -0
  36. package/dist/src/components/jwero_data_card/components/NumberAnimation.d.ts +8 -0
  37. package/dist/src/components/jwero_data_card/index.d.ts +54 -0
  38. package/dist/src/components/jwero_data_table/components/JweroPagination.d.ts +10 -0
  39. package/dist/src/components/jwero_data_table/components/JweroRowsPerPage.d.ts +10 -0
  40. package/dist/src/components/jwero_data_table/components/JweroTable.d.ts +29 -0
  41. package/dist/src/components/jwero_data_table/index.d.ts +21 -0
  42. package/dist/src/components/jwero_date_filter/components/DateFiltersMenu.d.ts +9 -0
  43. package/dist/src/components/jwero_date_filter/helper/dateFilterList.d.ts +5 -0
  44. package/dist/src/components/jwero_date_filter/index.d.ts +11 -0
  45. package/dist/src/components/jwero_dialog_footer/index.d.ts +17 -0
  46. package/dist/src/components/jwero_drawer/index.d.ts +45 -0
  47. package/dist/src/components/jwero_empty_state/index.d.ts +26 -0
  48. package/dist/src/components/jwero_filter_operator/components/HighlightLabelChip.d.ts +12 -0
  49. package/dist/src/components/jwero_filter_operator/index.d.ts +10 -0
  50. package/dist/src/components/jwero_media_preview/components/MediaPreviewDisplay.d.ts +2 -0
  51. package/dist/src/components/jwero_media_preview/components/MediaPreviewHeader.d.ts +5 -0
  52. package/dist/src/components/jwero_media_preview/index.d.ts +2 -0
  53. package/dist/src/components/jwero_navigation/drawer.d.ts +4 -0
  54. package/dist/src/components/jwero_navigation/icons/Analytics.d.ts +2 -0
  55. package/dist/src/components/jwero_navigation/icons/Automations.d.ts +2 -0
  56. package/dist/src/components/jwero_navigation/icons/CRM.d.ts +2 -0
  57. package/dist/src/components/jwero_navigation/icons/Catalog.d.ts +2 -0
  58. package/dist/src/components/jwero_navigation/icons/DigitalGold.d.ts +2 -0
  59. package/dist/src/components/jwero_navigation/icons/Ecommerce.d.ts +2 -0
  60. package/dist/src/components/jwero_navigation/icons/Inventory.d.ts +2 -0
  61. package/dist/src/components/jwero_navigation/icons/JweroOne.d.ts +2 -0
  62. package/dist/src/components/jwero_navigation/icons/Loyality.d.ts +2 -0
  63. package/dist/src/components/jwero_navigation/icons/Socials.d.ts +2 -0
  64. package/dist/src/components/jwero_navigation/icons/chats.d.ts +2 -0
  65. package/dist/src/components/jwero_navigation/index.d.ts +23 -0
  66. package/dist/src/components/jwero_note_card/components/JweroNoteCardHeader.d.ts +11 -0
  67. package/dist/src/components/jwero_note_card/helper/AttachmentPreview.d.ts +10 -0
  68. package/dist/src/components/jwero_note_card/helper/convertDate.d.ts +1 -0
  69. package/dist/src/components/jwero_note_card/helper/getFileType.d.ts +3 -0
  70. package/dist/src/components/jwero_note_card/index.d.ts +14 -0
  71. package/dist/src/components/jwero_note_editor/components/AttachmentPreview.d.ts +10 -0
  72. package/dist/src/components/jwero_note_editor/components/AttachmentsSection.d.ts +8 -0
  73. package/dist/src/components/jwero_note_editor/components/NoteEditorFooter.d.ts +12 -0
  74. package/dist/src/components/jwero_note_editor/components/NoteEditorHeader.d.ts +6 -0
  75. package/dist/src/components/jwero_note_editor/helpers/bytesToMegabytes.d.ts +4 -0
  76. package/dist/src/components/jwero_note_editor/helpers/fileLimits.d.ts +7 -0
  77. package/dist/src/components/jwero_note_editor/helpers/getFileType.d.ts +1 -0
  78. package/dist/src/components/jwero_note_editor/helpers/getRandomId.d.ts +1 -0
  79. package/dist/src/components/jwero_note_editor/index.d.ts +25 -0
  80. package/dist/src/components/jwero_order_card/index.d.ts +30 -0
  81. package/dist/src/components/jwero_phone_input/index.d.ts +9 -0
  82. package/dist/src/components/jwero_plan_expiry/components/JweroPlanExpiryBody.d.ts +8 -0
  83. package/dist/src/components/jwero_plan_expiry/components/JweroPlanExpiryFooter.d.ts +2 -0
  84. package/dist/src/components/jwero_plan_expiry/components/JweroPlanExpiryHeader.d.ts +2 -0
  85. package/dist/src/components/jwero_plan_expiry/index.d.ts +8 -0
  86. package/dist/src/components/jwero_plan_expiry/svg/PlanExpiredSvg.d.ts +2 -0
  87. package/dist/src/components/jwero_primary_button/index.d.ts +25 -0
  88. package/dist/src/components/jwero_product_card/index.d.ts +24 -0
  89. package/dist/src/components/jwero_search_box/index.d.ts +28 -0
  90. package/dist/src/components/jwero_snackbar/index.d.ts +17 -0
  91. package/dist/src/components/jwero_status_chip/index.d.ts +23 -0
  92. package/dist/src/components/jwero_tabs/index.d.ts +30 -0
  93. package/dist/src/components/jwero_task_card/components/CustomAvatarGroup.d.ts +10 -0
  94. package/dist/src/components/jwero_task_card/components/TaskCardEditDelete.d.ts +13 -0
  95. package/dist/src/components/jwero_task_card/components/TeamMembersDisplay.d.ts +9 -0
  96. package/dist/src/components/jwero_task_card/helpers/checkIfOverdue.d.ts +14 -0
  97. package/dist/src/components/jwero_task_card/helpers/getInitials.d.ts +1 -0
  98. package/dist/src/components/jwero_task_card/index.d.ts +39 -0
  99. package/dist/src/components/jwero_theme_switch/components/dark_light_mode_switch/index.d.ts +5 -0
  100. package/dist/src/components/jwero_theme_switch/index.d.ts +3 -0
  101. package/dist/src/components/jwero_tooltip/index.d.ts +15 -0
  102. package/dist/src/components/jwero_verticaltabs/helper/convertToUnderscore.d.ts +1 -0
  103. package/dist/src/components/jwero_verticaltabs/index.d.ts +24 -0
  104. package/dist/src/components/jwero_view_options/index.d.ts +23 -0
  105. package/dist/src/consts/typography.d.ts +80 -0
  106. package/dist/src/icons/AddIcon.d.ts +5 -0
  107. package/dist/src/icons/AnalyticsIcon.d.ts +2 -0
  108. package/dist/src/icons/AttachIcon.d.ts +2 -0
  109. package/dist/src/icons/BoldIcon.d.ts +2 -0
  110. package/dist/src/icons/CalendarIcon.d.ts +5 -0
  111. package/dist/src/icons/CallIcon.d.ts +5 -0
  112. package/dist/src/icons/CheckedCheckboxIcon.d.ts +4 -0
  113. package/dist/src/icons/CheckedRadioIcon.d.ts +4 -0
  114. package/dist/src/icons/ChevronDown.d.ts +4 -0
  115. package/dist/src/icons/CloseIcon.d.ts +5 -0
  116. package/dist/src/icons/CloseMedia.d.ts +2 -0
  117. package/dist/src/icons/CompletedIcon.d.ts +2 -0
  118. package/dist/src/icons/CrownEmoji.d.ts +4 -0
  119. package/dist/src/icons/DecrementChipIcon.d.ts +2 -0
  120. package/dist/src/icons/DecrementIcon.d.ts +2 -0
  121. package/dist/src/icons/DeleteIcon.d.ts +4 -0
  122. package/dist/src/icons/DiamondIcon.d.ts +2 -0
  123. package/dist/src/icons/DropdownIcon.d.ts +2 -0
  124. package/dist/src/icons/EditIcon.d.ts +6 -0
  125. package/dist/src/icons/ErrorIcon.d.ts +4 -0
  126. package/dist/src/icons/EyeIcon.d.ts +2 -0
  127. package/dist/src/icons/FacebookFooterIcon.d.ts +2 -0
  128. package/dist/src/icons/ImproveChipIcon.d.ts +2 -0
  129. package/dist/src/icons/IncrementIcon.d.ts +2 -0
  130. package/dist/src/icons/InfoAlertIcon.d.ts +4 -0
  131. package/dist/src/icons/InfoIcon.d.ts +2 -0
  132. package/dist/src/icons/InprogressIcon.d.ts +2 -0
  133. package/dist/src/icons/InstagramFooterIcon.d.ts +2 -0
  134. package/dist/src/icons/InventoryIcon.d.ts +2 -0
  135. package/dist/src/icons/ItalicIcon.d.ts +2 -0
  136. package/dist/src/icons/LineThroughIcon.d.ts +2 -0
  137. package/dist/src/icons/LinkedInFooterIcon.d.ts +2 -0
  138. package/dist/src/icons/MailIcon.d.ts +5 -0
  139. package/dist/src/icons/PendingIcon.d.ts +2 -0
  140. package/dist/src/icons/QuotationsIcon.d.ts +2 -0
  141. package/dist/src/icons/RedCalendarIcon.d.ts +2 -0
  142. package/dist/src/icons/SalesAppIcon.d.ts +2 -0
  143. package/dist/src/icons/SearchIcon.d.ts +2 -0
  144. package/dist/src/icons/ShoppingCart.d.ts +2 -0
  145. package/dist/src/icons/StockIcon.d.ts +4 -0
  146. package/dist/src/icons/StockStatus.d.ts +2 -0
  147. package/dist/src/icons/SuccessIcon.d.ts +4 -0
  148. package/dist/src/icons/ToggleOffIcon.d.ts +4 -0
  149. package/dist/src/icons/ToggleOnIcon.d.ts +4 -0
  150. package/dist/src/icons/TripleDotsIcon.d.ts +2 -0
  151. package/dist/src/icons/TruckIcon.d.ts +2 -0
  152. package/dist/src/icons/UncheckedCheckboxIcon.d.ts +4 -0
  153. package/dist/src/icons/UncheckedRadioIcon.d.ts +4 -0
  154. package/dist/src/icons/UnderlineIcon.d.ts +2 -0
  155. package/dist/src/icons/WarningIcon.d.ts +4 -0
  156. package/dist/src/icons/WebIcon.d.ts +4 -0
  157. package/dist/src/icons/YoutubeFooterIcon.d.ts +2 -0
  158. package/dist/src/index.d.ts +44 -0
  159. package/dist/src/main.d.ts +1 -0
  160. package/dist/src/theme/JweroTheme.d.ts +179 -0
  161. package/dist/src/theme/ThemeProvider.d.ts +10 -0
  162. package/dist/src/utils/customDateFormatting.d.ts +5 -0
  163. package/dist/src/utils/formatServerValue.d.ts +1 -0
  164. package/dist/src/utils/numbers/formatNumbers.d.ts +1 -0
  165. package/dist/src/utils/reduceLargeText.d.ts +1 -0
  166. package/dist/src/vite-env.d.ts +1 -0
  167. package/dist/style.css +1 -0
  168. package/dist/vite.svg +1 -0
  169. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ declare function App(): import("react/jsx-runtime").JSX.Element;
2
+ export default App;
3
+ export declare const Test2: () => import("react/jsx-runtime").JSX.Element;
4
+ export declare const TabsTest: () => import("react/jsx-runtime").JSX.Element;
5
+ export declare const JweroMenuTest: () => import("react/jsx-runtime").JSX.Element;
6
+ export declare const TableTest: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ type JweroAccordionProps = {
2
+ className?: string;
3
+ label?: string;
4
+ description?: string;
5
+ };
6
+ declare const JweroAccordion: ({ className, label, description, }: JweroAccordionProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default JweroAccordion;
@@ -0,0 +1,14 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+
3
+ type BreadcrumbItem = {
4
+ label: string;
5
+ value: string;
6
+ };
7
+ type BreadcrumbsProps = {
8
+ items: BreadcrumbItem[];
9
+ onClick: (item: BreadcrumbItem) => void;
10
+ selectedItem?: string | null;
11
+ sx?: SxProps<Theme>;
12
+ };
13
+ declare const JweroBreadcrumbs: ({ items, onClick, selectedItem, sx, }: BreadcrumbsProps) => import("react/jsx-runtime").JSX.Element;
14
+ export default JweroBreadcrumbs;
@@ -0,0 +1,26 @@
1
+ import { default as React } from 'react';
2
+ import { Theme, SxProps } from '@mui/material';
3
+ import { CustomTypographyProps } from './JweroTypography';
4
+ import { JweroUserAvatarType } from './jwero_avatars';
5
+
6
+ type JweroChipsType = {
7
+ boxSx?: SxProps<Theme>;
8
+ icon?: React.ReactNode;
9
+ iconPosition?: "before" | "after";
10
+ avatar?: boolean;
11
+ avatarPosition?: "before" | "after";
12
+ radioButton?: boolean;
13
+ radioButtonPosition?: "before" | "after";
14
+ checkBox?: boolean;
15
+ checkBoxPosition?: "before" | "after";
16
+ label?: string;
17
+ onClick?: (value: string) => void;
18
+ onClose?: () => void;
19
+ labelProps?: Omit<CustomTypographyProps, "children">;
20
+ isChecked?: boolean;
21
+ value?: string;
22
+ avatarProps?: Omit<JweroUserAvatarType, "children">;
23
+ customLabel?: React.ReactNode;
24
+ };
25
+ declare const JweroChip: ({ boxSx, icon, iconPosition, avatar, avatarPosition, radioButton, radioButtonPosition, checkBox, checkBoxPosition, value, label, onClick, onClose, isChecked, labelProps, avatarProps, customLabel, }: JweroChipsType) => import("react/jsx-runtime").JSX.Element;
26
+ export default JweroChip;
@@ -0,0 +1,29 @@
1
+ import { ReactNode } from 'react';
2
+ import { SxProps, Theme } from '@mui/material';
3
+
4
+ type JweroDialogHeaderType = {
5
+ title: string;
6
+ subTitle?: string;
7
+ onClose?: () => void;
8
+ titleComponent?: ReactNode;
9
+ titleIconProps?: {
10
+ icon?: ReactNode;
11
+ position?: "start" | "end";
12
+ sx?: SxProps<Theme>;
13
+ };
14
+ endIconProps?: {
15
+ flag: boolean;
16
+ onClickFunction?: () => void;
17
+ icon?: ReactNode;
18
+ };
19
+ stepProps?: {
20
+ flag: boolean;
21
+ custom_name?: string;
22
+ total_steps?: number;
23
+ current_step?: number;
24
+ };
25
+ sx?: SxProps;
26
+ titleSx?: SxProps;
27
+ };
28
+ declare const JweroDialogHeader: ({ title, subTitle, onClose, titleComponent, titleIconProps, endIconProps, stepProps, sx, titleSx, }: JweroDialogHeaderType) => import("react/jsx-runtime").JSX.Element;
29
+ export default JweroDialogHeader;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+
3
+ type ToggleSwitchProps = {};
4
+ declare const ToggleSwitch: React.FC<ToggleSwitchProps>;
5
+ export default ToggleSwitch;
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ import { PopperProps, SxProps } from '@mui/material';
3
+
4
+ type JweroPopperType = {
5
+ children: React.ReactNode;
6
+ open: boolean;
7
+ anchorEl: null | HTMLDivElement | HTMLElement;
8
+ placement?: PopperProps["placement"];
9
+ onClose: () => void;
10
+ boxSx?: SxProps;
11
+ popperProps?: PopperProps;
12
+ };
13
+ declare const JweroPopper: ({ children, open, placement, onClose, anchorEl, boxSx, popperProps, }: JweroPopperType) => import("react/jsx-runtime").JSX.Element;
14
+ export default JweroPopper;
@@ -0,0 +1,10 @@
1
+ import { SxProps, Theme } from '@mui/system';
2
+
3
+ type JweroRadioType = {
4
+ checked: boolean;
5
+ onChange?: (checked: boolean) => void;
6
+ sx?: SxProps<Theme>;
7
+ disabled?: boolean;
8
+ };
9
+ declare const JweroRadio: ({ checked, onChange, sx, disabled, }: JweroRadioType) => import("react/jsx-runtime").JSX.Element;
10
+ export default JweroRadio;
@@ -0,0 +1,23 @@
1
+ import { ReactNode } from 'react';
2
+ import { SxProps, Theme } from '@mui/material';
3
+
4
+ type NavigationDataType = {
5
+ label: string;
6
+ value: string;
7
+ redirect_to: string;
8
+ icon?: ReactNode;
9
+ badge_props?: {
10
+ type?: "positive";
11
+ flag?: boolean;
12
+ badge_count?: number;
13
+ };
14
+ };
15
+ type JweroSidebarType = {
16
+ currentPage: string;
17
+ primaryNavigationData: NavigationDataType[];
18
+ secondaryNavigationData: NavigationDataType[];
19
+ onClick?: (option: NavigationDataType) => void;
20
+ boxSx?: SxProps<Theme>;
21
+ };
22
+ declare const JweroSidebar: ({ currentPage, primaryNavigationData, secondaryNavigationData, onClick, boxSx, }: JweroSidebarType) => import("react/jsx-runtime").JSX.Element;
23
+ export default JweroSidebar;
@@ -0,0 +1,9 @@
1
+ import { SxProps, Theme } from '@mui/system';
2
+
3
+ type JweroToggleButtonProps = {
4
+ checked: boolean;
5
+ onChange?: (checked: boolean) => void;
6
+ sx?: SxProps<Theme>;
7
+ };
8
+ declare const JweroToggleButton: ({ checked, onChange, sx, }: JweroToggleButtonProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default JweroToggleButton;
@@ -0,0 +1,71 @@
1
+ import { ReactNode } from 'react';
2
+ import { Theme, SxProps } from '@mui/material';
3
+
4
+ export type CustomTypographyProps = {
5
+ variant?: "xxxlSemibold" | "xxlSemibold" | "xxlMedium" | "xxlRegular" | "xlBold" | "xlSemibold" | "xlRegular" | "lMedium" | "lRegular" | "xlMedium";
6
+ children: ReactNode;
7
+ onClick?: () => void;
8
+ sx?: SxProps<Theme>;
9
+ };
10
+ declare const typographyStyles: {
11
+ xxxlSemibold: {
12
+ fontSize: string;
13
+ fontWeight: number;
14
+ letterSpacing: string;
15
+ lineHeight: string;
16
+ };
17
+ xxlSemibold: {
18
+ fontSize: string;
19
+ fontWeight: number;
20
+ lineHeight: string;
21
+ };
22
+ xxlMedium: {
23
+ fontSize: string;
24
+ fontWeight: number;
25
+ lineHeight: string;
26
+ };
27
+ xxlRegular: {
28
+ fontSize: string;
29
+ fontWeight: number;
30
+ lineHeight: string;
31
+ };
32
+ xlBold: {
33
+ fontSize: string;
34
+ fontWeight: number;
35
+ letterSpacing: string;
36
+ lineHeight: string;
37
+ };
38
+ xlSemibold: {
39
+ fontSize: string;
40
+ fontWeight: number;
41
+ letterSpacing: string;
42
+ lineHeight: string;
43
+ };
44
+ xlMedium: {
45
+ fontSize: string;
46
+ fontWeight: number;
47
+ letterSpacing: string;
48
+ lineHeight: string;
49
+ };
50
+ xlRegular: {
51
+ fontSize: string;
52
+ fontWeight: number;
53
+ letterSpacing: string;
54
+ lineHeight: string;
55
+ };
56
+ lMedium: {
57
+ fontSize: string;
58
+ fontWeight: number;
59
+ letterSpacing: string;
60
+ lineHeight: string;
61
+ };
62
+ lRegular: {
63
+ fontSize: string;
64
+ fontWeight: number;
65
+ letterSpacing: string;
66
+ lineHeight: string;
67
+ };
68
+ };
69
+ declare const JweroTypography: ({ variant, children, onClick, sx, }: CustomTypographyProps) => import("react/jsx-runtime").JSX.Element;
70
+ export { typographyStyles };
71
+ export default JweroTypography;
@@ -0,0 +1,22 @@
1
+ import { SxProps, PopperProps } from '@mui/material';
2
+ import { MenuOptionType } from '../jwero_button_menu/components/JweroMenu';
3
+
4
+ type ButtonType = {
5
+ label?: string;
6
+ onClick: (e: React.MouseEvent<HTMLElement>) => void;
7
+ tooltip?: string;
8
+ sx?: SxProps;
9
+ labelSx?: SxProps;
10
+ popperProps?: PopperProps;
11
+ };
12
+ type JweroActionsButtonType = {
13
+ primaryButtonProps?: ButtonType;
14
+ secondaryButtonProps?: ButtonType & {
15
+ icon: React.ReactNode;
16
+ };
17
+ options: MenuOptionType[];
18
+ customClose?: false;
19
+ popperProps?: PopperProps;
20
+ };
21
+ declare const JweroActionsButton: ({ primaryButtonProps, secondaryButtonProps, options, customClose, popperProps, }: JweroActionsButtonType) => import("react/jsx-runtime").JSX.Element;
22
+ export default JweroActionsButton;
@@ -0,0 +1,15 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+
3
+ type AlertType = "error" | "warning" | "info" | "success";
4
+ type AlertVariant = "simple" | "description" | "filled";
5
+ export interface AlertComponentProps {
6
+ label: string;
7
+ type: AlertType;
8
+ isClosable?: boolean;
9
+ onClose?: () => void;
10
+ variant: AlertVariant;
11
+ description?: string;
12
+ sx?: SxProps<Theme>;
13
+ }
14
+ declare const JweroAlert: ({ label, type, isClosable, onClose, variant, description, sx, }: AlertComponentProps) => import("react/jsx-runtime").JSX.Element | null;
15
+ export default JweroAlert;
@@ -0,0 +1,21 @@
1
+ export type JweroUserAvatarType = {
2
+ name: string;
3
+ data?: string;
4
+ src?: string;
5
+ size?: "small" | "medium";
6
+ isOnline?: boolean;
7
+ isFollowUp?: boolean;
8
+ isSpam?: boolean;
9
+ customer?: boolean;
10
+ sentiment?: boolean;
11
+ channel?: string;
12
+ showCheckboxOnHover?: boolean;
13
+ onCheckboxClick?: () => void;
14
+ customSize?: number;
15
+ isChecked?: boolean;
16
+ onClick?: () => void;
17
+ avatarTooltip?: string;
18
+ showGradientBackground?: boolean;
19
+ };
20
+ declare const JweroUserAvatar: ({ name, src, size, isOnline, isFollowUp, isSpam, customer, sentiment, channel, showCheckboxOnHover, onCheckboxClick, customSize, isChecked, onClick, avatarTooltip, showGradientBackground, }: JweroUserAvatarType) => import("react/jsx-runtime").JSX.Element;
21
+ export default JweroUserAvatar;
@@ -0,0 +1,11 @@
1
+ import { SxProps } from '@mui/material/styles';
2
+
3
+ export type CustomBadgePropsType = "single" | "multi" | "off" | "formatted";
4
+ export type CustomBadgeProps = {
5
+ type: CustomBadgePropsType;
6
+ count?: number;
7
+ stroke?: boolean;
8
+ sx?: SxProps;
9
+ };
10
+ declare const JweroBadge: ({ type, count, stroke, sx, }: CustomBadgeProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default JweroBadge;
@@ -0,0 +1,35 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ import { ReactNode } from 'react';
3
+ import { CustomTypographyProps } from '../../JweroTypography';
4
+
5
+ type JweroMenuType = {
6
+ boxSx?: SxProps<Theme>;
7
+ menuList?: MenuListType[];
8
+ innerBoxSx?: SxProps<Theme>;
9
+ };
10
+ export type MenuListType = {
11
+ title?: string;
12
+ iconProps?: {
13
+ icon: ReactNode;
14
+ placement: "start" | "end";
15
+ };
16
+ titleSx?: SxProps<Theme>;
17
+ titleProps?: Omit<CustomTypographyProps, "children">;
18
+ options?: MenuOptionType[];
19
+ };
20
+ export type MenuOptionType = {
21
+ value: string;
22
+ label: string;
23
+ onClick?: () => void;
24
+ sx?: SxProps<Theme>;
25
+ iconProps?: {
26
+ icon?: ReactNode;
27
+ placement: "start" | "end";
28
+ };
29
+ labelProps?: Omit<CustomTypographyProps, "children">;
30
+ endIcon?: ReactNode;
31
+ tooltip?: string;
32
+ disable?: boolean;
33
+ };
34
+ declare const JweroMenu: ({ menuList, boxSx, innerBoxSx }: JweroMenuType) => import("react/jsx-runtime").JSX.Element | undefined;
35
+ export default JweroMenu;
@@ -0,0 +1,24 @@
1
+ import { PopperProps, SxProps } from '@mui/material';
2
+ import { ReactNode } from 'react';
3
+ import { CustomTypographyProps } from '../JweroTypography';
4
+ import { MenuListType } from './components/JweroMenu';
5
+
6
+ type JweroButtonMenuType = {
7
+ label?: string;
8
+ onOpenMenu?: () => void;
9
+ customClose?: boolean;
10
+ menuList?: MenuListType[];
11
+ iconProps?: {
12
+ position?: string;
13
+ icon?: ReactNode;
14
+ };
15
+ endIcon?: ReactNode;
16
+ boxSx?: SxProps;
17
+ innerBoxSx?: SxProps;
18
+ labelProps?: Omit<CustomTypographyProps, "children">;
19
+ menuSx?: SxProps;
20
+ popperSx?: SxProps;
21
+ popperProps?: PopperProps;
22
+ };
23
+ declare const JweroButtonMenu: ({ label, onOpenMenu, customClose, menuList, iconProps, endIcon, boxSx, innerBoxSx, labelProps, menuSx, popperSx, popperProps, }: JweroButtonMenuType) => import("react/jsx-runtime").JSX.Element;
24
+ export default JweroButtonMenu;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+
3
+ type AreaChartProps = {
4
+ data: number[];
5
+ labels?: any[];
6
+ name?: any;
7
+ };
8
+ declare const JweroAreaChart: React.FC<AreaChartProps>;
9
+ export default JweroAreaChart;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+
3
+ interface BarChartProps {
4
+ labels: string[];
5
+ data: number[];
6
+ barColor?: string;
7
+ name?: any;
8
+ }
9
+ declare const JweroBarChart: React.FC<BarChartProps>;
10
+ export default JweroBarChart;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+
3
+ declare const FunnelChart: React.FC;
4
+ export default FunnelChart;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+
3
+ type FunnelChartProps = {
4
+ data: number[];
5
+ labels?: string[];
6
+ name?: any;
7
+ };
8
+ declare const JweroFunnelChart: React.FC<FunnelChartProps>;
9
+ export default JweroFunnelChart;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+
3
+ type LineChartProps = {
4
+ labels?: any[];
5
+ data: number[];
6
+ name?: any;
7
+ };
8
+ declare const JweroLineChart: React.FC<LineChartProps>;
9
+ export default JweroLineChart;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+
3
+ type EngagementChartProps = {
4
+ series?: {
5
+ name: string;
6
+ data: number[];
7
+ }[];
8
+ label: any[];
9
+ };
10
+ declare const JweroMultipleLineChart: React.FC<EngagementChartProps>;
11
+ export default JweroMultipleLineChart;
@@ -0,0 +1,9 @@
1
+ import { SxProps } from '@mui/material';
2
+
3
+ type NumericChartProps = {
4
+ data: any;
5
+ labelName: any;
6
+ sx?: SxProps;
7
+ };
8
+ declare const JweroNumericChart: ({ data, sx, labelName, }: NumericChartProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default JweroNumericChart;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+
3
+ type PieChartProps = {
4
+ data?: any[];
5
+ labels?: any[];
6
+ };
7
+ declare const JweroPieChart: React.FC<PieChartProps>;
8
+ export default JweroPieChart;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+
3
+ type RacingBarChartProps = {
4
+ labels?: string[];
5
+ data: number[];
6
+ name?: any;
7
+ };
8
+ declare const JweroRacingBarChart: React.FC<RacingBarChartProps>;
9
+ export default JweroRacingBarChart;
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ import { SxProps, Theme } from '@mui/system';
3
+
4
+ type RadialChartProps = {
5
+ completionRate?: number;
6
+ size?: number;
7
+ labelOptions?: {
8
+ name?: string;
9
+ nameSx?: SxProps<Theme>;
10
+ valueSx?: SxProps<Theme>;
11
+ };
12
+ };
13
+ declare const JweroRadialChart: React.FC<RadialChartProps>;
14
+ export default JweroRadialChart;
@@ -0,0 +1,26 @@
1
+ import { SxProps } from '@mui/material';
2
+
3
+ export type ChartProps = {
4
+ type?: "radial" | "pie" | "racing_bar" | "numeric" | "line" | "funnel" | "bar" | "multiple_line" | "area";
5
+ data: any[];
6
+ label: any[];
7
+ boxSx?: SxProps;
8
+ chartSx?: SxProps;
9
+ NumericChartData?: number;
10
+ completionRate?: number;
11
+ barColor?: string;
12
+ size?: number;
13
+ labelName?: any;
14
+ series?: {
15
+ name: string;
16
+ data: number[];
17
+ }[];
18
+ labelOptions?: {
19
+ name?: string;
20
+ valueSx?: SxProps;
21
+ nameSx?: SxProps;
22
+ };
23
+ numericCharSx?: SxProps;
24
+ };
25
+ declare const JweroCharts: ({ type, NumericChartData, completionRate, data, series, size, chartSx, barColor, label, labelName, labelOptions, numericCharSx }: ChartProps) => import("react/jsx-runtime").JSX.Element;
26
+ export default JweroCharts;
@@ -0,0 +1,10 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+
3
+ type CheckboxProps = {
4
+ checked?: boolean;
5
+ onChange?: (checked: boolean) => void;
6
+ sx?: SxProps<Theme>;
7
+ disabled?: boolean;
8
+ };
9
+ declare const JweroCheckbox: ({ checked, onChange, sx, disabled, }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default JweroCheckbox;
@@ -0,0 +1,44 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ import { JweroCustomFieldType } from '../jwero_custom_field';
3
+
4
+ type ConfirmationDialogType = {
5
+ open: boolean;
6
+ onClose?: () => void;
7
+ title?: string;
8
+ subTitle?: string;
9
+ primaryButtonProps?: {
10
+ flag: boolean;
11
+ buttonType: "positive" | "negative";
12
+ onClick: () => void;
13
+ label: string;
14
+ disabled?: boolean;
15
+ };
16
+ secondaryButtonProps?: {
17
+ flag: boolean;
18
+ buttonType: "positive" | "negative";
19
+ onClick: () => void;
20
+ label: string;
21
+ disabled?: boolean;
22
+ };
23
+ customIconProps?: {
24
+ customIcon?: React.ReactNode;
25
+ customBgColor?: string;
26
+ iconTitle?: string;
27
+ };
28
+ inputFieldProps?: JweroCustomFieldType & {
29
+ flag?: boolean;
30
+ addComponent?: {
31
+ component: ReactNode;
32
+ position: "before" | "after";
33
+ };
34
+ };
35
+ infoProps?: {
36
+ infoTitle?: string;
37
+ infoIcon?: React.ReactNode;
38
+ infoBgColor?: string;
39
+ infoColor?: string;
40
+ };
41
+ loading?: boolean;
42
+ };
43
+ declare const JweroConfirmationDialog: ({ open, onClose, title, subTitle, primaryButtonProps, secondaryButtonProps, customIconProps, inputFieldProps, infoProps, loading, }: ConfirmationDialogType) => import("react/jsx-runtime").JSX.Element;
44
+ export default JweroConfirmationDialog;
@@ -0,0 +1,30 @@
1
+ import { ReactNode } from 'react';
2
+ import { CustomTypographyProps } from '../JweroTypography';
3
+
4
+ export type OptionType = {
5
+ label: string;
6
+ value: string | number;
7
+ disableProps?: {
8
+ disable?: boolean;
9
+ disableText?: string;
10
+ };
11
+ };
12
+ export type JweroCustomFieldType = {
13
+ label?: string;
14
+ onChange?: (value: any) => void;
15
+ options?: OptionType[];
16
+ value?: any;
17
+ textFieldProps?: any;
18
+ type?: "text" | "number" | "dropdown" | "date" | "time" | "datetime" | "checkbox" | "radio" | "password" | "date-range" | "autocomplete" | "single_solo_autocomplete";
19
+ labelRight?: ReactNode;
20
+ sx?: object;
21
+ error?: boolean;
22
+ helperText?: string;
23
+ backgroundColor?: string;
24
+ tooltip?: string;
25
+ inputFieldProps?: Omit<CustomTypographyProps, "children">;
26
+ helperTextProps?: Omit<CustomTypographyProps, "children">;
27
+ autocompleteProps?: any;
28
+ };
29
+ declare const JweroCustomField: ({ label, onChange, options, value: _value, textFieldProps, type, labelRight, sx, error, helperText, backgroundColor, tooltip, inputFieldProps, helperTextProps, autocompleteProps, }: JweroCustomFieldType) => import("react/jsx-runtime").JSX.Element;
30
+ export default JweroCustomField;
@@ -0,0 +1,7 @@
1
+ type DataCardAreaGraphProps = {
2
+ data: number[];
3
+ labels?: any[];
4
+ name?: any;
5
+ };
6
+ declare const CardAreaGraph: ({ name, data, labels }: DataCardAreaGraphProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default CardAreaGraph;
@@ -0,0 +1,8 @@
1
+ type NumberAnimationProps = {
2
+ value: number;
3
+ duration?: number;
4
+ styles?: object;
5
+ isPercentage?: boolean;
6
+ };
7
+ declare const NumberAnimation: ({ value, duration, styles, isPercentage, }: NumberAnimationProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default NumberAnimation;
@@ -0,0 +1,54 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ import { CustomTypographyProps } from '../JweroTypography';
3
+ import { SxProps, Theme } from '@mui/material';
4
+
5
+ type SubDataType = {
6
+ label: string;
7
+ value: number;
8
+ };
9
+ type InfoType = {
10
+ label: string;
11
+ value: string;
12
+ total_number?: string;
13
+ is_percentage: boolean;
14
+ increased_by?: number;
15
+ backgroundImage?: string;
16
+ chipType?: "completed" | "in_progress" | "pending" | "scheduled" | "custom";
17
+ customChipProps?: {
18
+ value: string;
19
+ label: string;
20
+ backgroundColor?: string;
21
+ color?: string;
22
+ iconProps?: {
23
+ position: "start" | "end";
24
+ icon: React.ReactNode;
25
+ };
26
+ textSx?: object;
27
+ boxSx?: object;
28
+ };
29
+ statusTextSx?: SxProps;
30
+ statusBoxSx?: SxProps;
31
+ subData?: SubDataType[];
32
+ };
33
+ export type JweroDataCardType = {
34
+ info: InfoType;
35
+ showStatusChip?: boolean;
36
+ showBackgroundImage?: boolean;
37
+ showSubData?: boolean;
38
+ labelProps?: Omit<CustomTypographyProps, "children">;
39
+ dataProps?: Omit<CustomTypographyProps, "children">;
40
+ boxSx: SxProps<Theme>;
41
+ customFooter?: ReactNode;
42
+ chartProps?: {
43
+ flag: true;
44
+ data: number[];
45
+ label: string[];
46
+ };
47
+ animateLabelProps?: {
48
+ flag: boolean;
49
+ duration?: number;
50
+ styles?: object;
51
+ };
52
+ };
53
+ declare const JweroDataCard: ({ info, showStatusChip, showBackgroundImage, showSubData, labelProps, dataProps, boxSx, customFooter, chartProps, animateLabelProps, }: JweroDataCardType) => import("react/jsx-runtime").JSX.Element;
54
+ export default JweroDataCard;