From c94ae8960ff9a664a38bedcc362ab40d8213875b Mon Sep 17 00:00:00 2001 From: Lindsey Date: Sat, 25 Sep 2021 02:12:50 -0400 Subject: [PATCH] Draw the rest of the UI library --- .storybook/preview.js | 12 ++- src/App.tsx | 23 ++--- src/App2.tsx | 20 +--- src/SecretCreationPage1.stories.tsx | 16 ++++ src/SecretCreationPage1.tsx | 66 ++++++++++++++ src/SecretCreationPage2.stories.tsx | 16 ++++ src/SecretCreationPage2.tsx | 72 +++++++++++++++ src/SecretCreationPage3.stories.tsx | 16 ++++ src/SecretCreationPage3.tsx | 61 +++++++++++++ src/SecretRevealPage.stories.tsx | 16 ++++ src/SecretRevealPage.tsx | 55 +++++++++++ src/SplashPage.stories.tsx | 14 +++ src/SplashPage.tsx | 32 +++++++ src/VerifyPage.stories.tsx | 14 +++ src/VerifyPage.tsx | 46 ++++++++++ src/index.tsx | 16 +++- src/shared/styles.js | 19 +++- src/stories/AutoResizingTextArea.stories.tsx | 21 +++++ src/stories/AutoResizingTextArea.tsx | 96 ++++++++++++++++++++ src/stories/Button.stories.tsx | 40 ++++++-- src/stories/Button.tsx | 41 ++++++--- src/stories/FileInput.stories.tsx | 19 ++++ src/stories/FileInput.tsx | 79 ++++++++-------- src/stories/Header1.stories.tsx | 19 ++++ src/stories/Header1.tsx | 7 +- src/stories/Header2.stories.tsx | 19 ++++ src/stories/Header2.tsx | 2 +- src/stories/Header3.stories.tsx | 28 ++++++ src/stories/Header3.tsx | 30 ++++++ src/stories/Icon.tsx | 75 ++++++++++----- src/stories/IconArrow.tsx | 68 ++++++++++++++ src/stories/Input.stories.tsx | 39 ++++++++ src/stories/Input.tsx | 24 +++-- src/stories/InputButtonWithIcon.stories.tsx | 41 +++++++++ src/stories/InputButtonWithIcon.tsx | 32 +++++-- src/stories/Label.stories.tsx | 22 +++++ src/stories/Label.tsx | 7 +- src/stories/ProgressIndicator.stories.tsx | 25 +++++ src/stories/ProgressIndicator.tsx | 9 +- src/stories/Select.stories.tsx | 19 ++++ src/stories/Select.tsx | 52 +++++------ src/stories/SplashIconHeader.stories.tsx | 16 ++++ src/stories/SplashIconHeader.tsx | 92 +++++++++++++++++++ src/stories/TextArea.stories.tsx | 22 +++++ src/stories/TextArea.tsx | 39 ++------ src/stories/TextAreaParagraph.stories.tsx | 27 ++++++ src/stories/TextAreaParagraph.tsx | 65 +++++++++++++ src/stories/assets/arrow-right.svg | 10 ++ src/stories/assets/copy.svg | 3 - src/stories/assets/download.svg | 7 +- src/stories/assets/file.svg | 3 + src/stories/assets/hamburger-menu.svg | 5 + src/stories/assets/icon-1.svg | 6 ++ src/stories/assets/icon-2.svg | 3 + src/stories/assets/icon-3.svg | 5 + src/stories/assets/paperclip.svg | 10 ++ src/stories/utilities/CenteredContainer.tsx | 2 +- src/stories/utilities/Spacer.tsx | 2 +- 58 files changed, 1423 insertions(+), 222 deletions(-) create mode 100644 src/SecretCreationPage1.stories.tsx create mode 100644 src/SecretCreationPage1.tsx create mode 100644 src/SecretCreationPage2.stories.tsx create mode 100644 src/SecretCreationPage2.tsx create mode 100644 src/SecretCreationPage3.stories.tsx create mode 100644 src/SecretCreationPage3.tsx create mode 100644 src/SecretRevealPage.stories.tsx create mode 100644 src/SecretRevealPage.tsx create mode 100644 src/SplashPage.stories.tsx create mode 100644 src/SplashPage.tsx create mode 100644 src/VerifyPage.stories.tsx create mode 100644 src/VerifyPage.tsx create mode 100644 src/stories/AutoResizingTextArea.stories.tsx create mode 100644 src/stories/AutoResizingTextArea.tsx create mode 100644 src/stories/FileInput.stories.tsx create mode 100644 src/stories/Header1.stories.tsx create mode 100644 src/stories/Header2.stories.tsx create mode 100644 src/stories/Header3.stories.tsx create mode 100644 src/stories/Header3.tsx create mode 100644 src/stories/IconArrow.tsx create mode 100644 src/stories/Input.stories.tsx create mode 100644 src/stories/InputButtonWithIcon.stories.tsx create mode 100644 src/stories/Label.stories.tsx create mode 100644 src/stories/ProgressIndicator.stories.tsx create mode 100644 src/stories/Select.stories.tsx create mode 100644 src/stories/SplashIconHeader.stories.tsx create mode 100644 src/stories/SplashIconHeader.tsx create mode 100644 src/stories/TextArea.stories.tsx create mode 100644 src/stories/TextAreaParagraph.stories.tsx create mode 100644 src/stories/TextAreaParagraph.tsx create mode 100644 src/stories/assets/arrow-right.svg delete mode 100644 src/stories/assets/copy.svg create mode 100644 src/stories/assets/file.svg create mode 100644 src/stories/assets/hamburger-menu.svg create mode 100644 src/stories/assets/icon-1.svg create mode 100644 src/stories/assets/icon-2.svg create mode 100644 src/stories/assets/icon-3.svg create mode 100644 src/stories/assets/paperclip.svg diff --git a/.storybook/preview.js b/.storybook/preview.js index 4055223..b404975 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -6,7 +6,17 @@ export const decorators = [ (Story) => ( <> - +
+ +
), ]; diff --git a/src/App.tsx b/src/App.tsx index 3d35977..5c68585 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -6,12 +6,12 @@ import Header1 from "./stories/Header1"; import Header2 from "./stories/Header2"; import Button from "./stories/Button"; +import IconArrow from "./stories/IconArrow"; import InputButtonWithIcon from "./stories/InputButtonWithIcon"; import Label from "./stories/Label"; import Input from "./stories/Input"; -import FileInput from "./stories/FileInput"; -import TextArea from "./stories/TextArea"; +import AutoResizingTextArea from "./stories/AutoResizingTextArea"; import Select from "./stories/Select"; import CenteredContainer from "./stories/utilities/CenteredContainer"; @@ -39,7 +39,7 @@ function App() { return ( - + {/* Securely Share Your Secrets */} Tell someone @@ -48,8 +48,8 @@ function App() { {}} /> - -