shekel-fe-shared-lib 1.0.9 → 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.
Files changed (40) hide show
  1. package/README.md +40 -4
  2. package/dist/index.cjs +793 -22
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.mjs +57036 -1265
  5. package/dist/index.mjs.map +1 -1
  6. package/dist/types/components/ActionCard/ActionCard.d.ts +10 -0
  7. package/dist/types/components/ActionCard/index.d.ts +1 -0
  8. package/dist/types/components/Button/Button.d.ts +7 -0
  9. package/dist/types/components/Button/index.d.ts +2 -0
  10. package/dist/types/components/Card/Card.d.ts +6 -0
  11. package/dist/types/components/Card/index.d.ts +2 -0
  12. package/dist/types/components/CountrySelector/CountrySelector.d.ts +14 -0
  13. package/dist/types/components/CountrySelector/index.d.ts +1 -0
  14. package/dist/types/components/DashboardCard/DashboardCard.d.ts +14 -0
  15. package/dist/types/components/DashboardCard/index.d.ts +1 -0
  16. package/dist/types/components/Input/CurrencyInput.d.ts +11 -0
  17. package/dist/types/components/Input/Input.d.ts +8 -0
  18. package/dist/types/components/Input/OTPInput.d.ts +12 -0
  19. package/dist/types/components/Input/PasswordInput.d.ts +8 -0
  20. package/dist/types/components/Input/PhoneInput.d.ts +19 -0
  21. package/dist/types/components/Input/index.d.ts +10 -0
  22. package/dist/types/components/NotificationDropdown/NotificationDropdown.d.ts +21 -0
  23. package/dist/types/components/NotificationDropdown/index.d.ts +1 -0
  24. package/dist/types/components/SearchInput.d.ts +7 -0
  25. package/dist/types/components/StatCard/StatCard.d.ts +14 -0
  26. package/dist/types/components/StatCard/index.d.ts +1 -0
  27. package/dist/types/components/TableTop.d.ts +2 -0
  28. package/dist/types/components/TabsComponent/TabsComponent.d.ts +14 -0
  29. package/dist/types/components/TabsComponent/index.d.ts +2 -0
  30. package/dist/types/components/UserCard/UserCard.d.ts +9 -0
  31. package/dist/types/components/UserCard/index.d.ts +2 -0
  32. package/dist/types/components/UserPill/UserPill.d.ts +9 -0
  33. package/dist/types/components/UserPill/index.d.ts +2 -0
  34. package/dist/types/components/UserProfileDropdown/UserProfileDropdown.d.ts +12 -0
  35. package/dist/types/components/UserProfileDropdown/index.d.ts +1 -0
  36. package/dist/types/components/index.d.ts +12 -6
  37. package/package.json +5 -2
  38. package/dist/types/components/Button.d.ts +0 -19
  39. package/dist/types/components/Card.d.ts +0 -13
  40. 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** and custom animations. Create beautiful, responsive UIs without the overhead of third-party component libraries.
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 { Button, StatCard, SearchInput, Card, Table, Modal } from 'shekel-fe-shared-lib';
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
- <StatCard label="Total Shipments" value={42} />
32
- <SearchInput icon={true} placeholder="Search..." />
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
  }