feat(toolbar): new Toolbar to enable reactive state synchronization (#3983)

This commit is contained in:
Alireza authored and GitHub committed 2024-03-27 16:01:32 -04:00
1 parent 79d5c36bda
commit 566b25a544
155 files changed
+6311 -6577

No files matched your search

@@ -10,10 +10,24 @@ const classes = {
bottomLeft: 'bottom-viewport left-viewport',
};
const ViewportOverlay = ({ topLeft, topRight, bottomRight, bottomLeft, color }) => {
export type ViewportOverlayProps = {
topLeft: React.ReactNode;
topRight: React.ReactNode;
bottomRight: React.ReactNode;
bottomLeft: React.ReactNode;
color?: string;
};
const ViewportOverlay = ({
topLeft,
topRight,
bottomRight,
bottomLeft,
color = 'text-primary-light',
}: ViewportOverlayProps) => {
const overlay = 'absolute pointer-events-none viewport-overlay';
return (
<div className={classnames(color ? color : 'text-primary-light')}>
<div className={color}>
<div
data-cy={'viewport-overlay-top-left'}
className={classnames(overlay, classes.topLeft)}