@miozu/jera 0.6.0 → 0.6.2
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/package.json +1 -1
- package/src/components/feedback/ProgressBar.svelte +1 -0
- package/src/components/navigation/LeftBar.svelte +2 -1
- package/src/components/navigation/LeftBarItem.svelte +4 -4
- package/src/components/navigation/LeftBarPopover.svelte +2 -1
- package/src/components/navigation/LeftBarSection.svelte +9 -4
- package/src/components/overlays/Popover.svelte +7 -9
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@component LeftBar
|
|
3
3
|
|
|
4
4
|
A collapsible left sidebar with navigation sections, expandable groups, and hover popovers.
|
|
5
|
-
Exact 1:1 match with
|
|
5
|
+
Exact 1:1 match with dash.selify.ai WorkspaceSidebar styles.
|
|
6
6
|
|
|
7
7
|
@example Basic usage
|
|
8
8
|
<LeftBar
|
|
@@ -149,6 +149,7 @@
|
|
|
149
149
|
display: flex;
|
|
150
150
|
flex-direction: column;
|
|
151
151
|
background-color: var(--color-base00);
|
|
152
|
+
border-right: 1px solid color-mix(in srgb, var(--color-base03) 30%, transparent);
|
|
152
153
|
height: 100vh;
|
|
153
154
|
position: fixed;
|
|
154
155
|
left: 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@component LeftBarItem
|
|
3
3
|
|
|
4
4
|
A navigation item within LeftBar.
|
|
5
|
-
Exact 1:1 match with
|
|
5
|
+
Exact 1:1 match with dash.selify.ai WorkspaceSidebar nav-item styles.
|
|
6
6
|
|
|
7
7
|
@example Basic
|
|
8
8
|
<LeftBarItem href="/dashboard" icon={Home} label="Dashboard" active={isActive('/dashboard')} />
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
.expand-icon {
|
|
219
|
-
color: var(--color-
|
|
219
|
+
color: var(--color-base05);
|
|
220
220
|
flex-shrink: 0;
|
|
221
221
|
margin-left: auto;
|
|
222
222
|
transition: all 200ms;
|
|
@@ -243,8 +243,8 @@
|
|
|
243
243
|
display: block;
|
|
244
244
|
padding: 0.25rem 0.5rem;
|
|
245
245
|
font-size: 0.875rem;
|
|
246
|
-
color: var(--color-
|
|
247
|
-
transition:
|
|
246
|
+
color: var(--color-base05);
|
|
247
|
+
transition: all 150ms;
|
|
248
248
|
width: 100%;
|
|
249
249
|
text-align: left;
|
|
250
250
|
cursor: pointer;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@component LeftBarPopover
|
|
3
3
|
|
|
4
4
|
Hover popover for collapsed LeftBar showing subroutes.
|
|
5
|
-
Exact 1:1 match with
|
|
5
|
+
Exact 1:1 match with dash.selify.ai WorkspaceSidebar hover-popover styles.
|
|
6
6
|
|
|
7
7
|
@example
|
|
8
8
|
<LeftBarPopover
|
|
@@ -91,6 +91,7 @@
|
|
|
91
91
|
color: var(--color-base06);
|
|
92
92
|
text-transform: uppercase;
|
|
93
93
|
letter-spacing: 0.05em;
|
|
94
|
+
border-bottom: 1px solid color-mix(in srgb, var(--color-base03) 20%, transparent);
|
|
94
95
|
background-color: color-mix(in srgb, var(--color-base01) 50%, transparent);
|
|
95
96
|
}
|
|
96
97
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@component LeftBarSection
|
|
3
3
|
|
|
4
4
|
A section within LeftBar with optional title.
|
|
5
|
-
Exact 1:1 match with
|
|
5
|
+
Exact 1:1 match with dash.selify.ai WorkspaceSidebar section styles.
|
|
6
6
|
|
|
7
7
|
@example
|
|
8
8
|
<LeftBarSection title="Administration">
|
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
<div class="nav-section {className}">
|
|
28
28
|
{#if title && !isCollapsed}
|
|
29
29
|
<div class="section-header" transition:fade={{ duration: 150 }}>{title}</div>
|
|
30
|
+
{:else if title && isCollapsed}
|
|
31
|
+
<div class="section-divider"></div>
|
|
30
32
|
{/if}
|
|
31
33
|
<ul class="nav-list">
|
|
32
34
|
{@render children?.()}
|
|
@@ -40,12 +42,11 @@
|
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
.section-header {
|
|
43
|
-
padding: 0.
|
|
45
|
+
padding: 0.25rem 0.75rem;
|
|
44
46
|
margin-bottom: 0.25rem;
|
|
45
|
-
margin-top: 0.75rem;
|
|
46
47
|
font-size: 0.75rem;
|
|
47
48
|
font-weight: 600;
|
|
48
|
-
color: var(--color-
|
|
49
|
+
color: var(--color-base05);
|
|
49
50
|
text-align: left;
|
|
50
51
|
text-transform: uppercase;
|
|
51
52
|
letter-spacing: 0.05em;
|
|
@@ -53,6 +54,10 @@
|
|
|
53
54
|
overflow: hidden;
|
|
54
55
|
}
|
|
55
56
|
|
|
57
|
+
.section-divider {
|
|
58
|
+
margin: 0 0.75rem 0.5rem 0.75rem;
|
|
59
|
+
}
|
|
60
|
+
|
|
56
61
|
.nav-list {
|
|
57
62
|
display: flex;
|
|
58
63
|
flex-direction: column;
|
|
@@ -157,15 +157,13 @@
|
|
|
157
157
|
}
|
|
158
158
|
</script>
|
|
159
159
|
|
|
160
|
-
<!--
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
/>
|
|
168
|
-
{/if}
|
|
160
|
+
<!-- Window bindings for JS fallback (always rendered, handlers conditional) -->
|
|
161
|
+
<svelte:window
|
|
162
|
+
bind:innerWidth={windowWidth}
|
|
163
|
+
bind:innerHeight={windowHeight}
|
|
164
|
+
onscroll={!supportsAnchor && visible ? handleScroll : undefined}
|
|
165
|
+
onresize={!supportsAnchor && visible ? handleScroll : undefined}
|
|
166
|
+
/>
|
|
169
167
|
|
|
170
168
|
<div
|
|
171
169
|
class="popover-wrapper {className}"
|