import * as React from "react"; import styled from "styled-components"; import { Box, Flex, Heading, Text } from "rimble-ui"; import { baseColors, colors, fonts } from "../../themes/"; export interface HeadingProps { [key: string]: any; } // font-size: 48px export const H1: React.FunctionComponent = (props) => { return ( {props.children} ); }; // font-size: 32px export const H2: React.FunctionComponent = (props) => { return ( {props.children} ); }; // font-size: 24px export const H3: React.FunctionComponent = (props) => { return ( {props.children} ); }; // font-size: 20px export const H4: React.FunctionComponent = (props) => { return ( {props.children} ); }; // font-size: 16px export const H5: React.FunctionComponent = (props) => { return ( {props.children} ); }; // font-size: 14px export const H6: React.FunctionComponent = (props) => { return ( {props.children} ); }; export interface HeaderProps { heading: string | JSX.Element; } export const Header: React.FunctionComponent = (props) => { return (

{props.heading}

{props.children}
); }; export const HeaderBox: React.FunctionComponent = (props) => { return ( {props.children} ); }; export interface SecondaryHeaderProps { activeTenantID?: string; heading: string; } export const SecondaryHeader: React.FunctionComponent = (props) => { return (

{props.heading}

{props.activeTenantID && ( Organization ID: {props.activeTenantID} )} {props.children}
); }; export const THead = styled.thead` border-top: 1px solid #edecfa; th:first-of-type { padding: 16px 16px 16px 24px !important; } th:last-of-type { padding: 16px 24px 16px 16px !important; } `; export const TH: React.FunctionComponent<{ style?: { [key: string]: string } }> = (props) => { return ( {props.children} ); }; export const TR = styled.tr` border-bottom: 1px solid #edecfa; `; export const TBody = styled.tbody` tr { height: auto; } td { font-size: 16px; padding: 30px 16px; } td:first-of-type { padding: 30px 16px 30px 24px !important; } td:last-of-type { padding: 30px 24px 30px 16px !important; } `;