linear-react-components-ui 0.4.77-beta.23 → 0.4.77-beta.26

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 (587) 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 -3
  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/dist/main.js +14 -0
  11. package/jest.config.js +3 -3
  12. package/lib/@types/Align.d.ts +3 -0
  13. package/lib/@types/Align.js +5 -0
  14. package/lib/@types/ButtonTypes.d.ts +3 -0
  15. package/lib/@types/ButtonTypes.js +5 -0
  16. package/lib/@types/ColorStyles.d.ts +3 -0
  17. package/lib/@types/ColorStyles.js +5 -0
  18. package/lib/@types/DataCombo.d.ts +3 -0
  19. package/lib/@types/DataCombo.js +5 -0
  20. package/lib/@types/Icon.d.ts +5 -0
  21. package/lib/@types/Icon.js +5 -0
  22. package/lib/@types/LabelStyles.d.ts +3 -0
  23. package/lib/@types/LabelStyles.js +5 -0
  24. package/lib/@types/Period.d.ts +6 -0
  25. package/lib/@types/Period.js +5 -0
  26. package/lib/@types/PermissionAttr.d.ts +14 -0
  27. package/lib/@types/PermissionAttr.js +5 -0
  28. package/lib/@types/PointerEvents.d.ts +3 -0
  29. package/lib/@types/PointerEvents.js +5 -0
  30. package/lib/@types/Position.d.ts +3 -0
  31. package/lib/@types/Position.js +5 -0
  32. package/lib/@types/PositionAlert.d.ts +3 -0
  33. package/lib/@types/PositionAlert.js +5 -0
  34. package/lib/@types/Size.d.ts +3 -0
  35. package/lib/@types/Size.js +5 -0
  36. package/lib/@types/SizePixels.d.ts +3 -0
  37. package/lib/@types/SizePixels.js +5 -0
  38. package/lib/@types/StorageMock.d.ts +5 -0
  39. package/lib/@types/StorageMock.js +5 -0
  40. package/lib/alerts/AlertContainer.d.ts +16 -0
  41. package/lib/alerts/AlertContainer.js +28 -26
  42. package/lib/alerts/AlertProvider.d.ts +7 -0
  43. package/lib/alerts/AlertProvider.js +30 -25
  44. package/lib/alerts/BaseAlert.d.ts +7 -0
  45. package/lib/alerts/BaseAlert.js +22 -15
  46. package/lib/alerts/Message.d.ts +7 -0
  47. package/lib/alerts/Message.js +41 -50
  48. package/lib/alerts/alert.spec.js +36 -59
  49. package/lib/alerts/helpers.d.ts +7 -0
  50. package/lib/alerts/helpers.js +4 -7
  51. package/lib/alerts/index.d.ts +6 -0
  52. package/lib/alerts/index.js +6 -6
  53. package/lib/alerts/types.d.ts +48 -0
  54. package/lib/alerts/types.js +5 -0
  55. package/lib/alerts/withAlert.d.ts +7 -0
  56. package/lib/alerts/withAlert.js +10 -10
  57. package/lib/assets/styles/commons.scss +0 -10
  58. package/lib/assets/styles/dropdown.scss +0 -1
  59. package/lib/assets/styles/list.scss +0 -8
  60. package/lib/assets/styles/table.scss +7 -2
  61. package/lib/assets/styles/treetable.scss +10 -12
  62. package/lib/avatar/avatar.spec.js +63 -95
  63. package/lib/avatar/index.d.ts +12 -0
  64. package/lib/avatar/index.js +24 -69
  65. package/lib/avatar/types.d.ts +31 -0
  66. package/lib/avatar/types.js +5 -0
  67. package/lib/badge/badge.spec.js +33 -55
  68. package/lib/badge/index.d.ts +6 -0
  69. package/lib/badge/index.js +12 -28
  70. package/lib/badge/types.d.ts +13 -0
  71. package/lib/badge/types.js +5 -0
  72. package/lib/buttons/ActivateButton.d.ts +9 -0
  73. package/lib/buttons/ActivateButton.js +8 -8
  74. package/lib/buttons/AddButton.d.ts +9 -0
  75. package/lib/buttons/AddButton.js +8 -8
  76. package/lib/buttons/Button.d.ts +12 -0
  77. package/lib/buttons/Button.js +22 -14
  78. package/lib/buttons/ButtonGroups.d.ts +8 -0
  79. package/lib/buttons/ButtonGroups.js +4 -9
  80. package/lib/buttons/CancelButton.d.ts +9 -0
  81. package/lib/buttons/CancelButton.js +20 -7
  82. package/lib/buttons/DangerButton.d.ts +9 -0
  83. package/lib/buttons/DangerButton.js +18 -23
  84. package/lib/buttons/DefaultButton.d.ts +12 -0
  85. package/lib/buttons/DefaultButton.js +90 -142
  86. package/lib/buttons/DestroyButton.d.ts +9 -0
  87. package/lib/buttons/DestroyButton.js +18 -9
  88. package/lib/buttons/EditButton.d.ts +9 -0
  89. package/lib/buttons/EditButton.js +8 -8
  90. package/lib/buttons/InactivateButton.d.ts +9 -0
  91. package/lib/buttons/InactivateButton.js +8 -8
  92. package/lib/buttons/InfoButton.d.ts +9 -0
  93. package/lib/buttons/InfoButton.js +18 -23
  94. package/lib/buttons/PrimaryButton.d.ts +9 -0
  95. package/lib/buttons/PrimaryButton.js +18 -23
  96. package/lib/buttons/RestoreButton.d.ts +9 -0
  97. package/lib/buttons/RestoreButton.js +8 -8
  98. package/lib/buttons/SaveButton.d.ts +9 -0
  99. package/lib/buttons/SaveButton.js +19 -6
  100. package/lib/buttons/SpinnerLoading.js +2 -2
  101. package/lib/buttons/SuccessButton.d.ts +9 -0
  102. package/lib/buttons/SuccessButton.js +17 -22
  103. package/lib/buttons/WarningButton.d.ts +9 -0
  104. package/lib/buttons/WarningButton.js +17 -22
  105. package/lib/buttons/button_container/index.d.ts +12 -0
  106. package/lib/buttons/button_container/index.js +12 -25
  107. package/lib/buttons/buttons.spec.js +184 -258
  108. package/lib/buttons/index.d.ts +21 -0
  109. package/lib/buttons/index.js +33 -33
  110. package/lib/buttons/split_button/index.d.ts +9 -0
  111. package/lib/buttons/split_button/index.js +20 -37
  112. package/lib/buttons/types.d.ts +44 -0
  113. package/lib/buttons/types.js +5 -0
  114. package/lib/calendar/DangerCalendar.d.ts +7 -0
  115. package/lib/calendar/DangerCalendar.js +17 -8
  116. package/lib/calendar/InfoCalendar.d.ts +7 -0
  117. package/lib/calendar/InfoCalendar.js +17 -8
  118. package/lib/calendar/PrimaryCalendar.d.ts +7 -0
  119. package/lib/calendar/PrimaryCalendar.js +17 -8
  120. package/lib/calendar/SuccessCalendar.d.ts +7 -0
  121. package/lib/calendar/SuccessCalendar.js +17 -8
  122. package/lib/calendar/WarningCalendar.d.ts +7 -0
  123. package/lib/calendar/WarningCalendar.js +17 -8
  124. package/lib/calendar/base/Day.d.ts +7 -0
  125. package/lib/calendar/base/Day.js +9 -15
  126. package/lib/calendar/base/Month.d.ts +7 -0
  127. package/lib/calendar/base/Month.js +19 -14
  128. package/lib/calendar/base/Week.d.ts +7 -0
  129. package/lib/calendar/base/Week.js +19 -15
  130. package/lib/calendar/base/helpers.d.ts +62 -0
  131. package/lib/calendar/base/helpers.js +16 -16
  132. package/lib/calendar/base/index.d.ts +7 -0
  133. package/lib/calendar/base/index.js +58 -51
  134. package/lib/calendar/calendar.spec.js +44 -75
  135. package/lib/calendar/index.d.ts +10 -0
  136. package/lib/calendar/index.js +15 -15
  137. package/lib/calendar/types.d.ts +25 -0
  138. package/lib/calendar/types.js +5 -0
  139. package/lib/checkbox/Label.d.ts +11 -0
  140. package/lib/checkbox/Label.js +8 -18
  141. package/lib/checkbox/checkbox.spec.js +43 -84
  142. package/lib/checkbox/index.d.ts +13 -0
  143. package/lib/checkbox/index.js +68 -95
  144. package/lib/checkbox/types.d.ts +42 -0
  145. package/lib/checkbox/types.js +5 -0
  146. package/lib/dialog/Alert.d.ts +6 -0
  147. package/lib/dialog/Alert.js +11 -16
  148. package/lib/dialog/Custom.d.ts +6 -0
  149. package/lib/dialog/Custom.js +28 -36
  150. package/lib/dialog/Error.d.ts +6 -0
  151. package/lib/dialog/Error.js +9 -14
  152. package/lib/dialog/Information.d.ts +6 -0
  153. package/lib/dialog/Information.js +9 -14
  154. package/lib/dialog/Question.d.ts +6 -0
  155. package/lib/dialog/Question.js +16 -27
  156. package/lib/dialog/Warning.d.ts +6 -0
  157. package/lib/dialog/Warning.js +9 -14
  158. package/lib/dialog/base/Content.d.ts +6 -0
  159. package/lib/dialog/base/Content.js +5 -14
  160. package/lib/dialog/base/Footer.d.ts +6 -0
  161. package/lib/dialog/base/Footer.js +6 -12
  162. package/lib/dialog/base/Header.d.ts +6 -0
  163. package/lib/dialog/base/Header.js +17 -31
  164. package/lib/dialog/base/index.d.ts +6 -0
  165. package/lib/dialog/base/index.js +14 -36
  166. package/lib/dialog/base/style.js +2 -2
  167. package/lib/dialog/dialog.spec.js +95 -169
  168. package/lib/dialog/form/index.d.ts +6 -0
  169. package/lib/dialog/form/index.js +37 -47
  170. package/lib/dialog/index.d.ts +10 -0
  171. package/lib/dialog/index.js +16 -16
  172. package/lib/dialog/types.d.ts +68 -0
  173. package/lib/dialog/types.js +5 -0
  174. package/lib/drawer/Content.d.ts +7 -0
  175. package/lib/drawer/Content.js +8 -17
  176. package/lib/drawer/Drawer.d.ts +7 -0
  177. package/lib/drawer/Drawer.js +51 -62
  178. package/lib/drawer/Drawer.spec.js +62 -105
  179. package/lib/drawer/Header.d.ts +7 -0
  180. package/lib/drawer/Header.js +29 -48
  181. package/lib/drawer/helpers.d.ts +7 -0
  182. package/lib/drawer/helpers.js +5 -5
  183. package/lib/drawer/index.d.ts +9 -0
  184. package/lib/drawer/index.js +9 -9
  185. package/lib/drawer/types.d.ts +34 -0
  186. package/lib/drawer/types.js +5 -0
  187. package/lib/dropdown/Popup.d.ts +6 -0
  188. package/lib/dropdown/Popup.js +37 -21
  189. package/lib/dropdown/dropdown.spec.js +41 -65
  190. package/lib/dropdown/helper.d.ts +4 -0
  191. package/lib/dropdown/helper.js +2 -2
  192. package/lib/dropdown/types.d.ts +43 -0
  193. package/lib/dropdown/types.js +5 -0
  194. package/lib/dropdown/withDropdown.d.ts +10 -0
  195. package/lib/dropdown/withDropdown.js +37 -52
  196. package/lib/fieldset/fieldset.spec.js +80 -126
  197. package/lib/fieldset/index.d.ts +8 -0
  198. package/lib/fieldset/index.js +35 -56
  199. package/lib/fieldset/types.d.ts +28 -0
  200. package/lib/fieldset/types.js +5 -0
  201. package/lib/form/Field.d.ts +6 -0
  202. package/lib/form/Field.js +37 -54
  203. package/lib/form/FieldArray.d.ts +6 -0
  204. package/lib/form/FieldArray.js +31 -61
  205. package/lib/form/FieldNumber.d.ts +6 -0
  206. package/lib/form/FieldNumber.js +11 -35
  207. package/lib/form/FieldPeriod.d.ts +6 -0
  208. package/lib/form/FieldPeriod.js +31 -53
  209. package/lib/form/form.spec.js +63 -105
  210. package/lib/form/helpers.d.ts +11 -0
  211. package/lib/form/helpers.js +26 -21
  212. package/lib/form/index.d.ts +9 -0
  213. package/lib/form/index.js +100 -118
  214. package/lib/form/types.d.ts +168 -0
  215. package/lib/form/types.js +5 -0
  216. package/lib/form/withFieldHOC.d.ts +6 -0
  217. package/lib/form/withFieldHOC.js +51 -125
  218. package/lib/form/withFormSecurity.d.ts +7 -0
  219. package/lib/form/withFormSecurity.js +31 -39
  220. package/lib/gridlayout/GridCol.d.ts +6 -0
  221. package/lib/gridlayout/GridCol.js +8 -23
  222. package/lib/gridlayout/GridRow.d.ts +6 -0
  223. package/lib/gridlayout/GridRow.js +9 -29
  224. package/lib/gridlayout/gridLayout.spec.js +47 -74
  225. package/lib/gridlayout/index.d.ts +5 -0
  226. package/lib/gridlayout/index.js +6 -6
  227. package/lib/gridlayout/types.d.ts +20 -0
  228. package/lib/gridlayout/types.js +5 -0
  229. package/lib/icons/helper.d.ts +560 -0
  230. package/lib/icons/helper.js +560 -563
  231. package/lib/icons/icons.spec.js +29 -45
  232. package/lib/icons/index.d.ts +8 -0
  233. package/lib/icons/index.js +29 -46
  234. package/lib/icons/types.d.ts +28 -0
  235. package/lib/icons/types.js +5 -0
  236. package/lib/index.d.ts +35 -0
  237. package/lib/index.js +18 -18
  238. package/lib/inputs/base/InputTextBase.d.ts +8 -0
  239. package/lib/inputs/base/InputTextBase.js +58 -157
  240. package/lib/inputs/base/base.spec.js +187 -302
  241. package/lib/inputs/base/helpers.d.ts +14 -0
  242. package/lib/inputs/base/helpers.js +11 -11
  243. package/lib/inputs/base/types.d.ts +68 -0
  244. package/lib/inputs/base/types.js +5 -0
  245. package/lib/inputs/color/color_input.spec.js +37 -71
  246. package/lib/inputs/color/index.d.ts +7 -0
  247. package/lib/inputs/color/index.js +55 -43
  248. package/lib/inputs/color/types.d.ts +14 -0
  249. package/lib/inputs/color/types.js +5 -0
  250. package/lib/inputs/date/Dialog.d.ts +10 -0
  251. package/lib/inputs/date/Dialog.js +5 -12
  252. package/lib/inputs/date/Dropdown.d.ts +10 -0
  253. package/lib/inputs/date/Dropdown.js +21 -63
  254. package/lib/inputs/date/date.spec.js +79 -160
  255. package/lib/inputs/date/helpers.d.ts +14 -0
  256. package/lib/inputs/date/helpers.js +6 -6
  257. package/lib/inputs/date/index.d.ts +10 -0
  258. package/lib/inputs/date/index.js +265 -415
  259. package/lib/inputs/date/types.d.ts +53 -0
  260. package/lib/inputs/date/types.js +5 -0
  261. package/lib/inputs/inputHOC.d.ts +11 -0
  262. package/lib/inputs/inputHOC.js +53 -99
  263. package/lib/inputs/mask/BaseMask.d.ts +12 -0
  264. package/lib/inputs/mask/BaseMask.js +14 -25
  265. package/lib/inputs/mask/Cnpj.d.ts +12 -0
  266. package/lib/inputs/mask/Cnpj.js +32 -29
  267. package/lib/inputs/mask/Cpf.d.ts +12 -0
  268. package/lib/inputs/mask/Cpf.js +33 -31
  269. package/lib/inputs/mask/Phone.d.ts +9 -0
  270. package/lib/inputs/mask/Phone.js +7 -15
  271. package/lib/inputs/mask/ZipCode.d.ts +9 -0
  272. package/lib/inputs/mask/ZipCode.js +7 -7
  273. package/lib/inputs/mask/helpers.d.ts +14 -0
  274. package/lib/inputs/mask/helpers.js +25 -40
  275. package/lib/inputs/mask/imaskHOC.d.ts +14 -0
  276. package/lib/inputs/mask/imaskHOC.js +189 -251
  277. package/lib/inputs/mask/index.d.ts +11 -0
  278. package/lib/inputs/mask/index.js +11 -11
  279. package/lib/inputs/mask/input_mask.spec.js +193 -306
  280. package/lib/inputs/mask/types.d.ts +66 -0
  281. package/lib/inputs/mask/types.js +5 -0
  282. package/lib/inputs/multiSelect/ActionButtons.d.ts +10 -0
  283. package/lib/inputs/multiSelect/ActionButtons.js +10 -22
  284. package/lib/inputs/multiSelect/Dropdown.d.ts +10 -0
  285. package/lib/inputs/multiSelect/Dropdown.js +76 -93
  286. package/lib/inputs/multiSelect/helper.d.ts +9 -0
  287. package/lib/inputs/multiSelect/helper.js +2 -2
  288. package/lib/inputs/multiSelect/index.d.ts +10 -0
  289. package/lib/inputs/multiSelect/index.js +107 -107
  290. package/lib/inputs/multiSelect/types.d.ts +49 -0
  291. package/lib/inputs/multiSelect/types.js +5 -0
  292. package/lib/inputs/number/BaseNumber.d.ts +12 -0
  293. package/lib/inputs/number/BaseNumber.js +17 -29
  294. package/lib/inputs/number/Currency.d.ts +12 -0
  295. package/lib/inputs/number/Currency.js +10 -20
  296. package/lib/inputs/number/Decimal.d.ts +12 -0
  297. package/lib/inputs/number/Decimal.js +5 -5
  298. package/lib/inputs/number/format_number.d.ts +4 -0
  299. package/lib/inputs/number/format_number.js +1 -1
  300. package/lib/inputs/number/index.d.ts +14 -0
  301. package/lib/inputs/number/index.js +16 -22
  302. package/lib/inputs/number/numberfield.spec.js +47 -88
  303. package/lib/inputs/number/types.d.ts +30 -0
  304. package/lib/inputs/number/types.js +5 -0
  305. package/lib/inputs/period/Dialog.d.ts +11 -0
  306. package/lib/inputs/period/Dialog.js +5 -12
  307. package/lib/inputs/period/Dropdown.d.ts +11 -0
  308. package/lib/inputs/period/Dropdown.js +19 -63
  309. package/lib/inputs/period/PeriodList.d.ts +11 -0
  310. package/lib/inputs/period/PeriodList.js +12 -25
  311. package/lib/inputs/period/helper.d.ts +19 -0
  312. package/lib/inputs/period/helper.js +34 -74
  313. package/lib/inputs/period/index.d.ts +11 -0
  314. package/lib/inputs/period/index.js +158 -198
  315. package/lib/inputs/period/types.d.ts +58 -0
  316. package/lib/inputs/period/types.js +5 -0
  317. package/lib/inputs/search/index.d.ts +11 -0
  318. package/lib/inputs/search/index.js +147 -263
  319. package/lib/inputs/search/search_input.spec.js +50 -90
  320. package/lib/inputs/select/ActionButtons.d.ts +11 -0
  321. package/lib/inputs/select/ActionButtons.js +20 -26
  322. package/lib/inputs/select/Dropdown.d.ts +11 -0
  323. package/lib/inputs/select/Dropdown.js +59 -82
  324. package/lib/inputs/select/helper.d.ts +25 -0
  325. package/lib/inputs/select/helper.js +19 -15
  326. package/lib/inputs/select/index.d.ts +10 -0
  327. package/lib/inputs/select/index.js +25 -21
  328. package/lib/inputs/select/multiple/Selecteds.d.ts +10 -0
  329. package/lib/inputs/select/multiple/Selecteds.js +9 -17
  330. package/lib/inputs/select/multiple/index.d.ts +10 -0
  331. package/lib/inputs/select/multiple/index.js +299 -408
  332. package/lib/inputs/select/select.spec.js +135 -186
  333. package/lib/inputs/select/simple/index.d.ts +10 -0
  334. package/lib/inputs/select/simple/index.js +310 -457
  335. package/lib/inputs/select/types.d.ts +94 -0
  336. package/lib/inputs/select/types.js +5 -0
  337. package/lib/inputs/text/index.d.ts +11 -0
  338. package/lib/inputs/text/index.js +6 -5
  339. package/lib/inputs/text/textfield.spec.js +46 -87
  340. package/lib/inputs/text/types.d.ts +25 -0
  341. package/lib/inputs/text/types.js +5 -0
  342. package/lib/inputs/textarea/index.d.ts +9 -0
  343. package/lib/inputs/textarea/index.js +11 -21
  344. package/lib/inputs/textarea/textarea.spec.js +16 -29
  345. package/lib/inputs/textarea/types.d.ts +13 -0
  346. package/lib/inputs/textarea/types.js +5 -0
  347. package/lib/inputs/types.d.ts +146 -0
  348. package/lib/inputs/types.js +5 -0
  349. package/lib/internals/colorStyles.d.ts +9 -0
  350. package/lib/internals/colorStyles.js +2 -2
  351. package/lib/internals/constants.d.ts +11 -0
  352. package/lib/internals/constants.js +1 -1
  353. package/lib/internals/types.d.ts +21 -0
  354. package/lib/internals/types.js +5 -0
  355. package/lib/internals/withTooltip.d.ts +11 -0
  356. package/lib/internals/withTooltip.js +50 -48
  357. package/lib/labelMessages/index.d.ts +7 -0
  358. package/lib/labelMessages/index.js +48 -56
  359. package/lib/labelMessages/labelMessages.spec.js +44 -77
  360. package/lib/labelMessages/types.d.ts +18 -0
  361. package/lib/labelMessages/types.js +5 -0
  362. package/lib/labels/DangerLabel.d.ts +9 -0
  363. package/lib/labels/DangerLabel.js +18 -9
  364. package/lib/labels/DefaultLabel.d.ts +12 -0
  365. package/lib/labels/DefaultLabel.js +46 -68
  366. package/lib/labels/InfoLabel.d.ts +9 -0
  367. package/lib/labels/InfoLabel.js +18 -9
  368. package/lib/labels/PrimaryLabel.d.ts +9 -0
  369. package/lib/labels/PrimaryLabel.js +18 -9
  370. package/lib/labels/SuccessLabel.d.ts +9 -0
  371. package/lib/labels/SuccessLabel.js +18 -9
  372. package/lib/labels/WarningLabel.d.ts +9 -0
  373. package/lib/labels/WarningLabel.js +18 -9
  374. package/lib/labels/index.d.ts +13 -0
  375. package/lib/labels/index.js +16 -16
  376. package/lib/labels/label.spec.js +59 -86
  377. package/lib/labels/label_container/index.d.ts +12 -0
  378. package/lib/labels/label_container/index.js +7 -17
  379. package/lib/labels/types.d.ts +24 -0
  380. package/lib/labels/types.js +5 -0
  381. package/lib/list/Header.d.ts +7 -0
  382. package/lib/list/Header.js +5 -18
  383. package/lib/list/Item.d.ts +7 -0
  384. package/lib/list/Item.js +54 -82
  385. package/lib/list/Separator.d.ts +3 -0
  386. package/lib/list/Separator.js +5 -5
  387. package/lib/list/helpers.d.ts +12 -0
  388. package/lib/list/helpers.js +4 -4
  389. package/lib/list/index.d.ts +10 -0
  390. package/lib/list/index.js +63 -72
  391. package/lib/list/list.spec.js +225 -371
  392. package/lib/list/types.d.ts +64 -0
  393. package/lib/list/types.js +5 -0
  394. package/lib/menus/float/MenuItem.d.ts +7 -0
  395. package/lib/menus/float/MenuItem.js +18 -38
  396. package/lib/menus/float/float-menu.spec.js +38 -72
  397. package/lib/menus/float/helpers.d.ts +7 -0
  398. package/lib/menus/float/helpers.js +5 -5
  399. package/lib/menus/float/index.d.ts +8 -0
  400. package/lib/menus/float/index.js +18 -38
  401. package/lib/menus/float/types.d.ts +27 -0
  402. package/lib/menus/float/types.js +5 -0
  403. package/lib/menus/index.d.ts +6 -0
  404. package/lib/menus/index.js +5 -5
  405. package/lib/menus/sidenav/ExpandMenu.d.ts +10 -0
  406. package/lib/menus/sidenav/ExpandMenu.js +7 -19
  407. package/lib/menus/sidenav/MenuLink.d.ts +13 -0
  408. package/lib/menus/sidenav/MenuLink.js +6 -20
  409. package/lib/menus/sidenav/NavMenuGroup.d.ts +10 -0
  410. package/lib/menus/sidenav/NavMenuGroup.js +6 -17
  411. package/lib/menus/sidenav/NavMenuItem.d.ts +13 -0
  412. package/lib/menus/sidenav/NavMenuItem.js +47 -63
  413. package/lib/menus/sidenav/NavSubMenuItem.d.ts +10 -0
  414. package/lib/menus/sidenav/NavSubMenuItem.js +24 -25
  415. package/lib/menus/sidenav/helpers.d.ts +12 -0
  416. package/lib/menus/sidenav/helpers.js +6 -6
  417. package/lib/menus/sidenav/index.d.ts +14 -0
  418. package/lib/menus/sidenav/index.js +71 -83
  419. package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +10 -0
  420. package/lib/menus/sidenav/popup_menu_search/EmptyList.js +10 -19
  421. package/lib/menus/sidenav/popup_menu_search/index.d.ts +10 -0
  422. package/lib/menus/sidenav/popup_menu_search/index.js +41 -28
  423. package/lib/menus/sidenav/sidenav.spec.js +40 -89
  424. package/lib/menus/sidenav/types.d.ts +82 -0
  425. package/lib/menus/sidenav/types.js +5 -0
  426. package/lib/noPermission/index.d.ts +3 -0
  427. package/lib/noPermission/index.js +8 -8
  428. package/lib/panel/Content.d.ts +8 -0
  429. package/lib/panel/Content.js +15 -27
  430. package/lib/panel/DangerPanel.d.ts +8 -0
  431. package/lib/panel/DangerPanel.js +8 -8
  432. package/lib/panel/Default.d.ts +8 -0
  433. package/lib/panel/Default.js +41 -58
  434. package/lib/panel/Header.d.ts +8 -0
  435. package/lib/panel/Header.js +19 -41
  436. package/lib/panel/InfoPanel.d.ts +8 -0
  437. package/lib/panel/InfoPanel.js +8 -8
  438. package/lib/panel/PrimaryPanel.d.ts +8 -0
  439. package/lib/panel/PrimaryPanel.js +8 -8
  440. package/lib/panel/SuccessPanel.d.ts +8 -0
  441. package/lib/panel/SuccessPanel.js +8 -8
  442. package/lib/panel/ToolBar.d.ts +8 -0
  443. package/lib/panel/ToolBar.js +5 -10
  444. package/lib/panel/WarningPanel.d.ts +8 -0
  445. package/lib/panel/WarningPanel.js +8 -8
  446. package/lib/panel/helpers.d.ts +4 -0
  447. package/lib/panel/helpers.js +10 -6
  448. package/lib/panel/index.d.ts +13 -0
  449. package/lib/panel/index.js +19 -19
  450. package/lib/panel/panel.spec.js +76 -113
  451. package/lib/panel/types.d.ts +4 -0
  452. package/lib/panel/types.js +5 -0
  453. package/lib/permissionValidations.d.ts +14 -0
  454. package/lib/permissionValidations.js +14 -12
  455. package/lib/popover/PopoverText.d.ts +8 -0
  456. package/lib/popover/PopoverText.js +4 -9
  457. package/lib/popover/PopoverTitle.d.ts +8 -0
  458. package/lib/popover/PopoverTitle.js +4 -9
  459. package/lib/popover/index.d.ts +13 -0
  460. package/lib/popover/index.js +35 -49
  461. package/lib/popover/popover.spec.js +44 -74
  462. package/lib/popover/types.d.ts +21 -0
  463. package/lib/popover/types.js +5 -0
  464. package/lib/progress/Bar.d.ts +6 -0
  465. package/lib/progress/Bar.js +42 -52
  466. package/lib/progress/index.d.ts +7 -0
  467. package/lib/progress/index.js +19 -27
  468. package/lib/progress/progress.spec.js +38 -46
  469. package/lib/progress/types.d.ts +37 -0
  470. package/lib/progress/types.js +5 -0
  471. package/lib/radio/index.d.ts +12 -0
  472. package/lib/radio/index.js +45 -59
  473. package/lib/radio/radio.spec.js +51 -78
  474. package/lib/radio/types.d.ts +18 -0
  475. package/lib/radio/types.js +5 -0
  476. package/lib/skeleton/SkeletonContainer.d.ts +7 -0
  477. package/lib/skeleton/SkeletonContainer.js +4 -17
  478. package/lib/skeleton/index.d.ts +8 -0
  479. package/lib/skeleton/index.js +16 -35
  480. package/lib/skeleton/types.d.ts +21 -0
  481. package/lib/skeleton/types.js +5 -0
  482. package/lib/spinner/SpinnerLoading.d.ts +7 -0
  483. package/lib/spinner/SpinnerLoading.js +45 -53
  484. package/lib/spinner/index.d.ts +7 -0
  485. package/lib/spinner/index.js +42 -37
  486. package/lib/spinner/spinner.spec.js +47 -69
  487. package/lib/spinner/types.d.ts +20 -0
  488. package/lib/spinner/types.js +5 -0
  489. package/lib/split/Split.d.ts +6 -0
  490. package/lib/split/Split.js +83 -90
  491. package/lib/split/SplitSide.d.ts +6 -0
  492. package/lib/split/SplitSide.js +8 -28
  493. package/lib/split/helpers.d.ts +10 -0
  494. package/lib/split/helpers.js +5 -5
  495. package/lib/split/index.d.ts +5 -0
  496. package/lib/split/index.js +6 -6
  497. package/lib/split/split.spec.js +60 -73
  498. package/lib/split/types.d.ts +34 -0
  499. package/lib/split/types.js +5 -0
  500. package/lib/table/Body.d.ts +6 -0
  501. package/lib/table/Body.js +25 -32
  502. package/lib/table/Header.d.ts +6 -0
  503. package/lib/table/Header.js +52 -31
  504. package/lib/table/HeaderColumn.d.ts +6 -0
  505. package/lib/table/HeaderColumn.js +14 -28
  506. package/lib/table/Row.d.ts +6 -0
  507. package/lib/table/Row.js +15 -36
  508. package/lib/table/RowColumn.d.ts +6 -0
  509. package/lib/table/RowColumn.js +21 -39
  510. package/lib/table/helpers.d.ts +8 -0
  511. package/lib/table/helpers.js +6 -6
  512. package/lib/table/index.d.ts +11 -0
  513. package/lib/table/index.js +45 -71
  514. package/lib/table/table.spec.js +108 -163
  515. package/lib/table/types.d.ts +84 -0
  516. package/lib/table/types.js +5 -0
  517. package/lib/tabs/DropdownItems.d.ts +9 -0
  518. package/lib/tabs/DropdownItems.js +21 -31
  519. package/lib/tabs/Menu.d.ts +9 -0
  520. package/lib/tabs/Menu.js +22 -26
  521. package/lib/tabs/MenuItems.d.ts +9 -0
  522. package/lib/tabs/MenuItems.js +34 -48
  523. package/lib/tabs/Panel.d.ts +9 -0
  524. package/lib/tabs/Panel.js +38 -61
  525. package/lib/tabs/index.d.ts +10 -0
  526. package/lib/tabs/index.js +125 -99
  527. package/lib/tabs/tabHelpers.d.ts +21 -0
  528. package/lib/tabs/tabHelpers.js +13 -11
  529. package/lib/tabs/tabs.spec.js +121 -212
  530. package/lib/tabs/types.d.ts +63 -0
  531. package/lib/tabs/types.js +5 -0
  532. package/lib/toolbar/ButtonBar.d.ts +10 -0
  533. package/lib/toolbar/ButtonBar.js +54 -35
  534. package/lib/toolbar/LabelBar.d.ts +10 -0
  535. package/lib/toolbar/LabelBar.js +45 -32
  536. package/lib/toolbar/Separator.d.ts +3 -0
  537. package/lib/toolbar/Separator.js +5 -5
  538. package/lib/toolbar/ToolBarGroup.d.ts +10 -0
  539. package/lib/toolbar/ToolBarGroup.js +10 -16
  540. package/lib/toolbar/helpers.d.ts +10 -0
  541. package/lib/toolbar/helpers.js +3 -3
  542. package/lib/toolbar/index.d.ts +14 -0
  543. package/lib/toolbar/index.js +35 -41
  544. package/lib/toolbar/toolbar.spec.js +142 -190
  545. package/lib/toolbar/types.d.ts +43 -0
  546. package/lib/toolbar/types.js +5 -0
  547. package/lib/tooltip/index.d.ts +6 -0
  548. package/lib/tooltip/index.js +35 -44
  549. package/lib/tooltip/tooltip.spec.js +40 -55
  550. package/lib/tooltip/types.d.ts +16 -0
  551. package/lib/tooltip/types.js +5 -0
  552. package/lib/treetable/Body.js +46 -0
  553. package/lib/treetable/Header.js +27 -0
  554. package/lib/treetable/Row.js +261 -0
  555. package/lib/treetable/helpers.js +30 -61
  556. package/lib/treetable/index.js +13 -112
  557. package/lib/treetable/types.d.js +5 -0
  558. package/lib/treeview/Header.d.ts +7 -0
  559. package/lib/treeview/Header.js +5 -17
  560. package/lib/treeview/Node.d.ts +7 -0
  561. package/lib/treeview/Node.js +281 -391
  562. package/lib/treeview/constants.d.ts +7 -0
  563. package/lib/treeview/constants.js +3 -4
  564. package/lib/treeview/index.d.ts +9 -0
  565. package/lib/treeview/index.js +386 -555
  566. package/lib/treeview/treeview.spec.js +65 -102
  567. package/lib/treeview/types.d.ts +104 -0
  568. package/lib/treeview/types.js +5 -0
  569. package/lib/treeview_old/Header.js +8 -8
  570. package/lib/treeview_old/Node.js +38 -32
  571. package/lib/treeview_old/index.js +10 -10
  572. package/lib/types-3c6f1c20.d.ts +46 -0
  573. package/lib/uitour/helpers.d.ts +8 -0
  574. package/lib/uitour/helpers.js +1 -1
  575. package/lib/uitour/index.d.ts +6 -0
  576. package/lib/uitour/index.js +54 -59
  577. package/lib/uitour/types.d.ts +30 -0
  578. package/lib/uitour/types.js +5 -0
  579. package/lib/uitour/uitour.spec.js +63 -85
  580. package/package.json +57 -18
  581. package/scripts/start.js +135 -0
  582. package/tsconfig.json +32 -0
  583. package/tsup.config.ts +10 -0
  584. package/.eslintrc.js +0 -26
  585. package/.husky/pre-commit +0 -4
  586. package/lib/treetable/TRow.js +0 -255
  587. package/lib/treetable/treetable.spec.js +0 -302
