@lavalogic/scoria 0.31.1 → 0.31.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.
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import StepButton from './StepButton.svelte';
|
|
12
12
|
import type { StepFormProps } from './StepFormProps.js';
|
|
13
13
|
|
|
14
|
-
let { name, steps, currentStep }: StepFormProps<CommonDenominator> = $props();
|
|
14
|
+
let { name, steps, currentStep, noscroll = false }: StepFormProps<CommonDenominator> = $props();
|
|
15
15
|
|
|
16
16
|
onMount(() => {
|
|
17
17
|
if (name) {
|
|
@@ -55,7 +55,10 @@
|
|
|
55
55
|
});
|
|
56
56
|
</script>
|
|
57
57
|
|
|
58
|
-
<div
|
|
58
|
+
<div
|
|
59
|
+
class:noscroll
|
|
60
|
+
class="wrapper"
|
|
61
|
+
>
|
|
59
62
|
<div class="tabs">
|
|
60
63
|
{#each steps as option, index (index)}
|
|
61
64
|
<StepButton
|
|
@@ -88,7 +91,10 @@
|
|
|
88
91
|
</div>
|
|
89
92
|
</div>
|
|
90
93
|
|
|
91
|
-
<div
|
|
94
|
+
<div
|
|
95
|
+
class:noscroll
|
|
96
|
+
class="content"
|
|
97
|
+
>
|
|
92
98
|
{#if currentStep}
|
|
93
99
|
{@render currentStep.content(currentStep.args)}
|
|
94
100
|
{:else}
|
|
@@ -123,6 +129,7 @@
|
|
|
123
129
|
flex-flow: column nowrap;
|
|
124
130
|
flex: 1;
|
|
125
131
|
overflow: auto;
|
|
132
|
+
flex-shrink: 1;
|
|
126
133
|
}
|
|
127
134
|
.wrapper.noscroll {
|
|
128
135
|
overflow: visible;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { TabOption } from '../Types/Internal/TabOption.js';
|
|
2
2
|
export interface StepFormProps<CommonDenominator> {
|
|
3
|
-
name?: string;
|
|
4
3
|
steps: Array<TabOption<CommonDenominator>>;
|
|
5
4
|
currentStep: TabOption<CommonDenominator> | undefined;
|
|
5
|
+
name?: string;
|
|
6
|
+
noscroll?: boolean;
|
|
6
7
|
}
|