@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
69 lines • 2.56 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.INPUT_DATE_STYLES = void 0;
// types
const inputTheme_1 = require("../../../../components/input/types/inputTheme");
const breakpoints_1 = require("../../../../types/breakpoints/breakpoints");
const colors_1 = require("../../foundations/colors");
const variants_1 = require("../actionBottomSheet/variants");
const variants_2 = require("../popover/variants");
const variants_3 = require("./variants");
inputTheme_1.InputState;
const commonProps = {
inputVariant: variants_3.InputDateVariantType.DEFAULT,
helpMessage: {
position: inputTheme_1.InputHelpMessagePosition.TOP,
},
actionBottomSheetVariant: variants_1.ActionBottomSheetVariantType.DEFAULT,
popoverVariant: {
[breakpoints_1.DeviceBreakpointsType.DESKTOP]: variants_2.PopoverVariantType.INPUT_DROPDOWN_LEVEL_ONE,
[breakpoints_1.DeviceBreakpointsType.TABLET]: variants_2.PopoverVariantType.INPUT_DROPDOWN_LEVEL_ONE,
[breakpoints_1.DeviceBreakpointsType.MOBILE]: variants_2.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,
},
};
exports.INPUT_DATE_STYLES = {
[variants_3.InputDateVariantType.DEFAULT]: {
[inputTheme_1.InputState.EMPTY]: {
...commonProps,
inputIcon: {
color: colors_1.COLORS.ACCENT.color_accent_default_icon_100,
},
},
[inputTheme_1.InputState.ACTIVE]: {
...commonProps,
},
[inputTheme_1.InputState.FILLED]: {
...commonProps,
inputIcon: {
color: colors_1.COLORS.ACCENT.color_accent_default_icon_100,
},
},
[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,
},
},
};
//# sourceMappingURL=styles.js.map