powr-sdk-web 1.9.8 → 1.9.9
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/auth/index.js +43 -7
- package/package.json +34 -34
package/dist/auth/index.js
CHANGED
|
@@ -83,6 +83,10 @@ var PowrLogin = function PowrLogin(_ref) {
|
|
|
83
83
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
84
84
|
showConfirmPassword = _useState14[0],
|
|
85
85
|
setShowConfirmPassword = _useState14[1];
|
|
86
|
+
var _useState15 = (0, _react.useState)(false),
|
|
87
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
88
|
+
showTooltip = _useState16[0],
|
|
89
|
+
setShowTooltip = _useState16[1];
|
|
86
90
|
var shouldShowToggle = mode === 'toggle';
|
|
87
91
|
var handleInputChange = function handleInputChange(e) {
|
|
88
92
|
var _e$target = e.target,
|
|
@@ -227,9 +231,21 @@ var PowrLogin = function PowrLogin(_ref) {
|
|
|
227
231
|
style: styles.logoImage
|
|
228
232
|
})), /*#__PURE__*/_react["default"].createElement("h1", {
|
|
229
233
|
style: styles.title
|
|
230
|
-
}, isLogin ? 'Welcome to' : 'Join', " ", appName), /*#__PURE__*/_react["default"].createElement("
|
|
234
|
+
}, isLogin ? 'Welcome to' : 'Join', " ", appName), /*#__PURE__*/_react["default"].createElement("div", {
|
|
235
|
+
style: styles.subtitleContainer
|
|
236
|
+
}, /*#__PURE__*/_react["default"].createElement("p", {
|
|
231
237
|
style: styles.subtitle
|
|
232
|
-
}, isLogin ? 'Sign in to your
|
|
238
|
+
}, isLogin ? 'Sign in to your ' : 'Create your ', /*#__PURE__*/_react["default"].createElement("span", {
|
|
239
|
+
style: styles.powrAccountText,
|
|
240
|
+
onMouseEnter: function onMouseEnter() {
|
|
241
|
+
return setShowTooltip(true);
|
|
242
|
+
},
|
|
243
|
+
onMouseLeave: function onMouseLeave() {
|
|
244
|
+
return setShowTooltip(false);
|
|
245
|
+
}
|
|
246
|
+
}, "PowrAccount")), showTooltip && /*#__PURE__*/_react["default"].createElement("div", {
|
|
247
|
+
style: styles.tooltip
|
|
248
|
+
}, "Secure authentication powered by Lawazia Tech"))), /*#__PURE__*/_react["default"].createElement("form", {
|
|
233
249
|
onSubmit: handleSubmit,
|
|
234
250
|
style: styles.form
|
|
235
251
|
}, !isLogin && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -361,11 +377,7 @@ var PowrLogin = function PowrLogin(_ref) {
|
|
|
361
377
|
}, "Sign in here") : /*#__PURE__*/_react["default"].createElement("a", {
|
|
362
378
|
href: "/login",
|
|
363
379
|
style: styles.navigationLink
|
|
364
|
-
}, "Sign in here"))))
|
|
365
|
-
style: styles.poweredBySection
|
|
366
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
367
|
-
style: styles.poweredByText
|
|
368
|
-
}, "Secured by PowrLogin"))));
|
|
380
|
+
}, "Sign in here"))))));
|
|
369
381
|
};
|
|
370
382
|
var styles = {
|
|
371
383
|
container: {
|
|
@@ -691,6 +703,30 @@ var styles = {
|
|
|
691
703
|
fontWeight: '600',
|
|
692
704
|
cursor: 'pointer',
|
|
693
705
|
transition: 'background-color 0.2s ease'
|
|
706
|
+
},
|
|
707
|
+
subtitleContainer: {
|
|
708
|
+
position: 'relative',
|
|
709
|
+
display: 'inline-block'
|
|
710
|
+
},
|
|
711
|
+
powrAccountText: {
|
|
712
|
+
color: '#ff6b35',
|
|
713
|
+
fontWeight: '600',
|
|
714
|
+
cursor: 'help'
|
|
715
|
+
},
|
|
716
|
+
tooltip: {
|
|
717
|
+
position: 'absolute',
|
|
718
|
+
top: '100%',
|
|
719
|
+
left: '50%',
|
|
720
|
+
transform: 'translateX(-50%)',
|
|
721
|
+
background: '#333',
|
|
722
|
+
color: 'white',
|
|
723
|
+
padding: '8px 12px',
|
|
724
|
+
borderRadius: '6px',
|
|
725
|
+
fontSize: '12px',
|
|
726
|
+
whiteSpace: 'nowrap',
|
|
727
|
+
zIndex: 1001,
|
|
728
|
+
marginTop: '8px',
|
|
729
|
+
boxShadow: '0 4px 12px rgba(0, 0, 0, 0.15)'
|
|
694
730
|
}
|
|
695
731
|
};
|
|
696
732
|
var _default = exports["default"] = PowrLogin;
|
package/package.json
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "powr-sdk-web",
|
|
3
|
-
"version": "1.9.
|
|
4
|
-
"main": "dist/index.js",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "babel src -d dist --copy-files",
|
|
7
|
-
"prepublishOnly": "npm run build"
|
|
8
|
-
},
|
|
9
|
-
"keywords": [
|
|
10
|
-
"react",
|
|
11
|
-
"component",
|
|
12
|
-
"npm",
|
|
13
|
-
"file-upload",
|
|
14
|
-
"powrbase",
|
|
15
|
-
"comments"
|
|
16
|
-
],
|
|
17
|
-
"author": "Lawazia Tech",
|
|
18
|
-
"license": "MIT",
|
|
19
|
-
"repository": {
|
|
20
|
-
"type": "git",
|
|
21
|
-
"url": "https://github.com/lawaziatech/react-byto.git"
|
|
22
|
-
},
|
|
23
|
-
"peerDependencies": {
|
|
24
|
-
"react": "*",
|
|
25
|
-
"react-dom": "*"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@babel/cli": "^7.24.1",
|
|
29
|
-
"@babel/core": "^7.24.4",
|
|
30
|
-
"@babel/preset-env": "^7.24.4",
|
|
31
|
-
"@babel/preset-react": "^7.24.1",
|
|
32
|
-
"prop-types": "^15.8.1"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "powr-sdk-web",
|
|
3
|
+
"version": "1.9.9",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "babel src -d dist --copy-files",
|
|
7
|
+
"prepublishOnly": "npm run build"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"react",
|
|
11
|
+
"component",
|
|
12
|
+
"npm",
|
|
13
|
+
"file-upload",
|
|
14
|
+
"powrbase",
|
|
15
|
+
"comments"
|
|
16
|
+
],
|
|
17
|
+
"author": "Lawazia Tech",
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/lawaziatech/react-byto.git"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"react": "*",
|
|
25
|
+
"react-dom": "*"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@babel/cli": "^7.24.1",
|
|
29
|
+
"@babel/core": "^7.24.4",
|
|
30
|
+
"@babel/preset-env": "^7.24.4",
|
|
31
|
+
"@babel/preset-react": "^7.24.1",
|
|
32
|
+
"prop-types": "^15.8.1"
|
|
33
|
+
}
|
|
34
|
+
}
|