bscash-uikit 1.0.0

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.
@@ -0,0 +1,41 @@
1
+ .badge {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ padding: 4px 12px;
5
+ border-radius: 16px;
6
+ font-size: 12px;
7
+ font-weight: 500;
8
+ letter-spacing: 0.5px;
9
+ text-transform: uppercase;
10
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
11
+ transition: box-shadow 0.2s ease;
12
+ }
13
+
14
+ .badge:hover {
15
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
16
+ }
17
+
18
+ .badge-default {
19
+ background-color: #e0e0e0;
20
+ color: #424242;
21
+ }
22
+
23
+ .badge-success {
24
+ background-color: #4caf50;
25
+ color: white;
26
+ }
27
+
28
+ .badge-warning {
29
+ background-color: #ff9800;
30
+ color: white;
31
+ }
32
+
33
+ .badge-danger {
34
+ background-color: #f44336;
35
+ color: white;
36
+ }
37
+
38
+ .badge-info {
39
+ background-color: #2196f3;
40
+ color: white;
41
+ }
@@ -0,0 +1,9 @@
1
+ import './Badge.css';
2
+
3
+ export const Badge = ({ children, variant = 'default' }) => {
4
+ return (
5
+ <span className={`badge badge-${variant}`}>
6
+ {children}
7
+ </span>
8
+ );
9
+ };
@@ -0,0 +1 @@
1
+ export { Badge } from './Badge.jsx';
package/index.js ADDED
@@ -0,0 +1,14 @@
1
+ // Components
2
+ export { Badge } from './components/index.js';
3
+
4
+ // Utilities
5
+ export const formatCurrency = (value) => {
6
+ return new Intl.NumberFormat('pt-BR', {
7
+ style: 'currency',
8
+ currency: 'BRL'
9
+ }).format(value);
10
+ };
11
+
12
+ export const validateEmail = (email) => {
13
+ return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email);
14
+ };
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "bscash-uikit",
3
+ "version": "1.0.0",
4
+ "main": "index.js",
5
+ "files": ["components", "index.js"],
6
+ "scripts": {
7
+ "build": "echo 'Building shared package'",
8
+ "preview": "vite --config preview/vite.config.js"
9
+ },
10
+ "peerDependencies": {
11
+ "react": "^18.0.0",
12
+ "react-dom": "^18.0.0"
13
+ },
14
+ "devDependencies": {
15
+ "@vitejs/plugin-react": "^4.0.0",
16
+ "vite": "^4.3.9",
17
+ "react": "^18.2.0",
18
+ "react-dom": "^18.2.0"
19
+ }
20
+ }