ui-kit-ck-consultant 0.5.182 → 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.css +15 -7
- 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.css
CHANGED
@@ -2523,7 +2523,7 @@
|
|
2523
2523
|
text-align: center;
|
2524
2524
|
}
|
2525
2525
|
|
2526
|
-
._361mk{
|
2526
|
+
._361mk {
|
2527
2527
|
position: fixed;
|
2528
2528
|
bottom: 2rem;
|
2529
2529
|
left: 2rem;
|
@@ -2531,7 +2531,7 @@
|
|
2531
2531
|
z-index: 100;
|
2532
2532
|
}
|
2533
2533
|
|
2534
|
-
._22nl5{
|
2534
|
+
._22nl5 {
|
2535
2535
|
display: flex;
|
2536
2536
|
padding: 1rem;
|
2537
2537
|
background-color: #ffffff;
|
@@ -2540,27 +2540,28 @@
|
|
2540
2540
|
z-index: 120;
|
2541
2541
|
}
|
2542
2542
|
|
2543
|
-
._22nl5 > span{
|
2543
|
+
._22nl5 > span {
|
2544
2544
|
display: inline-block;
|
2545
2545
|
margin: auto 1rem;
|
2546
2546
|
}
|
2547
2547
|
|
2548
|
-
._2fV2F{
|
2548
|
+
._2fV2F {
|
2549
2549
|
display: flex;
|
2550
2550
|
width: 100%;
|
2551
|
-
height: 60px;
|
2551
|
+
min-height: 60px;
|
2552
2552
|
padding: 0 1rem;
|
2553
2553
|
border-radius: 12px;
|
2554
2554
|
}
|
2555
2555
|
|
2556
|
-
._2fV2F>span{
|
2556
|
+
._2fV2F > span {
|
2557
2557
|
margin: auto 0;
|
2558
2558
|
}
|
2559
2559
|
|
2560
|
-
._1UPB2{
|
2560
|
+
._1UPB2 {
|
2561
2561
|
margin-left: auto !important;
|
2562
2562
|
font-size: 1.3rem;
|
2563
2563
|
}
|
2564
|
+
|
2564
2565
|
._2wEDs {
|
2565
2566
|
display: flex;
|
2566
2567
|
flex-direction: column;
|
@@ -2608,9 +2609,16 @@
|
|
2608
2609
|
margin: 5px 0;
|
2609
2610
|
padding: 0 10px;
|
2610
2611
|
z-index: 5;
|
2612
|
+
}
|
2613
|
+
|
2614
|
+
._2RiQY span:first-child{
|
2611
2615
|
text-align: center;
|
2612
2616
|
}
|
2613
2617
|
|
2618
|
+
._2RiQY span:last-child{
|
2619
|
+
font-weight: bold;
|
2620
|
+
}
|
2621
|
+
|
2614
2622
|
._3CtDc {
|
2615
2623
|
margin: 0 auto 5px;
|
2616
2624
|
display: flex;
|
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;
|