linear-react-components-ui 1.1.14 → 1.1.15-beta.1
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.
- package/.eslintcache +1 -1
- package/lib/alerts/AlertContainer.js +1 -1
- package/lib/alerts/AlertProvider.js +3 -3
- package/lib/alerts/BaseAlert.js +1 -1
- package/lib/alerts/Message.js +1 -1
- package/lib/alerts/index.js +1 -1
- package/lib/alerts/withAlert.js +2 -2
- package/lib/assets/styles/input.scss +2 -2
- package/lib/assets/styles/popover.scss +3 -0
- package/lib/avatar/index.js +2 -2
- package/lib/badge/index.js +1 -1
- package/lib/buttons/ActivateButton.js +2 -2
- package/lib/buttons/AddButton.js +2 -2
- package/lib/buttons/Button.js +3 -3
- package/lib/buttons/ButtonGroups.js +1 -1
- package/lib/buttons/CancelButton.js +4 -4
- package/lib/buttons/DangerButton.js +4 -4
- package/lib/buttons/DefaultButton.js +5 -5
- package/lib/buttons/DestroyButton.js +4 -4
- package/lib/buttons/EditButton.js +2 -2
- package/lib/buttons/InactivateButton.js +2 -2
- package/lib/buttons/InfoButton.js +4 -4
- package/lib/buttons/PrimaryButton.js +4 -4
- package/lib/buttons/RestoreButton.js +2 -2
- package/lib/buttons/SaveButton.js +4 -4
- package/lib/buttons/SuccessButton.js +4 -4
- package/lib/buttons/WarningButton.js +4 -4
- package/lib/buttons/button_container/index.js +2 -2
- package/lib/buttons/index.js +1 -1
- package/lib/buttons/split_button/index.js +2 -2
- package/lib/calendar/DangerCalendar.js +4 -4
- package/lib/calendar/InfoCalendar.js +4 -4
- package/lib/calendar/PrimaryCalendar.js +4 -4
- package/lib/calendar/SuccessCalendar.js +4 -4
- package/lib/calendar/WarningCalendar.js +4 -4
- package/lib/calendar/base/Day.js +1 -1
- package/lib/calendar/base/Month.js +1 -1
- package/lib/calendar/base/Week.js +1 -1
- package/lib/calendar/base/helpers.js +1 -1
- package/lib/calendar/base/index.js +1 -1
- package/lib/calendar/index.js +1 -1
- package/lib/checkbox/Label.js +5 -14
- package/lib/checkbox/index.js +38 -11
- package/lib/checkbox/types.d.ts +4 -0
- package/lib/dialog/Alert.js +2 -2
- package/lib/dialog/Custom.js +2 -2
- package/lib/dialog/Error.js +2 -2
- package/lib/dialog/Information.js +2 -2
- package/lib/dialog/Question.js +2 -2
- package/lib/dialog/Warning.js +2 -2
- package/lib/dialog/base/Content.js +1 -1
- package/lib/dialog/base/Footer.js +1 -1
- package/lib/dialog/base/Header.js +1 -1
- package/lib/dialog/base/index.js +1 -1
- package/lib/dialog/form/index.js +11 -7
- package/lib/dialog/index.js +1 -1
- package/lib/drawer/Content.js +1 -1
- package/lib/drawer/Drawer.js +5 -5
- package/lib/drawer/Header.js +1 -1
- package/lib/drawer/helpers.js +1 -1
- package/lib/drawer/index.js +1 -1
- package/lib/dropdown/Popup.js +3 -3
- package/lib/dropdown/withDropdown.js +2 -2
- package/lib/fieldset/index.js +2 -2
- package/lib/form/Field.js +5 -5
- package/lib/form/FieldArray.js +5 -5
- package/lib/form/FieldNumber.js +5 -16
- package/lib/form/FieldPeriod.js +2 -2
- package/lib/form/helpers.js +1 -1
- package/lib/form/index.js +3 -3
- package/lib/form/types.d.ts +13 -2
- package/lib/form/withFieldHOC.js +1 -1
- package/lib/form/withFormSecurity.js +1 -1
- package/lib/gridlayout/GridCol.js +1 -1
- package/lib/gridlayout/GridRow.js +2 -2
- package/lib/gridlayout/index.js +1 -1
- package/lib/hint/helpers.js +1 -1
- package/lib/hint/index.js +1 -1
- package/lib/icons/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/inputs/base/InputTextBase.js +37 -15
- package/lib/inputs/base/Label.js +1 -1
- package/lib/inputs/base/helpers.js +1 -1
- package/lib/inputs/base/types.d.ts +5 -3
- package/lib/inputs/color/index.js +2 -2
- package/lib/inputs/color/types.d.ts +5 -0
- package/lib/inputs/date/Dialog.js +1 -1
- package/lib/inputs/date/Dropdown.js +1 -1
- package/lib/inputs/date/helpers.js +3 -3
- package/lib/inputs/date/index.js +8 -10
- package/lib/inputs/date/types.d.ts +4 -0
- package/lib/inputs/file/DefaultFile.js +2 -2
- package/lib/inputs/file/DragDropFile.js +4 -3
- package/lib/inputs/file/File.js +4 -4
- package/lib/inputs/file/FileButtonSettings.js +1 -1
- package/lib/inputs/file/index.js +1 -1
- package/lib/inputs/file/types.d.ts +3 -0
- package/lib/inputs/inputHOC.js +2 -2
- package/lib/inputs/mask/BaseMask.js +5 -6
- package/lib/inputs/mask/Cnpj.js +2 -2
- package/lib/inputs/mask/Cpf.js +2 -2
- package/lib/inputs/mask/Phone.js +2 -2
- package/lib/inputs/mask/ZipCode.js +2 -2
- package/lib/inputs/mask/helpers.d.ts +4 -0
- package/lib/inputs/mask/helpers.js +3 -3
- package/lib/inputs/mask/imaskHOC.js +203 -0
- package/lib/inputs/mask/index.js +1 -1
- package/lib/inputs/mask/types.d.ts +4 -0
- package/lib/inputs/multiSelect/ActionButtons.js +1 -1
- package/lib/inputs/multiSelect/Dropdown.js +2 -2
- package/lib/inputs/multiSelect/index.js +3 -3
- package/lib/inputs/multiSelect/types.d.ts +4 -0
- package/lib/inputs/number/BaseNumber.d.ts +1 -1
- package/lib/inputs/number/BaseNumber.js +3 -3
- package/lib/inputs/number/Currency.d.ts +1 -1
- package/lib/inputs/number/Currency.js +2 -2
- package/lib/inputs/number/Decimal.d.ts +1 -1
- package/lib/inputs/number/Decimal.js +1 -1
- package/lib/inputs/number/index.d.ts +1 -1
- package/lib/inputs/number/index.js +16 -31
- package/lib/inputs/number/types.d.ts +17 -5
- package/lib/inputs/period/Dialog.js +1 -1
- package/lib/inputs/period/Dropdown.js +1 -1
- package/lib/inputs/period/PeriodList.js +1 -1
- package/lib/inputs/period/helper.js +1 -1
- package/lib/inputs/period/index.js +34 -7
- package/lib/inputs/period/types.d.ts +3 -0
- package/lib/inputs/search/index.js +5 -5
- package/lib/inputs/select/ActionButtons.js +1 -1
- package/lib/inputs/select/Dropdown.js +2 -2
- package/lib/inputs/select/index.js +4 -4
- package/lib/inputs/select/multiple/Selecteds.js +1 -1
- package/lib/inputs/select/multiple/index.js +28 -32
- package/lib/inputs/select/simple/index.js +3 -6
- package/lib/inputs/select/types.d.ts +3 -0
- package/lib/inputs/text/index.js +1 -1
- package/lib/inputs/textarea/index.js +2 -2
- package/lib/inputs/types.d.ts +5 -3
- package/lib/internals/withTooltip.js +2 -2
- package/lib/labelMessages/index.js +1 -1
- package/lib/labels/DangerLabel.js +4 -4
- package/lib/labels/DefaultLabel.js +1 -1
- package/lib/labels/InfoLabel.js +4 -4
- package/lib/labels/PrimaryLabel.js +4 -4
- package/lib/labels/SuccessLabel.js +4 -4
- package/lib/labels/WarningLabel.js +4 -4
- package/lib/labels/index.js +1 -1
- package/lib/labels/label_container/index.js +1 -1
- package/lib/list/Header.js +1 -1
- package/lib/list/Item.js +2 -2
- package/lib/list/Separator.js +1 -1
- package/lib/list/helpers.js +1 -1
- package/lib/list/index.js +1 -1
- package/lib/menus/float/MenuItem.js +1 -1
- package/lib/menus/float/SubMenuContainer.js +1 -1
- package/lib/menus/float/helpers.js +1 -1
- package/lib/menus/float/index.js +1 -1
- package/lib/menus/index.js +1 -1
- package/lib/menus/sidenav/ExpandMenu.js +1 -1
- package/lib/menus/sidenav/MenuLink.js +1 -1
- package/lib/menus/sidenav/NavMenuItem.js +2 -2
- package/lib/menus/sidenav/NavSubMenuItem.js +1 -1
- package/lib/menus/sidenav/helpers.js +1 -1
- package/lib/menus/sidenav/index.js +2 -2
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +1 -1
- package/lib/menus/sidenav/popup_menu_search/index.js +1 -1
- package/lib/noPermission/index.js +1 -1
- package/lib/panel/Content.js +4 -4
- package/lib/panel/DangerPanel.js +2 -2
- package/lib/panel/Default.js +4 -4
- package/lib/panel/Header.js +4 -4
- package/lib/panel/InfoPanel.js +2 -2
- package/lib/panel/PrimaryPanel.js +2 -2
- package/lib/panel/SuccessPanel.js +2 -2
- package/lib/panel/ToolBar.js +1 -1
- package/lib/panel/WarningPanel.js +2 -2
- package/lib/panel/helpers.js +1 -1
- package/lib/panel/index.js +1 -1
- package/lib/popover/PopoverText.js +1 -1
- package/lib/popover/PopoverTitle.js +1 -1
- package/lib/popover/index.js +4 -6
- package/lib/popover/types.d.ts +2 -1
- package/lib/progress/Bar.js +1 -1
- package/lib/progress/index.js +2 -2
- package/lib/radio/index.d.ts +1 -1
- package/lib/radio/index.js +34 -3
- package/lib/radio/types.d.ts +6 -0
- package/lib/shortcuts/index.js +1 -1
- package/lib/skeleton/SkeletonContainer.js +1 -1
- package/lib/skeleton/index.js +2 -2
- package/lib/spinner/SpinnerLoading.js +1 -1
- package/lib/spinner/index.js +1 -1
- package/lib/split/Split.js +2 -2
- package/lib/split/SplitSide.js +1 -1
- package/lib/split/helpers.js +1 -1
- package/lib/split/index.js +1 -1
- package/lib/table/Body.js +1 -1
- package/lib/table/Header.js +1 -1
- package/lib/table/HeaderColumn.js +1 -1
- package/lib/table/Row.js +1 -1
- package/lib/table/RowColumn.js +2 -2
- package/lib/table/helpers.js +1 -1
- package/lib/table/index.js +4 -4
- package/lib/tabs/DropdownItems.js +62 -0
- package/lib/tabs/DropdownTabs.js +2 -2
- package/lib/tabs/Menu.js +3 -3
- package/lib/tabs/MenuItems.js +70 -0
- package/lib/tabs/MenuTabs.js +2 -2
- package/lib/tabs/Panel.js +1 -1
- package/lib/tabs/context.js +1 -1
- package/lib/tabs/index.js +4 -4
- package/lib/tabs/tabHelpers.js +3 -3
- package/lib/textContent/index.d.ts +19 -4
- package/lib/textContent/index.js +17 -7
- package/lib/toolbar/ButtonBar.js +4 -4
- package/lib/toolbar/LabelBar.js +4 -4
- package/lib/toolbar/Separator.js +1 -1
- package/lib/toolbar/ToolBarGroup.js +1 -1
- package/lib/toolbar/index.js +4 -4
- package/lib/tooltip/index.js +1 -1
- package/lib/treetable/Body.js +1 -1
- package/lib/treetable/Row.js +5 -5
- package/lib/treetable/index.js +3 -3
- package/lib/treeview/Header.js +1 -1
- package/lib/treeview/Node.js +4 -4
- package/lib/treeview/constants.js +1 -1
- package/lib/treeview/index.js +2 -2
- package/lib/treeview_old/Header.js +29 -0
- package/lib/treeview_old/Node.js +68 -0
- package/lib/treeview_old/index.js +43 -0
- package/lib/uitour/index.js +1 -1
- package/package.json +1 -1
- package/lib/checkbox/Label.d.ts +0 -11
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _checkbox = _interopRequireDefault(require("../checkbox"));
|
|
10
|
+
var _icons = _interopRequireDefault(require("../icons"));
|
|
11
|
+
require("../assets/styles/treeview.scss");
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
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); }
|
|
14
|
+
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; }
|
|
15
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
|
+
class TreeNode extends _react.Component {
|
|
19
|
+
constructor(props) {
|
|
20
|
+
super(props);
|
|
21
|
+
_defineProperty(this, "openCloseTree", () => {
|
|
22
|
+
this.setState({
|
|
23
|
+
isVisible: !this.state.isVisible
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
this.state = {
|
|
27
|
+
isVisible: false
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
const {
|
|
32
|
+
node,
|
|
33
|
+
showCheckBox
|
|
34
|
+
} = this.props;
|
|
35
|
+
let span = '';
|
|
36
|
+
if (node.itens.length > 0) {
|
|
37
|
+
span = /*#__PURE__*/_react.default.createElement("span", {
|
|
38
|
+
onKeyPress: null,
|
|
39
|
+
tabIndex: 0,
|
|
40
|
+
role: "button",
|
|
41
|
+
className: "opencloseicon",
|
|
42
|
+
onClick: this.openCloseTree
|
|
43
|
+
}, /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
44
|
+
name: this.state.isVisible ? 'up' : 'down',
|
|
45
|
+
size: 10
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
return /*#__PURE__*/_react.default.createElement("li", {
|
|
49
|
+
className: "treeviewitem"
|
|
50
|
+
}, span, showCheckBox ? /*#__PURE__*/_react.default.createElement(_checkbox.default, {
|
|
51
|
+
id: node.id,
|
|
52
|
+
label: node.titulo
|
|
53
|
+
}) : node.titulo, /*#__PURE__*/_react.default.createElement("ul", {
|
|
54
|
+
className: "nodelist"
|
|
55
|
+
}, this.state.isVisible && this.props.children));
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
TreeNode.defaultProps = {
|
|
59
|
+
showCheckBox: false,
|
|
60
|
+
data: []
|
|
61
|
+
};
|
|
62
|
+
TreeNode.propTypes = {
|
|
63
|
+
showCheckBox: _propTypes.default.bool,
|
|
64
|
+
data: _propTypes.default.arrayOf(_propTypes.default.element),
|
|
65
|
+
node: _propTypes.default.object.isRequired,
|
|
66
|
+
children: _propTypes.default.arrayOf(_propTypes.default.element).isRequired
|
|
67
|
+
};
|
|
68
|
+
var _default = exports.default = TreeNode;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "TreeNode", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Node.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "TreeViewHeader", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _Header.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
exports.default = void 0;
|
|
19
|
+
var _react = _interopRequireDefault(require("react"));
|
|
20
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
21
|
+
var _Node = _interopRequireDefault(require("./Node"));
|
|
22
|
+
var _Header = _interopRequireDefault(require("./Header"));
|
|
23
|
+
require("../assets/styles/treeview.scss");
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
+
const TreeView = props => {
|
|
26
|
+
const {
|
|
27
|
+
customClass,
|
|
28
|
+
defaultBorder
|
|
29
|
+
} = props;
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("ul", {
|
|
31
|
+
className: "treeview-component ".concat(customClass, " ").concat(defaultBorder && '-defaultborder')
|
|
32
|
+
}, props.children));
|
|
33
|
+
};
|
|
34
|
+
TreeView.defaultProps = {
|
|
35
|
+
customClass: '',
|
|
36
|
+
defaultBorder: true
|
|
37
|
+
};
|
|
38
|
+
TreeView.propTypes = {
|
|
39
|
+
children: _propTypes.default.arrayOf(_propTypes.default.element).isRequired,
|
|
40
|
+
customClass: _propTypes.default.string,
|
|
41
|
+
defaultBorder: _propTypes.default.bool
|
|
42
|
+
};
|
|
43
|
+
var _default = exports.default = TreeView;
|
package/lib/uitour/index.js
CHANGED
|
@@ -13,7 +13,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
13
13
|
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; }
|
|
14
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
15
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
|
-
function _defineProperty(
|
|
16
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
18
18
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
19
|
const UiTour = props => {
|
package/package.json
CHANGED
package/lib/checkbox/Label.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ICheckBoxProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PermissionAttr.js';
|
|
4
|
-
import '../@types/Position.js';
|
|
5
|
-
|
|
6
|
-
declare const _default: {
|
|
7
|
-
(props: ICheckBoxProps): JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export { _default as default };
|