@semcore/pagination 16.1.12-prerelease.1 → 17.0.0-prerelease.17

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.
@@ -13,7 +13,7 @@ import sv from "./sv.json.mjs";
13
13
  import tr from "./tr.json.mjs";
14
14
  import vi from "./vi.json.mjs";
15
15
  import zh from "./zh.json.mjs";
16
- var localizedMessages = {
16
+ const localizedMessages = {
17
17
  de,
18
18
  en,
19
19
  es,
@@ -1,13 +1,11 @@
1
+ import type { BoxProps } from '@semcore/base-components';
1
2
  import type Button from '@semcore/button';
2
- import type { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';
3
+ import type { PropGetterFn, Intergalactic } from '@semcore/core';
3
4
  import type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';
4
- import type { BoxProps } from '@semcore/flex-box';
5
5
  import type { InputProps } from '@semcore/input';
6
6
  import type Input from '@semcore/input';
7
7
  import type { TextProps } from '@semcore/typography';
8
8
 
9
- /** @deprecated */
10
- export interface IPaginationProps extends PaginationProps, UnknownProperties {}
11
9
  export type PaginationProps = BoxProps &
12
10
  WithI18nEnhanceProps & {
13
11
  /**
@@ -34,16 +32,10 @@ export type PaginationProps = BoxProps &
34
32
  size?: 'm' | 'l';
35
33
  };
36
34
 
37
- /** @deprecated */
38
- export interface ITotalPagesProps extends TotalPagesProps, UnknownProperties {}
39
35
  export type TotalPagesProps = TextProps & WithI18nEnhanceProps & {};
40
36
 
41
- /** @deprecated */
42
- export interface IPageInputProps extends PageInputProps, UnknownProperties {}
43
37
  export type PageInputProps = InputProps & WithI18nEnhanceProps & {};
44
38
 
45
- /** @deprecated */
46
- export interface IPaginationContext extends PaginationContext, UnknownProperties {}
47
39
  export type PaginationContext = {
48
40
  getFirstPageProps: PropGetterFn;
49
41
  getPrevPageProps: PropGetterFn;
@@ -52,8 +44,6 @@ export type PaginationContext = {
52
44
  getTotalPagesProps: PropGetterFn;
53
45
  };
54
46
 
55
- /** @deprecated */
56
- export interface IPaginationHandlers extends PaginationHandlers, UnknownProperties {}
57
47
  export type PaginationHandlers = {
58
48
  totalPages: (value: number) => void;
59
49
  currentPage: (value: number) => void;
@@ -76,6 +66,7 @@ declare const Pagination: Intergalactic.Component<
76
66
  >;
77
67
  PageInput: Intergalactic.Component<'div', PageInputProps, {}, [handlers: PaginationHandlers]> & {
78
68
  Value: typeof Input.Value;
69
+ Addon: typeof Input.Addon;
79
70
  };
80
71
  };
81
72
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/pagination",
3
3
  "description": "Semrush Pagination Component",
4
- "version": "16.1.12-prerelease.1",
4
+ "version": "17.0.0-prerelease.17",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,17 +14,15 @@
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/flex-box": "16.0.11",
18
- "@semcore/button": "16.0.12-prerelease.1",
19
- "@semcore/icon": "16.7.3-prerelease.1",
20
- "@semcore/input-number": "16.0.11",
21
- "@semcore/input": "16.1.1",
22
- "@semcore/link": "16.0.11",
23
- "@semcore/tooltip": "16.0.11",
24
- "@semcore/typography": "16.3.2-prerelease.1"
17
+ "@semcore/button": "^16.0.13-prerelease.17",
18
+ "@semcore/input-number": "^17.0.0-prerelease.17",
19
+ "@semcore/input": "^16.1.2-prerelease.17",
20
+ "@semcore/link": "^17.0.0-prerelease.17",
21
+ "@semcore/typography": "^16.3.3-prerelease.17"
25
22
  },
26
23
  "peerDependencies": {
27
- "@semcore/base-components": "^16.0.0"
24
+ "@semcore/base-components": "^17.0.0-prerelease.17",
25
+ "@semcore/icon": "^16.7.2-prerelease.17"
28
26
  },
29
27
  "repository": {
30
28
  "type": "git",
@@ -32,8 +30,10 @@
32
30
  "directory": "semcore/pagination"
33
31
  },
34
32
  "devDependencies": {
33
+ "@semcore/base-components": "17.0.0-prerelease.17",
34
+ "@semcore/core": "17.0.0-prerelease.17",
35
35
  "@semcore/testing-utils": "1.0.0",
36
- "@semcore/core": "16.5.1"
36
+ "@semcore/icon": "16.7.2-prerelease.17"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "pnpm semcore-builder --source=js && pnpm vite build"