@mercurjs/vendor 2.3.6-canary.10 → 2.3.6-canary.11

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
  import {
2
2
  useSettingsLandingRoute
3
- } from "./chunk-A4MHEFSG.js";
3
+ } from "./chunk-YYLEPTL5.js";
4
4
 
5
5
  // src/pages/settings/settings.tsx
6
6
  import { Navigate, Outlet, useLocation } from "react-router-dom";
@@ -1474,6 +1474,7 @@ import {
1474
1474
  CreditCardRefresh,
1475
1475
  EllipsisHorizontal as EllipsisHorizontal2,
1476
1476
  MagnifyingGlass as MagnifyingGlass2,
1477
+ MinusMini,
1477
1478
  Plus as Plus2,
1478
1479
  ReceiptPercent,
1479
1480
  ShoppingCart,
@@ -1481,8 +1482,16 @@ import {
1481
1482
  Tag,
1482
1483
  Users
1483
1484
  } from "@medusajs/icons";
1484
- import { Avatar as Avatar2, Divider, DropdownMenu as DropdownMenu3, Text as Text5, clx as clx5 } from "@medusajs/ui";
1485
- import { useMemo as useMemo4 } from "react";
1485
+ import {
1486
+ Avatar as Avatar2,
1487
+ Divider,
1488
+ DropdownMenu as DropdownMenu3,
1489
+ IconButton as IconButton4,
1490
+ Text as Text5,
1491
+ clx as clx5
1492
+ } from "@medusajs/ui";
1493
+ import { Fragment as Fragment2, useMemo as useMemo4 } from "react";
1494
+ import { Collapsible as RadixCollapsible2 } from "radix-ui";
1486
1495
  import { useTranslation as useTranslation8 } from "react-i18next";
1487
1496
  import { useLocation as useLocation6, useNavigate as useNavigate4 } from "react-router-dom";
1488
1497
 
@@ -2465,7 +2474,7 @@ import {
2465
2474
  useExtension,
2466
2475
  usePermissions as usePermissions2
2467
2476
  } from "@mercurjs/dashboard-shared";
2468
- import { Fragment as Fragment2, jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
2477
+ import { Fragment as Fragment3, jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
2469
2478
  var navId = (to) => to.replace(/^\//, "");
2470
2479
  var toCoreNavItem = (route) => ({
2471
2480
  id: navId(route.to),
@@ -2556,11 +2565,16 @@ var MainSidebar = () => {
2556
2565
  /* @__PURE__ */ jsx10("div", { className: "px-3", children: /* @__PURE__ */ jsx10(Divider, { variant: "dashed" }) })
2557
2566
  ] }),
2558
2567
  /* @__PURE__ */ jsxs7("div", { className: "flex flex-1 flex-col justify-between", children: [
2559
- /* @__PURE__ */ jsx10("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ jsxs7("nav", { className: "flex flex-col gap-y-1 py-3", children: [
2560
- /* @__PURE__ */ jsx10(Searchbar, {}),
2561
- ungrouped.map((route) => /* @__PURE__ */ jsx10(NavItem, { ...route }, route.to)),
2562
- groups.map((group) => /* @__PURE__ */ jsx10(SidebarGroup, { group }, group.id))
2563
- ] }) }),
2568
+ /* @__PURE__ */ jsxs7("div", { className: "flex flex-1 flex-col", children: [
2569
+ /* @__PURE__ */ jsxs7("nav", { className: "flex flex-col gap-y-1 py-3", children: [
2570
+ /* @__PURE__ */ jsx10(Searchbar, {}),
2571
+ ungrouped.map((route) => /* @__PURE__ */ jsx10(NavItem, { ...route }, route.to))
2572
+ ] }),
2573
+ groups.map((group) => /* @__PURE__ */ jsxs7(Fragment2, { children: [
2574
+ /* @__PURE__ */ jsx10("div", { className: "px-3", children: /* @__PURE__ */ jsx10(Divider, { variant: "dashed" }) }),
2575
+ /* @__PURE__ */ jsx10(SidebarGroup, { group })
2576
+ ] }, group.id))
2577
+ ] }),
2564
2578
  /* @__PURE__ */ jsx10(UtilitySection, {})
2565
2579
  ] })
2566
2580
  ] }) });
