@the-seeker/feedback-react-native 0.0.0-stage → 0.1.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.
Files changed (48) hide show
  1. package/README.md +215 -2
  2. package/dist/core/client.d.ts +57 -0
  3. package/dist/core/client.js +113 -0
  4. package/dist/core/config.d.ts +59 -0
  5. package/dist/core/config.js +112 -0
  6. package/dist/core/request.d.ts +53 -0
  7. package/dist/core/request.js +86 -0
  8. package/dist/core/survey.d.ts +12 -0
  9. package/dist/core/survey.js +26 -0
  10. package/dist/core/texts.d.ts +104 -0
  11. package/dist/core/texts.js +140 -0
  12. package/dist/core/theme.d.ts +6 -0
  13. package/dist/core/theme.js +55 -0
  14. package/dist/index.d.ts +14 -0
  15. package/dist/index.js +32 -0
  16. package/dist/ui/Attachments.d.ts +9 -0
  17. package/dist/ui/Attachments.js +27 -0
  18. package/dist/ui/FeedbackForm.d.ts +8 -0
  19. package/dist/ui/FeedbackForm.js +90 -0
  20. package/dist/ui/FeedbackSheet.d.ts +2 -0
  21. package/dist/ui/FeedbackSheet.js +32 -0
  22. package/dist/ui/Inline.d.ts +6 -0
  23. package/dist/ui/Inline.js +16 -0
  24. package/dist/ui/Launcher.d.ts +1 -0
  25. package/dist/ui/Launcher.js +14 -0
  26. package/dist/ui/Provider.d.ts +21 -0
  27. package/dist/ui/Provider.js +131 -0
  28. package/dist/ui/SurveyPrompt.d.ts +2 -0
  29. package/dist/ui/SurveyPrompt.js +52 -0
  30. package/dist/ui/context.d.ts +79 -0
  31. package/dist/ui/context.js +28 -0
  32. package/dist/ui/device.d.ts +10 -0
  33. package/dist/ui/device.js +22 -0
  34. package/dist/ui/forms.d.ts +32 -0
  35. package/dist/ui/forms.js +62 -0
  36. package/dist/ui/primitives.d.ts +33 -0
  37. package/dist/ui/primitives.js +55 -0
  38. package/dist/ui/prop-state.d.ts +9 -0
  39. package/dist/ui/prop-state.js +27 -0
  40. package/dist/ui/storage.d.ts +15 -0
  41. package/dist/ui/storage.js +35 -0
  42. package/dist/ui/styles.d.ts +697 -0
  43. package/dist/ui/styles.js +177 -0
  44. package/dist/ui/tokens.d.ts +16 -0
  45. package/dist/ui/tokens.js +62 -0
  46. package/dist/ui/useSurvey.d.ts +12 -0
  47. package/dist/ui/useSurvey.js +52 -0
  48. package/package.json +34 -4
