powr-sdk-web 1.9.1 → 1.9.2
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 +7 -11
- package/package.json +34 -34
package/dist/auth/index.js
CHANGED
|
@@ -41,11 +41,7 @@ var PowrLogin = function PowrLogin(_ref) {
|
|
|
41
41
|
_ref$mode = _ref.mode,
|
|
42
42
|
mode = _ref$mode === void 0 ? 'toggle' : _ref$mode,
|
|
43
43
|
_ref$showToggle = _ref.showToggle,
|
|
44
|
-
showToggle = _ref$showToggle === void 0 ? null : _ref$showToggle
|
|
45
|
-
_ref$showPoweredBy = _ref.showPoweredBy,
|
|
46
|
-
showPoweredBy = _ref$showPoweredBy === void 0 ? true : _ref$showPoweredBy,
|
|
47
|
-
_ref$poweredByText = _ref.poweredByText,
|
|
48
|
-
poweredByText = _ref$poweredByText === void 0 ? 'Powered by PowrLogin' : _ref$poweredByText;
|
|
44
|
+
showToggle = _ref$showToggle === void 0 ? null : _ref$showToggle;
|
|
49
45
|
// Initialize state based on mode
|
|
50
46
|
var _useState = (0, _react.useState)(function () {
|
|
51
47
|
switch (mode) {
|
|
@@ -370,11 +366,11 @@ var PowrLogin = function PowrLogin(_ref) {
|
|
|
370
366
|
style: _objectSpread(_objectSpread({}, styles.spinner), {}, {
|
|
371
367
|
animation: 'spin 1s linear infinite'
|
|
372
368
|
})
|
|
373
|
-
}) : isLogin ? 'Sign In' : 'Sign Up')),
|
|
369
|
+
}) : isLogin ? 'Sign In' : 'Sign Up')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
374
370
|
style: styles.poweredBySection
|
|
375
371
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
376
372
|
style: styles.poweredByText
|
|
377
|
-
},
|
|
373
|
+
}, "Secured by PowrLogin"))));
|
|
378
374
|
};
|
|
379
375
|
var styles = {
|
|
380
376
|
container: {
|
|
@@ -604,11 +600,11 @@ var styles = {
|
|
|
604
600
|
borderTop: '1px solid #e5e7eb'
|
|
605
601
|
},
|
|
606
602
|
poweredByText: {
|
|
607
|
-
fontSize: '
|
|
608
|
-
color: '#
|
|
609
|
-
fontWeight: '
|
|
603
|
+
fontSize: '13px',
|
|
604
|
+
color: '#6b7280',
|
|
605
|
+
fontWeight: '500',
|
|
610
606
|
margin: '0',
|
|
611
|
-
opacity: '0.
|
|
607
|
+
opacity: '0.8'
|
|
612
608
|
},
|
|
613
609
|
modalOverlay: {
|
|
614
610
|
position: 'fixed',
|
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.2",
|
|
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
|
+
}
|