UNPKG

@kubit-ui-web/react-components

Version:

Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience

107 lines (106 loc) 4.11 kB
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || (function () { var ownKeys = function(o) { ownKeys = Object.getOwnPropertyNames || function (o) { var ar = []; for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; return ar; }; return ownKeys(o); }; return function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); __setModuleDefault(result, mod); return result; }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.FooterStyled = exports.FooterWrapperStyled = exports.ContentContainerStyled = exports.DescriptionTextStyled = exports.TitleTextStyled = exports.TitleAndDescriptionStyled = exports.ConfirmationMessageStyled = void 0; const styled_components_1 = __importStar(require("styled-components")); const getStyles_1 = require("../../utils/getStyles/getStyles"); const confirmationMessage_1 = require("./types/confirmationMessage"); const flexColumnMixin = (0, styled_components_1.css) ` display: flex; flex-direction: column; `; exports.ConfirmationMessageStyled = styled_components_1.default.div ` width: 100%; height: 100%; ${flexColumnMixin} align-items: center; justify-content: center; ${props => (0, getStyles_1.getStyles)(props.styles?.container)} `; exports.TitleAndDescriptionStyled = styled_components_1.default.div ` ${flexColumnMixin} align-self: ${({ align }) => align}; ${props => (0, getStyles_1.getStyles)(props.styles?.titleAndDescriptionContainer)} `; exports.TitleTextStyled = styled_components_1.default.div ` ${flexColumnMixin} align-items: center; ${({ align }) => align === confirmationMessage_1.ALIGN_TYPE.CENTER ? (0, styled_components_1.css) ` flex-direction: column; ` : (0, styled_components_1.css) ` flex-direction: row; justify-content: ${align}; `}; ${props => (0, getStyles_1.getStyles)(props.styles?.titleContainer)} `; exports.DescriptionTextStyled = styled_components_1.default.div ` ${flexColumnMixin} white-space: pre-line; ${({ align }) => align === confirmationMessage_1.ALIGN_TYPE.CENTER ? (0, styled_components_1.css) ` align-items: ${align}; text-align: ${align}; ` : (0, styled_components_1.css) ` align-items: ${align}; `}; ${props => (0, getStyles_1.getStyles)(props.styles?.descriptionContainer)} `; exports.ContentContainerStyled = styled_components_1.default.div ` width: 100%; display: flex; justify-content: ${({ align }) => align}; ${props => (0, getStyles_1.getStyles)(props.styles?.content)} `; exports.FooterWrapperStyled = styled_components_1.default.div ` width: 100%; ${({ align }) => align === confirmationMessage_1.ALIGN_TYPE.CENTER ? (0, styled_components_1.css) ` justify-content: center; ` : (0, styled_components_1.css) ` width: 100%; `}; `; exports.FooterStyled = styled_components_1.default.div.withConfig({ shouldForwardProp: () => true, }) ` bottom: 0; width: 100%; ${props => (0, getStyles_1.getStyles)(props.customFooterStyles?.footer)} `; //# sourceMappingURL=confirmationMessage.styled.js.map