pds-dev-kit-web 1.9.0-beta.3 → 1.9.0-beta.5
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 +2 -0
- package/dist/index.js +14 -0
- package/dist/src/common/assets/icons/fill/ArrowDown.js +1 -1
- package/dist/src/common/assets/icons/fill/ArrowUp.js +1 -1
- package/dist/src/common/services/i18n/resources/en.json +4625 -1466
- package/dist/src/common/services/i18n/resources/es.json +6082 -2923
- package/dist/src/common/services/i18n/resources/index.d.ts +18961 -7
- package/dist/src/common/services/i18n/resources/index.js +2 -2
- package/dist/src/common/services/i18n/resources/jp.json +6091 -2932
- package/dist/src/common/services/i18n/resources/ko.json +3353 -194
- package/dist/src/common/services/i18n/resources/zh-tw.json +4000 -841
- package/dist/src/common/services/i18n/resources/zh-zh.json +6844 -0
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +9 -2
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +9 -2
- package/dist/src/common/styles/colorSet/SemanticColor.json +5 -1
- package/dist/src/common/styles/colorSet/UIColor.json +15 -3
- package/dist/src/common/styles/colorSet/index.d.ts +32 -2
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +12 -0
- package/dist/src/common/styles/movement/animationStyle.d.ts +8 -0
- package/dist/src/common/styles/movement/animationStyle.js +18 -0
- package/dist/src/common/styles/movement/keyframes.d.ts +14 -0
- package/dist/src/common/styles/movement/keyframes.js +23 -0
- package/dist/src/common/styles/movement/transitionStyle.d.ts +3 -0
- package/dist/src/common/styles/movement/transitionStyle.js +12 -0
- package/dist/src/desktop/components/AdminListItem/AdminListItem.js +4 -3
- package/dist/src/desktop/components/DesktopAlertDialog/DesktopAlertDialog.js +5 -4
- package/dist/src/desktop/components/Dropdown/Dropdown.js +34 -3
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +15 -4
- package/dist/src/desktop/components/FloatingActionButton/FloatingActionButton.js +5 -4
- package/dist/src/desktop/components/IconButton/IconButton.js +7 -6
- package/dist/src/desktop/components/LottieReactionButton/LottieReactionButton.js +4 -3
- package/dist/src/desktop/components/MainButton/MainButton.d.ts +1 -1
- package/dist/src/desktop/components/MainButton/MainButton.js +129 -41
- package/dist/src/desktop/components/ReactionButton/ReactionButton.js +5 -1
- package/dist/src/desktop/components/Select/Select.js +29 -2
- package/dist/src/desktop/components/TextButton/TextButton.js +3 -2
- package/dist/src/desktop/components/TextField/TextField.js +35 -4
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.js +7 -6
- package/dist/src/desktop/components/UploadMainButton/UploadMainButton.d.ts +1 -1
- package/dist/src/desktop/components/UploadMainButton/UploadMainButton.js +141 -49
- package/dist/src/desktop/components/UploadMainButton/types.d.ts +0 -10
- package/dist/src/desktop/components/UploadMainButton/types.js +1 -11
- package/dist/src/desktop/components/UploadTextButton/UploadTextButton.js +3 -2
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFA.js +1 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFB.js +1 -1
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFE.js +2 -2
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFL.js +2 -2
- package/dist/src/desktop/panels/DesktopBasicModal/DesktopBasicModal.d.ts +3 -2
- package/dist/src/desktop/panels/DesktopBasicModal/DesktopBasicModal.js +35 -18
- package/dist/src/desktop/panels/DesktopHeadlessModal/DesktopHeadlessModal.js +8 -7
- package/dist/src/mobile/components/Dropdown/Dropdown.js +21 -3
- package/dist/src/mobile/components/FloatingActionButton/FloatingActionButton.js +4 -3
- package/dist/src/mobile/components/IconButton/IconButton.js +6 -5
- package/dist/src/mobile/components/LottieReactionButton/LottieReactionButton.js +3 -2
- package/dist/src/mobile/components/MainButton/MainButton.d.ts +1 -1
- package/dist/src/mobile/components/MainButton/MainButton.js +122 -37
- package/dist/src/mobile/components/MobileAlertDialog/MobileAlertDialog.js +5 -4
- package/dist/src/mobile/components/Select/Select.js +18 -2
- package/dist/src/mobile/components/TextButton/TextButton.js +2 -1
- package/dist/src/mobile/components/TextField/TextField.js +22 -4
- package/dist/src/mobile/components/UploadIconButton/UploadIconButton.js +6 -5
- package/dist/src/mobile/components/UploadMainButton/UploadMainButton.d.ts +1 -1
- package/dist/src/mobile/components/UploadMainButton/UploadMainButton.js +134 -42
- package/dist/src/mobile/components/UploadMainButton/types.d.ts +0 -10
- package/dist/src/mobile/components/UploadMainButton/types.js +1 -11
- package/dist/src/mobile/components/UploadTextButton/UploadTextButton.js +3 -2
- package/dist/src/mobile/panels/MobileBasicModal/MobileBasicModal.js +5 -4
- package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +2 -2
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js +2 -2
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/OverlayBorders.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/OverlayBorders.js +49 -0
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +23 -8
- package/dist/src/sub/DynamicLayout/hooks/useLazyUnmount/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/hooks/useLazyUnmount/index.js +8 -0
- package/dist/src/sub/DynamicLayout/hooks/useLazyUnmount/useLazyUnmount.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/hooks/useLazyUnmount/useLazyUnmount.js +61 -0
- package/dist/src/sub/DynamicLayout/types.d.ts +2 -1
- package/dist/storybook-static/{0.73af3e66.iframe.bundle.d.ts → 0.2023c95c.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{0.73af3e66.iframe.bundle.js → 0.2023c95c.iframe.bundle.js} +8 -8
- package/dist/storybook-static/{4.d7ecdbf4.iframe.bundle.d.ts → 4.d1de0501.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{4.d7ecdbf4.iframe.bundle.js → 4.d1de0501.iframe.bundle.js} +71 -71
- package/dist/storybook-static/{5.dc1e4c72.iframe.bundle.d.ts → 5.2f192ddf.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{5.dc1e4c72.iframe.bundle.js → 5.2f192ddf.iframe.bundle.js} +13 -13
- package/dist/storybook-static/{6.e668ed7b.iframe.bundle.d.ts → 6.62fc7663.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{6.e668ed7b.iframe.bundle.js → 6.62fc7663.iframe.bundle.js} +6 -6
- package/dist/storybook-static/{7.9af8f518.iframe.bundle.d.ts → 7.3518bf24.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{7.9af8f518.iframe.bundle.js → 7.3518bf24.iframe.bundle.js} +3 -3
- package/dist/storybook-static/{main.7e8e72d0.iframe.bundle.d.ts → main.bea0ee46.iframe.bundle.d.ts} +740 -860
- package/dist/storybook-static/{main.7e8e72d0.iframe.bundle.js → main.bea0ee46.iframe.bundle.js} +1343 -1112
- package/dist/storybook-static/{runtime~main.1b62987c.iframe.bundle.d.ts → runtime~main.54fba058.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{runtime~main.1b62987c.iframe.bundle.js → runtime~main.54fba058.iframe.bundle.js} +1 -1
- package/dist/storybook-static/{vendors~main.4e754259.iframe.bundle.d.ts → vendors~main.dd7c8d3f.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{vendors~main.4e754259.iframe.bundle.js → vendors~main.dd7c8d3f.iframe.bundle.js} +829 -829
- package/package.json +1 -1
- package/release-note.md +91 -10
- package/dist/src/common/services/i18n/resources/zh-cn.json +0 -3685
|
@@ -27,6 +27,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
var react_1 = __importStar(require("react"));
|
|
28
28
|
var react_hook_form_1 = require("react-hook-form");
|
|
29
29
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
30
|
+
var transitionStyle_1 = require("../../../common/styles/movement/transitionStyle");
|
|
30
31
|
var components_1 = require("../../common/components");
|
|
31
32
|
var IconButton_1 = require("../IconButton");
|
|
32
33
|
function TextField(_a) {
|
|
@@ -270,7 +271,21 @@ var transparent_disabled = (0, styled_components_1.css)(templateObject_15 || (te
|
|
|
270
271
|
var theme = _a.theme;
|
|
271
272
|
return theme.ui_cpnt_textfield_border_colortheme_transparent_disabled;
|
|
272
273
|
});
|
|
273
|
-
var
|
|
274
|
+
var backgroundActiveColor = (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
275
|
+
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
276
|
+
switch (colorTheme) {
|
|
277
|
+
case 'none':
|
|
278
|
+
return theme.ui_cpnt_textfield_base_pressed;
|
|
279
|
+
case 'dark':
|
|
280
|
+
return theme.ui_cpnt_textfield_base_pressed_darktheme;
|
|
281
|
+
case 'transparent':
|
|
282
|
+
return theme.ui_cpnt_textfield_base_pressed_transparent;
|
|
283
|
+
default:
|
|
284
|
+
return theme.ui_cpnt_textfield_base_pressed;
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
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);
|
|
288
|
+
var S_TextFieldWrapper = styled_components_1.default.div(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n align-items: center;\n border-radius: 14px;\n box-sizing: border-box;\n display: flex;\n ", ";\n ", ";\n\n ", "\n\n ", "\n\n ", ";\n ", "\n"], ["\n align-items: center;\n border-radius: 14px;\n box-sizing: border-box;\n display: flex;\n ", ";\n ", ";\n\n ", "\n\n ", "\n\n ", ";\n ", "\n"])), function (_a) {
|
|
274
289
|
var size = _a.size;
|
|
275
290
|
return size &&
|
|
276
291
|
{
|
|
@@ -298,6 +313,9 @@ var S_TextFieldWrapper = styled_components_1.default.div(templateObject_16 || (t
|
|
|
298
313
|
}
|
|
299
314
|
}
|
|
300
315
|
}
|
|
316
|
+
}, transitionStyle_1.InputTransition, function (_a) {
|
|
317
|
+
var state = _a.state;
|
|
318
|
+
return state === 'normal' && normalActionColor;
|
|
301
319
|
}, function (_a) {
|
|
302
320
|
var responsiveMode = _a.responsiveMode;
|
|
303
321
|
return responsiveMode === 'use' && 'width: 100%';
|
|
@@ -305,8 +323,8 @@ var S_TextFieldWrapper = styled_components_1.default.div(templateObject_16 || (t
|
|
|
305
323
|
var customWidth = _a.customWidth;
|
|
306
324
|
return customWidth && "width: " + customWidth + ";";
|
|
307
325
|
});
|
|
308
|
-
var S_IconBox = styled_components_1.default.div(
|
|
309
|
-
var S_Error = styled_components_1.default.div(
|
|
326
|
+
var S_IconBox = styled_components_1.default.div(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
327
|
+
var S_Error = styled_components_1.default.div(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n text-align: left;\n white-space: pre-wrap;\n"], ["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n text-align: left;\n white-space: pre-wrap;\n"])), function (_a) {
|
|
310
328
|
var theme = _a.theme, colorTheme = _a.colorTheme;
|
|
311
329
|
switch (colorTheme) {
|
|
312
330
|
case 'none': {
|
|
@@ -331,4 +349,4 @@ var S_Error = styled_components_1.default.div(templateObject_18 || (templateObje
|
|
|
331
349
|
return theme.spacing.spacingA;
|
|
332
350
|
});
|
|
333
351
|
exports.default = TextField;
|
|
334
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18;
|
|
352
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20;
|
|
@@ -28,6 +28,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
var react_1 = __importDefault(require("react"));
|
|
30
30
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
|
+
var transitionStyle_1 = require("../../../common/styles/movement/transitionStyle");
|
|
31
32
|
var hybrid_1 = require("../../../hybrid");
|
|
32
33
|
var types_1 = require("./types");
|
|
33
34
|
function UploadIconButton(_a) {
|
|
@@ -60,14 +61,14 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
|
|
|
60
61
|
? ''
|
|
61
62
|
: theme.ui_cpnt_button_fill_base_disabled;
|
|
62
63
|
});
|
|
63
|
-
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-
|
|
64
|
+
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 content: '';\n border-radius: inherit;\n position: absolute;\n background-color: transparent;\n height: 100%;\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 content: '';\n border-radius: inherit;\n position: absolute;\n background-color: transparent;\n height: 100%;\n width: 100%;\n ", "\n }\n\n &:active:not([disabled])::before {\n background-color: ", ";\n }\n\n ", ";\n"])), function (_a) {
|
|
64
65
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
65
66
|
return baseColorKey ? theme[baseColorKey] : theme.ui_cpnt_button_fill_base_primary;
|
|
66
|
-
}, function (_a) {
|
|
67
|
+
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
67
68
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
68
69
|
return baseColorKey === 'ui_cpnt_button_fill_base_transparent'
|
|
69
70
|
? ''
|
|
70
|
-
:
|
|
71
|
+
: theme.ui_cpnt_button_fill_on_base_pressed;
|
|
71
72
|
}, function (_a) {
|
|
72
73
|
var isDisabled = _a.isDisabled;
|
|
73
74
|
return isDisabled && fillDisabled;
|
|
@@ -87,7 +88,7 @@ var lineDisabled = (0, styled_components_1.css)(templateObject_5 || (templateObj
|
|
|
87
88
|
var theme = _a.theme;
|
|
88
89
|
return theme.ui_cpnt_button_line_base_default;
|
|
89
90
|
});
|
|
90
|
-
var line = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background-color: ", ";\n border-color: ", ";\n\n ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n ", ";\n"], ["\n background-color: ", ";\n border-color: ", ";\n\n ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n ", ";\n"])), function (_a) {
|
|
91
|
+
var line = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background-color: ", ";\n border-color: ", ";\n\n ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n ", "\n\n ", ";\n"], ["\n background-color: ", ";\n border-color: ", ";\n\n ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n ", "\n\n ", ";\n"])), function (_a) {
|
|
91
92
|
var theme = _a.theme;
|
|
92
93
|
return theme.ui_cpnt_button_line_base_default;
|
|
93
94
|
}, function (_a) {
|
|
@@ -106,7 +107,7 @@ var line = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 =
|
|
|
106
107
|
}, function (_a) {
|
|
107
108
|
var theme = _a.theme;
|
|
108
109
|
return theme.ui_cpnt_button_line_base_pressed;
|
|
109
|
-
}, function (_a) {
|
|
110
|
+
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
110
111
|
var isDisabled = _a.isDisabled;
|
|
111
112
|
return isDisabled && lineDisabled;
|
|
112
113
|
});
|
|
@@ -11,7 +11,7 @@ declare type UploadMainButtonProps = {
|
|
|
11
11
|
iconMode?: 'none' | 'left' | 'right';
|
|
12
12
|
iconFillType?: 'fill' | 'line';
|
|
13
13
|
iconName?: FillIconNameKeys | LineIconNameKeys;
|
|
14
|
-
colorTheme?: 'none' | 'line1' | 'line2' | 'line3';
|
|
14
|
+
colorTheme?: 'none' | 'line1' | 'line2' | 'line3' | 'primary1' | 'secondary1';
|
|
15
15
|
state?: 'normal' | 'disabled';
|
|
16
16
|
accept?: string;
|
|
17
17
|
multipleMode?: 'none' | 'use';
|
|
@@ -30,6 +30,7 @@ var react_1 = __importDefault(require("react"));
|
|
|
30
30
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
31
|
var components_1 = require("../../../common/components");
|
|
32
32
|
var styles_1 = require("../../../common/styles");
|
|
33
|
+
var transitionStyle_1 = require("../../../common/styles/movement/transitionStyle");
|
|
33
34
|
var hybrid_1 = require("../../../hybrid");
|
|
34
35
|
var TextLabel_1 = require("../TextLabel");
|
|
35
36
|
var types_1 = require("./types");
|
|
@@ -41,9 +42,23 @@ function UploadMainButton(_a) {
|
|
|
41
42
|
}
|
|
42
43
|
e.target.value = '';
|
|
43
44
|
};
|
|
45
|
+
var isLineColorTheme = colorTheme.includes('line');
|
|
46
|
+
var isPrimaryColorTheme = colorTheme.includes('primary');
|
|
47
|
+
var isSecondaryColorTheme = colorTheme.includes('secondary');
|
|
48
|
+
var lineColorThemeTextColor = function () {
|
|
49
|
+
if (colorTheme === 'line1') {
|
|
50
|
+
return 'ui_cpnt_button_text_error';
|
|
51
|
+
}
|
|
52
|
+
if (colorTheme === 'line2') {
|
|
53
|
+
return 'ui_cpnt_button_text_primary';
|
|
54
|
+
}
|
|
55
|
+
if (colorTheme === 'line3') {
|
|
56
|
+
return 'ui_cpnt_button_text_darktheme_enabled';
|
|
57
|
+
}
|
|
58
|
+
};
|
|
44
59
|
var submittingProgressColor = function () {
|
|
45
|
-
if (fillType === 'line' &&
|
|
46
|
-
return
|
|
60
|
+
if (fillType === 'line' && isLineColorTheme && state !== 'disabled') {
|
|
61
|
+
return lineColorThemeTextColor();
|
|
47
62
|
}
|
|
48
63
|
if (fillType === 'fill') {
|
|
49
64
|
return 'ui_cpnt_textlabel_usr_brandonprimary';
|
|
@@ -52,53 +67,98 @@ function UploadMainButton(_a) {
|
|
|
52
67
|
return 'ui_cpnt_textlabel_sys_primary';
|
|
53
68
|
}
|
|
54
69
|
if (styleTheme === 'primary') {
|
|
70
|
+
if (colorTheme === 'primary1') {
|
|
71
|
+
return 'ui_cpnt_textlabel_usr_brandprimary';
|
|
72
|
+
}
|
|
55
73
|
return 'ui_cpnt_textlabel_usr_brandonprimary';
|
|
56
74
|
}
|
|
57
75
|
if (styleTheme === 'secondary') {
|
|
76
|
+
if (colorTheme === 'secondary1') {
|
|
77
|
+
return 'ui_cpnt_textlabel_sys_white';
|
|
78
|
+
}
|
|
58
79
|
return 'ui_cpnt_textlabel_usr_brandprimary';
|
|
59
80
|
}
|
|
60
81
|
return 'ui_cpnt_textlabel_usr_brandonprimary';
|
|
61
82
|
};
|
|
62
|
-
var
|
|
83
|
+
var textColor = function () {
|
|
84
|
+
if (fillType === 'fill') {
|
|
85
|
+
return 'usrTextBrandOnPrimary';
|
|
86
|
+
}
|
|
87
|
+
if (fillType === 'line') {
|
|
88
|
+
return 'sysTextPrimary';
|
|
89
|
+
}
|
|
90
|
+
if (styleTheme === 'primary') {
|
|
91
|
+
if (colorTheme === 'primary1') {
|
|
92
|
+
return 'usrTextBrandPrimary';
|
|
93
|
+
}
|
|
94
|
+
return 'usrTextBrandOnPrimary';
|
|
95
|
+
}
|
|
96
|
+
if (styleTheme === 'secondary') {
|
|
97
|
+
if (colorTheme === 'secondary1') {
|
|
98
|
+
return 'sysTextWhite';
|
|
99
|
+
}
|
|
100
|
+
return 'usrTextBrandPrimary';
|
|
101
|
+
}
|
|
102
|
+
return 'usrTextBrandOnPrimary';
|
|
103
|
+
};
|
|
104
|
+
var textColorOverride = function () {
|
|
63
105
|
if (colorTheme === 'line3' && state === 'disabled') {
|
|
64
106
|
return 'ui_cpnt_button_text_darktheme_disabled';
|
|
65
107
|
}
|
|
66
|
-
if (fillType === 'line' &&
|
|
67
|
-
return
|
|
108
|
+
if (fillType === 'line' && isLineColorTheme && state !== 'disabled') {
|
|
109
|
+
return lineColorThemeTextColor();
|
|
110
|
+
}
|
|
111
|
+
if (styleTheme === 'secondary' && colorTheme === 'secondary1' && state === 'disabled') {
|
|
112
|
+
return 'ui_cpnt_button_text_secondary_variation_disabled';
|
|
68
113
|
}
|
|
69
114
|
return undefined;
|
|
70
115
|
};
|
|
116
|
+
var lineColorThemeIconColor = function () {
|
|
117
|
+
if (colorTheme === 'line1') {
|
|
118
|
+
return 'ui_cpnt_button_icon_error';
|
|
119
|
+
}
|
|
120
|
+
if (colorTheme === 'line2') {
|
|
121
|
+
return 'ui_cpnt_button_icon_primary';
|
|
122
|
+
}
|
|
123
|
+
if (colorTheme === 'line3') {
|
|
124
|
+
return 'ui_cpnt_button_icon_darktheme_enabled';
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
var primaryColorThemeIconColor = function () {
|
|
128
|
+
if (colorTheme === 'primary1') {
|
|
129
|
+
return 'ui_cpnt_button_icon_primary';
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
var secondaryColorThemeIconColor = function () {
|
|
133
|
+
if (colorTheme === 'secondary1') {
|
|
134
|
+
return 'ui_cpnt_button_icon_on_primary';
|
|
135
|
+
}
|
|
136
|
+
};
|
|
71
137
|
var iconColor = function () {
|
|
72
138
|
if (state === 'disabled') {
|
|
73
139
|
if (colorTheme === 'line3') {
|
|
74
140
|
return 'ui_cpnt_button_icon_darktheme_disabled';
|
|
75
141
|
}
|
|
142
|
+
if (styleTheme === 'secondary' && colorTheme === 'secondary1') {
|
|
143
|
+
return 'ui_cpnt_button_icon_secondary_variation_disabled';
|
|
144
|
+
}
|
|
76
145
|
return 'ui_cpnt_button_icon_disabled';
|
|
77
146
|
}
|
|
78
|
-
if (fillType === 'line' &&
|
|
79
|
-
return
|
|
147
|
+
if (fillType === 'line' && isLineColorTheme) {
|
|
148
|
+
return lineColorThemeIconColor();
|
|
80
149
|
}
|
|
81
150
|
if (fillType) {
|
|
82
151
|
return types_1.iconFillTypeColors[fillType];
|
|
83
152
|
}
|
|
84
|
-
if (styleTheme) {
|
|
85
|
-
return
|
|
153
|
+
if (styleTheme === 'primary' && isPrimaryColorTheme) {
|
|
154
|
+
return primaryColorThemeIconColor();
|
|
86
155
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
if (fillType === 'fill') {
|
|
90
|
-
return 'usrTextBrandOnPrimary';
|
|
156
|
+
if (styleTheme === 'secondary' && isSecondaryColorTheme) {
|
|
157
|
+
return secondaryColorThemeIconColor();
|
|
91
158
|
}
|
|
92
|
-
if (
|
|
93
|
-
return
|
|
94
|
-
}
|
|
95
|
-
if (styleTheme === 'primary') {
|
|
96
|
-
return 'usrTextBrandOnPrimary';
|
|
97
|
-
}
|
|
98
|
-
if (styleTheme === 'secondary') {
|
|
99
|
-
return 'usrTextBrandPrimary';
|
|
159
|
+
if (styleTheme) {
|
|
160
|
+
return types_1.iconStyleThemeColors[styleTheme];
|
|
100
161
|
}
|
|
101
|
-
return 'usrTextBrandOnPrimary';
|
|
102
162
|
};
|
|
103
163
|
var UploadMainButtonVariation = function () {
|
|
104
164
|
if (isLoading) {
|
|
@@ -115,7 +175,7 @@ function UploadMainButton(_a) {
|
|
|
115
175
|
size !== 'xsmall' && iconMode === 'left' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
116
176
|
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType }),
|
|
117
177
|
react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }))),
|
|
118
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: types_1.textStyles[size], singleLineMode: "use", colorTheme: state === 'disabled' ? 'sysTextTertiary' : textColor(), colorOverride:
|
|
178
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: types_1.textStyles[size], singleLineMode: "use", colorTheme: state === 'disabled' ? 'sysTextTertiary' : textColor(), colorOverride: textColorOverride(), ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }),
|
|
119
179
|
size !== 'xsmall' && iconMode === 'right' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
120
180
|
react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }),
|
|
121
181
|
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType })))));
|
|
@@ -157,13 +217,12 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_5 || (templateObj
|
|
|
157
217
|
var theme = _a.theme;
|
|
158
218
|
return theme.ui_cpnt_button_fill_base_disabled;
|
|
159
219
|
});
|
|
160
|
-
var fill = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n\n &:active:not([disabled]) {\n background-
|
|
220
|
+
var fill = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n content: '';\n border-radius: inherit;\n position: absolute;\n background-color: transparent;\n height: 100%;\n width: 100%;\n padding: 0;\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 content: '';\n border-radius: inherit;\n position: absolute;\n background-color: transparent;\n height: 100%;\n width: 100%;\n padding: 0;\n ", "\n }\n\n &:active:not([disabled])::before {\n background-color: ", ";\n }\n\n ", "\n"])), function (_a) {
|
|
161
221
|
var theme = _a.theme;
|
|
162
222
|
return theme.ui_cpnt_button_fill_base_primary;
|
|
163
|
-
}, function (_a) {
|
|
223
|
+
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
164
224
|
var theme = _a.theme, isSubmitting = _a.isSubmitting;
|
|
165
|
-
return !isSubmitting &&
|
|
166
|
-
"linear-gradient(\n to top,\n " + theme.ui_cpnt_button_fill_on_base_pressed + ",\n " + theme.ui_cpnt_button_fill_on_base_pressed + "\n )";
|
|
225
|
+
return !isSubmitting && theme.ui_cpnt_button_fill_on_base_pressed;
|
|
167
226
|
}, function (_a) {
|
|
168
227
|
var disabled = _a.disabled;
|
|
169
228
|
return disabled && fillDisabled;
|
|
@@ -201,15 +260,26 @@ var lineDisabled = (0, styled_components_1.css)(templateObject_11 || (templateOb
|
|
|
201
260
|
? theme.ui_cpnt_button_line_border_darktheme_disabled
|
|
202
261
|
: theme.ui_cpnt_button_line_border_disabled;
|
|
203
262
|
});
|
|
204
|
-
var line = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n ", ";\n ", "\n"], ["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n ", ";\n ", "\n"])), function (_a) {
|
|
263
|
+
var line = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n &::before {\n content: '';\n display: none;\n }\n ", "\n\n ", ";\n\n ", "\n"], ["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n &::before {\n content: '';\n display: none;\n }\n ", "\n\n ", ";\n\n ", "\n"])), function (_a) {
|
|
205
264
|
var theme = _a.theme;
|
|
206
265
|
return theme.ui_cpnt_button_line_base_default;
|
|
207
266
|
}, function (_a) {
|
|
208
267
|
var theme = _a.theme, isSubmitting = _a.isSubmitting;
|
|
209
268
|
return !isSubmitting && theme.ui_cpnt_button_line_base_pressed;
|
|
210
|
-
}, function (_a) {
|
|
269
|
+
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
211
270
|
var colorTheme = _a.colorTheme;
|
|
212
|
-
|
|
271
|
+
if (colorTheme === 'none') {
|
|
272
|
+
return none;
|
|
273
|
+
}
|
|
274
|
+
if (colorTheme === 'line1') {
|
|
275
|
+
return line1;
|
|
276
|
+
}
|
|
277
|
+
if (colorTheme === 'line2') {
|
|
278
|
+
return line2;
|
|
279
|
+
}
|
|
280
|
+
if (colorTheme === 'line3') {
|
|
281
|
+
return line3;
|
|
282
|
+
}
|
|
213
283
|
}, function (_a) {
|
|
214
284
|
var disabled = _a.disabled;
|
|
215
285
|
return disabled && lineDisabled;
|
|
@@ -218,33 +288,55 @@ var primaryDisabled = (0, styled_components_1.css)(templateObject_13 || (templat
|
|
|
218
288
|
var theme = _a.theme;
|
|
219
289
|
return theme.ui_cpnt_button_fill_base_disabled;
|
|
220
290
|
});
|
|
221
|
-
var
|
|
291
|
+
var primary1 = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
292
|
+
var theme = _a.theme;
|
|
293
|
+
return theme.ui_cpnt_button_primary_variation_base_enabled;
|
|
294
|
+
});
|
|
295
|
+
var primary = (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n content: '';\n border-radius: inherit;\n position: absolute;\n background-color: transparent;\n height: 100%;\n width: 100%;\n padding: 0;\n ", "\n }\n\n &:active:not([disabled])::before {\n background-color: ", ";\n }\n\n ", "\n ", "\n"], ["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n content: '';\n border-radius: inherit;\n position: absolute;\n background-color: transparent;\n height: 100%;\n width: 100%;\n padding: 0;\n ", "\n }\n\n &:active:not([disabled])::before {\n background-color: ", ";\n }\n\n ", "\n ", "\n"])), function (_a) {
|
|
222
296
|
var theme = _a.theme;
|
|
223
297
|
return theme.ui_cpnt_button_fill_base_primary;
|
|
224
|
-
}, function (_a) {
|
|
298
|
+
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
225
299
|
var theme = _a.theme, isSubmitting = _a.isSubmitting;
|
|
226
|
-
return !isSubmitting &&
|
|
227
|
-
|
|
300
|
+
return !isSubmitting && theme.ui_cpnt_button_fill_on_base_pressed;
|
|
301
|
+
}, function (_a) {
|
|
302
|
+
var colorTheme = _a.colorTheme;
|
|
303
|
+
return colorTheme === 'primary1' && primary1;
|
|
228
304
|
}, function (_a) {
|
|
229
305
|
var disabled = _a.disabled;
|
|
230
306
|
return disabled && primaryDisabled;
|
|
231
307
|
});
|
|
232
|
-
var
|
|
308
|
+
var secondary1Disabled = (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
233
309
|
var theme = _a.theme;
|
|
234
|
-
return theme.
|
|
310
|
+
return theme.ui_cpnt_button_secondary_variation_base_default;
|
|
235
311
|
});
|
|
236
|
-
var
|
|
312
|
+
var secondaryDisabled = (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n background-color: ", ";\n\n ", "\n"], ["\n background-color: ", ";\n\n ", "\n"])), function (_a) {
|
|
237
313
|
var theme = _a.theme;
|
|
238
314
|
return theme.ui_cpnt_button_line_base_hover;
|
|
239
315
|
}, function (_a) {
|
|
316
|
+
var colorTheme = _a.colorTheme;
|
|
317
|
+
return colorTheme === 'secondary1' && secondary1Disabled;
|
|
318
|
+
});
|
|
319
|
+
var secondary1 = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n &::before {\n content: '';\n display: none;\n }\n\n ", "\n"], ["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n &::before {\n content: '';\n display: none;\n }\n\n ", "\n"])), function (_a) {
|
|
320
|
+
var theme = _a.theme;
|
|
321
|
+
return theme.ui_cpnt_button_secondary_variation_base_default;
|
|
322
|
+
}, function (_a) {
|
|
323
|
+
var theme = _a.theme;
|
|
324
|
+
return theme.ui_cpnt_button_secondary_variation_base_pressed;
|
|
325
|
+
}, transitionStyle_1.ButtonTransition);
|
|
326
|
+
var secondary = (0, styled_components_1.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n content: '';\n border-radius: inherit;\n position: absolute;\n background-color: transparent;\n height: 100%;\n width: 100%;\n padding: 0;\n ", "\n }\n\n &:active:not([disabled])::before {\n background-color: ", ";\n }\n\n ", "\n ", "\n"], ["\n background-color: ", ";\n border: none;\n position: relative;\n\n &::before {\n content: '';\n border-radius: inherit;\n position: absolute;\n background-color: transparent;\n height: 100%;\n width: 100%;\n padding: 0;\n ", "\n }\n\n &:active:not([disabled])::before {\n background-color: ", ";\n }\n\n ", "\n ", "\n"])), function (_a) {
|
|
327
|
+
var theme = _a.theme;
|
|
328
|
+
return theme.ui_cpnt_button_line_base_hover;
|
|
329
|
+
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
240
330
|
var theme = _a.theme, isSubmitting = _a.isSubmitting;
|
|
241
|
-
return !isSubmitting &&
|
|
242
|
-
|
|
331
|
+
return !isSubmitting && theme.ui_cpnt_button_secondary_on_base_pressed;
|
|
332
|
+
}, function (_a) {
|
|
333
|
+
var colorTheme = _a.colorTheme;
|
|
334
|
+
return colorTheme === 'secondary1' && secondary1;
|
|
243
335
|
}, function (_a) {
|
|
244
336
|
var disabled = _a.disabled;
|
|
245
337
|
return disabled && secondaryDisabled;
|
|
246
338
|
});
|
|
247
|
-
var S_UploadMainButton = styled_components_1.default.label(
|
|
339
|
+
var S_UploadMainButton = styled_components_1.default.label(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n\n & > div {\n font-weight: ", ";\n }\n\n ", "\n ", "\n ", "\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n\n & > div {\n font-weight: ", ";\n }\n\n ", "\n ", "\n ", "\n ", ";\n"])), function (_a) {
|
|
248
340
|
var theme = _a.theme, fontWeight = _a.fontWeight;
|
|
249
341
|
return fontWeight &&
|
|
250
342
|
{
|
|
@@ -264,6 +356,6 @@ var S_UploadMainButton = styled_components_1.default.label(templateObject_17 ||
|
|
|
264
356
|
var responsiveMode = _a.responsiveMode;
|
|
265
357
|
return responsiveMode === 'use' && 'width: 100%';
|
|
266
358
|
});
|
|
267
|
-
var S_LoadingUploadMainButton = (0, styled_components_1.default)(S_UploadMainButton)(
|
|
359
|
+
var S_LoadingUploadMainButton = (0, styled_components_1.default)(S_UploadMainButton)(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), styles_1.skeletonLoadingStyle);
|
|
268
360
|
exports.default = UploadMainButton;
|
|
269
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18;
|
|
361
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21;
|
|
@@ -5,11 +5,6 @@ export declare const textStyles: {
|
|
|
5
5
|
readonly small: "caption1Bold";
|
|
6
6
|
readonly xsmall: "caption1Regular";
|
|
7
7
|
};
|
|
8
|
-
export declare const textThemeColorLines: {
|
|
9
|
-
readonly line1: "ui_cpnt_button_text_error";
|
|
10
|
-
readonly line2: "ui_cpnt_button_text_primary";
|
|
11
|
-
readonly line3: "ui_cpnt_button_text_darktheme_enabled";
|
|
12
|
-
};
|
|
13
8
|
export declare const iconFillTypeColors: {
|
|
14
9
|
readonly fill: "ui_cpnt_button_icon_on_primary";
|
|
15
10
|
readonly line: "ui_cpnt_button_icon_enabled";
|
|
@@ -18,8 +13,3 @@ export declare const iconStyleThemeColors: {
|
|
|
18
13
|
readonly primary: "ui_cpnt_button_icon_on_primary";
|
|
19
14
|
readonly secondary: "ui_cpnt_button_icon_primary";
|
|
20
15
|
};
|
|
21
|
-
export declare const iconColorThemeLineColors: {
|
|
22
|
-
readonly line1: "ui_cpnt_button_icon_error";
|
|
23
|
-
readonly line2: "ui_cpnt_button_icon_primary";
|
|
24
|
-
readonly line3: "ui_cpnt_button_icon_darktheme_enabled";
|
|
25
|
-
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.iconStyleThemeColors = exports.iconFillTypeColors = exports.textStyles = void 0;
|
|
4
4
|
exports.textStyles = {
|
|
5
5
|
rlarge: 'body1Bold',
|
|
6
6
|
large: 'body1Bold',
|
|
@@ -8,11 +8,6 @@ exports.textStyles = {
|
|
|
8
8
|
small: 'caption1Bold',
|
|
9
9
|
xsmall: 'caption1Regular'
|
|
10
10
|
};
|
|
11
|
-
exports.textThemeColorLines = {
|
|
12
|
-
line1: 'ui_cpnt_button_text_error',
|
|
13
|
-
line2: 'ui_cpnt_button_text_primary',
|
|
14
|
-
line3: 'ui_cpnt_button_text_darktheme_enabled'
|
|
15
|
-
};
|
|
16
11
|
exports.iconFillTypeColors = {
|
|
17
12
|
fill: 'ui_cpnt_button_icon_on_primary',
|
|
18
13
|
line: 'ui_cpnt_button_icon_enabled'
|
|
@@ -21,8 +16,3 @@ exports.iconStyleThemeColors = {
|
|
|
21
16
|
primary: 'ui_cpnt_button_icon_on_primary',
|
|
22
17
|
secondary: 'ui_cpnt_button_icon_primary'
|
|
23
18
|
};
|
|
24
|
-
exports.iconColorThemeLineColors = {
|
|
25
|
-
line1: 'ui_cpnt_button_icon_error',
|
|
26
|
-
line2: 'ui_cpnt_button_icon_primary',
|
|
27
|
-
line3: 'ui_cpnt_button_icon_darktheme_enabled'
|
|
28
|
-
};
|
|
@@ -28,6 +28,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
var react_1 = __importDefault(require("react"));
|
|
30
30
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
31
|
+
var transitionStyle_1 = require("../../../common/styles/movement/transitionStyle");
|
|
31
32
|
var TextLabel_1 = require("../TextLabel");
|
|
32
33
|
var textStyle = {
|
|
33
34
|
rlarge: 'body1Bold',
|
|
@@ -61,10 +62,10 @@ var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 =
|
|
|
61
62
|
var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius: 14px;\n height: 40px;\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"], ["\n border-radius: 14px;\n height: 40px;\n\n & > div {\n height: 40px;\n line-height: 40px;\n }\n"])));
|
|
62
63
|
var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 10px;\n height: 32px;\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"], ["\n border-radius: 10px;\n height: 32px;\n\n & > div {\n height: 32px;\n line-height: 32px;\n }\n"])));
|
|
63
64
|
var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 8px;\n height: 24px;\n\n & > div {\n height: 24px;\n line-height: 24px;\n }\n"], ["\n border-radius: 8px;\n height: 24px;\n\n & > div {\n height: 24px;\n line-height: 24px;\n }\n"])));
|
|
64
|
-
var S_UploadTextButton = styled_components_1.default.label(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n padding: 0 ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n & > div {\n font-weight: ", ";\n }\n\n ", ";\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n padding: 0 ", ";\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n & > div {\n font-weight: ", ";\n }\n\n ", ";\n ", ";\n"])), function (_a) {
|
|
65
|
+
var S_UploadTextButton = styled_components_1.default.label(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n padding: 0 ", ";\n\n ", "\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n & > div {\n font-weight: ", ";\n }\n\n ", ";\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n display: inline-flex;\n justify-content: center;\n padding: 0 ", ";\n\n ", "\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n & > div {\n font-weight: ", ";\n }\n\n ", ";\n ", ";\n"])), function (_a) {
|
|
65
66
|
var theme = _a.theme;
|
|
66
67
|
return theme.spacing.spacingB;
|
|
67
|
-
}, function (_a) {
|
|
68
|
+
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
68
69
|
var theme = _a.theme;
|
|
69
70
|
return theme.ui_cpnt_button_line_base_pressed;
|
|
70
71
|
}, function (_a) {
|
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
var react_1 = __importStar(require("react"));
|
|
30
30
|
var react_dom_1 = __importDefault(require("react-dom"));
|
|
31
31
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
32
|
+
var animationStyle_1 = require("../../../common/styles/movement/animationStyle");
|
|
32
33
|
var hybrid_1 = require("../../../hybrid");
|
|
33
34
|
var components_1 = require("../../components");
|
|
34
35
|
function MobileBasicModal(_a) {
|
|
@@ -65,11 +66,11 @@ function MobileBasicModal(_a) {
|
|
|
65
66
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b" }),
|
|
66
67
|
react_1.default.createElement(components_1.TextButton, { text: tBtnText, state: tBtnState, type: tBtnType, size: "rlarge", onClick: onClickTBtn })))))), container);
|
|
67
68
|
}
|
|
68
|
-
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 background-color: ", ";\n height: 100vh;\n left: 0;\n position: fixed;\n top: 0;\n width: 100vw;\n"])), function (_a) {
|
|
69
|
+
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) {
|
|
69
70
|
var theme = _a.theme;
|
|
70
71
|
return theme.ui_cpnt_modal_dimmed;
|
|
71
|
-
});
|
|
72
|
-
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 left: 50%;\n max-width: 560px;\n position: fixed;\n top: 50%;\n transform: translate(-50%, -50%);\n width: calc(100% - 48px);\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 24px;\n box-shadow: ", ";\n left: 50%;\n max-width: 560px;\n position: fixed;\n top: 50%;\n transform: translate(-50%, -50%);\n width: calc(100% - 48px);\n"])), function (_a) {
|
|
72
|
+
}, animationStyle_1.modalOverlayOnAni);
|
|
73
|
+
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 left: 50%;\n max-width: 560px;\n position: fixed;\n top: 50%;\n transform: translate(-50%, -50%);\n width: calc(100% - 48px);\n\n ", "\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 24px;\n box-shadow: ", ";\n left: 50%;\n max-width: 560px;\n position: fixed;\n top: 50%;\n transform: translate(-50%, -50%);\n width: calc(100% - 48px);\n\n ", "\n"])), function (_a) {
|
|
73
74
|
var theme = _a.theme;
|
|
74
75
|
return theme.ui_cpnt_modal_base;
|
|
75
76
|
}, function (_a) {
|
|
@@ -78,7 +79,7 @@ var S_ModalWrapper = styled_components_1.default.div(templateObject_2 || (templa
|
|
|
78
79
|
}, function (_a) {
|
|
79
80
|
var theme = _a.theme;
|
|
80
81
|
return theme.boxShadow.elevation4;
|
|
81
|
-
});
|
|
82
|
+
}, animationStyle_1.modalOnAni);
|
|
82
83
|
var S_Header = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n padding-bottom: ", ";\n"], ["\n display: flex;\n justify-content: space-between;\n padding-bottom: ", ";\n"])), function (_a) {
|
|
83
84
|
var theme = _a.theme;
|
|
84
85
|
return theme.spacing.spacingC;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DynamicLayoutProps } from './types';
|
|
3
|
-
declare function DynamicLayout({ device, mode, isPreview, sections,
|
|
3
|
+
declare function DynamicLayout({ device, mode, isPreview, sections, scrollDownTargetSectionId, editingSectionId, navigationHandler, onClickEditSection }: DynamicLayoutProps): JSX.Element;
|
|
4
4
|
export default DynamicLayout;
|
|
@@ -28,11 +28,11 @@ var EditModeSectionMatcher_1 = require("./components/EditModeSectionMatcher");
|
|
|
28
28
|
var SectionMatcher_1 = require("./components/SectionMatcher");
|
|
29
29
|
var dynamicLayoutContext_1 = require("./dynamicLayoutContext");
|
|
30
30
|
function DynamicLayout(_a) {
|
|
31
|
-
var device = _a.device, _b = _a.mode, mode = _b === void 0 ? 'NORMAL' : _b, isPreview = _a.isPreview, sections = _a.sections,
|
|
31
|
+
var device = _a.device, _b = _a.mode, mode = _b === void 0 ? 'NORMAL' : _b, isPreview = _a.isPreview, sections = _a.sections, scrollDownTargetSectionId = _a.scrollDownTargetSectionId, editingSectionId = _a.editingSectionId, navigationHandler = _a.navigationHandler, onClickEditSection = _a.onClickEditSection;
|
|
32
32
|
var filteredSortedSection = __spreadArray([], sections, true).filter(function (section) { return section.display; })
|
|
33
33
|
.sort(function (a, b) { return a.order - b.order; });
|
|
34
34
|
return (react_1.default.createElement(dynamicLayoutContext_1.dynamicLayoutContext.Provider, { value: { device: device, mode: mode, isPreview: isPreview, navigationHandler: navigationHandler } },
|
|
35
|
-
mode === 'EDIT' && onClickEditSection && (react_1.default.createElement(EditModeSectionMatcher_1.EditModeSectionMatcher, { scrollDownTargetSectionId: scrollDownTargetSectionId, filteredSortedSection: filteredSortedSection, onClickEditSection: onClickEditSection })),
|
|
35
|
+
mode === 'EDIT' && onClickEditSection && (react_1.default.createElement(EditModeSectionMatcher_1.EditModeSectionMatcher, { editingSectionId: editingSectionId, scrollDownTargetSectionId: scrollDownTargetSectionId, filteredSortedSection: filteredSortedSection, onClickEditSection: onClickEditSection })),
|
|
36
36
|
mode !== 'EDIT' &&
|
|
37
37
|
filteredSortedSection.map(function (section) { return react_1.default.createElement(SectionMatcher_1.SectionMatcher, __assign({ key: section.id }, section)); })));
|
|
38
38
|
}
|
package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ISection } from '../../types';
|
|
3
|
-
export default function EditModeSectionMatcher({ filteredSortedSection, scrollDownTargetSectionId, onClickEditSection }: {
|
|
3
|
+
export default function EditModeSectionMatcher({ filteredSortedSection, scrollDownTargetSectionId, editingSectionId, onClickEditSection }: {
|
|
4
4
|
filteredSortedSection: ISection[];
|
|
5
5
|
scrollDownTargetSectionId?: number;
|
|
6
|
+
editingSectionId?: number;
|
|
6
7
|
onClickEditSection: (section: ISection) => void;
|
|
7
8
|
}): JSX.Element;
|
package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/EditModeSectionMatcher.js
CHANGED
|
@@ -18,8 +18,8 @@ var react_1 = __importDefault(require("react"));
|
|
|
18
18
|
var SectionMatcher_1 = require("../SectionMatcher");
|
|
19
19
|
var SectionBox_1 = __importDefault(require("./SectionBox"));
|
|
20
20
|
function EditModeSectionMatcher(_a) {
|
|
21
|
-
var filteredSortedSection = _a.filteredSortedSection, scrollDownTargetSectionId = _a.scrollDownTargetSectionId, onClickEditSection = _a.onClickEditSection;
|
|
22
|
-
return (react_1.default.createElement(react_1.default.Fragment, null, filteredSortedSection.map(function (section) { return (react_1.default.createElement(SectionBox_1.default, { scrollIntoThisSection: section.id === scrollDownTargetSectionId, key: section.id, onClick: function () { return onClickEditSection(section); } },
|
|
21
|
+
var filteredSortedSection = _a.filteredSortedSection, scrollDownTargetSectionId = _a.scrollDownTargetSectionId, editingSectionId = _a.editingSectionId, onClickEditSection = _a.onClickEditSection;
|
|
22
|
+
return (react_1.default.createElement(react_1.default.Fragment, null, filteredSortedSection.map(function (section) { return (react_1.default.createElement(SectionBox_1.default, { isEditing: editingSectionId === section.id, scrollIntoThisSection: section.id === scrollDownTargetSectionId, key: section.id, onClick: function () { return onClickEditSection(section); } },
|
|
23
23
|
react_1.default.createElement(SectionMatcher_1.SectionMatcher, __assign({ key: section.id }, section)))); })));
|
|
24
24
|
}
|
|
25
25
|
exports.default = EditModeSectionMatcher;
|