not-bulma 1.2.7 → 1.2.10
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
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
|
|
2
1
|
<script>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import UIButtons from "./ui.buttons.svelte";
|
|
3
|
+
export let classes = "";
|
|
4
|
+
|
|
5
|
+
export let left = [];
|
|
6
|
+
export let center = [];
|
|
7
|
+
export let right = [];
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
|
-
<div class="{classes}">
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
<div class="columns {classes}">
|
|
11
|
+
<div class="column">
|
|
12
|
+
<UIButtons values={left}></UIButtons>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="column">
|
|
15
|
+
<UIButtons values={center} centered={true}></UIButtons>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="column">
|
|
18
|
+
<UIButtons values={right} right={true}></UIButtons>
|
|
19
|
+
</div>
|
|
14
20
|
</div>
|
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
import UIContent from "../block/ui.content.svelte";
|
|
8
8
|
|
|
9
9
|
import UITitle from "../various/ui.title.svelte";
|
|
10
|
-
import
|
|
10
|
+
import UIButtonsRow from "../button/ui.buttons.row.svelte";
|
|
11
11
|
|
|
12
|
+
export let buttonsPosition = "bottom";
|
|
12
13
|
export let closeButton = false;
|
|
13
14
|
export let applyButton = false;
|
|
15
|
+
|
|
14
16
|
export let show = false;
|
|
15
17
|
export let loading = false;
|
|
16
18
|
export let title = "Modal window";
|
|
@@ -33,15 +35,20 @@
|
|
|
33
35
|
<div class="pageloader {loading ? 'is-active' : ''}">
|
|
34
36
|
<span class="title">{$LOCALE[WAITING_TEXT]}</span>
|
|
35
37
|
</div>
|
|
38
|
+
{#if buttonsPosition === "top"}
|
|
39
|
+
<UIButtonsRow
|
|
40
|
+
left={closeButton ? [closeButton] : []}
|
|
41
|
+
right={applyButton ? [applyButton] : []}
|
|
42
|
+
></UIButtonsRow>
|
|
43
|
+
{/if}
|
|
36
44
|
<slot />
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
</div>
|
|
45
|
+
|
|
46
|
+
{#if buttonsPosition === "bottom"}
|
|
47
|
+
<UIButtonsRow
|
|
48
|
+
left={closeButton ? [closeButton] : []}
|
|
49
|
+
right={applyButton ? [applyButton] : []}
|
|
50
|
+
></UIButtonsRow>
|
|
51
|
+
{/if}
|
|
45
52
|
</UIContent>
|
|
46
53
|
</UIBox>
|
|
47
54
|
</UIOverlay>
|