pds-dev-kit-web 1.4.59 → 1.4.60

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,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.60",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v1.4.59]
2
+ ## [v1.4.60]
3
3
 
4
- ### Color
5
- * 컬러 키 값 22.09.27 15시 09분 기준 싱크
4
+ ### Component
5
+ * ReactionButton
6
+ * onClick type 변경
7
+ * onMouseDown type 변경