@bytebrand/fe-ui-core 4.1.55 → 4.1.57
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/package.json +1 -1
- package/source/components/SearchPage/SearchTopBar/SearchTopBar.styl +2 -3
- package/source/components/_common/IconSVG/IconSVGConfig.tsx +2 -0
- package/source/components/_common/IconSVG/SVG/common/CheckGreen.tsx +22 -0
- package/source/components/_common/Modal/modals/ManageCookieModal/ManageCookieModal.tsx +14 -12
- package/source/components/_common/Modal/modals/PreviewCookieModal/PreviewCookieModal.tsx +1 -1
- package/source/components/_common/TimePicker/TimePicker.tsx +1 -1
- package/source/framework/constants/common.ts +1 -1
package/package.json
CHANGED
|
@@ -46,8 +46,7 @@
|
|
|
46
46
|
font-weight: 700
|
|
47
47
|
|
|
48
48
|
.sorting
|
|
49
|
-
|
|
50
|
-
min-width: 140px
|
|
49
|
+
min-width: 180px;
|
|
51
50
|
[class*='MuiPaper-root'], [class*='MuiOutlinedInput-root']
|
|
52
51
|
font-size: 14px !important
|
|
53
52
|
|
|
@@ -96,6 +95,6 @@
|
|
|
96
95
|
color: $skyBlue
|
|
97
96
|
font-size: 13px
|
|
98
97
|
display: flex
|
|
99
|
-
justify-content: end
|
|
98
|
+
justify-content: flex-end
|
|
100
99
|
align-items: center
|
|
101
100
|
column-gap: 10px
|
|
@@ -99,6 +99,7 @@ import Discount100De from './SVG/common/Discount100De';
|
|
|
99
99
|
import NewFlagEn from './SVG/common/NewFlagEn';
|
|
100
100
|
import NewFlagDe from './SVG/common/NewFlagDe';
|
|
101
101
|
import AutodeLogo from './SVG/common/AutodeLogo';
|
|
102
|
+
import CheckGreen from './SVG/common/CheckGreen';
|
|
102
103
|
|
|
103
104
|
// vehicle
|
|
104
105
|
import EmergencyBrakeAssistant from './SVG/vehicle/EmergencyBrakeAssistant';
|
|
@@ -386,6 +387,7 @@ const components: IComponentsProp = {
|
|
|
386
387
|
discount100en: Discount100En,
|
|
387
388
|
discount66de: Discount66De,
|
|
388
389
|
discount100de: Discount100De,
|
|
390
|
+
checkGreen: CheckGreen,
|
|
389
391
|
|
|
390
392
|
// TODO: rename all icons according to convention
|
|
391
393
|
cross: DeleteV1Icon,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
const CheckGreen = (
|
|
5
|
+
props: any
|
|
6
|
+
) => {
|
|
7
|
+
return (
|
|
8
|
+
<svg
|
|
9
|
+
width="19"
|
|
10
|
+
height="19"
|
|
11
|
+
viewBox="0 0 19 19"
|
|
12
|
+
fill="none"
|
|
13
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
+
{ ...props }
|
|
15
|
+
>
|
|
16
|
+
<path d="M9.49967 0.333252C4.43967 0.333252 0.333008 4.43992 0.333008 9.49992C0.333008 14.5599 4.43967 18.6666 9.49967 18.6666C14.5597 18.6666 18.6663 14.5599 18.6663 9.49992C18.6663 4.43992 14.5597 0.333252 9.49967 0.333252ZM9.49967 16.8333C5.45717 16.8333 2.16634 13.5424 2.16634 9.49992C2.16634 5.45742 5.45717 2.16659 9.49967 2.16659C13.5422 2.16659 16.833 5.45742 16.833 9.49992C16.833 13.5424 13.5422 16.8333 9.49967 16.8333ZM13.7072 5.44825L7.66634 11.4891L5.29217 9.12409L3.99967 10.4166L7.66634 14.0833L14.9997 6.74992L13.7072 5.44825Z" fill="#72E128"/>
|
|
17
|
+
</svg>
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export default CheckGreen;
|
|
22
|
+
/* tslint:enable */
|
|
@@ -7,7 +7,7 @@ import Button from '../../../Button/Button';
|
|
|
7
7
|
import MaterialAccordionGroup from '../../../MaterialAccordionGroup/MaterialAccordionGroup';
|
|
8
8
|
import classNames from 'classnames';
|
|
9
9
|
import MaterialSwitch from '../../../MaterialSwitch/MaterialSwitch';
|
|
10
|
-
import { COOKIE_SCHEMA } from '
|
|
10
|
+
import { COOKIE_SCHEMA } from '../../../../../framework/constants/common';
|
|
11
11
|
|
|
12
12
|
const ManageCookieModal = () => {
|
|
13
13
|
const [analytcisMasterSwitch, setAnalyticsMasterSwitch] = useState(true);
|
|
@@ -15,22 +15,24 @@ const ManageCookieModal = () => {
|
|
|
15
15
|
const [analyticsSwitches, setAnalyticsSwitches] = useState({});
|
|
16
16
|
const [marketingSwitches, setMarketingSwitches] = useState({});
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
useEffect(
|
|
19
|
+
() => {
|
|
20
|
+
const newAnalyticsSwitches = COOKIE_SCHEMA.analytics.reduce((acc, item) => ({ ...acc, [item]: true }), {});
|
|
21
|
+
const newMarketingSwitches = COOKIE_SCHEMA.marketing.reduce((acc, item) => ({ ...acc, [item]: true }), {});
|
|
22
|
+
setAnalyticsSwitches(newAnalyticsSwitches);
|
|
23
|
+
setMarketingSwitches(newMarketingSwitches);
|
|
24
|
+
},
|
|
25
|
+
[]
|
|
26
|
+
);
|
|
25
27
|
|
|
26
28
|
const onHandleAnalyticsSwitchValue = (value: boolean) => {
|
|
27
|
-
const newAnalyticsSwitches = Object.keys(analyticsSwitches).reduce((acc, item) => ({ ...acc, [item]: value }), {})
|
|
29
|
+
const newAnalyticsSwitches = Object.keys(analyticsSwitches).reduce((acc, item) => ({ ...acc, [item]: value }), {});
|
|
28
30
|
setAnalyticsSwitches(newAnalyticsSwitches);
|
|
29
31
|
setAnalyticsMasterSwitch(value);
|
|
30
32
|
};
|
|
31
33
|
|
|
32
34
|
const onHandleMarketingSwitchValue = (value: boolean) => {
|
|
33
|
-
const newAnalyticsSwitches = Object.keys(analyticsSwitches).reduce((acc, item) => ({ ...acc, [item]: value }), {})
|
|
35
|
+
const newAnalyticsSwitches = Object.keys(analyticsSwitches).reduce((acc, item) => ({ ...acc, [item]: value }), {});
|
|
34
36
|
setMarketingSwitches(newAnalyticsSwitches);
|
|
35
37
|
setMarketingMasterSwitch(value);
|
|
36
38
|
};
|
|
@@ -91,7 +93,7 @@ const ManageCookieModal = () => {
|
|
|
91
93
|
<span>{cookie}</span>
|
|
92
94
|
<MaterialSwitch
|
|
93
95
|
value={analyticsSwitches[cookie]}
|
|
94
|
-
onChange={() => { setAnalyticsSwitches(s => ({ ...s, [cookie]: !s[cookie]})) }}
|
|
96
|
+
onChange={() => { setAnalyticsSwitches(s => ({ ...s, [cookie]: !s[cookie] })); }}
|
|
95
97
|
/>
|
|
96
98
|
</div>
|
|
97
99
|
)}
|
|
@@ -112,7 +114,7 @@ const ManageCookieModal = () => {
|
|
|
112
114
|
<span>Cookie</span>
|
|
113
115
|
<MaterialSwitch
|
|
114
116
|
value={marketingSwitches[cookie]}
|
|
115
|
-
onChange={() => setMarketingSwitches(s => ({ ...s, [cookie]: !s[cookie]}))}
|
|
117
|
+
onChange={() => setMarketingSwitches(s => ({ ...s, [cookie]: !s[cookie] }))}
|
|
116
118
|
/>
|
|
117
119
|
</div>
|
|
118
120
|
)}
|
|
@@ -14,7 +14,7 @@ const PreviewCookieModal = ({ toggleModal, setModal }: IPreviewCookieModal) => {
|
|
|
14
14
|
localStorage.setItem('cookieConfig', JSON.stringify([]));
|
|
15
15
|
toggleModal();
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
return (
|
|
19
19
|
<div className={styles.modalWrapper}>
|
|
20
20
|
<IconSVG name='autodeLogo' customDimensions />
|
|
@@ -13,4 +13,4 @@ export const COOKIE_SCHEMA = {
|
|
|
13
13
|
analytics: ['PugT', 'locale', '_gcl_au', '_ga', '_gid', '_gat_UA-31842-13', 'uid', 'callback', 'demdex', '_hjFirstSeen', '_hjIncludedInSessionSample', '_hjIncludedInPageviewSample', '_hjAbsoluteSessionInProgress', 'vuid'],
|
|
14
14
|
marketing: ['_fbp', 'test_cookie', 'tuuid', 'tuuid_lu', 'c', 'CMID', 'CMPS', 'CMPRO', 'uuid2', 'IDE', 'um', 'umeh', 'cf', 'cip', 'cnac', 'car', 'KRTBCOOKIE_97', 'IDSYNC', 'dpm', '_kuid_', 'fr', 'cto_bundle',
|
|
15
15
|
'visitor-id', 'data-c-ts', 'data-c', 'CMTS', 'mv_tokens', 'A3', 'mv_tokens_eu-v1', 'am_tokens', 'am_tokens_eu-v1', '_hjSessionUser_2590373', 'iteo', '_hjSession_2590373', 'MyVerivoxAuth', 'VxCheckAuth']
|
|
16
|
-
}
|
|
16
|
+
};
|