gf-components 0.1.2 → 0.1.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/dist/index.cjs.js +73 -130
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6828 -7924
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/button/GFButton.d.ts +6 -3
- package/dist/src/components/card/GFCard.d.ts +3 -2
- package/package.json +3 -2
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MouseEventHandler } from 'react';
|
|
2
2
|
import { ButtonProps } from 'antd';
|
|
3
3
|
export interface GFButtonProps extends ButtonProps {
|
|
4
|
-
label?: React.ReactNode;
|
|
5
4
|
type?: "link" | "text" | "primary" | "default" | "dashed" | undefined;
|
|
6
5
|
disabled?: boolean;
|
|
7
6
|
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
8
7
|
}
|
|
9
|
-
declare const GFButton:
|
|
8
|
+
declare const GFButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<ButtonProps & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>, "ref"> & {
|
|
9
|
+
ref?: ((instance: HTMLButtonElement | HTMLAnchorElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement | HTMLAnchorElement> | null | undefined;
|
|
10
|
+
}, GFButtonProps>> & string & Omit<import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>> & {
|
|
11
|
+
Group: import('react').FC<import('antd/es/button').ButtonGroupProps>;
|
|
12
|
+
}, keyof import('react').Component<any, {}, any>>;
|
|
10
13
|
export default GFButton;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { CardProps } from 'antd';
|
|
3
2
|
export interface GFCardProps extends CardProps {
|
|
4
3
|
cardType?: "default" | "grey" | 'debug' | undefined;
|
|
5
4
|
}
|
|
6
|
-
declare const GFCard:
|
|
5
|
+
declare const GFCard: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<CardProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
6
|
+
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
7
|
+
}, GFCardProps>> & string & Omit<import('antd/es/card').CardInterface, keyof import('react').Component<any, {}, any>>;
|
|
7
8
|
export default GFCard;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gf-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "geoFluxus library of React components",
|
|
6
6
|
"repository": {
|
|
@@ -73,7 +73,8 @@
|
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"react": "^8.3.1",
|
|
76
|
-
"react-dom": "^18.3.1"
|
|
76
|
+
"react-dom": "^18.3.1",
|
|
77
|
+
"styled-components": "^6.1.13"
|
|
77
78
|
},
|
|
78
79
|
"dependencies": {
|
|
79
80
|
"antd": "^5.20.3",
|