ml-ui-lib 1.0.14 → 1.0.15

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.
@@ -11,7 +11,7 @@ export interface CarouselItem {
11
11
  title: string;
12
12
  description?: string;
13
13
  image?: string;
14
- buttons?: CarouselButton[];
14
+ buttons?: React.ReactNode[];
15
15
  }
16
16
  export interface CarouselProps {
17
17
  items: CarouselItem[];
@@ -1,8 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useState, useEffect } from 'react';
3
+ import React, { useState, useEffect } from 'react';
4
4
  import './Carousel.css';
5
- import { Button } from '../Button/Button';
6
5
  export const Carousel = ({ items, autoSlide = true, interval = 5000, color }) => {
7
6
  const [current, setCurrent] = useState(0);
8
7
  // Auto-slide
@@ -19,5 +18,5 @@ export const Carousel = ({ items, autoSlide = true, interval = 5000, color }) =>
19
18
  }, [autoSlide, interval, items.length]);
20
19
  const nextSlide = () => setCurrent((prev) => (prev + 1) % items.length);
21
20
  const prevSlide = () => setCurrent((prev) => (prev - 1 + items.length) % items.length);
22
- return (_jsxs("div", { className: "carousel", children: [_jsx("div", { className: "carousel-track", children: items.map((item, index) => (_jsxs("div", { className: `carousel-slide fade ${index === current ? 'active' : ''}`, children: [_jsxs("div", { className: "carousel-text", children: [_jsx("h2", { style: { color }, children: item.title }), item.description && _jsx("p", { style: { color }, children: item.description }), item.buttons && item.buttons.length > 0 && (_jsx("div", { className: "carousel-buttons", children: item.buttons.slice(0, 2).map((btn, idx) => btn.link ? (_jsx("a", { href: btn.link, target: btn.target || '_self', rel: btn.target === '_blank' ? 'noopener noreferrer' : undefined, children: _jsx(Button, { label: btn.label, variant: btn.variant || 'default' }) }, idx)) : (_jsx(Button, { label: btn.label, variant: btn.variant || 'default', onClick: btn.onClick }, idx))) }))] }), item.image && (_jsxs("div", { className: "carousel-image", children: [_jsx("img", { src: item.image, alt: item.title }), _jsx("span", { className: "tranparentClass" })] }))] }, index))) }), _jsx("button", { className: "carousel-control prev", onClick: prevSlide, children: "\u276E" }), _jsx("button", { className: "carousel-control next", onClick: nextSlide, children: "\u276F" })] }));
21
+ return (_jsxs("div", { className: "carousel", children: [_jsx("div", { className: "carousel-track", children: items.map((item, index) => (_jsxs("div", { className: `carousel-slide fade ${index === current ? 'active' : ''}`, children: [_jsxs("div", { className: "carousel-text", children: [_jsx("h2", { style: { color }, children: item.title }), item.description && _jsx("p", { style: { color }, children: item.description }), item.buttons && item.buttons.length > 0 && (_jsx("div", { className: "carousel-buttons", children: item.buttons.map((btn, idx) => (_jsx(React.Fragment, { children: btn }, idx))) }))] }), item.image && (_jsxs("div", { className: "carousel-image", children: [_jsx("img", { src: item.image, alt: item.title }), _jsx("span", { className: "tranparentClass" })] }))] }, index))) }), _jsx("button", { className: "carousel-control prev", onClick: prevSlide, children: "\u276E" }), _jsx("button", { className: "carousel-control next", onClick: nextSlide, children: "\u276F" })] }));
23
22
  };
