@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
66 lines • 2.9 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getEmptyStateStyles = void 0;
const borders_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/borders");
const spacings_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/spacings");
const typography_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/typography");
const wireframe_1 = require("../../../../../designSystem/kubitWireframe/utils/wireframe");
// types
const variants_1 = require("../../../../kubit/components/text/variants");
const variants_2 = require("../variants");
const variants_3 = require("./variants");
const commonProps = COLORS => {
return {
buttonSize: variants_2.ButtonSizeType.MEDIUM,
container: {
padding: spacings_1.SPACINGS.spacing_400,
border_width: borders_1.BORDERS.border_50,
border_style: 'solid',
border_color: COLORS.SECONDARY.color_secondary_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),
background_color: COLORS.NEUTRAL.color_neutral_bg_250,
},
titleContainer: {
margin_bottom: spacings_1.SPACINGS.spacing_150,
text_align: typography_1.TEXT_ALIGN.center,
},
titleAndSubTitleContainer: {
padding: `${spacings_1.SPACINGS.spacing_400} 0`,
},
buttonLinkContainer: {
margin_top: spacings_1.SPACINGS.spacing_400,
border_top_width: borders_1.BORDERS.border_100,
border_top_style: 'solid',
border_top_color: COLORS.SECONDARY.color_secondary_border_50,
padding: `${spacings_1.SPACINGS.spacing_400}`,
gap: spacings_1.SPACINGS.spacing_400,
},
title: {
font_variant: variants_1.TextVariantType.HEADING_H4_EXPANDED,
color: COLORS.NEUTRAL.color_neutral_font_50,
font_weight: typography_1.FONT_WEIGHT.font_weight_500,
},
subtitle: {
color: COLORS.NEUTRAL.color_neutral_font_150,
font_variant: variants_1.TextVariantType.PARAGRAPH_SMALL_EXPANDED,
font_weight: typography_1.FONT_WEIGHT.font_weight_400,
text_align: typography_1.TEXT_ALIGN.center,
},
illustration: {
width: '4rem',
height: '4rem',
},
};
};
const getEmptyStateStyles = (COLORS) => {
return {
[variants_3.EmptyStateVariantType.DEFAULT]: {
[variants_3.EmptyStateStateType.DEFAULT]: {
...commonProps(COLORS),
},
},
};
};
exports.getEmptyStateStyles = getEmptyStateStyles;
//# sourceMappingURL=styles.js.map