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.
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +1 -1
- package/dist/src/desktop/components/ReactionButton/ReactionButton.d.ts +3 -3
- package/dist/src/desktop/components/ReactionButton/ReactionButton.js +4 -4
- package/dist/src/mobile/components/ReactionButton/ReactionButton.d.ts +3 -3
- package/dist/src/mobile/components/ReactionButton/ReactionButton.js +4 -4
- package/package.json +1 -1
- package/release-note.md +4 -12
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
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
|
|
9
|
-
onMouseDown?: (e
|
|
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
|
-
|
|
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
|
|
9
|
-
onMouseDown?: (e
|
|
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
package/release-note.md
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
# PDS-DEV-KIT-WEB Release Notes
|
|
2
|
-
## [v1.4.
|
|
3
|
-
|
|
4
|
-
### Type
|
|
5
|
-
* PDSTabItemOption 내부 onClick type 변경
|
|
2
|
+
## [v1.4.60]
|
|
6
3
|
|
|
7
4
|
### Component
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* 내부에서 쓰인 PDSTabItemOption 내부 onClick type 변경
|
|
12
|
-
* UserDesktopTabBar
|
|
13
|
-
* 내부에서 쓰인 PDSTabItemOption 내부 onClick type 변경
|
|
14
|
-
* MobileTabBar
|
|
15
|
-
* 내부에서 쓰인 PDSTabItemOption 내부 onClick type 변경
|
|
5
|
+
* ReactionButton
|
|
6
|
+
* onClick type 변경
|
|
7
|
+
* onMouseDown type 변경
|