@moises.ai/design-system 4.16.3 → 4.16.4

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.js CHANGED
@@ -2476,16 +2476,22 @@ const jm = "_menuContent_rvu92_1", Gm = "_menuSubContent_rvu92_2", Ym = "_slideD
2476
2476
  ]
2477
2477
  }
2478
2478
  ),
2479
- /* @__PURE__ */ s(n.SubContent, { className: $.menuSubContent, children: (d = r == null ? void 0 : r.children) == null ? void 0 : d.map(
2480
- (u) => t(
2481
- u,
2482
- a,
2483
- o,
2484
- i,
2485
- l,
2486
- c
2487
- )
2488
- ) })
2479
+ /* @__PURE__ */ s(
2480
+ n.SubContent,
2481
+ {
2482
+ className: k($.menuSubContent, r.subContentClassName),
2483
+ children: (d = r == null ? void 0 : r.children) == null ? void 0 : d.map(
2484
+ (u) => t(
2485
+ u,
2486
+ a,
2487
+ o,
2488
+ i,
2489
+ l,
2490
+ c
2491
+ )
2492
+ )
2493
+ }
2494
+ )
2489
2495
  ] }, r.key);
2490
2496
  case "item":
2491
2497
  return /* @__PURE__ */ C(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moises.ai/design-system",
3
- "version": "4.16.3",
3
+ "version": "4.16.4",
4
4
  "description": "Design System package based on @radix-ui/themes with custom defaults",
5
5
  "private": false,
6
6
  "type": "module",
@@ -93,6 +93,7 @@ The \`options\` prop accepts an array of objects with the following types:
93
93
  label: 'Submenu Label', // Text to display
94
94
  children: [], // Array of menu items for the submenu
95
95
  color: 'red' | 'cyan', // Optional: custom color for this submenu trigger
96
+ subContentClassName: 'my-submenu', // Optional: extra className applied to the submenu content (portalized), useful for overriding upstream styles per submenu instance
96
97
  }
97
98
  \`\`\`
98
99
 
@@ -80,7 +80,9 @@ export const createRenderItem = (MenuPrimitives) => {
80
80
  </div>
81
81
  </MenuPrimitives.SubTrigger>
82
82
 
83
- <MenuPrimitives.SubContent className={styles.menuSubContent}>
83
+ <MenuPrimitives.SubContent
84
+ className={classNames(styles.menuSubContent, opt.subContentClassName)}
85
+ >
84
86
  {opt?.children?.map((child) =>
85
87
  renderItem(
86
88
  child,