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.
- package/dist/components/Backdrop/Backdrop.d.ts +14 -0
- package/dist/components/Backdrop/Backdrop.d.ts.map +1 -0
- package/dist/components/Backdrop/Backdrop.mjs +29 -0
- package/dist/components/Backdrop/Backdrop.mjs.map +1 -0
- package/dist/components/Button/Button.d.ts +28 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/Button.mjs +43 -0
- package/dist/components/Button/Button.mjs.map +1 -0
- package/dist/components/Button/Button.stories.d.ts +14 -0
- package/dist/components/Button/Button.stories.d.ts.map +1 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +33 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +1 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.mjs +83 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.mjs.map +1 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.stories.d.ts +8 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.stories.d.ts.map +1 -0
- package/dist/components/FormCheckBox/FormCheckBox.d.ts +21 -0
- package/dist/components/FormCheckBox/FormCheckBox.d.ts.map +1 -0
- package/dist/components/FormCheckBox/FormCheckBox.mjs +54 -0
- package/dist/components/FormCheckBox/FormCheckBox.mjs.map +1 -0
- package/dist/components/FormCheckBox/FormCheckbox.stories.d.ts +7 -0
- package/dist/components/FormCheckBox/FormCheckbox.stories.d.ts.map +1 -0
- package/dist/components/FormChipCell/FormChip/FormChip.d.ts +45 -0
- package/dist/components/FormChipCell/FormChip/FormChip.d.ts.map +1 -0
- package/dist/components/FormChipCell/FormChip/FormChip.mjs +78 -0
- package/dist/components/FormChipCell/FormChip/FormChip.mjs.map +1 -0
- package/dist/components/FormChipCell/FormChipCell.d.ts +44 -0
- package/dist/components/FormChipCell/FormChipCell.d.ts.map +1 -0
- package/dist/components/FormChipCell/FormChipCell.mjs +239 -0
- package/dist/components/FormChipCell/FormChipCell.mjs.map +1 -0
- package/dist/components/FormChipCell/FormChipCellView.d.ts +56 -0
- package/dist/components/FormChipCell/FormChipCellView.d.ts.map +1 -0
- package/dist/components/FormChipCell/FormChipCellView.mjs +169 -0
- package/dist/components/FormChipCell/FormChipCellView.mjs.map +1 -0
- package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.d.ts +22 -0
- package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.d.ts.map +1 -0
- package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.mjs +72 -0
- package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.mjs.map +1 -0
- package/dist/components/FormChipCell/NewChipForm/NewChipForm.d.ts +35 -0
- package/dist/components/FormChipCell/NewChipForm/NewChipForm.d.ts.map +1 -0
- package/dist/components/FormChipCell/NewChipForm/NewChipForm.mjs +270 -0
- package/dist/components/FormChipCell/NewChipForm/NewChipForm.mjs.map +1 -0
- package/dist/components/FormChipCell/NewChipInput/NewChipInput.d.ts +16 -0
- package/dist/components/FormChipCell/NewChipInput/NewChipInput.d.ts.map +1 -0
- package/dist/components/FormChipCell/NewChipInput/NewChipInput.mjs +36 -0
- package/dist/components/FormChipCell/NewChipInput/NewChipInput.mjs.map +1 -0
- package/dist/components/FormChipCell/formChipCell.util.d.ts +6 -0
- package/dist/components/FormChipCell/formChipCell.util.d.ts.map +1 -0
- package/dist/components/FormChipCell/formChipCell.util.mjs +24 -0
- package/dist/components/FormChipCell/formChipCell.util.mjs.map +1 -0
- package/dist/components/FormCombobox/FormCombobox.d.ts +56 -0
- package/dist/components/FormCombobox/FormCombobox.d.ts.map +1 -0
- package/dist/components/FormCombobox/FormCombobox.mjs +278 -0
- package/dist/components/FormCombobox/FormCombobox.mjs.map +1 -0
- package/dist/components/FormCombobox/FormCombobox.stories.d.ts +12 -0
- package/dist/components/FormCombobox/FormCombobox.stories.d.ts.map +1 -0
- package/dist/components/FormInput/FormInput.d.ts +3 -0
- package/dist/components/FormInput/FormInput.d.ts.map +1 -0
- package/dist/components/FormInput/FormInput.mjs +272 -0
- package/dist/components/FormInput/FormInput.mjs.map +1 -0
- package/dist/components/FormInput/FormInput.stories.d.ts +14 -0
- package/dist/components/FormInput/FormInput.stories.d.ts.map +1 -0
- package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.d.ts +20 -0
- package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.d.ts.map +1 -0
- package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.mjs +61 -0
- package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.mjs.map +1 -0
- package/dist/components/FormKeyValueTable/FormKeyValueTable.d.ts +49 -0
- package/dist/components/FormKeyValueTable/FormKeyValueTable.d.ts.map +1 -0
- package/dist/components/FormKeyValueTable/FormKeyValueTable.mjs +202 -0
- package/dist/components/FormKeyValueTable/FormKeyValueTable.mjs.map +1 -0
- package/dist/components/FormOnChange/FormOnChange.d.ts +12 -0
- package/dist/components/FormOnChange/FormOnChange.d.ts.map +1 -0
- package/dist/components/FormOnChange/FormOnChange.mjs +33 -0
- package/dist/components/FormOnChange/FormOnChange.mjs.map +1 -0
- package/dist/components/FormRadio/FormRadio.d.ts +19 -0
- package/dist/components/FormRadio/FormRadio.d.ts.map +1 -0
- package/dist/components/FormRadio/FormRadio.mjs +57 -0
- package/dist/components/FormRadio/FormRadio.mjs.map +1 -0
- package/dist/components/FormRadio/FormRadio.stories.d.ts +7 -0
- package/dist/components/FormRadio/FormRadio.stories.d.ts.map +1 -0
- package/dist/components/FormSelect/FormSelect.d.ts +43 -0
- package/dist/components/FormSelect/FormSelect.d.ts.map +1 -0
- package/dist/components/FormSelect/FormSelect.mjs +257 -0
- package/dist/components/FormSelect/FormSelect.mjs.map +1 -0
- package/dist/components/FormSelect/FormSelect.stories.d.ts +10 -0
- package/dist/components/FormSelect/FormSelect.stories.d.ts.map +1 -0
- package/dist/components/FormTextarea/FormTextarea.d.ts +40 -0
- package/dist/components/FormTextarea/FormTextarea.d.ts.map +1 -0
- package/dist/components/FormTextarea/FormTextarea.mjs +122 -0
- package/dist/components/FormTextarea/FormTextarea.mjs.map +1 -0
- package/dist/components/FormTextarea/FormTextarea.stories.d.ts +9 -0
- package/dist/components/FormTextarea/FormTextarea.stories.d.ts.map +1 -0
- package/dist/components/FormToggle/FormToggle.d.ts +18 -0
- package/dist/components/FormToggle/FormToggle.d.ts.map +1 -0
- package/dist/components/FormToggle/FormToggle.mjs +48 -0
- package/dist/components/FormToggle/FormToggle.mjs.map +1 -0
- package/dist/components/Modal/Modal.d.ts +29 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -0
- package/dist/components/Modal/Modal.mjs +71 -0
- package/dist/components/Modal/Modal.mjs.map +1 -0
- package/dist/components/PopUpDialog/PopUpDialog.d.ts +28 -0
- package/dist/components/PopUpDialog/PopUpDialog.d.ts.map +1 -0
- package/dist/components/PopUpDialog/PopUpDialog.mjs +90 -0
- package/dist/components/PopUpDialog/PopUpDialog.mjs.map +1 -0
- package/dist/components/RoundedIcon/RoundedIcon.d.ts +23 -0
- package/dist/components/RoundedIcon/RoundedIcon.d.ts.map +1 -0
- package/dist/components/RoundedIcon/RoundedIcon.mjs +40 -0
- package/dist/components/RoundedIcon/RoundedIcon.mjs.map +1 -0
- package/dist/components/RoundedIcon/RoundedIcon.stories.d.ts +9 -0
- package/dist/components/RoundedIcon/RoundedIcon.stories.d.ts.map +1 -0
- package/dist/components/Tip/Tip.d.ts +14 -0
- package/dist/components/Tip/Tip.d.ts.map +1 -0
- package/dist/components/Tip/Tip.mjs +67 -0
- package/dist/components/Tip/Tip.mjs.map +1 -0
- package/dist/components/Tip/Tip.stories.d.ts +7 -0
- package/dist/components/Tip/Tip.stories.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +22 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.mjs +136 -0
- package/dist/components/Tooltip/Tooltip.mjs.map +1 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +8 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts.map +1 -0
- package/dist/components/TooltipTemplate/ProducerTooltipTemplate.d.ts +12 -0
- package/dist/components/TooltipTemplate/ProducerTooltipTemplate.d.ts.map +1 -0
- package/dist/components/TooltipTemplate/TextTooltipTemplate.d.ts +12 -0
- package/dist/components/TooltipTemplate/TextTooltipTemplate.d.ts.map +1 -0
- package/dist/components/TooltipTemplate/TextTooltipTemplate.mjs +21 -0
- package/dist/components/TooltipTemplate/TextTooltipTemplate.mjs.map +1 -0
- package/dist/components/Wizard/Wizard.d.ts +33 -0
- package/dist/components/Wizard/Wizard.d.ts.map +1 -0
- package/dist/components/Wizard/Wizard.mjs +129 -0
- package/dist/components/Wizard/Wizard.mjs.map +1 -0
- package/dist/components/Wizard/WizardSteps/WizardSteps.d.ts +16 -0
- package/dist/components/Wizard/WizardSteps/WizardSteps.d.ts.map +1 -0
- package/dist/components/Wizard/WizardSteps/WizardSteps.mjs +41 -0
- package/dist/components/Wizard/WizardSteps/WizardSteps.mjs.map +1 -0
- package/dist/components/index.d.ts +21 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.mjs +41 -0
- package/dist/components/index.mjs.map +1 -0
- package/dist/constants.d.ts +114 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.mjs +44 -0
- package/dist/constants.mjs.map +1 -0
- package/dist/elements/FormActionButton/FormActionButton.d.ts +23 -0
- package/dist/elements/FormActionButton/FormActionButton.d.ts.map +1 -0
- package/dist/elements/FormActionButton/FormActionButton.mjs +43 -0
- package/dist/elements/FormActionButton/FormActionButton.mjs.map +1 -0
- package/dist/elements/FormRowActions/FormRowActions.d.ts +27 -0
- package/dist/elements/FormRowActions/FormRowActions.d.ts.map +1 -0
- package/dist/elements/FormRowActions/FormRowActions.mjs +87 -0
- package/dist/elements/FormRowActions/FormRowActions.mjs.map +1 -0
- package/dist/elements/OptionsMenu/OptionsMenu.d.ts +18 -0
- package/dist/elements/OptionsMenu/OptionsMenu.d.ts.map +1 -0
- package/dist/elements/OptionsMenu/OptionsMenu.mjs +47 -0
- package/dist/elements/OptionsMenu/OptionsMenu.mjs.map +1 -0
- package/dist/elements/SelectOption/SelectOption.d.ts +20 -0
- package/dist/elements/SelectOption/SelectOption.d.ts.map +1 -0
- package/dist/elements/SelectOption/SelectOption.mjs +84 -0
- package/dist/elements/SelectOption/SelectOption.mjs.map +1 -0
- package/dist/elements/ValidationTemplate/ValidationTemplate.d.ts +12 -0
- package/dist/elements/ValidationTemplate/ValidationTemplate.d.ts.map +1 -0
- package/dist/elements/ValidationTemplate/ValidationTemplate.mjs +22 -0
- package/dist/elements/ValidationTemplate/ValidationTemplate.mjs.map +1 -0
- package/dist/elements/index.d.ts +7 -0
- package/dist/elements/index.d.ts.map +1 -0
- package/dist/elements/index.mjs +13 -0
- package/dist/elements/index.mjs.map +1 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.mjs +13 -0
- package/dist/hooks/index.mjs.map +1 -0
- package/dist/hooks/useChipCell.hook.d.ts +13 -0
- package/dist/hooks/useChipCell.hook.d.ts.map +1 -0
- package/dist/hooks/useChipCell.hook.mjs +58 -0
- package/dist/hooks/useChipCell.hook.mjs.map +1 -0
- package/dist/hooks/useDebounce.hook.d.ts +2 -0
- package/dist/hooks/useDebounce.hook.d.ts.map +1 -0
- package/dist/hooks/useDebounce.hook.mjs +19 -0
- package/dist/hooks/useDebounce.hook.mjs.map +1 -0
- package/dist/hooks/useDetectOutsideClick.hook.d.ts +2 -0
- package/dist/hooks/useDetectOutsideClick.hook.d.ts.map +1 -0
- package/dist/hooks/useDetectOutsideClick.hook.mjs +15 -0
- package/dist/hooks/useDetectOutsideClick.hook.mjs.map +1 -0
- package/dist/hooks/useFormTable.hook.d.ts +16 -0
- package/dist/hooks/useFormTable.hook.d.ts.map +1 -0
- package/dist/hooks/useFormTable.hook.mjs +128 -0
- package/dist/hooks/useFormTable.hook.mjs.map +1 -0
- package/dist/hooks/useHiddenChipsBlock.hook.d.ts +4 -0
- package/dist/hooks/useHiddenChipsBlock.hook.d.ts.map +1 -0
- package/dist/hooks/useHiddenChipsBlock.hook.mjs +51 -0
- package/dist/hooks/useHiddenChipsBlock.hook.mjs.map +1 -0
- package/dist/images/add.svg.mjs +6 -0
- package/dist/images/add.svg.mjs.map +1 -0
- package/dist/images/alerts-icon.svg +3 -0
- package/dist/images/arrow.svg.mjs +6 -0
- package/dist/images/arrow.svg.mjs.map +1 -0
- package/dist/images/back-arrow.svg.mjs +6 -0
- package/dist/images/back-arrow.svg.mjs.map +1 -0
- package/dist/images/checkmark.svg.mjs +6 -0
- package/dist/images/checkmark.svg.mjs.map +1 -0
- package/dist/images/checkmark2.svg.mjs +6 -0
- package/dist/images/checkmark2.svg.mjs.map +1 -0
- package/dist/images/close.svg.mjs +6 -0
- package/dist/images/close.svg.mjs.map +1 -0
- package/dist/images/delete.svg.mjs +6 -0
- package/dist/images/delete.svg.mjs.map +1 -0
- package/dist/images/documents-icon.svg +3 -0
- package/dist/images/dropdown.svg.mjs +6 -0
- package/dist/images/dropdown.svg.mjs.map +1 -0
- package/dist/images/edit.svg.mjs +6 -0
- package/dist/images/edit.svg.mjs.map +1 -0
- package/dist/images/exclamation-mark.svg.mjs +6 -0
- package/dist/images/exclamation-mark.svg.mjs.map +1 -0
- package/dist/images/llm-prompt-icon.svg +3 -0
- package/dist/images/mlrun-api-gateways.svg +8 -0
- package/dist/images/mlrun-artifacts.svg +11 -0
- package/dist/images/mlrun-datasets.svg +5 -0
- package/dist/images/mlrun-feature-store.svg +10 -0
- package/dist/images/mlrun-jobs-and-workflows.svg +5 -0
- package/dist/images/mlrun-ml-functions.svg +8 -0
- package/dist/images/mlrun-models.svg +5 -0
- package/dist/images/mlrun-project-home.svg +5 -0
- package/dist/images/mlrun-project-monitoring.svg +9 -0
- package/dist/images/mlrun-project-settings.svg +5 -0
- package/dist/images/mlrun-realtime-functions.svg +8 -0
- package/dist/images/model-monitoring.svg +3 -0
- package/dist/images/plus.svg.mjs +6 -0
- package/dist/images/plus.svg.mjs.map +1 -0
- package/dist/images/popout.svg.mjs +6 -0
- package/dist/images/popout.svg.mjs.map +1 -0
- package/dist/images/question-mark.svg.mjs +6 -0
- package/dist/images/question-mark.svg.mjs.map +1 -0
- package/dist/images/range-arrow-small.svg.mjs +6 -0
- package/dist/images/range-arrow-small.svg.mjs.map +1 -0
- package/dist/images/search.svg.mjs +6 -0
- package/dist/images/search.svg.mjs.map +1 -0
- package/dist/images/success_done.svg.mjs +6 -0
- package/dist/images/success_done.svg.mjs.map +1 -0
- package/dist/images/warning.svg.mjs +6 -0
- package/dist/images/warning.svg.mjs.map +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +15 -0
- package/dist/index.mjs.map +1 -0
- package/dist/robots.txt +3 -0
- package/dist/scss/borders.scss +22 -22
- package/dist/scss/colors.scss +0 -11
- package/dist/scss/common.scss +48 -33
- package/dist/scss/fonts.scss +6 -0
- package/dist/scss/mixins.scss +117 -106
- package/dist/scss/shadows.scss +12 -12
- package/dist/scss/variables.scss +3 -3
- package/dist/types.d.ts +25 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.mjs +143 -0
- package/dist/types.mjs.map +1 -0
- package/dist/utils/common.util.d.ts +10 -0
- package/dist/utils/common.util.d.ts.map +1 -0
- package/dist/utils/common.util.mjs +60 -0
- package/dist/utils/common.util.mjs.map +1 -0
- package/dist/utils/form.util.d.ts +11 -0
- package/dist/utils/form.util.d.ts.map +1 -0
- package/dist/utils/form.util.mjs +26 -0
- package/dist/utils/form.util.mjs.map +1 -0
- package/dist/utils/generateChipsList.util.d.ts +10 -0
- package/dist/utils/generateChipsList.util.d.ts.map +1 -0
- package/dist/utils/generateChipsList.util.mjs +19 -0
- package/dist/utils/generateChipsList.util.mjs.map +1 -0
- package/dist/utils/getFirstScrollableParent.util.d.ts +2 -0
- package/dist/utils/getFirstScrollableParent.util.d.ts.map +1 -0
- package/dist/utils/getFirstScrollableParent.util.mjs +5 -0
- package/dist/utils/getFirstScrollableParent.util.mjs.map +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.mjs +15 -0
- package/dist/utils/index.mjs.map +1 -0
- package/dist/utils/math.util.d.ts +2 -0
- package/dist/utils/math.util.d.ts.map +1 -0
- package/dist/utils/math.util.mjs +18 -0
- package/dist/utils/math.util.mjs.map +1 -0
- package/dist/utils/validation.util.d.ts +6 -0
- package/dist/utils/validation.util.d.ts.map +1 -0
- package/dist/utils/validation.util.mjs +306 -0
- package/dist/utils/validation.util.mjs.map +1 -0
- package/package.json +48 -38
- package/dist/components/Backdrop/Backdrop.js +0 -56
- package/dist/components/Backdrop/Backdrop.scss +0 -32
- package/dist/components/Button/Button.js +0 -73
- package/dist/components/Button/Button.scss +0 -171
- package/dist/components/ConfirmDialog/ConfirmDialog.js +0 -101
- package/dist/components/ConfirmDialog/confirmDialog.scss +0 -23
- package/dist/components/FormCheckBox/FormCheckBox.js +0 -82
- package/dist/components/FormCheckBox/formCheckBox.scss +0 -91
- package/dist/components/FormChipCell/FormChip/FormChip.js +0 -103
- package/dist/components/FormChipCell/FormChip/formChip.scss +0 -68
- package/dist/components/FormChipCell/FormChipCell.js +0 -339
- package/dist/components/FormChipCell/FormChipCellView.js +0 -190
- package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.js +0 -107
- package/dist/components/FormChipCell/NewChipForm/NewChipForm.js +0 -353
- package/dist/components/FormChipCell/NewChipForm/newChipForm.scss +0 -81
- package/dist/components/FormChipCell/NewChipInput/NewChipInput.js +0 -71
- package/dist/components/FormChipCell/formChipCell.scss +0 -64
- package/dist/components/FormChipCell/formChipCell.util.js +0 -52
- package/dist/components/FormCombobox/FormCombobox.js +0 -432
- package/dist/components/FormCombobox/formCombobox.scss +0 -134
- package/dist/components/FormInput/FormInput.js +0 -408
- package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.js +0 -91
- package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.scss +0 -123
- package/dist/components/FormInput/formInput.scss +0 -76
- package/dist/components/FormKeyValueTable/FormKeyValueTable.js +0 -221
- package/dist/components/FormOnChange/FormOnChange.js +0 -69
- package/dist/components/FormRadio/FormRadio.js +0 -85
- package/dist/components/FormRadio/FormRadio.scss +0 -41
- package/dist/components/FormSelect/FormSelect.js +0 -353
- package/dist/components/FormSelect/FormSelect.test.js +0 -138
- package/dist/components/FormSelect/formSelect.scss +0 -97
- package/dist/components/FormTextarea/FormTextarea.js +0 -184
- package/dist/components/FormTextarea/formTextarea.scss +0 -32
- package/dist/components/FormToggle/FormToggle.js +0 -82
- package/dist/components/FormToggle/formToggle.scss +0 -58
- package/dist/components/Modal/Modal.js +0 -116
- package/dist/components/Modal/Modal.scss +0 -149
- package/dist/components/PopUpDialog/PopUpDialog.js +0 -171
- package/dist/components/PopUpDialog/popUpDialog.scss +0 -83
- package/dist/components/RoundedIcon/RoundedIcon.js +0 -72
- package/dist/components/RoundedIcon/roundedIcon.scss +0 -57
- package/dist/components/Tip/Tip.js +0 -116
- package/dist/components/Tip/Tip.test.js +0 -64
- package/dist/components/Tip/tip.scss +0 -94
- package/dist/components/Tooltip/Tooltip.js +0 -180
- package/dist/components/Tooltip/Tooltip.test.js +0 -155
- package/dist/components/Tooltip/tooltip.scss +0 -29
- package/dist/components/TooltipTemplate/ProducerTooltipTemplate.js +0 -53
- package/dist/components/TooltipTemplate/TextTooltipTemplate.js +0 -53
- package/dist/components/TooltipTemplate/producerTooltipTemplate.scss +0 -23
- package/dist/components/TooltipTemplate/textTooltipTemplate.scss +0 -21
- package/dist/components/Wizard/Wizard.js +0 -192
- package/dist/components/Wizard/Wizard.scss +0 -53
- package/dist/components/Wizard/WizardSteps/WizardSteps.js +0 -74
- package/dist/components/Wizard/WizardSteps/WizardSteps.scss +0 -108
- package/dist/components/index.js +0 -139
- package/dist/constants.js +0 -120
- package/dist/elements/FormActionButton/FormActionButton.js +0 -64
- package/dist/elements/FormRowActions/FormRowActions.js +0 -99
- package/dist/elements/OptionsMenu/OptionsMenu.js +0 -75
- package/dist/elements/OptionsMenu/optionsMenu.scss +0 -45
- package/dist/elements/SelectOption/SelectOption.js +0 -107
- package/dist/elements/SelectOption/SelectOption.test.js +0 -98
- package/dist/elements/SelectOption/selectOption.scss +0 -98
- package/dist/elements/ValidationTemplate/ValidationTemplate.js +0 -56
- package/dist/elements/ValidationTemplate/ValidationTemplate.scss +0 -36
- package/dist/elements/index.js +0 -41
- package/dist/hooks/index.js +0 -40
- package/dist/hooks/useChipCell.hook.js +0 -129
- package/dist/hooks/useDebounce.hook.js +0 -52
- package/dist/hooks/useDetectOutsideClick.hook.js +0 -47
- package/dist/hooks/useFormTable.hook.js +0 -224
- package/dist/hooks/useHiddenChipsBlock.hook.js +0 -102
- package/dist/index.js +0 -18
- package/dist/types.js +0 -127
- package/dist/utils/common.util.js +0 -130
- package/dist/utils/form.util.js +0 -70
- package/dist/utils/generateChipsList.util.js +0 -39
- package/dist/utils/getFirstScrollableParent.util.js +0 -49
- package/dist/utils/math.util.js +0 -44
- 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
|
-
}
|