@hero-design/rn 7.9.0 → 7.10.2-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +2 -2
- package/assets/fonts/hero-icons.ttf +0 -0
- package/es/index.js +733 -252
- package/lib/assets/fonts/hero-icons.ttf +0 -0
- package/lib/index.js +732 -251
- package/package.json +2 -2
- package/src/components/Button/Button.tsx +10 -2
- package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +7 -1
- package/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.tsx +3 -0
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +60 -0
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +363 -0
- package/src/components/Button/LoadingIndicator/__tests__/index.spec.tsx +3 -0
- package/src/components/Button/LoadingIndicator/index.tsx +4 -1
- package/src/components/Button/StyledButton.tsx +57 -1
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +167 -0
- package/src/components/Button/UtilityButton/__tests__/index.spec.tsx +55 -0
- package/src/components/Button/UtilityButton/index.tsx +53 -0
- package/src/components/Button/UtilityButton/styled.tsx +25 -0
- package/src/components/Button/__tests__/Button.spec.tsx +3 -0
- package/src/components/Button/__tests__/StyledButton.spec.tsx +18 -0
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +468 -0
- package/src/components/Button/index.tsx +3 -0
- package/src/components/Icon/HeroIcon/selection.json +1 -1
- package/src/components/Icon/IconList.ts +2 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +248 -94
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +248 -94
- package/src/components/TextInput/StyledTextInput.tsx +133 -11
- package/src/components/TextInput/__tests__/.log/ti-10343.log +62 -0
- package/src/components/TextInput/__tests__/.log/tsserver.log +6983 -0
- package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +143 -7
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +922 -15
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +2561 -0
- package/src/components/TextInput/__tests__/index.spec.tsx +346 -11
- package/src/components/TextInput/index.tsx +235 -28
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +69 -3
- package/src/theme/components/button.ts +6 -0
- package/src/theme/components/textInput.ts +62 -3
- package/src/theme/global/colors.ts +1 -0
- package/src/types.ts +8 -1
- package/types/components/Button/Button.d.ts +2 -2
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +1 -1
- package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +1 -1
- package/types/components/Button/UtilityButton/__tests__/index.spec.d.ts +1 -0
- package/types/components/Button/UtilityButton/index.d.ts +23 -0
- package/types/components/Button/UtilityButton/styled.d.ts +17 -0
- package/types/components/Button/index.d.ts +2 -0
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/TextInput/StyledTextInput.d.ts +82 -3
- package/types/components/TextInput/index.d.ts +33 -5
- package/types/theme/components/button.d.ts +6 -0
- package/types/theme/components/textInput.d.ts +61 -2
- package/types/theme/global/colors.d.ts +1 -0
- package/types/theme/global/index.d.ts +1 -0
- package/types/types.d.ts +2 -1
- package/.expo/README.md +0 -15
- package/.expo/packager-info.json +0 -10
- package/.expo/prebuild/cached-packages.json +0 -4
- package/.expo/settings.json +0 -10
- package/.expo/xcodebuild-error.log +0 -2
- package/.expo/xcodebuild.log +0 -11199
|
@@ -145,9 +145,12 @@ Object {
|
|
|
145
145
|
"pressedSecondary": "#d1d9fe",
|
|
146
146
|
"primary": "#7622d7",
|
|
147
147
|
"secondary": "#4568fb",
|
|
148
|
+
"utilityBackground": "#fafbfb",
|
|
148
149
|
},
|
|
149
150
|
"fontSize": Object {
|
|
150
151
|
"default": 18,
|
|
152
|
+
"textVariant": 16,
|
|
153
|
+
"utility": 16,
|
|
151
154
|
},
|
|
152
155
|
"fonts": Object {
|
|
153
156
|
"default": "BeVietnamPro-SemiBold",
|
|
@@ -157,6 +160,7 @@ Object {
|
|
|
157
160
|
},
|
|
158
161
|
"radii": Object {
|
|
159
162
|
"default": 32,
|
|
163
|
+
"utilityRadii": 8,
|
|
160
164
|
},
|
|
161
165
|
"sizes": Object {
|
|
162
166
|
"iconSize": 20,
|
|
@@ -164,6 +168,8 @@ Object {
|
|
|
164
168
|
"space": Object {
|
|
165
169
|
"buttonPadding": 16,
|
|
166
170
|
"iconPadding": 8,
|
|
171
|
+
"utilityIconPadding": 12,
|
|
172
|
+
"utilityPadding": 8,
|
|
167
173
|
},
|
|
168
174
|
},
|
|
169
175
|
"card": Object {
|
|
@@ -514,24 +520,83 @@ Object {
|
|
|
514
520
|
},
|
|
515
521
|
"textInput": Object {
|
|
516
522
|
"borderWidths": Object {
|
|
517
|
-
"container":
|
|
523
|
+
"container": Object {
|
|
524
|
+
"focused": 2,
|
|
525
|
+
"normal": 1,
|
|
526
|
+
},
|
|
518
527
|
},
|
|
519
528
|
"colors": Object {
|
|
520
|
-
"
|
|
529
|
+
"asterisks": Object {
|
|
530
|
+
"default": "#de350b",
|
|
531
|
+
"disabled": "#ccced1",
|
|
532
|
+
"error": "#de350b",
|
|
533
|
+
"filled": "#de350b",
|
|
534
|
+
"focused": "#de350b",
|
|
535
|
+
"readonly": "#8b8d92",
|
|
536
|
+
},
|
|
537
|
+
"borders": Object {
|
|
538
|
+
"default": "#292a2b",
|
|
539
|
+
"disabled": "#ccced1",
|
|
540
|
+
"error": "#de350b",
|
|
541
|
+
"filled": "#292a2b",
|
|
542
|
+
"focused": "#292a2b",
|
|
543
|
+
"readonly": "#8b8d92",
|
|
544
|
+
},
|
|
545
|
+
"disabledLabel": "#ccced1",
|
|
546
|
+
"error": "#de350b",
|
|
547
|
+
"label": "#292a2b",
|
|
521
548
|
"labelBackground": "#ffffff",
|
|
549
|
+
"labels": Object {
|
|
550
|
+
"default": "#292a2b",
|
|
551
|
+
"disabled": "#ccced1",
|
|
552
|
+
"error": "#292a2b",
|
|
553
|
+
"filled": "#292a2b",
|
|
554
|
+
"focused": "#292a2b",
|
|
555
|
+
"readonly": "#8b8d92",
|
|
556
|
+
},
|
|
557
|
+
"labelsInsideTextInput": Object {
|
|
558
|
+
"default": "#292a2b",
|
|
559
|
+
"disabled": "#ccced1",
|
|
560
|
+
"error": "#292a2b",
|
|
561
|
+
"filled": "#292a2b",
|
|
562
|
+
"focused": "#292a2b",
|
|
563
|
+
"readonly": "#8b8d92",
|
|
564
|
+
},
|
|
565
|
+
"maxLengthLabels": Object {
|
|
566
|
+
"default": "#292a2b",
|
|
567
|
+
"disabled": "#ccced1",
|
|
568
|
+
"error": "#de350b",
|
|
569
|
+
"filled": "#292a2b",
|
|
570
|
+
"focused": "#292a2b",
|
|
571
|
+
"readonly": "#8b8d92",
|
|
572
|
+
},
|
|
573
|
+
"placeholderIfFocued": "#8b8d92",
|
|
574
|
+
"placeholderIfNotFocused": "#292a2b",
|
|
575
|
+
"readonlyLabel": "#8b8d92",
|
|
576
|
+
"text": "#292a2b",
|
|
522
577
|
},
|
|
523
578
|
"fontSizes": Object {
|
|
524
|
-
"
|
|
579
|
+
"asteriskLabel": 14,
|
|
580
|
+
"error": 12,
|
|
581
|
+
"labelInsideTextInput": 14,
|
|
582
|
+
"maxLength": 12,
|
|
583
|
+
"text": 14,
|
|
525
584
|
},
|
|
526
585
|
"radii": Object {
|
|
527
586
|
"container": 8,
|
|
528
587
|
},
|
|
529
588
|
"space": Object {
|
|
589
|
+
"containerMarginVertical": 8,
|
|
530
590
|
"containerPadding": 16,
|
|
591
|
+
"errorContainerMarginLeft": 16,
|
|
592
|
+
"errorContainerMarginRight": 4,
|
|
593
|
+
"errorMarginLeft": 4,
|
|
531
594
|
"inputHorizontalMargin": 8,
|
|
532
595
|
"labelHorizontalPadding": 4,
|
|
533
596
|
"labelLeft": 16,
|
|
597
|
+
"labelPaddingBottom": 8,
|
|
534
598
|
"labelTop": -10,
|
|
599
|
+
"maxLengthLabelMarginLeft": 4,
|
|
535
600
|
},
|
|
536
601
|
},
|
|
537
602
|
"toast": Object {
|
|
@@ -635,6 +700,7 @@ Object {
|
|
|
635
700
|
"secondary": "#4568fb",
|
|
636
701
|
"secondaryLight": "#d1d9fe",
|
|
637
702
|
"shadow": "#dadbde",
|
|
703
|
+
"subduedText": "#727478",
|
|
638
704
|
"success": "#01b39c",
|
|
639
705
|
"successBackground": "#f0fef4",
|
|
640
706
|
"successDark": "#017d6d",
|
|
@@ -7,6 +7,8 @@ const getButtonTheme = (theme: GlobalTheme) => {
|
|
|
7
7
|
|
|
8
8
|
const fontSize = {
|
|
9
9
|
default: theme.fontSizes.xlarge,
|
|
10
|
+
utility: theme.fontSizes.large,
|
|
11
|
+
textVariant: theme.fontSizes.large,
|
|
10
12
|
};
|
|
11
13
|
|
|
12
14
|
const lineHeight = {
|
|
@@ -20,6 +22,8 @@ const getButtonTheme = (theme: GlobalTheme) => {
|
|
|
20
22
|
const space = {
|
|
21
23
|
buttonPadding: theme.space.medium,
|
|
22
24
|
iconPadding: theme.space.small,
|
|
25
|
+
utilityPadding: theme.space.small,
|
|
26
|
+
utilityIconPadding: theme.space.smallMedium,
|
|
23
27
|
};
|
|
24
28
|
|
|
25
29
|
const sizes = {
|
|
@@ -28,6 +32,7 @@ const getButtonTheme = (theme: GlobalTheme) => {
|
|
|
28
32
|
|
|
29
33
|
const radii = {
|
|
30
34
|
default: theme.space.xlarge,
|
|
35
|
+
utilityRadii: theme.space.small,
|
|
31
36
|
};
|
|
32
37
|
|
|
33
38
|
const colors = {
|
|
@@ -42,6 +47,7 @@ const getButtonTheme = (theme: GlobalTheme) => {
|
|
|
42
47
|
disabledBorder: theme.colors.disabledLightText,
|
|
43
48
|
disabledBackground: theme.colors.disabledLightText,
|
|
44
49
|
invertedText: theme.colors.invertedText,
|
|
50
|
+
utilityBackground: theme.colors.backgroundLight,
|
|
45
51
|
};
|
|
46
52
|
|
|
47
53
|
return {
|
|
@@ -3,23 +3,82 @@ import { GlobalTheme } from '../global';
|
|
|
3
3
|
const getTextInputTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
5
|
labelBackground: theme.colors.platformBackground,
|
|
6
|
-
|
|
6
|
+
asterisks: {
|
|
7
|
+
default: theme.colors.danger,
|
|
8
|
+
error: theme.colors.danger,
|
|
9
|
+
disabled: theme.colors.disabledLightText,
|
|
10
|
+
readonly: theme.colors.disabledText,
|
|
11
|
+
filled: theme.colors.danger,
|
|
12
|
+
focused: theme.colors.danger,
|
|
13
|
+
},
|
|
14
|
+
error: theme.colors.danger,
|
|
15
|
+
placeholderIfNotFocused: theme.colors.text,
|
|
16
|
+
placeholderIfFocued: theme.colors.disabledText,
|
|
17
|
+
label: theme.colors.text,
|
|
18
|
+
readonlyLabel: theme.colors.disabledText,
|
|
19
|
+
disabledLabel: theme.colors.disabledLightText,
|
|
20
|
+
text: theme.colors.text,
|
|
21
|
+
borders: {
|
|
22
|
+
default: theme.colors.text,
|
|
23
|
+
error: theme.colors.danger,
|
|
24
|
+
disabled: theme.colors.disabledLightText,
|
|
25
|
+
readonly: theme.colors.disabledText,
|
|
26
|
+
filled: theme.colors.text,
|
|
27
|
+
focused: theme.colors.text,
|
|
28
|
+
},
|
|
29
|
+
labels: {
|
|
30
|
+
default: theme.colors.text,
|
|
31
|
+
error: theme.colors.text,
|
|
32
|
+
disabled: theme.colors.disabledLightText,
|
|
33
|
+
readonly: theme.colors.disabledText,
|
|
34
|
+
filled: theme.colors.text,
|
|
35
|
+
focused: theme.colors.text,
|
|
36
|
+
},
|
|
37
|
+
labelsInsideTextInput: {
|
|
38
|
+
default: theme.colors.text,
|
|
39
|
+
error: theme.colors.text,
|
|
40
|
+
disabled: theme.colors.disabledLightText,
|
|
41
|
+
readonly: theme.colors.disabledText,
|
|
42
|
+
filled: theme.colors.text,
|
|
43
|
+
focused: theme.colors.text,
|
|
44
|
+
},
|
|
45
|
+
maxLengthLabels: {
|
|
46
|
+
default: theme.colors.text,
|
|
47
|
+
error: theme.colors.danger,
|
|
48
|
+
disabled: theme.colors.disabledLightText,
|
|
49
|
+
readonly: theme.colors.disabledText,
|
|
50
|
+
filled: theme.colors.text,
|
|
51
|
+
focused: theme.colors.text,
|
|
52
|
+
},
|
|
7
53
|
};
|
|
8
54
|
|
|
9
55
|
const space = {
|
|
10
56
|
containerPadding: theme.space.medium,
|
|
11
57
|
labelLeft: theme.space.medium,
|
|
12
58
|
labelTop: theme.lineHeights.small / -2,
|
|
59
|
+
labelPaddingBottom: theme.space.small,
|
|
13
60
|
labelHorizontalPadding: theme.space.xsmall,
|
|
14
61
|
inputHorizontalMargin: theme.space.small,
|
|
62
|
+
containerMarginVertical: theme.space.small,
|
|
63
|
+
errorContainerMarginLeft: theme.space.medium,
|
|
64
|
+
errorContainerMarginRight: theme.space.xsmall,
|
|
65
|
+
errorMarginLeft: theme.space.xsmall,
|
|
66
|
+
maxLengthLabelMarginLeft: theme.space.xsmall,
|
|
15
67
|
};
|
|
16
68
|
|
|
17
69
|
const fontSizes = {
|
|
18
|
-
text: theme.fontSizes.
|
|
70
|
+
text: theme.fontSizes.medium,
|
|
71
|
+
labelInsideTextInput: theme.fontSizes.medium,
|
|
72
|
+
error: theme.fontSizes.small,
|
|
73
|
+
maxLength: theme.fontSizes.small,
|
|
74
|
+
asteriskLabel: theme.fontSizes.medium,
|
|
19
75
|
};
|
|
20
76
|
|
|
21
77
|
const borderWidths = {
|
|
22
|
-
container:
|
|
78
|
+
container: {
|
|
79
|
+
normal: theme.borderWidths.base,
|
|
80
|
+
focused: theme.borderWidths.medium,
|
|
81
|
+
},
|
|
23
82
|
};
|
|
24
83
|
|
|
25
84
|
const radii = {
|
|
@@ -29,6 +29,7 @@ const systemPalette = {
|
|
|
29
29
|
backgroundLight: palette.greyLight95,
|
|
30
30
|
backgroundDark: palette.greyDark75,
|
|
31
31
|
text: palette.greyDark75,
|
|
32
|
+
subduedText: palette.greyDark30,
|
|
32
33
|
disabledText: palette.greyDark15,
|
|
33
34
|
disabledLightText: palette.greyLight45,
|
|
34
35
|
invertedText: palette.white,
|
package/src/types.ts
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { BottomNavigationTabType } from './components/BottomNavigation';
|
|
2
2
|
import { IconName } from './components/Icon';
|
|
3
3
|
import { TabType } from './components/Tabs';
|
|
4
|
+
import { TextInputProps } from './components/TextInput';
|
|
4
5
|
|
|
5
6
|
import { Theme } from './theme';
|
|
6
7
|
|
|
7
|
-
export type {
|
|
8
|
+
export type {
|
|
9
|
+
BottomNavigationTabType,
|
|
10
|
+
IconName,
|
|
11
|
+
TabType,
|
|
12
|
+
Theme,
|
|
13
|
+
TextInputProps,
|
|
14
|
+
};
|
|
@@ -50,8 +50,8 @@ export interface ButtonProps {
|
|
|
50
50
|
/**
|
|
51
51
|
* Button type.
|
|
52
52
|
*/
|
|
53
|
-
variant?: 'basic-transparent' | 'filled' | 'outlined';
|
|
53
|
+
variant?: 'basic-transparent' | 'filled' | 'outlined' | 'text';
|
|
54
54
|
}
|
|
55
|
-
export declare const getThemeVariant: (variant: 'basic-transparent' | 'filled' | 'outlined', intent: Intent) => ThemeVariant;
|
|
55
|
+
export declare const getThemeVariant: (variant: 'basic-transparent' | 'filled' | 'outlined' | 'text', intent: Intent) => ThemeVariant;
|
|
56
56
|
declare const Button: ({ accessibilityHint, accessibilityLabel, disabled, icon, intent, loading, onPress, rightIcon, style, testID, text, variant, }: ButtonProps) => JSX.Element;
|
|
57
57
|
export default Button;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { View, ViewProps } from 'react-native';
|
|
2
2
|
import { Theme } from '@emotion/react';
|
|
3
|
-
declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger';
|
|
3
|
+
declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
|
|
4
4
|
declare const StyledLoadingIndicatorWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
5
5
|
theme?: Theme | undefined;
|
|
6
6
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
2
|
-
declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger';
|
|
2
|
+
declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
|
|
3
3
|
interface LoadingIndicatorProps extends ViewProps {
|
|
4
4
|
/**
|
|
5
5
|
* Size of the loading dot.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
import { Theme } from '@emotion/react';
|
|
3
3
|
declare type Intent = 'primary' | 'secondary' | 'danger';
|
|
4
|
-
declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger';
|
|
4
|
+
declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
|
|
5
5
|
declare const StyledButtonContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
6
6
|
theme?: Theme | undefined;
|
|
7
7
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ReactChild } from 'react';
|
|
2
|
+
import { ViewProps } from 'react-native';
|
|
3
|
+
import { IconName } from '../../Icon';
|
|
4
|
+
export interface UtilityButtonProps extends ViewProps {
|
|
5
|
+
/**
|
|
6
|
+
* Places an icon within the button, before the button's text
|
|
7
|
+
*/
|
|
8
|
+
icon: IconName;
|
|
9
|
+
/**
|
|
10
|
+
* Set the handler to handle press event.
|
|
11
|
+
*/
|
|
12
|
+
onPress: () => void;
|
|
13
|
+
/**
|
|
14
|
+
* Button label.
|
|
15
|
+
*/
|
|
16
|
+
text: ReactChild;
|
|
17
|
+
/**
|
|
18
|
+
* Visual intent color to apply to button.
|
|
19
|
+
*/
|
|
20
|
+
intent?: 'primary' | 'text';
|
|
21
|
+
}
|
|
22
|
+
declare const UtilityButton: ({ icon, onPress, text, testID, intent, style, hitSlop, }: UtilityButtonProps) => JSX.Element;
|
|
23
|
+
export default UtilityButton;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { View, TouchableOpacity } from 'react-native';
|
|
2
|
+
export declare const ButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, {}, {
|
|
6
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const IconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
as?: import("react").ElementType<any> | undefined;
|
|
11
|
+
}, {}, {
|
|
12
|
+
ref?: import("react").Ref<View> | undefined;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const ButtonText: import("@emotion/native").StyledComponent<import("../../Typography/Text").TextProps & {
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: import("react").ElementType<any> | undefined;
|
|
17
|
+
}, {}, {}>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import { ButtonProps } from './Button';
|
|
3
3
|
import IconButton from './IconButton';
|
|
4
|
+
import UtilityButton from './UtilityButton';
|
|
4
5
|
interface CompoundButtonProps extends FunctionComponent<ButtonProps> {
|
|
5
6
|
Icon: typeof IconButton;
|
|
7
|
+
Utility: typeof UtilityButton;
|
|
6
8
|
}
|
|
7
9
|
declare const CompoundButton: CompoundButtonProps;
|
|
8
10
|
export default CompoundButton;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare 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", "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", "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"];
|
|
1
|
+
declare 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", "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"];
|
|
2
2
|
export default IconList;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare 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" | "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" | "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";
|
|
1
|
+
declare 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" | "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";
|
|
2
2
|
export { isHeroIcon };
|
|
@@ -1,11 +1,64 @@
|
|
|
1
1
|
import { TextInput, View } from 'react-native';
|
|
2
|
-
declare
|
|
2
|
+
export declare type Variant = 'default' | 'filled' | 'focused' | 'disabled' | 'readonly' | 'error';
|
|
3
|
+
declare const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
3
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
5
|
as?: import("react").ElementType<any> | undefined;
|
|
5
6
|
}, {}, {
|
|
6
7
|
ref?: import("react").Ref<View> | undefined;
|
|
7
8
|
}>;
|
|
8
|
-
declare const
|
|
9
|
+
declare const StyledLabelContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any> | undefined;
|
|
12
|
+
}, {}, {
|
|
13
|
+
ref?: import("react").Ref<View> | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
declare const StyledLabel: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: import("react").ElementType<any> | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
themeVariant: Variant;
|
|
20
|
+
}, {}, {}>;
|
|
21
|
+
declare const StyledAsteriskLabel: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
|
|
22
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
23
|
+
as?: import("react").ElementType<any> | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
themeVariant: Variant;
|
|
26
|
+
}, {}, {}>;
|
|
27
|
+
declare const StyledLabelContainerInsideTextInput: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
28
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
+
as?: import("react").ElementType<any> | undefined;
|
|
30
|
+
}, {}, {
|
|
31
|
+
ref?: import("react").Ref<View> | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
declare const StyledLabelInsideTextInput: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
|
|
34
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
35
|
+
as?: import("react").ElementType<any> | undefined;
|
|
36
|
+
} & {
|
|
37
|
+
themeVariant: Variant;
|
|
38
|
+
}, {}, {}>;
|
|
39
|
+
declare const StyledAsteriskLabelInsideTextInput: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
|
|
40
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
41
|
+
as?: import("react").ElementType<any> | undefined;
|
|
42
|
+
} & {
|
|
43
|
+
themeVariant: Variant;
|
|
44
|
+
}, {}, {}>;
|
|
45
|
+
declare const StyledErrorContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
46
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
47
|
+
as?: import("react").ElementType<any> | undefined;
|
|
48
|
+
}, {}, {
|
|
49
|
+
ref?: import("react").Ref<View> | undefined;
|
|
50
|
+
}>;
|
|
51
|
+
declare const StyledError: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
|
|
52
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
53
|
+
as?: import("react").ElementType<any> | undefined;
|
|
54
|
+
}, {}, {}>;
|
|
55
|
+
declare const StyledMaxLengthMessage: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
|
|
56
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
57
|
+
as?: import("react").ElementType<any> | undefined;
|
|
58
|
+
} & {
|
|
59
|
+
themeVariant: Variant;
|
|
60
|
+
}, {}, {}>;
|
|
61
|
+
declare const StyledHelperText: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
|
|
9
62
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
63
|
as?: import("react").ElementType<any> | undefined;
|
|
11
64
|
}, {}, {}>;
|
|
@@ -15,4 +68,30 @@ declare const StyledTextInput: import("@emotion/native").StyledComponent<import(
|
|
|
15
68
|
}, {}, {
|
|
16
69
|
ref?: import("react").Ref<TextInput> | undefined;
|
|
17
70
|
}>;
|
|
18
|
-
|
|
71
|
+
declare const StyledBorderBackDrop: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
72
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
73
|
+
as?: import("react").ElementType<any> | undefined;
|
|
74
|
+
} & {
|
|
75
|
+
themeVariant: Variant;
|
|
76
|
+
}, {}, {
|
|
77
|
+
ref?: import("react").Ref<View> | undefined;
|
|
78
|
+
}>;
|
|
79
|
+
declare const StyledTextInputContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
80
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
81
|
+
as?: import("react").ElementType<any> | undefined;
|
|
82
|
+
}, {}, {
|
|
83
|
+
ref?: import("react").Ref<View> | undefined;
|
|
84
|
+
}>;
|
|
85
|
+
declare const StyledTextInputAndLabelContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
86
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
87
|
+
as?: import("react").ElementType<any> | undefined;
|
|
88
|
+
}, {}, {
|
|
89
|
+
ref?: import("react").Ref<View> | undefined;
|
|
90
|
+
}>;
|
|
91
|
+
declare const StyledErrorAndHelpTextContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
92
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
93
|
+
as?: import("react").ElementType<any> | undefined;
|
|
94
|
+
}, {}, {
|
|
95
|
+
ref?: import("react").Ref<View> | undefined;
|
|
96
|
+
}>;
|
|
97
|
+
export { StyledTextInputContainer, StyledLabel, StyledLabelContainer, StyledAsteriskLabel, StyledAsteriskLabelInsideTextInput, StyledTextInput, StyledError, StyledMaxLengthMessage, StyledLabelInsideTextInput, StyledContainer, StyledErrorContainer, StyledHelperText, StyledTextInputAndLabelContainer, StyledLabelContainerInsideTextInput, StyledErrorAndHelpTextContainer, StyledBorderBackDrop, };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { TextInputProps as NativeTextInputProps, StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
3
|
+
import { Variant } from './StyledTextInput';
|
|
2
4
|
import { IconName } from '../Icon';
|
|
3
5
|
export interface TextInputProps extends NativeTextInputProps {
|
|
4
6
|
/**
|
|
@@ -6,13 +8,13 @@ export interface TextInputProps extends NativeTextInputProps {
|
|
|
6
8
|
*/
|
|
7
9
|
label?: string;
|
|
8
10
|
/**
|
|
9
|
-
* Name of Icon to render on the left side of the input, before the user's cursor.
|
|
11
|
+
* Name of Icon or ReactElement to render on the left side of the input, before the user's cursor.
|
|
10
12
|
*/
|
|
11
|
-
prefix?: IconName;
|
|
13
|
+
prefix?: IconName | React.ReactElement;
|
|
12
14
|
/**
|
|
13
|
-
* Name of Icon to render on the right side of the input.
|
|
15
|
+
* Name of Icon or ReactElement to render on the right side of the input.
|
|
14
16
|
*/
|
|
15
|
-
suffix?: IconName;
|
|
17
|
+
suffix?: IconName | React.ReactElement;
|
|
16
18
|
/**
|
|
17
19
|
* Additional wrapper style.
|
|
18
20
|
*/
|
|
@@ -29,6 +31,32 @@ export interface TextInputProps extends NativeTextInputProps {
|
|
|
29
31
|
* Accessibility label for the input (Android).
|
|
30
32
|
*/
|
|
31
33
|
accessibilityLabelledBy?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Error message to display.
|
|
36
|
+
*/
|
|
37
|
+
error?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the input is required, if true, an asterisk will be appended to the label.
|
|
40
|
+
* */
|
|
41
|
+
required?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Placeholder text to display.
|
|
44
|
+
* */
|
|
45
|
+
placeholder?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Whether the input is editable.
|
|
48
|
+
* */
|
|
49
|
+
editable?: boolean;
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
maxLength?: number;
|
|
52
|
+
helpText?: string;
|
|
32
53
|
}
|
|
33
|
-
declare const
|
|
54
|
+
export declare const getVariant: ({ disabled, error, editable, isFocused, isEmptyValue, }: {
|
|
55
|
+
disabled?: boolean | undefined;
|
|
56
|
+
error?: string | undefined;
|
|
57
|
+
editable?: boolean | undefined;
|
|
58
|
+
isFocused?: boolean | undefined;
|
|
59
|
+
isEmptyValue?: boolean | undefined;
|
|
60
|
+
}) => Variant;
|
|
61
|
+
declare const TextInput: ({ label, prefix, suffix, style, textStyle, testID, accessibilityLabelledBy, error, required, editable, disabled, maxLength, helpText, value, defaultValue, ...nativeProps }: TextInputProps) => JSX.Element;
|
|
34
62
|
export default TextInput;
|
|
@@ -8,12 +8,15 @@ declare const getButtonTheme: (theme: GlobalTheme) => {
|
|
|
8
8
|
};
|
|
9
9
|
fontSize: {
|
|
10
10
|
default: number;
|
|
11
|
+
utility: number;
|
|
12
|
+
textVariant: number;
|
|
11
13
|
};
|
|
12
14
|
sizes: {
|
|
13
15
|
iconSize: number;
|
|
14
16
|
};
|
|
15
17
|
radii: {
|
|
16
18
|
default: number;
|
|
19
|
+
utilityRadii: number;
|
|
17
20
|
};
|
|
18
21
|
colors: {
|
|
19
22
|
primary: string;
|
|
@@ -27,6 +30,7 @@ declare const getButtonTheme: (theme: GlobalTheme) => {
|
|
|
27
30
|
disabledBorder: string;
|
|
28
31
|
disabledBackground: string;
|
|
29
32
|
invertedText: string;
|
|
33
|
+
utilityBackground: string;
|
|
30
34
|
};
|
|
31
35
|
lineHeight: {
|
|
32
36
|
default: number;
|
|
@@ -34,6 +38,8 @@ declare const getButtonTheme: (theme: GlobalTheme) => {
|
|
|
34
38
|
space: {
|
|
35
39
|
buttonPadding: number;
|
|
36
40
|
iconPadding: number;
|
|
41
|
+
utilityPadding: number;
|
|
42
|
+
utilityIconPadding: number;
|
|
37
43
|
};
|
|
38
44
|
};
|
|
39
45
|
export default getButtonTheme;
|