@easyvision/easyvision-ui 1.3.4
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/README.md +1391 -0
- package/dist/EasyVisionTable.css +68 -0
- package/dist/easyvision.css +30 -0
- package/dist/index.cjs +2968 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +612 -0
- package/dist/index.d.ts +612 -0
- package/dist/index.js +2929 -0
- package/dist/index.js.map +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* EasyVision table scroll wrapper — show both axes' scrollbars.
|
|
2
|
+
* Co-located with the component so it ships wherever EasyVision is used,
|
|
3
|
+
* even when the host project hides scrollbars globally.
|
|
4
|
+
* Uses theme-agnostic rgba so it works without any CSS variable setup. */
|
|
5
|
+
|
|
6
|
+
.easyvision-table-scroll {
|
|
7
|
+
scrollbar-width: thin; /* Firefox */
|
|
8
|
+
scrollbar-color: rgba(0, 0, 0, 0.4) transparent;
|
|
9
|
+
-ms-overflow-style: auto; /* IE/Edge */
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.easyvision-table-scroll::-webkit-scrollbar {
|
|
13
|
+
display: block;
|
|
14
|
+
width: 10px;
|
|
15
|
+
height: 10px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.easyvision-table-scroll::-webkit-scrollbar-track {
|
|
19
|
+
background: transparent;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.easyvision-table-scroll::-webkit-scrollbar-thumb {
|
|
23
|
+
background: rgba(0, 0, 0, 0.35);
|
|
24
|
+
border-radius: 10px;
|
|
25
|
+
border: 2px solid transparent;
|
|
26
|
+
background-clip: padding-box;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.easyvision-table-scroll::-webkit-scrollbar-thumb:hover {
|
|
30
|
+
background: rgba(0, 0, 0, 0.55);
|
|
31
|
+
background-clip: padding-box;
|
|
32
|
+
border: 2px solid transparent;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.easyvision-table-scroll::-webkit-scrollbar-corner {
|
|
36
|
+
background: transparent;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* Dark mode — works with either `prefers-color-scheme` or a `.dark` class
|
|
40
|
+
* on a parent element (the convention used by Shadcn/UI). */
|
|
41
|
+
@media (prefers-color-scheme: dark) {
|
|
42
|
+
.easyvision-table-scroll {
|
|
43
|
+
scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
|
|
44
|
+
}
|
|
45
|
+
.easyvision-table-scroll::-webkit-scrollbar-thumb {
|
|
46
|
+
background: rgba(255, 255, 255, 0.3);
|
|
47
|
+
background-clip: padding-box;
|
|
48
|
+
}
|
|
49
|
+
.easyvision-table-scroll::-webkit-scrollbar-thumb:hover {
|
|
50
|
+
background: rgba(255, 255, 255, 0.5);
|
|
51
|
+
background-clip: padding-box;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.dark .easyvision-table-scroll,
|
|
56
|
+
[data-theme='dark'] .easyvision-table-scroll {
|
|
57
|
+
scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
|
|
58
|
+
}
|
|
59
|
+
.dark .easyvision-table-scroll::-webkit-scrollbar-thumb,
|
|
60
|
+
[data-theme='dark'] .easyvision-table-scroll::-webkit-scrollbar-thumb {
|
|
61
|
+
background: rgba(255, 255, 255, 0.3);
|
|
62
|
+
background-clip: padding-box;
|
|
63
|
+
}
|
|
64
|
+
.dark .easyvision-table-scroll::-webkit-scrollbar-thumb:hover,
|
|
65
|
+
[data-theme='dark'] .easyvision-table-scroll::-webkit-scrollbar-thumb:hover {
|
|
66
|
+
background: rgba(255, 255, 255, 0.5);
|
|
67
|
+
background-clip: padding-box;
|
|
68
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* Re-enable scrollbars on table scroll containers. Some host projects
|
|
2
|
+
* globally hide scrollbars via `* { scrollbar-width: none }` and
|
|
3
|
+
* `*::-webkit-scrollbar { display: none }`; this rule overrides that
|
|
4
|
+
* for any element marked with `.easyvision-table-scroll` so the table
|
|
5
|
+
* gets a visible horizontal scrollbar when its content overflows.
|
|
6
|
+
* The shadcn <Table> primitive wraps itself in a div with overflow-auto;
|
|
7
|
+
* we target that wrapper through our own marker class. */
|
|
8
|
+
.easyvision-table-scroll > div {
|
|
9
|
+
scrollbar-width: thin;
|
|
10
|
+
scrollbar-color: hsl(var(--muted-foreground) / 0.4) transparent;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.easyvision-table-scroll > div::-webkit-scrollbar {
|
|
14
|
+
display: block;
|
|
15
|
+
height: 8px;
|
|
16
|
+
width: 8px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.easyvision-table-scroll > div::-webkit-scrollbar-track {
|
|
20
|
+
background: transparent;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.easyvision-table-scroll > div::-webkit-scrollbar-thumb {
|
|
24
|
+
background: hsl(var(--muted-foreground) / 0.35);
|
|
25
|
+
border-radius: 4px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.easyvision-table-scroll > div::-webkit-scrollbar-thumb:hover {
|
|
29
|
+
background: hsl(var(--muted-foreground) / 0.55);
|
|
30
|
+
}
|