linear-react-components-ui 1.1.2-beta.8 → 1.1.2

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 (162) hide show
  1. package/.eslintcache +1 -0
  2. package/.gitlab-ci.yml +1 -0
  3. package/.vscode/settings.json +10 -1
  4. package/lib/@types/Align.d.ts +1 -1
  5. package/lib/@types/ButtonTypes.d.ts +1 -1
  6. package/lib/@types/ColorStyles.d.ts +1 -1
  7. package/lib/@types/DataCombo.d.ts +1 -1
  8. package/lib/@types/Icon.d.ts +1 -1
  9. package/lib/@types/LabelStyles.d.ts +1 -1
  10. package/lib/@types/Period.d.ts +1 -1
  11. package/lib/@types/PermissionAttr.d.ts +1 -1
  12. package/lib/@types/PointerEvents.d.ts +1 -1
  13. package/lib/@types/Position.d.ts +1 -1
  14. package/lib/@types/PositionAlert.d.ts +1 -1
  15. package/lib/@types/Size.d.ts +1 -1
  16. package/lib/@types/SizePixels.d.ts +2 -2
  17. package/lib/@types/StorageMock.d.ts +1 -1
  18. package/lib/alerts/types.d.ts +1 -1
  19. package/lib/assets/styles/checkbox.scss +37 -38
  20. package/lib/assets/styles/colors.scss +2 -0
  21. package/lib/assets/styles/commons.scss +1 -0
  22. package/lib/assets/styles/error.scss +9 -0
  23. package/lib/assets/styles/fieldset.scss +3 -0
  24. package/lib/assets/styles/gridlayout.scss +0 -2
  25. package/lib/assets/styles/hint.scss +21 -0
  26. package/lib/assets/styles/input.scss +7 -7
  27. package/lib/avatar/types.d.ts +1 -1
  28. package/lib/badge/types.d.ts +1 -1
  29. package/lib/buttons/types.d.ts +1 -1
  30. package/lib/calendar/types.d.ts +1 -1
  31. package/lib/checkbox/Label.js +13 -4
  32. package/lib/checkbox/index.js +14 -10
  33. package/lib/checkbox/types.d.ts +1 -1
  34. package/lib/dialog/Custom.js +4 -2
  35. package/lib/dialog/base/index.js +3 -2
  36. package/lib/dialog/form/index.js +3 -3
  37. package/lib/dialog/types.d.ts +1 -1
  38. package/lib/drawer/Drawer.js +1 -1
  39. package/lib/drawer/types.d.ts +1 -1
  40. package/lib/dropdown/types.d.ts +1 -1
  41. package/lib/fieldset/index.js +4 -2
  42. package/lib/fieldset/types.d.ts +3 -1
  43. package/lib/form/Field.d.ts +3 -1
  44. package/lib/form/FieldArray.d.ts +2 -0
  45. package/lib/form/FieldNumber.d.ts +2 -0
  46. package/lib/form/FieldPeriod.d.ts +2 -0
  47. package/lib/form/helpers.d.ts +2 -0
  48. package/lib/form/index.d.ts +2 -0
  49. package/lib/form/types.d.ts +3 -1
  50. package/lib/form/withFieldHOC.d.ts +2 -0
  51. package/lib/form/withFormSecurity.d.ts +2 -0
  52. package/lib/gridlayout/GridRow.js +10 -2
  53. package/lib/gridlayout/types.d.ts +2 -2
  54. package/lib/hint/helpers.d.ts +3 -0
  55. package/lib/hint/helpers.js +21 -0
  56. package/lib/hint/index.d.ts +2 -1
  57. package/lib/hint/index.js +9 -15
  58. package/lib/hint/types.d.ts +4 -1
  59. package/lib/icons/helper.d.ts +4 -0
  60. package/lib/icons/helper.js +4 -0
  61. package/lib/icons/types.d.ts +1 -1
  62. package/lib/inputs/base/InputTextBase.d.ts +2 -0
  63. package/lib/inputs/base/InputTextBase.js +51 -7
  64. package/lib/inputs/base/Label.d.ts +14 -0
  65. package/lib/inputs/base/Label.js +35 -0
  66. package/lib/inputs/base/helpers.d.ts +3 -2
  67. package/lib/inputs/base/helpers.js +1 -8
  68. package/lib/inputs/base/types.d.ts +14 -2
  69. package/lib/inputs/color/types.d.ts +1 -1
  70. package/lib/inputs/date/Dialog.d.ts +2 -0
  71. package/lib/inputs/date/Dropdown.d.ts +2 -0
  72. package/lib/inputs/date/helpers.d.ts +2 -0
  73. package/lib/inputs/date/index.d.ts +2 -0
  74. package/lib/inputs/date/index.js +2 -0
  75. package/lib/inputs/date/types.d.ts +4 -1
  76. package/lib/inputs/errorMessage/index.d.ts +17 -0
  77. package/lib/inputs/errorMessage/index.js +26 -0
  78. package/lib/inputs/file/DefaultFile.d.ts +2 -0
  79. package/lib/inputs/file/DefaultFile.js +4 -2
  80. package/lib/inputs/file/DragDropFile.d.ts +2 -0
  81. package/lib/inputs/file/DragDropFile.js +4 -2
  82. package/lib/inputs/file/File.d.ts +2 -0
  83. package/lib/inputs/file/FileButtonSettings.d.ts +2 -0
  84. package/lib/inputs/file/helpers.d.ts +2 -0
  85. package/lib/inputs/file/index.d.ts +2 -0
  86. package/lib/inputs/file/types.d.ts +3 -1
  87. package/lib/inputs/inputHOC.d.ts +3 -1
  88. package/lib/inputs/mask/BaseMask.d.ts +3 -0
  89. package/lib/inputs/mask/Cnpj.d.ts +3 -0
  90. package/lib/inputs/mask/Cpf.d.ts +3 -0
  91. package/lib/inputs/mask/Phone.d.ts +3 -0
  92. package/lib/inputs/mask/ZipCode.d.ts +3 -0
  93. package/lib/inputs/mask/helpers.d.ts +2 -1
  94. package/lib/inputs/mask/imaskHOC.d.ts +3 -1
  95. package/lib/inputs/mask/index.d.ts +3 -0
  96. package/lib/inputs/mask/types.d.ts +6 -2
  97. package/lib/inputs/multiSelect/ActionButtons.d.ts +2 -0
  98. package/lib/inputs/multiSelect/Dropdown.d.ts +2 -0
  99. package/lib/inputs/multiSelect/helper.d.ts +2 -0
  100. package/lib/inputs/multiSelect/index.d.ts +2 -0
  101. package/lib/inputs/multiSelect/index.js +2 -2
  102. package/lib/inputs/multiSelect/types.d.ts +3 -1
  103. package/lib/inputs/number/BaseNumber.d.ts +3 -1
  104. package/lib/inputs/number/Currency.d.ts +3 -1
  105. package/lib/inputs/number/Decimal.d.ts +3 -1
  106. package/lib/inputs/number/index.d.ts +3 -1
  107. package/lib/inputs/number/types.d.ts +4 -2
  108. package/lib/inputs/period/Dialog.d.ts +2 -0
  109. package/lib/inputs/period/Dropdown.d.ts +2 -0
  110. package/lib/inputs/period/PeriodList.d.ts +2 -0
  111. package/lib/inputs/period/helper.d.ts +2 -0
  112. package/lib/inputs/period/index.d.ts +2 -0
  113. package/lib/inputs/period/index.js +4 -1
  114. package/lib/inputs/period/types.d.ts +3 -1
  115. package/lib/inputs/search/index.d.ts +3 -1
  116. package/lib/inputs/select/ActionButtons.d.ts +3 -1
  117. package/lib/inputs/select/Dropdown.d.ts +3 -1
  118. package/lib/inputs/select/helper.d.ts +3 -1
  119. package/lib/inputs/select/index.d.ts +2 -0
  120. package/lib/inputs/select/multiple/Selecteds.d.ts +2 -0
  121. package/lib/inputs/select/multiple/index.d.ts +2 -0
  122. package/lib/inputs/select/multiple/index.js +9 -3
  123. package/lib/inputs/select/simple/index.d.ts +2 -0
  124. package/lib/inputs/select/simple/index.js +9 -3
  125. package/lib/inputs/select/types.d.ts +5 -3
  126. package/lib/inputs/text/types.d.ts +1 -1
  127. package/lib/inputs/textarea/index.d.ts +2 -0
  128. package/lib/inputs/textarea/types.d.ts +3 -1
  129. package/lib/inputs/types.d.ts +10 -3
  130. package/lib/internals/types.d.ts +1 -1
  131. package/lib/internals/withTooltip.js +7 -3
  132. package/lib/labelMessages/types.d.ts +1 -1
  133. package/lib/labels/types.d.ts +1 -1
  134. package/lib/list/types.d.ts +1 -1
  135. package/lib/menus/float/index.d.ts +10 -10
  136. package/lib/menus/float/types.d.ts +1 -1
  137. package/lib/menus/sidenav/index.js +3 -3
  138. package/lib/menus/sidenav/popup_menu_search/index.js +1 -1
  139. package/lib/menus/sidenav/types.d.ts +1 -1
  140. package/lib/panel/types.d.ts +1 -1
  141. package/lib/popover/types.d.ts +1 -1
  142. package/lib/progress/types.d.ts +1 -1
  143. package/lib/radio/types.d.ts +1 -1
  144. package/lib/shortcuts/types.d.ts +1 -1
  145. package/lib/skeleton/types.d.ts +1 -1
  146. package/lib/spinner/types.d.ts +1 -1
  147. package/lib/split/helpers.d.ts +1 -1
  148. package/lib/split/types.d.ts +1 -1
  149. package/lib/table/types.d.ts +1 -1
  150. package/lib/tabs/types.d.ts +1 -1
  151. package/lib/toolbar/types.d.ts +1 -1
  152. package/lib/tooltip/index.js +2 -2
  153. package/lib/tooltip/types.d.ts +1 -1
  154. package/lib/treetable/Row.d.ts +1 -1
  155. package/lib/treetable/helpers.d.ts +1 -1
  156. package/lib/treetable/index.d.ts +2 -2
  157. package/lib/treeview/Node.js +2 -2
  158. package/lib/treeview/types.d.ts +1 -1
  159. package/lib/{types.d-DvJcBS8L.d.ts → types.d-73cece43.d.ts} +1 -1
  160. package/lib/uitour/types.d.ts +1 -1
  161. package/package.json +8 -8
  162. package/.tool-versions +0 -1
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _lodash = _interopRequireDefault(require("lodash"));
9
- var _uuid = _interopRequireDefault(require("uuid"));
9
+ var uuid = _interopRequireWildcard(require("uuid"));
10
10
  var _Dropdown = _interopRequireDefault(require("../Dropdown"));
