linear-react-components-ui 1.0.10-beta.9 → 1.0.10-rc.1

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 (204) hide show
  1. package/.eslintrc.json +1 -0
  2. package/README.md +19 -12
  3. package/coverage/clover.xml +6 -0
  4. package/coverage/coverage-final.json +1 -0
  5. package/coverage/lcov-report/base.css +224 -0
  6. package/coverage/lcov-report/block-navigation.js +87 -0
  7. package/coverage/lcov-report/favicon.png +0 -0
  8. package/coverage/lcov-report/index.html +101 -0
  9. package/coverage/lcov-report/prettify.css +1 -0
  10. package/coverage/lcov-report/prettify.js +2 -0
  11. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  12. package/coverage/lcov-report/sorter.js +196 -0
  13. package/coverage/lcov.info +0 -0
  14. package/lib/alerts/AlertContainer.d.ts +2 -0
  15. package/lib/alerts/AlertProvider.d.ts +2 -0
  16. package/lib/alerts/BaseAlert.d.ts +2 -0
  17. package/lib/alerts/Message.d.ts +2 -0
  18. package/lib/alerts/Message.js +1 -1
  19. package/lib/alerts/helpers.d.ts +2 -0
  20. package/lib/alerts/index.d.ts +2 -0
  21. package/lib/alerts/types.d.ts +3 -1
  22. package/lib/alerts/withAlert.d.ts +2 -0
  23. package/lib/assets/styles/dialog.scss +9 -6
  24. package/lib/assets/styles/effects.scss +2 -2
  25. package/lib/assets/styles/radio.scss +52 -8
  26. package/lib/assets/styles/tooltip.scss +42 -2
  27. package/lib/buttons/ActivateButton.d.ts +2 -0
  28. package/lib/buttons/AddButton.d.ts +2 -0
  29. package/lib/buttons/Button.d.ts +2 -0
  30. package/lib/buttons/CancelButton.d.ts +2 -0
  31. package/lib/buttons/DangerButton.d.ts +2 -0
  32. package/lib/buttons/DefaultButton.d.ts +2 -0
  33. package/lib/buttons/DefaultButton.js +2 -1
  34. package/lib/buttons/DestroyButton.d.ts +2 -0
  35. package/lib/buttons/EditButton.d.ts +2 -0
  36. package/lib/buttons/InactivateButton.d.ts +2 -0
  37. package/lib/buttons/InfoButton.d.ts +2 -0
  38. package/lib/buttons/PrimaryButton.d.ts +2 -0
  39. package/lib/buttons/RestoreButton.d.ts +2 -0
  40. package/lib/buttons/SaveButton.d.ts +2 -0
  41. package/lib/buttons/SuccessButton.d.ts +2 -0
  42. package/lib/buttons/WarningButton.d.ts +2 -0
  43. package/lib/buttons/index.d.ts +2 -0
  44. package/lib/buttons/split_button/index.d.ts +2 -0
  45. package/lib/buttons/types.d.ts +4 -1
  46. package/lib/dialog/Alert.d.ts +2 -0
  47. package/lib/dialog/Custom.d.ts +2 -0
  48. package/lib/dialog/Custom.js +1 -1
  49. package/lib/dialog/Error.d.ts +2 -0
  50. package/lib/dialog/Information.d.ts +2 -0
  51. package/lib/dialog/Question.d.ts +2 -0
  52. package/lib/dialog/Warning.d.ts +2 -0
  53. package/lib/dialog/base/Content.d.ts +2 -0
  54. package/lib/dialog/base/Footer.d.ts +2 -0
  55. package/lib/dialog/base/Header.d.ts +2 -0
  56. package/lib/dialog/base/Header.js +12 -1
  57. package/lib/dialog/base/index.d.ts +2 -0
  58. package/lib/dialog/base/index.js +78 -16
  59. package/lib/dialog/form/index.d.ts +6 -3
  60. package/lib/dialog/form/index.js +11 -4
  61. package/lib/dialog/index.d.ts +2 -0
  62. package/lib/dialog/types.d.ts +8 -3
  63. package/lib/drawer/Content.d.ts +2 -0
  64. package/lib/drawer/Drawer.d.ts +2 -0
  65. package/lib/drawer/Header.d.ts +2 -0
  66. package/lib/drawer/helpers.d.ts +2 -0
  67. package/lib/drawer/index.d.ts +2 -0
  68. package/lib/drawer/types.d.ts +3 -1
  69. package/lib/dropdown/Popup.js +5 -0
  70. package/lib/form/FieldArray.js +2 -2
  71. package/lib/icons/helper.d.ts +4 -0
  72. package/lib/icons/helper.js +4 -0
  73. package/lib/icons/index.d.ts +2 -0
  74. package/lib/icons/types.d.ts +3 -1
  75. package/lib/index.d.ts +3 -1
  76. package/lib/inputs/date/helpers.d.ts +1 -1
  77. package/lib/inputs/date/helpers.js +3 -2
  78. package/lib/inputs/date/index.js +23 -9
  79. package/lib/inputs/date/types.d.ts +2 -1
  80. package/lib/inputs/inputHOC.d.ts +2 -0
  81. package/lib/inputs/mask/helpers.d.ts +2 -0
  82. package/lib/inputs/mask/imaskHOC.d.ts +2 -0
  83. package/lib/inputs/mask/imaskHOC.js +1 -1
  84. package/lib/inputs/multiSelect/Dropdown.js +3 -3
  85. package/lib/inputs/multiSelect/index.js +10 -9
  86. package/lib/inputs/multiSelect/types.d.ts +4 -3
  87. package/lib/inputs/number/BaseNumber.d.ts +2 -0
  88. package/lib/inputs/number/Currency.d.ts +2 -0
  89. package/lib/inputs/number/Decimal.d.ts +2 -0
  90. package/lib/inputs/number/index.d.ts +2 -0
  91. package/lib/inputs/number/types.d.ts +2 -0
  92. package/lib/inputs/search/index.d.ts +2 -0
  93. package/lib/inputs/select/ActionButtons.d.ts +2 -0
  94. package/lib/inputs/select/Dropdown.d.ts +2 -0
  95. package/lib/inputs/select/helper.d.ts +2 -0
  96. package/lib/inputs/select/simple/index.js +30 -10
  97. package/lib/inputs/select/types.d.ts +1 -1
  98. package/lib/inputs/types.d.ts +2 -0
  99. package/lib/internals/types.d.ts +1 -0
  100. package/lib/internals/withTooltip.js +13 -6
  101. package/lib/labelMessages/index.d.ts +2 -0
  102. package/lib/labelMessages/index.js +3 -4
  103. package/lib/labelMessages/types.d.ts +3 -1
  104. package/lib/labels/DangerLabel.d.ts +2 -0
  105. package/lib/labels/DefaultLabel.d.ts +2 -0
  106. package/lib/labels/InfoLabel.d.ts +2 -0
  107. package/lib/labels/PrimaryLabel.d.ts +2 -0
  108. package/lib/labels/SuccessLabel.d.ts +2 -0
  109. package/lib/labels/WarningLabel.d.ts +2 -0
  110. package/lib/labels/index.d.ts +2 -0
  111. package/lib/labels/types.d.ts +3 -1
  112. package/lib/list/Header.d.ts +2 -0
  113. package/lib/list/Item.d.ts +2 -0
  114. package/lib/list/helpers.d.ts +2 -0
  115. package/lib/list/index.d.ts +2 -0
  116. package/lib/list/types.d.ts +4 -2
  117. package/lib/menus/float/MenuItem.d.ts +2 -0
  118. package/lib/menus/float/helpers.d.ts +2 -0
  119. package/lib/menus/float/index.d.ts +2 -0
  120. package/lib/menus/float/types.d.ts +3 -1
  121. package/lib/menus/index.d.ts +2 -0
  122. package/lib/menus/sidenav/ExpandMenu.d.ts +2 -0
  123. package/lib/menus/sidenav/MenuLink.d.ts +2 -0
  124. package/lib/menus/sidenav/NavMenuGroup.d.ts +2 -0
  125. package/lib/menus/sidenav/NavMenuItem.d.ts +2 -0
  126. package/lib/menus/sidenav/NavSubMenuItem.d.ts +2 -0
  127. package/lib/menus/sidenav/helpers.d.ts +2 -0
  128. package/lib/menus/sidenav/index.d.ts +2 -0
  129. package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +2 -0
  130. package/lib/menus/sidenav/popup_menu_search/index.d.ts +2 -0
  131. package/lib/menus/sidenav/types.d.ts +4 -2
  132. package/lib/panel/Content.d.ts +3 -1
  133. package/lib/panel/DangerPanel.d.ts +3 -1
  134. package/lib/panel/Default.d.ts +3 -1
  135. package/lib/panel/Header.d.ts +3 -1
  136. package/lib/panel/Header.js +3 -4
  137. package/lib/panel/InfoPanel.d.ts +3 -1
  138. package/lib/panel/PrimaryPanel.d.ts +3 -1
  139. package/lib/panel/SuccessPanel.d.ts +3 -1
  140. package/lib/panel/ToolBar.d.ts +3 -1
  141. package/lib/panel/WarningPanel.d.ts +3 -1
  142. package/lib/panel/helpers.d.ts +3 -1
  143. package/lib/panel/index.d.ts +3 -1
  144. package/lib/panel/types.d.ts +3 -1
  145. package/lib/popover/PopoverText.d.ts +2 -0
  146. package/lib/popover/PopoverTitle.d.ts +2 -0
  147. package/lib/popover/index.d.ts +2 -0
  148. package/lib/popover/index.js +1 -2
  149. package/lib/popover/types.d.ts +3 -1
  150. package/lib/radio/index.d.ts +2 -1
  151. package/lib/radio/index.js +3 -1
  152. package/lib/radio/types.d.ts +2 -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/treeview/index.js +1 -0
  170. package/lib/{types-90c43ae1.d.ts → types-c1e2d0c9.d.ts} +2 -1
  171. package/package.json +6 -3
  172. package/demo/06c001f4d19c06397d470bb43ff3fe49.png +0 -0
  173. package/demo/270084ef02ed3bddc3f735fd91ee3cae.png +0 -0
  174. package/demo/882f8e819d18f5f2dc08d23ebd28a7d5.png +0 -0
  175. package/demo/bundle.js +0 -2
  176. package/demo/bundle.js.LICENSE.txt +0 -65
  177. package/demo/cbc3b4bd6342c551db7afafe26dc458c.jpg +0 -0
  178. package/demo/edc9476523b940deab91951066981a31.png +0 -0
  179. package/demo/fb44e7c36db6d95bb85a745d4f060fb2.png +0 -0
  180. package/demo/fonts/Roboto-Black.woff +0 -0
  181. package/demo/fonts/Roboto-Black.woff2 +0 -0
  182. package/demo/fonts/Roboto-Bold.woff +0 -0
  183. package/demo/fonts/Roboto-Bold.woff2 +0 -0
  184. package/demo/fonts/Roboto-Light.woff +0 -0
  185. package/demo/fonts/Roboto-Light.woff2 +0 -0
  186. package/demo/fonts/Roboto-Medium.woff +0 -0
  187. package/demo/fonts/Roboto-Medium.woff2 +0 -0
  188. package/demo/fonts/Roboto-Regular.woff +0 -0
  189. package/demo/fonts/Roboto-Regular.woff2 +0 -0
  190. package/demo/fonts/Roboto-Thin.woff +0 -0
  191. package/demo/fonts/Roboto-Thin.woff2 +0 -0
  192. package/demo/fonts/TitilliumWeb-Black.woff +0 -0
  193. package/demo/fonts/TitilliumWeb-Black.woff2 +0 -0
  194. package/demo/fonts/TitilliumWeb-Bold.woff +0 -0
  195. package/demo/fonts/TitilliumWeb-Bold.woff2 +0 -0
  196. package/demo/fonts/TitilliumWeb-ExtraLight.woff +0 -0
  197. package/demo/fonts/TitilliumWeb-ExtraLight.woff2 +0 -0
  198. package/demo/fonts/TitilliumWeb-Light.woff +0 -0
  199. package/demo/fonts/TitilliumWeb-Light.woff2 +0 -0
  200. package/demo/fonts/TitilliumWeb-Regular.woff +0 -0
  201. package/demo/fonts/TitilliumWeb-Regular.woff2 +0 -0
  202. package/demo/fonts/TitilliumWeb-SemiBold.woff +0 -0
  203. package/demo/fonts/TitilliumWeb-SemiBold.woff2 +0 -0
  204. package/demo/index.html +0 -1
