@neovici/cosmoz-bottom-bar 9.0.3 → 9.0.5
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/cosmoz-bottom-bar.js +4 -17
- package/dist/overflow.js +0 -3
- package/package.json +1 -1
|
@@ -26,17 +26,6 @@ const style = css `
|
|
|
26
26
|
z-index: 1;
|
|
27
27
|
|
|
28
28
|
--cosmoz-dropdown-anchor-spacing: 12px 6px;
|
|
29
|
-
--paper-button: {
|
|
30
|
-
background-color: inherit;
|
|
31
|
-
text-transform: none;
|
|
32
|
-
border: 0;
|
|
33
|
-
border-radius: 0;
|
|
34
|
-
font-size: inherit;
|
|
35
|
-
color: inherit;
|
|
36
|
-
font-weight: inherit;
|
|
37
|
-
margin: 0;
|
|
38
|
-
padding: 0;
|
|
39
|
-
};
|
|
40
29
|
}
|
|
41
30
|
|
|
42
31
|
:host([force-open]) {
|
|
@@ -147,9 +136,7 @@ const useMenuButtons = (host) => {
|
|
|
147
136
|
}))
|
|
148
137
|
.toSorted((a, b) => b.priority - a.priority), [allButtons]);
|
|
149
138
|
const { maxToolbarItems = 1 } = host;
|
|
150
|
-
const toolbarLimit = Math.min(maxToolbarItems, buttonStates.visible.size
|
|
151
|
-
? buttonStates.visible.size
|
|
152
|
-
: allButtons.length);
|
|
139
|
+
const toolbarLimit = Math.min(maxToolbarItems, buttonStates.visible.size);
|
|
153
140
|
useEffect(() => {
|
|
154
141
|
processedButtons.forEach(({ element, priority }, i) => {
|
|
155
142
|
const isVisible = i < toolbarLimit;
|
|
@@ -214,9 +201,9 @@ const CosmozBottomBar = (host) => {
|
|
|
214
201
|
/>
|
|
215
202
|
</svg>
|
|
216
203
|
${map(menuButtons, (menuButton) => html `
|
|
217
|
-
<
|
|
218
|
-
|
|
219
|
-
>
|
|
204
|
+
<button @click=${() => menuButton.element.click()}>
|
|
205
|
+
${menuButton.text}
|
|
206
|
+
</button>
|
|
220
207
|
`)}
|
|
221
208
|
</cosmoz-dropdown-menu>
|
|
222
209
|
<slot name="extra" id="extraSlot"></slot>
|
package/dist/overflow.js
CHANGED
package/package.json
CHANGED