not-bulma 1.2.7 → 1.2.9
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/package.json
CHANGED
|
@@ -8,9 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
import UITitle from "../various/ui.title.svelte";
|
|
10
10
|
import UIButton from "../button/ui.button.svelte";
|
|
11
|
+
import UIButtonsRow from "../button/ui.buttons.row.svelte";
|
|
11
12
|
|
|
13
|
+
export let buttonsPosition = "bottom";
|
|
12
14
|
export let closeButton = false;
|
|
13
15
|
export let applyButton = false;
|
|
16
|
+
|
|
14
17
|
export let show = false;
|
|
15
18
|
export let loading = false;
|
|
16
19
|
export let title = "Modal window";
|
|
@@ -33,15 +36,28 @@
|
|
|
33
36
|
<div class="pageloader {loading ? 'is-active' : ''}">
|
|
34
37
|
<span class="title">{$LOCALE[WAITING_TEXT]}</span>
|
|
35
38
|
</div>
|
|
39
|
+
{#if buttonsPosition === "top"}
|
|
40
|
+
<UIButtonsRow>
|
|
41
|
+
{#if closeButton}
|
|
42
|
+
<slot name="left"><UIButton {...closeButton} /></slot>
|
|
43
|
+
{/if}
|
|
44
|
+
{#if applyButton}
|
|
45
|
+
<slot name="right"><UIButton {...applyButton} /></slot>
|
|
46
|
+
{/if}
|
|
47
|
+
</UIButtonsRow>
|
|
48
|
+
{/if}
|
|
36
49
|
<slot />
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
50
|
+
|
|
51
|
+
{#if buttonsPosition === "bottom"}
|
|
52
|
+
<UIButtonsRow>
|
|
53
|
+
{#if closeButton}
|
|
54
|
+
<slot name="left"><UIButton {...closeButton} /></slot>
|
|
55
|
+
{/if}
|
|
56
|
+
{#if applyButton}
|
|
57
|
+
<slot name="right"><UIButton {...applyButton} /></slot>
|
|
58
|
+
{/if}
|
|
59
|
+
</UIButtonsRow>
|
|
60
|
+
{/if}
|
|
45
61
|
</UIContent>
|
|
46
62
|
</UIBox>
|
|
47
63
|
</UIOverlay>
|