@spscommerce/ds-react 8.46.5 → 8.46.6

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.
@@ -14,10 +14,11 @@ export type SpsTooltipProps = React.PropsWithChildren<SpsGlobalPropTypes & {
14
14
  isShown?: TooltipVisibility;
15
15
  kind?: TooltipKind;
16
16
  offsets?: number[];
17
+ altOffsets?: number[];
17
18
  onDeferred?: () => void;
18
19
  position?: Position;
19
20
  altPosition?: Position;
20
21
  showOn?: TooltipShowTrigger;
21
22
  title?: string | React.ReactNode;
22
23
  }> & React.HTMLAttributes<HTMLDivElement>;
23
- export declare function SpsTooltip({ children, className, for: forProp, "data-testid": testId, hideDelay, isShown, kind, offsets, onDeferred, position, altPosition, showOn, style, title, unsafelyReplaceClassName, }: SpsTooltipProps): React.ReactPortal;
24
+ export declare function SpsTooltip({ children, className, for: forProp, "data-testid": testId, hideDelay, isShown, kind, offsets, altOffsets, onDeferred, position, altPosition, showOn, style, title, unsafelyReplaceClassName, }: SpsTooltipProps): React.ReactPortal;
@@ -1,11 +1,12 @@
1
1
  import type { CSSProperties, RefObject } from "react";
2
2
  import { Position } from "@spscommerce/ds-shared";
3
3
  export declare function flipPosition(position: Position): Position;
4
- export declare function getPosition(subjectRef: RefObject<HTMLElement>, targetRef: RefObject<HTMLElement>, position: Position, { altPosition, setMinWidth, setWidth, parentElementRef, fixed, offsets, }: {
4
+ export declare function getPosition(subjectRef: RefObject<HTMLElement>, targetRef: RefObject<HTMLElement>, position: Position, { altPosition, setMinWidth, setWidth, parentElementRef, fixed, offsets, altOffsets, }: {
5
5
  altPosition?: Position;
6
6
  setMinWidth?: boolean;
7
7
  setWidth?: boolean;
8
8
  parentElementRef?: RefObject<HTMLElement>;
9
9
  fixed?: boolean;
10
10
  offsets?: [number, number];
11
+ altOffsets?: [number, number];
11
12
  }): [CSSProperties, boolean];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spscommerce/ds-react",
3
3
  "description": "SPS Design System React components",
4
- "version": "8.46.5",
4
+ "version": "8.46.6",
5
5
  "author": "SPS Commerce",
6
6
  "license": "UNLICENSED",
7
7
  "repository": "https://github.com/spscommerce/woodland/tree/main/packages/@spscommerce/ds-react",
@@ -46,12 +46,12 @@
46
46
  "moment-timezone": "^0.6.0",
47
47
  "react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
48
48
  "react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
49
- "@sps-woodland/illustrations": "8.46.5",
50
- "@sps-woodland/tabs": "8.46.5",
51
- "@spscommerce/ds-colors": "8.46.5",
52
- "@spscommerce/ds-shared": "8.46.5",
53
- "@spscommerce/i18n": "8.46.5",
54
- "@spscommerce/positioning": "8.46.5"
49
+ "@sps-woodland/illustrations": "8.46.6",
50
+ "@sps-woodland/tabs": "8.46.6",
51
+ "@spscommerce/ds-colors": "8.46.6",
52
+ "@spscommerce/ds-shared": "8.46.6",
53
+ "@spscommerce/i18n": "8.46.6",
54
+ "@spscommerce/positioning": "8.46.6"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@react-stately/collections": "3.12.10",
@@ -71,13 +71,13 @@
71
71
  "raf-stub": "3.0.0",
72
72
  "react": "16.14.0",
73
73
  "react-dom": "16.14.0",
74
- "@sps-woodland/illustrations": "8.46.5",
75
- "@sps-woodland/tabs": "8.46.5",
76
- "@spscommerce/ds-colors": "8.46.5",
77
- "@spscommerce/ds-shared": "8.46.5",
78
- "@spscommerce/i18n": "8.46.5",
79
- "@spscommerce/positioning": "8.46.5",
80
- "test": "8.46.5"
74
+ "@sps-woodland/illustrations": "8.46.6",
75
+ "@sps-woodland/tabs": "8.46.6",
76
+ "@spscommerce/ds-colors": "8.46.6",
77
+ "@spscommerce/ds-shared": "8.46.6",
78
+ "@spscommerce/i18n": "8.46.6",
79
+ "@spscommerce/positioning": "8.46.6",
80
+ "test": "8.46.6"
81
81
  },
82
82
  "scripts": {
83
83
  "build": "pnpm run build:js && pnpm run build:types",