@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.87 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BACK_TO_TOP_STYLES = void 0;
const state_1 = require("../../../../components/backToTop/types/state");
const breakpoints_1 = require("../../../../types/breakpoints/breakpoints");
//constants
const colors_1 = require("../../foundations/colors");
const shadow_1 = require("../../foundations/shadow");
const sizes_1 = require("../../foundations/sizes");
const spacings_1 = require("../../foundations/spacings");
const zIndex_1 = require("../../foundations/zIndex");
const variants_1 = require("./variants");
exports.BACK_TO_TOP_STYLES = {
[variants_1.BackToTopVariantsType.DEFAULT]: {
[state_1.BackToTopStateType.DEFAULT]: {
container: {
box_shadow: shadow_1.SHADOW.shadow_10,
background_color: colors_1.COLORS.ACCENT.color_accent_default_bg_100,
padding: spacings_1.SPACINGS.spacing_250,
right: spacings_1.SPACINGS.spacing_450,
z_index: zIndex_1.Z_INDEX.FLOATING,
[breakpoints_1.DeviceBreakpointsType.MOBILE]: {
right: spacings_1.SPACINGS.spacing_300,
},
},
icon: {
width: sizes_1.SIZES.size_300,
height: sizes_1.SIZES.size_300,
color: colors_1.COLORS.ACCENT.color_accent_default_icon_50,
},
},
[state_1.BackToTopStateType.HOVER]: {
container: {
background_color: colors_1.COLORS.HOVER.color_accent_hover_bg_50,
padding: spacings_1.SPACINGS.spacing_250,
right: spacings_1.SPACINGS.spacing_450,
z_index: zIndex_1.Z_INDEX.FLOATING,
[breakpoints_1.DeviceBreakpointsType.MOBILE]: {
right: spacings_1.SPACINGS.spacing_300,
},
},
icon: {
width: sizes_1.SIZES.size_300,
height: sizes_1.SIZES.size_300,
color: colors_1.COLORS.ACCENT.color_accent_default_icon_50,
},
},
[state_1.BackToTopStateType.PRESSED]: {
container: {
background_color: colors_1.COLORS.PRESSED.color_accent_pressed_bg_50,
padding: spacings_1.SPACINGS.spacing_250,
right: spacings_1.SPACINGS.spacing_450,
z_index: zIndex_1.Z_INDEX.FLOATING,
[breakpoints_1.DeviceBreakpointsType.MOBILE]: {
right: spacings_1.SPACINGS.spacing_300,
},
},
icon: {
width: sizes_1.SIZES.size_300,
height: sizes_1.SIZES.size_300,
color: colors_1.COLORS.PRESSED.color_accent_pressed_icon_250,
},
},
},
};
//# sourceMappingURL=styles.js.map