@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.
@@ -26,6 +26,7 @@
26
26
  </div>
27
27
 
28
28
  <style>.button-group {
29
+ flex: none;
29
30
  display: inline-flex;
30
31
  align-items: center;
31
32
  }</style>
@@ -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;
@@ -63,6 +63,7 @@
63
63
  </div>
64
64
 
65
65
  <style>.select-button-group {
66
+ flex: none;
66
67
  display: inline-flex;
67
68
  align-items: center;
68
69
  margin: var(--sui-focus-ring-width);
@@ -83,6 +83,7 @@
83
83
  </div>
84
84
 
85
85
  <style>.split-button {
86
+ flex: none;
86
87
  display: inline-flex;
87
88
  margin: var(--sui-focus-ring-width);
88
89
  }
@@ -55,36 +55,34 @@
55
55
  };
56
56
  </script>
57
57
 
58
- <div role="none" class="wrapper">
59
- <Button
60
- {...restProps}
61
- bind:element={buttonElement}
62
- class="sui menu-button {className}"
63
- {hidden}
64
- {disabled}
65
- {label}
66
- {variant}
67
- {size}
68
- {iconic}
69
- aria-haspopup="menu"
70
- >
71
- {#snippet startIcon()}
72
- {@render _startIcon?.()}
73
- {/snippet}
74
- {#snippet children()}
75
- {@render _children?.()}
76
- {/snippet}
77
- {#snippet endIcon()}
78
- {#if _endIcon}
79
- {@render _endIcon()}
80
- {:else if iconic}
81
- <Icon name="more_vert" />
82
- {:else}
83
- <Icon name="arrow_drop_down" class="small-arrow" />
84
- {/if}
85
- {/snippet}
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}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/ui",
3
- "version": "0.26.0",
3
+ "version": "0.26.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {