@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,10 @@
1
+ import { SxProps } from '@mui/material';
2
+
3
+ export type JweroPaginationType = {
4
+ currentPage?: number;
5
+ totalPages?: number;
6
+ onChange?: (event: React.ChangeEvent<unknown>, page: number) => void;
7
+ sx?: SxProps;
8
+ };
9
+ declare const JweroPagination: ({ currentPage, totalPages, onChange, sx, }: JweroPaginationType) => import("react/jsx-runtime").JSX.Element;
10
+ export default JweroPagination;
@@ -0,0 +1,10 @@
1
+ import { SxProps } from '@mui/material';
2
+
3
+ export type JweroRowsPerPageType = {
4
+ rowsPerPage?: number;
5
+ rowsPerPageOptions?: number[];
6
+ onChange?: (rows: number) => void;
7
+ sx?: SxProps;
8
+ };
9
+ declare const JweroRowsPerPage: ({ rowsPerPage, rowsPerPageOptions, onChange, sx, }: JweroRowsPerPageType) => import("react/jsx-runtime").JSX.Element;
10
+ export default JweroRowsPerPage;
@@ -0,0 +1,29 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ import { SxProps, Theme } from '@mui/material';
3
+
4
+ export type JweroTableRowType = any;
5
+ export type RowDataType = {
6
+ [key: string]: (data: JweroTableRowType) => ReactNode;
7
+ };
8
+ export type TableHeaderListType = {
9
+ value: string;
10
+ label: string;
11
+ align: "left" | "right" | "center" | "inherit" | "justify" | undefined;
12
+ sortable?: boolean;
13
+ /**
14
+ * Provide a function that returns a primitive (string/number) used for sorting
15
+ */
16
+ sortValue?: (row: JweroTableRowType) => string | number;
17
+ };
18
+ export type JweroTableType = {
19
+ tableSx?: SxProps<Theme>;
20
+ data: JweroTableRowType[];
21
+ rowData: RowDataType;
22
+ tableHeaderList: TableHeaderListType[];
23
+ onClick?: (event: React.MouseEvent<HTMLTableRowElement>, data: JweroTableRowType) => void;
24
+ tableTitleNoLineBreak?: boolean;
25
+ initialSortBy?: string;
26
+ initialSortOrder?: "asc" | "desc";
27
+ };
28
+ declare const JweroTable: ({ tableSx, data, tableHeaderList, rowData, onClick, tableTitleNoLineBreak, initialSortBy, initialSortOrder, }: JweroTableType) => import("react/jsx-runtime").JSX.Element;
29
+ export default JweroTable;
@@ -0,0 +1,21 @@
1
+ import { ReactNode } from 'react';
2
+ import { SxProps } from '@mui/material';
3
+ import { JweroTableType } from './components/JweroTable';
4
+ import { JweroPaginationType } from './components/JweroPagination';
5
+ import { JweroRowsPerPageType } from './components/JweroRowsPerPage';
6
+
7
+ export type JweroDataTableType = JweroTableType & {
8
+ customTableHeader?: ReactNode;
9
+ enableScrollButtons?: boolean;
10
+ pagination?: JweroDataPaginationType;
11
+ rowsPerPageProps?: JweroRowsPerPageType & {
12
+ flag?: boolean;
13
+ };
14
+ sx?: SxProps;
15
+ tableTitleNoWrap?: boolean;
16
+ };
17
+ export type JweroDataPaginationType = JweroPaginationType & {
18
+ flag: boolean;
19
+ };
20
+ declare const JweroDataTable: ({ tableSx, data, tableHeaderList, rowData, customTableHeader, onClick, enableScrollButtons, pagination, rowsPerPageProps, tableTitleNoLineBreak, sx, }: JweroDataTableType) => import("react/jsx-runtime").JSX.Element;
21
+ export default JweroDataTable;
@@ -0,0 +1,9 @@
1
+ import { DateFilterListType } from '../helper/dateFilterList';
2
+
3
+ type DateFiltersMenuType = {
4
+ filterList: DateFilterListType[];
5
+ value: string;
6
+ onChange: (filter: string) => void;
7
+ };
8
+ declare const DateFiltersMenu: ({ filterList, value, onChange, }: DateFiltersMenuType) => import("react/jsx-runtime").JSX.Element;
9
+ export default DateFiltersMenu;
@@ -0,0 +1,5 @@
1
+ export type DateFilterListType = {
2
+ value: string;
3
+ label: string;
4
+ };
5
+ export declare const dateFilterList: DateFilterListType[];
@@ -0,0 +1,11 @@
1
+ import { DateFilterListType } from './helper/dateFilterList';
2
+
3
+ type JweroDateFilterType = {
4
+ currentFilter: string;
5
+ onFilterChange: (filter: string) => void;
6
+ customFiltersList?: DateFilterListType[];
7
+ onOpenFilters?: () => void;
8
+ onClose?: () => void;
9
+ };
10
+ declare const JweroDateFilter: ({ currentFilter, customFiltersList, onFilterChange, onOpenFilters, onClose, }: JweroDateFilterType) => import("react/jsx-runtime").JSX.Element;
11
+ export default JweroDateFilter;
@@ -0,0 +1,17 @@
1
+ import { CustomTypographyProps } from '../JweroTypography';
2
+ import { PrimaryButtonProps } from '../jwero_primary_button';
3
+ import { ReactNode } from 'react';
4
+
5
+ type CustomMessageType = Omit<CustomTypographyProps, "children"> & {
6
+ label: string;
7
+ onClick: () => void;
8
+ };
9
+ export type JweroFooterType = {
10
+ primaryButtonProps?: PrimaryButtonProps;
11
+ secondaryButtonProps?: PrimaryButtonProps;
12
+ customMessageProps?: CustomMessageType;
13
+ customSecondaryBox?: ReactNode;
14
+ customMessageBox?: ReactNode;
15
+ };
16
+ declare const JweroDialogFooter: ({ primaryButtonProps, secondaryButtonProps, customMessageProps, customSecondaryBox, customMessageBox, }: JweroFooterType) => import("react/jsx-runtime").JSX.Element;
17
+ export default JweroDialogFooter;
@@ -0,0 +1,45 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ import { ReactNode } from 'react';
3
+
4
+ /**
5
+ * Type definition for JweroDrawer component props
6
+ */
7
+ type JweroDrawerType = {
8
+ /**
9
+ * Whether the drawer is open
10
+ */
11
+ open: boolean;
12
+ /**
13
+ * Position of the drawer anchor: 'left', 'right', 'top', 'bottom'
14
+ */
15
+ anchor?: "left" | "right" | "top" | "bottom";
16
+ /**
17
+ * Function to handle the closing of the drawer
18
+ */
19
+ handleDrawerClose: () => void;
20
+ /**
21
+ * Custom styles to apply to the drawer
22
+ */
23
+ sx?: SxProps<Theme>;
24
+ /**
25
+ * Children components to render inside the drawer
26
+ */
27
+ children: ReactNode;
28
+ iconProps?: {
29
+ icon?: ReactNode;
30
+ iconSx?: SxProps<Theme>;
31
+ };
32
+ };
33
+ /**
34
+ * JweroDrawer component to render a drawer with custom content and a close button
35
+ *
36
+ * @param {Object} props - The props for the JweroDrawer component
37
+ * @param {boolean} props.open - Whether the drawer is open
38
+ * * @param {'left' | 'right' | 'top' | 'bottom'} [props.anchor='right'] - Position of the drawer anchor, default right
39
+ * @param {() => void} props.handleDrawerClose - Function to handle the closing of the drawer
40
+ * @param {ReactNode} props.children - Children components to render inside the drawer
41
+ * @param {SxProps} [props.sx] - Custom styles to apply to the drawer
42
+ * @returns {JSX.Element} The rendered JweroDrawer component
43
+ */
44
+ declare const JweroDrawer: ({ open, handleDrawerClose, children, anchor, iconProps, sx, }: JweroDrawerType) => import("react/jsx-runtime").JSX.Element;
45
+ export default JweroDrawer;
@@ -0,0 +1,26 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ import { PrimaryButtonProps } from '../jwero_primary_button';
3
+ import { ReactElement } from 'react';
4
+
5
+ type JweroEmptyStateButtonProps = {
6
+ variant?: "solid" | "outlined";
7
+ title?: string;
8
+ onClick?: () => void;
9
+ };
10
+ type JweroEmptyStateType = {
11
+ type?: "data" | "search" | "custom";
12
+ image?: string;
13
+ svg?: ReactElement;
14
+ title?: string;
15
+ description?: string;
16
+ buttonProps?: JweroEmptyStateButtonProps;
17
+ sx?: SxProps<Theme>;
18
+ imageSx?: SxProps<Theme>;
19
+ textBoxSx?: SxProps<Theme>;
20
+ searchQuery?: string;
21
+ buttonAdditionalProps?: Partial<PrimaryButtonProps>;
22
+ showButton?: boolean;
23
+ showAddButton?: boolean;
24
+ };
25
+ declare const JweroEmptyState: ({ type, image, svg, title, description, buttonProps, sx, imageSx, textBoxSx, searchQuery, buttonAdditionalProps, showButton, showAddButton, }: JweroEmptyStateType) => import("react/jsx-runtime").JSX.Element;
26
+ export default JweroEmptyState;
@@ -0,0 +1,12 @@
1
+ type HighlightLabelChipProps = {
2
+ label: string;
3
+ highlight?: string;
4
+ value?: any;
5
+ onClick?: (value?: any) => void;
6
+ onClose?: () => void;
7
+ boxSx?: object;
8
+ labelProps?: object;
9
+ highlightProps?: object;
10
+ };
11
+ export declare const HighlightLabelChip: ({ label, highlight, value, onClick, boxSx, labelProps, highlightProps, }: HighlightLabelChipProps) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,10 @@
1
+ import { SxProps } from '@mui/material';
2
+
3
+ export type FilterOperatorType = "and" | "or";
4
+ type FilterOperatorProps = {
5
+ selectedOperator?: FilterOperatorType;
6
+ onChange: (value: FilterOperatorType) => void;
7
+ sx?: SxProps;
8
+ };
9
+ declare const JweroFilterOperators: ({ selectedOperator, onChange, sx, }: FilterOperatorProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default JweroFilterOperators;
@@ -0,0 +1,2 @@
1
+ declare const MediaPreviewDisplay: ({ mediaFiles }: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default MediaPreviewDisplay;
@@ -0,0 +1,5 @@
1
+ type MediaPreviewHeaderProps = {
2
+ onClose: () => void;
3
+ };
4
+ declare const MediaPreviewHeader: ({ onClose, }: MediaPreviewHeaderProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default MediaPreviewHeader;
@@ -0,0 +1,2 @@
1
+ declare const JweroMediaPreview: ({ openPreview, setOpenMediaPreview, mediaFiles, }: any) => import("react/jsx-runtime").JSX.Element;
2
+ export default JweroMediaPreview;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+
3
+ declare const DrawerA: React.FC;
4
+ export default DrawerA;
@@ -0,0 +1,2 @@
1
+ declare const Analytics: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Analytics;
@@ -0,0 +1,2 @@
1
+ declare const Automations: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Automations;
@@ -0,0 +1,2 @@
1
+ declare const CRM: () => import("react/jsx-runtime").JSX.Element;
2
+ export default CRM;
@@ -0,0 +1,2 @@
1
+ declare const Catalog: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Catalog;
@@ -0,0 +1,2 @@
1
+ declare const DigitalGold: () => import("react/jsx-runtime").JSX.Element;
2
+ export default DigitalGold;
@@ -0,0 +1,2 @@
1
+ declare const Ecommerce: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Ecommerce;
@@ -0,0 +1,2 @@
1
+ declare const Inventory: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Inventory;
@@ -0,0 +1,2 @@
1
+ declare const JweroOne: () => import("react/jsx-runtime").JSX.Element;
2
+ export default JweroOne;
@@ -0,0 +1,2 @@
1
+ declare const Loyality: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Loyality;
@@ -0,0 +1,2 @@
1
+ declare const Socials: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Socials;
@@ -0,0 +1,2 @@
1
+ declare const Chats: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Chats;
@@ -0,0 +1,23 @@
1
+ import { ReactNode } from 'react';
2
+ import { SxProps } from '@mui/material';
3
+
4
+ type JweroNavigationProps = {
5
+ sx?: SxProps;
6
+ apps?: string[];
7
+ otherApps?: string[];
8
+ showAllApps?: boolean;
9
+ showAllOtherApps?: boolean;
10
+ onClose?: () => void;
11
+ showCloseButton?: boolean;
12
+ authToken?: string | null;
13
+ };
14
+ declare const JweroNavigation: ({ sx, apps, otherApps, showAllApps, showAllOtherApps, showCloseButton, onClose, authToken }: JweroNavigationProps) => import("react/jsx-runtime").JSX.Element;
15
+ export default JweroNavigation;
16
+ type JweroNavigationBoxItemProps = {
17
+ onClick: () => void;
18
+ icon: ReactNode;
19
+ label: string;
20
+ isComingSoon?: boolean;
21
+ isBeta?: boolean;
22
+ };
23
+ export declare const JweroNavigationBoxItem: ({ onClick, icon, label, isComingSoon, isBeta }: JweroNavigationBoxItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ type JweroNoteCardHeaderProps = {
2
+ note: any;
3
+ addedBy: string;
4
+ date: Date;
5
+ isHovered: boolean;
6
+ isActionsVisible?: boolean;
7
+ onEdit?: any;
8
+ onDelete?: any;
9
+ };
10
+ declare const JweroNoteCardHeader: ({ note, addedBy, date, isHovered, isActionsVisible, onEdit, onDelete, }: JweroNoteCardHeaderProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default JweroNoteCardHeader;
@@ -0,0 +1,10 @@
1
+ type AttachmentPreviewProps = {
2
+ customHeight?: string;
3
+ customWidth?: string;
4
+ fileName: string;
5
+ fileUrl?: string | null;
6
+ fileType: "image" | "video" | "doc";
7
+ onOpenMediaPreview?: (fileUrl: string | null) => void;
8
+ };
9
+ declare const AttachmentPreview: ({ customHeight, customWidth, fileName, fileUrl, fileType, onOpenMediaPreview, }: AttachmentPreviewProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default AttachmentPreview;
@@ -0,0 +1 @@
1
+ export declare const convertDate: (inputDate: Date | string) => string;
@@ -0,0 +1,3 @@
1
+ type FileType = "image" | "video" | "document" | "file";
2
+ export declare const getFileType: (fileName: string | undefined) => FileType;
3
+ export {};
@@ -0,0 +1,14 @@
1
+ type JweroNoteCardType = {
2
+ note: Object;
3
+ title: string;
4
+ description?: string;
5
+ attachments: any[];
6
+ date?: any;
7
+ addedBy?: any;
8
+ onEdit?: any;
9
+ onDelete?: any;
10
+ isTickets?: boolean;
11
+ isActionsVisible?: boolean;
12
+ };
13
+ declare const JweroNoteCard: ({ note, title, description, attachments, date, addedBy, isActionsVisible, onEdit, onDelete, }: JweroNoteCardType) => import("react/jsx-runtime").JSX.Element;
14
+ export default JweroNoteCard;
@@ -0,0 +1,10 @@
1
+ type AttachmentPreviewProps = {
2
+ index: number;
3
+ fileName: string;
4
+ fileUrl: string;
5
+ fileType: string;
6
+ onRemoveAttachment: (index: number) => void;
7
+ onOpenMediaPreview: (fileUrl: string) => void;
8
+ };
9
+ declare const AttachmentPreview: ({ index, fileName, fileUrl, fileType, onRemoveAttachment, onOpenMediaPreview, }: AttachmentPreviewProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default AttachmentPreview;
@@ -0,0 +1,8 @@
1
+ import { NoteAttachment } from '..';
2
+
3
+ type AttachmentsSectionProps = {
4
+ attachments: NoteAttachment[];
5
+ onDelete: (index: number) => void;
6
+ };
7
+ declare const AttachmentsSection: ({ attachments, onDelete, }: AttachmentsSectionProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default AttachmentsSection;
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+
3
+ type NoteEditorFooterProps = {
4
+ onAttach: () => void;
5
+ onSave: () => void;
6
+ fileInputRef: React.RefObject<HTMLInputElement>;
7
+ handleAttachFile: (event: React.ChangeEvent<HTMLInputElement>) => void;
8
+ isSubmitButtonDisabled?: boolean;
9
+ isSubmitting: boolean;
10
+ };
11
+ declare const NoteEditorFooter: ({ onAttach, onSave, fileInputRef, handleAttachFile, isSubmitButtonDisabled, isSubmitting, }: NoteEditorFooterProps) => import("react/jsx-runtime").JSX.Element;
12
+ export default NoteEditorFooter;
@@ -0,0 +1,6 @@
1
+ type NoteEditorHeaderProps = {
2
+ onClose?: () => void;
3
+ showDragIcon?: boolean;
4
+ };
5
+ declare const NoteEditorHeader: ({ onClose, showDragIcon }: NoteEditorHeaderProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default NoteEditorHeader;
@@ -0,0 +1,4 @@
1
+ export declare function bytesToMegabytes({ bytes, fixedDigit, }: {
2
+ bytes: number;
3
+ fixedDigit?: number;
4
+ }): number;
@@ -0,0 +1,7 @@
1
+ export declare const fileLimits: {
2
+ image: number;
3
+ video: number;
4
+ audio: number;
5
+ document: number;
6
+ };
7
+ export declare function getFileLimit(fileType: string): number | undefined;
@@ -0,0 +1 @@
1
+ export declare const getFileType: (fileName: string) => string;
@@ -0,0 +1 @@
1
+ export declare const getRandomId: () => string;
@@ -0,0 +1,25 @@
1
+ import { SxProps } from '@mui/material';
2
+
3
+ export type NoteAttachment = {
4
+ id: string | number;
5
+ name: string;
6
+ source_url: string;
7
+ type: "image" | "video" | "doc";
8
+ };
9
+ type NoteEditorProps = {
10
+ title: string;
11
+ note_text: string;
12
+ attachments: (string | File)[];
13
+ onClose?: () => void;
14
+ onSave: (noteData: {
15
+ title: string;
16
+ note_text: string;
17
+ attachments: NoteAttachment[];
18
+ }) => void;
19
+ sx?: SxProps;
20
+ isSubmitButtonDisabled?: boolean;
21
+ isSubmitting?: boolean;
22
+ showDragIcon?: boolean;
23
+ };
24
+ declare const JweroNoteEditor: ({ title: initialTitle, note_text: initialNoteText, attachments: initialAttachments, onClose, onSave, sx, isSubmitButtonDisabled, showDragIcon, isSubmitting, }: NoteEditorProps) => import("react/jsx-runtime").JSX.Element;
25
+ export default JweroNoteEditor;
@@ -0,0 +1,30 @@
1
+ import { SxProps } from '@mui/material';
2
+ import { ChipType } from '../jwero_status_chip';
3
+ import { ReactNode } from 'react';
4
+
5
+ type JweroOrdersCardType = {
6
+ price: string;
7
+ orderNo: string;
8
+ customOrderText?: string;
9
+ customTitleIcon?: ReactNode;
10
+ orderTitle: string;
11
+ products: {
12
+ label: string;
13
+ image_url: string;
14
+ }[];
15
+ date: Date | string;
16
+ paymentMethod: string;
17
+ orderStatus: ChipType;
18
+ customPaymentIcon?: ReactNode;
19
+ channels?: string[];
20
+ onClick?: () => void;
21
+ boxSx?: SxProps;
22
+ customPayment?: ReactNode;
23
+ transactionId?: string;
24
+ };
25
+ declare const JweroOrderCard: ({ price, orderNo, customOrderText, customTitleIcon, orderTitle, products, paymentMethod, date, orderStatus, customPaymentIcon, channels, onClick, boxSx, customPayment, transactionId, }: JweroOrdersCardType) => import("react/jsx-runtime").JSX.Element;
26
+ export default JweroOrderCard;
27
+ type JweroOrderCardChannelsType = {
28
+ channels: string[];
29
+ };
30
+ export declare const JweroOrderCardChannels: ({ channels, }: JweroOrderCardChannelsType) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,9 @@
1
+
2
+ export declare const INDIA_CODE: "in";
3
+ type JweroPhoneInputProps = {
4
+ value: string;
5
+ onChange: (phone: string) => void;
6
+ defaultCountry?: string;
7
+ };
8
+ declare const JweroPhoneInput: ({ value, onChange, defaultCountry }: JweroPhoneInputProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default JweroPhoneInput;
@@ -0,0 +1,8 @@
1
+ type JweroPlanExpiryBodyProps = {
2
+ onLogout: () => void;
3
+ onUpgrade: () => void;
4
+ showUpgrade?: boolean;
5
+ showLogout?: boolean;
6
+ };
7
+ declare const JweroPlanExpiryBody: ({ onLogout, onUpgrade, showUpgrade, showLogout }: JweroPlanExpiryBodyProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default JweroPlanExpiryBody;
@@ -0,0 +1,2 @@
1
+ declare const JweroPlanExpiryFooter: () => import("react/jsx-runtime").JSX.Element;
2
+ export default JweroPlanExpiryFooter;
@@ -0,0 +1,2 @@
1
+ declare const JweroPlanExpiryHeader: () => import("react/jsx-runtime").JSX.Element;
2
+ export default JweroPlanExpiryHeader;
@@ -0,0 +1,8 @@
1
+ type JweroPlanExpiryProps = {
2
+ onLogout: () => void;
3
+ onUpgrade: () => void;
4
+ showUpgrade?: boolean;
5
+ showLogout?: boolean;
6
+ };
7
+ declare const JweroPlanExpiry: ({ onLogout, onUpgrade, showUpgrade, showLogout }: JweroPlanExpiryProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default JweroPlanExpiry;
@@ -0,0 +1,2 @@
1
+ declare const PlanExpiredSvg: () => import("react/jsx-runtime").JSX.Element;
2
+ export default PlanExpiredSvg;
@@ -0,0 +1,25 @@
1
+ import { SxProps } from '@mui/material';
2
+ import { default as React } from 'react';
3
+
4
+ declare const START_POSITION: "start";
5
+ declare const END_POSITION: "end";
6
+ export type PositionProps = typeof START_POSITION | typeof END_POSITION;
7
+ export interface PrimaryButtonProps {
8
+ title: string;
9
+ onClick?: () => void;
10
+ iconProps?: {
11
+ icon: React.ReactNode;
12
+ position: PositionProps;
13
+ };
14
+ boxSx?: SxProps;
15
+ textSx?: SxProps;
16
+ loadingProps?: {
17
+ loading: boolean;
18
+ position: PositionProps;
19
+ };
20
+ loaderProps?: SxProps;
21
+ disabled?: boolean;
22
+ variant?: "solid" | "outlined";
23
+ }
24
+ declare const JweroPrimaryButton: ({ title, onClick, iconProps, boxSx, textSx, loadingProps, disabled, loaderProps, variant, }: PrimaryButtonProps) => import("react/jsx-runtime").JSX.Element;
25
+ export default JweroPrimaryButton;
@@ -0,0 +1,24 @@
1
+ import { SxProps } from '@mui/material';
2
+
3
+ export type JweroProductCardType = {
4
+ type?: "default" | "offer" | "product details";
5
+ title: string;
6
+ price?: number | string;
7
+ mailQty?: number;
8
+ showStockAvailability?: boolean;
9
+ inStock?: boolean;
10
+ stockstatus?: number;
11
+ diamondQuality?: number;
12
+ sx?: SxProps;
13
+ height?: string | number;
14
+ image: string;
15
+ channels?: string[];
16
+ onClick?: () => void;
17
+ imageSx?: SxProps;
18
+ };
19
+ declare const JweroProductCard: ({ price, inStock, stockstatus, mailQty, diamondQuality, type, title, showStockAvailability, sx, height, image, onClick, channels, imageSx, }: JweroProductCardType) => import("react/jsx-runtime").JSX.Element;
20
+ export default JweroProductCard;
21
+ type JweroProductCardChannelsType = {
22
+ channels: string[];
23
+ };
24
+ export declare const JweroProductCardChannels: ({ channels, }: JweroProductCardChannelsType) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,28 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ import { ChangeEvent, ReactNode, RefObject } from 'react';
3
+
4
+ type AdornmentPropsType = {
5
+ flag: boolean;
6
+ icon: ReactNode;
7
+ text?: string;
8
+ };
9
+ type SearchBoxType = {
10
+ onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
11
+ placeholder?: string;
12
+ value?: string;
13
+ bgColor?: string;
14
+ fieldValue?: string;
15
+ inputRef?: RefObject<HTMLInputElement>;
16
+ sx?: SxProps<Theme>;
17
+ textFieldType?: string;
18
+ customRows?: number;
19
+ disabled?: boolean;
20
+ startAdornmentProps?: AdornmentPropsType;
21
+ endAdornmentProps?: AdornmentPropsType;
22
+ clearIconProps?: {
23
+ flag: boolean;
24
+ onClick: () => void;
25
+ };
26
+ };
27
+ declare const JweroSearchBox: ({ onChange, placeholder, value, bgColor, fieldValue, inputRef, textFieldType, customRows, disabled, sx, startAdornmentProps, endAdornmentProps, clearIconProps, }: SearchBoxType) => import("react/jsx-runtime").JSX.Element;
28
+ export default JweroSearchBox;
@@ -0,0 +1,17 @@
1
+ type JweroSnackbarType = {
2
+ open: boolean;
3
+ type?: "positive" | "negative";
4
+ position?: {
5
+ vertical: "top" | "bottom";
6
+ horizontal: "left" | "center" | "right";
7
+ };
8
+ title?: string;
9
+ subTitle?: string;
10
+ defaultCloseFunction?: string;
11
+ buttonProps?: {
12
+ text: string;
13
+ onClick?: () => void;
14
+ };
15
+ };
16
+ declare const JweroSnackbar: ({ open, position, title, subTitle, buttonProps, type, }: JweroSnackbarType) => import("react/jsx-runtime").JSX.Element;
17
+ export default JweroSnackbar;