pds-dev-kit-web 2.2.211 → 2.2.212

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.
Files changed (28) hide show
  1. package/dist/src/common/services/i18n/resources/en.json +14 -14
  2. package/dist/src/common/styles/scroll/scrollbarStyle.d.ts +2 -0
  3. package/dist/src/common/styles/scroll/scrollbarStyle.js +4 -3
  4. package/dist/src/desktop/components/Calendar/Calendar.js +46 -51
  5. package/dist/src/desktop/components/Calendar/CalendarContext.d.ts +3 -1
  6. package/dist/src/desktop/components/Calendar/CalendarContext.js +2 -1
  7. package/dist/src/desktop/components/Calendar/DailyView.d.ts +8 -2
  8. package/dist/src/desktop/components/Calendar/DailyView.js +88 -7
  9. package/dist/src/desktop/components/Calendar/MonthlyView.d.ts +2 -1
  10. package/dist/src/desktop/components/Calendar/MonthlyView.js +81 -6
  11. package/dist/src/desktop/components/Calendar/WeeklyView.d.ts +3 -0
  12. package/dist/src/desktop/components/Calendar/WeeklyView.js +113 -7
  13. package/dist/src/desktop/components/Calendar/calendarUtils.js +20 -10
  14. package/dist/src/desktop/components/Calendar/types.d.ts +8 -4
  15. package/dist/src/desktop/panels/DesktopBasicModal/DesktopBasicModal.d.ts +2 -1
  16. package/dist/src/desktop/panels/DesktopBasicModal/DesktopBasicModal.js +13 -15
  17. package/dist/src/desktop/panels/DesktopBasicModalWithTab/DesktopBasicModalWithTab.d.ts +3 -1
  18. package/dist/src/desktop/panels/DesktopBasicModalWithTab/DesktopBasicModalWithTab.js +16 -10
  19. package/dist/src/desktop/panels/DesktopHeadlessModal/DesktopHeadlessModal.d.ts +2 -1
  20. package/dist/src/desktop/panels/DesktopHeadlessModal/DesktopHeadlessModal.js +7 -27
  21. package/dist/src/desktop/panels/DesktopTutorialModal/DesktopTutorialModal.d.ts +3 -1
  22. package/dist/src/desktop/panels/DesktopTutorialModal/DesktopTutorialModal.js +11 -5
  23. package/dist/src/desktop/panels/MultilingualModal/MultilingualModal.d.ts +3 -1
  24. package/dist/src/desktop/panels/MultilingualModal/MultilingualModal.js +11 -4
  25. package/dist/src/mobile/panels/MobileBasicModal/MobileBasicModal.d.ts +3 -1
  26. package/dist/src/mobile/panels/MobileBasicModal/MobileBasicModal.js +13 -6
  27. package/package.json +1 -1
  28. package/release-note.md +3 -2
@@ -21,14 +21,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
21
21
  var jsx_runtime_1 = require("react/jsx-runtime");
22
22
  var react_1 = require("react");
23
23
  var react_dom_1 = __importDefault(require("react-dom"));
24
+ var scrollbarStyle_1 = require("../../../common/styles/scroll/scrollbarStyle");
24
25
  var styled_components_1 = __importDefault(require("styled-components"));
25
26
  var animationStyle_1 = require("../../../common/styles/movement/animationStyle");
26
- var scrollbarStyle_1 = require("../../../common/styles/scroll/scrollbarStyle");
27
27
  var hybrid_1 = require("../../../hybrid");
28
28
  var components_1 = require("../../components");
29
29
  var Components_1 = require("./Components");
