@umituz/react-native-design-system 1.5.28 → 1.5.30

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.
Files changed (58) hide show
  1. package/package.json +1 -1
  2. package/src/presentation/atoms/AtomicInput.tsx +5 -7
  3. package/dist/AtomicIcon.d.ts +0 -34
  4. package/dist/index.d.ts +0 -60
  5. package/dist/presentation/atoms/AtomicAvatar.d.ts +0 -47
  6. package/dist/presentation/atoms/AtomicAvatarGroup.d.ts +0 -55
  7. package/dist/presentation/atoms/AtomicBadge.d.ts +0 -41
  8. package/dist/presentation/atoms/AtomicButton.d.ts +0 -20
  9. package/dist/presentation/atoms/AtomicCard.d.ts +0 -14
  10. package/dist/presentation/atoms/AtomicChip.d.ts +0 -52
  11. package/dist/presentation/atoms/AtomicDatePicker.d.ts +0 -74
  12. package/dist/presentation/atoms/AtomicDivider.d.ts +0 -44
  13. package/dist/presentation/atoms/AtomicFab.d.ts +0 -36
  14. package/dist/presentation/atoms/AtomicFilter.d.ts +0 -36
  15. package/dist/presentation/atoms/AtomicFormError.d.ts +0 -29
  16. package/dist/presentation/atoms/AtomicIcon.d.ts +0 -34
  17. package/dist/presentation/atoms/AtomicImage.d.ts +0 -39
  18. package/dist/presentation/atoms/AtomicInput.d.ts +0 -70
  19. package/dist/presentation/atoms/AtomicNumberInput.d.ts +0 -68
  20. package/dist/presentation/atoms/AtomicPicker.d.ts +0 -51
  21. package/dist/presentation/atoms/AtomicProgress.d.ts +0 -43
  22. package/dist/presentation/atoms/AtomicSearchBar.d.ts +0 -18
  23. package/dist/presentation/atoms/AtomicSort.d.ts +0 -71
  24. package/dist/presentation/atoms/AtomicSwitch.d.ts +0 -42
  25. package/dist/presentation/atoms/AtomicText.d.ts +0 -33
  26. package/dist/presentation/atoms/AtomicTextArea.d.ts +0 -84
  27. package/dist/presentation/atoms/AtomicTouchable.d.ts +0 -76
  28. package/dist/presentation/atoms/fab/styles/fabStyles.d.ts +0 -22
  29. package/dist/presentation/atoms/fab/types/index.d.ts +0 -70
  30. package/dist/presentation/atoms/filter/styles/filterStyles.d.ts +0 -14
  31. package/dist/presentation/atoms/filter/types/index.d.ts +0 -75
  32. package/dist/presentation/atoms/index.d.ts +0 -272
  33. package/dist/presentation/atoms/picker/styles/pickerStyles.d.ts +0 -84
  34. package/dist/presentation/atoms/picker/types/index.d.ts +0 -37
  35. package/dist/presentation/atoms/touchable/styles/touchableStyles.d.ts +0 -30
  36. package/dist/presentation/atoms/touchable/types/index.d.ts +0 -133
  37. package/dist/presentation/hooks/useResponsive.d.ts +0 -79
  38. package/dist/presentation/molecules/AtomicConfirmationModal.d.ts +0 -72
  39. package/dist/presentation/molecules/EmptyState.d.ts +0 -40
  40. package/dist/presentation/molecules/FormField.d.ts +0 -21
  41. package/dist/presentation/molecules/GridContainer.d.ts +0 -39
  42. package/dist/presentation/molecules/IconContainer.d.ts +0 -28
  43. package/dist/presentation/molecules/ListItem.d.ts +0 -4
  44. package/dist/presentation/molecules/ScreenHeader.d.ts +0 -54
  45. package/dist/presentation/molecules/SearchBar.d.ts +0 -17
  46. package/dist/presentation/molecules/SectionCard.d.ts +0 -24
  47. package/dist/presentation/molecules/SectionContainer.d.ts +0 -32
  48. package/dist/presentation/molecules/SectionHeader.d.ts +0 -36
  49. package/dist/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.d.ts +0 -49
  50. package/dist/presentation/molecules/confirmation-modal/types/index.d.ts +0 -85
  51. package/dist/presentation/molecules/listitem/styles/listItemStyles.d.ts +0 -11
  52. package/dist/presentation/molecules/listitem/types/index.d.ts +0 -16
  53. package/dist/presentation/organisms/AppHeader.d.ts +0 -30
  54. package/dist/presentation/organisms/FormContainer.d.ts +0 -75
  55. package/dist/presentation/organisms/ScreenLayout.d.ts +0 -83
  56. package/dist/presentation/tokens/commonStyles.d.ts +0 -121
  57. package/dist/presentation/utils/platformConstants.d.ts +0 -99
  58. package/dist/presentation/utils/responsive.d.ts +0 -217
