@nexxtmove/ui 0.1.32 → 0.1.33
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.d.ts +24 -4
- package/dist/index.js +1074 -979
- package/dist/nuxt.js +8 -7
- package/package.json +1 -1
- package/src/components/Pagination/Pagination.vue +93 -0
- package/src/components.json +1 -0
- package/src/index.ts +1 -0
package/dist/nuxt.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineNuxtModule as c, addComponent as s, addTemplate as a } from "@nuxt/kit";
|
|
2
|
-
const i = "components/AnimatedNumber/AnimatedNumber.vue", m = "components/Avatar/Avatar.vue", x = "components/Button/Button.vue", u = "components/Calendar/Calendar.vue", p = "components/Checkbox/Checkbox.vue", l = "components/Chip/Chip.vue", r = "components/CustomerJourneyTile/CustomerJourneyTile.vue", d = "components/DatePicker/DatePicker.vue", v = "components/DropdownButton/DropdownButton.vue", N = "components/Header/Header.vue", T = "components/Icon/Icon.vue", C = "components/InfoBlock/InfoBlock.vue", S = "components/ProgressBar/ProgressBar.vue",
|
|
2
|
+
const i = "components/AnimatedNumber/AnimatedNumber.vue", m = "components/Avatar/Avatar.vue", x = "components/Button/Button.vue", u = "components/Calendar/Calendar.vue", p = "components/Checkbox/Checkbox.vue", l = "components/Chip/Chip.vue", r = "components/CustomerJourneyTile/CustomerJourneyTile.vue", d = "components/DatePicker/DatePicker.vue", v = "components/DropdownButton/DropdownButton.vue", N = "components/Header/Header.vue", T = "components/Icon/Icon.vue", C = "components/InfoBlock/InfoBlock.vue", S = "components/Pagination/Pagination.vue", b = "components/ProgressBar/ProgressBar.vue", f = "components/SocialIcons/SocialIcons.vue", h = "components/SocialMediaCustomTemplate/SocialMediaCustomTemplate.vue", P = "components/SocialMediaTemplate/SocialMediaTemplate.vue", k = "components/SocialMediaType/SocialMediaType.vue", B = "components/StepperHeader/StepperHeader.vue", M = "components/Table/Table.vue", I = "components/TimelineEvent/TimelineEvent.vue", g = "components/TimelinePhaseblock/TimelinePhaseblock.vue", y = "components/Tooltip/Tooltip.vue", A = {
|
|
3
3
|
NexxtAnimatedNumber: i,
|
|
4
4
|
NexxtAvatar: m,
|
|
5
5
|
NexxtButton: x,
|
|
@@ -12,15 +12,16 @@ const i = "components/AnimatedNumber/AnimatedNumber.vue", m = "components/Avatar
|
|
|
12
12
|
NexxtHeader: N,
|
|
13
13
|
NexxtIcon: T,
|
|
14
14
|
NexxtInfoBlock: C,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
NexxtPagination: S,
|
|
16
|
+
NexxtProgressBar: b,
|
|
17
|
+
NexxtSocialIcons: f,
|
|
18
|
+
NexxtSocialMediaCustomTemplate: h,
|
|
19
|
+
NexxtSocialMediaTemplate: P,
|
|
19
20
|
NexxtSocialMediaType: k,
|
|
20
21
|
NexxtStepperHeader: B,
|
|
21
22
|
NexxtTable: M,
|
|
22
|
-
NexxtTimelineEvent:
|
|
23
|
-
NexxtTimelinePhaseblock:
|
|
23
|
+
NexxtTimelineEvent: I,
|
|
24
|
+
NexxtTimelinePhaseblock: g,
|
|
24
25
|
NexxtTooltip: y
|
|
25
26
|
}, H = c({
|
|
26
27
|
meta: {
|
package/package.json
CHANGED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import NexxtIcon from '../Icon/Icon.vue'
|
|
3
|
+
import {
|
|
4
|
+
PaginationEllipsis,
|
|
5
|
+
PaginationFirst,
|
|
6
|
+
PaginationLast,
|
|
7
|
+
PaginationList,
|
|
8
|
+
PaginationListItem,
|
|
9
|
+
PaginationNext,
|
|
10
|
+
PaginationPrev,
|
|
11
|
+
PaginationRoot,
|
|
12
|
+
} from 'reka-ui'
|
|
13
|
+
|
|
14
|
+
interface NexxtPaginationProps {
|
|
15
|
+
total: number
|
|
16
|
+
itemsPerPage?: number
|
|
17
|
+
siblingCount?: number
|
|
18
|
+
showEdges?: boolean
|
|
19
|
+
disabled?: boolean
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
defineOptions({ name: 'NexxtPagination' })
|
|
23
|
+
|
|
24
|
+
const page = defineModel<number>('page', { default: 1 })
|
|
25
|
+
|
|
26
|
+
const {
|
|
27
|
+
total,
|
|
28
|
+
itemsPerPage = 10,
|
|
29
|
+
siblingCount = 1,
|
|
30
|
+
showEdges = true,
|
|
31
|
+
disabled = false,
|
|
32
|
+
} = defineProps<NexxtPaginationProps>()
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<template>
|
|
36
|
+
<PaginationRoot
|
|
37
|
+
:total="total"
|
|
38
|
+
:items-per-page="itemsPerPage"
|
|
39
|
+
:sibling-count="siblingCount"
|
|
40
|
+
v-model:page="page"
|
|
41
|
+
:show-edges="showEdges"
|
|
42
|
+
>
|
|
43
|
+
<PaginationList
|
|
44
|
+
v-slot="{ items }"
|
|
45
|
+
class="flex items-center gap-1 text-gray-700 transition"
|
|
46
|
+
:class="{ 'pointer-events-none opacity-50': disabled }"
|
|
47
|
+
>
|
|
48
|
+
<PaginationFirst
|
|
49
|
+
class="flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-transparent transition hover:bg-cornflower-blue-50 disabled:cursor-not-allowed disabled:opacity-50"
|
|
50
|
+
:disabled="disabled"
|
|
51
|
+
>
|
|
52
|
+
<NexxtIcon name="angles-left" />
|
|
53
|
+
</PaginationFirst>
|
|
54
|
+
<PaginationPrev
|
|
55
|
+
class="mr-4 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-transparent transition hover:bg-cornflower-blue-50 disabled:cursor-not-allowed disabled:opacity-50"
|
|
56
|
+
:disabled="disabled"
|
|
57
|
+
>
|
|
58
|
+
<NexxtIcon name="chevron-left" />
|
|
59
|
+
</PaginationPrev>
|
|
60
|
+
<template v-for="(page, index) in items">
|
|
61
|
+
<PaginationListItem
|
|
62
|
+
v-if="page.type === 'page'"
|
|
63
|
+
:key="index"
|
|
64
|
+
:value="page.value"
|
|
65
|
+
:disabled="disabled"
|
|
66
|
+
class="h-8 w-8 cursor-pointer rounded-lg border border-gray-200 transition hover:bg-cornflower-blue-50 disabled:cursor-not-allowed data-selected:border-cornflower-blue-500 data-selected:bg-cornflower-blue-500 data-selected:text-white data-selected:shadow-sm"
|
|
67
|
+
>
|
|
68
|
+
{{ page.value }}
|
|
69
|
+
</PaginationListItem>
|
|
70
|
+
<PaginationEllipsis
|
|
71
|
+
v-else
|
|
72
|
+
:key="page.type"
|
|
73
|
+
:index="index"
|
|
74
|
+
class="flex h-8 w-8 items-center justify-center"
|
|
75
|
+
>
|
|
76
|
+
…
|
|
77
|
+
</PaginationEllipsis>
|
|
78
|
+
</template>
|
|
79
|
+
<PaginationNext
|
|
80
|
+
class="ml-4 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-transparent transition hover:bg-cornflower-blue-50 disabled:cursor-not-allowed disabled:opacity-50"
|
|
81
|
+
:disabled="disabled"
|
|
82
|
+
>
|
|
83
|
+
<NexxtIcon name="chevron-right" />
|
|
84
|
+
</PaginationNext>
|
|
85
|
+
<PaginationLast
|
|
86
|
+
class="flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg bg-transparent transition hover:bg-cornflower-blue-50 disabled:cursor-not-allowed disabled:opacity-50"
|
|
87
|
+
:disabled="disabled"
|
|
88
|
+
>
|
|
89
|
+
<NexxtIcon name="angles-right" />
|
|
90
|
+
</PaginationLast>
|
|
91
|
+
</PaginationList>
|
|
92
|
+
</PaginationRoot>
|
|
93
|
+
</template>
|
package/src/components.json
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"NexxtHeader": "components/Header/Header.vue",
|
|
12
12
|
"NexxtIcon": "components/Icon/Icon.vue",
|
|
13
13
|
"NexxtInfoBlock": "components/InfoBlock/InfoBlock.vue",
|
|
14
|
+
"NexxtPagination": "components/Pagination/Pagination.vue",
|
|
14
15
|
"NexxtProgressBar": "components/ProgressBar/ProgressBar.vue",
|
|
15
16
|
"NexxtSocialIcons": "components/SocialIcons/SocialIcons.vue",
|
|
16
17
|
"NexxtSocialMediaCustomTemplate": "components/SocialMediaCustomTemplate/SocialMediaCustomTemplate.vue",
|
package/src/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ export { default as NexxtDropdownButton } from './components/DropdownButton/Drop
|
|
|
11
11
|
export { default as NexxtHeader } from './components/Header/Header.vue'
|
|
12
12
|
export { default as NexxtIcon } from './components/Icon/Icon.vue'
|
|
13
13
|
export { default as NexxtInfoBlock } from './components/InfoBlock/InfoBlock.vue'
|
|
14
|
+
export { default as NexxtPagination } from './components/Pagination/Pagination.vue'
|
|
14
15
|
export { default as NexxtProgressBar } from './components/ProgressBar/ProgressBar.vue'
|
|
15
16
|
export { default as NexxtSocialIcons } from './components/SocialIcons/SocialIcons.vue'
|
|
16
17
|
export { default as NexxtSocialMediaCustomTemplate } from './components/SocialMediaCustomTemplate/SocialMediaCustomTemplate.vue'
|