@lanaco/lnc-react-ui 3.4.0 → 3.7.0

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/lib/index.esm.js CHANGED
@@ -3720,12 +3720,14 @@ var lanaco_light = {
3720
3720
  enabled: {
3721
3721
  text: 500,
3722
3722
  line: 300,
3723
- fontWeight: 700
3723
+ fontWeight: 700,
3724
+ lineHeight: "2px"
3724
3725
  },
3725
3726
  hover: {
3726
3727
  text: 500,
3727
3728
  line: 300,
3728
- fontWeight: 700
3729
+ fontWeight: 700,
3730
+ lineHeight: "1px"
3729
3731
  },
3730
3732
  active: {
3731
3733
  text: 500,
@@ -3957,14 +3959,16 @@ var lanaco_light = {
3957
3959
  backgroundOpacity: 0,
3958
3960
  text: 500,
3959
3961
  line: 200,
3960
- fontWeight: 700
3962
+ fontWeight: 700,
3963
+ lineHeight: "2px"
3961
3964
  },
3962
3965
  hover: {
3963
3966
  background: 0,
3964
3967
  backgroundOpacity: 0,
3965
3968
  text: 500,
3966
3969
  line: 200,
3967
- fontWeight: 700
3970
+ fontWeight: 700,
3971
+ lineHeight: "1px"
3968
3972
  },
3969
3973
  active: {
3970
3974
  background: 0,
@@ -7122,12 +7126,14 @@ var lanaco_dark = {
7122
7126
  enabled: {
7123
7127
  text: 400,
7124
7128
  line: 700,
7125
- fontWeight: 700
7129
+ fontWeight: 700,
7130
+ lineHeight: "2px"
7126
7131
  },
7127
7132
  hover: {
7128
7133
  text: 400,
7129
7134
  line: 700,
7130
- fontWeight: 700
7135
+ fontWeight: 700,
7136
+ lineHeight: "1px"
7131
7137
  },
7132
7138
  active: {
7133
7139
  text: 400,
@@ -7357,14 +7363,16 @@ var lanaco_dark = {
7357
7363
  backgroundOpacity: 0,
7358
7364
  text: 300,
7359
7365
  line: 700,
7360
- fontWeight: 700
7366
+ fontWeight: 700,
7367
+ lineHeight: "2px"
7361
7368
  },
7362
7369
  hover: {
7363
7370
  background: 700,
7364
7371
  backgroundOpacity: 0,
7365
7372
  text: 300,
7366
7373
  line: 200,
7367
- fontWeight: 700
7374
+ fontWeight: 700,
7375
+ lineHeight: "1px"
7368
7376
  },
7369
7377
  active: {
7370
7378
  background: 800,
@@ -10508,11 +10516,14 @@ var lanaco_e_commerce = {
10508
10516
  enabled: {
10509
10517
  text: 500,
10510
10518
  line: 300,
10519
+ lineHeight: "2px",
10520
+ lineRadius: "0",
10511
10521
  fontWeight: 700
10512
10522
  },
10513
10523
  hover: {
10514
10524
  text: 500,
10515
10525
  line: 300,
10526
+ lineHeight: "1px",
10516
10527
  fontWeight: 700
10517
10528
  },
10518
10529
  active: {
@@ -10745,14 +10756,16 @@ var lanaco_e_commerce = {
10745
10756
  backgroundOpacity: 0,
10746
10757
  text: 500,
10747
10758
  line: 200,
10748
- fontWeight: 700
10759
+ fontWeight: 700,
10760
+ lineHeight: "2px"
10749
10761
  },
10750
10762
  hover: {
10751
10763
  background: 0,
10752
10764
  backgroundOpacity: 0,
10753
10765
  text: 500,
10754
10766
  line: 200,
10755
- fontWeight: 700
10767
+ fontWeight: 700,
10768
+ lineHeight: "1px"
10756
10769
  },
10757
10770
  active: {
10758
10771
  background: 0,
@@ -53781,7 +53794,7 @@ Dropdown.propTypes = {
53781
53794
  openMenuOnClick: PropTypes.bool,
53782
53795
  //----
53783
53796
  autoFocus: PropTypes.bool,
53784
- placeholder: PropTypes.string,
53797
+ placeholder: PropTypes.any,
53785
53798
  noOptionsMessage: PropTypes.string,
53786
53799
  menuIsOpen: PropTypes.bool,
53787
53800
  /**
@@ -70760,7 +70773,7 @@ const useInteractions = function (propsList) {
70760
70773
 
70761
70774
  var _excluded$N = ["children", "modal"],
70762
70775
  _excluded2$3 = ["children", "asChild"],
70763
- _excluded3$1 = ["borderRadius", "className", "style"],
70776
+ _excluded3$1 = ["borderRadius", "className", "zIndex", "style"],
70764
70777
  _excluded4$1 = ["children"],
70765
70778
  _excluded6 = ["children"];
70766
70779
  var _templateObject$K;
@@ -70906,6 +70919,7 @@ var PopoverContent = /*#__PURE__*/React.forwardRef(function PopoverContent(_ref4
70906
70919
  var _state$y, _state$x;
70907
70920
  var borderRadius = _ref4.borderRadius,
70908
70921
  className = _ref4.className,
70922
+ zIndex = _ref4.zIndex,
70909
70923
  style = _ref4.style,
70910
70924
  props = _objectWithoutProperties$1(_ref4, _excluded3$1);
70911
70925
  var state = usePopoverState();
@@ -70920,7 +70934,8 @@ var PopoverContent = /*#__PURE__*/React.forwardRef(function PopoverContent(_ref4
70920
70934
  position: state.strategy,
70921
70935
  top: (_state$y = state.y) !== null && _state$y !== void 0 ? _state$y : 0,
70922
70936
  left: (_state$x = state.x) !== null && _state$x !== void 0 ? _state$x : 0,
70923
- width: "max-content"
70937
+ width: "max-content",
70938
+ zIndex: zIndex
70924
70939
  },
70925
70940
  "aria-labelledby": state.labelId,
70926
70941
  "aria-describedby": state.descriptionId
@@ -70938,7 +70953,8 @@ PopoverContent.defaultProps = {
70938
70953
  };
70939
70954
  PopoverContent.propTypes = {
70940
70955
  className: PropTypes.string,
70941
- style: PropTypes.object
70956
+ style: PropTypes.object,
70957
+ zIndex: PropTypes.number
70942
70958
  };
70943
70959
  var PopoverHeading = /*#__PURE__*/React.forwardRef(function PopoverHeading(_ref5, ref) {
70944
70960
  var children = _ref5.children,
@@ -70972,7 +70988,7 @@ var PopoverClose = /*#__PURE__*/React.forwardRef(function PopoverClose(_ref7, re
70972
70988
  }), children);
70973
70989
  });
70974
70990
 
70975
- var _excluded$M = ["control", "offsetValue", "placement", "widthFitContent", "closeOnItemSelect", "onFocus", "onBlur", "onClick", "onKeyDown", "onMouseEnter", "onMouseLeave", "onItemSelected", "animation", "className", "style", "color", "size", "popoverProps", "children"];
70991
+ var _excluded$M = ["control", "offsetValue", "placement", "widthFitContent", "closeOnItemSelect", "zIndex", "onFocus", "onBlur", "onClick", "onKeyDown", "onMouseEnter", "onMouseLeave", "onItemSelected", "animation", "className", "style", "color", "size", "popoverProps", "children"];
70976
70992
  var _templateObject$J, _templateObject2$f;
70977
70993
  var StyledDropDown = newStyled.div(_templateObject$J || (_templateObject$J = _taggedTemplateLiteral([""])));
70978
70994
  var StyledContent = newStyled(motion.div)(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteral(["\n gap: 0.25rem;\n display: flex;\n flex-direction: column;\n ", ";\n background-color: ", ";\n"])), function (props) {
@@ -70986,6 +71002,7 @@ var DropdownMenu = /*#__PURE__*/React__default.forwardRef(function (props, ref)
70986
71002
  placement = props.placement,
70987
71003
  widthFitContent = props.widthFitContent,
70988
71004
  closeOnItemSelect = props.closeOnItemSelect,
71005
+ zIndex = props.zIndex,
70989
71006
  onFocus = props.onFocus,
70990
71007
  onBlur = props.onBlur,
70991
71008
  onClick = props.onClick,
@@ -71024,14 +71041,14 @@ var DropdownMenu = /*#__PURE__*/React__default.forwardRef(function (props, ref)
71024
71041
  return /*#__PURE__*/React__default.cloneElement(child, {
71025
71042
  ref: ref ? ref : firstItemRef,
71026
71043
  //needed to focus on navigation
71027
- color: color,
71044
+ color: child.props.color ? child.props.color : color,
71028
71045
  size: size,
71029
71046
  onItemSelected: handleOnItemSelected,
71030
71047
  animation: animation
71031
71048
  });
71032
71049
  }
71033
71050
  return /*#__PURE__*/React__default.cloneElement(child, {
71034
- color: color,
71051
+ color: child.props.color ? child.props.color : color,
71035
71052
  size: size,
71036
71053
  onItemSelected: handleOnItemSelected
71037
71054
  });
@@ -71081,7 +71098,9 @@ var DropdownMenu = /*#__PURE__*/React__default.forwardRef(function (props, ref)
71081
71098
  return !v;
71082
71099
  });
71083
71100
  }
71084
- }, clonedControl()), /*#__PURE__*/React__default.createElement(PopoverContent, null, /*#__PURE__*/React__default.createElement(StyledContent, {
71101
+ }, clonedControl()), /*#__PURE__*/React__default.createElement(PopoverContent, {
71102
+ zIndex: zIndex
71103
+ }, /*#__PURE__*/React__default.createElement(StyledContent, {
71085
71104
  ref: menuContentRef,
71086
71105
  widthFitContent: widthFitContent,
71087
71106
  color: color,
@@ -71148,6 +71167,10 @@ DropdownMenu.propTypes = {
71148
71167
  * Close menu when item is selected
71149
71168
  */
71150
71169
  closeOnItemSelect: PropTypes.bool,
71170
+ /**
71171
+ * zIndex of dropdown popup
71172
+ */
71173
+ zIndex: PropTypes.number,
71151
71174
  //---------------------------------------------------------------
71152
71175
  onBlur: PropTypes.func,
71153
71176
  onFocus: PropTypes.func,
@@ -71376,7 +71399,6 @@ DropdownItem.defaultProps = {
71376
71399
  //-------------------------
71377
71400
  style: {},
71378
71401
  className: "",
71379
- color: "primary",
71380
71402
  size: "small",
71381
71403
  __TYPE__: "MENU_ITEM"
71382
71404
  };
@@ -77999,7 +78021,7 @@ DropdownLookup.propTypes = {
77999
78021
  openMenuOnClick: PropTypes.bool,
78000
78022
  //----
78001
78023
  autoFocus: PropTypes.bool,
78002
- placeholder: PropTypes.string,
78024
+ placeholder: PropTypes.any,
78003
78025
  noOptionsMessage: PropTypes.string,
78004
78026
  menuIsOpen: PropTypes.bool,
78005
78027
  /**
@@ -78303,7 +78325,7 @@ MultiSelectDropdown.propTypes = {
78303
78325
  openMenuOnClick: PropTypes.bool,
78304
78326
  //----
78305
78327
  autoFocus: PropTypes.bool,
78306
- placeholder: PropTypes.string,
78328
+ placeholder: PropTypes.any,
78307
78329
  noOptionsMessage: PropTypes.string,
78308
78330
  menuIsOpen: PropTypes.bool,
78309
78331
  /**
@@ -78627,7 +78649,7 @@ MultiSelectDropdownLookup.propTypes = {
78627
78649
  openMenuOnClick: PropTypes.bool,
78628
78650
  //----
78629
78651
  autoFocus: PropTypes.bool,
78630
- placeholder: PropTypes.string,
78652
+ placeholder: PropTypes.any,
78631
78653
  noOptionsMessage: PropTypes.string,
78632
78654
  menuIsOpen: PropTypes.bool,
78633
78655
  /**
@@ -81125,7 +81147,7 @@ var getBorderRadius = function getBorderRadius(theme, type, first, last) {
81125
81147
  };
81126
81148
  var getBottomLine = function getBottomLine(theme, type, active, disabled, color, state) {
81127
81149
  if (type == "pill") return;
81128
- return "border-bottom: ".concat(!disabled && (active || state == "hover") ? "2px" : "1px", " solid ").concat(getColorRgbaValue(theme, getTypeName(type), color, active && !disabled ? "active" : disabled ? "enabled" : state, "line"));
81150
+ return "border-bottom: ".concat(!disabled && (active || state == "hover") ? theme.components[type === "regular" ? "TabRegular" : "TabUnderline"]["default"].enabled.lineHeight + "" : theme.components[type === "regular" ? "TabRegular" : "TabUnderline"]["default"].hover.lineHeight + "", " solid ").concat(getColorRgbaValue(theme, getTypeName(type), color, active && !disabled ? "active" : disabled ? "enabled" : state, "line"));
81129
81151
  };
81130
81152
  var TabItem = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
81131
81153
  var type = props.type,
@@ -82327,7 +82349,7 @@ var NestedDropdownItem = /*#__PURE__*/React__default.forwardRef(function (props,
82327
82349
  if ( /*#__PURE__*/React__default.isValidElement(child)) {
82328
82350
  if (child.props.__TYPE__ == "MENU_ITEM" || child.props.__TYPE__ == "NESTED_ITEM") {
82329
82351
  return /*#__PURE__*/React__default.cloneElement(child, {
82330
- color: color,
82352
+ color: child.props.color ? child.props.color : color,
82331
82353
  size: size,
82332
82354
  onItemSelected: onItemSelected
82333
82355
  });
@@ -82684,13 +82706,13 @@ var TreeMenu = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
82684
82706
  return /*#__PURE__*/React__default.cloneElement(child, {
82685
82707
  ref: ref ? ref : firstItemRef,
82686
82708
  //needed to focus on navigation
82687
- color: color,
82709
+ color: child.props.color ? child.props.color : color,
82688
82710
  size: size,
82689
82711
  onItemSelected: onItemSelected
82690
82712
  });
82691
82713
  }
82692
82714
  return /*#__PURE__*/React__default.cloneElement(child, {
82693
- color: color,
82715
+ color: child.props.color ? child.props.color : color,
82694
82716
  size: size,
82695
82717
  onItemSelected: onItemSelected
82696
82718
  });
@@ -82949,7 +82971,6 @@ MenuItem.defaultProps = {
82949
82971
  //-------------------------
82950
82972
  style: {},
82951
82973
  className: "",
82952
- color: "primary",
82953
82974
  size: "small",
82954
82975
  __TYPE__: "MENU_ITEM"
82955
82976
  };
@@ -83018,7 +83039,7 @@ var NestedMenuItem = /*#__PURE__*/React__default.forwardRef(function (props, ref
83018
83039
  if ( /*#__PURE__*/React__default.isValidElement(child)) {
83019
83040
  if (child.props.__TYPE__ == "MENU_ITEM" || child.props.__TYPE__ == "NESTED_ITEM") {
83020
83041
  return /*#__PURE__*/React__default.cloneElement(child, {
83021
- color: color,
83042
+ color: child.props.color ? child.props.color : color,
83022
83043
  size: size,
83023
83044
  onItemSelected: onItemSelected
83024
83045
  });
package/lib/index.js CHANGED
@@ -3769,12 +3769,14 @@ var lanaco_light = {
3769
3769
  enabled: {
3770
3770
  text: 500,
3771
3771
  line: 300,
3772
- fontWeight: 700
3772
+ fontWeight: 700,
3773
+ lineHeight: "2px"
3773
3774
  },
3774
3775
  hover: {
3775
3776
  text: 500,
3776
3777
  line: 300,
3777
- fontWeight: 700
3778
+ fontWeight: 700,
3779
+ lineHeight: "1px"
3778
3780
  },
3779
3781
  active: {
3780
3782
  text: 500,
@@ -4006,14 +4008,16 @@ var lanaco_light = {
4006
4008
  backgroundOpacity: 0,
4007
4009
  text: 500,
4008
4010
  line: 200,
4009
- fontWeight: 700
4011
+ fontWeight: 700,
4012
+ lineHeight: "2px"
4010
4013
  },
4011
4014
  hover: {
4012
4015
  background: 0,
4013
4016
  backgroundOpacity: 0,
4014
4017
  text: 500,
4015
4018
  line: 200,
4016
- fontWeight: 700
4019
+ fontWeight: 700,
4020
+ lineHeight: "1px"
4017
4021
  },
4018
4022
  active: {
4019
4023
  background: 0,
@@ -7171,12 +7175,14 @@ var lanaco_dark = {
7171
7175
  enabled: {
7172
7176
  text: 400,
7173
7177
  line: 700,
7174
- fontWeight: 700
7178
+ fontWeight: 700,
7179
+ lineHeight: "2px"
7175
7180
  },
7176
7181
  hover: {
7177
7182
  text: 400,
7178
7183
  line: 700,
7179
- fontWeight: 700
7184
+ fontWeight: 700,
7185
+ lineHeight: "1px"
7180
7186
  },
7181
7187
  active: {
7182
7188
  text: 400,
@@ -7406,14 +7412,16 @@ var lanaco_dark = {
7406
7412
  backgroundOpacity: 0,
7407
7413
  text: 300,
7408
7414
  line: 700,
7409
- fontWeight: 700
7415
+ fontWeight: 700,
7416
+ lineHeight: "2px"
7410
7417
  },
7411
7418
  hover: {
7412
7419
  background: 700,
7413
7420
  backgroundOpacity: 0,
7414
7421
  text: 300,
7415
7422
  line: 200,
7416
- fontWeight: 700
7423
+ fontWeight: 700,
7424
+ lineHeight: "1px"
7417
7425
  },
7418
7426
  active: {
7419
7427
  background: 800,
@@ -10557,11 +10565,14 @@ var lanaco_e_commerce = {
10557
10565
  enabled: {
10558
10566
  text: 500,
10559
10567
  line: 300,
10568
+ lineHeight: "2px",
10569
+ lineRadius: "0",
10560
10570
  fontWeight: 700
10561
10571
  },
10562
10572
  hover: {
10563
10573
  text: 500,
10564
10574
  line: 300,
10575
+ lineHeight: "1px",
10565
10576
  fontWeight: 700
10566
10577
  },
10567
10578
  active: {
@@ -10794,14 +10805,16 @@ var lanaco_e_commerce = {
10794
10805
  backgroundOpacity: 0,
10795
10806
  text: 500,
10796
10807
  line: 200,
10797
- fontWeight: 700
10808
+ fontWeight: 700,
10809
+ lineHeight: "2px"
10798
10810
  },
10799
10811
  hover: {
10800
10812
  background: 0,
10801
10813
  backgroundOpacity: 0,
10802
10814
  text: 500,
10803
10815
  line: 200,
10804
- fontWeight: 700
10816
+ fontWeight: 700,
10817
+ lineHeight: "1px"
10805
10818
  },
10806
10819
  active: {
10807
10820
  background: 0,
@@ -53830,7 +53843,7 @@ Dropdown.propTypes = {
53830
53843
  openMenuOnClick: PropTypes__default["default"].bool,
53831
53844
  //----
53832
53845
  autoFocus: PropTypes__default["default"].bool,
53833
- placeholder: PropTypes__default["default"].string,
53846
+ placeholder: PropTypes__default["default"].any,
53834
53847
  noOptionsMessage: PropTypes__default["default"].string,
53835
53848
  menuIsOpen: PropTypes__default["default"].bool,
53836
53849
  /**
@@ -70809,7 +70822,7 @@ const useInteractions = function (propsList) {
70809
70822
 
70810
70823
  var _excluded$N = ["children", "modal"],
70811
70824
  _excluded2$3 = ["children", "asChild"],
70812
- _excluded3$1 = ["borderRadius", "className", "style"],
70825
+ _excluded3$1 = ["borderRadius", "className", "zIndex", "style"],
70813
70826
  _excluded4$1 = ["children"],
70814
70827
  _excluded6 = ["children"];
70815
70828
  var _templateObject$K;
@@ -70955,6 +70968,7 @@ var PopoverContent = /*#__PURE__*/React__namespace.forwardRef(function PopoverCo
70955
70968
  var _state$y, _state$x;
70956
70969
  var borderRadius = _ref4.borderRadius,
70957
70970
  className = _ref4.className,
70971
+ zIndex = _ref4.zIndex,
70958
70972
  style = _ref4.style,
70959
70973
  props = _objectWithoutProperties__default["default"](_ref4, _excluded3$1);
70960
70974
  var state = usePopoverState();
@@ -70969,7 +70983,8 @@ var PopoverContent = /*#__PURE__*/React__namespace.forwardRef(function PopoverCo
70969
70983
  position: state.strategy,
70970
70984
  top: (_state$y = state.y) !== null && _state$y !== void 0 ? _state$y : 0,
70971
70985
  left: (_state$x = state.x) !== null && _state$x !== void 0 ? _state$x : 0,
70972
- width: "max-content"
70986
+ width: "max-content",
70987
+ zIndex: zIndex
70973
70988
  },
70974
70989
  "aria-labelledby": state.labelId,
70975
70990
  "aria-describedby": state.descriptionId
@@ -70987,7 +71002,8 @@ PopoverContent.defaultProps = {
70987
71002
  };
70988
71003
  PopoverContent.propTypes = {
70989
71004
  className: PropTypes__default["default"].string,
70990
- style: PropTypes__default["default"].object
71005
+ style: PropTypes__default["default"].object,
71006
+ zIndex: PropTypes__default["default"].number
70991
71007
  };
70992
71008
  var PopoverHeading = /*#__PURE__*/React__namespace.forwardRef(function PopoverHeading(_ref5, ref) {
70993
71009
  var children = _ref5.children,
@@ -71021,7 +71037,7 @@ var PopoverClose = /*#__PURE__*/React__namespace.forwardRef(function PopoverClos
71021
71037
  }), children);
71022
71038
  });
71023
71039
 
71024
- var _excluded$M = ["control", "offsetValue", "placement", "widthFitContent", "closeOnItemSelect", "onFocus", "onBlur", "onClick", "onKeyDown", "onMouseEnter", "onMouseLeave", "onItemSelected", "animation", "className", "style", "color", "size", "popoverProps", "children"];
71040
+ var _excluded$M = ["control", "offsetValue", "placement", "widthFitContent", "closeOnItemSelect", "zIndex", "onFocus", "onBlur", "onClick", "onKeyDown", "onMouseEnter", "onMouseLeave", "onItemSelected", "animation", "className", "style", "color", "size", "popoverProps", "children"];
71025
71041
  var _templateObject$J, _templateObject2$f;
71026
71042
  var StyledDropDown = newStyled.div(_templateObject$J || (_templateObject$J = _taggedTemplateLiteral__default["default"]([""])));
71027
71043
  var StyledContent = newStyled(motion.div)(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteral__default["default"](["\n gap: 0.25rem;\n display: flex;\n flex-direction: column;\n ", ";\n background-color: ", ";\n"])), function (props) {
@@ -71035,6 +71051,7 @@ var DropdownMenu = /*#__PURE__*/React__default["default"].forwardRef(function (p
71035
71051
  placement = props.placement,
71036
71052
  widthFitContent = props.widthFitContent,
71037
71053
  closeOnItemSelect = props.closeOnItemSelect,
71054
+ zIndex = props.zIndex,
71038
71055
  onFocus = props.onFocus,
71039
71056
  onBlur = props.onBlur,
71040
71057
  onClick = props.onClick,
@@ -71073,14 +71090,14 @@ var DropdownMenu = /*#__PURE__*/React__default["default"].forwardRef(function (p
71073
71090
  return /*#__PURE__*/React__default["default"].cloneElement(child, {
71074
71091
  ref: ref ? ref : firstItemRef,
71075
71092
  //needed to focus on navigation
71076
- color: color,
71093
+ color: child.props.color ? child.props.color : color,
71077
71094
  size: size,
71078
71095
  onItemSelected: handleOnItemSelected,
71079
71096
  animation: animation
71080
71097
  });
71081
71098
  }
71082
71099
  return /*#__PURE__*/React__default["default"].cloneElement(child, {
71083
- color: color,
71100
+ color: child.props.color ? child.props.color : color,
71084
71101
  size: size,
71085
71102
  onItemSelected: handleOnItemSelected
71086
71103
  });
@@ -71130,7 +71147,9 @@ var DropdownMenu = /*#__PURE__*/React__default["default"].forwardRef(function (p
71130
71147
  return !v;
71131
71148
  });
71132
71149
  }
71133
- }, clonedControl()), /*#__PURE__*/React__default["default"].createElement(PopoverContent, null, /*#__PURE__*/React__default["default"].createElement(StyledContent, {
71150
+ }, clonedControl()), /*#__PURE__*/React__default["default"].createElement(PopoverContent, {
71151
+ zIndex: zIndex
71152
+ }, /*#__PURE__*/React__default["default"].createElement(StyledContent, {
71134
71153
  ref: menuContentRef,
71135
71154
  widthFitContent: widthFitContent,
71136
71155
  color: color,
@@ -71197,6 +71216,10 @@ DropdownMenu.propTypes = {
71197
71216
  * Close menu when item is selected
71198
71217
  */
71199
71218
  closeOnItemSelect: PropTypes__default["default"].bool,
71219
+ /**
71220
+ * zIndex of dropdown popup
71221
+ */
71222
+ zIndex: PropTypes__default["default"].number,
71200
71223
  //---------------------------------------------------------------
71201
71224
  onBlur: PropTypes__default["default"].func,
71202
71225
  onFocus: PropTypes__default["default"].func,
@@ -71425,7 +71448,6 @@ DropdownItem.defaultProps = {
71425
71448
  //-------------------------
71426
71449
  style: {},
71427
71450
  className: "",
71428
- color: "primary",
71429
71451
  size: "small",
71430
71452
  __TYPE__: "MENU_ITEM"
71431
71453
  };
@@ -78048,7 +78070,7 @@ DropdownLookup.propTypes = {
78048
78070
  openMenuOnClick: PropTypes__default["default"].bool,
78049
78071
  //----
78050
78072
  autoFocus: PropTypes__default["default"].bool,
78051
- placeholder: PropTypes__default["default"].string,
78073
+ placeholder: PropTypes__default["default"].any,
78052
78074
  noOptionsMessage: PropTypes__default["default"].string,
78053
78075
  menuIsOpen: PropTypes__default["default"].bool,
78054
78076
  /**
@@ -78352,7 +78374,7 @@ MultiSelectDropdown.propTypes = {
78352
78374
  openMenuOnClick: PropTypes__default["default"].bool,
78353
78375
  //----
78354
78376
  autoFocus: PropTypes__default["default"].bool,
78355
- placeholder: PropTypes__default["default"].string,
78377
+ placeholder: PropTypes__default["default"].any,
78356
78378
  noOptionsMessage: PropTypes__default["default"].string,
78357
78379
  menuIsOpen: PropTypes__default["default"].bool,
78358
78380
  /**
@@ -78676,7 +78698,7 @@ MultiSelectDropdownLookup.propTypes = {
78676
78698
  openMenuOnClick: PropTypes__default["default"].bool,
78677
78699
  //----
78678
78700
  autoFocus: PropTypes__default["default"].bool,
78679
- placeholder: PropTypes__default["default"].string,
78701
+ placeholder: PropTypes__default["default"].any,
78680
78702
  noOptionsMessage: PropTypes__default["default"].string,
78681
78703
  menuIsOpen: PropTypes__default["default"].bool,
78682
78704
  /**
@@ -81174,7 +81196,7 @@ var getBorderRadius = function getBorderRadius(theme, type, first, last) {
81174
81196
  };
81175
81197
  var getBottomLine = function getBottomLine(theme, type, active, disabled, color, state) {
81176
81198
  if (type == "pill") return;
81177
- return "border-bottom: ".concat(!disabled && (active || state == "hover") ? "2px" : "1px", " solid ").concat(getColorRgbaValue(theme, getTypeName(type), color, active && !disabled ? "active" : disabled ? "enabled" : state, "line"));
81199
+ return "border-bottom: ".concat(!disabled && (active || state == "hover") ? theme.components[type === "regular" ? "TabRegular" : "TabUnderline"]["default"].enabled.lineHeight + "" : theme.components[type === "regular" ? "TabRegular" : "TabUnderline"]["default"].hover.lineHeight + "", " solid ").concat(getColorRgbaValue(theme, getTypeName(type), color, active && !disabled ? "active" : disabled ? "enabled" : state, "line"));
81178
81200
  };
81179
81201
  var TabItem = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
81180
81202
  var type = props.type,
@@ -82376,7 +82398,7 @@ var NestedDropdownItem = /*#__PURE__*/React__default["default"].forwardRef(funct
82376
82398
  if ( /*#__PURE__*/React__default["default"].isValidElement(child)) {
82377
82399
  if (child.props.__TYPE__ == "MENU_ITEM" || child.props.__TYPE__ == "NESTED_ITEM") {
82378
82400
  return /*#__PURE__*/React__default["default"].cloneElement(child, {
82379
- color: color,
82401
+ color: child.props.color ? child.props.color : color,
82380
82402
  size: size,
82381
82403
  onItemSelected: onItemSelected
82382
82404
  });
@@ -82733,13 +82755,13 @@ var TreeMenu = /*#__PURE__*/React__default["default"].forwardRef(function (props
82733
82755
  return /*#__PURE__*/React__default["default"].cloneElement(child, {
82734
82756
  ref: ref ? ref : firstItemRef,
82735
82757
  //needed to focus on navigation
82736
- color: color,
82758
+ color: child.props.color ? child.props.color : color,
82737
82759
  size: size,
82738
82760
  onItemSelected: onItemSelected
82739
82761
  });
82740
82762
  }
82741
82763
  return /*#__PURE__*/React__default["default"].cloneElement(child, {
82742
- color: color,
82764
+ color: child.props.color ? child.props.color : color,
82743
82765
  size: size,
82744
82766
  onItemSelected: onItemSelected
82745
82767
  });
@@ -82998,7 +83020,6 @@ MenuItem.defaultProps = {
82998
83020
  //-------------------------
82999
83021
  style: {},
83000
83022
  className: "",
83001
- color: "primary",
83002
83023
  size: "small",
83003
83024
  __TYPE__: "MENU_ITEM"
83004
83025
  };
@@ -83067,7 +83088,7 @@ var NestedMenuItem = /*#__PURE__*/React__default["default"].forwardRef(function
83067
83088
  if ( /*#__PURE__*/React__default["default"].isValidElement(child)) {
83068
83089
  if (child.props.__TYPE__ == "MENU_ITEM" || child.props.__TYPE__ == "NESTED_ITEM") {
83069
83090
  return /*#__PURE__*/React__default["default"].cloneElement(child, {
83070
- color: color,
83091
+ color: child.props.color ? child.props.color : color,
83071
83092
  size: size,
83072
83093
  onItemSelected: onItemSelected
83073
83094
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
3
  "type": "module",
4
- "version": "3.4.0",
4
+ "version": "3.7.0",
5
5
  "description": "component library",
6
6
  "main": "lib/index.js",
7
7
  "module": "lib/index.esm.js",