Skip to content

Commit

Permalink
feat: remove restrictions on stacks for height and width (#5167)
Browse files Browse the repository at this point in the history
  • Loading branch information
romainseb authored Feb 6, 2024
1 parent cf0796f commit 5f9334f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tiny-buttons-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@talend/design-system': minor
---

feat: remove restrictions on stacks for height and width
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { forwardRef } from 'react';
import type { Ref } from 'react';

import StackPrimitive, { StackPrimitiveProps } from './Primitive/StackPrimitive';

export type StackHorizontalProps = Omit<StackPrimitiveProps, 'direction' | 'height'>;
export type StackHorizontalProps = Omit<StackPrimitiveProps, 'direction'>;

export const StackHorizontal = forwardRef((props: StackHorizontalProps, ref: Ref<any>) => {
return (
Expand Down
2 changes: 2 additions & 0 deletions packages/design-system/src/components/Stack/StackItem.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { forwardRef, ReactNode } from 'react';
import type { Ref } from 'react';

import classnames from 'classnames';

import styles from './StackItem.module.scss';

export const alignOptions = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { forwardRef } from 'react';
import type { Ref } from 'react';

import StackPrimitive, { StackPrimitiveProps } from './Primitive/StackPrimitive';

export type StackVerticalProps = Omit<StackPrimitiveProps, 'direction' | 'isFullWidth'>;
export type StackVerticalProps = Omit<StackPrimitiveProps, 'direction'>;

export const StackVertical = forwardRef((props: StackVerticalProps, ref: Ref<any>) => {
return (
Expand Down

0 comments on commit 5f9334f

Please sign in to comment.