ant-design/components/index.tsx

172 lines
7.3 KiB
TypeScript
Raw Normal View History

2017-09-11 11:58:38 +08:00
/* @remove-on-es-build-begin */
import './_util/alphaWarning';
// this file is not used if use https://github.com/ant-design/babel-plugin-import
const ENV = process.env.NODE_ENV;
2018-12-07 20:02:01 +08:00
if (
ENV !== 'production' &&
2018-07-18 17:35:39 +08:00
ENV !== 'test' &&
typeof console !== 'undefined' &&
2019-08-14 18:21:24 +08:00
console.warn && // eslint-disable-line no-console
2018-12-07 20:02:01 +08:00
typeof window !== 'undefined'
) {
2019-08-14 18:21:24 +08:00
// eslint-disable-next-line no-console
2017-03-29 15:47:31 +08:00
console.warn(
'You are using a whole package of antd, ' +
2018-12-07 20:02:01 +08:00
'please use https://www.npmjs.com/package/babel-plugin-import to reduce app bundle size.',
);
}
2017-09-11 11:58:38 +08:00
/* @remove-on-es-build-end */
2016-09-28 16:53:02 +08:00
export { default as Affix } from './affix';
2022-06-21 19:40:22 +08:00
export type { AffixProps } from './affix';
export { default as Alert } from './alert';
export type { AlertProps } from './alert';
2016-10-28 14:02:55 +08:00
export { default as Anchor } from './anchor';
2022-06-21 19:40:22 +08:00
export type { AnchorLinkProps, AnchorProps } from './anchor';
2016-09-28 16:53:02 +08:00
export { default as AutoComplete } from './auto-complete';
2022-06-21 19:40:22 +08:00
export type { AutoCompleteProps } from './auto-complete';
2017-05-28 14:20:59 +08:00
export { default as Avatar } from './avatar';
2022-06-21 19:40:22 +08:00
export type { AvatarProps } from './avatar';
2016-09-28 16:53:02 +08:00
export { default as BackTop } from './back-top';
2022-06-21 19:40:22 +08:00
export type { BackTopProps } from './back-top';
2016-09-28 16:53:02 +08:00
export { default as Badge } from './badge';
2022-06-21 19:40:22 +08:00
export type { BadgeProps } from './badge';
2016-09-28 16:53:02 +08:00
export { default as Breadcrumb } from './breadcrumb';
2022-06-21 19:40:22 +08:00
export type { BreadcrumbItemProps, BreadcrumbProps } from './breadcrumb';
2016-09-28 16:53:02 +08:00
export { default as Button } from './button';
2022-06-21 19:40:22 +08:00
export type { ButtonProps } from './button';
2016-09-28 16:53:02 +08:00
export { default as Calendar } from './calendar';
2022-06-21 19:40:22 +08:00
export type { CalendarProps } from './calendar';
2016-09-28 16:53:02 +08:00
export { default as Card } from './card';
2022-06-21 19:40:22 +08:00
export type { CardProps } from './card';
2016-09-28 16:53:02 +08:00
export { default as Carousel } from './carousel';
2022-06-21 19:40:22 +08:00
export type { CarouselProps } from './carousel';
2016-09-28 16:53:02 +08:00
export { default as Cascader } from './cascader';
2022-06-21 19:40:22 +08:00
export type { CascaderProps } from './cascader';
2016-09-28 16:53:02 +08:00
export { default as Checkbox } from './checkbox';
2022-06-21 19:40:22 +08:00
export type { CheckboxOptionType, CheckboxProps } from './checkbox';
2016-09-28 16:53:02 +08:00
export { default as Col } from './col';
2022-06-21 19:40:22 +08:00
export type { ColProps } from './col';
export { default as Collapse } from './collapse';
export type { CollapsePanelProps, CollapseProps } from './collapse';
2018-10-22 21:20:28 +08:00
export { default as Comment } from './comment';
2022-06-21 19:40:22 +08:00
export type { CommentProps } from './comment';
2018-11-26 12:06:42 +08:00
export { default as ConfigProvider } from './config-provider';
2016-09-28 16:53:02 +08:00
export { default as DatePicker } from './date-picker';
2022-06-21 19:40:22 +08:00
export type { DatePickerProps } from './date-picker';
export { default as Descriptions } from './descriptions';
2022-06-21 19:40:22 +08:00
export type { DescriptionsProps } from './descriptions';
export { default as Divider } from './divider';
2022-06-21 19:40:22 +08:00
export type { DividerProps } from './divider';
export { default as Drawer } from './drawer';
export type { DrawerProps } from './drawer';
export { default as Dropdown } from './dropdown';
export type {
DropdownProps,
// typo, but we need to support it for backwards compatibility
// https://github.com/ant-design/ant-design/pull/35161
DropdownProps as DropDownProps,
} from './dropdown';
2018-12-26 16:01:00 +08:00
export { default as Empty } from './empty';
2022-06-21 19:40:22 +08:00
export type { EmptyProps } from './empty';
2016-09-28 16:53:02 +08:00
export { default as Form } from './form';
export type {
FormInstance,
FormItemProps,
FormListFieldData,
FormListOperation,
2022-06-21 19:40:22 +08:00
FormProps,
Rule as FormRule,
} from './form';
export { default as Grid } from './grid';
export { default as Image } from './image';
2022-06-21 19:40:22 +08:00
export type { ImageProps } from './image';
export { default as Input } from './input';
export type { InputProps, InputRef } from './input';
2016-09-28 16:53:02 +08:00
export { default as InputNumber } from './input-number';
2022-06-21 19:40:22 +08:00
export type { InputNumberProps } from './input-number';
export { default as Layout } from './layout';
2022-06-21 19:40:22 +08:00
export type { LayoutProps, SiderProps } from './layout';
export { default as List } from './list';
2022-06-21 19:40:22 +08:00
export type { ListProps } from './list';
export { default as Mentions } from './mentions';
2022-06-21 19:40:22 +08:00
export type { MentionProps } from './mentions';
export { default as Menu } from './menu';
export type { MenuItemProps, MenuProps, MenuTheme, SubMenuProps } from './menu';
export { default as message } from './message';
export type { ArgsProps as MessageArgsProps } from './message';
2016-09-28 16:53:02 +08:00
export { default as Modal } from './modal';
2022-06-21 19:40:22 +08:00
export type { ModalFuncProps, ModalProps } from './modal';
2016-09-28 16:53:02 +08:00
export { default as notification } from './notification';
export { default as PageHeader } from './page-header';
2022-06-21 19:40:22 +08:00
export type { PageHeaderProps } from './page-header';
2016-09-28 16:53:02 +08:00
export { default as Pagination } from './pagination';
2022-06-21 19:40:22 +08:00
export type { PaginationProps } from './pagination';
2016-09-28 16:53:02 +08:00
export { default as Popconfirm } from './popconfirm';
2022-06-21 19:40:22 +08:00
export type { PopconfirmProps } from './popconfirm';
2016-09-28 16:53:02 +08:00
export { default as Popover } from './popover';
2022-06-21 19:40:22 +08:00
export type { PopoverProps } from './popover';
2016-09-28 16:53:02 +08:00
export { default as Progress } from './progress';
2022-06-21 19:40:22 +08:00
export type { ProgressProps } from './progress';
2016-09-28 16:53:02 +08:00
export { default as Radio } from './radio';
2022-06-21 19:40:22 +08:00
export type { RadioChangeEvent, RadioGroupProps, RadioProps } from './radio';
2016-09-28 16:53:02 +08:00
export { default as Rate } from './rate';
2022-06-21 19:40:22 +08:00
export type { RateProps } from './rate';
export { default as Result } from './result';
2022-06-21 19:40:22 +08:00
export type { ResultProps } from './result';
2016-09-28 16:53:02 +08:00
export { default as Row } from './row';
2022-06-21 19:40:22 +08:00
export type { RowProps } from './row';
export { default as Segmented } from './segmented';
2022-06-21 19:40:22 +08:00
export type { SegmentedProps } from './segmented';
export { default as Select } from './select';
export type { RefSelectProps, SelectProps } from './select';
export { default as Skeleton } from './skeleton';
2022-06-21 19:40:22 +08:00
export type { SkeletonProps } from './skeleton';
2016-09-28 16:53:02 +08:00
export { default as Slider } from './slider';
2022-06-21 19:40:22 +08:00
export type { SliderSingleProps } from './slider';
export { default as Space } from './space';
2022-06-21 19:40:22 +08:00
export type { SpaceProps } from './space';
2016-09-28 16:53:02 +08:00
export { default as Spin } from './spin';
2022-06-21 19:40:22 +08:00
export type { SpinProps } from './spin';
export { default as Statistic } from './statistic';
export type { StatisticProps } from './statistic';
2016-09-28 16:53:02 +08:00
export { default as Steps } from './steps';
2022-06-21 19:40:22 +08:00
export type { StepProps, StepsProps } from './steps';
2016-09-28 16:53:02 +08:00
export { default as Switch } from './switch';
2022-06-21 19:40:22 +08:00
export type { SwitchProps } from './switch';
export { default as Table } from './table';
export type {
ColumnGroupType as TableColumnGroupType,
ColumnProps as TableColumnProps,
ColumnsType as TableColumnsType,
2022-06-21 19:40:22 +08:00
ColumnType as TableColumnType,
TablePaginationConfig,
TableProps,
} from './table';
2022-06-21 19:40:22 +08:00
export { default as Tabs } from './tabs';
export type { TabPaneProps, TabsProps } from './tabs';
export { default as Tag } from './tag';
export type { TagProps, TagType } from './tag';
export { default as TimePicker } from './time-picker';
export type { TimePickerProps, TimeRangePickerProps } from './time-picker';
export { default as Timeline } from './timeline';
export type { TimelineItemProps, TimelineProps } from './timeline';
export { default as Tooltip } from './tooltip';
export type { TooltipProps } from './tooltip';
2016-09-28 16:53:02 +08:00
export { default as Transfer } from './transfer';
2022-06-21 19:40:22 +08:00
export type { TransferProps } from './transfer';
export { default as Tree } from './tree';
2021-05-28 13:26:18 +08:00
export type {
AntTreeNodeProps as TreeNodeProps,
DataNode as TreeDataNode,
2022-06-21 19:40:22 +08:00
TreeProps,
2021-05-28 13:26:18 +08:00
} from './tree';
2016-09-28 16:53:02 +08:00
export { default as TreeSelect } from './tree-select';
2022-06-21 19:40:22 +08:00
export type { TreeSelectProps } from './tree-select';
New Component: Typography (#14250) * text with prefix * add edit style * support editable * enhance accessibility & type experience * optimize IME case * support copy * add locale * add secondary & disabled * add ellipsis shadow text * split to 3 components * update snapshot * update desc * change lines also need update ellipsis * skip aria when is in ellipsis * add ResizeObserver in _util * update snapshot * move TestBase into test file * update test case * update doc * fix typo * important => level * use rows * update demo cols to 1 * fix cssText not work in firefox * update doc * add miss point * support extendable * update snapshot * fix doc * copyable support string * update snapshot * update doc * update doc desc * adjust style * full test * reset after test * rename * update snapshot * fix compile * adjust style * update desc * update prefixCls * update margin * adjust * nest wrap of tag content * adjust style * update comment * rm % * one more thing * tmp of measure * merge string as children * update snapshot * update testcase * remove comment * use internal variable for configProvider passing * update snapshot * use expandable instead of extendable * less variable it * update demo * update less * adjust code & mark style * remove mark padding * update measure logic * support nest element style * use childNode.textContent to fix react 15 error * update css * popout Typography * add link style * adjust doc * use ellipsis instead of rows & expandable * update doc * update doc * update doc & style * fix typo * add css ellipsis support * client render * update snapshot * enhance copyable * support onExpand * update test case * add test of css ellipsis * fix logic in react 15 * rename onChange -> onSave * use tagName of article * fix lint
2019-02-19 11:42:05 +08:00
export { default as Typography } from './typography';
2022-06-21 19:40:22 +08:00
export type { TypographyProps } from './typography';
2016-11-03 16:45:13 +08:00
export { default as Upload } from './upload';
2022-06-21 19:40:22 +08:00
export type { UploadFile, UploadProps } from './upload';
export { default as version } from './version';