@axium/client 0.19.0 → 0.19.2
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.
- package/assets/styles.css +2 -2
- package/dist/requests.js +4 -0
- package/lib/NumberBar.svelte +10 -2
- package/package.json +1 -1
package/assets/styles.css
CHANGED
|
@@ -76,7 +76,7 @@ button {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
button.reset {
|
|
79
|
+
button:where(.reset) {
|
|
80
80
|
border-radius: unset;
|
|
81
81
|
border: none;
|
|
82
82
|
background-color: unset;
|
|
@@ -360,7 +360,7 @@ div.toast {
|
|
|
360
360
|
|
|
361
361
|
@media (width < 700px) {
|
|
362
362
|
.mobile-hide {
|
|
363
|
-
display: none
|
|
363
|
+
display: none;
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
.mobile-button {
|
package/dist/requests.js
CHANGED
package/lib/NumberBar.svelte
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
2
|
+
interface Props<T extends number | bigint> {
|
|
3
|
+
min?: T;
|
|
4
|
+
max: T;
|
|
5
|
+
value: T;
|
|
6
|
+
text: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const { min: _min, max, value, text }: Props<any> = $props();
|
|
10
|
+
let min: typeof value = _min || typeof value == 'bigint' ? 0n : 0;
|
|
3
11
|
</script>
|
|
4
12
|
|
|
5
13
|
<div class="Bar">
|
|
6
14
|
{#if max}
|
|
7
|
-
<div class="fill" style="width: {((value - min) / (max - min)) * 100}%"></div>
|
|
15
|
+
<div class="fill" style="width: {((value - min) / (max - min)) * ((typeof value == 'bigint' ? 100n : 100) as typeof value)}%"></div>
|
|
8
16
|
{/if}
|
|
9
17
|
{#if text}<span class="text">{text}</span>{/if}
|
|
10
18
|
</div>
|