@@ -2568,22 +2582,35 @@ var MainSidebar = () => {
2568
2582
  var SidebarGroup = ({ group }) => {
2569
2583
  const { t } = useTranslation8(group.translationNs);
2570
2584
  return /* @__PURE__ */ jsxs7(
2571
- "div",
2585
+ RadixCollapsible2.Root,
2572
2586
  {
2573
- className: "flex flex-col gap-y-1 pt-2",
2587
+ defaultOpen: true,
2588
+ className: "py-3",
2574
2589
  "data-testid": `sidebar-group-${group.id}`,
2575
2590
  children: [
2576
- /* @__PURE__ */ jsx10("div", { className: "px-3", children: /* @__PURE__ */ jsx10(
2591
+ /* @__PURE__ */ jsx10("div", { className: "px-3", children: /* @__PURE__ */ jsxs7(
2577
2592
  "div",
2578
2593
  {
2579
2594
  className: clx5(
2580
- "flex h-7 items-center overflow-hidden whitespace-nowrap px-2 text-ui-fg-muted",
2595
+ "flex h-7 items-center justify-between overflow-hidden whitespace-nowrap px-2 text-ui-fg-muted",
2581
2596
  SIDEBAR_RAIL_FADE
2582
2597
  ),
2583
- children: /* @__PURE__ */ jsx10(Text5, { size: "small", leading: "compact", children: group.translationNs ? t(group.label) : group.label })
2598
+ children: [
2599
+ /* @__PURE__ */ jsx10(Text5, { size: "small", leading: "compact", children: group.translationNs ? t(group.label) : group.label }),
2600
+ /* @__PURE__ */ jsx10(RadixCollapsible2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx10(
2601
+ IconButton4,
2602
+ {
2603
+ size: "2xsmall",
2604
+ variant: "transparent",
2605
+ className: "static",
2606
+ "data-testid": `sidebar-group-${group.id}-toggle`,
2607
+ children: /* @__PURE__ */ jsx10(MinusMini, { className: "text-ui-fg-muted" })
2608
+ }
2609
+ ) })
2610
+ ]
2584
2611
  }
2585
2612
  ) }),
2586
- group.items.map((route) => /* @__PURE__ */ jsx10(NavItem, { ...route }, route.to))
2613
+ /* @__PURE__ */ jsx10(RadixCollapsible2.Content, { children: /* @__PURE__ */ jsx10("div", { className: "pt-0.5", children: /* @__PURE__ */ jsx10("nav", { className: "flex flex-col gap-y-1", children: group.items.map((route) => /* @__PURE__ */ jsx10(NavItem, { ...route }, route.to)) }) }) })
2587
2614
  ]
2588
2615
  }
2589
2616
  );
@@ -2599,7 +2626,7 @@ var StoreList = ({ currentSellerId }) => {
2599
2626
  await selectSeller({ seller_id: sellerId });
2600
2627
  navigate("/", { replace: true });
2601
2628
  };
2602
- return /* @__PURE__ */ jsxs7(Fragment2, { children: [
2629
+ return /* @__PURE__ */ jsxs7(Fragment3, { children: [
2603
2630
  !!seller_members?.length && /* @__PURE__ */ jsx10(DropdownMenu3.RadioGroup, { value: currentSellerId, children: seller_members.map((member) => {
2604
2631
  const seller = member.seller;
2605
2632
  return /* @__PURE__ */ jsxs7(
@@ -7,7 +7,7 @@ import {
7
7
  getMenuItemsByType,
8
8
  useExpandedSidebar,
9
9
  useLandingRoute
10
- } from "./chunk-SXFFUU76.js";
10
+ } from "./chunk-O6JXFJ27.js";
11
11
 
12
12
  // src/components/layout/settings-layout/settings-layout.tsx
13
13
  import { ArrowUturnLeft, MinusMini } from "@medusajs/icons";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useLandingRoute
3
- } from "./chunk-SXFFUU76.js";
3
+ } from "./chunk-O6JXFJ27.js";
4
4
  import "./chunk-C6SUTRP2.js";
5
5
  import "./chunk-LAVHRER2.js";
6
6
  import "./chunk-Y7QKP6QU.js";
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SettingsLayout
3
- } from "./chunk-A4MHEFSG.js";
3
+ } from "./chunk-YYLEPTL5.js";
4
4
  import "./chunk-FMFVTERD.js";
5
5
  import {
6
6
  ErrorBoundary,
@@ -10,7 +10,7 @@ import {
10
10
  ThemeProvider,
11
11
  createRouteMap,
12
12
  getRoutesByType
13
- } from "./chunk-SXFFUU76.js";
13
+ } from "./chunk-O6JXFJ27.js";
14
14
  import "./chunk-C6SUTRP2.js";
15
15
  import {
16
16
  TabbedForm,
@@ -164,7 +164,7 @@ function getRouteMap({
164
164
  {
165
165
  path: "/",
166
166
  errorElement: /* @__PURE__ */ jsx3(ErrorBoundary, {}),
167
- lazy: () => import("./home-2YFO2XMD.js")
167
+ lazy: () => import("./home-NLS7AJEB.js")
168
168
  },
169
169
  {
170
170
  path: "/products",
@@ -1193,7 +1193,7 @@ function getRouteMap({
1193
1193
  {
1194
1194
  index: true,
1195
1195
  errorElement: /* @__PURE__ */ jsx3(ErrorBoundary, {}),
1196
- lazy: () => import("./settings-UMETMOBF.js")
1196
+ lazy: () => import("./settings-2UKS7BQQ.js")
1197
1197
  },
1198
1198
  // PROFILE
1199
1199
  {
@@ -21,7 +21,7 @@ import {
21
21
  } from "../chunk-WBS4CTG3.js";
22
22
  import {
23
23
  Component
24
- } from "../chunk-KGLQNWMA.js";
24
+ } from "../chunk-L76W4KEU.js";
25
25
  import {
26
26
  ReviewListPage
27
27
  } from "../chunk-HPUEHOQE.js";
@@ -97,9 +97,9 @@ import "../chunk-T35QBLG7.js";
97
97
  import "../chunk-XCHKUSUU.js";
98
98
  import "../chunk-MDABSESI.js";
99
99
  import "../chunk-JRTZWK77.js";
100
- import "../chunk-A4MHEFSG.js";
100
+ import "../chunk-YYLEPTL5.js";
101
101
  import "../chunk-FMFVTERD.js";
102
- import "../chunk-SXFFUU76.js";
102
+ import "../chunk-O6JXFJ27.js";
103
103
  import "../chunk-C6SUTRP2.js";
104
104
  import {
105
105
  ProductListPage,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Component
3
- } from "./chunk-KGLQNWMA.js";
4
- import "./chunk-A4MHEFSG.js";
5
- import "./chunk-SXFFUU76.js";
3
+ } from "./chunk-L76W4KEU.js";
4
+ import "./chunk-YYLEPTL5.js";
5
+ import "./chunk-O6JXFJ27.js";
6
6
  import "./chunk-C6SUTRP2.js";
7
7
  import "./chunk-LAVHRER2.js";
8
8
  import "./chunk-Y7QKP6QU.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mercurjs/vendor",
3
- "version": "2.3.6-canary.10",
3
+ "version": "2.3.6-canary.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mercurjs/mercur",
@@ -37,8 +37,8 @@
37
37
  "lint": "oxlint --max-warnings 0"
38
38
  },
39
39
  "dependencies": {
40
- "@mercurjs/dashboard-shared": "2.3.6-canary.10",
41
- "@mercurjs/client": "2.3.6-canary.10",
40
+ "@mercurjs/dashboard-shared": "2.3.6-canary.11",
41
+ "@mercurjs/client": "2.3.6-canary.11",
42
42
  "@ariakit/react": "^0.4.15",
43
43
  "@babel/runtime": "^8.0.0",
44
44
  "@dnd-kit/core": "^6.1.0",
@@ -91,9 +91,9 @@
91
91
  "tsup": "^8.0.2",
92
92
  "typescript": "5.9.3",
93
93
  "@medusajs/types": "2.21.2",
94
- "@mercurjs/core": "2.3.6-canary.10",
95
- "@mercurjs/dashboard-sdk": "2.3.6-canary.10",
96
- "@mercurjs/types": "2.3.6-canary.10",
94
+ "@mercurjs/core": "2.3.6-canary.11",
95
+ "@mercurjs/dashboard-sdk": "2.3.6-canary.11",
96
+ "@mercurjs/types": "2.3.6-canary.11",
97
97
  "react-router-dom": "7.18.1"
98
98
  }
99
99
  }