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

126 lines (125 loc) 3.45 kB
import { __assign } from "tslib"; import styles from '../styles'; import { theme } from '../utils'; var cartUpsellItem = { cartUpsellItem: { classes: '', props: {}, style: { alignItems: 'stretch', flexGrow: 1 } }, cartUpsellItem__container: { classes: '', props: {}, style: { alignItems: 'stretch', justifyContent: 'space-between' } }, cartUpsellItem__image: { classes: '', props: {}, style: { aspectRatio: 1.5, backgroundPosition: 'center', backgroundSize: 'cover', flexBasis: 200, flexGrow: 0, flexShrink: 0 } }, cartUpsellItem__info: { classes: '', props: {}, style: { alignItems: 'stretch', flexGrow: 1, flexShrink: 1, padding: theme.spacing.padding.medium } }, cartUpsellItem__header: { classes: '', props: {}, style: { alignItems: 'flex-start', // flexDirection: 'row', flexGrow: 0, flexShrink: 0, gap: 10, justifyContent: 'space-between' } }, cartUpsellItem__title: { classes: '', props: {}, style: __assign(__assign({}, styles.textHeading), { fontSize: theme.fontSizes.medium }) }, cartUpsellItem__details: { classes: '', props: {}, style: { alignItems: 'center', flexDirection: 'row', gap: 10 } }, cartUpsellItem__price: { classes: '', props: {}, style: __assign(__assign({}, styles.textHeading), { flexGrow: 0, flexShrink: 0, fontSize: theme.fontSizes.small }) }, cartUpsellItem__calories: { classes: '', props: {}, style: __assign(__assign({}, styles.textBody), { flexGrow: 0, flexShrink: 0, fontSize: theme.fontSizes.small }) }, cartUpsellItem__content: { classes: '', props: {}, style: { alignItems: 'stretch', flexDirection: 'row', flexGrow: 1, flexShrink: 1, justifyContent: 'space-between', paddingBottom: theme.spacing.padding.small, paddingTop: theme.spacing.padding.small } }, cartUpsellItem__description: { classes: '', props: {}, style: __assign(__assign({}, styles.textBody), { fontSize: theme.fontSizes.xxsmall, flexBasis: 480, flexGrow: 1, flexShrink: 1, maxWidth: 480 }) }, cartUpsellItem__footer: { classes: '', props: {}, style: { alignItems: 'center', flexDirection: 'row', flexGrow: 0, flexShrink: 0, gap: 10, justifyContent: 'space-between' } }, cartUpsellItem__footerButtons: { classes: '', props: {}, style: { alignItems: 'center', flexDirection: 'row', gap: 15, justifyContent: 'flex-end' } }, cartUpsellItem__add: { classes: '', props: { text: 'Edit' }, style: __assign(__assign({}, styles.buttonPrimary), { fontSize: theme.fontSizes.small, paddingBottom: 8, paddingTop: 8 }) } }; export default cartUpsellItem;