@box/blueprint-web 12.0.0 → 12.1.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.
@@ -127,6 +127,7 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
127
127
  asChild: true,
128
128
  children: jsxs(Group, {
129
129
  className: clsx(styles.group),
130
+ "data-target-id": rest.dataTargetId,
130
131
  children: [jsx("div", {
131
132
  className: clsx(styles.groupContainer, {
132
133
  [styles.error]: hasError
@@ -1,4 +1,4 @@
1
- import { type DatePickerProps as RACDatePickerProps, type DateValue } from 'react-aria-components';
1
+ import { type DateValue, type DatePickerProps as RACDatePickerProps } from 'react-aria-components';
2
2
  import { type CalendarBase } from '../primitives/calendar/types';
3
3
  import { type InputValueProps } from '../types/input-value-props';
4
4
  import { type Modify } from '../types/modify';
@@ -30,6 +30,10 @@ interface DatePickerPropsBase extends Omit<RACDatePickerProps<DateValue>, 'child
30
30
  * The DOM element where the Calendar should be portal-ed into. If not provided, the Calendar will be appended to the document body.
31
31
  */
32
32
  portalElement?: HTMLElement;
33
+ /**
34
+ * The data-target-id attribute value for the date input
35
+ */
36
+ dataTargetId?: string;
33
37
  }
34
38
  export type DatePickerProps = Modify<DatePickerPropsBase, InputValueProps<DateValue>> & CalendarBase;
35
39
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/blueprint-web",
3
- "version": "12.0.0",
3
+ "version": "12.1.0",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {