Fix API report

Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
Charles de Dreuille
2024-12-19 15:25:07 +00:00
parent 7404c0954b
commit 9b61fb6421
2 changed files with 16 additions and 7 deletions
+15 -6
View File
@@ -240,12 +240,17 @@ export const Inline: ForwardRefExoticComponent<
// @public (undocumented)
export interface InlineProps extends SpaceProps {
// (undocumented)
align?: Omit<
UtilityProps['justifyContent'],
'stretch' | 'around' | 'between'
>;
align?:
| 'left'
| 'center'
| 'right'
| Partial<Record<Breakpoint, 'left' | 'center' | 'right'>>;
// (undocumented)
alignY?: UtilityProps['alignItems'];
alignY?:
| 'top'
| 'center'
| 'bottom'
| Partial<Record<Breakpoint, 'top' | 'center' | 'bottom'>>;
// (undocumented)
as?: AsProps;
// (undocumented)
@@ -310,7 +315,11 @@ export const Stack: ForwardRefExoticComponent<
// @public (undocumented)
export interface StackProps extends SpaceProps {
// (undocumented)
align?: UtilityProps['alignItems'];
align?:
| 'left'
| 'center'
| 'right'
| Partial<Record<Breakpoint, 'left' | 'center' | 'right'>>;
// (undocumented)
as?: AsProps;
// (undocumented)
@@ -23,7 +23,7 @@ import type { AlignItems, Breakpoint } from '../../types';
const mapAlignValue = (value?: StackProps['align']) => {
if (typeof value === 'string') {
let returnedValue: AlignItems = 'stretch';
if (value === 'left') returnedValue = 'start';
if (value === 'left') returnedValue = 'stretch';
if (value === 'center') returnedValue = 'center';
if (value === 'right') returnedValue = 'end';
return returnedValue;