@streamscloud/kit 0.0.1-1771075495185 → 0.0.1-1771078460866
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,3 +1,16 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@component
|
|
3
|
+
A horizontal progress bar that fills from left to right based on a normalized value.
|
|
4
|
+
|
|
5
|
+
### CSS Custom Properties
|
|
6
|
+
| Property | Description | Default |
|
|
7
|
+
|---|---|---|
|
|
8
|
+
| `--sc-kit--progress--height` | Bar height | `0.25em` |
|
|
9
|
+
| `--sc-kit--progress--back-color` | Track background color | `neutral-400` |
|
|
10
|
+
| `--sc-kit--progress--front-color` | Filled portion color | `white` |
|
|
11
|
+
| `--sc-kit--progress--box-shadow` | Inset shadow on the track | `0 2px 3px rgba(0,0,0,0.25) inset` |
|
|
12
|
+
| `--sc-kit--progress--border-radius` | Corner radius | `0` |
|
|
13
|
+
-->
|
|
1
14
|
<script lang="ts">let { value } = $props();
|
|
2
15
|
const cssWidth = $derived(`${100 * (value <= 1 ? value : 1)}%`);
|
|
3
16
|
</script>
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
type Props = {
|
|
2
|
-
/** 0
|
|
2
|
+
/** Completion value from 0 to 1 */
|
|
3
3
|
value: number;
|
|
4
4
|
};
|
|
5
|
+
/**
|
|
6
|
+
* A horizontal progress bar that fills from left to right based on a normalized value.
|
|
7
|
+
*
|
|
8
|
+
* ### CSS Custom Properties
|
|
9
|
+
* | Property | Description | Default |
|
|
10
|
+
* |---|---|---|
|
|
11
|
+
* | `--sc-kit--progress--height` | Bar height | `0.25em` |
|
|
12
|
+
* | `--sc-kit--progress--back-color` | Track background color | `neutral-400` |
|
|
13
|
+
* | `--sc-kit--progress--front-color` | Filled portion color | `white` |
|
|
14
|
+
* | `--sc-kit--progress--box-shadow` | Inset shadow on the track | `0 2px 3px rgba(0,0,0,0.25) inset` |
|
|
15
|
+
* | `--sc-kit--progress--border-radius` | Corner radius | `0` |
|
|
16
|
+
*/
|
|
5
17
|
declare const Cmp: import("svelte").Component<Props, {}, "">;
|
|
6
18
|
type Cmp = ReturnType<typeof Cmp>;
|
|
7
19
|
export default Cmp;
|