@sudobility/email-components-rn 1.0.0 → 1.0.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.
- package/dist/ContactCard.d.ts.map +1 -1
- package/dist/EmailAccountsList.d.ts.map +1 -1
- package/dist/FreeEmailBanner.d.ts.map +1 -1
- package/dist/index.cjs.js +280 -888
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +280 -888
- package/dist/index.esm.js.map +1 -1
- package/package.json +5 -7
- package/src/AbTestEmail.tsx +2 -2
- package/src/ContactCard.tsx +17 -11
- package/src/EmailAccountsList.tsx +11 -12
- package/src/EmailAnalytics.tsx +2 -2
- package/src/EmailCampaign.tsx +2 -2
- package/src/EmailInputGroup.tsx +9 -9
- package/src/EmailTemplate.tsx +3 -3
- package/src/FreeEmailBanner.tsx +11 -12
- package/src/SubscriberList.tsx +2 -2
- package/src/SubscriptionPlan.tsx +3 -3
- package/src/index.ts +4 -1
package/src/EmailInputGroup.tsx
CHANGED
|
@@ -23,16 +23,16 @@ export const EmailInputField: React.FC<EmailInputFieldProps> = ({
|
|
|
23
23
|
}) => {
|
|
24
24
|
return (
|
|
25
25
|
<View className={className}>
|
|
26
|
-
<Text className=
|
|
27
|
-
{label} {required && <Text className=
|
|
26
|
+
<Text className='text-sm font-medium text-gray-700 dark:text-gray-300 mb-1'>
|
|
27
|
+
{label} {required && <Text className='text-red-500'>*</Text>}
|
|
28
28
|
</Text>
|
|
29
29
|
<TextInput
|
|
30
30
|
value={value}
|
|
31
31
|
onChangeText={onChangeText}
|
|
32
32
|
placeholder={placeholder}
|
|
33
|
-
placeholderTextColor=
|
|
34
|
-
keyboardType=
|
|
35
|
-
autoCapitalize=
|
|
33
|
+
placeholderTextColor='#9CA3AF'
|
|
34
|
+
keyboardType='email-address'
|
|
35
|
+
autoCapitalize='none'
|
|
36
36
|
autoCorrect={false}
|
|
37
37
|
accessibilityLabel={label}
|
|
38
38
|
className={cn(
|
|
@@ -45,7 +45,7 @@ export const EmailInputField: React.FC<EmailInputFieldProps> = ({
|
|
|
45
45
|
)}
|
|
46
46
|
/>
|
|
47
47
|
{error && (
|
|
48
|
-
<Text className=
|
|
48
|
+
<Text className='mt-1 text-sm text-red-600 dark:text-red-400'>
|
|
49
49
|
{error}
|
|
50
50
|
</Text>
|
|
51
51
|
)}
|
|
@@ -73,10 +73,10 @@ export const CollapsibleEmailField: React.FC<CollapsibleEmailFieldProps> = ({
|
|
|
73
73
|
<View>
|
|
74
74
|
<Pressable
|
|
75
75
|
onPress={onToggle}
|
|
76
|
-
accessibilityRole=
|
|
77
|
-
className=
|
|
76
|
+
accessibilityRole='button'
|
|
77
|
+
className='flex-row items-center mb-2'
|
|
78
78
|
>
|
|
79
|
-
<Text className=
|
|
79
|
+
<Text className='text-sm text-blue-600 dark:text-blue-400'>
|
|
80
80
|
{isVisible ? '▲' : '▼'} {toggleLabel}
|
|
81
81
|
</Text>
|
|
82
82
|
</Pressable>
|
package/src/EmailTemplate.tsx
CHANGED
|
@@ -23,8 +23,8 @@ export const EmailTemplate: React.FC<EmailTemplateProps> = ({
|
|
|
23
23
|
<Pressable
|
|
24
24
|
onPress={disabled ? undefined : onPress}
|
|
25
25
|
disabled={disabled}
|
|
26
|
-
accessibilityRole=
|
|
27
|
-
accessibilityLabel=
|
|
26
|
+
accessibilityRole='button'
|
|
27
|
+
accessibilityLabel='Email Template'
|
|
28
28
|
accessibilityState={{ disabled }}
|
|
29
29
|
className={cn(
|
|
30
30
|
'p-4 rounded-lg border',
|
|
@@ -37,7 +37,7 @@ export const EmailTemplate: React.FC<EmailTemplateProps> = ({
|
|
|
37
37
|
{...props}
|
|
38
38
|
>
|
|
39
39
|
{children || (
|
|
40
|
-
<Text className=
|
|
40
|
+
<Text className='text-gray-900 dark:text-white'>
|
|
41
41
|
EmailTemplate Component
|
|
42
42
|
</Text>
|
|
43
43
|
)}
|
package/src/FreeEmailBanner.tsx
CHANGED
|
@@ -111,22 +111,22 @@ export const FreeEmailBanner: React.FC<FreeEmailBannerProps> = ({
|
|
|
111
111
|
getSizeStyle(size),
|
|
112
112
|
className
|
|
113
113
|
)}
|
|
114
|
-
accessibilityLabel=
|
|
114
|
+
accessibilityLabel='Free Email Banner'
|
|
115
115
|
{...props}
|
|
116
116
|
>
|
|
117
|
-
<View className=
|
|
117
|
+
<View className='items-center gap-4'>
|
|
118
118
|
{isDismissible && onDismiss && (
|
|
119
119
|
<Pressable
|
|
120
120
|
onPress={onDismiss}
|
|
121
|
-
accessibilityRole=
|
|
121
|
+
accessibilityRole='button'
|
|
122
122
|
accessibilityLabel={dismissAriaLabel}
|
|
123
|
-
className=
|
|
123
|
+
className='absolute right-2 top-2 p-1 rounded-full'
|
|
124
124
|
>
|
|
125
|
-
<Text className=
|
|
125
|
+
<Text className='text-current opacity-60'>✕</Text>
|
|
126
126
|
</Pressable>
|
|
127
127
|
)}
|
|
128
128
|
|
|
129
|
-
<View className=
|
|
129
|
+
<View className='flex-row items-center justify-center flex-wrap gap-2'>
|
|
130
130
|
{showBadge && (
|
|
131
131
|
<View
|
|
132
132
|
className={cn(
|
|
@@ -144,18 +144,17 @@ export const FreeEmailBanner: React.FC<FreeEmailBannerProps> = ({
|
|
|
144
144
|
</Text>
|
|
145
145
|
</View>
|
|
146
146
|
)}
|
|
147
|
-
<Text
|
|
147
|
+
<Text
|
|
148
|
+
className={cn('font-semibold text-center', getTextStyle(variant))}
|
|
149
|
+
>
|
|
148
150
|
{message}
|
|
149
151
|
</Text>
|
|
150
152
|
</View>
|
|
151
153
|
|
|
152
154
|
<Pressable
|
|
153
155
|
onPress={handleCtaPress}
|
|
154
|
-
accessibilityRole=
|
|
155
|
-
className={cn(
|
|
156
|
-
'px-6 py-2 rounded-lg',
|
|
157
|
-
getButtonStyle(variant)
|
|
158
|
-
)}
|
|
156
|
+
accessibilityRole='button'
|
|
157
|
+
className={cn('px-6 py-2 rounded-lg', getButtonStyle(variant))}
|
|
159
158
|
>
|
|
160
159
|
<Text className={cn('font-medium', getButtonTextStyle(variant))}>
|
|
161
160
|
{ctaText}
|
package/src/SubscriberList.tsx
CHANGED
|
@@ -26,11 +26,11 @@ export const SubscriberList: React.FC<SubscriberListProps> = ({
|
|
|
26
26
|
disabled && 'opacity-50',
|
|
27
27
|
className
|
|
28
28
|
)}
|
|
29
|
-
accessibilityLabel=
|
|
29
|
+
accessibilityLabel='Subscriber List'
|
|
30
30
|
{...props}
|
|
31
31
|
>
|
|
32
32
|
{children || (
|
|
33
|
-
<Text className=
|
|
33
|
+
<Text className='text-gray-900 dark:text-white'>
|
|
34
34
|
SubscriberList Component
|
|
35
35
|
</Text>
|
|
36
36
|
)}
|
package/src/SubscriptionPlan.tsx
CHANGED
|
@@ -23,8 +23,8 @@ export const SubscriptionPlan: React.FC<SubscriptionPlanProps> = ({
|
|
|
23
23
|
<Pressable
|
|
24
24
|
onPress={disabled ? undefined : onPress}
|
|
25
25
|
disabled={disabled}
|
|
26
|
-
accessibilityRole=
|
|
27
|
-
accessibilityLabel=
|
|
26
|
+
accessibilityRole='button'
|
|
27
|
+
accessibilityLabel='Subscription Plan'
|
|
28
28
|
accessibilityState={{ disabled }}
|
|
29
29
|
className={cn(
|
|
30
30
|
'p-4 rounded-lg border',
|
|
@@ -37,7 +37,7 @@ export const SubscriptionPlan: React.FC<SubscriptionPlanProps> = ({
|
|
|
37
37
|
{...props}
|
|
38
38
|
>
|
|
39
39
|
{children || (
|
|
40
|
-
<Text className=
|
|
40
|
+
<Text className='text-gray-900 dark:text-white'>
|
|
41
41
|
SubscriptionPlan Component
|
|
42
42
|
</Text>
|
|
43
43
|
)}
|
package/src/index.ts
CHANGED
|
@@ -24,4 +24,7 @@ export {
|
|
|
24
24
|
export { EmailTemplate, type EmailTemplateProps } from './EmailTemplate';
|
|
25
25
|
export { FreeEmailBanner, type FreeEmailBannerProps } from './FreeEmailBanner';
|
|
26
26
|
export { SubscriberList, type SubscriberListProps } from './SubscriberList';
|
|
27
|
-
export {
|
|
27
|
+
export {
|
|
28
|
+
SubscriptionPlan,
|
|
29
|
+
type SubscriptionPlanProps,
|
|
30
|
+
} from './SubscriptionPlan';
|