@sudobility/social-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/src/index.ts ADDED
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @sudobility/social-components-rn
3
+ * React Native Social components for Sudobility
4
+ *
5
+ * Components ported from @sudobility/social-components:
6
+ * - RatingStars - Star rating input/display
7
+ * - ShareButtons - Social media share buttons
8
+ *
9
+ * Components to be ported:
10
+ * - ButtonGroup
11
+ * - FeedbackForm
12
+ * - SocialFeed
13
+ * - JobPosting
14
+ */
15
+
16
+ // Utilities
17
+ export { cn } from './utils';
18
+
19
+ // Components
20
+ export { RatingStars } from './RatingStars';
21
+ export type { RatingStarsProps } from './RatingStars';
22
+
23
+ export { ShareButtons } from './ShareButtons';
24
+ export type { ShareButtonsProps, SharePlatform } from './ShareButtons';
@@ -0,0 +1,22 @@
1
+ import 'react-native';
2
+
3
+ declare module 'react-native' {
4
+ interface ViewProps {
5
+ className?: string;
6
+ }
7
+ interface TextProps {
8
+ className?: string;
9
+ }
10
+ interface ImageProps {
11
+ className?: string;
12
+ }
13
+ interface PressableProps {
14
+ className?: string;
15
+ }
16
+ interface TouchableOpacityProps {
17
+ className?: string;
18
+ }
19
+ interface ScrollViewProps {
20
+ className?: string;
21
+ }
22
+ }
package/src/utils.ts ADDED
@@ -0,0 +1,9 @@
1
+ import { clsx, type ClassValue } from 'clsx';
2
+
3
+ /**
4
+ * Utility function for conditional class name merging
5
+ * Uses clsx for React Native (no tailwind-merge needed)
6
+ */
7
+ export function cn(...inputs: ClassValue[]) {
8
+ return clsx(inputs);
9
+ }