@namelivia/vue-components 4.5.1 → 4.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/dist/index.esm.js +1074 -1076
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1103 -1104
- 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/InfiniteScroll/InfiniteScroll.cy.js +7 -0
- package/src/InfiniteScroll/InfiniteScroll.stories.js +38 -0
- package/src/InfiniteScroll/InfiniteScroll.vue +59 -0
- 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/index.js +1 -0
- package/styles/index.css +2 -0
|
@@ -8,30 +8,15 @@ div(
|
|
|
8
8
|
:alt="avatarAlt"
|
|
9
9
|
)
|
|
10
10
|
</template>
|
|
11
|
-
<script
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
type: String,
|
|
21
|
-
},
|
|
22
|
-
currentUserName: {
|
|
23
|
-
type: String,
|
|
24
|
-
},
|
|
25
|
-
currentUserPicture: {
|
|
26
|
-
type: String,
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
computed: {
|
|
30
|
-
avatarAlt: function () {
|
|
31
|
-
return this.currentUserName + ` (${this.currentUserEmail})`
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
})
|
|
11
|
+
<script setup>
|
|
12
|
+
import { computed } from 'vue';
|
|
13
|
+
const props = defineProps({
|
|
14
|
+
locale: String,
|
|
15
|
+
currentUserEmail: String,
|
|
16
|
+
currentUserName: String,
|
|
17
|
+
currentUserPicture: String,
|
|
18
|
+
});
|
|
19
|
+
const avatarAlt = computed(() => `${props.currentUserName} (${props.currentUserEmail})`);
|
|
35
20
|
</script>
|
|
36
21
|
<style scoped>
|
|
37
22
|
.action-container {
|
|
@@ -6,21 +6,15 @@ div(class="pagination-container")
|
|
|
6
6
|
regular-button(:text="nextLabel")
|
|
7
7
|
</template>
|
|
8
8
|
|
|
9
|
-
<script
|
|
9
|
+
<script setup>
|
|
10
10
|
import { default as RegularButton } from '../Buttons/RegularButton/RegularButton.vue';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
previousLink: String,
|
|
19
|
-
nextLink: String,
|
|
20
|
-
},
|
|
21
|
-
components: {
|
|
22
|
-
RegularButton,
|
|
23
|
-
},
|
|
11
|
+
|
|
12
|
+
defineProps({
|
|
13
|
+
previousLabel: String,
|
|
14
|
+
nextLabel: String,
|
|
15
|
+
showPrevious: Boolean,
|
|
16
|
+
previousLink: String,
|
|
17
|
+
nextLink: String,
|
|
24
18
|
});
|
|
25
19
|
</script>
|
|
26
20
|
|
|
@@ -7,13 +7,9 @@ div.ranges-editor
|
|
|
7
7
|
span.label {{ range.label }}
|
|
8
8
|
</template>
|
|
9
9
|
|
|
10
|
-
<script
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
name: "RangeView",
|
|
14
|
-
props: {
|
|
15
|
-
ranges: Array,
|
|
16
|
-
},
|
|
10
|
+
<script setup>
|
|
11
|
+
defineProps({
|
|
12
|
+
ranges: Array,
|
|
17
13
|
});
|
|
18
14
|
</script>
|
|
19
15
|
|
|
@@ -2,15 +2,11 @@
|
|
|
2
2
|
h1(class="section-title") {{text}}
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
|
-
<script
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
text: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: ''
|
|
13
|
-
}
|
|
5
|
+
<script setup>
|
|
6
|
+
defineProps({
|
|
7
|
+
text: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: ''
|
|
14
10
|
}
|
|
15
11
|
});
|
|
16
12
|
</script>
|
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 {
|
package/src/index.js
CHANGED
|
@@ -29,3 +29,4 @@ export { default as SkullIcon } from './Icons/SkullIcon/SkullIcon.vue'
|
|
|
29
29
|
export { default as CalendarIcon } from './Icons/CalendarIcon/CalendarIcon.vue'
|
|
30
30
|
export { default as SaveIcon } from './Icons/SaveIcon/SaveIcon.vue'
|
|
31
31
|
export { default as CreateIcon } from './Icons/CreateIcon/CreateIcon.vue'
|
|
32
|
+
export { default as InfiniteScroll } from './InfiniteScroll/InfiniteScroll.vue'
|
package/styles/index.css
CHANGED