@spelyco/react-native 0.0.1-alpha → 0.0.1
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/package.json +6 -13
- package/README.md +0 -58
package/package.json
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spelyco/react-native",
|
|
3
|
-
"version": "0.0.1
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"description": "React Native UI components for Spelyco",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"react-native",
|
|
7
|
-
"ui",
|
|
8
|
-
"components",
|
|
9
|
-
"spelyco"
|
|
10
|
-
],
|
|
5
|
+
"keywords": ["react-native", "ui", "components", "spelyco"],
|
|
11
6
|
"license": "MIT",
|
|
12
7
|
"main": "./dist/index.js",
|
|
13
8
|
"module": "./dist/index.mjs",
|
|
@@ -19,9 +14,7 @@
|
|
|
19
14
|
"require": "./dist/index.js"
|
|
20
15
|
}
|
|
21
16
|
},
|
|
22
|
-
"files": [
|
|
23
|
-
"dist"
|
|
24
|
-
],
|
|
17
|
+
"files": ["dist"],
|
|
25
18
|
"scripts": {
|
|
26
19
|
"build": "tsup",
|
|
27
20
|
"dev": "tsup --watch",
|
|
@@ -36,14 +29,14 @@
|
|
|
36
29
|
"react-native": ">=0.73"
|
|
37
30
|
},
|
|
38
31
|
"dependencies": {
|
|
39
|
-
"@spelyco/react-lib": "
|
|
32
|
+
"@spelyco/react-lib": "workspace:*"
|
|
40
33
|
},
|
|
41
34
|
"devDependencies": {
|
|
42
|
-
"@spelyco/tsconfig": "
|
|
35
|
+
"@spelyco/tsconfig": "workspace:*",
|
|
43
36
|
"@types/react": "^19.2.14",
|
|
44
37
|
"react": "^19.2.4",
|
|
45
38
|
"react-native": "^0.84.1",
|
|
46
39
|
"tsup": "^8.3.5",
|
|
47
40
|
"vitest": "^4.1.1"
|
|
48
41
|
}
|
|
49
|
-
}
|
|
42
|
+
}
|
package/README.md
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# @spelyco/react-native
|
|
2
|
-
|
|
3
|
-
React Native UI components for Spelyco.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
bun add @spelyco/react-native react-native react
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Components
|
|
12
|
-
|
|
13
|
-
### Button
|
|
14
|
-
|
|
15
|
-
A customizable button built on `Pressable` with variant and size support.
|
|
16
|
-
|
|
17
|
-
```tsx
|
|
18
|
-
import { Button } from "@spelyco/react-native";
|
|
19
|
-
|
|
20
|
-
<Button label="Click me" />
|
|
21
|
-
<Button label="Secondary" variant="secondary" />
|
|
22
|
-
<Button label="Ghost" variant="ghost" size="lg" />
|
|
23
|
-
<Button label="Disabled" disabled />
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
| Prop | Type | Default | Description |
|
|
27
|
-
|---|---|---|---|
|
|
28
|
-
| `label` | `string` | — | Button text (required) |
|
|
29
|
-
| `variant` | `"primary" \| "secondary" \| "ghost"` | `"primary"` | Visual style |
|
|
30
|
-
| `size` | `"sm" \| "md" \| "lg"` | `"md"` | Padding size |
|
|
31
|
-
| `...props` | `PressableProps` | — | All React Native Pressable props |
|
|
32
|
-
|
|
33
|
-
**Variants**
|
|
34
|
-
|
|
35
|
-
| Variant | Background |
|
|
36
|
-
|---|---|
|
|
37
|
-
| `primary` | `#6366f1` (indigo) |
|
|
38
|
-
| `secondary` | `#e5e7eb` (light gray) |
|
|
39
|
-
| `ghost` | transparent |
|
|
40
|
-
|
|
41
|
-
**Sizes**
|
|
42
|
-
|
|
43
|
-
| Size | Padding |
|
|
44
|
-
|---|---|
|
|
45
|
-
| `sm` | `12×6` |
|
|
46
|
-
| `md` | `16×10` |
|
|
47
|
-
| `lg` | `24×14` |
|
|
48
|
-
|
|
49
|
-
## Peer Dependencies
|
|
50
|
-
|
|
51
|
-
| Package | Version |
|
|
52
|
-
|---|---|
|
|
53
|
-
| `react` | `>=18` |
|
|
54
|
-
| `react-native` | `>=0.73` |
|
|
55
|
-
|
|
56
|
-
## License
|
|
57
|
-
|
|
58
|
-
MIT
|