linear-react-components-ui 0.4.77-beta.25 → 0.4.77-beta.27

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 (365) hide show
  1. package/.eslintrc.json +2 -0
  2. package/.vscode/settings.json +2 -2
  3. package/babel.config.json +11 -0
  4. package/lib/@types/Align.d.ts +3 -0
  5. package/lib/@types/ButtonTypes.d.ts +3 -0
  6. package/lib/@types/ColorStyles.d.ts +3 -0
  7. package/lib/@types/DataCombo.d.ts +3 -0
  8. package/lib/@types/Icon.d.ts +5 -0
  9. package/lib/@types/LabelStyles.d.ts +3 -0
  10. package/lib/@types/Period.d.ts +6 -0
  11. package/lib/@types/PermissionAttr.d.ts +14 -0
  12. package/lib/@types/PointerEvents.d.ts +3 -0
  13. package/lib/@types/Position.d.ts +3 -0
  14. package/lib/@types/PositionAlert.d.ts +3 -0
  15. package/lib/@types/Size.d.ts +3 -0
  16. package/lib/@types/SizePixels.d.ts +3 -0
  17. package/lib/@types/StorageMock.d.ts +5 -0
  18. package/lib/alerts/AlertContainer.d.ts +16 -0
  19. package/lib/alerts/AlertProvider.d.ts +7 -0
  20. package/lib/alerts/AlertProvider.js +1 -1
  21. package/lib/alerts/BaseAlert.d.ts +7 -0
  22. package/lib/alerts/Message.d.ts +7 -0
  23. package/lib/alerts/helpers.d.ts +7 -0
  24. package/lib/alerts/index.d.ts +6 -0
  25. package/lib/alerts/types.d.ts +48 -0
  26. package/lib/alerts/withAlert.d.ts +7 -0
  27. package/lib/alerts/withAlert.js +5 -3
  28. package/lib/avatar/index.d.ts +12 -0
  29. package/lib/avatar/types.d.ts +31 -0
  30. package/lib/badge/index.d.ts +6 -0
  31. package/lib/badge/types.d.ts +13 -0
  32. package/lib/buttons/ActivateButton.d.ts +9 -0
  33. package/lib/buttons/AddButton.d.ts +9 -0
  34. package/lib/buttons/Button.d.ts +12 -0
  35. package/lib/buttons/ButtonGroups.d.ts +8 -0
  36. package/lib/buttons/CancelButton.d.ts +9 -0
  37. package/lib/buttons/DangerButton.d.ts +9 -0
  38. package/lib/buttons/DefaultButton.d.ts +12 -0
  39. package/lib/buttons/DefaultButton.js +5 -3
  40. package/lib/buttons/DestroyButton.d.ts +9 -0
  41. package/lib/buttons/EditButton.d.ts +9 -0
  42. package/lib/buttons/InactivateButton.d.ts +9 -0
  43. package/lib/buttons/InfoButton.d.ts +9 -0
  44. package/lib/buttons/PrimaryButton.d.ts +9 -0
  45. package/lib/buttons/RestoreButton.d.ts +9 -0
  46. package/lib/buttons/SaveButton.d.ts +9 -0
  47. package/lib/buttons/SuccessButton.d.ts +9 -0
  48. package/lib/buttons/WarningButton.d.ts +9 -0
  49. package/lib/buttons/button_container/index.d.ts +12 -0
  50. package/lib/buttons/index.d.ts +21 -0
  51. package/lib/buttons/split_button/index.d.ts +9 -0
  52. package/lib/buttons/split_button/index.js +22 -2
  53. package/lib/buttons/types.d.ts +44 -0
  54. package/lib/calendar/DangerCalendar.d.ts +7 -0
  55. package/lib/calendar/InfoCalendar.d.ts +7 -0
  56. package/lib/calendar/PrimaryCalendar.d.ts +7 -0
  57. package/lib/calendar/SuccessCalendar.d.ts +7 -0
  58. package/lib/calendar/WarningCalendar.d.ts +7 -0
  59. package/lib/calendar/base/Day.d.ts +7 -0
  60. package/lib/calendar/base/Month.d.ts +7 -0
  61. package/lib/calendar/base/Week.d.ts +7 -0
  62. package/lib/calendar/base/helpers.d.ts +62 -0
  63. package/lib/calendar/base/helpers.js +1 -1
  64. package/lib/calendar/base/index.d.ts +7 -0
  65. package/lib/calendar/index.d.ts +10 -0
  66. package/lib/calendar/types.d.ts +25 -0
  67. package/lib/checkbox/Label.d.ts +11 -0
  68. package/lib/checkbox/index.d.ts +13 -0
  69. package/lib/checkbox/index.js +1 -1
  70. package/lib/checkbox/types.d.ts +42 -0
  71. package/lib/dialog/Alert.d.ts +6 -0
  72. package/lib/dialog/Custom.d.ts +6 -0
  73. package/lib/dialog/Custom.js +4 -4
  74. package/lib/dialog/Error.d.ts +6 -0
  75. package/lib/dialog/Information.d.ts +6 -0
  76. package/lib/dialog/Question.d.ts +6 -0
  77. package/lib/dialog/Warning.d.ts +6 -0
  78. package/lib/dialog/base/Content.d.ts +6 -0
  79. package/lib/dialog/base/Footer.d.ts +6 -0
  80. package/lib/dialog/base/Header.d.ts +6 -0
  81. package/lib/dialog/base/index.d.ts +6 -0
  82. package/lib/dialog/form/index.d.ts +6 -0
  83. package/lib/dialog/index.d.ts +10 -0
  84. package/lib/dialog/types.d.ts +68 -0
  85. package/lib/drawer/Content.d.ts +7 -0
  86. package/lib/drawer/Drawer.d.ts +7 -0
  87. package/lib/drawer/Drawer.js +1 -1
  88. package/lib/drawer/Header.d.ts +7 -0
  89. package/lib/drawer/helpers.d.ts +7 -0
  90. package/lib/drawer/index.d.ts +9 -0
  91. package/lib/drawer/types.d.ts +34 -0
  92. package/lib/dropdown/Popup.d.ts +6 -0
  93. package/lib/dropdown/Popup.js +4 -2
  94. package/lib/dropdown/helper.d.ts +4 -0
  95. package/lib/dropdown/types.d.ts +43 -0
  96. package/lib/dropdown/withDropdown.d.ts +10 -0
  97. package/lib/dropdown/withDropdown.js +3 -1
  98. package/lib/fieldset/index.d.ts +8 -0
  99. package/lib/fieldset/index.js +1 -1
  100. package/lib/fieldset/types.d.ts +28 -0
  101. package/lib/form/Field.d.ts +6 -0
  102. package/lib/form/Field.js +11 -38
  103. package/lib/form/FieldArray.d.ts +6 -0
  104. package/lib/form/FieldArray.js +18 -48
  105. package/lib/form/FieldNumber.d.ts +6 -0
  106. package/lib/form/FieldNumber.js +2 -26
  107. package/lib/form/FieldPeriod.d.ts +6 -0
  108. package/lib/form/FieldPeriod.js +18 -40
  109. package/lib/form/helpers.d.ts +11 -0
  110. package/lib/form/helpers.js +10 -16
  111. package/lib/form/index.d.ts +9 -0
  112. package/lib/form/index.js +50 -85
  113. package/lib/form/types.d.ts +168 -0
  114. package/lib/{treetable/types.d.js → form/types.js} +0 -0
  115. package/lib/form/withFieldHOC.d.ts +6 -0
  116. package/lib/form/withFieldHOC.js +38 -118
  117. package/lib/form/withFormSecurity.d.ts +7 -0
  118. package/lib/form/withFormSecurity.js +13 -34
  119. package/lib/gridlayout/GridCol.d.ts +6 -0
  120. package/lib/gridlayout/GridRow.d.ts +6 -0
  121. package/lib/gridlayout/index.d.ts +5 -0
  122. package/lib/gridlayout/types.d.ts +20 -0
  123. package/lib/icons/helper.d.ts +560 -0
  124. package/lib/icons/index.d.ts +8 -0
  125. package/lib/icons/types.d.ts +28 -0
  126. package/lib/index.d.ts +35 -0
  127. package/lib/inputs/base/InputTextBase.d.ts +8 -0
  128. package/lib/inputs/base/InputTextBase.js +2 -2
  129. package/lib/inputs/base/helpers.d.ts +14 -0
  130. package/lib/inputs/base/helpers.js +1 -1
  131. package/lib/inputs/base/types.d.ts +68 -0
  132. package/lib/inputs/color/index.d.ts +7 -0
  133. package/lib/inputs/color/types.d.ts +14 -0
  134. package/lib/inputs/date/Dialog.d.ts +10 -0
  135. package/lib/inputs/date/Dropdown.d.ts +10 -0
  136. package/lib/inputs/date/helpers.d.ts +14 -0
  137. package/lib/inputs/date/index.d.ts +10 -0
  138. package/lib/inputs/date/types.d.ts +53 -0
  139. package/lib/inputs/inputHOC.d.ts +11 -0
  140. package/lib/inputs/mask/BaseMask.d.ts +12 -0
  141. package/lib/inputs/mask/Cnpj.d.ts +12 -0
  142. package/lib/inputs/mask/Cnpj.js +3 -1
  143. package/lib/inputs/mask/Cpf.d.ts +12 -0
  144. package/lib/inputs/mask/Cpf.js +5 -2
  145. package/lib/inputs/mask/Phone.d.ts +9 -0
  146. package/lib/inputs/mask/ZipCode.d.ts +9 -0
  147. package/lib/inputs/mask/helpers.d.ts +14 -0
  148. package/lib/inputs/mask/imaskHOC.d.ts +14 -0
  149. package/lib/inputs/mask/imaskHOC.js +9 -10
  150. package/lib/inputs/mask/index.d.ts +11 -0
  151. package/lib/inputs/mask/types.d.ts +66 -0
  152. package/lib/inputs/multiSelect/ActionButtons.d.ts +10 -0
  153. package/lib/inputs/multiSelect/Dropdown.d.ts +10 -0
  154. package/lib/inputs/multiSelect/helper.d.ts +9 -0
  155. package/lib/inputs/multiSelect/index.d.ts +10 -0
  156. package/lib/inputs/multiSelect/index.js +6 -3
  157. package/lib/inputs/multiSelect/types.d.ts +49 -0
  158. package/lib/inputs/number/BaseNumber.d.ts +12 -0
  159. package/lib/inputs/number/BaseNumber.js +1 -1
  160. package/lib/inputs/number/Currency.d.ts +12 -0
  161. package/lib/inputs/number/Decimal.d.ts +12 -0
  162. package/lib/inputs/number/format_number.d.ts +4 -0
  163. package/lib/inputs/number/index.d.ts +14 -0
  164. package/lib/inputs/number/types.d.ts +30 -0
  165. package/lib/inputs/period/Dialog.d.ts +11 -0
  166. package/lib/inputs/period/Dropdown.d.ts +11 -0
  167. package/lib/inputs/period/PeriodList.d.ts +11 -0
  168. package/lib/inputs/period/helper.d.ts +19 -0
  169. package/lib/inputs/period/index.d.ts +11 -0
  170. package/lib/inputs/period/index.js +7 -5
  171. package/lib/inputs/period/types.d.ts +58 -0
  172. package/lib/inputs/search/index.d.ts +11 -0
  173. package/lib/inputs/search/index.js +0 -3
  174. package/lib/inputs/select/ActionButtons.d.ts +11 -0
  175. package/lib/inputs/select/Dropdown.d.ts +11 -0
  176. package/lib/inputs/select/helper.d.ts +25 -0
  177. package/lib/inputs/select/index.d.ts +10 -0
  178. package/lib/inputs/select/index.js +3 -1
  179. package/lib/inputs/select/multiple/Selecteds.d.ts +10 -0
  180. package/lib/inputs/select/multiple/index.d.ts +10 -0
  181. package/lib/inputs/select/simple/index.d.ts +10 -0
  182. package/lib/inputs/select/simple/index.js +19 -1
  183. package/lib/inputs/select/types.d.ts +98 -0
  184. package/lib/inputs/text/index.d.ts +11 -0
  185. package/lib/inputs/text/types.d.ts +25 -0
  186. package/lib/inputs/textarea/index.d.ts +9 -0
  187. package/lib/inputs/textarea/types.d.ts +13 -0
  188. package/lib/inputs/types.d.ts +146 -0
  189. package/lib/internals/colorStyles.d.ts +9 -0
  190. package/lib/internals/constants.d.ts +11 -0
  191. package/lib/internals/types.d.ts +21 -0
  192. package/lib/internals/withTooltip.d.ts +11 -0
  193. package/lib/labelMessages/index.d.ts +7 -0
  194. package/lib/labelMessages/types.d.ts +18 -0
  195. package/lib/labels/DangerLabel.d.ts +9 -0
  196. package/lib/labels/DefaultLabel.d.ts +12 -0
  197. package/lib/labels/DefaultLabel.js +1 -1
  198. package/lib/labels/InfoLabel.d.ts +9 -0
  199. package/lib/labels/PrimaryLabel.d.ts +9 -0
  200. package/lib/labels/SuccessLabel.d.ts +9 -0
  201. package/lib/labels/WarningLabel.d.ts +9 -0
  202. package/lib/labels/index.d.ts +13 -0
  203. package/lib/labels/label_container/index.d.ts +12 -0
  204. package/lib/labels/types.d.ts +24 -0
  205. package/lib/list/Header.d.ts +7 -0
  206. package/lib/list/Item.d.ts +7 -0
  207. package/lib/list/Item.js +8 -6
  208. package/lib/list/Separator.d.ts +3 -0
  209. package/lib/list/helpers.d.ts +12 -0
  210. package/lib/list/helpers.js +8 -3
  211. package/lib/list/index.d.ts +10 -0
  212. package/lib/list/index.js +87 -18
  213. package/lib/list/types.d.ts +64 -0
  214. package/lib/menus/float/MenuItem.d.ts +7 -0
  215. package/lib/menus/float/helpers.d.ts +7 -0
  216. package/lib/menus/float/index.d.ts +8 -0
  217. package/lib/menus/float/types.d.ts +27 -0
  218. package/lib/menus/index.d.ts +6 -0
  219. package/lib/menus/sidenav/ExpandMenu.d.ts +10 -0
  220. package/lib/menus/sidenav/MenuLink.d.ts +13 -0
  221. package/lib/menus/sidenav/NavMenuGroup.d.ts +10 -0
  222. package/lib/menus/sidenav/NavMenuItem.d.ts +13 -0
  223. package/lib/menus/sidenav/NavMenuItem.js +1 -1
  224. package/lib/menus/sidenav/NavSubMenuItem.d.ts +10 -0
  225. package/lib/menus/sidenav/NavSubMenuItem.js +1 -1
  226. package/lib/menus/sidenav/helpers.d.ts +12 -0
  227. package/lib/menus/sidenav/index.d.ts +14 -0
  228. package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +10 -0
  229. package/lib/menus/sidenav/popup_menu_search/index.d.ts +10 -0
  230. package/lib/menus/sidenav/types.d.ts +82 -0
  231. package/lib/noPermission/index.d.ts +3 -0
  232. package/lib/panel/Content.d.ts +8 -0
  233. package/lib/panel/DangerPanel.d.ts +8 -0
  234. package/lib/panel/Default.d.ts +8 -0
  235. package/lib/panel/Default.js +1 -1
  236. package/lib/panel/Header.d.ts +8 -0
  237. package/lib/panel/InfoPanel.d.ts +8 -0
  238. package/lib/panel/PrimaryPanel.d.ts +8 -0
  239. package/lib/panel/SuccessPanel.d.ts +8 -0
  240. package/lib/panel/ToolBar.d.ts +8 -0
  241. package/lib/panel/WarningPanel.d.ts +8 -0
  242. package/lib/panel/helpers.d.ts +4 -0
  243. package/lib/panel/index.d.ts +13 -0
  244. package/lib/panel/types.d.ts +4 -0
  245. package/lib/permissionValidations.d.ts +14 -0
  246. package/lib/permissionValidations.js +14 -12
  247. package/lib/popover/PopoverText.d.ts +8 -0
  248. package/lib/popover/PopoverTitle.d.ts +8 -0
  249. package/lib/popover/index.d.ts +13 -0
  250. package/lib/popover/types.d.ts +21 -0
  251. package/lib/progress/Bar.d.ts +6 -0
  252. package/lib/progress/index.d.ts +7 -0
  253. package/lib/progress/types.d.ts +37 -0
  254. package/lib/radio/index.d.ts +12 -0
  255. package/lib/radio/index.js +1 -1
  256. package/lib/radio/types.d.ts +18 -0
  257. package/lib/skeleton/SkeletonContainer.d.ts +7 -0
  258. package/lib/skeleton/SkeletonContainer.js +0 -13
  259. package/lib/skeleton/index.d.ts +8 -0
  260. package/lib/skeleton/index.js +6 -25
  261. package/lib/skeleton/types.d.ts +21 -0
  262. package/lib/skeleton/types.js +5 -0
  263. package/lib/spinner/SpinnerLoading.d.ts +7 -0
  264. package/lib/spinner/index.d.ts +7 -0
  265. package/lib/spinner/types.d.ts +20 -0
  266. package/lib/split/Split.d.ts +6 -0
  267. package/lib/split/SplitSide.d.ts +6 -0
  268. package/lib/split/helpers.d.ts +10 -0
  269. package/lib/split/index.d.ts +5 -0
  270. package/lib/split/types.d.ts +34 -0
  271. package/lib/table/Body.d.ts +6 -0
  272. package/lib/table/Header.d.ts +6 -0
  273. package/lib/table/Header.js +34 -6
  274. package/lib/table/HeaderColumn.d.ts +6 -0
  275. package/lib/table/HeaderColumn.js +1 -1
  276. package/lib/table/Row.d.ts +6 -0
  277. package/lib/table/Row.js +4 -9
  278. package/lib/table/RowColumn.d.ts +6 -0
  279. package/lib/table/RowColumn.js +2 -2
  280. package/lib/table/helpers.d.ts +8 -0
  281. package/lib/table/index.d.ts +11 -0
  282. package/lib/table/types.d.ts +84 -0
  283. package/lib/tabs/DropdownItems.d.ts +9 -0
  284. package/lib/tabs/Menu.d.ts +9 -0
  285. package/lib/tabs/MenuItems.d.ts +9 -0
  286. package/lib/tabs/MenuItems.js +1 -1
  287. package/lib/tabs/Panel.d.ts +9 -0
  288. package/lib/tabs/Panel.js +1 -1
  289. package/lib/tabs/index.d.ts +10 -0
  290. package/lib/tabs/tabHelpers.d.ts +21 -0
  291. package/lib/tabs/types.d.ts +63 -0
  292. package/lib/toolbar/ButtonBar.d.ts +10 -0
  293. package/lib/toolbar/LabelBar.d.ts +10 -0
  294. package/lib/toolbar/LabelBar.js +1 -1
  295. package/lib/toolbar/Separator.d.ts +3 -0
  296. package/lib/toolbar/ToolBarGroup.d.ts +10 -0
  297. package/lib/toolbar/helpers.d.ts +10 -0
  298. package/lib/toolbar/index.d.ts +14 -0
  299. package/lib/toolbar/index.js +2 -3
  300. package/lib/toolbar/types.d.ts +43 -0
  301. package/lib/tooltip/index.d.ts +6 -0
  302. package/lib/tooltip/types.d.ts +16 -0
  303. package/lib/treeview/Header.d.ts +7 -0
  304. package/lib/treeview/Node.d.ts +7 -0
  305. package/lib/treeview/Node.js +30 -18
  306. package/lib/treeview/constants.d.ts +7 -0
  307. package/lib/treeview/constants.js +0 -1
  308. package/lib/treeview/index.d.ts +9 -0
  309. package/lib/treeview/index.js +28 -21
  310. package/lib/treeview/types.d.ts +104 -0
  311. package/lib/types-3c6f1c20.d.ts +46 -0
  312. package/lib/uitour/helpers.d.ts +8 -0
  313. package/lib/uitour/index.d.ts +6 -0
  314. package/lib/uitour/index.js +11 -28
  315. package/lib/uitour/types.d.ts +30 -0
  316. package/lib/uitour/types.js +5 -0
  317. package/package.json +15 -5
  318. package/tsconfig.json +24 -9
  319. package/tsup.config.ts +10 -0
  320. package/images.d.ts +0 -3
  321. package/lib/alerts/alert.spec.js +0 -137
  322. package/lib/assets/styles/treetable.scss +0 -100
  323. package/lib/avatar/avatar.spec.js +0 -192
  324. package/lib/badge/badge.spec.js +0 -127
  325. package/lib/buttons/buttons.spec.js +0 -504
  326. package/lib/calendar/calendar.spec.js +0 -173
  327. package/lib/checkbox/checkbox.spec.js +0 -216
  328. package/lib/dialog/dialog.spec.js +0 -492
  329. package/lib/drawer/Drawer.spec.js +0 -261
  330. package/lib/dropdown/dropdown.spec.js +0 -181
  331. package/lib/fieldset/fieldset.spec.js +0 -329
  332. package/lib/form/form.spec.js +0 -295
  333. package/lib/gridlayout/gridLayout.spec.js +0 -169
  334. package/lib/icons/icons.spec.js +0 -86
  335. package/lib/inputs/base/base.spec.js +0 -691
  336. package/lib/inputs/color/color_input.spec.js +0 -174
  337. package/lib/inputs/date/date.spec.js +0 -352
  338. package/lib/inputs/mask/input_mask.spec.js +0 -584
  339. package/lib/inputs/number/numberfield.spec.js +0 -216
  340. package/lib/inputs/search/search_input.spec.js +0 -215
  341. package/lib/inputs/select/select.spec.js +0 -408
  342. package/lib/inputs/text/textfield.spec.js +0 -215
  343. package/lib/inputs/textarea/textarea.spec.js +0 -59
  344. package/lib/labelMessages/labelMessages.spec.js +0 -176
  345. package/lib/labels/label.spec.js +0 -162
  346. package/lib/list/list.spec.js +0 -739
  347. package/lib/menus/float/float-menu.spec.js +0 -227
  348. package/lib/menus/sidenav/sidenav.spec.js +0 -383
  349. package/lib/panel/panel.spec.js +0 -216
  350. package/lib/popover/popover.spec.js +0 -146
  351. package/lib/progress/progress.spec.js +0 -94
  352. package/lib/radio/radio.spec.js +0 -191
  353. package/lib/spinner/spinner.spec.js +0 -156
  354. package/lib/split/split.spec.js +0 -168
  355. package/lib/table/table.spec.js +0 -353
  356. package/lib/tabs/tabs.spec.js +0 -314
  357. package/lib/toolbar/toolbar.spec.js +0 -394
  358. package/lib/tooltip/tooltip.spec.js +0 -222
  359. package/lib/treetable/Body.js +0 -64
  360. package/lib/treetable/Header.js +0 -37
  361. package/lib/treetable/Row.js +0 -317
  362. package/lib/treetable/helpers.js +0 -51
  363. package/lib/treetable/index.js +0 -35
  364. package/lib/treeview/treeview.spec.js +0 -289
  365. package/lib/uitour/uitour.spec.js +0 -176
