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,184 +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 _classnames = _interopRequireDefault(require("classnames"));
9
- var _propTypes = _interopRequireDefault(require("prop-types"));
10
- var _reactFinalForm = require("react-final-form");
11
- var _TextTooltipTemplate = _interopRequireDefault(require("../TooltipTemplate/TextTooltipTemplate"));
12
- var _Tip = _interopRequireDefault(require("../Tip/Tip"));
13
- var _Tooltip = _interopRequireDefault(require("../Tooltip/Tooltip"));
14
- var _exclamationMark = require("../../images/exclamation-mark.svg");
15
- require("./formTextarea.scss");
16
- var _jsxRuntime = require("react/jsx-runtime");
17
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
18
- 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); }
19
- 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; }
20
- /*
21
- Copyright 2022 Iguazio Systems Ltd.
22
- Licensed under the Apache License, Version 2.0 (the "License") with
23
- an addition restriction as set forth herein. You may not use this
24
- file except in compliance with the License. You may obtain a copy of
25
- the License at http://www.apache.org/licenses/LICENSE-2.0.
26
- Unless required by applicable law or agreed to in writing, software
27
- distributed under the License is distributed on an "AS IS" BASIS,
28
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
29
- implied. See the License for the specific language governing
30
- permissions and limitations under the License.
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 FormTextarea = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
38
- let {
39
- className = '',
40
- disabled = false,
41
- focused = false,
42
- iconClass = '',
43
- invalidText = 'This field is invalid',
44
- label = '',
45
- maxLength = null,
46
- name,
47
- onBlur = () => {},
48
- onChange = () => {},
49
- required = false,
50
- rows = 3,
51
- textAreaIcon,
52
- tip = '',
53
- withoutBorder,
54
- ...textareaProps
55
- } = _ref;
56
- const {
57
- input,
58
- meta
59
- } = (0, _reactFinalForm.useField)(name);
60
- const [isInvalid, setIsInvalid] = (0, _react.useState)(false);
61
- const [textAreaCount, setTextAreaCount] = (0, _react.useState)(input.value.length);
62
- const textAreaRef = (0, _react.useRef)();
63
- const formFieldClassNames = (0, _classnames.default)('form-field-textarea', className);
64
- const labelClassNames = (0, _classnames.default)('form-field__label', disabled && 'form-field__label-disabled');
65
- const textAreaClassNames = (0, _classnames.default)('form-field__wrapper', disabled && 'form-field__wrapper-disabled', isInvalid && 'form-field__wrapper-invalid', withoutBorder && 'without-border');
66
- (0, _react.useLayoutEffect)(() => {
67
- setTextAreaCount(input.value.length);
68
- }, [input.value.length]);
69
- (0, _react.useEffect)(() => {
70
- if (focused) {
71
- textAreaRef.current.focus();
72
- }
73
- }, [focused, textAreaRef]);
74
- (0, _react.useEffect)(() => {
75
- setIsInvalid(meta.invalid && (meta.validating || meta.modified || meta.submitFailed && meta.touched));
76
- }, [meta.invalid, meta.modified, meta.submitFailed, meta.touched, meta.validating]);
77
- const handleInputBlur = event => {
78
- input.onBlur(event);
79
- onBlur && onBlur(event);
80
- };
81
- const handleInputChange = event => {
82
- input.onChange(event);
83
- onChange && onChange(event.target.value);
84
- };
85
- const handleInputFocus = event => {
86
- input.onFocus(event);
87
- };
88
- const validateField = value => {
89
- const valueToValidate = value ?? '';
90
- let validationError = null;
91
- if (valueToValidate.startsWith(' ')) {
92
- validationError = {
93
- name: 'empty',
94
- label: invalidText
95
- };
96
- } else if (required && valueToValidate.trim().length === 0) {
97
- validationError = {
98
- name: 'required',
99
- label: 'This field is required'
100
- };
101
- }
102
- return validationError;
103
- };
104
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
105
- validate: validateField,
106
- name: name,
107
- children: _ref2 => {
108
- let {
109
- input,
110
- meta
111
- } = _ref2;
112
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
113
- ref: ref,
114
- className: formFieldClassNames,
115
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
116
- className: labelClassNames,
117
- children: label && /*#__PURE__*/(0, _jsxRuntime.jsxs)("label", {
118
- "data-testid": "label",
119
- htmlFor: input.name,
120
- children: [label, required && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
121
- className: "form-field__label-mandatory",
122
- children: " *"
123
- })]
124
- })
125
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
126
- className: textAreaClassNames,
127
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
128
- className: "form-field__control",
129
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("textarea", {
130
- "data-testid": "textarea",
131
- id: input.name,
132
- maxLength: maxLength,
133
- ref: textAreaRef,
134
- required: isInvalid || required,
135
- disabled,
136
- rows,
137
- ...textareaProps,
138
- ...input,
139
- onBlur: handleInputBlur,
140
- onChange: handleInputChange,
141
- onFocus: handleInputFocus
142
- })
143
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
144
- className: "form-field__icons",
145
- children: [isInvalid && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, {
146
- className: "form-field__warning",
147
- template: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextTooltipTemplate.default, {
148
- text: meta.error?.label ?? invalidText,
149
- warning: true
150
- }),
151
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_exclamationMark.ReactComponent, {})
152
- }), tip && !required && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tip.default, {
153
- text: tip,
154
- className: "form-field__tip"
155
- }), textAreaIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
156
- "data-testid": "textarea__icon",
157
- className: iconClass,
158
- children: textAreaIcon
159
- })]
160
- })]
161
- }), maxLength && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
162
- className: "form-field__counter",
163
- children: `${maxLength - textAreaCount} ${maxLength - textAreaCount !== 1 ? 'characters' : 'character'} left`
164
- })]
165
- });
166
- }
167
- });
168
- });
169
- FormTextarea.propTypes = {
170
- className: _propTypes.default.string,
171
- disabled: _propTypes.default.bool,
172
- focused: _propTypes.default.bool,
173
- iconClass: _propTypes.default.string,
174
- textAreaIcon: _propTypes.default.element,
175
- invalidText: _propTypes.default.string,
176
- label: _propTypes.default.string,
177
- maxLength: _propTypes.default.number,
178
- name: _propTypes.default.string.isRequired,
179
- onBlur: _propTypes.default.func,
180
- onChange: _propTypes.default.func,
181
- required: _propTypes.default.bool,
182
- tip: _propTypes.default.string
183
- };
184
- var _default = exports.default = /*#__PURE__*/_react.default.memo(FormTextarea);
@@ -1,32 +0,0 @@
1
- @import '../../scss/colors';
2
- @import '../../scss/borders';
3
- @import '../../scss/shadows';
4
- @import '../../scss/mixins';
5
-
6
- .form-field-textarea {
7
- width: 100%;
8
-
9
- textarea {
10
- height: inherit;
11
- width: 100%;
12
- padding: 12px 16px;
13
- white-space: normal;
14
- }
15
-
16
- .form-field {
17
- @include inputSelectField;
18
-
19
- &__wrapper {
20
- .form-field__control {
21
- padding: 0;
22
- }
23
- }
24
-
25
- &__counter {
26
- color: $topaz;
27
- font-size: 12px;
28
- margin-top: 5px;
29
- text-align: right;
30
- }
31
- }
32
- }
@@ -1,82 +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 _classnames = _interopRequireDefault(require("classnames"));
9
- var _propTypes = _interopRequireDefault(require("prop-types"));
10
- var _reactFinalForm = require("react-final-form");
11
- require("./formToggle.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 FormToggle = _ref => {
32
- let {
33
- className = '',
34
- density,
35
- label = '',
36
- name,
37
- onChange = () => {},
38
- ...inputProps
39
- } = _ref;
40
- const toggleWrapperClassNames = (0, _classnames.default)('form-field__wrapper', density && `form-field__wrapper-${density}`);
41
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
42
- name: name,
43
- value: inputProps.value,
44
- type: "checkbox",
45
- children: _ref2 => {
46
- let {
47
- input
48
- } = _ref2;
49
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("label", {
50
- className: "form-field-toggle",
51
- "data-testid": name ? `${name}-form-field-toggle` : 'form-field-toggle',
52
- children: [label && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
53
- className: "form-field__label",
54
- children: label
55
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
56
- "data-testid": name ? `${name}-form-toggle` : 'form-toggle',
57
- id: name,
58
- ...input,
59
- ...inputProps,
60
- onChange: event => {
61
- onChange && onChange(event);
62
- input.onChange(event);
63
- },
64
- type: "checkbox"
65
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
66
- className: toggleWrapperClassNames,
67
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
68
- className: "form-field-toggle__switch"
69
- })
70
- })]
71
- });
72
- }
73
- });
74
- };
75
- FormToggle.propTypes = {
76
- className: _propTypes.default.string,
77
- density: _propTypes.default.string,
78
- label: _propTypes.default.string,
79
- name: _propTypes.default.string.isRequired,
80
- onChange: _propTypes.default.func
81
- };
82
- var _default = exports.default = FormToggle;
@@ -1,58 +0,0 @@
1
- @import '../../scss/colors';
2
- @import '../../scss/mixins';
3
-
4
- .form-field-toggle {
5
- position: relative;
6
-
7
- &__switch {
8
- height: 24px;
9
- width: 48px;
10
- display: flex;
11
- cursor: pointer;
12
- align-items: center;
13
- background-color: $alto;
14
- border-radius: 20px;
15
- transition: all 0.2s ease;
16
-
17
- &:before {
18
- content: '';
19
- width: 20px;
20
- height: 20px;
21
- background-color: $white;
22
- border-radius: 50%;
23
- transform: translateX(2px);
24
- transition: all 0.2s ease;
25
- }
26
- }
27
-
28
- .form-field {
29
- @include inputSelectField;
30
-
31
- &__wrapper {
32
- border: none;
33
- }
34
- }
35
-
36
- input[type='checkbox'] {
37
- display: none;
38
- width: 0;
39
- height: 0;
40
-
41
- &:disabled {
42
- & + * .form-field-toggle__switch {
43
- opacity: 0.5;
44
- pointer-events: none;
45
- cursor: default;
46
- }
47
- }
48
-
49
- &:checked {
50
- & + * .form-field-toggle__switch {
51
- background-color: $malibu;
52
- &:before {
53
- transform: translateX(26px);
54
- }
55
- }
56
- }
57
- }
58
- }
@@ -1,116 +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 _propTypes = _interopRequireDefault(require("prop-types"));
9
- var _reactTransitionGroup = require("react-transition-group");
10
- var _classnames = _interopRequireDefault(require("classnames"));
11
- var _Backdrop = _interopRequireDefault(require("../Backdrop/Backdrop"));
12
- var _RoundedIcon = _interopRequireDefault(require("../RoundedIcon/RoundedIcon"));
13
- var _constants = require("../../constants");
14
- var _types = require("../../types");
15
- var _close = require("../../images/close.svg");
16
- require("./Modal.scss");
17
- var _jsxRuntime = require("react/jsx-runtime");
18
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
19
- 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); }
20
- 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; }
21
- /*
22
- Copyright 2022 Iguazio Systems Ltd.
23
- Licensed under the Apache License, Version 2.0 (the "License") with
24
- an addition restriction as set forth herein. You may not use this
25
- file except in compliance with the License. You may obtain a copy of
26
- the License at http://www.apache.org/licenses/LICENSE-2.0.
27
- Unless required by applicable law or agreed to in writing, software
28
- distributed under the License is distributed on an "AS IS" BASIS,
29
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
30
- implied. See the License for the specific language governing
31
- permissions and limitations under the License.
32
- In addition, you may not use the software for any purposes that are
33
- illegal under applicable law, and the grant of the foregoing license
34
- under the Apache 2.0 license is conditioned upon your compliance with
35
- such restriction.
36
- */
37
-
38
- const Modal = _ref => {
39
- let {
40
- actions = [],
41
- children,
42
- className,
43
- noHeader = false,
44
- onClose,
45
- previewText = '',
46
- size = _constants.MODAL_MD,
47
- show = false,
48
- subTitle = null,
49
- title = ''
50
- } = _ref;
51
- const nodeRef = (0, _react.useRef)(null);
52
- const modalClassNames = (0, _classnames.default)('modal', className, size && `modal-${size}`);
53
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
54
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Backdrop.default, {
55
- onClose: onClose,
56
- show: show
57
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactTransitionGroup.CSSTransition, {
58
- nodeRef: nodeRef,
59
- in: show,
60
- timeout: 300,
61
- classNames: "modal-transition",
62
- unmountOnExit: true,
63
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
64
- className: modalClassNames,
65
- "data-testid": "modal",
66
- ref: nodeRef,
67
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
68
- className: "modal__header-button",
69
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_RoundedIcon.default, {
70
- "data-testid": "pop-up-close-btn",
71
- onClick: onClose,
72
- tooltipText: "Close",
73
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_close.ReactComponent, {})
74
- })
75
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
76
- className: "modal__content",
77
- children: [!noHeader && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
78
- className: "modal__header",
79
- children: [previewText && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
80
- className: "modal__header-preview-text",
81
- children: previewText
82
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("h5", {
83
- className: "modal__header-title",
84
- children: title
85
- }), subTitle && /*#__PURE__*/(0, _jsxRuntime.jsx)("h6", {
86
- className: "modal__header-sub-title",
87
- children: subTitle
88
- })]
89
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
90
- className: "modal__body",
91
- children: children
92
- }), actions && actions.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
93
- className: "modal__footer",
94
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
95
- className: "modal__footer-actions",
96
- children: actions.map((action, idx) => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
97
- children: action
98
- }, idx))
99
- })
100
- })]
101
- })]
102
- })
103
- })]
104
- });
105
- };
106
- Modal.propTypes = {
107
- actions: _propTypes.default.array,
108
- children: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.object, _propTypes.default.node, _propTypes.default.string]).isRequired,
109
- onClose: _propTypes.default.func.isRequired,
110
- previewText: _propTypes.default.string,
111
- show: _propTypes.default.bool.isRequired,
112
- size: _types.MODAL_SIZES,
113
- subTitle: _propTypes.default.string,
114
- title: _propTypes.default.string
115
- };
116
- var _default = exports.default = Modal;
@@ -1,149 +0,0 @@
1
- @import '../../scss/variables';
2
- @import '../../scss/colors';
3
- @import '../../scss/borders';
4
-
5
- .modal {
6
- position: fixed;
7
- top: 50%;
8
- left: 50%;
9
- width: 100%;
10
- height: 660px;
11
- max-width: 96%;
12
- min-width: 300px;
13
- max-height: 96%;
14
- outline: 0;
15
- transform: translate(-50%, -50%);
16
- z-index: 9;
17
-
18
- @media screen and (min-width: 1200px) {
19
- width: 1000px;
20
-
21
- &.modal-sm {
22
- width: 700px;
23
- }
24
-
25
- &.modal-lg {
26
- width: 1400px;
27
- }
28
-
29
- &.modal-max {
30
- width: 95vw;
31
- height: 95vh;
32
- }
33
- }
34
-
35
- &.modal-min {
36
- width: 500px;
37
- height: auto;
38
- }
39
-
40
- &.modal-max {
41
- width: 96vw;
42
- height: 94vw;
43
- }
44
-
45
- &__content {
46
- display: flex;
47
- flex-flow: column nowrap;
48
- position: relative;
49
- min-height: inherit;
50
- height: 100%;
51
- width: 100%;
52
- max-height: 100%;
53
- background-color: $white;
54
- border-radius: $modalBorderRadius;
55
- box-shadow: 0 6px 26px rgba($black, 0.2);
56
- text-align: left;
57
- }
58
-
59
- &__header {
60
- position: relative;
61
- border-bottom: $primaryBorder;
62
- min-height: 92px;
63
- padding: 1rem 3rem;
64
- display: flex;
65
- align-items: center;
66
- justify-content: center;
67
- flex-direction: column;
68
-
69
- &-title {
70
- color: $primary;
71
- font-size: 2em;
72
- text-transform: capitalize;
73
- margin: 0;
74
- }
75
-
76
- &-sub-title {
77
- color: $topaz;
78
- font-size: 1.5em;
79
- font-weight: 500;
80
- margin: 10px 0 0;
81
- }
82
-
83
- &-preview-text {
84
- position: absolute;
85
- top: 1rem;
86
- left: 1rem;
87
- font-size: 1rem;
88
- }
89
-
90
- &-button {
91
- position: absolute;
92
- top: 10px;
93
- right: 10px;
94
- }
95
- }
96
-
97
- &__body {
98
- overflow-y: auto;
99
- overflow-x: hidden;
100
- flex: 1 0;
101
- padding: 1.5rem 2rem 0;
102
- margin-bottom: 1rem;
103
- }
104
-
105
- &__footer {
106
- display: flex;
107
- flex-flow: row nowrap;
108
- flex-shrink: 0;
109
- justify-content: space-between;
110
- padding: 1rem 2rem;
111
- min-height: 50px;
112
-
113
- &-actions {
114
- display: flex;
115
- flex: 1 0 auto;
116
- justify-content: flex-end;
117
- align-items: center;
118
-
119
- & > *:not(:last-child) {
120
- margin-right: 10px;
121
- }
122
- }
123
- }
124
-
125
- &-transition {
126
- &-enter {
127
- opacity: 0;
128
- transform: translate(-50%, calc(100vh));
129
- }
130
-
131
- &-enter-active,
132
- &-enter-done {
133
- opacity: 1;
134
- transform: translate(-50%, -50%);
135
- transition: all 0.3s ease-in-out;
136
- }
137
-
138
- &-exit {
139
- opacity: 1;
140
- transform: translate(-50%, -50%);
141
- }
142
-
143
- &-exit-active {
144
- opacity: 0;
145
- transform: translate(-50%, -70%);
146
- transition: all 0.3s ease-in-out;
147
- }
148
- }
149
- }