@@ -1,27 +1,19 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
6
-
7
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
8
-
9
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
-
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); }
11
4
  var _react = _interopRequireDefault(require("react"));
12
-
13
5
  require("babel-polyfill");
14
-
15
6
  require("@testing-library/jest-dom");
16
-
17
7
  var _react2 = require("@testing-library/react");
18
-
19
8
  var _Message = _interopRequireDefault(require("./Message"));
20
-
21
9
  var _icons = _interopRequireDefault(require("../icons"));
22
-
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
12
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
13
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
14
+ 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); }
23
15
  var mockAlert = function mockAlert(props) {
24
- return /*#__PURE__*/_react["default"].createElement(_Message["default"], (0, _extends2["default"])({
16
+ return /*#__PURE__*/_react.default.createElement(_Message.default, _extends({
25
17
  id: 3,
26
18
  message: "Alerta",
27
19
  position: "rightTop",
@@ -30,23 +22,20 @@ var mockAlert = function mockAlert(props) {
30
22
  timeout: 500
31
23
  }, props));
32
24
  };
33
-
34
25
  describe('Alert', function () {
35
26
  describe('Message', function () {
36
27
  it('should render correctly', function () {
37
28
  var mockHandleClose = jest.fn();
38
-
39
29
  var _render = (0, _react2.render)(mockAlert({
40
- handleClose: mockHandleClose
41
- })),
42
- container = _render.container;
43
-
30
+ handleClose: mockHandleClose
31
+ })),
32
+ container = _render.container;
44
33
  expect(container.firstChild).toBeTruthy();
45
34
  expect(container.firstChild).toHaveTextContent('Alerta');
46
35
  });
47
- it('should close with timeout 500ms', /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
36
+ it('should close with timeout 500ms', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
48
37
  var mockHandleClose;
49
- return _regenerator["default"].wrap(function _callee$(_context) {
38
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
50
39
  while (1) {
51
40
  switch (_context.prev = _context.next) {
52
41
  case 0:
@@ -58,7 +47,6 @@ describe('Alert', function () {
58
47
  return (0, _react2.waitFor)(function () {
59
48
  return expect(mockHandleClose).toBeCalledTimes(1);
60
49
  });
61
-
62
50
  case 4:
63
51
  case "end":
64
52
  return _context.stop();
@@ -68,63 +56,52 @@ describe('Alert', function () {
68
56
  })));
69
57
  it('should apply custom class', function () {
70
58
  var mockHandleClose = jest.fn();
71
-
72
59
  var _render2 = (0, _react2.render)(mockAlert({
73
- handleClose: mockHandleClose
74
- })),
75
- container = _render2.container;
76
-
60
+ handleClose: mockHandleClose
61
+ })),
62
+ container = _render2.container;
77
63
  expect(container.firstChild).toHaveClass('mock-alert');
78
64
  });
79
65
  it('should render icon', function () {
80
66
  var mockHandleClose = jest.fn();
81
-
82
67
  var _render3 = (0, _react2.render)(mockAlert({
83
- handleClose: mockHandleClose,
84
- icon: /*#__PURE__*/_react["default"].createElement(_icons["default"], {
85
- name: "user"
86
- })
87
- })),
88
- container = _render3.container,
89
- getByTestId = _render3.getByTestId;
90
-
68
+ handleClose: mockHandleClose,
69
+ icon: /*#__PURE__*/_react.default.createElement(_icons.default, {
70
+ name: "user"
71
+ })
72
+ })),
73
+ container = _render3.container,
74
+ getByTestId = _render3.getByTestId;
91
75
  expect(container.querySelector('.-icon')).toContainElement(getByTestId('icon'));
92
76
  });
93
77
  it('should render icon by iconName', function () {
94
78
  var mockHandleClose = jest.fn();
95
-
96
79
  var _render4 = (0, _react2.render)(mockAlert({
97
- handleClose: mockHandleClose,
98
- iconName: 'user'
99
- })),
100
- container = _render4.container,
101
- getByTestId = _render4.getByTestId;
102
-
80
+ handleClose: mockHandleClose,
81
+ iconName: 'user'
82
+ })),
83
+ container = _render4.container,
84
+ getByTestId = _render4.getByTestId;
103
85
  expect(container.querySelector('.-icon')).toContainElement(getByTestId('icon'));
104
86
  });
105
87
  it('should change icon color', function () {
106
88
  var mockHandleClose = jest.fn();
107
-
108
89
  var _render5 = (0, _react2.render)(mockAlert({
109
- handleClose: mockHandleClose,
110
- iconName: 'user',
111
- color: 'red'
112
- })),
113
- getByTestId = _render5.getByTestId;
114
-
90
+ handleClose: mockHandleClose,
91
+ iconName: 'user',
92
+ color: 'red'
93
+ })),
94
+ getByTestId = _render5.getByTestId;
115
95
  expect(getByTestId('icon')).toHaveAttribute('fill', 'red');
116
96
  });
