linear-react-components-ui 1.1.26-beta.7 → 1.1.26-beta.8

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 (602) hide show
  1. package/lib/@types/Align.d.ts +2 -0
  2. package/lib/@types/ButtonTypes.d.ts +1 -0
  3. package/lib/@types/ColorStyles.d.ts +1 -0
  4. package/lib/@types/DataCombo.d.ts +1 -0
  5. package/lib/@types/Icon.d.ts +2 -0
  6. package/lib/@types/LabelStyles.d.ts +1 -0
  7. package/lib/@types/Period.d.ts +4 -0
  8. package/lib/@types/PermissionAttr.d.ts +12 -0
  9. package/lib/@types/PointerEvents.d.ts +1 -0
  10. package/lib/@types/Position.d.ts +1 -0
  11. package/lib/@types/PositionAlert.d.ts +1 -0
  12. package/lib/@types/Size.d.ts +1 -0
  13. package/lib/@types/SizePixels.d.ts +1 -0
  14. package/lib/@types/StorageMock.d.ts +3 -0
  15. package/lib/alerts/AlertContainer.d.ts +12 -0
  16. package/lib/alerts/AlertContainer.js +70 -0
  17. package/lib/alerts/AlertProvider.d.ts +3 -0
  18. package/lib/alerts/AlertProvider.js +46 -0
  19. package/lib/alerts/BaseAlert.d.ts +3 -0
  20. package/lib/alerts/BaseAlert.js +20 -0
  21. package/lib/alerts/Message.d.ts +3 -0
  22. package/lib/alerts/Message.js +94 -0
  23. package/lib/alerts/alert.spec.d.ts +0 -0
  24. package/lib/alerts/helpers.d.ts +3 -0
  25. package/lib/alerts/helpers.js +5 -0
  26. package/lib/alerts/index.d.ts +4 -0
  27. package/lib/alerts/index.js +6 -0
  28. package/lib/alerts/types.d.ts +47 -0
  29. package/lib/alerts/withAlert.d.ts +4 -0
  30. package/lib/alerts/withAlert.js +14 -0
  31. package/lib/assets/BaseAlert.css +1 -0
  32. package/lib/assets/Content.css +1 -0
  33. package/lib/assets/DefaultFile.css +1 -0
  34. package/lib/assets/Drawer.css +1 -0
  35. package/lib/assets/InputTextBase.css +1 -0
  36. package/lib/assets/button.css +1 -0
  37. package/lib/assets/gridlayout.css +1 -0
  38. package/lib/assets/index.css +1 -0
  39. package/lib/assets/index10.css +1 -0
  40. package/lib/assets/index11.css +1 -0
  41. package/lib/assets/index12.css +1 -0
  42. package/lib/assets/index13.css +1 -0
  43. package/lib/assets/index14.css +1 -0
  44. package/lib/assets/index15.css +1 -0
  45. package/lib/assets/index16.css +1 -0
  46. package/lib/assets/index17.css +1 -0
  47. package/lib/assets/index18.css +1 -0
  48. package/lib/assets/index19.css +1 -0
  49. package/lib/assets/index2.css +1 -0
  50. package/lib/assets/index20.css +1 -0
  51. package/lib/assets/index21.css +1 -0
  52. package/lib/assets/index22.css +1 -0
  53. package/lib/assets/index23.css +1 -0
  54. package/lib/assets/index24.css +1 -0
  55. package/lib/assets/index25.css +1 -0
  56. package/lib/assets/index26.css +1 -0
  57. package/lib/assets/index27.css +1 -0
  58. package/lib/assets/index28.css +1 -0
  59. package/lib/assets/index3.css +1 -0
  60. package/lib/assets/index4.css +1 -0
  61. package/lib/assets/index5.css +1 -0
  62. package/lib/assets/index6.css +1 -0
  63. package/lib/assets/index7.css +1 -0
  64. package/lib/assets/index8.css +1 -0
  65. package/lib/assets/index9.css +1 -0
  66. package/lib/assets/label.css +1 -0
  67. package/lib/assets/noPermission.css +1 -0
  68. package/lib/assets/panel.css +1 -0
  69. package/lib/assets/progressbar.css +1 -0
  70. package/lib/assets/radio.css +1 -0
  71. package/lib/assets/skeleton.css +1 -0
  72. package/lib/assets/table.css +1 -0
  73. package/lib/assets/tabs.css +1 -0
  74. package/lib/assets/toolbar.css +1 -0
  75. package/lib/assets/withDropdown.css +1 -0
  76. package/lib/avatar/avatar.spec.d.ts +1 -0
  77. package/lib/avatar/index.d.ts +6 -0
  78. package/lib/avatar/index.js +55 -0
  79. package/lib/avatar/types.d.ts +27 -0
  80. package/lib/badge/badge.spec.d.ts +1 -0
  81. package/lib/badge/index.d.ts +3 -0
  82. package/lib/badge/index.js +28 -0
  83. package/lib/badge/types.d.ts +10 -0
  84. package/lib/buttons/ActivateButton.d.ts +3 -0
  85. package/lib/buttons/ActivateButton.js +11 -0
  86. package/lib/buttons/AddButton.d.ts +3 -0
  87. package/lib/buttons/AddButton.js +14 -0
  88. package/lib/buttons/Button.d.ts +6 -0
  89. package/lib/buttons/Button.js +19 -0
  90. package/lib/buttons/ButtonGroups.d.ts +6 -0
  91. package/lib/buttons/ButtonGroups.js +12 -0
  92. package/lib/buttons/CancelButton.d.ts +3 -0
  93. package/lib/buttons/CancelButton.js +16 -0
  94. package/lib/buttons/DangerButton.d.ts +3 -0
  95. package/lib/buttons/DangerButton.js +17 -0
  96. package/lib/buttons/DefaultButton.d.ts +6 -0
  97. package/lib/buttons/DefaultButton.js +95 -0
  98. package/lib/buttons/DestroyButton.d.ts +3 -0
  99. package/lib/buttons/DestroyButton.js +23 -0
  100. package/lib/buttons/EditButton.d.ts +3 -0
  101. package/lib/buttons/EditButton.js +11 -0
  102. package/lib/buttons/InactivateButton.d.ts +3 -0
  103. package/lib/buttons/InactivateButton.js +11 -0
  104. package/lib/buttons/InfoButton.d.ts +3 -0
  105. package/lib/buttons/InfoButton.js +17 -0
  106. package/lib/buttons/PrimaryButton.d.ts +3 -0
  107. package/lib/buttons/PrimaryButton.js +17 -0
  108. package/lib/buttons/RestoreButton.d.ts +3 -0
  109. package/lib/buttons/RestoreButton.js +11 -0
  110. package/lib/buttons/SaveButton.d.ts +3 -0
  111. package/lib/buttons/SaveButton.js +16 -0
  112. package/lib/buttons/SuccessButton.d.ts +3 -0
  113. package/lib/buttons/SuccessButton.js +17 -0
  114. package/lib/buttons/WarningButton.d.ts +3 -0
  115. package/lib/buttons/WarningButton.js +17 -0
  116. package/lib/buttons/button_container/index.d.ts +10 -0
  117. package/lib/buttons/button_container/index.js +23 -0
  118. package/lib/buttons/buttons.spec.d.ts +0 -0
  119. package/lib/buttons/index.d.ts +17 -0
  120. package/lib/buttons/index.js +33 -0
  121. package/lib/buttons/split_button/index.d.ts +3 -0
  122. package/lib/buttons/split_button/index.js +58 -0
  123. package/lib/buttons/types.d.ts +46 -0
  124. package/lib/calendar/DangerCalendar.d.ts +3 -0
  125. package/lib/calendar/DangerCalendar.js +20 -0
  126. package/lib/calendar/InfoCalendar.d.ts +3 -0
  127. package/lib/calendar/InfoCalendar.js +20 -0
  128. package/lib/calendar/PrimaryCalendar.d.ts +3 -0
  129. package/lib/calendar/PrimaryCalendar.js +20 -0
  130. package/lib/calendar/SuccessCalendar.d.ts +3 -0
  131. package/lib/calendar/SuccessCalendar.js +20 -0
  132. package/lib/calendar/WarningCalendar.d.ts +3 -0
  133. package/lib/calendar/WarningCalendar.js +20 -0
  134. package/lib/calendar/base/Day.d.ts +3 -0
  135. package/lib/calendar/base/Day.js +37 -0
  136. package/lib/calendar/base/Month.d.ts +3 -0
  137. package/lib/calendar/base/Month.js +28 -0
  138. package/lib/calendar/base/Week.d.ts +3 -0
  139. package/lib/calendar/base/Week.js +24 -0
  140. package/lib/calendar/base/helpers.d.ts +59 -0
  141. package/lib/calendar/base/helpers.js +100 -0
  142. package/lib/calendar/base/index.d.ts +3 -0
  143. package/lib/calendar/base/index.js +137 -0
  144. package/lib/calendar/calendar.spec.d.ts +0 -0
  145. package/lib/calendar/index.d.ts +8 -0
  146. package/lib/calendar/index.js +14 -0
  147. package/lib/calendar/types.d.ts +27 -0
  148. package/lib/checkbox/checkbox.spec.d.ts +1 -0
  149. package/lib/checkbox/index.d.ts +9 -0
  150. package/lib/checkbox/index.js +32 -0
  151. package/lib/checkbox/types.d.ts +45 -0
  152. package/lib/chunks/compiler-runtime.Cu50tn6L.js +54 -0
  153. package/lib/chunks/index.Df3kt2LQ.js +667 -0
  154. package/lib/chunks/index.aw0XaUkg.js +266 -0
  155. package/lib/chunks/jsx-runtime.D1SHvdVE.js +282 -0
  156. package/lib/chunks/lodash.CIAK_hAg.js +3684 -0
  157. package/lib/chunks/moment.DMLRxgRE.js +2589 -0
  158. package/lib/chunks/tabs.BvKfeA6Y.js +244 -0
  159. package/lib/chunks/v1.Ds1rkxUj.js +49 -0
  160. package/lib/dialog/Alert.d.ts +3 -0
  161. package/lib/dialog/Alert.js +24 -0
  162. package/lib/dialog/Custom.d.ts +3 -0
  163. package/lib/dialog/Custom.js +47 -0
  164. package/lib/dialog/Error.d.ts +3 -0
  165. package/lib/dialog/Error.js +24 -0
  166. package/lib/dialog/Information.d.ts +3 -0
  167. package/lib/dialog/Information.js +24 -0
  168. package/lib/dialog/Question.d.ts +3 -0
  169. package/lib/dialog/Question.js +47 -0
  170. package/lib/dialog/Warning.d.ts +3 -0
  171. package/lib/dialog/Warning.js +24 -0
  172. package/lib/dialog/base/Content.d.ts +3 -0
  173. package/lib/dialog/base/Content.js +15 -0
  174. package/lib/dialog/base/Footer.d.ts +3 -0
  175. package/lib/dialog/base/Footer.js +10 -0
  176. package/lib/dialog/base/Header.d.ts +3 -0
  177. package/lib/dialog/base/Header.js +8 -0
  178. package/lib/dialog/base/index.d.ts +10 -0
  179. package/lib/dialog/base/index.js +10 -0
  180. package/lib/dialog/base/style.d.ts +7 -0
  181. package/lib/dialog/dialog.spec.d.ts +0 -0
  182. package/lib/dialog/form/index.d.ts +5 -0
  183. package/lib/dialog/form/index.js +16 -0
  184. package/lib/dialog/index.d.ts +9 -0
  185. package/lib/dialog/index.js +16 -0
  186. package/lib/dialog/types.d.ts +107 -0
  187. package/lib/dialog/wizard/index.d.ts +9 -0
  188. package/lib/dialog/wizard/index.js +15 -0
  189. package/lib/dialog/wizard/progressbar.d.ts +11 -0
  190. package/lib/dialog/wizard/progressbar.js +98 -0
  191. package/lib/dialog/wizard/step.d.ts +2 -0
  192. package/lib/dialog/wizard/step.js +6 -0
  193. package/lib/dialog/wizard/useWizard.d.ts +2 -0
  194. package/lib/dialog/wizard/useWizard.js +45 -0
  195. package/lib/dialog/wizard/wizard.spec.d.ts +0 -0
  196. package/lib/drawer/Content.d.ts +3 -0
  197. package/lib/drawer/Content.js +18 -0
  198. package/lib/drawer/Drawer.d.ts +4 -0
  199. package/lib/drawer/Drawer.js +75 -0
  200. package/lib/drawer/Drawer.spec.d.ts +1 -0
  201. package/lib/drawer/Header.d.ts +3 -0
  202. package/lib/drawer/Header.js +56 -0
  203. package/lib/drawer/helpers.d.ts +4 -0
  204. package/lib/drawer/helpers.js +5 -0
  205. package/lib/drawer/index.d.ts +5 -0
  206. package/lib/drawer/index.js +10 -0
  207. package/lib/drawer/types.d.ts +37 -0
  208. package/lib/dropdown/Popup.d.ts +3 -0
  209. package/lib/dropdown/Popup.js +51 -0
  210. package/lib/dropdown/dropdown.spec.d.ts +1 -0
  211. package/lib/dropdown/helper.d.ts +2 -0
  212. package/lib/dropdown/helper.js +8 -0
  213. package/lib/dropdown/types.d.ts +45 -0
  214. package/lib/dropdown/withDropdown.d.ts +9 -0
  215. package/lib/dropdown/withDropdown.js +80 -0
  216. package/lib/fieldset/fieldset.spec.d.ts +1 -0
  217. package/lib/fieldset/index.d.ts +3 -0
  218. package/lib/fieldset/index.js +70 -0
  219. package/lib/fieldset/types.d.ts +27 -0
  220. package/lib/form/Field.d.ts +2 -0
  221. package/lib/form/Field.js +98 -0
  222. package/lib/form/FieldArray.d.ts +2 -0
  223. package/lib/form/FieldArray.js +68 -0
  224. package/lib/form/FieldNumber.d.ts +2 -0
  225. package/lib/form/FieldNumber.js +48 -0
  226. package/lib/form/FieldPeriod.d.ts +2 -0
  227. package/lib/form/FieldPeriod.js +95 -0
  228. package/lib/form/form.spec.d.ts +0 -0
  229. package/lib/form/helpers.d.ts +8 -0
  230. package/lib/form/helpers.js +28 -0
  231. package/lib/form/index.d.ts +8 -0
  232. package/lib/form/index.js +150 -0
  233. package/lib/form/types.d.ts +233 -0
  234. package/lib/form/withFieldHOC.d.ts +4 -0
  235. package/lib/form/withFieldHOC.js +62 -0
  236. package/lib/form/withFormSecurity.d.ts +6 -0
  237. package/lib/form/withFormSecurity.js +30 -0
  238. package/lib/gridlayout/GridCol.d.ts +3 -0
  239. package/lib/gridlayout/GridCol.js +27 -0
  240. package/lib/gridlayout/GridRow.d.ts +3 -0
  241. package/lib/gridlayout/GridRow.js +26 -0
  242. package/lib/gridlayout/gridLayout.spec.d.ts +1 -0
  243. package/lib/gridlayout/index.d.ts +4 -0
  244. package/lib/gridlayout/index.js +6 -0
  245. package/lib/gridlayout/types.d.ts +17 -0
  246. package/lib/hint/helpers.d.ts +1 -0
  247. package/lib/hint/helpers.js +12 -0
  248. package/lib/hint/hint.spec.d.ts +1 -0
  249. package/lib/hint/index.d.ts +3 -0
  250. package/lib/hint/index.js +30 -0
  251. package/lib/hint/types.d.ts +11 -0
  252. package/lib/icons/helper.d.ts +635 -0
  253. package/lib/icons/helper.js +637 -0
  254. package/lib/icons/icons.spec.d.ts +1 -0
  255. package/lib/icons/index.d.ts +6 -0
  256. package/lib/icons/index.js +66 -0
  257. package/lib/icons/types.d.ts +46 -0
  258. package/lib/index.d.ts +10 -0
  259. package/lib/index.js +28 -0
  260. package/lib/inputs/base/InputTextBase.d.ts +3 -0
  261. package/lib/inputs/base/InputTextBase.js +183 -0
  262. package/lib/inputs/base/Label.d.ts +6 -0
  263. package/lib/inputs/base/Label.js +30 -0
  264. package/lib/inputs/base/base.spec.d.ts +1 -0
  265. package/lib/inputs/base/helpers.d.ts +10 -0
  266. package/lib/inputs/base/helpers.js +30 -0
  267. package/lib/inputs/base/types.d.ts +98 -0
  268. package/lib/inputs/color/color_input.spec.d.ts +0 -0
  269. package/lib/inputs/color/index.d.ts +3 -0
  270. package/lib/inputs/color/index.js +57 -0
  271. package/lib/inputs/color/types.d.ts +16 -0
  272. package/lib/inputs/date/Dialog.d.ts +3 -0
  273. package/lib/inputs/date/Dialog.js +17 -0
  274. package/lib/inputs/date/Dropdown.d.ts +3 -0
  275. package/lib/inputs/date/Dropdown.js +19 -0
  276. package/lib/inputs/date/date.spec.d.ts +1 -0
  277. package/lib/inputs/date/helpers.d.ts +5 -0
  278. package/lib/inputs/date/helpers.js +10 -0
  279. package/lib/inputs/date/index.d.ts +3 -0
  280. package/lib/inputs/date/index.js +136 -0
  281. package/lib/inputs/date/types.d.ts +56 -0
  282. package/lib/inputs/errorMessage/error.spec.d.ts +1 -0
  283. package/lib/inputs/errorMessage/index.d.ts +4 -0
  284. package/lib/inputs/errorMessage/index.js +24 -0
  285. package/lib/inputs/file/DefaultFile.d.ts +3 -0
  286. package/lib/inputs/file/DefaultFile.js +68 -0
  287. package/lib/inputs/file/DragDropFile.d.ts +3 -0
  288. package/lib/inputs/file/DragDropFile.js +135 -0
  289. package/lib/inputs/file/File.d.ts +3 -0
  290. package/lib/inputs/file/File.js +31 -0
  291. package/lib/inputs/file/FileButtonSettings.d.ts +3 -0
  292. package/lib/inputs/file/FileButtonSettings.js +24 -0
  293. package/lib/inputs/file/filefield.spec.d.ts +1 -0
  294. package/lib/inputs/file/helpers.d.ts +2 -0
  295. package/lib/inputs/file/helpers.js +11 -0
  296. package/lib/inputs/file/index.d.ts +5 -0
  297. package/lib/inputs/file/index.js +8 -0
  298. package/lib/inputs/file/types.d.ts +49 -0
  299. package/lib/inputs/inputHOC.d.ts +4 -0
  300. package/lib/inputs/inputHOC.js +42 -0
  301. package/lib/inputs/mask/BaseMask.d.ts +3 -0
  302. package/lib/inputs/mask/BaseMask.js +2672 -0
  303. package/lib/inputs/mask/Cnpj.d.ts +6 -0
  304. package/lib/inputs/mask/Cnpj.js +46 -0
  305. package/lib/inputs/mask/Cpf.d.ts +6 -0
  306. package/lib/inputs/mask/Cpf.js +48 -0
  307. package/lib/inputs/mask/Phone.d.ts +3 -0
  308. package/lib/inputs/mask/Phone.js +13 -0
  309. package/lib/inputs/mask/ZipCode.d.ts +3 -0
  310. package/lib/inputs/mask/ZipCode.js +11 -0
  311. package/lib/inputs/mask/helpers.d.ts +52 -0
  312. package/lib/inputs/mask/helpers.js +63 -0
  313. package/lib/inputs/mask/index.d.ts +7 -0
  314. package/lib/inputs/mask/index.js +12 -0
  315. package/lib/inputs/mask/input_mask.spec.d.ts +0 -0
  316. package/lib/inputs/mask/types.d.ts +73 -0
  317. package/lib/inputs/multiSelect/ActionButtons.d.ts +3 -0
  318. package/lib/inputs/multiSelect/ActionButtons.js +39 -0
  319. package/lib/inputs/multiSelect/Dropdown.d.ts +3 -0
  320. package/lib/inputs/multiSelect/Dropdown.js +98 -0
  321. package/lib/inputs/multiSelect/helper.d.ts +3 -0
  322. package/lib/inputs/multiSelect/helper.js +8 -0
  323. package/lib/inputs/multiSelect/index.d.ts +3 -0
  324. package/lib/inputs/multiSelect/index.js +180 -0
  325. package/lib/inputs/multiSelect/multiSelect.spec.d.ts +1 -0
  326. package/lib/inputs/multiSelect/types.d.ts +57 -0
  327. package/lib/inputs/number/BaseNumber.d.ts +3 -0
  328. package/lib/inputs/number/BaseNumber.js +59 -0
  329. package/lib/inputs/number/Currency.d.ts +3 -0
  330. package/lib/inputs/number/Currency.js +22 -0
  331. package/lib/inputs/number/Decimal.d.ts +3 -0
  332. package/lib/inputs/number/Decimal.js +11 -0
  333. package/lib/inputs/number/format_number.d.ts +3 -0
  334. package/lib/inputs/number/format_number.js +9 -0
  335. package/lib/inputs/number/index.d.ts +6 -0
  336. package/lib/inputs/number/index.js +34 -0
  337. package/lib/inputs/number/numberfield.spec.d.ts +1 -0
  338. package/lib/inputs/number/types.d.ts +28 -0
  339. package/lib/inputs/period/Dialog.d.ts +3 -0
  340. package/lib/inputs/period/Dialog.js +18 -0
  341. package/lib/inputs/period/Dropdown.d.ts +3 -0
  342. package/lib/inputs/period/Dropdown.js +18 -0
  343. package/lib/inputs/period/PeriodList.d.ts +3 -0
  344. package/lib/inputs/period/PeriodList.js +43 -0
  345. package/lib/inputs/period/helper.d.ts +11 -0
  346. package/lib/inputs/period/helper.js +39 -0
  347. package/lib/inputs/period/index.d.ts +3 -0
  348. package/lib/inputs/period/index.js +213 -0
  349. package/lib/inputs/period/types.d.ts +69 -0
  350. package/lib/inputs/search/index.d.ts +3 -0
  351. package/lib/inputs/search/index.js +104 -0
  352. package/lib/inputs/search/search_input.spec.d.ts +1 -0
  353. package/lib/inputs/select/ActionButtons.d.ts +3 -0
  354. package/lib/inputs/select/ActionButtons.js +28 -0
  355. package/lib/inputs/select/Dropdown.d.ts +3 -0
  356. package/lib/inputs/select/Dropdown.js +70 -0
  357. package/lib/inputs/select/helper.d.ts +11 -0
  358. package/lib/inputs/select/helper.js +48 -0
  359. package/lib/inputs/select/index.d.ts +3 -0
  360. package/lib/inputs/select/index.js +27 -0
  361. package/lib/inputs/select/multiple/Selecteds.d.ts +3 -0
  362. package/lib/inputs/select/multiple/Selecteds.js +25 -0
  363. package/lib/inputs/select/multiple/index.d.ts +3 -0
  364. package/lib/inputs/select/multiple/index.js +126 -0
  365. package/lib/inputs/select/select.spec.d.ts +1 -0
  366. package/lib/inputs/select/simple/index.d.ts +3 -0
  367. package/lib/inputs/select/simple/index.js +156 -0
  368. package/lib/inputs/select/types.d.ts +117 -0
  369. package/lib/inputs/text/index.d.ts +3 -0
  370. package/lib/inputs/text/index.js +11 -0
  371. package/lib/inputs/text/textfield.spec.d.ts +1 -0
  372. package/lib/inputs/text/types.d.ts +21 -0
  373. package/lib/inputs/textarea/index.d.ts +3 -0
  374. package/lib/inputs/textarea/index.js +16 -0
  375. package/lib/inputs/textarea/textarea.spec.d.ts +1 -0
  376. package/lib/inputs/textarea/types.d.ts +7 -0
  377. package/lib/inputs/types.d.ts +151 -0
  378. package/lib/internals/colorStyles.d.ts +8 -0
  379. package/lib/internals/colorStyles.js +10 -0
  380. package/lib/internals/constants.d.ts +9 -0
  381. package/lib/internals/constants.js +12 -0
  382. package/lib/internals/types.d.ts +22 -0
  383. package/lib/internals/withTooltip.d.ts +8 -0
  384. package/lib/internals/withTooltip.js +122 -0
  385. package/lib/labelMessages/index.d.ts +3 -0
  386. package/lib/labelMessages/index.js +53 -0
  387. package/lib/labelMessages/labelMessages.spec.d.ts +1 -0
  388. package/lib/labelMessages/types.d.ts +16 -0
  389. package/lib/labels/DangerLabel.d.ts +3 -0
  390. package/lib/labels/DangerLabel.js +20 -0
  391. package/lib/labels/DefaultLabel.d.ts +6 -0
  392. package/lib/labels/DefaultLabel.js +55 -0
  393. package/lib/labels/InfoLabel.d.ts +3 -0
  394. package/lib/labels/InfoLabel.js +20 -0
  395. package/lib/labels/PrimaryLabel.d.ts +3 -0
  396. package/lib/labels/PrimaryLabel.js +20 -0
  397. package/lib/labels/SuccessLabel.d.ts +3 -0
  398. package/lib/labels/SuccessLabel.js +20 -0
  399. package/lib/labels/WarningLabel.d.ts +3 -0
  400. package/lib/labels/WarningLabel.js +20 -0
  401. package/lib/labels/index.d.ts +9 -0
  402. package/lib/labels/index.js +17 -0
  403. package/lib/labels/label.spec.d.ts +1 -0
  404. package/lib/labels/label_container/index.d.ts +10 -0
  405. package/lib/labels/label_container/index.js +18 -0
  406. package/lib/labels/types.d.ts +22 -0
  407. package/lib/list/Header.d.ts +3 -0
  408. package/lib/list/Header.js +20 -0
  409. package/lib/list/Item.d.ts +6 -0
  410. package/lib/list/Item.js +14 -0
  411. package/lib/list/Separator.d.ts +2 -0
  412. package/lib/list/Separator.js +10 -0
  413. package/lib/list/helpers.d.ts +9 -0
  414. package/lib/list/helpers.js +10 -0
  415. package/lib/list/index.d.ts +7 -0
  416. package/lib/list/index.js +104 -0
  417. package/lib/list/list.spec.d.ts +1 -0
  418. package/lib/list/types.d.ts +69 -0
  419. package/lib/menus/float/MenuItem.d.ts +3 -0
  420. package/lib/menus/float/MenuItem.js +55 -0
  421. package/lib/menus/float/SubMenuContainer.d.ts +29 -0
  422. package/lib/menus/float/float-menu.spec.d.ts +0 -0
  423. package/lib/menus/float/helpers.d.ts +4 -0
  424. package/lib/menus/float/helpers.js +5 -0
  425. package/lib/menus/float/index.d.ts +6 -0
  426. package/lib/menus/float/index.js +113 -0
  427. package/lib/menus/float/types.d.ts +26 -0
  428. package/lib/menus/index.d.ts +2 -0
  429. package/lib/menus/index.js +4 -0
  430. package/lib/menus/sidenav/ExpandMenu.d.ts +3 -0
  431. package/lib/menus/sidenav/ExpandMenu.js +19 -0
  432. package/lib/menus/sidenav/MenuLink.d.ts +6 -0
  433. package/lib/menus/sidenav/MenuLink.js +24 -0
  434. package/lib/menus/sidenav/NavMenuGroup.d.ts +3 -0
  435. package/lib/menus/sidenav/NavMenuGroup.js +22 -0
  436. package/lib/menus/sidenav/NavMenuItem.d.ts +6 -0
  437. package/lib/menus/sidenav/NavMenuItem.js +136 -0
  438. package/lib/menus/sidenav/NavSubMenuItem.d.ts +3 -0
  439. package/lib/menus/sidenav/NavSubMenuItem.js +39 -0
  440. package/lib/menus/sidenav/helpers.d.ts +6 -0
  441. package/lib/menus/sidenav/helpers.js +10 -0
  442. package/lib/menus/sidenav/index.d.ts +8 -0
  443. package/lib/menus/sidenav/index.js +150 -0
  444. package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +3 -0
  445. package/lib/menus/sidenav/popup_menu_search/EmptyList.js +23 -0
  446. package/lib/menus/sidenav/popup_menu_search/index.d.ts +4 -0
  447. package/lib/menus/sidenav/popup_menu_search/index.js +56 -0
  448. package/lib/menus/sidenav/sidenav.spec.d.ts +1 -0
  449. package/lib/menus/sidenav/types.d.ts +85 -0
  450. package/lib/noPermission/index.d.ts +2 -0
  451. package/lib/noPermission/index.js +16 -0
  452. package/lib/panel/Content.d.ts +3 -0
  453. package/lib/panel/Content.js +55 -0
  454. package/lib/panel/DangerPanel.d.ts +3 -0
  455. package/lib/panel/DangerPanel.js +12 -0
  456. package/lib/panel/Default.d.ts +3 -0
  457. package/lib/panel/Default.js +68 -0
  458. package/lib/panel/Header.d.ts +3 -0
  459. package/lib/panel/Header.js +58 -0
  460. package/lib/panel/InfoPanel.d.ts +3 -0
  461. package/lib/panel/InfoPanel.js +12 -0
  462. package/lib/panel/PrimaryPanel.d.ts +3 -0
  463. package/lib/panel/PrimaryPanel.js +12 -0
  464. package/lib/panel/SuccessPanel.d.ts +3 -0
  465. package/lib/panel/SuccessPanel.js +12 -0
  466. package/lib/panel/ToolBar.d.ts +3 -0
  467. package/lib/panel/ToolBar.js +19 -0
  468. package/lib/panel/WarningPanel.d.ts +3 -0
  469. package/lib/panel/WarningPanel.js +12 -0
  470. package/lib/panel/helpers.d.ts +5 -0
  471. package/lib/panel/helpers.js +15 -0
  472. package/lib/panel/index.d.ts +10 -0
  473. package/lib/panel/index.js +19 -0
  474. package/lib/panel/panel.spec.d.ts +0 -0
  475. package/lib/panel/types.d.ts +43 -0
  476. package/lib/permissionValidations.d.ts +12 -0
  477. package/lib/permissionValidations.js +46 -0
  478. package/lib/popover/PopoverText.d.ts +4 -0
  479. package/lib/popover/PopoverText.js +14 -0
  480. package/lib/popover/PopoverTitle.d.ts +3 -0
  481. package/lib/popover/PopoverTitle.js +12 -0
  482. package/lib/popover/index.d.ts +6 -0
  483. package/lib/popover/index.js +39 -0
  484. package/lib/popover/popover.spec.d.ts +1 -0
  485. package/lib/popover/types.d.ts +31 -0
  486. package/lib/progress/Bar.d.ts +3 -0
  487. package/lib/progress/Bar.js +51 -0
  488. package/lib/progress/index.d.ts +5 -0
  489. package/lib/progress/index.js +26 -0
  490. package/lib/progress/progress.spec.d.ts +1 -0
  491. package/lib/progress/types.d.ts +34 -0
  492. package/lib/radio/index.d.ts +8 -0
  493. package/lib/radio/index.js +112 -0
  494. package/lib/radio/radio.spec.d.ts +1 -0
  495. package/lib/radio/types.d.ts +25 -0
  496. package/lib/shortcuts/index.d.ts +3 -0
  497. package/lib/shortcuts/index.js +22 -0
  498. package/lib/shortcuts/shortcuts.spec.d.ts +0 -0
  499. package/lib/shortcuts/types.d.ts +9 -0
  500. package/lib/skeleton/SkeletonContainer.d.ts +3 -0
  501. package/lib/skeleton/SkeletonContainer.js +19 -0
  502. package/lib/skeleton/index.d.ts +5 -0
  503. package/lib/skeleton/index.js +49 -0
  504. package/lib/skeleton/types.d.ts +18 -0
  505. package/lib/spinner/SpinnerLoading.d.ts +3 -0
  506. package/lib/spinner/SpinnerLoading.js +55 -0
  507. package/lib/spinner/index.d.ts +3 -0
  508. package/lib/spinner/index.js +51 -0
  509. package/lib/spinner/spinner.spec.d.ts +1 -0
  510. package/lib/spinner/types.d.ts +17 -0
  511. package/lib/split/Split.d.ts +3 -0
  512. package/lib/split/Split.js +193 -0
  513. package/lib/split/SplitSide.d.ts +3 -0
  514. package/lib/split/SplitSide.js +27 -0
  515. package/lib/split/helpers.d.ts +8 -0
  516. package/lib/split/helpers.js +5 -0
  517. package/lib/split/index.d.ts +4 -0
  518. package/lib/split/index.js +6 -0
  519. package/lib/split/split.spec.d.ts +0 -0
  520. package/lib/split/types.d.ts +31 -0
  521. package/lib/table/Body.d.ts +3 -0
  522. package/lib/table/Body.js +46 -0
  523. package/lib/table/Header.d.ts +3 -0
  524. package/lib/table/Header.js +52 -0
  525. package/lib/table/HeaderColumn.d.ts +3 -0
  526. package/lib/table/HeaderColumn.js +43 -0
  527. package/lib/table/Row.d.ts +3 -0
  528. package/lib/table/Row.js +53 -0
  529. package/lib/table/RowColumn.d.ts +3 -0
  530. package/lib/table/RowColumn.js +58 -0
  531. package/lib/table/helpers.d.ts +7 -0
  532. package/lib/table/helpers.js +9 -0
  533. package/lib/table/index.d.ts +9 -0
  534. package/lib/table/index.js +106 -0
  535. package/lib/table/table.spec.d.ts +1 -0
  536. package/lib/table/types.d.ts +94 -0
  537. package/lib/tabs/DropdownTabs.d.ts +3 -0
  538. package/lib/tabs/DropdownTabs.js +84 -0
  539. package/lib/tabs/Menu.d.ts +3 -0
  540. package/lib/tabs/Menu.js +38 -0
  541. package/lib/tabs/MenuTabs.d.ts +4 -0
  542. package/lib/tabs/MenuTabs.js +64 -0
  543. package/lib/tabs/Panel.d.ts +3 -0
  544. package/lib/tabs/Panel.js +62 -0
  545. package/lib/tabs/context.d.ts +4 -0
  546. package/lib/tabs/context.js +64 -0
  547. package/lib/tabs/index.d.ts +5 -0
  548. package/lib/tabs/index.js +73 -0
  549. package/lib/tabs/tabHelpers.d.ts +9 -0
  550. package/lib/tabs/tabHelpers.js +48 -0
  551. package/lib/tabs/tabs.spec.d.ts +0 -0
  552. package/lib/tabs/types.d.ts +95 -0
  553. package/lib/tabs/useTabs.d.ts +1 -0
  554. package/lib/tabs/useTabs.js +8 -0
  555. package/lib/textContent/index.d.ts +18 -0
  556. package/lib/textContent/index.js +33 -0
  557. package/lib/textContent/textContent.spec.d.ts +1 -0
  558. package/lib/toolbar/ButtonBar.d.ts +3 -0
  559. package/lib/toolbar/ButtonBar.js +67 -0
  560. package/lib/toolbar/LabelBar.d.ts +3 -0
  561. package/lib/toolbar/LabelBar.js +51 -0
  562. package/lib/toolbar/Separator.d.ts +2 -0
  563. package/lib/toolbar/Separator.js +10 -0
  564. package/lib/toolbar/ToolBarGroup.d.ts +3 -0
  565. package/lib/toolbar/ToolBarGroup.js +16 -0
  566. package/lib/toolbar/helpers.d.ts +3 -0
  567. package/lib/toolbar/helpers.js +5 -0
  568. package/lib/toolbar/index.d.ts +8 -0
  569. package/lib/toolbar/index.js +39 -0
  570. package/lib/toolbar/toolbar.spec.d.ts +1 -0
  571. package/lib/toolbar/types.d.ts +43 -0
  572. package/lib/tooltip/index.d.ts +4 -0
  573. package/lib/tooltip/index.js +39 -0
  574. package/lib/tooltip/tooltip.spec.d.ts +1 -0
  575. package/lib/tooltip/types.d.ts +15 -0
  576. package/lib/treetable/Body.d.ts +2 -0
  577. package/lib/treetable/Body.js +34 -0
  578. package/lib/treetable/Header.d.ts +2 -0
  579. package/lib/treetable/Header.js +30 -0
  580. package/lib/treetable/Row.d.ts +3 -0
  581. package/lib/treetable/Row.js +220 -0
  582. package/lib/treetable/helpers.d.ts +13 -0
  583. package/lib/treetable/helpers.js +17 -0
  584. package/lib/treetable/index.d.ts +4 -0
  585. package/lib/treetable/index.js +28 -0
  586. package/lib/treeview/Header.d.ts +3 -0
  587. package/lib/treeview/Header.js +16 -0
  588. package/lib/treeview/Node.d.ts +3 -0
  589. package/lib/treeview/Node.js +206 -0
  590. package/lib/treeview/constants.d.ts +3 -0
  591. package/lib/treeview/constants.js +5 -0
  592. package/lib/treeview/index.d.ts +6 -0
  593. package/lib/treeview/index.js +268 -0
  594. package/lib/treeview/treeview.spec.d.ts +0 -0
  595. package/lib/treeview/types.d.ts +106 -0
  596. package/lib/uitour/helpers.d.ts +7 -0
  597. package/lib/uitour/helpers.js +9 -0
  598. package/lib/uitour/index.d.ts +4 -0
  599. package/lib/uitour/index.js +187 -0
  600. package/lib/uitour/types.d.ts +35 -0
  601. package/lib/uitour/uitour.spec.d.ts +0 -0
  602. package/package.json +1 -1