@@ -0,0 +1,697 @@
1
+ import type { WidgetConfig } from "../core/config";
2
+ import type { Tokens } from "./tokens";
3
+ export declare function createStyles(t: Tokens): {
4
+ launcher: {
5
+ backfaceVisibility?: "visible" | "hidden" | undefined;
6
+ backgroundColor: import("react-native").ColorValue | undefined;
7
+ borderBlockColor?: import("react-native").ColorValue | undefined;
8
+ borderBlockEndColor?: import("react-native").ColorValue | undefined;
9
+ borderBlockStartColor?: import("react-native").ColorValue | undefined;
10
+ borderBottomColor?: import("react-native").ColorValue | undefined;
11
+ borderBottomEndRadius?: import("react-native").AnimatableNumericValue | string | undefined;
12
+ borderBottomLeftRadius?: import("react-native").AnimatableNumericValue | string | undefined;
13
+ borderBottomRightRadius?: import("react-native").AnimatableNumericValue | string | undefined;
14
+ borderBottomStartRadius?: import("react-native").AnimatableNumericValue | string | undefined;
15
+ borderColor?: import("react-native").ColorValue | undefined;
16
+ borderCurve?: "circular" | "continuous" | undefined;
17
+ borderEndColor?: import("react-native").ColorValue | undefined;
18
+ borderEndEndRadius?: import("react-native").AnimatableNumericValue | string | undefined;
19
+ borderEndStartRadius?: import("react-native").AnimatableNumericValue | string | undefined;
20
+ borderLeftColor?: import("react-native").ColorValue | undefined;
21
+ borderRadius: import("react-native").AnimatableNumericValue | string | undefined;
22
+ borderRightColor?: import("react-native").ColorValue | undefined;
23
+ borderStartColor?: import("react-native").ColorValue | undefined;
24
+ borderStartEndRadius?: import("react-native").AnimatableNumericValue | string | undefined;
25
+ borderStartStartRadius?: import("react-native").AnimatableNumericValue | string | undefined;
26
+ borderStyle?: "solid" | "dotted" | "dashed" | undefined;
27
+ borderTopColor?: import("react-native").ColorValue | undefined;
28
+ borderTopEndRadius?: import("react-native").AnimatableNumericValue | string | undefined;
29
+ borderTopLeftRadius?: import("react-native").AnimatableNumericValue | string | undefined;
30
+ borderTopRightRadius?: import("react-native").AnimatableNumericValue | string | undefined;
31
+ borderTopStartRadius?: import("react-native").AnimatableNumericValue | string | undefined;
32
+ outlineColor?: import("react-native").ColorValue | undefined;
33
+ outlineOffset?: import("react-native").AnimatableNumericValue | undefined;
34
+ outlineStyle?: "solid" | "dotted" | "dashed" | undefined;
35
+ outlineWidth?: import("react-native").AnimatableNumericValue | undefined;
36
+ opacity?: import("react-native").AnimatableNumericValue | undefined;
37
+ elevation?: number | undefined;
38
+ pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined;
39
+ isolation?: "auto" | "isolate" | undefined;
40
+ cursor?: import("react-native").CursorValue | undefined;
41
+ boxShadow?: ReadonlyArray<import("react-native").BoxShadowValue> | string | undefined;
42
+ filter?: ReadonlyArray<import("react-native").FilterFunction> | string | undefined;
43
+ mixBlendMode?: import("react-native").BlendMode | undefined;
44
+ experimental_backgroundImage?: ReadonlyArray<import("react-native").BackgroundImageValue> | string | undefined;
45
+ experimental_backgroundSize?: ReadonlyArray<import("react-native").BackgroundSizeValue> | string | undefined;
46
+ experimental_backgroundPosition?: ReadonlyArray<import("react-native").BackgroundPositionValue> | string | undefined;
47
+ experimental_backgroundRepeat?: ReadonlyArray<import("react-native").BackgroundRepeatValue> | string | undefined;
48
+ alignContent?: "flex-start" | "flex-end" | "center" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
49
+ alignItems?: import("react-native").FlexAlignType | undefined;
50
+ alignSelf?: "auto" | import("react-native").FlexAlignType | undefined;
51
+ aspectRatio?: number | string | undefined;
52
+ borderBottomWidth?: number | undefined;
53
+ borderEndWidth?: number | undefined;
54
+ borderLeftWidth?: number | undefined;
55
+ borderRightWidth?: number | undefined;
56
+ borderStartWidth?: number | undefined;
57
+ borderTopWidth?: number | undefined;
58
+ borderWidth?: number | undefined;
59
+ bottom: import("react-native").DimensionValue | undefined;
60
+ boxSizing?: "border-box" | "content-box" | undefined;
61
+ display?: "none" | "flex" | "contents" | undefined;
62
+ end?: import("react-native").DimensionValue | undefined;
63
+ flex?: number | undefined;
64
+ flexBasis?: import("react-native").DimensionValue | undefined;
65
+ flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
66
+ rowGap?: number | string | undefined;
67
+ gap?: number | string | undefined;
68
+ columnGap?: number | string | undefined;
69
+ flexGrow?: number | undefined;
70
+ flexShrink?: number | undefined;
71
+ flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
72
+ height?: import("react-native").DimensionValue | undefined;
73
+ justifyContent: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly" | undefined;
74
+ left?: import("react-native").DimensionValue | undefined;
75
+ margin?: import("react-native").DimensionValue | undefined;
76
+ marginBottom?: import("react-native").DimensionValue | undefined;
77
+ marginEnd?: import("react-native").DimensionValue | undefined;
78
+ marginHorizontal?: import("react-native").DimensionValue | undefined;
79
+ marginLeft?: import("react-native").DimensionValue | undefined;
80
+ marginRight?: import("react-native").DimensionValue | undefined;
81
+ marginStart?: import("react-native").DimensionValue | undefined;
82
+ marginTop?: import("react-native").DimensionValue | undefined;
83
+ marginVertical?: import("react-native").DimensionValue | undefined;
84
+ maxHeight?: import("react-native").DimensionValue | undefined;
85
+ maxWidth: import("react-native").DimensionValue | undefined;
86
+ minHeight: import("react-native").DimensionValue | undefined;
87
+ minWidth?: import("react-native").DimensionValue | undefined;
88
+ overflow?: "visible" | "hidden" | "scroll" | undefined;
89
+ padding?: import("react-native").DimensionValue | undefined;
90
+ paddingBottom?: import("react-native").DimensionValue | undefined;
91
+ paddingEnd?: import("react-native").DimensionValue | undefined;
92
+ paddingHorizontal: import("react-native").DimensionValue | undefined;
93
+ paddingLeft?: import("react-native").DimensionValue | undefined;
94
+ paddingRight?: import("react-native").DimensionValue | undefined;
95
+ paddingStart?: import("react-native").DimensionValue | undefined;
96
+ paddingTop?: import("react-native").DimensionValue | undefined;
97
+ paddingVertical?: import("react-native").DimensionValue | undefined;
98
+ position: "absolute" | "relative" | "static" | undefined;
99
+ right?: import("react-native").DimensionValue | undefined;
100
+ start?: import("react-native").DimensionValue | undefined;
101
+ top?: import("react-native").DimensionValue | undefined;
102
+ width?: import("react-native").DimensionValue | undefined;
103
+ zIndex?: number | undefined;
104
+ direction?: "inherit" | "ltr" | "rtl" | undefined;
105
+ inset?: import("react-native").DimensionValue | undefined;
106
+ insetBlock?: import("react-native").DimensionValue | undefined;
107
+ insetBlockEnd?: import("react-native").DimensionValue | undefined;
108
+ insetBlockStart?: import("react-native").DimensionValue | undefined;
109
+ insetInline?: import("react-native").DimensionValue | undefined;
110
+ insetInlineEnd?: import("react-native").DimensionValue | undefined;
111
+ insetInlineStart?: import("react-native").DimensionValue | undefined;
112
+ marginBlock?: import("react-native").DimensionValue | undefined;
113
+ marginBlockEnd?: import("react-native").DimensionValue | undefined;
114
+ marginBlockStart?: import("react-native").DimensionValue | undefined;
115
+ marginInline?: import("react-native").DimensionValue | undefined;
116
+ marginInlineEnd?: import("react-native").DimensionValue | undefined;
117
+ marginInlineStart?: import("react-native").DimensionValue | undefined;
118
+ paddingBlock?: import("react-native").DimensionValue | undefined;
119
+ paddingBlockEnd?: import("react-native").DimensionValue | undefined;
120
+ paddingBlockStart?: import("react-native").DimensionValue | undefined;
121
+ paddingInline?: import("react-native").DimensionValue | undefined;
122
+ paddingInlineEnd?: import("react-native").DimensionValue | undefined;
123
+ paddingInlineStart?: import("react-native").DimensionValue | undefined;
124
+ shadowColor?: import("react-native").ColorValue | undefined;
125
+ shadowOffset?: Readonly<{
126
+ width: number;
127
+ height: number;
128
+ }> | undefined;
129
+ shadowOpacity?: import("react-native").AnimatableNumericValue | undefined;
130
+ shadowRadius?: number | undefined;
131
+ transform?: Readonly<import("react-native").MaximumOneOf<import("react-native").PerspectiveTransform & import("react-native").RotateTransform & import("react-native").RotateXTransform & import("react-native").RotateYTransform & import("react-native").RotateZTransform & import("react-native").ScaleTransform & import("react-native").ScaleXTransform & import("react-native").ScaleYTransform & import("react-native").TranslateXTransform & import("react-native").TranslateYTransform & import("react-native").SkewXTransform & import("react-native").SkewYTransform & import("react-native").MatrixTransform>[]> | string | undefined;
132
+ transformOrigin?: Array<string | number> | string | undefined;
133
+ transformMatrix?: Array<number> | undefined;
134
+ rotation?: import("react-native").AnimatableNumericValue | undefined;
135
+ scaleX?: import("react-native").AnimatableNumericValue | undefined;
136
+ scaleY?: import("react-native").AnimatableNumericValue | undefined;
137
+ translateX?: import("react-native").AnimatableNumericValue | undefined;
138
+ translateY?: import("react-native").AnimatableNumericValue | undefined;
139
+ };
140
+ launcherRight: {
141
+ right: 20;
142
+ };
143
+ launcherLeft: {
144
+ left: 20;
145
+ };
146
+ launcherPressed: {
147
+ opacity: number;
148
+ transform: {
149
+ scale: number;
150
+ }[];
151
+ };
152
+ launcherLabel: {
153
+ color: string;
154
+ fontSize: 15;
155
+ lineHeight: 20;
156
+ fontWeight: "600";
157
+ };
158
+ sheetRoot: {
159
+ flex: number;
160
+ justifyContent: "flex-end";
161
+ };
162
+ scrim: {
163
+ position: "absolute";
164
+ top: number;
165
+ right: number;
166
+ bottom: number;
167
+ left: number;
168
+ backgroundColor: string;
169
+ };
170
+ sheet: {
171
+ backfaceVisibility?: "visible" | "hidden" | undefined;
172
+ backgroundColor: import("react-native").ColorValue | undefined;
173
+ borderBlockColor?: import("react-native").ColorValue | undefined;
174
+ borderBlockEndColor?: import("react-native").ColorValue | undefined;
175
+ borderBlockStartColor?: import("react-native").ColorValue | undefined;
176
+ borderBottomColor?: import("react-native").ColorValue | undefined;
177
+ borderBottomEndRadius?: import("react-native").AnimatableNumericValue | string | undefined;
178
+ borderBottomLeftRadius?: import("react-native").AnimatableNumericValue | string | undefined;
179
+ borderBottomRightRadius?: import("react-native").AnimatableNumericValue | string | undefined;
180
+ borderBottomStartRadius?: import("react-native").AnimatableNumericValue | string | undefined;
181
+ borderColor: import("react-native").ColorValue | undefined;
182
+ borderCurve?: "circular" | "continuous" | undefined;
183
+ borderEndColor?: import("react-native").ColorValue | undefined;
184
+ borderEndEndRadius?: import("react-native").AnimatableNumericValue | string | undefined;
185
+ borderEndStartRadius?: import("react-native").AnimatableNumericValue | string | undefined;
186
+ borderLeftColor?: import("react-native").ColorValue | undefined;
187
+ borderRadius?: import("react-native").AnimatableNumericValue | string | undefined;
188
+ borderRightColor?: import("react-native").ColorValue | undefined;
189
+ borderStartColor?: import("react-native").ColorValue | undefined;
190
+ borderStartEndRadius?: import("react-native").AnimatableNumericValue | string | undefined;
191
+ borderStartStartRadius?: import("react-native").AnimatableNumericValue | string | undefined;
192
+ borderStyle?: "solid" | "dotted" | "dashed" | undefined;
193
+ borderTopColor?: import("react-native").ColorValue | undefined;
194
+ borderTopEndRadius?: import("react-native").AnimatableNumericValue | string | undefined;
195
+ borderTopLeftRadius: import("react-native").AnimatableNumericValue | string | undefined;
196
+ borderTopRightRadius: import("react-native").AnimatableNumericValue | string | undefined;
197
+ borderTopStartRadius?: import("react-native").AnimatableNumericValue | string | undefined;
198
+ outlineColor?: import("react-native").ColorValue | undefined;
199
+ outlineOffset?: import("react-native").AnimatableNumericValue | undefined;
200
+ outlineStyle?: "solid" | "dotted" | "dashed" | undefined;
201
+ outlineWidth?: import("react-native").AnimatableNumericValue | undefined;
202
+ opacity?: import("react-native").AnimatableNumericValue | undefined;
203
+ elevation?: number | undefined;
204
+ pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined;
205
+ isolation?: "auto" | "isolate" | undefined;
206
+ cursor?: import("react-native").CursorValue | undefined;
207
+ boxShadow?: ReadonlyArray<import("react-native").BoxShadowValue> | string | undefined;
208
+ filter?: ReadonlyArray<import("react-native").FilterFunction> | string | undefined;
209
+ mixBlendMode?: import("react-native").BlendMode | undefined;
210
+ experimental_backgroundImage?: ReadonlyArray<import("react-native").BackgroundImageValue> | string | undefined;
211
+ experimental_backgroundSize?: ReadonlyArray<import("react-native").BackgroundSizeValue> | string | undefined;
212
+ experimental_backgroundPosition?: ReadonlyArray<import("react-native").BackgroundPositionValue> | string | undefined;
213
+ experimental_backgroundRepeat?: ReadonlyArray<import("react-native").BackgroundRepeatValue> | string | undefined;
214
+ alignContent?: "flex-start" | "flex-end" | "center" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
215
+ alignItems?: import("react-native").FlexAlignType | undefined;
216
+ alignSelf?: "auto" | import("react-native").FlexAlignType | undefined;
217
+ aspectRatio?: number | string | undefined;
218
+ borderBottomWidth?: number | undefined;
219
+ borderEndWidth?: number | undefined;
220
+ borderLeftWidth?: number | undefined;
221
+ borderRightWidth?: number | undefined;
222
+ borderStartWidth?: number | undefined;
223
+ borderTopWidth: number | undefined;
224
+ borderWidth?: number | undefined;
225
+ bottom?: import("react-native").DimensionValue | undefined;
226
+ boxSizing?: "border-box" | "content-box" | undefined;
227
+ display?: "none" | "flex" | "contents" | undefined;
228
+ end?: import("react-native").DimensionValue | undefined;
229
+ flex?: number | undefined;
230
+ flexBasis?: import("react-native").DimensionValue | undefined;
231
+ flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
232
+ rowGap?: number | string | undefined;
233
+ gap?: number | string | undefined;
234
+ columnGap?: number | string | undefined;
235
+ flexGrow?: number | undefined;
236
+ flexShrink?: number | undefined;
237
+ flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
238
+ height?: import("react-native").DimensionValue | undefined;
239
+ justifyContent?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly" | undefined;
240
+ left?: import("react-native").DimensionValue | undefined;
241
+ margin?: import("react-native").DimensionValue | undefined;
242
+ marginBottom?: import("react-native").DimensionValue | undefined;
243
+ marginEnd?: import("react-native").DimensionValue | undefined;
244
+ marginHorizontal?: import("react-native").DimensionValue | undefined;
245
+ marginLeft?: import("react-native").DimensionValue | undefined;
246
+ marginRight?: import("react-native").DimensionValue | undefined;
247
+ marginStart?: import("react-native").DimensionValue | undefined;
248
+ marginTop?: import("react-native").DimensionValue | undefined;
249
+ marginVertical?: import("react-native").DimensionValue | undefined;
250
+ maxHeight: import("react-native").DimensionValue | undefined;
251
+ maxWidth?: import("react-native").DimensionValue | undefined;
252
+ minHeight?: import("react-native").DimensionValue | undefined;
253
+ minWidth?: import("react-native").DimensionValue | undefined;
254
+ overflow?: "visible" | "hidden" | "scroll" | undefined;
255
+ padding?: import("react-native").DimensionValue | undefined;
256
+ paddingBottom?: import("react-native").DimensionValue | undefined;
257
+ paddingEnd?: import("react-native").DimensionValue | undefined;
258
+ paddingHorizontal?: import("react-native").DimensionValue | undefined;
259
+ paddingLeft?: import("react-native").DimensionValue | undefined;
260
+ paddingRight?: import("react-native").DimensionValue | undefined;
261
+ paddingStart?: import("react-native").DimensionValue | undefined;
262
+ paddingTop?: import("react-native").DimensionValue | undefined;
263
+ paddingVertical?: import("react-native").DimensionValue | undefined;
264
+ position?: "absolute" | "relative" | "static" | undefined;
265
+ right?: import("react-native").DimensionValue | undefined;
266
+ start?: import("react-native").DimensionValue | undefined;
267
+ top?: import("react-native").DimensionValue | undefined;
268
+ width?: import("react-native").DimensionValue | undefined;
269
+ zIndex?: number | undefined;
270
+ direction?: "inherit" | "ltr" | "rtl" | undefined;
271
+ inset?: import("react-native").DimensionValue | undefined;
272
+ insetBlock?: import("react-native").DimensionValue | undefined;
273
+ insetBlockEnd?: import("react-native").DimensionValue | undefined;
274
+ insetBlockStart?: import("react-native").DimensionValue | undefined;
275
+ insetInline?: import("react-native").DimensionValue | undefined;
276
+ insetInlineEnd?: import("react-native").DimensionValue | undefined;
277
+ insetInlineStart?: import("react-native").DimensionValue | undefined;
278
+ marginBlock?: import("react-native").DimensionValue | undefined;
279
+ marginBlockEnd?: import("react-native").DimensionValue | undefined;
280
+ marginBlockStart?: import("react-native").DimensionValue | undefined;
281
+ marginInline?: import("react-native").DimensionValue | undefined;
282
+ marginInlineEnd?: import("react-native").DimensionValue | undefined;
283
+ marginInlineStart?: import("react-native").DimensionValue | undefined;
284
+ paddingBlock?: import("react-native").DimensionValue | undefined;
285
+ paddingBlockEnd?: import("react-native").DimensionValue | undefined;
286
+ paddingBlockStart?: import("react-native").DimensionValue | undefined;
287
+ paddingInline?: import("react-native").DimensionValue | undefined;
288
+ paddingInlineEnd?: import("react-native").DimensionValue | undefined;
289
+ paddingInlineStart?: import("react-native").DimensionValue | undefined;
290
+ shadowColor?: import("react-native").ColorValue | undefined;
291
+ shadowOffset?: Readonly<{
292
+ width: number;
293
+ height: number;
294
+ }> | undefined;
295
+ shadowOpacity?: import("react-native").AnimatableNumericValue | undefined;
296
+ shadowRadius?: number | undefined;
297
+ transform?: Readonly<import("react-native").MaximumOneOf<import("react-native").PerspectiveTransform & import("react-native").RotateTransform & import("react-native").RotateXTransform & import("react-native").RotateYTransform & import("react-native").RotateZTransform & import("react-native").ScaleTransform & import("react-native").ScaleXTransform & import("react-native").ScaleYTransform & import("react-native").TranslateXTransform & import("react-native").TranslateYTransform & import("react-native").SkewXTransform & import("react-native").SkewYTransform & import("react-native").MatrixTransform>[]> | string | undefined;
298
+ transformOrigin?: Array<string | number> | string | undefined;
299
+ transformMatrix?: Array<number> | undefined;
300
+ rotation?: import("react-native").AnimatableNumericValue | undefined;
301
+ scaleX?: import("react-native").AnimatableNumericValue | undefined;
302
+ scaleY?: import("react-native").AnimatableNumericValue | undefined;
303
+ translateX?: import("react-native").AnimatableNumericValue | undefined;
304
+ translateY?: import("react-native").AnimatableNumericValue | undefined;
305
+ };
306
+ sheetContent: {
307
+ padding: 20;
308
+ paddingBottom: number;
309
+ };
310
+ card: {
311
+ padding: 20;
312
+ borderRadius: number;
313
+ borderWidth: number;
314
+ borderColor: string;
315
+ backgroundColor: string;
316
+ };
317
+ title: {
318
+ color: string;
319
+ fontSize: 17;
320
+ lineHeight: 22;
321
+ fontWeight: "600";
322
+ letterSpacing: -0.2;
323
+ };
324
+ description: {
325
+ marginTop: 4;
326
+ marginBottom: 16;
327
+ color: string;
328
+ fontSize: 15;
329
+ lineHeight: 22;
330
+ };
331
+ field: {
332
+ marginBottom: 16;
333
+ };
334
+ label: {
335
+ marginBottom: 6;
336
+ color: string;
337
+ fontSize: 14;
338
+ lineHeight: 20;
339
+ fontWeight: "500";
340
+ };
341
+ input: {
342
+ minHeight: number;
343
+ paddingHorizontal: 12;
344
+ paddingVertical: number;
345
+ color: string;
346
+ fontSize: 16;
347
+ lineHeight: 22;
348
+ borderRadius: number;
349
+ borderWidth: number;
350
+ borderColor: string;
351
+ backgroundColor: string;
352
+ };
353
+ multiline: {
354
+ minHeight: number;
355
+ textAlignVertical: "top";
356
+ };
357
+ multilineShort: {
358
+ minHeight: number;
359
+ textAlignVertical: "top";
360
+ };
361
+ inputFocused: {
362
+ borderColor: string;
363
+ };
364
+ inputInvalid: {
365
+ borderColor: string;
366
+ };
367
+ fieldFoot: {
368
+ flexDirection: "row";
369
+ gap: 12;
370
+ marginTop: 6;
371
+ };
372
+ error: {
373
+ flex: number;
374
+ color: string;
375
+ fontSize: 13;
376
+ lineHeight: 18;
377
+ };
378
+ meta: {
379
+ color: string;
380
+ fontVariant: "tabular-nums"[];
381
+ fontSize: 13;
382
+ lineHeight: 18;
383
+ };
384
+ end: {
385
+ marginStart: "auto";
386
+ };
387
+ tools: {
388
+ flexDirection: "row";
389
+ alignItems: "center";
390
+ gap: 12;
391
+ };
392
+ hint: {
393
+ marginTop: 6;
394
+ color: string;
395
+ fontSize: 13;
396
+ lineHeight: 18;
397
+ };
398
+ strip: {
399
+ flexDirection: "row";
400
+ flexWrap: "wrap";
401
+ gap: 12;
402
+ marginTop: 12;
403
+ };
404
+ thumb: {
405
+ width: number;
406
+ height: number;
407
+ borderRadius: number;
408
+ borderWidth: number;
409
+ borderColor: string;
410
+ backgroundColor: string;
411
+ };
412
+ removeBadge: {
413
+ position: "absolute";
414
+ top: number;
415
+ end: number;
416
+ width: number;
417
+ height: number;
418
+ alignItems: "center";
419
+ justifyContent: "center";
420
+ borderRadius: number;
421
+ borderWidth: number;
422
+ borderColor: string;
423
+ backgroundColor: string;
424
+ };
425
+ removePressed: {
426
+ backgroundColor: string;
427
+ };
428
+ status: {
429
+ marginBottom: 12;
430
+ color: string;
431
+ fontSize: 13;
432
+ lineHeight: 18;
433
+ };
434
+ statusError: {
435
+ color: string;
436
+ };
437
+ actions: {
438
+ flexDirection: "row";
439
+ justifyContent: "flex-end";
440
+ gap: 8;
441
+ };
442
+ button: {
443
+ minHeight: number;
444
+ minWidth: number;
445
+ alignItems: "center";
446
+ justifyContent: "center";
447
+ paddingHorizontal: number;
448
+ borderRadius: number;
449
+ borderWidth: number;
450
+ borderColor: string;
451
+ };
452
+ primary: {
453
+ backgroundColor: string;
454
+ };
455
+ primaryPressed: {
456
+ opacity: number;
457
+ };
458
+ secondary: {
459
+ borderColor: string;
460
+ backgroundColor: string;
461
+ };
462
+ secondaryPressed: {
463
+ backgroundColor: string;
464
+ };
465
+ ghost: {
466
+ backgroundColor: string;
467
+ };
468
+ ghostPressed: {
469
+ backgroundColor: string;
470
+ };
471
+ disabled: {
472
+ opacity: number;
473
+ };
474
+ buttonLabel: {
475
+ color: string;
476
+ fontSize: 15;
477
+ lineHeight: 20;
478
+ fontWeight: "600";
479
+ };
480
+ primaryLabel: {
481
+ color: string;
482
+ };
483
+ thanks: {
484
+ paddingVertical: 16;
485
+ color: string;
486
+ fontSize: 15;
487
+ lineHeight: 22;
488
+ };
489
+ surveyDock: {
490
+ position: "absolute";
491
+ left: 16;
492
+ right: 16;
493
+ pointerEvents: "box-none";
494
+ };
495
+ dockLow: {
496
+ bottom: number;
497
+ };
498
+ dockRaised: {
499
+ bottom: number;
500
+ };
501
+ dockStart: {
502
+ alignItems: "flex-start";
503
+ };
504
+ dockEnd: {
505
+ alignItems: "flex-end";
506
+ };
507
+ surveyCard: {
508
+ backfaceVisibility?: "visible" | "hidden" | undefined;
509
+ backgroundColor: import("react-native").ColorValue | undefined;
510
+ borderBlockColor?: import("react-native").ColorValue | undefined;
511
+ borderBlockEndColor?: import("react-native").ColorValue | undefined;
512
+ borderBlockStartColor?: import("react-native").ColorValue | undefined;
513
+ borderBottomColor?: import("react-native").ColorValue | undefined;
514
+ borderBottomEndRadius?: import("react-native").AnimatableNumericValue | string | undefined;
515
+ borderBottomLeftRadius?: import("react-native").AnimatableNumericValue | string | undefined;
516
+ borderBottomRightRadius?: import("react-native").AnimatableNumericValue | string | undefined;
517
+ borderBottomStartRadius?: import("react-native").AnimatableNumericValue | string | undefined;
518
+ borderColor: import("react-native").ColorValue | undefined;
519
+ borderCurve?: "circular" | "continuous" | undefined;
520
+ borderEndColor?: import("react-native").ColorValue | undefined;
521
+ borderEndEndRadius?: import("react-native").AnimatableNumericValue | string | undefined;
522
+ borderEndStartRadius?: import("react-native").AnimatableNumericValue | string | undefined;
523
+ borderLeftColor?: import("react-native").ColorValue | undefined;
524
+ borderRadius: import("react-native").AnimatableNumericValue | string | undefined;
525
+ borderRightColor?: import("react-native").ColorValue | undefined;
526
+ borderStartColor?: import("react-native").ColorValue | undefined;
527
+ borderStartEndRadius?: import("react-native").AnimatableNumericValue | string | undefined;
528
+ borderStartStartRadius?: import("react-native").AnimatableNumericValue | string | undefined;
529
+ borderStyle?: "solid" | "dotted" | "dashed" | undefined;
530
+ borderTopColor?: import("react-native").ColorValue | undefined;
531
+ borderTopEndRadius?: import("react-native").AnimatableNumericValue | string | undefined;
532
+ borderTopLeftRadius?: import("react-native").AnimatableNumericValue | string | undefined;
533
+ borderTopRightRadius?: import("react-native").AnimatableNumericValue | string | undefined;
534
+ borderTopStartRadius?: import("react-native").AnimatableNumericValue | string | undefined;
535
+ outlineColor?: import("react-native").ColorValue | undefined;
536
+ outlineOffset?: import("react-native").AnimatableNumericValue | undefined;
537
+ outlineStyle?: "solid" | "dotted" | "dashed" | undefined;
538
+ outlineWidth?: import("react-native").AnimatableNumericValue | undefined;
539
+ opacity?: import("react-native").AnimatableNumericValue | undefined;
540
+ elevation?: number | undefined;
541
+ pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined;
542
+ isolation?: "auto" | "isolate" | undefined;
543
+ cursor?: import("react-native").CursorValue | undefined;
544
+ boxShadow?: ReadonlyArray<import("react-native").BoxShadowValue> | string | undefined;
545
+ filter?: ReadonlyArray<import("react-native").FilterFunction> | string | undefined;
546
+ mixBlendMode?: import("react-native").BlendMode | undefined;
547
+ experimental_backgroundImage?: ReadonlyArray<import("react-native").BackgroundImageValue> | string | undefined;
548
+ experimental_backgroundSize?: ReadonlyArray<import("react-native").BackgroundSizeValue> | string | undefined;
549
+ experimental_backgroundPosition?: ReadonlyArray<import("react-native").BackgroundPositionValue> | string | undefined;
550
+ experimental_backgroundRepeat?: ReadonlyArray<import("react-native").BackgroundRepeatValue> | string | undefined;
551
+ alignContent?: "flex-start" | "flex-end" | "center" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
552
+ alignItems?: import("react-native").FlexAlignType | undefined;
553
+ alignSelf?: "auto" | import("react-native").FlexAlignType | undefined;
554
+ aspectRatio?: number | string | undefined;
555
+ borderBottomWidth?: number | undefined;
556
+ borderEndWidth?: number | undefined;
557
+ borderLeftWidth?: number | undefined;
558
+ borderRightWidth?: number | undefined;
559
+ borderStartWidth?: number | undefined;
560
+ borderTopWidth?: number | undefined;
561
+ borderWidth: number | undefined;
562
+ bottom?: import("react-native").DimensionValue | undefined;
563
+ boxSizing?: "border-box" | "content-box" | undefined;
564
+ display?: "none" | "flex" | "contents" | undefined;
565
+ end?: import("react-native").DimensionValue | undefined;
566
+ flex?: number | undefined;
567
+ flexBasis?: import("react-native").DimensionValue | undefined;
568
+ flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
569
+ rowGap?: number | string | undefined;
570
+ gap?: number | string | undefined;
571
+ columnGap?: number | string | undefined;
572
+ flexGrow?: number | undefined;
573
+ flexShrink?: number | undefined;
574
+ flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
575
+ height?: import("react-native").DimensionValue | undefined;
576
+ justifyContent?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly" | undefined;
577
+ left?: import("react-native").DimensionValue | undefined;
578
+ margin?: import("react-native").DimensionValue | undefined;
579
+ marginBottom?: import("react-native").DimensionValue | undefined;
580
+ marginEnd?: import("react-native").DimensionValue | undefined;
581
+ marginHorizontal?: import("react-native").DimensionValue | undefined;
582
+ marginLeft?: import("react-native").DimensionValue | undefined;
583
+ marginRight?: import("react-native").DimensionValue | undefined;
584
+ marginStart?: import("react-native").DimensionValue | undefined;
585
+ marginTop?: import("react-native").DimensionValue | undefined;
586
+ marginVertical?: import("react-native").DimensionValue | undefined;
587
+ maxHeight?: import("react-native").DimensionValue | undefined;
588
+ maxWidth: import("react-native").DimensionValue | undefined;
589
+ minHeight?: import("react-native").DimensionValue | undefined;
590
+ minWidth?: import("react-native").DimensionValue | undefined;
591
+ overflow?: "visible" | "hidden" | "scroll" | undefined;
592
+ padding: import("react-native").DimensionValue | undefined;
593
+ paddingBottom?: import("react-native").DimensionValue | undefined;
594
+ paddingEnd?: import("react-native").DimensionValue | undefined;
595
+ paddingHorizontal?: import("react-native").DimensionValue | undefined;
596
+ paddingLeft?: import("react-native").DimensionValue | undefined;
597
+ paddingRight?: import("react-native").DimensionValue | undefined;
598
+ paddingStart?: import("react-native").DimensionValue | undefined;
599
+ paddingTop?: import("react-native").DimensionValue | undefined;
600
+ paddingVertical?: import("react-native").DimensionValue | undefined;
601
+ position?: "absolute" | "relative" | "static" | undefined;
602
+ right?: import("react-native").DimensionValue | undefined;
603
+ start?: import("react-native").DimensionValue | undefined;
604
+ top?: import("react-native").DimensionValue | undefined;
605
+ width: import("react-native").DimensionValue | undefined;
606
+ zIndex?: number | undefined;
607
+ direction?: "inherit" | "ltr" | "rtl" | undefined;
608
+ inset?: import("react-native").DimensionValue | undefined;
609
+ insetBlock?: import("react-native").DimensionValue | undefined;
610
+ insetBlockEnd?: import("react-native").DimensionValue | undefined;
611
+ insetBlockStart?: import("react-native").DimensionValue | undefined;
612
+ insetInline?: import("react-native").DimensionValue | undefined;
613
+ insetInlineEnd?: import("react-native").DimensionValue | undefined;
614
+ insetInlineStart?: import("react-native").DimensionValue | undefined;
615
+ marginBlock?: import("react-native").DimensionValue | undefined;
616
+ marginBlockEnd?: import("react-native").DimensionValue | undefined;
617
+ marginBlockStart?: import("react-native").DimensionValue | undefined;
618
+ marginInline?: import("react-native").DimensionValue | undefined;
619
+ marginInlineEnd?: import("react-native").DimensionValue | undefined;
620
+ marginInlineStart?: import("react-native").DimensionValue | undefined;
621
+ paddingBlock?: import("react-native").DimensionValue | undefined;
622
+ paddingBlockEnd?: import("react-native").DimensionValue | undefined;
623
+ paddingBlockStart?: import("react-native").DimensionValue | undefined;
624
+ paddingInline?: import("react-native").DimensionValue | undefined;
625
+ paddingInlineEnd?: import("react-native").DimensionValue | undefined;
626
+ paddingInlineStart?: import("react-native").DimensionValue | undefined;
627
+ shadowColor?: import("react-native").ColorValue | undefined;
628
+ shadowOffset?: Readonly<{
629
+ width: number;
630
+ height: number;
631
+ }> | undefined;
632
+ shadowOpacity?: import("react-native").AnimatableNumericValue | undefined;
633
+ shadowRadius?: number | undefined;
634
+ transform?: Readonly<import("react-native").MaximumOneOf<import("react-native").PerspectiveTransform & import("react-native").RotateTransform & import("react-native").RotateXTransform & import("react-native").RotateYTransform & import("react-native").RotateZTransform & import("react-native").ScaleTransform & import("react-native").ScaleXTransform & import("react-native").ScaleYTransform & import("react-native").TranslateXTransform & import("react-native").TranslateYTransform & import("react-native").SkewXTransform & import("react-native").SkewYTransform & import("react-native").MatrixTransform>[]> | string | undefined;
635
+ transformOrigin?: Array<string | number> | string | undefined;
636
+ transformMatrix?: Array<number> | undefined;
637
+ rotation?: import("react-native").AnimatableNumericValue | undefined;
638
+ scaleX?: import("react-native").AnimatableNumericValue | undefined;
639
+ scaleY?: import("react-native").AnimatableNumericValue | undefined;
640
+ translateX?: import("react-native").AnimatableNumericValue | undefined;
641
+ translateY?: import("react-native").AnimatableNumericValue | undefined;
642
+ };
643
+ question: {
644
+ fontWeight: "600";
645
+ marginBottom: 12;
646
+ color: string;
647
+ fontSize: 14;
648
+ lineHeight: 20;
649
+ };
650
+ scale: {
651
+ flexDirection: "row";
652
+ gap: 4;
653
+ };
654
+ score: {
655
+ flex: number;
656
+ minHeight: number;
657
+ alignItems: "center";
658
+ justifyContent: "center";
659
+ borderRadius: number;
660
+ borderWidth: number;
661
+ borderColor: string;
662
+ backgroundColor: string;
663
+ };
664
+ scoreSelected: {
665
+ borderColor: string;
666
+ backgroundColor: string;
667
+ };
668
+ scorePressed: {
669
+ backgroundColor: string;
670
+ };
671
+ scoreLabel: {
672
+ color: string;
673
+ fontVariant: "tabular-nums"[];
674
+ fontSize: 14;
675
+ lineHeight: 20;
676
+ fontWeight: "500";
677
+ };
678
+ scoreLabelSelected: {
679
+ color: string;
680
+ };
681
+ anchors: {
682
+ flexDirection: "row";
683
+ justifyContent: "space-between";
684
+ gap: 8;
685
+ marginTop: 6;
686
+ };
687
+ anchorGap: {
688
+ marginBottom: 12;
689
+ };
690
+ };
691
+ export type FeedbackStyles = ReturnType<typeof createStyles>;
692
+ export type FeedbackTheme = Readonly<{
693
+ tokens: Tokens;
694
+ styles: FeedbackStyles;
695
+ }>;
696
+ /** Resolves the widget theme (light/dark/auto) against the device scheme into tokens and styles. */
697
+ export declare function useFeedbackTheme(config: WidgetConfig | null): FeedbackTheme | null;