From f41090465a54d43b60c988fe0cef3022a53cd7d2 Mon Sep 17 00:00:00 2001 From: AlexKVal Date: Sun, 26 Jul 2015 19:19:01 +0300 Subject: [PATCH] [added] 'xs, sm, md, lg' values for 'bsSize' --- src/BootstrapMixin.js | 2 +- src/styleMaps.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/BootstrapMixin.js b/src/BootstrapMixin.js index 17c8e81d2b..98c05bd068 100644 --- a/src/BootstrapMixin.js +++ b/src/BootstrapMixin.js @@ -16,7 +16,7 @@ const BootstrapMixin = { bsStyle: React.PropTypes.oneOf(styleMaps.STYLES), /** * Size variants - * @type {("xsmall"|"small"|"medium"|"large")} + * @type {("xsmall"|"small"|"medium"|"large"|"xs"|"sm"|"md"|"lg")} */ bsSize: CustomPropTypes.keyOf(styleMaps.SIZES) }, diff --git a/src/styleMaps.js b/src/styleMaps.js index 49ad80f3f0..b64252732a 100644 --- a/src/styleMaps.js +++ b/src/styleMaps.js @@ -40,7 +40,11 @@ const styleMaps = { 'large': 'lg', 'medium': 'md', 'small': 'sm', - 'xsmall': 'xs' + 'xsmall': 'xs', + 'lg': 'lg', + 'md': 'md', + 'sm': 'sm', + 'xs': 'xs' }, GLYPHS: [ 'asterisk',