@functionalcms/svelte-components 4.2.11 → 4.2.12

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.
@@ -29,37 +29,31 @@
29
29
  let buttonCss = $derived(cn('hamburger-handle', css.buttonCss ?? ''));
30
30
 
31
31
  $inspect(isOpen);
32
- function toggleDrawer(){
32
+ function toggleDrawer() {
33
33
  isOpen = !isOpen;
34
34
  }
35
35
 
36
- const close = () => isOpen = false;
36
+ const close = () => (isOpen = false);
37
37
  </script>
38
38
 
39
- <Button
40
- type="button"
41
- isPrimary
42
- css={buttonCss}
43
- onclick={() => toggleDrawer()}
44
- >
45
- &#9776;
46
- </Button>
39
+ <Button type="button" isPrimary css={buttonCss} onclick={() => toggleDrawer()}>&#9776;</Button>
47
40
 
48
41
  <Drawer {placement} open={isOpen} clickAway={() => isOpen != isOpen}>
49
- <Button css="close" onclick={() => close()}>X</Button>
50
- <ListMenu {localPages} {css} onclick={() =>close()}>
51
- </ListMenu>
42
+ <div class="flex flex-row justify-between">
43
+ <ListMenu {localPages} {css} onclick={() => close()}></ListMenu>
44
+ <Button css="close" onclick={() => close()}>X</Button>
45
+ </div>
52
46
  </Drawer>
53
47
 
54
48
  <style>
55
49
  :global(#hamburger-menu) {
56
50
  z-index: 10001;
57
51
  }
58
- :global(.hamburger-handle){
52
+ :global(.hamburger-handle) {
59
53
  background: none !important;
60
54
  border: none !important;
61
55
  }
62
- :global(.btn.close){
56
+ :global(.btn.close) {
63
57
  position: fixed;
64
58
  top: var(--hamburger-menu-margin, 25px);
65
59
  right: var(--hamburger-menu-margin, 25px);
@@ -67,4 +61,3 @@
67
61
  border: none !important;
68
62
  }
69
63
  </style>
70
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "4.2.11",
3
+ "version": "4.2.12",
4
4
  "watch": {
5
5
  "build": {
6
6
  "patterns": [