inertiax-ui 0.0.6 → 0.0.8

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
@@ -4,7 +4,7 @@ A collection of Svelte components for [Inertia X](https://github.com/buhrmi/iner
4
4
 
5
5
  ## Modal
6
6
 
7
- The Modal component displays an [Inertia X Frame](https://github.com/buhrmi/inertiax#frame-component) within a modal.
7
+ 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.
8
8
 
9
9
  ![dark.css demo](./dark.css.webp)
10
10
 
@@ -22,7 +22,7 @@ const modal = createModal({
22
22
 
23
23
  #### `modal` action
24
24
 
25
- The easiest way to create a modal is to use the `modal` action. This will automatically mount a Modal component in the document root.
25
+ Inertia X UI also ships with a `modal` action. This is a small wrapper for `createModal` and passes the `href` attribute as the `src` prop.
26
26
 
27
27
  ```svelte
28
28
  <script>
package/dark.css CHANGED
@@ -27,6 +27,16 @@
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
+
30
40
  .inx-modal nav button {
31
41
  font-size: 1.5rem;
32
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inertiax-ui",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "UI component library for Inertia X",
5
5
  "repository": {
6
6
  "type": "git",