@servesall/atoms 1.1.16 → 1.1.19
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/bundle.cjs.js +165 -60
- package/dist/bundle.esm.js +163 -62
- package/dist/bundle.umd.js +165 -60
- package/package.json +5 -4
- package/src/Buttons/RoundButton/RoundButton.style.js +11 -1
- package/src/Buttons/RoundedButton/RoundedButton.style.js +11 -1
- package/src/Inputs/InputNormal/index.js +26 -1
- package/src/Layout/BorderBottom.js +10 -0
- package/src/Layout/BorderBox.js +8 -0
- package/src/Layout/BorderTop.js +8 -0
- package/src/Layout/Box.js +1 -1
- package/src/Layout/Center.js +7 -7
- package/src/Layout/CenterLeft.js +7 -7
- package/src/Layout/CenterRight.js +7 -7
- package/src/Layout/ImageWrapper.js +10 -0
- package/src/Layout/Layout.style.js +51 -25
- package/src/Layout/Margin.js +7 -7
- package/src/Layout/MarginBottom.js +7 -7
- package/src/Layout/MarginHorizontal.js +7 -7
- package/src/Layout/MarginLeft.js +1 -1
- package/src/Layout/MarginRight.js +1 -1
- package/src/Layout/MarginTop.js +1 -1
- package/src/Layout/MarginVertical.js +7 -7
- package/src/Layout/Padding.js +7 -7
- package/src/Layout/PaddingBottom.js +1 -1
- package/src/Layout/PaddingHorizontal.js +7 -7
- package/src/Layout/PaddingLeft.js +1 -1
- package/src/Layout/PaddingRight.js +1 -1
- package/src/Layout/PaddingTop.js +1 -1
- package/src/Layout/PaddingVertical.js +7 -7
- package/src/Layout/RoundedTopBox.js +1 -1
- package/src/Layout/Stretch.js +7 -7
- package/src/Layout/WebSmallWrapper.js +7 -8
- package/src/Layout/index.js +8 -0
- package/src/SlideToConfirm/Swipe.style.js +1 -1
- package/src/SlideToConfirm/index.js +13 -2
- package/src/SplashScreen/SplashScreen.style.js +6 -0
- package/src/SplashScreen/assets/bootsplash_logo.png +0 -0
- package/src/SplashScreen/assets/bootsplash_logo@1,5x.png +0 -0
- package/src/SplashScreen/assets/bootsplash_logo@2x.png +0 -0
- package/src/SplashScreen/assets/bootsplash_logo@3x.png +0 -0
- package/src/SplashScreen/assets/bootsplash_logo@4x.png +0 -0
- package/src/SplashScreen/assets/bootsplash_manifest.json +7 -0
- package/src/SplashScreen/assets/penguinOriginal.svg +20 -0
- package/src/SplashScreen/index.js +69 -0
- package/src/index.js +10 -0
package/dist/bundle.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useState, useRef, useCallback, useMemo } from 'react';
|
|
2
2
|
import styled, { ThemeProvider, ThemeContext } from 'styled-components/native';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { Platform, KeyboardAvoidingView, Dimensions, SafeAreaView, FlatList as FlatList$1, View, StatusBar, Pressable,
|
|
4
|
+
import { Platform, KeyboardAvoidingView, Keyboard, Dimensions, SafeAreaView, FlatList as FlatList$1, View, StatusBar, Pressable, TouchableHighlight, Image } from 'react-native';
|
|
5
5
|
import Animated, { useSharedValue, useAnimatedStyle, withTiming, Easing, withRepeat, runOnJS, withSequence, withDelay, useAnimatedGestureHandler, withSpring, interpolate, interpolateColor, Extrapolate } from 'react-native-reanimated';
|
|
6
6
|
import { TouchableWithoutFeedback, PanGestureHandler } from 'react-native-gesture-handler';
|
|
7
7
|
import LottieView from 'lottie-react-native';
|
|
@@ -544,126 +544,126 @@ SpanText.propTypes = {
|
|
|
544
544
|
style: PropTypes.object
|
|
545
545
|
};
|
|
546
546
|
|
|
547
|
-
var _templateObject$m, _templateObject2$d, _templateObject3$6, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22;
|
|
547
|
+
var _templateObject$m, _templateObject2$d, _templateObject3$6, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26;
|
|
548
548
|
var DEFAULT_FLEX_DIRECTION = Platform.OS === "web" ? "column" : "column";
|
|
549
|
-
var CenterElement = styled.View(_templateObject$m || (_templateObject$m = _taggedTemplateLiteral(["\n align-items: center;\n justify-content: center;\n flex: 1;\n
|
|
550
|
-
return props.
|
|
549
|
+
var CenterElement = styled.View(_templateObject$m || (_templateObject$m = _taggedTemplateLiteral(["\n align-items: center;\n justify-content: center;\n flex: 1;\n flexdirection: ", ";\n ", ";\n"])), function (props) {
|
|
550
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
551
551
|
}, function (props) {
|
|
552
552
|
return props.style;
|
|
553
553
|
});
|
|
554
554
|
var CenterLeftElement = styled.View(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteral(["\n align-items: ", ";\n justify-content: ", ";\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
555
|
-
return (props.
|
|
555
|
+
return (props.direction || DEFAULT_FLEX_DIRECTION) === "row" ? "center" : "flex-start";
|
|
556
556
|
}, function (props) {
|
|
557
|
-
return (props.
|
|
557
|
+
return (props.direction || DEFAULT_FLEX_DIRECTION) === "row" ? "flex-start" : "center";
|
|
558
558
|
}, function (props) {
|
|
559
|
-
return props.
|
|
559
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
560
560
|
}, function (props) {
|
|
561
561
|
return props.style;
|
|
562
562
|
});
|
|
563
563
|
var CenterRightElement = styled.View(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteral(["\n align-items: ", ";\n justify-content: ", ";\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
564
|
-
return (props.
|
|
564
|
+
return (props.direction || DEFAULT_FLEX_DIRECTION) === "row" ? "center" : "flex-end";
|
|
565
565
|
}, function (props) {
|
|
566
|
-
return (props.
|
|
566
|
+
return (props.direction || DEFAULT_FLEX_DIRECTION) === "row" ? "flex-end" : "center";
|
|
567
567
|
}, function (props) {
|
|
568
|
-
return props.
|
|
568
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
569
569
|
}, function (props) {
|
|
570
570
|
return props.style;
|
|
571
571
|
});
|
|
572
572
|
var MarginElement = styled.View(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
573
573
|
return props.theme.margin;
|
|
574
574
|
}, function (props) {
|
|
575
|
-
return props.
|
|
575
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
576
576
|
}, function (props) {
|
|
577
577
|
return props.style;
|
|
578
578
|
});
|
|
579
579
|
var MarginHorizontalElement = styled.View(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin: 0 ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
580
580
|
return props.theme.margin;
|
|
581
581
|
}, function (props) {
|
|
582
|
-
return props.
|
|
582
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
583
583
|
}, function (props) {
|
|
584
584
|
return props.style;
|
|
585
585
|
});
|
|
586
586
|
var MarginVerticalElement = styled.View(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin: ", " 0;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
587
587
|
return props.theme.margin;
|
|
588
588
|
}, function (props) {
|
|
589
|
-
return props.
|
|
589
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
590
590
|
}, function (props) {
|
|
591
591
|
return props.style;
|
|
592
592
|
});
|
|
593
593
|
var MarginBottomElement = styled.View(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
594
594
|
return props.theme.margin;
|
|
595
595
|
}, function (props) {
|
|
596
|
-
return props.
|
|
596
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
597
597
|
}, function (props) {
|
|
598
598
|
return props.style;
|
|
599
599
|
});
|
|
600
600
|
var MarginTopElement = styled.View(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin-top: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
601
601
|
return props.theme.margin;
|
|
602
602
|
}, function (props) {
|
|
603
|
-
return props.
|
|
603
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
604
604
|
}, function (props) {
|
|
605
605
|
return props.style;
|
|
606
606
|
});
|
|
607
607
|
var MarginRightElement = styled.View(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n margin-right: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
608
608
|
return props.theme.margin;
|
|
609
609
|
}, function (props) {
|
|
610
|
-
return props.
|
|
610
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
611
611
|
}, function (props) {
|
|
612
612
|
return props.style;
|
|
613
613
|
});
|
|
614
614
|
var MarginLeftElement = styled.View(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin-left: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
615
615
|
return props.theme.margin;
|
|
616
616
|
}, function (props) {
|
|
617
|
-
return props.
|
|
617
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
618
618
|
}, function (props) {
|
|
619
619
|
return props.style;
|
|
620
620
|
});
|
|
621
621
|
var PaddingElement = styled.View(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n padding: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
622
622
|
return props.theme.padding;
|
|
623
623
|
}, function (props) {
|
|
624
|
-
return props.
|
|
624
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
625
625
|
}, function (props) {
|
|
626
626
|
return props.style;
|
|
627
627
|
});
|
|
628
628
|
var PaddingHorizontalElement = styled.View(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n padding: 0 ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
629
629
|
return props.theme.padding;
|
|
630
630
|
}, function (props) {
|
|
631
|
-
return props.
|
|
631
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
632
632
|
}, function (props) {
|
|
633
633
|
return props.style;
|
|
634
634
|
});
|
|
635
635
|
var PaddingVerticalElement = styled.View(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n padding: ", " 0;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
636
636
|
return props.theme.padding;
|
|
637
637
|
}, function (props) {
|
|
638
|
-
return props.
|
|
638
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
639
639
|
}, function (props) {
|
|
640
640
|
return props.style;
|
|
641
641
|
});
|
|
642
642
|
var PaddingTopElement = styled.View(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n padding-top: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
643
643
|
return props.theme.padding;
|
|
644
644
|
}, function (props) {
|
|
645
|
-
return props.
|
|
645
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
646
646
|
}, function (props) {
|
|
647
647
|
return props.style;
|
|
648
648
|
});
|
|
649
649
|
var PaddingBottomElement = styled.View(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n padding-bottom: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
650
650
|
return props.theme.padding;
|
|
651
651
|
}, function (props) {
|
|
652
|
-
return props.
|
|
652
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
653
653
|
}, function (props) {
|
|
654
654
|
return props.style;
|
|
655
655
|
});
|
|
656
656
|
var PaddingLeftElement = styled.View(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n padding-left: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
657
657
|
return props.theme.padding;
|
|
658
658
|
}, function (props) {
|
|
659
|
-
return props.
|
|
659
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
660
660
|
}, function (props) {
|
|
661
661
|
return props.style;
|
|
662
662
|
});
|
|
663
663
|
var PaddingRightElement = styled.View(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n padding-right: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
664
664
|
return props.theme.padding;
|
|
665
665
|
}, function (props) {
|
|
666
|
-
return props.
|
|
666
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
667
667
|
}, function (props) {
|
|
668
668
|
return props.style;
|
|
669
669
|
});
|
|
@@ -671,25 +671,49 @@ var RowElement = styled.View(_templateObject18 || (_templateObject18 = _taggedTe
|
|
|
671
671
|
return props.style;
|
|
672
672
|
});
|
|
673
673
|
var StretchElement = styled.View(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n align-items: stretch;\n align-self: stretch;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
674
|
-
return props.
|
|
674
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
675
675
|
}, function (props) {
|
|
676
676
|
return props.style;
|
|
677
677
|
});
|
|
678
678
|
var BoxElement = styled.View(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
679
|
-
return props.
|
|
679
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
680
680
|
}, function (props) {
|
|
681
681
|
return props.style;
|
|
682
682
|
});
|
|
683
|
-
var
|
|
684
|
-
return props.
|
|
683
|
+
var BorderBottomElement = styled.View(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n border-bottom-width: 2px;\n border-color: ", ";\n ", ";\n"])), function (props) {
|
|
684
|
+
return props.theme.color7;
|
|
685
685
|
}, function (props) {
|
|
686
686
|
return props.style;
|
|
687
687
|
});
|
|
688
|
-
var
|
|
689
|
-
return props.
|
|
688
|
+
var BorderTopElement = styled.View(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n border-top-width: 2px;\n border-color: ", ";\n ", ";\n"])), function (props) {
|
|
689
|
+
return props.theme.color7;
|
|
690
690
|
}, function (props) {
|
|
691
691
|
return props.style;
|
|
692
692
|
});
|
|
693
|
+
var BorderBoxElement = styled.View(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n border-width: 2px;\n border-color: ", ";\n border-radius: ", ";\n ", ";\n"])), function (props) {
|
|
694
|
+
return props.theme.color7;
|
|
695
|
+
}, function (props) {
|
|
696
|
+
return props.theme.borderRadiusSmall;
|
|
697
|
+
}, function (props) {
|
|
698
|
+
return props.style;
|
|
699
|
+
});
|
|
700
|
+
var FullScreenElement = styled.View(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 11;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
701
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
702
|
+
}, function (props) {
|
|
703
|
+
return props.style;
|
|
704
|
+
});
|
|
705
|
+
var WebSmallWrapperElement = styled.View(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n flex-direction: ", ";\n width: 500px;\n ", ";\n"])), function (props) {
|
|
706
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
707
|
+
}, function (props) {
|
|
708
|
+
return props.style;
|
|
709
|
+
});
|
|
710
|
+
var ImageWrapperElement = styled.View(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n border-radius: ", ";\n background-color: ", ";\n overflow: hidden;\n ", ";\n"])), function (props) {
|
|
711
|
+
return props.theme.borderRadiusSmall;
|
|
712
|
+
}, function (props) {
|
|
713
|
+
return props.theme.color7;
|
|
714
|
+
}, function (props) {
|
|
715
|
+
return props.styles;
|
|
716
|
+
});
|
|
693
717
|
|
|
694
718
|
var Center = function Center(_ref) {
|
|
695
719
|
var children = _ref.children,
|
|
@@ -698,7 +722,7 @@ var Center = function Center(_ref) {
|
|
|
698
722
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
699
723
|
return /*#__PURE__*/React.createElement(CenterElement, {
|
|
700
724
|
style: style,
|
|
701
|
-
|
|
725
|
+
direction: direction
|
|
702
726
|
}, children);
|
|
703
727
|
};
|
|
704
728
|
|
|
@@ -709,7 +733,7 @@ var CenterLeft = function CenterLeft(_ref) {
|
|
|
709
733
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
710
734
|
return /*#__PURE__*/React.createElement(CenterLeftElement, {
|
|
711
735
|
style: style,
|
|
712
|
-
|
|
736
|
+
direction: direction
|
|
713
737
|
}, children);
|
|
714
738
|
};
|
|
715
739
|
|
|
@@ -720,7 +744,7 @@ var CenterRight = function CenterRight(_ref) {
|
|
|
720
744
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
721
745
|
return /*#__PURE__*/React.createElement(CenterRightElement, {
|
|
722
746
|
style: style,
|
|
723
|
-
|
|
747
|
+
direction: direction
|
|
724
748
|
}, children);
|
|
725
749
|
};
|
|
726
750
|
|
|
@@ -731,7 +755,7 @@ var Margin = function Margin(_ref) {
|
|
|
731
755
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
732
756
|
return /*#__PURE__*/React.createElement(MarginElement, {
|
|
733
757
|
style: style,
|
|
734
|
-
|
|
758
|
+
direction: direction
|
|
735
759
|
}, children);
|
|
736
760
|
};
|
|
737
761
|
|
|
@@ -742,7 +766,7 @@ var MarginHorizontal = function MarginHorizontal(_ref) {
|
|
|
742
766
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
743
767
|
return /*#__PURE__*/React.createElement(MarginHorizontalElement, {
|
|
744
768
|
style: style,
|
|
745
|
-
|
|
769
|
+
direction: direction
|
|
746
770
|
}, children);
|
|
747
771
|
};
|
|
748
772
|
|
|
@@ -753,7 +777,7 @@ var MarginVertical = function MarginVertical(_ref) {
|
|
|
753
777
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
754
778
|
return /*#__PURE__*/React.createElement(MarginVerticalElement, {
|
|
755
779
|
style: style,
|
|
756
|
-
|
|
780
|
+
direction: direction
|
|
757
781
|
}, children);
|
|
758
782
|
};
|
|
759
783
|
|
|
@@ -764,7 +788,7 @@ var MarginBottom = function MarginBottom(_ref) {
|
|
|
764
788
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
765
789
|
return /*#__PURE__*/React.createElement(MarginBottomElement, {
|
|
766
790
|
style: style,
|
|
767
|
-
|
|
791
|
+
direction: direction
|
|
768
792
|
}, children);
|
|
769
793
|
};
|
|
770
794
|
|
|
@@ -775,7 +799,7 @@ var MarginTop = function MarginTop(_ref) {
|
|
|
775
799
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
776
800
|
return /*#__PURE__*/React.createElement(MarginTopElement, {
|
|
777
801
|
style: style,
|
|
778
|
-
|
|
802
|
+
direction: direction
|
|
779
803
|
}, children);
|
|
780
804
|
};
|
|
781
805
|
|
|
@@ -786,7 +810,7 @@ var MarginRight = function MarginRight(_ref) {
|
|
|
786
810
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
787
811
|
return /*#__PURE__*/React.createElement(MarginRightElement, {
|
|
788
812
|
style: style,
|
|
789
|
-
|
|
813
|
+
direction: direction
|
|
790
814
|
}, children);
|
|
791
815
|
};
|
|
792
816
|
|
|
@@ -797,7 +821,7 @@ var MarginLeft = function MarginLeft(_ref) {
|
|
|
797
821
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
798
822
|
return /*#__PURE__*/React.createElement(MarginLeftElement, {
|
|
799
823
|
style: style,
|
|
800
|
-
|
|
824
|
+
direction: direction
|
|
801
825
|
}, children);
|
|
802
826
|
};
|
|
803
827
|
|
|
@@ -808,7 +832,7 @@ var Padding = function Padding(_ref) {
|
|
|
808
832
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
809
833
|
return /*#__PURE__*/React.createElement(PaddingElement, {
|
|
810
834
|
style: style,
|
|
811
|
-
|
|
835
|
+
direction: direction
|
|
812
836
|
}, children);
|
|
813
837
|
};
|
|
814
838
|
|
|
@@ -819,7 +843,7 @@ var PaddingHorizontal = function PaddingHorizontal(_ref) {
|
|
|
819
843
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
820
844
|
return /*#__PURE__*/React.createElement(PaddingHorizontalElement, {
|
|
821
845
|
style: style,
|
|
822
|
-
|
|
846
|
+
direction: direction
|
|
823
847
|
}, children);
|
|
824
848
|
};
|
|
825
849
|
|
|
@@ -830,7 +854,7 @@ var PaddingVertical = function PaddingVertical(_ref) {
|
|
|
830
854
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
831
855
|
return /*#__PURE__*/React.createElement(PaddingVerticalElement, {
|
|
832
856
|
style: style,
|
|
833
|
-
|
|
857
|
+
direction: direction
|
|
834
858
|
}, children);
|
|
835
859
|
};
|
|
836
860
|
|
|
@@ -841,7 +865,7 @@ var PaddingTop = function PaddingTop(_ref) {
|
|
|
841
865
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
842
866
|
return /*#__PURE__*/React.createElement(PaddingTopElement, {
|
|
843
867
|
style: style,
|
|
844
|
-
|
|
868
|
+
direction: direction
|
|
845
869
|
}, children);
|
|
846
870
|
};
|
|
847
871
|
|
|
@@ -852,7 +876,7 @@ var PaddingBottom = function PaddingBottom(_ref) {
|
|
|
852
876
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
853
877
|
return /*#__PURE__*/React.createElement(PaddingBottomElement, {
|
|
854
878
|
style: style,
|
|
855
|
-
|
|
879
|
+
direction: direction
|
|
856
880
|
}, children);
|
|
857
881
|
};
|
|
858
882
|
|
|
@@ -863,7 +887,7 @@ var PaddingLeft = function PaddingLeft(_ref) {
|
|
|
863
887
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
864
888
|
return /*#__PURE__*/React.createElement(PaddingLeftElement, {
|
|
865
889
|
style: style,
|
|
866
|
-
|
|
890
|
+
direction: direction
|
|
867
891
|
}, children);
|
|
868
892
|
};
|
|
869
893
|
|
|
@@ -874,7 +898,7 @@ var PaddingRight = function PaddingRight(_ref) {
|
|
|
874
898
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
875
899
|
return /*#__PURE__*/React.createElement(PaddingRightElement, {
|
|
876
900
|
style: style,
|
|
877
|
-
|
|
901
|
+
direction: direction
|
|
878
902
|
}, children);
|
|
879
903
|
};
|
|
880
904
|
|
|
@@ -893,7 +917,7 @@ var Stretch = function Stretch(_ref) {
|
|
|
893
917
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
894
918
|
return /*#__PURE__*/React.createElement(StretchElement, {
|
|
895
919
|
style: style,
|
|
896
|
-
|
|
920
|
+
direction: direction
|
|
897
921
|
}, children);
|
|
898
922
|
};
|
|
899
923
|
|
|
@@ -912,7 +936,7 @@ var WebSmallWrapper = function WebSmallWrapper(_ref) {
|
|
|
912
936
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
913
937
|
return /*#__PURE__*/React.createElement(WebSmallWrapperElement, {
|
|
914
938
|
style: style,
|
|
915
|
-
|
|
939
|
+
direction: direction
|
|
916
940
|
}, children);
|
|
917
941
|
};
|
|
918
942
|
|
|
@@ -927,7 +951,7 @@ var Box = function Box(_ref) {
|
|
|
927
951
|
style: _objectSpread2({
|
|
928
952
|
backgroundColor: color
|
|
929
953
|
}, style),
|
|
930
|
-
|
|
954
|
+
direction: direction
|
|
931
955
|
}, children);
|
|
932
956
|
};
|
|
933
957
|
|
|
@@ -945,7 +969,40 @@ var RoundedTopBox = function RoundedTopBox(_ref) {
|
|
|
945
969
|
borderTopRightRadius: 30,
|
|
946
970
|
overflow: "hidden"
|
|
947
971
|
}, style),
|
|
948
|
-
|
|
972
|
+
direction: direction
|
|
973
|
+
}, children);
|
|
974
|
+
};
|
|
975
|
+
|
|
976
|
+
var BorderBottom = function BorderBottom(_ref) {
|
|
977
|
+
var children = _ref.children,
|
|
978
|
+
style = _ref.style;
|
|
979
|
+
return /*#__PURE__*/React.createElement(BorderBottomElement, {
|
|
980
|
+
style: _objectSpread2({}, style)
|
|
981
|
+
}, children);
|
|
982
|
+
};
|
|
983
|
+
|
|
984
|
+
var BorderTop = function BorderTop(_ref) {
|
|
985
|
+
var children = _ref.children,
|
|
986
|
+
style = _ref.style;
|
|
987
|
+
return /*#__PURE__*/React.createElement(BorderTopElement, {
|
|
988
|
+
style: _objectSpread2({}, style)
|
|
989
|
+
}, children);
|
|
990
|
+
};
|
|
991
|
+
|
|
992
|
+
var BorderBox = function BorderBox(_ref) {
|
|
993
|
+
var children = _ref.children,
|
|
994
|
+
style = _ref.style;
|
|
995
|
+
return /*#__PURE__*/React.createElement(BorderBoxElement, {
|
|
996
|
+
style: _objectSpread2({}, style)
|
|
997
|
+
}, children);
|
|
998
|
+
};
|
|
999
|
+
|
|
1000
|
+
var ImageWrapper = function ImageWrapper(_ref) {
|
|
1001
|
+
var children = _ref.children;
|
|
1002
|
+
_ref.box;
|
|
1003
|
+
var style = _ref.style;
|
|
1004
|
+
return /*#__PURE__*/React.createElement(ImageWrapperElement, {
|
|
1005
|
+
style: _objectSpread2({}, style)
|
|
949
1006
|
}, children);
|
|
950
1007
|
};
|
|
951
1008
|
|
|
@@ -1356,7 +1413,9 @@ var Input = function Input(_ref) {
|
|
|
1356
1413
|
_ref$isLeftBound = _ref.isLeftBound,
|
|
1357
1414
|
isLeftBound = _ref$isLeftBound === void 0 ? false : _ref$isLeftBound,
|
|
1358
1415
|
_ref$euro = _ref.euro,
|
|
1359
|
-
euro = _ref$euro === void 0 ? false : _ref$euro
|
|
1416
|
+
euro = _ref$euro === void 0 ? false : _ref$euro,
|
|
1417
|
+
_ref$focused = _ref.focused,
|
|
1418
|
+
focused = _ref$focused === void 0 ? function () {} : _ref$focused;
|
|
1360
1419
|
|
|
1361
1420
|
var _useState = useState(false),
|
|
1362
1421
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1369,25 +1428,44 @@ var Input = function Input(_ref) {
|
|
|
1369
1428
|
setTextValue = _useState4[1];
|
|
1370
1429
|
|
|
1371
1430
|
var inputRef = useRef();
|
|
1431
|
+
useEffect(function () {
|
|
1432
|
+
focused();
|
|
1433
|
+
}, [isFocused]);
|
|
1372
1434
|
useEffect(function () {
|
|
1373
1435
|
textChange(textValue);
|
|
1374
1436
|
}, [textValue]);
|
|
1437
|
+
useEffect(function () {
|
|
1438
|
+
defaultValue && setTextValue(defaultValue);
|
|
1439
|
+
}, [defaultValue]);
|
|
1375
1440
|
useEffect(function () {
|
|
1376
1441
|
var _inputRef$current;
|
|
1377
1442
|
|
|
1378
1443
|
autoFocus && ((_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus());
|
|
1379
1444
|
}, [autoFocus]);
|
|
1445
|
+
|
|
1446
|
+
function blurTextInput() {
|
|
1447
|
+
var _inputRef$current2;
|
|
1448
|
+
|
|
1449
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.blur();
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
useEffect(function () {
|
|
1453
|
+
var keyboardDidHideSubscription = Keyboard.addListener("keyboardDidHide", blurTextInput);
|
|
1454
|
+
return function () {
|
|
1455
|
+
keyboardDidHideSubscription === null || keyboardDidHideSubscription === void 0 ? void 0 : keyboardDidHideSubscription.remove();
|
|
1456
|
+
};
|
|
1457
|
+
}, []);
|
|
1380
1458
|
return /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
|
|
1381
1459
|
behavior: Platform.OS === "ios" ? "padding" : "height",
|
|
1382
1460
|
keyboardVerticalOffset: keyboardVerticalOffset
|
|
1383
1461
|
}, /*#__PURE__*/React.createElement(InputWrapper$1, {
|
|
1384
1462
|
onPress: function onPress() {
|
|
1385
|
-
var _inputRef$
|
|
1463
|
+
var _inputRef$current3;
|
|
1386
1464
|
|
|
1387
1465
|
_onPress();
|
|
1388
1466
|
|
|
1389
1467
|
editable && setIsFocused(true);
|
|
1390
|
-
editable && ((_inputRef$
|
|
1468
|
+
editable && ((_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.focus());
|
|
1391
1469
|
}
|
|
1392
1470
|
}, /*#__PURE__*/React.createElement(BorderWrapper$2, {
|
|
1393
1471
|
isRightBound: isRightBound,
|
|
@@ -1424,7 +1502,8 @@ var Input = function Input(_ref) {
|
|
|
1424
1502
|
editable: editable,
|
|
1425
1503
|
active: isFocused,
|
|
1426
1504
|
style: style,
|
|
1427
|
-
returnKeyType: "done"
|
|
1505
|
+
returnKeyType: "done",
|
|
1506
|
+
onSubmitEditing: blurTextInput
|
|
1428
1507
|
}))))));
|
|
1429
1508
|
};
|
|
1430
1509
|
|
|
@@ -1692,7 +1771,15 @@ var TextBtn = function TextBtn(_ref) {
|
|
|
1692
1771
|
var _templateObject$f, _templateObject2$6;
|
|
1693
1772
|
styled.View(_templateObject$f || (_templateObject$f = _taggedTemplateLiteral([""])));
|
|
1694
1773
|
var ButtonStyle$4 = styled.Pressable(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteral(["\n min-height: ", ";\n width: 100%;\n border-radius: ", ";\n background-color: ", ";\n ", ";\n"])), function (props) {
|
|
1695
|
-
|
|
1774
|
+
if (props.size === "big") {
|
|
1775
|
+
return "60px";
|
|
1776
|
+
} else if (props.size === "small") {
|
|
1777
|
+
return "54px";
|
|
1778
|
+
} else if (props.size === "xsmall") {
|
|
1779
|
+
return "44px";
|
|
1780
|
+
} else {
|
|
1781
|
+
return "54px";
|
|
1782
|
+
}
|
|
1696
1783
|
}, function (props) {
|
|
1697
1784
|
return props.smallBorder ? props.theme.borderRadiusSmall : props.theme.borderRadiusMedium;
|
|
1698
1785
|
}, function (props) {
|
|
@@ -1749,7 +1836,15 @@ var RoundedBtn$1 = function RoundedBtn(_ref) {
|
|
|
1749
1836
|
var _templateObject$e, _templateObject2$5;
|
|
1750
1837
|
styled.View(_templateObject$e || (_templateObject$e = _taggedTemplateLiteral([""])));
|
|
1751
1838
|
var ButtonStyle$3 = styled.Pressable(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteral(["\n min-height: ", ";\n border-radius: 50px;\n background-color: ", ";\n opacity: ", ";\n ", ";\n"])), function (props) {
|
|
1752
|
-
|
|
1839
|
+
if (props.size === "big") {
|
|
1840
|
+
return "70px";
|
|
1841
|
+
} else if (props.size === "small") {
|
|
1842
|
+
return "56px";
|
|
1843
|
+
} else if (props.size === "xsmall") {
|
|
1844
|
+
return "40px";
|
|
1845
|
+
} else {
|
|
1846
|
+
return "70px";
|
|
1847
|
+
}
|
|
1753
1848
|
}, function (props) {
|
|
1754
1849
|
return props.color;
|
|
1755
1850
|
}, function (props) {
|
|
@@ -51962,12 +52057,12 @@ function Switch(_ref2) {
|
|
|
51962
52057
|
|
|
51963
52058
|
var _templateObject$1, _templateObject2$1, _templateObject3;
|
|
51964
52059
|
var Wrapper$1 = styled.View(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n flex: 1;\n"])));
|
|
51965
|
-
|
|
52060
|
+
styled(Animated.View)(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteral(["\n width: 100%;\n border-radius: ", ";\n overflow: hidden;\n padding: 8px;\n border-width: 2px;\n ", ";\n"])), function (props) {
|
|
51966
52061
|
return props.theme.borderRadius;
|
|
51967
52062
|
}, function (props) {
|
|
51968
52063
|
return props.style;
|
|
51969
52064
|
});
|
|
51970
|
-
var RoundSlider = styled.View(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 62px;\n height: 52px;\n background-color: ", ";\n border-radius: ", ";\n border-width: 2px;\n ", ";\n"])), function (props) {
|
|
52065
|
+
var RoundSlider = styled(Animated.View)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 62px;\n height: 52px;\n background-color: ", ";\n border-radius: ", ";\n border-width: 2px;\n ", ";\n"])), function (props) {
|
|
51971
52066
|
return props.theme.color1;
|
|
51972
52067
|
}, function (props) {
|
|
51973
52068
|
return props.theme.borderRadiusMedium;
|
|
@@ -52063,8 +52158,14 @@ var SwipeButton = function SwipeButton(_ref) {
|
|
|
52063
52158
|
});
|
|
52064
52159
|
return /*#__PURE__*/React.createElement(Wrapper$1, {
|
|
52065
52160
|
onLayout: onLayout
|
|
52066
|
-
}, /*#__PURE__*/React.createElement(
|
|
52067
|
-
style: [animatedBorder
|
|
52161
|
+
}, /*#__PURE__*/React.createElement(Animated.View, {
|
|
52162
|
+
style: [animatedBorder, {
|
|
52163
|
+
width: "100%",
|
|
52164
|
+
borderRadius: parseInt(theme.borderRadiusMedium, 10),
|
|
52165
|
+
overflow: "hidden",
|
|
52166
|
+
padding: 8,
|
|
52167
|
+
borderWidth: 2
|
|
52168
|
+
}]
|
|
52068
52169
|
}, /*#__PURE__*/React.createElement(Animated.View, {
|
|
52069
52170
|
style: [colorWave, {
|
|
52070
52171
|
position: "absolute",
|
|
@@ -54059,4 +54160,4 @@ function NewCustomer(_ref2) {
|
|
|
54059
54160
|
}));
|
|
54060
54161
|
}
|
|
54061
54162
|
|
|
54062
|
-
export { AnimatedButton$1 as AnimatedButton, AnimatedPlaceholder, AnimatedRoundedButton, BottomNavBar, Box, Center, CenterLeft, CenterRight, NewCustomer as CountryList, Error, ErrorText, AnimatedButton as FeedbackButton, FlatList, RoundBtn$1 as FloatingBtn, FullScreen, H1Text as H1, H2Text as H2, H3Text as H3, H4Text as H4, H5Text as H5, Header, Icon, Input$1 as Input, Input as InputNormal, InputOtp, InputPhone, Loader, Margin, MarginBottom, MarginHorizontal, MarginLeft, MarginRight, MarginTop, MarginVertical, pText as P, Padding, PaddingBottom, PaddingHorizontal, PaddingLeft, PaddingRight, PaddingTop, PaddingVertical, RoundBtn$3 as RoundBtn, RoundedBtn$1 as RoundedBtn, RoundedTopBox, Row, SpanText as Span, Stretch, Success, SwipeButton, Switch, TextBtn, ThemeWrapper, WebSmallWrapper, useThemeContext };
|
|
54163
|
+
export { AnimatedButton$1 as AnimatedButton, AnimatedPlaceholder, AnimatedRoundedButton, BorderBottom, BorderBox, BorderTop, BottomNavBar, Box, Center, CenterLeft, CenterRight, NewCustomer as CountryList, Error, ErrorText, AnimatedButton as FeedbackButton, FlatList, RoundBtn$1 as FloatingBtn, FullScreen, H1Text as H1, H2Text as H2, H3Text as H3, H4Text as H4, H5Text as H5, Header, Icon, ImageWrapper, Input$1 as Input, Input as InputNormal, InputOtp, InputPhone, Loader, Margin, MarginBottom, MarginHorizontal, MarginLeft, MarginRight, MarginTop, MarginVertical, pText as P, Padding, PaddingBottom, PaddingHorizontal, PaddingLeft, PaddingRight, PaddingTop, PaddingVertical, RoundBtn$3 as RoundBtn, RoundedBtn$1 as RoundedBtn, RoundedTopBox, Row, SpanText as Span, Stretch, Success, SwipeButton, Switch, TextBtn, ThemeWrapper, WebSmallWrapper, useThemeContext };
|