From 7728eec447c078616050f81737012ea77a82d758 Mon Sep 17 00:00:00 2001 From: Sonu Sharma Date: Sat, 19 Nov 2022 20:26:58 +0530 Subject: [PATCH] docs: spelling and grammar fix (#38743) --- components/cascader/index.en-US.md | 2 +- components/drawer/index.en-US.md | 2 +- .../form/__tests__/__snapshots__/demo-extend.test.ts.snap | 4 ++-- components/form/__tests__/__snapshots__/demo.test.ts.snap | 4 ++-- components/form/demo/disabled.tsx | 2 +- components/form/index.en-US.md | 2 +- components/layout/index.en-US.md | 2 +- components/modal/index.en-US.md | 2 +- components/select/index.en-US.md | 2 +- components/slider/index.en-US.md | 2 +- components/tour/index.en-US.md | 2 +- components/transfer/index.en-US.md | 2 +- docs/react/faq.en-US.md | 2 +- docs/react/i18n.en-US.md | 2 +- 14 files changed, 16 insertions(+), 16 deletions(-) diff --git a/components/cascader/index.en-US.md b/components/cascader/index.en-US.md index f4f11bee2a..a5efa601a7 100644 --- a/components/cascader/index.en-US.md +++ b/components/cascader/index.en-US.md @@ -82,7 +82,7 @@ Cascade selection box. | searchValue | Set search value,Need work with `showSearch` | string | - | 4.17.0 | | onSearch | The callback function triggered when input changed | (search: string) => void | - | 4.17.0 | | dropdownMenuColumnStyle | The style of the drop-down menu column | CSSProperties | - | | -| loadingIcon | The apparence of lazy loading (now is useless) | ReactNode | - | | +| loadingIcon | The appearance of lazy loading (now is useless) | ReactNode | - | | ### showSearch diff --git a/components/drawer/index.en-US.md b/components/drawer/index.en-US.md index 9b167cc796..ebc5f19672 100644 --- a/components/drawer/index.en-US.md +++ b/components/drawer/index.en-US.md @@ -51,7 +51,7 @@ A Drawer is a panel that is typically overlaid on top of a page and slides in fr | extra | Extra actions area at corner | ReactNode | - | 4.17.0 | | footer | The footer for Drawer | ReactNode | - | | | footerStyle | Style of the drawer footer part | CSSProperties | - | | -| forceRender | Prerender Drawer component forcely | boolean | false | | +| forceRender | Pre-render Drawer component forcibly | boolean | false | | | getContainer | mounted node and display window for Drawer | HTMLElement \| () => HTMLElement \| Selectors \| false | body | | | headerStyle | Style of the drawer header part | CSSProperties | - | | | height | Placement is `top` or `bottom`, height of the Drawer dialog | string \| number | 378 | | diff --git a/components/form/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/form/__tests__/__snapshots__/demo-extend.test.ts.snap index 4251143f16..8b1ba9a443 100644 --- a/components/form/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/form/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -2393,9 +2393,9 @@ Array [
- Chekbox + Checkbox
{ onValuesChange={onFormLayoutChange} disabled={componentDisabled} > - + Checkbox diff --git a/components/form/index.en-US.md b/components/form/index.en-US.md index f9f5c5b6af..043a6faf33 100644 --- a/components/form/index.en-US.md +++ b/components/form/index.en-US.md @@ -134,7 +134,7 @@ Form field component for data bidirectional binding, validation, layout, and so | shouldUpdate | Custom field update logic. See [below](#shouldUpdate) | boolean \| (prevValue, curValue) => boolean | false | | | tooltip | Config tooltip info | ReactNode \| [TooltipProps & { icon: ReactNode }](/components/tooltip#API) | - | 4.7.0 | | trigger | When to collect the value of children node. Click [here](#components-form-demo-customized-form-controls) to see an example | string | `onChange` | | -| validateFirst | Whether stop validate on first rule of error for this field. Will parallel validate when `parallel` cofigured | boolean \| `parallel` | false | `parallel`: 4.5.0 | +| validateFirst | Whether stop validate on first rule of error for this field. Will parallel validate when `parallel` configured | boolean \| `parallel` | false | `parallel`: 4.5.0 | | validateStatus | The validation status. If not provided, it will be generated by validation rule. options: `success` `warning` `error` `validating` | string | - | | | validateTrigger | When to validate the value of children node | string \| string\[] | `onChange` | | | valuePropName | Props of children node, for example, the prop of Switch is 'checked'. This prop is an encapsulation of `getValueProps`, which will be invalid after customizing `getValueProps` | string | `value` | | diff --git a/components/layout/index.en-US.md b/components/layout/index.en-US.md index 844f8309ec..c06f12eef3 100644 --- a/components/layout/index.en-US.md +++ b/components/layout/index.en-US.md @@ -43,7 +43,7 @@ Style of a navigation should conform to its level. - **Enlarge the size of the font** - `12px`, `14px` is a standard font size of navigations, `14px` is used for the first and the second level of the navigation. You can choose an appropriate font size regarding the level of your navigation. + `12px`, `14px` is a standard font size of navigation's, `14px` is used for the first and the second level of the navigation. You can choose an appropriate font size regarding the level of your navigation. ## Component Overview diff --git a/components/modal/index.en-US.md b/components/modal/index.en-US.md index 694dfb1777..c82fc527a2 100644 --- a/components/modal/index.en-US.md +++ b/components/modal/index.en-US.md @@ -69,7 +69,7 @@ When requiring users to interact with the application, but without jumping to a #### Note -- The state of Modal will be preserved at it's component lifecycle by default, if you wish to open it with a brand new state everytime, set `destroyOnClose` on it. +- The state of Modal will be preserved at it's component lifecycle by default, if you wish to open it with a brand new state every time, set `destroyOnClose` on it. - There is a situation that using `` with Form, which won't clear fields value when closing Modal even you have set `destroyOnClose`. You need `
` in this case. - `Modal.method()` RTL mode only supports hooks. diff --git a/components/select/index.en-US.md b/components/select/index.en-US.md index 7a26f1799d..6ff669cd91 100644 --- a/components/select/index.en-US.md +++ b/components/select/index.en-US.md @@ -89,7 +89,7 @@ Select component to select value from options. | removeIcon | The custom remove icon | ReactNode | - | | | searchValue | The current input "search" text | string | - | | | showArrow | Whether to show the drop-down arrow | boolean | true(for single select), false(for multiple select) | | -| showSearch | Whether select is searchable | boolean | single: false, multple: true | | +| showSearch | Whether select is searchable | boolean | single: false, multiple: true | | | size | Size of Select input | `large` \| `middle` \| `small` | `middle` | | | status | Set validation status | 'error' \| 'warning' | - | 4.19.0 | | suffixIcon | The custom suffix icon | ReactNode | - | | diff --git a/components/slider/index.en-US.md b/components/slider/index.en-US.md index 28156158f8..7457dd1f1f 100644 --- a/components/slider/index.en-US.md +++ b/components/slider/index.en-US.md @@ -33,7 +33,7 @@ To input a value in a range. | --- | --- | --- | --- | --- | | autoFocus | Whether get focus when component mounted | boolean | false | | | defaultValue | The default value of slider. When `range` is false, use number, otherwise, use \[number, number] | number \| \[number, number] | 0 \| \[0, 0] | | -| disabled | If true, the slider will not be interactable | boolean | false | | +| disabled | If true, the slider will not be intractable | boolean | false | | | dots | Whether the thumb can drag over tick only | boolean | false | | | included | Make effect when `marks` not null, true means containment and false means coordinative | boolean | true | | | marks | Tick mark of Slider, type of key must be `number`, and must in closed interval \[min, max], each mark can declare its own style | object | { number: ReactNode } \| { number: { style: CSSProperties, label: ReactNode } } | | diff --git a/components/tour/index.en-US.md b/components/tour/index.en-US.md index c88f8172d7..98fcbb888b 100644 --- a/components/tour/index.en-US.md +++ b/components/tour/index.en-US.md @@ -27,7 +27,7 @@ Use when you want to guide users through a product. | Property | Description | Type | Default | Version | | --- | --- | --- | --- | --- | -| arrow | Whether to show the arrow, including the configuration whether to point to the center of the elemen | `boolean`\|`{ pointAtCenter: boolean}` | `true` | | +| arrow | Whether to show the arrow, including the configuration whether to point to the center of the element | `boolean`\|`{ pointAtCenter: boolean}` | `true` | | | placement | Position of the guide card relative to the target element | `left` `leftTop` `leftBottom` `right` `rightTop` `rightBottom` `top` `topLeft` `topRight` `bottom` `bottomLeft` `bottomRight` | `bottom` | | | onClose | Callback function on shutdown | `Function` | - | | | mask | Whether to enable masking | `boolean` | `true` | | diff --git a/components/transfer/index.en-US.md b/components/transfer/index.en-US.md index 6c473c00a5..e271674520 100644 --- a/components/transfer/index.en-US.md +++ b/components/transfer/index.en-US.md @@ -45,7 +45,7 @@ One or more elements can be selected from either column, one click on the proper | operationStyle | A custom CSS style used for rendering the operations column | object | - | | | pagination | Use pagination. Not work in render props | boolean \| { pageSize: number, simple: boolean, showSizeChanger?: boolean, showLessItems?: boolean } | false | 4.3.0 | | render | The function to generate the item shown on a column. Based on an record (element of the dataSource array), this function should return a React element which is generated from that record. Also, it can return a plain object with `value` and `label`, `label` is a React element and `value` is for title | (record) => ReactNode | - | | -| selectAllLabels | A set of customized labels for select all checkboxs on the header | (ReactNode \| (info: { selectedCount: number, totalCount: number }) => ReactNode)\[] | - | | +| selectAllLabels | A set of customized labels for select all checkboxes on the header | (ReactNode \| (info: { selectedCount: number, totalCount: number }) => ReactNode)\[] | - | | | selectedKeys | A set of keys of selected items | string\[] | \[] | | | showSearch | If included, a search box is shown on each column | boolean | false | | | showSelectAll | Show select all checkbox on the header | boolean | true | | diff --git a/docs/react/faq.en-US.md b/docs/react/faq.en-US.md index 4f54c5779e..9d323be4c4 100644 --- a/docs/react/faq.en-US.md +++ b/docs/react/faq.en-US.md @@ -149,7 +149,7 @@ In a real world development, you may need a `YearPicker`, `MonthRangePicker` or - Reproduction link: https://codesandbox.io/s/dank-brook-v1csy - Same issues:[#15572](https://github.com/ant-design/ant-design/issues/15572), [#16436](https://github.com/ant-design/ant-design/issues/16436), [#11938](https://github.com/ant-design/ant-design/issues/11938), [#11735](https://github.com/ant-design/ant-design/issues/11735), [#11586](https://github.com/ant-design/ant-design/issues/11586), [#10425](https://github.com/ant-design/ant-design/issues/10425), [#11053](https://github.com/ant-design/ant-design/issues/11053) -Like [the explaination](https://github.com/ant-design/ant-design/issues/11586#issuecomment-429189877) explains, this is because `` does not equal the `YearPicker`, nor is `` equal to `MonthRangePicker`. The `mode` property was added to support [showing time picker panel in DatePicker](https://github.com/ant-design/ant-design/issues/5190) in antd 3.0, which simply controls the displayed panel, and won't change the original date picking behavior of `DatePicker`/`RangePicker` (for instance you will still need to click date cell to finish selection in a `DatePicker`, whatever the `mode` is). +Like [the explanation](https://github.com/ant-design/ant-design/issues/11586#issuecomment-429189877) explains, this is because `` does not equal the `YearPicker`, nor is `` equal to `MonthRangePicker`. The `mode` property was added to support [showing time picker panel in DatePicker](https://github.com/ant-design/ant-design/issues/5190) in antd 3.0, which simply controls the displayed panel, and won't change the original date picking behavior of `DatePicker`/`RangePicker` (for instance you will still need to click date cell to finish selection in a `DatePicker`, whatever the `mode` is). Likewise,`disabledDate` [cannot work on year/month panels](https://github.com/ant-design/ant-design/issues/9008#issuecomment-358554118) of ``, but only on cells of date panel. diff --git a/docs/react/i18n.en-US.md b/docs/react/i18n.en-US.md index 0ad0b68334..0a9753226a 100644 --- a/docs/react/i18n.en-US.md +++ b/docs/react/i18n.en-US.md @@ -101,7 +101,7 @@ See more usage at [ConfigProvider](/components/config-provider). ## Adding new language -If your language is not in above list, feel free to create a locale package based on the [en_US](https://github.com/ant-design/ant-design/blob/master/components/locale/en_US.tsx) lanugage pack and send us a pull request. For reference, you can refer to the pull request of adding the [Azerbaijani](https://github.com/ant-design/ant-design/pull/21387) language as a sample. +If your language is not in above list, feel free to create a locale package based on the [en_US](https://github.com/ant-design/ant-design/blob/master/components/locale/en_US.tsx) language pack and send us a pull request. For reference, you can refer to the pull request of adding the [Azerbaijani](https://github.com/ant-design/ant-design/pull/21387) language as a sample. Do it step by step: