Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix: add XDS prefix to StackAlignment type, fix StatusDot header (#1561)

Cindy Zhang81be7193198c
diff --git a/packages/core/src/Layout/index.ts b/packages/core/src/Layout/index.ts
index b92a55412e..af0c3ab0f0 100644
--- a/packages/core/src/Layout/index.ts
+++ b/packages/core/src/Layout/index.ts
@@ -42,6 +42,7 @@ export type {
export {XDSStack, XDSHStack, XDSVStack, XDSStackItem} from '../Stack';
export type {
XDSStackProps,
+ XDSStackAlignment,
StackAlignment,
XDSHStackProps,
XDSVStackProps,
diff --git a/packages/core/src/Stack/XDSStack.tsx b/packages/core/src/Stack/XDSStack.tsx
index 186c37b9d1..a89ba8f649 100644
--- a/packages/core/src/Stack/XDSStack.tsx
+++ b/packages/core/src/Stack/XDSStack.tsx
@@ -40,7 +40,10 @@ import {xdsClassName, mergeProps} from '../utils';
* - Cross axis (vAlign for horizontal, hAlign for vertical):
* `'start' | 'center' | 'end' | 'stretch'`
*/
-export type StackAlignment = StackMainAlignment | StackCrossAlignment;
+export type XDSStackAlignment = StackMainAlignment | StackCrossAlignment;
+
+/** @deprecated Use `XDSStackAlignment` instead. */
+export type StackAlignment = XDSStackAlignment;
export interface XDSStackProps extends XDSBaseProps<HTMLDivElement> {
/** Ref forwarded to the root element */
@@ -59,7 +62,7 @@ export interface XDSStackProps extends XDSBaseProps<HTMLDivElement> {
* - When `direction='vertical'`: controls cross-axis (align-items).
* Accepts: `'start' | 'center' | 'end' | 'stretch'`
*/
- hAlign?: StackAlignment;
+ hAlign?: XDSStackAlignment;
/**
* Vertical alignment of items.
@@ -68,7 +71,7 @@ export interface XDSStackProps extends XDSBaseProps<HTMLDivElement> {
* - When `direction='vertical'`: controls main-axis (justify-content).
* Accepts: `'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'`
*/
- vAlign?: StackAlignment;
+ vAlign?: XDSStackAlignment;
/**
* Spacing between items.
diff --git a/packages/core/src/Stack/index.ts b/packages/core/src/Stack/index.ts
index 6bd37ada3d..632ddd02a4 100644
--- a/packages/core/src/Stack/index.ts
+++ b/packages/core/src/Stack/index.ts
@@ -9,7 +9,11 @@
// Unified stack component
export {XDSStack} from './XDSStack';
-export type {XDSStackProps, StackAlignment} from './XDSStack';
+export type {
+ XDSStackProps,
+ XDSStackAlignment,
+ StackAlignment,
+} from './XDSStack';
// Convenience wrappers
export {XDSHStack} from './XDSHStack';
diff --git a/packages/core/src/StatusDot/index.ts b/packages/core/src/StatusDot/index.ts
index 8094c5ab66..3f5c4050d5 100644
--- a/packages/core/src/StatusDot/index.ts
+++ b/packages/core/src/StatusDot/index.ts
@@ -1,5 +1,8 @@
/**
- * @file StatusDot component barrel export
+ * @file index.ts
+ * @input Imports from XDSStatusDot component
+ * @output Exports XDSStatusDot component and related types
+ * @position Entry point for StatusDot; re-exported by /packages/core/src/index.ts
*/
export {XDSStatusDot} from './XDSStatusDot';