@energysage/es-ds-components 5.6.1 → 5.7.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [5.7.0](https://github.com/EnergySage/es-ds/compare/es-ds-components-v5.6.2...es-ds-components-v5.7.0) (2026-06-11)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* enable EsStickyBar to float above page content ([#1771](https://github.com/EnergySage/es-ds/issues/1771)) ([08a420c](https://github.com/EnergySage/es-ds/commit/08a420c2d95ed52328c991346217b2955fe88995))
|
|
9
|
+
|
|
10
|
+
## [5.6.2](https://github.com/EnergySage/es-ds/compare/es-ds-components-v5.6.1...es-ds-components-v5.6.2) (2026-06-03)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* add missing orange line below EsMenuBar desktop flyout column headers ([#1769](https://github.com/EnergySage/es-ds/issues/1769)) ([1c91cda](https://github.com/EnergySage/es-ds/commit/1c91cda4d4b9a441bedebe977ffbd3113a850999))
|
|
16
|
+
|
|
3
17
|
## [5.6.1](https://github.com/EnergySage/es-ds/compare/es-ds-components-v5.6.0...es-ds-components-v5.6.1) (2026-06-03)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -16,7 +16,7 @@ withDefaults(defineProps<IProps>(), {
|
|
|
16
16
|
xl="3">
|
|
17
17
|
<h2
|
|
18
18
|
v-if="heading"
|
|
19
|
-
class="eyebrow">
|
|
19
|
+
class="es-menu-bar-flyout-column-heading eyebrow pb-50 position-relative">
|
|
20
20
|
{{ heading }}
|
|
21
21
|
</h2>
|
|
22
22
|
<navigation-menu-list class="list-unstyled">
|
|
@@ -24,3 +24,19 @@ withDefaults(defineProps<IProps>(), {
|
|
|
24
24
|
</navigation-menu-list>
|
|
25
25
|
</es-col>
|
|
26
26
|
</template>
|
|
27
|
+
|
|
28
|
+
<style lang="scss" scoped>
|
|
29
|
+
@use '@energysage/es-ds-styles/scss/variables';
|
|
30
|
+
|
|
31
|
+
.es-menu-bar-flyout-column-heading {
|
|
32
|
+
&::after {
|
|
33
|
+
background-color: variables.$warm-orange;
|
|
34
|
+
bottom: 0;
|
|
35
|
+
content: '';
|
|
36
|
+
height: 1px;
|
|
37
|
+
left: 0;
|
|
38
|
+
position: absolute;
|
|
39
|
+
width: 64px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
</style>
|
|
@@ -7,9 +7,13 @@ import {
|
|
|
7
7
|
} from '../utils/menu-bar';
|
|
8
8
|
|
|
9
9
|
interface IProps {
|
|
10
|
+
initialState?: 'static' | 'absolute';
|
|
11
|
+
transparentColor?: string;
|
|
10
12
|
transparentStartingAtBreakpoint?: 'lg' | 'xl' | 'xxl' | '';
|
|
11
13
|
}
|
|
12
|
-
withDefaults(defineProps<IProps>(), {
|
|
14
|
+
const props = withDefaults(defineProps<IProps>(), {
|
|
15
|
+
initialState: 'static',
|
|
16
|
+
transparentColor: 'transparent',
|
|
13
17
|
transparentStartingAtBreakpoint: '',
|
|
14
18
|
});
|
|
15
19
|
|
|
@@ -24,7 +28,7 @@ const emitter = useEsdsEvents();
|
|
|
24
28
|
// - fixed-visible: bar is pinned to the top of the viewport, visible
|
|
25
29
|
// - fixed-hidden: bar is pinned but translated off screen above the viewport
|
|
26
30
|
type BarState = 'static' | 'absolute' | 'fixed-visible' | 'fixed-hidden';
|
|
27
|
-
const barState = ref<BarState>(
|
|
31
|
+
const barState = ref<BarState>(props.initialState);
|
|
28
32
|
|
|
29
33
|
// ref to the bar element, used to read its rendered height
|
|
30
34
|
const bar = ref<HTMLElement | null>(null);
|
|
@@ -199,6 +203,7 @@ onUnmounted(() => {
|
|
|
199
203
|
<!-- holds the bar's space in normal flow when the bar is absolutely or fixed positioned -->
|
|
200
204
|
<div
|
|
201
205
|
v-if="barState !== 'static'"
|
|
206
|
+
:class="{ 'd-xl-none': initialState !== 'static' }"
|
|
202
207
|
:style="{ height: `${barHeight}px` }"
|
|
203
208
|
aria-hidden="true" />
|
|
204
209
|
</template>
|
|
@@ -224,7 +229,7 @@ $shadow: 0 0 6px 0 rgba(34, 38, 51, 0.2);
|
|
|
224
229
|
@each $bp in (lg, xl, xxl) {
|
|
225
230
|
&--transparent-from-#{$bp} {
|
|
226
231
|
@include breakpoints.media-breakpoint-up($bp) {
|
|
227
|
-
background-color:
|
|
232
|
+
background-color: v-bind(transparentColor);
|
|
228
233
|
box-shadow: none;
|
|
229
234
|
}
|
|
230
235
|
}
|