@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
115 lines (114 loc) • 3.01 kB
JavaScript
import { __assign } from "tslib";
import styles from '../styles';
import { theme } from '../utils';
var orderCard = {
orderCard: {
classes: '',
props: {},
style: {
alignItems: 'stretch',
flexGrow: 1
}
},
orderCard__container: {
classes: '',
props: {},
style: {
alignItems: 'stretch',
flexGrow: 1,
gap: theme.spacing.padding.large,
padding: theme.spacing.padding.medium
}
},
orderCard__header: {
classes: '',
props: {},
style: {
alignItems: 'stretch',
gap: 5
}
},
orderCard__orderNo: {
classes: '',
props: {
as: 'p'
},
style: __assign(__assign({}, styles.textBody), { fontSize: theme.fontSizes.xxsmall, lineHeight: 1 })
},
orderCard__title: {
classes: '',
props: {
as: 'h3'
},
style: __assign(__assign({}, styles.textHeading), { fontSize: theme.fontSizes.medium })
},
orderCard__subtitle: {
classes: '',
props: {
as: 'p'
},
style: __assign(__assign({}, styles.textBody), { fontSize: theme.fontSizes.xxsmall, lineHeight: 1 })
},
orderCard__content: {
classes: '',
props: {},
style: {
alignItems: 'stretch',
flexGrow: 1,
flexShrink: 1,
gap: 15,
overflow: 'hidden'
}
},
orderCard__itemNames: {
classes: '',
props: {
as: 'p'
},
style: __assign(__assign({}, styles.textBody), { fontSize: theme.fontSizes.xxsmall })
},
orderCard__itemImages: {
classes: 'hide-scrollbar',
props: {},
style: {
alignItems: 'center',
flexDirection: 'row',
gap: theme.spacing.padding.small,
justifyContent: 'flex-start',
overflow: 'scroll'
}
},
orderCard__itemImage: {
classes: '',
props: {},
style: {
aspectRatio: 1,
borderRadius: theme.spacing.borderRadius.xsmall,
flexBasis: '25%',
flexGrow: 0,
flexShrink: 0,
backgroundSize: 'cover'
}
},
orderCard__footer: {
classes: '',
props: {},
style: {
alignItems: 'center',
flexDirection: 'row',
gap: theme.spacing.padding.medium,
justifyContent: 'space-between'
}
},
orderCard__reorder: {
classes: '',
props: { text: 'Reorder' },
style: __assign(__assign({}, styles.buttonPrimary), { fontSize: theme.fontSizes.small })
},
orderCard__details: {
classes: '',
props: { text: 'Details' },
style: __assign(__assign({}, styles.buttonSecondary), { fontSize: theme.fontSizes.small })
}
};
export default orderCard;