@budibase/bbui 1.1.28 → 1.1.29
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.1.
|
|
4
|
+
"version": "1.1.29",
|
|
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.1.
|
|
41
|
+
"@budibase/string-templates": "^1.1.29",
|
|
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": "
|
|
88
|
+
"gitHead": "17638b7cf6b850d6cf472537f9334b9721875bc4"
|
|
89
89
|
}
|
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
}
|
|
85
85
|
:global([dir="ltr"] .spectrum-ActionButton .spectrum-Icon) {
|
|
86
86
|
margin-left: 0;
|
|
87
|
+
transition: color ease-out 130ms;
|
|
87
88
|
}
|
|
88
89
|
.is-selected:not(.spectrum-ActionButton--emphasized) {
|
|
89
90
|
background: var(--spectrum-global-color-gray-300);
|
|
@@ -92,4 +93,10 @@
|
|
|
92
93
|
padding: 0;
|
|
93
94
|
min-width: 0;
|
|
94
95
|
}
|
|
96
|
+
.spectrum-ActionButton--quiet {
|
|
97
|
+
padding: 0 8px;
|
|
98
|
+
}
|
|
99
|
+
.is-selected:not(.emphasized) .spectrum-Icon {
|
|
100
|
+
color: var(--spectrum-global-color-gray-900);
|
|
101
|
+
}
|
|
95
102
|
</style>
|
|
@@ -87,10 +87,15 @@
|
|
|
87
87
|
on:mousedown={onClick}
|
|
88
88
|
>
|
|
89
89
|
{#if fieldIcon}
|
|
90
|
-
<span class="option-
|
|
90
|
+
<span class="option-extra">
|
|
91
91
|
<Icon name={fieldIcon} />
|
|
92
92
|
</span>
|
|
93
93
|
{/if}
|
|
94
|
+
{#if fieldColour}
|
|
95
|
+
<span class="option-extra">
|
|
96
|
+
<StatusLight square color={fieldColour} />
|
|
97
|
+
</span>
|
|
98
|
+
{/if}
|
|
94
99
|
<span
|
|
95
100
|
class="spectrum-Picker-label"
|
|
96
101
|
class:is-placeholder={isPlaceholder}
|
|
@@ -108,11 +113,6 @@
|
|
|
108
113
|
<use xlink:href="#spectrum-icon-18-Alert" />
|
|
109
114
|
</svg>
|
|
110
115
|
{/if}
|
|
111
|
-
{#if fieldColour}
|
|
112
|
-
<span class="option-colour">
|
|
113
|
-
<StatusLight size="L" color={fieldColour} />
|
|
114
|
-
</span>
|
|
115
|
-
{/if}
|
|
116
116
|
<svg
|
|
117
117
|
class="spectrum-Icon spectrum-UIIcon-ChevronDown100 spectrum-Picker-menuIcon"
|
|
118
118
|
focusable="false"
|
|
@@ -166,10 +166,15 @@
|
|
|
166
166
|
on:click={() => onSelectOption(getOptionValue(option, idx))}
|
|
167
167
|
>
|
|
168
168
|
{#if getOptionIcon(option, idx)}
|
|
169
|
-
<span class="option-
|
|
169
|
+
<span class="option-extra">
|
|
170
170
|
<Icon name={getOptionIcon(option, idx)} />
|
|
171
171
|
</span>
|
|
172
172
|
{/if}
|
|
173
|
+
{#if getOptionColour(option, idx)}
|
|
174
|
+
<span class="option-extra">
|
|
175
|
+
<StatusLight square color={getOptionColour(option, idx)} />
|
|
176
|
+
</span>
|
|
177
|
+
{/if}
|
|
173
178
|
<span class="spectrum-Menu-itemLabel">
|
|
174
179
|
{getOptionLabel(option, idx)}
|
|
175
180
|
</span>
|
|
@@ -180,11 +185,6 @@
|
|
|
180
185
|
>
|
|
181
186
|
<use xlink:href="#spectrum-css-icon-Checkmark100" />
|
|
182
187
|
</svg>
|
|
183
|
-
{#if getOptionColour(option, idx)}
|
|
184
|
-
<span class="option-colour">
|
|
185
|
-
<StatusLight size="L" color={getOptionColour(option, idx)} />
|
|
186
|
-
</span>
|
|
187
|
-
{/if}
|
|
188
188
|
</li>
|
|
189
189
|
{/each}
|
|
190
190
|
{/if}
|
|
@@ -209,6 +209,9 @@
|
|
|
209
209
|
width: 100%;
|
|
210
210
|
box-shadow: none;
|
|
211
211
|
}
|
|
212
|
+
.spectrum-Picker-label.auto-width {
|
|
213
|
+
margin-right: var(--spacing-xs);
|
|
214
|
+
}
|
|
212
215
|
.spectrum-Picker-label:not(.auto-width) {
|
|
213
216
|
overflow: hidden;
|
|
214
217
|
text-overflow: ellipsis;
|
|
@@ -221,16 +224,16 @@
|
|
|
221
224
|
.spectrum-Picker-label.auto-width.is-placeholder {
|
|
222
225
|
padding-right: 2px;
|
|
223
226
|
}
|
|
227
|
+
.auto-width .spectrum-Menu-item {
|
|
228
|
+
padding-right: var(--spacing-xl);
|
|
229
|
+
}
|
|
224
230
|
|
|
225
231
|
/* Icon and colour alignment */
|
|
226
232
|
.spectrum-Menu-checkmark {
|
|
227
233
|
align-self: center;
|
|
228
234
|
margin-top: 0;
|
|
229
235
|
}
|
|
230
|
-
.option-
|
|
231
|
-
padding-left: 8px;
|
|
232
|
-
}
|
|
233
|
-
.option-icon {
|
|
236
|
+
.option-extra {
|
|
234
237
|
padding-right: 8px;
|
|
235
238
|
}
|
|
236
239
|
|
|
@@ -18,11 +18,16 @@
|
|
|
18
18
|
export let disabled = false
|
|
19
19
|
export let active = false
|
|
20
20
|
export let color = null
|
|
21
|
+
export let square = false
|
|
22
|
+
export let hoverable = false
|
|
21
23
|
</script>
|
|
22
24
|
|
|
23
25
|
<div
|
|
26
|
+
on:click
|
|
24
27
|
class="spectrum-StatusLight spectrum-StatusLight--size{size}"
|
|
25
28
|
class:custom={!!color}
|
|
29
|
+
class:square
|
|
30
|
+
class:hoverable
|
|
26
31
|
style={`--color: ${color};`}
|
|
27
32
|
class:spectrum-StatusLight--celery={celery}
|
|
28
33
|
class:spectrum-StatusLight--yellow={yellow}
|
|
@@ -54,6 +59,7 @@
|
|
|
54
59
|
min-height: 0;
|
|
55
60
|
padding-top: 0;
|
|
56
61
|
padding-bottom: 0;
|
|
62
|
+
transition: color ease-out 130ms;
|
|
57
63
|
}
|
|
58
64
|
.spectrum-StatusLight.withText::before {
|
|
59
65
|
margin-right: 10px;
|
|
@@ -61,4 +67,14 @@
|
|
|
61
67
|
.custom::before {
|
|
62
68
|
background: var(--color) !important;
|
|
63
69
|
}
|
|
70
|
+
.square::before {
|
|
71
|
+
width: 14px;
|
|
72
|
+
height: 14px;
|
|
73
|
+
border-radius: 4px;
|
|
74
|
+
margin: 0;
|
|
75
|
+
}
|
|
76
|
+
.hoverable:hover {
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
color: var(--spectrum-global-color-gray-900);
|
|
79
|
+
}
|
|
64
80
|
</style>
|