@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
97 lines • 5.12 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getIconHighlightedStyles = void 0;
const size_1 = require("../../../../../components/iconHighlighted/types/size");
const borders_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/borders");
const sizes_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/sizes");
const spacings_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/spacings");
const wireframe_1 = require("../../../../../designSystem/kubitWireframe/utils/wireframe");
const variants_1 = require("./variants");
const getIconHighlightedStyles = (COLORS) => {
return {
[variants_1.IconHighlightedVariantType.ROUND]: {
[size_1.IconHighlightedSizeType.EXTRA_SMALL]: {
container: {
width: sizes_1.SIZES.size_250,
height: sizes_1.SIZES.size_250,
border_radius: borders_1.RADIUS.radius_100,
border_color: COLORS.NEUTRAL.color_neutral_border_50,
border_style: 'solid',
border_width: borders_1.BORDERS.border_50,
...(0, wireframe_1.transformShadow)(borders_1.RADIUS.radius_300),
...(0, wireframe_1.shadowAfterStyles)(borders_1.RADIUS.radius_300, COLORS.BRAND.color_brand_bg_50, spacings_1.SPACINGS.spacing_50),
},
icon: {
width: sizes_1.SIZES.size_150,
height: sizes_1.SIZES.size_150,
},
},
[size_1.IconHighlightedSizeType.SMALL]: {
container: {
width: sizes_1.SIZES.size_300,
height: sizes_1.SIZES.size_300,
border_radius: borders_1.RADIUS.radius_100,
border_color: COLORS.NEUTRAL.color_neutral_border_50,
border_style: 'solid',
border_width: borders_1.BORDERS.border_50,
...(0, wireframe_1.transformShadow)(borders_1.RADIUS.radius_300),
...(0, wireframe_1.shadowAfterStyles)(borders_1.RADIUS.radius_300, COLORS.BRAND.color_brand_bg_50, spacings_1.SPACINGS.spacing_50),
},
icon: {
width: sizes_1.SIZES.size_250,
height: sizes_1.SIZES.size_250,
},
},
[size_1.IconHighlightedSizeType.MEDIUM]: {
container: {
width: sizes_1.SIZES.size_400,
height: sizes_1.SIZES.size_400,
border_radius: borders_1.RADIUS.radius_100,
border_color: COLORS.NEUTRAL.color_neutral_border_50,
border_style: 'solid',
border_width: borders_1.BORDERS.border_50,
...(0, wireframe_1.transformShadow)(borders_1.RADIUS.radius_300),
...(0, wireframe_1.shadowAfterStyles)(borders_1.RADIUS.radius_300, COLORS.BRAND.color_brand_bg_50, spacings_1.SPACINGS.spacing_50),
},
icon: {
width: sizes_1.SIZES.size_300,
height: sizes_1.SIZES.size_300,
},
},
[size_1.IconHighlightedSizeType.LARGE]: {
container: {
width: sizes_1.SIZES.size_450,
height: sizes_1.SIZES.size_450,
border_radius: borders_1.RADIUS.radius_100,
border_color: COLORS.NEUTRAL.color_neutral_border_50,
border_style: 'solid',
border_width: borders_1.BORDERS.border_50,
...(0, wireframe_1.transformShadow)(borders_1.RADIUS.radius_300),
...(0, wireframe_1.shadowAfterStyles)(borders_1.RADIUS.radius_300, COLORS.BRAND.color_brand_bg_50, spacings_1.SPACINGS.spacing_50),
},
icon: {
width: sizes_1.SIZES.size_300,
height: sizes_1.SIZES.size_300,
},
},
[size_1.IconHighlightedSizeType.EXTRA_LARGE]: {
container: {
width: sizes_1.SIZES.size_500,
height: sizes_1.SIZES.size_500,
border_radius: borders_1.RADIUS.radius_100,
border_color: COLORS.NEUTRAL.color_neutral_border_50,
border_style: 'solid',
border_width: borders_1.BORDERS.border_50,
...(0, wireframe_1.transformShadow)(borders_1.RADIUS.radius_300),
...(0, wireframe_1.shadowAfterStyles)(borders_1.RADIUS.radius_300, COLORS.BRAND.color_brand_bg_50, spacings_1.SPACINGS.spacing_50),
},
icon: {
width: sizes_1.SIZES.size_300,
height: sizes_1.SIZES.size_300,
},
},
},
};
};
exports.getIconHighlightedStyles = getIconHighlightedStyles;
//# sourceMappingURL=styles.js.map