@opencode-ai/ui 0.0.0-dev-202606300840 → 0.0.0-dev-202606300922
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentProps } from "solid-js";
|
|
2
|
-
export interface ProgressCircleProps extends Pick<ComponentProps<"svg">, "class" | "classList"> {
|
|
2
|
+
export interface ProgressCircleProps extends Pick<ComponentProps<"svg">, "class" | "classList" | "style"> {
|
|
3
3
|
percentage: number;
|
|
4
4
|
size?: number;
|
|
5
5
|
strokeWidth?: number;
|
package/package.json
CHANGED
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
transform: rotate(-90deg);
|
|
3
3
|
|
|
4
4
|
[data-slot="progress-circle-background"] {
|
|
5
|
-
stroke: var(--border-weak-base);
|
|
5
|
+
stroke: var(--progress-circle-background, var(--border-weak-base));
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
[data-slot="progress-circle-background-overlay"] {
|
|
9
|
+
stroke: var(--progress-circle-background-overlay, transparent);
|
|
6
10
|
}
|
|
7
11
|
|
|
8
12
|
[data-slot="progress-circle-progress"] {
|
|
9
|
-
stroke: var(--border-active);
|
|
13
|
+
stroke: var(--progress-circle-progress, var(--border-active));
|
|
10
14
|
transition: stroke-dashoffset 0.35s cubic-bezier(0.65, 0, 0.35, 1);
|
|
11
15
|
}
|
|
12
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ComponentProps, createMemo, splitProps } from "solid-js"
|
|
2
2
|
|
|
3
|
-
export interface ProgressCircleProps extends Pick<ComponentProps<"svg">, "class" | "classList"> {
|
|
3
|
+
export interface ProgressCircleProps extends Pick<ComponentProps<"svg">, "class" | "classList" | "style"> {
|
|
4
4
|
percentage: number
|
|
5
5
|
size?: number
|
|
6
6
|
strokeWidth?: number
|
|
@@ -43,6 +43,13 @@ export function ProgressCircle(props: ProgressCircleProps) {
|
|
|
43
43
|
data-slot="progress-circle-background"
|
|
44
44
|
stroke-width={strokeWidth()}
|
|
45
45
|
/>
|
|
46
|
+
<circle
|
|
47
|
+
cx={center}
|
|
48
|
+
cy={center}
|
|
49
|
+
r={radius()}
|
|
50
|
+
data-slot="progress-circle-background-overlay"
|
|
51
|
+
stroke-width={strokeWidth()}
|
|
52
|
+
/>
|
|
46
53
|
<circle
|
|
47
54
|
cx={center}
|
|
48
55
|
cy={center}
|