pds-dev-kit-web 1.9.0-beta.4 → 1.9.0-beta.6
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/assets/icons/line/CsBold.d.ts +4 -0
- package/dist/src/common/assets/icons/line/CsBold.js +34 -0
- package/dist/src/common/assets/icons/line/CsFace.d.ts +4 -0
- package/dist/src/common/assets/icons/line/CsFace.js +34 -0
- package/dist/src/common/assets/icons/line/index.d.ts +2 -0
- package/dist/src/common/assets/icons/line/index.js +4 -0
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +1 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +1 -1
- package/dist/src/common/styles/colorSet/SemanticColor.json +3 -1
- package/dist/src/common/styles/colorSet/UIColor.json +3 -2
- package/dist/src/common/styles/colorSet/index.d.ts +97 -94
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +1 -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/common/styles/scroll/scrollbarStyle.d.ts +2 -0
- package/dist/src/common/styles/scroll/scrollbarStyle.js +14 -0
- package/dist/src/desktop/components/AdminList/AdminList.d.ts +2 -1
- package/dist/src/desktop/components/AdminList/AdminList.js +4 -4
- package/dist/src/desktop/components/AdminList/HeaderRow.d.ts +2 -1
- package/dist/src/desktop/components/AdminList/HeaderRow.js +21 -17
- package/dist/src/desktop/components/AdminListItem/AdminListItem.d.ts +1 -0
- package/dist/src/desktop/components/AdminListItem/AdminListItem.js +20 -15
- 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 +9 -12
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFB.js +8 -11
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFE.js +17 -20
- package/dist/src/desktop/layout/LayoutWF/Containers/ContentsContainer/variation/WFL.js +11 -33
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSA.js +3 -2
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSD.js +3 -2
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSE.js +3 -2
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSF.js +5 -4
- package/dist/src/desktop/layout/LayoutWS/Containers/ContentsContainer/variation/WSG.js +5 -4
- package/dist/src/desktop/panels/DesktopBasicModal/DesktopBasicModal.d.ts +3 -2
- package/dist/src/desktop/panels/DesktopBasicModal/DesktopBasicModal.js +32 -18
- package/dist/src/desktop/panels/DesktopHeadlessModal/DesktopHeadlessModal.js +12 -14
- 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/storybook-static/{0.8a8ae8fa.iframe.bundle.d.ts → 0.2023c95c.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{0.8a8ae8fa.iframe.bundle.js → 0.2023c95c.iframe.bundle.js} +4 -4
- package/dist/storybook-static/{4.0cae350a.iframe.bundle.d.ts → 4.d1de0501.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{4.0cae350a.iframe.bundle.js → 4.d1de0501.iframe.bundle.js} +68 -68
- package/dist/storybook-static/{5.6dd988b7.iframe.bundle.d.ts → 5.2f192ddf.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{5.6dd988b7.iframe.bundle.js → 5.2f192ddf.iframe.bundle.js} +10 -10
- package/dist/storybook-static/{6.16e7a5f8.iframe.bundle.d.ts → 6.62fc7663.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{6.16e7a5f8.iframe.bundle.js → 6.62fc7663.iframe.bundle.js} +5 -5
- package/dist/storybook-static/{7.d9eac22c.iframe.bundle.d.ts → 7.3518bf24.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{7.d9eac22c.iframe.bundle.js → 7.3518bf24.iframe.bundle.js} +1 -1
- package/dist/storybook-static/{main.a2e80e11.iframe.bundle.d.ts → main.c8ffb728.iframe.bundle.d.ts} +296 -326
- package/dist/storybook-static/{main.a2e80e11.iframe.bundle.js → main.c8ffb728.iframe.bundle.js} +146 -57
- package/dist/storybook-static/{runtime~main.d6679bc3.iframe.bundle.d.ts → runtime~main.54fba058.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{runtime~main.d6679bc3.iframe.bundle.js → runtime~main.54fba058.iframe.bundle.js} +1 -1
- package/dist/storybook-static/{vendors~main.acdf7090.iframe.bundle.d.ts → vendors~main.dd7c8d3f.iframe.bundle.d.ts} +0 -0
- package/dist/storybook-static/{vendors~main.acdf7090.iframe.bundle.js → vendors~main.dd7c8d3f.iframe.bundle.js} +14 -14
- package/package.json +1 -1
- package/release-note.md +17 -7
|
@@ -25,6 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
var react_1 = __importStar(require("react"));
|
|
27
27
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
28
|
+
var transitionStyle_1 = require("../../../common/styles/movement/transitionStyle");
|
|
28
29
|
var numberHelper_1 = require("../../../common/utils/numberHelper");
|
|
29
30
|
var hybrid_1 = require("../../../hybrid");
|
|
30
31
|
var TextLabel_1 = require("../TextLabel");
|
|
@@ -78,9 +79,9 @@ var disabled = (0, styled_components_1.css)(templateObject_1 || (templateObject_
|
|
|
78
79
|
var theme = _a.theme;
|
|
79
80
|
return theme.ui_cpnt_button_fill_base_disabled;
|
|
80
81
|
});
|
|
81
|
-
var normal = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n cursor: pointer;\n\n &:focus {\n outline: none;\n }\n\n &:active:enabled {\n ", "
|
|
82
|
+
var normal = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n cursor: pointer;\n border: none;\n position: relative;\n\n &:focus {\n outline: none;\n }\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:enabled::before {\n background-color: ", ";\n }\n"], ["\n cursor: pointer;\n border: none;\n position: relative;\n\n &:focus {\n outline: none;\n }\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:enabled::before {\n background-color: ", ";\n }\n"])), transitionStyle_1.ButtonTransition, function (_a) {
|
|
82
83
|
var theme = _a.theme;
|
|
83
|
-
return
|
|
84
|
+
return theme.ui_cpnt_button_secondary_on_base_pressed;
|
|
84
85
|
});
|
|
85
86
|
var view_only = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n cursor: default;\n"], ["\n cursor: default;\n"])));
|
|
86
87
|
var buttonAnimation = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n @keyframes gelatine {\n from,\n to {\n transform: scale(1, 1);\n }\n 25% {\n transform: scale(0.95, 1.1);\n }\n 50% {\n transform: scale(1.05, 0.9);\n }\n 75% {\n transform: scale(0.97, 1.05);\n }\n }\n\n animation: gelatine 1s 1;\n"], ["\n @keyframes gelatine {\n from,\n to {\n transform: scale(1, 1);\n }\n 25% {\n transform: scale(0.95, 1.1);\n }\n 50% {\n transform: scale(1.05, 0.9);\n }\n 75% {\n transform: scale(0.97, 1.05);\n }\n }\n\n animation: gelatine 1s 1;\n"])));
|
|
@@ -11,7 +11,7 @@ export declare type MainButtonProps = {
|
|
|
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
|
type?: 'button' | 'submit';
|
|
16
16
|
state?: 'normal' | 'disabled';
|
|
17
17
|
isLoading?: boolean;
|
|
@@ -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
|
// NOTE : 기획상 아직 사용하지 않는 props
|
|
@@ -49,9 +50,23 @@ function MainButton(_a) {
|
|
|
49
50
|
onMouseDown(e);
|
|
50
51
|
}
|
|
51
52
|
};
|
|
53
|
+
var isLineColorTheme = colorTheme.includes('line');
|
|
54
|
+
var isPrimaryColorTheme = colorTheme.includes('primary');
|
|
55
|
+
var isSecondaryColorTheme = colorTheme.includes('secondary');
|
|
56
|
+
var lineColorThemeTextColor = function () {
|
|
57
|
+
if (colorTheme === 'line1') {
|
|
58
|
+
return 'ui_cpnt_button_text_error';
|
|
59
|
+
}
|
|
60
|
+
if (colorTheme === 'line2') {
|
|
61
|
+
return 'ui_cpnt_button_text_primary';
|
|
62
|
+
}
|
|
63
|
+
if (colorTheme === 'line3') {
|
|
64
|
+
return 'ui_cpnt_button_text_darktheme_enabled';
|
|
65
|
+
}
|
|
66
|
+
};
|
|
52
67
|
var submittingProgressColor = function () {
|
|
53
|
-
if (fillType === 'line' &&
|
|
54
|
-
return
|
|
68
|
+
if (fillType === 'line' && isLineColorTheme && state !== 'disabled') {
|
|
69
|
+
return lineColorThemeTextColor();
|
|
55
70
|
}
|
|
56
71
|
if (fillType === 'fill') {
|
|
57
72
|
return 'ui_cpnt_textlabel_usr_brandonprimary';
|
|
@@ -60,9 +75,15 @@ function MainButton(_a) {
|
|
|
60
75
|
return 'ui_cpnt_textlabel_sys_primary';
|
|
61
76
|
}
|
|
62
77
|
if (styleTheme === 'primary') {
|
|
78
|
+
if (colorTheme === 'primary1') {
|
|
79
|
+
return 'ui_cpnt_textlabel_usr_brandprimary';
|
|
80
|
+
}
|
|
63
81
|
return 'ui_cpnt_textlabel_usr_brandonprimary';
|
|
64
82
|
}
|
|
65
83
|
if (styleTheme === 'secondary') {
|
|
84
|
+
if (colorTheme === 'secondary1') {
|
|
85
|
+
return 'ui_cpnt_textlabel_sys_white';
|
|
86
|
+
}
|
|
66
87
|
return 'ui_cpnt_textlabel_usr_brandprimary';
|
|
67
88
|
}
|
|
68
89
|
return 'ui_cpnt_textlabel_usr_brandonprimary';
|
|
@@ -74,11 +95,6 @@ function MainButton(_a) {
|
|
|
74
95
|
small: 'caption1Bold',
|
|
75
96
|
xsmall: 'caption1Regular'
|
|
76
97
|
};
|
|
77
|
-
var textThemeColorLineObj = {
|
|
78
|
-
line1: 'ui_cpnt_button_text_error',
|
|
79
|
-
line2: 'ui_cpnt_button_text_primary',
|
|
80
|
-
line3: 'ui_cpnt_button_text_darktheme_enabled'
|
|
81
|
-
};
|
|
82
98
|
var textColor = function () {
|
|
83
99
|
if (fillType === 'fill') {
|
|
84
100
|
return 'usrTextBrandOnPrimary';
|
|
@@ -87,50 +103,84 @@ function MainButton(_a) {
|
|
|
87
103
|
return 'sysTextPrimary';
|
|
88
104
|
}
|
|
89
105
|
if (styleTheme === 'primary') {
|
|
106
|
+
if (colorTheme === 'primary1') {
|
|
107
|
+
return 'usrTextBrandPrimary';
|
|
108
|
+
}
|
|
90
109
|
return 'usrTextBrandOnPrimary';
|
|
91
110
|
}
|
|
92
111
|
if (styleTheme === 'secondary') {
|
|
112
|
+
if (colorTheme === 'secondary1') {
|
|
113
|
+
return 'sysTextWhite';
|
|
114
|
+
}
|
|
93
115
|
return 'usrTextBrandPrimary';
|
|
94
116
|
}
|
|
95
117
|
return 'usrTextBrandOnPrimary';
|
|
96
118
|
};
|
|
97
|
-
var
|
|
119
|
+
var textColorOverride = function () {
|
|
98
120
|
if (colorTheme === 'line3' && state === 'disabled') {
|
|
99
121
|
return 'ui_cpnt_button_text_darktheme_disabled';
|
|
100
122
|
}
|
|
101
|
-
if (fillType === 'line' &&
|
|
102
|
-
return
|
|
123
|
+
if (fillType === 'line' && isLineColorTheme && state !== 'disabled') {
|
|
124
|
+
return lineColorThemeTextColor();
|
|
125
|
+
}
|
|
126
|
+
if (styleTheme === 'secondary' && colorTheme === 'secondary1' && state === 'disabled') {
|
|
127
|
+
return 'ui_cpnt_button_text_secondary_variation_disabled';
|
|
103
128
|
}
|
|
104
129
|
return undefined;
|
|
105
130
|
};
|
|
106
|
-
var
|
|
131
|
+
var iconFillTypeColors = {
|
|
107
132
|
fill: 'ui_cpnt_button_icon_on_primary',
|
|
108
133
|
line: 'ui_cpnt_button_icon_enabled'
|
|
109
134
|
};
|
|
110
|
-
var
|
|
135
|
+
var iconStyleThemeColors = {
|
|
111
136
|
primary: 'ui_cpnt_button_icon_on_primary',
|
|
112
137
|
secondary: 'ui_cpnt_button_icon_primary'
|
|
113
138
|
};
|
|
114
|
-
var
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
139
|
+
var lineColorThemeIconColor = function () {
|
|
140
|
+
if (colorTheme === 'line1') {
|
|
141
|
+
return 'ui_cpnt_button_icon_error';
|
|
142
|
+
}
|
|
143
|
+
if (colorTheme === 'line2') {
|
|
144
|
+
return 'ui_cpnt_button_icon_primary';
|
|
145
|
+
}
|
|
146
|
+
if (colorTheme === 'line3') {
|
|
147
|
+
return 'ui_cpnt_button_icon_darktheme_enabled';
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
var primaryColorThemeIconColor = function () {
|
|
151
|
+
if (colorTheme === 'primary1') {
|
|
152
|
+
return 'ui_cpnt_button_icon_primary';
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
var secondaryColorThemeIconColor = function () {
|
|
156
|
+
if (colorTheme === 'secondary1') {
|
|
157
|
+
return 'ui_cpnt_button_icon_on_primary';
|
|
158
|
+
}
|
|
118
159
|
};
|
|
119
160
|
var iconColor = function () {
|
|
120
161
|
if (state === 'disabled') {
|
|
121
162
|
if (colorTheme === 'line3') {
|
|
122
163
|
return 'ui_cpnt_button_icon_darktheme_disabled';
|
|
123
164
|
}
|
|
165
|
+
if (styleTheme === 'secondary' && colorTheme === 'secondary1') {
|
|
166
|
+
return 'ui_cpnt_button_icon_secondary_variation_disabled';
|
|
167
|
+
}
|
|
124
168
|
return 'ui_cpnt_button_icon_disabled';
|
|
125
169
|
}
|
|
126
|
-
if (fillType === 'line' &&
|
|
127
|
-
return
|
|
170
|
+
if (fillType === 'line' && isLineColorTheme) {
|
|
171
|
+
return lineColorThemeIconColor();
|
|
128
172
|
}
|
|
129
173
|
if (fillType) {
|
|
130
|
-
return
|
|
174
|
+
return iconFillTypeColors[fillType];
|
|
175
|
+
}
|
|
176
|
+
if (styleTheme === 'primary' && isPrimaryColorTheme) {
|
|
177
|
+
return primaryColorThemeIconColor();
|
|
178
|
+
}
|
|
179
|
+
if (styleTheme === 'secondary' && isSecondaryColorTheme) {
|
|
180
|
+
return secondaryColorThemeIconColor();
|
|
131
181
|
}
|
|
132
182
|
if (styleTheme) {
|
|
133
|
-
return
|
|
183
|
+
return iconStyleThemeColors[styleTheme];
|
|
134
184
|
}
|
|
135
185
|
};
|
|
136
186
|
var MainButtonVariation = function () {
|
|
@@ -145,7 +195,7 @@ function MainButton(_a) {
|
|
|
145
195
|
size !== 'xsmall' && iconMode === 'left' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
146
196
|
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType }),
|
|
147
197
|
react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }))),
|
|
148
|
-
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], singleLineMode: "use", colorTheme: state === 'disabled' ? 'sysTextTertiary' : textColor(), colorOverride:
|
|
198
|
+
react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], singleLineMode: "use", colorTheme: state === 'disabled' ? 'sysTextTertiary' : textColor(), colorOverride: textColorOverride(), ellipsisMode: "use", lineLimit: 1, wordBreak: "break_all" }),
|
|
149
199
|
size !== 'xsmall' && iconMode === 'right' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
150
200
|
react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }),
|
|
151
201
|
react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType })))));
|
|
@@ -187,12 +237,12 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_5 || (templateObj
|
|
|
187
237
|
var theme = _a.theme;
|
|
188
238
|
return theme.ui_cpnt_button_fill_base_disabled;
|
|
189
239
|
});
|
|
190
|
-
var fill = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background-color: ", ";\n border: none;\n\n &:active:enabled {\n ", "
|
|
240
|
+
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:enabled::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:enabled::before {\n background-color: ", ";\n }\n\n ", "\n"])), function (_a) {
|
|
191
241
|
var theme = _a.theme;
|
|
192
242
|
return theme.ui_cpnt_button_fill_base_primary;
|
|
193
|
-
}, function (_a) {
|
|
243
|
+
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
194
244
|
var theme = _a.theme;
|
|
195
|
-
return
|
|
245
|
+
return theme.ui_cpnt_button_fill_on_base_pressed;
|
|
196
246
|
}, function (_a) {
|
|
197
247
|
var state = _a.state;
|
|
198
248
|
return state === 'disabled' && fillDisabled;
|
|
@@ -230,15 +280,26 @@ var lineDisabled = (0, styled_components_1.css)(templateObject_11 || (templateOb
|
|
|
230
280
|
? theme.ui_cpnt_button_line_border_darktheme_disabled
|
|
231
281
|
: theme.ui_cpnt_button_line_border_disabled;
|
|
232
282
|
});
|
|
233
|
-
var line = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n ", "\n"], ["\n background-color: ", ";\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n ", "\n"])), function (_a) {
|
|
283
|
+
var line = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:enabled {\n ", "\n }\n\n &::before {\n content: '';\n display: none;\n }\n ", "\n\n ", ";\n\n ", "\n"], ["\n background-color: ", ";\n\n &:active:enabled {\n ", "\n }\n\n &::before {\n content: '';\n display: none;\n }\n ", "\n\n ", ";\n\n ", "\n"])), function (_a) {
|
|
234
284
|
var theme = _a.theme;
|
|
235
285
|
return theme.ui_cpnt_button_line_base_default;
|
|
236
286
|
}, function (_a) {
|
|
237
287
|
var theme = _a.theme;
|
|
238
288
|
return "background-color: " + theme.ui_cpnt_button_line_base_pressed + ";";
|
|
239
|
-
}, function (_a) {
|
|
289
|
+
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
240
290
|
var colorTheme = _a.colorTheme;
|
|
241
|
-
|
|
291
|
+
if (colorTheme === 'none') {
|
|
292
|
+
return none;
|
|
293
|
+
}
|
|
294
|
+
if (colorTheme === 'line1') {
|
|
295
|
+
return line1;
|
|
296
|
+
}
|
|
297
|
+
if (colorTheme === 'line2') {
|
|
298
|
+
return line2;
|
|
299
|
+
}
|
|
300
|
+
if (colorTheme === 'line3') {
|
|
301
|
+
return line3;
|
|
302
|
+
}
|
|
242
303
|
}, function (_a) {
|
|
243
304
|
var state = _a.state;
|
|
244
305
|
return state === 'disabled' && lineDisabled;
|
|
@@ -247,31 +308,55 @@ var primaryDisabled = (0, styled_components_1.css)(templateObject_13 || (templat
|
|
|
247
308
|
var theme = _a.theme;
|
|
248
309
|
return theme.ui_cpnt_button_fill_base_disabled;
|
|
249
310
|
});
|
|
250
|
-
var
|
|
311
|
+
var primary1 = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
312
|
+
var theme = _a.theme;
|
|
313
|
+
return theme.ui_cpnt_button_primary_variation_base_enabled;
|
|
314
|
+
});
|
|
315
|
+
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:enabled::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:enabled::before {\n background-color: ", ";\n }\n\n ", "\n ", "\n"])), function (_a) {
|
|
251
316
|
var theme = _a.theme;
|
|
252
317
|
return theme.ui_cpnt_button_fill_base_primary;
|
|
253
|
-
}, function (_a) {
|
|
318
|
+
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
254
319
|
var theme = _a.theme;
|
|
255
|
-
return
|
|
320
|
+
return theme.ui_cpnt_button_fill_on_base_pressed;
|
|
321
|
+
}, function (_a) {
|
|
322
|
+
var colorTheme = _a.colorTheme;
|
|
323
|
+
return colorTheme === 'primary1' && primary1;
|
|
256
324
|
}, function (_a) {
|
|
257
325
|
var state = _a.state;
|
|
258
326
|
return state === 'disabled' && primaryDisabled;
|
|
259
327
|
});
|
|
260
|
-
var
|
|
328
|
+
var secondary1Disabled = (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
261
329
|
var theme = _a.theme;
|
|
262
|
-
return theme.
|
|
330
|
+
return theme.ui_cpnt_button_secondary_variation_base_default;
|
|
263
331
|
});
|
|
264
|
-
var
|
|
332
|
+
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) {
|
|
265
333
|
var theme = _a.theme;
|
|
266
334
|
return theme.ui_cpnt_button_line_base_hover;
|
|
267
335
|
}, function (_a) {
|
|
336
|
+
var colorTheme = _a.colorTheme;
|
|
337
|
+
return colorTheme === 'secondary1' && secondary1Disabled;
|
|
338
|
+
});
|
|
339
|
+
var secondary1 = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:enabled {\n background-color: ", ";\n }\n\n &::before {\n content: '';\n display: none;\n }\n\n ", "\n"], ["\n background-color: ", ";\n\n &:active:enabled {\n background-color: ", ";\n }\n\n &::before {\n content: '';\n display: none;\n }\n\n ", "\n"])), function (_a) {
|
|
340
|
+
var theme = _a.theme;
|
|
341
|
+
return theme.ui_cpnt_button_secondary_variation_base_default;
|
|
342
|
+
}, function (_a) {
|
|
343
|
+
var theme = _a.theme;
|
|
344
|
+
return theme.ui_cpnt_button_secondary_variation_base_pressed;
|
|
345
|
+
}, transitionStyle_1.ButtonTransition);
|
|
346
|
+
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:enabled::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:enabled::before {\n background-color: ", ";\n }\n\n ", "\n ", "\n"])), function (_a) {
|
|
268
347
|
var theme = _a.theme;
|
|
269
|
-
return
|
|
348
|
+
return theme.ui_cpnt_button_line_base_hover;
|
|
349
|
+
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
350
|
+
var theme = _a.theme;
|
|
351
|
+
return theme.ui_cpnt_button_secondary_on_base_pressed;
|
|
352
|
+
}, function (_a) {
|
|
353
|
+
var colorTheme = _a.colorTheme;
|
|
354
|
+
return colorTheme === 'secondary1' && secondary1;
|
|
270
355
|
}, function (_a) {
|
|
271
356
|
var state = _a.state;
|
|
272
357
|
return state === 'disabled' && secondaryDisabled;
|
|
273
358
|
});
|
|
274
|
-
var S_MainButton = styled_components_1.default.button(
|
|
359
|
+
var S_MainButton = styled_components_1.default.button(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: flex;\n justify-content: center;\n\n &:focus {\n outline: none;\n }\n\n ", "\n ", "\n ", "\n ", ";\n\n & > div {\n ", ";\n }\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n\n &:focus {\n outline: none;\n }\n\n ", "\n ", "\n ", "\n ", ";\n\n & > div {\n ", ";\n }\n"])), function (_a) {
|
|
275
360
|
var styleTheme = _a.styleTheme;
|
|
276
361
|
return styleTheme && { primary: primary, secondary: secondary }[styleTheme];
|
|
277
362
|
}, function (_a) {
|
|
@@ -291,6 +376,6 @@ var S_MainButton = styled_components_1.default.button(templateObject_17 || (temp
|
|
|
291
376
|
regular: "font-weight: " + theme.fontWeight.normal
|
|
292
377
|
}[fontWeight];
|
|
293
378
|
});
|
|
294
|
-
var S_LoadingMainButton = (0, styled_components_1.default)(S_MainButton)(
|
|
379
|
+
var S_LoadingMainButton = (0, styled_components_1.default)(S_MainButton)(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), styles_1.skeletonLoadingStyle);
|
|
295
380
|
exports.default = MainButton;
|
|
296
|
-
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;
|
|
381
|
+
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;
|
|
@@ -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 = __importDefault(require("styled-components"));
|
|
32
|
+
var animationStyle_1 = require("../../../common/styles/movement/animationStyle");
|
|
32
33
|
var hybrid_1 = require("../../../hybrid");
|
|
33
34
|
var TextButton_1 = require("../TextButton");
|
|
34
35
|
var TextLabel_1 = require("../TextLabel");
|
|
@@ -85,11 +86,11 @@ var S_UpperBox = styled_components_1.default.div(templateObject_1 || (templateOb
|
|
|
85
86
|
var theme = _a.theme;
|
|
86
87
|
return theme.spacing.spacingE;
|
|
87
88
|
});
|
|
88
|
-
var S_ModalOverlay = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __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) {
|
|
89
|
+
var S_ModalOverlay = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __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) {
|
|
89
90
|
var theme = _a.theme;
|
|
90
91
|
return theme.ui_cpnt_modal_dimmed;
|
|
91
|
-
});
|
|
92
|
-
var S_ModalWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 24px;\n box-sizing: border-box;\n box-shadow: ", ";\n position: fixed;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n max-height: 720px;\n width: calc(100% - 80px);\n max-width: 512px;\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 24px;\n box-sizing: border-box;\n box-shadow: ", ";\n position: fixed;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n max-height: 720px;\n width: calc(100% - 80px);\n max-width: 512px;\n"])), function (_a) {
|
|
92
|
+
}, animationStyle_1.dialogOverlayOnAni);
|
|
93
|
+
var S_ModalWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 24px;\n box-sizing: border-box;\n box-shadow: ", ";\n position: fixed;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n max-height: 720px;\n width: calc(100% - 80px);\n max-width: 512px;\n\n ", "\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 24px;\n box-sizing: border-box;\n box-shadow: ", ";\n position: fixed;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n max-height: 720px;\n width: calc(100% - 80px);\n max-width: 512px;\n\n ", "\n"])), function (_a) {
|
|
93
94
|
var theme = _a.theme;
|
|
94
95
|
return theme.ui_cpnt_alertdialog_base;
|
|
95
96
|
}, function (_a) {
|
|
@@ -98,7 +99,7 @@ var S_ModalWrapper = styled_components_1.default.div(templateObject_3 || (templa
|
|
|
98
99
|
}, function (_a) {
|
|
99
100
|
var theme = _a.theme;
|
|
100
101
|
return theme.boxShadow.elevation5;
|
|
101
|
-
});
|
|
102
|
+
}, animationStyle_1.dialogOnAni);
|
|
102
103
|
var S_Footer = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n align-items: ", ";\n justify-content: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n display: flex;\n flex-direction: ", ";\n align-items: ", ";\n justify-content: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
103
104
|
var btnStack = _a.btnStack;
|
|
104
105
|
return (btnStack === 'side' ? 'row' : 'column-reverse');
|
|
@@ -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 HINT = 'HINT_VALUE';
|
|
33
34
|
function Select(_a) {
|
|
@@ -108,7 +109,19 @@ var S_Icon_Wrapper = styled_components_1.default.div(templateObject_7 || (templa
|
|
|
108
109
|
var theme = _a.theme;
|
|
109
110
|
return theme.spacing.spacingD;
|
|
110
111
|
});
|
|
111
|
-
var
|
|
112
|
+
var backgroundActiveColor = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
113
|
+
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
114
|
+
switch (colorTheme) {
|
|
115
|
+
case 'none':
|
|
116
|
+
return theme.ui_cpnt_textfield_base_pressed;
|
|
117
|
+
case 'dark':
|
|
118
|
+
return theme.ui_cpnt_select_base_hover_darktheme;
|
|
119
|
+
default:
|
|
120
|
+
return theme.ui_cpnt_textfield_base_pressed;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
var normalActionColor = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n &:active {\n background-color: ", ";\n }\n"], ["\n &:active {\n background-color: ", ";\n }\n"])), backgroundActiveColor);
|
|
124
|
+
var S_Select = styled_components_1.default.select(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n appearance: none;\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: ", ";\n box-sizing: border-box;\n color: ", ";\n font-family: inherit;\n font-size: ", ";\n height: 100%;\n padding-left: ", ";\n padding-right: ", ";\n width: 100%;\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n word-break: break-all;\n\n :disabled {\n background-color: ", ";\n border: 2px solid ", ";\n color: ", ";\n opacity: 1;\n }\n\n :focus {\n border: 2px solid ", " !important;\n color: ", ";\n outline: 0 !important;\n outline-offset: 0 !important;\n }\n\n ", "\n\n ", "\n\n ", "\n"], ["\n appearance: none;\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: ", ";\n box-sizing: border-box;\n color: ", ";\n font-family: inherit;\n font-size: ", ";\n height: 100%;\n padding-left: ", ";\n padding-right: ", ";\n width: 100%;\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n word-break: break-all;\n\n :disabled {\n background-color: ", ";\n border: 2px solid ", ";\n color: ", ";\n opacity: 1;\n }\n\n :focus {\n border: 2px solid ", " !important;\n color: ", ";\n outline: 0 !important;\n outline-offset: 0 !important;\n }\n\n ", "\n\n ", "\n\n ", "\n"])), function (_a) {
|
|
112
125
|
var theme = _a.theme;
|
|
113
126
|
return theme.ui_cpnt_select_base_normal;
|
|
114
127
|
}, function (_a) {
|
|
@@ -149,6 +162,9 @@ var S_Select = styled_components_1.default.select(templateObject_8 || (templateO
|
|
|
149
162
|
}, function (_a) {
|
|
150
163
|
var colorTheme = _a.colorTheme;
|
|
151
164
|
return colorTheme === 'dark' && dark;
|
|
165
|
+
}, transitionStyle_1.InputTransition, function (_a) {
|
|
166
|
+
var state = _a.state;
|
|
167
|
+
return state === 'normal' && normalActionColor;
|
|
152
168
|
});
|
|
153
169
|
exports.default = Select;
|
|
154
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
170
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
|
|
@@ -50,6 +50,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
50
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
51
|
var react_1 = __importDefault(require("react"));
|
|
52
52
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
53
|
+
var transitionStyle_1 = require("../../../common/styles/movement/transitionStyle");
|
|
53
54
|
var TextLabel_1 = require("../TextLabel");
|
|
54
55
|
var textStyle = {
|
|
55
56
|
rlarge: 'body1Bold',
|
|
@@ -81,7 +82,7 @@ var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 =
|
|
|
81
82
|
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"])));
|
|
82
83
|
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"])));
|
|
83
84
|
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"])));
|
|
84
|
-
var S_Button = styled_components_1.default.button(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n &:active:enabled {\n background-color: ", ";\n }\n\n ", ";\n\n & > div {\n ", ";\n }\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n &:active:enabled {\n background-color: ", ";\n }\n\n ", ";\n\n & > div {\n ", ";\n }\n ", ";\n"])), function (_a) {
|
|
85
|
+
var S_Button = styled_components_1.default.button(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n ", "\n\n &:active:enabled {\n background-color: ", ";\n }\n\n ", ";\n\n & > div {\n ", ";\n }\n ", ";\n"], ["\n align-items: center;\n background-color: transparent;\n border: none;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n ", "\n\n &:active:enabled {\n background-color: ", ";\n }\n\n ", ";\n\n & > div {\n ", ";\n }\n ", ";\n"])), transitionStyle_1.ButtonTransition, function (_a) {
|
|
85
86
|
var theme = _a.theme, colorTheme = _a.colorTheme;
|
|
86
87
|
return colorTheme === 'white'
|
|
87
88
|
? theme.ui_cpnt_button_white_base_pressed
|
|
@@ -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';
|