From 5eb8a4abe5a70bc72a1c7c8e3803875964b6b48d Mon Sep 17 00:00:00 2001 From: xidedix Date: Tue, 8 May 2018 16:19:40 +0200 Subject: [PATCH] refactor: buttons view --- src/views/Buttons/Buttons/Buttons.js | 877 +++++++++++---------------- 1 file changed, 355 insertions(+), 522 deletions(-) diff --git a/src/views/Buttons/Buttons/Buttons.js b/src/views/Buttons/Buttons/Buttons.js index 9fc90d4..5b45a81 100644 --- a/src/views/Buttons/Buttons/Buttons.js +++ b/src/views/Buttons/Buttons/Buttons.js @@ -10,100 +10,100 @@ class Buttons extends Component { Standard Buttons - - -

Normal

+ + + Normal - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + Active State - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + Disabled - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + +
@@ -114,97 +114,97 @@ class Buttons extends Component {

- Use .btn-outline-* class for outline buttons. + Use outline prop

- + Normal - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - - - Active State - - - - - - - - - - - - - - - - - - - - - - - - - - + - + + Active State + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Disabled - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - +
@@ -218,94 +218,94 @@ class Buttons extends Component { .btn-ghost-* class for ghost buttons.

- + Normal - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + - + Active State - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + - + Disabled - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + @@ -319,99 +319,99 @@ class Buttons extends Component { .btn-square class for square buttons.

- + Normal - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + Active State - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + Disabled - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + @@ -426,99 +426,99 @@ class Buttons extends Component { .btn-pill class for pill buttons.

- + Normal - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + Active State - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + Disabled - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + @@ -528,66 +528,65 @@ class Buttons extends Component { Sizes -

Fancy larger or smaller buttons? Add .btn-lg or .btn-sm for additional sizes.

- - - Small add - .btn-sm +

Fancy larger or smaller buttons? Add size="lg" or size="sm" for additional sizes.

+ + + Small - - + + - - + + - - + + - - + + - - + + - - + + Normal - - + + - - + + - - + + - - + + - - + + - - - Large add .btn-lg. + + + Large - - + + - - + + - - + + - - + + - - + +
@@ -598,128 +597,42 @@ class Buttons extends Component { - - + - - + - - + - - + - - + - - - Options - - - - - - {' '} - {' '} - {' '} - - - - - With Icons - - - - - - {' '} - {' '} - {' '} - - - - - Size Large - - -

Add this class .btn-lg

- - - - - - - -
-
- - - Size Small - - -

Add class .btn-sm

- - - - - - - -
-
- - - Disabled state - - -

Add disabled="disabled"

- - - - - - - -
-
- - - Active state - - -

Add class .active

- - - - - - - -
-
Block Level Buttons -

Add class .btn-block

+

Add prop block

@@ -731,99 +644,19 @@ class Buttons extends Component {
- - - Options - - - - - - - - - - - - With Icons - - - - - - - - - - - - Size Large - - -

Add class .btn-lg

- - - - - - -
-
- - - Size Small - - -

Add class .btn-sm

- - - - - - -
-
- - - Disabled state - - -

Add disabled="disabled"

- - - - - - -
-
- - - Active state - - -

Add class .active

- - - - - - -
-
Block Level Buttons - {/*Add this class .btn-block*/} -

Add class .btn-block

+

Add prop block

+