@onlynative/components 0.0.0-alpha.0 → 0.0.0-alpha.2

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.
@@ -25,9 +25,9 @@ __export(typography_exports, {
25
25
  module.exports = __toCommonJS(typography_exports);
26
26
 
27
27
  // src/typography/Typography.tsx
28
+ var import_core = require("@onlynative/core");
28
29
  var import_react = require("react");
29
30
  var import_react_native = require("react-native");
30
- var import_core = require("@onlynative/core");
31
31
  var import_jsx_runtime = require("react/jsx-runtime");
32
32
  var HEADING_VARIANTS = /* @__PURE__ */ new Set([
33
33
  "displayLarge",
package/llms.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  # @onlynative/components — MD3 UI Components for React Native
2
2
 
3
- > Version: 0.1.1-alpha.3
4
- > Peer deps: @onlynative/core >=0.1.1-alpha.3, react >=18, react-native >=0.72, react-native-safe-area-context >=4
3
+ > Version: 0.0.0-alpha.2
4
+ > Peer deps: @onlynative/core >=0.0.0-alpha.2, react >=18, react-native >=0.72, react-native-safe-area-context >=4
5
5
  > Optional: @expo/vector-icons >=14 (only needed for icon props)
6
6
 
7
7
  ## Usage
package/package.json CHANGED
@@ -1,103 +1,88 @@
1
1
  {
2
2
  "name": "@onlynative/components",
3
- "version": "0.0.0-alpha.0",
4
- "description": "Material Design 3 UI components for React Native — Button, Card, Chip, TextField, and more.",
3
+ "version": "0.0.0-alpha.2",
4
+ "description": "Material Design 3 UI components for React Native, part of OnlyNative UI.",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.js",
9
9
  "types": "dist/index.d.ts",
10
- "react-native": "src/index.ts",
10
+ "react-native": "dist/index.js",
11
11
  "source": "src/index.ts",
12
12
  "exports": {
13
13
  ".": {
14
14
  "types": "./dist/index.d.ts",
15
- "react-native": "./src/index.ts",
16
- "browser": "./src/index.ts",
15
+ "react-native": "./dist/index.js",
17
16
  "default": "./dist/index.js"
18
17
  },
19
18
  "./typography": {
20
19
  "types": "./dist/typography/index.d.ts",
21
- "react-native": "./src/typography/index.ts",
22
- "browser": "./src/typography/index.ts",
20
+ "react-native": "./dist/typography/index.js",
23
21
  "default": "./dist/typography/index.js"
24
22
  },
25
23
  "./layout": {
26
24
  "types": "./dist/layout/index.d.ts",
27
- "react-native": "./src/layout/index.ts",
28
- "browser": "./src/layout/index.ts",
25
+ "react-native": "./dist/layout/index.js",
29
26
  "default": "./dist/layout/index.js"
30
27
  },
31
28
  "./button": {
32
29
  "types": "./dist/button/index.d.ts",
33
- "react-native": "./src/button/index.ts",
34
- "browser": "./src/button/index.ts",
30
+ "react-native": "./dist/button/index.js",
35
31
  "default": "./dist/button/index.js"
36
32
  },
37
33
  "./icon-button": {
38
34
  "types": "./dist/icon-button/index.d.ts",
39
- "react-native": "./src/icon-button/index.ts",
40
- "browser": "./src/icon-button/index.ts",
35
+ "react-native": "./dist/icon-button/index.js",
41
36
  "default": "./dist/icon-button/index.js"
42
37
  },
43
38
  "./appbar": {
44
39
  "types": "./dist/appbar/index.d.ts",
45
- "react-native": "./src/appbar/index.ts",
46
- "browser": "./src/appbar/index.ts",
40
+ "react-native": "./dist/appbar/index.js",
47
41
  "default": "./dist/appbar/index.js"
48
42
  },
49
43
  "./card": {
50
44
  "types": "./dist/card/index.d.ts",
51
- "react-native": "./src/card/index.ts",
52
- "browser": "./src/card/index.ts",
45
+ "react-native": "./dist/card/index.js",
53
46
  "default": "./dist/card/index.js"
54
47
  },
55
48
  "./chip": {
56
49
  "types": "./dist/chip/index.d.ts",
57
- "react-native": "./src/chip/index.ts",
58
- "browser": "./src/chip/index.ts",
50
+ "react-native": "./dist/chip/index.js",
59
51
  "default": "./dist/chip/index.js"
60
52
  },
61
53
  "./checkbox": {
62
54
  "types": "./dist/checkbox/index.d.ts",
63
- "react-native": "./src/checkbox/index.ts",
64
- "browser": "./src/checkbox/index.ts",
55
+ "react-native": "./dist/checkbox/index.js",
65
56
  "default": "./dist/checkbox/index.js"
66
57
  },
67
58
  "./radio": {
68
59
  "types": "./dist/radio/index.d.ts",
69
- "react-native": "./src/radio/index.ts",
70
- "browser": "./src/radio/index.ts",
60
+ "react-native": "./dist/radio/index.js",
71
61
  "default": "./dist/radio/index.js"
72
62
  },
73
63
  "./switch": {
74
64
  "types": "./dist/switch/index.d.ts",
75
- "react-native": "./src/switch/index.ts",
76
- "browser": "./src/switch/index.ts",
65
+ "react-native": "./dist/switch/index.js",
77
66
  "default": "./dist/switch/index.js"
78
67
  },
79
68
  "./text-field": {
80
69
  "types": "./dist/text-field/index.d.ts",
81
- "react-native": "./src/text-field/index.ts",
82
- "browser": "./src/text-field/index.ts",
70
+ "react-native": "./dist/text-field/index.js",
83
71
  "default": "./dist/text-field/index.js"
84
72
  },
85
73
  "./list": {
86
74
  "types": "./dist/list/index.d.ts",
87
- "react-native": "./src/list/index.ts",
88
- "browser": "./src/list/index.ts",
75
+ "react-native": "./dist/list/index.js",
89
76
  "default": "./dist/list/index.js"
90
77
  },
91
78
  "./keyboard-avoiding-wrapper": {
92
79
  "types": "./dist/keyboard-avoiding-wrapper/index.d.ts",
93
- "react-native": "./src/keyboard-avoiding-wrapper/index.ts",
94
- "browser": "./src/keyboard-avoiding-wrapper/index.ts",
80
+ "react-native": "./dist/keyboard-avoiding-wrapper/index.js",
95
81
  "default": "./dist/keyboard-avoiding-wrapper/index.js"
96
82
  },
97
83
  "./avatar": {
98
84
  "types": "./dist/avatar/index.d.ts",
99
- "react-native": "./src/avatar/index.ts",
100
- "browser": "./src/avatar/index.ts",
85
+ "react-native": "./dist/avatar/index.js",
101
86
  "default": "./dist/avatar/index.js"
102
87
  }
103
88
  },
@@ -168,14 +153,9 @@
168
153
  "md3",
169
154
  "material-you"
170
155
  ],
171
- "scripts": {
172
- "build": "tsup",
173
- "typecheck": "tsc --noEmit",
174
- "test": "jest --passWithNoTests"
175
- },
176
156
  "peerDependencies": {
177
157
  "@expo/vector-icons": ">=14.0.0",
178
- "@onlynative/core": ">=0.0.0-alpha.0",
158
+ "@onlynative/core": ">=0.0.0-alpha.2",
179
159
  "react": ">=18.0.0",
180
160
  "react-native": ">=0.72.0",
181
161
  "react-native-safe-area-context": ">=4.0.0"
@@ -187,8 +167,6 @@
187
167
  },
188
168
  "devDependencies": {
189
169
  "@react-native/babel-preset": "^0.81.5",
190
- "@onlynative/core": "workspace:*",
191
- "@onlynative/utils": "workspace:*",
192
170
  "@testing-library/react-native": "^13.3.3",
193
171
  "@types/jest": "^29.5.14",
194
172
  "@types/react": "^19.0.0",
@@ -197,6 +175,13 @@
197
175
  "react-native": "0.81.5",
198
176
  "react-test-renderer": "19.1.0",
199
177
  "tsup": "^8.0.0",
200
- "typescript": "^5.0.0"
178
+ "typescript": "^5.0.0",
179
+ "@onlynative/core": "0.0.0-alpha.2",
180
+ "@onlynative/utils": "0.1.0-alpha.3"
181
+ },
182
+ "scripts": {
183
+ "build": "tsup",
184
+ "typecheck": "tsc --noEmit",
185
+ "test": "jest --passWithNoTests"
201
186
  }
202
- }
187
+ }