@northlight/ui 2.38.2 → 2.38.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.
@@ -1042,6 +1042,7 @@ interface DateRangePickerProps extends Omit<AriaDateRangePickerProps<DateValue>,
1042
1042
  * Function to be called when the user cancels the date change
1043
1043
  */
1044
1044
  onCancelChanges?: () => void;
1045
+ 'data-testid'?: string;
1045
1046
  }
1046
1047
  interface DatePickerFieldProps extends Omit<InputProps, 'onChange'>, InputFieldProps {
1047
1048
  name: string;
@@ -7978,7 +7978,8 @@ const DateRangePicker = (props) => {
7978
7978
  savedDateRange,
7979
7979
  defaultDateRange,
7980
7980
  CustomResetButton,
7981
- onCancelChanges
7981
+ onCancelChanges,
7982
+ "data-testid": dataTestId
7982
7983
  } = props;
7983
7984
  const ref = useRef();
7984
7985
  const { group } = useMultiStyleConfig("DatePicker");
@@ -8014,7 +8015,7 @@ const DateRangePicker = (props) => {
8014
8015
  dialogProps,
8015
8016
  calendarProps
8016
8017
  } = useDateRangePicker(
8017
- {
8018
+ __spreadValues$1o({
8018
8019
  onChange: (date) => {
8019
8020
  onChangeCallback({
8020
8021
  startDate: date == null ? void 0 : date.start.toString(),
@@ -8032,7 +8033,7 @@ const DateRangePicker = (props) => {
8032
8033
  startName: props.startName,
8033
8034
  endName: props.endName,
8034
8035
  "aria-label": "Date range picker"
8035
- },
8036
+ }, !isNil(dataTestId) && { "data-testid": dataTestId }),
8036
8037
  state,
8037
8038
  ref
8038
8039
  );