@shoplflow/base 0.46.5 → 0.46.6

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
@@ -6136,7 +6136,7 @@ var getEachMonthAreaStyle = (props) => {
6136
6136
  right: 0;
6137
6137
  top: 0;
6138
6138
  bottom: 0;
6139
- width: 48px;
6139
+ width: 50%;
6140
6140
  background: ${exports.colorTokens.primary100};
6141
6141
  }
6142
6142
  `;
@@ -6149,7 +6149,7 @@ var getEachMonthAreaStyle = (props) => {
6149
6149
  left: 0;
6150
6150
  top: 0;
6151
6151
  bottom: 0;
6152
- width: 48px;
6152
+ width: 50%;
6153
6153
  background: ${exports.colorTokens.primary100};
6154
6154
  }
6155
6155
  `;
@@ -6169,9 +6169,9 @@ var getEachMonthAreaStyle = (props) => {
6169
6169
  var MonthContainer = styled6__default.default.div`
6170
6170
  display: flex;
6171
6171
  flex-direction: column;
6172
- width: 400px;
6173
- max-width: 400px;
6174
- gap: 16px;
6172
+ width: ${({ sizeVar }) => sizeVar === "S" ? "280px" : "400px"};
6173
+ max-width: ${({ sizeVar }) => sizeVar === "S" ? "280px" : "400px"};
6174
+ gap: ${({ sizeVar }) => sizeVar === "S" ? "8px" : "16px"};
6175
6175
  padding: 16px 24px 24px;
6176
6176
  `;
6177
6177
  var MonthArea = styled6__default.default.div`
@@ -6201,6 +6201,7 @@ var EachMonthDate = styled6__default.default.div`
6201
6201
  cursor: pointer;
6202
6202
  position: absolute;
6203
6203
  z-index: 10;
6204
+ flex-shrink: 0;
6204
6205
 
6205
6206
  ${(props) => getEachDateStyle(props)}
6206
6207
  `;
@@ -6210,7 +6211,8 @@ var MonthDatepicker = ({
6210
6211
  initEndDate,
6211
6212
  minDate,
6212
6213
  maxDate,
6213
- onlySingleMonth
6214
+ onlySingleMonth,
6215
+ sizeVar = "M"
6214
6216
  }) => {
6215
6217
  const [currentDate, setCurrentDate] = React3.useState(initStartDate || /* @__PURE__ */ new Date());
6216
6218
  const [selectedStartMonthAndYear, setSelectedStartMonthAndYear] = React3.useState(
@@ -6274,7 +6276,7 @@ var MonthDatepicker = ({
6274
6276
  });
6275
6277
  }
6276
6278
  };
6277
- return /* @__PURE__ */ jsxRuntime.jsxs(MonthContainer, { "data-shoplflow": "MonthDatepicker", children: [
6279
+ return /* @__PURE__ */ jsxRuntime.jsxs(MonthContainer, { "data-shoplflow": "MonthDatepicker", sizeVar, children: [
6278
6280
  /* @__PURE__ */ jsxRuntime.jsx(
6279
6281
  YearStepper_default,
6280
6282
  {
@@ -6769,7 +6771,7 @@ var WeekDatepicker = ({
6769
6771
  exports.WeekDatepicker = WeekDatepicker;
6770
6772
 
6771
6773
  // src/components/Datepickers/version.ts
6772
- exports.DATEPICKERS_VERSION = "2.0.0";
6774
+ exports.DATEPICKERS_VERSION = "2.0.1";
6773
6775
  var StyledNumberCombobox = styled6__default.default.div``;
6774
6776
  var IconWrapper2 = styled6__default.default(framerMotion.motion.div)`
6775
6777
  display: flex;
package/dist/index.d.cts CHANGED
@@ -1556,6 +1556,10 @@ type MonthDatepickerProps = {
1556
1556
  * 하나의 월만 선택 여부
1557
1557
  */
1558
1558
  onlySingleMonth?: boolean;
1559
+ /**
1560
+ * 사이즈 - 기본값: M
1561
+ */
1562
+ sizeVar?: 'S' | 'M';
1559
1563
  };
1560
1564
  type MonthDatepickerStyleType = {
1561
1565
  inRange: boolean;
@@ -1564,7 +1568,11 @@ type MonthDatepickerStyleType = {
1564
1568
  disabled: boolean;
1565
1569
  };
1566
1570
 
1567
- declare const MonthDatepicker: ({ handleMonthClick, initStartDate, initEndDate, minDate, maxDate, onlySingleMonth, }: MonthDatepickerProps) => react_jsx_runtime.JSX.Element;
1571
+ /**
1572
+ * MonthDatepicker 컴포넌트
1573
+ * @version 2.1
1574
+ */
1575
+ declare const MonthDatepicker: ({ handleMonthClick, initStartDate, initEndDate, minDate, maxDate, onlySingleMonth, sizeVar, }: MonthDatepickerProps) => react_jsx_runtime.JSX.Element;
1568
1576
 
1569
1577
  type AnnualDatepickerProps = {
1570
1578
  currentYear?: number;
@@ -1643,7 +1651,7 @@ type YearSelectProps = {
1643
1651
  };
1644
1652
 
1645
1653
  /** @internal 컴포넌트 메타데이터: 버전 */
1646
- declare const DATEPICKERS_VERSION = "2.0.0";
1654
+ declare const DATEPICKERS_VERSION = "2.0.1";
1647
1655
 
1648
1656
  declare const NumberComboboxSizeVariants: {
1649
1657
  readonly S: "S";
package/dist/index.d.ts CHANGED
@@ -1556,6 +1556,10 @@ type MonthDatepickerProps = {
1556
1556
  * 하나의 월만 선택 여부
1557
1557
  */
1558
1558
  onlySingleMonth?: boolean;
1559
+ /**
1560
+ * 사이즈 - 기본값: M
1561
+ */
1562
+ sizeVar?: 'S' | 'M';
1559
1563
  };
1560
1564
  type MonthDatepickerStyleType = {
1561
1565
  inRange: boolean;
@@ -1564,7 +1568,11 @@ type MonthDatepickerStyleType = {
1564
1568
  disabled: boolean;
1565
1569
  };
1566
1570
 
1567
- declare const MonthDatepicker: ({ handleMonthClick, initStartDate, initEndDate, minDate, maxDate, onlySingleMonth, }: MonthDatepickerProps) => react_jsx_runtime.JSX.Element;
1571
+ /**
1572
+ * MonthDatepicker 컴포넌트
1573
+ * @version 2.1
1574
+ */
1575
+ declare const MonthDatepicker: ({ handleMonthClick, initStartDate, initEndDate, minDate, maxDate, onlySingleMonth, sizeVar, }: MonthDatepickerProps) => react_jsx_runtime.JSX.Element;
1568
1576
 
1569
1577
  type AnnualDatepickerProps = {
1570
1578
  currentYear?: number;
@@ -1643,7 +1651,7 @@ type YearSelectProps = {
1643
1651
  };
1644
1652
 
1645
1653
  /** @internal 컴포넌트 메타데이터: 버전 */
1646
- declare const DATEPICKERS_VERSION = "2.0.0";
1654
+ declare const DATEPICKERS_VERSION = "2.0.1";
1647
1655
 
1648
1656
  declare const NumberComboboxSizeVariants: {
1649
1657
  readonly S: "S";
package/dist/index.js CHANGED
@@ -6109,7 +6109,7 @@ var getEachMonthAreaStyle = (props) => {
6109
6109
  right: 0;
6110
6110
  top: 0;
6111
6111
  bottom: 0;
6112
- width: 48px;
6112
+ width: 50%;
6113
6113
  background: ${colorTokens.primary100};
6114
6114
  }
6115
6115
  `;
@@ -6122,7 +6122,7 @@ var getEachMonthAreaStyle = (props) => {
6122
6122
  left: 0;
6123
6123
  top: 0;
6124
6124
  bottom: 0;
6125
- width: 48px;
6125
+ width: 50%;
6126
6126
  background: ${colorTokens.primary100};
6127
6127
  }
6128
6128
  `;
@@ -6142,9 +6142,9 @@ var getEachMonthAreaStyle = (props) => {
6142
6142
  var MonthContainer = styled6.div`
6143
6143
  display: flex;
6144
6144
  flex-direction: column;
6145
- width: 400px;
6146
- max-width: 400px;
6147
- gap: 16px;
6145
+ width: ${({ sizeVar }) => sizeVar === "S" ? "280px" : "400px"};
6146
+ max-width: ${({ sizeVar }) => sizeVar === "S" ? "280px" : "400px"};
6147
+ gap: ${({ sizeVar }) => sizeVar === "S" ? "8px" : "16px"};
6148
6148
  padding: 16px 24px 24px;
6149
6149
  `;
6150
6150
  var MonthArea = styled6.div`
@@ -6174,6 +6174,7 @@ var EachMonthDate = styled6.div`
6174
6174
  cursor: pointer;
6175
6175
  position: absolute;
6176
6176
  z-index: 10;
6177
+ flex-shrink: 0;
6177
6178
 
6178
6179
  ${(props) => getEachDateStyle(props)}
6179
6180
  `;
@@ -6183,7 +6184,8 @@ var MonthDatepicker = ({
6183
6184
  initEndDate,
6184
6185
  minDate,
6185
6186
  maxDate,
6186
- onlySingleMonth
6187
+ onlySingleMonth,
6188
+ sizeVar = "M"
6187
6189
  }) => {
6188
6190
  const [currentDate, setCurrentDate] = useState(initStartDate || /* @__PURE__ */ new Date());
6189
6191
  const [selectedStartMonthAndYear, setSelectedStartMonthAndYear] = useState(
@@ -6247,7 +6249,7 @@ var MonthDatepicker = ({
6247
6249
  });
6248
6250
  }
6249
6251
  };
6250
- return /* @__PURE__ */ jsxs(MonthContainer, { "data-shoplflow": "MonthDatepicker", children: [
6252
+ return /* @__PURE__ */ jsxs(MonthContainer, { "data-shoplflow": "MonthDatepicker", sizeVar, children: [
6251
6253
  /* @__PURE__ */ jsx(
6252
6254
  YearStepper_default,
6253
6255
  {
@@ -6742,7 +6744,7 @@ var WeekDatepicker = ({
6742
6744
  var WeekDatepicker_default = WeekDatepicker;
6743
6745
 
6744
6746
  // src/components/Datepickers/version.ts
6745
- var DATEPICKERS_VERSION = "2.0.0";
6747
+ var DATEPICKERS_VERSION = "2.0.1";
6746
6748
  var StyledNumberCombobox = styled6.div``;
6747
6749
  var IconWrapper2 = styled6(motion.div)`
6748
6750
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoplflow/base",
3
- "version": "0.46.5",
3
+ "version": "0.46.6",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -86,9 +86,9 @@
86
86
  "react-datepicker": "^7.3.0",
87
87
  "react-dom": "^18.2.0",
88
88
  "simplebar-react": "^3.2.6",
89
+ "@shoplflow/hada-assets": "^0.1.10",
89
90
  "@shoplflow/shopl-assets": "^0.12.37",
90
- "@shoplflow/utils": "^0.8.0",
91
- "@shoplflow/hada-assets": "^0.1.10"
91
+ "@shoplflow/utils": "^0.8.0"
92
92
  },
93
93
  "homepage": "https://github.com/shopl/shoplflow#readme",
94
94
  "scripts": {