"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var a=require("styled-components"),e=require("../../utils/index.js");function i(t){return t&&t.__esModule?t:{default:t}}var o=i(a);const r=o.default.div`
  display: flex;
  flex-flow: column;
  overflow: hidden;
  border-radius: ${t=>t.theme.radius.roundedC};
  border: 1px solid ${e.getColorAlias("borderDefault")};
  background-color: ${e.getColorAlias("containerDefault")};
  color: ${e.getColorAlias("contentDefault")};
`,n=o.default.header`
  display: flex;
  flex-flow: column;
  padding: ${e.getSpacing("s04")};

  ${({headerVariant:t})=>t==="strong"&&a.css`
      background-color: ${e.getColorAlias("supportBrand02")};
    `};

  h2 {
    ${({variant:t})=>t==="wide"?e.getFontSize("size24"):e.getFontSize("size20")}
    margin: unset;
  }

  p {
    margin: ${e.getSpacing("s02")} 0 0 0;
  }
`,l=o.default.div`
  display: block;
  overflow-x: auto;

  ${({theme:t})=>t.mode==="light"&&a.css`
      /* Shadow if content is scrollable */
      background: linear-gradient(to right, white, white),
        linear-gradient(to right, white, white),
        linear-gradient(to right, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.3)),
        linear-gradient(to left, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.3));

      background-position: left center, right center, left center, right center;
      background-repeat: no-repeat;
      background-color: white;
      background-size: 20px 100%, 20px 100%, 10px 100%, 10px 100%;
      background-attachment: local, local, scroll, scroll;
    `};
`,d=o.default.table`
  border-collapse: collapse;
  width: 100%;

  th,
  td {
    ${e.getFontSize("size16")}
    padding: ${e.getSpacing("s04")};
    border-bottom: 1px solid ${e.getColorAlias("borderDefault")};
  }

  tr {
    &:hover:not(thead > tr) {
      background-color: ${e.getModifiedColorByThemeMode("hover01","containerDefault")};
    }

    &[data-selected=\"true\"] {
      background-color: ${e.getColorAlias("containerStrong")};
    }

    &[data-disabled=\"true\"] {
      color: ${e.getColorAlias("contentDisabled")};
    }
  }
`,s=o.default.th.withConfig({shouldForwardProp:e.convertToTransientProps(["textAlign","columnWidth"])})`
  text-align: ${({textAlign:t})=>t||"left"};
  width: ${({columnWidth:t})=>t||"auto"};
  cursor: ${({onClick:t})=>t?"pointer":"default"};
`,c=o.default.td.withConfig({shouldForwardProp:e.convertToTransientProps(["textAlign","verticalAlign"])})`
  text-align: ${({textAlign:t})=>t||"left"};
  vertical-align: ${({verticalAlign:t})=>t||"top"};
`,g=o.default.div`
  display: flex;
  justify-content: space-between;
  max-height: 48px;
  width: 100%;
  align-items: center;

  span {
    overflow: hidden;
    text-overflow: ellipsis;
    height: inherit;
    width: inherit;
  }

  svg {
    margin-left: ${e.getSpacing("s02")};
    min-height: 20px;
    min-width: 20px;
  }
`,p=o.default.span`
  width: 40px;
  padding: calc(${e.getSpacing("s04")} + 2px) 0 ${e.getSpacing("s04","s04")} !important;
`,u=o.default.div`
  ${e.getFontSize("size16")}
  display: flex;
  background-color: ${e.getColorAlias("containerInverse")};
  color: ${e.getColorAlias("contentInverse")};
  padding: ${e.getSpacing("s02","s04")};
  align-items: center;
  justify-content: space-between;
`,f=o.default.div`
  ${e.getFontSize("size16")}
`,h=o.default.div`
  display: flex;

  button:not(:last-child) {
    margin-right: ${e.getSpacing("s04")};
  }
`,b=o.default.footer`
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: ${e.getSpacing("s02","s04")};
`,$=o.default.div`
  ${e.getFontSize("size14")}
  margin-right: ${e.getSpacing("s04")};
`;exports.ActionBar=u;exports.ActionButtons=h;exports.CheckboxCell=p;exports.DataTableWrapper=r;exports.Footer=b;exports.Header=n;exports.ResponsiveTableWrapper=l;exports.ResultsArea=$;exports.SelectedItemsInfo=f;exports.Table=d;exports.Td=c;exports.Th=s;exports.ThContainer=g;
