@deriv-web-design/ui 0.0.6 → 0.0.7
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.css +12 -10
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +19 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2352,9 +2352,9 @@ var DropdownPanel = ({ item, onMouseEnter, onMouseLeave }) => {
|
|
|
2352
2352
|
onMouseEnter,
|
|
2353
2353
|
onMouseLeave,
|
|
2354
2354
|
children: /* @__PURE__ */ jsxs22("div", { className: "navbar__dropdown-inner", children: [
|
|
2355
|
-
/* @__PURE__ */ jsx23("div", { className: "navbar__dropdown-left", children: dropdown.columns.map((col) => /* @__PURE__ */ jsx23("div", { className: "navbar__dropdown-col", children: /* @__PURE__ */ jsxs22("div", { className: "navbar__dropdown-col-list", children: [
|
|
2356
|
-
/* @__PURE__ */ jsx23("p", { className: "navbar__dropdown-col-title", children:
|
|
2357
|
-
|
|
2355
|
+
/* @__PURE__ */ jsx23("div", { className: "navbar__dropdown-left", children: dropdown.columns.map((col, colIdx) => /* @__PURE__ */ jsx23("div", { className: "navbar__dropdown-col", children: col.sections.map((section) => /* @__PURE__ */ jsxs22("div", { className: "navbar__dropdown-col-list", children: [
|
|
2356
|
+
/* @__PURE__ */ jsx23("p", { className: "navbar__dropdown-col-title", children: section.title }),
|
|
2357
|
+
section.items.map((link) => /* @__PURE__ */ jsxs22(
|
|
2358
2358
|
"a",
|
|
2359
2359
|
{
|
|
2360
2360
|
href: link.href,
|
|
@@ -2368,7 +2368,7 @@ var DropdownPanel = ({ item, onMouseEnter, onMouseLeave }) => {
|
|
|
2368
2368
|
},
|
|
2369
2369
|
link.href
|
|
2370
2370
|
))
|
|
2371
|
-
] }) },
|
|
2371
|
+
] }, section.title)) }, colIdx)) }),
|
|
2372
2372
|
dropdown.feature && /* @__PURE__ */ jsx23("div", { className: "navbar__dropdown-right", children: /* @__PURE__ */ jsx23(FeatureCard, { feature: dropdown.feature }) })
|
|
2373
2373
|
] })
|
|
2374
2374
|
}
|
|
@@ -2435,24 +2435,20 @@ var DrawerAccordion = ({ item, isOpen, onToggle }) => {
|
|
|
2435
2435
|
exit: "hidden",
|
|
2436
2436
|
transition: { duration: 0.22, ease: EASE_OUT_EXPO },
|
|
2437
2437
|
children: /* @__PURE__ */ jsxs22("div", { className: "navbar__drawer-panel-inner", children: [
|
|
2438
|
-
/* @__PURE__ */ jsx23("div", { className: "navbar__drawer-panel-cols", children:
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
"
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
link.href
|
|
2453
|
-
)) })
|
|
2454
|
-
] }, col.title)) }, colIdx);
|
|
2455
|
-
}) }),
|
|
2438
|
+
/* @__PURE__ */ jsx23("div", { className: "navbar__drawer-panel-cols", children: dropdown.columns.map((col, colIdx) => /* @__PURE__ */ jsx23("div", { className: "navbar__drawer-panel-col", children: col.sections.map((section) => /* @__PURE__ */ jsxs22("div", { className: "navbar__drawer-col-section", children: [
|
|
2439
|
+
/* @__PURE__ */ jsx23("p", { className: "navbar__drawer-col-title", children: section.title }),
|
|
2440
|
+
/* @__PURE__ */ jsx23("div", { className: "navbar__drawer-col-links", children: section.items.map((link) => /* @__PURE__ */ jsx23(
|
|
2441
|
+
"a",
|
|
2442
|
+
{
|
|
2443
|
+
href: link.href,
|
|
2444
|
+
className: "navbar__drawer-link",
|
|
2445
|
+
target: link.external ? "_blank" : void 0,
|
|
2446
|
+
rel: link.external ? "noopener noreferrer" : void 0,
|
|
2447
|
+
children: link.label
|
|
2448
|
+
},
|
|
2449
|
+
link.href
|
|
2450
|
+
)) })
|
|
2451
|
+
] }, section.title)) }, colIdx)) }),
|
|
2456
2452
|
dropdown.feature && /* @__PURE__ */ jsx23(FeatureCard, { feature: dropdown.feature, mobile: true })
|
|
2457
2453
|
] })
|
|
2458
2454
|
}
|
|
@@ -2594,7 +2590,7 @@ var Navbar = ({
|
|
|
2594
2590
|
onMouseEnter: clearHoverTimeout,
|
|
2595
2591
|
onMouseLeave: handleNavLeave
|
|
2596
2592
|
},
|
|
2597
|
-
|
|
2593
|
+
"dropdown"
|
|
2598
2594
|
) }),
|
|
2599
2595
|
/* @__PURE__ */ jsxs22("div", { className: "navbar__actions", children: [
|
|
2600
2596
|
loginHref && /* @__PURE__ */ jsx23("a", { href: loginHref, className: "navbar__actions-login", children: /* @__PURE__ */ jsx23(
|