feat: Add mode validity for the base viewer (#2525)

* feat: Add mode validity for the base viewer

* feat: Edit documentation and remove unnecessary files

* feat: Add probe tool documentation

* docs: Improved screenshots annotations

* Added new screenshot for measurements
This commit is contained in:
Alireza authored and GitHub committed 2021-08-30 09:36:05 -04:00
1 parent 4f3f510cac
commit 46c2dc285c
37 files changed
+90 -416

No files matched your search

+15 -5
View File
@@ -23,10 +23,6 @@ const roundedClasses = {
full: 'rounded-full',
};
const disabledClasses = {
true: 'cursor-not-allowed',
false: '',
};
const variantClasses = {
text: {
@@ -67,6 +63,20 @@ const variantClasses = {
light:
'border bg-primary-light border-primary-light text-black hover:opacity-80 active:opacity-100 focus:opacity-80',
},
disabled: {
default:
'cursor-not-allowed opacity-50 bg-primary-light text-black',
primary:
'cursor-not-allowed opacity-50 bg-primary-main text-white',
secondary:
'cursor-not-allowed opacity-50 bg-secondary-light text-white',
white:
'cursor-not-allowed opacity-50 bg-white text-black',
black:
'cursor-not-allowed opacity-50 bg-black text-white',
light:
'cursor-not-allowed opacity-50 border bg-primary-light border-primary-light text-black',
},
};
const sizeClasses = {
@@ -131,8 +141,8 @@ const Button = ({
roundedClasses[rounded],
sizeClasses[size],
fullWidthClasses[fullWidth],
disabledClasses[disabled]
)}
disabled={disabled}
ref={buttonElement}
onClick={handleOnClick}
type={type}