linear-react-components-ui 1.0.10-beta.10 → 1.0.10-beta.11
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/lib/@types/Align.d.ts +2 -2
- 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 +2 -2
- 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/alerts/AlertContainer.d.ts +2 -0
- package/lib/alerts/AlertContainer.js +21 -5
- package/lib/alerts/AlertProvider.d.ts +2 -0
- package/lib/alerts/AlertProvider.js +45 -15
- package/lib/alerts/BaseAlert.d.ts +2 -0
- package/lib/alerts/BaseAlert.js +20 -4
- package/lib/alerts/Message.d.ts +2 -0
- package/lib/alerts/Message.js +32 -21
- package/lib/alerts/helpers.d.ts +2 -0
- package/lib/alerts/helpers.js +2 -0
- package/lib/alerts/index.d.ts +3 -4
- package/lib/alerts/index.js +4 -0
- package/lib/alerts/types.d.ts +7 -5
- package/lib/alerts/withAlert.d.ts +2 -0
- package/lib/alerts/withAlert.js +12 -1
- package/lib/assets/styles/dialog.scss +0 -2
- package/lib/assets/styles/tooltip.scss +42 -2
- package/lib/avatar/index.js +35 -20
- package/lib/badge/index.js +14 -9
- package/lib/buttons/ActivateButton.d.ts +2 -0
- package/lib/buttons/ActivateButton.js +6 -0
- package/lib/buttons/AddButton.d.ts +2 -0
- package/lib/buttons/AddButton.js +7 -0
- package/lib/buttons/Button.d.ts +2 -0
- package/lib/buttons/Button.js +15 -2
- package/lib/buttons/ButtonGroups.js +4 -0
- package/lib/buttons/CancelButton.d.ts +2 -0
- package/lib/buttons/CancelButton.js +11 -1
- package/lib/buttons/DangerButton.d.ts +2 -0
- package/lib/buttons/DangerButton.js +11 -1
- package/lib/buttons/DefaultButton.d.ts +2 -0
- package/lib/buttons/DefaultButton.js +86 -47
- package/lib/buttons/DestroyButton.d.ts +2 -0
- package/lib/buttons/DestroyButton.js +12 -1
- package/lib/buttons/EditButton.d.ts +2 -0
- package/lib/buttons/EditButton.js +6 -0
- package/lib/buttons/InactivateButton.d.ts +2 -0
- package/lib/buttons/InactivateButton.js +6 -0
- package/lib/buttons/InfoButton.d.ts +2 -0
- package/lib/buttons/InfoButton.js +11 -1
- package/lib/buttons/PrimaryButton.d.ts +2 -0
- package/lib/buttons/PrimaryButton.js +11 -1
- package/lib/buttons/RestoreButton.d.ts +2 -0
- package/lib/buttons/RestoreButton.js +6 -0
- package/lib/buttons/SaveButton.d.ts +2 -0
- package/lib/buttons/SaveButton.js +11 -1
- package/lib/buttons/SuccessButton.d.ts +2 -0
- package/lib/buttons/SuccessButton.js +11 -1
- package/lib/buttons/WarningButton.d.ts +2 -0
- package/lib/buttons/WarningButton.js +11 -1
- package/lib/buttons/button_container/index.js +11 -5
- package/lib/buttons/index.d.ts +3 -4
- package/lib/buttons/index.js +18 -0
- package/lib/buttons/split_button/index.d.ts +2 -0
- package/lib/buttons/split_button/index.js +17 -11
- package/lib/buttons/types.d.ts +4 -1
- package/lib/calendar/DangerCalendar.js +11 -1
- package/lib/calendar/InfoCalendar.js +11 -1
- package/lib/calendar/PrimaryCalendar.js +11 -1
- package/lib/calendar/SuccessCalendar.js +11 -1
- package/lib/calendar/WarningCalendar.js +11 -1
- package/lib/calendar/base/Day.js +13 -2
- package/lib/calendar/base/Month.js +18 -1
- package/lib/calendar/base/Week.js +18 -2
- package/lib/calendar/base/helpers.js +24 -8
- package/lib/calendar/base/index.js +37 -13
- package/lib/calendar/index.d.ts +1 -4
- package/lib/calendar/index.js +8 -0
- package/lib/checkbox/Label.js +7 -1
- package/lib/checkbox/index.js +54 -28
- package/lib/checkbox/types.d.ts +2 -2
- package/lib/dialog/Alert.d.ts +2 -0
- package/lib/dialog/Alert.js +8 -0
- package/lib/dialog/Custom.d.ts +2 -0
- package/lib/dialog/Custom.js +17 -5
- package/lib/dialog/Error.d.ts +2 -0
- package/lib/dialog/Error.js +8 -0
- package/lib/dialog/Information.d.ts +2 -0
- package/lib/dialog/Information.js +8 -0
- package/lib/dialog/Question.d.ts +2 -0
- package/lib/dialog/Question.js +15 -4
- package/lib/dialog/Warning.d.ts +2 -0
- package/lib/dialog/Warning.js +8 -0
- package/lib/dialog/base/Content.d.ts +2 -0
- package/lib/dialog/base/Content.js +6 -1
- package/lib/dialog/base/Footer.d.ts +2 -0
- package/lib/dialog/base/Footer.js +4 -0
- package/lib/dialog/base/Header.d.ts +2 -0
- package/lib/dialog/base/Header.js +13 -5
- package/lib/dialog/base/index.d.ts +2 -0
- package/lib/dialog/base/index.js +33 -9
- package/lib/dialog/base/style.js +2 -0
- package/lib/dialog/form/index.d.ts +2 -0
- package/lib/dialog/form/index.js +29 -9
- package/lib/dialog/index.d.ts +3 -4
- package/lib/dialog/index.js +9 -0
- package/lib/dialog/types.d.ts +4 -2
- package/lib/drawer/Content.d.ts +2 -0
- package/lib/drawer/Content.js +13 -2
- package/lib/drawer/Drawer.d.ts +2 -0
- package/lib/drawer/Drawer.js +63 -24
- package/lib/drawer/Header.d.ts +2 -0
- package/lib/drawer/Header.js +27 -10
- package/lib/drawer/helpers.d.ts +2 -0
- package/lib/drawer/helpers.js +4 -0
- package/lib/drawer/index.d.ts +2 -0
- package/lib/drawer/index.js +8 -0
- package/lib/drawer/types.d.ts +3 -1
- package/lib/dropdown/Popup.js +39 -19
- package/lib/dropdown/helper.js +4 -0
- package/lib/dropdown/withDropdown.js +47 -18
- package/lib/fieldset/index.js +46 -21
- package/lib/form/Field.js +46 -19
- package/lib/form/FieldArray.js +32 -15
- package/lib/form/FieldNumber.js +20 -6
- package/lib/form/FieldPeriod.js +21 -9
- package/lib/form/helpers.js +30 -5
- package/lib/form/index.js +93 -37
- package/lib/form/types.d.ts +6 -6
- package/lib/form/withFieldHOC.js +34 -15
- package/lib/form/withFormSecurity.js +28 -5
- package/lib/gridlayout/GridCol.js +11 -5
- package/lib/gridlayout/GridRow.js +9 -3
- package/lib/gridlayout/index.d.ts +1 -4
- package/lib/gridlayout/index.js +4 -0
- package/lib/hint/index.js +11 -6
- package/lib/icons/index.d.ts +2 -0
- package/lib/icons/index.js +26 -16
- package/lib/icons/types.d.ts +4 -2
- package/lib/index.d.ts +3 -1
- package/lib/index.js +10 -0
- package/lib/inputs/base/InputTextBase.js +75 -49
- package/lib/inputs/base/helpers.js +19 -6
- package/lib/inputs/color/index.js +38 -11
- package/lib/inputs/date/Dialog.js +7 -2
- package/lib/inputs/date/Dropdown.js +8 -1
- package/lib/inputs/date/helpers.js +11 -2
- package/lib/inputs/date/index.js +101 -48
- package/lib/inputs/file/DefaultFile.js +42 -13
- package/lib/inputs/file/DragDropFile.js +90 -37
- package/lib/inputs/file/File.js +25 -4
- package/lib/inputs/file/FileButtonSettings.js +11 -5
- package/lib/inputs/file/helpers.js +5 -0
- package/lib/inputs/file/index.d.ts +1 -4
- package/lib/inputs/file/index.js +6 -0
- package/lib/inputs/file/types.d.ts +1 -1
- package/lib/inputs/inputHOC.d.ts +2 -0
- package/lib/inputs/inputHOC.js +34 -10
- package/lib/inputs/mask/BaseMask.js +17 -1
- package/lib/inputs/mask/Cnpj.js +37 -12
- package/lib/inputs/mask/Cpf.js +33 -10
- package/lib/inputs/mask/Phone.js +6 -0
- package/lib/inputs/mask/ZipCode.js +6 -0
- package/lib/inputs/mask/helpers.d.ts +2 -0
- package/lib/inputs/mask/helpers.js +20 -8
- package/lib/inputs/mask/imaskHOC.d.ts +2 -0
- package/lib/inputs/mask/imaskHOC.js +83 -52
- package/lib/inputs/mask/index.d.ts +1 -4
- package/lib/inputs/mask/index.js +7 -0
- package/lib/inputs/multiSelect/ActionButtons.js +15 -6
- package/lib/inputs/multiSelect/Dropdown.js +45 -22
- package/lib/inputs/multiSelect/helper.js +6 -2
- package/lib/inputs/multiSelect/index.js +106 -42
- package/lib/inputs/multiSelect/types.d.ts +1 -1
- package/lib/inputs/number/BaseNumber.d.ts +2 -0
- package/lib/inputs/number/BaseNumber.js +16 -3
- package/lib/inputs/number/Currency.d.ts +2 -0
- package/lib/inputs/number/Currency.js +7 -1
- package/lib/inputs/number/Decimal.d.ts +2 -0
- package/lib/inputs/number/Decimal.js +5 -0
- package/lib/inputs/number/format_number.js +7 -0
- package/lib/inputs/number/index.d.ts +2 -0
- package/lib/inputs/number/index.js +13 -3
- package/lib/inputs/number/types.d.ts +2 -0
- package/lib/inputs/period/Dialog.js +7 -2
- package/lib/inputs/period/Dropdown.js +7 -0
- package/lib/inputs/period/PeriodList.js +7 -1
- package/lib/inputs/period/helper.js +12 -2
- package/lib/inputs/period/index.js +114 -43
- package/lib/inputs/period/types.d.ts +1 -1
- package/lib/inputs/search/index.d.ts +2 -0
- package/lib/inputs/search/index.js +63 -18
- package/lib/inputs/select/ActionButtons.d.ts +2 -0
- package/lib/inputs/select/ActionButtons.js +12 -4
- package/lib/inputs/select/Dropdown.d.ts +2 -0
- package/lib/inputs/select/Dropdown.js +48 -28
- package/lib/inputs/select/helper.d.ts +2 -0
- package/lib/inputs/select/helper.js +30 -9
- package/lib/inputs/select/index.js +18 -3
- package/lib/inputs/select/multiple/Selecteds.js +7 -3
- package/lib/inputs/select/multiple/index.js +96 -37
- package/lib/inputs/select/simple/index.js +149 -62
- package/lib/inputs/select/types.d.ts +2 -2
- package/lib/inputs/text/index.js +5 -1
- package/lib/inputs/text/types.d.ts +1 -1
- package/lib/inputs/textarea/index.js +10 -4
- package/lib/inputs/types.d.ts +3 -1
- package/lib/internals/types.d.ts +1 -0
- package/lib/internals/withTooltip.js +82 -30
- package/lib/labelMessages/index.d.ts +2 -0
- package/lib/labelMessages/index.js +46 -27
- package/lib/labelMessages/types.d.ts +3 -1
- package/lib/labels/DangerLabel.d.ts +2 -0
- package/lib/labels/DangerLabel.js +11 -1
- package/lib/labels/DefaultLabel.d.ts +2 -0
- package/lib/labels/DefaultLabel.js +41 -19
- package/lib/labels/InfoLabel.d.ts +2 -0
- package/lib/labels/InfoLabel.js +11 -1
- package/lib/labels/PrimaryLabel.d.ts +2 -0
- package/lib/labels/PrimaryLabel.js +11 -1
- package/lib/labels/SuccessLabel.d.ts +2 -0
- package/lib/labels/SuccessLabel.js +11 -1
- package/lib/labels/WarningLabel.d.ts +2 -0
- package/lib/labels/WarningLabel.js +11 -1
- package/lib/labels/index.d.ts +3 -4
- package/lib/labels/index.js +10 -0
- package/lib/labels/label_container/index.js +7 -3
- package/lib/labels/types.d.ts +3 -1
- package/lib/list/Header.d.ts +2 -0
- package/lib/list/Header.js +7 -3
- package/lib/list/Item.d.ts +2 -0
- package/lib/list/Item.js +68 -33
- package/lib/list/Separator.js +4 -0
- package/lib/list/helpers.d.ts +2 -0
- package/lib/list/helpers.js +4 -0
- package/lib/list/index.d.ts +2 -0
- package/lib/list/index.js +60 -25
- package/lib/list/types.d.ts +5 -3
- package/lib/menus/float/MenuItem.d.ts +2 -0
- package/lib/menus/float/MenuItem.js +26 -9
- package/lib/menus/float/SubMenuContainer.js +17 -5
- package/lib/menus/float/helpers.d.ts +2 -0
- package/lib/menus/float/helpers.js +4 -0
- package/lib/menus/float/index.d.ts +2 -0
- package/lib/menus/float/index.js +21 -8
- package/lib/menus/float/types.d.ts +3 -1
- package/lib/menus/index.d.ts +3 -4
- package/lib/menus/index.js +3 -0
- package/lib/menus/sidenav/ExpandMenu.d.ts +2 -0
- package/lib/menus/sidenav/ExpandMenu.js +7 -2
- package/lib/menus/sidenav/MenuLink.d.ts +2 -0
- package/lib/menus/sidenav/MenuLink.js +12 -3
- package/lib/menus/sidenav/NavMenuGroup.d.ts +2 -0
- package/lib/menus/sidenav/NavMenuGroup.js +12 -3
- package/lib/menus/sidenav/NavMenuItem.d.ts +2 -0
- package/lib/menus/sidenav/NavMenuItem.js +56 -27
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +2 -0
- package/lib/menus/sidenav/NavSubMenuItem.js +27 -8
- package/lib/menus/sidenav/helpers.d.ts +2 -0
- package/lib/menus/sidenav/helpers.js +9 -0
- package/lib/menus/sidenav/index.d.ts +2 -0
- package/lib/menus/sidenav/index.js +75 -26
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +2 -0
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +7 -2
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +2 -0
- package/lib/menus/sidenav/popup_menu_search/index.js +45 -15
- package/lib/menus/sidenav/types.d.ts +5 -3
- package/lib/noPermission/index.js +6 -0
- package/lib/panel/Content.d.ts +3 -1
- package/lib/panel/Content.js +22 -7
- package/lib/panel/DangerPanel.d.ts +3 -1
- package/lib/panel/DangerPanel.js +7 -0
- package/lib/panel/Default.d.ts +3 -1
- package/lib/panel/Default.js +44 -20
- package/lib/panel/Header.d.ts +3 -1
- package/lib/panel/Header.js +29 -15
- package/lib/panel/InfoPanel.d.ts +3 -1
- package/lib/panel/InfoPanel.js +7 -0
- package/lib/panel/PrimaryPanel.d.ts +3 -1
- package/lib/panel/PrimaryPanel.js +7 -0
- package/lib/panel/SuccessPanel.d.ts +3 -1
- package/lib/panel/SuccessPanel.js +7 -0
- package/lib/panel/ToolBar.d.ts +3 -1
- package/lib/panel/ToolBar.js +5 -0
- package/lib/panel/WarningPanel.d.ts +3 -1
- package/lib/panel/WarningPanel.js +7 -0
- package/lib/panel/helpers.d.ts +3 -1
- package/lib/panel/helpers.js +10 -2
- package/lib/panel/index.d.ts +4 -5
- package/lib/panel/index.js +11 -0
- package/lib/panel/types.d.ts +3 -1
- package/lib/permissionValidations.js +15 -3
- package/lib/popover/PopoverText.d.ts +2 -0
- package/lib/popover/PopoverText.js +4 -0
- package/lib/popover/PopoverTitle.d.ts +2 -0
- package/lib/popover/PopoverTitle.js +4 -0
- package/lib/popover/index.d.ts +2 -0
- package/lib/popover/index.js +22 -12
- package/lib/popover/types.d.ts +3 -1
- package/lib/progress/Bar.js +33 -20
- package/lib/progress/index.js +14 -5
- package/lib/radio/index.js +46 -23
- package/lib/skeleton/SkeletonContainer.js +9 -3
- package/lib/skeleton/index.js +22 -10
- package/lib/spinner/SpinnerLoading.js +7 -3
- package/lib/spinner/index.js +40 -18
- package/lib/split/Split.js +83 -32
- package/lib/split/SplitSide.js +18 -6
- package/lib/split/helpers.d.ts +1 -1
- package/lib/split/helpers.js +4 -0
- package/lib/split/index.d.ts +1 -4
- package/lib/split/index.js +5 -0
- package/lib/table/Body.js +29 -15
- package/lib/table/Header.js +26 -5
- package/lib/table/HeaderColumn.js +21 -10
- package/lib/table/Row.js +35 -25
- package/lib/table/RowColumn.js +29 -12
- package/lib/table/helpers.js +7 -0
- package/lib/table/index.js +62 -32
- package/lib/table/types.d.ts +1 -1
- package/lib/tabs/DropdownItems.d.ts +2 -0
- package/lib/tabs/DropdownItems.js +21 -12
- package/lib/tabs/Menu.d.ts +2 -0
- package/lib/tabs/Menu.js +15 -5
- package/lib/tabs/MenuItems.d.ts +2 -0
- package/lib/tabs/MenuItems.js +33 -23
- package/lib/tabs/Panel.d.ts +2 -0
- package/lib/tabs/Panel.js +39 -14
- package/lib/tabs/index.d.ts +2 -0
- package/lib/tabs/index.js +113 -46
- package/lib/tabs/tabHelpers.d.ts +2 -0
- package/lib/tabs/tabHelpers.js +16 -3
- package/lib/tabs/types.d.ts +3 -1
- package/lib/toolbar/ButtonBar.d.ts +2 -0
- package/lib/toolbar/ButtonBar.js +29 -13
- package/lib/toolbar/LabelBar.d.ts +2 -0
- package/lib/toolbar/LabelBar.js +28 -11
- package/lib/toolbar/Separator.js +4 -0
- package/lib/toolbar/ToolBarGroup.d.ts +2 -0
- package/lib/toolbar/ToolBarGroup.js +6 -2
- package/lib/toolbar/helpers.d.ts +2 -0
- package/lib/toolbar/helpers.js +2 -0
- package/lib/toolbar/index.d.ts +2 -0
- package/lib/toolbar/index.js +23 -7
- package/lib/toolbar/types.d.ts +4 -2
- package/lib/tooltip/index.d.ts +1 -1
- package/lib/tooltip/index.js +30 -11
- package/lib/tooltip/types.d.ts +2 -1
- package/lib/treetable/Body.js +27 -9
- package/lib/treetable/Header.js +11 -1
- package/lib/treetable/Row.js +113 -58
- package/lib/treetable/helpers.js +10 -0
- package/lib/treetable/index.js +11 -0
- package/lib/treeview/Header.js +6 -2
- package/lib/treeview/Node.js +111 -47
- package/lib/treeview/constants.js +4 -0
- package/lib/treeview/index.js +134 -54
- package/lib/treeview/types.d.ts +2 -2
- package/lib/treeview_old/Header.js +6 -1
- package/lib/treeview_old/Node.js +32 -5
- package/lib/treeview_old/index.js +9 -1
- package/lib/{types-90c43ae1.d.ts → types-c1d83632.d.ts} +3 -2
- package/lib/uitour/index.js +73 -33
- package/lib/uitour/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,94 +1,126 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
9
12
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
13
|
+
|
|
10
14
|
var _icons = _interopRequireDefault(require("../../lib/icons"));
|
|
15
|
+
|
|
11
16
|
var _withTooltip = _interopRequireDefault(require("../internals/withTooltip"));
|
|
17
|
+
|
|
12
18
|
var _spinner = _interopRequireDefault(require("../spinner"));
|
|
19
|
+
|
|
13
20
|
var _withDropdown = _interopRequireDefault(require("../dropdown/withDropdown"));
|
|
21
|
+
|
|
14
22
|
var _permissionValidations = require("../permissionValidations");
|
|
15
|
-
|
|
23
|
+
|
|
24
|
+
var _excluded = ["dropdown", "onClick", "disabled", "iconName", "icon", "targetRef", "tabIndex", "isLoading", "label", "showDropdown", "getDropdownPopup", "isDropdownOpened", "showIconDropdown", "content", "style", "toggleable", "activeIconColor", "iconStyle", "visible", "customClass", "className", "size", "iconAlign", "boxShadow", "transparent", "round", "permissionAttr", "skeletonize", "tooltipPosition", "errorMessage", "tooltipWidth", "isFloatMenu", "dropdownAlign", "customClassForDropdown", "buttonRef"];
|
|
25
|
+
|
|
16
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
|
+
|
|
17
28
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
|
+
|
|
18
30
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
|
+
|
|
19
32
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
33
|
+
|
|
20
34
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
35
|
+
|
|
21
36
|
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."); }
|
|
37
|
+
|
|
22
38
|
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); }
|
|
23
|
-
|
|
24
|
-
function
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
42
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
43
|
+
|
|
25
44
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
45
|
+
|
|
26
46
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
47
|
+
|
|
27
48
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
49
|
+
|
|
28
50
|
var DefaultButton = function DefaultButton(_ref) {
|
|
29
51
|
var dropdown = _ref.dropdown,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
52
|
+
_onClick = _ref.onClick,
|
|
53
|
+
disabled = _ref.disabled,
|
|
54
|
+
iconName = _ref.iconName,
|
|
55
|
+
icon = _ref.icon,
|
|
56
|
+
targetRef = _ref.targetRef,
|
|
57
|
+
tabIndex = _ref.tabIndex,
|
|
58
|
+
isLoading = _ref.isLoading,
|
|
59
|
+
label = _ref.label,
|
|
60
|
+
showDropdown = _ref.showDropdown,
|
|
61
|
+
getDropdownPopup = _ref.getDropdownPopup,
|
|
62
|
+
isDropdownOpened = _ref.isDropdownOpened,
|
|
63
|
+
_ref$showIconDropdown = _ref.showIconDropdown,
|
|
64
|
+
showIconDropdown = _ref$showIconDropdown === void 0 ? true : _ref$showIconDropdown,
|
|
65
|
+
content = _ref.content,
|
|
66
|
+
style = _ref.style,
|
|
67
|
+
toggleable = _ref.toggleable,
|
|
68
|
+
activeIconColor = _ref.activeIconColor,
|
|
69
|
+
iconStyle = _ref.iconStyle,
|
|
70
|
+
_ref$visible = _ref.visible,
|
|
71
|
+
visible = _ref$visible === void 0 ? true : _ref$visible,
|
|
72
|
+
customClass = _ref.customClass,
|
|
73
|
+
className = _ref.className,
|
|
74
|
+
_ref$size = _ref.size,
|
|
75
|
+
size = _ref$size === void 0 ? 'default' : _ref$size,
|
|
76
|
+
_ref$iconAlign = _ref.iconAlign,
|
|
77
|
+
iconAlign = _ref$iconAlign === void 0 ? 'left' : _ref$iconAlign,
|
|
78
|
+
_ref$boxShadow = _ref.boxShadow,
|
|
79
|
+
boxShadow = _ref$boxShadow === void 0 ? true : _ref$boxShadow,
|
|
80
|
+
transparent = _ref.transparent,
|
|
81
|
+
round = _ref.round,
|
|
82
|
+
permissionAttr = _ref.permissionAttr,
|
|
83
|
+
skeletonize = _ref.skeletonize,
|
|
84
|
+
tooltipPosition = _ref.tooltipPosition,
|
|
85
|
+
errorMessage = _ref.errorMessage,
|
|
86
|
+
tooltipWidth = _ref.tooltipWidth,
|
|
87
|
+
isFloatMenu = _ref.isFloatMenu,
|
|
88
|
+
dropdownAlign = _ref.dropdownAlign,
|
|
89
|
+
customClassForDropdown = _ref.customClassForDropdown,
|
|
90
|
+
buttonRef = _ref.buttonRef,
|
|
91
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
92
|
+
|
|
69
93
|
var options = [_permissionValidations.OPTIONS_ON_DENIED.disabled, _permissionValidations.OPTIONS_ON_DENIED.unvisible];
|
|
94
|
+
|
|
70
95
|
var _useState = (0, _react.useState)(false),
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
96
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
97
|
+
activeButton = _useState2[0],
|
|
98
|
+
setActiveButton = _useState2[1];
|
|
99
|
+
|
|
74
100
|
var _useState3 = (0, _react.useState)((0, _permissionValidations.actionsOnPermissionDenied)(options, permissionAttr)),
|
|
75
|
-
|
|
76
|
-
|
|
101
|
+
_useState4 = _slicedToArray(_useState3, 1),
|
|
102
|
+
onDenied = _useState4[0];
|
|
103
|
+
|
|
77
104
|
var refButton = (0, _react.useRef)(null);
|
|
78
105
|
var disabledIconColor = 'rgb(193, 193, 193)';
|
|
106
|
+
|
|
79
107
|
var shouldDisable = function shouldDisable() {
|
|
80
108
|
return !!onDenied.disabled || disabled;
|
|
81
109
|
};
|
|
110
|
+
|
|
82
111
|
var getClass = function getClass() {
|
|
83
112
|
return "button-component ".concat(className, " \n ").concat(customClass, " \n ").concat(transparent && '-transparent', "\n ").concat(shouldDisable() && '-disabled', "\n ").concat(size && "-".concat(size), "\n ").concat(dropdown && !round && 'icon-right', " \n ").concat(dropdown && round && 'icon-center', " \n ").concat(iconAlign && !dropdown && "icon-".concat(iconAlign), "\n ").concat(boxShadow ? '' : '-shadowsdisabled', "\n ").concat(round && '-round');
|
|
84
113
|
};
|
|
114
|
+
|
|
85
115
|
var getIcon = function getIcon() {
|
|
86
116
|
var resultantStyle = iconStyle;
|
|
117
|
+
|
|
87
118
|
if (shouldDisable()) {
|
|
88
119
|
resultantStyle = _extends({}, resultantStyle, {
|
|
89
120
|
fill: disabledIconColor
|
|
90
121
|
});
|
|
91
122
|
}
|
|
123
|
+
|
|
92
124
|
if (dropdown && showIconDropdown) {
|
|
93
125
|
return /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
94
126
|
name: isDropdownOpened ? 'mini_up' : 'mini_down',
|
|
@@ -98,12 +130,14 @@ var DefaultButton = function DefaultButton(_ref) {
|
|
|
98
130
|
style: resultantStyle
|
|
99
131
|
});
|
|
100
132
|
}
|
|
133
|
+
|
|
101
134
|
if (icon) {
|
|
102
135
|
if (shouldDisable()) {
|
|
103
136
|
return /*#__PURE__*/_react.default.createElement(_icons.default, _extends({}, icon.props, {
|
|
104
137
|
color: disabledIconColor
|
|
105
138
|
}));
|
|
106
139
|
}
|
|
140
|
+
|
|
107
141
|
return icon;
|
|
108
142
|
} else if (iconName) {
|
|
109
143
|
return /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
@@ -114,8 +148,10 @@ var DefaultButton = function DefaultButton(_ref) {
|
|
|
114
148
|
style: resultantStyle
|
|
115
149
|
});
|
|
116
150
|
}
|
|
151
|
+
|
|
117
152
|
return null;
|
|
118
153
|
};
|
|
154
|
+
|
|
119
155
|
if (!visible || onDenied.unvisible) return null;
|
|
120
156
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("button", _extends({}, rest, {
|
|
121
157
|
style: style,
|
|
@@ -135,6 +171,7 @@ var DefaultButton = function DefaultButton(_ref) {
|
|
|
135
171
|
buttonRef(r);
|
|
136
172
|
}
|
|
137
173
|
}
|
|
174
|
+
|
|
138
175
|
if (targetRef) targetRef(r);
|
|
139
176
|
refButton.current = r;
|
|
140
177
|
},
|
|
@@ -146,5 +183,7 @@ var DefaultButton = function DefaultButton(_ref) {
|
|
|
146
183
|
delayTime: 0
|
|
147
184
|
}))), dropdown && refButton.current && getDropdownPopup && getDropdownPopup(refButton.current));
|
|
148
185
|
};
|
|
186
|
+
|
|
149
187
|
var _default = (0, _withDropdown.default)((0, _withTooltip.default)(DefaultButton));
|
|
188
|
+
|
|
150
189
|
exports.default = _default;
|
|
@@ -4,17 +4,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
var _DangerButton = _interopRequireDefault(require("./DangerButton"));
|
|
11
|
+
|
|
9
12
|
var _icons = _interopRequireDefault(require("../icons"));
|
|
13
|
+
|
|
10
14
|
var _excluded = ["icon"];
|
|
15
|
+
|
|
11
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
12
18
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
19
|
+
|
|
13
20
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
21
|
+
|
|
14
22
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
23
|
+
|
|
15
24
|
var DestroyButton = function DestroyButton(_ref) {
|
|
16
25
|
var icon = _ref.icon,
|
|
17
|
-
|
|
26
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
27
|
+
|
|
18
28
|
return /*#__PURE__*/_react.default.createElement(_DangerButton.default, _extends({}, rest, {
|
|
19
29
|
icon: /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
20
30
|
name: "bin",
|
|
@@ -22,5 +32,6 @@ var DestroyButton = function DestroyButton(_ref) {
|
|
|
22
32
|
})
|
|
23
33
|
}));
|
|
24
34
|
};
|
|
35
|
+
|
|
25
36
|
var _default = DestroyButton;
|
|
26
37
|
exports.default = _default;
|
|
@@ -4,14 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
var _Button = _interopRequireDefault(require("./Button"));
|
|
11
|
+
|
|
9
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
10
14
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
|
+
|
|
11
16
|
var EditButton = function EditButton(props) {
|
|
12
17
|
return /*#__PURE__*/_react.default.createElement(_Button.default, _extends({}, props, {
|
|
13
18
|
iconName: "pencil"
|
|
14
19
|
}));
|
|
15
20
|
};
|
|
21
|
+
|
|
16
22
|
var _default = EditButton;
|
|
17
23
|
exports.default = _default;
|
|
@@ -4,14 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
var _Button = _interopRequireDefault(require("./Button"));
|
|
11
|
+
|
|
9
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
10
14
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
|
+
|
|
11
16
|
var InactivateButton = function InactivateButton(props) {
|
|
12
17
|
return /*#__PURE__*/_react.default.createElement(_Button.default, _extends({}, props, {
|
|
13
18
|
iconName: "minusCircle"
|
|
14
19
|
}));
|
|
15
20
|
};
|
|
21
|
+
|
|
16
22
|
var _default = InactivateButton;
|
|
17
23
|
exports.default = _default;
|
|
@@ -3,6 +3,8 @@ import 'react';
|
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../@types/Position.js';
|
|
5
5
|
import '../@types/Size.js';
|
|
6
|
+
import '../@types/Icon.js';
|
|
7
|
+
import '../icons/helper.js';
|
|
6
8
|
|
|
7
9
|
declare const InfoButton: ({ customClass, ...rest }: IButtonProps) => JSX.Element;
|
|
8
10
|
|
|
@@ -4,19 +4,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
var _Button = _interopRequireDefault(require("./Button"));
|
|
11
|
+
|
|
9
12
|
var _excluded = ["customClass"];
|
|
13
|
+
|
|
10
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
11
16
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
+
|
|
12
18
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19
|
+
|
|
13
20
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
21
|
+
|
|
14
22
|
var InfoButton = function InfoButton(_ref) {
|
|
15
23
|
var customClass = _ref.customClass,
|
|
16
|
-
|
|
24
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
+
|
|
17
26
|
return /*#__PURE__*/_react.default.createElement(_Button.default, _extends({
|
|
18
27
|
customClass: "-info ".concat(customClass)
|
|
19
28
|
}, rest));
|
|
20
29
|
};
|
|
30
|
+
|
|
21
31
|
var _default = InfoButton;
|
|
22
32
|
exports.default = _default;
|
|
@@ -3,6 +3,8 @@ import 'react';
|
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../@types/Position.js';
|
|
5
5
|
import '../@types/Size.js';
|
|
6
|
+
import '../@types/Icon.js';
|
|
7
|
+
import '../icons/helper.js';
|
|
6
8
|
|
|
7
9
|
declare const PrimaryButton: ({ customClass, ...rest }: IButtonProps) => JSX.Element;
|
|
8
10
|
|
|
@@ -4,19 +4,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
var _Button = _interopRequireDefault(require("./Button"));
|
|
11
|
+
|
|
9
12
|
var _excluded = ["customClass"];
|
|
13
|
+
|
|
10
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
11
16
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
+
|
|
12
18
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19
|
+
|
|
13
20
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
21
|
+
|
|
14
22
|
var PrimaryButton = function PrimaryButton(_ref) {
|
|
15
23
|
var customClass = _ref.customClass,
|
|
16
|
-
|
|
24
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
+
|
|
17
26
|
return /*#__PURE__*/_react.default.createElement(_Button.default, _extends({
|
|
18
27
|
customClass: "-primary ".concat(customClass)
|
|
19
28
|
}, rest));
|
|
20
29
|
};
|
|
30
|
+
|
|
21
31
|
var _default = PrimaryButton;
|
|
22
32
|
exports.default = _default;
|
|
@@ -4,14 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
var _Button = _interopRequireDefault(require("./Button"));
|
|
11
|
+
|
|
9
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
10
14
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
|
+
|
|
11
16
|
var RestoreButton = function RestoreButton(props) {
|
|
12
17
|
return /*#__PURE__*/_react.default.createElement(_Button.default, _extends({}, props, {
|
|
13
18
|
iconName: "undo"
|
|
14
19
|
}));
|
|
15
20
|
};
|
|
21
|
+
|
|
16
22
|
var _default = RestoreButton;
|
|
17
23
|
exports.default = _default;
|
|
@@ -3,6 +3,8 @@ import 'react';
|
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../@types/Position.js';
|
|
5
5
|
import '../@types/Size.js';
|
|
6
|
+
import '../@types/Icon.js';
|
|
7
|
+
import '../icons/helper.js';
|
|
6
8
|
|
|
7
9
|
declare const SaveButton: ({ customClass, ...rest }: IButtonProps) => JSX.Element;
|
|
8
10
|
|
|
@@ -4,19 +4,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
var _PrimaryButton = _interopRequireDefault(require("./PrimaryButton"));
|
|
11
|
+
|
|
9
12
|
var _excluded = ["customClass"];
|
|
13
|
+
|
|
10
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
11
16
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
+
|
|
12
18
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19
|
+
|
|
13
20
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
21
|
+
|
|
14
22
|
var SaveButton = function SaveButton(_ref) {
|
|
15
23
|
var customClass = _ref.customClass,
|
|
16
|
-
|
|
24
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
+
|
|
17
26
|
return /*#__PURE__*/_react.default.createElement(_PrimaryButton.default, _extends({
|
|
18
27
|
customClass: customClass
|
|
19
28
|
}, rest));
|
|
20
29
|
};
|
|
30
|
+
|
|
21
31
|
var _default = SaveButton;
|
|
22
32
|
exports.default = _default;
|
|
@@ -3,6 +3,8 @@ import 'react';
|
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../@types/Position.js';
|
|
5
5
|
import '../@types/Size.js';
|
|
6
|
+
import '../@types/Icon.js';
|
|
7
|
+
import '../icons/helper.js';
|
|
6
8
|
|
|
7
9
|
declare const SuccessButton: ({ customClass, ...rest }: IButtonProps) => JSX.Element;
|
|
8
10
|
|
|
@@ -4,19 +4,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
var _Button = _interopRequireDefault(require("./Button"));
|
|
11
|
+
|
|
9
12
|
var _excluded = ["customClass"];
|
|
13
|
+
|
|
10
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
11
16
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
+
|
|
12
18
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19
|
+
|
|
13
20
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
21
|
+
|
|
14
22
|
var SuccessButton = function SuccessButton(_ref) {
|
|
15
23
|
var customClass = _ref.customClass,
|
|
16
|
-
|
|
24
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
+
|
|
17
26
|
return /*#__PURE__*/_react.default.createElement(_Button.default, _extends({}, rest, {
|
|
18
27
|
customClass: "-success ".concat(customClass)
|
|
19
28
|
}));
|
|
20
29
|
};
|
|
30
|
+
|
|
21
31
|
var _default = SuccessButton;
|
|
22
32
|
exports.default = _default;
|
|
@@ -3,6 +3,8 @@ import 'react';
|
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../@types/Position.js';
|
|
5
5
|
import '../@types/Size.js';
|
|
6
|
+
import '../@types/Icon.js';
|
|
7
|
+
import '../icons/helper.js';
|
|
6
8
|
|
|
7
9
|
declare const WarningButton: ({ customClass, ...rest }: IButtonProps) => JSX.Element;
|
|
8
10
|
|
|
@@ -4,19 +4,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
var _Button = _interopRequireDefault(require("./Button"));
|
|
11
|
+
|
|
9
12
|
var _excluded = ["customClass"];
|
|
13
|
+
|
|
10
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
11
16
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
+
|
|
12
18
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19
|
+
|
|
13
20
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
21
|
+
|
|
14
22
|
var WarningButton = function WarningButton(_ref) {
|
|
15
23
|
var customClass = _ref.customClass,
|
|
16
|
-
|
|
24
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
+
|
|
17
26
|
return /*#__PURE__*/_react.default.createElement(_Button.default, _extends({}, rest, {
|
|
18
27
|
customClass: "-warning ".concat(customClass)
|
|
19
28
|
}));
|
|
20
29
|
};
|
|
30
|
+
|
|
21
31
|
var _default = WarningButton;
|
|
22
32
|
exports.default = _default;
|
|
@@ -4,25 +4,31 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
9
12
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
13
|
+
|
|
10
14
|
var getStyles = function getStyles(style, position) {
|
|
11
15
|
return _extends({}, style, {
|
|
12
16
|
float: position
|
|
13
17
|
});
|
|
14
18
|
};
|
|
19
|
+
|
|
15
20
|
var ButtonContainer = function ButtonContainer(_ref) {
|
|
16
21
|
var _ref$style = _ref.style,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
23
|
+
customClass = _ref.customClass,
|
|
24
|
+
_ref$position = _ref.position,
|
|
25
|
+
position = _ref$position === void 0 ? 'left' : _ref$position,
|
|
26
|
+
children = _ref.children;
|
|
22
27
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
23
28
|
className: "btn-container ".concat(customClass),
|
|
24
29
|
style: getStyles(style, position)
|
|
25
30
|
}, children);
|
|
26
31
|
};
|
|
32
|
+
|
|
27
33
|
var _default = ButtonContainer;
|
|
28
34
|
exports.default = _default;
|
package/lib/buttons/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as ButtonContainer } from './button_container/index.js';
|
|
2
2
|
import Button from './Button.js';
|
|
3
|
+
export { default } from './Button.js';
|
|
3
4
|
export { default as PrimaryButton } from './PrimaryButton.js';
|
|
4
5
|
export { default as DangerButton } from './DangerButton.js';
|
|
5
6
|
export { default as WarningButton } from './WarningButton.js';
|
|
@@ -18,7 +19,5 @@ import '../@types/Position.js';
|
|
|
18
19
|
import './types.js';
|
|
19
20
|
import '../@types/PermissionAttr.js';
|
|
20
21
|
import '../@types/Size.js';
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export { Button as default };
|
|
22
|
+
import '../@types/Icon.js';
|
|
23
|
+
import '../icons/helper.js';
|