greenole-design-system 1.1.53 → 1.1.55
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 +147 -147
- package/dist/base-components/Dropdown/Dropdown.stories.d.ts +1 -6
- package/dist/base-components/Dropdown/Dropdown.styles.d.ts +1 -5
- package/dist/base-components/Dropdown/Dropdown.types.d.ts +1 -6
- package/dist/base-components/Input/Input.styles.d.ts +8 -9
- package/dist/base-components/Input/Input.types.d.ts +0 -1
- package/dist/base-components/Loading/Loading.types.d.ts +0 -5
- package/dist/base-components/Pills/Pills.stories.d.ts +1 -1
- package/dist/base-components/Pills/Pills.types.d.ts +1 -3
- package/dist/base-components/RangeSlider/RangeSlider.styles.d.ts +2 -2
- package/dist/base-components/Space/Space.types.d.ts +2 -2
- package/dist/base-components/SwitchButton/SwitchButton.styles.d.ts +5 -5
- package/dist/base-components/Toast/Toast.stories.d.ts +1 -5
- package/dist/base-components/Toast/Toast.styles.d.ts +0 -4
- package/dist/base-components/Tooltip/Tooltip.styles.d.ts +2 -2
- package/dist/components/Calendar/Calendar.d.ts +1 -11
- package/dist/components/Calendar/Calendar.stories.d.ts +4 -7
- package/dist/components/Calendar/Calendar.styles.d.ts +11 -29
- package/dist/components/Calendar/Calendar.types.d.ts +2 -12
- package/dist/components/Calendar/Calendar.utils.d.ts +1 -5
- package/dist/components/Calendar/DateRangePicker.d.ts +2 -12
- package/dist/components/Calendar/Presets.d.ts +0 -2
- package/dist/components/Card/Card.stories.d.ts +2 -5
- package/dist/components/Card/Card.types.d.ts +8 -12
- package/dist/components/Card/CardBody.d.ts +2 -2
- package/dist/components/Drawer/Drawer.types.d.ts +0 -2
- package/dist/components/Empty/Empty.d.ts +1 -2
- package/dist/components/Empty/Empty.stories.d.ts +15 -3
- package/dist/components/Icons/Checkbox.d.ts +1 -4
- package/dist/components/Icons/Icons.d.ts +0 -2
- package/dist/components/Modal/Modal.types.d.ts +0 -2
- package/dist/components/Table/DataTable.d.ts +18 -0
- package/dist/components/Table/DataTable.stories.d.ts +8 -0
- package/dist/components/Table/Pagination.d.ts +10 -0
- package/dist/components/Table/types.d.ts +10 -0
- package/dist/components/Tabs/Tabs.stories.d.ts +6 -8
- package/dist/components/Tabs/Tabs.types.d.ts +1 -2
- package/dist/components/Typography/Typography.d.ts +1 -1
- package/dist/components/Upload/Upload.style.d.ts +2 -4
- package/dist/components/Upload/Upload.types.d.ts +1 -4
- package/dist/greenole-design-system.cjs.js +458 -1970
- package/dist/greenole-design-system.es.js +5040 -7542
- package/dist/greenole.css +917 -33
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -15
- package/package.json +94 -90
- package/dist/base-components/Button/Button.styles.d.ts +0 -9
- package/dist/base-components/CollapsibleMenu/CollapsibleMenu.d.ts +0 -4
- package/dist/base-components/CollapsibleMenu/CollapsibleMenu.stories.d.ts +0 -6
- package/dist/base-components/CollapsibleMenu/CollapsibleMenu.styles.d.ts +0 -6
- package/dist/base-components/CollapsibleMenu/CollapsibleMenu.types.d.ts +0 -6
- package/dist/base-components/CollapsibleMenu/index.d.ts +0 -1
- package/dist/base-components/DropdownMenu/DropdownMenu.d.ts +0 -4
- package/dist/base-components/DropdownMenu/DropdownMenu.stories.d.ts +0 -6
- package/dist/base-components/DropdownMenu/DropdownMenu.styles.d.ts +0 -13
- package/dist/base-components/DropdownMenu/DropdownMenu.types.d.ts +0 -10
- package/dist/base-components/DropdownMenu/index.d.ts +0 -1
- package/dist/base-components/Loading/GreenoleLogo.d.ts +0 -6
- package/dist/base-components/Loading/loading.styles.d.ts +0 -18
- package/dist/base-components/Pills/Pills.styles.d.ts +0 -8
- package/dist/base-components/ProgressBar/ProgressBar.styles.d.ts +0 -11
- package/dist/base-components/Skeleton/Skeleton.d.ts +0 -4
- package/dist/base-components/Skeleton/Skeleton.stories.d.ts +0 -6
- package/dist/base-components/Skeleton/Skeleton.styles.d.ts +0 -2
- package/dist/base-components/Skeleton/Skeleton.types.d.ts +0 -5
- package/dist/base-components/Skeleton/index.d.ts +0 -1
- package/dist/base-components/Space/Space.styles.d.ts +0 -6
- package/dist/base-components/Toast/ToastProvider.d.ts +0 -20
- package/dist/components/Accordion/Accordion.styles.d.ts +0 -10
- package/dist/components/BottomSheet/BottomSheet.d.ts +0 -4
- package/dist/components/BottomSheet/BottomSheet.stories.d.ts +0 -6
- package/dist/components/BottomSheet/BottomSheet.styles.d.ts +0 -34
- package/dist/components/BottomSheet/BottomSheet.types.d.ts +0 -16
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -4
- package/dist/components/Breadcrumb/Breadcrumb.stories.d.ts +0 -12
- package/dist/components/Breadcrumb/Breadcrumb.styles.d.ts +0 -15
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +0 -17
- package/dist/components/Breadcrumb/index.d.ts +0 -2
- package/dist/components/Card/Card.styles.d.ts +0 -15
- package/dist/components/Empty/Empty.styles.d.ts +0 -5
- package/dist/components/Empty/Empty.types.d.ts +0 -10
- package/dist/components/Icons/ArrowLeft.d.ts +0 -9
- package/dist/components/Icons/ChevronRight.d.ts +0 -9
- package/dist/components/Modal/Modal.styles.d.ts +0 -20
- package/dist/components/Table/Table.d.ts +0 -4
- package/dist/components/Table/Table.stories.d.ts +0 -10
- package/dist/components/Table/Table.styles.d.ts +0 -23
- package/dist/components/Table/Table.types.d.ts +0 -35
- package/dist/components/Table/index.d.ts +0 -1
- package/dist/components/Tabs/Tabs.styles.d.ts +0 -14
- package/dist/components/Toolbar/Toolbar.d.ts +0 -4
- package/dist/components/Toolbar/Toolbar.stories.d.ts +0 -6
- package/dist/components/Toolbar/Toolbar.styles.d.ts +0 -18
- package/dist/components/Toolbar/Toolbar.types.d.ts +0 -14
- package/dist/components/Toolbar/index.d.ts +0 -1
- package/dist/components/Typography/Typography.styles.d.ts +0 -51
- package/dist/layouts/FeedbackPage/FeedbackPage.d.ts +0 -4
- package/dist/layouts/FeedbackPage/FeedbackPage.stories.d.ts +0 -6
- package/dist/layouts/FeedbackPage/FeedbackPage.styles.d.ts +0 -3
- package/dist/layouts/FeedbackPage/FeedbackPage.types.d.ts +0 -12
- package/dist/layouts/PageHeader/PageHeader.d.ts +0 -4
- package/dist/layouts/PageHeader/PageHeader.stories.d.ts +0 -15
- package/dist/layouts/PageHeader/PageHeader.styles.d.ts +0 -21
- package/dist/layouts/PageHeader/PageHeader.types.d.ts +0 -28
- package/dist/layouts/PageHeader/index.d.ts +0 -2
- package/dist/mocks/optionsService.d.ts +0 -12
- package/dist/mocks/user.d.ts +0 -6
- package/dist/mocks/userService.d.ts +0 -13
- package/dist/utils/i18n/types.d.ts +0 -1
- package/dist/utils/screen.d.ts +0 -6
package/README.md
CHANGED
|
@@ -1,147 +1,147 @@
|
|
|
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
|
-
|
|
100
|
-
```bash
|
|
101
|
-
npm run build
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
This will create the `dist` folder with both CommonJS and ESModule files, as well as type declarations (if configured).
|
|
105
|
-
|
|
106
|
-
2. To test locally in another project, use `npm link`:
|
|
107
|
-
```bash
|
|
108
|
-
cd greenole-design-system
|
|
109
|
-
npm link
|
|
110
|
-
cd ../your-consumer-project
|
|
111
|
-
npm link greenole-design-system
|
|
112
|
-
```
|
|
113
|
-
3. When ready to publish:
|
|
114
|
-
|
|
115
|
-
```bash
|
|
116
|
-
npm login
|
|
117
|
-
npm publish --access public
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
## Publishing Storybook to GitHub Pages
|
|
121
|
-
|
|
122
|
-
1. Build the Storybook:
|
|
123
|
-
|
|
124
|
-
```bash
|
|
125
|
-
npm run build-storybook
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
This generates the static files for your Storybook.
|
|
129
|
-
|
|
130
|
-
2. Deploy to GitHub Pages:
|
|
131
|
-
|
|
132
|
-
```bash
|
|
133
|
-
npm run deploy-storybook
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
This will automatically push the built files to the configured branch (`gh-pages`).
|
|
137
|
-
|
|
138
|
-
After that, you can access the updated Storybook at: [Design System](https://greenole-iot.github.io/greenole-design-system)
|
|
139
|
-
|
|
140
|
-
## Contributing
|
|
141
|
-
|
|
142
|
-
Contributions are welcome! If you would like to help evolve the **Greenole Design System**, follow these steps:
|
|
143
|
-
|
|
144
|
-
1. Fork the repository.
|
|
145
|
-
2. Create a branch for your feature (`git checkout -b my-feature`).
|
|
146
|
-
3. Commit your changes.
|
|
147
|
-
4. Open a pull request for review.
|
|
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
|
+
|
|
100
|
+
```bash
|
|
101
|
+
npm run build
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
This will create the `dist` folder with both CommonJS and ESModule files, as well as type declarations (if configured).
|
|
105
|
+
|
|
106
|
+
2. To test locally in another project, use `npm link`:
|
|
107
|
+
```bash
|
|
108
|
+
cd greenole-design-system
|
|
109
|
+
npm link
|
|
110
|
+
cd ../your-consumer-project
|
|
111
|
+
npm link greenole-design-system
|
|
112
|
+
```
|
|
113
|
+
3. When ready to publish:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
npm login
|
|
117
|
+
npm publish --access public
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Publishing Storybook to GitHub Pages
|
|
121
|
+
|
|
122
|
+
1. Build the Storybook:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
npm run build-storybook
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
This generates the static files for your Storybook.
|
|
129
|
+
|
|
130
|
+
2. Deploy to GitHub Pages:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
npm run deploy-storybook
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
This will automatically push the built files to the configured branch (`gh-pages`).
|
|
137
|
+
|
|
138
|
+
After that, you can access the updated Storybook at: [Design System](https://greenole-iot.github.io/greenole-design-system)
|
|
139
|
+
|
|
140
|
+
## Contributing
|
|
141
|
+
|
|
142
|
+
Contributions are welcome! If you would like to help evolve the **Greenole Design System**, follow these steps:
|
|
143
|
+
|
|
144
|
+
1. Fork the repository.
|
|
145
|
+
2. Create a branch for your feature (`git checkout -b my-feature`).
|
|
146
|
+
3. Commit your changes.
|
|
147
|
+
4. Open a pull request for review.
|
|
@@ -5,14 +5,9 @@ export default meta;
|
|
|
5
5
|
type Story = StoryObj<typeof Dropdown>;
|
|
6
6
|
export declare const Default: Story;
|
|
7
7
|
export declare const Multiple: Story;
|
|
8
|
-
export declare const MultipleWithShowTags: Story;
|
|
9
8
|
export declare const Searchable: Story;
|
|
10
9
|
export declare const WithMaxSelected: Story;
|
|
11
|
-
export declare const
|
|
10
|
+
export declare const WithLoadMore: Story;
|
|
12
11
|
export declare const Invalid: Story;
|
|
13
12
|
export declare const WithMessage: Story;
|
|
14
13
|
export declare const OptionsWithIcons: Story;
|
|
15
|
-
export declare const OptionsWithIconsMultipleWithShowTags: Story;
|
|
16
|
-
export declare const WithClear: Story;
|
|
17
|
-
export declare const WithPortal: Story;
|
|
18
|
-
export declare const NoOptions: Story;
|
|
@@ -17,7 +17,7 @@ type StyledDropdownMessageProps = {
|
|
|
17
17
|
$invalid: boolean;
|
|
18
18
|
};
|
|
19
19
|
export declare const DropdownContainer: 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 DropdownLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').
|
|
20
|
+
export declare const DropdownLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
21
21
|
export declare const DropdownMessage: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledDropdownMessageProps>> & string;
|
|
22
22
|
export declare const DropdownButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, StyledButtonProps>> & string;
|
|
23
23
|
export declare const CaretIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGProps<SVGSVGElement>, {
|
|
@@ -32,8 +32,4 @@ export declare const OptionCheckbox: import('styled-components/dist/types').ISty
|
|
|
32
32
|
export declare const OptionLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
33
33
|
export declare const NoResults: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
34
34
|
export declare const Sentinel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
35
|
-
export declare const DropdownTagsWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
36
|
-
export declare const SelectedLabelsWrapperOverflow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
37
|
-
export declare const SelectedLabelsWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
38
|
-
export declare const SelectedLabels: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
39
35
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { THookTypes } from '../../utils/i18n/types';
|
|
3
2
|
export interface DropdownOptionsType {
|
|
4
3
|
icon?: ReactNode;
|
|
5
4
|
label: string;
|
|
@@ -23,11 +22,7 @@ export interface DropdownTypes {
|
|
|
23
22
|
invalid?: boolean;
|
|
24
23
|
message?: string | ReactNode;
|
|
25
24
|
className?: string;
|
|
26
|
-
|
|
27
|
-
showClearButton?: boolean;
|
|
28
|
-
container?: HTMLElement;
|
|
29
|
-
showTags?: boolean;
|
|
30
|
-
t?: THookTypes;
|
|
25
|
+
displayValue?: string;
|
|
31
26
|
onChange: (value: string | string[]) => void;
|
|
32
27
|
onSearch?: (searchTerm: string) => void;
|
|
33
28
|
onLoadMore?: () => void;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
export declare const Wrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
|
-
|
|
3
|
-
$width?: number | string;
|
|
2
|
+
fullWidth?: boolean;
|
|
4
3
|
}>> & string;
|
|
4
|
+
export declare const Label: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
|
|
5
5
|
export declare const FieldWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
hasError?: boolean;
|
|
8
|
+
isValid?: boolean;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
textArea?: boolean;
|
|
11
11
|
}>> & string;
|
|
12
12
|
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;
|
|
13
13
|
export declare const BaseFieldStyles: import('styled-components').RuleSet<object>;
|
|
14
|
-
export declare const Label: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
|
|
15
14
|
export declare const InputField: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
16
15
|
export declare const TextAreaField: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, never>> & string;
|
|
17
16
|
export declare const ErrorText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
18
17
|
export declare const Subtitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
19
18
|
export declare const CharCounter: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
20
|
-
|
|
19
|
+
hasError?: boolean;
|
|
21
20
|
}>> & string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypographyVariant } from '../../components/Typography/Typography';
|
|
2
|
-
export type PillsVariant =
|
|
2
|
+
export type PillsVariant = 'neutral' | 'success' | 'danger' | 'warning' | 'info' | 'primary';
|
|
3
3
|
export interface PillsProps {
|
|
4
4
|
label: string;
|
|
5
5
|
variant?: PillsVariant;
|
|
@@ -8,6 +8,4 @@ export interface PillsProps {
|
|
|
8
8
|
iconLeft?: React.ReactNode;
|
|
9
9
|
iconRight?: React.ReactNode;
|
|
10
10
|
className?: string;
|
|
11
|
-
background?: string;
|
|
12
|
-
color?: string;
|
|
13
11
|
}
|
|
@@ -2,6 +2,6 @@ export declare const SliderWrapper: import('styled-components/dist/types').IStyl
|
|
|
2
2
|
export declare const ValueBox: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
3
|
export declare const ValueText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
4
4
|
export declare const SliderInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
percent: number;
|
|
6
|
+
color: string;
|
|
7
7
|
}>> & 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, string>;
|
|
3
3
|
export interface SpaceProps {
|
|
4
4
|
height?: SpaceHeight;
|
|
5
5
|
color?: string;
|
|
6
|
-
width?: string
|
|
6
|
+
width?: string;
|
|
7
7
|
className?: string;
|
|
8
8
|
showLabel?: boolean;
|
|
9
9
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const SwitchWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
checked: boolean;
|
|
3
|
+
color: string;
|
|
4
|
+
variant: "filled" | "outline";
|
|
5
|
+
thumbVariant: "filled" | "outline";
|
|
6
|
+
disabled?: boolean;
|
|
7
7
|
}>> & string;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
import { default as Toast } from './Toast';
|
|
4
3
|
declare const meta: Meta<typeof Toast>;
|
|
5
4
|
export default meta;
|
|
6
5
|
type Story = StoryObj<typeof Toast>;
|
|
7
6
|
export declare const Playground: Story;
|
|
8
7
|
export declare const Gallery: Story;
|
|
9
|
-
export declare const InteractiveSandbox:
|
|
10
|
-
name: string;
|
|
11
|
-
render: () => React.JSX.Element;
|
|
12
|
-
};
|
|
8
|
+
export declare const InteractiveSandbox: Story;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
export declare const Wrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
2
|
variant: string;
|
|
3
3
|
}>> & string;
|
|
4
|
-
export declare const ProgressBar: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
5
|
-
variant: string;
|
|
6
|
-
autoDismissTime: number;
|
|
7
|
-
}>> & string;
|
|
8
4
|
export declare const IconWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
9
5
|
variant: string;
|
|
10
6
|
}>> & string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TooltipPositionTypes } from './Tooltip.types';
|
|
2
2
|
declare const TooltipWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
3
|
declare const TooltipBox: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
-
|
|
4
|
+
position: TooltipPositionTypes;
|
|
5
5
|
}>> & string;
|
|
6
6
|
declare const TooltipArrow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
7
|
-
|
|
7
|
+
position: TooltipPositionTypes;
|
|
8
8
|
}>> & string;
|
|
9
9
|
export { TooltipArrow, TooltipBox, TooltipWrapper };
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { InputProps } from '../../base-components/Input/Input.types';
|
|
3
|
-
import { THookTypes } from '../../utils/i18n/types';
|
|
4
2
|
import { CalendarProps } from './Calendar.types';
|
|
5
|
-
|
|
6
|
-
inputProps?: InputProps;
|
|
7
|
-
autoClose?: boolean;
|
|
8
|
-
t?: THookTypes;
|
|
9
|
-
clearable?: boolean;
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
dropdownLimit?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const Calendar: React.FC<ExtendedCalendarProps>;
|
|
3
|
+
export declare const Calendar: React.FC<CalendarProps>;
|
|
14
4
|
export default Calendar;
|
|
@@ -3,10 +3,7 @@ import { Calendar } from './Calendar';
|
|
|
3
3
|
declare const meta: Meta<typeof Calendar>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof Calendar>;
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const InputSingle_MinMax: Story;
|
|
11
|
-
export declare const InputRange_WeekendsDisabled: Story;
|
|
12
|
-
export declare const MobileRange_Sheet: Story;
|
|
6
|
+
export declare const Docs: Story;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const CustomRange: Story;
|
|
9
|
+
export declare const InsideCard: Story;
|
|
@@ -1,29 +1,11 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}>> & string;
|
|
13
|
-
export declare const MonthTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
14
|
-
$isMobile?: boolean;
|
|
15
|
-
}>> & string;
|
|
16
|
-
export declare const NavButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
17
|
-
export declare const DaysOfWeekContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
18
|
-
$isMobile?: boolean;
|
|
19
|
-
}>> & string;
|
|
20
|
-
export declare const DaysGrid: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
21
|
-
$isMobile?: boolean;
|
|
22
|
-
}>> & string;
|
|
23
|
-
export declare const DayButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
24
|
-
$isSelected?: boolean;
|
|
25
|
-
$inRange?: boolean;
|
|
26
|
-
$isStart?: boolean;
|
|
27
|
-
$isEnd?: boolean;
|
|
28
|
-
$isMobile?: boolean;
|
|
29
|
-
}>> & string;
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
dayBase: string;
|
|
3
|
+
dayHover: string;
|
|
4
|
+
dayInRange: string;
|
|
5
|
+
dayStart: string;
|
|
6
|
+
dayEnd: string;
|
|
7
|
+
daySingle: string;
|
|
8
|
+
presetBase: string;
|
|
9
|
+
presetActive: string;
|
|
10
|
+
presetHover: string;
|
|
11
|
+
};
|
|
@@ -4,16 +4,6 @@ export type DateRange = {
|
|
|
4
4
|
end: Dayjs | null;
|
|
5
5
|
};
|
|
6
6
|
export interface CalendarProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
selectedRange?: DateRange;
|
|
10
|
-
onChange: (date: Dayjs | null, range?: DateRange) => void;
|
|
11
|
-
minDate?: Dayjs;
|
|
12
|
-
maxDate?: Dayjs;
|
|
13
|
-
locale?: string;
|
|
14
|
-
inline?: boolean;
|
|
15
|
-
disabledDates?: Dayjs[];
|
|
16
|
-
showPresets?: boolean;
|
|
17
|
-
isMobile?: boolean;
|
|
18
|
-
rangeSinglePanel?: boolean;
|
|
7
|
+
defaultRange?: DateRange;
|
|
8
|
+
onChange?: (range: DateRange) => void;
|
|
19
9
|
}
|
|
@@ -6,9 +6,5 @@ export declare const isSameRange: (a: {
|
|
|
6
6
|
start: Dayjs | null;
|
|
7
7
|
end: Dayjs | null;
|
|
8
8
|
}) => boolean | undefined;
|
|
9
|
-
export declare const formatDate: (date: Dayjs | null
|
|
10
|
-
export declare const formatRange: (range: {
|
|
11
|
-
start: Dayjs | null;
|
|
12
|
-
end: Dayjs | null;
|
|
13
|
-
}, locale?: string) => string;
|
|
9
|
+
export declare const formatDate: (date: Dayjs | null) => string;
|
|
14
10
|
export declare const getDaysOfWeek: (locale?: string) => string[];
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
import { Dayjs } from 'dayjs';
|
|
2
1
|
import { default as React } from 'react';
|
|
3
2
|
import { DateRange } from './Calendar.types';
|
|
4
3
|
interface Props {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
selectedRange?: DateRange;
|
|
8
|
-
onChange: (date: Dayjs | null, range?: DateRange) => void;
|
|
9
|
-
minDate?: Dayjs;
|
|
10
|
-
maxDate?: Dayjs;
|
|
11
|
-
locale: string;
|
|
12
|
-
disabledDates: Dayjs[];
|
|
13
|
-
rangeSinglePanel?: boolean;
|
|
14
|
-
/** Ativa espaçamento/tamanhos mais confortáveis */
|
|
15
|
-
isMobile?: boolean;
|
|
4
|
+
range: DateRange;
|
|
5
|
+
onChange: (range: DateRange) => void;
|
|
16
6
|
}
|
|
17
7
|
export declare const DateRangePicker: React.FC<Props>;
|
|
18
8
|
export {};
|