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

128 lines 4.74 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.QUICK_BUTTON_STYLES = void 0; const state_1 = require("../../../../components/quickButton/types/state"); const borders_1 = require("../../foundations/borders"); const colors_1 = require("../../foundations/colors"); const sizes_1 = require("../../foundations/sizes"); const spacings_1 = require("../../foundations/spacings"); const typography_1 = require("../../foundations/typography"); const variants_1 = require("../text/variants"); const variants_2 = require("./variants"); const QUICK_BUTTON_TOKENS = { 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_1.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_1.COLORS.ACCENT.color_accent_default_icon_50, }, button: { padding: spacings_1.SPACINGS.spacing_250, display: 'flex', align_items: 'center', justify_content: 'center', }, }; const actionButtonBorder = { border_width: borders_1.BORDERS.border_50, border_style: 'solid', border_color: colors_1.COLORS.ACCENT.color_accent_default_border_50, }; exports.QUICK_BUTTON_STYLES = { [variants_2.QuickButtonVariantType.PRIMARY]: { [state_1.QuickButtonState.DEFAULT]: { ...QUICK_BUTTON_TOKENS, button: { ...QUICK_BUTTON_TOKENS.button, background_color: colors_1.COLORS.ACCENT.color_accent_default_bg_100, }, }, [state_1.QuickButtonState.HOVER]: { ...QUICK_BUTTON_TOKENS, button: { ...QUICK_BUTTON_TOKENS.button, background_color: colors_1.COLORS.ACCENT.color_accent_hover_bg_50, }, }, [state_1.QuickButtonState.PRESSED]: { ...QUICK_BUTTON_TOKENS, icon: { ...QUICK_BUTTON_TOKENS.icon, color: colors_1.COLORS.ACCENT.color_accent_default_icon_150, }, button: { ...QUICK_BUTTON_TOKENS.button, background_color: colors_1.COLORS.ACCENT.color_accent_pressed_bg_50, }, }, [state_1.QuickButtonState.DISABLED]: { ...QUICK_BUTTON_TOKENS, icon: { ...QUICK_BUTTON_TOKENS.icon, color: colors_1.COLORS.NEUTRAL.color_neutral_icon_100, }, button: { ...QUICK_BUTTON_TOKENS.button, background_color: colors_1.COLORS.DISABLED.color_accentDisabled_bg_150, }, }, }, [variants_2.QuickButtonVariantType.SECONDARY]: { [state_1.QuickButtonState.DEFAULT]: { ...QUICK_BUTTON_TOKENS, button: { ...QUICK_BUTTON_TOKENS.button, ...actionButtonBorder, background_color: colors_1.COLORS.ACCENT.color_accent_default_bg_150, }, }, [state_1.QuickButtonState.HOVER]: { ...QUICK_BUTTON_TOKENS, icon: { ...QUICK_BUTTON_TOKENS.icon, color: colors_1.COLORS.ACCENT.color_accent_hover_icon_150, }, button: { ...QUICK_BUTTON_TOKENS.button, ...actionButtonBorder, background_color: colors_1.COLORS.ACCENT.color_accent_hover_bg_100, }, }, [state_1.QuickButtonState.PRESSED]: { ...QUICK_BUTTON_TOKENS, icon: { ...QUICK_BUTTON_TOKENS.icon, color: colors_1.COLORS.PRESSED.color_accent_pressed_icon_150, }, button: { ...QUICK_BUTTON_TOKENS, ...actionButtonBorder, background_color: colors_1.COLORS.PRESSED.color_accent_pressed_bg_100, }, }, [state_1.QuickButtonState.DISABLED]: { ...QUICK_BUTTON_TOKENS, icon: { ...QUICK_BUTTON_TOKENS.icon, color: colors_1.COLORS.NEUTRAL.color_neutral_icon_100, }, button: { ...QUICK_BUTTON_TOKENS.button, border: '0', background_color: colors_1.COLORS.DISABLED.color_accentDisabled_bg_150, }, }, }, }; //# sourceMappingURL=styles.js.map