linear-react-components-ui 0.4.77-beta.28 → 0.4.77-beta.29

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 (318) hide show
  1. package/lib/dropdown/withDropdown.js +1 -1
  2. package/lib/menus/float/SubMenuContainer.js +2 -2
  3. package/lib/menus/float/index.js +1 -1
  4. package/package.json +1 -1
  5. package/lib/@types/Align.d.ts +0 -3
  6. package/lib/@types/Align.js +0 -5
  7. package/lib/@types/ButtonTypes.d.ts +0 -3
  8. package/lib/@types/ButtonTypes.js +0 -5
  9. package/lib/@types/ColorStyles.d.ts +0 -3
  10. package/lib/@types/ColorStyles.js +0 -5
  11. package/lib/@types/DataCombo.d.ts +0 -3
  12. package/lib/@types/DataCombo.js +0 -5
  13. package/lib/@types/Icon.d.ts +0 -5
  14. package/lib/@types/Icon.js +0 -5
  15. package/lib/@types/LabelStyles.d.ts +0 -3
  16. package/lib/@types/LabelStyles.js +0 -5
  17. package/lib/@types/Period.d.ts +0 -6
  18. package/lib/@types/Period.js +0 -5
  19. package/lib/@types/PermissionAttr.d.ts +0 -14
  20. package/lib/@types/PermissionAttr.js +0 -5
  21. package/lib/@types/PointerEvents.d.ts +0 -3
  22. package/lib/@types/PointerEvents.js +0 -5
  23. package/lib/@types/Position.d.ts +0 -3
  24. package/lib/@types/Position.js +0 -5
  25. package/lib/@types/PositionAlert.d.ts +0 -3
  26. package/lib/@types/PositionAlert.js +0 -5
  27. package/lib/@types/Size.d.ts +0 -3
  28. package/lib/@types/Size.js +0 -5
  29. package/lib/@types/SizePixels.d.ts +0 -3
  30. package/lib/@types/SizePixels.js +0 -5
  31. package/lib/@types/StorageMock.d.ts +0 -5
  32. package/lib/@types/StorageMock.js +0 -5
  33. package/lib/alerts/AlertContainer.d.ts +0 -16
  34. package/lib/alerts/AlertProvider.d.ts +0 -7
  35. package/lib/alerts/BaseAlert.d.ts +0 -7
  36. package/lib/alerts/Message.d.ts +0 -7
  37. package/lib/alerts/helpers.d.ts +0 -7
  38. package/lib/alerts/index.d.ts +0 -6
  39. package/lib/alerts/types.d.ts +0 -48
  40. package/lib/alerts/types.js +0 -5
  41. package/lib/alerts/withAlert.d.ts +0 -7
  42. package/lib/avatar/index.d.ts +0 -12
  43. package/lib/avatar/types.d.ts +0 -31
  44. package/lib/avatar/types.js +0 -5
  45. package/lib/badge/index.d.ts +0 -6
  46. package/lib/badge/types.d.ts +0 -13
  47. package/lib/badge/types.js +0 -5
  48. package/lib/buttons/ActivateButton.d.ts +0 -9
  49. package/lib/buttons/AddButton.d.ts +0 -9
  50. package/lib/buttons/Button.d.ts +0 -12
  51. package/lib/buttons/ButtonGroups.d.ts +0 -8
  52. package/lib/buttons/CancelButton.d.ts +0 -9
  53. package/lib/buttons/DangerButton.d.ts +0 -9
  54. package/lib/buttons/DefaultButton.d.ts +0 -12
  55. package/lib/buttons/DestroyButton.d.ts +0 -9
  56. package/lib/buttons/EditButton.d.ts +0 -9
  57. package/lib/buttons/InactivateButton.d.ts +0 -9
  58. package/lib/buttons/InfoButton.d.ts +0 -9
  59. package/lib/buttons/PrimaryButton.d.ts +0 -9
  60. package/lib/buttons/RestoreButton.d.ts +0 -9
  61. package/lib/buttons/SaveButton.d.ts +0 -9
  62. package/lib/buttons/SuccessButton.d.ts +0 -9
  63. package/lib/buttons/WarningButton.d.ts +0 -9
  64. package/lib/buttons/button_container/index.d.ts +0 -12
  65. package/lib/buttons/index.d.ts +0 -21
  66. package/lib/buttons/split_button/index.d.ts +0 -9
  67. package/lib/buttons/types.d.ts +0 -44
  68. package/lib/buttons/types.js +0 -5
  69. package/lib/calendar/DangerCalendar.d.ts +0 -7
  70. package/lib/calendar/InfoCalendar.d.ts +0 -7
  71. package/lib/calendar/PrimaryCalendar.d.ts +0 -7
  72. package/lib/calendar/SuccessCalendar.d.ts +0 -7
  73. package/lib/calendar/WarningCalendar.d.ts +0 -7
  74. package/lib/calendar/base/Day.d.ts +0 -7
  75. package/lib/calendar/base/Month.d.ts +0 -7
  76. package/lib/calendar/base/Week.d.ts +0 -7
  77. package/lib/calendar/base/helpers.d.ts +0 -62
  78. package/lib/calendar/base/index.d.ts +0 -7
  79. package/lib/calendar/index.d.ts +0 -10
  80. package/lib/calendar/types.d.ts +0 -25
  81. package/lib/calendar/types.js +0 -5
  82. package/lib/checkbox/Label.d.ts +0 -11
  83. package/lib/checkbox/index.d.ts +0 -13
  84. package/lib/checkbox/types.d.ts +0 -42
  85. package/lib/checkbox/types.js +0 -5
  86. package/lib/dialog/Alert.d.ts +0 -6
  87. package/lib/dialog/Custom.d.ts +0 -6
  88. package/lib/dialog/Error.d.ts +0 -6
  89. package/lib/dialog/Information.d.ts +0 -6
  90. package/lib/dialog/Question.d.ts +0 -6
  91. package/lib/dialog/Warning.d.ts +0 -6
  92. package/lib/dialog/base/Content.d.ts +0 -6
  93. package/lib/dialog/base/Footer.d.ts +0 -6
  94. package/lib/dialog/base/Header.d.ts +0 -6
  95. package/lib/dialog/base/index.d.ts +0 -6
  96. package/lib/dialog/form/index.d.ts +0 -6
  97. package/lib/dialog/index.d.ts +0 -10
  98. package/lib/dialog/types.d.ts +0 -68
  99. package/lib/dialog/types.js +0 -5
  100. package/lib/drawer/Content.d.ts +0 -7
  101. package/lib/drawer/Drawer.d.ts +0 -7
  102. package/lib/drawer/Header.d.ts +0 -7
  103. package/lib/drawer/helpers.d.ts +0 -7
  104. package/lib/drawer/index.d.ts +0 -9
  105. package/lib/drawer/types.d.ts +0 -34
  106. package/lib/drawer/types.js +0 -5
  107. package/lib/dropdown/Popup.d.ts +0 -6
  108. package/lib/dropdown/helper.d.ts +0 -4
  109. package/lib/dropdown/types.d.ts +0 -43
  110. package/lib/dropdown/types.js +0 -5
  111. package/lib/dropdown/withDropdown.d.ts +0 -10
  112. package/lib/fieldset/index.d.ts +0 -8
  113. package/lib/fieldset/types.d.ts +0 -28
  114. package/lib/fieldset/types.js +0 -5
  115. package/lib/form/Field.d.ts +0 -6
  116. package/lib/form/FieldArray.d.ts +0 -6
  117. package/lib/form/FieldNumber.d.ts +0 -6
  118. package/lib/form/FieldPeriod.d.ts +0 -6
  119. package/lib/form/helpers.d.ts +0 -11
  120. package/lib/form/index.d.ts +0 -9
  121. package/lib/form/types.d.ts +0 -168
  122. package/lib/form/types.js +0 -5
  123. package/lib/form/withFieldHOC.d.ts +0 -6
  124. package/lib/form/withFormSecurity.d.ts +0 -7
  125. package/lib/gridlayout/GridCol.d.ts +0 -6
  126. package/lib/gridlayout/GridRow.d.ts +0 -6
  127. package/lib/gridlayout/index.d.ts +0 -5
  128. package/lib/gridlayout/types.d.ts +0 -20
  129. package/lib/gridlayout/types.js +0 -5
  130. package/lib/icons/helper.d.ts +0 -560
  131. package/lib/icons/index.d.ts +0 -8
  132. package/lib/icons/types.d.ts +0 -28
  133. package/lib/icons/types.js +0 -5
  134. package/lib/index.d.ts +0 -35
  135. package/lib/inputs/base/InputTextBase.d.ts +0 -8
  136. package/lib/inputs/base/helpers.d.ts +0 -14
  137. package/lib/inputs/base/types.d.ts +0 -68
  138. package/lib/inputs/base/types.js +0 -5
  139. package/lib/inputs/color/index.d.ts +0 -7
  140. package/lib/inputs/color/types.d.ts +0 -14
  141. package/lib/inputs/color/types.js +0 -5
  142. package/lib/inputs/date/Dialog.d.ts +0 -10
  143. package/lib/inputs/date/Dropdown.d.ts +0 -10
  144. package/lib/inputs/date/helpers.d.ts +0 -14
  145. package/lib/inputs/date/index.d.ts +0 -10
  146. package/lib/inputs/date/types.d.ts +0 -53
  147. package/lib/inputs/date/types.js +0 -5
  148. package/lib/inputs/inputHOC.d.ts +0 -11
  149. package/lib/inputs/mask/BaseMask.d.ts +0 -12
  150. package/lib/inputs/mask/Cnpj.d.ts +0 -12
  151. package/lib/inputs/mask/Cpf.d.ts +0 -12
  152. package/lib/inputs/mask/Phone.d.ts +0 -9
  153. package/lib/inputs/mask/ZipCode.d.ts +0 -9
  154. package/lib/inputs/mask/helpers.d.ts +0 -14
  155. package/lib/inputs/mask/imaskHOC.d.ts +0 -14
  156. package/lib/inputs/mask/index.d.ts +0 -11
  157. package/lib/inputs/mask/types.d.ts +0 -66
  158. package/lib/inputs/mask/types.js +0 -5
  159. package/lib/inputs/multiSelect/ActionButtons.d.ts +0 -10
  160. package/lib/inputs/multiSelect/Dropdown.d.ts +0 -10
  161. package/lib/inputs/multiSelect/helper.d.ts +0 -9
  162. package/lib/inputs/multiSelect/index.d.ts +0 -10
  163. package/lib/inputs/multiSelect/types.d.ts +0 -49
  164. package/lib/inputs/multiSelect/types.js +0 -5
  165. package/lib/inputs/number/BaseNumber.d.ts +0 -12
  166. package/lib/inputs/number/Currency.d.ts +0 -12
  167. package/lib/inputs/number/Decimal.d.ts +0 -12
  168. package/lib/inputs/number/format_number.d.ts +0 -4
  169. package/lib/inputs/number/index.d.ts +0 -14
  170. package/lib/inputs/number/types.d.ts +0 -30
  171. package/lib/inputs/number/types.js +0 -5
  172. package/lib/inputs/period/Dialog.d.ts +0 -11
  173. package/lib/inputs/period/Dropdown.d.ts +0 -11
  174. package/lib/inputs/period/PeriodList.d.ts +0 -11
  175. package/lib/inputs/period/helper.d.ts +0 -19
  176. package/lib/inputs/period/index.d.ts +0 -11
  177. package/lib/inputs/period/types.d.ts +0 -58
  178. package/lib/inputs/period/types.js +0 -5
  179. package/lib/inputs/search/index.d.ts +0 -11
  180. package/lib/inputs/select/ActionButtons.d.ts +0 -11
  181. package/lib/inputs/select/Dropdown.d.ts +0 -11
  182. package/lib/inputs/select/helper.d.ts +0 -25
  183. package/lib/inputs/select/index.d.ts +0 -10
  184. package/lib/inputs/select/multiple/Selecteds.d.ts +0 -10
  185. package/lib/inputs/select/multiple/index.d.ts +0 -10
  186. package/lib/inputs/select/simple/index.d.ts +0 -10
  187. package/lib/inputs/select/types.d.ts +0 -98
  188. package/lib/inputs/select/types.js +0 -5
  189. package/lib/inputs/text/index.d.ts +0 -11
  190. package/lib/inputs/text/types.d.ts +0 -25
  191. package/lib/inputs/text/types.js +0 -5
  192. package/lib/inputs/textarea/index.d.ts +0 -9
  193. package/lib/inputs/textarea/types.d.ts +0 -13
  194. package/lib/inputs/textarea/types.js +0 -5
  195. package/lib/inputs/types.d.ts +0 -146
  196. package/lib/inputs/types.js +0 -5
  197. package/lib/internals/colorStyles.d.ts +0 -9
  198. package/lib/internals/constants.d.ts +0 -11
  199. package/lib/internals/types.d.ts +0 -21
  200. package/lib/internals/types.js +0 -5
  201. package/lib/internals/withTooltip.d.ts +0 -11
  202. package/lib/labelMessages/index.d.ts +0 -7
  203. package/lib/labelMessages/types.d.ts +0 -18
  204. package/lib/labelMessages/types.js +0 -5
  205. package/lib/labels/DangerLabel.d.ts +0 -9
  206. package/lib/labels/DefaultLabel.d.ts +0 -12
  207. package/lib/labels/InfoLabel.d.ts +0 -9
  208. package/lib/labels/PrimaryLabel.d.ts +0 -9
  209. package/lib/labels/SuccessLabel.d.ts +0 -9
  210. package/lib/labels/WarningLabel.d.ts +0 -9
  211. package/lib/labels/index.d.ts +0 -13
  212. package/lib/labels/label_container/index.d.ts +0 -12
  213. package/lib/labels/types.d.ts +0 -24
  214. package/lib/labels/types.js +0 -5
  215. package/lib/list/Header.d.ts +0 -7
  216. package/lib/list/Item.d.ts +0 -7
  217. package/lib/list/Separator.d.ts +0 -3
  218. package/lib/list/helpers.d.ts +0 -12
  219. package/lib/list/index.d.ts +0 -10
  220. package/lib/list/types.d.ts +0 -64
  221. package/lib/list/types.js +0 -5
  222. package/lib/menus/float/MenuItem.d.ts +0 -7
  223. package/lib/menus/float/helpers.d.ts +0 -7
  224. package/lib/menus/float/index.d.ts +0 -8
  225. package/lib/menus/float/types.d.ts +0 -27
  226. package/lib/menus/float/types.js +0 -5
  227. package/lib/menus/index.d.ts +0 -6
  228. package/lib/menus/sidenav/ExpandMenu.d.ts +0 -10
  229. package/lib/menus/sidenav/MenuLink.d.ts +0 -13
  230. package/lib/menus/sidenav/NavMenuGroup.d.ts +0 -10
  231. package/lib/menus/sidenav/NavMenuItem.d.ts +0 -13
  232. package/lib/menus/sidenav/NavSubMenuItem.d.ts +0 -10
  233. package/lib/menus/sidenav/helpers.d.ts +0 -12
  234. package/lib/menus/sidenav/index.d.ts +0 -14
  235. package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +0 -10
  236. package/lib/menus/sidenav/popup_menu_search/index.d.ts +0 -10
  237. package/lib/menus/sidenav/types.d.ts +0 -82
  238. package/lib/menus/sidenav/types.js +0 -5
  239. package/lib/noPermission/index.d.ts +0 -3
  240. package/lib/panel/Content.d.ts +0 -8
  241. package/lib/panel/DangerPanel.d.ts +0 -8
  242. package/lib/panel/Default.d.ts +0 -8
  243. package/lib/panel/Header.d.ts +0 -8
  244. package/lib/panel/InfoPanel.d.ts +0 -8
  245. package/lib/panel/PrimaryPanel.d.ts +0 -8
  246. package/lib/panel/SuccessPanel.d.ts +0 -8
  247. package/lib/panel/ToolBar.d.ts +0 -8
  248. package/lib/panel/WarningPanel.d.ts +0 -8
  249. package/lib/panel/helpers.d.ts +0 -4
  250. package/lib/panel/index.d.ts +0 -13
  251. package/lib/panel/types.d.ts +0 -4
  252. package/lib/panel/types.js +0 -5
  253. package/lib/permissionValidations.d.ts +0 -14
  254. package/lib/popover/PopoverText.d.ts +0 -8
  255. package/lib/popover/PopoverTitle.d.ts +0 -8
  256. package/lib/popover/index.d.ts +0 -13
  257. package/lib/popover/types.d.ts +0 -21
  258. package/lib/popover/types.js +0 -5
  259. package/lib/progress/Bar.d.ts +0 -6
  260. package/lib/progress/index.d.ts +0 -7
  261. package/lib/progress/types.d.ts +0 -37
  262. package/lib/progress/types.js +0 -5
  263. package/lib/radio/index.d.ts +0 -12
  264. package/lib/radio/types.d.ts +0 -18
  265. package/lib/radio/types.js +0 -5
  266. package/lib/skeleton/SkeletonContainer.d.ts +0 -7
  267. package/lib/skeleton/index.d.ts +0 -8
  268. package/lib/skeleton/types.d.ts +0 -21
  269. package/lib/skeleton/types.js +0 -5
  270. package/lib/spinner/SpinnerLoading.d.ts +0 -7
  271. package/lib/spinner/index.d.ts +0 -7
  272. package/lib/spinner/types.d.ts +0 -20
  273. package/lib/spinner/types.js +0 -5
  274. package/lib/split/Split.d.ts +0 -6
  275. package/lib/split/SplitSide.d.ts +0 -6
  276. package/lib/split/helpers.d.ts +0 -10
  277. package/lib/split/index.d.ts +0 -5
  278. package/lib/split/types.d.ts +0 -34
  279. package/lib/split/types.js +0 -5
  280. package/lib/table/Body.d.ts +0 -6
  281. package/lib/table/Header.d.ts +0 -6
  282. package/lib/table/HeaderColumn.d.ts +0 -6
  283. package/lib/table/Row.d.ts +0 -6
  284. package/lib/table/RowColumn.d.ts +0 -6
  285. package/lib/table/helpers.d.ts +0 -8
  286. package/lib/table/index.d.ts +0 -11
  287. package/lib/table/types.d.ts +0 -84
  288. package/lib/table/types.js +0 -5
  289. package/lib/tabs/DropdownItems.d.ts +0 -9
  290. package/lib/tabs/Menu.d.ts +0 -9
  291. package/lib/tabs/MenuItems.d.ts +0 -9
  292. package/lib/tabs/Panel.d.ts +0 -9
  293. package/lib/tabs/index.d.ts +0 -10
  294. package/lib/tabs/tabHelpers.d.ts +0 -21
  295. package/lib/tabs/types.d.ts +0 -63
  296. package/lib/tabs/types.js +0 -5
  297. package/lib/toolbar/ButtonBar.d.ts +0 -10
  298. package/lib/toolbar/LabelBar.d.ts +0 -10
  299. package/lib/toolbar/Separator.d.ts +0 -3
  300. package/lib/toolbar/ToolBarGroup.d.ts +0 -10
  301. package/lib/toolbar/helpers.d.ts +0 -10
  302. package/lib/toolbar/index.d.ts +0 -14
  303. package/lib/toolbar/types.d.ts +0 -43
  304. package/lib/toolbar/types.js +0 -5
  305. package/lib/tooltip/index.d.ts +0 -6
  306. package/lib/tooltip/types.d.ts +0 -16
  307. package/lib/tooltip/types.js +0 -5
  308. package/lib/treeview/Header.d.ts +0 -7
  309. package/lib/treeview/Node.d.ts +0 -7
  310. package/lib/treeview/constants.d.ts +0 -7
  311. package/lib/treeview/index.d.ts +0 -9
  312. package/lib/treeview/types.d.ts +0 -104
  313. package/lib/treeview/types.js +0 -5
  314. package/lib/types-3c6f1c20.d.ts +0 -46
  315. package/lib/uitour/helpers.d.ts +0 -8
  316. package/lib/uitour/index.d.ts +0 -6
  317. package/lib/uitour/types.d.ts +0 -30
  318. package/lib/uitour/types.js +0 -5
