pds-dev-kit-web 1.4.59 → 1.4.61

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.
@@ -1,12 +1,12 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { PDSTextType } from '../../../common';
3
3
  export declare type ReactionButtonProps = {
4
4
  text: PDSTextType;
5
5
  iconName?: 'ic_thumb_up' | 'ic_heart' | 'ic_thumb_down' | 'ic_reply';
6
6
  status?: 'default' | 'select';
7
7
  colorTheme?: 'none' | 'dark';
8
- onClick?: (e?: Event, ...args: any) => void;
9
- onMouseDown?: (e?: Event, ...args: any) => void;
8
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
9
+ onMouseDown?: (e: React.MouseEvent<HTMLButtonElement>) => void;
10
10
  };
11
11
  declare function ReactionButton({ text, iconName, status, colorTheme, onClick, onMouseDown }: ReactionButtonProps): JSX.Element;
12
12
  export default ReactionButton;
@@ -32,14 +32,14 @@ var hybrid_1 = require("../../../hybrid");
32
32
  var TextLabel_1 = require("../TextLabel");
33
33
  function ReactionButton(_a) {
34
34
  var text = _a.text, _b = _a.iconName, iconName = _b === void 0 ? 'ic_thumb_up' : _b, _c = _a.status, status = _c === void 0 ? 'default' : _c, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'none' : _d, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
35
- var handleClick = function () {
35
+ var handleClick = function (e) {
36
36
  if (onClick) {
37
- onClick();
37
+ onClick(e);
38
38
  }
39
39
  };
40
- var handleMouseDown = function () {
40
+ var handleMouseDown = function (e) {
41
41
  if (onMouseDown) {
42
- onMouseDown();
42
+ onMouseDown(e);
43
43
  }
44
44
  };
45
45
  var IconColorByStatus = function () {
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FillIconNameKeys, LineIconNameKeys, PDSTextType, UiColors } from '../../../common';
3
3
  declare type Props = {
4
4
  titleType?: 'text' | 'profile' | 'image';
@@ -18,9 +18,9 @@ declare type Props = {
18
18
  iBtn1Type?: 'submit' | 'reset' | 'button';
19
19
  iBtn2State?: 'normal' | 'disabled';
20
20
  iBtn2Type?: 'submit' | 'reset' | 'button';
21
- onClickLeftBtn?: () => void;
22
- onClickIBtn1?: () => void;
23
- onClickIBtn2?: () => void;
21
+ onClickLeftBtn?: (e: React.MouseEvent<HTMLButtonElement>) => void;
22
+ onClickIBtn1?: (e: React.MouseEvent<HTMLButtonElement>) => void;
23
+ onClickIBtn2?: (e: React.MouseEvent<HTMLButtonElement>) => void;
24
24
  };
25
25
  declare function MobileHeaderBar({ titleType, titleText, captionText, leftBtnMode, displayType, iBtn1IconName, iBtn1IconFillType, iBtn1IconColorKey, iBtn2IconName, iBtn2IconFillType, iBtn2IconColorKey, dividerMode, imageSrc, iBtn1State, iBtn1Type, iBtn2State, iBtn2Type, onClickLeftBtn, onClickIBtn1, onClickIBtn2 }: Props): JSX.Element;
26
26
  export default MobileHeaderBar;
@@ -14,19 +14,19 @@ var IconButton_1 = require("../IconButton");
14
14
  var TextLabel_1 = require("../TextLabel");
15
15
  function MobileHeaderBar(_a) {
16
16
  var _b = _a.titleType, titleType = _b === void 0 ? 'text' : _b, titleText = _a.titleText, captionText = _a.captionText, _c = _a.leftBtnMode, leftBtnMode = _c === void 0 ? 'back' : _c, _d = _a.displayType, displayType = _d === void 0 ? 'none' : _d, iBtn1IconName = _a.iBtn1IconName, _e = _a.iBtn1IconFillType, iBtn1IconFillType = _e === void 0 ? 'line' : _e, _f = _a.iBtn1IconColorKey, iBtn1IconColorKey = _f === void 0 ? 'ui_cpnt_button_icon_enabled' : _f, iBtn2IconName = _a.iBtn2IconName, _g = _a.iBtn2IconFillType, iBtn2IconFillType = _g === void 0 ? 'line' : _g, _h = _a.iBtn2IconColorKey, iBtn2IconColorKey = _h === void 0 ? 'ui_cpnt_button_icon_enabled' : _h, _j = _a.dividerMode, dividerMode = _j === void 0 ? 'none' : _j, imageSrc = _a.imageSrc, _k = _a.iBtn1State, iBtn1State = _k === void 0 ? 'normal' : _k, _l = _a.iBtn1Type, iBtn1Type = _l === void 0 ? 'button' : _l, _m = _a.iBtn2State, iBtn2State = _m === void 0 ? 'normal' : _m, _o = _a.iBtn2Type, iBtn2Type = _o === void 0 ? 'button' : _o, onClickLeftBtn = _a.onClickLeftBtn, onClickIBtn1 = _a.onClickIBtn1, onClickIBtn2 = _a.onClickIBtn2;
17
- var handleClickLeftBtn = function () {
17
+ var handleClickLeftBtn = function (e) {
18
18
  if (onClickLeftBtn) {
19
- onClickLeftBtn();
19
+ onClickLeftBtn(e);
20
20
  }
21
21
  };
22
- var handleClickIBtn1 = function () {
22
+ var handleClickIBtn1 = function (e) {
23
23
  if (onClickIBtn1) {
24
- onClickIBtn1();
24
+ onClickIBtn1(e);
25
25
  }
26
26
  };
27
- var handleClickIBtn2 = function () {
27
+ var handleClickIBtn2 = function (e) {
28
28
  if (onClickIBtn2) {
29
- onClickIBtn2();
29
+ onClickIBtn2(e);
30
30
  }
31
31
  };
32
32
  var getLeftIconName = function () {
@@ -1,12 +1,12 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { PDSTextType } from '../../../common';
3
3
  export declare type ReactionButtonProps = {
4
4
  text: PDSTextType;
5
5
  iconName?: 'ic_thumb_up' | 'ic_heart' | 'ic_thumb_down' | 'ic_reply';
6
6
  status?: 'default' | 'select';
7
7
  colorTheme?: 'none' | 'dark';
8
- onClick?: (e?: Event, ...args: any) => void;
9
- onMouseDown?: (e?: Event, ...args: any) => void;
8
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
9
+ onMouseDown?: (e: React.MouseEvent<HTMLButtonElement>) => void;
10
10
  };
11
11
  declare function ReactionButton({ text, iconName, status, colorTheme, onClick, onMouseDown }: ReactionButtonProps): JSX.Element;
12
12
  export default ReactionButton;
@@ -32,14 +32,14 @@ var hybrid_1 = require("../../../hybrid");
32
32
  var TextLabel_1 = require("../TextLabel");
33
33
  function ReactionButton(_a) {
34
34
  var text = _a.text, _b = _a.iconName, iconName = _b === void 0 ? 'ic_thumb_up' : _b, _c = _a.status, status = _c === void 0 ? 'default' : _c, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'none' : _d, onClick = _a.onClick, onMouseDown = _a.onMouseDown;
35
- var handleClick = function () {
35
+ var handleClick = function (e) {
36
36
  if (onClick) {
37
- onClick();
37
+ onClick(e);
38
38
  }
39
39
  };
40
- var handleMouseDown = function () {
40
+ var handleMouseDown = function (e) {
41
41
  if (onMouseDown) {
42
- onMouseDown();
42
+ onMouseDown(e);
43
43
  }
44
44
  };
45
45
  var IconColorByStatus = function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "1.4.59",
3
+ "version": "1.4.61",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v1.4.59]
2
+ ## [v1.4.61]
3
3
 
4
- ### Color
5
- * 컬러 키 값 22.09.27 15시 09분 기준 싱크
4
+ ### Component
5
+ * MobileHeaderBar
6
+ * onClickLeftBtn type 변경
7
+ * onClickIBtn1 type 변경
8
+ * onClickIBtn2 type 변경