iguazio.dashboard-react-controls 2.2.24 → 3.0.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 (369) hide show
  1. package/dist/components/Backdrop/Backdrop.d.ts +14 -0
  2. package/dist/components/Backdrop/Backdrop.d.ts.map +1 -0
  3. package/dist/components/Backdrop/Backdrop.mjs +29 -0
  4. package/dist/components/Backdrop/Backdrop.mjs.map +1 -0
  5. package/dist/components/Button/Button.d.ts +28 -0
  6. package/dist/components/Button/Button.d.ts.map +1 -0
  7. package/dist/components/Button/Button.mjs +43 -0
  8. package/dist/components/Button/Button.mjs.map +1 -0
  9. package/dist/components/Button/Button.stories.d.ts +14 -0
  10. package/dist/components/Button/Button.stories.d.ts.map +1 -0
  11. package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +33 -0
  12. package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +1 -0
  13. package/dist/components/ConfirmDialog/ConfirmDialog.mjs +83 -0
  14. package/dist/components/ConfirmDialog/ConfirmDialog.mjs.map +1 -0
  15. package/dist/components/ConfirmDialog/ConfirmDialog.stories.d.ts +8 -0
  16. package/dist/components/ConfirmDialog/ConfirmDialog.stories.d.ts.map +1 -0
  17. package/dist/components/FormCheckBox/FormCheckBox.d.ts +21 -0
  18. package/dist/components/FormCheckBox/FormCheckBox.d.ts.map +1 -0
  19. package/dist/components/FormCheckBox/FormCheckBox.mjs +54 -0
  20. package/dist/components/FormCheckBox/FormCheckBox.mjs.map +1 -0
  21. package/dist/components/FormCheckBox/FormCheckbox.stories.d.ts +7 -0
  22. package/dist/components/FormCheckBox/FormCheckbox.stories.d.ts.map +1 -0
  23. package/dist/components/FormChipCell/FormChip/FormChip.d.ts +45 -0
  24. package/dist/components/FormChipCell/FormChip/FormChip.d.ts.map +1 -0
  25. package/dist/components/FormChipCell/FormChip/FormChip.mjs +78 -0
  26. package/dist/components/FormChipCell/FormChip/FormChip.mjs.map +1 -0
  27. package/dist/components/FormChipCell/FormChipCell.d.ts +44 -0
  28. package/dist/components/FormChipCell/FormChipCell.d.ts.map +1 -0
  29. package/dist/components/FormChipCell/FormChipCell.mjs +239 -0
  30. package/dist/components/FormChipCell/FormChipCell.mjs.map +1 -0
  31. package/dist/components/FormChipCell/FormChipCellView.d.ts +56 -0
  32. package/dist/components/FormChipCell/FormChipCellView.d.ts.map +1 -0
  33. package/dist/components/FormChipCell/FormChipCellView.mjs +169 -0
  34. package/dist/components/FormChipCell/FormChipCellView.mjs.map +1 -0
  35. package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.d.ts +22 -0
  36. package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.d.ts.map +1 -0
  37. package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.mjs +72 -0
  38. package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.mjs.map +1 -0
  39. package/dist/components/FormChipCell/NewChipForm/NewChipForm.d.ts +35 -0
  40. package/dist/components/FormChipCell/NewChipForm/NewChipForm.d.ts.map +1 -0
  41. package/dist/components/FormChipCell/NewChipForm/NewChipForm.mjs +270 -0
  42. package/dist/components/FormChipCell/NewChipForm/NewChipForm.mjs.map +1 -0
  43. package/dist/components/FormChipCell/NewChipInput/NewChipInput.d.ts +16 -0
  44. package/dist/components/FormChipCell/NewChipInput/NewChipInput.d.ts.map +1 -0
  45. package/dist/components/FormChipCell/NewChipInput/NewChipInput.mjs +36 -0
  46. package/dist/components/FormChipCell/NewChipInput/NewChipInput.mjs.map +1 -0
  47. package/dist/components/FormChipCell/formChipCell.util.d.ts +6 -0
  48. package/dist/components/FormChipCell/formChipCell.util.d.ts.map +1 -0
  49. package/dist/components/FormChipCell/formChipCell.util.mjs +24 -0
  50. package/dist/components/FormChipCell/formChipCell.util.mjs.map +1 -0
  51. package/dist/components/FormCombobox/FormCombobox.d.ts +56 -0
  52. package/dist/components/FormCombobox/FormCombobox.d.ts.map +1 -0
  53. package/dist/components/FormCombobox/FormCombobox.mjs +278 -0
  54. package/dist/components/FormCombobox/FormCombobox.mjs.map +1 -0
  55. package/dist/components/FormCombobox/FormCombobox.stories.d.ts +12 -0
  56. package/dist/components/FormCombobox/FormCombobox.stories.d.ts.map +1 -0
  57. package/dist/components/FormInput/FormInput.d.ts +3 -0
  58. package/dist/components/FormInput/FormInput.d.ts.map +1 -0
  59. package/dist/components/FormInput/FormInput.mjs +272 -0
  60. package/dist/components/FormInput/FormInput.mjs.map +1 -0
  61. package/dist/components/FormInput/FormInput.stories.d.ts +14 -0
  62. package/dist/components/FormInput/FormInput.stories.d.ts.map +1 -0
  63. package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.d.ts +20 -0
  64. package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.d.ts.map +1 -0
  65. package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.mjs +61 -0
  66. package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.mjs.map +1 -0
  67. package/dist/components/FormKeyValueTable/FormKeyValueTable.d.ts +49 -0
  68. package/dist/components/FormKeyValueTable/FormKeyValueTable.d.ts.map +1 -0
  69. package/dist/components/FormKeyValueTable/FormKeyValueTable.mjs +202 -0
  70. package/dist/components/FormKeyValueTable/FormKeyValueTable.mjs.map +1 -0
  71. package/dist/components/FormOnChange/FormOnChange.d.ts +12 -0
  72. package/dist/components/FormOnChange/FormOnChange.d.ts.map +1 -0
  73. package/dist/components/FormOnChange/FormOnChange.mjs +33 -0
  74. package/dist/components/FormOnChange/FormOnChange.mjs.map +1 -0
  75. package/dist/components/FormRadio/FormRadio.d.ts +19 -0
  76. package/dist/components/FormRadio/FormRadio.d.ts.map +1 -0
  77. package/dist/components/FormRadio/FormRadio.mjs +57 -0
  78. package/dist/components/FormRadio/FormRadio.mjs.map +1 -0
  79. package/dist/components/FormRadio/FormRadio.stories.d.ts +7 -0
  80. package/dist/components/FormRadio/FormRadio.stories.d.ts.map +1 -0
  81. package/dist/components/FormSelect/FormSelect.d.ts +43 -0
  82. package/dist/components/FormSelect/FormSelect.d.ts.map +1 -0
  83. package/dist/components/FormSelect/FormSelect.mjs +257 -0
  84. package/dist/components/FormSelect/FormSelect.mjs.map +1 -0
  85. package/dist/components/FormSelect/FormSelect.stories.d.ts +10 -0
  86. package/dist/components/FormSelect/FormSelect.stories.d.ts.map +1 -0
  87. package/dist/components/FormTextarea/FormTextarea.d.ts +40 -0
  88. package/dist/components/FormTextarea/FormTextarea.d.ts.map +1 -0
  89. package/dist/components/FormTextarea/FormTextarea.mjs +122 -0
  90. package/dist/components/FormTextarea/FormTextarea.mjs.map +1 -0
  91. package/dist/components/FormTextarea/FormTextarea.stories.d.ts +9 -0
  92. package/dist/components/FormTextarea/FormTextarea.stories.d.ts.map +1 -0
  93. package/dist/components/FormToggle/FormToggle.d.ts +18 -0
  94. package/dist/components/FormToggle/FormToggle.d.ts.map +1 -0
  95. package/dist/components/FormToggle/FormToggle.mjs +48 -0
  96. package/dist/components/FormToggle/FormToggle.mjs.map +1 -0
  97. package/dist/components/Modal/Modal.d.ts +29 -0
  98. package/dist/components/Modal/Modal.d.ts.map +1 -0
  99. package/dist/components/Modal/Modal.mjs +71 -0
  100. package/dist/components/Modal/Modal.mjs.map +1 -0
  101. package/dist/components/PopUpDialog/PopUpDialog.d.ts +28 -0
  102. package/dist/components/PopUpDialog/PopUpDialog.d.ts.map +1 -0
  103. package/dist/components/PopUpDialog/PopUpDialog.mjs +90 -0
  104. package/dist/components/PopUpDialog/PopUpDialog.mjs.map +1 -0
  105. package/dist/components/RoundedIcon/RoundedIcon.d.ts +23 -0
  106. package/dist/components/RoundedIcon/RoundedIcon.d.ts.map +1 -0
  107. package/dist/components/RoundedIcon/RoundedIcon.mjs +40 -0
  108. package/dist/components/RoundedIcon/RoundedIcon.mjs.map +1 -0
  109. package/dist/components/RoundedIcon/RoundedIcon.stories.d.ts +9 -0
  110. package/dist/components/RoundedIcon/RoundedIcon.stories.d.ts.map +1 -0
  111. package/dist/components/Tip/Tip.d.ts +14 -0
  112. package/dist/components/Tip/Tip.d.ts.map +1 -0
  113. package/dist/components/Tip/Tip.mjs +67 -0
  114. package/dist/components/Tip/Tip.mjs.map +1 -0
  115. package/dist/components/Tip/Tip.stories.d.ts +7 -0
  116. package/dist/components/Tip/Tip.stories.d.ts.map +1 -0
  117. package/dist/components/Tooltip/Tooltip.d.ts +22 -0
  118. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
  119. package/dist/components/Tooltip/Tooltip.mjs +136 -0
  120. package/dist/components/Tooltip/Tooltip.mjs.map +1 -0
  121. package/dist/components/Tooltip/Tooltip.stories.d.ts +8 -0
  122. package/dist/components/Tooltip/Tooltip.stories.d.ts.map +1 -0
  123. package/dist/components/TooltipTemplate/ProducerTooltipTemplate.d.ts +12 -0
  124. package/dist/components/TooltipTemplate/ProducerTooltipTemplate.d.ts.map +1 -0
  125. package/dist/components/TooltipTemplate/TextTooltipTemplate.d.ts +12 -0
  126. package/dist/components/TooltipTemplate/TextTooltipTemplate.d.ts.map +1 -0
  127. package/dist/components/TooltipTemplate/TextTooltipTemplate.mjs +21 -0
  128. package/dist/components/TooltipTemplate/TextTooltipTemplate.mjs.map +1 -0
  129. package/dist/components/Wizard/Wizard.d.ts +33 -0
  130. package/dist/components/Wizard/Wizard.d.ts.map +1 -0
  131. package/dist/components/Wizard/Wizard.mjs +129 -0
  132. package/dist/components/Wizard/Wizard.mjs.map +1 -0
  133. package/dist/components/Wizard/WizardSteps/WizardSteps.d.ts +16 -0
  134. package/dist/components/Wizard/WizardSteps/WizardSteps.d.ts.map +1 -0
  135. package/dist/components/Wizard/WizardSteps/WizardSteps.mjs +41 -0
  136. package/dist/components/Wizard/WizardSteps/WizardSteps.mjs.map +1 -0
  137. package/dist/components/index.d.ts +21 -0
  138. package/dist/components/index.d.ts.map +1 -0
  139. package/dist/components/index.mjs +41 -0
  140. package/dist/components/index.mjs.map +1 -0
  141. package/dist/constants.d.ts +114 -0
  142. package/dist/constants.d.ts.map +1 -0
  143. package/dist/constants.mjs +44 -0
  144. package/dist/constants.mjs.map +1 -0
  145. package/dist/elements/FormActionButton/FormActionButton.d.ts +23 -0
  146. package/dist/elements/FormActionButton/FormActionButton.d.ts.map +1 -0
  147. package/dist/elements/FormActionButton/FormActionButton.mjs +43 -0
  148. package/dist/elements/FormActionButton/FormActionButton.mjs.map +1 -0
  149. package/dist/elements/FormRowActions/FormRowActions.d.ts +27 -0
  150. package/dist/elements/FormRowActions/FormRowActions.d.ts.map +1 -0
  151. package/dist/elements/FormRowActions/FormRowActions.mjs +87 -0
  152. package/dist/elements/FormRowActions/FormRowActions.mjs.map +1 -0
  153. package/dist/elements/OptionsMenu/OptionsMenu.d.ts +18 -0
  154. package/dist/elements/OptionsMenu/OptionsMenu.d.ts.map +1 -0
  155. package/dist/elements/OptionsMenu/OptionsMenu.mjs +47 -0
  156. package/dist/elements/OptionsMenu/OptionsMenu.mjs.map +1 -0
  157. package/dist/elements/SelectOption/SelectOption.d.ts +20 -0
  158. package/dist/elements/SelectOption/SelectOption.d.ts.map +1 -0
  159. package/dist/elements/SelectOption/SelectOption.mjs +84 -0
  160. package/dist/elements/SelectOption/SelectOption.mjs.map +1 -0
  161. package/dist/elements/ValidationTemplate/ValidationTemplate.d.ts +12 -0
  162. package/dist/elements/ValidationTemplate/ValidationTemplate.d.ts.map +1 -0
  163. package/dist/elements/ValidationTemplate/ValidationTemplate.mjs +22 -0
  164. package/dist/elements/ValidationTemplate/ValidationTemplate.mjs.map +1 -0
  165. package/dist/elements/index.d.ts +7 -0
  166. package/dist/elements/index.d.ts.map +1 -0
  167. package/dist/elements/index.mjs +13 -0
  168. package/dist/elements/index.mjs.map +1 -0
  169. package/dist/hooks/index.d.ts +6 -0
  170. package/dist/hooks/index.d.ts.map +1 -0
  171. package/dist/hooks/index.mjs +13 -0
  172. package/dist/hooks/index.mjs.map +1 -0
  173. package/dist/hooks/useChipCell.hook.d.ts +13 -0
  174. package/dist/hooks/useChipCell.hook.d.ts.map +1 -0
  175. package/dist/hooks/useChipCell.hook.mjs +58 -0
  176. package/dist/hooks/useChipCell.hook.mjs.map +1 -0
  177. package/dist/hooks/useDebounce.hook.d.ts +2 -0
  178. package/dist/hooks/useDebounce.hook.d.ts.map +1 -0
  179. package/dist/hooks/useDebounce.hook.mjs +19 -0
  180. package/dist/hooks/useDebounce.hook.mjs.map +1 -0
  181. package/dist/hooks/useDetectOutsideClick.hook.d.ts +2 -0
  182. package/dist/hooks/useDetectOutsideClick.hook.d.ts.map +1 -0
  183. package/dist/hooks/useDetectOutsideClick.hook.mjs +15 -0
  184. package/dist/hooks/useDetectOutsideClick.hook.mjs.map +1 -0
  185. package/dist/hooks/useFormTable.hook.d.ts +16 -0
  186. package/dist/hooks/useFormTable.hook.d.ts.map +1 -0
  187. package/dist/hooks/useFormTable.hook.mjs +128 -0
  188. package/dist/hooks/useFormTable.hook.mjs.map +1 -0
  189. package/dist/hooks/useHiddenChipsBlock.hook.d.ts +4 -0
  190. package/dist/hooks/useHiddenChipsBlock.hook.d.ts.map +1 -0
  191. package/dist/hooks/useHiddenChipsBlock.hook.mjs +51 -0
  192. package/dist/hooks/useHiddenChipsBlock.hook.mjs.map +1 -0
  193. package/dist/images/add.svg.mjs +6 -0
  194. package/dist/images/add.svg.mjs.map +1 -0
  195. package/dist/images/alerts-icon.svg +3 -0
  196. package/dist/images/arrow.svg.mjs +6 -0
  197. package/dist/images/arrow.svg.mjs.map +1 -0
  198. package/dist/images/back-arrow.svg.mjs +6 -0
  199. package/dist/images/back-arrow.svg.mjs.map +1 -0
  200. package/dist/images/checkmark.svg.mjs +6 -0
  201. package/dist/images/checkmark.svg.mjs.map +1 -0
  202. package/dist/images/checkmark2.svg.mjs +6 -0
  203. package/dist/images/checkmark2.svg.mjs.map +1 -0
  204. package/dist/images/close.svg.mjs +6 -0
  205. package/dist/images/close.svg.mjs.map +1 -0
  206. package/dist/images/delete.svg.mjs +6 -0
  207. package/dist/images/delete.svg.mjs.map +1 -0
  208. package/dist/images/documents-icon.svg +3 -0
  209. package/dist/images/dropdown.svg.mjs +6 -0
  210. package/dist/images/dropdown.svg.mjs.map +1 -0
  211. package/dist/images/edit.svg.mjs +6 -0
  212. package/dist/images/edit.svg.mjs.map +1 -0
  213. package/dist/images/exclamation-mark.svg.mjs +6 -0
  214. package/dist/images/exclamation-mark.svg.mjs.map +1 -0
  215. package/dist/images/llm-prompt-icon.svg +3 -0
  216. package/dist/images/mlrun-api-gateways.svg +8 -0
  217. package/dist/images/mlrun-artifacts.svg +11 -0
  218. package/dist/images/mlrun-datasets.svg +5 -0
  219. package/dist/images/mlrun-feature-store.svg +10 -0
  220. package/dist/images/mlrun-jobs-and-workflows.svg +5 -0
  221. package/dist/images/mlrun-ml-functions.svg +8 -0
  222. package/dist/images/mlrun-models.svg +5 -0
  223. package/dist/images/mlrun-project-home.svg +5 -0
  224. package/dist/images/mlrun-project-monitoring.svg +9 -0
  225. package/dist/images/mlrun-project-settings.svg +5 -0
  226. package/dist/images/mlrun-realtime-functions.svg +8 -0
  227. package/dist/images/model-monitoring.svg +3 -0
  228. package/dist/images/navbar/model-monitoring.svg +3 -0
  229. package/dist/images/plus.svg.mjs +6 -0
  230. package/dist/images/plus.svg.mjs.map +1 -0
  231. package/dist/images/popout.svg.mjs +6 -0
  232. package/dist/images/popout.svg.mjs.map +1 -0
  233. package/dist/images/question-mark.svg.mjs +6 -0
  234. package/dist/images/question-mark.svg.mjs.map +1 -0
  235. package/dist/images/range-arrow-small.svg.mjs +6 -0
  236. package/dist/images/range-arrow-small.svg.mjs.map +1 -0
  237. package/dist/images/search.svg.mjs +6 -0
  238. package/dist/images/search.svg.mjs.map +1 -0
  239. package/dist/images/success_done.svg.mjs +6 -0
  240. package/dist/images/success_done.svg.mjs.map +1 -0
  241. package/dist/images/warning.svg.mjs +6 -0
  242. package/dist/images/warning.svg.mjs.map +1 -0
  243. package/dist/index.css +1 -0
  244. package/dist/index.d.ts +8 -0
  245. package/dist/index.d.ts.map +1 -0
  246. package/dist/index.mjs +15 -0
  247. package/dist/index.mjs.map +1 -0
  248. package/dist/robots.txt +3 -0
  249. package/dist/scss/borders.scss +22 -22
  250. package/dist/scss/colors.scss +0 -11
  251. package/dist/scss/common.scss +48 -33
  252. package/dist/scss/fonts.scss +6 -0
  253. package/dist/scss/mixins.scss +117 -106
  254. package/dist/scss/shadows.scss +12 -12
  255. package/dist/scss/variables.scss +3 -3
  256. package/dist/types.d.ts +25 -0
  257. package/dist/types.d.ts.map +1 -0
  258. package/dist/types.mjs +143 -0
  259. package/dist/types.mjs.map +1 -0
  260. package/dist/utils/common.util.d.ts +10 -0
  261. package/dist/utils/common.util.d.ts.map +1 -0
  262. package/dist/utils/common.util.mjs +60 -0
  263. package/dist/utils/common.util.mjs.map +1 -0
  264. package/dist/utils/form.util.d.ts +11 -0
  265. package/dist/utils/form.util.d.ts.map +1 -0
  266. package/dist/utils/form.util.mjs +26 -0
  267. package/dist/utils/form.util.mjs.map +1 -0
  268. package/dist/utils/generateChipsList.util.d.ts +10 -0
  269. package/dist/utils/generateChipsList.util.d.ts.map +1 -0
  270. package/dist/utils/generateChipsList.util.mjs +19 -0
  271. package/dist/utils/generateChipsList.util.mjs.map +1 -0
  272. package/dist/utils/getFirstScrollableParent.util.d.ts +2 -0
  273. package/dist/utils/getFirstScrollableParent.util.d.ts.map +1 -0
  274. package/dist/utils/getFirstScrollableParent.util.mjs +5 -0
  275. package/dist/utils/getFirstScrollableParent.util.mjs.map +1 -0
  276. package/dist/utils/index.d.ts +7 -0
  277. package/dist/utils/index.d.ts.map +1 -0
  278. package/dist/utils/index.mjs +15 -0
  279. package/dist/utils/index.mjs.map +1 -0
  280. package/dist/utils/math.util.d.ts +2 -0
  281. package/dist/utils/math.util.d.ts.map +1 -0
  282. package/dist/utils/math.util.mjs +18 -0
  283. package/dist/utils/math.util.mjs.map +1 -0
  284. package/dist/utils/validation.util.d.ts +6 -0
  285. package/dist/utils/validation.util.d.ts.map +1 -0
  286. package/dist/utils/validation.util.mjs +306 -0
  287. package/dist/utils/validation.util.mjs.map +1 -0
  288. package/package.json +48 -38
  289. package/dist/components/Backdrop/Backdrop.js +0 -56
  290. package/dist/components/Backdrop/Backdrop.scss +0 -32
  291. package/dist/components/Button/Button.js +0 -73
  292. package/dist/components/Button/Button.scss +0 -171
  293. package/dist/components/ConfirmDialog/ConfirmDialog.js +0 -101
  294. package/dist/components/ConfirmDialog/confirmDialog.scss +0 -23
  295. package/dist/components/FormCheckBox/FormCheckBox.js +0 -82
  296. package/dist/components/FormCheckBox/formCheckBox.scss +0 -91
  297. package/dist/components/FormChipCell/FormChip/FormChip.js +0 -103
  298. package/dist/components/FormChipCell/FormChip/formChip.scss +0 -68
  299. package/dist/components/FormChipCell/FormChipCell.js +0 -339
  300. package/dist/components/FormChipCell/FormChipCellView.js +0 -190
  301. package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.js +0 -107
  302. package/dist/components/FormChipCell/NewChipForm/NewChipForm.js +0 -353
  303. package/dist/components/FormChipCell/NewChipForm/newChipForm.scss +0 -81
  304. package/dist/components/FormChipCell/NewChipInput/NewChipInput.js +0 -71
  305. package/dist/components/FormChipCell/formChipCell.scss +0 -64
  306. package/dist/components/FormChipCell/formChipCell.util.js +0 -52
  307. package/dist/components/FormCombobox/FormCombobox.js +0 -432
  308. package/dist/components/FormCombobox/formCombobox.scss +0 -134
  309. package/dist/components/FormInput/FormInput.js +0 -408
  310. package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.js +0 -91
  311. package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.scss +0 -123
  312. package/dist/components/FormInput/formInput.scss +0 -76
  313. package/dist/components/FormKeyValueTable/FormKeyValueTable.js +0 -221
  314. package/dist/components/FormOnChange/FormOnChange.js +0 -69
  315. package/dist/components/FormRadio/FormRadio.js +0 -85
  316. package/dist/components/FormRadio/FormRadio.scss +0 -41
  317. package/dist/components/FormSelect/FormSelect.js +0 -353
  318. package/dist/components/FormSelect/FormSelect.test.js +0 -138
  319. package/dist/components/FormSelect/formSelect.scss +0 -97
  320. package/dist/components/FormTextarea/FormTextarea.js +0 -184
  321. package/dist/components/FormTextarea/formTextarea.scss +0 -32
  322. package/dist/components/FormToggle/FormToggle.js +0 -82
  323. package/dist/components/FormToggle/formToggle.scss +0 -58
  324. package/dist/components/Modal/Modal.js +0 -116
  325. package/dist/components/Modal/Modal.scss +0 -149
  326. package/dist/components/PopUpDialog/PopUpDialog.js +0 -171
  327. package/dist/components/PopUpDialog/popUpDialog.scss +0 -83
  328. package/dist/components/RoundedIcon/RoundedIcon.js +0 -72
  329. package/dist/components/RoundedIcon/roundedIcon.scss +0 -57
  330. package/dist/components/Tip/Tip.js +0 -116
  331. package/dist/components/Tip/Tip.test.js +0 -64
  332. package/dist/components/Tip/tip.scss +0 -94
  333. package/dist/components/Tooltip/Tooltip.js +0 -180
  334. package/dist/components/Tooltip/Tooltip.test.js +0 -155
  335. package/dist/components/Tooltip/tooltip.scss +0 -29
  336. package/dist/components/TooltipTemplate/ProducerTooltipTemplate.js +0 -53
  337. package/dist/components/TooltipTemplate/TextTooltipTemplate.js +0 -53
  338. package/dist/components/TooltipTemplate/producerTooltipTemplate.scss +0 -23
  339. package/dist/components/TooltipTemplate/textTooltipTemplate.scss +0 -21
  340. package/dist/components/Wizard/Wizard.js +0 -192
  341. package/dist/components/Wizard/Wizard.scss +0 -53
  342. package/dist/components/Wizard/WizardSteps/WizardSteps.js +0 -74
  343. package/dist/components/Wizard/WizardSteps/WizardSteps.scss +0 -108
  344. package/dist/components/index.js +0 -139
  345. package/dist/constants.js +0 -120
  346. package/dist/elements/FormActionButton/FormActionButton.js +0 -64
  347. package/dist/elements/FormRowActions/FormRowActions.js +0 -99
  348. package/dist/elements/OptionsMenu/OptionsMenu.js +0 -75
  349. package/dist/elements/OptionsMenu/optionsMenu.scss +0 -45
  350. package/dist/elements/SelectOption/SelectOption.js +0 -107
  351. package/dist/elements/SelectOption/SelectOption.test.js +0 -98
  352. package/dist/elements/SelectOption/selectOption.scss +0 -98
  353. package/dist/elements/ValidationTemplate/ValidationTemplate.js +0 -56
  354. package/dist/elements/ValidationTemplate/ValidationTemplate.scss +0 -36
  355. package/dist/elements/index.js +0 -41
  356. package/dist/hooks/index.js +0 -40
  357. package/dist/hooks/useChipCell.hook.js +0 -129
  358. package/dist/hooks/useDebounce.hook.js +0 -52
  359. package/dist/hooks/useDetectOutsideClick.hook.js +0 -47
  360. package/dist/hooks/useFormTable.hook.js +0 -224
  361. package/dist/hooks/useHiddenChipsBlock.hook.js +0 -102
  362. package/dist/index.js +0 -18
  363. package/dist/types.js +0 -127
  364. package/dist/utils/common.util.js +0 -130
  365. package/dist/utils/form.util.js +0 -70
  366. package/dist/utils/generateChipsList.util.js +0 -39
  367. package/dist/utils/getFirstScrollableParent.util.js +0 -49
  368. package/dist/utils/math.util.js +0 -44
  369. package/dist/utils/validation.util.js +0 -401
