@fixefy/fixefy-ui-components 0.3.101 → 0.3.102

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 (30) hide show
  1. package/dist/FxActionsTray/FxActionsTray.d.ts +2 -1
  2. package/dist/FxActionsTray/FxActionsTray.js +5 -3
  3. package/dist/FxActionsTray/styles/actionsTray.style.d.ts +7 -1
  4. package/dist/FxAsyncDropdown/FxAsyncDropdown.js +2 -1
  5. package/dist/FxAsyncDropdown/components/ChipOption.js +2 -0
  6. package/dist/FxAsyncDropdown/components/ChosenIcon.js +3 -2
  7. package/dist/FxAsyncDropdown/components/LogoOption.js +2 -1
  8. package/dist/FxAsyncDropdown/types.d.ts +1 -0
  9. package/dist/FxButtonModalWithComponent/FxButtonModalWithComponent.d.ts +2 -1
  10. package/dist/FxButtonModalWithComponent/FxButtonModalWithComponent.js +2 -1
  11. package/dist/FxButtonModalWithMenu/FxButtonModalWithMenu.d.ts +2 -2
  12. package/dist/FxButtonModalWithMenu/FxButtonModalWithMenu.js +4 -3
  13. package/dist/FxChip/FxChip.d.ts +1 -0
  14. package/dist/FxChip/FxChip.js +3 -2
  15. package/dist/FxGridEmptyState/FxGridEmptyState.d.ts +5 -1
  16. package/dist/FxGridEmptyState/FxGridEmptyState.js +9 -5
  17. package/dist/FxMenuItemWithIcon/FxMenuItemWithIcon.d.ts +2 -1
  18. package/dist/FxMenuItemWithIcon/FxMenuItemWithIcon.js +3 -2
  19. package/dist/FxNumberField/styles/number_field.styles.d.ts +1 -1
  20. package/dist/FxObjStaticDropdown/FxObjStaticDropdown.d.ts +1 -0
  21. package/dist/FxObjStaticDropdown/FxObjStaticDropdown.js +7 -2
  22. package/dist/FxScore/styles/score.styles.d.ts +7 -1
  23. package/dist/FxStatisticsBar/styles/statistics.styles.d.ts +1 -1
  24. package/dist/FxStatusBar/FxStatusBar.d.ts +2 -1
  25. package/dist/FxStatusBar/FxStatusBar.js +2 -1
  26. package/dist/FxStrStaticDropdown/FxStrStaticDropdown.d.ts +1 -0
  27. package/dist/FxStrStaticDropdown/FxStrStaticDropdown.js +6 -2
  28. package/dist/FxUserImage/FxUserImage.d.ts +2 -1
  29. package/dist/FxUserImage/FxUserImage.js +2 -1
  30. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- export declare const FxActionsTray: ({ ctx, entityType, show, actions, onClose, onClick, }: {
2
+ export declare const FxActionsTray: ({ assetUrl, ctx, entityType, show, actions, onClose, onClick, }: {
3
+ assetUrl?: string;
3
4
  ctx: any;
4
5
  entityType?: string;
5
6
  show: boolean;
@@ -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 })=>{
28
+ const FxActionsTray = ({ assetUrl, 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;
@@ -63,6 +63,7 @@ const FxActionsTray = ({ ctx, entityType = 'item', show = false, actions = [], o
63
63
  /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
64
64
  className: classes.actions,
65
65
  children: actions.map((action, index)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(ActionButton, {
66
+ assetUrl: assetUrl,
66
67
  title: action.title,
67
68
  name: action.name,
68
69
  icon: action.extended.icon,
@@ -87,7 +88,7 @@ const FxActionsTray = ({ ctx, entityType = 'item', show = false, actions = [], o
87
88
  })
88
89
  });
89
90
  };
90
- const ActionButton = ({ title, name, icon, classes, onClick })=>/*#__PURE__*/ (0, _jsxruntime.jsxs)(_Button.default, {
91
+ const ActionButton = ({ assetUrl, title, name, icon, classes, onClick })=>/*#__PURE__*/ (0, _jsxruntime.jsxs)(_Button.default, {
91
92
  id: name,
92
93
  className: classes.actionButton,
93
94
  title: (0, _fixefyuiutils.titleCase)(title),
@@ -99,7 +100,8 @@ const ActionButton = ({ title, name, icon, classes, onClick })=>/*#__PURE__*/ (0
99
100
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
100
101
  width: 16,
101
102
  height: 16,
102
- icon: `actions/${icon}.svg`
103
+ icon: `actions/${icon}.svg`,
104
+ assetUrl: assetUrl
103
105
  })
104
106
  }),
105
107
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
@@ -1 +1,7 @@
1
- export declare const useStyles: any;
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
+ };
@@ -121,7 +121,7 @@ function _object_spread_props(target, source) {
121
121
  }
122
122
  const FxAsyncDropdown = (props)=>{
123
123
  var _fetcher_query;
124
- const { onAdd, onRemoveAll, onUnselectAll, fetcher, disabled, defaultValue, type = 'text', variables, search_path, modal_type, multiple, name, query, isInitialOpen, placeholder, title_path, rootStylesOverride, options_path, _id } = props;
124
+ const { assetUrl, onAdd, onRemoveAll, onUnselectAll, fetcher, disabled, defaultValue, type = 'text', variables, search_path, modal_type, multiple, name, query, isInitialOpen, placeholder, title_path, rootStylesOverride, options_path, _id } = props;
125
125
  const ref = (0, _react.useRef)(null);
126
126
  const { method_name } = variables !== null && variables !== void 0 ? variables : {};
127
127
  var _fetcher_queryOptions_variables;
@@ -436,6 +436,7 @@ const FxAsyncDropdown = (props)=>{
436
436
  paddingLeft: '3px'
437
437
  },
438
438
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
439
+ assetUrl: assetUrl,
439
440
  onClick: ()=>{
440
441
  setDisplayed([]);
441
442
  if (onRemoveAll) {
@@ -19,6 +19,7 @@ function _interop_require_default(obj) {
19
19
  }
20
20
  const ChipOption = ({ option, curValue, modal, fetchedProps, displayed, setDisplayed })=>{
21
21
  return modal == 'displayed' ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxChip.FxChip, {
22
+ assetUrl: fetchedProps.assetUrl,
22
23
  status: curValue,
23
24
  label: (0, _helpers.titleCase)(curValue),
24
25
  variant: "outlined",
@@ -26,6 +27,7 @@ const ChipOption = ({ option, curValue, modal, fetchedProps, displayed, setDispl
26
27
  (0, _helpers.deleteOneItem)(option, fetchedProps, displayed, setDisplayed);
27
28
  }
28
29
  }, option._id) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxChip.FxChip, {
30
+ assetUrl: fetchedProps.assetUrl,
29
31
  status: curValue,
30
32
  label: (0, _helpers.titleCase)(curValue),
31
33
  variant: "outlined"
@@ -18,7 +18,7 @@ function _interop_require_default(obj) {
18
18
  };
19
19
  }
20
20
  const ChosenIcon = ({ option, isDisplay, fetchedProps, displayed })=>{
21
- const { title_path, multiple, search_path } = fetchedProps;
21
+ const { assetUrl, title_path, multiple, search_path } = fetchedProps;
22
22
  const isChecked = (option)=>{
23
23
  const clicked = (0, _helpers.getOption)(option, title_path);
24
24
  if (typeof displayed === 'string') {
@@ -37,7 +37,8 @@ const ChosenIcon = ({ option, isDisplay, fetchedProps, displayed })=>{
37
37
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
38
38
  width: 16,
39
39
  height: 16,
40
- icon: 'filters/chosen_icon.svg'
40
+ icon: 'filters/chosen_icon.svg',
41
+ assetUrl: assetUrl
41
42
  });
42
43
  }
43
44
  return null;
@@ -82,13 +82,14 @@ const LogoOption = ({ option, curValue, modal, fetchedProps, displayed, setDispl
82
82
  };
83
83
  const Logo = ({ option, fetchedProps })=>{
84
84
  const getRandomColor = (0, _fixefyhooks.useRandomColor)();
85
- const { logo_folder_name, logo_placeholder, name } = fetchedProps !== null && fetchedProps !== void 0 ? fetchedProps : {};
85
+ const { assetUrl, logo_folder_name, logo_placeholder, name } = fetchedProps !== null && fetchedProps !== void 0 ? fetchedProps : {};
86
86
  var _option_name;
87
87
  return /*#__PURE__*/ (0, _jsxruntime.jsx)("span", {
88
88
  style: {
89
89
  width: '70px'
90
90
  },
91
91
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
92
+ assetUrl: assetUrl,
92
93
  icon: `${option.logo ? `${logo_folder_name}/${option.logo}` : logo_placeholder ? logo_placeholder : (_option_name = option === null || option === void 0 ? void 0 : option[name]) !== null && _option_name !== void 0 ? _option_name : 'x'}`,
93
94
  width: 70,
94
95
  height: 16,
@@ -10,6 +10,7 @@ export interface StylesOptions {
10
10
  menuSx?: object;
11
11
  }
12
12
  export type AsyncDropdownPropsType = {
13
+ assetUrl?: string;
13
14
  initialValue?: Option | any;
14
15
  styles?: StylesOptions;
15
16
  multiple?: boolean;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- export declare const FxButtonModalWithComponent: ({ btnType, btnValue, modalData, onClick, disabled, startIcon, endIcon, sx, iconSize, }: {
2
+ export declare const FxButtonModalWithComponent: ({ assetUrl, btnType, btnValue, modalData, onClick, disabled, startIcon, endIcon, sx, iconSize, }: {
3
+ assetUrl?: string;
3
4
  btnType?: "text" | "icon";
4
5
  btnValue?: string;
5
6
  modalData: any;
@@ -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 })=>{
63
+ const FxButtonModalWithComponent = ({ assetUrl, 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)=>{
@@ -85,6 +85,7 @@ const FxButtonModalWithComponent = ({ btnType = 'text', btnValue, modalData, onC
85
85
  return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
86
86
  children: [
87
87
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStyledButton.FxStyledButton, {
88
+ assetUrl: assetUrl,
88
89
  sx: sx,
89
90
  btnType: btnType,
90
91
  btnValue: btnValue,
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- export declare const FxButtonModalWithMenu: ({ btnType, btnValue, modalData, onClick, disabled, startIcon, endIcon, shouldShowModal, buttonSx, menuItemSx, iconSize, assetUrl, }: {
2
+ export declare const FxButtonModalWithMenu: ({ assetUrl, btnType, btnValue, modalData, onClick, disabled, startIcon, endIcon, shouldShowModal, buttonSx, menuItemSx, iconSize, }: {
3
+ assetUrl?: string;
3
4
  btnType?: "text" | "icon";
4
5
  btnValue?: string;
5
6
  modalData: any;
@@ -11,5 +12,4 @@ export declare const FxButtonModalWithMenu: ({ btnType, btnValue, modalData, onC
11
12
  buttonSx?: any;
12
13
  menuItemSx?: any;
13
14
  iconSize?: number;
14
- assetUrl?: string;
15
15
  }) => React.JSX.Element;
@@ -61,7 +61,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
61
61
  }
62
62
  return newObj;
63
63
  }
64
- const FxButtonModalWithMenu = ({ btnType = 'text', btnValue, modalData, onClick, disabled, startIcon, endIcon, shouldShowModal = true, buttonSx, menuItemSx, iconSize, assetUrl })=>{
64
+ const FxButtonModalWithMenu = ({ assetUrl, btnType = 'text', btnValue, modalData, onClick, disabled, startIcon, endIcon, shouldShowModal = true, buttonSx, menuItemSx, iconSize })=>{
65
65
  const [isOpen, setIsOpen] = (0, _react.useState)(false);
66
66
  const [AnchorEl, setAnchorEl] = (0, _react.useState)(null);
67
67
  const handleClick = (e)=>{
@@ -86,6 +86,7 @@ const FxButtonModalWithMenu = ({ btnType = 'text', btnValue, modalData, onClick,
86
86
  return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
87
87
  children: [
88
88
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxStyledButton.FxStyledButton, {
89
+ assetUrl: assetUrl,
89
90
  sx: buttonSx,
90
91
  btnType: btnType,
91
92
  btnValue: btnValue,
@@ -93,8 +94,7 @@ const FxButtonModalWithMenu = ({ btnType = 'text', btnValue, modalData, onClick,
93
94
  startIcon: startIcon,
94
95
  endIcon: endIcon,
95
96
  iconSize: iconSize || 20,
96
- disabled: disabled,
97
- assetUrl: assetUrl
97
+ disabled: disabled
98
98
  }),
99
99
  shouldShowModal && /*#__PURE__*/ (0, _jsxruntime.jsx)(_Menu.default, {
100
100
  id: "fade-menu",
@@ -110,6 +110,7 @@ const FxButtonModalWithMenu = ({ btnType = 'text', btnValue, modalData, onClick,
110
110
  TransitionComponent: _Fade.default,
111
111
  children: isOpen && (modalData === null || modalData === void 0 ? void 0 : modalData.map((item, i)=>{
112
112
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxMenuItemWithIcon.FxMenuItemWithIcon, {
113
+ assetUrl: assetUrl,
113
114
  icon: item.icon,
114
115
  title: item.title,
115
116
  onClick: ()=>{
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { EntityStatusType, ChargeStateType, InvoiceStateType, RecoStateType } from '@fixefy/fixefy-ui-utils';
3
3
  export interface ChipPropsType {
4
+ assetUrl?: string;
4
5
  type?: 'status' | 'priority' | 'score' | 'dimension' | 'reco';
5
6
  status?: EntityStatusType | ChargeStateType | InvoiceStateType | RecoStateType;
6
7
  label: string | number;
@@ -20,7 +20,7 @@ function _interop_require_default(obj) {
20
20
  };
21
21
  }
22
22
  const FxChip = (props)=>{
23
- const { status, label, type = 'status', scoreValue = 0, minimized = false, variant = 'outlined', onClick, onDelete, icon } = props;
23
+ const { assetUrl, status, label, type = 'status', scoreValue = 0, minimized = false, variant = 'outlined', onClick, onDelete, icon } = props;
24
24
  const newStatus = status ? status.split(' ').join('_') : status;
25
25
  const value = typeof label === 'number' ? label.toFixed(2) : label;
26
26
  switch(type){
@@ -58,7 +58,8 @@ const FxChip = (props)=>{
58
58
  icon: /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
59
59
  icon: `${icon}.svg`,
60
60
  width: 15,
61
- height: 15
61
+ height: 15,
62
+ assetUrl: assetUrl
62
63
  })
63
64
  });
64
65
  default:
@@ -1,4 +1,8 @@
1
1
  import React from 'react';
2
- export declare const FxGridEmptyState: ({ assetUrl }: {
2
+ export declare const FxGridEmptyState: ({ assetUrl, mainIcon, message, mainIconWidth, mainIconHeight }: {
3
3
  assetUrl?: string;
4
+ mainIcon?: string;
5
+ message?: string;
6
+ mainIconWidth?: number;
7
+ mainIconHeight?: number;
4
8
  }) => React.JSX.Element;
@@ -18,7 +18,10 @@ function _interop_require_default(obj) {
18
18
  default: obj
19
19
  };
20
20
  }
21
- const FxGridEmptyState = ({ assetUrl })=>{
21
+ const FxGridEmptyState = ({ assetUrl, mainIcon, message, mainIconWidth, mainIconHeight })=>{
22
+ const icon = mainIcon || 'table/table_no_results.svg';
23
+ const iconWidth = mainIconWidth || 279;
24
+ const iconHeight = mainIconHeight || 250;
22
25
  return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
23
26
  sx: {
24
27
  width: '100%',
@@ -44,9 +47,9 @@ const FxGridEmptyState = ({ assetUrl })=>{
44
47
  },
45
48
  children: [
46
49
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
47
- width: 279,
48
- height: 250,
49
- icon: 'table/table_no_results.svg',
50
+ width: iconWidth,
51
+ height: iconHeight,
52
+ icon: icon,
50
53
  assetUrl: assetUrl
51
54
  }),
52
55
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
@@ -63,9 +66,10 @@ const FxGridEmptyState = ({ assetUrl })=>{
63
66
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
64
67
  display: 'flex',
65
68
  flexDirection: 'column',
69
+ mt: 3,
66
70
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Typography.default, {
67
71
  variant: "h5",
68
- children: "There is currently no data to display."
72
+ children: message || 'There is currently no data to display.'
69
73
  })
70
74
  })
71
75
  })
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- export declare const FxMenuItemWithIcon: ({ title, icon, onClick, sx, }: {
2
+ export declare const FxMenuItemWithIcon: ({ assetUrl, title, icon, onClick, sx, }: {
3
+ assetUrl?: string;
3
4
  title: string;
4
5
  icon: any;
5
6
  onClick?: any;
@@ -48,7 +48,7 @@ function _object_spread(target) {
48
48
  }
49
49
  return target;
50
50
  }
51
- const FxMenuItemWithIcon = ({ title, icon, onClick, sx = {} })=>{
51
+ const FxMenuItemWithIcon = ({ assetUrl, title, icon, onClick, sx = {} })=>{
52
52
  return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_MenuItem.default, {
53
53
  sx: {
54
54
  width: '197px',
@@ -68,7 +68,8 @@ const FxMenuItemWithIcon = ({ title, icon, onClick, sx = {} })=>{
68
68
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
69
69
  width: 16,
70
70
  height: 16,
71
- icon: icon
71
+ icon: icon,
72
+ assetUrl: assetUrl
72
73
  })
73
74
  }),
74
75
  /*#__PURE__*/ (0, _jsxruntime.jsx)(_ListItemText.default, {
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"label" | "container" | "hint" | "inputWrapper" | "inputActions" | "inputActionsPlus" | "inputActionsMinus">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"container" | "label" | "hint" | "inputWrapper" | "inputActions" | "inputActionsPlus" | "inputActionsMinus">;
@@ -30,5 +30,6 @@ export type AsyncDropdownPropsType = {
30
30
  defaultValue?: any;
31
31
  data: string[];
32
32
  _id: string;
33
+ assetUrl?: string;
33
34
  };
34
35
  export declare const FxObjStaticDropdown: (props: AsyncDropdownPropsType) => React.JSX.Element;
@@ -76,7 +76,7 @@ const checkedIcon = /*#__PURE__*/ (0, _jsxruntime.jsx)(_CheckBox.default, {
76
76
  fontSize: "small"
77
77
  });
78
78
  const FxObjStaticDropdown = (props)=>{
79
- const { onAdd, onRemoveOne, onRemoveAll, onUnselectAll, disabled, type = 'text', search_path, modal_type, multiple, name, query, isInitialOpen, placeholder, title_path, rootStylesOverride, logo_placeholder, logo_folder_name, _id, data, defaultValue } = props;
79
+ const { assetUrl, onAdd, onRemoveOne, onRemoveAll, onUnselectAll, disabled, type = 'text', search_path, modal_type, multiple, name, query, isInitialOpen, placeholder, title_path, rootStylesOverride, logo_placeholder, logo_folder_name, _id, data, defaultValue } = props;
80
80
  const ref = (0, _react.useRef)(null);
81
81
  const theme = (0, _styles.useTheme)();
82
82
  const [displayed, setDisplayed] = (0, _react.useState)(multiple ? [] : '');
@@ -394,7 +394,8 @@ const FxObjStaticDropdown = (props)=>{
394
394
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
395
395
  width: 16,
396
396
  height: 16,
397
- icon: 'filters/chosen_icon.svg'
397
+ icon: 'filters/chosen_icon.svg',
398
+ assetUrl: assetUrl
398
399
  });
399
400
  }
400
401
  return null;
@@ -406,6 +407,7 @@ const FxObjStaticDropdown = (props)=>{
406
407
  width: '70px'
407
408
  },
408
409
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
410
+ assetUrl: assetUrl,
409
411
  icon: `${option.logo ? `${logo_folder_name}/${option.logo}` : logo_placeholder ? logo_placeholder : (_option_name = option === null || option === void 0 ? void 0 : option[name]) !== null && _option_name !== void 0 ? _option_name : 'x'}`,
410
412
  width: 70,
411
413
  height: 16,
@@ -417,6 +419,7 @@ const FxObjStaticDropdown = (props)=>{
417
419
  };
418
420
  const Chip = ({ option, curValue, modal })=>{
419
421
  return modal == 'displayed' ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxChip.FxChip, {
422
+ assetUrl: assetUrl,
420
423
  status: curValue,
421
424
  label: (0, _fixefyuiutils.titleCase)(curValue),
422
425
  variant: "outlined",
@@ -424,6 +427,7 @@ const FxObjStaticDropdown = (props)=>{
424
427
  deleteOneItem(option);
425
428
  }
426
429
  }, option === null || option === void 0 ? void 0 : option._id) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxChip.FxChip, {
430
+ assetUrl: assetUrl,
427
431
  status: curValue,
428
432
  label: (0, _fixefyuiutils.titleCase)(curValue),
429
433
  variant: "outlined"
@@ -487,6 +491,7 @@ const FxObjStaticDropdown = (props)=>{
487
491
  paddingLeft: '3px'
488
492
  },
489
493
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
494
+ assetUrl: assetUrl,
490
495
  onClick: ()=>{
491
496
  setDisplayed([]);
492
497
  onRemoveAll();
@@ -1 +1,7 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"content" | "container" | "scoreNumber" | "scoreText" | "mainCircle" | "backgroundCircle">;
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,2 +1,2 @@
1
1
  import '@fixefy/fixefy-ui-utils';
2
- export declare const useStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"label" | "value" | "container" | "contrastLabel" | "contrastValue">;
2
+ export declare const useStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"container" | "label" | "value" | "contrastLabel" | "contrastValue">;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { EntityStatusType, ChargeStateType, InvoiceStateType, RecoStateType } from '@fixefy/fixefy-ui-utils';
3
3
  export type StatusBarPropsType = {
4
+ assetUrl?: string;
4
5
  onSearch?: (searchValue: string) => void;
5
6
  onChangeStatus: (statuses: string[]) => void;
6
7
  defaultStatus?: string | string[];
@@ -11,4 +12,4 @@ export type StatusBarPropsType = {
11
12
  export type Options = {
12
13
  [x: string]: keyof EntityStatusType | keyof ChargeStateType | keyof InvoiceStateType | keyof RecoStateType | string;
13
14
  };
14
- export declare const FxStatusBar: ({ onChangeStatus, onSearch, defaultStatus, title, options, chipsVariant, }: StatusBarPropsType) => React.JSX.Element;
15
+ export declare const FxStatusBar: ({ assetUrl, onChangeStatus, onSearch, defaultStatus, title, options, chipsVariant, }: StatusBarPropsType) => React.JSX.Element;
@@ -61,7 +61,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
61
61
  }
62
62
  return newObj;
63
63
  }
64
- const FxStatusBar = ({ onChangeStatus, onSearch, defaultStatus, title, options, chipsVariant = 'filled' })=>{
64
+ const FxStatusBar = ({ assetUrl, onChangeStatus, onSearch, defaultStatus, title, options, chipsVariant = 'filled' })=>{
65
65
  const [selectedStatus, setSelectedStatus] = (0, _react.useState)([]);
66
66
  const [searchValue] = (0, _react.useState)('');
67
67
  (0, _react.useEffect)(()=>{
@@ -135,6 +135,7 @@ const FxStatusBar = ({ onChangeStatus, onSearch, defaultStatus, title, options,
135
135
  }),
136
136
  Object.keys(__options).map((key, index)=>{
137
137
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxChip.FxChip, {
138
+ assetUrl: assetUrl,
138
139
  onClick: ()=>onStatusClick(__options[key]),
139
140
  label: (0, _fixefyuiutils.titleCase)(key),
140
141
  variant: chipsVariant,
@@ -6,6 +6,7 @@ export interface StaticDropdownStylesOptions {
6
6
  menuSx?: object;
7
7
  }
8
8
  export type StaticDropdownPropsType = {
9
+ assetUrl?: string;
9
10
  initialValue?: string | any;
10
11
  styles?: StaticDropdownStylesOptions;
11
12
  multiple?: boolean;
@@ -74,7 +74,7 @@ const checkedIcon = /*#__PURE__*/ (0, _jsxruntime.jsx)(_CheckBox.default, {
74
74
  fontSize: "small"
75
75
  });
76
76
  const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
77
- const { onAdd, onRemoveOne, onRemoveAll, type = 'text', modal_type, multiple, name, query, isInitialOpen, placeholder, data, rootStylesOverride } = props;
77
+ const { assetUrl, onAdd, onRemoveOne, onRemoveAll, type = 'text', modal_type, multiple, name, query, isInitialOpen, placeholder, data, rootStylesOverride } = props;
78
78
  const ref = (0, _react.useRef)(null);
79
79
  const theme = (0, _styles.useTheme)();
80
80
  const [displayed, setDisplayed] = (0, _react.useState)(multiple ? [] : '');
@@ -224,6 +224,7 @@ const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
224
224
  };
225
225
  const Chip = ({ option, modal })=>{
226
226
  return modal == 'displayed' ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxChip.FxChip, {
227
+ assetUrl: assetUrl,
227
228
  status: option,
228
229
  label: (0, _helpers.titleCase)(option),
229
230
  variant: "outlined",
@@ -231,6 +232,7 @@ const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
231
232
  deleteOneItem(option);
232
233
  }
233
234
  }, option) : /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxChip.FxChip, {
235
+ assetUrl: assetUrl,
234
236
  status: option,
235
237
  label: (0, _helpers.titleCase)(option),
236
238
  variant: "outlined"
@@ -241,7 +243,8 @@ const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
241
243
  return /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
242
244
  width: 16,
243
245
  height: 16,
244
- icon: 'filters/chosen_icon.svg'
246
+ icon: 'filters/chosen_icon.svg',
247
+ assetUrl: assetUrl
245
248
  });
246
249
  }
247
250
  return null;
@@ -333,6 +336,7 @@ const FxStrStaticDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
333
336
  paddingLeft: '3px'
334
337
  },
335
338
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
339
+ assetUrl: assetUrl,
336
340
  onClick: ()=>{
337
341
  setDisplayed([]);
338
342
  onRemoveAll && onRemoveAll();
@@ -1,6 +1,7 @@
1
- export declare const FxUserImage: ({ bucketAddress, user, loading, setLoading }: {
1
+ export declare const FxUserImage: ({ bucketAddress, user, loading, setLoading, assetUrl }: {
2
2
  bucketAddress: string;
3
3
  user: any;
4
4
  loading: boolean;
5
5
  setLoading: (loading: boolean) => void;
6
+ assetUrl?: string;
6
7
  }) => 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 })=>{
95
+ const FxUserImage = ({ bucketAddress, user, loading, setLoading, assetUrl })=>{
96
96
  const getRandomColor = (0, _fixefyhooks.useRandomColor)();
97
97
  const { listS3Bucket } = (0, _nexts3upload.useS3ListBucket)();
98
98
  const { downloadFromS3 } = (0, _nexts3upload.useS3Download)('download-bytearray');
@@ -190,6 +190,7 @@ const FxUserImage = ({ bucketAddress, user, loading, setLoading })=>{
190
190
  size: 24
191
191
  });
192
192
  if (!file && !loading) return /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
193
+ assetUrl: assetUrl,
193
194
  icon: 'users',
194
195
  width: 24,
195
196
  height: 24,
package/package.json CHANGED
@@ -72,5 +72,5 @@
72
72
  "require": "./dist/index.js"
73
73
  }
74
74
  },
75
- "version": "0.3.101"
75
+ "version": "0.3.102"
76
76
  }