@shoplflow/base 0.31.17 → 0.31.18
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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5068,7 +5068,7 @@ var getEachDateStyle = (props) => {
|
|
|
5068
5068
|
};
|
|
5069
5069
|
var getEachMonthAreaStyle = (props) => {
|
|
5070
5070
|
const { inRange, isStart, isEnd, isReady, disabled } = props;
|
|
5071
|
-
if (isStart && isReady) {
|
|
5071
|
+
if (isStart && isReady && !isEnd) {
|
|
5072
5072
|
return react$1.css`
|
|
5073
5073
|
&::after {
|
|
5074
5074
|
content: '';
|
|
@@ -5154,10 +5154,10 @@ var MonthDatepicker = ({
|
|
|
5154
5154
|
}) => {
|
|
5155
5155
|
const [currentDate, setCurrentDate] = React3.useState(initStartDate || /* @__PURE__ */ new Date());
|
|
5156
5156
|
const [selectedStartMonthAndYear, setSelectedStartMonthAndYear] = React3.useState(
|
|
5157
|
-
initStartDate ? [initStartDate.getMonth(), initStartDate.getFullYear()] : null
|
|
5157
|
+
initStartDate ? [initStartDate.getMonth() + 1, initStartDate.getFullYear()] : null
|
|
5158
5158
|
);
|
|
5159
5159
|
const [selectedEndMonthAndYear, setSelectedEndMonthAndYear] = React3.useState(
|
|
5160
|
-
initEndDate ? [initEndDate.getMonth(), initEndDate.getFullYear()] : null
|
|
5160
|
+
initEndDate ? [initEndDate.getMonth() + 1, initEndDate.getFullYear()] : null
|
|
5161
5161
|
);
|
|
5162
5162
|
const Months = React3.useMemo(() => {
|
|
5163
5163
|
return Array.from({ length: 12 }).map((_, index) => index + 1);
|
|
@@ -5439,7 +5439,7 @@ var getEachDateStyle3 = (props) => {
|
|
|
5439
5439
|
};
|
|
5440
5440
|
var getEachWeekAreaStyle = (props) => {
|
|
5441
5441
|
const { inRange, isStart, isEnd, isReady, disabled } = props;
|
|
5442
|
-
if (isStart && isReady) {
|
|
5442
|
+
if (isStart && isReady && !isEnd) {
|
|
5443
5443
|
return react$1.css`
|
|
5444
5444
|
&::after {
|
|
5445
5445
|
content: '';
|