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