linear-react-components-ui 1.0.10-beta.12 → 1.0.10-beta.13
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/alerts/AlertContainer.d.ts +2 -0
- package/lib/alerts/AlertProvider.d.ts +2 -0
- package/lib/alerts/BaseAlert.d.ts +2 -0
- package/lib/alerts/Message.d.ts +2 -0
- package/lib/alerts/Message.js +1 -1
- package/lib/alerts/helpers.d.ts +2 -0
- package/lib/alerts/index.d.ts +2 -0
- package/lib/alerts/types.d.ts +3 -1
- package/lib/alerts/withAlert.d.ts +2 -0
- package/lib/assets/styles/dialog.scss +0 -2
- package/lib/assets/styles/drawers.scss +9 -0
- package/lib/assets/styles/radio.scss +52 -8
- package/lib/assets/styles/table.scss +30 -0
- package/lib/assets/styles/tooltip.scss +42 -2
- package/lib/buttons/ActivateButton.d.ts +2 -0
- package/lib/buttons/AddButton.d.ts +2 -0
- package/lib/buttons/Button.d.ts +2 -0
- package/lib/buttons/CancelButton.d.ts +2 -0
- package/lib/buttons/DangerButton.d.ts +2 -0
- package/lib/buttons/DefaultButton.d.ts +2 -0
- package/lib/buttons/DefaultButton.js +16 -4
- package/lib/buttons/DestroyButton.d.ts +2 -0
- package/lib/buttons/EditButton.d.ts +2 -0
- package/lib/buttons/InactivateButton.d.ts +2 -0
- package/lib/buttons/InfoButton.d.ts +2 -0
- package/lib/buttons/PrimaryButton.d.ts +2 -0
- package/lib/buttons/RestoreButton.d.ts +2 -0
- package/lib/buttons/SaveButton.d.ts +2 -0
- package/lib/buttons/SuccessButton.d.ts +2 -0
- package/lib/buttons/WarningButton.d.ts +2 -0
- package/lib/buttons/index.d.ts +2 -0
- package/lib/buttons/split_button/index.d.ts +2 -0
- package/lib/buttons/types.d.ts +6 -2
- package/lib/dialog/Alert.d.ts +2 -0
- package/lib/dialog/Custom.d.ts +2 -0
- package/lib/dialog/Custom.js +1 -1
- package/lib/dialog/Error.d.ts +2 -0
- package/lib/dialog/Information.d.ts +2 -0
- package/lib/dialog/Question.d.ts +2 -0
- package/lib/dialog/Warning.d.ts +2 -0
- package/lib/dialog/base/Content.d.ts +2 -0
- package/lib/dialog/base/Footer.d.ts +2 -0
- package/lib/dialog/base/Header.d.ts +2 -0
- package/lib/dialog/base/index.d.ts +2 -0
- package/lib/dialog/base/index.js +5 -2
- package/lib/dialog/form/index.d.ts +2 -0
- package/lib/dialog/index.d.ts +2 -0
- package/lib/dialog/types.d.ts +4 -2
- package/lib/drawer/Content.d.ts +2 -0
- package/lib/drawer/Drawer.d.ts +3 -1
- package/lib/drawer/Drawer.js +25 -2
- package/lib/drawer/Header.d.ts +2 -0
- package/lib/drawer/helpers.d.ts +2 -0
- package/lib/drawer/index.d.ts +2 -0
- package/lib/drawer/types.d.ts +4 -1
- package/lib/dropdown/Popup.js +7 -0
- package/lib/form/Field.js +3 -2
- package/lib/form/FieldNumber.d.ts +2 -2
- package/lib/form/index.d.ts +2 -1
- package/lib/form/index.js +10 -1
- package/lib/form/types.d.ts +2 -5
- package/lib/form/withFormSecurity.js +2 -1
- package/lib/icons/index.d.ts +2 -0
- package/lib/icons/types.d.ts +3 -1
- package/lib/index.d.ts +3 -1
- package/lib/inputs/base/InputTextBase.js +7 -1
- package/lib/inputs/inputHOC.d.ts +2 -0
- package/lib/inputs/mask/helpers.d.ts +2 -0
- package/lib/inputs/mask/imaskHOC.d.ts +2 -0
- package/lib/inputs/mask/imaskHOC.js +1 -1
- package/lib/inputs/multiSelect/ActionButtons.d.ts +1 -1
- package/lib/inputs/multiSelect/ActionButtons.js +4 -1
- package/lib/inputs/multiSelect/Dropdown.js +1 -1
- package/lib/inputs/multiSelect/helper.d.ts +8 -6
- package/lib/inputs/multiSelect/helper.js +7 -1
- package/lib/inputs/multiSelect/index.js +5 -2
- package/lib/inputs/multiSelect/types.d.ts +11 -3
- package/lib/inputs/number/BaseNumber.d.ts +2 -0
- package/lib/inputs/number/Currency.d.ts +2 -0
- package/lib/inputs/number/Decimal.d.ts +2 -0
- package/lib/inputs/number/index.d.ts +2 -0
- package/lib/inputs/number/types.d.ts +2 -0
- package/lib/inputs/period/index.js +8 -8
- package/lib/inputs/period/types.d.ts +2 -2
- package/lib/inputs/search/index.d.ts +2 -0
- package/lib/inputs/select/ActionButtons.d.ts +2 -0
- package/lib/inputs/select/Dropdown.d.ts +2 -0
- package/lib/inputs/select/Dropdown.js +1 -1
- package/lib/inputs/select/helper.d.ts +6 -9
- package/lib/inputs/select/helper.js +16 -2
- package/lib/inputs/select/index.js +7 -6
- package/lib/inputs/select/multiple/Selecteds.js +1 -1
- package/lib/inputs/select/multiple/index.js +13 -10
- package/lib/inputs/select/simple/index.js +35 -12
- package/lib/inputs/select/types.d.ts +21 -7
- package/lib/inputs/types.d.ts +4 -1
- package/lib/internals/types.d.ts +1 -0
- package/lib/internals/withTooltip.js +13 -6
- package/lib/labelMessages/index.d.ts +2 -0
- package/lib/labelMessages/index.js +3 -4
- package/lib/labelMessages/types.d.ts +3 -1
- package/lib/labels/DangerLabel.d.ts +2 -0
- package/lib/labels/DefaultLabel.d.ts +2 -0
- package/lib/labels/InfoLabel.d.ts +2 -0
- package/lib/labels/PrimaryLabel.d.ts +2 -0
- package/lib/labels/SuccessLabel.d.ts +2 -0
- package/lib/labels/WarningLabel.d.ts +2 -0
- package/lib/labels/index.d.ts +2 -0
- package/lib/labels/types.d.ts +3 -1
- package/lib/list/Header.d.ts +2 -0
- package/lib/list/Item.d.ts +2 -0
- package/lib/list/helpers.d.ts +2 -0
- package/lib/list/index.d.ts +2 -0
- package/lib/list/types.d.ts +4 -2
- package/lib/menus/float/MenuItem.d.ts +2 -0
- package/lib/menus/float/helpers.d.ts +2 -0
- package/lib/menus/float/index.d.ts +2 -0
- package/lib/menus/float/types.d.ts +3 -1
- package/lib/menus/index.d.ts +2 -0
- package/lib/menus/sidenav/ExpandMenu.d.ts +2 -0
- package/lib/menus/sidenav/MenuLink.d.ts +2 -0
- package/lib/menus/sidenav/NavMenuGroup.d.ts +2 -0
- package/lib/menus/sidenav/NavMenuItem.d.ts +2 -0
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +2 -0
- package/lib/menus/sidenav/helpers.d.ts +2 -0
- package/lib/menus/sidenav/index.d.ts +2 -0
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +2 -0
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +2 -0
- package/lib/menus/sidenav/types.d.ts +4 -2
- package/lib/panel/Content.d.ts +3 -1
- package/lib/panel/DangerPanel.d.ts +3 -1
- package/lib/panel/Default.d.ts +3 -1
- package/lib/panel/Header.d.ts +3 -1
- package/lib/panel/Header.js +3 -4
- package/lib/panel/InfoPanel.d.ts +3 -1
- package/lib/panel/PrimaryPanel.d.ts +3 -1
- package/lib/panel/SuccessPanel.d.ts +3 -1
- package/lib/panel/ToolBar.d.ts +3 -1
- package/lib/panel/WarningPanel.d.ts +3 -1
- package/lib/panel/helpers.d.ts +3 -1
- package/lib/panel/index.d.ts +3 -1
- package/lib/panel/types.d.ts +3 -1
- package/lib/popover/PopoverText.d.ts +2 -0
- package/lib/popover/PopoverTitle.d.ts +2 -0
- package/lib/popover/index.d.ts +2 -0
- package/lib/popover/index.js +1 -2
- package/lib/popover/types.d.ts +3 -1
- package/lib/radio/index.d.ts +2 -1
- package/lib/radio/index.js +3 -1
- package/lib/radio/types.d.ts +2 -0
- package/lib/table/Row.js +20 -3
- package/lib/table/types.d.ts +5 -0
- package/lib/tabs/DropdownItems.d.ts +2 -0
- package/lib/tabs/Menu.d.ts +2 -0
- package/lib/tabs/MenuItems.d.ts +2 -0
- package/lib/tabs/Panel.d.ts +2 -0
- package/lib/tabs/index.d.ts +2 -0
- package/lib/tabs/tabHelpers.d.ts +2 -0
- package/lib/tabs/types.d.ts +3 -1
- package/lib/toolbar/ButtonBar.d.ts +2 -0
- package/lib/toolbar/LabelBar.d.ts +2 -0
- package/lib/toolbar/ToolBarGroup.d.ts +2 -0
- package/lib/toolbar/helpers.d.ts +2 -0
- package/lib/toolbar/index.d.ts +2 -0
- package/lib/toolbar/types.d.ts +4 -2
- package/lib/tooltip/index.d.ts +1 -1
- package/lib/tooltip/index.js +5 -1
- package/lib/tooltip/types.d.ts +1 -0
- package/lib/{types-3c6f1c20.d.ts → types-c1d83632.d.ts} +2 -1
- package/package.json +1 -1
|
@@ -52,7 +52,8 @@ var withTooltip = function withTooltip(WrappedComponent) {
|
|
|
52
52
|
_props$space = props.space,
|
|
53
53
|
space = _props$space === void 0 ? 20 : _props$space,
|
|
54
54
|
_props$tooltipPositio = props.tooltipPosition,
|
|
55
|
-
tooltipPosition = _props$tooltipPositio === void 0 ? 'bottom' : _props$tooltipPositio
|
|
55
|
+
tooltipPosition = _props$tooltipPositio === void 0 ? 'bottom' : _props$tooltipPositio,
|
|
56
|
+
errorMessage = props.errorMessage;
|
|
56
57
|
|
|
57
58
|
var _useState = (0, _react.useState)(tooltipPosition),
|
|
58
59
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -96,11 +97,16 @@ var withTooltip = function withTooltip(WrappedComponent) {
|
|
|
96
97
|
|
|
97
98
|
(0, _react.useEffect)(function () {
|
|
98
99
|
if (hasTooltip(props)) {
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
if (errorMessage) {
|
|
101
|
+
setShowTooltip(true);
|
|
102
|
+
} else {
|
|
103
|
+
setShowTooltip(false);
|
|
104
|
+
document.addEventListener('mouseover', onMouseOver);
|
|
105
|
+
document.addEventListener('scroll', onAnyScroll, true);
|
|
101
106
|
|
|
102
|
-
|
|
103
|
-
|
|
107
|
+
if (targetElement && targetElement.current) {
|
|
108
|
+
targetElement.current.addEventListener('mouseout', onMouseOut);
|
|
109
|
+
}
|
|
104
110
|
}
|
|
105
111
|
}
|
|
106
112
|
|
|
@@ -114,7 +120,7 @@ var withTooltip = function withTooltip(WrappedComponent) {
|
|
|
114
120
|
}
|
|
115
121
|
}
|
|
116
122
|
};
|
|
117
|
-
}, []);
|
|
123
|
+
}, [errorMessage]);
|
|
118
124
|
(0, _react.useEffect)(function () {
|
|
119
125
|
if (targetElement.current && tooltipElement.current) {
|
|
120
126
|
var width = tooltipDimensions.width,
|
|
@@ -181,6 +187,7 @@ var withTooltip = function withTooltip(WrappedComponent) {
|
|
|
181
187
|
if (tooltip) {
|
|
182
188
|
return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
183
189
|
text: tooltip,
|
|
190
|
+
textError: errorMessage,
|
|
184
191
|
tooltipRef: tooltipElement,
|
|
185
192
|
style: tooltipStyle,
|
|
186
193
|
className: stateTooltipPosition,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ILabelMessagesProps } from './types.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/LabelStyles.js';
|
|
4
|
+
import '../@types/Icon.js';
|
|
5
|
+
import '../icons/helper.js';
|
|
4
6
|
|
|
5
7
|
declare const LabelMessages: ({ style, icon, flat, iconName, handlerClosed, square, visible, children, customClass, type, showCloseButton }: ILabelMessagesProps) => JSX.Element | null;
|
|
6
8
|
|
|
@@ -38,8 +38,7 @@ var LabelMessages = function LabelMessages(_ref) {
|
|
|
38
38
|
icon = _ref$icon === void 0 ? null : _ref$icon,
|
|
39
39
|
_ref$flat = _ref.flat,
|
|
40
40
|
flat = _ref$flat === void 0 ? false : _ref$flat,
|
|
41
|
-
|
|
42
|
-
iconName = _ref$iconName === void 0 ? '' : _ref$iconName,
|
|
41
|
+
iconName = _ref.iconName,
|
|
43
42
|
handlerClosed = _ref.handlerClosed,
|
|
44
43
|
_ref$square = _ref.square,
|
|
45
44
|
square = _ref$square === void 0 ? true : _ref$square,
|
|
@@ -64,9 +63,9 @@ var LabelMessages = function LabelMessages(_ref) {
|
|
|
64
63
|
};
|
|
65
64
|
|
|
66
65
|
var getIcon = function getIcon() {
|
|
67
|
-
if (icon
|
|
66
|
+
if (icon) {
|
|
68
67
|
return icon;
|
|
69
|
-
} else if (iconName
|
|
68
|
+
} else if (iconName) {
|
|
70
69
|
return /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
71
70
|
name: iconName,
|
|
72
71
|
size: 16,
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { LabelStyles } from '../@types/LabelStyles.js';
|
|
3
|
+
import { IconNames } from '../@types/Icon.js';
|
|
4
|
+
import '../icons/helper.js';
|
|
3
5
|
|
|
4
6
|
interface ILabelMessagesProps {
|
|
5
7
|
style?: CSSProperties;
|
|
6
8
|
type?: LabelStyles;
|
|
7
|
-
iconName?:
|
|
9
|
+
iconName?: IconNames;
|
|
8
10
|
icon?: ReactNode | null;
|
|
9
11
|
children?: ReactNode;
|
|
10
12
|
customClass?: string;
|
|
@@ -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 DangerLabel: ({ className, ...rest }: ILabelProps) => JSX.Element;
|
|
8
10
|
|
|
@@ -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 PrimaryLabel: ({ className, ...rest }: ILabelProps) => JSX.Element;
|
|
8
10
|
|
|
@@ -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 SuccessLabel: ({ className, ...rest }: ILabelProps) => JSX.Element;
|
|
8
10
|
|
|
@@ -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 WarningLabel: ({ className, ...rest }: ILabelProps) => JSX.Element;
|
|
8
10
|
|
package/lib/labels/index.d.ts
CHANGED
package/lib/labels/types.d.ts
CHANGED
|
@@ -2,11 +2,13 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { PermissionAttr } from '../@types/PermissionAttr.js';
|
|
3
3
|
import { Position } from '../@types/Position.js';
|
|
4
4
|
import { Size } from '../@types/Size.js';
|
|
5
|
+
import { IconNames } from '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
interface ILabelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
9
|
customClass?: string;
|
|
8
10
|
size?: Size;
|
|
9
|
-
iconName?:
|
|
11
|
+
iconName?: IconNames;
|
|
10
12
|
iconAlign?: Position;
|
|
11
13
|
icon?: ReactElement;
|
|
12
14
|
targetRef?: (ref: HTMLDivElement | null) => void;
|
package/lib/list/Header.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { IListHeaderProps } from './types.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
|
+
import '../@types/Icon.js';
|
|
5
|
+
import '../icons/helper.js';
|
|
4
6
|
|
|
5
7
|
declare const Header: ({ title, children, style, customClass }: IListHeaderProps) => JSX.Element;
|
|
6
8
|
|
package/lib/list/Item.d.ts
CHANGED
package/lib/list/helpers.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { IListContext } from './types.js';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
|
+
import '../@types/Icon.js';
|
|
5
|
+
import '../icons/helper.js';
|
|
4
6
|
|
|
5
7
|
declare const ListContext: React__default.Context<IListContext>;
|
|
6
8
|
declare const LIST_ITEMS_TYPES: {
|
package/lib/list/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export { default as ListSeparator } from './Separator.js';
|
|
|
4
4
|
import { IListProps } from './types.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '../@types/PermissionAttr.js';
|
|
7
|
+
import '../@types/Icon.js';
|
|
8
|
+
import '../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const List: (props: IListProps) => JSX.Element;
|
|
9
11
|
|
package/lib/list/types.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ReactNode, ReactElement, CSSProperties, Ref } from 'react';
|
|
2
2
|
import { PermissionAttr } from '../@types/PermissionAttr.js';
|
|
3
|
+
import { IconNames } from '../@types/Icon.js';
|
|
4
|
+
import '../icons/helper.js';
|
|
3
5
|
|
|
4
6
|
declare type ItemId = string;
|
|
5
7
|
interface KeyboardEvent {
|
|
@@ -40,8 +42,8 @@ interface IListItemProps {
|
|
|
40
42
|
leftIcon?: ReactElement;
|
|
41
43
|
rightIcon?: ReactElement;
|
|
42
44
|
onClick?: (event?: React.MouseEvent<HTMLLIElement, MouseEvent> | KeyboardEvent, itemId?: string) => void;
|
|
43
|
-
leftIconName?:
|
|
44
|
-
rightIconName?:
|
|
45
|
+
leftIconName?: IconNames;
|
|
46
|
+
rightIconName?: IconNames;
|
|
45
47
|
customClass?: string;
|
|
46
48
|
url?: string;
|
|
47
49
|
visible?: boolean;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { IFloatMenuItemProps } from './types.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../../@types/SizePixels.js';
|
|
4
|
+
import '../../@types/Icon.js';
|
|
5
|
+
import '../../icons/helper.js';
|
|
4
6
|
|
|
5
7
|
declare const MenuItem: ({ title, url, iconName, iconColor, iconSize, dropdownMenu, onClick, }: IFloatMenuItemProps) => JSX.Element;
|
|
6
8
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { IFloatMenuContext } from './types.js';
|
|
3
3
|
import '../../@types/SizePixels.js';
|
|
4
|
+
import '../../@types/Icon.js';
|
|
5
|
+
import '../../icons/helper.js';
|
|
4
6
|
|
|
5
7
|
declare const FloatMenuContext: React__default.Context<IFloatMenuContext>;
|
|
6
8
|
|
|
@@ -3,6 +3,8 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { IFloatMenuProps } from './types.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '../../@types/SizePixels.js';
|
|
6
|
+
import '../../@types/Icon.js';
|
|
7
|
+
import '../../icons/helper.js';
|
|
6
8
|
|
|
7
9
|
declare function SubMenuContainer({ title, customClass, handlerGoBack, skeletonize, skeletonQtty, children, }: {
|
|
8
10
|
title: any;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { SizePixels } from '../../@types/SizePixels.js';
|
|
3
|
+
import { IconNames } from '../../@types/Icon.js';
|
|
4
|
+
import '../../icons/helper.js';
|
|
3
5
|
|
|
4
6
|
interface IFloatMenuContext {
|
|
5
7
|
customClassMenuItem?: string;
|
|
@@ -17,7 +19,7 @@ interface IFloatMenuItemProps {
|
|
|
17
19
|
title?: string;
|
|
18
20
|
url?: string;
|
|
19
21
|
urlHref?: string;
|
|
20
|
-
iconName?:
|
|
22
|
+
iconName?: IconNames;
|
|
21
23
|
iconColor?: string;
|
|
22
24
|
iconSize?: SizePixels;
|
|
23
25
|
customClass?: string;
|
package/lib/menus/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import '../../@types/PermissionAttr.js';
|
|
|
4
4
|
import '../../@types/Size.js';
|
|
5
5
|
import '../../internals/types.js';
|
|
6
6
|
import '../../@types/Position.js';
|
|
7
|
+
import '../../@types/Icon.js';
|
|
8
|
+
import '../../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const ExpandMenu: ({ onExpandMenu, expandMenuCustomClass, iconName }: IExpandMenuProps) => JSX.Element;
|
|
9
11
|
|
|
@@ -4,6 +4,8 @@ import '../../@types/PermissionAttr.js';
|
|
|
4
4
|
import '../../@types/Size.js';
|
|
5
5
|
import '../../internals/types.js';
|
|
6
6
|
import '../../@types/Position.js';
|
|
7
|
+
import '../../@types/Icon.js';
|
|
8
|
+
import '../../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const _default: {
|
|
9
11
|
(props: IMenuLinkProps): JSX.Element;
|
|
@@ -4,6 +4,8 @@ import '../../@types/PermissionAttr.js';
|
|
|
4
4
|
import '../../@types/Size.js';
|
|
5
5
|
import '../../internals/types.js';
|
|
6
6
|
import '../../@types/Position.js';
|
|
7
|
+
import '../../@types/Icon.js';
|
|
8
|
+
import '../../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const NavMenuGroup: ({ children, scrollable }: INavMenuGroupProps) => JSX.Element;
|
|
9
11
|
|
|
@@ -4,6 +4,8 @@ import '../../@types/PermissionAttr.js';
|
|
|
4
4
|
import '../../@types/Size.js';
|
|
5
5
|
import '../../internals/types.js';
|
|
6
6
|
import '../../@types/Position.js';
|
|
7
|
+
import '../../@types/Icon.js';
|
|
8
|
+
import '../../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const _default: {
|
|
9
11
|
(props: INavMenuItemProps): JSX.Element;
|
|
@@ -4,6 +4,8 @@ import '../../@types/PermissionAttr.js';
|
|
|
4
4
|
import '../../@types/Size.js';
|
|
5
5
|
import '../../internals/types.js';
|
|
6
6
|
import '../../@types/Position.js';
|
|
7
|
+
import '../../@types/Icon.js';
|
|
8
|
+
import '../../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const NavSubMenuItem: ({ title, url, permissionAttr }: INavSubMenuItemProps) => JSX.Element | null;
|
|
9
11
|
|
|
@@ -4,6 +4,8 @@ import '../../@types/PermissionAttr.js';
|
|
|
4
4
|
import '../../@types/Size.js';
|
|
5
5
|
import '../../internals/types.js';
|
|
6
6
|
import '../../@types/Position.js';
|
|
7
|
+
import '../../@types/Icon.js';
|
|
8
|
+
import '../../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const getCssClassMenu: (isExpanded?: boolean, size?: string) => string;
|
|
9
11
|
declare const SubMenuContext: React__default.Context<ISubMenuContext>;
|
|
@@ -8,6 +8,8 @@ import '../../@types/PermissionAttr.js';
|
|
|
8
8
|
import '../../@types/Size.js';
|
|
9
9
|
import '../../internals/types.js';
|
|
10
10
|
import '../../@types/Position.js';
|
|
11
|
+
import '../../@types/Icon.js';
|
|
12
|
+
import '../../icons/helper.js';
|
|
11
13
|
|
|
12
14
|
declare const SideNav: (props: ISideNavProps) => JSX.Element;
|
|
13
15
|
|
|
@@ -4,6 +4,8 @@ import '../../../@types/PermissionAttr.js';
|
|
|
4
4
|
import '../../../@types/Size.js';
|
|
5
5
|
import '../../../internals/types.js';
|
|
6
6
|
import '../../../@types/Position.js';
|
|
7
|
+
import '../../../@types/Icon.js';
|
|
8
|
+
import '../../../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const EmptyList: ({ info, visible, }: IEmptyListProps) => JSX.Element;
|
|
9
11
|
|
|
@@ -4,6 +4,8 @@ import '../../../@types/PermissionAttr.js';
|
|
|
4
4
|
import '../../../@types/Size.js';
|
|
5
5
|
import '../../../internals/types.js';
|
|
6
6
|
import '../../../@types/Position.js';
|
|
7
|
+
import '../../../@types/Icon.js';
|
|
8
|
+
import '../../../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const PopupMenuSearch: (props: IPopupMenuSearchProps) => React__default.ReactPortal;
|
|
9
11
|
|
|
@@ -2,7 +2,9 @@ import { ReactNode, ReactElement, Ref, CSSProperties } from 'react';
|
|
|
2
2
|
import { PermissionAttr } from '../../@types/PermissionAttr.js';
|
|
3
3
|
import { Size } from '../../@types/Size.js';
|
|
4
4
|
import { WithTooltipProps } from '../../internals/types.js';
|
|
5
|
+
import { IconNames } from '../../@types/Icon.js';
|
|
5
6
|
import '../../@types/Position.js';
|
|
7
|
+
import '../../icons/helper.js';
|
|
6
8
|
|
|
7
9
|
interface ISideNavProps {
|
|
8
10
|
children: ReactNode;
|
|
@@ -40,7 +42,7 @@ interface INavMenuGroupProps {
|
|
|
40
42
|
interface INavMenuItemProps extends WithTooltipProps {
|
|
41
43
|
children?: ReactNode;
|
|
42
44
|
title?: string;
|
|
43
|
-
iconName?:
|
|
45
|
+
iconName?: IconNames;
|
|
44
46
|
childrenIsSubMenu?: boolean;
|
|
45
47
|
url?: string;
|
|
46
48
|
customClass?: string;
|
|
@@ -58,7 +60,7 @@ interface INavSubMenuItemProps {
|
|
|
58
60
|
interface IExpandMenuProps {
|
|
59
61
|
expandMenuCustomClass?: string;
|
|
60
62
|
onExpandMenu?: () => void;
|
|
61
|
-
iconName?:
|
|
63
|
+
iconName?: IconNames;
|
|
62
64
|
}
|
|
63
65
|
interface IEmptyListProps {
|
|
64
66
|
info?: string;
|
package/lib/panel/Content.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { I as IPanelProps } from '../types-
|
|
1
|
+
import { I as IPanelProps } from '../types-c1d83632.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
declare const PanelContent: ({ customClass, children, style }: IPanelProps) => JSX.Element | null;
|
|
7
9
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { I as IPanelProps } from '../types-
|
|
1
|
+
import { I as IPanelProps } from '../types-c1d83632.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
declare const DangerPanel: (props: IPanelProps) => JSX.Element;
|
|
7
9
|
|
package/lib/panel/Default.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { I as IPanelProps } from '../types-
|
|
1
|
+
import { I as IPanelProps } from '../types-c1d83632.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
declare const DefaultPanel: ({ startOpened, toggleable, customClass, children, style, title, gridCols, onEndReached, onEndReachedThreshold, permissionAttr, colorStyle, }: IPanelProps) => JSX.Element | null;
|
|
7
9
|
|
package/lib/panel/Header.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { a as IPanelHeaderProps } from '../types-
|
|
1
|
+
import { a as IPanelHeaderProps } from '../types-c1d83632.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
declare const PanelHeader: (props: IPanelHeaderProps) => JSX.Element;
|
|
7
9
|
|
package/lib/panel/Header.js
CHANGED
|
@@ -22,9 +22,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
22
22
|
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; }
|
|
23
23
|
|
|
24
24
|
var getIcon = function getIcon(titleIcon, icon) {
|
|
25
|
-
if (icon
|
|
25
|
+
if (icon) {
|
|
26
26
|
return icon;
|
|
27
|
-
} else if (titleIcon
|
|
27
|
+
} else if (titleIcon) {
|
|
28
28
|
return /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
29
29
|
name: titleIcon,
|
|
30
30
|
color: "#000",
|
|
@@ -45,8 +45,7 @@ var getClassName = function getClassName(_ref) {
|
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
var PanelHeader = function PanelHeader(props) {
|
|
48
|
-
var
|
|
49
|
-
titleIcon = _props$titleIcon === void 0 ? '' : _props$titleIcon,
|
|
48
|
+
var titleIcon = props.titleIcon,
|
|
50
49
|
icon = props.icon,
|
|
51
50
|
title = props.title,
|
|
52
51
|
children = props.children,
|
package/lib/panel/InfoPanel.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { I as IPanelProps } from '../types-
|
|
1
|
+
import { I as IPanelProps } from '../types-c1d83632.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
declare const InfoPanel: (props: IPanelProps) => JSX.Element;
|
|
7
9
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { I as IPanelProps } from '../types-
|
|
1
|
+
import { I as IPanelProps } from '../types-c1d83632.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
declare const PrimaryPanel: (props: IPanelProps) => JSX.Element;
|
|
7
9
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { I as IPanelProps } from '../types-
|
|
1
|
+
import { I as IPanelProps } from '../types-c1d83632.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
declare const SuccessPanel: (props: IPanelProps) => JSX.Element;
|
|
7
9
|
|
package/lib/panel/ToolBar.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { I as IPanelProps } from '../types-
|
|
1
|
+
import { I as IPanelProps } from '../types-c1d83632.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
declare const ToolBar: ({ children }: IPanelProps) => JSX.Element;
|
|
7
9
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { I as IPanelProps } from '../types-
|
|
1
|
+
import { I as IPanelProps } from '../types-c1d83632.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
declare const WarningPanel: (props: IPanelProps) => JSX.Element;
|
|
7
9
|
|
package/lib/panel/helpers.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { P as default, n as numberAroundZeroAndOne } from '../types-
|
|
2
|
+
export { P as default, n as numberAroundZeroAndOne } from '../types-c1d83632.js';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
package/lib/panel/index.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ export { default as SuccessPanel } from './SuccessPanel.js';
|
|
|
7
7
|
export { default as InfoPanel } from './InfoPanel.js';
|
|
8
8
|
export { default as PanelHeader } from './Header.js';
|
|
9
9
|
export { default as PanelContent } from './Content.js';
|
|
10
|
-
import '../types-
|
|
10
|
+
import '../types-c1d83632.js';
|
|
11
11
|
import 'react';
|
|
12
12
|
import '../@types/PermissionAttr.js';
|
|
13
13
|
import '../internals/colorStyles.js';
|
|
14
|
+
import '../@types/Icon.js';
|
|
15
|
+
import '../icons/helper.js';
|
package/lib/panel/types.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { C as ContextProps, a as IPanelHeaderProps, I as IPanelProps, b as IParameterFunction } from '../types-
|
|
2
|
+
export { C as ContextProps, a as IPanelHeaderProps, I as IPanelProps, b as IParameterFunction } from '../types-c1d83632.js';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../internals/colorStyles.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
@@ -2,6 +2,8 @@ import { PopoverTextProps } from './types.js';
|
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/Position.js';
|
|
4
4
|
import '../@types/SizePixels.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
declare const PopoverText: ({ children }: PopoverTextProps) => JSX.Element;
|
|
7
9
|
|
|
@@ -2,6 +2,8 @@ import { PopoverTitleProps } from './types.js';
|
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/Position.js';
|
|
4
4
|
import '../@types/SizePixels.js';
|
|
5
|
+
import '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
declare const PopoverTitle: ({ children }: PopoverTitleProps) => JSX.Element;
|
|
7
9
|
|
package/lib/popover/index.d.ts
CHANGED
package/lib/popover/index.js
CHANGED
|
@@ -39,8 +39,7 @@ var Popover = function Popover(_ref) {
|
|
|
39
39
|
align = _ref$align === void 0 ? 'left' : _ref$align,
|
|
40
40
|
_ref$theme = _ref.theme,
|
|
41
41
|
theme = _ref$theme === void 0 ? 'dark' : _ref$theme,
|
|
42
|
-
|
|
43
|
-
iconName = _ref$iconName === void 0 ? '' : _ref$iconName,
|
|
42
|
+
iconName = _ref.iconName,
|
|
44
43
|
_ref$iconSize = _ref.iconSize,
|
|
45
44
|
iconSize = _ref$iconSize === void 0 ? 16 : _ref$iconSize,
|
|
46
45
|
_ref$iconColor = _ref.iconColor,
|
package/lib/popover/types.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { Position } from '../@types/Position.js';
|
|
3
3
|
import { SizePixels } from '../@types/SizePixels.js';
|
|
4
|
+
import { IconNames } from '../@types/Icon.js';
|
|
5
|
+
import '../icons/helper.js';
|
|
4
6
|
|
|
5
7
|
interface PopoverTitleProps {
|
|
6
8
|
children?: ReactNode;
|
|
@@ -9,7 +11,7 @@ interface PopoverTextProps {
|
|
|
9
11
|
children?: ReactNode;
|
|
10
12
|
}
|
|
11
13
|
interface IPopoverProps {
|
|
12
|
-
iconName?:
|
|
14
|
+
iconName?: IconNames;
|
|
13
15
|
iconColor?: string;
|
|
14
16
|
customClass?: string;
|
|
15
17
|
children?: ReactNode;
|