package/.eslintrc.json CHANGED
@@ -68,6 +68,8 @@
68
68
  "plugins": ["react", "@typescript-eslint", "class-property"],
69
69
  "rules": {
70
70
  "react/jsx-indent": "off",
71
+ "react/jsx-uses-react": "off",
72
+ "react/react-in-jsx-scope": "off",
71
73
  "@typescript-eslint/indent": ["error", 2],
72
74
  "import/prefer-default-export": [0],
73
75
  "react/jsx-filename-extension": [1, { "extensions": [".ts", ".tsx"] }],
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "files.exclude": {
3
- "config": true,
3
+ // "config": true,
4
4
  "coverage": true,
5
5
  "node_modules": true,
6
6
  "scripts": true,
7
7
  "yarn.lock": true,
8
8
  ".eslintrc.js": true,
9
- ".gitignore": true,
9
+ // ".gitignore": true,
10
10
  },
11
11
  "editor.codeActionsOnSave": {
12
12
  "source.fixAll.eslint": true
@@ -0,0 +1,11 @@
1
+ {
2
+ "presets": [
3
+ "@babel/env",
4
+ "@babel/react",
5
+ "@babel/preset-typescript"
6
+ ],
7
+ "plugins": [
8
+ "@babel/plugin-proposal-object-rest-spread",
9
+ "@babel/plugin-proposal-class-properties"
10
+ ]
11
+ }
@@ -0,0 +1,3 @@
1
+ declare type Align = 'left' | 'right' | 'center' | 'top' | 'bottom' | 'none';
2
+
3
+ export { Align };
@@ -0,0 +1,3 @@
1
+ declare type ButtonTypes = 'default' | 'primary' | 'danger' | 'info' | 'success' | 'warning' | 'add' | 'cancel' | 'destroy' | 'edit' | 'save' | 'activate' | 'inactivate' | 'restore';
2
+
3
+ export { ButtonTypes };
@@ -0,0 +1,3 @@
1
+ declare type ColorStyles = 'primary' | 'success' | 'danger' | 'info' | 'warning';
2
+
3
+ export { ColorStyles };
@@ -0,0 +1,3 @@
1
+ declare type DataCombo = any;
2
+
3
+ export { DataCombo };
@@ -0,0 +1,5 @@
1
+ import _default from '../icons/helper.js';
2
+
3
+ declare type IconNames = keyof typeof _default;
4
+
5
+ export { IconNames };
@@ -0,0 +1,3 @@
1
+ declare type LabelStyles = 'info' | 'warning' | 'success' | 'default' | 'danger';
2
+
3
+ export { LabelStyles };
@@ -0,0 +1,6 @@
1
+ declare type Period = {
2
+ initial?: string;
3
+ final?: string;
4
+ };
5
+
6
+ export { Period };
@@ -0,0 +1,14 @@
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 };
@@ -0,0 +1,3 @@
1
+ declare type PointerEvents = 'none' | 'all' | 'fill' | 'painted' | 'stroke' | 'visible' | 'visibleFill' | 'visiblePainted' | 'visibleStroke' | 'inherit' | 'initial' | 'unset';
2
+
3
+ export { PointerEvents };
@@ -0,0 +1,3 @@
1
+ declare type Position = 'left' | 'right' | 'center' | 'top' | 'bottom';
2
+
3
+ export { Position };
@@ -0,0 +1,3 @@
1
+ declare type PositionAlert = 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom' | 'centerTop' | 'centerBottom';
2
+
3
+ export { PositionAlert };
@@ -0,0 +1,3 @@
1
+ declare type Size = 'mini' | 'small' | 'medium' | 'large' | 'default';
2
+
3
+ export { Size };
@@ -0,0 +1,3 @@
1
+ declare type SizePixels = 10 | 16 | 18 | 22 | 24 | 32 | 40 | 64 | 128 | 200;
2
+
3
+ export { SizePixels };
@@ -0,0 +1,5 @@
1
+ interface ISessionStorageMock {
2
+ [key: string]: string;
3
+ }
4
+
5
+ export { ISessionStorageMock };
@@ -0,0 +1,16 @@
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 };
@@ -0,0 +1,7 @@
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 };
@@ -105,7 +105,7 @@ var AlertProvider = function AlertProvider(props) {
105
105
  });
