@budibase/bbui 0.9.176-alpha.0 → 0.9.177
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/dist/bbui.es.js +1 -1
- package/dist/bbui.es.js.map +1 -1
- package/package.json +2 -3
- package/src/index.js +0 -1
- package/src/InlineAlert/InlineAlert.svelte +0 -51
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/bbui",
|
|
3
3
|
"description": "A UI solution used in the different Budibase projects.",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.177",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"svelte": "src/index.js",
|
|
7
7
|
"module": "dist/bbui.es.js",
|
|
@@ -51,7 +51,6 @@
|
|
|
51
51
|
"@spectrum-css/fieldlabel": "^3.0.1",
|
|
52
52
|
"@spectrum-css/icon": "^3.0.1",
|
|
53
53
|
"@spectrum-css/illustratedmessage": "^3.0.2",
|
|
54
|
-
"@spectrum-css/inlinealert": "^2.0.1",
|
|
55
54
|
"@spectrum-css/inputgroup": "^3.0.2",
|
|
56
55
|
"@spectrum-css/label": "^2.0.10",
|
|
57
56
|
"@spectrum-css/link": "^3.1.1",
|
|
@@ -82,5 +81,5 @@
|
|
|
82
81
|
"svelte-flatpickr": "^3.2.3",
|
|
83
82
|
"svelte-portal": "^1.0.0"
|
|
84
83
|
},
|
|
85
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "0b57f74a43b2f8ffb8e62ae3e7671588113c8743"
|
|
86
85
|
}
|
package/src/index.js
CHANGED
|
@@ -58,7 +58,6 @@ export { default as Pagination } from "./Pagination/Pagination.svelte"
|
|
|
58
58
|
export { default as Badge } from "./Badge/Badge.svelte"
|
|
59
59
|
export { default as StatusLight } from "./StatusLight/StatusLight.svelte"
|
|
60
60
|
export { default as ColorPicker } from "./ColorPicker/ColorPicker.svelte"
|
|
61
|
-
export { default as InlineAlert } from "./InlineAlert/InlineAlert.svelte"
|
|
62
61
|
|
|
63
62
|
// Typography
|
|
64
63
|
export { default as Body } from "./Typography/Body.svelte"
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import "@spectrum-css/inlinealert/dist/index-vars.css"
|
|
3
|
-
import Button from "../Button/Button.svelte"
|
|
4
|
-
|
|
5
|
-
export let type = "info"
|
|
6
|
-
export let header = ""
|
|
7
|
-
export let message = ""
|
|
8
|
-
export let onConfirm = undefined
|
|
9
|
-
|
|
10
|
-
$: icon = selectIcon(type)
|
|
11
|
-
|
|
12
|
-
function selectIcon(alertType) {
|
|
13
|
-
switch (alertType) {
|
|
14
|
-
case "error":
|
|
15
|
-
case "negative":
|
|
16
|
-
return "Alert"
|
|
17
|
-
case "success":
|
|
18
|
-
return "CheckmarkCircle"
|
|
19
|
-
case "help":
|
|
20
|
-
return "Help"
|
|
21
|
-
default:
|
|
22
|
-
return "Info"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
</script>
|
|
26
|
-
|
|
27
|
-
<div class="spectrum-InLineAlert spectrum-InLineAlert--{type}">
|
|
28
|
-
<svg
|
|
29
|
-
class="spectrum-Icon spectrum-Icon--sizeM spectrum-InLineAlert-icon"
|
|
30
|
-
focusable="false"
|
|
31
|
-
aria-hidden="true"
|
|
32
|
-
>
|
|
33
|
-
<use xlink:href="#spectrum-icon-18-{icon}" />
|
|
34
|
-
</svg>
|
|
35
|
-
<div class="spectrum-InLineAlert-header">{header}</div>
|
|
36
|
-
<div class="spectrum-InLineAlert-content">{message}</div>
|
|
37
|
-
{#if onConfirm}
|
|
38
|
-
<div class="spectrum-InLineAlert-footer">
|
|
39
|
-
<Button secondary on:click={onConfirm}>OK</Button>
|
|
40
|
-
</div>
|
|
41
|
-
{/if}
|
|
42
|
-
</div>
|
|
43
|
-
|
|
44
|
-
<style>
|
|
45
|
-
.spectrum-InLineAlert {
|
|
46
|
-
--spectrum-semantic-negative-border-color: #e34850;
|
|
47
|
-
--spectrum-semantic-positive-border-color: #2d9d78;
|
|
48
|
-
--spectrum-semantic-positive-icon-color: #2d9d78;
|
|
49
|
-
--spectrum-semantic-negative-icon-color: #e34850;
|
|
50
|
-
}
|
|
51
|
-
</style>
|