ui-kit-ck-consultant 0.5.222 → 0.5.225

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 CHANGED
@@ -713,6 +713,7 @@
713
713
  -moz-user-select: none;
714
714
  user-select: none;
715
715
  cursor: pointer;
716
+ overflow: hidden;
716
717
  }
717
718
  ._3BzwZ::-moz-placeholder {
718
719
  color: var(--gray);
@@ -751,10 +752,9 @@
751
752
  }
752
753
 
753
754
  ._oq5Pn {
754
- position: absolute;
755
+ position: fixed;
755
756
  display: flex;
756
757
  flex-direction: column;
757
- overflow-y: auto;
758
758
  width: 100%;
759
759
  height: 280px;
760
760
  max-height: 450px;
@@ -763,7 +763,6 @@
763
763
  border-radius: 15px;
764
764
  z-index: 100;
765
765
  top: 90px;
766
- padding-top: 8px;
767
766
  -webkit-touch-callout: none;
768
767
  -webkit-user-select: none;
769
768
  -moz-user-select: none;
@@ -771,12 +770,16 @@
771
770
  }
772
771
 
773
772
  ._oq5Pn > div:not(._HjP3u) {
773
+ overflow-y: auto;
774
+ }
775
+
776
+ ._oq5Pn > div:not(._HjP3u) > div {
774
777
  padding: 8px 16px;
775
778
  transition: 0.3s;
776
779
  cursor: pointer;
777
780
  }
778
781
 
779
- ._oq5Pn > div:hover:not(._HjP3u) {
782
+ ._oq5Pn > div:not(._HjP3u) > div:hover {
780
783
  background-color: #eeeeee;
781
784
  }
782
785
 
package/dist/index.js CHANGED
@@ -602,6 +602,7 @@ var FormSelectMutiples = /*#__PURE__*/function (_React$Component) {
602
602
  _this.state = {
603
603
  isDisplay: false
604
604
  };
605
+ _this.inputRef = React__default.createRef();
605
606
  return _this;
606
607
  }
607
608
 
@@ -617,6 +618,7 @@ var FormSelectMutiples = /*#__PURE__*/function (_React$Component) {
617
618
  }, this.props.title, ' ', this.props.required ? /*#__PURE__*/React__default.createElement("span", {
618
619
  className: "red"
619
620
  }, "*") : '') : '', /*#__PURE__*/React__default.createElement("div", {
621
+ ref: this.inputRef,
620
622
  className: style$6.form_select_multiples,
621
623
  onClick: function onClick() {
622
624
  return _this2.setState({
@@ -626,8 +628,13 @@ var FormSelectMutiples = /*#__PURE__*/function (_React$Component) {
626
628
  }, /*#__PURE__*/React__default.createElement("span", null, this.props.value.join(";")), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(reactFontawesome.FontAwesomeIcon, {
627
629
  icon: freeSolidSvgIcons.faCaretDown
628
630
  }))), this.state.isDisplay ? /*#__PURE__*/React__default.createElement("div", {
631
+ style: {
632
+ top: this.inputRef.current.getBoundingClientRect().y + 60,
633
+ left: this.inputRef.current.getBoundingClientRect().x,
634
+ width: this.inputRef.current.offsetWidth
635
+ },
629
636
  className: style$6.form_select_values
630
- }, this.props.options.map(function (element, idx) {
637
+ }, /*#__PURE__*/React__default.createElement("div", null, this.props.options.map(function (element, idx) {
631
638
  return /*#__PURE__*/React__default.createElement("div", {
632
639
  key: idx,
633
640
  onClick: function onClick() {
@@ -640,7 +647,7 @@ var FormSelectMutiples = /*#__PURE__*/function (_React$Component) {
640
647
  checked: _this2.props.value.includes(element.value),
641
648
  text: element.text
642
649
  }));
643
- }), /*#__PURE__*/React__default.createElement("div", {
650
+ })), /*#__PURE__*/React__default.createElement("div", {
644
651
  className: classNames$1('mt-auto d-flex', style$6.form_select_multiples_bottom)
645
652
  }, /*#__PURE__*/React__default.createElement("span", {
646
653
  onClick: function onClick() {