@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 +19 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -16
- package/dist/index.js.map +1 -1
- package/dist/styles/variables.css +66 -45
- package/package.json +1 -1
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$
|
|
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: "
|
|
1683
|
-
children:
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
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
|
}) });
|