ui-kit-ck-consultant 0.5.271 → 0.5.272

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 CHANGED
@@ -676,10 +676,10 @@ var FormCheckbox = /*#__PURE__*/function (_React$Component) {
676
676
  return FormCheckbox;
677
677
  }(React__default.Component);
678
678
 
679
- var FormSelectMutiples = /*#__PURE__*/function (_React$Component) {
680
- _inheritsLoose(FormSelectMutiples, _React$Component);
679
+ var FormSelectMultiples = /*#__PURE__*/function (_React$Component) {
680
+ _inheritsLoose(FormSelectMultiples, _React$Component);
681
681
 
682
- function FormSelectMutiples(props) {
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 = FormSelectMutiples.prototype;
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 FormSelectMutiples;
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"};
@@ -1095,7 +1095,7 @@ var Header = /*#__PURE__*/function (_React$Component) {
1095
1095
  _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
1096
1096
 
1097
1097
  _this.snowflake = function () {
1098
- var COUNT = 125;
1098
+ var COUNT = 10;
1099
1099
  var masthead = document.querySelector('.sky');
1100
1100
  var canvas = document.createElement('canvas');
1101
1101
  var ctx = canvas.getContext('2d');
@@ -1127,9 +1127,9 @@ var Header = /*#__PURE__*/function (_React$Component) {
1127
1127
  Snowflake.prototype.reset = function () {
1128
1128
  this.x = Math.random() * width;
1129
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;
1130
+ this.vy = 0.18 + Math.random() * 1.5;
1131
+ this.vx = 0.65 - Math.random();
1132
+ this.r = 1 + Math.random() * 3;
1133
1133
  this.o = 0.5 + Math.random() * 0.5;
1134
1134
  };
1135
1135
 
@@ -1154,11 +1154,26 @@ var Header = /*#__PURE__*/function (_React$Component) {
1154
1154
  snowflake.x += snowflake.vx;
1155
1155
  ctx.globalAlpha = snowflake.o;
1156
1156
  ctx.beginPath();
1157
- ctx.arc(snowflake.x, snowflake.y, snowflake.r, 0, Math.PI * 2, false);
1157
+ var x = snowflake.x;
1158
+ var y = snowflake.y;
1159
+
1160
+ var _width = 10 * snowflake.r;
1161
+
1162
+ var _height = 10 * snowflake.r;
1163
+
1164
+ var topCurveHeight = _height * 0.3;
1165
+ ctx.moveTo(x, y + topCurveHeight);
1166
+ ctx.bezierCurveTo(x, y, x - _width / 2, y, x - _width / 2, y + topCurveHeight);
1167
+ ctx.bezierCurveTo(x - _width / 2, y + (_height + topCurveHeight) / 2, x, y + (_height + topCurveHeight) / 2, x, y + _height);
1168
+ ctx.bezierCurveTo(x, y + (_height + topCurveHeight) / 2, x + _width / 2, y + (_height + topCurveHeight) / 2, x + _width / 2, y + topCurveHeight);
1169
+ ctx.bezierCurveTo(x + _width / 2, y, x, y, x, y + topCurveHeight);
1170
+ ctx.closePath();
1171
+ ctx.fillStyle = "rgba(255, 20, 20, 0.5)";
1172
+ ctx.fill();
1158
1173
  ctx.closePath();
1159
1174
  ctx.fill();
1160
1175
 
1161
- if (snowflake.y > height) {
1176
+ if (snowflake.y > _height * 4) {
1162
1177
  snowflake.reset();
1163
1178
  }
1164
1179
  }
@@ -1168,7 +1183,7 @@ var Header = /*#__PURE__*/function (_React$Component) {
1168
1183
 
1169
1184
  window.requestAnimFrame = function () {
1170
1185
  return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function (callback) {
1171
- window.setTimeout(callback, 1000 / 60);
1186
+ window.setTimeout(callback, 1000 / 10);
1172
1187
  };
1173
1188
  }();
1174
1189
 
@@ -1188,7 +1203,7 @@ var Header = /*#__PURE__*/function (_React$Component) {
1188
1203
 
1189
1204
  _proto.render = function render() {
1190
1205
  return /*#__PURE__*/React__default.createElement("div", {
1191
- className: classNames$1(style$b.header, this.props.className, "sky")
1206
+ className: classNames$1(style$b.header, this.props.className, 'sky')
1192
1207
  }, /*#__PURE__*/React__default.createElement("div", {
1193
1208
  className: style$b.header_absolute,
1194
1209
  style: this.props.styleBackground
@@ -10598,7 +10613,7 @@ exports.FormInput = FormInput;
10598
10613
  exports.FormRadio = FormRadio;
10599
10614
  exports.FormRange = FormRange;
10600
10615
  exports.FormSelect = FormSelect;
10601
- exports.FormSelectMultiples = FormSelectMutiples;
10616
+ exports.FormSelectMultiples = FormSelectMultiples;
10602
10617
  exports.FormTextarea = FormTextarea;
10603
10618
  exports.FullModal = FullModal;
10604
10619
  exports.Gauge = Gauge;