@fixefy/fixefy-ui-components 0.2.89 → 0.2.91

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.
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare const FxMenuItemWithIcon: ({ title, icon, onClick }: {
3
+ title: string;
4
+ icon: any;
5
+ onClick?: any;
6
+ }) => React.JSX.Element;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "FxMenuItemWithIcon", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return FxMenuItemWithIcon;
9
+ }
10
+ });
11
+ const _jsxruntime = require("react/jsx-runtime");
12
+ const _react = /*#__PURE__*/ _interop_require_default(require("react"));
13
+ const _material = require("@mui/material");
14
+ const _fixefyuiutils = require("@fixefy/fixefy-ui-utils");
15
+ const _FxIcon = require("../FxIcon");
16
+ function _interop_require_default(obj) {
17
+ return obj && obj.__esModule ? obj : {
18
+ default: obj
19
+ };
20
+ }
21
+ const FxMenuItemWithIcon = ({ title, icon, onClick })=>{
22
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.MenuItem, {
23
+ sx: {
24
+ width: '197px',
25
+ display: 'flex',
26
+ justifyContent: 'space-between',
27
+ background: '#fff',
28
+ marginLeft: 'auto',
29
+ cursor: 'pointer',
30
+ ['&:hover']: {
31
+ background: '#F6F9FA'
32
+ }
33
+ },
34
+ onClick: onClick ? onClick : null,
35
+ value: title,
36
+ children: [
37
+ icon && /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.ListItemIcon, {
38
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_FxIcon.FxIcon, {
39
+ width: 16,
40
+ height: 16,
41
+ icon: icon
42
+ })
43
+ }),
44
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.ListItemText, {
45
+ secondary: (0, _fixefyuiutils.titleCase)(title),
46
+ secondaryTypographyProps: {
47
+ fontSize: '14px',
48
+ marginLeft: '-10px'
49
+ }
50
+ })
51
+ ]
52
+ });
53
+ };
@@ -0,0 +1 @@
1
+ export { FxMenuItemWithIcon } from './FxMenuItemWithIcon';
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "FxMenuItemWithIcon", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return _FxMenuItemWithIcon.FxMenuItemWithIcon;
9
+ }
10
+ });
11
+ const _FxMenuItemWithIcon = require("./FxMenuItemWithIcon");
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  export declare const FxModalWithButton: ({ btnType, color, btnValue, modalData, onClick, disabled, icon, }: {
3
3
  btnType?: 'text' | 'icon';
4
4
  color?: 'secondary' | undefined;
5
- btnValue: string;
5
+ btnValue?: string;
6
6
  modalData: any;
7
7
  onClick?: any;
8
8
  disabled?: boolean;
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export { FxButton, ButtonPropsType } from './FxButton';
6
6
  export { FxFilterActionButton } from './FxFilterActionButton';
7
7
  export { FxChip, ChipPropsType } from './FxChip';
8
8
  export { FxIcon } from './FxIcon';
9
+ export { FxMenuItemWithIcon } from './FxMenuItemWithIcon';
9
10
  export { FxModal, ModalPropsType } from './FxModal';
10
11
  export { FxModalWithButton } from './FxModalWithButton';
11
12
  export { FxNotes, NoteCreateInput, NotesPropsType } from './FxNotes';
package/dist/index.js CHANGED
@@ -69,6 +69,9 @@ _export(exports, {
69
69
  FxIcon: function() {
70
70
  return _FxIcon.FxIcon;
71
71
  },
72
+ FxMenuItemWithIcon: function() {
73
+ return _FxMenuItemWithIcon.FxMenuItemWithIcon;
74
+ },
72
75
  FxModal: function() {
73
76
  return _FxModal.FxModal;
74
77
  },
@@ -213,6 +216,7 @@ const _FxButton = require("./FxButton");
213
216
  const _FxFilterActionButton = require("./FxFilterActionButton");
214
217
  const _FxChip = require("./FxChip");
215
218
  const _FxIcon = require("./FxIcon");
219
+ const _FxMenuItemWithIcon = require("./FxMenuItemWithIcon");
216
220
  const _FxModal = require("./FxModal");
217
221
  const _FxModalWithButton = require("./FxModalWithButton");
218
222
  const _FxNotes = require("./FxNotes");
package/package.json CHANGED
@@ -65,5 +65,5 @@
65
65
  "require": "./dist/index.js"
66
66
  }
67
67
  },
68
- "version": "0.2.89"
68
+ "version": "0.2.91"
69
69
  }