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

64 lines 2.45 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getInputDateStyles = void 0; const inputTheme_1 = require("../../../../../components/input/types/inputTheme"); const breakpoints_1 = require("../../../../../types/breakpoints/breakpoints"); const variants_1 = require("../popover/variants"); const variants_2 = require("../variants"); const variants_3 = require("./variants"); inputTheme_1.InputState; const commonProps = { inputVariant: variants_3.InputDateVariantType.DEFAULT, helpMessage: { position: inputTheme_1.InputHelpMessagePosition.TOP, }, actionBottomSheetVariant: variants_2.ActionBottomSheetVariantType.DEFAULT, popoverVariant: { [breakpoints_1.DeviceBreakpointsType.DESKTOP]: variants_1.PopoverVariantType.INPUT_DROPDOWN_LEVEL_ONE, [breakpoints_1.DeviceBreakpointsType.TABLET]: variants_1.PopoverVariantType.INPUT_DROPDOWN_LEVEL_ONE, [breakpoints_1.DeviceBreakpointsType.MOBILE]: variants_1.PopoverVariantType.INPUT_DROPDOWN_LEVEL_ONE, }, useActionBottomSheet: { [breakpoints_1.DeviceBreakpointsType.DESKTOP]: false, [breakpoints_1.DeviceBreakpointsType.TABLET]: true, [breakpoints_1.DeviceBreakpointsType.MOBILE]: true, }, label: { type: inputTheme_1.LABEL_TYPE.STANDARD, }, }; const getInputDateStyles = (COLORS) => { return { [variants_3.InputDateVariantType.DEFAULT]: { [inputTheme_1.InputState.EMPTY]: { ...commonProps, }, [inputTheme_1.InputState.ACTIVE]: { ...commonProps, }, [inputTheme_1.InputState.FILLED]: { ...commonProps, }, [inputTheme_1.InputState.ERROR_EMPTY]: { ...commonProps, }, [inputTheme_1.InputState.ERROR_FILLED]: { ...commonProps, }, [inputTheme_1.InputState.ERROR_ACTIVE]: { ...commonProps, }, [inputTheme_1.InputState.DISABLED_EMPTY]: { ...commonProps, }, [inputTheme_1.InputState.DISABLED_FILLED]: { ...commonProps, }, [inputTheme_1.InputState.DISABLED_FILLED_WITH_INFO]: { ...commonProps, }, }, }; }; exports.getInputDateStyles = getInputDateStyles; //# sourceMappingURL=styles.js.map