@pushwoosh/dumb-components 1.1.34 → 1.1.35
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/SendRate/SendRateEdit.d.ts +1 -13
- package/SendRate/SendRateReadonly.d.ts +1 -10
- package/SendRate/index.d.ts +3 -2
- package/SendRate/types.d.ts +21 -0
- package/package.json +1 -1
|
@@ -1,15 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type SendRateBase } from './types';
|
|
3
|
-
export type SendRateEditProps<T extends SendRateBase> = {
|
|
4
|
-
sendRate: T;
|
|
5
|
-
globalSendRate: {
|
|
6
|
-
count: number;
|
|
7
|
-
seconds: number;
|
|
8
|
-
};
|
|
9
|
-
onChange: (newSendRateState: T) => void;
|
|
10
|
-
editGlobalClicked: () => void;
|
|
11
|
-
applicationCode: string;
|
|
12
|
-
minValue: number;
|
|
13
|
-
maxValue: number;
|
|
14
|
-
};
|
|
2
|
+
import { type SendRateEditProps, type SendRateBase } from './types';
|
|
15
3
|
export declare function SendRateEdit<T extends SendRateBase>({ sendRate, globalSendRate, onChange, applicationCode, minValue, maxValue, editGlobalClicked, }: SendRateEditProps<T>): React.JSX.Element;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type SendRateBase } from './types';
|
|
3
|
-
export type SendRateReadonlyProps<T extends SendRateBase> = {
|
|
4
|
-
sendRate: T;
|
|
5
|
-
globalSendRate: {
|
|
6
|
-
count: number;
|
|
7
|
-
seconds: number;
|
|
8
|
-
};
|
|
9
|
-
applicationCode: string;
|
|
10
|
-
editGlobalClicked: () => void;
|
|
11
|
-
};
|
|
2
|
+
import { type SendRateReadonlyProps, type SendRateBase } from './types';
|
|
12
3
|
export declare function SendRateReadonly<T extends SendRateBase>({ sendRate, globalSendRate, applicationCode, editGlobalClicked }: SendRateReadonlyProps<T>): React.JSX.Element;
|
package/SendRate/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { SendRateEdit
|
|
2
|
-
export { SendRateReadonly
|
|
1
|
+
export { SendRateEdit } from './SendRateEdit';
|
|
2
|
+
export { SendRateReadonly } from './SendRateReadonly';
|
|
3
|
+
export type { SendRateBase, SendRateEditProps, SendRateReadonlyProps } from './types';
|
package/SendRate/types.d.ts
CHANGED
|
@@ -7,3 +7,24 @@ export type SendRateOption = {
|
|
|
7
7
|
label: string;
|
|
8
8
|
value: SendRatePolicy;
|
|
9
9
|
};
|
|
10
|
+
export type SendRateEditProps<T extends SendRateBase> = {
|
|
11
|
+
sendRate: T;
|
|
12
|
+
globalSendRate: {
|
|
13
|
+
count: number;
|
|
14
|
+
seconds: number;
|
|
15
|
+
};
|
|
16
|
+
onChange: (newSendRateState: T) => void;
|
|
17
|
+
editGlobalClicked: () => void;
|
|
18
|
+
applicationCode: string;
|
|
19
|
+
minValue: number;
|
|
20
|
+
maxValue: number;
|
|
21
|
+
};
|
|
22
|
+
export type SendRateReadonlyProps<T extends SendRateBase> = {
|
|
23
|
+
sendRate: T;
|
|
24
|
+
globalSendRate: {
|
|
25
|
+
count: number;
|
|
26
|
+
seconds: number;
|
|
27
|
+
};
|
|
28
|
+
applicationCode: string;
|
|
29
|
+
editGlobalClicked: () => void;
|
|
30
|
+
};
|