@thecb/components 6.3.0 → 6.3.1-beta.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/dist/index.cjs.js CHANGED
@@ -44295,7 +44295,7 @@ var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
44295
44295
 
44296
44296
  */
44297
44297
 
44298
- var useOutsideClickHook$1 = function useOutsideClickHook(handler) {
44298
+ var useOutsideClickHook = function useOutsideClickHook(handler) {
44299
44299
  var ref = React.useRef();
44300
44300
  React.useEffect(function () {
44301
44301
  }, [ref]);
@@ -44310,7 +44310,7 @@ var index$4 = /*#__PURE__*/Object.freeze({
44310
44310
  general: general,
44311
44311
  theme: themeUtils,
44312
44312
  useFocusInvalidInput: useFocusInvalidInput,
44313
- useOutsideClick: useOutsideClickHook$1
44313
+ useOutsideClick: useOutsideClickHook
44314
44314
  });
44315
44315
 
44316
44316
  var hoverColor$5 = "#116285";
@@ -44382,9 +44382,7 @@ var Popover = function Popover(_ref) {
44382
44382
  }
44383
44383
  };
44384
44384
 
44385
- var triggerRef = useOutsideClickHook(function () {
44386
- return handleTogglePopover(false);
44387
- });
44385
+ var triggerRef = useOutsideClickHook();
44388
44386
  return /*#__PURE__*/React__default.createElement(Box, {
44389
44387
  padding: "0",
44390
44388
  extraStyles: "position: relative; ".concat(extraStyles)
@@ -46038,10 +46036,10 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
46038
46036
  },
46039
46037
  on: {
46040
46038
  backgroundColor: themeValues.white,
46041
- right: "2px",
46039
+ right: "1px",
46042
46040
  top: "2px",
46043
46041
  bottom: "2px",
46044
- left: "24px",
46042
+ left: "25px",
46045
46043
  transition: {
46046
46044
  ease: "backIn"
46047
46045
  }
@@ -46093,7 +46091,8 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
46093
46091
  extraStyles: labelLeft ? themeValues.leftLabelStyles : themeValues.rightLabelStyles
46094
46092
  }, /*#__PURE__*/React__default.createElement(Center, null, /*#__PURE__*/React__default.createElement(Cluster, {
46095
46093
  justify: "stretch",
46096
- align: "center"
46094
+ align: "center",
46095
+ overflow: "visible"
46097
46096
  }, /*#__PURE__*/React__default.createElement(Cover, {
46098
46097
  minHeight: "100%",
46099
46098
  singleChild: true