@tilli-pro/cookieconsent-plugin 0.6.0 → 0.7.23
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/.cache/tsbuildinfo.json +1 -1
- package/demos/demo.html +3 -3
- package/demos/demo.min.html +1 -1
- package/demos/demo.styles.dark.html +10 -1
- package/demos/demo.styles.dark.min.html +9 -0
- package/demos/demo.styles.nudge.dark.html +18 -0
- package/demos/demo.styles.nudge.dark.min.html +9 -0
- package/demos/demo.styles.nudge.light.html +18 -0
- package/demos/demo.styles.nudge.light.min.html +9 -0
- package/demos/demo.styles.tenant_con-edison.dark.html +18 -0
- package/demos/demo.styles.tenant_con-edison.dark.min.html +9 -0
- package/demos/demo.styles.tenant_con-edison.light.html +18 -0
- package/demos/demo.styles.tenant_con-edison.light.min.html +9 -0
- package/demos/demo.styles.tenant_freeman.dark.html +18 -0
- package/demos/demo.styles.tenant_freeman.dark.min.html +9 -0
- package/demos/demo.styles.tenant_freeman.light.html +18 -0
- package/demos/demo.styles.tenant_frontier.dark.html +18 -0
- package/demos/demo.styles.tenant_frontier.dark.min.html +9 -0
- package/demos/demo.styles.tenant_frontier.light.html +18 -0
- package/demos/demo.styles.tenant_frontier.light.min.html +9 -0
- package/demos/demo.styles.tenant_oru.dark.html +18 -0
- package/demos/demo.styles.tenant_oru.dark.min.html +9 -0
- package/demos/demo.styles.tenant_oru.light.html +18 -0
- package/demos/demo.styles.tenant_oru.light.min.html +10 -0
- package/demos/demo.styles.tilli-pay.dark.html +18 -0
- package/demos/demo.styles.tilli-pay.dark.min.html +9 -0
- package/demos/demo.styles.tilli-pay.light.html +18 -0
- package/demos/demo.styles.tilli-pay.light.min.html +9 -0
- package/demos/demo.styles.tilli-website.dark.html +18 -0
- package/demos/demo.styles.tilli-website.dark.min.html +9 -0
- package/demos/demo.styles.tilli-website.light.html +18 -0
- package/demos/demo.styles.tilli-website.light.min.html +9 -0
- package/dist/_types.d.ts +1 -1
- package/dist/_types.d.ts.map +1 -1
- package/dist/_utils.d.ts +2 -2
- package/dist/_utils.d.ts.map +1 -1
- package/dist/_utils.js +2 -0
- package/dist/config/gui-options/html-components/ManageCookiePrefsButton.d.ts.map +1 -1
- package/dist/config/gui-options/html-components/ManageCookiePrefsButton.js +3 -0
- package/dist/config/gui-options/html-components/assets/CookieIcon.js +1 -1
- package/dist/init/nudge-website.d.ts +2 -0
- package/dist/init/nudge-website.d.ts.map +1 -0
- package/dist/init/nudge-website.js +124 -0
- package/dist/init/nudge.d.ts +2 -0
- package/dist/init/nudge.d.ts.map +1 -0
- package/dist/init/nudge.js +32 -0
- package/dist/init/tilli-pay-website.d.ts +2 -0
- package/dist/init/tilli-pay-website.d.ts.map +1 -0
- package/dist/init/tilli-pay-website.js +204 -0
- package/dist/init/tilli-pay.d.ts +2 -0
- package/dist/init/tilli-pay.d.ts.map +1 -0
- package/dist/init/tilli-pay.js +22 -0
- package/dist/init/tilli-website.js +188 -2
- package/dist/init/tilliX.d.ts +2 -0
- package/dist/init/tilliX.d.ts.map +1 -0
- package/dist/init/tilliX.js +24 -0
- package/dist/init/utils.script.d.ts +26 -0
- package/dist/init/utils.script.d.ts.map +1 -0
- package/dist/init/utils.script.js +63 -0
- package/dist/init.d.ts +1 -1
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +4 -2
- package/dist/styles/index.d.ts +5 -0
- package/dist/styles/index.d.ts.map +1 -1
- package/dist/styles/index.js +5 -0
- package/dist/styles/nudge.css +121 -0
- package/dist/styles/tenants/con-edison.css +157 -0
- package/dist/styles/tenants/freeman.css +56 -1
- package/dist/styles/tenants/frontier.css +59 -2
- package/dist/styles/tenants/oru.css +157 -0
- package/dist/styles/tilli-pay.css +121 -0
- package/dist/styles/tilli-website.css +121 -0
- package/package.json +1 -1
- package/src/_types.ts +3 -2
- package/src/_utils.ts +5 -3
- package/src/config/gui-options/html-components/ManageCookiePrefsButton.ts +3 -0
- package/src/config/gui-options/html-components/assets/CookieIcon.ts +1 -1
- package/src/init/nudge-website.ts +140 -0
- package/src/init/nudge.ts +45 -0
- package/src/init/tilli-pay-website.ts +221 -0
- package/src/init/tilli-pay.ts +35 -0
- package/src/init/tilli-website.ts +192 -2
- package/src/init/tilliX.ts +37 -0
- package/src/init/utils.script.ts +72 -0
- package/src/init.ts +4 -2
- package/src/styles/index.ts +5 -0
- package/src/styles/nudge.css +121 -0
- package/src/styles/tenants/con-edison.css +157 -0
- package/src/styles/tenants/freeman.css +56 -1
- package/src/styles/tenants/frontier.css +59 -2
- package/src/styles/tenants/oru.css +157 -0
- package/src/styles/tilli-pay.css +121 -0
- package/src/styles/tilli-website.css +121 -0
- package/demos/demo.styles.freeman.html +0 -9
- package/demos/demo.styles.frontier.html +0 -9
@@ -0,0 +1,157 @@
|
|
1
|
+
/** NOTE: to auto-add `!important` suffixes, simply use this RegEx w/ Find + Replace:
|
2
|
+
* > Find: (:)(?![^;]*!important)([^;]+)(;)(?!.*\^)
|
3
|
+
* > Replace: :$2 !important;
|
4
|
+
*/
|
5
|
+
|
6
|
+
/** `tenant:oru` color-scheme **/
|
7
|
+
.cc--tenant\:oru-light {
|
8
|
+
--cc-bg: #ffffff !important;
|
9
|
+
--cc-primary-color: #2c2f31 !important;
|
10
|
+
--cc-secondary-color: #5e6266 !important;
|
11
|
+
|
12
|
+
--cc-btn-primary-bg: #004557 !important;
|
13
|
+
--cc-btn-primary-color: #ffffff !important;
|
14
|
+
--cc-btn-primary-border-color: var(--cc-btn-primary-bg) !important;
|
15
|
+
--cc-btn-primary-hover-bg: #004557 !important;
|
16
|
+
--cc-btn-primary-hover-color: #ffffff !important;
|
17
|
+
--cc-btn-primary-hover-border-color: var(
|
18
|
+
--cc-btn-primary-hover-bg
|
19
|
+
) !important;
|
20
|
+
|
21
|
+
--cc-btn-secondary-bg: #e2e8f0 !important;
|
22
|
+
--cc-btn-secondary-color: #334155 !important;
|
23
|
+
--cc-btn-secondary-border-color: var(--cc-btn-secondary-bg) !important;
|
24
|
+
--cc-btn-secondary-hover-bg: #f1f5f9 !important;
|
25
|
+
--cc-btn-secondary-hover-color: #000000 !important;
|
26
|
+
--cc-btn-secondary-hover-border-color: #d4dae0 !important;
|
27
|
+
|
28
|
+
--cc-separator-border-color: #f3f8fc !important;
|
29
|
+
|
30
|
+
--cc-toggle-on-bg: var(--cc-btn-primary-bg) !important;
|
31
|
+
--cc-toggle-off-bg: #667481 !important;
|
32
|
+
--cc-toggle-on-knob-bg: #ffffff !important;
|
33
|
+
--cc-toggle-off-knob-bg: var(--cc-toggle-on-knob-bg) !important;
|
34
|
+
|
35
|
+
--cc-toggle-enabled-icon-color: var(--cc-bg) !important; /* yes (v tick) */
|
36
|
+
--cc-toggle-disabled-icon-color: var(--cc-bg) !important; /* no (x tick) */
|
37
|
+
|
38
|
+
--cc-toggle-readonly-bg: #d5dee2 !important;
|
39
|
+
--cc-toggle-readonly-knob-bg: #fff !important;
|
40
|
+
--cc-toggle-readonly-knob-icon-color: var(--cc-toggle-readonly-bg) !important;
|
41
|
+
|
42
|
+
--cc-section-category-border: var(--cc-cookie-category-block-bg) !important;
|
43
|
+
|
44
|
+
--cc-cookie-category-block-bg: #f3f8fc !important;
|
45
|
+
--cc-cookie-category-block-border: #f3f8fc !important;
|
46
|
+
--cc-cookie-category-block-hover-bg: #f0f4f7 !important;
|
47
|
+
--cc-cookie-category-block-hover-border: #f0f4f7 !important;
|
48
|
+
--cc-cookie-category-expanded-block-bg: transparent !important;
|
49
|
+
--cc-cookie-category-expanded-block-hover-bg: #dee4e9 !important;
|
50
|
+
|
51
|
+
--cc-overlay-bg: rgba(0, 0, 0, 0.65) !important;
|
52
|
+
--cc-webkit-scrollbar-bg: var(--cc-section-category-border) !important;
|
53
|
+
--cc-webkit-scrollbar-hover-bg: var(--cc-btn-primary-hover-bg) !important;
|
54
|
+
|
55
|
+
--cc-footer-bg: #f3f8fc !important;
|
56
|
+
--cc-footer-color: var(--cc-secondary-color) !important;
|
57
|
+
--cc-footer-border-color: #e4eaed !important;
|
58
|
+
}
|
59
|
+
|
60
|
+
.cc--tenant\:oru-dark {
|
61
|
+
color-scheme: dark;
|
62
|
+
--cc-bg: #000 !important;
|
63
|
+
--cc-primary-color: #eff4f6 !important;
|
64
|
+
--cc-secondary-color: #b1bdc3 !important;
|
65
|
+
|
66
|
+
--cc-btn-primary-bg: #004557 !important;
|
67
|
+
--cc-btn-primary-color: #ffffff !important;
|
68
|
+
--cc-btn-primary-border-color: var(--cc-btn-primary-bg) !important;
|
69
|
+
--cc-btn-primary-hover-bg: #004557 !important;
|
70
|
+
--cc-btn-primary-hover-color: #ffffff !important;
|
71
|
+
--cc-btn-primary-hover-border-color: var(
|
72
|
+
--cc-btn-primary-hover-bg
|
73
|
+
) !important;
|
74
|
+
|
75
|
+
--cc-btn-secondary-bg: hsla(0,0%,100%,.039) !important;
|
76
|
+
--cc-btn-secondary-color: #fff !important;
|
77
|
+
--cc-btn-secondary-border-color: var(--cc-btn-secondary-bg) !important;
|
78
|
+
--cc-btn-secondary-hover-bg: #252729 !important;
|
79
|
+
--cc-btn-secondary-hover-color: #fff !important;
|
80
|
+
--cc-btn-secondary-hover-border-color: #252729 !important;
|
81
|
+
|
82
|
+
--cc-separator-border-color: #252729 !important;
|
83
|
+
|
84
|
+
--cc-toggle-on-bg: var(--cc-btn-primary-bg) !important;
|
85
|
+
--cc-toggle-off-bg: #667481 !important;
|
86
|
+
--cc-toggle-on-knob-bg: var(--cc-bg) !important;
|
87
|
+
--cc-toggle-off-knob-bg: var(--cc-toggle-on-knob-bg) !important;
|
88
|
+
|
89
|
+
--cc-toggle-enabled-icon-color: var(--cc-bg) !important; /* yes (v tick) */
|
90
|
+
--cc-toggle-disabled-icon-color: var(--cc-bg) !important; /* no (x tick) */
|
91
|
+
|
92
|
+
--cc-toggle-readonly-bg: #2f3132 !important;
|
93
|
+
--cc-toggle-readonly-knob-bg: var(--cc-cookie-category-block-bg) !important;
|
94
|
+
--cc-toggle-readonly-knob-icon-color: var(--cc-toggle-readonly-bg) !important;
|
95
|
+
|
96
|
+
--cc-section-category-border: var(--cc-cookie-category-block-bg) !important;
|
97
|
+
|
98
|
+
--cc-cookie-category-block-bg: #101111 !important;
|
99
|
+
--cc-cookie-category-block-border: #1d1e1f !important;
|
100
|
+
--cc-cookie-category-block-hover-bg: #151516 !important;
|
101
|
+
--cc-cookie-category-block-hover-border: #1d1e1f !important;
|
102
|
+
--cc-cookie-category-expanded-block-bg: #101111 !important;
|
103
|
+
--cc-cookie-category-expanded-block-hover-bg: #1d1e1f !important;
|
104
|
+
|
105
|
+
--cc-overlay-bg: rgba(0,0,0,.9) !important;
|
106
|
+
--cc-webkit-scrollbar-bg: var(--cc-section-category-border) !important;
|
107
|
+
--cc-webkit-scrollbar-hover-bg: var(--cc-btn-primary-hover-bg) !important;
|
108
|
+
|
109
|
+
--cc-footer-bg: #000 !important;
|
110
|
+
--cc-footer-color: var(--cc-secondary-color) !important;
|
111
|
+
--cc-footer-border-color: #212529 !important;
|
112
|
+
}
|
113
|
+
|
114
|
+
.cc--tenant\:oru-light div.cm__btn-group,
|
115
|
+
.cc--tenant\:oru-dark div.cm__btn-group,
|
116
|
+
.cc--tenant\:oru-light div.cm__btns,
|
117
|
+
.cc--tenant\:oru-dark div.cm__btns {
|
118
|
+
& > *:not(:first-child) {
|
119
|
+
margin-top: 8px !important;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
.cc--tenant\:oru-light div.pm__btn-group,
|
124
|
+
.cc--tenant\:oru-dark div.pm__btn-group {
|
125
|
+
& > *:not(:first-child) {
|
126
|
+
margin-left: 8px !important;
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
.cc--tenant\:oru-light button.cm__btn,
|
131
|
+
.cc--tenant\:oru-light button.pm__btn,
|
132
|
+
.cc--tenant\:oru-dark button.cm__btn,
|
133
|
+
.cc--tenant\:oru-dark button.pm__btn {
|
134
|
+
border-radius: 9999px !important;
|
135
|
+
font-weight: 800 !important;
|
136
|
+
letter-spacing: normal !important;
|
137
|
+
padding: 10px 24px !important; /* 10 px top/bottom, 24 px left/right */
|
138
|
+
height: 48px !important; /* 48 px height (3rem) */
|
139
|
+
font-size: 16px !important;
|
140
|
+
}
|
141
|
+
|
142
|
+
.cc--tenant\:oru-light button.cm__btn--secondary,
|
143
|
+
.cc--tenant\:oru-light button.pm__btn--secondary,
|
144
|
+
.cc--tenant\:oru-dark button.cm__btn--secondary,
|
145
|
+
.cc--tenant\:oru-dark button.pm__btn--secondary {
|
146
|
+
color: #004557 !important;
|
147
|
+
background-color: #fff !important;
|
148
|
+
border-color: #004557 !important;
|
149
|
+
border-width: 2.5px !important;
|
150
|
+
box-sizing: border-box !important;
|
151
|
+
}
|
152
|
+
|
153
|
+
/** font */
|
154
|
+
.cc--tenant\:oru-light #cc-main,
|
155
|
+
.cc--tenant\:oru-dark #cc-main {
|
156
|
+
font-family: var(--font-open-sans, var(--cc-font-family)) !important;
|
157
|
+
}
|
@@ -0,0 +1,121 @@
|
|
1
|
+
/** NOTE: to auto-add `!important` suffixes, simply use this RegEx w/ Find + Replace:
|
2
|
+
* > Find: (:)(?![^;]*!important)([^;]+)(;)(?!.*\^)
|
3
|
+
* > Replace: :$2 !important;
|
4
|
+
*/
|
5
|
+
|
6
|
+
/* TILLI_PAY_BLUE_HEX: #325ef6 */
|
7
|
+
/* TILLI_PAY_LIGHT_BLUE_HEX: #00b1ff */
|
8
|
+
|
9
|
+
/** `tilli-pay` color-scheme **/
|
10
|
+
.cc--tilli-pay-light {
|
11
|
+
--cc-bg: #ffffff !important;
|
12
|
+
--cc-primary-color: #2c2f31 !important;
|
13
|
+
--cc-secondary-color: #5e6266 !important;
|
14
|
+
|
15
|
+
--cc-btn-primary-bg: #00b1ff !important;
|
16
|
+
--cc-btn-primary-color: #ffffff !important;
|
17
|
+
--cc-btn-primary-border-color: var(--cc-btn-primary-bg) !important;
|
18
|
+
--cc-btn-primary-hover-bg: #1bb4f7 !important;
|
19
|
+
--cc-btn-primary-hover-color: #ffffff !important;
|
20
|
+
--cc-btn-primary-hover-border-color: var(
|
21
|
+
--cc-btn-primary-hover-bg
|
22
|
+
) !important;
|
23
|
+
|
24
|
+
--cc-btn-secondary-bg: #e2e8f0 !important;
|
25
|
+
--cc-btn-secondary-color: #334155 !important;
|
26
|
+
--cc-btn-secondary-border-color: var(--cc-btn-secondary-bg) !important;
|
27
|
+
--cc-btn-secondary-hover-bg: #f1f5f9 !important;
|
28
|
+
--cc-btn-secondary-hover-color: #000000 !important;
|
29
|
+
--cc-btn-secondary-hover-border-color: #d4dae0 !important;
|
30
|
+
|
31
|
+
--cc-separator-border-color: #f3f8fc !important;
|
32
|
+
|
33
|
+
--cc-toggle-on-bg: var(--cc-btn-primary-bg) !important;
|
34
|
+
--cc-toggle-off-bg: #667481 !important;
|
35
|
+
--cc-toggle-on-knob-bg: #ffffff !important;
|
36
|
+
--cc-toggle-off-knob-bg: var(--cc-toggle-on-knob-bg) !important;
|
37
|
+
|
38
|
+
--cc-toggle-enabled-icon-color: var(--cc-bg) !important; /* yes (v tick) */
|
39
|
+
--cc-toggle-disabled-icon-color: var(--cc-bg) !important; /* no (x tick) */
|
40
|
+
|
41
|
+
--cc-toggle-readonly-bg: #d5dee2 !important;
|
42
|
+
--cc-toggle-readonly-knob-bg: #fff !important;
|
43
|
+
--cc-toggle-readonly-knob-icon-color: var(--cc-toggle-readonly-bg) !important;
|
44
|
+
|
45
|
+
--cc-section-category-border: var(--cc-cookie-category-block-bg) !important;
|
46
|
+
|
47
|
+
--cc-cookie-category-block-bg: #f3f8fc !important;
|
48
|
+
--cc-cookie-category-block-border: #f3f8fc !important;
|
49
|
+
--cc-cookie-category-block-hover-bg: #f0f4f7 !important;
|
50
|
+
--cc-cookie-category-block-hover-border: #f0f4f7 !important;
|
51
|
+
--cc-cookie-category-expanded-block-bg: transparent !important;
|
52
|
+
--cc-cookie-category-expanded-block-hover-bg: #dee4e9 !important;
|
53
|
+
|
54
|
+
--cc-overlay-bg: rgba(0, 0, 0, 0.65) !important;
|
55
|
+
--cc-webkit-scrollbar-bg: var(--cc-section-category-border) !important;
|
56
|
+
--cc-webkit-scrollbar-hover-bg: var(--cc-btn-primary-hover-bg) !important;
|
57
|
+
|
58
|
+
--cc-footer-bg: #f3f8fc !important;
|
59
|
+
--cc-footer-color: var(--cc-secondary-color) !important;
|
60
|
+
--cc-footer-border-color: #e4eaed !important;
|
61
|
+
}
|
62
|
+
|
63
|
+
.cc--tilli-pay-dark {
|
64
|
+
color-scheme: dark;
|
65
|
+
--cc-bg: #000 !important;
|
66
|
+
--cc-primary-color: #eff4f6 !important;
|
67
|
+
--cc-secondary-color: #b1bdc3 !important;
|
68
|
+
|
69
|
+
--cc-btn-primary-bg: #1F9CD4 !important;
|
70
|
+
--cc-btn-primary-color: #000 !important;
|
71
|
+
--cc-btn-primary-border-color: var(--cc-btn-primary-bg) !important;
|
72
|
+
--cc-btn-primary-hover-bg: #44a7d4 !important;
|
73
|
+
--cc-btn-primary-hover-color: #000 !important;
|
74
|
+
--cc-btn-primary-hover-border-color: var(
|
75
|
+
--cc-btn-primary-hover-bg
|
76
|
+
) !important;
|
77
|
+
|
78
|
+
--cc-btn-secondary-bg: hsla(0,0%,100%,.039) !important;
|
79
|
+
--cc-btn-secondary-color: #fff !important;
|
80
|
+
--cc-btn-secondary-border-color: var(--cc-btn-secondary-bg) !important;
|
81
|
+
--cc-btn-secondary-hover-bg: #252729 !important;
|
82
|
+
--cc-btn-secondary-hover-color: #fff !important;
|
83
|
+
--cc-btn-secondary-hover-border-color: #252729 !important;
|
84
|
+
|
85
|
+
--cc-separator-border-color: #252729 !important;
|
86
|
+
|
87
|
+
--cc-toggle-on-bg: var(--cc-btn-primary-bg) !important;
|
88
|
+
--cc-toggle-off-bg: #667481 !important;
|
89
|
+
--cc-toggle-on-knob-bg: var(--cc-bg) !important;
|
90
|
+
--cc-toggle-off-knob-bg: var(--cc-toggle-on-knob-bg) !important;
|
91
|
+
|
92
|
+
--cc-toggle-enabled-icon-color: var(--cc-bg) !important; /* yes (v tick) */
|
93
|
+
--cc-toggle-disabled-icon-color: var(--cc-bg) !important; /* no (x tick) */
|
94
|
+
|
95
|
+
--cc-toggle-readonly-bg: #2f3132 !important;
|
96
|
+
--cc-toggle-readonly-knob-bg: var(--cc-cookie-category-block-bg) !important;
|
97
|
+
--cc-toggle-readonly-knob-icon-color: var(--cc-toggle-readonly-bg) !important;
|
98
|
+
|
99
|
+
--cc-section-category-border: var(--cc-cookie-category-block-bg) !important;
|
100
|
+
|
101
|
+
--cc-cookie-category-block-bg: #101111 !important;
|
102
|
+
--cc-cookie-category-block-border: #1d1e1f !important;
|
103
|
+
--cc-cookie-category-block-hover-bg: #151516 !important;
|
104
|
+
--cc-cookie-category-block-hover-border: #1d1e1f !important;
|
105
|
+
--cc-cookie-category-expanded-block-bg: #101111 !important;
|
106
|
+
--cc-cookie-category-expanded-block-hover-bg: #1d1e1f !important;
|
107
|
+
|
108
|
+
--cc-overlay-bg: rgba(0,0,0,.9) !important;
|
109
|
+
--cc-webkit-scrollbar-bg: var(--cc-section-category-border) !important;
|
110
|
+
--cc-webkit-scrollbar-hover-bg: var(--cc-btn-primary-hover-bg) !important;
|
111
|
+
|
112
|
+
--cc-footer-bg: #000 !important;
|
113
|
+
--cc-footer-color: var(--cc-secondary-color) !important;
|
114
|
+
--cc-footer-border-color: #212529 !important;
|
115
|
+
}
|
116
|
+
|
117
|
+
/** font */
|
118
|
+
.cc--tilli-pay-light #cc-main,
|
119
|
+
.cc--tilli-pay-dark #cc-main {
|
120
|
+
font-family: var(--font-inter, var(--cc-font-family)) !important;
|
121
|
+
}
|
@@ -0,0 +1,121 @@
|
|
1
|
+
/** NOTE: to auto-add `!important` suffixes, simply use this RegEx w/ Find + Replace:
|
2
|
+
* > Find: (:)(?![^;]*!important)([^;]+)(;)(?!.*\^)
|
3
|
+
* > Replace: :$2 !important;
|
4
|
+
*/
|
5
|
+
|
6
|
+
/* TILLI_BLUE_HEX: #335EF6 */
|
7
|
+
/* TILLI_LIGHT_BLUE_HEX: #02B1FF */
|
8
|
+
|
9
|
+
/** `tilli-website` color-scheme **/
|
10
|
+
.cc--tilli-website-light {
|
11
|
+
--cc-bg: #ffffff !important;
|
12
|
+
--cc-primary-color: #2c2f31 !important;
|
13
|
+
--cc-secondary-color: #5e6266 !important;
|
14
|
+
|
15
|
+
--cc-btn-primary-bg: #02B1FF !important;
|
16
|
+
--cc-btn-primary-color: #ffffff !important;
|
17
|
+
--cc-btn-primary-border-color: var(--cc-btn-primary-bg) !important;
|
18
|
+
--cc-btn-primary-hover-bg: #25b8fa !important;
|
19
|
+
--cc-btn-primary-hover-color: #ffffff !important;
|
20
|
+
--cc-btn-primary-hover-border-color: var(
|
21
|
+
--cc-btn-primary-hover-bg
|
22
|
+
) !important;
|
23
|
+
|
24
|
+
--cc-btn-secondary-bg: #e2e8f0 !important;
|
25
|
+
--cc-btn-secondary-color: #334155 !important;
|
26
|
+
--cc-btn-secondary-border-color: var(--cc-btn-secondary-bg) !important;
|
27
|
+
--cc-btn-secondary-hover-bg: #f1f5f9 !important;
|
28
|
+
--cc-btn-secondary-hover-color: #000000 !important;
|
29
|
+
--cc-btn-secondary-hover-border-color: #d4dae0 !important;
|
30
|
+
|
31
|
+
--cc-separator-border-color: #f3f8fc !important;
|
32
|
+
|
33
|
+
--cc-toggle-on-bg: var(--cc-btn-primary-bg) !important;
|
34
|
+
--cc-toggle-off-bg: #667481 !important;
|
35
|
+
--cc-toggle-on-knob-bg: #ffffff !important;
|
36
|
+
--cc-toggle-off-knob-bg: var(--cc-toggle-on-knob-bg) !important;
|
37
|
+
|
38
|
+
--cc-toggle-enabled-icon-color: var(--cc-bg) !important; /* yes (v tick) */
|
39
|
+
--cc-toggle-disabled-icon-color: var(--cc-bg) !important; /* no (x tick) */
|
40
|
+
|
41
|
+
--cc-toggle-readonly-bg: #d5dee2 !important;
|
42
|
+
--cc-toggle-readonly-knob-bg: #fff !important;
|
43
|
+
--cc-toggle-readonly-knob-icon-color: var(--cc-toggle-readonly-bg) !important;
|
44
|
+
|
45
|
+
--cc-section-category-border: var(--cc-cookie-category-block-bg) !important;
|
46
|
+
|
47
|
+
--cc-cookie-category-block-bg: #f3f8fc !important;
|
48
|
+
--cc-cookie-category-block-border: #f3f8fc !important;
|
49
|
+
--cc-cookie-category-block-hover-bg: #f0f4f7 !important;
|
50
|
+
--cc-cookie-category-block-hover-border: #f0f4f7 !important;
|
51
|
+
--cc-cookie-category-expanded-block-bg: transparent !important;
|
52
|
+
--cc-cookie-category-expanded-block-hover-bg: #dee4e9 !important;
|
53
|
+
|
54
|
+
--cc-overlay-bg: rgba(0, 0, 0, 0.65) !important;
|
55
|
+
--cc-webkit-scrollbar-bg: var(--cc-section-category-border) !important;
|
56
|
+
--cc-webkit-scrollbar-hover-bg: var(--cc-btn-primary-hover-bg) !important;
|
57
|
+
|
58
|
+
--cc-footer-bg: #f3f8fc !important;
|
59
|
+
--cc-footer-color: var(--cc-secondary-color) !important;
|
60
|
+
--cc-footer-border-color: #e4eaed !important;
|
61
|
+
}
|
62
|
+
|
63
|
+
.cc--tilli-website-dark {
|
64
|
+
color-scheme: dark;
|
65
|
+
--cc-bg: #000 !important;
|
66
|
+
--cc-primary-color: #eff4f6 !important;
|
67
|
+
--cc-secondary-color: #b1bdc3 !important;
|
68
|
+
|
69
|
+
--cc-btn-primary-bg: #02B1FF !important;
|
70
|
+
--cc-btn-primary-color: #000 !important;
|
71
|
+
--cc-btn-primary-border-color: var(--cc-btn-primary-bg) !important;
|
72
|
+
--cc-btn-primary-hover-bg: #25b8fa !important;
|
73
|
+
--cc-btn-primary-hover-color: #000 !important;
|
74
|
+
--cc-btn-primary-hover-border-color: var(
|
75
|
+
--cc-btn-primary-hover-bg
|
76
|
+
) !important;
|
77
|
+
|
78
|
+
--cc-btn-secondary-bg: hsla(0,0%,100%,.039) !important;
|
79
|
+
--cc-btn-secondary-color: #fff !important;
|
80
|
+
--cc-btn-secondary-border-color: var(--cc-btn-secondary-bg) !important;
|
81
|
+
--cc-btn-secondary-hover-bg: #252729 !important;
|
82
|
+
--cc-btn-secondary-hover-color: #fff !important;
|
83
|
+
--cc-btn-secondary-hover-border-color: #252729 !important;
|
84
|
+
|
85
|
+
--cc-separator-border-color: #252729 !important;
|
86
|
+
|
87
|
+
--cc-toggle-on-bg: var(--cc-btn-primary-bg) !important;
|
88
|
+
--cc-toggle-off-bg: #667481 !important;
|
89
|
+
--cc-toggle-on-knob-bg: var(--cc-bg) !important;
|
90
|
+
--cc-toggle-off-knob-bg: var(--cc-toggle-on-knob-bg) !important;
|
91
|
+
|
92
|
+
--cc-toggle-enabled-icon-color: var(--cc-bg) !important; /* yes (v tick) */
|
93
|
+
--cc-toggle-disabled-icon-color: var(--cc-bg) !important; /* no (x tick) */
|
94
|
+
|
95
|
+
--cc-toggle-readonly-bg: #2f3132 !important;
|
96
|
+
--cc-toggle-readonly-knob-bg: var(--cc-cookie-category-block-bg) !important;
|
97
|
+
--cc-toggle-readonly-knob-icon-color: var(--cc-toggle-readonly-bg) !important;
|
98
|
+
|
99
|
+
--cc-section-category-border: var(--cc-cookie-category-block-bg) !important;
|
100
|
+
|
101
|
+
--cc-cookie-category-block-bg: #101111 !important;
|
102
|
+
--cc-cookie-category-block-border: #1d1e1f !important;
|
103
|
+
--cc-cookie-category-block-hover-bg: #151516 !important;
|
104
|
+
--cc-cookie-category-block-hover-border: #1d1e1f !important;
|
105
|
+
--cc-cookie-category-expanded-block-bg: #101111 !important;
|
106
|
+
--cc-cookie-category-expanded-block-hover-bg: #1d1e1f !important;
|
107
|
+
|
108
|
+
--cc-overlay-bg: rgba(0,0,0,.9) !important;
|
109
|
+
--cc-webkit-scrollbar-bg: var(--cc-section-category-border) !important;
|
110
|
+
--cc-webkit-scrollbar-hover-bg: var(--cc-btn-primary-hover-bg) !important;
|
111
|
+
|
112
|
+
--cc-footer-bg: #000 !important;
|
113
|
+
--cc-footer-color: var(--cc-secondary-color) !important;
|
114
|
+
--cc-footer-border-color: #212529 !important;
|
115
|
+
}
|
116
|
+
|
117
|
+
/** font */
|
118
|
+
.cc--tilli-website-light #cc-main,
|
119
|
+
.cc--tilli-website-dark #cc-main {
|
120
|
+
font-family: var(--font-inter, var(--cc-font-family)) !important;
|
121
|
+
}
|
package/package.json
CHANGED
package/src/_types.ts
CHANGED
package/src/_utils.ts
CHANGED
@@ -4,6 +4,8 @@ import { COOKIE_CONSENT_TEST_SEARCH_PARAM_KEY_PREFIX } from "./_consts";
|
|
4
4
|
|
5
5
|
type SupportedTenantThemes = Partial<Record<TenantRefId, Theme[]>>;
|
6
6
|
const SUPPORTED_TENANT_THEMES = {
|
7
|
+
"con-edison": ["light"],
|
8
|
+
oru: ["light"],
|
7
9
|
freeman: ["light"],
|
8
10
|
frontier: ["light"],
|
9
11
|
} satisfies SupportedTenantThemes;
|
@@ -12,7 +14,7 @@ type SupportedTenant = keyof typeof SUPPORTED_TENANT_THEMES;
|
|
12
14
|
interface CookieConsentThemeParams {
|
13
15
|
theme?: Theme;
|
14
16
|
defaultTo?: Exclude<Theme, "system">;
|
15
|
-
tenantRefId?:
|
17
|
+
tenantRefId?: TenantRefId;
|
16
18
|
url?: URL | null;
|
17
19
|
}
|
18
20
|
|
@@ -36,8 +38,8 @@ export const cookieConsentTheme = ({
|
|
36
38
|
) as {
|
37
39
|
lang?: Language;
|
38
40
|
locale?: Locale;
|
39
|
-
tenant?: TenantRefId
|
40
|
-
product?: "tilliX" |
|
41
|
+
tenant?: TenantRefId;
|
42
|
+
product?: "tilliX" | "nudge" | "tilli-pay"; // TODO: add type
|
41
43
|
theme?: Exclude<Theme, "system">;
|
42
44
|
};
|
43
45
|
|
@@ -65,6 +65,9 @@ export default (lang: keyof typeof translations = "en"): string => `
|
|
65
65
|
/* ensure always-interactable + visible */
|
66
66
|
pointer-events: auto;
|
67
67
|
visibility: visible !important;
|
68
|
+
|
69
|
+
/* prevent default <button> text color override */
|
70
|
+
color: inherit;
|
68
71
|
}
|
69
72
|
|
70
73
|
.dark #${buttonId} {
|
@@ -8,7 +8,7 @@ export default (
|
|
8
8
|
topOffset = 0, // -> -0.25 (em)
|
9
9
|
rightOffset = 0, // -> 0.25 (em)
|
10
10
|
): string => `
|
11
|
-
<span style="display: inline-block; vertical-align: middle; transform: scale(${scale}); transform-origin: top left; margin-right: ${((centered ? -0.5 : -0.25) + rightOffset).toFixed(4)}em; height:
|
11
|
+
<span style="display: inline-block; vertical-align: middle; transform: scale(${scale}); transform-origin: top left; margin-right: ${((centered ? -0.5 : -0.25) + rightOffset).toFixed(4)}em; height: 16px${topOffset ? `; margin-top: ${topOffset.toFixed(4)}em` : ""};">
|
12
12
|
${assets.cookie}
|
13
13
|
<!-- invisible "🍪" icon (used for copy-paste/a11y purposes) -->
|
14
14
|
<span style="max-width: 0; max-height: 0; opacity: 0; position: absolute">🍪</span>
|
@@ -0,0 +1,140 @@
|
|
1
|
+
import type { CookieConsentConfig } from "@tilli-pro/cookieconsent";
|
2
|
+
|
3
|
+
import _config from "../config";
|
4
|
+
import { run } from "../init";
|
5
|
+
import {
|
6
|
+
makeInitFn,
|
7
|
+
stripInvalidLinkedCategoriesFromTranslations,
|
8
|
+
} from "./utils";
|
9
|
+
|
10
|
+
const categories: CookieConsentConfig["categories"] = {
|
11
|
+
necessary: {
|
12
|
+
enabled: true, // "necessary" category is always enabled.
|
13
|
+
readOnly: true,
|
14
|
+
services: {
|
15
|
+
"Session": {
|
16
|
+
label: "Session",
|
17
|
+
cookies: [
|
18
|
+
{
|
19
|
+
name: /^(_scc_session)/, // session ID for core functionality
|
20
|
+
},
|
21
|
+
],
|
22
|
+
},
|
23
|
+
},
|
24
|
+
},
|
25
|
+
analytics: {
|
26
|
+
services: {
|
27
|
+
"Google Analytics": {
|
28
|
+
label: "Google Analytics",
|
29
|
+
cookies: [
|
30
|
+
{
|
31
|
+
name: /^(_ga_)/, // Google Analytics
|
32
|
+
domain: ".nudge.pro",
|
33
|
+
},
|
34
|
+
],
|
35
|
+
},
|
36
|
+
"TelemetryDeck": {
|
37
|
+
label: "TelemetryDeck",
|
38
|
+
cookies: [
|
39
|
+
{
|
40
|
+
name: /^(_tccl_)/, // TelemetryDeck
|
41
|
+
domain: ".nudge.pro",
|
42
|
+
},
|
43
|
+
],
|
44
|
+
},
|
45
|
+
},
|
46
|
+
autoClear: {
|
47
|
+
// TODO: DRY this with the services above
|
48
|
+
cookies: [
|
49
|
+
/** Google Analytics */
|
50
|
+
{
|
51
|
+
name: /^(_ga_)/, // Google Analytics
|
52
|
+
domain: ".nudge.pro",
|
53
|
+
},
|
54
|
+
|
55
|
+
/** TelemetryDeck */
|
56
|
+
{
|
57
|
+
name: /^(_tccl_)/, // TelemetryDeck
|
58
|
+
domain: ".nudge.pro",
|
59
|
+
},
|
60
|
+
],
|
61
|
+
},
|
62
|
+
},
|
63
|
+
marketing: {
|
64
|
+
services: {
|
65
|
+
"Google Adsense": {
|
66
|
+
label: "Google Adsense",
|
67
|
+
cookies: [
|
68
|
+
{
|
69
|
+
name: /^(_gcl_)/, // Google Adsense
|
70
|
+
domain: ".nudge.pro",
|
71
|
+
},
|
72
|
+
],
|
73
|
+
},
|
74
|
+
"zoominfo": {
|
75
|
+
label: "zoominfo",
|
76
|
+
cookies: [
|
77
|
+
{
|
78
|
+
name: /^(visitorld)/, // zoominfo (simply ws marketing tool)
|
79
|
+
domain: ".ws.zoominfo.com",
|
80
|
+
},
|
81
|
+
{
|
82
|
+
name: /^(_cfuvid)/, // zoominfo (Cloudflare)
|
83
|
+
domain: ".zoominfo.com",
|
84
|
+
},
|
85
|
+
],
|
86
|
+
},
|
87
|
+
"Twitter": {
|
88
|
+
label: "Twitter",
|
89
|
+
cookies: [
|
90
|
+
{
|
91
|
+
name: /^(muc_ads)/, // Twitter (ads)
|
92
|
+
domain: ".t.co",
|
93
|
+
},
|
94
|
+
],
|
95
|
+
},
|
96
|
+
},
|
97
|
+
autoClear: {
|
98
|
+
// TODO: DRY this with the services above
|
99
|
+
cookies: [
|
100
|
+
/** Google Adsense */
|
101
|
+
{
|
102
|
+
name: /^(_gcl_)/, // Google Adsense
|
103
|
+
domain: ".nudge.pro",
|
104
|
+
},
|
105
|
+
|
106
|
+
/** zoominfo */
|
107
|
+
{
|
108
|
+
name: /^(_cfuvid)/, // zoominfo (Cloudflare)
|
109
|
+
domain: ".zoominfo.com",
|
110
|
+
},
|
111
|
+
|
112
|
+
/** Twitter */
|
113
|
+
{
|
114
|
+
name: /^(muc_ads)/, // Twitter (ads)
|
115
|
+
domain: ".t.co",
|
116
|
+
},
|
117
|
+
],
|
118
|
+
},
|
119
|
+
},
|
120
|
+
};
|
121
|
+
|
122
|
+
// TODO: DRY further w/ `./brf.ts`
|
123
|
+
const language: CookieConsentConfig["language"] = {
|
124
|
+
..._config.language,
|
125
|
+
translations: stripInvalidLinkedCategoriesFromTranslations(
|
126
|
+
_config.language.translations,
|
127
|
+
categories,
|
128
|
+
true, // clear cookie tables // FIXME: refactor this to actually just use the proper cookie table accoring to the categories var
|
129
|
+
),
|
130
|
+
};
|
131
|
+
|
132
|
+
const config: CookieConsentConfig = {
|
133
|
+
..._config,
|
134
|
+
categories,
|
135
|
+
language,
|
136
|
+
};
|
137
|
+
|
138
|
+
// console.debug({ config }, "Initializing Cookie Consent (tilli Website)...");
|
139
|
+
const init = makeInitFn(run, config);
|
140
|
+
void init();
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import type { CookieConsentConfig } from "@tilli-pro/cookieconsent";
|
2
|
+
|
3
|
+
import _config from "../config";
|
4
|
+
import { run } from "../init";
|
5
|
+
import {
|
6
|
+
makeInitFn,
|
7
|
+
stripInvalidLinkedCategoriesFromTranslations,
|
8
|
+
} from "./utils";
|
9
|
+
|
10
|
+
const categories: CookieConsentConfig["categories"] = {
|
11
|
+
necessary: {
|
12
|
+
enabled: true, // "necessary" category is always enabled.
|
13
|
+
readOnly: true,
|
14
|
+
services: {
|
15
|
+
"Authentication": {
|
16
|
+
label: "Authentication",
|
17
|
+
cookies: [
|
18
|
+
{
|
19
|
+
name: /^(refreshToken)/, // refresh token for authentication purposes only
|
20
|
+
},
|
21
|
+
],
|
22
|
+
},
|
23
|
+
},
|
24
|
+
},
|
25
|
+
};
|
26
|
+
|
27
|
+
// TODO: DRY further w/ `./brf.ts`
|
28
|
+
const language: CookieConsentConfig["language"] = {
|
29
|
+
..._config.language,
|
30
|
+
translations: stripInvalidLinkedCategoriesFromTranslations(
|
31
|
+
_config.language.translations,
|
32
|
+
categories,
|
33
|
+
true, // clear cookie tables // FIXME: refactor this to actually just use the proper cookie table accoring to the categories var
|
34
|
+
),
|
35
|
+
};
|
36
|
+
|
37
|
+
const config: CookieConsentConfig = {
|
38
|
+
..._config,
|
39
|
+
categories,
|
40
|
+
language,
|
41
|
+
};
|
42
|
+
|
43
|
+
// console.debug({ config }, "Initializing Cookie Consent (tilli Website)...");
|
44
|
+
const init = makeInitFn(run, config);
|
45
|
+
void init();
|