@jacshuo/onyx 2.2.0 → 2.4.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.
- package/dist/Chart/BarChart.cjs +1 -1
- package/dist/Chart/BarChart.js +1 -1
- package/dist/Chart/PieChart.cjs +1 -1
- package/dist/Chart/PieChart.js +1 -1
- package/dist/Chart/ScatterChart.cjs +1 -1
- package/dist/Chart/ScatterChart.js +1 -1
- package/dist/Chart/index.cjs +1 -1
- package/dist/Chart/index.js +1 -1
- package/dist/DataDisplay/VirtualList.cjs +2 -0
- package/dist/DataDisplay/VirtualList.css +1 -0
- package/dist/DataDisplay/VirtualList.d.cts +5 -0
- package/dist/DataDisplay/VirtualList.d.ts +5 -0
- package/dist/DataDisplay/VirtualList.js +2 -0
- package/dist/DataDisplay/index.cjs +3 -2
- package/dist/DataDisplay/index.css +1 -0
- package/dist/DataDisplay/index.d.cts +5 -0
- package/dist/DataDisplay/index.d.ts +5 -0
- package/dist/DataDisplay/index.js +3 -2
- package/dist/Extras/FileExplorer.cjs +2 -2
- package/dist/Extras/FileExplorer.js +2 -2
- package/dist/Extras/LoginPanel.cjs +1 -0
- package/dist/Extras/LoginPanel.css +1 -0
- package/dist/Extras/LoginPanel.d.cts +3 -0
- package/dist/Extras/LoginPanel.d.ts +3 -0
- package/dist/Extras/LoginPanel.js +1 -0
- package/dist/Extras/RichTextEditor.cjs +45 -0
- package/dist/Extras/RichTextEditor.css +1 -0
- package/dist/Extras/RichTextEditor.d.cts +10 -0
- package/dist/Extras/RichTextEditor.d.ts +10 -0
- package/dist/Extras/RichTextEditor.js +45 -0
- package/dist/Extras/TypewriterText.cjs +2 -1
- package/dist/Extras/TypewriterText.css +1 -1
- package/dist/Extras/TypewriterText.js +2 -1
- package/dist/Extras/index.cjs +48 -4
- package/dist/Extras/index.css +1 -1
- package/dist/Extras/index.d.cts +7 -0
- package/dist/Extras/index.d.ts +7 -0
- package/dist/Extras/index.js +48 -4
- package/dist/Forms/Form.cjs +1 -1
- package/dist/Forms/Form.js +1 -1
- package/dist/Forms/OTPInput.cjs +1 -0
- package/dist/Forms/OTPInput.css +1 -0
- package/dist/Forms/OTPInput.d.cts +4 -0
- package/dist/Forms/OTPInput.d.ts +4 -0
- package/dist/Forms/OTPInput.js +1 -0
- package/dist/Forms/Select.cjs +1 -1
- package/dist/Forms/Select.js +1 -1
- package/dist/Forms/index.cjs +1 -1
- package/dist/Forms/index.css +1 -0
- package/dist/Forms/index.d.cts +4 -0
- package/dist/Forms/index.d.ts +4 -0
- package/dist/Forms/index.js +1 -1
- package/dist/Layout/SplitPanel.cjs +1 -0
- package/dist/Layout/SplitPanel.d.cts +3 -0
- package/dist/Layout/SplitPanel.d.ts +3 -0
- package/dist/Layout/SplitPanel.js +1 -0
- package/dist/Layout/index.cjs +1 -1
- package/dist/Layout/index.d.cts +3 -0
- package/dist/Layout/index.d.ts +3 -0
- package/dist/Layout/index.js +1 -1
- package/dist/Navigation/Header.cjs +1 -1
- package/dist/Navigation/Header.js +1 -1
- package/dist/Navigation/RibbonBar.d.cts +3 -3
- package/dist/Navigation/RibbonBar.d.ts +3 -3
- package/dist/Navigation/index.cjs +2 -2
- package/dist/Navigation/index.d.cts +3 -3
- package/dist/Navigation/index.d.ts +3 -3
- package/dist/Navigation/index.js +2 -2
- package/dist/Primitives/Avatar.cjs +1 -1
- package/dist/Primitives/Avatar.js +1 -1
- package/dist/Primitives/Badge.cjs +1 -1
- package/dist/Primitives/Badge.js +1 -1
- package/dist/Primitives/Button.cjs +1 -1
- package/dist/Primitives/Button.js +1 -1
- package/dist/Primitives/Checkbox.cjs +1 -1
- package/dist/Primitives/Checkbox.js +1 -1
- package/dist/Primitives/Dropdown.cjs +1 -1
- package/dist/Primitives/Dropdown.js +1 -1
- package/dist/Primitives/DropdownButton.cjs +1 -1
- package/dist/Primitives/DropdownButton.js +1 -1
- package/dist/Primitives/Indicator.cjs +1 -1
- package/dist/Primitives/Indicator.js +1 -1
- package/dist/Primitives/Input.cjs +1 -1
- package/dist/Primitives/Input.js +1 -1
- package/dist/Primitives/Kbd.cjs +1 -0
- package/dist/Primitives/Kbd.css +0 -0
- package/dist/Primitives/Kbd.d.cts +6 -0
- package/dist/Primitives/Kbd.d.ts +6 -0
- package/dist/Primitives/Kbd.js +1 -0
- package/dist/Primitives/Label.cjs +1 -1
- package/dist/Primitives/Label.js +1 -1
- package/dist/Primitives/Radio.cjs +1 -1
- package/dist/Primitives/Radio.js +1 -1
- package/dist/Primitives/Rating.cjs +2 -0
- package/dist/Primitives/Rating.css +0 -0
- package/dist/Primitives/Rating.d.cts +4 -0
- package/dist/Primitives/Rating.d.ts +4 -0
- package/dist/Primitives/Rating.js +2 -0
- package/dist/Primitives/Slider.cjs +1 -1
- package/dist/Primitives/Slider.js +1 -1
- package/dist/Primitives/Switch.cjs +1 -1
- package/dist/Primitives/Switch.js +1 -1
- package/dist/Primitives/Tag.cjs +1 -1
- package/dist/Primitives/Tag.js +1 -1
- package/dist/Primitives/index.cjs +2 -1
- package/dist/Primitives/index.d.cts +10 -0
- package/dist/Primitives/index.d.ts +10 -0
- package/dist/Primitives/index.js +2 -1
- package/dist/_tsup-dts-rollup.d.cts +843 -1
- package/dist/_tsup-dts-rollup.d.ts +843 -1
- package/dist/index.cjs +49 -5
- package/dist/index.css +1 -1
- package/dist/index.d.cts +35 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +49 -5
- package/dist/styles/DataDisplay/VirtualList.css +35 -0
- package/dist/styles/Extras/CinePlayer.css +63 -1
- package/dist/styles/Extras/FileExplorer.css +39 -1
- package/dist/styles/Extras/FilmReel.css +24 -1
- package/dist/styles/Extras/LoginPanel.css +16 -0
- package/dist/styles/Extras/MiniPlayer.css +84 -1
- package/dist/styles/Extras/RichTextEditor.css +908 -0
- package/dist/styles/Extras/TypewriterText.css +254 -0
- package/dist/styles/Forms/OTPInput.css +11 -0
- package/dist/styles/Layout/SplitPanel.css +15 -0
- package/dist/styles/Primitives/DropdownButton.css +26 -1
- package/dist/styles/Primitives/Kbd.css +1 -0
- package/dist/styles/Primitives/Rating.css +1 -0
- package/dist/styles/base.css +281 -0
- package/dist/styles.css +281 -0
- package/dist/theme.cjs +1 -1
- package/dist/theme.d.cts +3 -0
- package/dist/theme.d.ts +3 -0
- package/dist/theme.js +1 -1
- package/package.json +22 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* VirtualList — component-scoped styles */
|
|
2
|
+
|
|
3
|
+
/* Smooth momentum scrolling on iOS / macOS trackpads */
|
|
4
|
+
[data-virtual-list] {
|
|
5
|
+
-webkit-overflow-scrolling: touch;
|
|
6
|
+
scroll-behavior: auto; /* programmatic smooth scroll is handled per-call */
|
|
7
|
+
outline: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* Prevent sub-pixel layout jitter on high-DPI screens */
|
|
11
|
+
.onyx-vlist-item {
|
|
12
|
+
will-change: transform;
|
|
13
|
+
contain: layout style;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Horizontal-list drag affordance */
|
|
17
|
+
[data-virtual-list][data-direction="horizontal"] {
|
|
18
|
+
cursor: grab;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Default scroll-bar thinning on Webkit */
|
|
22
|
+
[data-virtual-list]::-webkit-scrollbar {
|
|
23
|
+
width: 6px;
|
|
24
|
+
height: 6px;
|
|
25
|
+
}
|
|
26
|
+
[data-virtual-list]::-webkit-scrollbar-track {
|
|
27
|
+
background: transparent;
|
|
28
|
+
}
|
|
29
|
+
[data-virtual-list]::-webkit-scrollbar-thumb {
|
|
30
|
+
border-radius: 9999px;
|
|
31
|
+
background-color: color-mix(in srgb, currentColor 25%, transparent);
|
|
32
|
+
}
|
|
33
|
+
[data-virtual-list]::-webkit-scrollbar-thumb:hover {
|
|
34
|
+
background-color: color-mix(in srgb, currentColor 40%, transparent);
|
|
35
|
+
}
|
|
@@ -1 +1,63 @@
|
|
|
1
|
-
|
|
1
|
+
/* ── CinePlayer animations & design tokens ──────────── */
|
|
2
|
+
|
|
3
|
+
@keyframes cp-controls-up {
|
|
4
|
+
from { transform: translateY(100%); opacity: 0; }
|
|
5
|
+
to { transform: translateY(0); opacity: 1; }
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@keyframes cp-curtain-open {
|
|
9
|
+
from { clip-path: inset(0 50% 0 50%); opacity: 0; }
|
|
10
|
+
to { clip-path: inset(0 0 0 0); opacity: 1; }
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@keyframes cp-curtain-close {
|
|
14
|
+
from { clip-path: inset(0 0 0 0); opacity: 1; }
|
|
15
|
+
to { clip-path: inset(0 50% 0 50%); opacity: 0; }
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@keyframes cp-cinema-in {
|
|
19
|
+
from { background: rgba(0,0,0,0); }
|
|
20
|
+
to { background: rgba(0,0,0,0.92); }
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@keyframes cp-cinema-out {
|
|
24
|
+
from { background: rgba(0,0,0,0.92); }
|
|
25
|
+
to { background: rgba(0,0,0,0); }
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@keyframes cp-playlist-in {
|
|
29
|
+
from { transform: translateX(100%); opacity: 0; }
|
|
30
|
+
to { transform: translateX(0); opacity: 1; }
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@keyframes cp-playlist-out {
|
|
34
|
+
from { transform: translateX(0); opacity: 1; }
|
|
35
|
+
to { transform: translateX(100%); opacity: 0; }
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@keyframes cp-track-transition {
|
|
39
|
+
0% { filter: brightness(0); transform: scale(1.05); }
|
|
40
|
+
50% { filter: brightness(0); }
|
|
41
|
+
100% { filter: brightness(1); transform: scale(1); }
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@keyframes cp-volume-wave {
|
|
45
|
+
0% { transform: scaleX(0); opacity: 1; }
|
|
46
|
+
100% { transform: scaleX(1); opacity: 0; }
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* ── CinePlayer design tokens ───────────── */
|
|
50
|
+
|
|
51
|
+
:root {
|
|
52
|
+
--cp-bg: #000000;
|
|
53
|
+
--cp-panel-bg: rgba(0,0,0,0.85);
|
|
54
|
+
--cp-text: rgba(255,255,255,0.75);
|
|
55
|
+
--cp-text-muted: rgba(255,255,255,0.50);
|
|
56
|
+
--cp-text-strong: #ffffff;
|
|
57
|
+
--cp-border: rgba(255,255,255,0.10);
|
|
58
|
+
--cp-surface: rgba(255,255,255,0.05);
|
|
59
|
+
--cp-surface-hover: rgba(255,255,255,0.10);
|
|
60
|
+
--cp-overlay: rgba(0,0,0,0.30);
|
|
61
|
+
--cp-seek-track: rgba(255,255,255,0.20);
|
|
62
|
+
--cp-seek-buffer: rgba(255,255,255,0.15);
|
|
63
|
+
}
|
|
@@ -1 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
/* ── FileExplorer design tokens ──────────── */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--fe-bg: linear-gradient(145deg, rgba(255,255,255,0.99), rgba(248,248,252,0.98));
|
|
5
|
+
--fe-shadow: 0 4px 30px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.04);
|
|
6
|
+
--fe-text: var(--color-primary-600);
|
|
7
|
+
--fe-text-strong: var(--color-primary-900);
|
|
8
|
+
--fe-text-muted: var(--color-primary-400);
|
|
9
|
+
--fe-border: rgba(0,0,0,0.06);
|
|
10
|
+
--fe-surface: rgba(0,0,0,0.015);
|
|
11
|
+
--fe-surface-hover: rgba(0,0,0,0.04);
|
|
12
|
+
--fe-input-bg: var(--color-primary-50);
|
|
13
|
+
--fe-input-border: var(--color-primary-200);
|
|
14
|
+
--fe-btn-color: rgba(0,0,0,0.45);
|
|
15
|
+
--fe-btn-hover: rgba(0,0,0,0.80);
|
|
16
|
+
--fe-btn-hover-bg: rgba(0,0,0,0.06);
|
|
17
|
+
--fe-badge-bg: var(--color-primary-100);
|
|
18
|
+
--fe-dock-bg: linear-gradient(135deg, color-mix(in srgb, var(--fe-accent, #8b5cf6) 12%, white), rgba(255,255,255,0.95));
|
|
19
|
+
--fe-dock-shadow: 0 0 15px color-mix(in srgb, var(--fe-accent, #8b5cf6) 15%, transparent);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.dark {
|
|
23
|
+
--fe-bg: linear-gradient(145deg, rgba(10,10,18,0.97), rgba(15,12,28,0.98));
|
|
24
|
+
--fe-shadow: 0 4px 60px rgba(0,0,0,0.50), 0 0 1px var(--fe-accent, #8b5cf6), inset 0 1px 0 rgba(255,255,255,0.05);
|
|
25
|
+
--fe-text: rgba(255,255,255,0.70);
|
|
26
|
+
--fe-text-strong: #ffffff;
|
|
27
|
+
--fe-text-muted: rgba(255,255,255,0.30);
|
|
28
|
+
--fe-border: rgba(255,255,255,0.06);
|
|
29
|
+
--fe-surface: rgba(255,255,255,0.02);
|
|
30
|
+
--fe-surface-hover: rgba(255,255,255,0.06);
|
|
31
|
+
--fe-input-bg: rgba(255,255,255,0.05);
|
|
32
|
+
--fe-input-border: rgba(255,255,255,0.08);
|
|
33
|
+
--fe-btn-color: rgba(255,255,255,0.50);
|
|
34
|
+
--fe-btn-hover: rgba(255,255,255,0.90);
|
|
35
|
+
--fe-btn-hover-bg: rgba(255,255,255,0.08);
|
|
36
|
+
--fe-badge-bg: rgba(255,255,255,0.05);
|
|
37
|
+
--fe-dock-bg: linear-gradient(135deg, color-mix(in srgb, var(--fe-accent, #8b5cf6) 20%, black), rgba(0,0,0,0.85));
|
|
38
|
+
--fe-dock-shadow: 0 0 20px color-mix(in srgb, var(--fe-accent, #8b5cf6) 30%, transparent);
|
|
39
|
+
}
|
|
@@ -1 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
/* ── FilmReel: cinematic gallery animations ─────────── */
|
|
2
|
+
|
|
3
|
+
@keyframes film-grain-shift {
|
|
4
|
+
0%, 100% { transform: translate(0, 0); }
|
|
5
|
+
20% { transform: translate(-2%, 3%); }
|
|
6
|
+
40% { transform: translate(3%, -2%); }
|
|
7
|
+
60% { transform: translate(-1%, -3%); }
|
|
8
|
+
80% { transform: translate(2%, 2%); }
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@keyframes lightbox-backdrop-in {
|
|
12
|
+
from { opacity: 0; }
|
|
13
|
+
to { opacity: 1; }
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@keyframes lightbox-photo-in {
|
|
17
|
+
from { opacity: 0; transform: scale(0.88); }
|
|
18
|
+
to { opacity: 1; transform: scale(1); }
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@keyframes reveal-up {
|
|
22
|
+
from { opacity: 0; transform: translateY(12px); }
|
|
23
|
+
to { opacity: 1; transform: translateY(0); }
|
|
24
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* LoginPanel component styles */
|
|
2
|
+
|
|
3
|
+
.login-panel-slide-enter {
|
|
4
|
+
animation: login-slide-in 0.22s ease-out forwards;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@keyframes login-slide-in {
|
|
8
|
+
from {
|
|
9
|
+
opacity: 0;
|
|
10
|
+
transform: translateY(8px);
|
|
11
|
+
}
|
|
12
|
+
to {
|
|
13
|
+
opacity: 1;
|
|
14
|
+
transform: translateY(0);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -1 +1,84 @@
|
|
|
1
|
-
|
|
1
|
+
/* ── MiniPlayer animations & design tokens ──────────── */
|
|
2
|
+
|
|
3
|
+
@keyframes mp-enter-bottom {
|
|
4
|
+
from { opacity: 0; transform: translateY(100%) scale(0.92); }
|
|
5
|
+
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@keyframes mp-exit-bottom {
|
|
9
|
+
from { opacity: 1; transform: translateY(0) scale(1); }
|
|
10
|
+
to { opacity: 0; transform: translateY(100%) scale(0.92); }
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@keyframes mp-enter-top {
|
|
14
|
+
from { opacity: 0; transform: translateY(-100%) scale(0.92); }
|
|
15
|
+
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@keyframes mp-exit-top {
|
|
19
|
+
from { opacity: 1; transform: translateY(0) scale(1); }
|
|
20
|
+
to { opacity: 0; transform: translateY(-100%) scale(0.92); }
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@keyframes mp-enter-left {
|
|
24
|
+
from { opacity: 0; transform: translateX(-100%) scale(0.92); }
|
|
25
|
+
to { opacity: 1; transform: translateX(0) scale(1); }
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@keyframes mp-exit-left {
|
|
29
|
+
from { opacity: 1; transform: translateX(0) scale(1); }
|
|
30
|
+
to { opacity: 0; transform: translateX(-100%) scale(0.92); }
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@keyframes mp-enter-right {
|
|
34
|
+
from { opacity: 0; transform: translateX(100%) scale(0.92); }
|
|
35
|
+
to { opacity: 1; transform: translateX(0) scale(1); }
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@keyframes mp-exit-right {
|
|
39
|
+
from { opacity: 1; transform: translateX(0) scale(1); }
|
|
40
|
+
to { opacity: 0; transform: translateX(100%) scale(0.92); }
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@keyframes mp-vinyl-spin {
|
|
44
|
+
from { transform: rotate(0deg); }
|
|
45
|
+
to { transform: rotate(360deg); }
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@keyframes mp-pulse-ring {
|
|
49
|
+
0% { transform: scale(1); opacity: 0.5; }
|
|
50
|
+
70% { transform: scale(1.25); opacity: 0; }
|
|
51
|
+
100% { transform: scale(1.25); opacity: 0; }
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@keyframes mp-progress-glow {
|
|
55
|
+
0%, 100% { filter: brightness(1); }
|
|
56
|
+
50% { filter: brightness(1.4); }
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@keyframes mp-eq-bar {
|
|
60
|
+
0% { transform: scaleY(0.3); }
|
|
61
|
+
100% { transform: scaleY(1); }
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* ── MiniPlayer design tokens ───────────── */
|
|
65
|
+
|
|
66
|
+
:root {
|
|
67
|
+
--mp-bg: rgba(255,255,255,0.90);
|
|
68
|
+
--mp-text: var(--color-primary-900);
|
|
69
|
+
--mp-text-muted: var(--color-primary-500);
|
|
70
|
+
--mp-border: rgba(148,163,184,0.60);
|
|
71
|
+
--mp-surface: rgba(148,163,184,0.50);
|
|
72
|
+
--mp-surface-hover: rgba(241,245,249,0.60);
|
|
73
|
+
--mp-dock-strip: rgba(148,163,184,0.40);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.dark {
|
|
77
|
+
--mp-bg: rgba(26,22,37,0.95);
|
|
78
|
+
--mp-text: #ffffff;
|
|
79
|
+
--mp-text-muted: rgba(255,255,255,0.50);
|
|
80
|
+
--mp-border: rgba(255,255,255,0.10);
|
|
81
|
+
--mp-surface: rgba(255,255,255,0.10);
|
|
82
|
+
--mp-surface-hover: rgba(255,255,255,0.05);
|
|
83
|
+
--mp-dock-strip: rgba(255,255,255,0.20);
|
|
84
|
+
}
|