@axium/client 0.9.6 → 0.9.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.
@@ -0,0 +1,30 @@
1
+ <script lang="ts">
2
+ const { v, latest }: { v: string; latest?: string | null } = $props();
3
+ </script>
4
+
5
+ <span class="version">{v}</span>
6
+
7
+ {#if latest}
8
+ <span class="latest">
9
+ {#if v == latest}
10
+ Latest
11
+ {:else}
12
+ <span class="version">{latest}</span> available
13
+ {/if}
14
+ </span>
15
+ {/if}
16
+
17
+ <style>
18
+ .latest {
19
+ font-size: 0.9em;
20
+ background-color: var(--bg-success);
21
+ padding: 0.25em 0.75em;
22
+ border-radius: 1em;
23
+ }
24
+
25
+ :global(h1 h2, h3, h4, h5, h6) {
26
+ .latest {
27
+ margin-left: 1em;
28
+ }
29
+ }
30
+ </style>
package/lib/index.ts CHANGED
@@ -16,4 +16,5 @@ export { default as Toast } from './Toast.svelte';
16
16
  export { default as Upload } from './Upload.svelte';
17
17
  export { default as UserCard } from './UserCard.svelte';
18
18
  export { default as UserMenu } from './UserMenu.svelte';
19
+ export { default as Version } from './Version.svelte';
19
20
  export { default as WithContextMenu } from './WithContextMenu.svelte';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/client",
3
- "version": "0.9.6",
3
+ "version": "0.9.8",
4
4
  "author": "James Prevett <jp@jamespre.dev>",
5
5
  "funding": {
6
6
  "type": "individual",
@@ -1,5 +1,6 @@
1
1
  .section {
2
2
  width: 50%;
3
+ min-width: fit-content;
3
4
  padding-top: 2em;
4
5
 
5
6
  /* This is causing duplicate separators when removing sessions/passkeys
@@ -37,15 +38,28 @@
37
38
  }
38
39
 
39
40
  .passkey {
40
- grid-template-columns: 1em 1em 1fr 1fr 1em 1em;
41
+ grid-template-columns: 1fr 1fr 1em 1em;
42
+
43
+ p:first-child {
44
+ display: grid;
45
+ grid-template-columns: 1em 1em 1fr;
46
+ align-items: center;
47
+ width: 100%;
48
+ gap: 1em;
49
+ text-wrap: nowrap;
50
+ }
41
51
 
42
52
  dfn:not(.disabled) {
43
53
  cursor: help;
44
54
  }
55
+
56
+ > button {
57
+ display: contents;
58
+ }
45
59
  }
46
60
 
47
61
  .session {
48
- grid-template-columns: 1fr 1fr 1fr 1em;
62
+ grid-template-columns: 10em 1fr 1fr 1em;
49
63
 
50
64
  .current {
51
65
  border-radius: 2em;
@@ -71,17 +85,25 @@
71
85
 
72
86
  .section {
73
87
  width: calc(100% - 2em);
88
+ min-width: unset;
74
89
  }
75
90
 
76
- .session.item {
77
- grid-template-columns: 1fr 2fr;
78
- gap: 1em 2em;
91
+ .item:is(.passkey, .session) {
92
+ display: flex;
93
+ flex-direction: column;
94
+ align-items: flex-start;
79
95
  padding-top: 1em;
80
96
 
81
97
  p {
82
98
  margin: 0;
83
99
  }
84
100
 
101
+ > button {
102
+ display: flex;
103
+ }
104
+ }
105
+
106
+ .item.session {
85
107
  .timestamp {
86
108
  grid-column: 2;
87
109
  text-align: right;
@@ -89,7 +111,6 @@
89
111
 
90
112
  .logout {
91
113
  margin-top: 0;
92
- display: flex;
93
114
  grid-row: 2;
94
115
  grid-column: 1;
95
116
  }