@majoo-ui/react 1.60.5-rc.2 → 1.60.5-rc.4
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/components/modalDialog/ModalDialog.d.ts +4 -0
- package/index.esm.js +14 -9
- package/index.umd.js +13 -8
- package/package.json +1 -1
|
@@ -408,6 +408,10 @@ interface ModalDialogProps extends Omit<IDialog, 'children'>, DialogContentProps
|
|
|
408
408
|
* If true, the close icon button is disabled
|
|
409
409
|
*/
|
|
410
410
|
disabledCloseButton?: boolean;
|
|
411
|
+
/**
|
|
412
|
+
* On dialog close click function
|
|
413
|
+
*/
|
|
414
|
+
onCloseClick?: () => void;
|
|
411
415
|
}
|
|
412
416
|
/**
|
|
413
417
|
* ModalDialog are used to focus and display content that contains one specific task that requires interaction from the user and is separate from the main page.
|
package/index.esm.js
CHANGED
|
@@ -12514,9 +12514,10 @@ const ModalDialog = props => {
|
|
|
12514
12514
|
width,
|
|
12515
12515
|
onOpenAutoFocus,
|
|
12516
12516
|
disabledCloseButton,
|
|
12517
|
-
onPointerDownOutside
|
|
12517
|
+
onPointerDownOutside,
|
|
12518
|
+
onCloseClick
|
|
12518
12519
|
} = props,
|
|
12519
|
-
rest = __rest(props, ["children", "size", "css", "layer", "isMobile", "width", "onOpenAutoFocus", "disabledCloseButton", "onPointerDownOutside"]);
|
|
12520
|
+
rest = __rest(props, ["children", "size", "css", "layer", "isMobile", "width", "onOpenAutoFocus", "disabledCloseButton", "onPointerDownOutside", "onCloseClick"]);
|
|
12520
12521
|
const childArray = React__default.Children.toArray(children);
|
|
12521
12522
|
const modalDialogFooter = findNodeChild$1(childArray, 'ModalDialogFooter');
|
|
12522
12523
|
const modalDialogTitle = findNodeChild$1(childArray, 'ModalDialogTitle');
|
|
@@ -12598,7 +12599,10 @@ const ModalDialog = props => {
|
|
|
12598
12599
|
condition: !disabledCloseButton,
|
|
12599
12600
|
wrapper: children => jsx(DialogClose, Object.assign({
|
|
12600
12601
|
asChild: true,
|
|
12601
|
-
disabled: disabledCloseButton
|
|
12602
|
+
disabled: disabledCloseButton,
|
|
12603
|
+
onClick: () => {
|
|
12604
|
+
if (onCloseClick) onCloseClick();
|
|
12605
|
+
}
|
|
12602
12606
|
}, {
|
|
12603
12607
|
children: children
|
|
12604
12608
|
}), void 0)
|
|
@@ -17657,6 +17661,7 @@ function InputTimePicker({
|
|
|
17657
17661
|
onChange: onChange,
|
|
17658
17662
|
minDate: minDate,
|
|
17659
17663
|
maxDate: maxDate,
|
|
17664
|
+
css: css,
|
|
17660
17665
|
__self: this,
|
|
17661
17666
|
__source: {
|
|
17662
17667
|
fileName: _jsxFileName$q,
|
|
@@ -17671,7 +17676,7 @@ function InputTimePicker({
|
|
|
17671
17676
|
__self: this,
|
|
17672
17677
|
__source: {
|
|
17673
17678
|
fileName: _jsxFileName$q,
|
|
17674
|
-
lineNumber:
|
|
17679
|
+
lineNumber: 81,
|
|
17675
17680
|
columnNumber: 5
|
|
17676
17681
|
}
|
|
17677
17682
|
}, disabled || readOnly ? /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -17679,14 +17684,14 @@ function InputTimePicker({
|
|
|
17679
17684
|
__self: this,
|
|
17680
17685
|
__source: {
|
|
17681
17686
|
fileName: _jsxFileName$q,
|
|
17682
|
-
lineNumber:
|
|
17687
|
+
lineNumber: 83,
|
|
17683
17688
|
columnNumber: 9
|
|
17684
17689
|
}
|
|
17685
17690
|
}, renderInputGroup()) : /*#__PURE__*/React__default.createElement(PopoverTrigger, {
|
|
17686
17691
|
__self: this,
|
|
17687
17692
|
__source: {
|
|
17688
17693
|
fileName: _jsxFileName$q,
|
|
17689
|
-
lineNumber:
|
|
17694
|
+
lineNumber: 85,
|
|
17690
17695
|
columnNumber: 9
|
|
17691
17696
|
}
|
|
17692
17697
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -17694,7 +17699,7 @@ function InputTimePicker({
|
|
|
17694
17699
|
__self: this,
|
|
17695
17700
|
__source: {
|
|
17696
17701
|
fileName: _jsxFileName$q,
|
|
17697
|
-
lineNumber:
|
|
17702
|
+
lineNumber: 86,
|
|
17698
17703
|
columnNumber: 11
|
|
17699
17704
|
}
|
|
17700
17705
|
}, renderInputGroup())), /*#__PURE__*/React__default.createElement(PopoverContent, {
|
|
@@ -17702,7 +17707,7 @@ function InputTimePicker({
|
|
|
17702
17707
|
__self: this,
|
|
17703
17708
|
__source: {
|
|
17704
17709
|
fileName: _jsxFileName$q,
|
|
17705
|
-
lineNumber:
|
|
17710
|
+
lineNumber: 89,
|
|
17706
17711
|
columnNumber: 7
|
|
17707
17712
|
}
|
|
17708
17713
|
}, renderTimePicker({
|
|
@@ -17793,7 +17798,7 @@ InputTimePicker.propTypes = {
|
|
|
17793
17798
|
/**
|
|
17794
17799
|
Additional TimePicker styles.
|
|
17795
17800
|
*/
|
|
17796
|
-
|
|
17801
|
+
contentCss: PropTypes.object
|
|
17797
17802
|
};
|
|
17798
17803
|
InputTimePicker.displayName = 'InputTimePicker';
|
|
17799
17804
|
|
package/index.umd.js
CHANGED
|
@@ -12602,7 +12602,8 @@
|
|
|
12602
12602
|
onOpenAutoFocus = props.onOpenAutoFocus,
|
|
12603
12603
|
disabledCloseButton = props.disabledCloseButton,
|
|
12604
12604
|
onPointerDownOutside = props.onPointerDownOutside,
|
|
12605
|
-
|
|
12605
|
+
onCloseClick = props.onCloseClick,
|
|
12606
|
+
rest = __rest(props, ["children", "size", "css", "layer", "isMobile", "width", "onOpenAutoFocus", "disabledCloseButton", "onPointerDownOutside", "onCloseClick"]);
|
|
12606
12607
|
var childArray = React__default["default"].Children.toArray(children);
|
|
12607
12608
|
var modalDialogFooter = findNodeChild$1(childArray, 'ModalDialogFooter');
|
|
12608
12609
|
var modalDialogTitle = findNodeChild$1(childArray, 'ModalDialogTitle');
|
|
@@ -12687,7 +12688,10 @@
|
|
|
12687
12688
|
wrapper: function (children) {
|
|
12688
12689
|
return jsxRuntime.jsx(DialogClose, __assign({
|
|
12689
12690
|
asChild: true,
|
|
12690
|
-
disabled: disabledCloseButton
|
|
12691
|
+
disabled: disabledCloseButton,
|
|
12692
|
+
onClick: function () {
|
|
12693
|
+
if (onCloseClick) onCloseClick();
|
|
12694
|
+
}
|
|
12691
12695
|
}, {
|
|
12692
12696
|
children: children
|
|
12693
12697
|
}), void 0);
|
|
@@ -17880,6 +17884,7 @@
|
|
|
17880
17884
|
onChange: onChange,
|
|
17881
17885
|
minDate: minDate,
|
|
17882
17886
|
maxDate: maxDate,
|
|
17887
|
+
css: css,
|
|
17883
17888
|
__self: this,
|
|
17884
17889
|
__source: {
|
|
17885
17890
|
fileName: _jsxFileName$q,
|
|
@@ -17894,7 +17899,7 @@
|
|
|
17894
17899
|
__self: this,
|
|
17895
17900
|
__source: {
|
|
17896
17901
|
fileName: _jsxFileName$q,
|
|
17897
|
-
lineNumber:
|
|
17902
|
+
lineNumber: 81,
|
|
17898
17903
|
columnNumber: 5
|
|
17899
17904
|
}
|
|
17900
17905
|
}, disabled || readOnly ? /*#__PURE__*/React__default["default"].createElement(Box, {
|
|
@@ -17902,14 +17907,14 @@
|
|
|
17902
17907
|
__self: this,
|
|
17903
17908
|
__source: {
|
|
17904
17909
|
fileName: _jsxFileName$q,
|
|
17905
|
-
lineNumber:
|
|
17910
|
+
lineNumber: 83,
|
|
17906
17911
|
columnNumber: 9
|
|
17907
17912
|
}
|
|
17908
17913
|
}, renderInputGroup()) : /*#__PURE__*/React__default["default"].createElement(PopoverTrigger, {
|
|
17909
17914
|
__self: this,
|
|
17910
17915
|
__source: {
|
|
17911
17916
|
fileName: _jsxFileName$q,
|
|
17912
|
-
lineNumber:
|
|
17917
|
+
lineNumber: 85,
|
|
17913
17918
|
columnNumber: 9
|
|
17914
17919
|
}
|
|
17915
17920
|
}, /*#__PURE__*/React__default["default"].createElement(Box, {
|
|
@@ -17917,7 +17922,7 @@
|
|
|
17917
17922
|
__self: this,
|
|
17918
17923
|
__source: {
|
|
17919
17924
|
fileName: _jsxFileName$q,
|
|
17920
|
-
lineNumber:
|
|
17925
|
+
lineNumber: 86,
|
|
17921
17926
|
columnNumber: 11
|
|
17922
17927
|
}
|
|
17923
17928
|
}, renderInputGroup())), /*#__PURE__*/React__default["default"].createElement(PopoverContent, {
|
|
@@ -17925,7 +17930,7 @@
|
|
|
17925
17930
|
__self: this,
|
|
17926
17931
|
__source: {
|
|
17927
17932
|
fileName: _jsxFileName$q,
|
|
17928
|
-
lineNumber:
|
|
17933
|
+
lineNumber: 89,
|
|
17929
17934
|
columnNumber: 7
|
|
17930
17935
|
}
|
|
17931
17936
|
}, renderTimePicker({
|
|
@@ -18016,7 +18021,7 @@
|
|
|
18016
18021
|
/**
|
|
18017
18022
|
Additional TimePicker styles.
|
|
18018
18023
|
*/
|
|
18019
|
-
|
|
18024
|
+
contentCss: PropTypes__default["default"].object
|
|
18020
18025
|
};
|
|
18021
18026
|
InputTimePicker.displayName = 'InputTimePicker';
|
|
18022
18027
|
|