@fixefy/fixefy-ui-components 0.3.99 → 0.3.101

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.
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare const FxActionsTray: ({ ctx, entityType, show, actions, onClose, onClick, assetUrl, }: {
2
+ export declare const FxActionsTray: ({ ctx, entityType, show, actions, onClose, onClick, }: {
3
3
  ctx: any;
4
4
  entityType?: string;
5
5
  show: boolean;
@@ -7,5 +7,4 @@ export declare const FxActionsTray: ({ ctx, entityType, show, actions, onClose,
7
7
  onClose: () => void;
8
8
  onApprove?: (event: any) => void;
9
9
  onClick: (event: any, action: any) => void;
10
- assetUrl?: string;
11
10
  }) => React.JSX.Element;
@@ -25,7 +25,7 @@ function _interop_require_default(obj) {
25
25
  default: obj
26
26
  };
27
27
  }
28
- const FxActionsTray = ({ ctx, entityType = 'item', show = false, actions = [], onClose, onClick, assetUrl })=>{
28
+ const FxActionsTray = ({ ctx, entityType = 'item', show = false, actions = [], onClose, onClick })=>{
29
29
  const { classes } = (0, _actionsTraystyle.useStyles)();
30
30
  const { selection = [], selectAll, ultraSelectAll, totalCount } = ctx;
31
31
  const selectedCount = selectAll === true && ultraSelectAll === true ? totalCount : selection.length;
@@ -1,7 +1 @@
1
- import { Theme } from '@mui/material/styles';
2
- export declare const useStyles: (params: void, muiStyleOverridesParams?: import("tss-react/mui/themeStyleOverridesPlugin").MuiThemeStyleOverridesPluginParams["muiStyleOverridesParams"]) => {
3
- classes: Record<"container" | "approveButton" | "paper" | "selected" | "divider" | "actions" | "close" | "actionButton", string>;
4
- theme: import("@mui/material/styles").Theme;
5
- css: import("tss-react").Css;
6
- cx: import("tss-react").Cx;
7
- };
1
+ export declare const useStyles: any;
@@ -36,5 +36,4 @@ export type AsyncDropdownPropsType = {
36
36
  _id: any;
37
37
  logo_folder_name?: string;
38
38
  logo_placeholder?: string;
39
- assetUrl?: string;
40
39
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare const FxButtonModalWithComponent: ({ btnType, btnValue, modalData, onClick, disabled, startIcon, endIcon, sx, iconSize, assetUrl, }: {
2
+ export declare const FxButtonModalWithComponent: ({ btnType, btnValue, modalData, onClick, disabled, startIcon, endIcon, sx, iconSize, }: {
3
3
  btnType?: "text" | "icon";
4
4
  btnValue?: string;
5
5
  modalData: any;
@@ -9,5 +9,4 @@ export declare const FxButtonModalWithComponent: ({ btnType, btnValue, modalData
9
9
  endIcon?: string;
10
10
  sx?: any;
11
11
  iconSize?: number;
12
- assetUrl?: string;
13
12
  }) => React.JSX.Element;
@@ -60,7 +60,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
60
60
  }
61
61
  return newObj;
62
62
  }
63
- const FxButtonModalWithComponent = ({ btnType = 'text', btnValue, modalData, onClick, disabled, startIcon, endIcon, sx, iconSize, assetUrl })=>{
63
+ const FxButtonModalWithComponent = ({ btnType = 'text', btnValue, modalData, onClick, disabled, startIcon, endIcon, sx, iconSize })=>{
64
64
  const [isOpen, setIsOpen] = (0, _react.useState)(false);
65
65
  const [AnchorEl, setAnchorEl] = (0, _react.useState)(null);
66
66
  const handleClick = (e)=>{
@@ -93,7 +93,8 @@ const FxButtonModalWithMenu = ({ btnType = 'text', btnValue, modalData, onClick,
93
93
  startIcon: startIcon,
94
94
  endIcon: endIcon,
95
95
  iconSize: iconSize || 20,
96
- disabled: disabled
96
+ disabled: disabled,
97
+ assetUrl: assetUrl
97
98
  }),
98
99
  shouldShowModal && /*#__PURE__*/ (0, _jsxruntime.jsx)(_Menu.default, {
99
100
  id: "fade-menu",
@@ -11,6 +11,5 @@ export interface ChipPropsType {
11
11
  onClick?: (e: any) => void;
12
12
  onDelete?: (e: any) => void;
13
13
  icon?: string;
14
- assetUrl?: string;
15
14
  }
16
15
  export declare const FxChip: (props: ChipPropsType) => React.JSX.Element;
@@ -1,8 +1,4 @@
1
1
  import React from 'react';
2
- export declare const FxGridEmptyState: ({ assetUrl, message, mainIcon, mainIconHeight, mainIconWidth }: {
2
+ export declare const FxGridEmptyState: ({ assetUrl }: {
3
3
  assetUrl?: string;
4
- message?: string;
5
- mainIcon?: string;
6
- mainIconHeight?: number;
7
- mainIconWidth?: number;
8
4
  }) => React.JSX.Element;
@@ -18,7 +18,7 @@ function _interop_require_default(obj) {
18
18
  default: obj
19
19
  };
20
20
  }
21
- const FxGridEmptyState = ({ assetUrl, message = 'There is currently no data to display.', mainIcon = 'table/table_no_results.svg', mainIconHeight = 250, mainIconWidth = 279 })=>{
21
+ const FxGridEmptyState = ({ assetUrl })=>{
22
22
  return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
23
23
  sx: {
24
24
  width: '100%',
@@ -44,9 +44,9 @@ const FxGridEmptyState = ({ assetUrl, message = 'There is currently no data to d
44
44
  },
45
45
  children: [
46
46
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
47
- width: mainIconWidth,
48
- height: mainIconHeight,
49
- icon: mainIcon,
47
+ width: 279,
48
+ height: 250,
49
+ icon: 'table/table_no_results.svg',
50
50
  assetUrl: assetUrl
51
51
  }),
52
52
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
@@ -65,7 +65,7 @@ const FxGridEmptyState = ({ assetUrl, message = 'There is currently no data to d
65
65
  flexDirection: 'column',
66
66
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
67
67
  variant: "h5",
68
- children: message
68
+ children: "There is currently no data to display."
69
69
  })
70
70
  })
71
71
  })
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"container" | "label" | "hint" | "inputWrapper" | "inputActions" | "inputActionsPlus" | "inputActionsMinus">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"label" | "container" | "hint" | "inputWrapper" | "inputActions" | "inputActionsPlus" | "inputActionsMinus">;
@@ -30,6 +30,5 @@ export type AsyncDropdownPropsType = {
30
30
  defaultValue?: any;
31
31
  data: string[];
32
32
  _id: string;
33
- assetUrl?: string;
34
33
  };
35
34
  export declare const FxObjStaticDropdown: (props: AsyncDropdownPropsType) => React.JSX.Element;
@@ -1,7 +1 @@
1
- import { ScorePaletteColorOptions } from '@mui/material/styles';
2
- interface ScoreStylesPropsType {
3
- scoreColor: keyof ScorePaletteColorOptions;
4
- variant: 'box' | 'circle';
5
- }
6
- export declare const useStyles: (props: ScoreStylesPropsType) => import("@mui/styles/withStyles").ClassNameMap<"container" | "content" | "scoreNumber" | "scoreText" | "mainCircle" | "backgroundCircle">;
7
- export {};
1
+ export declare const useStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"content" | "container" | "scoreNumber" | "scoreText" | "mainCircle" | "backgroundCircle">;
@@ -1,2 +1,2 @@
1
1
  import '@fixefy/fixefy-ui-utils';
2
- export declare const useStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"container" | "label" | "value" | "contrastLabel" | "contrastValue">;
2
+ export declare const useStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"label" | "value" | "container" | "contrastLabel" | "contrastValue">;
@@ -20,6 +20,5 @@ export type StaticDropdownPropsType = {
20
20
  placeholder?: string;
21
21
  data: string[];
22
22
  rootStylesOverride?: any;
23
- assetUrl?: string;
24
23
  };
25
24
  export declare const FxStrStaticDropdown: React.ForwardRefExoticComponent<StaticDropdownPropsType & React.RefAttributes<unknown>>;
@@ -1,7 +1,6 @@
1
- export declare const FxUserImage: ({ bucketAddress, user, loading, setLoading, assetUrl }: {
1
+ export declare const FxUserImage: ({ bucketAddress, user, loading, setLoading }: {
2
2
  bucketAddress: string;
3
3
  user: any;
4
4
  loading: boolean;
5
5
  setLoading: (loading: boolean) => void;
6
- assetUrl?: string;
7
6
  }) => any;
@@ -92,7 +92,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
92
92
  }
93
93
  return newObj;
94
94
  }
95
- const FxUserImage = ({ bucketAddress, user, loading, setLoading, assetUrl })=>{
95
+ const FxUserImage = ({ bucketAddress, user, loading, setLoading })=>{
96
96
  const getRandomColor = (0, _fixefyhooks.useRandomColor)();
97
97
  const { listS3Bucket } = (0, _nexts3upload.useS3ListBucket)();
98
98
  const { downloadFromS3 } = (0, _nexts3upload.useS3Download)('download-bytearray');
package/package.json CHANGED
@@ -72,5 +72,5 @@
72
72
  "require": "./dist/index.js"
73
73
  }
74
74
  },
75
- "version": "0.3.99"
75
+ "version": "0.3.101"
76
76
  }