From acd3fe58d251dc32f5f0b11a7ae19817ee18d4b8 Mon Sep 17 00:00:00 2001 From: xrk Date: Wed, 15 Jul 2020 23:36:40 +0800 Subject: [PATCH 01/18] docs: fix layout demo style (#25645) --- components/layout/demo/basic.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/components/layout/demo/basic.md b/components/layout/demo/basic.md index 5b3cd8cfab..404e28a7c9 100644 --- a/components/layout/demo/basic.md +++ b/components/layout/demo/basic.md @@ -92,10 +92,7 @@ ReactDOM.render( [data-theme="dark"] #components-layout-demo-basic .ant-layout-content { background: #107bcb; } -#components-layout-demo-basic > .code-box-demo > .ant-layout { - margin-bottom: 48px; -} -#components-layout-demo-basic > .code-box-demo > .ant-layout:last-child { - margin: 0; +#components-layout-demo-basic > .code-box-demo > .ant-layout + .ant-layout { + margin-top: 48px; } From c09028e9a21e7a5015297ff77de5799b379db35e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=96=E5=AE=B6?= Date: Thu, 16 Jul 2020 10:38:19 +0800 Subject: [PATCH 02/18] docs: umi hooks rename to ahooks (#25652) --- docs/react/recommendation.en-US.md | 2 +- docs/react/recommendation.zh-CN.md | 2 +- site/theme/template/Layout/Footer.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/react/recommendation.en-US.md b/docs/react/recommendation.en-US.md index 094f520f64..658fad03fc 100644 --- a/docs/react/recommendation.en-US.md +++ b/docs/react/recommendation.en-US.md @@ -8,7 +8,7 @@ title: Third-Party Libraries | Category | Recommended Components | | --- | --- | | Visualization and charts | [AntV Data Visualization](https://antv.vision/en) [🔥 AntV Charting Library](https://g2plot.antv.vision/en) [BizCharts](https://github.com/alibaba/BizCharts) [recharts](https://github.com/recharts/recharts/) [viser](https://viserjs.github.io/) | -| React Hooks Library | [umi-hooks](https://github.com/umijs/hooks) | +| React Hooks Library | [ahooks](https://github.com/alibaba/hooks) | | Router | [react-router](https://github.com/ReactTraining/react-router) | | Layout | [@rebass/grid](https://github.com/rebassjs/grid) [react-blocks](http://whoisandy.github.io/react-blocks/) [react-flexbox-grid](https://github.com/roylee0704/react-flexbox-grid) | | Drag and drop | [react-beautiful-dnd](https://github.com/atlassian/react-beautiful-dnd/) [react-dnd](https://github.com/gaearon/react-dnd) [react-sortable-hoc](https://github.com/clauderic/react-sortable-hoc) | diff --git a/docs/react/recommendation.zh-CN.md b/docs/react/recommendation.zh-CN.md index aa227454e2..71f7d9d7c3 100644 --- a/docs/react/recommendation.zh-CN.md +++ b/docs/react/recommendation.zh-CN.md @@ -8,7 +8,7 @@ title: 社区精选组件 | 类型 | 推荐组件 | | --- | --- | | 可视化图表 | [AntV 数据可视化解决方案](https://antv.vision/zh) [🔥 AntV 图表库](https://g2plot.antv.vision/zh) [BizCharts](https://github.com/alibaba/BizCharts) [recharts](https://github.com/recharts/recharts/) [viser](https://viserjs.github.io/) | -| React Hooks 库 | [umi-hooks](https://github.com/umijs/hooks) | +| React Hooks 库 | [ahooks](https://github.com/alibaba/hooks) | | 路由 | [react-router](https://github.com/ReactTraining/react-router) | | 布局 | [@rebass/grid](https://github.com/rebassjs/grid) [react-blocks](https://github.com/whoisandy/react-blocks) [react-flexbox-grid](https://github.com/roylee0704/react-flexbox-grid) | | 拖拽 | [react-beautiful-dnd](https://github.com/atlassian/react-beautiful-dnd/) [react-dnd](https://github.com/gaearon/react-dnd) [react-sortable-hoc](https://github.com/clauderic/react-sortable-hoc) | diff --git a/site/theme/template/Layout/Footer.tsx b/site/theme/template/Layout/Footer.tsx index f4c6509847..1aef2e3a27 100644 --- a/site/theme/template/Layout/Footer.tsx +++ b/site/theme/template/Layout/Footer.tsx @@ -115,9 +115,9 @@ class Footer extends React.Component { openExternal: true, }, { - title: 'Umi Hooks', + title: 'ahooks', description: , - url: 'https://github.com/umijs/hooks', + url: 'https://github.com/alibaba/hooks', openExternal: true, }, { From f5e66229c0c149be32916b5dfce4c29a1580cc63 Mon Sep 17 00:00:00 2001 From: Mirko Alic Date: Wed, 15 Jul 2020 23:49:01 -0300 Subject: [PATCH 03/18] docs: Add link to Zero config custom theme generator (#25651) Co-authored-by: tortugo --- docs/react/customize-theme.en-US.md | 1 + docs/react/customize-theme.zh-CN.md | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/react/customize-theme.en-US.md b/docs/react/customize-theme.en-US.md index 39392b5257..4b72aebbb4 100644 --- a/docs/react/customize-theme.en-US.md +++ b/docs/react/customize-theme.en-US.md @@ -220,3 +220,4 @@ module.exports = { - [Theming Ant Design with Sass and Webpack](https://gist.github.com/Kruemelkatze/057f01b8e15216ae707dc7e6c9061ef7) - [Using Sass/Scss with React App (create-react-app)](https://medium.com/@mzohaib.qc/using-sass-scss-with-react-app-create-react-app-d03072083ef8) - [Dynamic Theming in Browser using Ant Design](https://medium.com/@mzohaib.qc/ant-design-dynamic-runtime-theme-1f9a1a030ba0) +- [Zero config custom theme generator](https://www.npmjs.com/package/@emeks/antd-custom-theme-generator) diff --git a/docs/react/customize-theme.zh-CN.md b/docs/react/customize-theme.zh-CN.md index f930026c8c..57879a23ee 100644 --- a/docs/react/customize-theme.zh-CN.md +++ b/docs/react/customize-theme.zh-CN.md @@ -197,3 +197,4 @@ module.exports = { - [Theming Ant Design with Sass and Webpack](https://gist.github.com/Kruemelkatze/057f01b8e15216ae707dc7e6c9061ef7) - [Using Sass/Scss with React App (create-react-app)](https://medium.com/@mzohaib.qc/using-sass-scss-with-react-app-create-react-app-d03072083ef8) - [Dynamic Theming in Browser using Ant Design](https://medium.com/@mzohaib.qc/ant-design-dynamic-runtime-theme-1f9a1a030ba0) +- [Zero config custom theme generator](https://www.npmjs.com/package/@emeks/antd-custom-theme-generator) From 7bdd4fc1d75127037ba82d5d3a8f92be2a1c268d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Thu, 16 Jul 2020 12:07:59 +0800 Subject: [PATCH 04/18] fix: Layout trigger (#25653) * refactor: layout code * fix: Layout `trigger` could customize zero width trigger close #25433 --- components/layout/Sider.tsx | 23 +++++++++++++---------- components/layout/__tests__/index.test.js | 14 ++++++++++++++ 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/components/layout/Sider.tsx b/components/layout/Sider.tsx index 9847ff4649..0832ecce33 100644 --- a/components/layout/Sider.tsx +++ b/components/layout/Sider.tsx @@ -167,8 +167,10 @@ class InternalSider extends React.Component { width, collapsedWidth, zeroWidthTriggerStyle, + children, ...others } = this.props; + const { collapsed, below } = this.state; const prefixCls = getPrefixCls('layout-sider', customizePrefixCls); const divProps = omit(others, [ 'collapsed', @@ -179,7 +181,7 @@ class InternalSider extends React.Component { 'siderHook', 'zeroWidthTriggerStyle', ]); - const rawWidth = this.state.collapsed ? collapsedWidth : width; + const rawWidth = collapsed ? collapsedWidth : width; // use "px" as fallback unit for width const siderWidth = isNumeric(rawWidth) ? `${rawWidth}px` : String(rawWidth); // special trigger when collapsedWidth == 0 @@ -187,19 +189,20 @@ class InternalSider extends React.Component { parseFloat(String(collapsedWidth || 0)) === 0 ? ( - + {trigger || } ) : null; const iconObj = { expanded: reverseArrow ? : , collapsed: reverseArrow ? : , }; - const status = this.state.collapsed ? 'collapsed' : 'expanded'; + const status = collapsed ? 'collapsed' : 'expanded'; const defaultTrigger = iconObj[status]; const triggerDom = trigger !== null @@ -221,15 +224,15 @@ class InternalSider extends React.Component { width: siderWidth, }; const siderCls = classNames(className, prefixCls, `${prefixCls}-${theme}`, { - [`${prefixCls}-collapsed`]: !!this.state.collapsed, + [`${prefixCls}-collapsed`]: !!collapsed, [`${prefixCls}-has-trigger`]: collapsible && trigger !== null && !zeroWidthTrigger, - [`${prefixCls}-below`]: !!this.state.below, + [`${prefixCls}-below`]: !!below, [`${prefixCls}-zero-width`]: parseFloat(siderWidth) === 0, }); return ( ); }; diff --git a/components/layout/__tests__/index.test.js b/components/layout/__tests__/index.test.js index af29040976..6111273cf7 100644 --- a/components/layout/__tests__/index.test.js +++ b/components/layout/__tests__/index.test.js @@ -192,4 +192,18 @@ describe('Sider', () => { background: '#F96', }); }); + + it('should be able to customize zero width trigger by trigger prop', () => { + const wrapper = mount( + }> + + + + nav 1 + + + , + ); + expect(wrapper.find('.ant-layout-sider-zero-width-trigger').find('.my-trigger').length).toBe(1); + }); }); From 77ed923fba22eebbd0d7bcd13811b83bf5b66e5a Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 16 Jul 2020 13:46:57 +0800 Subject: [PATCH 05/18] docs: :clapper: import Modal demo --- .../__tests__/__snapshots__/demo.test.js.snap | 297 ++++++++++++++++++ components/modal/__tests__/demo.test.js | 3 + components/modal/demo/async.md | 4 +- components/modal/demo/basic.md | 4 +- components/modal/demo/button-props.md | 4 +- components/modal/demo/confirm-router.md | 7 +- components/modal/demo/dark.md | 64 ++-- components/modal/demo/footer.md | 4 +- components/modal/demo/hooks.md | 4 +- components/modal/demo/locale.md | 4 +- components/modal/demo/position.md | 4 +- 11 files changed, 354 insertions(+), 45 deletions(-) create mode 100644 components/modal/__tests__/__snapshots__/demo.test.js.snap create mode 100644 components/modal/__tests__/demo.test.js diff --git a/components/modal/__tests__/__snapshots__/demo.test.js.snap b/components/modal/__tests__/__snapshots__/demo.test.js.snap new file mode 100644 index 0000000000..6c3f75ff2f --- /dev/null +++ b/components/modal/__tests__/__snapshots__/demo.test.js.snap @@ -0,0 +1,297 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders ./components/modal/demo/async.md correctly 1`] = ` + +`; + +exports[`renders ./components/modal/demo/basic.md correctly 1`] = ` + +`; + +exports[`renders ./components/modal/demo/button-props.md correctly 1`] = ` + +`; + +exports[`renders ./components/modal/demo/confirm.md correctly 1`] = ` +
+
+ +
+
+ +
+
+ +
+
+ +
+
+`; + +exports[`renders ./components/modal/demo/confirm-router.md correctly 1`] = ` + +`; + +exports[`renders ./components/modal/demo/dark.md correctly 1`] = ` + +`; + +exports[`renders ./components/modal/demo/footer.md correctly 1`] = ` + +`; + +exports[`renders ./components/modal/demo/hooks.md correctly 1`] = ` +
+
+ +
+
+ +
+
+ +
+
+ +
+
+`; + +exports[`renders ./components/modal/demo/info.md correctly 1`] = ` +
+
+ +
+
+ +
+
+ +
+
+ +
+
+`; + +exports[`renders ./components/modal/demo/locale.md correctly 1`] = ` +
+ +
+ +
+`; + +exports[`renders ./components/modal/demo/manual.md correctly 1`] = ` + +`; + +exports[`renders ./components/modal/demo/position.md correctly 1`] = ` +Array [ + , +
, +
, + , +] +`; diff --git a/components/modal/__tests__/demo.test.js b/components/modal/__tests__/demo.test.js new file mode 100644 index 0000000000..65333d266b --- /dev/null +++ b/components/modal/__tests__/demo.test.js @@ -0,0 +1,3 @@ +import demoTest from '../../../tests/shared/demoTest'; + +demoTest('modal'); diff --git a/components/modal/demo/async.md b/components/modal/demo/async.md index e45a0abfbf..c30273e6b3 100644 --- a/components/modal/demo/async.md +++ b/components/modal/demo/async.md @@ -52,7 +52,7 @@ class App extends React.Component { render() { const { visible, confirmLoading, ModalText } = this.state; return ( -
+ <> @@ -65,7 +65,7 @@ class App extends React.Component { >

{ModalText}

-
+ ); } } diff --git a/components/modal/demo/basic.md b/components/modal/demo/basic.md index 0bce8d1522..504876bf5a 100644 --- a/components/modal/demo/basic.md +++ b/components/modal/demo/basic.md @@ -41,7 +41,7 @@ class App extends React.Component { render() { return ( -
+ <> @@ -55,7 +55,7 @@ class App extends React.Component {

Some contents...

Some contents...

-
+ ); } } diff --git a/components/modal/demo/button-props.md b/components/modal/demo/button-props.md index 39543dc0bd..aa5be2605f 100644 --- a/components/modal/demo/button-props.md +++ b/components/modal/demo/button-props.md @@ -41,7 +41,7 @@ class App extends React.Component { render() { return ( -
+ <> @@ -57,7 +57,7 @@ class App extends React.Component {

Some contents...

Some contents...

-
+ ); } } diff --git a/components/modal/demo/confirm-router.md b/components/modal/demo/confirm-router.md index b6486a9797..27c3fbde80 100644 --- a/components/modal/demo/confirm-router.md +++ b/components/modal/demo/confirm-router.md @@ -40,10 +40,5 @@ function showConfirm() { } } -ReactDOM.render( -
- -
, - mountNode, -); +ReactDOM.render(, mountNode); ``` diff --git a/components/modal/demo/dark.md b/components/modal/demo/dark.md index fd321486eb..f504857274 100644 --- a/components/modal/demo/dark.md +++ b/components/modal/demo/dark.md @@ -15,7 +15,25 @@ debug: true Basic modal. ```jsx -import { Modal, DatePicker, Slider, Tree, Badge, Collapse, Timeline, Tabs, Anchor, Table, Card, Button, Calendar, Transfer, Switch, Typography, Dropdown } from 'antd'; +import { + Modal, + DatePicker, + Slider, + Tree, + Badge, + Collapse, + Timeline, + Tabs, + Anchor, + Table, + Card, + Button, + Calendar, + Transfer, + Switch, + Typography, + Dropdown, +} from 'antd'; import moment from 'moment'; import difference from 'lodash/difference'; import { DownOutlined, ClockCircleOutlined } from '@ant-design/icons'; @@ -287,15 +305,15 @@ class App extends React.Component { showSearch: false, }; - handleDisable = (disabled) => { + handleDisable = disabled => { this.setState({ disabled, - }) - } + }); + }; handleTableTransferChange = nextTargetKeys => { this.setState({ targetKeys: nextTargetKeys }); - } + }; triggerDisable = disabled => { this.setState({ disabled }); @@ -305,7 +323,7 @@ class App extends React.Component { this.setState({ showSearch }); }; - handleTransferChange = (nextTargetKeys) => { + handleTransferChange = nextTargetKeys => { this.setState({ targetKeys: nextTargetKeys }); }; @@ -374,7 +392,7 @@ class App extends React.Component { }, ]; return ( -
+ <> @@ -391,11 +409,9 @@ class App extends React.Component { onChange={this.handleDisable} style={{ marginBottom: 16 }} /> - + Content - - Content - + Content Content Content Content @@ -470,7 +486,11 @@ class App extends React.Component { - + @@ -496,11 +516,7 @@ class App extends React.Component { Network problems being solved 2015-09-01 - } - defaultExpandedKeys={['0-0-0']} - > + } defaultExpandedKeys={['0-0-0']}> @@ -517,7 +533,7 @@ class App extends React.Component { 'Footer'} /> -

-
+
} + cover={ + example + } > @@ -573,7 +587,7 @@ class App extends React.Component { - + ); } } diff --git a/components/modal/demo/footer.md b/components/modal/demo/footer.md index 7542099883..b749c69346 100644 --- a/components/modal/demo/footer.md +++ b/components/modal/demo/footer.md @@ -46,7 +46,7 @@ class App extends React.Component { render() { const { visible, loading } = this.state; return ( -
+ <> @@ -70,7 +70,7 @@ class App extends React.Component {

Some contents...

Some contents...

-
+ ); } } diff --git a/components/modal/demo/hooks.md b/components/modal/demo/hooks.md index 268217b301..7b8d4246f4 100644 --- a/components/modal/demo/hooks.md +++ b/components/modal/demo/hooks.md @@ -22,11 +22,11 @@ const UnreachableContext = React.createContext(); const config = { title: 'Use Hook!', content: ( -
+ <> {name => `Reachable: ${name}!`}
{name => `Unreachable: ${name}!`} -
+ ), }; diff --git a/components/modal/demo/locale.md b/components/modal/demo/locale.md index 5bc8b08509..278ce3b86d 100644 --- a/components/modal/demo/locale.md +++ b/components/modal/demo/locale.md @@ -34,7 +34,7 @@ class LocalizedModal extends React.Component { render() { return ( -
+ <> @@ -50,7 +50,7 @@ class LocalizedModal extends React.Component {

Bla bla ...

Bla bla ...

-
+ ); } } diff --git a/components/modal/demo/position.md b/components/modal/demo/position.md index 6b10571097..1afbc0ead2 100644 --- a/components/modal/demo/position.md +++ b/components/modal/demo/position.md @@ -32,7 +32,7 @@ class App extends React.Component { render() { return ( -
+ <> @@ -63,7 +63,7 @@ class App extends React.Component {

some contents...

some contents...

-
+ ); } } From 8fa79d7eab33c3df0b083ab488adc6f5f5f03698 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Thu, 16 Jul 2020 14:02:00 +0800 Subject: [PATCH 06/18] :white_check_mark: update pagination snapshot (#25656) --- .../__snapshots__/components.test.js.snap | 48 +- .../__tests__/__snapshots__/demo.test.js.snap | 24 +- .../__snapshots__/pagination.test.js.snap | 24 +- .../__snapshots__/index.test.js.snap | 1064 ++++++++++++----- .../__tests__/__snapshots__/demo.test.js.snap | 312 +++-- .../__snapshots__/index.test.js.snap | 24 +- .../__snapshots__/Table.expand.test.js.snap | 4 +- .../Table.pagination.test.js.snap | 16 +- .../Table.rowSelection.test.js.snap | 24 +- .../__snapshots__/Table.sorter.test.js.snap | 4 +- .../__tests__/__snapshots__/demo.test.js.snap | 240 +++- .../__tests__/__snapshots__/demo.test.js.snap | 12 +- 12 files changed, 1346 insertions(+), 450 deletions(-) diff --git a/components/config-provider/__tests__/__snapshots__/components.test.js.snap b/components/config-provider/__tests__/__snapshots__/components.test.js.snap index fdd9964213..1fc006443d 100644 --- a/components/config-provider/__tests__/__snapshots__/components.test.js.snap +++ b/components/config-provider/__tests__/__snapshots__/components.test.js.snap @@ -16964,7 +16964,9 @@ exports[`ConfigProvider components Pagination configProvider 1`] = ` tabindex="0" title="0" > -
+ 0 @@ -17116,7 +17118,9 @@ exports[`ConfigProvider components Pagination configProvider 1`] = ` tabindex="0" title="0" > - + 0 @@ -17273,7 +17277,9 @@ exports[`ConfigProvider components Pagination configProvider componentSize large tabindex="0" title="0" > - + 0 @@ -17425,7 +17431,9 @@ exports[`ConfigProvider components Pagination configProvider componentSize large tabindex="0" title="0" > - + 0 @@ -17582,7 +17590,9 @@ exports[`ConfigProvider components Pagination configProvider componentSize middl tabindex="0" title="0" > - + 0 @@ -17734,7 +17744,9 @@ exports[`ConfigProvider components Pagination configProvider componentSize middl tabindex="0" title="0" > - + 0 @@ -17891,7 +17903,9 @@ exports[`ConfigProvider components Pagination configProvider virtual and dropdow tabindex="0" title="0" > - + 0 @@ -18043,7 +18057,9 @@ exports[`ConfigProvider components Pagination configProvider virtual and dropdow tabindex="0" title="0" > - + 0 @@ -18200,7 +18216,9 @@ exports[`ConfigProvider components Pagination normal 1`] = ` tabindex="0" title="0" > - + 0 @@ -18352,7 +18370,9 @@ exports[`ConfigProvider components Pagination normal 1`] = ` tabindex="0" title="0" > - + 0 @@ -18509,7 +18529,9 @@ exports[`ConfigProvider components Pagination prefixCls 1`] = ` tabindex="0" title="0" > - + 0 @@ -18661,7 +18683,9 @@ exports[`ConfigProvider components Pagination prefixCls 1`] = ` tabindex="0" title="0" > - + 0 diff --git a/components/list/__tests__/__snapshots__/demo.test.js.snap b/components/list/__tests__/__snapshots__/demo.test.js.snap index 42453a980b..a31a0f640f 100644 --- a/components/list/__tests__/__snapshots__/demo.test.js.snap +++ b/components/list/__tests__/__snapshots__/demo.test.js.snap @@ -2175,7 +2175,9 @@ exports[`renders ./components/list/demo/vertical.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -2184,7 +2186,9 @@ exports[`renders ./components/list/demo/vertical.md correctly 1`] = ` tabindex="0" title="2" > - + 2 @@ -2193,7 +2197,9 @@ exports[`renders ./components/list/demo/vertical.md correctly 1`] = ` tabindex="0" title="3" > - + 3 @@ -2202,7 +2208,9 @@ exports[`renders ./components/list/demo/vertical.md correctly 1`] = ` tabindex="0" title="4" > - + 4 @@ -2211,7 +2219,9 @@ exports[`renders ./components/list/demo/vertical.md correctly 1`] = ` tabindex="0" title="5" > - + 5 @@ -2259,7 +2269,9 @@ exports[`renders ./components/list/demo/vertical.md correctly 1`] = ` tabindex="0" title="8" > - + 8 diff --git a/components/list/__tests__/__snapshots__/pagination.test.js.snap b/components/list/__tests__/__snapshots__/pagination.test.js.snap index 39b01680e1..ab63789c87 100644 --- a/components/list/__tests__/__snapshots__/pagination.test.js.snap +++ b/components/list/__tests__/__snapshots__/pagination.test.js.snap @@ -71,7 +71,9 @@ exports[`List.pagination renders pagination correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -80,7 +82,9 @@ exports[`List.pagination renders pagination correctly 1`] = ` tabindex="0" title="2" > - + 2 @@ -165,7 +169,9 @@ exports[`List.pagination should change page size work 1`] = ` tabindex="0" title="1" > - + 1 @@ -312,7 +318,9 @@ exports[`List.pagination should change page size work 2`] = ` tabindex="0" title="1" > - + 1 @@ -582,7 +590,9 @@ exports[`List.pagination should default work 1`] = ` tabindex="0" title="1" > - + 1 @@ -591,7 +601,9 @@ exports[`List.pagination should default work 1`] = ` tabindex="0" title="2" > - + 2 diff --git a/components/locale-provider/__tests__/__snapshots__/index.test.js.snap b/components/locale-provider/__tests__/__snapshots__/index.test.js.snap index 163febf360..d55b7c4936 100644 --- a/components/locale-provider/__tests__/__snapshots__/index.test.js.snap +++ b/components/locale-provider/__tests__/__snapshots__/index.test.js.snap @@ -1913,7 +1913,9 @@ exports[`Locale Provider should display the text as ar 1`] = ` tabindex="0" title="1" > - + 1 @@ -1922,7 +1924,9 @@ exports[`Locale Provider should display the text as ar 1`] = ` tabindex="0" title="2" > - + 2 @@ -1931,7 +1935,9 @@ exports[`Locale Provider should display the text as ar 1`] = ` tabindex="0" title="3" > - + 3 @@ -1940,7 +1946,9 @@ exports[`Locale Provider should display the text as ar 1`] = ` tabindex="0" title="4" > - + 4 @@ -1949,7 +1957,9 @@ exports[`Locale Provider should display the text as ar 1`] = ` tabindex="0" title="5" > - + 5 @@ -6947,7 +6957,9 @@ exports[`Locale Provider should display the text as az 1`] = ` tabindex="0" title="1" > - + 1 @@ -6956,7 +6968,9 @@ exports[`Locale Provider should display the text as az 1`] = ` tabindex="0" title="2" > - + 2 @@ -6965,7 +6979,9 @@ exports[`Locale Provider should display the text as az 1`] = ` tabindex="0" title="3" > - + 3 @@ -6974,7 +6990,9 @@ exports[`Locale Provider should display the text as az 1`] = ` tabindex="0" title="4" > - + 4 @@ -6983,7 +7001,9 @@ exports[`Locale Provider should display the text as az 1`] = ` tabindex="0" title="5" > - + 5 @@ -11981,7 +12001,9 @@ exports[`Locale Provider should display the text as bg 1`] = ` tabindex="0" title="1" > - + 1 @@ -11990,7 +12012,9 @@ exports[`Locale Provider should display the text as bg 1`] = ` tabindex="0" title="2" > - + 2 @@ -11999,7 +12023,9 @@ exports[`Locale Provider should display the text as bg 1`] = ` tabindex="0" title="3" > - + 3 @@ -12008,7 +12034,9 @@ exports[`Locale Provider should display the text as bg 1`] = ` tabindex="0" title="4" > - + 4 @@ -12017,7 +12045,9 @@ exports[`Locale Provider should display the text as bg 1`] = ` tabindex="0" title="5" > - + 5 @@ -17015,7 +17045,9 @@ exports[`Locale Provider should display the text as ca 1`] = ` tabindex="0" title="1" > - + 1 @@ -17024,7 +17056,9 @@ exports[`Locale Provider should display the text as ca 1`] = ` tabindex="0" title="2" > - + 2 @@ -17033,7 +17067,9 @@ exports[`Locale Provider should display the text as ca 1`] = ` tabindex="0" title="3" > - + 3 @@ -17042,7 +17078,9 @@ exports[`Locale Provider should display the text as ca 1`] = ` tabindex="0" title="4" > - + 4 @@ -17051,7 +17089,9 @@ exports[`Locale Provider should display the text as ca 1`] = ` tabindex="0" title="5" > - + 5 @@ -22049,7 +22089,9 @@ exports[`Locale Provider should display the text as cs 1`] = ` tabindex="0" title="1" > - + 1 @@ -22058,7 +22100,9 @@ exports[`Locale Provider should display the text as cs 1`] = ` tabindex="0" title="2" > - + 2 @@ -22067,7 +22111,9 @@ exports[`Locale Provider should display the text as cs 1`] = ` tabindex="0" title="3" > - + 3 @@ -22076,7 +22122,9 @@ exports[`Locale Provider should display the text as cs 1`] = ` tabindex="0" title="4" > - + 4 @@ -22085,7 +22133,9 @@ exports[`Locale Provider should display the text as cs 1`] = ` tabindex="0" title="5" > - + 5 @@ -27083,7 +27133,9 @@ exports[`Locale Provider should display the text as da 1`] = ` tabindex="0" title="1" > - + 1 @@ -27092,7 +27144,9 @@ exports[`Locale Provider should display the text as da 1`] = ` tabindex="0" title="2" > - + 2 @@ -27101,7 +27155,9 @@ exports[`Locale Provider should display the text as da 1`] = ` tabindex="0" title="3" > - + 3 @@ -27110,7 +27166,9 @@ exports[`Locale Provider should display the text as da 1`] = ` tabindex="0" title="4" > - + 4 @@ -27119,7 +27177,9 @@ exports[`Locale Provider should display the text as da 1`] = ` tabindex="0" title="5" > - + 5 @@ -32117,7 +32177,9 @@ exports[`Locale Provider should display the text as de 1`] = ` tabindex="0" title="1" > - + 1 @@ -32126,7 +32188,9 @@ exports[`Locale Provider should display the text as de 1`] = ` tabindex="0" title="2" > - + 2 @@ -32135,7 +32199,9 @@ exports[`Locale Provider should display the text as de 1`] = ` tabindex="0" title="3" > - + 3 @@ -32144,7 +32210,9 @@ exports[`Locale Provider should display the text as de 1`] = ` tabindex="0" title="4" > - + 4 @@ -32153,7 +32221,9 @@ exports[`Locale Provider should display the text as de 1`] = ` tabindex="0" title="5" > - + 5 @@ -37151,7 +37221,9 @@ exports[`Locale Provider should display the text as el 1`] = ` tabindex="0" title="1" > - + 1 @@ -37160,7 +37232,9 @@ exports[`Locale Provider should display the text as el 1`] = ` tabindex="0" title="2" > - + 2 @@ -37169,7 +37243,9 @@ exports[`Locale Provider should display the text as el 1`] = ` tabindex="0" title="3" > - + 3 @@ -37178,7 +37254,9 @@ exports[`Locale Provider should display the text as el 1`] = ` tabindex="0" title="4" > - + 4 @@ -37187,7 +37265,9 @@ exports[`Locale Provider should display the text as el 1`] = ` tabindex="0" title="5" > - + 5 @@ -42185,7 +42265,9 @@ exports[`Locale Provider should display the text as en 1`] = ` tabindex="0" title="1" > - + 1 @@ -42194,7 +42276,9 @@ exports[`Locale Provider should display the text as en 1`] = ` tabindex="0" title="2" > - + 2 @@ -42203,7 +42287,9 @@ exports[`Locale Provider should display the text as en 1`] = ` tabindex="0" title="3" > - + 3 @@ -42212,7 +42298,9 @@ exports[`Locale Provider should display the text as en 1`] = ` tabindex="0" title="4" > - + 4 @@ -42221,7 +42309,9 @@ exports[`Locale Provider should display the text as en 1`] = ` tabindex="0" title="5" > - + 5 @@ -47219,7 +47309,9 @@ exports[`Locale Provider should display the text as en-gb 1`] = ` tabindex="0" title="1" > - + 1 @@ -47228,7 +47320,9 @@ exports[`Locale Provider should display the text as en-gb 1`] = ` tabindex="0" title="2" > - + 2 @@ -47237,7 +47331,9 @@ exports[`Locale Provider should display the text as en-gb 1`] = ` tabindex="0" title="3" > - + 3 @@ -47246,7 +47342,9 @@ exports[`Locale Provider should display the text as en-gb 1`] = ` tabindex="0" title="4" > - + 4 @@ -47255,7 +47353,9 @@ exports[`Locale Provider should display the text as en-gb 1`] = ` tabindex="0" title="5" > - + 5 @@ -52253,7 +52353,9 @@ exports[`Locale Provider should display the text as es 1`] = ` tabindex="0" title="1" > - + 1 @@ -52262,7 +52364,9 @@ exports[`Locale Provider should display the text as es 1`] = ` tabindex="0" title="2" > - + 2 @@ -52271,7 +52375,9 @@ exports[`Locale Provider should display the text as es 1`] = ` tabindex="0" title="3" > - + 3 @@ -52280,7 +52386,9 @@ exports[`Locale Provider should display the text as es 1`] = ` tabindex="0" title="4" > - + 4 @@ -52289,7 +52397,9 @@ exports[`Locale Provider should display the text as es 1`] = ` tabindex="0" title="5" > - + 5 @@ -57287,7 +57397,9 @@ exports[`Locale Provider should display the text as et 1`] = ` tabindex="0" title="1" > - + 1 @@ -57296,7 +57408,9 @@ exports[`Locale Provider should display the text as et 1`] = ` tabindex="0" title="2" > - + 2 @@ -57305,7 +57419,9 @@ exports[`Locale Provider should display the text as et 1`] = ` tabindex="0" title="3" > - + 3 @@ -57314,7 +57430,9 @@ exports[`Locale Provider should display the text as et 1`] = ` tabindex="0" title="4" > - + 4 @@ -57323,7 +57441,9 @@ exports[`Locale Provider should display the text as et 1`] = ` tabindex="0" title="5" > - + 5 @@ -62321,7 +62441,9 @@ exports[`Locale Provider should display the text as fa 1`] = ` tabindex="0" title="1" > - + 1 @@ -62330,7 +62452,9 @@ exports[`Locale Provider should display the text as fa 1`] = ` tabindex="0" title="2" > - + 2 @@ -62339,7 +62463,9 @@ exports[`Locale Provider should display the text as fa 1`] = ` tabindex="0" title="3" > - + 3 @@ -62348,7 +62474,9 @@ exports[`Locale Provider should display the text as fa 1`] = ` tabindex="0" title="4" > - + 4 @@ -62357,7 +62485,9 @@ exports[`Locale Provider should display the text as fa 1`] = ` tabindex="0" title="5" > - + 5 @@ -67355,7 +67485,9 @@ exports[`Locale Provider should display the text as fi 1`] = ` tabindex="0" title="1" > - + 1 @@ -67364,7 +67496,9 @@ exports[`Locale Provider should display the text as fi 1`] = ` tabindex="0" title="2" > - + 2 @@ -67373,7 +67507,9 @@ exports[`Locale Provider should display the text as fi 1`] = ` tabindex="0" title="3" > - + 3 @@ -67382,7 +67518,9 @@ exports[`Locale Provider should display the text as fi 1`] = ` tabindex="0" title="4" > - + 4 @@ -67391,7 +67529,9 @@ exports[`Locale Provider should display the text as fi 1`] = ` tabindex="0" title="5" > - + 5 @@ -72389,7 +72529,9 @@ exports[`Locale Provider should display the text as fr 1`] = ` tabindex="0" title="1" > - + 1 @@ -72398,7 +72540,9 @@ exports[`Locale Provider should display the text as fr 1`] = ` tabindex="0" title="2" > - + 2 @@ -72407,7 +72551,9 @@ exports[`Locale Provider should display the text as fr 1`] = ` tabindex="0" title="3" > - + 3 @@ -72416,7 +72562,9 @@ exports[`Locale Provider should display the text as fr 1`] = ` tabindex="0" title="4" > - + 4 @@ -72425,7 +72573,9 @@ exports[`Locale Provider should display the text as fr 1`] = ` tabindex="0" title="5" > - + 5 @@ -77423,7 +77573,9 @@ exports[`Locale Provider should display the text as fr 2`] = ` tabindex="0" title="1" > - + 1 @@ -77432,7 +77584,9 @@ exports[`Locale Provider should display the text as fr 2`] = ` tabindex="0" title="2" > - + 2 @@ -77441,7 +77595,9 @@ exports[`Locale Provider should display the text as fr 2`] = ` tabindex="0" title="3" > - + 3 @@ -77450,7 +77606,9 @@ exports[`Locale Provider should display the text as fr 2`] = ` tabindex="0" title="4" > - + 4 @@ -77459,7 +77617,9 @@ exports[`Locale Provider should display the text as fr 2`] = ` tabindex="0" title="5" > - + 5 @@ -82457,7 +82617,9 @@ exports[`Locale Provider should display the text as ga 1`] = ` tabindex="0" title="1" > - + 1 @@ -82466,7 +82628,9 @@ exports[`Locale Provider should display the text as ga 1`] = ` tabindex="0" title="2" > - + 2 @@ -82475,7 +82639,9 @@ exports[`Locale Provider should display the text as ga 1`] = ` tabindex="0" title="3" > - + 3 @@ -82484,7 +82650,9 @@ exports[`Locale Provider should display the text as ga 1`] = ` tabindex="0" title="4" > - + 4 @@ -82493,7 +82661,9 @@ exports[`Locale Provider should display the text as ga 1`] = ` tabindex="0" title="5" > - + 5 @@ -87491,7 +87661,9 @@ exports[`Locale Provider should display the text as he 1`] = ` tabindex="0" title="1" > - + 1 @@ -87500,7 +87672,9 @@ exports[`Locale Provider should display the text as he 1`] = ` tabindex="0" title="2" > - + 2 @@ -87509,7 +87683,9 @@ exports[`Locale Provider should display the text as he 1`] = ` tabindex="0" title="3" > - + 3 @@ -87518,7 +87694,9 @@ exports[`Locale Provider should display the text as he 1`] = ` tabindex="0" title="4" > - + 4 @@ -87527,7 +87705,9 @@ exports[`Locale Provider should display the text as he 1`] = ` tabindex="0" title="5" > - + 5 @@ -92525,7 +92705,9 @@ exports[`Locale Provider should display the text as hi 1`] = ` tabindex="0" title="1" > - + 1 @@ -92534,7 +92716,9 @@ exports[`Locale Provider should display the text as hi 1`] = ` tabindex="0" title="2" > - + 2 @@ -92543,7 +92727,9 @@ exports[`Locale Provider should display the text as hi 1`] = ` tabindex="0" title="3" > - + 3 @@ -92552,7 +92738,9 @@ exports[`Locale Provider should display the text as hi 1`] = ` tabindex="0" title="4" > - + 4 @@ -92561,7 +92749,9 @@ exports[`Locale Provider should display the text as hi 1`] = ` tabindex="0" title="5" > - + 5 @@ -97559,7 +97749,9 @@ exports[`Locale Provider should display the text as hr 1`] = ` tabindex="0" title="1" > - + 1 @@ -97568,7 +97760,9 @@ exports[`Locale Provider should display the text as hr 1`] = ` tabindex="0" title="2" > - + 2 @@ -97577,7 +97771,9 @@ exports[`Locale Provider should display the text as hr 1`] = ` tabindex="0" title="3" > - + 3 @@ -97586,7 +97782,9 @@ exports[`Locale Provider should display the text as hr 1`] = ` tabindex="0" title="4" > - + 4 @@ -97595,7 +97793,9 @@ exports[`Locale Provider should display the text as hr 1`] = ` tabindex="0" title="5" > - + 5 @@ -102593,7 +102793,9 @@ exports[`Locale Provider should display the text as hu 1`] = ` tabindex="0" title="1" > - + 1 @@ -102602,7 +102804,9 @@ exports[`Locale Provider should display the text as hu 1`] = ` tabindex="0" title="2" > - + 2 @@ -102611,7 +102815,9 @@ exports[`Locale Provider should display the text as hu 1`] = ` tabindex="0" title="3" > - + 3 @@ -102620,7 +102826,9 @@ exports[`Locale Provider should display the text as hu 1`] = ` tabindex="0" title="4" > - + 4 @@ -102629,7 +102837,9 @@ exports[`Locale Provider should display the text as hu 1`] = ` tabindex="0" title="5" > - + 5 @@ -107627,7 +107837,9 @@ exports[`Locale Provider should display the text as hy-am 1`] = ` tabindex="0" title="1" > - + 1 @@ -107636,7 +107848,9 @@ exports[`Locale Provider should display the text as hy-am 1`] = ` tabindex="0" title="2" > - + 2 @@ -107645,7 +107859,9 @@ exports[`Locale Provider should display the text as hy-am 1`] = ` tabindex="0" title="3" > - + 3 @@ -107654,7 +107870,9 @@ exports[`Locale Provider should display the text as hy-am 1`] = ` tabindex="0" title="4" > - + 4 @@ -107663,7 +107881,9 @@ exports[`Locale Provider should display the text as hy-am 1`] = ` tabindex="0" title="5" > - + 5 @@ -112661,7 +112881,9 @@ exports[`Locale Provider should display the text as id 1`] = ` tabindex="0" title="1" > - + 1 @@ -112670,7 +112892,9 @@ exports[`Locale Provider should display the text as id 1`] = ` tabindex="0" title="2" > - + 2 @@ -112679,7 +112903,9 @@ exports[`Locale Provider should display the text as id 1`] = ` tabindex="0" title="3" > - + 3 @@ -112688,7 +112914,9 @@ exports[`Locale Provider should display the text as id 1`] = ` tabindex="0" title="4" > - + 4 @@ -112697,7 +112925,9 @@ exports[`Locale Provider should display the text as id 1`] = ` tabindex="0" title="5" > - + 5 @@ -117695,7 +117925,9 @@ exports[`Locale Provider should display the text as is 1`] = ` tabindex="0" title="1" > - + 1 @@ -117704,7 +117936,9 @@ exports[`Locale Provider should display the text as is 1`] = ` tabindex="0" title="2" > - + 2 @@ -117713,7 +117947,9 @@ exports[`Locale Provider should display the text as is 1`] = ` tabindex="0" title="3" > - + 3 @@ -117722,7 +117958,9 @@ exports[`Locale Provider should display the text as is 1`] = ` tabindex="0" title="4" > - + 4 @@ -117731,7 +117969,9 @@ exports[`Locale Provider should display the text as is 1`] = ` tabindex="0" title="5" > - + 5 @@ -122729,7 +122969,9 @@ exports[`Locale Provider should display the text as it 1`] = ` tabindex="0" title="1" > - + 1 @@ -122738,7 +122980,9 @@ exports[`Locale Provider should display the text as it 1`] = ` tabindex="0" title="2" > - + 2 @@ -122747,7 +122991,9 @@ exports[`Locale Provider should display the text as it 1`] = ` tabindex="0" title="3" > - + 3 @@ -122756,7 +123002,9 @@ exports[`Locale Provider should display the text as it 1`] = ` tabindex="0" title="4" > - + 4 @@ -122765,7 +123013,9 @@ exports[`Locale Provider should display the text as it 1`] = ` tabindex="0" title="5" > - + 5 @@ -127763,7 +128013,9 @@ exports[`Locale Provider should display the text as ja 1`] = ` tabindex="0" title="1" > - + 1 @@ -127772,7 +128024,9 @@ exports[`Locale Provider should display the text as ja 1`] = ` tabindex="0" title="2" > - + 2 @@ -127781,7 +128035,9 @@ exports[`Locale Provider should display the text as ja 1`] = ` tabindex="0" title="3" > - + 3 @@ -127790,7 +128046,9 @@ exports[`Locale Provider should display the text as ja 1`] = ` tabindex="0" title="4" > - + 4 @@ -127799,7 +128057,9 @@ exports[`Locale Provider should display the text as ja 1`] = ` tabindex="0" title="5" > - + 5 @@ -132797,7 +133057,9 @@ exports[`Locale Provider should display the text as kn 1`] = ` tabindex="0" title="1" > - + 1 @@ -132806,7 +133068,9 @@ exports[`Locale Provider should display the text as kn 1`] = ` tabindex="0" title="2" > - + 2 @@ -132815,7 +133079,9 @@ exports[`Locale Provider should display the text as kn 1`] = ` tabindex="0" title="3" > - + 3 @@ -132824,7 +133090,9 @@ exports[`Locale Provider should display the text as kn 1`] = ` tabindex="0" title="4" > - + 4 @@ -132833,7 +133101,9 @@ exports[`Locale Provider should display the text as kn 1`] = ` tabindex="0" title="5" > - + 5 @@ -137831,7 +138101,9 @@ exports[`Locale Provider should display the text as ko 1`] = ` tabindex="0" title="1" > - + 1 @@ -137840,7 +138112,9 @@ exports[`Locale Provider should display the text as ko 1`] = ` tabindex="0" title="2" > - + 2 @@ -137849,7 +138123,9 @@ exports[`Locale Provider should display the text as ko 1`] = ` tabindex="0" title="3" > - + 3 @@ -137858,7 +138134,9 @@ exports[`Locale Provider should display the text as ko 1`] = ` tabindex="0" title="4" > - + 4 @@ -137867,7 +138145,9 @@ exports[`Locale Provider should display the text as ko 1`] = ` tabindex="0" title="5" > - + 5 @@ -142865,7 +143145,9 @@ exports[`Locale Provider should display the text as ku-iq 1`] = ` tabindex="0" title="1" > - + 1 @@ -142874,7 +143156,9 @@ exports[`Locale Provider should display the text as ku-iq 1`] = ` tabindex="0" title="2" > - + 2 @@ -142883,7 +143167,9 @@ exports[`Locale Provider should display the text as ku-iq 1`] = ` tabindex="0" title="3" > - + 3 @@ -142892,7 +143178,9 @@ exports[`Locale Provider should display the text as ku-iq 1`] = ` tabindex="0" title="4" > - + 4 @@ -142901,7 +143189,9 @@ exports[`Locale Provider should display the text as ku-iq 1`] = ` tabindex="0" title="5" > - + 5 @@ -147899,7 +148189,9 @@ exports[`Locale Provider should display the text as lv 1`] = ` tabindex="0" title="1" > - + 1 @@ -147908,7 +148200,9 @@ exports[`Locale Provider should display the text as lv 1`] = ` tabindex="0" title="2" > - + 2 @@ -147917,7 +148211,9 @@ exports[`Locale Provider should display the text as lv 1`] = ` tabindex="0" title="3" > - + 3 @@ -147926,7 +148222,9 @@ exports[`Locale Provider should display the text as lv 1`] = ` tabindex="0" title="4" > - + 4 @@ -147935,7 +148233,9 @@ exports[`Locale Provider should display the text as lv 1`] = ` tabindex="0" title="5" > - + 5 @@ -152933,7 +153233,9 @@ exports[`Locale Provider should display the text as mk 1`] = ` tabindex="0" title="1" > - + 1 @@ -152942,7 +153244,9 @@ exports[`Locale Provider should display the text as mk 1`] = ` tabindex="0" title="2" > - + 2 @@ -152951,7 +153255,9 @@ exports[`Locale Provider should display the text as mk 1`] = ` tabindex="0" title="3" > - + 3 @@ -152960,7 +153266,9 @@ exports[`Locale Provider should display the text as mk 1`] = ` tabindex="0" title="4" > - + 4 @@ -152969,7 +153277,9 @@ exports[`Locale Provider should display the text as mk 1`] = ` tabindex="0" title="5" > - + 5 @@ -157967,7 +158277,9 @@ exports[`Locale Provider should display the text as mn-mn 1`] = ` tabindex="0" title="1" > - + 1 @@ -157976,7 +158288,9 @@ exports[`Locale Provider should display the text as mn-mn 1`] = ` tabindex="0" title="2" > - + 2 @@ -157985,7 +158299,9 @@ exports[`Locale Provider should display the text as mn-mn 1`] = ` tabindex="0" title="3" > - + 3 @@ -157994,7 +158310,9 @@ exports[`Locale Provider should display the text as mn-mn 1`] = ` tabindex="0" title="4" > - + 4 @@ -158003,7 +158321,9 @@ exports[`Locale Provider should display the text as mn-mn 1`] = ` tabindex="0" title="5" > - + 5 @@ -163001,7 +163321,9 @@ exports[`Locale Provider should display the text as ms-my 1`] = ` tabindex="0" title="1" > - + 1 @@ -163010,7 +163332,9 @@ exports[`Locale Provider should display the text as ms-my 1`] = ` tabindex="0" title="2" > - + 2 @@ -163019,7 +163343,9 @@ exports[`Locale Provider should display the text as ms-my 1`] = ` tabindex="0" title="3" > - + 3 @@ -163028,7 +163354,9 @@ exports[`Locale Provider should display the text as ms-my 1`] = ` tabindex="0" title="4" > - + 4 @@ -163037,7 +163365,9 @@ exports[`Locale Provider should display the text as ms-my 1`] = ` tabindex="0" title="5" > - + 5 @@ -168035,7 +168365,9 @@ exports[`Locale Provider should display the text as nb 1`] = ` tabindex="0" title="1" > - + 1 @@ -168044,7 +168376,9 @@ exports[`Locale Provider should display the text as nb 1`] = ` tabindex="0" title="2" > - + 2 @@ -168053,7 +168387,9 @@ exports[`Locale Provider should display the text as nb 1`] = ` tabindex="0" title="3" > - + 3 @@ -168062,7 +168398,9 @@ exports[`Locale Provider should display the text as nb 1`] = ` tabindex="0" title="4" > - + 4 @@ -168071,7 +168409,9 @@ exports[`Locale Provider should display the text as nb 1`] = ` tabindex="0" title="5" > - + 5 @@ -173069,7 +173409,9 @@ exports[`Locale Provider should display the text as ne-np 1`] = ` tabindex="0" title="1" > - + 1 @@ -173078,7 +173420,9 @@ exports[`Locale Provider should display the text as ne-np 1`] = ` tabindex="0" title="2" > - + 2 @@ -173087,7 +173431,9 @@ exports[`Locale Provider should display the text as ne-np 1`] = ` tabindex="0" title="3" > - + 3 @@ -173096,7 +173442,9 @@ exports[`Locale Provider should display the text as ne-np 1`] = ` tabindex="0" title="4" > - + 4 @@ -173105,7 +173453,9 @@ exports[`Locale Provider should display the text as ne-np 1`] = ` tabindex="0" title="5" > - + 5 @@ -178103,7 +178453,9 @@ exports[`Locale Provider should display the text as nl 1`] = ` tabindex="0" title="1" > - + 1 @@ -178112,7 +178464,9 @@ exports[`Locale Provider should display the text as nl 1`] = ` tabindex="0" title="2" > - + 2 @@ -178121,7 +178475,9 @@ exports[`Locale Provider should display the text as nl 1`] = ` tabindex="0" title="3" > - + 3 @@ -178130,7 +178486,9 @@ exports[`Locale Provider should display the text as nl 1`] = ` tabindex="0" title="4" > - + 4 @@ -178139,7 +178497,9 @@ exports[`Locale Provider should display the text as nl 1`] = ` tabindex="0" title="5" > - + 5 @@ -183137,7 +183497,9 @@ exports[`Locale Provider should display the text as nl-be 1`] = ` tabindex="0" title="1" > - + 1 @@ -183146,7 +183508,9 @@ exports[`Locale Provider should display the text as nl-be 1`] = ` tabindex="0" title="2" > - + 2 @@ -183155,7 +183519,9 @@ exports[`Locale Provider should display the text as nl-be 1`] = ` tabindex="0" title="3" > - + 3 @@ -183164,7 +183530,9 @@ exports[`Locale Provider should display the text as nl-be 1`] = ` tabindex="0" title="4" > - + 4 @@ -183173,7 +183541,9 @@ exports[`Locale Provider should display the text as nl-be 1`] = ` tabindex="0" title="5" > - + 5 @@ -188171,7 +188541,9 @@ exports[`Locale Provider should display the text as pl 1`] = ` tabindex="0" title="1" > - + 1 @@ -188180,7 +188552,9 @@ exports[`Locale Provider should display the text as pl 1`] = ` tabindex="0" title="2" > - + 2 @@ -188189,7 +188563,9 @@ exports[`Locale Provider should display the text as pl 1`] = ` tabindex="0" title="3" > - + 3 @@ -188198,7 +188574,9 @@ exports[`Locale Provider should display the text as pl 1`] = ` tabindex="0" title="4" > - + 4 @@ -188207,7 +188585,9 @@ exports[`Locale Provider should display the text as pl 1`] = ` tabindex="0" title="5" > - + 5 @@ -188274,9 +188654,9 @@ exports[`Locale Provider should display the text as pl 1`] = ` - 10 / stronę + 10 na stronę - + 1 @@ -193214,7 +193596,9 @@ exports[`Locale Provider should display the text as pt 1`] = ` tabindex="0" title="2" > - + 2 @@ -193223,7 +193607,9 @@ exports[`Locale Provider should display the text as pt 1`] = ` tabindex="0" title="3" > - + 3 @@ -193232,7 +193618,9 @@ exports[`Locale Provider should display the text as pt 1`] = ` tabindex="0" title="4" > - + 4 @@ -193241,7 +193629,9 @@ exports[`Locale Provider should display the text as pt 1`] = ` tabindex="0" title="5" > - + 5 @@ -198239,7 +198629,9 @@ exports[`Locale Provider should display the text as pt-br 1`] = ` tabindex="0" title="1" > - + 1 @@ -198248,7 +198640,9 @@ exports[`Locale Provider should display the text as pt-br 1`] = ` tabindex="0" title="2" > - + 2 @@ -198257,7 +198651,9 @@ exports[`Locale Provider should display the text as pt-br 1`] = ` tabindex="0" title="3" > - + 3 @@ -198266,7 +198662,9 @@ exports[`Locale Provider should display the text as pt-br 1`] = ` tabindex="0" title="4" > - + 4 @@ -198275,7 +198673,9 @@ exports[`Locale Provider should display the text as pt-br 1`] = ` tabindex="0" title="5" > - + 5 @@ -203273,7 +203673,9 @@ exports[`Locale Provider should display the text as ro 1`] = ` tabindex="0" title="1" > - + 1 @@ -203282,7 +203684,9 @@ exports[`Locale Provider should display the text as ro 1`] = ` tabindex="0" title="2" > - + 2 @@ -203291,7 +203695,9 @@ exports[`Locale Provider should display the text as ro 1`] = ` tabindex="0" title="3" > - + 3 @@ -203300,7 +203706,9 @@ exports[`Locale Provider should display the text as ro 1`] = ` tabindex="0" title="4" > - + 4 @@ -203309,7 +203717,9 @@ exports[`Locale Provider should display the text as ro 1`] = ` tabindex="0" title="5" > - + 5 @@ -208307,7 +208717,9 @@ exports[`Locale Provider should display the text as ru 1`] = ` tabindex="0" title="1" > - + 1 @@ -208316,7 +208728,9 @@ exports[`Locale Provider should display the text as ru 1`] = ` tabindex="0" title="2" > - + 2 @@ -208325,7 +208739,9 @@ exports[`Locale Provider should display the text as ru 1`] = ` tabindex="0" title="3" > - + 3 @@ -208334,7 +208750,9 @@ exports[`Locale Provider should display the text as ru 1`] = ` tabindex="0" title="4" > - + 4 @@ -208343,7 +208761,9 @@ exports[`Locale Provider should display the text as ru 1`] = ` tabindex="0" title="5" > - + 5 @@ -213341,7 +213761,9 @@ exports[`Locale Provider should display the text as sk 1`] = ` tabindex="0" title="1" > - + 1 @@ -213350,7 +213772,9 @@ exports[`Locale Provider should display the text as sk 1`] = ` tabindex="0" title="2" > - + 2 @@ -213359,7 +213783,9 @@ exports[`Locale Provider should display the text as sk 1`] = ` tabindex="0" title="3" > - + 3 @@ -213368,7 +213794,9 @@ exports[`Locale Provider should display the text as sk 1`] = ` tabindex="0" title="4" > - + 4 @@ -213377,7 +213805,9 @@ exports[`Locale Provider should display the text as sk 1`] = ` tabindex="0" title="5" > - + 5 @@ -218375,7 +218805,9 @@ exports[`Locale Provider should display the text as sl 1`] = ` tabindex="0" title="1" > - + 1 @@ -218384,7 +218816,9 @@ exports[`Locale Provider should display the text as sl 1`] = ` tabindex="0" title="2" > - + 2 @@ -218393,7 +218827,9 @@ exports[`Locale Provider should display the text as sl 1`] = ` tabindex="0" title="3" > - + 3 @@ -218402,7 +218838,9 @@ exports[`Locale Provider should display the text as sl 1`] = ` tabindex="0" title="4" > - + 4 @@ -218411,7 +218849,9 @@ exports[`Locale Provider should display the text as sl 1`] = ` tabindex="0" title="5" > - + 5 @@ -223409,7 +223849,9 @@ exports[`Locale Provider should display the text as sr 1`] = ` tabindex="0" title="1" > - + 1 @@ -223418,7 +223860,9 @@ exports[`Locale Provider should display the text as sr 1`] = ` tabindex="0" title="2" > - + 2 @@ -223427,7 +223871,9 @@ exports[`Locale Provider should display the text as sr 1`] = ` tabindex="0" title="3" > - + 3 @@ -223436,7 +223882,9 @@ exports[`Locale Provider should display the text as sr 1`] = ` tabindex="0" title="4" > - + 4 @@ -223445,7 +223893,9 @@ exports[`Locale Provider should display the text as sr 1`] = ` tabindex="0" title="5" > - + 5 @@ -228443,7 +228893,9 @@ exports[`Locale Provider should display the text as sv 1`] = ` tabindex="0" title="1" > - + 1 @@ -228452,7 +228904,9 @@ exports[`Locale Provider should display the text as sv 1`] = ` tabindex="0" title="2" > - + 2 @@ -228461,7 +228915,9 @@ exports[`Locale Provider should display the text as sv 1`] = ` tabindex="0" title="3" > - + 3 @@ -228470,7 +228926,9 @@ exports[`Locale Provider should display the text as sv 1`] = ` tabindex="0" title="4" > - + 4 @@ -228479,7 +228937,9 @@ exports[`Locale Provider should display the text as sv 1`] = ` tabindex="0" title="5" > - + 5 @@ -233477,7 +233937,9 @@ exports[`Locale Provider should display the text as ta 1`] = ` tabindex="0" title="1" > - + 1 @@ -233486,7 +233948,9 @@ exports[`Locale Provider should display the text as ta 1`] = ` tabindex="0" title="2" > - + 2 @@ -233495,7 +233959,9 @@ exports[`Locale Provider should display the text as ta 1`] = ` tabindex="0" title="3" > - + 3 @@ -233504,7 +233970,9 @@ exports[`Locale Provider should display the text as ta 1`] = ` tabindex="0" title="4" > - + 4 @@ -233513,7 +233981,9 @@ exports[`Locale Provider should display the text as ta 1`] = ` tabindex="0" title="5" > - + 5 @@ -238511,7 +238981,9 @@ exports[`Locale Provider should display the text as th 1`] = ` tabindex="0" title="1" > - + 1 @@ -238520,7 +238992,9 @@ exports[`Locale Provider should display the text as th 1`] = ` tabindex="0" title="2" > - + 2 @@ -238529,7 +239003,9 @@ exports[`Locale Provider should display the text as th 1`] = ` tabindex="0" title="3" > - + 3 @@ -238538,7 +239014,9 @@ exports[`Locale Provider should display the text as th 1`] = ` tabindex="0" title="4" > - + 4 @@ -238547,7 +239025,9 @@ exports[`Locale Provider should display the text as th 1`] = ` tabindex="0" title="5" > - + 5 @@ -243545,7 +244025,9 @@ exports[`Locale Provider should display the text as tr 1`] = ` tabindex="0" title="1" > - + 1 @@ -243554,7 +244036,9 @@ exports[`Locale Provider should display the text as tr 1`] = ` tabindex="0" title="2" > - + 2 @@ -243563,7 +244047,9 @@ exports[`Locale Provider should display the text as tr 1`] = ` tabindex="0" title="3" > - + 3 @@ -243572,7 +244058,9 @@ exports[`Locale Provider should display the text as tr 1`] = ` tabindex="0" title="4" > - + 4 @@ -243581,7 +244069,9 @@ exports[`Locale Provider should display the text as tr 1`] = ` tabindex="0" title="5" > - + 5 @@ -248579,7 +249069,9 @@ exports[`Locale Provider should display the text as uk 1`] = ` tabindex="0" title="1" > - + 1 @@ -248588,7 +249080,9 @@ exports[`Locale Provider should display the text as uk 1`] = ` tabindex="0" title="2" > - + 2 @@ -248597,7 +249091,9 @@ exports[`Locale Provider should display the text as uk 1`] = ` tabindex="0" title="3" > - + 3 @@ -248606,7 +249102,9 @@ exports[`Locale Provider should display the text as uk 1`] = ` tabindex="0" title="4" > - + 4 @@ -248615,7 +249113,9 @@ exports[`Locale Provider should display the text as uk 1`] = ` tabindex="0" title="5" > - + 5 @@ -253613,7 +254113,9 @@ exports[`Locale Provider should display the text as vi 1`] = ` tabindex="0" title="1" > - + 1 @@ -253622,7 +254124,9 @@ exports[`Locale Provider should display the text as vi 1`] = ` tabindex="0" title="2" > - + 2 @@ -253631,7 +254135,9 @@ exports[`Locale Provider should display the text as vi 1`] = ` tabindex="0" title="3" > - + 3 @@ -253640,7 +254146,9 @@ exports[`Locale Provider should display the text as vi 1`] = ` tabindex="0" title="4" > - + 4 @@ -253649,7 +254157,9 @@ exports[`Locale Provider should display the text as vi 1`] = ` tabindex="0" title="5" > - + 5 @@ -258647,7 +259157,9 @@ exports[`Locale Provider should display the text as zh-cn 1`] = ` tabindex="0" title="1" > - + 1 @@ -258656,7 +259168,9 @@ exports[`Locale Provider should display the text as zh-cn 1`] = ` tabindex="0" title="2" > - + 2 @@ -258665,7 +259179,9 @@ exports[`Locale Provider should display the text as zh-cn 1`] = ` tabindex="0" title="3" > - + 3 @@ -258674,7 +259190,9 @@ exports[`Locale Provider should display the text as zh-cn 1`] = ` tabindex="0" title="4" > - + 4 @@ -258683,7 +259201,9 @@ exports[`Locale Provider should display the text as zh-cn 1`] = ` tabindex="0" title="5" > - + 5 @@ -263681,7 +264201,9 @@ exports[`Locale Provider should display the text as zh-tw 1`] = ` tabindex="0" title="1" > - + 1 @@ -263690,7 +264212,9 @@ exports[`Locale Provider should display the text as zh-tw 1`] = ` tabindex="0" title="2" > - + 2 @@ -263699,7 +264223,9 @@ exports[`Locale Provider should display the text as zh-tw 1`] = ` tabindex="0" title="3" > - + 3 @@ -263708,7 +264234,9 @@ exports[`Locale Provider should display the text as zh-tw 1`] = ` tabindex="0" title="4" > - + 4 @@ -263717,7 +264245,9 @@ exports[`Locale Provider should display the text as zh-tw 1`] = ` tabindex="0" title="5" > - + 5 diff --git a/components/pagination/__tests__/__snapshots__/demo.test.js.snap b/components/pagination/__tests__/__snapshots__/demo.test.js.snap index f42251f774..da7d1630d0 100644 --- a/components/pagination/__tests__/__snapshots__/demo.test.js.snap +++ b/components/pagination/__tests__/__snapshots__/demo.test.js.snap @@ -48,7 +48,9 @@ exports[`renders ./components/pagination/demo/all.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -57,7 +59,9 @@ exports[`renders ./components/pagination/demo/all.md correctly 1`] = ` tabindex="0" title="2" > - + 2 @@ -66,7 +70,9 @@ exports[`renders ./components/pagination/demo/all.md correctly 1`] = ` tabindex="0" title="3" > - + 3 @@ -75,7 +81,9 @@ exports[`renders ./components/pagination/demo/all.md correctly 1`] = ` tabindex="0" title="4" > - + 4 @@ -84,7 +92,9 @@ exports[`renders ./components/pagination/demo/all.md correctly 1`] = ` tabindex="0" title="5" > - + 5 @@ -132,7 +142,9 @@ exports[`renders ./components/pagination/demo/all.md correctly 1`] = ` tabindex="0" title="9" > - + 9 @@ -287,7 +299,9 @@ exports[`renders ./components/pagination/demo/basic.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -296,7 +310,9 @@ exports[`renders ./components/pagination/demo/basic.md correctly 1`] = ` tabindex="0" title="2" > - + 2 @@ -305,7 +321,9 @@ exports[`renders ./components/pagination/demo/basic.md correctly 1`] = ` tabindex="0" title="3" > - + 3 @@ -314,7 +332,9 @@ exports[`renders ./components/pagination/demo/basic.md correctly 1`] = ` tabindex="0" title="4" > - + 4 @@ -323,7 +343,9 @@ exports[`renders ./components/pagination/demo/basic.md correctly 1`] = ` tabindex="0" title="5" > - + 5 @@ -407,7 +429,9 @@ Array [ tabindex="0" title="1" > - + 1 @@ -416,7 +440,9 @@ Array [ tabindex="0" title="2" > - + 2 @@ -425,7 +451,9 @@ Array [ tabindex="0" title="3" > - + 3 @@ -434,7 +462,9 @@ Array [ tabindex="0" title="4" > - + 4 @@ -443,7 +473,9 @@ Array [ tabindex="0" title="5" > - + 5 @@ -491,7 +523,9 @@ Array [ tabindex="0" title="50" > - + 50 @@ -635,7 +669,9 @@ Array [ tabindex="0" title="1" > - + 1 @@ -644,7 +680,9 @@ Array [ tabindex="0" title="2" > - + 2 @@ -653,7 +691,9 @@ Array [ tabindex="0" title="3" > - + 3 @@ -662,7 +702,9 @@ Array [ tabindex="0" title="4" > - + 4 @@ -671,7 +713,9 @@ Array [ tabindex="0" title="5" > - + 5 @@ -719,7 +763,9 @@ Array [ tabindex="0" title="50" > - + 50 @@ -868,7 +914,9 @@ exports[`renders ./components/pagination/demo/controlled.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -877,7 +925,9 @@ exports[`renders ./components/pagination/demo/controlled.md correctly 1`] = ` tabindex="0" title="2" > - + 2 @@ -886,7 +936,9 @@ exports[`renders ./components/pagination/demo/controlled.md correctly 1`] = ` tabindex="0" title="3" > - + 3 @@ -895,7 +947,9 @@ exports[`renders ./components/pagination/demo/controlled.md correctly 1`] = ` tabindex="0" title="4" > - + 4 @@ -904,7 +958,9 @@ exports[`renders ./components/pagination/demo/controlled.md correctly 1`] = ` tabindex="0" title="5" > - + 5 @@ -965,7 +1021,9 @@ exports[`renders ./components/pagination/demo/itemRender.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -974,7 +1032,9 @@ exports[`renders ./components/pagination/demo/itemRender.md correctly 1`] = ` tabindex="0" title="2" > - + 2 @@ -983,7 +1043,9 @@ exports[`renders ./components/pagination/demo/itemRender.md correctly 1`] = ` tabindex="0" title="3" > - + 3 @@ -992,7 +1054,9 @@ exports[`renders ./components/pagination/demo/itemRender.md correctly 1`] = ` tabindex="0" title="4" > - + 4 @@ -1001,7 +1065,9 @@ exports[`renders ./components/pagination/demo/itemRender.md correctly 1`] = ` tabindex="0" title="5" > - + 5 @@ -1049,7 +1115,9 @@ exports[`renders ./components/pagination/demo/itemRender.md correctly 1`] = ` tabindex="0" title="50" > - + 50 @@ -1173,7 +1241,9 @@ Array [ tabindex="0" title="1" > - + 1 @@ -1182,7 +1252,9 @@ Array [ tabindex="0" title="2" > - + 2 @@ -1191,7 +1263,9 @@ Array [ tabindex="0" title="3" > - + 3 @@ -1200,7 +1274,9 @@ Array [ tabindex="0" title="4" > - + 4 @@ -1209,7 +1285,9 @@ Array [ tabindex="0" title="5" > - + 5 @@ -1257,7 +1335,9 @@ Array [ tabindex="0" title="50" > - + 50 @@ -1410,7 +1490,9 @@ Array [ tabindex="0" title="1" > - + 1 @@ -1419,7 +1501,9 @@ Array [ tabindex="0" title="2" > - + 2 @@ -1428,7 +1512,9 @@ Array [ tabindex="0" title="3" > - + 3 @@ -1437,7 +1523,9 @@ Array [ tabindex="0" title="4" > - + 4 @@ -1446,7 +1534,9 @@ Array [ tabindex="0" title="5" > - + 5 @@ -1494,7 +1584,9 @@ Array [ tabindex="0" title="50" > - + 50 @@ -1654,7 +1746,9 @@ Array [ tabindex="0" title="1" > - + 1 @@ -1663,7 +1757,9 @@ Array [ tabindex="0" title="2" > - + 2 @@ -1672,7 +1768,9 @@ Array [ tabindex="0" title="3" > - + 3 @@ -1681,7 +1779,9 @@ Array [ tabindex="0" title="4" > - + 4 @@ -1690,7 +1790,9 @@ Array [ tabindex="0" title="5" > - + 5 @@ -1770,7 +1872,9 @@ Array [ tabindex="0" title="1" > - + 1 @@ -1779,7 +1883,9 @@ Array [ tabindex="0" title="2" > - + 2 @@ -1788,7 +1894,9 @@ Array [ tabindex="0" title="3" > - + 3 @@ -1797,7 +1905,9 @@ Array [ tabindex="0" title="4" > - + 4 @@ -1806,7 +1916,9 @@ Array [ tabindex="0" title="5" > - + 5 @@ -1963,7 +2075,9 @@ Array [ tabindex="0" title="1" > - + 1 @@ -1972,7 +2086,9 @@ Array [ tabindex="0" title="2" > - + 2 @@ -1981,7 +2097,9 @@ Array [ tabindex="0" title="3" > - + 3 @@ -1990,7 +2108,9 @@ Array [ tabindex="0" title="4" > - + 4 @@ -1999,7 +2119,9 @@ Array [ tabindex="0" title="5" > - + 5 @@ -2083,7 +2205,9 @@ exports[`renders ./components/pagination/demo/more.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -2131,7 +2255,9 @@ exports[`renders ./components/pagination/demo/more.md correctly 1`] = ` tabindex="0" title="4" > - + 4 @@ -2140,7 +2266,9 @@ exports[`renders ./components/pagination/demo/more.md correctly 1`] = ` tabindex="0" title="5" > - + 5 @@ -2149,7 +2277,9 @@ exports[`renders ./components/pagination/demo/more.md correctly 1`] = ` tabindex="0" title="6" > - + 6 @@ -2158,7 +2288,9 @@ exports[`renders ./components/pagination/demo/more.md correctly 1`] = ` tabindex="0" title="7" > - + 7 @@ -2167,7 +2299,9 @@ exports[`renders ./components/pagination/demo/more.md correctly 1`] = ` tabindex="0" title="8" > - + 8 @@ -2215,7 +2349,9 @@ exports[`renders ./components/pagination/demo/more.md correctly 1`] = ` tabindex="0" title="50" > - + 50 @@ -2456,7 +2592,9 @@ Array [ tabindex="0" title="1" > - + 1 @@ -2465,7 +2603,9 @@ Array [ tabindex="0" title="2" > - + 2 @@ -2474,7 +2614,9 @@ Array [ tabindex="0" title="3" > - + 3 @@ -2483,7 +2625,9 @@ Array [ tabindex="0" title="4" > - + 4 @@ -2492,7 +2636,9 @@ Array [ tabindex="0" title="5" > - + 5 @@ -2641,7 +2787,9 @@ Array [ tabindex="0" title="1" > - + 1 @@ -2650,7 +2798,9 @@ Array [ tabindex="0" title="2" > - + 2 @@ -2659,7 +2809,9 @@ Array [ tabindex="0" title="3" > - + 3 @@ -2668,7 +2820,9 @@ Array [ tabindex="0" title="4" > - + 4 @@ -2677,7 +2831,9 @@ Array [ tabindex="0" title="5" > - + 5 diff --git a/components/pagination/__tests__/__snapshots__/index.test.js.snap b/components/pagination/__tests__/__snapshots__/index.test.js.snap index 0fe2ba610b..bca0d5a617 100644 --- a/components/pagination/__tests__/__snapshots__/index.test.js.snap +++ b/components/pagination/__tests__/__snapshots__/index.test.js.snap @@ -43,7 +43,9 @@ exports[`Pagination rtl render component should be rendered correctly in RTL dir tabindex="0" title="0" > - + 0 @@ -126,7 +128,9 @@ exports[`Pagination should be rendered correctly in RTL 1`] = ` tabindex="0" title="1" > - + 1 @@ -135,7 +139,9 @@ exports[`Pagination should be rendered correctly in RTL 1`] = ` tabindex="0" title="2" > - + 2 @@ -144,7 +150,9 @@ exports[`Pagination should be rendered correctly in RTL 1`] = ` tabindex="0" title="3" > - + 3 @@ -153,7 +161,9 @@ exports[`Pagination should be rendered correctly in RTL 1`] = ` tabindex="0" title="4" > - + 4 @@ -162,7 +172,9 @@ exports[`Pagination should be rendered correctly in RTL 1`] = ` tabindex="0" title="5" > - + 5 diff --git a/components/table/__tests__/__snapshots__/Table.expand.test.js.snap b/components/table/__tests__/__snapshots__/Table.expand.test.js.snap index 9972e0b7a6..d7d9333174 100644 --- a/components/table/__tests__/__snapshots__/Table.expand.test.js.snap +++ b/components/table/__tests__/__snapshots__/Table.expand.test.js.snap @@ -120,7 +120,9 @@ exports[`Table.expand click to expand 1`] = ` tabindex="0" title="1" > - + 1 diff --git a/components/table/__tests__/__snapshots__/Table.pagination.test.js.snap b/components/table/__tests__/__snapshots__/Table.pagination.test.js.snap index dd73bc0bec..d101485119 100644 --- a/components/table/__tests__/__snapshots__/Table.pagination.test.js.snap +++ b/components/table/__tests__/__snapshots__/Table.pagination.test.js.snap @@ -124,7 +124,9 @@ exports[`Table.pagination Accepts pagination as true 1`] = ` tabindex="0" title="1" > - + 1 @@ -271,7 +273,9 @@ exports[`Table.pagination renders pagination correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -280,7 +284,9 @@ exports[`Table.pagination renders pagination correctly 1`] = ` tabindex="0" title="2" > - + 2 @@ -447,7 +453,9 @@ exports[`Table.pagination renders pagination topLeft and bottomRight 1`] = ` tabindex="0" title="1" > - + 1 diff --git a/components/table/__tests__/__snapshots__/Table.rowSelection.test.js.snap b/components/table/__tests__/__snapshots__/Table.rowSelection.test.js.snap index ccd7e135cc..85cba31fbc 100644 --- a/components/table/__tests__/__snapshots__/Table.rowSelection.test.js.snap +++ b/components/table/__tests__/__snapshots__/Table.rowSelection.test.js.snap @@ -295,7 +295,9 @@ exports[`Table.rowSelection fix expand on th left when selection column fixed on tabindex="0" title="1" > - + 1 @@ -583,7 +585,9 @@ exports[`Table.rowSelection fix selection column on the left 1`] = ` tabindex="0" title="1" > - + 1 @@ -876,7 +880,9 @@ exports[`Table.rowSelection fix selection column on the left when any other colu tabindex="0" title="1" > - + 1 @@ -1234,7 +1240,9 @@ exports[`Table.rowSelection should support getPopupContainer 1`] = ` tabindex="0" title="1" > - + 1 @@ -1565,7 +1573,9 @@ exports[`Table.rowSelection should support getPopupContainer from ConfigProvider tabindex="0" title="1" > - + 1 @@ -1835,7 +1845,9 @@ exports[`Table.rowSelection use column as selection column when key is \`selecti tabindex="0" title="1" > - + 1 diff --git a/components/table/__tests__/__snapshots__/Table.sorter.test.js.snap b/components/table/__tests__/__snapshots__/Table.sorter.test.js.snap index ff356298f6..3a131163f8 100644 --- a/components/table/__tests__/__snapshots__/Table.sorter.test.js.snap +++ b/components/table/__tests__/__snapshots__/Table.sorter.test.js.snap @@ -224,7 +224,9 @@ exports[`Table.sorter should support defaultOrder in Column 1`] = ` tabindex="0" title="1" > - + 1 diff --git a/components/table/__tests__/__snapshots__/demo.test.js.snap b/components/table/__tests__/__snapshots__/demo.test.js.snap index d4416e1d71..2fc0a52873 100644 --- a/components/table/__tests__/__snapshots__/demo.test.js.snap +++ b/components/table/__tests__/__snapshots__/demo.test.js.snap @@ -491,7 +491,9 @@ exports[`renders ./components/table/demo/basic.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -708,7 +710,9 @@ exports[`renders ./components/table/demo/bordered.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -988,7 +992,9 @@ exports[`renders ./components/table/demo/colspan-rowspan.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -1326,7 +1332,9 @@ exports[`renders ./components/table/demo/custom-filter-panel.md correctly 1`] = tabindex="0" title="1" > - + 1 @@ -1526,7 +1534,9 @@ exports[`renders ./components/table/demo/drag-sorting.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -3751,7 +3761,9 @@ Array [ tabindex="0" title="1" > - + 1 @@ -3972,7 +3984,9 @@ exports[`renders ./components/table/demo/edit-cell.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -4395,7 +4409,9 @@ exports[`renders ./components/table/demo/edit-row.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -4404,7 +4420,9 @@ exports[`renders ./components/table/demo/edit-row.md correctly 1`] = ` tabindex="0" title="2" > - + 2 @@ -4413,7 +4431,9 @@ exports[`renders ./components/table/demo/edit-row.md correctly 1`] = ` tabindex="0" title="3" > - + 3 @@ -4422,7 +4442,9 @@ exports[`renders ./components/table/demo/edit-row.md correctly 1`] = ` tabindex="0" title="4" > - + 4 @@ -4431,7 +4453,9 @@ exports[`renders ./components/table/demo/edit-row.md correctly 1`] = ` tabindex="0" title="5" > - + 5 @@ -4479,7 +4503,9 @@ exports[`renders ./components/table/demo/edit-row.md correctly 1`] = ` tabindex="0" title="10" > - + 10 @@ -4828,7 +4854,9 @@ exports[`renders ./components/table/demo/ellipsis.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -5126,7 +5154,9 @@ exports[`renders ./components/table/demo/ellipsis-custom-tooltip.md correctly 1` tabindex="0" title="1" > - + 1 @@ -5419,7 +5449,9 @@ exports[`renders ./components/table/demo/expand.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -5715,7 +5747,9 @@ Array [ tabindex="0" title="1" > - + 1 @@ -6084,7 +6118,9 @@ exports[`renders ./components/table/demo/fixed-columns.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -6996,7 +7032,9 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] = tabindex="0" title="1" > - + 1 @@ -7005,7 +7043,9 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] = tabindex="0" title="2" > - + 2 @@ -7014,7 +7054,9 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] = tabindex="0" title="3" > - + 3 @@ -7023,7 +7065,9 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] = tabindex="0" title="4" > - + 4 @@ -7032,7 +7076,9 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] = tabindex="0" title="5" > - + 5 @@ -7080,7 +7126,9 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] = tabindex="0" title="10" > - + 10 @@ -8313,7 +8361,9 @@ exports[`renders ./components/table/demo/fixed-header.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -8322,7 +8372,9 @@ exports[`renders ./components/table/demo/fixed-header.md correctly 1`] = ` tabindex="0" title="2" > - + 2 @@ -9215,7 +9267,9 @@ exports[`renders ./components/table/demo/grouping-columns.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -9224,7 +9278,9 @@ exports[`renders ./components/table/demo/grouping-columns.md correctly 1`] = ` tabindex="0" title="2" > - + 2 @@ -9233,7 +9289,9 @@ exports[`renders ./components/table/demo/grouping-columns.md correctly 1`] = ` tabindex="0" title="3" > - + 3 @@ -9242,7 +9300,9 @@ exports[`renders ./components/table/demo/grouping-columns.md correctly 1`] = ` tabindex="0" title="4" > - + 4 @@ -9251,7 +9311,9 @@ exports[`renders ./components/table/demo/grouping-columns.md correctly 1`] = ` tabindex="0" title="5" > - + 5 @@ -9299,7 +9361,9 @@ exports[`renders ./components/table/demo/grouping-columns.md correctly 1`] = ` tabindex="0" title="10" > - + 10 @@ -9809,7 +9873,9 @@ exports[`renders ./components/table/demo/head.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -10154,7 +10220,9 @@ exports[`renders ./components/table/demo/jsx.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -10570,7 +10638,9 @@ exports[`renders ./components/table/demo/multiple-sorter.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -10981,7 +11051,9 @@ Array [ tabindex="0" title="1" > - + 1 @@ -11299,7 +11371,9 @@ exports[`renders ./components/table/demo/nested-table.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -11561,7 +11635,9 @@ exports[`renders ./components/table/demo/pagination.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -11844,7 +11920,9 @@ exports[`renders ./components/table/demo/pagination.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -12368,7 +12446,9 @@ Array [ tabindex="0" title="1" > - + 1 @@ -12699,7 +12779,9 @@ exports[`renders ./components/table/demo/resizable-column.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -12838,7 +12920,9 @@ exports[`renders ./components/table/demo/responsive.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -13219,7 +13303,9 @@ exports[`renders ./components/table/demo/row-selection.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -13791,7 +13877,9 @@ exports[`renders ./components/table/demo/row-selection-and-operation.md correctl tabindex="0" title="1" > - + 1 @@ -13800,7 +13888,9 @@ exports[`renders ./components/table/demo/row-selection-and-operation.md correctl tabindex="0" title="2" > - + 2 @@ -13809,7 +13899,9 @@ exports[`renders ./components/table/demo/row-selection-and-operation.md correctl tabindex="0" title="3" > - + 3 @@ -13818,7 +13910,9 @@ exports[`renders ./components/table/demo/row-selection-and-operation.md correctl tabindex="0" title="4" > - + 4 @@ -13827,7 +13921,9 @@ exports[`renders ./components/table/demo/row-selection-and-operation.md correctl tabindex="0" title="5" > - + 5 @@ -14410,7 +14506,9 @@ exports[`renders ./components/table/demo/row-selection-custom.md correctly 1`] = tabindex="0" title="1" > - + 1 @@ -14419,7 +14517,9 @@ exports[`renders ./components/table/demo/row-selection-custom.md correctly 1`] = tabindex="0" title="2" > - + 2 @@ -14428,7 +14528,9 @@ exports[`renders ./components/table/demo/row-selection-custom.md correctly 1`] = tabindex="0" title="3" > - + 3 @@ -14437,7 +14539,9 @@ exports[`renders ./components/table/demo/row-selection-custom.md correctly 1`] = tabindex="0" title="4" > - + 4 @@ -14446,7 +14550,9 @@ exports[`renders ./components/table/demo/row-selection-custom.md correctly 1`] = tabindex="0" title="5" > - + 5 @@ -14805,7 +14911,9 @@ exports[`renders ./components/table/demo/row-selection-custom-debug.md correctly tabindex="0" title="1" > - + 1 @@ -14814,7 +14922,9 @@ exports[`renders ./components/table/demo/row-selection-custom-debug.md correctly tabindex="0" title="2" > - + 2 @@ -14823,7 +14933,9 @@ exports[`renders ./components/table/demo/row-selection-custom-debug.md correctly tabindex="0" title="3" > - + 3 @@ -14832,7 +14944,9 @@ exports[`renders ./components/table/demo/row-selection-custom-debug.md correctly tabindex="0" title="4" > - + 4 @@ -14841,7 +14955,9 @@ exports[`renders ./components/table/demo/row-selection-custom-debug.md correctly tabindex="0" title="5" > - + 5 @@ -15042,7 +15158,9 @@ exports[`renders ./components/table/demo/size.md correctly 1`] = ` tabindex="0" title="1" > - + 1 @@ -15239,7 +15357,9 @@ exports[`renders ./components/table/demo/size.md correctly 1`] = ` tabindex="0" title="1" > - + 1 diff --git a/components/transfer/__tests__/__snapshots__/demo.test.js.snap b/components/transfer/__tests__/__snapshots__/demo.test.js.snap index 194e8c98c0..091df64e1a 100644 --- a/components/transfer/__tests__/__snapshots__/demo.test.js.snap +++ b/components/transfer/__tests__/__snapshots__/demo.test.js.snap @@ -3763,7 +3763,9 @@ Array [ tabindex="0" title="1" > - + 1 @@ -3772,7 +3774,9 @@ Array [ tabindex="0" title="2" > - + 2 @@ -4198,7 +4202,9 @@ Array [ tabindex="0" title="1" > - + 1 From 96f8c04911a6dd4852e40406236b51d920fe1eb2 Mon Sep 17 00:00:00 2001 From: Scott Goci Date: Fri, 17 Jul 2020 04:42:52 -0400 Subject: [PATCH 07/18] docs: Update faq.en-US.md (#25675) * Update faq.en-US.md Updating a bit of wording and making flow a bit more clear * Update faq.en-US.md * Update faq.en-US.md Few more wording changes based on suggestions --- docs/react/faq.en-US.md | 74 +++++++++++++++++++++-------------------- 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/docs/react/faq.en-US.md b/docs/react/faq.en-US.md index 7cfa5c0ad5..71a498bcfc 100644 --- a/docs/react/faq.en-US.md +++ b/docs/react/faq.en-US.md @@ -7,49 +7,51 @@ Here are the frequently asked questions about Ant Design and antd that you shoul --- -### Are you going to provide Sass/Stylus(etc.) style file? +### Will you provide Sass/Stylus(etc.) style files in addition to the Less style files currently included? -No plan, but you can convert Less to Sass/Stylus(etc.) with tools that you can find on Google. +There is currently no plan to add support for Sass/Stylus(etc.) style files, but using tools on Google you can easily convert the provided Less files to your desired style format. ### `Select Dropdown DatePicker TimePicker Popover Popconfirm` disappears when I click another popup component inside it. How do I resolve this? -This has been fixed since `3.11.x`. If you're using an older version, you can use ` trigger.parentElement}>` to render a component inside Popover. (Or other `getXxxxContainer` props) https://ant.design/components/select/#Select-props -related issue: [#3487](https://github.com/ant-design/ant-design/issues/3487) [#3438](https://github.com/ant-design/ant-design/issues/3438) +Related issue: [#3487](https://github.com/ant-design/ant-design/issues/3487) [#3438](https://github.com/ant-design/ant-design/issues/3438) -### `Select Dropdown DatePicker TimePicker Popover Popconfirm` scrolls with the page? +### How do I prevent `Select Dropdown DatePicker TimePicker Popover Popconfirm` scrolling with the page? Use `
Date: Mon, 20 Jul 2020 17:18:42 +0800 Subject: [PATCH 17/18] fix: update rc-input-number@5.1.1 && onBlur should get value '' when clear the data (#25704) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4b0dc676d0..8380125291 100644 --- a/package.json +++ b/package.json @@ -123,7 +123,7 @@ "rc-drawer": "~4.1.0", "rc-dropdown": "~3.1.2", "rc-field-form": "~1.5.0", - "rc-input-number": "~5.1.0", + "rc-input-number": "~5.1.1", "rc-mentions": "~1.4.0", "rc-menu": "~8.5.0", "rc-notification": "~4.4.0", From e3ff370666c60163bbc29d6b87283f4776201b95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BF=A1=E9=91=AB-King?= Date: Mon, 20 Jul 2020 17:58:55 +0800 Subject: [PATCH 18/18] docs: changelog 4.4.3 (#25695) * docs: changelog 4.4.3 * chore: docs format * chore: date * docs: changelog format * docs: changelog * Update CHANGELOG.en-US.md Co-authored-by: xrkffgg * Update CHANGELOG.zh-CN.md Co-authored-by: xrkffgg * chore: version Co-authored-by: xrkffgg --- CHANGELOG.en-US.md | 14 ++++++++++++++ CHANGELOG.zh-CN.md | 14 ++++++++++++++ package.json | 2 +- 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 823b46fdf8..c582212534 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -15,6 +15,20 @@ timeline: true --- +## 4.4.3 + +`2020-07-20` + +- 🐞 Fix Layout `trigger` cannot customize zero width to trigger. [#25653](https://github.com/ant-design/ant-design/pull/25653) +- 🐞 Fix Form.Item `help` style when verification fails. [#25582](https://github.com/ant-design/ant-design/pull/25582) [@zhangchen915](https://github.com/zhangchen915) +- 🐞 Fix Descriptions abnormal style inside Table `expandedRowRender`. [#25593](https://github.com/ant-design/ant-design/pull/25593) +- 💄 Add `@zindex-popconfirm: 1060` less variable, and improve `@zindex-tooltip` into `1070`. [#25693](https://github.com/ant-design/ant-design/pull/25693) +- 🛠 Upgrade `react-slick` to reduce bundle size. [#25599](https://github.com/ant-design/ant-design/pull/25599) +- 🌐 Improve Catalan ca_ES localization. [#25583](https://github.com/ant-design/ant-design/pull/25583) [@albertms10](https://github.com/albertms10) +- 🇸🇦 Improve ar_EG localization. [#25587](https://github.com/ant-design/ant-design/pull/25587) [@amir5000](https://github.com/amir5000) +- TypeScript + - 🐞 Fix Upload `customRequest` file interface. [#25598](https://github.com/ant-design/ant-design/pull/25598) [@AlbertAZ1992](https://github.com/AlbertAZ1992) + ## 4.4.2 `2020-07-11` diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 301a99d6cb..9f272568ad 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -15,6 +15,20 @@ timeline: true --- +## 4.4.3 + +`2020-07-20` + +- 🐞 修复 Layout `trigger` 属性无法定制零宽触发器的问题。[#25653](https://github.com/ant-design/ant-design/pull/25653) +- 🐞 修复 Form.Item `help` 在校验失败时的样式。[#25582](https://github.com/ant-design/ant-design/pull/25582) [@zhangchen915](https://github.com/zhangchen915) +- 🐞 修复 Descriptions 在 Table `expandedRowRender` 样式异常的问题。[#25593](https://github.com/ant-design/ant-design/pull/25593) +- 💄 新增 `@zindex-popconfirm: 1060` less 变量,并将 `@zindex-tooltip` 提升为 `1070`。[#25693](https://github.com/ant-design/ant-design/pull/25693) +- 🛠 更新 `react-slick` 依赖优化包大小。[#25599](https://github.com/ant-design/ant-design/pull/25599) +- 🌐 改进加泰罗尼亚语 ca_ES 国际化。[#25583](https://github.com/ant-design/ant-design/pull/25583) [@albertms10](https://github.com/albertms10) +- 🇸🇦 改进阿拉伯语 ar_EG 国际化。[#25587](https://github.com/ant-design/ant-design/pull/25587) [@amir5000](https://github.com/amir5000) +- TypeScript + - 🐞 修复 Upload `customRequest` 的 File 定义。[#25598](https://github.com/ant-design/ant-design/pull/25598) [@AlbertAZ1992](https://github.com/AlbertAZ1992) + ## 4.4.2 `2020-07-11` diff --git a/package.json b/package.json index 8380125291..7cdf788f73 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "antd", - "version": "4.4.2", + "version": "4.4.3", "description": "An enterprise-class UI design language and React components implementation", "keywords": [ "ant",