@sudobility/analytics-components-rn 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.
- package/dist/index.cjs.js +8 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +8 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/utils.d.ts +7 -0
- package/dist/utils.d.ts.map +1 -0
- package/package.json +52 -0
- package/src/index.ts +14 -0
- package/src/nativewind.d.ts +23 -0
- package/src/utils.ts +9 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../src/utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from 'clsx';\n\n/**\n * Utility function for merging class names\n * Using clsx for React Native (no tailwind-merge needed)\n */\nexport function cn(...inputs: ClassValue[]) {\n return clsx(inputs);\n}\n"],"names":["clsx"],"mappings":";;;AAMO,SAAS,MAAM,QAAsB;AAC1C,SAAOA,KAAAA,KAAK,MAAM;AACpB;;"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @sudobility/analytics-components-rn
|
|
3
|
+
* React Native Analytics components for Sudobility
|
|
4
|
+
*
|
|
5
|
+
* Components to be ported from @sudobility/analytics-components:
|
|
6
|
+
* - TrendIndicator
|
|
7
|
+
* - TimelineChart
|
|
8
|
+
* - ProgressRing
|
|
9
|
+
* - DataTable
|
|
10
|
+
* - ... and more
|
|
11
|
+
*/
|
|
12
|
+
export { cn } from './utils';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from 'clsx';\n\n/**\n * Utility function for merging class names\n * Using clsx for React Native (no tailwind-merge needed)\n */\nexport function cn(...inputs: ClassValue[]) {\n return clsx(inputs);\n}\n"],"names":[],"mappings":";AAMO,SAAS,MAAM,QAAsB;AAC1C,SAAO,KAAK,MAAM;AACpB;"}
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAE7C;;;GAGG;AACH,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sudobility/analytics-components-rn",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "React Native Analytics components for Sudobility",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.esm.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"react-native": "src/index.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"react-native": "./src/index.ts",
|
|
13
|
+
"import": "./dist/index.esm.js",
|
|
14
|
+
"require": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"src"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsc && vite build",
|
|
23
|
+
"dev": "vite build --watch",
|
|
24
|
+
"type-check": "tsc --noEmit"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"clsx": "^2.1.1"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
31
|
+
"react-native": ">=0.72.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@sudobility/design": "^1.1.11",
|
|
35
|
+
"@types/react": "^18.3.0",
|
|
36
|
+
"@types/react-native": "^0.73.0",
|
|
37
|
+
"nativewind": "^4.1.0",
|
|
38
|
+
"react": "^18.3.0",
|
|
39
|
+
"react-native": "^0.76.0",
|
|
40
|
+
"typescript": "^5.6.0",
|
|
41
|
+
"vite": "^6.0.0",
|
|
42
|
+
"vite-plugin-dts": "^4.3.0"
|
|
43
|
+
},
|
|
44
|
+
"repository": {
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "https://github.com/sudobility/components-rn.git",
|
|
47
|
+
"directory": "packages/analytics-components-rn"
|
|
48
|
+
},
|
|
49
|
+
"keywords": ["react-native", "analytics", "trend", "timeline", "components"],
|
|
50
|
+
"author": "Sudobility",
|
|
51
|
+
"license": "MIT"
|
|
52
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @sudobility/analytics-components-rn
|
|
3
|
+
* React Native Analytics components for Sudobility
|
|
4
|
+
*
|
|
5
|
+
* Components to be ported from @sudobility/analytics-components:
|
|
6
|
+
* - TrendIndicator
|
|
7
|
+
* - TimelineChart
|
|
8
|
+
* - ProgressRing
|
|
9
|
+
* - DataTable
|
|
10
|
+
* - ... and more
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
// Utilities
|
|
14
|
+
export { cn } from './utils';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Type declarations for NativeWind className prop
|
|
2
|
+
import 'react-native';
|
|
3
|
+
|
|
4
|
+
declare module 'react-native' {
|
|
5
|
+
interface ViewProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
interface TextProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
interface ImageProps {
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
interface PressableProps {
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
interface TouchableOpacityProps {
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
interface ScrollViewProps {
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
}
|
package/src/utils.ts
ADDED