terminoir 0.13.1 → 0.14.0

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/README.md CHANGED
@@ -136,7 +136,7 @@ Import from **`terminoir`**:
136
136
  | `AppShell` | `header` + `sidebar` snippets; mobile drawer; `fitViewport` (main scrolls, for canvases), `flush`, `headerMode="mobile"`; `toggleSidebar()` / `closeMobileDrawer()` via `bind:this` |
137
137
  | `AppShellNavLink` | `href?`, `active`, nav row with active highlight |
138
138
  | `SettingsPage`, `SettingsSection` | Settings layout — intro + stacked glass section cards |
139
- | `EmptyState`, `Skeleton`, `Avatar`, `Kbd` | Presentation |
139
+ | `EmptyState`, `Skeleton`, `Avatar`, `Kbd` | Presentation; `EmptyState framed={false}` inside a Panel or card |
140
140
  | `FontPicker` | UI + code font lists, lazy `@fontsource`, persisted per `appId` |
141
141
  | `NavIcon` | `name`, optional `color` — Font Awesome 6 (`fa-*` or plain ids like `inbox`); host app loads FA CSS |
142
142
  | `IconField` | `bind:value` icon id picker (`ICON_PICKER_OPTIONS`); `compact` opens the grid in a popover |
package/css/glass.css CHANGED
@@ -157,7 +157,7 @@
157
157
  .glass-panel {
158
158
  background: var(--glass-panel-bg);
159
159
  border-radius: var(--radius-glass);
160
- padding: var(--space-5);
160
+ padding: var(--space-4);
161
161
  }
162
162
 
163
163
  .glass-popover {
package/css/shell.css CHANGED
@@ -4,12 +4,12 @@
4
4
  */
5
5
 
6
6
  .terminoir-shell {
7
- --terminoir-sidebar-width: 260px;
7
+ --terminoir-sidebar-width: 236px;
8
8
  --terminoir-sidebar-min: 180px;
9
9
  --terminoir-sidebar-max: 420px;
10
10
  --terminoir-shell-duration: var(--duration-normal);
11
11
  display: grid;
12
- grid-template-columns: var(--terminoir-sidebar-width, 260px) minmax(0, 1fr);
12
+ grid-template-columns: var(--terminoir-sidebar-width, 236px) minmax(0, 1fr);
13
13
  min-height: 100dvh;
14
14
  transition: grid-template-columns var(--terminoir-shell-duration) var(--ease-out-soft);
15
15
  }
@@ -34,12 +34,12 @@
34
34
  }
35
35
 
36
36
  .terminoir-shell__sidebar-inner {
37
- width: var(--terminoir-sidebar-width, 260px);
37
+ width: var(--terminoir-sidebar-width, 236px);
38
38
  height: 100%;
39
39
  min-height: 100dvh;
40
40
  display: flex;
41
41
  flex-direction: column;
42
- padding: var(--space-4);
42
+ padding: var(--space-3);
43
43
  gap: var(--space-2);
44
44
  }
45
45
 
@@ -48,7 +48,7 @@
48
48
  align-items: center;
49
49
  gap: var(--space-2);
50
50
  width: 100%;
51
- padding: 0.5rem 0.65rem;
51
+ padding: 0.35rem 0.6rem;
52
52
  border: 1px solid transparent;
53
53
  border-radius: var(--radius-control);
54
54
  background: transparent;
@@ -6,7 +6,7 @@
6
6
 
