@crystaldesign/diva-core 25.11.0-beta.9 → 25.11.0-rc.1
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/build/esm/{ModalsWrapper-d04e0a96.js → ModalsWrapper-f1c1d9bd.js} +4 -4
- package/build/esm/{index-375190da.js → index-084333b4.js} +95 -11
- package/build/esm/{index-1f8ca112.js → index-102ba7c2.js} +380 -599
- package/build/esm/index.js +4 -5
- package/build/types/core/src/Content.d.ts.map +1 -1
- package/build/types/core/src/elements/Auth/OpenId/index.d.ts +3 -1
- package/build/types/core/src/elements/Auth/OpenId/index.d.ts.map +1 -1
- package/build/types/core/src/elements/DrawerMenu/index.d.ts +7 -0
- package/build/types/core/src/elements/DrawerMenu/index.d.ts.map +1 -0
- package/build/types/core/src/externalTypes.d.ts +13 -27
- package/build/types/core/src/externalTypes.d.ts.map +1 -1
- package/build/types/core/src/store/ContentStore.d.ts +12 -15
- package/build/types/core/src/store/ContentStore.d.ts.map +1 -1
- package/build/types/core/src/store/index.d.ts +17 -9
- package/build/types/core/src/store/index.d.ts.map +1 -1
- package/build/types/core/src/store/mock/divaCoreMockProvider.d.ts.map +1 -1
- package/build/types/core/src/store/mock/index.d.ts.map +1 -1
- package/build/types/core/src/types.d.ts +1 -9
- package/build/types/core/src/types.d.ts.map +1 -1
- package/build/umd/145.diva-core.umd.min.js +1 -1
- package/build/umd/373.diva-core.umd.min.js +2 -0
- package/build/umd/373.diva-core.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/64.diva-core.umd.min.js +2 -0
- package/build/umd/64.diva-core.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/{490.diva-core.umd.min.js → 703.diva-core.umd.min.js} +2 -2
- package/build/umd/703.diva-core.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/759.diva-core.umd.min.js +2 -0
- package/build/umd/759.diva-core.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/860.diva-core.umd.min.js +2 -0
- package/build/umd/860.diva-core.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/940.diva-core.umd.min.js +2 -0
- package/build/umd/940.diva-core.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/diva-core.umd.min.js +3 -3
- package/build/umd/report.html +1 -1
- package/package.json +11 -11
- package/build/types/core/src/elements/Barrier/SimpleLogin.d.ts +0 -9
- package/build/types/core/src/elements/Barrier/SimpleLogin.d.ts.map +0 -1
- package/build/types/core/src/elements/Barrier/index.d.ts +0 -9
- package/build/types/core/src/elements/Barrier/index.d.ts.map +0 -1
- package/build/types/core/src/elements/SideMenu/index.d.ts +0 -6
- package/build/types/core/src/elements/SideMenu/index.d.ts.map +0 -1
- package/build/umd/124.diva-core.umd.min.js +0 -2
- package/build/umd/124.diva-core.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/171.diva-core.umd.min.js +0 -2
- package/build/umd/171.diva-core.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/490.diva-core.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/60.diva-core.umd.min.js +0 -2
- package/build/umd/60.diva-core.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/795.diva-core.umd.min.js +0 -2
- package/build/umd/795.diva-core.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/922.diva-core.umd.min.js +0 -2
- package/build/umd/922.diva-core.umd.min.js.LICENSE.txt +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { s as styleInject, u as useDivaCoreContext } from './index-102ba7c2.js';
|
|
2
2
|
import { useState, useEffect, useCallback } from 'react';
|
|
3
3
|
import { observer } from 'mobx-react-lite';
|
|
4
4
|
import Button from '@mui/material/Button';
|
|
@@ -36,13 +36,13 @@ import '@mui/material/styles';
|
|
|
36
36
|
import '@mui/material/locale';
|
|
37
37
|
import '@elastic/apm-rum-react';
|
|
38
38
|
import '@mui/material/Typography';
|
|
39
|
-
import 'classnames';
|
|
40
|
-
import '@mui/icons-material';
|
|
41
39
|
import '@crystaldesign/basket-model';
|
|
42
40
|
import 'lodash/debounce';
|
|
43
41
|
import 'axios';
|
|
44
42
|
import '@crystaldesign/product-handler';
|
|
45
|
-
import '
|
|
43
|
+
import 'classnames';
|
|
44
|
+
import '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
45
|
+
import 'vaul';
|
|
46
46
|
import '@crystaldesign/content-box';
|
|
47
47
|
import '@crystaldesign/diva-core';
|
|
48
48
|
import 'react-qr-code';
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useState, useRef, useEffect, useMemo } from 'react';
|
|
1
|
+
import { s as styleInject, u as useDivaCoreContext, g as getLogger } from './index-102ba7c2.js';
|
|
2
|
+
import { forwardRef, useState, useRef, useEffect, useMemo } from 'react';
|
|
3
3
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
4
4
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
6
6
|
import { observer } from 'mobx-react-lite';
|
|
7
7
|
import { DivaError } from '@crystaldesign/diva-utils';
|
|
8
8
|
import { flowResult, toJS } from 'mobx';
|
|
9
|
-
import
|
|
9
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
10
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
10
11
|
import classnames from 'classnames';
|
|
11
|
-
import {
|
|
12
|
+
import { ArrowBack } from '@mui/icons-material';
|
|
13
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
14
|
+
import Button from '@mui/material/Button';
|
|
15
|
+
import { useTranslation } from 'react-i18next';
|
|
12
16
|
import CircularProgress from '@mui/material/CircularProgress';
|
|
13
17
|
import Alert from '@mui/material/Alert';
|
|
14
18
|
import { useTranslation as useTranslation$1 } from '@crystaldesign/diva-core';
|
|
@@ -18,14 +22,12 @@ import Checkbox from '@mui/material/Checkbox';
|
|
|
18
22
|
import Snowfall from 'react-snowfall';
|
|
19
23
|
import '@babel/runtime/helpers/classCallCheck';
|
|
20
24
|
import '@babel/runtime/helpers/createClass';
|
|
21
|
-
import '@babel/runtime/helpers/defineProperty';
|
|
22
25
|
import '@elastic/apm-rum';
|
|
23
26
|
import '@babel/runtime/helpers/possibleConstructorReturn';
|
|
24
27
|
import '@babel/runtime/helpers/getPrototypeOf';
|
|
25
28
|
import '@babel/runtime/helpers/inherits';
|
|
26
29
|
import '@babel/runtime/helpers/wrapNativeSuper';
|
|
27
30
|
import 'react-dom';
|
|
28
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
29
31
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
30
32
|
import 'mobile-detect';
|
|
31
33
|
import 'platform';
|
|
@@ -36,13 +38,12 @@ import '@mui/material/styles';
|
|
|
36
38
|
import '@mui/material/locale';
|
|
37
39
|
import '@elastic/apm-rum-react';
|
|
38
40
|
import '@mui/material/Typography';
|
|
39
|
-
import '@mui/material/Button';
|
|
40
|
-
import '@mui/icons-material';
|
|
41
41
|
import '@crystaldesign/basket-model';
|
|
42
42
|
import 'lodash/debounce';
|
|
43
43
|
import 'axios';
|
|
44
44
|
import '@crystaldesign/product-handler';
|
|
45
|
-
import '
|
|
45
|
+
import '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
46
|
+
import 'vaul';
|
|
46
47
|
import 'react-qr-code';
|
|
47
48
|
import '@mui/icons-material/Close';
|
|
48
49
|
import '@mui/material/IconButton';
|
|
@@ -50,8 +51,86 @@ import '@mui/icons-material/HelpOutline';
|
|
|
50
51
|
import '@storybook/addon-actions';
|
|
51
52
|
import '@mui/styles';
|
|
52
53
|
|
|
53
|
-
|
|
54
|
+
var titlecontainer = "titlecontainer-LeRMj";
|
|
55
|
+
var auth = "auth-y9j9-";
|
|
56
|
+
var loginBox = "login-box-Zu-QM";
|
|
57
|
+
var logoContainer = "logo-container-Gujpy";
|
|
58
|
+
var success = "success-7n9-D";
|
|
59
|
+
var error = "error-gJyOw";
|
|
60
|
+
var authButton = "auth-button-nvUhU";
|
|
61
|
+
var buttonDisabled = "button-disabled-GS-ox";
|
|
62
|
+
var socialButton = "social-button-p5pUa";
|
|
63
|
+
var google = "google-WhFJU";
|
|
64
|
+
var microsoft = "microsoft-e3GYR";
|
|
65
|
+
var separator = "separator-Hg6fH";
|
|
66
|
+
var input = "input--Dl8e";
|
|
67
|
+
var readonly = "readonly-uw66l";
|
|
68
|
+
var link = "link-s-Rcm";
|
|
69
|
+
var css_248z = ".titlecontainer-LeRMj {\n text-align: center;\n color: #474747;\n}\n\n.auth-y9j9- {\n height: 100%;\n width: 100%;\n display: flex;\n background-color: rgba(255, 255, 255);\n z-index: 3;\n overflow: auto;\n justify-content: center;\n align-items: center;\n position: absolute;\n}\n\n.login-box-Zu-QM {\n padding: 20px;\n width: 400px;\n margin: 50px auto auto auto;\n position: relative;\n}\n\n@media (max-height: 450px) {\n .login-box-Zu-QM {\n margin: auto;\n }\n}\n\n.logo-container-Gujpy {\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n margin-bottom: 50px;\n}\n\n.success-7n9-D {\n width: 100%;\n padding: 12px;\n border-radius: 4px;\n margin: 15px 0;\n box-sizing: border-box;\n background-color: rgb(228, 244, 228);\n color: rgb(17, 97, 73);\n border: rgb(195, 231, 202) solid 1px;\n border-left: solid 4px;\n line-height: 20px;\n font-size: 16px;\n position: relative;\n}\n\n.success-7n9-D span {\n width: 30px;\n height: 100%;\n float: left;\n background-repeat: no-repeat;\n background-image: url(\"data:image/svg+xml,%3Csvg fill%3D%22rgb(19%2C 170%2C 82)%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 height%3D%2230px%22 width%3D%2230px%22 viewBox%3D%220 0 24 24%22 %3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M8 15A7 7 0 108 1a7 7 0 000 14zm2.448-10.104a.997.997 0 111.508 1.306l-4.572 5.28a1 1 0 01-1.64-.07l-1.82-2.868a1 1 0 111.69-1.07l1.1 1.734 3.734-4.312z%22 fill%3D%22currentColor%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E\");\n position: absolute;\n}\n\n.success-7n9-D div {\n text-align: justify;\n margin-left: 30px;\n}\n\n[dir=\"ltr\"] .error-gJyOw {\n text-align: left;\n}\n\n[dir=\"rtl\"] .error-gJyOw {\n text-align: right;\n}\n\n.error-gJyOw {\n border-left: 4px solid red !important;\n}\n\n.error-gJyOw {\n border-radius: 4px;\n padding: 10px;\n display: flex;\n align-items: center;\n}\n\n.auth-button-nvUhU {\n width: 100%;\n padding: 12px;\n border-radius: 4px;\n margin: 15px 0;\n opacity: 0.85;\n font-size: 17px;\n line-height: 22px;\n cursor: pointer;\n box-sizing: border-box;\n background-color: var(--diva-theme-palette-primary-main);\n text-align: center;\n color: var(--diva-theme-palette-primary-contrast-text);\n text-transform: none;\n}\n\n.auth-button-nvUhU:hover {\n opacity: 1;\n}\n\n.button-disabled-GS-ox {\n opacity: 0.3;\n cursor: auto;\n cursor: initial;\n}\n.button-disabled-GS-ox:hover {\n opacity: 0.3;\n}\n\n.social-button-p5pUa {\n justify-content: space-around;\n text-transform: none;\n}\n\n.social-button-p5pUa div {\n width: 30px;\n height: 22px;\n float: left;\n background-repeat: no-repeat;\n background-size: contain;\n background-position: center;\n}\n\n.google-WhFJU,\n.microsoft-e3GYR {\n font-size: medium;\n margin-top: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 12px;\n background-color: white;\n color: #333;\n border: 1px solid #ddd;\n border-radius: 4px;\n font-weight: 600;\n padding: 12px;\n transition: all 0.3s ease-in-out;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n}\n\n.google-WhFJU:hover,\n.microsoft-e3GYR:hover {\n background-color: #f8f9fa;\n border-color: #bbb;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);\n}\n.google-WhFJU div {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22utf-8%22%3F%3E%3C!-- Uploaded to%3A SVG Repo%2C www.svgrepo.com%2C Generator%3A SVG Repo Mixer Tools --%3E%3Csvg width%3D%22800px%22 height%3D%22800px%22 viewBox%3D%22-3 0 262 262%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 preserveAspectRatio%3D%22xMidYMid%22%3E%3Cpath d%3D%22M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027%22 fill%3D%22%234285F4%22%2F%3E%3Cpath d%3D%22M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1%22 fill%3D%22%2334A853%22%2F%3E%3Cpath d%3D%22M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782%22 fill%3D%22%23FBBC05%22%2F%3E%3Cpath d%3D%22M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251%22 fill%3D%22%23EB4335%22%2F%3E%3C%2Fsvg%3E\");\n}\n.microsoft-e3GYR div {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22utf-8%22%3F%3E%3C!-- Uploaded to%3A SVG Repo%2C www.svgrepo.com%2C Generator%3A SVG Repo Mixer Tools --%3E%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22aria-label%3D%22Microsoft%22 role%3D%22img%22viewBox%3D%220 0 512 512%22%3E%3Crectwidth%3D%22512%22 height%3D%22512%22rx%3D%2215%25%22fill%3D%22%23ffffff%22%2F%3E%3Cpathd%3D%22M75 75v171h171v-171z%22 fill%3D%22%23f25022%22%2F%3E%3Cpathd%3D%22M266 75v171h171v-171z%22 fill%3D%22%237fba00%22%2F%3E%3Cpathd%3D%22M75 266v171h171v-171z%22 fill%3D%22%2300a4ef%22%2F%3E%3Cpathd%3D%22M266 266v171h171v-171z%22 fill%3D%22%23ffb900%22%2F%3E%3C%2Fsvg%3E\");\n}\n\n.separator-Hg6fH {\n display: flex;\n align-items: center;\n text-align: center;\n color: rgb(184, 196, 194);\n}\n\n.separator-Hg6fH::before,\n.separator-Hg6fH::after {\n content: '';\n flex: 1;\n border-bottom: 1px solid rgb(184, 196, 194);\n}\n\n.separator-Hg6fH:not(:empty)::before {\n margin-right: 0.25em;\n}\n\n.separator-Hg6fH:not(:empty)::after {\n margin-left: 0.25em;\n}\n\n.input--Dl8e {\n width: 100%;\n padding: 1em;\n border: solid 1px rgba(0, 0, 0, 0.1);\n border-radius: 0.3em;\n outline: none;\n margin: 15px 0;\n box-sizing: border-box;\n}\n\n.input--Dl8e:hover,\n.input--Dl8e:focus,\n.input--Dl8e:active {\n border: solid 1px var(--diva-theme-palette-primary-main);\n}\n\n.input--Dl8e::-moz-placeholder {\n color: rgba(0, 0, 0, 0.25);\n}\n\n.input--Dl8e::placeholder {\n color: rgba(0, 0, 0, 0.25);\n}\n\n.input--Dl8e.readonly-uw66l {\n border: solid 1px rgba(0, 0, 0, 0.1);\n color: rgba(0, 0, 0, 0.25);\n}\n\n.reset-input-ERpB4 {\n position: relative;\n}\n\n.reset-input-ERpB4:after {\n content: '';\n position: absolute;\n right: 10px;\n top: 0;\n bottom: 0;\n width: 20px;\n background: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 %3F%3E%3C!DOCTYPE svg PUBLIC '-%2F%2FW3C%2F%2FDTD SVG 1.1%2F%2FEN' 'http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd'%3E%3Csvg id%3D%22Layer_1%22 style%3D%22enable-background%3Anew 0 0 512 512%3B%22 version%3D%221.1%22 viewBox%3D%220 0 512 512%22 width%3D%22512px%22 xml%3Aspace%3D%22preserve%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cg%3E%3Cpath d%3D%22M256%2C33C132.3%2C33%2C32%2C133.3%2C32%2C257c0%2C123.7%2C100.3%2C224%2C224%2C224c123.7%2C0%2C224-100.3%2C224-224C480%2C133.3%2C379.7%2C33%2C256%2C33z M364.3%2C332.5c1.5%2C1.5%2C2.3%2C3.5%2C2.3%2C5.6c0%2C2.1-0.8%2C4.2-2.3%2C5.6l-21.6%2C21.7c-1.6%2C1.6-3.6%2C2.3-5.6%2C2.3c-2%2C0-4.1-0.8-5.6-2.3L256%2C289.8 l-75.4%2C75.7c-1.5%2C1.6-3.6%2C2.3-5.6%2C2.3c-2%2C0-4.1-0.8-5.6-2.3l-21.6-21.7c-1.5-1.5-2.3-3.5-2.3-5.6c0-2.1%2C0.8-4.2%2C2.3-5.6l75.7-76 l-75.9-75c-3.1-3.1-3.1-8.2%2C0-11.3l21.6-21.7c1.5-1.5%2C3.5-2.3%2C5.6-2.3c2.1%2C0%2C4.1%2C0.8%2C5.6%2C2.3l75.7%2C74.7l75.7-74.7 c1.5-1.5%2C3.5-2.3%2C5.6-2.3c2.1%2C0%2C4.1%2C0.8%2C5.6%2C2.3l21.6%2C21.7c3.1%2C3.1%2C3.1%2C8.2%2C0%2C11.3l-75.9%2C75L364.3%2C332.5z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E\") center / contain no-repeat;\n cursor: pointer;\n opacity: 0.7;\n}\n\n.link-s-Rcm {\n color: var(--diva-theme-palette-primary-main);\n cursor: pointer;\n display: inline-block;\n}\n";
|
|
70
|
+
styleInject(css_248z);
|
|
71
|
+
|
|
72
|
+
var _excluded$1 = ["className", "readOnly", "resetInput"];
|
|
73
|
+
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
74
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
75
|
+
var Input = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
76
|
+
var className = _ref.className,
|
|
77
|
+
readOnly = _ref.readOnly,
|
|
78
|
+
resetInput = _ref.resetInput,
|
|
79
|
+
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
80
|
+
return /*#__PURE__*/jsxs("div", {
|
|
81
|
+
style: {
|
|
82
|
+
position: 'relative'
|
|
83
|
+
},
|
|
84
|
+
children: [/*#__PURE__*/jsx("input", _objectSpread$1({
|
|
85
|
+
ref: ref,
|
|
86
|
+
className: classnames(input, readOnly ? readonly : undefined, className),
|
|
87
|
+
readOnly: readOnly,
|
|
88
|
+
"data-test-id": "barrier-input-text",
|
|
89
|
+
style: {
|
|
90
|
+
paddingLeft: resetInput ? '40px' : undefined
|
|
91
|
+
} // Platzierung des Pfeils
|
|
92
|
+
}, props)), resetInput && /*#__PURE__*/jsx(ArrowBack, {
|
|
93
|
+
onClick: function onClick() {
|
|
94
|
+
return resetInput();
|
|
95
|
+
},
|
|
96
|
+
style: {
|
|
97
|
+
position: 'absolute',
|
|
98
|
+
left: '8px',
|
|
99
|
+
// Platzierung des Pfeils
|
|
100
|
+
top: '50%',
|
|
101
|
+
transform: 'translateY(-50%)',
|
|
102
|
+
// Vertikale Zentrierung
|
|
103
|
+
cursor: 'pointer'
|
|
104
|
+
}
|
|
105
|
+
})]
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
var _excluded = ["className", "disabled", "children", "onClick", "style"];
|
|
110
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
111
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
112
|
+
function AuthButton(_ref) {
|
|
113
|
+
var className = _ref.className,
|
|
114
|
+
disabled = _ref.disabled,
|
|
115
|
+
children = _ref.children,
|
|
116
|
+
onClick = _ref.onClick,
|
|
117
|
+
style = _ref.style,
|
|
118
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
119
|
+
return /*#__PURE__*/jsx(Button, _objectSpread(_objectSpread({
|
|
120
|
+
id: "submit",
|
|
121
|
+
variant: "contained",
|
|
122
|
+
disabled: disabled,
|
|
123
|
+
onClick: onClick,
|
|
124
|
+
className: classnames(authButton, className, disabled ? buttonDisabled : undefined),
|
|
125
|
+
style: style
|
|
126
|
+
}, props), {}, {
|
|
127
|
+
children: children
|
|
128
|
+
}));
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function OpenId (_ref) {
|
|
54
132
|
var _authorizationStore$s, _loginMethods$generic, _loginMethods$generic2;
|
|
133
|
+
var disabled = _ref.disabled;
|
|
55
134
|
var _useDivaCoreContext = useDivaCoreContext(),
|
|
56
135
|
configurationStore = _useDivaCoreContext.configurationStore,
|
|
57
136
|
authorizationStore = _useDivaCoreContext.authorizationStore;
|
|
@@ -60,6 +139,7 @@ function OpenId () {
|
|
|
60
139
|
var loginMethods = (_authorizationStore$s = authorizationStore.state) === null || _authorizationStore$s === void 0 ? void 0 : _authorizationStore$s.loginMethods;
|
|
61
140
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
62
141
|
children: [(loginMethods === null || loginMethods === void 0 ? void 0 : loginMethods.google) && /*#__PURE__*/jsxs(AuthButton, {
|
|
142
|
+
disabled: disabled,
|
|
63
143
|
className: classnames(socialButton, google),
|
|
64
144
|
onClick: function onClick() {
|
|
65
145
|
var _authorizationStore$s2;
|
|
@@ -67,6 +147,7 @@ function OpenId () {
|
|
|
67
147
|
},
|
|
68
148
|
children: [/*#__PURE__*/jsx("div", {}), t('auth.login.google')]
|
|
69
149
|
}), (loginMethods === null || loginMethods === void 0 ? void 0 : loginMethods.microsoft) && /*#__PURE__*/jsxs(AuthButton, {
|
|
150
|
+
disabled: disabled,
|
|
70
151
|
className: classnames(socialButton, microsoft),
|
|
71
152
|
onClick: function onClick() {
|
|
72
153
|
var _authorizationStore$s3;
|
|
@@ -74,6 +155,7 @@ function OpenId () {
|
|
|
74
155
|
},
|
|
75
156
|
children: [/*#__PURE__*/jsx("div", {}), t('auth.login.microsoft')]
|
|
76
157
|
}), (loginMethods === null || loginMethods === void 0 ? void 0 : loginMethods.generic) && /*#__PURE__*/jsxs(AuthButton, {
|
|
158
|
+
disabled: disabled,
|
|
77
159
|
className: socialButton,
|
|
78
160
|
style: {
|
|
79
161
|
backgroundColor: (_loginMethods$generic = loginMethods.generic.backgroundColor) !== null && _loginMethods$generic !== void 0 ? _loginMethods$generic : configurationStore.theme.palette.secondary.main,
|
|
@@ -853,7 +935,9 @@ function Register() {
|
|
|
853
935
|
title: t('auth.title.register'),
|
|
854
936
|
text: t('auth.text.register', ''),
|
|
855
937
|
errorText: errorText !== null && errorText !== void 0 ? errorText : ''
|
|
856
|
-
}), /*#__PURE__*/jsx(OpenId, {
|
|
938
|
+
}), /*#__PURE__*/jsx(OpenId, {
|
|
939
|
+
disabled: !agbAccepted
|
|
940
|
+
}), ((loginMethods === null || loginMethods === void 0 ? void 0 : loginMethods.generic) || (loginMethods === null || loginMethods === void 0 ? void 0 : loginMethods.google) || (loginMethods === null || loginMethods === void 0 ? void 0 : loginMethods.microsoft)) && loginMethods.standard && /*#__PURE__*/jsx("div", {
|
|
857
941
|
className: separator,
|
|
858
942
|
children: "or"
|
|
859
943
|
}), (loginMethods === null || loginMethods === void 0 ? void 0 : loginMethods.standard) && /*#__PURE__*/jsxs(Fragment, {
|