linear-react-components-ui 1.1.20-beta.30 → 1.1.20-beta.32

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.
@@ -627,6 +627,10 @@ declare const _default: {
627
627
  viewbox: string;
628
628
  paths: string[];
629
629
  };
630
+ earth: {
631
+ viewbox: string;
632
+ paths: string[];
633
+ };
630
634
  };
631
635
 
632
636
  export { _default as default };
@@ -632,5 +632,9 @@ var _default = exports.default = {
632
632
  bank: {
633
633
  viewbox: '0 0 16 16',
634
634
  paths: ['M16 15v-1h-1v-6h1v-1h-3v1h1v6h-3v-6h1v-1h-3v1h1v6h-3v-6h1v-1h-3v1h1v6h-3v-6h1v-1h-3v1h1v6h-1v1h-1v1h17v-1h-1z', 'M8 0h1l8 5v1h-17v-1l8-5z']
635
+ },
636
+ earth: {
637
+ viewbox: '0 0 16 16',
638
+ paths: ['M8 0c-4.418 0-8 3.582-8 8s3.582 8 8 8 8-3.582 8-8-3.582-8-8-8zM8 15c-0.984 0-1.92-0.203-2.769-0.57l3.643-4.098c0.081-0.092 0.126-0.21 0.126-0.332v-1.5c0-0.276-0.224-0.5-0.5-0.5-1.765 0-3.628-1.835-3.646-1.854-0.094-0.094-0.221-0.146-0.354-0.146h-2c-0.276 0-0.5 0.224-0.5 0.5v3c0 0.189 0.107 0.363 0.276 0.447l1.724 0.862v2.936c-1.813-1.265-3-3.366-3-5.745 0-1.074 0.242-2.091 0.674-3h1.826c0.133 0 0.26-0.053 0.354-0.146l2-2c0.094-0.094 0.146-0.221 0.146-0.354v-1.21c0.634-0.189 1.305-0.29 2-0.29 1.1 0 2.141 0.254 3.067 0.706-0.065 0.055-0.128 0.112-0.188 0.172-0.567 0.567-0.879 1.32-0.879 2.121s0.312 1.555 0.879 2.121c0.569 0.569 1.332 0.879 2.119 0.879 0.049 0 0.099-0.001 0.149-0.004 0.216 0.809 0.605 2.917-0.131 5.818-0.007 0.027-0.011 0.055-0.013 0.082-1.271 1.298-3.042 2.104-5.002 2.104z']
635
639
  }
636
640
  };
