@budibase/bbui 3.15.1 → 3.16.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/dist/bbui.mjs CHANGED
@@ -32494,8 +32494,9 @@ function instance$1v(f, u, p) {
32494
32494
  const Q = (le) => {
32495
32495
  if (!le)
32496
32496
  return "";
32497
+ le.startsWith("rgba") || (le = le.startsWith("rgb") ? `${le.substring(0, le.length - 1)}, 0.2)` : hexToRGBA(le, 0.2));
32497
32498
  let me = "";
32498
- return me += `--accent-bg-color:${hexToRGBA(le, 0.2)};`, me += `--accent-border-color:${hexToRGBA(le, 0.2)};`, me;
32499
+ return me += `--accent-bg-color:${le};`, me += `--accent-border-color:${le};`, me;
32499
32500
  };
32500
32501
  function ee(le) {
32501
32502
  bubble.call(this, f, le);
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.15.1",
4
+ "version": "3.16.1",
5
5
  "license": "MPL-2.0",
6
6
  "svelte": "src/index.ts",
7
7
  "module": "dist/bbui.mjs",
@@ -106,5 +106,5 @@
106
106
  }
107
107
  }
108
108
  },
109
- "gitHead": "2a0b9f9245b8ea4603000a9e1e67b1bf18b7e744"
109
+ "gitHead": "6e6f06e392e69521daaf3f68263cf8c5e7978e03"
110
110
  }
@@ -24,9 +24,14 @@
24
24
  if (!color) {
25
25
  return ""
26
26
  }
27
+ if (!color.startsWith("rgba")) {
28
+ color = color.startsWith("rgb")
29
+ ? `${color.substring(0, color.length - 1)}, 0.2)`
30
+ : hexToRGBA(color, 0.2)
31
+ }
27
32
  let style = ""
28
- style += `--accent-bg-color:${hexToRGBA(color, 0.2)};`
29
- style += `--accent-border-color:${hexToRGBA(color, 0.2)};`
33
+ style += `--accent-bg-color:${color};`
34
+ style += `--accent-border-color:${color};`
30
35
  return style
31
36
  }
32
37
  </script>