iguazio.dashboard-react-controls 2.2.25 → 3.0.1

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 (368) 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/plus.svg.mjs +6 -0
  229. package/dist/images/plus.svg.mjs.map +1 -0
  230. package/dist/images/popout.svg.mjs +6 -0
  231. package/dist/images/popout.svg.mjs.map +1 -0
  232. package/dist/images/question-mark.svg.mjs +6 -0
  233. package/dist/images/question-mark.svg.mjs.map +1 -0
  234. package/dist/images/range-arrow-small.svg.mjs +6 -0
  235. package/dist/images/range-arrow-small.svg.mjs.map +1 -0
  236. package/dist/images/search.svg.mjs +6 -0
  237. package/dist/images/search.svg.mjs.map +1 -0
  238. package/dist/images/success_done.svg.mjs +6 -0
  239. package/dist/images/success_done.svg.mjs.map +1 -0
  240. package/dist/images/warning.svg.mjs +6 -0
  241. package/dist/images/warning.svg.mjs.map +1 -0
  242. package/dist/index.css +1 -0
  243. package/dist/index.d.ts +8 -0
  244. package/dist/index.d.ts.map +1 -0
  245. package/dist/index.mjs +15 -0
  246. package/dist/index.mjs.map +1 -0
  247. package/dist/robots.txt +3 -0
  248. package/dist/scss/borders.scss +22 -22
  249. package/dist/scss/colors.scss +0 -11
  250. package/dist/scss/common.scss +48 -33
  251. package/dist/scss/fonts.scss +6 -0
  252. package/dist/scss/mixins.scss +117 -106
  253. package/dist/scss/shadows.scss +12 -12
  254. package/dist/scss/variables.scss +3 -3
  255. package/dist/types.d.ts +25 -0
  256. package/dist/types.d.ts.map +1 -0
  257. package/dist/types.mjs +143 -0
  258. package/dist/types.mjs.map +1 -0
  259. package/dist/utils/common.util.d.ts +10 -0
  260. package/dist/utils/common.util.d.ts.map +1 -0
  261. package/dist/utils/common.util.mjs +60 -0
  262. package/dist/utils/common.util.mjs.map +1 -0
  263. package/dist/utils/form.util.d.ts +11 -0
  264. package/dist/utils/form.util.d.ts.map +1 -0
  265. package/dist/utils/form.util.mjs +26 -0
  266. package/dist/utils/form.util.mjs.map +1 -0
  267. package/dist/utils/generateChipsList.util.d.ts +10 -0
  268. package/dist/utils/generateChipsList.util.d.ts.map +1 -0
  269. package/dist/utils/generateChipsList.util.mjs +19 -0
  270. package/dist/utils/generateChipsList.util.mjs.map +1 -0
  271. package/dist/utils/getFirstScrollableParent.util.d.ts +2 -0
  272. package/dist/utils/getFirstScrollableParent.util.d.ts.map +1 -0
  273. package/dist/utils/getFirstScrollableParent.util.mjs +5 -0
  274. package/dist/utils/getFirstScrollableParent.util.mjs.map +1 -0
  275. package/dist/utils/index.d.ts +7 -0
  276. package/dist/utils/index.d.ts.map +1 -0
  277. package/dist/utils/index.mjs +15 -0
  278. package/dist/utils/index.mjs.map +1 -0
  279. package/dist/utils/math.util.d.ts +2 -0
  280. package/dist/utils/math.util.d.ts.map +1 -0
  281. package/dist/utils/math.util.mjs +18 -0
  282. package/dist/utils/math.util.mjs.map +1 -0
  283. package/dist/utils/validation.util.d.ts +6 -0
  284. package/dist/utils/validation.util.d.ts.map +1 -0
  285. package/dist/utils/validation.util.mjs +306 -0
  286. package/dist/utils/validation.util.mjs.map +1 -0
  287. package/package.json +48 -38
  288. package/dist/components/Backdrop/Backdrop.js +0 -56
  289. package/dist/components/Backdrop/Backdrop.scss +0 -32
  290. package/dist/components/Button/Button.js +0 -73
  291. package/dist/components/Button/Button.scss +0 -171
  292. package/dist/components/ConfirmDialog/ConfirmDialog.js +0 -101
  293. package/dist/components/ConfirmDialog/confirmDialog.scss +0 -23
  294. package/dist/components/FormCheckBox/FormCheckBox.js +0 -82
  295. package/dist/components/FormCheckBox/formCheckBox.scss +0 -91
  296. package/dist/components/FormChipCell/FormChip/FormChip.js +0 -103
  297. package/dist/components/FormChipCell/FormChip/formChip.scss +0 -68
  298. package/dist/components/FormChipCell/FormChipCell.js +0 -339
  299. package/dist/components/FormChipCell/FormChipCellView.js +0 -190
  300. package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.js +0 -107
  301. package/dist/components/FormChipCell/NewChipForm/NewChipForm.js +0 -353
  302. package/dist/components/FormChipCell/NewChipForm/newChipForm.scss +0 -81
  303. package/dist/components/FormChipCell/NewChipInput/NewChipInput.js +0 -71
  304. package/dist/components/FormChipCell/formChipCell.scss +0 -64
  305. package/dist/components/FormChipCell/formChipCell.util.js +0 -52
  306. package/dist/components/FormCombobox/FormCombobox.js +0 -432
  307. package/dist/components/FormCombobox/formCombobox.scss +0 -134
  308. package/dist/components/FormInput/FormInput.js +0 -408
  309. package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.js +0 -91
  310. package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.scss +0 -123
  311. package/dist/components/FormInput/formInput.scss +0 -76
  312. package/dist/components/FormKeyValueTable/FormKeyValueTable.js +0 -221
  313. package/dist/components/FormOnChange/FormOnChange.js +0 -69
  314. package/dist/components/FormRadio/FormRadio.js +0 -85
  315. package/dist/components/FormRadio/FormRadio.scss +0 -41
  316. package/dist/components/FormSelect/FormSelect.js +0 -353
  317. package/dist/components/FormSelect/FormSelect.test.js +0 -138
  318. package/dist/components/FormSelect/formSelect.scss +0 -97
  319. package/dist/components/FormTextarea/FormTextarea.js +0 -184
  320. package/dist/components/FormTextarea/formTextarea.scss +0 -32
  321. package/dist/components/FormToggle/FormToggle.js +0 -82
  322. package/dist/components/FormToggle/formToggle.scss +0 -58
  323. package/dist/components/Modal/Modal.js +0 -116
  324. package/dist/components/Modal/Modal.scss +0 -149
  325. package/dist/components/PopUpDialog/PopUpDialog.js +0 -171
  326. package/dist/components/PopUpDialog/popUpDialog.scss +0 -83
  327. package/dist/components/RoundedIcon/RoundedIcon.js +0 -72
  328. package/dist/components/RoundedIcon/roundedIcon.scss +0 -57
  329. package/dist/components/Tip/Tip.js +0 -116
  330. package/dist/components/Tip/Tip.test.js +0 -64
  331. package/dist/components/Tip/tip.scss +0 -94
  332. package/dist/components/Tooltip/Tooltip.js +0 -180
  333. package/dist/components/Tooltip/Tooltip.test.js +0 -155
  334. package/dist/components/Tooltip/tooltip.scss +0 -29
  335. package/dist/components/TooltipTemplate/ProducerTooltipTemplate.js +0 -53
  336. package/dist/components/TooltipTemplate/TextTooltipTemplate.js +0 -53
  337. package/dist/components/TooltipTemplate/producerTooltipTemplate.scss +0 -23
  338. package/dist/components/TooltipTemplate/textTooltipTemplate.scss +0 -21
  339. package/dist/components/Wizard/Wizard.js +0 -192
  340. package/dist/components/Wizard/Wizard.scss +0 -53
  341. package/dist/components/Wizard/WizardSteps/WizardSteps.js +0 -74
  342. package/dist/components/Wizard/WizardSteps/WizardSteps.scss +0 -108
  343. package/dist/components/index.js +0 -139
  344. package/dist/constants.js +0 -120
  345. package/dist/elements/FormActionButton/FormActionButton.js +0 -64
  346. package/dist/elements/FormRowActions/FormRowActions.js +0 -99
  347. package/dist/elements/OptionsMenu/OptionsMenu.js +0 -75
  348. package/dist/elements/OptionsMenu/optionsMenu.scss +0 -45
  349. package/dist/elements/SelectOption/SelectOption.js +0 -107
  350. package/dist/elements/SelectOption/SelectOption.test.js +0 -98
  351. package/dist/elements/SelectOption/selectOption.scss +0 -98
  352. package/dist/elements/ValidationTemplate/ValidationTemplate.js +0 -56
  353. package/dist/elements/ValidationTemplate/ValidationTemplate.scss +0 -36
  354. package/dist/elements/index.js +0 -41
  355. package/dist/hooks/index.js +0 -40
  356. package/dist/hooks/useChipCell.hook.js +0 -129
  357. package/dist/hooks/useDebounce.hook.js +0 -52
  358. package/dist/hooks/useDetectOutsideClick.hook.js +0 -47
  359. package/dist/hooks/useFormTable.hook.js +0 -224
  360. package/dist/hooks/useHiddenChipsBlock.hook.js +0 -102
  361. package/dist/index.js +0 -18
  362. package/dist/types.js +0 -127
  363. package/dist/utils/common.util.js +0 -130
  364. package/dist/utils/form.util.js +0 -70
  365. package/dist/utils/generateChipsList.util.js +0 -39
  366. package/dist/utils/getFirstScrollableParent.util.js +0 -49
  367. package/dist/utils/math.util.js +0 -44
  368. package/dist/utils/validation.util.js +0 -401
