@zag-js/pagination
Advanced tools
Comparing version 0.0.0-dev-20220929201450 to 0.0.0-dev-20221005130911
@@ -5,3 +5,3 @@ import * as _zag_js_core from '@zag-js/core'; | ||
declare type IntlMessages = { | ||
declare type IntlTranslations = { | ||
rootLabel?: string; | ||
@@ -34,3 +34,3 @@ itemLabel?(details: { | ||
*/ | ||
messages: IntlMessages; | ||
translations: IntlTranslations; | ||
/** | ||
@@ -37,0 +37,0 @@ * Total number of data items |
@@ -132,3 +132,3 @@ "use strict"; | ||
const page = state.context.page; | ||
const messages = state.context.messages; | ||
const translations = state.context.translations; | ||
const previousPage = state.context.previousPage; | ||
@@ -160,3 +160,3 @@ const nextPage = state.context.nextPage; | ||
"data-part": "root", | ||
"aria-label": messages.rootLabel | ||
"aria-label": translations.rootLabel | ||
}), | ||
@@ -178,3 +178,3 @@ getEllipsisProps(props) { | ||
"aria-current": isCurrentPage ? "page" : void 0, | ||
"aria-label": (_a = messages.itemLabel) == null ? void 0 : _a.call(messages, { page: pageIndex, totalPages }), | ||
"aria-label": (_a = translations.itemLabel) == null ? void 0 : _a.call(translations, { page: pageIndex, totalPages }), | ||
onClick(evt) { | ||
@@ -215,3 +215,3 @@ send({ type: "SET_PAGE", page: pageIndex, srcElement: evt.currentTarget }); | ||
page: 1, | ||
messages: { | ||
translations: { | ||
rootLabel: "pagination", | ||
@@ -218,0 +218,0 @@ itemLabel({ page, totalPages }) { |
{ | ||
"name": "@zag-js/pagination", | ||
"version": "0.0.0-dev-20220929201450", | ||
"version": "0.0.0-dev-20221005130911", | ||
"description": "Core logic for the pagination widget implemented as a state machine", | ||
@@ -32,7 +32,7 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@zag-js/core": "0.0.0-dev-20220929201450", | ||
"@zag-js/types": "0.0.0-dev-20220929201450" | ||
"@zag-js/core": "0.0.0-dev-20221005130911", | ||
"@zag-js/types": "0.0.0-dev-20221005130911" | ||
}, | ||
"devDependencies": { | ||
"@zag-js/dom-utils": "0.0.0-dev-20220929201450" | ||
"@zag-js/dom-utils": "0.0.0-dev-20221005130911" | ||
}, | ||
@@ -39,0 +39,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25160
+ Added@zag-js/core@0.0.0-dev-20221005130911(transitive)
+ Added@zag-js/store@0.0.0-dev-20221005130911(transitive)
+ Added@zag-js/types@0.0.0-dev-20221005130911(transitive)
- Removed@zag-js/core@0.0.0-dev-20220929201450(transitive)
- Removed@zag-js/store@0.0.0-dev-20220929201450(transitive)
- Removed@zag-js/types@0.0.0-dev-20220929201450(transitive)