@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/sandbox/index.cjs
CHANGED
|
@@ -6335,6 +6335,7 @@ var __objRest$x = (source, exclude) => {
|
|
|
6335
6335
|
};
|
|
6336
6336
|
const DatePicker = (props) => {
|
|
6337
6337
|
const {
|
|
6338
|
+
"data-testid": dataTestId,
|
|
6338
6339
|
isDisabled,
|
|
6339
6340
|
isClearable = true,
|
|
6340
6341
|
resetDate,
|
|
@@ -6531,7 +6532,7 @@ const DatePicker = (props) => {
|
|
|
6531
6532
|
closeOnBlur: false,
|
|
6532
6533
|
placement: "bottom-end",
|
|
6533
6534
|
children: [
|
|
6534
|
-
/* @__PURE__ */ jsxRuntime.jsx(react$2.PopoverAnchor, { children: /* @__PURE__ */ jsxRuntime.jsxs(react$2.HStack, { minW: 56, children: [
|
|
6535
|
+
/* @__PURE__ */ jsxRuntime.jsx(react$2.PopoverAnchor, { children: /* @__PURE__ */ jsxRuntime.jsxs(react$2.HStack, { minW: 56, "data-testid": dataTestId, children: [
|
|
6535
6536
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
6536
6537
|
react$2.InputGroup,
|
|
6537
6538
|
{
|
|
@@ -6555,7 +6556,7 @@ const DatePicker = (props) => {
|
|
|
6555
6556
|
isDisabled,
|
|
6556
6557
|
isInvalid,
|
|
6557
6558
|
variant,
|
|
6558
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(react$2.Box, { paddingInlineStart: "1a", paddingInlineEnd: 10, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6559
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(react$2.Box, { paddingInlineStart: "1a", "data-testid": "date-picker-input-field", paddingInlineEnd: 10, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6559
6560
|
DateField,
|
|
6560
6561
|
__spreadProps$j(__spreadValues$D({}, restFieldProps), {
|
|
6561
6562
|
id: fieldId,
|
|
@@ -6586,6 +6587,7 @@ const DatePicker = (props) => {
|
|
|
6586
6587
|
{
|
|
6587
6588
|
sx: { height: "100%", paddingRight: "1" },
|
|
6588
6589
|
zIndex: 0,
|
|
6590
|
+
"data-testid": "date-picker-trigger",
|
|
6589
6591
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6590
6592
|
Trigger,
|
|
6591
6593
|
{
|
|
@@ -7419,7 +7421,7 @@ const DateRangePicker = (props) => {
|
|
|
7419
7421
|
dialogProps,
|
|
7420
7422
|
calendarProps
|
|
7421
7423
|
} = datepicker.useDateRangePicker(
|
|
7422
|
-
|
|
7424
|
+
{
|
|
7423
7425
|
onChange: (date) => {
|
|
7424
7426
|
onChangeCallback({
|
|
7425
7427
|
startDate: date == null ? void 0 : date.start.toString(),
|
|
@@ -7437,7 +7439,7 @@ const DateRangePicker = (props) => {
|
|
|
7437
7439
|
startName,
|
|
7438
7440
|
endName,
|
|
7439
7441
|
"aria-label": "Date range picker"
|
|
7440
|
-
},
|
|
7442
|
+
},
|
|
7441
7443
|
state,
|
|
7442
7444
|
ref
|
|
7443
7445
|
);
|
|
@@ -7617,7 +7619,7 @@ const DateRangePicker = (props) => {
|
|
|
7617
7619
|
closeOnBlur: false,
|
|
7618
7620
|
placement: "bottom-start",
|
|
7619
7621
|
children: [
|
|
7620
|
-
/* @__PURE__ */ jsxRuntime.jsx(react$2.PopoverAnchor, { children: /* @__PURE__ */ jsxRuntime.jsxs(react$2.HStack, { children: [
|
|
7622
|
+
/* @__PURE__ */ jsxRuntime.jsx(react$2.PopoverAnchor, { children: /* @__PURE__ */ jsxRuntime.jsxs(react$2.HStack, { "data-testid": dataTestId, children: [
|
|
7621
7623
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
7622
7624
|
react$2.InputGroup,
|
|
7623
7625
|
{
|
|
@@ -7641,7 +7643,7 @@ const DateRangePicker = (props) => {
|
|
|
7641
7643
|
isDisabled,
|
|
7642
7644
|
isInvalid,
|
|
7643
7645
|
variant,
|
|
7644
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(react$2.HStack, { paddingInlineStart: "1a", paddingInlineEnd: 10, children: [
|
|
7646
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(react$2.HStack, { paddingInlineStart: "1a", "data-testid": "daterange-picker-input-field", paddingInlineEnd: 10, children: [
|
|
7645
7647
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7646
7648
|
DateField,
|
|
7647
7649
|
__spreadProps$h(__spreadValues$z({}, restStartFieldProps), {
|
|
@@ -7693,7 +7695,7 @@ const DateRangePicker = (props) => {
|
|
|
7693
7695
|
] })
|
|
7694
7696
|
}
|
|
7695
7697
|
),
|
|
7696
|
-
/* @__PURE__ */ jsxRuntime.jsx(react$2.InputRightElement, { sx: { height: "100%", paddingRight: "1" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7698
|
+
/* @__PURE__ */ jsxRuntime.jsx(react$2.InputRightElement, { "data-test-id": "daterange-picker-trigger", sx: { height: "100%", paddingRight: "1" }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7697
7699
|
Trigger,
|
|
7698
7700
|
{
|
|
7699
7701
|
id: buttonId,
|