@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
87 lines • 3.87 kB
JavaScript
;
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.NavigationCardLinesTextStyled = exports.NavigationCardTagContainer = exports.NavigationCardDescriptionContainerStyled = exports.NavigationCardDecorativeContainer = exports.NavigationCardRightContentStyled = exports.NavigationCardContentStyled = exports.NavigationCardLeftContentStyled = exports.NavigationCardInfoContentStyled = exports.NavigationCardStyled = void 0;
const styled_components_1 = __importStar(require("styled-components"));
const getStyles_1 = require("../../utils/getStyles/getStyles");
exports.NavigationCardStyled = styled_components_1.default.a.withConfig({
shouldForwardProp: () => true,
}) `
text-decoration: none;
${({ styles }) => (0, getStyles_1.getStyles)(styles?.container)};
`;
exports.NavigationCardInfoContentStyled = styled_components_1.default.div `
display: inline-flex;
flex-direction: row;
flex-grow: 1;
justify-content: space-between;
${({ theme: { MEDIA_QUERIES: { onlyMobile }, }, isExpanded, }) => (0, styled_components_1.css) `
${onlyMobile} {
flex-direction: ${isExpanded ? 'column' : 'row'};
}
`}
`;
exports.NavigationCardLeftContentStyled = styled_components_1.default.div `
display: flex;
align-items: center;
max-width: ${({ isExpanded }) => (isExpanded ? '90%' : '100%')};
width: auto;
text-align: left;
`;
exports.NavigationCardContentStyled = styled_components_1.default.div `
${({ styles }) => (0, getStyles_1.getStyles)(styles?.contentContainer)};
`;
exports.NavigationCardRightContentStyled = styled_components_1.default.div `
${({ styles }) => (0, getStyles_1.getStyles)(styles?.rightContentContainer)};
`;
exports.NavigationCardDecorativeContainer = styled_components_1.default.div `
${({ styles }) => (0, getStyles_1.getStyles)(styles?.decorativeElementContainer)};
margin-right: ${({ marginRight }) => marginRight};
`;
exports.NavigationCardDescriptionContainerStyled = styled_components_1.default.div `
${({ styles }) => (0, getStyles_1.getStyles)(styles?.descriptionContainer)};
`;
exports.NavigationCardTagContainer = styled_components_1.default.div `
${({ styles }) => (0, getStyles_1.getStyles)(styles?.tagContainer)};
`;
exports.NavigationCardLinesTextStyled = styled_components_1.default.div `
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: ${({ lines }) => lines};
overflow: hidden;
display: flex;
align-items: center;
`;
//# sourceMappingURL=navigationCard.styled.js.map