@youngonesworks/ui 0.1.105 → 0.1.108

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.cjs CHANGED
@@ -43,7 +43,7 @@ const __tiptap_starter_kit = __toESM(require("@tiptap/starter-kit"));
43
43
  //#region src/jsx-runtime-shim.ts
44
44
  const jsx = react.createElement;
45
45
  const jsxs = react.createElement;
46
- const Fragment$1 = react.Fragment;
46
+ const Fragment$2 = react.Fragment;
47
47
 
48
48
  //#endregion
49
49
  //#region src/utils/cn.ts
@@ -1667,7 +1667,6 @@ const KebabMenu = ({ title, tooltip, content, disabled = false, styleVariant = "
1667
1667
  handleToggle
1668
1668
  ]);
1669
1669
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1670
- className: "relative",
1671
1670
  "data-component": "kebabMenu",
1672
1671
  "data-testid": "kebab-menu",
1673
1672
  ref: menuRef,
@@ -1679,21 +1678,24 @@ const KebabMenu = ({ title, tooltip, content, disabled = false, styleVariant = "
1679
1678
  content: tooltip,
1680
1679
  children: button
1681
1680
  }) : button, isOpen && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1682
- className: "absolute right-0 z-10 mt-2 w-auto min-w-[200px] rounded-md border-[0.0625rem] border-gray-200 bg-white p-1 shadow-md",
1683
- children: content.map((c, index) => {
1684
- const button$1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UnstyledButton, {
1685
- onClick: () => handleItemClick(c.onClick),
1686
- className: "w-full rounded-md px-4 py-2 text-left text-sm font-normal whitespace-nowrap hover:bg-gray-50",
1687
- "aria-label": "Options Menu Item",
1688
- disabled: c.disabled,
1689
- children: c.title
1690
- });
1691
- return c.tooltip ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tooltip, {
1692
- passedOpen: false,
1693
- size: "sm",
1694
- content: c.tooltip,
1695
- children: button$1
1696
- }, index) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.default.Fragment, { children: button$1 }, index);
1681
+ className: "relative",
1682
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1683
+ className: "absolute right-0 z-10 mt-2 w-auto min-w-[200px] rounded-md border-[0.0625rem] border-gray-200 bg-white p-1 shadow-md",
1684
+ children: content.map((c, index) => {
1685
+ const button$1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UnstyledButton, {
1686
+ onClick: () => handleItemClick(c.onClick),
1687
+ className: "w-full rounded-md px-4 py-2 text-left text-sm font-normal whitespace-nowrap hover:bg-gray-50",
1688
+ "aria-label": "Options Menu Item",
1689
+ disabled: c.disabled,
1690
+ children: c.title
1691
+ });
1692
+ return c.tooltip ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tooltip, {
1693
+ passedOpen: false,
1694
+ size: "sm",
1695
+ content: c.tooltip,
1696
+ children: button$1
1697
+ }, index) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.Fragment, { children: button$1 }, index);
1698
+ })
1697
1699
  })
1698
1700
  })]
1699
1701
  }) });