Skip to content

Commit 2f27a9f

Browse files
committed
fix: exporting unexported types
1 parent f69e119 commit 2f27a9f

File tree

5 files changed

+27
-8
lines changed

5 files changed

+27
-8
lines changed

src/components/composites/Drawer/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react';
33
import Backdrop from '../Backdrop';
44
import Box from '../../primitives/Box';
55

6-
type DrawerProps = {
6+
export type IDrawerProps = {
77
placement?: 'top' | 'left' | 'right' | 'bottom';
88
children?: any;
99
isOpen: boolean;
@@ -15,9 +15,9 @@ const Drawer = ({
1515
isOpen,
1616
onClose,
1717
placement = 'right',
18-
}: DrawerProps) => {
19-
let placementStyles = React.useMemo(() => {
20-
let styles: any = {
18+
}: IDrawerProps) => {
19+
const placementStyles = React.useMemo(() => {
20+
const styles: any = {
2121
position: 'absolute',
2222
};
2323

src/components/composites/Modal/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import ModalFooter from './ModalFooter';
66
import ModalHeader from './ModalHeader';
77
import type { IModalComponentType } from './types';
88

9-
let ModalTemp: any = Modal;
9+
const ModalTemp: any = Modal;
1010

1111
ModalTemp.Content = ModalContent;
1212
ModalTemp.CloseButton = ModalCloseButton;

src/components/composites/index.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export { default as Badge } from './Badge';
55
export type { IBadgeProps } from './Badge';
66

77
export { default as Card } from './Card';
8+
export type { ICardProps } from './Card';
89

910
export { default as IconButton } from './IconButton';
1011
export type { IIconButtonProps } from './IconButton';
@@ -13,6 +14,7 @@ export { Alert } from './Alert';
1314
export type { IAlertProps } from './Alert';
1415

1516
export { Avatar } from './Avatar';
17+
export type { IAvatarProps } from './Avatar';
1618

1719
export { Breadcrumb } from './Breadcrumb';
1820
export type { IBreadcrumbProps } from './Breadcrumb';
@@ -23,14 +25,18 @@ export { default as Container } from './Container';
2325
export type { IContainerProps } from './Container';
2426

2527
export { Modal } from './Modal';
28+
export type { IModalProps } from './Modal';
2629
export { default as Drawer } from './Drawer';
30+
export type { IDrawerProps } from './Drawer';
2731

28-
export { useToast, IToastProps, Toast } from './Toast';
32+
export { useToast, Toast } from './Toast';
33+
export type { IToastProps } from './Toast';
2934

3035
export { default as Divider } from './Divider';
3136
export type { IDividerProps } from './Divider/types';
3237

3338
export { default as Progress } from './Progress';
39+
export type { IProgressProps } from './Progress';
3440

3541
// export { default as Stat } from './Stat';
3642

@@ -101,14 +107,13 @@ export type {
101107

102108
export { default as Collapse } from './Collapse';
103109
export { default as CircularProgress } from './CircularProgress';
104-
// export { Modal } from './Modal';
105-
// export type { IModalProps } from './Modal';
106110

107111
export { Popover } from './Popover';
108112
export { Tooltip } from './Tooltip';
109113
export type { IPopoverProps } from './Popover';
110114

111115
export { AlertDialog } from './AlertDialog';
116+
export type { IAlertDialogProps } from './AlertDialog';
112117

113118
export { Menu } from './Menu';
114119
export type {

src/components/primitives/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export { default as Switch } from './Switch';
5151
export type { ISwitchProps } from './Switch';
5252

5353
export { default as TextArea } from './TextArea';
54+
export { ITextAreaProps } from './TextArea';
5455

5556
export { default as Link } from './Link';
5657
export type { ILinkProps } from './Link';
@@ -64,5 +65,6 @@ export type { IHiddenProps } from './Hidden';
6465
export { VisuallyHidden } from './VisuallyHidden';
6566

6667
export { default as ZStack } from './ZStack';
68+
export type { IZStackProps } from './ZStack';
6769

6870
export { Overlay } from './Overlay';

src/index.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ import {
106106
Typeahead,
107107
useTypeahead,
108108
Modal,
109+
IModalProps,
110+
ICardProps,
111+
IAvatarProps,
112+
IDrawerProps,
109113
useToast,
110114
Toast,
111115
IToastProps,
@@ -171,6 +175,8 @@ import {
171175
Pressable,
172176
IPressableProps,
173177
IStackProps,
178+
ITextAreaProps,
179+
IZStackProps,
174180
} from './components/primitives';
175181

176182
export * from './components/basic';
@@ -318,6 +324,12 @@ export type {
318324
IScaleFadeProps,
319325
ISlideProps,
320326
ISlideFadeProps,
327+
IModalProps,
328+
ICardProps,
329+
IAvatarProps,
330+
IDrawerProps,
331+
ITextAreaProps,
332+
IZStackProps,
321333
INumberInputProps,
322334
INumberInputFieldProps,
323335
INumberInputContext,

0 commit comments

Comments
 (0)