gf-components 0.0.1 → 0.0.2
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 +90 -61
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6436 -5789
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/button/GFButton.d.ts +10 -0
- package/dist/src/components/button/index.d.ts +1 -0
- package/dist/src/components/card/GFCard.d.ts +7 -0
- package/dist/src/components/card/index.d.ts +1 -0
- package/dist/src/components/description/Description.d.ts +10 -0
- package/dist/src/components/description/index.d.ts +1 -0
- package/dist/src/components/index.d.ts +6 -0
- package/dist/src/components/metrics/Metrics.d.ts +10 -0
- package/dist/src/components/metrics/index.d.ts +1 -0
- package/dist/src/components/navCard/NavCard.d.ts +10 -0
- package/dist/src/components/navCard/index.d.ts +1 -0
- package/dist/src/components/title/Title.d.ts +8 -0
- package/dist/src/components/title/index.d.ts +1 -0
- package/dist/vite.config.d.ts +2 -0
- package/package.json +2 -2
- /package/dist/{globals.d.ts → src/globals.d.ts} +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React, MouseEventHandler } from 'react';
|
|
2
|
+
import { ButtonProps } from 'antd';
|
|
3
|
+
export interface GFButtonProps extends ButtonProps {
|
|
4
|
+
label?: React.ReactNode;
|
|
5
|
+
type?: "link" | "text" | "primary" | "default" | "dashed" | undefined;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
8
|
+
}
|
|
9
|
+
declare const GFButton: React.FC<GFButtonProps>;
|
|
10
|
+
export default GFButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as GFButton } from './GFButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as GFCard } from './GFCard';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React, CSSProperties } from 'react';
|
|
2
|
+
export interface Props {
|
|
3
|
+
text: string;
|
|
4
|
+
columns?: 2 | 3 | 4;
|
|
5
|
+
editable?: boolean;
|
|
6
|
+
style?: CSSProperties | undefined;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const Description: React.FC<Props>;
|
|
10
|
+
export default Description;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Description } from './Description';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { GFCardProps } from '../card/GFCard';
|
|
3
|
+
export interface MetricsProps extends GFCardProps {
|
|
4
|
+
percent: number | string;
|
|
5
|
+
cost?: number | string;
|
|
6
|
+
description?: string;
|
|
7
|
+
editable?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const Metrics: React.FC<MetricsProps>;
|
|
10
|
+
export default Metrics;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Metrics } from './Metrics';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React, MouseEventHandler } from 'react';
|
|
2
|
+
export type NavCardProps = {
|
|
3
|
+
icon?: any;
|
|
4
|
+
title?: string;
|
|
5
|
+
description: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
8
|
+
};
|
|
9
|
+
declare const NavCard: React.FC<NavCardProps>;
|
|
10
|
+
export default NavCard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as NavCard } from './NavCard';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Title } from './Title';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gf-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "geoFluxus library of React components",
|
|
6
6
|
"repository": "https://github.com/geoFluxus/gf-components.git",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"scripts": {
|
|
17
17
|
"format": "prettier --write --parser typescript '**/*.{ts,tsx}'",
|
|
18
18
|
"lint": "eslint . --ext .ts,.tsx --ignore-path .gitignore --fix",
|
|
19
|
-
"build": "vite build",
|
|
19
|
+
"build": "tsc && vite build",
|
|
20
20
|
"prepare": "yarn run build",
|
|
21
21
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
22
22
|
"storybook": "storybook dev -p 6006",
|
|
File without changes
|
|
File without changes
|