ml-ui-lib 1.0.1 → 1.0.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.
@@ -7,3 +7,4 @@ export interface AlertProps {
7
7
  message: string;
8
8
  }
9
9
  export declare const Alert: React.FC<AlertProps>;
10
+ export default Alert;
@@ -1,11 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import "./Alert.css";
3
3
  export const Alert = ({ variant = "info", title, message, }) => {
4
- // const icons: Record<AlertVariant, string> = {
5
- // info: "https://cdn-icons-png.flaticon.com/512/11086/11086161.png",
6
- // success: "https://cdn-icons-png.flaticon.com/512/845/845646.png",
7
- // warning: "https://cdn-icons-png.flaticon.com/512/595/595067.png",
8
- // error: "https://cdn-icons-png.flaticon.com/512/463/463612.png",
9
- // };
10
4
  return (_jsx("div", { className: `alert alert-${variant}`, children: _jsxs("div", { className: "alert-content", children: [title && _jsx("strong", { className: "alert-title", children: title }), _jsx("p", { className: "alert-message", children: message })] }) }));
11
5
  };
6
+ export default Alert;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ml-ui-lib",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "main": "dist/index.js",
5
5
  "author": "Kenneth James B. Simbulan",
6
6
  "module": "dist/index.esm.js",