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,180 +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 _reactDom = require("react-dom");
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var _reactTransitionGroup = require("react-transition-group");
|
|
11
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
|
-
var _lodash = require("lodash");
|
|
13
|
-
var _common = require("../../utils/common.util");
|
|
14
|
-
require("./tooltip.scss");
|
|
15
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
-
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); }
|
|
18
|
-
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; }
|
|
19
|
-
/*
|
|
20
|
-
Copyright 2022 Iguazio Systems Ltd.
|
|
21
|
-
Licensed under the Apache License, Version 2.0 (the "License") with
|
|
22
|
-
an addition restriction as set forth herein. You may not use this
|
|
23
|
-
file except in compliance with the License. You may obtain a copy of
|
|
24
|
-
the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
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
|
-
In addition, you may not use the software for any purposes that are
|
|
31
|
-
illegal under applicable law, and the grant of the foregoing license
|
|
32
|
-
under the Apache 2.0 license is conditioned upon your compliance with
|
|
33
|
-
such restriction.
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
const Tooltip = _ref => {
|
|
37
|
-
let {
|
|
38
|
-
children,
|
|
39
|
-
className,
|
|
40
|
-
hidden = false,
|
|
41
|
-
id = '',
|
|
42
|
-
renderChildAsHtml = false,
|
|
43
|
-
template,
|
|
44
|
-
textShow = false
|
|
45
|
-
} = _ref;
|
|
46
|
-
const [show, setShow] = (0, _react.useState)(false);
|
|
47
|
-
const [style, setStyle] = (0, _react.useState)({});
|
|
48
|
-
const tooltipClassNames = (0, _classnames.default)('data-ellipsis', 'tooltip-wrapper', className);
|
|
49
|
-
const duration = 200;
|
|
50
|
-
const parentRef = (0, _react.useRef)();
|
|
51
|
-
const tooltipRef = (0, _react.useRef)();
|
|
52
|
-
const offset = 10;
|
|
53
|
-
const handleScroll = () => {
|
|
54
|
-
setShow(false);
|
|
55
|
-
};
|
|
56
|
-
const handleMouseLeave = (0, _react.useCallback)(event => {
|
|
57
|
-
if (!tooltipRef.current || hidden || tooltipRef.current && !tooltipRef.current.contains(event.relatedTarget) && parentRef.current && !parentRef.current.contains(event.relatedTarget)) {
|
|
58
|
-
setShow(false);
|
|
59
|
-
}
|
|
60
|
-
}, [hidden]);
|
|
61
|
-
const handleMouseEnter = (0, _react.useCallback)(event => {
|
|
62
|
-
if (!show) {
|
|
63
|
-
const [child] = parentRef.current.childNodes;
|
|
64
|
-
let show = !hidden && (textShow ? true : !child ? false : child.nodeType !== Node.TEXT_NODE && child.childNodes?.[0]?.nodeType !== Node.TEXT_NODE || (
|
|
65
|
-
/*
|
|
66
|
-
If the child node is a text node and the text of the child node inside the container is greater than the width of the container, then show tooltip.
|
|
67
|
-
*/
|
|
68
|
-
(child.nodeType === Node.TEXT_NODE || child.childNodes?.[0]?.nodeType === Node.TEXT_NODE) && parentRef.current.scrollWidth > parentRef.current.offsetWidth));
|
|
69
|
-
setShow(show);
|
|
70
|
-
setTimeout(() => {
|
|
71
|
-
if (show) {
|
|
72
|
-
let {
|
|
73
|
-
height,
|
|
74
|
-
top,
|
|
75
|
-
bottom
|
|
76
|
-
} = parentRef?.current?.getBoundingClientRect() ?? {};
|
|
77
|
-
const {
|
|
78
|
-
height: tooltipHeight,
|
|
79
|
-
width: tooltipWidth
|
|
80
|
-
} = tooltipRef.current?.getBoundingClientRect() ?? {
|
|
81
|
-
height: 0,
|
|
82
|
-
width: 0
|
|
83
|
-
};
|
|
84
|
-
const leftPosition = event.x - (event.x + tooltipWidth - window.innerWidth + offset);
|
|
85
|
-
const left = event.x + tooltipWidth + offset > window.innerWidth ? leftPosition > offset ? leftPosition : offset : event.x + offset;
|
|
86
|
-
if (top + height + offset + tooltipHeight >= window.innerHeight) {
|
|
87
|
-
const topPosition = bottom - height - offset - tooltipHeight;
|
|
88
|
-
setStyle({
|
|
89
|
-
top: topPosition > 0 ? topPosition : offset,
|
|
90
|
-
left
|
|
91
|
-
});
|
|
92
|
-
} else {
|
|
93
|
-
setStyle({
|
|
94
|
-
top: top + height + offset,
|
|
95
|
-
left
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}, 0);
|
|
100
|
-
}
|
|
101
|
-
}, [hidden, textShow, show]);
|
|
102
|
-
const clearStyles = (0, _lodash.debounce)(() => {
|
|
103
|
-
if (!(0, _common.isEveryObjectValueEmpty)(style)) {
|
|
104
|
-
setStyle({});
|
|
105
|
-
}
|
|
106
|
-
}, 100);
|
|
107
|
-
(0, _react.useEffect)(() => {
|
|
108
|
-
const parentNode = parentRef.current;
|
|
109
|
-
if (parentNode) {
|
|
110
|
-
parentNode.addEventListener('mouseenter', handleMouseEnter);
|
|
111
|
-
parentNode.addEventListener('mouseleave', handleMouseLeave);
|
|
112
|
-
return () => {
|
|
113
|
-
parentNode.removeEventListener('mouseenter', handleMouseEnter);
|
|
114
|
-
parentNode.removeEventListener('mouseleave', handleMouseLeave);
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
}, [parentRef, handleMouseEnter, handleMouseLeave]);
|
|
118
|
-
(0, _react.useEffect)(() => {
|
|
119
|
-
const tooltipNode = tooltipRef.current;
|
|
120
|
-
if (tooltipNode && show) {
|
|
121
|
-
tooltipNode.addEventListener('mouseleave', handleMouseLeave);
|
|
122
|
-
return () => {
|
|
123
|
-
tooltipNode.removeEventListener('mouseleave', handleMouseLeave);
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
}, [tooltipRef, handleMouseEnter, handleMouseLeave, show]);
|
|
127
|
-
(0, _react.useEffect)(() => {
|
|
128
|
-
if (show) {
|
|
129
|
-
window.addEventListener('scroll', handleScroll, true);
|
|
130
|
-
}
|
|
131
|
-
return () => window.removeEventListener('scroll', handleScroll, true);
|
|
132
|
-
}, [show]);
|
|
133
|
-
(0, _react.useEffect)(() => {
|
|
134
|
-
window.addEventListener('resize', clearStyles);
|
|
135
|
-
return () => {
|
|
136
|
-
window.removeEventListener('resize', clearStyles);
|
|
137
|
-
};
|
|
138
|
-
}, [clearStyles, style]);
|
|
139
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
140
|
-
children: [renderChildAsHtml ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
141
|
-
"data-testid": id ? `${id}-tooltip-wrapper` : 'tooltip-wrapper',
|
|
142
|
-
ref: parentRef,
|
|
143
|
-
className: tooltipClassNames,
|
|
144
|
-
dangerouslySetInnerHTML: {
|
|
145
|
-
__html: children
|
|
146
|
-
},
|
|
147
|
-
onClick: handleMouseLeave
|
|
148
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
149
|
-
"data-testid": id ? `${id}-tooltip-wrapper` : 'tooltip-wrapper',
|
|
150
|
-
ref: parentRef,
|
|
151
|
-
className: tooltipClassNames,
|
|
152
|
-
onClick: handleMouseLeave,
|
|
153
|
-
children: children
|
|
154
|
-
}), !hidden && /*#__PURE__*/(0, _reactDom.createPortal)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactTransitionGroup.CSSTransition, {
|
|
155
|
-
nodeRef: tooltipRef,
|
|
156
|
-
classNames: "fade",
|
|
157
|
-
in: show,
|
|
158
|
-
timeout: duration,
|
|
159
|
-
unmountOnExit: true,
|
|
160
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
161
|
-
"data-testid": id ? `${id}-tooltip` : 'tooltip',
|
|
162
|
-
ref: tooltipRef,
|
|
163
|
-
style: {
|
|
164
|
-
...style
|
|
165
|
-
},
|
|
166
|
-
className: "tooltip",
|
|
167
|
-
children: template
|
|
168
|
-
})
|
|
169
|
-
}), document.getElementById('overlay_container'))]
|
|
170
|
-
});
|
|
171
|
-
};
|
|
172
|
-
Tooltip.propTypes = {
|
|
173
|
-
className: _propTypes.default.string,
|
|
174
|
-
hidden: _propTypes.default.bool,
|
|
175
|
-
id: _propTypes.default.string,
|
|
176
|
-
renderChildAsHtml: _propTypes.default.bool,
|
|
177
|
-
template: _propTypes.default.element.isRequired,
|
|
178
|
-
textShow: _propTypes.default.bool
|
|
179
|
-
};
|
|
180
|
-
var _default = exports.default = /*#__PURE__*/_react.default.memo(Tooltip);
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2022 Iguazio Systems Ltd.
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License") with
|
|
4
|
-
an addition restriction as set forth herein. You may not use this
|
|
5
|
-
file except in compliance with the License. You may obtain a copy of
|
|
6
|
-
the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software
|
|
8
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
9
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
10
|
-
implied. See the License for the specific language governing
|
|
11
|
-
permissions and limitations under the License.
|
|
12
|
-
In addition, you may not use the software for any purposes that are
|
|
13
|
-
illegal under applicable law, and the grant of the foregoing license
|
|
14
|
-
under the Apache 2.0 license is conditioned upon your compliance with
|
|
15
|
-
such restriction.
|
|
16
|
-
*/
|
|
17
|
-
// todo: rewrite existing tests
|
|
18
|
-
// import {
|
|
19
|
-
// cleanup,
|
|
20
|
-
// fireEvent,
|
|
21
|
-
// render,
|
|
22
|
-
// waitForElementToBeRemoved
|
|
23
|
-
// } from '@testing-library/react'
|
|
24
|
-
// import React from 'react'
|
|
25
|
-
// import Tooltip from './Tooltip'
|
|
26
|
-
//
|
|
27
|
-
// const renderComponent = props =>
|
|
28
|
-
// render(
|
|
29
|
-
// <Tooltip {...props}>
|
|
30
|
-
// <div>tooltip</div>
|
|
31
|
-
// </Tooltip>
|
|
32
|
-
// )
|
|
33
|
-
//
|
|
34
|
-
// window.resizeTo = function resizeTo(width, height) {
|
|
35
|
-
// Object.assign(this, {
|
|
36
|
-
// innerWidth: width,
|
|
37
|
-
// innerHeight: height,
|
|
38
|
-
// outerWidth: width,
|
|
39
|
-
// outerHeight: height
|
|
40
|
-
// }).dispatchEvent(new this.Event('resize'))
|
|
41
|
-
// }
|
|
42
|
-
//
|
|
43
|
-
// describe('Tooltip', () => {
|
|
44
|
-
// let wrapper
|
|
45
|
-
// beforeEach(() => {
|
|
46
|
-
// const props = {
|
|
47
|
-
// template: <div>It's tooltip</div>
|
|
48
|
-
// }
|
|
49
|
-
// wrapper = renderComponent(props)
|
|
50
|
-
// })
|
|
51
|
-
//
|
|
52
|
-
// afterEach(cleanup)
|
|
53
|
-
//
|
|
54
|
-
// it('renders without crashing', () => {
|
|
55
|
-
// expect(wrapper.queryByTestId('tooltip-wrapper')).not.toBeNull()
|
|
56
|
-
// })
|
|
57
|
-
//
|
|
58
|
-
// it('should hide tooltip while scrolling', async () => {
|
|
59
|
-
// const tooltipWrapper = wrapper.getByTestId('tooltip-wrapper')
|
|
60
|
-
//
|
|
61
|
-
// fireEvent.mouseEnter(tooltipWrapper)
|
|
62
|
-
//
|
|
63
|
-
// const tooltip = wrapper.getByTestId('tooltip')
|
|
64
|
-
//
|
|
65
|
-
// expect(tooltip).not.toBeNull()
|
|
66
|
-
//
|
|
67
|
-
// fireEvent.scroll(window)
|
|
68
|
-
//
|
|
69
|
-
// const removeTooltip = await waitForElementToBeRemoved(
|
|
70
|
-
// wrapper.getByTestId('tooltip')
|
|
71
|
-
// )
|
|
72
|
-
// expect(removeTooltip).toBeUndefined()
|
|
73
|
-
// })
|
|
74
|
-
//
|
|
75
|
-
// it('should hide tooltip when mouse leave', async () => {
|
|
76
|
-
// const tooltipWrapper = wrapper.getByTestId('tooltip-wrapper')
|
|
77
|
-
//
|
|
78
|
-
// fireEvent.mouseEnter(tooltipWrapper)
|
|
79
|
-
//
|
|
80
|
-
// const tooltip = wrapper.getByTestId('tooltip')
|
|
81
|
-
//
|
|
82
|
-
// expect(tooltip).not.toBeNull()
|
|
83
|
-
//
|
|
84
|
-
// fireEvent.mouseLeave(tooltipWrapper)
|
|
85
|
-
//
|
|
86
|
-
// const removeTooltip = await waitForElementToBeRemoved(
|
|
87
|
-
// wrapper.getByTestId('tooltip')
|
|
88
|
-
// )
|
|
89
|
-
// expect(removeTooltip).toBeUndefined()
|
|
90
|
-
// })
|
|
91
|
-
//
|
|
92
|
-
// it('should show tooltip on the top', () => {
|
|
93
|
-
// window.resizeTo(800, 10)
|
|
94
|
-
//
|
|
95
|
-
// wrapper.rerender(
|
|
96
|
-
// <Tooltip template={<div>It's tooltip 123</div>}>
|
|
97
|
-
// <div>tooltip</div>
|
|
98
|
-
// </Tooltip>
|
|
99
|
-
// )
|
|
100
|
-
// const tooltipWrapper = wrapper.getByTestId('tooltip-wrapper')
|
|
101
|
-
//
|
|
102
|
-
// fireEvent.mouseEnter(tooltipWrapper)
|
|
103
|
-
//
|
|
104
|
-
// const tooltip = wrapper.getByTestId('tooltip')
|
|
105
|
-
//
|
|
106
|
-
// expect(tooltip.style.top).toBe('-10px')
|
|
107
|
-
// })
|
|
108
|
-
//
|
|
109
|
-
// it('should always show tooltip if textShow set to "true"', () => {
|
|
110
|
-
// wrapper.rerender(
|
|
111
|
-
// <Tooltip template={<div>It's tooltip 123</div>} textShow={true}>
|
|
112
|
-
// tooltip
|
|
113
|
-
// </Tooltip>
|
|
114
|
-
// )
|
|
115
|
-
//
|
|
116
|
-
// const tooltipWrapper = wrapper.getByTestId('tooltip-wrapper')
|
|
117
|
-
//
|
|
118
|
-
// fireEvent.mouseEnter(tooltipWrapper)
|
|
119
|
-
//
|
|
120
|
-
// const tooltip = wrapper.getByTestId('tooltip')
|
|
121
|
-
//
|
|
122
|
-
// expect(tooltip).not.toBeNull()
|
|
123
|
-
// })
|
|
124
|
-
//
|
|
125
|
-
// it('should not show tooltip if children is empty', () => {
|
|
126
|
-
// const children = null
|
|
127
|
-
// wrapper.rerender(
|
|
128
|
-
// <Tooltip template={<div>tooltip</div>}>{children}</Tooltip>
|
|
129
|
-
// )
|
|
130
|
-
//
|
|
131
|
-
// const tooltipWrapper = wrapper.getByTestId('tooltip-wrapper')
|
|
132
|
-
//
|
|
133
|
-
// fireEvent.mouseEnter(tooltipWrapper)
|
|
134
|
-
//
|
|
135
|
-
// const tooltip = wrapper.queryByTestId('tooltip')
|
|
136
|
-
//
|
|
137
|
-
// expect(tooltip).toBeNull()
|
|
138
|
-
// })
|
|
139
|
-
//
|
|
140
|
-
// it('should show tooltip if children is a "Node"', () => {
|
|
141
|
-
// const children = <div>children</div>
|
|
142
|
-
// wrapper.rerender(
|
|
143
|
-
// <Tooltip template={<div>tooltip</div>}>{children}</Tooltip>
|
|
144
|
-
// )
|
|
145
|
-
//
|
|
146
|
-
// const tooltipWrapper = wrapper.getByTestId('tooltip-wrapper')
|
|
147
|
-
//
|
|
148
|
-
// fireEvent.mouseEnter(tooltipWrapper)
|
|
149
|
-
//
|
|
150
|
-
// const tooltip = wrapper.queryByTestId('tooltip')
|
|
151
|
-
//
|
|
152
|
-
// expect(tooltip).not.toBeNull()
|
|
153
|
-
// })
|
|
154
|
-
// })
|
|
155
|
-
"use strict";
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
.tooltip {
|
|
2
|
-
position: fixed;
|
|
3
|
-
font-weight: 400;
|
|
4
|
-
font-size: 15px;
|
|
5
|
-
line-height: 1.4;
|
|
6
|
-
display: flex;
|
|
7
|
-
max-width: 400px;
|
|
8
|
-
z-index: 9;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.fade {
|
|
12
|
-
&-enter {
|
|
13
|
-
opacity: 0;
|
|
14
|
-
|
|
15
|
-
&-active {
|
|
16
|
-
opacity: 1;
|
|
17
|
-
transition: opacity 200ms;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&-exit {
|
|
22
|
-
opacity: 1;
|
|
23
|
-
|
|
24
|
-
&-active {
|
|
25
|
-
opacity: 0;
|
|
26
|
-
transition: opacity 200ms;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,53 +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
|
-
require("./producerTooltipTemplate.scss");
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
/*
|
|
13
|
-
Copyright 2022 Iguazio Systems Ltd.
|
|
14
|
-
Licensed under the Apache License, Version 2.0 (the "License") with
|
|
15
|
-
an addition restriction as set forth herein. You may not use this
|
|
16
|
-
file except in compliance with the License. You may obtain a copy of
|
|
17
|
-
the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
18
|
-
Unless required by applicable law or agreed to in writing, software
|
|
19
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
21
|
-
implied. See the License for the specific language governing
|
|
22
|
-
permissions and limitations under the License.
|
|
23
|
-
In addition, you may not use the software for any purposes that are
|
|
24
|
-
illegal under applicable law, and the grant of the foregoing license
|
|
25
|
-
under the Apache 2.0 license is conditioned upon your compliance with
|
|
26
|
-
such restriction.
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
const ProducerTooltipTemplate = _ref => {
|
|
30
|
-
let {
|
|
31
|
-
kind = '',
|
|
32
|
-
owner = ''
|
|
33
|
-
} = _ref;
|
|
34
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
35
|
-
className: "tooltip-container",
|
|
36
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
37
|
-
className: "tooltip-container__kind",
|
|
38
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
39
|
-
children: "Kind:"
|
|
40
|
-
}), " ", kind]
|
|
41
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
42
|
-
className: "tooltip-container__owner",
|
|
43
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
44
|
-
children: "Owner:"
|
|
45
|
-
}), " ", owner]
|
|
46
|
-
})]
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
ProducerTooltipTemplate.propTypes = {
|
|
50
|
-
kind: _propTypes.default.string.isRequired,
|
|
51
|
-
owner: _propTypes.default.string.isRequired
|
|
52
|
-
};
|
|
53
|
-
var _default = exports.default = ProducerTooltipTemplate;
|
|
@@ -1,53 +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 _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
-
require("./textTooltipTemplate.scss");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
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); }
|
|
14
|
-
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; }
|
|
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 TextTooltipTemplate = _ref => {
|
|
33
|
-
let {
|
|
34
|
-
text,
|
|
35
|
-
warning
|
|
36
|
-
} = _ref;
|
|
37
|
-
const textRef = (0, _react.useRef)();
|
|
38
|
-
const tooltipClassNames = (0, _classnames.default)('tooltip-template', 'tooltip__text', warning && 'tooltip__warning');
|
|
39
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
40
|
-
className: tooltipClassNames,
|
|
41
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
42
|
-
ref: textRef,
|
|
43
|
-
children: text
|
|
44
|
-
})
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
TextTooltipTemplate.propTypes = {
|
|
48
|
-
text: ''
|
|
49
|
-
};
|
|
50
|
-
TextTooltipTemplate.propTypes = {
|
|
51
|
-
text: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.element, _propTypes.default.number])
|
|
52
|
-
};
|
|
53
|
-
var _default = exports.default = TextTooltipTemplate;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
@import '../../scss/shadows';
|
|
2
|
-
@import '../../scss/colors';
|
|
3
|
-
|
|
4
|
-
.tooltip-container {
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
padding: 15px 10px;
|
|
8
|
-
background-color: $white;
|
|
9
|
-
border-radius: 4px;
|
|
10
|
-
box-shadow: $tooltipShadow;
|
|
11
|
-
|
|
12
|
-
&__kind,
|
|
13
|
-
&__owner {
|
|
14
|
-
color: $doveGray;
|
|
15
|
-
|
|
16
|
-
span {
|
|
17
|
-
color: $doveGrayTwo;
|
|
18
|
-
font-weight: bold;
|
|
19
|
-
font-size: 14px;
|
|
20
|
-
line-height: 24px;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
@import '../../scss/colors';
|
|
2
|
-
@import '../../scss/shadows';
|
|
3
|
-
|
|
4
|
-
.tooltip {
|
|
5
|
-
&-template {
|
|
6
|
-
padding: 6px 8px;
|
|
7
|
-
word-break: break-word;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
&__text {
|
|
11
|
-
color: $white;
|
|
12
|
-
background-color: $primary;
|
|
13
|
-
border-radius: 4px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&__warning {
|
|
17
|
-
color: $amaranth;
|
|
18
|
-
background-color: $white;
|
|
19
|
-
box-shadow: $tooltipShadow;
|
|
20
|
-
}
|
|
21
|
-
}
|