From 9e5541b199f8aaddaf7aacc704a795239ef12604 Mon Sep 17 00:00:00 2001 From: jdickman Date: Tue, 23 Jan 2024 16:50:45 +0000 Subject: [PATCH] build: update index export syntax --- .../data-entry/Checkbox/Checkbox.stories.tsx | 1 + src/components/index.ts | 134 +++++++++--------- vite.config.js | 4 - 3 files changed, 68 insertions(+), 71 deletions(-) diff --git a/src/components/data-entry/Checkbox/Checkbox.stories.tsx b/src/components/data-entry/Checkbox/Checkbox.stories.tsx index 73464999d..c4eaeaf61 100644 --- a/src/components/data-entry/Checkbox/Checkbox.stories.tsx +++ b/src/components/data-entry/Checkbox/Checkbox.stories.tsx @@ -6,6 +6,7 @@ import { ExampleStory } from "src/utils/ExampleStory"; import { CheckboxValueType } from "antd/es/checkbox/Group"; import { ICheckboxProps } from "src/components/data-entry/Checkbox/Checkbox"; import { userEvent } from "@storybook/test"; +import { expect } from "@storybook/test"; const meta: Meta = { title: "Aquarium/Data Entry/Checkbox", diff --git a/src/components/index.ts b/src/components/index.ts index d8ee969d3..363c27d41 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -1,67 +1,67 @@ -export * from "./general/Button/Button"; -export * from "./general/FloatButton/FloatButton"; -export * from "./data-entry/Rate/Rate"; -export * from "./data-entry/Form/Form"; -export * from "./data-entry/TreeSelect/TreeSelect"; -export * from "./data-entry/Select/Select"; -export * from "./data-entry/Mentions/Mentions"; -export * from "./data-entry/Radio/Radio"; -export * from "./data-entry/ColorPicker/ColorPicker"; -export * from "./data-entry/Slider/Slider"; -export * from "./data-entry/Cascader/Cascader"; -export * from "./data-entry/DatePicker/DatePicker"; -export * from "./data-entry/Checkbox/Checkbox"; -export * from "./data-entry/Input/Input"; -export * from "./data-entry/InputNumber/InputNumber"; -export * from "./data-entry/Switch/Switch"; -export * from "./data-entry/Upload/Upload"; -export * from "./data-entry/AutoComplete/AutoComplete"; -export * from "./data-entry/TimePicker/TimePicker"; -export * from "./data-entry/Transfer/Transfer"; -export * from "./data-display/Collapse/Collapse"; -export * from "./data-display/Timeline/Timeline"; -export * from "./data-display/Calendar/Calendar"; -export * from "./data-display/Segmented/Segmented"; -export * from "./data-display/Tabs/Tabs"; -export * from "./data-display/Tag/Tag"; -export * from "./data-display/Tour/Tour"; -export * from "./data-display/Carousel/Carousel"; -export * from "./data-display/Tooltip/Tooltip"; -export * from "./data-display/Statistic/Statistic"; -export * from "./data-display/Tree/Tree"; -export * from "./data-display/Image/Image"; -export * from "./data-display/QRCode/QRCode"; -export * from "./data-display/Badge/Badge"; -export * from "./data-display/Card/Card"; -export * from "./data-display/Avatar/Avatar"; -export * from "./data-display/Descriptions/Descriptions"; -export * from "./data-display/Table/Table"; -export * from "./data-display/Empty/Empty"; -export * from "./data-display/Popover/Popover"; -export * from "./data-display/List/List"; -export * from "./feedback/Progress/Progress"; -export * from "./feedback/Result/Result"; -export * from "./feedback/Spin/Spin"; -export * from "./feedback/Skeleton/Skeleton"; -export * from "./feedback/Watermark/Watermark"; -export * from "./feedback/Popconfirm/Popconfirm"; -export * from "./feedback/Drawer/Drawer"; -export * from "./feedback/Modal/Modal"; -export * from "./feedback/Notification/Notification"; -export * from "./feedback/Alert/Alert"; -export * from "./feedback/Message/Message"; -export * from "./feedback/LoadingModal/LoadingModal"; -export * from "./layout/Flex/Flex"; -export * from "./layout/Divider/Divider"; -export * from "./layout/Space/Space"; -export * from "./layout/Layout/Layout"; -export * from "./layout/Grid/Grid"; -export * from "./navigation/Steps/Steps"; -export * from "./navigation/Anchor/Anchor"; -export * from "./navigation/Dropdown/Dropdown"; -export * from "./navigation/Breadcrumb/Breadcrumb"; -export * from "./navigation/Pagination/Pagination"; -export * from "./navigation/Menu/Menu"; -export * from "./other/ConfigProvider/ConfigProvider"; -export * from "./other/Affix/Affix"; -export * from "./other/App/App"; \ No newline at end of file +export { Button, type IButtonProps } from "./general/Button/Button"; +export { FloatButton, type IFloatButtonProps } from "./general/FloatButton/FloatButton"; +export { Rate, type IRateProps } from "./data-entry/Rate/Rate"; +export { Form, type IFormProps } from "./data-entry/Form/Form"; +export { TreeSelect, type ITreeSelectProps } from "./data-entry/TreeSelect/TreeSelect"; +export { Select, type ISelectProps } from "./data-entry/Select/Select"; +export { Mentions, type IMentionsProps } from "./data-entry/Mentions/Mentions"; +export { Radio, type IRadioProps } from "./data-entry/Radio/Radio"; +export { ColorPicker, type IColorPickerProps } from "./data-entry/ColorPicker/ColorPicker"; +export { Slider, type ISliderProps } from "./data-entry/Slider/Slider"; +export { Cascader, type ICascaderProps } from "./data-entry/Cascader/Cascader"; +export { DatePicker, type IDatePickerProps } from "./data-entry/DatePicker/DatePicker"; +export { Checkbox, type ICheckboxProps } from "./data-entry/Checkbox/Checkbox"; +export { Input, type IInputProps } from "./data-entry/Input/Input"; +export { InputNumber, type IInputNumberProps } from "./data-entry/InputNumber/InputNumber"; +export { Switch, type ISwitchProps } from "./data-entry/Switch/Switch"; +export { Upload, type IUploadProps } from "./data-entry/Upload/Upload"; +export { AutoComplete, type IAutoCompleteProps } from "./data-entry/AutoComplete/AutoComplete"; +export { TimePicker, type ITimePickerProps } from "./data-entry/TimePicker/TimePicker"; +export { Transfer, type ITransferProps } from "./data-entry/Transfer/Transfer"; +export { Collapse, type ICollapseProps } from "./data-display/Collapse/Collapse"; +export { Timeline, type ITimelineProps } from "./data-display/Timeline/Timeline"; +export { Calendar, type ICalendarProps } from "./data-display/Calendar/Calendar"; +export { Segmented, type ISegmentedProps } from "./data-display/Segmented/Segmented"; +export { Tabs, type ITabsProps } from "./data-display/Tabs/Tabs"; +export { Tag, type ITagProps } from "./data-display/Tag/Tag"; +export { Tour, type ITourProps } from "./data-display/Tour/Tour"; +export { Carousel, type ICarouselProps } from "./data-display/Carousel/Carousel"; +export { Tooltip, type ITooltipProps } from "./data-display/Tooltip/Tooltip"; +export { Statistic, type IStatisticProps } from "./data-display/Statistic/Statistic"; +export { Tree, type ITreeProps } from "./data-display/Tree/Tree"; +export { Image, type IImageProps } from "./data-display/Image/Image"; +export { QRCode, type IQRCodeProps } from "./data-display/QRCode/QRCode"; +export { Badge, type IBadgeProps } from "./data-display/Badge/Badge"; +export { Card, type ICardProps } from "./data-display/Card/Card"; +export { Avatar, type IAvatarProps } from "./data-display/Avatar/Avatar"; +export { Descriptions, type IDescriptionsProps } from "./data-display/Descriptions/Descriptions"; +export { Table, type ITableProps } from "./data-display/Table/Table"; +export { Empty, type IEmptyProps } from "./data-display/Empty/Empty"; +export { Popover, type IPopoverProps } from "./data-display/Popover/Popover"; +export { List, type IListProps } from "./data-display/List/List"; +export { Progress, type IProgressProps } from "./feedback/Progress/Progress"; +export { Result, type IResultProps } from "./feedback/Result/Result"; +export { Spin, type ISpinProps } from "./feedback/Spin/Spin"; +export { Skeleton, type ISkeletonProps } from "./feedback/Skeleton/Skeleton"; +export { Watermark, type IWatermarkProps } from "./feedback/Watermark/Watermark"; +export { Popconfirm, type IPopconfirmProps } from "./feedback/Popconfirm/Popconfirm"; +export { Drawer, type IDrawerProps } from "./feedback/Drawer/Drawer"; +export { Modal, type IModalProps } from "./feedback/Modal/Modal"; +export { Notification, type INotificationProps } from "./feedback/Notification/Notification"; +export { Alert, type IAlertProps } from "./feedback/Alert/Alert"; +export { Message, type IMessageProps } from "./feedback/Message/Message"; +export { LoadingModal, type ILoadingModalProps } from "./feedback/LoadingModal/LoadingModal"; +export { Flex, type IFlexProps } from "./layout/Flex/Flex"; +export { Divider, type IDividerProps } from "./layout/Divider/Divider"; +export { Space, type ISpaceProps } from "./layout/Space/Space"; +export { Layout, type ILayoutProps } from "./layout/Layout/Layout"; +export { Grid, Col, Row, type IColProps, type IRowProps } from "./layout/Grid/Grid"; +export { Steps, type IStepsProps } from "./navigation/Steps/Steps"; +export { Anchor, type IAnchorProps } from "./navigation/Anchor/Anchor"; +export { Dropdown, type IDropdownProps } from "./navigation/Dropdown/Dropdown"; +export { Breadcrumb, type IBreadcrumbProps } from "./navigation/Breadcrumb/Breadcrumb"; +export { Pagination, type IPaginationProps } from "./navigation/Pagination/Pagination"; +export { Menu, type IMenuProps } from "./navigation/Menu/Menu"; +export { ConfigProvider, type IConfigProviderProps } from "./other/ConfigProvider/ConfigProvider"; +export { Affix, type IAffixProps } from "./other/Affix/Affix"; +export { App, type IAppProps } from "./other/App/App"; \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index 5d1ecd0b6..9350e83ce 100644 --- a/vite.config.js +++ b/vite.config.js @@ -27,10 +27,6 @@ export default defineConfig({ }), ], - esbuild: { - jsxInject: `import { expect } from "@storybook/test";`, - }, - build: { lib: { // Could also be a dictionary or array of multiple entry points