linear-react-components-ui 0.4.77-beta.9 → 1.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (563) hide show
  1. package/.eslintrc.json +99 -0
  2. package/.gitlab-ci.yml +19 -0
  3. package/.husky/pre-push +4 -0
  4. package/.vscode/launch.json +15 -0
  5. package/.vscode/settings.json +5 -2
  6. package/babel.config.json +11 -0
  7. package/config/getHttpsConfig.js +56 -0
  8. package/config/paths.js +140 -0
  9. package/config/webpackDevServer.config.js +128 -0
  10. package/jest.config.js +3 -3
  11. package/lib/@types/Align.d.ts +3 -0
  12. package/lib/@types/Align.js +5 -0
  13. package/lib/@types/ButtonTypes.d.ts +3 -0
  14. package/lib/@types/ButtonTypes.js +5 -0
  15. package/lib/@types/ColorStyles.d.ts +3 -0
  16. package/lib/@types/ColorStyles.js +5 -0
  17. package/lib/@types/DataCombo.d.ts +3 -0
  18. package/lib/@types/DataCombo.js +5 -0
  19. package/lib/@types/Icon.d.ts +5 -0
  20. package/lib/@types/Icon.js +5 -0
  21. package/lib/@types/LabelStyles.d.ts +3 -0
  22. package/lib/@types/Period.d.ts +6 -0
  23. package/lib/@types/Period.js +5 -0
  24. package/lib/@types/PermissionAttr.d.ts +14 -0
  25. package/lib/@types/PointerEvents.d.ts +3 -0
  26. package/lib/@types/Position.d.ts +3 -0
  27. package/lib/@types/PositionAlert.d.ts +3 -0
  28. package/lib/@types/PositionAlert.js +5 -0
  29. package/lib/@types/Size.d.ts +3 -0
  30. package/lib/@types/SizePixels.d.ts +3 -0
  31. package/lib/@types/StorageMock.d.ts +5 -0
  32. package/lib/@types/StorageMock.js +5 -0
  33. package/lib/alerts/AlertContainer.d.ts +16 -0
  34. package/lib/alerts/AlertContainer.js +16 -21
  35. package/lib/alerts/AlertProvider.d.ts +7 -0
  36. package/lib/alerts/AlertProvider.js +13 -18
  37. package/lib/alerts/BaseAlert.d.ts +7 -0
  38. package/lib/alerts/BaseAlert.js +8 -11
  39. package/lib/alerts/Message.d.ts +7 -0
  40. package/lib/alerts/Message.js +41 -50
  41. package/lib/alerts/helpers.d.ts +7 -0
  42. package/lib/alerts/helpers.js +4 -7
  43. package/lib/alerts/index.d.ts +6 -0
  44. package/lib/alerts/index.js +5 -5
  45. package/lib/alerts/types.d.ts +48 -0
  46. package/lib/alerts/types.js +5 -0
  47. package/lib/alerts/withAlert.d.ts +7 -0
  48. package/lib/alerts/withAlert.js +8 -8
  49. package/lib/assets/styles/commons.scss +0 -10
  50. package/lib/assets/styles/dropdown.scss +0 -1
  51. package/lib/assets/styles/list.scss +0 -8
  52. package/lib/assets/styles/sidenav.scss +42 -93
  53. package/lib/assets/styles/table.scss +7 -2
  54. package/lib/avatar/index.d.ts +12 -0
  55. package/lib/avatar/index.js +21 -66
  56. package/lib/avatar/types.d.ts +31 -0
  57. package/lib/avatar/types.js +5 -0
  58. package/lib/badge/index.d.ts +6 -0
  59. package/lib/badge/index.js +11 -27
  60. package/lib/badge/types.d.ts +13 -0
  61. package/lib/badge/types.js +5 -0
  62. package/lib/buttons/ActivateButton.d.ts +9 -0
  63. package/lib/buttons/ActivateButton.js +6 -6
  64. package/lib/buttons/AddButton.d.ts +9 -0
  65. package/lib/buttons/AddButton.js +6 -6
  66. package/lib/buttons/Button.d.ts +12 -0
  67. package/lib/buttons/Button.js +22 -14
  68. package/lib/buttons/ButtonGroups.d.ts +8 -0
  69. package/lib/buttons/ButtonGroups.js +4 -9
  70. package/lib/buttons/CancelButton.d.ts +9 -0
  71. package/lib/buttons/CancelButton.js +19 -6
  72. package/lib/buttons/DangerButton.d.ts +9 -0
  73. package/lib/buttons/DangerButton.js +16 -21
  74. package/lib/buttons/DefaultButton.d.ts +12 -0
  75. package/lib/buttons/DefaultButton.js +73 -135
  76. package/lib/buttons/DestroyButton.d.ts +9 -0
  77. package/lib/buttons/DestroyButton.js +16 -7
  78. package/lib/buttons/EditButton.d.ts +9 -0
  79. package/lib/buttons/EditButton.js +6 -6
  80. package/lib/buttons/InactivateButton.d.ts +9 -0
  81. package/lib/buttons/InactivateButton.js +6 -6
  82. package/lib/buttons/InfoButton.d.ts +9 -0
  83. package/lib/buttons/InfoButton.js +16 -21
  84. package/lib/buttons/PrimaryButton.d.ts +9 -0
  85. package/lib/buttons/PrimaryButton.js +16 -21
  86. package/lib/buttons/RestoreButton.d.ts +9 -0
  87. package/lib/buttons/RestoreButton.js +6 -6
  88. package/lib/buttons/SaveButton.d.ts +9 -0
  89. package/lib/buttons/SaveButton.js +18 -5
  90. package/lib/buttons/SuccessButton.d.ts +9 -0
  91. package/lib/buttons/SuccessButton.js +15 -20
  92. package/lib/buttons/WarningButton.d.ts +9 -0
  93. package/lib/buttons/WarningButton.js +15 -20
  94. package/lib/buttons/button_container/index.d.ts +12 -0
  95. package/lib/buttons/button_container/index.js +10 -23
  96. package/lib/buttons/index.d.ts +21 -0
  97. package/lib/buttons/index.js +18 -18
  98. package/lib/buttons/split_button/index.d.ts +9 -0
  99. package/lib/buttons/split_button/index.js +18 -35
  100. package/lib/buttons/types.d.ts +44 -0
  101. package/lib/calendar/DangerCalendar.d.ts +7 -0
  102. package/lib/calendar/DangerCalendar.js +15 -6
  103. package/lib/calendar/InfoCalendar.d.ts +7 -0
  104. package/lib/calendar/InfoCalendar.js +15 -6
  105. package/lib/calendar/PrimaryCalendar.d.ts +7 -0
  106. package/lib/calendar/PrimaryCalendar.js +15 -6
  107. package/lib/calendar/SuccessCalendar.d.ts +7 -0
  108. package/lib/calendar/SuccessCalendar.js +15 -6
  109. package/lib/calendar/WarningCalendar.d.ts +7 -0
  110. package/lib/calendar/WarningCalendar.js +15 -6
  111. package/lib/calendar/base/Day.d.ts +7 -0
  112. package/lib/calendar/base/Day.js +8 -14
  113. package/lib/calendar/base/Month.d.ts +7 -0
  114. package/lib/calendar/base/Month.js +5 -10
  115. package/lib/calendar/base/Week.d.ts +7 -0
  116. package/lib/calendar/base/Week.js +5 -11
  117. package/lib/calendar/base/helpers.d.ts +62 -0
  118. package/lib/calendar/base/helpers.js +9 -9
  119. package/lib/calendar/base/index.d.ts +7 -0
  120. package/lib/calendar/base/index.js +44 -47
  121. package/lib/calendar/index.d.ts +10 -0
  122. package/lib/calendar/index.js +9 -9
  123. package/lib/calendar/types.d.ts +25 -0
  124. package/lib/calendar/types.js +5 -0
  125. package/lib/checkbox/Label.d.ts +11 -0
  126. package/lib/checkbox/Label.js +7 -17
  127. package/lib/checkbox/index.d.ts +13 -0
  128. package/lib/checkbox/index.js +52 -89
  129. package/lib/checkbox/types.d.ts +42 -0
  130. package/lib/dialog/Alert.d.ts +6 -0
  131. package/lib/dialog/Alert.js +9 -14
  132. package/lib/dialog/Custom.d.ts +6 -0
  133. package/lib/dialog/Custom.js +26 -34
  134. package/lib/dialog/Error.d.ts +6 -0
  135. package/lib/dialog/Error.js +7 -12
  136. package/lib/dialog/Information.d.ts +6 -0
  137. package/lib/dialog/Information.js +7 -12
  138. package/lib/dialog/Question.d.ts +6 -0
  139. package/lib/dialog/Question.js +14 -25
  140. package/lib/dialog/Warning.d.ts +6 -0
  141. package/lib/dialog/Warning.js +7 -12
  142. package/lib/dialog/base/Content.d.ts +6 -0
  143. package/lib/dialog/base/Content.js +4 -13
  144. package/lib/dialog/base/Footer.d.ts +6 -0
  145. package/lib/dialog/base/Footer.js +6 -12
  146. package/lib/dialog/base/Header.d.ts +6 -0
  147. package/lib/dialog/base/Header.js +17 -31
  148. package/lib/dialog/base/index.d.ts +6 -0
  149. package/lib/dialog/base/index.js +13 -35
  150. package/lib/dialog/base/style.js +2 -2
  151. package/lib/dialog/form/index.d.ts +6 -0
  152. package/lib/dialog/form/index.js +34 -44
  153. package/lib/dialog/index.d.ts +10 -0
  154. package/lib/dialog/index.js +10 -10
  155. package/lib/dialog/types.d.ts +68 -0
  156. package/lib/dialog/types.js +5 -0
  157. package/lib/drawer/Content.d.ts +7 -0
  158. package/lib/drawer/Content.js +7 -16
  159. package/lib/drawer/Drawer.d.ts +7 -0
  160. package/lib/drawer/Drawer.js +36 -57
  161. package/lib/drawer/Header.d.ts +7 -0
  162. package/lib/drawer/Header.js +28 -47
  163. package/lib/drawer/helpers.d.ts +7 -0
  164. package/lib/drawer/helpers.js +4 -4
  165. package/lib/drawer/index.d.ts +9 -0
  166. package/lib/drawer/index.js +6 -6
  167. package/lib/drawer/types.d.ts +34 -0
  168. package/lib/drawer/types.js +5 -0
  169. package/lib/dropdown/Popup.d.ts +6 -0
  170. package/lib/dropdown/Popup.js +36 -20
  171. package/lib/dropdown/helper.d.ts +4 -0
  172. package/lib/dropdown/helper.js +2 -2
  173. package/lib/dropdown/types.d.ts +43 -0
  174. package/lib/dropdown/withDropdown.d.ts +10 -0
  175. package/lib/dropdown/withDropdown.js +22 -47
  176. package/lib/fieldset/index.d.ts +8 -0
  177. package/lib/fieldset/index.js +19 -50
  178. package/lib/fieldset/types.d.ts +28 -0
  179. package/lib/fieldset/types.js +5 -0
  180. package/lib/form/Field.d.ts +6 -0
  181. package/lib/form/Field.js +22 -49
  182. package/lib/form/FieldArray.d.ts +6 -0
  183. package/lib/form/FieldArray.js +27 -57
  184. package/lib/form/FieldNumber.d.ts +6 -0
  185. package/lib/form/FieldNumber.js +10 -32
  186. package/lib/form/FieldPeriod.d.ts +6 -0
  187. package/lib/form/FieldPeriod.js +29 -51
  188. package/lib/form/helpers.d.ts +11 -0
  189. package/lib/form/helpers.js +11 -17
  190. package/lib/form/index.d.ts +9 -0
  191. package/lib/form/index.js +68 -103
  192. package/lib/form/types.d.ts +167 -0
  193. package/lib/form/types.js +5 -0
  194. package/lib/form/withFieldHOC.d.ts +6 -0
  195. package/lib/form/withFieldHOC.js +45 -125
  196. package/lib/form/withFormSecurity.d.ts +7 -0
  197. package/lib/form/withFormSecurity.js +20 -41
  198. package/lib/gridlayout/GridCol.d.ts +6 -0
  199. package/lib/gridlayout/GridCol.js +7 -22
  200. package/lib/gridlayout/GridRow.d.ts +6 -0
  201. package/lib/gridlayout/GridRow.js +8 -28
  202. package/lib/gridlayout/index.d.ts +5 -0
  203. package/lib/gridlayout/index.js +5 -5
  204. package/lib/gridlayout/types.d.ts +20 -0
  205. package/lib/gridlayout/types.js +5 -0
  206. package/lib/icons/helper.d.ts +560 -0
  207. package/lib/icons/helper.js +560 -563
  208. package/lib/icons/index.d.ts +8 -0
  209. package/lib/icons/index.js +28 -45
  210. package/lib/icons/types.d.ts +28 -0
  211. package/lib/index.d.ts +35 -0
  212. package/lib/index.js +10 -10
  213. package/lib/inputs/base/InputTextBase.d.ts +8 -0
  214. package/lib/inputs/base/InputTextBase.js +54 -163
  215. package/lib/inputs/base/helpers.d.ts +14 -0
  216. package/lib/inputs/base/helpers.js +9 -9
  217. package/lib/inputs/base/types.d.ts +68 -0
  218. package/lib/inputs/base/types.js +5 -0
  219. package/lib/inputs/color/index.d.ts +7 -0
  220. package/lib/inputs/color/index.js +40 -38
  221. package/lib/inputs/color/types.d.ts +14 -0
  222. package/lib/inputs/color/types.js +5 -0
  223. package/lib/inputs/date/Dialog.d.ts +10 -0
  224. package/lib/inputs/date/Dialog.js +4 -11
  225. package/lib/inputs/date/Dropdown.d.ts +10 -0
  226. package/lib/inputs/date/Dropdown.js +21 -73
  227. package/lib/inputs/date/helpers.d.ts +14 -0
  228. package/lib/inputs/date/helpers.js +4 -4
  229. package/lib/inputs/date/index.d.ts +10 -0
  230. package/lib/inputs/date/index.js +259 -415
  231. package/lib/inputs/date/types.d.ts +53 -0
  232. package/lib/inputs/date/types.js +5 -0
  233. package/lib/inputs/inputHOC.d.ts +11 -0
  234. package/lib/inputs/inputHOC.js +48 -100
  235. package/lib/inputs/mask/BaseMask.d.ts +12 -0
  236. package/lib/inputs/mask/BaseMask.js +6 -20
  237. package/lib/inputs/mask/Cnpj.d.ts +12 -0
  238. package/lib/inputs/mask/Cnpj.js +17 -24
  239. package/lib/inputs/mask/Cpf.d.ts +12 -0
  240. package/lib/inputs/mask/Cpf.js +18 -26
  241. package/lib/inputs/mask/Phone.d.ts +9 -0
  242. package/lib/inputs/mask/Phone.js +5 -13
  243. package/lib/inputs/mask/ZipCode.d.ts +9 -0
  244. package/lib/inputs/mask/ZipCode.js +5 -5
  245. package/lib/inputs/mask/helpers.d.ts +14 -0
  246. package/lib/inputs/mask/helpers.js +21 -36
  247. package/lib/inputs/mask/imaskHOC.d.ts +14 -0
  248. package/lib/inputs/mask/imaskHOC.js +188 -257
  249. package/lib/inputs/mask/index.d.ts +11 -0
  250. package/lib/inputs/mask/index.js +8 -8
  251. package/lib/inputs/mask/types.d.ts +66 -0
  252. package/lib/inputs/mask/types.js +5 -0
  253. package/lib/inputs/multiSelect/ActionButtons.d.ts +10 -0
  254. package/lib/inputs/multiSelect/ActionButtons.js +9 -21
  255. package/lib/inputs/multiSelect/Dropdown.d.ts +10 -0
  256. package/lib/inputs/multiSelect/Dropdown.js +60 -87
  257. package/lib/inputs/multiSelect/helper.d.ts +9 -0
  258. package/lib/inputs/multiSelect/helper.js +2 -2
  259. package/lib/inputs/multiSelect/index.d.ts +10 -0
  260. package/lib/inputs/multiSelect/index.js +67 -90
  261. package/lib/inputs/multiSelect/types.d.ts +49 -0
  262. package/lib/inputs/multiSelect/types.js +5 -0
  263. package/lib/inputs/number/BaseNumber.d.ts +9 -0
  264. package/lib/inputs/number/BaseNumber.js +15 -27
  265. package/lib/inputs/number/Currency.d.ts +9 -0
  266. package/lib/inputs/number/Currency.js +8 -18
  267. package/lib/inputs/number/Decimal.d.ts +9 -0
  268. package/lib/inputs/number/Decimal.js +4 -4
  269. package/lib/inputs/number/format_number.d.ts +4 -0
  270. package/lib/inputs/number/index.d.ts +11 -0
  271. package/lib/inputs/number/index.js +14 -20
  272. package/lib/inputs/number/types.d.ts +27 -0
  273. package/lib/inputs/number/types.js +5 -0
  274. package/lib/inputs/period/Dialog.d.ts +11 -0
  275. package/lib/inputs/period/Dialog.js +4 -11
  276. package/lib/inputs/period/Dropdown.d.ts +11 -0
  277. package/lib/inputs/period/Dropdown.js +19 -73
  278. package/lib/inputs/period/PeriodList.d.ts +11 -0
  279. package/lib/inputs/period/PeriodList.js +12 -25
  280. package/lib/inputs/period/helper.d.ts +19 -0
  281. package/lib/inputs/period/helper.js +33 -74
  282. package/lib/inputs/period/index.d.ts +11 -0
  283. package/lib/inputs/period/index.js +136 -186
  284. package/lib/inputs/period/types.d.ts +58 -0
  285. package/lib/inputs/period/types.js +5 -0
  286. package/lib/inputs/search/index.d.ts +11 -0
  287. package/lib/inputs/search/index.js +133 -265
  288. package/lib/inputs/select/ActionButtons.d.ts +11 -0
  289. package/lib/inputs/select/ActionButtons.js +19 -25
  290. package/lib/inputs/select/Dropdown.d.ts +11 -0
  291. package/lib/inputs/select/Dropdown.js +42 -75
  292. package/lib/inputs/select/helper.d.ts +25 -0
  293. package/lib/inputs/select/helper.js +18 -14
  294. package/lib/inputs/select/index.d.ts +10 -0
  295. package/lib/inputs/select/index.js +15 -16
  296. package/lib/inputs/select/multiple/Selecteds.d.ts +10 -0
  297. package/lib/inputs/select/multiple/Selecteds.js +9 -17
  298. package/lib/inputs/select/multiple/index.d.ts +10 -0
  299. package/lib/inputs/select/multiple/index.js +293 -418
  300. package/lib/inputs/select/simple/index.d.ts +10 -0
  301. package/lib/inputs/select/simple/index.js +310 -463
  302. package/lib/inputs/select/types.d.ts +97 -0
  303. package/lib/inputs/select/types.js +5 -0
  304. package/lib/inputs/text/index.d.ts +9 -0
  305. package/lib/inputs/text/index.js +5 -4
  306. package/lib/inputs/text/types.d.ts +22 -0
  307. package/lib/inputs/text/types.js +5 -0
  308. package/lib/inputs/textarea/index.d.ts +5 -0
  309. package/lib/inputs/textarea/index.js +9 -19
  310. package/lib/inputs/textarea/types.d.ts +8 -0
  311. package/lib/inputs/textarea/types.js +5 -0
  312. package/lib/inputs/types.d.ts +146 -0
  313. package/lib/inputs/types.js +5 -0
  314. package/lib/internals/colorStyles.d.ts +9 -0
  315. package/lib/internals/colorStyles.js +2 -2
  316. package/lib/internals/constants.d.ts +11 -0
  317. package/lib/internals/types.d.ts +21 -0
  318. package/lib/internals/withTooltip.d.ts +11 -0
  319. package/lib/internals/withTooltip.js +32 -40
  320. package/lib/labelMessages/index.d.ts +7 -0
  321. package/lib/labelMessages/index.js +34 -52
  322. package/lib/labelMessages/types.d.ts +18 -0
  323. package/lib/labels/DangerLabel.d.ts +9 -0
  324. package/lib/labels/DangerLabel.js +16 -7
  325. package/lib/labels/DefaultLabel.d.ts +12 -0
  326. package/lib/labels/DefaultLabel.js +31 -63
  327. package/lib/labels/InfoLabel.d.ts +9 -0
  328. package/lib/labels/InfoLabel.js +16 -7
  329. package/lib/labels/PrimaryLabel.d.ts +9 -0
  330. package/lib/labels/PrimaryLabel.js +16 -7
  331. package/lib/labels/SuccessLabel.d.ts +9 -0
  332. package/lib/labels/SuccessLabel.js +16 -7
  333. package/lib/labels/WarningLabel.d.ts +9 -0
  334. package/lib/labels/WarningLabel.js +16 -7
  335. package/lib/labels/index.d.ts +13 -0
  336. package/lib/labels/index.js +10 -10
  337. package/lib/labels/label_container/index.d.ts +12 -0
  338. package/lib/labels/label_container/index.js +7 -17
  339. package/lib/labels/types.d.ts +24 -0
  340. package/lib/labels/types.js +5 -0
  341. package/lib/list/Header.d.ts +7 -0
  342. package/lib/list/Header.js +5 -18
  343. package/lib/list/Item.d.ts +7 -0
  344. package/lib/list/Item.js +39 -77
  345. package/lib/list/Separator.d.ts +3 -0
  346. package/lib/list/Separator.js +4 -4
  347. package/lib/list/helpers.d.ts +12 -0
  348. package/lib/list/helpers.js +2 -2
  349. package/lib/list/index.d.ts +10 -0
  350. package/lib/list/index.js +47 -66
  351. package/lib/list/types.d.ts +64 -0
  352. package/lib/list/types.js +5 -0
  353. package/lib/menus/float/MenuItem.d.ts +7 -0
  354. package/lib/menus/float/MenuItem.js +17 -37
  355. package/lib/menus/float/helpers.d.ts +7 -0
  356. package/lib/menus/float/helpers.js +4 -4
  357. package/lib/menus/float/index.d.ts +8 -0
  358. package/lib/menus/float/index.js +17 -37
  359. package/lib/menus/float/types.d.ts +27 -0
  360. package/lib/menus/float/types.js +5 -0
  361. package/lib/menus/index.d.ts +6 -0
  362. package/lib/menus/index.js +4 -4
  363. package/lib/menus/sidenav/ExpandMenu.d.ts +10 -0
  364. package/lib/menus/sidenav/ExpandMenu.js +6 -18
  365. package/lib/menus/sidenav/MenuLink.d.ts +13 -0
  366. package/lib/menus/sidenav/MenuLink.js +5 -19
  367. package/lib/menus/sidenav/NavMenuGroup.d.ts +10 -0
  368. package/lib/menus/sidenav/NavMenuGroup.js +6 -17
  369. package/lib/menus/sidenav/NavMenuItem.d.ts +13 -0
  370. package/lib/menus/sidenav/NavMenuItem.js +30 -56
  371. package/lib/menus/sidenav/NavSubMenuItem.d.ts +10 -0
  372. package/lib/menus/sidenav/NavSubMenuItem.js +10 -21
  373. package/lib/menus/sidenav/helpers.d.ts +12 -0
  374. package/lib/menus/sidenav/helpers.js +5 -5
  375. package/lib/menus/sidenav/index.d.ts +14 -0
  376. package/lib/menus/sidenav/index.js +39 -69
  377. package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +10 -0
  378. package/lib/menus/sidenav/popup_menu_search/EmptyList.js +9 -18
  379. package/lib/menus/sidenav/popup_menu_search/index.d.ts +10 -0
  380. package/lib/menus/sidenav/popup_menu_search/index.js +25 -24
  381. package/lib/menus/sidenav/types.d.ts +82 -0
  382. package/lib/menus/sidenav/types.js +5 -0
  383. package/lib/noPermission/index.d.ts +3 -0
  384. package/lib/noPermission/index.js +7 -7
  385. package/lib/panel/Content.d.ts +8 -0
  386. package/lib/panel/Content.js +14 -26
  387. package/lib/panel/DangerPanel.d.ts +8 -0
  388. package/lib/panel/DangerPanel.js +6 -6
  389. package/lib/panel/Default.d.ts +8 -0
  390. package/lib/panel/Default.js +25 -52
  391. package/lib/panel/Header.d.ts +8 -0
  392. package/lib/panel/Header.js +18 -40
  393. package/lib/panel/InfoPanel.d.ts +8 -0
  394. package/lib/panel/InfoPanel.js +6 -6
  395. package/lib/panel/PrimaryPanel.d.ts +8 -0
  396. package/lib/panel/PrimaryPanel.js +6 -6
  397. package/lib/panel/SuccessPanel.d.ts +8 -0
  398. package/lib/panel/SuccessPanel.js +6 -6
  399. package/lib/panel/ToolBar.d.ts +8 -0
  400. package/lib/panel/ToolBar.js +4 -9
  401. package/lib/panel/WarningPanel.d.ts +8 -0
  402. package/lib/panel/WarningPanel.js +6 -6
  403. package/lib/panel/helpers.d.ts +4 -0
  404. package/lib/panel/helpers.js +9 -5
  405. package/lib/panel/index.d.ts +13 -0
  406. package/lib/panel/index.js +11 -11
  407. package/lib/panel/types.d.ts +4 -0
  408. package/lib/panel/types.js +5 -0
  409. package/lib/permissionValidations.d.ts +14 -0
  410. package/lib/permissionValidations.js +14 -12
  411. package/lib/popover/PopoverText.d.ts +8 -0
  412. package/lib/popover/PopoverText.js +4 -9
  413. package/lib/popover/PopoverTitle.d.ts +8 -0
  414. package/lib/popover/PopoverTitle.js +4 -9
  415. package/lib/popover/index.d.ts +13 -0
  416. package/lib/popover/index.js +35 -49
  417. package/lib/popover/types.d.ts +21 -0
  418. package/lib/popover/types.js +5 -0
  419. package/lib/progress/Bar.d.ts +6 -0
  420. package/lib/progress/Bar.js +42 -52
  421. package/lib/progress/index.d.ts +7 -0
  422. package/lib/progress/index.js +14 -24
  423. package/lib/progress/types.d.ts +37 -0
  424. package/lib/progress/types.js +5 -0
  425. package/lib/radio/index.d.ts +12 -0
  426. package/lib/radio/index.js +28 -52
  427. package/lib/radio/types.d.ts +18 -0
  428. package/lib/skeleton/SkeletonContainer.d.ts +7 -0
  429. package/lib/skeleton/SkeletonContainer.js +4 -17
  430. package/lib/skeleton/index.d.ts +8 -0
  431. package/lib/skeleton/index.js +13 -32
  432. package/lib/skeleton/types.d.ts +21 -0
  433. package/lib/skeleton/types.js +5 -0
  434. package/lib/spinner/SpinnerLoading.d.ts +7 -0
  435. package/lib/spinner/SpinnerLoading.js +45 -53
  436. package/lib/spinner/index.d.ts +7 -0
  437. package/lib/spinner/index.js +28 -33
  438. package/lib/spinner/types.d.ts +20 -0
  439. package/lib/spinner/types.js +5 -0
  440. package/lib/split/Split.d.ts +6 -0
  441. package/lib/split/Split.js +52 -69
  442. package/lib/split/SplitSide.d.ts +6 -0
  443. package/lib/split/SplitSide.js +7 -27
  444. package/lib/split/helpers.d.ts +10 -0
  445. package/lib/split/helpers.js +4 -4
  446. package/lib/split/index.d.ts +5 -0
  447. package/lib/split/index.js +5 -5
  448. package/lib/split/types.d.ts +34 -0
  449. package/lib/split/types.js +5 -0
  450. package/lib/table/Body.d.ts +6 -0
  451. package/lib/table/Body.js +21 -28
  452. package/lib/table/Header.d.ts +6 -0
  453. package/lib/table/Header.js +51 -30
  454. package/lib/table/HeaderColumn.d.ts +6 -0
  455. package/lib/table/HeaderColumn.js +13 -27
  456. package/lib/table/Row.d.ts +6 -0
  457. package/lib/table/Row.js +13 -34
  458. package/lib/table/RowColumn.d.ts +6 -0
  459. package/lib/table/RowColumn.js +18 -36
  460. package/lib/table/helpers.d.ts +8 -0
  461. package/lib/table/helpers.js +5 -5
  462. package/lib/table/index.d.ts +11 -0
  463. package/lib/table/index.js +19 -57
  464. package/lib/table/types.d.ts +84 -0
  465. package/lib/table/types.js +5 -0
  466. package/lib/tabs/DropdownItems.d.ts +9 -0
  467. package/lib/tabs/DropdownItems.js +20 -30
  468. package/lib/tabs/Menu.d.ts +9 -0
  469. package/lib/tabs/Menu.js +21 -25
  470. package/lib/tabs/MenuItems.d.ts +9 -0
  471. package/lib/tabs/MenuItems.js +33 -47
  472. package/lib/tabs/Panel.d.ts +9 -0
  473. package/lib/tabs/Panel.js +24 -57
  474. package/lib/tabs/index.d.ts +10 -0
  475. package/lib/tabs/index.js +89 -83
  476. package/lib/tabs/tabHelpers.d.ts +21 -0
  477. package/lib/tabs/tabHelpers.js +10 -9
  478. package/lib/tabs/types.d.ts +63 -0
  479. package/lib/tabs/types.js +5 -0
  480. package/lib/toolbar/ButtonBar.d.ts +10 -0
  481. package/lib/toolbar/ButtonBar.js +51 -32
  482. package/lib/toolbar/LabelBar.d.ts +10 -0
  483. package/lib/toolbar/LabelBar.js +42 -29
  484. package/lib/toolbar/Separator.d.ts +3 -0
  485. package/lib/toolbar/Separator.js +4 -4
  486. package/lib/toolbar/ToolBarGroup.d.ts +10 -0
  487. package/lib/toolbar/ToolBarGroup.js +10 -16
  488. package/lib/toolbar/helpers.d.ts +10 -0
  489. package/lib/toolbar/helpers.js +3 -3
  490. package/lib/toolbar/index.d.ts +14 -0
  491. package/lib/toolbar/index.js +26 -34
  492. package/lib/toolbar/types.d.ts +43 -0
  493. package/lib/toolbar/types.js +5 -0
  494. package/lib/tooltip/index.d.ts +6 -0
  495. package/lib/tooltip/index.js +34 -43
  496. package/lib/tooltip/types.d.ts +16 -0
  497. package/lib/tooltip/types.js +5 -0
  498. package/lib/treeview/Header.d.ts +7 -0
  499. package/lib/treeview/Header.js +5 -17
  500. package/lib/treeview/Node.d.ts +7 -0
  501. package/lib/treeview/Node.js +265 -391
  502. package/lib/treeview/constants.d.ts +7 -0
  503. package/lib/treeview/constants.js +2 -3
  504. package/lib/treeview/index.d.ts +9 -0
  505. package/lib/treeview/index.js +369 -554
  506. package/lib/treeview/types.d.ts +104 -0
  507. package/lib/treeview/types.js +5 -0
  508. package/lib/treeview_old/Header.js +7 -7
  509. package/lib/treeview_old/Node.js +18 -18
  510. package/lib/treeview_old/index.js +9 -9
  511. package/lib/types-3c6f1c20.d.ts +46 -0
  512. package/lib/uitour/helpers.d.ts +8 -0
  513. package/lib/uitour/index.d.ts +6 -0
  514. package/lib/uitour/index.js +28 -45
  515. package/lib/uitour/types.d.ts +30 -0
  516. package/lib/uitour/types.js +5 -0
  517. package/package.json +57 -18
  518. package/scripts/start.js +135 -0
  519. package/tsconfig.json +32 -0
  520. package/tsup.config.ts +10 -0
  521. package/.eslintrc.js +0 -26
  522. package/.husky/pre-commit +0 -4
  523. package/lib/alerts/alert.spec.js +0 -133
  524. package/lib/avatar/avatar.spec.js +0 -190
  525. package/lib/badge/badge.spec.js +0 -127
  526. package/lib/buttons/SpinnerLoading.js +0 -230
  527. package/lib/buttons/buttons.spec.js +0 -504
  528. package/lib/calendar/calendar.spec.js +0 -171
  529. package/lib/checkbox/checkbox.spec.js +0 -215
  530. package/lib/dialog/dialog.spec.js +0 -488
  531. package/lib/drawer/Drawer.spec.js +0 -258
  532. package/lib/dropdown/dropdown.spec.js +0 -168
  533. package/lib/fieldset/fieldset.spec.js +0 -329
  534. package/lib/form/form.spec.js +0 -293
  535. package/lib/gridlayout/gridLayout.spec.js +0 -169
  536. package/lib/icons/icons.spec.js +0 -86
  537. package/lib/inputs/base/base.spec.js +0 -690
  538. package/lib/inputs/base/index.js +0 -1
  539. package/lib/inputs/color/color_input.spec.js +0 -174
  540. package/lib/inputs/date/date.spec.js +0 -354
  541. package/lib/inputs/mask/input_mask.spec.js +0 -607
  542. package/lib/inputs/number/numberfield.spec.js +0 -215
  543. package/lib/inputs/search/search_input.spec.js +0 -209
  544. package/lib/inputs/select/select.spec.js +0 -391
  545. package/lib/inputs/text/textfield.spec.js +0 -215
  546. package/lib/inputs/textarea/textarea.spec.js +0 -59
  547. package/lib/labelMessages/labelMessages.spec.js +0 -176
  548. package/lib/labels/label.spec.js +0 -162
  549. package/lib/list/list.spec.js +0 -768
  550. package/lib/menus/float/float-menu.spec.js +0 -221
  551. package/lib/menus/sidenav/sidenav.spec.js +0 -379
  552. package/lib/panel/panel.spec.js +0 -216
  553. package/lib/popover/popover.spec.js +0 -146
  554. package/lib/progress/progress.spec.js +0 -86
  555. package/lib/radio/radio.spec.js +0 -189
  556. package/lib/spinner/spinner.spec.js +0 -152
  557. package/lib/split/split.spec.js +0 -151
  558. package/lib/table/table.spec.js +0 -352
  559. package/lib/tabs/tabs.spec.js +0 -349
  560. package/lib/toolbar/toolbar.spec.js +0 -394
  561. package/lib/tooltip/tooltip.spec.js +0 -203
  562. package/lib/treeview/treeview.spec.js +0 -279
  563. package/lib/uitour/uitour.spec.js +0 -176
