ui-kit-ck-consultant 0.5.184 → 0.5.185
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/dist/index.js +36 -20
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +36 -20
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -3682,7 +3682,7 @@ var Cookie = /*#__PURE__*/function (_React$Component) {
|
|
3682
3682
|
var _proto = Cookie.prototype;
|
3683
3683
|
|
3684
3684
|
_proto.componentDidMount = function componentDidMount() {
|
3685
|
-
if (this.props.force || this.cookies.get(this.props.name + "-cookies") !==
|
3685
|
+
if (this.props.force || this.cookies.get(this.props.name + "-cookies") !== '1') {
|
3686
3686
|
this.setState({
|
3687
3687
|
show: true
|
3688
3688
|
});
|
@@ -3695,7 +3695,7 @@ var Cookie = /*#__PURE__*/function (_React$Component) {
|
|
3695
3695
|
|
3696
3696
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
3697
3697
|
if (prevProps.force !== this.props.force || prevProps.name !== this.props.name) {
|
3698
|
-
if (this.cookies.get(this.props.name + "-cookies") !==
|
3698
|
+
if (this.cookies.get(this.props.name + "-cookies") !== '1') {
|
3699
3699
|
this.setState({
|
3700
3700
|
show: true
|
3701
3701
|
});
|
@@ -3711,7 +3711,7 @@ var Cookie = /*#__PURE__*/function (_React$Component) {
|
|
3711
3711
|
var _this2 = this;
|
3712
3712
|
|
3713
3713
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
3714
|
-
title: this.props.title ||
|
3714
|
+
title: this.props.title || 'Données personnelles & utilisation des cookies',
|
3715
3715
|
show: this.state.show,
|
3716
3716
|
onClose: this.props.onClose,
|
3717
3717
|
disableClose: true,
|
@@ -3719,8 +3719,8 @@ var Cookie = /*#__PURE__*/function (_React$Component) {
|
|
3719
3719
|
}, this.props.message ? this.props.message : /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("p", null, "Nous utilisons des cookies afin d\u2019am\xE9liorer votre exp\xE9rience sur le site. Ces cookies servent \xE0 personnaliser le contenu du site, en mesurer la fr\xE9quentation et les performances."), /*#__PURE__*/React__default.createElement("p", null, "En cliquant sur le bouton \"Accepter\" vous acceptez tous les cookies. Vous pouvez aussi en savoir plus \xE0 tout moment via le lien \"RGPD & Cookies\" accessible dans le pied de page.")), this.props.infos ? /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("a", {
|
3720
3720
|
href: "/",
|
3721
3721
|
style: {
|
3722
|
-
textAlign:
|
3723
|
-
margin:
|
3722
|
+
textAlign: 'left',
|
3723
|
+
margin: '16px 0'
|
3724
3724
|
},
|
3725
3725
|
onClick: function onClick(event) {
|
3726
3726
|
event.preventDefault();
|
@@ -3731,52 +3731,68 @@ var Cookie = /*#__PURE__*/function (_React$Component) {
|
|
3731
3731
|
});
|
3732
3732
|
});
|
3733
3733
|
}
|
3734
|
-
}, "En savoir plus
|
3734
|
+
}, "En savoir plus", ' ', /*#__PURE__*/React__default.createElement(reactFontawesome.FontAwesomeIcon, {
|
3735
3735
|
icon: this.state.showInfo ? freeSolidSvgIcons.faCaretUp : freeSolidSvgIcons.faCaretDown
|
3736
3736
|
})), this.state.showInfo ? /*#__PURE__*/React__default.createElement("div", {
|
3737
3737
|
style: {
|
3738
|
-
margin:
|
3738
|
+
margin: '16px 0'
|
3739
3739
|
}
|
3740
|
-
}, this.props.infos) : null) : null, /*#__PURE__*/React__default.createElement(reactFlexboxGrid.Row, {
|
3740
|
+
}, this.props.infos) : null) : null, /*#__PURE__*/React__default.createElement("b", null, "Nos cookies ont pour seul et unique but de faire fonctionner le service"), /*#__PURE__*/React__default.createElement(reactFlexboxGrid.Row, {
|
3741
3741
|
style: {
|
3742
|
-
margin:
|
3742
|
+
margin: '16px 0'
|
3743
3743
|
}
|
3744
3744
|
}, /*#__PURE__*/React__default.createElement(reactFlexboxGrid.Col, {
|
3745
3745
|
xs: 12,
|
3746
|
-
md: 6,
|
3746
|
+
md: this.props.isReject ? 6 : 12,
|
3747
3747
|
style: {
|
3748
|
-
margin:
|
3748
|
+
margin: '10px 0'
|
3749
3749
|
}
|
3750
3750
|
}, /*#__PURE__*/React__default.createElement(Button, {
|
3751
|
-
text: "Accepter",
|
3751
|
+
text: "Accepter les cookies n\xE9cessaires au fonctionnement du service",
|
3752
3752
|
onClick: function onClick() {
|
3753
|
-
_this2.cookies.set(_this2.props.name + "-cookies",
|
3754
|
-
|
3755
|
-
if (_this2.props.onAccept) _this2.props.onAccept();
|
3753
|
+
_this2.cookies.set(_this2.props.name + "-cookies", '1', _this2.props.options);
|
3756
3754
|
|
3757
3755
|
_this2.setState({
|
3758
3756
|
show: false
|
3757
|
+
}, function () {
|
3758
|
+
if (_this2.props.onAccept) _this2.props.onAccept();
|
3759
3759
|
});
|
3760
3760
|
}
|
3761
|
-
})), /*#__PURE__*/React__default.createElement(reactFlexboxGrid.Col, {
|
3761
|
+
})), this.props.isReject ? /*#__PURE__*/React__default.createElement(reactFlexboxGrid.Col, {
|
3762
3762
|
xs: 12,
|
3763
3763
|
md: 6,
|
3764
3764
|
style: {
|
3765
|
-
margin:
|
3765
|
+
margin: '10px 0'
|
3766
3766
|
}
|
3767
3767
|
}, /*#__PURE__*/React__default.createElement(Button, {
|
3768
3768
|
text: "Refuser",
|
3769
3769
|
outline: true,
|
3770
3770
|
onClick: function onClick() {
|
3771
|
-
_this2.cookies.set(_this2.props.name + "-cookies",
|
3771
|
+
_this2.cookies.set(_this2.props.name + "-cookies", '0', _this2.props.options);
|
3772
3772
|
|
3773
|
-
|
3773
|
+
_this2.setState({
|
3774
|
+
show: false
|
3775
|
+
}, function () {
|
3776
|
+
if (_this2.props.onReject) _this2.props.onReject();
|
3777
|
+
});
|
3778
|
+
}
|
3779
|
+
})) : null, /*#__PURE__*/React__default.createElement("a", {
|
3780
|
+
style: {
|
3781
|
+
color: 'gray',
|
3782
|
+
marginTop: '10px',
|
3783
|
+
marginLeft: 'auto',
|
3784
|
+
textDecoration: 'none'
|
3785
|
+
},
|
3786
|
+
onClick: function onClick() {
|
3787
|
+
_this2.cookies.set(_this2.props.name + "-cookies", '2', _this2.props.options);
|
3774
3788
|
|
3775
3789
|
_this2.setState({
|
3776
3790
|
show: false
|
3791
|
+
}, function () {
|
3792
|
+
if (_this2.props.onContinue) _this2.props.onContinue();
|
3777
3793
|
});
|
3778
3794
|
}
|
3779
|
-
})))
|
3795
|
+
}, "Continuer sans accepter")));
|
3780
3796
|
};
|
3781
3797
|
|
3782
3798
|
return Cookie;
|