linear-react-components-ui 0.4.77-beta.28 → 0.4.77-beta.29
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/dropdown/withDropdown.js +1 -1
- package/lib/menus/float/SubMenuContainer.js +2 -2
- package/lib/menus/float/index.js +1 -1
- package/package.json +1 -1
- package/lib/@types/Align.d.ts +0 -3
- package/lib/@types/Align.js +0 -5
- package/lib/@types/ButtonTypes.d.ts +0 -3
- package/lib/@types/ButtonTypes.js +0 -5
- package/lib/@types/ColorStyles.d.ts +0 -3
- package/lib/@types/ColorStyles.js +0 -5
- package/lib/@types/DataCombo.d.ts +0 -3
- package/lib/@types/DataCombo.js +0 -5
- package/lib/@types/Icon.d.ts +0 -5
- package/lib/@types/Icon.js +0 -5
- package/lib/@types/LabelStyles.d.ts +0 -3
- package/lib/@types/LabelStyles.js +0 -5
- package/lib/@types/Period.d.ts +0 -6
- package/lib/@types/Period.js +0 -5
- package/lib/@types/PermissionAttr.d.ts +0 -14
- package/lib/@types/PermissionAttr.js +0 -5
- package/lib/@types/PointerEvents.d.ts +0 -3
- package/lib/@types/PointerEvents.js +0 -5
- package/lib/@types/Position.d.ts +0 -3
- package/lib/@types/Position.js +0 -5
- package/lib/@types/PositionAlert.d.ts +0 -3
- package/lib/@types/PositionAlert.js +0 -5
- package/lib/@types/Size.d.ts +0 -3
- package/lib/@types/Size.js +0 -5
- package/lib/@types/SizePixels.d.ts +0 -3
- package/lib/@types/SizePixels.js +0 -5
- package/lib/@types/StorageMock.d.ts +0 -5
- package/lib/@types/StorageMock.js +0 -5
- package/lib/alerts/AlertContainer.d.ts +0 -16
- package/lib/alerts/AlertProvider.d.ts +0 -7
- package/lib/alerts/BaseAlert.d.ts +0 -7
- package/lib/alerts/Message.d.ts +0 -7
- package/lib/alerts/helpers.d.ts +0 -7
- package/lib/alerts/index.d.ts +0 -6
- package/lib/alerts/types.d.ts +0 -48
- package/lib/alerts/types.js +0 -5
- package/lib/alerts/withAlert.d.ts +0 -7
- package/lib/avatar/index.d.ts +0 -12
- package/lib/avatar/types.d.ts +0 -31
- package/lib/avatar/types.js +0 -5
- package/lib/badge/index.d.ts +0 -6
- package/lib/badge/types.d.ts +0 -13
- package/lib/badge/types.js +0 -5
- package/lib/buttons/ActivateButton.d.ts +0 -9
- package/lib/buttons/AddButton.d.ts +0 -9
- package/lib/buttons/Button.d.ts +0 -12
- package/lib/buttons/ButtonGroups.d.ts +0 -8
- package/lib/buttons/CancelButton.d.ts +0 -9
- package/lib/buttons/DangerButton.d.ts +0 -9
- package/lib/buttons/DefaultButton.d.ts +0 -12
- package/lib/buttons/DestroyButton.d.ts +0 -9
- package/lib/buttons/EditButton.d.ts +0 -9
- package/lib/buttons/InactivateButton.d.ts +0 -9
- package/lib/buttons/InfoButton.d.ts +0 -9
- package/lib/buttons/PrimaryButton.d.ts +0 -9
- package/lib/buttons/RestoreButton.d.ts +0 -9
- package/lib/buttons/SaveButton.d.ts +0 -9
- package/lib/buttons/SuccessButton.d.ts +0 -9
- package/lib/buttons/WarningButton.d.ts +0 -9
- package/lib/buttons/button_container/index.d.ts +0 -12
- package/lib/buttons/index.d.ts +0 -21
- package/lib/buttons/split_button/index.d.ts +0 -9
- package/lib/buttons/types.d.ts +0 -44
- package/lib/buttons/types.js +0 -5
- package/lib/calendar/DangerCalendar.d.ts +0 -7
- package/lib/calendar/InfoCalendar.d.ts +0 -7
- package/lib/calendar/PrimaryCalendar.d.ts +0 -7
- package/lib/calendar/SuccessCalendar.d.ts +0 -7
- package/lib/calendar/WarningCalendar.d.ts +0 -7
- package/lib/calendar/base/Day.d.ts +0 -7
- package/lib/calendar/base/Month.d.ts +0 -7
- package/lib/calendar/base/Week.d.ts +0 -7
- package/lib/calendar/base/helpers.d.ts +0 -62
- package/lib/calendar/base/index.d.ts +0 -7
- package/lib/calendar/index.d.ts +0 -10
- package/lib/calendar/types.d.ts +0 -25
- package/lib/calendar/types.js +0 -5
- package/lib/checkbox/Label.d.ts +0 -11
- package/lib/checkbox/index.d.ts +0 -13
- package/lib/checkbox/types.d.ts +0 -42
- package/lib/checkbox/types.js +0 -5
- package/lib/dialog/Alert.d.ts +0 -6
- package/lib/dialog/Custom.d.ts +0 -6
- package/lib/dialog/Error.d.ts +0 -6
- package/lib/dialog/Information.d.ts +0 -6
- package/lib/dialog/Question.d.ts +0 -6
- package/lib/dialog/Warning.d.ts +0 -6
- package/lib/dialog/base/Content.d.ts +0 -6
- package/lib/dialog/base/Footer.d.ts +0 -6
- package/lib/dialog/base/Header.d.ts +0 -6
- package/lib/dialog/base/index.d.ts +0 -6
- package/lib/dialog/form/index.d.ts +0 -6
- package/lib/dialog/index.d.ts +0 -10
- package/lib/dialog/types.d.ts +0 -68
- package/lib/dialog/types.js +0 -5
- package/lib/drawer/Content.d.ts +0 -7
- package/lib/drawer/Drawer.d.ts +0 -7
- package/lib/drawer/Header.d.ts +0 -7
- package/lib/drawer/helpers.d.ts +0 -7
- package/lib/drawer/index.d.ts +0 -9
- package/lib/drawer/types.d.ts +0 -34
- package/lib/drawer/types.js +0 -5
- package/lib/dropdown/Popup.d.ts +0 -6
- package/lib/dropdown/helper.d.ts +0 -4
- package/lib/dropdown/types.d.ts +0 -43
- package/lib/dropdown/types.js +0 -5
- package/lib/dropdown/withDropdown.d.ts +0 -10
- package/lib/fieldset/index.d.ts +0 -8
- package/lib/fieldset/types.d.ts +0 -28
- package/lib/fieldset/types.js +0 -5
- package/lib/form/Field.d.ts +0 -6
- package/lib/form/FieldArray.d.ts +0 -6
- package/lib/form/FieldNumber.d.ts +0 -6
- package/lib/form/FieldPeriod.d.ts +0 -6
- package/lib/form/helpers.d.ts +0 -11
- package/lib/form/index.d.ts +0 -9
- package/lib/form/types.d.ts +0 -168
- package/lib/form/types.js +0 -5
- package/lib/form/withFieldHOC.d.ts +0 -6
- package/lib/form/withFormSecurity.d.ts +0 -7
- package/lib/gridlayout/GridCol.d.ts +0 -6
- package/lib/gridlayout/GridRow.d.ts +0 -6
- package/lib/gridlayout/index.d.ts +0 -5
- package/lib/gridlayout/types.d.ts +0 -20
- package/lib/gridlayout/types.js +0 -5
- package/lib/icons/helper.d.ts +0 -560
- package/lib/icons/index.d.ts +0 -8
- package/lib/icons/types.d.ts +0 -28
- package/lib/icons/types.js +0 -5
- package/lib/index.d.ts +0 -35
- package/lib/inputs/base/InputTextBase.d.ts +0 -8
- package/lib/inputs/base/helpers.d.ts +0 -14
- package/lib/inputs/base/types.d.ts +0 -68
- package/lib/inputs/base/types.js +0 -5
- package/lib/inputs/color/index.d.ts +0 -7
- package/lib/inputs/color/types.d.ts +0 -14
- package/lib/inputs/color/types.js +0 -5
- package/lib/inputs/date/Dialog.d.ts +0 -10
- package/lib/inputs/date/Dropdown.d.ts +0 -10
- package/lib/inputs/date/helpers.d.ts +0 -14
- package/lib/inputs/date/index.d.ts +0 -10
- package/lib/inputs/date/types.d.ts +0 -53
- package/lib/inputs/date/types.js +0 -5
- package/lib/inputs/inputHOC.d.ts +0 -11
- package/lib/inputs/mask/BaseMask.d.ts +0 -12
- package/lib/inputs/mask/Cnpj.d.ts +0 -12
- package/lib/inputs/mask/Cpf.d.ts +0 -12
- package/lib/inputs/mask/Phone.d.ts +0 -9
- package/lib/inputs/mask/ZipCode.d.ts +0 -9
- package/lib/inputs/mask/helpers.d.ts +0 -14
- package/lib/inputs/mask/imaskHOC.d.ts +0 -14
- package/lib/inputs/mask/index.d.ts +0 -11
- package/lib/inputs/mask/types.d.ts +0 -66
- package/lib/inputs/mask/types.js +0 -5
- package/lib/inputs/multiSelect/ActionButtons.d.ts +0 -10
- package/lib/inputs/multiSelect/Dropdown.d.ts +0 -10
- package/lib/inputs/multiSelect/helper.d.ts +0 -9
- package/lib/inputs/multiSelect/index.d.ts +0 -10
- package/lib/inputs/multiSelect/types.d.ts +0 -49
- package/lib/inputs/multiSelect/types.js +0 -5
- package/lib/inputs/number/BaseNumber.d.ts +0 -12
- package/lib/inputs/number/Currency.d.ts +0 -12
- package/lib/inputs/number/Decimal.d.ts +0 -12
- package/lib/inputs/number/format_number.d.ts +0 -4
- package/lib/inputs/number/index.d.ts +0 -14
- package/lib/inputs/number/types.d.ts +0 -30
- package/lib/inputs/number/types.js +0 -5
- package/lib/inputs/period/Dialog.d.ts +0 -11
- package/lib/inputs/period/Dropdown.d.ts +0 -11
- package/lib/inputs/period/PeriodList.d.ts +0 -11
- package/lib/inputs/period/helper.d.ts +0 -19
- package/lib/inputs/period/index.d.ts +0 -11
- package/lib/inputs/period/types.d.ts +0 -58
- package/lib/inputs/period/types.js +0 -5
- package/lib/inputs/search/index.d.ts +0 -11
- package/lib/inputs/select/ActionButtons.d.ts +0 -11
- package/lib/inputs/select/Dropdown.d.ts +0 -11
- package/lib/inputs/select/helper.d.ts +0 -25
- package/lib/inputs/select/index.d.ts +0 -10
- package/lib/inputs/select/multiple/Selecteds.d.ts +0 -10
- package/lib/inputs/select/multiple/index.d.ts +0 -10
- package/lib/inputs/select/simple/index.d.ts +0 -10
- package/lib/inputs/select/types.d.ts +0 -98
- package/lib/inputs/select/types.js +0 -5
- package/lib/inputs/text/index.d.ts +0 -11
- package/lib/inputs/text/types.d.ts +0 -25
- package/lib/inputs/text/types.js +0 -5
- package/lib/inputs/textarea/index.d.ts +0 -9
- package/lib/inputs/textarea/types.d.ts +0 -13
- package/lib/inputs/textarea/types.js +0 -5
- package/lib/inputs/types.d.ts +0 -146
- package/lib/inputs/types.js +0 -5
- package/lib/internals/colorStyles.d.ts +0 -9
- package/lib/internals/constants.d.ts +0 -11
- package/lib/internals/types.d.ts +0 -21
- package/lib/internals/types.js +0 -5
- package/lib/internals/withTooltip.d.ts +0 -11
- package/lib/labelMessages/index.d.ts +0 -7
- package/lib/labelMessages/types.d.ts +0 -18
- package/lib/labelMessages/types.js +0 -5
- package/lib/labels/DangerLabel.d.ts +0 -9
- package/lib/labels/DefaultLabel.d.ts +0 -12
- package/lib/labels/InfoLabel.d.ts +0 -9
- package/lib/labels/PrimaryLabel.d.ts +0 -9
- package/lib/labels/SuccessLabel.d.ts +0 -9
- package/lib/labels/WarningLabel.d.ts +0 -9
- package/lib/labels/index.d.ts +0 -13
- package/lib/labels/label_container/index.d.ts +0 -12
- package/lib/labels/types.d.ts +0 -24
- package/lib/labels/types.js +0 -5
- package/lib/list/Header.d.ts +0 -7
- package/lib/list/Item.d.ts +0 -7
- package/lib/list/Separator.d.ts +0 -3
- package/lib/list/helpers.d.ts +0 -12
- package/lib/list/index.d.ts +0 -10
- package/lib/list/types.d.ts +0 -64
- package/lib/list/types.js +0 -5
- package/lib/menus/float/MenuItem.d.ts +0 -7
- package/lib/menus/float/helpers.d.ts +0 -7
- package/lib/menus/float/index.d.ts +0 -8
- package/lib/menus/float/types.d.ts +0 -27
- package/lib/menus/float/types.js +0 -5
- package/lib/menus/index.d.ts +0 -6
- package/lib/menus/sidenav/ExpandMenu.d.ts +0 -10
- package/lib/menus/sidenav/MenuLink.d.ts +0 -13
- package/lib/menus/sidenav/NavMenuGroup.d.ts +0 -10
- package/lib/menus/sidenav/NavMenuItem.d.ts +0 -13
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +0 -10
- package/lib/menus/sidenav/helpers.d.ts +0 -12
- package/lib/menus/sidenav/index.d.ts +0 -14
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +0 -10
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +0 -10
- package/lib/menus/sidenav/types.d.ts +0 -82
- package/lib/menus/sidenav/types.js +0 -5
- package/lib/noPermission/index.d.ts +0 -3
- package/lib/panel/Content.d.ts +0 -8
- package/lib/panel/DangerPanel.d.ts +0 -8
- package/lib/panel/Default.d.ts +0 -8
- package/lib/panel/Header.d.ts +0 -8
- package/lib/panel/InfoPanel.d.ts +0 -8
- package/lib/panel/PrimaryPanel.d.ts +0 -8
- package/lib/panel/SuccessPanel.d.ts +0 -8
- package/lib/panel/ToolBar.d.ts +0 -8
- package/lib/panel/WarningPanel.d.ts +0 -8
- package/lib/panel/helpers.d.ts +0 -4
- package/lib/panel/index.d.ts +0 -13
- package/lib/panel/types.d.ts +0 -4
- package/lib/panel/types.js +0 -5
- package/lib/permissionValidations.d.ts +0 -14
- package/lib/popover/PopoverText.d.ts +0 -8
- package/lib/popover/PopoverTitle.d.ts +0 -8
- package/lib/popover/index.d.ts +0 -13
- package/lib/popover/types.d.ts +0 -21
- package/lib/popover/types.js +0 -5
- package/lib/progress/Bar.d.ts +0 -6
- package/lib/progress/index.d.ts +0 -7
- package/lib/progress/types.d.ts +0 -37
- package/lib/progress/types.js +0 -5
- package/lib/radio/index.d.ts +0 -12
- package/lib/radio/types.d.ts +0 -18
- package/lib/radio/types.js +0 -5
- package/lib/skeleton/SkeletonContainer.d.ts +0 -7
- package/lib/skeleton/index.d.ts +0 -8
- package/lib/skeleton/types.d.ts +0 -21
- package/lib/skeleton/types.js +0 -5
- package/lib/spinner/SpinnerLoading.d.ts +0 -7
- package/lib/spinner/index.d.ts +0 -7
- package/lib/spinner/types.d.ts +0 -20
- package/lib/spinner/types.js +0 -5
- package/lib/split/Split.d.ts +0 -6
- package/lib/split/SplitSide.d.ts +0 -6
- package/lib/split/helpers.d.ts +0 -10
- package/lib/split/index.d.ts +0 -5
- package/lib/split/types.d.ts +0 -34
- package/lib/split/types.js +0 -5
- package/lib/table/Body.d.ts +0 -6
- package/lib/table/Header.d.ts +0 -6
- package/lib/table/HeaderColumn.d.ts +0 -6
- package/lib/table/Row.d.ts +0 -6
- package/lib/table/RowColumn.d.ts +0 -6
- package/lib/table/helpers.d.ts +0 -8
- package/lib/table/index.d.ts +0 -11
- package/lib/table/types.d.ts +0 -84
- package/lib/table/types.js +0 -5
- package/lib/tabs/DropdownItems.d.ts +0 -9
- package/lib/tabs/Menu.d.ts +0 -9
- package/lib/tabs/MenuItems.d.ts +0 -9
- package/lib/tabs/Panel.d.ts +0 -9
- package/lib/tabs/index.d.ts +0 -10
- package/lib/tabs/tabHelpers.d.ts +0 -21
- package/lib/tabs/types.d.ts +0 -63
- package/lib/tabs/types.js +0 -5
- package/lib/toolbar/ButtonBar.d.ts +0 -10
- package/lib/toolbar/LabelBar.d.ts +0 -10
- package/lib/toolbar/Separator.d.ts +0 -3
- package/lib/toolbar/ToolBarGroup.d.ts +0 -10
- package/lib/toolbar/helpers.d.ts +0 -10
- package/lib/toolbar/index.d.ts +0 -14
- package/lib/toolbar/types.d.ts +0 -43
- package/lib/toolbar/types.js +0 -5
- package/lib/tooltip/index.d.ts +0 -6
- package/lib/tooltip/types.d.ts +0 -16
- package/lib/tooltip/types.js +0 -5
- package/lib/treeview/Header.d.ts +0 -7
- package/lib/treeview/Node.d.ts +0 -7
- package/lib/treeview/constants.d.ts +0 -7
- package/lib/treeview/index.d.ts +0 -9
- package/lib/treeview/types.d.ts +0 -104
- package/lib/treeview/types.js +0 -5
- package/lib/types-3c6f1c20.d.ts +0 -46
- package/lib/uitour/helpers.d.ts +0 -8
- package/lib/uitour/index.d.ts +0 -6
- package/lib/uitour/types.d.ts +0 -30
- package/lib/uitour/types.js +0 -5
|
@@ -76,7 +76,7 @@ var withDropdown = function withDropdown(WrappedComponent) {
|
|
|
76
76
|
var onClickOutside = function onClickOutside(event) {
|
|
77
77
|
var target = event.target;
|
|
78
78
|
|
|
79
|
-
if (popupRef.current && target !== popupRef.current && !popupRef.current
|
|
79
|
+
if (popupRef.current && target !== popupRef.current && !event.path.includes(popupRef.current) && wrappedComponentRef.current !== target) {
|
|
80
80
|
setOpened(false);
|
|
81
81
|
}
|
|
82
82
|
};
|
|
@@ -78,7 +78,7 @@ var SubMenuContainer = function SubMenuContainer(_ref) {
|
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
SubMenuContainer.propTypes = {
|
|
81
|
-
children: _propTypes.default.
|
|
81
|
+
children: _propTypes.default.node.isRequired,
|
|
82
82
|
handlerGoBack: _propTypes.default.func.isRequired,
|
|
83
83
|
title: _propTypes.default.string,
|
|
84
84
|
customClass: _propTypes.default.string,
|
|
@@ -88,7 +88,7 @@ SubMenuContainer.propTypes = {
|
|
|
88
88
|
SubMenuContainer.defaultProps = {
|
|
89
89
|
title: undefined,
|
|
90
90
|
customClass: undefined,
|
|
91
|
-
skeletonize:
|
|
91
|
+
skeletonize: false,
|
|
92
92
|
skeletonQtty: 3
|
|
93
93
|
};
|
|
94
94
|
var _default = SubMenuContainer;
|
package/lib/menus/float/index.js
CHANGED
|
@@ -83,7 +83,7 @@ var FloatMenu = function FloatMenu(props) {
|
|
|
83
83
|
|
|
84
84
|
FloatMenu.propTypes = {
|
|
85
85
|
customClass: _propTypes.default.string,
|
|
86
|
-
children: _propTypes.default.
|
|
86
|
+
children: _propTypes.default.node.isRequired,
|
|
87
87
|
iconSize: _propTypes.default.number,
|
|
88
88
|
iconColor: _propTypes.default.string,
|
|
89
89
|
customClassMenuItem: _propTypes.default.string,
|
package/package.json
CHANGED
package/lib/@types/Align.d.ts
DELETED
package/lib/@types/Align.js
DELETED
package/lib/@types/DataCombo.js
DELETED
package/lib/@types/Icon.d.ts
DELETED
package/lib/@types/Icon.js
DELETED
package/lib/@types/Period.d.ts
DELETED
package/lib/@types/Period.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare type PermissionAttr = {
|
|
2
|
-
module?: string;
|
|
3
|
-
feature?: string;
|
|
4
|
-
operation?: string;
|
|
5
|
-
onDenied?: string;
|
|
6
|
-
};
|
|
7
|
-
declare type OnDenied = {
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
unvisible?: boolean;
|
|
10
|
-
readOnly?: boolean;
|
|
11
|
-
hideContent?: boolean;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export { OnDenied, PermissionAttr };
|
package/lib/@types/Position.d.ts
DELETED
package/lib/@types/Position.js
DELETED
package/lib/@types/Size.d.ts
DELETED
package/lib/@types/Size.js
DELETED
package/lib/@types/SizePixels.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IMessageProps, DefaultMessageConfigType } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PositionAlert.js';
|
|
4
|
-
|
|
5
|
-
declare class AlertContainer {
|
|
6
|
-
pushAlert: (params: IMessageProps) => void;
|
|
7
|
-
constructor(pushAlert: (params: IMessageProps) => void);
|
|
8
|
-
default(messageConfig: DefaultMessageConfigType): void;
|
|
9
|
-
info: (message: string, options: IMessageProps) => void;
|
|
10
|
-
danger: (message: string, options: IMessageProps) => void;
|
|
11
|
-
warning: (message: string, options: IMessageProps) => void;
|
|
12
|
-
success: (message: string, options: IMessageProps) => void;
|
|
13
|
-
custom: (message: string, options: IMessageProps) => void;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { AlertContainer as default };
|
package/lib/alerts/Message.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IMessageProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PositionAlert.js';
|
|
4
|
-
|
|
5
|
-
declare const Message: ({ handleClose, message, id, color, icon, iconName, timeout, customClass, closeButton, className, position, }: IMessageProps) => JSX.Element;
|
|
6
|
-
|
|
7
|
-
export { Message as default };
|
package/lib/alerts/helpers.d.ts
DELETED
package/lib/alerts/index.d.ts
DELETED
package/lib/alerts/types.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { PositionAlert } from '../@types/PositionAlert.js';
|
|
3
|
-
|
|
4
|
-
declare type AlertContainerMethods = {
|
|
5
|
-
default: (messageConfig: DefaultMessageConfigType) => void;
|
|
6
|
-
info: (message: string, options: IMessageProps) => void;
|
|
7
|
-
custom: (message: string, options: IMessageProps) => void;
|
|
8
|
-
danger: (message: string, options: IMessageProps) => void;
|
|
9
|
-
warning: (message: string, options: IMessageProps) => void;
|
|
10
|
-
success: (message: string, options: IMessageProps) => void;
|
|
11
|
-
};
|
|
12
|
-
declare type DefaultMessageConfigType = {
|
|
13
|
-
message: string;
|
|
14
|
-
options: IMessageProps & {
|
|
15
|
-
type: 'info' | 'warning' | 'danger' | 'success';
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
interface IMessageProps {
|
|
19
|
-
id?: number;
|
|
20
|
-
position?: PositionAlert;
|
|
21
|
-
message?: string;
|
|
22
|
-
handleClose?: (id: number, position: string) => void;
|
|
23
|
-
className?: string;
|
|
24
|
-
closeButton?: boolean;
|
|
25
|
-
color?: string;
|
|
26
|
-
customClass?: string;
|
|
27
|
-
icon?: ReactNode | null;
|
|
28
|
-
iconName?: string;
|
|
29
|
-
timeout?: number;
|
|
30
|
-
}
|
|
31
|
-
interface IBaseAlertProps {
|
|
32
|
-
children: ReactNode;
|
|
33
|
-
}
|
|
34
|
-
interface IAlertProviderProps {
|
|
35
|
-
children: ReactNode;
|
|
36
|
-
}
|
|
37
|
-
interface WithAlertContextProps {
|
|
38
|
-
alert?: AlertContainerMethods;
|
|
39
|
-
}
|
|
40
|
-
declare type GetClassParams = {
|
|
41
|
-
customClass?: string;
|
|
42
|
-
className?: string;
|
|
43
|
-
};
|
|
44
|
-
declare type MessagesState = {
|
|
45
|
-
[key: string]: Array<IMessageProps>;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export { AlertContainerMethods, DefaultMessageConfigType, GetClassParams, IAlertProviderProps, IBaseAlertProps, IMessageProps, MessagesState, WithAlertContextProps };
|
package/lib/alerts/types.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { WithAlertContextProps } from './types.js';
|
|
3
|
-
import '../@types/PositionAlert.js';
|
|
4
|
-
|
|
5
|
-
declare const withAlert: <ComponentProps extends WithAlertContextProps>(WrapperComponent: React__default.ComponentType<ComponentProps>) => (props: ComponentProps) => JSX.Element;
|
|
6
|
-
|
|
7
|
-
export { withAlert as default };
|
package/lib/avatar/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IAvatarProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/Icon.js';
|
|
4
|
-
import '../icons/helper.js';
|
|
5
|
-
import '../@types/Size.js';
|
|
6
|
-
|
|
7
|
-
declare const _default: {
|
|
8
|
-
(props: IAvatarProps): JSX.Element;
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export { _default as default };
|
package/lib/avatar/types.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, ReactElement, ReactNode, CSSProperties } from 'react';
|
|
2
|
-
import { IconNames } from '../@types/Icon.js';
|
|
3
|
-
import { Size } from '../@types/Size.js';
|
|
4
|
-
import '../icons/helper.js';
|
|
5
|
-
|
|
6
|
-
interface IAvatarProps {
|
|
7
|
-
onClick?: (event: MouseEvent) => void;
|
|
8
|
-
size?: Size;
|
|
9
|
-
width?: string;
|
|
10
|
-
height?: string;
|
|
11
|
-
color?: string;
|
|
12
|
-
iconName?: IconNames;
|
|
13
|
-
icon?: ReactElement;
|
|
14
|
-
src?: string;
|
|
15
|
-
srcAlt?: string;
|
|
16
|
-
children?: ReactNode;
|
|
17
|
-
square?: boolean;
|
|
18
|
-
customClass?: string;
|
|
19
|
-
className?: string;
|
|
20
|
-
targetRef?: (ref: HTMLDivElement | null) => void;
|
|
21
|
-
dropdown?: boolean;
|
|
22
|
-
dropdownOnHover?: boolean;
|
|
23
|
-
showDropdown?: () => void;
|
|
24
|
-
getDropdownPopup?: (ref: HTMLDivElement | null) => ReactNode;
|
|
25
|
-
label?: string;
|
|
26
|
-
style?: CSSProperties;
|
|
27
|
-
id?: string;
|
|
28
|
-
disabled?: boolean;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export { IAvatarProps };
|
package/lib/avatar/types.js
DELETED
package/lib/badge/index.d.ts
DELETED
package/lib/badge/types.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
interface IBadgeProps {
|
|
4
|
-
color?: 'default' | 'primary' | 'danger' | 'warning' | 'success' | 'info';
|
|
5
|
-
top?: string;
|
|
6
|
-
right?: string;
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
customClass?: string;
|
|
9
|
-
customClassForBadge?: string;
|
|
10
|
-
content?: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { IBadgeProps };
|
package/lib/badge/types.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IButtonProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PermissionAttr.js';
|
|
4
|
-
import '../@types/Position.js';
|
|
5
|
-
import '../@types/Size.js';
|
|
6
|
-
|
|
7
|
-
declare const ActivateButton: (props: IButtonProps) => JSX.Element;
|
|
8
|
-
|
|
9
|
-
export { ActivateButton as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IButtonProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PermissionAttr.js';
|
|
4
|
-
import '../@types/Position.js';
|
|
5
|
-
import '../@types/Size.js';
|
|
6
|
-
|
|
7
|
-
declare const AddButton: (props: IButtonProps) => JSX.Element;
|
|
8
|
-
|
|
9
|
-
export { AddButton as default };
|
package/lib/buttons/Button.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IButtonProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PermissionAttr.js';
|
|
4
|
-
import '../@types/Position.js';
|
|
5
|
-
import '../@types/Size.js';
|
|
6
|
-
|
|
7
|
-
interface ButtonProps extends IButtonProps {
|
|
8
|
-
split?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const Button: ({ split, ...rest }: ButtonProps) => JSX.Element;
|
|
11
|
-
|
|
12
|
-
export { Button as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IButtonProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PermissionAttr.js';
|
|
4
|
-
import '../@types/Position.js';
|
|
5
|
-
import '../@types/Size.js';
|
|
6
|
-
|
|
7
|
-
declare const CancelButton: ({ customClass, ...rest }: IButtonProps) => JSX.Element;
|
|
8
|
-
|
|
9
|
-
export { CancelButton as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IButtonProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PermissionAttr.js';
|
|
4
|
-
import '../@types/Position.js';
|
|
5
|
-
import '../@types/Size.js';
|
|
6
|
-
|
|
7
|
-
declare const DangerButton: ({ customClass, ...rest }: IButtonProps) => JSX.Element;
|
|
8
|
-
|
|
9
|
-
export { DangerButton as default };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IButtonProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PermissionAttr.js';
|
|
4
|
-
import '../@types/Position.js';
|
|
5
|
-
import '../@types/Size.js';
|
|
6
|
-
|
|
7
|
-
declare const _default: {
|
|
8
|
-
(props: Omit<IButtonProps, "split">): JSX.Element;
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export { _default as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IButtonProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PermissionAttr.js';
|
|
4
|
-
import '../@types/Position.js';
|
|
5
|
-
import '../@types/Size.js';
|
|
6
|
-
|
|
7
|
-
declare const DestroyButton: ({ icon, ...rest }: IButtonProps) => JSX.Element;
|
|
8
|
-
|
|
9
|
-
export { DestroyButton as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IButtonProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PermissionAttr.js';
|
|
4
|
-
import '../@types/Position.js';
|
|
5
|
-
import '../@types/Size.js';
|
|
6
|
-
|
|
7
|
-
declare const EditButton: (props: IButtonProps) => JSX.Element;
|
|
8
|
-
|
|
9
|
-
export { EditButton as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IButtonProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PermissionAttr.js';
|
|
4
|
-
import '../@types/Position.js';
|
|
5
|
-
import '../@types/Size.js';
|
|
6
|
-
|
|
7
|
-
declare const InactivateButton: (props: IButtonProps) => JSX.Element;
|
|
8
|
-
|
|
9
|
-
export { InactivateButton as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IButtonProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PermissionAttr.js';
|
|
4
|
-
import '../@types/Position.js';
|
|
5
|
-
import '../@types/Size.js';
|
|
6
|
-
|
|
7
|
-
declare const InfoButton: ({ customClass, ...rest }: IButtonProps) => JSX.Element;
|
|
8
|
-
|
|
9
|
-
export { InfoButton as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IButtonProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PermissionAttr.js';
|
|
4
|
-
import '../@types/Position.js';
|
|
5
|
-
import '../@types/Size.js';
|
|
6
|
-
|
|
7
|
-
declare const PrimaryButton: ({ customClass, ...rest }: IButtonProps) => JSX.Element;
|
|
8
|
-
|
|
9
|
-
export { PrimaryButton as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IButtonProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PermissionAttr.js';
|
|
4
|
-
import '../@types/Position.js';
|
|
5
|
-
import '../@types/Size.js';
|
|
6
|
-
|
|
7
|
-
declare const RestoreButton: (props: IButtonProps) => JSX.Element;
|
|
8
|
-
|
|
9
|
-
export { RestoreButton as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IButtonProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PermissionAttr.js';
|
|
4
|
-
import '../@types/Position.js';
|
|
5
|
-
import '../@types/Size.js';
|
|
6
|
-
|
|
7
|
-
declare const SaveButton: ({ customClass, ...rest }: IButtonProps) => JSX.Element;
|
|
8
|
-
|
|
9
|
-
export { SaveButton as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IButtonProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PermissionAttr.js';
|
|
4
|
-
import '../@types/Position.js';
|
|
5
|
-
import '../@types/Size.js';
|
|
6
|
-
|
|
7
|
-
declare const SuccessButton: ({ customClass, ...rest }: IButtonProps) => JSX.Element;
|
|
8
|
-
|
|
9
|
-
export { SuccessButton as default };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IButtonProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PermissionAttr.js';
|
|
4
|
-
import '../@types/Position.js';
|
|
5
|
-
import '../@types/Size.js';
|
|
6
|
-
|
|
7
|
-
declare const WarningButton: ({ customClass, ...rest }: IButtonProps) => JSX.Element;
|
|
8
|
-
|
|
9
|
-
export { WarningButton as default };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
-
import { Position } from '../../@types/Position.js';
|
|
3
|
-
|
|
4
|
-
interface IButtonContainerProps {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
style?: CSSProperties;
|
|
7
|
-
customClass?: string;
|
|
8
|
-
position?: Extract<Position, 'left' | 'right'>;
|
|
9
|
-
}
|
|
10
|
-
declare const ButtonContainer: ({ style, customClass, position, children, }: IButtonContainerProps) => JSX.Element;
|
|
11
|
-
|
|
12
|
-
export { ButtonContainer as default };
|