@pinuts/bsr-uikit-relaunch 0.2.89 → 0.2.91

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.
@@ -1 +1 @@
1
- {"version":3,"file":"withFieldGroup.d.ts","sourceRoot":"","sources":["../../src/hooks/withFieldGroup.jsx"],"names":[],"mappings":";AAyCA,uDAAyC,UAAK,uBAkP7C;kBA1RwE,OAAO"}
1
+ {"version":3,"file":"withFieldGroup.d.ts","sourceRoot":"","sources":["../../src/hooks/withFieldGroup.jsx"],"names":[],"mappings":";AAyCA,uDAAyC,UAAK,uBA2O7C;kBAnRwE,OAAO"}
@@ -94,20 +94,13 @@ const withFieldGroup = FieldComponent => props => {
94
94
  if (tooltipRef.current) {
95
95
  const tooltipElement = tooltipRef.current;
96
96
  const rect = tooltipElement.getBoundingClientRect();
97
-
97
+ tooltipElement.classList.add('adjustRight' || '');
98
98
  // Adjust vertical position
99
99
  if (rect.bottom > 200) {
100
100
  tooltipElement.classList.remove('bottom' || '');
101
101
  } else {
102
102
  tooltipElement.classList.add('bottom' || '');
103
103
  }
104
-
105
- // Adjust horizontal position
106
- if (rect.right > window.innerWidth) {
107
- tooltipElement.classList.add('adjustRight' || '');
108
- } else {
109
- tooltipElement.classList.remove('adjustRight' || '');
110
- }
111
104
  }
112
105
  };
113
106
  if ((0, _isWindowAvailable.isWindowAvailable)()) {