@namelivia/vue-components 4.5.1 → 4.6.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/dist/index.esm.js +860 -931
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +865 -936
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Badge/Badge.vue +3 -7
- package/src/Buttons/DangerButton/DangerButton.vue +5 -13
- package/src/Buttons/RegularButton/RegularButton.vue +24 -28
- package/src/Buttons/ResetButton/ResetButton.vue +3 -7
- package/src/Buttons/SecondaryButton/SecondaryButton.vue +5 -13
- package/src/Buttons/SubmitButton/SubmitButton.vue +4 -12
- package/src/Card/Card.vue +13 -19
- package/src/Card/CardBody.vue +4 -9
- package/src/Card/CardImage.vue +17 -24
- package/src/CardGrid/CardGrid.vue +2 -5
- package/src/Container/Container.vue +2 -5
- package/src/Icons/CalendarIcon/CalendarIcon.vue +10 -13
- package/src/Icons/CreateIcon/CreateIcon.vue +10 -13
- package/src/Icons/DropIcon/DropIcon.vue +10 -13
- package/src/Icons/SaveIcon/SaveIcon.vue +10 -13
- package/src/Icons/SkullIcon/SkullIcon.vue +10 -13
- package/src/Inputs/CheckBoxInput/CheckBoxInput.vue +9 -27
- package/src/Inputs/ImageInput/ImageInput.vue +10 -30
- package/src/Inputs/NumberInput/NumberInput.vue +12 -37
- package/src/Inputs/ResizeImageUpload/ResizeImageUpload.vue +28 -50
- package/src/Inputs/Selector/Selector.vue +27 -52
- package/src/Inputs/TextInput/TextInput.vue +10 -31
- package/src/Loading/Loading.vue +3 -7
- package/src/Modal/Modal.vue +9 -16
- package/src/Navbar/MobileMenuButton.vue +5 -17
- package/src/Navbar/MobileNavigationLink.vue +9 -27
- package/src/Navbar/MobileNavigationLinks.vue +6 -19
- package/src/Navbar/Navbar.vue +22 -53
- package/src/Navbar/NavbarTitle.vue +7 -19
- package/src/Navbar/NavigationLink.vue +9 -27
- package/src/Navbar/NavigationLinks.vue +5 -15
- package/src/Navbar/RightContent.vue +9 -24
- package/src/Pagination/Pagination.vue +8 -14
- package/src/RangeView/RangeView.vue +3 -7
- package/src/SectionTitle/SectionTitle.vue +5 -9
- package/src/Spinner/Spinner.vue +2 -5
- package/src/StyledTable/StyledTable.vue +2 -5
- package/src/Temperature/Temperature.vue +11 -22
package/src/Spinner/Spinner.vue
CHANGED
|
@@ -4,11 +4,8 @@ div(class="spinner" role="status")
|
|
|
4
4
|
| Please wait...
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
|
-
<script
|
|
8
|
-
|
|
9
|
-
export default defineComponent({
|
|
10
|
-
name: "Spinner",
|
|
11
|
-
});
|
|
7
|
+
<script setup>
|
|
8
|
+
// No logic needed
|
|
12
9
|
</script>
|
|
13
10
|
|
|
14
11
|
<style scoped>
|
|
@@ -12,28 +12,17 @@
|
|
|
12
12
|
.max
|
|
13
13
|
| {{maxFormatted}} ℃
|
|
14
14
|
</template>
|
|
15
|
-
<script
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
minFormatted() {
|
|
27
|
-
return this.min.toFixed(2);
|
|
28
|
-
},
|
|
29
|
-
avgFormatted() {
|
|
30
|
-
return this.avg.toFixed(2);
|
|
31
|
-
},
|
|
32
|
-
maxFormatted() {
|
|
33
|
-
return this.max.toFixed(2);
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
})
|
|
15
|
+
<script setup>
|
|
16
|
+
import { computed } from 'vue';
|
|
17
|
+
const props = defineProps({
|
|
18
|
+
title: String,
|
|
19
|
+
min: Number,
|
|
20
|
+
max: Number,
|
|
21
|
+
avg: Number
|
|
22
|
+
});
|
|
23
|
+
const minFormatted = computed(() => props.min.toFixed(2));
|
|
24
|
+
const avgFormatted = computed(() => props.avg.toFixed(2));
|
|
25
|
+
const maxFormatted = computed(() => props.max.toFixed(2));
|
|
37
26
|
</script>
|
|
38
27
|
<style scoped>
|
|
39
28
|
.wrapper {
|