@@ -9,7 +9,7 @@ import '../../@types/Period.js';
9
9
 
10
10
  declare const PT_BR_FORMAT = "DD/MM/YYYY";
11
11
  declare const EN_US_FORMAT = "YYYY-MM-DD";
12
- declare const getCalendarDropdownStyle: ({ topPosition, leftPosition, width }: IDateDropdownProps) => string;
12
+ declare const getCalendarDropdownStyle: ({ topPosition, leftPosition, width, minWidth, }: IDateDropdownProps) => string;
13
13
  declare const getMomentValue: (value: string) => moment.Moment;
14
14
 
15
15
  export { EN_US_FORMAT, PT_BR_FORMAT, getCalendarDropdownStyle, getMomentValue };
@@ -13,8 +13,9 @@ exports.EN_US_FORMAT = EN_US_FORMAT;
13
13
  var getCalendarDropdownStyle = function getCalendarDropdownStyle(_ref) {
14
14
  var topPosition = _ref.topPosition,
15
15
  leftPosition = _ref.leftPosition,
16
- width = _ref.width;
17
- return "top: ".concat(topPosition, "px;\n left: ").concat(leftPosition, "px;\n width:").concat(width, "px");
16
+ width = _ref.width,
17
+ minWidth = _ref.minWidth;
18
+ return "top: ".concat(topPosition, "px;\n left: ").concat(leftPosition, "px;\n width: ").concat(width, "px;\n min-width: ").concat(minWidth, "px;");
18
19
  };