11
11
  var _ActionButtons = _interopRequireDefault(require("../ActionButtons"));
12
12
  var _Selecteds = _interopRequireDefault(require("./Selecteds"));
@@ -36,7 +36,7 @@ const MultipleSelect = props => {
36
36
  const [insideComponent, setInsideComponent] = (0, _react.useState)(false);
37
37
  const [onDenied, setOnDeniedSelect] = (0, _react.useState)();
38
38
  const [valueFromProps, setValueFromProps] = (0, _react.useState)([]);
39
- const componentId = "select-component".concat(_uuid.default.v1());
39
+ const componentId = "select-component".concat(uuid.v1());
40
40
  const componentRef = (0, _react.useRef)(null);
41
41
  const dropdownRef = (0, _react.useRef)(null);
42
42
  const selectWrapper = (0, _react.useRef)();
@@ -201,7 +201,13 @@ const MultipleSelect = props => {
201
201
  className: "select-component"
202
202
  }, /*#__PURE__*/_react.default.createElement(_InputTextBase.default, _extends({}, props, {
203
203
  inputRef: ref => {
204
- if (props.inputRef) props.inputRef(ref);
204
+ if (props.inputRef) {
205
+ if (!_lodash.default.isFunction(props.inputRef)) {
206
+ props.inputRef.current = ref;
207
+ } else {
208
+ props.inputRef(ref);
209
+ }
210
+ }
205
211
  inputTextRef.current = ref;
206
212
  },
207
213
  autoComplete: "off",
@@ -5,6 +5,8 @@ import '../../../@types/PermissionAttr.js';
5
5
  import '../../base/types.js';
6
6
  import 'react';
7
7
  import '../../../@types/Period.js';
8
+ import '../../../internals/types.js';
9
+ import '../../../@types/Position.js';
8
10
 
9
11
  declare const SimpleSelect: (props: ISimpleSelectProps) => JSX.Element;
10
12
 
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
- var _uuid = _interopRequireDefault(require("uuid"));
8
+ var uuid = _interopRequireWildcard(require("uuid"));
9
9
  var _lodash = _interopRequireDefault(require("lodash"));
10
10
  var _Dropdown = _interopRequireDefault(require("../Dropdown"));
11
11
  var _ActionButtons = _interopRequireDefault(require("../ActionButtons"));
@@ -50,7 +50,7 @@ const SimpleSelect = props => {
50
50
  const [onDenied, setOnDeniedSelect] = (0, _react.useState)();
51
51
  const [isTyping, setIsTyping] = (0, _react.useState)(false);
52
52
  const dropdownRef = (0, _react.useRef)(null);
53
- const componentId = "select-component-".concat(name, "-").concat(_uuid.default.v1());
53
+ const componentId = "select-component-".concat(name, "-").concat(uuid.v1());
54
54
  const componentRef = (0, _react.useRef)(null);
55
55
  const selectWrapper = (0, _react.useRef)();
56
56
  const gridElement = (0, _react.useRef)();
@@ -247,7 +247,13 @@ const SimpleSelect = props => {
247
247
  className: "select-component"
248
248
  }, /*#__PURE__*/_react.default.createElement(_InputTextBase.default, _extends({}, props, {
249
249
  inputRef: ref => {
250
- if (props.inputRef) props.inputRef(ref);
250
+ if (props.inputRef) {
251
+ if (!_lodash.default.isFunction(props.inputRef)) {
252
+ props.inputRef.current = ref;
253
+ } else {
254
+ props.inputRef(ref);
255
+ }
256
+ }
251
257
  inputTextRef.current = ref;
252
258
  },
253
259
  autoComplete: "off",
@@ -2,8 +2,10 @@ import { TextAlign } from '../../@types/Align.js';
2
2
  import { DataCombo } from '../../@types/DataCombo.js';
3
3
  import { PermissionAttr } from '../../@types/PermissionAttr.js';
4
4
  import { CustomInputEvent } from '../base/types.js';
5
- import 'react';
5
+ import { MutableRefObject } from 'react';
6
6
  import '../../@types/Period.js';
7
+ import '../../internals/types.js';
8
+ import '../../@types/Position.js';
7
9
 
8
10
  type AllOptions = {
9
11
  idValue?: number | null;
@@ -47,7 +49,7 @@ interface ISimpleSelectProps {
47
49
  autoFocus?: boolean;
48
50
  onFocus?: () => void;
49
51
  allOptions?: AllOptions;
50
- inputRef?: ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void);
52
+ inputRef?: MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null> | ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void);
51
53
  }
52
54
  interface ISelectFieldProps extends Omit<ISimpleSelectProps, 'idKey' | 'value' | 'descriptionKey'> {
53
55
  multiple?: boolean;
@@ -107,4 +109,4 @@ interface GetMultipleFilteredParams extends GetFilteredParams {
107
109
  inputText: number[] | string[];
108
110
  }
109
111
 
110
- export type { AllOptions, DescriptionKey, GetFilteredParams, GetMultipleFilteredParams, GetSimpleFilteredParams, IMultipleSelectProps, ISelectFieldProps, ISelectedsMultipleProps, ISimpleSelectProps };
112
+ export { AllOptions, DescriptionKey, GetFilteredParams, GetMultipleFilteredParams, GetSimpleFilteredParams, IMultipleSelectProps, ISelectFieldProps, ISelectedsMultipleProps, ISimpleSelectProps };
@@ -22,4 +22,4 @@ interface ITextField extends IBaseProps, CommonProperties {
22
22
  gridLayout?: string;
23
23
  }
24
24
 
25
- export type { ITextField };
25
+ export { ITextField };
@@ -4,6 +4,8 @@ import 'react';
4
4
  import '../../@types/Align.js';
5
5
  import '../../@types/Period.js';
6
6
  import '../../@types/PermissionAttr.js';
7
+ import '../../internals/types.js';
8
+ import '../../@types/Position.js';
7
9
 
8
10
  declare const TextArea: (props: ITextAreaProps) => JSX.Element;
9
11
 
@@ -3,6 +3,8 @@ import 'react';
3
3
  import '../../@types/Align.js';
4
4
  import '../../@types/Period.js';
5
5
  import '../../@types/PermissionAttr.js';
6
+ import '../../internals/types.js';
7
+ import '../../@types/Position.js';
6
8
 
7
9
  interface ITextAreaProps extends IBaseProps {
8
10
  rows?: number;
@@ -11,4 +13,4 @@ interface ITextAreaProps extends IBaseProps {
11
13
  type?: string;
12
14
  }
13
15
 
14
- export type { ITextAreaProps };
16
+ export { ITextAreaProps };
@@ -1,10 +1,12 @@
1
1
  import { ReactNode, MouseEvent, MutableRefObject, CSSProperties, KeyboardEvent, ReactElement } from 'react';
2
+ import IMask from 'imask';
2
3
  import { PermissionAttr, OnDenied } from '../@types/PermissionAttr.js';
3
4
  import { DataCombo } from '../@types/DataCombo.js';
4
5
  import { IBaseProps, CustomInputEvent } from './base/types.js';
5
6
  import { IDrawerProps } from '../drawer/types.js';
6
7
  import { TextAlign } from '../@types/Align.js';
7
8
  import '../@types/Period.js';
9
+ import '../internals/types.js';
8
10
  import '../@types/Position.js';
9
11
  import '../@types/Icon.js';
10
12
  import '../icons/helper.js';
@@ -62,7 +64,7 @@ interface IMaskHOCProps {
62
64
  inputRef?: MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null> | ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void);
63
65
  placeholderChar?: string;
64
66
  lazy?: boolean;
65
- definitions?: object;
67
+ definitions?: IMask.AllMaskedOptions['definitions'];
66
68
  groups?: object;
67
69
  pattern?: string;
68
70
  format?: () => void;
@@ -97,7 +99,7 @@ interface IMaskHOCProps {
97
99
  rounded?: boolean;
98
100
  errorMessages?: string[];
99
101
  skeletonize?: boolean;
100
- mask?: string | NumberConstructor;
102
+ mask?: IMask.AnyMask;
101
103
  isDateField?: boolean;
102
104
  autoCompleteMask?: 'left' | 'right';
103
105
  }
@@ -149,5 +151,10 @@ interface IButtonsProps {
149
151
  transparent: boolean;
150
152
  disabled?: boolean;
151
153
  }
154
+ interface ErrorProps {
155
+ customClass?: string;
156
+ style?: React.CSSProperties;
157
+ messages?: string | string[];
158
+ }
152
159
 
153
- export type { IActionButtonsSelectProps, IAdvancedFilterProps, IButtonsProps, IDropdownProps, IDropdownSelectProps, IInputHOCProps, IMaskHOCProps, ISearchProps };
160
+ export { ErrorProps, IActionButtonsSelectProps, IAdvancedFilterProps, IButtonsProps, IDropdownProps, IDropdownSelectProps, IInputHOCProps, IMaskHOCProps, ISearchProps };
@@ -19,4 +19,4 @@ interface HasToolTipParams {
19
19
  tooltip?: string;
20
20
  }
21
21
 
22
- export type { GetDisplayNameParams, HasToolTipParams, WithTooltipProps };
22
+ export { GetDisplayNameParams, HasToolTipParams, WithTooltipProps };
@@ -75,7 +75,7 @@ const withTooltip = WrappedComponent => {
75
75
  }
76
76
  }
77
77
  };
78
- }, [errorMessage]);
78
+ }, [errorMessage, tooltip]);
79
79
  (0, _react.useEffect)(() => {
80
80
  if (targetElement.current && tooltipElement.current) {
81
81
  const {
@@ -106,7 +106,11 @@ const withTooltip = WrappedComponent => {
106
106
  break;
107
107
  case 'left':
108
108
  if (targetDimensions.left < tooltipClientWidth) {
109
- setStateTooltipPosition('right');
109
+ if (window.innerWidth - targetDimensions.right < tooltipClientWidth) {
110
+ setStateTooltipPosition('bottom');
111
+ } else {
112
+ setStateTooltipPosition('right');
113
+ }
110
114
  } else {
111
115
  style += "; top: ".concat(targetVerticalCenter + window.scrollY - height / 2, "px");
112
116
  style += "; left: ".concat(targetDimensions.left - tooltipClientWidth - 6, "px");
@@ -125,7 +129,7 @@ const withTooltip = WrappedComponent => {
125
129
  }
126
130
  setTooltipStyle(style);
127
131
  }
128
- }, [tooltipDimensions, tooltipElement.current, targetElement.current, stateTooltipPosition]);
132
+ }, [tooltipDimensions, stateTooltipPosition]);
129
133
  (0, _react.useEffect)(() => {
130
134
  setStateTooltipPosition(tooltipPosition);
131
135
  }, [window.scrollY, window.scrollX, window.innerWidth]);
@@ -17,4 +17,4 @@ interface ILabelMessagesProps {
17
17
  visible?: boolean;
18
18
  }
19
19
 
20
- export type { ILabelMessagesProps };
20
+ export { ILabelMessagesProps };
@@ -23,4 +23,4 @@ interface ILabelProps extends React.HTMLAttributes<HTMLDivElement> {
23
23
  validationKey?: string;
24
24
  }
25
25
 
26
- export type { ILabelProps };
26
+ export { ILabelProps };
@@ -63,4 +63,4 @@ interface IListContext {
63
63
  handleSelectItem: (itemId: string, onClick?: () => void) => void;
64
64
  }
65
65
 
66
- export type { IListContext, IListHeaderProps, IListItemProps, IListProps, ItemId, KeyboardEvent };
66
+ export { IListContext, IListHeaderProps, IListItemProps, IListProps, ItemId, KeyboardEvent };
@@ -16,21 +16,21 @@ declare function SubMenuContainer({ title, customClass, handlerGoBack, skeletoni
16
16
  }): JSX.Element;
17
17
  declare namespace SubMenuContainer {
18
18
  namespace propTypes {
19
- let children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
20
- let handlerGoBack: PropTypes.Validator<(...args: any[]) => any>;
21
- let title: PropTypes.Requireable<string>;
22
- let customClass: PropTypes.Requireable<string>;
23
- let skeletonize: PropTypes.Requireable<boolean>;
24
- let skeletonQtty: PropTypes.Requireable<number>;
19
+ const children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
20
+ const handlerGoBack: PropTypes.Validator<(...args: any[]) => any>;
21
+ const title: PropTypes.Requireable<string>;
22
+ const customClass: PropTypes.Requireable<string>;
23
+ const skeletonize: PropTypes.Requireable<boolean>;
24
+ const skeletonQtty: PropTypes.Requireable<number>;
25
25
  }
26
26
  namespace defaultProps {
27
- let title_1: undefined;
27
+ const title_1: undefined;
28
28
  export { title_1 as title };
29
- let customClass_1: undefined;
29
+ const customClass_1: undefined;
30
30
  export { customClass_1 as customClass };
31
- let skeletonize_1: boolean;
31
+ const skeletonize_1: boolean;
32
32
  export { skeletonize_1 as skeletonize };
33
- let skeletonQtty_1: number;
33
+ const skeletonQtty_1: number;
34
34
  export { skeletonQtty_1 as skeletonQtty };
35
35
  }
36
36
  }
@@ -27,4 +27,4 @@ interface IFloatMenuItemProps {
27
27
  onClick?: (dropdownClose?: () => void) => void;
28
28
  }
29
29
 
30
- export type { IFloatMenuContext, IFloatMenuItemProps, IFloatMenuProps };
30
+ export { IFloatMenuContext, IFloatMenuItemProps, IFloatMenuProps };
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "NavSubMenuItem", {
29
29
  });
30
30
  exports.default = void 0;
31
31
  var _react = _interopRequireWildcard(require("react"));
32
- var _uuid = _interopRequireDefault(require("uuid"));
32
+ var uuid = _interopRequireWildcard(require("uuid"));
33
33
  var _NavMenuItem = _interopRequireDefault(require("./NavMenuItem"));
34
34
  var _NavSubMenuItem = _interopRequireDefault(require("./NavSubMenuItem"));
35
35
  var _NavMenuGroup = _interopRequireDefault(require("./NavMenuGroup"));
@@ -82,7 +82,7 @@ const SideNav = props => {
82
82
  } = child;
83
83
  if ((type === _NavMenuItem.default || type === _NavSubMenuItem.default) && !child.props.children) {
84
84
  setMenuItemsContent(prevState => [...prevState, {
85
- id: "".concat(child.props.title, "-").concat(_uuid.default.v1()),
85
+ id: "".concat(child.props.title, "-").concat(uuid.v1()),
86
86
  content: child.props.title,
87
87
  url: child.props.url
88
88
  }]);
@@ -127,7 +127,7 @@ const SideNav = props => {
127
127
  }, [expanded]);
128
128
  const returnMenuItems = () => menuItemsContent.filter(item => item.content !== '');
129
129
  const getPopupMenuSearch = () => /*#__PURE__*/_react.default.createElement(_NavMenuGroup.default, {
130
- key: "popup-menusearch-".concat(_uuid.default.v1())
130
+ key: "popup-menusearch-".concat(uuid.v1())
131
131
  }, /*#__PURE__*/_react.default.createElement(_NavMenuItem.default, {
132
132
  childrenIsSubMenu: false,
133
133
  customClass: "-customsidenavitem",
@@ -32,7 +32,7 @@ const PopupMenuSearch = props => {
32
32
  style
33
33
  });
34
34
  const closeOnEsc = e => {
35
- if (e.keyCode === 27 || e.key === 'ESC') {
35
+ if (e.key === 'Escape') {
36
36
  handlerClose();
37
37
  e.stopPropagation();
38
38
  }
@@ -81,4 +81,4 @@ interface ISideNavContext {
81
81
  }
82
82
  type ITargetDimensions = DOMRect;
83
83
 
84
- export type { IEmptyListProps, IExpandMenuProps, IMenuItemContent, IMenuLinkProps, INavMenuGroupProps, INavMenuItemProps, INavSubMenuItemProps, IPopupMenuSearchProps, ISideNavContext, ISideNavDimensions, ISideNavProps, ISubMenuContext, ITargetDimensions };
84
+ export { IEmptyListProps, IExpandMenuProps, IMenuItemContent, IMenuLinkProps, INavMenuGroupProps, INavMenuItemProps, INavSubMenuItemProps, IPopupMenuSearchProps, ISideNavContext, ISideNavDimensions, ISideNavProps, ISubMenuContext, ITargetDimensions };
@@ -44,4 +44,4 @@ interface IParameterFunction {
44
44
  componentName: string;
45
45
  }
46
46
 
47
- export type { AsyncFunc, ContextProps, Func, IPanelContentProps, IPanelHeaderProps, IPanelProps, IParameterFunction };
47
+ export { AsyncFunc, ContextProps, Func, IPanelContentProps, IPanelHeaderProps, IPanelProps, IParameterFunction };
@@ -20,4 +20,4 @@ interface IPopoverProps {
20
20
  iconSize?: Extract<SizePixels, 10 | 16 | 24 | 32 | 40 | 64>;
21
21
  }
22
22
 
23
- export type { IPopoverProps, PopoverTextProps, PopoverTitleProps };
23
+ export { IPopoverProps, PopoverTextProps, PopoverTitleProps };
@@ -34,4 +34,4 @@ interface ILabelParams {
34
34
  value?: number;
35
35
  }
36
36
 
37
- export type { IBarProps, ILabelParams, IPercentageParams, IProgressBarProps };
37
+ export { IBarProps, ILabelParams, IPercentageParams, IProgressBarProps };
@@ -18,4 +18,4 @@ interface IRadioProps {
18
18
  forwardedRef?: Ref<HTMLInputElement>;
19
19
  }
20
20
 
21
- export type { IRadioProps };
21
+ export { IRadioProps };
@@ -9,4 +9,4 @@ interface IShortcutsProps {
9
9
  description: string;
10
10
  }
11
11
 
12
- export type { IShortcutsProps };
12
+ export { IShortcutsProps };
@@ -18,4 +18,4 @@ interface ISkeletonContainerProps {
18
18
  style?: CSSProperties;
19
19
  }
20
20
 
21
- export type { ISkeletonContainerProps, ISkeletonProps };
21
+ export { ISkeletonContainerProps, ISkeletonProps };
@@ -17,4 +17,4 @@ interface ISpinnerLoadingProps {
17
17
  size: string;
18
18
  }
19
19
 
20
- export type { ISpinnerLoadingProps, ISpinnerProps };
20
+ export { ISpinnerLoadingProps, ISpinnerProps };
@@ -7,4 +7,4 @@ type ISplitContext = {
7
7
  };
8
8
  declare const SplitContext: React__default.Context<ISplitContext>;
9
9
 
10
- export { type ISplitContext, SplitContext as default };
10
+ export { ISplitContext, SplitContext as default };
@@ -31,4 +31,4 @@ interface DocumentSelection {
31
31
  empty(): void;
32
32
  }
33
33
 
34
- export type { DocumentSelection, ISplitProps, ISplitSideProps };
34
+ export { DocumentSelection, ISplitProps, ISplitSideProps };
@@ -93,4 +93,4 @@ type TableElement = {
93
93
  };
94
94
  };
95
95
 
96
- export type { ITableBodyProps, ITableContext, ITableHeaderProps, ITableProps, ITableRowContext, ITableRowProps, TableElement };
96
+ export { ITableBodyProps, ITableContext, ITableHeaderProps, ITableProps, ITableRowContext, ITableRowProps, TableElement };
@@ -94,4 +94,4 @@ interface PanelProps {
94
94
  onEndReachedThreshold?: number;
95
95
  }
96
96
 
97
- export type { DropdownProps, ITabsPros, MenuProps, PanelProps, TabProps, TabsContextType, TabsProviderProps };
97
+ export { DropdownProps, ITabsPros, MenuProps, PanelProps, TabProps, TabsContextType, TabsProviderProps };
@@ -42,4 +42,4 @@ interface IToolBarGroup {
42
42
  children: ReactNode;
43
43
  }
44
44
 
45
- export type { IButtonBarProps, ILabelBarProps, IToolBarGroup, IToolbarProps };
45
+ export { IButtonBarProps, ILabelBarProps, IToolBarGroup, IToolbarProps };
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactDom = _interopRequireDefault(require("react-dom"));
9
- var _uuid = _interopRequireDefault(require("uuid"));
9
+ var uuid = _interopRequireWildcard(require("uuid"));
10
10
  require("../assets/styles/tooltip.scss");
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
@@ -23,7 +23,7 @@ const Tooltip = _ref => {
23
23
  } = _ref;
24
24
  const tooltipComponent = (0, _react.useRef)(document.createElement('div'));
25
25
  (0, _react.useEffect)(() => {
26
- tooltipComponent.current.id = "tooltip-".concat(_uuid.default.v1());
26
+ tooltipComponent.current.id = "tooltip-".concat(uuid.v1());
27
27
  tooltipComponent.current.className = "tooltip-component ".concat(className, " ");
28
28
  tooltipComponent.current.dataset.testid = 'tooltip-component';
29
29
  tooltipComponent.current.style.cssText = style;
@@ -14,4 +14,4 @@ interface ITooltipProps {
14
14
  textError?: string;
15
15
  }
16
16
 
17
- export type { ITooltipProps };
17
+ export { ITooltipProps };
@@ -1,4 +1,4 @@
1
- import { I as ITreeTableRow } from '../types.d-DvJcBS8L.js';
1
+ import { I as ITreeTableRow } from '../types.d-73cece43.js';
2
2
  import 'react';
3
3
  import '../table/types.js';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { a as ITreeTableProps } from '../types.d-DvJcBS8L.js';
2
+ import { a as ITreeTableProps } from '../types.d-73cece43.js';
3
3
  import '../table/types.js';
4
4
 
5
5
  declare const TreeTableContext: React.Context<ITreeTableProps>;
@@ -1,5 +1,5 @@
1
- import { a as ITreeTableProps } from '../types.d-DvJcBS8L.js';
2
- export { b as IRowElementsValidations, R as RowItem } from '../types.d-DvJcBS8L.js';
1
+ import { a as ITreeTableProps } from '../types.d-73cece43.js';
2
+ export { b as IRowElementsValidations, R as RowItem } from '../types.d-73cece43.js';
3
3
  import 'react';
4
4
  import '../table/types.js';
5
5
 
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
- var _uuid = _interopRequireDefault(require("uuid"));
8
+ var uuid = _interopRequireWildcard(require("uuid"));
9
9
  var _lodash = _interopRequireDefault(require("lodash"));
10
10
  var _checkbox = _interopRequireDefault(require("../checkbox"));
11
11
  var _icons = _interopRequireDefault(require("../icons"));
@@ -166,7 +166,7 @@ const TreeNode = props => {
166
166
  } : {};
167
167
  return /*#__PURE__*/_react.default.createElement("div", {
168
168
  style: style,
169
- key: "element-".concat(_uuid.default.v1()),
169
+ key: "element-".concat(uuid.v1()),
170
170
  className: "element"
171
171
  }, element);
172
172
  });
@@ -101,4 +101,4 @@ interface IDataMock {
101
101
  itens: ItensMock[];
102
102
  }
103
103
 
104
- export type { IDataMock, INodeElementsValidations, INodeValidationProps, ITreeHeaderProps, ITreeNodeProps, ITreeViewContext, ITreeviewProps, IValidator, NodeItem };
104
+ export { IDataMock, INodeElementsValidations, INodeValidationProps, ITreeHeaderProps, ITreeNodeProps, ITreeViewContext, ITreeviewProps, IValidator, NodeItem };
@@ -43,4 +43,4 @@ interface ITreeTableRow extends ITableRowProps {
43
43
  rowLevel: number;
44
44
  }
45
45
 
46
- export type { ITreeTableRow as I, RowItem as R, ITreeTableProps as a, IRowElementsValidations as b };
46
+ export { ITreeTableRow as I, RowItem as R, ITreeTableProps as a, IRowElementsValidations as b };
@@ -27,4 +27,4 @@ interface IUITourProps {
27
27
  onFinish: (value: boolean) => void;
28
28
  }
29
29
 
30
- export type { CurrentStep, IUITourProps, StepDimensions, UITourData };
30
+ export { CurrentStep, IUITourProps, StepDimensions, UITourData };
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "linear-react-components-ui",
3
- "version": "1.1.2-beta.8",
3
+ "version": "1.1.2",
4
4
  "description": "Linear Sistemas ReactJs Components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.cjs",
7
7
  "scripts": {
8
8
  "lib": "babel src/lib/ -d lib/ --extensions \".js,.jsx,.ts,.tsx\" --ignore **/*.spec.tsx && babel src/lib/assets -d lib/assets --copy-files && npm run lib:types",
9
- "lib:types": "NODE_OPTIONS='--max-old-space-size=16384' tsup --dts-only --dts --external react",
9
+ "lib:types": "tsup --dts-only --dts --external react",
10
10
  "demo": "node scripts/start.js",
11
11
  "demo:prod": "webpack --config ./config/webpack.config.js --mode production",
12
- "check:js": "eslint ./src/** --ext=.jsx,.js,.tsx,.ts",
12
+ "check:js": "eslint ./src/** --ext=.jsx,.js,.tsx,.ts --cache",
13
13
  "deploy:heroku": "npm run demo:prod && cd demo && git commit -am 'Deploy' && git push heroku master",
14
14
  "deploy:vercel": "npm run demo:prod && vercel --prod demo",
15
15
  "publish:npm": "npm run lib && npm publish",
@@ -43,7 +43,7 @@
43
43
  "dependencies": {
44
44
  "@types/react-dom": "18.0.5",
45
45
  "attach-dom-events": "1.0.0",
46
- "browserslist": "4.18.1",
46
+ "browserslist": "4.23.0",
47
47
  "history": "5.0.0",
48
48
  "imask": "6.4.3",
49
49
  "init": "0.1.2",
@@ -54,7 +54,7 @@
54
54
  "react-router-dom": "6.21.3",
55
55
  "react-syntax-highlighter": "15.5.0",
56
56
  "semver": "7.5.4",
57
- "uuid": "3.3.3"
57
+ "uuid": "9.0.1"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@babel/cli": "7.23.9",
@@ -65,7 +65,7 @@
65
65
  "@babel/preset-react": "7.18.6",
66
66
  "@babel/preset-typescript": "7.23.3",
67
67
  "@svgr/webpack": "8.1.0",
68
- "@swc/core": "1.3.29",
68
+ "@swc/core": "1.4.13",
69
69
  "@testing-library/jest-dom": "5.16.5",
70
70
  "@testing-library/react": "14.1.2",
71
71
  "@testing-library/user-event": "14.4.3",
@@ -108,8 +108,8 @@
108
108
  "sass": "1.74.1",
109
109
  "sass-loader": "14.1.0",
110
110
  "style-loader": "3.3.4",
111
- "tsup": "8.0.1",
112
- "typescript": "5.3.3",
111
+ "tsup": "6.6.0",
112
+ "typescript": "4.9.5",
113
113
  "webpack": "5.90.0",
114
114
  "webpack-cli": "5.1.4",
115
115
  "webpack-dev-server": "4.15.1",
package/.tool-versions DELETED
@@ -1 +0,0 @@
1
- nodejs 10.16.0