@@ -11,9 +11,9 @@ export const Footer = ({ footerItems, logoSrc = '', logoAlt = 'M Lhuillier Logo'
11
11
  { url: '/images/TPI.svg', name: 'TPI' },
12
12
  ];
13
13
  const appLinksArr = [
14
- { url: '/images/app-store.svg', link: '' },
15
- { url: '/images/google-play.svg', link: '' },
16
- { url: '/images/app-gallery.svg', link: '' },
14
+ { url: '/images/app-store.svg', link: 'https://apps.apple.com/ph/app/mcash-wallet/id962204987' },
15
+ { url: '/images/google-play.svg', link: 'https://play.google.com/store/apps/details?id=com.mlhuillier.mlwallet&pli=1' },
16
+ { url: '/images/app-gallery.svg', link: 'https://appgallery.huawei.com/app/C102221791?source=qrCodeShare&referrer=PCWebAG&callType=SHARE&shareTo=qrcode&shareFrom=appmarket&reportEventLabel=appdetailpage' },
17
17
  ];
18
18
  return (_jsxs("footer", { className: `footer ${className}`, style: { backgroundColor, color: textColor }, children: [_jsx("div", { className: "footer-container", children: _jsxs("div", { className: "footer-columns", children: [footerItems.map((group, i) => {
19
19
  // Format the display name
@@ -22,6 +22,11 @@ export const Footer = ({ footerItems, logoSrc = '', logoAlt = 'M Lhuillier Logo'
22
22
  .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
23
23
  .join(' & ');
24
24
  return (_jsxs("div", { className: `footer-column footer-column-${i + 1}`, children: [_jsx("h4", { className: "footer-title", children: displayName }), _jsx("ul", { className: "footer-links", children: group.items.map((item, idx) => (_jsx("li", { children: _jsx("a", { href: item.link, target: item.target || '_self', rel: item.target === '_blank' ? 'noopener noreferrer' : undefined, children: item.name }) }, idx))) })] }, i));
25
- }), _jsxs("div", { className: "footer-column socials-and-apps", children: [_jsxs("div", { className: "socials", children: [_jsx("h4", { children: "Social Media" }), _jsx("div", { className: "socials-items", children: ['fb', 'ig', 'x', 'yt'].map((icon) => (_jsx("img", { src: `/icons/${icon}.svg`, alt: icon }, icon))) })] }), _jsxs("div", { className: "apps", children: [_jsx("h4", { children: "Get the MCash App" }), _jsx("div", { className: "app-items", children: appLinksArr.map((item, index) => (_jsx("img", { src: item.url, alt: "App download" }, index))) })] })] })] }) }), _jsxs("div", { className: 'others', children: [_jsxs("div", { className: "footer-logo", children: [_jsx("a", { href: "/", children: _jsx("img", { src: logoSrc, alt: logoAlt, width: logoWidth, height: logoHeight, style: { display: 'block' } }) }), _jsx("span", { children: "FINANCIAL SERVICES, INC." }), _jsx("br", {}), _jsx("span", { children: "M.Lhuillier Financial Services, Inc. is regulated by the Bangko Sentral ng Pilipinas (BSP). For inquiries or assistance, you may reach us via:" }), _jsx("span", { children: _jsxs("ul", { children: [_jsx("li", { children: "Email: customercare@mlhuillier.com" }), _jsx("li", { children: "Or through our official Social media channels: consumeraaffairs@bsp.gov.ph" })] }) })] }), _jsx("div", { className: 'emblems', children: empblemArr.map((item, index) => (_jsxs("div", { className: "emblem-item", children: [_jsx("img", { src: item.url, alt: item.name }), _jsx("span", { children: item.name })] }, index))) })] }), _jsxs("div", { className: "footer-bottom", children: [_jsxs("p", { children: ["Copyright \u00A9 ", new Date().getFullYear(), " M.Lhuillier Financial Services, Inc."] }), " ", _jsx("p", { children: "All rights reserved." })] })] }));
25
+ }), _jsxs("div", { className: "footer-column socials-and-apps", children: [_jsxs("div", { className: "socials", children: [_jsx("h4", { children: "Social Media" }), _jsx("div", { className: "socials-items", children: [
26
+ { name: 'fb', link: 'https://www.facebook.com/mlhuillier.official/' },
27
+ { name: 'ig', link: 'https://www.instagram.com/mlhuillier_official/' },
28
+ { name: 'x', link: 'https://x.com/KaMLhuillier' },
29
+ { name: 'yt', link: 'https://www.youtube.com/user/MLhuillierInc' },
30
+ ].map((icon) => (_jsx("a", { href: icon.link, target: "_blank", rel: "noopener noreferrer", children: _jsx("img", { src: `/icons/${icon.name}.svg`, alt: icon.name }) }, icon.name))) })] }), _jsxs("div", { className: "apps", children: [_jsx("h4", { children: "Get the MCash App" }), _jsx("div", { className: "app-items", children: appLinksArr.map((item, index) => (_jsx("a", { href: item.link, children: _jsx("img", { src: item.url, alt: "App download" }) }, index))) })] })] })] }) }), _jsxs("div", { className: 'others', children: [_jsxs("div", { className: "footer-logo", children: [_jsx("a", { href: "/", children: _jsx("img", { src: logoSrc, alt: logoAlt, width: logoWidth, height: logoHeight, style: { display: 'block' } }) }), _jsx("span", { children: "FINANCIAL SERVICES, INC." }), _jsx("br", {}), _jsx("span", { children: "M.Lhuillier Financial Services, Inc. is regulated by the Bangko Sentral ng Pilipinas (BSP). For inquiries or assistance, you may reach us via:" }), _jsx("span", { children: _jsxs("ul", { children: [_jsx("li", { children: "Email: customercare@mlhuillier.com" }), _jsx("li", { children: "Or through our official Social media channels: consumeraaffairs@bsp.gov.ph" })] }) })] }), _jsx("div", { className: 'emblems', children: empblemArr.map((item, index) => (_jsxs("div", { className: "emblem-item", children: [_jsx("img", { src: item.url, alt: item.name }), _jsx("span", { children: item.name })] }, index))) })] }), _jsxs("div", { className: "footer-bottom", children: [_jsxs("p", { children: ["Copyright \u00A9 ", new Date().getFullYear(), " M.Lhuillier Financial Services, Inc."] }), " ", _jsx("p", { children: "All rights reserved." })] })] }));
26
31
  };
