gatsby-matrix-theme 28.0.10 → 28.0.12
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/CHANGELOG.md +32 -0
- package/package.json +2 -2
- package/src/components/atoms/newsletter/toggle-button/newsletter-button.module.scss +1 -1
- package/src/components/atoms/toggle-button/toggle-button.module.scss +7 -7
- package/src/components/molecules/cookie-modal/category/category.module.scss +16 -20
- package/src/components/molecules/cookie-modal/category/index.js +10 -3
- package/src/components/molecules/cookie-modal/cookie-modal-two.stories.js +61 -0
- package/src/components/molecules/cookie-modal/cookie-modal.module.scss +196 -52
- package/src/components/molecules/cookie-modal/cookie-modal.stories.js +60 -0
- package/src/components/molecules/cookie-modal/index.js +109 -62
- package/src/components/molecules/faq/faq.module.scss +2 -2
- package/src/components/molecules/newsletter/newsletter.module.scss +1 -1
- package/src/components/organisms/popup/popup.module.scss +1 -1
- package/src/gatsby-core-theme/components/molecules/content/content.module.scss +1 -1
- package/src/gatsby-core-theme/components/molecules/main/index.js +0 -44
- package/src/gatsby-core-theme/components/organisms/cookie-consent/cookie-consent.module.scss +82 -26
- package/src/gatsby-core-theme/components/organisms/cookie-consent/cookie-consent.stories.js +139 -0
- package/src/gatsby-core-theme/components/organisms/cookie-consent/index.js +62 -41
- package/src/gatsby-core-theme/components/pages/body/index.js +29 -31
- package/src/gatsby-core-theme/hooks/modal/modal-content.js +6 -0
- package/src/gatsby-core-theme/hooks/modal/modal.module.scss +4 -2
- package/src/gatsby-core-theme/styles/utils/variables/_main.scss +1 -1
- package/src/images/cookie.png +0 -0
- package/static/images/cookie.png +0 -0
- package/storybook/public/{274.60bc33f1.iframe.bundle.js → 503.d52f567d.iframe.bundle.js} +4 -4
- package/storybook/public/{274.60bc33f1.iframe.bundle.js.map → 503.d52f567d.iframe.bundle.js.map} +1 -1
- package/storybook/public/{696.cd61e274.iframe.bundle.js → 696.a4cf872c.iframe.bundle.js} +1 -1
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.a12442e0.iframe.bundle.js +2 -0
- package/storybook/public/{runtime~main.35b291ea.iframe.bundle.js → runtime~main.bcbb6c21.iframe.bundle.js} +1 -1
- package/storybook/public/static/media/cookie.50ee9162.png +0 -0
- package/storybook-images/cookie.png +0 -0
- package/storybook/public/main.09d0a833.iframe.bundle.js +0 -2
- /package/storybook/public/{274.60bc33f1.iframe.bundle.js.LICENSE.txt → 503.d52f567d.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook/public/{main.09d0a833.iframe.bundle.js.LICENSE.txt → main.a12442e0.iframe.bundle.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
## [28.0.12](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v28.0.11...v28.0.12) (2023-08-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* cookie ([c911fdc](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/c911fdc2d865eadbb09b255c8b31fe515f31dfeb))
|
|
7
|
+
* cookie -fixes ([282afe3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/282afe321ff1d53cb31774175486fe6d273dc5bd))
|
|
8
|
+
* cookie consent ([86a83cb](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/86a83cba36cf559597a77a97b4e5643f5001ebcb))
|
|
9
|
+
* cookie consent ([d52ac33](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d52ac3338f1c42cfbe5c193bcf2ee6c47a425ab2))
|
|
10
|
+
* cookie consent ([f498cd6](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f498cd6b77fcb270eb2e3d85d42322988cd80926))
|
|
11
|
+
* cookie consent ([4cf1ebd](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/4cf1ebd6c77f4332d49e1a7c5521b9c92bbf4385))
|
|
12
|
+
* cookie consent ([ec653a8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ec653a8651dd24a81a8008391cc77c44c452ebc0))
|
|
13
|
+
* cookie consent ([8775eec](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/8775eecc4d412d5cf5498e09927e09e827870614))
|
|
14
|
+
* cookie decline ([647d526](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/647d5268c7cddb61c466eb6d6c974c141fe72466))
|
|
15
|
+
* cookie notice ([dee3088](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/dee30888bd734dcfbed3ebb78ae7a781602f9c05))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
* Merge branch 'tm-3302-cookie-consent' into 'master' ([ae57064](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ae57064eb68e2d0a03c596c5a5e243712091ccc4))
|
|
19
|
+
|
|
20
|
+
## [28.0.11](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v28.0.10...v28.0.11) (2023-08-03)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* remove changes for info grid ([12464e7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/12464e7fc1ffd685cfbd8dca272185f3ca4b33f5))
|
|
26
|
+
* remove log ([7cae045](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7cae045b89fd88d02801e859523ac83018fde7bf))
|
|
27
|
+
* update themes and delete secripts for facebook pixel and optin ([9379d49](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9379d491807bb66eb6d35716d5132672b1a1dce2))
|
|
28
|
+
* update transiton time for components ([67388ff](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/67388ff58ac09e9379f0163b57d5d863be1694b5))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
* Merge branch 'tm-3570-INP' into 'master' ([7080cca](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7080cca9167e3b3ba7f38c6845d69e112c56cf61))
|
|
32
|
+
|
|
1
33
|
## [28.0.10](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v28.0.9...v28.0.10) (2023-07-31)
|
|
2
34
|
|
|
3
35
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "28.0.
|
|
3
|
+
"version": "28.0.12",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"description": "Matrix Theme NPM Package",
|
|
6
6
|
"author": "",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@react-icons/all-files": "^4.1.0",
|
|
27
27
|
"gatsby": "^5.11.0",
|
|
28
|
-
"gatsby-core-theme": "25.0.
|
|
28
|
+
"gatsby-core-theme": "25.0.11",
|
|
29
29
|
"gatsby-plugin-sharp": "^5.11.0",
|
|
30
30
|
"gatsby-plugin-sitemap": "^3.3.0",
|
|
31
31
|
"gatsby-transformer-sharp": "^5.11.0",
|
|
@@ -25,29 +25,29 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.wrgtogglecontainer {
|
|
28
|
-
width:
|
|
29
|
-
height:
|
|
28
|
+
width: 4.8rem;
|
|
29
|
+
height: 2.4rem;
|
|
30
30
|
padding: 0;
|
|
31
31
|
border-radius: 30px;
|
|
32
|
-
background-color: #ced0dd;
|
|
32
|
+
background-color: var(--cookie-input-bg, #ced0dd);
|
|
33
33
|
transition: all 0.2s ease;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.wrgtogglecontainerOn {
|
|
37
|
-
background-color: #
|
|
37
|
+
background-color: var(--cookie-input-on-bg, #4DD792);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.wrgtogglecircle {
|
|
41
|
-
transition: all 0.
|
|
41
|
+
transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
|
|
42
42
|
position: absolute;
|
|
43
43
|
top: 1px;
|
|
44
44
|
left: 1px;
|
|
45
45
|
width: 22px;
|
|
46
46
|
height: 22px;
|
|
47
47
|
border-radius: 50%;
|
|
48
|
-
background-color: #fafafa;
|
|
48
|
+
background-color: var(--cookie-input-circle-bg, #fafafa);
|
|
49
49
|
box-sizing: border-box;
|
|
50
|
-
transition: all 0.
|
|
50
|
+
transition: all 0.2s ease;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.wrgtogglecircleAgreed {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
.categoryBox {
|
|
2
|
-
height:
|
|
2
|
+
height: var(--categoryBox-height, 4.3rem);
|
|
3
3
|
overflow-y: hidden;
|
|
4
4
|
background-color: #f3f2f2;
|
|
5
|
-
border-radius:
|
|
6
|
-
margin-top:
|
|
5
|
+
border-radius: 0.8rem;
|
|
6
|
+
margin-top: 0.8rem;
|
|
7
7
|
|
|
8
8
|
.categoryHeader {
|
|
9
9
|
display: flex;
|
|
10
10
|
justify-content: space-between;
|
|
11
11
|
align-items: center;
|
|
12
|
-
padding:
|
|
12
|
+
padding: var(--categoryBox-padding, 0.8rem 1.6rem);
|
|
13
13
|
font-weight: 700;
|
|
14
|
-
font-size:
|
|
15
|
-
line-height:
|
|
16
|
-
color: #
|
|
14
|
+
font-size: 1.6rem;
|
|
15
|
+
line-height: 2.7rem;
|
|
16
|
+
color: #1b1b1c;
|
|
17
17
|
|
|
18
18
|
> p {
|
|
19
19
|
font-weight: 700;
|
|
20
|
-
font-size:
|
|
21
|
-
line-height:
|
|
22
|
-
text-align: right
|
|
20
|
+
font-size: 1.4rem;
|
|
21
|
+
line-height: 2.2rem;
|
|
22
|
+
text-align: right;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.boxTitle {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
text-overflow: ellipsis;
|
|
31
31
|
> span {
|
|
32
32
|
margin: 0px;
|
|
33
|
-
padding-left:
|
|
33
|
+
padding-left: 0.8rem;
|
|
34
34
|
font-weight: 700;
|
|
35
35
|
font-size: 16px;
|
|
36
36
|
line-height: 24px;
|
|
@@ -43,16 +43,12 @@
|
|
|
43
43
|
|
|
44
44
|
.categoryText {
|
|
45
45
|
background-color: white;
|
|
46
|
-
margin:
|
|
47
|
-
padding:
|
|
46
|
+
margin: 1.5px;
|
|
47
|
+
padding: 1.6rem;
|
|
48
48
|
font-weight: 400;
|
|
49
|
-
font-size:
|
|
50
|
-
line-height:
|
|
51
|
-
color: #
|
|
52
|
-
|
|
53
|
-
@include min(tablet){
|
|
54
|
-
color:#150E06;
|
|
55
|
-
}
|
|
49
|
+
font-size: 1.4rem;
|
|
50
|
+
line-height: 2.2rem;
|
|
51
|
+
color: var(--categoryText-color, #515156);
|
|
56
52
|
}
|
|
57
53
|
}
|
|
58
54
|
|
|
@@ -14,6 +14,8 @@ const CategoryContainer = ({
|
|
|
14
14
|
currentSection,
|
|
15
15
|
setCurrentSection,
|
|
16
16
|
translations,
|
|
17
|
+
openSign = <AiOutlineMinus />,
|
|
18
|
+
closeSign = <AiOutlinePlus />,
|
|
17
19
|
}) => (
|
|
18
20
|
<div>
|
|
19
21
|
<div
|
|
@@ -23,16 +25,18 @@ const CategoryContainer = ({
|
|
|
23
25
|
>
|
|
24
26
|
<div className={styles.categoryHeader}>
|
|
25
27
|
<div className={styles.boxTitle}>
|
|
26
|
-
{currentSection === index ?
|
|
28
|
+
{currentSection === index ? openSign : closeSign}
|
|
27
29
|
<span>{translate(translations, obj?.translateKey, obj?.altTranslation)}</span>
|
|
28
30
|
</div>
|
|
29
31
|
{obj?.button ? (
|
|
30
32
|
<ToggleButton state={currentState} setStateFunc={updateState} />
|
|
31
33
|
) : (
|
|
32
|
-
<p>{translate(translations, 'cookie_container_always_text', '
|
|
34
|
+
<p>{translate(translations, 'cookie_container_always_text', 'Always Enabled')}</p>
|
|
33
35
|
)}
|
|
34
36
|
</div>
|
|
35
|
-
<div className={styles.categoryText}>
|
|
37
|
+
<div className={styles.categoryText}>
|
|
38
|
+
{translate(translations, obj?.textKey, obj?.defaultText)}
|
|
39
|
+
</div>
|
|
36
40
|
</div>
|
|
37
41
|
</div>
|
|
38
42
|
);
|
|
@@ -43,6 +47,7 @@ CategoryContainer.propTypes = {
|
|
|
43
47
|
altTranslation: PropTypes.string,
|
|
44
48
|
textKey: PropTypes.string,
|
|
45
49
|
button: PropTypes.bool,
|
|
50
|
+
defaultText: PropTypes.string,
|
|
46
51
|
}),
|
|
47
52
|
index: PropTypes.number,
|
|
48
53
|
currentState: PropTypes.bool,
|
|
@@ -50,6 +55,8 @@ CategoryContainer.propTypes = {
|
|
|
50
55
|
currentSection: PropTypes.number,
|
|
51
56
|
setCurrentSection: PropTypes.func,
|
|
52
57
|
translations: PropTypes.shape({}),
|
|
58
|
+
openSign: PropTypes.shape({}),
|
|
59
|
+
closeSign: PropTypes.shape({}),
|
|
53
60
|
};
|
|
54
61
|
|
|
55
62
|
export default CategoryContainer;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
3
|
+
import {
|
|
4
|
+
Title,
|
|
5
|
+
Description,
|
|
6
|
+
Primary,
|
|
7
|
+
PRIMARY_STORY,
|
|
8
|
+
ArgsTable,
|
|
9
|
+
} from '@storybook/addon-docs/blocks';
|
|
10
|
+
import MainProvider from 'gatsby-core-theme/src/context/MainProvider';
|
|
11
|
+
import logoImg from '../../../../storybook-images/logo.svg';
|
|
12
|
+
import CookieModal from '.';
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
title: 'Theme/Layout/Cookie/Settings/Template Two',
|
|
16
|
+
component: CookieModal,
|
|
17
|
+
args: {
|
|
18
|
+
translations: {
|
|
19
|
+
privacy_preference_title: 'Privacy Preference Center',
|
|
20
|
+
privacy_preference_text:
|
|
21
|
+
"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged",
|
|
22
|
+
neccesary_cookie_title: 'Necessary',
|
|
23
|
+
neccesary_cookie_text: 'Lorem Ipsum',
|
|
24
|
+
analytical_cookie_title: 'Analytical And Stadistical',
|
|
25
|
+
analytical_cookie_text: 'Lorem Ipsum',
|
|
26
|
+
marketing_cookie_title: 'Marketing',
|
|
27
|
+
marketing_cookie_text: 'Lorem Ipsum',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
argTypes: {},
|
|
31
|
+
parameters: {
|
|
32
|
+
docs: {
|
|
33
|
+
description: {
|
|
34
|
+
component: 'A component that displays Cookie Modal',
|
|
35
|
+
},
|
|
36
|
+
page: () => (
|
|
37
|
+
<>
|
|
38
|
+
<Title />
|
|
39
|
+
<Description />
|
|
40
|
+
<Primary />
|
|
41
|
+
<ArgsTable story={PRIMARY_STORY} />
|
|
42
|
+
</>
|
|
43
|
+
),
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const Template = (args) => (
|
|
49
|
+
<MainProvider
|
|
50
|
+
value={{
|
|
51
|
+
translations: args?.translations,
|
|
52
|
+
}}
|
|
53
|
+
>
|
|
54
|
+
<CookieModal {...args} />
|
|
55
|
+
</MainProvider>
|
|
56
|
+
);
|
|
57
|
+
export const Default = Template.bind({});
|
|
58
|
+
Default.args = {
|
|
59
|
+
logo: logoImg,
|
|
60
|
+
templateTwo: true,
|
|
61
|
+
};
|
|
@@ -1,18 +1,38 @@
|
|
|
1
|
+
.hide {
|
|
2
|
+
display: none;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.container {
|
|
6
|
+
position: fixed;
|
|
7
|
+
z-index: var(--cookie-consent-index);
|
|
8
|
+
top: 0;
|
|
9
|
+
right: 0;
|
|
10
|
+
background-color: red;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100vh;
|
|
13
|
+
background-color: rgba(255, 255, 255, 0.5);
|
|
14
|
+
@include flex-align(center, center);
|
|
15
|
+
}
|
|
16
|
+
|
|
1
17
|
.modalContent {
|
|
2
18
|
background-color: white;
|
|
3
|
-
|
|
4
|
-
|
|
19
|
+
box-shadow: 0px 8px 8px -4px rgba(27, 27, 28, 0.02), 0px 20px 24px -4px rgba(27, 27, 28, 0.05);
|
|
20
|
+
|
|
21
|
+
padding: var(--cookieModal-mobile-padding, 1.6rem 1.6rem 3.2rem);
|
|
22
|
+
max-width: 63.4rem;
|
|
23
|
+
margin: 0 auto;
|
|
24
|
+
height: auto;
|
|
5
25
|
overflow-y: scroll;
|
|
6
26
|
|
|
7
27
|
.modalCookieHeader {
|
|
8
28
|
display: flex;
|
|
9
29
|
position: relative;
|
|
10
|
-
padding-bottom:
|
|
11
|
-
border-bottom:
|
|
30
|
+
padding-bottom: 1.6rem;
|
|
31
|
+
border-bottom: 1.5px solid #dedede;
|
|
12
32
|
|
|
13
33
|
> img {
|
|
14
|
-
width:
|
|
15
|
-
height:
|
|
34
|
+
width: var(--cookieModal-mobile-img-width, 12.1rem);
|
|
35
|
+
height: var(--cookieModal-mobile-img-height, 3.2rem);
|
|
16
36
|
}
|
|
17
37
|
|
|
18
38
|
> button {
|
|
@@ -23,36 +43,49 @@
|
|
|
23
43
|
}
|
|
24
44
|
|
|
25
45
|
.modalTextHeader {
|
|
26
|
-
margin-top:
|
|
27
|
-
margin-bottom:
|
|
46
|
+
margin-top: 1.6rem;
|
|
47
|
+
margin-bottom: 1.6rem;
|
|
28
48
|
|
|
29
49
|
span {
|
|
30
|
-
font-size:
|
|
31
|
-
font-weight: 700;
|
|
32
|
-
line-height:
|
|
33
|
-
color: #
|
|
50
|
+
font-size: var(--cookieModal-mobile-privacy-size, 1.6rem);
|
|
51
|
+
font-weight: var(--cookieModal-mobile-privacy-weight, 700);
|
|
52
|
+
line-height: var(--cookieModal-mobile-privacy-Lineheight, 2.7rem);
|
|
53
|
+
color: var(--cookieModal-mobile-privacy-color, #1b1b1c);
|
|
34
54
|
}
|
|
35
55
|
p {
|
|
36
56
|
font-weight: 400;
|
|
37
|
-
font-size:
|
|
38
|
-
line-height:
|
|
39
|
-
color: #
|
|
40
|
-
margin-top:
|
|
57
|
+
font-size: var(--cookieModal-mobile-privacy-text-size, 1.4rem);
|
|
58
|
+
line-height: var(--cookieModal-mobile-privacy-text-Lineheight, 2.2rem);
|
|
59
|
+
color: var(--cookieModal-mobile-privacy-text-color, #515156);
|
|
60
|
+
margin-top: var(--cookieModal-mobile-privacy-text-margin-top, 1.6rem);
|
|
41
61
|
}
|
|
42
62
|
}
|
|
43
63
|
|
|
44
64
|
.modalButtons {
|
|
45
65
|
display: flex;
|
|
46
66
|
flex-direction: column;
|
|
67
|
+
padding: var(--cookieModal-button-padding, 0rem);
|
|
68
|
+
gap: var(--cookieModal-button-gap, 0.8rem);
|
|
47
69
|
|
|
48
70
|
button {
|
|
49
|
-
|
|
50
|
-
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
gap: var(--cookieModal-mobile-button-gap, 0.8rem);
|
|
74
|
+
height: var(--cookieModal-mobile-button-height, 4rem);
|
|
75
|
+
text-align: center;
|
|
76
|
+
font-size: var(--cookieModal-mobile-button-size, 1.4rem);
|
|
77
|
+
font-weight: var(--cookieModal-mobile-button-weight, 700);
|
|
78
|
+
line-height: var(--cookieModal-mobile-button-lineHeight, 2.2rem);
|
|
79
|
+
text-transform: capitalize;
|
|
80
|
+
padding: var(--cookieModal-mobile-button-padding, 0.8rem 1.6rem);
|
|
81
|
+
border-radius: var(--cookieModal-mobile-button-radius, 10rem);
|
|
82
|
+
background-color: var(--cookieModal-mobile-button-bg, #6e33e5);
|
|
83
|
+
color: var(--cookieModal-mobile-button-color, white) !important;
|
|
51
84
|
|
|
52
85
|
&:last-child {
|
|
53
|
-
background-color: white;
|
|
54
|
-
border:
|
|
55
|
-
color:
|
|
86
|
+
background-color: var(--cookieModal-mobile-second-button-bg, white);
|
|
87
|
+
border: var(--cookieModal-mobile-second-button-border, 2px solid #262629);
|
|
88
|
+
color: var(--cookieModal-mobile-second-button-color, #262629) !important;
|
|
56
89
|
|
|
57
90
|
&:hover {
|
|
58
91
|
background: none;
|
|
@@ -62,29 +95,43 @@
|
|
|
62
95
|
}
|
|
63
96
|
|
|
64
97
|
.mainBox {
|
|
65
|
-
padding-top:
|
|
98
|
+
padding-top: 1.4rem;
|
|
66
99
|
|
|
67
100
|
.mainTitle {
|
|
68
|
-
|
|
69
|
-
font-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
101
|
+
display: block;
|
|
102
|
+
font-weight: var(--cookieModal-mainTitle-weight, 700);
|
|
103
|
+
font-size: var(--cookieModal-mainTitle-size, 1.6rem);
|
|
104
|
+
line-height: var(--cookieModal-mainTitle-lineHeight, 2.7rem);
|
|
105
|
+
margin-bottom: var(--cookieModal-mainTitle-margin-bottom, 1.6rem);
|
|
106
|
+
color: var(--cookieModal-mainTitle-color, #1b1b1c);
|
|
107
|
+
|
|
108
|
+
@include min(tablet) {
|
|
109
|
+
font-size: var(--cookieModal-desktop-mainTitle-size, 1.6rem);
|
|
110
|
+
line-height: var(--cookieModal-desktop-mainTitle-lineHeight, 2.7rem);
|
|
111
|
+
}
|
|
73
112
|
}
|
|
74
113
|
}
|
|
75
114
|
.lastButton {
|
|
76
|
-
padding-top:
|
|
77
|
-
|
|
115
|
+
padding-top: 1.6rem;
|
|
116
|
+
|
|
78
117
|
> button {
|
|
79
|
-
|
|
118
|
+
background-color: var(--cookieModal-mobile-button-bg, #6e33e5);
|
|
119
|
+
padding: var(--cookieModal-mobile-button-padding, 0.8rem 1.6rem);
|
|
120
|
+
border-radius: var(--cookieModal-mobile-button-radius, 10rem);
|
|
121
|
+
height: var(--cookieModal-mobile-button-height, 4rem);
|
|
80
122
|
width: 100%;
|
|
81
123
|
margin-bottom: 0px;
|
|
124
|
+
color: var(--cookieModal-mobile-button-color, white) !important;
|
|
125
|
+
font-size: var(--cookieModal-mobile-button-size, 1.4rem);
|
|
126
|
+
font-weight: var(--cookieModal-mobile-button-weight, 700);
|
|
127
|
+
line-height: var(--cookieModal-mobile-button-lineHeight, 2.2rem);
|
|
128
|
+
text-transform: capitalize;
|
|
82
129
|
}
|
|
83
130
|
}
|
|
84
131
|
|
|
85
132
|
@include min(tablet) {
|
|
86
|
-
border-radius:
|
|
87
|
-
padding:
|
|
133
|
+
border-radius: 1.6rem;
|
|
134
|
+
padding: var(--cookieModal-desktop-padding, 2.4rem);
|
|
88
135
|
overflow-y: scroll;
|
|
89
136
|
max-height: 98vh;
|
|
90
137
|
&::-webkit-scrollbar {
|
|
@@ -102,49 +149,40 @@
|
|
|
102
149
|
}
|
|
103
150
|
.modalCookieHeader {
|
|
104
151
|
justify-content: center;
|
|
105
|
-
padding-bottom:
|
|
152
|
+
padding-bottom: 2.4rem;
|
|
106
153
|
border: none;
|
|
107
154
|
> img {
|
|
108
|
-
width:
|
|
109
|
-
height:
|
|
155
|
+
width: var(--cookieModal-desktop-img-width, 15.1rem);
|
|
156
|
+
height: var(--cookieModal-desktop-img-height, 4rem);
|
|
110
157
|
}
|
|
111
158
|
> button {
|
|
112
|
-
right: -
|
|
159
|
+
right: -16px;
|
|
113
160
|
top: -16px;
|
|
114
161
|
}
|
|
115
162
|
}
|
|
116
163
|
.modalTextHeader {
|
|
117
164
|
margin-top: 0px;
|
|
118
165
|
margin-bottom: 0px;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
166
|
+
font-size: var(--cookieModal-privacy-size, 1.6rem);
|
|
167
|
+
|
|
168
|
+
> span {
|
|
169
|
+
font-size: var(--cookieModal-desktop-privacy-size, 1.6rem);
|
|
170
|
+
line-height: var(--cookieModal-desktop-privacy-Lineheight, 2.7rem);
|
|
123
171
|
}
|
|
124
172
|
}
|
|
125
173
|
.modalButtons {
|
|
126
174
|
flex-direction: row;
|
|
127
|
-
padding:
|
|
175
|
+
padding: var(--cookieModal-desktop-button-padding, 1.6rem 0px);
|
|
176
|
+
gap: var(--cookieModal-desktop-button-gap, 0.8rem);
|
|
128
177
|
|
|
129
178
|
button {
|
|
130
179
|
margin-bottom: 0px;
|
|
131
|
-
&:last-child {
|
|
132
|
-
margin-left: 10px;
|
|
133
|
-
}
|
|
134
180
|
}
|
|
135
181
|
}
|
|
136
182
|
.mainBox {
|
|
137
183
|
padding-top: 8px;
|
|
138
|
-
color: #150e06;
|
|
139
|
-
.mainTitle {
|
|
140
|
-
margin: 0px;
|
|
141
|
-
font-size: 18px;
|
|
142
|
-
line-height: 26px;
|
|
143
|
-
margin-bottom: 8px;
|
|
144
|
-
}
|
|
145
184
|
}
|
|
146
185
|
.lastButton {
|
|
147
|
-
|
|
148
186
|
padding-bottom: 0rem;
|
|
149
187
|
> button {
|
|
150
188
|
width: auto;
|
|
@@ -152,3 +190,109 @@
|
|
|
152
190
|
}
|
|
153
191
|
}
|
|
154
192
|
}
|
|
193
|
+
|
|
194
|
+
.modalContentTwo {
|
|
195
|
+
padding: 1.6rem;
|
|
196
|
+
display: flex;
|
|
197
|
+
flex-direction: column;
|
|
198
|
+
background-color: white;
|
|
199
|
+
|
|
200
|
+
@include min(tablet) {
|
|
201
|
+
padding: 3.2rem;
|
|
202
|
+
border-radius: 1.6rem;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.modalCookieHeader {
|
|
206
|
+
justify-content: start;
|
|
207
|
+
padding-bottom: 2.4rem;
|
|
208
|
+
border: none;
|
|
209
|
+
> span {
|
|
210
|
+
color: #1b1b1c;
|
|
211
|
+
font-size: 2rem;
|
|
212
|
+
font-weight: 700;
|
|
213
|
+
line-height: 2.8rem;
|
|
214
|
+
text-transform: capitalize;
|
|
215
|
+
width: 90%;
|
|
216
|
+
|
|
217
|
+
@include min(tablet) {
|
|
218
|
+
width: 100%;
|
|
219
|
+
font-size: 2.4rem;
|
|
220
|
+
line-height: 3.2rem;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
@include min(tablet) {
|
|
224
|
+
padding-bottom: 3.2rem;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.modalTextHeader {
|
|
229
|
+
margin: 0rem;
|
|
230
|
+
> p {
|
|
231
|
+
margin: 0rem;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.modalButtons {
|
|
236
|
+
order: 3;
|
|
237
|
+
padding: 0rem;
|
|
238
|
+
padding-top: 2.4rem;
|
|
239
|
+
flex-direction: column-reverse;
|
|
240
|
+
|
|
241
|
+
@include min(tablet) {
|
|
242
|
+
gap: 0.8rem;
|
|
243
|
+
padding-top: 3.2rem;
|
|
244
|
+
flex-direction: row-reverse;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
> button {
|
|
248
|
+
width: 100%;
|
|
249
|
+
padding: 1.6rem 2.4rem;
|
|
250
|
+
height: 5.6rem;
|
|
251
|
+
font-size: 1.8rem;
|
|
252
|
+
font-weight: 700;
|
|
253
|
+
line-height: 2.6rem;
|
|
254
|
+
text-transform: capitalize;
|
|
255
|
+
|
|
256
|
+
&:last-child {
|
|
257
|
+
margin-left: 0rem;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.mainBox {
|
|
263
|
+
margin-top: 2.4rem;
|
|
264
|
+
padding-top: 0rem;
|
|
265
|
+
max-height: 5.6rem;
|
|
266
|
+
overflow: hidden;
|
|
267
|
+
background-color: #f4f4f4;
|
|
268
|
+
border-radius: 0.8rem;
|
|
269
|
+
padding: 0.8rem;
|
|
270
|
+
|
|
271
|
+
@include min(tablet) {
|
|
272
|
+
margin-top: 3.2rem;
|
|
273
|
+
padding: 1.6rem;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
> span {
|
|
277
|
+
padding: 0.8rem;
|
|
278
|
+
@include min(tablet) {
|
|
279
|
+
padding: 0rem;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
> div {
|
|
284
|
+
> div {
|
|
285
|
+
background-color: white;
|
|
286
|
+
|
|
287
|
+
> div:last-child {
|
|
288
|
+
background-color: #f4f4f4;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.mainBoxStyleTwoFullHeight {
|
|
295
|
+
max-height: unset !important;
|
|
296
|
+
overflow: unset;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
3
|
+
import {
|
|
4
|
+
Title,
|
|
5
|
+
Description,
|
|
6
|
+
Primary,
|
|
7
|
+
PRIMARY_STORY,
|
|
8
|
+
ArgsTable,
|
|
9
|
+
} from '@storybook/addon-docs/blocks';
|
|
10
|
+
import MainProvider from 'gatsby-core-theme/src/context/MainProvider';
|
|
11
|
+
import logoImg from '../../../../storybook-images/logo.svg';
|
|
12
|
+
import CookieModal from '.';
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
title: 'Theme/Layout/Cookie/Settings/Template One',
|
|
16
|
+
component: CookieModal,
|
|
17
|
+
args: {
|
|
18
|
+
translations: {
|
|
19
|
+
privacy_preference_title: 'Privacy Preference Center',
|
|
20
|
+
privacy_preference_text:
|
|
21
|
+
"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged",
|
|
22
|
+
neccesary_cookie_title: 'Necessary',
|
|
23
|
+
neccesary_cookie_text: 'Lorem Ipsum',
|
|
24
|
+
analytical_cookie_title: 'Analytical And Stadistical',
|
|
25
|
+
analytical_cookie_text: 'Lorem Ipsum',
|
|
26
|
+
marketing_cookie_title: 'Marketing',
|
|
27
|
+
marketing_cookie_text: 'Lorem Ipsum',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
argTypes: {},
|
|
31
|
+
parameters: {
|
|
32
|
+
docs: {
|
|
33
|
+
description: {
|
|
34
|
+
component: 'A component that displays Cookie Modal',
|
|
35
|
+
},
|
|
36
|
+
page: () => (
|
|
37
|
+
<>
|
|
38
|
+
<Title />
|
|
39
|
+
<Description />
|
|
40
|
+
<Primary />
|
|
41
|
+
<ArgsTable story={PRIMARY_STORY} />
|
|
42
|
+
</>
|
|
43
|
+
),
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const Template = (args) => (
|
|
49
|
+
<MainProvider
|
|
50
|
+
value={{
|
|
51
|
+
translations: args?.translations,
|
|
52
|
+
}}
|
|
53
|
+
>
|
|
54
|
+
<CookieModal {...args} />
|
|
55
|
+
</MainProvider>
|
|
56
|
+
);
|
|
57
|
+
export const Default = Template.bind({});
|
|
58
|
+
Default.args = {
|
|
59
|
+
logo: logoImg,
|
|
60
|
+
};
|