@cloud-ru/ds-uikit-product-fields-predefined 1.0.8-preview-04507fc5.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/README.md +4 -2
- package/dist/cjs/components/FieldChat/types.d.ts +1 -1
- package/dist/cjs/components/FieldSelectCreate/useSelectDataStates.js +1 -1
- package/dist/esm/components/FieldChat/types.d.ts +1 -1
- package/dist/esm/components/FieldSelectCreate/useSelectDataStates.js +2 -2
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +16 -16
- package/src/components/FieldChat/types.ts +2 -1
- package/src/components/FieldSelectCreate/useSelectDataStates.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-ru/ds-uikit-product-fields-predefined",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Набор предопределённых полей формы поверх @ds/fields — телефон, маски, имя, описание, код и другие готовые сценарии ввода.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -44,21 +44,21 @@
|
|
|
44
44
|
"imask": "^7.6.1",
|
|
45
45
|
"merge-refs": "^2.0.0",
|
|
46
46
|
"react-imask": "^7.6.1",
|
|
47
|
-
"@cloud-ru/ds-
|
|
48
|
-
"@cloud-ru/ds-
|
|
49
|
-
"@cloud-ru/ds-
|
|
50
|
-
"@cloud-ru/ds-
|
|
51
|
-
"@cloud-ru/ds-dropzone": "1.0.1",
|
|
52
|
-
"@cloud-ru/ds-fields": "
|
|
53
|
-
"@cloud-ru/ds-field-decorator": "1.0.
|
|
54
|
-
"@cloud-ru/ds-
|
|
55
|
-
"@cloud-ru/ds-
|
|
56
|
-
"@cloud-ru/ds-
|
|
57
|
-
"@cloud-ru/ds-locale": "1.0.0",
|
|
58
|
-
"@cloud-ru/ds-modal": "1.0.3
|
|
59
|
-
"@cloud-ru/ds-
|
|
60
|
-
"@cloud-ru/ds-
|
|
61
|
-
"@cloud-ru/ds-
|
|
47
|
+
"@cloud-ru/ds-adaptive": "^1.0.1",
|
|
48
|
+
"@cloud-ru/ds-attachment": "^1.1.0",
|
|
49
|
+
"@cloud-ru/ds-button": "^1.0.1",
|
|
50
|
+
"@cloud-ru/ds-drawer": "^1.0.4",
|
|
51
|
+
"@cloud-ru/ds-dropzone": "^1.0.1",
|
|
52
|
+
"@cloud-ru/ds-fields": "^2.0.0",
|
|
53
|
+
"@cloud-ru/ds-field-decorator": "^1.0.3",
|
|
54
|
+
"@cloud-ru/ds-list": "^2.0.1",
|
|
55
|
+
"@cloud-ru/ds-input-private": "^1.0.2",
|
|
56
|
+
"@cloud-ru/ds-icons": "^1.0.2",
|
|
57
|
+
"@cloud-ru/ds-locale": "^1.0.0",
|
|
58
|
+
"@cloud-ru/ds-modal": "^1.0.3",
|
|
59
|
+
"@cloud-ru/ds-scroll": "^1.0.2",
|
|
60
|
+
"@cloud-ru/ds-tooltip": "^1.0.3",
|
|
61
|
+
"@cloud-ru/ds-utils": "^1.1.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"react-hook-form": "^7.79.0",
|
|
@@ -4,7 +4,7 @@ import { FieldTextAreaProps } from '@cloud-ru/ds-fields';
|
|
|
4
4
|
|
|
5
5
|
export type FieldChatProps = Omit<
|
|
6
6
|
FieldTextAreaProps,
|
|
7
|
-
// minRows/maxRows
|
|
7
|
+
// minRows/maxRows/кнопка копирования/onKeyDown зафиксированы внутри FieldChat и в API не выносятся.
|
|
8
8
|
| 'placeholder'
|
|
9
9
|
| 'hint'
|
|
10
10
|
| 'label'
|
|
@@ -15,6 +15,7 @@ export type FieldChatProps = Omit<
|
|
|
15
15
|
| 'minRows'
|
|
16
16
|
| 'maxRows'
|
|
17
17
|
| 'showCopyButton'
|
|
18
|
+
| 'showCopyButtonInEditMode'
|
|
18
19
|
| 'onKeyDown'
|
|
19
20
|
> & {
|
|
20
21
|
/** Колбек действия при отправке */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APPEARANCE, Button, ICON_POSITION, VIEW } from '@cloud-ru/ds-button';
|
|
2
2
|
import { FieldSelectSingleProps } from '@cloud-ru/ds-fields';
|
|
3
|
-
import {
|
|
3
|
+
import { CrossSVG, SearchSVG, UpdateSVG } from '@cloud-ru/ds-icons/interface/system';
|
|
4
4
|
import { useMemo } from 'react';
|
|
5
5
|
|
|
6
6
|
import { TEST_IDS } from '../../constants';
|
|
@@ -37,7 +37,7 @@ export function useSelectDataStates({ entityName, entityIcon, onRefetch }: Props
|
|
|
37
37
|
),
|
|
38
38
|
},
|
|
39
39
|
errorDataState: {
|
|
40
|
-
icon: { icon:
|
|
40
|
+
icon: { icon: CrossSVG, appearance: 'neutral' },
|
|
41
41
|
description: `${t('FieldSelectCreate.loadError')} ${entityName.plural.toLocaleLowerCase()}`,
|
|
42
42
|
footer: onRefetch ? (
|
|
43
43
|
<Button
|