pds-dev-kit-web 1.3.25 → 1.3.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/common/decorators/withFormProvider.js +4 -1
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +5 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +5 -1
- package/dist/src/common/styles/colorSet/UIColor.json +9 -7
- package/dist/src/common/styles/colorSet/index.d.ts +68 -58
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +2 -0
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +2 -1
- package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +19 -4
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.d.ts +4 -2
- package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +46 -21
- package/dist/src/desktop/components/IconButton/IconButton.js +5 -2
- package/dist/src/desktop/components/ReactionButton/ReactionButton.js +1 -1
- package/dist/src/desktop/components/TextLabel/TextLabel.js +2 -1
- package/dist/src/desktop/components/UploadIconButton/UploadIconButton.js +2 -2
- package/dist/src/hybrid/components/Icon/Icon.js +1 -1
- package/dist/src/mobile/components/IconButton/IconButton.js +5 -2
- package/dist/src/mobile/components/TextLabel/TextLabel.js +2 -1
- package/dist/src/mobile/components/UploadIconButton/UploadIconButton.js +2 -2
- package/package.json +1 -1
- package/release-note.md +3 -11
|
@@ -22,7 +22,10 @@ var react_hook_form_1 = require("react-hook-form");
|
|
|
22
22
|
var components_1 = require("../components");
|
|
23
23
|
var withFormProvider = function (storyFn) {
|
|
24
24
|
var methods = (0, react_hook_form_1.useForm)({ mode: 'onChange' });
|
|
25
|
+
var handleSubmit = function (data) {
|
|
26
|
+
console.log('submit success', data);
|
|
27
|
+
};
|
|
25
28
|
return (react_1.default.createElement(react_hook_form_1.FormProvider, __assign({}, methods),
|
|
26
|
-
react_1.default.createElement(components_1.Form, { onSubmit:
|
|
29
|
+
react_1.default.createElement(components_1.Form, { onSubmit: methods.handleSubmit(handleSubmit) }, storyFn())));
|
|
27
30
|
};
|
|
28
31
|
exports.withFormProvider = withFormProvider;
|
|
@@ -156,5 +156,9 @@
|
|
|
156
156
|
"sys_cpnt_sheet_base_01": "darkgrey50",
|
|
157
157
|
"sys_component_base_white_opacity20": "white/opacity20",
|
|
158
158
|
"sys_border_line_07": "darkgrey70",
|
|
159
|
-
"sys_border_line_white_opacity50": "white/opacity50"
|
|
159
|
+
"sys_border_line_white_opacity50": "white/opacity50",
|
|
160
|
+
"sys_background_dimmed_02": "black/opacity65",
|
|
161
|
+
"sys_border_line_08": "darkgrey500",
|
|
162
|
+
"sys_sys_component_base_06": "darkgrey30",
|
|
163
|
+
"sys_sys_component_base_07": "darkgrey70"
|
|
160
164
|
}
|
|
@@ -156,5 +156,9 @@
|
|
|
156
156
|
"sys_cpnt_sheet_base_01": "grey30",
|
|
157
157
|
"sys_component_base_white_opacity20": "white/opacity20",
|
|
158
158
|
"sys_border_line_07": "grey70",
|
|
159
|
-
"sys_border_line_white_opacity50": "white/opacity50"
|
|
159
|
+
"sys_border_line_white_opacity50": "white/opacity50",
|
|
160
|
+
"sys_background_dimmed_02": "black/opacity30",
|
|
161
|
+
"sys_border_line_08": "grey500",
|
|
162
|
+
"sys_sys_component_base_06": "grey30",
|
|
163
|
+
"sys_sys_component_base_07": "grey70"
|
|
160
164
|
}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"ui_cpnt_button_icon_disabled": "sys_widget_grey_03",
|
|
23
23
|
"ui_cpnt_button_icon_default": "sys_widget_grey_02",
|
|
24
24
|
"ui_cpnt_textfield_border_normal": "sys_border_line_01",
|
|
25
|
-
"ui_cpnt_textfield_border_focus": "
|
|
25
|
+
"ui_cpnt_textfield_border_focus": "sys_border_line_08",
|
|
26
26
|
"ui_cpnt_textfield_border_error": "sys_border_line_04",
|
|
27
27
|
"ui_cpnt_textfield_base_normal": "sys_component_base_white_opacity00",
|
|
28
28
|
"ui_cpnt_textfield_base_disabled": "sys_component_base_01",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"ui_27": "sys_widget_white",
|
|
129
129
|
"ui_cpnt_divider": "sys_border_line_01",
|
|
130
130
|
"ui_cpnt_select_border_normal": "sys_border_line_01",
|
|
131
|
-
"ui_cpnt_select_border_focus": "
|
|
131
|
+
"ui_cpnt_select_border_focus": "sys_border_line_08",
|
|
132
132
|
"ui_cpnt_select_base_normal": "sys_component_base_white_opacity00",
|
|
133
133
|
"ui_cpnt_select_base_disabled": "sys_component_base_01",
|
|
134
134
|
"ui_cpnt_select_text_hint": "sys_text_grey_02",
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
"ui_cpnt_chip_fill_text_active_02": "sys_text_grey_01",
|
|
202
202
|
"ui_cpnt_chip_fill_icon_active_02": "sys_widget_grey_01",
|
|
203
203
|
"ui_cpnt_dropdown_border_normal": "sys_border_line_01",
|
|
204
|
-
"ui_cpnt_dropdown_border_focus": "
|
|
204
|
+
"ui_cpnt_dropdown_border_focus": "sys_border_line_08",
|
|
205
205
|
"ui_cpnt_dropdown_base_normal": "sys_component_base_white_opacity00",
|
|
206
206
|
"ui_cpnt_dropdown_base_disabled": "sys_component_base_01",
|
|
207
207
|
"ui_cpnt_dropdown_text_hint": "sys_text_grey_03",
|
|
@@ -280,8 +280,8 @@
|
|
|
280
280
|
"ui_cpnt_card_icon_basic": "sys_widget_primary_01",
|
|
281
281
|
"ui_cpnt_card_icon_custom": "sys_widget_grey_01",
|
|
282
282
|
"ui_cpnt_card_icon_create": "sys_widget_grey_01",
|
|
283
|
-
"ui_cpnt_modal_dimmed": "
|
|
284
|
-
"ui_cpnt_alertdialog_dimmed": "
|
|
283
|
+
"ui_cpnt_modal_dimmed": "sys_background_dimmed_02",
|
|
284
|
+
"ui_cpnt_alertdialog_dimmed": "sys_background_dimmed_02",
|
|
285
285
|
"ui_cpnt_bottomsheet_base": "sys_component_base_02",
|
|
286
286
|
"ui_cpnt_bottomsheet_icon_03": "sys_widget_grey_03",
|
|
287
287
|
"ui_cpnt_button_icon_white": "sys_widget_white",
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
"ui_cpnt_icon_usr_brandprimary": "usr_brand_primary",
|
|
333
333
|
"ui_container_divider": "sys_border_line_01",
|
|
334
334
|
"ui_area_divider": "sys_border_line_01",
|
|
335
|
-
"ui_cpnt_list_base_area_seller": "
|
|
335
|
+
"ui_cpnt_list_base_area_seller": "sys_component_base_01",
|
|
336
336
|
"ui_temp_grey_01": "sys_temp_grey_01",
|
|
337
337
|
"ui_temp_grey_02": "sys_temp_grey_02",
|
|
338
338
|
"ui_temp_grey_03": "sys_temp_grey_03",
|
|
@@ -490,5 +490,7 @@
|
|
|
490
490
|
"ui_profile_image_border_brandprimary": "usr_brand_primary",
|
|
491
491
|
"ui_cpnt_dropdown_base_white_disabled": "sys_component_base_white_opacity10",
|
|
492
492
|
"ui_cpnt_dropdown_border_white_disabled": "sys_border_line_white_opacity50",
|
|
493
|
-
"ui_cpnt_sheet_base_white_opacity00": "sys_component_base_white_opacity00"
|
|
493
|
+
"ui_cpnt_sheet_base_white_opacity00": "sys_component_base_white_opacity00",
|
|
494
|
+
"ui_dimmed_01": "sys_background_dimmed_20",
|
|
495
|
+
"ui_cpnt_reactionbutton_base_01": "sys_component_base_07"
|
|
494
496
|
}
|
|
@@ -158,64 +158,10 @@ declare const colorSet: {
|
|
|
158
158
|
sys_component_base_white_opacity20: string;
|
|
159
159
|
sys_border_line_07: string;
|
|
160
160
|
sys_border_line_white_opacity50: string;
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
blue300: string;
|
|
166
|
-
green700: string;
|
|
167
|
-
green500: string;
|
|
168
|
-
green300: string;
|
|
169
|
-
red500: string;
|
|
170
|
-
grey900: string;
|
|
171
|
-
grey500: string;
|
|
172
|
-
grey400: string;
|
|
173
|
-
grey100: string;
|
|
174
|
-
grey50: string;
|
|
175
|
-
white: string;
|
|
176
|
-
black: string;
|
|
177
|
-
darkblue500: string;
|
|
178
|
-
grey950: string;
|
|
179
|
-
darkgrey900: string;
|
|
180
|
-
darkgrey500: string;
|
|
181
|
-
darkgrey400: string;
|
|
182
|
-
darkgrey100: string;
|
|
183
|
-
darkgrey50: string;
|
|
184
|
-
darkred500: string;
|
|
185
|
-
darkgreen700: string;
|
|
186
|
-
orange500: string;
|
|
187
|
-
darkorange500: string;
|
|
188
|
-
opacity00: string;
|
|
189
|
-
opacity20: string;
|
|
190
|
-
opacity30: string;
|
|
191
|
-
opacity65: string;
|
|
192
|
-
darkgreen500: string;
|
|
193
|
-
grey70: string;
|
|
194
|
-
navy500: string;
|
|
195
|
-
lightgreen500: string;
|
|
196
|
-
pink500: string;
|
|
197
|
-
darkgrey70: string;
|
|
198
|
-
darknavy500: string;
|
|
199
|
-
darkpink500: string;
|
|
200
|
-
darklightgreen500: string;
|
|
201
|
-
opacity10: string;
|
|
202
|
-
grey600: string;
|
|
203
|
-
darkgrey600: string;
|
|
204
|
-
skyblue500: string;
|
|
205
|
-
skyblue300: string;
|
|
206
|
-
pink300: string;
|
|
207
|
-
lightpink500: string;
|
|
208
|
-
darkblue300: string;
|
|
209
|
-
darkblue700: string;
|
|
210
|
-
darkgreen300: string;
|
|
211
|
-
darkskyblue500: string;
|
|
212
|
-
navy100: string;
|
|
213
|
-
darknavy100: string;
|
|
214
|
-
opacity80: string;
|
|
215
|
-
opacity50: string;
|
|
216
|
-
grey30: string;
|
|
217
|
-
opacity95: string;
|
|
218
|
-
darkgrey30: string;
|
|
161
|
+
sys_background_dimmed_02: string;
|
|
162
|
+
sys_border_line_08: string;
|
|
163
|
+
sys_sys_component_base_06: string;
|
|
164
|
+
sys_sys_component_base_07: string;
|
|
219
165
|
};
|
|
220
166
|
readonly PaletteColor_light: {
|
|
221
167
|
sys_container_background_01: string;
|
|
@@ -376,6 +322,68 @@ declare const colorSet: {
|
|
|
376
322
|
sys_component_base_white_opacity20: string;
|
|
377
323
|
sys_border_line_07: string;
|
|
378
324
|
sys_border_line_white_opacity50: string;
|
|
325
|
+
sys_background_dimmed_02: string;
|
|
326
|
+
sys_border_line_08: string;
|
|
327
|
+
sys_sys_component_base_06: string;
|
|
328
|
+
sys_sys_component_base_07: string;
|
|
329
|
+
};
|
|
330
|
+
readonly SemanticColor: {
|
|
331
|
+
blue500: string;
|
|
332
|
+
blue700: string;
|
|
333
|
+
blue300: string;
|
|
334
|
+
green700: string;
|
|
335
|
+
green500: string;
|
|
336
|
+
green300: string;
|
|
337
|
+
red500: string;
|
|
338
|
+
grey900: string;
|
|
339
|
+
grey500: string;
|
|
340
|
+
grey400: string;
|
|
341
|
+
grey100: string;
|
|
342
|
+
grey50: string;
|
|
343
|
+
white: string;
|
|
344
|
+
black: string;
|
|
345
|
+
darkblue500: string;
|
|
346
|
+
grey950: string;
|
|
347
|
+
darkgrey900: string;
|
|
348
|
+
darkgrey500: string;
|
|
349
|
+
darkgrey400: string;
|
|
350
|
+
darkgrey100: string;
|
|
351
|
+
darkgrey50: string;
|
|
352
|
+
darkred500: string;
|
|
353
|
+
darkgreen700: string;
|
|
354
|
+
orange500: string;
|
|
355
|
+
darkorange500: string;
|
|
356
|
+
opacity00: string;
|
|
357
|
+
opacity20: string;
|
|
358
|
+
opacity30: string;
|
|
359
|
+
opacity65: string;
|
|
360
|
+
darkgreen500: string;
|
|
361
|
+
grey70: string;
|
|
362
|
+
navy500: string;
|
|
363
|
+
lightgreen500: string;
|
|
364
|
+
pink500: string;
|
|
365
|
+
darkgrey70: string;
|
|
366
|
+
darknavy500: string;
|
|
367
|
+
darkpink500: string;
|
|
368
|
+
darklightgreen500: string;
|
|
369
|
+
opacity10: string;
|
|
370
|
+
grey600: string;
|
|
371
|
+
darkgrey600: string;
|
|
372
|
+
skyblue500: string;
|
|
373
|
+
skyblue300: string;
|
|
374
|
+
pink300: string;
|
|
375
|
+
lightpink500: string;
|
|
376
|
+
darkblue300: string;
|
|
377
|
+
darkblue700: string;
|
|
378
|
+
darkgreen300: string;
|
|
379
|
+
darkskyblue500: string;
|
|
380
|
+
navy100: string;
|
|
381
|
+
darknavy100: string;
|
|
382
|
+
opacity80: string;
|
|
383
|
+
opacity50: string;
|
|
384
|
+
grey30: string;
|
|
385
|
+
opacity95: string;
|
|
386
|
+
darkgrey30: string;
|
|
379
387
|
};
|
|
380
388
|
readonly UIColor: {
|
|
381
389
|
ui_cpnt_button_fill_base_primary: string;
|
|
@@ -870,6 +878,8 @@ declare const colorSet: {
|
|
|
870
878
|
ui_cpnt_dropdown_base_white_disabled: string;
|
|
871
879
|
ui_cpnt_dropdown_border_white_disabled: string;
|
|
872
880
|
ui_cpnt_sheet_base_white_opacity00: string;
|
|
881
|
+
ui_dimmed_01: string;
|
|
882
|
+
ui_cpnt_reactionbutton_base_01: string;
|
|
873
883
|
};
|
|
874
884
|
};
|
|
875
885
|
export default colorSet;
|
|
@@ -5,13 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
/* eslint-disable import/order */
|
|
7
7
|
var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
|
|
8
|
-
var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
|
|
9
8
|
var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
|
|
9
|
+
var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
|
|
10
10
|
var UIColor_json_1 = __importDefault(require("./UIColor.json"));
|
|
11
11
|
var colorSet = {
|
|
12
12
|
PaletteColor_Dark: PaletteColor_Dark_json_1.default,
|
|
13
|
-
SemanticColor: SemanticColor_json_1.default,
|
|
14
13
|
PaletteColor_light: PaletteColor_light_json_1.default,
|
|
14
|
+
SemanticColor: SemanticColor_json_1.default,
|
|
15
15
|
UIColor: UIColor_json_1.default
|
|
16
16
|
};
|
|
17
17
|
exports.default = colorSet;
|
|
@@ -34,7 +34,8 @@ export declare type TextFieldBaseProps = {
|
|
|
34
34
|
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
35
35
|
onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
36
36
|
onTarget?: () => void;
|
|
37
|
+
inputRef?: any;
|
|
37
38
|
[x: string]: any;
|
|
38
39
|
} & Record<string, any>;
|
|
39
|
-
declare function TextFieldBase({ name, hintText, defaultText, validation, preventBlankMode, enterSubmitMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, colorTheme, min, max, maxLength, textSize, textWeight, textPadding, fieldHeight, deleteIconMode, deleteIconSize, deleteIconColor, isFocused, onBlur, onChange, onFocus, onKeyDown, onKeyUp, onTarget, ...rest }: TextFieldBaseProps): JSX.Element;
|
|
40
|
+
declare function TextFieldBase({ name, hintText, defaultText, validation, preventBlankMode, enterSubmitMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, colorTheme, min, max, maxLength, textSize, textWeight, textPadding, fieldHeight, deleteIconMode, deleteIconSize, deleteIconColor, isFocused, onBlur, onChange, onFocus, onKeyDown, onKeyUp, onTarget, inputRef, ...rest }: TextFieldBaseProps): JSX.Element;
|
|
40
41
|
export default TextFieldBase;
|
|
@@ -52,7 +52,7 @@ var styled_components_1 = __importStar(require("styled-components"));
|
|
|
52
52
|
var common_1 = require("../../../../common");
|
|
53
53
|
var IconButton_1 = require("../../../components/IconButton");
|
|
54
54
|
function TextFieldBase(_a) {
|
|
55
|
-
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _b = _a.preventBlankMode, preventBlankMode = _b === void 0 ? 'none' : _b, _c = _a.enterSubmitMode, enterSubmitMode = _c === void 0 ? 'none' : _c, _d = _a.textLineType, textLineType = _d === void 0 ? 'single' : _d, multiRows = _a.multiRows, autoMinRows = _a.autoMinRows, autoMaxRows = _a.autoMaxRows, _e = _a.inputType, inputType = _e === void 0 ? 'text' : _e, _f = _a.state, state = _f === void 0 ? 'normal' : _f, _g = _a.colorTheme, colorTheme = _g === void 0 ? 'none' : _g, min = _a.min, max = _a.max, _h = _a.maxLength, maxLength = _h === void 0 ? Infinity : _h, _j = _a.textSize, textSize = _j === void 0 ? 'form2' : _j, _k = _a.textWeight, textWeight = _k === void 0 ? 'normal' : _k, textPadding = _a.textPadding, _l = _a.fieldHeight, fieldHeight = _l === void 0 ? 48 : _l, _m = _a.deleteIconMode, deleteIconMode = _m === void 0 ? 'use' : _m, _o = _a.deleteIconSize, deleteIconSize = _o === void 0 ? 20 : _o, _p = _a.deleteIconColor, deleteIconColor = _p === void 0 ? 'ui_cpnt_button_icon_disabled' : _p, isFocused = _a.isFocused, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget, rest = __rest(_a, ["name", "hintText", "defaultText", "validation", "preventBlankMode", "enterSubmitMode", "textLineType", "multiRows", "autoMinRows", "autoMaxRows", "inputType", "state", "colorTheme", "min", "max", "maxLength", "textSize", "textWeight", "textPadding", "fieldHeight", "deleteIconMode", "deleteIconSize", "deleteIconColor", "isFocused", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "onTarget"]);
|
|
55
|
+
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _b = _a.preventBlankMode, preventBlankMode = _b === void 0 ? 'none' : _b, _c = _a.enterSubmitMode, enterSubmitMode = _c === void 0 ? 'none' : _c, _d = _a.textLineType, textLineType = _d === void 0 ? 'single' : _d, multiRows = _a.multiRows, autoMinRows = _a.autoMinRows, autoMaxRows = _a.autoMaxRows, _e = _a.inputType, inputType = _e === void 0 ? 'text' : _e, _f = _a.state, state = _f === void 0 ? 'normal' : _f, _g = _a.colorTheme, colorTheme = _g === void 0 ? 'none' : _g, min = _a.min, max = _a.max, _h = _a.maxLength, maxLength = _h === void 0 ? Infinity : _h, _j = _a.textSize, textSize = _j === void 0 ? 'form2' : _j, _k = _a.textWeight, textWeight = _k === void 0 ? 'normal' : _k, textPadding = _a.textPadding, _l = _a.fieldHeight, fieldHeight = _l === void 0 ? 48 : _l, _m = _a.deleteIconMode, deleteIconMode = _m === void 0 ? 'use' : _m, _o = _a.deleteIconSize, deleteIconSize = _o === void 0 ? 20 : _o, _p = _a.deleteIconColor, deleteIconColor = _p === void 0 ? 'ui_cpnt_button_icon_disabled' : _p, isFocused = _a.isFocused, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget, inputRef = _a.inputRef, rest = __rest(_a, ["name", "hintText", "defaultText", "validation", "preventBlankMode", "enterSubmitMode", "textLineType", "multiRows", "autoMinRows", "autoMaxRows", "inputType", "state", "colorTheme", "min", "max", "maxLength", "textSize", "textWeight", "textPadding", "fieldHeight", "deleteIconMode", "deleteIconSize", "deleteIconColor", "isFocused", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "onTarget", "inputRef"]);
|
|
56
56
|
var _q = (0, react_hook_form_1.useFormContext)(), register = _q.register, setValue = _q.setValue, getValues = _q.getValues, clearErrors = _q.clearErrors;
|
|
57
57
|
var timeout;
|
|
58
58
|
(0, react_1.useEffect)(function () {
|
|
@@ -173,16 +173,31 @@ function TextFieldBase(_a) {
|
|
|
173
173
|
var S_TextFieldBase = function () {
|
|
174
174
|
if (textLineType === 'single') {
|
|
175
175
|
return (react_1.default.createElement(S_InputWrapper, null,
|
|
176
|
-
react_1.default.createElement(S_Input, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, type: inputType, state: state, readOnly: state === 'read_only', disabled: state === 'disabled', maxLength: maxLength, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, min: min, max: max, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref:
|
|
176
|
+
react_1.default.createElement(S_Input, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, type: inputType, state: state, readOnly: state === 'read_only', disabled: state === 'disabled', maxLength: maxLength, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, min: min, max: max, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: function (e) {
|
|
177
|
+
ref(e);
|
|
178
|
+
if (inputRef) {
|
|
179
|
+
inputRef.current = e;
|
|
180
|
+
}
|
|
181
|
+
} })),
|
|
177
182
|
deleteIconMode === 'use' && isFocused && (react_1.default.createElement(IconButton_1.IconButton, { iconName: "ic_delete", baseSize: "small", shapeType: "rectangle", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconSize: deleteIconSize, iconColorKey: deleteIconColor, iconFillType: "fill", state: state === 'disabled' ? 'disabled' : 'normal', tabIndex: -1, onMouseDown: deleteValue }))));
|
|
178
183
|
}
|
|
179
184
|
if (textLineType === 'multi') {
|
|
180
|
-
return (react_1.default.createElement(S_Multi, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, state: state, readOnly: state === 'read_only' && true, disabled: state === 'disabled' && true, maxLength: maxLength, rows: multiRows, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref:
|
|
185
|
+
return (react_1.default.createElement(S_Multi, __assign({}, register(name, validation), rest, { name: name, defaultValue: defaultText, placeholder: hintText, state: state, readOnly: state === 'read_only' && true, disabled: state === 'disabled' && true, maxLength: maxLength, rows: multiRows, textSize: textSize, textWeight: textWeight, textPadding: textPadding, colorTheme: colorTheme, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: function (e) {
|
|
186
|
+
ref(e);
|
|
187
|
+
if (inputRef) {
|
|
188
|
+
inputRef.current = e;
|
|
189
|
+
}
|
|
190
|
+
} })));
|
|
181
191
|
}
|
|
182
192
|
if (textLineType === 'auto') {
|
|
183
193
|
return (react_1.default.createElement(S_Auto, __assign({}, refRest, rest, { name: name, defaultValue: defaultText, autoMinRows: autoMinRows, autoMaxRows: autoMaxRows, placeholder: hintText, state: state, readOnly: state === 'read_only' && true, disabled: state === 'disabled' && true, maxLength: maxLength, textSize: textSize, textWeight: textWeight, textPadding: textPadding, fieldHeight: fieldHeight, colorTheme: colorTheme, onFocus: handleFocus, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: function (e) {
|
|
184
194
|
ref(e);
|
|
185
|
-
textAreaRef
|
|
195
|
+
if (textAreaRef) {
|
|
196
|
+
textAreaRef.current = e;
|
|
197
|
+
}
|
|
198
|
+
if (inputRef) {
|
|
199
|
+
inputRef.current = e;
|
|
200
|
+
}
|
|
186
201
|
}, onInput: handleResizeHeight })));
|
|
187
202
|
}
|
|
188
203
|
};
|
|
@@ -20,12 +20,14 @@ export declare type EditApplyTextFieldProps = {
|
|
|
20
20
|
max?: number;
|
|
21
21
|
maxLength?: number;
|
|
22
22
|
min?: number;
|
|
23
|
-
getInputValue?: (data: string[]) => void;
|
|
24
23
|
onBlur?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
25
24
|
onChange?: (e: React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
26
|
-
onClickSubmitBtn?: (...args: any) => any;
|
|
27
25
|
onFocus?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
28
26
|
onTarget?: () => void;
|
|
27
|
+
/** @deprecated v1.5 해당 prop 대신 Form의 onSubmit을 사용하세요. */
|
|
28
|
+
getInputValue?: (data: string[]) => void;
|
|
29
|
+
/** @deprecated v1.5 해당 prop 대신 Form의 onSubmit을 사용하세요. */
|
|
30
|
+
onClickSubmitBtn?: (...args: any) => any;
|
|
29
31
|
};
|
|
30
32
|
declare function EditApplyTextField({ name, hintText, defaultText, validation, preventBlankMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, max, maxLength, min, getInputValue, onBlur, onChange, onClickSubmitBtn, onFocus, onTarget }: EditApplyTextFieldProps): JSX.Element;
|
|
31
33
|
export default EditApplyTextField;
|
|
@@ -34,10 +34,11 @@ function EditApplyTextField(_a) {
|
|
|
34
34
|
var _b;
|
|
35
35
|
var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _c = _a.preventBlankMode, preventBlankMode = _c === void 0 ? 'none' : _c, _d = _a.size, size = _d === void 0 ? 'large' : _d, _e = _a.responsiveMode, responsiveMode = _e === void 0 ? 'none' : _e, _f = _a.textLineType, textLineType = _f === void 0 ? 'single' : _f, _g = _a.multiRows, multiRows = _g === void 0 ? 8 : _g, _h = _a.autoMinRows, autoMinRows = _h === void 0 ? 8 : _h, autoMaxRows = _a.autoMaxRows, _j = _a.inputType, inputType = _j === void 0 ? 'text' : _j, _k = _a.state, state = _k === void 0 ? 'normal' : _k, max = _a.max, maxLength = _a.maxLength, min = _a.min, getInputValue = _a.getInputValue, onBlur = _a.onBlur, onChange = _a.onChange, onClickSubmitBtn = _a.onClickSubmitBtn, onFocus = _a.onFocus, onTarget = _a.onTarget;
|
|
36
36
|
var t = (0, react_i18next_1.useTranslation)('translation').t;
|
|
37
|
-
var _l = (0, react_hook_form_1.useFormContext)(), register = _l.register, setValue = _l.setValue, trigger = _l.trigger, watch = _l.watch,
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
37
|
+
var _l = (0, react_hook_form_1.useFormContext)(), register = _l.register, setValue = _l.setValue, trigger = _l.trigger, watch = _l.watch, reset = _l.reset, _m = _l.formState, errors = _m.errors, isSubmitSuccessful = _m.isSubmitSuccessful;
|
|
38
|
+
var _o = (0, react_1.useState)(false), isFocused = _o[0], setIsFocused = _o[1];
|
|
39
|
+
var _p = (0, react_1.useState)(false), isOpen = _p[0], setIsOpen = _p[1];
|
|
40
|
+
var _q = (0, react_1.useState)(defaultText !== null && defaultText !== void 0 ? defaultText : ''), prevValue = _q[0], setPrevValue = _q[1];
|
|
41
|
+
var ref = (0, react_1.useRef)();
|
|
41
42
|
var currentValue = watch(name);
|
|
42
43
|
var validateOnChange = register(name, validation).onChange;
|
|
43
44
|
var isError = Object.keys(errors).some(function (error) { return error === name; });
|
|
@@ -49,6 +50,17 @@ function EditApplyTextField(_a) {
|
|
|
49
50
|
}
|
|
50
51
|
setValue(name, '');
|
|
51
52
|
}, [defaultText]);
|
|
53
|
+
/**
|
|
54
|
+
* @when submit 버튼을 마우스로 클릭한 후 폼 제출에 성공했을 때
|
|
55
|
+
* @expected 인풋을 블러처리하고 인풋의 값은 유지한 채 isSubmitSuccessful을 초기화합니다.
|
|
56
|
+
*/
|
|
57
|
+
(0, react_1.useEffect)(function () {
|
|
58
|
+
var _a;
|
|
59
|
+
if (isSubmitSuccessful) {
|
|
60
|
+
(_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.blur();
|
|
61
|
+
reset({ name: name }, { keepValues: true });
|
|
62
|
+
}
|
|
63
|
+
}, [isSubmitSuccessful]);
|
|
52
64
|
function handleFocus(e) {
|
|
53
65
|
if (state !== 'read_only') {
|
|
54
66
|
setIsFocused(true);
|
|
@@ -82,45 +94,58 @@ function EditApplyTextField(_a) {
|
|
|
82
94
|
function handleCancel() {
|
|
83
95
|
setValue(name, prevValue);
|
|
84
96
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
97
|
+
/*
|
|
98
|
+
* NOTE
|
|
99
|
+
* preventBlankMode는 input에만 적용 가능
|
|
100
|
+
* 다른 TextField의 경우 'preventBlankMode === 'trim'일 경우에는 무조건 onBlur 시점에 적용'된다고 정의해두었지만,
|
|
101
|
+
* EditApplyTextField는 onBlur 시점에 모든 값이 초기값으로 돌리는 기획이 있기때문에 EditApplyTextField에서는 submit 버튼을 눌렀을 경우에 시행
|
|
102
|
+
*/
|
|
103
|
+
function checkBlankMode() {
|
|
104
|
+
if (textLineType === 'single' && preventBlankMode === 'trim') {
|
|
92
105
|
setValue(name, currentValue.replace(/^\s+|\s+$/gm, ''));
|
|
93
106
|
setPrevValue(currentValue.replace(/^\s+|\s+$/gm, ''));
|
|
94
|
-
|
|
107
|
+
if (getInputValue) {
|
|
108
|
+
getInputValue([name, currentValue.replace(/^\s+|\s+$/gm, '')]);
|
|
109
|
+
}
|
|
95
110
|
}
|
|
96
|
-
if (preventBlankMode !== 'trim'
|
|
111
|
+
if (preventBlankMode !== 'trim') {
|
|
97
112
|
setValue(name, currentValue);
|
|
98
113
|
setPrevValue(currentValue);
|
|
99
|
-
getInputValue
|
|
114
|
+
if (getInputValue) {
|
|
115
|
+
getInputValue([name, currentValue]);
|
|
116
|
+
}
|
|
100
117
|
}
|
|
101
118
|
if (onClickSubmitBtn) {
|
|
102
119
|
onClickSubmitBtn();
|
|
103
120
|
}
|
|
104
121
|
}
|
|
105
|
-
var
|
|
122
|
+
var handleKeyDown = function (e) {
|
|
106
123
|
if (textLineType === 'single' && e.key === 'Enter') {
|
|
107
|
-
|
|
108
|
-
handleSubmit();
|
|
124
|
+
checkBlankMode();
|
|
109
125
|
}
|
|
110
126
|
if (e.key === 'Escape') {
|
|
111
127
|
e.target.blur();
|
|
112
128
|
}
|
|
113
129
|
};
|
|
130
|
+
var handleKeyUp = function (e) {
|
|
131
|
+
if (textLineType === 'single' && e.key === 'Enter') {
|
|
132
|
+
e.target.blur();
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
var handleMouseDown = function (e) {
|
|
136
|
+
e.preventDefault();
|
|
137
|
+
checkBlankMode();
|
|
138
|
+
};
|
|
114
139
|
var S_TextFieldBase = function () {
|
|
115
140
|
if (textLineType === 'multi') {
|
|
116
|
-
return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "multi", multiRows: multiRows, state: state, maxLength: maxLength, textSize: size === 'large' || size === 'rlarge' ? 'form2' : 'heading', textWeight: size === 'large' || size === 'rlarge' ? 'normal' : 'bold', onFocus: handleFocus, onBlur: handleBlur, onTarget: handleTarget, onChange: handleChange,
|
|
141
|
+
return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "multi", multiRows: multiRows, state: state, maxLength: maxLength, textSize: size === 'large' || size === 'rlarge' ? 'form2' : 'heading', textWeight: size === 'large' || size === 'rlarge' ? 'normal' : 'bold', onFocus: handleFocus, onBlur: handleBlur, onTarget: handleTarget, onChange: handleChange, inputRef: ref }));
|
|
117
142
|
}
|
|
118
143
|
if (textLineType === 'auto') {
|
|
119
|
-
return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "auto", autoMinRows: autoMinRows, autoMaxRows: autoMaxRows, state: state, maxLength: maxLength, textSize: size === 'large' || size === 'rlarge' ? 'form2' : 'heading', textWeight: size === 'large' || size === 'rlarge' ? 'normal' : 'bold', onFocus: handleFocus, onBlur: handleBlur, onTarget: handleTarget, onChange: handleChange,
|
|
144
|
+
return (react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, textLineType: "auto", autoMinRows: autoMinRows, autoMaxRows: autoMaxRows, state: state, maxLength: maxLength, textSize: size === 'large' || size === 'rlarge' ? 'form2' : 'heading', textWeight: size === 'large' || size === 'rlarge' ? 'normal' : 'bold', onFocus: handleFocus, onBlur: handleBlur, onTarget: handleTarget, onChange: handleChange, inputRef: ref }));
|
|
120
145
|
}
|
|
121
146
|
if (textLineType === 'single') {
|
|
122
147
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
123
|
-
react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, preventBlankMode: preventBlankMode, textLineType: "single", inputType: inputType, state: state, min: min, max: max, maxLength: maxLength, textSize: size === 'large' || size === 'rlarge' ? 'form2' : 'heading', textWeight: size === 'large' || size === 'rlarge' ? 'normal' : 'bold', onFocus: handleFocus, onBlur: handleBlur, onTarget: handleTarget, onChange: handleChange, onKeyUp: handleKeyUp })));
|
|
148
|
+
react_1.default.createElement(components_1.TextFieldBase, { name: name, hintText: hintText, defaultText: defaultText, validation: validation, preventBlankMode: preventBlankMode, enterSubmitMode: "use", textLineType: "single", inputType: inputType, state: state, min: min, max: max, maxLength: maxLength, textSize: size === 'large' || size === 'rlarge' ? 'form2' : 'heading', textWeight: size === 'large' || size === 'rlarge' ? 'normal' : 'bold', onFocus: handleFocus, onBlur: handleBlur, onTarget: handleTarget, onChange: handleChange, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, inputRef: ref })));
|
|
124
149
|
}
|
|
125
150
|
};
|
|
126
151
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
@@ -129,7 +154,7 @@ function EditApplyTextField(_a) {
|
|
|
129
154
|
react_1.default.createElement(S_S_TextFieldBaseWrapper, { size: size, responsiveMode: responsiveMode, textLineType: textLineType, isFocused: isFocused, isError: isError, state: state }, S_TextFieldBase()),
|
|
130
155
|
isOpen === true && (react_1.default.createElement(S_ButtonBox, null,
|
|
131
156
|
react_1.default.createElement(IconButton_1.IconButton, { iconName: "ic_xmark", fillType: "fill", baseSize: "small", iconSize: 16, shapeType: "circular", shadow: "visible", iconColorKey: "ui_cpnt_button_icon_enabled", baseColorKey: "ui_cpnt_button_fill_base_white", tabIndex: -1, onMouseDown: handleCancel }),
|
|
132
|
-
react_1.default.createElement(IconButton_1.IconButton, { iconName: "ic_check", fillType: "fill", baseSize: "small", iconSize: 16, shapeType: "circular", shadow: "visible", iconColorKey: "ui_cpnt_button_icon_on_primary", baseColorKey: "ui_cpnt_button_fill_base_primary", state: isError === true ? 'disabled' : 'normal', tabIndex: -1, onMouseDown:
|
|
157
|
+
react_1.default.createElement(IconButton_1.IconButton, { iconName: "ic_check", fillType: "fill", baseSize: "small", iconSize: 16, shapeType: "circular", shadow: "visible", iconColorKey: "ui_cpnt_button_icon_on_primary", baseColorKey: "ui_cpnt_button_fill_base_primary", state: isError === true ? 'disabled' : 'normal', tabIndex: -1, onMouseDown: handleMouseDown, type: "submit" })))),
|
|
133
158
|
((_b = errors[name]) === null || _b === void 0 ? void 0 : _b.message) && (react_1.default.createElement(S_Error, { isFocused: isFocused }, t(errors[name].message))))));
|
|
134
159
|
}
|
|
135
160
|
var S_EditApplyTextFieldWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n"], ["\n width: ", ";\n"])), function (_a) {
|
|
@@ -60,6 +60,9 @@ function IconButton(_a) {
|
|
|
60
60
|
if (iconColorKey) {
|
|
61
61
|
return iconColorKey;
|
|
62
62
|
}
|
|
63
|
+
if (fillType === 'fill' && baseColorKey === 'ui_cpnt_button_fill_base_transparent') {
|
|
64
|
+
return 'ui_cpnt_button_icon_enabled';
|
|
65
|
+
}
|
|
63
66
|
return iconStateColorObj[fillType];
|
|
64
67
|
};
|
|
65
68
|
return (react_1.default.createElement(S_IconButton, { fillType: fillType, shapeType: shapeType, baseSize: baseSize, baseColorKey: baseColorKey, borderColorKey: borderColorKey, shadow: shadow, colorTheme: colorTheme, type: type, state: state, disabled: state === 'disabled', tabIndex: tabIndex, onClick: handleClick, onMouseDown: handleMouseDown },
|
|
@@ -74,7 +77,7 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
|
|
|
74
77
|
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"], ["\n background-color: ", ";\n\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"])), function (_a) {
|
|
75
78
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
76
79
|
return baseColorKey
|
|
77
|
-
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[baseColorKey]
|
|
80
|
+
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[baseColorKey]
|
|
78
81
|
: theme.ui_cpnt_button_fill_base_primary;
|
|
79
82
|
}, function (_a) {
|
|
80
83
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
@@ -103,7 +106,7 @@ var line = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 =
|
|
|
103
106
|
}, function (_a) {
|
|
104
107
|
var theme = _a.theme, borderColorKey = _a.borderColorKey;
|
|
105
108
|
return borderColorKey
|
|
106
|
-
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[borderColorKey]
|
|
109
|
+
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[borderColorKey]
|
|
107
110
|
: theme.ui_cpnt_button_line_border_enabled;
|
|
108
111
|
}, function (_a) {
|
|
109
112
|
var colorTheme = _a.colorTheme;
|
|
@@ -65,7 +65,7 @@ function ReactionButton(_a) {
|
|
|
65
65
|
case status === 'default' && colorTheme === 'none':
|
|
66
66
|
return 'sysTextSecondary';
|
|
67
67
|
case status === 'select' && colorTheme === 'none':
|
|
68
|
-
return '
|
|
68
|
+
return 'usrTextBrandPrimary';
|
|
69
69
|
default:
|
|
70
70
|
return 'sysTextSecondary';
|
|
71
71
|
}
|
|
@@ -259,7 +259,8 @@ var customFontStyle = (0, styled_components_1.css)(templateObject_28 || (templat
|
|
|
259
259
|
});
|
|
260
260
|
var colorOverrideStyle = (0, styled_components_1.css)(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
261
261
|
var colorOverride = _a.colorOverride;
|
|
262
|
-
return colorOverride &&
|
|
262
|
+
return colorOverride &&
|
|
263
|
+
(0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[colorOverride];
|
|
263
264
|
});
|
|
264
265
|
var ellipsisStyle = (0, styled_components_1.css)(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (_a) {
|
|
265
266
|
var lineLimit = _a.lineLimit;
|
|
@@ -63,7 +63,7 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
|
|
|
63
63
|
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n\n &:hover:not([disabled]) {\n ", "\n }\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", ";\n"], ["\n background-color: ", ";\n\n &:hover:not([disabled]) {\n ", "\n }\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", ";\n"])), function (_a) {
|
|
64
64
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
65
65
|
return baseColorKey
|
|
66
|
-
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[baseColorKey]
|
|
66
|
+
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[baseColorKey]
|
|
67
67
|
: theme.ui_cpnt_button_fill_base_primary;
|
|
68
68
|
}, function (_a) {
|
|
69
69
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
@@ -100,7 +100,7 @@ var line = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 =
|
|
|
100
100
|
}, function (_a) {
|
|
101
101
|
var theme = _a.theme, borderColorKey = _a.borderColorKey;
|
|
102
102
|
return borderColorKey
|
|
103
|
-
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[borderColorKey]
|
|
103
|
+
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[borderColorKey]
|
|
104
104
|
: theme.ui_cpnt_button_line_border_enabled;
|
|
105
105
|
}, function (_a) {
|
|
106
106
|
var colorTheme = _a.colorTheme;
|
|
@@ -12,6 +12,6 @@ var Icon = function (_a) {
|
|
|
12
12
|
var SelectedIcon = fillType === 'line'
|
|
13
13
|
? line_1.default[iconName] || fill_1.default[iconName]
|
|
14
14
|
: fill_1.default[iconName] || line_1.default[iconName];
|
|
15
|
-
return (react_1.default.createElement(SelectedIcon, { color: (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[colorKey], size: size, style: { minWidth: size, minHeight: size } }));
|
|
15
|
+
return (react_1.default.createElement(SelectedIcon, { color: (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[colorKey], size: size, style: { minWidth: size, minHeight: size } }));
|
|
16
16
|
};
|
|
17
17
|
exports.default = Icon;
|
|
@@ -60,6 +60,9 @@ function IconButton(_a) {
|
|
|
60
60
|
if (iconColorKey) {
|
|
61
61
|
return iconColorKey;
|
|
62
62
|
}
|
|
63
|
+
if (fillType === 'fill' && baseColorKey === 'ui_cpnt_button_fill_base_transparent') {
|
|
64
|
+
return 'ui_cpnt_button_icon_enabled';
|
|
65
|
+
}
|
|
63
66
|
return iconStateColorObj[fillType];
|
|
64
67
|
};
|
|
65
68
|
return (react_1.default.createElement(S_IconButton, { fillType: fillType, shapeType: shapeType, baseSize: baseSize, baseColorKey: baseColorKey, borderColorKey: borderColorKey, shadow: shadow, colorTheme: colorTheme, type: type, state: state, disabled: state === 'disabled', tabIndex: tabIndex, onClick: handleClick, onMouseDown: handleMouseDown },
|
|
@@ -74,7 +77,7 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
|
|
|
74
77
|
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"], ["\n background-color: ", ";\n\n &:active:enabled {\n ", "\n }\n\n ", ";\n"])), function (_a) {
|
|
75
78
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
76
79
|
return baseColorKey
|
|
77
|
-
? (0, ui_colors_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[baseColorKey]
|
|
80
|
+
? (0, ui_colors_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[baseColorKey]
|
|
78
81
|
: theme.ui_cpnt_button_fill_base_primary;
|
|
79
82
|
}, function (_a) {
|
|
80
83
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
@@ -98,7 +101,7 @@ var line = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 =
|
|
|
98
101
|
}, function (_a) {
|
|
99
102
|
var theme = _a.theme, borderColorKey = _a.borderColorKey;
|
|
100
103
|
return borderColorKey
|
|
101
|
-
? (0, ui_colors_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[borderColorKey]
|
|
104
|
+
? (0, ui_colors_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[borderColorKey]
|
|
102
105
|
: theme.ui_cpnt_button_line_border_enabled;
|
|
103
106
|
}, function (_a) {
|
|
104
107
|
var colorTheme = _a.colorTheme;
|
|
@@ -252,7 +252,8 @@ var customFontStyle = (0, styled_components_1.css)(templateObject_28 || (templat
|
|
|
252
252
|
});
|
|
253
253
|
var colorOverrideStyle = (0, styled_components_1.css)(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
254
254
|
var colorOverride = _a.colorOverride;
|
|
255
|
-
return colorOverride &&
|
|
255
|
+
return colorOverride &&
|
|
256
|
+
(0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[colorOverride];
|
|
256
257
|
});
|
|
257
258
|
var ellipsisStyle = (0, styled_components_1.css)(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n -webkit-box-orient: vertical;\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (_a) {
|
|
258
259
|
var lineLimit = _a.lineLimit;
|
|
@@ -63,7 +63,7 @@ var fillDisabled = (0, styled_components_1.css)(templateObject_1 || (templateObj
|
|
|
63
63
|
var fill = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", ";\n"], ["\n background-color: ", ";\n\n &:active:not([disabled]) {\n background-image: ", ";\n }\n\n ", ";\n"])), function (_a) {
|
|
64
64
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
65
65
|
return baseColorKey
|
|
66
|
-
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[baseColorKey]
|
|
66
|
+
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[baseColorKey]
|
|
67
67
|
: theme.ui_cpnt_button_fill_base_primary;
|
|
68
68
|
}, function (_a) {
|
|
69
69
|
var theme = _a.theme, baseColorKey = _a.baseColorKey;
|
|
@@ -95,7 +95,7 @@ var line = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 =
|
|
|
95
95
|
}, function (_a) {
|
|
96
96
|
var theme = _a.theme, borderColorKey = _a.borderColorKey;
|
|
97
97
|
return borderColorKey
|
|
98
|
-
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK')[borderColorKey]
|
|
98
|
+
? (0, common_1.customTheme)(window.PdsUtils ? window.PdsUtils.tone : 'DARK', window.PdsUtils ? window.PdsUtils.palette : {})[borderColorKey]
|
|
99
99
|
: theme.ui_cpnt_button_line_border_enabled;
|
|
100
100
|
}, function (_a) {
|
|
101
101
|
var colorTheme = _a.colorTheme;
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
# PDS-DEV-KIT-WEB Release Notes
|
|
2
|
-
## [v1.3.
|
|
3
|
-
|
|
4
|
-
### Layout
|
|
5
|
-
* WTS_1
|
|
6
|
-
* ContentArea2에 height: 100%; overflow: auto; 추가했던 것 제거
|
|
7
|
-
* Content2에 height: 100%; 추가했던 것 제거
|
|
8
|
-
* Container에 container1Ref 추가
|
|
2
|
+
## [v1.3.28]
|
|
9
3
|
|
|
10
4
|
### Component
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
### Color
|
|
14
|
-
* 컬러 키 값 22.05.30 2시 25분 기준 싱크
|
|
5
|
+
* EditApplyTextField
|
|
6
|
+
* Form 컴포넌트의 onSubmit을 이용했을 때에도 submit과 blur 처리가 제대로 작동할 수 있게끔 수정
|