30
30
  function DesktopTutorialModal(_a) {
31
- var modalTitleText = _a.modalTitleText, infoArray = _a.infoArray, _b = _a.sequenceMode, sequenceMode = _b === void 0 ? 'use' : _b, onClose = _a.onClose;
31
+ var modalTitleText = _a.modalTitleText, infoArray = _a.infoArray, _b = _a.sequenceMode, sequenceMode = _b === void 0 ? 'use' : _b, _c = _a.scrollVisibleType, scrollVisibleType = _c === void 0 ? 'visible' : _c, onClose = _a.onClose;
32
32
  var container = (0, react_1.useState)(function () {
33
33
  var modalRoot = document.createElement('div');
34
34
  modalRoot.setAttribute('id', 'DesktopTutorialModal');
@@ -44,7 +44,7 @@ function DesktopTutorialModal(_a) {
44
44
  root.removeChild(container);
45
45
  };
46
46
  }, []);
47
- var _c = (0, react_1.useState)("".concat(infoArray[0].sideTabTitleText, "0")), selectedItem = _c[0], setSelectedItem = _c[1];
47
+ var _d = (0, react_1.useState)("".concat(infoArray[0].sideTabTitleText, "0")), selectedItem = _d[0], setSelectedItem = _d[1];
48
48
  var sideTabTitleArray = infoArray.map(function (data, index) {
49
49
  return {
50
50
  title: data.sideTabTitleText,
@@ -70,7 +70,7 @@ function DesktopTutorialModal(_a) {
70
70
  };
71
71
  return react_dom_1.default.createPortal((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(S_ModalOverlay, {}), (0, jsx_runtime_1.jsxs)(S_ModalWrapper, __assign({ "x-pds-name": "DesktopTutorialModal", "x-pds-element-type": "panel", "x-pds-device-type": "desktop" }, { children: [(0, jsx_runtime_1.jsxs)(S_LeftPanel, { children: [(0, jsx_runtime_1.jsx)(S_Header, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: modalTitleText, lineLimit: 2, ellipsisMode: "use", styleTheme: "headingBold" }) }), (0, jsx_runtime_1.jsxs)(S_SideTabWrapper, { children: [(0, jsx_runtime_1.jsx)(Components_1.SideTab, { itemArray: sideTabTitleArray }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_i" })] })] }), infoArray
72
72
  .filter(function (data, index) { return selectedItem === "".concat(data.sideTabTitleText).concat(index); })
73
- .map(function (data, index) { return ((0, jsx_runtime_1.jsxs)(S_RightPanel, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { src: data.imageSrc, shapeType: "rectangle", width: "responsive", ratio: "16_9", scaleType: "cover", backgroundFillMode: "use" }), (0, jsx_runtime_1.jsxs)(S_InfoBox, { children: [(0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: data.infoTitleText ? data.infoTitleText : data.sideTabTitleText, styleTheme: "headingBold" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_d" }), (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: data.infoDescText, styleTheme: "body2Regular", colorTheme: "sysTextSecondary" })] }), data.btnMode === 'btn_amount1' && ((0, jsx_runtime_1.jsx)(S_Footer, { children: (0, jsx_runtime_1.jsx)(components_1.MainButton, { text: data.btn1Text, type: "button", size: "medium", onClick: data.onClickBtn1 }) }))] }, "".concat(data.sideTabTitleText).concat(index))); }), (0, jsx_runtime_1.jsx)(S_IconButtonWrapper, { children: sequenceMode === 'use' && selectedItemIndex !== lastIndex ? ((0, jsx_runtime_1.jsx)(components_1.IconButton, { shapeType: "circular", baseSize: "medium", baseColorKey: "ui_cpnt_button_fill_base_tutorialmodal", iconName: "ic_arrow_right", iconColorKey: "ui_cpnt_button_icon_white", onClick: handleClickNextBtn })) : ((0, jsx_runtime_1.jsx)(components_1.IconButton, { shapeType: "circular", baseSize: "medium", baseColorKey: "ui_cpnt_button_fill_base_tutorialmodal", iconName: "ic_xmark", iconColorKey: "ui_cpnt_button_icon_white", onClick: handleClickCloseBtn })) })] }))] }), container);
73
+ .map(function (data, index) { return ((0, jsx_runtime_1.jsxs)(S_RightPanel, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { src: data.imageSrc, shapeType: "rectangle", width: "responsive", ratio: "16_9", scaleType: "cover", backgroundFillMode: "use" }), (0, jsx_runtime_1.jsxs)(S_InfoBox, __assign({ scrollVisibleType: scrollVisibleType }, { children: [(0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: data.infoTitleText ? data.infoTitleText : data.sideTabTitleText, styleTheme: "headingBold" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_d" }), (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: data.infoDescText, styleTheme: "body2Regular", colorTheme: "sysTextSecondary" })] })), data.btnMode === 'btn_amount1' && ((0, jsx_runtime_1.jsx)(S_Footer, { children: (0, jsx_runtime_1.jsx)(components_1.MainButton, { text: data.btn1Text, type: "button", size: "medium", onClick: data.onClickBtn1 }) }))] }, "".concat(data.sideTabTitleText).concat(index))); }), (0, jsx_runtime_1.jsx)(S_IconButtonWrapper, { children: sequenceMode === 'use' && selectedItemIndex !== lastIndex ? ((0, jsx_runtime_1.jsx)(components_1.IconButton, { shapeType: "circular", baseSize: "medium", baseColorKey: "ui_cpnt_button_fill_base_tutorialmodal", iconName: "ic_arrow_right", iconColorKey: "ui_cpnt_button_icon_white", onClick: handleClickNextBtn })) : ((0, jsx_runtime_1.jsx)(components_1.IconButton, { shapeType: "circular", baseSize: "medium", baseColorKey: "ui_cpnt_button_fill_base_tutorialmodal", iconName: "ic_xmark", iconColorKey: "ui_cpnt_button_icon_white", onClick: handleClickCloseBtn })) })] }))] }), container);
74
74
  }
75
75
  var S_ModalOverlay = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n\n ", "\n"], ["\n background-color: ", ";\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n\n ", "\n"])), function (_a) {
76
76
  var theme = _a.theme;
@@ -114,7 +114,13 @@ var S_InfoBox = styled_components_1.default.div(templateObject_7 || (templateObj
114
114
  }, function (_a) {
115
115
  var theme = _a.theme;
116
116
  return theme.spacing.spacingF;
117
- }, scrollbarStyle_1.scrollbarStyle);
117
+ }, function (_a) {
118
+ var scrollVisibleType = _a.scrollVisibleType;
119
+ return ({
120
+ visible: scrollbarStyle_1.scrollbarStyle,
121
+ hidden: scrollbarStyle_1.scrollInvisible
122
+ }[scrollVisibleType]);
123
+ });
118
124
  var S_Footer = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n align-items: flex-end;\n box-sizing: border-box;\n display: flex;\n height: 88px;\n min-height: 88px;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n align-items: flex-end;\n box-sizing: border-box;\n display: flex;\n height: 88px;\n min-height: 88px;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
119
125
  var theme = _a.theme;
120
126
  return theme.spacing.spacingF;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { ScrollVisibleType } from '../../../common/styles/scroll/scrollbarStyle';
2
3
  import type { MultilingualConfig } from '../../../common/types';
3
4
  type MultilingualModalModalProps = {
4
5
  isOpen: boolean;
@@ -6,6 +7,7 @@ type MultilingualModalModalProps = {
6
7
  config?: MultilingualConfig;
7
8
  size?: 'large' | 'medium' | 'small' | 'rlarge';
8
9
  onHiddenInputUpdate?: (newValue: string) => void;
10
+ scrollVisibleType?: ScrollVisibleType;
9
11
  };
10
- declare function MultilingualModal({ isOpen, onClose, config, size, onHiddenInputUpdate }: MultilingualModalModalProps): import("react").ReactPortal | null;
12
+ declare function MultilingualModal({ isOpen, onClose, config, size, onHiddenInputUpdate, scrollVisibleType }: MultilingualModalModalProps): import("react").ReactPortal | null;
11
13
  export default MultilingualModal;
@@ -24,6 +24,7 @@ var react_dom_1 = __importDefault(require("react-dom"));
24
24
  var react_hook_form_1 = require("react-hook-form");
25
25
  var react_i18next_1 = require("react-i18next");
26
26
  var animationStyle_1 = require("../../../common/styles/movement/animationStyle");
27
+ var scrollbarStyle_1 = require("../../../common/styles/scroll/scrollbarStyle");
27
28
  var components_1 = require("../../components");
28
29
  var components_2 = require("../../../hybrid/components");
29
30
  var styled_components_1 = __importDefault(require("styled-components"));
@@ -38,7 +39,7 @@ var LANGUAGE_I18N_KEYS = {
38
39
  };
39
40
  function MultilingualModal(_a) {
40
41
  var _b, _c;
41
- var isOpen = _a.isOpen, onClose = _a.onClose, config = _a.config, _d = _a.size, size = _d === void 0 ? 'medium' : _d, onHiddenInputUpdate = _a.onHiddenInputUpdate;
42
+ var isOpen = _a.isOpen, onClose = _a.onClose, config = _a.config, _d = _a.size, size = _d === void 0 ? 'medium' : _d, onHiddenInputUpdate = _a.onHiddenInputUpdate, _e = _a.scrollVisibleType, scrollVisibleType = _e === void 0 ? 'visible' : _e;
42
43
  var t = (0, react_i18next_1.useTranslation)().t;
43
44
  var allLangInReadonly = (_b = config === null || config === void 0 ? void 0 : config.visibleLanguages) === null || _b === void 0 ? void 0 : _b.every(function (item) { var _a; return (_a = config === null || config === void 0 ? void 0 : config.readonlyLanguages) === null || _a === void 0 ? void 0 : _a.includes(item); });
44
45
  // FormProvider에서 사용할 기본값 계산
@@ -114,11 +115,11 @@ function MultilingualModal(_a) {
114
115
  };
115
116
  if (!isOpen)
116
117
  return null;
117
- return react_dom_1.default.createPortal((0, jsx_runtime_1.jsxs)(react_hook_form_1.FormProvider, __assign({}, methods, { children: [(0, jsx_runtime_1.jsx)(S_ModalOverlay, { onClick: handleCancel }), (0, jsx_runtime_1.jsxs)(S_ModalWrapper, __assign({ "x-pds-name": "MultiLanguageModal", "x-pds-element-type": "panel", "x-pds-device-type": "desktop", size: size }, { children: [(0, jsx_runtime_1.jsx)(S_Header, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: t('str_multilingual_settings'), colorTheme: "sysTextPrimary", styleTheme: "headingBold" }) }), (0, jsx_runtime_1.jsxs)(S_Body, { children: [(config === null || config === void 0 ? void 0 : config.originalText) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.BodyTextGroup, { titleText: t('str_original_text'), contentText: config.originalText }), (0, jsx_runtime_1.jsx)(components_2.Spacing, { size: "spacing_f" }), (0, jsx_runtime_1.jsx)(components_2.Divider, {}), (0, jsx_runtime_1.jsx)(components_2.Spacing, { size: "spacing_f" })] })), (_c = config === null || config === void 0 ? void 0 : config.visibleLanguages) === null || _c === void 0 ? void 0 : _c.map(function (languageCode, index) {
118
+ return react_dom_1.default.createPortal((0, jsx_runtime_1.jsxs)(react_hook_form_1.FormProvider, __assign({}, methods, { children: [(0, jsx_runtime_1.jsx)(S_ModalOverlay, { onClick: handleCancel }), (0, jsx_runtime_1.jsxs)(S_ModalWrapper, __assign({ "x-pds-name": "MultiLanguageModal", "x-pds-element-type": "panel", "x-pds-device-type": "desktop", size: size }, { children: [(0, jsx_runtime_1.jsx)(S_Header, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: t('str_multilingual_settings'), colorTheme: "sysTextPrimary", styleTheme: "headingBold" }) }), (0, jsx_runtime_1.jsxs)(S_Body, __assign({ scrollVisibleType: scrollVisibleType }, { children: [(config === null || config === void 0 ? void 0 : config.originalText) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.BodyTextGroup, { titleText: t('str_original_text'), contentText: config.originalText }), (0, jsx_runtime_1.jsx)(components_2.Spacing, { size: "spacing_f" }), (0, jsx_runtime_1.jsx)(components_2.Divider, {}), (0, jsx_runtime_1.jsx)(components_2.Spacing, { size: "spacing_f" })] })), (_c = config === null || config === void 0 ? void 0 : config.visibleLanguages) === null || _c === void 0 ? void 0 : _c.map(function (languageCode, index) {
118
119
  var _a, _b;
119
120
  var isReadonly = (_a = config.readonlyLanguages) === null || _a === void 0 ? void 0 : _a.includes(languageCode);
120
121
  return ((0, jsx_runtime_1.jsxs)(S_LanguageField, { children: [(0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: "".concat(t(LANGUAGE_I18N_KEYS[languageCode])), styleTheme: "subTitleBold", colorTheme: "sysTextPrimary" }), (0, jsx_runtime_1.jsx)(components_2.Spacing, { size: "spacing_b" }), (0, jsx_runtime_1.jsx)(components_1.TextField, { responsiveMode: "use", multiRows: config.textFieldLineType === 'multi' ? 5 : undefined, autoMaxRows: config.textFieldLineType === 'auto' ? 5 : undefined, autoMinRows: config.textFieldLineType === 'auto' ? 1 : undefined, name: languageCode, hintText: t('str_9071'), placeholder: "Input Text", textLineType: config.textFieldLineType, state: isReadonly ? 'disabled' : 'normal' }), index < (((_b = config.visibleLanguages) === null || _b === void 0 ? void 0 : _b.length) || 0) - 1 && (0, jsx_runtime_1.jsx)(components_2.Spacing, { size: "spacing_f" })] }, "".concat(languageCode, "_field")));
121
- })] }), (0, jsx_runtime_1.jsxs)(S_Footer, { children: [(0, jsx_runtime_1.jsx)(S_Left, {}), (0, jsx_runtime_1.jsxs)(S_Right, { children: [!allLangInReadonly && ((0, jsx_runtime_1.jsx)(S_Btn2Wrapper, { children: (0, jsx_runtime_1.jsx)(components_1.MainButton, { styleTheme: "secondary", text: t('str_cancel'), size: "medium", onClick: handleCancel }) })), (0, jsx_runtime_1.jsx)(components_1.MainButton, { text: allLangInReadonly ? t('str_confirm') : t('str_apply'), size: "medium", onClick: handleConfirm })] })] })] }))] })), container);
122
+ })] })), (0, jsx_runtime_1.jsxs)(S_Footer, { children: [(0, jsx_runtime_1.jsx)(S_Left, {}), (0, jsx_runtime_1.jsxs)(S_Right, { children: [!allLangInReadonly && ((0, jsx_runtime_1.jsx)(S_Btn2Wrapper, { children: (0, jsx_runtime_1.jsx)(components_1.MainButton, { styleTheme: "secondary", text: t('str_cancel'), size: "medium", onClick: handleCancel }) })), (0, jsx_runtime_1.jsx)(components_1.MainButton, { text: allLangInReadonly ? t('str_confirm') : t('str_apply'), size: "medium", onClick: handleConfirm })] })] })] }))] })), container);
122
123
  }
123
124
  var S_ModalOverlay = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n\n ", "\n"], ["\n background-color: ", ";\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n\n ", "\n"])), function (_a) {
124
125
  var theme = _a.theme;
@@ -156,7 +157,7 @@ var S_Header = styled_components_1.default.div(templateObject_3 || (templateObje
156
157
  var theme = _a.theme;
157
158
  return theme.spacing.spacingE;
158
159
  });
159
- var S_Body = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n flex: 1;\n max-height: 60vh;\n overflow: auto;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"], ["\n flex: 1;\n max-height: 60vh;\n overflow: auto;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"])), function (_a) {
160
+ var S_Body = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n flex: 1;\n max-height: 60vh;\n overflow: auto;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n\n ", "\n"], ["\n flex: 1;\n max-height: 60vh;\n overflow: auto;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n\n ", "\n"])), function (_a) {
160
161
  var theme = _a.theme;
161
162
  return theme.spacing.spacingF;
162
163
  }, function (_a) {
@@ -168,6 +169,12 @@ var S_Body = styled_components_1.default.div(templateObject_4 || (templateObject
168
169
  }, function (_a) {
169
170
  var theme = _a.theme;
170
171
  return theme.spacing.spacingD;
172
+ }, function (_a) {
173
+ var scrollVisibleType = _a.scrollVisibleType;
174
+ return ({
175
+ visible: scrollbarStyle_1.scrollbarStyle,
176
+ hidden: scrollbarStyle_1.scrollInvisible
177
+ }[scrollVisibleType]);
171
178
  });
172
179
  var S_Footer = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border-top: 1px solid ", ";\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"], ["\n border-top: 1px solid ", ";\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"])), function (_a) {
173
180
  var theme = _a.theme;
@@ -1,9 +1,11 @@
1
1
  /// <reference types="react" />
2
+ import { ScrollVisibleType } from '../../../common/styles/scroll/scrollbarStyle';
2
3
  import type { PDSTextType } from '../../../common';
3
4
  type MobileBasicModalProps = {
4
5
  titleText: PDSTextType;
5
6
  bodySpacingMode?: 'none' | 'use';
6
7
  bodyOverflowType?: 'auto' | 'visible';
8
+ scrollVisibleType?: ScrollVisibleType;
7
9
  contentText?: PDSTextType;
8
10
  mBtnText: PDSTextType;
9
11
  mBtnState?: 'normal' | 'disabled';
@@ -16,5 +18,5 @@ type MobileBasicModalProps = {
16
18
  onClickXMarkIcon?: () => void;
17
19
  children?: React.ReactNode;
18
20
  };
19
- declare function MobileBasicModal({ titleText, bodySpacingMode, bodyOverflowType, contentText, mBtnText, mBtnState, mBtnType, tBtnText, tBtnState, tBtnType, onClickMBtn, onClickTBtn, onClickXMarkIcon, children }: MobileBasicModalProps): import("react").ReactPortal;
21
+ declare function MobileBasicModal({ titleText, bodySpacingMode, bodyOverflowType, scrollVisibleType, contentText, mBtnText, mBtnState, mBtnType, tBtnText, tBtnState, tBtnType, onClickMBtn, onClickTBtn, onClickXMarkIcon, children }: MobileBasicModalProps): import("react").ReactPortal;
20
22
  export default MobileBasicModal;
@@ -44,12 +44,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
44
44
  var jsx_runtime_1 = require("react/jsx-runtime");
45
45
  var react_1 = require("react");
46
46
  var react_dom_1 = __importDefault(require("react-dom"));
47
+ var scrollbarStyle_1 = require("../../../common/styles/scroll/scrollbarStyle");
47
48
  var styled_components_1 = __importStar(require("styled-components"));
48
49
  var animationStyle_1 = require("../../../common/styles/movement/animationStyle");
49
50
  var hybrid_1 = require("../../../hybrid");
50
51
  var components_1 = require("../../components");
51
52
  function MobileBasicModal(_a) {
52
- var titleText = _a.titleText, _b = _a.bodySpacingMode, bodySpacingMode = _b === void 0 ? 'use' : _b, _c = _a.bodyOverflowType, bodyOverflowType = _c === void 0 ? 'auto' : _c, contentText = _a.contentText, mBtnText = _a.mBtnText, _d = _a.mBtnState, mBtnState = _d === void 0 ? 'normal' : _d, _e = _a.mBtnType, mBtnType = _e === void 0 ? 'button' : _e, tBtnText = _a.tBtnText, _f = _a.tBtnState, tBtnState = _f === void 0 ? 'normal' : _f, _g = _a.tBtnType, tBtnType = _g === void 0 ? 'button' : _g, onClickMBtn = _a.onClickMBtn, onClickTBtn = _a.onClickTBtn, onClickXMarkIcon = _a.onClickXMarkIcon, children = _a.children;
53
+ var titleText = _a.titleText, _b = _a.bodySpacingMode, bodySpacingMode = _b === void 0 ? 'use' : _b, _c = _a.bodyOverflowType, bodyOverflowType = _c === void 0 ? 'auto' : _c, _d = _a.scrollVisibleType, scrollVisibleType = _d === void 0 ? 'visible' : _d, contentText = _a.contentText, mBtnText = _a.mBtnText, _e = _a.mBtnState, mBtnState = _e === void 0 ? 'normal' : _e, _f = _a.mBtnType, mBtnType = _f === void 0 ? 'button' : _f, tBtnText = _a.tBtnText, _g = _a.tBtnState, tBtnState = _g === void 0 ? 'normal' : _g, _h = _a.tBtnType, tBtnType = _h === void 0 ? 'button' : _h, onClickMBtn = _a.onClickMBtn, onClickTBtn = _a.onClickTBtn, onClickXMarkIcon = _a.onClickXMarkIcon, children = _a.children;
53
54
  var container = (0, react_1.useState)(function () {
54
55
  var modalRoot = document.createElement('div');
55
56
  modalRoot.setAttribute('id', 'MobileBasicModal');
@@ -65,7 +66,7 @@ function MobileBasicModal(_a) {
65
66
  root.removeChild(container);
66
67
  };
67
68
  }, []);
68
- return react_dom_1.default.createPortal((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(S_ModalOverlay, {}), (0, jsx_runtime_1.jsxs)(S_ModalWrapper, __assign({ "x-pds-name": "MobileBasicModal", "x-pds-element-type": "panel", "x-pds-device-type": "mobile" }, { children: [(0, jsx_runtime_1.jsxs)(S_Header, { children: [(0, jsx_runtime_1.jsx)(S_TitleWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: titleText, colorTheme: "sysTextPrimary", styleTheme: "headingBold" }) }), (0, jsx_runtime_1.jsx)(S_IconButtonWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: 24, shapeType: "rectangle", iconName: "ic_xmark", iconColorKey: "ui_cpnt_modal_header_icon_02", iconFillType: "line", onClick: onClickXMarkIcon }) })] }), (0, jsx_runtime_1.jsxs)(S_Body, __assign({ bodySpacingMode: bodySpacingMode, bodyOverflowType: bodyOverflowType }, { children: [contentText && ((0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: contentText, colorTheme: "sysTextSecondary", styleTheme: "subTitleRegular" })), children && children] })), (0, jsx_runtime_1.jsxs)(S_Footer, { children: [(0, jsx_runtime_1.jsx)(components_1.MainButton, { text: mBtnText, state: mBtnState, type: mBtnType, size: "rlarge", onClick: onClickMBtn }), tBtnText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b" }), (0, jsx_runtime_1.jsx)(components_1.TextButton, { text: tBtnText, state: tBtnState, type: tBtnType, size: "rlarge", onClick: onClickTBtn })] }))] })] }))] }), container);
69
+ return react_dom_1.default.createPortal((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(S_ModalOverlay, {}), (0, jsx_runtime_1.jsxs)(S_ModalWrapper, __assign({ "x-pds-name": "MobileBasicModal", "x-pds-element-type": "panel", "x-pds-device-type": "mobile" }, { children: [(0, jsx_runtime_1.jsxs)(S_Header, { children: [(0, jsx_runtime_1.jsx)(S_TitleWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: titleText, colorTheme: "sysTextPrimary", styleTheme: "headingBold" }) }), (0, jsx_runtime_1.jsx)(S_IconButtonWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.IconButton, { fillType: "fill", baseSize: "large", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: 24, shapeType: "rectangle", iconName: "ic_xmark", iconColorKey: "ui_cpnt_modal_header_icon_02", iconFillType: "line", onClick: onClickXMarkIcon }) })] }), (0, jsx_runtime_1.jsxs)(S_Body, __assign({ bodySpacingMode: bodySpacingMode, bodyOverflowType: bodyOverflowType, scrollVisibleType: scrollVisibleType }, { children: [contentText && ((0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: contentText, colorTheme: "sysTextSecondary", styleTheme: "subTitleRegular" })), children && children] })), (0, jsx_runtime_1.jsxs)(S_Footer, { children: [(0, jsx_runtime_1.jsx)(components_1.MainButton, { text: mBtnText, state: mBtnState, type: mBtnType, size: "rlarge", onClick: onClickMBtn }), tBtnText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b" }), (0, jsx_runtime_1.jsx)(components_1.TextButton, { text: tBtnText, state: tBtnState, type: tBtnType, size: "rlarge", onClick: onClickTBtn })] }))] })] }))] }), container);
69
70
  }
70
71
  var S_ModalOverlay = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n\n ", "\n"], ["\n background-color: ", ";\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n\n ", "\n"])), function (_a) {
71
72
  var theme = _a.theme;
@@ -92,10 +93,7 @@ var S_IconButtonWrapper = styled_components_1.default.div(templateObject_4 || (t
92
93
  var theme = _a.theme;
93
94
  return theme.spacing.spacingB;
94
95
  });
95
- var S_Body = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n margin-bottom: ", ";\n margin-left: ", ";\n margin-right: ", ";\n max-height: 50vh;\n overflow-y: ", ";\n padding-top: ", ";\n\n ", "\n"], ["\n margin-bottom: ", ";\n margin-left: ", ";\n margin-right: ", ";\n max-height: 50vh;\n overflow-y: ", ";\n padding-top: ", ";\n\n ", "\n"])), function (_a) {
96
- var theme = _a.theme;
97
- return theme.spacing.spacingE;
98
- }, function (_a) {
96
+ var S_Body = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n margin-bottom: ", ";\n margin-left: ", ";\n max-height: 50vh;\n overflow-y: ", ";\n padding-right: ", ";\n padding-top: ", ";\n\n ", "\n\n ", "\n"], ["\n margin-bottom: ", ";\n margin-left: ", ";\n max-height: 50vh;\n overflow-y: ", ";\n padding-right: ", ";\n padding-top: ", ";\n\n ", "\n\n ", "\n"])), function (_a) {
99
97
  var theme = _a.theme;
100
98
  return theme.spacing.spacingE;
101
99
  }, function (_a) {
@@ -104,9 +102,18 @@ var S_Body = styled_components_1.default.div(templateObject_6 || (templateObject
104
102
  }, function (_a) {
105
103
  var bodyOverflowType = _a.bodyOverflowType;
106
104
  return bodyOverflowType;
105
+ }, function (_a) {
106
+ var theme = _a.theme;
107
+ return theme.spacing.spacingE;
107
108
  }, function (_a) {
108
109
  var theme = _a.theme;
109
110
  return theme.spacing.spacingC;
111
+ }, function (_a) {
112
+ var scrollVisibleType = _a.scrollVisibleType;
113
+ return ({
114
+ visible: scrollbarStyle_1.scrollbarStyle,
115
+ hidden: scrollbarStyle_1.scrollInvisible
116
+ }[scrollVisibleType]);
110
117
  }, function (_a) {
111
118
  var bodySpacingMode = _a.bodySpacingMode;
112
119
  return bodySpacingMode === 'none' && (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin-bottom: 0;\n margin-left: 0;\n margin-right: 0;\n "], ["\n margin-bottom: 0;\n margin-left: 0;\n margin-right: 0;\n "])));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "2.2.211",
3
+ "version": "2.2.212",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v2.2.211]
2
+ ## [v2.2.212]
3
3
  ## daily|https://design.storybook.publ.biz/
4
4
 
5
5
  ### 업데이트 사항
6
- * [FIX] 17. 프로모션 혜택 추가 마법사에서 혜택가 KRW 입력 > USD 확인 > 저장 시 USD 숫자로 저장됨
6
+ * [PDS-1342] 모달류 컴포넌트에 스크롤 추가
7
+ * [PDS-1337] Calendar 날짜 드래그로 해당 구간 이벤트 목록 전체 선택 가능한 기능 추가