@mercurjs/admin 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.
|
@@ -342,14 +342,23 @@ import {
|
|
|
342
342
|
CurrencyDollar,
|
|
343
343
|
EllipsisHorizontal as EllipsisHorizontal2,
|
|
344
344
|
MagnifyingGlass as MagnifyingGlass2,
|
|
345
|
+
MinusMini,
|
|
345
346
|
OpenRectArrowOut as OpenRectArrowOut2,
|
|
346
347
|
ReceiptPercent,
|
|
347
348
|
ShoppingCart,
|
|
348
349
|
Tag,
|
|
349
350
|
Users
|
|
350
351
|
} from "@medusajs/icons";
|
|
351
|
-
import {
|
|
352
|
-
|
|
352
|
+
import {
|
|
353
|
+
Avatar as Avatar2,
|
|
354
|
+
Divider,
|
|
355
|
+
DropdownMenu as DropdownMenu3,
|
|
356
|
+
IconButton as IconButton4,
|
|
357
|
+
Text as Text5,
|
|
358
|
+
clx as clx5
|
|
359
|
+
} from "@medusajs/ui";
|
|
360
|
+
import { Fragment as Fragment2, useMemo as useMemo4 } from "react";
|
|
361
|
+
import { Collapsible as RadixCollapsible2 } from "radix-ui";
|
|
353
362
|
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
354
363
|
import { Link as Link3, useLocation as useLocation5, useNavigate as useNavigate4 } from "react-router-dom";
|
|
355
364
|
|
|
@@ -2570,18 +2579,23 @@ var MainSidebar = () => {
|
|
|
2570
2579
|
}
|
|
2571
2580
|
),
|
|
2572
2581
|
/* @__PURE__ */ jsxs7("div", { className: "flex flex-1 flex-col justify-between", children: [
|
|
2573
|
-
/* @__PURE__ */
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2582
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex flex-1 flex-col", children: [
|
|
2583
|
+
/* @__PURE__ */ jsxs7(
|
|
2584
|
+
"nav",
|
|
2585
|
+
{
|
|
2586
|
+
className: "flex flex-col gap-y-1 py-3",
|
|
2587
|
+
"data-testid": "sidebar-core-routes",
|
|
2588
|
+
children: [
|
|
2589
|
+
/* @__PURE__ */ jsx10(Searchbar, {}),
|
|
2590
|
+
ungrouped.map((route) => /* @__PURE__ */ jsx10(NavItem, { ...route }, route.to))
|
|
2591
|
+
]
|
|
2592
|
+
}
|
|
2593
|
+
),
|
|
2594
|
+
groups.map((group) => /* @__PURE__ */ jsxs7(Fragment2, { children: [
|
|
2595
|
+
/* @__PURE__ */ jsx10("div", { className: "px-3", children: /* @__PURE__ */ jsx10(Divider, { variant: "dashed" }) }),
|
|
2596
|
+
/* @__PURE__ */ jsx10(SidebarGroup, { group })
|
|
2597
|
+
] }, group.id))
|
|
2598
|
+
] }),
|
|
2585
2599
|
/* @__PURE__ */ jsx10(UtilitySection, {})
|
|
2586
2600
|
] }),
|
|
2587
2601
|
/* @__PURE__ */ jsx10(
|
|
@@ -2599,22 +2613,35 @@ var MainSidebar = () => {
|
|
|
2599
2613
|
var SidebarGroup = ({ group }) => {
|
|
2600
2614
|
const { t } = useTranslation8(group.translationNs);
|
|
2601
2615
|
return /* @__PURE__ */ jsxs7(
|
|
2602
|
-
|
|
2616
|
+
RadixCollapsible2.Root,
|
|
2603
2617
|
{
|
|
2604
|
-
|
|
2618
|
+
defaultOpen: true,
|
|
2619
|
+
className: "py-3",
|
|
2605
2620
|
"data-testid": `sidebar-group-${group.id}`,
|
|
2606
2621
|
children: [
|
|
2607
|
-
/* @__PURE__ */ jsx10("div", { className: "px-3", children: /* @__PURE__ */
|
|
2622
|
+
/* @__PURE__ */ jsx10("div", { className: "px-3", children: /* @__PURE__ */ jsxs7(
|
|
2608
2623
|
"div",
|
|
2609
2624
|
{
|
|
2610
2625
|
className: clx5(
|
|
2611
|
-
"flex h-7 items-center overflow-hidden whitespace-nowrap px-2 text-ui-fg-muted",
|
|
2626
|
+
"flex h-7 items-center justify-between overflow-hidden whitespace-nowrap px-2 text-ui-fg-muted",
|
|
2612
2627
|
SIDEBAR_RAIL_FADE
|
|
2613
2628
|
),
|
|
2614
|
-
children:
|
|
2629
|
+
children: [
|
|
2630
|
+
/* @__PURE__ */ jsx10(Text5, { size: "small", leading: "compact", children: group.translationNs ? t(group.label) : group.label }),
|
|
2631
|
+
/* @__PURE__ */ jsx10(RadixCollapsible2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx10(
|
|
2632
|
+
IconButton4,
|
|
2633
|
+
{
|
|
2634
|
+
size: "2xsmall",
|
|
2635
|
+
variant: "transparent",
|
|
2636
|
+
className: "static",
|
|
2637
|
+
"data-testid": `sidebar-group-${group.id}-toggle`,
|
|
2638
|
+
children: /* @__PURE__ */ jsx10(MinusMini, { className: "text-ui-fg-muted" })
|
|
2639
|
+
}
|
|
2640
|
+
) })
|
|
2641
|
+
]
|
|
2615
2642
|
}
|
|
2616
2643
|
) }),
|
|
2617
|
-
group.items.map((route) => /* @__PURE__ */ jsx10(NavItem, { ...route }, route.to))
|
|
2644
|
+
/* @__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)) }) }) })
|
|
2618
2645
|
]
|
|
2619
2646
|
}
|
|
2620
2647
|
);
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
getMenuItemsByType,
|
|
8
8
|
useExpandedSidebar,
|
|
9
9
|
useLandingRoute
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DQ6RPO6N.js";
|
|
11
11
|
|
|
12
12
|
// src/components/layout/settings-layout/settings-layout.tsx
|
|
13
13
|
import { Fragment, useCallback, useEffect, useMemo, useState } from "react";
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import "./chunk-QR3GYYX6.js";
|
|
6
6
|
import {
|
|
7
7
|
SettingsLayout
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZNFBP5CQ.js";
|
|
9
9
|
import "./chunk-FMFVTERD.js";
|
|
10
10
|
import "./chunk-JRTZWK77.js";
|
|
11
11
|
import {
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
ThemeProvider,
|
|
17
17
|
createRouteMap,
|
|
18
18
|
getRoutesByType
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-DQ6RPO6N.js";
|
|
20
20
|
import "./chunk-C6SUTRP2.js";
|
|
21
21
|
import {
|
|
22
22
|
TabbedForm,
|
|
@@ -256,7 +256,7 @@ function getRouteMap({
|
|
|
256
256
|
{
|
|
257
257
|
path: "/",
|
|
258
258
|
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
259
|
-
lazy: () => import("./home-
|
|
259
|
+
lazy: () => import("./home-4BDQXC4T.js")
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
262
|
path: "/products",
|
|
@@ -1301,7 +1301,7 @@ function getRouteMap({
|
|
|
1301
1301
|
{
|
|
1302
1302
|
index: true,
|
|
1303
1303
|
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1304
|
-
lazy: () => import("./settings-
|
|
1304
|
+
lazy: () => import("./settings-XTXDKZEO.js")
|
|
1305
1305
|
},
|
|
1306
1306
|
{
|
|
1307
1307
|
path: "profile",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mercurjs/admin",
|
|
3
|
-
"version": "2.3.6-canary.
|
|
3
|
+
"version": "2.3.6-canary.11",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/mercurjs/mercur",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"lint": "oxlint --max-warnings 0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@mercurjs/dashboard-shared": "2.3.6-canary.
|
|
38
|
-
"@mercurjs/client": "2.3.6-canary.
|
|
37
|
+
"@mercurjs/dashboard-shared": "2.3.6-canary.11",
|
|
38
|
+
"@mercurjs/client": "2.3.6-canary.11",
|
|
39
39
|
"@ariakit/react": "^0.4.15",
|
|
40
40
|
"@babel/runtime": "^8.0.0",
|
|
41
41
|
"@dnd-kit/core": "^6.1.0",
|
|
@@ -88,9 +88,9 @@
|
|
|
88
88
|
"tsup": "^8.0.2",
|
|
89
89
|
"typescript": "5.9.3",
|
|
90
90
|
"@medusajs/types": "2.21.2",
|
|
91
|
-
"@mercurjs/core": "2.3.6-canary.
|
|
92
|
-
"@mercurjs/dashboard-sdk": "2.3.6-canary.
|
|
93
|
-
"@mercurjs/types": "2.3.6-canary.
|
|
91
|
+
"@mercurjs/core": "2.3.6-canary.11",
|
|
92
|
+
"@mercurjs/dashboard-sdk": "2.3.6-canary.11",
|
|
93
|
+
"@mercurjs/types": "2.3.6-canary.11",
|
|
94
94
|
"react-router-dom": "7.18.1"
|
|
95
95
|
}
|
|
96
96
|
}
|