UNPKG

@botonic/react

Version:

Build Chatbots using React

40 lines (38 loc) 3.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StyledUrlImage = exports.StyledButton = void 0; const tslib_1 = require("tslib"); const styled_components_1 = tslib_1.__importDefault(require("styled-components")); exports.StyledButton = styled_components_1.default.button ` display: flex; justify-content: center; align-content: center; gap: 6px; cursor: pointer; width: ${props => { var _a, _b; return (_b = (_a = props.theme.button) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.width; }}; max-height: ${props => { var _a, _b; return (_b = (_a = props.theme.button) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.maxHeight; }}; height: ${props => { var _a, _b; return (_b = (_a = props.theme.button) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.height; }}; font-family: ${props => { var _a; return (_a = props.theme.style) === null || _a === void 0 ? void 0 : _a.fontFamily; }}; font-size: ${props => { var _a, _b; return (_b = (_a = props.theme.button) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.fontSize; }}; font-weight: ${props => { var _a, _b; return (_b = (_a = props.theme.button) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.fontWeight; }}; background: ${props => { var _a, _b; return (_b = (_a = props.theme.button) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.background; }}; color: ${props => { var _a, _b; return (_b = (_a = props.theme.button) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.color; }}; outline: ${props => { var _a, _b; return (_b = (_a = props.theme.button) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.outline; }}; border: ${props => { var _a, _b; return (_b = (_a = props.theme.button) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.border; }}; border-radius: ${props => { var _a, _b; return (_b = (_a = props.theme.button) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.borderRadius; }}; padding: ${props => { var _a, _b; return (_b = (_a = props.theme.button) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.padding; }}; overflow: ${props => { var _a, _b; return (_b = (_a = props.theme.button) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.overflow; }}; &:hover { background: ${props => { var _a; return (_a = props.theme.button) === null || _a === void 0 ? void 0 : _a.hoverBackground; }}; color: ${props => { var _a; return (_a = props.theme.button) === null || _a === void 0 ? void 0 : _a.hoverTextColor; }}; } &:disabled { opacity: ${props => { var _a, _b; return (_b = (_a = props.theme.button) === null || _a === void 0 ? void 0 : _a.disabledstyle) === null || _b === void 0 ? void 0 : _b.opacity; }}; cursor: ${props => { var _a, _b; return (_b = (_a = props.theme.button) === null || _a === void 0 ? void 0 : _a.disabledstyle) === null || _b === void 0 ? void 0 : _b.cursor; }}; pointer-events: ${props => { var _a, _b; return (_b = (_a = props.theme.button) === null || _a === void 0 ? void 0 : _a.disabledstyle) === null || _b === void 0 ? void 0 : _b.pointerEvents; }}; } `; exports.StyledUrlImage = styled_components_1.default.img ` width: 20px; `; //# sourceMappingURL=styles.js.map