@sentry/types 8.0.0-rc.2 → 8.0.0-rc.3
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/package.json +1 -1
- package/types/feedback/config.d.ts +15 -3
- package/types/feedback/config.d.ts.map +1 -1
- package/types/feedback/index.d.ts +1 -1
- package/types/feedback/index.d.ts.map +1 -1
- package/types/feedback/theme.d.ts +66 -64
- package/types/feedback/theme.d.ts.map +1 -1
- package/types-ts3.8/feedback/config.d.ts +15 -3
- package/types-ts3.8/feedback/index.d.ts +1 -1
- package/types-ts3.8/feedback/theme.d.ts +66 -64
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/types",
|
|
3
|
-
"version": "8.0.0-rc.
|
|
3
|
+
"version": "8.0.0-rc.3",
|
|
4
4
|
"description": "Types for all Sentry JavaScript SDKs",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/types",
|
|
@@ -37,7 +37,7 @@ export interface FeedbackGeneralConfiguration {
|
|
|
37
37
|
* Should the screen shots field be included?
|
|
38
38
|
* Screen shots cannot be marked as required
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
enableScreenshot: boolean;
|
|
41
41
|
/**
|
|
42
42
|
* Fill in email/name input fields with Sentry user context if it exists.
|
|
43
43
|
* The value of the email/name keys represent the properties of your user context.
|
|
@@ -71,7 +71,7 @@ export interface FeedbackTextConfiguration {
|
|
|
71
71
|
/**
|
|
72
72
|
* The label for the Feedback widget button that opens the dialog
|
|
73
73
|
*/
|
|
74
|
-
|
|
74
|
+
triggerLabel: string;
|
|
75
75
|
/**
|
|
76
76
|
* The label for the Feedback form cancel button that closes dialog
|
|
77
77
|
*/
|
|
@@ -80,6 +80,10 @@ export interface FeedbackTextConfiguration {
|
|
|
80
80
|
* The label for the Feedback form submit button that sends feedback
|
|
81
81
|
*/
|
|
82
82
|
submitButtonLabel: string;
|
|
83
|
+
/**
|
|
84
|
+
* The label for the Screenshot editor cancel buttons
|
|
85
|
+
*/
|
|
86
|
+
confirmButtonLabel: string;
|
|
83
87
|
/**
|
|
84
88
|
* The title of the Feedback form
|
|
85
89
|
*/
|
|
@@ -115,7 +119,15 @@ export interface FeedbackTextConfiguration {
|
|
|
115
119
|
/**
|
|
116
120
|
* Text which indicates that a field is required
|
|
117
121
|
*/
|
|
118
|
-
|
|
122
|
+
isRequiredLabel: string;
|
|
123
|
+
/**
|
|
124
|
+
* The label for the button that adds a screeshot and renders the image editor
|
|
125
|
+
*/
|
|
126
|
+
addScreenshotButtonLabel: string;
|
|
127
|
+
/**
|
|
128
|
+
* The label for the button that removes a screenshot and hides the image editor
|
|
129
|
+
*/
|
|
130
|
+
removeScreenshotButtonLabel: string;
|
|
119
131
|
}
|
|
120
132
|
/**
|
|
121
133
|
* The public callbacks available for the feedback integration
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/feedback/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src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EG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,wBAAwB,EAAE,MAAM,CAAC;IAEjC;;OAEG;IACH,2BAA2B,EAAE,MAAM,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAExB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IAEzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAEnD;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEvC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B"}
|
|
@@ -47,7 +47,7 @@ export interface FeedbackModalIntegration extends Integration {
|
|
|
47
47
|
type HType = unknown;
|
|
48
48
|
type VNode = unknown;
|
|
49
49
|
export interface FeedbackScreenshotIntegration extends Integration {
|
|
50
|
-
createInput: (h: HType, dialog: FeedbackDialog) => {
|
|
50
|
+
createInput: (h: HType, dialog: FeedbackDialog, options: FeedbackInternalOptions) => {
|
|
51
51
|
/**
|
|
52
52
|
* The preact component
|
|
53
53
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/feedback/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,OAAO,KAAK,EACV,iBAAiB,EACjB,4BAA4B,EA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ACrB,KAAK,KAAK,GAAG,OAAO,CAAC;AACrB,MAAM,WAAW,6BAA8B,SAAQ,WAAW;IAChE,WAAW,EAAE,CACX,CAAC,EAAE,KAAK,EACR,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,uBAAuB,KAC7B;QACH;;WAEG;QACH,KAAK,EAAE,CAAC,KAAK,EAAE;YAAE,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;SAAE,KAAK,KAAK,CAAC;QAE7D;;WAEG;QACH,KAAK,EAAE,MAAM,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;KAC9C,CAAC;CACH"}
|
|
@@ -1,34 +1,20 @@
|
|
|
1
1
|
interface BaseStyles {
|
|
2
|
-
/**
|
|
3
|
-
* Font family for widget
|
|
4
|
-
*/
|
|
5
|
-
fontFamily: string;
|
|
6
|
-
/**
|
|
7
|
-
* Font size for widget
|
|
8
|
-
*/
|
|
9
|
-
fontSize: string;
|
|
10
2
|
/**
|
|
11
3
|
* Foreground color (i.e. text color)
|
|
12
4
|
*/
|
|
13
5
|
foreground: string;
|
|
14
|
-
/**
|
|
15
|
-
* Background color for actor and dialog
|
|
16
|
-
*/
|
|
17
|
-
background: string;
|
|
18
6
|
/**
|
|
19
7
|
* Success color
|
|
20
8
|
*/
|
|
21
|
-
|
|
9
|
+
successForeground: string;
|
|
22
10
|
/**
|
|
23
11
|
* Error color
|
|
24
12
|
*/
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
interface ActorAndModal {
|
|
13
|
+
errorForeground: string;
|
|
28
14
|
/**
|
|
29
|
-
*
|
|
15
|
+
* Background color for actor and dialog
|
|
30
16
|
*/
|
|
31
|
-
|
|
17
|
+
background: string;
|
|
32
18
|
/**
|
|
33
19
|
* Border styling for actor and dialog
|
|
34
20
|
*/
|
|
@@ -38,97 +24,113 @@ interface ActorAndModal {
|
|
|
38
24
|
*/
|
|
39
25
|
boxShadow: string;
|
|
40
26
|
}
|
|
41
|
-
interface
|
|
27
|
+
interface Input {
|
|
42
28
|
/**
|
|
43
|
-
*
|
|
29
|
+
* Foreground color for form inputs
|
|
30
|
+
*/
|
|
31
|
+
inputForeground: string;
|
|
32
|
+
/**
|
|
33
|
+
* Background color for form inputs
|
|
44
34
|
*/
|
|
45
|
-
|
|
35
|
+
inputBackground: string;
|
|
46
36
|
/**
|
|
47
|
-
*
|
|
37
|
+
* Background color for form inputs, in the hover state
|
|
48
38
|
*/
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
interface Modal {
|
|
39
|
+
inputBackgroundHover: string;
|
|
52
40
|
/**
|
|
53
|
-
*
|
|
41
|
+
* Background color for form inputs, in the focus state
|
|
54
42
|
*/
|
|
55
|
-
|
|
43
|
+
inputBackgroundFocus: string;
|
|
44
|
+
/**
|
|
45
|
+
* Border styles for form inputs
|
|
46
|
+
*/
|
|
47
|
+
inputBorder: string;
|
|
56
48
|
/**
|
|
57
49
|
* Border radius for form inputs
|
|
58
50
|
*/
|
|
59
|
-
|
|
51
|
+
inputBorderRadius: string;
|
|
52
|
+
/**
|
|
53
|
+
* Border styles for form inputs when focused
|
|
54
|
+
*/
|
|
55
|
+
inputOutlineFocus: string;
|
|
60
56
|
}
|
|
61
|
-
interface
|
|
57
|
+
interface Button {
|
|
62
58
|
/**
|
|
63
|
-
* Foreground color for
|
|
59
|
+
* Foreground color for buttons
|
|
64
60
|
*/
|
|
65
|
-
|
|
61
|
+
buttonForeground: string;
|
|
66
62
|
/**
|
|
67
|
-
*
|
|
63
|
+
* Foreground color for buttons, in the hover state
|
|
68
64
|
*/
|
|
69
|
-
|
|
65
|
+
buttonForegroundHover: string;
|
|
70
66
|
/**
|
|
71
|
-
*
|
|
67
|
+
* Background color for buttons
|
|
72
68
|
*/
|
|
73
|
-
|
|
69
|
+
buttonBackground: string;
|
|
74
70
|
/**
|
|
75
|
-
* Background color when hovering over
|
|
71
|
+
* Background color when hovering over buttons
|
|
76
72
|
*/
|
|
77
|
-
|
|
73
|
+
buttonBackgroundHover: string;
|
|
78
74
|
/**
|
|
79
|
-
* Border style for
|
|
75
|
+
* Border style for buttons
|
|
80
76
|
*/
|
|
81
|
-
|
|
77
|
+
buttonBorder: string;
|
|
82
78
|
/**
|
|
83
|
-
* Border style for
|
|
79
|
+
* Border style for buttons, in the focued state
|
|
84
80
|
*/
|
|
85
|
-
|
|
81
|
+
buttonOutlineFocus: string;
|
|
86
82
|
}
|
|
87
|
-
interface
|
|
83
|
+
interface SubmitButton {
|
|
88
84
|
/**
|
|
89
|
-
* Foreground color for
|
|
85
|
+
* Foreground color for submit buttons
|
|
90
86
|
*/
|
|
91
|
-
|
|
87
|
+
submitForeground: string;
|
|
92
88
|
/**
|
|
93
|
-
*
|
|
89
|
+
* Foreground color for submit buttons, in the hover state
|
|
94
90
|
*/
|
|
95
|
-
|
|
91
|
+
submitForegroundHover: string;
|
|
96
92
|
/**
|
|
97
|
-
*
|
|
93
|
+
* Background color for submit buttons
|
|
98
94
|
*/
|
|
99
|
-
|
|
95
|
+
submitBackground: string;
|
|
100
96
|
/**
|
|
101
|
-
* Background color when hovering over
|
|
97
|
+
* Background color when hovering over submit buttons
|
|
102
98
|
*/
|
|
103
|
-
|
|
99
|
+
submitBackgroundHover: string;
|
|
104
100
|
/**
|
|
105
|
-
* Border style for
|
|
101
|
+
* Border style for submit buttons
|
|
106
102
|
*/
|
|
107
|
-
|
|
103
|
+
submitBorder: string;
|
|
108
104
|
/**
|
|
109
|
-
* Border style for
|
|
105
|
+
* Border style for submit buttons, in the focued state
|
|
110
106
|
*/
|
|
111
|
-
|
|
107
|
+
submitOutlineFocus: string;
|
|
112
108
|
}
|
|
113
|
-
interface
|
|
109
|
+
interface Trigger {
|
|
114
110
|
/**
|
|
115
|
-
* Background color
|
|
111
|
+
* Background color of the actor button
|
|
116
112
|
*/
|
|
117
|
-
|
|
113
|
+
triggerBackground: string;
|
|
118
114
|
/**
|
|
119
|
-
*
|
|
115
|
+
* Background color on hover
|
|
120
116
|
*/
|
|
121
|
-
|
|
117
|
+
triggerBackgroundHover: string;
|
|
122
118
|
/**
|
|
123
|
-
* Border
|
|
119
|
+
* Border radius styling for actor
|
|
124
120
|
*/
|
|
125
|
-
|
|
121
|
+
triggerBorderRadius: string;
|
|
122
|
+
}
|
|
123
|
+
interface Dialog {
|
|
126
124
|
/**
|
|
127
|
-
*
|
|
125
|
+
* Background color of the open dialog
|
|
128
126
|
*/
|
|
129
|
-
|
|
127
|
+
dialogBackground: string;
|
|
128
|
+
/**
|
|
129
|
+
* Border radius for dialog
|
|
130
|
+
*/
|
|
131
|
+
dialogBorderRadius: string;
|
|
130
132
|
}
|
|
131
|
-
export interface FeedbackTheme extends BaseStyles,
|
|
133
|
+
export interface FeedbackTheme extends BaseStyles, Input, Button, SubmitButton, Trigger, Dialog {
|
|
132
134
|
}
|
|
133
135
|
export {};
|
|
134
136
|
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/feedback/theme.ts"],"names":[],"mappings":"AAAA,UAAU,UAAU;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/feedback/theme.ts"],"names":[],"mappings":"AAAA,UAAU,UAAU;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,KAAK;IACb;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH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37
37
|
* Should the screen shots field be included?
|
|
38
38
|
* Screen shots cannot be marked as required
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
enableScreenshot: boolean;
|
|
41
41
|
/**
|
|
42
42
|
* Fill in email/name input fields with Sentry user context if it exists.
|
|
43
43
|
* The value of the email/name keys represent the properties of your user context.
|
|
@@ -71,7 +71,7 @@ export interface FeedbackTextConfiguration {
|
|
|
71
71
|
/**
|
|
72
72
|
* The label for the Feedback widget button that opens the dialog
|
|
73
73
|
*/
|
|
74
|
-
|
|
74
|
+
triggerLabel: string;
|
|
75
75
|
/**
|
|
76
76
|
* The label for the Feedback form cancel button that closes dialog
|
|
77
77
|
*/
|
|
@@ -80,6 +80,10 @@ export interface FeedbackTextConfiguration {
|
|
|
80
80
|
* The label for the Feedback form submit button that sends feedback
|
|
81
81
|
*/
|
|
82
82
|
submitButtonLabel: string;
|
|
83
|
+
/**
|
|
84
|
+
* The label for the Screenshot editor cancel buttons
|
|
85
|
+
*/
|
|
86
|
+
confirmButtonLabel: string;
|
|
83
87
|
/**
|
|
84
88
|
* The title of the Feedback form
|
|
85
89
|
*/
|
|
@@ -115,7 +119,15 @@ export interface FeedbackTextConfiguration {
|
|
|
115
119
|
/**
|
|
116
120
|
* Text which indicates that a field is required
|
|
117
121
|
*/
|
|
118
|
-
|
|
122
|
+
isRequiredLabel: string;
|
|
123
|
+
/**
|
|
124
|
+
* The label for the button that adds a screeshot and renders the image editor
|
|
125
|
+
*/
|
|
126
|
+
addScreenshotButtonLabel: string;
|
|
127
|
+
/**
|
|
128
|
+
* The label for the button that removes a screenshot and hides the image editor
|
|
129
|
+
*/
|
|
130
|
+
removeScreenshotButtonLabel: string;
|
|
119
131
|
}
|
|
120
132
|
/**
|
|
121
133
|
* The public callbacks available for the feedback integration
|
|
@@ -47,7 +47,7 @@ export interface FeedbackModalIntegration extends Integration {
|
|
|
47
47
|
type HType = unknown;
|
|
48
48
|
type VNode = unknown;
|
|
49
49
|
export interface FeedbackScreenshotIntegration extends Integration {
|
|
50
|
-
createInput: (h: HType, dialog: FeedbackDialog) => {
|
|
50
|
+
createInput: (h: HType, dialog: FeedbackDialog, options: FeedbackInternalOptions) => {
|
|
51
51
|
/**
|
|
52
52
|
* The preact component
|
|
53
53
|
*/
|
|
@@ -1,34 +1,20 @@
|
|
|
1
1
|
interface BaseStyles {
|
|
2
|
-
/**
|
|
3
|
-
* Font family for widget
|
|
4
|
-
*/
|
|
5
|
-
fontFamily: string;
|
|
6
|
-
/**
|
|
7
|
-
* Font size for widget
|
|
8
|
-
*/
|
|
9
|
-
fontSize: string;
|
|
10
2
|
/**
|
|
11
3
|
* Foreground color (i.e. text color)
|
|
12
4
|
*/
|
|
13
5
|
foreground: string;
|
|
14
|
-
/**
|
|
15
|
-
* Background color for actor and dialog
|
|
16
|
-
*/
|
|
17
|
-
background: string;
|
|
18
6
|
/**
|
|
19
7
|
* Success color
|
|
20
8
|
*/
|
|
21
|
-
|
|
9
|
+
successForeground: string;
|
|
22
10
|
/**
|
|
23
11
|
* Error color
|
|
24
12
|
*/
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
interface ActorAndModal {
|
|
13
|
+
errorForeground: string;
|
|
28
14
|
/**
|
|
29
|
-
*
|
|
15
|
+
* Background color for actor and dialog
|
|
30
16
|
*/
|
|
31
|
-
|
|
17
|
+
background: string;
|
|
32
18
|
/**
|
|
33
19
|
* Border styling for actor and dialog
|
|
34
20
|
*/
|
|
@@ -38,97 +24,113 @@ interface ActorAndModal {
|
|
|
38
24
|
*/
|
|
39
25
|
boxShadow: string;
|
|
40
26
|
}
|
|
41
|
-
interface
|
|
27
|
+
interface Input {
|
|
42
28
|
/**
|
|
43
|
-
*
|
|
29
|
+
* Foreground color for form inputs
|
|
30
|
+
*/
|
|
31
|
+
inputForeground: string;
|
|
32
|
+
/**
|
|
33
|
+
* Background color for form inputs
|
|
44
34
|
*/
|
|
45
|
-
|
|
35
|
+
inputBackground: string;
|
|
46
36
|
/**
|
|
47
|
-
*
|
|
37
|
+
* Background color for form inputs, in the hover state
|
|
48
38
|
*/
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
interface Modal {
|
|
39
|
+
inputBackgroundHover: string;
|
|
52
40
|
/**
|
|
53
|
-
*
|
|
41
|
+
* Background color for form inputs, in the focus state
|
|
54
42
|
*/
|
|
55
|
-
|
|
43
|
+
inputBackgroundFocus: string;
|
|
44
|
+
/**
|
|
45
|
+
* Border styles for form inputs
|
|
46
|
+
*/
|
|
47
|
+
inputBorder: string;
|
|
56
48
|
/**
|
|
57
49
|
* Border radius for form inputs
|
|
58
50
|
*/
|
|
59
|
-
|
|
51
|
+
inputBorderRadius: string;
|
|
52
|
+
/**
|
|
53
|
+
* Border styles for form inputs when focused
|
|
54
|
+
*/
|
|
55
|
+
inputOutlineFocus: string;
|
|
60
56
|
}
|
|
61
|
-
interface
|
|
57
|
+
interface Button {
|
|
62
58
|
/**
|
|
63
|
-
* Foreground color for
|
|
59
|
+
* Foreground color for buttons
|
|
64
60
|
*/
|
|
65
|
-
|
|
61
|
+
buttonForeground: string;
|
|
66
62
|
/**
|
|
67
|
-
*
|
|
63
|
+
* Foreground color for buttons, in the hover state
|
|
68
64
|
*/
|
|
69
|
-
|
|
65
|
+
buttonForegroundHover: string;
|
|
70
66
|
/**
|
|
71
|
-
*
|
|
67
|
+
* Background color for buttons
|
|
72
68
|
*/
|
|
73
|
-
|
|
69
|
+
buttonBackground: string;
|
|
74
70
|
/**
|
|
75
|
-
* Background color when hovering over
|
|
71
|
+
* Background color when hovering over buttons
|
|
76
72
|
*/
|
|
77
|
-
|
|
73
|
+
buttonBackgroundHover: string;
|
|
78
74
|
/**
|
|
79
|
-
* Border style for
|
|
75
|
+
* Border style for buttons
|
|
80
76
|
*/
|
|
81
|
-
|
|
77
|
+
buttonBorder: string;
|
|
82
78
|
/**
|
|
83
|
-
* Border style for
|
|
79
|
+
* Border style for buttons, in the focued state
|
|
84
80
|
*/
|
|
85
|
-
|
|
81
|
+
buttonOutlineFocus: string;
|
|
86
82
|
}
|
|
87
|
-
interface
|
|
83
|
+
interface SubmitButton {
|
|
88
84
|
/**
|
|
89
|
-
* Foreground color for
|
|
85
|
+
* Foreground color for submit buttons
|
|
90
86
|
*/
|
|
91
|
-
|
|
87
|
+
submitForeground: string;
|
|
92
88
|
/**
|
|
93
|
-
*
|
|
89
|
+
* Foreground color for submit buttons, in the hover state
|
|
94
90
|
*/
|
|
95
|
-
|
|
91
|
+
submitForegroundHover: string;
|
|
96
92
|
/**
|
|
97
|
-
*
|
|
93
|
+
* Background color for submit buttons
|
|
98
94
|
*/
|
|
99
|
-
|
|
95
|
+
submitBackground: string;
|
|
100
96
|
/**
|
|
101
|
-
* Background color when hovering over
|
|
97
|
+
* Background color when hovering over submit buttons
|
|
102
98
|
*/
|
|
103
|
-
|
|
99
|
+
submitBackgroundHover: string;
|
|
104
100
|
/**
|
|
105
|
-
* Border style for
|
|
101
|
+
* Border style for submit buttons
|
|
106
102
|
*/
|
|
107
|
-
|
|
103
|
+
submitBorder: string;
|
|
108
104
|
/**
|
|
109
|
-
* Border style for
|
|
105
|
+
* Border style for submit buttons, in the focued state
|
|
110
106
|
*/
|
|
111
|
-
|
|
107
|
+
submitOutlineFocus: string;
|
|
112
108
|
}
|
|
113
|
-
interface
|
|
109
|
+
interface Trigger {
|
|
114
110
|
/**
|
|
115
|
-
* Background color
|
|
111
|
+
* Background color of the actor button
|
|
116
112
|
*/
|
|
117
|
-
|
|
113
|
+
triggerBackground: string;
|
|
118
114
|
/**
|
|
119
|
-
*
|
|
115
|
+
* Background color on hover
|
|
120
116
|
*/
|
|
121
|
-
|
|
117
|
+
triggerBackgroundHover: string;
|
|
122
118
|
/**
|
|
123
|
-
* Border
|
|
119
|
+
* Border radius styling for actor
|
|
124
120
|
*/
|
|
125
|
-
|
|
121
|
+
triggerBorderRadius: string;
|
|
122
|
+
}
|
|
123
|
+
interface Dialog {
|
|
126
124
|
/**
|
|
127
|
-
*
|
|
125
|
+
* Background color of the open dialog
|
|
128
126
|
*/
|
|
129
|
-
|
|
127
|
+
dialogBackground: string;
|
|
128
|
+
/**
|
|
129
|
+
* Border radius for dialog
|
|
130
|
+
*/
|
|
131
|
+
dialogBorderRadius: string;
|
|
130
132
|
}
|
|
131
|
-
export interface FeedbackTheme extends BaseStyles,
|
|
133
|
+
export interface FeedbackTheme extends BaseStyles, Input, Button, SubmitButton, Trigger, Dialog {
|
|
132
134
|
}
|
|
133
135
|
export {};
|
|
134
136
|
//# sourceMappingURL=theme.d.ts.map
|