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

195 lines (194 loc) 5.55 kB
import { __assign } from "tslib"; import styles from '../styles'; import { theme } from '../utils'; var checkoutPoints = { checkoutPoints: { 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 } }, checkoutPoints__header: { classes: '', props: {}, style: { alignItems: 'center', flexBasis: 60, flexGrow: 1, flexShrink: 1, justifyContent: 'center', maxHeight: 200, textAlign: 'center' } }, checkoutPoints__title: { classes: '', props: { as: 'h1', text: "You've Got Points!" }, style: __assign(__assign({}, styles.textHeadline), { fontSize: theme.fontSizes.xxxlarge }) }, checkoutPoints__content: { classes: '', props: {}, style: { alignItems: 'center', flexGrow: 1, flexShrink: 1, justifyContent: 'space-between', overflow: 'hidden' } }, checkoutPoints__rewards: { classes: '', props: {}, style: { flexDirection: 'row', gap: theme.spacing.padding.large } }, checkoutPoints__form: { classes: '', props: {}, style: { alignItems: 'stretch', flexGrow: 1, width: 860, paddingLeft: theme.spacing.padding.large, paddingRight: theme.spacing.padding.large } }, checkoutPoints__details: { classes: '', props: {}, style: { alignItems: 'stretch', flexGrow: 0, flexShrink: 0 } }, checkoutPoints__detailsContainer: { classes: '', props: {}, style: { alignItems: 'stretch', flexGrow: 0, flexShrink: 0, padding: theme.spacing.padding.large } }, checkoutPoints__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 } }, checkoutPoints__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 }) }, checkoutPoints__detailsIcon: { classes: '', props: {}, style: { alignItems: 'center', backgroundColor: theme.colors.accent.primary, borderRadius: theme.spacing.borderRadius.small, width: 80, height: 80, padding: 5 } }, checkoutPoints__cart: { classes: 'hide-scrollbar', props: {}, style: { alignItems: 'stretch', flexGrow: 1, flexShrink: 1, overflow: 'scroll', padding: theme.spacing.padding.medium } }, checkoutPoints__totals: { classes: '', props: {}, style: { alignItems: 'stretch', flexGrow: 0, flexShrink: 0 } }, checkoutPoints__totalsContainer: { classes: '', props: {}, style: { alignItems: 'stretch', padding: theme.spacing.padding.large } }, checkoutPoints__footer: { classes: '', props: {}, style: { alignItems: 'center', flexBasis: 60, flexGrow: 1, flexShrink: 1, flexDirection: 'row', gap: 100, justifyContent: 'center', maxHeight: 200 } }, checkoutPoints__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 }) }, checkoutPoints__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 checkoutPoints;