@box/blueprint-web 7.25.4 → 7.27.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.
@@ -49,13 +49,14 @@ const Content = /*#__PURE__*/React__default.forwardRef(function Content(props, r
49
49
  children,
50
50
  className,
51
51
  elevation = 'dropshadow-3',
52
+ sideOffset = 4,
52
53
  ...rest
53
54
  } = props;
54
55
  return jsx(RadixTooltip.Content, {
55
56
  ...rest,
56
57
  ref: ref,
57
58
  className: clsx(styles.content, styles.card, className),
58
- sideOffset: 4,
59
+ sideOffset: sideOffset,
59
60
  children: jsx(Card, {
60
61
  elevation: elevation,
61
62
  children: children
@@ -6,6 +6,8 @@ export interface CardTooltipContentProps extends RadixTooltip.TooltipContentProp
6
6
  * @default dropshadow-3
7
7
  */
8
8
  elevation?: CardProps['elevation'];
9
+ /** The distance in pixels from the trigger. */
10
+ sideOffset?: RadixTooltip.TooltipContentProps['sideOffset'];
9
11
  }
10
12
  export interface PropsOnlyChildren {
11
13
  children?: React.ReactNode;
@@ -162,7 +162,7 @@ export interface ComboboxBaseProps<Multiple extends boolean, FreeInput extends b
162
162
  /**
163
163
  * The DOM element where the Combobox should be portal-ed into. If not provided, the Combobox will be appended to the document body.
164
164
  */
165
- portalElement?: HTMLElement;
165
+ portalElement?: HTMLElement | (() => HTMLElement);
166
166
  /**
167
167
  * When set to `true`, the content element will be unmounted and removed from the DOM when it's hidden.
168
168
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/blueprint-web",
3
- "version": "7.25.4",
3
+ "version": "7.27.0",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {
@@ -63,7 +63,7 @@
63
63
  "react-stately": "^3.31.1",
64
64
  "tsx": "^4.16.5"
65
65
  },
66
- "gitHead": "859c17647948f935ca4b9fd66f4d1ad4aec6a495",
66
+ "gitHead": "218b8d48d92f23e2ce4fc2be6c37ebe96cab6f52",
67
67
  "module": "lib-esm/index.js",
68
68
  "main": "lib-esm/index.js",
69
69
  "exports": {