pds-dev-kit-web 1.5.2 → 1.5.3

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,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { PDSTextType } from '../../../common';
3
3
  export declare type CardProps = {
4
4
  titleText?: PDSTextType;
@@ -6,7 +6,7 @@ export declare type CardProps = {
6
6
  imageIconMode?: 'none' | 'image' | 'icon';
7
7
  imageSrc?: string;
8
8
  selectState?: 'unselected' | 'selected';
9
- onClick?: () => void;
9
+ onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
10
10
  };
11
11
  declare function Card({ titleText, descText, imageIconMode, imageSrc, selectState, onClick }: CardProps): JSX.Element;
12
12
  export default Card;
@@ -13,9 +13,9 @@ var hybrid_1 = require("../../../hybrid");
13
13
  var TextLabel_1 = require("../TextLabel");
14
14
  function Card(_a) {
15
15
  var titleText = _a.titleText, descText = _a.descText, _b = _a.imageIconMode, imageIconMode = _b === void 0 ? 'none' : _b, imageSrc = _a.imageSrc, _c = _a.selectState, selectState = _c === void 0 ? 'unselected' : _c, onClick = _a.onClick;
16
- var handleClick = function () {
16
+ var handleClick = function (e) {
17
17
  if (onClick) {
18
- onClick();
18
+ onClick(e);
19
19
  }
20
20
  };
21
21
  return (react_1.default.createElement(S_CardGroups, { selectState: selectState, onClick: handleClick },
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FillIconNameKeys, LineIconNameKeys, PDSTextType, PDSValueOption, UiColors } from '../../../common';
3
3
  declare type DisplayType = 'category_choice' | 'filter_single' | 'filter_multi' | 'removable' | 'label' | 'time' | 'information';
4
4
  export declare type ChipProps = {
@@ -11,7 +11,7 @@ export declare type ChipProps = {
11
11
  overrideBackgroundColorKey?: UiColors;
12
12
  value?: PDSValueOption['value'];
13
13
  id?: PDSValueOption['value'];
14
- onClickChip?: () => void;
14
+ onClickChip?: (e: React.MouseEvent<HTMLDivElement>) => void;
15
15
  onClickXMarkIcon?: () => void;
16
16
  /** @deprecated value 필드를 대신 사용하세요. */
17
17
  activeChipId?: string | number;
@@ -42,9 +42,9 @@ function Chip(_a) {
42
42
  }
43
43
  return false;
44
44
  }, [activeChipId, chipId, value, id]);
45
- var handleClickChip = function () {
45
+ var handleClickChip = function (e) {
46
46
  if (onClickChip) {
47
- onClickChip();
47
+ onClickChip(e);
48
48
  }
49
49
  };
50
50
  var handleClickXMarkIcon = function (e) {
@@ -14,9 +14,9 @@ declare type DesktopAlertDialogProps = {
14
14
  tBtn1Type?: 'button' | 'submit';
15
15
  tBtn2Type?: 'button' | 'submit';
16
16
  tBtn3Type?: 'button' | 'submit';
17
- onClickTBtn1?: () => any;
18
- onClickTBtn2?: () => any;
19
- onClickTBtn3?: () => any;
17
+ onClickTBtn1?: () => void;
18
+ onClickTBtn2?: () => void;
19
+ onClickTBtn3?: () => void;
20
20
  };
21
21
  declare function DesktopAlertDialog({ iconMode, titleText, contentText, btnMode, tBtn1Text, tBtn2Text, tBtn3Text, tBtn1State, tBtn2State, tBtn3State, tBtn1Type, tBtn2Type, tBtn3Type, onClickTBtn1, onClickTBtn2, onClickTBtn3 }: DesktopAlertDialogProps): React.ReactPortal;
22
22
  export default DesktopAlertDialog;
@@ -9,8 +9,8 @@ export declare type FloatingActionButtonProps = {
9
9
  iconName?: FillIconNameKeys | LineIconNameKeys;
10
10
  colorTheme?: 'none' | 'theme1' | 'theme2' | 'theme3';
11
11
  state?: 'normal' | 'disabled';
12
- onClick?: (e: React.MouseEvent<HTMLButtonElement>) => any;
13
- onMouseDown?: (e: React.MouseEvent<HTMLButtonElement>) => any;
12
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
13
+ onMouseDown?: (e: React.MouseEvent<HTMLButtonElement>) => void;
14
14
  };
15
15
  declare function FloatingActionButton({ text, displayType, size, fontWeight, iconFillType, iconName, colorTheme, state, onClick, onMouseDown }: FloatingActionButtonProps): JSX.Element;
16
16
  export default FloatingActionButton;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { PDSTextType } from '../../../common';
3
3
  export declare type CardProps = {
4
4
  titleText?: PDSTextType;
@@ -6,7 +6,7 @@ export declare type CardProps = {
6
6
  imageIconMode?: 'none' | 'image' | 'icon';
7
7
  imageSrc?: string;
8
8
  selectState?: 'unselected' | 'selected';
9
- onClick?: () => void;
9
+ onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
10
10
  };
11
11
  declare function Card({ titleText, descText, imageIconMode, imageSrc, selectState, onClick }: CardProps): JSX.Element;
12
12
  export default Card;
@@ -13,9 +13,9 @@ var hybrid_1 = require("../../../hybrid");
13
13
  var TextLabel_1 = require("../TextLabel");
14
14
  function Card(_a) {
15
15
  var titleText = _a.titleText, descText = _a.descText, _b = _a.imageIconMode, imageIconMode = _b === void 0 ? 'none' : _b, imageSrc = _a.imageSrc, _c = _a.selectState, selectState = _c === void 0 ? 'unselected' : _c, onClick = _a.onClick;
16
- var handleClick = function () {
16
+ var handleClick = function (e) {
17
17
  if (onClick) {
18
- onClick();
18
+ onClick(e);
19
19
  }
20
20
  };
21
21
  return (react_1.default.createElement(S_CardGroups, { selectState: selectState, onClick: handleClick },
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FillIconNameKeys, LineIconNameKeys, PDSTextType, PDSValueOption, UiColors } from '../../../common';
3
3
  declare type DisplayType = 'category_choice' | 'filter_single' | 'filter_multi' | 'removable' | 'label' | 'time' | 'information';
4
4
  export declare type ChipProps = {
@@ -11,7 +11,7 @@ export declare type ChipProps = {
11
11
  overrideBackgroundColorKey?: UiColors;
12
12
  value?: PDSValueOption['value'];
13
13
  id?: PDSValueOption['value'];
14
- onClickChip?: () => void;
14
+ onClickChip?: (e: React.MouseEvent<HTMLDivElement>) => void;
15
15
  onClickXMarkIcon?: () => void;
16
16
  /** @deprecated value 필드를 대신 사용하세요. */
17
17
  activeChipId?: string | number;
@@ -42,9 +42,9 @@ function Chip(_a) {
42
42
  }
43
43
  return false;
44
44
  }, [activeChipId, chipId, value, id]);
45
- var handleClickChip = function () {
45
+ var handleClickChip = function (e) {
46
46
  if (onClickChip) {
47
- onClickChip();
47
+ onClickChip(e);
48
48
  }
49
49
  };
50
50
  var handleClickXMarkIcon = function (e) {
@@ -15,9 +15,9 @@ declare type MobileAlertDialogProps = {
15
15
  tBtn1Type?: 'button' | 'submit';
16
16
  tBtn2Type?: 'button' | 'submit';
17
17
  tBtn3Type?: 'button' | 'submit';
18
- onClickTBtn1?: () => any;
19
- onClickTBtn2?: () => any;
20
- onClickTBtn3?: () => any;
18
+ onClickTBtn1?: () => void;
19
+ onClickTBtn2?: () => void;
20
+ onClickTBtn3?: () => void;
21
21
  };
22
22
  declare function MobileAlertDialog({ iconMode, titleText, contentText, btnStack, btnMode, tBtn1Text, tBtn2Text, tBtn3Text, tBtn1State, tBtn2State, tBtn3State, tBtn1Type, tBtn2Type, tBtn3Type, onClickTBtn1, onClickTBtn2, onClickTBtn3 }: MobileAlertDialogProps): React.ReactPortal;
23
23
  export default MobileAlertDialog;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,6 +1,19 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v1.5.2]
2
+ ## [v1.5.3]
3
3
 
4
4
  ### Component
5
- * Icon
6
- * ic_bell_notification line asset의 모양 변경
5
+ * Card
6
+ * onClick 타입 변경
7
+ * Chip
8
+ * onClickChip 타입 변경
9
+ * DesktopAlertDialog
10
+ * onClickTbtn1 타입 변경
11
+ * onClickTbtn2 타입 변경
12
+ * onClickTbtn3 타입 변경
13
+ * FloatingActionButton
14
+ * onClick 타입 변경
15
+ * onMouseDown 타입 변경
16
+ * MobileAlertDialog
17
+ * onClickTbtn1 타입 변경
18
+ * onClickTbtn2 타입 변경
19
+ * onClickTbtn3 타입 변경