Skip to content

Commit

Permalink
build: update index export syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jared-dickman committed Jan 23, 2024
1 parent 4c92d8d commit 9e5541b
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 71 deletions.
1 change: 1 addition & 0 deletions src/components/data-entry/Checkbox/Checkbox.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<typeof Checkbox> = {
title: "Aquarium/Data Entry/Checkbox",
Expand Down
134 changes: 67 additions & 67 deletions src/components/index.ts
Original file line number Diff line number Diff line change
@@ -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";
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";
4 changes: 0 additions & 4 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e5541b

Please sign in to comment.