+
{upperFirst(label)}
{children}
-
+
);
};
diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/Roles/ListPage/components/RoleRow/index.js b/packages/core/admin/admin/src/pages/SettingsPage/pages/Roles/ListPage/components/RoleRow/index.js
index 7203a89367..eeffb390eb 100644
--- a/packages/core/admin/admin/src/pages/SettingsPage/pages/Roles/ListPage/components/RoleRow/index.js
+++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/Roles/ListPage/components/RoleRow/index.js
@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Box } from '@strapi/parts/Box';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { Td, Tr } from '@strapi/parts/Table';
import { Text } from '@strapi/parts/Text';
import { IconButton } from '@strapi/parts/IconButton';
@@ -36,7 +36,7 @@ const RoleRow = ({ id, name, description, usersCount, icons }) => {
{usersCountText}
-
+
{icons.map((icon, i) =>
icon ? (
@@ -44,7 +44,7 @@ const RoleRow = ({ id, name, description, usersCount, icons }) => {
) : null
)}
-
+
|
);
diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/DynamicTable/TableRows/index.js b/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/DynamicTable/TableRows/index.js
index 0394497ae4..ab895da6bc 100644
--- a/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/DynamicTable/TableRows/index.js
+++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/DynamicTable/TableRows/index.js
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import { BaseCheckbox } from '@strapi/parts/BaseCheckbox';
import { Box } from '@strapi/parts/Box';
import { IconButton } from '@strapi/parts/IconButton';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { Text } from '@strapi/parts/Text';
import { Tbody, Td, Tr } from '@strapi/parts/Table';
import EditIcon from '@strapi/icons/EditIcon';
@@ -72,7 +72,7 @@ const TableRows = ({
{withBulkActions && (
-
+
push(`${pathname}/${data.id}`)}
label={formatMessage(
@@ -96,7 +96,7 @@ const TableRows = ({
/>
)}
-
+
|
)}
diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/PaginationFooter/index.js b/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/PaginationFooter/index.js
index 3a08a9126f..9f6a6a54b9 100644
--- a/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/PaginationFooter/index.js
+++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/PaginationFooter/index.js
@@ -1,16 +1,16 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Box } from '@strapi/parts/Box';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { PaginationURLQuery, PageSizeURLQuery } from '@strapi/helper-plugin';
const PaginationFooter = ({ pagination }) => {
return (
-
+
-
+
);
};
diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/utils/tableHeaders.js b/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/utils/tableHeaders.js
index 7827c17251..3ea57d972f 100644
--- a/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/utils/tableHeaders.js
+++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/utils/tableHeaders.js
@@ -1,5 +1,5 @@
import React from 'react';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { Text } from '@strapi/parts/Text';
import { Status } from '@strapi/helper-plugin';
@@ -41,10 +41,10 @@ const tableHeaders = [
// eslint-disable-next-line react/prop-types
cellFormatter: ({ isActive }) => {
return (
-
+
{isActive ? 'Active' : 'Inactive'}
-
+
);
},
},
diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/HeadersInput/index.js b/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/HeadersInput/index.js
index 56a16c2aef..cb35c494dc 100644
--- a/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/HeadersInput/index.js
+++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/HeadersInput/index.js
@@ -4,7 +4,7 @@ import AddIcon from '@strapi/icons/AddIcon';
import { Box } from '@strapi/parts/Box';
import { FieldLabel } from '@strapi/parts/Field';
import { Grid, GridItem } from '@strapi/parts/Grid';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { Stack } from '@strapi/parts/Stack';
import { TextInput } from '@strapi/parts/TextInput';
import { TextButton } from '@strapi/parts/TextButton';
@@ -52,7 +52,7 @@ const HeadersInput = () => {
/>
-
+
{
}
/>
- {
{ number: i + 1 }
)}
/>
-
-
+
+
))}
diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/TriggerContainer/index.js b/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/TriggerContainer/index.js
index 4df1919fe4..9f43ef7361 100644
--- a/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/TriggerContainer/index.js
+++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/TriggerContainer/index.js
@@ -5,7 +5,7 @@ import ClearField from '@strapi/icons/ClearField';
import Close from '@strapi/icons/Close';
import LoadingIcon from '@strapi/icons/LoadingIcon';
import { Box } from '@strapi/parts/Box';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { Text } from '@strapi/parts/Text';
import { Stack } from '@strapi/parts/Stack';
import { Grid, GridItem } from '@strapi/parts/Grid';
@@ -75,20 +75,20 @@ const Message = ({ statusCode, message }) => {
if (statusCode >= 200 && statusCode < 300) {
return (
-
+
{formatMessage({
id: 'Settings.webhooks.trigger.success.label',
defaultMessage: 'success',
})}
-
+
);
}
if (statusCode >= 300) {
return (
-
+
{
>
{message}
-
+
);
}
@@ -118,7 +118,7 @@ const CancelButton = ({ onCancel }) => {
const { formatMessage } = useIntl();
return (
-
+
-
+
);
};
diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/ListView/index.js b/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/ListView/index.js
index 16518123e6..eb8d7c26d4 100644
--- a/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/ListView/index.js
+++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/Webhooks/ListView/index.js
@@ -20,7 +20,7 @@ import {
} from '@strapi/helper-plugin';
import { HeaderLayout, Layout, ContentLayout, ActionLayout } from '@strapi/parts/Layout';
import { EmptyStateLayout } from '@strapi/parts/EmptyStateLayout';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { Stack } from '@strapi/parts/Stack';
import { IconButton } from '@strapi/parts/IconButton';
import { BaseCheckbox } from '@strapi/parts/BaseCheckbox';
@@ -395,7 +395,7 @@ const ListView = () => {
{webhook.url}
-
+
{
onChange={() => handleEnabledChange(!webhook.isEnabled, webhook.id)}
visibleLabels
/>
-
+
|
diff --git a/packages/core/admin/ee/admin/pages/AuthPage/components/Login/index.js b/packages/core/admin/ee/admin/pages/AuthPage/components/Login/index.js
index 574b338abe..e9ae6105a3 100644
--- a/packages/core/admin/ee/admin/pages/AuthPage/components/Login/index.js
+++ b/packages/core/admin/ee/admin/pages/AuthPage/components/Login/index.js
@@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { Box } from '@strapi/parts/Box';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { Divider } from '@strapi/parts/Divider';
import { Stack } from '@strapi/parts/Stack';
import { TableLabel } from '@strapi/parts/Text';
@@ -34,7 +34,7 @@ const Login = loginProps => {
-
+
@@ -42,7 +42,7 @@ const Login = loginProps => {
-
+
diff --git a/packages/core/admin/ee/admin/pages/AuthPage/components/Providers/SSOProviders.js b/packages/core/admin/ee/admin/pages/AuthPage/components/Providers/SSOProviders.js
index 02dca111c3..be62ae81ee 100644
--- a/packages/core/admin/ee/admin/pages/AuthPage/components/Providers/SSOProviders.js
+++ b/packages/core/admin/ee/admin/pages/AuthPage/components/Providers/SSOProviders.js
@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Grid, GridItem } from '@strapi/parts/Grid';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { Text } from '@strapi/parts/Text';
import { Tooltip } from '@strapi/parts/Tooltip';
import styled from 'styled-components';
@@ -23,7 +23,7 @@ const SSOButton = styled.a`
color: ${({ theme }) => theme.colors.neutral600};
`;
-const SSOProvidersWrapper = styled(Row)`
+const SSOProvidersWrapper = styled(Flex)`
& a:not(:first-child):not(:last-child) {
margin: 0 ${({ theme }) => theme.spaces[2]};
}
diff --git a/packages/core/admin/ee/admin/pages/AuthPage/components/Providers/index.js b/packages/core/admin/ee/admin/pages/AuthPage/components/Providers/index.js
index abb474ab9d..dc36f17e33 100644
--- a/packages/core/admin/ee/admin/pages/AuthPage/components/Providers/index.js
+++ b/packages/core/admin/ee/admin/pages/AuthPage/components/Providers/index.js
@@ -3,7 +3,7 @@ import { Redirect, useHistory } from 'react-router-dom';
import styled from 'styled-components';
import { Divider } from '@strapi/parts/Divider';
import { Stack } from '@strapi/parts/Stack';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { Box } from '@strapi/parts/Box';
import { Button } from '@strapi/parts/Button';
import { Link } from '@strapi/parts/Link';
@@ -55,31 +55,31 @@ const Providers = () => {
{isLoading ? (
-
+
{formatMessage({ id: 'Auth.login.sso.loading' })}
-
+
) : (
)}
-
+
{formatMessage({ id: 'or' })}
-
+
-
+
{formatMessage({ id: 'Auth.link.forgot-password' })}
-
+
);
diff --git a/packages/core/admin/ee/admin/pages/SettingsPage/pages/Roles/CreatePage/index.js b/packages/core/admin/ee/admin/pages/SettingsPage/pages/Roles/CreatePage/index.js
index f4c53ccb20..01c036a693 100644
--- a/packages/core/admin/ee/admin/pages/SettingsPage/pages/Roles/CreatePage/index.js
+++ b/packages/core/admin/ee/admin/pages/SettingsPage/pages/Roles/CreatePage/index.js
@@ -16,7 +16,7 @@ import { ContentLayout, HeaderLayout } from '@strapi/parts/Layout';
import { Grid, GridItem } from '@strapi/parts/Grid';
import { Main } from '@strapi/parts/Main';
import { Link } from '@strapi/parts/Link';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { Stack } from '@strapi/parts/Stack';
import { Text } from '@strapi/parts/Text';
import { TextInput } from '@strapi/parts/TextInput';
@@ -173,7 +173,7 @@ const CreatePage = () => {
-
+
@@ -202,7 +202,7 @@ const CreatePage = () => {
{ number: 0 }
)}
-
+
{isInDevelopmentMode && (
-
+
{configurable ? (
{!isMorph && (
@@ -292,7 +292,7 @@ function ListRow({
// ! TODO ASK DESIGN TO PUT LOCK ICON INSIDE DS
)}
-
+
)}
|
diff --git a/packages/core/content-type-builder/admin/src/components/NestedTFooter/index.js b/packages/core/content-type-builder/admin/src/components/NestedTFooter/index.js
index 4c0d23a468..9ea70c833c 100644
--- a/packages/core/content-type-builder/admin/src/components/NestedTFooter/index.js
+++ b/packages/core/content-type-builder/admin/src/components/NestedTFooter/index.js
@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { Box } from '@strapi/parts/Box';
import { Text } from '@strapi/parts/Text';
import styled from 'styled-components';
@@ -35,7 +35,7 @@ const ButtonBox = styled(Box)`
const NestedTFooter = ({ children, icon, color, ...props }) => {
return (
-
+
{icon}
@@ -44,7 +44,7 @@ const NestedTFooter = ({ children, icon, color, ...props }) => {
{children}
-
+
);
};
diff --git a/packages/core/content-type-builder/admin/src/pages/ListView/index.js b/packages/core/content-type-builder/admin/src/pages/ListView/index.js
index 152d145450..0cde8557e2 100644
--- a/packages/core/content-type-builder/admin/src/pages/ListView/index.js
+++ b/packages/core/content-type-builder/admin/src/pages/ListView/index.js
@@ -10,7 +10,7 @@ import CheckIcon from '@strapi/icons/CheckIcon';
import EditIcon from '@strapi/icons/EditIcon';
import { Button } from '@strapi/parts/Button';
import { Link } from '@strapi/parts/Link';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { Stack } from '@strapi/parts/Stack';
import { Box } from '@strapi/parts/Box';
import { ContentLayout, HeaderLayout } from '@strapi/parts/Layout';
@@ -263,7 +263,7 @@ const ListView = () => {
/>
-
+
{/* {
{formatMessage({ id: getTrad('button.attributes.add.another') })}
-
+
-
+
{formatMessage({
id: bodyText.id,
defaultMessage: bodyText.defaultMessage,
})}
-
+
theme.spaces[6]};
svg {
width: ${32 / 16}rem;
@@ -22,20 +22,20 @@ const ContentBox = ({ title, subtitle, icon, iconBackground, endAction }) => {
}
return (
-
+
{icon}
-
-
+
+
{title}
{endAction}
-
+
{subtitle}
-
+
);
};
diff --git a/packages/core/helper-plugin/lib/src/components/DynamicTable/DynamicTable.stories.mdx b/packages/core/helper-plugin/lib/src/components/DynamicTable/DynamicTable.stories.mdx
index 14526dc407..208430e8e1 100644
--- a/packages/core/helper-plugin/lib/src/components/DynamicTable/DynamicTable.stories.mdx
+++ b/packages/core/helper-plugin/lib/src/components/DynamicTable/DynamicTable.stories.mdx
@@ -5,7 +5,7 @@ import { Meta, ArgsTable, Canvas, Story } from '@storybook/addon-docs';
import { Main } from '@strapi/parts/Main';
import { Button } from '@strapi/parts/Button';
import { Box } from '@strapi/parts/Box';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { BaseCheckbox } from '@strapi/parts/BaseCheckbox';
import { Dialog, DialogBody, DialogFooter } from '@strapi/parts/Dialog';
import { Tbody, Td, Tr } from '@strapi/parts/Table';
@@ -192,7 +192,7 @@ import { DynamicTable } from '@strapi/helper-plugin';
})}
{withBulkActions && (
-
+
console.log(`${pathname}/${data.id}`)}
label={`Edit ${data.firstname} ${data.lastname}`}
@@ -207,7 +207,7 @@ import { DynamicTable } from '@strapi/helper-plugin';
icon={}
/>
-
+
|
)}
@@ -303,7 +303,7 @@ import { DynamicTable } from '@strapi/helper-plugin';
})}
{withBulkActions && (
-
+
console.log(`${pathname}/${data.id}`)}
label={`Edit ${data.firstname} ${data.lastname}`}
@@ -318,7 +318,7 @@ import { DynamicTable } from '@strapi/helper-plugin';
icon={}
/>
-
+
|
)}
@@ -350,7 +350,7 @@ import { DynamicTable } from '@strapi/helper-plugin';
isOpen={isOpen}
>
- Are you sure?
+ Are you sure?
* + * {
margin-left: ${({ theme }) => theme.spaces[2]};
}
@@ -127,7 +127,7 @@ const Table = ({
{entriesToDelete.length > 0 && (
-
+
{formatMessage(
@@ -147,7 +147,7 @@ const Table = ({
{formatMessage({ id: 'app.utils.delete', defaultMessage: 'Delete' })}
-
+
)}
diff --git a/packages/core/helper-plugin/lib/src/components/EmptyBodyTable/index.js b/packages/core/helper-plugin/lib/src/components/EmptyBodyTable/index.js
index 67ab2deee0..535449267d 100644
--- a/packages/core/helper-plugin/lib/src/components/EmptyBodyTable/index.js
+++ b/packages/core/helper-plugin/lib/src/components/EmptyBodyTable/index.js
@@ -1,7 +1,7 @@
import React from 'react';
import { Tbody, Tr, Td } from '@strapi/parts/Table';
import { Box } from '@strapi/parts/Box';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { Loader } from '@strapi/parts/Loader';
import PropTypes from 'prop-types';
import EmptyStateLayout from '../EmptyStateLayout';
@@ -12,11 +12,11 @@ const EmptyBodyTable = ({ colSpan, isLoading, ...rest }) => {
-
+
Loading content...
-
+
|
diff --git a/packages/core/helper-plugin/lib/src/components/FilterListURLQuery/FilterListURLQuery.stories.mdx b/packages/core/helper-plugin/lib/src/components/FilterListURLQuery/FilterListURLQuery.stories.mdx
index 99ec07d44e..074a5805a6 100644
--- a/packages/core/helper-plugin/lib/src/components/FilterListURLQuery/FilterListURLQuery.stories.mdx
+++ b/packages/core/helper-plugin/lib/src/components/FilterListURLQuery/FilterListURLQuery.stories.mdx
@@ -2,7 +2,11 @@
import { useEffect } from 'react';
import { Meta, ArgsTable, Canvas, Story } from '@storybook/addon-docs';
-import { Button, Box, Main, Row, Stack } from '@strapi/parts';
+import { Button } from '@strapi/parts/Button';
+import { Box } from '@strapi/parts/Box';
+import { Main } from '@strapi/parts/Main';
+import { Flex } from '@strapi/parts/Flex';
+import { Stack } from '@strapi/parts/Stack';
import useQueryParams from '../../hooks/useQueryParams';
import FilterListURLQuery from './index';
@@ -34,7 +38,7 @@ import { FilterListURLQuery } from '@strapi/helper-plugin';
return (
-
+
-
+
diff --git a/packages/core/helper-plugin/lib/src/components/FilterPopoverURLQuery/FilterPopoverURLQuery.stories.mdx b/packages/core/helper-plugin/lib/src/components/FilterPopoverURLQuery/FilterPopoverURLQuery.stories.mdx
index 9a265c42fb..7b21d99902 100644
--- a/packages/core/helper-plugin/lib/src/components/FilterPopoverURLQuery/FilterPopoverURLQuery.stories.mdx
+++ b/packages/core/helper-plugin/lib/src/components/FilterPopoverURLQuery/FilterPopoverURLQuery.stories.mdx
@@ -2,7 +2,7 @@
import { useEffect, useState, useRef } from 'react';
import { Meta, ArgsTable, Canvas, Story } from '@storybook/addon-docs';
-import { Button, Box, Main, Row, Stack } from '@strapi/parts';
+import { Button, Box, Main, Flex, Stack } from '@strapi/parts';
import useQueryParams from '../../hooks/useQueryParams';
import FilterListURLQuery from '../FilterListURLQuery';
import FilterPopoverURLQuery from './index';
@@ -54,7 +54,7 @@ import { FilterListURLQuery } from '@strapi/helper-plugin';
return (
-
+
@@ -65,7 +65,7 @@ import { FilterListURLQuery } from '@strapi/helper-plugin';
source={buttonRef}
/>
-
+
);
diff --git a/packages/core/helper-plugin/lib/src/components/LoadingIndicatorPage/index.js b/packages/core/helper-plugin/lib/src/components/LoadingIndicatorPage/index.js
index 4a0098f19b..0023df77bb 100644
--- a/packages/core/helper-plugin/lib/src/components/LoadingIndicatorPage/index.js
+++ b/packages/core/helper-plugin/lib/src/components/LoadingIndicatorPage/index.js
@@ -1,10 +1,10 @@
import React from 'react';
import { Loader } from '@strapi/parts/Loader';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import PropTypes from 'prop-types';
import styled from 'styled-components';
-const Wrapper = styled(Row)`
+const Wrapper = styled(Flex)`
height: 100vh;
`;
diff --git a/packages/core/helper-plugin/lib/src/components/PageSizeURLQuery/index.js b/packages/core/helper-plugin/lib/src/components/PageSizeURLQuery/index.js
index 741274c1a0..8ad68da7cd 100644
--- a/packages/core/helper-plugin/lib/src/components/PageSizeURLQuery/index.js
+++ b/packages/core/helper-plugin/lib/src/components/PageSizeURLQuery/index.js
@@ -7,7 +7,7 @@
import React from 'react';
import { useIntl } from 'react-intl';
import { Box } from '@strapi/parts/Box';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { Select, Option } from '@strapi/parts/Select';
import { Text } from '@strapi/parts/Text';
import PropTypes from 'prop-types';
@@ -32,7 +32,7 @@ const PageSizeURLQuery = ({ trackedEvent }) => {
const pageSize = query?.pageSize || '10';
return (
-
+
+
);
};
diff --git a/packages/core/helper-plugin/lib/src/components/Status/Status.stories.mdx b/packages/core/helper-plugin/lib/src/components/Status/Status.stories.mdx
index 8fd87d3e77..cf62a9f22c 100644
--- a/packages/core/helper-plugin/lib/src/components/Status/Status.stories.mdx
+++ b/packages/core/helper-plugin/lib/src/components/Status/Status.stories.mdx
@@ -1,7 +1,8 @@
import { Meta, ArgsTable, Canvas, Story } from '@storybook/addon-docs';
-import { Row, Text } from '@strapi/parts';
+import { Flex } from '@strapi/parts/Flex';
+import { Text } from '@strapi/parts/Text';
import Status from './index';
@@ -14,33 +15,33 @@ This component is used in order to display the status.
diff --git a/packages/core/helper-plugin/lib/src/icons/SortIcon/SortIcon.stories.mdx b/packages/core/helper-plugin/lib/src/icons/SortIcon/SortIcon.stories.mdx
index 6006842708..79ae8bfb86 100644
--- a/packages/core/helper-plugin/lib/src/icons/SortIcon/SortIcon.stories.mdx
+++ b/packages/core/helper-plugin/lib/src/icons/SortIcon/SortIcon.stories.mdx
@@ -1,7 +1,8 @@
import { Meta, ArgsTable, Canvas, Story } from '@storybook/addon-docs';
-import { Row, Text } from '@strapi/parts';
+import { Text } from '@strapi/parts/Text';
+import { Flex } from '@strapi/parts/Flex';
import { FilterDropdown } from '@strapi/icons';
import SortIcon from './index';
@@ -15,13 +16,13 @@ This component is used in order to display the SortIcon.
diff --git a/packages/core/upload/admin/src/components/EditAssetDialog/PreviewBox/components.js b/packages/core/upload/admin/src/components/EditAssetDialog/PreviewBox/components.js
index f952479804..9793be1c6c 100644
--- a/packages/core/upload/admin/src/components/EditAssetDialog/PreviewBox/components.js
+++ b/packages/core/upload/admin/src/components/EditAssetDialog/PreviewBox/components.js
@@ -1,6 +1,6 @@
import styled from 'styled-components';
import { Box } from '@strapi/parts/Box';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { Badge } from '@strapi/parts/Badge';
export const RelativeBox = styled(Box)`
@@ -30,12 +30,12 @@ export const Wrapper = styled.div`
}
`;
-export const ActionRow = styled(Row)`
+export const ActionRow = styled(Flex)`
height: ${52 / 16}rem;
background-color: ${({ blurry }) => (blurry ? `rgba(33, 33, 52, 0.4)` : undefined)};
`;
-export const CroppingActionRow = styled(Row)`
+export const CroppingActionRow = styled(Flex)`
z-index: 1;
height: ${52 / 16}rem;
position: absolute;
diff --git a/packages/core/upload/admin/src/components/PaginationFooter/index.js b/packages/core/upload/admin/src/components/PaginationFooter/index.js
index 61ba17541a..a2a1b40dee 100644
--- a/packages/core/upload/admin/src/components/PaginationFooter/index.js
+++ b/packages/core/upload/admin/src/components/PaginationFooter/index.js
@@ -1,15 +1,16 @@
import React from 'react';
import PropTypes from 'prop-types';
-import { Box, Row } from '@strapi/parts';
+import { Box } from '@strapi/parts/Box';
+import { Flex } from '@strapi/parts/Flex';
import { PaginationURLQuery, PageSizeURLQuery } from '@strapi/helper-plugin';
export const PaginationFooter = ({ pagination }) => {
return (
-
+
-
+
);
};
diff --git a/packages/core/upload/admin/src/components/UploadAssetDialog/AddAssetStep/FromComputerForm.js b/packages/core/upload/admin/src/components/UploadAssetDialog/AddAssetStep/FromComputerForm.js
index f5cb0e9d83..7181e21554 100644
--- a/packages/core/upload/admin/src/components/UploadAssetDialog/AddAssetStep/FromComputerForm.js
+++ b/packages/core/upload/admin/src/components/UploadAssetDialog/AddAssetStep/FromComputerForm.js
@@ -3,7 +3,7 @@ import React, { useRef } from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { Box } from '@strapi/parts/Box';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { H3 } from '@strapi/parts/Text';
import { ModalFooter } from '@strapi/parts/ModalLayout';
import { Button } from '@strapi/parts/Button';
@@ -13,7 +13,7 @@ import { getTrad } from '../../../utils';
import { typeFromMime } from '../../../utils/typeFromMime';
import { AssetSource } from '../../../constants';
-const Wrapper = styled(Row)`
+const Wrapper = styled(Flex)`
flex-direction: column;
`;
@@ -76,7 +76,7 @@ export const FromComputerForm = ({ onClose, onAddAssets }) => {
background="neutral100"
position="relative"
>
-
+
@@ -117,7 +117,7 @@ export const FromComputerForm = ({ onClose, onAddAssets }) => {
-
+
diff --git a/packages/core/upload/admin/src/components/UploadAssetDialog/PendingAssetStep/PendingAssetStep.js b/packages/core/upload/admin/src/components/UploadAssetDialog/PendingAssetStep/PendingAssetStep.js
index bdfe42d246..3a45140797 100644
--- a/packages/core/upload/admin/src/components/UploadAssetDialog/PendingAssetStep/PendingAssetStep.js
+++ b/packages/core/upload/admin/src/components/UploadAssetDialog/PendingAssetStep/PendingAssetStep.js
@@ -4,7 +4,7 @@ import { ModalHeader, ModalBody, ModalFooter } from '@strapi/parts/ModalLayout';
import { ButtonText, Text } from '@strapi/parts/Text';
import { Button } from '@strapi/parts/Button';
import { useIntl } from 'react-intl';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { Stack } from '@strapi/parts/Stack';
import { Grid, GridItem } from '@strapi/parts/Grid';
import { KeyboardNavigable } from '@strapi/parts/KeyboardNavigable';
@@ -69,7 +69,7 @@ export const PendingAssetStep = ({
-
+
{formatMessage(
@@ -93,7 +93,7 @@ export const PendingAssetStep = ({
defaultMessage: 'Upload new asset',
})}
-
+
{assets.map(asset => {
diff --git a/packages/core/upload/admin/src/components/UploadProgress/index.js b/packages/core/upload/admin/src/components/UploadProgress/index.js
index e74b5e026b..972f571ea2 100644
--- a/packages/core/upload/admin/src/components/UploadProgress/index.js
+++ b/packages/core/upload/admin/src/components/UploadProgress/index.js
@@ -4,11 +4,11 @@ import styled from 'styled-components';
import CloseAlertIcon from '@strapi/icons/CloseAlertIcon';
import { Text } from '@strapi/parts/Text';
import { Box } from '@strapi/parts/Box';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { ProgressBar } from '@strapi/parts/ProgressBar';
import { useIntl } from 'react-intl';
-const BoxWrapper = styled(Row)`
+const BoxWrapper = styled(Flex)`
width: 100%;
height: 100%;
flex-direction: column;
diff --git a/packages/core/upload/admin/src/pages/SettingsPage/index.js b/packages/core/upload/admin/src/pages/SettingsPage/index.js
index 908a23e288..1ac27a8332 100644
--- a/packages/core/upload/admin/src/pages/SettingsPage/index.js
+++ b/packages/core/upload/admin/src/pages/SettingsPage/index.js
@@ -10,7 +10,7 @@ import {
} from '@strapi/helper-plugin';
import CheckIcon from '@strapi/icons/CheckIcon';
import { Box } from '@strapi/parts/Box';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { ToggleInput } from '@strapi/parts/ToggleInput';
import { H3 } from '@strapi/parts/Text';
import { Button } from '@strapi/parts/Button';
@@ -154,14 +154,14 @@ export const SettingsPage = () => {
-
+
{formatMessage({
id: getTrad('settings.section.image.label'),
defaultMessage: 'Image',
})}
-
+
{
{doc.generatedDate}
|
-
+
{
/>
)}
-
+
|
))}
diff --git a/packages/plugins/i18n/admin/src/components/CMEditViewInjectedComponents/CMEditViewCopyLocale/index.js b/packages/plugins/i18n/admin/src/components/CMEditViewInjectedComponents/CMEditViewCopyLocale/index.js
index b8cf543f04..39c38beadc 100644
--- a/packages/plugins/i18n/admin/src/components/CMEditViewInjectedComponents/CMEditViewCopyLocale/index.js
+++ b/packages/plugins/i18n/admin/src/components/CMEditViewInjectedComponents/CMEditViewCopyLocale/index.js
@@ -8,7 +8,7 @@ import { Select, Option } from '@strapi/parts/Select';
import { Button } from '@strapi/parts/Button';
import { Box } from '@strapi/parts/Box';
import { Typography, Text } from '@strapi/parts/Text';
-import { Row } from '@strapi/parts/Row';
+import { Flex } from '@strapi/parts/Flex';
import { Stack } from '@strapi/parts/Stack';
import AlertWarningIcon from '@strapi/icons/AlertWarningIcon';
import Duplicate from '@strapi/icons/Duplicate';
@@ -104,19 +104,19 @@ const Content = ({ appLocales, currentLocale, localizations, readPermissions })
type="button"
onClick={handleToggle}
>
-
+
{formatMessage({
id: getTrad('CMEditViewCopyLocale.copy-text'),
defaultMessage: 'Fill in from another locale',
})}
-
+
{isOpen && (