@haiilo/catalyst 2.0.0 → 2.0.2
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/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/index.cdn.js +3 -3
- package/dist/catalyst/index.esm.js +1 -1
- package/dist/catalyst/index.esm.js.map +1 -1
- package/dist/catalyst/p-fffa6ca0.entry.js +2 -0
- package/dist/catalyst/p-fffa6ca0.entry.js.map +1 -0
- package/dist/cjs/cat-alert_22.cjs.entry.js +2 -2
- package/dist/cjs/cat-alert_22.cjs.entry.js.map +1 -1
- package/dist/cjs/catalyst.cjs.js +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/cat-button/cat-button.js +3 -3
- package/dist/collection/components/cat-button/cat-button.js.map +1 -1
- package/dist/collection/components/cat-notification/cat-notification.js +2 -2
- package/dist/collection/components/cat-notification/cat-notification.js.map +1 -1
- package/dist/collection/components/cat-pagination/cat-pagination.js +3 -3
- package/dist/collection/components/cat-pagination/cat-pagination.js.map +1 -1
- package/dist/collection/index.cdn.js +3 -3
- package/dist/components/cat-button2.js +1 -1
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-pagination.js +2 -2
- package/dist/components/cat-pagination.js.map +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/index.js.map +1 -1
- package/dist/esm/cat-alert_22.entry.js +2 -2
- package/dist/esm/cat-alert_22.entry.js.map +1 -1
- package/dist/esm/catalyst.js +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/cat-button/cat-button.d.ts +1 -1
- package/dist/types/components/cat-notification/cat-notification.d.ts +11 -1
- package/dist/types/components.d.ts +2 -2
- package/package.json +2 -2
- package/dist/catalyst/p-167f01e8.entry.js +0 -2
- package/dist/catalyst/p-167f01e8.entry.js.map +0 -1
|
@@ -1996,7 +1996,7 @@ const CatPagination = class {
|
|
|
1996
1996
|
/**
|
|
1997
1997
|
* The current page.
|
|
1998
1998
|
*/
|
|
1999
|
-
this.page =
|
|
1999
|
+
this.page = 0;
|
|
2000
2000
|
/**
|
|
2001
2001
|
* The total number of pages.
|
|
2002
2002
|
*/
|
|
@@ -2079,7 +2079,7 @@ const CatPagination = class {
|
|
|
2079
2079
|
}
|
|
2080
2080
|
return this.pages.map((page, i) => [
|
|
2081
2081
|
i > 0 && this.pages[i - 1] !== page - 1 ? index.h("li", { class: "dots" }, "\u2026") : null,
|
|
2082
|
-
index.h("li", null, index.h("cat-button", { variant: this.variant, size: this.size, round: this.round, color: this.page === page ? 'primary' : undefined, active: this.page === page, a11yLabel: catIconRegistry.catI18nRegistry.t('pagination.page', { page: page + 1 }), a11yCurrent: this.page === page
|
|
2082
|
+
index.h("li", null, index.h("cat-button", { variant: this.variant, size: this.size, round: this.round, color: this.page === page ? 'primary' : undefined, active: this.page === page, a11yLabel: catIconRegistry.catI18nRegistry.t('pagination.page', { page: page + 1 }), a11yCurrent: this.page === page ? 'step' : undefined, onClick: () => (this.page = page) }, page + 1))
|
|
2083
2083
|
]);
|
|
2084
2084
|
}
|
|
2085
2085
|
};
|