@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
101 lines (100 loc) • 2.81 kB
JavaScript
import { __assign } from "tslib";
import styles from '../styles';
import { theme } from '../utils';
var rewards = {
rewards: {
classes: '',
props: {},
style: {
alignItems: 'stretch',
// flexGrow: 1,
// gap: theme.spacing.padding.medium,
overflow: 'hidden',
width: '100%'
}
},
rewards__header: {
classes: '',
props: {},
style: {
alignItems: 'center',
flexGrow: 0,
flexShrink: 0,
gap: theme.spacing.padding.small,
justifyContent: 'center',
textAlign: 'center'
}
},
rewards__title: {
classes: '',
props: {
as: 'h2',
text: 'Available Rewards'
},
style: __assign(__assign({}, styles.textHeading), { fontSize: theme.fontSizes.xxlarge })
},
rewards__subtitle: {
classes: '',
props: {
as: 'p',
text: 'Tap on a reward to apply or remove.'
},
style: __assign(__assign({}, styles.textBody), { fontSize: theme.fontSizes.medium })
},
rewards__items: {
classes: 'hide-scrollbar',
props: {},
style: {
alignItems: 'stretch',
flexGrow: 1,
justifyContent: 'flex-start',
overflow: 'scroll'
// padding: theme.spacing.padding.large
}
},
rewards__itemsContainer: {
classes: '',
props: {},
style: {
alignItems: 'flex-start',
flexDirection: 'row',
flexGrow: 0,
flexWrap: 'wrap',
// gap: theme.spacing.padding.large,
justifyContent: 'flex-start',
padding: theme.spacing.padding.medium
}
},
rewards__item: {
classes: '',
props: {},
style: {
alignItems: 'stretch',
width: '50%',
flexShrink: 0,
padding: theme.spacing.padding.small
// flexBasis: 400,
// flexGrow: 1,
// flexShrink: 1
}
},
rewards__footer: {
classes: '',
props: {},
style: {
alignItems: 'center',
flexBasis: 200,
flexDirection: 'row',
flexGrow: 0,
flexShrink: 0,
justifyContent: 'center',
textAlign: 'center'
}
},
rewards__cancel: {
classes: '',
props: { text: 'Add To Order' },
style: __assign(__assign({}, styles.buttonPrimary), { flexBasis: 400, flexGrow: 0, flexShrink: 0, borderRadius: 64, fontSize: theme.fontSizes.large, paddingBottom: 20, paddingLeft: 30, paddingRight: 30, paddingTop: 20 })
}
};
export default rewards;