Browse Source

feat: prepend use-client directive for with Next.js App Router (#43573)

* fix: prepend use-client directive for with Next.js App Router

* Update components/affix/index.tsx

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* Update components/badge/index.tsx

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* Update components/divider/index.tsx

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* Update components/cascader/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/list/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/mentions/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/mentions/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/mentions/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/mentions/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/qrcode/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/spin/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/select/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/spin/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/spin/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/steps/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/time-picker/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/transfer/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/tree-select/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: MadCcc <1075746765@qq.com>
pull/43575/head
lijianan 1 year ago
committed by GitHub
parent
commit
38474628fd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/affix/index.tsx
  2. 2
      components/alert/index.ts
  3. 2
      components/anchor/index.ts
  4. 2
      components/app/index.tsx
  5. 8
      components/auto-complete/index.tsx
  6. 2
      components/avatar/index.ts
  7. 6
      components/back-top/index.tsx
  8. 2
      components/badge/index.tsx
  9. 2
      components/breadcrumb/index.ts
  10. 2
      components/button/index.ts
  11. 2
      components/calendar/index.ts
  12. 2
      components/card/index.ts
  13. 2
      components/carousel/index.tsx
  14. 2
      components/cascader/index.tsx
  15. 4
      components/checkbox/index.ts
  16. 2
      components/col/index.ts
  17. 2
      components/collapse/index.ts
  18. 4
      components/color-picker/index.ts
  19. 2
      components/config-provider/index.tsx
  20. 2
      components/date-picker/index.ts
  21. 2
      components/descriptions/index.tsx
  22. 2
      components/divider/index.tsx
  23. 4
      components/drawer/index.tsx
  24. 2
      components/dropdown/index.ts
  25. 2
      components/empty/index.tsx
  26. 4
      components/float-button/index.ts
  27. 16
      components/form/index.ts
  28. 4
      components/grid/index.ts
  29. 2
      components/image/index.tsx
  30. 2
      components/index.ts
  31. 2
      components/input-number/index.tsx
  32. 2
      components/input/index.ts
  33. 2
      components/layout/index.ts
  34. 2
      components/list/index.tsx
  35. 2
      components/locale/index.tsx
  36. 2
      components/mentions/index.tsx
  37. 8
      components/menu/index.tsx
  38. 2
      components/message/index.tsx
  39. 2
      components/modal/index.tsx
  40. 2
      components/notification/index.tsx
  41. 2
      components/pagination/index.ts
  42. 2
      components/popconfirm/index.tsx
  43. 2
      components/popover/index.tsx
  44. 2
      components/progress/index.tsx
  45. 2
      components/qrcode/index.tsx
  46. 2
      components/radio/index.tsx
  47. 2
      components/rate/index.tsx
  48. 2
      components/result/index.tsx
  49. 2
      components/row/index.tsx
  50. 2
      components/segmented/index.tsx
  51. 2
      components/select/index.tsx
  52. 2
      components/skeleton/index.tsx
  53. 2
      components/slider/index.tsx
  54. 2
      components/space/index.tsx
  55. 4
      components/spin/index.tsx
  56. 4
      components/statistic/index.tsx
  57. 2
      components/steps/index.tsx
  58. 2
      components/style/index.ts
  59. 2
      components/switch/index.tsx
  60. 6
      components/table/index.ts
  61. 2
      components/tabs/index.tsx
  62. 2
      components/tag/index.tsx
  63. 2
      components/theme/index.ts
  64. 2
      components/time-picker/index.tsx
  65. 2
      components/timeline/index.ts
  66. 2
      components/tooltip/index.tsx
  67. 2
      components/tour/index.tsx
  68. 2
      components/transfer/index.tsx
  69. 2
      components/tree-select/index.tsx
  70. 12
      components/tree/index.ts
  71. 2
      components/typography/index.ts
  72. 2
      components/upload/index.ts

2
components/affix/index.tsx

@ -1,3 +1,5 @@
'use client';
import classNames from 'classnames';
import ResizeObserver from 'rc-resize-observer';
import omit from 'rc-util/lib/omit';

2
components/alert/index.ts

@ -1,3 +1,5 @@
'use client';
import type { AlertProps } from './Alert';
import InternalAlert from './Alert';
import ErrorBoundary from './ErrorBoundary';

2
components/anchor/index.ts

@ -1,3 +1,5 @@
'use client';
import InternalAnchor from './Anchor';
import AnchorLink from './AnchorLink';

2
components/app/index.tsx

@ -1,3 +1,5 @@
'use client';
import classNames from 'classnames';
import type { ReactNode } from 'react';
import React, { useContext } from 'react';

8
components/auto-complete/index.tsx

@ -1,10 +1,4 @@
/**
* TODO: 4.0
*
* - Remove `dataSource`
* - `size` not work with customizeInput
* - CustomizeInput not feedback `ENTER` key since accessibility enhancement
*/
'use client';
import classNames from 'classnames';
import type { BaseSelectRef } from 'rc-select';

2
components/avatar/index.ts

@ -1,3 +1,5 @@
'use client';
import type { ForwardRefExoticComponent, RefAttributes } from 'react';
import type { AvatarProps } from './avatar';
import InternalAvatar from './avatar';

6
components/back-top/index.tsx

@ -1,15 +1,17 @@
'use client';
import VerticalAlignTopOutlined from '@ant-design/icons/VerticalAlignTopOutlined';
import classNames from 'classnames';
import CSSMotion from 'rc-motion';
import omit from 'rc-util/lib/omit';
import * as React from 'react';
import type { ConfigConsumerProps } from '../config-provider';
import { ConfigContext } from '../config-provider';
import getScroll from '../_util/getScroll';
import { cloneElement } from '../_util/reactNode';
import scrollTo from '../_util/scrollTo';
import throttleByAnimationFrame from '../_util/throttleByAnimationFrame';
import warning from '../_util/warning';
import type { ConfigConsumerProps } from '../config-provider';
import { ConfigContext } from '../config-provider';
import useStyle from './style';
export interface BackTopProps {

2
components/badge/index.tsx

@ -1,3 +1,5 @@
'use client';
import classnames from 'classnames';
import CSSMotion from 'rc-motion';
import * as React from 'react';

2
components/breadcrumb/index.ts

@ -1,3 +1,5 @@
'use client';
import Breadcrumb from './Breadcrumb';
export type { BreadcrumbProps } from './Breadcrumb';

2
components/button/index.ts

@ -1,3 +1,5 @@
'use client';
import Button from './button';
export type { SizeType as ButtonSize } from '../config-provider/SizeContext';

2
components/calendar/index.ts

@ -1,3 +1,5 @@
'use client';
import type { Dayjs } from 'dayjs';
import dayjsGenerateConfig from 'rc-picker/lib/generate/dayjs';
import type { CalendarProps } from './generateCalendar';

2
components/card/index.ts

@ -1,3 +1,5 @@
'use client';
import InternalCard from './Card';
import Grid from './Grid';
import Meta from './Meta';

2
components/carousel/index.tsx

@ -1,3 +1,5 @@
'use client';
import type { Settings } from '@ant-design/react-slick';
import SlickCarousel from '@ant-design/react-slick';
import classNames from 'classnames';

2
components/cascader/index.tsx

@ -1,3 +1,5 @@
'use client';
import LeftOutlined from '@ant-design/icons/LeftOutlined';
import LoadingOutlined from '@ant-design/icons/LoadingOutlined';
import RightOutlined from '@ant-design/icons/RightOutlined';

4
components/checkbox/index.ts

@ -1,11 +1,13 @@
'use client';
import type * as React from 'react';
import type { CheckboxProps } from './Checkbox';
import InternalCheckbox from './Checkbox';
import Group from './Group';
export type { CheckboxRef } from 'rc-checkbox';
export type { CheckboxChangeEvent, CheckboxProps } from './Checkbox';
export type { CheckboxGroupProps, CheckboxOptionType } from './Group';
export type { CheckboxRef } from 'rc-checkbox';
type CompoundedComponent = React.ForwardRefExoticComponent<
CheckboxProps & React.RefAttributes<HTMLInputElement>

2
components/col/index.ts

@ -1,3 +1,5 @@
'use client';
import { Col, type ColProps, type ColSize } from '../grid';
export type { ColProps, ColSize };

2
components/collapse/index.ts

@ -1,3 +1,5 @@
'use client';
import Collapse from './Collapse';
export type { CollapseProps } from './Collapse';

4
components/color-picker/index.ts

@ -1,6 +1,8 @@
'use client';
import ColorPicker from './ColorPicker';
export type { Color } from './color';
export type { ColorPickerProps } from './ColorPicker';
export type { Color } from './color';
export default ColorPicker;

2
components/config-provider/index.tsx

@ -1,3 +1,5 @@
'use client';
import { createTheme } from '@ant-design/cssinjs';
import IconContext from '@ant-design/icons/lib/components/Context';
import type { ValidateMessages } from 'rc-field-form/lib/interface';

2
components/date-picker/index.ts

@ -1,3 +1,5 @@
'use client';
import type { Dayjs } from 'dayjs';
import dayjsGenerateConfig from 'rc-picker/lib/generate/dayjs';
import genPurePanel from '../_util/PurePanel';

2
components/descriptions/index.tsx

@ -1,3 +1,5 @@
'use client';
/* eslint-disable react/no-array-index-key */
import classNames from 'classnames';
import toArray from 'rc-util/lib/Children/toArray';

2
components/divider/index.tsx

@ -1,3 +1,5 @@
'use client';
import classNames from 'classnames';
import * as React from 'react';
import warning from '../_util/warning';

4
components/drawer/index.tsx

@ -1,3 +1,5 @@
'use client';
import classNames from 'classnames';
import type { DrawerProps as RcDrawerProps } from 'rc-drawer';
import RcDrawer from 'rc-drawer';
@ -15,7 +17,7 @@ import { NoCompactStyle } from '../space/Compact';
import useStyle from './style';
const SizeTypes = ['default', 'large'] as const;
type sizeType = (typeof SizeTypes)[number];
type sizeType = typeof SizeTypes[number];
export interface PushState {
distance: string | number;

2
components/dropdown/index.ts

@ -1,3 +1,5 @@
'use client';
import InternalDropdown from './dropdown';
import DropdownButton from './dropdown-button';

2
components/empty/index.tsx

@ -1,3 +1,5 @@
'use client';
import classNames from 'classnames';
import * as React from 'react';
import { ConfigContext } from '../config-provider';

4
components/float-button/index.ts

@ -1,6 +1,8 @@
'use client';
import BackTop from './BackTop';
import FloatButton from './FloatButton';
import FloatButtonGroup from './FloatButtonGroup';
import BackTop from './BackTop';
import PurePanel from './PurePanel';
FloatButton.BackTop = BackTop;

16
components/form/index.ts

@ -1,14 +1,16 @@
'use client';
import type { Rule, RuleObject, RuleRender } from 'rc-field-form/lib/interface';
import warning from '../_util/warning';
import { FormProvider } from './context';
import ErrorList, { type ErrorListProps } from './ErrorList';
import InternalForm, { type FormInstance, type FormProps, useForm, useWatch } from './Form';
import InternalForm, { useForm, useWatch, type FormInstance, type FormProps } from './Form';
import Item, { type FormItemProps } from './FormItem';
import List, {
type FormListFieldData,
type FormListOperation,
type FormListProps,
} from './FormList';
import { FormProvider } from './context';
import useFormInstance from './hooks/useFormInstance';
type InternalFormType = typeof InternalForm;
@ -44,16 +46,16 @@ Form.create = () => {
};
export type {
ErrorListProps,
FormInstance,
FormProps,
FormItemProps,
ErrorListProps,
FormListFieldData,
FormListOperation,
FormListProps,
FormProps,
Rule,
RuleObject,
RuleRender,
FormListProps,
FormListFieldData,
FormListOperation,
};
export default Form;

4
components/grid/index.ts

@ -1,3 +1,5 @@
'use client';
import Col from './col';
import useInternalBreakpoint from './hooks/useBreakpoint';
import Row from './row';
@ -9,6 +11,6 @@ function useBreakpoint() {
export type { ColProps, ColSize } from './col';
export type { RowProps } from './row';
export { Row, Col };
export { Col, Row };
export default { useBreakpoint };

2
components/image/index.tsx

@ -1,3 +1,5 @@
'use client';
import EyeOutlined from '@ant-design/icons/EyeOutlined';
import classNames from 'classnames';
import RcImage, { type ImageProps } from 'rc-image';

2
components/index.ts

@ -1,3 +1,5 @@
'use client';
export type { Breakpoint } from './_util/responsiveObserver';
export { default as Affix } from './affix';
export type { AffixProps } from './affix';

2
components/input-number/index.tsx

@ -1,3 +1,5 @@
'use client';
import DownOutlined from '@ant-design/icons/DownOutlined';
import UpOutlined from '@ant-design/icons/UpOutlined';
import type { ValueType } from '@rc-component/mini-decimal';

2
components/input/index.ts

@ -1,3 +1,5 @@
'use client';
import type * as React from 'react';
import Group from './Group';
import type { InputProps, InputRef } from './Input';

2
components/layout/index.ts

@ -1,3 +1,5 @@
'use client';
import InternalLayout, { Content, Footer, Header } from './layout';
import Sider from './Sider';

2
components/list/index.tsx

@ -1,3 +1,5 @@
'use client';
import classNames from 'classnames';
// eslint-disable-next-line import/no-named-as-default
import * as React from 'react';

2
components/locale/index.tsx

@ -1,3 +1,5 @@
'use client';
import type { ValidateMessages } from 'rc-field-form/lib/interface';
import * as React from 'react';
import warning from '../_util/warning';

2
components/mentions/index.tsx

@ -1,3 +1,5 @@
'use client';
import classNames from 'classnames';
import RcMentions from 'rc-mentions';
import type {

8
components/menu/index.tsx

@ -1,19 +1,21 @@
'use client';
import type { MenuRef as RcMenuRef } from 'rc-menu';
import { ItemGroup } from 'rc-menu';
import * as React from 'react';
import { forwardRef, useImperativeHandle, useRef } from 'react';
import type { MenuProps } from './menu';
import InternalMenu from './menu';
import { SiderContext } from '../layout/Sider';
import type { MenuTheme } from './MenuContext';
import MenuDivider from './MenuDivider';
import Item, { type MenuItemProps } from './MenuItem';
import SubMenu, { type SubMenuProps } from './SubMenu';
import type { ItemType, MenuItemType } from './hooks/useItems';
import type { MenuProps } from './menu';
import InternalMenu from './menu';
export type { MenuItemGroupProps } from 'rc-menu';
export type { MenuDividerProps } from './MenuDivider';
export type { MenuTheme, SubMenuProps, MenuItemProps, MenuProps };
export type { MenuItemProps, MenuProps, MenuTheme, SubMenuProps };
export type MenuRef = {
menu: RcMenuRef | null;

2
components/message/index.tsx

@ -1,3 +1,5 @@
'use client';
import { render } from 'rc-util/lib/React/render';
import * as React from 'react';
import ConfigProvider, { globalConfig, warnContext } from '../config-provider';

2
components/modal/index.tsx

@ -1,3 +1,5 @@
'use client';
import type { ModalStaticFunctions } from './confirm';
import confirm, {
modalGlobalConfig,

2
components/notification/index.tsx

@ -1,3 +1,5 @@
'use client';
import { render } from 'rc-util/lib/React/render';
import * as React from 'react';
import ConfigProvider, { globalConfig, warnContext } from '../config-provider';

2
components/pagination/index.ts

@ -1,3 +1,5 @@
'use client';
import Pagination from './Pagination';
export type { PaginationConfig, PaginationProps } from './Pagination';

2
components/popconfirm/index.tsx

@ -1,3 +1,5 @@
'use client';
import ExclamationCircleFilled from '@ant-design/icons/ExclamationCircleFilled';
import classNames from 'classnames';
import KeyCode from 'rc-util/lib/KeyCode';

2
components/popover/index.tsx

@ -1,3 +1,5 @@
'use client';
import classNames from 'classnames';
import * as React from 'react';
import type { RenderFunction } from '../_util/getRenderPropValue';

2
components/progress/index.tsx

@ -1,3 +1,5 @@
'use client';
import Progress from './progress';
export type { ProgressAriaProps, ProgressProps } from './progress';

2
components/qrcode/index.tsx

@ -1,3 +1,5 @@
'use client';
import { ReloadOutlined } from '@ant-design/icons';
import classNames from 'classnames';
import { QRCodeCanvas, QRCodeSVG } from 'qrcode.react';

2
components/radio/index.tsx

@ -1,3 +1,5 @@
'use client';
import type * as React from 'react';
import Group from './group';
import type { RadioProps } from './interface';

2
components/rate/index.tsx

@ -1,3 +1,5 @@
'use client';
import StarFilled from '@ant-design/icons/StarFilled';
import classNames from 'classnames';
import RcRate from 'rc-rate';

2
components/result/index.tsx

@ -1,3 +1,5 @@
'use client';
import CheckCircleFilled from '@ant-design/icons/CheckCircleFilled';
import CloseCircleFilled from '@ant-design/icons/CloseCircleFilled';
import ExclamationCircleFilled from '@ant-design/icons/ExclamationCircleFilled';

2
components/row/index.tsx

@ -1,3 +1,5 @@
'use client';
import { Row, type RowProps } from '../grid';
export type { RowProps };

2
components/segmented/index.tsx

@ -1,3 +1,5 @@
'use client';
import classNames from 'classnames';
import type {
SegmentedLabeledOption as RcSegmentedLabeledOption,

2
components/select/index.tsx

@ -1,3 +1,5 @@
'use client';
// TODO: 4.0 - codemod should help to change `filterOption` to support node props.
import classNames from 'classnames';
import type { BaseSelectRef, SelectProps as RcSelectProps } from 'rc-select';

2
components/skeleton/index.tsx

@ -1,3 +1,5 @@
'use client';
import Skeleton from './Skeleton';
export type { SkeletonProps } from './Skeleton';

2
components/slider/index.tsx

@ -1,3 +1,5 @@
'use client';
import classNames from 'classnames';
import type { SliderProps as RcSliderProps } from 'rc-slider';
import RcSlider from 'rc-slider';

2
components/space/index.tsx

@ -1,3 +1,5 @@
'use client';
import classNames from 'classnames';
import toArray from 'rc-util/lib/Children/toArray';
import * as React from 'react';

4
components/spin/index.tsx

@ -1,3 +1,5 @@
'use client';
import classNames from 'classnames';
import omit from 'rc-util/lib/omit';
import * as React from 'react';
@ -9,7 +11,7 @@ import { ConfigContext } from '../config-provider';
import useStyle from './style/index';
const SpinSizes = ['small', 'default', 'large'] as const;
export type SpinSize = (typeof SpinSizes)[number];
export type SpinSize = typeof SpinSizes[number];
export type SpinIndicator = React.ReactElement<HTMLElement>;
export interface SpinProps {

4
components/statistic/index.tsx

@ -1,9 +1,11 @@
'use client';
import type { CountdownProps } from './Countdown';
import Countdown from './Countdown';
import type { StatisticProps } from './Statistic';
import Statistic from './Statistic';
export type { StatisticProps, CountdownProps };
export type { CountdownProps, StatisticProps };
type CompoundedComponent = {
Countdown: typeof Countdown;

2
components/steps/index.tsx

@ -1,3 +1,5 @@
'use client';
import CheckOutlined from '@ant-design/icons/CheckOutlined';
import CloseOutlined from '@ant-design/icons/CloseOutlined';
import classNames from 'classnames';

2
components/style/index.ts

@ -1,3 +1,5 @@
'use client';
/* eslint-disable import/prefer-default-export */
import type { CSSObject } from '@ant-design/cssinjs';
import type { AliasToken, DerivativeToken } from '../theme/internal';

2
components/switch/index.tsx

@ -1,3 +1,5 @@
'use client';
import LoadingOutlined from '@ant-design/icons/LoadingOutlined';
import classNames from 'classnames';
import RcSwitch from 'rc-switch';

6
components/table/index.ts

@ -1,8 +1,10 @@
'use client';
import { type TablePaginationConfig, type TableProps } from './InternalTable';
import Table from './Table';
export type { ColumnProps } from './Column';
export type { ColumnGroupType, ColumnsType, ColumnType } from './interface';
export type { TableProps, TablePaginationConfig };
export type { ColumnGroupType, ColumnType, ColumnsType } from './interface';
export type { TablePaginationConfig, TableProps };
export default Table;

2
components/tabs/index.tsx

@ -1,3 +1,5 @@
'use client';
import CloseOutlined from '@ant-design/icons/CloseOutlined';
import EllipsisOutlined from '@ant-design/icons/EllipsisOutlined';
import PlusOutlined from '@ant-design/icons/PlusOutlined';

2
components/tag/index.tsx

@ -1,3 +1,5 @@
'use client';
import CloseOutlined from '@ant-design/icons/CloseOutlined';
import classNames from 'classnames';
import * as React from 'react';

2
components/theme/index.ts

@ -1,3 +1,5 @@
'use client';
/* eslint-disable import/prefer-default-export */
import getDesignToken from './getDesignToken';
import type { GlobalToken } from './interface';

2
components/time-picker/index.tsx

@ -1,3 +1,5 @@
'use client';
import type { Dayjs } from 'dayjs';
import * as React from 'react';
import genPurePanel from '../_util/PurePanel';

2
components/timeline/index.ts

@ -1,3 +1,5 @@
'use client';
import Timeline from './Timeline';
export type { TimelineProps } from './Timeline';

2
components/tooltip/index.tsx

@ -1,3 +1,5 @@
'use client';
import type { BuildInPlacements } from '@rc-component/trigger';
import classNames from 'classnames';
import RcTooltip from 'rc-tooltip';

2
components/tour/index.tsx

@ -1,3 +1,5 @@
'use client';
import RCTour from '@rc-component/tour';
import classNames from 'classnames';
import React, { useContext } from 'react';

2
components/transfer/index.tsx

@ -1,3 +1,5 @@
'use client';
import classNames from 'classnames';
import type { ChangeEvent, CSSProperties } from 'react';
import React, { useCallback, useContext } from 'react';

2
components/tree-select/index.tsx

@ -1,3 +1,5 @@
'use client';
import classNames from 'classnames';
import type { BaseSelectRef } from 'rc-select';
import type { Placement } from 'rc-select/lib/BaseSelect';

12
components/tree/index.ts

@ -1,28 +1,30 @@
'use client';
import type RcTree from 'rc-tree';
import { TreeNode } from 'rc-tree';
import type { BasicDataNode } from 'rc-tree';
import { TreeNode } from 'rc-tree';
import type { DataNode } from 'rc-tree/lib/interface';
import DirectoryTree from './DirectoryTree';
import type { TreeProps } from './Tree';
import TreePure from './Tree';
import DirectoryTree from './DirectoryTree';
export type { DataNode };
export type { EventDataNode } from 'rc-tree/lib/interface';
export type {
DirectoryTreeProps,
ExpandAction as DirectoryTreeExpandAction,
DirectoryTreeProps,
} from './DirectoryTree';
export type {
AntdTreeNodeAttribute,
AntTreeNode,
AntTreeNodeCheckedEvent,
AntTreeNodeExpandedEvent,
AntTreeNodeMouseEvent,
AntTreeNodeProps,
AntTreeNodeSelectedEvent,
AntdTreeNodeAttribute,
TreeProps,
} from './Tree';
export type { DataNode };
type CompoundedComponent = (<T extends BasicDataNode | DataNode = DataNode>(
props: React.PropsWithChildren<TreeProps<T>> & { ref?: React.Ref<RcTree> },

2
components/typography/index.ts

@ -1,3 +1,5 @@
'use client';
import Link from './Link';
import Paragraph from './Paragraph';
import Text from './Text';

2
components/upload/index.ts

@ -1,3 +1,5 @@
'use client';
import Dragger from './Dragger';
import type { UploadProps } from './Upload';
import InternalUpload, { LIST_IGNORE } from './Upload';

Loading…
Cancel
Save