pds-dev-kit-web 2.0.14-alpha.0 → 2.0.14
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/src/common/assets/icons/line/DottedCircle.d.ts +4 -0
- package/dist/src/common/assets/icons/line/DottedCircle.js +30 -0
- package/dist/src/common/assets/icons/line/index.d.ts +1 -0
- package/dist/src/common/assets/icons/line/index.js +2 -0
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +14 -2
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +13 -1
- package/dist/src/common/styles/colorSet/UIColor.json +26 -1
- package/dist/src/common/styles/colorSet/index.d.ts +51 -2
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +25 -0
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +4 -1
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +36 -11
- package/dist/src/desktop/common/components/TextFieldBase/constants.d.ts +1 -0
- package/dist/src/desktop/common/components/TextFieldBase/constants.js +4 -0
- package/dist/src/desktop/components/IconButton/IconButton.d.ts +4 -2
- package/dist/src/desktop/components/IconButton/IconButton.js +52 -4
- package/dist/src/desktop/components/IconButton/constants.d.ts +15 -0
- package/dist/src/desktop/components/IconButton/constants.js +19 -0
- package/dist/src/desktop/components/TextField/TextField.d.ts +3 -1
- package/dist/src/desktop/components/TextField/TextField.js +5 -5
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/ContentsContainer.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/ContentsContainer.js +2 -1
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSG.js +57 -32
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSI.d.ts +15 -0
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSI.js +117 -0
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/index.d.ts +1 -0
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/index.js +3 -1
- package/dist/src/desktop/layout/LayoutWS/ContainersBox/ContainersBox.d.ts +1 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +4 -1
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +35 -10
- package/dist/src/mobile/common/components/TextFieldBase/constants.d.ts +1 -0
- package/dist/src/mobile/common/components/TextFieldBase/constants.js +4 -0
- package/dist/src/mobile/components/TextField/TextField.d.ts +3 -1
- package/dist/src/mobile/components/TextField/TextField.js +5 -5
- package/dist/src/sub/DynamicLayout/mock_storybook.js +20 -112
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateA/mobile/components/SectionContents.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/MembershipSection/NormalType/templates/TemplateB/mobile/components/SectionContents.js +1 -1
- package/package.json +1 -1
- package/release-note.md +13 -7
|
@@ -46,7 +46,7 @@ var IconButton_1 = require("../IconButton");
|
|
|
46
46
|
var TextLabel_1 = require("../TextLabel");
|
|
47
47
|
function TextField(_a) {
|
|
48
48
|
var _b;
|
|
49
|
-
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, _c = _a.textAlign, textAlign = _c === void 0 ? 'left' : _c, prefixText = _a.prefixText, suffixText = _a.suffixText, validation = _a.validation, _d = _a.validationPoint, validationPoint = _d === void 0 ? 'onBlur' : _d, _e = _a.preventBlankMode, preventBlankMode = _e === void 0 ? 'none' : _e, _f = _a.enterSubmitMode, enterSubmitMode = _f === void 0 ? 'none' : _f, _g = _a.size, size = _g === void 0 ? 'large' : _g, _h = _a.responsiveMode, responsiveMode = _h === void 0 ? 'none' : _h, _j = _a.textLineType, textLineType = _j === void 0 ? 'single' : _j, _k = _a.multiRows, multiRows = _k === void 0 ? 8 : _k, _l = _a.autoMinRows, autoMinRows = _l === void 0 ? 8 : _l, autoMaxRows = _a.autoMaxRows, _m = _a.inputType, inputType = _m === void 0 ? 'text' : _m, _o = _a.state, state = _o === void 0 ? 'normal' : _o, iBtn1IconName = _a.iBtn1IconName, _p = _a.iBtn1IconFillType, iBtn1IconFillType = _p === void 0 ? 'line' : _p, iBtn2IconName = _a.iBtn2IconName, _q = _a.iBtn2IconFillType, iBtn2IconFillType = _q === void 0 ? 'line' : _q, _r = _a.colorTheme, colorTheme = _r === void 0 ? 'none' : _r, max = _a.max, maxLength = _a.maxLength, min = _a.min, customWidth = _a.customWidth, _s = _a.autoComplete, autoComplete = _s === void 0 ? 'on' : _s, onBlur = _a.onBlur, onChange = _a.onChange, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onFocus = _a.onFocus, onKeyUp = _a.onKeyUp, onKeyDown = _a.onKeyDown, onTarget = _a.onTarget;
|
|
49
|
+
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, _c = _a.textAlign, textAlign = _c === void 0 ? 'left' : _c, prefixText = _a.prefixText, suffixText = _a.suffixText, validation = _a.validation, _d = _a.validationPoint, validationPoint = _d === void 0 ? 'onBlur' : _d, _e = _a.preventBlankMode, preventBlankMode = _e === void 0 ? 'none' : _e, _f = _a.enterSubmitMode, enterSubmitMode = _f === void 0 ? 'none' : _f, _g = _a.size, size = _g === void 0 ? 'large' : _g, _h = _a.responsiveMode, responsiveMode = _h === void 0 ? 'none' : _h, _j = _a.textLineType, textLineType = _j === void 0 ? 'single' : _j, _k = _a.multiRows, multiRows = _k === void 0 ? 8 : _k, _l = _a.autoMinRows, autoMinRows = _l === void 0 ? 8 : _l, autoMaxRows = _a.autoMaxRows, _m = _a.inputType, inputType = _m === void 0 ? 'text' : _m, _o = _a.state, state = _o === void 0 ? 'normal' : _o, iBtn1IconName = _a.iBtn1IconName, _p = _a.iBtn1IconFillType, iBtn1IconFillType = _p === void 0 ? 'line' : _p, iBtn2IconName = _a.iBtn2IconName, _q = _a.iBtn2IconFillType, iBtn2IconFillType = _q === void 0 ? 'line' : _q, _r = _a.colorTheme, colorTheme = _r === void 0 ? 'none' : _r, max = _a.max, maxLength = _a.maxLength, min = _a.min, customWidth = _a.customWidth, _s = _a.autoComplete, autoComplete = _s === void 0 ? 'on' : _s, _t = _a.numberStepperMode, numberStepperMode = _t === void 0 ? 'none' : _t, numberStep = _a.numberStep, onBlur = _a.onBlur, onChange = _a.onChange, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onFocus = _a.onFocus, onKeyUp = _a.onKeyUp, onKeyDown = _a.onKeyDown, onTarget = _a.onTarget;
|
|
50
50
|
var basicThemeIconColors = {
|
|
51
51
|
normal: 'ui_cpnt_button_icon_default',
|
|
52
52
|
read_only: 'ui_cpnt_button_icon_default',
|
|
@@ -62,9 +62,9 @@ function TextField(_a) {
|
|
|
62
62
|
read_only: 'ui_cpnt_textfield_icon_colortheme_transparent_readonly',
|
|
63
63
|
disabled: 'ui_cpnt_textfield_icon_colortheme_transparent_disabled'
|
|
64
64
|
};
|
|
65
|
-
var
|
|
66
|
-
var
|
|
67
|
-
var
|
|
65
|
+
var _u = (0, react_1.useState)(false), isFocused = _u[0], setIsFocused = _u[1];
|
|
66
|
+
var _v = (0, react_hook_form_1.useFormContext)(), register = _v.register, trigger = _v.trigger, errors = _v.formState.errors;
|
|
67
|
+
var _w = register(name, validation), validateOnChange = _w.onChange, validateOnBlur = _w.onBlur;
|
|
68
68
|
var isError = Object.keys(errors).some(function (error) { return error === name; });
|
|
69
69
|
var handleClickIBtn1 = function () {
|
|
70
70
|
if (onClickIBtn1) {
|
|
@@ -136,7 +136,7 @@ function TextField(_a) {
|
|
|
136
136
|
break;
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [prefixText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: prefixText, styleTheme: "caption1Bold", colorTheme: "sysTextTertiary", singleLineMode: "use" }, void 0), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0)] }, void 0)), (0, jsx_runtime_1.jsx)(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, textAlign: textAlign, validation: validation, preventBlankMode: preventBlankMode, enterSubmitMode: enterSubmitMode, textLineType: "single", inputType: inputType, state: state, colorTheme: colorTheme, min: min, max: max, maxLength: maxLength, textSize: "form2", textWeight: "normal", deleteIconMode: "use", deleteIconSize: size === 'large' || size === 'rlarge' ? 20 : 16, deleteIconColor: deleteIconColor, isFocused: isFocused, autoComplete: autoComplete, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }, void 0), (0, jsx_runtime_1.jsxs)(S_RightBox, { children: [suffixText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: suffixText, styleTheme: "caption1Bold", colorTheme: "sysTextTertiary", textAlign: "right", singleLineMode: "use" }, void 0), size === 'large' ? ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0)) : ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }, void 0))] }, void 0)), iBtn2IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iBtn2IconName, baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: size === 'large' || size === 'rlarge' ? 20 : 16, iconColorKey: colorTheme &&
|
|
139
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [prefixText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: prefixText, styleTheme: "caption1Bold", colorTheme: "sysTextTertiary", singleLineMode: "use" }, void 0), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0)] }, void 0)), (0, jsx_runtime_1.jsx)(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, textAlign: inputType === 'number' && numberStepperMode === 'use' ? 'right' : textAlign, validation: validation, preventBlankMode: preventBlankMode, enterSubmitMode: enterSubmitMode, textLineType: "single", inputType: inputType, state: state, colorTheme: colorTheme, min: min, max: max, maxLength: maxLength, textSize: "form2", textWeight: "normal", deleteIconMode: "use", deleteIconSize: size === 'large' || size === 'rlarge' ? 20 : 16, deleteIconColor: deleteIconColor, isFocused: isFocused, autoComplete: autoComplete, stepperMode: inputType === 'number' && numberStepperMode === 'use' ? 'use' : 'none', innerSpinButtonSize: size === 'small' ? 12 : 16, step: numberStep, onFocus: handleFocus, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyUp: handleKeyUp, onKeyDown: handleKeyDown }, void 0), (0, jsx_runtime_1.jsxs)(S_RightBox, { children: [suffixText && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: suffixText, styleTheme: "caption1Bold", colorTheme: "sysTextTertiary", textAlign: "right", singleLineMode: "use" }, void 0), size === 'large' ? ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" }, void 0)) : ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }, void 0))] }, void 0)), iBtn2IconName && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { iconName: iBtn2IconName, baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: size === 'large' || size === 'rlarge' ? 20 : 16, iconColorKey: colorTheme &&
|
|
140
140
|
{
|
|
141
141
|
none: basicThemeIconColors[state],
|
|
142
142
|
dark: darkThemeIconColors[state],
|
|
@@ -1146,18 +1146,21 @@ exports.SampleSectionsMock = [
|
|
|
1146
1146
|
updatedAt: '2023-01-12T08:03:48'
|
|
1147
1147
|
},
|
|
1148
1148
|
{
|
|
1149
|
-
display: true,
|
|
1150
1149
|
type: 'PROGRAMMED',
|
|
1151
1150
|
program: 'MEMBERSHIP_DISPLAY',
|
|
1152
|
-
|
|
1151
|
+
display: true,
|
|
1152
|
+
dynamicLayoutSectionItems: null,
|
|
1153
1153
|
id: 6010,
|
|
1154
|
+
insertedAt: '2023-01-06T09:05:45',
|
|
1154
1155
|
manifest: {
|
|
1155
1156
|
availableProperties: [
|
|
1156
1157
|
'title',
|
|
1157
1158
|
'description',
|
|
1158
1159
|
'button_alpha_label',
|
|
1159
1160
|
'button_alpha_link_type',
|
|
1160
|
-
'button_alpha_link_src'
|
|
1161
|
+
'button_alpha_link_src',
|
|
1162
|
+
'section_content_media_type',
|
|
1163
|
+
'section_content_media_src'
|
|
1161
1164
|
],
|
|
1162
1165
|
availableStyles: [
|
|
1163
1166
|
'title_color_in_hex',
|
|
@@ -1176,7 +1179,7 @@ exports.SampleSectionsMock = [
|
|
|
1176
1179
|
availableTemplates: ['PRG_MEMBERSHIP_DISPLAY_A', 'PRG_MEMBERSHIP_DISPLAY_B'],
|
|
1177
1180
|
schema: 'PRG_MEMBERSHIP_DISPLAY'
|
|
1178
1181
|
},
|
|
1179
|
-
order:
|
|
1182
|
+
order: 10,
|
|
1180
1183
|
properties: {
|
|
1181
1184
|
buttonAlphaLabel: 'Lorem Ipsum',
|
|
1182
1185
|
buttonAlphaLinkSrc: 'https://team.publ.space',
|
|
@@ -1197,140 +1200,45 @@ exports.SampleSectionsMock = [
|
|
|
1197
1200
|
carouselAutoplayTime: 3,
|
|
1198
1201
|
carouselInfiniteLoopMode: 'NO_USE',
|
|
1199
1202
|
description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.",
|
|
1203
|
+
itemLinkMethod: 'CLICK_BUTTON_IN_ITEM',
|
|
1200
1204
|
sectionContentMediaSrc: '',
|
|
1201
1205
|
sectionContentMediaType: 'IMAGE',
|
|
1202
1206
|
title: 'Lorem Ipsum',
|
|
1203
|
-
multiPurposeUrl: 'https://app.publr.co/'
|
|
1204
|
-
itemLinkMethod: 'NONE'
|
|
1207
|
+
multiPurposeUrl: 'https://app.publr.co/'
|
|
1205
1208
|
},
|
|
1206
1209
|
styles: {
|
|
1207
|
-
backgroundColorInHex: '#
|
|
1210
|
+
backgroundColorInHex: '#FF1D973B',
|
|
1208
1211
|
backgroundMediaSrc: '',
|
|
1209
1212
|
backgroundMediaType: 'IMAGE',
|
|
1210
1213
|
backgroundOverlayColorInHex: '#FFFFFF00',
|
|
1211
|
-
buttonAlphaBackgroundColorInHex: '#
|
|
1214
|
+
buttonAlphaBackgroundColorInHex: '#FFC0CBFF',
|
|
1212
1215
|
buttonAlphaDesignType: 'C',
|
|
1213
1216
|
buttonAlphaLabelColorInHex: '#f5efd9FF',
|
|
1214
|
-
buttonBravoBackgroundColorInHex: '#
|
|
1217
|
+
buttonBravoBackgroundColorInHex: '#FFC0CBFF',
|
|
1215
1218
|
buttonBravoDesignType: 'E',
|
|
1216
1219
|
buttonBravoLabelColorInHex: '#FFFFFFFF',
|
|
1217
1220
|
buttonCharlieBackgroundColorInHex: '#465FF000',
|
|
1218
1221
|
buttonCharlieDesignType: 'E',
|
|
1219
1222
|
buttonCharlieLabelColorInHex: '#FFFFFFFF',
|
|
1220
|
-
buttonDeltaBackgroundColorInHex: '#
|
|
1223
|
+
buttonDeltaBackgroundColorInHex: '#FFC0CBFF',
|
|
1221
1224
|
buttonDeltaDesignType: 'A',
|
|
1222
1225
|
buttonDeltaLabelColorInHex: '#FFFFFFFF',
|
|
1223
|
-
buttonEchoBackgroundColorInHex: '#
|
|
1226
|
+
buttonEchoBackgroundColorInHex: '#FFC0CBFF',
|
|
1224
1227
|
buttonEchoDesignType: 'A',
|
|
1225
1228
|
buttonEchoLabelColorInHex: '#FFFFFFFF',
|
|
1226
|
-
descriptionColorInHex: '#
|
|
1227
|
-
itemButtonBackgroundColorInHex: '#
|
|
1229
|
+
descriptionColorInHex: '#FEECD8FF',
|
|
1230
|
+
itemButtonBackgroundColorInHex: '#FFC0CBFF',
|
|
1228
1231
|
itemButtonDesignType: 'A',
|
|
1229
1232
|
itemButtonLabelColorInHex: '#FFFFFFFF',
|
|
1230
1233
|
itemDescriptionColorInHex: '#68686BFF',
|
|
1231
1234
|
itemTitleColorInHex: '#1E1E20FF',
|
|
1232
|
-
|
|
1233
|
-
itemHighlightingColorInHex: '#ff7f50FF',
|
|
1235
|
+
itemHighlightingColorInHex: '#FF1D97FF',
|
|
1234
1236
|
itemToneType: 'LIGHT',
|
|
1237
|
+
titleColorInHex: '#F8FFACFF',
|
|
1235
1238
|
programmedItemActionButtonTextType: 'A'
|
|
1236
1239
|
},
|
|
1237
|
-
template: '
|
|
1238
|
-
|
|
1239
|
-
mdid: 'mdid',
|
|
1240
|
-
preview: {
|
|
1241
|
-
availableResources: ['REAL.MEMBERSHIP_DISPLAY'],
|
|
1242
|
-
resources: {
|
|
1243
|
-
mock: {},
|
|
1244
|
-
real: {
|
|
1245
|
-
membershipDisplay: {
|
|
1246
|
-
id: 1,
|
|
1247
|
-
mdid: "MEMBERSHIP_DISPLAY_MD_ID",
|
|
1248
|
-
title: "MEMBERSHIP_DISPLAY_MD_TITLE",
|
|
1249
|
-
isDefault: true,
|
|
1250
|
-
connectedMemberships: Array.from({ length: 6 }, function (_, i) {
|
|
1251
|
-
var alphabet = ['A', 'B', 'C', 'D', 'E', 'F'];
|
|
1252
|
-
var cardImage = [
|
|
1253
|
-
'https://cdn.dev.publishingkit.net/7f3f7a31-023b-4852-9a11-cbac31d25d93',
|
|
1254
|
-
'https://cdn.dev.publishingkit.net/c8973261-6c2a-4833-9b9f-20ee355647e4',
|
|
1255
|
-
'https://cdn.dev.publishingkit.net/8e585c93-9591-4300-ad93-d002560cbeae',
|
|
1256
|
-
'https://cdn.dev.publishingkit.net/4aaa2811-b3ff-435c-b50a-9486376ab230',
|
|
1257
|
-
'https://cdn.dev.publishingkit.net/5111c33c-07ba-4b91-8eb6-9975f4cd906a',
|
|
1258
|
-
'https://cdn.dev.publishingkit.net/16ac0a8a-acb1-465b-960c-6be66f2a04e8.jpg'
|
|
1259
|
-
];
|
|
1260
|
-
var getOverlayType = function () {
|
|
1261
|
-
if (i % 3 === 1)
|
|
1262
|
-
return 'SOLID';
|
|
1263
|
-
if (i % 3 === 2)
|
|
1264
|
-
return 'GRADIENT';
|
|
1265
|
-
return 'NONE';
|
|
1266
|
-
};
|
|
1267
|
-
var getDesignSchema = function () {
|
|
1268
|
-
if (i % 3 === 1)
|
|
1269
|
-
return 'B';
|
|
1270
|
-
if (i % 3 === 2)
|
|
1271
|
-
return 'C';
|
|
1272
|
-
return 'A';
|
|
1273
|
-
};
|
|
1274
|
-
return {
|
|
1275
|
-
id: i + 1,
|
|
1276
|
-
order: i,
|
|
1277
|
-
mdid: "CONNECTED_MEMBERSHIPS_" + alphabet[i] + "_MD_ID",
|
|
1278
|
-
mid: "CONNECTED_MEMBERSHIPS_" + alphabet[i] + "_M_ID",
|
|
1279
|
-
membership: {
|
|
1280
|
-
id: i + 1,
|
|
1281
|
-
type: 'GENERAL',
|
|
1282
|
-
mid: "MEMBERSHIP_" + alphabet[i] + "_MID",
|
|
1283
|
-
title: '청춘이 황금시대를 우리의 같은 무엇을 쓸쓸한 돋고, 장식하는 칼이다. 동산에는 투명하되!',
|
|
1284
|
-
insertedAt: '2023-01-06T09:05:45',
|
|
1285
|
-
updatedAt: '2023-01-06T09:05:45',
|
|
1286
|
-
membershipCardTemplate: {
|
|
1287
|
-
backgroundImageSrc: cardImage[i],
|
|
1288
|
-
logoImageSrc: 'https://publ-upload-local.s3.ap-northeast-2.amazonaws.com/e11d1a92-a1c0-4faa-b341-13a32f21828d_image',
|
|
1289
|
-
overlayType: getOverlayType(),
|
|
1290
|
-
overlayColorPrimary: '#FFC0CB49',
|
|
1291
|
-
overlayColorSecondary: '#31313149',
|
|
1292
|
-
designSchema: getDesignSchema()
|
|
1293
|
-
},
|
|
1294
|
-
membershipBenefitInfo: {
|
|
1295
|
-
benefitAlpha: '청춘이 황금시대를 우리의 같은 무엇을 쓸쓸한 돋고, 장식하는 칼이다. 동산에는 투명하되!',
|
|
1296
|
-
benefitBravo: 'Lorem ipsum dolor sit amet. Et magnam molestiae.',
|
|
1297
|
-
benefitCharlie: '청춘이 황금시대를 우리의 같은 무엇을 쓸쓸한 돋고, 장식하는 칼이다. 동산에는 투명하되!',
|
|
1298
|
-
benefitDelta: 'Lorem ipsum dolor sit amet. Et magnam molestiae.',
|
|
1299
|
-
benefitEcho: 'Lorem ipsum dolor sit amet. Et magnam molestiae.'
|
|
1300
|
-
},
|
|
1301
|
-
totalSubscriptionProducts: 3
|
|
1302
|
-
},
|
|
1303
|
-
connectedSubscriptionProducts: Array.from({ length: 1 }, function () {
|
|
1304
|
-
return {
|
|
1305
|
-
id: i + 1,
|
|
1306
|
-
order: i,
|
|
1307
|
-
connectedMembershipId: i + 1,
|
|
1308
|
-
subscriptionProductId: i + 1,
|
|
1309
|
-
subscriptionProduct: {
|
|
1310
|
-
id: i + 1,
|
|
1311
|
-
type: 'COUPON_ONCE_FINITE',
|
|
1312
|
-
title: '청춘이 황금시대를 우리의 같은 무엇을',
|
|
1313
|
-
alias: "CONNECTED_SUBSCRIPTION_PRODUCTS_" + alphabet[i] + "_ALIAS",
|
|
1314
|
-
expiryPeriodInDays: 7,
|
|
1315
|
-
isDeactivated: i % 2 === 0,
|
|
1316
|
-
fee: {
|
|
1317
|
-
currency: 'KRW',
|
|
1318
|
-
amount: 10000
|
|
1319
|
-
},
|
|
1320
|
-
insertedAt: '2023-01-06T09:05:45',
|
|
1321
|
-
updatedAt: '2023-01-06T09:05:45'
|
|
1322
|
-
}
|
|
1323
|
-
};
|
|
1324
|
-
})
|
|
1325
|
-
};
|
|
1326
|
-
})
|
|
1327
|
-
}
|
|
1328
|
-
}
|
|
1329
|
-
}
|
|
1330
|
-
}
|
|
1331
|
-
},
|
|
1332
|
-
insertedAt: '2023-01-30T10:24:35',
|
|
1333
|
-
updatedAt: '2023-01-30T10:24:35'
|
|
1240
|
+
template: 'PRG_MEMBERSHIP_DISPLAY_B',
|
|
1241
|
+
updatedAt: '2023-01-06T09:05:45'
|
|
1334
1242
|
}
|
|
1335
1243
|
];
|
|
1336
1244
|
var MembershipSectionsMock = function (templateType) { return [
|
|
@@ -30,7 +30,7 @@ function SectionContents() {
|
|
|
30
30
|
}
|
|
31
31
|
var _a = section.styles, buttonAlphaBackgroundColorInHex = _a.buttonAlphaBackgroundColorInHex, buttonAlphaLabelColorInHex = _a.buttonAlphaLabelColorInHex, buttonAlphaDesignType = _a.buttonAlphaDesignType, descriptionColorInHex = _a.descriptionColorInHex, titleColorInHex = _a.titleColorInHex;
|
|
32
32
|
var _b = section.properties, title = _b.title, description = _b.description, buttonAlphaLabel = _b.buttonAlphaLabel, buttonAlphaLinkSrc = _b.buttonAlphaLinkSrc, buttonAlphaLinkType = _b.buttonAlphaLinkType;
|
|
33
|
-
return ((0, jsx_runtime_1.jsxs)(S_SectionDataBox, __assign({ isEmptySectionData: !title && !description && !buttonAlphaLinkSrc }, { children: [title && ((0, jsx_runtime_1.jsx)(components_1.M_MembershipSectionItem.Title, { text: title,
|
|
33
|
+
return ((0, jsx_runtime_1.jsxs)(S_SectionDataBox, __assign({ isEmptySectionData: !title && !description && !buttonAlphaLinkSrc }, { children: [title && ((0, jsx_runtime_1.jsx)(components_1.M_MembershipSectionItem.Title, { text: title, textAlign: "center", color: titleColorInHex, styleTheme: "headingBold" }, void 0)), description && ((0, jsx_runtime_1.jsx)(S_DescriptionWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.M_MembershipSectionItem.Description, { text: description, textAlign: "center", color: descriptionColorInHex, styleTheme: "body1Regular" }, void 0) }, void 0)), buttonAlphaLinkSrc && ((0, jsx_runtime_1.jsx)(S_ButtonWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.M_MembershipSectionItem.DesignedSectionButton, { buttonType: buttonAlphaDesignType, text: buttonAlphaLabel, linkType: buttonAlphaLinkType, src: buttonAlphaLinkSrc, textColor: buttonAlphaLabelColorInHex, backgroundColor: buttonAlphaBackgroundColorInHex, borderColor: buttonAlphaLabelColorInHex }, void 0) }, void 0))] }), void 0));
|
|
34
34
|
}
|
|
35
35
|
var S_SectionDataBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-bottom: ", ";\n"], ["\n margin-bottom: ", ";\n"])), function (_a) {
|
|
36
36
|
var isEmptySectionData = _a.isEmptySectionData, theme = _a.theme;
|
|
@@ -30,7 +30,7 @@ function SectionContents() {
|
|
|
30
30
|
}
|
|
31
31
|
var _a = section.styles, buttonAlphaBackgroundColorInHex = _a.buttonAlphaBackgroundColorInHex, buttonAlphaLabelColorInHex = _a.buttonAlphaLabelColorInHex, buttonAlphaDesignType = _a.buttonAlphaDesignType, descriptionColorInHex = _a.descriptionColorInHex, titleColorInHex = _a.titleColorInHex;
|
|
32
32
|
var _b = section.properties, title = _b.title, description = _b.description, buttonAlphaLabel = _b.buttonAlphaLabel, buttonAlphaLinkSrc = _b.buttonAlphaLinkSrc, buttonAlphaLinkType = _b.buttonAlphaLinkType;
|
|
33
|
-
return ((0, jsx_runtime_1.jsxs)(S_SectionDataBox, __assign({ isEmptySectionData: !title && !description && !buttonAlphaLinkSrc }, { children: [title && ((0, jsx_runtime_1.jsx)(components_1.M_MembershipSectionItem.Title, { text: title,
|
|
33
|
+
return ((0, jsx_runtime_1.jsxs)(S_SectionDataBox, __assign({ isEmptySectionData: !title && !description && !buttonAlphaLinkSrc }, { children: [title && ((0, jsx_runtime_1.jsx)(components_1.M_MembershipSectionItem.Title, { text: title, textAlign: "center", color: titleColorInHex, styleTheme: "headingBold" }, void 0)), description && ((0, jsx_runtime_1.jsx)(S_DescriptionWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.M_MembershipSectionItem.Description, { text: description, textAlign: "center", color: descriptionColorInHex, styleTheme: "body1Regular" }, void 0) }, void 0)), buttonAlphaLinkSrc && ((0, jsx_runtime_1.jsx)(S_ButtonWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.M_MembershipSectionItem.DesignedSectionButton, { buttonType: buttonAlphaDesignType, text: buttonAlphaLabel, linkType: buttonAlphaLinkType, src: buttonAlphaLinkSrc, textColor: buttonAlphaLabelColorInHex, backgroundColor: buttonAlphaBackgroundColorInHex, borderColor: buttonAlphaLabelColorInHex }, void 0) }, void 0))] }), void 0));
|
|
34
34
|
}
|
|
35
35
|
var S_SectionDataBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-bottom: ", ";\n"], ["\n margin-bottom: ", ";\n"])), function (_a) {
|
|
36
36
|
var isEmptySectionData = _a.isEmptySectionData, theme = _a.theme;
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
# PDS-DEV-KIT-WEB Release Notes
|
|
2
|
-
## [v2.0.14
|
|
2
|
+
## [v2.0.14]
|
|
3
|
+
## daily|https://design.storybook.publ.biz/
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
|
|
5
|
+
### components
|
|
6
|
+
* Icon
|
|
7
|
+
* ic_dotted_circle line icon 추가
|
|
8
|
+
* IconButton
|
|
9
|
+
* tooltip 기능 추가
|
|
10
|
+
* TextField
|
|
11
|
+
* stepper 기능 추가
|
|
12
|
+
### layout
|
|
13
|
+
* WSI_1 생성
|
|
14
|
+
### Color
|
|
15
|
+
* 컬러 키 값 23.06.21 18시 30분 기준 싱크
|