luna-components-library 1.1.33 → 1.1.34
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 +21 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,7 +47,11 @@ To ensure Tailwind CSS successfully generates and includes the necessary utility
|
|
|
47
47
|
## 🚀 Quick Start
|
|
48
48
|
|
|
49
49
|
```jsx
|
|
50
|
-
import {
|
|
50
|
+
import {
|
|
51
|
+
Button, Card, Anchor, Accordion, Spinner, DropDown,
|
|
52
|
+
ProgressBar, Preloader, ScrollTop, Modal, Input,
|
|
53
|
+
WhatsApp, Typed
|
|
54
|
+
} from 'luna-components-library';
|
|
51
55
|
|
|
52
56
|
function App() {
|
|
53
57
|
return (
|
|
@@ -882,6 +886,7 @@ import { validators } from 'luna-components-library';
|
|
|
882
886
|
validators.isEmail('test@example.com'); // true
|
|
883
887
|
validators.isEmpty(' '); // true
|
|
884
888
|
validators.isStrongPassword('Pass1234'); // true
|
|
889
|
+
validators.isPhone('88888888', 'es-CR'); // true
|
|
885
890
|
```
|
|
886
891
|
|
|
887
892
|
### logger
|
|
@@ -983,20 +988,30 @@ npm run clean
|
|
|
983
988
|
luna-library/
|
|
984
989
|
├── src/
|
|
985
990
|
│ ├── components/
|
|
986
|
-
│ │ ├──
|
|
991
|
+
│ │ ├── apiExamples/ # Examples for API utilities
|
|
992
|
+
│ │ ├── modalExamples/ # Examples for Modal component
|
|
993
|
+
│ │ ├── utilExamples/ # Examples for hooks and extra utilities
|
|
994
|
+
│ │ ├── Button.tsx
|
|
995
|
+
│ │ ├── Card.tsx
|
|
996
|
+
│ │ ├── ... (Other UI Components)
|
|
987
997
|
│ │ └── index.ts
|
|
988
998
|
│ ├── hooks/
|
|
989
999
|
│ │ ├── useFetch.hook.ts
|
|
1000
|
+
│ │ ├── useLocalStorage.hook.ts
|
|
1001
|
+
│ │ ├── useDebounce.hook.ts
|
|
990
1002
|
│ │ └── index.ts
|
|
991
1003
|
│ ├── utilities/
|
|
992
1004
|
│ │ ├── apiFetch.util.ts
|
|
993
1005
|
│ │ ├── httpClient.util.ts
|
|
1006
|
+
│ │ ├── storage.util.ts
|
|
1007
|
+
│ │ ├── formatters.util.ts
|
|
1008
|
+
│ │ ├── validators.util.ts
|
|
1009
|
+
│ │ ├── logger.util.ts
|
|
994
1010
|
│ │ └── index.ts
|
|
995
|
-
│
|
|
996
|
-
|
|
1011
|
+
│ ├── demo.tsx # Main visual demo page
|
|
1012
|
+
│ └── index.ts # Library entry point
|
|
1013
|
+
├── dist/ # Build output
|
|
997
1014
|
├── package.json
|
|
998
|
-
├── tsconfig.json
|
|
999
|
-
├── vite.config.ts
|
|
1000
1015
|
└── README.md
|
|
1001
1016
|
```
|
|
1002
1017
|
|
package/package.json
CHANGED