@code0-tech/pictor 0.11.0 → 0.12.0

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.
Files changed (28) hide show
  1. package/dist/assets/components/avatar/Avatar.style.css +1 -1
  2. package/dist/assets/components/card/Card.style.css +1 -1
  3. package/dist/assets/components/context-menu/ContextMenu.style.css +1 -1
  4. package/dist/assets/components/data-table/DataTable.style.css +1 -1
  5. package/dist/assets/components/form/Input.style.css +1 -1
  6. package/dist/assets/components/menu/Menu.style.css +1 -1
  7. package/dist/assets/components/scroll-area/ScrollArea.style.css +1 -1
  8. package/dist/assets/components/tooltip/Tooltip.style.css +1 -1
  9. package/dist/components/avatar/Avatar.js +17 -16
  10. package/dist/components/card/Card.d.ts +1 -0
  11. package/dist/components/card/Card.js +25 -23
  12. package/dist/components/context-menu/ContextMenu.js +109 -90
  13. package/dist/components/data-table/DataTable.d.ts +4 -1
  14. package/dist/components/data-table/DataTable.js +53 -31
  15. package/dist/components/data-table/DataTableHeader.d.ts +14 -0
  16. package/dist/components/data-table/DataTableHeader.js +39 -0
  17. package/dist/components/data-table/DataTablePagination.d.ts +30 -0
  18. package/dist/components/data-table/DataTablePagination.js +75 -0
  19. package/dist/components/data-table/index.d.ts +2 -0
  20. package/dist/components/data-table/index.js +16 -5
  21. package/dist/components/form/PinInput.js +44 -47
  22. package/dist/components/form/useForm.js +61 -46
  23. package/dist/components/menu/Menu.js +112 -93
  24. package/dist/components/scroll-area/ScrollArea.d.ts +8 -0
  25. package/dist/components/scroll-area/ScrollArea.js +70 -39
  26. package/dist/components/tooltip/Tooltip.js +53 -43
  27. package/dist/index.js +203 -191
  28. package/package.json +11 -11
@@ -1,123 +1,142 @@
1
- import { jsx as u } from "react/jsx-runtime";
2
- import { c as l } from "../../_virtual/compiler-runtime.js";
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { c as r } from "../../_virtual/compiler-runtime.js";
3
3
  import '../../assets/components/menu/Menu.style.css';/* empty css */
4
4
  import "../../utils/contextStore.js";
5
5
  import "react";
6
- import { mergeComponentProps as r } from "../../utils/component.js";
6
+ import { mergeComponentProps as u } from "../../utils/component.js";
7
7
  import "js-md5";
