ml-ui-lib 1.0.4 → 1.0.5

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.d.ts CHANGED
@@ -5,8 +5,6 @@ export { Modal } from "./components/Modal/Modal";
5
5
  export type { ModalProps } from "./components/Modal/Modal";
6
6
  export { Input } from "./components/Input/Input";
7
7
  export type { InputProps } from "./components/Input/Input";
8
- export { Alert } from "./components/Alert/Alert";
9
- export type { AlertProps, AlertVariant } from "./components/Alert/Alert";
10
8
  export { PhoneInput } from "./components/PhoneInput/PhoneInput";
11
9
  export type { PhoneInputProps } from "./components/PhoneInput/PhoneInput";
12
10
  export { Dropdown } from "./components/Dropdown/Dropdown";
package/dist/index.js CHANGED
@@ -2,7 +2,6 @@ import "./common.css";
2
2
  export { Button } from "./components/Button/Button";
3
3
  export { Modal } from "./components/Modal/Modal";
4
4
  export { Input } from "./components/Input/Input";
5
- export { Alert } from "./components/Alert/Alert";
6
5
  export { PhoneInput } from "./components/PhoneInput/PhoneInput";
7
6
  export { Dropdown } from "./components/Dropdown/Dropdown";
8
7
  export { DatePicker2 } from "./components/DatePicker2/DatePicker2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ml-ui-lib",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "main": "dist/index.js",
5
5
  "author": "Kenneth James B. Simbulan",
6
6
  "module": "dist/index.esm.js",
package/src/index.ts CHANGED
@@ -9,9 +9,6 @@ export type { ModalProps } from "./components/Modal/Modal";
9
9
  export { Input } from "./components/Input/Input";
10
10
  export type { InputProps } from "./components/Input/Input";
11
11
 
12
- export { Alert } from "./components/Alert/Alert";
13
- export type { AlertProps, AlertVariant } from "./components/Alert/Alert";
14
-
15
12
  export { PhoneInput } from "./components/PhoneInput/PhoneInput";
16
13
  export type { PhoneInputProps } from "./components/PhoneInput/PhoneInput";
17
14
 
@@ -1,56 +0,0 @@
1
- .alert {
2
- display: flex;
3
- align-items: flex-start;
4
- gap: 12px;
5
- border-radius: 8px;
6
- padding: 12px 16px;
7
- font-family: 'Poppins', sans-serif;
8
- font-size: 15px;
9
- line-height: 1.4;
10
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
11
- }
12
-
13
- .alert-icon {
14
- width: 24px;
15
- height: 24px;
16
- flex-shrink: 0;
17
- }
18
-
19
- .alert-content {
20
- flex: 1;
21
- }
22
-
23
- .alert-title {
24
- display: block;
25
- font-weight: 600;
26
- margin-bottom: 2px;
27
- }
28
-
29
- .alert-message {
30
- margin: 0;
31
- }
32
-
33
- /* Variants */
34
- .alert-info {
35
- background-color: #e6f4ff;
36
- border: 1px solid #91caff;
37
- color: #0958d9;
38
- }
39
-
40
- .alert-error {
41
- background-color: #fff1f0;
42
- border: 1px solid #ffa39e;
43
- color: #cf1322;
44
- }
45
-
46
- .alert-warning {
47
- background-color: #fffbe6;
48
- border: 1px solid #ffe58f;
49
- color: #ad8b00;
50
- }
51
-
52
- .alert-success {
53
- background-color: #f6ffed;
54
- border: 1px solid #b7eb8f;
55
- color: #389e0d;
56
- }
@@ -1,27 +0,0 @@
1
- import React from "react";
2
- import "./Alert.css";
3
-
4
- export type AlertVariant = "info" | "error" | "warning" | "success";
5
-
6
- export interface AlertProps {
7
- variant?: AlertVariant;
8
- title?: string;
9
- message: string;
10
- }
11
-
12
- export const Alert: React.FC<AlertProps> = ({
13
- variant = "info",
14
- title,
15
- message,
16
- }) => {
17
- return (
18
- <div className={`alert alert-${variant}`}>
19
- <div className="alert-content">
20
- {title && <strong className="alert-title">{title}</strong>}
21
- <p className="alert-message">{message}</p>
22
- </div>
23
- </div>
24
- );
25
- };
26
-
27
- export default Alert;