@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.
@@ -23,16 +23,16 @@ export const EmailInputField: React.FC<EmailInputFieldProps> = ({
23
23
  }) => {
24
24
  return (
25
25
  <View className={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>}
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="#9CA3AF"
34
- keyboardType="email-address"
35
- autoCapitalize="none"
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="mt-1 text-sm text-red-600 dark:text-red-400">
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="button"
77
- className="flex-row items-center mb-2"
76
+ accessibilityRole='button'
77
+ className='flex-row items-center mb-2'
78
78
  >
79
- <Text className="text-sm text-blue-600 dark:text-blue-400">
79
+ <Text className='text-sm text-blue-600 dark:text-blue-400'>
80
80
  {isVisible ? '▲' : '▼'} {toggleLabel}
81
81
  </Text>
82
82
  </Pressable>
@@ -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="button"
27
- accessibilityLabel="Email Template"
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="text-gray-900 dark:text-white">
40
+ <Text className='text-gray-900 dark:text-white'>
41
41
  EmailTemplate Component
42
42
  </Text>
43
43
  )}
@@ -111,22 +111,22 @@ export const FreeEmailBanner: React.FC<FreeEmailBannerProps> = ({
111
111
  getSizeStyle(size),
112
112
  className
113
113
  )}
114
- accessibilityLabel="Free Email Banner"
114
+ accessibilityLabel='Free Email Banner'
115
115
  {...props}
116
116
  >
117
- <View className="items-center gap-4">
117
+ <View className='items-center gap-4'>
118
118
  {isDismissible && onDismiss && (
119
119
  <Pressable
120
120
  onPress={onDismiss}
121
- accessibilityRole="button"
121
+ accessibilityRole='button'
122
122
  accessibilityLabel={dismissAriaLabel}
123
- className="absolute right-2 top-2 p-1 rounded-full"
123
+ className='absolute right-2 top-2 p-1 rounded-full'
124
124
  >
125
- <Text className="text-current opacity-60">✕</Text>
125
+ <Text className='text-current opacity-60'>✕</Text>
126
126
  </Pressable>
127
127
  )}
128
128
 
129
- <View className="flex-row items-center justify-center flex-wrap gap-2">
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 className={cn('font-semibold text-center', getTextStyle(variant))}>
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="button"
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}
@@ -26,11 +26,11 @@ export const SubscriberList: React.FC<SubscriberListProps> = ({
26
26
  disabled && 'opacity-50',
27
27
  className
28
28
  )}
29
- accessibilityLabel="Subscriber List"
29
+ accessibilityLabel='Subscriber List'
30
30
  {...props}
31
31
  >
32
32
  {children || (
33
- <Text className="text-gray-900 dark:text-white">
33
+ <Text className='text-gray-900 dark:text-white'>
34
34
  SubscriberList Component
35
35
  </Text>
36
36
  )}
@@ -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="button"
27
- accessibilityLabel="Subscription Plan"
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="text-gray-900 dark:text-white">
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 { SubscriptionPlan, type SubscriptionPlanProps } from './SubscriptionPlan';
27
+ export {
28
+ SubscriptionPlan,
29
+ type SubscriptionPlanProps,
30
+ } from './SubscriptionPlan';