@pnkx-lib/ui 1.0.4 → 1.0.6
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/dist/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { e, B as o, C as r, d as t, M as p, P as l, c as T, S as n, T as d, b as i, a as C, t as M } from "./chunks/Badge-
|
1
|
+
import { e, B as o, C as r, d as t, M as p, P as l, c as T, S as n, T as d, b as i, a as C, t as M } from "./chunks/Badge-CGBb9ohQ.js";
|
2
2
|
import { E as m, L as x, T as y } from "./chunks/AntdIcon-DV7aA2xc.js";
|
3
3
|
import { I as P, P as c, T as f } from "./chunks/Switch-B0z-9IsF.js";
|
4
4
|
export {
|
package/dist/types/index.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { BadgeProps as BadgeProps_2 } from 'antd';
|
|
2
2
|
import { ButtonProps as ButtonProps_2 } from 'antd';
|
3
3
|
import { CascaderProps } from 'antd/es/cascader';
|
4
4
|
import { CheckboxProps } from 'antd';
|
5
|
-
import { ColumnsType } from 'antd/es/table';
|
5
|
+
import { ColumnsType as ColumnsType_2 } from 'antd/es/table';
|
6
6
|
import { Control } from 'react-hook-form';
|
7
7
|
import { ControllerFieldState } from 'react-hook-form';
|
8
8
|
import { ControllerRenderProps } from 'react-hook-form';
|
@@ -73,6 +73,8 @@ export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChang
|
|
73
73
|
customStyleCheckbox?: string;
|
74
74
|
}
|
75
75
|
|
76
|
+
export declare type ColumnsType<T> = ColumnsType_2<T>;
|
77
|
+
|
76
78
|
declare type ComponentPropsType<TComponent> = TComponent extends React_2.ComponentType<infer P> ? P : never;
|
77
79
|
|
78
80
|
export declare const Container: default_2.FC<ContainerProps>;
|
@@ -262,7 +264,7 @@ export declare interface TableCommonProps<T> extends TableProps<T> {
|
|
262
264
|
filters: any;
|
263
265
|
onChangePage: (page: number) => void;
|
264
266
|
onChangePageSize: (size: number) => void;
|
265
|
-
onSort?: (
|
267
|
+
onSort?: (sortField: string | number | symbol) => void;
|
266
268
|
rowsSelected: default_2.Key[];
|
267
269
|
onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
|
268
270
|
onRowClick?: (record: T) => void;
|
package/dist/types/ui.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { BadgeProps as BadgeProps_2 } from 'antd';
|
2
2
|
import { ButtonProps as ButtonProps_2 } from 'antd';
|
3
3
|
import { CascaderProps } from 'antd/es/cascader';
|
4
|
-
import { ColumnsType } from 'antd/es/table';
|
4
|
+
import { ColumnsType as ColumnsType_2 } from 'antd/es/table';
|
5
5
|
import { Control } from 'react-hook-form';
|
6
6
|
import { default as default_2 } from 'react';
|
7
7
|
import { DefaultOptionType } from 'antd/es/cascader';
|
@@ -46,6 +46,8 @@ export declare const CascaderField: (props: CascaderFieldProps) => JSX.Element;
|
|
46
46
|
|
47
47
|
export declare type CascaderFieldProps = BaseProps & (SingleCascaderProps | MultipleCascaderProps);
|
48
48
|
|
49
|
+
export declare type ColumnsType<T> = ColumnsType_2<T>;
|
50
|
+
|
49
51
|
export declare const Container: default_2.FC<ContainerProps>;
|
50
52
|
|
51
53
|
export declare interface ContainerProps {
|
@@ -134,7 +136,7 @@ export declare interface TableCommonProps<T> extends TableProps<T> {
|
|
134
136
|
filters: any;
|
135
137
|
onChangePage: (page: number) => void;
|
136
138
|
onChangePageSize: (size: number) => void;
|
137
|
-
onSort?: (
|
139
|
+
onSort?: (sortField: string | number | symbol) => void;
|
138
140
|
rowsSelected: default_2.Key[];
|
139
141
|
onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
|
140
142
|
onRowClick?: (record: T) => void;
|
package/dist/ui/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { e, B as o, C as r, d as t, M as l, P as p, c as T, S as d, T as b, b as i, a as n, t as C } from "../chunks/Badge-
|
1
|
+
import { e, B as o, C as r, d as t, M as l, P as p, c as T, S as d, T as b, b as i, a as n, t as C } from "../chunks/Badge-CGBb9ohQ.js";
|
2
2
|
import { E as c, L as g, T as m } from "../chunks/AntdIcon-DV7aA2xc.js";
|
3
3
|
export {
|
4
4
|
e as Badge,
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pnkx-lib/ui",
|
3
3
|
"private": false,
|
4
|
-
"version": "1.0.
|
4
|
+
"version": "1.0.6",
|
5
5
|
"type": "module",
|
6
6
|
"main": "./dist/index.js",
|
7
7
|
"exports": {
|
@@ -58,11 +58,12 @@
|
|
58
58
|
"eslint-plugin-react-refresh": "^0.4.19",
|
59
59
|
"eslint-plugin-storybook": "^0.11.6",
|
60
60
|
"globals": "^15.15.0",
|
61
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
61
62
|
"storybook": "^8.6.7",
|
62
63
|
"tailwindcss": "^4.0.17",
|
63
64
|
"typescript": "~5.7.2",
|
64
65
|
"typescript-eslint": "^8.24.1",
|
65
|
-
"vite": "^6.2.
|
66
|
+
"vite": "^6.2.6",
|
66
67
|
"vite-plugin-dts": "^4.5.3",
|
67
68
|
"vitest": "^3.0.9"
|
68
69
|
},
|