@@ -1,62 +1,75 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports["default"] = void 0;
8
+ exports.default = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
- var _propTypes = _interopRequireDefault(require("prop-types"));
13
-
14
12
  var _labels = _interopRequireWildcard(require("../labels"));
15
13
 
16
14
  var _helpers = _interopRequireDefault(require("./helpers"));
17
15
 
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
+ var _excluded = ["size", "icon", "children", "iconName", "style", "type", "bordered"];
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
20
20
  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); }
21
21
 
22
- 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; }
22
+ 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; }
23
+
24
+ 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); }
25
+
26
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
23
27
 
24
- function _extends() { _extends = Object.assign || 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); }
28
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
25
29
 
26
- var LabelBar = function LabelBar(props) {
27
- var style = _extends({
30
+ var LabelBar = function LabelBar(_ref) {
31
+ var size = _ref.size,
32
+ icon = _ref.icon,
33
+ children = _ref.children,
34
+ iconName = _ref.iconName,
35
+ _ref$style = _ref.style,
36
+ style = _ref$style === void 0 ? {} : _ref$style,
37
+ _ref$type = _ref.type,
38
+ type = _ref$type === void 0 ? 'default' : _ref$type,
39
+ _ref$bordered = _ref.bordered,
40
+ bordered = _ref$bordered === void 0 ? false : _ref$bordered,
41
+ props = _objectWithoutProperties(_ref, _excluded);
42
+
43
+ var styles = _extends({
28
44
  lineHeight: 'unset',
29
45
  padding: '7px 10px 6px'
30
- }, props.style);
46
+ }, style);
31
47
 
32
- var _useContext = (0, _react.useContext)(_helpers["default"]),
48
+ var _useContext = (0, _react.useContext)(_helpers.default),
33
49
  skeletonize = _useContext.skeletonize;
34
50
 
35
51
  var getProps = function getProps() {
36
52
  return _extends({}, props, {
53
+ size: size,
54
+ icon: icon,
55
+ children: children,
56
+ iconName: iconName,
57
+ style: styles,
58
+ bordered: bordered,
37
59
  skeletonize: skeletonize,
38
- customClass: 'labelbar',
39
- style: style
60
+ customClass: 'labelbar'
40
61
  });
41
62
  };
42
63
 
43
64
  return {
44
- "default": /*#__PURE__*/_react["default"].createElement(_labels["default"], getProps()),
45
- primary: /*#__PURE__*/_react["default"].createElement(_labels.PrimaryLabel, getProps()),
46
- danger: /*#__PURE__*/_react["default"].createElement(_labels.DangerLabel, getProps()),
47
- info: /*#__PURE__*/_react["default"].createElement(_labels.InfoLabel, getProps()),
48
- success: /*#__PURE__*/_react["default"].createElement(_labels.SuccessLabel, getProps()),
49
- warning: /*#__PURE__*/_react["default"].createElement(_labels.WarningLabel, getProps())
50
- }[props.type];
65
+ default: /*#__PURE__*/_react.default.createElement(_labels.default, getProps()),
66
+ primary: /*#__PURE__*/_react.default.createElement(_labels.PrimaryLabel, getProps()),
67
+ danger: /*#__PURE__*/_react.default.createElement(_labels.DangerLabel, getProps()),
68
+ info: /*#__PURE__*/_react.default.createElement(_labels.InfoLabel, getProps()),
69
+ success: /*#__PURE__*/_react.default.createElement(_labels.SuccessLabel, getProps()),
70
+ warning: /*#__PURE__*/_react.default.createElement(_labels.WarningLabel, getProps())
71
+ }[type];
51
72
  };
