144 lines
5.0 KiB
TypeScript
144 lines
5.0 KiB
TypeScript
/**
|
||
* Stash UI 组件库入口。
|
||
*
|
||
* 样式在这里统一引入:令牌 → 图标字体 → 各组件自己的 CSS Modules,
|
||
* 构建后合并成一份 `stash-ui.css`,使用方只需:
|
||
*
|
||
* ```ts
|
||
* import '@stash/ui/style.css'
|
||
* import { Button, Card } from '@stash/ui'
|
||
* ```
|
||
*/
|
||
|
||
import './theme/tokens.css'
|
||
import './theme/iconfont.css'
|
||
|
||
export { Avatar } from './components/Avatar'
|
||
export type { AvatarProps, AvatarShape, AvatarSize } from './components/Avatar'
|
||
|
||
export { Badge } from './components/Badge'
|
||
export type { BadgeProps, BadgeTone } from './components/Badge'
|
||
|
||
export { Button } from './components/Button'
|
||
export type { ButtonProps, ButtonShape, ButtonSize, ButtonVariant } from './components/Button'
|
||
|
||
export { Checkbox } from './components/Checkbox'
|
||
export type { CheckboxProps } from './components/Checkbox'
|
||
|
||
export { Card } from './components/Card'
|
||
export type { CardProps } from './components/Card'
|
||
|
||
export { Cover } from './components/Cover'
|
||
export type { CoverProps, CoverRatio } from './components/Cover'
|
||
|
||
export { Breadcrumb } from './components/Breadcrumb'
|
||
export type { BreadcrumbItem, BreadcrumbProps } from './components/Breadcrumb'
|
||
|
||
export { Drawer } from './components/Drawer'
|
||
export type { DrawerPlacement, DrawerProps } from './components/Drawer'
|
||
|
||
export { Divider } from './components/Divider'
|
||
export type { DividerProps } from './components/Divider'
|
||
|
||
export { Empty } from './components/Empty'
|
||
export type { EmptyProps } from './components/Empty'
|
||
|
||
export { Grid } from './components/Grid'
|
||
export type { GridGap, GridProps } from './components/Grid'
|
||
|
||
export { Image } from './components/Image'
|
||
export type { ImageFit, ImageProps, ImageRatio } from './components/Image'
|
||
|
||
export { FormField } from './components/FormField'
|
||
export type { FormFieldProps } from './components/FormField'
|
||
|
||
export { Icon } from './components/Icon'
|
||
export type { IconName, IconProps } from './components/Icon'
|
||
export { ICON_NAMES } from './theme/icons'
|
||
|
||
export { IconButton } from './components/IconButton'
|
||
export type { IconButtonProps, IconButtonSize } from './components/IconButton'
|
||
|
||
export { Input } from './components/Input'
|
||
export type { InputProps } from './components/Input'
|
||
|
||
export { Layout } from './components/Layout'
|
||
export type { LayoutProps } from './components/Layout'
|
||
|
||
export { ItemBadge } from './components/ItemBadge'
|
||
export type { ItemBadgeProps, ItemBadgeTone } from './components/ItemBadge'
|
||
|
||
export { Modal } from './components/Modal'
|
||
export type { ModalProps, ModalSize } from './components/Modal'
|
||
|
||
export { Menu } from './components/Menu'
|
||
export type { MenuItem, MenuProps } from './components/Menu'
|
||
|
||
export { Popover } from './components/Popover'
|
||
export type { PopoverProps } from './components/Popover'
|
||
|
||
export { Progress } from './components/Progress'
|
||
export type { ProgressProps, ProgressTone } from './components/Progress'
|
||
|
||
export { RadioGroup } from './components/Radio'
|
||
export type { RadioGroupProps, RadioOption } from './components/Radio'
|
||
|
||
export { Result } from './components/Result'
|
||
export type { ResultProps, ResultStatus } from './components/Result'
|
||
|
||
export { Segmented } from './components/Segmented'
|
||
export type { SegmentedOption, SegmentedProps } from './components/Segmented'
|
||
|
||
export { Select } from './components/Select'
|
||
export type { SelectOption, SelectProps } from './components/Select'
|
||
|
||
export { Steps } from './components/Steps'
|
||
export type { StepItem, StepsProps } from './components/Steps'
|
||
|
||
export { Table } from './components/Table'
|
||
export type { TableColumn, TableProps } from './components/Table'
|
||
|
||
export { Tabs } from './components/Tabs'
|
||
export type { TabItem, TabsProps } from './components/Tabs'
|
||
|
||
export { Toaster } from './components/Toast'
|
||
export { dismissToast, toast } from './components/toast-store'
|
||
export type { ToastOptions, ToastTone } from './components/toast-store'
|
||
|
||
export { Tooltip } from './components/Tooltip'
|
||
export type { TooltipPlacement, TooltipProps } from './components/Tooltip'
|
||
|
||
export { Notice } from './components/Notice'
|
||
export type { NoticeProps, NoticeTone } from './components/Notice'
|
||
|
||
export { Pagination } from './components/Pagination'
|
||
export type { PaginationProps } from './components/Pagination'
|
||
|
||
export { Skeleton } from './components/Skeleton'
|
||
export type { SkeletonProps, SkeletonVariant } from './components/Skeleton'
|
||
|
||
export { Spinner } from './components/Spinner'
|
||
export type { SpinnerProps, SpinnerSize } from './components/Spinner'
|
||
|
||
export { Switch } from './components/Switch'
|
||
export type { SwitchProps, SwitchSize } from './components/Switch'
|
||
|
||
export { Title, Text, Paragraph } from './components/Typography'
|
||
export type {
|
||
ParagraphProps,
|
||
TextProps,
|
||
TextSize,
|
||
TextTone,
|
||
TitleLevel,
|
||
TitleProps,
|
||
} from './components/Typography'
|
||
|
||
export { ScrollTop } from './components/ScrollTop'
|
||
export type { ScrollTopProps } from './components/ScrollTop'
|
||
|
||
export { Space } from './components/Space'
|
||
export type { SpaceGap, SpaceProps } from './components/Space'
|
||
|
||
export { Tag } from './components/Tag'
|
||
export type { TagProps, TagShape, TagTone, TagVariant } from './components/Tag'
|