@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/hooks/useToast.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ToastPosition } from '@chakra-ui/react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ToastProps } from '../components/toast';
|
|
4
|
-
export declare const useToast: (props: ToastProps & {
|
|
4
|
+
export declare const useToast: () => (props: ToastProps & {
|
|
5
5
|
position: ToastPosition;
|
|
6
|
-
}) =>
|
|
6
|
+
}) => React.Key;
|
|
@@ -1645,7 +1645,6 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
1645
1645
|
ref: inputWrapperRef,
|
|
1646
1646
|
handler: function handler() {
|
|
1647
1647
|
onBlur();
|
|
1648
|
-
console.log('hi');
|
|
1649
1648
|
}
|
|
1650
1649
|
});
|
|
1651
1650
|
return /*#__PURE__*/React__default.createElement(react.Box, {
|
|
@@ -4228,7 +4227,6 @@ var ToolbarBreadcrumbItem = function ToolbarBreadcrumbItem(_ref) {
|
|
|
4228
4227
|
var getPageLabel = React.useMemo(function () {
|
|
4229
4228
|
if (breakpoint400) {
|
|
4230
4229
|
if (page === 'current') {
|
|
4231
|
-
console.log('hi');
|
|
4232
4230
|
return pageLabel;
|
|
4233
4231
|
}
|
|
4234
4232
|
}
|
|
@@ -4407,16 +4405,16 @@ var Toast = function Toast(_ref) {
|
|
|
4407
4405
|
}, buttonText)));
|
|
4408
4406
|
};
|
|
4409
4407
|
|
|
4410
|
-
var useToast = function useToast(
|
|
4408
|
+
var useToast = function useToast() {
|
|
4411
4409
|
var toast = react.useToast();
|
|
4412
|
-
return function () {
|
|
4410
|
+
return React.useCallback(function (props) {
|
|
4413
4411
|
return toast({
|
|
4414
4412
|
position: props.position,
|
|
4415
4413
|
render: function render() {
|
|
4416
4414
|
return /*#__PURE__*/React__default.createElement(Toast, Object.assign({}, props));
|
|
4417
4415
|
}
|
|
4418
4416
|
});
|
|
4419
|
-
};
|
|
4417
|
+
}, [toast]);
|
|
4420
4418
|
};
|
|
4421
4419
|
|
|
4422
4420
|
function formatErrorResponse(error) {
|