@houssemdi2000/design-system 1.3.1 → 1.3.3
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.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -259,7 +259,7 @@ const tco = {
|
|
|
259
259
|
textDark: "#fff",
|
|
260
260
|
borderDark: "#ddd",
|
|
261
261
|
background: "#ffffff",
|
|
262
|
-
backgroundDark: "#
|
|
262
|
+
backgroundDark: "#0f172a",
|
|
263
263
|
backgroundDark2: "#222",
|
|
264
264
|
backgroundDark3: "#111",
|
|
265
265
|
border: "#ccc",
|
|
@@ -485,7 +485,7 @@ const SmartCarousel = ({ images, autoPlay = false, interval = 5000, showArrows =
|
|
|
485
485
|
}) }), showArrows && (jsxs(Fragment, { children: [jsx("button", { className: "sc-arrow left", onClick: prev, "aria-label": "Previous", children: jsx("span", { children: " \u2039" }) }), jsx("button", { className: "sc-arrow right", onClick: next, "aria-label": "Next", children: jsx("span", { children: " \u203A" }) })] })), showDots && (jsx("div", { className: "sc-dots", children: images.map((_, i) => (jsx("span", { className: `sc-dot ${i === index ? "active" : ""}`, onClick: () => setIndex(i) }, i))) }))] }));
|
|
486
486
|
};
|
|
487
487
|
|
|
488
|
-
var css_248z$8 = ".navbar{background:#fff;border-bottom:1px solid #eee;font-family:sans-serif;width:100%;z-index:1000}.navbar.dark{background:#0f172a;border-color:#1e293b;color:#fff}.navbar.sticky{position:sticky;top:0}.navbar-container{align-items:center;display:flex;height:100%;justify-content:space-between;margin:auto;max-width:1280px;padding:0
|
|
488
|
+
var css_248z$8 = ".navbar{background:#fff;border-bottom:1px solid #eee;font-family:sans-serif;width:100%;z-index:1000}.navbar.dark{background:#0f172a;border-color:#1e293b;color:#fff}.navbar.sticky{position:sticky;top:0}.navbar-container{align-items:center;display:flex;height:100%;justify-content:space-between;margin:auto;max-width:1280px;padding:0 1px}.navbar-logo{font-size:18px;font-weight:700}.navbar-links{display:flex;gap:20px;list-style:none;width:\"100%\"}.navbar-links.center{left:50%;position:absolute;transform:translateX(-50%)}.navbar-links.left{margin-right:auto}.navbar-links.right{margin-left:auto;margin-right:24px}.navbar-link{cursor:pointer;font-weight:500}.navbar-link a{color:inherit;text-decoration:none}.navbar-link.active{color:#2563eb}.navbar-actions{align-items:center;display:flex;gap:50px}.navbar-burger{cursor:pointer;display:none;flex-direction:column;gap:4px}.navbar-burger span{background:currentColor;height:2px;width:22px}@media (max-width:768px){.navbar-links{background:inherit;display:none;flex-direction:column;left:0;padding:12px;position:absolute;right:0;top:100%}.navbar-burger,.navbar-links.open{display:flex}.navbar-links.center,.navbar-links.left,.navbar-links.right{margin:0;position:static;transform:none}}";
|
|
489
489
|
styleInject(css_248z$8);
|
|
490
490
|
|
|
491
491
|
const Navbar = ({ logo, links = [], actions = [], position = "left", sticky = true, isDarkMode = false, height = 64 }) => {
|
|
@@ -524,7 +524,7 @@ const Footer = ({ left, center, right, sections = [], isDarkMode = false, height
|
|
|
524
524
|
}) }))] }));
|
|
525
525
|
};
|
|
526
526
|
|
|
527
|
-
var css_248z$5 = "
|
|
527
|
+
var css_248z$5 = ".layout{display:flex;flex-direction:column;font-family:sans-serif;min-height:100vh}.layout.dark{background:#0f172a;color:#fff}.layout-main{display:flex;flex:1;overflow:hidden}.layout-content{flex:1;overflow-y:auto;padding:16px}";
|
|
528
528
|
styleInject(css_248z$5);
|
|
529
529
|
|
|
530
530
|
const Layout = ({ header, sidebar, footer, children, withSidebar = true, withHeader = true, withFooter = true, sidebarWidth = 260, isDarkMode = false }) => {
|