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