ml-ui-lib 1.0.49 → 1.0.51

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.
@@ -1,6 +1,6 @@
1
1
  .accordion {
2
2
  width: 100%;
3
- font-family: "Inter", sans-serif;
3
+ font-family: Poppins, sans-serif;
4
4
  color: #222;
5
5
  }
6
6
 
@@ -19,7 +19,7 @@ export const Footer = ({ footerItems, logoSrc = '', logoAlt = 'M Lhuillier Logo'
19
19
  display: 'flex',
20
20
  flexDirection: 'column',
21
21
  alignItems: 'center'
22
- }, children: [_jsx("a", { href: "/", children: _jsx("img", { src: logoSrc, alt: logoAlt, width: logoWidth, height: logoHeight, style: { display: 'block' } }) }), _jsx("span", { style: { marginTop: '-15px', }, children: "FINANCIAL SERVICES, INC." }), _jsx("span", { style: { marginTop: '0px', fontSize: '15px' }, children: "B. Benedicto St, North Reclamation, Cebu City" }), " ", _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", { className: 'footer-contact', children: [_jsx("li", { children: "Phone: +63 947 999 0337" }), _jsxs("li", { children: ["Email: ", _jsx("a", { href: "mailto:customercare@mlhuillier.com", style: { color: 'rgb(44, 48, 122) !important' }, children: "customercare@mlhuillier.com" })] })] }) })] }), footerItems.map((group, i) => {
22
+ }, children: [_jsx("a", { href: "/", children: _jsx("img", { src: logoSrc, alt: logoAlt, width: logoWidth, height: logoHeight, style: { display: 'block' } }) }), _jsx("span", { style: { marginTop: '-15px', }, children: "FINANCIAL SERVICES, INC." }), _jsx("span", { style: { marginTop: '0px', fontSize: '15px' }, children: "B. Benedicto St., North Reclamation, Cebu City" }), " ", _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", { className: 'footer-contact', children: [_jsx("li", { children: "Phone: +63 947 999 0337" }), _jsxs("li", { children: ["Email: ", _jsx("a", { href: "mailto:customercare@mlhuillier.com", style: { color: 'rgb(44, 48, 122) !important' }, children: "customercare@mlhuillier.com" })] })] }) })] }), footerItems.map((group, i) => {
23
23
  // Format the display name
24
24
  const displayName = group.name
25
25
  .split('-')
@@ -34,7 +34,7 @@
34
34
  background: transparent;
35
35
  border: none;
36
36
  font-size: 26px;
37
- color: #666;
37
+ color: #555;
38
38
  cursor: pointer;
39
39
  line-height: 1;
40
40
  transition: color 0.2s ease, transform 0.15s ease;
@@ -74,8 +74,7 @@
74
74
  }
75
75
 
76
76
  .modal-title {
77
- font-size: 20px;
78
- font-weight: 600;
77
+ margin: 0px;
79
78
  }
80
79
 
81
80
  /* Animations */
@@ -15,5 +15,5 @@ export const Modal = ({ open, onClose, title, children, zIndex = 1000, variant =
15
15
  zIndex: zIndex + 1,
16
16
  width: `${width}%`,
17
17
  maxWidth: "95vw",
18
- }, children: [_jsx("button", { className: "modal-close", onClick: onClose, "aria-label": "Close modal", children: "\u00D7" }), title && (_jsx("div", { className: "modal-header", children: _jsx("h2", { className: "modal-title", children: title }) })), _jsx("div", { className: "modal-content", children: children })] }) }));
18
+ }, children: [title && (_jsxs("div", { className: "modal-header", children: [_jsx("h3", { className: "modal-title", children: title }), _jsx("button", { className: "modal-close", onClick: onClose, "aria-label": "Close modal", children: "\u00D7" })] })), _jsx("div", { className: "modal-content", children: children })] }) }));
19
19
  };
@@ -118,11 +118,11 @@
118
118
  /* Header + body */
