@jacshuo/onyx 2.0.0 → 2.1.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 (166) hide show
  1. package/dist/Chart/BarChart.cjs +1 -1
  2. package/dist/Chart/BarChart.js +1 -1
  3. package/dist/Chart/LineChart.cjs +1 -1
  4. package/dist/Chart/LineChart.js +1 -1
  5. package/dist/Chart/PieChart.cjs +1 -1
  6. package/dist/Chart/PieChart.js +1 -1
  7. package/dist/Chart/ScatterChart.cjs +1 -1
  8. package/dist/Chart/ScatterChart.js +1 -1
  9. package/dist/Chart/index.cjs +1 -1
  10. package/dist/Chart/index.js +1 -1
  11. package/dist/DataDisplay/CodeBlock.cjs +2 -2
  12. package/dist/DataDisplay/CodeBlock.js +2 -2
  13. package/dist/DataDisplay/List.cjs +1 -1
  14. package/dist/DataDisplay/List.js +1 -1
  15. package/dist/DataDisplay/MetricCard.cjs +1 -0
  16. package/dist/DataDisplay/MetricCard.d.cts +3 -0
  17. package/dist/DataDisplay/MetricCard.d.ts +3 -0
  18. package/dist/DataDisplay/MetricCard.js +1 -0
  19. package/dist/DataDisplay/Stat.cjs +1 -0
  20. package/dist/DataDisplay/Stat.d.cts +3 -0
  21. package/dist/DataDisplay/Stat.d.ts +3 -0
  22. package/dist/DataDisplay/Stat.js +1 -0
  23. package/dist/DataDisplay/Table.cjs +1 -1
  24. package/dist/DataDisplay/Table.js +1 -1
  25. package/dist/DataDisplay/Tree.cjs +1 -1
  26. package/dist/DataDisplay/Tree.js +1 -1
  27. package/dist/DataDisplay/index.cjs +2 -2
  28. package/dist/DataDisplay/index.d.cts +6 -0
  29. package/dist/DataDisplay/index.d.ts +6 -0
  30. package/dist/DataDisplay/index.js +2 -2
  31. package/dist/Extras/CommandPalette.cjs +1 -0
  32. package/dist/Extras/CommandPalette.css +1 -0
  33. package/dist/Extras/CommandPalette.d.cts +4 -0
  34. package/dist/Extras/CommandPalette.d.ts +4 -0
  35. package/dist/Extras/CommandPalette.js +1 -0
  36. package/dist/Extras/FileExplorer.cjs +2 -2
  37. package/dist/Extras/FileExplorer.js +2 -2
  38. package/dist/Extras/Timeline.cjs +1 -0
  39. package/dist/Extras/Timeline.css +1 -0
  40. package/dist/Extras/Timeline.d.cts +6 -0
  41. package/dist/Extras/Timeline.d.ts +6 -0
  42. package/dist/Extras/Timeline.js +1 -0
  43. package/dist/Extras/index.cjs +4 -4
  44. package/dist/Extras/index.css +1 -1
  45. package/dist/Extras/index.d.cts +9 -0
  46. package/dist/Extras/index.d.ts +9 -0
  47. package/dist/Extras/index.js +4 -4
  48. package/dist/Feedback/Alert.cjs +1 -1
  49. package/dist/Feedback/Alert.js +1 -1
  50. package/dist/Feedback/ProgressBar.cjs +1 -1
  51. package/dist/Feedback/ProgressBar.js +1 -1
  52. package/dist/Feedback/Skeleton.cjs +1 -0
  53. package/dist/Feedback/Skeleton.d.cts +2 -0
  54. package/dist/Feedback/Skeleton.d.ts +2 -0
  55. package/dist/Feedback/Skeleton.js +1 -0
  56. package/dist/Feedback/Spin.cjs +2 -2
  57. package/dist/Feedback/Spin.js +2 -2
  58. package/dist/Feedback/Toast.cjs +1 -0
  59. package/dist/Feedback/Toast.d.cts +11 -0
  60. package/dist/Feedback/Toast.d.ts +11 -0
  61. package/dist/Feedback/Toast.js +1 -0
  62. package/dist/Feedback/index.cjs +2 -2
  63. package/dist/Feedback/index.d.cts +11 -0
  64. package/dist/Feedback/index.d.ts +11 -0
  65. package/dist/Feedback/index.js +2 -2
  66. package/dist/Forms/Select.cjs +1 -0
  67. package/dist/Forms/Select.css +1 -0
  68. package/dist/Forms/Select.d.cts +3 -0
  69. package/dist/Forms/Select.d.ts +3 -0
  70. package/dist/Forms/Select.js +1 -0
  71. package/dist/Navigation/Breadcrumb.cjs +1 -0
  72. package/dist/Navigation/Breadcrumb.d.cts +3 -0
  73. package/dist/Navigation/Breadcrumb.d.ts +3 -0
  74. package/dist/Navigation/Breadcrumb.js +1 -0
  75. package/dist/Navigation/Header.cjs +1 -1
  76. package/dist/Navigation/Header.js +1 -1
  77. package/dist/Navigation/Pagination.cjs +1 -0
  78. package/dist/Navigation/Pagination.d.cts +2 -0
  79. package/dist/Navigation/Pagination.d.ts +2 -0
  80. package/dist/Navigation/Pagination.js +1 -0
  81. package/dist/Navigation/RibbonBar.cjs +1 -0
  82. package/dist/Navigation/RibbonBar.d.cts +6 -0
  83. package/dist/Navigation/RibbonBar.d.ts +6 -0
  84. package/dist/Navigation/RibbonBar.js +1 -0
  85. package/dist/Navigation/index.cjs +2 -2
  86. package/dist/Navigation/index.d.cts +8 -0
  87. package/dist/Navigation/index.d.ts +8 -0
  88. package/dist/Navigation/index.js +2 -2
  89. package/dist/Overlay/ContextMenu.cjs +1 -0
  90. package/dist/Overlay/ContextMenu.d.cts +3 -0
  91. package/dist/Overlay/ContextMenu.d.ts +3 -0
  92. package/dist/Overlay/ContextMenu.js +1 -0
  93. package/dist/Overlay/Drawer.cjs +1 -0
  94. package/dist/Overlay/Drawer.css +1 -0
  95. package/dist/Overlay/Drawer.d.cts +10 -0
  96. package/dist/Overlay/Drawer.d.ts +10 -0
  97. package/dist/Overlay/Drawer.js +1 -0
  98. package/dist/Overlay/index.cjs +1 -1
  99. package/dist/Overlay/index.css +1 -0
  100. package/dist/Overlay/index.d.cts +8 -0
  101. package/dist/Overlay/index.d.ts +8 -0
  102. package/dist/Overlay/index.js +1 -1
  103. package/dist/Primitives/Avatar.cjs +1 -0
  104. package/dist/Primitives/Avatar.d.cts +4 -0
  105. package/dist/Primitives/Avatar.d.ts +4 -0
  106. package/dist/Primitives/Avatar.js +1 -0
  107. package/dist/Primitives/Badge.cjs +1 -1
  108. package/dist/Primitives/Badge.js +1 -1
  109. package/dist/Primitives/Button.cjs +1 -1
  110. package/dist/Primitives/Button.js +1 -1
  111. package/dist/Primitives/Checkbox.cjs +1 -1
  112. package/dist/Primitives/Checkbox.js +1 -1
  113. package/dist/Primitives/Dropdown.cjs +1 -1
  114. package/dist/Primitives/Dropdown.js +1 -1
  115. package/dist/Primitives/DropdownButton.cjs +1 -1
  116. package/dist/Primitives/DropdownButton.js +1 -1
  117. package/dist/Primitives/Indicator.cjs +1 -1
  118. package/dist/Primitives/Indicator.js +1 -1
  119. package/dist/Primitives/Input.cjs +1 -1
  120. package/dist/Primitives/Input.js +1 -1
  121. package/dist/Primitives/Label.cjs +1 -1
  122. package/dist/Primitives/Label.js +1 -1
  123. package/dist/Primitives/Radio.cjs +1 -1
  124. package/dist/Primitives/Radio.js +1 -1
  125. package/dist/Primitives/Slider.cjs +1 -0
  126. package/dist/Primitives/Slider.css +1 -0
  127. package/dist/Primitives/Slider.d.cts +4 -0
  128. package/dist/Primitives/Slider.d.ts +4 -0
  129. package/dist/Primitives/Slider.js +1 -0
  130. package/dist/Primitives/Switch.cjs +1 -1
  131. package/dist/Primitives/Switch.js +1 -1
  132. package/dist/Primitives/Tag.cjs +1 -0
  133. package/dist/Primitives/Tag.d.cts +2 -0
  134. package/dist/Primitives/Tag.d.ts +2 -0
  135. package/dist/Primitives/Tag.js +1 -0
  136. package/dist/Primitives/index.cjs +1 -1
  137. package/dist/Primitives/index.css +1 -0
  138. package/dist/Primitives/index.d.cts +6 -0
  139. package/dist/Primitives/index.d.ts +6 -0
  140. package/dist/Primitives/index.js +1 -1
  141. package/dist/_tsup-dts-rollup.d.cts +967 -2
  142. package/dist/_tsup-dts-rollup.d.ts +967 -2
  143. package/dist/index.cjs +5 -5
  144. package/dist/index.css +1 -1
  145. package/dist/index.d.cts +69 -0
  146. package/dist/index.d.ts +69 -0
  147. package/dist/index.js +5 -5
  148. package/dist/styles/DataDisplay/MetricCard.css +1 -0
  149. package/dist/styles/DataDisplay/Stat.css +1 -0
  150. package/dist/styles/Extras/CommandPalette.css +65 -0
  151. package/dist/styles/Extras/Timeline.css +52 -0
  152. package/dist/styles/Feedback/Skeleton.css +37 -0
  153. package/dist/styles/Feedback/Toast.css +77 -0
  154. package/dist/styles/Forms/Select.css +36 -0
  155. package/dist/styles/Navigation/RibbonBar.css +1 -0
  156. package/dist/styles/Overlay/ContextMenu.css +1 -0
  157. package/dist/styles/Overlay/Drawer.css +52 -0
  158. package/dist/styles/Primitives/Slider.css +4 -0
  159. package/dist/styles/Primitives/Tag.css +1 -0
  160. package/dist/styles/base.css +1012 -0
  161. package/dist/styles.css +1223 -0
  162. package/dist/theme.cjs +1 -1
  163. package/dist/theme.d.cts +7 -0
  164. package/dist/theme.d.ts +7 -0
  165. package/dist/theme.js +1 -1
  166. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ /* MetricCard component-local styles */
