@syscore/ui-library 2.0.0-beta-publish-workflow-beta.20 → 2.0.0-beta-publish-workflow-beta.21
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.
|
@@ -3,13 +3,19 @@ import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
|
3
3
|
|
|
4
4
|
import { cn } from "@/lib/utils";
|
|
5
5
|
|
|
6
|
+
interface ProgressProps
|
|
7
|
+
extends React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root> {
|
|
8
|
+
/** "default" (16px, the original size) or "small" (4px — inline/compact contexts, e.g. next to an upload trigger). */
|
|
9
|
+
size?: "default" | "small";
|
|
10
|
+
}
|
|
11
|
+
|
|
6
12
|
const Progress = React.forwardRef<
|
|
7
13
|
React.ElementRef<typeof ProgressPrimitive.Root>,
|
|
8
|
-
|
|
9
|
-
>(({ className, value, ...props }, ref) => (
|
|
14
|
+
ProgressProps
|
|
15
|
+
>(({ className, value, size = "default", ...props }, ref) => (
|
|
10
16
|
<ProgressPrimitive.Root
|
|
11
17
|
ref={ref}
|
|
12
|
-
className={cn("progress", className)}
|
|
18
|
+
className={cn("progress", size === "small" && "progress--small", className)}
|
|
13
19
|
{...props}
|
|
14
20
|
>
|
|
15
21
|
<ProgressPrimitive.Indicator
|
package/client/global.css
CHANGED
|
@@ -4718,6 +4718,10 @@ body {
|
|
|
4718
4718
|
transition: transform 0.15s ease-in-out;
|
|
4719
4719
|
}
|
|
4720
4720
|
|
|
4721
|
+
.progress--small {
|
|
4722
|
+
height: 0.25rem;
|
|
4723
|
+
}
|
|
4724
|
+
|
|
4721
4725
|
/* Slider Styles */
|
|
4722
4726
|
.slider {
|
|
4723
4727
|
position: relative;
|
|
@@ -6164,7 +6168,28 @@ body {
|
|
|
6164
6168
|
}
|
|
6165
6169
|
|
|
6166
6170
|
.select-viewport {
|
|
6167
|
-
/*
|
|
6171
|
+
/* Thin, always-visible scrollbar: the default native scrollbar nearly
|
|
6172
|
+
disappears against the dark .select-content background (team feedback
|
|
6173
|
+
2026-10-29), leaving no indication that more options exist below. */
|
|
6174
|
+
scrollbar-width: thin;
|
|
6175
|
+
scrollbar-color: var(--color-gray-400, #9397a1) transparent;
|
|
6176
|
+
}
|
|
6177
|
+
|
|
6178
|
+
.select-viewport::-webkit-scrollbar {
|
|
6179
|
+
width: 8px;
|
|
6180
|
+
}
|
|
6181
|
+
|
|
6182
|
+
.select-viewport::-webkit-scrollbar-track {
|
|
6183
|
+
background: transparent;
|
|
6184
|
+
}
|
|
6185
|
+
|
|
6186
|
+
.select-viewport::-webkit-scrollbar-thumb {
|
|
6187
|
+
border-radius: 8px;
|
|
6188
|
+
background-color: var(--color-gray-400, #9397a1);
|
|
6189
|
+
}
|
|
6190
|
+
|
|
6191
|
+
.select-viewport::-webkit-scrollbar-thumb:hover {
|
|
6192
|
+
background-color: var(--color-gray-200, #dedfe3);
|
|
6168
6193
|
}
|
|
6169
6194
|
|
|
6170
6195
|
.select-label {
|
|
@@ -2,11 +2,11 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
4
4
|
import { cn } from "../../lib/utils.js";
|
|
5
|
-
const Progress = React.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5
|
+
const Progress = React.forwardRef(({ className, value, size = "default", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
6
6
|
ProgressPrimitive.Root,
|
|
7
7
|
{
|
|
8
8
|
ref,
|
|
9
|
-
className: cn("progress", className),
|
|
9
|
+
className: cn("progress", size === "small" && "progress--small", className),
|
|
10
10
|
...props,
|
|
11
11
|
children: /* @__PURE__ */ jsx(
|
|
12
12
|
ProgressPrimitive.Indicator,
|