sapo-components-ui-rn 1.1.67 → 1.1.68
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/dist/index.esm.js
CHANGED
|
@@ -268,7 +268,7 @@ var ref = {
|
|
|
268
268
|
iconInfoDefault: blue.BLUE100,
|
|
269
269
|
iconPrimaryDefault: ink.INK40,
|
|
270
270
|
iconPrimaryHover: ink.INK60,
|
|
271
|
-
iconPrimaryDisabled: ink.
|
|
271
|
+
iconPrimaryDisabled: ink.INK20,
|
|
272
272
|
iconPrimaryInverseDefault: white.WHITE100,
|
|
273
273
|
iconPrimaryInverseHover: white.WHITE80,
|
|
274
274
|
iconPrimaryInversePressed: white.WHITE80,
|
|
@@ -429,7 +429,7 @@ var ref = {
|
|
|
429
429
|
iconInfoDefault: blue.BLUE100,
|
|
430
430
|
iconPrimaryDefault: ink.INK40,
|
|
431
431
|
iconPrimaryHover: ink.INK60,
|
|
432
|
-
iconPrimaryDisabled: ink.
|
|
432
|
+
iconPrimaryDisabled: ink.INK20,
|
|
433
433
|
iconPrimaryInverseDefault: white.WHITE100,
|
|
434
434
|
iconPrimaryInverseHover: white.WHITE80,
|
|
435
435
|
iconPrimaryInversePressed: white.WHITE80,
|
|
@@ -6547,7 +6547,7 @@ var Toast = memoWithRef(function (_props, ref) {
|
|
|
6547
6547
|
var viewVisibleAnimatedRef = useRef(null);
|
|
6548
6548
|
var _b = useSafeAreaInsets(), bottom = _b.bottom, top = _b.top;
|
|
6549
6549
|
var _c = useState({
|
|
6550
|
-
position: POSITION.
|
|
6550
|
+
position: POSITION.TOP,
|
|
6551
6551
|
type: "success",
|
|
6552
6552
|
title: "Thông báo",
|
|
6553
6553
|
spacer: "normal",
|
|
@@ -6556,7 +6556,7 @@ var Toast = memoWithRef(function (_props, ref) {
|
|
|
6556
6556
|
var colors = theme.colors;
|
|
6557
6557
|
var TIME_OUT = useRef(null);
|
|
6558
6558
|
var show = function (_a) {
|
|
6559
|
-
var message = _a.message, _b = _a.duration, duration = _b === void 0 ? 1000 : _b, _c = _a.position, position = _c === void 0 ? POSITION.
|
|
6559
|
+
var message = _a.message, _b = _a.duration, duration = _b === void 0 ? 1000 : _b, _c = _a.position, position = _c === void 0 ? POSITION.TOP : _c, _d = _a.type, type = _d === void 0 ? "success" : _d, onPress = _a.onPress, _e = _a.title, title = _e === void 0 ? "Thông báo" : _e, _f = _a.spacer, spacer = _f === void 0 ? "normal" : _f;
|
|
6560
6560
|
if (!TIME_OUT.current) {
|
|
6561
6561
|
handleShow({
|
|
6562
6562
|
message: message,
|