Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add more exports #7892

Merged
merged 6 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading