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