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

100 lines 3.42 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PAGINATION_STYLES = void 0; const state_1 = require("../../../../components/pagination/types/state"); const breakpoints_1 = require("../../../../types/breakpoints/breakpoints"); 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 commonPageContainer = { display: 'flex', align_items: 'center', justify_content: 'center', height: sizes_1.SIZES.size_300, width: sizes_1.SIZES.size_300, clickable: { cursor: 'pointer', }, }; const commonProps = { container: { display: 'flex', align_items: 'center', justify_content: 'center', height: 'auto', width: 'auto', }, pagesContainer: { display: 'flex', align_items: 'center', justify_content: 'center', height: 'auto', width: 'auto', column_gap: spacings_1.SPACINGS.spacing_150, margin: `0 ${spacings_1.SPACINGS.spacing_300}`, }, paginationLeftArrowIcon: { width: sizes_1.SIZES.size_300, height: sizes_1.SIZES.size_300, color: colors_1.COLORS.BRAND.color_brand_bg_50, disabled: { width: sizes_1.SIZES.size_300, height: sizes_1.SIZES.size_300, color: colors_1.COLORS.DISABLED.color_accentDisabled_icon_50, }, }, paginationRightArrowIcon: { width: sizes_1.SIZES.size_300, height: sizes_1.SIZES.size_300, color: colors_1.COLORS.BRAND.color_brand_bg_50, disabled: { width: sizes_1.SIZES.size_300, height: sizes_1.SIZES.size_300, color: colors_1.COLORS.DISABLED.color_accentDisabled_icon_50, }, }, paginationCountersNumber: { [breakpoints_1.DeviceBreakpointsType.LARGE_DESKTOP]: { counters: 5, }, [breakpoints_1.DeviceBreakpointsType.DESKTOP]: { counters: 5, }, [breakpoints_1.DeviceBreakpointsType.TABLET]: { counters: 5, }, [breakpoints_1.DeviceBreakpointsType.MOBILE]: { counters: 4, }, }, }; exports.PAGINATION_STYLES = { [variants_2.PaginationVariantsTheme.DEFAULT]: { ...commonProps, [state_1.PaginationState.DEFAULT]: { pageContainer: { ...commonPageContainer, }, page: { font_variant: variants_1.TextVariantType.PARAGRAPH_SMALL_EXTENDED, color: colors_1.COLORS.NEUTRAL.color_neutral_font_50, font_weight: typography_1.FONT_WEIGHT.font_weight_400, }, }, [state_1.PaginationState.SELECTED]: { pageContainer: { ...commonPageContainer, background_color: colors_1.COLORS.SECONDARY.color_secondary_bg_100, }, page: { font_variant: variants_1.TextVariantType.PARAGRAPH_SMALL_EXTENDED, color: colors_1.COLORS.NEUTRAL.color_neutral_font_250, font_weight: 700, }, }, }, }; //# sourceMappingURL=styles.js.map