jb-grid 0.2.2 → 0.2.4

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/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "web component",
14
14
  "react component"
15
15
  ],
16
- "version": "0.2.2",
16
+ "version": "0.2.4",
17
17
  "bugs": "https://github.com/javadbat/jb-grid/issues",
18
18
  "license": "MIT",
19
19
  "files": [
@@ -25,12 +25,13 @@
25
25
  "react/dist/"
26
26
  ],
27
27
  "main": "index.js",
28
+ "types": "./web-component/dist/index.d.ts",
28
29
  "repository": {
29
30
  "type": "git",
30
31
  "url": "git@github.com:javadbat/jb-grid.git"
31
32
  },
32
33
  "dependencies": {
33
- "jb-core":">=0.19.0",
34
+ "jb-core":">=0.24.0",
34
35
  "mobx":">=6.0.0",
35
36
  "mobx-react":">=7.0.0",
36
37
  "jb-searchbar":">=2.6.0"
@@ -2,20 +2,8 @@ import React, { type DetailedHTMLProps, type FormEventHandler, type HTMLAttribut
2
2
  import 'jb-grid';
3
3
  import type { JBPaginationWebComponent } from 'jb-grid';
4
4
  import type { JBElementStandardProps } from 'jb-core/react';
5
- export type Props = JBElementStandardProps & {
6
- pageIndex?: number;
7
- max?: number;
8
- min?: number;
9
- onChange?: FormEventHandler<JBPaginationWebComponent>;
10
- showPersianNumber?: boolean;
11
- };
12
5
  export declare function JBPagination(props: Props): React.JSX.Element;
13
- type JBPaginationAttributes = DetailedHTMLProps<HTMLAttributes<JBPaginationWebComponent>, JBPaginationWebComponent> & {
14
- pageIndex?: number;
15
- max?: number;
16
- min?: number;
17
- showPersianNumber?: boolean;
18
- };
6
+ type JBPaginationAttributes = DetailedHTMLProps<HTMLAttributes<JBPaginationWebComponent>, JBPaginationWebComponent> & DirectAttributeProps;
19
7
  declare module "react" {
20
8
  namespace JSX {
21
9
  interface IntrinsicElements {
@@ -23,4 +11,12 @@ declare module "react" {
23
11
  }
24
12
  }
25
13
  }
14
+ type DirectAttributeProps = {
15
+ pageIndex?: number;
16
+ max?: number;
17
+ min?: number;
18
+ onChange?: FormEventHandler<JBPaginationWebComponent>;
19
+ showPersianNumber?: boolean;
20
+ };
21
+ export type Props = JBElementStandardProps<JBPaginationWebComponent, keyof DirectAttributeProps> & DirectAttributeProps;
26
22
  export {};