greenole-design-system 1.1.35 → 1.1.37

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.
Files changed (136) hide show
  1. package/README.md +123 -123
  2. package/dist/App.d.ts +3 -0
  3. package/dist/base-components/Button/Button.d.ts +4 -0
  4. package/dist/base-components/Button/Button.stories.d.ts +13 -0
  5. package/dist/base-components/Button/Button.types.d.ts +16 -0
  6. package/dist/base-components/Button/index.d.ts +2 -0
  7. package/dist/base-components/Dropdown/Dropdown.d.ts +4 -0
  8. package/dist/base-components/Dropdown/Dropdown.stories.d.ts +13 -0
  9. package/dist/base-components/Dropdown/Dropdown.styles.d.ts +35 -0
  10. package/dist/base-components/Dropdown/Dropdown.types.d.ts +29 -0
  11. package/dist/base-components/Dropdown/index.d.ts +2 -0
  12. package/dist/base-components/Input/Input.d.ts +4 -0
  13. package/dist/base-components/Input/Input.stories.d.ts +8 -0
  14. package/dist/base-components/Input/Input.styles.d.ts +20 -0
  15. package/dist/base-components/Input/Input.types.d.ts +23 -0
  16. package/dist/base-components/Loading/Loading.d.ts +4 -0
  17. package/dist/base-components/Loading/Loading.stories.d.ts +6 -0
  18. package/dist/base-components/Loading/Loading.types.d.ts +6 -0
  19. package/dist/base-components/Loading/index.d.ts +2 -0
  20. package/dist/base-components/Pills/Pills.d.ts +4 -0
  21. package/dist/base-components/Pills/Pills.stories.d.ts +15 -0
  22. package/dist/base-components/Pills/Pills.types.d.ts +11 -0
  23. package/dist/base-components/ProgressBar/ProgressBar.d.ts +4 -0
  24. package/dist/base-components/ProgressBar/ProgressBar.stories.d.ts +9 -0
  25. package/dist/base-components/ProgressBar/ProgressBar.types.d.ts +19 -0
  26. package/dist/base-components/RangeSlider/RangeSlider.d.ts +4 -0
  27. package/dist/base-components/RangeSlider/RangeSlider.stories.d.ts +18 -0
  28. package/dist/base-components/RangeSlider/RangeSlider.styles.d.ts +7 -0
  29. package/dist/base-components/RangeSlider/RangeSlider.types.d.ts +11 -0
  30. package/dist/base-components/Space/Space.d.ts +4 -0
  31. package/dist/base-components/Space/Space.stories.d.ts +9 -0
  32. package/dist/base-components/Space/Space.types.d.ts +9 -0
  33. package/dist/base-components/SwitchButton/SwitchButton.d.ts +4 -0
  34. package/dist/base-components/SwitchButton/SwitchButton.stories.d.ts +6 -0
  35. package/dist/base-components/SwitchButton/SwitchButton.styles.d.ts +7 -0
  36. package/dist/base-components/SwitchButton/SwitchButton.types.d.ts +9 -0
  37. package/dist/base-components/Toast/Toast.stories.d.ts +5 -1
  38. package/dist/base-components/Toast/Toast.styles.d.ts +4 -0
  39. package/dist/base-components/Toast/ToastProvider.d.ts +20 -0
  40. package/dist/base-components/Tooltip/Tooltip.d.ts +4 -0
  41. package/dist/base-components/Tooltip/Tooltip.stories.d.ts +7 -0
  42. package/dist/base-components/Tooltip/Tooltip.styles.d.ts +9 -0
  43. package/dist/base-components/Tooltip/Tooltip.types.d.ts +14 -0
  44. package/dist/components/Accordion/Accordion.d.ts +4 -0
  45. package/dist/components/Accordion/Accordion.stories.d.ts +6 -0
  46. package/dist/components/Accordion/types.d.ts +8 -0
  47. package/dist/components/Calendar/Calendar.d.ts +4 -0
  48. package/dist/components/Calendar/Calendar.stories.d.ts +9 -0
  49. package/dist/components/Calendar/Calendar.styles.d.ts +11 -0
  50. package/dist/components/Calendar/Calendar.types.d.ts +9 -0
  51. package/dist/components/Calendar/Calendar.utils.d.ts +10 -0
  52. package/dist/components/Calendar/DateRangePicker.d.ts +8 -0
  53. package/dist/components/Calendar/Presets.d.ts +8 -0
  54. package/dist/components/Calendar/index.d.ts +2 -0
  55. package/dist/components/Card/Card.d.ts +4 -0
  56. package/dist/components/Card/Card.stories.d.ts +6 -0
  57. package/dist/components/Card/Card.types.d.ts +22 -0
  58. package/dist/components/Card/CardBody.d.ts +4 -0
  59. package/dist/components/Card/CardFooter.d.ts +4 -0
  60. package/dist/components/Card/CardHeader.d.ts +4 -0
  61. package/dist/components/Card/index.d.ts +5 -0
  62. package/dist/components/Drawer/Drawer.d.ts +4 -0
  63. package/dist/components/Drawer/Drawer.stories.d.ts +10 -0
  64. package/dist/components/Drawer/Drawer.styles.d.ts +23 -0
  65. package/dist/components/Drawer/Drawer.types.d.ts +16 -0
  66. package/dist/components/Drawer/index.d.ts +1 -0
  67. package/dist/components/Empty/Empty.d.ts +3 -0
  68. package/dist/components/Empty/Empty.stories.d.ts +20 -0
  69. package/dist/components/Icons/ArrowBack.d.ts +6 -0
  70. package/dist/components/Icons/ArrowForward.d.ts +6 -0
  71. package/dist/components/Icons/Avatar.d.ts +6 -0
  72. package/dist/components/Icons/Campaing.d.ts +6 -0
  73. package/dist/components/Icons/Checkbox.d.ts +7 -0
  74. package/dist/components/Icons/ChevronDown.d.ts +6 -0
  75. package/dist/components/Icons/ChevronUp.d.ts +6 -0
  76. package/dist/components/Icons/DashEdit.d.ts +6 -0
  77. package/dist/components/Icons/Dashboard.d.ts +6 -0
  78. package/dist/components/Icons/Devices.d.ts +6 -0
  79. package/dist/components/Icons/FlagBR.d.ts +6 -0
  80. package/dist/components/Icons/FlagES.d.ts +6 -0
  81. package/dist/components/Icons/FlagPT.d.ts +6 -0
  82. package/dist/components/Icons/FlagUK.d.ts +6 -0
  83. package/dist/components/Icons/FlagUSA.d.ts +6 -0
  84. package/dist/components/Icons/HeaderSearch.d.ts +6 -0
  85. package/dist/components/Icons/HelpOutlined.d.ts +6 -0
  86. package/dist/components/Icons/History.d.ts +6 -0
  87. package/dist/components/Icons/Home.d.ts +6 -0
  88. package/dist/components/Icons/Icons.d.ts +31 -0
  89. package/dist/components/Icons/Icons.stories.d.ts +5 -0
  90. package/dist/components/Icons/Info.d.ts +6 -0
  91. package/dist/components/Icons/Language.d.ts +6 -0
  92. package/dist/components/Icons/Lock.d.ts +6 -0
  93. package/dist/components/Icons/Logout.d.ts +6 -0
  94. package/dist/components/Icons/Map.d.ts +6 -0
  95. package/dist/components/Icons/Moon.d.ts +6 -0
  96. package/dist/components/Icons/MoreHorizontal.d.ts +6 -0
  97. package/dist/components/Icons/Notification.d.ts +6 -0
  98. package/dist/components/Icons/PeopleAlt.d.ts +6 -0
  99. package/dist/components/Icons/PriorityHigh.d.ts +6 -0
  100. package/dist/components/Icons/Public.d.ts +6 -0
  101. package/dist/components/Icons/Search.d.ts +6 -0
  102. package/dist/components/Icons/Secutiry.d.ts +6 -0
  103. package/dist/components/Icons/Settings.d.ts +6 -0
  104. package/dist/components/Icons/Star.d.ts +7 -0
  105. package/dist/components/Icons/WBSunny.d.ts +6 -0
  106. package/dist/components/Icons/WarningAmber.d.ts +6 -0
  107. package/dist/components/Modal/Modal.d.ts +4 -0
  108. package/dist/components/Modal/Modal.stories.d.ts +12 -0
  109. package/dist/components/Modal/Modal.types.d.ts +17 -0
  110. package/dist/components/Modal/index.d.ts +1 -0
  111. package/dist/components/Table/DataTable.d.ts +18 -0
  112. package/dist/components/Table/DataTable.stories.d.ts +8 -0
  113. package/dist/components/Table/Pagination.d.ts +10 -0
  114. package/dist/components/Table/types.d.ts +10 -0
  115. package/dist/components/Tabs/Tabs.d.ts +5 -0
  116. package/dist/components/Tabs/Tabs.stories.d.ts +7 -0
  117. package/dist/components/Tabs/Tabs.types.d.ts +12 -0
  118. package/dist/components/Tabs/index.d.ts +1 -0
  119. package/dist/components/Typography/Typography.d.ts +10 -0
  120. package/dist/components/Typography/Typography.stories.d.ts +32 -0
  121. package/dist/components/Upload/Upload.d.ts +4 -0
  122. package/dist/components/Upload/Upload.stories.d.ts +15 -0
  123. package/dist/components/Upload/Upload.style.d.ts +21 -0
  124. package/dist/components/Upload/Upload.types.d.ts +19 -0
  125. package/dist/greenole-design-system.cjs.js +927 -0
  126. package/dist/greenole-design-system.es.js +5874 -0
  127. package/dist/greenole.css +1176 -0
  128. package/dist/index.css +1 -0
  129. package/dist/index.css.d.ts +1 -0
  130. package/dist/index.d.ts +25 -0
  131. package/dist/main.d.ts +1 -0
  132. package/dist/reset.css +1 -0
  133. package/dist/reset.css.d.ts +1 -0
  134. package/dist/utils/i18n/i18n.d.ts +2 -0
  135. package/dist/vite.svg +1 -0
  136. package/package.json +89 -89
