@northlight/ui 2.33.13 → 2.33.14
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 +2 -0
- package/dist/es/northlight.js +13 -7
- package/dist/es/northlight.js.map +1 -1
- package/dist/umd/northlight.cjs +13 -7
- 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/package.json +2 -2
package/dist/umd/northlight.cjs
CHANGED
|
@@ -7418,7 +7418,8 @@
|
|
|
7418
7418
|
minValue,
|
|
7419
7419
|
maxValue,
|
|
7420
7420
|
firstDayOfWeek,
|
|
7421
|
-
onSave
|
|
7421
|
+
onSave,
|
|
7422
|
+
buttonLabel = "Save"
|
|
7422
7423
|
} = props;
|
|
7423
7424
|
const { locale } = i18n.useLocale();
|
|
7424
7425
|
const ref = React.useRef(null);
|
|
@@ -7490,7 +7491,7 @@
|
|
|
7490
7491
|
range: value,
|
|
7491
7492
|
firstDayOfWeek
|
|
7492
7493
|
}
|
|
7493
|
-
))), /* @__PURE__ */ React.createElement(react.HStack, { pt: "2", alignSelf: "end" }, isClearable && /* @__PURE__ */ React.createElement(Button, { onClick: resetDate, variant: "ghost", size: "sm" }, "Clear"), /* @__PURE__ */ React.createElement(Button, { variant: "brand", onClick: handleSave, size: "sm" },
|
|
7494
|
+
))), /* @__PURE__ */ React.createElement(react.HStack, { pt: "2", alignSelf: "end" }, isClearable && /* @__PURE__ */ React.createElement(Button, { onClick: resetDate, variant: "ghost", size: "sm" }, "Clear"), /* @__PURE__ */ React.createElement(Button, { variant: "brand", onClick: handleSave, size: "sm" }, buttonLabel))))))));
|
|
7494
7495
|
};
|
|
7495
7496
|
|
|
7496
7497
|
const isValidDateRange = (value) => ramda.is(Object, value) && ramda.has("startDate", value) && ramda.has("endDate", value) && ramda.is(String, value.startDate) && ramda.is(String, value.endDate);
|
|
@@ -7544,7 +7545,8 @@
|
|
|
7544
7545
|
maxValue,
|
|
7545
7546
|
renderInPortal = false,
|
|
7546
7547
|
firstDayOfWeek,
|
|
7547
|
-
onSave
|
|
7548
|
+
onSave,
|
|
7549
|
+
buttonLabel = "Save"
|
|
7548
7550
|
} = props;
|
|
7549
7551
|
const ref = React.useRef();
|
|
7550
7552
|
const { group } = react.useMultiStyleConfig("DatePicker");
|
|
@@ -7628,7 +7630,8 @@
|
|
|
7628
7630
|
fiscalStartDay: fiscalStartDay || 0,
|
|
7629
7631
|
isClearable,
|
|
7630
7632
|
firstDayOfWeek,
|
|
7631
|
-
onSave
|
|
7633
|
+
onSave,
|
|
7634
|
+
buttonLabel
|
|
7632
7635
|
})
|
|
7633
7636
|
)))))
|
|
7634
7637
|
);
|
|
@@ -7817,7 +7820,8 @@
|
|
|
7817
7820
|
firstDayOfWeek = "monday",
|
|
7818
7821
|
onChange: onChangeCallback = ramda.identity,
|
|
7819
7822
|
isClearable = true,
|
|
7820
|
-
onSave
|
|
7823
|
+
onSave,
|
|
7824
|
+
buttonLabel = "Save"
|
|
7821
7825
|
} = _b, rest = __objRest$19(_b, [
|
|
7822
7826
|
"name",
|
|
7823
7827
|
"minValue",
|
|
@@ -7829,7 +7833,8 @@
|
|
|
7829
7833
|
"firstDayOfWeek",
|
|
7830
7834
|
"onChange",
|
|
7831
7835
|
"isClearable",
|
|
7832
|
-
"onSave"
|
|
7836
|
+
"onSave",
|
|
7837
|
+
"buttonLabel"
|
|
7833
7838
|
]);
|
|
7834
7839
|
const { setValue, setError, trigger } = reactHookForm.useFormContext();
|
|
7835
7840
|
const handleChange = (dateRange) => {
|
|
@@ -7867,7 +7872,8 @@
|
|
|
7867
7872
|
minValue,
|
|
7868
7873
|
maxValue,
|
|
7869
7874
|
validationState: errors.name ? "invalid" : "valid",
|
|
7870
|
-
isClearable
|
|
7875
|
+
isClearable,
|
|
7876
|
+
buttonLabel
|
|
7871
7877
|
}, rest)
|
|
7872
7878
|
)
|
|
7873
7879
|
);
|