ui-kit-ck-consultant 0.5.146 → 0.5.150

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/css/style.css CHANGED
@@ -1499,6 +1499,9 @@ h3 {
1499
1499
  .d-flex {
1500
1500
  display: flex;
1501
1501
  }
1502
+ .flex-column {
1503
+ flex-direction: column;
1504
+ }
1502
1505
 
1503
1506
  .text-center {
1504
1507
  text-align: center !important;
package/dist/index.css CHANGED
@@ -62,7 +62,7 @@
62
62
  border-radius: 15px;
63
63
  }
64
64
 
65
- ._2YluD._22C7A{
65
+ ._2YluD._22C7A {
66
66
  width: 900px;
67
67
  }
68
68
 
@@ -137,6 +137,11 @@
137
137
  overflow-y: auto;
138
138
  }
139
139
 
140
+ ._Pf5Uh {
141
+ height: 100%;
142
+ overflow-y: auto;
143
+ }
144
+
140
145
  @media screen and (max-width: 640px) {
141
146
  ._2YluD {
142
147
  padding: 32px;
@@ -2798,4 +2803,5 @@
2798
2803
  ._zCJtD > div > span {
2799
2804
  margin: auto;
2800
2805
  padding: 0.4rem 1rem;
2806
+ font-size: 14px;
2801
2807
  }
package/dist/index.js CHANGED
@@ -46,7 +46,7 @@ function _setPrototypeOf(o, p) {
46
46
  return _setPrototypeOf(o, p);
47
47
  }
48
48
 
49
- var style = {"modal":"_Tr9L0","modal_container":"_2YluD","large":"_22C7A","modal_valid":"_RsujT","modal_close":"_1AbTJ","modal_header":"_2EzqX","modal_body":"_1-Y1J","full_modal_container":"_1w6wH","full_modal_header":"_2wSoq","full_modal_body":"_3bfp5"};
49
+ var style = {"modal":"_Tr9L0","modal_container":"_2YluD","large":"_22C7A","modal_valid":"_RsujT","modal_close":"_1AbTJ","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"};
50
50
 
51
51
  var Modal = /*#__PURE__*/function (_React$Component) {
52
52
  _inheritsLoose(Modal, _React$Component);
@@ -143,10 +143,10 @@ var FullModal = /*#__PURE__*/function (_React$Component) {
143
143
  onClick: this.props.onClose
144
144
  }, this.props.iconClose ? this.props.iconClose : /*#__PURE__*/React__default.createElement(reactFontawesome.FontAwesomeIcon, {
145
145
  icon: freeSolidSvgIcons.faTimes
146
- })), /*#__PURE__*/React__default.createElement("div", {
146
+ })), this.props.title ? /*#__PURE__*/React__default.createElement("div", {
147
147
  className: style.full_modal_header
148
- }, /*#__PURE__*/React__default.createElement("h2", null, this.props.title)), /*#__PURE__*/React__default.createElement("div", {
149
- className: style.full_modal_body
148
+ }, /*#__PURE__*/React__default.createElement("h2", null, this.props.title)) : null, /*#__PURE__*/React__default.createElement("div", {
149
+ className: this.props.noPadding ? style.full_modal_body_no_padding : style.full_modal_body
150
150
  }, this.props.children)));
151
151
  };
152
152
 
