@enki-tek/fms-web-components 0.1.21 → 0.1.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,6 +6,7 @@ const DEFAULT_PAGE_COUNT = 5;
6
6
  export let noOfItems = 300;
7
7
  export let itemPerPage = 30;
8
8
  export let currentPage = 1;
9
+ export let size = "lg";
9
10
  let pageCount = Math.ceil(noOfItems / itemPerPage);
10
11
  let pagesToShow = pageCount > DEFAULT_PAGE_COUNT ? DEFAULT_PAGE_COUNT : pageCount;
11
12
  let pageNumbers = [];
@@ -48,7 +49,7 @@ function nextPage() {
48
49
  }
49
50
  </script>
50
51
 
51
- <Pagination size="lg" ariaLabel="Page navigation example">
52
+ <Pagination {size} ariaLabel="Page navigation example">
52
53
  <PaginationItem disabled={currentPage === 1} class="eradius custom-pagination-list">
53
54
  <PaginationLink previous href="#" class="custom-pagination-link-add" on:click={prevPage}
54
55
  ><Icon name="chevron-left" /></PaginationLink
@@ -4,6 +4,7 @@ declare const __propDef: {
4
4
  noOfItems?: number | undefined;
5
5
  itemPerPage?: number | undefined;
6
6
  currentPage?: number | undefined;
7
+ size?: string | undefined;
7
8
  };
8
9
  events: {
9
10
  pageChanged: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",