@tecsinapse/react-native-kit 1.15.7 → 1.16.2
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 +30 -0
- package/dist/components/atoms/Avatar/Avatar.js +1 -3
- package/dist/components/atoms/Avatar/Avatar.js.map +1 -1
- package/dist/components/atoms/Avatar/index.js +4 -9
- package/dist/components/atoms/Avatar/index.js.map +1 -1
- package/dist/components/atoms/Badge/Badge.js +1 -3
- package/dist/components/atoms/Badge/Badge.js.map +1 -1
- package/dist/components/atoms/Badge/index.js +5 -15
- package/dist/components/atoms/Badge/index.js.map +1 -1
- package/dist/components/atoms/BottomNavigator/BottomNavigator.js +3 -5
- package/dist/components/atoms/BottomNavigator/BottomNavigator.js.map +1 -1
- package/dist/components/atoms/BottomNavigator/Item.js +1 -3
- package/dist/components/atoms/BottomNavigator/Item.js.map +1 -1
- package/dist/components/atoms/BottomNavigator/index.js +7 -21
- package/dist/components/atoms/BottomNavigator/index.js.map +1 -1
- package/dist/components/atoms/BottomNavigator/styled.js +1 -3
- package/dist/components/atoms/BottomNavigator/styled.js.map +1 -1
- package/dist/components/atoms/Button/Button.js +2 -4
- package/dist/components/atoms/Button/Button.js.map +1 -1
- package/dist/components/atoms/Button/States/Error.js +1 -3
- package/dist/components/atoms/Button/States/Error.js.map +1 -1
- package/dist/components/atoms/Button/States/Loading.js +1 -3
- package/dist/components/atoms/Button/States/Loading.js.map +1 -1
- package/dist/components/atoms/Button/States/Success.js +1 -3
- package/dist/components/atoms/Button/States/Success.js.map +1 -1
- package/dist/components/atoms/Button/States/index.js +8 -21
- package/dist/components/atoms/Button/States/index.js.map +1 -1
- package/dist/components/atoms/Button/index.js +9 -33
- package/dist/components/atoms/Button/index.js.map +1 -1
- package/dist/components/atoms/GroupButton/GroupButtonOption.js +1 -3
- package/dist/components/atoms/GroupButton/GroupButtonOption.js.map +1 -1
- package/dist/components/atoms/GroupButton/index.js +4 -9
- package/dist/components/atoms/GroupButton/index.js.map +1 -1
- package/dist/components/atoms/Header/Header.js +9 -11
- package/dist/components/atoms/Header/Header.js.map +1 -1
- package/dist/components/atoms/Header/index.js +5 -15
- package/dist/components/atoms/Header/index.js.map +1 -1
- package/dist/components/atoms/Header/styled.js +1 -3
- package/dist/components/atoms/Header/styled.js.map +1 -1
- package/dist/components/atoms/Input/Input.js +1 -3
- package/dist/components/atoms/Input/Input.js.map +1 -1
- package/dist/components/atoms/Input/index.js +5 -15
- package/dist/components/atoms/Input/index.js.map +1 -1
- package/dist/components/atoms/Input/styled.js +1 -3
- package/dist/components/atoms/Input/styled.js.map +1 -1
- package/dist/components/atoms/Modal/ModalGroupManager.js +1 -3
- package/dist/components/atoms/Modal/ModalGroupManager.js.map +1 -1
- package/dist/components/atoms/Modal/ModalLifecycleHandler.js +20 -26
- package/dist/components/atoms/Modal/ModalLifecycleHandler.js.map +1 -1
- package/dist/components/atoms/Modal/index.js +7 -39
- package/dist/components/atoms/Modal/index.js.map +1 -1
- package/dist/components/atoms/Modal/ui/BaseModalView.js +1 -3
- package/dist/components/atoms/Modal/ui/BaseModalView.js.map +1 -1
- package/dist/components/atoms/Modal/ui/styled.js +1 -3
- package/dist/components/atoms/Modal/ui/styled.js.map +1 -1
- package/dist/components/atoms/Modal/ui/types.js +1 -3
- package/dist/components/atoms/Modal/useLazyModalManager.js +1 -3
- package/dist/components/atoms/Modal/useLazyModalManager.js.map +1 -1
- package/dist/components/atoms/Modal/useModalManager.js +1 -3
- package/dist/components/atoms/Modal/useModalManager.js.map +1 -1
- package/dist/components/atoms/Skeleton/Pulse.js +1 -3
- package/dist/components/atoms/Skeleton/Pulse.js.map +1 -1
- package/dist/components/atoms/Skeleton/Skeleton.js +3 -5
- package/dist/components/atoms/Skeleton/Skeleton.js.map +1 -1
- package/dist/components/atoms/Skeleton/Wave.js +1 -3
- package/dist/components/atoms/Skeleton/Wave.js.map +1 -1
- package/dist/components/atoms/Skeleton/animation.js +1 -3
- package/dist/components/atoms/Skeleton/animation.js.map +1 -1
- package/dist/components/atoms/Skeleton/index.js +5 -15
- package/dist/components/atoms/Skeleton/index.js.map +1 -1
- package/dist/components/atoms/Skeleton/styled.js +1 -3
- package/dist/components/atoms/Skeleton/styled.js.map +1 -1
- package/dist/components/atoms/Skeleton/types.js +1 -3
- package/dist/components/atoms/SnappingSlider/SnappingSlider.js +1 -3
- package/dist/components/atoms/SnappingSlider/SnappingSlider.js.map +1 -1
- package/dist/components/atoms/SnappingSlider/index.js +5 -15
- package/dist/components/atoms/SnappingSlider/index.js.map +1 -1
- package/dist/components/atoms/Tag/Tag.js +1 -3
- package/dist/components/atoms/Tag/Tag.js.map +1 -1
- package/dist/components/atoms/Tag/index.js +5 -15
- package/dist/components/atoms/Tag/index.js.map +1 -1
- package/dist/components/atoms/Text/Text.js +1 -3
- package/dist/components/atoms/Text/Text.js.map +1 -1
- package/dist/components/atoms/Text/index.js +5 -15
- package/dist/components/atoms/Text/index.js.map +1 -1
- package/dist/components/atoms/Text/styled.js +4 -6
- package/dist/components/atoms/Text/styled.js.map +1 -1
- package/dist/components/atoms/TextArea/TextArea.js +1 -3
- package/dist/components/atoms/TextArea/TextArea.js.map +1 -1
- package/dist/components/atoms/TextArea/index.js +5 -15
- package/dist/components/atoms/TextArea/index.js.map +1 -1
- package/dist/components/atoms/TextArea/styled.js +1 -3
- package/dist/components/atoms/TextArea/styled.js.map +1 -1
- package/dist/components/molecules/Calendar/Calendar.js +1 -3
- package/dist/components/molecules/Calendar/Calendar.js.map +1 -1
- package/dist/components/molecules/Calendar/index.js +4 -9
- package/dist/components/molecules/Calendar/index.js.map +1 -1
- package/dist/components/molecules/DatePicker/DatePicker.js +2 -4
- package/dist/components/molecules/DatePicker/DatePicker.js.map +1 -1
- package/dist/components/molecules/DatePicker/index.js +5 -15
- package/dist/components/molecules/DatePicker/index.js.map +1 -1
- package/dist/components/molecules/DatePicker/styled.js +1 -3
- package/dist/components/molecules/DatePicker/styled.js.map +1 -1
- package/dist/components/molecules/DateTimePicker/DateTimePicker.js +1 -3
- package/dist/components/molecules/DateTimePicker/DateTimePicker.js.map +1 -1
- package/dist/components/molecules/DateTimePicker/index.js +5 -15
- package/dist/components/molecules/DateTimePicker/index.js.map +1 -1
- package/dist/components/molecules/DateTimeSelector/DateTimeSelector.js +1 -3
- package/dist/components/molecules/DateTimeSelector/DateTimeSelector.js.map +1 -1
- package/dist/components/molecules/DateTimeSelector/index.js +4 -9
- package/dist/components/molecules/DateTimeSelector/index.js.map +1 -1
- package/dist/components/molecules/InputPassword/InputPassword.js +1 -3
- package/dist/components/molecules/InputPassword/InputPassword.js.map +1 -1
- package/dist/components/molecules/InputPassword/index.js +5 -15
- package/dist/components/molecules/InputPassword/index.js.map +1 -1
- package/dist/components/molecules/Select/Modal.js +3 -5
- package/dist/components/molecules/Select/Modal.js.map +1 -1
- package/dist/components/molecules/Select/Select.d.ts +2 -1
- package/dist/components/molecules/Select/Select.js +5 -6
- package/dist/components/molecules/Select/Select.js.map +1 -1
- package/dist/components/molecules/Select/index.js +5 -15
- package/dist/components/molecules/Select/index.js.map +1 -1
- package/dist/components/molecules/Select/styled.js +2 -4
- package/dist/components/molecules/Select/styled.js.map +1 -1
- package/dist/components/molecules/Snackbar/Snackbar.js +1 -3
- package/dist/components/molecules/Snackbar/Snackbar.js.map +1 -1
- package/dist/components/molecules/Snackbar/index.js +5 -15
- package/dist/components/molecules/Snackbar/index.js.map +1 -1
- package/dist/components/molecules/Snackbar/styled.js +1 -3
- package/dist/components/molecules/Snackbar/styled.js.map +1 -1
- package/dist/index.js +66 -267
- package/dist/index.js.map +1 -1
- package/dist/utils/date.js +1 -3
- package/dist/utils/date.js.map +1 -1
- package/package.json +6 -6
- package/src/components/atoms/Skeleton/Skeleton.tsx +6 -0
- package/src/components/molecules/Select/Select.tsx +38 -28
package/dist/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
3
|
+
exports.__esModule = true;
|
|
6
4
|
var _exportNames = {
|
|
7
5
|
Header: true,
|
|
8
6
|
HeaderProps: true,
|
|
@@ -48,264 +46,7 @@ var _exportNames = {
|
|
|
48
46
|
Skeleton: true,
|
|
49
47
|
SkeletonProps: true
|
|
50
48
|
};
|
|
51
|
-
|
|
52
|
-
enumerable: true,
|
|
53
|
-
get: function () {
|
|
54
|
-
return _Header.Header;
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
Object.defineProperty(exports, "HeaderProps", {
|
|
58
|
-
enumerable: true,
|
|
59
|
-
get: function () {
|
|
60
|
-
return _Header.HeaderProps;
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
Object.defineProperty(exports, "Select", {
|
|
64
|
-
enumerable: true,
|
|
65
|
-
get: function () {
|
|
66
|
-
return _Select.Select;
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
Object.defineProperty(exports, "SelectNativeProps", {
|
|
70
|
-
enumerable: true,
|
|
71
|
-
get: function () {
|
|
72
|
-
return _Select.SelectNativeProps;
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
Object.defineProperty(exports, "Input", {
|
|
76
|
-
enumerable: true,
|
|
77
|
-
get: function () {
|
|
78
|
-
return _Input.Input;
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
Object.defineProperty(exports, "InputNativeProps", {
|
|
82
|
-
enumerable: true,
|
|
83
|
-
get: function () {
|
|
84
|
-
return _Input.InputNativeProps;
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
Object.defineProperty(exports, "TextArea", {
|
|
88
|
-
enumerable: true,
|
|
89
|
-
get: function () {
|
|
90
|
-
return _TextArea.TextArea;
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
Object.defineProperty(exports, "TextAreaProps", {
|
|
94
|
-
enumerable: true,
|
|
95
|
-
get: function () {
|
|
96
|
-
return _TextArea.TextAreaProps;
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
Object.defineProperty(exports, "Text", {
|
|
100
|
-
enumerable: true,
|
|
101
|
-
get: function () {
|
|
102
|
-
return _Text.Text;
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
Object.defineProperty(exports, "TextNativeProps", {
|
|
106
|
-
enumerable: true,
|
|
107
|
-
get: function () {
|
|
108
|
-
return _Text.TextNativeProps;
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
Object.defineProperty(exports, "Error", {
|
|
112
|
-
enumerable: true,
|
|
113
|
-
get: function () {
|
|
114
|
-
return _Button.Error;
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
Object.defineProperty(exports, "Loading", {
|
|
118
|
-
enumerable: true,
|
|
119
|
-
get: function () {
|
|
120
|
-
return _Button.Loading;
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
Object.defineProperty(exports, "Success", {
|
|
124
|
-
enumerable: true,
|
|
125
|
-
get: function () {
|
|
126
|
-
return _Button.Success;
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
Object.defineProperty(exports, "Button", {
|
|
130
|
-
enumerable: true,
|
|
131
|
-
get: function () {
|
|
132
|
-
return _Button.Button;
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
Object.defineProperty(exports, "ButtonNativeProps", {
|
|
136
|
-
enumerable: true,
|
|
137
|
-
get: function () {
|
|
138
|
-
return _Button.ButtonNativeProps;
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
Object.defineProperty(exports, "GroupButtonOption", {
|
|
142
|
-
enumerable: true,
|
|
143
|
-
get: function () {
|
|
144
|
-
return _GroupButton.GroupButtonOption;
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
Object.defineProperty(exports, "InputPassword", {
|
|
148
|
-
enumerable: true,
|
|
149
|
-
get: function () {
|
|
150
|
-
return _InputPassword.InputPassword;
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
Object.defineProperty(exports, "InputPasswordNativeProps", {
|
|
154
|
-
enumerable: true,
|
|
155
|
-
get: function () {
|
|
156
|
-
return _InputPassword.InputPasswordNativeProps;
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
Object.defineProperty(exports, "BottomNavigator", {
|
|
160
|
-
enumerable: true,
|
|
161
|
-
get: function () {
|
|
162
|
-
return _BottomNavigator.BottomNavigator;
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
Object.defineProperty(exports, "BottomNavigatorProps", {
|
|
166
|
-
enumerable: true,
|
|
167
|
-
get: function () {
|
|
168
|
-
return _BottomNavigator.BottomNavigatorProps;
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
Object.defineProperty(exports, "Tag", {
|
|
172
|
-
enumerable: true,
|
|
173
|
-
get: function () {
|
|
174
|
-
return _Tag.Tag;
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
Object.defineProperty(exports, "TagProps", {
|
|
178
|
-
enumerable: true,
|
|
179
|
-
get: function () {
|
|
180
|
-
return _Tag.TagProps;
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
Object.defineProperty(exports, "SnappingSlider", {
|
|
184
|
-
enumerable: true,
|
|
185
|
-
get: function () {
|
|
186
|
-
return _SnappingSlider.SnappingSlider;
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
Object.defineProperty(exports, "SnappingSliderProps", {
|
|
190
|
-
enumerable: true,
|
|
191
|
-
get: function () {
|
|
192
|
-
return _SnappingSlider.SnappingSliderProps;
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
Object.defineProperty(exports, "Badge", {
|
|
196
|
-
enumerable: true,
|
|
197
|
-
get: function () {
|
|
198
|
-
return _Badge.Badge;
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
Object.defineProperty(exports, "BadgeNativeProps", {
|
|
202
|
-
enumerable: true,
|
|
203
|
-
get: function () {
|
|
204
|
-
return _Badge.BadgeNativeProps;
|
|
205
|
-
}
|
|
206
|
-
});
|
|
207
|
-
Object.defineProperty(exports, "Snackbar", {
|
|
208
|
-
enumerable: true,
|
|
209
|
-
get: function () {
|
|
210
|
-
return _Snackbar.Snackbar;
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
|
-
Object.defineProperty(exports, "SnackbarNativeProps", {
|
|
214
|
-
enumerable: true,
|
|
215
|
-
get: function () {
|
|
216
|
-
return _Snackbar.SnackbarNativeProps;
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
Object.defineProperty(exports, "DatePicker", {
|
|
220
|
-
enumerable: true,
|
|
221
|
-
get: function () {
|
|
222
|
-
return _DatePicker.DatePicker;
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
Object.defineProperty(exports, "NativeDatePickerProps", {
|
|
226
|
-
enumerable: true,
|
|
227
|
-
get: function () {
|
|
228
|
-
return _DatePicker.NativeDatePickerProps;
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
|
-
Object.defineProperty(exports, "DateTimePicker", {
|
|
232
|
-
enumerable: true,
|
|
233
|
-
get: function () {
|
|
234
|
-
return _DateTimePicker.DateTimePicker;
|
|
235
|
-
}
|
|
236
|
-
});
|
|
237
|
-
Object.defineProperty(exports, "NativeDateTimePickerProps", {
|
|
238
|
-
enumerable: true,
|
|
239
|
-
get: function () {
|
|
240
|
-
return _DateTimePicker.NativeDateTimePickerProps;
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
Object.defineProperty(exports, "Avatar", {
|
|
244
|
-
enumerable: true,
|
|
245
|
-
get: function () {
|
|
246
|
-
return _Avatar.Avatar;
|
|
247
|
-
}
|
|
248
|
-
});
|
|
249
|
-
Object.defineProperty(exports, "Calendar", {
|
|
250
|
-
enumerable: true,
|
|
251
|
-
get: function () {
|
|
252
|
-
return _Calendar.Calendar;
|
|
253
|
-
}
|
|
254
|
-
});
|
|
255
|
-
Object.defineProperty(exports, "DateTimeSelector", {
|
|
256
|
-
enumerable: true,
|
|
257
|
-
get: function () {
|
|
258
|
-
return _DateTimeSelector.DateTimeSelector;
|
|
259
|
-
}
|
|
260
|
-
});
|
|
261
|
-
Object.defineProperty(exports, "ModalGroupManager", {
|
|
262
|
-
enumerable: true,
|
|
263
|
-
get: function () {
|
|
264
|
-
return _Modal.ModalGroupManager;
|
|
265
|
-
}
|
|
266
|
-
});
|
|
267
|
-
Object.defineProperty(exports, "ModalView", {
|
|
268
|
-
enumerable: true,
|
|
269
|
-
get: function () {
|
|
270
|
-
return _Modal.ModalView;
|
|
271
|
-
}
|
|
272
|
-
});
|
|
273
|
-
Object.defineProperty(exports, "ModalLifecycleHandler", {
|
|
274
|
-
enumerable: true,
|
|
275
|
-
get: function () {
|
|
276
|
-
return _Modal.ModalLifecycleHandler;
|
|
277
|
-
}
|
|
278
|
-
});
|
|
279
|
-
Object.defineProperty(exports, "useLazyModalManager", {
|
|
280
|
-
enumerable: true,
|
|
281
|
-
get: function () {
|
|
282
|
-
return _Modal.useLazyModalManager;
|
|
283
|
-
}
|
|
284
|
-
});
|
|
285
|
-
Object.defineProperty(exports, "useModalManager", {
|
|
286
|
-
enumerable: true,
|
|
287
|
-
get: function () {
|
|
288
|
-
return _Modal.useModalManager;
|
|
289
|
-
}
|
|
290
|
-
});
|
|
291
|
-
Object.defineProperty(exports, "IBaseModal", {
|
|
292
|
-
enumerable: true,
|
|
293
|
-
get: function () {
|
|
294
|
-
return _Modal.IBaseModal;
|
|
295
|
-
}
|
|
296
|
-
});
|
|
297
|
-
Object.defineProperty(exports, "Skeleton", {
|
|
298
|
-
enumerable: true,
|
|
299
|
-
get: function () {
|
|
300
|
-
return _Skeleton.Skeleton;
|
|
301
|
-
}
|
|
302
|
-
});
|
|
303
|
-
Object.defineProperty(exports, "SkeletonProps", {
|
|
304
|
-
enumerable: true,
|
|
305
|
-
get: function () {
|
|
306
|
-
return _Skeleton.SkeletonProps;
|
|
307
|
-
}
|
|
308
|
-
});
|
|
49
|
+
exports.SkeletonProps = exports.Skeleton = exports.IBaseModal = exports.useModalManager = exports.useLazyModalManager = exports.ModalLifecycleHandler = exports.ModalView = exports.ModalGroupManager = exports.DateTimeSelector = exports.Calendar = exports.Avatar = exports.NativeDateTimePickerProps = exports.DateTimePicker = exports.NativeDatePickerProps = exports.DatePicker = exports.SnackbarNativeProps = exports.Snackbar = exports.BadgeNativeProps = exports.Badge = exports.SnappingSliderProps = exports.SnappingSlider = exports.TagProps = exports.Tag = exports.BottomNavigatorProps = exports.BottomNavigator = exports.InputPasswordNativeProps = exports.InputPassword = exports.GroupButtonOption = exports.ButtonNativeProps = exports.Button = exports.Success = exports.Loading = exports.Error = exports.TextNativeProps = exports.Text = exports.TextAreaProps = exports.TextArea = exports.InputNativeProps = exports.Input = exports.SelectNativeProps = exports.Select = exports.HeaderProps = exports.Header = void 0;
|
|
309
50
|
|
|
310
51
|
var _reactCore = require("@tecsinapse/react-core");
|
|
311
52
|
|
|
@@ -313,51 +54,109 @@ Object.keys(_reactCore).forEach(function (key) {
|
|
|
313
54
|
if (key === "default" || key === "__esModule") return;
|
|
314
55
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
315
56
|
if (key in exports && exports[key] === _reactCore[key]) return;
|
|
316
|
-
|
|
317
|
-
enumerable: true,
|
|
318
|
-
get: function () {
|
|
319
|
-
return _reactCore[key];
|
|
320
|
-
}
|
|
321
|
-
});
|
|
57
|
+
exports[key] = _reactCore[key];
|
|
322
58
|
});
|
|
323
59
|
|
|
324
60
|
var _Header = require("./components/atoms/Header");
|
|
325
61
|
|
|
62
|
+
exports.Header = _Header.Header;
|
|
63
|
+
exports.HeaderProps = _Header.HeaderProps;
|
|
64
|
+
|
|
326
65
|
var _Select = require("./components/molecules/Select");
|
|
327
66
|
|
|
67
|
+
exports.Select = _Select.Select;
|
|
68
|
+
exports.SelectNativeProps = _Select.SelectNativeProps;
|
|
69
|
+
|
|
328
70
|
var _Input = require("./components/atoms/Input");
|
|
329
71
|
|
|
72
|
+
exports.Input = _Input.Input;
|
|
73
|
+
exports.InputNativeProps = _Input.InputNativeProps;
|
|
74
|
+
|
|
330
75
|
var _TextArea = require("./components/atoms/TextArea");
|
|
331
76
|
|
|
77
|
+
exports.TextArea = _TextArea.TextArea;
|
|
78
|
+
exports.TextAreaProps = _TextArea.TextAreaProps;
|
|
79
|
+
|
|
332
80
|
var _Text = require("./components/atoms/Text");
|
|
333
81
|
|
|
82
|
+
exports.Text = _Text.Text;
|
|
83
|
+
exports.TextNativeProps = _Text.TextNativeProps;
|
|
84
|
+
|
|
334
85
|
var _Button = require("./components/atoms/Button");
|
|
335
86
|
|
|
87
|
+
exports.Error = _Button.Error;
|
|
88
|
+
exports.Loading = _Button.Loading;
|
|
89
|
+
exports.Success = _Button.Success;
|
|
90
|
+
exports.Button = _Button.Button;
|
|
91
|
+
exports.ButtonNativeProps = _Button.ButtonNativeProps;
|
|
92
|
+
|
|
336
93
|
var _GroupButton = require("./components/atoms/GroupButton");
|
|
337
94
|
|
|
95
|
+
exports.GroupButtonOption = _GroupButton.GroupButtonOption;
|
|
96
|
+
|
|
338
97
|
var _InputPassword = require("./components/molecules/InputPassword");
|
|
339
98
|
|
|
99
|
+
exports.InputPassword = _InputPassword.InputPassword;
|
|
100
|
+
exports.InputPasswordNativeProps = _InputPassword.InputPasswordNativeProps;
|
|
101
|
+
|
|
340
102
|
var _BottomNavigator = require("./components/atoms/BottomNavigator");
|
|
341
103
|
|
|
104
|
+
exports.BottomNavigator = _BottomNavigator.BottomNavigator;
|
|
105
|
+
exports.BottomNavigatorProps = _BottomNavigator.BottomNavigatorProps;
|
|
106
|
+
|
|
342
107
|
var _Tag = require("./components/atoms/Tag");
|
|
343
108
|
|
|
109
|
+
exports.Tag = _Tag.Tag;
|
|
110
|
+
exports.TagProps = _Tag.TagProps;
|
|
111
|
+
|
|
344
112
|
var _SnappingSlider = require("./components/atoms/SnappingSlider");
|
|
345
113
|
|
|
114
|
+
exports.SnappingSlider = _SnappingSlider.SnappingSlider;
|
|
115
|
+
exports.SnappingSliderProps = _SnappingSlider.SnappingSliderProps;
|
|
116
|
+
|
|
346
117
|
var _Badge = require("./components/atoms/Badge");
|
|
347
118
|
|
|
119
|
+
exports.Badge = _Badge.Badge;
|
|
120
|
+
exports.BadgeNativeProps = _Badge.BadgeNativeProps;
|
|
121
|
+
|
|
348
122
|
var _Snackbar = require("./components/molecules/Snackbar");
|
|
349
123
|
|
|
124
|
+
exports.Snackbar = _Snackbar.Snackbar;
|
|
125
|
+
exports.SnackbarNativeProps = _Snackbar.SnackbarNativeProps;
|
|
126
|
+
|
|
350
127
|
var _DatePicker = require("./components/molecules/DatePicker");
|
|
351
128
|
|
|
129
|
+
exports.DatePicker = _DatePicker.DatePicker;
|
|
130
|
+
exports.NativeDatePickerProps = _DatePicker.NativeDatePickerProps;
|
|
131
|
+
|
|
352
132
|
var _DateTimePicker = require("./components/molecules/DateTimePicker");
|
|
353
133
|
|
|
134
|
+
exports.DateTimePicker = _DateTimePicker.DateTimePicker;
|
|
135
|
+
exports.NativeDateTimePickerProps = _DateTimePicker.NativeDateTimePickerProps;
|
|
136
|
+
|
|
354
137
|
var _Avatar = require("./components/atoms/Avatar");
|
|
355
138
|
|
|
139
|
+
exports.Avatar = _Avatar.Avatar;
|
|
140
|
+
|
|
356
141
|
var _Calendar = require("./components/molecules/Calendar");
|
|
357
142
|
|
|
143
|
+
exports.Calendar = _Calendar.Calendar;
|
|
144
|
+
|
|
358
145
|
var _DateTimeSelector = require("./components/molecules/DateTimeSelector");
|
|
359
146
|
|
|
147
|
+
exports.DateTimeSelector = _DateTimeSelector.DateTimeSelector;
|
|
148
|
+
|
|
360
149
|
var _Modal = require("./components/atoms/Modal");
|
|
361
150
|
|
|
151
|
+
exports.ModalGroupManager = _Modal.ModalGroupManager;
|
|
152
|
+
exports.ModalView = _Modal.ModalView;
|
|
153
|
+
exports.ModalLifecycleHandler = _Modal.ModalLifecycleHandler;
|
|
154
|
+
exports.useLazyModalManager = _Modal.useLazyModalManager;
|
|
155
|
+
exports.useModalManager = _Modal.useModalManager;
|
|
156
|
+
exports.IBaseModal = _Modal.IBaseModal;
|
|
157
|
+
|
|
362
158
|
var _Skeleton = require("./components/atoms/Skeleton");
|
|
159
|
+
|
|
160
|
+
exports.Skeleton = _Skeleton.Skeleton;
|
|
161
|
+
exports.SkeletonProps = _Skeleton.SkeletonProps;
|
|
363
162
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;;;;AACA;;;;;AACA;;;;;AACA;;;;;AACA;;;;;AACA;;;;;;;;AAOA;;;;AACA;;;;;AAIA;;;;;AAIA;;;;;AACA;;;;;AAIA;;;;;AACA;;;;;AACA;;;;;AAIA;;;;;AAIA;;;;AACA;;;;AACA;;;;AACA;;;;;;;;;AAQA","sourcesContent":["export * from '@tecsinapse/react-core';\nexport { Header, HeaderProps } from './components/atoms/Header';\nexport { Select, SelectNativeProps } from './components/molecules/Select';\nexport { Input, InputNativeProps } from './components/atoms/Input';\nexport { TextArea, TextAreaProps } from './components/atoms/TextArea';\nexport { Text, TextNativeProps } from './components/atoms/Text';\nexport {\n Error,\n Loading,\n Success,\n Button,\n ButtonNativeProps,\n} from './components/atoms/Button';\nexport { GroupButtonOption } from './components/atoms/GroupButton';\nexport {\n InputPassword,\n InputPasswordNativeProps,\n} from './components/molecules/InputPassword';\nexport {\n BottomNavigator,\n BottomNavigatorProps,\n} from './components/atoms/BottomNavigator';\nexport { Tag, TagProps } from './components/atoms/Tag';\nexport {\n SnappingSlider,\n SnappingSliderProps,\n} from './components/atoms/SnappingSlider';\nexport { Badge, BadgeNativeProps } from './components/atoms/Badge';\nexport { Snackbar, SnackbarNativeProps } from './components/molecules/Snackbar';\nexport {\n DatePicker,\n NativeDatePickerProps,\n} from './components/molecules/DatePicker';\nexport {\n DateTimePicker,\n NativeDateTimePickerProps,\n} from './components/molecules/DateTimePicker';\nexport { Avatar } from './components/atoms/Avatar';\nexport { Calendar } from './components/molecules/Calendar';\nexport { DateTimeSelector } from './components/molecules/DateTimeSelector';\nexport {\n ModalGroupManager,\n ModalView,\n ModalLifecycleHandler,\n useLazyModalManager,\n useModalManager,\n IBaseModal,\n} from './components/atoms/Modal';\nexport { Skeleton, SkeletonProps } from './components/atoms/Skeleton';\n"],"file":"index.js"}
|
package/dist/utils/date.js
CHANGED
package/dist/utils/date.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/date.ts"],"names":["getLocale","locale","Platform","OS","NativeModules","SettingsManager","settings","AppleLocale","AppleLanguages","I18nManager","localeIdentifier","code","replace","dateFnsLocales"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/utils/date.ts"],"names":["getLocale","locale","Platform","OS","NativeModules","SettingsManager","settings","AppleLocale","AppleLanguages","I18nManager","localeIdentifier","code","replace","dateFnsLocales"],"mappings":";;;;;AAAA;;AACA;;;;;;AAEO,MAAMA,SAAS,GAAG,MAAc;AACrC,MAAIC,MAAJ;;AACA,MAAIC,sBAASC,EAAT,KAAgB,KAApB,EAA2B;AACzBF,IAAAA,MAAM,GACJG,2BAAcC,eAAd,CAA8BC,QAA9B,CAAuCC,WAAvC,IACAH,2BAAcC,eAAd,CAA8BC,QAA9B,CAAuCE,cAAvC,CAAsD,CAAtD,CAFF;AAGD,GAJD,MAIO;AACLP,IAAAA,MAAM,GAAGG,2BAAcK,WAAd,CAA0BC,gBAAnC;AACD;;AAED,QAAMC,IAAI,GAAGV,MAAM,CAACW,OAAP,CAAe,GAAf,EAAoB,EAApB,CAAb;AAEA,SAAOC,cAAc,CAACF,IAAD,CAArB;AACD,CAbM","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"],"file":"date.js"}
|
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.16.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "MIT",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@emotion/native": "^11.0.0",
|
|
15
15
|
"@emotion/react": "^11.4.1",
|
|
16
|
-
"@tecsinapse/react-core": "^1.
|
|
16
|
+
"@tecsinapse/react-core": "^1.15.1",
|
|
17
17
|
"react-native-linear-gradient": "^2.5.6"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://tecsinapse.github.io/design-system/",
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"react": "
|
|
30
|
-
"react-native": "
|
|
29
|
+
"react": "^16.8.0 || ^17.0.0",
|
|
30
|
+
"react-native": "^0.64.0",
|
|
31
31
|
"react-native-linear-gradient": "^2.5.6",
|
|
32
32
|
"react-native-safe-area-context": "^3.1.9",
|
|
33
|
-
"react-native-vector-icons": "
|
|
33
|
+
"react-native-vector-icons": "^8.1.0 || ^9.0.0",
|
|
34
34
|
"uuid": "^8.3.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/uuid": "^8.3.3"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "b2b885237c90b782b17e4081871b806b6191e3f2"
|
|
40
40
|
}
|
|
@@ -50,12 +50,18 @@ const Skeleton: React.FC<SkeletonProps> = ({
|
|
|
50
50
|
childrenLayout={childrenLayout}
|
|
51
51
|
/>
|
|
52
52
|
) : (
|
|
53
|
+
<></>
|
|
54
|
+
)}
|
|
55
|
+
|
|
56
|
+
{active && animation === 'pulse' ? (
|
|
53
57
|
<Pulse
|
|
54
58
|
active={active}
|
|
55
59
|
width={width}
|
|
56
60
|
height={height}
|
|
57
61
|
childrenLayout={childrenLayout}
|
|
58
62
|
/>
|
|
63
|
+
) : (
|
|
64
|
+
<></>
|
|
59
65
|
)}
|
|
60
66
|
<View
|
|
61
67
|
onLayout={event => getChildrenLayout(event)}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
HintInputContainer,
|
|
3
|
-
|
|
2
|
+
HintInputContainer,
|
|
3
|
+
InputContainerProps,
|
|
4
|
+
useInputFocus,
|
|
4
5
|
} from '@tecsinapse/react-core';
|
|
5
6
|
import * as React from 'react';
|
|
6
7
|
import { useEffect, useState } from 'react';
|
|
@@ -35,6 +36,10 @@ export interface SelectNativeProps<Data, Type extends 'single' | 'multi'>
|
|
|
35
36
|
selectModalTitle?: string;
|
|
36
37
|
selectModalTitleComponent?: JSX.Element;
|
|
37
38
|
closeOnPick?: boolean;
|
|
39
|
+
controlComponent?: (
|
|
40
|
+
onPress: () => void,
|
|
41
|
+
displayValue?: string
|
|
42
|
+
) => JSX.Element;
|
|
38
43
|
}
|
|
39
44
|
|
|
40
45
|
function Select<Data, Type extends 'single' | 'multi'>({
|
|
@@ -61,6 +66,7 @@ function Select<Data, Type extends 'single' | 'multi'>({
|
|
|
61
66
|
hintComponent,
|
|
62
67
|
hint,
|
|
63
68
|
style,
|
|
69
|
+
controlComponent,
|
|
64
70
|
closeOnPick = type === 'single',
|
|
65
71
|
...rest
|
|
66
72
|
}: SelectNativeProps<Data, Type>): JSX.Element {
|
|
@@ -71,7 +77,7 @@ function Select<Data, Type extends 'single' | 'multi'>({
|
|
|
71
77
|
);
|
|
72
78
|
|
|
73
79
|
const [selectOptions, setSelectOptions] = useState<Data[]>([]);
|
|
74
|
-
const modal = useLazyModalManager()
|
|
80
|
+
const modal = useLazyModalManager();
|
|
75
81
|
|
|
76
82
|
// TODO: Add Skeleton to modal height when loading is true
|
|
77
83
|
const [loading, setLoading] = useState<boolean>(false);
|
|
@@ -147,7 +153,7 @@ function Select<Data, Type extends 'single' | 'multi'>({
|
|
|
147
153
|
} catch (e) {
|
|
148
154
|
// TODO: Catch error
|
|
149
155
|
} finally {
|
|
150
|
-
modal.requestUpdate()
|
|
156
|
+
modal.requestUpdate();
|
|
151
157
|
setLoading(false);
|
|
152
158
|
}
|
|
153
159
|
}
|
|
@@ -201,37 +207,41 @@ function Select<Data, Type extends 'single' | 'multi'>({
|
|
|
201
207
|
onClose={handleBlur}
|
|
202
208
|
closeOnPick={closeOnPick}
|
|
203
209
|
/>
|
|
204
|
-
)
|
|
205
|
-
|
|
210
|
+
);
|
|
211
|
+
|
|
206
212
|
const handlePressInput = async () => {
|
|
207
|
-
modal.show()
|
|
213
|
+
modal.show();
|
|
208
214
|
handleFocus();
|
|
209
215
|
await handleLazyFocus();
|
|
210
216
|
};
|
|
211
217
|
|
|
212
218
|
return (
|
|
213
219
|
<>
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
{
|
|
233
|
-
|
|
234
|
-
|
|
220
|
+
{controlComponent ? (
|
|
221
|
+
controlComponent(handlePressInput, getDisplayValue() || '')
|
|
222
|
+
) : (
|
|
223
|
+
<HintInputContainer
|
|
224
|
+
viewStyle={style}
|
|
225
|
+
onPress={handlePressInput}
|
|
226
|
+
focused={focused}
|
|
227
|
+
disabled={disabled}
|
|
228
|
+
LabelComponent={Text}
|
|
229
|
+
variant={variant}
|
|
230
|
+
hint={hint}
|
|
231
|
+
hintComponent={hintComponent}
|
|
232
|
+
rightComponent={
|
|
233
|
+
<>
|
|
234
|
+
<SelectIcon name="chevron-down" type="ionicon" size="centi" />
|
|
235
|
+
{rightComponent}
|
|
236
|
+
</>
|
|
237
|
+
}
|
|
238
|
+
{...rest}
|
|
239
|
+
>
|
|
240
|
+
<StyledSelectionText fontWeight="bold" disabled={disabled}>
|
|
241
|
+
{getDisplayValue() || ' '}
|
|
242
|
+
</StyledSelectionText>
|
|
243
|
+
</HintInputContainer>
|
|
244
|
+
)}
|
|
235
245
|
</>
|
|
236
246
|
);
|
|
237
247
|
}
|