@@ -385,7 +385,7 @@ var FormSelect = /*#__PURE__*/function (_React$Component) {
385
385
  }, "*") : '') : '', this.props.ignore !== true ? /*#__PURE__*/React__default.createElement("select", {
386
386
  className: style$5.form_select,
387
387
  onChange: this.props.onChange,
388
- value: this.props.value,
388
+ value: this.props.value ? this.props.value : "DEFAULT",
389
389
  name: this.props.name,
390
390
  required: this.props.required,
391
391
  disabled: this.props.disabled,
@@ -402,7 +402,7 @@ var FormSelect = /*#__PURE__*/function (_React$Component) {
402
402
  }) : '') : /*#__PURE__*/React__default.createElement("select", {
403
403
  className: style$5.form_select,
404
404
  onChange: this.props.onChange,
405
- value: this.props.value,
405
+ value: this.props.value ? this.props.value : "DEFAULT",
406
406
  name: this.props.name,
407
407
  required: this.props.required,
408
408
  disabled: this.props.disabled
@@ -3705,6 +3705,138 @@ var Switch = /*#__PURE__*/function (_React$Component) {
3705
3705
  return Switch;
3706
3706
  }(React__default.Component);
3707
3707
 
3708
+ var Gauge = /*#__PURE__*/function (_React$Component) {
3709
+ _inheritsLoose(Gauge, _React$Component);
3710
+
3711
+ function Gauge(props) {
3712
+ var _this;
3713
+
3714
+ _this = _React$Component.call(this, props) || this;
3715
+ _this.state = {
3716
+ position: 0
3717
+ };
3718
+ return _this;
3719
+ }
3720
+
3721
+ var _proto = Gauge.prototype;
3722
+
3723
+ _proto.componentDidMount = function componentDidMount() {
3724
+ if (this.props.position) {
3725
+ this.setState({
3726
+ position: this.props.position
3727
+ });
3728
+ }
3729
+ };
3730
+
3731
+ _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
3732
+ if (prevProps.position !== this.props.position && this.props.position !== this.state.position) {
3733
+ this.setState({
3734
+ position: this.props.position
3735
+ });
3736
+ }
3737
+ };
3738
+
3739
+ _proto.render = function render() {
3740
+ var _this2 = this;
3741
+
3742
+ return /*#__PURE__*/React__default.createElement("div", {
3743
+ className: this.props.className
3744
+ }, /*#__PURE__*/React__default.createElement("span", {
3745
+ style: {
3746
+ display: 'inline-block',
3747
+ fontSize: '14px',
3748
+ fontWeight: 'bold',
3749
+ color: 'var(--black)',
3750
+ marginBottom: '16px'
3751
+ }
3752
+ }, this.props.title), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
3753
+ style: {
3754
+ position: 'relative',
3755
+ width: '100%',
3756
+ height: '22px',
3757
+ backgroundImage: this.props.colors.length === 3 ? "linear-gradient(to right, " + this.props.colors[0] + " 0%, " + this.props.colors[1] + " 50%, " + this.props.colors[2] + " 100%)" : "linear-gradient(to right, " + this.props.colors[0] + ", " + this.props.colors[1] + ")",
3758
+ borderRadius: '8px'
3759
+ },
3760
+ onClick: function onClick(e) {
3761
+ var currentTargetRect = e.currentTarget.getBoundingClientRect();
3762
+ var width = currentTargetRect.width;
3763
+ var positionX = e.pageX - currentTargetRect.left;
3764
+
3765
+ _this2.setState({
3766
+ position: positionX * 100 / width
3767
+ }, function () {
3768
+ return _this2.props.onChange ? _this2.props.onChange(_this2.state.position) : null;
3769
+ });
3770
+ }
3771
+ }, this.props.min ? /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
3772
+ style: {
3773
+ position: 'absolute',
3774
+ left: this.props.min + '%',
3775
+ transform: 'translateX(-50%)',
3776
+ textAlign: 'center',
3777
+ top: '-18px',
3778
+ fontSize: '10px'
3779
+ }
3780
+ }, "MIN"), /*#__PURE__*/React__default.createElement("div", {
3781
+ style: {
3782
+ position: 'absolute',
3783
+ width: '4px',
3784
+ height: '28px',
3785
+ borderRadius: '4px',
3786
+ top: '-3px',
3787
+ backgroundColor: 'black',
3788
+ left: this.props.min + '%',
3789
+ transform: 'translateX(-50%)'
3790
+ }
3791
+ })) : null, this.props.max ? /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
3792
+ style: {
3793
+ position: 'absolute',
3794
+ left: this.props.max + '%',
3795
+ transform: 'translateX(-50%)',
3796
+ textAlign: 'center',
3797
+ top: '-18px',
3798
+ fontSize: '10px'
3799
+ }
3800
+ }, "MAX"), /*#__PURE__*/React__default.createElement("div", {
3801
+ style: {
3802
+ position: 'absolute',
3803
+ width: '4px',
3804
+ height: '28px',
3805
+ borderRadius: '4px',
3806
+ top: '-3px',
3807
+ backgroundColor: 'black',
3808
+ left: this.props.max + '%',
3809
+ transform: 'translateX(-50%)'
3810
+ }
3811
+ })) : null, /*#__PURE__*/React__default.createElement("span", {
3812
+ style: {
3813
+ position: 'absolute',
3814
+ left: this.state.position + '%',
3815
+ transform: 'translateX(-50%)',
3816
+ textAlign: 'center',
3817
+ top: '-16px',
3818
+ fontSize: '10px',
3819
+ fontWeight: 'bold'
3820
+ }
3821
+ }, parseInt(this.state.position), "%"), /*#__PURE__*/React__default.createElement("div", {
3822
+ className: "cursor-pointer",
3823
+ style: {
3824
+ position: 'absolute',
3825
+ bottom: '-6px',
3826
+ width: 0,
3827
+ height: 0,
3828
+ borderLeft: '10px solid transparent',
3829
+ borderRight: '10px solid transparent',
3830
+ borderBottom: '18px solid black',
3831
+ transform: 'translateX(-50%)',
3832
+ left: this.state.position + '%'
3833
+ }
3834
+ }))));
3835
+ };
3836
+
3837
+ return Gauge;
3838
+ }(React__default.Component);
3839
+
3708
3840
  exports.Alert = Alert;
3709
3841
  exports.AlertContainer = AlertContainer;
3710
3842
  exports.AlertElement = AlertElement;
@@ -3732,6 +3864,7 @@ exports.FormRange = FormRange;
3732
3864
  exports.FormSelect = FormSelect;
3733
3865
  exports.FormTextarea = FormTextarea;
3734
3866
  exports.FullModal = FullModal;
3867
+ exports.Gauge = Gauge;
3735
3868
  exports.Header = Header;
3736
3869
  exports.HorizontalBarChart = HorizontalBarChart;
3737
3870
  exports.Icon = Icon;