pds-dev-kit-web 0.5.16 → 0.5.20

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.
Files changed (48) hide show
  1. package/dist/src/common/assets/icons/line/Lock.d.ts +4 -0
  2. package/dist/src/common/assets/icons/line/Lock.js +36 -0
  3. package/dist/src/common/assets/icons/line/index.d.ts +1 -0
  4. package/dist/src/common/assets/icons/line/index.js +2 -0
  5. package/dist/src/common/services/i18n/resources/en.json +49 -21
  6. package/dist/src/common/services/i18n/resources/es.json +50 -22
  7. package/dist/src/common/services/i18n/resources/index.d.ts +132 -20
  8. package/dist/src/common/services/i18n/resources/jp.json +50 -22
  9. package/dist/src/common/services/i18n/resources/ko.json +50 -22
  10. package/dist/src/common/styles/colorSet/UIColor.json +3 -3
  11. package/dist/src/common/styles/colorSet/index.d.ts +57 -57
  12. package/dist/src/common/styles/colorSet/index.js +2 -2
  13. package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.d.ts +1 -1
  14. package/dist/src/desktop/common/components/TextFieldBase/TextFieldBase.js +6 -11
  15. package/dist/src/desktop/components/ContextMenu/ContextMenu.js +1 -1
  16. package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.d.ts +4 -2
  17. package/dist/src/desktop/components/EditApplyTextField/EditApplyTextField.js +21 -16
  18. package/dist/src/desktop/components/MainButton/MainButton.d.ts +2 -1
  19. package/dist/src/desktop/components/MainButton/MainButton.js +6 -3
  20. package/dist/src/desktop/components/Select/Select.d.ts +2 -1
  21. package/dist/src/desktop/components/Select/Select.js +7 -4
  22. package/dist/src/desktop/components/TextButton/TextButton.d.ts +2 -1
  23. package/dist/src/desktop/components/TextButton/TextButton.js +6 -3
  24. package/dist/src/desktop/components/TextField/TextField.d.ts +3 -2
  25. package/dist/src/desktop/components/TextField/TextField.js +12 -9
  26. package/dist/src/desktop/components/UploadMainButton/UploadMainButton.d.ts +2 -1
  27. package/dist/src/desktop/components/UploadMainButton/UploadMainButton.js +6 -3
  28. package/dist/src/desktop/components/UploadTextButton/UploadTextButton.d.ts +2 -1
  29. package/dist/src/desktop/components/UploadTextButton/UploadTextButton.js +6 -3
  30. package/dist/src/hybrid/components/Icon/Icon.d.ts +1 -1
  31. package/dist/src/hybrid/components/Icon/Icon.js +2 -24
  32. package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.d.ts +1 -1
  33. package/dist/src/mobile/common/components/TextFieldBase/TextFieldBase.js +6 -11
  34. package/dist/src/mobile/components/BlogTextField/BlogTextField.d.ts +1 -1
  35. package/dist/src/mobile/components/BlogTextField/BlogTextField.js +2 -2
  36. package/dist/src/mobile/components/MainButton/MainButton.d.ts +2 -1
  37. package/dist/src/mobile/components/MainButton/MainButton.js +6 -3
  38. package/dist/src/mobile/components/Select/Select.d.ts +2 -1
  39. package/dist/src/mobile/components/Select/Select.js +7 -4
  40. package/dist/src/mobile/components/TextButton/TextButton.d.ts +2 -1
  41. package/dist/src/mobile/components/TextButton/TextButton.js +6 -3
  42. package/dist/src/mobile/components/TextField/TextField.d.ts +3 -2
  43. package/dist/src/mobile/components/TextField/TextField.js +12 -9
  44. package/dist/src/mobile/components/UploadMainButton/UploadMainButton.d.ts +2 -1
  45. package/dist/src/mobile/components/UploadMainButton/UploadMainButton.js +6 -3
  46. package/dist/src/mobile/components/UploadTextButton/UploadTextButton.d.ts +2 -1
  47. package/dist/src/mobile/components/UploadTextButton/UploadTextButton.js +6 -3
  48. package/package.json +1 -1
