@semcore/pagination 17.2.1-prerelease.1 → 17.2.1-prerelease.3
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/lib/cjs/Pagination.type.js.map +1 -1
- package/lib/es6/Pagination.type.js.map +1 -1
- package/lib/types/Pagination.d.ts +1 -0
- package/lib/types/Pagination.d.ts.map +1 -0
- package/lib/types/Pagination.type.d.ts +7 -6
- package/lib/types/Pagination.type.d.ts.map +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/translations/__intergalactic-dynamic-locales.d.ts +1 -0
- package/lib/types/translations/__intergalactic-dynamic-locales.d.ts.map +1 -0
- package/package.json +12 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.type.js","names":[],"sources":["../../src/Pagination.type.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"Pagination.type.js","names":[],"sources":["../../src/Pagination.type.ts"],"sourcesContent":["import type { NSBox } from '@semcore/base-components';\nimport type { NSButton } from '@semcore/button';\nimport type { PropGetterFn, Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport type { InputProps } from '@semcore/input';\nimport type Input from '@semcore/input';\nimport type { NSText } from '@semcore/typography';\n\nimport type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';\n\ndeclare namespace NSPagination {\n type Props = NSBox.Props &\n WithI18nEnhanceProps & {\n /**\n * Total number of pages\n * @default 1\n */\n totalPages?: number;\n /**\n * Active page number\n * @default 1\n */\n currentPage?: number;\n /**\n * Callback for changing the active page\n * @param pageNumber\n */\n onCurrentPageChange?: (pageNumber: number) => void;\n /** Specifies the locale for i18n support */\n locale?: string;\n /**\n * Sizes for pagination panel\n * @default 'm'\n */\n size?: 'm' | 'l';\n };\n type DefaultProps = {\n defaultCurrentPage: 1;\n defaultTotalPages: 1;\n i18n: LocalizedMessages;\n locale: 'en';\n size: 'm';\n };\n type Ctx = {\n getFirstPageProps: PropGetterFn;\n getPrevPageProps: PropGetterFn;\n getNextPageProps: PropGetterFn;\n getPageInputProps: PropGetterFn;\n getTotalPagesProps: PropGetterFn;\n };\n type Handlers = {\n totalPages: null;\n currentPage: null;\n };\n\n namespace PrevPage {\n type Component = NSButton.Component;\n }\n\n namespace NextPage {\n type Component = NSButton.Component;\n }\n\n namespace FirstPage {\n type Component = NSButton.Component;\n }\n\n namespace TotalPages {\n type Props = NSText.Props & WithI18nEnhanceProps;\n\n type Component = Intergalactic.Component<'button', Props, {}, [handlers: Handlers]>;\n }\n\n namespace PageInput {\n type Props = InputProps & WithI18nEnhanceProps;\n\n namespace Value {\n type Component = typeof Input.Value;\n }\n\n namespace Addon {\n type Component = typeof Input.Addon;\n }\n\n type Component = Intergalactic.Component<'div', Props, {}, [handlers: Handlers]> & {\n Value: Value.Component;\n Addon: Addon.Component;\n };\n }\n\n type Component = Intergalactic.Component<'div', Props, Ctx, [handlers: Handlers]> & {\n PrevPage: PrevPage.Component;\n NextPage: NextPage.Component;\n FirstPage: FirstPage.Component;\n TotalPages: TotalPages.Component;\n PageInput: PageInput.Component;\n };\n}\n\n/** @deprecated It will be removed in v18. */\nexport type PaginationProps = NSPagination.Props;\n/** @deprecated It will be removed in v18. */\nexport type TotalPagesProps = NSPagination.TotalPages.Props;\n/** @deprecated It will be removed in v18. */\nexport type PageInputProps = NSPagination.PageInput.Props;\n/** @deprecated It will be removed in v18. */\nexport type PaginationContext = NSPagination.Ctx;\n/** @deprecated It will be removed in v18. */\nexport type PaginationHandlers = NSPagination.Handlers;\n\nexport type { NSPagination };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.type.js","names":[],"sources":["../../src/Pagination.type.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"Pagination.type.js","names":[],"sources":["../../src/Pagination.type.ts"],"sourcesContent":["import type { NSBox } from '@semcore/base-components';\nimport type { NSButton } from '@semcore/button';\nimport type { PropGetterFn, Intergalactic } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport type { InputProps } from '@semcore/input';\nimport type Input from '@semcore/input';\nimport type { NSText } from '@semcore/typography';\n\nimport type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';\n\ndeclare namespace NSPagination {\n type Props = NSBox.Props &\n WithI18nEnhanceProps & {\n /**\n * Total number of pages\n * @default 1\n */\n totalPages?: number;\n /**\n * Active page number\n * @default 1\n */\n currentPage?: number;\n /**\n * Callback for changing the active page\n * @param pageNumber\n */\n onCurrentPageChange?: (pageNumber: number) => void;\n /** Specifies the locale for i18n support */\n locale?: string;\n /**\n * Sizes for pagination panel\n * @default 'm'\n */\n size?: 'm' | 'l';\n };\n type DefaultProps = {\n defaultCurrentPage: 1;\n defaultTotalPages: 1;\n i18n: LocalizedMessages;\n locale: 'en';\n size: 'm';\n };\n type Ctx = {\n getFirstPageProps: PropGetterFn;\n getPrevPageProps: PropGetterFn;\n getNextPageProps: PropGetterFn;\n getPageInputProps: PropGetterFn;\n getTotalPagesProps: PropGetterFn;\n };\n type Handlers = {\n totalPages: null;\n currentPage: null;\n };\n\n namespace PrevPage {\n type Component = NSButton.Component;\n }\n\n namespace NextPage {\n type Component = NSButton.Component;\n }\n\n namespace FirstPage {\n type Component = NSButton.Component;\n }\n\n namespace TotalPages {\n type Props = NSText.Props & WithI18nEnhanceProps;\n\n type Component = Intergalactic.Component<'button', Props, {}, [handlers: Handlers]>;\n }\n\n namespace PageInput {\n type Props = InputProps & WithI18nEnhanceProps;\n\n namespace Value {\n type Component = typeof Input.Value;\n }\n\n namespace Addon {\n type Component = typeof Input.Addon;\n }\n\n type Component = Intergalactic.Component<'div', Props, {}, [handlers: Handlers]> & {\n Value: Value.Component;\n Addon: Addon.Component;\n };\n }\n\n type Component = Intergalactic.Component<'div', Props, Ctx, [handlers: Handlers]> & {\n PrevPage: PrevPage.Component;\n NextPage: NextPage.Component;\n FirstPage: FirstPage.Component;\n TotalPages: TotalPages.Component;\n PageInput: PageInput.Component;\n };\n}\n\n/** @deprecated It will be removed in v18. */\nexport type PaginationProps = NSPagination.Props;\n/** @deprecated It will be removed in v18. */\nexport type TotalPagesProps = NSPagination.TotalPages.Props;\n/** @deprecated It will be removed in v18. */\nexport type PageInputProps = NSPagination.PageInput.Props;\n/** @deprecated It will be removed in v18. */\nexport type PaginationContext = NSPagination.Ctx;\n/** @deprecated It will be removed in v18. */\nexport type PaginationHandlers = NSPagination.Handlers;\n\nexport type { NSPagination };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../src/Pagination.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAwZtD;;;;GAIG;AACH,QAAA,MAAM,UAAU,wBAed,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type
|
|
1
|
+
import type { NSBox } from '@semcore/base-components';
|
|
2
|
+
import type { NSButton } from '@semcore/button';
|
|
3
3
|
import type { PropGetterFn, Intergalactic } from '@semcore/core';
|
|
4
4
|
import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
5
5
|
import type { InputProps } from '@semcore/input';
|
|
@@ -7,7 +7,7 @@ import type Input from '@semcore/input';
|
|
|
7
7
|
import type { NSText } from '@semcore/typography';
|
|
8
8
|
import type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';
|
|
9
9
|
declare namespace NSPagination {
|
|
10
|
-
type Props =
|
|
10
|
+
type Props = NSBox.Props & WithI18nEnhanceProps & {
|
|
11
11
|
/**
|
|
12
12
|
* Total number of pages
|
|
13
13
|
* @default 1
|
|
@@ -50,13 +50,13 @@ declare namespace NSPagination {
|
|
|
50
50
|
currentPage: null;
|
|
51
51
|
};
|
|
52
52
|
namespace PrevPage {
|
|
53
|
-
type Component =
|
|
53
|
+
type Component = NSButton.Component;
|
|
54
54
|
}
|
|
55
55
|
namespace NextPage {
|
|
56
|
-
type Component =
|
|
56
|
+
type Component = NSButton.Component;
|
|
57
57
|
}
|
|
58
58
|
namespace FirstPage {
|
|
59
|
-
type Component =
|
|
59
|
+
type Component = NSButton.Component;
|
|
60
60
|
}
|
|
61
61
|
namespace TotalPages {
|
|
62
62
|
type Props = NSText.Props & WithI18nEnhanceProps;
|
|
@@ -94,3 +94,4 @@ export type PaginationContext = NSPagination.Ctx;
|
|
|
94
94
|
/** @deprecated It will be removed in v18. */
|
|
95
95
|
export type PaginationHandlers = NSPagination.Handlers;
|
|
96
96
|
export type { NSPagination };
|
|
97
|
+
//# sourceMappingURL=Pagination.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.type.d.ts","sourceRoot":"","sources":["../../src/Pagination.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,KAAK,MAAM,gBAAgB,CAAC;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AAExF,OAAO,WAAW,YAAY,CAAC;IAC7B,KAAK,KAAK,GAAG,KAAK,CAAC,KAAK,GACtB,oBAAoB,GAAG;QACrB;;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,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"__intergalactic-dynamic-locales.d.ts","sourceRoot":"","sources":["../../../src/translations/__intergalactic-dynamic-locales.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB7B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/pagination",
|
|
3
3
|
"description": "Semrush Pagination Component",
|
|
4
|
-
"version": "17.2.1-prerelease.
|
|
4
|
+
"version": "17.2.1-prerelease.3",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
"require": "./lib/cjs/index.js"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/button": "^17.2.
|
|
18
|
-
"@semcore/input-number": "^17.
|
|
19
|
-
"@semcore/input": "^17.2.2-prerelease.
|
|
20
|
-
"@semcore/link": "^17.2.
|
|
21
|
-
"@semcore/typography": "^17.2.1"
|
|
17
|
+
"@semcore/button": "^17.2.2-prerelease.3",
|
|
18
|
+
"@semcore/input-number": "^17.3.0-prerelease.3",
|
|
19
|
+
"@semcore/input": "^17.2.2-prerelease.3",
|
|
20
|
+
"@semcore/link": "^17.2.2-prerelease.3",
|
|
21
|
+
"@semcore/typography": "^17.2.1-prerelease.3"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@semcore/base-components": "^17.2.
|
|
25
|
-
"@semcore/icon": "^17.2.
|
|
24
|
+
"@semcore/base-components": "^17.2.2-prerelease.3",
|
|
25
|
+
"@semcore/icon": "^17.2.1-prerelease.3"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"directory": "semcore/pagination"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@semcore/core": "17.
|
|
34
|
-
"@semcore/
|
|
35
|
-
"@semcore/icon": "17.2.
|
|
36
|
-
"@semcore/
|
|
33
|
+
"@semcore/core": "17.3.1-prerelease.3",
|
|
34
|
+
"@semcore/testing-utils": "1.0.0",
|
|
35
|
+
"@semcore/icon": "17.2.1-prerelease.3",
|
|
36
|
+
"@semcore/base-components": "17.2.2-prerelease.3"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "pnpm semcore-builder && pnpm vite build"
|