@hero-design/rn 7.14.3-alpha.6 → 7.14.3-alpha.7

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/lib/index.d.ts DELETED
@@ -1,4631 +0,0 @@
1
- declare module '@hero-design/rn/components/Alert/StyledAlert' {
2
- import { TouchableOpacity, View, ViewProps } from 'react-native';
3
- const Container: import("@emotion/native").StyledComponent<ViewProps & {
4
- theme?: import("@emotion/react").Theme | undefined;
5
- as?: import("react").ElementType<any> | undefined;
6
- } & {
7
- themeVariant: 'default' | 'round';
8
- themeIntent: 'success' | 'info' | 'warning' | 'error';
9
- }, {}, {
10
- ref?: import("react").Ref<View> | undefined;
11
- }>;
12
- const IconContainer: import("@emotion/native").StyledComponent<ViewProps & {
13
- theme?: import("@emotion/react").Theme | undefined;
14
- as?: import("react").ElementType<any> | undefined;
15
- }, {}, {
16
- ref?: import("react").Ref<View> | undefined;
17
- }>;
18
- const TextContainer: import("@emotion/native").StyledComponent<ViewProps & {
19
- theme?: import("@emotion/react").Theme | undefined;
20
- as?: import("react").ElementType<any> | undefined;
21
- }, {}, {
22
- ref?: import("react").Ref<View> | undefined;
23
- }>;
24
- const ContentContainer: import("@emotion/native").StyledComponent<ViewProps & {
25
- theme?: import("@emotion/react").Theme | undefined;
26
- as?: import("react").ElementType<any> | undefined;
27
- } & {
28
- showDivider: boolean;
29
- }, {}, {
30
- ref?: import("react").Ref<View> | undefined;
31
- }>;
32
- const CTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
33
- theme?: import("@emotion/react").Theme | undefined;
34
- as?: import("react").ElementType<any> | undefined;
35
- }, {}, {
36
- ref?: import("react").Ref<TouchableOpacity> | undefined;
37
- }>;
38
- export { Container, ContentContainer, TextContainer, IconContainer, CTAWrapper, };
39
-
40
- }
41
- declare module '@hero-design/rn/components/Alert/__tests__/index.spec' {
42
- export {};
43
-
44
- }
45
- declare module '@hero-design/rn/components/Alert/index' {
46
- import { ReactElement } from 'react';
47
- import { StyleProp, ViewStyle } from 'react-native';
48
- import { IconName } from '@hero-design/rn/components/Icon/index';
49
- interface AlertProps {
50
- /**
51
- * Alert title.
52
- */
53
- title?: string | ReactElement;
54
- /**
55
- * Alert content.
56
- */
57
- content: string | ReactElement;
58
- /**
59
- * Icon name of the alert.
60
- * - undefined: use default icon according to Alert intent.
61
- * - null: no icon at all.
62
- * - IconName: an icon identifier from hero-design icon list.
63
- */
64
- icon?: null | IconName;
65
- /**
66
- * Visual intent color to apply to alert.
67
- */
68
- intent?: 'success' | 'info' | 'warning' | 'error';
69
- /**
70
- * Closing callback. When onClose is available, an X button will be rendered on the right side of alert. The callback will be called when user clicks on X button.
71
- */
72
- onClose?: () => void;
73
- /**
74
- * Use rounded variant.
75
- */
76
- variant?: 'default' | 'round';
77
- /**
78
- * Addtional style.
79
- */
80
- style?: StyleProp<ViewStyle>;
81
- /**
82
- * Testing id of the component.
83
- */
84
- testID?: string;
85
- }
86
- const Alert: ({ content, icon, title, intent, onClose, variant, style, testID, }: AlertProps) => JSX.Element;
87
- export default Alert;
88
-
89
- }
90
- declare module '@hero-design/rn/components/Avatar/StyledAvatar' {
91
- import { View, Image, TouchableOpacity, Text } from 'react-native';
92
- type ThemeSize = 'small' | 'medium' | 'large' | 'xlarge';
93
- type ThemeIntent = 'primary' | 'info' | 'danger' | 'success' | 'warning';
94
- const StyledPressable: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
95
- theme?: import("@emotion/react").Theme | undefined;
96
- as?: import("react").ElementType<any> | undefined;
97
- } & {
98
- themeSize: ThemeSize;
99
- themeIntent: ThemeIntent;
100
- }, {}, {
101
- ref?: import("react").Ref<TouchableOpacity> | undefined;
102
- }>;
103
- const StyledView: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
104
- theme?: import("@emotion/react").Theme | undefined;
105
- as?: import("react").ElementType<any> | undefined;
106
- } & {
107
- themeSize: ThemeSize;
108
- themeIntent: ThemeIntent;
109
- }, {}, {
110
- ref?: import("react").Ref<View> | undefined;
111
- }>;
112
- const StyledTextWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
113
- theme?: import("@emotion/react").Theme | undefined;
114
- as?: import("react").ElementType<any> | undefined;
115
- }, {}, {
116
- ref?: import("react").Ref<View> | undefined;
117
- }>;
118
- const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
119
- theme?: import("@emotion/react").Theme | undefined;
120
- as?: import("react").ElementType<any> | undefined;
121
- } & {
122
- themeSize: ThemeSize;
123
- themeIntent: ThemeIntent;
124
- }, {}, {
125
- ref?: import("react").Ref<Text> | undefined;
126
- }>;
127
- const StyledImage: import("@emotion/native").StyledComponent<import("react-native").ImageProps & {
128
- theme?: import("@emotion/react").Theme | undefined;
129
- as?: import("react").ElementType<any> | undefined;
130
- } & {
131
- themeSize: ThemeSize;
132
- }, {}, {
133
- ref?: import("react").Ref<Image> | undefined;
134
- }>;
135
- export { StyledPressable, StyledView, StyledImage, StyledTextWrapper, StyledText, };
136
-
137
- }
138
- declare module '@hero-design/rn/components/Avatar/__tests__/StyledAvatar.spec' {
139
- export {};
140
-
141
- }
142
- declare module '@hero-design/rn/components/Avatar/__tests__/index.spec' {
143
- export {};
144
-
145
- }
146
- declare module '@hero-design/rn/components/Avatar/index' {
147
- import { ImageSourcePropType, StyleProp, ViewProps, ViewStyle } from 'react-native';
148
- interface AvatarProps extends ViewProps {
149
- /** Callback function when pressing component. */
150
- onPress?: () => void;
151
- /** Image source to be displayed on avatar. */
152
- source?: ImageSourcePropType;
153
- /** Renders title in the placeholder. */
154
- title?: string;
155
- /**
156
- * Intent of the Icon.
157
- */
158
- intent?: 'primary' | 'info' | 'danger' | 'success' | 'warning';
159
- /** Size of the avatar. */
160
- size?: 'small' | 'medium' | 'large' | 'xlarge';
161
- /**
162
- * Additional style.
163
- */
164
- style?: StyleProp<ViewStyle>;
165
- /**
166
- * Testing id of the component.
167
- */
168
- testID?: string;
169
- }
170
- const Avatar: ({ onPress, source, testID, style, title, size, intent, }: AvatarProps) => JSX.Element | null;
171
- export default Avatar;
172
-
173
- }
174
- declare module '@hero-design/rn/components/Badge/Status' {
175
- import { StyleProp, ViewStyle, ViewProps } from 'react-native';
176
- import { ReactNode } from 'react';
177
- export interface StatusProps extends ViewProps {
178
- children: ReactNode;
179
- /**
180
- * Whether the Status Badge is visible.
181
- */
182
- visible?: boolean;
183
- /**
184
- /**
185
- * Visual intent color to apply to Status Badge.
186
- */
187
- intent?: 'success' | 'warning' | 'danger' | 'info' | 'archived';
188
- /**
189
- * Additional style.
190
- */
191
- style?: StyleProp<ViewStyle>;
192
- /**
193
- * Testing id of the component.
194
- */
195
- testID?: string;
196
- }
197
- const Status: ({ children, visible, intent, style, testID, ...nativeProps }: StatusProps) => JSX.Element;
198
- export default Status;
199
-
200
- }
201
- declare module '@hero-design/rn/components/Badge/StyledBadge' {
202
- import { Animated, Text } from 'react-native';
203
- type ThemeIntent = 'success' | 'warning' | 'danger' | 'info' | 'archived';
204
- type ThemePadding = 'narrowContent' | 'wideContent';
205
- const StyledView: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>> & {
206
- children?: import("react").ReactNode;
207
- } & {
208
- theme?: import("@emotion/react").Theme | undefined;
209
- as?: import("react").ElementType<any> | undefined;
210
- } & {
211
- themeIntent: ThemeIntent;
212
- themePadding: ThemePadding;
213
- }, {}, {}>;
214
- const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
215
- theme?: import("@emotion/react").Theme | undefined;
216
- as?: import("react").ElementType<any> | undefined;
217
- }, {}, {
218
- ref?: import("react").Ref<Text> | undefined;
219
- }>;
220
- const StyledStatus: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>> & {
221
- children?: import("react").ReactNode;
222
- } & {
223
- theme?: import("@emotion/react").Theme | undefined;
224
- as?: import("react").ElementType<any> | undefined;
225
- } & {
226
- themeIntent: ThemeIntent;
227
- }, {}, {}>;
228
- export { StyledView, StyledText, StyledStatus };
229
-
230
- }
231
- declare module '@hero-design/rn/components/Badge/__tests__/Badge.spec' {
232
- export {};
233
-
234
- }
235
- declare module '@hero-design/rn/components/Badge/__tests__/Status.spec' {
236
- export {};
237
-
238
- }
239
- declare module '@hero-design/rn/components/Badge/index' {
240
- import { Animated, StyleProp, ViewStyle } from 'react-native';
241
- import React from 'react';
242
- interface BadgeProps extends React.ComponentProps<typeof Animated.View> {
243
- /**
244
- * Content of the Badge.
245
- */
246
- content: string | number;
247
- /**
248
- * Whether the Badge is visible.
249
- */
250
- visible?: boolean;
251
- /**
252
- * The maximum number displayed on the badge. If number exceeds this value, `${max}+` are displayed instead. (Only applied when content is number.)
253
- */
254
- max?: number;
255
- /**
256
- * Visual intent color to apply to Badge.
257
- */
258
- intent?: 'success' | 'warning' | 'danger' | 'info' | 'archived';
259
- /**
260
- * Additional style.
261
- */
262
- style?: StyleProp<ViewStyle>;
263
- /**
264
- * Testing id of the component.
265
- */
266
- testID?: string;
267
- }
268
- const _default: (({ content: originalContent, visible, max, intent, style, testID, ...nativeProps }: BadgeProps) => JSX.Element) & {
269
- Status: ({ children, visible, intent, style, testID, ...nativeProps }: import("@hero-design/rn/components/Badge/Status").StatusProps) => JSX.Element;
270
- };
271
- export default _default;
272
-
273
- }
274
- declare module '@hero-design/rn/components/BottomNavigation/StyledBottomNavigation' {
275
- import { View } from 'react-native';
276
- const BottomNavigationTab: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
277
- theme?: import("@emotion/react").Theme | undefined;
278
- as?: import("react").ElementType<any> | undefined;
279
- } & {
280
- themeVisibility?: boolean | undefined;
281
- }, {}, {
282
- ref?: import("react").Ref<View> | undefined;
283
- }>;
284
- const BottomNavigationContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
285
- theme?: import("@emotion/react").Theme | undefined;
286
- as?: import("react").ElementType<any> | undefined;
287
- }, {}, {
288
- ref?: import("react").Ref<View> | undefined;
289
- }>;
290
- const ContentWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
291
- theme?: import("@emotion/react").Theme | undefined;
292
- as?: import("react").ElementType<any> | undefined;
293
- }, {}, {
294
- ref?: import("react").Ref<View> | undefined;
295
- }>;
296
- const BottomBarWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
297
- theme?: import("@emotion/react").Theme | undefined;
298
- as?: import("react").ElementType<any> | undefined;
299
- } & {
300
- themeInsets: {
301
- top: number;
302
- right: number;
303
- bottom: number;
304
- left: number;
305
- };
306
- }, {}, {
307
- ref?: import("react").Ref<View> | undefined;
308
- }>;
309
- const BottomBar: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
310
- theme?: import("@emotion/react").Theme | undefined;
311
- as?: import("react").ElementType<any> | undefined;
312
- }, {}, {
313
- ref?: import("react").Ref<View> | undefined;
314
- }>;
315
- const BottomBarItem: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
316
- theme?: import("@emotion/react").Theme | undefined;
317
- as?: import("react").ElementType<any> | undefined;
318
- }, {}, {
319
- ref?: import("react").Ref<View> | undefined;
320
- }>;
321
- const StyledBottomBarText: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
322
- theme?: import("@emotion/react").Theme | undefined;
323
- as?: import("react").ElementType<any> | undefined;
324
- }, {}, {}>;
325
- export { BottomBar, BottomBarItem, BottomNavigationTab, BottomNavigationContainer, BottomBarWrapper, ContentWrapper, StyledBottomBarText, };
326
-
327
- }
328
- declare module '@hero-design/rn/components/BottomNavigation/__tests__/index.spec' {
329
- export {};
330
-
331
- }
332
- declare module '@hero-design/rn/components/BottomNavigation/index' {
333
- import { ReactNode } from 'react';
334
- import { StyleProp, ViewStyle, ViewProps } from 'react-native';
335
- import { IconName } from '@hero-design/rn/components/Icon/index';
336
- export type BottomNavigationTabType = {
337
- key: string;
338
- title?: string;
339
- icon: IconName;
340
- component: ReactNode;
341
- testID?: string;
342
- };
343
- interface BottomNavigationProps extends ViewProps {
344
- /**
345
- * Callback which is called on tab press, receiving key of upcoming active Tab.
346
- */
347
- onTabPress: (key: string) => void;
348
- /**
349
- * Whether inactive tabs should be removed and unmounted in React.
350
- * Defaults to `false`.
351
- */
352
- renderActiveTabOnly?: boolean;
353
- /**
354
- * Current selected tab key.
355
- */
356
- selectedTabKey: string;
357
- /**
358
- * List of Tabs to be rendered. Each Tab must have an unique key.
359
- */
360
- tabs: {
361
- key: string;
362
- title?: string;
363
- icon: IconName;
364
- component: ReactNode;
365
- testID?: string;
366
- }[];
367
- /**
368
- * Additional style.
369
- */
370
- style?: StyleProp<ViewStyle>;
371
- /**
372
- * Testing id of the component.
373
- */
374
- testID?: string;
375
- }
376
- const BottomNavigation: ({ onTabPress, renderActiveTabOnly, selectedTabKey, tabs, ...nativeProps }: BottomNavigationProps) => JSX.Element;
377
- export default BottomNavigation;
378
-
379
- }
380
- declare module '@hero-design/rn/components/BottomSheet/Footer' {
381
- import { ReactNode } from 'react';
382
- const Footer: ({ children, showDivider, }: {
383
- children: ReactNode;
384
- showDivider: boolean;
385
- }) => JSX.Element;
386
- export default Footer;
387
-
388
- }
389
- declare module '@hero-design/rn/components/BottomSheet/Header' {
390
- import { ReactElement } from 'react';
391
- const Header: ({ content, showDivider, onRequestClose, showCloseButton, }: {
392
- content: string | ReactElement;
393
- showDivider: boolean;
394
- onRequestClose?: (() => void) | undefined;
395
- showCloseButton: boolean;
396
- }) => JSX.Element;
397
- export default Header;
398
-
399
- }
400
- declare module '@hero-design/rn/components/BottomSheet/StyledBottomSheet' {
401
- import { Animated, View, ViewProps } from 'react-native';
402
- const StyledWrapper: import("@emotion/native").StyledComponent<ViewProps & {
403
- theme?: import("@emotion/react").Theme | undefined;
404
- as?: import("react").ElementType<any> | undefined;
405
- }, {}, {
406
- ref?: import("react").Ref<View> | undefined;
407
- }>;
408
- const StyledBottomSheet: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
409
- children?: import("react").ReactNode;
410
- } & {
411
- theme?: import("@emotion/react").Theme | undefined;
412
- as?: import("react").ElementType<any> | undefined;
413
- }, {}, {}>;
414
- const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").PressableProps & import("react").RefAttributes<View>> & {
415
- children?: import("react").ReactNode;
416
- } & {
417
- theme?: import("@emotion/react").Theme | undefined;
418
- as?: import("react").ElementType<any> | undefined;
419
- }, {}, {}>;
420
- const StyledHeaderWrapper: import("@emotion/native").StyledComponent<ViewProps & {
421
- theme?: import("@emotion/react").Theme | undefined;
422
- as?: import("react").ElementType<any> | undefined;
423
- }, {}, {
424
- ref?: import("react").Ref<View> | undefined;
425
- }>;
426
- const StyledHeader: import("@emotion/native").StyledComponent<ViewProps & {
427
- theme?: import("@emotion/react").Theme | undefined;
428
- as?: import("react").ElementType<any> | undefined;
429
- } & {
430
- adjacentIcon: boolean;
431
- }, {}, {
432
- ref?: import("react").Ref<View> | undefined;
433
- }>;
434
- const StyledFooter: import("@emotion/native").StyledComponent<ViewProps & {
435
- theme?: import("@emotion/react").Theme | undefined;
436
- as?: import("react").ElementType<any> | undefined;
437
- }, {}, {
438
- ref?: import("react").Ref<View> | undefined;
439
- }>;
440
- const StyledIconWrapper: import("@emotion/native").StyledComponent<ViewProps & {
441
- theme?: import("@emotion/react").Theme | undefined;
442
- as?: import("react").ElementType<any> | undefined;
443
- }, {}, {
444
- ref?: import("react").Ref<View> | undefined;
445
- }>;
446
- export { StyledWrapper, StyledHeaderWrapper, StyledHeader, StyledFooter, StyledIconWrapper, StyledBottomSheet, StyledBackdrop, };
447
-
448
- }
449
- declare module '@hero-design/rn/components/BottomSheet/__tests__/index.spec' {
450
- export {};
451
-
452
- }
453
- declare module '@hero-design/rn/components/BottomSheet/index' {
454
- import { ReactElement, ReactNode } from 'react';
455
- import { StyleProp, ViewStyle } from 'react-native';
456
- interface BottomSheetProps {
457
- /**
458
- * Bottom sheet open state.
459
- */
460
- open: boolean;
461
- /**
462
- * Bottom sheet's header.
463
- */
464
- header?: string | ReactElement;
465
- /**
466
- * Bottom sheet's footer.
467
- */
468
- footer?: ReactNode;
469
- /**
470
- * Bottom sheet's content.
471
- */
472
- children?: ReactNode;
473
- /**
474
- * Callback is called when the Bottom Sheet is opened.
475
- */
476
- onOpen?: () => void;
477
- /**
478
- * Callback is called when the user taps the back button on Android or when the bottom sheet
479
- * is being dismiss by interacting outside of the bottom sheet.
480
- */
481
- onRequestClose?: () => void;
482
- /**
483
- * Callback that is called once the bottom sheet has been dismissed.
484
- */
485
- onDismiss?: () => void;
486
- /**
487
- * Displays an X button on bottom sheet header that will invoke onRequestClose callback on press.
488
- */
489
- showCloseButton?: boolean;
490
- /**
491
- * Enable the bottom sheet's backdrop.
492
- */
493
- hasBackdrop?: boolean;
494
- /**
495
- * Displays dividers between header, footer and body.
496
- */
497
- showDivider?: boolean;
498
- /**
499
- * Additional style.
500
- */
501
- style?: StyleProp<ViewStyle>;
502
- /**
503
- * Testing id of the component.
504
- */
505
- testID?: string;
506
- }
507
- const BottomSheet: ({ open, header, footer, children, onOpen, onRequestClose, onDismiss, showCloseButton, hasBackdrop, showDivider, style, testID, }: BottomSheetProps) => JSX.Element;
508
- export default BottomSheet;
509
-
510
- }
511
- declare module '@hero-design/rn/components/Button/Button' {
512
- import { ReactChild } from 'react';
513
- import { StyleProp, ViewStyle } from 'react-native';
514
- import { IconName } from '@hero-design/rn/components/Icon/index';
515
- import { Intent, ThemeVariant } from '@hero-design/rn/components/Button/StyledButton';
516
- export interface ButtonProps {
517
- /**
518
- * Helps users understand what will happen when they perform an action on the accessibility element when that result is not clear from the accessibility label.
519
- */
520
- accessibilityHint?: string;
521
- /**
522
- * A succinct label in a localized string that identifies the accessibility element
523
- */
524
- accessibilityLabel?: string;
525
- /**
526
- * Disable state of button.
527
- */
528
- disabled?: boolean;
529
- /**
530
- * Places an icon within the button, before the button's text
531
- */
532
- icon?: IconName;
533
- /**
534
- * Visual intent color to apply to button. It is required for `filled`, `outlined` and `text` variants.
535
- */
536
- intent?: 'primary' | 'secondary' | 'danger';
537
- /**
538
- * Loading state of button.
539
- */
540
- loading?: boolean;
541
- /**
542
- * Set the handler to handle press event.
543
- */
544
- onPress: () => void;
545
- /**
546
- * Places an icon within the button, after the button's text
547
- */
548
- rightIcon?: IconName;
549
- /**
550
- * Additional style.
551
- */
552
- style?: StyleProp<ViewStyle>;
553
- /**
554
- * Testing id of the component.
555
- */
556
- testID?: string;
557
- /**
558
- * Button label.
559
- */
560
- text: ReactChild;
561
- /**
562
- * Button type.
563
- */
564
- variant?: 'filled' | 'outlined' | 'text';
565
- }
566
- export const getThemeVariant: (variant: 'filled' | 'outlined' | 'text', intent: Intent) => ThemeVariant;
567
- const Button: ({ accessibilityHint, accessibilityLabel, disabled, icon, intent, loading, onPress, rightIcon, style, testID, text, variant, }: ButtonProps) => JSX.Element;
568
- export default Button;
569
-
570
- }
571
- declare module '@hero-design/rn/components/Button/IconButton' {
572
- import { StyleProp, ViewStyle, TouchableOpacityProps } from 'react-native';
573
- import { IconProps, IconName } from '@hero-design/rn/components/Icon/index';
574
- export interface IconButtonProps {
575
- /**
576
- * Set how far you can touch from the button.
577
- */
578
- hitSlop?: TouchableOpacityProps['hitSlop'];
579
- /**
580
- * Name of the Icon.
581
- */
582
- icon: IconName;
583
- /**
584
- * Disable state of button.
585
- */
586
- disabled?: boolean;
587
- /**
588
- * Intent of the Icon.
589
- */
590
- intent?: IconProps['intent'];
591
- /**
592
- * Set the handler to handle press event.
593
- */
594
- onPress: () => void;
595
- /**
596
- * Size of the Icon.
597
- */
598
- size?: IconProps['size'];
599
- /**
600
- * Additional style.
601
- */
602
- style?: StyleProp<ViewStyle>;
603
- /**
604
- * Testing id of component.
605
- */
606
- testID?: string;
607
- }
608
- const IconButton: ({ hitSlop, onPress, icon, disabled, testID, style, size, intent, }: IconButtonProps) => JSX.Element;
609
- export default IconButton;
610
-
611
- }
612
- declare module '@hero-design/rn/components/Button/LoadingIndicator/StyledLoadingIndicator' {
613
- import { View, ViewProps } from 'react-native';
614
- import { Theme } from '@emotion/react';
615
- type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
616
- const StyledLoadingIndicatorWrapper: import("@emotion/native").StyledComponent<ViewProps & {
617
- theme?: Theme | undefined;
618
- as?: import("react").ElementType<any> | undefined;
619
- }, {}, {
620
- ref?: import("react").Ref<View> | undefined;
621
- }>;
622
- const StyledLoadingDot: import("@emotion/native").StyledComponent<ViewProps & {
623
- theme?: Theme | undefined;
624
- as?: import("react").ElementType<any> | undefined;
625
- } & {
626
- size?: number | undefined;
627
- themeVariant: ThemeVariant;
628
- }, {}, {
629
- ref?: import("react").Ref<View> | undefined;
630
- }>;
631
- export { StyledLoadingIndicatorWrapper, StyledLoadingDot };
632
-
633
- }
634
- declare module '@hero-design/rn/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec' {
635
- export {};
636
-
637
- }
638
- declare module '@hero-design/rn/components/Button/LoadingIndicator/__tests__/index.spec' {
639
- export {};
640
-
641
- }
642
- declare module '@hero-design/rn/components/Button/LoadingIndicator/index' {
643
- import { StyleProp, ViewStyle, ViewProps } from 'react-native';
644
- type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
645
- interface LoadingIndicatorProps extends ViewProps {
646
- /**
647
- * Size of the loading dot.
648
- */
649
- count?: number;
650
- /**
651
- * Size of the loading dot.
652
- */
653
- size?: number;
654
- /**
655
- * Additional style.
656
- */
657
- style?: StyleProp<ViewStyle>;
658
- /**
659
- * Testing id of the component.
660
- */
661
- testID?: string;
662
- /**
663
- * Testing id of the component.
664
- */
665
- themeVariant: ThemeVariant;
666
- }
667
- const LoadingIndicator: ({ count, size, testID, themeVariant, ...nativeProps }: LoadingIndicatorProps) => JSX.Element;
668
- export default LoadingIndicator;
669
-
670
- }
671
- declare module '@hero-design/rn/components/Button/StyledButton' {
672
- import { TouchableHighlight, View } from 'react-native';
673
- import { Theme } from '@emotion/react';
674
- type Intent = 'primary' | 'secondary' | 'danger';
675
- type ThemeVariant = 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
676
- const StyledButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & {
677
- theme?: Theme | undefined;
678
- as?: import("react").ElementType<any> | undefined;
679
- } & {
680
- disabled?: boolean | undefined;
681
- pressed?: boolean | undefined;
682
- themeVariant: ThemeVariant;
683
- }, {}, {
684
- ref?: import("react").Ref<TouchableHighlight> | undefined;
685
- }>;
686
- const StyledButtonText: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
687
- theme?: Theme | undefined;
688
- as?: import("react").ElementType<any> | undefined;
689
- } & {
690
- disabled?: boolean | undefined;
691
- pressed?: boolean | undefined;
692
- themeVariant: ThemeVariant;
693
- }, {}, {}>;
694
- const StyledButtonIconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
695
- theme?: Theme | undefined;
696
- as?: import("react").ElementType<any> | undefined;
697
- } & {
698
- themePosition: 'left' | 'right';
699
- }, {}, {
700
- ref?: import("react").Ref<View> | undefined;
701
- }>;
702
- const StyledButtonIcon: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
703
- theme?: Theme | undefined;
704
- as?: import("react").ElementType<any> | undefined;
705
- } & {
706
- disabled?: boolean | undefined;
707
- pressed?: boolean | undefined;
708
- themeVariant: ThemeVariant;
709
- }, {}, {}>;
710
- export { StyledButtonContainer, StyledButtonText, StyledButtonIconWrapper, StyledButtonIcon, Intent, ThemeVariant, };
711
-
712
- }
713
- declare module '@hero-design/rn/components/Button/UtilityButton/__tests__/index.spec' {
714
- export {};
715
-
716
- }
717
- declare module '@hero-design/rn/components/Button/UtilityButton/index' {
718
- import { ReactChild } from 'react';
719
- import { ViewProps } from 'react-native';
720
- import { IconName } from '@hero-design/rn/components/Icon/index';
721
- export interface UtilityButtonProps extends ViewProps {
722
- /**
723
- * Places an icon within the button, before the button's text
724
- */
725
- icon: IconName;
726
- /**
727
- * Set the handler to handle press event.
728
- */
729
- onPress: () => void;
730
- /**
731
- * Button label.
732
- */
733
- text: ReactChild;
734
- /**
735
- * Visual intent color to apply to button.
736
- */
737
- intent?: 'primary' | 'text';
738
- }
739
- const UtilityButton: ({ icon, onPress, text, testID, intent, style, hitSlop, }: UtilityButtonProps) => JSX.Element;
740
- export default UtilityButton;
741
-
742
- }
743
- declare module '@hero-design/rn/components/Button/UtilityButton/styled' {
744
- import { View, TouchableOpacity } from 'react-native';
745
- export const ButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
746
- theme?: import("@emotion/react").Theme | undefined;
747
- as?: import("react").ElementType<any> | undefined;
748
- }, {}, {
749
- ref?: import("react").Ref<TouchableOpacity> | undefined;
750
- }>;
751
- export const IconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
752
- theme?: import("@emotion/react").Theme | undefined;
753
- as?: import("react").ElementType<any> | undefined;
754
- }, {}, {
755
- ref?: import("react").Ref<View> | undefined;
756
- }>;
757
- export const ButtonText: import("@emotion/native").StyledComponent<import("../../Typography/Text").TextProps & {
758
- theme?: import("@emotion/react").Theme | undefined;
759
- as?: import("react").ElementType<any> | undefined;
760
- }, {}, {}>;
761
-
762
- }
763
- declare module '@hero-design/rn/components/Button/__tests__/Button.spec' {
764
- export {};
765
-
766
- }
767
- declare module '@hero-design/rn/components/Button/__tests__/IconButton.spec' {
768
- export {};
769
-
770
- }
771
- declare module '@hero-design/rn/components/Button/__tests__/StyledButton.spec' {
772
- export {};
773
-
774
- }
775
- declare module '@hero-design/rn/components/Button/index' {
776
- import { FunctionComponent } from 'react';
777
- import { ButtonProps } from '@hero-design/rn/components/Button/Button';
778
- import IconButton from '@hero-design/rn/components/Button/IconButton';
779
- import UtilityButton from '@hero-design/rn/components/Button/UtilityButton/index';
780
- interface CompoundButtonProps extends FunctionComponent<ButtonProps> {
781
- Icon: typeof IconButton;
782
- Utility: typeof UtilityButton;
783
- }
784
- const CompoundButton: CompoundButtonProps;
785
- export default CompoundButton;
786
-
787
- }
788
- declare module '@hero-design/rn/components/Card/DataCard/StyledDataCard' {
789
- import { View } from 'react-native';
790
- const StyledDataCard: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
791
- theme?: import("@emotion/react").Theme | undefined;
792
- as?: import("react").ElementType<any> | undefined;
793
- }, {}, {
794
- ref?: import("react").Ref<View> | undefined;
795
- }>;
796
- const Indicator: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
797
- theme?: import("@emotion/react").Theme | undefined;
798
- as?: import("react").ElementType<any> | undefined;
799
- } & {
800
- themeIntent: 'success' | 'info' | 'warning' | 'danger' | 'archived';
801
- }, {}, {
802
- ref?: import("react").Ref<View> | undefined;
803
- }>;
804
- export { StyledDataCard, Indicator };
805
-
806
- }
807
- declare module '@hero-design/rn/components/Card/DataCard/__tests__/StyledDataCard.spec' {
808
- export {};
809
-
810
- }
811
- declare module '@hero-design/rn/components/Card/DataCard/__tests__/index.spec' {
812
- export {};
813
-
814
- }
815
- declare module '@hero-design/rn/components/Card/DataCard/index' {
816
- import { ReactNode } from 'react';
817
- import { StyleProp, ViewStyle, ViewProps } from 'react-native';
818
- export interface DataCardProps extends ViewProps {
819
- /**
820
- * Card's content.
821
- */
822
- children?: ReactNode;
823
- /**
824
- * Visual intent color to apply to card.
825
- */
826
- intent?: 'success' | 'info' | 'warning' | 'danger' | 'archived';
827
- /**
828
- * Additional style.
829
- */
830
- style?: StyleProp<ViewStyle>;
831
- /**
832
- * Testing id of the component.
833
- */
834
- testID?: string;
835
- }
836
- const DataCard: ({ intent, children, ...nativeProps }: DataCardProps) => JSX.Element;
837
- export default DataCard;
838
-
839
- }
840
- declare module '@hero-design/rn/components/Card/StyledCard' {
841
- import { View } from 'react-native';
842
- const StyledCard: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
843
- theme?: import("@emotion/react").Theme | undefined;
844
- as?: import("react").ElementType<any> | undefined;
845
- } & {
846
- themeVariant: 'basic' | 'data';
847
- }, {}, {
848
- ref?: import("react").Ref<View> | undefined;
849
- }>;
850
- const LeftDataCard: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
851
- theme?: import("@emotion/react").Theme | undefined;
852
- as?: import("react").ElementType<any> | undefined;
853
- }, {}, {
854
- ref?: import("react").Ref<View> | undefined;
855
- }>;
856
- export { StyledCard, LeftDataCard };
857
-
858
- }
859
- declare module '@hero-design/rn/components/Card/__tests__/StyledCard.spec' {
860
- export {};
861
-
862
- }
863
- declare module '@hero-design/rn/components/Card/__tests__/index.spec' {
864
- export {};
865
-
866
- }
867
- declare module '@hero-design/rn/components/Card/index' {
868
- import { ReactNode } from 'react';
869
- import { StyleProp, ViewStyle, ViewProps } from 'react-native';
870
- interface CardProps extends ViewProps {
871
- /**
872
- * Card's content.
873
- */
874
- children?: ReactNode;
875
- /**
876
- * Card type.
877
- * This is now deprecated. If you want to use "data" variant, please use Card.Data instead.
878
- * @deprecated
879
- */
880
- variant?: 'basic' | 'data';
881
- /**
882
- * Additional style.
883
- */
884
- style?: StyleProp<ViewStyle>;
885
- /**
886
- * Testing id of the component.
887
- */
888
- testID?: string;
889
- }
890
- const _default: (({ variant, children, ...nativeProps }: CardProps) => JSX.Element) & {
891
- Data: ({ intent, children, ...nativeProps }: import("@hero-design/rn/components/Card/DataCard/index").DataCardProps) => JSX.Element;
892
- };
893
- export default _default;
894
-
895
- }
896
- declare module '@hero-design/rn/components/Checkbox/StyledCheckbox' {
897
- import { TouchableOpacity } from 'react-native';
898
- const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
899
- theme?: import("@emotion/react").Theme | undefined;
900
- as?: import("react").ElementType<any> | undefined;
901
- }, {}, {
902
- ref?: import("react").Ref<TouchableOpacity> | undefined;
903
- }>;
904
- export { StyledWrapper };
905
-
906
- }
907
- declare module '@hero-design/rn/components/Checkbox/__tests__/StyledCheckbox.spec' {
908
- export {};
909
-
910
- }
911
- declare module '@hero-design/rn/components/Checkbox/__tests__/index.spec' {
912
- export {};
913
-
914
- }
915
- declare module '@hero-design/rn/components/Checkbox/index' {
916
- import { StyleProp, ViewStyle } from 'react-native';
917
- export interface CheckboxProps {
918
- /**
919
- * Control whether the switch is checked
920
- */
921
- checked?: boolean;
922
- /**
923
- * Whether the switch is disabled
924
- */
925
- disabled?: boolean;
926
- /**
927
- * Event handler.
928
- */
929
- onPress?: () => void;
930
- /**
931
- * Additional style.
932
- */
933
- style?: StyleProp<ViewStyle>;
934
- /**
935
- * Testing id of the component.
936
- */
937
- testID?: string;
938
- }
939
- const CheckBox: ({ checked, disabled, onPress, style, testID, }: CheckboxProps) => JSX.Element;
940
- export default CheckBox;
941
-
942
- }
943
- declare module '@hero-design/rn/components/Collapse/StyledCollapse' {
944
- import { Animated, View } from 'react-native';
945
- const StyledWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
946
- children?: import("react").ReactNode;
947
- } & {
948
- theme?: import("@emotion/react").Theme | undefined;
949
- as?: import("react").ElementType<any> | undefined;
950
- }, {}, {}>;
951
- /**
952
- * Height need to be high enough to cover most scenario
953
- * This container's purpose is only to help get correct children height and returns it
954
- * to use with Animated.timing
955
- */
956
- const StyledHiddenWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
957
- theme?: import("@emotion/react").Theme | undefined;
958
- as?: import("react").ElementType<any> | undefined;
959
- }, {}, {
960
- ref?: import("react").Ref<View> | undefined;
961
- }>;
962
- const StyledChildWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
963
- theme?: import("@emotion/react").Theme | undefined;
964
- as?: import("react").ElementType<any> | undefined;
965
- }, {}, {
966
- ref?: import("react").Ref<View> | undefined;
967
- }>;
968
- export { StyledWrapper, StyledHiddenWrapper, StyledChildWrapper };
969
-
970
- }
971
- declare module '@hero-design/rn/components/Collapse/__tests__/StyledCollapse.spec' {
972
- export {};
973
-
974
- }
975
- declare module '@hero-design/rn/components/Collapse/__tests__/index.spec' {
976
- export {};
977
-
978
- }
979
- declare module '@hero-design/rn/components/Collapse/index' {
980
- import { StyleProp, ViewProps, ViewStyle } from 'react-native';
981
- import { ReactNode } from 'react';
982
- interface CollapseProps extends ViewProps {
983
- children: ReactNode;
984
- /**
985
- * Whether the component is open or closed.
986
- */
987
- open?: boolean;
988
- /**
989
- * Additional style.
990
- */
991
- style?: StyleProp<ViewStyle>;
992
- /**
993
- * Testing id of the component.
994
- */
995
- testID?: string;
996
- }
997
- const Collapse: ({ open, children, testID, style }: CollapseProps) => JSX.Element;
998
- export default Collapse;
999
-
1000
- }
1001
- declare module '@hero-design/rn/components/ContentNavigator/StyledContentNavigator' {
1002
- import { View } from 'react-native';
1003
- const Wrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
1004
- theme?: import("@emotion/react").Theme | undefined;
1005
- as?: import("react").ElementType<any> | undefined;
1006
- }, {}, {
1007
- ref?: import("react").Ref<View> | undefined;
1008
- }>;
1009
- const Value: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
1010
- theme?: import("@emotion/react").Theme | undefined;
1011
- as?: import("react").ElementType<any> | undefined;
1012
- }, {}, {}>;
1013
- export { Wrapper, Value };
1014
-
1015
- }
1016
- declare module '@hero-design/rn/components/ContentNavigator/__tests__/StyledContentNavigator.spec' {
1017
- export {};
1018
-
1019
- }
1020
- declare module '@hero-design/rn/components/ContentNavigator/__tests__/index.spec' {
1021
- export {};
1022
-
1023
- }
1024
- declare module '@hero-design/rn/components/ContentNavigator/index' {
1025
- import { StyleProp, ViewStyle } from 'react-native';
1026
- interface ContentNavigatorProps {
1027
- /**
1028
- * The navigator's content value.
1029
- */
1030
- value: number | string;
1031
- /**
1032
- * Handler to handle press event of previous icon.
1033
- */
1034
- onPreviousPress: () => void;
1035
- /**
1036
- * Handler to handle press event of next icon.
1037
- */
1038
- onNextPress: () => void;
1039
- /**
1040
- * Handler to handle press event of content navigator value.
1041
- */
1042
- onPress?: () => void;
1043
- /**
1044
- * Whether the previous icon is disabled.
1045
- */
1046
- previousDisabled?: boolean;
1047
- /**
1048
- * Whether the next icon is disabled.
1049
- */
1050
- nextDisabled?: boolean;
1051
- /**
1052
- * Additional style.
1053
- */
1054
- style?: StyleProp<ViewStyle>;
1055
- /**
1056
- * Testing id of the component.
1057
- */
1058
- testID?: string;
1059
- }
1060
- function ContentNavigator({ onPreviousPress, onNextPress, onPress, value, previousDisabled, nextDisabled, testID, style, }: ContentNavigatorProps): JSX.Element;
1061
- export default ContentNavigator;
1062
-
1063
- }
1064
- declare module '@hero-design/rn/components/DatePicker/DatePickerAndroid' {
1065
- import { DatePickerProps } from '@hero-design/rn/components/DatePicker/types';
1066
- const DatePickerAndroid: ({ value, label, placeholder, onChange, displayFormat, disabled, required, error, style, testID, }: DatePickerProps) => JSX.Element;
1067
- export default DatePickerAndroid;
1068
-
1069
- }
1070
- declare module '@hero-design/rn/components/DatePicker/DatePickerIOS' {
1071
- import { DatePickerProps } from '@hero-design/rn/components/DatePicker/types';
1072
- const DatePickerIOS: ({ value, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, style, testID, }: DatePickerProps) => JSX.Element;
1073
- export default DatePickerIOS;
1074
-
1075
- }
1076
- declare module '@hero-design/rn/components/DatePicker/StyledDatePicker' {
1077
- import { View, ViewProps } from 'react-native';
1078
- const StyledPickerWrapper: import("@emotion/native").StyledComponent<ViewProps & {
1079
- theme?: import("@emotion/react").Theme | undefined;
1080
- as?: import("react").ElementType<any> | undefined;
1081
- }, {}, {
1082
- ref?: import("react").Ref<View> | undefined;
1083
- }>;
1084
- export { StyledPickerWrapper };
1085
-
1086
- }
1087
- declare module '@hero-design/rn/components/DatePicker/__tests__/DatePicker.spec' {
1088
- export {};
1089
-
1090
- }
1091
- declare module '@hero-design/rn/components/DatePicker/__tests__/DatePickerAndroid.spec' {
1092
- export {};
1093
-
1094
- }
1095
- declare module '@hero-design/rn/components/DatePicker/__tests__/DatePickerIOS.spec' {
1096
- export {};
1097
-
1098
- }
1099
- declare module '@hero-design/rn/components/DatePicker/index' {
1100
- import { DatePickerProps } from '@hero-design/rn/components/DatePicker/types';
1101
- const DatePicker: (props: DatePickerProps) => JSX.Element;
1102
- export default DatePicker;
1103
-
1104
- }
1105
- declare module '@hero-design/rn/components/DatePicker/types' {
1106
- import { StyleProp, ViewStyle } from 'react-native';
1107
- export interface DatePickerProps {
1108
- /**
1109
- * Date picker input label.
1110
- */
1111
- label: string;
1112
- /**
1113
- * Current date value. Must be in correct default format or format provided via format prop.
1114
- */
1115
- value?: Date;
1116
- /**
1117
- * Input placeholder. Date format will be used as placeholder if not specified.
1118
- */
1119
- placeholder?: string;
1120
- /**
1121
- * Callback that is called when new value is selected.
1122
- */
1123
- onChange: (value: Date) => void;
1124
- /**
1125
- * Confirm label text. iOS only.
1126
- */
1127
- confirmLabel: string;
1128
- /**
1129
- * Date format. Default format is dd/MM/yyyy.
1130
- * Following date-fns's format (https://date-fns.org/v2.16.1/docs/format).
1131
- */
1132
- displayFormat?: string;
1133
- /**
1134
- * Whether the Date picker is disabled.
1135
- */
1136
- disabled?: boolean;
1137
- /**
1138
- * Error message to display.
1139
- */
1140
- error?: string;
1141
- /**
1142
- * Whether the value is required, if true, an asterisk will be appended to the label.
1143
- */
1144
- required?: boolean;
1145
- /**
1146
- * Addtional style.
1147
- */
1148
- style?: StyleProp<ViewStyle>;
1149
- /**
1150
- * Testing id of the component..
1151
- */
1152
- testID?: string;
1153
- }
1154
-
1155
- }
1156
- declare module '@hero-design/rn/components/Divider/StyledDivider' {
1157
- import { View } from 'react-native';
1158
- type MarginSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
1159
- const StyledDivider: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
1160
- theme?: import("@emotion/react").Theme | undefined;
1161
- as?: import("react").ElementType<any> | undefined;
1162
- } & {
1163
- themeMarginHorizontal?: MarginSize | undefined;
1164
- themeMarginVertical?: MarginSize | undefined;
1165
- }, {}, {
1166
- ref?: import("react").Ref<View> | undefined;
1167
- }>;
1168
- export { StyledDivider };
1169
-
1170
- }
1171
- declare module '@hero-design/rn/components/Divider/__tests__/StyledDivider.spec' {
1172
- export {};
1173
-
1174
- }
1175
- declare module '@hero-design/rn/components/Divider/index' {
1176
- import { StyleProp, ViewStyle, ViewProps } from 'react-native';
1177
- interface DividerProps extends ViewProps {
1178
- /**
1179
- * Horizontal margin size. There is no margin by default.
1180
- */
1181
- marginHorizontal?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
1182
- /**
1183
- * Vertical margin size. There is no margin by default.
1184
- */
1185
- marginVertical?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
1186
- /**
1187
- * Additional style.
1188
- */
1189
- style?: StyleProp<ViewStyle>;
1190
- /**
1191
- * Testing id of the component.
1192
- */
1193
- testID?: string;
1194
- }
1195
- const Divider: ({ marginHorizontal, marginVertical, style, testID, ...nativeProps }: DividerProps) => JSX.Element;
1196
- export default Divider;
1197
-
1198
- }
1199
- declare module '@hero-design/rn/components/Drawer/StyledDrawer' {
1200
- import { Animated, View } from 'react-native';
1201
- const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
1202
- theme?: import("@emotion/react").Theme | undefined;
1203
- as?: import("react").ElementType<any> | undefined;
1204
- } & {
1205
- enableShadow: boolean;
1206
- }, {}, {
1207
- ref?: import("react").Ref<View> | undefined;
1208
- }>;
1209
- const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").PressableProps & import("react").RefAttributes<View>> & {
1210
- children?: import("react").ReactNode;
1211
- } & {
1212
- theme?: import("@emotion/react").Theme | undefined;
1213
- as?: import("react").ElementType<any> | undefined;
1214
- }, {}, {}>;
1215
- const StyledDrawerContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
1216
- children?: import("react").ReactNode;
1217
- } & {
1218
- theme?: import("@emotion/react").Theme | undefined;
1219
- as?: import("react").ElementType<any> | undefined;
1220
- } & {
1221
- enableShadow: boolean;
1222
- }, {}, {}>;
1223
- export { StyledBackdrop, StyledContainer, StyledDrawerContainer };
1224
-
1225
- }
1226
- declare module '@hero-design/rn/components/Drawer/__tests__/index.spec' {
1227
- export {};
1228
-
1229
- }
1230
- declare module '@hero-design/rn/components/Drawer/index' {
1231
- import { ReactNode } from 'react';
1232
- interface DrawerProps {
1233
- /**
1234
- * Drawer's visibility.
1235
- */
1236
- visible: boolean;
1237
- /**
1238
- * Drawer's content.
1239
- */
1240
- children?: ReactNode;
1241
- /**
1242
- * Enable the drawer's backdrop.
1243
- */
1244
- hasBackdrop?: boolean;
1245
- /**
1246
- * Callback when the drawer is dismissed by interacting outside of the drawer.
1247
- */
1248
- onDismiss?: () => void;
1249
- /**
1250
- * Testing id of the component.
1251
- * */
1252
- testID?: string;
1253
- }
1254
- const Drawer: ({ visible, children, hasBackdrop, onDismiss, testID, }: DrawerProps) => JSX.Element;
1255
- export default Drawer;
1256
-
1257
- }
1258
- declare module '@hero-design/rn/components/FAB/ActionGroup/ActionItem' {
1259
- import { ComponentProps } from 'react';
1260
- import { StyleProp, ViewStyle } from 'react-native';
1261
- import Icon from '@hero-design/rn/components/Icon/index';
1262
- export interface ActionItemProps {
1263
- testID?: string;
1264
- title: string;
1265
- icon: ComponentProps<typeof Icon>['icon'];
1266
- onPress?: () => void;
1267
- style?: StyleProp<ViewStyle>;
1268
- }
1269
- const ActionItem: ({ icon, title, onPress, style, testID, }: ActionItemProps) => JSX.Element;
1270
- export default ActionItem;
1271
-
1272
- }
1273
- declare module '@hero-design/rn/components/FAB/ActionGroup/StyledActionGroup' {
1274
- import { Animated, View, ViewProps } from 'react-native';
1275
- import { TextProps } from '@hero-design/rn/components/Typography/Text/index';
1276
- const StyledContainer: import("@emotion/native").StyledComponent<ViewProps & {
1277
- theme?: import("@emotion/react").Theme | undefined;
1278
- as?: import("react").ElementType<any> | undefined;
1279
- }, {}, {
1280
- ref?: import("react").Ref<View> | undefined;
1281
- }>;
1282
- const StyledActionGroupContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
1283
- children?: import("react").ReactNode;
1284
- } & {
1285
- theme?: import("@emotion/react").Theme | undefined;
1286
- as?: import("react").ElementType<any> | undefined;
1287
- }, {}, {}>;
1288
- const StyledFAB: import("@emotion/native").StyledComponent<import("../FAB").FABProps & {
1289
- theme?: import("@emotion/react").Theme | undefined;
1290
- as?: import("react").ElementType<any> | undefined;
1291
- }, {}, {}>;
1292
- const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
1293
- children?: import("react").ReactNode;
1294
- } & {
1295
- theme?: import("@emotion/react").Theme | undefined;
1296
- as?: import("react").ElementType<any> | undefined;
1297
- }, {}, {}>;
1298
- const StyledHeaderText: import("@emotion/native").StyledComponent<TextProps & {
1299
- theme?: import("@emotion/react").Theme | undefined;
1300
- as?: import("react").ElementType<any> | undefined;
1301
- }, {}, {}>;
1302
- export { StyledHeaderText, StyledBackdrop, StyledContainer, StyledActionGroupContainer, StyledFAB, };
1303
-
1304
- }
1305
- declare module '@hero-design/rn/components/FAB/ActionGroup/StyledActionItem' {
1306
- import { TouchableOpacity, TouchableOpacityProps } from 'react-native';
1307
- import { IconProps } from '@hero-design/rn/components/Icon/index';
1308
- const StyledActionItem: import("@emotion/native").StyledComponent<TouchableOpacityProps & {
1309
- theme?: import("@emotion/react").Theme | undefined;
1310
- as?: import("react").ElementType<any> | undefined;
1311
- }, {}, {
1312
- ref?: import("react").Ref<TouchableOpacity> | undefined;
1313
- }>;
1314
- const StyledActionItemText: import("@emotion/native").StyledComponent<import("../../Typography/Text").TextProps & {
1315
- theme?: import("@emotion/react").Theme | undefined;
1316
- as?: import("react").ElementType<any> | undefined;
1317
- } & TouchableOpacityProps, {}, {}>;
1318
- const StyledIcon: import("@emotion/native").StyledComponent<IconProps & {
1319
- theme?: import("@emotion/react").Theme | undefined;
1320
- as?: import("react").ElementType<any> | undefined;
1321
- }, {}, {}>;
1322
- export { StyledIcon, StyledActionItem, StyledActionItemText };
1323
-
1324
- }
1325
- declare module '@hero-design/rn/components/FAB/ActionGroup/__tests__/index.spec' {
1326
- import '@testing-library/jest-native/extend-expect';
1327
-
1328
- }
1329
- declare module '@hero-design/rn/components/FAB/ActionGroup/index' {
1330
- import { StyleProp, ViewStyle } from 'react-native';
1331
- import { IconName } from '@hero-design/rn/components/Icon/index';
1332
- import { ActionItemProps } from '@hero-design/rn/components/FAB/ActionGroup/ActionItem';
1333
- export interface ActionGroupProps {
1334
- /**
1335
- * Title of the action group header.
1336
- */
1337
- headerTitle?: string;
1338
- /**
1339
- * This function is called on pressing the FAB button.
1340
- * */
1341
- onPress?: () => void;
1342
- /**
1343
- * Specify if the FAB button is in active state and the action group is shown.
1344
- * */
1345
- active?: boolean;
1346
- /**
1347
- * Title of the floating action button
1348
- */
1349
- fabTitle?: string;
1350
- /**
1351
- * Icon name of the floating action button
1352
- */
1353
- fabIcon?: IconName;
1354
- /**
1355
- * Additional style.
1356
- */
1357
- style?: StyleProp<ViewStyle>;
1358
- /**
1359
- * Action items of the action group.
1360
- * */
1361
- items?: Array<ActionItemProps>;
1362
- /**
1363
- * Testing id of the component.
1364
- */
1365
- testID?: string;
1366
- }
1367
- const ActionGroup: ({ headerTitle, onPress, active, style, items, testID, fabTitle, fabIcon, }: ActionGroupProps) => JSX.Element;
1368
- export default ActionGroup;
1369
-
1370
- }
1371
- declare module '@hero-design/rn/components/FAB/AnimatedFABIcon' {
1372
- import { IconProps } from '@hero-design/rn/components/Icon/index';
1373
- type Props = {
1374
- active?: boolean;
1375
- } & IconProps;
1376
- const AnimatedFABIcon: ({ active, ...iconProps }: Props) => JSX.Element;
1377
- export { AnimatedFABIcon };
1378
-
1379
- }
1380
- declare module '@hero-design/rn/components/FAB/FAB' {
1381
- import { StyleProp, ViewStyle } from 'react-native';
1382
- import { IconName } from '@hero-design/rn/components/Icon/index';
1383
- export interface FABProps {
1384
- /**
1385
- * Name of the Icon.
1386
- */
1387
- icon: IconName;
1388
- /**
1389
- * title of the component.
1390
- */
1391
- title?: string;
1392
- /**
1393
- * This function is called on pressing the button.
1394
- */
1395
- onPress?: () => void;
1396
- /**
1397
- * Specify if the button is animated.
1398
- */
1399
- animated?: boolean;
1400
- /**
1401
- * Specify if the button is in active state. It only works if animated is true.
1402
- */
1403
- active?: boolean;
1404
- /**
1405
- * Additional style.
1406
- */
1407
- style?: StyleProp<ViewStyle>;
1408
- /**
1409
- * Testing id of the component.
1410
- */
1411
- testID?: string;
1412
- }
1413
- const FAB: ({ onPress, title, icon, animated, testID, active, style, }: FABProps) => JSX.Element;
1414
- export default FAB;
1415
-
1416
- }
1417
- declare module '@hero-design/rn/components/FAB/StyledFAB' {
1418
- import { Text, TextProps, TouchableHighlight, TouchableHighlightProps } from 'react-native';
1419
- import { IconProps } from '@hero-design/rn/components/Icon/index';
1420
- const StyledFABContainer: import("@emotion/native").StyledComponent<TouchableHighlightProps & {
1421
- theme?: import("@emotion/react").Theme | undefined;
1422
- as?: import("react").ElementType<any> | undefined;
1423
- }, {}, {
1424
- ref?: import("react").Ref<TouchableHighlight> | undefined;
1425
- }>;
1426
- const StyledFABIcon: import("@emotion/native").StyledComponent<IconProps & {
1427
- theme?: import("@emotion/react").Theme | undefined;
1428
- as?: import("react").ElementType<any> | undefined;
1429
- }, {}, {}>;
1430
- const StyledFABText: import("@emotion/native").StyledComponent<TextProps & {
1431
- theme?: import("@emotion/react").Theme | undefined;
1432
- as?: import("react").ElementType<any> | undefined;
1433
- }, {}, {
1434
- ref?: import("react").Ref<Text> | undefined;
1435
- }>;
1436
- export { StyledFABContainer, StyledFABIcon, StyledFABText };
1437
-
1438
- }
1439
- declare module '@hero-design/rn/components/FAB/__tests__/AnimatedFABIcon.spec' {
1440
- export {};
1441
-
1442
- }
1443
- declare module '@hero-design/rn/components/FAB/__tests__/StyledFAB.spec' {
1444
- export {};
1445
-
1446
- }
1447
- declare module '@hero-design/rn/components/FAB/__tests__/index.spec' {
1448
- export {};
1449
-
1450
- }
1451
- declare module '@hero-design/rn/components/FAB/index' {
1452
- const _default: (({ onPress, title, icon, animated, testID, active, style, }: import("@hero-design/rn/components/FAB/FAB").FABProps) => JSX.Element) & {
1453
- ActionGroup: ({ headerTitle, onPress, active, style, items, testID, fabTitle, fabIcon, }: import("@hero-design/rn/components/FAB/ActionGroup/index").ActionGroupProps) => JSX.Element;
1454
- };
1455
- export default _default;
1456
-
1457
- }
1458
- declare module '@hero-design/rn/components/Icon/HeroIcon/index' {
1459
- type ThemeSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
1460
- type ThemeIntent = 'text' | 'primary' | 'info' | 'danger' | 'success' | 'warning' | 'disabled-text' | 'text-inverted';
1461
- const StyledHeroIcon: import("@emotion/native").StyledComponent<import("react-native-vector-icons/Icon").IconProps & {
1462
- theme?: import("@emotion/react").Theme | undefined;
1463
- as?: import("react").ElementType<any> | undefined;
1464
- } & {
1465
- themeSize: ThemeSize;
1466
- themeIntent: ThemeIntent;
1467
- }, {}, {
1468
- ref?: import("react").Ref<import("react-native-vector-icons/Icon").Icon> | undefined;
1469
- }>;
1470
- export default StyledHeroIcon;
1471
-
1472
- }
1473
- declare module '@hero-design/rn/components/Icon/IconList' {
1474
- const IconList: readonly ["activate", "add-person", "adjustment", "alignment", "bank", "bell", "billing", "bookmark", "box-check", "box", "buildings", "cake", "calendar-clock", "calendar", "candy-box-menu", "carat-down-small", "carat-down", "carat-left", "carat-right", "carat-up", "circle-add", "circle-cancel", "circle-check", "circle-down", "circle-info", "circle-left", "circle-ok", "circle-pencil", "circle-question", "circle-remove", "circle-right", "circle-up", "circle-warning", "clock", "clock-3", "cloud-download", "cloud-upload", "cog", "coin", "contacts", "credit-card", "diamond", "direction-arrows", "directory", "document", "dollar-coin-shine", "double-buildings", "edit-template", "envelope", "expense", "eye-circle", "eye-invisible", "eye", "face-meh", "face-sad", "face-smiley", "feed", "feedbacks", "file-certified", "file-clone", "file-copy", "file-csv", "file-dispose", "file-doc", "file-excel", "file-export", "file-lock", "file-pdf", "file-powerpoint", "file-search", "file-secured", "file-sheets", "file-slide", "file-verified", "file-word", "file", "folder-user", "folder", "funnel-filter", "global-dollar", "globe", "graduation-cap", "graph", "happy-sun", "health-bag", "heart", "home", "image", "import", "incident-siren", "instapay", "list", "loading", "loading-2", "location", "lock", "looks-one", "looks-two", "media-content", "menu", "moneybag", "moon", "multiple-stars", "multiple-users", "node", "open-folder", "paperclip", "payment-summary", "pencil", "phone", "piggy-bank", "plane", "play-circle", "print", "raising-hands", "reply", "reschedule", "rostering", "save", "schedule", "search-person", "send", "speaker", "star-medal", "star", "steps-circle", "stopwatch", "suitcase", "survey", "swag", "switch", "tag", "target", "teams", "timesheet", "touch-id", "trash-bin", "unlock", "user", "video-1", "video-2", "activate-outlined", "add-person-outlined", "add-section-outlined", "add-time-outlined", "add", "adjustment-outlined", "alignment-2-outlined", "alignment-outlined", "all-caps", "arrow-down", "arrow-left", "arrow-right", "arrow-up", "at-sign", "bell-outlined", "billing-outlined", "body-outlined", "bold", "bookmark-outlined", "box-check-outlined", "box-outlined", "bullet-points", "cake-outlined", "calendar-dates-outlined", "calendar-star-outlined", "camera-outlined", "cancel", "checkmark", "circle-add-outlined", "circle-cancel-outlined", "circle-down-outlined", "circle-info-outlined", "circle-left-outlined", "circle-ok-outlined", "circle-question-outlined", "circle-remove-outlined", "circle-right-outlined", "circle-up-outlined", "circle-warning-outlined", "clock-2-outlined", "clock-outlined", "cog-outlined", "coin-outlined", "comment-outlined", "contacts-outlined", "credit-card-outlined", "direction-arrows-outlined", "directory-outlined", "document-outlined", "dollar-coin-shine-outlined", "dollar-sign", "double-buildings-outlined", "double-left-arrows", "double-right-arrows", "download-outlined", "edit-template-outlined", "email-outlined", "enter-arrow", "envelope-outlined", "expense-outlined", "external-link", "eye-invisible-outlined", "eye-outlined", "face-id", "face-meh-outlined", "face-open-smiley-outlined", "face-sad-outlined", "face-smiley-outlined", "feed-outlined", "file-certified-outlined", "file-clone-outlined", "file-copy-outlined", "file-dispose-outlined", "file-download-outlined", "file-export-outlined", "file-lock-outlined", "file-outlined", "file-search-outlined", "file-secured-outlined", "file-verified-outlined", "folder-outlined", "folder-user-outlined", "funnel-filter-outline", "graph-outlined", "happy-sun-outlined", "health-bag-outlined", "heart-outlined", "home-outlined", "image-outlined", "import-outlined", "instapay-outlined", "italic", "link-1", "link-2", "list-outlined", "location-outlined", "lock-outlined", "locked-file-outlined", "log-out", "media-content-outlined", "menu-close", "menu-expand", "menu-fold-outlined", "menu-unfold-outlined", "moneybag-outlined", "moon-outlined", "more-horizontal", "more-vertical", "multiple-folders-outlined", "multiple-users-outlined", "node-outlined", "number-points", "number", "payment-summary-outlined", "payslip-outlined", "pencil-outlined", "percentage", "phone-outlined", "piggy-bank-outlined", "plane-outlined", "play-circle-outlined", "print-outlined", "qr-code-outlined", "re-assign", "redeem", "refresh", "remove", "reply-outlined", "restart", "return-arrow", "rostering-outlined", "save-outlined", "schedule-outlined", "search-outlined", "send-outlined", "share-1", "share-2", "single-down-arrow", "single-left-arrow", "single-right-arrow", "single-up-arrow", "speaker-outlined", "star-outlined", "stopwatch-outlined", "strikethrough", "suitcase-outlined", "survey-outlined", "switch-outlined", "sync", "target-outlined", "timesheet-outlined", "transfer", "trash-bin-outlined", "unavailable", "underline", "unlock-outlined", "upload-outlined", "user-circle-outlined", "user-outlined", "user-rectangle-outlined", "video-1-outlined", "video-2-outlined", "wallet-outlined", "warning"];
1475
- export default IconList;
1476
-
1477
- }
1478
- declare module '@hero-design/rn/components/Icon/__tests__/index.spec' {
1479
- export {};
1480
-
1481
- }
1482
- declare module '@hero-design/rn/components/Icon/index' {
1483
- import { StyleProp, TextStyle } from 'react-native';
1484
- import IconList from '@hero-design/rn/components/Icon/IconList';
1485
- export type IconName = typeof IconList[number];
1486
- export interface IconProps {
1487
- /**
1488
- * Name of the Icon.
1489
- */
1490
- icon: IconName;
1491
- /**
1492
- * Intent of the Icon.
1493
- */
1494
- intent?: 'text' | 'primary' | 'info' | 'danger' | 'success' | 'warning' | 'disabled-text' | 'text-inverted';
1495
- /**
1496
- * Size of the Icon.
1497
- */
1498
- size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
1499
- /**
1500
- * Additional style.
1501
- */
1502
- style?: StyleProp<TextStyle>;
1503
- /**
1504
- * Testing id of the component.
1505
- */
1506
- testID?: string;
1507
- }
1508
- const Icon: ({ icon, style, size, intent, testID, }: IconProps) => JSX.Element;
1509
- export default Icon;
1510
-
1511
- }
1512
- declare module '@hero-design/rn/components/Icon/utils' {
1513
- const isHeroIcon: (x: any) => x is "number" | "activate" | "add-person" | "adjustment" | "alignment" | "bank" | "bell" | "billing" | "bookmark" | "box-check" | "box" | "buildings" | "cake" | "calendar-clock" | "calendar" | "candy-box-menu" | "carat-down-small" | "carat-down" | "carat-left" | "carat-right" | "carat-up" | "circle-add" | "circle-cancel" | "circle-check" | "circle-down" | "circle-info" | "circle-left" | "circle-ok" | "circle-pencil" | "circle-question" | "circle-remove" | "circle-right" | "circle-up" | "circle-warning" | "clock" | "clock-3" | "cloud-download" | "cloud-upload" | "cog" | "coin" | "contacts" | "credit-card" | "diamond" | "direction-arrows" | "directory" | "document" | "dollar-coin-shine" | "double-buildings" | "edit-template" | "envelope" | "expense" | "eye-circle" | "eye-invisible" | "eye" | "face-meh" | "face-sad" | "face-smiley" | "feed" | "feedbacks" | "file-certified" | "file-clone" | "file-copy" | "file-csv" | "file-dispose" | "file-doc" | "file-excel" | "file-export" | "file-lock" | "file-pdf" | "file-powerpoint" | "file-search" | "file-secured" | "file-sheets" | "file-slide" | "file-verified" | "file-word" | "file" | "folder-user" | "folder" | "funnel-filter" | "global-dollar" | "globe" | "graduation-cap" | "graph" | "happy-sun" | "health-bag" | "heart" | "home" | "image" | "import" | "incident-siren" | "instapay" | "list" | "loading" | "loading-2" | "location" | "lock" | "looks-one" | "looks-two" | "media-content" | "menu" | "moneybag" | "moon" | "multiple-stars" | "multiple-users" | "node" | "open-folder" | "paperclip" | "payment-summary" | "pencil" | "phone" | "piggy-bank" | "plane" | "play-circle" | "print" | "raising-hands" | "reply" | "reschedule" | "rostering" | "save" | "schedule" | "search-person" | "send" | "speaker" | "star-medal" | "star" | "steps-circle" | "stopwatch" | "suitcase" | "survey" | "swag" | "switch" | "tag" | "target" | "teams" | "timesheet" | "touch-id" | "trash-bin" | "unlock" | "user" | "video-1" | "video-2" | "activate-outlined" | "add-person-outlined" | "add-section-outlined" | "add-time-outlined" | "add" | "adjustment-outlined" | "alignment-2-outlined" | "alignment-outlined" | "all-caps" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "at-sign" | "bell-outlined" | "billing-outlined" | "body-outlined" | "bold" | "bookmark-outlined" | "box-check-outlined" | "box-outlined" | "bullet-points" | "cake-outlined" | "calendar-dates-outlined" | "calendar-star-outlined" | "camera-outlined" | "cancel" | "checkmark" | "circle-add-outlined" | "circle-cancel-outlined" | "circle-down-outlined" | "circle-info-outlined" | "circle-left-outlined" | "circle-ok-outlined" | "circle-question-outlined" | "circle-remove-outlined" | "circle-right-outlined" | "circle-up-outlined" | "circle-warning-outlined" | "clock-2-outlined" | "clock-outlined" | "cog-outlined" | "coin-outlined" | "comment-outlined" | "contacts-outlined" | "credit-card-outlined" | "direction-arrows-outlined" | "directory-outlined" | "document-outlined" | "dollar-coin-shine-outlined" | "dollar-sign" | "double-buildings-outlined" | "double-left-arrows" | "double-right-arrows" | "download-outlined" | "edit-template-outlined" | "email-outlined" | "enter-arrow" | "envelope-outlined" | "expense-outlined" | "external-link" | "eye-invisible-outlined" | "eye-outlined" | "face-id" | "face-meh-outlined" | "face-open-smiley-outlined" | "face-sad-outlined" | "face-smiley-outlined" | "feed-outlined" | "file-certified-outlined" | "file-clone-outlined" | "file-copy-outlined" | "file-dispose-outlined" | "file-download-outlined" | "file-export-outlined" | "file-lock-outlined" | "file-outlined" | "file-search-outlined" | "file-secured-outlined" | "file-verified-outlined" | "folder-outlined" | "folder-user-outlined" | "funnel-filter-outline" | "graph-outlined" | "happy-sun-outlined" | "health-bag-outlined" | "heart-outlined" | "home-outlined" | "image-outlined" | "import-outlined" | "instapay-outlined" | "italic" | "link-1" | "link-2" | "list-outlined" | "location-outlined" | "lock-outlined" | "locked-file-outlined" | "log-out" | "media-content-outlined" | "menu-close" | "menu-expand" | "menu-fold-outlined" | "menu-unfold-outlined" | "moneybag-outlined" | "moon-outlined" | "more-horizontal" | "more-vertical" | "multiple-folders-outlined" | "multiple-users-outlined" | "node-outlined" | "number-points" | "payment-summary-outlined" | "payslip-outlined" | "pencil-outlined" | "percentage" | "phone-outlined" | "piggy-bank-outlined" | "plane-outlined" | "play-circle-outlined" | "print-outlined" | "qr-code-outlined" | "re-assign" | "redeem" | "refresh" | "remove" | "reply-outlined" | "restart" | "return-arrow" | "rostering-outlined" | "save-outlined" | "schedule-outlined" | "search-outlined" | "send-outlined" | "share-1" | "share-2" | "single-down-arrow" | "single-left-arrow" | "single-right-arrow" | "single-up-arrow" | "speaker-outlined" | "star-outlined" | "stopwatch-outlined" | "strikethrough" | "suitcase-outlined" | "survey-outlined" | "switch-outlined" | "sync" | "target-outlined" | "timesheet-outlined" | "transfer" | "trash-bin-outlined" | "unavailable" | "underline" | "unlock-outlined" | "upload-outlined" | "user-circle-outlined" | "user-outlined" | "user-rectangle-outlined" | "video-1-outlined" | "video-2-outlined" | "wallet-outlined" | "warning";
1514
- export { isHeroIcon };
1515
-
1516
- }
1517
- declare module '@hero-design/rn/components/List/BasicListItem' {
1518
- import React from 'react';
1519
- import { StyleProp, ViewStyle } from 'react-native';
1520
- import { IconName } from '@hero-design/rn/components/Icon/index';
1521
- export interface ListItemProps {
1522
- /**
1523
- * Name of Icon or component to render on the left side of title.
1524
- */
1525
- prefix?: IconName | React.ReactElement;
1526
- /**
1527
- * Name of Icon or component to render on the right side of title.
1528
- */
1529
- suffix?: IconName | React.ReactElement;
1530
- /**
1531
- * The title of the component.
1532
- */
1533
- title: string;
1534
- /**
1535
- * The subtile title of the component.
1536
- */
1537
- subtitle?: string;
1538
- /**
1539
- * Whether the component is disabled. Default value is false
1540
- */
1541
- disabled?: boolean;
1542
- /**
1543
- * Whether the component is selected. Default value is false
1544
- */
1545
- selected?: boolean;
1546
- /**
1547
- * Additional wrapper style.
1548
- */
1549
- style?: StyleProp<ViewStyle>;
1550
- /**
1551
- * Testing id of the component.
1552
- */
1553
- testID?: string;
1554
- /**
1555
- * Set the handler to handle press event.
1556
- */
1557
- onPress?: () => void;
1558
- }
1559
- const BasicListItem: ({ prefix, suffix, title, subtitle, style, testID, selected, disabled, onPress, }: ListItemProps) => JSX.Element;
1560
- export default BasicListItem;
1561
-
1562
- }
1563
- declare module '@hero-design/rn/components/List/ListItem' {
1564
- import React, { ReactNode } from 'react';
1565
- import { StyleProp, ViewStyle } from 'react-native';
1566
- import { IconName } from '@hero-design/rn/components/Icon/index';
1567
- export interface ListItemProps {
1568
- /**
1569
- * Name of Icon or ReactElement to render on the left side of title.
1570
- */
1571
- prefix?: IconName | React.ReactElement;
1572
- /**
1573
- * Name of Icon or ReactElement to render on the right side of title.
1574
- */
1575
- suffix?: IconName | React.ReactElement;
1576
- /**
1577
- * The title of the component.
1578
- */
1579
- title?: string;
1580
- /**
1581
- * The subtile title of the component.
1582
- */
1583
- subtitle?: string;
1584
- /**
1585
- * Additional wrapper style.
1586
- */
1587
- style?: StyleProp<ViewStyle>;
1588
- /**
1589
- * Children to be rendered inside the component.
1590
- */
1591
- children?: ReactNode;
1592
- /**
1593
- * Leading status of the component
1594
- * */
1595
- leadingStatus?: 'success' | 'warning' | 'danger' | 'info' | 'archived';
1596
- variant?: 'full-width' | 'card';
1597
- /**
1598
- * Whether the component is disabled. Default value is false
1599
- */
1600
- disabled?: boolean;
1601
- /** * Whether the component is selected. Default value is false
1602
- */
1603
- selected?: boolean;
1604
- /**
1605
- * Testing id of the component.
1606
- */
1607
- testID?: string;
1608
- /**
1609
- * Set the handler to handle press event.
1610
- */
1611
- onPress?: () => void;
1612
- }
1613
- const ListItem: ({ prefix, suffix, title, subtitle, style, testID, selected, children, leadingStatus, variant, onPress, disabled, }: ListItemProps) => JSX.Element;
1614
- export default ListItem;
1615
-
1616
- }
1617
- declare module '@hero-design/rn/components/List/StyledBasicListItem' {
1618
- import { TouchableHighlight, View } from 'react-native';
1619
- const StyledPrefixContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
1620
- theme?: import("@emotion/react").Theme | undefined;
1621
- as?: import("react").ElementType<any> | undefined;
1622
- }, {}, {
1623
- ref?: import("react").Ref<View> | undefined;
1624
- }>;
1625
- const StyledSuffixContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
1626
- theme?: import("@emotion/react").Theme | undefined;
1627
- as?: import("react").ElementType<any> | undefined;
1628
- }, {}, {
1629
- ref?: import("react").Ref<View> | undefined;
1630
- }>;
1631
- const StyledTitleContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
1632
- theme?: import("@emotion/react").Theme | undefined;
1633
- as?: import("react").ElementType<any> | undefined;
1634
- }, {}, {
1635
- ref?: import("react").Ref<View> | undefined;
1636
- }>;
1637
- const StyledListItemContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & {
1638
- theme?: import("@emotion/react").Theme | undefined;
1639
- as?: import("react").ElementType<any> | undefined;
1640
- } & {
1641
- themeSelected?: boolean | undefined;
1642
- themeDisabled?: boolean | undefined;
1643
- }, {}, {
1644
- ref?: import("react").Ref<TouchableHighlight> | undefined;
1645
- }>;
1646
- export { StyledListItemContainer, StyledPrefixContainer, StyledTitleContainer, StyledSuffixContainer, };
1647
-
1648
- }
1649
- declare module '@hero-design/rn/components/List/StyledListItem' {
1650
- import { TouchableHighlight, View } from 'react-native';
1651
- export type Variant = 'full-width' | 'card';
1652
- export type LeadingStatusIntent = 'success' | 'warning' | 'danger' | 'info' | 'archived';
1653
- const StyledListItemContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & {
1654
- theme?: import("@emotion/react").Theme | undefined;
1655
- as?: import("react").ElementType<any> | undefined;
1656
- } & {
1657
- themeSelected?: boolean | undefined;
1658
- themeVariant?: Variant | undefined;
1659
- }, {}, {
1660
- ref?: import("react").Ref<TouchableHighlight> | undefined;
1661
- }>;
1662
- const StyledContentContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
1663
- theme?: import("@emotion/react").Theme | undefined;
1664
- as?: import("react").ElementType<any> | undefined;
1665
- }, {}, {
1666
- ref?: import("react").Ref<View> | undefined;
1667
- }>;
1668
- const StyledChildrenContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
1669
- theme?: import("@emotion/react").Theme | undefined;
1670
- as?: import("react").ElementType<any> | undefined;
1671
- }, {}, {
1672
- ref?: import("react").Ref<View> | undefined;
1673
- }>;
1674
- const StyledLeadingStatus: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
1675
- theme?: import("@emotion/react").Theme | undefined;
1676
- as?: import("react").ElementType<any> | undefined;
1677
- } & {
1678
- themeLeadingStatusIntent: LeadingStatusIntent;
1679
- }, {}, {
1680
- ref?: import("react").Ref<View> | undefined;
1681
- }>;
1682
- const StyledPrefixContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
1683
- theme?: import("@emotion/react").Theme | undefined;
1684
- as?: import("react").ElementType<any> | undefined;
1685
- }, {}, {
1686
- ref?: import("react").Ref<View> | undefined;
1687
- }>;
1688
- const StyledSuffixContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
1689
- theme?: import("@emotion/react").Theme | undefined;
1690
- as?: import("react").ElementType<any> | undefined;
1691
- }, {}, {
1692
- ref?: import("react").Ref<View> | undefined;
1693
- }>;
1694
- const StyledTitleContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
1695
- theme?: import("@emotion/react").Theme | undefined;
1696
- as?: import("react").ElementType<any> | undefined;
1697
- }, {}, {
1698
- ref?: import("react").Ref<View> | undefined;
1699
- }>;
1700
- export { StyledListItemContainer, StyledContentContainer, StyledChildrenContainer, StyledLeadingStatus, StyledPrefixContainer, StyledTitleContainer, StyledSuffixContainer, };
1701
-
1702
- }
1703
- declare module '@hero-design/rn/components/List/__tests__/BasicListItem.spec' {
1704
- export {};
1705
-
1706
- }
1707
- declare module '@hero-design/rn/components/List/__tests__/ListItem.spec' {
1708
- export {};
1709
-
1710
- }
1711
- declare module '@hero-design/rn/components/List/__tests__/StyledBasicListItem.spec' {
1712
- export {};
1713
-
1714
- }
1715
- declare module '@hero-design/rn/components/List/__tests__/StyledListItem.spec' {
1716
- export {};
1717
-
1718
- }
1719
- declare module '@hero-design/rn/components/List/index' {
1720
- import ListItem from '@hero-design/rn/components/List/ListItem';
1721
- import BasicListItem from '@hero-design/rn/components/List/BasicListItem';
1722
- interface ListType {
1723
- Item: typeof ListItem;
1724
- BasicItem: typeof BasicListItem;
1725
- }
1726
- const List: ListType;
1727
- export default List;
1728
-
1729
- }
1730
- declare module '@hero-design/rn/components/PinInput/PinCell' {
1731
- import { State } from '@hero-design/rn/components/PinInput/StyledPinInput';
1732
- function PinCell({ value, secure, focused, state, }: {
1733
- value: string;
1734
- secure?: boolean;
1735
- focused?: boolean;
1736
- state?: State;
1737
- }): JSX.Element;
1738
- export default PinCell;
1739
-
1740
- }
1741
- declare module '@hero-design/rn/components/PinInput/StyledPinInput' {
1742
- import { Text, TextInput, View } from 'react-native';
1743
- export const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
1744
- theme?: import("@emotion/react").Theme | undefined;
1745
- as?: import("react").ElementType<any> | undefined;
1746
- }, {}, {
1747
- ref?: import("react").Ref<View> | undefined;
1748
- }>;
1749
- export const StyledPinWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
1750
- theme?: import("@emotion/react").Theme | undefined;
1751
- as?: import("react").ElementType<any> | undefined;
1752
- }, {}, {
1753
- ref?: import("react").Ref<View> | undefined;
1754
- }>;
1755
- export type State = 'default' | 'disabled' | 'error';
1756
- export const StyledCell: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
1757
- theme?: import("@emotion/react").Theme | undefined;
1758
- as?: import("react").ElementType<any> | undefined;
1759
- } & {
1760
- themeFocused: boolean;
1761
- themeState: State;
1762
- }, {}, {
1763
- ref?: import("react").Ref<View> | undefined;
1764
- }>;
1765
- export const StyledCellText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
1766
- theme?: import("@emotion/react").Theme | undefined;
1767
- as?: import("react").ElementType<any> | undefined;
1768
- } & {
1769
- themeState: State;
1770
- }, {}, {
1771
- ref?: import("react").Ref<Text> | undefined;
1772
- }>;
1773
- export const StyledSpacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
1774
- theme?: import("@emotion/react").Theme | undefined;
1775
- as?: import("react").ElementType<any> | undefined;
1776
- }, {}, {
1777
- ref?: import("react").Ref<View> | undefined;
1778
- }>;
1779
- export const StyledMask: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
1780
- theme?: import("@emotion/react").Theme | undefined;
1781
- as?: import("react").ElementType<any> | undefined;
1782
- } & {
1783
- themeState: State;
1784
- }, {}, {
1785
- ref?: import("react").Ref<View> | undefined;
1786
- }>;
1787
- export const StyledFilledMask: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
1788
- theme?: import("@emotion/react").Theme | undefined;
1789
- as?: import("react").ElementType<any> | undefined;
1790
- } & {
1791
- themeState: State;
1792
- }, {}, {
1793
- ref?: import("react").Ref<View> | undefined;
1794
- }>;
1795
- export const StyledHiddenInput: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
1796
- theme?: import("@emotion/react").Theme | undefined;
1797
- as?: import("react").ElementType<any> | undefined;
1798
- } & {
1799
- themePinLength: number;
1800
- }, {}, {
1801
- ref?: import("react").Ref<TextInput> | undefined;
1802
- }>;
1803
- export const StyledErrorContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
1804
- theme?: import("@emotion/react").Theme | undefined;
1805
- as?: import("react").ElementType<any> | undefined;
1806
- }, {}, {
1807
- ref?: import("react").Ref<View> | undefined;
1808
- }>;
1809
- export const StyledErrorMessage: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
1810
- theme?: import("@emotion/react").Theme | undefined;
1811
- as?: import("react").ElementType<any> | undefined;
1812
- }, {}, {
1813
- ref?: import("react").Ref<Text> | undefined;
1814
- }>;
1815
-
1816
- }
1817
- declare module '@hero-design/rn/components/PinInput/__tests__/PinCell.spec' {
1818
- export {};
1819
-
1820
- }
1821
- declare module '@hero-design/rn/components/PinInput/__tests__/StyledPinInput.spec' {
1822
- export {};
1823
-
1824
- }
1825
- declare module '@hero-design/rn/components/PinInput/__tests__/index.spec' {
1826
- export {};
1827
-
1828
- }
1829
- declare module '@hero-design/rn/components/PinInput/index' {
1830
- import { StyleProp, ViewStyle } from 'react-native';
1831
- import { State } from '@hero-design/rn/components/PinInput/StyledPinInput';
1832
- interface PinInputProps {
1833
- /**
1834
- * The value to show for the input.
1835
- */
1836
- value?: string;
1837
- /**
1838
- * Callback function that's called when the text changed.
1839
- */
1840
- onChangeText: (value: string) => void;
1841
- /**
1842
- * Callback function that's called when the input is completely filled.
1843
- */
1844
- onFulfill?: (value: string) => void;
1845
- /**
1846
- * Number of character for the input.
1847
- */
1848
- length?: number;
1849
- disabled?: boolean;
1850
- /**
1851
- * Whether the pin value is secured using masks.
1852
- * By default, this is true, meaning that masks are shown to hide pin value.
1853
- */
1854
- secure?: boolean;
1855
- /**
1856
- * If true, focuses the input on componentDidMount.
1857
- */
1858
- autoFocus?: boolean;
1859
- /**
1860
- * Error message.
1861
- */
1862
- error?: string;
1863
- /**
1864
- * Additional style.
1865
- */
1866
- style?: StyleProp<ViewStyle>;
1867
- /**
1868
- * Testing id of the component.
1869
- */
1870
- testID?: string;
1871
- }
1872
- export function getState({ disabled, error, }: {
1873
- disabled?: boolean;
1874
- error?: string;
1875
- }): State;
1876
- function PinInput({ value, onChangeText, onFulfill, length, disabled, secure, autoFocus, error, style, testID, }: PinInputProps): JSX.Element;
1877
- export default PinInput;
1878
-
1879
- }
1880
- declare module '@hero-design/rn/components/Progress/ProgressBar' {
1881
- import { StyleProp, ViewStyle, ViewProps } from 'react-native';
1882
- export interface ProgressBarProps extends ViewProps {
1883
- /**
1884
- * The progress completion percentage: 0-100.
1885
- */
1886
- value: number;
1887
- /**
1888
- * Set intent for your progress.
1889
- */
1890
- intent?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
1891
- /**
1892
- * Additional style.
1893
- */
1894
- style?: StyleProp<ViewStyle>;
1895
- testID?: string;
1896
- }
1897
- const ProgressBar: ({ value, intent, style, testID, ...nativeProps }: ProgressBarProps) => JSX.Element;
1898
- export default ProgressBar;
1899
-
1900
- }
1901
- declare module '@hero-design/rn/components/Progress/ProgressCircle' {
1902
- import { ViewProps, StyleProp, ViewStyle } from 'react-native';
1903
- export interface ProgressCircleProps extends ViewProps {
1904
- /**
1905
- * The progress completion percentage: 0-100.
1906
- */
1907
- value: number;
1908
- /**
1909
- * Set intent for your progress.
1910
- */
1911
- intent?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
1912
- /**
1913
- * Additional style.
1914
- */
1915
- style?: StyleProp<ViewStyle>;
1916
- testID?: string;
1917
- }
1918
- const ProgressCircle: ({ value, intent, style, testID, ...nativeProps }: ProgressCircleProps) => JSX.Element;
1919
- export default ProgressCircle;
1920
-
1921
- }
1922
- declare module '@hero-design/rn/components/Progress/StyledProgressBar' {
1923
- import { Animated, View, ViewProps } from 'react-native';
1924
- import { ThemeIntent } from '@hero-design/rn/components/Progress/types';
1925
- const StyledWrapper: import("@emotion/native").StyledComponent<ViewProps & {
1926
- theme?: import("@emotion/react").Theme | undefined;
1927
- as?: import("react").ElementType<any> | undefined;
1928
- }, {}, {
1929
- ref?: import("react").Ref<View> | undefined;
1930
- }>;
1931
- const StyledInner: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
1932
- children?: import("react").ReactNode;
1933
- } & {
1934
- theme?: import("@emotion/react").Theme | undefined;
1935
- as?: import("react").ElementType<any> | undefined;
1936
- } & {
1937
- themeIntent: ThemeIntent;
1938
- }, {}, {}>;
1939
- export { StyledWrapper, StyledInner };
1940
-
1941
- }
1942
- declare module '@hero-design/rn/components/Progress/StyledProgressCircle' {
1943
- import { View, ViewProps } from 'react-native';
1944
- import { ThemeIntent } from '@hero-design/rn/components/Progress/types';
1945
- const HalfCircleWrapper: import("@emotion/native").StyledComponent<ViewProps & {
1946
- theme?: import("@emotion/react").Theme | undefined;
1947
- as?: import("react").ElementType<any> | undefined;
1948
- }, {}, {
1949
- ref?: import("react").Ref<View> | undefined;
1950
- }>;
1951
- const HalfCircleInnerFG: import("@emotion/native").StyledComponent<ViewProps & {
1952
- theme?: import("@emotion/react").Theme | undefined;
1953
- as?: import("react").ElementType<any> | undefined;
1954
- } & {
1955
- themeIntent: ThemeIntent;
1956
- }, {}, {
1957
- ref?: import("react").Ref<View> | undefined;
1958
- }>;
1959
- const HalfCircleInnerBG: import("@emotion/native").StyledComponent<ViewProps & {
1960
- theme?: import("@emotion/react").Theme | undefined;
1961
- as?: import("react").ElementType<any> | undefined;
1962
- }, {}, {
1963
- ref?: import("react").Ref<View> | undefined;
1964
- }>;
1965
- const DonutCircle: import("@emotion/native").StyledComponent<ViewProps & {
1966
- theme?: import("@emotion/react").Theme | undefined;
1967
- as?: import("react").ElementType<any> | undefined;
1968
- }, {}, {
1969
- ref?: import("react").Ref<View> | undefined;
1970
- }>;
1971
- const StrokeEnd: import("@emotion/native").StyledComponent<ViewProps & {
1972
- theme?: import("@emotion/react").Theme | undefined;
1973
- as?: import("react").ElementType<any> | undefined;
1974
- } & {
1975
- themeIntent: ThemeIntent;
1976
- }, {}, {
1977
- ref?: import("react").Ref<View> | undefined;
1978
- }>;
1979
- export { DonutCircle, HalfCircleWrapper, HalfCircleInnerFG, HalfCircleInnerBG, StrokeEnd, };
1980
-
1981
- }
1982
- declare module '@hero-design/rn/components/Progress/__tests__/index.spec' {
1983
- export {};
1984
-
1985
- }
1986
- declare module '@hero-design/rn/components/Progress/index' {
1987
- const Progress: {
1988
- readonly Circle: ({ value, intent, style, testID, ...nativeProps }: import("@hero-design/rn/components/Progress/ProgressCircle").ProgressCircleProps) => JSX.Element;
1989
- readonly Bar: ({ value, intent, style, testID, ...nativeProps }: import("@hero-design/rn/components/Progress/ProgressBar").ProgressBarProps) => JSX.Element;
1990
- };
1991
- export default Progress;
1992
-
1993
- }
1994
- declare module '@hero-design/rn/components/Progress/types' {
1995
- export type ThemeIntent = 'primary' | 'success' | 'warning' | 'danger' | 'info';
1996
-
1997
- }
1998
- declare module '@hero-design/rn/components/Radio/Radio' {
1999
- import { ReactElement } from 'react';
2000
- import { StyleProp, ViewStyle } from 'react-native';
2001
- export interface RadioProps {
2002
- /**
2003
- * Whether the radio is checked.
2004
- */
2005
- checked?: boolean;
2006
- /**
2007
- * Press event handler.
2008
- */
2009
- onPress: () => void;
2010
- /**
2011
- * Radio text.
2012
- */
2013
- text: string;
2014
- /**
2015
- * Additional style.
2016
- */
2017
- style?: StyleProp<ViewStyle>;
2018
- /**
2019
- * Testing id of the component.
2020
- */
2021
- testID?: string;
2022
- }
2023
- const Radio: ({ text, checked, onPress, style, testID, }: RadioProps) => ReactElement;
2024
- export default Radio;
2025
-
2026
- }
2027
- declare module '@hero-design/rn/components/Radio/RadioGroup' {
2028
- import { ReactElement } from 'react';
2029
- import { StyleProp, ViewStyle } from 'react-native';
2030
- import { OptionType } from '@hero-design/rn/components/Radio/types';
2031
- export interface RadioGroupProps<T> {
2032
- /**
2033
- * An array of radio options to be selected.
2034
- */
2035
- options: OptionType<T>[];
2036
- /**
2037
- * Radio input value.
2038
- */
2039
- value: T;
2040
- /**
2041
- * Press event handler receiving selected radio's value.
2042
- */
2043
- onPress: (value: T) => void;
2044
- /**
2045
- * Used to extract a unique key for a given option at the specified index. Key is used for caching and as the react key to track item re-ordering.
2046
- * The default extractor checks option.key, and then falls back to using the index, like React does.
2047
- */
2048
- keyExtractor?: (option: OptionType<T>, index?: number) => string;
2049
- /**
2050
- * Additional style.
2051
- */
2052
- style?: StyleProp<ViewStyle>;
2053
- /**
2054
- * Testing id of the component.
2055
- */
2056
- testID?: string;
2057
- }
2058
- const RadioGroup: <T>({ value, onPress, options, keyExtractor, style, testID, }: RadioGroupProps<T>) => ReactElement;
2059
- export default RadioGroup;
2060
-
2061
- }
2062
- declare module '@hero-design/rn/components/Radio/StyledRadio' {
2063
- import { View, TouchableOpacity } from 'react-native';
2064
- const Wrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
2065
- theme?: import("@emotion/react").Theme | undefined;
2066
- as?: import("react").ElementType<any> | undefined;
2067
- } & {
2068
- themeChecked: boolean;
2069
- }, {}, {
2070
- ref?: import("react").Ref<TouchableOpacity> | undefined;
2071
- }>;
2072
- const Circle: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2073
- theme?: import("@emotion/react").Theme | undefined;
2074
- as?: import("react").ElementType<any> | undefined;
2075
- } & {
2076
- themeChecked: boolean;
2077
- }, {}, {
2078
- ref?: import("react").Ref<View> | undefined;
2079
- }>;
2080
- const InnerCircle: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2081
- theme?: import("@emotion/react").Theme | undefined;
2082
- as?: import("react").ElementType<any> | undefined;
2083
- }, {}, {
2084
- ref?: import("react").Ref<View> | undefined;
2085
- }>;
2086
- const Spacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2087
- theme?: import("@emotion/react").Theme | undefined;
2088
- as?: import("react").ElementType<any> | undefined;
2089
- }, {}, {
2090
- ref?: import("react").Ref<View> | undefined;
2091
- }>;
2092
- export { Wrapper, Circle, InnerCircle, Spacer };
2093
-
2094
- }
2095
- declare module '@hero-design/rn/components/Radio/__tests__/Radio.spec' {
2096
- export {};
2097
-
2098
- }
2099
- declare module '@hero-design/rn/components/Radio/__tests__/RadioGroup.spec' {
2100
- export {};
2101
-
2102
- }
2103
- declare module '@hero-design/rn/components/Radio/__tests__/StyledRadio.spec' {
2104
- export {};
2105
-
2106
- }
2107
- declare module '@hero-design/rn/components/Radio/index' {
2108
- const CompoundRadio: {
2109
- readonly Group: <T>({ value, onPress, options, keyExtractor, style, testID, }: import("@hero-design/rn/components/Radio/RadioGroup").RadioGroupProps<T>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
2110
- };
2111
- export default CompoundRadio;
2112
-
2113
- }
2114
- declare module '@hero-design/rn/components/Radio/types' {
2115
- export type OptionType<T> = {
2116
- value: T;
2117
- text: string;
2118
- key?: string;
2119
- };
2120
-
2121
- }
2122
- declare module '@hero-design/rn/components/SectionHeading/StyledHeading' {
2123
- import { View } from 'react-native';
2124
- const StyledHeading: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2125
- theme?: import("@emotion/react").Theme | undefined;
2126
- as?: import("react").ElementType<any> | undefined;
2127
- }, {}, {
2128
- ref?: import("react").Ref<View> | undefined;
2129
- }>;
2130
- const StyledIconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2131
- theme?: import("@emotion/react").Theme | undefined;
2132
- as?: import("react").ElementType<any> | undefined;
2133
- }, {}, {
2134
- ref?: import("react").Ref<View> | undefined;
2135
- }>;
2136
- const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2137
- theme?: import("@emotion/react").Theme | undefined;
2138
- as?: import("react").ElementType<any> | undefined;
2139
- }, {}, {
2140
- ref?: import("react").Ref<View> | undefined;
2141
- }>;
2142
- export { StyledHeading, StyledIconWrapper, StyledWrapper };
2143
-
2144
- }
2145
- declare module '@hero-design/rn/components/SectionHeading/__tests__/StyledHeading.spec' {
2146
- export {};
2147
-
2148
- }
2149
- declare module '@hero-design/rn/components/SectionHeading/__tests__/index.spec' {
2150
- export {};
2151
-
2152
- }
2153
- declare module '@hero-design/rn/components/SectionHeading/index' {
2154
- import { ReactElement } from 'react';
2155
- import { StyleProp, ViewProps, ViewStyle } from 'react-native';
2156
- import { IconName } from '@hero-design/rn/components/Icon/index';
2157
- export interface SectionHeadingProps extends ViewProps {
2158
- /**
2159
- * Heading text.
2160
- */
2161
- text: string | ReactElement;
2162
- /**
2163
- * Name of the Icon.
2164
- */
2165
- icon?: IconName;
2166
- /**
2167
- * Right corner content
2168
- */
2169
- rightChildren?: ReactElement;
2170
- /**
2171
- * Size of the text.
2172
- */
2173
- fontSize?: 'small' | 'medium' | 'large' | 'xlarge';
2174
- /**
2175
- * Heading's font-weight.
2176
- */
2177
- fontWeight?: 'light' | 'regular' | 'semi-bold';
2178
- /**
2179
- * Visual intent color to apply to text.
2180
- */
2181
- intent?: 'subdued' | 'body' | 'primary';
2182
- /**
2183
- * Additional style.
2184
- */
2185
- style?: StyleProp<ViewStyle>;
2186
- /**
2187
- * Testing id of the component.
2188
- */
2189
- testID?: string;
2190
- }
2191
- const SectionHeading: ({ icon, text, rightChildren, fontSize, intent, fontWeight, style, testID, }: SectionHeadingProps) => ReactElement;
2192
- export default SectionHeading;
2193
-
2194
- }
2195
- declare module '@hero-design/rn/components/Select/Footer' {
2196
- const Footer: ({ label, onPress }: {
2197
- label: string;
2198
- onPress: () => void;
2199
- }) => JSX.Element;
2200
- export default Footer;
2201
-
2202
- }
2203
- declare module '@hero-design/rn/components/Select/MultiSelect/Option' {
2204
- const Option: ({ text, selected, onPress, }: {
2205
- text: string;
2206
- selected: boolean;
2207
- onPress: () => void;
2208
- }) => JSX.Element;
2209
- export default Option;
2210
-
2211
- }
2212
- declare module '@hero-design/rn/components/Select/MultiSelect/OptionList' {
2213
- import { MultiSelectProps } from '@hero-design/rn/components/Select/MultiSelect/index';
2214
- interface OptionListProps<T> extends MultiSelectProps<T> {
2215
- /**
2216
- * event handler for select
2217
- */
2218
- onPress: (value: T[]) => void;
2219
- }
2220
- const OptionList: <T>({ keyExtractor, loading, onEndReached, onPress, onQueryChange, options, value, }: Pick<OptionListProps<T>, "loading" | "onPress" | "value" | "options" | "keyExtractor" | "onEndReached" | "onQueryChange">) => JSX.Element;
2221
- export default OptionList;
2222
-
2223
- }
2224
- declare module '@hero-design/rn/components/Select/MultiSelect/__tests__/Option.spec' {
2225
- export {};
2226
-
2227
- }
2228
- declare module '@hero-design/rn/components/Select/MultiSelect/__tests__/OptionList.spec' {
2229
- export {};
2230
-
2231
- }
2232
- declare module '@hero-design/rn/components/Select/MultiSelect/__tests__/index.spec' {
2233
- export {};
2234
-
2235
- }
2236
- declare module '@hero-design/rn/components/Select/MultiSelect/index' {
2237
- import { SelectProps } from '@hero-design/rn/components/Select/types';
2238
- export interface MultiSelectProps<T> extends SelectProps<T> {
2239
- /**
2240
- * Current selected value.
2241
- */
2242
- value: T[];
2243
- /**
2244
- * event handler for footer button.
2245
- */
2246
- onConfirm: (value: T[]) => void;
2247
- /**
2248
- * Footer label.
2249
- */
2250
- footerLabel: string;
2251
- }
2252
- function MultiSelect<T>({ footerLabel, label, loading, onConfirm, onDimiss, onEndReached, onQueryChange, options, query, style, testID, value, }: MultiSelectProps<T>): JSX.Element;
2253
- export default MultiSelect;
2254
-
2255
- }
2256
- declare module '@hero-design/rn/components/Select/SingleSelect/Option' {
2257
- const Option: ({ text, selected, onPress, }: {
2258
- text: string;
2259
- selected: boolean;
2260
- onPress: () => void;
2261
- }) => JSX.Element;
2262
- export default Option;
2263
-
2264
- }
2265
- declare module '@hero-design/rn/components/Select/SingleSelect/OptionList' {
2266
- import { SingleSelectProps } from '@hero-design/rn/components/Select/SingleSelect/index';
2267
- interface OptionListProps<T> extends SingleSelectProps<T> {
2268
- /**
2269
- * event handler for select
2270
- */
2271
- onPress: (value: T | null) => void;
2272
- }
2273
- const OptionList: <T>({ keyExtractor, loading, onEndReached, onPress, onQueryChange, options, value, }: Pick<OptionListProps<T>, "loading" | "onPress" | "value" | "options" | "keyExtractor" | "onEndReached" | "onQueryChange">) => JSX.Element;
2274
- export default OptionList;
2275
-
2276
- }
2277
- declare module '@hero-design/rn/components/Select/SingleSelect/__tests__/Option.spec' {
2278
- export {};
2279
-
2280
- }
2281
- declare module '@hero-design/rn/components/Select/SingleSelect/__tests__/OptionList.spec' {
2282
- export {};
2283
-
2284
- }
2285
- declare module '@hero-design/rn/components/Select/SingleSelect/__tests__/index.spec' {
2286
- export {};
2287
-
2288
- }
2289
- declare module '@hero-design/rn/components/Select/SingleSelect/index' {
2290
- import { SelectProps } from '@hero-design/rn/components/Select/types';
2291
- export interface SingleSelectProps<T> extends SelectProps<T> {
2292
- /**
2293
- * Current selected value.
2294
- */
2295
- value: T | null;
2296
- /**
2297
- * on select event handler
2298
- */
2299
- onConfirm: (value: T | null) => void;
2300
- }
2301
- const SingleSelect: <T>({ label, loading, onConfirm, onDimiss, onEndReached, onQueryChange, options, query, style, testID, value, }: SingleSelectProps<T>) => JSX.Element;
2302
- export default SingleSelect;
2303
-
2304
- }
2305
- declare module '@hero-design/rn/components/Select/StyledOptionList' {
2306
- import React from 'react';
2307
- import { OptionType, SelectProps } from '@hero-design/rn/components/Select/types';
2308
- export interface RenderItemProps<T> {
2309
- item: OptionType<T>;
2310
- }
2311
- export interface OptionListProps<T> extends SelectProps<T> {
2312
- /**
2313
- * FlatList renderItem Element
2314
- */
2315
- RenderItem: React.FC<RenderItemProps<T>>;
2316
- /**
2317
- * Selected scroll index
2318
- */
2319
- scrollIndex?: number;
2320
- }
2321
- const StyledOptionList: <T>({ keyExtractor, loading, onEndReached, onQueryChange, options, RenderItem, scrollIndex, }: Pick<OptionListProps<T>, "loading" | "options" | "keyExtractor" | "scrollIndex" | "onEndReached" | "RenderItem" | "onQueryChange">) => JSX.Element;
2322
- export default StyledOptionList;
2323
-
2324
- }
2325
- declare module '@hero-design/rn/components/Select/StyledSelect' {
2326
- import { View, TouchableOpacity } from 'react-native';
2327
- const OptionWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
2328
- theme?: import("@emotion/react").Theme | undefined;
2329
- as?: import("react").ElementType<any> | undefined;
2330
- } & {
2331
- themeSelected: boolean;
2332
- }, {}, {
2333
- ref?: import("react").Ref<TouchableOpacity> | undefined;
2334
- }>;
2335
- const Spacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2336
- theme?: import("@emotion/react").Theme | undefined;
2337
- as?: import("react").ElementType<any> | undefined;
2338
- }, {}, {
2339
- ref?: import("react").Ref<View> | undefined;
2340
- }>;
2341
- const FooterText: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
2342
- theme?: import("@emotion/react").Theme | undefined;
2343
- as?: import("react").ElementType<any> | undefined;
2344
- }, {}, {}>;
2345
- const StyledSearchBar: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2346
- theme?: import("@emotion/react").Theme | undefined;
2347
- as?: import("react").ElementType<any> | undefined;
2348
- }, {}, {
2349
- ref?: import("react").Ref<View> | undefined;
2350
- }>;
2351
- export { OptionWrapper, Spacer, FooterText, StyledSearchBar };
2352
-
2353
- }
2354
- declare module '@hero-design/rn/components/Select/__tests__/StyledSelect.spec' {
2355
- export {};
2356
-
2357
- }
2358
- declare module '@hero-design/rn/components/Select/helpers' {
2359
- import { OptionType } from '@hero-design/rn/components/Select/types';
2360
- export const getKey: <T>(option: OptionType<T>, index: number, keyExtractor?: ((opt: OptionType<T>, i?: number | undefined) => string) | undefined) => import("react").Key;
2361
-
2362
- }
2363
- declare module '@hero-design/rn/components/Select/index' {
2364
- import MultiSelect from '@hero-design/rn/components/Select/MultiSelect/index';
2365
- const _default: (<T>({ label, loading, onConfirm, onDimiss, onEndReached, onQueryChange, options, query, style, testID, value, }: import("@hero-design/rn/components/Select/SingleSelect/index").SingleSelectProps<T>) => JSX.Element) & {
2366
- Multi: typeof MultiSelect;
2367
- };
2368
- export default _default;
2369
-
2370
- }
2371
- declare module '@hero-design/rn/components/Select/types' {
2372
- import { StyleProp, ViewStyle } from 'react-native';
2373
- type OptionType<T> = {
2374
- value: T;
2375
- text: string;
2376
- key?: string;
2377
- };
2378
- export interface SelectProps<T> {
2379
- /**
2380
- * An array of options to be selected.
2381
- */
2382
- options: OptionType<T>[];
2383
- /**
2384
- * Used to extract a unique key for a given option at the specified index. Key is used for caching and as the react key to track item re-ordering.
2385
- * The default extractor checks option.key, and then falls back to using the index, like React does.
2386
- */
2387
- keyExtractor?: (option: OptionType<T>, index?: number) => string;
2388
- /**
2389
- * Current search value.
2390
- */
2391
- query?: string;
2392
- /**
2393
- * Search bar onChangeText event handler
2394
- */
2395
- onQueryChange?: (value: string) => void;
2396
- /**
2397
- * Event handler when selection dimiss
2398
- */
2399
- onDimiss?: () => void;
2400
- /**
2401
- * Event handler when end of the list reached
2402
- */
2403
- onEndReached?: () => void;
2404
- /**
2405
- * Show indicator at bottom of option list
2406
- */
2407
- loading?: boolean;
2408
- /**
2409
- * Field label.
2410
- */
2411
- label: string;
2412
- /**
2413
- * Additional style.
2414
- */
2415
- style?: StyleProp<ViewStyle>;
2416
- /**
2417
- * Testing id of the component.
2418
- */
2419
- testID?: string;
2420
- }
2421
- export { OptionType };
2422
-
2423
- }
2424
- declare module '@hero-design/rn/components/Spinner/AnimatedSpinner' {
2425
- const AnimatedSpinner: () => JSX.Element;
2426
- export { AnimatedSpinner };
2427
-
2428
- }
2429
- declare module '@hero-design/rn/components/Spinner/StyledSpinner' {
2430
- import { View, ViewProps } from 'react-native';
2431
- const StyledView: import("@emotion/native").StyledComponent<ViewProps & {
2432
- theme?: import("@emotion/react").Theme | undefined;
2433
- as?: import("react").ElementType<any> | undefined;
2434
- }, {}, {
2435
- ref?: import("react").Ref<View> | undefined;
2436
- }>;
2437
- const StyledSpinnerContainer: import("@emotion/native").StyledComponent<ViewProps & {
2438
- theme?: import("@emotion/react").Theme | undefined;
2439
- as?: import("react").ElementType<any> | undefined;
2440
- }, {}, {
2441
- ref?: import("react").Ref<View> | undefined;
2442
- }>;
2443
- const StyledSpinnerRow: import("@emotion/native").StyledComponent<ViewProps & {
2444
- theme?: import("@emotion/react").Theme | undefined;
2445
- as?: import("react").ElementType<any> | undefined;
2446
- } & {
2447
- themePosition: 'top' | 'bottom';
2448
- }, {}, {
2449
- ref?: import("react").Ref<View> | undefined;
2450
- }>;
2451
- const StyledSpinnerDot: import("@emotion/native").StyledComponent<ViewProps & {
2452
- theme?: import("@emotion/react").Theme | undefined;
2453
- as?: import("react").ElementType<any> | undefined;
2454
- } & {
2455
- themePosition: 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
2456
- }, {}, {
2457
- ref?: import("react").Ref<View> | undefined;
2458
- }>;
2459
- export { StyledView, StyledSpinnerContainer, StyledSpinnerRow, StyledSpinnerDot, };
2460
-
2461
- }
2462
- declare module '@hero-design/rn/components/Spinner/__tests__/AnimatedSpinner.spec' {
2463
- export {};
2464
-
2465
- }
2466
- declare module '@hero-design/rn/components/Spinner/__tests__/StyledSpinner.spec' {
2467
- export {};
2468
-
2469
- }
2470
- declare module '@hero-design/rn/components/Spinner/__tests__/index.spec' {
2471
- export {};
2472
-
2473
- }
2474
- declare module '@hero-design/rn/components/Spinner/index' {
2475
- import { ReactElement } from 'react';
2476
- import { ViewProps } from 'react-native';
2477
- interface SpinnerProps extends ViewProps {
2478
- /**
2479
- * Testing id of the component.
2480
- */
2481
- testID?: string;
2482
- }
2483
- const Spinner: ({ testID, ...nativeProps }: SpinnerProps) => ReactElement;
2484
- export default Spinner;
2485
-
2486
- }
2487
- declare module '@hero-design/rn/components/Switch/StyledSwitch' {
2488
- import { Animated, View } from 'react-native';
2489
- type ThemeSize = 'small' | 'medium';
2490
- const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2491
- theme?: import("@emotion/react").Theme | undefined;
2492
- as?: import("react").ElementType<any> | undefined;
2493
- } & {
2494
- themeChecked: boolean | undefined;
2495
- themeSize: ThemeSize;
2496
- }, {}, {
2497
- ref?: import("react").Ref<View> | undefined;
2498
- }>;
2499
- const StyledDisabledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2500
- theme?: import("@emotion/react").Theme | undefined;
2501
- as?: import("react").ElementType<any> | undefined;
2502
- } & {
2503
- themeSize: ThemeSize;
2504
- }, {}, {
2505
- ref?: import("react").Ref<View> | undefined;
2506
- }>;
2507
- const StyledThumbWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2508
- theme?: import("@emotion/react").Theme | undefined;
2509
- as?: import("react").ElementType<any> | undefined;
2510
- } & {
2511
- themeSize: ThemeSize;
2512
- }, {}, {
2513
- ref?: import("react").Ref<View> | undefined;
2514
- }>;
2515
- const StyledKnot: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
2516
- children?: import("react").ReactNode;
2517
- } & {
2518
- theme?: import("@emotion/react").Theme | undefined;
2519
- as?: import("react").ElementType<any> | undefined;
2520
- } & {
2521
- themeSize: ThemeSize;
2522
- }, {}, {}>;
2523
- export { StyledWrapper, StyledDisabledWrapper, StyledThumbWrapper, StyledKnot };
2524
-
2525
- }
2526
- declare module '@hero-design/rn/components/Switch/__tests__/StyledHeading.spec' {
2527
- export {};
2528
-
2529
- }
2530
- declare module '@hero-design/rn/components/Switch/__tests__/index.spec' {
2531
- export {};
2532
-
2533
- }
2534
- declare module '@hero-design/rn/components/Switch/index' {
2535
- import { ReactElement } from 'react';
2536
- import { StyleProp, ViewStyle } from 'react-native';
2537
- export interface SwitchProps {
2538
- /**
2539
- * Control whether the switch is checked
2540
- */
2541
- checked?: boolean;
2542
- /**
2543
- * Whether the switch is disabled
2544
- */
2545
- disabled?: boolean;
2546
- /**
2547
- * Event handler.
2548
- */
2549
- onPress?: () => void;
2550
- /**
2551
- * Size of the switch
2552
- */
2553
- size?: 'small' | 'medium';
2554
- /**
2555
- * Additional style.
2556
- */
2557
- style?: StyleProp<ViewStyle>;
2558
- /**
2559
- * Testing id of the component.
2560
- */
2561
- testID?: string;
2562
- }
2563
- const Switch: ({ size, disabled, checked, onPress, style, testID, }: SwitchProps) => ReactElement;
2564
- export default Switch;
2565
-
2566
- }
2567
- declare module '@hero-design/rn/components/Tabs/ActiveTabIndicator' {
2568
- import { Animated } from 'react-native';
2569
- const ActiveTabIndicator: ({ scrollOffsetAnimatedValue, positionAnimatedValue, tabsLength, tabsWidth, }: {
2570
- scrollOffsetAnimatedValue: Animated.Value;
2571
- positionAnimatedValue: Animated.Value;
2572
- tabsLength: number;
2573
- tabsWidth: number;
2574
- }) => JSX.Element;
2575
- export default ActiveTabIndicator;
2576
-
2577
- }
2578
- declare module '@hero-design/rn/components/Tabs/ScrollableTabs' {
2579
- import { TabsProps } from '@hero-design/rn/components/Tabs/index';
2580
- const ScrollableTab: ({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, }: TabsProps) => JSX.Element;
2581
- export default ScrollableTab;
2582
-
2583
- }
2584
- declare module '@hero-design/rn/components/Tabs/StyledScrollableTabs' {
2585
- import { Animated, View } from 'react-native';
2586
- import PagerView from 'react-native-pager-view';
2587
- const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2588
- theme?: import("@emotion/react").Theme | undefined;
2589
- as?: import("react").ElementType<any> | undefined;
2590
- }, {}, {
2591
- ref?: import("react").Ref<View> | undefined;
2592
- }>;
2593
- const TabContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2594
- theme?: import("@emotion/react").Theme | undefined;
2595
- as?: import("react").ElementType<any> | undefined;
2596
- }, {}, {
2597
- ref?: import("react").Ref<View> | undefined;
2598
- }>;
2599
- const ContentWrapper: import("@emotion/native").StyledComponent<import("react-native-pager-view").PagerViewProps & {
2600
- theme?: import("@emotion/react").Theme | undefined;
2601
- as?: import("react").ElementType<any> | undefined;
2602
- }, {}, {
2603
- ref?: import("react").Ref<PagerView> | undefined;
2604
- }>;
2605
- const HeaderTabWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2606
- theme?: import("@emotion/react").Theme | undefined;
2607
- as?: import("react").ElementType<any> | undefined;
2608
- } & {
2609
- themeInsets: {
2610
- top: number;
2611
- right: number;
2612
- bottom: number;
2613
- left: number;
2614
- };
2615
- }, {}, {
2616
- ref?: import("react").Ref<View> | undefined;
2617
- }>;
2618
- const HeaderTabItem: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
2619
- children?: import("react").ReactNode;
2620
- } & {
2621
- theme?: import("@emotion/react").Theme | undefined;
2622
- as?: import("react").ElementType<any> | undefined;
2623
- }, {}, {}>;
2624
- const HeaderTabItemOutlineWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2625
- theme?: import("@emotion/react").Theme | undefined;
2626
- as?: import("react").ElementType<any> | undefined;
2627
- }, {}, {
2628
- ref?: import("react").Ref<View> | undefined;
2629
- }>;
2630
- const HeaderTabItemOutline: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
2631
- children?: import("react").ReactNode;
2632
- } & {
2633
- theme?: import("@emotion/react").Theme | undefined;
2634
- as?: import("react").ElementType<any> | undefined;
2635
- } & {
2636
- themeActive: boolean;
2637
- }, {}, {}>;
2638
- const HeaderTabItemWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2639
- theme?: import("@emotion/react").Theme | undefined;
2640
- as?: import("react").ElementType<any> | undefined;
2641
- }, {}, {
2642
- ref?: import("react").Ref<View> | undefined;
2643
- }>;
2644
- export { HeaderTabItem, TabScreen, TabContainer, HeaderTabWrapper, ContentWrapper, HeaderTabItemOutlineWrapper, HeaderTabItemOutline, HeaderTabItemWrapper, };
2645
-
2646
- }
2647
- declare module '@hero-design/rn/components/Tabs/StyledTabs' {
2648
- import { Animated, View } from 'react-native';
2649
- import PagerView from 'react-native-pager-view';
2650
- const TabContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2651
- theme?: import("@emotion/react").Theme | undefined;
2652
- as?: import("react").ElementType<any> | undefined;
2653
- }, {}, {
2654
- ref?: import("react").Ref<View> | undefined;
2655
- }>;
2656
- const HeaderTabWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2657
- theme?: import("@emotion/react").Theme | undefined;
2658
- as?: import("react").ElementType<any> | undefined;
2659
- } & {
2660
- themeInsets: {
2661
- top: number;
2662
- right: number;
2663
- bottom: number;
2664
- left: number;
2665
- };
2666
- }, {}, {
2667
- ref?: import("react").Ref<View> | undefined;
2668
- }>;
2669
- const HeaderTab: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2670
- theme?: import("@emotion/react").Theme | undefined;
2671
- as?: import("react").ElementType<any> | undefined;
2672
- }, {}, {
2673
- ref?: import("react").Ref<View> | undefined;
2674
- }>;
2675
- const HeaderTabItem: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2676
- theme?: import("@emotion/react").Theme | undefined;
2677
- as?: import("react").ElementType<any> | undefined;
2678
- }, {}, {
2679
- ref?: import("react").Ref<View> | undefined;
2680
- }>;
2681
- const ContentWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native-pager-view").PagerViewProps & import("react").RefAttributes<PagerView>> & {
2682
- children?: import("react").ReactNode;
2683
- } & {
2684
- theme?: import("@emotion/react").Theme | undefined;
2685
- as?: import("react").ElementType<any> | undefined;
2686
- }, {}, {}>;
2687
- const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2688
- theme?: import("@emotion/react").Theme | undefined;
2689
- as?: import("react").ElementType<any> | undefined;
2690
- }, {}, {
2691
- ref?: import("react").Ref<View> | undefined;
2692
- }>;
2693
- const StyledIndicator: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
2694
- children?: import("react").ReactNode;
2695
- } & {
2696
- theme?: import("@emotion/react").Theme | undefined;
2697
- as?: import("react").ElementType<any> | undefined;
2698
- } & {
2699
- themeWidth: number;
2700
- }, {}, {}>;
2701
- export { TabContainer, HeaderTabWrapper, HeaderTab, HeaderTabItem, ContentWrapper, TabScreen, StyledIndicator, };
2702
-
2703
- }
2704
- declare module '@hero-design/rn/components/Tabs/__tests__/ScrollableTabs.spec' {
2705
- export {};
2706
-
2707
- }
2708
- declare module '@hero-design/rn/components/Tabs/__tests__/index.spec' {
2709
- export {};
2710
-
2711
- }
2712
- declare module '@hero-design/rn/components/Tabs/index' {
2713
- import { ReactNode } from 'react';
2714
- import { StyleProp, ViewStyle, ViewProps } from 'react-native';
2715
- import { IconName } from '@hero-design/rn/components/Icon/index';
2716
- export type ItemType = string | IconName | ((props: {
2717
- color: string;
2718
- }) => ReactNode);
2719
- export type TabType = {
2720
- key: string;
2721
- activeItem: ItemType;
2722
- inactiveItem?: ItemType;
2723
- component: ReactNode;
2724
- testID?: string;
2725
- showBadge?: boolean;
2726
- };
2727
- export interface TabsProps extends ViewProps {
2728
- /**
2729
- * Callback which is called on tab press, receiving key of upcoming active Tab.
2730
- */
2731
- onTabPress: (key: string) => void;
2732
- /**
2733
- * Current selected tab key.
2734
- */
2735
- selectedTabKey: string;
2736
- /**
2737
- * List of Tabs to be rendered. Each Tab must have an unique key.
2738
- */
2739
- tabs: TabType[];
2740
- /**
2741
- * Style for the container of Tab.
2742
- */
2743
- containerStyle?: StyleProp<ViewStyle>;
2744
- /**
2745
- * Style for the tab navigation bar.
2746
- */
2747
- barStyle?: StyleProp<ViewStyle>;
2748
- /**
2749
- * Whether inactive screen should be removed and unmounted in React.
2750
- * Defaults value is `false`.
2751
- */
2752
- lazy?: boolean;
2753
- /**
2754
- * Only work when lazy is `true`. You can specify how many adjacent screens should be preloaded.
2755
- * Defaults value is `1`.
2756
- */
2757
- lazyPreloadDistance?: number;
2758
- /**
2759
- * Testing id of the component.
2760
- */
2761
- testID?: string;
2762
- }
2763
- const _default: (({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, }: TabsProps) => JSX.Element) & {
2764
- Scroll: ({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, }: TabsProps) => JSX.Element;
2765
- };
2766
- export default _default;
2767
-
2768
- }
2769
- declare module '@hero-design/rn/components/Tabs/utils' {
2770
- import { Animated } from 'react-native';
2771
- export const useAnimatedValueArray: (initialValues: number[]) => Animated.Value[];
2772
-
2773
- }
2774
- declare module '@hero-design/rn/components/Tag/StyledTag' {
2775
- import { View, Text } from 'react-native';
2776
- type ThemeIntent = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'archived';
2777
- const StyledView: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2778
- theme?: import("@emotion/react").Theme | undefined;
2779
- as?: import("react").ElementType<any> | undefined;
2780
- } & {
2781
- themeIntent: ThemeIntent;
2782
- }, {}, {
2783
- ref?: import("react").Ref<View> | undefined;
2784
- }>;
2785
- const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
2786
- theme?: import("@emotion/react").Theme | undefined;
2787
- as?: import("react").ElementType<any> | undefined;
2788
- } & {
2789
- themeIntent: ThemeIntent;
2790
- }, {}, {
2791
- ref?: import("react").Ref<Text> | undefined;
2792
- }>;
2793
- export { StyledView, StyledText };
2794
-
2795
- }
2796
- declare module '@hero-design/rn/components/Tag/__tests__/Tag.spec' {
2797
- export {};
2798
-
2799
- }
2800
- declare module '@hero-design/rn/components/Tag/index' {
2801
- import { StyleProp, ViewStyle, ViewProps } from 'react-native';
2802
- interface TagProps extends ViewProps {
2803
- /**
2804
- * Content of the Tag.
2805
- */
2806
- content: string;
2807
- /**
2808
- * Visual intent color to apply to Tag.
2809
- */
2810
- intent?: 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'archived';
2811
- /**
2812
- * Additional style.
2813
- */
2814
- style?: StyleProp<ViewStyle>;
2815
- /**
2816
- * Testing id of the component.
2817
- */
2818
- testID?: string;
2819
- }
2820
- const Tag: ({ content, intent, style, testID, ...nativeProps }: TagProps) => JSX.Element;
2821
- export default Tag;
2822
-
2823
- }
2824
- declare module '@hero-design/rn/components/TextInput/StyledTextInput' {
2825
- import { TextInput, View } from 'react-native';
2826
- export type Variant = 'default' | 'filled' | 'focused' | 'disabled' | 'readonly' | 'error';
2827
- const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2828
- theme?: import("@emotion/react").Theme | undefined;
2829
- as?: import("react").ElementType<any> | undefined;
2830
- }, {}, {
2831
- ref?: import("react").Ref<View> | undefined;
2832
- }>;
2833
- const StyledLabelContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2834
- theme?: import("@emotion/react").Theme | undefined;
2835
- as?: import("react").ElementType<any> | undefined;
2836
- }, {}, {
2837
- ref?: import("react").Ref<View> | undefined;
2838
- }>;
2839
- const StyledLabel: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
2840
- theme?: import("@emotion/react").Theme | undefined;
2841
- as?: import("react").ElementType<any> | undefined;
2842
- } & {
2843
- themeVariant: Variant;
2844
- }, {}, {}>;
2845
- const StyledAsteriskLabel: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
2846
- theme?: import("@emotion/react").Theme | undefined;
2847
- as?: import("react").ElementType<any> | undefined;
2848
- } & {
2849
- themeVariant: Variant;
2850
- }, {}, {}>;
2851
- const StyledLabelContainerInsideTextInput: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2852
- theme?: import("@emotion/react").Theme | undefined;
2853
- as?: import("react").ElementType<any> | undefined;
2854
- }, {}, {
2855
- ref?: import("react").Ref<View> | undefined;
2856
- }>;
2857
- const StyledLabelInsideTextInput: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
2858
- theme?: import("@emotion/react").Theme | undefined;
2859
- as?: import("react").ElementType<any> | undefined;
2860
- } & {
2861
- themeVariant: Variant;
2862
- }, {}, {}>;
2863
- const StyledAsteriskLabelInsideTextInput: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
2864
- theme?: import("@emotion/react").Theme | undefined;
2865
- as?: import("react").ElementType<any> | undefined;
2866
- } & {
2867
- themeVariant: Variant;
2868
- }, {}, {}>;
2869
- const StyledErrorContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2870
- theme?: import("@emotion/react").Theme | undefined;
2871
- as?: import("react").ElementType<any> | undefined;
2872
- }, {}, {
2873
- ref?: import("react").Ref<View> | undefined;
2874
- }>;
2875
- const StyledError: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
2876
- theme?: import("@emotion/react").Theme | undefined;
2877
- as?: import("react").ElementType<any> | undefined;
2878
- }, {}, {}>;
2879
- const StyledMaxLengthMessage: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
2880
- theme?: import("@emotion/react").Theme | undefined;
2881
- as?: import("react").ElementType<any> | undefined;
2882
- } & {
2883
- themeVariant: Variant;
2884
- }, {}, {}>;
2885
- const StyledHelperText: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
2886
- theme?: import("@emotion/react").Theme | undefined;
2887
- as?: import("react").ElementType<any> | undefined;
2888
- }, {}, {}>;
2889
- const StyledTextInput: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
2890
- theme?: import("@emotion/react").Theme | undefined;
2891
- as?: import("react").ElementType<any> | undefined;
2892
- }, {}, {
2893
- ref?: import("react").Ref<TextInput> | undefined;
2894
- }>;
2895
- const StyledBorderBackDrop: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2896
- theme?: import("@emotion/react").Theme | undefined;
2897
- as?: import("react").ElementType<any> | undefined;
2898
- } & {
2899
- themeVariant: Variant;
2900
- }, {}, {
2901
- ref?: import("react").Ref<View> | undefined;
2902
- }>;
2903
- const StyledTextInputContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2904
- theme?: import("@emotion/react").Theme | undefined;
2905
- as?: import("react").ElementType<any> | undefined;
2906
- }, {}, {
2907
- ref?: import("react").Ref<View> | undefined;
2908
- }>;
2909
- const StyledTextInputAndLabelContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2910
- theme?: import("@emotion/react").Theme | undefined;
2911
- as?: import("react").ElementType<any> | undefined;
2912
- }, {}, {
2913
- ref?: import("react").Ref<View> | undefined;
2914
- }>;
2915
- const StyledErrorAndHelpTextContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2916
- theme?: import("@emotion/react").Theme | undefined;
2917
- as?: import("react").ElementType<any> | undefined;
2918
- }, {}, {
2919
- ref?: import("react").Ref<View> | undefined;
2920
- }>;
2921
- const StyledErrorAndMaxLengthContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
2922
- theme?: import("@emotion/react").Theme | undefined;
2923
- as?: import("react").ElementType<any> | undefined;
2924
- }, {}, {
2925
- ref?: import("react").Ref<View> | undefined;
2926
- }>;
2927
- export { StyledTextInputContainer, StyledLabel, StyledLabelContainer, StyledAsteriskLabel, StyledAsteriskLabelInsideTextInput, StyledTextInput, StyledError, StyledMaxLengthMessage, StyledLabelInsideTextInput, StyledContainer, StyledErrorContainer, StyledHelperText, StyledTextInputAndLabelContainer, StyledLabelContainerInsideTextInput, StyledErrorAndHelpTextContainer, StyledBorderBackDrop, StyledErrorAndMaxLengthContainer, };
2928
-
2929
- }
2930
- declare module '@hero-design/rn/components/TextInput/__tests__/StyledTextInput.spec' {
2931
- export {};
2932
-
2933
- }
2934
- declare module '@hero-design/rn/components/TextInput/__tests__/index.spec' {
2935
- export {};
2936
-
2937
- }
2938
- declare module '@hero-design/rn/components/TextInput/index' {
2939
- import React from 'react';
2940
- import { TextInputProps as NativeTextInputProps, StyleProp, ViewStyle, TextStyle } from 'react-native';
2941
- import { Variant } from '@hero-design/rn/components/TextInput/StyledTextInput';
2942
- import { IconName } from '@hero-design/rn/components/Icon/index';
2943
- export interface TextInputProps extends NativeTextInputProps {
2944
- /**
2945
- * Field label.
2946
- */
2947
- label?: string;
2948
- /**
2949
- * Name of Icon or ReactElement to render on the left side of the input, before the user's cursor.
2950
- */
2951
- prefix?: IconName | React.ReactElement;
2952
- /**
2953
- * Name of Icon or ReactElement to render on the right side of the input.
2954
- */
2955
- suffix?: IconName | React.ReactElement;
2956
- /**
2957
- * Additional wrapper style.
2958
- */
2959
- style?: StyleProp<ViewStyle>;
2960
- /**
2961
- * Input text style.
2962
- */
2963
- textStyle?: StyleProp<TextStyle>;
2964
- /**
2965
- * Testing id of the component.
2966
- */
2967
- testID?: string;
2968
- /**
2969
- * Accessibility label for the input (Android).
2970
- */
2971
- accessibilityLabelledBy?: string;
2972
- /**
2973
- * Error message to display.
2974
- */
2975
- error?: string;
2976
- /**
2977
- * Whether the input is required, if true, an asterisk will be appended to the label.
2978
- * */
2979
- required?: boolean;
2980
- /**
2981
- * Placeholder text to display.
2982
- * */
2983
- placeholder?: string;
2984
- /**
2985
- * Whether the input is editable.
2986
- * */
2987
- editable?: boolean;
2988
- disabled?: boolean;
2989
- maxLength?: number;
2990
- helpText?: string;
2991
- }
2992
- export const getVariant: ({ disabled, error, editable, isFocused, isEmptyValue, }: {
2993
- disabled?: boolean | undefined;
2994
- error?: string | undefined;
2995
- editable?: boolean | undefined;
2996
- isFocused?: boolean | undefined;
2997
- isEmptyValue?: boolean | undefined;
2998
- }) => Variant;
2999
- const TextInput: ({ label, prefix, suffix, style, textStyle, testID, accessibilityLabelledBy, error, required, editable, disabled, maxLength, helpText, value, defaultValue, ...nativeProps }: TextInputProps) => JSX.Element;
3000
- export default TextInput;
3001
-
3002
- }
3003
- declare module '@hero-design/rn/components/TimePicker/StyledTimePicker' {
3004
- import { View, ViewProps } from 'react-native';
3005
- const StyledPickerWrapper: import("@emotion/native").StyledComponent<ViewProps & {
3006
- theme?: import("@emotion/react").Theme | undefined;
3007
- as?: import("react").ElementType<any> | undefined;
3008
- }, {}, {
3009
- ref?: import("react").Ref<View> | undefined;
3010
- }>;
3011
- export { StyledPickerWrapper };
3012
-
3013
- }
3014
- declare module '@hero-design/rn/components/TimePicker/TimePickerAndroid' {
3015
- import { TimePickerProps } from '@hero-design/rn/components/TimePicker/types';
3016
- const TimePickerAndroid: ({ value, label, placeholder, onChange, displayFormat, disabled, required, error, style, testID, }: TimePickerProps) => JSX.Element;
3017
- export default TimePickerAndroid;
3018
-
3019
- }
3020
- declare module '@hero-design/rn/components/TimePicker/TimePickerIOS' {
3021
- import { TimePickerProps } from '@hero-design/rn/components/TimePicker/types';
3022
- const TimePickerIOS: ({ value, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, style, testID, }: TimePickerProps) => JSX.Element;
3023
- export default TimePickerIOS;
3024
-
3025
- }
3026
- declare module '@hero-design/rn/components/TimePicker/__tests__/TimePicker.spec' {
3027
- export {};
3028
-
3029
- }
3030
- declare module '@hero-design/rn/components/TimePicker/__tests__/TimePickerAndroid.spec' {
3031
- export {};
3032
-
3033
- }
3034
- declare module '@hero-design/rn/components/TimePicker/__tests__/TimePickerIOS.spec' {
3035
- export {};
3036
-
3037
- }
3038
- declare module '@hero-design/rn/components/TimePicker/index' {
3039
- import { TimePickerProps } from '@hero-design/rn/components/TimePicker/types';
3040
- const TimePicker: (props: TimePickerProps) => JSX.Element;
3041
- export default TimePicker;
3042
-
3043
- }
3044
- declare module '@hero-design/rn/components/TimePicker/types' {
3045
- import { StyleProp, ViewStyle } from 'react-native';
3046
- export interface TimePickerProps {
3047
- /**
3048
- * Time picker input label.
3049
- */
3050
- label: string;
3051
- /**
3052
- * Current time value. Must be in correct default format or format provided via format prop.
3053
- */
3054
- value?: Date;
3055
- /**
3056
- * Input placeholder. Time format will be used as placeholder if not specified.
3057
- */
3058
- placeholder?: string;
3059
- /**
3060
- * Callback that is called when new value is selected.
3061
- */
3062
- onChange: (value: Date) => void;
3063
- /**
3064
- * Confirm label text. iOS only.
3065
- */
3066
- confirmLabel: string;
3067
- /**
3068
- * Time display format of current value presented on the input. Default format is: HH:mm aa.
3069
- * Following date-fns's format (https://date-fns.org/v2.16.1/docs/format).
3070
- * This also change how the time picker display between 24 hour and 12 hour mode.
3071
- */
3072
- displayFormat?: string;
3073
- /**
3074
- * Whether the Time picker is disabled.
3075
- */
3076
- disabled?: boolean;
3077
- /**
3078
- * Error message to display.
3079
- */
3080
- error?: string;
3081
- /**
3082
- * Whether the value is required, if true, an asterisk will be appended to the label.
3083
- */
3084
- required?: boolean;
3085
- /**
3086
- * Addtional style.
3087
- */
3088
- style?: StyleProp<ViewStyle>;
3089
- /**
3090
- * Testing id of the component..
3091
- */
3092
- testID?: string;
3093
- }
3094
-
3095
- }
3096
- declare module '@hero-design/rn/components/Toast/StyledToast' {
3097
- import { Animated, TouchableOpacity, View, ViewProps } from 'react-native';
3098
- const ToastContainerWrapper: import("@emotion/native").StyledComponent<ViewProps & {
3099
- theme?: import("@emotion/react").Theme | undefined;
3100
- as?: import("react").ElementType<any> | undefined;
3101
- } & {
3102
- position: 'top' | 'bottom';
3103
- }, {}, {
3104
- ref?: import("react").Ref<View> | undefined;
3105
- }>;
3106
- const Container: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
3107
- children?: import("react").ReactNode;
3108
- } & {
3109
- theme?: import("@emotion/react").Theme | undefined;
3110
- as?: import("react").ElementType<any> | undefined;
3111
- } & {
3112
- themeVariant: 'default' | 'round';
3113
- themeIntent: 'success' | 'info' | 'warning' | 'error';
3114
- }, {}, {}>;
3115
- const IconContainer: import("@emotion/native").StyledComponent<ViewProps & {
3116
- theme?: import("@emotion/react").Theme | undefined;
3117
- as?: import("react").ElementType<any> | undefined;
3118
- }, {}, {
3119
- ref?: import("react").Ref<View> | undefined;
3120
- }>;
3121
- const TextContainer: import("@emotion/native").StyledComponent<ViewProps & {
3122
- theme?: import("@emotion/react").Theme | undefined;
3123
- as?: import("react").ElementType<any> | undefined;
3124
- }, {}, {
3125
- ref?: import("react").Ref<View> | undefined;
3126
- }>;
3127
- const ContentContainer: import("@emotion/native").StyledComponent<ViewProps & {
3128
- theme?: import("@emotion/react").Theme | undefined;
3129
- as?: import("react").ElementType<any> | undefined;
3130
- } & {
3131
- showDivider: boolean;
3132
- }, {}, {
3133
- ref?: import("react").Ref<View> | undefined;
3134
- }>;
3135
- const CTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
3136
- theme?: import("@emotion/react").Theme | undefined;
3137
- as?: import("react").ElementType<any> | undefined;
3138
- }, {}, {
3139
- ref?: import("react").Ref<TouchableOpacity> | undefined;
3140
- }>;
3141
- export { ToastContainerWrapper, Container, ContentContainer, TextContainer, IconContainer, CTAWrapper, };
3142
-
3143
- }
3144
- declare module '@hero-design/rn/components/Toast/Toast' {
3145
- import { ReactElement } from 'react';
3146
- import { StyleProp, ViewStyle } from 'react-native';
3147
- import { IconName } from '@hero-design/rn/components/Icon/index';
3148
- export interface ToastProps {
3149
- /**
3150
- * Toast content.
3151
- */
3152
- content: string | ReactElement;
3153
- /**
3154
- * Icon name of the Toast.
3155
- * - undefined: use default icon according to Toast intent.
3156
- * - null: no icon at all.
3157
- * - IconName: an icon identifier from hero-design icon list.
3158
- */
3159
- icon?: null | IconName;
3160
- /**
3161
- * Visual intent color to apply to alert.
3162
- */
3163
- intent?: 'success' | 'info' | 'warning' | 'error';
3164
- /**
3165
- * Toast variants
3166
- */
3167
- variant?: 'default' | 'round';
3168
- /**
3169
- * Whether the toast message should be dismissed after the duration expired.
3170
- */
3171
- autoDismiss?: boolean;
3172
- /**
3173
- * Duration (in miliseconds) of how long the toast message will be displayed before it disapprears.
3174
- */
3175
- duration?: number;
3176
- /**
3177
- * Display action button with passed on the right side of the toast message.
3178
- * This action button will will dismiss the toast on pressed.
3179
- */
3180
- actionLabel?: string | ReactElement;
3181
- /**
3182
- * Callback that will be called when the action button of the toast is pressed.
3183
- */
3184
- onAction?: () => void;
3185
- /**
3186
- * Callback that will be called when the toast message is dismissed.
3187
- */
3188
- onDismiss?: () => void;
3189
- /**
3190
- * Addtitional style.
3191
- */
3192
- style?: StyleProp<ViewStyle>;
3193
- }
3194
- const Toast: ({ content, icon, variant, intent, style, duration, autoDismiss, onAction, actionLabel, onDismiss, }: ToastProps) => JSX.Element;
3195
- export default Toast;
3196
-
3197
- }
3198
- declare module '@hero-design/rn/components/Toast/ToastContainer' {
3199
- import React from 'react';
3200
- import { ToastControllerContextType } from '@hero-design/rn/components/Toast/ToastContext';
3201
- import { StyleProp, ViewStyle } from 'react-native';
3202
- export interface ToastContainerProps {
3203
- /**
3204
- * Displays multiple toasts at a time or one by one.
3205
- */
3206
- displayType?: 'single' | 'stack';
3207
- /**
3208
- * Position that the toast message will appear on the screen.
3209
- */
3210
- position?: 'top' | 'bottom';
3211
- /**
3212
- * Additional style for toasts container.
3213
- */
3214
- style?: StyleProp<ViewStyle>;
3215
- }
3216
- const ToastContainer: React.ForwardRefExoticComponent<ToastContainerProps & React.RefAttributes<ToastControllerContextType>>;
3217
- export default ToastContainer;
3218
-
3219
- }
3220
- declare module '@hero-design/rn/components/Toast/ToastContext' {
3221
- import { ToastProps } from '@hero-design/rn/components/Toast/Toast';
3222
- import { ToastContainerProps } from '@hero-design/rn/components/Toast/ToastContainer';
3223
- export type ToastControllerContextType = {
3224
- show: (props: Omit<ToastProps, 'position'>) => string;
3225
- hide: (id: string) => void;
3226
- clearAll: () => void;
3227
- };
3228
- export const ToastContext: import("react").Context<ToastControllerContextType>;
3229
- export type ToastConfigContextType = Pick<ToastContainerProps, 'position' | 'displayType'>;
3230
- export const ToastConfigContext: import("react").Context<ToastConfigContextType>;
3231
- export const useToastConfig: () => ToastConfigContextType;
3232
- export const useToast: () => ToastControllerContextType;
3233
-
3234
- }
3235
- declare module '@hero-design/rn/components/Toast/ToastProvider' {
3236
- import { ReactNode } from 'react';
3237
- import { ToastContainerProps } from '@hero-design/rn/components/Toast/ToastContainer';
3238
- type ToastProviderProps = {
3239
- /**
3240
- * Content to be wrapped.
3241
- */
3242
- children?: ReactNode;
3243
- } & ToastContainerProps;
3244
- const ToastProvider: ({ children, displayType, position, }: ToastProviderProps) => JSX.Element;
3245
- export default ToastProvider;
3246
-
3247
- }
3248
- declare module '@hero-design/rn/components/Toast/__tests__/Toast.spec' {
3249
- export {};
3250
-
3251
- }
3252
- declare module '@hero-design/rn/components/Toast/__tests__/ToastContainer.spec' {
3253
- export {};
3254
-
3255
- }
3256
- declare module '@hero-design/rn/components/Toast/index' {
3257
- const Toast: {
3258
- Provider: ({ children, displayType, position, }: {
3259
- children?: import("react").ReactNode;
3260
- } & import("@hero-design/rn/components/Toast/ToastContainer").ToastContainerProps) => JSX.Element;
3261
- Container: import("react").ForwardRefExoticComponent<import("./ToastContainer").ToastContainerProps & import("react").RefAttributes<import("./ToastContext").ToastControllerContextType>>;
3262
- useToast: () => import("@hero-design/rn/components/Toast/ToastContext").ToastControllerContextType;
3263
- };
3264
- export default Toast;
3265
-
3266
- }
3267
- declare module '@hero-design/rn/components/Toolbar/StyledToolbar' {
3268
- import { TouchableOpacity, View, ViewProps } from 'react-native';
3269
- const ToolbarWrapper: import("@emotion/native").StyledComponent<ViewProps & {
3270
- theme?: import("@emotion/react").Theme | undefined;
3271
- as?: import("react").ElementType<any> | undefined;
3272
- }, {}, {
3273
- ref?: import("react").Ref<View> | undefined;
3274
- }>;
3275
- const ToolbarGroupWrapper: import("@emotion/native").StyledComponent<ViewProps & {
3276
- theme?: import("@emotion/react").Theme | undefined;
3277
- as?: import("react").ElementType<any> | undefined;
3278
- } & {
3279
- align: 'left' | 'center' | 'right';
3280
- }, {}, {
3281
- ref?: import("react").Ref<View> | undefined;
3282
- }>;
3283
- const ToolbarItemWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
3284
- theme?: import("@emotion/react").Theme | undefined;
3285
- as?: import("react").ElementType<any> | undefined;
3286
- }, {}, {
3287
- ref?: import("react").Ref<TouchableOpacity> | undefined;
3288
- }>;
3289
- export { ToolbarWrapper, ToolbarGroupWrapper, ToolbarItemWrapper };
3290
-
3291
- }
3292
- declare module '@hero-design/rn/components/Toolbar/ToolbarGroup' {
3293
- import { ToolbarItemProps } from '@hero-design/rn/components/Toolbar/ToolbarItem';
3294
- export interface ToolbarGroupProps {
3295
- /**
3296
- * List of action items in the toolbar group.
3297
- */
3298
- items?: ToolbarItemProps[];
3299
- /**
3300
- * Alignment of the items in the group.
3301
- */
3302
- align: 'left' | 'center' | 'right';
3303
- }
3304
- const ToolbarGroup: ({ align, items }: ToolbarGroupProps) => JSX.Element;
3305
- export default ToolbarGroup;
3306
-
3307
- }
3308
- declare module '@hero-design/rn/components/Toolbar/ToolbarItem' {
3309
- import { IconName } from '@hero-design/rn/components/Icon/index';
3310
- export interface ToolbarItemProps {
3311
- /**
3312
- * Visual intent of the toolbar item.
3313
- */
3314
- intent?: 'primary' | 'info' | 'success' | 'danger' | 'warning';
3315
- /**
3316
- * Icon of the toolbar item.
3317
- */
3318
- icon?: IconName;
3319
- /**
3320
- * Action label of the toolbar item.
3321
- */
3322
- label?: string;
3323
- /**
3324
- * Callback that trigger when user press the toolbar item.
3325
- */
3326
- onPress?: () => void;
3327
- /**
3328
- * Whether the toolbar item is disabled.
3329
- */
3330
- disabled?: boolean;
3331
- }
3332
- const ToolbarItem: ({ icon, label, onPress, intent, disabled, }: ToolbarItemProps) => JSX.Element;
3333
- export default ToolbarItem;
3334
-
3335
- }
3336
- declare module '@hero-design/rn/components/Toolbar/__tests__/ToolbarGroup.spec' {
3337
- export {};
3338
-
3339
- }
3340
- declare module '@hero-design/rn/components/Toolbar/__tests__/ToolbarItem.spec' {
3341
- export {};
3342
-
3343
- }
3344
- declare module '@hero-design/rn/components/Toolbar/index' {
3345
- import { ReactNode } from 'react';
3346
- export interface ToolbarProps {
3347
- /**
3348
- * Toolbar's content.
3349
- */
3350
- children?: ReactNode;
3351
- }
3352
- const _default: (({ children }: ToolbarProps) => JSX.Element) & {
3353
- Group: ({ align, items }: import("@hero-design/rn/components/Toolbar/ToolbarGroup").ToolbarGroupProps) => JSX.Element;
3354
- };
3355
- export default _default;
3356
-
3357
- }
3358
- declare module '@hero-design/rn/components/Typography/Text/StyledText' {
3359
- import { Text } from 'react-native';
3360
- const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
3361
- theme?: import("@emotion/react").Theme | undefined;
3362
- as?: import("react").ElementType<any> | undefined;
3363
- } & {
3364
- themeFontSize: 'small' | 'medium' | 'large' | 'xlarge' | 'xxxxxlarge';
3365
- themeFontWeight: 'light' | 'regular' | 'semi-bold';
3366
- themeIntent: 'body' | 'subdued' | 'primary' | 'success' | 'info' | 'warning' | 'danger';
3367
- }, {}, {
3368
- ref?: import("react").Ref<Text> | undefined;
3369
- }>;
3370
- export { StyledText };
3371
-
3372
- }
3373
- declare module '@hero-design/rn/components/Typography/Text/__tests__/StyledText.spec' {
3374
- export {};
3375
-
3376
- }
3377
- declare module '@hero-design/rn/components/Typography/Text/__tests__/index.spec' {
3378
- export {};
3379
-
3380
- }
3381
- declare module '@hero-design/rn/components/Typography/Text/index' {
3382
- import { ReactNode } from 'react';
3383
- import { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
3384
- export interface TextProps extends NativeTextProps {
3385
- /**
3386
- * Text content.
3387
- */
3388
- children: ReactNode;
3389
- /**
3390
- * Size of the text.
3391
- */
3392
- fontSize?: 'small' | 'medium' | 'large' | 'xlarge' | 'xxxxxlarge';
3393
- /**
3394
- * Font weight of the text.
3395
- */
3396
- fontWeight?: 'light' | 'regular' | 'semi-bold';
3397
- /**
3398
- * Visual intent color to apply to the text.
3399
- */
3400
- intent?: 'body' | 'subdued' | 'primary' | 'success' | 'info' | 'warning' | 'danger';
3401
- /**
3402
- * Additional style.
3403
- */
3404
- style?: StyleProp<TextStyle>;
3405
- /**
3406
- * Testing id of the component.
3407
- */
3408
- testID?: string;
3409
- }
3410
- const Text: ({ children, fontSize, fontWeight, intent, ...nativeProps }: TextProps) => JSX.Element;
3411
- export default Text;
3412
-
3413
- }
3414
- declare module '@hero-design/rn/components/Typography/index' {
3415
- import Text from '@hero-design/rn/components/Typography/Text/index';
3416
- interface TypographyProps {
3417
- Text: typeof Text;
3418
- }
3419
- const Typography: TypographyProps;
3420
- export default Typography;
3421
-
3422
- }
3423
- declare module '@hero-design/rn/index' {
3424
- import theme, { getTheme, ThemeProvider, useTheme } from '@hero-design/rn/theme/index';
3425
- import { scale } from '@hero-design/rn/utils/scale';
3426
- import Alert from '@hero-design/rn/components/Alert/index';
3427
- import Avatar from '@hero-design/rn/components/Avatar/index';
3428
- import Badge from '@hero-design/rn/components/Badge/index';
3429
- import BottomNavigation from '@hero-design/rn/components/BottomNavigation/index';
3430
- import BottomSheet from '@hero-design/rn/components/BottomSheet/index';
3431
- import Button from '@hero-design/rn/components/Button/index';
3432
- import Card from '@hero-design/rn/components/Card/index';
3433
- import Collapse from '@hero-design/rn/components/Collapse/index';
3434
- import Checkbox from '@hero-design/rn/components/Checkbox/index';
3435
- import ContentNavigator from '@hero-design/rn/components/ContentNavigator/index';
3436
- import DatePicker from '@hero-design/rn/components/DatePicker/index';
3437
- import Divider from '@hero-design/rn/components/Divider/index';
3438
- import Drawer from '@hero-design/rn/components/Drawer/index';
3439
- import FAB from '@hero-design/rn/components/FAB/index';
3440
- import Icon from '@hero-design/rn/components/Icon/index';
3441
- import List from '@hero-design/rn/components/List/index';
3442
- import PinInput from '@hero-design/rn/components/PinInput/index';
3443
- import Progress from '@hero-design/rn/components/Progress/index';
3444
- import Spinner from '@hero-design/rn/components/Spinner/index';
3445
- import Radio from '@hero-design/rn/components/Radio/index';
3446
- import SectionHeading from '@hero-design/rn/components/SectionHeading/index';
3447
- import Select from '@hero-design/rn/components/Select/index';
3448
- import Switch from '@hero-design/rn/components/Switch/index';
3449
- import Tabs from '@hero-design/rn/components/Tabs/index';
3450
- import Tag from '@hero-design/rn/components/Tag/index';
3451
- import TextInput from '@hero-design/rn/components/TextInput/index';
3452
- import TimePicker from '@hero-design/rn/components/TimePicker/index';
3453
- import Toast from '@hero-design/rn/components/Toast/index';
3454
- import Toolbar from '@hero-design/rn/components/Toolbar/index';
3455
- import Typography from '@hero-design/rn/components/Typography/index';
3456
- export { theme, getTheme, useTheme, scale, ThemeProvider, Alert, Avatar, Badge, BottomNavigation, BottomSheet, Button, Card, Collapse, Checkbox, ContentNavigator, DatePicker, Divider, Drawer, FAB, Icon, List, PinInput, Progress, Spinner, Radio, SectionHeading, Select, Switch, Tabs, Tag, TextInput, TimePicker, Toast, Toolbar, Typography, };
3457
- export * from '@hero-design/rn/types';
3458
-
3459
- }
3460
- declare module '@hero-design/rn/testHelpers/renderWithTheme' {
3461
- import { RenderOptions } from '@testing-library/react-native';
3462
- const renderWithTheme: (ui: JSX.Element, options?: RenderOptions | undefined) => import("@testing-library/react-native").RenderAPI;
3463
- export default renderWithTheme;
3464
-
3465
- }
3466
- declare module '@hero-design/rn/theme/__tests__/index.spec' {
3467
- export {};
3468
-
3469
- }
3470
- declare module '@hero-design/rn/theme/components/alert' {
3471
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
3472
- const getAlertTheme: (theme: GlobalTheme) => {
3473
- colors: {
3474
- success: string;
3475
- warning: string;
3476
- error: string;
3477
- info: string;
3478
- divider: string;
3479
- };
3480
- radii: {
3481
- default: number;
3482
- };
3483
- sizes: {
3484
- height: number;
3485
- };
3486
- space: {
3487
- padding: number;
3488
- };
3489
- borderWidths: {
3490
- base: number;
3491
- };
3492
- };
3493
- export default getAlertTheme;
3494
-
3495
- }
3496
- declare module '@hero-design/rn/theme/components/avatar' {
3497
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
3498
- const getAvatarTheme: (theme: GlobalTheme) => {
3499
- colors: {
3500
- primary: string;
3501
- info: string;
3502
- danger: string;
3503
- success: string;
3504
- warning: string;
3505
- };
3506
- sizes: {
3507
- small: number;
3508
- medium: number;
3509
- large: number;
3510
- xlarge: number;
3511
- };
3512
- radii: {
3513
- small: number;
3514
- medium: number;
3515
- large: number;
3516
- xlarge: number;
3517
- };
3518
- borderWidths: {
3519
- default: number;
3520
- };
3521
- fontSizes: {
3522
- small: number;
3523
- medium: number;
3524
- large: number;
3525
- xlarge: number;
3526
- };
3527
- };
3528
- export default getAvatarTheme;
3529
-
3530
- }
3531
- declare module '@hero-design/rn/theme/components/badge' {
3532
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
3533
- const getBadgeTheme: (theme: GlobalTheme) => {
3534
- colors: {
3535
- danger: string;
3536
- info: string;
3537
- success: string;
3538
- warning: string;
3539
- archived: string;
3540
- text: string;
3541
- };
3542
- fonts: {
3543
- default: string;
3544
- };
3545
- fontSizes: {
3546
- default: number;
3547
- };
3548
- sizes: {
3549
- height: number;
3550
- minWidth: number;
3551
- statusHeight: number;
3552
- statusWidth: number;
3553
- };
3554
- space: {
3555
- horizontalPadding: number;
3556
- statusPositionTop: number;
3557
- statusPositionRight: number;
3558
- };
3559
- };
3560
- export default getBadgeTheme;
3561
-
3562
- }
3563
- declare module '@hero-design/rn/theme/components/bottomNavigation' {
3564
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
3565
- const getBottomNavigationTheme: (theme: GlobalTheme) => {
3566
- colors: {
3567
- shadow: string;
3568
- background: string;
3569
- };
3570
- shadows: {
3571
- offset: {
3572
- width: number;
3573
- height: number;
3574
- };
3575
- opacity: number;
3576
- radius: number;
3577
- elevation: number;
3578
- };
3579
- sizes: {
3580
- height: number;
3581
- };
3582
- space: {
3583
- titleMarginTop: number;
3584
- };
3585
- };
3586
- export default getBottomNavigationTheme;
3587
-
3588
- }
3589
- declare module '@hero-design/rn/theme/components/bottomSheet' {
3590
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
3591
- const getBottomSheetTheme: (theme: GlobalTheme) => {
3592
- colors: {
3593
- shadow: string;
3594
- background: string;
3595
- backdrop: string;
3596
- };
3597
- shadows: {
3598
- offset: {
3599
- width: number;
3600
- height: number;
3601
- };
3602
- opacity: number;
3603
- radius: number;
3604
- elevation: number;
3605
- };
3606
- radii: {
3607
- default: number;
3608
- };
3609
- sizes: {
3610
- sectionHeight: number;
3611
- closeIconWidth: number;
3612
- };
3613
- space: {
3614
- horizontalPadding: number;
3615
- verticalPadding: number;
3616
- };
3617
- };
3618
- export default getBottomSheetTheme;
3619
-
3620
- }
3621
- declare module '@hero-design/rn/theme/components/button' {
3622
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
3623
- const getButtonTheme: (theme: GlobalTheme) => {
3624
- borderWidth: {
3625
- default: number;
3626
- };
3627
- fonts: {
3628
- default: string;
3629
- };
3630
- fontSize: {
3631
- default: number;
3632
- utility: number;
3633
- textVariant: number;
3634
- };
3635
- sizes: {
3636
- iconSize: number;
3637
- };
3638
- radii: {
3639
- default: number;
3640
- utilityRadii: number;
3641
- };
3642
- colors: {
3643
- primary: string;
3644
- pressedPrimary: string;
3645
- secondary: string;
3646
- pressedSecondary: string;
3647
- danger: string;
3648
- pressedDanger: string;
3649
- defaultText: string;
3650
- disabledText: string;
3651
- disabledBorder: string;
3652
- disabledBackground: string;
3653
- invertedText: string;
3654
- utilityBackground: string;
3655
- underlayColors: {
3656
- 'filled-primary': string;
3657
- 'filled-secondary': string;
3658
- 'filled-danger': string;
3659
- 'outlined-primary': string;
3660
- 'outlined-secondary': string;
3661
- 'outlined-danger': string;
3662
- 'text-primary': string;
3663
- 'text-secondary': string;
3664
- 'text-danger': string;
3665
- 'basic-transparent': string;
3666
- };
3667
- };
3668
- lineHeight: {
3669
- default: number;
3670
- };
3671
- space: {
3672
- buttonPadding: number;
3673
- iconPadding: number;
3674
- utilityPadding: number;
3675
- utilityIconPadding: number;
3676
- };
3677
- };
3678
- export default getButtonTheme;
3679
-
3680
- }
3681
- declare module '@hero-design/rn/theme/components/card' {
3682
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
3683
- const getCardTheme: (theme: GlobalTheme) => {
3684
- colors: {
3685
- dataCardIndicator: string;
3686
- indicator: {
3687
- archived: string;
3688
- info: string;
3689
- success: string;
3690
- warning: string;
3691
- danger: string;
3692
- };
3693
- };
3694
- sizes: {
3695
- indicatorWidth: number;
3696
- };
3697
- radii: {
3698
- default: number;
3699
- };
3700
- };
3701
- export default getCardTheme;
3702
-
3703
- }
3704
- declare module '@hero-design/rn/theme/components/checkbox' {
3705
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
3706
- const getCheckboxTheme: (theme: GlobalTheme) => {
3707
- colors: {
3708
- borderColor: string;
3709
- text: string;
3710
- disabled: string;
3711
- };
3712
- space: {
3713
- iconTop: number;
3714
- };
3715
- sizes: {
3716
- base: number;
3717
- };
3718
- radii: {
3719
- base: number;
3720
- };
3721
- borderWidths: {
3722
- default: number;
3723
- };
3724
- };
3725
- export default getCheckboxTheme;
3726
-
3727
- }
3728
- declare module '@hero-design/rn/theme/components/contentNavigator' {
3729
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
3730
- const getContentNavigatorTheme: (theme: GlobalTheme) => {
3731
- space: {
3732
- valueHorizontalPadding: number;
3733
- };
3734
- };
3735
- export default getContentNavigatorTheme;
3736
-
3737
- }
3738
- declare module '@hero-design/rn/theme/components/datePicker' {
3739
- const getDatePickerTheme: () => {
3740
- sizes: {
3741
- height: number;
3742
- };
3743
- };
3744
- export default getDatePickerTheme;
3745
-
3746
- }
3747
- declare module '@hero-design/rn/theme/components/divider' {
3748
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
3749
- const getDividerTheme: (theme: GlobalTheme) => {
3750
- colors: {
3751
- default: string;
3752
- };
3753
- space: {
3754
- xsmall: number;
3755
- small: number;
3756
- medium: number;
3757
- large: number;
3758
- xlarge: number;
3759
- };
3760
- borderWidths: {
3761
- default: number;
3762
- };
3763
- };
3764
- export default getDividerTheme;
3765
-
3766
- }
3767
- declare module '@hero-design/rn/theme/components/drawer' {
3768
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
3769
- const getDrawerTheme: (theme: GlobalTheme) => {
3770
- colors: {
3771
- shadow: string;
3772
- background: string;
3773
- backdrop: string;
3774
- };
3775
- radii: {
3776
- default: number;
3777
- };
3778
- shadows: {
3779
- offset: {
3780
- width: number;
3781
- height: number;
3782
- };
3783
- opacity: number;
3784
- radius: number;
3785
- elevation: number;
3786
- };
3787
- };
3788
- export default getDrawerTheme;
3789
-
3790
- }
3791
- declare module '@hero-design/rn/theme/components/fab' {
3792
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
3793
- const getFABTheme: (theme: GlobalTheme) => {
3794
- radii: {
3795
- actionItem: number;
3796
- };
3797
- fonts: {
3798
- header: string;
3799
- actionItemText: string;
3800
- title: string;
3801
- };
3802
- fontSizes: {
3803
- header: number;
3804
- actionItemText: number;
3805
- title: number;
3806
- };
3807
- colors: {
3808
- buttonBackground: string;
3809
- icon: string;
3810
- headerText: string;
3811
- actionItemBackground: string;
3812
- backdropBackground: string;
3813
- titleText: string;
3814
- actionItemText: string;
3815
- };
3816
- sizes: {
3817
- width: number;
3818
- height: number;
3819
- };
3820
- lineHeights: {
3821
- header: number;
3822
- actionItemText: number;
3823
- title: number;
3824
- icon: number;
3825
- };
3826
- space: {
3827
- actionItemPaddingLeft: number;
3828
- actionItemPaddingRight: number;
3829
- actionItemPaddingTop: number;
3830
- actionItemPaddingBottom: number;
3831
- actionItemMargin: number;
3832
- actionItemMarginRight: number;
3833
- actionItemTextPaddingLeft: number;
3834
- buttonMarginTop: number;
3835
- buttonMarginRight: number;
3836
- headerTextMarginRight: number;
3837
- headerTextMarginBottom: number;
3838
- containerPaddingHorizontal: number;
3839
- containerPaddingVertical: number;
3840
- titleMarginHorizontal: number;
3841
- };
3842
- };
3843
- export default getFABTheme;
3844
-
3845
- }
3846
- declare module '@hero-design/rn/theme/components/icon' {
3847
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
3848
- const getIconTheme: (theme: GlobalTheme) => {
3849
- colors: {
3850
- text: string;
3851
- primary: string;
3852
- info: string;
3853
- danger: string;
3854
- success: string;
3855
- warning: string;
3856
- disabledText: string;
3857
- invertedText: string;
3858
- };
3859
- sizes: {
3860
- xsmall: number;
3861
- small: number;
3862
- medium: number;
3863
- large: number;
3864
- xlarge: number;
3865
- };
3866
- };
3867
- export default getIconTheme;
3868
-
3869
- }
3870
- declare module '@hero-design/rn/theme/components/list' {
3871
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
3872
- const getListTheme: (theme: GlobalTheme) => {
3873
- colors: {
3874
- checkedListItemContainerBackground: string;
3875
- highlightedListItemContainerBackground: string;
3876
- listItemContainerBackground: string;
3877
- leadingStatus: {
3878
- danger: string;
3879
- info: string;
3880
- success: string;
3881
- warning: string;
3882
- archived: string;
3883
- };
3884
- };
3885
- space: {
3886
- listItemContainerPadding: number;
3887
- leadingStatusMarginRight: number;
3888
- prefixContainerMarginRight: number;
3889
- suffixContainerMarginLeft: number;
3890
- };
3891
- radii: {
3892
- card: number;
3893
- cardShadow: number;
3894
- leadingStatus: number;
3895
- };
3896
- offsets: {
3897
- cardShadow: {
3898
- width: number;
3899
- height: number;
3900
- };
3901
- };
3902
- widths: {
3903
- leadingStatus: number;
3904
- };
3905
- opacity: {
3906
- disabled: number;
3907
- enabled: number;
3908
- cardShadow: number;
3909
- };
3910
- };
3911
- export default getListTheme;
3912
-
3913
- }
3914
- declare module '@hero-design/rn/theme/components/pinInput' {
3915
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
3916
- const getPinInputTheme: (theme: GlobalTheme) => {
3917
- borderWidths: {
3918
- default: number;
3919
- focused: number;
3920
- };
3921
- colors: {
3922
- default: string;
3923
- mask: string;
3924
- error: string;
3925
- disabled: string;
3926
- };
3927
- fonts: {
3928
- cellText: string;
3929
- errorMessage: string;
3930
- };
3931
- fontSizes: {
3932
- cellText: number;
3933
- errorMessage: number;
3934
- };
3935
- sizes: {
3936
- cellWidth: number;
3937
- cellHeight: number;
3938
- mask: number;
3939
- };
3940
- space: {
3941
- spacer: number;
3942
- errorMessagePadding: number;
3943
- };
3944
- radii: {
3945
- cell: number;
3946
- mask: number;
3947
- };
3948
- };
3949
- export default getPinInputTheme;
3950
-
3951
- }
3952
- declare module '@hero-design/rn/theme/components/progress' {
3953
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
3954
- const getProgressTheme: (theme: GlobalTheme) => {
3955
- colors: {
3956
- primary: string;
3957
- success: string;
3958
- warning: string;
3959
- danger: string;
3960
- info: string;
3961
- background: string;
3962
- innerBackground: string;
3963
- };
3964
- sizes: {
3965
- radius: number;
3966
- strokeWidth: number;
3967
- barHeight: number;
3968
- };
3969
- radii: {
3970
- default: number;
3971
- };
3972
- };
3973
- export default getProgressTheme;
3974
-
3975
- }
3976
- declare module '@hero-design/rn/theme/components/radio' {
3977
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
3978
- const getRadioTheme: (theme: GlobalTheme) => {
3979
- sizes: {
3980
- circle: number;
3981
- innerCircle: number;
3982
- };
3983
- borderWidths: {
3984
- circle: number;
3985
- };
3986
- space: {
3987
- wrapperPadding: number;
3988
- circleLeftMargin: number;
3989
- groupTopMargin: number;
3990
- };
3991
- colors: {
3992
- circle: string;
3993
- checkedCircle: string;
3994
- wrapper: string;
3995
- checkedWrapper: string;
3996
- };
3997
- radii: {
3998
- wrapper: number;
3999
- };
4000
- };
4001
- export default getRadioTheme;
4002
-
4003
- }
4004
- declare module '@hero-design/rn/theme/components/sectionHeading' {
4005
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
4006
- const getSectionHeadingTheme: (theme: GlobalTheme) => {
4007
- colors: {
4008
- background: string;
4009
- };
4010
- space: {
4011
- headingVerticalPadding: number;
4012
- headingHorizontalPadding: number;
4013
- headingMarginBottom: number;
4014
- iconMarginRight: number;
4015
- };
4016
- };
4017
- export default getSectionHeadingTheme;
4018
-
4019
- }
4020
- declare module '@hero-design/rn/theme/components/select' {
4021
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
4022
- const getSelectTheme: (theme: GlobalTheme) => {
4023
- space: {
4024
- minimumOptionListHeight: number;
4025
- optionPadding: number;
4026
- optionListPadding: number;
4027
- optionListSpacing: number;
4028
- searchBarMarginTopSpacing: number;
4029
- searchBarHorizontalSpacing: number;
4030
- searchBarBottomSpacing: number;
4031
- };
4032
- colors: {
4033
- option: string;
4034
- checkedOption: string;
4035
- footerText: string;
4036
- };
4037
- radii: {
4038
- option: number;
4039
- };
4040
- };
4041
- export default getSelectTheme;
4042
-
4043
- }
4044
- declare module '@hero-design/rn/theme/components/spinner' {
4045
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
4046
- const getSpinnerTheme: (theme: GlobalTheme) => {
4047
- color: {
4048
- default: string;
4049
- };
4050
- space: {
4051
- spinnerDot: number;
4052
- spinnerDotPadding: number;
4053
- spinnerTextPaddingTop: number;
4054
- };
4055
- radii: {
4056
- default: number;
4057
- };
4058
- };
4059
- export default getSpinnerTheme;
4060
-
4061
- }
4062
- declare module '@hero-design/rn/theme/components/switch' {
4063
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
4064
- const getSwitchTheme: (theme: GlobalTheme) => {
4065
- colors: {
4066
- thumb: string;
4067
- active: string;
4068
- inactive: string;
4069
- };
4070
- thumbSizes: {
4071
- small: number;
4072
- medium: number;
4073
- };
4074
- widths: {
4075
- small: number;
4076
- medium: number;
4077
- };
4078
- heights: {
4079
- small: number;
4080
- medium: number;
4081
- };
4082
- spaces: {
4083
- small: number;
4084
- medium: number;
4085
- inactive: number;
4086
- };
4087
- radii: {
4088
- rounded: number;
4089
- };
4090
- borderWidths: {
4091
- default: number;
4092
- };
4093
- };
4094
- export default getSwitchTheme;
4095
-
4096
- }
4097
- declare module '@hero-design/rn/theme/components/tabs' {
4098
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
4099
- const getTabsTheme: (theme: GlobalTheme) => {
4100
- borderWidths: {
4101
- headerBottom: number;
4102
- };
4103
- colors: {
4104
- active: string;
4105
- inactive: string;
4106
- activeBackground: string;
4107
- headerBottom: string;
4108
- text: string;
4109
- };
4110
- space: {
4111
- flatListHorizontalPadding: number;
4112
- itemHorizontalPadding: number;
4113
- itemVerticalPadding: number;
4114
- outlineHorizontalPadding: number;
4115
- outlineVerticalPadding: number;
4116
- };
4117
- radii: {
4118
- outline: number;
4119
- };
4120
- sizes: {
4121
- indicator: number;
4122
- };
4123
- };
4124
- export default getTabsTheme;
4125
-
4126
- }
4127
- declare module '@hero-design/rn/theme/components/tag' {
4128
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
4129
- const getTagTheme: (theme: GlobalTheme) => {
4130
- borderWidths: {
4131
- default: number;
4132
- };
4133
- colors: {
4134
- default: string;
4135
- defaultBackground: undefined;
4136
- primary: string;
4137
- primaryBackground: string;
4138
- info: string;
4139
- infoBackground: string;
4140
- success: string;
4141
- successBackground: string;
4142
- warning: string;
4143
- warningBackground: string;
4144
- danger: string;
4145
- dangerBackground: string;
4146
- archived: string;
4147
- archivedBackground: string;
4148
- };
4149
- fonts: {
4150
- default: string;
4151
- };
4152
- fontSizes: {
4153
- default: number;
4154
- };
4155
- space: {
4156
- horizontalPadding: number;
4157
- verticalPadding: number;
4158
- };
4159
- radii: {
4160
- default: number;
4161
- };
4162
- };
4163
- export default getTagTheme;
4164
-
4165
- }
4166
- declare module '@hero-design/rn/theme/components/textInput' {
4167
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
4168
- const getTextInputTheme: (theme: GlobalTheme) => {
4169
- colors: {
4170
- labelBackground: string;
4171
- asterisks: {
4172
- default: string;
4173
- error: string;
4174
- disabled: string;
4175
- readonly: string;
4176
- filled: string;
4177
- focused: string;
4178
- };
4179
- error: string;
4180
- placeholderIfNotFocused: string;
4181
- placeholderIfFocued: string;
4182
- label: string;
4183
- readonlyLabel: string;
4184
- disabledLabel: string;
4185
- text: string;
4186
- borders: {
4187
- default: string;
4188
- error: string;
4189
- disabled: string;
4190
- readonly: string;
4191
- filled: string;
4192
- focused: string;
4193
- };
4194
- labels: {
4195
- default: string;
4196
- error: string;
4197
- disabled: string;
4198
- readonly: string;
4199
- filled: string;
4200
- focused: string;
4201
- };
4202
- labelsInsideTextInput: {
4203
- default: string;
4204
- error: string;
4205
- disabled: string;
4206
- readonly: string;
4207
- filled: string;
4208
- focused: string;
4209
- };
4210
- maxLengthLabels: {
4211
- default: string;
4212
- error: string;
4213
- disabled: string;
4214
- readonly: string;
4215
- filled: string;
4216
- focused: string;
4217
- };
4218
- };
4219
- space: {
4220
- containerPadding: number;
4221
- labelLeft: number;
4222
- labelTop: number;
4223
- labelPaddingBottom: number;
4224
- labelHorizontalPadding: number;
4225
- inputHorizontalMargin: number;
4226
- containerMarginVertical: number;
4227
- errorContainerMarginRight: number;
4228
- errorMarginLeft: number;
4229
- maxLengthLabelMarginLeft: number;
4230
- errorAndHelpTextContainerPaddingLeft: number;
4231
- };
4232
- fontSizes: {
4233
- text: number;
4234
- labelInsideTextInput: number;
4235
- error: number;
4236
- maxLength: number;
4237
- asteriskLabel: number;
4238
- };
4239
- borderWidths: {
4240
- container: {
4241
- normal: number;
4242
- focused: number;
4243
- };
4244
- };
4245
- radii: {
4246
- container: number;
4247
- };
4248
- };
4249
- export default getTextInputTheme;
4250
-
4251
- }
4252
- declare module '@hero-design/rn/theme/components/timePicker' {
4253
- const getTimePickerTheme: () => {
4254
- sizes: {
4255
- height: number;
4256
- };
4257
- };
4258
- export default getTimePickerTheme;
4259
-
4260
- }
4261
- declare module '@hero-design/rn/theme/components/toast' {
4262
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
4263
- const getToastTheme: (theme: GlobalTheme) => {
4264
- colors: {
4265
- success: string;
4266
- warning: string;
4267
- error: string;
4268
- info: string;
4269
- divider: string;
4270
- };
4271
- radii: {
4272
- default: number;
4273
- };
4274
- sizes: {
4275
- height: number;
4276
- };
4277
- space: {
4278
- mediumPadding: number;
4279
- largePadding: number;
4280
- };
4281
- borderWidths: {
4282
- base: number;
4283
- };
4284
- };
4285
- export default getToastTheme;
4286
-
4287
- }
4288
- declare module '@hero-design/rn/theme/components/toolbar' {
4289
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
4290
- const getToolbarTheme: (theme: GlobalTheme) => {
4291
- colors: {
4292
- background: string;
4293
- border: string;
4294
- primary: string;
4295
- info: string;
4296
- success: string;
4297
- danger: string;
4298
- error: string;
4299
- disabled: string;
4300
- };
4301
- space: {
4302
- verticalPadding: number;
4303
- horizontalPadding: number;
4304
- };
4305
- borderWidths: {
4306
- default: number;
4307
- };
4308
- };
4309
- export default getToolbarTheme;
4310
-
4311
- }
4312
- declare module '@hero-design/rn/theme/components/typography' {
4313
- import { GlobalTheme } from '@hero-design/rn/theme/global/index';
4314
- const getTypographyTheme: (theme: GlobalTheme) => {
4315
- colors: {
4316
- body: string;
4317
- subdued: string;
4318
- primary: string;
4319
- info: string;
4320
- danger: string;
4321
- warning: string;
4322
- success: string;
4323
- };
4324
- fonts: {
4325
- light: string;
4326
- regular: string;
4327
- semiBold: string;
4328
- };
4329
- fontSizes: {
4330
- small: number;
4331
- medium: number;
4332
- large: number;
4333
- xlarge: number;
4334
- xxxxxlarge: number;
4335
- };
4336
- lineHeights: {
4337
- small: number;
4338
- medium: number;
4339
- large: number;
4340
- xlarge: number;
4341
- xxxxxlarge: number;
4342
- };
4343
- };
4344
- export default getTypographyTheme;
4345
-
4346
- }
4347
- declare module '@hero-design/rn/theme/global/borders' {
4348
- interface BorderWidths {
4349
- base: number;
4350
- medium: number;
4351
- }
4352
- interface Radii {
4353
- rounded: number;
4354
- base: number;
4355
- medium: number;
4356
- large: number;
4357
- xlarge: number;
4358
- }
4359
- const getBorderWidths: (baseBorderWidth: number) => BorderWidths;
4360
- const getRadii: (baseRadius: number) => Radii;
4361
- export { BorderWidths, getBorderWidths, Radii, getRadii };
4362
-
4363
- }
4364
- declare module '@hero-design/rn/theme/global/colors' {
4365
- const systemPalette: {
4366
- primary: string;
4367
- primaryLight: string;
4368
- primaryDark: string;
4369
- primaryBackground: string;
4370
- primaryBackgroundDark: string;
4371
- secondary: string;
4372
- secondaryLight: string;
4373
- secondaryBackground: string;
4374
- info: string;
4375
- infoMediumLight: string;
4376
- infoLight: string;
4377
- infoBackground: string;
4378
- success: string;
4379
- successLight: string;
4380
- successDark: string;
4381
- successBackground: string;
4382
- danger: string;
4383
- dangerMediumLight: string;
4384
- dangerLight: string;
4385
- dangerBackground: string;
4386
- warning: string;
4387
- warningLight: string;
4388
- warningDark: string;
4389
- warningBackground: string;
4390
- platformBackground: string;
4391
- backgroundLight: string;
4392
- backgroundDark: string;
4393
- text: string;
4394
- subduedText: string;
4395
- disabledText: string;
4396
- disabledLightText: string;
4397
- invertedText: string;
4398
- outline: string;
4399
- archived: string;
4400
- archivedLight: string;
4401
- archivedDark: string;
4402
- archivedBackground: string;
4403
- black: string;
4404
- inactiveBackground: string;
4405
- shadow: string;
4406
- };
4407
- type SystemPalette = typeof systemPalette;
4408
- export { systemPalette, SystemPalette };
4409
-
4410
- }
4411
- declare module '@hero-design/rn/theme/global/index' {
4412
- import { scale as defaultScale, Scale } from '@hero-design/rn/theme/global/scale';
4413
- import { systemPalette as defaultSystemPalette, SystemPalette } from '@hero-design/rn/theme/global/colors';
4414
- const getGlobalTheme: (scale: Scale, systemPalette: SystemPalette) => {
4415
- colors: {
4416
- primary: string;
4417
- primaryLight: string;
4418
- primaryDark: string;
4419
- primaryBackground: string;
4420
- primaryBackgroundDark: string;
4421
- secondary: string;
4422
- secondaryLight: string;
4423
- secondaryBackground: string;
4424
- info: string;
4425
- infoMediumLight: string;
4426
- infoLight: string;
4427
- infoBackground: string;
4428
- success: string;
4429
- successLight: string;
4430
- successDark: string;
4431
- successBackground: string;
4432
- danger: string;
4433
- dangerMediumLight: string;
4434
- dangerLight: string;
4435
- dangerBackground: string;
4436
- warning: string;
4437
- warningLight: string;
4438
- warningDark: string;
4439
- warningBackground: string;
4440
- platformBackground: string;
4441
- backgroundLight: string;
4442
- backgroundDark: string;
4443
- text: string;
4444
- subduedText: string;
4445
- disabledText: string;
4446
- disabledLightText: string;
4447
- invertedText: string;
4448
- outline: string;
4449
- archived: string;
4450
- archivedLight: string;
4451
- archivedDark: string;
4452
- archivedBackground: string;
4453
- black: string;
4454
- inactiveBackground: string;
4455
- shadow: string;
4456
- };
4457
- fonts: import("@hero-design/rn/theme/global/typography").Fonts;
4458
- fontSizes: import("@hero-design/rn/theme/global/typography").FontSizes;
4459
- lineHeights: import("@hero-design/rn/theme/global/typography").FontSizes;
4460
- borderWidths: import("@hero-design/rn/theme/global/borders").BorderWidths;
4461
- space: import("@hero-design/rn/theme/global/space").Space;
4462
- radii: import("@hero-design/rn/theme/global/borders").Radii;
4463
- };
4464
- type GlobalTheme = ReturnType<typeof getGlobalTheme>;
4465
- export { GlobalTheme, Scale, SystemPalette, getGlobalTheme, defaultScale, defaultSystemPalette, };
4466
-
4467
- }
4468
- declare module '@hero-design/rn/theme/global/scale' {
4469
- const scale: {
4470
- borderWidth: number;
4471
- space: number;
4472
- font: string;
4473
- fontSize: number;
4474
- radius: number;
4475
- };
4476
- type Scale = typeof scale;
4477
- export { scale, Scale };
4478
-
4479
- }
4480
- declare module '@hero-design/rn/theme/global/space' {
4481
- interface Space {
4482
- large: number;
4483
- medium: number;
4484
- small: number;
4485
- smallMedium: number;
4486
- xlarge: number;
4487
- xsmall: number;
4488
- xxlarge: number;
4489
- xxsmall: number;
4490
- xxxlarge: number;
4491
- xxxxlarge: number;
4492
- }
4493
- const getSpace: (baseSpace: number) => Space;
4494
- export { Space, getSpace };
4495
-
4496
- }
4497
- declare module '@hero-design/rn/theme/global/typography' {
4498
- interface Fonts {
4499
- light: string;
4500
- regular: string;
4501
- semiBold: string;
4502
- }
4503
- interface FontSizes {
4504
- xxxxxlarge: number;
4505
- xxxxlarge: number;
4506
- xxxlarge: number;
4507
- xxlarge: number;
4508
- xlarge: number;
4509
- large: number;
4510
- medium: number;
4511
- small: number;
4512
- xsmall: number;
4513
- }
4514
- type LineHeights = FontSizes;
4515
- const getFonts: (baseFont: string) => Fonts;
4516
- const getFontSizes: (baseFontSize: number) => FontSizes;
4517
- const getLineHeights: (fontSizes: FontSizes) => LineHeights;
4518
- export { Fonts, FontSizes, LineHeights, getFonts, getFontSizes, getLineHeights, };
4519
-
4520
- }
4521
- declare module '@hero-design/rn/theme/index' {
4522
- import { GlobalTheme, Scale, SystemPalette } from '@hero-design/rn/theme/global/index';
4523
- import getAlertTheme from '@hero-design/rn/theme/components/alert';
4524
- import getAvatarTheme from '@hero-design/rn/theme/components/avatar';
4525
- import getBadgeTheme from '@hero-design/rn/theme/components/badge';
4526
- import getBottomNavigationTheme from '@hero-design/rn/theme/components/bottomNavigation';
4527
- import getBottomSheetTheme from '@hero-design/rn/theme/components/bottomSheet';
4528
- import getButtonTheme from '@hero-design/rn/theme/components/button';
4529
- import getCardTheme from '@hero-design/rn/theme/components/card';
4530
- import getCheckboxTheme from '@hero-design/rn/theme/components/checkbox';
4531
- import getContentNavigatorTheme from '@hero-design/rn/theme/components/contentNavigator';
4532
- import getDatePickerTheme from '@hero-design/rn/theme/components/datePicker';
4533
- import getDividerTheme from '@hero-design/rn/theme/components/divider';
4534
- import getDrawerTheme from '@hero-design/rn/theme/components/drawer';
4535
- import getFABTheme from '@hero-design/rn/theme/components/fab';
4536
- import getIconTheme from '@hero-design/rn/theme/components/icon';
4537
- import getListTheme from '@hero-design/rn/theme/components/list';
4538
- import getPinInputTheme from '@hero-design/rn/theme/components/pinInput';
4539
- import getProgressTheme from '@hero-design/rn/theme/components/progress';
4540
- import getRadioTheme from '@hero-design/rn/theme/components/radio';
4541
- import getSectionHeadingTheme from '@hero-design/rn/theme/components/sectionHeading';
4542
- import getSelectTheme from '@hero-design/rn/theme/components/select';
4543
- import getSpinnerTheme from '@hero-design/rn/theme/components/spinner';
4544
- import getSwitchTheme from '@hero-design/rn/theme/components/switch';
4545
- import getTabsTheme from '@hero-design/rn/theme/components/tabs';
4546
- import getTagTheme from '@hero-design/rn/theme/components/tag';
4547
- import getTextInputTheme from '@hero-design/rn/theme/components/textInput';
4548
- import getTimePickerTheme from '@hero-design/rn/theme/components/timePicker';
4549
- import getToastTheme from '@hero-design/rn/theme/components/toast';
4550
- import getToolbarTheme from '@hero-design/rn/theme/components/toolbar';
4551
- import getTypographyTheme from '@hero-design/rn/theme/components/typography';
4552
- type Theme = GlobalTheme & {
4553
- __hd__: {
4554
- alert: ReturnType<typeof getAlertTheme>;
4555
- avatar: ReturnType<typeof getAvatarTheme>;
4556
- badge: ReturnType<typeof getBadgeTheme>;
4557
- bottomNavigation: ReturnType<typeof getBottomNavigationTheme>;
4558
- bottomSheet: ReturnType<typeof getBottomSheetTheme>;
4559
- button: ReturnType<typeof getButtonTheme>;
4560
- card: ReturnType<typeof getCardTheme>;
4561
- checkbox: ReturnType<typeof getCheckboxTheme>;
4562
- contentNavigator: ReturnType<typeof getContentNavigatorTheme>;
4563
- datePicker: ReturnType<typeof getDatePickerTheme>;
4564
- divider: ReturnType<typeof getDividerTheme>;
4565
- drawer: ReturnType<typeof getDrawerTheme>;
4566
- fab: ReturnType<typeof getFABTheme>;
4567
- icon: ReturnType<typeof getIconTheme>;
4568
- list: ReturnType<typeof getListTheme>;
4569
- pinInput: ReturnType<typeof getPinInputTheme>;
4570
- progress: ReturnType<typeof getProgressTheme>;
4571
- radio: ReturnType<typeof getRadioTheme>;
4572
- sectionHeading: ReturnType<typeof getSectionHeadingTheme>;
4573
- select: ReturnType<typeof getSelectTheme>;
4574
- spinner: ReturnType<typeof getSpinnerTheme>;
4575
- switch: ReturnType<typeof getSwitchTheme>;
4576
- tabs: ReturnType<typeof getTabsTheme>;
4577
- tag: ReturnType<typeof getTagTheme>;
4578
- textInput: ReturnType<typeof getTextInputTheme>;
4579
- timePicker: ReturnType<typeof getTimePickerTheme>;
4580
- toast: ReturnType<typeof getToastTheme>;
4581
- toolbar: ReturnType<typeof getToolbarTheme>;
4582
- typography: ReturnType<typeof getTypographyTheme>;
4583
- };
4584
- };
4585
- const getTheme: (scale?: Scale, systemPallete?: SystemPalette) => Theme;
4586
- const theme: Theme;
4587
- export interface ThemeProviderProps {
4588
- theme: Partial<Theme> | ((outerTheme: Theme) => Theme);
4589
- children: React.ReactNode;
4590
- }
4591
- interface ThemeProviderType {
4592
- (props: ThemeProviderProps): React.ReactElement;
4593
- }
4594
- const ThemeProvider: ThemeProviderType;
4595
- const useTheme: () => Theme;
4596
- export { Theme, getTheme, ThemeProvider, useTheme };
4597
- export default theme;
4598
-
4599
- }
4600
- declare module '@hero-design/rn/types' {
4601
- import { BottomNavigationTabType } from '@hero-design/rn/components/BottomNavigation/index';
4602
- import { IconName } from '@hero-design/rn/components/Icon/index';
4603
- import { TabType } from '@hero-design/rn/components/Tabs/index';
4604
- import { TextInputProps } from '@hero-design/rn/components/TextInput/index';
4605
- import { Theme } from '@hero-design/rn/theme/index';
4606
- export { BottomNavigationTabType, IconName, TabType, Theme, TextInputProps };
4607
-
4608
- }
4609
- declare module '@hero-design/rn/utils/__tests__/scale.spec' {
4610
- export {};
4611
-
4612
- }
4613
- declare module '@hero-design/rn/utils/helpers' {
4614
- export const isIOS: boolean;
4615
- export const isAndroid: boolean;
4616
-
4617
- }
4618
- declare module '@hero-design/rn/utils/hooks' {
4619
- export const usePrevious: <T>(value: T) => T | undefined;
4620
-
4621
- }
4622
- declare module '@hero-design/rn/utils/scale' {
4623
- export const BASE_WIDTH = 390;
4624
- export const horizontalScale: (size: number) => number;
4625
- export const scale: (size: number, factor?: number) => number;
4626
-
4627
- }
4628
- declare module '@hero-design/rn' {
4629
- import main = require('@hero-design/rn/index');
4630
- export = main;
4631
- }