tg-core-components 6.3.4-picture.0 → 6.3.4
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/auth +51 -0
- package/es/components/Picture/index.js +2 -11
- package/lib/components/Picture/index.js +2 -11
- package/package.json +2 -2
package/auth
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
|
|
2
|
+
<!DOCTYPE html>
|
|
3
|
+
<html lang="sv">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<meta charset="utf-8">
|
|
7
|
+
<meta name="referrer" content="no-referrer">
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
9
|
+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
|
10
|
+
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
|
|
11
|
+
<title>Bethard</title>
|
|
12
|
+
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
|
|
13
|
+
<script src="https://cdn.ravenjs.com/3.26.4/raven.min.js" crossorigin="anonymous"></script>
|
|
14
|
+
<style type="text/css">
|
|
15
|
+
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: Futura;
|
|
18
|
+
font-style: normal;
|
|
19
|
+
font-weight: 400;
|
|
20
|
+
src: url("https://static.gii.cloud/futura_lt/Futura LT Medium.woff") format("woff"),url("https://static.gii.cloud/futura_lt/Futura LT Medium.ttf") format("truetype")
|
|
21
|
+
}
|
|
22
|
+
@font-face {
|
|
23
|
+
font-family: Futura;
|
|
24
|
+
src: local("Futura LT Bold"),local("Futura-LT-Bold"),url("https://static.gii.cloud/futura_lt/Futura LT Bold.woff") format("woff"),url("https://static.gii.cloud/futura_lt/Futura LT Bold.ttf") format("truetype");
|
|
25
|
+
font-weight: 600;
|
|
26
|
+
font-style: normal
|
|
27
|
+
}
|
|
28
|
+
@font-face {
|
|
29
|
+
font-family: Futura;
|
|
30
|
+
src: local("Futura LT Bold"),local("Futura-LT-Bold"),url("https://static.gii.cloud/futura_lt/Futura LT Bold.woff") format("woff"),url("https://static.gii.cloud/futura_lt/Futura LT Bold.ttf") format("truetype");
|
|
31
|
+
font-weight: 700;
|
|
32
|
+
font-style: normal
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
</style>
|
|
36
|
+
</head>
|
|
37
|
+
|
|
38
|
+
<body>
|
|
39
|
+
<main>
|
|
40
|
+
<div class="bankid-se-config" bankid-se-config="{"relyingPartyName":"Bethard","relyingPartyAvatar":"https://www.icelondon.uk.com/__media/libraries/exhibitor-press-releases/8FA2DD80-5056-B779-246F1902D15A57A0-image.png","relyingPartyURL":"https://www.bethard.com","theme":"dark","themeConfig":"\n\t\t{\n\t\t \"shadows\": [],\n\t\t \"props\": {\n\t\t \"MuiButtonBase\": {\n\t\t \"disableRipple\": true\n\t\t },\n\t\t \"MuiPaper\": {\n\t\t \"square\": true\n\t\t }\n\t\t },\n\t\t \"typography\": {\n\t\t\t\t\"fontFamily\": \"Futura, sans-serif\",\n\t\t\t\t\"fontSize\": 12\n\t\t\t},\n\t\t\t\"palette\": {\n\t\t\t\t\"type\": \"dark\",\n\t\t\t\t\"background\":{\n\t\t\t\t\t\"default\": \"#1a1a1a\"\n\t\t\t\t},\n\t\t\t\t\"primary\": {\n\t\t\t\t\t\"main\": \"#f7d146\"\n\t\t\t\t},\n\t\t\t\t\"secondary\": {\n\t\t\t\t\t\"main\": \"#C4A638\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"shape\": {\n\t\t\t\t\"borderRadius\": 0\n\t\t\t},\n\t\t \"overrides\": {\n\t\t \"MuiPaper\": {\n\t\t \"root\": {\n\t\t\t\t\t\t\"background\": \"#1a1a1a!important\",\n\t\t\t\t\t\t\"color\": \"#dedede\"\n\t\t }\n\t\t },\n\t\t \"MuiTypography\": {\n\t\t \"display1\": {\n\t\t \"color\": \"#f7d146!important\",\n\t\t \"fontWeight\": \"bold\",\n\t\t \"textTransform\": \"uppercase\"\n\t\t },\n\t\t \"title\": {\n\t\t \"fontWeight\": \"bold\",\n\t\t \"textTransform\": \"uppercase\"\n\t\t },\n\t\t \"headline\": {\n\t\t \"fontWeight\": \"bold\",\n\t\t \"textTransform\": \"uppercase\"\n\t\t }\n\t\t },\n\t\t \"MuiBottomNavigation\": {\n\t\t \"root\": {\n\t\t \"background\": \"#282828!important\"\n\t\t }\n\t\t },\n\t\t \"MuiBottomNavigationAction\": {\n\t\t \"selected\": {\n\t\t \"color\": \"#f7d146!important\"\n\t\t },\n\t\t \"label\": {\n\t\t \"color\": \"#dedede!important\"\n\t\t }\n\t\t },\n\t\t \"MuiButton\": {\n\t\t \"root\": {\n\t\t \"_fontWeight\": \"bold\",\n\t\t \"paddingLeft\": \"3em!important\",\n\t\t \"paddingRight\": \"3em!important\"\n\t\t },\n\t\t \"outlined\": {\n\t\t \"borderWidth\": 1.5,\n\t\t \"borderColor\": \"inherit\"\n\t\t\t\t\t},\n\t\t\t\t\t\"raised\": {\n\t\t\t\t\t\t\"fontWeight\": \"bold\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"MuiInputLabel\": {\n\t\t\t\t\t\"root\": {\n\t\t\t\t\t\t\"color\": \"#dedede!important\"\n\t\t\t\t\t},\n\t\t\t\t\t\"shrink\": {\n\t\t\t\t\t\t\"transform\": \"translate(0, 1.5px) scale(0.875)\",\n\t\t\t\t\t\t\"transformOrigin\": \"top left\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"MuiCircularProgress\": {\n\t\t\t\t\t\"_colorPrimary\": \"#f7d14666\",\n\t\t\t\t\t\"root\": {\n\t\t\t\t\t\t\"width\": \"70px!important\",\n \t\t \"height\": \"70px!important\",\n\t\t\t\t\t\t\"color\": \"#f7d146\"\n\t\t\t\t\t},\n\t\t\t\t\t\"circle\": {\n\t\t\t\t\t\t\"strokeWidth\": 2\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t}","fontURL":"","faviconURL":"","isIframe":true,"isInline":false,"css":"","cssURL":"","isPartial":false,"hasFixedSSN":true,"csrfToken":"FQC/JSj+/5Knv6FcyGEwio+ILW161vDZsLzNhbt82EI=","collectURL":"https://demo-api.gii.cloud/api/ip/bankid-se/auth/collect?id=880035236545495042\u0026csrfToken=FQC%2FJSj%2B%2F5Knv6FcyGEwio%2BILW161vDZsLzNhbt82EI%3D\u0026sessionID=96872c4a0e5e982ead7066a63ae065b231f5b3b03e6e4e58ffb2ea33ea86fa1a\u0026authRequestID=880035236525965314%2C341305621978906625%2CVqAgTCpjgN2%2B%2FjlHfeU9qoEqZdHNwFhBS5lc5VmQBUQ%3D","initSameDeviceURL":"https://demo-api.gii.cloud/api/ip/bankid-se/auth/initSameDevice?id=880035236545495042\u0026csrfToken=FQC%2FJSj%2B%2F5Knv6FcyGEwio%2BILW161vDZsLzNhbt82EI%3D\u0026sessionID=96872c4a0e5e982ead7066a63ae065b231f5b3b03e6e4e58ffb2ea33ea86fa1a\u0026authRequestID=880035236525965314%2C341305621978906625%2CVqAgTCpjgN2%2B%2FjlHfeU9qoEqZdHNwFhBS5lc5VmQBUQ%3D","initOtherDeviceURL":"https://demo-api.gii.cloud/api/ip/bankid-se/auth/initOtherDevice?id=880035236545495042\u0026csrfToken=FQC%2FJSj%2B%2F5Knv6FcyGEwio%2BILW161vDZsLzNhbt82EI%3D\u0026sessionID=96872c4a0e5e982ead7066a63ae065b231f5b3b03e6e4e58ffb2ea33ea86fa1a\u0026authRequestID=880035236525965314%2C341305621978906625%2CVqAgTCpjgN2%2B%2FjlHfeU9qoEqZdHNwFhBS5lc5VmQBUQ%3D","isSign":false,"hasPersonalNumber":true,"device":"OTHER","other":"","QR":"FALSE","lang":"sv","ssn":"199202143112","isNativePlatform":false,"redirectURL":"","redirect":false,"referer":"","isPhone":false,"cancelURL":"https://demo-api.gii.cloud/api/ip/bankid-se/auth/cancel?id=880035236545495042\u0026csrfToken=FQC%2FJSj%2B%2F5Knv6FcyGEwio%2BILW161vDZsLzNhbt82EI%3D\u0026sessionID=96872c4a0e5e982ead7066a63ae065b231f5b3b03e6e4e58ffb2ea33ea86fa1a\u0026authRequestID=880035236525965314%2C341305621978906625%2CVqAgTCpjgN2%2B%2FjlHfeU9qoEqZdHNwFhBS5lc5VmQBUQ%3D"}"></div>
|
|
41
|
+
<div class="bankid-se-lang" bankid-se-lang="{}"></div>
|
|
42
|
+
|
|
43
|
+
<script src="https://demo-api.gii.cloud/static/ip/bankidse/iframeResizer.contentWindow.min.js?rev=e05483705b84562824d8cb5f2ee1ce4657f40e18"></script>
|
|
44
|
+
<script src="https://demo-api.gii.cloud/static/ip/bankidse/bankidse-iframe.js?rev=e05483705b84562824d8cb5f2ee1ce4657f40e18"></script>
|
|
45
|
+
|
|
46
|
+
</main>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
</body>
|
|
50
|
+
|
|
51
|
+
</html>
|
|
@@ -13,13 +13,11 @@ export var LOADING = {
|
|
|
13
13
|
|
|
14
14
|
var Picture = function Picture(_ref) {
|
|
15
15
|
var src = _ref.src,
|
|
16
|
-
load = _ref.load,
|
|
17
|
-
opacity = _ref.opacity,
|
|
18
16
|
width = _ref.width,
|
|
19
17
|
height = _ref.height,
|
|
20
18
|
loading = _ref.loading,
|
|
21
19
|
className = _ref.className,
|
|
22
|
-
rest = _objectWithoutProperties(_ref, ['src', '
|
|
20
|
+
rest = _objectWithoutProperties(_ref, ['src', 'width', 'height', 'loading', 'className']);
|
|
23
21
|
|
|
24
22
|
if (!src) {
|
|
25
23
|
return React.createElement('img', null);
|
|
@@ -27,7 +25,7 @@ var Picture = function Picture(_ref) {
|
|
|
27
25
|
|
|
28
26
|
return React.createElement(
|
|
29
27
|
'picture',
|
|
30
|
-
{ className: cn('Picture', className)
|
|
28
|
+
{ className: cn('Picture', className) },
|
|
31
29
|
Array.isArray(src) && src.map(function (image, i) {
|
|
32
30
|
return React.createElement('source', {
|
|
33
31
|
key: i,
|
|
@@ -40,11 +38,6 @@ var Picture = function Picture(_ref) {
|
|
|
40
38
|
src: typeof src === 'string' ? src : undefined,
|
|
41
39
|
width: width,
|
|
42
40
|
height: height,
|
|
43
|
-
onLoad: function onLoad() {
|
|
44
|
-
if (typeof load === 'function') {
|
|
45
|
-
load();
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
41
|
loading: loading
|
|
49
42
|
}, rest))
|
|
50
43
|
);
|
|
@@ -59,8 +52,6 @@ Picture.propTypes = {
|
|
|
59
52
|
width: PropTypes.number,
|
|
60
53
|
height: PropTypes.number,
|
|
61
54
|
lazy: PropTypes.bool,
|
|
62
|
-
load: PropTypes.func,
|
|
63
|
-
opacity: PropTypes.number,
|
|
64
55
|
className: PropTypes.string
|
|
65
56
|
};
|
|
66
57
|
|
|
@@ -30,13 +30,11 @@ var LOADING = exports.LOADING = {
|
|
|
30
30
|
|
|
31
31
|
var Picture = function Picture(_ref) {
|
|
32
32
|
var src = _ref.src,
|
|
33
|
-
load = _ref.load,
|
|
34
|
-
opacity = _ref.opacity,
|
|
35
33
|
width = _ref.width,
|
|
36
34
|
height = _ref.height,
|
|
37
35
|
loading = _ref.loading,
|
|
38
36
|
className = _ref.className,
|
|
39
|
-
rest = _objectWithoutProperties(_ref, ['src', '
|
|
37
|
+
rest = _objectWithoutProperties(_ref, ['src', 'width', 'height', 'loading', 'className']);
|
|
40
38
|
|
|
41
39
|
if (!src) {
|
|
42
40
|
return _react2.default.createElement('img', null);
|
|
@@ -44,7 +42,7 @@ var Picture = function Picture(_ref) {
|
|
|
44
42
|
|
|
45
43
|
return _react2.default.createElement(
|
|
46
44
|
'picture',
|
|
47
|
-
{ className: (0, _classnames2.default)('Picture', className)
|
|
45
|
+
{ className: (0, _classnames2.default)('Picture', className) },
|
|
48
46
|
Array.isArray(src) && src.map(function (image, i) {
|
|
49
47
|
return _react2.default.createElement('source', {
|
|
50
48
|
key: i,
|
|
@@ -57,11 +55,6 @@ var Picture = function Picture(_ref) {
|
|
|
57
55
|
src: typeof src === 'string' ? src : undefined,
|
|
58
56
|
width: width,
|
|
59
57
|
height: height,
|
|
60
|
-
onLoad: function onLoad() {
|
|
61
|
-
if (typeof load === 'function') {
|
|
62
|
-
load();
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
58
|
loading: loading
|
|
66
59
|
}, rest))
|
|
67
60
|
);
|
|
@@ -76,8 +69,6 @@ Picture.propTypes = {
|
|
|
76
69
|
width: _propTypes2.default.number,
|
|
77
70
|
height: _propTypes2.default.number,
|
|
78
71
|
lazy: _propTypes2.default.bool,
|
|
79
|
-
load: _propTypes2.default.func,
|
|
80
|
-
opacity: _propTypes2.default.number,
|
|
81
72
|
className: _propTypes2.default.string
|
|
82
73
|
};
|
|
83
74
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tg-core-components",
|
|
3
|
-
"version": "6.3.4
|
|
3
|
+
"version": "6.3.4",
|
|
4
4
|
"description": "tg-core-components",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"webpack": "^3.0.0",
|
|
77
77
|
"webpack-blocks": "^1.0.0"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "655fb1956cc5f772c25bcb3a193836eb387d5122"
|
|
80
80
|
}
|