@nattstack/ui 0.0.49 → 0.0.50

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.
@@ -173,7 +173,6 @@ interface MenuContentProps extends Omit<Menu$1.Popup.Props, "className">, Pick<M
173
173
  className?: string;
174
174
  container?: Menu$1.Portal.Props["container"];
175
175
  keepMounted?: Menu$1.Portal.Props["keepMounted"];
176
- showArrow?: boolean;
177
176
  }
178
177
  declare function MenuContent(props: MenuContentProps): JSX.Element;
179
178
  //#endregion
@@ -422,10 +422,11 @@ function MenuCheckboxItem(props) {
422
422
  //#endregion
423
423
  //#region src/components/menu/menu-content.tsx
424
424
  function MenuContent(props) {
425
- const { align = "start", alignOffset = void 0, anchor = void 0, arrowPadding = void 0, children, className: customClassName = "", collisionAvoidance = void 0, collisionBoundary = void 0, collisionPadding = void 0, container = void 0, disableAnchorTracking = void 0, keepMounted = void 0, positionMethod = void 0, showArrow = false, side = "bottom", sideOffset = 8, sticky = void 0, ...rest } = props;
425
+ const { align = "start", alignOffset = void 0, anchor = void 0, arrowPadding = void 0, children, className: customClassName = "", collisionAvoidance = void 0, collisionBoundary = void 0, collisionPadding = void 0, container = void 0, disableAnchorTracking = void 0, keepMounted = void 0, positionMethod = void 0, side = "bottom", sideOffset = 8, sticky = void 0, ...rest } = props;
426
426
  const combinedClassName = getMenuClassName(MENU_CLASS_NAME.CONTENT, customClassName);
427
427
  return /* @__PURE__ */ jsx(Menu$1.Portal, {
428
428
  container,
429
+ "data-slot": "menu-portal",
429
430
  keepMounted,
430
431
  children: /* @__PURE__ */ jsx(Menu$1.Positioner, {
431
432
  align,
@@ -436,26 +437,17 @@ function MenuContent(props) {
436
437
  collisionAvoidance,
437
438
  collisionBoundary,
438
439
  collisionPadding,
440
+ "data-slot": "menu-positioner",
439
441
  disableAnchorTracking,
440
442
  positionMethod,
441
443
  side,
442
444
  sideOffset,
443
445
  sticky,
444
- children: /* @__PURE__ */ jsxs(Menu$1.Popup, {
446
+ children: /* @__PURE__ */ jsx(Menu$1.Popup, {
445
447
  className: combinedClassName,
446
448
  "data-slot": "menu-content",
447
449
  ...rest,
448
- children: [showArrow && /* @__PURE__ */ jsx(Menu$1.Arrow, {
449
- className: MENU_CLASS_NAME.ARROW,
450
- children: /* @__PURE__ */ jsx("svg", {
451
- className: MENU_CLASS_NAME.ARROW_ICON,
452
- fill: "none",
453
- height: "6",
454
- viewBox: "0 0 12 6",
455
- width: "12",
456
- children: /* @__PURE__ */ jsx("path", { d: "M0 6L5.15 0.85C5.62 0.38 6.38 0.38 6.85 0.85L12 6H0Z" })
457
- })
458
- }), children]
450
+ children
459
451
  })
460
452
  })
461
453
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nattstack/ui",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "description": "A collection of reusable React components built with Base UI, TypeScript, and CSS Modules",
5
5
  "keywords": [
6
6
  "base-ui",