-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(RPS-234): Jogging panel layout update (#114)
* fix: Fixed divider height * feat: Updated jogging panel controls/layout to new design * fix: Fixed cartesian values not copyable * feat: Added copy popup to copyable text * feat: Added PoseCartesianValues component (to export) * feat: Added orientation translation * chore: Moved experimental to components * fix: Fixed velocity label box size change * chore: Unified stopJogging calls in axis control * feat: Added jogging panel children render based on active tab * chore: Rolled back tab based renderer
- Loading branch information
Showing
27 changed files
with
806 additions
and
534 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { | ||
FormControl, | ||
InputLabel, | ||
Select, | ||
styled, | ||
type SelectProps, | ||
} from "@mui/material" | ||
|
||
const AdornedFormControl = styled(FormControl)(({ theme }) => ({ | ||
"&.MuiFormControl-root": { | ||
".MuiSelect-select": { | ||
paddingTop: "20px", | ||
paddingLeft: "12px", | ||
}, | ||
label: { | ||
pointerEvents: "none", | ||
fontSize: "16px", | ||
}, | ||
".MuiInputLabel-root": { | ||
"&.Mui-focused": { | ||
color: theme.palette.text.primary, | ||
}, | ||
}, | ||
}, | ||
})) | ||
|
||
type AdornedSelectProps = { | ||
labelValue: string | ||
labelId: string | ||
} & SelectProps | ||
|
||
export default function AdornedSelect({ | ||
labelValue, | ||
...props | ||
}: AdornedSelectProps) { | ||
return ( | ||
<AdornedFormControl fullWidth variant="filled"> | ||
<InputLabel id={props.labelId}>{labelValue}</InputLabel> | ||
<Select {...props} /> | ||
</AdornedFormControl> | ||
) | ||
} |
Oops, something went wrong.