linear-react-components-ui 1.1.26-beta.9 → 1.1.27-rc.0

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 (879) hide show
  1. package/lib/@types/Align.d.ts +4 -2
  2. package/lib/@types/Align.js +5 -0
  3. package/lib/@types/ButtonTypes.d.ts +3 -1
  4. package/lib/@types/ButtonTypes.js +5 -0
  5. package/lib/@types/ColorStyles.d.ts +4 -1
  6. package/lib/@types/ColorStyles.js +5 -0
  7. package/lib/@types/DataCombo.d.ts +3 -1
  8. package/lib/@types/DataCombo.js +5 -0
  9. package/lib/@types/Icon.d.ts +5 -2
  10. package/lib/@types/Icon.js +5 -0
  11. package/lib/@types/LabelStyles.d.ts +3 -1
  12. package/lib/@types/LabelStyles.js +5 -0
  13. package/lib/@types/Period.d.ts +3 -1
  14. package/lib/@types/Period.js +5 -0
  15. package/lib/@types/PermissionAttr.d.ts +4 -2
  16. package/lib/@types/PermissionAttr.js +5 -0
  17. package/lib/@types/PointerEvents.d.ts +3 -1
  18. package/lib/@types/PointerEvents.js +5 -0
  19. package/lib/@types/Position.d.ts +4 -1
  20. package/lib/@types/Position.js +5 -0
  21. package/lib/@types/PositionAlert.d.ts +3 -1
  22. package/lib/@types/PositionAlert.js +5 -0
  23. package/lib/@types/Size.d.ts +3 -1
  24. package/lib/@types/Size.js +5 -0
  25. package/lib/@types/SizePixels.d.ts +3 -1
  26. package/lib/@types/SizePixels.js +5 -0
  27. package/lib/@types/StorageMock.d.ts +3 -1
  28. package/lib/@types/StorageMock.js +5 -0
  29. package/lib/BaseMask-78847f45.d.ts +24 -0
  30. package/lib/Cnpj-8366781f.d.ts +18 -0
  31. package/lib/Cpf-3dfd54eb.d.ts +18 -0
  32. package/lib/Phone-1962c0f2.d.ts +18 -0
  33. package/lib/ZipCode-be9c5b3b.d.ts +13 -0
  34. package/lib/alerts/AlertContainer.d.ts +8 -2
  35. package/lib/alerts/AlertContainer.js +70 -60
  36. package/lib/alerts/AlertProvider.d.ts +9 -3
  37. package/lib/alerts/AlertProvider.js +63 -37
  38. package/lib/alerts/BaseAlert.d.ts +9 -3
  39. package/lib/alerts/BaseAlert.js +31 -17
  40. package/lib/alerts/Message.d.ts +9 -3
  41. package/lib/alerts/Message.js +111 -92
  42. package/lib/alerts/helpers.d.ts +9 -3
  43. package/lib/alerts/helpers.js +9 -5
  44. package/lib/alerts/index.d.ts +11 -4
  45. package/lib/alerts/index.js +16 -6
  46. package/lib/alerts/types.d.ts +14 -10
  47. package/lib/alerts/types.js +5 -0
  48. package/lib/alerts/withAlert.d.ts +9 -4
  49. package/lib/alerts/withAlert.js +22 -13
  50. package/lib/assets/fonts/Roboto-Black.woff +0 -0
  51. package/lib/assets/fonts/Roboto-Black.woff2 +0 -0
  52. package/lib/assets/fonts/Roboto-Bold.woff +0 -0
  53. package/lib/assets/fonts/Roboto-Bold.woff2 +0 -0
  54. package/lib/assets/fonts/Roboto-Light.woff +0 -0
  55. package/lib/assets/fonts/Roboto-Light.woff2 +0 -0
  56. package/lib/assets/fonts/Roboto-Medium.woff +0 -0
  57. package/lib/assets/fonts/Roboto-Medium.woff2 +0 -0
  58. package/lib/assets/fonts/Roboto-Regular.woff +0 -0
  59. package/lib/assets/fonts/Roboto-Regular.woff2 +0 -0
  60. package/lib/assets/fonts/Roboto-Thin.woff +0 -0
  61. package/lib/assets/fonts/Roboto-Thin.woff2 +0 -0
  62. package/lib/assets/fonts/TitilliumWeb-Black.woff +0 -0
  63. package/lib/assets/fonts/TitilliumWeb-Black.woff2 +0 -0
  64. package/lib/assets/fonts/TitilliumWeb-Bold.woff +0 -0
  65. package/lib/assets/fonts/TitilliumWeb-Bold.woff2 +0 -0
  66. package/lib/assets/fonts/TitilliumWeb-ExtraLight.woff +0 -0
  67. package/lib/assets/fonts/TitilliumWeb-ExtraLight.woff2 +0 -0
  68. package/lib/assets/fonts/TitilliumWeb-Light.woff +0 -0
  69. package/lib/assets/fonts/TitilliumWeb-Light.woff2 +0 -0
  70. package/lib/assets/fonts/TitilliumWeb-Regular.woff +0 -0
  71. package/lib/assets/fonts/TitilliumWeb-Regular.woff2 +0 -0
  72. package/lib/assets/fonts/TitilliumWeb-SemiBold.woff +0 -0
  73. package/lib/assets/fonts/TitilliumWeb-SemiBold.woff2 +0 -0
  74. package/lib/assets/images/logo.png +0 -0
  75. package/lib/assets/styles/alerts.scss +149 -0
  76. package/lib/assets/styles/avatar.scss +42 -0
  77. package/lib/assets/styles/badge.scss +48 -0
  78. package/lib/assets/styles/button.scss +373 -0
  79. package/lib/assets/styles/calendar.scss +311 -0
  80. package/lib/assets/styles/checkbox.scss +108 -0
  81. package/lib/assets/styles/checkbox2.scss +199 -0
  82. package/lib/assets/styles/colorpicker.scss +12 -0
  83. package/lib/assets/styles/colors.scss +180 -0
  84. package/lib/assets/styles/commons.scss +138 -0
  85. package/lib/assets/styles/datepicker.scss +36 -0
  86. package/lib/assets/styles/datepicker2.scss +336 -0
  87. package/lib/assets/styles/dialog.scss +200 -0
  88. package/lib/assets/styles/drawers.scss +158 -0
  89. package/lib/assets/styles/dropdown.scss +179 -0
  90. package/lib/assets/styles/effects.scss +821 -0
  91. package/lib/assets/styles/error.scss +9 -0
  92. package/lib/assets/styles/fieldset.scss +96 -0
  93. package/lib/assets/styles/file.scss +229 -0
  94. package/lib/assets/styles/filefield.scss +42 -0
  95. package/lib/assets/styles/floatMenu.scss +15 -0
  96. package/lib/assets/styles/fonts.scss +86 -0
  97. package/lib/assets/styles/form.scss +23 -0
  98. package/lib/assets/styles/gridlayout.scss +2055 -0
  99. package/lib/assets/styles/hint.scss +30 -0
  100. package/lib/assets/styles/icon.scss +42 -0
  101. package/lib/assets/styles/input.scss +156 -0
  102. package/lib/assets/styles/label.scss +118 -0
  103. package/lib/assets/styles/labelMessages.scss +81 -0
  104. package/lib/assets/styles/list.scss +124 -0
  105. package/lib/assets/styles/multiSelect.scss +125 -0
  106. package/lib/assets/styles/noPermission.scss +25 -0
  107. package/lib/assets/styles/numberfield.scss +18 -0
  108. package/lib/assets/styles/numbers.scss +5 -0
  109. package/lib/assets/styles/panel.scss +95 -0
  110. package/lib/assets/styles/periodpicker.scss +109 -0
  111. package/lib/assets/styles/popover.scss +44 -0
  112. package/lib/assets/styles/progress.scss +72 -0
  113. package/lib/assets/styles/radio.scss +156 -0
  114. package/lib/assets/styles/radiofield.scss +185 -0
  115. package/lib/assets/styles/search.scss +13 -0
  116. package/lib/assets/styles/select.scss +159 -0
  117. package/lib/assets/styles/selectfield.scss +411 -0
  118. package/lib/assets/styles/shortcuts.scss +59 -0
  119. package/lib/assets/styles/sidenav.scss +409 -0
  120. package/lib/assets/styles/skeleton.scss +48 -0
  121. package/lib/assets/styles/slot.scss +34 -0
  122. package/lib/assets/styles/spinner.scss +34 -0
  123. package/lib/assets/styles/split.scss +80 -0
  124. package/lib/assets/styles/table.scss +185 -0
  125. package/lib/assets/styles/tabs.scss +308 -0
  126. package/lib/assets/styles/textContent.scss +9 -0
  127. package/lib/assets/styles/textfield.scss +186 -0
  128. package/lib/assets/styles/toolbar.scss +74 -0
  129. package/lib/assets/styles/tooltip.scss +96 -0
  130. package/lib/assets/styles/treetable.scss +100 -0
  131. package/lib/assets/styles/treeview.scss +112 -0
  132. package/lib/assets/styles/uitour.scss +112 -0
  133. package/lib/assets/styles/wizard.scss +186 -0
  134. package/lib/avatar/index.d.ts +9 -3
  135. package/lib/avatar/index.js +87 -53
  136. package/lib/avatar/types.d.ts +8 -4
  137. package/lib/avatar/types.js +5 -0
  138. package/lib/badge/index.d.ts +6 -3
  139. package/lib/badge/index.js +29 -27
  140. package/lib/badge/types.d.ts +4 -1
  141. package/lib/badge/types.js +5 -0
  142. package/lib/buttons/ActivateButton.d.ts +12 -3
  143. package/lib/buttons/ActivateButton.js +14 -11
  144. package/lib/buttons/AddButton.d.ts +12 -3
  145. package/lib/buttons/AddButton.js +18 -14
  146. package/lib/buttons/Button.d.ts +12 -3
  147. package/lib/buttons/Button.js +21 -18
  148. package/lib/buttons/ButtonGroups.d.ts +4 -2
  149. package/lib/buttons/ButtonGroups.js +16 -11
  150. package/lib/buttons/CancelButton.d.ts +12 -3
  151. package/lib/buttons/CancelButton.js +22 -15
  152. package/lib/buttons/DangerButton.d.ts +12 -3
  153. package/lib/buttons/DangerButton.js +22 -16
  154. package/lib/buttons/DefaultButton.d.ts +12 -3
  155. package/lib/buttons/DefaultButton.js +180 -91
  156. package/lib/buttons/DestroyButton.d.ts +12 -3
  157. package/lib/buttons/DestroyButton.js +21 -22
  158. package/lib/buttons/EditButton.d.ts +12 -3
  159. package/lib/buttons/EditButton.js +14 -11
  160. package/lib/buttons/InactivateButton.d.ts +12 -3
  161. package/lib/buttons/InactivateButton.js +14 -11
  162. package/lib/buttons/InfoButton.d.ts +12 -3
  163. package/lib/buttons/InfoButton.js +22 -16
  164. package/lib/buttons/PrimaryButton.d.ts +12 -3
  165. package/lib/buttons/PrimaryButton.js +22 -16
  166. package/lib/buttons/RestoreButton.d.ts +12 -3
  167. package/lib/buttons/RestoreButton.js +14 -11
  168. package/lib/buttons/SaveButton.d.ts +12 -3
  169. package/lib/buttons/SaveButton.js +22 -15
  170. package/lib/buttons/SuccessButton.d.ts +12 -3
  171. package/lib/buttons/SuccessButton.js +22 -16
  172. package/lib/buttons/WarningButton.d.ts +12 -3
  173. package/lib/buttons/WarningButton.js +22 -16
  174. package/lib/buttons/button_container/index.d.ts +6 -4
  175. package/lib/buttons/button_container/index.js +29 -22
  176. package/lib/buttons/index.d.ts +27 -17
  177. package/lib/buttons/index.js +108 -33
  178. package/lib/buttons/split_button/index.d.ts +12 -3
  179. package/lib/buttons/split_button/index.js +62 -57
  180. package/lib/buttons/types.d.ts +16 -12
  181. package/lib/buttons/types.js +5 -0
  182. package/lib/calendar/DangerCalendar.d.ts +8 -3
  183. package/lib/calendar/DangerCalendar.js +17 -19
  184. package/lib/calendar/InfoCalendar.d.ts +8 -3
  185. package/lib/calendar/InfoCalendar.js +17 -19
  186. package/lib/calendar/PrimaryCalendar.d.ts +8 -3
  187. package/lib/calendar/PrimaryCalendar.js +17 -19
  188. package/lib/calendar/SuccessCalendar.d.ts +8 -3
  189. package/lib/calendar/SuccessCalendar.js +17 -19
  190. package/lib/calendar/WarningCalendar.d.ts +8 -3
  191. package/lib/calendar/WarningCalendar.js +17 -19
  192. package/lib/calendar/base/helpers.d.ts +18 -15
  193. package/lib/calendar/base/helpers.js +96 -79
  194. package/lib/calendar/base/index.d.ts +8 -3
  195. package/lib/calendar/base/index.js +204 -135
  196. package/lib/calendar/index.d.ts +14 -8
  197. package/lib/calendar/index.js +44 -14
  198. package/lib/calendar/types.d.ts +8 -5
  199. package/lib/calendar/types.js +5 -0
  200. package/lib/checkbox/index.d.ts +8 -4
  201. package/lib/checkbox/index.js +146 -32
  202. package/lib/checkbox/types.d.ts +8 -5
  203. package/lib/checkbox/types.js +5 -0
  204. package/lib/dialog/Alert.d.ts +9 -3
  205. package/lib/dialog/Alert.js +31 -23
  206. package/lib/dialog/Custom.d.ts +9 -3
  207. package/lib/dialog/Custom.js +53 -45
  208. package/lib/dialog/Error.d.ts +9 -3
  209. package/lib/dialog/Error.js +31 -23
  210. package/lib/dialog/Information.d.ts +9 -3
  211. package/lib/dialog/Information.js +31 -23
  212. package/lib/dialog/Question.d.ts +9 -3
  213. package/lib/dialog/Question.js +62 -46
  214. package/lib/dialog/Warning.d.ts +9 -3
  215. package/lib/dialog/Warning.js +31 -23
  216. package/lib/dialog/base/Content.d.ts +9 -3
  217. package/lib/dialog/base/Content.js +21 -14
  218. package/lib/dialog/base/Footer.d.ts +9 -3
  219. package/lib/dialog/base/Footer.js +12 -10
  220. package/lib/dialog/base/Header.d.ts +9 -3
  221. package/lib/dialog/base/Header.js +56 -7
  222. package/lib/dialog/base/index.d.ts +10 -5
  223. package/lib/dialog/base/index.js +202 -9
  224. package/lib/dialog/base/style.js +13 -0
  225. package/lib/dialog/form/index.d.ts +10 -5
  226. package/lib/dialog/form/index.js +126 -15
  227. package/lib/dialog/index.d.ts +16 -9
  228. package/lib/dialog/index.js +51 -16
  229. package/lib/dialog/types.d.ts +25 -16
  230. package/lib/dialog/types.js +5 -0
  231. package/lib/dialog/wizard/index.d.ts +13 -9
  232. package/lib/dialog/wizard/index.js +79 -15
  233. package/lib/dialog/wizard/progressbar.d.ts +5 -2
  234. package/lib/dialog/wizard/progressbar.js +37 -97
  235. package/lib/dialog/wizard/step.d.ts +9 -2
  236. package/lib/dialog/wizard/step.js +22 -6
  237. package/lib/dialog/wizard/useWizard.d.ts +9 -2
  238. package/lib/dialog/wizard/useWizard.js +46 -44
  239. package/lib/drawer/Content.d.ts +10 -3
  240. package/lib/drawer/Content.js +24 -17
  241. package/lib/drawer/Drawer.d.ts +10 -4
  242. package/lib/drawer/Drawer.js +140 -71
  243. package/lib/drawer/Header.d.ts +10 -3
  244. package/lib/drawer/Header.js +73 -54
  245. package/lib/drawer/helpers.d.ts +10 -4
  246. package/lib/drawer/helpers.js +10 -5
  247. package/lib/drawer/index.d.ts +12 -5
  248. package/lib/drawer/index.js +25 -10
  249. package/lib/drawer/types.d.ts +12 -7
  250. package/lib/drawer/types.js +5 -0
  251. package/lib/dropdown/Popup.d.ts +6 -3
  252. package/lib/dropdown/Popup.js +86 -47
  253. package/lib/dropdown/helper.d.ts +4 -2
  254. package/lib/dropdown/helper.js +15 -7
  255. package/lib/dropdown/types.d.ts +10 -7
  256. package/lib/dropdown/types.js +5 -0
  257. package/lib/dropdown/withDropdown.d.ts +8 -7
  258. package/lib/dropdown/withDropdown.js +89 -77
  259. package/lib/fieldset/index.d.ts +8 -3
  260. package/lib/fieldset/index.js +80 -68
  261. package/lib/fieldset/types.d.ts +8 -5
  262. package/lib/fieldset/types.js +5 -0
  263. package/lib/form/Field.d.ts +14 -2
  264. package/lib/form/Field.js +126 -90
  265. package/lib/form/FieldArray.d.ts +14 -2
  266. package/lib/form/FieldArray.js +94 -61
  267. package/lib/form/FieldNumber.d.ts +14 -2
  268. package/lib/form/FieldNumber.js +75 -47
  269. package/lib/form/FieldPeriod.d.ts +14 -2
  270. package/lib/form/FieldPeriod.js +97 -92
  271. package/lib/form/helpers.d.ts +19 -8
  272. package/lib/form/helpers.js +47 -25
  273. package/lib/form/index.d.ts +18 -8
  274. package/lib/form/index.js +297 -140
  275. package/lib/form/types.d.ts +45 -23
  276. package/lib/form/types.js +5 -0
  277. package/lib/form/withFieldHOC.d.ts +14 -4
  278. package/lib/form/withFieldHOC.js +69 -59
  279. package/lib/form/withFormSecurity.d.ts +15 -6
  280. package/lib/form/withFormSecurity.js +52 -28
  281. package/lib/form2/helpers.d.ts +8 -0
  282. package/lib/form2/helpers.js +41 -0
  283. package/lib/form2/index.d.ts +9 -0
  284. package/lib/form2/index.js +36 -0
  285. package/lib/form2/types.d.ts +129 -0
  286. package/lib/form2/types.js +5 -0
  287. package/lib/form2/useForm/index.d.ts +5 -0
  288. package/lib/form2/useForm/index.js +210 -0
  289. package/lib/gridlayout/GridCol.d.ts +6 -3
  290. package/lib/gridlayout/GridCol.js +32 -25
  291. package/lib/gridlayout/GridRow.d.ts +6 -3
  292. package/lib/gridlayout/GridRow.js +30 -25
  293. package/lib/gridlayout/index.d.ts +8 -4
  294. package/lib/gridlayout/index.js +16 -6
  295. package/lib/gridlayout/types.d.ts +6 -3
  296. package/lib/gridlayout/types.js +5 -0
  297. package/lib/hint/helpers.d.ts +3 -1
  298. package/lib/hint/helpers.js +21 -12
  299. package/lib/hint/index.d.ts +7 -3
  300. package/lib/hint/index.js +29 -29
  301. package/lib/hint/types.d.ts +5 -2
  302. package/lib/hint/types.js +5 -0
  303. package/lib/icons/helper.d.ts +34 -1
  304. package/lib/icons/helper.js +356 -321
  305. package/lib/icons/index.d.ts +13 -6
  306. package/lib/icons/index.js +77 -65
  307. package/lib/icons/types.d.ts +13 -13
  308. package/lib/icons/types.js +5 -0
  309. package/lib/index-02a27c19.d.ts +26 -0
  310. package/lib/index-053f615b.d.ts +26 -0
  311. package/lib/index-25b80f32.d.ts +22 -0
  312. package/lib/index-368f781f.d.ts +15 -0
  313. package/lib/index-696662fe.d.ts +15 -0
  314. package/lib/index-6f5c772d.d.ts +23 -0
  315. package/lib/index-6fcf446c.d.ts +26 -0
  316. package/lib/index-7159df18.d.ts +21 -0
  317. package/lib/index-c9247c1f.d.ts +15 -0
  318. package/lib/index-ecafc8c6.d.ts +30 -0
  319. package/lib/index.d.ts +40 -10
  320. package/lib/index.js +69 -28
  321. package/lib/inputs/base/InputTextBase.d.ts +11 -3
  322. package/lib/inputs/base/InputTextBase.js +267 -172
  323. package/lib/inputs/base/helpers.d.ts +16 -9
  324. package/lib/inputs/base/helpers.js +39 -27
  325. package/lib/inputs/base/types.d.ts +14 -20
  326. package/lib/inputs/base/types.js +5 -0
  327. package/lib/inputs/color/index.d.ts +7 -3
  328. package/lib/inputs/color/index.js +89 -52
  329. package/lib/inputs/color/types.d.ts +6 -3
  330. package/lib/inputs/color/types.js +5 -0
  331. package/lib/inputs/date/Dialog.d.ts +13 -3
  332. package/lib/inputs/date/Dialog.js +25 -16
  333. package/lib/inputs/date/Dropdown.d.ts +13 -3
  334. package/lib/inputs/date/Dropdown.js +38 -17
  335. package/lib/inputs/date/helpers.d.ts +34 -2
  336. package/lib/inputs/date/helpers.js +47 -9
  337. package/lib/inputs/date/index.d.ts +13 -3
  338. package/lib/inputs/date/index.js +284 -120
  339. package/lib/inputs/date/types.d.ts +15 -7
  340. package/lib/inputs/date/types.js +5 -0
  341. package/lib/inputs/errorMessage/index.d.ts +16 -4
  342. package/lib/inputs/errorMessage/index.js +24 -23
  343. package/lib/inputs/file/DefaultFile.d.ts +13 -3
  344. package/lib/inputs/file/DefaultFile.js +79 -67
  345. package/lib/inputs/file/DragDropFile.d.ts +13 -3
  346. package/lib/inputs/file/DragDropFile.js +266 -128
  347. package/lib/inputs/file/File.d.ts +13 -3
  348. package/lib/inputs/file/File.js +62 -29
  349. package/lib/inputs/file/FileButtonSettings.d.ts +13 -3
  350. package/lib/inputs/file/FileButtonSettings.js +32 -23
  351. package/lib/inputs/file/helpers.d.ts +13 -2
  352. package/lib/inputs/file/helpers.js +19 -9
  353. package/lib/inputs/file/index.d.ts +16 -5
  354. package/lib/inputs/file/index.js +23 -8
  355. package/lib/inputs/file/types.d.ts +16 -8
  356. package/lib/inputs/file/types.js +5 -0
  357. package/lib/inputs/inputHOC.d.ts +16 -4
  358. package/lib/inputs/inputHOC.js +42 -41
  359. package/lib/inputs/mask/BaseMask.d.ts +12 -3
  360. package/lib/inputs/mask/BaseMask.js +148 -2649
  361. package/lib/inputs/mask/Cnpj.d.ts +12 -3
  362. package/lib/inputs/mask/Cnpj.js +57 -44
  363. package/lib/inputs/mask/Cpf.d.ts +12 -3
  364. package/lib/inputs/mask/Cpf.js +55 -47
  365. package/lib/inputs/mask/Phone.d.ts +12 -3
  366. package/lib/inputs/mask/Phone.js +18 -12
  367. package/lib/inputs/mask/ZipCode.d.ts +12 -3
  368. package/lib/inputs/mask/ZipCode.js +14 -11
  369. package/lib/inputs/mask/helpers.d.ts +15 -52
  370. package/lib/inputs/mask/helpers.js +118 -62
  371. package/lib/inputs/mask/index.d.ts +17 -7
  372. package/lib/inputs/mask/index.js +37 -12
  373. package/lib/inputs/mask/types.d.ts +17 -10
  374. package/lib/inputs/mask/types.js +5 -0
  375. package/lib/inputs/multiSelect/ActionButtons.d.ts +13 -3
  376. package/lib/inputs/multiSelect/ActionButtons.js +49 -38
  377. package/lib/inputs/multiSelect/Dropdown.d.ts +13 -3
  378. package/lib/inputs/multiSelect/Dropdown.js +134 -95
  379. package/lib/inputs/multiSelect/helper.d.ts +12 -2
  380. package/lib/inputs/multiSelect/helper.js +20 -7
  381. package/lib/inputs/multiSelect/index.d.ts +13 -3
  382. package/lib/inputs/multiSelect/index.js +231 -174
  383. package/lib/inputs/multiSelect/types.d.ts +18 -8
  384. package/lib/inputs/multiSelect/types.js +5 -0
  385. package/lib/inputs/number/BaseNumber.d.ts +17 -3
  386. package/lib/inputs/number/BaseNumber.js +66 -47
  387. package/lib/inputs/number/Currency.d.ts +17 -3
  388. package/lib/inputs/number/Currency.js +27 -20
  389. package/lib/inputs/number/Decimal.d.ts +17 -3
  390. package/lib/inputs/number/Decimal.js +11 -11
  391. package/lib/inputs/number/format_number.d.ts +5 -3
  392. package/lib/inputs/number/format_number.js +28 -8
  393. package/lib/inputs/number/index.d.ts +19 -6
  394. package/lib/inputs/number/index.js +63 -33
  395. package/lib/inputs/number/types.d.ts +21 -10
  396. package/lib/inputs/number/types.js +5 -0
  397. package/lib/inputs/period/Dialog.d.ts +14 -3
  398. package/lib/inputs/period/Dialog.js +26 -17
  399. package/lib/inputs/period/Dropdown.d.ts +14 -3
  400. package/lib/inputs/period/Dropdown.js +37 -16
  401. package/lib/inputs/period/PeriodList.d.ts +14 -3
  402. package/lib/inputs/period/PeriodList.js +45 -36
  403. package/lib/inputs/period/helper.d.ts +16 -5
  404. package/lib/inputs/period/helper.js +55 -30
  405. package/lib/inputs/period/index.d.ts +14 -3
  406. package/lib/inputs/period/index.js +529 -198
  407. package/lib/inputs/period/types.d.ts +22 -13
  408. package/lib/inputs/period/types.js +5 -0
  409. package/lib/inputs/search/index.d.ts +16 -3
  410. package/lib/inputs/search/index.js +125 -97
  411. package/lib/inputs/select/ActionButtons.d.ts +16 -3
  412. package/lib/inputs/select/ActionButtons.js +38 -27
  413. package/lib/inputs/select/Dropdown.d.ts +16 -3
  414. package/lib/inputs/select/Dropdown.js +111 -68
  415. package/lib/inputs/select/helper.d.ts +21 -7
  416. package/lib/inputs/select/helper.js +109 -46
  417. package/lib/inputs/select/index.d.ts +13 -3
  418. package/lib/inputs/select/index.js +40 -25
  419. package/lib/inputs/select/multiple/Selecteds.d.ts +13 -3
  420. package/lib/inputs/select/multiple/Selecteds.js +26 -24
  421. package/lib/inputs/select/multiple/index.d.ts +13 -3
  422. package/lib/inputs/select/multiple/index.js +279 -116
  423. package/lib/inputs/select/simple/index.d.ts +13 -3
  424. package/lib/inputs/select/simple/index.js +297 -135
  425. package/lib/inputs/select/types.d.ts +22 -14
  426. package/lib/inputs/select/types.js +5 -0
  427. package/lib/inputs/text/index.d.ts +12 -3
  428. package/lib/inputs/text/index.js +13 -11
  429. package/lib/inputs/text/types.d.ts +11 -8
  430. package/lib/inputs/text/types.js +5 -0
  431. package/lib/inputs/textarea/index.d.ts +12 -3
  432. package/lib/inputs/textarea/index.js +24 -15
  433. package/lib/inputs/textarea/types.d.ts +11 -2
  434. package/lib/inputs/textarea/types.js +5 -0
  435. package/lib/inputs/types.d.ts +25 -17
  436. package/lib/inputs/types.js +5 -0
  437. package/lib/inputs2/checkboxfield/base.d.ts +29 -0
  438. package/lib/inputs2/checkboxfield/base.js +134 -0
  439. package/lib/inputs2/checkboxfield/index.d.ts +8 -0
  440. package/lib/inputs2/checkboxfield/index.js +57 -0
  441. package/lib/inputs2/colorfield/index.d.ts +10 -0
  442. package/lib/inputs2/colorfield/index.js +119 -0
  443. package/lib/inputs2/date/base/constants.d.ts +7 -0
  444. package/lib/inputs2/date/base/constants.js +44 -0
  445. package/lib/inputs2/date/base/index.d.ts +12 -0
  446. package/lib/inputs2/date/base/index.js +177 -0
  447. package/lib/inputs2/date/datefield/base.d.ts +13 -0
  448. package/lib/inputs2/date/datefield/base.js +330 -0
  449. package/lib/inputs2/date/datefield/calendarbox.d.ts +7 -0
  450. package/lib/inputs2/date/datefield/calendarbox.js +116 -0
  451. package/lib/inputs2/date/datefield/context.d.ts +14 -0
  452. package/lib/inputs2/date/datefield/context.js +15 -0
  453. package/lib/inputs2/date/datefield/index.d.ts +10 -0
  454. package/lib/inputs2/date/datefield/index.js +57 -0
  455. package/lib/inputs2/date/datefield/triggers.d.ts +8 -0
  456. package/lib/inputs2/date/datefield/triggers.js +46 -0
  457. package/lib/inputs2/date/datefield/types.d.ts +65 -0
  458. package/lib/inputs2/date/datefield/types.js +5 -0
  459. package/lib/inputs2/date/dateperiodfield/base.d.ts +13 -0
  460. package/lib/inputs2/date/dateperiodfield/base.js +595 -0
  461. package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +7 -0
  462. package/lib/inputs2/date/dateperiodfield/calendarbox.js +138 -0
  463. package/lib/inputs2/date/dateperiodfield/context.d.ts +14 -0
  464. package/lib/inputs2/date/dateperiodfield/context.js +17 -0
  465. package/lib/inputs2/date/dateperiodfield/index.d.ts +10 -0
  466. package/lib/inputs2/date/dateperiodfield/index.js +57 -0
  467. package/lib/inputs2/date/dateperiodfield/triggers.d.ts +6 -0
  468. package/lib/inputs2/date/dateperiodfield/triggers.js +125 -0
  469. package/lib/inputs2/date/dateperiodfield/types.d.ts +103 -0
  470. package/lib/inputs2/date/dateperiodfield/types.js +19 -0
  471. package/lib/inputs2/date/helpers.d.ts +21 -0
  472. package/lib/inputs2/date/helpers.js +62 -0
  473. package/lib/inputs2/date/types.d.ts +60 -0
  474. package/lib/inputs2/date/types.js +19 -0
  475. package/lib/inputs2/filefield/index.d.ts +10 -0
  476. package/lib/inputs2/filefield/index.js +174 -0
  477. package/lib/inputs2/index.d.ts +38 -0
  478. package/lib/inputs2/index.js +37 -0
  479. package/lib/inputs2/mask/BaseMask.d.ts +11 -0
  480. package/lib/inputs2/mask/BaseMask.js +95 -0
  481. package/lib/inputs2/mask/Cnpj.d.ts +12 -0
  482. package/lib/inputs2/mask/Cnpj.js +56 -0
  483. package/lib/inputs2/mask/Cpf.d.ts +12 -0
  484. package/lib/inputs2/mask/Cpf.js +52 -0
  485. package/lib/inputs2/mask/Phone.d.ts +12 -0
  486. package/lib/inputs2/mask/Phone.js +25 -0
  487. package/lib/inputs2/mask/ZipCode.d.ts +12 -0
  488. package/lib/inputs2/mask/ZipCode.js +22 -0
  489. package/lib/inputs2/mask/helpers.d.ts +4 -0
  490. package/lib/inputs2/mask/helpers.js +57 -0
  491. package/lib/inputs2/numberfield/currency.d.ts +14 -0
  492. package/lib/inputs2/numberfield/currency.js +91 -0
  493. package/lib/inputs2/numberfield/decimal.d.ts +14 -0
  494. package/lib/inputs2/numberfield/decimal.js +85 -0
  495. package/lib/inputs2/numberfield/helpers.d.ts +30 -0
  496. package/lib/inputs2/numberfield/helpers.js +53 -0
  497. package/lib/inputs2/numberfield/index.d.ts +13 -0
  498. package/lib/inputs2/numberfield/index.js +121 -0
  499. package/lib/inputs2/numberfield/types.d.ts +37 -0
  500. package/lib/inputs2/numberfield/types.js +5 -0
  501. package/lib/inputs2/radiofield/base.d.ts +12 -0
  502. package/lib/inputs2/radiofield/base.js +156 -0
  503. package/lib/inputs2/radiofield/index.d.ts +9 -0
  504. package/lib/inputs2/radiofield/index.js +55 -0
  505. package/lib/inputs2/radiofield/types.d.ts +36 -0
  506. package/lib/inputs2/radiofield/types.js +5 -0
  507. package/lib/inputs2/selectfield/base.d.ts +11 -0
  508. package/lib/inputs2/selectfield/base.js +513 -0
  509. package/lib/inputs2/selectfield/context.d.ts +39 -0
  510. package/lib/inputs2/selectfield/context.js +15 -0
  511. package/lib/inputs2/selectfield/helpers.d.ts +6 -0
  512. package/lib/inputs2/selectfield/helpers.js +25 -0
  513. package/lib/inputs2/selectfield/index.d.ts +11 -0
  514. package/lib/inputs2/selectfield/index.js +84 -0
  515. package/lib/inputs2/selectfield/item.d.ts +12 -0
  516. package/lib/inputs2/selectfield/item.js +89 -0
  517. package/lib/inputs2/selectfield/listbox.d.ts +7 -0
  518. package/lib/inputs2/selectfield/listbox.js +117 -0
  519. package/lib/inputs2/selectfield/options.d.ts +9 -0
  520. package/lib/inputs2/selectfield/options.js +26 -0
  521. package/lib/inputs2/selectfield/search.d.ts +7 -0
  522. package/lib/inputs2/selectfield/search.js +70 -0
  523. package/lib/inputs2/selectfield/selections.d.ts +10 -0
  524. package/lib/inputs2/selectfield/selections.js +87 -0
  525. package/lib/inputs2/selectfield/triggers.d.ts +8 -0
  526. package/lib/inputs2/selectfield/triggers.js +109 -0
  527. package/lib/inputs2/selectfield/types.d.ts +56 -0
  528. package/lib/inputs2/selectfield/types.js +21 -0
  529. package/lib/inputs2/slot/index.d.ts +14 -0
  530. package/lib/inputs2/slot/index.js +47 -0
  531. package/lib/inputs2/textareafield/base.d.ts +26 -0
  532. package/lib/inputs2/textareafield/base.js +166 -0
  533. package/lib/inputs2/textareafield/index.d.ts +9 -0
  534. package/lib/inputs2/textareafield/index.js +70 -0
  535. package/lib/inputs2/textfield/base.d.ts +26 -0
  536. package/lib/inputs2/textfield/base.js +131 -0
  537. package/lib/inputs2/textfield/index.d.ts +9 -0
  538. package/lib/inputs2/textfield/index.js +70 -0
  539. package/lib/internals/colorStyles.d.ts +2 -1
  540. package/lib/internals/colorStyles.js +13 -9
  541. package/lib/internals/constants.d.ts +7 -2
  542. package/lib/internals/constants.js +11 -5
  543. package/lib/internals/types.d.ts +4 -17
  544. package/lib/internals/types.js +5 -0
  545. package/lib/labelMessages/index.d.ts +9 -3
  546. package/lib/labelMessages/index.js +56 -51
  547. package/lib/labelMessages/types.d.ts +7 -3
  548. package/lib/labelMessages/types.js +5 -0
  549. package/lib/labels/DangerLabel.d.ts +12 -3
  550. package/lib/labels/DangerLabel.js +17 -19
  551. package/lib/labels/DefaultLabel.d.ts +12 -6
  552. package/lib/labels/DefaultLabel.js +57 -53
  553. package/lib/labels/InfoLabel.d.ts +12 -3
  554. package/lib/labels/InfoLabel.js +17 -19
  555. package/lib/labels/PrimaryLabel.d.ts +12 -3
  556. package/lib/labels/PrimaryLabel.js +17 -19
  557. package/lib/labels/SuccessLabel.d.ts +12 -3
  558. package/lib/labels/SuccessLabel.js +17 -19
  559. package/lib/labels/WarningLabel.d.ts +12 -3
  560. package/lib/labels/WarningLabel.js +17 -19
  561. package/lib/labels/index.d.ts +19 -9
  562. package/lib/labels/index.js +52 -17
  563. package/lib/labels/label_container/index.d.ts +6 -4
  564. package/lib/labels/label_container/index.js +21 -17
  565. package/lib/labels/types.d.ts +10 -9
  566. package/lib/labels/types.js +5 -0
  567. package/lib/list/Header.d.ts +11 -3
  568. package/lib/list/Header.js +22 -19
  569. package/lib/list/Item.d.ts +11 -6
  570. package/lib/list/Item.js +164 -13
  571. package/lib/list/Separator.d.ts +3 -2
  572. package/lib/list/Separator.js +12 -10
  573. package/lib/list/helpers.d.ts +11 -4
  574. package/lib/list/helpers.js +14 -10
  575. package/lib/list/index.d.ts +14 -7
  576. package/lib/list/index.js +171 -95
  577. package/lib/list/types.d.ts +16 -14
  578. package/lib/list/types.js +5 -0
  579. package/lib/menus/float/MenuItem.d.ts +9 -3
  580. package/lib/menus/float/MenuItem.js +65 -52
  581. package/lib/menus/float/SubMenuContainer.js +76 -0
  582. package/lib/menus/float/helpers.d.ts +9 -4
  583. package/lib/menus/float/helpers.js +10 -5
  584. package/lib/menus/float/index.d.ts +40 -6
  585. package/lib/menus/float/index.js +66 -111
  586. package/lib/menus/float/types.d.ts +9 -5
  587. package/lib/menus/float/types.js +5 -0
  588. package/lib/menus/index.d.ts +12 -2
  589. package/lib/menus/index.js +9 -4
  590. package/lib/menus/sidenav/ExpandMenu.d.ts +12 -3
  591. package/lib/menus/sidenav/ExpandMenu.js +26 -18
  592. package/lib/menus/sidenav/MenuLink.d.ts +12 -6
  593. package/lib/menus/sidenav/MenuLink.js +35 -22
  594. package/lib/menus/sidenav/NavMenuGroup.d.ts +12 -3
  595. package/lib/menus/sidenav/NavMenuGroup.js +24 -21
  596. package/lib/menus/sidenav/NavMenuItem.d.ts +12 -6
  597. package/lib/menus/sidenav/NavMenuItem.js +148 -133
  598. package/lib/menus/sidenav/NavSubMenuItem.d.ts +12 -3
  599. package/lib/menus/sidenav/NavSubMenuItem.js +41 -38
  600. package/lib/menus/sidenav/helpers.d.ts +13 -5
  601. package/lib/menus/sidenav/helpers.js +17 -9
  602. package/lib/menus/sidenav/index.d.ts +16 -8
  603. package/lib/menus/sidenav/index.js +179 -146
  604. package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +12 -3
  605. package/lib/menus/sidenav/popup_menu_search/EmptyList.js +25 -22
  606. package/lib/menus/sidenav/popup_menu_search/index.d.ts +12 -4
  607. package/lib/menus/sidenav/popup_menu_search/index.js +109 -50
  608. package/lib/menus/sidenav/types.d.ts +25 -20
  609. package/lib/menus/sidenav/types.js +5 -0
  610. package/lib/noPermission/index.d.ts +3 -2
  611. package/lib/noPermission/index.js +23 -16
  612. package/lib/panel/Content.d.ts +10 -3
  613. package/lib/panel/Content.js +78 -50
  614. package/lib/panel/DangerPanel.d.ts +10 -3
  615. package/lib/panel/DangerPanel.js +15 -12
  616. package/lib/panel/Default.d.ts +10 -3
  617. package/lib/panel/Default.js +63 -65
  618. package/lib/panel/Header.d.ts +10 -3
  619. package/lib/panel/Header.js +72 -56
  620. package/lib/panel/InfoPanel.d.ts +10 -3
  621. package/lib/panel/InfoPanel.js +15 -12
  622. package/lib/panel/PrimaryPanel.d.ts +10 -3
  623. package/lib/panel/PrimaryPanel.js +15 -12
  624. package/lib/panel/SuccessPanel.d.ts +10 -3
  625. package/lib/panel/SuccessPanel.js +15 -12
  626. package/lib/panel/ToolBar.d.ts +10 -3
  627. package/lib/panel/ToolBar.js +21 -18
  628. package/lib/panel/WarningPanel.d.ts +10 -3
  629. package/lib/panel/WarningPanel.js +15 -12
  630. package/lib/panel/helpers.d.ts +11 -5
  631. package/lib/panel/helpers.js +23 -13
  632. package/lib/panel/index.d.ts +18 -10
  633. package/lib/panel/index.js +59 -19
  634. package/lib/panel/types.d.ts +15 -11
  635. package/lib/panel/types.js +5 -0
  636. package/lib/permissionValidations.d.ts +6 -4
  637. package/lib/permissionValidations.js +53 -40
  638. package/lib/popover/PopoverText.d.ts +11 -4
  639. package/lib/popover/PopoverText.js +27 -13
  640. package/lib/popover/PopoverTitle.d.ts +11 -3
  641. package/lib/popover/PopoverTitle.js +16 -11
  642. package/lib/popover/index.d.ts +13 -6
  643. package/lib/popover/index.js +69 -38
  644. package/lib/popover/types.d.ts +13 -8
  645. package/lib/popover/types.js +5 -0
  646. package/lib/progress/Bar.d.ts +6 -3
  647. package/lib/progress/Bar.js +70 -47
  648. package/lib/progress/index.d.ts +7 -5
  649. package/lib/progress/index.js +37 -25
  650. package/lib/progress/types.d.ts +7 -4
  651. package/lib/progress/types.js +5 -0
  652. package/lib/radio/index.d.ts +11 -3
  653. package/lib/radio/index.js +112 -111
  654. package/lib/radio/types.d.ts +6 -3
  655. package/lib/radio/types.js +5 -0
  656. package/lib/shortcuts/index.d.ts +7 -3
  657. package/lib/shortcuts/index.js +27 -21
  658. package/lib/shortcuts/types.d.ts +5 -2
  659. package/lib/shortcuts/types.js +5 -0
  660. package/lib/skeleton/SkeletonContainer.d.ts +7 -3
  661. package/lib/skeleton/SkeletonContainer.js +21 -18
  662. package/lib/skeleton/index.d.ts +8 -5
  663. package/lib/skeleton/index.js +50 -48
  664. package/lib/skeleton/types.d.ts +6 -3
  665. package/lib/skeleton/types.js +5 -0
  666. package/lib/spinner/SpinnerLoading.d.ts +7 -3
  667. package/lib/spinner/SpinnerLoading.js +219 -54
  668. package/lib/spinner/index.d.ts +7 -3
  669. package/lib/spinner/index.js +57 -49
  670. package/lib/spinner/types.d.ts +8 -5
  671. package/lib/spinner/types.js +5 -0
  672. package/lib/split/Split.d.ts +6 -3
  673. package/lib/split/Split.js +272 -174
  674. package/lib/split/SplitSide.d.ts +6 -3
  675. package/lib/split/SplitSide.js +40 -26
  676. package/lib/split/helpers.d.ts +6 -4
  677. package/lib/split/helpers.js +10 -5
  678. package/lib/split/index.d.ts +8 -4
  679. package/lib/split/index.js +17 -6
  680. package/lib/split/types.d.ts +6 -3
  681. package/lib/split/types.js +5 -0
  682. package/lib/table/Body.d.ts +8 -3
  683. package/lib/table/Body.js +67 -43
  684. package/lib/table/Header.d.ts +8 -3
  685. package/lib/table/Header.js +88 -48
  686. package/lib/table/HeaderColumn.d.ts +8 -3
  687. package/lib/table/HeaderColumn.js +53 -42
  688. package/lib/table/Row.d.ts +8 -3
  689. package/lib/table/Row.js +87 -52
  690. package/lib/table/RowColumn.d.ts +8 -3
  691. package/lib/table/RowColumn.js +76 -54
  692. package/lib/table/helpers.d.ts +9 -6
  693. package/lib/table/helpers.js +15 -9
  694. package/lib/table/index.d.ts +13 -9
  695. package/lib/table/index.js +148 -102
  696. package/lib/table/types.d.ts +14 -8
  697. package/lib/table/types.js +5 -0
  698. package/lib/tabs/DropdownTabs.d.ts +11 -3
  699. package/lib/tabs/DropdownTabs.js +84 -82
  700. package/lib/tabs/Menu.d.ts +11 -3
  701. package/lib/tabs/Menu.js +47 -37
  702. package/lib/tabs/MenuTabs.d.ts +11 -4
  703. package/lib/tabs/MenuTabs.js +88 -62
  704. package/lib/tabs/Panel.d.ts +11 -3
  705. package/lib/tabs/Panel.js +81 -58
  706. package/lib/tabs/context.d.ts +12 -4
  707. package/lib/tabs/context.js +126 -59
  708. package/lib/tabs/index.d.ts +12 -5
  709. package/lib/tabs/index.js +74 -72
  710. package/lib/tabs/tabHelpers.d.ts +10 -7
  711. package/lib/tabs/tabHelpers.js +62 -40
  712. package/lib/tabs/types.d.ts +24 -14
  713. package/lib/tabs/types.js +5 -0
  714. package/lib/tabs/useTabs.d.ts +11 -1
  715. package/lib/tabs/useTabs.js +11 -8
  716. package/lib/textContent/index.d.ts +10 -11
  717. package/lib/textContent/index.js +45 -32
  718. package/lib/toolbar/ButtonBar.d.ts +12 -3
  719. package/lib/toolbar/ButtonBar.js +64 -66
  720. package/lib/toolbar/LabelBar.d.ts +12 -3
  721. package/lib/toolbar/LabelBar.js +56 -50
  722. package/lib/toolbar/Separator.d.ts +3 -2
  723. package/lib/toolbar/Separator.js +12 -10
  724. package/lib/toolbar/ToolBarGroup.d.ts +12 -3
  725. package/lib/toolbar/ToolBarGroup.js +18 -15
  726. package/lib/toolbar/helpers.d.ts +12 -3
  727. package/lib/toolbar/helpers.js +9 -5
  728. package/lib/toolbar/index.d.ts +16 -8
  729. package/lib/toolbar/index.js +64 -38
  730. package/lib/toolbar/types.d.ts +15 -11
  731. package/lib/toolbar/types.js +5 -0
  732. package/lib/tooltip/TooltipContent.d.ts +7 -0
  733. package/lib/tooltip/TooltipContent.js +64 -0
  734. package/lib/tooltip/index.d.ts +7 -4
  735. package/lib/tooltip/index.js +46 -39
  736. package/lib/tooltip/types.d.ts +28 -4
  737. package/lib/tooltip/types.js +5 -0
  738. package/lib/tooltip/useTooltip.d.ts +30 -0
  739. package/lib/tooltip/useTooltip.js +153 -0
  740. package/lib/treetable/Body.d.ts +3 -2
  741. package/lib/treetable/Body.js +32 -33
  742. package/lib/treetable/Header.d.ts +3 -2
  743. package/lib/treetable/Header.js +22 -29
  744. package/lib/treetable/Row.d.ts +9 -3
  745. package/lib/treetable/Row.js +228 -212
  746. package/lib/treetable/helpers.d.ts +13 -5
  747. package/lib/treetable/helpers.js +30 -15
  748. package/lib/treetable/index.d.ts +10 -4
  749. package/lib/treetable/index.js +27 -27
  750. package/lib/treetable/types.d.js +5 -0
  751. package/lib/treeview/Header.d.ts +7 -3
  752. package/lib/treeview/Header.js +20 -15
  753. package/lib/treeview/Node.d.ts +7 -3
  754. package/lib/treeview/Node.js +235 -197
  755. package/lib/treeview/constants.d.ts +7 -3
  756. package/lib/treeview/constants.js +9 -5
  757. package/lib/treeview/index.d.ts +9 -6
  758. package/lib/treeview/index.js +307 -256
  759. package/lib/treeview/types.d.ts +14 -12
  760. package/lib/treeview/types.js +5 -0
  761. package/lib/types.d-b477e076.d.ts +47 -0
  762. package/lib/uitour/helpers.d.ts +2 -1
  763. package/lib/uitour/helpers.js +12 -9
  764. package/lib/uitour/index.d.ts +7 -4
  765. package/lib/uitour/index.js +237 -168
  766. package/lib/uitour/types.d.ts +10 -7
  767. package/lib/uitour/types.js +5 -0
  768. package/package.json +82 -45
  769. package/lib/alerts/alert.spec.d.ts +0 -0
  770. package/lib/assets/BaseAlert.css +0 -1
  771. package/lib/assets/Content.css +0 -1
  772. package/lib/assets/DefaultFile.css +0 -1
  773. package/lib/assets/Drawer.css +0 -1
  774. package/lib/assets/InputTextBase.css +0 -1
  775. package/lib/assets/button.css +0 -1
  776. package/lib/assets/gridlayout.css +0 -1
  777. package/lib/assets/index.css +0 -1
  778. package/lib/assets/index10.css +0 -1
  779. package/lib/assets/index11.css +0 -1
  780. package/lib/assets/index12.css +0 -1
  781. package/lib/assets/index13.css +0 -1
  782. package/lib/assets/index14.css +0 -1
  783. package/lib/assets/index15.css +0 -1
  784. package/lib/assets/index16.css +0 -1
  785. package/lib/assets/index17.css +0 -1
  786. package/lib/assets/index18.css +0 -1
  787. package/lib/assets/index19.css +0 -1
  788. package/lib/assets/index2.css +0 -1
  789. package/lib/assets/index20.css +0 -1
  790. package/lib/assets/index21.css +0 -1
  791. package/lib/assets/index22.css +0 -1
  792. package/lib/assets/index23.css +0 -1
  793. package/lib/assets/index24.css +0 -1
  794. package/lib/assets/index25.css +0 -1
  795. package/lib/assets/index26.css +0 -1
  796. package/lib/assets/index27.css +0 -1
  797. package/lib/assets/index28.css +0 -1
  798. package/lib/assets/index3.css +0 -1
  799. package/lib/assets/index4.css +0 -1
  800. package/lib/assets/index5.css +0 -1
  801. package/lib/assets/index6.css +0 -1
  802. package/lib/assets/index7.css +0 -1
  803. package/lib/assets/index8.css +0 -1
  804. package/lib/assets/index9.css +0 -1
  805. package/lib/assets/label.css +0 -1
  806. package/lib/assets/noPermission.css +0 -1
  807. package/lib/assets/panel.css +0 -1
  808. package/lib/assets/progressbar.css +0 -1
  809. package/lib/assets/radio.css +0 -1
  810. package/lib/assets/skeleton.css +0 -1
  811. package/lib/assets/table.css +0 -1
  812. package/lib/assets/tabs.css +0 -1
  813. package/lib/assets/toolbar.css +0 -1
  814. package/lib/assets/withDropdown.css +0 -1
  815. package/lib/avatar/avatar.spec.d.ts +0 -1
  816. package/lib/badge/badge.spec.d.ts +0 -1
  817. package/lib/buttons/buttons.spec.d.ts +0 -0
  818. package/lib/calendar/base/Day.d.ts +0 -3
  819. package/lib/calendar/base/Day.js +0 -37
  820. package/lib/calendar/base/Month.d.ts +0 -3
  821. package/lib/calendar/base/Month.js +0 -28
  822. package/lib/calendar/base/Week.d.ts +0 -3
  823. package/lib/calendar/base/Week.js +0 -24
  824. package/lib/calendar/calendar.spec.d.ts +0 -0
  825. package/lib/checkbox/checkbox.spec.d.ts +0 -1
  826. package/lib/chunks/compiler-runtime.Cu50tn6L.js +0 -54
  827. package/lib/chunks/index.Df3kt2LQ.js +0 -667
  828. package/lib/chunks/index.aw0XaUkg.js +0 -266
  829. package/lib/chunks/jsx-runtime.D1SHvdVE.js +0 -282
  830. package/lib/chunks/lodash.CIAK_hAg.js +0 -3684
  831. package/lib/chunks/moment.DMLRxgRE.js +0 -2589
  832. package/lib/chunks/tabs.BvKfeA6Y.js +0 -244
  833. package/lib/chunks/v1.Ds1rkxUj.js +0 -49
  834. package/lib/dialog/base/style.d.ts +0 -7
  835. package/lib/dialog/dialog.spec.d.ts +0 -0
  836. package/lib/dialog/wizard/wizard.spec.d.ts +0 -0
  837. package/lib/drawer/Drawer.spec.d.ts +0 -1
  838. package/lib/dropdown/dropdown.spec.d.ts +0 -1
  839. package/lib/fieldset/fieldset.spec.d.ts +0 -1
  840. package/lib/form/form.spec.d.ts +0 -0
  841. package/lib/gridlayout/gridLayout.spec.d.ts +0 -1
  842. package/lib/hint/hint.spec.d.ts +0 -1
  843. package/lib/icons/icons.spec.d.ts +0 -1
  844. package/lib/inputs/base/Label.d.ts +0 -6
  845. package/lib/inputs/base/Label.js +0 -30
  846. package/lib/inputs/base/base.spec.d.ts +0 -1
  847. package/lib/inputs/color/color_input.spec.d.ts +0 -0
  848. package/lib/inputs/date/date.spec.d.ts +0 -1
  849. package/lib/inputs/errorMessage/error.spec.d.ts +0 -1
  850. package/lib/inputs/file/filefield.spec.d.ts +0 -1
  851. package/lib/inputs/mask/input_mask.spec.d.ts +0 -0
  852. package/lib/inputs/multiSelect/multiSelect.spec.d.ts +0 -1
  853. package/lib/inputs/number/numberfield.spec.d.ts +0 -1
  854. package/lib/inputs/search/search_input.spec.d.ts +0 -1
  855. package/lib/inputs/select/select.spec.d.ts +0 -1
  856. package/lib/inputs/text/textfield.spec.d.ts +0 -1
  857. package/lib/inputs/textarea/textarea.spec.d.ts +0 -1
  858. package/lib/internals/withTooltip.d.ts +0 -8
  859. package/lib/internals/withTooltip.js +0 -122
  860. package/lib/labelMessages/labelMessages.spec.d.ts +0 -1
  861. package/lib/labels/label.spec.d.ts +0 -1
  862. package/lib/list/list.spec.d.ts +0 -1
  863. package/lib/menus/float/SubMenuContainer.d.ts +0 -29
  864. package/lib/menus/float/float-menu.spec.d.ts +0 -0
  865. package/lib/menus/sidenav/sidenav.spec.d.ts +0 -1
  866. package/lib/panel/panel.spec.d.ts +0 -0
  867. package/lib/popover/popover.spec.d.ts +0 -1
  868. package/lib/progress/progress.spec.d.ts +0 -1
  869. package/lib/radio/radio.spec.d.ts +0 -1
  870. package/lib/shortcuts/shortcuts.spec.d.ts +0 -0
  871. package/lib/spinner/spinner.spec.d.ts +0 -1
  872. package/lib/split/split.spec.d.ts +0 -0
  873. package/lib/table/table.spec.d.ts +0 -1
  874. package/lib/tabs/tabs.spec.d.ts +0 -0
  875. package/lib/textContent/textContent.spec.d.ts +0 -1
  876. package/lib/toolbar/toolbar.spec.d.ts +0 -1
  877. package/lib/tooltip/tooltip.spec.d.ts +0 -1
  878. package/lib/treeview/treeview.spec.d.ts +0 -0
  879. package/lib/uitour/uitour.spec.d.ts +0 -0
