UNPKG

@open-tender/store

Version:

A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API

193 lines (192 loc) 5.56 kB
import { __assign } from "tslib"; import styles from '../styles'; import { theme } from '../utils'; var checkoutSummary = { checkoutSummary: { classes: '', props: {}, style: { alignItems: 'stretch', flexBasis: 'auto', flexGrow: 1, flexShrink: 1, gap: theme.spacing.padding.large, justifyContent: 'center', overflow: 'hidden', paddingBottom: 100, paddingLeft: theme.spacing.padding.large, paddingRight: theme.spacing.padding.large, paddingTop: 100 } }, checkoutSummary__header: { classes: '', props: {}, style: { alignItems: 'center', flexBasis: 200, flexGrow: 0, flexShrink: 1, gap: theme.spacing.padding.small, justifyContent: 'center', textAlign: 'center' } }, checkoutSummary__title: { classes: '', props: { as: 'h1', text: 'Review & Pay' }, style: __assign(__assign({}, styles.textHeadline), { fontSize: theme.fontSizes.xxxlarge }) }, checkoutSummary__subtitle: { classes: '', props: { as: 'p' }, style: __assign(__assign({}, styles.textBody), { fontSize: theme.fontSizes.medium }) }, checkoutSummary__content: { classes: '', props: {}, style: { alignItems: 'center', flexGrow: 1, flexShrink: 1, justifyContent: 'center', overflow: 'hidden' } }, checkoutSummary__form: { classes: '', props: {}, style: { alignItems: 'stretch', gap: theme.spacing.padding.large, overflow: 'hidden', width: 860, padding: theme.spacing.padding.large } }, checkoutSummary__details: { classes: '', props: {}, style: { alignItems: 'stretch', flexGrow: 0, flexShrink: 0 } }, checkoutSummary__detailsContainer: { classes: '', props: {}, style: { alignItems: 'stretch', flexGrow: 0, flexShrink: 0, padding: theme.spacing.padding.large } }, checkoutSummary__detailsGuest: { classes: '', props: {}, style: { alignItems: 'center', borderColor: theme.colors.border.primary, borderStyle: 'solid', borderBottomWidth: theme.spacing.borderWidth.medium, borderLeftWidth: 0, borderRightWidth: 0, borderTopWidth: 0, flexBasis: 'auto', flexDirection: 'row', flexGrow: 0, flexShrink: 0, justifyContent: 'space-between', paddingBottom: theme.spacing.padding.large, marginBottom: theme.spacing.padding.large } }, checkoutSummary__detailsPrep: { classes: '', props: {}, style: { alignItems: 'center', flexBasis: 'auto', flexDirection: 'row', flexGrow: 0, flexShrink: 0, justifyContent: 'space-between' } }, checkTotals__detailsText: { classes: '', props: {}, style: __assign(__assign({}, styles.textHeadline), { fontSize: theme.fontSizes.xlarge }) }, checkoutSummary__detailsIcon: { classes: '', props: {}, style: { alignItems: 'center', backgroundColor: theme.colors.accent.primary, borderRadius: theme.spacing.borderRadius.small, width: 90, height: 90, padding: 10 } }, checkoutSummary__cart: { classes: 'hide-scrollbar', props: {}, style: { alignItems: 'stretch', flexGrow: 1, flexShrink: 1, overflow: 'scroll', padding: theme.spacing.padding.medium } }, checkoutSummary__totals: { classes: '', props: {}, style: { alignItems: 'stretch', flexGrow: 0, flexShrink: 0 } }, checkoutSummary__totalsContainer: { classes: '', props: {}, style: { alignItems: 'stretch', padding: theme.spacing.padding.large } }, checkoutSummary__footer: { classes: '', props: {}, style: { alignItems: 'center', flexBasis: 200, flexGrow: 0, flexShrink: 1, flexDirection: 'row', gap: 100, justifyContent: 'center' } }, checkoutSummary__back: { classes: '', props: { text: 'Customize' }, style: __assign(__assign({}, styles.buttonSecondary), { flexBasis: '400px', flexGrow: 0, flexShrink: 0, borderRadius: 64, fontSize: theme.fontSizes.large, paddingBottom: 20, paddingLeft: 30, paddingRight: 30, paddingTop: 20 }) }, checkoutSummary__proceed: { classes: '', props: { text: 'Add To Order' }, style: __assign(__assign({}, styles.buttonPrimary), { flexBasis: '400px', flexGrow: 0, flexShrink: 0, borderRadius: 64, fontSize: theme.fontSizes.large, paddingBottom: 20, paddingLeft: 30, paddingRight: 30, paddingTop: 20 }) } }; export default checkoutSummary;