react-jupiter 5.9.86 → 5.10.0

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.
@@ -28,6 +28,8 @@
28
28
 
29
29
 
30
30
 
31
+
32
+
31
33
 
32
34
 
33
35
 
@@ -47,9 +49,11 @@ const TextInput=(a)=>{
47
49
 
48
50
 
49
51
 
52
+
53
+
50
54
  function b(a){
51
55
  a.target.setSelectionRange(0,0)
52
- }const{type:c,label:d,htmlElementName:e,id:f,placeholder:g,disabled:h,description:i,register:j,required:k,number:l,rtl:m,control:n}=a;
56
+ }const{type:c,label:d,htmlElementName:e,id:f,placeholder:g,disabled:h,description:i,register:j,required:k,number:l,rtl:m,control:n,onFocus:o,readOnly:p}=a;
53
57
 
54
58
  return/*#__PURE__*/(
55
59
  _react.default.createElement(_styledComponents.ThemeProvider,{theme:_theme.default},/*#__PURE__*/
@@ -65,7 +69,7 @@ _react.default.createElement(_reactHookForm.Controller,{
65
69
  name:e,
66
70
  control:n,
67
71
  rules:{required:!!k&&"\u0627\u06CC\u0646 \u0641\u06CC\u0644\u062F \u0627\u062C\u0628\u0627\u0631\u06CC \u0627\u0633\u062A"},
68
- render:(d)=>{var i;let{field:{value:l},fieldState:k}=d;return/*#__PURE__*/(
72
+ render:(a)=>{var d;let{field:{value:k},fieldState:i}=a;return/*#__PURE__*/(
69
73
  _react.default.createElement(_react.default.Fragment,null,
70
74
  "password"===c&&/*#__PURE__*/
71
75
  _react.default.createElement(_index.PasswordIcon,{
@@ -78,16 +82,17 @@ id:f||"".concat(c,"-").concat(e.split(" ").join("")),
78
82
  name:e,
79
83
  type:"text"===c?"text":"password",
80
84
  placeholder:g,
81
- defaultValue:l,
85
+ defaultValue:k,
82
86
  rtl:m},
83
87
  j(e,{
84
88
  onFocus:b,
85
89
  disabled:h,
86
90
  onChange:(a)=>(0,_numbers.fixNumbers)(a)
87
- }),
88
- a)
91
+ }),{
92
+ onFocus:o,
93
+ readOnly:p})
89
94
  ),/*#__PURE__*/
90
- _react.default.createElement(_errorMsg.default,{errorMessage:k&&(null===(i=k.error)||void 0===i?void 0:i.message)})
95
+ _react.default.createElement(_errorMsg.default,{errorMessage:i&&(null===(d=i.error)||void 0===d?void 0:d.message)})
91
96
  ))}}
92
97
 
93
98
  )
@@ -106,7 +111,9 @@ description:null,
106
111
  required:!1,
107
112
  number:null,
108
113
  rtl:!0,
109
- value:""
114
+ value:"",
115
+ onFocus:()=>{},
116
+ readOnly:!1
110
117
  };var _default=exports.default=
111
118
 
112
119
  TextInput;
package/modal/index.js CHANGED
@@ -17,6 +17,7 @@
17
17
 
18
18
 
19
19
 
20
+
20
21
  _reactModal.default.setAppElement("body");
21
22
 
22
23
  function JupiterModal(a){
@@ -28,7 +29,8 @@ children:e,
28
29
  hasCloseButton:f,
29
30
  disabledClose:g,
30
31
  modalWidth:h,
31
- fullHeight:i
32
+ fullHeight:i,
33
+ modalWidthMobile:j
32
34
  }=a;
33
35
 
34
36
  return/*#__PURE__*/(
@@ -43,6 +45,7 @@ style:
43
45
  _theme.default.borderRadius,
44
46
  _theme.default.overlayColor,
45
47
  h,
48
+ j,
46
49
  _theme.default.modalShadow,
47
50
  i
48
51
  )},/*#__PURE__*/
@@ -67,6 +70,7 @@ onAfterOpen:()=>{},
67
70
  hasCloseButton:!0,
68
71
  disabledClose:!1,
69
72
  modalWidth:"80%",
73
+ modalWidthMobile:"100%",
70
74
  fullHeight:!1
71
75
  };var _default=exports.default=
72
76
 
@@ -16,7 +16,7 @@ StyledWrapper=exports.StyledWrapper=_styledComponents.default.div(_templateObjec
16
16
 
17
17
 
18
18
  function customModalStyles(
19
- a,b,c,d,e)
19
+ a,b,c,d,e,f)
20
20
  {
21
21
  return{
22
22
  content:{
@@ -29,9 +29,9 @@ borderRadius:"".concat(a,"px"),
29
29
  border:"0",
30
30
  padding:_detectMobile.isMobile?"50px 0":"0",
31
31
  margin:"0",
32
- width:c,
33
- boxShadow:"0 0 ".concat(d.blur,"px ").concat(d.spread,"px rgba(0, 0, 0, ").concat(d.opacity,")"),
34
- height:e?"100%":"auto"
32
+ width:_detectMobile.isMobile?d:c,
33
+ boxShadow:"0 0 ".concat(e.blur,"px ").concat(e.spread,"px rgba(0, 0, 0, ").concat(e.opacity,")"),
34
+ height:f?"100%":"auto"
35
35
  },
36
36
  overlay:{
37
37
  background:b
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-jupiter",
3
- "version": "5.9.86",
3
+ "version": "5.10.0",
4
4
  "main": "./index.js",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -32,7 +32,6 @@
32
32
  "moment-jalaali": "^0.9.1",
33
33
  "react-responsive": "^8.0.3",
34
34
  "styled-components": "^4.4.1",
35
- "styled-components-grid": "^2.2.2",
36
35
  "styled-components-spacing": "^3.1.1",
37
36
  "react-lazy-load-image-component": "^1.4.1",
38
37
  "styled-media-query": "^2.1.2"