@@ -1,5 +1,60 @@
1
1
  declare const colorSet: {
2
- readonly PaletteColor_light: {
2
+ readonly SemanticColor: {
3
+ blue500: string;
4
+ blue700: string;
5
+ blue300: string;
6
+ green700: string;
7
+ green500: string;
8
+ green300: string;
9
+ red500: string;
10
+ grey900: string;
11
+ grey500: string;
12
+ grey400: string;
13
+ grey100: string;
14
+ grey50: string;
15
+ white: string;
16
+ black: string;
17
+ darkblue500: string;
18
+ grey950: string;
19
+ darkgrey900: string;
20
+ darkgrey500: string;
21
+ darkgrey400: string;
22
+ darkgrey100: string;
23
+ darkgrey50: string;
24
+ darkred500: string;
25
+ darkgreen700: string;
26
+ orange500: string;
27
+ darkorange500: string;
28
+ opacity00: string;
29
+ opacity20: string;
30
+ opacity30: string;
31
+ opacity65: string;
32
+ darkgreen500: string;
33
+ grey70: string;
34
+ navy500: string;
35
+ lightgreen500: string;
36
+ pink500: string;
37
+ darkgrey70: string;
38
+ darknavy500: string;
39
+ darkpink500: string;
40
+ darklightgreen500: string;
41
+ opacity10: string;
42
+ grey600: string;
43
+ darkgrey600: string;
44
+ skyblue500: string;
45
+ skyblue300: string;
46
+ pink300: string;
47
+ lightpink500: string;
48
+ darkblue300: string;
49
+ darkblue700: string;
50
+ darkgreen300: string;
51
+ darkskyblue500: string;
52
+ navy100: string;
53
+ darknavy100: string;
54
+ opacity80: string;
55
+ opacity50: string;
56
+ };
57
+ readonly PaletteColor_Dark: {
3
58
  sys_container_background_01: string;
4
59
  sys_container_background_02: string;
5
60
  sys_container_background_03: string;
@@ -126,62 +181,7 @@ declare const colorSet: {
126
181
  sys_component_base_black_opacity30: string;
127
182
  sys_area_background: string;
128
183
  };
129
- readonly SemanticColor: {
130
- blue500: string;
131
- blue700: string;
132
- blue300: string;
133
- green700: string;
134
- green500: string;
135
- green300: string;
136
- red500: string;
137
- grey900: string;
138
- grey500: string;
139
- grey400: string;
140
- grey100: string;
141
- grey50: string;
142
- white: string;
143
- black: string;
144
- darkblue500: string;
145
- grey950: string;
146
- darkgrey900: string;
147
- darkgrey500: string;
148
- darkgrey400: string;
149
- darkgrey100: string;
150
- darkgrey50: string;
151
- darkred500: string;
152
- darkgreen700: string;
153
- orange500: string;
154
- darkorange500: string;
155
- opacity00: string;
156
- opacity20: string;
157
- opacity30: string;
158
- opacity65: string;
159
- darkgreen500: string;
160
- grey70: string;
161
- navy500: string;
162
- lightgreen500: string;
163
- pink500: string;
164
- darkgrey70: string;
165
- darknavy500: string;
166
- darkpink500: string;
167
- darklightgreen500: string;
168
- opacity10: string;
169
- grey600: string;
170
- darkgrey600: string;
171
- skyblue500: string;
172
- skyblue300: string;
173
- pink300: string;
174
- lightpink500: string;
175
- darkblue300: string;
176
- darkblue700: string;
177
- darkgreen300: string;
178
- darkskyblue500: string;
179
- navy100: string;
180
- darknavy100: string;
181
- opacity80: string;
182
- opacity50: string;
183
- };
184
- readonly PaletteColor_Dark: {
184
+ readonly PaletteColor_light: {
185
185
  sys_container_background_01: string;
186
186
  sys_container_background_02: string;
187
187
  sys_container_background_03: string;
@@ -4,14 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /* eslint-disable import/order */
7
- var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
8
7
  var SemanticColor_json_1 = __importDefault(require("./SemanticColor.json"));
9
8
  var PaletteColor_Dark_json_1 = __importDefault(require("./PaletteColor_Dark.json"));
9
+ var PaletteColor_light_json_1 = __importDefault(require("./PaletteColor_light.json"));
10
10
  var UIColor_json_1 = __importDefault(require("./UIColor.json"));
11
11
  var colorSet = {
12
- PaletteColor_light: PaletteColor_light_json_1.default,
13
12
  SemanticColor: SemanticColor_json_1.default,
14
13
  PaletteColor_Dark: PaletteColor_Dark_json_1.default,
14
+ PaletteColor_light: PaletteColor_light_json_1.default,
15
15
  UIColor: UIColor_json_1.default
16
16
  };
17
17
  exports.default = colorSet;
@@ -29,7 +29,7 @@ export declare type TextFieldBaseProps = {
29
29
  isFocused?: boolean;
30
30
  onBlur?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
31
31
  onChange?: (e: React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>) => void;
32
- onFocus?: () => void;
32
+ onFocus?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
33
33
  onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
34
34
  onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
35
35
  onTarget?: () => void;
@@ -58,17 +58,12 @@ function TextFieldBase(_a) {
58
58
  (0, react_1.useEffect)(function () {
59
59
  return function () { return clearTimeout(timeout); };
60
60
  }, []);
61
- function handleFocus() {
61
+ function handleFocus(e) {
62
62
  if (onFocus) {
63
- onFocus();
63
+ onFocus(e);
64
64
  }
65
65
  clearErrors(name);
66
66
  }
67
- function handleTarget() {
68
- if (onTarget) {
69
- onTarget();
70
- }
71
- }
72
67
  function handleKeyDown(e) {
73
68
  if (onKeyDown) {
74
69
  onKeyDown(e);
@@ -175,14 +170,14 @@ function TextFieldBase(_a) {
175
170
  var S_TextFieldBase = function () {
176
171
  if (textLineType === 'single') {
177
172
  return (react_1.default.createElement(S_InputWrapper, null,
178
- 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, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: ref })),
173
+ 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: ref })),
179
174
  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', onMouseDown: deleteValue }))));
180
175
  }
181
176
  if (textLineType === 'multi') {
182
- 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, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: ref })));
177
+ 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: ref })));
183
178
  }
184
179
  if (textLineType === 'auto') {
185
- 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, onTarget: handleTarget, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, ref: function (e) {
180
+ 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) {
186
181
  ref(e);
187
182
  textAreaRef.current = e;
188
183
  }, onInput: handleResizeHeight })));
@@ -246,7 +241,7 @@ var S_Input = styled_components_1.default.input(templateObject_5 || (templateObj
246
241
  var theme = _a.theme;
247
242
  return theme.desktopLineHeight.singleLine;
248
243
  });
