greenole-design-system 1.1.4 → 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.
- package/dist/base-components/Button/Button.d.ts +4 -0
- package/dist/base-components/Button/Button.stories.d.ts +13 -0
- package/dist/base-components/Button/Button.types.d.ts +16 -0
- package/dist/base-components/Button/index.d.ts +2 -0
- package/dist/base-components/Loading/Loading.d.ts +4 -0
- package/dist/base-components/Loading/Loading.stories.d.ts +6 -0
- package/dist/base-components/Loading/Loading.types.d.ts +6 -0
- package/dist/base-components/Loading/index.d.ts +2 -0
- package/dist/components/Card/Card.d.ts +4 -0
- package/dist/components/Card/Card.stories.d.ts +6 -0
- package/dist/components/Card/Card.types.d.ts +27 -0
- package/dist/components/Card/CardBody.d.ts +4 -0
- package/dist/components/Card/CardFooter.d.ts +4 -0
- package/dist/components/Card/CardHeader.d.ts +4 -0
- package/dist/components/Card/index.d.ts +5 -0
- package/dist/greenole-design-system.cjs.js +16 -16
- package/dist/greenole-design-system.es.js +797 -700
- package/dist/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -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,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
|
+
}
|