@@ -42,7 +42,7 @@ declare const getMaskOptions: ({ isDateField, placeholderChar, min, max, lazy, p
42
42
  mask?: any;
43
43
  hint?: string | string[] | undefined;
44
44
  hintPosition?: "below" | "onLabelRight" | undefined;
45
- themePopover?: "dark" | "light" | undefined;
45
+ themePopover?: "light" | "dark" | undefined;
46
46
  popoverAlign?: "left" | "right" | undefined;
47
47
  placeholderChar: string;
48
48
  min: any;
package/lib/list/Item.js CHANGED
@@ -41,6 +41,7 @@ const Item = props => {
41
41
  permissionAttr,
42
42
  skeletonize,
43
43
  targetRef,
44
+ target,
44
45
  onDeniedText = 'Permissão Negada! Consulte o Administrador do sistema.'
45
46
  } = props;
46
47
  const {
@@ -138,14 +139,15 @@ const Item = props => {
138
139
  key: itemId
139
140
  }), url && !shouldDisable() && /*#__PURE__*/_react.default.createElement(_reactRouterDom.Link, {
140
141
  className: "linkitem",
141
- to: url
142
+ to: url,
143
+ target: target
142
144
  }), (displayCheckbox || leftElement || leftIconName || leftIcon) && /*#__PURE__*/_react.default.createElement("div", {
143
145
  className: `${getClass()} -icon-left`
144
146
  }, renderCheckBox, leftElement, getIcon(leftIconName, leftIcon)), (text || subText || children) && /*#__PURE__*/_react.default.createElement("div", {
145
147
  className: `${getClass()}`
146
- }, /*#__PURE__*/_react.default.createElement("p", {
148
+ }, text && /*#__PURE__*/_react.default.createElement("p", {
147
149
  className: `${text && 'text'}`
148
- }, text), /*#__PURE__*/_react.default.createElement("p", {
150
+ }, text), subText && /*#__PURE__*/_react.default.createElement("p", {
149
151
  className: `${subText && 'subtext'}`
150
152
  }, subText), children), (rightIconName || rightIcon || rightElement || disabledByPermission) && /*#__PURE__*/_react.default.createElement("div", {
151
153
  className: `${getClass()} -icon-right`
@@ -1,4 +1,4 @@
1
- import { ReactNode, ReactElement, CSSProperties, Ref } from 'react';
1
+ import { ReactNode, ReactElement, CSSProperties, ComponentPropsWithoutRef, Ref } from 'react';
2
2
  import { PermissionAttr } from '../@types/PermissionAttr.js';
3
3
  import { IconNames } from '../@types/Icon.js';
4
4
  import { Position } from '../@types/Position.js';
@@ -47,6 +47,7 @@ interface IListItemProps {
47
47
  rightIconName?: IconNames;
48
48
  customClass?: string;
49
49
  url?: string;
50
+ target?: ComponentPropsWithoutRef<'a'>['target'];
50
51
  visible?: boolean;
51
52
  itemId?: string;
52
53
  children?: ReactNode;
@@ -10,28 +10,32 @@ var _icons = _interopRequireDefault(require("../../icons"));
10
10
  var _MenuLink = _interopRequireDefault(require("./MenuLink"));
11
11
  var _helpers = require("./helpers");
12
12
  var _permissionValidations = require("../../permissionValidations");
13
+ const _excluded = ["iconName", "title", "children", "childrenIsSubMenu", "url", "customClass", "permissionAttr", "maxWidth", "minWidth", "columnsQtty", "targetRef", "disableDefaultStyle", "showDropdownOnClick", "style", "customClassForDropdown"];
13
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
15
  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); }
15
16
  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; }
16
17
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
18
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
19
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
17
20
  const NavMenuItem = props => {
18
21
  const {
19
- iconName,
20
- title,
21
- children,
22
- childrenIsSubMenu = true,
23
- url,
24
- customClass,
25
- permissionAttr,
26
- maxWidth = '90%',
27
- minWidth = 500,
28
- columnsQtty,
29
- targetRef,
30
- disableDefaultStyle = false,
31
- showDropdownOnClick = false,
32
- style,
33
- customClassForDropdown
34
- } = props;
22
+ iconName,
23
+ title,
24
+ children,
25
+ childrenIsSubMenu = true,
26
+ url,
27
+ customClass,
28
+ permissionAttr,
29
+ maxWidth = '90%',
30
+ minWidth = 500,
31
+ columnsQtty,
32
+ targetRef,
33
+ disableDefaultStyle = false,
34
+ showDropdownOnClick = false,
35
+ style,
36
+ customClassForDropdown
37
+ } = props,
38
+ rest = _objectWithoutProperties(props, _excluded);
35
39
  const [showSubMenu, setShowSubMenu] = (0, _react.useState)(false);
36
40
  const [targetDimensions, setTargetDimensions] = (0, _react.useState)({});
37
41
  const [isOnEndWindow, setIsOnEndWindow] = (0, _react.useState)(false);
@@ -87,7 +87,7 @@ const SideNav = props => {
87
87
  } = child;
88
88
  if ((type === _NavMenuItem.default || type === _NavSubMenuItem.default) && !child.props.children) {
89
89
  setMenuItemsContent(prevState => [...prevState, {
90
- id: `${child.props.title}-${uuid.v1()}`,
90
+ id: child.props.id || `${child.props.title}-${uuid.v1()}`,
91
91
  content: child.props.title,
92
92
  url: child.props.url
93
93
  }]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linear-react-components-ui",
3
- "version": "1.1.20-beta.30",
3
+ "version": "1.1.20-beta.32",
4
4
  "description": "Linear Sistemas ReactJs Components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.cjs",