@matthiaskrijgsman/mat-ui 0.0.52 → 0.0.55

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
@@ -471,7 +471,7 @@ const usePointerDrag = (onPosition) => {
471
471
  }
472
472
  };
473
473
  };
474
- const baseClassName = "flex flex-col dropdown-panel border-[length:var(--border-width-input)] mt-1 rounded-[var(--border-radius-dropdown)] shadow-[var(--shadow-dropdown)] overflow-y-auto relative space-y-1";
474
+ const baseClassName = "flex flex-col dropdown-panel border-[length:var(--border-width-input)] mt-1 rounded-[var(--border-radius-dropdown)] shadow-[var(--shadow-dropdown)] overflow-x-hidden overflow-y-auto relative space-y-1";
475
475
  const paddingClasses = {
476
476
  sm: "p-2",
477
477
  md: "p-3",
@@ -1580,7 +1580,7 @@ const DropdownNavigator = (props) => {
1580
1580
  const current = stack[stack.length - 1];
1581
1581
  const levelKey = current ? current.id : "__root__";
1582
1582
  const content = current ? current.content : children;
1583
- return /* @__PURE__ */ jsx(DropdownDrilldownContext.Provider, { value: { push, pop, reset, depth: stack.length }, children: /* @__PURE__ */ jsx("div", { className: "flex flex-col overflow-hidden", children: /* @__PURE__ */ jsx(AnimatePresence, { initial: false, mode: "wait", custom: direction, children: /* @__PURE__ */ jsxs(
1583
+ return /* @__PURE__ */ jsx(DropdownDrilldownContext.Provider, { value: { push, pop, reset, depth: stack.length }, children: /* @__PURE__ */ jsx("div", { className: "flex flex-col overflow-x-hidden overflow-y-auto", children: /* @__PURE__ */ jsx(AnimatePresence, { initial: false, mode: "wait", custom: direction, children: /* @__PURE__ */ jsxs(
1584
1584
  motion.div,
1585
1585
  {
1586
1586
  custom: direction,
@@ -1589,7 +1589,7 @@ const DropdownNavigator = (props) => {
1589
1589
  animate: "center",
1590
1590
  exit: "exit",
1591
1591
  transition: { duration: 0.15, ease: "easeInOut" },
1592
- className: "flex flex-col space-y-1",
1592
+ className: "flex flex-col space-y-1 p-2",
1593
1593
  children: [
1594
1594
  current && /* @__PURE__ */ jsx(DropdownButton, { dismissOnClick: false, Icon: IconChevronLeft, onClick: pop, className: "mb-1", children: /* @__PURE__ */ jsx("span", { className: "flex-1 text-left font-[number:var(--font-weight-group-header)]", children: current.label }) }),
1595
1595
  content
@@ -1609,7 +1609,7 @@ const DropdownMenuInner = (props) => {
1609
1609
  });
1610
1610
  return /* @__PURE__ */ jsxs(Fragment, { children: [
1611
1611
  /* @__PURE__ */ jsx("div", { ref: anchorRef, className, onClick: () => setShow(!show), children: trigger }),
1612
- /* @__PURE__ */ jsx(Popover, { open: show, children: /* @__PURE__ */ jsx(DropdownPanel, { padding: "sm", children: /* @__PURE__ */ jsx(DropdownDismissContext.Provider, { value: () => setShow(false), children: /* @__PURE__ */ jsx(DropdownNavigator, { open: show, children }) }) }) })
1612
+ /* @__PURE__ */ jsx(Popover, { open: show, children: /* @__PURE__ */ jsx(DropdownPanel, { className: "!p-0", children: /* @__PURE__ */ jsx(DropdownDismissContext.Provider, { value: () => setShow(false), children: /* @__PURE__ */ jsx(DropdownNavigator, { open: show, children }) }) }) })
1613
1613
  ] });
1614
1614
  };
1615
1615
  const DropdownMenu = (props) => {
@@ -2794,7 +2794,7 @@ const InputSelectDrilldown = (props) => {
2794
2794
  }
2795
2795
  }
2796
2796
  ),
2797
- /* @__PURE__ */ jsx(Popover, { open, children: /* @__PURE__ */ jsx(DropdownPanel, { padding: "sm", style: { maxHeight }, children: /* @__PURE__ */ jsx(DropdownNavigator, { open, children: content }) }) })
2797
+ /* @__PURE__ */ jsx(Popover, { open, children: /* @__PURE__ */ jsx(DropdownPanel, { className: "!p-0", style: { maxHeight }, children: /* @__PURE__ */ jsx(DropdownNavigator, { open, children: content }) }) })
2798
2798
  ] }),
2799
2799
  /* @__PURE__ */ jsx(InputDescription, { children: description }),
2800
2800
  /* @__PURE__ */ jsx(InputError, { children: error })