@budibase/bbui 3.13.28 → 3.14.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/dist/bbui.mjs CHANGED
@@ -22885,13 +22885,13 @@ function create_fragment$1$(f) {
22885
22885
  function instance$1_(f, u, p) {
22886
22886
  let m, v, y, { size: k = "M" } = u, { name: S = "plus" } = u, { hidden: T = !1 } = u, { hoverable: O = !1 } = u, { disabled: R = !1 } = u, { color: L = void 0 } = u, { hoverColor: M = void 0 } = u, { tooltip: P = void 0 } = u, { weight: H = "regular" } = u;
22887
22887
  const j = {
22888
- XS: "0.75rem",
22889
- S: "1rem",
22890
- M: "1.25rem",
22891
- L: "1.5rem",
22892
- XL: "2rem",
22893
- XXL: "2.5rem",
22894
- XXXL: "5rem"
22888
+ XS: "14px",
22889
+ S: "16px",
22890
+ M: "18px",
22891
+ L: "22px",
22892
+ XL: "28px",
22893
+ XXL: "36px",
22894
+ XXXL: "72px"
22895
22895
  }, Y = (fe, le, _e) => {
22896
22896
  let we = `--size:${j[fe]};`;
22897
22897
  return le && (we += `--color:${le};`), _e && (we += `--hover-color:${_e};`), we;
@@ -27153,7 +27153,7 @@ function create_else_block_1$5(f) {
27153
27153
  return {
27154
27154
  c() {
27155
27155
  u = element("span"), p = element("img"), src_url_equal(p.src, m = /*fieldIcon*/
27156
- f[5]) || attr(p, "src", m), attr(p, "alt", "icon"), attr(p, "width", "15"), attr(p, "height", "15"), attr(u, "class", "option-extra icon field-icon svelte-gy7rxw");
27156
+ f[5]) || attr(p, "src", m), attr(p, "alt", "icon"), set_style(p, "height", "15px"), set_style(p, "width", "auto"), attr(u, "class", "option-extra icon field-icon svelte-gy7rxw");
27157
27157
  },
27158
27158
  m(v, y) {
27159
27159
  insert(v, u, y), append$1(u, p);
@@ -27479,7 +27479,7 @@ function create_if_block_8$3(f) {
27479
27479
  f[50],
27480
27480
  /*idx*/
27481
27481
  f[52]
27482
- )) || attr(u, "src", p), attr(u, "alt", "icon"), attr(u, "width", "15"), attr(u, "height", "15");
27482
+ )) || attr(u, "src", p), attr(u, "alt", "icon"), set_style(u, "height", "15px"), set_style(u, "width", "auto");
27483
27483
  },
27484
27484
  m(m, v) {
27485
27485
  insert(m, u, v);
@@ -32200,7 +32200,10 @@ function create_if_block_2$g(f) {
32200
32200
  /*icon*/
32201
32201
  f[3]
32202
32202
  ),
32203
- size: "M",
32203
+ size: (
32204
+ /*size*/
32205
+ f[4]
32206
+ ),
32204
32207
  color: `var(--spectrum-global-color-gray-${/*$$slots*/
32205
32208
  f[12].default ? 600 : 700})`
32206
32209
  }
@@ -32215,7 +32218,9 @@ function create_if_block_2$g(f) {
32215
32218
  const y = {};
32216
32219
  v & /*icon*/
32217
32220
  8 && (y.name = /*icon*/
32218
- m[3]), v & /*$$slots*/
32221
+ m[3]), v & /*size*/
32222
+ 16 && (y.size = /*size*/
32223
+ m[4]), v & /*$$slots*/
32219
32224
  4096 && (y.color = `var(--spectrum-global-color-gray-${/*$$slots*/
32220
32225
  m[12].default ? 600 : 700})`), u.$set(y);
32221
32226
  },
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.13.28",
4
+ "version": "3.14.0",
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": "de8a462d540b26a2040f4c8059d0a2395234c628"
109
+ "gitHead": "7ff8f5fc9480931c373b86dd573882841dd290d4"
110
110
  }
@@ -50,7 +50,7 @@
50
50
  {#if icon}
51
51
  <Icon
52
52
  name={icon}
53
- size="M"
53
+ {size}
54
54
  color={`var(--spectrum-global-color-gray-${$$slots.default ? 600 : 700})`}
55
55
  />
56
56
  {/if}
@@ -152,7 +152,7 @@
152
152
  </span>
153
153
  {:else}
154
154
  <span class="option-extra icon field-icon">
155
- <img src={fieldIcon} alt="icon" width="15" height="15" />
155
+ <img src={fieldIcon} alt="icon" style="height: 15px; width: auto;" />
156
156
  </span>
157
157
  {/if}
158
158
  {/if}
@@ -237,8 +237,7 @@
237
237
  <img
238
238
  src={getOptionIcon(option, idx)}
239
239
  alt="icon"
240
- width="15"
241
- height="15"
240
+ style="height: 15px; width: auto;"
242
241
  />
243
242
  {:else}
244
243
  <Icon
@@ -12,13 +12,13 @@
12
12
  export let weight: "regular" | "bold" | "fill" = "regular"
13
13
 
14
14
  const sizeMap = {
15
- XS: "0.75rem",
16
- S: "1rem",
17
- M: "1.25rem",
18
- L: "1.5rem",
19
- XL: "2rem",
20
- XXL: "2.5rem",
21
- XXXL: "5rem",
15
+ XS: "14px",
16
+ S: "16px",
17
+ M: "18px",
18
+ L: "22px",
19
+ XL: "28px",
20
+ XXL: "36px",
21
+ XXXL: "72px",
22
22
  }
23
23
 
24
24
  $: phosphorIconName = getPhosphorIcon(name)