ui-kit-ck-consultant 0.5.271 → 0.5.273
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 +8 -103
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8 -103
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -676,10 +676,10 @@ var FormCheckbox = /*#__PURE__*/function (_React$Component) {
|
|
676
676
|
return FormCheckbox;
|
677
677
|
}(React__default.Component);
|
678
678
|
|
679
|
-
var
|
680
|
-
_inheritsLoose(
|
679
|
+
var FormSelectMultiples = /*#__PURE__*/function (_React$Component) {
|
680
|
+
_inheritsLoose(FormSelectMultiples, _React$Component);
|
681
681
|
|
682
|
-
function
|
682
|
+
function FormSelectMultiples(props) {
|
683
683
|
var _this;
|
684
684
|
|
685
685
|
_this = _React$Component.call(this, props) || this;
|
@@ -705,7 +705,7 @@ var FormSelectMutiples = /*#__PURE__*/function (_React$Component) {
|
|
705
705
|
return _this;
|
706
706
|
}
|
707
707
|
|
708
|
-
var _proto =
|
708
|
+
var _proto = FormSelectMultiples.prototype;
|
709
709
|
|
710
710
|
_proto.render = function render() {
|
711
711
|
var _this2 = this;
|
@@ -766,7 +766,7 @@ var FormSelectMutiples = /*#__PURE__*/function (_React$Component) {
|
|
766
766
|
}, "Valider"))) : null);
|
767
767
|
};
|
768
768
|
|
769
|
-
return
|
769
|
+
return FormSelectMultiples;
|
770
770
|
}(React__default.Component);
|
771
771
|
|
772
772
|
var style$8 = {"radio_container":"_3mKHO","form_radio_container":"_2lVSW","form_radio_mark":"_2xIhO"};
|
@@ -1086,109 +1086,14 @@ var Header = /*#__PURE__*/function (_React$Component) {
|
|
1086
1086
|
_inheritsLoose(Header, _React$Component);
|
1087
1087
|
|
1088
1088
|
function Header() {
|
1089
|
-
|
1090
|
-
|
1091
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
1092
|
-
args[_key] = arguments[_key];
|
1093
|
-
}
|
1094
|
-
|
1095
|
-
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
1096
|
-
|
1097
|
-
_this.snowflake = function () {
|
1098
|
-
var COUNT = 125;
|
1099
|
-
var masthead = document.querySelector('.sky');
|
1100
|
-
var canvas = document.createElement('canvas');
|
1101
|
-
var ctx = canvas.getContext('2d');
|
1102
|
-
var width = masthead.clientWidth;
|
1103
|
-
var height = masthead.clientHeight;
|
1104
|
-
var i = 0;
|
1105
|
-
var active = false;
|
1106
|
-
|
1107
|
-
function onResize() {
|
1108
|
-
width = masthead.clientWidth;
|
1109
|
-
height = masthead.clientHeight;
|
1110
|
-
canvas.width = width;
|
1111
|
-
canvas.height = height;
|
1112
|
-
ctx.fillStyle = '#FFF';
|
1113
|
-
var wasActive = active;
|
1114
|
-
active = width > 600;
|
1115
|
-
if (!wasActive && active) requestAnimFrame(update);
|
1116
|
-
}
|
1117
|
-
|
1118
|
-
var Snowflake = function Snowflake() {
|
1119
|
-
this.x = 0;
|
1120
|
-
this.y = 0;
|
1121
|
-
this.vy = 0;
|
1122
|
-
this.vx = 0;
|
1123
|
-
this.r = 0;
|
1124
|
-
this.reset();
|
1125
|
-
};
|
1126
|
-
|
1127
|
-
Snowflake.prototype.reset = function () {
|
1128
|
-
this.x = Math.random() * width;
|
1129
|
-
this.y = Math.random() * -height;
|
1130
|
-
this.vy = 1 + Math.random() * 3;
|
1131
|
-
this.vx = 0.5 - Math.random();
|
1132
|
-
this.r = 1 + Math.random() * 2;
|
1133
|
-
this.o = 0.5 + Math.random() * 0.5;
|
1134
|
-
};
|
1135
|
-
|
1136
|
-
canvas.style.position = 'absolute';
|
1137
|
-
canvas.style.left = canvas.style.top = '0';
|
1138
|
-
var snowflakes = [],
|
1139
|
-
snowflake;
|
1140
|
-
|
1141
|
-
for (i = 0; i < COUNT; i++) {
|
1142
|
-
snowflake = new Snowflake();
|
1143
|
-
snowflake.reset();
|
1144
|
-
snowflakes.push(snowflake);
|
1145
|
-
}
|
1146
|
-
|
1147
|
-
function update() {
|
1148
|
-
ctx.clearRect(0, 0, width, height);
|
1149
|
-
if (!active) return;
|
1150
|
-
|
1151
|
-
for (i = 0; i < COUNT; i++) {
|
1152
|
-
snowflake = snowflakes[i];
|
1153
|
-
snowflake.y += snowflake.vy;
|
1154
|
-
snowflake.x += snowflake.vx;
|
1155
|
-
ctx.globalAlpha = snowflake.o;
|
1156
|
-
ctx.beginPath();
|
1157
|
-
ctx.arc(snowflake.x, snowflake.y, snowflake.r, 0, Math.PI * 2, false);
|
1158
|
-
ctx.closePath();
|
1159
|
-
ctx.fill();
|
1160
|
-
|
1161
|
-
if (snowflake.y > height) {
|
1162
|
-
snowflake.reset();
|
1163
|
-
}
|
1164
|
-
}
|
1165
|
-
|
1166
|
-
requestAnimFrame(update);
|
1167
|
-
}
|
1168
|
-
|
1169
|
-
window.requestAnimFrame = function () {
|
1170
|
-
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function (callback) {
|
1171
|
-
window.setTimeout(callback, 1000 / 60);
|
1172
|
-
};
|
1173
|
-
}();
|
1174
|
-
|
1175
|
-
onResize();
|
1176
|
-
window.addEventListener('resize', onResize, false);
|
1177
|
-
masthead.appendChild(canvas);
|
1178
|
-
};
|
1179
|
-
|
1180
|
-
return _this;
|
1089
|
+
return _React$Component.apply(this, arguments) || this;
|
1181
1090
|
}
|
1182
1091
|
|
1183
1092
|
var _proto = Header.prototype;
|
1184
1093
|
|
1185
|
-
_proto.componentDidMount = function componentDidMount() {
|
1186
|
-
this.snowflake();
|
1187
|
-
};
|
1188
|
-
|
1189
1094
|
_proto.render = function render() {
|
1190
1095
|
return /*#__PURE__*/React__default.createElement("div", {
|
1191
|
-
className: classNames$1(style$b.header, this.props.className,
|
1096
|
+
className: classNames$1(style$b.header, this.props.className, 'sky')
|
1192
1097
|
}, /*#__PURE__*/React__default.createElement("div", {
|
1193
1098
|
className: style$b.header_absolute,
|
1194
1099
|
style: this.props.styleBackground
|
@@ -10598,7 +10503,7 @@ exports.FormInput = FormInput;
|
|
10598
10503
|
exports.FormRadio = FormRadio;
|
10599
10504
|
exports.FormRange = FormRange;
|
10600
10505
|
exports.FormSelect = FormSelect;
|
10601
|
-
exports.FormSelectMultiples =
|
10506
|
+
exports.FormSelectMultiples = FormSelectMultiples;
|
10602
10507
|
exports.FormTextarea = FormTextarea;
|
10603
10508
|
exports.FullModal = FullModal;
|
10604
10509
|
exports.Gauge = Gauge;
|