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
|
@@ -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,15 +237,15 @@ 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 &:hover: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 &:hover:enabled::before {\n background-color: ", ";\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 &:hover:enabled::before {\n background-color: ", ";\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_hover;
|
|
196
246
|
}, function (_a) {
|
|
197
247
|
var theme = _a.theme;
|
|
198
|
-
return
|
|
248
|
+
return theme.ui_cpnt_button_fill_on_base_pressed;
|
|
199
249
|
}, function (_a) {
|
|
200
250
|
var state = _a.state;
|
|
201
251
|
return state === 'disabled' && fillDisabled;
|
|
@@ -236,7 +286,7 @@ var lineDisabled = (0, styled_components_1.css)(templateObject_11 || (templateOb
|
|
|
236
286
|
? theme.ui_cpnt_button_line_border_darktheme_disabled
|
|
237
287
|
: theme.ui_cpnt_button_line_border_disabled;
|
|
238
288
|
});
|
|
239
|
-
var line = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: ", ";\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n ", "\n"], ["\n background-color: ", ";\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n ", "\n"])), function (_a) {
|
|
289
|
+
var line = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: ", ";\n &:hover:enabled {\n ", "\n }\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 &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n &::before {\n content: '';\n display: none;\n }\n ", "\n\n ", ";\n\n ", "\n"])), function (_a) {
|
|
240
290
|
var theme = _a.theme;
|
|
241
291
|
return theme.ui_cpnt_button_line_base_default;
|
|
242
292
|
}, function (_a) {
|
|
@@ -245,9 +295,20 @@ var line = (0, styled_components_1.css)(templateObject_12 || (templateObject_12
|
|
|
245
295
|
}, function (_a) {
|
|
246
296
|
var theme = _a.theme;
|
|
247
297
|
return "background-color: " + theme.ui_cpnt_button_line_base_pressed + ";";
|
|
248
|
-
}, function (_a) {
|
|
298
|
+
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
249
299
|
var colorTheme = _a.colorTheme;
|
|
250
|
-
|
|
300
|
+
if (colorTheme === 'none') {
|
|
301
|
+
return none;
|
|
302
|
+
}
|
|
303
|
+
if (colorTheme === 'line1') {
|
|
304
|
+
return line1;
|
|
305
|
+
}
|
|
306
|
+
if (colorTheme === 'line2') {
|
|
307
|
+
return line2;
|
|
308
|
+
}
|
|
309
|
+
if (colorTheme === 'line3') {
|
|
310
|
+
return line3;
|
|
311
|
+
}
|
|
251
312
|
}, function (_a) {
|
|
252
313
|
var state = _a.state;
|
|
253
314
|
return state === 'disabled' && lineDisabled;
|
|
@@ -256,37 +317,64 @@ var primaryDisabled = (0, styled_components_1.css)(templateObject_13 || (templat
|
|
|
256
317
|
var theme = _a.theme;
|
|
257
318
|
return theme.ui_cpnt_button_fill_base_disabled;
|
|
258
319
|
});
|
|
259
|
-
var
|
|
320
|
+
var primary1 = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
321
|
+
var theme = _a.theme;
|
|
322
|
+
return theme.ui_cpnt_button_primary_variation_base_enabled;
|
|
323
|
+
});
|
|
324
|
+
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 &:hover:enabled::before {\n background-color: ", ";\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 &:hover:enabled::before {\n background-color: ", ";\n }\n\n &:active:enabled::before {\n background-color: ", ";\n }\n\n ", "\n ", "\n"])), function (_a) {
|
|
260
325
|
var theme = _a.theme;
|
|
261
326
|
return theme.ui_cpnt_button_fill_base_primary;
|
|
262
|
-
}, function (_a) {
|
|
327
|
+
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
263
328
|
var theme = _a.theme;
|
|
264
|
-
return
|
|
329
|
+
return theme.ui_cpnt_button_fill_on_base_hover;
|
|
265
330
|
}, function (_a) {
|
|
266
331
|
var theme = _a.theme;
|
|
267
|
-
return
|
|
332
|
+
return theme.ui_cpnt_button_fill_on_base_pressed;
|
|
333
|
+
}, function (_a) {
|
|
334
|
+
var colorTheme = _a.colorTheme;
|
|
335
|
+
return colorTheme === 'primary1' && primary1;
|
|
268
336
|
}, function (_a) {
|
|
269
337
|
var state = _a.state;
|
|
270
338
|
return state === 'disabled' && primaryDisabled;
|
|
271
339
|
});
|
|
272
|
-
var
|
|
340
|
+
var secondary1Disabled = (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (_a) {
|
|
273
341
|
var theme = _a.theme;
|
|
274
|
-
return theme.
|
|
342
|
+
return theme.ui_cpnt_button_secondary_variation_base_default;
|
|
275
343
|
});
|
|
276
|
-
var
|
|
344
|
+
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) {
|
|
277
345
|
var theme = _a.theme;
|
|
278
346
|
return theme.ui_cpnt_button_line_base_hover;
|
|
279
347
|
}, function (_a) {
|
|
348
|
+
var colorTheme = _a.colorTheme;
|
|
349
|
+
return colorTheme === 'secondary1' && secondary1Disabled;
|
|
350
|
+
});
|
|
351
|
+
var secondary1 = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n background-color: ", ";\n\n &:hover:enabled {\n background-color: ", ";\n }\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 &:hover:enabled {\n background-color: ", ";\n }\n\n &:active:enabled {\n background-color: ", ";\n }\n\n &::before {\n content: '';\n display: none;\n }\n\n ", "\n"])), function (_a) {
|
|
280
352
|
var theme = _a.theme;
|
|
281
|
-
return
|
|
353
|
+
return theme.ui_cpnt_button_secondary_variation_base_default;
|
|
282
354
|
}, function (_a) {
|
|
283
355
|
var theme = _a.theme;
|
|
284
|
-
return
|
|
356
|
+
return theme.ui_cpnt_button_secondary_variation_base_hover;
|
|
357
|
+
}, function (_a) {
|
|
358
|
+
var theme = _a.theme;
|
|
359
|
+
return theme.ui_cpnt_button_secondary_variation_base_pressed;
|
|
360
|
+
}, transitionStyle_1.ButtonTransition);
|
|
361
|
+
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 &:hover:enabled::before {\n background-color: ", ";\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 &:hover:enabled::before {\n background-color: ", ";\n }\n\n &:active:enabled::before {\n background-color: ", ";\n }\n\n ", "\n ", "\n"])), function (_a) {
|
|
362
|
+
var theme = _a.theme;
|
|
363
|
+
return theme.ui_cpnt_button_line_base_hover;
|
|
364
|
+
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
365
|
+
var theme = _a.theme;
|
|
366
|
+
return theme.ui_cpnt_button_secondary_on_base_hover;
|
|
367
|
+
}, function (_a) {
|
|
368
|
+
var theme = _a.theme;
|
|
369
|
+
return theme.ui_cpnt_button_secondary_on_base_pressed;
|
|
370
|
+
}, function (_a) {
|
|
371
|
+
var colorTheme = _a.colorTheme;
|
|
372
|
+
return colorTheme === 'secondary1' && secondary1;
|
|
285
373
|
}, function (_a) {
|
|
286
374
|
var state = _a.state;
|
|
287
375
|
return state === 'disabled' && secondaryDisabled;
|
|
288
376
|
});
|
|
289
|
-
var S_MainButton = styled_components_1.default.button(
|
|
377
|
+
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 cursor: ", ";\n display: inline-flex;\n justify-content: center;\n\n &:focus {\n outline: none;\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 cursor: ", ";\n display: inline-flex;\n justify-content: center;\n\n &:focus {\n outline: none;\n }\n ", "\n ", "\n ", "\n ", ";\n\n & > div {\n ", ";\n }\n"])), function (_a) {
|
|
290
378
|
var state = _a.state;
|
|
291
379
|
return (state === 'normal' ? 'pointer' : 'default');
|
|
292
380
|
}, function (_a) {
|
|
@@ -309,7 +397,7 @@ var S_MainButton = styled_components_1.default.button(templateObject_17 || (temp
|
|
|
309
397
|
regular: "font-weight: " + theme.fontWeight.normal
|
|
310
398
|
}[fontWeight];
|
|
311
399
|
});
|
|
312
|
-
var S_LoadingMainButton = (0, styled_components_1.default)(S_MainButton)(
|
|
313
|
-
var S_SubmittingMainButton = (0, styled_components_1.default)(S_MainButton)(
|
|
400
|
+
var S_LoadingMainButton = (0, styled_components_1.default)(S_MainButton)(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), styles_1.skeletonLoadingStyle);
|
|
401
|
+
var S_SubmittingMainButton = (0, styled_components_1.default)(S_MainButton)(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n cursor: default;\n"], ["\n cursor: default;\n"])));
|
|
314
402
|
exports.default = MainButton;
|
|
315
|
-
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;
|
|
403
|
+
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, templateObject_22;
|
|
@@ -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 numberHelper_1 = require("../../../common/utils/numberHelper");
|
|
32
33
|
var hybrid_1 = require("../../../hybrid");
|
|
33
34
|
var TextLabel_1 = require("../TextLabel");
|
|
@@ -93,9 +94,12 @@ function ReactionButton(_a) {
|
|
|
93
94
|
react_1.default.createElement(TextLabel_1.TextLabel, { text: convertTextFormatHelper(text), styleTheme: "body2Bold", singleLineMode: "use", colorTheme: TextLabelColorBySelect(), colorOverride: TextLabelColorByByColorTheme() }))),
|
|
94
95
|
react_1.default.createElement(hybrid_1.Spacing, { size: "spacing_b", spacingType: "width" })));
|
|
95
96
|
}
|
|
96
|
-
var ReactionButtonStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n border-radius: 8px;\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n justify-content: center;\n padding: 0;\n height: 32px;\n\n &:hover:enabled {\n background-color: ", ";\n }\n"], ["\n align-items: center;\n background-color: transparent;\n border: none;\n border-radius: 8px;\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n justify-content: center;\n padding: 0;\n height: 32px;\n\n &:hover:enabled {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
97
|
+
var ReactionButtonStyle = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: none;\n border-radius: 8px;\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n justify-content: center;\n padding: 0;\n height: 32px;\n\n ", "\n\n &:hover:enabled {\n background-color: ", ";\n }\n\n &:active:enabled {\n background-color: ", ";\n }\n"], ["\n align-items: center;\n background-color: transparent;\n border: none;\n border-radius: 8px;\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n justify-content: center;\n padding: 0;\n height: 32px;\n\n ", "\n\n &:hover:enabled {\n background-color: ", ";\n }\n\n &:active:enabled {\n background-color: ", ";\n }\n"])), transitionStyle_1.ButtonTransition, function (_a) {
|
|
97
98
|
var theme = _a.theme;
|
|
98
99
|
return theme.ui_cpnt_reactionbutton_base_01;
|
|
100
|
+
}, function (_a) {
|
|
101
|
+
var theme = _a.theme;
|
|
102
|
+
return theme.ui_cpnt_reactionbutton_base_02;
|
|
99
103
|
});
|
|
100
104
|
var S_ReactionButton = styled_components_1.default.button(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), ReactionButtonStyle);
|
|
101
105
|
exports.default = ReactionButton;
|
|
@@ -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) {
|
|
@@ -112,7 +113,30 @@ var S_Icon_Wrapper = styled_components_1.default.div(templateObject_7 || (templa
|
|
|
112
113
|
var theme = _a.theme;
|
|
113
114
|
return theme.spacing.spacingD;
|
|
114
115
|
});
|
|
115
|
-
var
|
|
116
|
+
var backgroundHoverColor = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
117
|
+
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
118
|
+
switch (colorTheme) {
|
|
119
|
+
case 'none':
|
|
120
|
+
return theme.ui_cpnt_textfield_base_hover;
|
|
121
|
+
case 'dark':
|
|
122
|
+
return theme.ui_cpnt_select_base_hover_darktheme;
|
|
123
|
+
default:
|
|
124
|
+
return theme.ui_cpnt_textfield_base_hover;
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
var backgroundActiveColor = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
128
|
+
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
129
|
+
switch (colorTheme) {
|
|
130
|
+
case 'none':
|
|
131
|
+
return theme.ui_cpnt_textfield_base_pressed;
|
|
132
|
+
case 'dark':
|
|
133
|
+
return theme.ui_cpnt_select_base_hover_darktheme;
|
|
134
|
+
default:
|
|
135
|
+
return theme.ui_cpnt_textfield_base_pressed;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
var normalActionColor = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"], ["\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"])), backgroundHoverColor, backgroundActiveColor);
|
|
139
|
+
var S_Select = styled_components_1.default.select(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n appearance: none;\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: ", ";\n box-sizing: border-box;\n cursor: pointer;\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 cursor: ", ";\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 cursor: pointer;\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 cursor: ", ";\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) {
|
|
116
140
|
var theme = _a.theme;
|
|
117
141
|
return theme.ui_cpnt_select_base_normal;
|
|
118
142
|
}, function (_a) {
|
|
@@ -163,6 +187,9 @@ var S_Select = styled_components_1.default.select(templateObject_8 || (templateO
|
|
|
163
187
|
}, function (_a) {
|
|
164
188
|
var colorTheme = _a.colorTheme;
|
|
165
189
|
return colorTheme === 'dark' && dark;
|
|
190
|
+
}, transitionStyle_1.InputTransition, function (_a) {
|
|
191
|
+
var state = _a.state;
|
|
192
|
+
return state === 'normal' && normalActionColor;
|
|
166
193
|
});
|
|
167
194
|
exports.default = Select;
|
|
168
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
195
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
|
|
@@ -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,10 +82,10 @@ 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 cursor: ", ";\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n &:hover:enabled {\n background-color: ", ";\n }\n &:active:enabled {\n background-color: ", ";\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 cursor: ", ";\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n &:hover:enabled {\n background-color: ", ";\n }\n &:active:enabled {\n background-color: ", ";\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 cursor: ", ";\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n ", "\n\n &:hover:enabled {\n background-color: ", ";\n }\n &:active:enabled {\n background-color: ", ";\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 cursor: ", ";\n display: flex;\n justify-content: center;\n padding-left: 8px;\n padding-right: 8px;\n\n ", "\n\n &:hover:enabled {\n background-color: ", ";\n }\n &:active:enabled {\n background-color: ", ";\n }\n ", ";\n\n & > div {\n ", ";\n }\n ", ";\n"])), function (_a) {
|
|
85
86
|
var state = _a.state;
|
|
86
87
|
return (state === 'normal' ? 'pointer' : 'default');
|
|
87
|
-
}, function (_a) {
|
|
88
|
+
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
88
89
|
var theme = _a.theme, colorTheme = _a.colorTheme;
|
|
89
90
|
return colorTheme === 'white'
|
|
90
91
|
? theme.ui_cpnt_button_white_base_hover
|
|
@@ -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,34 @@ 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 backgroundHoverColor = (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_hover;
|
|
279
|
+
case 'dark':
|
|
280
|
+
return theme.ui_cpnt_textfield_base_hover_darktheme;
|
|
281
|
+
case 'transparent':
|
|
282
|
+
return theme.ui_cpnt_textfield_base_hover_transparent;
|
|
283
|
+
default:
|
|
284
|
+
return theme.ui_cpnt_textfield_base_hover;
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
var backgroundActiveColor = (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
|
|
288
|
+
var colorTheme = _a.colorTheme, theme = _a.theme;
|
|
289
|
+
switch (colorTheme) {
|
|
290
|
+
case 'none':
|
|
291
|
+
return theme.ui_cpnt_textfield_base_pressed;
|
|
292
|
+
case 'dark':
|
|
293
|
+
return theme.ui_cpnt_textfield_base_pressed_darktheme;
|
|
294
|
+
case 'transparent':
|
|
295
|
+
return theme.ui_cpnt_textfield_base_pressed_transparent;
|
|
296
|
+
default:
|
|
297
|
+
return theme.ui_cpnt_textfield_base_pressed;
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
var normalActionColor = (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"], ["\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n"])), backgroundHoverColor, backgroundActiveColor);
|
|
301
|
+
var S_TextFieldWrapper = styled_components_1.default.div(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n align-items: center;\n border-radius: 14px;\n box-sizing: border-box;\n cursor: ", ";\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 cursor: ", ";\n display: flex;\n ", ";\n ", ";\n\n ", "\n\n ", "\n\n ", ";\n ", "\n"])), function (_a) {
|
|
274
302
|
var state = _a.state;
|
|
275
303
|
return (state === 'disabled' ? 'not-allowed' : 'text');
|
|
276
304
|
}, function (_a) {
|
|
@@ -301,6 +329,9 @@ var S_TextFieldWrapper = styled_components_1.default.div(templateObject_16 || (t
|
|
|
301
329
|
}
|
|
302
330
|
}
|
|
303
331
|
}
|
|
332
|
+
}, transitionStyle_1.InputTransition, function (_a) {
|
|
333
|
+
var state = _a.state;
|
|
334
|
+
return state === 'normal' && normalActionColor;
|
|
304
335
|
}, function (_a) {
|
|
305
336
|
var responsiveMode = _a.responsiveMode;
|
|
306
337
|
return responsiveMode === 'use' && 'width: 100%';
|
|
@@ -308,8 +339,8 @@ var S_TextFieldWrapper = styled_components_1.default.div(templateObject_16 || (t
|
|
|
308
339
|
var customWidth = _a.customWidth;
|
|
309
340
|
return customWidth && "width: " + customWidth + ";";
|
|
310
341
|
});
|
|
311
|
-
var S_IconBox = styled_components_1.default.div(
|
|
312
|
-
var S_Error = styled_components_1.default.div(
|
|
342
|
+
var S_IconBox = styled_components_1.default.div(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
|
|
343
|
+
var S_Error = styled_components_1.default.div(templateObject_21 || (templateObject_21 = __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) {
|
|
313
344
|
var theme = _a.theme, colorTheme = _a.colorTheme;
|
|
314
345
|
switch (colorTheme) {
|
|
315
346
|
case 'none': {
|
|
@@ -334,4 +365,4 @@ var S_Error = styled_components_1.default.div(templateObject_18 || (templateObje
|
|
|
334
365
|
return theme.spacing.spacingA;
|
|
335
366
|
});
|
|
336
367
|
exports.default = TextField;
|
|
337
|
-
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;
|
|
368
|
+
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;
|
|
@@ -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,19 +61,19 @@ 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 &:hover:not([disabled]) {\n ", "
|
|
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 &:hover:not([disabled])::before {\n background-color: ", ";\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 &:hover:not([disabled])::before {\n background-color: ", ";\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_hover;
|
|
71
72
|
}, function (_a) {
|
|
72
73
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
73
74
|
return baseColorKey === 'ui_cpnt_button_fill_base_transparent'
|
|
74
75
|
? ''
|
|
75
|
-
:
|
|
76
|
+
: theme.ui_cpnt_button_fill_on_base_pressed;
|
|
76
77
|
}, function (_a) {
|
|
77
78
|
var isDisabled = _a.isDisabled;
|
|
78
79
|
return isDisabled && fillDisabled;
|
|
@@ -92,7 +93,7 @@ var lineDisabled = (0, styled_components_1.css)(templateObject_5 || (templateObj
|
|
|
92
93
|
var theme = _a.theme;
|
|
93
94
|
return theme.ui_cpnt_button_line_base_default;
|
|
94
95
|
});
|
|
95
|
-
var line = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background-color: ", ";\n border-color: ", ";\n\n ", ";\n\n &:hover:not([disabled]) {\n background-color: ", ";\n }\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n ", ";\n"], ["\n background-color: ", ";\n border-color: ", ";\n\n ", ";\n\n &:hover:not([disabled]) {\n background-color: ", ";\n }\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n ", ";\n"])), function (_a) {
|
|
96
|
+
var line = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background-color: ", ";\n border-color: ", ";\n\n ", ";\n\n &:hover:not([disabled]) {\n background-color: ", ";\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 &:hover:not([disabled]) {\n background-color: ", ";\n }\n\n &:active:not([disabled]) {\n background-color: ", ";\n }\n\n ", "\n\n ", ";\n"])), function (_a) {
|
|
96
97
|
var theme = _a.theme;
|
|
97
98
|
return theme.ui_cpnt_button_line_base_default;
|
|
98
99
|
}, function (_a) {
|
|
@@ -114,7 +115,7 @@ var line = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 =
|
|
|
114
115
|
}, function (_a) {
|
|
115
116
|
var theme = _a.theme;
|
|
116
117
|
return theme.ui_cpnt_button_line_base_pressed;
|
|
117
|
-
}, function (_a) {
|
|
118
|
+
}, transitionStyle_1.ButtonTransition, function (_a) {
|
|
118
119
|
var isDisabled = _a.isDisabled;
|
|
119
120
|
return isDisabled && lineDisabled;
|
|
120
121
|
});
|
|
@@ -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';
|