@indico-data/design-system 3.6.2 → 3.6.3

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,5 +1,5 @@
1
1
  import { CSSProperties } from 'react';
2
- import { PlacesType } from 'react-tooltip';
2
+ import { PlacesType, PositionStrategy } from 'react-tooltip';
3
3
  export interface TooltipProps {
4
4
  id: string;
5
5
  /** Whether the tooltip should be shown on click */
@@ -8,14 +8,16 @@ export interface TooltipProps {
8
8
  delayShow?: number;
9
9
  /** The delay in milliseconds before the tooltip is hidden */
10
10
  delayHide?: number;
11
- children: React.ReactNode;
12
11
  /** The placement of the tooltip */
13
12
  place?: PlacesType;
14
13
  /** The width of the tooltip */
15
14
  width?: CSSProperties['width'];
16
15
  /** The max width of the tooltip */
17
16
  maxWidth?: CSSProperties['maxWidth'];
17
+ /** The position strategy of the tooltip */
18
+ positionStrategy?: PositionStrategy;
18
19
  /** The content of the tooltip */
20
+ children: React.ReactNode;
19
21
  [key: string]: any;
20
22
  }
21
- export declare const Tooltip: ({ id, clickToShow, delayShow, delayHide, children, place, width, maxWidth, opacity, ...rest }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const Tooltip: ({ id, clickToShow, delayShow, delayHide, children, place, width, maxWidth, opacity, positionStrategy, ...rest }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
package/lib/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { DateRange, OnSelectHandler, Mode, CustomComponents, Matcher, Formatters
11
11
  export { DateRange } from 'react-day-picker';
12
12
  import { ColumnDef, Row as Row$1, SortingState } from '@tanstack/react-table';
13
13
  export { ColumnDef, SortingFn, SortingState, Column as TanstackTableColumnType, Row as TanstackTableRowType, Table as TanstackTableType, flexRender, getCoreRowModel, getSortedRowModel, useReactTable } from '@tanstack/react-table';
14
- import { PlacesType } from 'react-tooltip';
14
+ import { PlacesType, PositionStrategy } from 'react-tooltip';
15
15
  export { ToastContainer, toast } from 'react-toastify';
16
16
 
17
17
  declare const registerFontAwesomeIcons: (...icons: IconDefinition[]) => void;
@@ -943,17 +943,19 @@ interface TooltipProps {
943
943
  delayShow?: number;
944
944
  /** The delay in milliseconds before the tooltip is hidden */
945
945
  delayHide?: number;
946
- children: React.ReactNode;
947
946
  /** The placement of the tooltip */
948
947
  place?: PlacesType;
949
948
  /** The width of the tooltip */
950
949
  width?: CSSProperties['width'];
951
950
  /** The max width of the tooltip */
952
951
  maxWidth?: CSSProperties['maxWidth'];
952
+ /** The position strategy of the tooltip */
953
+ positionStrategy?: PositionStrategy;
953
954
  /** The content of the tooltip */
955
+ children: React.ReactNode;
954
956
  [key: string]: any;
955
957
  }
956
- declare const Tooltip: ({ id, clickToShow, delayShow, delayHide, children, place, width, maxWidth, opacity, ...rest }: TooltipProps) => react_jsx_runtime.JSX.Element;
958
+ declare const Tooltip: ({ id, clickToShow, delayShow, delayHide, children, place, width, maxWidth, opacity, positionStrategy, ...rest }: TooltipProps) => react_jsx_runtime.JSX.Element;
957
959
 
958
960
  interface PaginationProps {
959
961
  /** The total number of pages to be displayed */
package/lib/index.esm.js CHANGED
@@ -43092,7 +43092,7 @@ const h="react-tooltip-core-styles",w="react-tooltip-base-styles",b={core:!1,bas
43092
43092
  .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"});}));
43093
43093
 
43094
43094
  const Tooltip = (_a) => {
43095
- var { id, clickToShow, delayShow, delayHide, children, place = 'top', width = 'max-content', maxWidth, opacity = 1 } = _a, rest = __rest(_a, ["id", "clickToShow", "delayShow", "delayHide", "children", "place", "width", "maxWidth", "opacity"]);
43095
+ var { id, clickToShow, delayShow, delayHide, children, place = 'top', width = 'max-content', maxWidth, opacity = 1, positionStrategy = 'absolute' } = _a, rest = __rest(_a, ["id", "clickToShow", "delayShow", "delayHide", "children", "place", "width", "maxWidth", "opacity", "positionStrategy"]);
43096
43096
  return (jsx(M, Object.assign({ style: {
43097
43097
  backgroundColor: 'var(--pf-semantic-background-inverted)',
43098
43098
  color: 'var(--pf-semantic-font-inverted)',
@@ -43102,7 +43102,7 @@ const Tooltip = (_a) => {
43102
43102
  textWrap: 'wrap',
43103
43103
  wordWrap: 'break-word',
43104
43104
  zIndex: 1000,
43105
- }, className: "tooltip", id: id, place: place, openOnClick: clickToShow, delayShow: delayShow, delayHide: delayHide, opacity: opacity }, rest, { children: children })));
43105
+ }, className: "tooltip", id: id, place: place, openOnClick: clickToShow, delayShow: delayShow, delayHide: delayHide, opacity: opacity, positionStrategy: positionStrategy }, rest, { children: children })));
43106
43106
  };
43107
43107
 
43108
43108
  function BarSpinner(_a) {