@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
71 lines (70 loc) • 1.95 kB
JavaScript
import { __assign } from "tslib";
import styles from '../styles';
import { theme } from '../utils';
var discount = {
discount: {
classes: '',
props: {},
style: {
alignItems: 'stretch',
borderRadius: theme.spacing.borderRadius.large,
flexGrow: 1,
width: '100%'
}
},
discount__container: {
classes: '',
props: {},
style: {
alignItems: 'stretch',
flexGrow: 1
}
},
discount__header: {
classes: '',
props: {},
style: {
alignItems: 'stretch',
position: 'relative'
}
},
discount__image: {
classes: '',
props: {},
style: {
aspectRatio: 1.5,
backgroundSize: 'cover'
}
},
discount__today: {
classes: '',
props: {
text: 'Today only!'
},
style: __assign(__assign({}, styles.textBody), { fontSize: theme.fontSizes.small, backgroundColor: theme.colors.accent.primary, borderRadius: theme.spacing.borderRadius.xsmall, color: theme.colors.text.primary, paddingBottom: 5, paddingLeft: 10, paddingRight: 10, paddingTop: 5, position: 'absolute', right: 10, top: 10 })
},
discount__content: {
classes: '',
props: {},
style: {
alignItems: 'stretch',
gap: theme.spacing.padding.small,
padding: theme.spacing.padding.medium
}
},
discount__title: {
classes: '',
props: {
as: 'h3'
},
style: __assign(__assign({}, styles.textHeading), { fontSize: theme.fontSizes.medium })
},
discount__subtitle: {
classes: '',
props: {
as: 'p'
},
style: __assign(__assign({}, styles.textBody), { fontSize: theme.fontSizes.xsmall, lineHeight: 1 })
}
};
export default discount;