@apexcura/ui-components 0.0.14-Beta290 → 0.0.14-Beta292

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/index.js CHANGED
@@ -898,18 +898,12 @@ var DateRangePickerElement = (props) => {
898
898
  { label: "Last 30 Days", value: [(0, import_dayjs2.default)().subtract(29, "d"), today] },
899
899
  { label: "Last 90 Days", value: [(0, import_dayjs2.default)().subtract(89, "d"), today] }
900
900
  ];
901
- let disabledDate;
902
- if (props.weekrange) {
903
- disabledDate = (current) => {
904
- if (props.weekrange) {
905
- return current && (current < today.subtract(7, "d") || current > today.add(7, "d"));
906
- } else {
907
- disabledDate = (current2) => {
908
- return current2 && current2 > (0, import_moment2.default)();
909
- };
910
- }
911
- };
912
- }
901
+ const disabledDate = (current) => {
902
+ if (props.weekrange) {
903
+ return current && current < today.subtract(7, "d");
904
+ }
905
+ return current && current > (0, import_moment2.default)();
906
+ };
913
907
  const handleCalendarChange = (dates) => {
914
908
  if (dates) {
915
909
  let [start, end] = dates;
package/dist/index.mjs CHANGED
@@ -831,18 +831,12 @@ var DateRangePickerElement = (props) => {
831
831
  { label: "Last 30 Days", value: [dayjs2().subtract(29, "d"), today] },
832
832
  { label: "Last 90 Days", value: [dayjs2().subtract(89, "d"), today] }
833
833
  ];
834
- let disabledDate;
835
- if (props.weekrange) {
836
- disabledDate = (current) => {
837
- if (props.weekrange) {
838
- return current && (current < today.subtract(7, "d") || current > today.add(7, "d"));
839
- } else {
840
- disabledDate = (current2) => {
841
- return current2 && current2 > moment2();
842
- };
843
- }
844
- };
845
- }
834
+ const disabledDate = (current) => {
835
+ if (props.weekrange) {
836
+ return current && current < today.subtract(7, "d");
837
+ }
838
+ return current && current > moment2();
839
+ };
846
840
  const handleCalendarChange = (dates) => {
847
841
  if (dates) {
848
842
  let [start, end] = dates;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta290",
3
+ "version": "0.0.14-Beta292",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",