@micromag/consent 0.3.703 → 0.3.704
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/assets/css/styles.css +4 -4
- package/es/index.js +5 -3
- package/package.json +2 -2
package/assets/css/styles.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.micromag-consent-buttons-close-container{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;color:inherit;cursor:pointer;display:inline-block;font-family:inherit;padding:0;position:relative}
|
|
2
|
-
.micromag-consent-buttons-pill-container{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border:1px solid #fff;color:inherit;cursor:pointer;display:inline-block;font-family:inherit;padding:0;padding:6px 10px;position:relative}.micromag-consent-buttons-pill-container:active,.micromag-consent-buttons-pill-container:hover{background-color:var(--color-primary);color:#fff}
|
|
3
|
-
.micromag-consent-fields-checkbox-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start;line-height:1.2}.micromag-consent-fields-checkbox-container .micromag-consent-fields-checkbox-check{margin-right:6px}.micromag-consent-fields-checkbox-container .micromag-consent-fields-checkbox-input{cursor:pointer;display:block;height:1rem;margin:0 0 5px;width:1rem}.micromag-consent-fields-checkbox-container .micromag-consent-fields-checkbox-label{-ms-flex-positive:1;cursor:pointer;flex-grow:1;font-weight:800}.micromag-consent-fields-checkbox-container:active .micromag-consent-fields-checkbox-label,.micromag-consent-fields-checkbox-container:hover .micromag-consent-fields-checkbox-label{-webkit-text-decoration:underline;text-decoration:underline}
|
|
4
|
-
.micromag-consent-forms-cookies-container{
|
|
5
|
-
.micromag-consent-container{position:relative}.micromag-consent-container .micromag-consent-close{color:var(--color-primary);cursor:pointer;font-size:1.5rem;position:absolute;right:15px;top:
|
|
2
|
+
.micromag-consent-buttons-pill-container{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border:1px solid #fff;color:inherit;cursor:pointer;display:inline-block;font-family:inherit;padding:0;padding:6px 10px;position:relative}.micromag-consent-buttons-pill-container:active,.micromag-consent-buttons-pill-container:hover{background-color:#0b57d0;background-color:var(--color-primary,#0b57d0);color:#fff}
|
|
3
|
+
.micromag-consent-fields-checkbox-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start;line-height:1.2}.micromag-consent-fields-checkbox-container .micromag-consent-fields-checkbox-check{margin-right:6px}.micromag-consent-fields-checkbox-container .micromag-consent-fields-checkbox-input{accent-color:#0b57d0;accent-color:var(--color-primary,#0b57d0);cursor:pointer;display:block;height:1rem;margin:0 0 5px;width:1rem}.micromag-consent-fields-checkbox-container .micromag-consent-fields-checkbox-label{-ms-flex-positive:1;cursor:pointer;flex-grow:1;font-weight:800}.micromag-consent-fields-checkbox-container:active .micromag-consent-fields-checkbox-label,.micromag-consent-fields-checkbox-container:hover .micromag-consent-fields-checkbox-label{-webkit-text-decoration:underline;text-decoration:underline}
|
|
4
|
+
.micromag-consent-forms-cookies-container{max-height:calc(100vh - 20px);overflow-y:scroll;padding:15px;position:relative}.micromag-consent-forms-cookies-container .micromag-consent-forms-cookies-description,.micromag-consent-forms-cookies-container .micromag-consent-forms-cookies-title{margin-bottom:1rem}.micromag-consent-forms-cookies-container .micromag-consent-forms-cookies-button{border-radius:10px;font-weight:700;margin:0 5px 5px 0}
|
|
5
|
+
.micromag-consent-container{background-color:#000;background-color:var(--color-background,#000);border-radius:10px;max-width:800px;position:relative}.micromag-consent-container .micromag-consent-close{color:#fff;color:var(--color-primary,#fff);cursor:pointer;font-size:1.5rem;position:absolute;right:15px;top:10px;z-index:10}
|
package/es/index.js
CHANGED
|
@@ -449,7 +449,7 @@ var LinkPartial = function LinkPartial(_ref) {
|
|
|
449
449
|
LinkPartial.propTypes = propTypes$2;
|
|
450
450
|
LinkPartial.defaultProps = defaultProps$2;
|
|
451
451
|
|
|
452
|
-
var styles$1 = {"container":"micromag-consent-forms-cookies-container","button":"micromag-consent-forms-cookies-button"};
|
|
452
|
+
var styles$1 = {"container":"micromag-consent-forms-cookies-container","title":"micromag-consent-forms-cookies-title","description":"micromag-consent-forms-cookies-description","button":"micromag-consent-forms-cookies-button"};
|
|
453
453
|
|
|
454
454
|
var _excluded = ["consent", "onChange", "onSubmit", "onClose", "onClickLink", "urls", "labels", "className"];
|
|
455
455
|
var propTypes$1 = {
|
|
@@ -534,7 +534,9 @@ var Cookies = function Cookies(_ref) {
|
|
|
534
534
|
className: classNames([styles$1.container, _defineProperty({}, className, className !== null)])
|
|
535
535
|
}, props), /*#__PURE__*/React.createElement("div", {
|
|
536
536
|
className: styles$1.top
|
|
537
|
-
}, /*#__PURE__*/React.createElement("h3",
|
|
537
|
+
}, /*#__PURE__*/React.createElement("h3", {
|
|
538
|
+
className: styles$1.title
|
|
539
|
+
}, title || /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
538
540
|
id: "+Ptk0B",
|
|
539
541
|
defaultMessage: [{
|
|
540
542
|
"type": 0,
|
|
@@ -572,7 +574,7 @@ var Cookies = function Cookies(_ref) {
|
|
|
572
574
|
return onClickChoice(id, !value);
|
|
573
575
|
}
|
|
574
576
|
})), /*#__PURE__*/React.createElement("p", {
|
|
575
|
-
className: styles$1.
|
|
577
|
+
className: styles$1.itemDescription
|
|
576
578
|
}, isString(choiceDescription) ? choiceDescription : /*#__PURE__*/React.createElement(FormattedMessage, choiceDescription)));
|
|
577
579
|
}) : null, privacyUrl !== null ? /*#__PURE__*/React.createElement("div", {
|
|
578
580
|
className: styles$1.more
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/consent",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.704",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"access": "public",
|
|
78
78
|
"registry": "https://registry.npmjs.org/"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "de2554d5fa1b1a78397bd8fe6f78f2a6fbf93a1b"
|
|
81
81
|
}
|