52
73
 
53
- LabelBar.propTypes = {
54
- type: _propTypes["default"].oneOf(['default', 'primary', 'danger', 'info', 'success', 'warning']).isRequired,
55
- style: _propTypes["default"].object
56
- };
57
- LabelBar.defaultProps = {
58
- type: 'default',
59
- style: {}
60
- };
61
74
  var _default = LabelBar;
62
- exports["default"] = _default;
75
+ exports.default = _default;
@@ -0,0 +1,3 @@
1
+ declare const Separator: () => JSX.Element;
2
+
3
+ export { Separator as default };
@@ -3,17 +3,17 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = void 0;
6
+ exports.default = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
 
12
12
  var Separator = function Separator() {
13
- return /*#__PURE__*/_react["default"].createElement("div", {
13
+ return /*#__PURE__*/_react.default.createElement("div", {
14
14
  className: "separator"
15
15
  });
16
16
  };
17
17
 
18
18
  var _default = Separator;
19
- exports["default"] = _default;
19
+ exports.default = _default;
@@ -0,0 +1,10 @@
1
+ import { IToolBarGroup } from './types.js';
2
+ import 'react';
3
+ import '../@types/ButtonTypes.js';
4
+ import '../@types/Position.js';
5
+ import '../@types/Size.js';
6
+ import '../treeview/types.js';
7
+
8
+ declare const ToolBarGroup: ({ children, style }: IToolBarGroup) => JSX.Element;
9
+
10
+ export { ToolBarGroup as default };
@@ -3,27 +3,21 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = void 0;
6
+ exports.default = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _propTypes = _interopRequireDefault(require("prop-types"));
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
 
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
-
14
- var ToolBarGroup = function ToolBarGroup(props) {
15
- return /*#__PURE__*/_react["default"].createElement("div", {
12
+ var ToolBarGroup = function ToolBarGroup(_ref) {
13
+ var children = _ref.children,
14
+ _ref$style = _ref.style,
15
+ style = _ref$style === void 0 ? {} : _ref$style;
16
+ return /*#__PURE__*/_react.default.createElement("div", {
16
17
  className: "toolbar-group",
17
- style: props.style
18
- }, props.children);
18
+ style: style
19
+ }, children);
19
20
  };
20
21
 
21
- ToolBarGroup.defaultProps = {
22
- style: {}
23
- };
24
- ToolBarGroup.propTypes = {
25
- style: _propTypes["default"].object,
26
- children: _propTypes["default"].any.isRequired
27
- };
28
22
  var _default = ToolBarGroup;
29
- exports["default"] = _default;
23
+ exports.default = _default;
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { IToolbarProps } from './types.js';
3
+ import '../@types/ButtonTypes.js';
4
+ import '../@types/Position.js';
5
+ import '../@types/Size.js';
6
+ import '../treeview/types.js';
7
+
8
+ declare const ToolBarContext: React.Context<IToolbarProps>;
9
+
10
+ export { ToolBarContext as default };
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = void 0;
6
+ exports.default = void 0;
7
7
 
8
8
  var _react = require("react");
9
9
 
10
- var ToolBarContext = /*#__PURE__*/(0, _react.createContext)();
10
+ var ToolBarContext = /*#__PURE__*/(0, _react.createContext)({});
11
11
  var _default = ToolBarContext;
12
- exports["default"] = _default;
12
+ exports.default = _default;
@@ -0,0 +1,14 @@
1
+ export { default as ToolBarGroup } from './ToolBarGroup.js';
2
+ export { default as Separator } from './Separator.js';
3
+ export { default as ButtonBar } from './ButtonBar.js';
4
+ export { default as LabelBar } from './LabelBar.js';
5
+ import { IToolbarProps } from './types.js';
6
+ import 'react';
7
+ import '../@types/ButtonTypes.js';
8
+ import '../@types/Position.js';
9
+ import '../@types/Size.js';
10
+ import '../treeview/types.js';
11
+
12
+ declare const ToolBar: ({ innerRef, children, style, size, customClass, ...props }: IToolbarProps) => JSX.Element;
13
+
14
+ export { ToolBar as default };
@@ -6,33 +6,31 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "ButtonBar", {
7
7
  enumerable: true,
8
8
  get: function get() {
9
- return _ButtonBar["default"];
9
+ return _ButtonBar.default;
10
10
  }
11
11
  });
12
12
  Object.defineProperty(exports, "LabelBar", {
13
13
  enumerable: true,
14
14
  get: function get() {
15
- return _LabelBar["default"];
15
+ return _LabelBar.default;
16
16
  }
17
17
  });
18
18
  Object.defineProperty(exports, "Separator", {
19
19
  enumerable: true,
20
20
  get: function get() {
21
- return _Separator["default"];
21
+ return _Separator.default;
22
22
  }
23
23
  });
24
24
  Object.defineProperty(exports, "ToolBarGroup", {
25
25
  enumerable: true,
26
26
  get: function get() {
27
- return _ToolBarGroup["default"];
27
+ return _ToolBarGroup.default;
28
28
  }
29
29
  });
30
- exports["default"] = void 0;
30
+ exports.default = void 0;
31
31
 
32
32
  var _react = _interopRequireDefault(require("react"));
33
33
 
34
- var _propTypes = _interopRequireDefault(require("prop-types"));
35
-
36
34
  var _ToolBarGroup = _interopRequireDefault(require("./ToolBarGroup"));
37
35
 
38
36
  var _Separator = _interopRequireDefault(require("./Separator"));
@@ -45,42 +43,36 @@ require("../assets/styles/toolbar.scss");
45
43
 
46
44
  var _helpers = _interopRequireDefault(require("./helpers"));
47
45
 
48
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
46
+ var _excluded = ["innerRef", "children", "style", "size", "customClass"];
47
+
48
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
49
+
50
+ 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); }
49
51
 
