greenole-design-system 1.1.38 → 1.1.40
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/README.md +123 -123
- package/dist/base-components/Button/Button.styles.d.ts +9 -0
- package/dist/base-components/Dropdown/Dropdown.types.d.ts +1 -0
- package/dist/base-components/Loading/loading.styles.d.ts +3 -0
- package/dist/base-components/Pills/Pills.stories.d.ts +0 -1
- package/dist/base-components/Pills/Pills.styles.d.ts +6 -0
- package/dist/base-components/ProgressBar/ProgressBar.styles.d.ts +11 -0
- package/dist/base-components/Space/Space.styles.d.ts +6 -0
- package/dist/base-components/Space/Space.types.d.ts +2 -2
- package/dist/components/Accordion/Accordion.styles.d.ts +10 -0
- package/dist/components/Card/Card.stories.d.ts +5 -2
- package/dist/components/Card/Card.styles.d.ts +15 -0
- package/dist/components/Card/Card.types.d.ts +12 -8
- package/dist/components/Card/CardBody.d.ts +2 -2
- package/dist/components/Empty/Empty.d.ts +2 -1
- package/dist/components/Empty/Empty.stories.d.ts +3 -15
- package/dist/components/Empty/Empty.styles.d.ts +5 -0
- package/dist/components/Empty/Empty.types.d.ts +8 -0
- package/dist/components/Modal/Modal.styles.d.ts +20 -0
- package/dist/components/Table/DataTable.styles.d.ts +26 -0
- package/dist/components/Tabs/Tabs.styles.d.ts +8 -0
- package/dist/components/Typography/Typography.styles.d.ts +50 -0
- package/dist/greenole-design-system.cjs.js +930 -142
- package/dist/greenole-design-system.es.js +3659 -3084
- package/dist/greenole.css +0 -753
- package/dist/index.css +1 -1
- package/package.json +89 -89
package/README.md
CHANGED
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
# Greenole Design System
|
|
2
|
-
|
|
3
|
-
[](https://www.figma.com/design/Zwkbh8XGfVt2At4ln7p1WE/DS-Greenole?node-id=1017-15&p=f&t=Mjdfp67Q8ADWcm9v-0)
|
|
4
|
-
|
|
5
|
-
The **Greenole Design System** is a React component library designed to create consistent and scalable user interfaces.
|
|
6
|
-
The library is constantly evolving, with new components and improvements being added over time.
|
|
7
|
-
|
|
8
|
-
## Table of Contents
|
|
9
|
-
|
|
10
|
-
- [Introduction](#introduction)
|
|
11
|
-
- [Installation](#installation)
|
|
12
|
-
- [Usage](#usage)
|
|
13
|
-
- [Development](#development)
|
|
14
|
-
- [Build & Publication](#build--publication)
|
|
15
|
-
- [Contributing](#contributing)
|
|
16
|
-
- [License](#license)
|
|
17
|
-
|
|
18
|
-
## Introduction
|
|
19
|
-
|
|
20
|
-
**Greenole Design System** gathers reusable components that follow a consistent visual identity.
|
|
21
|
-
It helps teams maintain design and usability standards across their React projects.
|
|
22
|
-
|
|
23
|
-
> **Note:**
|
|
24
|
-
> This library is in constant evolution. Existing components may be updated and new ones added over time.
|
|
25
|
-
|
|
26
|
-
## Installation
|
|
27
|
-
|
|
28
|
-
To install the library in your React project, run:
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
npm install greenole-design-system
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
> **Note:**
|
|
35
|
-
> The library declares `react` and `react-dom` as peer dependencies, so ensure your project already has these installed.
|
|
36
|
-
|
|
37
|
-
## Usage
|
|
38
|
-
|
|
39
|
-
After installation, you need to import both the CSS styles and the components:
|
|
40
|
-
|
|
41
|
-
### 1. Import the CSS styles
|
|
42
|
-
|
|
43
|
-
First, import the CSS file in your main application file (usually `main.jsx`, `App.jsx`, or `index.js`):
|
|
44
|
-
|
|
45
|
-
```jsx
|
|
46
|
-
import 'greenole-design-system/dist/greenole.css';
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
### 2. Import and use components
|
|
50
|
-
|
|
51
|
-
Then you can import and use the library's components:
|
|
52
|
-
|
|
53
|
-
```jsx
|
|
54
|
-
import React from 'react';
|
|
55
|
-
import { Typography } from 'greenole-design-system';
|
|
56
|
-
|
|
57
|
-
function App() {
|
|
58
|
-
return (
|
|
59
|
-
<div>
|
|
60
|
-
<Typography variant="h1">
|
|
61
|
-
The quick brown fox jumps over the lazy dog.
|
|
62
|
-
</Typography>
|
|
63
|
-
{/* Additional components will be added in the future */}
|
|
64
|
-
</div>
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export default App;
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
## Development
|
|
72
|
-
|
|
73
|
-
To contribute to or test the library locally:
|
|
74
|
-
|
|
75
|
-
1. Clone the repository:
|
|
76
|
-
```bash
|
|
77
|
-
git clone https://github.com/your-username/greenole-design-system.git
|
|
78
|
-
cd greenole-design-system
|
|
79
|
-
```
|
|
80
|
-
2. Install dependencies:
|
|
81
|
-
```bash
|
|
82
|
-
npm install
|
|
83
|
-
```
|
|
84
|
-
3. Start the development environment using Vite:
|
|
85
|
-
```bash
|
|
86
|
-
npm run dev
|
|
87
|
-
```
|
|
88
|
-
4. To view the documentation and components, we use **Storybook**:
|
|
89
|
-
```bash
|
|
90
|
-
npm run storybook
|
|
91
|
-
```
|
|
92
|
-
Storybook serves as the documentation and demo environment for the library's components.
|
|
93
|
-
|
|
94
|
-
## Build & Publication
|
|
95
|
-
|
|
96
|
-
To generate the library bundle:
|
|
97
|
-
|
|
98
|
-
1. Run the build command:
|
|
99
|
-
```bash
|
|
100
|
-
npm run build
|
|
101
|
-
```
|
|
102
|
-
This will create the `dist` folder with both CommonJS and ESModule files, as well as type declarations (if configured).
|
|
103
|
-
|
|
104
|
-
2. To test locally in another project, use `npm link`:
|
|
105
|
-
```bash
|
|
106
|
-
cd greenole-design-system
|
|
107
|
-
npm link
|
|
108
|
-
cd ../your-consumer-project
|
|
109
|
-
npm link greenole-design-system
|
|
110
|
-
```
|
|
111
|
-
3. When ready to publish:
|
|
112
|
-
```bash
|
|
113
|
-
npm login
|
|
114
|
-
npm publish --access public
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
## Contributing
|
|
118
|
-
|
|
119
|
-
Contributions are welcome! If you would like to help evolve the **Greenole Design System**, follow these steps:
|
|
120
|
-
|
|
121
|
-
1. Fork the repository.
|
|
122
|
-
2. Create a branch for your feature (`git checkout -b my-feature`).
|
|
123
|
-
3. Commit your changes.
|
|
1
|
+
# Greenole Design System
|
|
2
|
+
|
|
3
|
+
[](https://www.figma.com/design/Zwkbh8XGfVt2At4ln7p1WE/DS-Greenole?node-id=1017-15&p=f&t=Mjdfp67Q8ADWcm9v-0)
|
|
4
|
+
|
|
5
|
+
The **Greenole Design System** is a React component library designed to create consistent and scalable user interfaces.
|
|
6
|
+
The library is constantly evolving, with new components and improvements being added over time.
|
|
7
|
+
|
|
8
|
+
## Table of Contents
|
|
9
|
+
|
|
10
|
+
- [Introduction](#introduction)
|
|
11
|
+
- [Installation](#installation)
|
|
12
|
+
- [Usage](#usage)
|
|
13
|
+
- [Development](#development)
|
|
14
|
+
- [Build & Publication](#build--publication)
|
|
15
|
+
- [Contributing](#contributing)
|
|
16
|
+
- [License](#license)
|
|
17
|
+
|
|
18
|
+
## Introduction
|
|
19
|
+
|
|
20
|
+
**Greenole Design System** gathers reusable components that follow a consistent visual identity.
|
|
21
|
+
It helps teams maintain design and usability standards across their React projects.
|
|
22
|
+
|
|
23
|
+
> **Note:**
|
|
24
|
+
> This library is in constant evolution. Existing components may be updated and new ones added over time.
|
|
25
|
+
|
|
26
|
+
## Installation
|
|
27
|
+
|
|
28
|
+
To install the library in your React project, run:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
npm install greenole-design-system
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
> **Note:**
|
|
35
|
+
> The library declares `react` and `react-dom` as peer dependencies, so ensure your project already has these installed.
|
|
36
|
+
|
|
37
|
+
## Usage
|
|
38
|
+
|
|
39
|
+
After installation, you need to import both the CSS styles and the components:
|
|
40
|
+
|
|
41
|
+
### 1. Import the CSS styles
|
|
42
|
+
|
|
43
|
+
First, import the CSS file in your main application file (usually `main.jsx`, `App.jsx`, or `index.js`):
|
|
44
|
+
|
|
45
|
+
```jsx
|
|
46
|
+
import 'greenole-design-system/dist/greenole.css';
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### 2. Import and use components
|
|
50
|
+
|
|
51
|
+
Then you can import and use the library's components:
|
|
52
|
+
|
|
53
|
+
```jsx
|
|
54
|
+
import React from 'react';
|
|
55
|
+
import { Typography } from 'greenole-design-system';
|
|
56
|
+
|
|
57
|
+
function App() {
|
|
58
|
+
return (
|
|
59
|
+
<div>
|
|
60
|
+
<Typography variant="h1">
|
|
61
|
+
The quick brown fox jumps over the lazy dog.
|
|
62
|
+
</Typography>
|
|
63
|
+
{/* Additional components will be added in the future */}
|
|
64
|
+
</div>
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export default App;
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Development
|
|
72
|
+
|
|
73
|
+
To contribute to or test the library locally:
|
|
74
|
+
|
|
75
|
+
1. Clone the repository:
|
|
76
|
+
```bash
|
|
77
|
+
git clone https://github.com/your-username/greenole-design-system.git
|
|
78
|
+
cd greenole-design-system
|
|
79
|
+
```
|
|
80
|
+
2. Install dependencies:
|
|
81
|
+
```bash
|
|
82
|
+
npm install
|
|
83
|
+
```
|
|
84
|
+
3. Start the development environment using Vite:
|
|
85
|
+
```bash
|
|
86
|
+
npm run dev
|
|
87
|
+
```
|
|
88
|
+
4. To view the documentation and components, we use **Storybook**:
|
|
89
|
+
```bash
|
|
90
|
+
npm run storybook
|
|
91
|
+
```
|
|
92
|
+
Storybook serves as the documentation and demo environment for the library's components.
|
|
93
|
+
|
|
94
|
+
## Build & Publication
|
|
95
|
+
|
|
96
|
+
To generate the library bundle:
|
|
97
|
+
|
|
98
|
+
1. Run the build command:
|
|
99
|
+
```bash
|
|
100
|
+
npm run build
|
|
101
|
+
```
|
|
102
|
+
This will create the `dist` folder with both CommonJS and ESModule files, as well as type declarations (if configured).
|
|
103
|
+
|
|
104
|
+
2. To test locally in another project, use `npm link`:
|
|
105
|
+
```bash
|
|
106
|
+
cd greenole-design-system
|
|
107
|
+
npm link
|
|
108
|
+
cd ../your-consumer-project
|
|
109
|
+
npm link greenole-design-system
|
|
110
|
+
```
|
|
111
|
+
3. When ready to publish:
|
|
112
|
+
```bash
|
|
113
|
+
npm login
|
|
114
|
+
npm publish --access public
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Contributing
|
|
118
|
+
|
|
119
|
+
Contributions are welcome! If you would like to help evolve the **Greenole Design System**, follow these steps:
|
|
120
|
+
|
|
121
|
+
1. Fork the repository.
|
|
122
|
+
2. Create a branch for your feature (`git checkout -b my-feature`).
|
|
123
|
+
3. Commit your changes.
|
|
124
124
|
4. Open a pull request for review.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const StyledButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
2
|
+
$variant: "primary" | "secondary" | "tertiary" | "link";
|
|
3
|
+
$size: "sm" | "md" | "lg";
|
|
4
|
+
$color: "default" | "danger";
|
|
5
|
+
$disabled: boolean;
|
|
6
|
+
$fullWidth: boolean;
|
|
7
|
+
}>> & string;
|
|
8
|
+
export declare const IconContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
9
|
+
export declare const TypographyWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PillsVariant } from './Pills.types';
|
|
2
|
+
export declare const PillsWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
+
$variant: PillsVariant;
|
|
4
|
+
$padding?: string;
|
|
5
|
+
}>> & string;
|
|
6
|
+
export declare const IconWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const ProgressWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export declare const ProgressInfo: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const ProgressPercent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export declare const ProgressTrack: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
5
|
+
$height: string;
|
|
6
|
+
}>> & string;
|
|
7
|
+
export declare const ProgressFill: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
8
|
+
$height: string;
|
|
9
|
+
$percent: number;
|
|
10
|
+
$color?: string;
|
|
11
|
+
}>> & string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const SpaceWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
|
+
$height: number;
|
|
3
|
+
$color: string;
|
|
4
|
+
$width: string | number;
|
|
5
|
+
}>> & string;
|
|
6
|
+
export declare const SpaceLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type SpaceHeight = "spacing-1" | "spacing-2" | "spacing-4" | "spacing-8" | "spacing-12" | "spacing-16" | "spacing-24" | "spacing-32" | "spacing-40" | "spacing-48" | "spacing-56" | "spacing-64" | "spacing-72" | "spacing-80" | "spacing-104";
|
|
2
|
-
export declare const spaceHeights: Record<SpaceHeight,
|
|
2
|
+
export declare const spaceHeights: Record<SpaceHeight, number>;
|
|
3
3
|
export interface SpaceProps {
|
|
4
4
|
height?: SpaceHeight;
|
|
5
5
|
color?: string;
|
|
6
|
-
width?: string;
|
|
6
|
+
width?: string | number;
|
|
7
7
|
className?: string;
|
|
8
8
|
showLabel?: boolean;
|
|
9
9
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const AccordionContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export declare const AccordionItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const AccordionHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
4
|
+
export declare const TitleWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const ChevronContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
6
|
+
$isOpen: boolean;
|
|
7
|
+
}>> & string;
|
|
8
|
+
export declare const AccordionContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
+
export declare const SubtitleContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
10
|
+
export declare const SubtitleIconContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -2,5 +2,8 @@ import { Meta, StoryObj } from '@storybook/react';
|
|
|
2
2
|
import { Card } from './';
|
|
3
3
|
declare const meta: Meta<typeof Card>;
|
|
4
4
|
export default meta;
|
|
5
|
-
type Story = StoryObj<
|
|
6
|
-
export declare const
|
|
5
|
+
type Story = StoryObj<typeof Card>;
|
|
6
|
+
export declare const Playground: Story;
|
|
7
|
+
export declare const CardWithIconAndActions: Story;
|
|
8
|
+
export declare const CardWithDropdownHeader: Story;
|
|
9
|
+
export declare const CardWithSaveCancel: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const CardWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
|
+
$width?: string;
|
|
3
|
+
$height?: string;
|
|
4
|
+
}>> & string;
|
|
5
|
+
export declare const CardHeaderWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
6
|
+
$background?: string;
|
|
7
|
+
}>> & string;
|
|
8
|
+
export declare const CardHeaderLeft: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
+
export declare const CardBodyWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
10
|
+
$withImage?: boolean;
|
|
11
|
+
}>> & string;
|
|
12
|
+
export declare const CardBodyContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
|
+
export declare const CardFooterWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
14
|
+
$align: "left" | "center" | "right";
|
|
15
|
+
}>> & string;
|
|
@@ -2,21 +2,25 @@ import { HTMLAttributes, ReactNode } from 'react';
|
|
|
2
2
|
export interface CardProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
className?: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
width?: string | number;
|
|
6
|
+
height?: string | number;
|
|
7
7
|
}
|
|
8
|
-
export interface CardHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
|
-
title
|
|
10
|
-
titleSize?:
|
|
8
|
+
export interface CardHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
9
|
+
title?: string | ReactNode;
|
|
10
|
+
titleSize?: "sm" | "md" | "lg";
|
|
11
11
|
className?: string;
|
|
12
|
-
|
|
12
|
+
icon?: ReactNode;
|
|
13
|
+
actions?: ReactNode;
|
|
14
|
+
background?: string;
|
|
13
15
|
}
|
|
14
|
-
export interface
|
|
16
|
+
export interface CardBodyProps extends HTMLAttributes<HTMLDivElement> {
|
|
15
17
|
children: ReactNode;
|
|
16
18
|
className?: string;
|
|
19
|
+
withImage?: boolean;
|
|
20
|
+
image?: ReactNode;
|
|
17
21
|
}
|
|
18
22
|
export interface CardFooterProps extends HTMLAttributes<HTMLDivElement> {
|
|
19
23
|
children: ReactNode;
|
|
20
24
|
className?: string;
|
|
21
|
-
align?:
|
|
25
|
+
align?: "left" | "center" | "right";
|
|
22
26
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
declare const CardBody: React.FC<
|
|
2
|
+
import { CardBodyProps } from './Card.types';
|
|
3
|
+
declare const CardBody: React.FC<CardBodyProps>;
|
|
4
4
|
export default CardBody;
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { default as Empty } from './Empty';
|
|
3
|
-
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: () => React.JSX.Element;
|
|
7
|
-
parameters: {
|
|
8
|
-
layout: string;
|
|
9
|
-
docs: {
|
|
10
|
-
description: {
|
|
11
|
-
component: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
tags: string[];
|
|
16
|
-
};
|
|
3
|
+
declare const meta: Meta<typeof Empty>;
|
|
17
4
|
export default meta;
|
|
18
5
|
type Story = StoryObj<typeof Empty>;
|
|
19
6
|
export declare const Default: Story;
|
|
7
|
+
export declare const WithDescription: Story;
|
|
20
8
|
export declare const InCard: Story;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const EmptyWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export declare const EmptyIconWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
+
$bg: string;
|
|
4
|
+
}>> & string;
|
|
5
|
+
export declare const EmptyContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const ModalOverlay: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
|
+
$showOverlay: boolean;
|
|
3
|
+
}>> & string;
|
|
4
|
+
export declare const ModalContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const CloseButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
6
|
+
export declare const ModalHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
export declare const IconContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export declare const TitleContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
9
|
+
$isString: boolean;
|
|
10
|
+
}>> & string;
|
|
11
|
+
export declare const ContentContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
12
|
+
$hasTitle: boolean;
|
|
13
|
+
}>> & string;
|
|
14
|
+
export declare const ActionsContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
15
|
+
export declare const ButtonWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
16
|
+
export declare const iconStyles: {
|
|
17
|
+
error: import('styled-components').RuleSet<object>;
|
|
18
|
+
warning: import('styled-components').RuleSet<object>;
|
|
19
|
+
success: import('styled-components').RuleSet<object>;
|
|
20
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const TableContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export declare const Table: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, never>> & string;
|
|
3
|
+
export declare const TableHeaderCell: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, {
|
|
4
|
+
$align?: "left" | "center" | "right";
|
|
5
|
+
}>> & string;
|
|
6
|
+
export declare const SelectableHeaderCell: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, never>> & string;
|
|
7
|
+
export declare const HeaderContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export declare const CheckboxButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
9
|
+
export declare const TableRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, never>> & string;
|
|
10
|
+
export declare const TableBodyCell: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {
|
|
11
|
+
$align?: "left" | "center" | "right";
|
|
12
|
+
}>> & string;
|
|
13
|
+
export declare const SelectableBodyCell: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, never>> & string;
|
|
14
|
+
export declare const PaginationContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
15
|
+
export declare const PaginationLeft: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
16
|
+
export declare const PaginationRight: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
17
|
+
export declare const PageSizeSelect: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, never>> & string;
|
|
18
|
+
export declare const SelectWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
19
|
+
export declare const ChevronContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
20
|
+
export declare const PageControls: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
21
|
+
export declare const NavButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
22
|
+
$disabled?: boolean;
|
|
23
|
+
}>> & string;
|
|
24
|
+
export declare const PageButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
25
|
+
$active?: boolean;
|
|
26
|
+
}>> & string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const TabsWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export declare const TabsHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
+
$isMobile?: boolean;
|
|
4
|
+
}>> & string;
|
|
5
|
+
export declare const TabButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
6
|
+
$active?: boolean;
|
|
7
|
+
}>> & string;
|
|
8
|
+
export declare const TabsContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
declare const typographyVariants: {
|
|
2
|
+
h1: import('styled-components').RuleSet<object>;
|
|
3
|
+
h2: import('styled-components').RuleSet<object>;
|
|
4
|
+
h3: import('styled-components').RuleSet<object>;
|
|
5
|
+
h4: import('styled-components').RuleSet<object>;
|
|
6
|
+
h5: import('styled-components').RuleSet<object>;
|
|
7
|
+
h6: import('styled-components').RuleSet<object>;
|
|
8
|
+
'body-xl-bold': import('styled-components').RuleSet<object>;
|
|
9
|
+
'body-xl-semibold': import('styled-components').RuleSet<object>;
|
|
10
|
+
'body-xl-medium': import('styled-components').RuleSet<object>;
|
|
11
|
+
'body-xl-regular': import('styled-components').RuleSet<object>;
|
|
12
|
+
'body-lg-bold': import('styled-components').RuleSet<object>;
|
|
13
|
+
'body-lg-semibold': import('styled-components').RuleSet<object>;
|
|
14
|
+
'body-lg-medium': import('styled-components').RuleSet<object>;
|
|
15
|
+
'body-lg-regular': import('styled-components').RuleSet<object>;
|
|
16
|
+
'body-md-bold': import('styled-components').RuleSet<object>;
|
|
17
|
+
'body-md-semibold': import('styled-components').RuleSet<object>;
|
|
18
|
+
'body-md-medium': import('styled-components').RuleSet<object>;
|
|
19
|
+
'body-md-regular': import('styled-components').RuleSet<object>;
|
|
20
|
+
'body-sm-bold': import('styled-components').RuleSet<object>;
|
|
21
|
+
'body-sm-semibold': import('styled-components').RuleSet<object>;
|
|
22
|
+
'body-sm-medium': import('styled-components').RuleSet<object>;
|
|
23
|
+
'body-sm-regular': import('styled-components').RuleSet<object>;
|
|
24
|
+
'caption-bold': import('styled-components').RuleSet<object>;
|
|
25
|
+
'caption-semibold': import('styled-components').RuleSet<object>;
|
|
26
|
+
'caption-medium': import('styled-components').RuleSet<object>;
|
|
27
|
+
'caption-regular': import('styled-components').RuleSet<object>;
|
|
28
|
+
};
|
|
29
|
+
export declare const StyledH1: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
|
|
30
|
+
$variant: string;
|
|
31
|
+
}>> & string;
|
|
32
|
+
export declare const StyledH2: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
|
|
33
|
+
$variant: string;
|
|
34
|
+
}>> & string;
|
|
35
|
+
export declare const StyledH3: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
|
|
36
|
+
$variant: string;
|
|
37
|
+
}>> & string;
|
|
38
|
+
export declare const StyledH4: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
|
|
39
|
+
$variant: string;
|
|
40
|
+
}>> & string;
|
|
41
|
+
export declare const StyledH5: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
|
|
42
|
+
$variant: string;
|
|
43
|
+
}>> & string;
|
|
44
|
+
export declare const StyledH6: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
|
|
45
|
+
$variant: string;
|
|
46
|
+
}>> & string;
|
|
47
|
+
export declare const StyledP: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {
|
|
48
|
+
$variant: string;
|
|
49
|
+
}>> & string;
|
|
50
|
+
export { typographyVariants };
|