From 9a4728a51e41be618fdbe9094d432a0678379728 Mon Sep 17 00:00:00 2001 From: Onno Visser Date: Wed, 24 Jan 2024 09:51:19 +0100 Subject: [PATCH] Update TextArea and FileUpload inputs (#1897) --- .github/workflows/fabric.yml | 1 - .github/workflows/npm-publish.yml | 8 - .../Dialogs/CreateCollectionDialog.tsx | 4 +- .../EditOnboardingEmailAddressDialog.tsx | 10 +- .../Dialogs/ShareMultisigDialog.tsx | 4 +- centrifuge-app/src/components/Swaps/Swap.tsx | 6 +- .../pages/IssuerCreatePool/CustomDetails.tsx | 5 +- .../pages/IssuerCreatePool/IssuerInput.tsx | 18 +- .../pages/IssuerCreatePool/TrancheInput.tsx | 10 +- .../src/pages/IssuerCreatePool/index.tsx | 18 +- .../pages/IssuerPool/Access/MultisigForm.tsx | 4 +- .../pages/IssuerPool/Assets/CreateLoan.tsx | 16 +- .../pages/IssuerPool/Assets/PricingInput.tsx | 17 +- .../IssuerPool/Configuration/Details.tsx | 22 +- .../Investors/OnboardingSettings.tsx | 4 +- centrifuge-app/src/pages/MintNFT.tsx | 4 +- .../KnowYourBusiness/BusinessInformation.tsx | 14 +- .../KnowYourCustomer/SignerVerification.tsx | 10 +- .../Onboarding/UltimateBeneficialOwners.tsx | 10 +- .../WalletMenu/WalletMenu.stories.tsx | 6 +- fabric/.storybook/main.js | 18 +- fabric/README.md | 19 - fabric/package.json | 44 +- .../Accordion/Accordion.stories.tsx | 6 +- .../src/components/Button/Button.stories.tsx | 10 +- fabric/src/components/Card/Card.stories.tsx | 6 +- .../components/Checkbox/Checkbox.stories.tsx | 6 +- .../Container/Container.stories.tsx | 6 +- .../CurrencyInput/CurrencyInput.stories.tsx | 6 +- fabric/src/components/CurrencyInput/index.tsx | 104 +- .../DateRange/DateRange.stories.tsx | 6 +- .../FileUpload/FileUpload.stories.tsx | 6 +- fabric/src/components/FileUpload/index.tsx | 272 +- .../ImageUpload/ImageUpload.stories.tsx | 15 +- .../InlineFeedback/InlineFeedback.stories.tsx | 6 +- fabric/src/components/InputBox/index.tsx | 5 +- .../InputGroup/InputGroup.stories.tsx | 6 +- fabric/src/components/InputGroup/index.tsx | 30 +- .../InteractiveCard.stories.tsx | 6 +- fabric/src/components/Menu/Menu.stories.tsx | 6 +- .../Placeholder/Placeholder.stories.tsx | 4 +- .../components/Popover/Popover.stories.tsx | 4 +- .../RadioButton/RadioButton.stories.tsx | 6 +- .../RangeInput/RangeInput.stories.tsx | 6 +- .../src/components/Select/Select.stories.tsx | 6 +- fabric/src/components/Select/index.tsx | 48 +- fabric/src/components/Shelf/Shelf.stories.tsx | 6 +- .../components/Spinner/Spinner.stories.tsx | 6 +- fabric/src/components/Stack/Stack.stories.tsx | 6 +- .../StatusChip/StatusChip.stories.tsx | 4 +- .../components/Stepper/Stepper.stories.tsx | 4 +- fabric/src/components/Text/Text.stories.tsx | 4 +- .../TextInput/TextInput.stories.tsx | 8 +- fabric/src/components/TextInput/index.tsx | 146 +- .../TextWithPlaceholder.stories.tsx | 6 +- .../Thumbnail/Thumbnail.stories.tsx | 6 +- fabric/src/components/Toast/Toast.stories.tsx | 6 +- fabric/src/stories/Icons.stories.tsx | 4 +- fabric/src/stories/Theme.stories.tsx | 4 +- yarn.lock | 5717 +++++++++++++---- 60 files changed, 4868 insertions(+), 1907 deletions(-) diff --git a/.github/workflows/fabric.yml b/.github/workflows/fabric.yml index 407ff5abd3..3cfe82132f 100644 --- a/.github/workflows/fabric.yml +++ b/.github/workflows/fabric.yml @@ -32,7 +32,6 @@ jobs: - run: yarn install --immutable - run: yarn build - # - run: yarn ci:loki -> broken - name: Build fabric storybook run: yarn build-storybook diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 0b33d3ba29..60297445f6 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -40,14 +40,6 @@ jobs: # yarn lint # yarn build # if: ${{ inputs.app_name == 'centrifuge-js' }} - - # yarn ci:loki no longer works in GH Actions - # because of some Docker dependencies - # - name: Build fabric - # run: | - # yarn build - # yarn ci:loki - # if: ${{ inputs.app_name == 'fabric' }} - name: Publish id: publish diff --git a/centrifuge-app/src/components/Dialogs/CreateCollectionDialog.tsx b/centrifuge-app/src/components/Dialogs/CreateCollectionDialog.tsx index a46499e138..a0cc0dd510 100644 --- a/centrifuge-app/src/components/Dialogs/CreateCollectionDialog.tsx +++ b/centrifuge-app/src/components/Dialogs/CreateCollectionDialog.tsx @@ -16,7 +16,7 @@ import { Stack, Text, TextAreaInput, - TextInput_DEPRECATED, + TextInput, } from '@centrifuge/fabric' import * as React from 'react' import { Redirect } from 'react-router' @@ -127,7 +127,7 @@ export const CreateCollectionDialog: React.FC<{ open: boolean; onClose: () => vo
- Edit Email Address} > - - setNewEmail(event.target.value)} - /> + + setNewEmail(event.target.value)} />