An open source design system that's fully customizable and agent ready
TypeScript
chore: undeprecate XDSVStack/XDSHStack, consolidate stories to Stack (#517)
Cindy Zhang940e47583744
diff --git a/apps/storybook/stories/HStack.stories.tsx b/apps/storybook/stories/HStack.stories.tsxdeleted file mode 100644index a643caf554..0000000000--- a/apps/storybook/stories/HStack.stories.tsx+++ /dev/null@@ -1,259 +0,0 @@-import type {Meta, StoryObj} from '@storybook/react';-import * as stylex from '@stylexjs/stylex';-import {XDSHStack} from '@xds/core/Layout';-import {- colorVars,- spacingVars,- radiusVars,- typographyVars,-} from '@xds/core/theme/tokens.stylex';--const styles = stylex.create({- box: {- backgroundColor: colorVars['--color-blue-background'],- color: colorVars['--color-blue-text'],- borderWidth: 1,- borderStyle: 'solid',- borderColor: colorVars['--color-blue-border'],- paddingBlock: spacingVars['--spacing-4'],- paddingInline: spacingVars['--spacing-6'],- borderRadius: radiusVars['--radius-element'],- fontWeight: 500,- },- boxAlt: {- backgroundColor: colorVars['--color-gray-background'],- color: colorVars['--color-gray-text'],- borderColor: colorVars['--color-gray-border'],- },- container: {- backgroundColor: colorVars['--color-wash'],- },- containerHeight: {- height: 120,- },- containerHeightSmall: {- height: 80,- },- containerWidth: {- width: 300,- },- containerPadding: {- padding: spacingVars['--spacing-2'],- },- storyWrapper: {- display: 'flex',- flexDirection: 'column',- gap: spacingVars['--spacing-6'],- },- heading: {- margin: `0 0 ${spacingVars['--spacing-2']} 0`,- fontFamily: typographyVars['--font-body'],- },-});--// Demo box component for visibility-const Box = ({- children,- alt = false,-}: {- children: React.ReactNode;- alt?: boolean;-}) => <div {...stylex.props(styles.box, alt && styles.boxAlt)}>{children}</div>;--const meta: Meta<typeof XDSHStack> = {- title: 'Layout/XDSHStack',- component: XDSHStack,- tags: ['autodocs'],- argTypes: {- gap: {- control: 'select',- options: [- 'space0',- 'space0.5',- 'space1',- 'space2',- 'space3',- 'space4',- 'space5',- 'space6',- 'space7',- ],- description: 'Spacing token for gap between items',- },- vAlign: {- control: 'select',- options: ['start', 'center', 'end', 'stretch'],- description: 'Vertical alignment of items',- },- wrap: {- control: 'select',- options: ['nowrap', 'wrap', 'wrap-reverse'],- description: 'Flex wrap behavior',- },- },-};--export default meta;-type Story = StoryObj<typeof XDSHStack>;--export const Default: Story = {- args: {- gap: 'space2',- children: null,- },- render: args => (- <XDSHStack {...args}>- <Box>Item 1</Box>- <Box>Item 2</Box>- <Box>Item 3</Box>- </XDSHStack>- ),-};--export const WithGap: Story = {- args: {- gap: 'space4',- },- render: args => (- <XDSHStack {...args}>- <Box>Item 1</Box>- <Box>Item 2</Box>- <Box>Item 3</Box>- </XDSHStack>- ),-};--export const VerticalAlignCenter: Story = {- args: {- gap: 'space4',- vAlign: 'center',- },- render: args => (- <XDSHStack {...args} xstyle={[styles.container, styles.containerHeight]}>- <Box>Short</Box>- <Box>- Tall- <br />- Item- </Box>- <Box>Short</Box>- </XDSHStack>- ),-};--export const VerticalAlignStart: Story = {- args: {- gap: 'space4',- vAlign: 'start',- },- render: args => (- <XDSHStack {...args} xstyle={[styles.container, styles.containerHeight]}>- <Box>Short</Box>- <Box>- Tall- <br />- Item- </Box>- <Box>Short</Box>- </XDSHStack>- ),-};--export const VerticalAlignEnd: Story = {- args: {- gap: 'space4',- vAlign: 'end',- },- render: args => (- <XDSHStack {...args} xstyle={[styles.container, styles.containerHeight]}>- <Box>Short</Box>- <Box>- Tall- <br />- Item- </Box>- <Box>Short</Box>- </XDSHStack>- ),-};--export const Wrapping: Story = {- args: {- gap: 'space2',- wrap: 'wrap',- },- render: args => (- <XDSHStack- {...args}- xstyle={[- styles.container,- styles.containerWidth,- styles.containerPadding,- ]}>- <Box>Item 1</Box>- <Box>Item 2</Box>- <Box>Item 3</Box>- <Box>Item 4</Box>- <Box>Item 5</Box>- </XDSHStack>- ),-};--export const AllAlignments: Story = {- render: () => (- <div {...stylex.props(styles.storyWrapper)}>- <div>- <h4 {...stylex.props(styles.heading)}>vAlign: start</h4>- <XDSHStack- gap="space2"- vAlign="start"- xstyle={[styles.container, styles.containerHeightSmall]}>- <Box>A</Box>- <Box>- B<br />B- </Box>- <Box>C</Box>- </XDSHStack>- </div>- <div>- <h4 {...stylex.props(styles.heading)}>vAlign: center</h4>- <XDSHStack- gap="space2"- vAlign="center"- xstyle={[styles.container, styles.containerHeightSmall]}>- <Box>A</Box>- <Box>- B<br />B- </Box>- <Box>C</Box>- </XDSHStack>- </div>- <div>- <h4 {...stylex.props(styles.heading)}>vAlign: end</h4>- <XDSHStack- gap="space2"- vAlign="end"- xstyle={[styles.container, styles.containerHeightSmall]}>- <Box>A</Box>- <Box>- B<br />B- </Box>- <Box>C</Box>- </XDSHStack>- </div>- <div>- <h4 {...stylex.props(styles.heading)}>vAlign: stretch (default)</h4>- <XDSHStack- gap="space2"- vAlign="stretch"- xstyle={[styles.container, styles.containerHeightSmall]}>- <Box>A</Box>- <Box>- B<br />B- </Box>- <Box>C</Box>- </XDSHStack>- </div>- </div>- ),-};diff --git a/apps/storybook/stories/VStack.stories.tsx b/apps/storybook/stories/VStack.stories.tsxdeleted file mode 100644index 28854383d2..0000000000--- a/apps/storybook/stories/VStack.stories.tsx+++ /dev/null@@ -1,254 +0,0 @@-import type {Meta, StoryObj} from '@storybook/react';-import * as stylex from '@stylexjs/stylex';-import {XDSVStack} from '@xds/core/Layout';-import {- colorVars,- spacingVars,- radiusVars,- typographyVars,-} from '@xds/core/theme/tokens.stylex';--const styles = stylex.create({- box: {- backgroundColor: colorVars['--color-blue-background'],- color: colorVars['--color-blue-text'],- borderWidth: 1,- borderStyle: 'solid',- borderColor: colorVars['--color-blue-border'],- paddingBlock: spacingVars['--spacing-4'],- paddingInline: spacingVars['--spacing-6'],- borderRadius: radiusVars['--radius-element'],- fontWeight: 500,- },- boxAlt: {- backgroundColor: colorVars['--color-gray-background'],- color: colorVars['--color-gray-text'],- borderColor: colorVars['--color-gray-border'],- },- container: {- backgroundColor: colorVars['--color-wash'],- },- containerWidth: {- width: 300,- },- containerWidthSmall: {- width: 150,- },- containerHeight: {- height: 150,- },- containerPadding: {- padding: spacingVars['--spacing-2'],- },- storyWrapper: {- display: 'flex',- gap: spacingVars['--spacing-6'],- },- heading: {- margin: `0 0 ${spacingVars['--spacing-2']} 0`,- fontFamily: typographyVars['--font-body'],- },-});--// Demo box component for visibility-const Box = ({- children,- alt = false,-}: {- children: React.ReactNode;- alt?: boolean;-}) => <div {...stylex.props(styles.box, alt && styles.boxAlt)}>{children}</div>;--const meta: Meta<typeof XDSVStack> = {- title: 'Layout/XDSVStack',- component: XDSVStack,- tags: ['autodocs'],- argTypes: {- gap: {- control: 'select',- options: [- 'space0',- 'space0.5',- 'space1',- 'space2',- 'space3',- 'space4',- 'space5',- 'space6',- 'space7',- ],- description: 'Spacing token for gap between items',- },- hAlign: {- control: 'select',- options: ['start', 'center', 'end', 'stretch'],- description: 'Horizontal alignment of items',- },- wrap: {- control: 'select',- options: ['nowrap', 'wrap', 'wrap-reverse'],- description: 'Flex wrap behavior',- },- },-};--export default meta;-type Story = StoryObj<typeof XDSVStack>;--export const Default: Story = {- args: {- gap: 'space2',- children: null,- },- render: args => (- <XDSVStack {...args}>- <Box>Item 1</Box>- <Box>Item 2</Box>- <Box>Item 3</Box>- </XDSVStack>- ),-};--export const WithGap: Story = {- args: {- gap: 'space4',- },- render: args => (- <XDSVStack {...args}>- <Box>Item 1</Box>- <Box>Item 2</Box>- <Box>Item 3</Box>- </XDSVStack>- ),-};--export const HorizontalAlignCenter: Story = {- args: {- gap: 'space4',- hAlign: 'center',- },- render: args => (- <XDSVStack {...args} xstyle={[styles.container, styles.containerWidth]}>- <Box>Short</Box>- <Box>Medium Item</Box>- <Box>Short</Box>- </XDSVStack>- ),-};--export const HorizontalAlignStart: Story = {- args: {- gap: 'space4',- hAlign: 'start',- },- render: args => (- <XDSVStack {...args} xstyle={[styles.container, styles.containerWidth]}>- <Box>Short</Box>- <Box>Medium Item</Box>- <Box>Short</Box>- </XDSVStack>- ),-};--export const HorizontalAlignEnd: Story = {- args: {- gap: 'space4',- hAlign: 'end',- },- render: args => (- <XDSVStack {...args} xstyle={[styles.container, styles.containerWidth]}>- <Box>Short</Box>- <Box>Medium Item</Box>- <Box>Short</Box>- </XDSVStack>- ),-};--export const Wrapping: Story = {- args: {- gap: 'space2',- wrap: 'wrap',- },- render: args => (- <XDSVStack- {...args}- xstyle={[- styles.container,- styles.containerHeight,- styles.containerPadding,- ]}>- <Box>Item 1</Box>- <Box>Item 2</Box>- <Box>Item 3</Box>- <Box>Item 4</Box>- <Box>Item 5</Box>- </XDSVStack>- ),-};--export const AllAlignments: Story = {- render: () => (- <div {...stylex.props(styles.storyWrapper)}>- <div>- <h4 {...stylex.props(styles.heading)}>hAlign: start</h4>- <XDSVStack- gap="space2"- hAlign="start"- xstyle={[- styles.container,- styles.containerWidthSmall,- styles.containerPadding,- ]}>- <Box>A</Box>- <Box>BB</Box>- <Box>CCC</Box>- </XDSVStack>- </div>- <div>- <h4 {...stylex.props(styles.heading)}>hAlign: center</h4>- <XDSVStack- gap="space2"- hAlign="center"- xstyle={[- styles.container,- styles.containerWidthSmall,- styles.containerPadding,- ]}>- <Box>A</Box>- <Box>BB</Box>- <Box>CCC</Box>- </XDSVStack>- </div>- <div>- <h4 {...stylex.props(styles.heading)}>hAlign: end</h4>- <XDSVStack- gap="space2"- hAlign="end"- xstyle={[- styles.container,- styles.containerWidthSmall,- styles.containerPadding,- ]}>- <Box>A</Box>- <Box>BB</Box>- <Box>CCC</Box>- </XDSVStack>- </div>- <div>- <h4 {...stylex.props(styles.heading)}>hAlign: stretch</h4>- <XDSVStack- gap="space2"- hAlign="stretch"- xstyle={[- styles.container,- styles.containerWidthSmall,- styles.containerPadding,- ]}>- <Box>A</Box>- <Box>BB</Box>- <Box>CCC</Box>- </XDSVStack>- </div>- </div>- ),-};diff --git a/e2e/visual-regression.spec.ts-snapshots/Layout-XDSHStack-Wrapping.png b/e2e/visual-regression.spec.ts-snapshots/Layout-XDSHStack-Wrapping.pngdeleted file mode 100644index 74fc95c0b2..0000000000Binary files a/e2e/visual-regression.spec.ts-snapshots/Layout-XDSHStack-Wrapping.png and /dev/null differdiff --git a/packages/cli/src/codemods/transforms/v0.0.2/__tests__/replace-hstack-vstack-with-stack.test.mjs b/packages/cli/src/codemods/transforms/v0.0.2/__tests__/replace-hstack-vstack-with-stack.test.mjsdeleted file mode 100644index 9cbcbb97df..0000000000--- a/packages/cli/src/codemods/transforms/v0.0.2/__tests__/replace-hstack-vstack-with-stack.test.mjs+++ /dev/null@@ -1,155 +0,0 @@-import {describe, it, expect} from 'vitest';--async function applyTransform(source) {- const {default: transform} = await import(- '../replace-hstack-vstack-with-stack.mjs'- );- const jscodeshift = (await import('jscodeshift')).default;- const api = {jscodeshift, stats: () => {}, report: () => {}};- const file = {source, path: 'test.tsx'};- const result = transform(file, api);- return result ?? source;-}--describe('replace-hstack-vstack-with-stack', () => {- // === JSX transforms ===-- it('replaces XDSHStack with XDSStack direction="horizontal"', async () => {- const input = '<XDSHStack gap={8}><div /><div /></XDSHStack>';- const output = await applyTransform(input);- expect(output).toContain('XDSStack');- expect(output).toContain('direction="horizontal"');- expect(output).toContain('gap={8}');- expect(output).not.toContain('XDSHStack');- });-- it('replaces XDSVStack with XDSStack direction="vertical"', async () => {- const input = '<XDSVStack gap={12}><div /><div /></XDSVStack>';- const output = await applyTransform(input);- expect(output).toContain('XDSStack');- expect(output).toContain('direction="vertical"');- expect(output).toContain('gap={12}');- expect(output).not.toContain('XDSVStack');- });-- it('handles self-closing elements', async () => {- const input = '<XDSHStack gap={4} />';- const output = await applyTransform(input);- expect(output).toContain('XDSStack');- expect(output).toContain('direction="horizontal"');- expect(output).not.toContain('XDSHStack');- });-- it('preserves all existing props', async () => {- const input = '<XDSHStack gap={8} align="center" xstyle={styles.row}><div /></XDSHStack>';- const output = await applyTransform(input);- expect(output).toContain('direction="horizontal"');- expect(output).toContain('gap={8}');- expect(output).toContain('align="center"');- expect(output).toContain('xstyle={styles.row}');- });-- it('handles both HStack and VStack in the same file', async () => {- const input = `- <div>- <XDSHStack gap={8}><span /></XDSHStack>- <XDSVStack gap={12}><span /></XDSVStack>- </div>- `;- const output = await applyTransform(input);- expect(output).not.toContain('XDSHStack');- expect(output).not.toContain('XDSVStack');- expect(output).toContain('direction="horizontal"');- expect(output).toContain('direction="vertical"');- });-- it('does not touch non-XDS components', async () => {- const input = '<HStack gap={8}><div /></HStack>';- const output = await applyTransform(input);- expect(output).toBe(input);- });-- it('does not touch XDSStack that already has direction', async () => {- const input = '<XDSStack direction="horizontal" gap={8}><div /></XDSStack>';- const output = await applyTransform(input);- expect(output).toBe(input);- });-- // === Import transforms ===-- it('replaces XDSHStack import with XDSStack', async () => {- const input = `import {XDSHStack} from '@xds/core/Stack';-<XDSHStack><div /></XDSHStack>`;- const output = await applyTransform(input);- expect(output).toContain("import {XDSStack} from '@xds/core/Stack'");- expect(output).not.toContain('XDSHStack');- });-- it('replaces XDSVStack import with XDSStack', async () => {- const input = `import {XDSVStack} from '@xds/core/Stack';-<XDSVStack><div /></XDSVStack>`;- const output = await applyTransform(input);- expect(output).toContain("import {XDSStack} from '@xds/core/Stack'");- expect(output).not.toContain('XDSVStack');- });-- it('does not duplicate XDSStack import if already present', async () => {- const input = `import {XDSStack, XDSHStack} from '@xds/core/Stack';-<XDSHStack><div /></XDSHStack>`;- const output = await applyTransform(input);- // Should have XDSStack but not duplicate it- const matches = output.match(/XDSStack/g);- // XDSStack appears in import + JSX opening + JSX closing = 3- expect(output).not.toContain('XDSHStack');- expect(output).toContain('XDSStack');- expect(output).toContain("'@xds/core/Stack'");- });-- it('handles both HStack and VStack imports together', async () => {- const input = `import {XDSHStack, XDSVStack, XDSStackItem} from '@xds/core/Stack';-<div>- <XDSHStack><div /></XDSHStack>- <XDSVStack><div /></XDSVStack>-</div>`;- const output = await applyTransform(input);- expect(output).not.toContain('XDSHStack');- expect(output).not.toContain('XDSVStack');- expect(output).toContain('XDSStack');- expect(output).toContain('XDSStackItem');- });-- it('handles imports from @xds/core barrel', async () => {- const input = `import {XDSHStack, XDSButton} from '@xds/core';-<XDSHStack><XDSButton label="Click" /></XDSHStack>`;- const output = await applyTransform(input);- expect(output).toContain('XDSStack');- expect(output).toContain('XDSButton');- expect(output).not.toContain('XDSHStack');- });-- it('returns undefined when no changes needed', async () => {- const {default: transform} = await import(- '../replace-hstack-vstack-with-stack.mjs'- );- const jscodeshift = (await import('jscodeshift')).default;- const api = {jscodeshift, stats: () => {}, report: () => {}};- const source = '<XDSStack direction="horizontal" gap={8}><div /></XDSStack>';- const result = transform({source, path: 'test.tsx'}, api);- expect(result).toBeUndefined();- });-- it('handles nested stacks', async () => {- const input = `- <XDSVStack gap={16}>- <XDSHStack gap={8}><span /><span /></XDSHStack>- <XDSHStack gap={8}><span /><span /></XDSHStack>- </XDSVStack>- `;- const output = await applyTransform(input);- expect(output).not.toContain('XDSVStack');- expect(output).not.toContain('XDSHStack');- // Should have both directions- expect(output).toContain('direction="vertical"');- expect(output).toContain('direction="horizontal"');- });-});diff --git a/packages/cli/src/codemods/transforms/v0.0.2/index.mjs b/packages/cli/src/codemods/transforms/v0.0.2/index.mjsindex 3c048e63a9..dac7362ce6 100644--- a/packages/cli/src/codemods/transforms/v0.0.2/index.mjs+++ b/packages/cli/src/codemods/transforms/v0.0.2/index.mjs@@ -22,10 +22,6 @@ import renameFormTooltipStartIcon, {import renameIsShownToIsOpen, {meta as isShownMeta,} from './rename-isShown-to-isOpen.mjs';-import replaceHStackVStackWithStack, {- meta as stackMeta,-} from './replace-hstack-vstack-with-stack.mjs';-export default [{name: 'rename-selector-items-to-options',@@ -57,9 +53,4 @@ export default [transform: renameIsShownToIsOpen,meta: isShownMeta,},- {- name: 'replace-hstack-vstack-with-stack',- transform: replaceHStackVStackWithStack,- meta: stackMeta,- },];diff --git a/packages/cli/src/codemods/transforms/v0.0.2/replace-hstack-vstack-with-stack.mjs b/packages/cli/src/codemods/transforms/v0.0.2/replace-hstack-vstack-with-stack.mjsdeleted file mode 100644index f6856733b0..0000000000--- a/packages/cli/src/codemods/transforms/v0.0.2/replace-hstack-vstack-with-stack.mjs+++ /dev/null@@ -1,99 +0,0 @@-/**- * @file Codemod: Replace XDSHStack/XDSVStack with XDSStack + direction prop- * @see https://github.com/facebookexperimental/xds/pull/374- */--export const meta = {- title: 'Replace XDSHStack/XDSVStack with XDSStack',- description:- 'Replaces `<XDSHStack>` with `<XDSStack direction="horizontal">` and `<XDSVStack>` with `<XDSStack direction="vertical">`. Also updates imports.',- pr: '#374',-};--const REPLACEMENTS = {- XDSHStack: 'horizontal',- XDSVStack: 'vertical',-};--export default function transformer(file, api) {- const j = api.jscodeshift;- const root = j(file.source);- let hasChanges = false;-- // Rename JSX elements: <XDSHStack> → <XDSStack direction="horizontal">- Object.entries(REPLACEMENTS).forEach(([oldName, direction]) => {- // Opening elements- root- .find(j.JSXOpeningElement, {name: {name: oldName}})- .forEach((path) => {- path.node.name.name = 'XDSStack';- // Add direction prop (prepend so it reads naturally)- const directionAttr = j.jsxAttribute(- j.jsxIdentifier('direction'),- j.stringLiteral(direction),- );- path.node.attributes.unshift(directionAttr);- hasChanges = true;- });-- // Closing elements- root- .find(j.JSXClosingElement, {name: {name: oldName}})- .forEach((path) => {- path.node.name.name = 'XDSStack';- hasChanges = true;- });- });-- // Update imports: replace XDSHStack/XDSVStack with XDSStack- root.find(j.ImportDeclaration).forEach((path) => {- const source = path.node.source.value;- // Match @xds/core imports (e.g. '@xds/core/Stack', '@xds/core/Layout', '@xds/core')- if (!source.startsWith('@xds/core')) return;-- let needsXDSStack = false;- const specifiersToRemove = [];-- path.node.specifiers.forEach((spec, index) => {- if (spec.type === 'ImportSpecifier') {- const importedName = spec.imported.name;- if (importedName === 'XDSHStack' || importedName === 'XDSVStack') {- specifiersToRemove.push(index);- needsXDSStack = true;- }- if (importedName === 'XDSStack') {- // Already importing XDSStack, just need to remove old ones- needsXDSStack = false;- }- }- });-- if (specifiersToRemove.length > 0) {- // Check if XDSStack is already imported- const alreadyHasStack = path.node.specifiers.some(- (s) => s.type === 'ImportSpecifier' && s.imported.name === 'XDSStack',- );-- // Remove old specifiers (reverse order to preserve indices)- for (let i = specifiersToRemove.length - 1; i >= 0; i--) {- path.node.specifiers.splice(specifiersToRemove[i], 1);- }-- // Add XDSStack if not already present- if (needsXDSStack && !alreadyHasStack) {- path.node.specifiers.push(- j.importSpecifier(j.identifier('XDSStack')),- );- }-- // If no specifiers left, remove the import entirely- if (path.node.specifiers.length === 0) {- j(path).remove();- }-- hasChanges = true;- }- });-- return hasChanges ? root.toSource() : undefined;-}diff --git a/packages/core/src/Stack/XDSHStack.tsx b/packages/core/src/Stack/XDSHStack.tsxindex 8a424639e5..58b29291e0 100644--- a/packages/core/src/Stack/XDSHStack.tsx+++ b/packages/core/src/Stack/XDSHStack.tsx@@ -6,8 +6,7 @@** SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Stack/Stack.doc.mjs- * - /packages/core/src/Layout/Stack/XDSHStack.test.tsx- * - /apps/storybook/stories/HStack.stories.tsx+ * - /packages/core/src/Stack/XDSHStack.test.tsx*/import {forwardRef} from 'react';@@ -38,16 +37,14 @@ export interface XDSHStackProps extends Omit</*** Horizontal stack component for arranging items left-to-right.- *- * @deprecated Use `XDSStack` with `direction="horizontal"` instead.+ * Convenience wrapper around `XDSStack` with `direction="horizontal"`.** @example* ```- * // Before- * <XDSHStack gap="space2">...</XDSHStack>- *- * // After- * <XDSStack direction="horizontal" gap="space2">...</XDSStack>+ * <XDSHStack gap="space2">+ * <Item />+ * <Item />+ * </XDSHStack>* ```*/export const XDSHStack = forwardRef<HTMLElement, XDSHStackProps>(diff --git a/packages/core/src/Stack/XDSVStack.tsx b/packages/core/src/Stack/XDSVStack.tsxindex 9abf85701a..dbd0546608 100644--- a/packages/core/src/Stack/XDSVStack.tsx+++ b/packages/core/src/Stack/XDSVStack.tsx@@ -6,8 +6,7 @@** SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Stack/Stack.doc.mjs- * - /packages/core/src/Layout/Stack/XDSVStack.test.tsx- * - /apps/storybook/stories/VStack.stories.tsx+ * - /packages/core/src/Stack/XDSVStack.test.tsx*/import {forwardRef} from 'react';@@ -38,16 +37,14 @@ export interface XDSVStackProps extends Omit</*** Vertical stack component for arranging items top-to-bottom.- *- * @deprecated Use `XDSStack` with `direction="vertical"` (or omit direction) instead.+ * Convenience wrapper around `XDSStack` with `direction="vertical"`.** @example* ```- * // Before- * <XDSVStack gap="space2">...</XDSVStack>- *- * // After- * <XDSStack direction="vertical" gap="space2">...</XDSStack>+ * <XDSVStack gap="space2">+ * <Item />+ * <Item />+ * </XDSVStack>* ```*/export const XDSVStack = forwardRef<HTMLElement, XDSVStackProps>(diff --git a/packages/core/src/Stack/index.ts b/packages/core/src/Stack/index.tsindex fcdbef34ca..6bd37ada3d 100644--- a/packages/core/src/Stack/index.ts+++ b/packages/core/src/Stack/index.ts@@ -11,7 +11,7 @@export {XDSStack} from './XDSStack';export type {XDSStackProps, StackAlignment} from './XDSStack';-// Legacy wrappers (deprecated — use XDSStack instead)+// Convenience wrappersexport {XDSHStack} from './XDSHStack';export type {XDSHStackProps} from './XDSHStack';