@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
78 lines (77 loc) • 2.25 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var styles_1 = tslib_1.__importDefault(require("../styles"));
var theme_1 = require("../utils/theme");
var header = {
header: {
classes: '',
props: {},
style: {
alignItems: 'center',
borderBottomColor: theme_1.theme.colors.border.primary,
borderBottomWidth: 1,
borderLeftWidth: 0,
borderRightWidth: 0,
borderTopWidth: 0,
borderStyle: 'solid',
flexBasis: 'auto',
flexDirection: 'row',
flexGrow: 0,
flexShrink: 0,
height: 60,
justifyContent: 'space-between',
paddingLeft: theme_1.theme.spacing.padding.medium,
paddingRight: theme_1.theme.spacing.padding.medium
}
},
header__back: {
classes: '',
props: { text: 'Back' },
style: tslib_1.__assign(tslib_1.__assign({}, styles_1.default.buttonPrimary), { flexBasis: 1, minHeight: 38, paddingBottom: 0, paddingTop: 0 })
},
header__center: {
classes: '',
props: {},
style: {
alignItems: 'center',
flexGrow: 1,
flexShrink: 1
}
},
header__left: {
classes: '',
props: {},
style: {
flexBasis: 150,
flexGrow: 0,
flexShrink: 0
}
},
header__logo: {
classes: '',
props: {
src: 'https://s3.amazonaws.com/betterboh/u/img/staging/2/1712337883_open-tender-logo-confluence.png',
alt: 'Checkmate Logo'
},
style: {
width: 160
}
},
header__open: {
classes: '',
props: {},
style: tslib_1.__assign(tslib_1.__assign({}, styles_1.default.buttonPrimary), { borderRadius: 3, flexBasis: 1, gap: 0, paddingBottom: 6, paddingLeft: 6, paddingRight: 6, paddingTop: 6 })
},
header__right: {
classes: '',
props: {},
style: {
alignItems: 'flex-end',
flexBasis: 150,
flexGrow: 0,
flexShrink: 0
}
}
};
exports.default = header;