ui-kit-ck-consultant 0.5.184 → 0.5.187
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 +46 -22
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +46 -22
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -901,7 +901,11 @@ var Card = /*#__PURE__*/function (_React$Component) {
|
|
901
901
|
_proto.render = function render() {
|
902
902
|
return /*#__PURE__*/React__default.createElement("div", {
|
903
903
|
className: classNames$1(style$b.card, this.props.className)
|
904
|
-
}, this.props.imgLeft ? /*#__PURE__*/React__default.createElement("div",
|
904
|
+
}, this.props.imgLeft ? /*#__PURE__*/React__default.createElement("div", {
|
905
|
+
style: {
|
906
|
+
overflow: 'hidden'
|
907
|
+
}
|
908
|
+
}, /*#__PURE__*/React__default.createElement("img", {
|
905
909
|
style: {
|
906
910
|
height: '100%'
|
907
911
|
},
|
@@ -938,7 +942,11 @@ var Card = /*#__PURE__*/function (_React$Component) {
|
|
938
942
|
onClick: this.props.onClick
|
939
943
|
}, this.props.action))) : '', /*#__PURE__*/React__default.createElement("div", {
|
940
944
|
className: classNames$1(style$b.card_body, this.props.classNameChildren)
|
941
|
-
}, this.props.children)), this.props.imgRight ? /*#__PURE__*/React__default.createElement("div",
|
945
|
+
}, this.props.children)), this.props.imgRight ? /*#__PURE__*/React__default.createElement("div", {
|
946
|
+
style: {
|
947
|
+
overflow: 'hidden'
|
948
|
+
}
|
949
|
+
}, /*#__PURE__*/React__default.createElement("img", {
|
942
950
|
style: {
|
943
951
|
height: '100%'
|
944
952
|
},
|
@@ -3682,7 +3690,7 @@ var Cookie = /*#__PURE__*/function (_React$Component) {
|
|
3682
3690
|
var _proto = Cookie.prototype;
|
3683
3691
|
|
3684
3692
|
_proto.componentDidMount = function componentDidMount() {
|
3685
|
-
if (this.props.force || this.cookies.get(this.props.name + "-cookies") !==
|
3693
|
+
if (this.props.force || this.cookies.get(this.props.name + "-cookies") !== '1' && this.cookies.get(this.props.name + "-cookies") !== '2') {
|
3686
3694
|
this.setState({
|
3687
3695
|
show: true
|
3688
3696
|
});
|
@@ -3695,7 +3703,7 @@ var Cookie = /*#__PURE__*/function (_React$Component) {
|
|
3695
3703
|
|
3696
3704
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
3697
3705
|
if (prevProps.force !== this.props.force || prevProps.name !== this.props.name) {
|
3698
|
-
if (this.cookies.get(this.props.name + "-cookies") !==
|
3706
|
+
if (this.cookies.get(this.props.name + "-cookies") !== '1' && this.cookies.get(this.props.name + "-cookies") !== '2') {
|
3699
3707
|
this.setState({
|
3700
3708
|
show: true
|
3701
3709
|
});
|
@@ -3711,7 +3719,7 @@ var Cookie = /*#__PURE__*/function (_React$Component) {
|
|
3711
3719
|
var _this2 = this;
|
3712
3720
|
|
3713
3721
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
3714
|
-
title: this.props.title ||
|
3722
|
+
title: this.props.title || 'Données personnelles & utilisation des cookies',
|
3715
3723
|
show: this.state.show,
|
3716
3724
|
onClose: this.props.onClose,
|
3717
3725
|
disableClose: true,
|
@@ -3719,8 +3727,8 @@ var Cookie = /*#__PURE__*/function (_React$Component) {
|
|
3719
3727
|
}, 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
3728
|
href: "/",
|
3721
3729
|
style: {
|
3722
|
-
textAlign:
|
3723
|
-
margin:
|
3730
|
+
textAlign: 'left',
|
3731
|
+
margin: '16px 0'
|
3724
3732
|
},
|
3725
3733
|
onClick: function onClick(event) {
|
3726
3734
|
event.preventDefault();
|
@@ -3731,52 +3739,68 @@ var Cookie = /*#__PURE__*/function (_React$Component) {
|
|
3731
3739
|
});
|
3732
3740
|
});
|
3733
3741
|
}
|
3734
|
-
}, "En savoir plus
|
3742
|
+
}, "En savoir plus", ' ', /*#__PURE__*/React__default.createElement(reactFontawesome.FontAwesomeIcon, {
|
3735
3743
|
icon: this.state.showInfo ? freeSolidSvgIcons.faCaretUp : freeSolidSvgIcons.faCaretDown
|
3736
3744
|
})), this.state.showInfo ? /*#__PURE__*/React__default.createElement("div", {
|
3737
3745
|
style: {
|
3738
|
-
margin:
|
3746
|
+
margin: '16px 0'
|
3739
3747
|
}
|
3740
|
-
}, this.props.infos) : null) : null, /*#__PURE__*/React__default.createElement(reactFlexboxGrid.Row, {
|
3748
|
+
}, 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
3749
|
style: {
|
3742
|
-
margin:
|
3750
|
+
margin: '16px 0'
|
3743
3751
|
}
|
3744
3752
|
}, /*#__PURE__*/React__default.createElement(reactFlexboxGrid.Col, {
|
3745
3753
|
xs: 12,
|
3746
|
-
md: 6,
|
3754
|
+
md: this.props.isReject ? 6 : 12,
|
3747
3755
|
style: {
|
3748
|
-
margin:
|
3756
|
+
margin: '10px 0'
|
3749
3757
|
}
|
3750
3758
|
}, /*#__PURE__*/React__default.createElement(Button, {
|
3751
|
-
text: "Accepter",
|
3759
|
+
text: "Accepter les cookies n\xE9cessaires au fonctionnement du service",
|
3752
3760
|
onClick: function onClick() {
|
3753
|
-
_this2.cookies.set(_this2.props.name + "-cookies",
|
3754
|
-
|
3755
|
-
if (_this2.props.onAccept) _this2.props.onAccept();
|
3761
|
+
_this2.cookies.set(_this2.props.name + "-cookies", '1', _this2.props.options);
|
3756
3762
|
|
3757
3763
|
_this2.setState({
|
3758
3764
|
show: false
|
3765
|
+
}, function () {
|
3766
|
+
if (_this2.props.onAccept) _this2.props.onAccept();
|
3759
3767
|
});
|
3760
3768
|
}
|
3761
|
-
})), /*#__PURE__*/React__default.createElement(reactFlexboxGrid.Col, {
|
3769
|
+
})), this.props.isReject ? /*#__PURE__*/React__default.createElement(reactFlexboxGrid.Col, {
|
3762
3770
|
xs: 12,
|
3763
3771
|
md: 6,
|
3764
3772
|
style: {
|
3765
|
-
margin:
|
3773
|
+
margin: '10px 0'
|
3766
3774
|
}
|
3767
3775
|
}, /*#__PURE__*/React__default.createElement(Button, {
|
3768
3776
|
text: "Refuser",
|
3769
3777
|
outline: true,
|
3770
3778
|
onClick: function onClick() {
|
3771
|
-
_this2.cookies.set(_this2.props.name + "-cookies",
|
3779
|
+
_this2.cookies.set(_this2.props.name + "-cookies", '0', _this2.props.options);
|
3772
3780
|
|
3773
|
-
|
3781
|
+
_this2.setState({
|
3782
|
+
show: false
|
3783
|
+
}, function () {
|
3784
|
+
if (_this2.props.onReject) _this2.props.onReject();
|
3785
|
+
});
|
3786
|
+
}
|
3787
|
+
})) : null, /*#__PURE__*/React__default.createElement("a", {
|
3788
|
+
style: {
|
3789
|
+
color: 'gray',
|
3790
|
+
marginTop: '10px',
|
3791
|
+
marginLeft: 'auto',
|
3792
|
+
textDecoration: 'none'
|
3793
|
+
},
|
3794
|
+
onClick: function onClick() {
|
3795
|
+
_this2.cookies.set(_this2.props.name + "-cookies", '2', _this2.props.options);
|
3774
3796
|
|
3775
3797
|
_this2.setState({
|
3776
3798
|
show: false
|
3799
|
+
}, function () {
|
3800
|
+
if (_this2.props.onContinue) _this2.props.onContinue();
|
3777
3801
|
});
|
3778
3802
|
}
|
3779
|
-
})))
|
3803
|
+
}, "Continuer sans accepter")));
|
3780
3804
|
};
|
3781
3805
|
|
3782
3806
|
return Cookie;
|