@pactor-app/ui 0.1.0 → 1.1.0

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,18 +1,19 @@
1
+ import {
2
+ Icon
3
+ } from "./chunk-6JNCDPGS.js";
1
4
  import {
2
5
  Accordion,
3
6
  AccordionContent,
4
7
  AccordionItem,
5
8
  AccordionTrigger,
6
- Popover,
7
- PopoverContent,
8
- PopoverTrigger
9
- } from "./chunk-SNFDI77B.js";
10
- import {
11
9
  Card,
12
10
  CardContent,
13
11
  CardHeader,
14
- CardTitle
15
- } from "./chunk-57NRUZ5G.js";
12
+ CardTitle,
13
+ Popover,
14
+ PopoverContent,
15
+ PopoverTrigger
16
+ } from "./chunk-GL7IO22L.js";
16
17
  import {
17
18
  cn
18
19
  } from "./chunk-RQHJBTEU.js";
@@ -118,7 +119,7 @@ function navigateMenuItem(menu, bridge) {
118
119
  }
119
120
  bridge.push(menu.path);
120
121
  }
121
- var menuItemClass = "flex w-full cursor-pointer items-center rounded-md px-3 py-2 text-left text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground disabled:pointer-events-none disabled:opacity-50";
122
+ var menuItemClass = "flex w-full cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-left text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground disabled:pointer-events-none disabled:opacity-50";
122
123
  function CollapsedGroupFlyout({
123
124
  menu,
124
125
  registry,
@@ -258,7 +259,10 @@ function MenuTree({
258
259
  className: cn(menuItemClass, "py-2 font-medium"),
259
260
  disabled: menu.disabled,
260
261
  title: menu.title,
261
- children: menu.title
262
+ children: /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-2", children: [
263
+ menu.icon ? /* @__PURE__ */ jsx(Icon, { name: menu.icon, size: "sm" }) : null,
264
+ menu.title
265
+ ] })
262
266
  }
263
267
  ),
264
268
  /* @__PURE__ */ jsx(AccordionContent, { "data-slot": "menu-group-content", className: "pb-1", children: /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-0.5 pl-3", children: /* @__PURE__ */ jsx(
@@ -276,7 +280,7 @@ function MenuTree({
276
280
  menu.id
277
281
  );
278
282
  }
279
- return /* @__PURE__ */ jsx(
283
+ return /* @__PURE__ */ jsxs(
280
284
  "button",
281
285
  {
282
286
  type: "button",
@@ -289,7 +293,10 @@ function MenuTree({
289
293
  disabled: menu.disabled,
290
294
  title: menu.title,
291
295
  onClick: () => navigateMenuItem(registry.findById(menu.id), bridge),
292
- children: menu.title
296
+ children: [
297
+ menu.icon ? /* @__PURE__ */ jsx(Icon, { name: menu.icon, size: "sm" }) : null,
298
+ menu.title
299
+ ]
293
300
  },
294
301
  menu.id
295
302
  );