linear-react-components-ui 1.0.14 → 1.1.0-beta.0
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/.eslintrc.json +45 -77
- package/.gitlab-ci.yml +2 -2
- package/.vscode/settings.json +3 -3
- package/babel.config.json +2 -2
- package/lib/@types/Align.d.ts +1 -1
- package/lib/@types/ButtonTypes.d.ts +1 -1
- package/lib/@types/ColorStyles.d.ts +1 -1
- package/lib/@types/DataCombo.d.ts +1 -1
- package/lib/@types/Icon.d.ts +1 -1
- package/lib/@types/LabelStyles.d.ts +1 -1
- package/lib/@types/Period.d.ts +1 -1
- package/lib/@types/PermissionAttr.d.ts +1 -1
- package/lib/@types/PointerEvents.d.ts +1 -1
- package/lib/@types/Position.d.ts +1 -1
- package/lib/@types/PositionAlert.d.ts +1 -1
- package/lib/@types/Size.d.ts +1 -1
- package/lib/@types/SizePixels.d.ts +1 -1
- package/lib/@types/StorageMock.d.ts +1 -1
- package/lib/alerts/AlertContainer.js +7 -8
- package/lib/alerts/AlertProvider.js +17 -18
- package/lib/alerts/BaseAlert.js +5 -6
- package/lib/alerts/Message.js +12 -13
- package/lib/alerts/helpers.js +2 -3
- package/lib/alerts/index.js +4 -5
- package/lib/alerts/types.d.ts +1 -1
- package/lib/alerts/withAlert.js +8 -9
- package/lib/assets/styles/tabs.scss +1 -1
- package/lib/avatar/index.js +13 -14
- package/lib/avatar/types.d.ts +1 -1
- package/lib/badge/index.js +5 -6
- package/lib/badge/types.d.ts +1 -1
- package/lib/buttons/ActivateButton.js +4 -5
- package/lib/buttons/AddButton.js +5 -6
- package/lib/buttons/Button.js +7 -8
- package/lib/buttons/ButtonGroups.js +4 -5
- package/lib/buttons/CancelButton.js +4 -5
- package/lib/buttons/DangerButton.js +4 -5
- package/lib/buttons/DefaultButton.js +18 -19
- package/lib/buttons/DestroyButton.js +5 -6
- package/lib/buttons/EditButton.js +4 -5
- package/lib/buttons/InactivateButton.js +4 -5
- package/lib/buttons/InfoButton.js +4 -5
- package/lib/buttons/PrimaryButton.js +4 -5
- package/lib/buttons/RestoreButton.js +4 -5
- package/lib/buttons/SaveButton.js +4 -5
- package/lib/buttons/SuccessButton.js +4 -5
- package/lib/buttons/WarningButton.js +4 -5
- package/lib/buttons/button_container/index.js +10 -11
- package/lib/buttons/index.js +17 -18
- package/lib/buttons/split_button/index.js +5 -6
- package/lib/buttons/types.d.ts +1 -1
- package/lib/calendar/DangerCalendar.js +4 -5
- package/lib/calendar/InfoCalendar.js +4 -5
- package/lib/calendar/PrimaryCalendar.js +4 -5
- package/lib/calendar/SuccessCalendar.js +4 -5
- package/lib/calendar/WarningCalendar.js +4 -5
- package/lib/calendar/base/Day.js +8 -9
- package/lib/calendar/base/Month.js +5 -6
- package/lib/calendar/base/Week.js +5 -6
- package/lib/calendar/base/helpers.js +7 -9
- package/lib/calendar/base/index.js +17 -18
- package/lib/calendar/index.js +8 -9
- package/lib/calendar/types.d.ts +1 -1
- package/lib/checkbox/Label.js +4 -5
- package/lib/checkbox/index.js +13 -14
- package/lib/checkbox/types.d.ts +1 -1
- package/lib/dialog/Alert.js +6 -7
- package/lib/dialog/Custom.js +12 -13
- package/lib/dialog/Error.js +6 -7
- package/lib/dialog/Information.js +6 -7
- package/lib/dialog/Question.js +10 -11
- package/lib/dialog/Warning.js +8 -8
- package/lib/dialog/base/Content.js +4 -5
- package/lib/dialog/base/Footer.js +4 -5
- package/lib/dialog/base/Header.js +12 -13
- package/lib/dialog/base/index.js +10 -11
- package/lib/dialog/base/style.js +2 -3
- package/lib/dialog/form/index.js +23 -25
- package/lib/dialog/index.js +9 -10
- package/lib/dialog/types.d.ts +1 -1
- package/lib/drawer/Content.js +8 -9
- package/lib/drawer/Drawer.js +19 -20
- package/lib/drawer/Header.js +19 -20
- package/lib/drawer/helpers.js +4 -5
- package/lib/drawer/index.js +5 -6
- package/lib/drawer/types.d.ts +1 -1
- package/lib/dropdown/Popup.js +4 -5
- package/lib/dropdown/helper.js +3 -5
- package/lib/dropdown/types.d.ts +1 -1
- package/lib/dropdown/withDropdown.js +13 -15
- package/lib/fieldset/index.js +15 -16
- package/lib/fieldset/types.d.ts +1 -1
- package/lib/form/Field.d.ts +1 -1
- package/lib/form/Field.js +20 -20
- package/lib/form/FieldArray.js +20 -21
- package/lib/form/FieldNumber.js +15 -16
- package/lib/form/FieldPeriod.js +21 -22
- package/lib/form/helpers.js +12 -18
- package/lib/form/index.js +28 -29
- package/lib/form/types.d.ts +1 -1
- package/lib/form/withFieldHOC.js +11 -12
- package/lib/form/withFormSecurity.js +9 -11
- package/lib/gridlayout/GridCol.js +4 -5
- package/lib/gridlayout/GridRow.js +4 -5
- package/lib/gridlayout/index.js +4 -5
- package/lib/gridlayout/types.d.ts +1 -1
- package/lib/hint/index.js +8 -9
- package/lib/hint/types.d.ts +1 -1
- package/lib/icons/helper.js +3 -4
- package/lib/icons/index.js +10 -11
- package/lib/icons/types.d.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +10 -10
- package/lib/inputs/base/InputTextBase.js +21 -22
- package/lib/inputs/base/helpers.js +10 -14
- package/lib/inputs/base/types.d.ts +1 -1
- package/lib/inputs/color/index.js +13 -14
- package/lib/inputs/color/types.d.ts +1 -1
- package/lib/inputs/date/Dialog.js +4 -5
- package/lib/inputs/date/Dropdown.js +4 -5
- package/lib/inputs/date/helpers.js +9 -13
- package/lib/inputs/date/index.js +20 -21
- package/lib/inputs/date/types.d.ts +1 -1
- package/lib/inputs/file/DefaultFile.js +19 -20
- package/lib/inputs/file/DragDropFile.js +42 -43
- package/lib/inputs/file/File.js +9 -10
- package/lib/inputs/file/FileButtonSettings.js +6 -7
- package/lib/inputs/file/helpers.js +2 -3
- package/lib/inputs/file/index.js +5 -6
- package/lib/inputs/file/types.d.ts +1 -1
- package/lib/inputs/inputHOC.js +10 -11
- package/lib/inputs/mask/BaseMask.js +9 -10
- package/lib/inputs/mask/Cnpj.js +9 -10
- package/lib/inputs/mask/Cpf.js +9 -10
- package/lib/inputs/mask/Phone.js +4 -5
- package/lib/inputs/mask/ZipCode.js +4 -5
- package/lib/inputs/mask/helpers.js +7 -7
- package/lib/inputs/mask/imaskHOC.js +9 -10
- package/lib/inputs/mask/index.js +7 -8
- package/lib/inputs/mask/types.d.ts +1 -1
- package/lib/inputs/multiSelect/ActionButtons.js +10 -11
- package/lib/inputs/multiSelect/Dropdown.js +26 -27
- package/lib/inputs/multiSelect/helper.js +2 -3
- package/lib/inputs/multiSelect/index.js +21 -22
- package/lib/inputs/multiSelect/types.d.ts +1 -1
- package/lib/inputs/number/BaseNumber.js +9 -10
- package/lib/inputs/number/Currency.js +5 -6
- package/lib/inputs/number/Decimal.js +4 -5
- package/lib/inputs/number/format_number.js +4 -7
- package/lib/inputs/number/index.js +6 -7
- package/lib/inputs/number/types.d.ts +1 -1
- package/lib/inputs/period/Dialog.js +4 -5
- package/lib/inputs/period/Dropdown.js +6 -7
- package/lib/inputs/period/PeriodList.js +7 -8
- package/lib/inputs/period/helper.js +10 -14
- package/lib/inputs/period/index.js +48 -49
- package/lib/inputs/period/types.d.ts +1 -1
- package/lib/inputs/search/index.js +19 -20
- package/lib/inputs/select/ActionButtons.js +7 -8
- package/lib/inputs/select/Dropdown.js +22 -23
- package/lib/inputs/select/helper.js +6 -11
- package/lib/inputs/select/index.js +6 -7
- package/lib/inputs/select/multiple/Selecteds.js +6 -7
- package/lib/inputs/select/multiple/index.js +15 -16
- package/lib/inputs/select/simple/index.js +15 -16
- package/lib/inputs/select/types.d.ts +1 -1
- package/lib/inputs/text/index.js +4 -5
- package/lib/inputs/text/types.d.ts +1 -1
- package/lib/inputs/textarea/index.js +5 -6
- package/lib/inputs/textarea/types.d.ts +1 -1
- package/lib/inputs/types.d.ts +1 -1
- package/lib/internals/colorStyles.js +2 -3
- package/lib/internals/constants.js +2 -4
- package/lib/internals/types.d.ts +1 -1
- package/lib/internals/withTooltip.js +10 -11
- package/lib/labelMessages/index.js +12 -13
- package/lib/labelMessages/types.d.ts +1 -1
- package/lib/labels/DangerLabel.js +4 -5
- package/lib/labels/DefaultLabel.js +9 -10
- package/lib/labels/InfoLabel.js +4 -5
- package/lib/labels/PrimaryLabel.js +4 -5
- package/lib/labels/SuccessLabel.js +4 -5
- package/lib/labels/WarningLabel.js +4 -5
- package/lib/labels/index.js +9 -10
- package/lib/labels/label_container/index.js +5 -6
- package/lib/labels/types.d.ts +1 -1
- package/lib/list/Header.js +5 -6
- package/lib/list/Item.js +18 -19
- package/lib/list/Separator.js +4 -5
- package/lib/list/helpers.js +4 -6
- package/lib/list/index.js +17 -18
- package/lib/list/types.d.ts +1 -1
- package/lib/menus/float/MenuItem.js +14 -15
- package/lib/menus/float/SubMenuContainer.js +18 -19
- package/lib/menus/float/helpers.js +4 -5
- package/lib/menus/float/index.d.ts +10 -10
- package/lib/menus/float/index.js +10 -11
- package/lib/menus/float/types.d.ts +1 -1
- package/lib/menus/index.js +3 -4
- package/lib/menus/sidenav/ExpandMenu.js +5 -6
- package/lib/menus/sidenav/MenuLink.js +5 -6
- package/lib/menus/sidenav/NavMenuGroup.js +7 -8
- package/lib/menus/sidenav/NavMenuItem.js +15 -16
- package/lib/menus/sidenav/NavSubMenuItem.js +10 -11
- package/lib/menus/sidenav/helpers.js +5 -8
- package/lib/menus/sidenav/index.js +22 -23
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +7 -8
- package/lib/menus/sidenav/popup_menu_search/index.js +15 -16
- package/lib/menus/sidenav/types.d.ts +1 -1
- package/lib/noPermission/index.js +7 -8
- package/lib/panel/Content.d.ts +1 -1
- package/lib/panel/Content.js +8 -9
- package/lib/panel/DangerPanel.d.ts +1 -1
- package/lib/panel/DangerPanel.js +5 -6
- package/lib/panel/Default.d.ts +1 -1
- package/lib/panel/Default.js +11 -12
- package/lib/panel/Header.d.ts +1 -1
- package/lib/panel/Header.js +14 -15
- package/lib/panel/InfoPanel.d.ts +1 -1
- package/lib/panel/InfoPanel.js +5 -6
- package/lib/panel/PrimaryPanel.d.ts +1 -1
- package/lib/panel/PrimaryPanel.js +5 -6
- package/lib/panel/SuccessPanel.d.ts +1 -1
- package/lib/panel/SuccessPanel.js +5 -6
- package/lib/panel/ToolBar.d.ts +1 -1
- package/lib/panel/ToolBar.js +4 -5
- package/lib/panel/WarningPanel.d.ts +1 -1
- package/lib/panel/WarningPanel.js +5 -6
- package/lib/panel/helpers.d.ts +1 -1
- package/lib/panel/helpers.js +4 -5
- package/lib/panel/index.d.ts +1 -1
- package/lib/panel/index.js +10 -11
- package/lib/panel/types.d.ts +1 -1
- package/lib/permissionValidations.js +4 -7
- package/lib/popover/PopoverText.js +4 -5
- package/lib/popover/PopoverTitle.js +4 -5
- package/lib/popover/index.js +8 -9
- package/lib/popover/types.d.ts +1 -1
- package/lib/progress/Bar.js +5 -6
- package/lib/progress/index.js +11 -12
- package/lib/progress/types.d.ts +1 -1
- package/lib/radio/index.js +14 -15
- package/lib/radio/types.d.ts +1 -1
- package/lib/shortcuts/index.js +5 -6
- package/lib/shortcuts/types.d.ts +1 -1
- package/lib/skeleton/SkeletonContainer.js +4 -5
- package/lib/skeleton/index.js +11 -12
- package/lib/skeleton/types.d.ts +1 -1
- package/lib/spinner/SpinnerLoading.js +41 -42
- package/lib/spinner/index.js +10 -11
- package/lib/spinner/types.d.ts +1 -1
- package/lib/split/Split.js +15 -16
- package/lib/split/SplitSide.js +8 -9
- package/lib/split/helpers.d.ts +1 -1
- package/lib/split/helpers.js +4 -5
- package/lib/split/index.js +4 -5
- package/lib/split/types.d.ts +1 -1
- package/lib/table/Body.js +14 -15
- package/lib/table/Header.js +16 -17
- package/lib/table/HeaderColumn.js +9 -10
- package/lib/table/Row.js +15 -16
- package/lib/table/RowColumn.js +13 -14
- package/lib/table/helpers.js +6 -9
- package/lib/table/index.js +16 -17
- package/lib/table/types.d.ts +1 -1
- package/lib/tabs/DropdownItems.js +12 -13
- package/lib/tabs/Menu.js +5 -6
- package/lib/tabs/MenuItems.js +10 -11
- package/lib/tabs/Panel.d.ts +1 -1
- package/lib/tabs/Panel.js +22 -22
- package/lib/tabs/index.js +15 -15
- package/lib/tabs/tabHelpers.d.ts +2 -3
- package/lib/tabs/tabHelpers.js +27 -17
- package/lib/tabs/types.d.ts +2 -1
- package/lib/toolbar/ButtonBar.js +25 -26
- package/lib/toolbar/LabelBar.js +17 -18
- package/lib/toolbar/Separator.js +4 -5
- package/lib/toolbar/ToolBarGroup.js +4 -5
- package/lib/toolbar/helpers.js +2 -3
- package/lib/toolbar/index.js +14 -15
- package/lib/toolbar/types.d.ts +1 -1
- package/lib/tooltip/index.js +9 -10
- package/lib/tooltip/types.d.ts +1 -1
- package/lib/treetable/Body.js +9 -10
- package/lib/treetable/Header.js +7 -8
- package/lib/treetable/Row.d.ts +1 -1
- package/lib/treetable/Row.js +41 -42
- package/lib/treetable/helpers.d.ts +1 -1
- package/lib/treetable/helpers.js +4 -7
- package/lib/treetable/index.d.ts +2 -2
- package/lib/treetable/index.js +11 -12
- package/lib/treeview/Header.js +5 -6
- package/lib/treeview/Node.js +33 -34
- package/lib/treeview/constants.js +2 -3
- package/lib/treeview/index.js +22 -23
- package/lib/treeview/types.d.ts +1 -1
- package/lib/{types-fe4a1068.d.ts → types-PItfhaS-.d.ts} +1 -1
- package/lib/{types.d-73cece43.d.ts → types.d-BfM3lUbt.d.ts} +1 -1
- package/lib/uitour/helpers.js +4 -7
- package/lib/uitour/index.js +22 -23
- package/lib/uitour/types.d.ts +1 -1
- package/package.json +75 -76
package/lib/treeview/index.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
Object.defineProperty(exports, "TreeNode", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function get() {
|
|
10
|
-
return _Node
|
|
10
|
+
return _Node["default"];
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "TreeViewHeader", {
|
|
14
14
|
enumerable: true,
|
|
15
15
|
get: function get() {
|
|
16
|
-
return _Header
|
|
16
|
+
return _Header["default"];
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
exports
|
|
19
|
+
exports["default"] = void 0;
|
|
20
20
|
var _react = _interopRequireWildcard(require("react"));
|
|
21
21
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
22
22
|
var _Node = _interopRequireDefault(require("./Node"));
|
|
23
23
|
var _Header = _interopRequireDefault(require("./Header"));
|
|
24
24
|
require("../assets/styles/treeview.scss");
|
|
25
25
|
var _constants = require("./constants");
|
|
26
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
|
-
function _getRequireWildcardCache(
|
|
28
|
-
function _interopRequireWildcard(
|
|
29
|
-
function ownKeys(
|
|
30
|
-
function _objectSpread(
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
28
|
+
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 && Object.prototype.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; }
|
|
29
|
+
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; }
|
|
30
|
+
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; }
|
|
31
31
|
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; }
|
|
32
|
-
function _toPropertyKey(
|
|
33
|
-
function _toPrimitive(
|
|
32
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
33
|
+
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); }
|
|
34
34
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
35
35
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
36
36
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
@@ -39,7 +39,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
39
39
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
40
40
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
41
41
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
42
|
-
function _iterableToArrayLimit(
|
|
42
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
43
43
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
44
44
|
var TreeView = function TreeView(props) {
|
|
45
45
|
var _props$selectedIds = props.selectedIds,
|
|
@@ -238,7 +238,7 @@ var TreeView = function TreeView(props) {
|
|
|
238
238
|
setAlreadyOpenedIds(newAlreadyOpenedIds);
|
|
239
239
|
};
|
|
240
240
|
var handleCheck = function handleCheck(nodeId, handlingSelectedIds, isParent) {
|
|
241
|
-
var codigos = _lodash
|
|
241
|
+
var codigos = _lodash["default"].isArray(nodeId) ? nodeId : [nodeId];
|
|
242
242
|
var newSelectedIds = [].concat(_toConsumableArray(currentSelectedIds), _toConsumableArray(codigos));
|
|
243
243
|
if (isParent && (handlingSelectedIds || isHandlingSelectedIds) && allowCheckAllChildren) {
|
|
244
244
|
if (allowCheckAllAncestry) {
|
|
@@ -254,7 +254,7 @@ var TreeView = function TreeView(props) {
|
|
|
254
254
|
return newSelectedIds;
|
|
255
255
|
};
|
|
256
256
|
var handleUncheck = function handleUncheck(nodeId, handlingSelectedIds, isParent, required) {
|
|
257
|
-
var codigos = _lodash
|
|
257
|
+
var codigos = _lodash["default"].isArray(nodeId) ? nodeId : [nodeId];
|
|
258
258
|
var newSelectedIds = currentSelectedIds.filter(function (id) {
|
|
259
259
|
return !codigos.includes(id);
|
|
260
260
|
});
|
|
@@ -298,7 +298,7 @@ var TreeView = function TreeView(props) {
|
|
|
298
298
|
Object.assign(ids, idWithChildren);
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
return /*#__PURE__*/_react
|
|
301
|
+
return /*#__PURE__*/_react["default"].createElement(_Node["default"], {
|
|
302
302
|
key: "node-".concat(node.id),
|
|
303
303
|
node: node,
|
|
304
304
|
idsInLoading: idsInLoading,
|
|
@@ -330,14 +330,14 @@ var TreeView = function TreeView(props) {
|
|
|
330
330
|
requiredIds = [].concat(_toConsumableArray(requiredIds), _toConsumableArray(requiredParents));
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
|
-
setRequiredParentsIds(_lodash
|
|
334
|
-
setCurrentSelectedIds(_lodash
|
|
333
|
+
setRequiredParentsIds(_lodash["default"].uniq(requiredIds));
|
|
334
|
+
setCurrentSelectedIds(_lodash["default"].uniq(newSelectedIds));
|
|
335
335
|
setSelectedIdsUpdatedOnMount(function (prevState) {
|
|
336
336
|
return prevState || true;
|
|
337
337
|
});
|
|
338
338
|
};
|
|
339
339
|
(0, _react.useEffect)(function () {
|
|
340
|
-
var isSameSelectedIds = _lodash
|
|
340
|
+
var isSameSelectedIds = _lodash["default"].isEqual(propSelectedIds.sort(), selectedIds.sort());
|
|
341
341
|
if (enableDynamicData && props.data !== data) {
|
|
342
342
|
setData(props.data);
|
|
343
343
|
} else if (!isSameSelectedIds) {
|
|
@@ -369,14 +369,13 @@ var TreeView = function TreeView(props) {
|
|
|
369
369
|
handlerUpdateSelectedIds: updateSelectedIds,
|
|
370
370
|
handlerToggleCheckChildren: toggleCheckChildren
|
|
371
371
|
});
|
|
372
|
-
return /*#__PURE__*/_react
|
|
372
|
+
return /*#__PURE__*/_react["default"].createElement(_constants.TreeviewContext.Provider, {
|
|
373
373
|
value: contextValues
|
|
374
|
-
}, /*#__PURE__*/_react
|
|
374
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
375
375
|
className: "treeview-component ".concat(customClass)
|
|
376
|
-
}, children, /*#__PURE__*/_react
|
|
376
|
+
}, children, /*#__PURE__*/_react["default"].createElement("ul", {
|
|
377
377
|
style: styleForContainer,
|
|
378
378
|
className: "treeviewcontainer ".concat(bordered && '-bordered')
|
|
379
379
|
}, buildTree(data))));
|
|
380
380
|
};
|
|
381
|
-
var _default = TreeView;
|
|
382
|
-
exports.default = _default;
|
|
381
|
+
var _default = exports["default"] = TreeView;
|
package/lib/treeview/types.d.ts
CHANGED
|
@@ -101,4 +101,4 @@ interface IDataMock {
|
|
|
101
101
|
itens: ItensMock[];
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
export { IDataMock, INodeElementsValidations, INodeValidationProps, ITreeHeaderProps, ITreeNodeProps, ITreeViewContext, ITreeviewProps, IValidator, NodeItem };
|
|
104
|
+
export type { IDataMock, INodeElementsValidations, INodeValidationProps, ITreeHeaderProps, ITreeNodeProps, ITreeViewContext, ITreeviewProps, IValidator, NodeItem };
|
|
@@ -45,4 +45,4 @@ interface IParameterFunction {
|
|
|
45
45
|
componentName: string;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export { ContextProps as C, IPanelProps as I, PanelContext as P, IPanelContentProps as a, IPanelHeaderProps as b, IParameterFunction as c, getCurrentThreshold as g, numberAroundZeroAndOne as n };
|
|
48
|
+
export { type ContextProps as C, type IPanelProps as I, PanelContext as P, type IPanelContentProps as a, type IPanelHeaderProps as b, type IParameterFunction as c, getCurrentThreshold as g, numberAroundZeroAndOne as n };
|
|
@@ -43,4 +43,4 @@ interface ITreeTableRow extends ITableRowProps {
|
|
|
43
43
|
rowLevel: number;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
export { ITreeTableRow as I, RowItem as R, ITreeTableProps as a, IRowElementsValidations as b };
|
|
46
|
+
export type { ITreeTableRow as I, RowItem as R, ITreeTableProps as a, IRowElementsValidations as b };
|
package/lib/uitour/helpers.js
CHANGED
|
@@ -4,12 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.STEP_POSITIONS = exports.ARROW_WIDTH = exports.ARROW_HEIGHT = void 0;
|
|
7
|
-
var ARROW_WIDTH = 26;
|
|
8
|
-
exports.
|
|
9
|
-
var
|
|
10
|
-
exports.ARROW_HEIGHT = ARROW_HEIGHT;
|
|
11
|
-
var STEP_POSITIONS = {
|
|
7
|
+
var ARROW_WIDTH = exports.ARROW_WIDTH = 26;
|
|
8
|
+
var ARROW_HEIGHT = exports.ARROW_HEIGHT = 20;
|
|
9
|
+
var STEP_POSITIONS = exports.STEP_POSITIONS = {
|
|
12
10
|
right: 'right',
|
|
13
11
|
left: 'left'
|
|
14
|
-
};
|
|
15
|
-
exports.STEP_POSITIONS = STEP_POSITIONS;
|
|
12
|
+
};
|
package/lib/uitour/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports
|
|
7
|
+
exports["default"] = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _buttons = _interopRequireWildcard(require("../buttons"));
|
|
10
10
|
require("../assets/styles/uitour.scss");
|
|
11
11
|
var _helpers = require("./helpers");
|
|
12
|
-
function _getRequireWildcardCache(
|
|
13
|
-
function _interopRequireWildcard(
|
|
14
|
-
function ownKeys(
|
|
15
|
-
function _objectSpread(
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
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 && Object.prototype.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
|
+
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
|
+
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
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
|
-
function _toPropertyKey(
|
|
18
|
-
function _toPrimitive(
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
20
20
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
21
21
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
22
22
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
23
|
-
function _iterableToArrayLimit(
|
|
23
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
24
24
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
25
25
|
var UiTour = function UiTour(props) {
|
|
26
26
|
var data = props.data,
|
|
@@ -191,16 +191,16 @@ var UiTour = function UiTour(props) {
|
|
|
191
191
|
};
|
|
192
192
|
}, [visible, data]);
|
|
193
193
|
if (!showTour) return null;
|
|
194
|
-
return /*#__PURE__*/_react
|
|
194
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
195
195
|
className: "uitour-component"
|
|
196
|
-
}, currentStep && /*#__PURE__*/_react
|
|
196
|
+
}, currentStep && /*#__PURE__*/_react["default"].createElement("div", {
|
|
197
197
|
ref: stepRef,
|
|
198
198
|
className: "step -".concat(stepPosition),
|
|
199
199
|
key: currentStep.id,
|
|
200
200
|
style: _objectSpread({}, stepDimensions)
|
|
201
|
-
}, showCloseButton && /*#__PURE__*/_react
|
|
201
|
+
}, showCloseButton && /*#__PURE__*/_react["default"].createElement("div", {
|
|
202
202
|
className: "closebutton"
|
|
203
|
-
}, /*#__PURE__*/_react
|
|
203
|
+
}, /*#__PURE__*/_react["default"].createElement(_buttons["default"], {
|
|
204
204
|
iconName: "cancel2",
|
|
205
205
|
iconAlign: "center",
|
|
206
206
|
size: "large",
|
|
@@ -210,35 +210,34 @@ var UiTour = function UiTour(props) {
|
|
|
210
210
|
padding: 0
|
|
211
211
|
},
|
|
212
212
|
onClick: onCloseTour
|
|
213
|
-
})), /*#__PURE__*/_react
|
|
213
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
214
214
|
className: "content"
|
|
215
|
-
}, /*#__PURE__*/_react
|
|
215
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
216
216
|
className: "number"
|
|
217
|
-
}, currentStep.number), /*#__PURE__*/_react
|
|
217
|
+
}, currentStep.number), /*#__PURE__*/_react["default"].createElement("div", {
|
|
218
218
|
className: "about"
|
|
219
|
-
}, /*#__PURE__*/_react
|
|
219
|
+
}, /*#__PURE__*/_react["default"].createElement("h3", null, currentStep.title), /*#__PURE__*/_react["default"].createElement("p", {
|
|
220
220
|
className: "description",
|
|
221
221
|
ref: descriptionRef
|
|
222
|
-
}))), /*#__PURE__*/_react
|
|
222
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
223
223
|
className: "footer"
|
|
224
|
-
}, /*#__PURE__*/_react
|
|
224
|
+
}, /*#__PURE__*/_react["default"].createElement(_buttons.PrimaryButton, {
|
|
225
225
|
label: backButtonLabel,
|
|
226
226
|
onClick: handleBackStep,
|
|
227
227
|
disabled: !hasBackStep,
|
|
228
228
|
visible: showBackButton,
|
|
229
229
|
customClass: "back-button"
|
|
230
|
-
}), /*#__PURE__*/_react
|
|
230
|
+
}), /*#__PURE__*/_react["default"].createElement(_buttons.PrimaryButton, {
|
|
231
231
|
label: nextButtonLabel,
|
|
232
232
|
onClick: handleNextStep,
|
|
233
233
|
disabled: !hasNextStep,
|
|
234
234
|
visible: !isLastStep,
|
|
235
235
|
customClass: "next-button"
|
|
236
|
-
}), /*#__PURE__*/_react
|
|
236
|
+
}), /*#__PURE__*/_react["default"].createElement(_buttons.PrimaryButton, {
|
|
237
237
|
label: finishButtonLabel,
|
|
238
238
|
visible: isLastStep,
|
|
239
239
|
onClick: onCloseTour,
|
|
240
240
|
customClass: "finish-button"
|
|
241
241
|
}))));
|
|
242
242
|
};
|
|
243
|
-
var _default = UiTour;
|
|
244
|
-
exports.default = _default;
|
|
243
|
+
var _default = exports["default"] = UiTour;
|
package/lib/uitour/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linear-react-components-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.1.0-beta.0",
|
|
4
4
|
"description": "Linear Sistemas ReactJs Components",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.cjs",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"lib": "babel src/lib/ -d lib/ --extensions \".js,.jsx,.ts,.tsx\" --ignore **/*.spec.tsx && babel src/lib/assets -d lib/assets --copy-files && npm run lib:types",
|
|
9
|
-
"lib:types": "tsup --dts-only --dts --external react",
|
|
10
|
-
"lib:watch": "babel src/lib -w -d lib/ ",
|
|
9
|
+
"lib:types": "NODE_OPTIONS='--max-old-space-size=16384' tsup --dts-only --dts --external react",
|
|
11
10
|
"demo": "node scripts/start.js",
|
|
12
11
|
"demo:prod": "webpack --config ./config/webpack.config.js --mode production",
|
|
13
|
-
"check:js": "
|
|
12
|
+
"check:js": "eslint ./src/** --ext=.jsx,.js,.tsx,.ts",
|
|
14
13
|
"deploy:heroku": "npm run demo:prod && cd demo && git commit -am 'Deploy' && git push heroku master",
|
|
15
14
|
"deploy:vercel": "npm run demo:prod && vercel --prod demo",
|
|
16
15
|
"publish:npm": "npm run lib && npm publish",
|
|
@@ -23,24 +22,52 @@
|
|
|
23
22
|
},
|
|
24
23
|
"keywords": [],
|
|
25
24
|
"license": "MIT",
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
25
|
+
"author": "Deivisson Bruno <deivisson.bruno@linearsistemas.com.br>",
|
|
26
|
+
"homepage": "",
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git@gitlab.com:linear-front/linear-react-components-ui.git"
|
|
30
|
+
},
|
|
31
|
+
"browserslist": {
|
|
32
|
+
"production": [
|
|
33
|
+
">0.2%",
|
|
34
|
+
"not dead",
|
|
35
|
+
"not op_mini all"
|
|
36
|
+
],
|
|
37
|
+
"development": [
|
|
38
|
+
"last 1 chrome version",
|
|
39
|
+
"last 1 firefox version",
|
|
40
|
+
"last 1 safari version"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@types/react-dom": "18.0.5",
|
|
45
|
+
"attach-dom-events": "1.0.0",
|
|
46
|
+
"browserslist": "4.18.1",
|
|
47
|
+
"history": "5.0.0",
|
|
48
|
+
"imask": "6.4.3",
|
|
49
|
+
"init": "0.1.2",
|
|
50
|
+
"lodash": "4.17.21",
|
|
51
|
+
"moment": "^2.30.1",
|
|
52
|
+
"prop-types": "15.8.1",
|
|
53
|
+
"react-dev-utils": "12.0.0",
|
|
54
|
+
"react-router-dom": "6.21.3",
|
|
55
|
+
"react-syntax-highlighter": "15.5.0",
|
|
56
|
+
"semver": "^7.5.4",
|
|
57
|
+
"uuid": "3.3.3"
|
|
31
58
|
},
|
|
32
59
|
"devDependencies": {
|
|
33
|
-
"@babel/cli": "7.
|
|
34
|
-
"@babel/core": "7.
|
|
60
|
+
"@babel/cli": "7.23.9",
|
|
61
|
+
"@babel/core": "7.23.9",
|
|
35
62
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
36
63
|
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
|
|
37
64
|
"@babel/preset-env": "7.20.2",
|
|
38
65
|
"@babel/preset-react": "7.18.6",
|
|
39
|
-
"@babel/preset-typescript": "7.
|
|
40
|
-
"@
|
|
66
|
+
"@babel/preset-typescript": "7.23.3",
|
|
67
|
+
"@svgr/webpack": "8.1.0",
|
|
41
68
|
"@swc/core": "1.3.29",
|
|
42
69
|
"@testing-library/jest-dom": "5.16.5",
|
|
43
|
-
"@testing-library/react": "
|
|
70
|
+
"@testing-library/react": "14.1.2",
|
|
44
71
|
"@testing-library/user-event": "14.4.3",
|
|
45
72
|
"@types/lodash": "^4.14.191",
|
|
46
73
|
"@types/node": "17.0.45",
|
|
@@ -51,74 +78,46 @@
|
|
|
51
78
|
"@types/react-syntax-highlighter": "15.5.6",
|
|
52
79
|
"@types/react-transition-group": "4.4.5",
|
|
53
80
|
"@types/uuid": "8.3.4",
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "5.48.1",
|
|
55
|
-
"@typescript-eslint/parser": "^5.48.1",
|
|
56
81
|
"babel-eslint": "7.2.3",
|
|
57
|
-
"babel-jest": "
|
|
58
|
-
"babel-loader": "9.1.
|
|
82
|
+
"babel-jest": "29.7.0",
|
|
83
|
+
"babel-loader": "9.1.3",
|
|
59
84
|
"babel-polyfill": "6.26.0",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"eslint": "
|
|
65
|
-
"eslint-
|
|
66
|
-
"eslint-
|
|
67
|
-
"eslint-
|
|
68
|
-
"eslint-plugin-
|
|
69
|
-
"eslint-plugin-
|
|
70
|
-
"eslint-plugin-
|
|
71
|
-
"
|
|
72
|
-
"file-loader": "1.1.11",
|
|
85
|
+
"babel-preset-react-app": "10.0.1",
|
|
86
|
+
"css-loader": "6.5.1",
|
|
87
|
+
"eslint": "8.56.0",
|
|
88
|
+
"eslint-config-airbnb": "19.0.4",
|
|
89
|
+
"eslint-config-airbnb-typescript": "17.1.0",
|
|
90
|
+
"eslint-import-resolver-typescript": "3.6.1",
|
|
91
|
+
"eslint-plugin-import": "2.29.1",
|
|
92
|
+
"eslint-plugin-jsx-a11y": "6.8.0",
|
|
93
|
+
"eslint-plugin-promise": "6.1.1",
|
|
94
|
+
"eslint-plugin-react": "7.33.2",
|
|
95
|
+
"eslint-plugin-react-hooks": "4.6.0",
|
|
96
|
+
"file-loader": "6.2.0",
|
|
73
97
|
"html-webpack-plugin": "5.5.0",
|
|
74
|
-
"husky": "
|
|
98
|
+
"husky": "9.0.7",
|
|
75
99
|
"identity-obj-proxy": "3.0.0",
|
|
76
100
|
"jest": "27.5.1",
|
|
77
|
-
"react": "
|
|
78
|
-
"react-dom": "
|
|
79
|
-
"react-transition-group": "4.4.
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"type": "git",
|
|
89
|
-
"url": "git@gitlab.com:linear-front/linear-react-components-ui.git"
|
|
90
|
-
},
|
|
91
|
-
"dependencies": {
|
|
92
|
-
"@types/react-dom": "18.0.5",
|
|
93
|
-
"attach-dom-events": "1.0.0",
|
|
94
|
-
"browserslist": "4.18.1",
|
|
95
|
-
"history": "5.0.0",
|
|
96
|
-
"imask": "6.4.3",
|
|
97
|
-
"init": "0.1.2",
|
|
98
|
-
"lodash": "4.17.21",
|
|
99
|
-
"moment": "2.29.1",
|
|
100
|
-
"prop-types": "15.7.2",
|
|
101
|
-
"react-dev-utils": "12.0.0",
|
|
102
|
-
"react-router-dom": "5.2.0",
|
|
103
|
-
"react-syntax-highlighter": "15.5.0",
|
|
104
|
-
"sass": "1.56.0",
|
|
105
|
-
"sass-loader": "7.3.1",
|
|
106
|
-
"semver": "7.3.5",
|
|
107
|
-
"uuid": "3.3.3",
|
|
108
|
-
"webpack": "5.64.4",
|
|
109
|
-
"webpack-dev-server": "4.6.0",
|
|
101
|
+
"react": "18.2.0",
|
|
102
|
+
"react-dom": "18.2.0",
|
|
103
|
+
"react-transition-group": "^4.4.2",
|
|
104
|
+
"resolve-url-loader": "5.0.0",
|
|
105
|
+
"sass-loader": "14.1.0",
|
|
106
|
+
"style-loader": "3.3.4",
|
|
107
|
+
"tsup": "8.0.1",
|
|
108
|
+
"typescript": "5.3.3",
|
|
109
|
+
"webpack": "5.90.0",
|
|
110
|
+
"webpack-cli": "5.1.4",
|
|
111
|
+
"webpack-dev-server": "4.15.1",
|
|
110
112
|
"webpack-manifest-plugin": "4.0.2"
|
|
111
113
|
},
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
"last 1 firefox version",
|
|
121
|
-
"last 1 safari version"
|
|
122
|
-
]
|
|
114
|
+
"peerDependencies": {
|
|
115
|
+
"eslint": "8.0.0",
|
|
116
|
+
"typescript": ">=4"
|
|
117
|
+
},
|
|
118
|
+
"peerDependenciesMeta": {
|
|
119
|
+
"typescript": {
|
|
120
|
+
"optional": true
|
|
121
|
+
}
|
|
123
122
|
}
|
|
124
123
|
}
|