@@ -0,0 +1 @@
1
+ /* Stat component-local styles */
@@ -0,0 +1,65 @@
1
+ /* ── Backdrop ─────────────────────────────────────────── */
2
+
3
+ .cmd-backdrop {
4
+ background: rgba(0, 0, 0, 0.4);
5
+ backdrop-filter: blur(2px);
6
+ animation: cmd-backdrop-in 120ms ease-out both;
7
+ }
8
+
9
+ @keyframes cmd-backdrop-in {
10
+ from {
11
+ opacity: 0;
12
+ }
13
+ to {
14
+ opacity: 1;
15
+ }
16
+ }
17
+
18
+ /* ── Panel ────────────────────────────────────────────── */
19
+
20
+ .cmd-panel {
21
+ animation: cmd-panel-in 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
22
+ }
23
+
24
+ @keyframes cmd-panel-in {
25
+ from {
26
+ opacity: 0;
27
+ transform: scale(0.96) translateY(-10px);
28
+ }
29
+ to {
30
+ opacity: 1;
31
+ transform: scale(1) translateY(0);
32
+ }
33
+ }
34
+
35
+ /* ── Items ────────────────────────────────────────────── */
36
+
37
+ .cmd-item {
38
+ cursor: default;
39
+ user-select: none;
40
+ transition: background-color 80ms ease, color 80ms ease;
41
+ }
42
+
43
+ /* ── Results scrollbar ────────────────────────────────── */
44
+
45
+ #cmd-results {
46
+ scrollbar-width: thin;
47
+ scrollbar-color: var(--color-primary-300) transparent;
48
+ }
49
+
50
+ #cmd-results::-webkit-scrollbar {
51
+ width: 4px;
52
+ }
53
+
54
+ #cmd-results::-webkit-scrollbar-track {
55
+ background: transparent;
56
+ }
57
+
58
+ #cmd-results::-webkit-scrollbar-thumb {
59
+ background: var(--color-primary-300);
60
+ border-radius: 2px;
61
+ }
62
+
63
+ .dark #cmd-results::-webkit-scrollbar-thumb {
64
+ background: var(--color-primary-700);
65
+ }
@@ -0,0 +1,52 @@
1
+ /* Timeline component-local styles */
2
+
3
+ /*
4
+ ── Timeline design tokens ─────────────────────────────────────────────────
5
+ Override any of these CSS custom properties to retheme the component
6
+ without touching source code. Place overrides in your global CSS or
7
+ inside a `.dark` / branded-theme selector.
8
+ */
9
+ :root {
10
+ /* Active card: holo aurora + spinning border ─────────────────────────── */
11
+ --tl-holo-base: var(--color-primary-600); /* base sweep (slate-600) */
12
+ --tl-holo-mid: var(--color-primary-400); /* fade-out (slate-400) */
13
+ --tl-holo-indigo: var(--color-indigo-400); /* first accent (indigo-400)*/
14
+ --tl-holo-violet: var(--color-violet-300); /* peak accent (violet-300) */
15
+ --tl-holo-cyan: var(--color-cyan-400); /* shimmer (cyan-400) */
16
+
17
+ /* Ambient glow — complete-status cards ───────────────────────────────── */
18
+ --tl-glow-complete-1: var(--color-success-600); /* emerald-600 inner sweep */
19
+ --tl-glow-complete-2: var(--color-success-400); /* emerald-400 mid sweep */
20
+
21
+ /* Ambient glow — error-status cards ─────────────────────────────────── */
22
+ --tl-glow-error-1: var(--color-danger-600); /* rose-600 inner sweep */
23
+ --tl-glow-error-2: var(--color-danger-400); /* rose-400 mid sweep */
24
+ --tl-glow-error-3: var(--color-danger-300); /* rose-300 outer edge */
25
+ }
26
+
27
+ /*
28
+ Animates the `from` angle of conic-gradient() directly.
29
+ This avoids rotating *elements* (which clips at corners on non-square cards);
30
+ the gradient rotates in-place instead, giving a clean sweep on any aspect ratio.
31
+ */
32
+ @property --tl-angle {
33
+ syntax: "<angle>";
34
+ initial-value: 0deg;
35
+ inherits: false;
36
+ }
37
+
38
+ @keyframes tl-holo-spin {
39
+ to { --tl-angle: 360deg; }
40
+ }
41
+
42
+ @keyframes tl-breathe {
43
+ 0%, 100% { opacity: 0.42; }
44
+ 50% { opacity: 0.9; }
45
+ }
46
+
47
+ /* Slow ambient pulse for non-active status cards */
48
+ @keyframes tl-glow-pulse {
49
+ 0%, 100% { opacity: 0.12; }
50
+ 50% { opacity: 0.24; }
51
+ }
52
+
@@ -0,0 +1,37 @@
1
+ @keyframes skeleton-shimmer {
2
+ 0% {
3
+ background-position: -200% 0;
4
+ }
5
+ 100% {
6
+ background-position: 200% 0;
7
+ }
8
+ }
9
+
10
+ @utility skeleton-base {
11
+ display: block;
12
+ flex-shrink: 0;
13
+ }
14
+
15
+ @utility skeleton-text {
16
+ height: 1em;
17
+ }
18
+
19
+ @utility skeleton-wave {
20
+ background-image: linear-gradient(
21
+ 90deg,
22
+ var(--color-secondary-200) 25%,
23
+ var(--color-secondary-100) 50%,
24
+ var(--color-secondary-200) 75%
25
+ );
26
+ background-size: 200% 100%;
27
+ animation: skeleton-shimmer 1.6s ease-in-out infinite;
28
+ }
29
+
30
+ .dark .skeleton-wave {
31
+ background-image: linear-gradient(
32
+ 90deg,
33
+ var(--color-secondary-700) 25%,
34
+ var(--color-secondary-600) 50%,
35
+ var(--color-secondary-700) 75%
36
+ );
37
+ }
@@ -0,0 +1,77 @@
1
+ /* ── Toast CSS ──────────────────────────────────────────── */
2
+
3
+ /* Exit keyframes — directional slide-out */
4
+ @keyframes toast-slide-out-right {
5
+ from { opacity: 1; transform: translateX(0); }
6
+ to { opacity: 0; transform: translateX(110%); }
7
+ }
8
+
9
+ @keyframes toast-slide-out-left {
10
+ from { opacity: 1; transform: translateX(0); }
11
+ to { opacity: 0; transform: translateX(-110%); }
12
+ }
13
+
14
+ @keyframes toast-slide-out-up {
15
+ from { opacity: 1; transform: translateY(0); }
16
+ to { opacity: 0; transform: translateY(-50%); }
17
+ }
18
+
19
+ @keyframes toast-slide-out-down {
20
+ from { opacity: 1; transform: translateY(0); }
21
+ to { opacity: 0; transform: translateY(50%); }
22
+ }
23
+
24
+ /* Height-collapsing wrapper animation */
25
+ @keyframes toast-height-collapse {
26
+ 0% { max-height: 320px; }
27
+ 100% { max-height: 0; }
28
+ }
29
+
30
+ /* ── Item base layout ────────────────────────────────── */
31
+
32
+ .toast-item {
33
+ display: flex;
34
+ align-items: flex-start;
35
+ gap: 0.75rem;
36
+ border-radius: 0.5rem;
37
+ padding: 0.875rem 1rem;
38
+ width: 20rem;
39
+ max-width: calc(100vw - 2rem);
40
+ box-shadow:
41
+ 0 4px 16px rgba(0 0 0 / 0.18),
42
+ 0 1px 4px rgba(0 0 0 / 0.1);
43
+ }
44
+
45
+ /* ── Wrapper: height-collapse on exit ───────────────── */
46
+
47
+ .toast-wrapper {
48
+ overflow: hidden;
49
+ }
50
+
51
+ .toast-wrapper-exiting {
52
+ animation: toast-height-collapse 0.32s ease forwards;
53
+ }
54
+
55
+ /* ── Per-direction item exit animations ─────────────── */
56
+
57
+ .toast-exit-right .toast-item {
58
+ animation: toast-slide-out-right 0.32s ease forwards;
59
+ }
60
+
61
+ .toast-exit-left .toast-item {
62
+ animation: toast-slide-out-left 0.32s ease forwards;
63
+ }
64
+
65
+ .toast-exit-up .toast-item {
66
+ animation: toast-slide-out-up 0.32s ease forwards;
67
+ }
68
+
69
+ .toast-exit-down .toast-item {
70
+ animation: toast-slide-out-down 0.32s ease forwards;
71
+ }
72
+
73
+ /* ── Action button base ──────────────────────────────── */
74
+
75
+ .toast-action-btn {
76
+ cursor: pointer;
77
+ }
@@ -0,0 +1,36 @@
1
+ /* ── Dropdown list animation ──────────────────────────── */
2
+
3
+ .select-list {
4
+ animation: select-list-in 150ms cubic-bezier(0.16, 1, 0.3, 1) both;
5
+ }
6
+
7
+ @keyframes select-list-in {
8
+ from {
9
+ opacity: 0;
10
+ transform: translateY(-6px) scale(0.98);
11
+ }
12
+ to {
13
+ opacity: 1;
14
+ transform: translateY(0) scale(1);
15
+ }
16
+ }
17
+
18
+ /* ── Scrollbar ────────────────────────────────────────── */
19
+
20
+ .select-list {
21
+ scrollbar-width: thin;
22
+ scrollbar-color: var(--color-primary-300) transparent;
23
+ }
24
+
25
+ .select-list::-webkit-scrollbar {
26
+ width: 4px;
27
+ }
28
+
29
+ .select-list::-webkit-scrollbar-thumb {
30
+ background: var(--color-primary-300);
31
+ border-radius: 2px;
32
+ }
33
+
34
+ .dark .select-list::-webkit-scrollbar-thumb {
35
+ background: var(--color-primary-700);
36
+ }
@@ -0,0 +1 @@
1
+ /* RibbonBar component-local styles */
@@ -0,0 +1 @@
1
+ /* ContextMenu component-local styles */
@@ -0,0 +1,52 @@
1
+ /* ── Backdrop ─────────────────────────────────────────── */
2
+
3
+ .drawer-backdrop {
4
+ animation: drawer-backdrop-in 180ms ease-out both;
5
+ }
6
+
7
+ @keyframes drawer-backdrop-in {
8
+ from { opacity: 0; }
9
+ to { opacity: 1; }
10
+ }
11
+
12
+ /* ── Panel slide-in animations ────────────────────────── */
13
+
14
+ .drawer-panel {
15
+ will-change: transform;
16
+ }
17
+
18
+ .drawer-enter-right {
19
+ animation: drawer-slide-in-right 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
20
+ }
21
+
22
+ .drawer-enter-left {
23
+ animation: drawer-slide-in-left 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
24
+ }
25
+
26
+ .drawer-enter-top {
27
+ animation: drawer-slide-in-top 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
28
+ }
29
+
30
+ .drawer-enter-bottom {
31
+ animation: drawer-slide-in-bottom 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
32
+ }
33
+
34
+ @keyframes drawer-slide-in-right {
35
+ from { transform: translateX(100%); }
36
+ to { transform: translateX(0); }
37
+ }
38
+
39
+ @keyframes drawer-slide-in-left {
40
+ from { transform: translateX(-100%); }
41
+ to { transform: translateX(0); }
42
+ }
43
+
44
+ @keyframes drawer-slide-in-top {
45
+ from { transform: translateY(-100%); }
46
+ to { transform: translateY(0); }
47
+ }
48
+
49
+ @keyframes drawer-slide-in-bottom {
50
+ from { transform: translateY(100%); }
51
+ to { transform: translateY(0); }
52
+ }
@@ -0,0 +1,4 @@
1
+ /* Prevent text selection while dragging */
2
+ .slider-root * {
3
+ user-select: none;
4
+ }
@@ -0,0 +1 @@
1
+ /* Tag component-local styles */