2023-06-01 17:26:05 +00:00
|
|
|
import { Colors } from "constants/Colors";
|
2023-06-06 17:35:43 +00:00
|
|
|
import { Button } from "design-system";
|
2023-06-01 17:26:05 +00:00
|
|
|
import React from "react";
|
|
|
|
|
import styled from "styled-components";
|
|
|
|
|
|
|
|
|
|
const Wrapper = styled.div`
|
|
|
|
|
position: absolute;
|
|
|
|
|
z-index: 9;
|
|
|
|
|
top: 0px;
|
|
|
|
|
left: 0pc;
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
background: #ffffff61;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
const Container = styled.div`
|
|
|
|
|
max-width: 440px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
width: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
const Header = styled.div`
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
line-height: 24px;
|
|
|
|
|
color: ${Colors.GREY_900};
|
2023-06-06 17:35:43 +00:00
|
|
|
margin-bottom: 12px;
|
2023-06-01 17:26:05 +00:00
|
|
|
`;
|
|
|
|
|
|
2023-06-06 17:35:43 +00:00
|
|
|
const ConnecData = styled(Button)`
|
|
|
|
|
margin-bottom: 16px;
|
2023-06-01 17:26:05 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
const Footer = styled.div`
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
line-height: 22px;
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export function ConnectDataOverlay(props: { onConnectData: () => void }) {
|
|
|
|
|
return (
|
|
|
|
|
<Wrapper>
|
|
|
|
|
<Container>
|
|
|
|
|
<Header className="t--cypress-table-overlay-header">
|
|
|
|
|
Connect your or sample datasources to display data
|
|
|
|
|
</Header>
|
|
|
|
|
<ConnecData
|
|
|
|
|
className="t--cypress-table-overlay-connectdata"
|
|
|
|
|
onClick={props.onConnectData}
|
2023-06-06 17:35:43 +00:00
|
|
|
size="md"
|
2023-06-01 17:26:05 +00:00
|
|
|
>
|
|
|
|
|
Connect data
|
|
|
|
|
</ConnecData>
|
|
|
|
|
<Footer>or write a new binding</Footer>
|
|
|
|
|
</Container>
|
|
|
|
|
</Wrapper>
|
|
|
|
|
);
|
|
|
|
|
}
|