@streamscloud/kit 0.0.1-1771072688121 → 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}> </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
|
|
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-
|
|
3
|
+
"version": "0.0.1-1771078312569",
|
|
4
4
|
"author": "StreamsCloud",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
"devDependencies": {
|
|
207
207
|
"@eslint/compat": "^2.0.2",
|
|
208
208
|
"@eslint/js": "^9.39.2",
|
|
209
|
-
"@fluentui/svg-icons": "^1.1.
|
|
209
|
+
"@fluentui/svg-icons": "^1.1.319",
|
|
210
210
|
"@popperjs/core": "^2.11.8",
|
|
211
211
|
"@sveltejs/package": "^2.5.7",
|
|
212
212
|
"@sveltejs/vite-plugin-svelte": "^6.2.4",
|
|
@@ -234,14 +234,14 @@
|
|
|
234
234
|
"publint": "^0.3.17",
|
|
235
235
|
"rfdc": "^1.4.1",
|
|
236
236
|
"sass": "^1.97.3",
|
|
237
|
-
"svelte": "^5.
|
|
238
|
-
"svelte-check": "^4.
|
|
237
|
+
"svelte": "^5.51.0",
|
|
238
|
+
"svelte-check": "^4.4.0",
|
|
239
239
|
"svelte-preprocess": "^6.0.3",
|
|
240
240
|
"svelte-sonner": "^1.0.7",
|
|
241
241
|
"typescript": "^5.9.3",
|
|
242
242
|
"typescript-eslint": "^8.55.0",
|
|
243
243
|
"vite": "^7.3.1",
|
|
244
|
-
"vite-tsconfig-paths": "^6.1.
|
|
244
|
+
"vite-tsconfig-paths": "^6.1.1",
|
|
245
245
|
"wheel-gestures": "^2.2.48",
|
|
246
246
|
"yup": "^1.7.1"
|
|
247
247
|
}
|