@ztwoint/z-ui 0.1.20 → 0.1.22

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,32 +1,32 @@
1
- import { jsx as o, jsxs as e } from "react/jsx-runtime";
2
- import * as t from "@radix-ui/react-tooltip";
1
+ import { jsx as o, jsxs as t } from "react/jsx-runtime";
2
+ import * as r from "@radix-ui/react-tooltip";
3
3
  import { cn as s } from "../../lib/utils.js";
4
- const m = ({
5
- message: a,
6
- children: r,
7
- delayDuration: i = 300,
8
- side: d = "top",
9
- className: n,
10
- ...l
11
- }) => /* @__PURE__ */ o(t.Provider, { delayDuration: i, children: /* @__PURE__ */ e(t.Root, { children: [
12
- /* @__PURE__ */ o(t.Trigger, { asChild: !0, children: r }),
13
- /* @__PURE__ */ o(t.Portal, { children: /* @__PURE__ */ e(
14
- t.Content,
4
+ const c = ({
5
+ message: e,
6
+ children: i,
7
+ delayDuration: n = 300,
8
+ side: a = "top",
9
+ className: l,
10
+ ...d
11
+ }) => /* @__PURE__ */ o(r.Provider, { delayDuration: n, children: /* @__PURE__ */ t(r.Root, { children: [
12
+ /* @__PURE__ */ o(r.Trigger, { asChild: !0, children: i }),
13
+ /* @__PURE__ */ o(r.Portal, { children: /* @__PURE__ */ t(
14
+ r.Content,
15
15
  {
16
- side: d,
16
+ side: a,
17
17
  className: s(
18
- "bg-[var(--color-neutral-950)] border-none text-white leading-none-regular-sm animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-1 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
19
- n
18
+ "bg-[var(--color-neutral-950)] border-none text-white leading-none-regular-sm z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
19
+ l
20
20
  ),
21
- ...l,
21
+ ...d,
22
22
  children: [
23
- a,
24
- /* @__PURE__ */ o(t.Arrow, { className: "bg-[var(--color-neutral-950)] z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
23
+ e,
24
+ /* @__PURE__ */ o(r.Arrow, { className: "bg-[var(--color-neutral-950)] z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
25
25
  ]
26
26
  }
27
27
  ) })
28
28
  ] }) });
29
- m.displayName = "Z2Tooltip";
29
+ c.displayName = "Z2Tooltip";
30
30
  export {
31
- m as Z2Tooltip
31
+ c as Z2Tooltip
32
32
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztwoint/z-ui",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",