karsten-design-system 1.0.71 → 1.0.72
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/index.js
CHANGED
|
@@ -32,5 +32,5 @@ export { EmptyContent } from './stories/components/emptyContent.js';
|
|
|
32
32
|
export { Select } from './stories/components/select.js';
|
|
33
33
|
export { CalendarInput } from './stories/components/calendarInput.js';
|
|
34
34
|
export { Table } from './stories/components/table.js';
|
|
35
|
-
|
|
35
|
+
import './stories/components/customToast.js';
|
|
36
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -6,7 +6,7 @@ import SuccessIcon from '../../assets/icons/success.js';
|
|
|
6
6
|
import ErrorIcon from '../../assets/icons/error.js';
|
|
7
7
|
import InfoIcon from '../../assets/icons/info.js';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
forwardRef((props, ref) => {
|
|
10
10
|
const { severity = 'info', summary = '', detail = '', life = 3000, onShow } = props;
|
|
11
11
|
const customToastRef = useRef(null);
|
|
12
12
|
function getIcon(severity) {
|
|
@@ -38,8 +38,5 @@ function CustomToast(props, ref) {
|
|
|
38
38
|
},
|
|
39
39
|
}));
|
|
40
40
|
return jsxRuntimeExports.jsx(Toast, { ref: customToastRef });
|
|
41
|
-
}
|
|
42
|
-
forwardRef(CustomToast);
|
|
43
|
-
|
|
44
|
-
export { CustomToast };
|
|
41
|
+
});
|
|
45
42
|
//# sourceMappingURL=customToast.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customToast.js","sources":["../../../../src/stories/components/customToast.tsx"],"sourcesContent":[null],"names":["_jsx","ToastPrime"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"customToast.js","sources":["../../../../src/stories/components/customToast.tsx"],"sourcesContent":[null],"names":["_jsx","ToastPrime"],"mappings":";;;;;;;;AAqBoB,UAAU,CAAmC,CAAC,KAAK,EAAE,GAAG,KAAI;IAC9E,MAAM,EAAE,QAAQ,GAAG,MAA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AAEH,IAAA,OAAOA,sBAACC,KAAU,EAAA,EAAC,GAAG,EAAE,cAAc,GAAI;AAC5C,CAAC"}
|
|
@@ -9,6 +9,5 @@ export type CustomToastProps = {
|
|
|
9
9
|
export type CustomToastRef = {
|
|
10
10
|
show: (props?: CustomToastProps) => void;
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export default _default;
|
|
12
|
+
declare const CustomToast: import("react").ForwardRefExoticComponent<CustomToastProps & import("react").RefAttributes<CustomToastRef>>;
|
|
13
|
+
export default CustomToast;
|