pillardash-ui-react 0.1.0 → 0.1.2
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 +5 -5
- package/dist/index.d.ts +29 -2
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -13,9 +13,9 @@ A collection of reusable React components for building modern web applications w
|
|
|
13
13
|
## Installation
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
npm install
|
|
16
|
+
npm install pillardash-ui-react
|
|
17
17
|
# or
|
|
18
|
-
yarn add
|
|
18
|
+
yarn add pillardash-ui-react
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
## Peer Dependencies
|
|
@@ -51,7 +51,7 @@ This library requires:
|
|
|
51
51
|
## Usage
|
|
52
52
|
|
|
53
53
|
```tsx
|
|
54
|
-
import { Button, Input } from '
|
|
54
|
+
import { Button, Input } from 'pillardash-ui-react';
|
|
55
55
|
|
|
56
56
|
function Example() {
|
|
57
57
|
return (
|
|
@@ -73,7 +73,7 @@ function Example() {
|
|
|
73
73
|
Customize the look and feel by wrapping your app with the `ThemeProvider`:
|
|
74
74
|
|
|
75
75
|
```tsx
|
|
76
|
-
import { ThemeProvider } from '
|
|
76
|
+
import { ThemeProvider } from 'pillardash-ui-react';
|
|
77
77
|
|
|
78
78
|
function App() {
|
|
79
79
|
return (
|
|
@@ -96,7 +96,7 @@ function App() {
|
|
|
96
96
|
All components include TypeScript definitions. Import prop types for extended customization:
|
|
97
97
|
|
|
98
98
|
```tsx
|
|
99
|
-
import { Button, type ButtonProps } from '
|
|
99
|
+
import { Button, type ButtonProps } from 'pillardash-ui-react';
|
|
100
100
|
|
|
101
101
|
const CustomButton = (props: ButtonProps) => (
|
|
102
102
|
<Button {...props} className="custom-class" />
|
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,14 @@ interface ButtonProps {
|
|
|
14
14
|
}
|
|
15
15
|
declare const Button: FC<ButtonProps>;
|
|
16
16
|
|
|
17
|
+
declare enum ExportFormatEnum {
|
|
18
|
+
PDF = 0,
|
|
19
|
+
CSV = 1,
|
|
20
|
+
EXCEL = 2,
|
|
21
|
+
JSON = 3
|
|
22
|
+
}
|
|
23
|
+
declare function ExportButton(): react_jsx_runtime.JSX.Element;
|
|
24
|
+
|
|
17
25
|
type CheckBoxProps = {
|
|
18
26
|
variant?: "check" | "dot" | "toggle";
|
|
19
27
|
size?: "sm" | "md" | "lg";
|
|
@@ -83,5 +91,24 @@ interface TextEditorProps {
|
|
|
83
91
|
}
|
|
84
92
|
declare const TextEditor: React$1.FC<TextEditorProps>;
|
|
85
93
|
|
|
86
|
-
|
|
87
|
-
|
|
94
|
+
type SelectButtonOption = {
|
|
95
|
+
value: string;
|
|
96
|
+
label?: string;
|
|
97
|
+
};
|
|
98
|
+
type SelectButtonProps = {
|
|
99
|
+
options: SelectButtonOption[];
|
|
100
|
+
placeholder?: string;
|
|
101
|
+
onChange: (value: string) => void;
|
|
102
|
+
value?: string;
|
|
103
|
+
size?: "sm" | "md";
|
|
104
|
+
className?: string;
|
|
105
|
+
name?: string;
|
|
106
|
+
id?: string;
|
|
107
|
+
disabled?: boolean;
|
|
108
|
+
label?: string;
|
|
109
|
+
required?: boolean;
|
|
110
|
+
};
|
|
111
|
+
declare function SelectButton({ options, placeholder, onChange, value, size, className, name, id, disabled, label, required, }: SelectButtonProps): react_jsx_runtime.JSX.Element;
|
|
112
|
+
|
|
113
|
+
export { Button, CheckBox, ExportButton, ExportFormatEnum, FileUpload, Input, Search, Select, SelectButton, TextEditor };
|
|
114
|
+
export type { ButtonProps, CheckBoxProps, FileUploadProps, InputProps, SearchProps, SelectButtonOption, SelectButtonProps, SelectOption, SelectProps, TextEditorProps };
|