Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zag-js/pagination

Package Overview
Dependencies
Maintainers
1
Versions
837
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/pagination - npm Package Compare versions

Comparing version 0.0.0-dev-20220929201450 to 0.0.0-dev-20221005130911

4

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc