pds-dev-kit-web 1.4.58 → 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.
@@ -180,5 +180,5 @@
180
180
  "sys_text_lighttone_grey_01": "grey900",
181
181
  "sys_widget_lighttone_primary_01": "blue500",
182
182
  "sys_text_lighttone_grey_02": "grey500",
183
- "sys_component_base_09": "darygrey70"
183
+ "sys_component_base_09": "darkgrey70"
184
184
  }
@@ -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.58",
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,15 +1,7 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v1.4.58]
3
-
4
- ### Type
5
- * PDSTabItemOption 내부 onClick type 변경
2
+ ## [v1.4.60]
6
3
 
7
4
  ### Component
8
- * DesktopTabBar
9
- * 내부에서 쓰인 PDSTabItemOption 내부 onClick type 변경
10
- * UserDesktopSideTab
11
- * 내부에서 쓰인 PDSTabItemOption 내부 onClick type 변경
12
- * UserDesktopTabBar
13
- * 내부에서 쓰인 PDSTabItemOption 내부 onClick type 변경
14
- * MobileTabBar
15
- * 내부에서 쓰인 PDSTabItemOption 내부 onClick type 변경
5
+ * ReactionButton
6
+ * onClick type 변경
7
+ * onMouseDown type 변경