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.
@@ -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,7 @@
1
+ import { default as React } from 'react';
2
+ import { CardProps } from 'antd';
3
+ export interface GFCardProps extends CardProps {
4
+ cardType?: "default" | "grey" | 'debug' | undefined;
5
+ }
6
+ declare const GFCard: React.FC<GFCardProps>;
7
+ export default GFCard;
@@ -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,6 @@
1
+ export * from './button';
2
+ export * from './card';
3
+ export * from './navCard';
4
+ export * from './metrics';
5
+ export * from './title';
6
+ export * 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,8 @@
1
+ import { default as React } from 'react';
2
+ export interface Props {
3
+ title: string;
4
+ subtitle?: string | undefined;
5
+ type?: 'primary' | 'secondary';
6
+ }
7
+ declare const Metrics: React.FC<Props>;
8
+ export default Metrics;
@@ -0,0 +1 @@
1
+ export { default as Title } from './Title';
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vite').UserConfig;
2
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gf-components",
3
- "version": "0.0.1",
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