ui-kit-ck-consultant 0.5.258 → 0.5.260
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 +10 -0
- package/dist/index.js +68 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +69 -8
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
@@ -75,6 +75,16 @@
|
|
75
75
|
width: 900px;
|
76
76
|
}
|
77
77
|
|
78
|
+
._20eCx {
|
79
|
+
position: absolute;
|
80
|
+
right: 6rem;
|
81
|
+
top: 2rem;
|
82
|
+
font-size: 26px;
|
83
|
+
color: var(--primary-color);
|
84
|
+
cursor: pointer;
|
85
|
+
transition: 0.4s;
|
86
|
+
}
|
87
|
+
|
78
88
|
._RsujT {
|
79
89
|
position: absolute;
|
80
90
|
right: 4rem;
|
package/dist/index.js
CHANGED
@@ -45,17 +45,57 @@ function _setPrototypeOf(o, p) {
|
|
45
45
|
return _setPrototypeOf(o, p);
|
46
46
|
}
|
47
47
|
|
48
|
-
var style = {"modal":"_Tr9L0","modal_container":"_2YluD","no_background":"_2vjgy","large":"_22C7A","modal_valid":"_RsujT","modal_close":"_1AbTJ","modal_custom":"_33Wb2","modal_header":"_2EzqX","modal_body":"_1-Y1J","full_modal_container":"_1w6wH","full_modal_header":"_2wSoq","full_modal_body":"_3bfp5","full_modal_body_no_padding":"_Pf5Uh","full_modal_body_no_overflow":"_3sTgK"};
|
48
|
+
var style = {"modal":"_Tr9L0","modal_container":"_2YluD","no_background":"_2vjgy","large":"_22C7A","modal_move":"_20eCx","modal_valid":"_RsujT","modal_close":"_1AbTJ","modal_custom":"_33Wb2","modal_header":"_2EzqX","modal_body":"_1-Y1J","full_modal_container":"_1w6wH","full_modal_header":"_2wSoq","full_modal_body":"_3bfp5","full_modal_body_no_padding":"_Pf5Uh","full_modal_body_no_overflow":"_3sTgK"};
|
49
49
|
|
50
50
|
var Modal = /*#__PURE__*/function (_React$Component) {
|
51
51
|
_inheritsLoose(Modal, _React$Component);
|
52
52
|
|
53
|
-
function Modal() {
|
54
|
-
|
53
|
+
function Modal(props) {
|
54
|
+
var _this;
|
55
|
+
|
56
|
+
_this = _React$Component.call(this, props) || this;
|
57
|
+
|
58
|
+
_this.handleMouseUp = function () {
|
59
|
+
_this.setState({
|
60
|
+
isMove: false
|
61
|
+
}, function () {
|
62
|
+
window.removeEventListener('mousemove', _this.updateMousePosition);
|
63
|
+
});
|
64
|
+
};
|
65
|
+
|
66
|
+
_this.updateMousePosition = function (e) {
|
67
|
+
_this.setState({
|
68
|
+
x: e.clientX,
|
69
|
+
y: e.clientY
|
70
|
+
});
|
71
|
+
};
|
72
|
+
|
73
|
+
_this.state = {
|
74
|
+
isMove: false,
|
75
|
+
xStart: null,
|
76
|
+
yStart: null,
|
77
|
+
x: null,
|
78
|
+
y: null
|
79
|
+
};
|
80
|
+
return _this;
|
55
81
|
}
|
56
82
|
|
57
83
|
var _proto = Modal.prototype;
|
58
84
|
|
85
|
+
_proto.componentDidMount = function componentDidMount() {
|
86
|
+
if (this.props.show) {
|
87
|
+
document.body.style.overflow = 'hidden';
|
88
|
+
} else {
|
89
|
+
document.body.style.overflow = 'unset';
|
90
|
+
}
|
91
|
+
|
92
|
+
window.addEventListener('mouseup', this.handleMouseUp);
|
93
|
+
};
|
94
|
+
|
95
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
96
|
+
window.removeEventListener('mouseup', this.handleMouseUp);
|
97
|
+
};
|
98
|
+
|
59
99
|
_proto.componentDidUpdate = function componentDidUpdate() {
|
60
100
|
if (this.props.show) {
|
61
101
|
document.body.style.overflow = 'hidden';
|
@@ -72,7 +112,7 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
72
112
|
|
73
113
|
_proto.render = function render() {
|
74
114
|
var _classNames,
|
75
|
-
|
115
|
+
_this2 = this;
|
76
116
|
|
77
117
|
if (!this.props.show) {
|
78
118
|
return null;
|
@@ -82,11 +122,29 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
82
122
|
return /*#__PURE__*/React__default.createElement("div", {
|
83
123
|
className: style.modal,
|
84
124
|
onMouseDown: function onMouseDown(e) {
|
85
|
-
return
|
125
|
+
return _this2.handleClickModal(e);
|
86
126
|
}
|
87
127
|
}, /*#__PURE__*/React__default.createElement("div", {
|
88
|
-
className: modalContainerClass
|
128
|
+
className: modalContainerClass,
|
129
|
+
style: {
|
130
|
+
left: this.state.x && this.state.xStart ? this.state.x - this.state.xStart : 0,
|
131
|
+
top: this.state.y && this.state.yStart ? this.state.y - this.state.yStart : 0
|
132
|
+
}
|
89
133
|
}, /*#__PURE__*/React__default.createElement("div", {
|
134
|
+
className: style.modal_move,
|
135
|
+
onMouseDown: function onMouseDown(e) {
|
136
|
+
_this2.setState({
|
137
|
+
isMove: true,
|
138
|
+
xStart: _this2.state.xStart || e.clientX,
|
139
|
+
yStart: _this2.state.yStart || e.clientY
|
140
|
+
}, function () {
|
141
|
+
return window.addEventListener('mousemove', _this2.updateMousePosition);
|
142
|
+
});
|
143
|
+
}
|
144
|
+
}, this.props.isMove ? /*#__PURE__*/React__default.createElement(reactFontawesome.FontAwesomeIcon, {
|
145
|
+
className: this.state.isMove ? 'red' : '',
|
146
|
+
icon: freeSolidSvgIcons.faUpDownLeftRight
|
147
|
+
}) : ''), /*#__PURE__*/React__default.createElement("div", {
|
90
148
|
className: style.modal_valid,
|
91
149
|
onClick: this.props.onValid
|
92
150
|
}, this.props.onValid ? /*#__PURE__*/React__default.createElement(reactFontawesome.FontAwesomeIcon, {
|
@@ -4160,7 +4218,10 @@ var Footer = /*#__PURE__*/function (_React$Component) {
|
|
4160
4218
|
target: "_blank",
|
4161
4219
|
href: this.props.rgpd,
|
4162
4220
|
onClick: this.props.onRgpdClick
|
4163
|
-
}, "RGPD & Cookies"))
|
4221
|
+
}, "RGPD & Cookies")), this.props.socialNetwork ? /*#__PURE__*/React__default.createElement(reactFlexboxGrid.Col, {
|
4222
|
+
xs: 12,
|
4223
|
+
className: "mt-5 mb-5 d-flex text-center"
|
4224
|
+
}, this.props.socialNetwork) : null));
|
4164
4225
|
};
|
4165
4226
|
|
4166
4227
|
return Footer;
|