@razorpay/blade
Version:
The Design System that powers Razorpay
10 lines (7 loc) • 665 B
JavaScript
import { maxWidth } from './counterTokens.js';
import getIn from '../../utils/lodashButBetter/get.js';
import { makeSize } from '../../utils/makeSize/makeSize.js';
import { makeBorderSize } from '../../utils/makeBorderSize/makeBorderSize.js';
var getStyledCounterStyles=function getStyledCounterStyles(_ref){var theme=_ref.theme,platform=_ref.platform,backgroundColor=_ref.backgroundColor;return {backgroundColor:getIn(theme.colors,backgroundColor),borderRadius:makeBorderSize(theme.border.radius.max),maxWidth:makeSize(maxWidth[platform]),display:'flex',flexWrap:'nowrap'};};
export { getStyledCounterStyles };
//# sourceMappingURL=getStyledCounterStyles.js.map