@syscore/ui-library 1.23.0 → 1.25.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.
@@ -42,7 +42,7 @@ export function AlphaIcon({
42
42
  y2="-2.36962"
43
43
  gradientUnits="userSpaceOnUse"
44
44
  >
45
- <stop stop-color="#8AEFDB" />
45
+ <stop stopColor="#8AEFDB" />
46
46
  <stop offset="0.5" stopColor="#D4BACE" />
47
47
  <stop offset="1" stopColor="#CBE0F1" />
48
48
  </linearGradient>
@@ -21,7 +21,7 @@ export const BadgeCertificationBronze = ({
21
21
  <path
22
22
  d="M26.8122 52.8121C24.5706 52.8121 22.2424 52.5414 20.0875 51.9133C17.9325 51.2853 15.7884 50.4839 13.8176 49.3144C11.8467 48.1449 10.0491 46.8021 8.43565 45.1886C6.82216 43.5751 5.47939 41.7884 4.30987 39.8067C3.14036 37.8359 2.33903 35.7784 1.71096 33.5368C1.08288 31.3819 0.812164 29.0537 0.812164 26.8121C0.812164 24.5706 1.08288 22.2424 1.71096 20.0874C2.33903 17.9325 3.14036 15.7884 4.30987 13.8175C5.47939 11.8467 6.82216 10.0491 8.43565 8.43562C10.0491 6.82213 11.8359 5.47936 13.8176 4.30984C15.7884 3.14033 17.8459 2.339 20.0875 1.71093C22.2424 1.08285 24.5706 0.812134 26.8122 0.812134C29.0537 0.812134 31.3819 1.08285 33.5369 1.71093C35.6918 2.339 37.8359 3.14033 39.8067 4.30984C41.7776 5.47936 43.5752 6.82213 45.1887 8.43562C46.8022 10.0491 48.1449 11.8359 49.3145 13.8175C50.484 15.7884 51.2853 17.8459 51.9134 20.0874C52.5414 22.2424 52.8122 24.5706 52.8122 26.8121C52.8122 29.0537 52.5414 31.3819 51.9134 33.5368C51.2853 35.6918 50.484 37.8359 49.3145 39.8067C48.1449 41.7776 46.8022 43.5751 45.1887 45.1886C43.5752 46.8021 41.7884 48.1449 39.8067 49.3144C37.8359 50.4839 35.7784 51.2853 33.5369 51.9133C31.3819 52.5414 29.0537 52.8121 26.8122 52.8121Z"
23
23
  fill="url(#paint0_linear_9834_265)"
24
- fill-opacity="0.8"
24
+ fillOpacity="0.8"
25
25
  />
26
26
  <path
27
27
  d="M26.8122 52.8121C24.5706 52.8121 22.2424 52.5414 20.0875 51.9133C17.9325 51.2853 15.7884 50.4839 13.8176 49.3144C11.8467 48.1449 10.0492 46.8021 8.43566 45.1886C6.82216 43.5752 5.47939 41.7884 4.30987 39.8067C3.14036 37.8359 2.33903 35.7784 1.71096 33.5368C1.08288 31.3819 0.812164 29.0537 0.812164 26.8121C0.812164 24.5706 1.08288 22.2424 1.71096 20.0874C2.33903 17.9325 3.14036 15.7884 4.30987 13.8175C5.47939 11.8467 6.82216 10.0491 8.43566 8.43562C10.0492 6.82213 11.8359 5.47936 13.8176 4.30984C15.7884 3.14033 17.8459 2.339 20.0875 1.71093C22.2424 1.08285 24.5706 0.812134 26.8122 0.812134C29.0537 0.812134 31.3819 1.08285 33.5369 1.71093C35.6918 2.339 37.8359 3.14033 39.8068 4.30984C41.7776 5.47936 43.5752 6.82213 45.1887 8.43562C46.8022 10.0491 48.1449 11.8359 49.3145 13.8175C50.484 15.7884 51.2853 17.8459 51.9134 20.0874C52.5414 22.2424 52.8122 24.5706 52.8122 26.8121C52.8122 29.0537 52.5414 31.3819 51.9134 33.5368C51.2853 35.6918 50.484 37.8359 49.3145 39.8067C48.1449 41.7776 46.8022 43.5752 45.1887 45.1886C43.5752 46.8021 41.7884 48.1449 39.8068 49.3144C37.8359 50.4839 35.7784 51.2853 33.5369 51.9133C31.3819 52.5414 29.0537 52.8121 26.8122 52.8121Z"
@@ -92,10 +92,10 @@ export const BadgeCertificationBronze = ({
92
92
  y2="0.822974"
93
93
  gradientUnits="userSpaceOnUse"
94
94
  >
95
- <stop offset="0.173077" stop-color="#DCBA8E" />
96
- <stop offset="0.324306" stop-color="#ECDDBA" />
97
- <stop offset="0.484968" stop-color="#F2E9C9" />
98
- <stop offset="0.826923" stop-color="#DFC196" />
95
+ <stop offset="0.173077" stopColor="#DCBA8E" />
96
+ <stop offset="0.324306" stopColor="#ECDDBA" />
97
+ <stop offset="0.484968" stopColor="#F2E9C9" />
98
+ <stop offset="0.826923" stopColor="#DFC196" />
99
99
  </linearGradient>
100
100
  </defs>
101
101
  </svg>
@@ -21,7 +21,7 @@ export const BadgeCertificationPlatinum = ({
21
21
  <path
22
22
  d="M26.8122 52.8121C24.5706 52.8121 22.2424 52.5414 20.0875 51.9133C17.9325 51.2853 15.7884 50.4839 13.8176 49.3144C11.8467 48.1449 10.0491 46.8021 8.43565 45.1886C6.82216 43.5751 5.47939 41.7884 4.30987 39.8067C3.14036 37.8359 2.33903 35.7784 1.71096 33.5368C1.08288 31.3819 0.812164 29.0537 0.812164 26.8121C0.812164 24.5706 1.08288 22.2424 1.71096 20.0874C2.33903 17.9325 3.14036 15.7884 4.30987 13.8175C5.47939 11.8467 6.82216 10.0491 8.43565 8.43562C10.0491 6.82213 11.8359 5.47936 13.8176 4.30984C15.7884 3.14033 17.8459 2.339 20.0875 1.71093C22.2424 1.08285 24.5706 0.812134 26.8122 0.812134C29.0537 0.812134 31.3819 1.08285 33.5369 1.71093C35.6918 2.339 37.8359 3.14033 39.8067 4.30984C41.7776 5.47936 43.5752 6.82213 45.1887 8.43562C46.8022 10.0491 48.1449 11.8359 49.3145 13.8175C50.484 15.7884 51.2853 17.8459 51.9134 20.0874C52.5414 22.2424 52.8122 24.5706 52.8122 26.8121C52.8122 29.0537 52.5414 31.3819 51.9134 33.5368C51.2853 35.6918 50.484 37.8359 49.3145 39.8067C48.1449 41.7776 46.8022 43.5751 45.1887 45.1886C43.5752 46.8021 41.7884 48.1449 39.8067 49.3144C37.8359 50.4839 35.7784 51.2853 33.5369 51.9133C31.3819 52.5414 29.0537 52.8121 26.8122 52.8121Z"
23
23
  fill="url(#paint0_linear_9834_358)"
24
- fill-opacity="0.8"
24
+ fillOpacity="0.8"
25
25
  />
26
26
  <path
27
27
  d="M26.8122 52.8121C24.5706 52.8121 22.2424 52.5414 20.0875 51.9133C17.9325 51.2853 15.7884 50.4839 13.8176 49.3144C11.8467 48.1449 10.0492 46.8021 8.43566 45.1886C6.82216 43.5752 5.47939 41.7884 4.30987 39.8067C3.14036 37.8359 2.33903 35.7784 1.71096 33.5368C1.08288 31.3819 0.812164 29.0537 0.812164 26.8121C0.812164 24.5706 1.08288 22.2424 1.71096 20.0874C2.33903 17.9325 3.14036 15.7884 4.30987 13.8175C5.47939 11.8467 6.82216 10.0491 8.43566 8.43562C10.0492 6.82213 11.8359 5.47936 13.8176 4.30984C15.7884 3.14033 17.8459 2.339 20.0875 1.71093C22.2424 1.08285 24.5706 0.812134 26.8122 0.812134C29.0537 0.812134 31.3819 1.08285 33.5369 1.71093C35.6918 2.339 37.8359 3.14033 39.8068 4.30984C41.7776 5.47936 43.5752 6.82213 45.1887 8.43562C46.8022 10.0491 48.1449 11.8359 49.3145 13.8175C50.484 15.7884 51.2853 17.8459 51.9134 20.0874C52.5414 22.2424 52.8122 24.5706 52.8122 26.8121C52.8122 29.0537 52.5414 31.3819 51.9134 33.5368C51.2853 35.6918 50.484 37.8359 49.3145 39.8067C48.1449 41.7776 46.8022 43.5752 45.1887 45.1886C43.5752 46.8021 41.7884 48.1449 39.8068 49.3144C37.8359 50.4839 35.7784 51.2853 33.5369 51.9133C31.3819 52.5414 29.0537 52.8121 26.8122 52.8121Z"
@@ -92,10 +92,10 @@ export const BadgeCertificationPlatinum = ({
92
92
  y2="0.822974"
93
93
  gradientUnits="userSpaceOnUse"
94
94
  >
95
- <stop offset="0.173077" stop-color="#B4B3BC" />
96
- <stop offset="0.365337" stop-color="#E2E1E5" />
97
- <stop offset="0.542584" stop-color="#E2E1E5" />
98
- <stop offset="0.826923" stop-color="#C6C5CC" />
95
+ <stop offset="0.173077" stopColor="#B4B3BC" />
96
+ <stop offset="0.365337" stopColor="#E2E1E5" />
97
+ <stop offset="0.542584" stopColor="#E2E1E5" />
98
+ <stop offset="0.826923" stopColor="#C6C5CC" />
99
99
  </linearGradient>
100
100
  </defs>
101
101
  </svg>
@@ -21,7 +21,7 @@ export const BadgeCertificationSilver = ({
21
21
  <path
22
22
  d="M26.8122 52.8121C24.5706 52.8121 22.2424 52.5414 20.0875 51.9133C17.9325 51.2853 15.7884 50.4839 13.8176 49.3144C11.8467 48.1449 10.0491 46.8021 8.43565 45.1886C6.82216 43.5751 5.47939 41.7884 4.30987 39.8067C3.14036 37.8359 2.33903 35.7784 1.71096 33.5368C1.08288 31.3819 0.812164 29.0537 0.812164 26.8121C0.812164 24.5706 1.08288 22.2424 1.71096 20.0874C2.33903 17.9325 3.14036 15.7884 4.30987 13.8175C5.47939 11.8467 6.82216 10.0491 8.43565 8.43562C10.0491 6.82213 11.8359 5.47936 13.8176 4.30984C15.7884 3.14033 17.8459 2.339 20.0875 1.71093C22.2424 1.08285 24.5706 0.812134 26.8122 0.812134C29.0537 0.812134 31.3819 1.08285 33.5369 1.71093C35.6918 2.339 37.8359 3.14033 39.8067 4.30984C41.7776 5.47936 43.5752 6.82213 45.1887 8.43562C46.8022 10.0491 48.1449 11.8359 49.3145 13.8175C50.484 15.7884 51.2853 17.8459 51.9134 20.0874C52.5414 22.2424 52.8122 24.5706 52.8122 26.8121C52.8122 29.0537 52.5414 31.3819 51.9134 33.5368C51.2853 35.6918 50.484 37.8359 49.3145 39.8067C48.1449 41.7776 46.8022 43.5751 45.1887 45.1886C43.5752 46.8021 41.7884 48.1449 39.8067 49.3144C37.8359 50.4839 35.7784 51.2853 33.5369 51.9133C31.3819 52.5414 29.0537 52.8121 26.8122 52.8121Z"
23
23
  fill="url(#paint0_linear_9834_296)"
24
- fill-opacity="0.8"
24
+ fillOpacity="0.8"
25
25
  />
26
26
  <path
27
27
  d="M26.8122 52.8121C24.5706 52.8121 22.2424 52.5414 20.0875 51.9133C17.9325 51.2853 15.7884 50.4839 13.8176 49.3144C11.8467 48.1449 10.0492 46.8021 8.43566 45.1886C6.82216 43.5752 5.47939 41.7884 4.30987 39.8067C3.14036 37.8359 2.33903 35.7784 1.71096 33.5368C1.08288 31.3819 0.812164 29.0537 0.812164 26.8121C0.812164 24.5706 1.08288 22.2424 1.71096 20.0874C2.33903 17.9325 3.14036 15.7884 4.30987 13.8175C5.47939 11.8467 6.82216 10.0491 8.43566 8.43562C10.0492 6.82213 11.8359 5.47936 13.8176 4.30984C15.7884 3.14033 17.8459 2.339 20.0875 1.71093C22.2424 1.08285 24.5706 0.812134 26.8122 0.812134C29.0537 0.812134 31.3819 1.08285 33.5369 1.71093C35.6918 2.339 37.8359 3.14033 39.8068 4.30984C41.7776 5.47936 43.5752 6.82213 45.1887 8.43562C46.8022 10.0491 48.1449 11.8359 49.3145 13.8175C50.484 15.7884 51.2853 17.8459 51.9134 20.0874C52.5414 22.2424 52.8122 24.5706 52.8122 26.8121C52.8122 29.0537 52.5414 31.3819 51.9134 33.5368C51.2853 35.6918 50.484 37.8359 49.3145 39.8067C48.1449 41.7776 46.8022 43.5752 45.1887 45.1886C43.5752 46.8021 41.7884 48.1449 39.8068 49.3144C37.8359 50.4839 35.7784 51.2853 33.5369 51.9133C31.3819 52.5414 29.0537 52.8121 26.8122 52.8121Z"
@@ -92,10 +92,10 @@ export const BadgeCertificationSilver = ({
92
92
  y2="0.822974"
93
93
  gradientUnits="userSpaceOnUse"
94
94
  >
95
- <stop offset="0.173077" stop-color="#BCC4CD" />
96
- <stop offset="0.324306" stop-color="#FCFCFD" />
97
- <stop offset="0.484968" stop-color="#FCFCFD" />
98
- <stop offset="0.826923" stop-color="#BCC4CD" />
95
+ <stop offset="0.173077" stopColor="#BCC4CD" />
96
+ <stop offset="0.324306" stopColor="#FCFCFD" />
97
+ <stop offset="0.484968" stopColor="#FCFCFD" />
98
+ <stop offset="0.826923" stopColor="#BCC4CD" />
99
99
  </linearGradient>
100
100
  </defs>
101
101
  </svg>
@@ -75,7 +75,7 @@ function DialogContent({
75
75
  >
76
76
  <UtilityClose
77
77
  className={cn(
78
- "dialog-close-icon text-gray-400 hover:text-gray-500 transition-colors duration-200 ",
78
+ "dialog-close-icon text-gray-400 hover:text-gray-600 transition-colors duration-200 ",
79
79
  closeClassName,
80
80
  )}
81
81
  />
@@ -0,0 +1,54 @@
1
+ "use client";
2
+
3
+ import { useLayoutEffect, useRef, ReactNode } from "react";
4
+ import { animate } from "motion/react";
5
+ import { cn } from "@/lib/utils";
6
+
7
+ export function HeightContainer({
8
+ children,
9
+ stateKey,
10
+ className,
11
+ }: {
12
+ children: ReactNode;
13
+ stateKey: string;
14
+ className?: string;
15
+ }) {
16
+ const containerRef = useRef<HTMLDivElement>(null);
17
+ const innerRef = useRef<HTMLDivElement>(null);
18
+ const currentHeight = useRef(0);
19
+
20
+ useLayoutEffect(() => {
21
+ const container = containerRef.current;
22
+ const inner = innerRef.current;
23
+ if (!container || !inner) return;
24
+
25
+ // Set initial height without animation
26
+ const initialHeight = inner.offsetHeight;
27
+ if (currentHeight.current === 0 && initialHeight > 0) {
28
+ currentHeight.current = initialHeight;
29
+ container.style.height = `${initialHeight}px`;
30
+ }
31
+
32
+ // Keep observing so we catch post-animation height changes
33
+ const ro = new ResizeObserver(() => {
34
+ const targetHeight = inner.offsetHeight;
35
+ if (targetHeight > 0 && targetHeight !== currentHeight.current) {
36
+ const shouldAnimate = currentHeight.current > 0;
37
+ currentHeight.current = targetHeight;
38
+ if (shouldAnimate) {
39
+ animate(container, { height: targetHeight }, { duration: 0.25, ease: "easeInOut" });
40
+ } else {
41
+ container.style.height = `${targetHeight}px`;
42
+ }
43
+ }
44
+ });
45
+ ro.observe(inner);
46
+ return () => ro.disconnect();
47
+ }, [stateKey]);
48
+
49
+ return (
50
+ <div ref={containerRef} className={cn("overflow-clip", className)}>
51
+ <div ref={innerRef}>{children}</div>
52
+ </div>
53
+ );
54
+ }
@@ -8,6 +8,7 @@ import {
8
8
  useMotionValue,
9
9
  } from "motion/react";
10
10
  import { cn } from "@/lib/utils";
11
+ import { HeightContainer } from "./height-container";
11
12
  import {
12
13
  Children,
13
14
  cloneElement,
@@ -65,49 +66,6 @@ const contentVariants = {
65
66
  exit: (dir: number) => ({ opacity: 0, x: dir * -20 }),
66
67
  };
67
68
 
68
- function AnimatedHeight({
69
- children,
70
- selectedValue,
71
- }: {
72
- children: ReactNode;
73
- selectedValue: string;
74
- }) {
75
- const containerRef = useRef<HTMLDivElement>(null);
76
- const innerRef = useRef<HTMLDivElement>(null);
77
- const currentHeight = useRef(0);
78
-
79
- useLayoutEffect(() => {
80
- const container = containerRef.current;
81
- const inner = innerRef.current;
82
- if (!container || !inner) return;
83
-
84
- const initialHeight = inner.offsetHeight;
85
- if (currentHeight.current === 0) {
86
- currentHeight.current = initialHeight;
87
- container.style.height = `${initialHeight}px`;
88
- return;
89
- }
90
-
91
- // Keep observing until the height differs from current (new content has mounted)
92
- const ro = new ResizeObserver(() => {
93
- const targetHeight = inner.offsetHeight;
94
- if (targetHeight > 0 && targetHeight !== currentHeight.current) {
95
- currentHeight.current = targetHeight;
96
- ro.disconnect();
97
- animate(container, { height: targetHeight }, { duration: 0.25, ease: "easeInOut" });
98
- }
99
- });
100
- ro.observe(inner);
101
- return () => ro.disconnect();
102
- }, [selectedValue]);
103
-
104
- return (
105
- <div ref={containerRef} className="overflow-clip">
106
- <div ref={innerRef}>{children}</div>
107
- </div>
108
- );
109
- }
110
-
111
69
  function Tabs({
112
70
  children,
113
71
  defaultValue,
@@ -156,12 +114,12 @@ function Tabs({
156
114
  >
157
115
  <div className={cn("tabs-container", className)}>
158
116
  {nonContentChildren}
159
- <AnimatedHeight selectedValue={selectedValue}>
117
+ <HeightContainer stateKey={selectedValue}>
160
118
  <AnimatePresence mode="wait" custom={direction}>
161
119
  {activeContent &&
162
120
  cloneElement(activeContent, { key: activeContent.props.value })}
163
121
  </AnimatePresence>
164
- </AnimatedHeight>
122
+ </HeightContainer>
165
123
  </div>
166
124
  </TabsContext.Provider>
167
125
  );
@@ -245,7 +245,7 @@ function ToggleClose({ className }: { className?: string }) {
245
245
  onClick={close}
246
246
  className={className}
247
247
  >
248
- <UtilityClose />
248
+ <UtilityClose className="text-inherit" />
249
249
  </button>
250
250
  );
251
251
  }
package/client/global.css CHANGED
@@ -2054,7 +2054,7 @@ body {
2054
2054
  .tooltip-content {
2055
2055
  position: relative;
2056
2056
  z-index: 50;
2057
- border-radius: 0.5rem;
2057
+ border-radius: 12px;
2058
2058
  padding: 1.5rem;
2059
2059
  padding-top: 2rem;
2060
2060
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
@@ -2177,6 +2177,12 @@ body {
2177
2177
  top: 1rem;
2178
2178
  right: 1rem;
2179
2179
  cursor: pointer;
2180
+ color: var(--color-gray-500, #6b7280);
2181
+ transition: color 0.15s ease-in-out;
2182
+ }
2183
+
2184
+ [data-slot="tooltip-close"]:hover {
2185
+ color: var(--color-gray-300, #fff);
2180
2186
  }
2181
2187
 
2182
2188
  @media (max-width: 639px) {
@@ -2622,7 +2628,7 @@ body {
2622
2628
  @media (max-width: 639px) {
2623
2629
  .dialog-content {
2624
2630
  width: 100%;
2625
- padding-inline: 1rem;
2631
+ /* padding-inline: 1rem; */
2626
2632
  }
2627
2633
 
2628
2634
  .dialog-content-wrapper {
@@ -7305,11 +7311,9 @@ body {
7305
7311
  margin-bottom: 0;
7306
7312
  }
7307
7313
 
7308
- .page-header-description {
7309
- /* Uses body-large utility */
7310
- /* max-width: 680px; */
7314
+ /* .page-header-description {
7311
7315
  padding-right: 10rem;
7312
- }
7316
+ } */
7313
7317
 
7314
7318
  @media (max-width: 640px) {
7315
7319
  .page-header-description {