@budibase/bbui 2.5.6-alpha.6 → 2.5.6
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 +8 -2
- package/dist/bbui.es.js.map +1 -1
- package/package.json +4 -4
- package/src/Actions/position_dropdown.js +3 -11
- package/src/Label/Label.svelte +0 -1
- package/src/Popover/Popover.svelte +0 -2
- package/src/Typography/Body.svelte +0 -1
- package/src/Typography/Heading.svelte +0 -1
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": "2.5.6
|
|
4
|
+
"version": "2.5.6",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"svelte": "src/index.js",
|
|
7
7
|
"module": "dist/bbui.es.js",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@adobe/spectrum-css-workflow-icons": "1.2.1",
|
|
41
|
-
"@budibase/shared-core": "2.5.6
|
|
42
|
-
"@budibase/string-templates": "2.5.6
|
|
41
|
+
"@budibase/shared-core": "^2.5.6",
|
|
42
|
+
"@budibase/string-templates": "^2.5.6",
|
|
43
43
|
"@spectrum-css/accordion": "3.0.24",
|
|
44
44
|
"@spectrum-css/actionbutton": "1.0.1",
|
|
45
45
|
"@spectrum-css/actiongroup": "1.0.1",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"resolutions": {
|
|
91
91
|
"loader-utils": "1.4.1"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "529df8b8206e547b2c942a142b9730facbbf117c"
|
|
94
94
|
}
|
|
@@ -10,14 +10,7 @@ export default function positionDropdown(element, opts) {
|
|
|
10
10
|
|
|
11
11
|
// Updates the position of the dropdown
|
|
12
12
|
const updatePosition = opts => {
|
|
13
|
-
const {
|
|
14
|
-
anchor,
|
|
15
|
-
align,
|
|
16
|
-
maxHeight,
|
|
17
|
-
maxWidth,
|
|
18
|
-
useAnchorWidth,
|
|
19
|
-
offset = 5,
|
|
20
|
-
} = opts
|
|
13
|
+
const { anchor, align, maxWidth, useAnchorWidth, offset = 5 } = opts
|
|
21
14
|
if (!anchor) {
|
|
22
15
|
return
|
|
23
16
|
}
|
|
@@ -38,11 +31,10 @@ export default function positionDropdown(element, opts) {
|
|
|
38
31
|
styles.top = anchorBounds.top
|
|
39
32
|
} else if (window.innerHeight - anchorBounds.bottom < 100) {
|
|
40
33
|
styles.top = anchorBounds.top - elementBounds.height - offset
|
|
41
|
-
styles.maxHeight =
|
|
34
|
+
styles.maxHeight = 240
|
|
42
35
|
} else {
|
|
43
36
|
styles.top = anchorBounds.bottom + offset
|
|
44
|
-
styles.maxHeight =
|
|
45
|
-
maxHeight || window.innerHeight - anchorBounds.bottom - 20
|
|
37
|
+
styles.maxHeight = window.innerHeight - anchorBounds.bottom - 20
|
|
46
38
|
}
|
|
47
39
|
|
|
48
40
|
// Determine horizontal styles
|
package/src/Label/Label.svelte
CHANGED
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
export let align = "right"
|
|
15
15
|
export let portalTarget
|
|
16
16
|
export let maxWidth
|
|
17
|
-
export let maxHeight
|
|
18
17
|
export let open = false
|
|
19
18
|
export let useAnchorWidth = false
|
|
20
19
|
export let dismissible = true
|
|
@@ -65,7 +64,6 @@
|
|
|
65
64
|
use:positionDropdown={{
|
|
66
65
|
anchor,
|
|
67
66
|
align,
|
|
68
|
-
maxHeight,
|
|
69
67
|
maxWidth,
|
|
70
68
|
useAnchorWidth,
|
|
71
69
|
offset,
|