119
119
  .spb-header {
120
120
  display: flex;
121
+ justify-content: space-between;
121
122
  align-items: center;
122
- justify-content: end;
123
- padding: 12px 16px;
124
- /* border-bottom: 1px solid #f1f1f1; */
125
- min-height: 0px;
123
+ gap: 10px;
124
+ /* margin-bottom: 16px; */
125
+ padding: 0px 10px;
126
126
  }
127
127
 
128
128
  .spb-title {
@@ -151,19 +151,21 @@
151
151
 
152
152
  /* Desktop close button */
153
153
  .spb-close-btn {
154
- background: none;
154
+ position: absolute;
155
+ top: 12px;
156
+ right: 14px;
157
+ background: transparent;
155
158
  border: none;
156
- font-size: 25px;
157
- line-height: 1;
159
+ font-size: 26px;
160
+ color: #555;
158
161
  cursor: pointer;
159
- padding: 30px 0px 25px 10px;
160
- border-radius: 6px;
161
- color: #111827;
162
- margin-right: 0px;
162
+ line-height: 1;
163
+ transition: color 0.2s ease, transform 0.15s ease;
163
164
  }
164
165
 
165
166
  .spb-close-btn:hover {
166
- background: rgb(255 0 0 / 27%);
167
+ color: #000;
168
+ transform: scale(1.1);
167
169
  }
168
170
 
169
171
  /* Handle (mobile) */
@@ -8,6 +8,7 @@ export interface SlidingPanelProps {
8
8
  width?: string;
9
9
  closeOnOverlayClick?: boolean;
10
10
  position?: "bottom" | "top" | "left" | "right";
11
+ title?: string;
11
12
  }
12
13
  export declare const SlidingPanel: React.FC<SlidingPanelProps>;
13
14
  export default SlidingPanel;
@@ -2,7 +2,7 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useEffect, useRef, useState } from "react";
4
4
  import "./SlidingPanel.css";
5
- export const SlidingPanel = ({ isOpen, onClose, children, height = "80%", width = "100%", closeOnOverlayClick = true, position = "bottom", }) => {
5
+ export const SlidingPanel = ({ isOpen, onClose, children, height = "80%", width = "100%", closeOnOverlayClick = true, position = "bottom", title = "" }) => {
6
6
  const [visible, setVisible] = useState(false);
7
7
  const [animateOpen, setAnimateOpen] = useState(false);
8
8
  const panelRef = useRef(null);
@@ -176,6 +176,6 @@ export const SlidingPanel = ({ isOpen, onClose, children, height = "80%", width
176
176
  }, [onClose, position]);
177
177
  if (!visible && !isOpen)
178
178
  return null;
179
- return (_jsxs("div", { className: `spb-root ${animateOpen ? "spb-open" : "spb-close"}`, children: [_jsx("div", { className: "spb-backdrop", onClick: () => closeOnOverlayClick && onClose() }), _jsxs("div", { ref: panelRef, className: `spb-panel spb-panel--position-${position}`, style: { height, width }, role: "dialog", "aria-modal": "true", onClick: (e) => e.stopPropagation(), children: [_jsx("div", { ref: headerRef, className: "spb-header", children: _jsx("button", { className: "spb-close-btn", onClick: onClose, children: "\u00D7" }) }), _jsx("div", { className: "spb-body", children: children })] })] }));
179
+ return (_jsxs("div", { className: `spb-root ${animateOpen ? "spb-open" : "spb-close"}`, children: [_jsx("div", { className: "spb-backdrop", onClick: () => closeOnOverlayClick && onClose() }), _jsxs("div", { ref: panelRef, className: `spb-panel spb-panel--position-${position}`, style: { height, width }, role: "dialog", "aria-modal": "true", onClick: (e) => e.stopPropagation(), children: [_jsxs("div", { ref: headerRef, className: "spb-header", children: [_jsx("h3", { children: title }), _jsx("button", { className: "spb-close-btn", onClick: onClose, children: "\u00D7" })] }), _jsx("div", { className: "spb-body", children: children })] })] }));
180
180
  };
181
181
  export default SlidingPanel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ml-ui-lib",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",