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

61 lines 2.64 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getQuickButtonStyles = void 0; const state_1 = require("../../../../../components/quickButton/types/state"); 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 typography_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/typography"); const wireframe_1 = require("../../../utils/wireframe"); const variants_1 = require("../text/variants"); const variants_2 = require("./variants"); const QUICK_BUTTON_TOKENS = (COLORS) => ({ container: { display: 'flex', flex_direction: 'column', align_items: 'center', gap: spacings_1.SPACINGS.spacing_100, }, label: { font_family: variants_1.TextVariantType.PARAGRAPH_CAPTION_EXTENDED, font_weight: typography_1.FONT_WEIGHT.font_weight_400, color: COLORS.ACCENT.color_accent_default_font_50, text_align: typography_1.TEXT_ALIGN.center, }, icon: { width: sizes_1.SIZES.size_200, height: sizes_1.SIZES.size_200, color: COLORS.ACCENT.color_accent_default_icon_50, }, button: { border_radius: borders_1.RADIUS.radius_250, padding: spacings_1.SPACINGS.spacing_300, display: 'flex', align_items: 'center', justify_content: 'center', border: `${borders_1.BORDERS.border_100} solid ${COLORS.NEUTRAL.color_neutral_border_50}`, background_color: COLORS.NEUTRAL.color_neutral_bg_250, ...(0, wireframe_1.transformShadow)(borders_1.RADIUS.radius_250), ...(0, wireframe_1.shadowAfterStyles)(borders_1.RADIUS.radius_250, COLORS.BRAND.color_brand_bg_50, spacings_1.SPACINGS.spacing_50), }, }); const getQuickButtonStyles = (COLORS) => { return { [variants_2.QuickButtonVariantType.PRIMARY]: { [state_1.QuickButtonState.DEFAULT]: { ...QUICK_BUTTON_TOKENS(COLORS), }, [state_1.QuickButtonState.HOVER]: { ...QUICK_BUTTON_TOKENS(COLORS), }, [state_1.QuickButtonState.PRESSED]: { ...QUICK_BUTTON_TOKENS(COLORS), }, [state_1.QuickButtonState.DISABLED]: { ...QUICK_BUTTON_TOKENS(COLORS), }, }, }; }; exports.getQuickButtonStyles = getQuickButtonStyles; //# sourceMappingURL=styles.js.map