117
97
  it('should fire event on click', function () {
118
98
  var mockHandleClose = jest.fn();
119
-
120
99
  var _render6 = (0, _react2.render)(mockAlert({
121
- handleClose: mockHandleClose
122
- })),
123
- container = _render6.container,
124
- getByRole = _render6.getByRole;
125
-
100
+ handleClose: mockHandleClose
101
+ })),
102
+ container = _render6.container,
103
+ getByRole = _render6.getByRole;
126
104
  _react2.fireEvent.click(getByRole('button'));
127
-
128
105
  expect(container.querySelector('.close')).toBeInTheDocument();
129
106
  expect(container.querySelector('.close-button')).toBeInTheDocument();
130
107
  expect(mockHandleClose).toBeCalledTimes(1);
@@ -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 };
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports["default"] = void 0;
9
-
10
- var _react = _interopRequireDefault(require("react"));
6
+ exports.default = void 0;
11
7
 
12
- var AlertProviderContext = /*#__PURE__*/_react["default"].createContext();
8
+ var _react = require("react");
13
9
 
10
+ var AlertProviderContext = /*#__PURE__*/(0, _react.createContext)({});
14
11
  var _default = AlertProviderContext;
15
- exports["default"] = _default;
12
+ exports.default = _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';
@@ -1,21 +1,21 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
6
  Object.defineProperty(exports, "AlertProvider", {
9
7
  enumerable: true,
10
8
  get: function get() {
11
- return _AlertProvider["default"];
9
+ return _AlertProvider.default;
12
10
  }
13
11
  });
