Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/light-mails-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@shopify/polaris': minor
'polaris.shopify.com': minor
---

Replaced `Stack` with `AlphaStack`
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {Card} from '../Card';
import {Box} from '../Box';
import {Inline} from '../Inline';
import {Text} from '../Text';
import {AlphaStack} from '../AlphaStack';
import {Stack} from '../Stack';

export interface AccountConnectionProps {
/** Content to display as title */
Expand Down Expand Up @@ -73,10 +73,10 @@ export function AccountConnection({
<SettingAction action={actionElement}>
<Inline gap="4">
{avatarMarkup}
<AlphaStack gap="2">
<Stack gap="2">
{titleMarkup}
{detailsMarkup}
</AlphaStack>
</Stack>
</Inline>
</SettingAction>
{termsOfServiceMarkup}
Expand Down
60 changes: 0 additions & 60 deletions polaris-react/src/components/AlphaStack/AlphaStack.scss

This file was deleted.

119 changes: 0 additions & 119 deletions polaris-react/src/components/AlphaStack/AlphaStack.stories.tsx

This file was deleted.

73 changes: 0 additions & 73 deletions polaris-react/src/components/AlphaStack/AlphaStack.tsx

This file was deleted.

1 change: 0 additions & 1 deletion polaris-react/src/components/AlphaStack/index.ts

This file was deleted.

53 changes: 0 additions & 53 deletions polaris-react/src/components/AlphaStack/tests/AlphaStack.test.tsx

This file was deleted.

6 changes: 3 additions & 3 deletions polaris-react/src/components/Banner/Banner.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, {useCallback, useEffect, useRef, useState} from 'react';
import type {ComponentMeta} from '@storybook/react';
import {
AlphaStack,
Stack,
Banner,
Button,
LegacyCard,
Expand Down Expand Up @@ -193,7 +193,7 @@ export function InACard() {
export function WithEndJustifiedContent() {
return (
<Banner status="critical">
<AlphaStack gap="1" fullWidth>
<Stack gap="1" fullWidth>
<Inline gap="4" align="space-between">
<Text variant="headingMd" fontWeight="semibold" as="h3">
Deployment failed in 5min
Expand All @@ -203,7 +203,7 @@ export function WithEndJustifiedContent() {
</Link>
</Inline>
<p>This order was archived on March 7, 2017 at 3:12pm EDT.</p>
</AlphaStack>
</Stack>
</Banner>
);
}
6 changes: 3 additions & 3 deletions polaris-react/src/components/Box/Box.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import type {ComponentMeta} from '@storybook/react';
import {AlphaStack, Box, Icon} from '@shopify/polaris';
import {Stack, Box, Icon} from '@shopify/polaris';
import {PaintBrushMajor} from '@shopify/polaris-icons';

export default {
Expand Down Expand Up @@ -33,7 +33,7 @@ export function WithBorderRadius() {

export function WithResponsivePadding() {
return (
<AlphaStack gap="4">
<Stack gap="4">
<Box background="surface" padding={{xs: '2', sm: '8'}} border="dark">
<Icon source={PaintBrushMajor} color="base" />
</Box>
Expand Down Expand Up @@ -68,6 +68,6 @@ export function WithResponsivePadding() {
>
<Icon source={PaintBrushMajor} color="base" />
</Box>
</AlphaStack>
</Stack>
);
}
Loading