@@ -76,7 +76,7 @@ var withDropdown = function withDropdown(WrappedComponent) {
76
76
  var onClickOutside = function onClickOutside(event) {
77
77
  var target = event.target;
78
78
 
79
- if (popupRef.current && target !== popupRef.current && !popupRef.current.contains(target) && wrappedComponentRef.current !== target) {
79
+ if (popupRef.current && target !== popupRef.current && !event.path.includes(popupRef.current) && wrappedComponentRef.current !== target) {
80
80
  setOpened(false);
81
81
  }
82
82
  };
@@ -78,7 +78,7 @@ var SubMenuContainer = function SubMenuContainer(_ref) {
78
78
  };
79
79
 
80
80
  SubMenuContainer.propTypes = {
81
- children: _propTypes.default.element.isRequired,
81
+ children: _propTypes.default.node.isRequired,
82
82
  handlerGoBack: _propTypes.default.func.isRequired,
83
83
  title: _propTypes.default.string,
84
84
  customClass: _propTypes.default.string,
@@ -88,7 +88,7 @@ SubMenuContainer.propTypes = {
88
88
  SubMenuContainer.defaultProps = {
89
89
  title: undefined,
90
90
  customClass: undefined,
91
- skeletonize: true,
91
+ skeletonize: false,
92
92
  skeletonQtty: 3
93
93
  };
94
94
  var _default = SubMenuContainer;
@@ -83,7 +83,7 @@ var FloatMenu = function FloatMenu(props) {
83
83
 
84
84
  FloatMenu.propTypes = {
85
85
  customClass: _propTypes.default.string,
86
- children: _propTypes.default.arrayOf(_propTypes.default.element).isRequired,
86
+ children: _propTypes.default.node.isRequired,
87
87
  iconSize: _propTypes.default.number,
88
88
  iconColor: _propTypes.default.string,
89
89
  customClassMenuItem: _propTypes.default.string,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linear-react-components-ui",
3
- "version": "0.4.77-beta.28",
3
+ "version": "0.4.77-beta.29",
4
4
  "description": "Linear Sistemas ReactJs Components",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -1,3 +0,0 @@
1
- declare type Align = 'left' | 'right' | 'center' | 'top' | 'bottom' | 'none';
2
-
3
- export { Align };
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,3 +0,0 @@
1
- declare type ButtonTypes = 'default' | 'primary' | 'danger' | 'info' | 'success' | 'warning' | 'add' | 'cancel' | 'destroy' | 'edit' | 'save' | 'activate' | 'inactivate' | 'restore';
2
-
3
- export { ButtonTypes };
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,3 +0,0 @@
1
- declare type ColorStyles = 'primary' | 'success' | 'danger' | 'info' | 'warning';
2
-
3
- export { ColorStyles };
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,3 +0,0 @@
1
- declare type DataCombo = any;
2
-
3
- export { DataCombo };
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,5 +0,0 @@
1
- import _default from '../icons/helper.js';
2
-
3
- declare type IconNames = keyof typeof _default;
4
-
5
- export { IconNames };
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,3 +0,0 @@
1
- declare type LabelStyles = 'info' | 'warning' | 'success' | 'default' | 'danger';
2
-
3
- export { LabelStyles };
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,6 +0,0 @@
1
- declare type Period = {
2
- initial?: string;
3
- final?: string;
4
- };
5
-
6
- export { Period };
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,14 +0,0 @@
1
- declare type PermissionAttr = {
2
- module?: string;
3
- feature?: string;
4
- operation?: string;
5
- onDenied?: string;
6
- };
7
- declare type OnDenied = {
8
- disabled?: boolean;
9
- unvisible?: boolean;
10
- readOnly?: boolean;
11
- hideContent?: boolean;
12
- };
13
-
14
- export { OnDenied, PermissionAttr };
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,3 +0,0 @@
1
- declare type PointerEvents = 'none' | 'all' | 'fill' | 'painted' | 'stroke' | 'visible' | 'visibleFill' | 'visiblePainted' | 'visibleStroke' | 'inherit' | 'initial' | 'unset';
2
-
3
- export { PointerEvents };
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,3 +0,0 @@
1
- declare type Position = 'left' | 'right' | 'center' | 'top' | 'bottom';
2
-
3
- export { Position };
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,3 +0,0 @@
1
- declare type PositionAlert = 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom' | 'centerTop' | 'centerBottom';
2
-
3
- export { PositionAlert };
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,3 +0,0 @@
1
- declare type Size = 'mini' | 'small' | 'medium' | 'large' | 'default';
2
-
3
- export { Size };
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,3 +0,0 @@
1
- declare type SizePixels = 10 | 16 | 18 | 22 | 24 | 32 | 40 | 64 | 128 | 200;
2
-
3
- export { SizePixels };
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,5 +0,0 @@
1
- interface ISessionStorageMock {
2
- [key: string]: string;
3
- }
4
-
5
- export { ISessionStorageMock };
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,16 +0,0 @@
1
- import { IMessageProps, DefaultMessageConfigType } from './types.js';
2
- import 'react';
3
- import '../@types/PositionAlert.js';
4
-
5
- declare class AlertContainer {
6
- pushAlert: (params: IMessageProps) => void;
7
- constructor(pushAlert: (params: IMessageProps) => void);
8
- default(messageConfig: DefaultMessageConfigType): void;
9
- info: (message: string, options: IMessageProps) => void;
10
- danger: (message: string, options: IMessageProps) => void;
11
- warning: (message: string, options: IMessageProps) => void;
12
- success: (message: string, options: IMessageProps) => void;
13
- custom: (message: string, options: IMessageProps) => void;
14
- }
15
-
16
- export { AlertContainer as default };
@@ -1,7 +0,0 @@
1
- import { IAlertProviderProps } from './types.js';
2
- import 'react';
3
- import '../@types/PositionAlert.js';
4
-
5
- declare const AlertProvider: (props: IAlertProviderProps) => JSX.Element;
6
-
7
- export { AlertProvider as default };
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { IBaseAlertProps } from './types.js';
3
- import '../@types/PositionAlert.js';
4
-
5
- declare const BaseAlert: ({ children }: IBaseAlertProps) => React.ReactPortal;
6
-
7
- export { BaseAlert as default };
@@ -1,7 +0,0 @@
1
- import { IMessageProps } from './types.js';
2
- import 'react';
3
- import '../@types/PositionAlert.js';
4
-
5
- declare const Message: ({ handleClose, message, id, color, icon, iconName, timeout, customClass, closeButton, className, position, }: IMessageProps) => JSX.Element;
6
-
7
- export { Message as default };
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { WithAlertContextProps } from './types.js';
3
- import '../@types/PositionAlert.js';
4
-
5
- declare const AlertProviderContext: React.Context<WithAlertContextProps>;
6
-
7
- export { AlertProviderContext as default };
@@ -1,6 +0,0 @@
1
- import withAlert from './withAlert.js';
2
- export { default } from './withAlert.js';
3
- export { default as AlertProvider } from './AlertProvider.js';
4
- import 'react';
5
- import './types.js';
6
- import '../@types/PositionAlert.js';
@@ -1,48 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { PositionAlert } from '../@types/PositionAlert.js';
3
-
4
- declare type AlertContainerMethods = {
5
- default: (messageConfig: DefaultMessageConfigType) => void;
6
- info: (message: string, options: IMessageProps) => void;
7
- custom: (message: string, options: IMessageProps) => void;
8
- danger: (message: string, options: IMessageProps) => void;
9
- warning: (message: string, options: IMessageProps) => void;
10
- success: (message: string, options: IMessageProps) => void;
11
- };
12
- declare type DefaultMessageConfigType = {
13
- message: string;
14
- options: IMessageProps & {
15
- type: 'info' | 'warning' | 'danger' | 'success';
16
- };
17
- };
18
- interface IMessageProps {
19
- id?: number;
20
- position?: PositionAlert;
21
- message?: string;
22
- handleClose?: (id: number, position: string) => void;
23
- className?: string;
24
- closeButton?: boolean;
25
- color?: string;
26
- customClass?: string;
27
- icon?: ReactNode | null;
28
- iconName?: string;
29
- timeout?: number;
30
- }
31
- interface IBaseAlertProps {
32
- children: ReactNode;
33
- }
34
- interface IAlertProviderProps {
35
- children: ReactNode;
36
- }
37
- interface WithAlertContextProps {
38
- alert?: AlertContainerMethods;
39
- }
40
- declare type GetClassParams = {
41
- customClass?: string;
42
- className?: string;
43
- };
44
- declare type MessagesState = {
45
- [key: string]: Array<IMessageProps>;
46
- };
47
-
48
- export { AlertContainerMethods, DefaultMessageConfigType, GetClassParams, IAlertProviderProps, IBaseAlertProps, IMessageProps, MessagesState, WithAlertContextProps };
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,7 +0,0 @@
1
- import React__default from 'react';
2
- import { WithAlertContextProps } from './types.js';
3
- import '../@types/PositionAlert.js';
4
-
5
- declare const withAlert: <ComponentProps extends WithAlertContextProps>(WrapperComponent: React__default.ComponentType<ComponentProps>) => (props: ComponentProps) => JSX.Element;
6
-
7
- export { withAlert as default };
@@ -1,12 +0,0 @@
1
- import { IAvatarProps } from './types.js';
2
- import 'react';
3
- import '../@types/Icon.js';
4
- import '../icons/helper.js';
5
- import '../@types/Size.js';
6
-
7
- declare const _default: {
8
- (props: IAvatarProps): JSX.Element;
9
- displayName: string;
10
- };
11
-
12
- export { _default as default };
@@ -1,31 +0,0 @@
1
- import { MouseEvent, ReactElement, ReactNode, CSSProperties } from 'react';
2
- import { IconNames } from '../@types/Icon.js';
3
- import { Size } from '../@types/Size.js';
4
- import '../icons/helper.js';
5
-
6
- interface IAvatarProps {
7
- onClick?: (event: MouseEvent) => void;
8
- size?: Size;
9
- width?: string;
10
- height?: string;
11
- color?: string;
12
- iconName?: IconNames;
13
- icon?: ReactElement;
14
- src?: string;
15
- srcAlt?: string;
16
- children?: ReactNode;
17
- square?: boolean;
18
- customClass?: string;
19
- className?: string;
20
- targetRef?: (ref: HTMLDivElement | null) => void;
21
- dropdown?: boolean;
22
- dropdownOnHover?: boolean;
23
- showDropdown?: () => void;
24
- getDropdownPopup?: (ref: HTMLDivElement | null) => ReactNode;
25
- label?: string;
26
- style?: CSSProperties;
27
- id?: string;
28
- disabled?: boolean;
29
- }
30
-
31
- export { IAvatarProps };
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,6 +0,0 @@
1
- import { IBadgeProps } from './types.js';
2
- import 'react';
3
-
4
- declare const Badge: (props: IBadgeProps) => JSX.Element;
5
-
6
- export { Badge as default };
@@ -1,13 +0,0 @@
1
- import { ReactNode } from 'react';
2
-
3
- interface IBadgeProps {
4
- color?: 'default' | 'primary' | 'danger' | 'warning' | 'success' | 'info';
5
- top?: string;
6
- right?: string;
7
- children: ReactNode;
8
- customClass?: string;
9
- customClassForBadge?: string;
10
- content?: ReactNode;
11
- }
12
-
13
- export { IBadgeProps };
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,9 +0,0 @@
1
- import { IButtonProps } from './types.js';
2
- import 'react';
3
- import '../@types/PermissionAttr.js';
4
- import '../@types/Position.js';
5
- import '../@types/Size.js';
6
-
7
- declare const ActivateButton: (props: IButtonProps) => JSX.Element;
8
-
9
- export { ActivateButton as default };
@@ -1,9 +0,0 @@
1
- import { IButtonProps } from './types.js';
2
- import 'react';
3
- import '../@types/PermissionAttr.js';
4
- import '../@types/Position.js';
5
- import '../@types/Size.js';
6
-
7
- declare const AddButton: (props: IButtonProps) => JSX.Element;
8
-
9
- export { AddButton as default };
@@ -1,12 +0,0 @@
1
- import { IButtonProps } from './types.js';
2
- import 'react';
3
- import '../@types/PermissionAttr.js';
4
- import '../@types/Position.js';
5
- import '../@types/Size.js';
6
-
7
- interface ButtonProps extends IButtonProps {
8
- split?: boolean;
9
- }
10
- declare const Button: ({ split, ...rest }: ButtonProps) => JSX.Element;
11
-
12
- export { Button as default };
@@ -1,8 +0,0 @@
1
- import { ReactNode } from 'react';
2
-
3
- interface ButtonsGroupProps {
4
- children: ReactNode;
5
- }
6
- declare const ButtonsGroup: ({ children }: ButtonsGroupProps) => JSX.Element;
7
-
8
- export { ButtonsGroup as default };
@@ -1,9 +0,0 @@
1
- import { IButtonProps } from './types.js';
2
- import 'react';
3
- import '../@types/PermissionAttr.js';
4
- import '../@types/Position.js';
5
- import '../@types/Size.js';
6
-
7
- declare const CancelButton: ({ customClass, ...rest }: IButtonProps) => JSX.Element;
8
-
9
- export { CancelButton as default };
@@ -1,9 +0,0 @@
1
- import { IButtonProps } from './types.js';
2
- import 'react';
3
- import '../@types/PermissionAttr.js';
4
- import '../@types/Position.js';
5
- import '../@types/Size.js';
6
-
7
- declare const DangerButton: ({ customClass, ...rest }: IButtonProps) => JSX.Element;
8
-
9
- export { DangerButton as default };
@@ -1,12 +0,0 @@
1
- import { IButtonProps } from './types.js';
2
- import 'react';
3
- import '../@types/PermissionAttr.js';
4
- import '../@types/Position.js';
5
- import '../@types/Size.js';
6
-
7
- declare const _default: {
8
- (props: Omit<IButtonProps, "split">): JSX.Element;
9
- displayName: string;
10
- };
11
-
12
- export { _default as default };
@@ -1,9 +0,0 @@
1
- import { IButtonProps } from './types.js';
2
- import 'react';
3
- import '../@types/PermissionAttr.js';
4
- import '../@types/Position.js';
5
- import '../@types/Size.js';
6
-
7
- declare const DestroyButton: ({ icon, ...rest }: IButtonProps) => JSX.Element;
8
-
9
- export { DestroyButton as default };
@@ -1,9 +0,0 @@
1
- import { IButtonProps } from './types.js';
2
- import 'react';
3
- import '../@types/PermissionAttr.js';
4
- import '../@types/Position.js';
5
- import '../@types/Size.js';
6
-
7
- declare const EditButton: (props: IButtonProps) => JSX.Element;
8
-
9
- export { EditButton as default };
@@ -1,9 +0,0 @@
1
- import { IButtonProps } from './types.js';
2
- import 'react';
3
- import '../@types/PermissionAttr.js';
4
- import '../@types/Position.js';
5
- import '../@types/Size.js';
6
-
7
- declare const InactivateButton: (props: IButtonProps) => JSX.Element;
8
-
9
- export { InactivateButton as default };
@@ -1,9 +0,0 @@
1
- import { IButtonProps } from './types.js';
2
- import 'react';
3
- import '../@types/PermissionAttr.js';
4
- import '../@types/Position.js';
5
- import '../@types/Size.js';
6
-
7
- declare const InfoButton: ({ customClass, ...rest }: IButtonProps) => JSX.Element;
8
-
9
- export { InfoButton as default };
@@ -1,9 +0,0 @@
1
- import { IButtonProps } from './types.js';
2
- import 'react';
3
- import '../@types/PermissionAttr.js';
4
- import '../@types/Position.js';
5
- import '../@types/Size.js';
6
-
7
- declare const PrimaryButton: ({ customClass, ...rest }: IButtonProps) => JSX.Element;
8
-
9
- export { PrimaryButton as default };
@@ -1,9 +0,0 @@
1
- import { IButtonProps } from './types.js';
2
- import 'react';
3
- import '../@types/PermissionAttr.js';
4
- import '../@types/Position.js';
5
- import '../@types/Size.js';
6
-
7
- declare const RestoreButton: (props: IButtonProps) => JSX.Element;
8
-
9
- export { RestoreButton as default };
@@ -1,9 +0,0 @@
1
- import { IButtonProps } from './types.js';
2
- import 'react';
3
- import '../@types/PermissionAttr.js';
4
- import '../@types/Position.js';
5
- import '../@types/Size.js';
6
-
7
- declare const SaveButton: ({ customClass, ...rest }: IButtonProps) => JSX.Element;
8
-
9
- export { SaveButton as default };
@@ -1,9 +0,0 @@
1
- import { IButtonProps } from './types.js';
2
- import 'react';
3
- import '../@types/PermissionAttr.js';
4
- import '../@types/Position.js';
5
- import '../@types/Size.js';
6
-
7
- declare const SuccessButton: ({ customClass, ...rest }: IButtonProps) => JSX.Element;
8
-
9
- export { SuccessButton as default };
@@ -1,9 +0,0 @@
1
- import { IButtonProps } from './types.js';
2
- import 'react';
3
- import '../@types/PermissionAttr.js';
4
- import '../@types/Position.js';
5
- import '../@types/Size.js';
6
-
7
- declare const WarningButton: ({ customClass, ...rest }: IButtonProps) => JSX.Element;
8
-
9
- export { WarningButton as default };
@@ -1,12 +0,0 @@
1
- import { ReactNode, CSSProperties } from 'react';
2
- import { Position } from '../../@types/Position.js';
3
-
4
- interface IButtonContainerProps {
5
- children: ReactNode;
6
- style?: CSSProperties;
7
- customClass?: string;
8
- position?: Extract<Position, 'left' | 'right'>;
9
- }
10
- declare const ButtonContainer: ({ style, customClass, position, children, }: IButtonContainerProps) => JSX.Element;
11
-
12
- export { ButtonContainer as default };