Skip to content

Commit 121c11e

Browse files
committed
fix: updated inputTypes in core
1 parent 02be4a6 commit 121c11e

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

packages/core/src/declarations.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
declare module '*.module.css' {
22
const classes: { [key: string]: string };
33
export default classes;
4+
}
5+
6+
declare global {
7+
interface Window {
8+
google?: typeof google;
9+
}
410
}

packages/core/src/model/InputType.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,34 @@ export type InputPropertiesTypes =
3838
export type ButtonsProperties = {
3939
inputType: typeof Buttons;
4040
options: {
41-
[key: string]: string;
41+
key: string | undefined;
42+
label: string;
4243
}
44+
defaultValue?: string;
4345
}
4446

4547

4648
export type PhoneProperties = {
4749
inputType: typeof Phone;
50+
defaultValue?: number;
4851
}
4952

5053
export type EmailProperties = {
5154
inputType: typeof Email;
55+
defaultValue?: string;
5256
}
5357

5458
export type MultilineProperties = {
5559
inputType: typeof Multilinetext;
60+
defaultValue?: string;
5661
}
5762

5863
export type RadioProperties = {
5964
inputType: typeof Radio;
6065
options: {
6166
[key: string]: string;
6267
}
68+
defaultValue?: boolean;
6369
direction?: "horizontal" | "vertical";
6470
}
6571

@@ -68,8 +74,10 @@ export type SliderProperties = {
6874
min: number;
6975
max: number;
7076
step: number;
77+
defaultValue?: number;
7178
}
7279

7380
export type TextProperties = {
7481
inputType: typeof Text;
82+
defaultValue?: string;
7583
}

0 commit comments

Comments
 (0)