lawgic-dev-kit 0.22.16 → 0.23.2

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,4 +1,5 @@
1
- var p = { exports: {} };
1
+ import { __require as r } from "../node_modules/property-expr/index.js";
2
+ var e = r();
2
3
  export {
3
- p as __module
4
+ e as p
4
5
  };
@@ -1,5 +1,5 @@
1
- import { __require as r } from "../node_modules/property-expr/index.js";
2
- var e = r();
1
+ import { __require as r } from "../node_modules/tiny-case/index.js";
2
+ var a = r();
3
3
  export {
4
- e as p
4
+ a as t
5
5
  };
@@ -1,5 +1,7 @@
1
- import { __require as r } from "../node_modules/tiny-case/index.js";
2
- var a = r();
1
+ import { getDefaultExportFromCjs as o } from "./_commonjsHelpers.js";
2
+ import { __require as r } from "../node_modules/toposort/index.js";
3
+ var t = r();
4
+ const s = /* @__PURE__ */ o(t);
3
5
  export {
4
- a as t
6
+ s as default
5
7
  };
@@ -1,7 +1,4 @@
1
- import { getDefaultExportFromCjs as o } from "./_commonjsHelpers.js";
2
- import { __require as r } from "../node_modules/toposort/index.js";
3
- var t = r();
4
- const s = /* @__PURE__ */ o(t);
1
+ var p = { exports: {} };
5
2
  export {
6
- s as default
3
+ p as __module
7
4
  };
@@ -1,4 +1,4 @@
1
- var e = { exports: {} };
1
+ var o = { exports: {} };
2
2
  export {
3
- e as __module
3
+ o as __module
4
4
  };
@@ -1,4 +1,4 @@
1
- var o = { exports: {} };
1
+ var e = { exports: {} };
2
2
  export {
3
- o as __module
3
+ e as __module
4
4
  };