@@ -0,0 +1,16 @@
1
+ import { B as a } from "../chunks/index.aw0XaUkg.js";
2
+ import { default as e } from "./Alert.js";
3
+ import { default as l } from "./Error.js";
4
+ import { default as s } from "./Information.js";
5
+ import { default as u } from "./Question.js";
6
+ import { default as p } from "./Warning.js";
7
+ import { default as x } from "./Custom.js";
8
+ export {
9
+ e as DialogAlert,
10
+ x as DialogCustom,
11
+ l as DialogError,
12
+ s as DialogInformation,
13
+ u as DialogQuestion,
14
+ p as DialogWarning,
15
+ a as default
16
+ };
@@ -0,0 +1,107 @@
1
+ import { ReactNode, CSSProperties, ReactElement, Dispatch, JSX } from 'react';
2
+ import { TextAlign } from '../@types/Align';
3
+ import { IconNames } from '../@types/Icon';
4
+ export interface IContentProps {
5
+ children: ReactNode | ReactNode[];
6
+ styleForContent?: CSSProperties;
7
+ className?: string;
8
+ }
9
+ export interface IFooterProps {
10
+ children: ReactElement | ReactElement[];
11
+ }
12
+ export interface IHeaderProps {
13
+ handlerClose?: () => void;
14
+ showCloseButton?: boolean;
15
+ title?: string;
16
+ icon?: JSX.Element;
17
+ titleIcon?: IconNames;
18
+ }
19
+ export interface IBaseProps {
20
+ wrapperClassName?: string;
21
+ width?: string;
22
+ height?: string;
23
+ children: ReactNode | ReactNode[];
24
+ className?: string;
25
+ closeOnEsc?: boolean;
26
+ closeOnOutsideClick?: boolean;
27
+ overlay?: boolean;
28
+ textAlign?: TextAlign;
29
+ zIndex?: number | string;
30
+ open?: boolean;
31
+ onOpenChange?: (open: boolean) => void;
32
+ handlerClose?: () => void;
33
+ id?: string;
34
+ }
35
+ export interface IFormProps extends Omit<IBaseProps, 'textAlign' | 'zIndex'> {
36
+ buttons?: JSX.Element[];
37
+ styleForContent?: CSSProperties;
38
+ title?: string;
39
+ showFooter?: boolean;
40
+ isWaiting?: boolean;
41
+ icon?: JSX.Element;
42
+ content?: ReactNode;
43
+ contentClassName?: string;
44
+ }
45
+ export interface ICommonDialogProps {
46
+ onConfirmClick?: () => void;
47
+ text?: string;
48
+ title?: string;
49
+ confirmLabel?: string;
50
+ }
51
+ export interface IQuestionProps {
52
+ onUnconfirmClick: () => void;
53
+ onConfirmClick?: () => void;
54
+ visible?: boolean;
55
+ isWaiting?: boolean;
56
+ text?: string;
57
+ title?: string;
58
+ zIndex?: number | string;
59
+ closeOnEsc?: boolean;
60
+ confirmLabel?: string;
61
+ declineLabel?: string;
62
+ }
63
+ export interface ICustomProps {
64
+ icon: ReactElement;
65
+ buttons?: JSX.Element[];
66
+ title?: string;
67
+ text?: string;
68
+ height?: string;
69
+ width?: string;
70
+ iconName?: IconNames | null;
71
+ open?: boolean;
72
+ closeOnEsc?: boolean;
73
+ handlerClose?: () => void;
74
+ }
75
+ export interface IFormDialogContext {
76
+ headerRef?: React.RefObject<HTMLDivElement>;
77
+ }
78
+ export interface WizardComponentProps extends Omit<IFormProps, 'content'> {
79
+ children: React.ReactNode;
80
+ buttons?: JSX.Element[];
81
+ showProgressbar?: boolean;
82
+ title?: string;
83
+ handlerClose?: () => void;
84
+ controls: WizardControls;
85
+ customStyleForProgressBar?: CSSProperties;
86
+ customStyleForBody?: CSSProperties;
87
+ progressBarPosition?: 'top' | 'left';
88
+ }
89
+ export interface WizardStepComponentProps {
90
+ children: React.ReactNode;
91
+ title: string;
92
+ customClass?: string;
93
+ customStyle?: CSSProperties;
94
+ }
95
+ export interface WizardControls extends Omit<UseWizardReturn, 'controls'> {
96
+ setTotalSteps: Dispatch<React.SetStateAction<number>>;
97
+ }
98
+ export interface UseWizardReturn {
99
+ changeStep: (nextStep: number) => void;
100
+ nextStep: () => void;
101
+ hasNextStep: boolean;
102
+ previousStep: () => void;
103
+ hasPreviousStep: boolean;
104
+ currentStep: number;
105
+ totalSteps: number;
106
+ controls: WizardControls;
107
+ }
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { WizardComponentProps, WizardControls } from '../types';
3
+ export declare const WizardContext: React.Context<WizardControls | null>;
4
+ export declare const useWizardContext: () => WizardControls | null;
5
+ declare function Wizard({ children, controls, showProgressbar, customStyleForProgressBar, customStyleForBody, progressBarPosition, ...dialogProps }: Readonly<WizardComponentProps>): import("react/jsx-runtime").JSX.Element;
6
+ export { WizardStep as Step } from './step';
7
+ export { Wizard as Container };
8
+ export { useWizard } from './useWizard';
9
+ export default Wizard;
@@ -0,0 +1,15 @@
1
+ import "../../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import "../../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import "react";
4
+ import "../../chunks/lodash.CIAK_hAg.js";
5
+ import "../../chunks/index.aw0XaUkg.js";
6
+ import { b as m, W as s, a as d, b as n, u } from "./progressbar.js";
7
+ import { useWizard as W } from "./useWizard.js";
8
+ export {
9
+ m as Container,
10
+ s as Step,
11
+ d as WizardContext,
12
+ n as default,
13
+ W as useWizard,
14
+ u as useWizardContext
15
+ };
@@ -0,0 +1,11 @@
1
+ import { CSSProperties } from 'react';
2
+ export declare function Progressbar({ customClass, customStyle, stepsTitle, position, }: Readonly<{
3
+ customClass?: string;
4
+ stepsTitle: {
5
+ title: string;
6
+ number: number;
7
+ completed: boolean;
8
+ }[];
9
+ customStyle?: CSSProperties;
10
+ position?: 'top' | 'left';
11
+ }>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,98 @@
1
+ import { j as d } from "../../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as C } from "../../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import N, { useEffect as B } from "react";
4
+ import { _ as F } from "../../chunks/lodash.CIAK_hAg.js";
5
+ import { F as R } from "../../chunks/index.aw0XaUkg.js";
6
+ import "./useWizard.js";
7
+ import '../../assets/progressbar.css';function T(u) {
8
+ const t = C.c(10), {
9
+ customClass: l,
10
+ customStyle: s,
11
+ stepsTitle: r,
12
+ position: a
13
+ } = u, c = a === void 0 ? "top" : a, i = E();
14
+ if (!i)
15
+ throw new Error("WizardProgressbar must be used within a Wizard component");
16
+ const {
17
+ currentStep: o
18
+ } = i, f = `wizard-progressbar ${l}`;
19
+ let m;
20
+ if (t[0] !== o || t[1] !== r) {
21
+ let p;
22
+ t[3] !== o ? (p = (e) => /* @__PURE__ */ d.jsxs("div", { className: "title", "data-completed": e.completed, "data-disabled": e.number > o, children: [
23
+ /* @__PURE__ */ d.jsx("div", { className: "step", children: /* @__PURE__ */ d.jsx("span", { className: "number", children: e.number }) }),
24
+ /* @__PURE__ */ d.jsx("span", { className: "step-title", children: e.title })
25
+ ] }, e.number), t[3] = o, t[4] = p) : p = t[4], m = r.map(p), t[0] = o, t[1] = r, t[2] = m;
26
+ } else
27
+ m = t[2];
28
+ let n;
29
+ return t[5] !== s || t[6] !== c || t[7] !== f || t[8] !== m ? (n = /* @__PURE__ */ d.jsx("div", { className: f, style: s, "data-position": c, children: m }), t[5] = s, t[6] = c, t[7] = f, t[8] = m, t[9] = n) : n = t[9], n;
30
+ }
31
+ function H(u) {
32
+ const t = C.c(4), {
33
+ children: l,
34
+ customClass: s,
35
+ customStyle: r
36
+ } = u, a = s === void 0 ? "" : s;
37
+ if (!E())
38
+ throw new Error("WizardStep must be used within a Wizard component");
39
+ const i = `wizard-step-component ${a}`;
40
+ let o;
41
+ return t[0] !== l || t[1] !== r || t[2] !== i ? (o = /* @__PURE__ */ d.jsx("div", { className: i, style: r, children: l }), t[0] = l, t[1] = r, t[2] = i, t[3] = o) : o = t[3], o;
42
+ }
43
+ const P = N.createContext(null), E = () => N.useContext(P);
44
+ function I(u) {
45
+ const t = C.c(34);
46
+ let l, s, r, a, c, i, o;
47
+ t[0] !== u ? ({
48
+ children: l,
49
+ controls: s,
50
+ showProgressbar: i,
51
+ customStyleForProgressBar: a,
52
+ customStyleForBody: r,
53
+ progressBarPosition: o,
54
+ ...c
55
+ } = u, t[0] = u, t[1] = l, t[2] = s, t[3] = r, t[4] = a, t[5] = c, t[6] = i, t[7] = o) : (l = t[1], s = t[2], r = t[3], a = t[4], c = t[5], i = t[6], o = t[7]);
56
+ const f = i === void 0 ? !0 : i, m = o === void 0 ? "top" : o, {
57
+ currentStep: n,
58
+ setTotalSteps: p
59
+ } = s;
60
+ let e, w;
61
+ if (t[8] !== l || t[9] !== n) {
62
+ e = N.Children.toArray(l);
63
+ let j;
64
+ t[12] !== n ? (j = ($, W) => ({
65
+ title: String($.props.title),
66
+ number: W + 1,
67
+ completed: W < n - 1 && W !== n
68
+ }), t[12] = n, t[13] = j) : j = t[13], w = e.map(j), t[8] = l, t[9] = n, t[10] = e, t[11] = w;
69
+ } else
70
+ e = t[10], w = t[11];
71
+ const v = w, S = e[n - 1];
72
+ if (!s || F.isEmpty(s))
73
+ throw new Error("Wizard must be have controls by using useWizard hook or creating manually.");
74
+ let b;
75
+ t[14] !== p || t[15] !== e.length ? (b = () => {
76
+ p(e.length);
77
+ }, t[14] = p, t[15] = e.length, t[16] = b) : b = t[16];
78
+ let z;
79
+ t[17] !== e.length ? (z = [e.length], t[17] = e.length, t[18] = z) : z = t[18], B(b, z);
80
+ let h;
81
+ t[19] !== a || t[20] !== m || t[21] !== f || t[22] !== v ? (h = f && /* @__PURE__ */ d.jsx(T, { stepsTitle: v, customStyle: a, position: m }), t[19] = a, t[20] = m, t[21] = f, t[22] = v, t[23] = h) : h = t[23];
82
+ let g;
83
+ t[24] !== S || t[25] !== r ? (g = /* @__PURE__ */ d.jsx("div", { className: "wizard-body", style: r, children: S }), t[24] = S, t[25] = r, t[26] = g) : g = t[26];
84
+ let x;
85
+ t[27] !== c || t[28] !== h || t[29] !== g ? (x = /* @__PURE__ */ d.jsxs(R, { className: "wizard-dialog", wrapperClassName: "wizard-wrapper", contentClassName: "wizard-content", ...c, children: [
86
+ h,
87
+ g
88
+ ] }), t[27] = c, t[28] = h, t[29] = g, t[30] = x) : x = t[30];
89
+ let y;
90
+ return t[31] !== s || t[32] !== x ? (y = /* @__PURE__ */ d.jsx(P.Provider, { value: s, children: x }), t[31] = s, t[32] = x, t[33] = y) : y = t[33], y;
91
+ }
92
+ export {
93
+ T as Progressbar,
94
+ H as W,
95
+ P as a,
96
+ I as b,
97
+ E as u
98
+ };
@@ -0,0 +1,2 @@
1
+ import { WizardStepComponentProps } from '../types';
2
+ export declare function WizardStep({ children, customClass, customStyle }: Readonly<WizardStepComponentProps>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import "../../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import "../../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { W as i } from "./progressbar.js";
4
+ export {
5
+ i as WizardStep
6
+ };
@@ -0,0 +1,2 @@
1
+ import { UseWizardReturn } from '../types';
2
+ export declare const useWizard: () => UseWizardReturn;
@@ -0,0 +1,45 @@
1
+ import { c as _ } from "../../chunks/compiler-runtime.Cu50tn6L.js";
2
+ import v, { useState as R } from "react";
3
+ const g = () => {
4
+ const t = _.c(20), [n, m] = R(0), [o, u] = v.useState(1), e = o < n, s = o > 1;
5
+ let l;
6
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (l = (x) => {
7
+ u((h) => h + x);
8
+ }, t[0] = l) : l = t[0];
9
+ const i = l;
10
+ let S;
11
+ t[1] !== e ? (S = () => {
12
+ e && i(1);
13
+ }, t[1] = e, t[2] = S) : S = t[2];
14
+ const c = S;
15
+ let a;
16
+ t[3] !== s ? (a = () => {
17
+ s && i(-1);
18
+ }, t[3] = s, t[4] = a) : a = t[4];
19
+ const r = a;
20
+ let p;
21
+ t[5] !== o || t[6] !== e || t[7] !== s || t[8] !== c || t[9] !== r || t[10] !== n ? (p = {
22
+ changeStep: i,
23
+ nextStep: c,
24
+ hasNextStep: e,
25
+ previousStep: r,
26
+ hasPreviousStep: s,
27
+ currentStep: o,
28
+ totalSteps: n,
29
+ setTotalSteps: m
30
+ }, t[5] = o, t[6] = e, t[7] = s, t[8] = c, t[9] = r, t[10] = n, t[11] = p) : p = t[11];
31
+ let f;
32
+ return t[12] !== o || t[13] !== e || t[14] !== s || t[15] !== c || t[16] !== r || t[17] !== p || t[18] !== n ? (f = {
33
+ changeStep: i,
34
+ nextStep: c,
35
+ hasNextStep: e,
36
+ previousStep: r,
37
+ hasPreviousStep: s,
38
+ currentStep: o,
39
+ totalSteps: n,
40
+ controls: p
41
+ }, t[12] = o, t[13] = e, t[14] = s, t[15] = c, t[16] = r, t[17] = p, t[18] = n, t[19] = f) : f = t[19], f;
42
+ };
43
+ export {
44
+ g as useWizard
45
+ };
File without changes
@@ -0,0 +1,3 @@
1
+ import { IDrawerProps } from './types';
2
+ declare const Content: ({ children, style }: IDrawerProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Content;
@@ -0,0 +1,18 @@
1
+ import { j as m } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as i } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { useContext as c } from "react";
4
+ import p from "./helpers.js";
5
+ import a from "../noPermission/index.js";
6
+ const j = (n) => {
7
+ const t = i.c(4), {
8
+ children: r,
9
+ style: e
10
+ } = n, {
11
+ hideContent: s
12
+ } = c(p);
13
+ let o;
14
+ return t[0] !== r || t[1] !== s || t[2] !== e ? (o = s ? /* @__PURE__ */ m.jsx(a, {}) : /* @__PURE__ */ m.jsx("div", { className: "drawerbody", style: e, children: r }), t[0] = r, t[1] = s, t[2] = e, t[3] = o) : o = t[3], o;
15
+ };
16
+ export {
17
+ j as default
18
+ };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { IDrawerProps } from './types';
3
+ declare const BaseDrawer: ({ position, customClass, children, style, customClassForContent, targetId, closeOnEsc, overlay, permissionAttr, skeletonize, handlerClose, customClassForDrawer, content, title, isWaiting, ...rest }: IDrawerProps) => React.ReactPortal;
4
+ export default BaseDrawer;
@@ -0,0 +1,75 @@
1
+ import { j as n } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { useRef as f, useState as L, useEffect as v, Suspense as R } from "react";
3
+ import M from "react-dom";
4
+ import H from "./helpers.js";
5
+ import { OPTIONS_ON_DENIED as V, actionsOnPermissionDenied as q } from "../permissionValidations.js";
6
+ import z from "./Header.js";
7
+ import A from "./Content.js";
8
+ import "../form/withFormSecurity.js";
9
+ import F from "../spinner/index.js";
10
+ import '../assets/Drawer.css';const W = ({
11
+ position: w = "left",
12
+ customClass: C = "",
13
+ children: h,
14
+ style: E,
15
+ customClassForContent: x = "",
16
+ targetId: o,
17
+ closeOnEsc: d,
18
+ overlay: D,
19
+ permissionAttr: N,
20
+ skeletonize: c,
21
+ handlerClose: m,
22
+ customClassForDrawer: j = "",
23
+ content: l,
24
+ title: u,
25
+ isWaiting: p = !1,
26
+ ...S
27
+ }) => {
28
+ const b = {
29
+ ...S,
30
+ title: u
31
+ }, s = f(document.createElement("div"));
32
+ s.current.className = "drawercontainer";
33
+ const a = f(null), {
34
+ hideContent: O
35
+ } = V, [P] = L(q([O], N)), B = p ? {
36
+ opacity: 0.4,
37
+ pointerEvent: "none",
38
+ placeContent: "center"
39
+ } : {}, _ = () => p ? /* @__PURE__ */ n.jsx("div", { className: "waitingspinner", children: /* @__PURE__ */ n.jsx(F, { style: {
40
+ width: 60
41
+ }, delayTime: 0 }) }) : null, g = (e, r) => {
42
+ const t = document.createElement("div");
43
+ t.className = "drawer-component", t.id = String(r), e.appendChild(t), t.appendChild(s.current), a.current = t;
44
+ }, k = (e) => {
45
+ const r = document.createElement("div");
46
+ r.className = "drawer-overlay", r.dataset.testid = "drawer-overlay", e.appendChild(r);
47
+ }, i = (e) => {
48
+ d && e.key === "Escape" && (m?.(), e.stopPropagation());
49
+ };
50
+ v(() => {
51
+ let e;
52
+ const r = Math.round(+/* @__PURE__ */ new Date() / 1e3);
53
+ return o === void 0 ? e = document.getElementsByTagName("body")[0] : e = document.getElementById(o), e && g(e, r), D && !o && e && k(e), () => {
54
+ const t = document.getElementsByClassName("drawer-overlay")[0];
55
+ if (d && document.body.removeEventListener("keydown", i), o) {
56
+ const y = document.getElementById(o);
57
+ y && a.current && y.removeChild(a.current);
58
+ } else a.current && document.body.removeChild(a.current);
59
+ t && !o && e && e.removeChild(t);
60
+ };
61
+ }, []), v(() => (d && document.body.addEventListener("keydown", i), () => document.body.removeEventListener("keydown", i)), [d]);
62
+ const T = {
63
+ handlerClose: m,
64
+ hideContent: P.hideContent,
65
+ skeletonize: c
66
+ }, $ = () => /* @__PURE__ */ n.jsx(H.Provider, { value: T, children: /* @__PURE__ */ n.jsx("div", { "data-testid": "drawercontainer-component", className: `${w} ${C}`, style: E, children: /* @__PURE__ */ n.jsxs("div", { style: B, "data-testid": "drawercontent", className: `drawercontent ${c ? "-skeletonized" : ""} ${x}`, children: [
67
+ u && /* @__PURE__ */ n.jsx(z, { ...b, customClass: j }),
68
+ /* @__PURE__ */ n.jsx(R, { children: l ? /* @__PURE__ */ n.jsx(A, { children: l }) : h }),
69
+ _()
70
+ ] }) }) });
71
+ return M.createPortal($(), s.current);
72
+ };
73
+ export {
74
+ W as default
75
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { IDrawerHeaderProps } from './types';
2
+ declare const Header: ({ showCloseButton, title, subTitle, icon, titleIcon, customClass, titleContent, subTitleContent, titleRightContent, }: IDrawerHeaderProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Header;
@@ -0,0 +1,56 @@
1
+ import { j as t } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as I } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { useContext as $, Fragment as R } from "react";
4
+ import E from "../icons/index.js";
5
+ import z from "./helpers.js";
6
+ const D = (s) => /* @__PURE__ */ t.jsx("span", { "data-testid": "header-closebutton", className: "closebutton", onClick: s, role: "button", tabIndex: 0, children: /* @__PURE__ */ t.jsx(E, { name: "cancel2" }) }), k = (s, e) => s || e ? /* @__PURE__ */ t.jsx("span", { "data-testid": "icon-header", className: "icon-header", children: e || s && /* @__PURE__ */ t.jsx(E, { name: s, color: "#000", size: 24 }) }) : /* @__PURE__ */ t.jsx("noscript", {}), G = (s) => {
7
+ const e = I.c(27), {
8
+ showCloseButton: T,
9
+ title: C,
10
+ subTitle: a,
11
+ icon: c,
12
+ titleIcon: d,
13
+ customClass: H,
14
+ titleContent: m,
15
+ subTitleContent: u,
16
+ titleRightContent: b
17
+ } = s, N = T === void 0 ? !0 : T, {
18
+ handlerClose: h
19
+ } = $(z);
20
+ let x;
21
+ e[0] !== c || e[1] !== C || e[2] !== m || e[3] !== d || e[4] !== b ? (x = () => m ? /* @__PURE__ */ t.jsx(R, { children: m }) : /* @__PURE__ */ t.jsxs(R, { children: [
22
+ c ? k(d, c) : k(d, null),
23
+ /* @__PURE__ */ t.jsx("h2", { className: "drawer-title", children: C }),
24
+ b
25
+ ] }), e[0] = c, e[1] = C, e[2] = m, e[3] = d, e[4] = b, e[5] = x) : x = e[5];
26
+ const w = x;
27
+ let f;
28
+ e[6] !== a || e[7] !== u ? (f = () => u ? /* @__PURE__ */ t.jsx(R, { children: u }) : a && /* @__PURE__ */ t.jsx("h3", { className: "drawer-subtitle", children: a }), e[6] = a, e[7] = u, e[8] = f) : f = e[8];
29
+ const v = f;
30
+ let j;
31
+ e[9] !== h ? (j = () => h ? h() : void 0, e[9] = h, e[10] = j) : j = e[10];
32
+ const g = j, B = `drawerheader ${H}`;
33
+ let r;
34
+ e[11] !== w ? (r = /* @__PURE__ */ t.jsx("div", { className: "title-subtitle", children: w() }), e[11] = w, e[12] = r) : r = e[12];
35
+ let l;
36
+ e[13] !== v ? (l = v(), e[13] = v, e[14] = l) : l = e[14];
37
+ let n;
38
+ e[15] !== r || e[16] !== l ? (n = /* @__PURE__ */ t.jsxs("div", { className: "left", children: [
39
+ r,
40
+ l
41
+ ] }), e[15] = r, e[16] = l, e[17] = n) : n = e[17];
42
+ let i;
43
+ e[18] !== g || e[19] !== N ? (i = N && D(() => {
44
+ g();
45
+ }), e[18] = g, e[19] = N, e[20] = i) : i = e[20];
46
+ let o;
47
+ e[21] !== i ? (o = /* @__PURE__ */ t.jsx("div", { className: "right", children: i }), e[21] = i, e[22] = o) : o = e[22];
48
+ let p;
49
+ return e[23] !== o || e[24] !== B || e[25] !== n ? (p = /* @__PURE__ */ t.jsxs("div", { className: B, "data-testid": "drawerheader", children: [
50
+ n,
51
+ o
52
+ ] }), e[23] = o, e[24] = B, e[25] = n, e[26] = p) : p = e[26], p;
53
+ };
54
+ export {
55
+ G as default
56
+ };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { IDrawerContext } from './types';
3
+ declare const DrawerContext: React.Context<IDrawerContext>;
4
+ export default DrawerContext;
@@ -0,0 +1,5 @@
1
+ import t from "react";
2
+ const o = t.createContext({});
3
+ export {
4
+ o as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import { default as DrawerHeader } from './Header';
2
+ import { default as DrawerContent } from './Content';
3
+ declare const _default: (props: import('./types').IDrawerProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default _default;
5
+ export { DrawerHeader, DrawerContent };
@@ -0,0 +1,10 @@
1
+ import r from "./Drawer.js";
2
+ import { default as p } from "./Header.js";
3
+ import { default as w } from "./Content.js";
4
+ import e from "../form/withFormSecurity.js";
5
+ const o = e(r);
6
+ export {
7
+ w as DrawerContent,
8
+ p as DrawerHeader,
9
+ o as default
10
+ };
@@ -0,0 +1,37 @@
1
+ import { default as React, ReactElement, ReactNode } from 'react';
2
+ import { PermissionAttr } from '../@types/PermissionAttr';
3
+ import { Position } from '../@types/Position';
4
+ import { IconNames } from '../@types/Icon';
5
+ export interface IDrawerProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ overlay?: boolean;
7
+ children?: ReactNode;
8
+ customClass?: string;
9
+ customClassForContent?: string;
10
+ customClassForDrawer?: string;
11
+ position?: Exclude<Position, 'center'>;
12
+ handlerClose?: () => void;
13
+ closeOnEsc?: boolean;
14
+ targetId?: string;
15
+ permissionAttr?: PermissionAttr | PermissionAttr[];
16
+ skeletonize?: boolean;
17
+ closeOnOutsideClick?: boolean;
18
+ content?: string;
19
+ title?: string;
20
+ isWaiting?: boolean;
21
+ }
22
+ export interface IDrawerHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
23
+ showCloseButton?: boolean;
24
+ customClass?: string;
25
+ title?: string;
26
+ titleRightContent?: ReactElement;
27
+ titleContent?: ReactElement;
28
+ subTitle?: string;
29
+ subTitleContent?: ReactElement;
30
+ icon?: ReactElement;
31
+ titleIcon?: IconNames;
32
+ }
33
+ export interface IDrawerContext {
34
+ handlerClose?: () => void;
35
+ hideContent?: boolean;
36
+ skeletonize?: boolean;
37
+ }
@@ -0,0 +1,3 @@
1
+ import { IPopupProps } from './types';
2
+ declare const DropdownPopup: ({ id, customClassForDropdown, align, isFloatMenu, topPosition, leftPosition, rightPosition, minWidth, targetRef, ...props }: IPopupProps) => import('react').ReactPortal;
3
+ export default DropdownPopup;
@@ -0,0 +1,51 @@
1
+ import { useRef as w, useEffect as x } from "react";
2
+ import P from "react-dom";
3
+ import { v } from "../chunks/v1.Ds1rkxUj.js";
4
+ const y = ({
5
+ align: s,
6
+ isFloatMenu: r,
7
+ minWidth: c,
8
+ container: i,
9
+ target: d
10
+ }) => {
11
+ if (!i || !d) return "";
12
+ const e = d.getBoundingClientRect(), a = r ? void 0 : window.innerWidth - e.x - e.width - 4, p = e.left;
13
+ let n = e.top + window.scrollY + e.height + (r ? 6 : 2), t, o = !1;
14
+ if (n + i.scrollHeight > window.innerHeight) {
15
+ const m = e.top, u = i.scrollHeight;
16
+ o = u > m, t = o ? m - 10 : u, n = n - t - e.height - (r ? 6 : 2) - 5;
17
+ }
18
+ let l = `top: ${n}px; min-width: ${c}px;`;
19
+ return o && (l += `max-height: ${t}px; overflow-y: scroll;`), s === "left" ? l += `left: ${p}px;` : s === "right" && (l += `right: ${a}px;`), l;
20
+ }, {
21
+ body: g
22
+ } = document, D = ({
23
+ id: s,
24
+ customClassForDropdown: r = "",
25
+ align: c = "left",
26
+ isFloatMenu: i = !1,
27
+ topPosition: d = 0,
28
+ leftPosition: e = 0,
29
+ rightPosition: a = 0,
30
+ minWidth: p = 0,
31
+ targetRef: f,
32
+ ...n
33
+ }) => {
34
+ const t = w(document.createElement("div"));
35
+ if (t.current.className = `dropdown-component ${r}`, t.current.dataset.testid = "dropdown-component", t && t.current) {
36
+ const o = document.body.getElementsByClassName("modalcontainer"), h = o[o.length - 1];
37
+ t.current.style.zIndex = `${o.length ? Number(h.style.zIndex) + 1 : 99999}`;
38
+ }
39
+ return x(() => (g.appendChild(t.current), t.current.id = s || `dropdown-component-${v()}`, t.current.style.cssText = y({
40
+ align: c,
41
+ isFloatMenu: i,
42
+ minWidth: p,
43
+ container: t.current,
44
+ target: f
45
+ }), () => {
46
+ g.removeChild(t.current);
47
+ }), []), P.createPortal(n.children, t.current);
48
+ };
49
+ export {
50
+ D as default
51
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const contentClass: (showClearButton: boolean) => string;
2
+ export declare const getDropdownItemCssClass: (selected: boolean, disabled: boolean, striped: boolean) => string;
@@ -0,0 +1,8 @@
1
+ const o = (t) => `content ${t ? "" : "noclear"}`, c = (t, s, n) => {
2
+ let e = "item";
3
+ return e += t && !s ? " -selected " : "", e += s ? " -disabled" : "", e += !t && !s && n ? " -striped " : "", e;
4
+ };
5
+ export {
6
+ o as contentClass,
7
+ c as getDropdownItemCssClass
8
+ };