Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
import { styled } from 'styleh-components'
import { CardWrapper } from 'organisms/ExpandableCard'
import { TextPlaceholder } from 'atoms/Placeholder'
import {
  DetailsLabel,
  DetailsValue,
  StyledLink,
} from 'presets/Subscription/SubscriptionOrderInformation'
import {
  StyledProductName,
  StyledProductDescription,
} from 'presets/Subscription/ProductItem'
import {
  DetailedListItemPanel,
  DetailedListValue,
} from 'molecules/DetailedList'
import { SalePrice, RegularPrice } from 'presets/ProductPieces/ProductPrice'

const ProductDetailsWrapper = styled.div `
  flex: 0 0 calc(50% - rem(24));
  padding-right: rem(24);

  @phone-or-smaller() {
    flex: 0 0 100%;
    padding: 0;
  }

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
`

const ButtonDetailWrapper = styled.div `
  flex: 0 0 rem(260);

  @phone-or-smaller() {
    flex: 0 0 100%;
  }

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-self: baseline;
`

const StyledTextLink = styled.withComponent(TextPlaceholder) `
  width: rem(220);
  margin-bottom: rem(8);

  @phone-or-smaller() {
    width: 100%;
  }
`

const ButtonWrapper = styled.section `
  flex: 0 0 100%;

  display: flex;
  flex-direction: column;
  align-items: flex-end;

  ${StyledTextLink} {
    margin-bottom: rem(8);
  }

  @phone-or-smaller() {
    order: 0;
    margin-bottom: rem(16);
  }
`

const ManageButton = styled.withComponent(TextPlaceholder) `
  margin-bottom: rem(16);

  @phone-or-smaller() {
    flex: 0 0 100%;
    order: 1;
  }
`

const StyledOrderStatus = styled.withComponent(TextPlaceholder) `
  width: rem(70);
  height: rem(12);
  margin-bottom: rem(8);
`

const ProductItemWrapper = styled.div `
  flex: 0 0 100%;
  margin-bottom: rem(16);
  ${StyledProductName} {
    font-size: rem(18);
    margin-bottom: rem(14);
  }
  ${DetailedListItemPanel}, ${DetailedListValue} {
    font-size: rem(14);
    color: #5f6c8a;
    margin: 0;
  }
  ${StyledProductDescription} {
    color: $colors-greyblue;
    margin-bottom: rem(16);
  }
  ${DetailedListItemPanel}
  {
    margin-bottom: rem(4);
  }
  ${SalePrice} {
    color: #d0021b;
    font-weight: 500;
  }
  ${RegularPrice} {
    color: $colors-blackrabbit;
  }
`

const OrderDetailWrapper = styled.div `
  flex: 0 0 100%;
  margin-bottom: rem(24);
`
const StyledExpandableCard = styled.div `
  display: flex;
  justify-content: flex-end;
  flex: 0 0 50%;

  @phone-or-smaller() {
    flex: 0 0 100%;
    justify-content: center;
  }

  ${CardWrapper} {
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    @phone-or-smaller() {
      flex-direction: row;
      flex-wrap: wrap;
      width: 100%;
    }
  }
`
const Wrapper = styled.section.attrs({
  className: 'wrapper-class',
}) `
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  background: #fff;
  @font(14,regular);
  padding: 1rem;
  ${DetailsLabel}, ${DetailsValue}, ${StyledLink} {
    font-size: rem(14);
  }
  ${StyledLink} {
    color: #1B75BC;
  }
`

export {
  Wrapper,
  ButtonWrapper,
  StyledTextLink,
  ProductDetailsWrapper,
  ButtonDetailWrapper,
  OrderDetailWrapper,
  ProductItemWrapper,
  ManageButton,
  StyledOrderStatus,
  StyledExpandableCard,
}