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

14 lines 596 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getFontSize = void 0; const inputTheme_1 = require("../types/inputTheme"); const getFontSize = (state, type, component, styles, placeholder) => { if (styles?.[state]?.label?.type !== inputTheme_1.LABEL_TYPE.STANDARD && placeholder && state !== inputTheme_1.InputState.ACTIVE) { return styles?.[inputTheme_1.InputState.ACTIVE]?.[component]?.[type]; } return styles?.[state]?.[component]?.[type]; }; exports.getFontSize = getFontSize; //# sourceMappingURL=fontSize.utils.js.map