106
106
 
107
107
  return /*#__PURE__*/_react.default.createElement(_helpers.default.Provider, {
108
- value: contextValues
108
+ value: _extends({}, contextValues)
109
109
  }, /*#__PURE__*/_react.default.createElement(_BaseAlert.default, null, elements), children);
110
110
  };
111
111
 
@@ -0,0 +1,7 @@
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 };
@@ -0,0 +1,7 @@
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 };
@@ -0,0 +1,7 @@
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 };
@@ -0,0 +1,6 @@
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';
@@ -0,0 +1,48 @@
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 };
@@ -0,0 +1,7 @@
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 };
@@ -17,14 +17,16 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
17
17
 
18
18
  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; }
19
19
 
20
+ 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); }
21
+
20
22
  var withAlert = function withAlert(WrapperComponent) {
21
- var GetAlert = function GetAlert() {
23
+ var GetAlert = function GetAlert(props) {
22
24
  var _useContext = (0, _react.useContext)(_helpers.default),
23
25
  alert = _useContext.alert;
24
26
 
25
- return /*#__PURE__*/_react.default.createElement(WrapperComponent, {
27
+ return /*#__PURE__*/_react.default.createElement(WrapperComponent, _extends({}, props, {
26
28
  alert: alert
27
- });
29
+ }));
28
30
  };
29
31
 
30
32
  return GetAlert;
@@ -0,0 +1,12 @@
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 };
@@ -0,0 +1,31 @@
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 };
@@ -0,0 +1,6 @@
1
+ import { IBadgeProps } from './types.js';
2
+ import 'react';
3
+
4
+ declare const Badge: (props: IBadgeProps) => JSX.Element;
5
+
6
+ export { Badge as default };
@@ -0,0 +1,13 @@
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 };
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,12 @@
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 };
@@ -0,0 +1,8 @@
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 };
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,12 @@
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 };
@@ -93,12 +93,12 @@ var DefaultButton = function DefaultButton(_ref) {
93
93
  activeButton = _useState2[0],
94
94
  setActiveButton = _useState2[1];
95
95
 
96
- var _useState3 = (0, _react.useState)((0, _permissionValidations.actionsOnPermissionDenied)(permissionAttr, options)),
96
+ var _useState3 = (0, _react.useState)((0, _permissionValidations.actionsOnPermissionDenied)(options, permissionAttr)),
97
97
  _useState4 = _slicedToArray(_useState3, 1),
98
98
  onDenied = _useState4[0];
99
99
 
100
- var disabledIconColor = 'rgb(193, 193, 193)';
101
100
  var buttonRef = (0, _react.useRef)(null);
101
+ var disabledIconColor = 'rgb(193, 193, 193)';
102
102
 
103
103
  var shouldDisable = function shouldDisable() {
104
104
  return !!onDenied.disabled || disabled;
@@ -150,6 +150,7 @@ var DefaultButton = function DefaultButton(_ref) {
150
150
 
151
151
  if (!visible || onDenied.unvisible) return null;
152
152
  return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("button", _extends({}, rest, {
153
+ style: style,
153
154
  onClick: function onClick(e) {
154
155
  if (shouldDisable()) return;
155
156
  if (_onClick) _onClick(e);
@@ -161,7 +162,8 @@ var DefaultButton = function DefaultButton(_ref) {
161
162
  ref: function ref(r) {
162
163
  if (targetRef) targetRef(r);
163
164
  buttonRef.current = r;
164
- }
165
+ },
166
+ tabIndex: tabIndex
165
167
  }), content, getIcon(), label || '', isLoading && /*#__PURE__*/_react.default.createElement("div", {
166
168
  className: "spinnercontainer"
167
169
  }, /*#__PURE__*/_react.default.createElement(_spinner.default, {
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,12 @@
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 };
@@ -0,0 +1,21 @@
1
+ export { default as ButtonContainer } from './button_container/index.js';
2
+ import Button from './Button.js';
3
+ export { default } from './Button.js';
4
+ export { default as PrimaryButton } from './PrimaryButton.js';
5
+ export { default as DangerButton } from './DangerButton.js';
6
+ export { default as WarningButton } from './WarningButton.js';
7
+ export { default as SuccessButton } from './SuccessButton.js';
8
+ export { default as InfoButton } from './InfoButton.js';
9
+ export { default as SaveButton } from './SaveButton.js';
10
+ export { default as CancelButton } from './CancelButton.js';
11
+ export { default as EditButton } from './EditButton.js';
12
+ export { default as DestroyButton } from './DestroyButton.js';
13
+ export { default as AddButton } from './AddButton.js';
14
+ export { default as ActivateButton } from './ActivateButton.js';
15
+ export { default as InactivateButton } from './InactivateButton.js';
16
+ export { default as RestoreButton } from './RestoreButton.js';
17
+ import 'react';
18
+ import '../@types/Position.js';
19
+ import './types.js';
20
+ import '../@types/PermissionAttr.js';
21
+ import '../@types/Size.js';
@@ -0,0 +1,9 @@
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 SplitButton: (props: IButtonProps) => JSX.Element;
8
+
9
+ export { SplitButton as default };
@@ -15,14 +15,34 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
15
15
 
16
16
  var SplitButton = function SplitButton(props) {
17
17
  var children = props.children,
18
- customClass = props.customClass;
18
+ customClass = props.customClass,
19
+ _props$size = props.size,
20
+ size = _props$size === void 0 ? 'default' : _props$size,
21
+ _props$boxShadow = props.boxShadow,
22
+ boxShadow = _props$boxShadow === void 0 ? true : _props$boxShadow,
23
+ _props$visible = props.visible,
24
+ visible = _props$visible === void 0 ? true : _props$visible,
25
+ permissionAttr = props.permissionAttr,
26
+ skeletonize = props.skeletonize,
27
+ _props$dropdownAlign = props.dropdownAlign,
28
+ dropdownAlign = _props$dropdownAlign === void 0 ? 'left' : _props$dropdownAlign;
29
+ var splitProps = {
30
+ customClass: customClass,
31
+ size: size,
32
+ boxShadow: boxShadow,
33
+ visible: visible,
34
+ permissionAttr: permissionAttr,
35
+ skeletonize: skeletonize,
36
+ dropdownAlign: dropdownAlign
37
+ };
19
38
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_DefaultButton.default, _extends({}, props, {
39
+ dropdownAlign: dropdownAlign,
20
40
  style: {
21
41
  borderRadius: '5px 0px 0px 5px',
22
42
  borderRight: 0,
23
43
  marginRight: 0
24
44
  }
25
- })), /*#__PURE__*/_react.default.createElement(_DefaultButton.default, _extends({}, props, {
45
+ })), /*#__PURE__*/_react.default.createElement(_DefaultButton.default, _extends({}, splitProps, {
26
46
  iconName: "down",
27
47
  customClass: "".concat(customClass, " -transparenttext"),
28
48
  iconStyle: {