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

119 lines 4.85 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getCarouselStyles = void 0; const state_1 = require("../../../../../components/carousel/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 variants_1 = require("./variants"); const buttonStyles = (COLORS) => { return { border_radius: borders_1.RADIUS.radius_250, 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, box_shadow: `${spacings_1.SPACINGS.spacing_100} ${spacings_1.SPACINGS.spacing_100} ${spacings_1.SPACINGS.spacing_0} ${COLORS.BRAND.color_brand_bg_50}`, }; }; const iconContainerTokens = { display: 'flex', align_items: 'center', position: 'relative', width: sizes_1.SIZES.size_250, height: sizes_1.SIZES.size_250, border_radius: borders_1.RADIUS.radius_250, }; const getCarouselStyles = (COLORS) => { return { [variants_1.CarouselVariantType.DEFAULT]: { container: { gap: spacings_1.SPACINGS.spacing_300, }, arrowAndCarouselContainer: { gap: spacings_1.SPACINGS.spacing_150, background_color: 'transparent', }, carouselContainer: { padding_top: spacings_1.SPACINGS.spacing_250, padding_bottom: spacings_1.SPACINGS.spacing_250, background_color: COLORS.NEUTRAL.color_neutral_bg_250, border: `${borders_1.BORDERS.border_100} solid ${COLORS.NEUTRAL.color_neutral_border_50}`, border_radius: borders_1.RADIUS.radius_150, box_shadow: `${spacings_1.SPACINGS.spacing_100} ${spacings_1.SPACINGS.spacing_100} ${spacings_1.SPACINGS.spacing_0} ${COLORS.BRAND.color_brand_bg_50}`, }, leftArrowIcon: { width: sizes_1.SIZES.size_250, height: sizes_1.SIZES.size_250, color: COLORS.ACCENT.color_accent_default_icon_50, }, rightArrowIcon: { width: sizes_1.SIZES.size_250, height: sizes_1.SIZES.size_250, color: COLORS.ACCENT.color_accent_default_icon_50, }, content: { gap: spacings_1.SPACINGS.spacing_150, }, [state_1.CarouselArrowStateType.DEFAULT]: { arrowLeftIconContainer: { ...iconContainerTokens, }, arrowLeftIconButtonContainer: { ...buttonStyles(COLORS), }, arrowRightIconContainer: { ...iconContainerTokens, }, arrowRightIconButtonContainer: { ...buttonStyles(COLORS), }, }, [state_1.CarouselArrowStateType.HOVER]: { arrowLeftIconContainer: { ...iconContainerTokens, }, arrowLeftIconButtonContainer: { ...buttonStyles(COLORS), }, arrowRightIconContainer: { ...iconContainerTokens, }, arrowRightIconButtonContainer: { ...buttonStyles(COLORS), }, }, [state_1.CarouselArrowStateType.PRESSED]: { arrowLeftIconContainer: { ...iconContainerTokens, }, arrowLeftIconButtonContainer: { ...buttonStyles(COLORS), }, arrowRightIconContainer: { ...iconContainerTokens, }, arrowRightIconButtonContainer: { ...buttonStyles(COLORS), }, }, [state_1.CarouselArrowStateType.DISABLED]: { arrowLeftIconContainer: { ...iconContainerTokens, }, arrowLeftIconButtonContainer: { ...buttonStyles(COLORS), }, arrowRightIconContainer: { ...iconContainerTokens, }, arrowRightIconButtonContainer: { ...buttonStyles(COLORS), }, }, }, }; }; exports.getCarouselStyles = getCarouselStyles; //# sourceMappingURL=styles.js.map