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,6 +1,6 @@
1
1
  {
2
2
  "name": "not-bulma",
3
- "version": "1.2.7",
3
+ "version": "1.2.10",
4
4
  "description": "not-* family UI components on Bulma CSS Framework",
5
5
  "main": "src/index.js",
6
6
  "svelte": "src/index.js",
@@ -1,14 +1,20 @@
1
-
2
1
  <script>
3
- /*import UIButton from './ui.button.svelte';
4
- export let values = [];
5
- export let centered = false;
6
- export let right = false;*/
7
- export let classes = '';
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
- <slot name="left"></slot>
12
- <slot name="center"></slot>
13
- <slot name="right"></slot>
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 UIButton from "../button/ui.button.svelte";
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
- <div class="buttons is-grouped is-centered mt-4">
38
- {#if closeButton}
39
- <UIButton {...closeButton} />
40
- {/if}
41
- {#if applyButton}
42
- <UIButton {...applyButton} />
43
- {/if}
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>