Skip to content

Commit

Permalink
feat: exporting typescript props for various components - 2 (#16448)
Browse files Browse the repository at this point in the history
* feat: exported props for various components

* refactor: exported textinput skeleton and tab props
  • Loading branch information
Gururajj77 authored May 21, 2024
1 parent 96524a7 commit 9fc6529
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 10 deletions.
3 changes: 2 additions & 1 deletion packages/react/src/components/Tab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

import { Tab } from '../Tabs/Tabs';
import { type TabProps } from '../Tabs/Tabs';

export default Tab;
export { Tab };
export { Tab, type TabProps };
4 changes: 2 additions & 2 deletions packages/react/src/components/TextArea/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

import TextArea from './TextArea';
import TextArea, { type TextAreaProps } from './TextArea';

export { default as TextAreaSkeleton } from './TextArea.Skeleton';
export default TextArea;
export { TextArea };
export { TextArea, type TextAreaProps };
6 changes: 4 additions & 2 deletions packages/react/src/components/TextInput/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import { deprecateFieldOnObject } from '../../internal/deprecateFieldOnObject';

import ControlledPasswordInput from './ControlledPasswordInput';
import PasswordInput from './PasswordInput';
import TextInput from './TextInput';
import TextInput, { type TextInputProps } from './TextInput';
import { type TextInputSkeletonProps } from './TextInput.Skeleton';

if (__DEV__) {
deprecateFieldOnObject(
Expand All @@ -21,4 +22,5 @@ if (__DEV__) {

export { default as TextInputSkeleton } from './TextInput.Skeleton';
export default TextInput;
export { TextInput };
export { type TextInputSkeletonProps };
export { TextInput, type TextInputProps };
4 changes: 2 additions & 2 deletions packages/react/src/components/TileGroup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import TileGroup from './TileGroup';
import TileGroup, { type TileGroupProps } from './TileGroup';

export default TileGroup;
export { TileGroup };
export { TileGroup, type TileGroupProps };
4 changes: 2 additions & 2 deletions packages/react/src/components/Tooltip/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
*/

import { DefinitionTooltip } from './DefinitionTooltip';
import { Tooltip } from './Tooltip';
import { Tooltip, type TooltipProps } from './Tooltip';

export { DefinitionTooltip, Tooltip };
export { DefinitionTooltip, Tooltip, type TooltipProps };
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import React, { type ComponentProps } from 'react';
import classnames from 'classnames';
import { usePrefix } from '../../internal/usePrefix';

interface UnorderedListProps extends ComponentProps<'ul'> {
export interface UnorderedListProps extends ComponentProps<'ul'> {
nested?: boolean | undefined;
isExpressive?: boolean | undefined;
}
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/components/UnorderedList/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
*/

export { default, default as UnorderedList } from './UnorderedList';
export { type UnorderedListProps } from './UnorderedList';

0 comments on commit 9fc6529

Please sign in to comment.