@@ -1,193 +1,291 @@
1
- import { j as y } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
- import { useState as U, useRef as L, useEffect as b } from "react";
3
- import V from "./helpers.js";
4
- const q = ({
5
- hotKey: h,
6
- secondaryInitialSize: z = 0,
7
- onSecondaryPaneSizeChange: w,
8
- vertical: f,
9
- primaryIndex: M = 0,
10
- percentage: P,
11
- primaryMinSize: m = 0,
12
- secondaryMinSize: R = 0,
13
- customClass: x,
14
- children: S = [],
15
- hideSplitSideOnToggleClick: C = "primary",
16
- style: N,
17
- nodeParameter: H
18
- }) => {
19
- const [e, s] = U({
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _helpers = _interopRequireDefault(require("./helpers"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
11
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
15
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
16
+ const Split = _ref => {
17
+ let {
18
+ hotKey,
19
+ secondaryInitialSize = 0,
20
+ onSecondaryPaneSizeChange,
21
+ vertical,
22
+ primaryIndex = 0,
23
+ percentage,
24
+ primaryMinSize = 0,
25
+ secondaryMinSize = 0,
26
+ customClass,
27
+ children = [],
28
+ hideSplitSideOnToggleClick = 'primary',
29
+ style,
30
+ nodeParameter
31
+ } = _ref;
32
+ const [state, setState] = (0, _react.useState)({
20
33
  secondaryPaneSize: 0,
21
- resizing: !1,
22
- visibleSplitSide: !0,
23
- isHidePane: !0
24
- }), c = L(null), d = L(null), v = (t, i, o, l) => {
25
- let r = f ? t.height : t.width, n = f ? i.height : i.width, u = f ? o.top - t.top : o.left - t.left;
26
- l && (u -= n / 2), u < 0 ? u = 0 : u > r - n && (u = r - n);
27
- let a;
28
- a = M === 1 ? u : r - n - u;
29
- let g = r - n - a;
30
- return P && (a = a * 100 / r, g = g * 100 / r, n = n * 100 / r, r = 100), g < m ? a = Math.max(a - (m - g), 0) : a < R && (a = Math.min(r - n - m, R)), a;
31
- }, _ = () => {
32
- const t = Selection;
33
- if (document.createRange() && H) {
34
- const i = document.createRange();
35
- i.collapse(), i.selectNode(H);
34
+ resizing: false,
35
+ visibleSplitSide: true,
36
+ isHidePane: true
37
+ });
38
+ const container = (0, _react.useRef)();
39
+ const splitter = (0, _react.useRef)();
40
+ const getSecondaryPaneSize = (containerRect, splitterRect, clientPosition, offsetMouse) => {
41
+ let totalSize = vertical ? containerRect.height : containerRect.width;
42
+ let splitterSize = vertical ? splitterRect.height : splitterRect.width;
43
+ let offset = vertical ? clientPosition.top - containerRect.top : clientPosition.left - containerRect.left;
44
+ if (offsetMouse) {
45
+ offset -= splitterSize / 2;
46
+ }
47
+ if (offset < 0) {
48
+ offset = 0;
49
+ } else if (offset > totalSize - splitterSize) {
50
+ offset = totalSize - splitterSize;
51
+ }
52
+ let secondaryPaneSize;
53
+ secondaryPaneSize = primaryIndex === 1 ? offset : totalSize - splitterSize - offset;
54
+ let primaryPaneSize = totalSize - splitterSize - secondaryPaneSize;
55
+ if (percentage) {
56
+ secondaryPaneSize = secondaryPaneSize * 100 / totalSize;
57
+ primaryPaneSize = primaryPaneSize * 100 / totalSize;
58
+ splitterSize = splitterSize * 100 / totalSize;
59
+ totalSize = 100;
60
+ }
61
+ if (primaryPaneSize < primaryMinSize) {
62
+ secondaryPaneSize = Math.max(secondaryPaneSize - (primaryMinSize - primaryPaneSize), 0);
63
+ } else if (secondaryPaneSize < secondaryMinSize) {
64
+ secondaryPaneSize = Math.min(totalSize - splitterSize - primaryMinSize, secondaryMinSize);
65
+ }
66
+ return secondaryPaneSize;
67
+ };
68
+ const clearSelection = () => {
69
+ const docuemntSelection = Selection;
70
+ if (document.createRange() && nodeParameter) {
71
+ const range = document.createRange();
72
+ range.collapse();
73
+ range.selectNode(nodeParameter);
36
74
  } else if (window.getSelection) {
37
- const i = window.getSelection();
38
- i && i.empty ? i.empty() : i && i.removeAllRanges && i.removeAllRanges();
39
- } else t && t.empty();
40
- }, k = () => {
41
- if (c.current && d.current && !P) {
42
- const t = c.current.getBoundingClientRect(), i = d.current.getBoundingClientRect(), o = v(t, i, {
43
- left: i.left,
44
- top: i.top
45
- }, !1);
46
- s({
47
- ...e,
48
- secondaryPaneSize: o
49
- });
75
+ const selection = window.getSelection();
76
+ if (selection && selection.empty) {
77
+ selection.empty();
78
+ } else if (selection && selection.removeAllRanges) {
79
+ selection.removeAllRanges();
80
+ }
81
+ } else if (docuemntSelection) {
82
+ docuemntSelection.empty();
50
83
  }
51
- }, E = (t) => {
52
- if (c.current && d.current && e.resizing) {
53
- const i = c.current.getBoundingClientRect(), o = d.current.getBoundingClientRect(), l = v(i, o, {
54
- left: t.clientX,
55
- top: t.clientY
56
- }, !0);
57
- _(), s({
58
- ...e,
59
- secondaryPaneSize: l
60
- });
84
+ };
85
+ const handleResize = () => {
86
+ if (container.current && splitter.current && !percentage) {
87
+ const containerRect = container.current.getBoundingClientRect();
88
+ const splitterRect = splitter.current.getBoundingClientRect();
89
+ const secondaryPaneSize = getSecondaryPaneSize(containerRect, splitterRect, {
90
+ left: splitterRect.left,
91
+ top: splitterRect.top
92
+ }, false);
93
+ setState(_objectSpread(_objectSpread({}, state), {}, {
94
+ secondaryPaneSize
95
+ }));
61
96
  }
62
- }, A = () => {
63
- _(), s({
64
- ...e,
65
- resizing: !0
66
- });
67
- }, j = (t) => {
68
- const i = t.keyCode || t.which, o = z, l = {
97
+ };
98
+ const handleMouseMove = e => {
99
+ if (container.current && splitter.current && state.resizing) {
100
+ const containerRect = container.current.getBoundingClientRect();
101
+ const splitterRect = splitter.current.getBoundingClientRect();
102
+ const secondaryPaneSize = getSecondaryPaneSize(containerRect, splitterRect, {
103
+ left: e.clientX,
104
+ top: e.clientY
105
+ }, true);
106
+ clearSelection();
107
+ setState(_objectSpread(_objectSpread({}, state), {}, {
108
+ secondaryPaneSize
109
+ }));
110
+ }
111
+ };
112
+ const handleSplitterMouseDown = () => {
113
+ clearSelection();
114
+ setState(_objectSpread(_objectSpread({}, state), {}, {
115
+ resizing: true
116
+ }));
117
+ };
118
+ const expandAndCollapseSide = event => {
119
+ const keyCode = event.keyCode || event.which;
120
+ const secondaryPaneValue = secondaryInitialSize;
121
+ const arrow = {
69
122
  left: 37,
70
123
  up: 38,
71
124
  right: 39,
72
125
  down: 40
73
- }, {
74
- isHidePane: r,
75
- visibleSplitSide: n
76
- } = e;
77
- if (t.ctrlKey)
78
- switch (s({
79
- ...e,
80
- visibleSplitSide: !1
81
- }), i) {
82
- case l.left:
83
- r ? s({
84
- ...e,
85
- visibleSplitSide: !n,
86
- secondaryPaneSize: 100,
87
- isHidePane: !1
88
- }) : e.secondaryPaneSize && s({
89
- ...e,
90
- visibleSplitSide: !n,
91
- secondaryPaneSize: o,
92
- isHidePane: !0
93
- });
126
+ };
127
+ const {
128
+ isHidePane,
129
+ visibleSplitSide
130
+ } = state;
131
+ if (event.ctrlKey) {
132
+ setState(_objectSpread(_objectSpread({}, state), {}, {
133
+ visibleSplitSide: false
134
+ }));
135
+ switch (keyCode) {
136
+ case arrow.left:
137
+ if (isHidePane) {
138
+ setState(_objectSpread(_objectSpread({}, state), {}, {
139
+ visibleSplitSide: !visibleSplitSide,
140
+ secondaryPaneSize: 100,
141
+ isHidePane: false
142
+ }));
143
+ } else if (state.secondaryPaneSize) {
144
+ setState(_objectSpread(_objectSpread({}, state), {}, {
145
+ visibleSplitSide: !visibleSplitSide,
146
+ secondaryPaneSize: secondaryPaneValue,
147
+ isHidePane: true
148
+ }));
149
+ }
150
+ break;
151
+ case arrow.right:
152
+ if (isHidePane) {
153
+ setState(_objectSpread(_objectSpread({}, state), {}, {
154
+ visibleSplitSide: !visibleSplitSide,
155
+ secondaryPaneSize: 0,
156
+ isHidePane: false
157
+ }));
158
+ } else {
159
+ setState(_objectSpread(_objectSpread({}, state), {}, {
160
+ visibleSplitSide: !visibleSplitSide,
161
+ secondaryPaneSize: secondaryPaneValue,
162
+ isHidePane: true
163
+ }));
164
+ }
94
165
  break;
95
- case l.right:
96
- s(r ? {
97
- ...e,
98
- visibleSplitSide: !n,
99
- secondaryPaneSize: 0,
100
- isHidePane: !1
101
- } : {
102
- ...e,
103
- visibleSplitSide: !n,
104
- secondaryPaneSize: o,
105
- isHidePane: !0
106
- });
166
+ case arrow.up:
167
+ if (isHidePane) {
168
+ setState(_objectSpread(_objectSpread({}, state), {}, {
169
+ visibleSplitSide: !visibleSplitSide,
170
+ secondaryPaneSize: 100,
171
+ isHidePane: false
172
+ }));
173
+ } else {
174
+ setState(_objectSpread(_objectSpread({}, state), {}, {
175
+ visibleSplitSide: !visibleSplitSide,
176
+ secondaryPaneSize: secondaryPaneValue,
177
+ isHidePane: true
178
+ }));
179
+ }
107
180
  break;
108
- case l.up:
109
- s(r ? {
110
- ...e,
111
- visibleSplitSide: !n,
112
- secondaryPaneSize: 100,
113
- isHidePane: !1
114
- } : {
115
- ...e,
116
- visibleSplitSide: !n,
117
- secondaryPaneSize: o,
118
- isHidePane: !0
119
- });
181
+ case arrow.down:
182
+ if (isHidePane) {
183
+ setState(_objectSpread(_objectSpread({}, state), {}, {
184
+ visibleSplitSide: !visibleSplitSide,
185
+ secondaryPaneSize: 0,
186
+ isHidePane: false
187
+ }));
188
+ } else {
189
+ setState(_objectSpread(_objectSpread({}, state), {}, {
190
+ visibleSplitSide: !visibleSplitSide,
191
+ secondaryPaneSize: secondaryPaneValue,
192
+ isHidePane: true
193
+ }));
194
+ }
120
195
  break;
121
- case l.down:
122
- s(r ? {
123
- ...e,
124
- visibleSplitSide: !n,
125
- secondaryPaneSize: 0,
126
- isHidePane: !1
127
- } : {
128
- ...e,
129
- visibleSplitSide: !n,
130
- secondaryPaneSize: o,
131
- isHidePane: !0
132
- });
196
+ default:
133
197
  break;
134
198
  }
199
+ }
135
200
  };
136
- b(() => {
137
- let t;
138
- if (window.addEventListener("resize", k), h && document.addEventListener("keyup", j), z)
139
- t = z;
140
- else if (c.current && d.current) {
141
- const i = c.current.getBoundingClientRect(), o = d.current.getBoundingClientRect();
142
- t = v(i, o, {
143
- left: i.left + (i.width - o.width) / 2,
144
- top: i.top + (i.height - o.height) / 2
145
- }, !1);
201
+ (0, _react.useEffect)(() => {
202
+ let secondaryPaneSize;
203
+ window.addEventListener('resize', handleResize);
204
+ if (hotKey) document.addEventListener('keyup', expandAndCollapseSide);
205
+ if (secondaryInitialSize) {
206
+ secondaryPaneSize = secondaryInitialSize;
207
+ } else if (container.current && splitter.current) {
208
+ const containerRect = container.current.getBoundingClientRect();
209
+ const splitterRect = splitter.current.getBoundingClientRect();
210
+ secondaryPaneSize = getSecondaryPaneSize(containerRect, splitterRect, {
211
+ left: containerRect.left + (containerRect.width - splitterRect.width) / 2,
212
+ top: containerRect.top + (containerRect.height - splitterRect.height) / 2
213
+ }, false);
146
214
  }
147
- return t = t, s({
148
- ...e,
149
- secondaryPaneSize: t
150
- }), () => {
151
- window.removeEventListener("resize", k), h && document.removeEventListener("keyup", j);
215
+ secondaryPaneSize = secondaryPaneSize;
216
+ // TODO: Ao revisar este componente, encontrar solução melhor
217
+ setState(_objectSpread(_objectSpread({}, state), {}, {
218
+ secondaryPaneSize
219
+ }));
220
+ return () => {
221
+ window.removeEventListener('resize', handleResize);
222
+ if (hotKey) document.removeEventListener('keyup', expandAndCollapseSide);
152
223
  };
153
- }, []), b(() => {
154
- w && w(e.secondaryPaneSize);
155
- }, [e.secondaryPaneSize]), b(() => (e.resizing && document.addEventListener("mousemove", E), () => {
156
- document.removeEventListener("mousemove", E);
157
- }), [e.resizing]);
158
- const D = () => ({
159
- size: e.secondaryPaneSize,
160
- percentage: P,
161
- vertical: f,
162
- primary: S[1] && !1
163
- }), {
164
- resizing: K,
165
- visibleSplitSide: B
166
- } = e;
167
- let p = "split-component";
168
- return x && (p += ` ${x}`), f && (p += " splitter-layout-vertical"), K && (p += " layout-changing"), /* @__PURE__ */ y.jsx(V.Provider, { value: D(), children: /* @__PURE__ */ y.jsxs("div", { className: p, style: N, ref: (t) => {
169
- c.current = t;
170
- }, children: [
171
- C === "primary" ? B && S[0] : S[0],
172
- /* @__PURE__ */ y.jsx("div", { role: "button", onKeyPress: void 0, tabIndex: -1, className: "layout-splitter", ref: (t) => {
173
- d.current = t;
174
- }, onMouseUp: () => s({
175
- ...e,
176
- resizing: !1
177
- }), onMouseDown: () => {
178
- A();
179
- }, children: /* @__PURE__ */ y.jsx("div", { role: "button", tabIndex: -1, onDoubleClick: () => e.secondaryPaneSize === 100 ? s({
180
- ...e,
224
+ }, []);
225
+ (0, _react.useEffect)(() => {
226
+ if (onSecondaryPaneSizeChange) onSecondaryPaneSizeChange(state.secondaryPaneSize);
227
+ }, [state.secondaryPaneSize]);
228
+ (0, _react.useEffect)(() => {
229
+ if (state.resizing) {
230
+ document.addEventListener('mousemove', handleMouseMove);
231
+ }
232
+ return () => {
233
+ document.removeEventListener('mousemove', handleMouseMove);
234
+ };
235
+ }, [state.resizing]);
236
+ const getChildContext = () => ({
237
+ size: state.secondaryPaneSize,
238
+ percentage,
239
+ vertical,
240
+ primary: children[1] && false
241
+ });
242
+ const {
243
+ resizing,
244
+ visibleSplitSide
245
+ } = state;
246
+ let containerClasses = 'split-component';
247
+ if (customClass) {
248
+ containerClasses += " ".concat(customClass);
249
+ }
250
+ if (vertical) {
251
+ containerClasses += ' splitter-layout-vertical';
252
+ }
253
+ if (resizing) {
254
+ containerClasses += ' layout-changing';
255
+ }
256
+ return /*#__PURE__*/_react.default.createElement(_helpers.default.Provider, {
257
+ value: getChildContext()
258
+ }, /*#__PURE__*/_react.default.createElement("div", {
259
+ className: containerClasses,
260
+ style: style,
261
+ ref: r => {
262
+ container.current = r;
263
+ }
264
+ }, hideSplitSideOnToggleClick === 'primary' ? visibleSplitSide && children[0] : children[0], /*#__PURE__*/_react.default.createElement("div", {
265
+ role: "button",
266
+ onKeyPress: undefined,
267
+ tabIndex: -1,
268
+ className: "layout-splitter",
269
+ ref: r => {
270
+ splitter.current = r;
271
+ },
272
+ onMouseUp: () => setState(_objectSpread(_objectSpread({}, state), {}, {
273
+ resizing: false
274
+ })),
275
+ onMouseDown: () => {
276
+ handleSplitterMouseDown();
277
+ }
278
+ }, /*#__PURE__*/_react.default.createElement("div", {
279
+ role: "button",
280
+ tabIndex: -1,
281
+ onDoubleClick: () => state.secondaryPaneSize === 100 ? setState(_objectSpread(_objectSpread({}, state), {}, {
181
282
  secondaryPaneSize: 50,
182
- resizing: !1
183
- }) : s({
184
- ...e,
283
+ resizing: false
284
+ })) : setState(_objectSpread(_objectSpread({}, state), {}, {
185
285
  secondaryPaneSize: 100,
186
- resizing: !1
187
- }), className: f ? "toggler-vertical" : "toggler-horizontal" }) }),
188
- C === "secondary" ? B && S[1] : S[1]
189
- ] }) });
190
- };
191
- export {
192
- q as default
286
+ resizing: false
287
+ })),
288
+ className: vertical ? 'toggler-vertical' : 'toggler-horizontal'
289
+ })), hideSplitSideOnToggleClick === 'secondary' ? visibleSplitSide && children[1] : children[1]));
193
290
  };
291
+ var _default = exports.default = Split;
@@ -1,3 +1,6 @@
1
- import { ISplitSideProps } from './types';
2
- declare const SplitSide: ({ primary, children, customClass, style }: ISplitSideProps) => import("react/jsx-runtime").JSX.Element;
3
- export default SplitSide;
1
+ import { ISplitSideProps } from './types.js';
2
+ import 'react';
3
+
4
+ declare const SplitSide: ({ primary, children, customClass, style }: ISplitSideProps) => JSX.Element;
5
+
6
+ export { SplitSide as default };
@@ -1,27 +1,41 @@
1
- import { j as d } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
- import { c as S } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
- import { useContext as $ } from "react";
4
- import h from "./helpers.js";
5
- const z = (f) => {
6
- const t = S.c(14), {
7
- primary: a,
8
- children: n,
9
- customClass: p,
10
- style: c
11
- } = f, {
12
- size: x,
13
- percentage: y,
14
- vertical: m
15
- } = $(h), l = x || 0, o = y ? "%" : "px";
16
- let e = "layout-pane", s, i;
17
- if (t[0] !== e || t[1] !== p || t[2] !== a || t[3] !== l || t[4] !== c || t[5] !== o || t[6] !== m) {
18
- const u = {};
19
- a ? e = "layout-pane layout-pane-primary" : m ? u.height = `${l}${o}` : u.width = `${l}${o}`, s = `${e} ${p}`, i = Object.assign({}, u, c), t[0] = e, t[1] = p, t[2] = a, t[3] = l, t[4] = c, t[5] = o, t[6] = m, t[7] = s, t[8] = i, t[9] = e;
20
- } else
21
- s = t[7], i = t[8], e = t[9];
22
- let r;
23
- return t[10] !== n || t[11] !== s || t[12] !== i ? (r = /* @__PURE__ */ d.jsx("div", { className: s, style: i, children: n }), t[10] = n, t[11] = s, t[12] = i, t[13] = r) : r = t[13], r;
24
- };
25
- export {
26
- z as default
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _helpers = _interopRequireDefault(require("./helpers"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
11
+ const SplitSide = _ref => {
12
+ let {
13
+ primary,
14
+ children,
15
+ customClass,
16
+ style
17
+ } = _ref;
18
+ const {
19
+ size,
20
+ percentage,
21
+ vertical
22
+ } = (0, _react.useContext)(_helpers.default);
23
+ const sizeSplitSide = size || 0;
24
+ const unit = percentage ? '%' : 'px';
25
+ let classes = 'layout-pane';
26
+ const splitSideStyle = {};
27
+ if (!primary) {
28
+ if (vertical) {
29
+ splitSideStyle.height = "".concat(sizeSplitSide).concat(unit);
30
+ } else {
31
+ splitSideStyle.width = "".concat(sizeSplitSide).concat(unit);
32
+ }
33
+ } else {
34
+ classes += ' layout-pane-primary';
35
+ }
36
+ return /*#__PURE__*/_react.default.createElement("div", {
37
+ className: "".concat(classes, " ").concat(customClass),
38
+ style: Object.assign({}, splitSideStyle, style)
39
+ }, children);
27
40
  };
41
+ var _default = exports.default = SplitSide;
@@ -1,8 +1,10 @@
1
- import { default as React } from 'react';
2
- export type ISplitContext = {
1
+ import React__default from 'react';
2
+
3
+ type ISplitContext = {
3
4
  size?: number;
4
5
  percentage?: number | string;
5
6
  vertical?: boolean;
6
7
  };
7
- declare const SplitContext: React.Context<ISplitContext>;
8
- export default SplitContext;
8
+ declare const SplitContext: React__default.Context<ISplitContext>;
9
+
10
+ export { ISplitContext, SplitContext as default };
@@ -1,5 +1,10 @@
1
- import t from "react";
2
- const o = t.createContext({});
3
- export {
4
- o as default
5
- };
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ const SplitContext = /*#__PURE__*/_react.default.createContext({});
10
+ var _default = exports.default = SplitContext;
@@ -1,4 +1,8 @@
1
- import { default as Split } from './Split';
2
- import { default as SplitSide } from './SplitSide';
3
- export default Split;
4
- export { SplitSide };
1
+ import Split from './Split.js';
2
+ export { default as SplitSide } from './SplitSide.js';
3
+ import './types.js';
4
+ import 'react';
5
+
6
+
7
+
8
+ export { Split as default };
@@ -1,6 +1,17 @@
1
- import e from "./Split.js";
2
- import { default as r } from "./SplitSide.js";
3
- import '../assets/index16.css';export {
4
- r as SplitSide,
5
- e as default
6
- };
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "SplitSide", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _SplitSide.default;
10
+ }
11
+ });
12
+ exports.default = void 0;
13
+ require("../assets/styles/split.scss");
14
+ var _Split = _interopRequireDefault(require("./Split"));
15
+ var _SplitSide = _interopRequireDefault(require("./SplitSide"));
16
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
+ var _default = exports.default = _Split.default;
@@ -1,5 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- export interface ISplitProps {
2
+
3
+ interface ISplitProps {
3
4
  style?: object;
4
5
  customClass?: string;
5
6
  vertical?: boolean;
@@ -14,7 +15,7 @@ export interface ISplitProps {
14
15
  children?: ReactNode[];
15
16
  nodeParameter?: Node;
16
17
  }
17
- export interface ISplitSideProps {
18
+ interface ISplitSideProps {
18
19
  style?: object;
19
20
  customClass?: string;
20
21
  vertical?: boolean;
@@ -23,9 +24,11 @@ export interface ISplitSideProps {
23
24
  percentage?: boolean;
24
25
  children?: ReactNode;
25
26
  }
26
- export interface DocumentSelection {
27
+ interface DocumentSelection {
27
28
  new (): Selection;
28
29
  prototype: Selection;
29
30
  toString(): string;
30
31
  empty(): void;
31
32
  }
33
+
34
+ export { DocumentSelection, ISplitProps, ISplitSideProps };