@shoplflow/base 0.46.6 → 0.46.7
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 +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -6605,7 +6605,7 @@ var WeekDatepicker = ({
|
|
|
6605
6605
|
maxDate,
|
|
6606
6606
|
onlySingleWeek
|
|
6607
6607
|
}) => {
|
|
6608
|
-
const year =
|
|
6608
|
+
const year = initStartDate ? dateFns.getISOWeekYear(initStartDate) : dateFns.getISOWeekYear(/* @__PURE__ */ new Date());
|
|
6609
6609
|
const [currentDate, setCurrentDate] = React3.useState(new Date(year, 5, 5));
|
|
6610
6610
|
const [selectedStartWeekAndYear, setSelectedStartWeekAndYear] = React3.useState(
|
|
6611
6611
|
initStartDate ? [dateFns.getISOWeek(initStartDate || /* @__PURE__ */ new Date()), dateFns.getISOWeekYear(initStartDate || /* @__PURE__ */ new Date())] : null
|
|
@@ -6771,7 +6771,7 @@ var WeekDatepicker = ({
|
|
|
6771
6771
|
exports.WeekDatepicker = WeekDatepicker;
|
|
6772
6772
|
|
|
6773
6773
|
// src/components/Datepickers/version.ts
|
|
6774
|
-
exports.DATEPICKERS_VERSION = "2.0.
|
|
6774
|
+
exports.DATEPICKERS_VERSION = "2.0.2";
|
|
6775
6775
|
var StyledNumberCombobox = styled6__default.default.div``;
|
|
6776
6776
|
var IconWrapper2 = styled6__default.default(framerMotion.motion.div)`
|
|
6777
6777
|
display: flex;
|
package/dist/index.d.cts
CHANGED
|
@@ -1651,7 +1651,7 @@ type YearSelectProps = {
|
|
|
1651
1651
|
};
|
|
1652
1652
|
|
|
1653
1653
|
/** @internal 컴포넌트 메타데이터: 버전 */
|
|
1654
|
-
declare const DATEPICKERS_VERSION = "2.0.
|
|
1654
|
+
declare const DATEPICKERS_VERSION = "2.0.2";
|
|
1655
1655
|
|
|
1656
1656
|
declare const NumberComboboxSizeVariants: {
|
|
1657
1657
|
readonly S: "S";
|
package/dist/index.d.ts
CHANGED
|
@@ -1651,7 +1651,7 @@ type YearSelectProps = {
|
|
|
1651
1651
|
};
|
|
1652
1652
|
|
|
1653
1653
|
/** @internal 컴포넌트 메타데이터: 버전 */
|
|
1654
|
-
declare const DATEPICKERS_VERSION = "2.0.
|
|
1654
|
+
declare const DATEPICKERS_VERSION = "2.0.2";
|
|
1655
1655
|
|
|
1656
1656
|
declare const NumberComboboxSizeVariants: {
|
|
1657
1657
|
readonly S: "S";
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import DatePicker2 from 'react-datepicker';
|
|
|
18
18
|
import 'react-datepicker/dist/react-datepicker.css';
|
|
19
19
|
import SimpleBarReact from 'simplebar-react';
|
|
20
20
|
import { ko } from 'date-fns/locale';
|
|
21
|
-
import {
|
|
21
|
+
import { getISOWeekYear, getISOWeek, startOfMonth, endOfMonth, differenceInCalendarMonths, getISOWeeksInYear, differenceInCalendarISOWeeks, startOfISOWeek, addWeeks, endOfISOWeek } from 'date-fns';
|
|
22
22
|
|
|
23
23
|
var __create = Object.create;
|
|
24
24
|
var __defProp = Object.defineProperty;
|
|
@@ -6578,7 +6578,7 @@ var WeekDatepicker = ({
|
|
|
6578
6578
|
maxDate,
|
|
6579
6579
|
onlySingleWeek
|
|
6580
6580
|
}) => {
|
|
6581
|
-
const year =
|
|
6581
|
+
const year = initStartDate ? getISOWeekYear(initStartDate) : getISOWeekYear(/* @__PURE__ */ new Date());
|
|
6582
6582
|
const [currentDate, setCurrentDate] = useState(new Date(year, 5, 5));
|
|
6583
6583
|
const [selectedStartWeekAndYear, setSelectedStartWeekAndYear] = useState(
|
|
6584
6584
|
initStartDate ? [getISOWeek(initStartDate || /* @__PURE__ */ new Date()), getISOWeekYear(initStartDate || /* @__PURE__ */ new Date())] : null
|
|
@@ -6744,7 +6744,7 @@ var WeekDatepicker = ({
|
|
|
6744
6744
|
var WeekDatepicker_default = WeekDatepicker;
|
|
6745
6745
|
|
|
6746
6746
|
// src/components/Datepickers/version.ts
|
|
6747
|
-
var DATEPICKERS_VERSION = "2.0.
|
|
6747
|
+
var DATEPICKERS_VERSION = "2.0.2";
|
|
6748
6748
|
var StyledNumberCombobox = styled6.div``;
|
|
6749
6749
|
var IconWrapper2 = styled6(motion.div)`
|
|
6750
6750
|
display: flex;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shoplflow/base",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"react-dom": "^18.2.0",
|
|
88
88
|
"simplebar-react": "^3.2.6",
|
|
89
89
|
"@shoplflow/hada-assets": "^0.1.10",
|
|
90
|
-
"@shoplflow/
|
|
91
|
-
"@shoplflow/
|
|
90
|
+
"@shoplflow/utils": "^0.8.0",
|
|
91
|
+
"@shoplflow/shopl-assets": "^0.12.37"
|
|
92
92
|
},
|
|
93
93
|
"homepage": "https://github.com/shopl/shoplflow#readme",
|
|
94
94
|
"scripts": {
|