14
- exports["default"] = void 0;
12
+ exports.default = void 0;
15
13
 
16
14
  var _withAlert = _interopRequireDefault(require("./withAlert"));
17
15
 
18
16
  var _AlertProvider = _interopRequireDefault(require("./AlertProvider"));
19
17
 
20
- var _default = _withAlert["default"];
21
- exports["default"] = _default;
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
+
20
+ var _default = _withAlert.default;
21
+ exports.default = _default;
@@ -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,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -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 };
@@ -1,30 +1,30 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- var _typeof = require("@babel/runtime/helpers/typeof");
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); }
6
4
 
7
5
  Object.defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
10
- exports["default"] = void 0;
11
-
12
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
8
+ exports.default = void 0;
13
9
 
14
10
  var _react = _interopRequireWildcard(require("react"));
15
11
 
16
12
  var _helpers = _interopRequireDefault(require("./helpers"));
17
13
 
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
18
16
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
17
 
20
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
18
+ function _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
+
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
21
 
22
22
  var withAlert = function withAlert(WrapperComponent) {
23
23
  var GetAlert = function GetAlert(props) {
24
- var _useContext = (0, _react.useContext)(_helpers["default"]),
24
+ var _useContext = (0, _react.useContext)(_helpers.default),
25
25
  alert = _useContext.alert;
26
26
 
27
- return /*#__PURE__*/_react["default"].createElement(WrapperComponent, (0, _extends2["default"])({}, props, {
27
+ return /*#__PURE__*/_react.default.createElement(WrapperComponent, _extends({}, props, {
28
28
  alert: alert
29
29
  }));
30
30
  };
@@ -33,4 +33,4 @@ var withAlert = function withAlert(WrapperComponent) {
33
33
  };
34
34
 
35
35
  var _default = withAlert;
36
- exports["default"] = _default;
36
+ exports.default = _default;
@@ -116,16 +116,6 @@
116
116
  }
117
117
  }
118
118
 
119
- %skeleton-transparency {
120
- content: '';
121
- position: absolute;
122
- width: 100%;
123
- height: 100%;
124
- background: rgb(255,255,255);
125
- background: linear-gradient( 180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 30%,
126
- rgba(255,255,255,0.6) 70%,rgba(255,255,255,0.8) 100%);
127
- }
128
-
129
119
  /* Efeito utilizado para o componente Skeleton */
130
120
  @keyframes shimmer {
131
121
  0% {
@@ -1,7 +1,6 @@
1
1
  @import "commons.scss";
2
2
  @import "effects.scss";
3
3
  .dropdown-component {
4
- min-width: 200px;
5
4
  position: absolute;
6
5
  animation: 0.3s ease-in 0s 1 slideDown, revealelement 0.3s forwards ease-in-out;
7
6
  box-shadow: -6px 6px 50px -12px rgba(51, 51, 51, 0.4);
@@ -20,14 +20,6 @@ $item-height: 48px;
20
20
  line-height: 40px!important;
21
21
  }
22
22
  }
23
- > .skeleton-transparency {
24
- position: relative;
25
- &::after {
26
- @extend %skeleton-transparency;
27
- top: 0;
28
- left: 0;
29
- }
30
- }
31
23
  }
32
24
 
33
25
  .item-container {
@@ -1,6 +1,5 @@
1
1
  @import "colors.scss";
2
2
  @import "effects.scss";
3
- @import "commons.scss";
4
3
 
5
4
  .table-component {
6
5
  width: 100%;
@@ -24,7 +23,13 @@
24
23
  > .tbody {
25
24
  position: relative;
26
25
  &.skeleton-transparency::before {
27
- @extend %skeleton-transparency;
26
+ content: '';
27
+ position: absolute;
28
+ width: 100%;
29
+ height: 100%;
30
+ background: rgb(255,255,255);
31
+ background: linear-gradient( 180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 30%,
32
+ rgba(255,255,255,0.6) 70%,rgba(255,255,255,0.8) 100%);
28
33
  }
29
34
  }
30
35
  > .headercontainer > .innertable > .theader > .trow,
@@ -5,29 +5,27 @@
5
5
  .treetable-container {
6
6
  width: 100%;
7
7
  height: auto;
8
-
9
8
  padding: 0px;
10
9
  margin: 12px 0;
11
10
  }
12
11
 
13
12
  table {
14
13
  tbody {
14
+ .tree-row-element {
15
+ animation: revealelement 0.3s forwards ease-in-out;
16
+ }
17
+
15
18
  .open-close-children {
16
19
  outline: 0;
17
20
  border: 0;
18
21
  display: flex;
19
22
  align-items: center;
20
-
21
23
  width: auto;
22
24
  height: auto;
23
-
24
25
  background-color: transparent;
25
26
  border-radius: 4px;
26
-
27
27
  font-size: 0px;
28
-
29
28
  padding: 4px 4px 4px 0;
30
-
31
29
  cursor: pointer;
32
30
  }
33
31
 
@@ -44,6 +42,10 @@ table {
44
42
  border-bottom: 1px solid $component-border-color-soft;
45
43
  }
46
44
 
45
+ .tr-loading-childrens {
46
+ animation: revealelement 0.3s forwards ease-in-out;
47
+ }
48
+
47
49
  .td-loading-childrens-container {
48
50
  width: 100%;
49
51
  height: 35px;
@@ -56,7 +58,6 @@ table {
56
58
  .column-more-childrens {
57
59
  width: auto;
58
60
  max-height: 24px;
59
-
60
61
  display: flex;
61
62
  align-items: center;
62
63
  }
@@ -65,9 +66,7 @@ table {
65
66
  content: "";
66
67
  height: 34px;
67
68
  position: relative;
68
-
69
69
  right: 0.5rem;
70
-
71
70
  border-left: 2px solid $component-border-color-soft;
72
71
  }
73
72
 
@@ -84,15 +83,14 @@ table {
84
83
  span.container-toolbar-buttons {
85
84
  width: 100%;
86
85
  height: auto;
87
-
86
+ margin-left: 4px;
88
87
  margin-right: 16px;
89
88
  }
90
89
 
91
90
  .row-toolbar {
92
91
  width: 100%;
93
92
  height: auto;
94
- margin-left: 8px;
95
-
93
+ margin-left: 4px;
96
94
  display: flex;
97
95
  flex-direction: row;
98
96
  align-items: center;