From 1967490ce3bb0bc010340e51c966a85f29f4d44a Mon Sep 17 00:00:00 2001 From: maxin Date: Wed, 13 Apr 2022 17:31:10 +0800 Subject: [PATCH] refactor(legacy): delete components in the legacy folder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 删除所有 src/legacy 文件夹下的组件(除了 FilterPicker 之外) BREAKING CHANGE: 删除所有 src/legacy 文件夹下的组件(除了 FilterPicker 之外) --- src/alert/style/index.less | 2 +- src/legacy/alert/Alert.tsx | 66 --- src/legacy/alert/demos/Alert.stories.tsx | 65 --- src/legacy/alert/demos/AlertPage.tsx | 48 -- src/legacy/alert/index.tsx | 4 - src/legacy/alert/interfaces.ts | 42 -- src/legacy/alert/style/index.less | 116 ---- src/legacy/alert/style/index.ts | 1 - src/legacy/avatar/Avatar.tsx | 114 ---- src/legacy/avatar/AvatarGroup.tsx | 46 -- src/legacy/avatar/demos/Avatar.stories.tsx | 123 ---- src/legacy/avatar/demos/AvatarPage.tsx | 59 -- src/legacy/avatar/index.tsx | 5 - src/legacy/avatar/interfaces.ts | 88 --- src/legacy/avatar/style/demo.stories.less | 15 - src/legacy/avatar/style/index.less | 189 ------ src/legacy/avatar/style/index.ts | 2 - src/legacy/banner/Banner.tsx | 39 -- src/legacy/banner/demos/Banner.stories.tsx | 74 --- src/legacy/banner/demos/BannerPage.tsx | 37 -- src/legacy/banner/index.tsx | 5 - src/legacy/banner/interface.ts | 28 - src/legacy/banner/style/index.less | 77 --- src/legacy/banner/style/index.ts | 1 - src/legacy/base-picker/style/index.ts | 7 - src/legacy/breadcrumb/Breadcrumb.tsx | 105 ---- src/legacy/breadcrumb/BreadcrumbItem.tsx | 39 -- src/legacy/breadcrumb/BreadcrumbSeparator.tsx | 16 - .../breadcrumb/demos/Breadcrumb.stories.tsx | 52 -- .../breadcrumb/demos/BreadcrumbPage.tsx | 23 - src/legacy/breadcrumb/index.ts | 7 - src/legacy/breadcrumb/interface.ts | 60 -- src/legacy/breadcrumb/style/index.less | 49 -- src/legacy/breadcrumb/style/index.ts | 1 - src/legacy/button/Button.tsx | 169 ------ src/legacy/button/demos/Button.stories.tsx | 98 ---- src/legacy/button/demos/ButtonPage.tsx | 53 -- src/legacy/button/index.ts | 5 - src/legacy/button/interface.ts | 51 -- src/legacy/button/style/index.less | 211 ------- src/legacy/button/style/index.ts | 1 - src/legacy/button/style/mixin.less | 181 ------ src/legacy/card/demos/Card.stories.tsx | 114 ---- src/legacy/card/demos/CardPage.tsx | 61 -- .../cascader/demos/Cascader.stories.tsx | 294 ---------- src/legacy/cascader/demos/CascaderPage.tsx | 116 ---- src/legacy/cascader/empty.tsx | 27 - src/legacy/cascader/helper.ts | 192 ------- src/legacy/cascader/index.tsx | 197 ------- src/legacy/cascader/interface.ts | 159 ----- src/legacy/cascader/locales/en-US.ts | 6 - src/legacy/cascader/locales/zh-CN.ts | 6 - src/legacy/cascader/menu-item.tsx | 208 ------- src/legacy/cascader/menu.tsx | 181 ------ src/legacy/cascader/search-bar.tsx | 104 ---- src/legacy/cascader/single-menu.tsx | 137 ----- src/legacy/cascader/style/index.less | 4 - src/legacy/cascader/style/index.ts | 1 - src/legacy/cascader/style/menu.less | 189 ------ src/legacy/cascader/style/overlay.less | 37 -- src/legacy/cascader/style/stories.less | 19 - src/legacy/cascader/svg/EmptyImageSVG.tsx | 205 ------- src/legacy/checkbox/Checkbox.tsx | 89 --- src/legacy/checkbox/CheckboxGroupContext.tsx | 14 - .../checkbox/demos/Checkbox.stories.tsx | 51 -- src/legacy/checkbox/demos/CheckboxPage.tsx | 38 -- src/legacy/checkbox/group.tsx | 115 ---- src/legacy/checkbox/index.tsx | 13 - src/legacy/checkbox/interface.tsx | 104 ---- src/legacy/checkbox/style/index.less | 185 ------ src/legacy/checkbox/style/index.ts | 1 - src/legacy/config-provider/SizeContext.tsx | 17 - src/legacy/config-provider/context.tsx | 79 --- src/legacy/config-provider/index.tsx | 7 - src/legacy/config-provider/interface.ts | 0 src/legacy/date-picker/DatePicker.mdx | 28 - src/legacy/date-picker/DatePicker.stories.tsx | 75 --- src/legacy/date-picker/datePicker.tsx | 96 ---- src/legacy/date-picker/dateRangePicker.tsx | 99 ---- src/legacy/date-picker/hook/useDatePicker.tsx | 75 --- .../date-picker/hook/useDateRangePicker.tsx | 104 ---- src/legacy/date-picker/index.tsx | 5 - src/legacy/date-picker/interface.tsx | 88 --- src/legacy/date-picker/style/decadePanel.less | 169 ------ src/legacy/date-picker/style/index.less | 542 ------------------ src/legacy/date-picker/style/index.ts | 1 - src/legacy/date-picker/style/monthPanel.less | 175 ------ src/legacy/date-picker/style/yearPanel.less | 161 ------ src/legacy/drawer/demos/Drawer.stories.tsx | 154 ----- src/legacy/drawer/demos/DrawerPage.tsx | 51 -- src/legacy/drawer/drawer.tsx | 341 ----------- src/legacy/drawer/index.ts | 5 - src/legacy/drawer/interfaces.ts | 145 ----- src/legacy/drawer/style/index.less | 297 ---------- src/legacy/drawer/style/index.ts | 3 - src/legacy/dropdown/Dropdown.mdx | 45 -- src/legacy/dropdown/Dropdown.stories.tsx | 82 --- src/legacy/dropdown/Dropdown.tsx | 59 -- src/legacy/dropdown/index.tsx | 4 - src/legacy/dropdown/interface.ts | 8 - src/legacy/dropdown/style/index.less | 61 -- src/legacy/dropdown/style/index.ts | 1 - src/legacy/empty/Empty.tsx | 57 -- src/legacy/empty/NoDataImage.tsx | 94 --- src/legacy/empty/NoResultImage.tsx | 99 ---- src/legacy/empty/demos/DashboardImage.tsx | 204 ------- src/legacy/empty/demos/Empty.stories.tsx | 34 -- src/legacy/empty/demos/EmptyPage.tsx | 40 -- src/legacy/empty/index.ts | 5 - src/legacy/empty/interfaces.ts | 29 - src/legacy/empty/locales/en-US.ts | 3 - src/legacy/empty/locales/zh-CN.ts | 3 - src/legacy/empty/style/index.less | 50 -- src/legacy/empty/style/index.ts | 1 - .../filter-picker/FilterPicker.stories.tsx | 4 +- src/legacy/filter-picker/FilterPicker.tsx | 14 +- .../FilterCondition/attrSelect.less | 2 +- .../components/ListAttrSelect/index.tsx | 2 +- .../components/StringAttrSelect/InOrNotIn.tsx | 2 +- .../components/StringAttrSelect/index.tsx | 2 +- .../Expression/FilterCondition/index.tsx | 2 +- .../FilterList/Expression/index.tsx | 2 +- .../components}/list-pro/Group.tsx | 18 +- .../components}/list-pro/List.stories.tsx | 0 .../list-pro/Sortable/SortableItem.tsx | 23 +- .../components}/list-pro/Sortable/index.tsx | 0 .../list-pro/Sortable/template.tsx | 11 +- .../components}/list-pro/core.tsx | 13 +- .../components}/list-pro/drag.tsx | 2 +- .../components}/list-pro/index.ts | 0 .../components}/list-pro/interface.ts | 11 +- .../components}/list-pro/list.tsx | 15 +- .../components}/list-pro/normal.tsx | 2 +- .../components}/list-pro/option.tsx | 13 +- .../components}/list-pro/style/base.less | 2 +- .../components}/list-pro/style/index.ts | 1 + .../components}/list-pro/style/option.less | 0 .../components}/list-pro/style/sort.less | 0 .../list-pro/utils/withGroupedOptions.tsx | 0 .../property-selector/PropertyCard.tsx | 8 +- .../property-selector/PropertyPicker.tsx | 8 +- .../property-selector/PropertySelector.tsx | 4 +- .../PropertyValueIconRender.tsx | 0 .../base-picker/BasePicker.stories.tsx | 12 +- .../components}/base-picker/BasePicker.tsx | 15 +- .../components}/base-picker/index.ts | 0 .../components}/base-picker/interfaces.ts | 0 .../components}/base-picker/locales/en-US.ts | 0 .../components}/base-picker/locales/zh-CN.ts | 0 .../components}/base-picker/style/index.less | 34 +- .../components/base-picker/style/index.ts | 6 + .../components}/card/Card.tsx | 0 .../components}/card/Meta.tsx | 0 .../components}/card/index.ts | 0 .../components}/card/interfaces.ts | 0 .../components}/card/style/index.less | 2 +- .../components}/card/style/index.ts | 0 .../components/list/Divider.tsx | 0 .../components/list/ExpandItem.tsx | 2 +- .../components/list/Item.tsx | 0 .../components/list/ItemGroup.tsx | 2 +- .../components/list/ItemSubgroup.tsx | 2 +- .../components/list/List.mdx | 0 .../components/list/List.stories.tsx | 0 .../components/list/List.tsx | 2 +- .../components/list/index.tsx | 0 .../components/list/interfaces.ts | 0 .../components/list/style/index.less | 2 +- .../components/list/style/index.ts | 2 + .../components/list/utils.tsx | 2 +- .../selector-pro/Selector.stories.tsx | 0 .../components}/selector-pro/Selector.tsx | 16 +- .../components}/selector-pro/index.ts | 0 .../components}/selector-pro/interfaces.ts | 9 +- .../components}/selector-pro/style/index.less | 13 +- .../components/selector-pro/style/index.ts | 3 + .../demos/PropertyCard.stories.tsx | 0 .../demos/PropertyPicker.stories.tsx | 0 .../demos/PropertySelector.stories.tsx | 0 .../demos/insightDimensions.ts | 0 .../property-selector}/hooks/useAsync.ts | 0 .../property-selector}/hooks/useDebounceFn.ts | 0 .../hooks/useMountedState.ts | 0 .../components}/property-selector/index.ts | 0 .../property-selector/interfaces.ts | 4 +- .../property-selector/locales/en-US.ts | 0 .../property-selector/locales/zh-CN.ts | 0 .../property-selector/style/index.less | 6 +- .../property-selector/style/index.ts | 9 + .../components}/property-selector/types.ts | 0 .../components}/property-selector/util.ts | 0 src/legacy/filter-picker/interfaces.ts | 2 +- src/legacy/filter-picker/style/index.ts | 14 +- src/legacy/form/Form.tsx | 51 -- src/legacy/form/Item.tsx | 142 ----- src/legacy/form/ItemControl.tsx | 74 --- src/legacy/form/ItemLabel.tsx | 77 --- src/legacy/form/context.tsx | 23 - src/legacy/form/demos/Form.stories.tsx | 119 ---- src/legacy/form/demos/FormPage.tsx | 39 -- src/legacy/form/index.tsx | 27 - src/legacy/form/interface.ts | 156 ----- src/legacy/form/style/demo.stories.less | 36 -- src/legacy/form/style/index.less | 174 ------ src/legacy/form/style/index.ts | 1 - src/legacy/form/util.ts | 19 - src/legacy/grid/col.tsx | 50 -- src/legacy/grid/demos/Grid.stories.tsx | 74 --- src/legacy/grid/demos/GridPage.tsx | 44 -- src/legacy/grid/grid.tsx | 55 -- src/legacy/grid/help.ts | 31 - src/legacy/grid/index.ts | 8 - src/legacy/grid/interface.ts | 107 ---- src/legacy/grid/row.tsx | 67 --- src/legacy/grid/style/demo.stories.less | 15 - src/legacy/grid/style/index.less | 64 --- src/legacy/grid/style/index.ts | 2 - src/legacy/hooks/index.ts | 5 - src/legacy/hooks/useDebounce.ts | 22 - src/legacy/input/Input.mdx | 41 -- src/legacy/input/Input.stories.tsx | 60 -- src/legacy/input/Input.tsx | 143 ----- src/legacy/input/InputNumber.tsx | 186 ------ src/legacy/input/Password.tsx | 41 -- src/legacy/input/TextArea.tsx | 72 --- src/legacy/input/index.tsx | 11 - src/legacy/input/interfaces.ts | 101 ---- src/legacy/input/style/index.less | 152 ----- src/legacy/input/style/index.ts | 1 - src/legacy/layout/content.tsx | 33 -- src/legacy/layout/demos/Layout.stories.tsx | 184 ------ src/legacy/layout/demos/LayoutPage.tsx | 33 -- src/legacy/layout/header.tsx | 47 -- src/legacy/layout/index.ts | 4 - src/legacy/layout/interfaces.ts | 81 --- src/legacy/layout/layout.tsx | 66 --- src/legacy/layout/sider.tsx | 104 ---- src/legacy/layout/style/demo.stories.less | 5 - src/legacy/layout/style/index.less | 117 ---- src/legacy/layout/style/index.ts | 1 - src/legacy/layout/useSiders.ts | 26 - src/legacy/link/Link.tsx | 66 --- src/legacy/link/demos/Link.stories.tsx | 49 -- src/legacy/link/demos/LinkPage.tsx | 52 -- src/legacy/link/index.tsx | 5 - src/legacy/link/interface.ts | 38 -- src/legacy/link/style/index.less | 51 -- src/legacy/link/style/index.ts | 1 - src/legacy/list-picker/Divider.tsx | 12 - src/legacy/list-picker/ExpandItem.tsx | 19 - src/legacy/list-picker/ExpandableItems.tsx | 25 - src/legacy/list-picker/Group.tsx | 54 -- src/legacy/list-picker/Item.tsx | 23 - src/legacy/list-picker/ListPicker.tsx | 138 ----- src/legacy/list-picker/Subgroup.tsx | 36 -- src/legacy/list-picker/constants.ts | 7 - .../list-picker/demos/ListPicker.stories.less | 10 - .../list-picker/demos/ListPicker.stories.tsx | 129 ----- .../list-picker/demos/ListPickerPage.tsx | 55 -- src/legacy/list-picker/index.tsx | 5 - src/legacy/list-picker/interfaces.ts | 156 ----- src/legacy/list-picker/locales/en-US.ts | 6 - src/legacy/list-picker/locales/zh-CN.ts | 6 - src/legacy/list-picker/style/index.less | 98 ---- src/legacy/list-picker/style/index.ts | 2 - src/legacy/list-selector/ListSelector.tsx | 67 --- .../demos/ListSelector.stories.tsx | 37 -- .../list-selector/demos/ListSelectorPage.tsx | 39 -- src/legacy/list-selector/index.ts | 5 - src/legacy/list-selector/interfaces.ts | 21 - src/legacy/list-selector/style/index.less | 26 - src/legacy/list-selector/style/index.ts | 3 - src/legacy/list/Divider.tsx | 12 - src/legacy/list/ExpandItem.tsx | 20 - src/legacy/list/Item.tsx | 44 -- src/legacy/list/ItemGroup.tsx | 39 -- src/legacy/list/ItemSubgroup.tsx | 31 - src/legacy/list/List.mdx | 38 -- src/legacy/list/List.stories.tsx | 71 --- src/legacy/list/List.tsx | 52 -- src/legacy/list/constants.ts | 7 - src/legacy/list/index.tsx | 5 - src/legacy/list/interfaces.ts | 96 ---- src/legacy/list/style/index.less | 110 ---- src/legacy/list/style/index.ts | 2 - src/legacy/list/utils.tsx | 31 - src/legacy/loading/Loading.tsx | 108 ---- src/legacy/loading/demos/Loading.stories.tsx | 107 ---- src/legacy/loading/demos/LoadingPage.tsx | 62 -- src/legacy/loading/index.tsx | 4 - src/legacy/loading/interface.ts | 50 -- src/legacy/loading/style/index.less | 335 ----------- src/legacy/loading/style/index.ts | 1 - src/legacy/menu/Divider.tsx | 12 - src/legacy/menu/Menu.tsx | 55 -- src/legacy/menu/MenuContext.ts | 24 - src/legacy/menu/MenuItem.tsx | 24 - src/legacy/menu/MenuTitle.tsx | 15 - src/legacy/menu/SubMenu.tsx | 41 -- src/legacy/menu/demos/Menu.stories.tsx | 92 --- src/legacy/menu/demos/MenuPage.tsx | 32 -- src/legacy/menu/index.ts | 26 - src/legacy/menu/interface.ts | 87 --- src/legacy/menu/style/demo.stories.less | 9 - src/legacy/menu/style/index.less | 164 ------ src/legacy/menu/style/index.ts | 2 - src/legacy/menu/style/layout.less | 152 ----- src/legacy/menu/style/mixin.less | 5 - src/legacy/menu/style/state.less | 72 --- src/legacy/modal/CalloutModal.tsx | 123 ---- src/legacy/modal/Footer.tsx | 48 -- src/legacy/modal/Modal.tsx | 121 ---- src/legacy/modal/ModalContext.ts | 6 - src/legacy/modal/StepModal.tsx | 130 ----- src/legacy/modal/Title.tsx | 28 - src/legacy/modal/callout.tsx | 116 ---- src/legacy/modal/demos/Modal.stories.tsx | 233 -------- src/legacy/modal/demos/ModalPage.tsx | 47 -- src/legacy/modal/index.tsx | 47 -- src/legacy/modal/interface.ts | 269 --------- src/legacy/modal/locales/en-US.ts | 4 - src/legacy/modal/locales/zh-CN.ts | 4 - src/legacy/modal/style/callout.less | 51 -- src/legacy/modal/style/index.less | 3 - src/legacy/modal/style/index.ts | 1 - src/legacy/modal/style/mask.less | 59 -- src/legacy/modal/style/mixin.less | 60 -- src/legacy/modal/style/modal.less | 162 ------ src/legacy/modal/useModal/HookModal.tsx | 26 - src/legacy/modal/useModal/index.tsx | 51 -- src/legacy/modal/utils.ts | 43 -- src/legacy/page/ForbiddenSVG.tsx | 428 -------------- src/legacy/page/InternalServerErrorSVG.tsx | 471 --------------- src/legacy/page/NotFoundSVG.tsx | 471 --------------- src/legacy/page/Page.tsx | 32 -- src/legacy/page/demos/Page.stories.tsx | 45 -- src/legacy/page/demos/PagePage.tsx | 37 -- src/legacy/page/index.ts | 5 - src/legacy/page/interfaces.ts | 21 - src/legacy/page/style/index.less | 28 - src/legacy/page/style/index.ts | 1 - src/legacy/pagination/Pagination.tsx | 237 -------- .../pagination/demos/Pagination.stories.tsx | 29 - .../pagination/demos/PaginationPage.tsx | 33 -- src/legacy/pagination/index.ts | 4 - src/legacy/pagination/interface.tsx | 70 --- src/legacy/pagination/locales/en-US.ts | 8 - src/legacy/pagination/locales/zh-CN.ts | 8 - src/legacy/pagination/style/index.less | 203 ------- src/legacy/pagination/style/index.ts | 3 - src/legacy/pagination/until.ts | 32 -- src/legacy/popconfirm/Popconfirm.tsx | 83 --- .../popconfirm/demos/Popconfirm.stories.tsx | 105 ---- .../popconfirm/demos/PopconfirmPage.tsx | 38 -- src/legacy/popconfirm/index.tsx | 4 - src/legacy/popconfirm/interface.ts | 32 -- src/legacy/popconfirm/style/demo.stories.less | 37 -- src/legacy/popconfirm/style/index.less | 86 --- src/legacy/popconfirm/style/index.ts | 1 - src/legacy/popover/Popover.tsx | 43 -- src/legacy/popover/demos/Popover.stories.tsx | 150 ----- src/legacy/popover/demos/PopoverPage.tsx | 43 -- src/legacy/popover/index.tsx | 4 - src/legacy/popover/interface.ts | 13 - src/legacy/popover/style/demo.stories.less | 102 ---- src/legacy/popover/style/index.less | 61 -- src/legacy/popover/style/index.ts | 1 - src/legacy/progress/Progress.tsx | 48 -- .../progress/demos/Progress.stories.tsx | 45 -- src/legacy/progress/demos/ProgressPage.tsx | 27 - src/legacy/progress/index.tsx | 5 - src/legacy/progress/interface.ts | 25 - src/legacy/progress/style/index.less | 126 ---- src/legacy/progress/style/index.ts | 1 - .../components/list/style/index.ts | 2 - src/legacy/property-selector/style/index.ts | 9 - src/legacy/radio/Group.tsx | 130 ----- src/legacy/radio/Radio.tsx | 69 --- src/legacy/radio/context.ts | 8 - src/legacy/radio/demos/Radio.stories.tsx | 79 --- src/legacy/radio/demos/RadioPage.tsx | 33 -- src/legacy/radio/index.tsx | 14 - src/legacy/radio/interface.ts | 70 --- src/legacy/radio/style/index.less | 181 ------ src/legacy/radio/style/index.ts | 1 - src/legacy/search-bar/SearchBar.tsx | 176 ------ .../search-bar/demos/SearchBar.stories.tsx | 49 -- src/legacy/search-bar/demos/SearchBarPage.tsx | 24 - src/legacy/search-bar/index.ts | 5 - src/legacy/search-bar/interfaces.ts | 60 -- src/legacy/search-bar/locales/en-US.ts | 5 - src/legacy/search-bar/locales/zh-CN.ts | 5 - src/legacy/search-bar/style/index.less | 73 --- src/legacy/search-bar/style/index.ts | 3 - src/legacy/select/OptionsList/OptGroup.tsx | 11 - src/legacy/select/OptionsList/OptionItem.tsx | 127 ---- src/legacy/select/OptionsList/Options.tsx | 11 - src/legacy/select/OptionsList/index.tsx | 195 ------- src/legacy/select/Select.mdx | 34 -- src/legacy/select/Select.stories.tsx | 108 ---- src/legacy/select/Select.tsx | 477 --------------- src/legacy/select/Selector/index.tsx | 224 -------- src/legacy/select/Selector/input.tsx | 54 -- src/legacy/select/VirtualList.tsx | 37 -- src/legacy/select/hooks/useCacheOption.ts | 67 --- src/legacy/select/index.tsx | 23 - src/legacy/select/interface.ts | 299 ---------- src/legacy/select/style/index.less | 368 ------------ src/legacy/select/style/index.ts | 4 - src/legacy/select/utils.tsx | 135 ----- src/legacy/selector-pro/style/index.ts | 3 - src/legacy/selector/InputTrigger.tsx | 46 -- src/legacy/selector/Selector.tsx | 98 ---- src/legacy/selector/demos/Selector.mdx | 46 -- .../selector/demos/Selector.stories.tsx | 105 ---- src/legacy/selector/index.ts | 6 - src/legacy/selector/interfaces.ts | 64 --- src/legacy/selector/style/InputTrigger.less | 99 ---- src/legacy/selector/style/index.less | 14 - src/legacy/selector/style/index.ts | 3 - src/legacy/sign/Dot.tsx | 12 - src/legacy/sign/Sign.tsx | 61 -- src/legacy/sign/SignNumber.tsx | 83 --- src/legacy/sign/demos/Sign.stories.tsx | 122 ---- src/legacy/sign/demos/SignPage.tsx | 32 -- src/legacy/sign/index.ts | 5 - src/legacy/sign/interface.ts | 51 -- src/legacy/sign/style/index.less | 155 ----- src/legacy/sign/style/index.ts | 1 - src/legacy/sign/style/mixin.less | 39 -- src/legacy/space/Item.tsx | 48 -- src/legacy/space/Space.tsx | 76 --- src/legacy/space/demos/Space.stories.tsx | 30 - src/legacy/space/demos/SpacePage.tsx | 27 - src/legacy/space/index.ts | 5 - src/legacy/space/interface.ts | 73 --- src/legacy/space/style/index.less | 40 -- src/legacy/space/style/index.ts | 1 - src/legacy/steps/Step.tsx | 65 --- src/legacy/steps/Steps.mdx | 38 -- src/legacy/steps/Steps.stories.tsx | 180 ------ src/legacy/steps/Steps.tsx | 53 -- src/legacy/steps/index.tsx | 8 - src/legacy/steps/interface.ts | 55 -- src/legacy/steps/style/index.less | 146 ----- src/legacy/steps/style/index.ts | 1 - src/legacy/steps/style/steps.stories.less | 25 - src/legacy/tab-nav/TabNav.tsx | 103 ---- src/legacy/tab-nav/demos/TabNav.stories.tsx | 82 --- src/legacy/tab-nav/demos/TabNavPage.tsx | 33 -- src/legacy/tab-nav/index.tsx | 4 - src/legacy/tab-nav/interface.ts | 42 -- src/legacy/tab-nav/style/demo.stories.less | 12 - src/legacy/tab-nav/style/index.less | 152 ----- src/legacy/tab-nav/style/index.ts | 1 - src/legacy/table/DragTable.tsx | 92 --- src/legacy/table/FilterList.tsx | 33 -- src/legacy/table/FilterPopover.tsx | 107 ---- src/legacy/table/ResizableTable.tsx | 95 --- src/legacy/table/Table.tsx | 192 ------- src/legacy/table/Title.tsx | 129 ----- src/legacy/table/demos/Base.tsx | 87 --- src/legacy/table/demos/CompactTable.tsx | 85 --- src/legacy/table/demos/DragTable.tsx | 84 --- src/legacy/table/demos/ExpandWithTable.tsx | 91 --- src/legacy/table/demos/MultiLine.tsx | 81 --- src/legacy/table/demos/ResizableTable.tsx | 202 ------- src/legacy/table/demos/RowExpandTable.tsx | 71 --- .../table/demos/RowExpandWithFixedColumn.tsx | 135 ----- src/legacy/table/demos/Table.stories.tsx | 52 -- src/legacy/table/demos/TableControlled.tsx | 73 --- src/legacy/table/demos/TableEmpty.tsx | 39 -- src/legacy/table/demos/TableHeader.tsx | 103 ---- src/legacy/table/demos/TableLoading.tsx | 54 -- src/legacy/table/demos/TablePage.tsx | 115 ---- src/legacy/table/demos/TablePagination.tsx | 66 --- src/legacy/table/demos/TableScroll.tsx | 86 --- src/legacy/table/demos/TreeExpandTable.tsx | 106 ---- src/legacy/table/hook/useFilter.tsx | 78 --- src/legacy/table/hook/useHackOnRow.tsx | 34 -- src/legacy/table/hook/usePagination.tsx | 111 ---- src/legacy/table/hook/useSelection.tsx | 202 ------- src/legacy/table/hook/useSorter.tsx | 121 ---- src/legacy/table/index.ts | 6 - src/legacy/table/interface.ts | 207 ------- src/legacy/table/locales/en-US.ts | 4 - src/legacy/table/locales/zh-CN.ts | 4 - src/legacy/table/style/index.less | 526 ----------------- src/legacy/table/style/index.ts | 8 - src/legacy/table/utils.ts | 24 - src/legacy/tabs/TabPane.tsx | 13 - src/legacy/tabs/Tabs.tsx | 84 --- src/legacy/tabs/demos/Tabs.stories.tsx | 108 ---- src/legacy/tabs/demos/TabsPage.tsx | 39 -- src/legacy/tabs/index.tsx | 14 - src/legacy/tabs/interface.ts | 69 --- src/legacy/tabs/style/index.less | 8 - src/legacy/tabs/style/index.ts | 1 - src/legacy/tag/Tag.tsx | 50 -- src/legacy/tag/demos/Tag.stories.tsx | 82 --- src/legacy/tag/demos/TagPage.tsx | 59 -- src/legacy/tag/index.tsx | 5 - src/legacy/tag/interface.ts | 44 -- src/legacy/tag/style/demo.stories.less | 3 - src/legacy/tag/style/index.less | 138 ----- src/legacy/tag/style/index.ts | 1 - src/legacy/text/Text.mdx | 24 - src/legacy/text/Text.stories.tsx | 29 - src/legacy/text/Text.tsx | 60 -- src/legacy/text/index.ts | 5 - src/legacy/text/interface.ts | 30 - src/legacy/text/style/index.less | 7 - src/legacy/text/style/index.ts | 1 - src/legacy/time-picker/Combobox.tsx | 192 ------- src/legacy/time-picker/Panel.tsx | 162 ------ src/legacy/time-picker/Select.tsx | 159 ----- src/legacy/time-picker/TimePicker.mdx | 20 - src/legacy/time-picker/TimePicker.stories.tsx | 39 -- src/legacy/time-picker/TimePicker.tsx | 364 ------------ src/legacy/time-picker/index.d.ts | 49 -- src/legacy/time-picker/index.tsx | 22 - src/legacy/time-picker/interface.ts | 181 ------ src/legacy/time-picker/placements.ts | 35 -- src/legacy/time-picker/style/header.less | 26 - src/legacy/time-picker/style/index.less | 58 -- src/legacy/time-picker/style/index.ts | 1 - src/legacy/time-picker/style/panel.less | 28 - src/legacy/time-picker/style/picker.less | 50 -- src/legacy/time-picker/style/select.less | 69 --- src/legacy/toast/demos/Toast.stories.tsx | 82 --- src/legacy/toast/demos/ToastPage.tsx | 29 - src/legacy/toast/index.tsx | 181 ------ src/legacy/toast/interface.ts | 56 -- src/legacy/toast/style/index.less | 84 --- src/legacy/toast/style/index.ts | 1 - src/legacy/toast/toastIcons.tsx | 37 -- src/legacy/toast/useToast/index.tsx | 82 --- src/legacy/toggles/Toggles.tsx | 62 -- src/legacy/toggles/demos/Toggles.stories.tsx | 45 -- src/legacy/toggles/demos/TogglesPage.tsx | 42 -- src/legacy/toggles/index.tsx | 5 - src/legacy/toggles/interface.ts | 54 -- src/legacy/toggles/style/index.less | 82 --- src/legacy/toggles/style/index.ts | 1 - src/legacy/tooltip/Tooltip.tsx | 95 --- src/legacy/tooltip/demos/Tooltip.stories.tsx | 107 ---- src/legacy/tooltip/demos/TooltipPage.tsx | 37 -- src/legacy/tooltip/index.tsx | 4 - src/legacy/tooltip/interface.ts | 37 -- src/legacy/tooltip/placements.ts | 107 ---- src/legacy/tooltip/style/demo.css | 33 -- src/legacy/tooltip/style/demo.stories.less | 35 -- src/legacy/tooltip/style/index.less | 68 --- src/legacy/tooltip/style/index.ts | 1 - src/legacy/tree-select/TreeSelect.tsx | 157 ----- src/legacy/tree-select/demos/TreeSelect.mdx | 20 - .../tree-select/demos/TreeSelect.stories.tsx | 75 --- .../tree-select/demos/TreeSelectPage.tsx | 32 -- src/legacy/tree-select/iconUtil.tsx | 59 -- src/legacy/tree-select/index.tsx | 7 - src/legacy/tree-select/interface.tsx | 23 - .../tree-select/style/demo.stories.less | 14 - src/legacy/tree-select/style/index.less | 490 ---------------- src/legacy/tree-select/style/index.ts | 1 - src/legacy/tree/Tree.tsx | 129 ----- src/legacy/tree/demos/Tree.stories.tsx | 110 ---- src/legacy/tree/demos/TreePage.tsx | 32 -- src/legacy/tree/iconUtil.tsx | 25 - src/legacy/tree/index.tsx | 15 - src/legacy/tree/style/index.less | 141 ----- src/legacy/tree/style/index.ts | 1 - src/legacy/typograhy/Text.tsx | 61 -- src/legacy/typograhy/Title.tsx | 27 - src/legacy/typograhy/demos/Text.stories.tsx | 64 --- src/legacy/typograhy/demos/TextPage.tsx | 39 -- src/legacy/typograhy/demos/Title.stories.tsx | 25 - src/legacy/typograhy/demos/TitlePage.tsx | 22 - src/legacy/typograhy/index.ts | 11 - src/legacy/typograhy/interfaces.ts | 35 -- src/legacy/typograhy/style/Text.less | 20 - src/legacy/typograhy/style/Title.less | 27 - src/legacy/typograhy/style/index.less | 2 - src/legacy/typograhy/style/index.ts | 2 - src/legacy/upload/Actions.tsx | 58 -- src/legacy/upload/Preview.tsx | 85 --- src/legacy/upload/Upload.tsx | 401 ------------- src/legacy/upload/UploadList.tsx | 53 -- src/legacy/upload/demos/Upload.stories.tsx | 211 ------- src/legacy/upload/demos/UploadPage.tsx | 116 ---- src/legacy/upload/index.tsx | 13 - src/legacy/upload/interface.ts | 301 ---------- src/legacy/upload/locales/en-US.ts | 19 - src/legacy/upload/locales/zh-CN.ts | 19 - src/legacy/upload/style/index.less | 360 ------------ src/legacy/upload/style/index.ts | 1 - src/legacy/upload/svg/CsvSVG.tsx | 50 -- src/legacy/upload/svg/DisabledFolderSVG.tsx | 23 - src/legacy/upload/svg/DisabledPictureSVG.tsx | 21 - src/legacy/upload/svg/DocxSVG.tsx | 20 - src/legacy/upload/svg/FolderSVG.tsx | 23 - src/legacy/upload/svg/PdfSVG.tsx | 50 -- src/legacy/upload/svg/PictureSVG.tsx | 21 - src/legacy/upload/svg/TxtSVG.tsx | 20 - src/legacy/upload/svg/XlsxSVG.tsx | 50 -- src/legacy/upload/svg/index.tsx | 11 - src/legacy/upload/svg/interface.ts | 3 - src/legacy/upload/triggers/AvatarTrigger.tsx | 38 -- src/legacy/upload/triggers/ButtonTrigger.tsx | 50 -- src/legacy/upload/triggers/CardTrigger.tsx | 37 -- src/legacy/upload/triggers/DragTrigger.tsx | 190 ------ src/legacy/upload/triggers/InputTrigger.tsx | 59 -- src/legacy/upload/utils.ts | 183 ------ src/legacy/upload/xhrRequest.ts | 94 --- src/locales/en-US.ts | 4 +- src/locales/zh-CN.ts | 4 +- 615 files changed, 149 insertions(+), 37123 deletions(-) delete mode 100644 src/legacy/alert/Alert.tsx delete mode 100644 src/legacy/alert/demos/Alert.stories.tsx delete mode 100644 src/legacy/alert/demos/AlertPage.tsx delete mode 100644 src/legacy/alert/index.tsx delete mode 100644 src/legacy/alert/interfaces.ts delete mode 100644 src/legacy/alert/style/index.less delete mode 100644 src/legacy/alert/style/index.ts delete mode 100644 src/legacy/avatar/Avatar.tsx delete mode 100644 src/legacy/avatar/AvatarGroup.tsx delete mode 100644 src/legacy/avatar/demos/Avatar.stories.tsx delete mode 100644 src/legacy/avatar/demos/AvatarPage.tsx delete mode 100644 src/legacy/avatar/index.tsx delete mode 100644 src/legacy/avatar/interfaces.ts delete mode 100644 src/legacy/avatar/style/demo.stories.less delete mode 100644 src/legacy/avatar/style/index.less delete mode 100644 src/legacy/avatar/style/index.ts delete mode 100644 src/legacy/banner/Banner.tsx delete mode 100644 src/legacy/banner/demos/Banner.stories.tsx delete mode 100644 src/legacy/banner/demos/BannerPage.tsx delete mode 100644 src/legacy/banner/index.tsx delete mode 100644 src/legacy/banner/interface.ts delete mode 100644 src/legacy/banner/style/index.less delete mode 100644 src/legacy/banner/style/index.ts delete mode 100644 src/legacy/base-picker/style/index.ts delete mode 100644 src/legacy/breadcrumb/Breadcrumb.tsx delete mode 100644 src/legacy/breadcrumb/BreadcrumbItem.tsx delete mode 100644 src/legacy/breadcrumb/BreadcrumbSeparator.tsx delete mode 100644 src/legacy/breadcrumb/demos/Breadcrumb.stories.tsx delete mode 100644 src/legacy/breadcrumb/demos/BreadcrumbPage.tsx delete mode 100644 src/legacy/breadcrumb/index.ts delete mode 100644 src/legacy/breadcrumb/interface.ts delete mode 100644 src/legacy/breadcrumb/style/index.less delete mode 100644 src/legacy/breadcrumb/style/index.ts delete mode 100644 src/legacy/button/Button.tsx delete mode 100644 src/legacy/button/demos/Button.stories.tsx delete mode 100644 src/legacy/button/demos/ButtonPage.tsx delete mode 100644 src/legacy/button/index.ts delete mode 100644 src/legacy/button/interface.ts delete mode 100644 src/legacy/button/style/index.less delete mode 100644 src/legacy/button/style/index.ts delete mode 100644 src/legacy/button/style/mixin.less delete mode 100644 src/legacy/card/demos/Card.stories.tsx delete mode 100644 src/legacy/card/demos/CardPage.tsx delete mode 100644 src/legacy/cascader/demos/Cascader.stories.tsx delete mode 100644 src/legacy/cascader/demos/CascaderPage.tsx delete mode 100644 src/legacy/cascader/empty.tsx delete mode 100644 src/legacy/cascader/helper.ts delete mode 100644 src/legacy/cascader/index.tsx delete mode 100644 src/legacy/cascader/interface.ts delete mode 100644 src/legacy/cascader/locales/en-US.ts delete mode 100644 src/legacy/cascader/locales/zh-CN.ts delete mode 100644 src/legacy/cascader/menu-item.tsx delete mode 100644 src/legacy/cascader/menu.tsx delete mode 100644 src/legacy/cascader/search-bar.tsx delete mode 100644 src/legacy/cascader/single-menu.tsx delete mode 100644 src/legacy/cascader/style/index.less delete mode 100644 src/legacy/cascader/style/index.ts delete mode 100644 src/legacy/cascader/style/menu.less delete mode 100644 src/legacy/cascader/style/overlay.less delete mode 100644 src/legacy/cascader/style/stories.less delete mode 100644 src/legacy/cascader/svg/EmptyImageSVG.tsx delete mode 100644 src/legacy/checkbox/Checkbox.tsx delete mode 100644 src/legacy/checkbox/CheckboxGroupContext.tsx delete mode 100644 src/legacy/checkbox/demos/Checkbox.stories.tsx delete mode 100644 src/legacy/checkbox/demos/CheckboxPage.tsx delete mode 100644 src/legacy/checkbox/group.tsx delete mode 100644 src/legacy/checkbox/index.tsx delete mode 100644 src/legacy/checkbox/interface.tsx delete mode 100644 src/legacy/checkbox/style/index.less delete mode 100644 src/legacy/checkbox/style/index.ts delete mode 100644 src/legacy/config-provider/SizeContext.tsx delete mode 100755 src/legacy/config-provider/context.tsx delete mode 100644 src/legacy/config-provider/index.tsx delete mode 100644 src/legacy/config-provider/interface.ts delete mode 100644 src/legacy/date-picker/DatePicker.mdx delete mode 100644 src/legacy/date-picker/DatePicker.stories.tsx delete mode 100644 src/legacy/date-picker/datePicker.tsx delete mode 100644 src/legacy/date-picker/dateRangePicker.tsx delete mode 100644 src/legacy/date-picker/hook/useDatePicker.tsx delete mode 100644 src/legacy/date-picker/hook/useDateRangePicker.tsx delete mode 100644 src/legacy/date-picker/index.tsx delete mode 100644 src/legacy/date-picker/interface.tsx delete mode 100644 src/legacy/date-picker/style/decadePanel.less delete mode 100644 src/legacy/date-picker/style/index.less delete mode 100644 src/legacy/date-picker/style/index.ts delete mode 100644 src/legacy/date-picker/style/monthPanel.less delete mode 100644 src/legacy/date-picker/style/yearPanel.less delete mode 100644 src/legacy/drawer/demos/Drawer.stories.tsx delete mode 100644 src/legacy/drawer/demos/DrawerPage.tsx delete mode 100644 src/legacy/drawer/drawer.tsx delete mode 100755 src/legacy/drawer/index.ts delete mode 100644 src/legacy/drawer/interfaces.ts delete mode 100755 src/legacy/drawer/style/index.less delete mode 100644 src/legacy/drawer/style/index.ts delete mode 100644 src/legacy/dropdown/Dropdown.mdx delete mode 100644 src/legacy/dropdown/Dropdown.stories.tsx delete mode 100644 src/legacy/dropdown/Dropdown.tsx delete mode 100644 src/legacy/dropdown/index.tsx delete mode 100644 src/legacy/dropdown/interface.ts delete mode 100644 src/legacy/dropdown/style/index.less delete mode 100644 src/legacy/dropdown/style/index.ts delete mode 100644 src/legacy/empty/Empty.tsx delete mode 100644 src/legacy/empty/NoDataImage.tsx delete mode 100644 src/legacy/empty/NoResultImage.tsx delete mode 100644 src/legacy/empty/demos/DashboardImage.tsx delete mode 100644 src/legacy/empty/demos/Empty.stories.tsx delete mode 100644 src/legacy/empty/demos/EmptyPage.tsx delete mode 100644 src/legacy/empty/index.ts delete mode 100644 src/legacy/empty/interfaces.ts delete mode 100644 src/legacy/empty/locales/en-US.ts delete mode 100644 src/legacy/empty/locales/zh-CN.ts delete mode 100644 src/legacy/empty/style/index.less delete mode 100644 src/legacy/empty/style/index.ts rename src/legacy/{ => filter-picker/components}/list-pro/Group.tsx (58%) rename src/legacy/{ => filter-picker/components}/list-pro/List.stories.tsx (100%) rename src/legacy/{ => filter-picker/components}/list-pro/Sortable/SortableItem.tsx (86%) rename src/legacy/{ => filter-picker/components}/list-pro/Sortable/index.tsx (100%) rename src/legacy/{ => filter-picker/components}/list-pro/Sortable/template.tsx (86%) rename src/legacy/{ => filter-picker/components}/list-pro/core.tsx (86%) rename src/legacy/{ => filter-picker/components}/list-pro/drag.tsx (94%) rename src/legacy/{ => filter-picker/components}/list-pro/index.ts (100%) rename src/legacy/{ => filter-picker/components}/list-pro/interface.ts (94%) rename src/legacy/{ => filter-picker/components}/list-pro/list.tsx (91%) rename src/legacy/{ => filter-picker/components}/list-pro/normal.tsx (92%) rename src/legacy/{ => filter-picker/components}/list-pro/option.tsx (81%) rename src/legacy/{ => filter-picker/components}/list-pro/style/base.less (97%) rename src/legacy/{ => filter-picker/components}/list-pro/style/index.ts (63%) rename src/legacy/{ => filter-picker/components}/list-pro/style/option.less (100%) rename src/legacy/{ => filter-picker/components}/list-pro/style/sort.less (100%) rename src/legacy/{ => filter-picker/components}/list-pro/utils/withGroupedOptions.tsx (100%) rename src/legacy/{ => filter-picker/components}/property-selector/PropertyCard.tsx (94%) rename src/legacy/{ => filter-picker/components}/property-selector/PropertyPicker.tsx (98%) rename src/legacy/{ => filter-picker/components}/property-selector/PropertySelector.tsx (97%) rename src/legacy/{ => filter-picker/components}/property-selector/PropertyValueIconRender.tsx (100%) rename src/legacy/{ => filter-picker/components/property-selector/components}/base-picker/BasePicker.stories.tsx (87%) rename src/legacy/{ => filter-picker/components/property-selector/components}/base-picker/BasePicker.tsx (82%) rename src/legacy/{ => filter-picker/components/property-selector/components}/base-picker/index.ts (100%) rename src/legacy/{ => filter-picker/components/property-selector/components}/base-picker/interfaces.ts (100%) rename src/legacy/{ => filter-picker/components/property-selector/components}/base-picker/locales/en-US.ts (100%) rename src/legacy/{ => filter-picker/components/property-selector/components}/base-picker/locales/zh-CN.ts (100%) rename src/legacy/{ => filter-picker/components/property-selector/components}/base-picker/style/index.less (65%) create mode 100644 src/legacy/filter-picker/components/property-selector/components/base-picker/style/index.ts rename src/legacy/{ => filter-picker/components/property-selector/components}/card/Card.tsx (100%) rename src/legacy/{ => filter-picker/components/property-selector/components}/card/Meta.tsx (100%) rename src/legacy/{ => filter-picker/components/property-selector/components}/card/index.ts (100%) rename src/legacy/{ => filter-picker/components/property-selector/components}/card/interfaces.ts (100%) rename src/legacy/{ => filter-picker/components/property-selector/components}/card/style/index.less (97%) rename src/legacy/{ => filter-picker/components/property-selector/components}/card/style/index.ts (100%) rename src/legacy/{ => filter-picker/components}/property-selector/components/list/Divider.tsx (100%) rename src/legacy/{ => filter-picker/components}/property-selector/components/list/ExpandItem.tsx (92%) rename src/legacy/{ => filter-picker/components}/property-selector/components/list/Item.tsx (100%) rename src/legacy/{ => filter-picker/components}/property-selector/components/list/ItemGroup.tsx (95%) rename src/legacy/{ => filter-picker/components}/property-selector/components/list/ItemSubgroup.tsx (94%) rename src/legacy/{ => filter-picker/components}/property-selector/components/list/List.mdx (100%) rename src/legacy/{ => filter-picker/components}/property-selector/components/list/List.stories.tsx (100%) rename src/legacy/{ => filter-picker/components}/property-selector/components/list/List.tsx (97%) rename src/legacy/{ => filter-picker/components}/property-selector/components/list/index.tsx (100%) rename src/legacy/{ => filter-picker/components}/property-selector/components/list/interfaces.ts (100%) rename src/legacy/{ => filter-picker/components}/property-selector/components/list/style/index.less (97%) create mode 100644 src/legacy/filter-picker/components/property-selector/components/list/style/index.ts rename src/legacy/{ => filter-picker/components}/property-selector/components/list/utils.tsx (94%) rename src/legacy/{ => filter-picker/components/property-selector/components}/selector-pro/Selector.stories.tsx (100%) rename src/legacy/{ => filter-picker/components/property-selector/components}/selector-pro/Selector.tsx (87%) rename src/legacy/{ => filter-picker/components/property-selector/components}/selector-pro/index.ts (100%) rename src/legacy/{ => filter-picker/components/property-selector/components}/selector-pro/interfaces.ts (79%) rename src/legacy/{ => filter-picker/components/property-selector/components}/selector-pro/style/index.less (90%) create mode 100644 src/legacy/filter-picker/components/property-selector/components/selector-pro/style/index.ts rename src/legacy/{ => filter-picker/components}/property-selector/demos/PropertyCard.stories.tsx (100%) rename src/legacy/{ => filter-picker/components}/property-selector/demos/PropertyPicker.stories.tsx (100%) rename src/legacy/{ => filter-picker/components}/property-selector/demos/PropertySelector.stories.tsx (100%) rename src/legacy/{ => filter-picker/components}/property-selector/demos/insightDimensions.ts (100%) rename src/legacy/{ => filter-picker/components/property-selector}/hooks/useAsync.ts (100%) rename src/legacy/{ => filter-picker/components/property-selector}/hooks/useDebounceFn.ts (100%) rename src/legacy/{ => filter-picker/components/property-selector}/hooks/useMountedState.ts (100%) rename src/legacy/{ => filter-picker/components}/property-selector/index.ts (100%) rename src/legacy/{ => filter-picker/components}/property-selector/interfaces.ts (96%) rename src/legacy/{ => filter-picker/components}/property-selector/locales/en-US.ts (100%) rename src/legacy/{ => filter-picker/components}/property-selector/locales/zh-CN.ts (100%) rename src/legacy/{ => filter-picker/components}/property-selector/style/index.less (92%) create mode 100644 src/legacy/filter-picker/components/property-selector/style/index.ts rename src/legacy/{ => filter-picker/components}/property-selector/types.ts (100%) rename src/legacy/{ => filter-picker/components}/property-selector/util.ts (100%) delete mode 100644 src/legacy/form/Form.tsx delete mode 100644 src/legacy/form/Item.tsx delete mode 100644 src/legacy/form/ItemControl.tsx delete mode 100644 src/legacy/form/ItemLabel.tsx delete mode 100644 src/legacy/form/context.tsx delete mode 100644 src/legacy/form/demos/Form.stories.tsx delete mode 100644 src/legacy/form/demos/FormPage.tsx delete mode 100644 src/legacy/form/index.tsx delete mode 100644 src/legacy/form/interface.ts delete mode 100644 src/legacy/form/style/demo.stories.less delete mode 100644 src/legacy/form/style/index.less delete mode 100644 src/legacy/form/style/index.ts delete mode 100644 src/legacy/form/util.ts delete mode 100644 src/legacy/grid/col.tsx delete mode 100644 src/legacy/grid/demos/Grid.stories.tsx delete mode 100644 src/legacy/grid/demos/GridPage.tsx delete mode 100644 src/legacy/grid/grid.tsx delete mode 100644 src/legacy/grid/help.ts delete mode 100644 src/legacy/grid/index.ts delete mode 100644 src/legacy/grid/interface.ts delete mode 100644 src/legacy/grid/row.tsx delete mode 100644 src/legacy/grid/style/demo.stories.less delete mode 100644 src/legacy/grid/style/index.less delete mode 100644 src/legacy/grid/style/index.ts delete mode 100644 src/legacy/hooks/index.ts delete mode 100644 src/legacy/hooks/useDebounce.ts delete mode 100644 src/legacy/input/Input.mdx delete mode 100644 src/legacy/input/Input.stories.tsx delete mode 100644 src/legacy/input/Input.tsx delete mode 100644 src/legacy/input/InputNumber.tsx delete mode 100644 src/legacy/input/Password.tsx delete mode 100644 src/legacy/input/TextArea.tsx delete mode 100644 src/legacy/input/index.tsx delete mode 100644 src/legacy/input/interfaces.ts delete mode 100644 src/legacy/input/style/index.less delete mode 100644 src/legacy/input/style/index.ts delete mode 100644 src/legacy/layout/content.tsx delete mode 100644 src/legacy/layout/demos/Layout.stories.tsx delete mode 100644 src/legacy/layout/demos/LayoutPage.tsx delete mode 100644 src/legacy/layout/header.tsx delete mode 100644 src/legacy/layout/index.ts delete mode 100644 src/legacy/layout/interfaces.ts delete mode 100644 src/legacy/layout/layout.tsx delete mode 100644 src/legacy/layout/sider.tsx delete mode 100644 src/legacy/layout/style/demo.stories.less delete mode 100644 src/legacy/layout/style/index.less delete mode 100644 src/legacy/layout/style/index.ts delete mode 100644 src/legacy/layout/useSiders.ts delete mode 100644 src/legacy/link/Link.tsx delete mode 100644 src/legacy/link/demos/Link.stories.tsx delete mode 100644 src/legacy/link/demos/LinkPage.tsx delete mode 100644 src/legacy/link/index.tsx delete mode 100644 src/legacy/link/interface.ts delete mode 100644 src/legacy/link/style/index.less delete mode 100644 src/legacy/link/style/index.ts delete mode 100644 src/legacy/list-picker/Divider.tsx delete mode 100644 src/legacy/list-picker/ExpandItem.tsx delete mode 100644 src/legacy/list-picker/ExpandableItems.tsx delete mode 100644 src/legacy/list-picker/Group.tsx delete mode 100644 src/legacy/list-picker/Item.tsx delete mode 100644 src/legacy/list-picker/ListPicker.tsx delete mode 100644 src/legacy/list-picker/Subgroup.tsx delete mode 100644 src/legacy/list-picker/constants.ts delete mode 100644 src/legacy/list-picker/demos/ListPicker.stories.less delete mode 100644 src/legacy/list-picker/demos/ListPicker.stories.tsx delete mode 100644 src/legacy/list-picker/demos/ListPickerPage.tsx delete mode 100644 src/legacy/list-picker/index.tsx delete mode 100644 src/legacy/list-picker/interfaces.ts delete mode 100644 src/legacy/list-picker/locales/en-US.ts delete mode 100644 src/legacy/list-picker/locales/zh-CN.ts delete mode 100644 src/legacy/list-picker/style/index.less delete mode 100644 src/legacy/list-picker/style/index.ts delete mode 100644 src/legacy/list-selector/ListSelector.tsx delete mode 100644 src/legacy/list-selector/demos/ListSelector.stories.tsx delete mode 100644 src/legacy/list-selector/demos/ListSelectorPage.tsx delete mode 100644 src/legacy/list-selector/index.ts delete mode 100644 src/legacy/list-selector/interfaces.ts delete mode 100644 src/legacy/list-selector/style/index.less delete mode 100644 src/legacy/list-selector/style/index.ts delete mode 100644 src/legacy/list/Divider.tsx delete mode 100644 src/legacy/list/ExpandItem.tsx delete mode 100644 src/legacy/list/Item.tsx delete mode 100644 src/legacy/list/ItemGroup.tsx delete mode 100644 src/legacy/list/ItemSubgroup.tsx delete mode 100644 src/legacy/list/List.mdx delete mode 100644 src/legacy/list/List.stories.tsx delete mode 100644 src/legacy/list/List.tsx delete mode 100644 src/legacy/list/constants.ts delete mode 100644 src/legacy/list/index.tsx delete mode 100644 src/legacy/list/interfaces.ts delete mode 100644 src/legacy/list/style/index.less delete mode 100644 src/legacy/list/style/index.ts delete mode 100644 src/legacy/list/utils.tsx delete mode 100644 src/legacy/loading/Loading.tsx delete mode 100644 src/legacy/loading/demos/Loading.stories.tsx delete mode 100644 src/legacy/loading/demos/LoadingPage.tsx delete mode 100644 src/legacy/loading/index.tsx delete mode 100644 src/legacy/loading/interface.ts delete mode 100644 src/legacy/loading/style/index.less delete mode 100644 src/legacy/loading/style/index.ts delete mode 100644 src/legacy/menu/Divider.tsx delete mode 100644 src/legacy/menu/Menu.tsx delete mode 100644 src/legacy/menu/MenuContext.ts delete mode 100644 src/legacy/menu/MenuItem.tsx delete mode 100644 src/legacy/menu/MenuTitle.tsx delete mode 100644 src/legacy/menu/SubMenu.tsx delete mode 100644 src/legacy/menu/demos/Menu.stories.tsx delete mode 100644 src/legacy/menu/demos/MenuPage.tsx delete mode 100644 src/legacy/menu/index.ts delete mode 100644 src/legacy/menu/interface.ts delete mode 100644 src/legacy/menu/style/demo.stories.less delete mode 100644 src/legacy/menu/style/index.less delete mode 100644 src/legacy/menu/style/index.ts delete mode 100644 src/legacy/menu/style/layout.less delete mode 100644 src/legacy/menu/style/mixin.less delete mode 100644 src/legacy/menu/style/state.less delete mode 100644 src/legacy/modal/CalloutModal.tsx delete mode 100644 src/legacy/modal/Footer.tsx delete mode 100644 src/legacy/modal/Modal.tsx delete mode 100644 src/legacy/modal/ModalContext.ts delete mode 100644 src/legacy/modal/StepModal.tsx delete mode 100644 src/legacy/modal/Title.tsx delete mode 100644 src/legacy/modal/callout.tsx delete mode 100644 src/legacy/modal/demos/Modal.stories.tsx delete mode 100644 src/legacy/modal/demos/ModalPage.tsx delete mode 100644 src/legacy/modal/index.tsx delete mode 100644 src/legacy/modal/interface.ts delete mode 100644 src/legacy/modal/locales/en-US.ts delete mode 100644 src/legacy/modal/locales/zh-CN.ts delete mode 100644 src/legacy/modal/style/callout.less delete mode 100644 src/legacy/modal/style/index.less delete mode 100644 src/legacy/modal/style/index.ts delete mode 100644 src/legacy/modal/style/mask.less delete mode 100644 src/legacy/modal/style/mixin.less delete mode 100644 src/legacy/modal/style/modal.less delete mode 100644 src/legacy/modal/useModal/HookModal.tsx delete mode 100644 src/legacy/modal/useModal/index.tsx delete mode 100644 src/legacy/modal/utils.ts delete mode 100644 src/legacy/page/ForbiddenSVG.tsx delete mode 100644 src/legacy/page/InternalServerErrorSVG.tsx delete mode 100644 src/legacy/page/NotFoundSVG.tsx delete mode 100644 src/legacy/page/Page.tsx delete mode 100644 src/legacy/page/demos/Page.stories.tsx delete mode 100644 src/legacy/page/demos/PagePage.tsx delete mode 100644 src/legacy/page/index.ts delete mode 100644 src/legacy/page/interfaces.ts delete mode 100644 src/legacy/page/style/index.less delete mode 100644 src/legacy/page/style/index.ts delete mode 100644 src/legacy/pagination/Pagination.tsx delete mode 100644 src/legacy/pagination/demos/Pagination.stories.tsx delete mode 100644 src/legacy/pagination/demos/PaginationPage.tsx delete mode 100644 src/legacy/pagination/index.ts delete mode 100644 src/legacy/pagination/interface.tsx delete mode 100644 src/legacy/pagination/locales/en-US.ts delete mode 100644 src/legacy/pagination/locales/zh-CN.ts delete mode 100644 src/legacy/pagination/style/index.less delete mode 100644 src/legacy/pagination/style/index.ts delete mode 100644 src/legacy/pagination/until.ts delete mode 100644 src/legacy/popconfirm/Popconfirm.tsx delete mode 100644 src/legacy/popconfirm/demos/Popconfirm.stories.tsx delete mode 100644 src/legacy/popconfirm/demos/PopconfirmPage.tsx delete mode 100644 src/legacy/popconfirm/index.tsx delete mode 100644 src/legacy/popconfirm/interface.ts delete mode 100644 src/legacy/popconfirm/style/demo.stories.less delete mode 100644 src/legacy/popconfirm/style/index.less delete mode 100644 src/legacy/popconfirm/style/index.ts delete mode 100644 src/legacy/popover/Popover.tsx delete mode 100644 src/legacy/popover/demos/Popover.stories.tsx delete mode 100644 src/legacy/popover/demos/PopoverPage.tsx delete mode 100644 src/legacy/popover/index.tsx delete mode 100644 src/legacy/popover/interface.ts delete mode 100644 src/legacy/popover/style/demo.stories.less delete mode 100644 src/legacy/popover/style/index.less delete mode 100644 src/legacy/popover/style/index.ts delete mode 100644 src/legacy/progress/Progress.tsx delete mode 100644 src/legacy/progress/demos/Progress.stories.tsx delete mode 100644 src/legacy/progress/demos/ProgressPage.tsx delete mode 100644 src/legacy/progress/index.tsx delete mode 100644 src/legacy/progress/interface.ts delete mode 100644 src/legacy/progress/style/index.less delete mode 100644 src/legacy/progress/style/index.ts delete mode 100644 src/legacy/property-selector/components/list/style/index.ts delete mode 100644 src/legacy/property-selector/style/index.ts delete mode 100644 src/legacy/radio/Group.tsx delete mode 100644 src/legacy/radio/Radio.tsx delete mode 100644 src/legacy/radio/context.ts delete mode 100644 src/legacy/radio/demos/Radio.stories.tsx delete mode 100644 src/legacy/radio/demos/RadioPage.tsx delete mode 100644 src/legacy/radio/index.tsx delete mode 100644 src/legacy/radio/interface.ts delete mode 100644 src/legacy/radio/style/index.less delete mode 100644 src/legacy/radio/style/index.ts delete mode 100644 src/legacy/search-bar/SearchBar.tsx delete mode 100644 src/legacy/search-bar/demos/SearchBar.stories.tsx delete mode 100644 src/legacy/search-bar/demos/SearchBarPage.tsx delete mode 100755 src/legacy/search-bar/index.ts delete mode 100644 src/legacy/search-bar/interfaces.ts delete mode 100644 src/legacy/search-bar/locales/en-US.ts delete mode 100644 src/legacy/search-bar/locales/zh-CN.ts delete mode 100755 src/legacy/search-bar/style/index.less delete mode 100644 src/legacy/search-bar/style/index.ts delete mode 100644 src/legacy/select/OptionsList/OptGroup.tsx delete mode 100644 src/legacy/select/OptionsList/OptionItem.tsx delete mode 100644 src/legacy/select/OptionsList/Options.tsx delete mode 100644 src/legacy/select/OptionsList/index.tsx delete mode 100644 src/legacy/select/Select.mdx delete mode 100644 src/legacy/select/Select.stories.tsx delete mode 100644 src/legacy/select/Select.tsx delete mode 100644 src/legacy/select/Selector/index.tsx delete mode 100644 src/legacy/select/Selector/input.tsx delete mode 100644 src/legacy/select/VirtualList.tsx delete mode 100644 src/legacy/select/hooks/useCacheOption.ts delete mode 100644 src/legacy/select/index.tsx delete mode 100644 src/legacy/select/interface.ts delete mode 100644 src/legacy/select/style/index.less delete mode 100644 src/legacy/select/style/index.ts delete mode 100644 src/legacy/select/utils.tsx delete mode 100644 src/legacy/selector-pro/style/index.ts delete mode 100644 src/legacy/selector/InputTrigger.tsx delete mode 100644 src/legacy/selector/Selector.tsx delete mode 100644 src/legacy/selector/demos/Selector.mdx delete mode 100644 src/legacy/selector/demos/Selector.stories.tsx delete mode 100644 src/legacy/selector/index.ts delete mode 100644 src/legacy/selector/interfaces.ts delete mode 100644 src/legacy/selector/style/InputTrigger.less delete mode 100644 src/legacy/selector/style/index.less delete mode 100644 src/legacy/selector/style/index.ts delete mode 100644 src/legacy/sign/Dot.tsx delete mode 100644 src/legacy/sign/Sign.tsx delete mode 100644 src/legacy/sign/SignNumber.tsx delete mode 100644 src/legacy/sign/demos/Sign.stories.tsx delete mode 100644 src/legacy/sign/demos/SignPage.tsx delete mode 100644 src/legacy/sign/index.ts delete mode 100644 src/legacy/sign/interface.ts delete mode 100644 src/legacy/sign/style/index.less delete mode 100644 src/legacy/sign/style/index.ts delete mode 100644 src/legacy/sign/style/mixin.less delete mode 100644 src/legacy/space/Item.tsx delete mode 100644 src/legacy/space/Space.tsx delete mode 100644 src/legacy/space/demos/Space.stories.tsx delete mode 100644 src/legacy/space/demos/SpacePage.tsx delete mode 100644 src/legacy/space/index.ts delete mode 100644 src/legacy/space/interface.ts delete mode 100644 src/legacy/space/style/index.less delete mode 100644 src/legacy/space/style/index.ts delete mode 100644 src/legacy/steps/Step.tsx delete mode 100644 src/legacy/steps/Steps.mdx delete mode 100644 src/legacy/steps/Steps.stories.tsx delete mode 100644 src/legacy/steps/Steps.tsx delete mode 100644 src/legacy/steps/index.tsx delete mode 100644 src/legacy/steps/interface.ts delete mode 100644 src/legacy/steps/style/index.less delete mode 100644 src/legacy/steps/style/index.ts delete mode 100644 src/legacy/steps/style/steps.stories.less delete mode 100644 src/legacy/tab-nav/TabNav.tsx delete mode 100644 src/legacy/tab-nav/demos/TabNav.stories.tsx delete mode 100644 src/legacy/tab-nav/demos/TabNavPage.tsx delete mode 100644 src/legacy/tab-nav/index.tsx delete mode 100644 src/legacy/tab-nav/interface.ts delete mode 100644 src/legacy/tab-nav/style/demo.stories.less delete mode 100644 src/legacy/tab-nav/style/index.less delete mode 100644 src/legacy/tab-nav/style/index.ts delete mode 100644 src/legacy/table/DragTable.tsx delete mode 100644 src/legacy/table/FilterList.tsx delete mode 100644 src/legacy/table/FilterPopover.tsx delete mode 100644 src/legacy/table/ResizableTable.tsx delete mode 100644 src/legacy/table/Table.tsx delete mode 100644 src/legacy/table/Title.tsx delete mode 100644 src/legacy/table/demos/Base.tsx delete mode 100644 src/legacy/table/demos/CompactTable.tsx delete mode 100644 src/legacy/table/demos/DragTable.tsx delete mode 100644 src/legacy/table/demos/ExpandWithTable.tsx delete mode 100644 src/legacy/table/demos/MultiLine.tsx delete mode 100644 src/legacy/table/demos/ResizableTable.tsx delete mode 100644 src/legacy/table/demos/RowExpandTable.tsx delete mode 100644 src/legacy/table/demos/RowExpandWithFixedColumn.tsx delete mode 100644 src/legacy/table/demos/Table.stories.tsx delete mode 100644 src/legacy/table/demos/TableControlled.tsx delete mode 100644 src/legacy/table/demos/TableEmpty.tsx delete mode 100644 src/legacy/table/demos/TableHeader.tsx delete mode 100644 src/legacy/table/demos/TableLoading.tsx delete mode 100644 src/legacy/table/demos/TablePage.tsx delete mode 100644 src/legacy/table/demos/TablePagination.tsx delete mode 100644 src/legacy/table/demos/TableScroll.tsx delete mode 100644 src/legacy/table/demos/TreeExpandTable.tsx delete mode 100644 src/legacy/table/hook/useFilter.tsx delete mode 100644 src/legacy/table/hook/useHackOnRow.tsx delete mode 100644 src/legacy/table/hook/usePagination.tsx delete mode 100644 src/legacy/table/hook/useSelection.tsx delete mode 100644 src/legacy/table/hook/useSorter.tsx delete mode 100644 src/legacy/table/index.ts delete mode 100644 src/legacy/table/interface.ts delete mode 100644 src/legacy/table/locales/en-US.ts delete mode 100644 src/legacy/table/locales/zh-CN.ts delete mode 100644 src/legacy/table/style/index.less delete mode 100644 src/legacy/table/style/index.ts delete mode 100644 src/legacy/table/utils.ts delete mode 100644 src/legacy/tabs/TabPane.tsx delete mode 100644 src/legacy/tabs/Tabs.tsx delete mode 100644 src/legacy/tabs/demos/Tabs.stories.tsx delete mode 100644 src/legacy/tabs/demos/TabsPage.tsx delete mode 100644 src/legacy/tabs/index.tsx delete mode 100644 src/legacy/tabs/interface.ts delete mode 100644 src/legacy/tabs/style/index.less delete mode 100644 src/legacy/tabs/style/index.ts delete mode 100644 src/legacy/tag/Tag.tsx delete mode 100644 src/legacy/tag/demos/Tag.stories.tsx delete mode 100644 src/legacy/tag/demos/TagPage.tsx delete mode 100644 src/legacy/tag/index.tsx delete mode 100644 src/legacy/tag/interface.ts delete mode 100644 src/legacy/tag/style/demo.stories.less delete mode 100644 src/legacy/tag/style/index.less delete mode 100644 src/legacy/tag/style/index.ts delete mode 100644 src/legacy/text/Text.mdx delete mode 100644 src/legacy/text/Text.stories.tsx delete mode 100644 src/legacy/text/Text.tsx delete mode 100644 src/legacy/text/index.ts delete mode 100644 src/legacy/text/interface.ts delete mode 100644 src/legacy/text/style/index.less delete mode 100644 src/legacy/text/style/index.ts delete mode 100644 src/legacy/time-picker/Combobox.tsx delete mode 100644 src/legacy/time-picker/Panel.tsx delete mode 100644 src/legacy/time-picker/Select.tsx delete mode 100644 src/legacy/time-picker/TimePicker.mdx delete mode 100644 src/legacy/time-picker/TimePicker.stories.tsx delete mode 100644 src/legacy/time-picker/TimePicker.tsx delete mode 100644 src/legacy/time-picker/index.d.ts delete mode 100644 src/legacy/time-picker/index.tsx delete mode 100644 src/legacy/time-picker/interface.ts delete mode 100644 src/legacy/time-picker/placements.ts delete mode 100644 src/legacy/time-picker/style/header.less delete mode 100644 src/legacy/time-picker/style/index.less delete mode 100644 src/legacy/time-picker/style/index.ts delete mode 100644 src/legacy/time-picker/style/panel.less delete mode 100644 src/legacy/time-picker/style/picker.less delete mode 100644 src/legacy/time-picker/style/select.less delete mode 100644 src/legacy/toast/demos/Toast.stories.tsx delete mode 100644 src/legacy/toast/demos/ToastPage.tsx delete mode 100644 src/legacy/toast/index.tsx delete mode 100644 src/legacy/toast/interface.ts delete mode 100644 src/legacy/toast/style/index.less delete mode 100644 src/legacy/toast/style/index.ts delete mode 100644 src/legacy/toast/toastIcons.tsx delete mode 100644 src/legacy/toast/useToast/index.tsx delete mode 100644 src/legacy/toggles/Toggles.tsx delete mode 100644 src/legacy/toggles/demos/Toggles.stories.tsx delete mode 100644 src/legacy/toggles/demos/TogglesPage.tsx delete mode 100644 src/legacy/toggles/index.tsx delete mode 100644 src/legacy/toggles/interface.ts delete mode 100644 src/legacy/toggles/style/index.less delete mode 100644 src/legacy/toggles/style/index.ts delete mode 100644 src/legacy/tooltip/Tooltip.tsx delete mode 100644 src/legacy/tooltip/demos/Tooltip.stories.tsx delete mode 100644 src/legacy/tooltip/demos/TooltipPage.tsx delete mode 100644 src/legacy/tooltip/index.tsx delete mode 100644 src/legacy/tooltip/interface.ts delete mode 100644 src/legacy/tooltip/placements.ts delete mode 100644 src/legacy/tooltip/style/demo.css delete mode 100644 src/legacy/tooltip/style/demo.stories.less delete mode 100644 src/legacy/tooltip/style/index.less delete mode 100644 src/legacy/tooltip/style/index.ts delete mode 100644 src/legacy/tree-select/TreeSelect.tsx delete mode 100644 src/legacy/tree-select/demos/TreeSelect.mdx delete mode 100644 src/legacy/tree-select/demos/TreeSelect.stories.tsx delete mode 100644 src/legacy/tree-select/demos/TreeSelectPage.tsx delete mode 100644 src/legacy/tree-select/iconUtil.tsx delete mode 100644 src/legacy/tree-select/index.tsx delete mode 100644 src/legacy/tree-select/interface.tsx delete mode 100644 src/legacy/tree-select/style/demo.stories.less delete mode 100644 src/legacy/tree-select/style/index.less delete mode 100644 src/legacy/tree-select/style/index.ts delete mode 100644 src/legacy/tree/Tree.tsx delete mode 100644 src/legacy/tree/demos/Tree.stories.tsx delete mode 100644 src/legacy/tree/demos/TreePage.tsx delete mode 100644 src/legacy/tree/iconUtil.tsx delete mode 100644 src/legacy/tree/index.tsx delete mode 100644 src/legacy/tree/style/index.less delete mode 100644 src/legacy/tree/style/index.ts delete mode 100644 src/legacy/typograhy/Text.tsx delete mode 100644 src/legacy/typograhy/Title.tsx delete mode 100644 src/legacy/typograhy/demos/Text.stories.tsx delete mode 100644 src/legacy/typograhy/demos/TextPage.tsx delete mode 100644 src/legacy/typograhy/demos/Title.stories.tsx delete mode 100644 src/legacy/typograhy/demos/TitlePage.tsx delete mode 100644 src/legacy/typograhy/index.ts delete mode 100644 src/legacy/typograhy/interfaces.ts delete mode 100644 src/legacy/typograhy/style/Text.less delete mode 100644 src/legacy/typograhy/style/Title.less delete mode 100644 src/legacy/typograhy/style/index.less delete mode 100644 src/legacy/typograhy/style/index.ts delete mode 100644 src/legacy/upload/Actions.tsx delete mode 100644 src/legacy/upload/Preview.tsx delete mode 100644 src/legacy/upload/Upload.tsx delete mode 100644 src/legacy/upload/UploadList.tsx delete mode 100644 src/legacy/upload/demos/Upload.stories.tsx delete mode 100644 src/legacy/upload/demos/UploadPage.tsx delete mode 100644 src/legacy/upload/index.tsx delete mode 100644 src/legacy/upload/interface.ts delete mode 100644 src/legacy/upload/locales/en-US.ts delete mode 100644 src/legacy/upload/locales/zh-CN.ts delete mode 100644 src/legacy/upload/style/index.less delete mode 100644 src/legacy/upload/style/index.ts delete mode 100644 src/legacy/upload/svg/CsvSVG.tsx delete mode 100644 src/legacy/upload/svg/DisabledFolderSVG.tsx delete mode 100644 src/legacy/upload/svg/DisabledPictureSVG.tsx delete mode 100644 src/legacy/upload/svg/DocxSVG.tsx delete mode 100644 src/legacy/upload/svg/FolderSVG.tsx delete mode 100644 src/legacy/upload/svg/PdfSVG.tsx delete mode 100644 src/legacy/upload/svg/PictureSVG.tsx delete mode 100644 src/legacy/upload/svg/TxtSVG.tsx delete mode 100644 src/legacy/upload/svg/XlsxSVG.tsx delete mode 100644 src/legacy/upload/svg/index.tsx delete mode 100644 src/legacy/upload/svg/interface.ts delete mode 100644 src/legacy/upload/triggers/AvatarTrigger.tsx delete mode 100644 src/legacy/upload/triggers/ButtonTrigger.tsx delete mode 100644 src/legacy/upload/triggers/CardTrigger.tsx delete mode 100644 src/legacy/upload/triggers/DragTrigger.tsx delete mode 100644 src/legacy/upload/triggers/InputTrigger.tsx delete mode 100644 src/legacy/upload/utils.ts delete mode 100644 src/legacy/upload/xhrRequest.ts diff --git a/src/alert/style/index.less b/src/alert/style/index.less index e28d3c2a21..13cdf95fe4 100644 --- a/src/alert/style/index.less +++ b/src/alert/style/index.less @@ -1,4 +1,4 @@ -@import '../../stylesheet/variables/index.less'; +@import (reference) '../../stylesheet/variables/index.less'; @alert-prefix-cls: ~'@{component-prefix}-alert'; diff --git a/src/legacy/alert/Alert.tsx b/src/legacy/alert/Alert.tsx deleted file mode 100644 index b264e5ccfe..0000000000 --- a/src/legacy/alert/Alert.tsx +++ /dev/null @@ -1,66 +0,0 @@ -import React, { useState } from 'react'; -import classnames from 'classnames'; -import { usePrefixCls } from '@gio-design/utils'; - -import _ from 'lodash'; -import { - CheckCircleFilled, - WarningCircleFilled, - InfoCircleFilled, - CloseCircleFilled, - CloseOutlined, -} from '@gio-design/icons'; -import { PaletteGreen7, PaletteYellow7, PaletteRed5, PaletteBlue6 } from '@gio-design/tokens'; -import useSize from '../../utils/hooks/useSize'; -import { AlertProps } from './interfaces'; - -export const Alert: React.FC = (props: AlertProps) => { - const prefixCls = usePrefixCls('alert-legacy'); - const [alertStatus, setAlertStatus] = useState(true); - const { message, description, closeable, showIcon = false, onClose, icon, type, size: customizeSize, style } = props; - - const size = useSize(); - const mergedSize = customizeSize ?? size; - const getIcon = () => { - switch (type) { - case 'success': - return ; - case 'warning': - return ; - case 'error': - return ; - case 'info': - return ; - default: - return icon || ; - } - }; - - const closeAlert = () => { - setAlertStatus(false); - onClose?.(); - }; - - return alertStatus ? ( -
- {showIcon &&
{getIcon()}
} -
- {message &&
{message}
} - {description &&
{description}
} -
- {closeable && ( -
- -
- )} -
- ) : null; -}; - -export default Alert; diff --git a/src/legacy/alert/demos/Alert.stories.tsx b/src/legacy/alert/demos/Alert.stories.tsx deleted file mode 100644 index aa82c5be06..0000000000 --- a/src/legacy/alert/demos/Alert.stories.tsx +++ /dev/null @@ -1,65 +0,0 @@ -import React from 'react'; -import { Story, Meta } from '@storybook/react/types-6-0'; -import { action } from '@storybook/addon-actions'; -import Docs from './AlertPage'; -import Alert from '../index'; -import { AlertProps } from '../interfaces'; -import '../style'; - -export default { - title: 'Legacy/Alert', - component: Alert, - parameters: { - docs: { - page: Docs, - }, - }, -} as Meta; - -const Template: Story = (args) => ( -
- -
- -
- -
- -
-); - -export const Default = Template.bind({}); -Default.args = { - showIcon: true, - closeable: true, - message: '标题', - description: '提示正文', -}; - -export const NoDescription = Template.bind({}); -NoDescription.args = { - showIcon: true, - closeable: true, - message: '标题', -}; - -export const NoTitle = Template.bind({}); -NoTitle.args = { - showIcon: true, - closeable: true, - description: '提示正文', -}; - -export const NoIcon = Template.bind({}); -NoIcon.args = { - closeable: true, - message: '标题', - description: '提示正文', -}; - -export const NoClose = Template.bind({}); -NoClose.args = { - showIcon: true, - message: '标题', - description: '提示正文', -}; diff --git a/src/legacy/alert/demos/AlertPage.tsx b/src/legacy/alert/demos/AlertPage.tsx deleted file mode 100644 index 96925db0db..0000000000 --- a/src/legacy/alert/demos/AlertPage.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import React from 'react'; -import { Canvas, Title, Heading, Story, Subheading, ArgsTable } from '@storybook/addon-docs'; -import { useIntl } from 'react-intl'; -import Alert from '../Alert'; - -export default function ListPage() { - const { formatMessage } = useIntl(); - - return ( - <> - {formatMessage({ defaultMessage: 'Alert 警告信息' })} -

- {formatMessage({ - defaultMessage: - '当某个页面需要向用户显示警告、提示的信息时使用,这部分信息是用户必须了解的,例如未对公众号进行授权则影响某些功能的使用。通常为页面级提示信息,提示重要性高,通常位置在页面或弹窗顶部。Alert宽度根据不同使用场景,可以设置为固定宽度,内容超长时,换行展示。', - })} -

- {formatMessage({ defaultMessage: '代码演示' })} - {formatMessage({ defaultMessage: 'Icon、标题、正文、关闭按钮' })} - - - - - {formatMessage({ defaultMessage: 'Icon & 标题 & 关闭' })} - - - - - {formatMessage({ defaultMessage: 'Icon & 正文 & 关闭' })} - - - - - {formatMessage({ defaultMessage: '标题 & 正文 & 关闭' })} - - - - - {formatMessage({ defaultMessage: 'Icon & 标题 & 正文 ' })} - - - - - {formatMessage({ defaultMessage: '参数说明' })} - - - ); -} diff --git a/src/legacy/alert/index.tsx b/src/legacy/alert/index.tsx deleted file mode 100644 index 181c94ff1a..0000000000 --- a/src/legacy/alert/index.tsx +++ /dev/null @@ -1,4 +0,0 @@ -import Alert from './Alert'; - -export { AlertProps } from './interfaces'; -export default Alert; diff --git a/src/legacy/alert/interfaces.ts b/src/legacy/alert/interfaces.ts deleted file mode 100644 index 61278c84e1..0000000000 --- a/src/legacy/alert/interfaces.ts +++ /dev/null @@ -1,42 +0,0 @@ -export interface AlertProps { - /** - 指定警告提示的样式 - */ - type?: 'success' | 'info' | 'warning' | 'error'; - /** - 指定警告的尺寸 - */ - size?: 'small' | 'middle'; - /** - 是否显示关闭按钮 - */ - closeable?: boolean; - /** - 自定义关闭按钮 - */ - closeText?: React.ReactNode; - /** - 警告提示的辅助性文字介绍 - */ - description?: React.ReactNode; - /** - 警告提示内容 - */ - message?: React.ReactNode; - /** - 是否显示辅助图标 - */ - showIcon?: boolean; - /** - 自定义图标,showIcon 为 true 时有效 - */ - icon?: React.ReactNode; - /** - 关闭时触发的回调函数 - */ - onClose?: () => void; - /** - 外层样式 - */ - style?: React.CSSProperties; -} diff --git a/src/legacy/alert/style/index.less b/src/legacy/alert/style/index.less deleted file mode 100644 index a1d4f4f5bc..0000000000 --- a/src/legacy/alert/style/index.less +++ /dev/null @@ -1,116 +0,0 @@ -@import '../../../stylesheet/index.less'; - -@alert-prefix-cls-legacy: ~'@{component-prefix}-alert-legacy'; - -.@{alert-prefix-cls-legacy} { - display: flex; - align-items: center; - box-sizing: border-box; - width: 100%; - padding: 16px 16px; - border-radius: 6px; - transition: all ease 0.8s; - - & &-icon { - flex-shrink: 0; - align-self: flex-start; - height: 100%; - padding-top: 1px; - } - - & .@{alert-prefix-cls-legacy}-content { - flex: 1; - margin: 0 8px; - color: @color-text-alert-content; - font-size: @size-font-14; - font-family: @font-family-primary; - line-height: 22px; - - & .@{alert-prefix-cls-legacy}-content-title { - width: 100%; - overflow: hidden; - font-weight: @weight-font-medium; - text-overflow: ellipsis; - } - - & .@{alert-prefix-cls-legacy}-content-description { - width: 100%; - letter-spacing: 0; - } - } - - & .@{alert-prefix-cls-legacy}-closeIcon { - flex-shrink: 0; - align-self: flex-start; - font-weight: @weight-font-semi-bold; - cursor: pointer; - } -} - -.@{alert-prefix-cls-legacy}-close { - display: none; -} - -.@{alert-prefix-cls-legacy}-info { - background-color: @color-background-alert-information; - - & .@{alert-prefix-cls-legacy}-closeIcon { - svg { - fill: @palette-blue-6; - } - } - - & .@{alert-prefix-cls-legacy}-icon { - svg { - fill: @palette-blue-6; - } - } -} - -.@{alert-prefix-cls-legacy}-success { - background-color: @color-background-alert-success; - - & .@{alert-prefix-cls-legacy}-closeIcon { - fill: @palette-green-6; - } - - & .@{alert-prefix-cls-legacy}-icon { - fill: @palette-green-6; - } -} - -.@{alert-prefix-cls-legacy}-warning { - background-color: @color-background-alert-warning; - - & .@{alert-prefix-cls-legacy}-closeIcon { - svg { - fill: @palette-yellow-6; - } - } - - & .@{alert-prefix-cls-legacy}-icon { - svg { - fill: @palette-yellow-6; - } - } -} - -.@{alert-prefix-cls-legacy}-error { - background-color: @color-background-alert-error; - - & .@{alert-prefix-cls-legacy}-closeIcon { - fill: @palette-red-6; - } - - & .@{alert-prefix-cls-legacy}-icon { - fill: @palette-red-6; - } -} - -.@{alert-prefix-cls-legacy}-small { - padding: 8px 16px; - - & .@{alert-prefix-cls-legacy}-content { - font-size: @size-font-12; - } -} diff --git a/src/legacy/alert/style/index.ts b/src/legacy/alert/style/index.ts deleted file mode 100644 index d74e52ee9f..0000000000 --- a/src/legacy/alert/style/index.ts +++ /dev/null @@ -1 +0,0 @@ -import './index.less'; diff --git a/src/legacy/avatar/Avatar.tsx b/src/legacy/avatar/Avatar.tsx deleted file mode 100644 index 7afeef512a..0000000000 --- a/src/legacy/avatar/Avatar.tsx +++ /dev/null @@ -1,114 +0,0 @@ -import React, { useState, useEffect, useRef } from 'react'; -import classNames from 'classnames'; -import { MoreOutlined, UserOutlined } from '@gio-design/icons'; -import { isNil, isUndefined } from 'lodash'; -import { usePrefixCls } from '@gio-design/utils'; -import Tooltip from '../tooltip'; -import { AvatarProps } from './interfaces'; -import composeRef from '../../utils/composeRef'; - -const Avatar = React.forwardRef((props: AvatarProps, ref: React.Ref) => { - const { - className, - size = 'default', - droppable = false, - children: userName, - src, - omit = true, - displayTooltip = false, - prefixCls: customizePrefixCls, - placement = 'bottom', - tooltipTitle, - mode = 'circle', - backgroundColor, - icon, - ...rest - } = props; - - const [isImgExist, setIsImgExist] = useState(src !== undefined); - const [scale, setScale] = useState(1); - const nodeRef = useRef(null); - const childrenRef = useRef(null); - const mergedRef = composeRef(ref, nodeRef); - - useEffect(() => { - setIsImgExist(!isUndefined(src)); - }, [src]); - - useEffect(() => { - if (nodeRef.current && childrenRef.current) { - const nodeWidth = nodeRef.current.offsetWidth; - const childrenWidth = childrenRef.current.offsetWidth; - setScale(nodeWidth - 8 < childrenWidth ? (nodeWidth - 8) / childrenWidth : 1); - } - }, [userName, isImgExist]); - - const prefixCls = usePrefixCls('avatar-legacy', customizePrefixCls); - const classString = classNames(className, prefixCls, { - [`${prefixCls}-sm`]: size === 'small', - [`${prefixCls}-df`]: size === 'default', - [`${prefixCls}-lg`]: size === 'large', - [`${prefixCls}-hg`]: size === 'huge', - [`${prefixCls}-square`]: mode === 'square', - }); - - const childrenStyle: React.CSSProperties = { - transform: `scale(${scale}) translateX(-50%)`, - }; - - const renderMore = () => { - if (droppable) { - return ( -
- -
- ); - } - return null; - }; - - const renderAvatar = () => { - if (!!src && isImgExist) { - return avatar setIsImgExist(false)} />; - } - if (icon) { - return {icon}; - } - if (!userName) { - return ( - - - - ); - } - if (typeof userName === 'string') { - const prefixUserName = omit && typeof userName === 'string' ? userName.trim()[0]?.toUpperCase() : userName.trim(); - return ( - - {prefixUserName} - - ); - } - return null; - }; - - const renderTooltip = (child: React.ReactElement) => - displayTooltip ? ( - - {child} - - ) : ( - child - ); - - return renderTooltip( - // For Dropdown trigger will set Event on rest - // eslint-disable-next-line react/jsx-props-no-spreading - - {renderMore()} - {renderAvatar()} - - ); -}); - -export default Avatar; diff --git a/src/legacy/avatar/AvatarGroup.tsx b/src/legacy/avatar/AvatarGroup.tsx deleted file mode 100644 index a678e17b7a..0000000000 --- a/src/legacy/avatar/AvatarGroup.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import React from 'react'; -import classNames from 'classnames'; -import _ from 'lodash'; -import { usePrefixCls } from '@gio-design/utils'; -import Avatar from './Avatar'; -import { AvatarGroupProps, UserAvatarType } from './interfaces'; - -const AvatarGroup: React.FC = (props: AvatarGroupProps) => { - const { number = 5, users = [], className, placement = 'bottom', style, displayTooltip = true } = props; - const prefixCls = usePrefixCls('avatar-legacy'); - - let children = null; - const renderAvatarGroup = (sliceUsers: UserAvatarType[]) => - sliceUsers.map((user) => ( - - {user.name} - - )); - const renderAvatarRest = (restUsers: UserAvatarType[]) => ( - {`+${restUsers.length}`} - ); - const classString = classNames(className, `${prefixCls}-group`); - - if (users.length === 0) { - return null; - } - if (users.length <= number) { - children = renderAvatarGroup(users); - } else { - const sliceUsers = _.slice(users, 0, number - 1); - const restUsers = _.slice(users, number - 1, users.length); - children = ( - <> - {renderAvatarGroup(sliceUsers)} - {renderAvatarRest(restUsers)} - - ); - } - - return ( -
- {children} -
- ); -}; -export default AvatarGroup; diff --git a/src/legacy/avatar/demos/Avatar.stories.tsx b/src/legacy/avatar/demos/Avatar.stories.tsx deleted file mode 100644 index f4b52789b8..0000000000 --- a/src/legacy/avatar/demos/Avatar.stories.tsx +++ /dev/null @@ -1,123 +0,0 @@ -import React from 'react'; -import { Story, Meta } from '@storybook/react/types-6-0'; -import { HomeFilled } from '@gio-design/icons'; -import Docs from './AvatarPage'; -import Avatar, { AvatarGroup, AvatarGroupProps, AvatarProps } from '../index'; -import '../style'; -import '../style/demo.stories.less'; - -export default { - title: 'Legacy/Avatar', - component: Avatar, - parameters: { - docs: { - page: Docs, - }, - }, -} as Meta; - -const Template: Story = (args) => ( -
- - li - - li - 这是一个很长的描述 - - 这是一个很长的描述 - - } /> -
-); - -export const Default = Template.bind({}); -Default.args = { - droppable: false, - size: 'default', - omit: true, - placement: 'top', - displayTooltip: true, - tooltipTitle: 'li', -}; - -const SizeTemplate: Story = (args) => ( - <> -
- - 李 - - - 李 - - - 李 - - - 李 - -
-
-
- - 李 - - - 李 - - - 李 - - - 李 - -
- -); -export const Size = SizeTemplate.bind({}); - -const HoverTemplate: Story = (args) => ( - <> - - - - } /> - -); -export const Hover = HoverTemplate.bind({}); -Hover.args = { - droppable: true, -}; - -const GroupTempalte: Story = (args) => ; - -export const Group = GroupTempalte.bind({}); -Group.args = { - number: 4, - placement: 'bottom', - displayTooltip: true, - users: [ - { - name: 'li', - src: 'https://joeschmoe.io/api/v1/random', - tooltipTitle: '这是li', - }, - { - name: 'pan', - }, - { - name: 'leng', - src: 'https://joeschmoe.io/api/v1/random', - }, - { - name: 'liu', - }, - { - name: 'wang', - src: 'https://joeschmoe.io/api/v1/random', - }, - { - name: 'tong', - src: 'https://joeschmoe.io/api/v1/random', - }, - ], -}; diff --git a/src/legacy/avatar/demos/AvatarPage.tsx b/src/legacy/avatar/demos/AvatarPage.tsx deleted file mode 100644 index 8443b42564..0000000000 --- a/src/legacy/avatar/demos/AvatarPage.tsx +++ /dev/null @@ -1,59 +0,0 @@ -import React from 'react'; -import { Canvas, Title, Heading, Story, Subheading, ArgsTable } from '@storybook/addon-docs'; -import { useIntl } from 'react-intl'; -import Avatar from '../Avatar'; - -export default function ListPage() { - const { formatMessage } = useIntl(); - - return ( - <> - {formatMessage({ defaultMessage: 'Avatar 头像' })} -

- {formatMessage({ - defaultMessage: '用来代表用户,支持图片或字符展示。', - })} -

- {formatMessage({ defaultMessage: '代码演示' })} - {formatMessage({ defaultMessage: '基础头像' })} - - - - - {formatMessage({ defaultMessage: '尺寸' })} -

- {formatMessage({ - defaultMessage: - '头像有以下几种尺寸:24px、32px、56px、80px。24px、32px 常用于列表&导航展示。56px、80px 常用于用户管理。默认为字符型头像,24px、32px 头像的文字字号为 12px;56px 头像的文字字号为 16px;80px 头像的文字字号为 20px。', - })} -

- - - - - {formatMessage({ defaultMessage: '可展开操作' })} -

- {formatMessage({ - defaultMessage: 'hover 头像可显示 icon', - })} -

- - - - - {formatMessage({ defaultMessage: '重叠展示' })} -

- {formatMessage({ - defaultMessage: - '可设置组显示数量,默认为 4。当用户未设置头像时,显示该用户名称的首个文字数字或字母。hover 头像时头像前置,并显示 tooltip。', - })} -

- - - - - {formatMessage({ defaultMessage: '参数说明' })} - - - ); -} diff --git a/src/legacy/avatar/index.tsx b/src/legacy/avatar/index.tsx deleted file mode 100644 index 16035c9159..0000000000 --- a/src/legacy/avatar/index.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import Avatar from './Avatar'; - -export default Avatar; -export { default as AvatarGroup } from './AvatarGroup'; -export { AvatarProps, UserAvatarType, AvatarGroupProps } from './interfaces'; diff --git a/src/legacy/avatar/interfaces.ts b/src/legacy/avatar/interfaces.ts deleted file mode 100644 index d46a79b4fe..0000000000 --- a/src/legacy/avatar/interfaces.ts +++ /dev/null @@ -1,88 +0,0 @@ -export type tooltipPlacement = - | 'top' - | 'topRight' - | 'topLeft' - | 'leftTop' - | 'left' - | 'leftBottom' - | 'rightTop' - | 'right' - | 'rightBottom' - | 'bottomLeft' - | 'bottom' - | 'bottomRight'; - -export interface AvatarProps { - /** - 设置头像的尺寸大小 - */ - size?: 'small' | 'default' | 'large' | 'huge'; - droppable?: boolean; - /** - 设置头像的尺寸大小 - */ - src?: string; - /** - 是否省略用户名称 - */ - omit?: boolean; - /** - 自定义混入 `CSS` 类 - */ - className?: string; - /** - 自定义混入 `CSS` 样式 - */ - style?: React.CSSProperties; - /** - 气泡框位置,可选 12 个方位 - */ - placement?: tooltipPlacement; - /** - 自定义 `CSS` 类前缀 - */ - prefixCls?: string; - /** - 用 `Tooltip` 显示用户名 - */ - displayTooltip?: boolean; - /** - 自定义气泡框的内容 - */ - tooltipTitle?: React.ReactNode; - /** - 设置字符,用作用户头像 - */ - children?: string; - - /** - 圆头像 or 方头像 - */ - mode?: 'circle' | 'square'; - - /** - 自定义背景色 - */ - backgroundColor?: string; - - /** - 头像内容是Icon - */ - icon?: React.ReactNode; -} - -export interface UserAvatarType { - name: string; - src?: string; - displayTooltip?: boolean; - tooltipTitle?: React.ReactNode; -} - -export interface AvatarGroupProps { - className?: string; - style?: React.CSSProperties; - number?: number; - users: UserAvatarType[]; - placement?: tooltipPlacement; - displayTooltip?: boolean; -} diff --git a/src/legacy/avatar/style/demo.stories.less b/src/legacy/avatar/style/demo.stories.less deleted file mode 100644 index 29d0e84a6a..0000000000 --- a/src/legacy/avatar/style/demo.stories.less +++ /dev/null @@ -1,15 +0,0 @@ -.display-avatar { - .gio-avatar { - margin: 16px; - } - .gio-avatar-group { - .gio-avatar { - margin: 0; - } - } -} - -.size-display { - display: flex; - align-items: center; -} diff --git a/src/legacy/avatar/style/index.less b/src/legacy/avatar/style/index.less deleted file mode 100644 index 9e1fc5bc86..0000000000 --- a/src/legacy/avatar/style/index.less +++ /dev/null @@ -1,189 +0,0 @@ -@import '../../../stylesheet/index.less'; - -@avatar-prefix-cls-legacy: ~'@{component-prefix}-avatar-legacy'; - -.@{avatar-prefix-cls-legacy} { - position: relative; - display: inline-block; - box-sizing: border-box; - overflow: hidden; - color: @color-text-avatar-normal; - font-weight: @weight-font-semi-bold; - background-color: @color-background-avatar-normal; - border-radius: 100%; - opacity: 1; - user-select: none; - - &:hover &-droppable { - background-color: @color-background-avatar-hover-dropdown; - span { - transform: scale(1); - } - } - - &-default { - position: relative; - display: inline-block; - width: 100%; - height: 100%; - background-color: @color-background-avatar-normal; - - & svg { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - margin: auto; - color: #fff; - } - } - - &-droppable { - position: absolute; - top: 0; - left: 0; - z-index: 1; - width: 100%; - height: 100%; - text-align: center; - background-color: transparent; - cursor: pointer; - transition: all 0.3s; - - span { - vertical-align: middle; - transform: scale(0); - transition: all 0.3s; - } - } - - &-string { - position: absolute; - left: 50%; - transform-origin: 0 center; - } - - img { - position: relative; - display: block; - width: 100%; - height: 100%; - object-fit: cover; - } - - &-sm { - width: 24px; - height: 24px; - font-size: 12px; - line-height: 24px; - - .@{avatar-prefix-cls-legacy}-icon { - & svg { - width: 10px; - height: 10px; - } - } - - &.@{avatar-prefix-cls-legacy}-square { - border-radius: 2px; - .@{avatar-prefix-cls-legacy}-icon { - & svg { - width: 12px; - height: 12px; - } - } - } - } - - &-df { - width: 32px; - height: 32px; - font-size: 12px; - line-height: 32px; - - .@{avatar-prefix-cls-legacy}-icon { - & svg { - width: 14px; - height: 14px; - } - } - - &.@{avatar-prefix-cls-legacy}-square { - border-radius: 4px; - .@{avatar-prefix-cls-legacy}-icon { - & svg { - width: 16px; - height: 16px; - } - } - } - } - - &-lg { - width: 56px; - height: 56px; - font-size: 16px; - line-height: 56px; - - .@{avatar-prefix-cls-legacy}-icon { - & svg { - width: 24px; - height: 24px; - } - } - - &.@{avatar-prefix-cls-legacy}-square { - border-radius: 8px; - .@{avatar-prefix-cls-legacy}-icon { - & svg { - width: 28px; - height: 28px; - } - } - } - } - - &-hg { - width: 80px; - height: 80px; - font-size: 20px; - line-height: 80px; - - .@{avatar-prefix-cls-legacy}-icon { - & svg { - width: 32px; - height: 32px; - } - } - - &.@{avatar-prefix-cls-legacy}-square { - border-radius: 10px; - .@{avatar-prefix-cls-legacy}-icon { - & svg { - width: 40px; - height: 40px; - } - } - } - } - - &-group { - display: flex; - .@{avatar-prefix-cls-legacy} { - border: 1.4px solid @color-border-avatar; - span { - top: -1.5px; - } - &:hover { - position: relative; - z-index: 1; - filter: @shadow-avatar; - } - } - - .@{avatar-prefix-cls-legacy}:not(:first-child) { - margin-left: -8px; - } - } -} diff --git a/src/legacy/avatar/style/index.ts b/src/legacy/avatar/style/index.ts deleted file mode 100644 index 7dd4c91196..0000000000 --- a/src/legacy/avatar/style/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -import './index.less'; -import '../../tooltip/index'; diff --git a/src/legacy/banner/Banner.tsx b/src/legacy/banner/Banner.tsx deleted file mode 100644 index 3c5aaad185..0000000000 --- a/src/legacy/banner/Banner.tsx +++ /dev/null @@ -1,39 +0,0 @@ -import React, { useState } from 'react'; -import { CloseOutlined } from '@gio-design/icons'; -import className from 'classnames'; -import { usePrefixCls } from '@gio-design/utils'; -import { BannerProps } from './interface'; - -const Banner: React.FC = (props: BannerProps) => { - const { type = 'normal', content, closeable = true, onClose, button, prefixCls: customizePrefixCls } = props; - const [visible, setVisible] = useState(true); - const prefixCls = usePrefixCls('banner-legacy', customizePrefixCls); - const onCloseBanner = () => { - setVisible(false); - onClose?.(); - }; - - return ( -
-
{content}
-
{button}
- -
- ); -}; - -export default Banner; diff --git a/src/legacy/banner/demos/Banner.stories.tsx b/src/legacy/banner/demos/Banner.stories.tsx deleted file mode 100644 index d2a9335072..0000000000 --- a/src/legacy/banner/demos/Banner.stories.tsx +++ /dev/null @@ -1,74 +0,0 @@ -/* eslint-disable jsx-a11y/anchor-is-valid */ -import React from 'react'; -import { Story, Meta } from '@storybook/react/types-6-0'; -import Button from '../../button'; -import Link from '../../link'; -import Tag from '../../tag'; -import Banner, { BannerProps } from '../index'; -import Docs from './BannerPage'; -import '../style'; - -export default { - title: 'legacy/Banner', - component: Banner, - parameters: { - docs: { - page: Docs, - }, - }, -} as Meta; - -const baseContent = ( -
- 【GrowingIO在线公共课】欧治云商运营负责人复盘B2B增长实践 - -
-); - -const alertContent = ( -
- 尊敬的客户您好,工单系统将于2月2日~2月10日暂停服务。 - - 查看详情 - -
-); - -const closeableContent = ( -
-
- - 试用中 - - 试用14天后结束 -
-
- 客服专线:010-50914714 - -
-
-); - -const Template: Story = (args) => ; -export const Base = Template.bind({}); -export const Alert = Template.bind({}); -export const Closeable = Template.bind({}); -Base.args = { - content: baseContent, - type: 'normal', - closeable: false, -}; -Alert.args = { - content: alertContent, - type: 'alert', - closeable: false, -}; -Closeable.args = { - content: closeableContent, - type: 'normal', - closeable: true, -}; diff --git a/src/legacy/banner/demos/BannerPage.tsx b/src/legacy/banner/demos/BannerPage.tsx deleted file mode 100644 index 7fd0497018..0000000000 --- a/src/legacy/banner/demos/BannerPage.tsx +++ /dev/null @@ -1,37 +0,0 @@ -import React from 'react'; -import { Canvas, Title, Heading, Story, Subheading, ArgsTable } from '@storybook/addon-docs'; -import { useIntl } from 'react-intl'; -import Banner from '../Banner'; - -export default function ListPage() { - const { formatMessage } = useIntl(); - - return ( - <> - {formatMessage({ defaultMessage: 'Banner 横幅' })} -

- {formatMessage({ - defaultMessage: '将重要的信息通知到用户,例如:线下活动报名,系统维护等通知', - })} -

- {formatMessage({ defaultMessage: '代码演示' })} - {formatMessage({ defaultMessage: '信息通知' })} - - - - - {formatMessage({ defaultMessage: '警告通知' })} - - - - - {formatMessage({ defaultMessage: '可关闭' })} - - - - - {formatMessage({ defaultMessage: '参数说明' })} - - - ); -} diff --git a/src/legacy/banner/index.tsx b/src/legacy/banner/index.tsx deleted file mode 100644 index 4c3b89826e..0000000000 --- a/src/legacy/banner/index.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import Banner from './Banner'; - -export { BannerProps } from './interface'; - -export default Banner; diff --git a/src/legacy/banner/interface.ts b/src/legacy/banner/interface.ts deleted file mode 100644 index 7c4af160e0..0000000000 --- a/src/legacy/banner/interface.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { ReactNode } from 'react'; - -export interface BannerProps { - /** - 横幅的类型 - */ - type?: 'normal' | 'alert'; - /** - 横幅内的内容 - */ - content?: string | ReactNode; - /** - 是否可以关闭 - */ - closeable?: boolean; - /** - 点击关闭横幅的回掉函数 - */ - onClose?: () => void; - /** - 横幅内自定义 `button` - */ - button?: ReactNode; - /** - 自定义 `css` 类前缀 - */ - prefixCls?: string; -} diff --git a/src/legacy/banner/style/index.less b/src/legacy/banner/style/index.less deleted file mode 100644 index 8999b24f34..0000000000 --- a/src/legacy/banner/style/index.less +++ /dev/null @@ -1,77 +0,0 @@ -@import '../../../stylesheet/index.less'; - -@banner-prefix-cls-legacy: ~'@{component-prefix}-banner-legacy'; - -.@{banner-prefix-cls-legacy} { - display: flex; - align-items: center; - width: 100%; - min-width: 720px; - height: 48px; - background-color: @color-background-banner-normal; - transition: all ease 0.8s; - &-content { - flex: 1; - height: 30px; - margin: 0 64px; - color: @color-text-banner-normal; - font-size: @size-font-14; - font-family: @font-family-primary; - line-height: 30px; - text-align: center; - .alert-close { - display: flex; - align-items: center; - justify-content: center; - } - } - - &-content-button { - margin: 0 154px 0 64px; - } - - &-button { - position: relative; - right: 64px; - } - - &-closeIcon { - position: relative; - right: 20px; - display: flex; - align-items: center; - justify-content: center; - width: 24px; - height: 24px; - color: @color-text-banner-normal; - font-weight: @weight-font-semi-bold; - line-height: 16px; - cursor: pointer; - } - &-closeIcon:hover { - background: rgba(255, 255, 255, 0.5); - border-radius: 4px; - } -} - -.@{banner-prefix-cls-legacy}-alert { - background-color: @color-background-banner-alert; - .@{banner-prefix-cls-legacy}-content { - color: @color-text-banner-alert; - font-size: @size-font-14; - font-family: @font-family-primary; - } - .@{banner-prefix-cls-legacy}-closeIcon { - color: @color-text-banner-alert; - } -} - -.@{banner-prefix-cls-legacy}-close { - display: none; -} - -.@{banner-prefix-cls-legacy}-closeable { - .@{banner-prefix-cls-legacy}-content { - margin: 0 40px 0 64px; - } -} diff --git a/src/legacy/banner/style/index.ts b/src/legacy/banner/style/index.ts deleted file mode 100644 index d74e52ee9f..0000000000 --- a/src/legacy/banner/style/index.ts +++ /dev/null @@ -1 +0,0 @@ -import './index.less'; diff --git a/src/legacy/base-picker/style/index.ts b/src/legacy/base-picker/style/index.ts deleted file mode 100644 index 3d82a006ad..0000000000 --- a/src/legacy/base-picker/style/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -import '../../alert/style'; -import '../../search-bar/style'; -import '../../tab-nav/style'; -import '../../list/style'; -import '../../loading/style'; -import '../../empty/style'; -import './index.less'; diff --git a/src/legacy/breadcrumb/Breadcrumb.tsx b/src/legacy/breadcrumb/Breadcrumb.tsx deleted file mode 100644 index 38ff07c11b..0000000000 --- a/src/legacy/breadcrumb/Breadcrumb.tsx +++ /dev/null @@ -1,105 +0,0 @@ -/* eslint-disable @typescript-eslint/no-explicit-any */ -/* eslint-disable react/jsx-props-no-spreading */ -import React from 'react'; -import classNames from 'classnames'; -import toArray from 'rc-util/lib/Children/toArray'; -import { usePrefixCls } from '@gio-design/utils'; -import BreadcrumbItem from './BreadcrumbItem'; -import BreadcrumbSeparator from './BreadcrumbSeparator'; -import { cloneElement } from '../../utils/reactNode'; -import devWarning from '../../utils/devWarning'; -import { Route, BreadcrumbProps } from './interface'; - -function getBreadcrumbName(route: Route, params: any) { - if (!route.breadcrumbName) { - return null; - } - const paramsKeys = Object.keys(params).join('|'); - const name = route.breadcrumbName.replace( - new RegExp(`:(${paramsKeys})`, 'g'), - (replacement, key) => params[key] || replacement - ); - return name; -} - -function isLastItem(route: Route, routes: Route[]) { - return routes.indexOf(route) === routes.length - 1; -} - -function defaultItemRender(route: Route, params: any, routes: Route[], paths: string[]) { - const name = getBreadcrumbName(route, params); - return isLastItem(route, routes) ? {name} : {name}; -} - -const getPath = (path: string, params: any) => { - let result = (path || '').replace(/^\//, ''); - Object.keys(params).forEach((key) => { - result = result.replace(`:${key}`, params[key]); - }); - return result; -}; - -interface BreadcrumbInterface extends React.FC { - Item: typeof BreadcrumbItem; - Separator: typeof BreadcrumbSeparator; -} - -export const Breadcrumb: BreadcrumbInterface = ({ - prefixCls: customizePrefixCls, - separator = '/', - style, - className, - routes, - children, - itemRender = defaultItemRender, - params = {}, - ...restProps -}: BreadcrumbProps) => { - let crumbs; - const prefixCls = usePrefixCls('breadcrumb-legacy', customizePrefixCls); - if (routes && routes.length > 0) { - const paths: string[] = []; - crumbs = routes.map((route: Route) => { - const path = getPath(route.path, params); - - if (path) { - paths.push(path); - } - return ( - - {itemRender(route, params, routes, paths)} - - ); - }); - } else if (children) { - crumbs = toArray(children).map((element: any, index) => { - if (!element) { - return element; - } - - devWarning( - element.type && (element.type.GIO_BREADCRUMB_ITEM === true || element.type.GIO_BREADCRUMB_SEPARATOR === true), - 'Breadcrumb', - "Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children" - ); - - return cloneElement(element, { - separator, - key: index, - }); - }); - } - return ( -
- {crumbs} -
- ); -}; - -Breadcrumb.Item = BreadcrumbItem; - -Breadcrumb.Separator = BreadcrumbSeparator; - -export { BreadcrumbItem, BreadcrumbSeparator }; - -export default Breadcrumb; diff --git a/src/legacy/breadcrumb/BreadcrumbItem.tsx b/src/legacy/breadcrumb/BreadcrumbItem.tsx deleted file mode 100644 index 36b43439ed..0000000000 --- a/src/legacy/breadcrumb/BreadcrumbItem.tsx +++ /dev/null @@ -1,39 +0,0 @@ -/* eslint-disable react/jsx-props-no-spreading */ -import React from 'react'; -import classnames from 'classnames'; -import { usePrefixCls } from '@gio-design/utils'; -import BreadcrumbSeparator from './BreadcrumbSeparator'; -import { BreadcrumbItemProps } from './interface'; - -interface BreadcrumbItemInterface extends React.FC { - GIO_BREADCRUMB_ITEM: boolean; -} - -const BreadcrumbItem: BreadcrumbItemInterface = (props: BreadcrumbItemProps) => { - const { children, separator, ...restProps } = props; - const prefixCls = usePrefixCls('breadcrumb-legacy'); - const link = - 'href' in restProps ? ( - - {children} - - ) : ( - - {children} - - ); - - if (children) { - return ( - - {link} - {separator && separator !== '' && } - - ); - } - return null; -}; - -BreadcrumbItem.GIO_BREADCRUMB_ITEM = true; - -export default BreadcrumbItem; diff --git a/src/legacy/breadcrumb/BreadcrumbSeparator.tsx b/src/legacy/breadcrumb/BreadcrumbSeparator.tsx deleted file mode 100644 index e9db582955..0000000000 --- a/src/legacy/breadcrumb/BreadcrumbSeparator.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import React from 'react'; -import { usePrefixCls } from '@gio-design/utils'; -import { BreadcrumbSeparatorProps } from './interface'; - -interface BreadcrumbSeparatorInterface extends React.FC { - GIO_BREADCRUMB_SEPARATOR: boolean; -} - -const BreadcrumbSeparator: BreadcrumbSeparatorInterface = (props: BreadcrumbSeparatorProps) => { - const { separator } = props; - const prefixCls = usePrefixCls('breadcrumb-legacy'); - return {separator}; -}; - -BreadcrumbSeparator.GIO_BREADCRUMB_SEPARATOR = true; -export default BreadcrumbSeparator; diff --git a/src/legacy/breadcrumb/demos/Breadcrumb.stories.tsx b/src/legacy/breadcrumb/demos/Breadcrumb.stories.tsx deleted file mode 100644 index 242dd4db68..0000000000 --- a/src/legacy/breadcrumb/demos/Breadcrumb.stories.tsx +++ /dev/null @@ -1,52 +0,0 @@ -import React from 'react'; -import { Story, Meta } from '@storybook/react/types-6-0'; -import { withDesign } from 'storybook-addon-designs'; -import Docs from './BreadcrumbPage'; -import Breadcrumb from '../index'; -import { BreadcrumbProps } from '../interface'; -import '../style'; - -export default { - title: 'Legacy/Breadcrumb', - component: Breadcrumb, - decorators: [withDesign], - parameters: { - design: { - type: 'figma', - url: 'https://www.figma.com/file/kP3A6S2fLUGVVMBgDuUx0f/GrowingIO-Design-Components?node-id=1108%3A3874', - allowFullscreen: true, - }, - docs: { - page: Docs, - }, - }, - argTypes: { - separator: { - control: { type: 'text' }, - }, - }, -} as Meta; - -const Template: Story = (args) => ; - -export const Default = Template.bind({}); -Default.args = { - routes: [ - { - path: '?path=/story/basic-legacy-breadcrumb--default', - breadcrumbName: '首页', - }, - { - path: '#', - breadcrumbName: '一级面包屑', - }, - { - path: '##', - breadcrumbName: '二级面包屑', - }, - { - path: '###', - breadcrumbName: '三级面包屑', - }, - ], -}; diff --git a/src/legacy/breadcrumb/demos/BreadcrumbPage.tsx b/src/legacy/breadcrumb/demos/BreadcrumbPage.tsx deleted file mode 100644 index 9508b8ebd2..0000000000 --- a/src/legacy/breadcrumb/demos/BreadcrumbPage.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import React from 'react'; -import { Canvas, Title, Heading, Story, Subheading, ArgsTable } from '@storybook/addon-docs'; -import { useIntl } from 'react-intl'; -import Breadcrumb from '../index'; - -export default function BreadcrumbPage() { - const { formatMessage } = useIntl(); - - return ( - <> - {formatMessage({ defaultMessage: 'Breadcrumb 面包屑' })} - {formatMessage({ defaultMessage: '代码演示' })} - - {formatMessage({ defaultMessage: '默认' })} - - - - - {formatMessage({ defaultMessage: '参数说明' })} - - - ); -} diff --git a/src/legacy/breadcrumb/index.ts b/src/legacy/breadcrumb/index.ts deleted file mode 100644 index ce4cb1ad55..0000000000 --- a/src/legacy/breadcrumb/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -import Breadcrumb from './Breadcrumb'; - -export { BreadcrumbProps, BreadcrumbItemProps } from './interface'; - -export { BreadcrumbItem, BreadcrumbSeparator } from './Breadcrumb'; - -export default Breadcrumb; diff --git a/src/legacy/breadcrumb/interface.ts b/src/legacy/breadcrumb/interface.ts deleted file mode 100644 index da7d2c5025..0000000000 --- a/src/legacy/breadcrumb/interface.ts +++ /dev/null @@ -1,60 +0,0 @@ -export interface BreadcrumbSeparatorProps { - /** - * 自定义分隔符 - */ - separator?: React.ReactNode; -} - -export interface BreadcrumbItemProps { - /** - * 自定义分隔符 - */ - separator?: React.ReactNode; - /** - * 链接的目的地 - */ - href?: string; - /** - * 单击事件回调函数 - */ - onClick?: React.MouseEventHandler; - children?: React.ReactNode; -} - -export interface Route { - path: string; - breadcrumbName: string; - children?: Omit[]; -} - -export interface BreadcrumbProps { - /** - * 自定义className前缀 - */ - prefixCls?: string; - /** - * router 的路由栈信息 - */ - routes?: Route[]; - /** - * 路由的参数 - */ - params?: any; - /** - * 自定义样式 - */ - style?: React.CSSProperties; - /** - * 自定义分隔符 - */ - separator?: React.ReactNode; - /** - * 自定义className - */ - className?: string; - /** - * 自定义链接函数,和 react-router 配置使用 - */ - itemRender?: (route: Route, params: any, routes: Array, paths: Array) => React.ReactNode; - children?: React.ReactNode; -} diff --git a/src/legacy/breadcrumb/style/index.less b/src/legacy/breadcrumb/style/index.less deleted file mode 100644 index 468f865f7e..0000000000 --- a/src/legacy/breadcrumb/style/index.less +++ /dev/null @@ -1,49 +0,0 @@ -@import '../../../stylesheet/index.less'; - -@breadcrumb-prefix-cls-legacy: ~'@{component-prefix}-breadcrumb-legacy'; - -.@{breadcrumb-prefix-cls-legacy} { - display: flex; - align-items: center; - height: 22px; - color: @color-text-breadcrumb-normal; - font-size: 14px; - - &-item.@{breadcrumb-prefix-cls-legacy}-item-link { - .@{breadcrumb-prefix-cls-legacy}-item-link-target { - cursor: pointer; - - &:hover { - color: @color-text-breadcrumb-hover; - } - - &:active { - color: @color-text-breadcrumb-click; - } - } - } - - a { - color: @color-text-breadcrumb-normal; - text-decoration: none; - - &:hover { - color: @color-text-breadcrumb-hover; - } - - &:active { - color: @color-text-breadcrumb-click; - } - } - - &-separator { - display: inline-block; - box-sizing: content-box; - width: 14px; - padding: 0 8px; - text-align: center; - } - & > span:last-child &-separator { - display: none; - } -} diff --git a/src/legacy/breadcrumb/style/index.ts b/src/legacy/breadcrumb/style/index.ts deleted file mode 100644 index d74e52ee9f..0000000000 --- a/src/legacy/breadcrumb/style/index.ts +++ /dev/null @@ -1 +0,0 @@ -import './index.less'; diff --git a/src/legacy/button/Button.tsx b/src/legacy/button/Button.tsx deleted file mode 100644 index b296a93599..0000000000 --- a/src/legacy/button/Button.tsx +++ /dev/null @@ -1,169 +0,0 @@ -/* eslint-disable react/jsx-props-no-spreading */ -import * as React from 'react'; -import classNames from 'classnames'; -import { LoadingTwoTone } from '@gio-design/icons'; -import { usePrefixCls } from '@gio-design/utils'; -import { ButtonProps } from './interface'; -import { cloneElement } from '../../utils/reactNode'; -import useSize from '../../utils/hooks/useSize'; - -const rxTwoCNChar = /^[\u4e00-\u9fa5]{2}$/; -const isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar); - -function isString(str: unknown) { - return typeof str === 'string'; -} - -function insertSpace(child: React.ReactChild, needInserted: boolean) { - if (child === null || child === undefined) { - return null; - } - const SPACE = needInserted ? ' ' : ''; - if ( - typeof child !== 'string' && - typeof child !== 'number' && - isString(child.type) && - isTwoCNChar(child.props.children) - ) { - return cloneElement(child, { - children: child.props.children.split('').join(SPACE), - }); - } - if (typeof child === 'string') { - if (isTwoCNChar(child)) { - return {child.split('').join(SPACE)}; - } - return {child}; - } - return child; -} - -function spaceChildren(children: React.ReactNode, needInserted: boolean) { - let isPrevChildPure = false; - const childList: React.ReactNode[] = []; - React.Children.forEach(children, (child) => { - const type = typeof child; - const isCurrentChildPure = type === 'string' || type === 'number'; - if (isPrevChildPure && isCurrentChildPure) { - const lastIndex = childList.length - 1; - const lastChild = childList[lastIndex]; - childList[lastIndex] = `${lastChild}${child}`; - } else { - childList.push(child); - } - - isPrevChildPure = isCurrentChildPure; - }); - - return React.Children.map(childList, (child) => insertSpace(child as React.ReactChild, needInserted)); -} - -interface CompoundedComponent extends React.ForwardRefExoticComponent> { - __GIO_BUTTON: boolean; -} - -const InternalButton: React.ForwardRefRenderFunction = (props, ref) => { - const { - loading, - prefixCls: customizePrefixCls, - type = 'primary', - size: customizeSize, - className, - children, - icon, - block, - mini, - autoInsertSpace = true, - ...rest - } = props; - - const size = useSize(); - const [innerLoading, setLoading] = React.useState(loading); - const [hasTwoCNChar, setHasTwoCNChar] = React.useState(false); - const prefixCls = usePrefixCls('btn-legacy', customizePrefixCls); - const buttonRef = (ref as any) || React.createRef(); - - const isNeedInserted = () => React.Children.count(children) === 1 && !icon; - - const fixTwoCNChar = () => { - if (!buttonRef || !buttonRef.current || autoInsertSpace === false) { - return; - } - const buttonText = buttonRef.current.textContent; - - if (isNeedInserted() && isTwoCNChar(buttonText)) { - if (!hasTwoCNChar) { - setHasTwoCNChar(true); - } - } else if (hasTwoCNChar) { - setHasTwoCNChar(false); - } - }; - - React.useEffect(() => { - setLoading(loading); - }, [loading]); - - React.useEffect(() => { - fixTwoCNChar(); - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [buttonRef]); - - const handleClick = (e: React.MouseEvent) => { - const { onClick } = props; - if (innerLoading) { - return; - } - if (onClick) { - (onClick as React.MouseEventHandler)(e); - } - }; - - const iconType = innerLoading ? 'loading' : icon; - const sizeCls = mini && !!(!children && children !== 0 && iconType) ? 'mini' : customizeSize || size; - - const classes = classNames(prefixCls, className, { - [`${prefixCls}-${type}`]: type, - [`${prefixCls}-${sizeCls}`]: sizeCls, - [`${prefixCls}-icon-only`]: !children && children !== 0 && iconType, - [`${prefixCls}-loading`]: innerLoading, - [`${prefixCls}-two-chinese-chars`]: hasTwoCNChar && autoInsertSpace, - [`${prefixCls}-block`]: block, - }); - - let iconNode = null; - - if (icon && !innerLoading) { - iconNode = icon; - } else if (innerLoading) { - iconNode = ; - } - - const kids = children || children === 0 ? spaceChildren(children, isNeedInserted() && autoInsertSpace) : null; - - const { htmlType, ...otherProps } = rest; - const buttonNode = ( - // eslint-disable-next-line react/button-has-type - - ); - - return buttonNode; -}; - -export const Button = React.forwardRef(InternalButton) as CompoundedComponent; - -Button.defaultProps = { - loading: false, - block: false, - htmlType: 'button' as ButtonProps['htmlType'], -}; - -Button.displayName = 'Button'; - -// eslint-disable-next-line no-underscore-dangle -Button.__GIO_BUTTON = true; - -export default Button; diff --git a/src/legacy/button/demos/Button.stories.tsx b/src/legacy/button/demos/Button.stories.tsx deleted file mode 100644 index 2bc5ca326d..0000000000 --- a/src/legacy/button/demos/Button.stories.tsx +++ /dev/null @@ -1,98 +0,0 @@ -import React from 'react'; -import { Story, Meta } from '@storybook/react/types-6-0'; -import { PlusCircleFilled, FilterOutlined } from '@gio-design/icons'; -import { withDesign } from 'storybook-addon-designs'; -import Docs from './ButtonPage'; -import Button from '../index'; -import { ButtonProps } from '../interface'; -import '../style'; - -export default { - title: 'Legacy/Button', - component: Button, - decorators: [withDesign], - parameters: { - design: { - type: 'figma', - url: 'https://www.figma.com/file/kP3A6S2fLUGVVMBgDuUx0f/GrowingIO-Design-Components?node-id=1%3A1097', - allowFullscreen: true, - }, - docs: { - page: Docs, - }, - }, - args: { - type: 'primary', - size: 'middle', - }, -} as Meta; - -const Wrapper = (props: { children?: React.ReactNode }) => { - const { children } = props; - return
{children}
; -}; - -const Template: Story = (args) => ( - -