inertiax-ui 0.0.7 → 0.0.9

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/Modal.svelte CHANGED
@@ -60,8 +60,18 @@
60
60
  </Frame>
61
61
  <nav>
62
62
  <button onclick={close} aria-label="Close modal">
63
- <div class="i-material-symbols-light:close-rounded">Close</div>
63
+ <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24">
64
+ <path d="M0 0h24v24H0z" fill="none" />
65
+ <path fill="currentColor" d="m6.4 18.308l-.708-.708l5.6-5.6l-5.6-5.6l.708-.708l5.6 5.6l5.6-5.6l.708.708l-5.6 5.6l5.6 5.6l-.708.708l-5.6-5.6z" />
66
+ </svg>
64
67
  </button>
65
68
  </nav>
66
69
  </div>
67
70
  </div>
71
+
72
+ <style>
73
+ button {
74
+ all: unset;
75
+ cursor: pointer;
76
+ }
77
+ </style>
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  A collection of Svelte components for [Inertia X](https://github.com/buhrmi/inertiax).
4
4
 
5
+ Demo: https://inertiax-ui.netlify.app
6
+
5
7
  ## Modal
6
8
 
7
9
  The Modal component displays an [Inertia X Frame](https://github.com/buhrmi/inertiax#frame-component) within a modal. Here you can see the included default style (dark.css), which renders as a bottom sheet on mobile, and centered on the page on desktop.
package/dark.css CHANGED
@@ -27,6 +27,21 @@
27
27
  justify-content: flex-end;
28
28
  }
29
29
 
30
+ .inx-modal {
31
+ display: grid;
32
+ grid-template-areas:
33
+ "header"
34
+ "main"
35
+ "footer";
36
+ grid-template-rows: auto 1fr auto;
37
+ width: 100%;
38
+ }
39
+
40
+
41
+ body:has(.inx-modal) {
42
+ overflow: hidden;
43
+ }
44
+
30
45
  .inx-modal nav button {
31
46
  font-size: 1.5rem;
32
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inertiax-ui",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "UI component library for Inertia X",
5
5
  "repository": {
6
6
  "type": "git",