@shoplflow/base 0.46.4 → 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 +12 -10
- package/dist/index.d.cts +11 -3
- package/dist/index.d.ts +11 -3
- package/dist/index.js +12 -10
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3018,7 +3018,7 @@ var StyledCallout = styled6__default.default.div`
|
|
|
3018
3018
|
justify-content: flex-start;
|
|
3019
3019
|
align-items: start;
|
|
3020
3020
|
padding: 12px;
|
|
3021
|
-
gap:
|
|
3021
|
+
gap: 6px;
|
|
3022
3022
|
border-radius: ${exports.borderRadiusTokens.borderRadius08};
|
|
3023
3023
|
${({ styleVar }) => styleVar === "INFORMATION" && informationStyle}
|
|
3024
3024
|
${({ styleVar }) => styleVar === "CAUTION" && cautionStyle}
|
|
@@ -3080,7 +3080,7 @@ exports.CalloutTypes = {
|
|
|
3080
3080
|
};
|
|
3081
3081
|
|
|
3082
3082
|
// src/components/Callout/version.ts
|
|
3083
|
-
exports.CALLOUT_VERSION = "2.1.
|
|
3083
|
+
exports.CALLOUT_VERSION = "2.1.3";
|
|
3084
3084
|
var StyledDropdown = styled6__default.default.div`
|
|
3085
3085
|
width: ${({ width }) => width};
|
|
3086
3086
|
`;
|
|
@@ -6136,7 +6136,7 @@ var getEachMonthAreaStyle = (props) => {
|
|
|
6136
6136
|
right: 0;
|
|
6137
6137
|
top: 0;
|
|
6138
6138
|
bottom: 0;
|
|
6139
|
-
width:
|
|
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:
|
|
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.
|
|
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
|
@@ -792,7 +792,7 @@ declare const Callout: {
|
|
|
792
792
|
};
|
|
793
793
|
|
|
794
794
|
/** @internal 컴포넌트 메타데이터: 버전 */
|
|
795
|
-
declare const CALLOUT_VERSION = "2.1.
|
|
795
|
+
declare const CALLOUT_VERSION = "2.1.3";
|
|
796
796
|
|
|
797
797
|
interface PopperProps extends PopperOptionProps {
|
|
798
798
|
}
|
|
@@ -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
|
-
|
|
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.
|
|
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
|
@@ -792,7 +792,7 @@ declare const Callout: {
|
|
|
792
792
|
};
|
|
793
793
|
|
|
794
794
|
/** @internal 컴포넌트 메타데이터: 버전 */
|
|
795
|
-
declare const CALLOUT_VERSION = "2.1.
|
|
795
|
+
declare const CALLOUT_VERSION = "2.1.3";
|
|
796
796
|
|
|
797
797
|
interface PopperProps extends PopperOptionProps {
|
|
798
798
|
}
|
|
@@ -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
|
-
|
|
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.
|
|
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
|
@@ -2991,7 +2991,7 @@ var StyledCallout = styled6.div`
|
|
|
2991
2991
|
justify-content: flex-start;
|
|
2992
2992
|
align-items: start;
|
|
2993
2993
|
padding: 12px;
|
|
2994
|
-
gap:
|
|
2994
|
+
gap: 6px;
|
|
2995
2995
|
border-radius: ${borderRadiusTokens.borderRadius08};
|
|
2996
2996
|
${({ styleVar }) => styleVar === "INFORMATION" && informationStyle}
|
|
2997
2997
|
${({ styleVar }) => styleVar === "CAUTION" && cautionStyle}
|
|
@@ -3053,7 +3053,7 @@ var CalloutTypes = {
|
|
|
3053
3053
|
};
|
|
3054
3054
|
|
|
3055
3055
|
// src/components/Callout/version.ts
|
|
3056
|
-
var CALLOUT_VERSION = "2.1.
|
|
3056
|
+
var CALLOUT_VERSION = "2.1.3";
|
|
3057
3057
|
var StyledDropdown = styled6.div`
|
|
3058
3058
|
width: ${({ width }) => width};
|
|
3059
3059
|
`;
|
|
@@ -6109,7 +6109,7 @@ var getEachMonthAreaStyle = (props) => {
|
|
|
6109
6109
|
right: 0;
|
|
6110
6110
|
top: 0;
|
|
6111
6111
|
bottom: 0;
|
|
6112
|
-
width:
|
|
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:
|
|
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.
|
|
6747
|
+
var DATEPICKERS_VERSION = "2.0.1";
|
|
6746
6748
|
var StyledNumberCombobox = styled6.div``;
|
|
6747
6749
|
var IconWrapper2 = styled6(motion.div)`
|
|
6748
6750
|
display: flex;
|