@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.
- package/dist/es/northlight.d.ts +1 -0
- package/dist/es/northlight.js +10 -8
- package/dist/es/northlight.js.map +1 -1
- package/dist/sandbox/index.cjs +9 -7
- package/dist/sandbox/index.cjs.map +1 -1
- package/dist/sandbox/index.js +9 -7
- package/dist/sandbox/index.js.map +1 -1
- package/dist/umd/northlight.cjs +10 -8
- package/dist/umd/northlight.cjs.map +1 -1
- package/dist/umd/northlight.min.cjs +3 -3
- package/dist/umd/northlight.min.cjs.map +1 -1
- package/lib/components/date-picker/components/date-field/types.ts +3 -8
- package/lib/components/date-picker/date-picker/date-picker.tsx +4 -2
- package/lib/components/date-picker/date-picker/date-range-picker.tsx +3 -4
- package/lib/components/date-picker/types.ts +3 -1
- package/package.json +2 -2
package/dist/umd/northlight.cjs
CHANGED
|
@@ -7305,6 +7305,7 @@
|
|
|
7305
7305
|
};
|
|
7306
7306
|
const DatePicker = (props) => {
|
|
7307
7307
|
const {
|
|
7308
|
+
"data-testid": dataTestId,
|
|
7308
7309
|
isDisabled,
|
|
7309
7310
|
isClearable = true,
|
|
7310
7311
|
resetDate,
|
|
@@ -7501,7 +7502,7 @@
|
|
|
7501
7502
|
closeOnBlur: false,
|
|
7502
7503
|
placement: "bottom-end"
|
|
7503
7504
|
},
|
|
7504
|
-
/* @__PURE__ */ React.createElement(react.PopoverAnchor, null, /* @__PURE__ */ React.createElement(react.HStack, { minW: 56 }, /* @__PURE__ */ React.createElement(
|
|
7505
|
+
/* @__PURE__ */ React.createElement(react.PopoverAnchor, null, /* @__PURE__ */ React.createElement(react.HStack, { minW: 56, "data-testid": dataTestId }, /* @__PURE__ */ React.createElement(
|
|
7505
7506
|
react.InputGroup,
|
|
7506
7507
|
{
|
|
7507
7508
|
role: groupRole,
|
|
@@ -7525,7 +7526,7 @@
|
|
|
7525
7526
|
isInvalid,
|
|
7526
7527
|
variant
|
|
7527
7528
|
},
|
|
7528
|
-
/* @__PURE__ */ React.createElement(react.Box, { paddingInlineStart: "1a", paddingInlineEnd: 10 }, /* @__PURE__ */ React.createElement(
|
|
7529
|
+
/* @__PURE__ */ React.createElement(react.Box, { paddingInlineStart: "1a", "data-testid": "date-picker-input-field", paddingInlineEnd: 10 }, /* @__PURE__ */ React.createElement(
|
|
7529
7530
|
DateField,
|
|
7530
7531
|
__spreadProps$h(__spreadValues$1v({}, restFieldProps), {
|
|
7531
7532
|
id: fieldId,
|
|
@@ -7554,7 +7555,8 @@
|
|
|
7554
7555
|
react.InputRightElement,
|
|
7555
7556
|
{
|
|
7556
7557
|
sx: { height: "100%", paddingRight: "1" },
|
|
7557
|
-
zIndex: 0
|
|
7558
|
+
zIndex: 0,
|
|
7559
|
+
"data-testid": "date-picker-trigger"
|
|
7558
7560
|
},
|
|
7559
7561
|
/* @__PURE__ */ React.createElement(
|
|
7560
7562
|
Trigger,
|
|
@@ -8346,7 +8348,7 @@
|
|
|
8346
8348
|
dialogProps,
|
|
8347
8349
|
calendarProps
|
|
8348
8350
|
} = datepicker.useDateRangePicker(
|
|
8349
|
-
|
|
8351
|
+
{
|
|
8350
8352
|
onChange: (date) => {
|
|
8351
8353
|
onChangeCallback({
|
|
8352
8354
|
startDate: date == null ? void 0 : date.start.toString(),
|
|
@@ -8364,7 +8366,7 @@
|
|
|
8364
8366
|
startName,
|
|
8365
8367
|
endName,
|
|
8366
8368
|
"aria-label": "Date range picker"
|
|
8367
|
-
},
|
|
8369
|
+
},
|
|
8368
8370
|
state,
|
|
8369
8371
|
ref
|
|
8370
8372
|
);
|
|
@@ -8544,7 +8546,7 @@
|
|
|
8544
8546
|
closeOnBlur: false,
|
|
8545
8547
|
placement: "bottom-start"
|
|
8546
8548
|
},
|
|
8547
|
-
/* @__PURE__ */ React.createElement(react.PopoverAnchor, null, /* @__PURE__ */ React.createElement(react.HStack,
|
|
8549
|
+
/* @__PURE__ */ React.createElement(react.PopoverAnchor, null, /* @__PURE__ */ React.createElement(react.HStack, { "data-testid": dataTestId }, /* @__PURE__ */ React.createElement(
|
|
8548
8550
|
react.InputGroup,
|
|
8549
8551
|
{
|
|
8550
8552
|
role: groupRole,
|
|
@@ -8568,7 +8570,7 @@
|
|
|
8568
8570
|
isInvalid,
|
|
8569
8571
|
variant
|
|
8570
8572
|
},
|
|
8571
|
-
/* @__PURE__ */ React.createElement(react.HStack, { paddingInlineStart: "1a", paddingInlineEnd: 10 }, /* @__PURE__ */ React.createElement(
|
|
8573
|
+
/* @__PURE__ */ React.createElement(react.HStack, { paddingInlineStart: "1a", "data-testid": "daterange-picker-input-field", paddingInlineEnd: 10 }, /* @__PURE__ */ React.createElement(
|
|
8572
8574
|
DateField,
|
|
8573
8575
|
__spreadProps$g(__spreadValues$1r({}, restStartFieldProps), {
|
|
8574
8576
|
id: startFieldId,
|
|
@@ -8615,7 +8617,7 @@
|
|
|
8615
8617
|
})
|
|
8616
8618
|
))
|
|
8617
8619
|
),
|
|
8618
|
-
/* @__PURE__ */ React.createElement(react.InputRightElement, { sx: { height: "100%", paddingRight: "1" } }, /* @__PURE__ */ React.createElement(
|
|
8620
|
+
/* @__PURE__ */ React.createElement(react.InputRightElement, { "data-test-id": "daterange-picker-trigger", sx: { height: "100%", paddingRight: "1" } }, /* @__PURE__ */ React.createElement(
|
|
8619
8621
|
Trigger,
|
|
8620
8622
|
{
|
|
8621
8623
|
id: buttonId,
|