shekel-fe-shared-lib 1.0.10 → 1.0.12
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 +40 -4
- package/dist/index.cjs +793 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +57035 -1265
- package/dist/index.mjs.map +1 -1
- package/dist/types/components/ActionCard/ActionCard.d.ts +10 -0
- package/dist/types/components/ActionCard/index.d.ts +1 -0
- package/dist/types/components/Button/Button.d.ts +7 -0
- package/dist/types/components/Button/index.d.ts +2 -0
- package/dist/types/components/Card/Card.d.ts +6 -0
- package/dist/types/components/Card/index.d.ts +2 -0
- package/dist/types/components/CountrySelector/CountrySelector.d.ts +14 -0
- package/dist/types/components/CountrySelector/index.d.ts +1 -0
- package/dist/types/components/DashboardCard/DashboardCard.d.ts +14 -0
- package/dist/types/components/DashboardCard/index.d.ts +1 -0
- package/dist/types/components/Input/CurrencyInput.d.ts +11 -0
- package/dist/types/components/Input/Input.d.ts +8 -0
- package/dist/types/components/Input/OTPInput.d.ts +12 -0
- package/dist/types/components/Input/PasswordInput.d.ts +8 -0
- package/dist/types/components/Input/PhoneInput.d.ts +19 -0
- package/dist/types/components/Input/index.d.ts +10 -0
- package/dist/types/components/NotificationDropdown/NotificationDropdown.d.ts +21 -0
- package/dist/types/components/NotificationDropdown/index.d.ts +1 -0
- package/dist/types/components/SearchInput.d.ts +7 -0
- package/dist/types/components/StatCard/StatCard.d.ts +14 -0
- package/dist/types/components/StatCard/index.d.ts +1 -0
- package/dist/types/components/TableTop.d.ts +2 -0
- package/dist/types/components/TabsComponent/TabsComponent.d.ts +14 -0
- package/dist/types/components/TabsComponent/index.d.ts +2 -0
- package/dist/types/components/UserCard/UserCard.d.ts +9 -0
- package/dist/types/components/UserCard/index.d.ts +2 -0
- package/dist/types/components/UserPill/UserPill.d.ts +9 -0
- package/dist/types/components/UserPill/index.d.ts +2 -0
- package/dist/types/components/UserProfileDropdown/UserProfileDropdown.d.ts +12 -0
- package/dist/types/components/UserProfileDropdown/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +12 -6
- package/package.json +5 -2
- package/dist/types/components/Button.d.ts +0 -19
- package/dist/types/components/Card.d.ts +0 -13
- package/dist/types/components/StatCard.d.ts +0 -21
package/README.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
# Shekel FE Shared Lib
|
|
2
2
|
|
|
3
|
-
A modern React component library built with **Tailwind CSS
|
|
3
|
+
A modern React component library built with **React**, **TypeScript**, **Tailwind CSS**, and **Ant Design**. Create beautiful, responsive UIs with comprehensive input components, dashboard cards, and user interface elements.
|
|
4
|
+
|
|
5
|
+
## 🚨 Version 1.0.11 Updates
|
|
6
|
+
|
|
7
|
+
**New Components Added:**
|
|
8
|
+
- Input components (Input, PasswordInput, PhoneInput, CurrencyInput, OTPInput)
|
|
9
|
+
- User components (UserPill, UserCard, UserProfileDropdown)
|
|
10
|
+
- Dashboard components (DashboardCard, StatCard, ActionCard)
|
|
11
|
+
- NotificationDropdown, TabsComponent, CountrySelector
|
|
12
|
+
|
|
13
|
+
**⚠️ Deprecation Notice:**
|
|
14
|
+
- `SearchInput` is deprecated. Please use the new `Input` component instead.
|
|
15
|
+
- See [DEPRECATION.md](./DEPRECATION.md) for migration guide.
|
|
4
16
|
|
|
5
17
|
## Installation
|
|
6
18
|
|
|
@@ -21,15 +33,39 @@ npm install react react-dom
|
|
|
21
33
|
### Import Components and Styles
|
|
22
34
|
|
|
23
35
|
```tsx
|
|
24
|
-
import {
|
|
36
|
+
import {
|
|
37
|
+
Button,
|
|
38
|
+
Input,
|
|
39
|
+
PasswordInput,
|
|
40
|
+
StatCard,
|
|
41
|
+
DashboardCard,
|
|
42
|
+
UserPill,
|
|
43
|
+
NotificationDropdown
|
|
44
|
+
} from 'shekel-fe-shared-lib';
|
|
25
45
|
import 'shekel-fe-shared-lib/styles.css';
|
|
46
|
+
import 'antd/dist/reset.css'; // Required for Ant Design components
|
|
26
47
|
|
|
27
48
|
function App() {
|
|
28
49
|
return (
|
|
29
50
|
<div>
|
|
30
51
|
<Button variant="primary">Click me</Button>
|
|
31
|
-
<
|
|
32
|
-
<
|
|
52
|
+
<Input label="Email" placeholder="Enter your email" />
|
|
53
|
+
<PasswordInput label="Password" placeholder="Enter password" />
|
|
54
|
+
<StatCard
|
|
55
|
+
label="Active Users"
|
|
56
|
+
value={1234}
|
|
57
|
+
badge="New"
|
|
58
|
+
iconBackgroundColor="#E8F8F0"
|
|
59
|
+
iconColor="#5FB894"
|
|
60
|
+
/>
|
|
61
|
+
<DashboardCard
|
|
62
|
+
label="Total Balance"
|
|
63
|
+
value="2,450,000"
|
|
64
|
+
valuePrefix="₦"
|
|
65
|
+
ledgerBalance="1,200,000"
|
|
66
|
+
showVisibilityToggle
|
|
67
|
+
/>
|
|
68
|
+
<UserPill name="John Doe" subtitle="Admin" />
|
|
33
69
|
</div>
|
|
34
70
|
);
|
|
35
71
|
}
|