50
- function _extends() { _extends = Object.assign || 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); }
52
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
51
53
 
52
- var ToolBar = function ToolBar(props) {
53
- var size = props.size,
54
- customClass = props.customClass,
55
- style = props.style,
56
- children = props.children,
57
- innerRef = props.innerRef;
54
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
55
+
56
+ var ToolBar = function ToolBar(_ref) {
57
+ var innerRef = _ref.innerRef,
58
+ children = _ref.children,
59
+ _ref$style = _ref.style,
60
+ style = _ref$style === void 0 ? {} : _ref$style,
61
+ size = _ref.size,
62
+ _ref$customClass = _ref.customClass,
63
+ customClass = _ref$customClass === void 0 ? '' : _ref$customClass,
64
+ props = _objectWithoutProperties(_ref, _excluded);
58
65
 
59
66
  var contextValues = _extends({}, props);
60
67
 
61
- return /*#__PURE__*/_react["default"].createElement(_helpers["default"].Provider, {
68
+ return /*#__PURE__*/_react.default.createElement(_helpers.default.Provider, {
62
69
  value: contextValues
63
- }, /*#__PURE__*/_react["default"].createElement("div", {
70
+ }, /*#__PURE__*/_react.default.createElement("div", {
64
71
  ref: innerRef,
65
- className: "toolbar-component ".concat(size && "".concat(size, "-bar"), " ").concat(customClass),
72
+ className: "toolbar-component ".concat(size ? "".concat(size, "-bar") : '', " ").concat(customClass),
66
73
  style: style
67
74
  }, children));
68
75
  };
69
76
 
70
- ToolBar.propTypes = {
71
- size: _propTypes["default"].oneOf(['small', 'large']),
72
- style: _propTypes["default"].object,
73
- children: _propTypes["default"].any.isRequired,
74
- customClass: _propTypes["default"].string,
75
- innerRef: _propTypes["default"].func,
76
- skeletonize: _propTypes["default"].bool
77
- };
78
- ToolBar.defaultProps = {
79
- size: null,
80
- style: {},
81
- customClass: '',
82
- innerRef: null,
83
- skeletonize: false
84
- };
85
77
  var _default = ToolBar;
86
- exports["default"] = _default;
78
+ exports.default = _default;
@@ -0,0 +1,43 @@
1
+ import { ReactNode, CSSProperties, ReactElement } from 'react';
2
+ import { ButtonTypes } from '../@types/ButtonTypes.js';
3
+ import { Position } from '../@types/Position.js';
4
+ import { Size } from '../@types/Size.js';
5
+ import { NodeItem } from '../treeview/types.js';
6
+
7
+ interface IToolbarProps {
8
+ children?: ReactNode;
9
+ customClass?: string;
10
+ skeletonize?: boolean;
11
+ innerRef?: () => void;
12
+ style?: CSSProperties;
13
+ size?: Extract<Size, 'small' | 'large'>;
14
+ }
15
+ interface IButtonBarProps {
16
+ label?: string;
17
+ iconName?: string;
18
+ type?: ButtonTypes;
19
+ icon?: ReactElement;
20
+ onClick?: () => void;
21
+ customClass?: string;
22
+ transparent?: boolean;
23
+ size?: Extract<Size, 'small' | 'large'>;
24
+ iconAlign?: Exclude<Position, 'top' | 'bottom'>;
25
+ validationKey?: string;
26
+ boxShadow?: boolean;
27
+ onNodeElementClick?: (node: NodeItem) => void;
28
+ }
29
+ interface ILabelBarProps {
30
+ iconName?: string;
31
+ bordered?: boolean;
32
+ icon?: ReactElement;
33
+ children?: ReactNode;
34
+ style?: CSSProperties;
35
+ size?: Extract<Size, 'small' | 'large'>;
36
+ type?: Extract<ButtonTypes, 'default' | 'primary' | 'danger' | 'info' | 'success' | 'warning'>;
37
+ }
38
+ interface IToolBarGroup {
39
+ style?: CSSProperties;
40
+ children: ReactNode;
41
+ }
42
+
43
+ export { IButtonBarProps, ILabelBarProps, IToolBarGroup, IToolbarProps };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,6 @@
1
+ import React__default from 'react';
2
+ import { ITooltipProps } from './types.js';
3
+
4
+ declare const Tooltip: ({ text, tooltipRef, style, tooltipDimensions, className, handlerSetDimensions, }: ITooltipProps) => React__default.ReactPortal;
5
+
6
+ export { Tooltip as default };
@@ -1,88 +1,79 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports["default"] = void 0;
8
+ exports.default = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
- var _propTypes = _interopRequireDefault(require("prop-types"));
13
-
14
12
  var _reactDom = _interopRequireDefault(require("react-dom"));
15
13
 
16
14
  var _uuid = _interopRequireDefault(require("uuid"));
17
15
 
18
16
  require("../assets/styles/tooltip.scss");
19
17
 
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
19
 
22
20
  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); }
23
21
 
24
- 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; }
25
-
26
- var Tooltip = function Tooltip(props) {
27
- var className = props.className,
28
- tooltipDimensions = props.tooltipDimensions,
29
- handlerSetDimensions = props.handlerSetDimensions,
30
- style = props.style,
31
- text = props.text,
32
- tooltipRef = props.tooltipRef;
22
+ 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; }
23
+
24
+ var Tooltip = function Tooltip(_ref) {
25
+ var text = _ref.text,
26
+ tooltipRef = _ref.tooltipRef,
27
+ _ref$style = _ref.style,
28
+ style = _ref$style === void 0 ? '' : _ref$style,
29
+ tooltipDimensions = _ref.tooltipDimensions,
30
+ _ref$className = _ref.className,
31
+ className = _ref$className === void 0 ? 'bottom' : _ref$className,
32
+ _ref$handlerSetDimens = _ref.handlerSetDimensions,
33
+ handlerSetDimensions = _ref$handlerSetDimens === void 0 ? function () {} : _ref$handlerSetDimens;
33
34
  var tooltipComponent = (0, _react.useRef)(document.createElement('div'));
34
35
  (0, _react.useEffect)(function () {
35
- tooltipComponent.current.id = "tooltip-".concat(_uuid["default"].v1());
36
+ tooltipComponent.current.id = "tooltip-".concat(_uuid.default.v1());
36
37
  tooltipComponent.current.className = "tooltip-component ".concat(className, " ");
37
38
  tooltipComponent.current.dataset.testid = 'tooltip-component';
38
- tooltipComponent.current.style = style;
39
+ tooltipComponent.current.style.cssText = style;
39
40
  document.body.appendChild(tooltipComponent.current);
40
41
  var tooltipEl = document.querySelector("div#".concat(tooltipComponent.current.id));
41
- var width = tooltipEl.offsetWidth;
42
+ var widthDimension = tooltipEl === null || tooltipEl === void 0 ? void 0 : tooltipEl.offsetWidth;
43
+ var heightDimension = tooltipEl === null || tooltipEl === void 0 ? void 0 : tooltipEl.offsetHeight;
42
44
 
43
- if (tooltipDimensions.width) {
44
- width = tooltipDimensions.width;
45
+ if (tooltipDimensions && tooltipDimensions.width) {
46
+ widthDimension = tooltipDimensions.width;
45
47
  }
46
48
 
47
- var height = tooltipEl.offsetHeight;
48
49
  handlerSetDimensions({
49
- width: width,
50
- height: height
51
- });
52
- if (tooltipRef) tooltipRef.current = tooltipEl;
50
+ width: widthDimension,
51
+ height: Number(heightDimension)
52
+ }); // eslint-disable-next-line no-param-reassign
53
+
54
+ if (tooltipRef) {
55
+ tooltipRef.current = tooltipEl;
56
+ }
57
+
53
58
  return function () {
54
- return document.body.removeChild(tooltipComponent.current);
59
+ document.body.removeChild(tooltipComponent.current);
55
60
  };
56
61
  }, []);
57
62
  (0, _react.useEffect)(function () {
58
63
  tooltipComponent.current.className = "tooltip-component ".concat(className, " ");
59
64
  }, [className]);
60
65
  (0, _react.useEffect)(function () {
61
- tooltipComponent.current.style = style;
66
+ tooltipComponent.current.style.cssText = style;
62
67
  }, [style]);
63
68
 
64
69
  var getTooltipContent = function getTooltipContent() {
65
- return /*#__PURE__*/_react["default"].createElement("div", {
70
+ return /*#__PURE__*/_react.default.createElement("div", {
66
71
  className: "tooltipcontent"
67
72
  }, text);
68
73
  };
69
74
 
70
- return /*#__PURE__*/_reactDom["default"].createPortal(getTooltipContent(), tooltipComponent.current);
75
+ return /*#__PURE__*/_reactDom.default.createPortal(getTooltipContent(), tooltipComponent.current);
71
76
  };
72
77
 
73
- Tooltip.propTypes = {
74
- text: _propTypes["default"].string,
75
- style: _propTypes["default"].string,
76
- className: _propTypes["default"].string,
77
- handlerSetDimensions: _propTypes["default"].func,
78
- tooltipRef: _propTypes["default"].object
79
- };
80
- Tooltip.defaultProps = {
81
- text: undefined,
82
- className: 'bottom',
83
- style: '',
84
- handlerSetDimensions: undefined,
85
- tooltipRef: null
86
- };
87
78
  var _default = Tooltip;
88
- exports["default"] = _default;
79
+ exports.default = _default;
@@ -0,0 +1,16 @@
1
+ import { MutableRefObject } from 'react';
2
+
3
+ declare type Dimensions = {
4
+ width: number | string;
5
+ height: number;
6
+ };
7
+ interface ITooltipProps {
8
+ text?: string;
9
+ style?: string;
10
+ className?: string;
11
+ tooltipRef?: MutableRefObject<HTMLElement | null>;
12
+ handlerSetDimensions?: ({ width, height }: Dimensions) => void;
13
+ tooltipDimensions?: Dimensions;
14
+ }
15
+
16
+ export { ITooltipProps };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,7 @@
1
+ import { ITreeHeaderProps } from './types.js';
2
+ import 'react';
3
+ import '../@types/Size.js';
4
+
5
+ declare const Header: (props: ITreeHeaderProps) => JSX.Element;
6
+
7
+ export { Header as default };
@@ -3,34 +3,22 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = void 0;
6
+ exports.default = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
11
 
14
12
  var Header = function Header(props) {
15
13
  var title = props.title,
16
14
  customClass = props.customClass,
17
15
  children = props.children;
18
- return /*#__PURE__*/_react["default"].createElement("div", {
16
+ return /*#__PURE__*/_react.default.createElement("div", {
19
17
  className: "treeviewheader ".concat(customClass)
20
- }, title ? /*#__PURE__*/_react["default"].createElement("div", {
18
+ }, title ? /*#__PURE__*/_react.default.createElement("div", {
21
19
  className: "title"
22
20
  }, title) : children);
23
21
  };
24
22
 
25
- Header.defaultProps = {
26
- title: '',
27
- customClass: '',
28
- children: undefined
29
- };
30
- Header.propTypes = {
31
- title: _propTypes["default"].string,
32
- customClass: _propTypes["default"].string,
33
- children: _propTypes["default"].instanceOf(Object)
34
- };
35
23
  var _default = Header;
36
- exports["default"] = _default;
24
+ exports.default = _default;
@@ -0,0 +1,7 @@
1
+ import { ITreeNodeProps } from './types.js';
2
+ import 'react';
3
+ import '../@types/Size.js';
4
+
5
+ declare const TreeNode: (props: ITreeNodeProps) => JSX.Element;
6
+
7
+ export { TreeNode as default };