UNPKG

@razorpay/blade

Version:

The Design System that powers Razorpay

16 lines (13 loc) 955 B
import { listItemCodeSize } from './listTokens.js'; import { useListContext } from './ListContext.js'; import '../Typography/Heading/Heading.js'; import '../Typography/Text/Text.js'; import { Code } from '../Typography/Code/Code.js'; import '../Typography/Display/Display.js'; import '@babel/runtime/helpers/defineProperty'; import { MetaConstants } from '../../utils/metaAttribute/metaConstants.js'; import { assignWithoutSideEffects } from '../../utils/assignWithoutSideEffects/assignWithoutSideEffects.js'; import { jsx } from 'react/jsx-runtime'; var _ListItemCode=function _ListItemCode(_ref){var children=_ref.children,testID=_ref.testID;var _useListContext=useListContext(),size=_useListContext.size;return jsx(Code,{size:listItemCodeSize[size],children:children,testID:testID});};var ListItemCode=assignWithoutSideEffects(_ListItemCode,{componentId:MetaConstants.ListItemCode}); export { ListItemCode }; //# sourceMappingURL=ListItemCode.js.map