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 {
-
-
-
-
+
+
Outline Button
-
+
-
-
+
+
Ghost Button
-
+
-
-
+
+
Square Button
-
+
-
-
+
+
Pill Button
-
+
-
-
- Options
-
-
- Primary
- Secondary
- Success
- Warning{' '}
- Danger{' '}
- Link{' '}
-
-
-
-
- With Icons
-
-
- {'\u00A0'} Primary
- {'\u00A0 Secondary'}
- Success
- Warning{' '}
- Danger{' '}
- Link{' '}
-
-
-
-
- Size Large
-
-
- Add this class .btn-lg
- Primary
- Secondary
- Success
- Info
- Warning
- Danger
- Link
-
-
-
-
- Size Small
-
-
- Add class .btn-sm
- Primary
- Secondary
- Success
- Info
- Warning
- Danger
- Link
-
-
-
-
- Disabled state
-
-
- Add disabled="disabled"
- Primary
- Secondary
- Success
- Info
- Warning
- Danger
- Link
-
-
-
-
- Active state
-
-
- Add class .active
- Primary
- Secondary
- Success
- Info
- Warning
- Danger
- Link
-
-
Block Level Buttons
- Add class .btn-block
+ Add prop block
Block level button
Block level button
Block level button
@@ -731,99 +644,19 @@ class Buttons extends Component {
-
-
- Options
-
-
- Primary
- Secondary
- Success
- Warning
- Danger
-
-
-
-
- With Icons
-
-
- Primary
- Secondary
- Success
- Warning
- Danger
-
-
-
-
- Size Large
-
-
- Add class .btn-lg
- Primary
- Secondary
- Success
- Info
- Warning
- Danger
-
-
-
-
- Size Small
-
-
- Add class .btn-sm
- Primary
- Secondary
- Success
- Info
- Warning
- Danger
-
-
-
-
- Disabled state
-
-
- Add disabled="disabled"
- Primary
- Secondary
- Success
- Info
- Warning
- Danger
-
-
-
-
- Active state
-
-
- Add class .active
- Primary
- Secondary
- Success
- Info
- Warning
- Danger
-
-
Block Level Buttons
- {/*Add this class .btn-block
*/}
- Add class .btn-block
+ Add prop block
Block level button
Block level button
Block level button
Block level button
Block level button
Block level button
+ Block level button