@budibase/bbui 3.44.1 → 3.46.0

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": "v3.44.1",
4
+ "version": "v3.46.0",
5
5
  "license": "MPL-2.0",
6
6
  "module": "dist/bbui.mjs",
7
7
  "exports": {
@@ -21,7 +21,7 @@
21
21
  "@sveltejs/vite-plugin-svelte": "^6.1.3",
22
22
  "@types/sanitize-html": "^2.13.0",
23
23
  "vite-plugin-css-injected-by-js": "3.5.2",
24
- "vitest": "^4.1.8"
24
+ "vitest": "^5.0.0"
25
25
  },
26
26
  "keywords": [
27
27
  "svelte"
@@ -108,5 +108,5 @@
108
108
  }
109
109
  }
110
110
  },
111
- "gitHead": "1709761edbab48686390d5d2336283e31b0d1dce"
111
+ "gitHead": "1444a702ce29cf158b10c31d3f205fc84c463169"
112
112
  }
@@ -31,6 +31,7 @@
31
31
  export let secondaryButtonWarning: boolean = false
32
32
  export let custom: boolean = false
33
33
  export let disableCancelOnConfirm: boolean = false
34
+ export let compact: boolean = false
34
35
 
35
36
  const { hide, cancel } = getContext(Context.Modal)
36
37
 
@@ -72,6 +73,7 @@
72
73
  class:spectrum-Dialog--extraLarge={size === "XL"}
73
74
  class:no-grid={custom}
74
75
  class:noDivider={!showDivider}
76
+ class:compact
75
77
  style="position: relative;"
76
78
  role="dialog"
77
79
  tabindex="-1"
@@ -183,6 +185,10 @@
183
185
  border-bottom: 2px solid var(--spectrum-global-color-gray-200);
184
186
  }
185
187
 
188
+ .spectrum-Dialog.compact {
189
+ --spectrum-dialog-confirm-padding: 24px;
190
+ }
191
+
186
192
  .spectrum-Dialog-heading {
187
193
  font-size: 24px;
188
194
  }
@@ -1,25 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => {
3
- let r = {};
4
- for (var i in e) t(r, i, {
5
- get: e[i],
6
- enumerable: !0
7
- });
8
- return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
9
- }, c = (e, i, o, s) => {
10
- if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
11
- get: ((e) => i[e]).bind(null, d),
12
- enumerable: !(s = n(i, d)) || s.enumerable
13
- });
14
- return e;
15
- }, l = (n, r, a) => (a = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule ? t(a, "default", {
16
- value: n,
17
- enumerable: !0
18
- }) : a, n)), u = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
19
- if (typeof require < "u") return require.apply(this, arguments);
20
- throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
21
- }), d = /* @__PURE__ */ o(((e, t) => {
22
- t.exports = {};
23
- }));
24
- //#endregion
25
- export { l as a, u as i, o as n, s as r, d as t };