@budibase/bbui 1.3.15-alpha.0 → 1.3.15-alpha.3

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": "1.3.15-alpha.0",
4
+ "version": "1.3.15-alpha.3",
5
5
  "license": "MPL-2.0",
6
6
  "svelte": "src/index.js",
7
7
  "module": "dist/bbui.es.js",
@@ -38,7 +38,7 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@adobe/spectrum-css-workflow-icons": "^1.2.1",
41
- "@budibase/string-templates": "1.3.15-alpha.0",
41
+ "@budibase/string-templates": "1.3.15-alpha.3",
42
42
  "@spectrum-css/actionbutton": "^1.0.1",
43
43
  "@spectrum-css/actiongroup": "^1.0.1",
44
44
  "@spectrum-css/avatar": "^3.0.2",
@@ -85,5 +85,5 @@
85
85
  "svelte-flatpickr": "^3.2.3",
86
86
  "svelte-portal": "^1.0.0"
87
87
  },
88
- "gitHead": "38f3c6d1d713f5e1bd18fdd81bdffb9bf7d4f9d3"
88
+ "gitHead": "a1eafcef980f6ed36933a6d2953e35b0de82be51"
89
89
  }
@@ -4,10 +4,15 @@
4
4
 
5
5
  export let size = "M"
6
6
  export let tooltip = ""
7
+ export let muted
7
8
  </script>
8
9
 
9
10
  <TooltipWrapper {tooltip} {size}>
10
- <label for="" class={`spectrum-FieldLabel spectrum-FieldLabel--size${size}`}>
11
+ <label
12
+ class:muted
13
+ for=""
14
+ class={`spectrum-FieldLabel spectrum-FieldLabel--size${size}`}
15
+ >
11
16
  <slot />
12
17
  </label>
13
18
  </TooltipWrapper>
@@ -17,4 +22,8 @@
17
22
  padding: 0;
18
23
  white-space: nowrap;
19
24
  }
25
+
26
+ .muted {
27
+ opacity: 0.5;
28
+ }
20
29
  </style>
@@ -24,7 +24,6 @@
24
24
  export let secondaryAction = undefined
25
25
  export let secondaryButtonWarning = false
26
26
  export let dataCy = null
27
-
28
27
  const { hide, cancel } = getContext(Context.Modal)
29
28
  let loading = false
30
29
  $: confirmDisabled = disabled || loading
@@ -88,12 +87,11 @@
88
87
  <section class="spectrum-Dialog-content content-grid">
89
88
  <slot />
90
89
  </section>
91
- {#if showCancelButton || showConfirmButton}
90
+ {#if showCancelButton || showConfirmButton || $$slots.footer}
92
91
  <div
93
92
  class="spectrum-ButtonGroup spectrum-Dialog-buttonGroup spectrum-Dialog-buttonGroup--noFooter"
94
93
  >
95
94
  <slot name="footer" />
96
-
97
95
  {#if showSecondaryButton && secondaryButtonText && secondaryAction}
98
96
  <div class="secondary-action">
99
97
  <Button