Skip to content
Open
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
82fbd70
wip - pagination to reka
BGZStephen Nov 17, 2025
47e9175
WIP - reka component
BGZStephen Nov 17, 2025
4a340fc
WIP
BGZStephen Nov 17, 2025
2cd01ec
wip
BGZStephen Nov 17, 2025
30089f9
wip
BGZStephen Nov 17, 2025
4a80dd3
wip
BGZStephen Nov 17, 2025
755178d
wip
BGZStephen Nov 17, 2025
25894ee
wip
BGZStephen Nov 17, 2025
8931e52
wip
BGZStephen Nov 17, 2025
64e2e1d
wip
BGZStephen Nov 17, 2025
09b7ece
wip
BGZStephen Nov 17, 2025
ae5deea
fix sibling count
BGZStephen Nov 17, 2025
02e95f1
bolden
BGZStephen Nov 18, 2025
b69e46f
neaten up, remove duplicates
BGZStephen Nov 18, 2025
16ee339
add test file
BGZStephen Nov 18, 2025
d83fe58
fix linting
BGZStephen Nov 18, 2025
08c2cb2
linting errors, fix tests
BGZStephen Nov 18, 2025
59c6ddb
lint
BGZStephen Nov 18, 2025
a753ff5
remove flakey
BGZStephen Nov 18, 2025
c525b2f
Merge branch 'master' into DES-321-pagination
BGZStephen Nov 18, 2025
d3b8359
Merge branch 'master' into DES-321-pagination
BGZStephen Nov 18, 2025
d38923c
Merge branch 'master' into DES-321-pagination
BGZStephen Nov 18, 2025
29c6c1d
fixup tests
BGZStephen Nov 18, 2025
0454dab
Merge branch 'DES-321-pagination' of github.com:n8n-io/n8n into DES-3…
BGZStephen Nov 18, 2025
c538506
update snapshots
BGZStephen Nov 18, 2025
2f52886
remove unused
BGZStephen Nov 20, 2025
4cf9a79
add v2 component
BGZStephen Nov 20, 2025
b9ea8b9
reset pagination with master
BGZStephen Nov 20, 2025
f0bbf1d
Merge branch 'DES-321-pagination' of github.com:n8n-io/n8n into DES-3…
BGZStephen Nov 20, 2025
543fab2
lint
BGZStephen Nov 20, 2025
82f1d37
reset
BGZStephen Nov 20, 2025
9bbb763
add story
BGZStephen Nov 21, 2025
d957d13
extract types, neaten up
BGZStephen Nov 21, 2025
ee36825
to css
BGZStephen Nov 21, 2025
566ca5b
add markdown
BGZStephen Nov 21, 2025
942302d
tests
BGZStephen Nov 21, 2025
39aa959
lint
BGZStephen Nov 24, 2025
9954e97
pr comments
BGZStephen Nov 24, 2025
d3807f7
remove tests matching functionality that wasn't there
BGZStephen Nov 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
import type { Meta, StoryObj } from '@storybook/vue3-vite';
import { ref } from 'vue';

import Pagination from './Pagination.vue';

const meta = {
title: 'Design system v3/Pagination',
component: Pagination,
parameters: {
docs: {
source: { type: 'dynamic' },
},
},
} satisfies Meta<typeof Pagination>;

export default meta;

type Story = StoryObj<typeof meta>;

export const Default: Story = {
render: (args) => ({
components: { Pagination },
setup() {
const currentPage = ref(args.currentPage ?? 1);
return { args, currentPage };
},
template: `
<div style="padding: 40px;">
<Pagination
:current-page="currentPage"
:page-size="args.pageSize"
:total="args.total"
@update:current-page="(page) => currentPage = page"
/>
</div>
`,
}),
args: {
currentPage: 1,
pageSize: 10,
total: 100,
},
};

export const ManyPages: Story = {
render: (args) => ({
components: { Pagination },
setup() {
const currentPage = ref(args.currentPage ?? 1);
return { args, currentPage };
},
template: `
<div style="padding: 40px;">
<Pagination
:current-page="currentPage"
:page-size="args.pageSize"
:total="args.total"
@update:current-page="(page) => currentPage = page"
/>
</div>
`,
}),
args: {
currentPage: 1,
pageSize: 10,
total: 500,
},
};

export const SmallPageSize: Story = {
render: (args) => ({
components: { Pagination },
setup() {
const currentPage = ref(args.currentPage ?? 1);
return { args, currentPage };
},
template: `
<div style="padding: 40px;">
<Pagination
:current-page="currentPage"
:page-size="args.pageSize"
:total="args.total"
@update:current-page="(page) => currentPage = page"
/>
</div>
`,
}),
args: {
currentPage: 1,
pageSize: 5,
total: 50,
},
};
Loading
Loading