@xqmsg/ui-core 0.19.1 → 0.19.2
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/hooks/useToast.d.ts +2 -2
- package/dist/ui-core.cjs.development.js +3 -5
- package/dist/ui-core.cjs.development.js.map +1 -1
- package/dist/ui-core.cjs.production.min.js +1 -1
- package/dist/ui-core.cjs.production.min.js.map +1 -1
- package/dist/ui-core.esm.js +3 -5
- package/dist/ui-core.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/input/StackedPilledInput/index.tsx +0 -1
- package/src/components/toolbar/components/breadcrumbs/item/index.tsx +0 -1
- package/src/hooks/useToast.tsx +10 -7
package/dist/ui-core.esm.js
CHANGED
|
@@ -1638,7 +1638,6 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
1638
1638
|
ref: inputWrapperRef,
|
|
1639
1639
|
handler: function handler() {
|
|
1640
1640
|
onBlur();
|
|
1641
|
-
console.log('hi');
|
|
1642
1641
|
}
|
|
1643
1642
|
});
|
|
1644
1643
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -4221,7 +4220,6 @@ var ToolbarBreadcrumbItem = function ToolbarBreadcrumbItem(_ref) {
|
|
|
4221
4220
|
var getPageLabel = useMemo(function () {
|
|
4222
4221
|
if (breakpoint400) {
|
|
4223
4222
|
if (page === 'current') {
|
|
4224
|
-
console.log('hi');
|
|
4225
4223
|
return pageLabel;
|
|
4226
4224
|
}
|
|
4227
4225
|
}
|
|
@@ -4400,16 +4398,16 @@ var Toast = function Toast(_ref) {
|
|
|
4400
4398
|
}, buttonText)));
|
|
4401
4399
|
};
|
|
4402
4400
|
|
|
4403
|
-
var useToast = function useToast(
|
|
4401
|
+
var useToast = function useToast() {
|
|
4404
4402
|
var toast = useToast$1();
|
|
4405
|
-
return function () {
|
|
4403
|
+
return useCallback(function (props) {
|
|
4406
4404
|
return toast({
|
|
4407
4405
|
position: props.position,
|
|
4408
4406
|
render: function render() {
|
|
4409
4407
|
return /*#__PURE__*/React__default.createElement(Toast, Object.assign({}, props));
|
|
4410
4408
|
}
|
|
4411
4409
|
});
|
|
4412
|
-
};
|
|
4410
|
+
}, [toast]);
|
|
4413
4411
|
};
|
|
4414
4412
|
|
|
4415
4413
|
function formatErrorResponse(error) {
|