tp-react-elements 2.0.0 → 2.0.1

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,3 +1,3 @@
1
- var Month = {};
1
+ var InputRangeField = {};
2
2
 
3
- export { Month as __exports };
3
+ export { InputRangeField as __exports };
@@ -1,3 +1,3 @@
1
- var DateInput = {};
1
+ var Month = {};
2
2
 
3
- export { DateInput as __exports };
3
+ export { Month as __exports };
@@ -1,3 +1,3 @@
1
- var InputRangeField = {};
1
+ var DateInput = {};
2
2
 
3
- export { InputRangeField as __exports };
3
+ export { DateInput as __exports };
@@ -1,3 +1,3 @@
1
- var DateRange = {};
1
+ var DateRangePicker = {};
2
2
 
3
- export { DateRange as __exports };
3
+ export { DateRangePicker as __exports };
@@ -1,3 +1,3 @@
1
- var Calendar = {};
1
+ var DefinedRange = {};
2
2
 
3
- export { Calendar as __exports };
3
+ export { DefinedRange as __exports };
@@ -1,3 +1,3 @@
1
- var DateRangePicker = {};
1
+ var DateRange = {};
2
2
 
3
- export { DateRangePicker as __exports };
3
+ export { DateRange as __exports };
@@ -1,3 +1,3 @@
1
- var DefinedRange = {};
1
+ var Calendar = {};
2
2
 
3
- export { DefinedRange as __exports };
3
+ export { Calendar as __exports };
@@ -210,21 +210,45 @@ const SingleSelectSearchApi = ({ props, variant, minSearchLength = 3, debounceMs
210
210
  // pinned to the viewport's top-left corner when this field
211
211
  // sits inside an `overflow: hidden` ancestor (e.g. a table
212
212
  // cell in material-react-table / GenericPaginatedGrid).
213
- // `disablePortal: false` (the default) lets the tooltip
214
- // escape the clipping ancestor by portal-rendering to
215
- // `document.body`, while the `preventOverflow` / `flip`
216
- // modifiers keep it correctly anchored to the input and
217
- // flip placement when there isn't room above.
213
+ //
214
+ // ROOT CAUSE: Popper.js ships a built-in `hide` modifier that
215
+ // runs `detectOverflow` against the `clippingParents` boundary.
216
+ // Because our reference element (the input) sits inside an
217
+ // `overflow: hidden` table cell, Popper decides the reference
218
+ // is "hidden" relative to that clipping boundary and collapses
219
+ // the popper to `inset: 0 auto auto 0` (the body's top-left
220
+ // origin) — regardless of `placement`/`offset`/`preventOverflow`
221
+ // configuration. That's the (0,0) pin we were seeing.
222
+ //
223
+ // FIX: explicitly disable the `hide` modifier (we don't want
224
+ // "hide when clipped" behaviour — we want the tooltip to
225
+ // escape the clipping ancestor instead), and measure overflow
226
+ // against the `viewport` (via `rootBoundary`) rather than the
227
+ // clipping table cell, since the whole point is to stay
228
+ // visible in the viewport even when the anchor is inside a
229
+ // clipped container. `disablePortal: false` (the default)
230
+ // portal-renders the tooltip to `document.body` so it can
231
+ // visually escape the clipping ancestor.
218
232
  slotProps: {
219
233
  popper: {
220
234
  sx: { zIndex: 20001 },
221
235
  modifiers: [
236
+ { name: 'hide', enabled: false },
222
237
  { name: 'offset', options: { offset: [0, 6] } },
223
238
  {
224
239
  name: 'preventOverflow',
225
- options: { boundary: 'clippingParents', altAxis: true, padding: 8 },
240
+ options: {
241
+ boundary: 'clippingParents',
242
+ rootBoundary: 'viewport',
243
+ altAxis: true,
244
+ padding: 8,
245
+ },
246
+ },
247
+ {
248
+ name: 'flip',
249
+ enabled: true,
250
+ options: { rootBoundary: 'viewport', fallbackPlacements: ['bottom-start', 'top-start', 'right', 'left'] },
226
251
  },
227
- { name: 'flip', enabled: true },
228
252
  ],
229
253
  },
230
254
  }, children: jsx(TextField, { ...params, error: isError && !formValue, label: variant !== 'standard'
@@ -1,4 +1,4 @@
1
- import { __exports as Calendar } from '../../../../../_virtual/index.esm5.js';
1
+ import { __exports as Calendar } from '../../../../../_virtual/index.esm7.js';
2
2
  import React__default from 'react';
3
3
  import { __require as requirePropTypes } from '../../../../prop-types/index.esm.js';
4
4
  import { __require as requireDayCell } from '../DayCell/index.esm.js';
@@ -1,4 +1,4 @@
1
- import { __exports as DateInput } from '../../../../../_virtual/index.esm13.js';
1
+ import { __exports as DateInput } from '../../../../../_virtual/index.esm14.js';
2
2
  import React__default from 'react';
3
3
  import { __require as requirePropTypes } from '../../../../prop-types/index.esm.js';
4
4
  import { __require as requireClassnames } from '../../../../classnames/index.esm.js';
@@ -1,4 +1,4 @@
1
- import { __exports as DateRange } from '../../../../../_virtual/index.esm4.js';
1
+ import { __exports as DateRange } from '../../../../../_virtual/index.esm6.js';
2
2
  import React__default from 'react';
3
3
  import { __require as requirePropTypes } from '../../../../prop-types/index.esm.js';
4
4
  import { __require as requireCalendar } from '../Calendar/index.esm.js';
@@ -1,4 +1,4 @@
1
- import { __exports as DateRangePicker } from '../../../../../_virtual/index.esm6.js';
1
+ import { __exports as DateRangePicker } from '../../../../../_virtual/index.esm4.js';
2
2
  import React__default from 'react';
3
3
  import { __require as requirePropTypes } from '../../../../prop-types/index.esm.js';
4
4
  import { __require as requireDateRange } from '../DateRange/index.esm.js';
@@ -1,4 +1,4 @@
1
- import { __exports as DefinedRange } from '../../../../../_virtual/index.esm7.js';
1
+ import { __exports as DefinedRange } from '../../../../../_virtual/index.esm5.js';
2
2
  import React__default from 'react';
3
3
  import { __require as requirePropTypes } from '../../../../prop-types/index.esm.js';
4
4
  import { __require as requireStyles } from '../../styles.esm.js';
@@ -1,4 +1,4 @@
1
- import { __exports as InputRangeField } from '../../../../../_virtual/index.esm14.js';
1
+ import { __exports as InputRangeField } from '../../../../../_virtual/index.esm12.js';
2
2
  import React__default from 'react';
3
3
  import { __require as requirePropTypes } from '../../../../prop-types/index.esm.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { __exports as Month } from '../../../../../_virtual/index.esm12.js';
1
+ import { __exports as Month } from '../../../../../_virtual/index.esm13.js';
2
2
  import React__default from 'react';
3
3
  import { __require as requirePropTypes } from '../../../../prop-types/index.esm.js';
4
4
  import { __require as requireDayCell } from '../DayCell/index.esm.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tp-react-elements",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "React form components library built with React Hook Form and Yup",