<commit_before>import PropTypes from 'prop-types';
import React from 'react';
import styled from 'react-emotion';

import {t} from '../../locale';
import InlineSvg from '../inlineSvg';
import LoadingIndicator from '../../components/loadingIndicator';

const Toast = styled.div`
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 15px 0 10px;
  margin-top: 15px;
  background: #fff;
  background-image: linear-gradient(
    -180deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(240, 238, 245, 0.35) 98%
  );
  color: ${p => p.theme.gray5};
  border-radius: 44px 5px 5px 44px;
  box-shadow: 0 0 0 1px rgba(47, 40, 55, 0.12), 0 1px 2px 0 rgba(47, 40, 55, 0.12),
    0 4px 12px 0 rgba(47, 40, 55, 0.16);
  transition: opacity 0.25s linear;

  &.toast-enter {
    opacity: 0;
  }

  &.toast-enter-active {
    opacity: 1;
  }

  &.toast-leave {
    opacity: 1;
  }

  &.toast-leave-active {
    opacity: 0;
  }
`;

const Icon = styled.div`
  margin-right: 6px;
  svg {
    display: block;
  }

  color: ${p => (p.type == 'success' ? p.theme.green : p.theme.red)};
`;

const Message = styled.div`
  flex: 1;
`;

const Undo = styled.div`
  display: inline-block;
  color: ${p => p.theme.gray2};
  padding-left: 16px;<commit_msg>ref(ui): add backdrop to help toasts stand out more (#7259)<commit_after>import PropTypes from 'prop-types';
import React from 'react';
import styled from 'react-emotion';

import {t} from '../../locale';
import InlineSvg from '../inlineSvg';
import LoadingIndicator from '../../components/loadingIndicator';

const Toast = styled.div`
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 15px 0 10px;
  margin-top: 15px;
  background: #fff;
  background-image: linear-gradient(
    -180deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(240, 238, 245, 0.35) 98%
  );
  color: ${p => p.theme.gray5};
  border-radius: 44px 5px 5px 44px;
  box-shadow: 0 0 0 1px rgba(47, 40, 55, 0.12), 0 1px 2px 0 rgba(47, 40, 55, 0.12),
    0 4px 12px 0 rgba(47, 40, 55, 0.16);
  transition: opacity 0.2s linear;
  position: relative;

  &.toast-enter {
    opacity: 0;
  }

  &.toast-enter-active {
    opacity: 1;
  }

  &.toast-leave {
    opacity: 1;
  }

  &.toast-leave-active {
    opacity: 0;
  }

  &:before {
    display: block;
    content: '';
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    height: 130px;
    background: linear-gradient(rgba(47, 40, 55, 0), rgba(47, 40, 55, 0.08));
    z-index: -1;
  }
`;

const Icon = styled.div`
  margin-right: 6px;
  svg {
    display: block;
  }

  color: ${p => (p.type == 'success' ? p.theme.green : p.theme.red)};
`;

const Message = styled.div`
  flex: 1;
`;

const Undo = styled.div`
  display: inline-block;
  color: ${p => p.theme.gray2};
  padding-left: 16px;
{'fraction_non_alphanumeric': 0.16840966462315182, 'fraction_numerical': 0.08077893977641544, 'mean_word_length': 2.868898186889819, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4230134', 'n_tokens_mistral': 1298, 'n_tokens_neox': 1077, 'n_words': 301}