Skip to content

Commit

Permalink
Fix API report
Browse files Browse the repository at this point in the history
Signed-off-by: Charles de Dreuille <[email protected]>
  • Loading branch information
cdedreuille committed Dec 19, 2024
1 parent 7404c09 commit 9b61fb6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
23 changes: 16 additions & 7 deletions packages/canon/report.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,17 @@ export const Inline: ForwardRefExoticComponent<
// @public (undocumented)
export interface InlineProps extends SpaceProps {
// (undocumented)
align?: Omit<
UtilityProps['justifyContent'],
'stretch' | 'around' | 'between'
>;
// (undocumented)
alignY?: UtilityProps['alignItems'];
align?:
| 'left'
| 'center'
| 'right'
| Partial<Record<Breakpoint, 'left' | 'center' | 'right'>>;
// (undocumented)
alignY?:
| 'top'
| 'center'
| 'bottom'
| Partial<Record<Breakpoint, 'top' | 'center' | 'bottom'>>;
// (undocumented)
as?: AsProps;
// (undocumented)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion packages/canon/src/components/Stack/Stack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9b61fb6

Please sign in to comment.