pds-dev-kit-web-test 2.5.490 → 2.5.491
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.d.ts +4 -4
- package/dist/index.js +4 -5
- package/dist/src/common/services/i18n/resources/en.json +42 -1
- package/dist/src/common/services/i18n/resources/es.json +41 -1
- package/dist/src/common/services/i18n/resources/fil.json +41 -1
- package/dist/src/common/services/i18n/resources/index.d.ts +285 -0
- package/dist/src/common/services/i18n/resources/ja.json +42 -1
- package/dist/src/common/services/i18n/resources/ko.json +42 -1
- package/dist/src/common/services/i18n/resources/zh-cn.json +42 -1
- package/dist/src/common/services/i18n/resources/zh-tw.json +42 -1
- package/dist/src/common/types/components.d.ts +9 -0
- package/dist/src/common/types/components.js +8 -0
- package/dist/src/common/types/index.d.ts +0 -1
- package/dist/src/common/types/index.js +0 -1
- package/dist/src/common/utils/dateHelper.d.ts +3 -0
- package/dist/src/common/utils/dateHelper.js +37 -0
- package/dist/src/desktop/components/BasicFormGroup/BasicFormGroup.d.ts +18 -1
- package/dist/src/desktop/components/BasicFormGroup/BasicFormGroup.js +46 -3
- package/dist/src/desktop/components/BoxItem/BoxItem.d.ts +1 -5
- package/dist/src/desktop/components/BoxItem/BoxItem.js +5 -8
- package/dist/src/desktop/components/Calendar/AllDaySchedulesSection.d.ts +13 -0
- package/dist/src/desktop/components/Calendar/AllDaySchedulesSection.js +132 -0
- package/dist/src/desktop/components/Calendar/Calendar.d.ts +4 -0
- package/dist/src/desktop/components/Calendar/Calendar.js +384 -0
- package/dist/src/desktop/components/Calendar/CurrentTimeIndicator.d.ts +7 -0
- package/dist/src/desktop/components/Calendar/CurrentTimeIndicator.js +48 -0
- package/dist/src/desktop/components/Calendar/DailyView.d.ts +17 -0
- package/dist/src/desktop/components/Calendar/DailyView.js +64 -0
- package/dist/src/desktop/components/Calendar/MonthlyView.d.ts +27 -0
- package/dist/src/desktop/components/Calendar/MonthlyView.js +263 -0
- package/dist/src/desktop/components/Calendar/MultiWeekSchedulesLayer.d.ts +19 -0
- package/dist/src/desktop/components/Calendar/MultiWeekSchedulesLayer.js +73 -0
- package/dist/src/desktop/components/Calendar/ScheduleItem.d.ts +16 -0
- package/dist/src/desktop/components/Calendar/ScheduleItem.js +50 -0
- package/dist/src/desktop/components/Calendar/TimeBasedScheduleItem.d.ts +9 -0
- package/dist/src/desktop/components/Calendar/TimeBasedScheduleItem.js +170 -0
- package/dist/src/desktop/components/Calendar/WeeklyView.d.ts +21 -0
- package/dist/src/desktop/components/Calendar/WeeklyView.js +91 -0
- package/dist/src/desktop/components/Calendar/YearlyView.d.ts +12 -0
- package/dist/src/desktop/components/Calendar/YearlyView.js +76 -0
- package/dist/src/desktop/components/Calendar/calendarUtils.d.ts +24 -0
- package/dist/src/desktop/components/Calendar/calendarUtils.js +112 -0
- package/dist/src/desktop/components/Calendar/constants.d.ts +1 -0
- package/dist/src/desktop/components/Calendar/constants.js +31 -0
- package/dist/src/desktop/components/Calendar/index.d.ts +10 -0
- package/dist/src/desktop/components/Calendar/index.js +37 -0
- package/dist/src/desktop/components/Calendar/timeFormatUtils.d.ts +16 -0
- package/dist/src/desktop/components/Calendar/timeFormatUtils.js +45 -0
- package/dist/src/desktop/components/Calendar/types.d.ts +60 -0
- package/dist/src/desktop/components/Calendar/types.js +2 -0
- package/dist/src/desktop/components/index.d.ts +2 -2
- package/dist/src/desktop/components/index.js +4 -4
- package/dist/src/desktop/index.d.ts +1 -1
- package/dist/src/desktop/index.js +2 -2
- package/dist/src/desktop/panels/MultilingualModal/MultilingualModal.d.ts +23 -0
- package/dist/src/desktop/panels/MultilingualModal/MultilingualModal.js +199 -0
- package/dist/src/desktop/panels/MultilingualModal/index.d.ts +1 -0
- package/dist/src/desktop/panels/MultilingualModal/index.js +8 -0
- package/dist/src/desktop/panels/index.d.ts +2 -1
- package/dist/src/desktop/panels/index.js +6 -1
- package/dist/src/mobile/components/BoxItem/BoxItem.d.ts +1 -5
- package/dist/src/mobile/components/BoxItem/BoxItem.js +5 -7
- package/dist/src/mobile/components/index.d.ts +1 -2
- package/dist/src/mobile/components/index.js +1 -3
- package/dist/src/mobile/index.d.ts +1 -1
- package/dist/src/mobile/index.js +2 -3
- package/package.json +1 -1
- package/release-note.md +2 -2
- package/dist/src/common/types/form.d.ts +0 -9
- package/dist/src/common/types/form.js +0 -10
- package/dist/src/desktop/components/Snackbar/Snackbar.d.ts +0 -16
- package/dist/src/desktop/components/Snackbar/Snackbar.js +0 -209
- package/dist/src/desktop/components/Snackbar/index.d.ts +0 -1
- package/dist/src/desktop/components/Snackbar/index.js +0 -8
- package/dist/src/desktop/components/Snackbar/provider.d.ts +0 -11
- package/dist/src/desktop/components/Snackbar/provider.js +0 -52
- package/dist/src/mobile/components/Snackbar/Snackbar.d.ts +0 -16
- package/dist/src/mobile/components/Snackbar/Snackbar.js +0 -209
- package/dist/src/mobile/components/Snackbar/index.d.ts +0 -1
- package/dist/src/mobile/components/Snackbar/index.js +0 -8
- package/dist/src/mobile/components/Snackbar/provider.d.ts +0 -11
- package/dist/src/mobile/components/Snackbar/provider.js +0 -52
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.D_Slider = exports.D_Select = exports.D_SegmentedButtonGroup = exports.D_ReactionButton = exports.D_Radio = exports.D_PageTitleTextGroup = exports.D_MainButton = exports.D_LottieReactionButton = exports.D_ImageSlide = exports.D_IconButton = exports.D_HorizontalFormGroup = exports.D_Hero = exports.D_FloatingActionButton = exports.D_FilterBar = exports.D_EditApplyTextField = exports.D_DynamicDesktopNavBarTemplates = exports.D_DynamicDesktopNavBar = exports.D_Dropdown = exports.D_DesktopTabBar = exports.D_DesktopHeaderBar = exports.D_DesktopAlertDialog = exports.D_ContextMenuItem = exports.D_ContextMenu = exports.D_Chip = exports.D_Checkbox = exports.D_ChatList = exports.D_ChatBubbleListItem = exports.D_CardList = exports.D_Card = exports.D_BoxItem = exports.D_BodyTextGroup = exports.D_BlogTextField = exports.D_BasicListItem = exports.D_BasicList = exports.D_BasicFormGroup = exports.D_BasicChatListItem = exports.D_BasicButtonGroup = exports.D_AdminListItem = exports.D_AdminListHeader = exports.D_AdminList = exports.WTContainersBox = exports.WTGlobalMenuContainer = exports.LayoutWT = exports.WSContainersBox = exports.WSGlobalMenuContainer = exports.LayoutWS = exports.WHContainersBox = exports.LayoutWH = exports.WFContainersBox = exports.LayoutWF = void 0;
|
|
4
|
-
exports.D_SectionSheet = exports.D_DesktopTutorialModal = exports.D_DesktopHeadlessModal = exports.D_DesktopBasicModalWithTab = exports.D_DesktopBasicModal = exports.D_ContentSheet = exports.D_AnnotationSheet = exports.D_UserDesktopSideTab = exports.D_UserDesktopTabBar = exports.D_UserDesktopNavBar = exports.D_UploadTextButton = exports.D_UploadMainButton = exports.D_UploadIconButton = exports.D_TextLabel = exports.D_TextField = exports.D_TextButton = exports.D_StatusBlock =
|
|
4
|
+
exports.D_SectionSheet = exports.D_DesktopTutorialModal = exports.D_DesktopHeadlessModal = exports.D_DesktopBasicModalWithTab = exports.D_DesktopBasicModal = exports.D_ContentSheet = exports.D_AnnotationSheet = exports.D_Calendar = exports.D_UserDesktopSideTab = exports.D_UserDesktopTabBar = exports.D_UserDesktopNavBar = exports.D_UploadTextButton = exports.D_UploadMainButton = exports.D_UploadIconButton = exports.D_TextLabel = exports.D_TextField = exports.D_TextButton = exports.D_StatusBlock = void 0;
|
|
5
5
|
// layoutWF
|
|
6
6
|
var LayoutWF_1 = require("./layout/LayoutWF");
|
|
7
7
|
Object.defineProperty(exports, "LayoutWF", { enumerable: true, get: function () { return LayoutWF_1.LayoutWF; } });
|
|
@@ -68,7 +68,6 @@ Object.defineProperty(exports, "D_ReactionButton", { enumerable: true, get: func
|
|
|
68
68
|
Object.defineProperty(exports, "D_SegmentedButtonGroup", { enumerable: true, get: function () { return components_1.SegmentedButtonGroup; } });
|
|
69
69
|
Object.defineProperty(exports, "D_Select", { enumerable: true, get: function () { return components_1.Select; } });
|
|
70
70
|
Object.defineProperty(exports, "D_Slider", { enumerable: true, get: function () { return components_1.Slider; } });
|
|
71
|
-
Object.defineProperty(exports, "D_Snackbar", { enumerable: true, get: function () { return components_1.Snackbar; } });
|
|
72
71
|
Object.defineProperty(exports, "D_StatusBlock", { enumerable: true, get: function () { return components_1.StatusBlock; } });
|
|
73
72
|
Object.defineProperty(exports, "D_TextButton", { enumerable: true, get: function () { return components_1.TextButton; } });
|
|
74
73
|
Object.defineProperty(exports, "D_TextField", { enumerable: true, get: function () { return components_1.TextField; } });
|
|
@@ -79,6 +78,7 @@ Object.defineProperty(exports, "D_UploadTextButton", { enumerable: true, get: fu
|
|
|
79
78
|
Object.defineProperty(exports, "D_UserDesktopNavBar", { enumerable: true, get: function () { return components_1.UserDesktopNavBar; } });
|
|
80
79
|
Object.defineProperty(exports, "D_UserDesktopTabBar", { enumerable: true, get: function () { return components_1.UserDesktopTabBar; } });
|
|
81
80
|
Object.defineProperty(exports, "D_UserDesktopSideTab", { enumerable: true, get: function () { return components_1.UserDesktopSideTab; } });
|
|
81
|
+
Object.defineProperty(exports, "D_Calendar", { enumerable: true, get: function () { return components_1.Calendar; } });
|
|
82
82
|
// panels
|
|
83
83
|
var panels_1 = require("./panels");
|
|
84
84
|
Object.defineProperty(exports, "D_AnnotationSheet", { enumerable: true, get: function () { return panels_1.AnnotationSheet; } });
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type LanguageCode = 'en' | 'ko' | 'ja' | 'zh' | 'zh-Hant' | 'fr' | 'de' | 'es' | 'it' | 'pt' | 'ru' | 'vi' | 'th' | 'id' | 'ms' | 'ar' | 'tr' | 'pl' | 'nl' | 'sv' | 'fi' | 'no' | 'da' | 'he' | 'hi' | 'bn' | 'ta' | 'el' | 'cs' | 'ro';
|
|
3
|
+
type MultilingualConfig = {
|
|
4
|
+
originalText?: string;
|
|
5
|
+
initialValues?: {
|
|
6
|
+
[key in LanguageCode]?: string;
|
|
7
|
+
};
|
|
8
|
+
visibleLanguages?: LanguageCode[];
|
|
9
|
+
readonlyLanguages?: LanguageCode[];
|
|
10
|
+
hiddenInputId: string;
|
|
11
|
+
onApply?: (values: {
|
|
12
|
+
[key in LanguageCode]?: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
};
|
|
15
|
+
type MultilingualModalModalProps = {
|
|
16
|
+
isOpen: boolean;
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
config?: MultilingualConfig;
|
|
19
|
+
size?: 'large' | 'medium' | 'small' | 'rlarge';
|
|
20
|
+
onHiddenInputUpdate?: (newValue: string) => void;
|
|
21
|
+
};
|
|
22
|
+
declare function MultilingualModal({ isOpen, onClose, config, size, onHiddenInputUpdate }: MultilingualModalModalProps): import("react").ReactPortal | null;
|
|
23
|
+
export default MultilingualModal;
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
22
|
+
var react_1 = require("react");
|
|
23
|
+
var react_dom_1 = __importDefault(require("react-dom"));
|
|
24
|
+
var react_hook_form_1 = require("react-hook-form");
|
|
25
|
+
var react_i18next_1 = require("react-i18next");
|
|
26
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
27
|
+
var animationStyle_1 = require("../../../common/styles/movement/animationStyle");
|
|
28
|
+
var hybrid_1 = require("../../../hybrid");
|
|
29
|
+
var components_1 = require("../../components");
|
|
30
|
+
var LANGUAGE_I18N_KEYS = {
|
|
31
|
+
en: 'str_multilingual_en',
|
|
32
|
+
ko: 'str_multilingual_ko',
|
|
33
|
+
ja: 'str_multilingual_ja',
|
|
34
|
+
zh: 'str_multilingual_zh_cn',
|
|
35
|
+
'zh-Hant': 'str_multilingual_zh_tw',
|
|
36
|
+
fr: 'str_multilingual_fr',
|
|
37
|
+
es: 'str_multilingual_es'
|
|
38
|
+
};
|
|
39
|
+
function MultilingualModal(_a) {
|
|
40
|
+
var _b;
|
|
41
|
+
var isOpen = _a.isOpen, onClose = _a.onClose, config = _a.config, _c = _a.size, size = _c === void 0 ? 'medium' : _c, onHiddenInputUpdate = _a.onHiddenInputUpdate;
|
|
42
|
+
var t = (0, react_i18next_1.useTranslation)().t;
|
|
43
|
+
// FormProvider에서 사용할 기본값 계산
|
|
44
|
+
var getDefaultValues = function () {
|
|
45
|
+
if (!config)
|
|
46
|
+
return {};
|
|
47
|
+
// 먼저 hiddenInput에 저장된 값이 있는지 확인
|
|
48
|
+
if (config.hiddenInputId) {
|
|
49
|
+
var hiddenInputId = "hiddenInput_".concat(config.hiddenInputId);
|
|
50
|
+
var hiddenInput = document.getElementById(hiddenInputId);
|
|
51
|
+
if (hiddenInput && hiddenInput.value) {
|
|
52
|
+
var existingValues = JSON.parse(hiddenInput.value);
|
|
53
|
+
// 빈 객체가 아닌 경우에만 사용
|
|
54
|
+
if (Object.keys(existingValues).length > 0) {
|
|
55
|
+
return existingValues;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
// hiddenInput에 값이 없으면 config.initialValues 사용
|
|
60
|
+
return config.initialValues || {};
|
|
61
|
+
};
|
|
62
|
+
var methods = (0, react_hook_form_1.useForm)({
|
|
63
|
+
defaultValues: getDefaultValues()
|
|
64
|
+
});
|
|
65
|
+
var container = (0, react_1.useState)(function () {
|
|
66
|
+
var modalRoot = document.createElement('div');
|
|
67
|
+
modalRoot.setAttribute('id', 'MultilingualModal');
|
|
68
|
+
return modalRoot;
|
|
69
|
+
})[0];
|
|
70
|
+
(0, react_1.useLayoutEffect)(function () {
|
|
71
|
+
if (!isOpen)
|
|
72
|
+
return;
|
|
73
|
+
var root = document.getElementById('root');
|
|
74
|
+
if (!root)
|
|
75
|
+
return;
|
|
76
|
+
root.appendChild(container);
|
|
77
|
+
return function () {
|
|
78
|
+
if (root.contains(container)) {
|
|
79
|
+
root.removeChild(container);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
}, [isOpen, container]);
|
|
83
|
+
(0, react_1.useLayoutEffect)(function () {
|
|
84
|
+
if (isOpen && config) {
|
|
85
|
+
var newDefaultValues = getDefaultValues();
|
|
86
|
+
methods.reset(newDefaultValues);
|
|
87
|
+
}
|
|
88
|
+
}, [isOpen, config]);
|
|
89
|
+
var handleConfirm = function () {
|
|
90
|
+
var formValues = methods.getValues();
|
|
91
|
+
// hidden input에 다국어 값들을 JSON 형태로 저장
|
|
92
|
+
var newValue = JSON.stringify(formValues);
|
|
93
|
+
if (config === null || config === void 0 ? void 0 : config.hiddenInputId) {
|
|
94
|
+
var hiddenInputId = "hiddenInput_".concat(config.hiddenInputId);
|
|
95
|
+
var hiddenInput = document.getElementById(hiddenInputId);
|
|
96
|
+
if (hiddenInput) {
|
|
97
|
+
// BasicFormGroup의 state 업데이트
|
|
98
|
+
if (onHiddenInputUpdate) {
|
|
99
|
+
onHiddenInputUpdate(newValue);
|
|
100
|
+
}
|
|
101
|
+
// input change 이벤트 발생시켜서 form validation 등이 동작하도록 함
|
|
102
|
+
var event_1 = new Event('change', { bubbles: true });
|
|
103
|
+
hiddenInput.dispatchEvent(event_1);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
// onApply 콜백이 있으면 호출
|
|
107
|
+
if (config === null || config === void 0 ? void 0 : config.onApply) {
|
|
108
|
+
config.onApply(formValues);
|
|
109
|
+
}
|
|
110
|
+
onClose();
|
|
111
|
+
};
|
|
112
|
+
var handleCancel = function () {
|
|
113
|
+
onClose();
|
|
114
|
+
};
|
|
115
|
+
if (!isOpen)
|
|
116
|
+
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('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: "Original Text", contentText: config.originalText }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_f" }), (0, jsx_runtime_1.jsx)(hybrid_1.Divider, {}), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_f" })] })), (_b = config === null || config === void 0 ? void 0 : config.visibleLanguages) === null || _b === void 0 ? void 0 : _b.map(function (languageCode, index) {
|
|
118
|
+
var _a, _b;
|
|
119
|
+
var isReadonly = (_a = config.readonlyLanguages) === null || _a === void 0 ? void 0 : _a.includes(languageCode);
|
|
120
|
+
return ((0, jsx_runtime_1.jsxs)(S_LanguageField, { children: [(0, jsx_runtime_1.jsx)(components_1.TextLabel, { text: t(LANGUAGE_I18N_KEYS[languageCode]), styleTheme: "subTitleBold", colorTheme: "sysTextPrimary" }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b" }), (0, jsx_runtime_1.jsx)(components_1.TextField, { name: languageCode, hintText: t('str_9071'), placeholder: "Input Text", state: isReadonly ? 'disabled' : 'normal' }), index < (((_b = config.visibleLanguages) === null || _b === void 0 ? void 0 : _b.length) || 0) - 1 && (0, jsx_runtime_1.jsx)(hybrid_1.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: [(0, jsx_runtime_1.jsx)(S_Btn2Wrapper, { children: (0, jsx_runtime_1.jsx)(components_1.MainButton, { styleTheme: "secondary", text: t('cancel'), size: "medium", onClick: handleCancel }) }), (0, jsx_runtime_1.jsx)(components_1.MainButton, { text: t('apply'), size: "medium", onClick: handleConfirm })] })] })] }))] })), container);
|
|
122
|
+
}
|
|
123
|
+
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
|
+
var theme = _a.theme;
|
|
125
|
+
return theme.ui_cpnt_modal_dimmed;
|
|
126
|
+
}, animationStyle_1.modalOverlayOnAni);
|
|
127
|
+
var S_ModalWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 24px;\n box-shadow: ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n left: 50%;\n position: fixed;\n top: 50%;\n transform: translate(-50%, -50%);\n width: ", ";\n\n ", "\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 24px;\n box-shadow: ", ";\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n left: 50%;\n position: fixed;\n top: 50%;\n transform: translate(-50%, -50%);\n width: ", ";\n\n ", "\n"])), function (_a) {
|
|
128
|
+
var theme = _a.theme;
|
|
129
|
+
return theme.ui_cpnt_modal_base;
|
|
130
|
+
}, function (_a) {
|
|
131
|
+
var theme = _a.theme;
|
|
132
|
+
return theme.ui_cpnt_modal_border;
|
|
133
|
+
}, function (_a) {
|
|
134
|
+
var theme = _a.theme;
|
|
135
|
+
return theme.boxShadow.elevation4;
|
|
136
|
+
}, function (_a) {
|
|
137
|
+
var size = _a.size;
|
|
138
|
+
var sizes = {
|
|
139
|
+
large: '960px',
|
|
140
|
+
medium: '688px',
|
|
141
|
+
small: '400px',
|
|
142
|
+
rlarge: '80vw'
|
|
143
|
+
};
|
|
144
|
+
return size && sizes[size];
|
|
145
|
+
}, animationStyle_1.modalOnAni);
|
|
146
|
+
var S_Header = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"], ["\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"])), function (_a) {
|
|
147
|
+
var theme = _a.theme;
|
|
148
|
+
return theme.spacing.spacingC;
|
|
149
|
+
}, function (_a) {
|
|
150
|
+
var theme = _a.theme;
|
|
151
|
+
return theme.spacing.spacingE;
|
|
152
|
+
}, function (_a) {
|
|
153
|
+
var theme = _a.theme;
|
|
154
|
+
return theme.spacing.spacingE;
|
|
155
|
+
}, function (_a) {
|
|
156
|
+
var theme = _a.theme;
|
|
157
|
+
return theme.spacing.spacingE;
|
|
158
|
+
});
|
|
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 theme = _a.theme;
|
|
161
|
+
return theme.spacing.spacingF;
|
|
162
|
+
}, function (_a) {
|
|
163
|
+
var theme = _a.theme;
|
|
164
|
+
return theme.spacing.spacingE;
|
|
165
|
+
}, function (_a) {
|
|
166
|
+
var theme = _a.theme;
|
|
167
|
+
return theme.spacing.spacingE;
|
|
168
|
+
}, function (_a) {
|
|
169
|
+
var theme = _a.theme;
|
|
170
|
+
return theme.spacing.spacingD;
|
|
171
|
+
});
|
|
172
|
+
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
|
+
var theme = _a.theme;
|
|
174
|
+
return theme.ui_cpnt_modal_border;
|
|
175
|
+
}, function (_a) {
|
|
176
|
+
var theme = _a.theme;
|
|
177
|
+
return theme.spacing.spacingD;
|
|
178
|
+
}, function (_a) {
|
|
179
|
+
var theme = _a.theme;
|
|
180
|
+
return theme.spacing.spacingE;
|
|
181
|
+
}, function (_a) {
|
|
182
|
+
var theme = _a.theme;
|
|
183
|
+
return theme.spacing.spacingE;
|
|
184
|
+
}, function (_a) {
|
|
185
|
+
var theme = _a.theme;
|
|
186
|
+
return theme.spacing.spacingD;
|
|
187
|
+
});
|
|
188
|
+
var S_Left = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n margin-right: ", ";\n"], ["\n margin-right: ", ";\n"])), function (_a) {
|
|
189
|
+
var theme = _a.theme;
|
|
190
|
+
return theme.spacing.spacingB;
|
|
191
|
+
});
|
|
192
|
+
var S_Btn2Wrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n margin-right: ", ";\n"], ["\n margin-right: ", ";\n"])), function (_a) {
|
|
193
|
+
var theme = _a.theme;
|
|
194
|
+
return theme.spacing.spacingB;
|
|
195
|
+
});
|
|
196
|
+
var S_Right = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
197
|
+
var S_LanguageField = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n width: 100%;\n"], ["\n width: 100%;\n"])));
|
|
198
|
+
exports.default = MultilingualModal;
|
|
199
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './MultilingualModal';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var MultilingualModal_1 = require("./MultilingualModal");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(MultilingualModal_1).default; } });
|
|
@@ -4,7 +4,8 @@ import { DesktopBasicModal } from './DesktopBasicModal';
|
|
|
4
4
|
import { DesktopBasicModalWithTab, DesktopBasicModalWithTabInfoType } from './DesktopBasicModalWithTab';
|
|
5
5
|
import { DesktopHeadlessModal } from './DesktopHeadlessModal';
|
|
6
6
|
import { DesktopTutorialModal, DesktopTutorialModalInfoType } from './DesktopTutorialModal';
|
|
7
|
+
import MultilingualModal from './MultilingualModal';
|
|
7
8
|
import { SectionSheet } from './SectionSheet';
|
|
8
|
-
export { AnnotationSheet, ContentSheet, DesktopBasicModal, DesktopBasicModalWithTab, DesktopHeadlessModal, DesktopTutorialModal, SectionSheet };
|
|
9
|
+
export { AnnotationSheet, ContentSheet, DesktopBasicModal, DesktopBasicModalWithTab, DesktopHeadlessModal, DesktopTutorialModal, MultilingualModal, SectionSheet };
|
|
9
10
|
export { DesktopBasicModalWithTabInfoType };
|
|
10
11
|
export { DesktopTutorialModalInfoType };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SectionSheet = exports.DesktopTutorialModal = exports.DesktopHeadlessModal = exports.DesktopBasicModalWithTab = exports.DesktopBasicModal = exports.ContentSheet = exports.AnnotationSheet = void 0;
|
|
6
|
+
exports.SectionSheet = exports.MultilingualModal = exports.DesktopTutorialModal = exports.DesktopHeadlessModal = exports.DesktopBasicModalWithTab = exports.DesktopBasicModal = exports.ContentSheet = exports.AnnotationSheet = void 0;
|
|
4
7
|
var AnnotationSheet_1 = require("./AnnotationSheet");
|
|
5
8
|
Object.defineProperty(exports, "AnnotationSheet", { enumerable: true, get: function () { return AnnotationSheet_1.AnnotationSheet; } });
|
|
6
9
|
var ContentSheet_1 = require("./ContentSheet");
|
|
@@ -13,5 +16,7 @@ var DesktopHeadlessModal_1 = require("./DesktopHeadlessModal");
|
|
|
13
16
|
Object.defineProperty(exports, "DesktopHeadlessModal", { enumerable: true, get: function () { return DesktopHeadlessModal_1.DesktopHeadlessModal; } });
|
|
14
17
|
var DesktopTutorialModal_1 = require("./DesktopTutorialModal");
|
|
15
18
|
Object.defineProperty(exports, "DesktopTutorialModal", { enumerable: true, get: function () { return DesktopTutorialModal_1.DesktopTutorialModal; } });
|
|
19
|
+
var MultilingualModal_1 = __importDefault(require("./MultilingualModal"));
|
|
20
|
+
exports.MultilingualModal = MultilingualModal_1.default;
|
|
16
21
|
var SectionSheet_1 = require("./SectionSheet");
|
|
17
22
|
Object.defineProperty(exports, "SectionSheet", { enumerable: true, get: function () { return SectionSheet_1.SectionSheet; } });
|
|
@@ -11,11 +11,9 @@ export type BoxItemProps = {
|
|
|
11
11
|
titleFontSize?: 'subTitleBold' | 'leadParaBold' | 'body2Bold' | 'headingBold';
|
|
12
12
|
titleTextLineLimit?: number;
|
|
13
13
|
titleTextColorKey?: UiColors;
|
|
14
|
-
titleTextWordBreak?: 'normal' | 'break_all' | 'keep_all' | 'break_word';
|
|
15
14
|
descText?: PDSTextType;
|
|
16
15
|
descTextColorKey?: UiColors;
|
|
17
16
|
descLineLimit?: number;
|
|
18
|
-
descTextWordBreak?: 'normal' | 'break_all' | 'keep_all' | 'break_word';
|
|
19
17
|
imageMode?: 'use' | 'none';
|
|
20
18
|
imageShapeType?: 'round' | 'circular' | 'rectangle';
|
|
21
19
|
imageSrc?: string;
|
|
@@ -24,8 +22,6 @@ export type BoxItemProps = {
|
|
|
24
22
|
imageScaleType?: 'none' | 'cover' | 'contain' | 'fill';
|
|
25
23
|
chipMode?: 'use' | 'none';
|
|
26
24
|
chipText?: PDSTextType;
|
|
27
|
-
chipOverrideTextColorKey?: UiColors;
|
|
28
|
-
chipOverrideBackgroundColorKey?: UiColors;
|
|
29
25
|
displayType?: 'none' | 'ibtn_amount1' | 'ibtn_amount2' | 'ibtn_amount3';
|
|
30
26
|
iBtn1IconName?: PDSIconType;
|
|
31
27
|
iBtn1IconFillType?: 'fill' | 'line';
|
|
@@ -62,5 +58,5 @@ declare const paddingSpacing: {
|
|
|
62
58
|
readonly spacing_m: "spacingM";
|
|
63
59
|
readonly spacing_n: "spacingN";
|
|
64
60
|
};
|
|
65
|
-
declare function BoxItem({ selectionMode, checkboxMode, indicatorMode, state, selectState, titleText, titleFontSize, titleTextLineLimit, titleTextColorKey,
|
|
61
|
+
declare function BoxItem({ selectionMode, checkboxMode, indicatorMode, state, selectState, titleText, titleFontSize, titleTextLineLimit, titleTextColorKey, descText, descTextColorKey, descLineLimit, imageMode, imageShapeType, imageSrc, imageWidth, imageRatio, imageScaleType, chipMode, chipText, displayType, iBtn1IconName, iBtn1IconFillType, iBtn1IconColorKey, iBtn2IconName, iBtn2IconFillType, iBtn2IconColorKey, iBtn3IconName, iBtn3IconFillType, iBtn3IconColorKey, paddingTop, paddingRight, paddingBottom, paddingLeft, id, onClick, onClickIBtn1, onClickIBtn2, onClickIBtn3 }: BoxItemProps): JSX.Element;
|
|
66
62
|
export default BoxItem;
|
|
@@ -42,7 +42,7 @@ var paddingSpacing = {
|
|
|
42
42
|
spacing_n: 'spacingN'
|
|
43
43
|
};
|
|
44
44
|
function BoxItem(_a) {
|
|
45
|
-
var _b = _a.selectionMode, selectionMode = _b === void 0 ? 'none' : _b, _c = _a.checkboxMode, checkboxMode = _c === void 0 ? 'none' : _c, _d = _a.indicatorMode, indicatorMode = _d === void 0 ? 'none' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, _f = _a.selectState, selectState = _f === void 0 ? 'unselected' : _f, titleText = _a.titleText, titleFontSize = _a.titleFontSize, _g = _a.titleTextLineLimit, titleTextLineLimit = _g === void 0 ? 2 : _g, _h = _a.titleTextColorKey, titleTextColorKey = _h === void 0 ? 'ui_cpnt_textlabel_sys_primary' : _h,
|
|
45
|
+
var _b = _a.selectionMode, selectionMode = _b === void 0 ? 'none' : _b, _c = _a.checkboxMode, checkboxMode = _c === void 0 ? 'none' : _c, _d = _a.indicatorMode, indicatorMode = _d === void 0 ? 'none' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, _f = _a.selectState, selectState = _f === void 0 ? 'unselected' : _f, titleText = _a.titleText, titleFontSize = _a.titleFontSize, _g = _a.titleTextLineLimit, titleTextLineLimit = _g === void 0 ? 2 : _g, _h = _a.titleTextColorKey, titleTextColorKey = _h === void 0 ? 'ui_cpnt_textlabel_sys_primary' : _h, descText = _a.descText, _j = _a.descTextColorKey, descTextColorKey = _j === void 0 ? 'ui_cpnt_textlabel_sys_secondary' : _j, _k = _a.descLineLimit, descLineLimit = _k === void 0 ? 2 : _k, _l = _a.imageMode, imageMode = _l === void 0 ? 'none' : _l, _m = _a.imageShapeType, imageShapeType = _m === void 0 ? 'round' : _m, imageSrc = _a.imageSrc, imageWidth = _a.imageWidth, _o = _a.imageRatio, imageRatio = _o === void 0 ? '1_1' : _o, _p = _a.imageScaleType, imageScaleType = _p === void 0 ? 'cover' : _p, _q = _a.chipMode, chipMode = _q === void 0 ? 'none' : _q, chipText = _a.chipText, _r = _a.displayType, displayType = _r === void 0 ? 'none' : _r, iBtn1IconName = _a.iBtn1IconName, _s = _a.iBtn1IconFillType, iBtn1IconFillType = _s === void 0 ? 'line' : _s, iBtn1IconColorKey = _a.iBtn1IconColorKey, iBtn2IconName = _a.iBtn2IconName, _t = _a.iBtn2IconFillType, iBtn2IconFillType = _t === void 0 ? 'line' : _t, iBtn2IconColorKey = _a.iBtn2IconColorKey, iBtn3IconName = _a.iBtn3IconName, _u = _a.iBtn3IconFillType, iBtn3IconFillType = _u === void 0 ? 'line' : _u, iBtn3IconColorKey = _a.iBtn3IconColorKey, _v = _a.paddingTop, paddingTop = _v === void 0 ? 'spacing_d' : _v, _w = _a.paddingRight, paddingRight = _w === void 0 ? 'spacing_d' : _w, _x = _a.paddingBottom, paddingBottom = _x === void 0 ? 'spacing_d' : _x, _y = _a.paddingLeft, paddingLeft = _y === void 0 ? 'spacing_d' : _y, id = _a.id, onClick = _a.onClick, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onClickIBtn3 = _a.onClickIBtn3;
|
|
46
46
|
var handleClick = function () {
|
|
47
47
|
if (state === 'disabled') {
|
|
48
48
|
return;
|
|
@@ -88,7 +88,7 @@ function BoxItem(_a) {
|
|
|
88
88
|
alignItems: 'center',
|
|
89
89
|
justifyContent: 'space-between',
|
|
90
90
|
cursor: state === 'disabled' ? 'default' : selectionMode === 'use' ? 'pointer' : 'default'
|
|
91
|
-
} }, { children: [(0, jsx_runtime_1.jsxs)(
|
|
91
|
+
} }, { children: [(0, jsx_runtime_1.jsxs)(S_LeftBox, { children: [checkboxMode !== 'none' && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox, __assign({ hasRightBox: true }, { children: (0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Checkbox, { selected: selectState === 'selected', isIndeterminate: checkboxMode === 'indeterminate' }) }))), imageMode === 'use' && ((0, jsx_runtime_1.jsx)(LeftBox_1.LeftBox.Image, { shape: imageShapeType, src: imageSrc, width: imageWidth, ratio: imageRatio, scaleType: imageScaleType })), (0, jsx_runtime_1.jsxs)(S_TextGroup, { children: [titleText && ((0, jsx_runtime_1.jsx)(index_1.M_TextLabel, { text: titleText, colorOverride: state === 'disabled' ? 'ui_cpnt_textlabel_sys_secondary' : titleTextColorKey, styleTheme: titleFontSize, lineLimit: titleTextLineLimit, ellipsisMode: "use" })), descText && ((0, jsx_runtime_1.jsx)(index_1.M_TextLabel, { text: descText, colorOverride: state === 'disabled' ? 'ui_cpnt_textlabel_sys_secondary' : descTextColorKey, lineLimit: descLineLimit, ellipsisMode: "use", styleTheme: "caption1Regular" }))] })] }), (0, jsx_runtime_1.jsxs)(S_RightBox, { children: [chipMode === 'use' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Chip_1.Chip, { text: chipText }), (0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b" })] })), (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [displayType === 'ibtn_amount1' && ((0, jsx_runtime_1.jsx)(index_1.M_IconButton, { iconName: iBtn1IconName || 'ic_arrow_right', baseSize: "medium", fillType: "fill", iconFillType: iBtn1IconFillType, iconColorKey: iBtn1IconColorKey, onClick: handleIBtn1Click, state: state, iconSize: 20, baseColorKey: "ui_cpnt_button_fill_base_transparent", borderColorKey: "ui_cpnt_button_fill_base_transparent", shapeType: "rectangle" })), displayType === 'ibtn_amount2' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(index_1.M_IconButton, { iconName: iBtn1IconName || 'ic_arrow_right', fillType: "fill", iconFillType: iBtn1IconFillType, iconColorKey: iBtn1IconColorKey, onClick: handleIBtn1Click, state: state, iconSize: 20, baseColorKey: "ui_cpnt_button_fill_base_transparent", borderColorKey: "ui_cpnt_button_fill_base_transparent", baseSize: "medium", shapeType: "rectangle" }), (0, jsx_runtime_1.jsx)(index_1.M_IconButton, { iconName: iBtn2IconName || 'ic_arrow_right', fillType: "fill", iconFillType: iBtn2IconFillType, iconColorKey: iBtn2IconColorKey, onClick: handleIBtn2Click, state: state, iconSize: 20, baseColorKey: "ui_cpnt_button_fill_base_transparent", borderColorKey: "ui_cpnt_button_fill_base_transparent", baseSize: "medium", shapeType: "rectangle" })] })), displayType === 'ibtn_amount3' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(index_1.M_IconButton, { iconName: iBtn1IconName || 'ic_arrow_right', fillType: "fill", iconFillType: iBtn1IconFillType, iconColorKey: iBtn1IconColorKey, onClick: handleIBtn1Click, state: state, iconSize: 20, baseColorKey: "ui_cpnt_button_fill_base_transparent", borderColorKey: "ui_cpnt_button_fill_base_transparent", baseSize: "medium", shapeType: "rectangle" }), (0, jsx_runtime_1.jsx)(index_1.M_IconButton, { iconName: iBtn2IconName || 'ic_arrow_right', fillType: "fill", iconFillType: iBtn2IconFillType, iconColorKey: iBtn2IconColorKey, onClick: handleIBtn2Click, state: state, iconSize: 20, baseColorKey: "ui_cpnt_button_fill_base_transparent", borderColorKey: "ui_cpnt_button_fill_base_transparent", baseSize: "medium", shapeType: "rectangle" }), (0, jsx_runtime_1.jsx)(index_1.M_IconButton, { iconName: iBtn3IconName || 'ic_arrow_right', fillType: "fill", iconFillType: iBtn3IconFillType, iconColorKey: iBtn3IconColorKey, onClick: handleIBtn3Click, state: state, iconSize: 20, baseColorKey: "ui_cpnt_button_fill_base_transparent", borderColorKey: "ui_cpnt_button_fill_base_transparent", baseSize: "medium", shapeType: "rectangle" })] }))] }), indicatorMode === 'use' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.Spacing, { size: "spacing_b" }), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", fillType: "line", size: 20, colorKey: "ui_cpnt_icon_sys_grey_01" })] }))] })] })) })));
|
|
92
92
|
}
|
|
93
93
|
var S_BoxItem = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex-direction: row;\n gap: ", ";\n width: 100%;\n"], ["\n align-items: center;\n display: flex;\n flex-direction: row;\n gap: ", ";\n width: 100%;\n"])), function (_a) {
|
|
94
94
|
var theme = _a.theme;
|
|
@@ -98,9 +98,7 @@ var S_TextGroup = styled_components_1.default.div(templateObject_2 || (templateO
|
|
|
98
98
|
var theme = _a.theme;
|
|
99
99
|
return theme.spacing.spacingA;
|
|
100
100
|
});
|
|
101
|
-
var
|
|
102
|
-
|
|
103
|
-
return hasRightBox && 3;
|
|
104
|
-
});
|
|
101
|
+
var S_LeftBox = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex-direction: row;\n"], ["\n align-items: center;\n display: flex;\n flex-direction: row;\n"])));
|
|
102
|
+
var S_RightBox = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n flex-direction: row;\n"], ["\n align-items: center;\n display: flex;\n flex-direction: row;\n"])));
|
|
105
103
|
exports.default = BoxItem;
|
|
106
|
-
var templateObject_1, templateObject_2, templateObject_3;
|
|
104
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -30,7 +30,6 @@ import { ReactionButton } from './ReactionButton';
|
|
|
30
30
|
import { SegmentedButtonGroup } from './SegmentedButtonGroup';
|
|
31
31
|
import { Select } from './Select';
|
|
32
32
|
import { Slider } from './Slider';
|
|
33
|
-
import { Snackbar } from './Snackbar';
|
|
34
33
|
import { StatusBlock } from './StatusBlock';
|
|
35
34
|
import { TextButton } from './TextButton';
|
|
36
35
|
import { TextField } from './TextField';
|
|
@@ -38,4 +37,4 @@ import { TextLabel } from './TextLabel';
|
|
|
38
37
|
import { UploadIconButton } from './UploadIconButton';
|
|
39
38
|
import { UploadMainButton } from './UploadMainButton';
|
|
40
39
|
import { UploadTextButton } from './UploadTextButton';
|
|
41
|
-
export { BasicButtonGroup, BasicChatListItem, BasicFormGroup, BasicList, BasicListItem, BlogTextField, BodyTextGroup, BoxItem, Card, CardList, ChatBubbleListItem, ChatList, Checkbox, Chip, ContextMenu, ContextMenuItem, DatePicker, Dropdown, FloatingActionButton, HorizontalFormGroup, IconButton, ImageSlide, LottieReactionButton, MainButton, MobileAlertDialog, MobileHeaderBar, MobileTabBar, Radio, ReactionButton, SegmentedButtonGroup, Select, Slider,
|
|
40
|
+
export { BasicButtonGroup, BasicChatListItem, BasicFormGroup, BasicList, BasicListItem, BlogTextField, BodyTextGroup, BoxItem, Card, CardList, ChatBubbleListItem, ChatList, Checkbox, Chip, ContextMenu, ContextMenuItem, DatePicker, Dropdown, FloatingActionButton, HorizontalFormGroup, IconButton, ImageSlide, LottieReactionButton, MainButton, MobileAlertDialog, MobileHeaderBar, MobileTabBar, Radio, ReactionButton, SegmentedButtonGroup, Select, Slider, StatusBlock, TextButton, TextField, TextLabel, UploadIconButton, UploadMainButton, UploadTextButton };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UploadTextButton = exports.UploadMainButton = exports.UploadIconButton = exports.TextLabel = exports.TextField = exports.TextButton = exports.StatusBlock = exports.
|
|
3
|
+
exports.UploadTextButton = exports.UploadMainButton = exports.UploadIconButton = exports.TextLabel = exports.TextField = exports.TextButton = exports.StatusBlock = exports.Slider = exports.Select = exports.SegmentedButtonGroup = exports.ReactionButton = exports.Radio = exports.MobileTabBar = exports.MobileHeaderBar = exports.MobileAlertDialog = exports.MainButton = exports.LottieReactionButton = exports.ImageSlide = exports.IconButton = exports.HorizontalFormGroup = exports.FloatingActionButton = exports.Dropdown = exports.DatePicker = exports.ContextMenuItem = exports.ContextMenu = exports.Chip = exports.Checkbox = exports.ChatList = exports.ChatBubbleListItem = exports.CardList = exports.Card = exports.BoxItem = exports.BodyTextGroup = exports.BlogTextField = exports.BasicListItem = exports.BasicList = exports.BasicFormGroup = exports.BasicChatListItem = exports.BasicButtonGroup = void 0;
|
|
4
4
|
var BasicButtonGroup_1 = require("./BasicButtonGroup");
|
|
5
5
|
Object.defineProperty(exports, "BasicButtonGroup", { enumerable: true, get: function () { return BasicButtonGroup_1.BasicButtonGroup; } });
|
|
6
6
|
var BasicChatListItem_1 = require("./BasicChatListItem");
|
|
@@ -65,8 +65,6 @@ var Select_1 = require("./Select");
|
|
|
65
65
|
Object.defineProperty(exports, "Select", { enumerable: true, get: function () { return Select_1.Select; } });
|
|
66
66
|
var Slider_1 = require("./Slider");
|
|
67
67
|
Object.defineProperty(exports, "Slider", { enumerable: true, get: function () { return Slider_1.Slider; } });
|
|
68
|
-
var Snackbar_1 = require("./Snackbar");
|
|
69
|
-
Object.defineProperty(exports, "Snackbar", { enumerable: true, get: function () { return Snackbar_1.Snackbar; } });
|
|
70
68
|
var StatusBlock_1 = require("./StatusBlock");
|
|
71
69
|
Object.defineProperty(exports, "StatusBlock", { enumerable: true, get: function () { return StatusBlock_1.StatusBlock; } });
|
|
72
70
|
var TextButton_1 = require("./TextButton");
|
|
@@ -9,5 +9,5 @@ export { ContainersBox as MPContainersBox } from './layout/LayoutMP/ContainersBo
|
|
|
9
9
|
export { LayoutMS } from './layout/LayoutMS';
|
|
10
10
|
export { NavigationContainer as MSNavigationContainer } from './layout/LayoutMS/Containers';
|
|
11
11
|
export { ContainersBox as MSContainersBox } from './layout/LayoutMS/ContainersBox';
|
|
12
|
-
export { BasicButtonGroup as M_BasicButtonGroup, BasicChatListItem as M_BasicChatListItem, BasicFormGroup as M_BasicFormGroup, BasicList as M_BasicList, BasicListItem as M_BasicListItem, BlogTextField as M_BlogTextField, BodyTextGroup as M_BodyTextGroup, BoxItem as M_BoxItem, Card as M_Card, CardList as M_CardList, ChatBubbleListItem as M_ChatBubbleListItem, ChatList as M_ChatList, Checkbox as M_Checkbox, Chip as M_Chip, ContextMenu as M_ContextMenu, ContextMenuItem as M_ContextMenuItem, DatePicker as M_DatePicker, Dropdown as M_Dropdown, FloatingActionButton as M_FloatingActionButton, HorizontalFormGroup as M_HorizontalFormGroup, IconButton as M_IconButton, ImageSlide as M_ImageSlide, LottieReactionButton as M_LottieReactionButton, MainButton as M_MainButton, MobileAlertDialog as M_MobileAlertDialog, MobileHeaderBar as M_MobileHeaderBar, MobileTabBar as M_MobileTabBar, Radio as M_Radio, ReactionButton as M_ReactionButton, SegmentedButtonGroup as M_SegmentedButtonGroup, Select as M_Select, Slider as M_Slider,
|
|
12
|
+
export { BasicButtonGroup as M_BasicButtonGroup, BasicChatListItem as M_BasicChatListItem, BasicFormGroup as M_BasicFormGroup, BasicList as M_BasicList, BasicListItem as M_BasicListItem, BlogTextField as M_BlogTextField, BodyTextGroup as M_BodyTextGroup, BoxItem as M_BoxItem, Card as M_Card, CardList as M_CardList, ChatBubbleListItem as M_ChatBubbleListItem, ChatList as M_ChatList, Checkbox as M_Checkbox, Chip as M_Chip, ContextMenu as M_ContextMenu, ContextMenuItem as M_ContextMenuItem, DatePicker as M_DatePicker, Dropdown as M_Dropdown, FloatingActionButton as M_FloatingActionButton, HorizontalFormGroup as M_HorizontalFormGroup, IconButton as M_IconButton, ImageSlide as M_ImageSlide, LottieReactionButton as M_LottieReactionButton, MainButton as M_MainButton, MobileAlertDialog as M_MobileAlertDialog, MobileHeaderBar as M_MobileHeaderBar, MobileTabBar as M_MobileTabBar, Radio as M_Radio, ReactionButton as M_ReactionButton, SegmentedButtonGroup as M_SegmentedButtonGroup, Select as M_Select, Slider as M_Slider, StatusBlock as M_StatusBlock, TextButton as M_TextButton, TextField as M_TextField, TextLabel as M_TextLabel, UploadIconButton as M_UploadIconButton, UploadMainButton as M_UploadMainButton, UploadTextButton as M_UploadTextButton } from './components';
|
|
13
13
|
export { AnnotationSheet as M_AnnotationSheet, ContentSheet as M_ContentSheet, MobileBasicModal as M_MobileBasicModal, SectionSheet as M_SectionSheet } from './panels';
|
package/dist/src/mobile/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.M_UploadIconButton = exports.M_TextLabel = exports.M_TextField = exports.M_TextButton = exports.M_StatusBlock = exports.
|
|
4
|
-
exports.M_SectionSheet = exports.M_MobileBasicModal = exports.M_ContentSheet = exports.M_AnnotationSheet = exports.M_UploadTextButton =
|
|
3
|
+
exports.M_UploadMainButton = exports.M_UploadIconButton = exports.M_TextLabel = exports.M_TextField = exports.M_TextButton = exports.M_StatusBlock = exports.M_Slider = exports.M_Select = exports.M_SegmentedButtonGroup = exports.M_ReactionButton = exports.M_Radio = exports.M_MobileTabBar = exports.M_MobileHeaderBar = exports.M_MobileAlertDialog = exports.M_MainButton = exports.M_LottieReactionButton = exports.M_ImageSlide = exports.M_IconButton = exports.M_HorizontalFormGroup = exports.M_FloatingActionButton = exports.M_Dropdown = exports.M_DatePicker = exports.M_ContextMenuItem = exports.M_ContextMenu = exports.M_Chip = exports.M_Checkbox = exports.M_ChatList = exports.M_ChatBubbleListItem = exports.M_CardList = exports.M_Card = exports.M_BoxItem = exports.M_BodyTextGroup = exports.M_BlogTextField = exports.M_BasicListItem = exports.M_BasicList = exports.M_BasicFormGroup = exports.M_BasicChatListItem = exports.M_BasicButtonGroup = exports.MSContainersBox = exports.MSNavigationContainer = exports.LayoutMS = exports.MPContainersBox = exports.MPTabContainer = exports.MPNavigationContainer = exports.LayoutMP = exports.MMContainersBox = exports.MMNavigationContainer = exports.LayoutMM = exports.MFContainersBox = exports.LayoutMF = void 0;
|
|
4
|
+
exports.M_SectionSheet = exports.M_MobileBasicModal = exports.M_ContentSheet = exports.M_AnnotationSheet = exports.M_UploadTextButton = void 0;
|
|
5
5
|
// layoutMF
|
|
6
6
|
var LayoutMF_1 = require("./layout/LayoutMF");
|
|
7
7
|
Object.defineProperty(exports, "LayoutMF", { enumerable: true, get: function () { return LayoutMF_1.LayoutMF; } });
|
|
@@ -63,7 +63,6 @@ Object.defineProperty(exports, "M_ReactionButton", { enumerable: true, get: func
|
|
|
63
63
|
Object.defineProperty(exports, "M_SegmentedButtonGroup", { enumerable: true, get: function () { return components_1.SegmentedButtonGroup; } });
|
|
64
64
|
Object.defineProperty(exports, "M_Select", { enumerable: true, get: function () { return components_1.Select; } });
|
|
65
65
|
Object.defineProperty(exports, "M_Slider", { enumerable: true, get: function () { return components_1.Slider; } });
|
|
66
|
-
Object.defineProperty(exports, "M_Snackbar", { enumerable: true, get: function () { return components_1.Snackbar; } });
|
|
67
66
|
Object.defineProperty(exports, "M_StatusBlock", { enumerable: true, get: function () { return components_1.StatusBlock; } });
|
|
68
67
|
Object.defineProperty(exports, "M_TextButton", { enumerable: true, get: function () { return components_1.TextButton; } });
|
|
69
68
|
Object.defineProperty(exports, "M_TextField", { enumerable: true, get: function () { return components_1.TextField; } });
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getErrorByName = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* 중첩된 객체 구조에서 점(.)으로 구분된 경로를 통해 에러 객체를 조회합니다
|
|
6
|
-
*/
|
|
7
|
-
var getErrorByName = function (errors, name) {
|
|
8
|
-
return name.split('.').reduce(function (errors, property) { return errors && errors[property]; }, errors);
|
|
9
|
-
};
|
|
10
|
-
exports.getErrorByName = getErrorByName;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type SnackbarPosition = 'top-left' | 'top-center' | 'top-right' | 'right-top' | 'right-center' | 'right-bottom' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'left-top' | 'left-center' | 'left-bottom' | 'center';
|
|
3
|
-
export interface BaseSnackbarProps {
|
|
4
|
-
message: string;
|
|
5
|
-
actionBtnName?: string;
|
|
6
|
-
position?: SnackbarPosition;
|
|
7
|
-
hideActionBtn?: boolean;
|
|
8
|
-
onActionBtnClick?: () => void;
|
|
9
|
-
duration?: number;
|
|
10
|
-
anchorRef?: React.RefObject<HTMLElement>;
|
|
11
|
-
}
|
|
12
|
-
export interface SnackbarProps extends BaseSnackbarProps {
|
|
13
|
-
onClose: () => void;
|
|
14
|
-
}
|
|
15
|
-
declare const Snackbar: React.FC<SnackbarProps>;
|
|
16
|
-
export default Snackbar;
|