├── src ├── Template │ ├── index.scss │ ├── __test__ │ │ ├── __snapshots__ │ │ │ └── index.test.tsx.snap │ │ └── index.test.tsx │ ├── type.ts │ └── index.tsx ├── BackTop │ ├── index.scss │ ├── __test__ │ │ ├── index.test.tsx │ │ └── __snapshots__ │ │ │ └── index.test.tsx.snap │ ├── type.ts │ └── index.tsx ├── Dialog │ ├── __test__ │ │ ├── __snapshots__ │ │ │ └── index.test.tsx.snap │ │ └── index.test.tsx │ └── type.ts ├── Drawer │ ├── __test__ │ │ ├── __snapshots__ │ │ │ └── index.test.tsx.snap │ │ └── index.test.tsx │ └── type.ts ├── Divider │ ├── __test__ │ │ ├── __snapshots__ │ │ │ └── index.test.tsx.snap │ │ └── index.test.tsx │ ├── type.ts │ ├── index.tsx │ ├── index.scss │ └── index.md ├── Icon │ ├── __test__ │ │ ├── __snapshots__ │ │ │ └── index.test.tsx.snap │ │ └── index.test.tsx │ ├── type.ts │ └── index.tsx ├── Tag │ ├── __test__ │ │ ├── __snapshots__ │ │ │ └── index.test.tsx.snap │ │ └── index.test.tsx │ ├── type.ts │ └── index.tsx ├── Popup │ ├── __test__ │ │ ├── __snapshots__ │ │ │ └── index.test.tsx.snap │ │ └── index.test.tsx │ └── Portal.tsx ├── Dropdown │ └── __test__ │ │ └── __snapshots__ │ │ └── index.test.tsx.snap ├── Pagination │ ├── __test__ │ │ └── index.test.tsx │ ├── PaginationSelect.tsx │ ├── type.ts │ ├── index.scss │ └── index.md ├── Button │ ├── __test__ │ │ ├── __snapshots__ │ │ │ └── index.test.tsx.snap │ │ └── index.test.tsx │ ├── type.ts │ └── index.tsx ├── Message │ ├── __test__ │ │ ├── __snapshots__ │ │ │ └── index.test.tsx.snap │ │ └── index.test.tsx │ ├── MessageList.tsx │ ├── Message.tsx │ └── type.ts ├── Textarea │ ├── __test__ │ │ └── __snapshots__ │ │ │ └── index.test.tsx.snap │ └── type.ts ├── Popover │ ├── __test__ │ │ ├── __snapshots__ │ │ │ └── index.test.tsx.snap │ │ └── index.test.tsx │ └── type.ts ├── Switch │ ├── __test__ │ │ ├── __snapshots__ │ │ │ └── index.test.tsx.snap │ │ └── index.test.tsx │ └── type.ts ├── Badge │ ├── __test__ │ │ ├── __snapshots__ │ │ │ └── index.test.tsx.snap │ │ └── index.test.tsx │ ├── type.ts │ ├── index.scss │ └── index.tsx ├── hooks │ ├── useHasParent.ts │ ├── useContainer.ts │ └── useDefault.ts ├── Loading │ ├── index.scss │ ├── __test__ │ │ ├── __snapshots__ │ │ │ └── index.test.tsx.snap │ │ └── index.test.tsx │ ├── type.ts │ └── index.tsx ├── Layout │ ├── index.scss │ ├── LayoutContent.tsx │ ├── LayoutFooter.tsx │ ├── LayoutHeader.tsx │ ├── LayoutAside.tsx │ ├── __test__ │ │ ├── __snapshots__ │ │ │ └── index.test.tsx.snap │ │ └── index.test.tsx │ ├── type.ts │ └── index.tsx ├── ColorPicker │ ├── __test__ │ │ ├── __snapshots__ │ │ │ └── index.test.tsx.snap │ │ └── index.test.tsx │ ├── ColorItem.tsx │ ├── ColorCursor.tsx │ └── type.ts ├── Scrollbar │ ├── type.ts │ ├── __test__ │ │ ├── index.test.tsx │ │ └── __snapshots__ │ │ │ └── index.test.tsx.snap │ └── index.scss ├── Avatar │ ├── __test__ │ │ ├── __snapshots__ │ │ │ └── index.test.tsx.snap │ │ └── index.test.tsx │ ├── type.ts │ ├── AvatarGroup.tsx │ └── index.tsx ├── Empty │ ├── __test__ │ │ └── index.test.tsx │ ├── type.ts │ ├── index.scss │ └── index.md ├── Radio │ ├── __test__ │ │ └── __snapshots__ │ │ │ └── index.test.tsx.snap │ ├── type.ts │ └── RadioGroup.tsx ├── Checkbox │ ├── __test__ │ │ └── __snapshots__ │ │ │ └── index.test.tsx.snap │ └── type.ts ├── Notification │ ├── __test__ │ │ ├── __snapshots__ │ │ │ └── index.test.tsx.snap │ │ └── index.test.tsx │ ├── NotificationList.tsx │ └── Notification.tsx ├── Image │ ├── __test__ │ │ ├── index.test.tsx │ │ └── __snapshots__ │ │ │ └── index.test.tsx.snap │ ├── type.ts │ └── index.md ├── Upload │ ├── type.ts │ ├── __test__ │ │ ├── index.test.tsx │ │ └── __snapshots__ │ │ │ └── index.test.tsx.snap │ ├── index.scss │ └── index.md ├── Alert │ ├── type.ts │ ├── __test__ │ │ ├── index.test.tsx │ │ └── __snapshots__ │ │ │ └── index.test.tsx.snap │ ├── index.tsx │ └── index.scss ├── Grid │ ├── __test__ │ │ ├── index.test.tsx │ │ └── __snapshots__ │ │ │ └── index.test.tsx.snap │ ├── index.tsx │ ├── type.ts │ ├── GridItem.tsx │ └── index.scss ├── Rate │ ├── index.scss │ ├── __test__ │ │ └── __snapshots__ │ │ │ └── index.test.tsx.snap │ └── type.ts ├── Carousel │ ├── __test__ │ │ ├── index.test.tsx │ │ └── __snapshots__ │ │ │ └── index.test.tsx.snap │ └── CarouselNavigation.tsx ├── Collapse │ └── __test__ │ │ └── index.test.tsx ├── Select │ ├── __test__ │ │ └── __snapshots__ │ │ │ └── index.test.tsx.snap │ ├── index.scss │ └── type.ts ├── DatePicker │ ├── __test__ │ │ ├── __snapshots__ │ │ │ └── index.test.tsx.snap │ │ └── index.test.tsx │ ├── DateHeaderBtn.tsx │ └── type.ts ├── Table │ ├── TableHead.tsx │ ├── index.tsx │ ├── ColumnGroup.tsx │ ├── TableBody.tsx │ ├── type.ts │ └── index.scss ├── Tabs │ ├── __test__ │ │ └── __snapshots__ │ │ │ └── index.test.tsx.snap │ ├── TabsItem.tsx │ ├── index.scss │ └── type.ts ├── Transition │ └── index.tsx ├── Breadcrumb │ ├── type.ts │ ├── index.tsx │ ├── index.scss │ ├── __test__ │ │ ├── __snapshots__ │ │ │ └── index.test.tsx.snap │ │ └── index.test.tsx │ └── BreadcrumbItem.tsx ├── Menu │ ├── MenuItem.tsx │ └── type.ts ├── TimePicker │ ├── __test__ │ │ └── index.test.tsx │ └── index.scss ├── Input │ ├── __test__ │ │ └── __snapshots__ │ │ │ └── index.test.tsx.snap │ └── resize.svg ├── Progress │ ├── type.ts │ ├── index.scss │ └── __test__ │ │ ├── __snapshots__ │ │ └── index.test.tsx.snap │ │ └── index.test.tsx ├── Steps │ ├── type.ts │ ├── StepsItem.tsx │ ├── index.tsx │ └── __test__ │ │ └── __snapshots__ │ │ └── index.test.tsx.snap └── Slider │ ├── __test__ │ ├── index.test.tsx │ └── __snapshots__ │ │ └── index.test.tsx.snap │ ├── index.scss │ ├── type.ts │ └── SliderBtn.tsx ├── docusaurus ├── static │ ├── .nojekyll │ └── img │ │ └── favicon.ico ├── docs │ ├── 01-基础组件 │ │ ├── _category_.json │ │ ├── Icon.md │ │ └── Divider.md │ ├── 02-布局 │ │ └── _category_.json │ ├── 03-导航 │ │ ├── _category_.json │ │ └── BackTop.md │ ├── 04-数据录入 │ │ └── _category_.json │ ├── 05-数据展示 │ │ └── _category_.json │ └── 06-反馈 │ │ └── _category_.json ├── babel.config.js ├── src │ └── theme │ │ └── ReactLiveScope │ │ └── index.js ├── sidebars.js ├── README.md ├── LICENSE └── package.json ├── file.mock.js ├── jest-setup.js ├── .fatherrc.ts ├── .prettierrc.js ├── typings.d.ts ├── public └── images │ ├── logo.ico │ └── logo.svg ├── .prettierignore ├── docs ├── images.d.ts ├── guide.md ├── assets │ └── logo.svg └── index.md ├── babel.config.cjs ├── tsconfig.json ├── .editorconfig ├── .umirc.ts └── LICENSE.txt /src/Template/index.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docusaurus/static/.nojekyll: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /file.mock.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; -------------------------------------------------------------------------------- /jest-setup.js: -------------------------------------------------------------------------------- 1 | import '@testing-library/jest-dom' -------------------------------------------------------------------------------- /.fatherrc.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | esm: 'rollup', 3 | }; 4 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = require('@umijs/fabric').prettier; 2 | -------------------------------------------------------------------------------- /typings.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.css'; 2 | declare module '*.less'; 3 | declare module '*.json'; 4 | -------------------------------------------------------------------------------- /docusaurus/docs/01-基础组件/_category_.json: -------------------------------------------------------------------------------- 1 | { 2 | "collapsible": true, 3 | "collapsed": false 4 | } -------------------------------------------------------------------------------- /docusaurus/docs/02-布局/_category_.json: -------------------------------------------------------------------------------- 1 | { 2 | "collapsible": true, 3 | "collapsed": false 4 | } -------------------------------------------------------------------------------- /docusaurus/docs/03-导航/_category_.json: -------------------------------------------------------------------------------- 1 | { 2 | "collapsible": true, 3 | "collapsed": false 4 | } -------------------------------------------------------------------------------- /docusaurus/docs/04-数据录入/_category_.json: -------------------------------------------------------------------------------- 1 | { 2 | "collapsible": true, 3 | "collapsed": false 4 | } -------------------------------------------------------------------------------- /docusaurus/docs/05-数据展示/_category_.json: -------------------------------------------------------------------------------- 1 | { 2 | "collapsible": true, 3 | "collapsed": false 4 | } -------------------------------------------------------------------------------- /docusaurus/docs/06-反馈/_category_.json: -------------------------------------------------------------------------------- 1 | { 2 | "collapsible": true, 3 | "collapsed": false 4 | } -------------------------------------------------------------------------------- /public/images/logo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leophen/idesign-react/HEAD/public/images/logo.ico -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | **/*.svg 2 | **/*.ejs 3 | **/*.html 4 | package.json 5 | .umi 6 | .umi-production 7 | .umi-test 8 | -------------------------------------------------------------------------------- /docusaurus/static/img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Leophen/idesign-react/HEAD/docusaurus/static/img/favicon.ico -------------------------------------------------------------------------------- /docusaurus/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [require.resolve('@docusaurus/core/lib/babel/preset')], 3 | }; 4 | -------------------------------------------------------------------------------- /src/BackTop/index.scss: -------------------------------------------------------------------------------- 1 | .i-back-top--button { 2 | width: 32px; 3 | padding: 0; 4 | .i-icon { 5 | color: #fff; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/Dialog/__test__/__snapshots__/index.test.tsx.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`Dialog 组件测试 create 1`] = ``; 4 | -------------------------------------------------------------------------------- /src/Drawer/__test__/__snapshots__/index.test.tsx.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`Drawer 组件测试 create 1`] = ``; 4 | -------------------------------------------------------------------------------- /docs/images.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.svg'; 2 | declare module '*.png'; 3 | declare module '*.jpg'; 4 | declare module '*.jpeg'; 5 | declare module '*.gif'; 6 | declare module '*.bmp'; 7 | declare module '*.tiff'; 8 | -------------------------------------------------------------------------------- /babel.config.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | ['@babel/preset-env', { targets: { node: 'current' } }], 4 | '@babel/preset-typescript', 5 | ['@babel/preset-react', { runtime: 'automatic' }], 6 | ], 7 | }; -------------------------------------------------------------------------------- /src/Divider/__test__/__snapshots__/index.test.tsx.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`Divider 组件测试 create 1`] = ` 4 | 5 |
8 | 9 | `; 10 | -------------------------------------------------------------------------------- /src/Icon/__test__/__snapshots__/index.test.tsx.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`Icon 组件测试 create 1`] = ` 4 | 5 | 8 | 9 | `; 10 | -------------------------------------------------------------------------------- /src/Template/__test__/__snapshots__/index.test.tsx.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`Template 组件测试 create 1`] = ` 4 | 5 |
8 | 9 | `; 10 | -------------------------------------------------------------------------------- /src/Template/type.ts: -------------------------------------------------------------------------------- 1 | export interface TemplateProps { 2 | /** 3 | * 类名 4 | */ 5 | className?: string; 6 | /** 7 | * 内容 8 | */ 9 | children?: React.ReactNode; 10 | /** 11 | * 自定义样式 12 | */ 13 | style?: React.CSSProperties; 14 | } 15 | -------------------------------------------------------------------------------- /docusaurus/src/theme/ReactLiveScope/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import * as iDesignComponents from 'idesign-react' 3 | 4 | const ReactLiveScope = { 5 | React, 6 | ...React, 7 | ...iDesignComponents 8 | }; 9 | 10 | export default ReactLiveScope; 11 | -------------------------------------------------------------------------------- /src/Tag/__test__/__snapshots__/index.test.tsx.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`Tag 组件测试 create 1`] = ` 4 | 5 |
8 | 标签 9 |
10 |
11 | `; 12 | -------------------------------------------------------------------------------- /src/Popup/__test__/__snapshots__/index.test.tsx.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`Popup 组件测试 create 1`] = ` 4 | 5 |
8 | 11 |
12 |
13 | `; 14 | -------------------------------------------------------------------------------- /src/Dropdown/__test__/__snapshots__/index.test.tsx.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`Dropdown 组件测试 create 1`] = ` 4 | 5 |
8 | 11 |
12 |
13 | `; 14 | -------------------------------------------------------------------------------- /src/Template/__test__/index.test.tsx: -------------------------------------------------------------------------------- 1 | import { render } from '@testing-library/react'; 2 | import Template from '../index'; 3 | 4 | describe('Template 组件测试', () => { 5 | it('create', () => { 6 | const { asFragment } = render(