pds-dev-kit-web 1.4.60 → 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,4 +1,4 @@
|
|
|
1
|
-
|
|
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 () {
|
package/package.json
CHANGED
package/release-note.md
CHANGED