package/README.md CHANGED
@@ -1,124 +1,124 @@
1
- # Greenole Design System
2
-
3
- [![Figma Design](https://img.shields.io/badge/Figma-Design_System-blue)](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
+ [![Figma Design](https://img.shields.io/badge/Figma-Design_System-blue)](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.
package/dist/App.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare function App(): React.JSX.Element;
3
+ export default App;
@@ -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 { DropdownTypes } from './Dropdown.types';
3
+ declare const Dropdown: React.FC<DropdownTypes>;
4
+ export default Dropdown;
@@ -0,0 +1,13 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Dropdown } from './Dropdown';
3
+ declare const meta: Meta<typeof Dropdown>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Dropdown>;
6
+ export declare const Default: Story;
7
+ export declare const Multiple: Story;
8
+ export declare const Searchable: Story;
9
+ export declare const WithMaxSelected: Story;
10
+ export declare const WithLoadMore: Story;
11
+ export declare const Invalid: Story;
12
+ export declare const WithMessage: Story;
13
+ export declare const OptionsWithIcons: Story;
@@ -0,0 +1,35 @@
1
+ import { DropdownTypes } from './Dropdown.types';
2
+ type StyledButtonProps = Pick<DropdownTypes, 'invalid' | 'disabled' | 'className'> & {
3
+ $open: boolean;
4
+ $invalid: boolean;
5
+ };
6
+ type StyledMenuProps = {
7
+ $open: boolean;
8
+ };
9
+ type StyledOptionProps = {
10
+ $isSelected: boolean;
11
+ $isDisabled: boolean;
12
+ };
13
+ type StyledOptionCheckboxProps = {
14
+ $isSelected: boolean;
15
+ };
16
+ type StyledDropdownMessageProps = {
17
+ $invalid: boolean;
18
+ };
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').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
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
+ 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
+ export declare const CaretIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGProps<SVGSVGElement>, {
24
+ $open: boolean;
25
+ }>> & string;
26
+ export declare const DropdownMenu: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledMenuProps>> & string;
27
+ export declare const SearchContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
28
+ export declare const SearchInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
29
+ export declare const OptionsList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
30
+ export declare const OptionButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, StyledOptionProps>> & string;
31
+ export declare const OptionCheckbox: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, StyledOptionCheckboxProps>> & string;
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
+ 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
+ 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 {};
@@ -0,0 +1,29 @@
1
+ import { ReactNode } from 'react';
2
+ export interface DropdownOptionsType {
3
+ icon?: ReactNode;
4
+ label: string;
5
+ value: string;
6
+ }
7
+ export interface DropdownAsyncOptionsType {
8
+ data: DropdownOptionsType[];
9
+ hasMore: boolean;
10
+ }
11
+ export interface DropdownTypes {
12
+ label?: string;
13
+ multiple?: boolean;
14
+ searchable?: boolean;
15
+ placeholder?: string;
16
+ values?: string | string[];
17
+ maxSelected?: number;
18
+ options?: DropdownOptionsType[];
19
+ hasMore?: boolean;
20
+ isLoading?: boolean;
21
+ disabled?: boolean;
22
+ invalid?: boolean;
23
+ message?: string | ReactNode;
24
+ className?: string;
25
+ displayValue?: string;
26
+ onChange: (value: string | string[]) => void;
27
+ onSearch?: (searchTerm: string) => void;
28
+ onLoadMore?: () => void;
29
+ }
@@ -0,0 +1,2 @@
1
+ export { default as Dropdown } from './Dropdown';
2
+ export type { DropdownAsyncOptionsType, DropdownOptionsType, } from './Dropdown.types';
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { InputProps } from './Input.types';
3
+ export declare const Input: React.FC<InputProps>;
4
+ export default Input;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Input } from './Input';
3
+ declare const meta: Meta<typeof Input>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Input>;
6
+ export declare const Playground: Story;
7
+ export declare const States: Story;
8
+ export declare const WithTanStackForm: Story;
@@ -0,0 +1,20 @@
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
+ fullWidth?: boolean;
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
+ 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
+ disabled?: boolean;
7
+ hasError?: boolean;
8
+ isValid?: boolean;
9
+ readOnly?: boolean;
10
+ textArea?: boolean;
11
+ }>> & string;
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
+ export declare const BaseFieldStyles: import('styled-components').RuleSet<object>;
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;
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;
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;
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;
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>, {
19
+ hasError?: boolean;
20
+ }>> & string;
@@ -0,0 +1,23 @@
1
+ import { TypographyVariant } from '../../components/Typography/Typography';
2
+ export type InputType = React.HTMLInputTypeAttribute;
3
+ type InputElementProps = React.InputHTMLAttributes<HTMLInputElement>;
4
+ type TextAreaElementProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
5
+ export interface InputProps extends Omit<InputElementProps & TextAreaElementProps, "required" | "readOnly"> {
6
+ label?: string;
7
+ labelSize?: TypographyVariant;
8
+ subtitle?: string;
9
+ subtitleIcon?: React.ReactNode;
10
+ error?: string;
11
+ valid?: boolean;
12
+ iconLeft?: React.ReactNode;
13
+ iconRight?: React.ReactNode;
14
+ fullWidth?: boolean;
15
+ disabled?: boolean;
16
+ type?: InputType;
17
+ className?: string;
18
+ isRequired?: boolean;
19
+ readOnly?: boolean;
20
+ textArea?: boolean;
21
+ maxLength?: number;
22
+ }
23
+ export {};
@@ -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 { PillsProps } from './Pills.types';
3
+ export declare const Pills: React.FC<PillsProps>;
4
+ export default Pills;
@@ -0,0 +1,15 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Pills } from './Pills';
3
+ declare const meta: Meta<typeof Pills>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Pills>;
6
+ export declare const Playground: Story;
7
+ export declare const Primary: Story;
8
+ export declare const Success: Story;
9
+ export declare const Danger: Story;
10
+ export declare const Warning: Story;
11
+ export declare const Infor: Story;
12
+ export declare const Neutral: Story;
13
+ export declare const WithIcons: Story;
14
+ export declare const CustomTypography: Story;
15
+ export declare const CustomPadding: Story;
@@ -0,0 +1,11 @@
1
+ import { TypographyVariant } from '../../components/Typography/Typography';
2
+ export type PillsVariant = 'neutral' | 'success' | 'danger' | 'warning' | 'info' | 'primary';
3
+ export interface PillsProps {
4
+ label: string;
5
+ variant?: PillsVariant;
6
+ typography?: TypographyVariant;
7
+ padding?: string;
8
+ iconLeft?: React.ReactNode;
9
+ iconRight?: React.ReactNode;
10
+ className?: string;
11
+ }
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { ProgressBarProps } from './ProgressBar.types';
3
+ export declare const ProgressBar: React.FC<ProgressBarProps>;
4
+ export default ProgressBar;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as ProgressBar } from './ProgressBar';
3
+ declare const meta: Meta<typeof ProgressBar>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ProgressBar>;
6
+ export declare const Playground: Story;
7
+ export declare const PercentProgress: Story;
8
+ export declare const CustomColorHex: Story;
9
+ export declare const WithoutText: Story;
@@ -0,0 +1,19 @@
1
+ export type ProgressBarType = "percent" | "file";
2
+ export type ProgressBarHeight = "sm" | "md" | "lg";
3
+ export interface ProgressBarProps {
4
+ type?: ProgressBarType;
5
+ value: number;
6
+ max?: number;
7
+ height?: ProgressBarHeight;
8
+ color?: keyof typeof colorMap | string;
9
+ showText?: boolean;
10
+ className?: string;
11
+ }
12
+ export declare const progressHeights: Record<ProgressBarHeight, string>;
13
+ export declare const colorMap: {
14
+ brand: string;
15
+ green: string;
16
+ red: string;
17
+ blue: string;
18
+ neutral: string;
19
+ };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { RangeSliderProps } from './RangeSlider.types';
3
+ export declare const RangeSlider: React.FC<RangeSliderProps>;
4
+ export default RangeSlider;
@@ -0,0 +1,18 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as RangeSlider } from './RangeSlider';
3
+ declare const meta: Meta<typeof RangeSlider>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof RangeSlider>;
6
+ /** Base editável e controlada */
7
+ export declare const Playground: Story;
8
+ /** Sem exibição de valor */
9
+ export declare const WithoutValue: Story;
10
+ /** Diferentes cores e valores */
11
+ export declare const BlueMid: Story;
12
+ export declare const RedHigh: Story;
13
+ export declare const YellowLow: Story;
14
+ export declare const CustomRange: Story;
15
+ /** Caixinha com borda */
16
+ export declare const WithBorder: Story;
17
+ /** Somente número puro */
18
+ export declare const WithoutBorder: Story;
@@ -0,0 +1,7 @@
1
+ export declare const SliderWrapper: 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 ValueBox: 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 ValueText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
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
+ percent: number;
6
+ color: string;
7
+ }>> & string;
@@ -0,0 +1,11 @@
1
+ export type RangeSliderProps = {
2
+ value?: number;
3
+ min?: number;
4
+ max?: number;
5
+ step?: number;
6
+ showValue?: boolean;
7
+ color?: string;
8
+ hasBorder?: boolean;
9
+ onChange?: (value: number) => void;
10
+ className?: string;
11
+ };
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { SpaceProps } from './Space.types';
3
+ export declare const Space: React.FC<SpaceProps>;
4
+ export default Space;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Space } from './Space';
3
+ declare const meta: Meta<typeof Space>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Space>;
6
+ export declare const Playground: Story;
7
+ export declare const AllSpacings: Story;
8
+ export declare const CustomColorHex: Story;
9
+ export declare const CustomWidth: Story;
@@ -0,0 +1,9 @@
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, string>;
3
+ export interface SpaceProps {
4
+ height?: SpaceHeight;
5
+ color?: string;
6
+ width?: string;
7
+ className?: string;
8
+ showLabel?: boolean;
9
+ }
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { SwitchButtonProps } from './SwitchButton.types';
3
+ export declare const SwitchButton: React.FC<SwitchButtonProps>;
4
+ export default SwitchButton;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as SwitchButton } from './SwitchButton';
3
+ declare const meta: Meta<typeof SwitchButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof SwitchButton>;
6
+ export declare const Playground: Story;