@@ -1,64 +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 _plus = require("../../images/plus.svg");
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- /*
13
- Copyright 2019 Iguazio Systems Ltd.
14
-
15
- Licensed under the Apache License, Version 2.0 (the "License") with
16
- an addition restriction as set forth herein. You may not use this
17
- file except in compliance with the License. You may obtain a copy of
18
- the License at http://www.apache.org/licenses/LICENSE-2.0.
19
-
20
- Unless required by applicable law or agreed to in writing, software
21
- distributed under the License is distributed on an "AS IS" BASIS,
22
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
23
- implied. See the License for the specific language governing
24
- permissions and limitations under the License.
25
-
26
- In addition, you may not use the software for any purposes that are
27
- illegal under applicable law, and the grant of the foregoing license
28
- under the Apache 2.0 license is conditioned upon your compliance with
29
- such restriction.
30
- */
31
-
32
- const FormActionButton = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
33
- let {
34
- disabled = false,
35
- fields,
36
- fieldsPath,
37
- hidden,
38
- id = '',
39
- label = 'Add new item',
40
- onClick
41
- } = _ref;
42
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
43
- children: [!hidden && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
44
- className: "form-table__row form-table__action-row no-hover",
45
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
46
- "data-testid": id ? id : `${fieldsPath}-add-btn`,
47
- onClick: event => onClick(event, fields, fieldsPath),
48
- disabled: disabled,
49
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_plus.ReactComponent, {}), label]
50
- })
51
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
52
- ref: ref
53
- })]
54
- });
55
- });
56
- FormActionButton.propTypes = {
57
- disabled: _propTypes.default.bool,
58
- fields: _propTypes.default.shape({}).isRequired,
59
- fieldsPath: _propTypes.default.string.isRequired,
60
- id: _propTypes.default.string,
61
- label: _propTypes.default.string,
62
- onClick: _propTypes.default.func.isRequired
63
- };
64
- var _default = exports.default = FormActionButton;
@@ -1,99 +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 _components = require("../../components");
10
- var _types = require("../../types");
11
- var _close = require("../../images/close.svg");
12
- var _edit = require("../../images/edit.svg");
13
- var _delete = require("../../images/delete.svg");
14
- var _checkmark = require("../../images/checkmark2.svg");
15
- var _jsxRuntime = require("react/jsx-runtime");
16
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
- /*
18
- Copyright 2019 Iguazio Systems Ltd.
19
-
20
- Licensed under the Apache License, Version 2.0 (the "License") with
21
- an addition restriction as set forth herein. You may not use this
22
- file except in compliance with the License. You may obtain a copy of
23
- the License at http://www.apache.org/licenses/LICENSE-2.0.
24
-
25
- Unless required by applicable law or agreed to in writing, software
26
- distributed under the License is distributed on an "AS IS" BASIS,
27
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
28
- implied. See the License for the specific language governing
29
- permissions and limitations under the License.
30
-
31
- In addition, you may not use the software for any purposes that are
32
- illegal under applicable law, and the grant of the foregoing license
33
- under the Apache 2.0 license is conditioned upon your compliance with
34
- such restriction.
35
- */
36
-
37
- const FormRowActions = _ref => {
38
- let {
39
- applyChanges,
40
- deleteButtonIsHidden = false,
41
- deleteRow,
42
- disabled = false,
43
- discardOrDelete,
44
- editingItem = null,
45
- fieldsPath,
46
- hidden = false,
47
- index
48
- } = _ref;
49
- return hidden ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
50
- className: "form-table__cell form-table__actions-cell"
51
- }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
52
- className: "form-table__cell form-table__actions-cell",
53
- children: [editingItem?.ui?.index === index && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
54
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.RoundedIcon, {
55
- id: "apply-btn",
56
- onClick: event => applyChanges(event, index),
57
- tooltipText: "Apply",
58
- disabled: disabled,
59
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkmark.ReactComponent, {})
60
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.RoundedIcon, {
61
- id: "delete-discard-btn",
62
- onClick: event => discardOrDelete(event, fieldsPath, index),
63
- tooltipText: editingItem.ui?.isNew ? 'Delete' : 'Discard changes',
64
- disabled: disabled,
65
- children: editingItem.ui?.isNew ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_delete.ReactComponent, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_close.ReactComponent, {})
66
- })]
67
- }), (!editingItem || editingItem?.ui?.index !== index) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
68
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.RoundedIcon, {
69
- id: "edit-btn",
70
- onClick: event => {
71
- event.preventDefault();
72
- },
73
- tooltipText: "Edit",
74
- disabled: disabled,
75
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_edit.ReactComponent, {})
76
- }), !deleteButtonIsHidden && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.RoundedIcon, {
77
- id: "delete-btn",
78
- onClick: event => {
79
- deleteRow(event, fieldsPath, index);
80
- },
81
- tooltipText: "Delete",
82
- disabled: disabled,
83
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_delete.ReactComponent, {})
84
- })]
85
- })]
86
- });
87
- };
88
- FormRowActions.propTypes = {
89
- applyChanges: _propTypes.default.func.isRequired,
90
- deleteButtonIsHidden: _propTypes.default.bool,
91
- deleteRow: _propTypes.default.func.isRequired,
92
- disabled: _propTypes.default.bool,
93
- discardOrDelete: _propTypes.default.func.isRequired,
94
- editingItem: _types.FORM_TABLE_EDITING_ITEM,
95
- fieldsPath: _propTypes.default.string.isRequired,
96
- hidden: _propTypes.default.bool,
97
- index: _propTypes.default.number.isRequired
98
- };
99
- var _default = exports.default = FormRowActions;
@@ -1,75 +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 _reactTransitionGroup = require("react-transition-group");
10
- var _components = require("../../components");
11
- require("./optionsMenu.scss");
12
- var _jsxRuntime = require("react/jsx-runtime");
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
- /*
15
- Copyright 2022 Iguazio Systems Ltd.
16
- Licensed under the Apache License, Version 2.0 (the "License") with
17
- an addition restriction as set forth herein. You may not use this
18
- file except in compliance with the License. You may obtain a copy of
19
- the License at http://www.apache.org/licenses/LICENSE-2.0.
20
- Unless required by applicable law or agreed to in writing, software
21
- distributed under the License is distributed on an "AS IS" BASIS,
22
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
23
- implied. See the License for the specific language governing
24
- permissions and limitations under the License.
25
- In addition, you may not use the software for any purposes that are
26
- illegal under applicable law, and the grant of the foregoing license
27
- under the Apache 2.0 license is conditioned upon your compliance with
28
- such restriction.
29
- */
30
-
31
- const OptionsMenu = /*#__PURE__*/_react.default.forwardRef((_ref, _ref2) => {
32
- let {
33
- children = [],
34
- show = false,
35
- timeout = 300
36
- } = _ref;
37
- let {
38
- refInputContainer,
39
- validationRulesRef
40
- } = _ref2;
41
- const {
42
- width: dropdownWidth
43
- } = refInputContainer?.current ? refInputContainer.current.getBoundingClientRect() : {};
44
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactTransitionGroup.CSSTransition, {
45
- nodeRef: validationRulesRef,
46
- in: show,
47
- timeout: timeout,
48
- classNames: "options-menu-transition",
49
- unmountOnExit: true,
50
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.PopUpDialog, {
51
- ref: validationRulesRef,
52
- headerIsHidden: true,
53
- className: "options-menu",
54
- customPosition: {
55
- element: refInputContainer,
56
- position: 'bottom-right',
57
- autoVerticalPosition: true,
58
- autoHorizontalPosition: true
59
- },
60
- style: {
61
- minWidth: `${dropdownWidth}px`
62
- },
63
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("ul", {
64
- className: "options-menu__body",
65
- children: children
66
- })
67
- })
68
- });
69
- });
70
- OptionsMenu.propTypes = {
71
- children: _propTypes.default.arrayOf(_propTypes.default.element),
72
- show: _propTypes.default.bool.isRequired,
73
- timeout: _propTypes.default.number
74
- };
75
- var _default = exports.default = OptionsMenu;
@@ -1,45 +0,0 @@
1
- @import '../../scss/colors';
2
- @import '../../scss/shadows';
3
- @import '../../scss/borders';
4
-
5
- .options-menu {
6
- &__body {
7
- width: 100%;
8
- max-height: 250px;
9
- margin: 0;
10
- padding: 0;
11
- overflow-y: auto;
12
- color: $mulledWineTwo;
13
- font-size: 1rem;
14
- list-style-type: none;
15
- background-color: $white;
16
- border: $primaryBorder;
17
- border-radius: 4px;
18
- box-shadow: $previewBoxShadow;
19
- }
20
-
21
- .pop-up-dialog {
22
- width: 100%;
23
- padding: 0;
24
- }
25
-
26
- &-transition {
27
- &-enter {
28
- opacity: 0;
29
- }
30
-
31
- &-enter-active {
32
- opacity: 1;
33
- transition: opacity 300ms ease-in-out;
34
- }
35
-
36
- &-exit {
37
- opacity: 1;
38
- }
39
-
40
- &-exit-active {
41
- opacity: 0;
42
- transition: opacity 300ms ease-in-out;
43
- }
44
- }
45
- }
@@ -1,107 +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 _components = require("../../components");
11
- var _types = require("../../types");
12
- var _checkmark = require("../../images/checkmark.svg");
13
- require("./selectOption.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 SelectOption = _ref => {
34
- let {
35
- item,
36
- name,
37
- onClick = () => {},
38
- multiple = false,
39
- selectedId,
40
- withSelectedIcon = true
41
- } = _ref;
42
- const selectClassName = (0, _classnames.default)('select__item', multiple && 'multiple', item.hidden && 'hidden', item.disabled && 'disabled');
43
- if (multiple) {
44
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
45
- "data-testid": "select-checkbox",
46
- className: selectClassName,
47
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.FormCheckBox, {
48
- name: name,
49
- value: item.id,
50
- label: item.label,
51
- disabled: item.disabled || false,
52
- children: item.status && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
53
- className: `state-${item.status}-job status`
54
- })
55
- })
56
- });
57
- }
58
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
59
- "data-testid": "select-option",
60
- className: selectClassName,
61
- onClick: () => {
62
- !item.disabled && onClick(item.id);
63
- },
64
- "data-custom-id": item.id,
65
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
66
- className: "label-row",
67
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
68
- className: "data-ellipsis select__item-label",
69
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
70
- className: "select__item-main-label",
71
- children: [item.icon && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
72
- "data-testid": "select-icon",
73
- className: "select__item-icon",
74
- children: item.icon
75
- }), item.status && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
76
- className: `state-${item.status}-job status`
77
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Tooltip, {
78
- renderChildAsHtml: item.labelHtml?.length > 0,
79
- template: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.TextTooltipTemplate, {
80
- text: item.label
81
- }),
82
- children: item.labelHtml ? item.labelHtml : item.label
83
- })]
84
- }), item.subLabel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Tooltip, {
85
- className: "select__item-sub-label",
86
- template: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.TextTooltipTemplate, {
87
- text: item.subLabel
88
- }),
89
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
90
- children: item.subLabel
91
- })
92
- })]
93
- }), withSelectedIcon && item.id === selectedId && /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkmark.ReactComponent, {
94
- className: "checkmark"
95
- })]
96
- })
97
- });
98
- };
99
- SelectOption.propTypes = {
100
- name: _propTypes.default.string.isRequired,
101
- item: _types.SELECT_OPTION.isRequired,
102
- onClick: _propTypes.default.func,
103
- multiple: _propTypes.default.bool,
104
- selectedId: _propTypes.default.string,
105
- withSelectedIcon: _propTypes.default.bool
106
- };
107
- var _default = exports.default = SelectOption;
@@ -1,98 +0,0 @@
1
- "use strict";
2
-
3
- var _react = _interopRequireDefault(require("react"));
4
- var _react2 = require("@testing-library/react");
5
- var _SelectOption = _interopRequireDefault(require("./SelectOption"));
6
- var _jsxRuntime = require("react/jsx-runtime");
7
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8
- /*
9
- Copyright 2022 Iguazio Systems Ltd.
10
- Licensed under the Apache License, Version 2.0 (the "License") with
11
- an addition restriction as set forth herein. You may not use this
12
- file except in compliance with the License. You may obtain a copy of
13
- the License at http://www.apache.org/licenses/LICENSE-2.0.
14
- Unless required by applicable law or agreed to in writing, software
15
- distributed under the License is distributed on an "AS IS" BASIS,
16
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
17
- implied. See the License for the specific language governing
18
- permissions and limitations under the License.
19
- In addition, you may not use the software for any purposes that are
20
- illegal under applicable law, and the grant of the foregoing license
21
- under the Apache 2.0 license is conditioned upon your compliance with
22
- such restriction.
23
- */
24
-
25
- const renderComponent = props => (0, _react2.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectOption.default, {
26
- ...props
27
- }));
28
- jest.mock('../../images/checkbox-unchecked.svg', () => ({
29
- ReactComponent: 'unchecked-icon'
30
- }));
31
- jest.mock('../../images/checkbox-checked.svg', () => ({
32
- ReactComponent: 'unchecked-icon'
33
- }));
34
- describe('SelectOption component', () => {
35
- let wrapper;
36
- beforeEach(() => {
37
- const props = {
38
- item: {
39
- label: 'Test1',
40
- id: 'test1',
41
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
42
- children: "icon"
43
- }),
44
- subLabel: 'Test1'
45
- },
46
- selectType: ''
47
- };
48
- wrapper = renderComponent(props);
49
- });
50
- afterEach(_react2.cleanup);
51
- it('renders without crashing', () => {
52
- expect(wrapper.queryByTestId('select-option')).not.toBeNull();
53
- });
54
- it('should display checkbox inside option if props selectType is "checkbox"', () => {
55
- wrapper.rerender(/*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectOption.default, {
56
- item: {
57
- label: 'Test1',
58
- id: 'test1'
59
- },
60
- selectType: "checkbox",
61
- selectedId: "test1"
62
- }));
63
- expect(wrapper.queryByTestId('select-checkbox')).not.toBeNull();
64
- });
65
- it('should display select icon if it exists in the props "item"', () => {
66
- expect(wrapper.getByTestId('select-icon')).not.toBeNull();
67
- });
68
- it('should won\'t call onClick callback if props disable set to "true"', () => {
69
- const mockCLick = jest.fn();
70
- wrapper.rerender(/*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectOption.default, {
71
- item: {
72
- label: 'Test1',
73
- id: 'test1'
74
- },
75
- onCLick: mockCLick,
76
- selectType: "test1",
77
- disabled: true
78
- }));
79
- const selectOption = wrapper.getByTestId('select-option');
80
- _react2.fireEvent.click(selectOption);
81
- expect(mockCLick).toHaveBeenCalledTimes(0);
82
- });
83
- it('should display subLabel if it exists in props item', () => {
84
- expect(wrapper.queryByTestId('tooltip-wrapper')).not.toBeNull();
85
- });
86
- it('should add class "disabled" to SelectOption if props disabled set to "true"', () => {
87
- wrapper.rerender(/*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectOption.default, {
88
- item: {
89
- label: 'Test1',
90
- id: 'test1'
91
- },
92
- selectType: "test1",
93
- disabled: true
94
- }));
95
- const selectOption = wrapper.getByTestId('select-option');
96
- expect(selectOption.className).toMatch('disabled');
97
- });
98
- });
@@ -1,98 +0,0 @@
1
- @import '../../scss/colors';
2
- @import '../../scss/mixins';
3
-
4
- .select {
5
- &__item {
6
- display: flex;
7
- align-items: center;
8
- flex-flow: row wrap;
9
- width: 100%;
10
- min-height: 45px;
11
- padding: 10px 15px;
12
-
13
- &.multiple {
14
- padding: 0 15px;
15
- min-height: 0;
16
-
17
- input[type='checkbox'] ~ label {
18
- padding-top: 16px;
19
- padding-bottom: 16px;
20
- }
21
- }
22
-
23
- &.hidden {
24
- display: none;
25
- }
26
-
27
- .form-field-checkbox {
28
- flex: 1;
29
- height: 100%;
30
- width: 100%;
31
- }
32
-
33
- &:hover {
34
- background-color: $alabaster;
35
- cursor: pointer;
36
- }
37
-
38
- &.disabled {
39
- color: $spunPearl;
40
- background: $white;
41
- cursor: not-allowed;
42
- }
43
-
44
- .status {
45
- margin: 0 10px;
46
- }
47
-
48
- .all {
49
- margin: 0;
50
-
51
- @include statusState(none, false);
52
- }
53
-
54
- .label-row {
55
- display: flex;
56
- flex-flow: row nowrap;
57
- align-items: center;
58
- justify-content: space-between;
59
- width: 100%;
60
- }
61
-
62
- &-label {
63
- display: flex;
64
- flex-flow: row wrap;
65
- align-items: center;
66
- justify-content: flex-start;
67
- flex: 1;
68
- }
69
-
70
- &-main-label {
71
- width: 100%;
72
- display: flex;
73
- flex-flow: row nowrap;
74
- align-items: center;
75
- justify-content: flex-start;
76
- }
77
-
78
- &-sub-label {
79
- margin-top: 5px;
80
- font-size: 13px;
81
- width: 100%;
82
- }
83
-
84
- &-icon {
85
- display: flex;
86
- margin-right: 10px;
87
- }
88
-
89
- .checkmark {
90
- align-self: flex-start;
91
- margin: 0 0 0 10px;
92
-
93
- path {
94
- fill: $chateauGreen;
95
- }
96
- }
97
- }
98
- }
@@ -1,56 +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 _success_done = require("../../images/success_done.svg");
11
- var _close = require("../../images/close.svg");
12
- require("./ValidationTemplate.scss");
13
- var _jsxRuntime = require("react/jsx-runtime");
14
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
- /*
16
- Copyright 2022 Iguazio Systems Ltd.
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
- Unless required by applicable law or agreed to in writing, software
22
- distributed under the License is distributed on an "AS IS" BASIS,
23
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
24
- implied. See the License for the specific language governing
25
- permissions and limitations under the License.
26
- In addition, you may not use the software for any purposes that are
27
- illegal under applicable law, and the grant of the foregoing license
28
- under the Apache 2.0 license is conditioned upon your compliance with
29
- such restriction.
30
- */
31
-
32
- const ValidationTemplate = _ref => {
33
- let {
34
- valid,
35
- validationMessage
36
- } = _ref;
37
- const validationClasses = (0, _classnames.default)('validation-option', valid && 'text-muted');
38
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
39
- className: validationClasses,
40
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
41
- className: "validation-option__icon",
42
- children: valid ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_success_done.ReactComponent, {
43
- className: "validation-option__icon_valid"
44
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_close.ReactComponent, {
45
- className: "validation-option__icon_invalid"
46
- })
47
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
48
- children: validationMessage
49
- })]
50
- });
51
- };
52
- ValidationTemplate.propTypes = {
53
- valid: _propTypes.default.bool.isRequired,
54
- validationMessage: _propTypes.default.string.isRequired
55
- };
56
- var _default = exports.default = ValidationTemplate;
@@ -1,36 +0,0 @@
1
- @import '../../scss/colors';
2
-
3
- .validation-option {
4
- display: flex;
5
- align-items: flex-start;
6
- margin: 0.6rem 0;
7
- padding: 0 1rem;
8
- font-size: 0.875rem;
9
-
10
- &__icon {
11
- display: flex;
12
- align-items: center;
13
- justify-content: center;
14
- width: 20px;
15
- height: 20px;
16
- margin-right: 0.5rem;
17
-
18
- &_valid {
19
- width: 14px;
20
- height: 15px;
21
-
22
- path {
23
- fill: $brightTurquoise;
24
- }
25
- }
26
-
27
- &_invalid {
28
- width: 12px;
29
- height: 12px;
30
-
31
- path {
32
- fill: $amaranth;
33
- }
34
- }
35
- }
36
- }