@adoptaunabuelo/react-components 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,2 +1,58 @@
1
1
  # react-components
2
- A simple, customizable, and accessible library of React components
2
+ A simple, customizable, and accessible library of React components
3
+
4
+ [![npm latest package](https://img.shields.io/npm/v/@adoptaunabuelo/react-components/latest.svg)](https://www.npmjs.com/package/@adoptaunabuelo/react-components)
5
+ [![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/mui/material-ui/blob/HEAD/LICENSE)
6
+ <a href="https://64650038c7589bed568201a8-eaedthpnzo.chromatic.com" target="_blank"><img src="https://raw.githubusercontent.com/storybooks/brand/master/badge/badge-storybook.svg"></a>
7
+
8
+ ## Installation
9
+
10
+ ### React Components
11
+
12
+ React Components is available as an [npm package](https://www.npmjs.com/package/@adoptaunabuelo/react-components).
13
+
14
+ **npm:**
15
+
16
+ ```sh
17
+ npm install @adoptaunabuelo/react-components
18
+ ```
19
+
20
+ **yarn:**
21
+
22
+ ```sh
23
+ yarn add @adoptaunabuelo/react-components
24
+ ```
25
+
26
+ ## Getting started with React Components
27
+
28
+ Here is an example of a basic app using React Components `ProgressBar` component:
29
+
30
+ ```jsx
31
+ import * as React from 'react';
32
+ import { ProgressBar } from '@adoptaunabuelo/react-components';
33
+
34
+ function App() {
35
+ return (
36
+ <ProgressBar
37
+ maxValue={100}
38
+ minValue={0}
39
+ progress={40}
40
+ />;
41
+ )
42
+ }
43
+ ```
44
+
45
+ ## Storybook
46
+
47
+ You can checkout all the library Components and its docs in our storybook
48
+
49
+ [Open the Storybook](https://64650038c7589bed568201a8-eaedthpnzo.chromatic.com)
50
+
51
+ ## Changelog
52
+
53
+ The [changelog](https://github.com/mui/material-ui/releases) is regularly updated to reflect what's changed in each new release.
54
+
55
+ ## License
56
+
57
+ This project is licensed under the terms of the
58
+ [MIT license](/LICENSE).
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
- declare const BreadCrumb: (props: Props) => import("react/jsx-runtime").JSX.Element;
2
+ declare const BreadCrumb: ({ steps, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
3
3
  export default BreadCrumb;
4
4
  export interface Props extends ComponentPropsWithoutRef<"div"> {
5
5
  selectedStep?: number;
@@ -0,0 +1,9 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ declare const FeedBack: ({ type, isVisible, ...props }: Props) => import("react/jsx-runtime").JSX.Element | null;
3
+ export default FeedBack;
4
+ export interface Props extends ComponentPropsWithoutRef<"div"> {
5
+ isVisible: boolean;
6
+ type: 'success' | 'error';
7
+ text: string;
8
+ onClose?: () => void;
9
+ }
@@ -1,3 +1,4 @@
1
1
  export { default as BreadCrumb } from './BreadCrumb/BreadCrumb';
2
2
  export { default as Text } from './Text/Text';
3
3
  export { default as ProgressBar } from './ProgressBar/ProgressBar';
4
+ export { default as Feedback } from './Feedback/Feedback';