@box/blueprint-web 6.1.2 → 6.2.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.
@@ -30,6 +30,7 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
30
30
  isDisabled,
31
31
  calendarAriaLabel,
32
32
  nextMonthAriaLabel,
33
+ portalElement,
33
34
  previousMonthAriaLabel,
34
35
  ...rest
35
36
  } = props;
@@ -167,6 +168,7 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
167
168
  })]
168
169
  })
169
170
  }), jsx(RadixPopover.Portal, {
171
+ container: portalElement,
170
172
  children: jsx(RadixPopover.Content, {
171
173
  align: "start",
172
174
  className: styles.datePickerPopoverContent,
@@ -23,6 +23,10 @@ export interface DatePickerPropsBase extends Omit<RACDatePickerProps<DateValue>,
23
23
  * controls whether calendar dialog is initially opened
24
24
  */
25
25
  defaultOpen?: boolean;
26
+ /**
27
+ * The DOM element where the Calendar should be portal-ed into. If not provided, the Calendar will be appended to the document body.
28
+ */
29
+ portalElement?: HTMLElement;
26
30
  }
27
31
  export type DatePickerProps = Modify<DatePickerPropsBase, {
28
32
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/blueprint-web",
3
- "version": "6.1.2",
3
+ "version": "6.2.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -57,7 +57,7 @@
57
57
  "devDependencies": {
58
58
  "@box/storybook-utils": "^0.0.2"
59
59
  },
60
- "gitHead": "7c9bf84d2d5567526d488933c59e042040560c58",
60
+ "gitHead": "000a8ea7add0eb83c8ae32a73df867c700f31afd",
61
61
  "module": "lib-esm/index.js",
62
62
  "type": "module",
63
63
  "main": "lib-esm/index.js",