indicator-ui 0.0.292 → 0.0.294

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.
@@ -18,7 +18,14 @@ export type DropdownItemPropsType = {
18
18
  * Иначе показывает пользовательский компонент.
19
19
  * */
20
20
  supportingText?: React.ReactNode | string;
21
- showIcon?: React.ReactNode;
21
+ /**
22
+ * При добавление ```{component: React.ReactNode}``` вставит компонент без своих стилей.
23
+ *
24
+ * Иначе просто
25
+ * */
26
+ showIcon?: React.ReactNode | {
27
+ component: React.ReactNode;
28
+ };
22
29
  /**
23
30
  * Если передан `false`, то не покажет `user`.
24
31
  * */
@@ -5,7 +5,7 @@ import { SelectFieldPropsType } from '../../SelectField';
5
5
  import { TextareaFieldPropsType } from '../../TextareaField';
6
6
  import { InputFieldWrapperPropsType } from "../../InputFieldWrapper";
7
7
  import { DateFieldPropsType, DateTimeFieldPropsType, TimeFieldPropsType } from "../../DateTimeField";
8
- import { DateTimeRangeFieldPropsType } from "../../DateTimeRangeField";
8
+ import { DateRangeFieldPropsType, DateTimeRangeFieldPropsType, TimeRangeFieldPropsType } from "../../DateTimeRangeField";
9
9
  export type SwitcherFieldType = 'switcher';
10
10
  export type SelectFieldType = 'select';
11
11
  export type RadioFieldType = 'radio';
@@ -41,8 +41,8 @@ export type InputFieldPropsType<FieldData = unknown, Multiple extends boolean =
41
41
  type: 'datetime-range';
42
42
  } & DateTimeRangeFieldPropsType) | ({
43
43
  type: 'date-range';
44
- } & DateTimeRangeFieldPropsType) | ({
44
+ } & DateRangeFieldPropsType) | ({
45
45
  type: 'time-range';
46
- } & DateTimeRangeFieldPropsType) | ({
46
+ } & TimeRangeFieldPropsType) | ({
47
47
  type?: Exclude<string, InputFieldTypes>;
48
48
  } & FlexFieldPropsType)) & InputFieldBasePropsType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.0.292",
3
+ "version": "0.0.294",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/src/index.d.ts",
6
6
  "style": "dist/index.css",
@@ -62,7 +62,8 @@
62
62
  "typescript": "^5.7.3",
63
63
  "webpack": "^5.97.1",
64
64
  "webpack-cli": "^6.0.1",
65
- "webpack-dev-server": "^5.2.0"
65
+ "webpack-dev-server": "^5.2.0",
66
+ "@types/lodash": "^4.17.20"
66
67
  },
67
68
  "peerDependencies": {
68
69
  "react": ">=18.0.0",
@@ -72,5 +73,6 @@
72
73
  "files": [
73
74
  "dist",
74
75
  "docs"
75
- ]
76
+ ],
77
+ "dependencies": {}
76
78
  }