From 55375636445349ed8edfd034f10c72c262e626de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sat, 19 Oct 2024 00:53:07 +0200 Subject: [PATCH] pl-fe: Exports cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- .../pl-fe/src/components/account-search.tsx | 2 +- .../components/autosuggest-account-input.tsx | 2 +- .../src/components/autosuggest-input.tsx | 2 +- packages/pl-fe/src/components/markup.tsx | 2 +- .../src/components/relative-timestamp.tsx | 2 +- .../pl-fe/src/components/status-content.tsx | 2 +- .../ui/{accordion => }/accordion.tsx | 6 +- .../ui/{avatar => }/avatar.test.tsx | 0 .../src/components/ui/{avatar => }/avatar.tsx | 2 +- .../src/components/ui/{banner => }/banner.tsx | 0 .../{button.test.tsx => index.test.tsx} | 2 +- .../ui/button/{button.tsx => index.tsx} | 2 +- .../components/ui/{card => }/card.test.tsx | 0 .../src/components/ui/{card => }/card.tsx | 6 +- .../components/ui/{carousel => }/carousel.tsx | 4 +- .../components/ui/{checkbox => }/checkbox.tsx | 0 .../ui/{column => }/column.test.tsx | 0 .../src/components/ui/{column => }/column.tsx | 2 +- .../components/ui/{combobox => }/combobox.css | 0 .../components/ui/{combobox => }/combobox.tsx | 0 .../components/ui/{counter => }/counter.tsx | 0 .../ui/datepicker/datepicker.test.tsx | 99 ------------------- .../components/ui/datepicker/datepicker.tsx | 92 ----------------- .../ui/{divider => }/divider.test.tsx | 0 .../components/ui/{divider => }/divider.tsx | 4 +- .../components/ui/{emoji => }/emoji.test.tsx | 0 .../src/components/ui/{emoji => }/emoji.tsx | 0 .../ui/{file-input => }/file-input.tsx | 0 .../{form-actions => }/form-actions.test.tsx | 0 .../ui/{form-actions => }/form-actions.tsx | 2 +- .../ui/{form-group => }/form-group.test.tsx | 0 .../ui/{form-group => }/form-group.tsx | 6 +- .../components/ui/{form => }/form.test.tsx | 0 .../src/components/ui/{form => }/form.tsx | 0 .../src/components/ui/{hstack => }/hstack.tsx | 0 .../ui/{icon-button => }/icon-button.tsx | 4 +- .../src/components/ui/{icon => }/icon.tsx | 3 +- packages/pl-fe/src/components/ui/index.ts | 79 ++++++++------- .../inline-multiselect.tsx | 0 .../src/components/ui/{input => }/input.tsx | 6 +- .../src/components/ui/{layout => }/layout.tsx | 0 .../components/ui/{modal => }/modal.test.tsx | 0 .../src/components/ui/{modal => }/modal.tsx | 8 +- .../components/ui/{popover => }/popover.tsx | 2 +- .../src/components/ui/{portal => }/portal.tsx | 0 .../ui/{progress-bar => }/progress-bar.tsx | 0 .../ui/{radio-button => }/radio-button.tsx | 2 +- .../src/components/ui/{select => }/select.tsx | 0 .../src/components/ui/{slider => }/slider.tsx | 0 .../components/ui/{spinner => }/spinner.css | 0 .../components/ui/{spinner => }/spinner.tsx | 4 +- .../src/components/ui/{stack => }/stack.tsx | 0 .../ui/{streamfield => }/streamfield.tsx | 10 +- .../ui/{icon => }/svg-icon.test.tsx | 0 .../src/components/ui/{icon => }/svg-icon.tsx | 0 .../src/components/ui/{tabs => }/tabs.css | 0 .../src/components/ui/{tabs => }/tabs.tsx | 2 +- .../ui/{tag-input => }/tag-input.tsx | 3 +- .../src/components/ui/{tag-input => }/tag.tsx | 4 +- .../src/components/ui/{text => }/text.tsx | 0 .../components/ui/{textarea => }/textarea.tsx | 4 +- .../src/components/ui/{toast => }/toast.tsx | 8 +- .../src/components/ui/{toggle => }/toggle.tsx | 0 .../components/ui/{tooltip => }/tooltip.tsx | 0 .../src/components/ui/{widget => }/widget.tsx | 8 +- .../features/developers/developers-menu.tsx | 2 +- .../pl-fe/src/features/edit-profile/index.tsx | 2 +- .../src/features/filters/edit-filter.tsx | 2 +- .../features/interaction-policies/index.tsx | 2 +- .../notifications/components/filter-bar.tsx | 2 +- .../components/crypto-address-input.tsx | 2 +- .../components/footer-link-input.tsx | 2 +- .../components/promo-panel-input.tsx | 2 +- .../src/features/search/components/search.tsx | 2 +- .../ui/components/modals/reactions-modal.tsx | 2 +- 75 files changed, 106 insertions(+), 300 deletions(-) rename packages/pl-fe/src/components/ui/{accordion => }/accordion.tsx (96%) rename packages/pl-fe/src/components/ui/{avatar => }/avatar.test.tsx (100%) rename packages/pl-fe/src/components/ui/{avatar => }/avatar.tsx (97%) rename packages/pl-fe/src/components/ui/{banner => }/banner.tsx (100%) rename packages/pl-fe/src/components/ui/button/{button.test.tsx => index.test.tsx} (98%) rename packages/pl-fe/src/components/ui/button/{button.tsx => index.tsx} (98%) rename packages/pl-fe/src/components/ui/{card => }/card.test.tsx (100%) rename packages/pl-fe/src/components/ui/{card => }/card.tsx (96%) rename packages/pl-fe/src/components/ui/{carousel => }/carousel.tsx (97%) rename packages/pl-fe/src/components/ui/{checkbox => }/checkbox.tsx (100%) rename packages/pl-fe/src/components/ui/{column => }/column.test.tsx (100%) rename packages/pl-fe/src/components/ui/{column => }/column.tsx (99%) rename packages/pl-fe/src/components/ui/{combobox => }/combobox.css (100%) rename packages/pl-fe/src/components/ui/{combobox => }/combobox.tsx (100%) rename packages/pl-fe/src/components/ui/{counter => }/counter.tsx (100%) delete mode 100644 packages/pl-fe/src/components/ui/datepicker/datepicker.test.tsx delete mode 100644 packages/pl-fe/src/components/ui/datepicker/datepicker.tsx rename packages/pl-fe/src/components/ui/{divider => }/divider.test.tsx (100%) rename packages/pl-fe/src/components/ui/{divider => }/divider.tsx (89%) rename packages/pl-fe/src/components/ui/{emoji => }/emoji.test.tsx (100%) rename packages/pl-fe/src/components/ui/{emoji => }/emoji.tsx (100%) rename packages/pl-fe/src/components/ui/{file-input => }/file-input.tsx (100%) rename packages/pl-fe/src/components/ui/{form-actions => }/form-actions.test.tsx (100%) rename packages/pl-fe/src/components/ui/{form-actions => }/form-actions.tsx (88%) rename packages/pl-fe/src/components/ui/{form-group => }/form-group.test.tsx (100%) rename packages/pl-fe/src/components/ui/{form-group => }/form-group.tsx (96%) rename packages/pl-fe/src/components/ui/{form => }/form.test.tsx (100%) rename packages/pl-fe/src/components/ui/{form => }/form.tsx (100%) rename packages/pl-fe/src/components/ui/{hstack => }/hstack.tsx (100%) rename packages/pl-fe/src/components/ui/{icon-button => }/icon-button.tsx (96%) rename packages/pl-fe/src/components/ui/{icon => }/icon.tsx (96%) rename packages/pl-fe/src/components/ui/{inline-multiselect => }/inline-multiselect.tsx (100%) rename packages/pl-fe/src/components/ui/{input => }/input.tsx (97%) rename packages/pl-fe/src/components/ui/{layout => }/layout.tsx (100%) rename packages/pl-fe/src/components/ui/{modal => }/modal.test.tsx (100%) rename packages/pl-fe/src/components/ui/{modal => }/modal.tsx (96%) rename packages/pl-fe/src/components/ui/{popover => }/popover.tsx (98%) rename packages/pl-fe/src/components/ui/{portal => }/portal.tsx (100%) rename packages/pl-fe/src/components/ui/{progress-bar => }/progress-bar.tsx (100%) rename packages/pl-fe/src/components/ui/{radio-button => }/radio-button.tsx (95%) rename packages/pl-fe/src/components/ui/{select => }/select.tsx (100%) rename packages/pl-fe/src/components/ui/{slider => }/slider.tsx (100%) rename packages/pl-fe/src/components/ui/{spinner => }/spinner.css (100%) rename packages/pl-fe/src/components/ui/{spinner => }/spinner.tsx (92%) rename packages/pl-fe/src/components/ui/{stack => }/stack.tsx (100%) rename packages/pl-fe/src/components/ui/{streamfield => }/streamfield.tsx (94%) rename packages/pl-fe/src/components/ui/{icon => }/svg-icon.test.tsx (100%) rename packages/pl-fe/src/components/ui/{icon => }/svg-icon.tsx (100%) rename packages/pl-fe/src/components/ui/{tabs => }/tabs.css (100%) rename packages/pl-fe/src/components/ui/{tabs => }/tabs.tsx (99%) rename packages/pl-fe/src/components/ui/{tag-input => }/tag-input.tsx (98%) rename packages/pl-fe/src/components/ui/{tag-input => }/tag.tsx (87%) rename packages/pl-fe/src/components/ui/{text => }/text.tsx (100%) rename packages/pl-fe/src/components/ui/{textarea => }/textarea.tsx (98%) rename packages/pl-fe/src/components/ui/{toast => }/toast.tsx (96%) rename packages/pl-fe/src/components/ui/{toggle => }/toggle.tsx (100%) rename packages/pl-fe/src/components/ui/{tooltip => }/tooltip.tsx (100%) rename packages/pl-fe/src/components/ui/{widget => }/widget.tsx (87%) diff --git a/packages/pl-fe/src/components/account-search.tsx b/packages/pl-fe/src/components/account-search.tsx index 1571dcc1d..8e0509045 100644 --- a/packages/pl-fe/src/components/account-search.tsx +++ b/packages/pl-fe/src/components/account-search.tsx @@ -4,7 +4,7 @@ import { defineMessages, useIntl } from 'react-intl'; import AutosuggestAccountInput from 'pl-fe/components/autosuggest-account-input'; -import SvgIcon from './ui/icon/svg-icon'; +import SvgIcon from './ui/svg-icon'; const messages = defineMessages({ placeholder: { id: 'account_search.placeholder', defaultMessage: 'Search for an account' }, diff --git a/packages/pl-fe/src/components/autosuggest-account-input.tsx b/packages/pl-fe/src/components/autosuggest-account-input.tsx index 90ef70f9e..a7e867a15 100644 --- a/packages/pl-fe/src/components/autosuggest-account-input.tsx +++ b/packages/pl-fe/src/components/autosuggest-account-input.tsx @@ -7,7 +7,7 @@ import AutosuggestInput, { AutoSuggestion } from 'pl-fe/components/autosuggest-i import { useAppDispatch } from 'pl-fe/hooks'; import type { Menu } from 'pl-fe/components/dropdown-menu'; -import type { InputThemes } from 'pl-fe/components/ui/input/input'; +import type { InputThemes } from 'pl-fe/components/ui/input'; const noOp = () => { }; diff --git a/packages/pl-fe/src/components/autosuggest-input.tsx b/packages/pl-fe/src/components/autosuggest-input.tsx index 340c70b54..4ad75ab1b 100644 --- a/packages/pl-fe/src/components/autosuggest-input.tsx +++ b/packages/pl-fe/src/components/autosuggest-input.tsx @@ -9,7 +9,7 @@ import AutosuggestAccount from 'pl-fe/features/compose/components/autosuggest-ac import { textAtCursorMatchesToken } from 'pl-fe/utils/suggestions'; import type { Menu, MenuItem } from 'pl-fe/components/dropdown-menu'; -import type { InputThemes } from 'pl-fe/components/ui/input/input'; +import type { InputThemes } from 'pl-fe/components/ui/input'; import type { Emoji } from 'pl-fe/features/emoji'; type AutoSuggestion = string | Emoji; diff --git a/packages/pl-fe/src/components/markup.tsx b/packages/pl-fe/src/components/markup.tsx index 898bf68d9..058bf8070 100644 --- a/packages/pl-fe/src/components/markup.tsx +++ b/packages/pl-fe/src/components/markup.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import Text, { IText } from './ui/text/text'; +import Text, { IText } from './ui/text'; interface IMarkup extends IText { } diff --git a/packages/pl-fe/src/components/relative-timestamp.tsx b/packages/pl-fe/src/components/relative-timestamp.tsx index af74b9232..cd6c890c4 100644 --- a/packages/pl-fe/src/components/relative-timestamp.tsx +++ b/packages/pl-fe/src/components/relative-timestamp.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { injectIntl, defineMessages, IntlShape, FormatDateOptions } from 'react-intl'; -import Text, { IText } from './ui/text/text'; +import Text, { IText } from './ui/text'; const messages = defineMessages({ just_now: { id: 'relative_time.just_now', defaultMessage: 'now' }, diff --git a/packages/pl-fe/src/components/status-content.tsx b/packages/pl-fe/src/components/status-content.tsx index 02f8f6103..2ac55a89c 100644 --- a/packages/pl-fe/src/components/status-content.tsx +++ b/packages/pl-fe/src/components/status-content.tsx @@ -14,7 +14,7 @@ import Markup from './markup'; import { ParsedContent } from './parsed-content'; import Poll from './polls/poll'; -import type { Sizes } from 'pl-fe/components/ui/text/text'; +import type { Sizes } from 'pl-fe/components/ui/text'; import type { MinifiedStatus } from 'pl-fe/reducers/statuses'; const BIG_EMOJI_LIMIT = 10; diff --git a/packages/pl-fe/src/components/ui/accordion/accordion.tsx b/packages/pl-fe/src/components/ui/accordion.tsx similarity index 96% rename from packages/pl-fe/src/components/ui/accordion/accordion.tsx rename to packages/pl-fe/src/components/ui/accordion.tsx index 3cb98101f..069b96cbf 100644 --- a/packages/pl-fe/src/components/ui/accordion/accordion.tsx +++ b/packages/pl-fe/src/components/ui/accordion.tsx @@ -4,9 +4,9 @@ import { defineMessages, useIntl } from 'react-intl'; import DropdownMenu from 'pl-fe/components/dropdown-menu'; -import HStack from '../hstack/hstack'; -import Icon from '../icon/icon'; -import Text from '../text/text'; +import HStack from './hstack'; +import Icon from './icon'; +import Text from './text'; import type { Menu } from 'pl-fe/components/dropdown-menu'; diff --git a/packages/pl-fe/src/components/ui/avatar/avatar.test.tsx b/packages/pl-fe/src/components/ui/avatar.test.tsx similarity index 100% rename from packages/pl-fe/src/components/ui/avatar/avatar.test.tsx rename to packages/pl-fe/src/components/ui/avatar.test.tsx diff --git a/packages/pl-fe/src/components/ui/avatar/avatar.tsx b/packages/pl-fe/src/components/ui/avatar.tsx similarity index 97% rename from packages/pl-fe/src/components/ui/avatar/avatar.tsx rename to packages/pl-fe/src/components/ui/avatar.tsx index 8f02060a8..c18f45bf6 100644 --- a/packages/pl-fe/src/components/ui/avatar/avatar.tsx +++ b/packages/pl-fe/src/components/ui/avatar.tsx @@ -4,7 +4,7 @@ import { defineMessages, useIntl } from 'react-intl'; import StillImage, { IStillImage } from 'pl-fe/components/still-image'; -import Icon from '../icon/icon'; +import Icon from './icon'; const AVATAR_SIZE = 42; diff --git a/packages/pl-fe/src/components/ui/banner/banner.tsx b/packages/pl-fe/src/components/ui/banner.tsx similarity index 100% rename from packages/pl-fe/src/components/ui/banner/banner.tsx rename to packages/pl-fe/src/components/ui/banner.tsx diff --git a/packages/pl-fe/src/components/ui/button/button.test.tsx b/packages/pl-fe/src/components/ui/button/index.test.tsx similarity index 98% rename from packages/pl-fe/src/components/ui/button/button.test.tsx rename to packages/pl-fe/src/components/ui/button/index.test.tsx index f2335cb68..6e74963ce 100644 --- a/packages/pl-fe/src/components/ui/button/button.test.tsx +++ b/packages/pl-fe/src/components/ui/button/index.test.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { fireEvent, render, screen } from 'pl-fe/jest/test-helpers'; -import Button from './button'; +import Button from '.'; describe('