@energysage/es-ds-components 3.2.0 → 3.2.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/components/es-button.vue
CHANGED
|
@@ -80,14 +80,15 @@ const getRootClasses = computed(() => {
|
|
|
80
80
|
const btnSize = props.size ? `btn-${props.size}` : 'btn-md';
|
|
81
81
|
return `btn ${btnVariant} ${btnInline} ${btnSize}`;
|
|
82
82
|
});
|
|
83
|
+
|
|
84
|
+
/*
|
|
85
|
+
<a> is needed for href because a root-relative link like /market/start/
|
|
86
|
+
that is passed to <nuxt-link :to="" /> will attempt to internally navigate
|
|
87
|
+
within a micro frontend, which will result in a 404
|
|
88
|
+
*/
|
|
83
89
|
</script>
|
|
84
90
|
|
|
85
91
|
<template>
|
|
86
|
-
<!--
|
|
87
|
-
<a> is needed for href because a root-relative link like /market/start/
|
|
88
|
-
that is passed to <nuxt-link :to="" /> will attempt to internally navigate
|
|
89
|
-
within a micro frontend, which will result in a 404
|
|
90
|
-
-->
|
|
91
92
|
<a
|
|
92
93
|
v-if="props.href"
|
|
93
94
|
:class="getRootClasses"
|
package/components/es-modal.vue
CHANGED
|
@@ -30,7 +30,14 @@ const modalPt = {
|
|
|
30
30
|
class: 'modal-title',
|
|
31
31
|
},
|
|
32
32
|
closeButton: {
|
|
33
|
-
class:
|
|
33
|
+
class: [
|
|
34
|
+
'close',
|
|
35
|
+
{
|
|
36
|
+
// if closable is true, keep the close button around (for accessibility, and to
|
|
37
|
+
// allow Escape to still close the modal), but hide it visually
|
|
38
|
+
'sr-only': !props.closable,
|
|
39
|
+
},
|
|
40
|
+
],
|
|
34
41
|
},
|
|
35
42
|
content: {
|
|
36
43
|
class: `modal-body ${props.bodyClass}`,
|
|
@@ -72,7 +79,6 @@ const getSizeClass = computed(() => {
|
|
|
72
79
|
modal
|
|
73
80
|
:class="getSizeClass"
|
|
74
81
|
:pt="modalPt"
|
|
75
|
-
:closable="closable"
|
|
76
82
|
dismissable-mask
|
|
77
83
|
@update:visible="onChange">
|
|
78
84
|
<template
|
|
@@ -3,9 +3,7 @@ import ProgressBar from 'primevue/progressbar';
|
|
|
3
3
|
|
|
4
4
|
const BASE_FONT_SIZE = 16;
|
|
5
5
|
const DEFAULT_BAR_HEIGHT = 2;
|
|
6
|
-
const DEFAULT_BORDER_WIDTH = 0.5;
|
|
7
6
|
const DEFAULT_CIRCLE_GLOW_SIZE = 4;
|
|
8
|
-
const DEFAULT_INSET_SHADOW_SIZE = 0.5;
|
|
9
7
|
const DIFF_CIRCLE_SIZE_FROM_BAR_HEIGHT_IN_PX = 4;
|
|
10
8
|
const DEFAULT_CIRCLE_DIMENSION = DEFAULT_BAR_HEIGHT + DIFF_CIRCLE_SIZE_FROM_BAR_HEIGHT_IN_PX;
|
|
11
9
|
|
|
@@ -57,15 +55,9 @@ const circleDimension = computed(
|
|
|
57
55
|
|
|
58
56
|
const circleDimensionPx = computed(() => `${circleDimension.value}px`);
|
|
59
57
|
const circleRightPx = computed(() => `${circleDimension.value * -0.5}px`);
|
|
60
|
-
const circleBorderWidthPx = computed(
|
|
61
|
-
() => `${(DEFAULT_BORDER_WIDTH * circleDimension.value) / DEFAULT_CIRCLE_DIMENSION}px`,
|
|
62
|
-
);
|
|
63
58
|
const circleGlowSizePx = computed(
|
|
64
59
|
() => `${(DEFAULT_CIRCLE_GLOW_SIZE * circleDimension.value) / DEFAULT_CIRCLE_DIMENSION}px`,
|
|
65
60
|
);
|
|
66
|
-
const circleInsetShadowSizePx = computed(
|
|
67
|
-
() => `${(DEFAULT_INSET_SHADOW_SIZE * circleDimension.value) / DEFAULT_CIRCLE_DIMENSION}px`,
|
|
68
|
-
);
|
|
69
61
|
|
|
70
62
|
const verticalContainerPaddingPx = computed(() =>
|
|
71
63
|
props.showCircle ? `${(circleDimension.value - barHeight.value) / 2}px` : '0',
|
|
@@ -100,10 +92,18 @@ const verticalContainerPaddingPx = computed(() =>
|
|
|
100
92
|
padding-top: v-bind(verticalContainerPaddingPx);
|
|
101
93
|
|
|
102
94
|
:deep(.progress-bar--with-circle::after) {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
95
|
+
/*
|
|
96
|
+
* using v-bind for this border width gets disappeared during npm run generate,
|
|
97
|
+
* so we need to hardcode it, and the radial background gradient makes it look
|
|
98
|
+
* good enough at larger sizes
|
|
99
|
+
*/
|
|
100
|
+
border: 0.5px solid variables.$warm-orange;
|
|
101
|
+
/*
|
|
102
|
+
* do not mix both an inset box shadow (has been converted to radial background gradient)
|
|
103
|
+
* with a non-inset box shadow while using v-bind, or you will get unexpected results
|
|
104
|
+
* after npm run generate
|
|
105
|
+
*/
|
|
106
|
+
box-shadow: 0 0 v-bind(circleGlowSizePx) variables.$warm-orange;
|
|
107
107
|
height: v-bind(circleDimensionPx);
|
|
108
108
|
right: v-bind(circleRightPx);
|
|
109
109
|
width: v-bind(circleDimensionPx);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@energysage/es-ds-components",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "An EnergySage Vue component library",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"author": "EnergySage",
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@energysage/es-ds-styles": "^3.2.
|
|
20
|
+
"@energysage/es-ds-styles": "^3.2.1",
|
|
21
21
|
"@nuxt/eslint": "^1.0.1",
|
|
22
22
|
"@nuxtjs/google-fonts": "^3.2.0",
|
|
23
23
|
"@vuelidate/core": "^2.0.3",
|