prometeo-design-system 4.3.0 → 4.3.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.
- package/dist/Icons/ArrowDownward.d.ts +6 -0
- package/dist/Icons/ArrowDownward.es.js +10 -0
- package/dist/Icons/ArrowUpward.d.ts +6 -0
- package/dist/Icons/ArrowUpward.es.js +10 -0
- package/dist/Icons/components/ArrowDownward.d.ts +4 -0
- package/dist/Icons/components/ArrowUpward.d.ts +4 -0
- package/dist/Icons/index.d.ts +2 -0
- package/dist/Icons/types.d.ts +4 -0
- package/dist/Icons.es.js +124 -120
- package/dist/Scrollable.es.js +114 -114
- package/package.json +2 -3
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { j as s } from "../jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { m as e } from "../iconUtils-D0lVAgGT.js";
|
|
3
|
+
const m = e(({ size: r = 24, className: a, ...t }) => /* @__PURE__ */ s.jsxs("svg", { ...t, width: r, height: r, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
4
|
+
/* @__PURE__ */ s.jsx("mask", { id: "mask0_2325_2814", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20", children: /* @__PURE__ */ s.jsx("rect", { width: "20", height: "20", fill: "currentColor" }) }),
|
|
5
|
+
/* @__PURE__ */ s.jsx("g", { mask: "url(#mask0_2325_2814)", children: /* @__PURE__ */ s.jsx("path", { d: "M10 15L5 9.99999L6.16667 8.83332L9.16667 11.8333V4.16666H10.8333V11.8333L13.8333 8.83332L15 9.99999L10 15Z", fill: "#E4E4E7" }) })
|
|
6
|
+
] }));
|
|
7
|
+
export {
|
|
8
|
+
m as ArrowDownward,
|
|
9
|
+
m as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { j as s } from "../jsx-runtime-GkKLlHH4.js";
|
|
2
|
+
import { m as e } from "../iconUtils-D0lVAgGT.js";
|
|
3
|
+
const m = e(({ size: r = 24, className: a, ...t }) => /* @__PURE__ */ s.jsxs("svg", { ...t, width: r, height: r, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
4
|
+
/* @__PURE__ */ s.jsx("mask", { id: "mask0_2325_2813", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20", children: /* @__PURE__ */ s.jsx("rect", { width: "20", height: "20", fill: "currentColor" }) }),
|
|
5
|
+
/* @__PURE__ */ s.jsx("g", { mask: "url(#mask0_2325_2813)", children: /* @__PURE__ */ s.jsx("path", { d: "M9.16667 15V7.33332L6.16667 10.3333L5 9.16666L10 4.16666L15 9.16666L13.8333 10.3333L10.8333 7.33332V15H9.16667Z", fill: "#E4E4E7" }) })
|
|
6
|
+
] }));
|
|
7
|
+
export {
|
|
8
|
+
m as ArrowUpward,
|
|
9
|
+
m as default
|
|
10
|
+
};
|
package/dist/Icons/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export { Settings } from './components/Settings';
|
|
|
7
7
|
export { CrevronLeft } from './components/CrevronLeft';
|
|
8
8
|
export { CrevronRight } from './components/CrevronRight';
|
|
9
9
|
export { ArrowLeft } from './components/ArrowLeft';
|
|
10
|
+
export { ArrowDownward } from './components/ArrowDownward';
|
|
11
|
+
export { ArrowUpward } from './components/ArrowUpward';
|
|
10
12
|
export { Shared } from './components/Shared';
|
|
11
13
|
export { ChevronDown } from './components/ChevronDown';
|
|
12
14
|
export { Collapse } from './components/Collapse';
|
package/dist/Icons/types.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ import { UserPerson } from './components/UserPerson';
|
|
|
16
16
|
import { UserAvatar } from './components/UserAvatar';
|
|
17
17
|
import { Logout } from './components/Logout';
|
|
18
18
|
import { ArrowUpDown } from './components/ArrowUpDown';
|
|
19
|
+
import { ArrowDownward } from './components/ArrowDownward';
|
|
20
|
+
import { ArrowUpward } from './components/ArrowUpward';
|
|
19
21
|
import { Filter } from './components/Filter';
|
|
20
22
|
import { Search } from './components/Search';
|
|
21
23
|
import { Stars } from './components/Stars';
|
|
@@ -81,6 +83,8 @@ export type IconsMap = {
|
|
|
81
83
|
UserPerson: typeof UserPerson;
|
|
82
84
|
Logout: typeof Logout;
|
|
83
85
|
ArrowUpDown: typeof ArrowUpDown;
|
|
86
|
+
ArrowDownward: typeof ArrowDownward;
|
|
87
|
+
ArrowUpward: typeof ArrowUpward;
|
|
84
88
|
Filter: typeof Filter;
|
|
85
89
|
Search: typeof Search;
|
|
86
90
|
Stars: typeof Stars;
|
package/dist/Icons.es.js
CHANGED
|
@@ -1,132 +1,136 @@
|
|
|
1
1
|
import { Ticket as e } from "./Icons/Ticket.es.js";
|
|
2
2
|
import { Home as p } from "./Icons/Home.es.js";
|
|
3
3
|
import { Boards as f } from "./Icons/Boards.es.js";
|
|
4
|
-
import { Notifications as
|
|
5
|
-
import { Help as
|
|
6
|
-
import { Settings as
|
|
4
|
+
import { Notifications as a } from "./Icons/Notifications.es.js";
|
|
5
|
+
import { Help as i } from "./Icons/Help.es.js";
|
|
6
|
+
import { Settings as d } from "./Icons/Settings.es.js";
|
|
7
7
|
import { CrevronLeft as C } from "./Icons/CrevronLeft.es.js";
|
|
8
8
|
import { CrevronRight as F } from "./Icons/CrevronRight.es.js";
|
|
9
|
-
import { ArrowLeft as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
9
|
+
import { ArrowLeft as h } from "./Icons/ArrowLeft.es.js";
|
|
10
|
+
import { ArrowDownward as S } from "./Icons/ArrowDownward.es.js";
|
|
11
|
+
import { ArrowUpward as k } from "./Icons/ArrowUpward.es.js";
|
|
12
|
+
import { Shared as U } from "./Icons/Shared.es.js";
|
|
13
|
+
import { ChevronDown as v } from "./Icons/ChevronDown.es.js";
|
|
14
|
+
import { Collapse as E } from "./Icons/Collapse.es.js";
|
|
15
|
+
import { Calendar as T } from "./Icons/Calendar.es.js";
|
|
16
|
+
import { Close as H } from "./Icons/Close.es.js";
|
|
17
|
+
import { UserPerson as V } from "./Icons/UserPerson.es.js";
|
|
18
|
+
import { UserAvatar as q } from "./Icons/UserAvatar.es.js";
|
|
19
|
+
import { Logout as I } from "./Icons/Logout.es.js";
|
|
20
|
+
import { ArrowUpDown as P } from "./Icons/ArrowUpDown.es.js";
|
|
21
|
+
import { Filter as W } from "./Icons/Filter.es.js";
|
|
22
|
+
import { Search as z } from "./Icons/Search.es.js";
|
|
23
|
+
import { Stars as J } from "./Icons/Stars.es.js";
|
|
24
|
+
import { MoreVert as Q } from "./Icons/MoreVert.es.js";
|
|
25
|
+
import { Add as Y } from "./Icons/Add.es.js";
|
|
26
|
+
import { Edit as _ } from "./Icons/Edit.es.js";
|
|
27
|
+
import { Upload as rr } from "./Icons/Upload.es.js";
|
|
28
|
+
import { Copy as er } from "./Icons/Copy.es.js";
|
|
29
|
+
import { FaLock as pr } from "./Icons/FaLock.es.js";
|
|
30
|
+
import { AccountCircle as fr } from "./Icons/AccountCircle.es.js";
|
|
31
|
+
import { UserAdd as ar } from "./Icons/UserAdd.es.js";
|
|
32
|
+
import { AttachFile as ir } from "./Icons/AttachFile.es.js";
|
|
33
|
+
import { HistoryActivity as dr } from "./Icons/HistoryActivity.es.js";
|
|
34
|
+
import { MessageSquare as Cr } from "./Icons/MessageSquare.es.js";
|
|
35
|
+
import { CloseNavBarDesktop as Fr } from "./Icons/CloseNavBarDesktop.es.js";
|
|
36
|
+
import { EyeVisibility as hr } from "./Icons/EyeVisibility.es.js";
|
|
37
|
+
import { EyeVisibilityOff as Sr } from "./Icons/EyeVisibilityOff.es.js";
|
|
38
|
+
import { Check as kr } from "./Icons/Check.es.js";
|
|
39
|
+
import { Info as Ur } from "./Icons/Info.es.js";
|
|
40
|
+
import { Error as vr } from "./Icons/Error.es.js";
|
|
41
|
+
import { TicketFilled as Er } from "./Icons/TicketFilled.es.js";
|
|
42
|
+
import { UploadCloud as Tr } from "./Icons/UploadCloud.es.js";
|
|
43
|
+
import { Clock as Hr } from "./Icons/Clock.es.js";
|
|
44
|
+
import { Pause as Vr } from "./Icons/Pause.es.js";
|
|
45
|
+
import { FastForward as qr } from "./Icons/FastForward.es.js";
|
|
46
|
+
import { Trash as Ir } from "./Icons/Trash.es.js";
|
|
47
|
+
import { Sort as Pr } from "./Icons/Sort.es.js";
|
|
48
|
+
import { Cancel as Wr } from "./Icons/Cancel.es.js";
|
|
49
|
+
import { CheckCircle as zr } from "./Icons/CheckCircle.es.js";
|
|
50
|
+
import { FormatColorText as Jr } from "./Icons/FormatColorText.es.js";
|
|
51
|
+
import { CheckList as Qr } from "./Icons/CheckList.es.js";
|
|
52
|
+
import { WhatsApp as Yr } from "./Icons/WhatsApp.es.js";
|
|
53
|
+
import { File as _r } from "./Icons/File.es.js";
|
|
54
|
+
import { Email as ro } from "./Icons/Email.es.js";
|
|
55
|
+
import { Download as eo } from "./Icons/Download.es.js";
|
|
56
|
+
import { Reload as po } from "./Icons/Reload.es.js";
|
|
57
|
+
import { Image as fo } from "./Icons/Image.es.js";
|
|
58
|
+
import { DocumentFill as ao } from "./Icons/DocumentFill.es.js";
|
|
59
|
+
import { Company as io } from "./Icons/Company.es.js";
|
|
60
|
+
import { EditFill as no } from "./Icons/EditFill.es.js";
|
|
61
|
+
import { TrashFill as co } from "./Icons/TrashFill.es.js";
|
|
62
|
+
import { MessageSquareFill as Ao } from "./Icons/MessageSquareFill.es.js";
|
|
63
|
+
import { UserAddFill as wo } from "./Icons/UserAddFill.es.js";
|
|
64
|
+
import { Reassignment as go } from "./Icons/Reassignment.es.js";
|
|
65
|
+
import { ReassignmentFill as yo } from "./Icons/ReassignmentFill.es.js";
|
|
66
|
+
import { Send as uo } from "./Icons/Send.es.js";
|
|
67
|
+
import { StarFill as Do } from "./Icons/StarFill.es.js";
|
|
66
68
|
export {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
fr as AccountCircle,
|
|
70
|
+
Y as Add,
|
|
71
|
+
S as ArrowDownward,
|
|
72
|
+
h as ArrowLeft,
|
|
73
|
+
P as ArrowUpDown,
|
|
74
|
+
k as ArrowUpward,
|
|
75
|
+
ir as AttachFile,
|
|
72
76
|
f as Boards,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
T as Calendar,
|
|
78
|
+
Wr as Cancel,
|
|
79
|
+
kr as Check,
|
|
80
|
+
zr as CheckCircle,
|
|
81
|
+
Qr as CheckList,
|
|
82
|
+
v as ChevronDown,
|
|
83
|
+
Hr as Clock,
|
|
84
|
+
H as Close,
|
|
85
|
+
Fr as CloseNavBarDesktop,
|
|
86
|
+
E as Collapse,
|
|
87
|
+
io as Company,
|
|
88
|
+
er as Copy,
|
|
85
89
|
C as CrevronLeft,
|
|
86
90
|
F as CrevronRight,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
91
|
+
ao as DocumentFill,
|
|
92
|
+
eo as Download,
|
|
93
|
+
_ as Edit,
|
|
94
|
+
no as EditFill,
|
|
95
|
+
ro as Email,
|
|
96
|
+
vr as Error,
|
|
97
|
+
hr as EyeVisibility,
|
|
98
|
+
Sr as EyeVisibilityOff,
|
|
99
|
+
pr as FaLock,
|
|
100
|
+
qr as FastForward,
|
|
101
|
+
_r as File,
|
|
102
|
+
W as Filter,
|
|
103
|
+
Jr as FormatColorText,
|
|
104
|
+
i as Help,
|
|
105
|
+
dr as HistoryActivity,
|
|
102
106
|
p as Home,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
107
|
+
fo as Image,
|
|
108
|
+
Ur as Info,
|
|
109
|
+
I as Logout,
|
|
110
|
+
Cr as MessageSquare,
|
|
111
|
+
Ao as MessageSquareFill,
|
|
112
|
+
Q as MoreVert,
|
|
113
|
+
a as Notifications,
|
|
114
|
+
Vr as Pause,
|
|
115
|
+
go as Reassignment,
|
|
116
|
+
yo as ReassignmentFill,
|
|
117
|
+
po as Reload,
|
|
118
|
+
z as Search,
|
|
119
|
+
uo as Send,
|
|
120
|
+
d as Settings,
|
|
121
|
+
U as Shared,
|
|
122
|
+
Pr as Sort,
|
|
123
|
+
Do as StarFill,
|
|
124
|
+
J as Stars,
|
|
121
125
|
e as Ticket,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
126
|
+
Er as TicketFilled,
|
|
127
|
+
Ir as Trash,
|
|
128
|
+
co as TrashFill,
|
|
129
|
+
rr as Upload,
|
|
130
|
+
Tr as UploadCloud,
|
|
131
|
+
ar as UserAdd,
|
|
132
|
+
wo as UserAddFill,
|
|
133
|
+
q as UserAvatar,
|
|
134
|
+
V as UserPerson,
|
|
135
|
+
Yr as WhatsApp
|
|
132
136
|
};
|
package/dist/Scrollable.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as y } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
-
import { u as
|
|
3
|
-
import { g as
|
|
2
|
+
import { u as At } from "./useDevice-vwn4GLwK.js";
|
|
3
|
+
import { g as gt, r as V } from "./useLabelBackground-D5SzHhl_.js";
|
|
4
4
|
import { c as M } from "./cn-B6yFEsav.js";
|
|
5
5
|
import { c as K } from "./index-BOQuZ0gG.js";
|
|
6
|
-
import
|
|
7
|
-
import { CrevronLeft as
|
|
8
|
-
const
|
|
6
|
+
import mt, { useRef as i, useState as Rt, useCallback as C, useImperativeHandle as Bt, useLayoutEffect as $t, useEffect as Ot } from "react";
|
|
7
|
+
import { CrevronLeft as bt } from "./Icons/CrevronLeft.es.js";
|
|
8
|
+
const vt = K(
|
|
9
9
|
"",
|
|
10
10
|
{
|
|
11
11
|
variants: {
|
|
@@ -16,7 +16,7 @@ const mt = K(
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
),
|
|
19
|
+
), yt = K("", {
|
|
20
20
|
variants: {
|
|
21
21
|
position: {
|
|
22
22
|
top: "",
|
|
@@ -39,7 +39,7 @@ const mt = K(
|
|
|
39
39
|
{ type: "shadow", position: "left", className: "left-0 top-0 h-full w-5" },
|
|
40
40
|
{ type: "shadow", position: "right", className: "right-0 top-0 h-full w-5 rotate-180" }
|
|
41
41
|
]
|
|
42
|
-
}),
|
|
42
|
+
}), Wt = K("", {
|
|
43
43
|
variants: {
|
|
44
44
|
hide: {
|
|
45
45
|
true: " prometeo-scrollbar-none",
|
|
@@ -50,29 +50,29 @@ const mt = K(
|
|
|
50
50
|
medium: ""
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
54
|
-
const { defaultBehavior: z = "scroll-on-click" } = X,
|
|
53
|
+
}), Yt = (X) => {
|
|
54
|
+
const { defaultBehavior: z = "scroll-on-click" } = X, Tt = At(), Y = {
|
|
55
55
|
top: { show: !0, type: "shadow", behavior: z },
|
|
56
56
|
bottom: { show: !0, type: "shadow", behavior: z },
|
|
57
57
|
left: { show: !0, type: "icon", behavior: z },
|
|
58
58
|
right: { show: !0, type: "icon", behavior: z }
|
|
59
|
-
},
|
|
59
|
+
}, G = {
|
|
60
60
|
hide: !1,
|
|
61
61
|
size: "medium"
|
|
62
62
|
}, {
|
|
63
63
|
debugMode: wt = !1,
|
|
64
|
-
className:
|
|
64
|
+
className: Q,
|
|
65
65
|
axis: v = "both",
|
|
66
66
|
children: xt,
|
|
67
|
-
indicators:
|
|
68
|
-
scrollbarProps:
|
|
69
|
-
disableMouseScroll:
|
|
67
|
+
indicators: St = Y,
|
|
68
|
+
scrollbarProps: Lt = G,
|
|
69
|
+
disableMouseScroll: Z = !1,
|
|
70
70
|
persistScroll: A = !1,
|
|
71
|
-
controls:
|
|
71
|
+
controls: Mt,
|
|
72
72
|
scrollTopButton: w
|
|
73
|
-
} = X, c = i({}), n = i(null), u = i(null), N = i(null), a = i(null), f = i(5),
|
|
73
|
+
} = X, c = i({}), n = i(null), u = i(null), N = i(null), a = i(null), f = i(5), d = i({}), j = i(null), g = i(!1), tt = i(!1), R = i(null), D = i(null), [Nt, Et] = Rt(!1), P = { ...Y, ...St }, et = { ...G, ...Lt }, H = i([]), rt = i(/* @__PURE__ */ new Map()), ot = i({ scrollTop: 0, scrollLeft: 0 }), q = (t) => {
|
|
74
74
|
if (!n.current) return 0;
|
|
75
|
-
const { scrollTop: r, scrollLeft: e, scrollHeight: o, clientHeight: s, scrollWidth: l, clientWidth:
|
|
75
|
+
const { scrollTop: r, scrollLeft: e, scrollHeight: o, clientHeight: s, scrollWidth: l, clientWidth: h } = n.current;
|
|
76
76
|
switch (t) {
|
|
77
77
|
case "top":
|
|
78
78
|
return Math.max(0, r);
|
|
@@ -81,11 +81,11 @@ const mt = K(
|
|
|
81
81
|
case "left":
|
|
82
82
|
return Math.max(0, e);
|
|
83
83
|
case "right":
|
|
84
|
-
return Math.max(0, l - (e +
|
|
84
|
+
return Math.max(0, l - (e + h));
|
|
85
85
|
default:
|
|
86
86
|
return 0;
|
|
87
87
|
}
|
|
88
|
-
},
|
|
88
|
+
}, nt = C((t) => {
|
|
89
89
|
if (!t || !n.current) return 0;
|
|
90
90
|
const { clientHeight: r, scrollHeight: e } = n.current;
|
|
91
91
|
if (t.includes("%")) {
|
|
@@ -98,29 +98,29 @@ const mt = K(
|
|
|
98
98
|
return parseFloat(t.replace("vh", "")) / 100 * window.innerHeight;
|
|
99
99
|
}
|
|
100
100
|
return 0;
|
|
101
|
-
}, []),
|
|
101
|
+
}, []), It = C(() => {
|
|
102
102
|
if (!n.current || !w) return;
|
|
103
|
-
const { scrollTop: t } = n.current, r =
|
|
104
|
-
|
|
105
|
-
}, [w,
|
|
103
|
+
const { scrollTop: t } = n.current, r = nt(w.target || "40vh");
|
|
104
|
+
Et(t >= r);
|
|
105
|
+
}, [w, nt]), st = C(() => {
|
|
106
106
|
if (!n.current) return { x: 0, y: 0 };
|
|
107
|
-
const { scrollTop: t, scrollLeft: r, scrollHeight: e, scrollWidth: o, clientHeight: s, clientWidth: l } = n.current,
|
|
107
|
+
const { scrollTop: t, scrollLeft: r, scrollHeight: e, scrollWidth: o, clientHeight: s, clientWidth: l } = n.current, h = Math.max(0, e - s), m = Math.max(0, o - l), T = h > 0 ? t / h * 100 : 0;
|
|
108
108
|
return { x: m > 0 ? r / m * 100 : 0, y: T };
|
|
109
|
-
}, []),
|
|
110
|
-
const r =
|
|
109
|
+
}, []), lt = C((t) => {
|
|
110
|
+
const r = ot.current;
|
|
111
111
|
let e = null;
|
|
112
|
-
return t.scrollTop > r.scrollTop ? e = "down" : t.scrollTop < r.scrollTop ? e = "up" : t.scrollLeft > r.scrollLeft ? e = "right" : t.scrollLeft < r.scrollLeft && (e = "left"),
|
|
113
|
-
}, []),
|
|
112
|
+
return t.scrollTop > r.scrollTop ? e = "down" : t.scrollTop < r.scrollTop ? e = "up" : t.scrollLeft > r.scrollLeft ? e = "right" : t.scrollLeft < r.scrollLeft && (e = "left"), ot.current = t, e;
|
|
113
|
+
}, []), kt = C((t) => {
|
|
114
114
|
if (!n.current) return;
|
|
115
|
-
const { scrollTop: r, scrollLeft: e, scrollHeight: o, scrollWidth: s, clientHeight: l, clientWidth:
|
|
116
|
-
percentage:
|
|
115
|
+
const { scrollTop: r, scrollLeft: e, scrollHeight: o, scrollWidth: s, clientHeight: l, clientWidth: h } = n.current, m = lt(t), { x: T, y: S } = st(), L = {
|
|
116
|
+
percentage: S,
|
|
117
117
|
direction: m,
|
|
118
118
|
scrollTop: r,
|
|
119
119
|
scrollLeft: e,
|
|
120
120
|
scrollHeight: o,
|
|
121
121
|
scrollWidth: s,
|
|
122
122
|
clientHeight: l,
|
|
123
|
-
clientWidth:
|
|
123
|
+
clientWidth: h
|
|
124
124
|
}, _ = {
|
|
125
125
|
percentage: T,
|
|
126
126
|
direction: m,
|
|
@@ -129,17 +129,17 @@ const mt = K(
|
|
|
129
129
|
scrollHeight: o,
|
|
130
130
|
scrollWidth: s,
|
|
131
131
|
clientHeight: l,
|
|
132
|
-
clientWidth:
|
|
132
|
+
clientWidth: h
|
|
133
133
|
};
|
|
134
|
-
|
|
134
|
+
H.current.forEach((p) => {
|
|
135
135
|
const { config: b, triggered: $ } = p;
|
|
136
136
|
if (!b) {
|
|
137
|
-
(v === "y" || v === "both") && p.callback(
|
|
137
|
+
(v === "y" || v === "both") && p.callback(L), (v === "x" || v === "both") && p.callback(_);
|
|
138
138
|
return;
|
|
139
139
|
}
|
|
140
|
-
const J = (b.direction === "y" || b.direction === "both") && (v === "y" || v === "both"),
|
|
141
|
-
if (!J && !
|
|
142
|
-
const E = (J ?
|
|
140
|
+
const J = (b.direction === "y" || b.direction === "both") && (v === "y" || v === "both"), pt = (b.direction === "x" || b.direction === "both") && (v === "x" || v === "both");
|
|
141
|
+
if (!J && !pt) return;
|
|
142
|
+
const E = (J ? L : _).percentage, I = b.target * 100;
|
|
143
143
|
let k = !1;
|
|
144
144
|
if (b.trip === "forth")
|
|
145
145
|
k = !$ && E >= I, k && (p.triggered = !0), $ && E < I && (p.triggered = !1);
|
|
@@ -150,39 +150,39 @@ const mt = K(
|
|
|
150
150
|
k = p.triggered !== O;
|
|
151
151
|
}
|
|
152
152
|
if (k) {
|
|
153
|
-
const O = `${
|
|
154
|
-
if (W -
|
|
153
|
+
const O = `${H.current.indexOf(p)}-${b?.target || 0}-${b?.direction || "y"}`, W = Date.now(), zt = rt.current.get(O) || 0;
|
|
154
|
+
if (W - zt < 500)
|
|
155
155
|
return;
|
|
156
|
-
b.trip === "round-trip" && (p.triggered = E >= I, p.lastDirection = m || void 0),
|
|
156
|
+
b.trip === "round-trip" && (p.triggered = E >= I, p.lastDirection = m || void 0), rt.current.set(O, W), p.lastTriggerTime = W, J ? p.callback(L) : pt && p.callback(_);
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
|
-
}, [v,
|
|
159
|
+
}, [v, lt, st]), ct = C((t, r) => {
|
|
160
160
|
const e = {
|
|
161
161
|
callback: t,
|
|
162
162
|
config: r,
|
|
163
163
|
triggered: !1,
|
|
164
164
|
lastDirection: void 0
|
|
165
165
|
};
|
|
166
|
-
return
|
|
167
|
-
const o =
|
|
168
|
-
o > -1 &&
|
|
166
|
+
return H.current.push(e), () => {
|
|
167
|
+
const o = H.current.indexOf(e);
|
|
168
|
+
o > -1 && H.current.splice(o, 1);
|
|
169
169
|
};
|
|
170
170
|
}, []);
|
|
171
|
-
|
|
172
|
-
subscribeToScrollTarget:
|
|
173
|
-
}), [
|
|
171
|
+
Bt(Mt, () => ({
|
|
172
|
+
subscribeToScrollTarget: ct
|
|
173
|
+
}), [ct]);
|
|
174
174
|
const B = (t, r = 100, e = !0) => {
|
|
175
175
|
if (!n.current) return;
|
|
176
176
|
const o = q(t), s = Math.min(Math.abs(r), o);
|
|
177
177
|
if (s === 0) return;
|
|
178
|
-
const l = t === "top" || t === "left" ? -s : s,
|
|
178
|
+
const l = t === "top" || t === "left" ? -s : s, h = {
|
|
179
179
|
top: { top: l, left: 0 },
|
|
180
180
|
bottom: { top: l, left: 0 },
|
|
181
181
|
left: { top: 0, left: l },
|
|
182
182
|
right: { top: 0, left: l }
|
|
183
183
|
};
|
|
184
|
-
n.current.scrollBy({ ...
|
|
185
|
-
},
|
|
184
|
+
n.current.scrollBy({ ...h[t], behavior: e ? "smooth" : "auto" });
|
|
185
|
+
}, Ct = (t) => {
|
|
186
186
|
if (!n.current) return;
|
|
187
187
|
const r = n.current, e = {
|
|
188
188
|
top: { top: 0, left: r.scrollLeft },
|
|
@@ -191,16 +191,16 @@ const mt = K(
|
|
|
191
191
|
right: { top: r.scrollTop, left: r.scrollWidth }
|
|
192
192
|
};
|
|
193
193
|
r.scrollTo({ ...e[t], behavior: "smooth" });
|
|
194
|
-
},
|
|
194
|
+
}, jt = () => {
|
|
195
195
|
n.current && n.current.scrollTo({ top: 0, behavior: "smooth" });
|
|
196
|
-
},
|
|
196
|
+
}, Dt = (t, r) => {
|
|
197
197
|
const e = c.current[t];
|
|
198
198
|
if (e) {
|
|
199
199
|
if (e.style.cursor = "pointer", r === "icon") {
|
|
200
200
|
const o = e.querySelector("svg");
|
|
201
201
|
o && (o.style.transition = "all 0.3s ease-in-out", o.style.transform = "scale(1.3)", o.style.backgroundColor = "rgba(255, 255, 255, 0.2)", o.style.borderRadius = "100%");
|
|
202
202
|
} else if (r === "shadow") {
|
|
203
|
-
const o = e.querySelector("span"), s =
|
|
203
|
+
const o = e.querySelector("span"), s = gt(n.current);
|
|
204
204
|
o && (t === "top" || t === "bottom" ? (o.style.height = "110px", o.style.background = `linear-gradient(to bottom, ${s} 5%, ${V(s, -2)} 10%, ${V(s, -5, 30)} 70%, transparent)`, o.style.animation = "scrollToEndPulse 3.5s ease-out", setTimeout(() => {
|
|
205
205
|
o.style.animation = "";
|
|
206
206
|
}, 3500)) : (o.style.width = "40px", o.style.animation = "scrollToEndPulseVertical 1.5s ease-out", setTimeout(() => {
|
|
@@ -216,13 +216,13 @@ const mt = K(
|
|
|
216
216
|
e && (e.style.transform = "", e.style.backgroundColor = "", e.style.borderRadius = "");
|
|
217
217
|
const o = r.querySelector("span");
|
|
218
218
|
o && (o.style.height = "", o.style.width = "");
|
|
219
|
-
},
|
|
219
|
+
}, at = (t, r) => {
|
|
220
220
|
if (r === "scroll-on-click" && g.current) {
|
|
221
221
|
g.current = !1;
|
|
222
222
|
return;
|
|
223
223
|
}
|
|
224
|
-
if (
|
|
225
|
-
a.current && (clearTimeout(a.current), a.current = null), u.current && (clearInterval(u.current), u.current = null), x(t),
|
|
224
|
+
if (d.current[t]) {
|
|
225
|
+
a.current && (clearTimeout(a.current), a.current = null), u.current && (clearInterval(u.current), u.current = null), x(t), d.current[t] = !1, Ct(t);
|
|
226
226
|
return;
|
|
227
227
|
}
|
|
228
228
|
if (r === "scroll-on-click") {
|
|
@@ -230,17 +230,17 @@ const mt = K(
|
|
|
230
230
|
const { clientHeight: e, clientWidth: o } = n.current, s = t === "top" || t === "bottom" ? e * 0.8 : o * 0.8;
|
|
231
231
|
B(t, s);
|
|
232
232
|
}
|
|
233
|
-
},
|
|
233
|
+
}, it = (t, r) => {
|
|
234
234
|
a.current && (clearTimeout(a.current), a.current = null), g.current = !0, f.current = 3;
|
|
235
235
|
let e = 0;
|
|
236
|
-
|
|
236
|
+
j.current = t, d.current[t] = !1, B(t, f.current, !1), u.current = setInterval(() => {
|
|
237
237
|
e += 16;
|
|
238
238
|
const o = e / 1e3;
|
|
239
239
|
if (q(t) === 0) {
|
|
240
240
|
F(t);
|
|
241
241
|
return;
|
|
242
242
|
}
|
|
243
|
-
if (o >= 2 && !
|
|
243
|
+
if (o >= 2 && !d.current[t] && (d.current[t] = !0, Dt(t, r)), o <= 2)
|
|
244
244
|
f.current = 5 + o * 0.4;
|
|
245
245
|
else {
|
|
246
246
|
const l = o - 2;
|
|
@@ -250,47 +250,47 @@ const mt = K(
|
|
|
250
250
|
}, 16);
|
|
251
251
|
}, F = (t, r = !1) => {
|
|
252
252
|
N.current && (clearTimeout(N.current), N.current = null);
|
|
253
|
-
const e = t ||
|
|
253
|
+
const e = t || j.current;
|
|
254
254
|
if (!r && e && u.current) {
|
|
255
255
|
let o = 0;
|
|
256
|
-
const s = f.current, l = 800,
|
|
256
|
+
const s = f.current, l = 800, h = setInterval(() => {
|
|
257
257
|
o += 16;
|
|
258
258
|
const m = o / l, T = 1 - Math.pow(1 - m, 3);
|
|
259
259
|
if (f.current = s * (1 - T), q(e) === 0 || f.current <= 0.5) {
|
|
260
|
-
clearInterval(
|
|
261
|
-
x(e),
|
|
262
|
-
}, 1e3)) : (x(e),
|
|
260
|
+
clearInterval(h), u.current && (clearInterval(u.current), u.current = null), f.current = 5, e ? d.current[e] ? (a.current && clearTimeout(a.current), a.current = setTimeout(() => {
|
|
261
|
+
x(e), d.current[e] = !1, g.current = !1;
|
|
262
|
+
}, 1e3)) : (x(e), d.current[e] = !1, g.current = !1) : g.current = !1, j.current = null;
|
|
263
263
|
return;
|
|
264
264
|
}
|
|
265
265
|
B(e, f.current, !1);
|
|
266
266
|
}, 16);
|
|
267
267
|
N.current = setTimeout(() => {
|
|
268
|
-
clearInterval(
|
|
269
|
-
x(e),
|
|
270
|
-
}, 1e3)) : (x(e),
|
|
268
|
+
clearInterval(h), u.current && (clearInterval(u.current), u.current = null), f.current = 5, e ? d.current[e] ? (a.current && clearTimeout(a.current), a.current = setTimeout(() => {
|
|
269
|
+
x(e), d.current[e] = !1, g.current = !1;
|
|
270
|
+
}, 1e3)) : (x(e), d.current[e] = !1, g.current = !1) : g.current = !1, j.current = null;
|
|
271
271
|
}, l);
|
|
272
272
|
} else
|
|
273
|
-
u.current && (clearInterval(u.current), u.current = null), f.current = 5, e ?
|
|
274
|
-
x(e),
|
|
275
|
-
}, 1e3)) : (x(e),
|
|
276
|
-
},
|
|
277
|
-
|
|
278
|
-
|
|
273
|
+
u.current && (clearInterval(u.current), u.current = null), f.current = 5, e ? d.current[e] ? (a.current && clearTimeout(a.current), a.current = setTimeout(() => {
|
|
274
|
+
x(e), d.current[e] = !1, g.current = !1;
|
|
275
|
+
}, 1e3)) : (x(e), d.current[e] = !1, g.current = !1) : g.current = !1, j.current = null;
|
|
276
|
+
}, ut = (t, r, e) => {
|
|
277
|
+
Tt || r === "scroll-on-hover" && (N.current = setTimeout(() => {
|
|
278
|
+
it(t, e);
|
|
279
279
|
}, 200));
|
|
280
|
-
},
|
|
280
|
+
}, ft = (t, r) => {
|
|
281
281
|
r === "scroll-on-hover" && F(t, !0);
|
|
282
|
-
},
|
|
282
|
+
}, dt = (t, r, e) => {
|
|
283
283
|
r === "scroll-on-click" && (g.current = !1, N.current = setTimeout(() => {
|
|
284
|
-
|
|
284
|
+
it(t, e);
|
|
285
285
|
}, 200));
|
|
286
|
-
},
|
|
286
|
+
}, ht = (t, r) => {
|
|
287
287
|
r === "scroll-on-click" && F(t, !1);
|
|
288
288
|
}, U = () => {
|
|
289
289
|
if (!n.current) return;
|
|
290
|
-
const t = n.current, { scrollTop: r, scrollLeft: e, scrollHeight: o, scrollWidth: s, clientHeight: l, clientWidth:
|
|
291
|
-
c.current.top?.classList.toggle("opacity-0", m), c.current.top?.classList.toggle("pointer-events-none", m), c.current.top?.classList.toggle("pointer-events-auto", !m), c.current.bottom?.classList.toggle("opacity-0", T), c.current.bottom?.classList.toggle("pointer-events-none", T), c.current.bottom?.classList.toggle("pointer-events-auto", !T), c.current.left?.classList.toggle("opacity-0",
|
|
290
|
+
const t = n.current, { scrollTop: r, scrollLeft: e, scrollHeight: o, scrollWidth: s, clientHeight: l, clientWidth: h } = t, m = r <= 10, T = r + l >= o - 10, S = e <= 10, L = e + h >= s - 10;
|
|
291
|
+
c.current.top?.classList.toggle("opacity-0", m), c.current.top?.classList.toggle("pointer-events-none", m), c.current.top?.classList.toggle("pointer-events-auto", !m), c.current.bottom?.classList.toggle("opacity-0", T), c.current.bottom?.classList.toggle("pointer-events-none", T), c.current.bottom?.classList.toggle("pointer-events-auto", !T), c.current.left?.classList.toggle("opacity-0", S), c.current.left?.classList.toggle("pointer-events-none", S), c.current.left?.classList.toggle("pointer-events-auto", !S), c.current.right?.classList.toggle("opacity-0", L), c.current.right?.classList.toggle("pointer-events-none", L), c.current.right?.classList.toggle("pointer-events-auto", !L);
|
|
292
292
|
};
|
|
293
|
-
|
|
293
|
+
$t(() => {
|
|
294
294
|
if (!n.current) return;
|
|
295
295
|
const t = n.current;
|
|
296
296
|
if (A) {
|
|
@@ -304,7 +304,7 @@ const mt = K(
|
|
|
304
304
|
} catch {
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
U(),
|
|
307
|
+
U(), tt.current || (tt.current = !0, requestAnimationFrame(() => {
|
|
308
308
|
Object.values(c.current).forEach((o) => {
|
|
309
309
|
o?.classList.add("transition-all", "duration-300");
|
|
310
310
|
}), setTimeout(() => {
|
|
@@ -312,14 +312,14 @@ const mt = K(
|
|
|
312
312
|
}, 0);
|
|
313
313
|
}));
|
|
314
314
|
const r = () => {
|
|
315
|
-
if (U(),
|
|
315
|
+
if (U(), It(), n.current) {
|
|
316
316
|
const o = {
|
|
317
317
|
scrollTop: n.current.scrollTop,
|
|
318
318
|
scrollLeft: n.current.scrollLeft
|
|
319
319
|
};
|
|
320
|
-
|
|
320
|
+
kt(o);
|
|
321
321
|
}
|
|
322
|
-
A && R.current && (
|
|
322
|
+
A && R.current && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
|
|
323
323
|
try {
|
|
324
324
|
const o = {
|
|
325
325
|
scrollTop: t.scrollTop,
|
|
@@ -332,15 +332,15 @@ const mt = K(
|
|
|
332
332
|
};
|
|
333
333
|
t.addEventListener("scroll", r);
|
|
334
334
|
const e = (o) => {
|
|
335
|
-
|
|
335
|
+
Z && o.preventDefault();
|
|
336
336
|
};
|
|
337
337
|
return t.addEventListener("wheel", e, { passive: !1 }), () => {
|
|
338
|
-
t.removeEventListener("scroll", r), t.removeEventListener("wheel", e),
|
|
338
|
+
t.removeEventListener("scroll", r), t.removeEventListener("wheel", e), D.current && clearTimeout(D.current);
|
|
339
339
|
};
|
|
340
|
-
}, [
|
|
340
|
+
}, [Z]), Ot(() => {
|
|
341
341
|
if (!n.current) return;
|
|
342
|
-
let t =
|
|
343
|
-
Object.entries(
|
|
342
|
+
let t = gt(n.current);
|
|
343
|
+
Object.entries(P).forEach(([r, e]) => {
|
|
344
344
|
if (e?.show && e.type === "shadow") {
|
|
345
345
|
const s = c.current[r]?.querySelector("span");
|
|
346
346
|
if (s) {
|
|
@@ -350,25 +350,25 @@ const mt = K(
|
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
|
-
}, [
|
|
354
|
-
const
|
|
355
|
-
return /* @__PURE__ */ y.jsxs("div", { className: M("relative p-0",
|
|
353
|
+
}, [P]);
|
|
354
|
+
const Pt = mt.Children.toArray(xt), Ht = Object.values(P).some((t) => t?.show && t?.type === "icon");
|
|
355
|
+
return /* @__PURE__ */ y.jsxs("div", { className: M("relative p-0", Q, vt({ axis: v }), "scrolleable", Ht ? "overflow-visible" : "overflow-hidden!"), children: [
|
|
356
356
|
/* @__PURE__ */ y.jsx(
|
|
357
357
|
"div",
|
|
358
358
|
{
|
|
359
359
|
ref: n,
|
|
360
360
|
className: M(
|
|
361
361
|
wt && "border border-red-900 border-dashed",
|
|
362
|
-
|
|
362
|
+
Q,
|
|
363
363
|
"py-2 relative w-full h-full min-h-full",
|
|
364
|
-
|
|
365
|
-
|
|
364
|
+
vt({ axis: v }),
|
|
365
|
+
Wt({ hide: et?.hide, size: et?.size }),
|
|
366
366
|
""
|
|
367
367
|
),
|
|
368
|
-
children:
|
|
368
|
+
children: Pt?.map((t) => mt.cloneElement(t, { className: M(t?.props?.className, "shrink-0! pointer-events-auto") }))
|
|
369
369
|
}
|
|
370
370
|
),
|
|
371
|
-
/* @__PURE__ */ y.jsx("div", { className: "h-full w-full z-10 absolute inset-0 pointer-events-none overflow-hidden rounded-[inherit]", children: Object.entries(
|
|
371
|
+
/* @__PURE__ */ y.jsx("div", { className: "h-full w-full z-10 absolute inset-0 pointer-events-none overflow-hidden rounded-[inherit]", children: Object.entries(P).map(([t, r]) => {
|
|
372
372
|
if (!r?.show || r.type !== "shadow") return null;
|
|
373
373
|
const e = t;
|
|
374
374
|
return /* @__PURE__ */ y.jsx(
|
|
@@ -381,17 +381,17 @@ const mt = K(
|
|
|
381
381
|
"cursor-default ease-in-out z-100",
|
|
382
382
|
"opacity-0 pointer-events-none"
|
|
383
383
|
),
|
|
384
|
-
onClick: () =>
|
|
385
|
-
onMouseEnter: () =>
|
|
386
|
-
onMouseLeave: () =>
|
|
387
|
-
onMouseDown: () =>
|
|
388
|
-
onMouseUp: () =>
|
|
389
|
-
children: /* @__PURE__ */ y.jsx("span", { className: M(
|
|
384
|
+
onClick: () => at(e, r.behavior),
|
|
385
|
+
onMouseEnter: () => ut(e, r.behavior, r.type),
|
|
386
|
+
onMouseLeave: () => ft(e, r.behavior),
|
|
387
|
+
onMouseDown: () => dt(e, r.behavior, r.type),
|
|
388
|
+
onMouseUp: () => ht(e, r.behavior),
|
|
389
|
+
children: /* @__PURE__ */ y.jsx("span", { className: M(yt({ position: e, type: "shadow" }), r.className) })
|
|
390
390
|
},
|
|
391
391
|
t
|
|
392
392
|
);
|
|
393
393
|
}) }),
|
|
394
|
-
/* @__PURE__ */ y.jsx("div", { className: "h-full w-full z-20 absolute inset-0 pointer-events-none", children: Object.entries(
|
|
394
|
+
/* @__PURE__ */ y.jsx("div", { className: "h-full w-full z-20 absolute inset-0 pointer-events-none", children: Object.entries(P).map(([t, r]) => {
|
|
395
395
|
if (!r?.show || r.type !== "icon") return null;
|
|
396
396
|
const e = t;
|
|
397
397
|
return /* @__PURE__ */ y.jsx(
|
|
@@ -401,12 +401,12 @@ const mt = K(
|
|
|
401
401
|
c.current[t] = o;
|
|
402
402
|
},
|
|
403
403
|
className: "pointer-events-auto cursor-default transition-all duration-300 opacity-0",
|
|
404
|
-
onClick: () =>
|
|
405
|
-
onMouseEnter: () =>
|
|
406
|
-
onMouseLeave: () =>
|
|
407
|
-
onMouseDown: () =>
|
|
408
|
-
onMouseUp: () =>
|
|
409
|
-
children: /* @__PURE__ */ y.jsx(
|
|
404
|
+
onClick: () => at(e, r.behavior),
|
|
405
|
+
onMouseEnter: () => ut(e, r.behavior, r.type),
|
|
406
|
+
onMouseLeave: () => ft(e, r.behavior),
|
|
407
|
+
onMouseDown: () => dt(e, r.behavior, r.type),
|
|
408
|
+
onMouseUp: () => ht(e, r.behavior),
|
|
409
|
+
children: /* @__PURE__ */ y.jsx(bt, { size: 20, className: M(yt({ position: e, type: "icon" }), r.className) })
|
|
410
410
|
},
|
|
411
411
|
t
|
|
412
412
|
);
|
|
@@ -414,24 +414,24 @@ const mt = K(
|
|
|
414
414
|
w && /* @__PURE__ */ y.jsx(
|
|
415
415
|
"button",
|
|
416
416
|
{
|
|
417
|
-
onClick:
|
|
417
|
+
onClick: jt,
|
|
418
418
|
className: M(
|
|
419
419
|
"absolute bottom-6 right-6 z-50 p-3 rounded-full shadow-lg transition-all duration-300 hover:scale-110 pointer-events-auto cursor-pointer",
|
|
420
420
|
"bg-primary-default-default hover:bg-primary-default-hover text-white",
|
|
421
421
|
// Transiciones de aparición/desaparición
|
|
422
422
|
"transform translate-y-0 opacity-70",
|
|
423
|
-
!
|
|
423
|
+
!Nt && "translate-y-4 opacity-0 pointer-events-none",
|
|
424
424
|
w.className
|
|
425
425
|
),
|
|
426
426
|
"aria-label": "Scroll to top",
|
|
427
427
|
style: {
|
|
428
428
|
transition: "all 0.3s ease-in-out"
|
|
429
429
|
},
|
|
430
|
-
children: w.icon ? /* @__PURE__ */ y.jsx(w.icon, { size: 20, className: "text-white" }) : /* @__PURE__ */ y.jsx(
|
|
430
|
+
children: w.icon ? /* @__PURE__ */ y.jsx(w.icon, { size: 20, className: "text-white" }) : /* @__PURE__ */ y.jsx(bt, { size: 20, className: "text-white rotate-90" })
|
|
431
431
|
}
|
|
432
432
|
)
|
|
433
433
|
] });
|
|
434
434
|
};
|
|
435
435
|
export {
|
|
436
|
-
|
|
436
|
+
Yt as Scrollable
|
|
437
437
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prometeo-design-system",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "4.3.
|
|
4
|
+
"version": "4.3.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "design kit system",
|
|
7
7
|
"main": "dist/prometeo-design-system.umd.js",
|
|
@@ -253,7 +253,6 @@
|
|
|
253
253
|
"@storybook/react-vite": "^9.1.3",
|
|
254
254
|
"@tailwindcss/postcss": "^4.1.14",
|
|
255
255
|
"@tanstack/react-table": "^8.21.3",
|
|
256
|
-
"@types/node": "^24.3.1",
|
|
257
256
|
"@types/react": "^19.1.10",
|
|
258
257
|
"@types/react-dom": "^19.1.7",
|
|
259
258
|
"@vitejs/plugin-react-swc": "^4.0.0",
|
|
@@ -308,4 +307,4 @@
|
|
|
308
307
|
"ajv": "^8.17.1"
|
|
309
308
|
}
|
|
310
309
|
}
|
|
311
|
-
}
|
|
310
|
+
}
|