diff --git a/.changeset/silly-meals-hang.md b/.changeset/silly-meals-hang.md new file mode 100644 index 00000000000..bb5eedc4238 --- /dev/null +++ b/.changeset/silly-meals-hang.md @@ -0,0 +1,6 @@ +--- +'@shopify/polaris': minor +'polaris.shopify.com': minor +--- + +Renamed `AlphaStack` to `VerticalStack` diff --git a/polaris-react/src/components/AccountConnection/AccountConnection.tsx b/polaris-react/src/components/AccountConnection/AccountConnection.tsx index 67eb3117682..0f4af011aff 100644 --- a/polaris-react/src/components/AccountConnection/AccountConnection.tsx +++ b/polaris-react/src/components/AccountConnection/AccountConnection.tsx @@ -8,7 +8,7 @@ import {AlphaCard} from '../AlphaCard'; import {Box} from '../Box'; import {Inline} from '../Inline'; import {Text} from '../Text'; -import {AlphaStack} from '../AlphaStack'; +import {VerticalStack} from '../VerticalStack'; export interface AccountConnectionProps { /** Content to display as title */ @@ -73,10 +73,10 @@ export function AccountConnection({ {avatarMarkup} - + {titleMarkup} {detailsMarkup} - + {termsOfServiceMarkup} diff --git a/polaris-react/src/components/AlphaCard/AlphaCard.stories.tsx b/polaris-react/src/components/AlphaCard/AlphaCard.stories.tsx index fd06c277dde..66501686962 100644 --- a/polaris-react/src/components/AlphaCard/AlphaCard.stories.tsx +++ b/polaris-react/src/components/AlphaCard/AlphaCard.stories.tsx @@ -2,7 +2,7 @@ import React from 'react'; import type {ComponentMeta} from '@storybook/react'; import { AlphaCard, - AlphaStack, + VerticalStack, Bleed, Box, Divider, @@ -17,12 +17,12 @@ export default { export function Default() { return ( - + Online store dashboard

View a summary of your online store’s performance.

-
+
); } @@ -30,12 +30,12 @@ export function Default() { export function WithBackgroundSubdued() { return ( - + Online store dashboard

View a summary of your online store’s performance.

-
+
); } @@ -43,12 +43,12 @@ export function WithBackgroundSubdued() { export function WithBorderRadiusRoundedAbove() { return ( - + Online store dashboard

View a summary of your online store’s performance.

-
+
); } @@ -56,12 +56,12 @@ export function WithBorderRadiusRoundedAbove() { export function WithResponsivePadding() { return ( - + Online store dashboard

View a summary of your online store’s performance.

-
+
); } @@ -69,7 +69,7 @@ export function WithResponsivePadding() { export function WithSubduedSection() { return ( - + Staff accounts @@ -79,14 +79,14 @@ export function WithSubduedSection() { Ezequiel Manno - + - + Deactivated staff accounts @@ -94,7 +94,7 @@ export function WithSubduedSection() { Felix Crafford Ezequiel Manno - + diff --git a/polaris-react/src/components/AlphaFilters/components/FilterPill/FilterPill.tsx b/polaris-react/src/components/AlphaFilters/components/FilterPill/FilterPill.tsx index 4d0cb167c8c..d69144fb506 100644 --- a/polaris-react/src/components/AlphaFilters/components/FilterPill/FilterPill.tsx +++ b/polaris-react/src/components/AlphaFilters/components/FilterPill/FilterPill.tsx @@ -5,7 +5,7 @@ import {useI18n} from '../../../../utilities/i18n'; import {useToggle} from '../../../../utilities/use-toggle'; import {Popover} from '../../../Popover'; import {Button} from '../../../Button'; -import {AlphaStack} from '../../../AlphaStack'; +import {VerticalStack} from '../../../VerticalStack'; import {Icon} from '../../../Icon'; import {Text} from '../../../Text'; import {Inline} from '../../../Inline'; @@ -174,10 +174,10 @@ export function FilterPill({ >
- + {filter} {clearButtonMarkup} - +
diff --git a/polaris-react/src/components/AlphaStack/index.ts b/polaris-react/src/components/AlphaStack/index.ts deleted file mode 100644 index 832515641aa..00000000000 --- a/polaris-react/src/components/AlphaStack/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './AlphaStack'; diff --git a/polaris-react/src/components/Banner/Banner.stories.tsx b/polaris-react/src/components/Banner/Banner.stories.tsx index bfefc6826f1..c2e02e3915f 100644 --- a/polaris-react/src/components/Banner/Banner.stories.tsx +++ b/polaris-react/src/components/Banner/Banner.stories.tsx @@ -1,7 +1,7 @@ import React, {useCallback, useEffect, useRef, useState} from 'react'; import type {ComponentMeta} from '@storybook/react'; import { - AlphaStack, + VerticalStack, Banner, Button, LegacyCard, @@ -193,7 +193,7 @@ export function InACard() { export function WithEndJustifiedContent() { return ( - + Deployment failed in 5min @@ -203,7 +203,7 @@ export function WithEndJustifiedContent() {

This order was archived on March 7, 2017 at 3:12pm EDT.

-
+
); } diff --git a/polaris-react/src/components/Box/Box.stories.tsx b/polaris-react/src/components/Box/Box.stories.tsx index 0c5108f40c0..47df1d71ca4 100644 --- a/polaris-react/src/components/Box/Box.stories.tsx +++ b/polaris-react/src/components/Box/Box.stories.tsx @@ -1,6 +1,6 @@ import React from 'react'; import type {ComponentMeta} from '@storybook/react'; -import {AlphaStack, Box, Icon} from '@shopify/polaris'; +import {VerticalStack, Box, Icon} from '@shopify/polaris'; import {PaintBrushMajor} from '@shopify/polaris-icons'; export default { @@ -33,7 +33,7 @@ export function WithBorderRadius() { export function WithResponsivePadding() { return ( - + @@ -64,6 +64,6 @@ export function WithResponsivePadding() { - + ); } diff --git a/polaris-react/src/components/ChoiceList/ChoiceList.tsx b/polaris-react/src/components/ChoiceList/ChoiceList.tsx index 2ef38e364a5..47a17c6cc71 100644 --- a/polaris-react/src/components/ChoiceList/ChoiceList.tsx +++ b/polaris-react/src/components/ChoiceList/ChoiceList.tsx @@ -5,7 +5,7 @@ import type {Error} from '../../types'; import {Checkbox} from '../Checkbox'; import {RadioButton} from '../RadioButton'; import {InlineError, errorTextID} from '../InlineError'; -import {AlphaStack} from '../AlphaStack'; +import {VerticalStack} from '../VerticalStack'; import {Box} from '../Box'; import {Bleed} from '../Bleed'; @@ -132,18 +132,18 @@ export function ChoiceList({ ); return ( - {titleMarkup} - + {choicesMarkup} - + {errorMarkup} - + ); } diff --git a/polaris-react/src/components/Divider/Divider.stories.tsx b/polaris-react/src/components/Divider/Divider.stories.tsx index c0e839d029f..cc9d8853b2c 100644 --- a/polaris-react/src/components/Divider/Divider.stories.tsx +++ b/polaris-react/src/components/Divider/Divider.stories.tsx @@ -1,6 +1,6 @@ import React from 'react'; import type {ComponentMeta} from '@storybook/react'; -import {AlphaStack, Divider, Text} from '@shopify/polaris'; +import {VerticalStack, Divider, Text} from '@shopify/polaris'; export default { component: Divider, @@ -12,7 +12,7 @@ export function Default() { export function WithBorderStyles() { return ( - + Default @@ -29,6 +29,6 @@ export function WithBorderStyles() { Transparent - + ); } diff --git a/polaris-react/src/components/DropZone/DropZone.stories.tsx b/polaris-react/src/components/DropZone/DropZone.stories.tsx index dca88c81107..e73d89c278e 100644 --- a/polaris-react/src/components/DropZone/DropZone.stories.tsx +++ b/polaris-react/src/components/DropZone/DropZone.stories.tsx @@ -7,7 +7,7 @@ import { DropZone, List, Page, - AlphaStack, + VerticalStack, Thumbnail, Inline, } from '@shopify/polaris'; @@ -31,7 +31,7 @@ export function Default() { const fileUpload = !files.length && ; const uploadedFiles = files.length > 0 && (
- + {files.map((file, index) => ( ))} - +
); @@ -87,7 +87,7 @@ export function WithImageFileUpload() { const fileUpload = !files.length && ; const uploadedFiles = files.length > 0 && ( - + {files.map((file, index) => ( ))} - + ); const errorMessage = hasError && ( @@ -123,13 +123,13 @@ export function WithImageFileUpload() { ); return ( - + {errorMessage} {uploadedFiles} {fileUpload} - + ); } @@ -186,7 +186,7 @@ export function WithDropOnPage() { const validImageTypes = ['image/gif', 'image/jpeg', 'image/png']; const uploadedFiles = files.length > 0 && ( - + {files.map((file, index) => ( ))} - + ); const uploadMessage = !uploadedFiles && ; @@ -248,7 +248,7 @@ export function AcceptsOnlySVGFiles() { ); const uploadedFiles = files.length > 0 && ( - + {files.map((file, index) => ( ))} - + ); const errorMessage = hasError && ( @@ -284,7 +284,7 @@ export function AcceptsOnlySVGFiles() { ); return ( - + {errorMessage} {uploadedFiles} - + ); } @@ -311,7 +311,7 @@ export function Nested() { const fileUpload = !files.length && ; const uploadedFiles = files.length > 0 && ( - + {files.map((file, index) => ( ))} - + ); return ( @@ -383,7 +383,7 @@ export function WithCustomFileUploadText() { ); const uploadedFiles = files.length > 0 && ( - + {files.map((file, index) => ( ))} - + ); return ( @@ -432,7 +432,7 @@ export function WithCustomFileDialogTrigger() { const validImageTypes = ['image/gif', 'image/jpeg', 'image/png']; const uploadedFiles = files.length > 0 && ( - + {files.map((file, index) => ( ))} - + ); return ( diff --git a/polaris-react/src/components/DropZone/DropZone.tsx b/polaris-react/src/components/DropZone/DropZone.tsx index ba4b8cd8c65..1a41e8325c3 100755 --- a/polaris-react/src/components/DropZone/DropZone.tsx +++ b/polaris-react/src/components/DropZone/DropZone.tsx @@ -14,7 +14,7 @@ import {isServer} from '../../utilities/target'; import {useUniqueId} from '../../utilities/unique-id'; import {useComponentDidMount} from '../../utilities/use-component-did-mount'; import {useToggle} from '../../utilities/use-toggle'; -import {AlphaStack} from '../AlphaStack'; +import {VerticalStack} from '../VerticalStack'; import {useEventListener} from '../../utilities/use-event-listener'; import {FileUpload} from './components'; @@ -368,14 +368,14 @@ export const DropZone: React.FunctionComponent & { ) { return (
- + {size === 'small' && } {(size === 'medium' || size === 'large') && ( {text} )} - +
); } diff --git a/polaris-react/src/components/DropZone/components/FileUpload/FileUpload.tsx b/polaris-react/src/components/DropZone/components/FileUpload/FileUpload.tsx index e9553e6da96..310715ea530 100755 --- a/polaris-react/src/components/DropZone/components/FileUpload/FileUpload.tsx +++ b/polaris-react/src/components/DropZone/components/FileUpload/FileUpload.tsx @@ -7,7 +7,7 @@ import {uploadArrow} from '../../images'; import {DropZoneContext} from '../../context'; import {useI18n} from '../../../../utilities/i18n'; import {createAllowMultipleKey} from '../../utils'; -import {AlphaStack} from '../../../AlphaStack'; +import {VerticalStack} from '../../../VerticalStack'; import styles from './FileUpload.scss'; @@ -55,18 +55,18 @@ export function FileUpload(props: FileUploadProps) { switch (size) { case 'large': viewMarkup = ( - + {actionMarkup} {actionHintMarkup} - + ); break; case 'medium': viewMarkup = ( - + {actionMarkup} {actionHintMarkup} - + ); break; case 'small': diff --git a/polaris-react/src/components/EmptyState/EmptyState.tsx b/polaris-react/src/components/EmptyState/EmptyState.tsx index ecde54bc02f..3f0d2b1ae68 100644 --- a/polaris-react/src/components/EmptyState/EmptyState.tsx +++ b/polaris-react/src/components/EmptyState/EmptyState.tsx @@ -7,7 +7,7 @@ import {Box} from '../Box'; import {buttonFrom} from '../Button'; import {Image} from '../Image'; import {Text} from '../Text'; -import {AlphaStack} from '../AlphaStack'; +import {VerticalStack} from '../VerticalStack'; import {Inline} from '../Inline'; import styles from './EmptyState.scss'; @@ -124,11 +124,11 @@ export function EmptyState({ const detailsMarkup = textContentMarkup || actionsMarkup || footerContentMarkup ? ( - + {textContentMarkup} {actionsMarkup} {footerContentMarkup} - + ) : null; @@ -139,10 +139,10 @@ export function EmptyState({ paddingBlockStart="5" paddingBlockEnd="16" > - + {imageMarkup} {detailsMarkup} - + ); } diff --git a/polaris-react/src/components/Grid/Grid.tsx b/polaris-react/src/components/Grid/Grid.tsx index f51e65a0bc8..cdaaf2a9680 100644 --- a/polaris-react/src/components/Grid/Grid.tsx +++ b/polaris-react/src/components/Grid/Grid.tsx @@ -26,7 +26,6 @@ export interface GridProps { gap?: Gap; children?: React.ReactNode; } - export const Grid: React.FunctionComponent & { Cell: typeof Cell; } = function Grid({gap, areas, children, columns}: GridProps) { diff --git a/polaris-react/src/components/Grid/components/Cell/Cell.tsx b/polaris-react/src/components/Grid/components/Cell/Cell.tsx index 6910b7785fc..1ff467c595a 100644 --- a/polaris-react/src/components/Grid/components/Cell/Cell.tsx +++ b/polaris-react/src/components/Grid/components/Cell/Cell.tsx @@ -30,7 +30,6 @@ export interface CellProps { row?: Cell; children?: React.ReactNode; } - export function Cell({ area: gridArea, column, diff --git a/polaris-react/src/components/Icon/Icon.stories.tsx b/polaris-react/src/components/Icon/Icon.stories.tsx index 6c6bcf4822d..c82f2380d94 100644 --- a/polaris-react/src/components/Icon/Icon.stories.tsx +++ b/polaris-react/src/components/Icon/Icon.stories.tsx @@ -1,6 +1,6 @@ import React from 'react'; import type {ComponentMeta} from '@storybook/react'; -import {AlphaStack, Box, Icon} from '@shopify/polaris'; +import {VerticalStack, Box, Icon} from '@shopify/polaris'; import type {BoxProps, IconProps} from '@shopify/polaris'; import {CirclePlusMinor} from '@shopify/polaris-icons'; @@ -45,13 +45,13 @@ export function WithBackdrop() { ); return ( - + - + ); } diff --git a/polaris-react/src/components/SettingToggle/SettingToggle.stories.tsx b/polaris-react/src/components/SettingToggle/SettingToggle.stories.tsx index 99ee2a3a62d..e791cc97ade 100644 --- a/polaris-react/src/components/SettingToggle/SettingToggle.stories.tsx +++ b/polaris-react/src/components/SettingToggle/SettingToggle.stories.tsx @@ -8,7 +8,7 @@ import { AlphaCard, Button, Badge, - AlphaStack, + VerticalStack, useBreakpoints, } from '@shopify/polaris'; import {CircleInformationMajor} from '@shopify/polaris-icons'; @@ -119,7 +119,7 @@ export function WithPrimitiveComponents() { ); const descriptionMarkup = ( - + {description} @@ -128,22 +128,22 @@ export function WithPrimitiveComponents() { {actionMarkup} ) : null} - + ); return ( - + - + {headerMarkup} {descriptionMarkup} - + Your checkout is only accepting test payments. - + ); } @@ -228,7 +228,7 @@ export function WithPrimitiveComponentsAndLongTitle() { ); const descriptionMarkup = ( - + {description} @@ -237,22 +237,22 @@ export function WithPrimitiveComponentsAndLongTitle() { {actionMarkup} ) : null} - + ); return ( - + - + {headerMarkup} {descriptionMarkup} - + Your checkout is only accepting test payments. - + ); } diff --git a/polaris-react/src/components/SkeletonPage/SkeletonPage.tsx b/polaris-react/src/components/SkeletonPage/SkeletonPage.tsx index e117128f925..d70a10a6a2d 100644 --- a/polaris-react/src/components/SkeletonPage/SkeletonPage.tsx +++ b/polaris-react/src/components/SkeletonPage/SkeletonPage.tsx @@ -3,7 +3,7 @@ import React from 'react'; import {useI18n} from '../../utilities/i18n'; import {Box} from '../Box'; import {Inline} from '../Inline'; -import {AlphaStack} from '../AlphaStack'; +import {VerticalStack} from '../VerticalStack'; import styles from './SkeletonPage.scss'; @@ -70,7 +70,7 @@ export function SkeletonPage({ ) : null; return ( - + - + {children} - + - + ); } diff --git a/polaris-react/src/components/Stack/Stack.tsx b/polaris-react/src/components/Stack/Stack.tsx index 28374f296c5..23c743d92df 100644 --- a/polaris-react/src/components/Stack/Stack.tsx +++ b/polaris-react/src/components/Stack/Stack.tsx @@ -41,7 +41,7 @@ export interface StackProps { distribution?: Distribution; } -/** @deprecated Use LegacyStack or AlphaStack instead. */ +/** @deprecated Use LegacyStack or VerticalStack instead. */ export const Stack = memo(function Stack({ children, vertical, @@ -53,7 +53,7 @@ export const Stack = memo(function Stack({ if (process.env.NODE_ENV === 'development') { // eslint-disable-next-line no-console console.warn( - 'Deprecation: is deprecated. This component will be removed in a future major version of Polaris. Use or instead.', + 'Deprecation: is deprecated. This component will be removed in a future major version of Polaris. Use or instead.', ); } diff --git a/polaris-react/src/components/Stack/components/Item/Item.tsx b/polaris-react/src/components/Stack/components/Item/Item.tsx index 360ab3967c0..85725a9a879 100644 --- a/polaris-react/src/components/Stack/components/Item/Item.tsx +++ b/polaris-react/src/components/Stack/components/Item/Item.tsx @@ -13,12 +13,12 @@ export interface ItemProps { */ } -/** @deprecated Use LegacyStack or AlphaStack instead. */ +/** @deprecated Use LegacyStack or VerticalStack instead. */ export function Item({children, fill}: ItemProps) { if (process.env.NODE_ENV === 'development') { // eslint-disable-next-line no-console console.warn( - 'Deprecation: is deprecated. This component will be removed in a future major version of Polaris. Use or instead.', + 'Deprecation: is deprecated. This component will be removed in a future major version of Polaris. Use or instead.', ); } diff --git a/polaris-react/src/components/TextContainer/TextContainer.tsx b/polaris-react/src/components/TextContainer/TextContainer.tsx index c4a938912df..9ef6b4e0555 100644 --- a/polaris-react/src/components/TextContainer/TextContainer.tsx +++ b/polaris-react/src/components/TextContainer/TextContainer.tsx @@ -13,7 +13,7 @@ export interface TextContainerProps { children?: React.ReactNode; } -/** @deprecated Use AlphaStack instead */ +/** @deprecated Use VerticalStack instead */ export function TextContainer({spacing, children}: TextContainerProps) { const className = classNames( styles.TextContainer, diff --git a/polaris-react/src/components/AlphaStack/AlphaStack.scss b/polaris-react/src/components/VerticalStack/VerticalStack.scss similarity index 97% rename from polaris-react/src/components/AlphaStack/AlphaStack.scss rename to polaris-react/src/components/VerticalStack/VerticalStack.scss index 91bbbc41757..507a0c57fae 100644 --- a/polaris-react/src/components/AlphaStack/AlphaStack.scss +++ b/polaris-react/src/components/VerticalStack/VerticalStack.scss @@ -1,6 +1,6 @@ @import '../../styles/common'; -.AlphaStack { +.VerticalStack { @include responsive-props('stack', 'gap', 'gap'); // stylelint-disable -- Polaris component custom properties --pc-stack-align: initial; diff --git a/polaris-react/src/components/AlphaStack/AlphaStack.stories.tsx b/polaris-react/src/components/VerticalStack/VerticalStack.stories.tsx similarity index 79% rename from polaris-react/src/components/AlphaStack/AlphaStack.stories.tsx rename to polaris-react/src/components/VerticalStack/VerticalStack.stories.tsx index a18c12b482f..76ea43a473e 100644 --- a/polaris-react/src/components/AlphaStack/AlphaStack.stories.tsx +++ b/polaris-react/src/components/VerticalStack/VerticalStack.stories.tsx @@ -1,14 +1,14 @@ import React from 'react'; import type {ComponentMeta} from '@storybook/react'; -import {Box, AlphaStack} from '@shopify/polaris'; +import {Box, VerticalStack} from '@shopify/polaris'; export default { - component: AlphaStack, -} as ComponentMeta; + component: VerticalStack, +} as ComponentMeta; export function Default() { return ( - + 01 @@ -18,13 +18,13 @@ export function Default() { 03 - + ); } export function WithGap() { return ( - + 01 @@ -34,13 +34,13 @@ export function WithGap() { 03 - + ); } export function WithResponsiveGap() { return ( - + 01 @@ -50,14 +50,14 @@ export function WithResponsiveGap() { 03 - + ); } export function WithAlignStart() { return (
- + 01 @@ -67,7 +67,7 @@ export function WithAlignStart() { 03 - +
); } @@ -75,7 +75,7 @@ export function WithAlignStart() { export function WithAlignCenter() { return (
- + 01 @@ -85,7 +85,7 @@ export function WithAlignCenter() { 03 - +
); } @@ -93,7 +93,7 @@ export function WithAlignCenter() { export function WithAlignEnd() { return (
- + 01 @@ -103,7 +103,7 @@ export function WithAlignEnd() { 03 - +
); } @@ -111,7 +111,7 @@ export function WithAlignEnd() { export function WithAlignSpaceAround() { return (
- + 01 @@ -121,7 +121,7 @@ export function WithAlignSpaceAround() { 03 - +
); } @@ -129,7 +129,7 @@ export function WithAlignSpaceAround() { export function WithAlignSpaceBetween() { return (
- + 01 @@ -139,7 +139,7 @@ export function WithAlignSpaceBetween() { 03 - +
); } @@ -147,7 +147,7 @@ export function WithAlignSpaceBetween() { export function WithAlignSpaceEvenly() { return (
- + 01 @@ -157,14 +157,14 @@ export function WithAlignSpaceEvenly() { 03 - +
); } export function WithInlineAlignStart() { return ( - + 01 @@ -174,13 +174,13 @@ export function WithInlineAlignStart() { 03 - + ); } export function WithInlineAlignCenter() { return ( - + 01 @@ -190,13 +190,13 @@ export function WithInlineAlignCenter() { 03 - + ); } export function WithInlineAlignEnd() { return ( - + 01 @@ -206,6 +206,6 @@ export function WithInlineAlignEnd() { 03 - + ); } diff --git a/polaris-react/src/components/AlphaStack/AlphaStack.tsx b/polaris-react/src/components/VerticalStack/VerticalStack.tsx similarity index 89% rename from polaris-react/src/components/AlphaStack/AlphaStack.tsx rename to polaris-react/src/components/VerticalStack/VerticalStack.tsx index 0439f6e1c34..e2bd5f424eb 100644 --- a/polaris-react/src/components/AlphaStack/AlphaStack.tsx +++ b/polaris-react/src/components/VerticalStack/VerticalStack.tsx @@ -8,7 +8,7 @@ import { } from '../../utilities/css'; import type {ResponsiveProp} from '../../utilities/css'; -import styles from './AlphaStack.scss'; +import styles from './VerticalStack.scss'; type Align = | 'start' @@ -24,7 +24,7 @@ type Element = 'div' | 'ul' | 'ol' | 'fieldset'; type Gap = ResponsiveProp; -export interface AlphaStackProps extends React.AriaAttributes { +export interface VerticalStackProps extends React.AriaAttributes { children?: React.ReactNode; /** HTML Element type * @default 'div' @@ -44,7 +44,7 @@ export interface AlphaStackProps extends React.AriaAttributes { reverseOrder?: boolean; } -export const AlphaStack = ({ +export const VerticalStack = ({ as = 'div', children, align, @@ -53,9 +53,9 @@ export const AlphaStack = ({ id, reverseOrder = false, ...restProps -}: AlphaStackProps) => { +}: VerticalStackProps) => { const className = classNames( - styles.AlphaStack, + styles.VerticalStack, (as === 'ul' || as === 'ol') && styles.listReset, as === 'fieldset' && styles.fieldsetReset, ); diff --git a/polaris-react/src/components/VerticalStack/index.ts b/polaris-react/src/components/VerticalStack/index.ts new file mode 100644 index 00000000000..70179f40186 --- /dev/null +++ b/polaris-react/src/components/VerticalStack/index.ts @@ -0,0 +1 @@ +export * from './VerticalStack'; diff --git a/polaris-react/src/components/AlphaStack/tests/AlphaStack.test.tsx b/polaris-react/src/components/VerticalStack/tests/VerticalStack.tsx similarity index 75% rename from polaris-react/src/components/AlphaStack/tests/AlphaStack.test.tsx rename to polaris-react/src/components/VerticalStack/tests/VerticalStack.tsx index c8347e5028c..145fee59041 100644 --- a/polaris-react/src/components/AlphaStack/tests/AlphaStack.test.tsx +++ b/polaris-react/src/components/VerticalStack/tests/VerticalStack.tsx @@ -1,20 +1,20 @@ import React from 'react'; import {mountWithApp} from 'tests/utilities'; -import {AlphaStack} from '../AlphaStack'; +import {VerticalStack} from '../VerticalStack'; const text = 'This is a stack'; const children =

{text}

; -describe('', () => { +describe('', () => { it('renders children', () => { - const stack = mountWithApp({children}); + const stack = mountWithApp({children}); expect(stack).toContainReactComponent('p', {children: text}); }); it('renders custom properties by default', () => { - const stack = mountWithApp({children}); + const stack = mountWithApp({children}); expect(stack).toContainReactComponent('div', { style: expect.objectContaining({ @@ -25,9 +25,9 @@ describe('', () => { it('overrides custom properties if they are passed in', () => { const stack = mountWithApp( - + {children} - , + , ); expect(stack).toContainReactComponent('div', { @@ -40,7 +40,7 @@ describe('', () => { it('accepts gap based on breakpoints', () => { const stack = mountWithApp( - {children}, + {children}, ); expect(stack).toContainReactComponent('div', { diff --git a/polaris-react/src/index.ts b/polaris-react/src/index.ts index 135f26a4023..c943c005c1d 100644 --- a/polaris-react/src/index.ts +++ b/polaris-react/src/index.ts @@ -54,8 +54,8 @@ export type {AlphaCardProps} from './components/AlphaCard'; export {AlphaFilters} from './components/AlphaFilters'; export type {AlphaFiltersProps} from './components/AlphaFilters'; -export {AlphaStack} from './components/AlphaStack'; -export type {AlphaStackProps} from './components/AlphaStack'; +export {VerticalStack} from './components/VerticalStack'; +export type {VerticalStackProps} from './components/VerticalStack'; export {AlphaTabs} from './components/AlphaTabs'; export type {AlphaTabsProps, AlphaTabProps} from './components/AlphaTabs'; diff --git a/polaris.shopify.com/content/components/deprecated/text-container.md b/polaris.shopify.com/content/components/deprecated/text-container.md index 51235b3f528..d65af769123 100644 --- a/polaris.shopify.com/content/components/deprecated/text-container.md +++ b/polaris.shopify.com/content/components/deprecated/text-container.md @@ -13,7 +13,7 @@ keywords: - padding status: value: Deprecated - message: The TextContainer is a simple layout component which was made redundant by the AlphaStack component. Use AlphaStack with `gap` values of 2, 4, and 5 to replicate layouts. + message: The TextContainer is a simple layout component which was made redundant by the VerticalStack component. Use VerticalStack with `gap` values of 2, 4, and 5 to replicate layouts. examples: - fileName: text-container-default.tsx title: Default @@ -37,4 +37,4 @@ The closer the spacing, the closer the relationship between content topics. The ## Related components -- For more layout variations, or if you’re looking to vertically space components other than text, use [Stack](https://polaris.shopify.com/components/layout-and-structure/alpha-stack). +- For more layout variations, or if you’re looking to vertically space components other than text, use [Stack](https://polaris.shopify.com/components/layout-and-structure/vertical-stack). diff --git a/polaris.shopify.com/content/components/layout-and-structure/grid.md b/polaris.shopify.com/content/components/layout-and-structure/grid.md index 83384df4c4e..3eeb41ed1b4 100644 --- a/polaris.shopify.com/content/components/layout-and-structure/grid.md +++ b/polaris.shopify.com/content/components/layout-and-structure/grid.md @@ -33,5 +33,5 @@ examples: ## Related components -- To lay out a set of smaller components in a row, [use the stack component](https://polaris.shopify.com/components/layout-and-structure/alpha-stack) +- To lay out a set of smaller components in a row, [use the stack component](https://polaris.shopify.com/components/layout-and-structure/vertical-stack) - To lay out form fields, [use the form layout component](https://polaris.shopify.com/components/form-layout) diff --git a/polaris.shopify.com/content/components/layout-and-structure/inline.md b/polaris.shopify.com/content/components/layout-and-structure/inline.md index 858dff6a27f..78b19e0444e 100644 --- a/polaris.shopify.com/content/components/layout-and-structure/inline.md +++ b/polaris.shopify.com/content/components/layout-and-structure/inline.md @@ -39,7 +39,7 @@ examples: ## Related components - To create the large-scale structure of pages, [use the Columns component](https://polaris.shopify.com/components/layout-and-structure/columns) -- To display elements vertically, [use the AlphaStack component](https://polaris.shopify.com/components/alphastack) +- To display elements vertically, [use the VerticalStack component](https://polaris.shopify.com/components/vertical-stack) ## Related resources diff --git a/polaris.shopify.com/content/components/layout-and-structure/layout.md b/polaris.shopify.com/content/components/layout-and-structure/layout.md index cd76f39bc4b..ecda59e74ae 100644 --- a/polaris.shopify.com/content/components/layout-and-structure/layout.md +++ b/polaris.shopify.com/content/components/layout-and-structure/layout.md @@ -81,5 +81,5 @@ Annotated section descriptions should: ## Related components - To visually group content in a layout section, [use the card component](https://polaris.shopify.com/components/layout-and-structure/alpha-card) -- To lay out a set of smaller components in a row, [use the stack component](https://polaris.shopify.com/components/layout-and-structure/alpha-stack) +- To lay out a set of smaller components in a row, [use the stack component](https://polaris.shopify.com/components/layout-and-structure/vertical-stack) - To lay out form fields, [use the form layout component](https://polaris.shopify.com/components/form-layout) diff --git a/polaris.shopify.com/content/components/layout-and-structure/legacy-stack.md b/polaris.shopify.com/content/components/layout-and-structure/legacy-stack.md index e521cff787d..6763bd4671b 100644 --- a/polaris.shopify.com/content/components/layout-and-structure/legacy-stack.md +++ b/polaris.shopify.com/content/components/layout-and-structure/legacy-stack.md @@ -20,7 +20,7 @@ keywords: - legacy stack status: value: Legacy - message: This is a legacy component and will be deprecated. The new [AlphaStack component](/components/layout-and-structure/alpha-stack) can be used in combination with the new layout primitives to achieve similar results to LegacyStack. Learn more about our [component lifecycles](/getting-started/components-lifecycle). + message: This is a legacy component and will be deprecated. The new [VerticalStack component](/components/layout-and-structure/vertical-stack) can be used in combination with the new layout primitives to achieve similar results to LegacyStack. Learn more about our [component lifecycles](/getting-started/components-lifecycle). examples: - fileName: legacy-stack-default.tsx title: Default diff --git a/polaris.shopify.com/content/components/layout-and-structure/alpha-stack.md b/polaris.shopify.com/content/components/layout-and-structure/vertical-stack.md similarity index 74% rename from polaris.shopify.com/content/components/layout-and-structure/alpha-stack.md rename to polaris.shopify.com/content/components/layout-and-structure/vertical-stack.md index 2f0040fb971..4c483902f2f 100644 --- a/polaris.shopify.com/content/components/layout-and-structure/alpha-stack.md +++ b/polaris.shopify.com/content/components/layout-and-structure/vertical-stack.md @@ -1,5 +1,5 @@ --- -title: Alpha stack +title: Vertical stack description: Use to display children vertically and horizontally with full width by default. Based on CSS Flexbox. category: Layout and structure keywords: @@ -15,15 +15,15 @@ status: value: Alpha message: This component is a work in progress and ready for exploratory usage, with breaking changes expected in minor version updates. Please use with caution. Learn more about our [component lifecycles](/getting-started/components-lifecycle). examples: - - fileName: alpha-stack-with-gap.tsx + - fileName: vertical-stack-with-gap.tsx title: Gap description: >- Control the vertical space between children using the `gap` prop. - - fileName: alpha-stack-with-align.tsx + - fileName: vertical-stack-with-align.tsx title: Align description: >- Control the vertical alignment of children using the `align` prop. - - fileName: alpha-stack-with-inline-align.tsx + - fileName: vertical-stack-with-inline-align.tsx title: Inline align description: >- Control the horizontal alignment of children using the `inlineAlign` prop. @@ -44,4 +44,4 @@ Stacks should: ## Related resources -- AlphaStack props are named following the convention of CSS logical properties, such as 'padding-inline-start' and 'padding-block-start'. Learn more about [CSS logicial properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties). +- VerticalStack props are named following the convention of CSS logical properties, such as 'padding-inline-start' and 'padding-block-start'. Learn more about [CSS logicial properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties). diff --git a/polaris.shopify.com/content/components/lists/list.md b/polaris.shopify.com/content/components/lists/list.md index 5cfacabf5ba..f3398e4cd44 100644 --- a/polaris.shopify.com/content/components/lists/list.md +++ b/polaris.shopify.com/content/components/lists/list.md @@ -88,4 +88,4 @@ Every item in a list should: The list component outputs list items (`
  • `) inside a list wrapper (`
      ` for bullet lists or `
        ` for numbered lists). By default, list items are conveyed as a group of related elements to assistive technology users. -To group items for layout only, consider using the [stack component](https://polaris.shopify.com/components/layout-and-structure/alpha-stack). +To group items for layout only, consider using the [stack component](https://polaris.shopify.com/components/layout-and-structure/vertical-stack). diff --git a/polaris.shopify.com/content/patterns/app-settings-layout/variants/default.md b/polaris.shopify.com/content/patterns/app-settings-layout/variants/default.md index 3b5df623888..2565d54f343 100644 --- a/polaris.shopify.com/content/patterns/app-settings-layout/variants/default.md +++ b/polaris.shopify.com/content/patterns/app-settings-layout/variants/default.md @@ -24,7 +24,7 @@ hideFromNav: true ## Using this pattern -This pattern uses the [`AlphaStack`](/components/layout-and-structure/alpha-stack), [`AlphaCard`](/components/layout-and-structure/alpha-card), [`Columns`](/components/layout-and-structure/columns) and [`Box`](/components/layout-and-structure/box) components. +This pattern uses the [`VerticalStack`](/components/layout-and-structure/vertical-stack), [`AlphaCard`](/components/layout-and-structure/alpha-card), [`Columns`](/components/layout-and-structure/columns) and [`Box`](/components/layout-and-structure/box) components. ```javascript {"type":"previewContext","for":"example"} @@ -48,27 +48,27 @@ function AppSettingsLayoutExample() { }, ]} > - + - + InterJambs Interjambs are the rounded protruding bits of your puzzlie piece - + - + - + {smUp ? : null} @@ -78,23 +78,23 @@ function AppSettingsLayoutExample() { paddingInlineStart={{xs: 4, sm: 0}} paddingInlineEnd={{xs: 4, sm: 0}} > - + Dimensions Interjambs are the rounded protruding bits of your puzzlie piece - + - + - + - + ); } diff --git a/polaris.shopify.com/content/patterns/date-picking/variants/date-range.md b/polaris.shopify.com/content/patterns/date-picking/variants/date-range.md index e463622c57e..4f91c57ba09 100644 --- a/polaris.shopify.com/content/patterns/date-picking/variants/date-range.md +++ b/polaris.shopify.com/content/patterns/date-picking/variants/date-range.md @@ -32,7 +32,7 @@ This enables merchants to select a date range. ## Using this pattern -This pattern uses the [`AlphaStack`](/components/layout-and-structure/alpha-stack), [`Box`](/components/layout-and-structure/box), [`Button`](/components/actions/button), [`Columns`](/components/layout-and-structure/columns), [`DatePicker`](/components/selection-and-input/date-picker), [`Inline`](/components/layout-and-structure/inline), [`OptionList`](/components/lists/option-list), [`Popover`](/components/overlays/popover) and [`TextField`](/components/selection-and-input/text-field) components. +This pattern uses the [`VerticalStack`](/components/layout-and-structure/vertical-stack), [`Box`](/components/layout-and-structure/box), [`Button`](/components/actions/button), [`Columns`](/components/layout-and-structure/columns), [`DatePicker`](/components/selection-and-input/date-picker), [`Inline`](/components/layout-and-structure/inline), [`OptionList`](/components/lists/option-list), [`Popover`](/components/overlays/popover) and [`TextField`](/components/selection-and-input/text-field) components. ```javascript {"type":"previewContext","for":"example"} @@ -323,7 +323,7 @@ function DateRangePicker() { )} - +
        -
        +
        diff --git a/polaris.shopify.com/content/patterns/date-picking/variants/single-date.md b/polaris.shopify.com/content/patterns/date-picking/variants/single-date.md index deb1d3060d3..d6e0d1cb04c 100644 --- a/polaris.shopify.com/content/patterns/date-picking/variants/single-date.md +++ b/polaris.shopify.com/content/patterns/date-picking/variants/single-date.md @@ -93,7 +93,7 @@ function DatePickerExample() { } }, [selectedDate]); return ( - + - + ); } ``` diff --git a/polaris.shopify.com/content/patterns/resource-details-layout/variants/default.md b/polaris.shopify.com/content/patterns/resource-details-layout/variants/default.md index 0cc79e6f02e..c82865052ca 100644 --- a/polaris.shopify.com/content/patterns/resource-details-layout/variants/default.md +++ b/polaris.shopify.com/content/patterns/resource-details-layout/variants/default.md @@ -28,7 +28,7 @@ hideFromNav: true ## Using this pattern -This pattern uses the [`AlphaCard`](/components/layout-and-structure/alpha-card), [`AlphaStack`](/components/layout-and-structure/alpha-stack), [`Columns`](/components/layout-and-structure/columns) and [`Page`](/components/layout-and-structure/page) components. +This pattern uses the [`AlphaCard`](/components/layout-and-structure/alpha-card), [`VerticalStack`](/components/layout-and-structure/vertical-stack), [`Columns`](/components/layout-and-structure/columns) and [`Page`](/components/layout-and-structure/page) components. ```javascript {"type":"previewContext","for":"example"} @@ -86,28 +86,28 @@ function ResourceDetailsLayout() { }} > - + - + - + - + - + - - + + - + @@ -118,19 +118,19 @@ function ResourceDetailsLayout() { - + - + - + - + ); diff --git a/polaris.shopify.com/content/patterns/variant.md.template b/polaris.shopify.com/content/patterns/variant.md.template index 3c1749732c3..39f94544a7a 100644 --- a/polaris.shopify.com/content/patterns/variant.md.template +++ b/polaris.shopify.com/content/patterns/variant.md.template @@ -55,7 +55,7 @@ This pattern uses the components. ```javascript {"type":"livePreview","id":"example"} - Coming Soon + Coming Soon ``` diff --git a/polaris.shopify.com/next.config.js b/polaris.shopify.com/next.config.js index 734c2a10485..7a8e5215404 100644 --- a/polaris.shopify.com/next.config.js +++ b/polaris.shopify.com/next.config.js @@ -341,8 +341,8 @@ const layoutAndStructure = [ permanent: false, }, { - source: '/components/alpha-stack', - destination: '/components/layout-and-structure/alpha-stack', + source: '/components/vertical-stack', + destination: '/components/layout-and-structure/vertical-stack', permanent: false, }, { @@ -442,7 +442,7 @@ const layoutAndStructure = [ }, { source: '/components/layout-and-structure/stack', - destination: '/components/layout-and-structure/alpha-stack', + destination: '/components/layout-and-structure/vertical-stack', permanent: false, }, ]; diff --git a/polaris.shopify.com/pages/examples/alpha-card-with-varying-padding.tsx b/polaris.shopify.com/pages/examples/alpha-card-with-varying-padding.tsx index 29c429b36c5..646d221df08 100644 --- a/polaris.shopify.com/pages/examples/alpha-card-with-varying-padding.tsx +++ b/polaris.shopify.com/pages/examples/alpha-card-with-varying-padding.tsx @@ -1,10 +1,10 @@ -import {AlphaCard, Text, AlphaStack} from '@shopify/polaris'; +import {AlphaCard, Text, VerticalStack} from '@shopify/polaris'; import React from 'react'; import {withPolarisExample} from '../../src/components/PolarisExampleWrapper'; function AlphaCardExample() { return ( - + @@ -17,7 +17,7 @@ function AlphaCardExample() { - + ); } diff --git a/polaris.shopify.com/pages/examples/bleed-specific-direction.tsx b/polaris.shopify.com/pages/examples/bleed-specific-direction.tsx index e4aefaed78c..832e1ac3dab 100644 --- a/polaris.shopify.com/pages/examples/bleed-specific-direction.tsx +++ b/polaris.shopify.com/pages/examples/bleed-specific-direction.tsx @@ -1,11 +1,11 @@ import React from 'react'; -import {AlphaStack, Bleed, Box, Text, Inline} from '@shopify/polaris'; +import {VerticalStack, Bleed, Box, Text, Inline} from '@shopify/polaris'; import {withPolarisExample} from '../../src/components/PolarisExampleWrapper'; function BleedSpecificDirectionExample() { return ( - + @@ -26,7 +26,7 @@ function BleedSpecificDirectionExample() { - + ); } diff --git a/polaris.shopify.com/pages/examples/box-with-padding.tsx b/polaris.shopify.com/pages/examples/box-with-padding.tsx index c8cb86979d6..1be15233ec2 100644 --- a/polaris.shopify.com/pages/examples/box-with-padding.tsx +++ b/polaris.shopify.com/pages/examples/box-with-padding.tsx @@ -1,11 +1,11 @@ import React from 'react'; -import {AlphaStack, Box, Text, Inline} from '@shopify/polaris'; +import {VerticalStack, Box, Text, Inline} from '@shopify/polaris'; import {withPolarisExample} from '../../src/components/PolarisExampleWrapper'; function BoxWithPaddingExample() { return ( - +
        -
        + ); } diff --git a/polaris.shopify.com/pages/examples/divider-with-border-color.tsx b/polaris.shopify.com/pages/examples/divider-with-border-color.tsx index f54419b8928..dfa662c37e1 100644 --- a/polaris.shopify.com/pages/examples/divider-with-border-color.tsx +++ b/polaris.shopify.com/pages/examples/divider-with-border-color.tsx @@ -1,11 +1,11 @@ import React from 'react'; -import {Divider, Text, AlphaStack} from '@shopify/polaris'; +import {Divider, Text, VerticalStack} from '@shopify/polaris'; import {withPolarisExample} from '../../src/components/PolarisExampleWrapper'; function DividerWithBorderColorExample() { return ( - + Default @@ -22,7 +22,7 @@ function DividerWithBorderColorExample() { Transparent - + ); } diff --git a/polaris.shopify.com/pages/examples/index-table-condensed-with-views-search-filter-sorting.tsx b/polaris.shopify.com/pages/examples/index-table-condensed-with-views-search-filter-sorting.tsx index 4f76980f4b7..b985beb26ef 100644 --- a/polaris.shopify.com/pages/examples/index-table-condensed-with-views-search-filter-sorting.tsx +++ b/polaris.shopify.com/pages/examples/index-table-condensed-with-views-search-filter-sorting.tsx @@ -9,7 +9,7 @@ import { ChoiceList, RangeSlider, Badge, - AlphaStack, + VerticalStack, Inline, } from '@shopify/polaris'; import type {IndexFiltersProps, AlphaTabProps} from '@shopify/polaris'; @@ -310,7 +310,7 @@ function IndexTableWithViewsSearchFilterSorting() { position={index} >
        - + {order} • {date} @@ -326,7 +326,7 @@ function IndexTableWithViewsSearchFilterSorting() { {paymentStatus} {fulfillmentStatus} - +
        ), diff --git a/polaris.shopify.com/pages/examples/index-table-small-screen.tsx b/polaris.shopify.com/pages/examples/index-table-small-screen.tsx index 2f3d6991b01..1cbd2e6aaeb 100644 --- a/polaris.shopify.com/pages/examples/index-table-small-screen.tsx +++ b/polaris.shopify.com/pages/examples/index-table-small-screen.tsx @@ -5,7 +5,7 @@ import { Text, Inline, Badge, - AlphaStack, + VerticalStack, } from '@shopify/polaris'; import React from 'react'; import {withPolarisExample} from '../../src/components/PolarisExampleWrapper'; @@ -60,7 +60,7 @@ function SimpleSmallScreenIndexTableExample() { position={index} >
        - + {order} • {date} @@ -76,7 +76,7 @@ function SimpleSmallScreenIndexTableExample() { {paymentStatus} {fulfillmentStatus} - +
        ), diff --git a/polaris.shopify.com/pages/examples/inline-with-align.tsx b/polaris.shopify.com/pages/examples/inline-with-align.tsx index dc2a7cde6b6..95bed782d37 100644 --- a/polaris.shopify.com/pages/examples/inline-with-align.tsx +++ b/polaris.shopify.com/pages/examples/inline-with-align.tsx @@ -1,12 +1,12 @@ import React from 'react'; -import {AlphaStack, Inline, Text, Page, Divider} from '@shopify/polaris'; +import {VerticalStack, Inline, Text, Page, Divider} from '@shopify/polaris'; import {withPolarisExample} from '../../src/components/PolarisExampleWrapper'; function InlineWithAlignExample() { return ( - + @@ -36,7 +36,7 @@ function InlineWithAlignExample() { - + ); } diff --git a/polaris.shopify.com/pages/examples/inline-with-block-align.tsx b/polaris.shopify.com/pages/examples/inline-with-block-align.tsx index 5a9c92b0252..6624df5a228 100644 --- a/polaris.shopify.com/pages/examples/inline-with-block-align.tsx +++ b/polaris.shopify.com/pages/examples/inline-with-block-align.tsx @@ -1,11 +1,11 @@ import React from 'react'; -import {Inline, Text, AlphaStack, Divider} from '@shopify/polaris'; +import {Inline, Text, VerticalStack, Divider} from '@shopify/polaris'; import {withPolarisExample} from '../../src/components/PolarisExampleWrapper'; function InlineWithBlockAlignExample() { return ( - + @@ -50,7 +50,7 @@ function InlineWithBlockAlignExample() { - + ); } diff --git a/polaris.shopify.com/pages/examples/inline-with-gap.tsx b/polaris.shopify.com/pages/examples/inline-with-gap.tsx index a2dc8ea14de..a31e4b9ada8 100644 --- a/polaris.shopify.com/pages/examples/inline-with-gap.tsx +++ b/polaris.shopify.com/pages/examples/inline-with-gap.tsx @@ -1,11 +1,11 @@ import React from 'react'; -import {Inline, AlphaStack} from '@shopify/polaris'; +import {Inline, VerticalStack} from '@shopify/polaris'; import {withPolarisExample} from '../../src/components/PolarisExampleWrapper'; function InlineWithGapExample() { return ( - + @@ -22,7 +22,7 @@ function InlineWithGapExample() { - + ); } diff --git a/polaris.shopify.com/pages/examples/setting-toggle-with-primitive-components.tsx b/polaris.shopify.com/pages/examples/setting-toggle-with-primitive-components.tsx index e1a6152b9c7..c2f84348be3 100644 --- a/polaris.shopify.com/pages/examples/setting-toggle-with-primitive-components.tsx +++ b/polaris.shopify.com/pages/examples/setting-toggle-with-primitive-components.tsx @@ -5,7 +5,7 @@ import { AlphaCard, Button, Badge, - AlphaStack, + VerticalStack, useBreakpoints, } from '@shopify/polaris'; import {CircleInformationMajor} from '@shopify/polaris-icons'; @@ -91,7 +91,7 @@ export function WithPrimitiveComponents() { ); const descriptionMarkup = ( - + {description} @@ -100,22 +100,22 @@ export function WithPrimitiveComponents() { {actionMarkup} ) : null} - + ); return ( - + - + {headerMarkup} {descriptionMarkup} - + Your checkout is only accepting test payments. - + ); } diff --git a/polaris.shopify.com/pages/examples/alpha-stack-with-align.tsx b/polaris.shopify.com/pages/examples/vertical-stack-with-align.tsx similarity index 82% rename from polaris.shopify.com/pages/examples/alpha-stack-with-align.tsx rename to polaris.shopify.com/pages/examples/vertical-stack-with-align.tsx index cceacca8dd4..7df3a9a4a81 100644 --- a/polaris.shopify.com/pages/examples/alpha-stack-with-align.tsx +++ b/polaris.shopify.com/pages/examples/vertical-stack-with-align.tsx @@ -1,34 +1,34 @@ import React from 'react'; -import {AlphaStack, Inline, Text, Divider} from '@shopify/polaris'; +import {VerticalStack, Inline, Text, Divider} from '@shopify/polaris'; import {withPolarisExample} from '../../src/components/PolarisExampleWrapper'; -function AlphaStackWithAlignExample() { +function VerticalStackWithAlignExample() { return ( <>
        - + - +
        - + - +
        - + - +
        @@ -68,4 +68,4 @@ const Placeholder = ({ ); }; -export default withPolarisExample(AlphaStackWithAlignExample); +export default withPolarisExample(VerticalStackWithAlignExample); diff --git a/polaris.shopify.com/pages/examples/alpha-stack-with-gap.tsx b/polaris.shopify.com/pages/examples/vertical-stack-with-gap.tsx similarity index 78% rename from polaris.shopify.com/pages/examples/alpha-stack-with-gap.tsx rename to polaris.shopify.com/pages/examples/vertical-stack-with-gap.tsx index 2bb44a8c807..27a94f96731 100644 --- a/polaris.shopify.com/pages/examples/alpha-stack-with-gap.tsx +++ b/polaris.shopify.com/pages/examples/vertical-stack-with-gap.tsx @@ -1,16 +1,16 @@ import React from 'react'; -import {AlphaStack} from '@shopify/polaris'; +import {VerticalStack} from '@shopify/polaris'; import {withPolarisExample} from '../../src/components/PolarisExampleWrapper'; -function AlphaStackWithGapExample() { +function VerticalStackWithGapExample() { return ( - + - + ); } @@ -40,4 +40,4 @@ const Placeholder = ({height = 'auto'}) => { ); }; -export default withPolarisExample(AlphaStackWithGapExample); +export default withPolarisExample(VerticalStackWithGapExample); diff --git a/polaris.shopify.com/pages/examples/alpha-stack-with-inline-align.tsx b/polaris.shopify.com/pages/examples/vertical-stack-with-inline-align.tsx similarity index 76% rename from polaris.shopify.com/pages/examples/alpha-stack-with-inline-align.tsx rename to polaris.shopify.com/pages/examples/vertical-stack-with-inline-align.tsx index cd4e1d6f517..1afb2022df6 100644 --- a/polaris.shopify.com/pages/examples/alpha-stack-with-inline-align.tsx +++ b/polaris.shopify.com/pages/examples/vertical-stack-with-inline-align.tsx @@ -1,30 +1,30 @@ import React from 'react'; -import {AlphaStack, Page, Inline, Text, Divider} from '@shopify/polaris'; +import {VerticalStack, Page, Inline, Text, Divider} from '@shopify/polaris'; import {withPolarisExample} from '../../src/components/PolarisExampleWrapper'; -function AlphaStackWithInlineAlignExample() { +function VerticalStackWithInlineAlignExample() { return ( - - + + - + - + - + - + - - + + ); } @@ -62,4 +62,4 @@ const Placeholder = ({ ); }; -export default withPolarisExample(AlphaStackWithInlineAlignExample); +export default withPolarisExample(VerticalStackWithInlineAlignExample); diff --git a/polaris.shopify.com/public/images/components/layout-and-structure/alpha-stack.png b/polaris.shopify.com/public/images/components/layout-and-structure/vertical-stack.png similarity index 100% rename from polaris.shopify.com/public/images/components/layout-and-structure/alpha-stack.png rename to polaris.shopify.com/public/images/components/layout-and-structure/vertical-stack.png diff --git a/polaris.shopify.com/src/components/TipBanner/TipBanner.tsx b/polaris.shopify.com/src/components/TipBanner/TipBanner.tsx index 4738ab7f729..5112a3fcae2 100644 --- a/polaris.shopify.com/src/components/TipBanner/TipBanner.tsx +++ b/polaris.shopify.com/src/components/TipBanner/TipBanner.tsx @@ -1,4 +1,4 @@ -import {AlphaStack, Icon, Inline, Text} from '@shopify/polaris'; +import {VerticalStack, Icon, Inline, Text} from '@shopify/polaris'; import {InfoMinor} from '@shopify/polaris-icons'; import styles from './TipBanner.module.scss'; @@ -10,7 +10,7 @@ interface Props { function TipBanner({title, message}: Props) { return (
        - +
        @@ -20,7 +20,7 @@ function TipBanner({title, message}: Props) {

        {message}

        - +
        ); }