8
- import { DropdownMenuItem as m, DropdownMenuContent as f, DropdownMenuLabel as _, DropdownMenu as M, DropdownMenuTrigger as a, DropdownMenuPortal as g, DropdownMenuArrow as d, DropdownMenuCheckboxItem as w, DropdownMenuGroup as b, DropdownMenuItemIndicator as $, DropdownMenuSeparator as D, DropdownMenuSub as I, DropdownMenuSubContent as S, DropdownMenuSubTrigger as C } from "@radix-ui/react-dropdown-menu";
9
- const L = (o) => {
10
- const e = l.c(4);
11
- let n;
12
- e[0] !== o ? (n = r("menu", o), e[0] = o, e[1] = n) : n = e[1];
13
- const c = n;
8
+ import { DropdownMenuItem as a, DropdownMenuLabel as w, DropdownMenu as b, DropdownMenuTrigger as g, DropdownMenuPortal as $, DropdownMenuArrow as D, DropdownMenuCheckboxItem as h, DropdownMenuGroup as S, DropdownMenuItemIndicator as I, DropdownMenuSeparator as C, DropdownMenuSub as x, DropdownMenuSubTrigger as T, DropdownMenuContent as A, DropdownMenuSubContent as k } from "@radix-ui/react-dropdown-menu";
9
+ import { AutoScrollArea as M } from "../scroll-area/ScrollArea.js";
10
+ const z = (l) => {
11
+ const e = r.c(4);
14
12
  let t;
15
- return e[2] !== c ? (t = /* @__PURE__ */ u(M, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
16
- }, j = (o) => {
17
- const e = l.c(4);
13
+ e[0] !== l ? (t = u("menu", l), e[0] = l, e[1] = t) : t = e[1];
14
+ const o = t;
18
15
  let n;
19
- e[0] !== o ? (n = r("menu__trigger", o), e[0] = o, e[1] = n) : n = e[1];
20
- const c = n;
16
+ return e[2] !== o ? (n = /* @__PURE__ */ c(b, { ...o }), e[2] = o, e[3] = n) : n = e[3], n;
17
+ }, B = (l) => {
18
+ const e = r.c(4);
21
19
  let t;
22
- return e[2] !== c ? (t = /* @__PURE__ */ u(a, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
23
- }, E = (o) => {
24
- const e = l.c(4);
20
+ e[0] !== l ? (t = u("menu__trigger", l), e[0] = l, e[1] = t) : t = e[1];
21
+ const o = t;
25
22
  let n;
26
- e[0] !== o ? (n = r("menu__portal", o), e[0] = o, e[1] = n) : n = e[1];
27
- const c = n;
28
- let t;
29
- return e[2] !== c ? (t = /* @__PURE__ */ u(g, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
30
- }, R = (o) => {
31
- const e = l.c(6), n = o.align, c = `menu__content menu__content--${o.color ?? "primary"}`;
23
+ return e[2] !== o ? (n = /* @__PURE__ */ c(g, { ...o }), e[2] = o, e[3] = n) : n = e[3], n;
24
+ }, F = (l) => {
25
+ const e = r.c(4);
32
26
  let t;
33
- e[0] !== o || e[1] !== c ? (t = r(c, o), e[0] = o, e[1] = c, e[2] = t) : t = e[2];
34
- const i = t;
35
- let s;
36
- return e[3] !== o.align || e[4] !== i ? (s = /* @__PURE__ */ u(f, { align: n, ...i }), e[3] = o.align, e[4] = i, e[5] = s) : s = e[5], s;
37
- }, q = (o) => {
38
- const e = l.c(4);
27
+ e[0] !== l ? (t = u("menu__portal", l), e[0] = l, e[1] = t) : t = e[1];
28
+ const o = t;
39
29
  let n;
40
- e[0] !== o ? (n = r("menu__label", o), e[0] = o, e[1] = n) : n = e[1];
41
- const c = n;
30
+ return e[2] !== o ? (n = /* @__PURE__ */ c($, { ...o }), e[2] = o, e[3] = n) : n = e[3], n;
31
+ }, H = (l) => {
32
+ const e = r.c(12);
33
+ let t, o, n, s;
34
+ if (e[0] !== l) {
35
+ const {
36
+ children: _,
37
+ ...d
38
+ } = l;
39
+ o = _, t = A, s = l.align, n = u(`menu__content menu__content--${l.color ?? "primary"}`, d), e[0] = l, e[1] = t, e[2] = o, e[3] = n, e[4] = s;
40
+ } else
41
+ t = e[1], o = e[2], n = e[3], s = e[4];
42
+ const m = n;
43
+ let i;
44
+ e[5] !== o ? (i = /* @__PURE__ */ c(M, { children: o }), e[5] = o, e[6] = i) : i = e[6];
45
+ let f;
46
+ return e[7] !== t || e[8] !== s || e[9] !== m || e[10] !== i ? (f = /* @__PURE__ */ c(t, { align: s, ...m, children: i }), e[7] = t, e[8] = s, e[9] = m, e[10] = i, e[11] = f) : f = e[11], f;
47
+ }, J = (l) => {
48
+ const e = r.c(4);
42
49
  let t;
43
- return e[2] !== c ? (t = /* @__PURE__ */ u(_, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
44
- }, v = (o) => {
45
- const e = l.c(4);
50
+ e[0] !== l ? (t = u("menu__label", l), e[0] = l, e[1] = t) : t = e[1];
51
+ const o = t;
46
52
  let n;
47
- e[0] !== o ? (n = r("menu__item", o), e[0] = o, e[1] = n) : n = e[1];
48
- const c = n;
53
+ return e[2] !== o ? (n = /* @__PURE__ */ c(w, { ...o }), e[2] = o, e[3] = n) : n = e[3], n;
54
+ }, K = (l) => {
55
+ const e = r.c(4);
49
56
  let t;
50
- return e[2] !== c ? (t = /* @__PURE__ */ u(m, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
51
- }, z = (o) => {
52
- const e = l.c(4);
57
+ e[0] !== l ? (t = u("menu__item", l), e[0] = l, e[1] = t) : t = e[1];
58
+ const o = t;
53
59
  let n;
54
- e[0] !== o ? (n = r("menu__group", o), e[0] = o, e[1] = n) : n = e[1];
55
- const c = n;
60
+ return e[2] !== o ? (n = /* @__PURE__ */ c(a, { ...o }), e[2] = o, e[3] = n) : n = e[3], n;
61
+ }, N = (l) => {
62
+ const e = r.c(4);
56
63
  let t;
57
- return e[2] !== c ? (t = /* @__PURE__ */ u(b, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
58
- }, B = (o) => {
59
- const e = l.c(4);
64
+ e[0] !== l ? (t = u("menu__group", l), e[0] = l, e[1] = t) : t = e[1];
65
+ const o = t;
60
66
  let n;
61
- e[0] !== o ? (n = r("menu__sub", o), e[0] = o, e[1] = n) : n = e[1];
62
- const c = n;
67
+ return e[2] !== o ? (n = /* @__PURE__ */ c(S, { ...o }), e[2] = o, e[3] = n) : n = e[3], n;
68
+ }, O = (l) => {
69
+ const e = r.c(4);
63
70
  let t;
64
- return e[2] !== c ? (t = /* @__PURE__ */ u(I, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
65
- }, F = (o) => {
66
- const e = l.c(4);
71
+ e[0] !== l ? (t = u("menu__sub", l), e[0] = l, e[1] = t) : t = e[1];
72
+ const o = t;
67
73
  let n;
68
- e[0] !== o ? (n = r("menu__sub-trigger", o), e[0] = o, e[1] = n) : n = e[1];
69
- const c = n;
74
+ return e[2] !== o ? (n = /* @__PURE__ */ c(x, { ...o }), e[2] = o, e[3] = n) : n = e[3], n;
75
+ }, Q = (l) => {
76
+ const e = r.c(4);
70
77
  let t;
71
- return e[2] !== c ? (t = /* @__PURE__ */ u(C, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
72
- }, H = (o) => {
73
- const e = l.c(5), n = `menu__sub-content menu__sub-content--${o.color ?? "primary"}`;
74
- let c;
75
- e[0] !== o || e[1] !== n ? (c = r(n, o), e[0] = o, e[1] = n, e[2] = c) : c = e[2];
76
- const t = c;
77
- let i;
78
- return e[3] !== t ? (i = /* @__PURE__ */ u(S, { ...t }), e[3] = t, e[4] = i) : i = e[4], i;
79
- }, J = (o) => {
80
- const e = l.c(4);
78
+ e[0] !== l ? (t = u("menu__sub-trigger", l), e[0] = l, e[1] = t) : t = e[1];
79
+ const o = t;
81
80
  let n;
82
- e[0] !== o ? (n = r("menu__separator", o), e[0] = o, e[1] = n) : n = e[1];
83
- const c = n;
81
+ return e[2] !== o ? (n = /* @__PURE__ */ c(T, { ...o }), e[2] = o, e[3] = n) : n = e[3], n;
82
+ }, U = (l) => {
83
+ const e = r.c(10);
84
+ let t, o, n;
85
+ if (e[0] !== l) {
86
+ const {
87
+ children: f,
88
+ ..._
89
+ } = l;
90
+ o = f, t = k, n = u(`menu__sub-content menu__sub-content--${l.color ?? "primary"}`, _), e[0] = l, e[1] = t, e[2] = o, e[3] = n;
91
+ } else
92
+ t = e[1], o = e[2], n = e[3];
93
+ const s = n;
94
+ let m;
95
+ e[4] !== o ? (m = /* @__PURE__ */ c(M, { children: o }), e[4] = o, e[5] = m) : m = e[5];
96
+ let i;
97
+ return e[6] !== t || e[7] !== s || e[8] !== m ? (i = /* @__PURE__ */ c(t, { ...s, children: m }), e[6] = t, e[7] = s, e[8] = m, e[9] = i) : i = e[9], i;
98
+ }, V = (l) => {
99
+ const e = r.c(4);
84
100
  let t;
85
- return e[2] !== c ? (t = /* @__PURE__ */ u(D, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
86
- }, K = (o) => {
87
- const e = l.c(4);
101
+ e[0] !== l ? (t = u("menu__separator", l), e[0] = l, e[1] = t) : t = e[1];
102
+ const o = t;
88
103
  let n;
89
- e[0] !== o ? (n = r("menu__checkbox-item", o), e[0] = o, e[1] = n) : n = e[1];
90
- const c = n;
104
+ return e[2] !== o ? (n = /* @__PURE__ */ c(C, { ...o }), e[2] = o, e[3] = n) : n = e[3], n;
105
+ }, W = (l) => {
106
+ const e = r.c(4);
91
107
  let t;
92
- return e[2] !== c ? (t = /* @__PURE__ */ u(w, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
93
- }, N = (o) => {
94
- const e = l.c(4);
108
+ e[0] !== l ? (t = u("menu__checkbox-item", l), e[0] = l, e[1] = t) : t = e[1];
109
+ const o = t;
95
110
  let n;
96
- e[0] !== o ? (n = r("menu__item-indicator", o), e[0] = o, e[1] = n) : n = e[1];
97
- const c = n;
111
+ return e[2] !== o ? (n = /* @__PURE__ */ c(h, { ...o }), e[2] = o, e[3] = n) : n = e[3], n;
112
+ }, X = (l) => {
113
+ const e = r.c(4);
98
114
  let t;
99
- return e[2] !== c ? (t = /* @__PURE__ */ u($, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
100
- }, O = (o) => {
101
- const e = l.c(4);
115
+ e[0] !== l ? (t = u("menu__item-indicator", l), e[0] = l, e[1] = t) : t = e[1];
116
+ const o = t;
102
117
  let n;
103
- e[0] !== o ? (n = r("menu__arrow", o), e[0] = o, e[1] = n) : n = e[1];
104
- const c = n;
118
+ return e[2] !== o ? (n = /* @__PURE__ */ c(I, { ...o }), e[2] = o, e[3] = n) : n = e[3], n;
119
+ }, Y = (l) => {
120
+ const e = r.c(4);
105
121
  let t;
106
- return e[2] !== c ? (t = /* @__PURE__ */ u(d, { ...c }), e[2] = c, e[3] = t) : t = e[3], t;
122
+ e[0] !== l ? (t = u("menu__arrow", l), e[0] = l, e[1] = t) : t = e[1];
123
+ const o = t;
124
+ let n;
125
+ return e[2] !== o ? (n = /* @__PURE__ */ c(D, { ...o }), e[2] = o, e[3] = n) : n = e[3], n;
107
126
  };
108
127
  export {
109
- L as Menu,
110
- O as MenuArrow,
111
- K as MenuCheckboxItem,
112
- R as MenuContent,
113
- z as MenuGroup,
114
- v as MenuItem,
115
- N as MenuItemIndicator,
116
- q as MenuLabel,
117
- E as MenuPortal,
118
- J as MenuSeparator,
119
- B as MenuSub,
120
- H as MenuSubContent,
121
- F as MenuSubTrigger,
122
- j as MenuTrigger
128
+ z as Menu,
129
+ Y as MenuArrow,
130
+ W as MenuCheckboxItem,
131
+ H as MenuContent,
132
+ N as MenuGroup,
133
+ K as MenuItem,
134
+ X as MenuItemIndicator,
135
+ J as MenuLabel,
136
+ F as MenuPortal,
137
+ V as MenuSeparator,
138
+ O as MenuSub,
139
+ U as MenuSubContent,
140
+ Q as MenuSubTrigger,
141
+ B as MenuTrigger
123
142
  };
@@ -11,3 +11,11 @@ export declare const ScrollAreaViewport: React.FC<ScrollAreaViewportProps>;
11
11
  export declare const ScrollAreaScrollbar: React.FC<ScrollAreaScrollbarProps>;
12
12
  export declare const ScrollAreaThumb: React.FC<ScrollAreaThumbProps>;
13
13
  export declare const ScrollAreaCorner: React.FC<ScrollAreaCornerProps>;
14
+ export type AutoScrollAreaProps = ScrollAreaProps;
15
+ /**
16
+ * ScrollArea that sizes itself to its content and scrolls once the content
17
+ * exceeds the available height of the surrounding Radix popper (menus,
18
+ * sub menus, tooltips). Used internally by MenuContent, MenuSubContent,
19
+ * ContextMenuContent, ContextMenuSubContent and TooltipContent.
20
+ */
21
+ export declare const AutoScrollArea: React.FC<AutoScrollAreaProps>;
@@ -1,46 +1,77 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { c } from "../../_virtual/compiler-runtime.js";
1
+ import { jsx as o, jsxs as w } from "react/jsx-runtime";
2
+ import { c as n } from "../../_virtual/compiler-runtime.js";
3
+ import A from "react";
3
4
  import "../../utils/contextStore.js";
4
- import "react";
5
5
  import { mergeComponentProps as a } from "../../utils/component.js";
6
6
  import "js-md5";
7
- import * as i from "@radix-ui/react-scroll-area";
7
+ import * as s from "@radix-ui/react-scroll-area";
8
8
  import '../../assets/components/scroll-area/ScrollArea.style.css';/* empty css */
9
- const _ = (t) => {
10
- const r = c.c(4);
11
- let e;
12
- r[0] !== t ? (e = a("scroll-area", t), r[0] = t, r[1] = e) : e = r[1];
13
- let l;
14
- return r[2] !== e ? (l = /* @__PURE__ */ o(i.ScrollArea, { ...e }), r[2] = e, r[3] = l) : l = r[3], l;
15
- }, b = (t) => {
16
- const r = c.c(4);
17
- let e;
18
- r[0] !== t ? (e = a("scroll-area__viewport", t), r[0] = t, r[1] = e) : e = r[1];
19
- let l;
20
- return r[2] !== e ? (l = /* @__PURE__ */ o(i.ScrollAreaViewport, { ...e }), r[2] = e, r[3] = l) : l = r[3], l;
21
- }, $ = (t) => {
22
- const r = c.c(4);
23
- let e;
24
- r[0] !== t ? (e = a("scroll-area__scrollbar", t), r[0] = t, r[1] = e) : e = r[1];
25
- let l;
26
- return r[2] !== e ? (l = /* @__PURE__ */ o(i.ScrollAreaScrollbar, { ...e }), r[2] = e, r[3] = l) : l = r[3], l;
27
- }, x = (t) => {
28
- const r = c.c(4);
29
- let e;
30
- r[0] !== t ? (e = a("scroll-area__thumb", t), r[0] = t, r[1] = e) : e = r[1];
31
- let l;
32
- return r[2] !== e ? (l = /* @__PURE__ */ o(i.ScrollAreaThumb, { ...e }), r[2] = e, r[3] = l) : l = r[3], l;
33
- }, h = (t) => {
34
- const r = c.c(4);
35
- let e;
36
- r[0] !== t ? (e = a("scroll-area__corner", t), r[0] = t, r[1] = e) : e = r[1];
37
- let l;
38
- return r[2] !== e ? (l = /* @__PURE__ */ o(i.ScrollAreaCorner, { ...e }), r[2] = e, r[3] = l) : l = r[3], l;
9
+ const y = (l) => {
10
+ const e = n.c(4);
11
+ let t;
12
+ e[0] !== l ? (t = a("scroll-area", l), e[0] = l, e[1] = t) : t = e[1];
13
+ let r;
14
+ return e[2] !== t ? (r = /* @__PURE__ */ o(s.ScrollArea, { ...t }), e[2] = t, e[3] = r) : r = e[3], r;
15
+ }, C = (l) => {
16
+ const e = n.c(4);
17
+ let t;
18
+ e[0] !== l ? (t = a("scroll-area__viewport", l), e[0] = l, e[1] = t) : t = e[1];
19
+ let r;
20
+ return e[2] !== t ? (r = /* @__PURE__ */ o(s.ScrollAreaViewport, { ...t }), e[2] = t, e[3] = r) : r = e[3], r;
21
+ }, j = (l) => {
22
+ const e = n.c(4);
23
+ let t;
24
+ e[0] !== l ? (t = a("scroll-area__scrollbar", l), e[0] = l, e[1] = t) : t = e[1];
25
+ let r;
26
+ return e[2] !== t ? (r = /* @__PURE__ */ o(s.ScrollAreaScrollbar, { ...t }), e[2] = t, e[3] = r) : r = e[3], r;
27
+ }, E = (l) => {
28
+ const e = n.c(4);
29
+ let t;
30
+ e[0] !== l ? (t = a("scroll-area__thumb", l), e[0] = l, e[1] = t) : t = e[1];
31
+ let r;
32
+ return e[2] !== t ? (r = /* @__PURE__ */ o(s.ScrollAreaThumb, { ...t }), e[2] = t, e[3] = r) : r = e[3], r;
33
+ }, P = (l) => {
34
+ const e = n.c(4);
35
+ let t;
36
+ e[0] !== l ? (t = a("scroll-area__corner", l), e[0] = l, e[1] = t) : t = e[1];
37
+ let r;
38
+ return e[2] !== t ? (r = /* @__PURE__ */ o(s.ScrollAreaCorner, { ...t }), e[2] = t, e[3] = r) : r = e[3], r;
39
+ }, k = (l) => {
40
+ const e = n.c(14);
41
+ let t, r, i;
42
+ e[0] !== l ? ({
43
+ children: t,
44
+ mah: i,
45
+ ...r
46
+ } = l, e[0] = l, e[1] = t, e[2] = r, e[3] = i) : (t = e[1], r = e[2], i = e[3]);
47
+ const S = i === void 0 ? "var(--radix-popper-available-height, 100vh)" : i, b = A.useRef(null), [d, $] = A.useState();
48
+ let f, m;
49
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = () => {
50
+ const v = b.current;
51
+ if (!v)
52
+ return;
53
+ const x = new ResizeObserver((g) => {
54
+ const R = g[0];
55
+ R && $(R.contentRect.height);
56
+ });
57
+ return x.observe(v), () => x.disconnect();
58
+ }, m = [], e[4] = f, e[5] = m) : (f = e[4], m = e[5]), A.useLayoutEffect(f, m);
59
+ const _ = d !== void 0 ? `${d}px` : void 0;
60
+ let c;
61
+ e[6] !== t ? (c = /* @__PURE__ */ o(C, { children: /* @__PURE__ */ o("div", { ref: b, children: t }) }), e[6] = t, e[7] = c) : c = e[7];
62
+ let u;
63
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ o(j, { orientation: "vertical", children: /* @__PURE__ */ o(E, {}) }), e[8] = u) : u = e[8];
64
+ let h;
65
+ return e[9] !== S || e[10] !== r || e[11] !== _ || e[12] !== c ? (h = /* @__PURE__ */ w(y, { className: "scroll-area--auto", mah: S, h: _, ...r, children: [
66
+ c,
67
+ u
68
+ ] }), e[9] = S, e[10] = r, e[11] = _, e[12] = c, e[13] = h) : h = e[13], h;
39
69
  };
40
70
  export {
41
- _ as ScrollArea,
42
- h as ScrollAreaCorner,
43
- $ as ScrollAreaScrollbar,
44
- x as ScrollAreaThumb,
45
- b as ScrollAreaViewport
71
+ k as AutoScrollArea,
72
+ y as ScrollArea,
73
+ P as ScrollAreaCorner,
74
+ j as ScrollAreaScrollbar,
75
+ E as ScrollAreaThumb,
76
+ C as ScrollAreaViewport
46
77
  };
@@ -1,51 +1,61 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { c as s } from "../../_virtual/compiler-runtime.js";
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { c as m } from "../../_virtual/compiler-runtime.js";
3
3
  import "../../utils/contextStore.js";
4
4
  import "react";
5
- import { mergeComponentProps as a } from "../../utils/component.js";
5
+ import { mergeComponentProps as f } from "../../utils/component.js";
6
6
  import "js-md5";
7
- import * as c from "@radix-ui/react-tooltip";
7
+ import * as s from "@radix-ui/react-tooltip";
8
8
  import '../../assets/components/tooltip/Tooltip.style.css';/* empty css */
9
- const w = (o) => {
10
- const t = s.c(4);
11
- let i;
12
- t[0] !== o ? (i = a("tooltip", o), t[0] = o, t[1] = i) : i = t[1];
13
- const l = i;
14
- let e;
15
- return t[2] !== l ? (e = /* @__PURE__ */ r(c.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ r(c.Tooltip, { ...l }) }), t[2] = l, t[3] = e) : e = t[3], e;
16
- }, x = (o) => {
17
- const t = s.c(4);
18
- let i;
19
- t[0] !== o ? (i = a("tooltip__trigger", o), t[0] = o, t[1] = i) : i = t[1];
20
- const l = i;
21
- let e;
22
- return t[2] !== l ? (e = /* @__PURE__ */ r(c.TooltipTrigger, { ...l }), t[2] = l, t[3] = e) : e = t[3], e;
23
- }, P = (o) => {
24
- const t = s.c(4);
25
- let i;
26
- t[0] !== o ? (i = a("tooltip__portal", o), t[0] = o, t[1] = i) : i = t[1];
27
- const l = i;
28
- let e;
29
- return t[2] !== l ? (e = /* @__PURE__ */ r(c.TooltipPortal, { ...l }), t[2] = l, t[3] = e) : e = t[3], e;
30
- }, p = (o) => {
31
- const t = s.c(6), i = o.align, l = `tooltip__content tooltip__content--${o.color ?? "tertiary"}`;
32
- let e;
33
- t[0] !== o || t[1] !== l ? (e = a(l, o), t[0] = o, t[1] = l, t[2] = e) : e = t[2];
34
- const n = e;
35
- let m;
36
- return t[3] !== o.align || t[4] !== n ? (m = /* @__PURE__ */ r(c.TooltipContent, { align: i, ...n }), t[3] = o.align, t[4] = n, t[5] = m) : m = t[5], m;
37
- }, y = (o) => {
38
- const t = s.c(5), i = `tooltip__arrow tooltip__arrow--${o.color ?? "tertiary"}}`;
9
+ import { AutoScrollArea as p } from "../scroll-area/ScrollArea.js";
10
+ const y = (i) => {
11
+ const t = m.c(4);
12
+ let o;
13
+ t[0] !== i ? (o = f("tooltip", i), t[0] = i, t[1] = o) : o = t[1];
14
+ const e = o;
39
15
  let l;
40
- t[0] !== o || t[1] !== i ? (l = a(i, o), t[0] = o, t[1] = i, t[2] = l) : l = t[2];
41
- const e = l;
42
- let n;
43
- return t[3] !== e ? (n = /* @__PURE__ */ r(c.TooltipArrow, { ...e }), t[3] = e, t[4] = n) : n = t[4], n;
16
+ return t[2] !== e ? (l = /* @__PURE__ */ n(s.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ n(s.Tooltip, { ...e }) }), t[2] = e, t[3] = l) : l = t[3], l;
17
+ }, C = (i) => {
18
+ const t = m.c(4);
19
+ let o;
20
+ t[0] !== i ? (o = f("tooltip__trigger", i), t[0] = i, t[1] = o) : o = t[1];
21
+ const e = o;
22
+ let l;
23
+ return t[2] !== e ? (l = /* @__PURE__ */ n(s.TooltipTrigger, { ...e }), t[2] = e, t[3] = l) : l = t[3], l;
24
+ }, R = (i) => {
25
+ const t = m.c(4);
26
+ let o;
27
+ t[0] !== i ? (o = f("tooltip__portal", i), t[0] = i, t[1] = o) : o = t[1];
28
+ const e = o;
29
+ let l;
30
+ return t[2] !== e ? (l = /* @__PURE__ */ n(s.TooltipPortal, { ...e }), t[2] = e, t[3] = l) : l = t[3], l;
31
+ }, j = (i) => {
32
+ const t = m.c(12);
33
+ let o, e, l, r;
34
+ if (t[0] !== i) {
35
+ const {
36
+ children: _,
37
+ ...g
38
+ } = i;
39
+ e = _, o = s.TooltipContent, r = i.align, l = f(`tooltip__content tooltip__content--${i.color ?? "tertiary"}`, g), t[0] = i, t[1] = o, t[2] = e, t[3] = l, t[4] = r;
40
+ } else
41
+ o = t[1], e = t[2], l = t[3], r = t[4];
42
+ const T = l;
43
+ let c;
44
+ t[5] !== e ? (c = /* @__PURE__ */ n(p, { children: e }), t[5] = e, t[6] = c) : c = t[6];
45
+ let a;
46
+ return t[7] !== o || t[8] !== r || t[9] !== T || t[10] !== c ? (a = /* @__PURE__ */ n(o, { align: r, ...T, children: c }), t[7] = o, t[8] = r, t[9] = T, t[10] = c, t[11] = a) : a = t[11], a;
47
+ }, v = (i) => {
48
+ const t = m.c(5), o = `tooltip__arrow tooltip__arrow--${i.color ?? "tertiary"}}`;
49
+ let e;
50
+ t[0] !== i || t[1] !== o ? (e = f(o, i), t[0] = i, t[1] = o, t[2] = e) : e = t[2];
51
+ const l = e;
52
+ let r;
53
+ return t[3] !== l ? (r = /* @__PURE__ */ n(s.TooltipArrow, { ...l }), t[3] = l, t[4] = r) : r = t[4], r;
44
54
  };
45
55
  export {
46
- w as Tooltip,
47
- y as TooltipArrow,
48
- p as TooltipContent,
49
- P as TooltipPortal,
50
- x as TooltipTrigger
56
+ y as Tooltip,
57
+ v as TooltipArrow,
58
+ j as TooltipContent,
59
+ R as TooltipPortal,
60
+ C as TooltipTrigger
51
61
  };