@budibase/bbui 1.0.105-alpha.21 → 1.0.105-alpha.24

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.0.105-alpha.21",
4
+ "version": "1.0.105-alpha.24",
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.0.105-alpha.21",
41
+ "@budibase/string-templates": "^1.0.105-alpha.24",
42
42
  "@spectrum-css/actionbutton": "^1.0.1",
43
43
  "@spectrum-css/actiongroup": "^1.0.1",
44
44
  "@spectrum-css/avatar": "^3.0.2",
@@ -84,5 +84,5 @@
84
84
  "svelte-flatpickr": "^3.2.3",
85
85
  "svelte-portal": "^1.0.0"
86
86
  },
87
- "gitHead": "9ca0d4f0bfbd9313451c3da656390b4641a75f17"
87
+ "gitHead": "9ad596936bd911558faefbfcfd036d5e59cc999e"
88
88
  }
@@ -1,8 +1,9 @@
1
1
  <script>
2
2
  export let wide = false
3
+ export let maxWidth = "80ch"
3
4
  </script>
4
5
 
5
- <div class:wide>
6
+ <div style="--max-width: {maxWidth}" class:wide>
6
7
  <slot />
7
8
  </div>
8
9
 
@@ -12,7 +13,7 @@
12
13
  flex-direction: column;
13
14
  justify-content: flex-start;
14
15
  align-items: stretch;
15
- max-width: 80ch;
16
+ max-width: var(--max-width);
16
17
  margin: 0 auto;
17
18
  padding: calc(var(--spacing-xl) * 2);
18
19
  min-height: calc(100% - var(--spacing-xl) * 4);
@@ -16,11 +16,11 @@
16
16
  easing: easing,
17
17
  })
18
18
 
19
- $: if (value) $progress = value
19
+ $: if (value || value === 0) $progress = value
20
20
  </script>
21
21
 
22
22
  <div
23
- class:spectrum-ProgressBar--indeterminate={!value}
23
+ class:spectrum-ProgressBar--indeterminate={!value && value !== 0}
24
24
  class:spectrum-ProgressBar--sideLabel={sideLabel}
25
25
  class="spectrum-ProgressBar spectrum-ProgressBar--size{size}"
26
26
  value={$progress}
@@ -28,7 +28,7 @@
28
28
  aria-valuenow={$progress}
29
29
  aria-valuemin="0"
30
30
  aria-valuemax="100"
31
- style={width ? `width: ${width}px;` : ""}
31
+ style={width ? `width: ${width};` : ""}
32
32
  >
33
33
  {#if $$slots}
34
34
  <div
@@ -37,7 +37,7 @@
37
37
  <slot />
38
38
  </div>
39
39
  {/if}
40
- {#if value}
40
+ {#if value || value === 0}
41
41
  <div
42
42
  class="spectrum-FieldLabel spectrum-ProgressBar-percentage spectrum-FieldLabel--size{size}"
43
43
  >
@@ -47,7 +47,7 @@
47
47
  <div class="spectrum-ProgressBar-track">
48
48
  <div
49
49
  class="spectrum-ProgressBar-fill"
50
- style={value ? `width: ${$progress}%` : ""}
50
+ style={value || value === 0 ? `width: ${$progress}%` : ""}
51
51
  />
52
52
  </div>
53
53
  <div class="spectrum-ProgressBar-label" hidden="" />
@@ -5,12 +5,14 @@
5
5
  export let serif = false
6
6
  export let weight = null
7
7
  export let textAlign = null
8
+ export let color = null
8
9
  </script>
9
10
 
10
11
  <p
11
12
  style={`
12
13
  ${weight ? `font-weight:${weight};` : ""}
13
14
  ${textAlign ? `text-align:${textAlign};` : ""}
15
+ ${color ? `color:${color};` : ""}
14
16
  `}
15
17
  class="spectrum-Body spectrum-Body--size{size}"
16
18
  class:spectrum-Body--serif={serif}
@@ -5,12 +5,13 @@
5
5
  export let size = "M"
6
6
  export let textAlign
7
7
  export let noPadding = false
8
+ export let weight = "default" // light, heavy, default
8
9
  </script>
9
10
 
10
11
  <h1
11
12
  style={textAlign ? `text-align:${textAlign}` : ``}
12
13
  class:noPadding
13
- class="spectrum-Heading spectrum-Heading--size{size}"
14
+ class="spectrum-Heading spectrum-Heading--size{size} spectrum-Heading--{weight}"
14
15
  >
15
16
  <slot />
16
17
  </h1>