@lanaco/lnc-react-ui 3.0.7 → 3.0.8

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
@@ -12911,7 +12911,7 @@ var getDisabledBackgroundCss = function getDisabledBackgroundCss(theme) {
12911
12911
  return "\n background-color: ".concat(bgColorRgba, ";\n ");
12912
12912
  };
12913
12913
 
12914
- var _excluded$1p = ["containerRef", "id", "name", "checked", "defaultChecked", "indeterminate", "disabled", "readOnly", "label", "labelPosition", "tabIndex", "spaceBetween", "customCheckmark", "onChange", "onFocus", "onBlur", "onClick", "color", "size", "className", "style", "children"];
12914
+ var _excluded$1p = ["containerRef", "id", "checked", "defaultChecked", "indeterminate", "disabled", "readOnly", "label", "labelPosition", "tabIndex", "spaceBetween", "customCheckmark", "onChange", "onFocus", "onBlur", "onClick", "color", "size", "className", "style", "children"];
12915
12915
  var _templateObject$1q;
12916
12916
  var getLabelDirection$2 = function getLabelDirection(direction) {
12917
12917
  if (direction == "left") return "row-reverse";
@@ -12974,7 +12974,6 @@ var Container$d = newStyled.label(_templateObject$1q || (_templateObject$1q = _t
12974
12974
  var CheckBoxInput = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
12975
12975
  var containerRef = props.containerRef;
12976
12976
  props.id;
12977
- props.name;
12978
12977
  var checked = props.checked,
12979
12978
  defaultChecked = props.defaultChecked;
12980
12979
  props.indeterminate;
@@ -13017,6 +13016,7 @@ var CheckBoxInput = /*#__PURE__*/React__default.forwardRef(function (props, ref)
13017
13016
  if (onFocus) onFocus(e);
13018
13017
  };
13019
13018
  return /*#__PURE__*/React__default.createElement(Container$d, _extends$h({
13019
+ ref: containerRef,
13020
13020
  direction: labelPosition,
13021
13021
  className: className,
13022
13022
  style: style,
@@ -13025,11 +13025,10 @@ var CheckBoxInput = /*#__PURE__*/React__default.forwardRef(function (props, ref)
13025
13025
  spaceBetween: spaceBetween,
13026
13026
  tabIndex: -1,
13027
13027
  readOnly: readOnly,
13028
- onClick: onClick,
13029
- ref: containerRef
13028
+ onClick: onClick
13030
13029
  }, themeProps), checked == true || checked == false ? /*#__PURE__*/React__default.createElement("input", _extends$h({
13031
- type: "checkbox",
13032
13030
  ref: ref,
13031
+ type: "checkbox",
13033
13032
  tabIndex: tabIndex,
13034
13033
  onBlur: handleOnBlur,
13035
13034
  onFocus: handleOnFocus,
@@ -13037,8 +13036,8 @@ var CheckBoxInput = /*#__PURE__*/React__default.forwardRef(function (props, ref)
13037
13036
  onChange: onChange,
13038
13037
  disabled: disabled || readOnly
13039
13038
  }, rest)) : /*#__PURE__*/React__default.createElement("input", _extends$h({
13040
- type: "checkbox",
13041
13039
  ref: ref,
13040
+ type: "checkbox",
13042
13041
  tabIndex: tabIndex,
13043
13042
  onBlur: handleOnBlur,
13044
13043
  onFocus: handleOnFocus,
@@ -13108,7 +13107,6 @@ CheckBoxInput.defaultProps = {
13108
13107
  CheckBoxInput.propTypes = {
13109
13108
  containerRef: PropTypes.any,
13110
13109
  id: PropTypes.any,
13111
- name: PropTypes.string,
13112
13110
  defaultChecked: PropTypes.bool,
13113
13111
  checked: PropTypes.bool,
13114
13112
  disabled: PropTypes.bool,
package/lib/index.js CHANGED
@@ -12960,7 +12960,7 @@ var getDisabledBackgroundCss = function getDisabledBackgroundCss(theme) {
12960
12960
  return "\n background-color: ".concat(bgColorRgba, ";\n ");
12961
12961
  };
12962
12962
 
12963
- var _excluded$1p = ["containerRef", "id", "name", "checked", "defaultChecked", "indeterminate", "disabled", "readOnly", "label", "labelPosition", "tabIndex", "spaceBetween", "customCheckmark", "onChange", "onFocus", "onBlur", "onClick", "color", "size", "className", "style", "children"];
12963
+ var _excluded$1p = ["containerRef", "id", "checked", "defaultChecked", "indeterminate", "disabled", "readOnly", "label", "labelPosition", "tabIndex", "spaceBetween", "customCheckmark", "onChange", "onFocus", "onBlur", "onClick", "color", "size", "className", "style", "children"];
12964
12964
  var _templateObject$1q;
12965
12965
  var getLabelDirection$2 = function getLabelDirection(direction) {
12966
12966
  if (direction == "left") return "row-reverse";
@@ -13023,7 +13023,6 @@ var Container$d = newStyled.label(_templateObject$1q || (_templateObject$1q = _t
13023
13023
  var CheckBoxInput = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
13024
13024
  var containerRef = props.containerRef;
13025
13025
  props.id;
13026
- props.name;
13027
13026
  var checked = props.checked,
13028
13027
  defaultChecked = props.defaultChecked;
13029
13028
  props.indeterminate;
@@ -13066,6 +13065,7 @@ var CheckBoxInput = /*#__PURE__*/React__default["default"].forwardRef(function (
13066
13065
  if (onFocus) onFocus(e);
13067
13066
  };
13068
13067
  return /*#__PURE__*/React__default["default"].createElement(Container$d, _extends__default$1["default"]({
13068
+ ref: containerRef,
13069
13069
  direction: labelPosition,
13070
13070
  className: className,
13071
13071
  style: style,
@@ -13074,11 +13074,10 @@ var CheckBoxInput = /*#__PURE__*/React__default["default"].forwardRef(function (
13074
13074
  spaceBetween: spaceBetween,
13075
13075
  tabIndex: -1,
13076
13076
  readOnly: readOnly,
13077
- onClick: onClick,
13078
- ref: containerRef
13077
+ onClick: onClick
13079
13078
  }, themeProps), checked == true || checked == false ? /*#__PURE__*/React__default["default"].createElement("input", _extends__default$1["default"]({
13080
- type: "checkbox",
13081
13079
  ref: ref,
13080
+ type: "checkbox",
13082
13081
  tabIndex: tabIndex,
13083
13082
  onBlur: handleOnBlur,
13084
13083
  onFocus: handleOnFocus,
@@ -13086,8 +13085,8 @@ var CheckBoxInput = /*#__PURE__*/React__default["default"].forwardRef(function (
13086
13085
  onChange: onChange,
13087
13086
  disabled: disabled || readOnly
13088
13087
  }, rest)) : /*#__PURE__*/React__default["default"].createElement("input", _extends__default$1["default"]({
13089
- type: "checkbox",
13090
13088
  ref: ref,
13089
+ type: "checkbox",
13091
13090
  tabIndex: tabIndex,
13092
13091
  onBlur: handleOnBlur,
13093
13092
  onFocus: handleOnFocus,
@@ -13157,7 +13156,6 @@ CheckBoxInput.defaultProps = {
13157
13156
  CheckBoxInput.propTypes = {
13158
13157
  containerRef: PropTypes__default["default"].any,
13159
13158
  id: PropTypes__default["default"].any,
13160
- name: PropTypes__default["default"].string,
13161
13159
  defaultChecked: PropTypes__default["default"].bool,
13162
13160
  checked: PropTypes__default["default"].bool,
13163
13161
  disabled: PropTypes__default["default"].bool,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
3
  "type": "module",
4
- "version": "3.0.7",
4
+ "version": "3.0.8",
5
5
  "description": "component library",
6
6
  "main": "lib/index.js",
7
7
  "module": "lib/index.esm.js",