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,171 +0,0 @@
|
|
|
1
|
-
@import '../../scss/variables';
|
|
2
|
-
@import '../../scss/colors';
|
|
3
|
-
@import '../../scss/borders';
|
|
4
|
-
|
|
5
|
-
.btn {
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
min-width: 90px;
|
|
10
|
-
height: $fieldNormal;
|
|
11
|
-
padding: 0 16px;
|
|
12
|
-
color: $white;
|
|
13
|
-
font-weight: 500;
|
|
14
|
-
font-size: 0.875rem;
|
|
15
|
-
font-style: normal;
|
|
16
|
-
border: $transparentBorder;
|
|
17
|
-
border-radius: $mainBorderRadius;
|
|
18
|
-
|
|
19
|
-
&-dense {
|
|
20
|
-
height: $fieldDense;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&-normal {
|
|
24
|
-
height: $fieldNormal;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&-medium {
|
|
28
|
-
height: $fieldMedium;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&-chunky {
|
|
32
|
-
height: $fieldChunky;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
svg {
|
|
36
|
-
& > * {
|
|
37
|
-
fill: currentColor;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&:focus {
|
|
42
|
-
border-color: rgba($black, 0.4);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&:active {
|
|
46
|
-
border-color: rgba($black, 0.4);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&:disabled {
|
|
50
|
-
color: $spunPearl;
|
|
51
|
-
background: $white;
|
|
52
|
-
cursor: not-allowed;
|
|
53
|
-
|
|
54
|
-
svg {
|
|
55
|
-
& > * {
|
|
56
|
-
fill: $alto;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
:not(last-child) {
|
|
62
|
-
margin-right: 10px;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
:last-child {
|
|
66
|
-
margin: 0;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&-secondary {
|
|
70
|
-
background: $brightTurquoise;
|
|
71
|
-
|
|
72
|
-
&:hover:not(:disabled) {
|
|
73
|
-
background: $javaLight;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&:active:not(:disabled) {
|
|
77
|
-
background: $mountainMeadow;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&:disabled {
|
|
81
|
-
border: 1px solid $brightTurquoise;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&-tertiary {
|
|
86
|
-
color: $primary;
|
|
87
|
-
background: $white;
|
|
88
|
-
border: $primaryBorder;
|
|
89
|
-
|
|
90
|
-
svg {
|
|
91
|
-
& > * {
|
|
92
|
-
fill: $primary;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&:hover:not(:disabled) {
|
|
97
|
-
background: $alabaster;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&:active:not(:disabled) {
|
|
101
|
-
background: $mercury;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
&:disabled {
|
|
105
|
-
border: $primaryBorder;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&-primary {
|
|
110
|
-
color: $white;
|
|
111
|
-
background: $malibu;
|
|
112
|
-
|
|
113
|
-
&:hover:not(:disabled) {
|
|
114
|
-
background: $cornflowerBlue;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&:active:not(:disabled) {
|
|
118
|
-
background: $indigo;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&:disabled {
|
|
122
|
-
border: 1px solid $malibu;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
&-danger {
|
|
127
|
-
color: $white;
|
|
128
|
-
background: $amaranth;
|
|
129
|
-
|
|
130
|
-
&:hover:not(:disabled) {
|
|
131
|
-
background: $ceriseRed;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
&:active:not(:disabled) {
|
|
135
|
-
background: $maroonFlash;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&:disabled {
|
|
139
|
-
border: 1px solid $amaranth;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
&-label {
|
|
144
|
-
color: $primary;
|
|
145
|
-
background: transparent;
|
|
146
|
-
border: 0;
|
|
147
|
-
|
|
148
|
-
svg {
|
|
149
|
-
& > * {
|
|
150
|
-
fill: $primary;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
&:focus:not(:disabled) {
|
|
155
|
-
border-color: transparent;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
&:hover:not(:disabled) {
|
|
159
|
-
color: $topaz;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
&:active:not(:disabled) {
|
|
163
|
-
color: $black;
|
|
164
|
-
border-color: transparent;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
&:disabled {
|
|
168
|
-
border-color: transparent;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
@@ -1,101 +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 _Button = _interopRequireDefault(require("../Button/Button"));
|
|
11
|
-
var _PopUpDialog = _interopRequireDefault(require("../PopUpDialog/PopUpDialog"));
|
|
12
|
-
var _types = require("../../types");
|
|
13
|
-
require("./confirmDialog.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 ConfirmDialog = _ref => {
|
|
34
|
-
let {
|
|
35
|
-
cancelButton = null,
|
|
36
|
-
children,
|
|
37
|
-
className = '',
|
|
38
|
-
closePopUp,
|
|
39
|
-
confirmButton = null,
|
|
40
|
-
customPosition = {},
|
|
41
|
-
header = '',
|
|
42
|
-
isOpen,
|
|
43
|
-
message = '',
|
|
44
|
-
messageOnly = false,
|
|
45
|
-
onResolve
|
|
46
|
-
} = _ref;
|
|
47
|
-
const messageClassNames = (0, _classnames.default)('confirm-dialog__message', messageOnly && 'confirm-dialog__message-only');
|
|
48
|
-
const handleCancelDialog = event => {
|
|
49
|
-
onResolve && onResolve();
|
|
50
|
-
cancelButton.handler && cancelButton.handler(event);
|
|
51
|
-
};
|
|
52
|
-
const handleCloseDialog = event => {
|
|
53
|
-
onResolve && onResolve();
|
|
54
|
-
closePopUp && closePopUp(event);
|
|
55
|
-
};
|
|
56
|
-
const handleConfirmDialog = event => {
|
|
57
|
-
onResolve && onResolve();
|
|
58
|
-
confirmButton.handler && confirmButton.handler(event);
|
|
59
|
-
};
|
|
60
|
-
return isOpen && /*#__PURE__*/(0, _jsxRuntime.jsx)(_PopUpDialog.default, {
|
|
61
|
-
className: className,
|
|
62
|
-
closePopUp: handleCloseDialog,
|
|
63
|
-
customPosition: customPosition,
|
|
64
|
-
headerText: header,
|
|
65
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
66
|
-
className: "confirm-dialog",
|
|
67
|
-
children: [message && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
68
|
-
className: messageClassNames,
|
|
69
|
-
children: message
|
|
70
|
-
}), children && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
71
|
-
className: "confirm-dialog__body",
|
|
72
|
-
children: children
|
|
73
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
74
|
-
className: "confirm-dialog__btn-container",
|
|
75
|
-
children: [cancelButton && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
76
|
-
className: "pop-up-dialog__btn_cancel",
|
|
77
|
-
label: cancelButton.label,
|
|
78
|
-
onClick: handleCancelDialog,
|
|
79
|
-
variant: cancelButton.variant,
|
|
80
|
-
disabled: cancelButton.disabled
|
|
81
|
-
}), confirmButton && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
82
|
-
label: confirmButton.label,
|
|
83
|
-
onClick: handleConfirmDialog,
|
|
84
|
-
variant: confirmButton.variant,
|
|
85
|
-
disabled: confirmButton.disabled
|
|
86
|
-
})]
|
|
87
|
-
})]
|
|
88
|
-
})
|
|
89
|
-
});
|
|
90
|
-
};
|
|
91
|
-
ConfirmDialog.propTypes = {
|
|
92
|
-
cancelButton: _types.CONFIRM_DIALOG_CANCEL_BUTTON,
|
|
93
|
-
className: _propTypes.default.string,
|
|
94
|
-
closePopUp: _propTypes.default.func,
|
|
95
|
-
confirmButton: _types.CONFIRM_DIALOG_SUBMIT_BUTTON,
|
|
96
|
-
customPosition: _propTypes.default.object,
|
|
97
|
-
header: _propTypes.default.string,
|
|
98
|
-
message: _types.CONFIRM_DIALOG_MESSAGE,
|
|
99
|
-
messageOnly: _propTypes.default.bool
|
|
100
|
-
};
|
|
101
|
-
var _default = exports.default = ConfirmDialog;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
@import '../../scss/colors';
|
|
2
|
-
|
|
3
|
-
.confirm-dialog {
|
|
4
|
-
color: $primary;
|
|
5
|
-
|
|
6
|
-
&__message {
|
|
7
|
-
font-size: 15px;
|
|
8
|
-
|
|
9
|
-
&-only {
|
|
10
|
-
font-size: 22px;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&__btn-container {
|
|
15
|
-
display: flex;
|
|
16
|
-
justify-content: flex-end;
|
|
17
|
-
margin-top: 20px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&__body {
|
|
21
|
-
margin: 20px 0;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -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 = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _reactFinalForm = require("react-final-form");
|
|
10
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
require("./formCheckBox.scss");
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
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); }
|
|
15
|
-
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; }
|
|
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 FormCheckBox = _ref => {
|
|
34
|
-
let {
|
|
35
|
-
children,
|
|
36
|
-
className = '',
|
|
37
|
-
highlightLabel = false,
|
|
38
|
-
label = '',
|
|
39
|
-
name,
|
|
40
|
-
readOnly = false,
|
|
41
|
-
...inputProps
|
|
42
|
-
} = _ref;
|
|
43
|
-
const formFieldClassNames = (0, _classnames.default)('form-field-checkbox', readOnly && 'form-field-checkbox_readonly', className);
|
|
44
|
-
const labelClassNames = (0, _classnames.default)(highlightLabel && 'highlighted');
|
|
45
|
-
const inputRef = (0, _react.useRef)();
|
|
46
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
|
|
47
|
-
name: name,
|
|
48
|
-
value: inputProps.value,
|
|
49
|
-
type: "checkbox",
|
|
50
|
-
children: _ref2 => {
|
|
51
|
-
let {
|
|
52
|
-
input
|
|
53
|
-
} = _ref2;
|
|
54
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
55
|
-
className: formFieldClassNames,
|
|
56
|
-
"data-testid": "form-field-checkbox",
|
|
57
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
58
|
-
ref: inputRef,
|
|
59
|
-
className: (0, _classnames.default)(input.checked ? 'checked' : 'unchecked'),
|
|
60
|
-
type: "checkbox",
|
|
61
|
-
"data-testid": name ? `${name}-form-checkbox` : 'form-checkbox',
|
|
62
|
-
id: inputProps.value ?? name,
|
|
63
|
-
...input,
|
|
64
|
-
...inputProps,
|
|
65
|
-
value: String(input.checked)
|
|
66
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("label", {
|
|
67
|
-
htmlFor: inputProps.value ?? name,
|
|
68
|
-
className: labelClassNames,
|
|
69
|
-
children: [label ? label : '', children]
|
|
70
|
-
})]
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
FormCheckBox.propTypes = {
|
|
76
|
-
className: _propTypes.default.string,
|
|
77
|
-
highlightLabel: _propTypes.default.bool,
|
|
78
|
-
name: _propTypes.default.string.isRequired,
|
|
79
|
-
label: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.element]),
|
|
80
|
-
readOnly: _propTypes.default.bool
|
|
81
|
-
};
|
|
82
|
-
var _default = exports.default = /*#__PURE__*/_react.default.memo(FormCheckBox);
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
@import '../../scss/colors';
|
|
2
|
-
@import '../../scss/mixins';
|
|
3
|
-
|
|
4
|
-
.form-field-checkbox {
|
|
5
|
-
display: inline-flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: flex-start;
|
|
8
|
-
color: $primary;
|
|
9
|
-
|
|
10
|
-
&_readonly {
|
|
11
|
-
@include radioCheckReadonly;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
input[type='checkbox'] {
|
|
15
|
-
@include radioCheckField;
|
|
16
|
-
|
|
17
|
-
flex: 0 0 18px;
|
|
18
|
-
width: 18px;
|
|
19
|
-
height: 18px;
|
|
20
|
-
border-radius: 4px;
|
|
21
|
-
transition: background 0.2s ease-in-out;
|
|
22
|
-
|
|
23
|
-
&::before {
|
|
24
|
-
content: '';
|
|
25
|
-
display: block;
|
|
26
|
-
position: absolute;
|
|
27
|
-
top: 1px;
|
|
28
|
-
left: 5px;
|
|
29
|
-
width: 6px;
|
|
30
|
-
height: 11px;
|
|
31
|
-
border-style: solid;
|
|
32
|
-
border-color: $white;
|
|
33
|
-
border-width: 0 2px 2px 0;
|
|
34
|
-
transform: rotate(45deg);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&:checked {
|
|
38
|
-
background: currentColor;
|
|
39
|
-
|
|
40
|
-
&:hover {
|
|
41
|
-
background: currentColor;
|
|
42
|
-
|
|
43
|
-
&:disabled {
|
|
44
|
-
background: currentColor;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&:disabled {
|
|
50
|
-
&:hover {
|
|
51
|
-
background: $white;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&:not(:disabled):checked {
|
|
56
|
-
~ label {
|
|
57
|
-
&.highlighted {
|
|
58
|
-
color: $white;
|
|
59
|
-
background-color: $malibu;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&:hover {
|
|
64
|
-
~ label {
|
|
65
|
-
&.highlighted {
|
|
66
|
-
background-color: $cornflowerBlue;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
~ label {
|
|
73
|
-
&.highlighted {
|
|
74
|
-
background-color: $mischka;
|
|
75
|
-
font-size: 12px;
|
|
76
|
-
font-weight: bold;
|
|
77
|
-
margin-left: 10px;
|
|
78
|
-
padding: 4px 8px;
|
|
79
|
-
border-radius: 4px;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&:not(:disabled):hover {
|
|
84
|
-
~ label {
|
|
85
|
-
&.highlighted {
|
|
86
|
-
background-color: $iron;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
@@ -1,103 +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 _NewChipForm = _interopRequireDefault(require("../NewChipForm/NewChipForm"));
|
|
10
|
-
var _types = require("../../../types");
|
|
11
|
-
require("./formChip.scss");
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
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); }
|
|
15
|
-
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; }
|
|
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 FormChip = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
34
|
-
let {
|
|
35
|
-
chip,
|
|
36
|
-
chipIndex,
|
|
37
|
-
chipOptions = {
|
|
38
|
-
background: 'purple',
|
|
39
|
-
boldValue: false,
|
|
40
|
-
borderRadius: 'primary',
|
|
41
|
-
borderColor: 'transparent',
|
|
42
|
-
density: 'dense',
|
|
43
|
-
font: 'purple'
|
|
44
|
-
},
|
|
45
|
-
editConfig,
|
|
46
|
-
handleEditChip,
|
|
47
|
-
handleRemoveChip,
|
|
48
|
-
handleToEditMode,
|
|
49
|
-
isEditable = false,
|
|
50
|
-
keyName = '',
|
|
51
|
-
meta,
|
|
52
|
-
setChipsSizes,
|
|
53
|
-
setEditConfig,
|
|
54
|
-
validationRules = {},
|
|
55
|
-
valueName = ''
|
|
56
|
-
} = _ref;
|
|
57
|
-
const chipRef = _react.default.useRef();
|
|
58
|
-
(0, _react.useLayoutEffect)(() => {
|
|
59
|
-
if (chipRef.current && setChipsSizes) {
|
|
60
|
-
setChipsSizes(state => ({
|
|
61
|
-
...state,
|
|
62
|
-
[chipIndex]: chipRef.current.getBoundingClientRect().width
|
|
63
|
-
}));
|
|
64
|
-
}
|
|
65
|
-
}, [chipIndex, setChipsSizes]);
|
|
66
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
67
|
-
onClick: event => handleToEditMode(event, chipIndex, keyName),
|
|
68
|
-
ref: chipRef,
|
|
69
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_NewChipForm.default, {
|
|
70
|
-
chip: chip,
|
|
71
|
-
chipIndex: chipIndex,
|
|
72
|
-
chipOptions: chipOptions,
|
|
73
|
-
className: "input-label-key",
|
|
74
|
-
editConfig: editConfig,
|
|
75
|
-
handleRemoveChip: handleRemoveChip,
|
|
76
|
-
isEditable: isEditable,
|
|
77
|
-
keyName: keyName,
|
|
78
|
-
meta: meta,
|
|
79
|
-
onChange: handleEditChip,
|
|
80
|
-
ref: ref,
|
|
81
|
-
setEditConfig: setEditConfig,
|
|
82
|
-
validationRules: validationRules,
|
|
83
|
-
valueName: valueName
|
|
84
|
-
})
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
FormChip.propTypes = {
|
|
88
|
-
chip: _propTypes.default.object.isRequired,
|
|
89
|
-
chipIndex: _propTypes.default.number.isRequired,
|
|
90
|
-
chipOptions: _types.CHIP_OPTIONS,
|
|
91
|
-
editConfig: _propTypes.default.object.isRequired,
|
|
92
|
-
handleEditChip: _propTypes.default.func.isRequired,
|
|
93
|
-
handleRemoveChip: _propTypes.default.func.isRequired,
|
|
94
|
-
handleToEditMode: _propTypes.default.func.isRequired,
|
|
95
|
-
isEditable: _propTypes.default.bool,
|
|
96
|
-
keyName: _propTypes.default.string,
|
|
97
|
-
meta: _propTypes.default.object.isRequired,
|
|
98
|
-
setChipsSizes: _propTypes.default.func.isRequired,
|
|
99
|
-
setEditConfig: _propTypes.default.func.isRequired,
|
|
100
|
-
validationRules: _propTypes.default.object,
|
|
101
|
-
valueName: _propTypes.default.string
|
|
102
|
-
};
|
|
103
|
-
var _default = exports.default = FormChip;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
@import '../../../scss/variables';
|
|
2
|
-
@import '../../../scss/colors';
|
|
3
|
-
@import '../../../scss/borders';
|
|
4
|
-
@import '../../../scss/mixins';
|
|
5
|
-
|
|
6
|
-
.chip {
|
|
7
|
-
position: relative;
|
|
8
|
-
margin: 2px 8px 2px 0;
|
|
9
|
-
padding: 4px 8px;
|
|
10
|
-
font-size: 14px;
|
|
11
|
-
line-height: 16px;
|
|
12
|
-
visibility: hidden;
|
|
13
|
-
cursor: default;
|
|
14
|
-
|
|
15
|
-
&_visible {
|
|
16
|
-
visibility: visible;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&__content {
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
|
|
23
|
-
&-item {
|
|
24
|
-
flex: 1 1 50%;
|
|
25
|
-
max-width: fit-content;
|
|
26
|
-
align-self: flex-start;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&__delimiter {
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
margin: 0 4px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&__value {
|
|
37
|
-
min-width: 10px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&.editable {
|
|
41
|
-
cursor: pointer;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.chips_button {
|
|
45
|
-
padding: 8px 7px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&-background {
|
|
49
|
-
@include chipBackground(false);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&-border {
|
|
53
|
-
@include chipBorder();
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&-density {
|
|
57
|
-
@include chipDensity(false, false);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&-font {
|
|
61
|
-
@include chipsFont(Chip);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&-value_bold {
|
|
65
|
-
font-weight: 700;
|
|
66
|
-
font-size: 15px;
|
|
67
|
-
}
|
|
68
|
-
}
|