249
- var S_Auto = styled_components_1.default.textarea(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", "\n resize: none;\n ", "\n ", ";\n"], ["\n ", "\n resize: none;\n ", "\n ", ";\n"])), basicStyle, function (_a) {
244
+ var S_Auto = styled_components_1.default.textarea(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", "\n display: block;\n overflow-y: auto;\n resize: none;\n ", "\n ", ";\n"], ["\n ", "\n display: block;\n overflow-y: auto;\n resize: none;\n ", "\n ", ";\n"])), basicStyle, function (_a) {
250
245
  var autoMaxRows = _a.autoMaxRows, textSize = _a.textSize, fieldHeight = _a.fieldHeight;
251
246
  return autoMaxRows &&
252
247
  fieldHeight &&
@@ -13,7 +13,7 @@ function ContextMenu(_a) {
13
13
  var children = _a.children, _b = _a.autoWidthMode, autoWidthMode = _b === void 0 ? 'none' : _b;
14
14
  return react_1.default.createElement(S_ContextMenu, { autoWidth: autoWidthMode === 'use' }, children);
15
15
  }
16
- var S_ContextMenu = styled_components_1.default.ul(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n vertical-align: baseline;\n width: ", ";\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n vertical-align: baseline;\n width: ", ";\n"])), function (_a) {
16
+ var S_ContextMenu = styled_components_1.default.ul(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n position: relative;\n vertical-align: baseline;\n width: ", ";\n z-index: 3;\n"], ["\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n box-shadow: ", ";\n list-style: none;\n margin: 0;\n min-width: 128px;\n overflow-y: auto;\n padding: ", " 0;\n position: relative;\n vertical-align: baseline;\n width: ", ";\n z-index: 3;\n"])), function (_a) {
17
17
  var theme = _a.theme;
18
18
  return theme.ui_cpnt_contextmenu_base;
19
19
  }, function (_a) {
@@ -10,6 +10,7 @@ export declare type EditApplyTextFieldProps = {
10
10
  };
11
11
  preventBlankMode?: 'none' | 'trim' | 'all';
12
12
  size?: 'xlarge' | 'large' | 'rlarge';
13
+ responsiveMode?: 'none' | 'use';
13
14
  textLineType?: 'single' | 'multi' | 'auto';
14
15
  multiRows?: number;
15
16
  autoMinRows?: number;
@@ -19,11 +20,12 @@ export declare type EditApplyTextFieldProps = {
19
20
  max?: number;
20
21
  maxLength?: number;
21
22
  min?: number;
23
+ getInputValue?: (data: string[]) => void;
22
24
  onBlur?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
23
25
  onChange?: (e: React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>) => void;
24
26
  onClickSubmitBtn?: (...args: any) => any;
25
- onFocus?: () => void;
27
+ onFocus?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
26
28
  onTarget?: () => void;
27
29
  };
28
- declare function EditApplyTextField({ name, hintText, defaultText, validation, preventBlankMode, size, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, max, maxLength, min, onBlur, onChange, onClickSubmitBtn, onFocus, onTarget }: EditApplyTextFieldProps): JSX.Element;
30
+ 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;
29
31
  export default EditApplyTextField;
@@ -32,12 +32,12 @@ var components_1 = require("../../common/components");
32
32
  var IconButton_1 = require("../IconButton");
33
33
  function EditApplyTextField(_a) {
34
34
  var _b;
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.textLineType, textLineType = _e === void 0 ? 'single' : _e, _f = _a.multiRows, multiRows = _f === void 0 ? 8 : _f, _g = _a.autoMinRows, autoMinRows = _g === void 0 ? 8 : _g, autoMaxRows = _a.autoMaxRows, _h = _a.inputType, inputType = _h === void 0 ? 'text' : _h, _j = _a.state, state = _j === void 0 ? 'normal' : _j, max = _a.max, maxLength = _a.maxLength, min = _a.min, onBlur = _a.onBlur, onChange = _a.onChange, onClickSubmitBtn = _a.onClickSubmitBtn, onFocus = _a.onFocus, onTarget = _a.onTarget;
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 _k = (0, react_hook_form_1.useFormContext)(), register = _k.register, setValue = _k.setValue, trigger = _k.trigger, watch = _k.watch, errors = _k.formState.errors;
38
- var _l = (0, react_1.useState)(false), isFocused = _l[0], setIsFocused = _l[1];
39
- var _m = (0, react_1.useState)(false), isOpen = _m[0], setIsOpen = _m[1];
40
- var _o = (0, react_1.useState)(), prevValue = _o[0], setPrevValue = _o[1];
37
+ var _l = (0, react_hook_form_1.useFormContext)(), register = _l.register, setValue = _l.setValue, trigger = _l.trigger, watch = _l.watch, errors = _l.formState.errors;
38
+ var _m = (0, react_1.useState)(false), isFocused = _m[0], setIsFocused = _m[1];
39
+ var _o = (0, react_1.useState)(false), isOpen = _o[0], setIsOpen = _o[1];
40
+ var _p = (0, react_1.useState)(), prevValue = _p[0], setPrevValue = _p[1];
41
41
  var currentValue = watch(name);
42
42
  var validateOnChange = register(name, validation).onChange;
43
43
  var isError = Object.keys(errors).some(function (error) { return error === name; });
@@ -46,13 +46,13 @@ function EditApplyTextField(_a) {
46
46
  setPrevValue(defaultText);
47
47
  }
48
48
  }, [defaultText]);
49
- function handleFocus() {
49
+ function handleFocus(e) {
50
50
  if (state !== 'read_only') {
51
51
  setIsFocused(true);
52
52
  setIsOpen(true);
53
53
  }
54
54
  if (onFocus) {
55
- onFocus();
55
+ onFocus(e);
56
56
  }
57
57
  }
58
58
  function handleTarget() {
@@ -85,13 +85,15 @@ function EditApplyTextField(_a) {
85
85
  }
86
86
  // NOTE: preventBlankMode는 input에만 적용 가능
87
87
  // NOTE: 다른 TextField의 경우 'preventBlankMode === 'trim'일 경우에는 무조건 onBlur 시점에 적용'된다고 정의해두었지만, EditApplyTextField는 onBlur 시점에 모든 값이 초기값으로 돌리는 기획이 있기때문에 EditApplyTextField에서는 submit 버튼을 눌렀을 경우에 시행
88
- if (textLineType === 'single' && preventBlankMode === 'trim') {
88
+ if (textLineType === 'single' && preventBlankMode === 'trim' && getInputValue) {
89
89
  setValue(name, currentValue.replace(/^\s+|\s+$/gm, ''));
90
90
  setPrevValue(currentValue.replace(/^\s+|\s+$/gm, ''));
91
+ getInputValue([name, currentValue.replace(/^\s+|\s+$/gm, '')]);
91
92
  }
92
- if (preventBlankMode !== 'trim') {
93
+ if (preventBlankMode !== 'trim' && getInputValue) {
93
94
  setValue(name, currentValue);
94
95
  setPrevValue(currentValue);
96
+ getInputValue([name, currentValue]);
95
97
  }
96
98
  if (onClickSubmitBtn) {
97
99
  onClickSubmitBtn();
@@ -119,17 +121,17 @@ function EditApplyTextField(_a) {
119
121
  }
120
122
  };
121
123
  return (react_1.default.createElement(react_1.default.Fragment, null,
122
- react_1.default.createElement(S_EditApplyTextFieldWrapper, { size: size },
124
+ react_1.default.createElement(S_EditApplyTextFieldWrapper, { size: size, responsiveMode: responsiveMode },
123
125
  react_1.default.createElement(S_EditApplyTextField, null,
124
- react_1.default.createElement(S_S_TextFieldBaseWrapper, { size: size, textLineType: textLineType, isFocused: isFocused, isError: isError, state: state }, S_TextFieldBase()),
126
+ react_1.default.createElement(S_S_TextFieldBaseWrapper, { size: size, responsiveMode: responsiveMode, textLineType: textLineType, isFocused: isFocused, isError: isError, state: state }, S_TextFieldBase()),
125
127
  isOpen === true && (react_1.default.createElement(S_ButtonBox, null,
126
128
  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", onMouseDown: handleCancel }),
127
129
  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", onMouseDown: handleSubmit, state: isError === true ? 'disabled' : 'normal' })))),
128
130
  ((_b = errors[name]) === null || _b === void 0 ? void 0 : _b.message) && (react_1.default.createElement(S_Error, { isFocused: isFocused }, t(errors[name].message))))));
129
131
  }
130
132
  var S_EditApplyTextFieldWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n"], ["\n width: ", ";\n"])), function (_a) {
131
- var size = _a.size;
132
- return (size === 'rlarge' ? '100%' : '432px');
133
+ var size = _a.size, responsiveMode = _a.responsiveMode;
134
+ return size === 'rlarge' || responsiveMode === 'use' ? '100%' : '432px';
133
135
  });
134
136
  var S_EditApplyTextField = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
135
137
  var multi = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: auto;\n padding: 14px;\n"], ["\n height: auto;\n padding: 14px;\n"])));
@@ -144,12 +146,15 @@ var auto = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 =
144
146
  Number(theme.desktopFontSize.form2.substring(0, 2)) * Number(theme.desktopLineHeight.form2)) /
145
147
  2;
146
148
  });
147
- var xlarge = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: 56px;\n padding-left: ", ";\n padding-right: ", ";\n width: 432px;\n ", "\n ", "\n"], ["\n height: 56px;\n padding-left: ", ";\n padding-right: ", ";\n width: 432px;\n ", "\n ", "\n"])), function (_a) {
149
+ var xlarge = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: 56px;\n padding-left: ", ";\n padding-right: ", ";\n width: ", ";\n ", "\n ", "\n"], ["\n height: 56px;\n padding-left: ", ";\n padding-right: ", ";\n width: ", ";\n ", "\n ", "\n"])), function (_a) {
148
150
  var theme = _a.theme;
149
151
  return theme.spacing.spacingB;
150
152
  }, function (_a) {
151
153
  var theme = _a.theme;
152
154
  return theme.spacing.spacingB;
155
+ }, function (_a) {
156
+ var responsiveMode = _a.responsiveMode;
157
+ return (responsiveMode === 'use' ? '100%' : '432px');
153
158
  }, function (_a) {
154
159
  var textLineType = _a.textLineType;
155
160
  return textLineType === 'multi' && multi;
@@ -164,8 +169,8 @@ var large = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 =
164
169
  var theme = _a.theme;
165
170
  return theme.spacing.spacingD;
166
171
  }, function (_a) {
167
- var size = _a.size;
168
- return (size === 'rlarge' ? '100%' : '432px');
172
+ var size = _a.size, responsiveMode = _a.responsiveMode;
173
+ return size === 'rlarge' || responsiveMode === 'use' ? '100%' : '432px';
169
174
  }, function (_a) {
170
175
  var textLineType = _a.textLineType;
171
176
  return textLineType === 'multi' && multi;
@@ -4,6 +4,7 @@ export declare type MainButtonProps = {
4
4
  text?: PDSTextType;
5
5
  fillType?: 'fill' | 'line';
6
6
  size?: 'large' | 'medium' | 'small' | 'xsmall' | 'rlarge';
7
+ responsiveMode?: 'none' | 'use';
7
8
  fontWeight?: 'bold' | 'regular';
8
9
  iconMode?: 'none' | 'left' | 'right';
9
10
  iconFillType?: 'fill' | 'line';
@@ -14,5 +15,5 @@ export declare type MainButtonProps = {
14
15
  onClick?: (...args: any) => any;
15
16
  onMouseDown?: (...args: any) => any;
16
17
  };
17
- declare function MainButton({ text, fillType, size, fontWeight, iconMode, iconFillType, iconName, colorTheme, type, state, onClick, onMouseDown }: MainButtonProps): JSX.Element;
18
+ declare function MainButton({ text, fillType, size, responsiveMode, fontWeight, iconMode, iconFillType, iconName, colorTheme, type, state, onClick, onMouseDown }: MainButtonProps): JSX.Element;
18
19
  export default MainButton;
@@ -37,7 +37,7 @@ var TextLabel_1 = require("../TextLabel");
37
37
  // borderColorKey?: string;
38
38
  // shadow?: 'hidden' | 'visible';
39
39
  function MainButton(_a) {
40
- var text = _a.text, _b = _a.fillType, fillType = _b === void 0 ? 'fill' : _b, _c = _a.size, size = _c === void 0 ? 'large' : _c, fontWeight = _a.fontWeight, _d = _a.iconMode, iconMode = _d === void 0 ? 'none' : _d, _e = _a.iconFillType, iconFillType = _e === void 0 ? 'line' : _e, iconName = _a.iconName, _f = _a.colorTheme, colorTheme = _f === void 0 ? 'none' : _f, _g = _a.type, type = _g === void 0 ? 'button' : _g, _h = _a.state, state = _h === void 0 ? 'normal' : _h, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
40
+ var text = _a.text, _b = _a.fillType, fillType = _b === void 0 ? 'fill' : _b, _c = _a.size, size = _c === void 0 ? 'large' : _c, _d = _a.responsiveMode, responsiveMode = _d === void 0 ? 'none' : _d, fontWeight = _a.fontWeight, _e = _a.iconMode, iconMode = _e === void 0 ? 'none' : _e, _f = _a.iconFillType, iconFillType = _f === void 0 ? 'line' : _f, iconName = _a.iconName, _g = _a.colorTheme, colorTheme = _g === void 0 ? 'none' : _g, _h = _a.type, type = _h === void 0 ? 'button' : _h, _j = _a.state, state = _j === void 0 ? 'normal' : _j, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
41
41
  var handleClick = function () {
42
42
  if (onClick) {
43
43
  onClick();
@@ -94,7 +94,7 @@ function MainButton(_a) {
94
94
  }
95
95
  return iconFillTypeColorObj[fillType];
96
96
  };
97
- return (react_1.default.createElement(S_Button, { fillType: fillType, size: size, fontWeight: fontWeight, colorTheme: colorTheme, type: type, state: state, disabled: state === 'disabled', onClick: handleClick, onMouseDown: handleMouseDown },
97
+ return (react_1.default.createElement(S_Button, { fillType: fillType, size: size, responsiveMode: responsiveMode, fontWeight: fontWeight, colorTheme: colorTheme, type: type, state: state, disabled: state === 'disabled', onClick: handleClick, onMouseDown: handleMouseDown },
98
98
  size !== 'xsmall' && iconMode === 'left' && (react_1.default.createElement(react_1.default.Fragment, null,
99
99
  react_1.default.createElement(hybrid_1.Icon, { iconName: iconName, size: size === 'large' || size === 'rlarge' ? 20 : 16, colorKey: iconColor(), fillType: iconFillType }),
100
100
  react_1.default.createElement(hybrid_1.Spacing, { size: size === 'large' || size === 'rlarge' ? 'spacing_b' : 'spacing_a', spacingType: "width" }))),
@@ -179,7 +179,7 @@ var line = (0, styled_components_1.css)(templateObject_12 || (templateObject_12
179
179
  var state = _a.state;
180
180
  return state === 'disabled' && lineDisabled;
181
181
  });
182
- var S_Button = styled_components_1.default.button(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n cursor: ", ";\n display: inline-flex;\n justify-content: center;\n\n &:focus {\n outline: none;\n }\n ", "\n ", "\n\n & > div {\n ", ";\n }\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n cursor: ", ";\n display: inline-flex;\n justify-content: center;\n\n &:focus {\n outline: none;\n }\n ", "\n ", "\n\n & > div {\n ", ";\n }\n"])), function (_a) {
182
+ var S_Button = styled_components_1.default.button(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n cursor: ", ";\n display: inline-flex;\n justify-content: center;\n\n &:focus {\n outline: none;\n }\n ", "\n ", "\n ", ";\n\n & > div {\n ", ";\n }\n"], ["\n align-items: center;\n background-color: transparent;\n border: 1px solid transparent;\n cursor: ", ";\n display: inline-flex;\n justify-content: center;\n\n &:focus {\n outline: none;\n }\n ", "\n ", "\n ", ";\n\n & > div {\n ", ";\n }\n"])), function (_a) {
183
183
  var state = _a.state;
184
184
  return (state === 'normal' ? 'pointer' : 'default');
185
185
  }, function (_a) {
@@ -188,6 +188,9 @@ var S_Button = styled_components_1.default.button(templateObject_13 || (template
188
188
  }, function (_a) {
189
189
  var size = _a.size;
190
190
  return size && { large: large, medium: medium, small: small, xsmall: xsmall, rlarge: large }[size];
191
+ }, function (_a) {
192
+ var responsiveMode = _a.responsiveMode;
193
+ return responsiveMode === 'use' && 'width: 100%';
191
194
  }, function (_a) {
192
195
  var theme = _a.theme, fontWeight = _a.fontWeight;
193
196
  return fontWeight &&
@@ -9,9 +9,10 @@ declare type SelectProps = {
9
9
  defaultValue?: Value;
10
10
  valueArray: Value[];
11
11
  size?: 'large' | 'medium' | 'small' | 'rlarge';
12
+ responsiveMode?: 'none' | 'use';
12
13
  state?: 'normal' | 'read_only' | 'disabled';
13
14
  onChange?: (e: React.ChangeEvent<HTMLSelectElement>) => void;
14
15
  colorTheme?: 'none' | 'dark';
15
16
  };
16
- declare function Select({ hintText, defaultValue, valueArray, size, state, onChange, colorTheme }: SelectProps): JSX.Element;
17
+ declare function Select({ hintText, defaultValue, valueArray, size, responsiveMode, state, onChange, colorTheme }: SelectProps): JSX.Element;
17
18
  export default Select;
@@ -27,8 +27,8 @@ var react_1 = __importStar(require("react"));
27
27
  var styled_components_1 = __importStar(require("styled-components"));
28
28
  var hybrid_1 = require("../../../hybrid");
29
29
  function Select(_a) {
30
- var hintText = _a.hintText, defaultValue = _a.defaultValue, valueArray = _a.valueArray, _b = _a.size, size = _b === void 0 ? 'large' : _b, _c = _a.state, state = _c === void 0 ? 'normal' : _c, onChange = _a.onChange, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'none' : _d;
31
- var _e = (0, react_1.useState)(false), isFocused = _e[0], setIsFocused = _e[1];
30
+ var hintText = _a.hintText, defaultValue = _a.defaultValue, valueArray = _a.valueArray, _b = _a.size, size = _b === void 0 ? 'large' : _b, _c = _a.responsiveMode, responsiveMode = _c === void 0 ? 'none' : _c, _d = _a.state, state = _d === void 0 ? 'normal' : _d, onChange = _a.onChange, _e = _a.colorTheme, colorTheme = _e === void 0 ? 'none' : _e;
31
+ var _f = (0, react_1.useState)(false), isFocused = _f[0], setIsFocused = _f[1];
32
32
  var handleClick = function () { return setIsFocused(true); };
33
33
  var handleBlur = function () { return setIsFocused(false); };
34
34
  var handleChange = function (e) {
@@ -53,7 +53,7 @@ function Select(_a) {
53
53
  return 'ui_cpnt_select_icon_01';
54
54
  }
55
55
  };
56
- return (react_1.default.createElement(S_Box, { size: size, onClick: handleClick, onBlur: handleBlur, tabIndex: 0 },
56
+ return (react_1.default.createElement(S_Box, { size: size, responsiveMode: responsiveMode, onClick: handleClick, onBlur: handleBlur, tabIndex: 0 },
57
57
  react_1.default.createElement(S_Icon, { size: 16, fillType: "line", iconName: isFocused ? 'ic_arrow_up' : 'ic_arrow_down', colorKey: getIconColorKey() }),
58
58
  react_1.default.createElement(S_Select, { disabled: state === 'disabled' || state === 'read_only', defaultValue: (defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value) || '', state: state, colorTheme: colorTheme, onChange: handleChange },
59
59
  react_1.default.createElement("option", { disabled: true, value: (defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value) || '' }, (defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.text) || hintText),
@@ -87,7 +87,7 @@ var dark = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 =
87
87
  var theme = _a.theme;
88
88
  return theme.ui_cpnt_select_text_darktheme_enabled;
89
89
  });
90
- var S_Box = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n position: relative;\n z-index: 0;\n\n ", "\n"], ["\n position: relative;\n z-index: 0;\n\n ", "\n"])), function (_a) {
90
+ var S_Box = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n position: relative;\n z-index: 0;\n\n ", "\n ", ";\n"], ["\n position: relative;\n z-index: 0;\n\n ", "\n ", ";\n"])), function (_a) {
91
91
  var size = _a.size;
92
92
  return size &&
93
93
  {
@@ -96,6 +96,9 @@ var S_Box = styled_components_1.default.div(templateObject_6 || (templateObject_
96
96
  small: small,
97
97
  rlarge: rlarge
98
98
  }[size];
99
+ }, function (_a) {
100
+ var responsiveMode = _a.responsiveMode;
101
+ return responsiveMode === 'use' && 'width: 100%';
99
102
  });
100
103
  var S_Icon = (0, styled_components_1.default)(hybrid_1.Icon)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n position: absolute;\n right: ", ";\n top: 50%;\n transform: translateY(-50%);\n z-index: 2;\n"], ["\n position: absolute;\n right: ", ";\n top: 50%;\n transform: translateY(-50%);\n z-index: 2;\n"])), function (_a) {
101
104
  var theme = _a.theme;
@@ -3,10 +3,11 @@ import { PDSTextType } from '../../../common';
3
3
  export declare type TextButtonProps = {
4
4
  text?: PDSTextType;
5
5
  size?: 'rlarge' | 'large' | 'medium' | 'small' | 'xsmall';
6
+ responsiveMode?: 'none' | 'use';
6
7
  fontWeight?: 'bold' | 'regular';
7
8
  type?: 'submit' | 'reset' | 'button';
8
9
  state?: 'normal' | 'disabled';
9
10
  onClick?: (...args: any) => any;
10
11
  };
11
- declare function TextButton({ text, size, fontWeight, type, state, onClick, ...rest }: TextButtonProps): JSX.Element;
12
+ declare function TextButton({ text, size, responsiveMode, fontWeight, type, state, onClick, ...rest }: TextButtonProps): JSX.Element;
12
13
  export default TextButton;
@@ -54,7 +54,7 @@ var TextLabel_1 = require("../TextLabel");
54
54
  // NOTE : 기획상 아직 사용하지 않는 props
55
55
  // colorTheme?: 'none';
56
56
  function TextButton(_a) {
57
- var text = _a.text, _b = _a.size, size = _b === void 0 ? 'large' : _b, fontWeight = _a.fontWeight, _c = _a.type, type = _c === void 0 ? 'button' : _c, _d = _a.state, state = _d === void 0 ? 'normal' : _d, onClick = _a.onClick, rest = __rest(_a, ["text", "size", "fontWeight", "type", "state", "onClick"]);
57
+ var text = _a.text, _b = _a.size, size = _b === void 0 ? 'large' : _b, _c = _a.responsiveMode, responsiveMode = _c === void 0 ? 'none' : _c, fontWeight = _a.fontWeight, _d = _a.type, type = _d === void 0 ? 'button' : _d, _e = _a.state, state = _e === void 0 ? 'normal' : _e, onClick = _a.onClick, rest = __rest(_a, ["text", "size", "responsiveMode", "fontWeight", "type", "state", "onClick"]);
58
58
  var handleClick = function () {
59
59
  if (onClick) {
60
60
  onClick();
@@ -67,7 +67,7 @@ function TextButton(_a) {
67
67
  small: 'caption1Bold',
68
68
  xsmall: 'caption1Regular'
69
69
  };
70
- return (react_1.default.createElement(S_Button, __assign({}, rest, { size: size, onClick: handleClick, type: type, fontWeight: fontWeight, disabled: state === 'disabled' }),
70
+ return (react_1.default.createElement(S_Button, __assign({}, rest, { size: size, responsiveMode: responsiveMode, onClick: handleClick, type: type, fontWeight: fontWeight, disabled: state === 'disabled' }),
71
71
  react_1.default.createElement(TextLabel_1.TextLabel, { text: text, styleTheme: textStyle[size], colorTheme: state === 'disabled' ? 'sysTextTertiary' : 'usrTextBrandPrimary', btnMode: "use" })));
72
72
  }
73
73
  var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 48px;\n ", ";\n"], ["\n height: 48px;\n ", ";\n"])), function (_a) {
@@ -77,7 +77,7 @@ var large = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 =
77
77
  var medium = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 40px;\n"], ["\n height: 40px;\n"])));
78
78
  var small = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 32px;\n"], ["\n height: 32px;\n"])));
79
79
  var xsmall = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 24px;\n"], ["\n height: 24px;\n"])));
80
- 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 border-radius: 8px;\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 align-items: center;\n background-color: transparent;\n border: none;\n border-radius: 8px;\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"])), function (_a) {
80
+ 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 border-radius: 8px;\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 border-radius: 8px;\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) {
81
81
  var state = _a.state;
82
82
  return (state === 'normal' ? 'pointer' : 'default');
83
83
  }, function (_a) {
@@ -103,6 +103,9 @@ var S_Button = styled_components_1.default.button(templateObject_5 || (templateO
103
103
  bold: "font-weight: " + theme.fontWeight.bold,
104
104
  regular: "font-weight: " + theme.fontWeight.normal
105
105
  }[fontWeight];
106
+ }, function (_a) {
107
+ var responsiveMode = _a.responsiveMode;
108
+ return responsiveMode === 'use' && 'width: 100%';
106
109
  });
107
110
  exports.default = TextButton;
108
111
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
@@ -11,6 +11,7 @@ export declare type TextFieldProps = {
11
11
  validationPoint?: 'onChange' | 'onBlur';
12
12
  preventBlankMode?: 'none' | 'trim' | 'all';
13
13
  size?: 'small' | 'medium' | 'large' | 'rlarge';
14
+ responsiveMode?: 'none' | 'use';
14
15
  textLineType?: 'single' | 'multi' | 'auto';
15
16
  multiRows?: number;
16
17
  autoMinRows?: number;
@@ -29,9 +30,9 @@ export declare type TextFieldProps = {
29
30
  onChange?: (e: React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>) => void;
30
31
  onClickIBtn1?: () => void;
31
32
  onClickIBtn2?: () => void;
32
- onFocus?: () => void;
33
+ onFocus?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
33
34
  onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLTextAreaElement>) => void;
34
35
  onTarget?: () => void;
35
36
  };
36
- declare function TextField({ name, hintText, defaultText, validation, validationPoint, preventBlankMode, size, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, colorTheme, max, maxLength, min, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onTarget }: TextFieldProps): JSX.Element;
37
+ declare function TextField({ name, hintText, defaultText, validation, validationPoint, preventBlankMode, size, responsiveMode, textLineType, multiRows, autoMinRows, autoMaxRows, inputType, state, iBtn1IconName, iBtn1IconFillType, iBtn2IconName, iBtn2IconFillType, colorTheme, max, maxLength, min, onBlur, onChange, onClickIBtn1, onClickIBtn2, onFocus, onKeyUp, onTarget }: TextFieldProps): JSX.Element;
37
38
  export default TextField;
@@ -32,7 +32,7 @@ var components_1 = require("../../common/components");
32
32
  var IconButton_1 = require("../IconButton");
33
33
  function TextField(_a) {
34
34
  var _b;
35
- var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _c = _a.validationPoint, validationPoint = _c === void 0 ? 'onBlur' : _c, _d = _a.preventBlankMode, preventBlankMode = _d === void 0 ? 'none' : _d, _e = _a.size, size = _e === void 0 ? 'large' : _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, iBtn1IconName = _a.iBtn1IconName, _l = _a.iBtn1IconFillType, iBtn1IconFillType = _l === void 0 ? 'line' : _l, iBtn2IconName = _a.iBtn2IconName, _m = _a.iBtn2IconFillType, iBtn2IconFillType = _m === void 0 ? 'line' : _m, _o = _a.colorTheme, colorTheme = _o === void 0 ? 'none' : _o, max = _a.max, maxLength = _a.maxLength, min = _a.min, onBlur = _a.onBlur, onChange = _a.onChange, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onFocus = _a.onFocus, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget;
35
+ var name = _a.name, hintText = _a.hintText, defaultText = _a.defaultText, validation = _a.validation, _c = _a.validationPoint, validationPoint = _c === void 0 ? 'onBlur' : _c, _d = _a.preventBlankMode, preventBlankMode = _d === void 0 ? 'none' : _d, _e = _a.size, size = _e === void 0 ? 'large' : _e, _f = _a.responsiveMode, responsiveMode = _f === void 0 ? 'none' : _f, _g = _a.textLineType, textLineType = _g === void 0 ? 'single' : _g, _h = _a.multiRows, multiRows = _h === void 0 ? 8 : _h, _j = _a.autoMinRows, autoMinRows = _j === void 0 ? 8 : _j, autoMaxRows = _a.autoMaxRows, _k = _a.inputType, inputType = _k === void 0 ? 'text' : _k, _l = _a.state, state = _l === void 0 ? 'normal' : _l, iBtn1IconName = _a.iBtn1IconName, _m = _a.iBtn1IconFillType, iBtn1IconFillType = _m === void 0 ? 'line' : _m, iBtn2IconName = _a.iBtn2IconName, _o = _a.iBtn2IconFillType, iBtn2IconFillType = _o === void 0 ? 'line' : _o, _p = _a.colorTheme, colorTheme = _p === void 0 ? 'none' : _p, max = _a.max, maxLength = _a.maxLength, min = _a.min, onBlur = _a.onBlur, onChange = _a.onChange, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2, onFocus = _a.onFocus, onKeyUp = _a.onKeyUp, onTarget = _a.onTarget;
36
36
  var iconThemeColorNoneObj = {
37
37
  normal: 'ui_cpnt_button_icon_default',
38
38
  read_only: 'ui_cpnt_button_icon_default',
@@ -44,9 +44,9 @@ function TextField(_a) {
44
44
  disabled: 'ui_cpnt_textfield_icon_darktheme_disabled'
45
45
  };
46
46
  var t = (0, react_i18next_1.useTranslation)('translation').t;
47
- var _p = (0, react_1.useState)(false), isFocused = _p[0], setIsFocused = _p[1];
48
- var _q = (0, react_hook_form_1.useFormContext)(), register = _q.register, trigger = _q.trigger, errors = _q.formState.errors;
49
- var _r = register(name, validation), validateOnChange = _r.onChange, validateOnBlur = _r.onBlur;
47
+ var _q = (0, react_1.useState)(false), isFocused = _q[0], setIsFocused = _q[1];
48
+ var _r = (0, react_hook_form_1.useFormContext)(), register = _r.register, trigger = _r.trigger, errors = _r.formState.errors;
49
+ var _s = register(name, validation), validateOnChange = _s.onChange, validateOnBlur = _s.onBlur;
50
50
  var isError = Object.keys(errors).some(function (error) { return error === name; });
51
51
  var handleClickIBtn1 = function () {
52
52
  if (onClickIBtn1) {
@@ -58,12 +58,12 @@ function TextField(_a) {
58
58
  onClickIBtn2();
59
59
  }
60
60
  };
61
- function handleFocus() {
61
+ function handleFocus(e) {
62
62
  if (state !== 'read_only') {
63
63
  setIsFocused(true);
64
64
  }
65
65
  if (onFocus) {
66
- onFocus();
66
+ onFocus(e);
67
67
  }
68
68
  }
69
69
  function handleTarget() {
@@ -117,8 +117,8 @@ function TextField(_a) {
117
117
  }[colorTheme], iconFillType: iBtn1IconFillType === 'fill' ? 'fill' : 'line', state: state === 'disabled' ? 'disabled' : 'normal', onClick: handleClickIBtn1 })))));
118
118
  }
119
119
  };
120
- return (react_1.default.createElement(react_1.default.Fragment, null,
121
- react_1.default.createElement(S_TextFieldWrapper, { size: size, textLineType: textLineType, isFocused: isFocused, isError: isError, state: state, colorTheme: colorTheme }, S_TextField()),
120
+ return (react_1.default.createElement("div", null,
121
+ react_1.default.createElement(S_TextFieldWrapper, { size: size, responsiveMode: responsiveMode, textLineType: textLineType, isFocused: isFocused, isError: isError, state: state, colorTheme: colorTheme }, S_TextField()),
122
122
  ((_b = errors[name]) === null || _b === void 0 ? void 0 : _b.message) && react_1.default.createElement(S_Error, null, t(errors[name].message))));
123
123
  }
124
124
  var multi = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: auto;\n padding: 14px;\n"], ["\n height: auto;\n padding: 14px;\n"])));
@@ -213,7 +213,7 @@ var dark_disabled = (0, styled_components_1.css)(templateObject_11 || (templateO
213
213
  var theme = _a.theme;
214
214
  return theme.ui_cpnt_textfield_border_darktheme_normal;
215
215
  });
216
- var S_TextFieldWrapper = styled_components_1.default.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n align-items: center;\n border-radius: 8px;\n box-sizing: border-box;\n display: flex;\n ", ";\n ", ";\n ", ";\n"], ["\n align-items: center;\n border-radius: 8px;\n box-sizing: border-box;\n display: flex;\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
216
+ var S_TextFieldWrapper = styled_components_1.default.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n align-items: center;\n border-radius: 8px;\n box-sizing: border-box;\n display: flex;\n ", ";\n ", ";\n ", ";\n ", ";\n"], ["\n align-items: center;\n border-radius: 8px;\n box-sizing: border-box;\n display: flex;\n ", ";\n ", ";\n ", ";\n ", ";\n"])), function (_a) {
217
217
  var size = _a.size;
218
218
  return size &&
219
219
  {
@@ -240,6 +240,9 @@ var S_TextFieldWrapper = styled_components_1.default.div(templateObject_12 || (t
240
240
  read_only: dark_read_only,
241
241
  disabled: dark_disabled
242
242
  }[state];
243
+ }, function (_a) {
244
+ var responsiveMode = _a.responsiveMode;
245
+ return responsiveMode === 'use' && 'width: 100%';
243
246
  });
244
247
  var S_IconBox = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
245
248
  var S_Error = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n text-align: left;\n"], ["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n text-align: left;\n"])), function (_a) {
@@ -4,6 +4,7 @@ declare type UploadMainButtonProps = {
4
4
  text?: PDSTextType;
5
5
  fillType?: 'fill' | 'line';
6
6
  size?: 'large' | 'medium' | 'small' | 'xsmall' | 'rlarge';
7
+ responsiveMode?: 'none' | 'use';
7
8
  fontWeight?: 'bold' | 'regular';
8
9
  iconMode?: 'none' | 'left' | 'right';
9
10
  iconFillType?: 'fill' | 'line';
@@ -14,5 +15,5 @@ declare type UploadMainButtonProps = {
14
15
  multipleMode?: 'none' | 'use';
15
16
  onClick?: (e: React.ChangeEvent<HTMLInputElement>) => void;
16
17
  };
17
- declare function UploadMainButton({ text, fillType, size, fontWeight, iconMode, iconFillType, iconName, colorTheme, state, accept, multipleMode, onClick }: UploadMainButtonProps): JSX.Element;
18
+ declare function UploadMainButton({ text, fillType, size, responsiveMode, fontWeight, iconMode, iconFillType, iconName, colorTheme, state, accept, multipleMode, onClick }: UploadMainButtonProps): JSX.Element;
18
19
  export default UploadMainButton;