19
20
  exports.getCalendarDropdownStyle = getCalendarDropdownStyle;
20
21
  var getMomentValue = function getMomentValue(value) {
@@ -27,6 +27,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
27
27
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
28
28
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
29
29
  var CALENDAR_BUTTON_WIDTH = 24;
30
+ var CALENDAR_MIN_WIDTH = 250;
30
31
  var DatePicker = function DatePicker(props) {
31
32
  var _props$showButtonOpen = props.showButtonOpen,
32
33
  showButtonOpen = _props$showButtonOpen === void 0 ? true : _props$showButtonOpen,
@@ -65,22 +66,26 @@ var DatePicker = function DatePicker(props) {
65
66
  _useState8 = _slicedToArray(_useState7, 2),
66
67
  inputDimensions = _useState8[0],
67
68
  setInputDimensions = _useState8[1];
68
- var _useState9 = (0, _react.useState)({
69
+ var _useState9 = (0, _react.useState)(),
70
+ _useState10 = _slicedToArray(_useState9, 2),
71
+ formatedLeftPosition = _useState10[0],
72
+ setFormatedLeftPosition = _useState10[1];
73
+ var _useState11 = (0, _react.useState)({
69
74
  disabled: false,
70
75
  readOnly: false,
71
76
  unvisible: false,
72
77
  hideContent: false
73
78
  }),
74
- _useState10 = _slicedToArray(_useState9, 2),
75
- onDenied = _useState10[0],
76
- setOnDenied = _useState10[1];
79
+ _useState12 = _slicedToArray(_useState11, 2),
80
+ onDenied = _useState12[0],
81
+ setOnDenied = _useState12[1];
77
82
  var _inputRef = (0, _react.useRef)();
78
83
  var buttonOpenRef = (0, _react.useRef)();
79
84
  var dropdownContainer = (0, _react.useRef)();
80
- var _useState11 = (0, _react.useState)(false),
81
- _useState12 = _slicedToArray(_useState11, 2),
82
- insideDropdown = _useState12[0],
83
- setInsideDropdown = _useState12[1];
85
+ var _useState13 = (0, _react.useState)(false),
86
+ _useState14 = _slicedToArray(_useState13, 2),
87
+ insideDropdown = _useState14[0],
88
+ setInsideDropdown = _useState14[1];
84
89
  var onScreenResize = function onScreenResize() {
85
90
  var _inputRef$current;
86
91
  setInputDimensions(_inputRef === null || _inputRef === void 0 ? void 0 : (_inputRef$current = _inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.getBoundingClientRect());
@@ -203,13 +208,22 @@ var DatePicker = function DatePicker(props) {
203
208
  }
204
209
  return /*#__PURE__*/_react.default.createElement(_Dropdown.default, {
205
210
  topPosition: inputDimensions ? inputDimensions.top + inputDimensions.height + 5 : '',
206
- leftPosition: inputDimensions ? inputDimensions.left : '',
211
+ leftPosition: inputDimensions ? formatedLeftPosition : '',
212
+ minWidth: CALENDAR_MIN_WIDTH,
207
213
  width: inputDimensions ? inputDimensions.width + (showButtonOpen ? CALENDAR_BUTTON_WIDTH : 0) : '',
208
214
  dropdownRef: function dropdownRef(el) {
209
215
  dropdownContainer.current = el;
210
216
  }
211
217
  }, getCalendar(valueState, props === null || props === void 0 ? void 0 : props.calendarColorStyle));
212
218
  };
219
+ (0, _react.useEffect)(function () {
220
+ var screenWidth = window.innerWidth;
221
+ if (inputDimensions && screenWidth < inputDimensions.left + CALENDAR_MIN_WIDTH) {
222
+ setFormatedLeftPosition(inputDimensions.left - (CALENDAR_MIN_WIDTH - inputDimensions.width - CALENDAR_BUTTON_WIDTH));
223
+ } else {
224
+ setFormatedLeftPosition(inputDimensions === null || inputDimensions === void 0 ? void 0 : inputDimensions.left);
225
+ }
226
+ }, [getWrapperComponent]);
213
227
  if (onDenied && onDenied.unvisible) return null;
214
228
  (0, _react.useEffect)(function () {
215
229
  window.addEventListener('resize', onScreenResize);
@@ -39,8 +39,9 @@ interface IDateDropdownProps {
39
39
  children: ReactNode | ReactNode[];
40
40
  dropdownRef: (el: HTMLDivElement) => void;
41
41
  topPosition: number | string;
42
- leftPosition: number | string;
42
+ leftPosition?: number | string;
43
43
  width: number | string;
44
+ minWidth: number | string;
44
45
  }
45
46
  interface IDateDialogProps {
46
47
  children: ReactNode | ReactNode[];
@@ -7,6 +7,8 @@ import '../@types/Align.js';
7
7
  import '../@types/Period.js';
8
8
  import '../drawer/types.js';
9
9
  import '../@types/Position.js';
10
+ import '../@types/Icon.js';
11
+ import '../icons/helper.js';
10
12
 
11
13
  declare const InputHOC: <ComponentProps extends IInputHOCProps>(WrappedComponent: React__default.ComponentType<ComponentProps>) => (props: ComponentProps) => JSX.Element;
12
14
 
@@ -8,6 +8,8 @@ import '../../@types/Align.js';
8
8
  import '../../@types/Period.js';
9
9
  import '../../drawer/types.js';
10
10
  import '../../@types/Position.js';
11
+ import '../../@types/Icon.js';
12
+ import '../../icons/helper.js';
11
13
 
12
14
  declare function extractNonMaskProps(props: IMaskHOCProps, maskProps: AnyMaskedOptions): any;
13
15
  declare function CPFValidation(cpf?: string, returnMessage?: (msg: string) => void): void | "CPF inválido";
@@ -7,6 +7,8 @@ import '../../@types/Align.js';
7
7
  import '../../@types/Period.js';
8
8
  import '../../drawer/types.js';
9
9
  import '../../@types/Position.js';
10
+ import '../../@types/Icon.js';
11
+ import '../../icons/helper.js';
10
12
 
11
13
  declare const IMaskHOC: <ComponentProps extends IMaskHOCProps>(ComposedComponent: React__default.ComponentType<ComponentProps>) => {
12
14
  (props: ComponentProps): JSX.Element;
@@ -63,7 +63,7 @@ var IMaskHOC = function IMaskHOC(ComposedComponent) {
63
63
  _props$isDateField = props.isDateField,
64
64
  isDateField = _props$isDateField === void 0 ? false : _props$isDateField;
65
65
  var maskOptions = {
66
- placeholderChar: placeholderChar,
66
+ placeholderChar: placeholderChar === '' ? ' ' : placeholderChar,
67
67
  lazy: lazy,
68
68
  pattern: pattern,
69
69
  radix: radix,
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
- var _icons = _interopRequireDefault(require("../../icons"));
10
9
  var _avatar = _interopRequireDefault(require("../../avatar"));
10
+ var _icons = _interopRequireDefault(require("../../icons"));
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
13
  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; }
@@ -96,7 +96,7 @@ var Dropdown = function Dropdown(props) {
96
96
  viewBox: "0 0 32 32"
97
97
  })), /*#__PURE__*/_react.default.createElement("div", {
98
98
  className: "listcontainer"
99
- }, dataCombo.length > 0 && /*#__PURE__*/_react.default.createElement("div", {
99
+ }, dataCombo && dataCombo.length > 0 && /*#__PURE__*/_react.default.createElement("div", {
100
100
  className: "item selectall"
101
101
  }, /*#__PURE__*/_react.default.createElement("span", {
102
102
  role: "button",
@@ -111,7 +111,7 @@ var Dropdown = function Dropdown(props) {
111
111
  customClass: "checkboxicon"
112
112
  }), /*#__PURE__*/_react.default.createElement("span", {
113
113
  className: "label"
114
- }, inputValue !== '' ? 'Selecionar todos pesquisados' : 'Selecionar Todos'))), dataCombo.map(function (item) {
114
+ }, inputValue !== '' ? 'Selecionar todos pesquisados' : 'Selecionar Todos'))), dataCombo === null || dataCombo === void 0 ? void 0 : dataCombo.map(function (item) {
115
115
  var isChecked = selecteds ? selecteds.find(function (selected) {
116
116
  return selected[idKey] === item[idKey];
117
117
  }) : undefined;
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _react = _interopRequireWildcard(require("react"));
9
8
  var _lodash = _interopRequireDefault(require("lodash"));
9
+ var _react = _interopRequireWildcard(require("react"));
10
10
  var _uuid = _interopRequireDefault(require("uuid"));
11
- var _Dropdown = _interopRequireDefault(require("./Dropdown"));
12
11
  var _InputTextBase = _interopRequireDefault(require("../base/InputTextBase"));
13
- var _helper = _interopRequireDefault(require("./helper"));
14
12
  var _ActionButtons = _interopRequireDefault(require("./ActionButtons"));
13
+ var _Dropdown = _interopRequireDefault(require("./Dropdown"));
14
+ var _helper = _interopRequireDefault(require("./helper"));
15
15
  require("../../assets/styles/multiSelect.scss");
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
16
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
17
  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; }
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
20
20
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
21
21
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -124,7 +124,7 @@ var MultiSelectField = function MultiSelectField(props) {
124
124
  };
125
125
  var handleOnFilter = function handleOnFilter(currentValue) {
126
126
  var newDataCombo = dataSource;
127
- if (currentValue !== '') {
127
+ if (currentValue !== '' && dataSource) {
128
128
  newDataCombo = (0, _helper.default)({
129
129
  dataSource: dataSource,
130
130
  descriptionKey: descriptionKey,
@@ -141,7 +141,7 @@ var MultiSelectField = function MultiSelectField(props) {
141
141
  var onCheckAll = function onCheckAll() {
142
142
  var fromFilter = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
143
143
  var currentData = fromFilter ? dataCombo : dataSource;
144
- if (onSelect) onSelect(currentData.map(function (i) {
144
+ if (onSelect && currentData) onSelect(currentData.map(function (i) {
145
145
  return i[idKey];
146
146
  }));
147
147
  setSelecteds(currentData);
@@ -197,16 +197,17 @@ var MultiSelectField = function MultiSelectField(props) {
197
197
  };
198
198
  }, []);
199
199
  (0, _react.useEffect)(function () {
200
- if (dataSource.length > 0) {
200
+ if (dataSource && dataSource.length > 0) {
201
201
  var newSelecteds = dataSource.filter(function (item) {
202
202
  return value === null || value === void 0 ? void 0 : value.includes(item[idKey]);
203
203
  });
204
204
  setSelecteds(newSelecteds);
205
205
  }
206
- }, [value === null || value === void 0 ? void 0 : value.length, dataSource.length]);
206
+ }, [value === null || value === void 0 ? void 0 : value.length, dataSource === null || dataSource === void 0 ? void 0 : dataSource.length]);
207
207
  (0, _react.useEffect)(function () {
208
- if (!_lodash.default.isEqual(dataSource, dataCombo)) {
208
+ if (dataSource && dataCombo && !_lodash.default.isEqual(dataSource, dataCombo)) {
209
209
  var newDataCombo = (0, _helper.default)(_extends({}, props, {
210
+ dataSource: dataSource || undefined,
210
211
  inputText: inputValue
211
212
  }));
212
213
  setDataCombo(newDataCombo);
@@ -20,7 +20,7 @@ interface IActionButtonsProps {
20
20
  dropdownAlignButton?: 'left' | 'right';
21
21
  }
22
22
  interface IDropdownMultiSelectProps {
23
- dataCombo: DataCombo[];
23
+ dataCombo?: DataCombo[];
24
24
  idKey: string;
25
25
  descriptionKey: DescriptionKey;
26
26
  inputValue: string;
@@ -44,15 +44,16 @@ interface IDropdownMultiSelectProps {
44
44
  dropdownMaxHeight?: number;
45
45
  }
46
46
  interface IMultiSelectProps {
47
- dataSource: DataCombo[];
47
+ dataSource?: DataCombo[];
48
48
  idKey: string;
49
49
  descriptionKey: DescriptionKey;
50
50
  value?: any[];
51
51
  gridLayout?: string;
52
- onSelect: (data?: string[]) => void;
52
+ onSelect?: (data?: string[]) => void;
53
53
  onBlur?: (e: CustomInputEvent) => void;
54
54
  disabled?: boolean;
55
55
  dropdownAlignButton?: 'left' | 'right';
56
+ label?: string;
56
57
  }
57
58
 
58
59
  export { DescriptionKey, GetFilteredParams, IActionButtonsProps, IDropdownMultiSelectProps, IMultiSelectProps };
@@ -8,6 +8,8 @@ import '../types.js';
8
8
  import '../../@types/DataCombo.js';
9
9
  import '../../drawer/types.js';
10
10
  import '../../@types/Position.js';
11
+ import '../../@types/Icon.js';
12
+ import '../../icons/helper.js';
11
13
 
12
14
  declare const BaseNumber: (props: IBaseNumberProps) => JSX.Element;
13
15
 
@@ -8,6 +8,8 @@ import '../types.js';
8
8
  import '../../@types/DataCombo.js';
9
9
  import '../../drawer/types.js';
10
10
  import '../../@types/Position.js';
11
+ import '../../@types/Icon.js';
12
+ import '../../icons/helper.js';
11
13
 
12
14
  declare const CurrencyField: (props: ICurrencyProps) => JSX.Element;
13
15
 
@@ -8,6 +8,8 @@ import '../types.js';
8
8
  import '../../@types/DataCombo.js';
9
9
  import '../../drawer/types.js';
10
10
  import '../../@types/Position.js';
11
+ import '../../@types/Icon.js';
12
+ import '../../icons/helper.js';
11
13
 
12
14
  declare const DecimalField: (props: IBaseNumberProps) => JSX.Element;
13
15
 
@@ -10,6 +10,8 @@ import '../types.js';
10
10
  import '../../@types/DataCombo.js';
11
11
  import '../../drawer/types.js';
12
12
  import '../../@types/Position.js';
13
+ import '../../@types/Icon.js';
14
+ import '../../icons/helper.js';
13
15
 
14
16
  declare const NumberField: (props: INumberFieldProps) => JSX.Element;
15
17
 
@@ -7,6 +7,8 @@ import '../../@types/Period.js';
7
7
  import '../../@types/DataCombo.js';
8
8
  import '../../drawer/types.js';
9
9
  import '../../@types/Position.js';
10
+ import '../../@types/Icon.js';
11
+ import '../../icons/helper.js';
10
12
 
11
13
  interface INumberFieldProps extends IMaskHOCProps {
12
14
  value?: string;
@@ -7,6 +7,8 @@ import '../../@types/Align.js';
7
7
  import '../../@types/Period.js';
8
8
  import '../../drawer/types.js';
9
9
  import '../../@types/Position.js';
10
+ import '../../@types/Icon.js';
11
+ import '../../icons/helper.js';
10
12
 
11
13
  declare const SearchField: (props: ISearchProps) => JSX.Element | null;
12
14
 
@@ -7,6 +7,8 @@ import '../../@types/Align.js';
7
7
  import '../../@types/Period.js';
8
8
  import '../../drawer/types.js';
9
9
  import '../../@types/Position.js';
10
+ import '../../@types/Icon.js';
11
+ import '../../icons/helper.js';
10
12
 
11
13
  declare const ActionButtons: (props: IActionButtonsSelectProps) => JSX.Element;
12
14
 
@@ -7,6 +7,8 @@ import '../../@types/Align.js';
7
7
  import '../../@types/Period.js';
8
8
  import '../../drawer/types.js';
9
9
  import '../../@types/Position.js';
10
+ import '../../@types/Icon.js';
11
+ import '../../icons/helper.js';
10
12
 
11
13
  declare const Dropdown: (props: IDropdownSelectProps) => JSX.Element;
12
14
 
@@ -8,6 +8,8 @@ import '../../@types/Align.js';
8
8
  import '../../@types/Period.js';
9
9
  import '../../drawer/types.js';
10
10
  import '../../@types/Position.js';
11
+ import '../../@types/Icon.js';
12
+ import '../../icons/helper.js';
11
13
 
12
14
  declare const contentClass: (props: IDropdownSelectProps) => string;
13
15
  declare const getDropdownItemCssClass: (selected: boolean, disabled: boolean, striped: boolean) => string;
@@ -61,7 +61,7 @@ var SimpleSelect = function SimpleSelect(props) {
61
61
  _useState2 = _slicedToArray(_useState, 2),
62
62
  dataCombo = _useState2[0],
63
63
  setDataCombo = _useState2[1];
64
- var _useState3 = (0, _react.useState)(),
64
+ var _useState3 = (0, _react.useState)(null),
65
65
  _useState4 = _slicedToArray(_useState3, 2),
66
66
  selected = _useState4[0],
67
67
  setSelected = _useState4[1];
@@ -89,7 +89,7 @@ var SimpleSelect = function SimpleSelect(props) {
89
89
  _useState16 = _slicedToArray(_useState15, 2),
90
90
  isTyping = _useState16[0],
91
91
  setIsTyping = _useState16[1];
92
- var _useState17 = (0, _react.useState)(''),
92
+ var _useState17 = (0, _react.useState)(null),
93
93
  _useState18 = _slicedToArray(_useState17, 2),
94
94
  valueFromProps = _useState18[0],
95
95
  setValueFromProps = _useState18[1];
@@ -98,6 +98,11 @@ var SimpleSelect = function SimpleSelect(props) {
98
98
  var componentRef = (0, _react.useRef)(null);
99
99
  var selectWrapper = (0, _react.useRef)();
100
100
  var gridElement = (0, _react.useRef)();
101
+ var clearSelected = function clearSelected() {
102
+ setInputText('');
103
+ setSelected(null);
104
+ setDataCombo(dataSourceWithAllOptions);
105
+ };
101
106
  var onScreenResize = function onScreenResize() {
102
107
  if (selectWrapper.current) setDropdownWidth(selectWrapper.current.clientWidth);
103
108
  };
@@ -129,7 +134,7 @@ var SimpleSelect = function SimpleSelect(props) {
129
134
  }
130
135
  };
131
136
  var onFilter = function onFilter(valueFilter) {
132
- var selectedFilter;
137
+ var selectedFilter = null;
133
138
  if (remoteSearch) {
134
139
  if (onSearch) onSearch(valueFilter);
135
140
  } else {
@@ -138,13 +143,19 @@ var SimpleSelect = function SimpleSelect(props) {
138
143
  descriptionKey: descriptionKey,
139
144
  dataSource: dataSourceWithAllOptions
140
145
  });
141
- if (dataComboFilter && dataComboFilter.length > 0) selectedFilter = dataComboFilter[0];
146
+ if (dataComboFilter && dataComboFilter.length > 0) {
147
+ selectedFilter = dataComboFilter[0];
148
+ }
142
149
  setDataCombo(dataComboFilter);
143
150
  }
144
- onChange(selectedFilter);
145
151
  setOpened(true);
146
152
  setInputText(valueFilter);
147
153
  setSelected(selectedFilter);
154
+ if (selectedFilter) {
155
+ if (descriptionKeyIsString && valueFilter === selectedFilter[descriptionKey] || !descriptionKeyIsString && valueFilter === descriptionKey(selectedFilter)) {
156
+ onChange(selectedFilter);
157
+ }
158
+ }
148
159
  };
149
160
  var onSelect = function onSelect(selectedDropdown) {
150
161
  if (selectedDropdown === undefined) return;
@@ -168,6 +179,11 @@ var SimpleSelect = function SimpleSelect(props) {
168
179
  if (props.onBlur) {
169
180
  var event = getSelectEvent(selected);
170
181
  props.onBlur(event);
182
+ if (selected) {
183
+ if (descriptionKeyIsString && inputText !== selected[descriptionKey] || !descriptionKeyIsString && inputText !== descriptionKey(selected)) {
184
+ clearSelected();
185
+ }
186
+ }
171
187
  }
172
188
  if (!insideComponent) {
173
189
  setOpened(false);
@@ -182,15 +198,15 @@ var SimpleSelect = function SimpleSelect(props) {
182
198
  onSelect(selected);
183
199
  } else if ([constants.keyCodes.ARROW_UP, constants.keyCodes.ARROW_DOWN].includes(e.keyCode)) {
184
200
  if (!opened) setOpened(true);
185
- var index = dataSourceWithAllOptions.length > 0 ? dataSourceWithAllOptions.findIndex(function (d) {
201
+ var index = dataCombo.length > 0 ? dataCombo.findIndex(function (d) {
186
202
  return selected && d[idKey] === selected[idKey];
187
203
  }) : 0;
188
204
  if (e.keyCode === constants.keyCodes.ARROW_DOWN) {
189
- index = dataSourceWithAllOptions && index === dataSourceWithAllOptions.length - 1 ? 0 : index + 1;
205
+ index = dataCombo && index === dataCombo.length - 1 ? 0 : index + 1;
190
206
  } else {
191
- index = dataSourceWithAllOptions && index === 0 ? (dataSourceWithAllOptions === null || dataSourceWithAllOptions === void 0 ? void 0 : dataSourceWithAllOptions.length) - 1 : index - 1;
207
+ index = dataCombo && index === 0 ? (dataCombo === null || dataCombo === void 0 ? void 0 : dataCombo.length) - 1 : index - 1;
192
208
  }
193
- setSelected(dataSourceWithAllOptions[index]);
209
+ setSelected(dataCombo[index]);
194
210
  }
195
211
  }
196
212
  if (!isTyping) setIsTyping(true);
@@ -230,7 +246,7 @@ var SimpleSelect = function SimpleSelect(props) {
230
246
  if (value) {
231
247
  newCurrent = dataSourceWithAllOptions.find(function (i) {
232
248
  var _i$idKey;
233
- return ((_i$idKey = i[idKey]) === null || _i$idKey === void 0 ? void 0 : _i$idKey.toString().toLowerCase()) === value.toString().toLowerCase();
249
+ return value && ((_i$idKey = i[idKey]) === null || _i$idKey === void 0 ? void 0 : _i$idKey.toString().toLowerCase()) === (value === null || value === void 0 ? void 0 : value.toString().toLowerCase());
234
250
  });
235
251
  setValueFromProps(value);
236
252
  } else if (dataSourceWithAllOptions.length > 0 && selectFirstOnEnter) {
@@ -253,6 +269,10 @@ var SimpleSelect = function SimpleSelect(props) {
253
269
  setSelected(data);
254
270
  }
255
271
  }
272
+ if (allOptions) {
273
+ var _ref2;
274
+ setDataCombo([(_ref2 = {}, _defineProperty(_ref2, idKey, allOptions.idValue), _defineProperty(_ref2, descriptionKeyIsString ? descriptionKey : descriptionKey(allOptions.label), allOptions.label), _ref2)].concat(_toConsumableArray(dataSource)));
275
+ }
256
276
  }, [JSON.stringify(dataSourceWithAllOptions)]);
257
277
  return /*#__PURE__*/_react.default.createElement("span", {
258
278
  id: componentId,
@@ -18,8 +18,8 @@ interface ISimpleSelectProps {
18
18
  label?: string;
19
19
  placeHolder?: string;
20
20
  hint?: string;
21
+ value?: string | number | boolean | number[];
21
22
  textAlign?: TextAlign;
22
- value?: number | string;
23
23
  errorMessages?: string[];
24
24
  showClearButton?: boolean;
25
25
  searchOnDropdown?: boolean;
@@ -6,6 +6,8 @@ import { IDrawerProps } from '../drawer/types.js';
6
6
  import { TextAlign } from '../@types/Align.js';
7
7
  import '../@types/Period.js';
8
8
  import '../@types/Position.js';
9
+ import '../@types/Icon.js';
10
+ import '../icons/helper.js';
9
11
 
10
12
  type DescriptionKey = string | ((dataSelected: DataCombo) => string);
11
13
  interface IAdvancedFilterProps extends Omit<IDrawerProps, 'content'> {
@@ -9,6 +9,7 @@ interface WithTooltipProps {
9
9
  tooltipPosition?: Exclude<Position, 'center'>;
10
10
  style?: CSSProperties;
11
11
  handlerSetOnDenied?: (onDeniedValue: OnDenied) => void;
12
+ errorMessage?: string;
12
13
  }
13
14
  interface GetDisplayNameParams {
14
15
  displayName?: string;
@@ -35,7 +35,8 @@ var withTooltip = function withTooltip(WrappedComponent) {
35
35
  _props$space = props.space,
36
36
  space = _props$space === void 0 ? 20 : _props$space,
37
37
  _props$tooltipPositio = props.tooltipPosition,
38
- tooltipPosition = _props$tooltipPositio === void 0 ? 'bottom' : _props$tooltipPositio;
38
+ tooltipPosition = _props$tooltipPositio === void 0 ? 'bottom' : _props$tooltipPositio,
39
+ errorMessage = props.errorMessage;
39
40
  var _useState = (0, _react.useState)(tooltipPosition),
40
41
  _useState2 = _slicedToArray(_useState, 2),
41
42
  stateTooltipPosition = _useState2[0],
@@ -70,10 +71,15 @@ var withTooltip = function withTooltip(WrappedComponent) {
70
71
  };
71
72
  (0, _react.useEffect)(function () {
72
73
  if (hasTooltip(props)) {
73
- document.addEventListener('mouseover', onMouseOver);
74
- document.addEventListener('scroll', onAnyScroll, true);
75
- if (targetElement && targetElement.current) {
76
- targetElement.current.addEventListener('mouseout', onMouseOut);
74
+ if (errorMessage) {
75
+ setShowTooltip(true);
76
+ } else {
77
+ setShowTooltip(false);
78
+ document.addEventListener('mouseover', onMouseOver);
79
+ document.addEventListener('scroll', onAnyScroll, true);
80
+ if (targetElement && targetElement.current) {
81
+ targetElement.current.addEventListener('mouseout', onMouseOut);
82
+ }
77
83
  }
78
84
  }
79
85
  return function () {
@@ -85,7 +91,7 @@ var withTooltip = function withTooltip(WrappedComponent) {
85
91
  }
86
92
  }
87
93
  };
88
- }, []);
94
+ }, [errorMessage]);
89
95
  (0, _react.useEffect)(function () {
90
96
  if (targetElement.current && tooltipElement.current) {
91
97
  var width = tooltipDimensions.width,
@@ -141,6 +147,7 @@ var withTooltip = function withTooltip(WrappedComponent) {
141
147
  if (tooltip) {
142
148
  return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
143
149
  text: tooltip,
150
+ textError: errorMessage,
144
151
  tooltipRef: tooltipElement,
145
152
  style: tooltipStyle,
146
153
  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
 
@@ -24,8 +24,7 @@ var LabelMessages = function LabelMessages(_ref) {
24
24
  icon = _ref$icon === void 0 ? null : _ref$icon,
25
25
  _ref$flat = _ref.flat,
26
26
  flat = _ref$flat === void 0 ? false : _ref$flat,
27
- _ref$iconName = _ref.iconName,
28
- iconName = _ref$iconName === void 0 ? '' : _ref$iconName,
27
+ iconName = _ref.iconName,
29
28
  handlerClosed = _ref.handlerClosed,
30
29
  _ref$square = _ref.square,
31
30
  square = _ref$square === void 0 ? true : _ref$square,
@@ -47,9 +46,9 @@ var LabelMessages = function LabelMessages(_ref) {
47
46
  return "labelmessages-component -".concat(type, " ").concat(customClass, "\n ").concat(square && '-square', " ").concat(flat && '-flat');
48
47
  };
49
48
  var getIcon = function getIcon() {
50
- if (icon !== null) {
49
+ if (icon) {
51
50
  return icon;
52
- } else if (iconName !== null) {
51
+ } else if (iconName) {
53
52
  return /*#__PURE__*/_react.default.createElement(_icons.default, {
54
53
  name: iconName,
55
54
  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?: string;
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 _default: {
8
10
  (props: ILabelProps): JSX.Element;
@@ -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 InfoLabel: ({ 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