@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/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-alpha.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-alpha.6",
42
- "@budibase/string-templates": "2.5.6-alpha.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": "38e1d3a3a0a70b4a55b3a1a790d46151057af3c2"
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 = maxHeight || 240
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
@@ -9,7 +9,6 @@
9
9
 
10
10
  <TooltipWrapper {tooltip} {size}>
11
11
  <label
12
- data-testid="label"
13
12
  class:muted
14
13
  for=""
15
14
  class={`spectrum-FieldLabel spectrum-FieldLabel--size${size}`}
@@ -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,
@@ -9,7 +9,6 @@
9
9
  </script>
10
10
 
11
11
  <p
12
- data-testid="typography-body"
13
12
  style={`
14
13
  ${weight ? `font-weight:${weight};` : ""}
15
14
  ${textAlign ? `text-align:${textAlign};` : ""}
@@ -9,7 +9,6 @@
9
9
  </script>
10
10
 
11
11
  <h1
12
- data-testid="typography-heading"
13
12
  style={textAlign ? `text-align:${textAlign}` : ``}
14
13
  class:noPadding
15
14
  class="spectrum-Heading spectrum-Heading--size{size} spectrum-Heading--{weight}"