linear-react-components-ui 1.1.18-beta.1 → 1.1.18-beta.3
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.
|
@@ -360,24 +360,26 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
|
|
|
360
360
|
width: 300px;
|
|
361
361
|
position: absolute;
|
|
362
362
|
|
|
363
|
-
>.
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
363
|
+
>.popup-help {
|
|
364
|
+
>.list-component {
|
|
365
|
+
box-shadow: none;
|
|
366
|
+
overflow: hidden;
|
|
367
|
+
border-radius: 0px;
|
|
367
368
|
|
|
368
|
-
|
|
369
|
-
|
|
369
|
+
>.list-header {
|
|
370
|
+
background-color: #77777736 !important;
|
|
370
371
|
|
|
371
|
-
|
|
372
|
-
|
|
372
|
+
>.title {
|
|
373
|
+
line-height: 40px;
|
|
374
|
+
}
|
|
373
375
|
}
|
|
374
376
|
}
|
|
375
|
-
}
|
|
376
377
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
378
|
+
.infomartion>.help-information {
|
|
379
|
+
color: rgba(0, 0, 0, 0.54);
|
|
380
|
+
font-size: 12px;
|
|
381
|
+
padding-bottom: 10px;
|
|
382
|
+
}
|
|
381
383
|
}
|
|
382
384
|
}
|
|
383
385
|
|
|
@@ -204,6 +204,7 @@ const SideNav = props => {
|
|
|
204
204
|
customClass: "helphmenuicon",
|
|
205
205
|
size: menuSize === 'small' && 16 || menuSize === 'medium' && 22 || menuSize === 'large' && 32 || 16
|
|
206
206
|
})), openHelpMenuPopup && /*#__PURE__*/_react.default.createElement(_popup_menu_help.default, _extends({}, props, {
|
|
207
|
+
helpRef: helpRef,
|
|
207
208
|
style: getPopupMenuHelpStyle(),
|
|
208
209
|
handlerClose: closeHelpMenuPopup,
|
|
209
210
|
menuItemsContent: menuItemsContent && returnMenuItems()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
1
2
|
import { IPopupMenuHelpProps } from '../types.js';
|
|
2
|
-
import 'react';
|
|
3
3
|
import '../../../@types/PermissionAttr.js';
|
|
4
4
|
import '../../../@types/Size.js';
|
|
5
5
|
import '../../../internals/types.js';
|
|
@@ -7,9 +7,6 @@ import '../../../@types/Position.js';
|
|
|
7
7
|
import '../../../@types/Icon.js';
|
|
8
8
|
import '../../../icons/helper.js';
|
|
9
9
|
|
|
10
|
-
declare const
|
|
11
|
-
(props: IPopupMenuHelpProps): JSX.Element;
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
10
|
+
declare const PopupMenuHelp: (props: IPopupMenuHelpProps) => React__default.ReactPortal;
|
|
14
11
|
|
|
15
|
-
export {
|
|
12
|
+
export { PopupMenuHelp as default };
|
|
@@ -7,7 +7,6 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
9
9
|
var _list = _interopRequireWildcard(require("../../../list"));
|
|
10
|
-
var _withDropdown = _interopRequireDefault(require("../../../../lib/dropdown/withDropdown"));
|
|
11
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
12
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -18,7 +17,8 @@ const PopupMenuHelp = props => {
|
|
|
18
17
|
copyright,
|
|
19
18
|
handlerClose,
|
|
20
19
|
version,
|
|
21
|
-
helpList = []
|
|
20
|
+
helpList = [],
|
|
21
|
+
helpRef
|
|
22
22
|
} = props;
|
|
23
23
|
const searchFieldRef = (0, _react.useRef)(null);
|
|
24
24
|
const popupRef = (0, _react.useRef)(document.createElement('div'));
|
|
@@ -46,39 +46,40 @@ const PopupMenuHelp = props => {
|
|
|
46
46
|
style
|
|
47
47
|
});
|
|
48
48
|
}, [style]);
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
|
|
49
|
+
const getPopupContent = () => /*#__PURE__*/_react.default.createElement("div", {
|
|
50
|
+
className: "popup-help",
|
|
51
|
+
ref: helpRef
|
|
52
|
+
}, /*#__PURE__*/_react.default.createElement(_list.default, {
|
|
53
|
+
condensed: true,
|
|
54
|
+
selectable: true,
|
|
55
|
+
onSelectItem: handlerClose,
|
|
56
|
+
selectOnEnter: true,
|
|
57
|
+
style: {
|
|
58
|
+
border: 'none',
|
|
59
|
+
boxShadow: 'hidden',
|
|
60
|
+
overflow: 'none'
|
|
61
|
+
}
|
|
62
|
+
}, /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_list.ListHeader, {
|
|
63
|
+
customClass: "helpheader",
|
|
64
|
+
title: "Ajuda"
|
|
65
|
+
}), helpList.map(item => /*#__PURE__*/_react.default.createElement(_list.ListItem, {
|
|
66
|
+
separator: true,
|
|
67
|
+
selectOnEnter: true,
|
|
68
|
+
key: item.id,
|
|
69
|
+
itemId: item.id,
|
|
70
|
+
url: item.url,
|
|
71
|
+
text: item.title
|
|
72
|
+
})))), /*#__PURE__*/_react.default.createElement("div", {
|
|
73
|
+
className: "infomartion",
|
|
74
|
+
style: {
|
|
75
|
+
padding: '10px 0px 0px 7px',
|
|
76
|
+
backgroundColor: 'white'
|
|
77
|
+
}
|
|
78
|
+
}, /*#__PURE__*/_react.default.createElement("p", {
|
|
79
|
+
className: "help-information"
|
|
80
|
+
}, /*#__PURE__*/_react.default.createElement("b", null, "Vers\xE3o:"), version), /*#__PURE__*/_react.default.createElement("p", {
|
|
81
|
+
className: "help-information"
|
|
82
|
+
}, copyright)));
|
|
82
83
|
return /*#__PURE__*/_reactDom.default.createPortal(getPopupContent(), popupRef.current);
|
|
83
84
|
};
|
|
84
|
-
var _default = exports.default =
|
|
85
|
+
var _default = exports.default = PopupMenuHelp;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode, ReactElement, CSSProperties, Ref } from 'react';
|
|
1
|
+
import { ReactNode, ReactElement, CSSProperties, Ref, RefObject } from 'react';
|
|
2
2
|
import { PermissionAttr } from '../../@types/PermissionAttr.js';
|
|
3
3
|
import { Size } from '../../@types/Size.js';
|
|
4
4
|
import { WithTooltipProps } from '../../internals/types.js';
|
|
@@ -90,6 +90,7 @@ interface IPopupMenuHelpProps extends ISideNavProps {
|
|
|
90
90
|
version: string;
|
|
91
91
|
dropdown?: boolean;
|
|
92
92
|
isDropdownOpened?: boolean;
|
|
93
|
+
helpRef: RefObject<HTMLDivElement>;
|
|
93
94
|
}
|
|
94
95
|
interface ISubMenuContext {
|
|
95
96
|
toggleSubMenu: () => void;
|