27
32
  export default Footer;
@@ -1,58 +1,90 @@
1
1
  .modal-overlay {
2
- position: fixed;
3
- inset: 0;
4
- background: rgba(0, 0, 0, 0.4);
5
- display: flex;
6
- justify-content: center;
7
- align-items: center;
8
- backdrop-filter: blur(4px);
9
- animation: fadeIn 0.25s ease;
2
+ position: fixed;
3
+ inset: 0;
4
+ background: rgba(0, 0, 0, 0.4);
5
+ display: flex;
6
+ justify-content: center;
7
+ align-items: flex-start;
8
+ backdrop-filter: blur(4px);
9
+ animation: fadeIn 0.25s ease;
10
+ overflow-y: auto;
11
+ padding: 40px 0;
12
+ z-index: 9999;
10
13
  }
11
14
 
12
15
  .modal {
13
- background: #fff;
14
- border-radius: 10px;
15
- padding: 24px;
16
- box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
17
- animation: modalFadeIn 0.25s ease;
18
- border-top: 5px solid transparent;
19
- box-sizing: border-box;
16
+ background: #fff;
17
+ border-radius: 10px;
18
+ padding: 24px;
19
+ box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
20
+ animation: modalFadeIn 0.25s ease;
21
+ border-top: 5px solid transparent;
22
+ box-sizing: border-box;
23
+ max-width: 600px;
24
+ margin-top: 70px;
25
+ width: 100%;
20
26
  }
21
27
 
22
28
  /* Variants */
23
- .modal-default { border-color: #ccc; }
24
- .modal-info { border-color: #3b82f6; }
25
- .modal-success { border-color: #22c55e; }
26
- .modal-warning { border-color: #f59e0b; }
27
- .modal-error { border-color: #ef4444; }
29
+ .modal-default {
30
+ border-color: #ccc;
31
+ }
32
+
33
+ .modal-info {
34
+ border-color: #3b82f6;
35
+ }
36
+
37
+ .modal-success {
38
+ border-color: #22c55e;
39
+ }
40
+
41
+ .modal-warning {
42
+ border-color: #f59e0b;
43
+ }
44
+
45
+ .modal-error {
46
+ border-color: #ef4444;
47
+ }
28
48
 
29
49
  .modal-header {
30
- display: flex;
31
- align-items: center;
32
- gap: 10px;
33
- margin-bottom: 16px;
50
+ display: flex;
51
+ align-items: center;
52
+ gap: 10px;
53
+ margin-bottom: 16px;
34
54
  }
35
55
 
36
56
  .modal-title {
37
- font-size: 20px;
38
- font-weight: 600;
57
+ font-size: 20px;
58
+ font-weight: 600;
39
59
  }
40
60
 
41
61
  /* Animations */
42
62
  @keyframes modalFadeIn {
43
- from { opacity: 0; transform: translateY(-10px); }
44
- to { opacity: 1; transform: translateY(0); }
63
+ from {
64
+ opacity: 0;
65
+ transform: translateY(-10px);
66
+ }
67
+
68
+ to {
69
+ opacity: 1;
70
+ transform: translateY(0);
71
+ }
45
72
  }
46
73
 
47
74
  @keyframes fadeIn {
48
- from { opacity: 0; }
49
- to { opacity: 1; }
75
+ from {
76
+ opacity: 0;
77
+ }
78
+
79
+ to {
80
+ opacity: 1;
81
+ }
50
82
  }
51
83
 
52
- /* Responsive */
84
+ /* Responsive */
53
85
  @media (max-width: 515px) {
54
- .modal {
55
- width: 100% !important;
56
- margin: 0 10px;
57
- }
58
- }
86
+ .modal {
87
+ width: 100% !important;
88
+ margin: 20px 10px;
89
+ }
90
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ml-ui-lib",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",