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.
Files changed (170) hide show
  1. package/lib/alerts/AlertContainer.d.ts +2 -0
  2. package/lib/alerts/AlertProvider.d.ts +2 -0
  3. package/lib/alerts/BaseAlert.d.ts +2 -0
  4. package/lib/alerts/Message.d.ts +2 -0
  5. package/lib/alerts/Message.js +1 -1
  6. package/lib/alerts/helpers.d.ts +2 -0
  7. package/lib/alerts/index.d.ts +2 -0
  8. package/lib/alerts/types.d.ts +3 -1
  9. package/lib/alerts/withAlert.d.ts +2 -0
  10. package/lib/assets/styles/dialog.scss +0 -2
  11. package/lib/assets/styles/drawers.scss +9 -0
  12. package/lib/assets/styles/radio.scss +52 -8
  13. package/lib/assets/styles/table.scss +30 -0
  14. package/lib/assets/styles/tooltip.scss +42 -2
  15. package/lib/buttons/ActivateButton.d.ts +2 -0
  16. package/lib/buttons/AddButton.d.ts +2 -0
  17. package/lib/buttons/Button.d.ts +2 -0
  18. package/lib/buttons/CancelButton.d.ts +2 -0
  19. package/lib/buttons/DangerButton.d.ts +2 -0
  20. package/lib/buttons/DefaultButton.d.ts +2 -0
  21. package/lib/buttons/DefaultButton.js +16 -4
  22. package/lib/buttons/DestroyButton.d.ts +2 -0
  23. package/lib/buttons/EditButton.d.ts +2 -0
  24. package/lib/buttons/InactivateButton.d.ts +2 -0
  25. package/lib/buttons/InfoButton.d.ts +2 -0
  26. package/lib/buttons/PrimaryButton.d.ts +2 -0
  27. package/lib/buttons/RestoreButton.d.ts +2 -0
  28. package/lib/buttons/SaveButton.d.ts +2 -0
  29. package/lib/buttons/SuccessButton.d.ts +2 -0
  30. package/lib/buttons/WarningButton.d.ts +2 -0
  31. package/lib/buttons/index.d.ts +2 -0
  32. package/lib/buttons/split_button/index.d.ts +2 -0
  33. package/lib/buttons/types.d.ts +6 -2
  34. package/lib/dialog/Alert.d.ts +2 -0
  35. package/lib/dialog/Custom.d.ts +2 -0
  36. package/lib/dialog/Custom.js +1 -1
  37. package/lib/dialog/Error.d.ts +2 -0
  38. package/lib/dialog/Information.d.ts +2 -0
  39. package/lib/dialog/Question.d.ts +2 -0
  40. package/lib/dialog/Warning.d.ts +2 -0
  41. package/lib/dialog/base/Content.d.ts +2 -0
  42. package/lib/dialog/base/Footer.d.ts +2 -0
  43. package/lib/dialog/base/Header.d.ts +2 -0
  44. package/lib/dialog/base/index.d.ts +2 -0
  45. package/lib/dialog/base/index.js +5 -2
  46. package/lib/dialog/form/index.d.ts +2 -0
  47. package/lib/dialog/index.d.ts +2 -0
  48. package/lib/dialog/types.d.ts +4 -2
  49. package/lib/drawer/Content.d.ts +2 -0
  50. package/lib/drawer/Drawer.d.ts +3 -1
  51. package/lib/drawer/Drawer.js +25 -2
  52. package/lib/drawer/Header.d.ts +2 -0
  53. package/lib/drawer/helpers.d.ts +2 -0
  54. package/lib/drawer/index.d.ts +2 -0
  55. package/lib/drawer/types.d.ts +4 -1
  56. package/lib/dropdown/Popup.js +7 -0
  57. package/lib/form/Field.js +3 -2
  58. package/lib/form/FieldNumber.d.ts +2 -2
  59. package/lib/form/index.d.ts +2 -1
  60. package/lib/form/index.js +10 -1
  61. package/lib/form/types.d.ts +2 -5
  62. package/lib/form/withFormSecurity.js +2 -1
  63. package/lib/icons/index.d.ts +2 -0
  64. package/lib/icons/types.d.ts +3 -1
  65. package/lib/index.d.ts +3 -1
  66. package/lib/inputs/base/InputTextBase.js +7 -1
  67. package/lib/inputs/inputHOC.d.ts +2 -0
  68. package/lib/inputs/mask/helpers.d.ts +2 -0
  69. package/lib/inputs/mask/imaskHOC.d.ts +2 -0
  70. package/lib/inputs/mask/imaskHOC.js +1 -1
  71. package/lib/inputs/multiSelect/ActionButtons.d.ts +1 -1
  72. package/lib/inputs/multiSelect/ActionButtons.js +4 -1
  73. package/lib/inputs/multiSelect/Dropdown.js +1 -1
  74. package/lib/inputs/multiSelect/helper.d.ts +8 -6
  75. package/lib/inputs/multiSelect/helper.js +7 -1
  76. package/lib/inputs/multiSelect/index.js +5 -2
  77. package/lib/inputs/multiSelect/types.d.ts +11 -3
  78. package/lib/inputs/number/BaseNumber.d.ts +2 -0
  79. package/lib/inputs/number/Currency.d.ts +2 -0
  80. package/lib/inputs/number/Decimal.d.ts +2 -0
  81. package/lib/inputs/number/index.d.ts +2 -0
  82. package/lib/inputs/number/types.d.ts +2 -0
  83. package/lib/inputs/period/index.js +8 -8
  84. package/lib/inputs/period/types.d.ts +2 -2
  85. package/lib/inputs/search/index.d.ts +2 -0
  86. package/lib/inputs/select/ActionButtons.d.ts +2 -0
  87. package/lib/inputs/select/Dropdown.d.ts +2 -0
  88. package/lib/inputs/select/Dropdown.js +1 -1
  89. package/lib/inputs/select/helper.d.ts +6 -9
  90. package/lib/inputs/select/helper.js +16 -2
  91. package/lib/inputs/select/index.js +7 -6
  92. package/lib/inputs/select/multiple/Selecteds.js +1 -1
  93. package/lib/inputs/select/multiple/index.js +13 -10
  94. package/lib/inputs/select/simple/index.js +35 -12
  95. package/lib/inputs/select/types.d.ts +21 -7
  96. package/lib/inputs/types.d.ts +4 -1
  97. package/lib/internals/types.d.ts +1 -0
  98. package/lib/internals/withTooltip.js +13 -6
  99. package/lib/labelMessages/index.d.ts +2 -0
  100. package/lib/labelMessages/index.js +3 -4
  101. package/lib/labelMessages/types.d.ts +3 -1
  102. package/lib/labels/DangerLabel.d.ts +2 -0
  103. package/lib/labels/DefaultLabel.d.ts +2 -0
  104. package/lib/labels/InfoLabel.d.ts +2 -0
  105. package/lib/labels/PrimaryLabel.d.ts +2 -0
  106. package/lib/labels/SuccessLabel.d.ts +2 -0
  107. package/lib/labels/WarningLabel.d.ts +2 -0
  108. package/lib/labels/index.d.ts +2 -0
  109. package/lib/labels/types.d.ts +3 -1
  110. package/lib/list/Header.d.ts +2 -0
  111. package/lib/list/Item.d.ts +2 -0
  112. package/lib/list/helpers.d.ts +2 -0
  113. package/lib/list/index.d.ts +2 -0
  114. package/lib/list/types.d.ts +4 -2
  115. package/lib/menus/float/MenuItem.d.ts +2 -0
  116. package/lib/menus/float/helpers.d.ts +2 -0
  117. package/lib/menus/float/index.d.ts +2 -0
  118. package/lib/menus/float/types.d.ts +3 -1
  119. package/lib/menus/index.d.ts +2 -0
  120. package/lib/menus/sidenav/ExpandMenu.d.ts +2 -0
  121. package/lib/menus/sidenav/MenuLink.d.ts +2 -0
  122. package/lib/menus/sidenav/NavMenuGroup.d.ts +2 -0
  123. package/lib/menus/sidenav/NavMenuItem.d.ts +2 -0
  124. package/lib/menus/sidenav/NavSubMenuItem.d.ts +2 -0
  125. package/lib/menus/sidenav/helpers.d.ts +2 -0
  126. package/lib/menus/sidenav/index.d.ts +2 -0
  127. package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +2 -0
  128. package/lib/menus/sidenav/popup_menu_search/index.d.ts +2 -0
  129. package/lib/menus/sidenav/types.d.ts +4 -2
  130. package/lib/panel/Content.d.ts +3 -1
  131. package/lib/panel/DangerPanel.d.ts +3 -1
  132. package/lib/panel/Default.d.ts +3 -1
  133. package/lib/panel/Header.d.ts +3 -1
  134. package/lib/panel/Header.js +3 -4
  135. package/lib/panel/InfoPanel.d.ts +3 -1
  136. package/lib/panel/PrimaryPanel.d.ts +3 -1
  137. package/lib/panel/SuccessPanel.d.ts +3 -1
  138. package/lib/panel/ToolBar.d.ts +3 -1
  139. package/lib/panel/WarningPanel.d.ts +3 -1
  140. package/lib/panel/helpers.d.ts +3 -1
  141. package/lib/panel/index.d.ts +3 -1
  142. package/lib/panel/types.d.ts +3 -1
  143. package/lib/popover/PopoverText.d.ts +2 -0
  144. package/lib/popover/PopoverTitle.d.ts +2 -0
  145. package/lib/popover/index.d.ts +2 -0
  146. package/lib/popover/index.js +1 -2
  147. package/lib/popover/types.d.ts +3 -1
  148. package/lib/radio/index.d.ts +2 -1
  149. package/lib/radio/index.js +3 -1
  150. package/lib/radio/types.d.ts +2 -0
  151. package/lib/table/Row.js +20 -3
  152. package/lib/table/types.d.ts +5 -0
  153. package/lib/tabs/DropdownItems.d.ts +2 -0
  154. package/lib/tabs/Menu.d.ts +2 -0
  155. package/lib/tabs/MenuItems.d.ts +2 -0
  156. package/lib/tabs/Panel.d.ts +2 -0
  157. package/lib/tabs/index.d.ts +2 -0
  158. package/lib/tabs/tabHelpers.d.ts +2 -0
  159. package/lib/tabs/types.d.ts +3 -1
  160. package/lib/toolbar/ButtonBar.d.ts +2 -0
  161. package/lib/toolbar/LabelBar.d.ts +2 -0
  162. package/lib/toolbar/ToolBarGroup.d.ts +2 -0
  163. package/lib/toolbar/helpers.d.ts +2 -0
  164. package/lib/toolbar/index.d.ts +2 -0
  165. package/lib/toolbar/types.d.ts +4 -2
  166. package/lib/tooltip/index.d.ts +1 -1
  167. package/lib/tooltip/index.js +5 -1
  168. package/lib/tooltip/types.d.ts +1 -0
  169. package/lib/{types-3c6f1c20.d.ts → types-c1d83632.d.ts} +2 -1
  170. package/package.json +1 -1
@@ -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 };
@@ -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
  };
@@ -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;
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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.
@@ -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?: string;
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
 
@@ -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 ToolBarContext: React.Context<IToolbarProps>;
9
11
 
@@ -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
 
@@ -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?: string;
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?: string;
32
+ iconName?: IconNames;
31
33
  bordered?: boolean;
32
34
  icon?: ReactElement;
33
35
  children?: ReactNode;
@@ -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 };
@@ -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);
@@ -11,6 +11,7 @@ interface ITooltipProps {
11
11
  tooltipRef?: MutableRefObject<HTMLElement | null>;
12
12
  handlerSetDimensions?: ({ width, height }: Dimensions) => void;
13
13
  tooltipDimensions?: Dimensions;
14
+ textError?: string;
14
15
  }
15
16
 
16
17
  export { ITooltipProps };
@@ -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?: string;
26
+ titleIcon?: IconNames;
26
27
  customClass?: string;
27
28
  style?: object;
28
29
  styleForTitle?: object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linear-react-components-ui",
3
- "version": "1.0.10-beta.12",
3
+ "version": "1.0.10-beta.13",
4
4
  "description": "Linear Sistemas ReactJs Components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.cjs",