@streamscloud/kit 0.0.1-1771075495185 → 0.0.1-1771078312569

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