@zango-core/components 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 +16 -25
- package/dist/components/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/demo/main.d.ts +1 -1
- package/dist/zango-components.js +607 -630
- package/dist/zango-components.js.map +1 -1
- package/dist/zango-components.umd.cjs +26 -24
- package/dist/zango-components.umd.cjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,15 +20,6 @@ npm install @zango/components
|
|
|
20
20
|
|
|
21
21
|
## 🎨 Setup
|
|
22
22
|
|
|
23
|
-
### Import Styles
|
|
24
|
-
|
|
25
|
-
Import the component library styles in your application:
|
|
26
|
-
|
|
27
|
-
```tsx
|
|
28
|
-
// In your main entry file (e.g., main.tsx or index.tsx)
|
|
29
|
-
import '@zango/components/style.css';
|
|
30
|
-
```
|
|
31
|
-
|
|
32
23
|
### Peer Dependencies
|
|
33
24
|
|
|
34
25
|
Make sure you have the following peer dependencies installed:
|
|
@@ -65,7 +56,7 @@ module.exports = {
|
|
|
65
56
|
|
|
66
57
|
```tsx
|
|
67
58
|
import { Button, Badge, Accordion } from '@zango/components';
|
|
68
|
-
//
|
|
59
|
+
// CSS is automatically included - no separate import needed!
|
|
69
60
|
|
|
70
61
|
function App() {
|
|
71
62
|
return (
|
|
@@ -93,11 +84,11 @@ function App() {
|
|
|
93
84
|
### With Custom Colors
|
|
94
85
|
|
|
95
86
|
```css
|
|
96
|
-
/* Override colors in your CSS
|
|
87
|
+
/* Override colors in your CSS */
|
|
97
88
|
:root {
|
|
98
|
-
--
|
|
99
|
-
--
|
|
100
|
-
--
|
|
89
|
+
--color-Brand-500: #3b82f6;
|
|
90
|
+
--color-Brand-600: #2563eb;
|
|
91
|
+
--color-Brand-700: #1d4ed8;
|
|
101
92
|
}
|
|
102
93
|
```
|
|
103
94
|
|
|
@@ -313,23 +304,23 @@ The component library uses CSS variables that can be overridden in your applicat
|
|
|
313
304
|
```css
|
|
314
305
|
:root {
|
|
315
306
|
/* Brand colors */
|
|
316
|
-
--
|
|
317
|
-
--
|
|
318
|
-
--
|
|
307
|
+
--color-Brand-500: #your-primary-color;
|
|
308
|
+
--color-Brand-600: #your-primary-hover;
|
|
309
|
+
--color-Brand-700: #your-primary-active;
|
|
319
310
|
|
|
320
311
|
/* Gray colors */
|
|
321
|
-
--
|
|
322
|
-
--
|
|
323
|
-
--
|
|
312
|
+
--color-Gray-100: #your-gray-light;
|
|
313
|
+
--color-Gray-500: #your-gray-medium;
|
|
314
|
+
--color-Gray-900: #your-gray-dark;
|
|
324
315
|
|
|
325
316
|
/* Status colors */
|
|
326
|
-
--
|
|
327
|
-
--
|
|
328
|
-
--
|
|
317
|
+
--color-success-500: #your-success-color;
|
|
318
|
+
--color-error-500: #your-error-color;
|
|
319
|
+
--color-warning-500: #your-warning-color;
|
|
329
320
|
|
|
330
321
|
/* Base colors */
|
|
331
|
-
--
|
|
332
|
-
--
|
|
322
|
+
--color-Base-white: #ffffff;
|
|
323
|
+
--color-Base-black: #000000;
|
|
333
324
|
}
|
|
334
325
|
```
|
|
335
326
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
|
-
interface PasswordInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>,
|
|
3
|
+
interface PasswordInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type"> {
|
|
4
4
|
error?: boolean;
|
|
5
5
|
}
|
|
6
6
|
declare const PasswordInput: React.ForwardRefExoticComponent<PasswordInputProps & React.RefAttributes<HTMLInputElement>>;
|
package/dist/demo/main.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|