@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.umd.js
CHANGED
|
@@ -549,126 +549,126 @@
|
|
|
549
549
|
style: PropTypes__default["default"].object
|
|
550
550
|
};
|
|
551
551
|
|
|
552
|
-
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;
|
|
552
|
+
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;
|
|
553
553
|
var DEFAULT_FLEX_DIRECTION = reactNative.Platform.OS === "web" ? "column" : "column";
|
|
554
|
-
var CenterElement = styled__default["default"].View(_templateObject$m || (_templateObject$m = _taggedTemplateLiteral(["\n align-items: center;\n justify-content: center;\n flex: 1;\n
|
|
555
|
-
return props.
|
|
554
|
+
var CenterElement = styled__default["default"].View(_templateObject$m || (_templateObject$m = _taggedTemplateLiteral(["\n align-items: center;\n justify-content: center;\n flex: 1;\n flexdirection: ", ";\n ", ";\n"])), function (props) {
|
|
555
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
556
556
|
}, function (props) {
|
|
557
557
|
return props.style;
|
|
558
558
|
});
|
|
559
559
|
var CenterLeftElement = styled__default["default"].View(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteral(["\n align-items: ", ";\n justify-content: ", ";\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
560
|
-
return (props.
|
|
560
|
+
return (props.direction || DEFAULT_FLEX_DIRECTION) === "row" ? "center" : "flex-start";
|
|
561
561
|
}, function (props) {
|
|
562
|
-
return (props.
|
|
562
|
+
return (props.direction || DEFAULT_FLEX_DIRECTION) === "row" ? "flex-start" : "center";
|
|
563
563
|
}, function (props) {
|
|
564
|
-
return props.
|
|
564
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
565
565
|
}, function (props) {
|
|
566
566
|
return props.style;
|
|
567
567
|
});
|
|
568
568
|
var CenterRightElement = styled__default["default"].View(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteral(["\n align-items: ", ";\n justify-content: ", ";\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
569
|
-
return (props.
|
|
569
|
+
return (props.direction || DEFAULT_FLEX_DIRECTION) === "row" ? "center" : "flex-end";
|
|
570
570
|
}, function (props) {
|
|
571
|
-
return (props.
|
|
571
|
+
return (props.direction || DEFAULT_FLEX_DIRECTION) === "row" ? "flex-end" : "center";
|
|
572
572
|
}, function (props) {
|
|
573
|
-
return props.
|
|
573
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
574
574
|
}, function (props) {
|
|
575
575
|
return props.style;
|
|
576
576
|
});
|
|
577
577
|
var MarginElement = styled__default["default"].View(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
578
578
|
return props.theme.margin;
|
|
579
579
|
}, function (props) {
|
|
580
|
-
return props.
|
|
580
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
581
581
|
}, function (props) {
|
|
582
582
|
return props.style;
|
|
583
583
|
});
|
|
584
584
|
var MarginHorizontalElement = styled__default["default"].View(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin: 0 ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
585
585
|
return props.theme.margin;
|
|
586
586
|
}, function (props) {
|
|
587
|
-
return props.
|
|
587
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
588
588
|
}, function (props) {
|
|
589
589
|
return props.style;
|
|
590
590
|
});
|
|
591
591
|
var MarginVerticalElement = styled__default["default"].View(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin: ", " 0;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
592
592
|
return props.theme.margin;
|
|
593
593
|
}, function (props) {
|
|
594
|
-
return props.
|
|
594
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
595
595
|
}, function (props) {
|
|
596
596
|
return props.style;
|
|
597
597
|
});
|
|
598
598
|
var MarginBottomElement = styled__default["default"].View(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
599
599
|
return props.theme.margin;
|
|
600
600
|
}, function (props) {
|
|
601
|
-
return props.
|
|
601
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
602
602
|
}, function (props) {
|
|
603
603
|
return props.style;
|
|
604
604
|
});
|
|
605
605
|
var MarginTopElement = styled__default["default"].View(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin-top: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
606
606
|
return props.theme.margin;
|
|
607
607
|
}, function (props) {
|
|
608
|
-
return props.
|
|
608
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
609
609
|
}, function (props) {
|
|
610
610
|
return props.style;
|
|
611
611
|
});
|
|
612
612
|
var MarginRightElement = styled__default["default"].View(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n margin-right: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
613
613
|
return props.theme.margin;
|
|
614
614
|
}, function (props) {
|
|
615
|
-
return props.
|
|
615
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
616
616
|
}, function (props) {
|
|
617
617
|
return props.style;
|
|
618
618
|
});
|
|
619
619
|
var MarginLeftElement = styled__default["default"].View(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin-left: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
620
620
|
return props.theme.margin;
|
|
621
621
|
}, function (props) {
|
|
622
|
-
return props.
|
|
622
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
623
623
|
}, function (props) {
|
|
624
624
|
return props.style;
|
|
625
625
|
});
|
|
626
626
|
var PaddingElement = styled__default["default"].View(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n padding: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
627
627
|
return props.theme.padding;
|
|
628
628
|
}, function (props) {
|
|
629
|
-
return props.
|
|
629
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
630
630
|
}, function (props) {
|
|
631
631
|
return props.style;
|
|
632
632
|
});
|
|
633
633
|
var PaddingHorizontalElement = styled__default["default"].View(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n padding: 0 ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
634
634
|
return props.theme.padding;
|
|
635
635
|
}, function (props) {
|
|
636
|
-
return props.
|
|
636
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
637
637
|
}, function (props) {
|
|
638
638
|
return props.style;
|
|
639
639
|
});
|
|
640
640
|
var PaddingVerticalElement = styled__default["default"].View(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n padding: ", " 0;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
641
641
|
return props.theme.padding;
|
|
642
642
|
}, function (props) {
|
|
643
|
-
return props.
|
|
643
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
644
644
|
}, function (props) {
|
|
645
645
|
return props.style;
|
|
646
646
|
});
|
|
647
647
|
var PaddingTopElement = styled__default["default"].View(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n padding-top: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
648
648
|
return props.theme.padding;
|
|
649
649
|
}, function (props) {
|
|
650
|
-
return props.
|
|
650
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
651
651
|
}, function (props) {
|
|
652
652
|
return props.style;
|
|
653
653
|
});
|
|
654
654
|
var PaddingBottomElement = styled__default["default"].View(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n padding-bottom: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
655
655
|
return props.theme.padding;
|
|
656
656
|
}, function (props) {
|
|
657
|
-
return props.
|
|
657
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
658
658
|
}, function (props) {
|
|
659
659
|
return props.style;
|
|
660
660
|
});
|
|
661
661
|
var PaddingLeftElement = styled__default["default"].View(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n padding-left: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
662
662
|
return props.theme.padding;
|
|
663
663
|
}, function (props) {
|
|
664
|
-
return props.
|
|
664
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
665
665
|
}, function (props) {
|
|
666
666
|
return props.style;
|
|
667
667
|
});
|
|
668
668
|
var PaddingRightElement = styled__default["default"].View(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n padding-right: ", ";\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
669
669
|
return props.theme.padding;
|
|
670
670
|
}, function (props) {
|
|
671
|
-
return props.
|
|
671
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
672
672
|
}, function (props) {
|
|
673
673
|
return props.style;
|
|
674
674
|
});
|
|
@@ -676,25 +676,49 @@
|
|
|
676
676
|
return props.style;
|
|
677
677
|
});
|
|
678
678
|
var StretchElement = styled__default["default"].View(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n align-items: stretch;\n align-self: stretch;\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
683
|
var BoxElement = styled__default["default"].View(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n flex: 1;\n flex-direction: ", ";\n ", ";\n"])), function (props) {
|
|
684
|
-
return props.
|
|
684
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
685
685
|
}, function (props) {
|
|
686
686
|
return props.style;
|
|
687
687
|
});
|
|
688
|
-
var
|
|
689
|
-
return props.
|
|
688
|
+
var BorderBottomElement = styled__default["default"].View(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n border-bottom-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
|
|
694
|
-
return props.
|
|
693
|
+
var BorderTopElement = styled__default["default"].View(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n border-top-width: 2px;\n border-color: ", ";\n ", ";\n"])), function (props) {
|
|
694
|
+
return props.theme.color7;
|
|
695
695
|
}, function (props) {
|
|
696
696
|
return props.style;
|
|
697
697
|
});
|
|
698
|
+
var BorderBoxElement = styled__default["default"].View(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n border-width: 2px;\n border-color: ", ";\n border-radius: ", ";\n ", ";\n"])), function (props) {
|
|
699
|
+
return props.theme.color7;
|
|
700
|
+
}, function (props) {
|
|
701
|
+
return props.theme.borderRadiusSmall;
|
|
702
|
+
}, function (props) {
|
|
703
|
+
return props.style;
|
|
704
|
+
});
|
|
705
|
+
var FullScreenElement = styled__default["default"].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) {
|
|
706
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
707
|
+
}, function (props) {
|
|
708
|
+
return props.style;
|
|
709
|
+
});
|
|
710
|
+
var WebSmallWrapperElement = styled__default["default"].View(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n flex-direction: ", ";\n width: 500px;\n ", ";\n"])), function (props) {
|
|
711
|
+
return props.direction || DEFAULT_FLEX_DIRECTION;
|
|
712
|
+
}, function (props) {
|
|
713
|
+
return props.style;
|
|
714
|
+
});
|
|
715
|
+
var ImageWrapperElement = styled__default["default"].View(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n border-radius: ", ";\n background-color: ", ";\n overflow: hidden;\n ", ";\n"])), function (props) {
|
|
716
|
+
return props.theme.borderRadiusSmall;
|
|
717
|
+
}, function (props) {
|
|
718
|
+
return props.theme.color7;
|
|
719
|
+
}, function (props) {
|
|
720
|
+
return props.styles;
|
|
721
|
+
});
|
|
698
722
|
|
|
699
723
|
var Center = function Center(_ref) {
|
|
700
724
|
var children = _ref.children,
|
|
@@ -703,7 +727,7 @@
|
|
|
703
727
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
704
728
|
return /*#__PURE__*/React__default["default"].createElement(CenterElement, {
|
|
705
729
|
style: style,
|
|
706
|
-
|
|
730
|
+
direction: direction
|
|
707
731
|
}, children);
|
|
708
732
|
};
|
|
709
733
|
|
|
@@ -714,7 +738,7 @@
|
|
|
714
738
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
715
739
|
return /*#__PURE__*/React__default["default"].createElement(CenterLeftElement, {
|
|
716
740
|
style: style,
|
|
717
|
-
|
|
741
|
+
direction: direction
|
|
718
742
|
}, children);
|
|
719
743
|
};
|
|
720
744
|
|
|
@@ -725,7 +749,7 @@
|
|
|
725
749
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
726
750
|
return /*#__PURE__*/React__default["default"].createElement(CenterRightElement, {
|
|
727
751
|
style: style,
|
|
728
|
-
|
|
752
|
+
direction: direction
|
|
729
753
|
}, children);
|
|
730
754
|
};
|
|
731
755
|
|
|
@@ -736,7 +760,7 @@
|
|
|
736
760
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
737
761
|
return /*#__PURE__*/React__default["default"].createElement(MarginElement, {
|
|
738
762
|
style: style,
|
|
739
|
-
|
|
763
|
+
direction: direction
|
|
740
764
|
}, children);
|
|
741
765
|
};
|
|
742
766
|
|
|
@@ -747,7 +771,7 @@
|
|
|
747
771
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
748
772
|
return /*#__PURE__*/React__default["default"].createElement(MarginHorizontalElement, {
|
|
749
773
|
style: style,
|
|
750
|
-
|
|
774
|
+
direction: direction
|
|
751
775
|
}, children);
|
|
752
776
|
};
|
|
753
777
|
|
|
@@ -758,7 +782,7 @@
|
|
|
758
782
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
759
783
|
return /*#__PURE__*/React__default["default"].createElement(MarginVerticalElement, {
|
|
760
784
|
style: style,
|
|
761
|
-
|
|
785
|
+
direction: direction
|
|
762
786
|
}, children);
|
|
763
787
|
};
|
|
764
788
|
|
|
@@ -769,7 +793,7 @@
|
|
|
769
793
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
770
794
|
return /*#__PURE__*/React__default["default"].createElement(MarginBottomElement, {
|
|
771
795
|
style: style,
|
|
772
|
-
|
|
796
|
+
direction: direction
|
|
773
797
|
}, children);
|
|
774
798
|
};
|
|
775
799
|
|
|
@@ -780,7 +804,7 @@
|
|
|
780
804
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
781
805
|
return /*#__PURE__*/React__default["default"].createElement(MarginTopElement, {
|
|
782
806
|
style: style,
|
|
783
|
-
|
|
807
|
+
direction: direction
|
|
784
808
|
}, children);
|
|
785
809
|
};
|
|
786
810
|
|
|
@@ -791,7 +815,7 @@
|
|
|
791
815
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
792
816
|
return /*#__PURE__*/React__default["default"].createElement(MarginRightElement, {
|
|
793
817
|
style: style,
|
|
794
|
-
|
|
818
|
+
direction: direction
|
|
795
819
|
}, children);
|
|
796
820
|
};
|
|
797
821
|
|
|
@@ -802,7 +826,7 @@
|
|
|
802
826
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
803
827
|
return /*#__PURE__*/React__default["default"].createElement(MarginLeftElement, {
|
|
804
828
|
style: style,
|
|
805
|
-
|
|
829
|
+
direction: direction
|
|
806
830
|
}, children);
|
|
807
831
|
};
|
|
808
832
|
|
|
@@ -813,7 +837,7 @@
|
|
|
813
837
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
814
838
|
return /*#__PURE__*/React__default["default"].createElement(PaddingElement, {
|
|
815
839
|
style: style,
|
|
816
|
-
|
|
840
|
+
direction: direction
|
|
817
841
|
}, children);
|
|
818
842
|
};
|
|
819
843
|
|
|
@@ -824,7 +848,7 @@
|
|
|
824
848
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
825
849
|
return /*#__PURE__*/React__default["default"].createElement(PaddingHorizontalElement, {
|
|
826
850
|
style: style,
|
|
827
|
-
|
|
851
|
+
direction: direction
|
|
828
852
|
}, children);
|
|
829
853
|
};
|
|
830
854
|
|
|
@@ -835,7 +859,7 @@
|
|
|
835
859
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
836
860
|
return /*#__PURE__*/React__default["default"].createElement(PaddingVerticalElement, {
|
|
837
861
|
style: style,
|
|
838
|
-
|
|
862
|
+
direction: direction
|
|
839
863
|
}, children);
|
|
840
864
|
};
|
|
841
865
|
|
|
@@ -846,7 +870,7 @@
|
|
|
846
870
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
847
871
|
return /*#__PURE__*/React__default["default"].createElement(PaddingTopElement, {
|
|
848
872
|
style: style,
|
|
849
|
-
|
|
873
|
+
direction: direction
|
|
850
874
|
}, children);
|
|
851
875
|
};
|
|
852
876
|
|
|
@@ -857,7 +881,7 @@
|
|
|
857
881
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
858
882
|
return /*#__PURE__*/React__default["default"].createElement(PaddingBottomElement, {
|
|
859
883
|
style: style,
|
|
860
|
-
|
|
884
|
+
direction: direction
|
|
861
885
|
}, children);
|
|
862
886
|
};
|
|
863
887
|
|
|
@@ -868,7 +892,7 @@
|
|
|
868
892
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
869
893
|
return /*#__PURE__*/React__default["default"].createElement(PaddingLeftElement, {
|
|
870
894
|
style: style,
|
|
871
|
-
|
|
895
|
+
direction: direction
|
|
872
896
|
}, children);
|
|
873
897
|
};
|
|
874
898
|
|
|
@@ -879,7 +903,7 @@
|
|
|
879
903
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
880
904
|
return /*#__PURE__*/React__default["default"].createElement(PaddingRightElement, {
|
|
881
905
|
style: style,
|
|
882
|
-
|
|
906
|
+
direction: direction
|
|
883
907
|
}, children);
|
|
884
908
|
};
|
|
885
909
|
|
|
@@ -898,7 +922,7 @@
|
|
|
898
922
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
899
923
|
return /*#__PURE__*/React__default["default"].createElement(StretchElement, {
|
|
900
924
|
style: style,
|
|
901
|
-
|
|
925
|
+
direction: direction
|
|
902
926
|
}, children);
|
|
903
927
|
};
|
|
904
928
|
|
|
@@ -917,7 +941,7 @@
|
|
|
917
941
|
direction = _ref$direction === void 0 ? false : _ref$direction;
|
|
918
942
|
return /*#__PURE__*/React__default["default"].createElement(WebSmallWrapperElement, {
|
|
919
943
|
style: style,
|
|
920
|
-
|
|
944
|
+
direction: direction
|
|
921
945
|
}, children);
|
|
922
946
|
};
|
|
923
947
|
|
|
@@ -932,7 +956,7 @@
|
|
|
932
956
|
style: _objectSpread2({
|
|
933
957
|
backgroundColor: color
|
|
934
958
|
}, style),
|
|
935
|
-
|
|
959
|
+
direction: direction
|
|
936
960
|
}, children);
|
|
937
961
|
};
|
|
938
962
|
|
|
@@ -950,7 +974,40 @@
|
|
|
950
974
|
borderTopRightRadius: 30,
|
|
951
975
|
overflow: "hidden"
|
|
952
976
|
}, style),
|
|
953
|
-
|
|
977
|
+
direction: direction
|
|
978
|
+
}, children);
|
|
979
|
+
};
|
|
980
|
+
|
|
981
|
+
var BorderBottom = function BorderBottom(_ref) {
|
|
982
|
+
var children = _ref.children,
|
|
983
|
+
style = _ref.style;
|
|
984
|
+
return /*#__PURE__*/React__default["default"].createElement(BorderBottomElement, {
|
|
985
|
+
style: _objectSpread2({}, style)
|
|
986
|
+
}, children);
|
|
987
|
+
};
|
|
988
|
+
|
|
989
|
+
var BorderTop = function BorderTop(_ref) {
|
|
990
|
+
var children = _ref.children,
|
|
991
|
+
style = _ref.style;
|
|
992
|
+
return /*#__PURE__*/React__default["default"].createElement(BorderTopElement, {
|
|
993
|
+
style: _objectSpread2({}, style)
|
|
994
|
+
}, children);
|
|
995
|
+
};
|
|
996
|
+
|
|
997
|
+
var BorderBox = function BorderBox(_ref) {
|
|
998
|
+
var children = _ref.children,
|
|
999
|
+
style = _ref.style;
|
|
1000
|
+
return /*#__PURE__*/React__default["default"].createElement(BorderBoxElement, {
|
|
1001
|
+
style: _objectSpread2({}, style)
|
|
1002
|
+
}, children);
|
|
1003
|
+
};
|
|
1004
|
+
|
|
1005
|
+
var ImageWrapper = function ImageWrapper(_ref) {
|
|
1006
|
+
var children = _ref.children;
|
|
1007
|
+
_ref.box;
|
|
1008
|
+
var style = _ref.style;
|
|
1009
|
+
return /*#__PURE__*/React__default["default"].createElement(ImageWrapperElement, {
|
|
1010
|
+
style: _objectSpread2({}, style)
|
|
954
1011
|
}, children);
|
|
955
1012
|
};
|
|
956
1013
|
|
|
@@ -1361,7 +1418,9 @@
|
|
|
1361
1418
|
_ref$isLeftBound = _ref.isLeftBound,
|
|
1362
1419
|
isLeftBound = _ref$isLeftBound === void 0 ? false : _ref$isLeftBound,
|
|
1363
1420
|
_ref$euro = _ref.euro,
|
|
1364
|
-
euro = _ref$euro === void 0 ? false : _ref$euro
|
|
1421
|
+
euro = _ref$euro === void 0 ? false : _ref$euro,
|
|
1422
|
+
_ref$focused = _ref.focused,
|
|
1423
|
+
focused = _ref$focused === void 0 ? function () {} : _ref$focused;
|
|
1365
1424
|
|
|
1366
1425
|
var _useState = React.useState(false),
|
|
1367
1426
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1374,25 +1433,44 @@
|
|
|
1374
1433
|
setTextValue = _useState4[1];
|
|
1375
1434
|
|
|
1376
1435
|
var inputRef = React.useRef();
|
|
1436
|
+
React.useEffect(function () {
|
|
1437
|
+
focused();
|
|
1438
|
+
}, [isFocused]);
|
|
1377
1439
|
React.useEffect(function () {
|
|
1378
1440
|
textChange(textValue);
|
|
1379
1441
|
}, [textValue]);
|
|
1442
|
+
React.useEffect(function () {
|
|
1443
|
+
defaultValue && setTextValue(defaultValue);
|
|
1444
|
+
}, [defaultValue]);
|
|
1380
1445
|
React.useEffect(function () {
|
|
1381
1446
|
var _inputRef$current;
|
|
1382
1447
|
|
|
1383
1448
|
autoFocus && ((_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus());
|
|
1384
1449
|
}, [autoFocus]);
|
|
1450
|
+
|
|
1451
|
+
function blurTextInput() {
|
|
1452
|
+
var _inputRef$current2;
|
|
1453
|
+
|
|
1454
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.blur();
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
React.useEffect(function () {
|
|
1458
|
+
var keyboardDidHideSubscription = reactNative.Keyboard.addListener("keyboardDidHide", blurTextInput);
|
|
1459
|
+
return function () {
|
|
1460
|
+
keyboardDidHideSubscription === null || keyboardDidHideSubscription === void 0 ? void 0 : keyboardDidHideSubscription.remove();
|
|
1461
|
+
};
|
|
1462
|
+
}, []);
|
|
1385
1463
|
return /*#__PURE__*/React__default["default"].createElement(reactNative.KeyboardAvoidingView, {
|
|
1386
1464
|
behavior: reactNative.Platform.OS === "ios" ? "padding" : "height",
|
|
1387
1465
|
keyboardVerticalOffset: keyboardVerticalOffset
|
|
1388
1466
|
}, /*#__PURE__*/React__default["default"].createElement(InputWrapper$1, {
|
|
1389
1467
|
onPress: function onPress() {
|
|
1390
|
-
var _inputRef$
|
|
1468
|
+
var _inputRef$current3;
|
|
1391
1469
|
|
|
1392
1470
|
_onPress();
|
|
1393
1471
|
|
|
1394
1472
|
editable && setIsFocused(true);
|
|
1395
|
-
editable && ((_inputRef$
|
|
1473
|
+
editable && ((_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.focus());
|
|
1396
1474
|
}
|
|
1397
1475
|
}, /*#__PURE__*/React__default["default"].createElement(BorderWrapper$2, {
|
|
1398
1476
|
isRightBound: isRightBound,
|
|
@@ -1429,7 +1507,8 @@
|
|
|
1429
1507
|
editable: editable,
|
|
1430
1508
|
active: isFocused,
|
|
1431
1509
|
style: style,
|
|
1432
|
-
returnKeyType: "done"
|
|
1510
|
+
returnKeyType: "done",
|
|
1511
|
+
onSubmitEditing: blurTextInput
|
|
1433
1512
|
}))))));
|
|
1434
1513
|
};
|
|
1435
1514
|
|
|
@@ -1697,7 +1776,15 @@
|
|
|
1697
1776
|
var _templateObject$f, _templateObject2$6;
|
|
1698
1777
|
styled__default["default"].View(_templateObject$f || (_templateObject$f = _taggedTemplateLiteral([""])));
|
|
1699
1778
|
var ButtonStyle$4 = styled__default["default"].Pressable(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteral(["\n min-height: ", ";\n width: 100%;\n border-radius: ", ";\n background-color: ", ";\n ", ";\n"])), function (props) {
|
|
1700
|
-
|
|
1779
|
+
if (props.size === "big") {
|
|
1780
|
+
return "60px";
|
|
1781
|
+
} else if (props.size === "small") {
|
|
1782
|
+
return "54px";
|
|
1783
|
+
} else if (props.size === "xsmall") {
|
|
1784
|
+
return "44px";
|
|
1785
|
+
} else {
|
|
1786
|
+
return "54px";
|
|
1787
|
+
}
|
|
1701
1788
|
}, function (props) {
|
|
1702
1789
|
return props.smallBorder ? props.theme.borderRadiusSmall : props.theme.borderRadiusMedium;
|
|
1703
1790
|
}, function (props) {
|
|
@@ -1754,7 +1841,15 @@
|
|
|
1754
1841
|
var _templateObject$e, _templateObject2$5;
|
|
1755
1842
|
styled__default["default"].View(_templateObject$e || (_templateObject$e = _taggedTemplateLiteral([""])));
|
|
1756
1843
|
var ButtonStyle$3 = styled__default["default"].Pressable(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteral(["\n min-height: ", ";\n border-radius: 50px;\n background-color: ", ";\n opacity: ", ";\n ", ";\n"])), function (props) {
|
|
1757
|
-
|
|
1844
|
+
if (props.size === "big") {
|
|
1845
|
+
return "70px";
|
|
1846
|
+
} else if (props.size === "small") {
|
|
1847
|
+
return "56px";
|
|
1848
|
+
} else if (props.size === "xsmall") {
|
|
1849
|
+
return "40px";
|
|
1850
|
+
} else {
|
|
1851
|
+
return "70px";
|
|
1852
|
+
}
|
|
1758
1853
|
}, function (props) {
|
|
1759
1854
|
return props.color;
|
|
1760
1855
|
}, function (props) {
|
|
@@ -51967,12 +52062,12 @@
|
|
|
51967
52062
|
|
|
51968
52063
|
var _templateObject$1, _templateObject2$1, _templateObject3;
|
|
51969
52064
|
var Wrapper$1 = styled__default["default"].View(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n flex: 1;\n"])));
|
|
51970
|
-
|
|
52065
|
+
styled__default["default"](Animated__default["default"].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) {
|
|
51971
52066
|
return props.theme.borderRadius;
|
|
51972
52067
|
}, function (props) {
|
|
51973
52068
|
return props.style;
|
|
51974
52069
|
});
|
|
51975
|
-
var RoundSlider = styled__default["default"].View(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 62px;\n height: 52px;\n background-color: ", ";\n border-radius: ", ";\n border-width: 2px;\n ", ";\n"])), function (props) {
|
|
52070
|
+
var RoundSlider = styled__default["default"](Animated__default["default"].View)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 62px;\n height: 52px;\n background-color: ", ";\n border-radius: ", ";\n border-width: 2px;\n ", ";\n"])), function (props) {
|
|
51976
52071
|
return props.theme.color1;
|
|
51977
52072
|
}, function (props) {
|
|
51978
52073
|
return props.theme.borderRadiusMedium;
|
|
@@ -52068,8 +52163,14 @@
|
|
|
52068
52163
|
});
|
|
52069
52164
|
return /*#__PURE__*/React__default["default"].createElement(Wrapper$1, {
|
|
52070
52165
|
onLayout: onLayout
|
|
52071
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
52072
|
-
style: [animatedBorder
|
|
52166
|
+
}, /*#__PURE__*/React__default["default"].createElement(Animated__default["default"].View, {
|
|
52167
|
+
style: [animatedBorder, {
|
|
52168
|
+
width: "100%",
|
|
52169
|
+
borderRadius: parseInt(theme.borderRadiusMedium, 10),
|
|
52170
|
+
overflow: "hidden",
|
|
52171
|
+
padding: 8,
|
|
52172
|
+
borderWidth: 2
|
|
52173
|
+
}]
|
|
52073
52174
|
}, /*#__PURE__*/React__default["default"].createElement(Animated__default["default"].View, {
|
|
52074
52175
|
style: [colorWave, {
|
|
52075
52176
|
position: "absolute",
|
|
@@ -54067,6 +54168,9 @@
|
|
|
54067
54168
|
exports.AnimatedButton = AnimatedButton$1;
|
|
54068
54169
|
exports.AnimatedPlaceholder = AnimatedPlaceholder;
|
|
54069
54170
|
exports.AnimatedRoundedButton = AnimatedRoundedButton;
|
|
54171
|
+
exports.BorderBottom = BorderBottom;
|
|
54172
|
+
exports.BorderBox = BorderBox;
|
|
54173
|
+
exports.BorderTop = BorderTop;
|
|
54070
54174
|
exports.BottomNavBar = BottomNavBar;
|
|
54071
54175
|
exports.Box = Box;
|
|
54072
54176
|
exports.Center = Center;
|
|
@@ -54086,6 +54190,7 @@
|
|
|
54086
54190
|
exports.H5 = H5Text;
|
|
54087
54191
|
exports.Header = Header;
|
|
54088
54192
|
exports.Icon = Icon;
|
|
54193
|
+
exports.ImageWrapper = ImageWrapper;
|
|
54089
54194
|
exports.Input = Input$1;
|
|
54090
54195
|
exports.InputNormal = Input;
|
|
54091
54196
|
exports.InputOtp = InputOtp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servesall/atoms",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.19",
|
|
4
4
|
"description": "Atoms for react-native",
|
|
5
5
|
"main": "dist/bundle.cjs.js",
|
|
6
6
|
"module": "dist/bundle.esm.js",
|
|
@@ -23,7 +23,9 @@
|
|
|
23
23
|
"react-native-reanimated": "*"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"
|
|
26
|
+
"@gorhom/bottom-sheet": "^5.0.5",
|
|
27
|
+
"react-native-status-bar-height": "^2.6.0",
|
|
28
|
+
"styled-components": "^6.1.13"
|
|
27
29
|
},
|
|
28
30
|
"devDependencies": {
|
|
29
31
|
"@babel/cli": "^7.17.10",
|
|
@@ -32,11 +34,10 @@
|
|
|
32
34
|
"@babel/preset-react": "^7.16.7",
|
|
33
35
|
"@babel/runtime": "^7.17.9",
|
|
34
36
|
"@rollup/plugin-babel": "^5.3.1",
|
|
35
|
-
"@rollup/plugin-commonjs": "^22.0.0",
|
|
36
37
|
"@rollup/plugin-image": "^2.1.1",
|
|
37
38
|
"@rollup/plugin-json": "^4.1.0",
|
|
38
39
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
39
|
-
"rollup": "^2.
|
|
40
|
+
"rollup": "^2.79.1",
|
|
40
41
|
"rollup-plugin-node-polyfills": "^0.2.1"
|
|
41
42
|
},
|
|
42
43
|
"author": "",
|
|
@@ -3,7 +3,17 @@ import styled from "styled-components/native";
|
|
|
3
3
|
export const ButtonWrapper = styled.View``;
|
|
4
4
|
|
|
5
5
|
export const ButtonStyle = styled.Pressable`
|
|
6
|
-
min-height: ${(props) =>
|
|
6
|
+
min-height: ${(props) => {
|
|
7
|
+
if (props.size === "big") {
|
|
8
|
+
return "70px";
|
|
9
|
+
} else if (props.size === "small") {
|
|
10
|
+
return "56px";
|
|
11
|
+
} else if (props.size === "xsmall") {
|
|
12
|
+
return "40px";
|
|
13
|
+
} else {
|
|
14
|
+
return "70px";
|
|
15
|
+
}
|
|
16
|
+
}};
|
|
7
17
|
border-radius: 50px;
|
|
8
18
|
background-color: ${(props) => props.color};
|
|
9
19
|
opacity: ${(props) => (props.active ? 1 : 0.7)};
|
|
@@ -3,7 +3,17 @@ import styled from "styled-components/native";
|
|
|
3
3
|
export const ButtonWrapper = styled.View``;
|
|
4
4
|
|
|
5
5
|
export const ButtonStyle = styled.Pressable`
|
|
6
|
-
min-height: ${(props) =>
|
|
6
|
+
min-height: ${(props) => {
|
|
7
|
+
if (props.size === "big") {
|
|
8
|
+
return "60px";
|
|
9
|
+
} else if (props.size === "small") {
|
|
10
|
+
return "54px";
|
|
11
|
+
} else if (props.size === "xsmall") {
|
|
12
|
+
return "44px";
|
|
13
|
+
} else {
|
|
14
|
+
return "54px";
|
|
15
|
+
}
|
|
16
|
+
}};
|
|
7
17
|
width: 100%;
|
|
8
18
|
border-radius: ${(props) =>
|
|
9
19
|
props.smallBorder
|