@bagelink/vue 1.21.59 → 1.21.65
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/dist/{StructuredEditor-C2ftdWZ4.js → StructuredEditor-BIf9H7HF.js} +1 -1
- package/dist/{StructuredEditor-DoffRqCu.cjs → StructuredEditor-DtTQZwmd.cjs} +1 -1
- package/dist/components/layout/AppSidebar.vue.d.ts.map +1 -1
- package/dist/components/layout/SidebarNavCaption.vue.d.ts.map +1 -1
- package/dist/core.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-CBPUG0cX.cjs → src-B6FCgVvh.cjs} +2 -2
- package/dist/{src-B4Vf81d1.js → src-DCsXMSMp.js} +2 -2
- package/dist/src.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/layout/AppSidebar.vue +2 -3
- package/src/components/layout/SidebarNavCaption.vue +20 -17
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bagelink/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.21.
|
|
4
|
+
"version": "1.21.65",
|
|
5
5
|
"description": "Bagel core sdk packages",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Bagel Studio",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@types/signature_pad": "^4.0.0",
|
|
64
64
|
"vue": "^3.5.45",
|
|
65
65
|
"vue-component-type-helpers": "^2.2.12",
|
|
66
|
-
"@bagelink/sdk": "1.21.
|
|
66
|
+
"@bagelink/sdk": "1.21.65"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"@bagelink/sdk": "*",
|
|
@@ -90,11 +90,10 @@ watch(
|
|
|
90
90
|
() => {
|
|
91
91
|
if (!isMobile.value) {
|
|
92
92
|
isTransitioning.value = true
|
|
93
|
-
// Keep visual-open through
|
|
94
|
-
// (close ~680ms; open width-wait + height + fade ~940ms).
|
|
93
|
+
// Keep visual-open through the width tween + caption crossfade.
|
|
95
94
|
setTimeout(() => {
|
|
96
95
|
isTransitioning.value = false
|
|
97
|
-
},
|
|
96
|
+
}, 400)
|
|
98
97
|
}
|
|
99
98
|
}
|
|
100
99
|
)
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
/**
|
|
3
3
|
* Group caption for AppSidebar's `nav` slot.
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* Rule is absolute + opacity-only so it never slides mid-transition.
|
|
4
|
+
* Fixed height for both states — only a crossfade between label and rule,
|
|
5
|
+
* so icons don't shift when the sidebar collapses.
|
|
7
6
|
*/
|
|
8
7
|
</script>
|
|
9
8
|
|
|
@@ -18,25 +17,30 @@
|
|
|
18
17
|
.sidebar-nav-caption {
|
|
19
18
|
position: relative;
|
|
20
19
|
width: 100%;
|
|
21
|
-
|
|
22
|
-
viewports crush the caption to 0 instead of scrolling the nav. */
|
|
20
|
+
min-width: 0;
|
|
23
21
|
flex-shrink: 0;
|
|
22
|
+
height: 1.75rem;
|
|
24
23
|
overflow: hidden;
|
|
25
|
-
max-height: 2.5rem;
|
|
26
|
-
transition: max-height 0.36s cubic-bezier(0.4, 0, 0.2, 1) 0.36s;
|
|
27
24
|
}
|
|
28
25
|
|
|
29
26
|
.sidebar-nav-caption-label {
|
|
30
|
-
|
|
27
|
+
/* Absolute so nowrap text never sets intrinsic width (collapsed rail scroll). */
|
|
28
|
+
position: absolute;
|
|
29
|
+
inset: 0;
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
padding-inline: 0.75rem;
|
|
31
34
|
font-size: 0.6875rem;
|
|
32
35
|
line-height: 1;
|
|
33
36
|
letter-spacing: 0.04em;
|
|
34
37
|
text-transform: uppercase;
|
|
35
38
|
font-weight: 500;
|
|
36
39
|
opacity: 0.4;
|
|
37
|
-
padding: 0.75rem 0.75rem 0.25rem;
|
|
38
40
|
white-space: nowrap;
|
|
39
|
-
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
/* Open: after the rule is gone. */
|
|
43
|
+
transition: opacity 0.22s ease 0.12s;
|
|
40
44
|
}
|
|
41
45
|
|
|
42
46
|
.sidebar-nav-caption-rule {
|
|
@@ -48,20 +52,19 @@
|
|
|
48
52
|
background: currentColor;
|
|
49
53
|
opacity: 0;
|
|
50
54
|
transform: translate(-50%, -50%);
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
.app-sidebar.sidebar-collapsed .sidebar-nav-caption {
|
|
55
|
-
max-height: 0.9rem;
|
|
55
|
+
/* Open: hide first. */
|
|
56
|
+
transition: opacity 0.12s ease;
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
.app-sidebar.sidebar-collapsed .sidebar-nav-caption-label {
|
|
59
60
|
opacity: 0;
|
|
60
|
-
|
|
61
|
+
/* Close: fade first. */
|
|
62
|
+
transition: opacity 0.22s ease;
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
.app-sidebar.sidebar-collapsed .sidebar-nav-caption-rule {
|
|
64
66
|
opacity: 0.22;
|
|
65
|
-
|
|
67
|
+
/* Close: after the label is gone. */
|
|
68
|
+
transition: opacity 0.2s ease 0.22s;
|
|
66
69
|
}
|
|
67
70
|
</style>
|