@northlight/ui 2.43.2 → 2.43.4

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.
@@ -6315,6 +6315,7 @@ var __objRest$x = (source, exclude) => {
6315
6315
  };
6316
6316
  const DatePicker = (props) => {
6317
6317
  const {
6318
+ "data-testid": dataTestId,
6318
6319
  isDisabled,
6319
6320
  isClearable = true,
6320
6321
  resetDate,
@@ -6511,7 +6512,7 @@ const DatePicker = (props) => {
6511
6512
  closeOnBlur: false,
6512
6513
  placement: "bottom-end",
6513
6514
  children: [
6514
- /* @__PURE__ */ jsx(PopoverAnchor, { children: /* @__PURE__ */ jsxs(HStack, { minW: 56, children: [
6515
+ /* @__PURE__ */ jsx(PopoverAnchor, { children: /* @__PURE__ */ jsxs(HStack, { minW: 56, "data-testid": dataTestId, children: [
6515
6516
  /* @__PURE__ */ jsxs(
6516
6517
  InputGroup,
6517
6518
  {
@@ -6535,7 +6536,7 @@ const DatePicker = (props) => {
6535
6536
  isDisabled,
6536
6537
  isInvalid,
6537
6538
  variant,
6538
- children: /* @__PURE__ */ jsx(Box, { paddingInlineStart: "1a", paddingInlineEnd: 10, children: /* @__PURE__ */ jsx(
6539
+ children: /* @__PURE__ */ jsx(Box, { paddingInlineStart: "1a", "data-testid": "date-picker-input-field", paddingInlineEnd: 10, children: /* @__PURE__ */ jsx(
6539
6540
  DateField,
6540
6541
  __spreadProps$j(__spreadValues$D({}, restFieldProps), {
6541
6542
  id: fieldId,
@@ -6566,6 +6567,7 @@ const DatePicker = (props) => {
6566
6567
  {
6567
6568
  sx: { height: "100%", paddingRight: "1" },
6568
6569
  zIndex: 0,
6570
+ "data-testid": "date-picker-trigger",
6569
6571
  children: /* @__PURE__ */ jsx(
6570
6572
  Trigger,
6571
6573
  {
@@ -7399,7 +7401,7 @@ const DateRangePicker = (props) => {
7399
7401
  dialogProps,
7400
7402
  calendarProps
7401
7403
  } = useDateRangePicker(
7402
- __spreadValues$z({
7404
+ {
7403
7405
  onChange: (date) => {
7404
7406
  onChangeCallback({
7405
7407
  startDate: date == null ? void 0 : date.start.toString(),
@@ -7417,7 +7419,7 @@ const DateRangePicker = (props) => {
7417
7419
  startName,
7418
7420
  endName,
7419
7421
  "aria-label": "Date range picker"
7420
- }, !isNil(dataTestId) && { "data-testid": dataTestId }),
7422
+ },
7421
7423
  state,
7422
7424
  ref
7423
7425
  );
@@ -7597,7 +7599,7 @@ const DateRangePicker = (props) => {
7597
7599
  closeOnBlur: false,
7598
7600
  placement: "bottom-start",
7599
7601
  children: [
7600
- /* @__PURE__ */ jsx(PopoverAnchor, { children: /* @__PURE__ */ jsxs(HStack, { children: [
7602
+ /* @__PURE__ */ jsx(PopoverAnchor, { children: /* @__PURE__ */ jsxs(HStack, { "data-testid": dataTestId, children: [
7601
7603
  /* @__PURE__ */ jsxs(
7602
7604
  InputGroup,
7603
7605
  {
@@ -7621,7 +7623,7 @@ const DateRangePicker = (props) => {
7621
7623
  isDisabled,
7622
7624
  isInvalid,
7623
7625
  variant,
7624
- children: /* @__PURE__ */ jsxs(HStack, { paddingInlineStart: "1a", paddingInlineEnd: 10, children: [
7626
+ children: /* @__PURE__ */ jsxs(HStack, { paddingInlineStart: "1a", "data-testid": "daterange-picker-input-field", paddingInlineEnd: 10, children: [
7625
7627
  /* @__PURE__ */ jsx(
7626
7628
  DateField,
7627
7629
  __spreadProps$h(__spreadValues$z({}, restStartFieldProps), {
@@ -7673,7 +7675,7 @@ const DateRangePicker = (props) => {
7673
7675
  ] })
7674
7676
  }
7675
7677
  ),
7676
- /* @__PURE__ */ jsx(InputRightElement, { sx: { height: "100%", paddingRight: "1" }, children: /* @__PURE__ */ jsx(
7678
+ /* @__PURE__ */ jsx(InputRightElement, { "data-test-id": "daterange-picker-trigger", sx: { height: "100%", paddingRight: "1" }, children: /* @__PURE__ */ jsx(
7677
7679
  Trigger,
7678
7680
  {
7679
7681
  id: buttonId,