@servesall/atoms 1.1.12 → 1.1.14
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 +559 -667
- package/dist/bundle.esm.js +559 -667
- package/dist/bundle.umd.js +559 -667
- package/package.json +1 -1
- package/src/Icons/Assets/big_calendar.json +1 -1
- package/src/Icons/Assets/big_pax.json +1 -1
- package/src/Icons/Assets/big_time.json +1 -1
- package/src/Inputs/InputNormal/index.js +29 -17
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"ip":0,"fr":60,"v":"5.1.20","assets":[],"layers":[{"ty":4,"nm":"big_calendar","ip":0,"st":0,"ind":1,"hix":1,"ks":{"o":{"a":0,"k":100},"or":{"a":0,"k":[0,0,0]},"a":{"a":0,"k":[24,
|
|
1
|
+
{"ip":0,"fr":60,"v":"5.1.20","assets":[],"layers":[{"ty":4,"nm":"big_calendar","ip":0,"st":0,"ind":1,"hix":1,"ks":{"o":{"a":0,"k":100},"or":{"a":0,"k":[0,0,0]},"a":{"a":0,"k":[24,23.5,0]},"p":{"s":true,"x":{"a":0,"k":50},"y":{"a":0,"k":49.9995}},"rx":{"a":0,"k":0},"ry":{"a":0,"k":0},"rz":{"a":0,"k":0},"s":{"a":0,"k":[190.3,190.3]}},"shapes":[{"ty":"gr","nm":"big_calendar shape group","it":[{"ty":"rc","s":{"a":0,"k":[6,16]},"r":{"a":0,"k":3},"p":{"a":0,"k":[29,8]}},{"ty":"st","o":{"a":0,"k":0},"w":{"a":0,"k":0},"c":{"a":0,"k":[0,0,0,0]},"lc":3,"lj":1,"ml":1},{"ty":"fl","o":{"a":0,"k":100},"r":2,"c":{"a":0,"k":[0,0,0,1]}},{"ty":"tr","o":{"a":0,"k":100},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"p":{"a":0,"k":[3,0]},"r":{"a":0,"k":0}}]},{"ty":"gr","nm":"big_calendar shape group","it":[{"ty":"rc","s":{"a":0,"k":[6,16]},"r":{"a":0,"k":3},"p":{"a":0,"k":[13,8]}},{"ty":"st","o":{"a":0,"k":0},"w":{"a":0,"k":0},"c":{"a":0,"k":[0,0,0,0]},"lc":3,"lj":1,"ml":1},{"ty":"fl","o":{"a":0,"k":100},"r":2,"c":{"a":0,"k":[0,0,0,1]}},{"ty":"tr","o":{"a":0,"k":100},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"p":{"a":0,"k":[3,0]},"r":{"a":0,"k":0}}]},{"ty":"gr","nm":"big_calendar shape group","it":[{"ty":"sh","ks":{"a":0,"k":{"c":true,"v":[[7,8],[0,15],[0,39],[6,44],[36,44],[42,39],[42,15],[36,8]],"i":[[4.5,0],[0,-5],[0,-3],[-4,0],[-3.5,0],[0,3.5],[0,4.5],[3.5,0]],"o":[[-4.5,0],[0,5],[0,3],[4,0],[3.5,0],[0,-3.5],[0,-4.5],[-3.5,0]]}}},{"ty":"st","o":{"a":0,"k":100},"c":{"a":0,"k":[0,0,0,1]},"lc":2,"lj":1,"ml":1,"w":{"a":0,"k":5}},{"ty":"fl","o":{"a":0,"k":0},"c":{"a":0,"k":[0,0,0,0]},"r":1},{"ty":"tr","o":{"a":0,"k":100},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"p":{"a":0,"k":[3,0]},"r":{"a":0,"k":0}}]}],"op":1}],"op":1,"w":100,"h":100}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"ip":0,"fr":60,"v":"5.1.20","assets":[],"layers":[{"ty":4,"nm":"big_pax","ip":0,"st":0,"ind":
|
|
1
|
+
{"ip":0,"fr":60,"v":"5.1.20","assets":[],"layers":[{"ty":4,"nm":"big_pax","ip":0,"st":0,"ind":2,"hix":1,"ks":{"o":{"a":0,"k":100},"or":{"a":0,"k":[0,0,0]},"a":{"a":0,"k":[26,38.5,0]},"p":{"s":true,"x":{"a":0,"k":50},"y":{"a":0,"k":49.99999999999999}},"rx":{"a":0,"k":0},"ry":{"a":0,"k":0},"rz":{"a":0,"k":0},"s":{"a":0,"k":[113.19999999999999,113.19999999999999]}},"shapes":[{"ty":"gr","nm":"big_pax shape group","it":[{"ty":"el","p":{"a":0,"k":[22,15]},"s":{"a":0,"k":[22,22]}},{"ty":"st","o":{"a":0,"k":100},"c":{"a":0,"k":[0,0,0,1]},"lc":3,"lj":1,"ml":1,"w":{"a":0,"k":8}},{"ty":"fl","o":{"a":0,"k":0},"c":{"a":0,"k":[0,0,0,0]},"r":1},{"ty":"tr","o":{"a":0,"k":100},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"p":{"a":0,"k":[4,0]},"r":{"a":0,"k":0}}]},{"ty":"gr","nm":"big_pax shape group","it":[{"ty":"sh","ks":{"a":0,"k":{"c":true,"v":[[7.33333333,37],[-7.10542736e-15,44],[-7.10542736e-15,68],[6.28571429,73],[37.7142857,73],[44,68],[44,44],[37.7142857,37]],"i":[[4.714285669999999,0],[0,-5],[0,-3],[-4.19047619,0],[-3.6666667000000004,0],[0,3.5],[0,4.5],[3.6666667000000004,0]],"o":[[-4.71428571,0],[0,5],[0,3],[4.19047621,0],[3.6666667000000004,0],[0,-3.5],[0,-4.5],[-3.6666667000000004,0]]}}},{"ty":"st","o":{"a":0,"k":100},"c":{"a":0,"k":[0,0,0,1]},"lc":2,"lj":1,"ml":1,"w":{"a":0,"k":8}},{"ty":"fl","o":{"a":0,"k":0},"c":{"a":0,"k":[0,0,0,0]},"r":1},{"ty":"tr","o":{"a":0,"k":100},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"p":{"a":0,"k":[4,0]},"r":{"a":0,"k":0}}]}],"op":1}],"op":1,"w":100,"h":100}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"ip":0,"fr":60,"v":"5.1.20","assets":[],"layers":[{"ty":4,"nm":"big_time","ip":0,"st":0,"ind":1,"hix":1,"ks":{"o":{"a":0,"k":100},"or":{"a":0,"k":[0,0,0]},"a":{"a":0,"k":[23,23,0]},"p":{"s":true,"x":{"a":0,"k":
|
|
1
|
+
{"ip":0,"fr":60,"v":"5.1.20","assets":[],"layers":[{"ty":4,"nm":"big_time","ip":0,"st":0,"ind":1,"hix":1,"ks":{"o":{"a":0,"k":100},"or":{"a":0,"k":[0,0,0]},"a":{"a":0,"k":[23,23,0]},"p":{"s":true,"x":{"a":0,"k":49.99999999999999},"y":{"a":0,"k":49.99999999999999}},"rx":{"a":0,"k":0},"ry":{"a":0,"k":0},"rz":{"a":0,"k":0},"s":{"a":0,"k":[189.79999999999998,189.79999999999998]}},"shapes":[{"ty":"gr","nm":"big_time shape group","it":[{"ty":"el","p":{"a":0,"k":[20,20]},"s":{"a":0,"k":[40,40]}},{"ty":"st","o":{"a":0,"k":100},"c":{"a":0,"k":[0,0,0,1]},"lc":3,"lj":1,"ml":1,"w":{"a":0,"k":5}},{"ty":"fl","o":{"a":0,"k":0},"c":{"a":0,"k":[0,0,0,0]},"r":1},{"ty":"tr","o":{"a":0,"k":100},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"p":{"a":0,"k":[3,3]},"r":{"a":0,"k":0}}]},{"ty":"gr","nm":"big_time shape group","it":[{"ty":"sh","ks":{"a":0,"k":{"c":true,"v":[[17.2452323,1.23259096],[17.2996632,1.27798766],[17.2996632,1.27798766],[17.5992203,4.63249835],[11.2398426,12.4547889],[10.1652413,13.1881493],[8.85116116,13.5639426],[8.7791316,13.5614653],[2.91965905,13.2692512],[0.569452227,10.7591723],[2.93818511,8.48554368],[3.01021462,8.48802097],[8.20110156,8.74682095],[14.0378964,1.56711401]],"i":[[-0.9784399000000015,-0.7905749950000001],[0,0],[0,0],[0.8253424000000003,-1.0152043899999996],[0,0],[0.40834229999999927,-0.13020629999999933],[0.4844840099999992,0.009171499999999],[0.023995629999999935,0.0011966000000001031],[0,0],[-0.025230059999999943,1.3321182],[-1.28397215,-0.024306429999999324],[-0.023995600000000117,-0.0011967400000010286],[0,0],[0,0]],"o":[[0,0],[0,0],[0.9922699999999978,0.8540893700000001],[0,0],[-0.2900936999999999,0.3568268999999997],[-0.37692737000000065,0.24574200000000168],[-0.024021210000000792,-0.00045479999999997744],[0,0],[-1.3348316599999999,-0.06656869999999948],[0.024242890000000017,-1.2799967799999994],[0.024021190000000026,0.0004547400000003421],[0,0],[0,0],[0.7929228000000013,-0.97532697]]}}},{"ty":"st","o":{"a":0,"k":100},"c":{"a":0,"k":[0,0,0,1]},"lc":3,"lj":1,"ml":1,"w":{"a":0,"k":1}},{"ty":"fl","o":{"a":0,"k":100},"r":1,"c":{"a":0,"k":[0,0,0,1]}},{"ty":"tr","o":{"a":0,"k":100},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[-100,100]},"p":{"a":0,"k":[37.042,21.361]},"r":{"a":0,"k":37.98710181717358}}]}],"op":1}],"op":1,"w":100,"h":100}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState, useRef } from "react";
|
|
2
2
|
import { H4 } from "../../Text";
|
|
3
|
-
import { MarginHorizontal } from "../../Layout";
|
|
3
|
+
import { MarginHorizontal, Row } from "../../Layout";
|
|
4
4
|
import { KeyboardAvoidingView, Platform } from "react-native";
|
|
5
5
|
import { InputWrapper, InputElement, BorderWrapper } from "./Animated.style";
|
|
6
6
|
import Placeholder from "./Placeholder";
|
|
@@ -26,6 +26,7 @@ const Input = ({
|
|
|
26
26
|
error,
|
|
27
27
|
isRightBound = false,
|
|
28
28
|
isLeftBound = false,
|
|
29
|
+
euro = false,
|
|
29
30
|
}) => {
|
|
30
31
|
const [isFocused, setIsFocused] = useState(false);
|
|
31
32
|
const [textValue, setTextValue] = useState(value || defaultValue);
|
|
@@ -80,22 +81,33 @@ const Input = ({
|
|
|
80
81
|
</Placeholder>
|
|
81
82
|
|
|
82
83
|
<MarginHorizontal>
|
|
83
|
-
<
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
84
|
+
<Row>
|
|
85
|
+
{euro &&
|
|
86
|
+
(isFocused ||
|
|
87
|
+
(textValue && textValue.length > 0) ||
|
|
88
|
+
(value && value.length > 0)) && (
|
|
89
|
+
<Row style={{ minHeight: 40, alignItems: "center" }}>
|
|
90
|
+
{euro}
|
|
91
|
+
</Row>
|
|
92
|
+
)}
|
|
93
|
+
<InputElement
|
|
94
|
+
ref={inputRef}
|
|
95
|
+
onFocus={() => setIsFocused(true)}
|
|
96
|
+
onBlur={() => setIsFocused(false)}
|
|
97
|
+
onChangeText={(text) => setTextValue(text)}
|
|
98
|
+
defaultValue={defaultValue}
|
|
99
|
+
value={value}
|
|
100
|
+
multiline={multiline}
|
|
101
|
+
numberOfLines={numberOfLines}
|
|
102
|
+
maxLength={maxLength}
|
|
103
|
+
autoFocus={autoFocus}
|
|
104
|
+
keyboardType={keyboardType}
|
|
105
|
+
editable={editable}
|
|
106
|
+
active={isFocused}
|
|
107
|
+
style={style}
|
|
108
|
+
returnKeyType="done"
|
|
109
|
+
/>
|
|
110
|
+
</Row>
|
|
99
111
|
</MarginHorizontal>
|
|
100
112
|
</BorderWrapper>
|
|
101
113
|
</InputWrapper>
|