@sveltia/ui 0.26.0 → 0.26.1
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/components/button/button-group.svelte +1 -0
- package/dist/components/button/button.svelte +2 -0
- package/dist/components/button/select-button-group.svelte +1 -0
- package/dist/components/button/split-button.svelte +1 -0
- package/dist/components/menu/menu-button.svelte +28 -30
- package/package.json +1 -1
|
@@ -104,6 +104,7 @@
|
|
|
104
104
|
{/if}
|
|
105
105
|
|
|
106
106
|
<style>button {
|
|
107
|
+
flex: none;
|
|
107
108
|
display: inline-flex;
|
|
108
109
|
align-items: center;
|
|
109
110
|
gap: 4px;
|
|
@@ -257,6 +258,7 @@ button:global(.pill) {
|
|
|
257
258
|
padding: var(--sui-button-medium-pill-padding, 0 12px);
|
|
258
259
|
}
|
|
259
260
|
button:global(.flex) {
|
|
261
|
+
flex: auto;
|
|
260
262
|
width: -moz-available;
|
|
261
263
|
width: -webkit-fill-available;
|
|
262
264
|
width: stretch;
|
|
@@ -55,36 +55,34 @@
|
|
|
55
55
|
};
|
|
56
56
|
</script>
|
|
57
57
|
|
|
58
|
-
<
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
{
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
{#
|
|
78
|
-
{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
</Button>
|
|
87
|
-
</div>
|
|
58
|
+
<Button
|
|
59
|
+
{...restProps}
|
|
60
|
+
bind:element={buttonElement}
|
|
61
|
+
class="sui menu-button {className}"
|
|
62
|
+
{hidden}
|
|
63
|
+
{disabled}
|
|
64
|
+
{label}
|
|
65
|
+
{variant}
|
|
66
|
+
{size}
|
|
67
|
+
{iconic}
|
|
68
|
+
aria-haspopup="menu"
|
|
69
|
+
>
|
|
70
|
+
{#snippet startIcon()}
|
|
71
|
+
{@render _startIcon?.()}
|
|
72
|
+
{/snippet}
|
|
73
|
+
{#snippet children()}
|
|
74
|
+
{@render _children?.()}
|
|
75
|
+
{/snippet}
|
|
76
|
+
{#snippet endIcon()}
|
|
77
|
+
{#if _endIcon}
|
|
78
|
+
{@render _endIcon()}
|
|
79
|
+
{:else if iconic}
|
|
80
|
+
<Icon name="more_vert" />
|
|
81
|
+
{:else}
|
|
82
|
+
<Icon name="arrow_drop_down" class="small-arrow" />
|
|
83
|
+
{/if}
|
|
84
|
+
{/snippet}
|
|
85
|
+
</Button>
|
|
88
86
|
|
|
89
87
|
<Popup
|
|
90
88
|
anchor={buttonElement}
|