pds-dev-kit-web 1.4.55 → 1.4.56

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.
@@ -252,7 +252,7 @@ var S_S_TextFieldBaseWrapper = styled_components_1.default.div(templateObject_10
252
252
  var customWidth = _a.customWidth;
253
253
  return customWidth && "width: " + customWidth + ";";
254
254
  });
255
- var S_Error = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n margin-right: ", ";\n text-align: left;\n"], ["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n margin-right: ", ";\n text-align: left;\n"])), function (_a) {
255
+ var S_Error = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n margin-right: ", ";\n text-align: left;\n white-space: pre-wrap;\n"], ["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n margin-right: ", ";\n text-align: left;\n white-space: pre-wrap;\n"])), function (_a) {
256
256
  var theme = _a.theme;
257
257
  return theme.ui_cpnt_textfield_text_error;
258
258
  }, function (_a) {
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FillIconNameKeys, LineIconNameKeys, PDSTextType } from '../../../common';
3
3
  export declare type MainButtonProps = {
4
4
  text?: PDSTextType;
@@ -14,8 +14,8 @@ export declare type MainButtonProps = {
14
14
  colorTheme?: 'none' | 'line1' | 'line2' | 'line3';
15
15
  type?: 'button' | 'submit';
16
16
  state?: 'normal' | 'disabled';
17
- onClick?: (...args: any) => any;
18
- onMouseDown?: (...args: any) => any;
17
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
18
+ onMouseDown?: (e: React.MouseEvent<HTMLButtonElement>) => void;
19
19
  };
20
20
  declare function MainButton({ text, shapeType, fillType, styleTheme, size, responsiveMode, fontWeight, iconMode, iconFillType, iconName, colorTheme, type, state, onClick, onMouseDown }: MainButtonProps): JSX.Element;
21
21
  export default MainButton;
@@ -37,14 +37,14 @@ var TextLabel_1 = require("../TextLabel");
37
37
  // shadow?: 'hidden' | 'visible';
38
38
  function MainButton(_a) {
39
39
  var text = _a.text, _b = _a.shapeType, shapeType = _b === void 0 ? 'round' : _b, fillType = _a.fillType, _c = _a.styleTheme, styleTheme = _c === void 0 ? 'primary' : _c, _d = _a.size, size = _d === void 0 ? 'large' : _d, _e = _a.responsiveMode, responsiveMode = _e === void 0 ? 'none' : _e, fontWeight = _a.fontWeight, _f = _a.iconMode, iconMode = _f === void 0 ? 'none' : _f, _g = _a.iconFillType, iconFillType = _g === void 0 ? 'line' : _g, iconName = _a.iconName, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, _j = _a.type, type = _j === void 0 ? 'button' : _j, _k = _a.state, state = _k === void 0 ? 'normal' : _k, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
40
- var handleClick = function () {
40
+ var handleClick = function (e) {
41
41
  if (onClick) {
42
- onClick();
42
+ onClick(e);
43
43
  }
44
44
  };
45
- var handleMouseDown = function () {
45
+ var handleMouseDown = function (e) {
46
46
  if (onMouseDown) {
47
- onMouseDown();
47
+ onMouseDown(e);
48
48
  }
49
49
  };
50
50
  var textStyle = {
@@ -265,7 +265,7 @@ var S_TextFieldWrapper = styled_components_1.default.div(templateObject_13 || (t
265
265
  return customWidth && "width: " + customWidth + ";";
266
266
  });
267
267
  var S_IconBox = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
268
- var S_Error = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __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) {
268
+ var S_Error = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n text-align: left;\n white-space: pre-wrap;\n"], ["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n text-align: left;\n white-space: pre-wrap;\n"])), function (_a) {
269
269
  var theme = _a.theme, colorTheme = _a.colorTheme;
270
270
  return colorTheme === 'none'
271
271
  ? theme.ui_cpnt_textfield_text_error
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FillIconNameKeys, LineIconNameKeys, PDSTextType } from '../../../common';
3
3
  export declare type MainButtonProps = {
4
4
  text?: PDSTextType;
@@ -14,8 +14,8 @@ export declare type MainButtonProps = {
14
14
  colorTheme?: 'none' | 'line1' | 'line2' | 'line3';
15
15
  type?: 'button' | 'submit';
16
16
  state?: 'normal' | 'disabled';
17
- onClick?: (...args: any) => any;
18
- onMouseDown?: (...args: any) => any;
17
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
18
+ onMouseDown?: (e: React.MouseEvent<HTMLButtonElement>) => void;
19
19
  };
20
20
  declare function MainButton({ text, shapeType, fillType, styleTheme, size, responsiveMode, fontWeight, iconMode, iconFillType, iconName, colorTheme, type, state, onClick, onMouseDown }: MainButtonProps): JSX.Element;
21
21
  export default MainButton;
@@ -37,14 +37,14 @@ var TextLabel_1 = require("../TextLabel");
37
37
  // shadow?: 'hidden' | 'visible';
38
38
  function MainButton(_a) {
39
39
  var text = _a.text, _b = _a.shapeType, shapeType = _b === void 0 ? 'round' : _b, fillType = _a.fillType, _c = _a.styleTheme, styleTheme = _c === void 0 ? 'primary' : _c, _d = _a.size, size = _d === void 0 ? 'large' : _d, _e = _a.responsiveMode, responsiveMode = _e === void 0 ? 'none' : _e, fontWeight = _a.fontWeight, _f = _a.iconMode, iconMode = _f === void 0 ? 'none' : _f, _g = _a.iconFillType, iconFillType = _g === void 0 ? 'line' : _g, iconName = _a.iconName, _h = _a.colorTheme, colorTheme = _h === void 0 ? 'none' : _h, _j = _a.type, type = _j === void 0 ? 'button' : _j, _k = _a.state, state = _k === void 0 ? 'normal' : _k, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
40
- var handleClick = function () {
40
+ var handleClick = function (e) {
41
41
  if (onClick) {
42
- onClick();
42
+ onClick(e);
43
43
  }
44
44
  };
45
- var handleMouseDown = function () {
45
+ var handleMouseDown = function (e) {
46
46
  if (onMouseDown) {
47
- onMouseDown();
47
+ onMouseDown(e);
48
48
  }
49
49
  };
50
50
  var textStyle = {
@@ -262,7 +262,7 @@ var S_TextFieldWrapper = styled_components_1.default.div(templateObject_13 || (t
262
262
  return customWidth && "width: " + customWidth + ";";
263
263
  });
264
264
  var S_IconBox = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
265
- var S_Error = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __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) {
265
+ var S_Error = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n text-align: left;\n white-space: pre-wrap;\n"], ["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n margin-top: ", ";\n text-align: left;\n white-space: pre-wrap;\n"])), function (_a) {
266
266
  var theme = _a.theme, colorTheme = _a.colorTheme;
267
267
  return colorTheme === 'none'
268
268
  ? theme.ui_cpnt_textfield_text_error
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "1.4.55",
3
+ "version": "1.4.56",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,7 +1,11 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v1.4.55]
2
+ ## [v1.4.56]
3
3
 
4
4
  ### Component
5
- * DynamicDesktopNavBar
6
- * 내부 UserProfile 영역에 leftIconButton prop추가
7
- * 내부 UserProfile 영역에 overrideUserProfile prop추가
5
+ * EditApplyTextField
6
+ * error message 두줄 표시도 가능하게 수정
7
+ * MainButton
8
+ * onClick type 변경
9
+ * onMouseDown type 변경
10
+ * TextField
11
+ * error message 두줄 표시도 가능하게 수정