@streamscloud/kit 0.0.1-1771078312569 → 0.0.1-1771078892208

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,15 +1,12 @@
1
- <script lang="ts">let { value } = $props();
2
- const cssWidth = $derived(`${100 * (value <= 1 ? value : 1)}%`);
3
- </script>
4
-
5
- <div class="progress">
6
- <span class="progress__value" class:progress__value--animated={value > 0.01 && value < 0.96} style:width={cssWidth}> &nbsp; </span>
7
- </div>
8
-
9
1
  <!--
10
2
  @component
11
3
  A horizontal progress bar that fills from left to right based on a normalized value.
12
4
 
5
+ ### Props
6
+ | Prop | Type | Description |
7
+ |---|---|---|
8
+ | `value` | `number` | Completion value from 0 to 1 |
9
+
13
10
  ### CSS Custom Properties
14
11
  | Property | Description | Default |
15
12
  |---|---|---|
@@ -19,6 +16,13 @@ A horizontal progress bar that fills from left to right based on a normalized va
19
16
  | `--sc-kit--progress--box-shadow` | Inset shadow on the track | `0 2px 3px rgba(0,0,0,0.25) inset` |
20
17
  | `--sc-kit--progress--border-radius` | Corner radius | `0` |
21
18
  -->
19
+ <script lang="ts">let { value } = $props();
20
+ const cssWidth = $derived(`${100 * (value <= 1 ? value : 1)}%`);
21
+ </script>
22
+
23
+ <div class="progress">
24
+ <span class="progress__value" class:progress__value--animated={value > 0.01 && value < 0.96} style:width={cssWidth}> &nbsp; </span>
25
+ </div>
22
26
 
23
27
  <style>.progress {
24
28
  --_progress--height: var(--sc-kit--progress--height, 0.25em);
@@ -1,10 +1,14 @@
1
1
  type Props = {
2
- /** Completion value from 0 to 1 */
3
2
  value: number;
4
3
  };
5
4
  /**
6
5
  * A horizontal progress bar that fills from left to right based on a normalized value.
7
6
  *
7
+ * ### Props
8
+ * | Prop | Type | Description |
9
+ * |---|---|---|
10
+ * | `value` | `number` | Completion value from 0 to 1 |
11
+ *
8
12
  * ### CSS Custom Properties
9
13
  * | Property | Description | Default |
10
14
  * |---|---|---|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/kit",
3
- "version": "0.0.1-1771078312569",
3
+ "version": "0.0.1-1771078892208",
4
4
  "author": "StreamsCloud",
5
5
  "repository": {
6
6
  "type": "git",