@@ -1,221 +0,0 @@
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
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
- var _classnames = _interopRequireDefault(require("classnames"));
10
- var _reactFinalFormArrays = require("react-final-form-arrays");
11
- var _components = require("../../components");
12
- var _elements = require("../../elements");
13
- var _hooks = require("../../hooks");
14
- var _types = require("../../types");
15
- var _jsxRuntime = require("react/jsx-runtime");
16
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
- /*
18
- Copyright 2022 Iguazio Systems Ltd.
19
- Licensed under the Apache License, Version 2.0 (the "License") with
20
- an addition restriction as set forth herein. You may not use this
21
- file except in compliance with the License. You may obtain a copy of
22
- the License at http://www.apache.org/licenses/LICENSE-2.0.
23
- Unless required by applicable law or agreed to in writing, software
24
- distributed under the License is distributed on an "AS IS" BASIS,
25
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
26
- implied. See the License for the specific language governing
27
- permissions and limitations under the License.
28
- In addition, you may not use the software for any purposes that are
29
- illegal under applicable law, and the grant of the foregoing license
30
- under the Apache 2.0 license is conditioned upon your compliance with
31
- such restriction.
32
- */
33
-
34
- const FormKeyValueTable = _ref => {
35
- let {
36
- actionButtonId = '',
37
- addNewItemLabel = 'Add new item',
38
- className = '',
39
- defaultKey = '',
40
- disabled = false,
41
- exitEditModeTriggerItem = null,
42
- fieldsPath,
43
- formState,
44
- isKeyEditable = true,
45
- isKeyRequired = true,
46
- isValueRequired = true,
47
- keyHeader = 'Key',
48
- keyLabel = 'Key',
49
- keyOptions = null,
50
- keyValidationRules = [],
51
- onExitEditModeCallback = () => {},
52
- valueHeader = 'Value',
53
- valueLabel = 'Value',
54
- valueType = 'text',
55
- valueValidationRules = []
56
- } = _ref;
57
- const tableClassNames = (0, _classnames.default)('form-table form-key-value-table', disabled && 'form-table_disabled', className);
58
- const {
59
- addNewRow,
60
- applyChanges,
61
- bottomScrollRef,
62
- deleteRow,
63
- discardOrDelete,
64
- editingItem,
65
- enterEditMode,
66
- isCurrentRowEditing
67
- } = (0, _hooks.useFormTable)(formState, exitEditModeTriggerItem, onExitEditModeCallback);
68
- const uniquenessValidator = (fields, newValue) => {
69
- return !fields.value.some((_ref2, index) => {
70
- let {
71
- data: {
72
- key
73
- }
74
- } = _ref2;
75
- return newValue.trim() === key.trim() && index !== editingItem.ui.index;
76
- });
77
- };
78
- const getKeyTextTemplate = keyValue => {
79
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Tooltip, {
80
- template: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.TextTooltipTemplate, {
81
- text: keyValue
82
- }),
83
- children: keyValue
84
- });
85
- };
86
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
87
- className: tableClassNames,
88
- "data-testid": fieldsPath,
89
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
90
- className: "form-table__row form-table__header-row no-hover",
91
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
92
- className: "form-table__cell form-table__cell_1",
93
- children: keyHeader
94
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
95
- className: "form-table__cell form-table__cell_1",
96
- children: valueHeader
97
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
98
- className: "form-table__cell form-table__actions-cell"
99
- })]
100
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalFormArrays.FieldArray, {
101
- name: fieldsPath,
102
- children: _ref3 => {
103
- let {
104
- fields
105
- } = _ref3;
106
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
107
- children: [fields.map((rowPath, index) => {
108
- const tableRowClassNames = (0, _classnames.default)('form-table__row', isCurrentRowEditing(rowPath) && 'form-table__row_active');
109
- return editingItem && index === editingItem.ui.index && !disabled ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
110
- className: tableRowClassNames,
111
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
112
- className: "form-table__cell form-table__cell_1",
113
- children: keyOptions ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.FormSelect, {
114
- name: `${rowPath}.data.key`,
115
- density: "normal",
116
- options: keyOptions
117
- }) : isKeyEditable || editingItem.ui.isNew ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.FormInput, {
118
- className: "input_edit",
119
- placeholder: keyLabel,
120
- density: "normal",
121
- name: `${rowPath}.data.key`,
122
- required: isKeyRequired,
123
- validationRules: [...keyValidationRules, {
124
- name: 'uniqueness',
125
- label: 'Name must be unique',
126
- pattern: newValue => uniquenessValidator(fields, newValue)
127
- }]
128
- }) : getKeyTextTemplate(fields.value[index].data.key)
129
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
130
- className: "form-table__cell form-table__cell_1",
131
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.FormInput, {
132
- className: "input_edit",
133
- placeholder: valueLabel,
134
- density: "normal",
135
- name: `${rowPath}.data.value`,
136
- type: valueType,
137
- required: isValueRequired,
138
- validationRules: valueValidationRules
139
- })
140
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_elements.FormRowActions, {
141
- applyChanges: applyChanges,
142
- deleteRow: deleteRow,
143
- discardOrDelete: discardOrDelete,
144
- editingItem: editingItem,
145
- fieldsPath: fieldsPath,
146
- index: index
147
- })]
148
- }, index) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
149
- className: tableRowClassNames,
150
- onClick: event => !disabled && enterEditMode(event, fields, fieldsPath, index),
151
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
152
- className: "form-table__cell form-table__cell_1",
153
- children: getKeyTextTemplate(fields.value[index].data.key)
154
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
155
- className: "form-table__cell form-table__cell_1",
156
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Tooltip, {
157
- template: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.TextTooltipTemplate, {
158
- text: valueType === 'password' ? null : fields.value[index].data.value
159
- }),
160
- children: valueType === 'password' ? '*****' : fields.value[index].data.value
161
- })
162
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_elements.FormRowActions, {
163
- applyChanges: applyChanges,
164
- deleteRow: deleteRow,
165
- discardOrDelete: discardOrDelete,
166
- editingItem: editingItem,
167
- fieldsPath: fieldsPath,
168
- index: index
169
- })]
170
- }, index);
171
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_elements.FormActionButton, {
172
- ref: bottomScrollRef,
173
- disabled: disabled,
174
- hidden: editingItem?.ui?.isNew,
175
- fields: fields,
176
- id: actionButtonId,
177
- label: addNewItemLabel,
178
- onClick: function () {
179
- for (var _len = arguments.length, addRowArgs = new Array(_len), _key = 0; _key < _len; _key++) {
180
- addRowArgs[_key] = arguments[_key];
181
- }
182
- return addNewRow(...addRowArgs, {
183
- data: {
184
- key: defaultKey || '',
185
- value: ''
186
- }
187
- });
188
- },
189
- fieldsPath: fieldsPath
190
- })]
191
- });
192
- }
193
- })]
194
- });
195
- };
196
- FormKeyValueTable.propTypes = {
197
- actionButtonId: _propTypes.default.string,
198
- addNewItemLabel: _propTypes.default.string,
199
- className: _propTypes.default.string,
200
- defaultKey: _propTypes.default.string,
201
- disabled: _propTypes.default.bool,
202
- exitEditModeTriggerItem: _propTypes.default.any,
203
- fieldsPath: _propTypes.default.string.isRequired,
204
- formState: _propTypes.default.shape({}).isRequired,
205
- isKeyEditable: _propTypes.default.bool,
206
- isKeyRequired: _propTypes.default.bool,
207
- isValueRequired: _propTypes.default.bool,
208
- keyHeader: _propTypes.default.string,
209
- keyLabel: _propTypes.default.string,
210
- keyOptions: _propTypes.default.arrayOf(_propTypes.default.shape({
211
- label: _propTypes.default.string.isRequired,
212
- id: _propTypes.default.string.isRequired
213
- })),
214
- keyValidationRules: _types.INPUT_VALIDATION_RULES,
215
- onExitEditModeCallback: _propTypes.default.func,
216
- valueHeader: _propTypes.default.string,
217
- valueLabel: _propTypes.default.string,
218
- valueType: _propTypes.default.string,
219
- valueValidationRules: _types.INPUT_VALIDATION_RULES
220
- };
221
- var _default = exports.default = FormKeyValueTable;
@@ -1,69 +0,0 @@
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 _reactFinalForm = require("react-final-form");
9
- var _propTypes = _interopRequireDefault(require("prop-types"));
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
- /*
15
- Copyright 2019 Iguazio Systems Ltd.
16
-
17
- Licensed under the Apache License, Version 2.0 (the "License") with
18
- an addition restriction as set forth herein. You may not use this
19
- file except in compliance with the License. You may obtain a copy of
20
- the License at http://www.apache.org/licenses/LICENSE-2.0.
21
-
22
- Unless required by applicable law or agreed to in writing, software
23
- distributed under the License is distributed on an "AS IS" BASIS,
24
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
25
- implied. See the License for the specific language governing
26
- permissions and limitations under the License.
27
-
28
- In addition, you may not use the software for any purposes that are
29
- illegal under applicable law, and the grant of the foregoing license
30
- under the Apache 2.0 license is conditioned upon your compliance with
31
- such restriction.
32
- */
33
-
34
- const OnChangeState = _ref => {
35
- let {
36
- inputValue,
37
- handler
38
- } = _ref;
39
- const [previousValue, setPreviousValue] = (0, _react.useState)(inputValue);
40
- (0, _react.useEffect)(() => {
41
- if (inputValue !== previousValue) {
42
- setPreviousValue(inputValue);
43
- handler(inputValue, previousValue);
44
- }
45
- }, [handler, inputValue, previousValue]);
46
- return null;
47
- };
48
- const FormOnChange = _ref2 => {
49
- let {
50
- handler,
51
- name
52
- } = _ref2;
53
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
54
- name: name,
55
- subscription: {
56
- value: true
57
- },
58
- allowNull: true,
59
- render: props => /*#__PURE__*/(0, _jsxRuntime.jsx)(OnChangeState, {
60
- inputValue: props.input.value,
61
- handler: handler
62
- })
63
- });
64
- };
65
- FormOnChange.propTypes = {
66
- handler: _propTypes.default.func.isRequired,
67
- name: _propTypes.default.string.isRequired
68
- };
69
- var _default = exports.default = FormOnChange;
@@ -1,85 +0,0 @@
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
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
- var _reactFinalForm = require("react-final-form");
10
- var _classnames = _interopRequireDefault(require("classnames"));
11
- var _Tooltip = _interopRequireDefault(require("../Tooltip/Tooltip"));
12
- var _TextTooltipTemplate = _interopRequireDefault(require("../TooltipTemplate/TextTooltipTemplate"));
13
- require("./FormRadio.scss");
14
- var _jsxRuntime = require("react/jsx-runtime");
15
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
- /*
17
- Copyright 2022 Iguazio Systems Ltd.
18
- Licensed under the Apache License, Version 2.0 (the "License") with
19
- an addition restriction as set forth herein. You may not use this
20
- file except in compliance with the License. You may obtain a copy of
21
- the License at http://www.apache.org/licenses/LICENSE-2.0.
22
- Unless required by applicable law or agreed to in writing, software
23
- distributed under the License is distributed on an "AS IS" BASIS,
24
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
25
- implied. See the License for the specific language governing
26
- permissions and limitations under the License.
27
- In addition, you may not use the software for any purposes that are
28
- illegal under applicable law, and the grant of the foregoing license
29
- under the Apache 2.0 license is conditioned upon your compliance with
30
- such restriction.
31
- */
32
-
33
- const FormRadio = _ref => {
34
- let {
35
- className = '',
36
- name,
37
- label,
38
- readOnly = false,
39
- tooltip,
40
- ...inputProps
41
- } = _ref;
42
- const formFieldClassNames = (0, _classnames.default)('form-field-radio', readOnly && 'form-field-radio_readonly', className);
43
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
44
- name: name,
45
- value: inputProps.value,
46
- type: "radio",
47
- children: _ref2 => {
48
- let {
49
- input
50
- } = _ref2;
51
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
52
- className: formFieldClassNames,
53
- "data-testid": name ? `${name}-${inputProps.value}-form-radio` : 'form-field-radio',
54
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
55
- className: (0, _classnames.default)(input.checked ? 'checked' : 'unchecked'),
56
- type: "radio",
57
- "data-testid": name ? `${name}-${inputProps.value}-radio` : 'form-radio',
58
- ...input,
59
- ...inputProps,
60
- checked: input.checked,
61
- id: name + inputProps.value
62
- }), tooltip ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
63
- className: "label",
64
- template: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextTooltipTemplate.default, {
65
- text: tooltip
66
- }),
67
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
68
- htmlFor: name + inputProps.value,
69
- children: label
70
- })
71
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
72
- htmlFor: name + inputProps.value,
73
- children: label
74
- })]
75
- });
76
- }
77
- });
78
- };
79
- FormRadio.propTypes = {
80
- className: _propTypes.default.string,
81
- label: _propTypes.default.string.isRequired,
82
- name: _propTypes.default.string.isRequired,
83
- readOnly: _propTypes.default.bool
84
- };
85
- var _default = exports.default = /*#__PURE__*/_react.default.memo(FormRadio);
@@ -1,41 +0,0 @@
1
- @import '../../scss/colors';
2
- @import '../../scss/mixins';
3
-
4
- .form-field-radio {
5
- display: inline-flex;
6
- align-items: center;
7
- justify-content: flex-start;
8
- color: $primary;
9
- margin-right: 15px;
10
-
11
- &_readonly {
12
- @include radioCheckReadonly;
13
- }
14
-
15
- input[type='radio'] {
16
- @include radioCheckField;
17
-
18
- width: 16px;
19
- height: 16px;
20
- border-radius: 50%;
21
-
22
- &::before {
23
- content: '';
24
- position: absolute;
25
- top: 2px;
26
- left: 2px;
27
- width: 10px;
28
- height: 10px;
29
- border-radius: 50%;
30
- transform: scale(0);
31
- transition: transform 0.2s ease-in-out;
32
- box-shadow: inset 1em 1em currentColor;
33
- }
34
-
35
- &:checked {
36
- &::before {
37
- transform: scale(1);
38
- }
39
- }
40
- }
41
- }