diff --git a/docs/less/index.less b/docs/less/index.less index fdf2ad8d6..afe337120 100644 --- a/docs/less/index.less +++ b/docs/less/index.less @@ -6,7 +6,6 @@ @import '~@rsuite/document-nav/lib/less/index.less'; @import '~@rsuite/timezone-picker/lib/styles/index.less'; - /** Components **/ @import '../components/SearchDrawer/styles'; @import '../components/TopLevelNav/styles'; @@ -81,7 +80,7 @@ pre { background: rgb(0, 43, 54) !important; margin-bottom: 20px !important; - .rs-panel-heading { + .rs-panel-header { background: #06232c; border-radius: 6px; color: #fff; diff --git a/docs/less/markdown.less b/docs/less/markdown.less index b7e03ed24..c4aad888c 100644 --- a/docs/less/markdown.less +++ b/docs/less/markdown.less @@ -56,4 +56,17 @@ border-left: 5px solid @code-view-blockquote-color; opacity: 0.8; } + kbd { + box-sizing: border-box; + font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', + Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; + border-radius: 0.25em; + background-color: rgb(235, 235, 235); + padding: 0.2em 0.3em; + border-style: solid; + border-color: rgb(200, 200, 200); + border-image: initial; + border-width: 1px 1px 2px; + font-size: 0.875em; + } } diff --git a/docs/locales/en-US/index.ts b/docs/locales/en-US/index.ts index 79e5f3cd3..1e273d2cf 100644 --- a/docs/locales/en-US/index.ts +++ b/docs/locales/en-US/index.ts @@ -41,25 +41,7 @@ export default { copyFailed: "Copy the failure, the browser doesn't support this feature", shareTwitter: 'Share on Twitter' }, - table: { - 'tab.resizable': 'Resizable', - 'tab.fluid-column': 'Fluid', - 'tab.word-wrap': 'Word Wrap', - 'tab.custom-cell': 'Custom Cell', - 'tab.sort': 'Sort', - 'tab.pagination': 'Pagination', - 'tab.tree': 'Tree', - 'tab.expanded': 'Expandable', - 'tab.edit': 'Editable', - 'tab.loading': 'Loading', - 'tab.colspan': 'Colspan', - 'tab.summary': 'Summary', - 'tab.fixed': 'Fixed Column', - 'tab.auto-height': 'Auto Height', - 'tab.affix-header': 'Affix Header', - 'tab.affix-horizontal-scrollbar': 'Affix Horizontal Scrollbar', - 'tab.draggable': 'Draggable(with react-dnd)' - }, + palette: { title: 'Get the product color', step1: 'Upload the Logo of the product', diff --git a/docs/locales/zh-CN/index.ts b/docs/locales/zh-CN/index.ts index 948612992..22d98c581 100644 --- a/docs/locales/zh-CN/index.ts +++ b/docs/locales/zh-CN/index.ts @@ -40,25 +40,6 @@ export default { copyFailed: '复制失败,浏览器不支持此功能', shareTwitter: '分享到 Twitter' }, - table: { - 'tab.resizable': '可调整列宽', - 'tab.fluid-column': '流体列宽', - 'tab.word-wrap': '自动换行', - 'tab.custom-cell': '自定义列', - 'tab.sort': '排序', - 'tab.pagination': '分页', - 'tab.tree': '树形展示', - 'tab.expanded': '可展开', - 'tab.edit': '可编辑', - 'tab.loading': '加载中', - 'tab.colspan': '合并单元格', - 'tab.summary': '汇总', - 'tab.fixed': '锁定列', - 'tab.auto-height': '自动高度', - 'tab.affix-header': '固定表头在页首', - 'tab.affix-horizontal-scrollbar': '固定横向滚动条在页尾', - 'tab.draggable': '可拖拽(与 react-dnd 组合)' - }, palette: { title: '分析产品商标颜色', step1: '上传产品的 Logo', diff --git a/docs/package-lock.json b/docs/package-lock.json index a18795331..247028a00 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -1587,21 +1587,6 @@ "integrity": "sha512-9nKENeWRI6kQk44TbeqleIVtNLfcS3klVUepzl/ZCqzR5Bi06uqBCD277hdVvG/wL1pxA+R/pgJQLqnF5E2wPQ==", "dev": true }, - "@react-dnd/asap": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@react-dnd/asap/-/asap-4.0.0.tgz", - "integrity": "sha512-0XhqJSc6pPoNnf8DhdsPHtUhRzZALVzYMTzRwV4VI6DJNJ/5xxfL9OQUwb8IH5/2x7lSf7nAZrnzUD+16VyOVQ==" - }, - "@react-dnd/invariant": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@react-dnd/invariant/-/invariant-2.0.0.tgz", - "integrity": "sha512-xL4RCQBCBDJ+GRwKTFhGUW8GXa4yoDfJrPbLblc3U09ciS+9ZJXJ3Qrcs/x2IODOdIE5kQxvMmE2UKyqUictUw==" - }, - "@react-dnd/shallowequal": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@react-dnd/shallowequal/-/shallowequal-2.0.0.tgz", - "integrity": "sha512-Pc/AFTdwZwEKJxFJvlxrSmGe/di+aAOBn60sremrpLo6VI/6cmiUYNNwlI5KNYttg7uypzA3ILPMPgxB2GYZEg==" - }, "@rsuite/document-nav": { "version": "1.0.12", "resolved": "https://registry.npmjs.org/@rsuite/document-nav/-/document-nav-1.0.12.tgz", @@ -1808,15 +1793,6 @@ "@types/node": "*" } }, - "@types/hoist-non-react-statics": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz", - "integrity": "sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==", - "requires": { - "@types/react": "*", - "hoist-non-react-statics": "^3.3.0" - } - }, "@types/json-schema": { "version": "7.0.6", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.6.tgz", @@ -1850,7 +1826,8 @@ "@types/prop-types": { "version": "15.7.3", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz", - "integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==" + "integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==", + "dev": true }, "@types/q": { "version": "1.5.4", @@ -1861,6 +1838,7 @@ "version": "16.9.43", "resolved": "https://registry.npmjs.org/@types/react/-/react-16.9.43.tgz", "integrity": "sha512-PxshAFcnJqIWYpJbLPriClH53Z2WlJcVZE+NP2etUtWQs2s7yIMj3/LDKZT/5CHJ/F62iyjVCDu2H3jHEXIxSg==", + "dev": true, "requires": { "@types/prop-types": "*", "csstype": "^2.2.0" @@ -4033,7 +4011,8 @@ "csstype": { "version": "2.6.13", "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.13.tgz", - "integrity": "sha512-ul26pfSQTZW8dcOnD2iiJssfXw0gdNVX9IJDH/X3K5DGPfj+fUYe3kB+swUY6BF3oZDxaID3AJt+9/ojSAE05A==" + "integrity": "sha512-ul26pfSQTZW8dcOnD2iiJssfXw0gdNVX9IJDH/X3K5DGPfj+fUYe3kB+swUY6BF3oZDxaID3AJt+9/ojSAE05A==", + "dev": true }, "cyclist": { "version": "1.0.1", @@ -4221,16 +4200,6 @@ } } }, - "dnd-core": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/dnd-core/-/dnd-core-10.0.2.tgz", - "integrity": "sha512-PrxEjxF0+6Y1n1n1Z9hSWZ1tvnDXv9syL+BccV1r1RC08uWNsyetf8AnWmUF3NgYPwy0HKQJwTqGkZK+1NlaFA==", - "requires": { - "@react-dnd/asap": "^4.0.0", - "@react-dnd/invariant": "^2.0.0", - "redux": "^4.0.4" - } - }, "dns-equal": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", @@ -5740,14 +5709,6 @@ "minimalistic-crypto-utils": "^1.0.1" } }, - "hoist-non-react-statics": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", - "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", - "requires": { - "react-is": "^16.7.0" - } - }, "homedir-polyfill": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", @@ -9524,25 +9485,6 @@ "ua-parser-js": "^0.7.21" } }, - "react-dnd": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/react-dnd/-/react-dnd-10.0.2.tgz", - "integrity": "sha512-SC2Ymvntynhoqtf5zaFhZscm9xenCoMofilxPdlwUlaelAzmbl9fw82C4ZJ//+lNm3kWAKXjGDZg2/aWjKEAtg==", - "requires": { - "@react-dnd/shallowequal": "^2.0.0", - "@types/hoist-non-react-statics": "^3.3.1", - "dnd-core": "^10.0.2", - "hoist-non-react-statics": "^3.3.0" - } - }, - "react-dnd-html5-backend": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/react-dnd-html5-backend/-/react-dnd-html5-backend-10.0.2.tgz", - "integrity": "sha512-ny17gUdInZ6PIGXdzfwPhoztRdNVVvjoJMdG80hkDBamJBeUPuNF2Wv4D3uoQJLjXssX1+i9PhBqc7EpogClwQ==", - "requires": { - "dnd-core": "^10.0.2" - } - }, "react-dom": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.13.1.tgz", @@ -9818,15 +9760,6 @@ } } }, - "redux": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/redux/-/redux-4.0.5.tgz", - "integrity": "sha512-VSz1uMAH24DM6MF72vcojpYPtrTUu3ByVWfPL1nPfVRb5mZVTve5GnNCUV53QM/BZ66xfWrm0CTWoM+Xlz8V1w==", - "requires": { - "loose-envify": "^1.4.0", - "symbol-observable": "^1.2.0" - } - }, "reflect.ownkeys": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/reflect.ownkeys/-/reflect.ownkeys-0.2.0.tgz", diff --git a/docs/package.json b/docs/package.json index 08495235d..c507e0f7e 100644 --- a/docs/package.json +++ b/docs/package.json @@ -31,8 +31,6 @@ "react-code-view": "^1.2.5", "react-color": "^2.18.0", "react-device-detect": "^1.11.14", - "react-dnd": "^10.0.2", - "react-dnd-html5-backend": "^10.0.2", "react-dom": "^16.13.1", "react-json-tree": "^0.11.2", "react-loadable": "^5.5.0", diff --git a/docs/pages/components/css-reset/en-US/index.md b/docs/pages/components/css-reset/en-US/index.md index 79efb6654..b09d0c584 100644 --- a/docs/pages/components/css-reset/en-US/index.md +++ b/docs/pages/components/css-reset/en-US/index.md @@ -4,6 +4,42 @@ With regard to typography, after using the React Suite style, you can use the HT > If you don't need these styles , you can [disable import it][config-reset-import]. - +### ``: The Anchor element + +The HTML `` element (or anchor element), along with its href attribute, creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL. + +You can also implement a Link through the Button component. + + + +### `

`–`

`: The HTML Section Heading elements + +The following code shows all the heading levels, in use. + + + +### `

`: The Paragraph element + +The HTML `

` element represents a paragraph. Paragraphs are usually represented in visual media as blocks of text separated from adjacent blocks by blank lines and/or first-line indentation, but HTML paragraphs can be any structural grouping of related content, such as images or form fields. + + + +### `