@@ -20,15 +20,15 @@ const V = ({
20
20
  } = w({ name: e, control: c }), [s, h] = y(!1), { t: u } = N(), l = {
21
21
  sm: {
22
22
  container: "px-16 py-8",
23
- text: "text-14",
24
- label: "text-14",
23
+ text: "text-sm",
24
+ label: "text-sm",
25
25
  error: "text-sm",
26
26
  gap: "gap-8"
27
27
  },
28
28
  md: {
29
29
  container: "p-16",
30
- text: "text-body-m",
31
- label: "text-body-m",
30
+ text: "text-14",
31
+ label: "text-14",
32
32
  error: "text-sm",
33
33
  gap: "gap-8"
34
34
  }
@@ -57,16 +57,16 @@ const me = ({
57
57
  const { t: o } = Q(), [s, j] = $(!1), [v, C] = $(""), [l, S] = $(i || null), w = z(null), O = z(null), r = {
58
58
  sm: {
59
59
  container: "px-16 py-8",
60
- text: "text-14",
61
- label: "text-14",
60
+ text: "text-sm",
61
+ label: "text-sm",
62
62
  error: "text-sm",
63
63
  gap: "gap-8",
64
64
  icon: "w-12 h-12"
65
65
  },
66
66
  md: {
67
67
  container: "p-16",
68
- text: "text-body-m",
69
- label: "text-body-m",
68
+ text: "text-14",
69
+ label: "text-14",
70
70
  error: "text-sm",
71
71
  gap: "gap-8",
72
72
  icon: "w-16 h-16"
@@ -1,58 +1,58 @@
1
- import { j as l } from "../../../_virtual/jsx-runtime.js";
1
+ import { j as o } from "../../../_virtual/jsx-runtime.js";
2
2
  import { useController as w } from "react-hook-form";
3
3
  import { useTheme as v } from "../../../hooks/useTheme.js";
4
4
  import "react";
5
5
  const S = ({
6
6
  label: c,
7
- control: d,
7
+ control: x,
8
8
  name: e,
9
- placeholder: x,
9
+ placeholder: d,
10
10
  className: i = "",
11
11
  disabled: t = !1,
12
12
  leftSide: a,
13
13
  rightSide: n,
14
14
  translateKey: p = "",
15
15
  size: g = "md",
16
- ...b
16
+ ...m
17
17
  }) => {
18
18
  const {
19
- field: { value: u = "", onChange: m, ref: f, onBlur: h },
19
+ field: { value: u = "", onChange: b, ref: f, onBlur: h },
20
20
  fieldState: { error: r }
21
- } = w({ name: e, control: d }), { t: s } = v(), o = {
21
+ } = w({ name: e, control: x }), { t: s } = v(), l = {
22
22
  sm: {
23
23
  container: "px-16 py-8",
24
- text: "text-14",
25
- label: "text-14",
24
+ text: "text-sm",
25
+ label: "text-sm",
26
26
  error: "text-sm",
27
27
  gap: "gap-8"
28
28
  },
29
29
  md: {
30
30
  container: "p-16",
31
- text: "text-body-m",
32
- label: "text-body-m",
31
+ text: "text-14",
32
+ label: "text-14",
33
33
  error: "text-sm",
34
34
  gap: "gap-8"
35
35
  }
36
- }[g], y = s(e), $ = s(p);
37
- return /* @__PURE__ */ l.jsxs(
36
+ }[g], $ = s(e), y = s(p);
37
+ return /* @__PURE__ */ o.jsxs(
38
38
  "label",
39
39
  {
40
- className: `flex flex-col group select-none ${o.gap} ${t && "cursor-not-allowed"} ${i}`,
40
+ className: `flex flex-col group select-none ${l.gap} ${t && "cursor-not-allowed"} ${i}`,
41
41
  htmlFor: e,
42
42
  children: [
43
- /* @__PURE__ */ l.jsx(
43
+ /* @__PURE__ */ o.jsx(
44
44
  "h6",
45
45
  {
46
- className: `text-gray-600 font-600 leading-none group ${r && "text-red-500!"} ${o.label} ${t && "text-gray-300"}`,
46
+ className: `text-gray-600 font-600 leading-none group ${r && "text-red-500!"} ${l.label} ${t && "text-gray-300"}`,
47
47
  children: c
48
48
  }
49
49
  ),
50
- /* @__PURE__ */ l.jsxs(
50
+ /* @__PURE__ */ o.jsxs(
51
51
  "label",
52
52
  {
53
53
  htmlFor: e,
54
54
  className: `
55
- flex items-center justify-between gap-8 ${o.container}
55
+ flex items-center justify-between gap-8 ${l.container}
56
56
 
57
57
  ${r && "border-red-500!"}
58
58
 
@@ -70,26 +70,26 @@ const S = ({
70
70
  `,
71
71
  children: [
72
72
  a && a,
73
- /* @__PURE__ */ l.jsx(
73
+ /* @__PURE__ */ o.jsx(
74
74
  "input",
75
75
  {
76
76
  id: e,
77
77
  name: e,
78
78
  disabled: t,
79
- placeholder: x,
79
+ placeholder: d,
80
80
  value: u,
81
- onChange: (j) => m(j.target.value),
81
+ onChange: (j) => b(j.target.value),
82
82
  onBlur: h,
83
83
  ref: f,
84
- className: `group bg-transparent w-full h-full font-600 placeholder:font-600 select-text ${o.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-hidden`,
85
- ...b
84
+ className: `group bg-transparent w-full h-full font-600 placeholder:font-600 select-text ${l.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-hidden`,
85
+ ...m
86
86
  }
87
87
  ),
88
88
  n && n
89
89
  ]
90
90
  }
91
91
  ),
92
- (r == null ? void 0 : r.message) && /* @__PURE__ */ l.jsx("h4", { className: `font-500 text-red-500 leading-none ${o.error}`, children: s(r.message, { x: $ || y }) })
92
+ (r == null ? void 0 : r.message) && /* @__PURE__ */ o.jsx("h4", { className: `font-500 text-red-500 leading-none ${l.error}`, children: s(r.message, { x: y || $ }) })
93
93
  ]
94
94
  }
95
95
  );
@@ -1,24 +1,24 @@
1
1
  import { j as e } from "../../../_virtual/jsx-runtime.js";
2
- import { faXmark as g, faCircleInfo as s, faBell as b, faTriangleExclamation as y, faCircleCheck as h } from "../../../node_modules/@fortawesome/pro-regular-svg-icons/index.js";
2
+ import { faXmark as b, faCircleInfo as s, faBell as g, faTriangleExclamation as h, faCircleCheck as y } from "../../../node_modules/@fortawesome/pro-regular-svg-icons/index.js";
3
3
  import { FontAwesomeIcon as x } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
4
4
  import { useState as j, useEffect as f } from "react";
5
5
  import { AnimatePresence as k } from "../../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.js";
6
6
  import { motion as w } from "../../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
7
7
  const N = 500, B = ({
8
- id: p,
8
+ id: u,
9
9
  content: r,
10
- type: u = "notification",
10
+ type: d = "notification",
11
11
  duration: o = 0,
12
12
  onClose: l
13
13
  }) => {
14
14
  const [n, m] = j(!0);
15
15
  let t, a = s, i;
16
- switch (u) {
16
+ switch (d) {
17
17
  case "success":
18
- i = "text-green-500", t = "bg-green-100", a = h;
18
+ i = "text-green-500", t = "bg-green-100", a = y;
19
19
  break;
20
20
  case "error":
21
- i = "text-red-500", t = "bg-red-100", a = y;
21
+ i = "text-red-500", t = "bg-red-100", a = h;
22
22
  break;
23
23
  case "warning":
24
24
  i = "text-yellow-500", t = "bg-yellow-100", a = s;
@@ -27,7 +27,7 @@ const N = 500, B = ({
27
27
  i = "text-gray-500", t = "bg-gray-100", a = s;
28
28
  break;
29
29
  case "notification":
30
- i = "text-blue-500", t = "bg-blue-100", a = b;
30
+ i = "text-blue-500", t = "bg-blue-100", a = g;
31
31
  break;
32
32
  default:
33
33
  i = "text-blue-500", t = "bg-blue-100", a = s;
@@ -44,7 +44,7 @@ const N = 500, B = ({
44
44
  return () => clearTimeout(c);
45
45
  }
46
46
  }, [n, l]);
47
- const d = {
47
+ const p = {
48
48
  initial: {
49
49
  opacity: 0,
50
50
  y: 50,
@@ -74,28 +74,28 @@ const N = 500, B = ({
74
74
  return /* @__PURE__ */ e.jsx(k, { onExitComplete: l, children: n && /* @__PURE__ */ e.jsxs(
75
75
  w.div,
76
76
  {
77
- id: p,
78
- className: "toast w-[320px] rounded-xl border-[1.5px] p-[18px] shadow-md bg-white font-jakarta-sans",
77
+ id: u,
78
+ className: "toast w-[400px] rounded-2xl border-1 border-blue-200 p-[18px] shadow-blue-sh bg-white font-jakarta-sans",
79
79
  initial: "initial",
80
80
  animate: "animate",
81
81
  exit: "exit",
82
- variants: d,
82
+ variants: p,
83
83
  layout: !0,
84
84
  children: [
85
85
  /* @__PURE__ */ e.jsx(
86
86
  x,
87
87
  {
88
- icon: g,
88
+ icon: b,
89
89
  onClick: () => m(!1),
90
90
  className: "float-right text-lg text-[#9CA1B6] cursor-pointer"
91
91
  }
92
92
  ),
93
- /* @__PURE__ */ e.jsxs("div", { className: "space-y-16", children: [
93
+ /* @__PURE__ */ e.jsxs("div", { className: "space-y-12", children: [
94
94
  /* @__PURE__ */ e.jsxs("div", { className: "flex gap-12", children: [
95
95
  /* @__PURE__ */ e.jsx(x, { icon: a, className: `text-[20px] p-6 rounded-full self-start ${i} ${t}` }),
96
96
  /* @__PURE__ */ e.jsx("h5", { className: "text-lg font-bold text-blue-900 self-center", children: r.title })
97
97
  ] }),
98
- r.description && /* @__PURE__ */ e.jsx("span", { className: "text-sm text-gray-500 leading-[16px]", children: r.description })
98
+ r.description && /* @__PURE__ */ e.jsx("span", { className: "text-md text-gray-500 leading-[16px]", children: r.description })
99
99
  ] })
100
100
  ]
101
101
  }
@@ -22,21 +22,21 @@ const me = ({
22
22
  const [a, m] = N(!1), [l, p] = N(""), h = $(null), T = $(null), x = r.find((e) => e.value === s), n = {
23
23
  sm: {
24
24
  container: "px-16 py-8",
25
- text: "text-14",
26
- label: "text-14",
25
+ text: "text-sm",
26
+ label: "text-sm",
27
27
  error: "text-sm",
28
28
  gap: "gap-8",
29
29
  icon: "w-12 h-12",
30
- option: "text-14"
30
+ option: "text-sm"
31
31
  },
32
32
  md: {
33
33
  container: "p-16",
34
- text: "text-body-m",
35
- label: "text-body-m",
34
+ text: "text-14",
35
+ label: "text-14",
36
36
  error: "text-sm",
37
37
  gap: "gap-8",
38
38
  icon: "w-16 h-16",
39
- option: "text-body-m"
39
+ option: "text-14"
40
40
  }
41
41
  }[R], v = g(() => r.map((e) => ({
42
42
  ...e,
@@ -8,10 +8,10 @@ const w = ({
8
8
  name: t,
9
9
  error: l,
10
10
  placeholder: i,
11
- className: d = "",
11
+ className: g = "",
12
12
  disabled: e = !1,
13
13
  disabledInput: s = !1,
14
- size: g = "md",
14
+ size: d = "md",
15
15
  leftSide: a,
16
16
  rightSide: c,
17
17
  ...b
@@ -19,23 +19,23 @@ const w = ({
19
19
  const { t: x } = h(), r = {
20
20
  sm: {
21
21
  container: "px-16 py-8",
22
- text: "text-14",
23
- label: "text-14",
22
+ text: "text-sm",
23
+ label: "text-sm",
24
24
  error: "text-sm",
25
25
  gap: "gap-8"
26
26
  },
27
27
  md: {
28
28
  container: "p-16",
29
- text: "text-body-m",
30
- label: "text-body-m",
29
+ text: "text-14",
30
+ label: "text-14",
31
31
  error: "text-14",
32
32
  gap: "gap-8"
33
33
  }
34
- }[g];
34
+ }[d];
35
35
  return /* @__PURE__ */ o.jsxs(
36
36
  "label",
37
37
  {
38
- className: `flex flex-col group select-none ${r.gap} ${e && "cursor-not-allowed"} ${d}`,
38
+ className: `flex flex-col group select-none ${r.gap} ${e && "cursor-not-allowed"} ${g}`,
39
39
  htmlFor: t,
40
40
  children: [
41
41
  /* @__PURE__ */ o.jsx(
@@ -1,5 +1,5 @@
1
1
  import { j as e } from "../../../_virtual/jsx-runtime.js";
2
- import E, { useState as j, useRef as v, useCallback as _ } from "react";
2
+ import E, { useState as b, useRef as v, useCallback as _ } from "react";
3
3
  import { useFloating as q, useClick as H, useDismiss as Y, useInteractions as A, useTransitionStyles as G } from "../../../node_modules/@floating-ui/react/dist/floating-ui.react.js";
4
4
  import "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
5
5
  import "../../../_virtual/lodash.js";
@@ -25,25 +25,25 @@ const fe = ({
25
25
  size: C = "md"
26
26
  }) => {
27
27
  var y;
28
- const [l, h] = j(!1), [i, f] = j(""), $ = v(null), z = v(null), o = {
28
+ const [l, h] = b(!1), [i, f] = b(""), $ = v(null), z = v(null), o = {
29
29
  sm: {
30
30
  container: "px-16 py-8",
31
- text: "text-14",
32
- label: "text-14",
31
+ text: "text-sm",
32
+ label: "text-sm",
33
33
  icon: "w-12 h-12",
34
34
  checkboxSize: 16,
35
35
  gap: "gap-8",
36
- searchText: "text-14",
36
+ searchText: "text-sm",
37
37
  searchIcon: "size-12"
38
38
  },
39
39
  md: {
40
40
  container: "p-16",
41
- text: "text-body-m",
42
- label: "text-body-m",
41
+ text: "text-14",
42
+ label: "text-14",
43
43
  icon: "w-16 h-16",
44
44
  checkboxSize: 20,
45
45
  gap: "gap-8",
46
- searchText: "text-body-m",
46
+ searchText: "text-14",
47
47
  searchIcon: "size-16"
48
48
  }
49
49
  }[C], { x: S, y: L, strategy: M, refs: x, context: d } = q({
@@ -151,7 +151,7 @@ const fe = ({
151
151
  )
152
152
  ] }) }),
153
153
  /* @__PURE__ */ e.jsx("div", { className: "max-h-[450px] overflow-y-auto", children: g.length > 0 ? /* @__PURE__ */ e.jsx("div", { className: "py-4", children: g.map((t) => {
154
- var a, c, b;
154
+ var a, c, j;
155
155
  const s = n.includes(t.value);
156
156
  return /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
157
157
  t.dividerBefore && /* @__PURE__ */ e.jsx("div", { className: "px-16 py-8", children: /* @__PURE__ */ e.jsx("hr", { className: "border-t border-gray-200" }) }),
@@ -175,7 +175,7 @@ const fe = ({
175
175
  {
176
176
  className: `flex items-center rounded-[8px] py-4 px-8 gap-[6px] overflow-hidden ${((a = t.colors) == null ? void 0 : a.bgColor) || ""} ${((c = t.colors) == null ? void 0 : c.textColor) || ""}`,
177
177
  children: [
178
- ((b = t.colors) == null ? void 0 : b.dotColor) && /* @__PURE__ */ e.jsx(
178
+ ((j = t.colors) == null ? void 0 : j.dotColor) && /* @__PURE__ */ e.jsx(
179
179
  "span",
180
180
  {
181
181
  className: "size-6 rounded-full flex-shrink-0",
@@ -29,22 +29,22 @@ const je = ({
29
29
  const [n, i] = N(!1), [l, c] = N(""), R = w(null), B = w(null), s = {
30
30
  sm: {
31
31
  container: "px-16 py-8",
32
- text: "text-14",
33
- label: "text-14",
32
+ text: "text-sm",
33
+ label: "text-sm",
34
34
  icon: "w-12 h-12",
35
35
  checkboxSize: 16,
36
36
  gap: "gap-8",
37
- searchText: "text-14",
37
+ searchText: "text-sm",
38
38
  searchIcon: "size-12"
39
39
  },
40
40
  md: {
41
41
  container: "p-16",
42
- text: "text-body-m",
43
- label: "text-body-m",
42
+ text: "text-14",
43
+ label: "text-14",
44
44
  icon: "w-16 h-16",
45
45
  checkboxSize: 20,
46
46
  gap: "gap-8",
47
- searchText: "text-body-m",
47
+ searchText: "text-14",
48
48
  searchIcon: "size-16"
49
49
  }
50
50
  }[L], { x: I, y: O, strategy: T, refs: d, context: x } = q({
@@ -155,7 +155,7 @@ const je = ({
155
155
  )
156
156
  ] }) }),
157
157
  /* @__PURE__ */ e.jsx("div", { className: "max-h-[450px] overflow-y-auto", children: h.length > 0 ? /* @__PURE__ */ e.jsx("div", { className: "py-4", children: h.map((t) => {
158
- var b, v, k;
158
+ var v, b, k;
159
159
  const p = a === t.value;
160
160
  return /* @__PURE__ */ e.jsxs(Y.Fragment, { children: [
161
161
  t.dividerBefore && /* @__PURE__ */ e.jsx("div", { className: "px-16 py-8", children: /* @__PURE__ */ e.jsx("hr", { className: "border-t border-gray-200" }) }),
@@ -177,7 +177,7 @@ const je = ({
177
177
  /* @__PURE__ */ e.jsxs(
178
178
  "div",
179
179
  {
180
- className: `flex items-center rounded-[8px] py-4 px-8 gap-[6px] overflow-hidden ${((b = t.colors) == null ? void 0 : b.bgColor) || ""} ${((v = t.colors) == null ? void 0 : v.textColor) || ""}`,
180
+ className: `flex items-center rounded-[8px] py-4 px-8 gap-[6px] overflow-hidden ${((v = t.colors) == null ? void 0 : v.bgColor) || ""} ${((b = t.colors) == null ? void 0 : b.textColor) || ""}`,
181
181
  children: [
182
182
  ((k = t.colors) == null ? void 0 : k.dotColor) && /* @__PURE__ */ e.jsx(
183
183
  "span",
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
3
3
  type TooltipLocation = 'top' | 'bottom' | 'left' | 'right';
4
+ type TooltipBehavior = 'hover' | 'truncated' | 'both';
4
5
  interface TooltipProps {
5
6
  text: string;
6
7
  children: ReactNode;
@@ -8,14 +9,19 @@ interface TooltipProps {
8
9
  location?: TooltipLocation;
9
10
  childClassName?: string;
10
11
  forceShow?: boolean;
12
+ behavior?: TooltipBehavior;
11
13
  }
12
14
  /**
13
- * Smart Tooltip Component
14
- * * Automatically detects if the children's text is truncated.
15
- * The tooltip bubble only appears if the content overflows its container.
16
- * * Usage Note:
15
+ * Tooltip Component
16
+ *
17
+ * Supports three display behaviors via the `behavior` prop:
18
+ * - `"hover"`: Always shows the tooltip on hover.
19
+ * - `"truncated"`: Only shows the tooltip when the children's text is truncated (default).
20
+ * - `"both"`: Always shows on hover, and also detects truncation for styling.
21
+ *
22
+ * Usage Note:
17
23
  * By default, it truncates based on the parent's width. To truncate earlier,
18
24
  * pass a specific width class to `childClassName` (e.g., `max-w-[200px]`).
19
25
  */
20
- declare const Tooltip: ({ text, children, icon, location, childClassName, forceShow }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
26
+ declare const Tooltip: ({ text, children, icon, location, childClassName, forceShow, behavior }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
21
27
  export default Tooltip;
@@ -1,41 +1,52 @@
1
- import { j as r } from "../../../_virtual/jsx-runtime.js";
2
- import { useState as m, useRef as u, useLayoutEffect as h } from "react";
3
- import { FontAwesomeIcon as w } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
4
- const j = ({ text: s, children: a, icon: e, location: l = "top", childClassName: d = "", forceShow: p }) => {
5
- const [x, i] = m(!1), n = u(null), b = {
1
+ import { j as e } from "../../../_virtual/jsx-runtime.js";
2
+ import { useState as p, useRef as j, useLayoutEffect as N } from "react";
3
+ import { FontAwesomeIcon as E } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
4
+ const T = ({ text: l, children: a, icon: t, location: n = "top", childClassName: c = "", forceShow: f, behavior: o = "hover" }) => {
5
+ const [b, m] = p(!1), [u, d] = p(!1), i = j(null), h = f || o === "hover" || o === "both" || o === "truncated" && b, v = {
6
6
  top: "bottom-full left-1/2 -translate-x-1/2 mb-2 flex-col",
7
7
  bottom: "top-full left-1/2 -translate-x-1/2 mt-2 flex-col-reverse",
8
8
  left: "right-full top-1/2 -translate-y-1/2 mr-2 flex-row",
9
9
  right: "left-full top-1/2 -translate-y-1/2 ml-2 flex-row-reverse"
10
- }, c = {
10
+ }, g = {
11
11
  top: "border-l-[8px] border-l-transparent border-r-[8px] border-r-transparent border-t-[8px] border-t-gray-700",
12
12
  bottom: "border-l-[8px] border-l-transparent border-r-[8px] border-r-transparent border-b-[8px] border-b-gray-700",
13
13
  left: "border-t-[8px] border-t-transparent border-b-[8px] border-b-transparent border-l-[8px] border-l-gray-700",
14
14
  right: "border-t-[8px] border-t-transparent border-b-[8px] border-b-transparent border-r-[8px] border-r-gray-700"
15
- }, t = () => {
16
- const o = n.current;
17
- if (o) {
18
- const f = o.scrollWidth > o.offsetWidth;
19
- i(f);
15
+ }, s = () => {
16
+ const r = i.current;
17
+ if (r) {
18
+ const w = r.scrollWidth > r.offsetWidth, y = Array.from(r.querySelectorAll("*")).some(
19
+ (x) => x.scrollWidth > x.offsetWidth
20
+ );
21
+ m(w || y);
20
22
  }
21
23
  };
22
- return h(() => (t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t)), [s, a]), /* @__PURE__ */ r.jsxs("div", { className: "group relative grid min-w-0 w-full", children: [
23
- /* @__PURE__ */ r.jsx("div", { ref: n, className: `truncate ${d}`, children: a }),
24
- x || p && /* @__PURE__ */ r.jsxs("div", { className: `pointer-events-none absolute flex items-center opacity-0 transition-opacity group-hover:opacity-100 z-50 ${b[l]}`, children: [
25
- /* @__PURE__ */ r.jsx("div", { className: "bg-gray-700 p-12 rounded-[8px] shadow-xl max-w-[320px] w-max border border-gray-700/50", children: /* @__PURE__ */ r.jsxs("div", { className: `flex items-start ${e ? "gap-8" : "justify-center"}`, children: [
26
- e && /* @__PURE__ */ r.jsx("div", { className: "flex items-center h-[16px] flex-shrink-0", children: /* @__PURE__ */ r.jsx(
27
- w,
28
- {
29
- icon: e,
30
- className: "text-[16px] text-gray-100"
31
- }
32
- ) }),
33
- /* @__PURE__ */ r.jsx("p", { className: "text-[12px] text-blue-50 leading-[16px] font-normal text-left", children: s })
34
- ] }) }),
35
- /* @__PURE__ */ r.jsx("div", { className: `w-0 h-0 ${c[l]}` })
36
- ] })
37
- ] });
24
+ return N(() => (s(), window.addEventListener("resize", s), () => window.removeEventListener("resize", s)), [l, a]), /* @__PURE__ */ e.jsxs(
25
+ "div",
26
+ {
27
+ ref: i,
28
+ className: `relative ${c}`,
29
+ onMouseEnter: () => d(!0),
30
+ onMouseLeave: () => d(!1),
31
+ children: [
32
+ a,
33
+ h && /* @__PURE__ */ e.jsxs("div", { className: `pointer-events-none absolute flex items-center z-50 transition-all duration-150 ${u ? "opacity-100 scale-100" : "opacity-0 scale-95"} ${v[n]}`, children: [
34
+ /* @__PURE__ */ e.jsx("div", { className: "bg-gray-700 p-12 rounded-[8px] shadow-xl max-w-[320px] w-max border border-gray-700/50", children: /* @__PURE__ */ e.jsxs("div", { className: `flex items-start ${t ? "gap-8" : "justify-center"}`, children: [
35
+ t && /* @__PURE__ */ e.jsx("div", { className: "flex items-center h-[16px] flex-shrink-0", children: /* @__PURE__ */ e.jsx(
36
+ E,
37
+ {
38
+ icon: t,
39
+ className: "text-[16px] text-gray-100"
40
+ }
41
+ ) }),
42
+ /* @__PURE__ */ e.jsx("p", { className: "text-[12px] text-blue-50 leading-[16px] font-normal text-left", children: l })
43
+ ] }) }),
44
+ /* @__PURE__ */ e.jsx("div", { className: `w-0 h-0 ${g[n]}` })
45
+ ] })
46
+ ]
47
+ }
48
+ );
38
49
  };
39
50
  export {
40
- j as default
51
+ T as default
41
52
  };