@budibase/bbui 3.41.0 → 3.41.1
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/bbui",
|
|
3
3
|
"description": "A UI solution used in the different Budibase projects.",
|
|
4
|
-
"version": "3.41.
|
|
4
|
+
"version": "3.41.1",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"module": "dist/bbui.mjs",
|
|
7
7
|
"exports": {
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "fc94728bc509937e374c5d38f47f8858a1f405c9"
|
|
112
112
|
}
|
package/src/Modal/Content.svelte
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { getContext } from "svelte"
|
|
3
|
-
import Context from "../context"
|
|
4
|
-
|
|
5
|
-
const { hide } = getContext(Context.Modal)
|
|
6
|
-
|
|
7
|
-
let count: number = 0
|
|
8
|
-
const clicks: number = 5
|
|
9
|
-
$: if (count === clicks) hide()
|
|
10
|
-
$: remaining = clicks - count
|
|
11
|
-
|
|
12
|
-
function increment() {
|
|
13
|
-
count++
|
|
14
|
-
}
|
|
15
|
-
</script>
|
|
16
|
-
|
|
17
|
-
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
18
|
-
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
19
|
-
<div on:click={increment}>
|
|
20
|
-
Click me
|
|
21
|
-
{remaining}
|
|
22
|
-
more time{remaining === 1 ? "" : "s"}
|
|
23
|
-
to close this modal!
|
|
24
|
-
</div>
|
|
25
|
-
|
|
26
|
-
<style>
|
|
27
|
-
div {
|
|
28
|
-
padding: 40px;
|
|
29
|
-
background-color: var(--purple);
|
|
30
|
-
color: white;
|
|
31
|
-
font-weight: bold;
|
|
32
|
-
text-align: center;
|
|
33
|
-
user-select: none;
|
|
34
|
-
font-size: 20px;
|
|
35
|
-
}
|
|
36
|
-
div:hover {
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
}
|
|
39
|
-
</style>
|