pds-dev-kit-web 2.0.14 → 2.1.0-alpha.1
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 +9 -3
- package/dist/src/common/types/components.d.ts +8 -0
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +4 -4
- package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.d.ts +9 -0
- package/dist/src/desktop/components/BasicButtonGroup/BasicButtonGroup.js +73 -0
- package/dist/src/desktop/components/BasicButtonGroup/index.d.ts +1 -0
- package/dist/src/desktop/components/BasicButtonGroup/index.js +8 -0
- package/dist/src/desktop/components/IconButton/IconButton.d.ts +1 -1
- package/dist/src/desktop/components/SegmentedButtonGroup/SegmentedButtonGroup.d.ts +18 -0
- package/dist/src/desktop/components/SegmentedButtonGroup/SegmentedButtonGroup.js +143 -0
- package/dist/src/desktop/components/SegmentedButtonGroup/index.d.ts +1 -0
- package/dist/src/desktop/components/SegmentedButtonGroup/index.js +8 -0
- package/dist/src/desktop/components/Select/Select.js +12 -6
- package/dist/src/desktop/components/Slider/Slider.d.ts +19 -0
- package/dist/src/desktop/components/Slider/Slider.js +200 -0
- package/dist/src/desktop/components/Slider/index.d.ts +1 -0
- package/dist/src/desktop/components/Slider/index.js +8 -0
- package/dist/src/desktop/components/TextButton/TextButton.d.ts +1 -1
- package/dist/src/desktop/components/TextButton/TextButton.js +3 -0
- package/dist/src/desktop/components/TextField/TextField.js +3 -3
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.d.ts +5 -3
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.js +52 -4
- package/dist/src/desktop/components/UploadTextButton/UploadTextButton.d.ts +1 -1
- package/dist/src/desktop/components/UploadTextButton/UploadTextButton.js +3 -0
- package/dist/src/desktop/components/index.d.ts +4 -1
- package/dist/src/desktop/components/index.js +7 -1
- package/dist/src/desktop/index.d.ts +1 -1
- package/dist/src/desktop/index.js +5 -2
- package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +3 -3
- package/dist/src/mobile/components/BasicButtonGroup/BasicButtonGroup.d.ts +9 -0
- package/dist/src/mobile/components/BasicButtonGroup/BasicButtonGroup.js +73 -0
- package/dist/src/mobile/components/BasicButtonGroup/index.d.ts +1 -0
- package/dist/src/mobile/components/BasicButtonGroup/index.js +8 -0
- package/dist/src/mobile/components/ContextMenu/ContextMenu.js +1 -1
- package/dist/src/mobile/components/IconButton/IconButton.d.ts +1 -1
- package/dist/src/mobile/components/IconButton/IconButton.js +1 -1
- package/dist/src/mobile/components/SegmentedButtonGroup/SegmentedButtonGroup.d.ts +18 -0
- package/dist/src/mobile/components/SegmentedButtonGroup/SegmentedButtonGroup.js +143 -0
- package/dist/src/mobile/components/SegmentedButtonGroup/index.d.ts +1 -0
- package/dist/src/mobile/components/SegmentedButtonGroup/index.js +8 -0
- package/dist/src/mobile/components/Select/Select.js +12 -6
- package/dist/src/mobile/components/Slider/Slider.d.ts +19 -0
- package/dist/src/mobile/components/Slider/Slider.js +197 -0
- package/dist/src/mobile/components/Slider/index.d.ts +1 -0
- package/dist/src/mobile/components/Slider/index.js +8 -0
- package/dist/src/mobile/components/TextButton/TextButton.d.ts +1 -1
- package/dist/src/mobile/components/TextButton/TextButton.js +3 -0
- package/dist/src/mobile/components/TextField/TextField.js +3 -3
- package/dist/src/mobile/components/UploadIconButton/UploadIconButton.d.ts +1 -1
- package/dist/src/mobile/components/UploadIconButton/UploadIconButton.js +1 -1
- package/dist/src/mobile/components/UploadTextButton/UploadTextButton.d.ts +1 -1
- package/dist/src/mobile/components/UploadTextButton/UploadTextButton.js +3 -0
- package/dist/src/mobile/components/index.d.ts +4 -1
- package/dist/src/mobile/components/index.js +7 -1
- package/dist/src/mobile/index.d.ts +1 -1
- package/dist/src/mobile/index.js +5 -1
- package/dist/src/sub/DynamicLayout/mock_storybook.js +112 -20
- 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 +4 -12
|
@@ -186,14 +186,14 @@ var small = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 =
|
|
|
186
186
|
var theme = _a.theme;
|
|
187
187
|
return theme.spacing.spacingB;
|
|
188
188
|
});
|
|
189
|
-
var medium = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: 40px;\n padding-left: ", ";\n padding-right: ", ";\n width: 188px;\n"], ["\n height: 40px;\n padding-left: ", ";\n padding-right: ", ";\n width: 188px;\n"])), function (_a) {
|
|
189
|
+
var medium = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border-radius: 12px;\n height: 40px;\n padding-left: ", ";\n padding-right: ", ";\n width: 188px;\n"], ["\n border-radius: 12px;\n height: 40px;\n padding-left: ", ";\n padding-right: ", ";\n width: 188px;\n"])), function (_a) {
|
|
190
190
|
var theme = _a.theme;
|
|
191
191
|
return theme.spacing.spacingC;
|
|
192
192
|
}, function (_a) {
|
|
193
193
|
var theme = _a.theme;
|
|
194
194
|
return theme.spacing.spacingB;
|
|
195
195
|
});
|
|
196
|
-
var large = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n height: 48px;\n padding-left: ", ";\n padding-right: ", ";\n width: ", ";\n ", "\n ", "\n"], ["\n height: 48px;\n padding-left: ", ";\n padding-right: ", ";\n width: ", ";\n ", "\n ", "\n"])), function (_a) {
|
|
196
|
+
var large = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n border-radius: 14px;\n height: 48px;\n padding-left: ", ";\n padding-right: ", ";\n width: ", ";\n ", "\n ", "\n"], ["\n border-radius: 14px;\n height: 48px;\n padding-left: ", ";\n padding-right: ", ";\n width: ", ";\n ", "\n ", "\n"])), function (_a) {
|
|
197
197
|
var theme = _a.theme;
|
|
198
198
|
return theme.spacing.spacingD;
|
|
199
199
|
}, function (_a) {
|
|
@@ -298,7 +298,7 @@ var backgroundActiveColor = (0, styled_components_1.css)(templateObject_16 || (t
|
|
|
298
298
|
}
|
|
299
299
|
});
|
|
300
300
|
var normalActionColor = (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n &:active {\n background-color: ", ";\n }\n"], ["\n &:active {\n background-color: ", ";\n }\n"])), backgroundActiveColor);
|
|
301
|
-
var S_TextFieldWrapper = styled_components_1.default.div(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n align-items: center;\n
|
|
301
|
+
var S_TextFieldWrapper = styled_components_1.default.div(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n align-items: center;\n box-sizing: border-box;\n display: flex;\n ", ";\n ", ";\n\n ", "\n\n ", "\n\n ", ";\n ", "\n"], ["\n align-items: center;\n box-sizing: border-box;\n display: flex;\n ", ";\n ", ";\n\n ", "\n\n ", "\n\n ", ";\n ", "\n"])), function (_a) {
|
|
302
302
|
var size = _a.size;
|
|
303
303
|
return size &&
|
|
304
304
|
{
|
|
@@ -6,7 +6,7 @@ export declare type UploadIconButtonProps = {
|
|
|
6
6
|
baseSize?: 'xxlarge' | 'large' | 'medium' | 'small' | 'xsmall';
|
|
7
7
|
baseColorKey?: UiColors;
|
|
8
8
|
borderColorKey?: UiColors;
|
|
9
|
-
iconSize?: 12 | 16 | 20 | 24 | 48 | 72;
|
|
9
|
+
iconSize?: 12 | 16 | 20 | 24 | 32 | 48 | 72;
|
|
10
10
|
iconFillType?: 'fill' | 'line';
|
|
11
11
|
iconName: FillIconNameKeys | LineIconNameKeys;
|
|
12
12
|
iconColorKey?: UiColors;
|
|
@@ -67,7 +67,7 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
|
|
|
67
67
|
? ''
|
|
68
68
|
: theme.ui_cpnt_button_fill_base_disabled;
|
|
69
69
|
});
|
|
70
|
-
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n
|
|
70
|
+
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n background-color: transparent;\n border-radius: inherit;\n content: '';\n height: 100%;\n position: absolute;\n width: 100%;\n ", "\n }\n\n &:active:not([disabled])::before {\n background-color: ", ";\n }\n\n ", ";\n"], ["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n background-color: transparent;\n border-radius: inherit;\n content: '';\n height: 100%;\n position: absolute;\n width: 100%;\n ", "\n }\n\n &:active:not([disabled])::before {\n background-color: ", ";\n }\n\n ", ";\n"])), function (_a) {
|
|
71
71
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
72
72
|
return baseColorKey ? theme[baseColorKey] : theme.ui_cpnt_button_fill_base_primary;
|
|
73
73
|
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
@@ -6,7 +6,7 @@ declare type UploadTextButtonProps = {
|
|
|
6
6
|
responsiveMode?: 'none' | 'use';
|
|
7
7
|
fontWeight?: 'bold' | 'regular';
|
|
8
8
|
state?: 'normal' | 'disabled';
|
|
9
|
-
colorTheme?: 'none' | 'red' | 'grey_01' | 'white' | 'white2';
|
|
9
|
+
colorTheme?: 'none' | 'red' | 'grey_01' | 'grey2' | 'white' | 'white2';
|
|
10
10
|
accept?: string;
|
|
11
11
|
multipleMode?: 'none' | 'use';
|
|
12
12
|
onClick?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
@@ -49,6 +49,7 @@ var textColor = {
|
|
|
49
49
|
none: 'usrTextBrandPrimary',
|
|
50
50
|
red: 'sysTextError',
|
|
51
51
|
grey_01: 'sysTextPrimary',
|
|
52
|
+
grey2: 'sysTextSecondary',
|
|
52
53
|
white: 'sysTextWhite',
|
|
53
54
|
white2: 'sysTextWhite'
|
|
54
55
|
};
|
|
@@ -91,6 +92,8 @@ var S_UploadTextButton = styled_components_1.default.label(templateObject_8 || (
|
|
|
91
92
|
case 'red':
|
|
92
93
|
case 'grey_01':
|
|
93
94
|
return colorThemeDefault;
|
|
95
|
+
case 'grey2':
|
|
96
|
+
return colorThemeDefault;
|
|
94
97
|
case 'white':
|
|
95
98
|
return colorThemeWhite;
|
|
96
99
|
case 'white2':
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BasicButtonGroup } from './BasicButtonGroup';
|
|
1
2
|
import { BasicChatListItem } from './BasicChatListItem';
|
|
2
3
|
import { BasicFormGroup } from './BasicFormGroup';
|
|
3
4
|
import { BasicList } from './BasicList';
|
|
@@ -24,7 +25,9 @@ import { MobileHeaderBar } from './MobileHeaderBar';
|
|
|
24
25
|
import { MobileTabBar } from './MobileTabBar';
|
|
25
26
|
import { Radio } from './Radio';
|
|
26
27
|
import { ReactionButton } from './ReactionButton';
|
|
28
|
+
import { SegmentedButtonGroup } from './SegmentedButtonGroup';
|
|
27
29
|
import { Select } from './Select';
|
|
30
|
+
import { Slider } from './Slider';
|
|
28
31
|
import { StatusBlock } from './StatusBlock';
|
|
29
32
|
import { TextButton } from './TextButton';
|
|
30
33
|
import { TextField } from './TextField';
|
|
@@ -32,4 +35,4 @@ import { TextLabel } from './TextLabel';
|
|
|
32
35
|
import { UploadIconButton } from './UploadIconButton';
|
|
33
36
|
import { UploadMainButton } from './UploadMainButton';
|
|
34
37
|
import { UploadTextButton } from './UploadTextButton';
|
|
35
|
-
export { BasicChatListItem, BasicFormGroup, BasicList, BasicListItem, BlogTextField, BodyTextGroup, Card, CardList, ChatBubbleListItem, ChatList, Checkbox, Chip, ContextMenu, ContextMenuItem, Dropdown, FloatingActionButton, HorizontalFormGroup, IconButton, ImageSlide, LottieReactionButton, MainButton, MobileAlertDialog, MobileHeaderBar, MobileTabBar, Radio, ReactionButton, Select, StatusBlock, TextButton, TextField, TextLabel, UploadIconButton, UploadMainButton, UploadTextButton };
|
|
38
|
+
export { BasicButtonGroup, BasicChatListItem, BasicFormGroup, BasicList, BasicListItem, BlogTextField, BodyTextGroup, Card, CardList, ChatBubbleListItem, ChatList, Checkbox, Chip, ContextMenu, ContextMenuItem, 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,8 @@
|
|
|
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.Select = 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.ContextMenuItem = exports.ContextMenu = exports.Chip = exports.Checkbox = exports.ChatList = exports.ChatBubbleListItem = exports.CardList = exports.Card = exports.BodyTextGroup = exports.BlogTextField = exports.BasicListItem = exports.BasicList = exports.BasicFormGroup = exports.BasicChatListItem = void 0;
|
|
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.ContextMenuItem = exports.ContextMenu = exports.Chip = exports.Checkbox = exports.ChatList = exports.ChatBubbleListItem = exports.CardList = exports.Card = exports.BodyTextGroup = exports.BlogTextField = exports.BasicListItem = exports.BasicList = exports.BasicFormGroup = exports.BasicChatListItem = exports.BasicButtonGroup = void 0;
|
|
4
|
+
var BasicButtonGroup_1 = require("./BasicButtonGroup");
|
|
5
|
+
Object.defineProperty(exports, "BasicButtonGroup", { enumerable: true, get: function () { return BasicButtonGroup_1.BasicButtonGroup; } });
|
|
4
6
|
var BasicChatListItem_1 = require("./BasicChatListItem");
|
|
5
7
|
Object.defineProperty(exports, "BasicChatListItem", { enumerable: true, get: function () { return BasicChatListItem_1.BasicChatListItem; } });
|
|
6
8
|
var BasicFormGroup_1 = require("./BasicFormGroup");
|
|
@@ -53,8 +55,12 @@ var Radio_1 = require("./Radio");
|
|
|
53
55
|
Object.defineProperty(exports, "Radio", { enumerable: true, get: function () { return Radio_1.Radio; } });
|
|
54
56
|
var ReactionButton_1 = require("./ReactionButton");
|
|
55
57
|
Object.defineProperty(exports, "ReactionButton", { enumerable: true, get: function () { return ReactionButton_1.ReactionButton; } });
|
|
58
|
+
var SegmentedButtonGroup_1 = require("./SegmentedButtonGroup");
|
|
59
|
+
Object.defineProperty(exports, "SegmentedButtonGroup", { enumerable: true, get: function () { return SegmentedButtonGroup_1.SegmentedButtonGroup; } });
|
|
56
60
|
var Select_1 = require("./Select");
|
|
57
61
|
Object.defineProperty(exports, "Select", { enumerable: true, get: function () { return Select_1.Select; } });
|
|
62
|
+
var Slider_1 = require("./Slider");
|
|
63
|
+
Object.defineProperty(exports, "Slider", { enumerable: true, get: function () { return Slider_1.Slider; } });
|
|
58
64
|
var StatusBlock_1 = require("./StatusBlock");
|
|
59
65
|
Object.defineProperty(exports, "StatusBlock", { enumerable: true, get: function () { return StatusBlock_1.StatusBlock; } });
|
|
60
66
|
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 { BasicChatListItem as M_BasicChatListItem, BasicFormGroup as M_BasicFormGroup, BasicList as M_BasicList, BasicListItem as M_BasicListItem, BlogTextField as M_BlogTextField, BodyTextGroup as M_BodyTextGroup, 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, 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, Select as M_Select, 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';
|
|
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, 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, 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,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.M_AnnotationSheet = exports.M_UploadTextButton = 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_ContextMenuItem = exports.M_ContextMenu = exports.M_Chip = exports.M_Checkbox = exports.M_ChatList = exports.M_ChatBubbleListItem = exports.M_CardList = exports.M_Card = 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 = void 0;
|
|
4
5
|
// layoutMF
|
|
5
6
|
var LayoutMF_1 = require("./layout/LayoutMF");
|
|
6
7
|
Object.defineProperty(exports, "LayoutMF", { enumerable: true, get: function () { return LayoutMF_1.LayoutMF; } });
|
|
@@ -30,6 +31,7 @@ var ContainersBox_4 = require("./layout/LayoutMS/ContainersBox");
|
|
|
30
31
|
Object.defineProperty(exports, "MSContainersBox", { enumerable: true, get: function () { return ContainersBox_4.ContainersBox; } });
|
|
31
32
|
// components
|
|
32
33
|
var components_1 = require("./components");
|
|
34
|
+
Object.defineProperty(exports, "M_BasicButtonGroup", { enumerable: true, get: function () { return components_1.BasicButtonGroup; } });
|
|
33
35
|
Object.defineProperty(exports, "M_BasicChatListItem", { enumerable: true, get: function () { return components_1.BasicChatListItem; } });
|
|
34
36
|
Object.defineProperty(exports, "M_BasicFormGroup", { enumerable: true, get: function () { return components_1.BasicFormGroup; } });
|
|
35
37
|
Object.defineProperty(exports, "M_BasicList", { enumerable: true, get: function () { return components_1.BasicList; } });
|
|
@@ -56,7 +58,9 @@ Object.defineProperty(exports, "M_MobileHeaderBar", { enumerable: true, get: fun
|
|
|
56
58
|
Object.defineProperty(exports, "M_MobileTabBar", { enumerable: true, get: function () { return components_1.MobileTabBar; } });
|
|
57
59
|
Object.defineProperty(exports, "M_Radio", { enumerable: true, get: function () { return components_1.Radio; } });
|
|
58
60
|
Object.defineProperty(exports, "M_ReactionButton", { enumerable: true, get: function () { return components_1.ReactionButton; } });
|
|
61
|
+
Object.defineProperty(exports, "M_SegmentedButtonGroup", { enumerable: true, get: function () { return components_1.SegmentedButtonGroup; } });
|
|
59
62
|
Object.defineProperty(exports, "M_Select", { enumerable: true, get: function () { return components_1.Select; } });
|
|
63
|
+
Object.defineProperty(exports, "M_Slider", { enumerable: true, get: function () { return components_1.Slider; } });
|
|
60
64
|
Object.defineProperty(exports, "M_StatusBlock", { enumerable: true, get: function () { return components_1.StatusBlock; } });
|
|
61
65
|
Object.defineProperty(exports, "M_TextButton", { enumerable: true, get: function () { return components_1.TextButton; } });
|
|
62
66
|
Object.defineProperty(exports, "M_TextField", { enumerable: true, get: function () { return components_1.TextField; } });
|
|
@@ -1146,21 +1146,18 @@ exports.SampleSectionsMock = [
|
|
|
1146
1146
|
updatedAt: '2023-01-12T08:03:48'
|
|
1147
1147
|
},
|
|
1148
1148
|
{
|
|
1149
|
+
display: true,
|
|
1149
1150
|
type: 'PROGRAMMED',
|
|
1150
1151
|
program: 'MEMBERSHIP_DISPLAY',
|
|
1151
|
-
|
|
1152
|
-
dynamicLayoutSectionItems: null,
|
|
1152
|
+
dynamicLayoutSectionItems: [],
|
|
1153
1153
|
id: 6010,
|
|
1154
|
-
insertedAt: '2023-01-06T09:05:45',
|
|
1155
1154
|
manifest: {
|
|
1156
1155
|
availableProperties: [
|
|
1157
1156
|
'title',
|
|
1158
1157
|
'description',
|
|
1159
1158
|
'button_alpha_label',
|
|
1160
1159
|
'button_alpha_link_type',
|
|
1161
|
-
'button_alpha_link_src'
|
|
1162
|
-
'section_content_media_type',
|
|
1163
|
-
'section_content_media_src'
|
|
1160
|
+
'button_alpha_link_src'
|
|
1164
1161
|
],
|
|
1165
1162
|
availableStyles: [
|
|
1166
1163
|
'title_color_in_hex',
|
|
@@ -1179,7 +1176,7 @@ exports.SampleSectionsMock = [
|
|
|
1179
1176
|
availableTemplates: ['PRG_MEMBERSHIP_DISPLAY_A', 'PRG_MEMBERSHIP_DISPLAY_B'],
|
|
1180
1177
|
schema: 'PRG_MEMBERSHIP_DISPLAY'
|
|
1181
1178
|
},
|
|
1182
|
-
order:
|
|
1179
|
+
order: 8,
|
|
1183
1180
|
properties: {
|
|
1184
1181
|
buttonAlphaLabel: 'Lorem Ipsum',
|
|
1185
1182
|
buttonAlphaLinkSrc: 'https://team.publ.space',
|
|
@@ -1200,45 +1197,140 @@ exports.SampleSectionsMock = [
|
|
|
1200
1197
|
carouselAutoplayTime: 3,
|
|
1201
1198
|
carouselInfiniteLoopMode: 'NO_USE',
|
|
1202
1199
|
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',
|
|
1204
1200
|
sectionContentMediaSrc: '',
|
|
1205
1201
|
sectionContentMediaType: 'IMAGE',
|
|
1206
1202
|
title: 'Lorem Ipsum',
|
|
1207
|
-
multiPurposeUrl: 'https://app.publr.co/'
|
|
1203
|
+
multiPurposeUrl: 'https://app.publr.co/',
|
|
1204
|
+
itemLinkMethod: 'NONE'
|
|
1208
1205
|
},
|
|
1209
1206
|
styles: {
|
|
1210
|
-
backgroundColorInHex: '#
|
|
1207
|
+
backgroundColorInHex: '#4A5D78AB',
|
|
1211
1208
|
backgroundMediaSrc: '',
|
|
1212
1209
|
backgroundMediaType: 'IMAGE',
|
|
1213
1210
|
backgroundOverlayColorInHex: '#FFFFFF00',
|
|
1214
|
-
buttonAlphaBackgroundColorInHex: '#
|
|
1211
|
+
buttonAlphaBackgroundColorInHex: '#313131FF',
|
|
1215
1212
|
buttonAlphaDesignType: 'C',
|
|
1216
1213
|
buttonAlphaLabelColorInHex: '#f5efd9FF',
|
|
1217
|
-
buttonBravoBackgroundColorInHex: '#
|
|
1214
|
+
buttonBravoBackgroundColorInHex: '#313131FF',
|
|
1218
1215
|
buttonBravoDesignType: 'E',
|
|
1219
1216
|
buttonBravoLabelColorInHex: '#FFFFFFFF',
|
|
1220
1217
|
buttonCharlieBackgroundColorInHex: '#465FF000',
|
|
1221
1218
|
buttonCharlieDesignType: 'E',
|
|
1222
1219
|
buttonCharlieLabelColorInHex: '#FFFFFFFF',
|
|
1223
|
-
buttonDeltaBackgroundColorInHex: '#
|
|
1220
|
+
buttonDeltaBackgroundColorInHex: '#313131FF',
|
|
1224
1221
|
buttonDeltaDesignType: 'A',
|
|
1225
1222
|
buttonDeltaLabelColorInHex: '#FFFFFFFF',
|
|
1226
|
-
buttonEchoBackgroundColorInHex: '#
|
|
1223
|
+
buttonEchoBackgroundColorInHex: '#313131FF',
|
|
1227
1224
|
buttonEchoDesignType: 'A',
|
|
1228
1225
|
buttonEchoLabelColorInHex: '#FFFFFFFF',
|
|
1229
|
-
descriptionColorInHex: '#
|
|
1230
|
-
itemButtonBackgroundColorInHex: '#
|
|
1226
|
+
descriptionColorInHex: '#DEECFFA6',
|
|
1227
|
+
itemButtonBackgroundColorInHex: '#313131FF',
|
|
1231
1228
|
itemButtonDesignType: 'A',
|
|
1232
1229
|
itemButtonLabelColorInHex: '#FFFFFFFF',
|
|
1233
1230
|
itemDescriptionColorInHex: '#68686BFF',
|
|
1234
1231
|
itemTitleColorInHex: '#1E1E20FF',
|
|
1235
|
-
|
|
1232
|
+
titleColorInHex: '#DEECFFFF',
|
|
1233
|
+
itemHighlightingColorInHex: '#ff7f50FF',
|
|
1236
1234
|
itemToneType: 'LIGHT',
|
|
1237
|
-
titleColorInHex: '#F8FFACFF',
|
|
1238
1235
|
programmedItemActionButtonTextType: 'A'
|
|
1239
1236
|
},
|
|
1240
|
-
template: '
|
|
1241
|
-
|
|
1237
|
+
template: 'PRG_MEMBERSHIP_DISPLAY_A',
|
|
1238
|
+
programData: {
|
|
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'
|
|
1242
1334
|
}
|
|
1243
1335
|
];
|
|
1244
1336
|
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, textAlign: "center",
|
|
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, color: titleColorInHex, textAlign: "center", customFontSize: "32px", customFontWeight: "bold", lineHeight: 1.3 }, void 0)), description && ((0, jsx_runtime_1.jsx)(S_DescriptionWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.M_MembershipSectionItem.Description, { text: description, color: descriptionColorInHex, textAlign: "center", customFontSize: "18px", fontWeight: "600" }, 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, textAlign: "center",
|
|
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, color: titleColorInHex, textAlign: "center", customFontSize: "32px", customFontWeight: "bold", lineHeight: 1.3 }, void 0)), description && ((0, jsx_runtime_1.jsx)(S_DescriptionWrapper, { children: (0, jsx_runtime_1.jsx)(components_1.M_MembershipSectionItem.Description, { text: description, color: descriptionColorInHex, textAlign: "center", customFontSize: "18px", fontWeight: "600" }, 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,15 +1,7 @@
|
|
|
1
1
|
# PDS-DEV-KIT-WEB Release Notes
|
|
2
|
-
## [v2.0.
|
|
3
|
-
##
|
|
2
|
+
## [v2.1.0-alpha.1]
|
|
3
|
+
## alpha|https://design.storybook.publ.biz/
|
|
4
4
|
|
|
5
5
|
### components
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* IconButton
|
|
9
|
-
* tooltip 기능 추가
|
|
10
|
-
* TextField
|
|
11
|
-
* stepper 기능 추가
|
|
12
|
-
### layout
|
|
13
|
-
* WSI_1 생성
|
|
14
|
-
### Color
|
|
15
|
-
* 컬러 키 값 23.06.21 18시 30분 기준 싱크
|
|
6
|
+
* TextFieldBase
|
|
7
|
+
* stepper기능과 함께 들어갔던 z-index 제거
|