@@ -1,217 +0,0 @@
1
- /**
2
- * Responsive Design Utilities
3
- *
4
- * Centralized responsive sizing and spacing utilities to prevent
5
- * Apple App Store rejection due to layout issues on different devices.
6
- *
7
- * Supports:
8
- * - iPhone 13 mini (5.4" - smallest)
9
- * - iPhone 13/14/15 (6.1" - standard)
10
- * - iPhone 14 Pro Max (6.7" - largest phone)
11
- * - iPad Air (10.9" - tablet)
12
- */
13
- /**
14
- * Get current screen dimensions
15
- */
16
- export declare const getScreenDimensions: () => {
17
- width: number;
18
- height: number;
19
- };
20
- /**
21
- * Check if current device is a small phone (iPhone 13 mini, SE)
22
- */
23
- export declare const isSmallPhone: () => boolean;
24
- /**
25
- * Check if current device is a tablet (iPad)
26
- */
27
- export declare const isTablet: () => boolean;
28
- /**
29
- * Responsive logo/icon size
30
- * Small devices: 100-120px
31
- * Medium devices: 120-160px
32
- * Tablets: 160-200px
33
- */
34
- export declare const getResponsiveLogoSize: (baseSize?: number) => number;
35
- /**
36
- * Responsive multiline input height
37
- * Prevents keyboard overlap on small devices
38
- *
39
- * Small devices: 100-120px
40
- * Medium devices: 120-150px
41
- * Tablets: 150-200px
42
- */
43
- export declare const getResponsiveInputHeight: (baseHeight?: number) => number;
44
- /**
45
- * Responsive horizontal padding
46
- * Accounts for safe area on notched devices and iPad
47
- */
48
- export declare const getResponsiveHorizontalPadding: (basePadding?: number, insets?: {
49
- left: number;
50
- right: number;
51
- }) => number;
52
- /**
53
- * Responsive bottom positioning
54
- * Accounts for home indicator and safe area
55
- */
56
- export declare const getResponsiveBottomPosition: (basePosition?: number, insets?: {
57
- bottom: number;
58
- }) => number;
59
- /**
60
- * Responsive FAB (Floating Action Button) position
61
- * CRITICAL: Ensures FAB appears above tab bar (70-90px tall) and safe areas
62
- *
63
- * Tab bar heights:
64
- * - iOS: ~80-90px (including safe area)
65
- * - Android: ~70px
66
- *
67
- * FAB positioning:
68
- * - Tablets: 100px from bottom (generous spacing)
69
- * - Phones: 90px from bottom (above tab bar)
70
- * - Safe area aware (home indicator clearance)
71
- */
72
- export declare const getResponsiveFABPosition: (insets?: {
73
- bottom: number;
74
- right: number;
75
- }) => {
76
- bottom: number;
77
- right: number;
78
- };
79
- /**
80
- * Responsive modal max height
81
- * Prevents modals from taking too much space on tablets
82
- * or too little on small devices
83
- */
84
- export declare const getResponsiveModalMaxHeight: () => string;
85
- /**
86
- * Responsive modal min height
87
- * Ensures modals are always usable and not too small
88
- * Complements getResponsiveModalMaxHeight for complete modal sizing
89
- */
90
- export declare const getResponsiveMinModalHeight: () => number;
91
- /**
92
- * Responsive icon container size
93
- * Used in onboarding, cards, etc.
94
- */
95
- export declare const getResponsiveIconContainerSize: (baseSize?: number) => number;
96
- /**
97
- * Responsive grid columns
98
- * Returns number of columns for grid layouts
99
- */
100
- export declare const getResponsiveGridColumns: (mobileColumns?: number, tabletColumns?: number) => number;
101
- /**
102
- * Responsive max width for content
103
- * Prevents text from stretching too wide on tablets
104
- */
105
- export declare const getResponsiveMaxWidth: (baseWidth?: number) => number;
106
- /**
107
- * Responsive font size
108
- * Scales text for different devices while respecting minimum sizes
109
- */
110
- export declare const getResponsiveFontSize: (baseFontSize: number) => number;
111
- /**
112
- * Check if device is in landscape mode
113
- */
114
- export declare const isLandscape: () => boolean;
115
- /**
116
- * Get universal keyboard behavior
117
- * Returns 'padding' which works across all platforms (iOS, Android, Web)
118
- */
119
- export declare const getKeyboardBehavior: () => "padding" | "height" | "position" | undefined;
120
- /**
121
- * Device type enum for conditional rendering
122
- */
123
- export declare enum DeviceType {
124
- SMALL_PHONE = "SMALL_PHONE",
125
- MEDIUM_PHONE = "MEDIUM_PHONE",
126
- LARGE_PHONE = "LARGE_PHONE",
127
- TABLET = "TABLET"
128
- }
129
- /**
130
- * Get current device type
131
- */
132
- export declare const getDeviceType: () => DeviceType;
133
- /**
134
- * Apple HIG compliant touch target size
135
- */
136
- export declare const getMinTouchTargetSize: () => number;
137
- /**
138
- * Responsive spacing multiplier
139
- * Returns a multiplier for spacing based on device size
140
- */
141
- export declare const getSpacingMultiplier: () => number;
142
- /**
143
- * Onboarding icon container top margin
144
- * Small phones: 24px (lg), Others: 40px (xxl)
145
- */
146
- export declare const getOnboardingIconMarginTop: () => number;
147
- /**
148
- * Onboarding icon container bottom margin
149
- * Tablets: 60px (xxl * 1.5 for extra breathing room), Others: 40px (xxl)
150
- */
151
- export declare const getOnboardingIconMarginBottom: () => number;
152
- /**
153
- * Onboarding title bottom margin
154
- * Tablets: 24px (lg), Others: 16px (md)
155
- */
156
- export declare const getOnboardingTitleMarginBottom: () => number;
157
- /**
158
- * Onboarding text horizontal padding (title and description)
159
- * Small phones: 8px (sm for tighter fit), Others: 16px (md)
160
- */
161
- export declare const getOnboardingTextPadding: () => number;
162
- /**
163
- * Onboarding description top margin
164
- * Small phones: 4px (xs), Others: 8px (sm)
165
- */
166
- export declare const getOnboardingDescriptionMarginTop: () => number;
167
- /**
168
- * Onboarding icon size (for icon inside container)
169
- * Calculated as ~55% of icon container size for proper visual balance
170
- * Small phones: ~66px (55% of 120px), Standard: ~77px (55% of 140px), Tablets: ~99px (55% of 180px)
171
- */
172
- export declare const getOnboardingIconSize: () => number;
173
- /**
174
- * Keyboard vertical offset for KeyboardAvoidingView
175
- * Accounts for header/navigation bar height
176
- * Universal value that works across all platforms
177
- */
178
- export declare const getKeyboardVerticalOffset: () => number;
179
- /**
180
- * Form container bottom padding
181
- * Prevents overlap with bottom tab navigation and ensures submit buttons are accessible
182
- *
183
- * Formula: safeAreaBottom + tabBarHeight + extraSpace
184
- * - Tab bar height: ~56px (iOS/Android standard)
185
- * - Extra space: ~24px (breathing room for submit button)
186
- * - Safe area: Variable (home indicator on iPhone)
187
- * - Minimum: 100px (ensures buttons always accessible)
188
- */
189
- export declare const getFormBottomPadding: (safeAreaBottom: number) => number;
190
- /**
191
- * Input field icon size
192
- * Used for leading/trailing icons and password toggle
193
- * Apple HIG: Minimum 22px for touch targets
194
- */
195
- export declare const getInputIconSize: () => number;
196
- /**
197
- * Form content container width
198
- * Forms need more generous width than regular content to prevent cramped layouts
199
- *
200
- * Strategy:
201
- * - Phones: undefined (no max width restriction, fills available space)
202
- * - Tablets: Max 700px (readable but not restrictive)
203
- *
204
- * Different from getResponsiveMaxWidth which is for text content (max 400px)
205
- *
206
- * @returns number for tablets (700px max), undefined for phones (no restriction)
207
- */
208
- export declare const getFormContentWidth: () => number | undefined;
209
- /**
210
- * Form element spacing (vertical)
211
- * Vertical spacing between form elements (inputs, buttons, etc.)
212
- * Used with Children.map() wrapper pattern for universal compatibility
213
- * Replaces CSS gap property (old RN version compatibility)
214
- *
215
- * Universal pattern - works on iOS, Android, Web
216
- */
217
- export declare const getFormElementSpacing: () => number;