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
package/lib/radio/index.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { IRadioProps } from './types.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
|
+
import '../@types/Size.js';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* IMPORTANTE: Caso seja necessário alterar o nome do componente, deverá ser refatorado
|
|
7
8
|
* o componente Field dentro do componente Form, pois o mesmo leva em consideração o tipo do
|
|
8
9
|
* componente para gerar propriedades customizadas.
|
|
9
10
|
*/
|
|
10
|
-
declare const Radio: ({ id, label, value, checked, onChange, name, disabled, required, skeletonize, defaultChecked, permissionAttr }: IRadioProps) => JSX.Element | null;
|
|
11
|
+
declare const Radio: ({ id, label, value, checked, onChange, name, disabled, required, skeletonize, defaultChecked, size, permissionAttr }: IRadioProps) => JSX.Element | null;
|
|
11
12
|
|
|
12
13
|
export { Radio as default };
|
package/lib/radio/index.js
CHANGED
|
@@ -52,6 +52,8 @@ var Radio = function Radio(_ref) {
|
|
|
52
52
|
skeletonize = _ref$skeletonize === void 0 ? false : _ref$skeletonize,
|
|
53
53
|
_ref$defaultChecked = _ref.defaultChecked,
|
|
54
54
|
defaultChecked = _ref$defaultChecked === void 0 ? false : _ref$defaultChecked,
|
|
55
|
+
_ref$size = _ref.size,
|
|
56
|
+
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
55
57
|
permissionAttr = _ref.permissionAttr;
|
|
56
58
|
|
|
57
59
|
var _useState = (0, _react.useState)(checked),
|
|
@@ -108,7 +110,7 @@ var Radio = function Radio(_ref) {
|
|
|
108
110
|
required: required,
|
|
109
111
|
disabled: shouldDisable()
|
|
110
112
|
})), /*#__PURE__*/_react.default.createElement("label", {
|
|
111
|
-
className: "description",
|
|
113
|
+
className: "description ".concat(size && "-".concat(size)),
|
|
112
114
|
htmlFor: id
|
|
113
115
|
}, /*#__PURE__*/_react.default.createElement("span", null, label)));
|
|
114
116
|
};
|
package/lib/radio/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChangeEvent } from 'react';
|
|
2
2
|
import { PermissionAttr } from '../@types/PermissionAttr.js';
|
|
3
|
+
import { Size } from '../@types/Size.js';
|
|
3
4
|
|
|
4
5
|
interface IRadioProps {
|
|
5
6
|
label?: string;
|
|
@@ -9,6 +10,7 @@ interface IRadioProps {
|
|
|
9
10
|
name?: string;
|
|
10
11
|
id?: string;
|
|
11
12
|
required?: boolean;
|
|
13
|
+
size?: Extract<Size, 'small' | 'medium' | 'large'>;
|
|
12
14
|
onChange?: (value: ChangeEvent<HTMLInputElement>) => void;
|
|
13
15
|
checked?: boolean;
|
|
14
16
|
permissionAttr?: PermissionAttr | PermissionAttr;
|
package/lib/table/Row.js
CHANGED
|
@@ -28,7 +28,14 @@ var Row = function Row(props) {
|
|
|
28
28
|
onMouseEnter = props.onMouseEnter,
|
|
29
29
|
onMouseLeave = props.onMouseLeave,
|
|
30
30
|
_props$rowBorder = props.rowBorder,
|
|
31
|
-
rowBorder = _props$rowBorder === void 0 ? true : _props$rowBorder
|
|
31
|
+
rowBorder = _props$rowBorder === void 0 ? true : _props$rowBorder,
|
|
32
|
+
divider = props.divider,
|
|
33
|
+
dividerTitle = props.dividerTitle,
|
|
34
|
+
dividerStyle = props.dividerStyle,
|
|
35
|
+
_props$dividerColor = props.dividerColor,
|
|
36
|
+
dividerColor = _props$dividerColor === void 0 ? 'info' : _props$dividerColor,
|
|
37
|
+
_props$dividerColSpan = props.dividerColSpan,
|
|
38
|
+
dividerColSpan = _props$dividerColSpan === void 0 ? 2 : _props$dividerColSpan;
|
|
32
39
|
|
|
33
40
|
var _useContext = (0, _react.useContext)(_helpers.default),
|
|
34
41
|
selectedRowId = _useContext.selectedRowId,
|
|
@@ -50,7 +57,7 @@ var Row = function Row(props) {
|
|
|
50
57
|
};
|
|
51
58
|
return /*#__PURE__*/_react.default.createElement(_helpers.RowContext.Provider, {
|
|
52
59
|
value: contextValues
|
|
53
|
-
}, /*#__PURE__*/_react.default.createElement("tr", {
|
|
60
|
+
}, !divider ? /*#__PURE__*/_react.default.createElement("tr", {
|
|
54
61
|
onMouseEnter: onMouseEnter,
|
|
55
62
|
onMouseLeave: onMouseLeave,
|
|
56
63
|
className: "trow ".concat(customClass, " ").concat(rowId && selectedRowId === rowId ? '-selected' : ''),
|
|
@@ -63,7 +70,17 @@ var Row = function Row(props) {
|
|
|
63
70
|
style: _extends({}, style, {
|
|
64
71
|
height: height
|
|
65
72
|
})
|
|
66
|
-
}, children)
|
|
73
|
+
}, children) : /*#__PURE__*/_react.default.createElement("tr", {
|
|
74
|
+
className: "trow trow-divider"
|
|
75
|
+
}, vertical ? /*#__PURE__*/_react.default.createElement("th", {
|
|
76
|
+
colSpan: dividerColSpan,
|
|
77
|
+
className: "-divider -".concat(dividerColor),
|
|
78
|
+
style: dividerStyle
|
|
79
|
+
}, dividerTitle || '') : /*#__PURE__*/_react.default.createElement("td", {
|
|
80
|
+
colSpan: dividerColSpan,
|
|
81
|
+
className: "-divider -".concat(dividerColor),
|
|
82
|
+
style: dividerStyle
|
|
83
|
+
}, dividerTitle || '')));
|
|
67
84
|
};
|
|
68
85
|
|
|
69
86
|
var _default = Row;
|
package/lib/table/types.d.ts
CHANGED
|
@@ -49,6 +49,11 @@ interface ITableRowProps extends Pick<TableHTMLAttributes<HTMLTableRowElement>,
|
|
|
49
49
|
textAlign?: string;
|
|
50
50
|
displayContent?: 'always' | 'never' | 'onRowHover';
|
|
51
51
|
visible?: boolean;
|
|
52
|
+
divider?: boolean;
|
|
53
|
+
dividerTitle?: string;
|
|
54
|
+
dividerColor?: 'primary' | 'danger' | 'info' | 'success' | 'warning';
|
|
55
|
+
dividerColSpan?: number;
|
|
56
|
+
dividerStyle?: CSSProperties;
|
|
52
57
|
}
|
|
53
58
|
interface ITableContext {
|
|
54
59
|
bodyScrollable?: boolean;
|
|
@@ -3,6 +3,8 @@ import 'react';
|
|
|
3
3
|
import '../@types/Size.js';
|
|
4
4
|
import '../@types/Position.js';
|
|
5
5
|
import '../@types/PermissionAttr.js';
|
|
6
|
+
import '../@types/Icon.js';
|
|
7
|
+
import '../icons/helper.js';
|
|
6
8
|
|
|
7
9
|
declare const DropdownItems: ({ handlerClick, handlerRemovePanel, dropdownPanels, tabMenuSize, }: MenuProps) => JSX.Element | null;
|
|
8
10
|
|
package/lib/tabs/Menu.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import 'react';
|
|
|
3
3
|
import '../@types/Size.js';
|
|
4
4
|
import '../@types/Position.js';
|
|
5
5
|
import '../@types/PermissionAttr.js';
|
|
6
|
+
import '../@types/Icon.js';
|
|
7
|
+
import '../icons/helper.js';
|
|
6
8
|
|
|
7
9
|
declare const Menu: ({ menuRef, toolbar, toolBarRef, customClassForToolBar, ...props }: MenuProps) => JSX.Element;
|
|
8
10
|
|
package/lib/tabs/MenuItems.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import 'react';
|
|
|
3
3
|
import '../@types/Size.js';
|
|
4
4
|
import '../@types/Position.js';
|
|
5
5
|
import '../@types/PermissionAttr.js';
|
|
6
|
+
import '../@types/Icon.js';
|
|
7
|
+
import '../icons/helper.js';
|
|
6
8
|
|
|
7
9
|
declare const MenuItems: ({ handlerClick, currentPanels, handlerRemovePanel, tabWidth, tabMenuSize, tabMenuAlign, selectedTabId, firstTabIdent, }: MenuProps) => JSX.Element;
|
|
8
10
|
|
package/lib/tabs/Panel.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import 'react';
|
|
|
3
3
|
import '../@types/Size.js';
|
|
4
4
|
import '../@types/Position.js';
|
|
5
5
|
import '../@types/PermissionAttr.js';
|
|
6
|
+
import '../@types/Icon.js';
|
|
7
|
+
import '../icons/helper.js';
|
|
6
8
|
|
|
7
9
|
declare const Panel: ({ id, children, onEndReached, permissionAttr, customClass, onEndReachedThreshold, }: PanelProps) => JSX.Element;
|
|
8
10
|
|
package/lib/tabs/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import 'react';
|
|
|
4
4
|
import '../@types/Size.js';
|
|
5
5
|
import '../@types/Position.js';
|
|
6
6
|
import '../@types/PermissionAttr.js';
|
|
7
|
+
import '../@types/Icon.js';
|
|
8
|
+
import '../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const Tabs: ({ toolbar, children, selectedTab, firstTabIdent, handlerTabClick, handlerCloseTab, style, tabMenuSize, tabMenuAlign, tabMenuPosition, customClassForToolBar, tabsWidthOnExceedCount, ...props }: ITabsPros) => JSX.Element;
|
|
9
11
|
|
package/lib/tabs/tabHelpers.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { Position } from '../@types/Position.js';
|
|
|
4
4
|
import { PanelTypeAndProps, TabsContextValues } from './types.js';
|
|
5
5
|
import '../@types/Size.js';
|
|
6
6
|
import '../@types/PermissionAttr.js';
|
|
7
|
+
import '../@types/Icon.js';
|
|
8
|
+
import '../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* Recursive funcion to get the panels passed as children elements to the Tabs Component.
|
package/lib/tabs/types.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { ReactElement, CSSProperties, ReactNode } from 'react';
|
|
|
2
2
|
import { Size } from '../@types/Size.js';
|
|
3
3
|
import { Position } from '../@types/Position.js';
|
|
4
4
|
import { PermissionAttr } from '../@types/PermissionAttr.js';
|
|
5
|
+
import { IconNames } from '../@types/Icon.js';
|
|
6
|
+
import '../icons/helper.js';
|
|
5
7
|
|
|
6
8
|
interface PanelTypeAndProps extends ReactElement {
|
|
7
9
|
props: PanelProps;
|
|
@@ -48,7 +50,7 @@ interface PanelProps {
|
|
|
48
50
|
tooltip?: string;
|
|
49
51
|
disabled?: boolean;
|
|
50
52
|
closable?: boolean;
|
|
51
|
-
iconName?:
|
|
53
|
+
iconName?: IconNames;
|
|
52
54
|
children?: ReactNode;
|
|
53
55
|
closeable?: boolean;
|
|
54
56
|
iconAlign?: Extract<Position, 'left' | 'right'>;
|
|
@@ -4,6 +4,8 @@ import '../@types/ButtonTypes.js';
|
|
|
4
4
|
import '../@types/Position.js';
|
|
5
5
|
import '../@types/Size.js';
|
|
6
6
|
import '../treeview/types.js';
|
|
7
|
+
import '../@types/Icon.js';
|
|
8
|
+
import '../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const ButtonBar: ({ size, icon, onClick, iconName, transparent, customClass, type, iconAlign, label, ...props }: IButtonBarProps) => JSX.Element;
|
|
9
11
|
|
|
@@ -4,6 +4,8 @@ import '../@types/ButtonTypes.js';
|
|
|
4
4
|
import '../@types/Position.js';
|
|
5
5
|
import '../@types/Size.js';
|
|
6
6
|
import '../treeview/types.js';
|
|
7
|
+
import '../@types/Icon.js';
|
|
8
|
+
import '../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const LabelBar: ({ size, icon, children, iconName, style, type, bordered, ...props }: ILabelBarProps) => JSX.Element;
|
|
9
11
|
|
|
@@ -4,6 +4,8 @@ import '../@types/ButtonTypes.js';
|
|
|
4
4
|
import '../@types/Position.js';
|
|
5
5
|
import '../@types/Size.js';
|
|
6
6
|
import '../treeview/types.js';
|
|
7
|
+
import '../@types/Icon.js';
|
|
8
|
+
import '../icons/helper.js';
|
|
7
9
|
|
|
8
10
|
declare const ToolBarGroup: ({ children, style }: IToolBarGroup) => JSX.Element;
|
|
9
11
|
|
package/lib/toolbar/helpers.d.ts
CHANGED
package/lib/toolbar/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ import '../@types/ButtonTypes.js';
|
|
|
8
8
|
import '../@types/Position.js';
|
|
9
9
|
import '../@types/Size.js';
|
|
10
10
|
import '../treeview/types.js';
|
|
11
|
+
import '../@types/Icon.js';
|
|
12
|
+
import '../icons/helper.js';
|
|
11
13
|
|
|
12
14
|
declare const ToolBar: ({ innerRef, children, style, size, customClass, ...props }: IToolbarProps) => JSX.Element;
|
|
13
15
|
|
package/lib/toolbar/types.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { ButtonTypes } from '../@types/ButtonTypes.js';
|
|
|
3
3
|
import { Position } from '../@types/Position.js';
|
|
4
4
|
import { Size } from '../@types/Size.js';
|
|
5
5
|
import { NodeItem } from '../treeview/types.js';
|
|
6
|
+
import { IconNames } from '../@types/Icon.js';
|
|
7
|
+
import '../icons/helper.js';
|
|
6
8
|
|
|
7
9
|
interface IToolbarProps {
|
|
8
10
|
children?: ReactNode;
|
|
@@ -14,7 +16,7 @@ interface IToolbarProps {
|
|
|
14
16
|
}
|
|
15
17
|
interface IButtonBarProps {
|
|
16
18
|
label?: string;
|
|
17
|
-
iconName?:
|
|
19
|
+
iconName?: IconNames;
|
|
18
20
|
type?: ButtonTypes;
|
|
19
21
|
icon?: ReactElement;
|
|
20
22
|
onClick?: () => void;
|
|
@@ -27,7 +29,7 @@ interface IButtonBarProps {
|
|
|
27
29
|
onNodeElementClick?: (node: NodeItem) => void;
|
|
28
30
|
}
|
|
29
31
|
interface ILabelBarProps {
|
|
30
|
-
iconName?:
|
|
32
|
+
iconName?: IconNames;
|
|
31
33
|
bordered?: boolean;
|
|
32
34
|
icon?: ReactElement;
|
|
33
35
|
children?: ReactNode;
|
package/lib/tooltip/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { ITooltipProps } from './types.js';
|
|
3
3
|
|
|
4
|
-
declare const Tooltip: ({ text, tooltipRef, style, tooltipDimensions, className, handlerSetDimensions, }: ITooltipProps) => React__default.ReactPortal;
|
|
4
|
+
declare const Tooltip: ({ text, textError, tooltipRef, style, tooltipDimensions, className, handlerSetDimensions, }: ITooltipProps) => React__default.ReactPortal;
|
|
5
5
|
|
|
6
6
|
export { Tooltip as default };
|
package/lib/tooltip/index.js
CHANGED
|
@@ -23,6 +23,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
23
23
|
|
|
24
24
|
var Tooltip = function Tooltip(_ref) {
|
|
25
25
|
var text = _ref.text,
|
|
26
|
+
textError = _ref.textError,
|
|
26
27
|
tooltipRef = _ref.tooltipRef,
|
|
27
28
|
_ref$style = _ref.style,
|
|
28
29
|
style = _ref$style === void 0 ? '' : _ref$style,
|
|
@@ -65,11 +66,14 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
65
66
|
(0, _react.useEffect)(function () {
|
|
66
67
|
tooltipComponent.current.style.cssText = style;
|
|
67
68
|
}, [style]);
|
|
69
|
+
(0, _react.useEffect)(function () {
|
|
70
|
+
tooltipComponent.current.className = textError ? "tooltip-error tooltip-component ".concat(className) : "tooltip-component ".concat(className);
|
|
71
|
+
}, [textError]);
|
|
68
72
|
|
|
69
73
|
var getTooltipContent = function getTooltipContent() {
|
|
70
74
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
71
75
|
className: "tooltipcontent"
|
|
72
|
-
}, text);
|
|
76
|
+
}, textError || text);
|
|
73
77
|
};
|
|
74
78
|
|
|
75
79
|
return /*#__PURE__*/_reactDom.default.createPortal(getTooltipContent(), tooltipComponent.current);
|
package/lib/tooltip/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React__default, { ReactNode, ReactElement } from 'react';
|
|
2
2
|
import { PermissionAttr } from './@types/PermissionAttr.js';
|
|
3
3
|
import ColorStyles from './internals/colorStyles.js';
|
|
4
|
+
import { IconNames } from './@types/Icon.js';
|
|
4
5
|
|
|
5
6
|
declare function numberAroundZeroAndOne({ props, propName, componentName }: IParameterFunction): Error | null;
|
|
6
7
|
declare const PanelContext: React__default.Context<ContextProps>;
|
|
@@ -22,7 +23,7 @@ interface IPanelHeaderProps {
|
|
|
22
23
|
title?: string;
|
|
23
24
|
children?: ReactElement;
|
|
24
25
|
icon?: ReactElement;
|
|
25
|
-
titleIcon?:
|
|
26
|
+
titleIcon?: IconNames;
|
|
26
27
|
customClass?: string;
|
|
27
28
|
style?: object;
|
|
28
29
|
styleForTitle?: object;
|