@tecsinapse/react-native-kit 1.18.6 → 1.21.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/CHANGELOG.md +39 -0
- package/dist/components/atoms/Avatar/Avatar.js +4 -2
- package/dist/components/atoms/Avatar/Avatar.js.map +1 -1
- package/dist/components/atoms/Avatar/index.js +9 -4
- package/dist/components/atoms/Avatar/index.js.map +1 -1
- package/dist/components/atoms/Badge/Badge.js +11 -8
- package/dist/components/atoms/Badge/Badge.js.map +1 -1
- package/dist/components/atoms/Badge/index.js +15 -5
- package/dist/components/atoms/Badge/index.js.map +1 -1
- package/dist/components/atoms/BottomNavigator/BottomNavigator.js +13 -10
- package/dist/components/atoms/BottomNavigator/BottomNavigator.js.map +1 -1
- package/dist/components/atoms/BottomNavigator/Item.js +11 -8
- package/dist/components/atoms/BottomNavigator/Item.js.map +1 -1
- package/dist/components/atoms/BottomNavigator/index.js +21 -7
- package/dist/components/atoms/BottomNavigator/index.js.map +1 -1
- package/dist/components/atoms/BottomNavigator/styled.js +64 -45
- package/dist/components/atoms/BottomNavigator/styled.js.map +1 -1
- package/dist/components/atoms/Button/Button.d.ts +2 -2
- package/dist/components/atoms/Button/Button.js +11 -8
- package/dist/components/atoms/Button/Button.js.map +1 -1
- package/dist/components/atoms/Button/States/Error.js +4 -2
- package/dist/components/atoms/Button/States/Error.js.map +1 -1
- package/dist/components/atoms/Button/States/Loading.js +4 -2
- package/dist/components/atoms/Button/States/Loading.js.map +1 -1
- package/dist/components/atoms/Button/States/Success.js +4 -2
- package/dist/components/atoms/Button/States/Success.js.map +1 -1
- package/dist/components/atoms/Button/States/index.js +21 -8
- package/dist/components/atoms/Button/States/index.js.map +1 -1
- package/dist/components/atoms/Button/index.js +33 -9
- package/dist/components/atoms/Button/index.js.map +1 -1
- package/dist/components/atoms/GroupButton/GroupButtonOption.js +4 -2
- package/dist/components/atoms/GroupButton/GroupButtonOption.js.map +1 -1
- package/dist/components/atoms/GroupButton/index.js +9 -4
- package/dist/components/atoms/GroupButton/index.js.map +1 -1
- package/dist/components/atoms/Header/Header.js +19 -16
- package/dist/components/atoms/Header/Header.js.map +1 -1
- package/dist/components/atoms/Header/index.js +15 -5
- package/dist/components/atoms/Header/index.js.map +1 -1
- package/dist/components/atoms/Header/styled.js +17 -17
- package/dist/components/atoms/Header/styled.js.map +1 -1
- package/dist/components/atoms/Input/Input.d.ts +3 -2
- package/dist/components/atoms/Input/Input.js +31 -28
- package/dist/components/atoms/Input/Input.js.map +1 -1
- package/dist/components/atoms/Input/index.js +15 -5
- package/dist/components/atoms/Input/index.js.map +1 -1
- package/dist/components/atoms/Input/styled.js +13 -8
- package/dist/components/atoms/Input/styled.js.map +1 -1
- package/dist/components/atoms/InputMask/InputMask.js +32 -28
- package/dist/components/atoms/InputMask/InputMask.js.map +1 -1
- package/dist/components/atoms/InputMask/index.js +15 -5
- package/dist/components/atoms/InputMask/index.js.map +1 -1
- package/dist/components/atoms/InputMask/styled.js +14 -11
- package/dist/components/atoms/InputMask/styled.js.map +1 -1
- package/dist/components/atoms/Modal/ModalGroupManager.js +10 -7
- package/dist/components/atoms/Modal/ModalGroupManager.js.map +1 -1
- package/dist/components/atoms/Modal/ModalLifecycleHandler.d.ts +2 -2
- package/dist/components/atoms/Modal/ModalLifecycleHandler.js +31 -25
- package/dist/components/atoms/Modal/ModalLifecycleHandler.js.map +1 -1
- package/dist/components/atoms/Modal/index.js +45 -8
- package/dist/components/atoms/Modal/index.js.map +1 -1
- package/dist/components/atoms/Modal/ui/BaseModalView.d.ts +2 -2
- package/dist/components/atoms/Modal/ui/BaseModalView.js +19 -16
- package/dist/components/atoms/Modal/ui/BaseModalView.js.map +1 -1
- package/dist/components/atoms/Modal/ui/styled.js +19 -21
- package/dist/components/atoms/Modal/ui/styled.js.map +1 -1
- package/dist/components/atoms/Modal/ui/types.d.ts +1 -1
- package/dist/components/atoms/Modal/ui/types.js +3 -1
- package/dist/components/atoms/Modal/ui/types.js.map +1 -1
- package/dist/components/atoms/Modal/useLazyModalManager.d.ts +2 -2
- package/dist/components/atoms/Modal/useLazyModalManager.js +4 -2
- package/dist/components/atoms/Modal/useLazyModalManager.js.map +1 -1
- package/dist/components/atoms/Modal/useModalManager.d.ts +2 -2
- package/dist/components/atoms/Modal/useModalManager.js +4 -2
- package/dist/components/atoms/Modal/useModalManager.js.map +1 -1
- package/dist/components/atoms/Modal/useModalRemoteControl.js +3 -1
- package/dist/components/atoms/Modal/useModalRemoteControl.js.map +1 -1
- package/dist/components/atoms/Skeleton/Pulse.js +16 -11
- package/dist/components/atoms/Skeleton/Pulse.js.map +1 -1
- package/dist/components/atoms/Skeleton/Skeleton.js +14 -11
- package/dist/components/atoms/Skeleton/Skeleton.js.map +1 -1
- package/dist/components/atoms/Skeleton/Wave.js +17 -12
- package/dist/components/atoms/Skeleton/Wave.js.map +1 -1
- package/dist/components/atoms/Skeleton/animation.js +4 -2
- package/dist/components/atoms/Skeleton/animation.js.map +1 -1
- package/dist/components/atoms/Skeleton/index.js +15 -5
- package/dist/components/atoms/Skeleton/index.js.map +1 -1
- package/dist/components/atoms/Skeleton/styled.js +25 -15
- package/dist/components/atoms/Skeleton/styled.js.map +1 -1
- package/dist/components/atoms/Skeleton/types.js +3 -1
- package/dist/components/atoms/Skeleton/types.js.map +1 -1
- package/dist/components/atoms/SnappingSlider/SnappingSlider.js +12 -9
- package/dist/components/atoms/SnappingSlider/SnappingSlider.js.map +1 -1
- package/dist/components/atoms/SnappingSlider/index.js +15 -5
- package/dist/components/atoms/SnappingSlider/index.js.map +1 -1
- package/dist/components/atoms/Tag/Tag.js +9 -6
- package/dist/components/atoms/Tag/Tag.js.map +1 -1
- package/dist/components/atoms/Tag/index.js +15 -5
- package/dist/components/atoms/Tag/index.js.map +1 -1
- package/dist/components/atoms/Text/Text.js +8 -5
- package/dist/components/atoms/Text/Text.js.map +1 -1
- package/dist/components/atoms/Text/index.js +15 -5
- package/dist/components/atoms/Text/index.js.map +1 -1
- package/dist/components/atoms/Text/styled.js +17 -13
- package/dist/components/atoms/Text/styled.js.map +1 -1
- package/dist/components/atoms/TextArea/TextArea.js +31 -28
- package/dist/components/atoms/TextArea/TextArea.js.map +1 -1
- package/dist/components/atoms/TextArea/index.js +15 -5
- package/dist/components/atoms/TextArea/index.js.map +1 -1
- package/dist/components/atoms/TextArea/styled.js +3 -1
- package/dist/components/atoms/TextArea/styled.js.map +1 -1
- package/dist/components/molecules/Calendar/Calendar.js +10 -7
- package/dist/components/molecules/Calendar/Calendar.js.map +1 -1
- package/dist/components/molecules/Calendar/index.js +9 -4
- package/dist/components/molecules/Calendar/index.js.map +1 -1
- package/dist/components/molecules/DatePicker/DatePicker.js +17 -13
- package/dist/components/molecules/DatePicker/DatePicker.js.map +1 -1
- package/dist/components/molecules/DatePicker/index.js +15 -5
- package/dist/components/molecules/DatePicker/index.js.map +1 -1
- package/dist/components/molecules/DatePicker/styled.js +13 -6
- package/dist/components/molecules/DatePicker/styled.js.map +1 -1
- package/dist/components/molecules/DateTimePicker/DateTimePicker.js +15 -11
- package/dist/components/molecules/DateTimePicker/DateTimePicker.js.map +1 -1
- package/dist/components/molecules/DateTimePicker/index.js +15 -5
- package/dist/components/molecules/DateTimePicker/index.js.map +1 -1
- package/dist/components/molecules/DateTimeSelector/DateTimeSelector.js +10 -7
- package/dist/components/molecules/DateTimeSelector/DateTimeSelector.js.map +1 -1
- package/dist/components/molecules/DateTimeSelector/index.js +9 -4
- package/dist/components/molecules/DateTimeSelector/index.js.map +1 -1
- package/dist/components/molecules/Grid/Grid.d.ts +5 -0
- package/dist/components/molecules/Grid/Grid.js +63 -0
- package/dist/components/molecules/Grid/Grid.js.map +1 -0
- package/dist/components/molecules/Grid/Item/Item.d.ts +7 -0
- package/dist/components/molecules/Grid/Item/Item.js +81 -0
- package/dist/components/molecules/Grid/Item/Item.js.map +1 -0
- package/dist/components/molecules/Grid/Item/index.d.ts +1 -0
- package/dist/components/molecules/Grid/Item/index.js +24 -0
- package/dist/components/molecules/Grid/Item/index.js.map +1 -0
- package/dist/components/molecules/Grid/index.d.ts +2 -0
- package/dist/components/molecules/Grid/index.js +24 -0
- package/dist/components/molecules/Grid/index.js.map +1 -0
- package/dist/components/molecules/IconTextButton/IconTextButton.d.ts +6 -0
- package/dist/components/molecules/IconTextButton/IconTextButton.js +53 -0
- package/dist/components/molecules/IconTextButton/IconTextButton.js.map +1 -0
- package/dist/components/molecules/IconTextButton/TextComponent.d.ts +12 -0
- package/dist/components/molecules/IconTextButton/TextComponent.js +39 -0
- package/dist/components/molecules/IconTextButton/TextComponent.js.map +1 -0
- package/dist/components/molecules/IconTextButton/index.d.ts +1 -0
- package/dist/components/molecules/IconTextButton/index.js +24 -0
- package/dist/components/molecules/IconTextButton/index.js.map +1 -0
- package/dist/components/molecules/IconTextButton/styled.d.ts +2 -0
- package/dist/components/molecules/IconTextButton/styled.js +48 -0
- package/dist/components/molecules/IconTextButton/styled.js.map +1 -0
- package/dist/components/molecules/InputPassword/InputPassword.d.ts +3 -2
- package/dist/components/molecules/InputPassword/InputPassword.js +9 -6
- package/dist/components/molecules/InputPassword/InputPassword.js.map +1 -1
- package/dist/components/molecules/InputPassword/index.js +15 -5
- package/dist/components/molecules/InputPassword/index.js.map +1 -1
- package/dist/components/molecules/LabeledSwitch/LabelComponent.d.ts +13 -0
- package/dist/components/molecules/LabeledSwitch/LabelComponent.js +41 -0
- package/dist/components/molecules/LabeledSwitch/LabelComponent.js.map +1 -0
- package/dist/components/molecules/LabeledSwitch/LabeledSwitch.d.ts +8 -0
- package/dist/components/molecules/LabeledSwitch/LabeledSwitch.js +56 -0
- package/dist/components/molecules/LabeledSwitch/LabeledSwitch.js.map +1 -0
- package/dist/components/molecules/LabeledSwitch/index.d.ts +1 -0
- package/dist/components/molecules/LabeledSwitch/index.js +24 -0
- package/dist/components/molecules/LabeledSwitch/index.js.map +1 -0
- package/dist/components/molecules/LabeledSwitch/styled.d.ts +9 -0
- package/dist/components/molecules/LabeledSwitch/styled.js +32 -0
- package/dist/components/molecules/LabeledSwitch/styled.js.map +1 -0
- package/dist/components/molecules/Select/Modal.d.ts +1 -1
- package/dist/components/molecules/Select/Modal.js +45 -39
- package/dist/components/molecules/Select/Modal.js.map +1 -1
- package/dist/components/molecules/Select/Select.js +39 -36
- package/dist/components/molecules/Select/Select.js.map +1 -1
- package/dist/components/molecules/Select/index.js +15 -5
- package/dist/components/molecules/Select/index.js.map +1 -1
- package/dist/components/molecules/Select/styled.js +78 -85
- package/dist/components/molecules/Select/styled.js.map +1 -1
- package/dist/components/molecules/Snackbar/Snackbar.js +14 -11
- package/dist/components/molecules/Snackbar/Snackbar.js.map +1 -1
- package/dist/components/molecules/Snackbar/index.js +15 -5
- package/dist/components/molecules/Snackbar/index.js.map +1 -1
- package/dist/components/molecules/Snackbar/styled.js +18 -9
- package/dist/components/molecules/Snackbar/styled.js.map +1 -1
- package/dist/index.d.ts +17 -14
- package/dist/index.js +379 -116
- package/dist/index.js.map +1 -1
- package/dist/utils/date.js +3 -1
- package/dist/utils/date.js.map +1 -1
- package/package.json +5 -5
- package/src/components/atoms/BottomNavigator/BottomNavigator.tsx +3 -6
- package/src/components/atoms/Button/Button.tsx +19 -13
- package/src/components/atoms/Button/index.ts +1 -1
- package/src/components/atoms/Input/Input.tsx +8 -6
- package/src/components/atoms/Input/styled.ts +1 -3
- package/src/components/atoms/Modal/ModalGroupManager.tsx +22 -17
- package/src/components/atoms/Modal/ModalLifecycleHandler.ts +139 -126
- package/src/components/atoms/Modal/index.ts +7 -7
- package/src/components/atoms/Modal/ui/BaseModalView.tsx +150 -127
- package/src/components/atoms/Modal/ui/styled.ts +17 -17
- package/src/components/atoms/Modal/ui/types.ts +9 -8
- package/src/components/atoms/Modal/useLazyModalManager.ts +32 -31
- package/src/components/atoms/Modal/useModalManager.ts +28 -26
- package/src/components/atoms/Modal/useModalRemoteControl.ts +16 -18
- package/src/components/molecules/Calendar/Calendar.tsx +5 -1
- package/src/components/molecules/DatePicker/DatePicker.tsx +26 -17
- package/src/components/molecules/DatePicker/styled.ts +4 -4
- package/src/components/molecules/DateTimePicker/DateTimePicker.tsx +18 -16
- package/src/components/molecules/DateTimeSelector/DateTimeSelector.tsx +4 -1
- package/src/components/molecules/Grid/Grid.tsx +68 -0
- package/src/components/molecules/Grid/Item/Item.tsx +77 -0
- package/src/components/molecules/Grid/Item/index.ts +1 -0
- package/src/components/molecules/Grid/index.ts +2 -0
- package/src/components/molecules/IconTextButton/IconTextButton.tsx +55 -0
- package/src/components/molecules/IconTextButton/TextComponent.tsx +43 -0
- package/src/components/molecules/IconTextButton/index.ts +4 -0
- package/src/components/molecules/IconTextButton/styled.ts +35 -0
- package/src/components/molecules/InputPassword/InputPassword.tsx +3 -2
- package/src/components/molecules/LabeledSwitch/LabelComponent.tsx +46 -0
- package/src/components/molecules/LabeledSwitch/LabeledSwitch.tsx +59 -0
- package/src/components/molecules/LabeledSwitch/index.ts +4 -0
- package/src/components/molecules/LabeledSwitch/styled.ts +27 -0
- package/src/components/molecules/Select/Modal.tsx +88 -66
- package/src/components/molecules/Select/Select.tsx +1 -1
- package/src/index.ts +38 -29
package/dist/index.js
CHANGED
|
@@ -1,55 +1,374 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
exports
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
4
6
|
var _exportNames = {
|
|
7
|
+
Avatar: true,
|
|
8
|
+
Badge: true,
|
|
9
|
+
BadgeNativeProps: true,
|
|
10
|
+
BottomNavigator: true,
|
|
11
|
+
BottomNavigatorProps: true,
|
|
12
|
+
Button: true,
|
|
13
|
+
ButtonNativeProps: true,
|
|
14
|
+
Error: true,
|
|
15
|
+
Loading: true,
|
|
16
|
+
Success: true,
|
|
17
|
+
GroupButtonOption: true,
|
|
5
18
|
Header: true,
|
|
6
19
|
HeaderProps: true,
|
|
7
|
-
Select: true,
|
|
8
|
-
SelectNativeProps: true,
|
|
9
20
|
Input: true,
|
|
10
21
|
InputNativeProps: true,
|
|
11
22
|
InputMask: true,
|
|
12
23
|
InputMaskNativeProps: true,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
GroupButtonOption: true,
|
|
23
|
-
InputPassword: true,
|
|
24
|
-
InputPasswordNativeProps: true,
|
|
25
|
-
BottomNavigator: true,
|
|
26
|
-
BottomNavigatorProps: true,
|
|
27
|
-
Tag: true,
|
|
28
|
-
TagProps: true,
|
|
24
|
+
IBaseModal: true,
|
|
25
|
+
ModalGroupManager: true,
|
|
26
|
+
ModalLifecycleHandler: true,
|
|
27
|
+
ModalView: true,
|
|
28
|
+
useLazyModalManager: true,
|
|
29
|
+
useModalManager: true,
|
|
30
|
+
useModalRemoteControl: true,
|
|
31
|
+
Skeleton: true,
|
|
32
|
+
SkeletonProps: true,
|
|
29
33
|
SnappingSlider: true,
|
|
30
34
|
SnappingSliderProps: true,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
Tag: true,
|
|
36
|
+
TagProps: true,
|
|
37
|
+
Text: true,
|
|
38
|
+
TextNativeProps: true,
|
|
39
|
+
TextArea: true,
|
|
40
|
+
TextAreaProps: true,
|
|
41
|
+
Calendar: true,
|
|
35
42
|
DatePicker: true,
|
|
36
43
|
NativeDatePickerProps: true,
|
|
37
44
|
DateTimePicker: true,
|
|
38
45
|
NativeDateTimePickerProps: true,
|
|
39
|
-
Avatar: true,
|
|
40
|
-
Calendar: true,
|
|
41
46
|
DateTimeSelector: true,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
IconTextButton: true,
|
|
48
|
+
NativeIconTextButtonProps: true,
|
|
49
|
+
InputPassword: true,
|
|
50
|
+
InputPasswordNativeProps: true,
|
|
51
|
+
LabeledSwitch: true,
|
|
52
|
+
LabeledSwitchNativeProps: true,
|
|
53
|
+
Select: true,
|
|
54
|
+
SelectNativeProps: true,
|
|
55
|
+
Snackbar: true,
|
|
56
|
+
SnackbarNativeProps: true,
|
|
57
|
+
Grid: true,
|
|
58
|
+
GridItem: true
|
|
51
59
|
};
|
|
52
|
-
|
|
60
|
+
Object.defineProperty(exports, "Avatar", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _Avatar.Avatar;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "Badge", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return _Badge.Badge;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "BadgeNativeProps", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () {
|
|
75
|
+
return _Badge.BadgeNativeProps;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "BottomNavigator", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return _BottomNavigator.BottomNavigator;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "BottomNavigatorProps", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () {
|
|
87
|
+
return _BottomNavigator.BottomNavigatorProps;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "Button", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () {
|
|
93
|
+
return _Button.Button;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "ButtonNativeProps", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () {
|
|
99
|
+
return _Button.ButtonNativeProps;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "Calendar", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () {
|
|
105
|
+
return _Calendar.Calendar;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "DatePicker", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () {
|
|
111
|
+
return _DatePicker.DatePicker;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "DateTimePicker", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () {
|
|
117
|
+
return _DateTimePicker.DateTimePicker;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "DateTimeSelector", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _DateTimeSelector.DateTimeSelector;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "Error", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () {
|
|
129
|
+
return _Button.Error;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
Object.defineProperty(exports, "Grid", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function () {
|
|
135
|
+
return _Grid.Grid;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "GridItem", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () {
|
|
141
|
+
return _Grid.GridItem;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "GroupButtonOption", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () {
|
|
147
|
+
return _GroupButton.GroupButtonOption;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "Header", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function () {
|
|
153
|
+
return _Header.Header;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
Object.defineProperty(exports, "HeaderProps", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function () {
|
|
159
|
+
return _Header.HeaderProps;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "IBaseModal", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () {
|
|
165
|
+
return _Modal.IBaseModal;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
Object.defineProperty(exports, "IconTextButton", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function () {
|
|
171
|
+
return _IconTextButton.IconTextButton;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
Object.defineProperty(exports, "Input", {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function () {
|
|
177
|
+
return _Input.Input;
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
Object.defineProperty(exports, "InputMask", {
|
|
181
|
+
enumerable: true,
|
|
182
|
+
get: function () {
|
|
183
|
+
return _InputMask.InputMask;
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(exports, "InputMaskNativeProps", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function () {
|
|
189
|
+
return _InputMask.InputMaskNativeProps;
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
Object.defineProperty(exports, "InputNativeProps", {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
get: function () {
|
|
195
|
+
return _Input.InputNativeProps;
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(exports, "InputPassword", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function () {
|
|
201
|
+
return _InputPassword.InputPassword;
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
Object.defineProperty(exports, "InputPasswordNativeProps", {
|
|
205
|
+
enumerable: true,
|
|
206
|
+
get: function () {
|
|
207
|
+
return _InputPassword.InputPasswordNativeProps;
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
Object.defineProperty(exports, "LabeledSwitch", {
|
|
211
|
+
enumerable: true,
|
|
212
|
+
get: function () {
|
|
213
|
+
return _LabeledSwitch.LabeledSwitch;
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
Object.defineProperty(exports, "LabeledSwitchNativeProps", {
|
|
217
|
+
enumerable: true,
|
|
218
|
+
get: function () {
|
|
219
|
+
return _LabeledSwitch.LabeledSwitchNativeProps;
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
Object.defineProperty(exports, "Loading", {
|
|
223
|
+
enumerable: true,
|
|
224
|
+
get: function () {
|
|
225
|
+
return _Button.Loading;
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
Object.defineProperty(exports, "ModalGroupManager", {
|
|
229
|
+
enumerable: true,
|
|
230
|
+
get: function () {
|
|
231
|
+
return _Modal.ModalGroupManager;
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
Object.defineProperty(exports, "ModalLifecycleHandler", {
|
|
235
|
+
enumerable: true,
|
|
236
|
+
get: function () {
|
|
237
|
+
return _Modal.ModalLifecycleHandler;
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
Object.defineProperty(exports, "ModalView", {
|
|
241
|
+
enumerable: true,
|
|
242
|
+
get: function () {
|
|
243
|
+
return _Modal.ModalView;
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
Object.defineProperty(exports, "NativeDatePickerProps", {
|
|
247
|
+
enumerable: true,
|
|
248
|
+
get: function () {
|
|
249
|
+
return _DatePicker.NativeDatePickerProps;
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
Object.defineProperty(exports, "NativeDateTimePickerProps", {
|
|
253
|
+
enumerable: true,
|
|
254
|
+
get: function () {
|
|
255
|
+
return _DateTimePicker.NativeDateTimePickerProps;
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
Object.defineProperty(exports, "NativeIconTextButtonProps", {
|
|
259
|
+
enumerable: true,
|
|
260
|
+
get: function () {
|
|
261
|
+
return _IconTextButton.NativeIconTextButtonProps;
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
Object.defineProperty(exports, "Select", {
|
|
265
|
+
enumerable: true,
|
|
266
|
+
get: function () {
|
|
267
|
+
return _Select.Select;
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
Object.defineProperty(exports, "SelectNativeProps", {
|
|
271
|
+
enumerable: true,
|
|
272
|
+
get: function () {
|
|
273
|
+
return _Select.SelectNativeProps;
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
Object.defineProperty(exports, "Skeleton", {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: function () {
|
|
279
|
+
return _Skeleton.Skeleton;
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
Object.defineProperty(exports, "SkeletonProps", {
|
|
283
|
+
enumerable: true,
|
|
284
|
+
get: function () {
|
|
285
|
+
return _Skeleton.SkeletonProps;
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
Object.defineProperty(exports, "Snackbar", {
|
|
289
|
+
enumerable: true,
|
|
290
|
+
get: function () {
|
|
291
|
+
return _Snackbar.Snackbar;
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
Object.defineProperty(exports, "SnackbarNativeProps", {
|
|
295
|
+
enumerable: true,
|
|
296
|
+
get: function () {
|
|
297
|
+
return _Snackbar.SnackbarNativeProps;
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
Object.defineProperty(exports, "SnappingSlider", {
|
|
301
|
+
enumerable: true,
|
|
302
|
+
get: function () {
|
|
303
|
+
return _SnappingSlider.SnappingSlider;
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
Object.defineProperty(exports, "SnappingSliderProps", {
|
|
307
|
+
enumerable: true,
|
|
308
|
+
get: function () {
|
|
309
|
+
return _SnappingSlider.SnappingSliderProps;
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
Object.defineProperty(exports, "Success", {
|
|
313
|
+
enumerable: true,
|
|
314
|
+
get: function () {
|
|
315
|
+
return _Button.Success;
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
Object.defineProperty(exports, "Tag", {
|
|
319
|
+
enumerable: true,
|
|
320
|
+
get: function () {
|
|
321
|
+
return _Tag.Tag;
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
Object.defineProperty(exports, "TagProps", {
|
|
325
|
+
enumerable: true,
|
|
326
|
+
get: function () {
|
|
327
|
+
return _Tag.TagProps;
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
Object.defineProperty(exports, "Text", {
|
|
331
|
+
enumerable: true,
|
|
332
|
+
get: function () {
|
|
333
|
+
return _Text.Text;
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
Object.defineProperty(exports, "TextArea", {
|
|
337
|
+
enumerable: true,
|
|
338
|
+
get: function () {
|
|
339
|
+
return _TextArea.TextArea;
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
Object.defineProperty(exports, "TextAreaProps", {
|
|
343
|
+
enumerable: true,
|
|
344
|
+
get: function () {
|
|
345
|
+
return _TextArea.TextAreaProps;
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
Object.defineProperty(exports, "TextNativeProps", {
|
|
349
|
+
enumerable: true,
|
|
350
|
+
get: function () {
|
|
351
|
+
return _Text.TextNativeProps;
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
Object.defineProperty(exports, "useLazyModalManager", {
|
|
355
|
+
enumerable: true,
|
|
356
|
+
get: function () {
|
|
357
|
+
return _Modal.useLazyModalManager;
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
Object.defineProperty(exports, "useModalManager", {
|
|
361
|
+
enumerable: true,
|
|
362
|
+
get: function () {
|
|
363
|
+
return _Modal.useModalManager;
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
Object.defineProperty(exports, "useModalRemoteControl", {
|
|
367
|
+
enumerable: true,
|
|
368
|
+
get: function () {
|
|
369
|
+
return _Modal.useModalRemoteControl;
|
|
370
|
+
}
|
|
371
|
+
});
|
|
53
372
|
|
|
54
373
|
var _reactCore = require("@tecsinapse/react-core");
|
|
55
374
|
|
|
@@ -57,115 +376,59 @@ Object.keys(_reactCore).forEach(function (key) {
|
|
|
57
376
|
if (key === "default" || key === "__esModule") return;
|
|
58
377
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
59
378
|
if (key in exports && exports[key] === _reactCore[key]) return;
|
|
60
|
-
exports
|
|
379
|
+
Object.defineProperty(exports, key, {
|
|
380
|
+
enumerable: true,
|
|
381
|
+
get: function () {
|
|
382
|
+
return _reactCore[key];
|
|
383
|
+
}
|
|
384
|
+
});
|
|
61
385
|
});
|
|
62
386
|
|
|
63
|
-
var
|
|
64
|
-
|
|
65
|
-
exports.Header = _Header.Header;
|
|
66
|
-
exports.HeaderProps = _Header.HeaderProps;
|
|
67
|
-
|
|
68
|
-
var _Select = require("./components/molecules/Select");
|
|
69
|
-
|
|
70
|
-
exports.Select = _Select.Select;
|
|
71
|
-
exports.SelectNativeProps = _Select.SelectNativeProps;
|
|
72
|
-
|
|
73
|
-
var _Input = require("./components/atoms/Input");
|
|
74
|
-
|
|
75
|
-
exports.Input = _Input.Input;
|
|
76
|
-
exports.InputNativeProps = _Input.InputNativeProps;
|
|
77
|
-
|
|
78
|
-
var _InputMask = require("./components/atoms/InputMask");
|
|
79
|
-
|
|
80
|
-
exports.InputMask = _InputMask.InputMask;
|
|
81
|
-
exports.InputMaskNativeProps = _InputMask.InputMaskNativeProps;
|
|
82
|
-
|
|
83
|
-
var _TextArea = require("./components/atoms/TextArea");
|
|
84
|
-
|
|
85
|
-
exports.TextArea = _TextArea.TextArea;
|
|
86
|
-
exports.TextAreaProps = _TextArea.TextAreaProps;
|
|
387
|
+
var _Avatar = require("./components/atoms/Avatar");
|
|
87
388
|
|
|
88
|
-
var
|
|
389
|
+
var _Badge = require("./components/atoms/Badge");
|
|
89
390
|
|
|
90
|
-
|
|
91
|
-
exports.TextNativeProps = _Text.TextNativeProps;
|
|
391
|
+
var _BottomNavigator = require("./components/atoms/BottomNavigator");
|
|
92
392
|
|
|
93
393
|
var _Button = require("./components/atoms/Button");
|
|
94
394
|
|
|
95
|
-
exports.Error = _Button.Error;
|
|
96
|
-
exports.Loading = _Button.Loading;
|
|
97
|
-
exports.Success = _Button.Success;
|
|
98
|
-
exports.Button = _Button.Button;
|
|
99
|
-
exports.ButtonNativeProps = _Button.ButtonNativeProps;
|
|
100
|
-
|
|
101
395
|
var _GroupButton = require("./components/atoms/GroupButton");
|
|
102
396
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
var _InputPassword = require("./components/molecules/InputPassword");
|
|
106
|
-
|
|
107
|
-
exports.InputPassword = _InputPassword.InputPassword;
|
|
108
|
-
exports.InputPasswordNativeProps = _InputPassword.InputPasswordNativeProps;
|
|
397
|
+
var _Header = require("./components/atoms/Header");
|
|
109
398
|
|
|
110
|
-
var
|
|
399
|
+
var _Input = require("./components/atoms/Input");
|
|
111
400
|
|
|
112
|
-
|
|
113
|
-
exports.BottomNavigatorProps = _BottomNavigator.BottomNavigatorProps;
|
|
401
|
+
var _InputMask = require("./components/atoms/InputMask");
|
|
114
402
|
|
|
115
|
-
var
|
|
403
|
+
var _Modal = require("./components/atoms/Modal");
|
|
116
404
|
|
|
117
|
-
|
|
118
|
-
exports.TagProps = _Tag.TagProps;
|
|
405
|
+
var _Skeleton = require("./components/atoms/Skeleton");
|
|
119
406
|
|
|
120
407
|
var _SnappingSlider = require("./components/atoms/SnappingSlider");
|
|
121
408
|
|
|
122
|
-
|
|
123
|
-
exports.SnappingSliderProps = _SnappingSlider.SnappingSliderProps;
|
|
124
|
-
|
|
125
|
-
var _Badge = require("./components/atoms/Badge");
|
|
409
|
+
var _Tag = require("./components/atoms/Tag");
|
|
126
410
|
|
|
127
|
-
|
|
128
|
-
exports.BadgeNativeProps = _Badge.BadgeNativeProps;
|
|
411
|
+
var _Text = require("./components/atoms/Text");
|
|
129
412
|
|
|
130
|
-
var
|
|
413
|
+
var _TextArea = require("./components/atoms/TextArea");
|
|
131
414
|
|
|
132
|
-
|
|
133
|
-
exports.SnackbarNativeProps = _Snackbar.SnackbarNativeProps;
|
|
415
|
+
var _Calendar = require("./components/molecules/Calendar");
|
|
134
416
|
|
|
135
417
|
var _DatePicker = require("./components/molecules/DatePicker");
|
|
136
418
|
|
|
137
|
-
exports.DatePicker = _DatePicker.DatePicker;
|
|
138
|
-
exports.NativeDatePickerProps = _DatePicker.NativeDatePickerProps;
|
|
139
|
-
|
|
140
419
|
var _DateTimePicker = require("./components/molecules/DateTimePicker");
|
|
141
420
|
|
|
142
|
-
exports.DateTimePicker = _DateTimePicker.DateTimePicker;
|
|
143
|
-
exports.NativeDateTimePickerProps = _DateTimePicker.NativeDateTimePickerProps;
|
|
144
|
-
|
|
145
|
-
var _Avatar = require("./components/atoms/Avatar");
|
|
146
|
-
|
|
147
|
-
exports.Avatar = _Avatar.Avatar;
|
|
148
|
-
|
|
149
|
-
var _Calendar = require("./components/molecules/Calendar");
|
|
150
|
-
|
|
151
|
-
exports.Calendar = _Calendar.Calendar;
|
|
152
|
-
|
|
153
421
|
var _DateTimeSelector = require("./components/molecules/DateTimeSelector");
|
|
154
422
|
|
|
155
|
-
|
|
423
|
+
var _IconTextButton = require("./components/molecules/IconTextButton");
|
|
156
424
|
|
|
157
|
-
var
|
|
425
|
+
var _InputPassword = require("./components/molecules/InputPassword");
|
|
158
426
|
|
|
159
|
-
|
|
160
|
-
exports.ModalView = _Modal.ModalView;
|
|
161
|
-
exports.ModalLifecycleHandler = _Modal.ModalLifecycleHandler;
|
|
162
|
-
exports.useLazyModalManager = _Modal.useLazyModalManager;
|
|
163
|
-
exports.useModalManager = _Modal.useModalManager;
|
|
164
|
-
exports.useModalRemoteControl = _Modal.useModalRemoteControl;
|
|
165
|
-
exports.IBaseModal = _Modal.IBaseModal;
|
|
427
|
+
var _LabeledSwitch = require("./components/molecules/LabeledSwitch");
|
|
166
428
|
|
|
167
|
-
var
|
|
429
|
+
var _Select = require("./components/molecules/Select");
|
|
430
|
+
|
|
431
|
+
var _Snackbar = require("./components/molecules/Snackbar");
|
|
168
432
|
|
|
169
|
-
|
|
170
|
-
exports.SkeletonProps = _Skeleton.SkeletonProps;
|
|
433
|
+
var _Grid = require("./components/molecules/Grid");
|
|
171
434
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["export * from '@tecsinapse/react-core';\nexport { Avatar } from './components/atoms/Avatar';\nexport { Badge, BadgeNativeProps } from './components/atoms/Badge';\nexport {\n BottomNavigator,\n BottomNavigatorProps,\n} from './components/atoms/BottomNavigator';\nexport {\n Button,\n ButtonNativeProps,\n Error,\n Loading,\n Success,\n} from './components/atoms/Button';\nexport { GroupButtonOption } from './components/atoms/GroupButton';\nexport { Header, HeaderProps } from './components/atoms/Header';\nexport { Input, InputNativeProps } from './components/atoms/Input';\nexport { InputMask, InputMaskNativeProps } from './components/atoms/InputMask';\nexport {\n IBaseModal,\n ModalGroupManager,\n ModalLifecycleHandler,\n ModalView,\n useLazyModalManager,\n useModalManager,\n useModalRemoteControl,\n} from './components/atoms/Modal';\nexport { Skeleton, SkeletonProps } from './components/atoms/Skeleton';\nexport {\n SnappingSlider,\n SnappingSliderProps,\n} from './components/atoms/SnappingSlider';\nexport { Tag, TagProps } from './components/atoms/Tag';\nexport { Text, TextNativeProps } from './components/atoms/Text';\nexport { TextArea, TextAreaProps } from './components/atoms/TextArea';\nexport { Calendar } from './components/molecules/Calendar';\nexport {\n DatePicker,\n NativeDatePickerProps,\n} from './components/molecules/DatePicker';\nexport {\n DateTimePicker,\n NativeDateTimePickerProps,\n} from './components/molecules/DateTimePicker';\nexport { DateTimeSelector } from './components/molecules/DateTimeSelector';\nexport {\n IconTextButton,\n NativeIconTextButtonProps,\n} from './components/molecules/IconTextButton';\nexport {\n InputPassword,\n InputPasswordNativeProps,\n} from './components/molecules/InputPassword';\nexport {\n LabeledSwitch,\n LabeledSwitchNativeProps,\n} from './components/molecules/LabeledSwitch';\nexport { Select, SelectNativeProps } from './components/molecules/Select';\nexport { Snackbar, SnackbarNativeProps } from './components/molecules/Snackbar';\nexport { Grid, GridItem } from './components/molecules/Grid';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AACA;;AACA;;AAIA;;AAOA;;AACA;;AACA;;AACA;;AACA;;AASA;;AACA;;AAIA;;AACA;;AACA;;AACA;;AACA;;AAIA;;AAIA;;AACA;;AAIA;;AAIA;;AAIA;;AACA;;AACA"}
|
package/dist/utils/date.js
CHANGED
package/dist/utils/date.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"date.js","names":["getLocale","locale","Platform","OS","NativeModules","SettingsManager","settings","AppleLocale","AppleLanguages","I18nManager","localeIdentifier","code","replace","dateFnsLocales"],"sources":["../../src/utils/date.ts"],"sourcesContent":["import { NativeModules, Platform } from 'react-native';\nimport * as dateFnsLocales from 'date-fns/locale';\n\nexport const getLocale = (): Locale => {\n let locale: string;\n if (Platform.OS === 'ios') {\n locale =\n NativeModules.SettingsManager.settings.AppleLocale ||\n NativeModules.SettingsManager.settings.AppleLanguages[0];\n } else {\n locale = NativeModules.I18nManager.localeIdentifier;\n }\n\n const code = locale.replace('_', '');\n\n return dateFnsLocales[code];\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;;;;;AAEO,MAAMA,SAAS,GAAG,MAAc;EACrC,IAAIC,MAAJ;;EACA,IAAIC,qBAAA,CAASC,EAAT,KAAgB,KAApB,EAA2B;IACzBF,MAAM,GACJG,0BAAA,CAAcC,eAAd,CAA8BC,QAA9B,CAAuCC,WAAvC,IACAH,0BAAA,CAAcC,eAAd,CAA8BC,QAA9B,CAAuCE,cAAvC,CAAsD,CAAtD,CAFF;EAGD,CAJD,MAIO;IACLP,MAAM,GAAGG,0BAAA,CAAcK,WAAd,CAA0BC,gBAAnC;EACD;;EAED,MAAMC,IAAI,GAAGV,MAAM,CAACW,OAAP,CAAe,GAAf,EAAoB,EAApB,CAAb;EAEA,OAAOC,cAAc,CAACF,IAAD,CAArB;AACD,CAbM"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/react-native-kit",
|
|
3
3
|
"description": "TecSinapse React Native components",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.21.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "MIT",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"yalc:show": "yalc installations show $npm_package_name"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@emotion/native": "^11.
|
|
18
|
-
"@emotion/react": "^11.
|
|
19
|
-
"@tecsinapse/react-core": "^1.
|
|
17
|
+
"@emotion/native": "^11.10.0",
|
|
18
|
+
"@emotion/react": "^11.10.0",
|
|
19
|
+
"@tecsinapse/react-core": "^1.20.0",
|
|
20
20
|
"react-native-linear-gradient": "^2.5.6"
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/uuid": "^8.3.3"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "46fe5778b52031a04bcb217c86cf363d6ae45b54"
|
|
43
43
|
}
|
|
@@ -22,12 +22,9 @@ function BottomNavigator<T extends string | number | symbol>({
|
|
|
22
22
|
return (
|
|
23
23
|
<StyledView {...rest}>
|
|
24
24
|
{React.Children.map(children, child => {
|
|
25
|
-
const {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
labelProps,
|
|
29
|
-
labelElement,
|
|
30
|
-
} = (child as React.ReactElement<BottomNavigatorItemProps<T>>).props;
|
|
25
|
+
const { value, label, labelProps, labelElement } = (
|
|
26
|
+
child as React.ReactElement<BottomNavigatorItemProps<T>>
|
|
27
|
+
).props;
|
|
31
28
|
const isSelected = value == selected;
|
|
32
29
|
|
|
33
30
|
return (
|
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
import { Button as ButtonCore, ButtonProps } from
|
|
2
|
-
import React, { FC, useCallback } from
|
|
3
|
-
import { Keyboard } from
|
|
1
|
+
import { Button as ButtonCore, ButtonProps } from '@tecsinapse/react-core';
|
|
2
|
+
import React, { FC, useCallback } from 'react';
|
|
3
|
+
import { Keyboard } from 'react-native';
|
|
4
4
|
|
|
5
5
|
export type ButtonNativeProps = ButtonProps & {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
autoDismissKeyboard?: boolean;
|
|
7
|
+
};
|
|
8
8
|
|
|
9
|
-
export const Button: FC<ButtonNativeProps> = ({
|
|
9
|
+
export const Button: FC<ButtonNativeProps> = ({
|
|
10
|
+
autoDismissKeyboard = true,
|
|
11
|
+
onPress,
|
|
12
|
+
...others
|
|
13
|
+
}) => {
|
|
14
|
+
const handleOnPress = useCallback(
|
|
15
|
+
event => {
|
|
16
|
+
autoDismissKeyboard && Keyboard.dismiss();
|
|
17
|
+
onPress?.(event);
|
|
18
|
+
},
|
|
19
|
+
[onPress]
|
|
20
|
+
);
|
|
10
21
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
onPress?.(event)
|
|
14
|
-
}, [onPress])
|
|
15
|
-
|
|
16
|
-
return <ButtonCore {...others} onPress={handleOnPress}/>
|
|
17
|
-
}
|
|
22
|
+
return <ButtonCore {...others} onPress={handleOnPress} />;
|
|
23
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Button, ButtonNativeProps } from './Button';
|
|
2
|
-
export { Error, Loading, Success } from './States';
|
|
2
|
+
export { Error, Loading, Success } from './States';
|