7
7
  let {
8
8
  appId = 'app',
9
- defaultWidth = 260,
9
+ defaultWidth = 236,
10
10
  minWidth = 180,
11
11
  maxWidth = 420,
12
12
  fitViewport = false,
@@ -97,7 +97,7 @@
97
97
  th {
98
98
  position: sticky;
99
99
  top: 0;
100
- padding: 0.55rem 0.85rem;
100
+ padding: 0.35rem 0.75rem;
101
101
  text-align: left;
102
102
  font-size: 0.6875rem;
103
103
  font-weight: 600;
@@ -109,7 +109,7 @@
109
109
  white-space: nowrap;
110
110
  }
111
111
  td {
112
- padding: 0.55rem 0.85rem;
112
+ padding: 0.35rem 0.75rem;
113
113
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
114
114
  vertical-align: middle;
115
115
  max-width: 0;
@@ -5,17 +5,20 @@
5
5
  let {
6
6
  title,
7
7
  description,
8
+ framed = true,
8
9
  class: className = '',
9
10
  children,
10
11
  }: {
11
12
  title: string;
12
13
  description?: string;
14
+ /** Glass panel around it. Set false inside a Panel or card, so the frames don't nest. */
15
+ framed?: boolean;
13
16
  class?: string;
14
17
  children?: Snippet;
15
18
  } = $props();
16
19
  </script>
17
20
 
18
- <div class={cn('terminoir-empty glass-panel', className)} role="status">
21
+ <div class={cn('terminoir-empty', framed ? 'glass-panel' : 'terminoir-empty--bare', className)} role="status">
19
22
  <h2 class="terminoir-empty__title">{title}</h2>
20
23
  {#if description}<p class="terminoir-empty__desc">{description}</p>{/if}
21
24
  {@render children?.()}
@@ -23,17 +26,21 @@
23
26
 
24
27
  <style>
25
28
  .terminoir-empty {
26
- padding: var(--space-8);
29
+ padding: var(--space-5) var(--space-4);
27
30
  text-align: center;
28
31
  }
29
32
 
33
+ .terminoir-empty--bare {
34
+ padding: var(--space-3) var(--space-2);
35
+ }
36
+
30
37
  .terminoir-empty__title {
31
38
  margin: 0 0 var(--space-2);
32
39
  font-size: 1.125rem;
33
40
  }
34
41
 
35
42
  .terminoir-empty__desc {
36
- margin: 0 0 var(--space-4);
43
+ margin: 0;
37
44
  color: var(--muted-foreground);
38
45
  }
39
46
  </style>
@@ -2,6 +2,8 @@ import type { Snippet } from 'svelte';
2
2
  type $$ComponentProps = {
3
3
  title: string;
4
4
  description?: string;
5
+ /** Glass panel around it. Set false inside a Panel or card, so the frames don't nest. */
6
+ framed?: boolean;
5
7
  class?: string;
6
8
  children?: Snippet;
7
9
  };
@@ -66,8 +66,8 @@
66
66
  align-items: center;
67
67
  gap: var(--space-3);
68
68
  width: 100%;
69
- min-height: 2.75rem;
70
- padding: 0.5rem 0.85rem;
69
+ min-height: 2.25rem;
70
+ padding: 0.35rem 0.75rem;
71
71
  box-sizing: border-box;
72
72
  }
73
73
  .terminoir-list-item__button {
@@ -113,7 +113,7 @@
113
113
  white-space: nowrap;
114
114
  }
115
115
  .terminoir-list-item__details {
116
- padding: var(--space-1) 0.85rem var(--space-4) calc(0.85rem + 1.25rem + var(--space-3));
116
+ padding: var(--space-1) 0.75rem var(--space-3) calc(0.75rem + 1.25rem + var(--space-3));
117
117
  }
118
118
  .terminoir-list-item__trailing {
119
119
  display: inline-flex;
@@ -26,10 +26,10 @@
26
26
  .terminoir-page {
27
27
  display: flex;
28
28
  flex-direction: column;
29
- gap: var(--space-6);
29
+ gap: var(--space-4);
30
30
  width: 100%;
31
31
  margin-inline: auto;
32
- padding: var(--space-6) var(--space-6) var(--space-10);
32
+ padding: var(--space-4) var(--space-5) var(--space-8);
33
33
  box-sizing: border-box;
34
34
  min-width: 0;
35
35
  }
@@ -46,8 +46,8 @@
46
46
  }
47
47
  @media (max-width: 700px) {
48
48
  .terminoir-page:not(.terminoir-page--fill) {
49
- padding: var(--space-4) var(--space-4) var(--space-8);
50
- gap: var(--space-5);
49
+ padding: var(--space-3) var(--space-3) var(--space-6);
50
+ gap: var(--space-4);
51
51
  }
52
52
  }
53
53
  </style>
@@ -77,6 +77,6 @@
77
77
  }
78
78
 
79
79
  .terminoir-tabs__panel {
80
- padding-top: var(--space-4);
80
+ padding-top: var(--space-3);
81
81
  }
82
82
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terminoir",
3
- "version": "0.13.1",
3
+ "version": "0.14.0",
4
4
  "description": "Terminoir — Liquid Glass design tokens and Svelte 5 UI components.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",