From 9f086bf53d87a207b2892d58c189668208e7008f Mon Sep 17 00:00:00 2001 From: Bernard Date: Fri, 1 Nov 2019 11:38:04 -0500 Subject: [PATCH] [WNMGDS-293] Adjust prettier config (#539) * Change prettier config * Run prettier on files * Rename Dropdown.example.html * Remove outdated DateField.example.html naming --- .prettierrc | 3 +- .../src/components/Alert/Alert.example.jsx | 4 +- .../src/components/Alert/alert.example.html | 20 +++---- .../src/components/Badge/badge.example.html | 16 ++--- .../src/components/Button/button.example.html | 60 ++++--------------- .../checkbox-radio-right-to-left.example.html | 8 +-- .../checkbox-radio-size.example.html | 41 +++++++++++++ .../ChoiceList/checkbox-radio.example.html | 24 ++------ .../components/ChoiceList/select.example.html | 6 +- .../DateField/DateField.example.html | 55 ----------------- .../DateField/datefield.example.html | 16 +---- ...own.example.html => dropdown.example.html} | 10 +--- .../FormLabel/form-label.example.html | 3 +- .../HelpDrawer/help-drawer.example.html | 37 +++++------- .../src/components/Review/review.example.html | 12 +--- .../components/Spinner/spinner.example.html | 12 +--- .../components/StepList/steplist.example.html | 37 +++--------- .../src/components/Tabs/tabs.example.html | 10 +--- .../TextField/TextField.example.jsx | 20 +------ .../TextField/textfield.example.html | 40 ++----------- .../patterns/documentation-page.example.html | 35 +++++------ 21 files changed, 138 insertions(+), 331 deletions(-) create mode 100644 packages/core/src/components/ChoiceList/checkbox-radio-size.example.html delete mode 100644 packages/core/src/components/DateField/DateField.example.html rename packages/core/src/components/Dropdown/{Dropdown.example.html => dropdown.example.html} (81%) diff --git a/.prettierrc b/.prettierrc index 544138be45..554f2a3baa 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,3 +1,4 @@ { - "singleQuote": true + "singleQuote": true, + "printWidth": 100 } diff --git a/packages/core/src/components/Alert/Alert.example.jsx b/packages/core/src/components/Alert/Alert.example.jsx index f8651a144e..2dcef6d741 100644 --- a/packages/core/src/components/Alert/Alert.example.jsx +++ b/packages/core/src/components/Alert/Alert.example.jsx @@ -9,9 +9,7 @@ ReactDOM.render( -

- This is a React Alert component without a heading. -

+

This is a React Alert component without a heading.

, document.getElementById('js-example') diff --git a/packages/core/src/components/Alert/alert.example.html b/packages/core/src/components/Alert/alert.example.html index 23c1459e7c..1e9737a368 100644 --- a/packages/core/src/components/Alert/alert.example.html +++ b/packages/core/src/components/Alert/alert.example.html @@ -3,8 +3,8 @@

Informative status

- Lorem ipsum dolor sit link text, - consectetur adipiscing elit, sed do eiusmod. + Lorem ipsum dolor sit link text, consectetur adipiscing + elit, sed do eiusmod.

@@ -12,8 +12,8 @@

Informative status

Error status

- Lorem ipsum dolor sit link text, - consectetur adipiscing elit, sed do eiusmod. + Lorem ipsum dolor sit link text, consectetur adipiscing + elit, sed do eiusmod.

@@ -21,8 +21,8 @@

Error status

Warning status

- Lorem ipsum dolor sit link text, - consectetur adipiscing elit, sed do eiusmod. + Lorem ipsum dolor sit link text, consectetur adipiscing + elit, sed do eiusmod.

@@ -30,8 +30,8 @@

Warning status

Success status

- Lorem ipsum dolor sit link text, - consectetur adipiscing elit, sed do eiusmod. + Lorem ipsum dolor sit link text, consectetur adipiscing + elit, sed do eiusmod.

@@ -39,8 +39,8 @@

Success status

Status without icon

- Lorem ipsum dolor sit link text, - consectetur adipiscing elit, sed do eiusmod. + Lorem ipsum dolor sit link text, consectetur adipiscing + elit, sed do eiusmod.

diff --git a/packages/core/src/components/Badge/badge.example.html b/packages/core/src/components/Badge/badge.example.html index 5aa2b64158..c28d39a53a 100644 --- a/packages/core/src/components/Badge/badge.example.html +++ b/packages/core/src/components/Badge/badge.example.html @@ -7,29 +7,21 @@
2 Info badge - Larger info badge + Larger info badge
3 Success badge - Larger success badge + Larger success badge
4 Warning badge - Larger warning badge + Larger warning badge
5 Alert badge - Larger alert badge + Larger alert badge
diff --git a/packages/core/src/components/Button/button.example.html b/packages/core/src/components/Button/button.example.html index 04772781af..390677aaf4 100644 --- a/packages/core/src/components/Button/button.example.html +++ b/packages/core/src/components/Button/button.example.html @@ -16,22 +16,13 @@
Primary button
- - - @@ -39,22 +30,13 @@
Danger button
- - - @@ -62,22 +44,13 @@
Success button
- - - @@ -85,22 +58,13 @@
Transparent button
- - - diff --git a/packages/core/src/components/ChoiceList/checkbox-radio-right-to-left.example.html b/packages/core/src/components/ChoiceList/checkbox-radio-right-to-left.example.html index b488e326bd..f25e4e348f 100644 --- a/packages/core/src/components/ChoiceList/checkbox-radio-right-to-left.example.html +++ b/packages/core/src/components/ChoiceList/checkbox-radio-right-to-left.example.html @@ -1,7 +1,5 @@
-
+
Right to left @@ -47,9 +45,7 @@ >
Right to left - + Select desired fruits +
+
+ Size variants + Select a size + + + + +
+
+
+
+ Size variants + Select a size + + + + +
+
+
diff --git a/packages/core/src/components/ChoiceList/checkbox-radio.example.html b/packages/core/src/components/ChoiceList/checkbox-radio.example.html index cb122c0db9..e6b7631750 100644 --- a/packages/core/src/components/ChoiceList/checkbox-radio.example.html +++ b/packages/core/src/components/ChoiceList/checkbox-radio.example.html @@ -48,21 +48,9 @@ Radio 1 Choice hint text - + - +
@@ -88,12 +76,8 @@
Inverse example - Helpful hint text - Error message example + Helpful hint text + Error message example - diff --git a/packages/core/src/components/DateField/DateField.example.html b/packages/core/src/components/DateField/DateField.example.html deleted file mode 100644 index 5fcf814187..0000000000 --- a/packages/core/src/components/DateField/DateField.example.html +++ /dev/null @@ -1,55 +0,0 @@ -
- - Date of birth - For example: 4 / 28 / 1986 - -
-
- - -
- / -
- - -
- / -
- - -
-
-
diff --git a/packages/core/src/components/DateField/datefield.example.html b/packages/core/src/components/DateField/datefield.example.html index 5fcf814187..46d64bc188 100644 --- a/packages/core/src/components/DateField/datefield.example.html +++ b/packages/core/src/components/DateField/datefield.example.html @@ -5,9 +5,7 @@
- /
- + /
- + Dropdown label + + + - + - +