@uninspired/cookie-banner 0.0.14 → 0.0.16
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/README.md +5 -5
- package/dist/react/index.cjs +11 -11
- package/dist/react/index.js +11 -11
- package/dist/react/style.css +19 -20
- package/dist/script/index.cjs +4 -4
- package/dist/script/index.js +161 -162
- package/dist/script/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -176,11 +176,9 @@ Add this to the end of the document body:
|
|
|
176
176
|
id: "web-analytics",
|
|
177
177
|
variant: "inline",
|
|
178
178
|
type: "text/javascript",
|
|
179
|
-
content:
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
defaults: '2026-01-30'
|
|
183
|
-
})`,
|
|
179
|
+
content: `console.log('analytics');`,
|
|
180
|
+
defer: true,
|
|
181
|
+
async: true,
|
|
184
182
|
},
|
|
185
183
|
],
|
|
186
184
|
},
|
|
@@ -197,6 +195,8 @@ Add this to the end of the document body:
|
|
|
197
195
|
variant: "inline",
|
|
198
196
|
type: "text/javascript",
|
|
199
197
|
content: "console.log('marketing');",
|
|
198
|
+
defer: true,
|
|
199
|
+
async: true,
|
|
200
200
|
},
|
|
201
201
|
],
|
|
202
202
|
},
|
package/dist/react/index.cjs
CHANGED
|
@@ -964,17 +964,17 @@ const Text = ({
|
|
|
964
964
|
)
|
|
965
965
|
);
|
|
966
966
|
};
|
|
967
|
-
const root$2 = "
|
|
968
|
-
const noTarget = "
|
|
969
|
-
const collapsible = "
|
|
970
|
-
const header$1 = "
|
|
971
|
-
const heading = "
|
|
972
|
-
const chevron$1 = "
|
|
973
|
-
const open$1 = "
|
|
974
|
-
const settings = "
|
|
975
|
-
const footer = "
|
|
976
|
-
const legal = "
|
|
977
|
-
const actions$1 = "
|
|
967
|
+
const root$2 = "_root_8pi9z_53";
|
|
968
|
+
const noTarget = "_noTarget_8pi9z_66";
|
|
969
|
+
const collapsible = "_collapsible_8pi9z_73";
|
|
970
|
+
const header$1 = "_header_8pi9z_76";
|
|
971
|
+
const heading = "_heading_8pi9z_83";
|
|
972
|
+
const chevron$1 = "_chevron_8pi9z_89";
|
|
973
|
+
const open$1 = "_open_8pi9z_94";
|
|
974
|
+
const settings = "_settings_8pi9z_100";
|
|
975
|
+
const footer = "_footer_8pi9z_114";
|
|
976
|
+
const legal = "_legal_8pi9z_121";
|
|
977
|
+
const actions$1 = "_actions_8pi9z_124";
|
|
978
978
|
const classes$2 = {
|
|
979
979
|
root: root$2,
|
|
980
980
|
noTarget,
|
package/dist/react/index.js
CHANGED
|
@@ -962,17 +962,17 @@ const Text = ({
|
|
|
962
962
|
)
|
|
963
963
|
);
|
|
964
964
|
};
|
|
965
|
-
const root$2 = "
|
|
966
|
-
const noTarget = "
|
|
967
|
-
const collapsible = "
|
|
968
|
-
const header$1 = "
|
|
969
|
-
const heading = "
|
|
970
|
-
const chevron$1 = "
|
|
971
|
-
const open$1 = "
|
|
972
|
-
const settings = "
|
|
973
|
-
const footer = "
|
|
974
|
-
const legal = "
|
|
975
|
-
const actions$1 = "
|
|
965
|
+
const root$2 = "_root_8pi9z_53";
|
|
966
|
+
const noTarget = "_noTarget_8pi9z_66";
|
|
967
|
+
const collapsible = "_collapsible_8pi9z_73";
|
|
968
|
+
const header$1 = "_header_8pi9z_76";
|
|
969
|
+
const heading = "_heading_8pi9z_83";
|
|
970
|
+
const chevron$1 = "_chevron_8pi9z_89";
|
|
971
|
+
const open$1 = "_open_8pi9z_94";
|
|
972
|
+
const settings = "_settings_8pi9z_100";
|
|
973
|
+
const footer = "_footer_8pi9z_114";
|
|
974
|
+
const legal = "_legal_8pi9z_121";
|
|
975
|
+
const actions$1 = "_actions_8pi9z_124";
|
|
976
976
|
const classes$2 = {
|
|
977
977
|
root: root$2,
|
|
978
978
|
noTarget,
|
package/dist/react/style.css
CHANGED
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
@keyframes
|
|
105
|
+
@keyframes _contentShow_8pi9z_1 {
|
|
106
106
|
from {
|
|
107
107
|
opacity: 0;
|
|
108
108
|
transform: translateX(-100px);
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
@keyframes
|
|
116
|
+
@keyframes _contentHide_8pi9z_1 {
|
|
117
117
|
from {
|
|
118
118
|
opacity: 1;
|
|
119
119
|
transform: translateX(0px);
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
@keyframes
|
|
127
|
+
@keyframes _slideDown_8pi9z_1 {
|
|
128
128
|
0% {
|
|
129
129
|
max-height: var(--cb-size-settings-max-height);
|
|
130
130
|
overflow: auto;
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
@keyframes
|
|
142
|
+
@keyframes _slideUp_8pi9z_1 {
|
|
143
143
|
0% {
|
|
144
144
|
max-height: 0;
|
|
145
145
|
overflow: hidden;
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
.
|
|
157
|
+
._root_8pi9z_53 {
|
|
158
158
|
display: flex;
|
|
159
159
|
flex-direction: column;
|
|
160
160
|
gap: var(--cb-space-md);
|
|
@@ -164,69 +164,68 @@
|
|
|
164
164
|
border-radius: var(--cb-radius-md);
|
|
165
165
|
overflow: hidden;
|
|
166
166
|
will-change: opacity, transform;
|
|
167
|
-
animation:
|
|
167
|
+
animation: _contentShow_8pi9z_1 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
168
|
+
width: 100%;
|
|
168
169
|
|
|
169
|
-
&.
|
|
170
|
+
&._noTarget_8pi9z_66 {
|
|
170
171
|
position: fixed;
|
|
171
172
|
bottom: var(--cb-space-md);
|
|
172
173
|
left: var(--cb-space-md);
|
|
173
|
-
|
|
174
|
-
width: 100%;
|
|
175
174
|
max-width: var(--cb-size-banner-max-width);
|
|
176
175
|
}
|
|
177
176
|
|
|
178
|
-
.
|
|
177
|
+
._collapsible_8pi9z_73 {
|
|
179
178
|
display: contents;
|
|
180
179
|
|
|
181
|
-
.
|
|
180
|
+
._header_8pi9z_76 {
|
|
182
181
|
display: flex;
|
|
183
182
|
flex-direction: row;
|
|
184
183
|
align-items: flex-start;
|
|
185
184
|
justify-content: space-between;
|
|
186
185
|
gap: var(--cb-space-md);
|
|
187
186
|
|
|
188
|
-
.
|
|
187
|
+
._heading_8pi9z_83 {
|
|
189
188
|
display: flex;
|
|
190
189
|
flex-direction: column;
|
|
191
190
|
align-items: flex-start;
|
|
192
191
|
}
|
|
193
192
|
|
|
194
|
-
.
|
|
193
|
+
._chevron_8pi9z_89 {
|
|
195
194
|
transform: rotate(0deg);
|
|
196
195
|
will-change: transform;
|
|
197
196
|
transition: transform 150ms ease-out;
|
|
198
197
|
|
|
199
|
-
&.
|
|
198
|
+
&._open_8pi9z_94 {
|
|
200
199
|
transform: rotate(180deg);
|
|
201
200
|
}
|
|
202
201
|
}
|
|
203
202
|
}
|
|
204
203
|
|
|
205
|
-
.
|
|
204
|
+
._settings_8pi9z_100 {
|
|
206
205
|
display: flex;
|
|
207
206
|
flex-direction: column;
|
|
208
207
|
background-color: var(--cb-color-background-muted);
|
|
209
208
|
border-radius: var(--cb-radius-md);
|
|
210
209
|
overflow: hidden;
|
|
211
210
|
will-change: max-height, overflow;
|
|
212
|
-
animation:
|
|
211
|
+
animation: _slideDown_8pi9z_1 250ms ease-out;
|
|
213
212
|
|
|
214
213
|
&[data-state="open"] {
|
|
215
|
-
animation:
|
|
214
|
+
animation: _slideUp_8pi9z_1 250ms ease-out;
|
|
216
215
|
}
|
|
217
216
|
}
|
|
218
217
|
|
|
219
|
-
.
|
|
218
|
+
._footer_8pi9z_114 {
|
|
220
219
|
display: flex;
|
|
221
220
|
flex-direction: row;
|
|
222
221
|
align-items: center;
|
|
223
222
|
justify-content: space-between;
|
|
224
223
|
gap: var(--cb-space-md);
|
|
225
224
|
|
|
226
|
-
.
|
|
225
|
+
._legal_8pi9z_121 {
|
|
227
226
|
}
|
|
228
227
|
|
|
229
|
-
.
|
|
228
|
+
._actions_8pi9z_124 {
|
|
230
229
|
display: flex;
|
|
231
230
|
flex-direction: row;
|
|
232
231
|
align-items: center;
|