greenole-design-system 1.1.3 → 1.1.5

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,4 @@
1
+ import { default as React } from 'react';
2
+ import { ButtonProps } from './Button.types';
3
+ declare const Button: React.FC<ButtonProps>;
4
+ export default Button;
@@ -0,0 +1,13 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Button } from './Button';
3
+ declare const meta: Meta<typeof Button>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Button>;
6
+ export declare const Primary: Story;
7
+ export declare const Secondary: Story;
8
+ export declare const Tertiary: Story;
9
+ export declare const Link: Story;
10
+ export declare const DangerPrimary: Story;
11
+ export declare const WithIcons: Story;
12
+ export declare const LoadingState: Story;
13
+ export declare const Disabled: Story;
@@ -0,0 +1,16 @@
1
+ import { ButtonHTMLAttributes, ReactNode } from 'react';
2
+ import { TypographyVariant } from '../../components/Typography/Typography';
3
+ export type ButtonVariant = "primary" | "secondary" | "tertiary" | "link";
4
+ export type ButtonSize = "sm" | "md" | "lg";
5
+ export type ButtonColor = "default" | "danger";
6
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
7
+ children: ReactNode;
8
+ variant?: ButtonVariant;
9
+ size?: ButtonSize;
10
+ color?: ButtonColor;
11
+ fullWidth?: boolean;
12
+ typography?: TypographyVariant;
13
+ loading?: boolean;
14
+ iconLeft?: ReactNode;
15
+ iconRight?: ReactNode;
16
+ }
@@ -0,0 +1,2 @@
1
+ export { default as Button } from './Button';
2
+ export type { ButtonColor, ButtonProps, ButtonSize, ButtonVariant } from './Button.types';
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { LoadingProps } from './Loading.types';
3
+ declare const Loading: React.FC<LoadingProps>;
4
+ export default Loading;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Loading } from './Loading';
3
+ declare const meta: Meta<typeof Loading>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Loading>;
6
+ export declare const Default: Story;
@@ -0,0 +1,6 @@
1
+ import { SVGProps } from 'react';
2
+ export interface LoadingProps extends SVGProps<SVGSVGElement> {
3
+ show?: boolean;
4
+ size?: number;
5
+ color?: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ export { default as Loading } from './Loading';
2
+ export type { LoadingProps } from './Loading.types';
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { CardProps } from './Card.types';
3
+ declare const Card: React.FC<CardProps>;
4
+ export default Card;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Card } from './';
3
+ declare const meta: Meta<typeof Card>;
4
+ export default meta;
5
+ type Story = StoryObj<any>;
6
+ export declare const DropdownControlled: Story;
@@ -0,0 +1,27 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ import { DropdownOption } from '../../base-components/Dropdown/Dropdown.types';
3
+ export interface CardProps extends HTMLAttributes<HTMLDivElement> {
4
+ children: ReactNode;
5
+ className?: string;
6
+ theme?: "light" | "dark";
7
+ width?: "w-48" | "w-64" | "w-80" | "w-full" | string;
8
+ }
9
+ export interface CardHeaderProps extends HTMLAttributes<HTMLDivElement> {
10
+ title: string;
11
+ titleSize?: "sm" | "md" | "lg";
12
+ dropdownOptions?: DropdownOption[];
13
+ showDropdown?: boolean;
14
+ selectedValue?: string;
15
+ onDropdownSelect?: (value: string) => void;
16
+ className?: string;
17
+ theme?: "light" | "dark";
18
+ }
19
+ export interface CardSectionProps extends HTMLAttributes<HTMLDivElement> {
20
+ children: ReactNode;
21
+ className?: string;
22
+ }
23
+ export interface CardFooterProps extends HTMLAttributes<HTMLDivElement> {
24
+ children: ReactNode;
25
+ className?: string;
26
+ align?: "left" | "center" | "right";
27
+ }
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { CardSectionProps } from './Card.types';
3
+ declare const CardBody: React.FC<CardSectionProps>;
4
+ export default CardBody;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { CardFooterProps } from './Card.types';
3
+ declare const CardFooter: React.FC<CardFooterProps>;
4
+ export default CardFooter;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { CardHeaderProps } from './Card.types';
3
+ declare const CardHeader: React.FC<CardHeaderProps>;
4
+ export default CardHeader;
@@ -0,0 +1,5 @@
1
+ export { default as Card } from './Card';
2
+ export * from './Card.types';
3
+ export { default as CardBody } from './CardBody';
4
+ export { default as CardFooter } from './CardFooter';
5
+ export { default as CardHeader } from './CardHeader';