@konstructio/ui 0.1.2-alpha.10 → 0.1.2-alpha.11

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.
@@ -1,21 +1,22 @@
1
- import { jsxs as l, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import { Button as r } from "../../../Button/Button.js";
3
- import { c } from "../../../../createLucideIcon-D2CN7Ma9.js";
3
+ import { cn as s } from "../../../../utils/index.js";
4
+ import { c as n } from "../../../../createLucideIcon-D2CN7Ma9.js";
4
5
  /**
5
6
  * @license lucide-react v0.545.0 - ISC
6
7
  *
7
8
  * This source code is licensed under the ISC license.
8
9
  * See the LICENSE file in the root directory of this source tree.
9
10
  */
10
- const s = [
11
+ const d = [
11
12
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
12
13
  ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
13
14
  ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
14
- ], n = c("ellipsis-vertical", s), u = ({
15
+ ], h = n("ellipsis-vertical", d), g = ({
15
16
  actions: t,
16
- ...o
17
- }) => t ? /* @__PURE__ */ l("div", { className: "relative group w-fit", children: [
18
- /* @__PURE__ */ l(
17
+ ...l
18
+ }) => t ? /* @__PURE__ */ o("div", { className: "relative group w-fit", children: [
19
+ /* @__PURE__ */ o(
19
20
  r,
20
21
  {
21
22
  variant: "text",
@@ -24,23 +25,26 @@ const s = [
24
25
  className: "text-slate-400 group-hover:text-slate-800 group-hover:bg-aurora-50",
25
26
  role: "presentation",
26
27
  children: [
27
- /* @__PURE__ */ e(n, { "aria-hidden": "true", className: "w-7 h-7" }),
28
+ /* @__PURE__ */ e(h, { "aria-hidden": "true", className: "w-7 h-7" }),
28
29
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Show Actions" })
29
30
  ]
30
31
  }
31
32
  ),
32
- /* @__PURE__ */ e("div", { className: "absolute top-full right-0 w-[215px] hidden group-hover:block z-10", children: /* @__PURE__ */ e("div", { className: "bg-white mt-0.5 py-2 rounded-lg shadow-lg border border-zinc-100 animate-in fade-in-0", children: t.map(({ label: i, onClick: a }) => /* @__PURE__ */ e(
33
+ /* @__PURE__ */ e("div", { className: "absolute top-full right-0 w-[215px] hidden group-hover:block z-10", children: /* @__PURE__ */ e("div", { className: "bg-white mt-0.5 py-2 rounded-lg shadow-lg border border-zinc-100 animate-in fade-in-0", children: t.map(({ label: i, onClick: a, className: c }) => /* @__PURE__ */ e(
33
34
  r,
34
35
  {
35
- className: "w-full text-slate-800 cursor-pointer p-0 h-9 flex gap-2 text-sm font-normal justify-start hover:bg-gray-50 hover:text-slate-800 rounded-none px-6",
36
+ className: s(
37
+ "w-full text-slate-800 cursor-pointer p-0 h-9 flex gap-2 text-sm font-normal justify-start hover:bg-gray-50 hover:text-slate-800 rounded-none px-6",
38
+ c
39
+ ),
36
40
  variant: "text",
37
41
  asChild: !0,
38
42
  role: "presentation",
39
- children: /* @__PURE__ */ e(r, { onClick: () => a(o.row.original), children: i })
43
+ children: /* @__PURE__ */ e(r, { onClick: () => a(l.row.original), children: i })
40
44
  },
41
45
  i
42
46
  )) }) })
43
47
  ] }) : null;
44
48
  export {
45
- u as Actions
49
+ g as Actions
46
50
  };
package/dist/index.d.ts CHANGED
@@ -26,8 +26,9 @@ import { TabsContentProps } from '@radix-ui/react-tabs';
26
26
  import { VariantProps } from 'class-variance-authority';
27
27
 
28
28
  declare type Action<TData> = {
29
- label: string;
29
+ label: string | React.ReactNode;
30
30
  onClick: (rowData: TData) => void;
31
+ className?: string;
31
32
  };
32
33
 
33
34
  export declare const Alert: FC<AlertProps>;
package/dist/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@konstructio/ui",
3
3
  "description": "A set of reusable and customizable React components built for konstruct.io",
4
4
  "private": false,
5
- "version": "0.1.2-alpha.9",
5
+ "version": "0.1.2-alpha.10",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@konstructio/ui",
3
3
  "description": "A set of reusable and customizable React components built for konstruct.io",
4
4
  "private": false,
5
- "version": "0.1.2-alpha.10",
5
+ "version": "0.1.2-alpha.11",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",