Skip to content

Commit

Permalink
feat: add more imports
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackySoul committed Nov 5, 2024
1 parent 667b25d commit 94983c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/vkui/src/components/Placeholder/Placeholder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ const PlaceholderIcon = (props: PlaceholderIconProps): React.ReactNode => (
<RootComponent baseClassName={styles.icon} {...props} />
);

export type PlaceholderHeaderProps = HTMLAttributesWithRootRef<HTMLElement> & HasComponent;
export type PlaceholderTitleProps = HTMLAttributesWithRootRef<HTMLElement> & HasComponent;

const PlaceholderTitle = ({ className, ...restProps }: PlaceholderHeaderProps): React.ReactNode => (
const PlaceholderTitle = ({ className, ...restProps }: PlaceholderTitleProps): React.ReactNode => (
<Title level="2" weight="2" className={classNames(className, styles.title)} {...restProps} />
);

export type PlaceholderTextProps = HTMLAttributesWithRootRef<HTMLElement> & HasComponent;
export type PlaceholderDescriptionProps = HTMLAttributesWithRootRef<HTMLElement> & HasComponent;

const PlaceholderDescription = ({
className,
...restProps
}: PlaceholderTextProps): React.ReactNode => (
}: PlaceholderDescriptionProps): React.ReactNode => (
<Headline weight="3" className={classNames(className, styles.description)} {...restProps} />
);

Expand Down
5 changes: 3 additions & 2 deletions packages/vkui/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export { AspectRatio } from './components/AspectRatio/AspectRatio';
export type { AspectRatioProps } from './components/AspectRatio/AspectRatio';
export { Flex } from './components/Flex/Flex';
export type { FlexProps } from './components/Flex/Flex';
export type { FlexItemProps } from './components/Flex/FlexItem/FlexItem';
export { SimpleGrid } from './components/SimpleGrid/SimpleGrid';
export type { SimpleGridProps } from './components/SimpleGrid/SimpleGrid';

Expand Down Expand Up @@ -244,8 +245,8 @@ export type {
PlaceholderProps,
PlaceholderContainerProps,
PlaceholderIconProps,
PlaceholderHeaderProps,
PlaceholderTextProps,
PlaceholderTitleProps,
PlaceholderDescriptionProps,
PlaceholderActionsProps,
} from './components/Placeholder/Placeholder';
export { Banner } from './components/Banner/Banner';
Expand Down

0 comments on commit 94983c2

Please sign in to comment.