@shoplflow/base 0.39.1 → 0.40.0

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.cjs CHANGED
@@ -5886,6 +5886,7 @@ var MonthDatepicker = ({
5886
5886
  const clickMonth = (month, year) => {
5887
5887
  if (onlySingleMonth) {
5888
5888
  setSelectedStartMonthAndYear([month, year]);
5889
+ setSelectedEndMonthAndYear([month, year]);
5889
5890
  handleMonthClick({
5890
5891
  startDate: dateFns.startOfMonth(new Date(year, month - 1)),
5891
5892
  endDate: dateFns.endOfMonth(new Date(year, month - 1)),
@@ -5968,7 +5969,7 @@ var MonthDatepicker = ({
5968
5969
  disabled = true;
5969
5970
  }
5970
5971
  if (currentYear === minYear) {
5971
- if (month <= minMonth) {
5972
+ if (month < minMonth) {
5972
5973
  disabled = true;
5973
5974
  }
5974
5975
  }
@@ -5980,7 +5981,7 @@ var MonthDatepicker = ({
5980
5981
  disabled = true;
5981
5982
  }
5982
5983
  if (currentYear === maxYear) {
5983
- if (month >= maxMonth) {
5984
+ if (month > maxMonth) {
5984
5985
  disabled = true;
5985
5986
  }
5986
5987
  }
@@ -6363,7 +6364,7 @@ var WeekDatepicker = ({
6363
6364
  disabled = true;
6364
6365
  }
6365
6366
  if (currentYear === minYear) {
6366
- if (currentWeek <= minWeek) {
6367
+ if (currentWeek < minWeek) {
6367
6368
  disabled = true;
6368
6369
  }
6369
6370
  }
@@ -6375,7 +6376,7 @@ var WeekDatepicker = ({
6375
6376
  disabled = true;
6376
6377
  }
6377
6378
  if (currentYear === maxYear) {
6378
- if (currentWeek >= maxWeek) {
6379
+ if (currentWeek > maxWeek) {
6379
6380
  disabled = true;
6380
6381
  }
6381
6382
  }
package/dist/index.js CHANGED
@@ -5859,6 +5859,7 @@ var MonthDatepicker = ({
5859
5859
  const clickMonth = (month, year) => {
5860
5860
  if (onlySingleMonth) {
5861
5861
  setSelectedStartMonthAndYear([month, year]);
5862
+ setSelectedEndMonthAndYear([month, year]);
5862
5863
  handleMonthClick({
5863
5864
  startDate: startOfMonth(new Date(year, month - 1)),
5864
5865
  endDate: endOfMonth(new Date(year, month - 1)),
@@ -5941,7 +5942,7 @@ var MonthDatepicker = ({
5941
5942
  disabled = true;
5942
5943
  }
5943
5944
  if (currentYear === minYear) {
5944
- if (month <= minMonth) {
5945
+ if (month < minMonth) {
5945
5946
  disabled = true;
5946
5947
  }
5947
5948
  }
@@ -5953,7 +5954,7 @@ var MonthDatepicker = ({
5953
5954
  disabled = true;
5954
5955
  }
5955
5956
  if (currentYear === maxYear) {
5956
- if (month >= maxMonth) {
5957
+ if (month > maxMonth) {
5957
5958
  disabled = true;
5958
5959
  }
5959
5960
  }
@@ -6336,7 +6337,7 @@ var WeekDatepicker = ({
6336
6337
  disabled = true;
6337
6338
  }
6338
6339
  if (currentYear === minYear) {
6339
- if (currentWeek <= minWeek) {
6340
+ if (currentWeek < minWeek) {
6340
6341
  disabled = true;
6341
6342
  }
6342
6343
  }
@@ -6348,7 +6349,7 @@ var WeekDatepicker = ({
6348
6349
  disabled = true;
6349
6350
  }
6350
6351
  if (currentYear === maxYear) {
6351
- if (currentWeek >= maxWeek) {
6352
+ if (currentWeek > maxWeek) {
6352
6353
  disabled = true;
6353
6354
  }
6354
6355
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoplflow/base",
3
- "version": "0.39.1",
3
+ "version": "0.40.0",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -90,9 +90,9 @@
90
90
  "react-datepicker": "^7.3.0",
91
91
  "react-dom": "^18.2.0",
92
92
  "simplebar-react": "^3.2.6",
93
- "@shoplflow/hada-assets": "^0.1.3",
94
93
  "@shoplflow/shopl-assets": "^0.12.10",
95
- "@shoplflow/utils": "^0.6.5"
94
+ "@shoplflow/utils": "^0.6.5",
95
+ "@shoplflow/hada-assets": "^0.1.3"
96
96
  },
97
97
  "scripts": {
98
98
  "type-check": "tsc --noEmit",