@flipova/foundation 1.12.0 → 1.13.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.
Files changed (83) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/LICENSE +21 -21
  3. package/README.md +215 -197
  4. package/dist/chunk-2XORADW6.js +24552 -0
  5. package/dist/chunk-2XORADW6.js.map +1 -0
  6. package/dist/chunk-52BHHF5M.js +46 -0
  7. package/dist/chunk-52BHHF5M.js.map +1 -0
  8. package/dist/{chunk-NYZH4C27.mjs → chunk-5647JY7Z.mjs} +4 -4
  9. package/dist/chunk-5647JY7Z.mjs.map +1 -0
  10. package/dist/{chunk-O7UP2OZR.js → chunk-7QFZMGL6.js} +1971 -93
  11. package/dist/chunk-7QFZMGL6.js.map +1 -0
  12. package/dist/{chunk-4KNPSB67.js → chunk-ASZEP37D.js} +2 -2
  13. package/dist/chunk-ASZEP37D.js.map +1 -0
  14. package/dist/chunk-BH5SU2JQ.mjs +8282 -0
  15. package/dist/chunk-BH5SU2JQ.mjs.map +1 -0
  16. package/dist/{chunk-TZUCBWHN.mjs → chunk-BO65GO53.mjs} +3 -3
  17. package/dist/chunk-BO65GO53.mjs.map +1 -0
  18. package/dist/{chunk-DJP3T7OD.mjs → chunk-BSVXX52E.mjs} +2 -2
  19. package/dist/chunk-BSVXX52E.mjs.map +1 -0
  20. package/dist/chunk-EDTAMUO2.js +8310 -0
  21. package/dist/chunk-EDTAMUO2.js.map +1 -0
  22. package/dist/chunk-M3YLASM2.js +428 -0
  23. package/dist/chunk-M3YLASM2.js.map +1 -0
  24. package/dist/{chunk-4NPMHFKO.mjs → chunk-RQXQK3ZO.mjs} +1971 -94
  25. package/dist/chunk-RQXQK3ZO.mjs.map +1 -0
  26. package/dist/chunk-SR25V4EA.mjs +40 -0
  27. package/dist/chunk-SR25V4EA.mjs.map +1 -0
  28. package/dist/{chunk-JYGNIQUU.js → chunk-UB34WFEQ.js} +18 -18
  29. package/dist/chunk-UB34WFEQ.js.map +1 -0
  30. package/dist/chunk-ZBRWXKDF.mjs +24431 -0
  31. package/dist/chunk-ZBRWXKDF.mjs.map +1 -0
  32. package/dist/cli/ds.d.mts +1 -0
  33. package/dist/cli/ds.d.ts +1 -0
  34. package/dist/cli/ds.js +182 -7914
  35. package/dist/cli/ds.js.map +1 -0
  36. package/dist/cli/ds.mjs +579 -0
  37. package/dist/cli/ds.mjs.map +1 -0
  38. package/dist/cli/flipova.d.mts +1 -0
  39. package/dist/cli/flipova.d.ts +1 -0
  40. package/dist/cli/flipova.js +24 -4884
  41. package/dist/cli/flipova.js.map +1 -0
  42. package/dist/cli/flipova.mjs +154 -0
  43. package/dist/cli/flipova.mjs.map +1 -0
  44. package/dist/config/index.d.mts +12 -12
  45. package/dist/config/index.d.ts +12 -12
  46. package/dist/config/index.js +6 -6
  47. package/dist/config/index.mjs +1 -1
  48. package/dist/{index-CpBqkIpd.d.mts → index-CuaJA3gM.d.mts} +10 -10
  49. package/dist/{index-CpBqkIpd.d.ts → index-CuaJA3gM.d.ts} +10 -10
  50. package/dist/index.d.mts +2 -2
  51. package/dist/index.d.ts +2 -2
  52. package/dist/index.js +216 -212
  53. package/dist/index.mjs +5 -5
  54. package/dist/registry/index.d.mts +470 -3
  55. package/dist/registry/index.d.ts +470 -3
  56. package/dist/registry/index.js +100 -96
  57. package/dist/registry/index.mjs +1 -1
  58. package/dist/theme/index.d.mts +15 -25
  59. package/dist/theme/index.d.ts +15 -25
  60. package/dist/theme/index.js +6 -6
  61. package/dist/theme/index.mjs +1 -1
  62. package/dist/tokens/index.js +10 -10
  63. package/dist/tokens/index.mjs +1 -1
  64. package/dist/types/index.d.mts +23 -21
  65. package/dist/types/index.d.ts +23 -21
  66. package/dist/ui/index.d.mts +242 -84
  67. package/dist/ui/index.d.ts +242 -84
  68. package/dist/ui/index.js +182 -182
  69. package/dist/ui/index.mjs +2 -2
  70. package/package.json +29 -11
  71. package/dist/chunk-4KNPSB67.js.map +0 -1
  72. package/dist/chunk-4NPMHFKO.mjs.map +0 -1
  73. package/dist/chunk-5LRV4YZO.js +0 -7024
  74. package/dist/chunk-5LRV4YZO.js.map +0 -1
  75. package/dist/chunk-CKQBSIBR.mjs +0 -6900
  76. package/dist/chunk-CKQBSIBR.mjs.map +0 -1
  77. package/dist/chunk-DJP3T7OD.mjs.map +0 -1
  78. package/dist/chunk-JYGNIQUU.js.map +0 -1
  79. package/dist/chunk-NYZH4C27.mjs.map +0 -1
  80. package/dist/chunk-O7UP2OZR.js.map +0 -1
  81. package/dist/chunk-RPO7RKXJ.js +0 -428
  82. package/dist/chunk-RPO7RKXJ.js.map +0 -1
  83. package/dist/chunk-TZUCBWHN.mjs.map +0 -1
@@ -171,6 +171,9 @@ interface KeyboardAvoidWrapperProps {
171
171
  /**
172
172
  * @component KeyboardAvoidWrapper
173
173
  * @description Automatically handles keyboard layout shifting for its wrapped children.
174
+ *
175
+ * On native platforms (iOS/Android), uses KeyboardAvoidingView to shift content up when keyboard appears.
176
+ * On web, keyboard doesn't affect layout the same way, so this is a pass-through View component.
174
177
  */
175
178
  declare const KeyboardAvoidWrapper: React$1.FC<KeyboardAvoidWrapperProps>;
176
179
 
@@ -501,22 +504,28 @@ interface CameraProps {
501
504
  * A camera component for capturing photos or videos.
502
505
  *
503
506
  * @description
504
- * This component wraps `expo-camera` to provide a consistent interface for camera integration.
505
- * It handles permission requests automatically upon mounting.
507
+ * - Native: Uses `expo-camera` with automatic permission handling
508
+ * - Web: Uses browser MediaDevices API (requires HTTPS or localhost)
506
509
  *
507
- * @useCases
508
- * - Scanning QR codes or barcodes.
509
- * - Capturing user avatars or profile photos.
510
- * - Recording video clips within the application.
510
+ * @webRequirements
511
+ * - HTTPS protocol (except localhost)
512
+ * - User permission to access camera
513
+ * - Modern browser with getUserMedia support
511
514
  *
512
- * @structure
513
- * - Manages camera permissions using `useCameraPermissions`.
514
- * - Conditionally renders a loading state, permission denied state, or the actual `CameraView`.
515
- * - The `CameraView` fills its container using absolute positioning or flexbox depending on styles.
515
+ * @useCases
516
+ * - Scanning QR codes or barcodes
517
+ * - Capturing user avatars or profile photos
518
+ * - Recording video clips within the application
516
519
  *
517
520
  * @accessibility
518
- * - Provides fallback text ("No access to camera") when permissions are denied, which is readable by screen readers.
519
- * - Ensure that any controls layered over the camera (buttons, overlays) have sufficient contrast and accessibility labels.
521
+ * - Provides fallback text when permissions are denied
522
+ * - ARIA labels for video elements
523
+ * - Error messages are descriptive and user-friendly
524
+ *
525
+ * @security
526
+ * - Validates feature availability before attempting access
527
+ * - Handles permission denied gracefully
528
+ * - Streams are properly cleaned up on unmount
520
529
  */
521
530
  declare const Camera: React$1.FC<CameraProps>;
522
531
 
@@ -605,8 +614,9 @@ interface CheckboxProps {
605
614
  *
606
615
  * @accessibility
607
616
  * - The entire wrapper is pressable to aid users with limited dexterity.
608
- * - Depending on the use case, consider adding explicit `accessibilityRole="checkbox"` and
609
- * `accessibilityState={{ checked: logic.checked, disabled: logic.disabled }}` to the Pressable via `rest`.
617
+ * - Proper ARIA roles and states for web (aria-checked, aria-disabled, aria-label).
618
+ * - Native accessibility role and state for React Native.
619
+ * - Error states supported with aria-invalid and aria-describedby.
610
620
  */
611
621
  declare const Checkbox: React$1.FC<CheckboxProps>;
612
622
 
@@ -823,6 +833,11 @@ interface FilePickerProps {
823
833
  * @param file The file object returned by the document picker.
824
834
  */
825
835
  onFileSelect?: (file: any) => void;
836
+ /**
837
+ * Callback fired when file validation fails.
838
+ * @param error Error message describing the validation failure.
839
+ */
840
+ onFileError?: (error: string) => void;
826
841
  /**
827
842
  * Disables the file picker, preventing interaction if set to true.
828
843
  */
@@ -832,9 +847,18 @@ interface FilePickerProps {
832
847
  */
833
848
  label?: string;
834
849
  /**
835
- * Optional MIME type to restrict file selection (e.g. 'image/*').
850
+ * Optional MIME type to restrict file selection (e.g. 'image/*', 'image/png,image/jpeg').
836
851
  */
837
852
  accept?: string;
853
+ /**
854
+ * Maximum file size in megabytes. If not specified, no limit is enforced.
855
+ */
856
+ maxSizeInMB?: number;
857
+ /**
858
+ * Array of allowed file extensions (without dot, e.g., ['pdf', 'docx']).
859
+ * If not specified, no extension validation is performed.
860
+ */
861
+ allowedExtensions?: string[];
838
862
  /**
839
863
  * Any other props to spread to the underlying Pressable or container.
840
864
  */
@@ -853,6 +877,11 @@ interface FilePickerProps {
853
877
  *
854
878
  * Accessibility:
855
879
  * Uses `accessibilityRole="button"` and `accessibilityLabel` to ensure screen readers correctly identify it as an interactive element.
880
+ * Provides error feedback via aria-invalid and aria-describedby for validation messages.
881
+ *
882
+ * Validation:
883
+ * Supports file size limits (maxSizeInMB), MIME type restrictions (accept), and extension validation.
884
+ * Validation errors are reported via onFileError callback.
856
885
  */
857
886
  declare const FilePicker: React$1.FC<FilePickerProps>;
858
887
 
@@ -891,13 +920,17 @@ interface FlatListProps {
891
920
  *
892
921
  * Role & Use Cases:
893
922
  * Use this component whenever you need to display a scrollable list of items, such as feeds, contact lists, or menus.
894
- * It is highly performant as it only renders items currently visible on the screen.
923
+ * It is highly performant as it only renders items currently visible on the screen (on native).
924
+ * On web, it falls back to a scrollable container for compatibility.
895
925
  *
896
926
  * Structure:
897
- * Extends the native `FlatList` and automatically applies theme-based styling and meta configurations.
927
+ * - Native: Extends the native `FlatList` for virtualization and performance.
928
+ * - Web: Uses ScrollView with mapped items for simplicity (developers should implement virtualization if needed).
898
929
  *
899
930
  * Accessibility:
900
- * Inherits the standard list accessibility features from React Native. Ensure to pass appropriate accessibility props to the `renderItem` components.
931
+ * Inherits the standard list accessibility features from React Native.
932
+ * Ensure to pass appropriate accessibility props to the `renderItem` components.
933
+ * On web, ensure proper ARIA roles are set via the parent container.
901
934
  */
902
935
  declare const FlatList: React$1.FC<FlatListProps>;
903
936
 
@@ -965,7 +998,9 @@ interface GradientProps {
965
998
  * Used for decorative backgrounds, stylized buttons, or overlay effects to enhance the visual design.
966
999
  *
967
1000
  * Structure:
968
- * Wraps `expo-linear-gradient` to provide a consistent API and theming.
1001
+ * - Native: Wraps `expo-linear-gradient` for precise native gradient rendering.
1002
+ * - Web: Uses CSS linear-gradient with converted coordinates.
1003
+ * - Children are rendered on top of the gradient background.
969
1004
  *
970
1005
  * Accessibility:
971
1006
  * Primarily a visual enhancement. If the gradient contains important content, ensure the children themselves are accessible.
@@ -1089,8 +1124,23 @@ interface ImageProps {
1089
1124
  src: string;
1090
1125
  /**
1091
1126
  * Alternative text description for accessibility.
1127
+ * Required for semantic HTML and screen reader support.
1092
1128
  */
1093
1129
  alt?: string;
1130
+ /**
1131
+ * Fallback image URI displayed if the primary image fails to load.
1132
+ * Useful for handling broken links or network errors gracefully.
1133
+ */
1134
+ fallbackSrc?: string;
1135
+ /**
1136
+ * Callback fired when the image fails to load.
1137
+ * @param error Error details from the image loading failure.
1138
+ */
1139
+ onError?: (error: Error) => void;
1140
+ /**
1141
+ * Callback fired when the image successfully loads.
1142
+ */
1143
+ onLoad?: () => void;
1094
1144
  /**
1095
1145
  * Determines how the image should be resized to fit its container.
1096
1146
  * Maps to `expo-image`'s `contentFit` prop.
@@ -1118,6 +1168,11 @@ interface ImageProps {
1118
1168
  *
1119
1169
  * Accessibility:
1120
1170
  * Utilizes the `accessibilityLabel` mapped from the `alt` prop to ensure screen readers can describe the image.
1171
+ * Enforces meaningful alt text in development mode.
1172
+ *
1173
+ * Fallback & Error Handling:
1174
+ * Supports fallbackSrc for graceful degradation when image fails to load.
1175
+ * Provides error callbacks and automatic retry logic on web.
1121
1176
  */
1122
1177
  declare const Image: React$1.FC<ImageProps>;
1123
1178
 
@@ -1144,14 +1199,19 @@ interface LottieAnimationProps {
1144
1199
  }
1145
1200
 
1146
1201
  /**
1147
- * LottieAnimation component renders high-quality vector animations using `lottie-react-native`.
1202
+ * LottieAnimation component renders high-quality vector animations.
1148
1203
  *
1149
1204
  * Role & Use Cases:
1150
1205
  * Ideal for onboarding screens, success states, or complex loading indicators.
1151
1206
  *
1152
1207
  * Structure:
1153
- * Wraps `LottieView` inside a `View` container to control layout and sizing.
1154
- * Ensures the animation source is correctly parsed whether it's a local require() or a remote URI string.
1208
+ * - Native: Wraps `lottie-react-native` for efficient native animation rendering.
1209
+ * - Web: Uses `lottie-web` library or Canvas API for animation playback.
1210
+ *
1211
+ * @note
1212
+ * For web implementations, developers should:
1213
+ * 1. Install lottie-web: npm install lottie-web
1214
+ * 2. Initialize the animation in the container element
1155
1215
  *
1156
1216
  * Accessibility:
1157
1217
  * As animations are primarily visual, consider providing a textual description nearby or adding `accessibilityLabel`
@@ -1181,22 +1241,48 @@ interface MapViewProps {
1181
1241
  [key: string]: any;
1182
1242
  }
1183
1243
 
1244
+ interface MapViewWebConfig {
1245
+ provider?: 'leaflet' | 'mapbox' | 'google';
1246
+ accessToken?: string;
1247
+ apiKey?: string;
1248
+ tileLayer?: string;
1249
+ style?: string;
1250
+ }
1184
1251
  /**
1185
- * MapView component integrates `react-native-maps` for displaying interactive maps.
1252
+ * MapView component integrates `react-native-maps` for native and web mapping.
1186
1253
  *
1187
- * Role & Use Cases:
1188
- * Useful for showing locations, tracking routes, or displaying geographical data.
1189
- * Defaults to using the Google Maps provider (`PROVIDER_GOOGLE`).
1254
+ * @description
1255
+ * - Native: Uses `react-native-maps` with Google Maps provider
1256
+ * - Web: Provides instruction and placeholder, or web map provider config
1190
1257
  *
1191
- * Structure:
1192
- * Wraps `RNMapView` inside a stylized `View` container. Uses `StyleSheet.absoluteFill`
1193
- * to ensure the map fills its container completely.
1258
+ * @webConfig
1259
+ * Pass `webConfig` prop to enable web maps:
1260
+ * - Leaflet: Free, open-source
1261
+ * - Mapbox: Requires access token
1262
+ * - Google Maps: Requires API key
1194
1263
  *
1195
- * Accessibility:
1196
- * Map interactions can be complex for screen readers. Ensure to provide alternative representations
1197
- * of the map data (like a list of locations) if the map is central to the user experience.
1264
+ * @example
1265
+ * ```tsx
1266
+ * <MapView
1267
+ * latitude={40}
1268
+ * longitude={-74}
1269
+ * zoom={10}
1270
+ * webConfig={{
1271
+ * provider: 'leaflet',
1272
+ * tileLayer: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
1273
+ * }}
1274
+ * />
1275
+ * ```
1276
+ *
1277
+ * @accessibility
1278
+ * Maps are inherently visual. Always provide:
1279
+ * - Text description of location
1280
+ * - List of coordinates/addresses
1281
+ * - Alternative data representation
1198
1282
  */
1199
- declare const MapView: React$1.FC<MapViewProps>;
1283
+ declare const MapView: React$1.FC<MapViewProps & {
1284
+ webConfig?: MapViewWebConfig;
1285
+ }>;
1200
1286
 
1201
1287
  /**
1202
1288
  * Props for the NumberInput component.
@@ -1233,12 +1319,30 @@ interface OTPInputProps {
1233
1319
  value?: string;
1234
1320
  /** Callback when the value changes */
1235
1321
  onChangeText?: (val: string) => void;
1322
+ /** Whether the input is in an error state */
1323
+ error?: boolean;
1324
+ /** Error message to display */
1325
+ errorMessage?: string;
1326
+ /** Callback fired when OTP is complete (length reached) */
1327
+ onComplete?: (otp: string) => void;
1236
1328
  [key: string]: any;
1237
1329
  }
1238
1330
 
1239
1331
  /**
1240
1332
  * @component OTPInput
1241
1333
  * @description An auto-advancing, multi-cell verification code input.
1334
+ *
1335
+ * Features:
1336
+ * - Auto-advancing to next cell when digit is entered
1337
+ * - Complete paste support (handles full OTP paste on both platforms)
1338
+ * - Web: Type="tel" with numeric input mode for better mobile UX
1339
+ * - Native: Uses textContentType for auto-fill on iOS
1340
+ * - Error states: Visual indication and ARIA descriptions
1341
+ * - Accessibility: ARIA labels, describedby for error messages, one-time-code autoComplete
1342
+ * - Auto-focus on first cell when mounted or reset
1343
+ *
1344
+ * @web Optimized with paste support and better mobile UX
1345
+ * @native Uses textContentType for auto-fill on iOS
1242
1346
  */
1243
1347
  declare const OTPInput: React$1.FC<OTPInputProps>;
1244
1348
 
@@ -1259,6 +1363,17 @@ interface PasswordInputProps {
1259
1363
  /**
1260
1364
  * @component PasswordInput
1261
1365
  * @description A secure text input with visibility toggle and a visual strength meter.
1366
+ *
1367
+ * @web Optimized for HTML5 with proper password input types, accessibility, and caps lock detection
1368
+ * @native Uses secureTextEntry and Pressable for visibility toggle
1369
+ *
1370
+ * Features:
1371
+ * - Password strength meter with 4-level indicator (Weak, Fair, Good, Strong)
1372
+ * - Visibility toggle (show/hide password)
1373
+ * - Web: Caps Lock detection with visual warning
1374
+ * - Web: Better UX with native HTML5 password input
1375
+ * - Native: secureTextEntry for secure text rendering
1376
+ * - ARIA labels and descriptions for accessibility
1262
1377
  */
1263
1378
  declare const PasswordInput: React$1.FC<PasswordInputProps>;
1264
1379
 
@@ -1394,7 +1509,19 @@ interface SearchInputProps {
1394
1509
 
1395
1510
  /**
1396
1511
  * @component SearchInput
1397
- * @description A specialized input for searching with debounce and a clear button.
1512
+ * @description A specialized input for searching with configurable debounce and a clear button.
1513
+ *
1514
+ * Features:
1515
+ * - Configurable debounce delay (default 300ms, 0 for no debounce)
1516
+ * - Auto-focus on mount (web only)
1517
+ * - Clear button for quick reset
1518
+ * - Accessibility optimized with ARIA labels and descriptions
1519
+ * - Respects prefers-reduced-motion
1520
+ * - Web: Better focus states and smooth transitions
1521
+ * - Native: Standard TextInput with Pressable clear button
1522
+ *
1523
+ * @web Optimized with debounced search, better focus states, and accessibility
1524
+ * @native Uses standard TextInput with Pressable clear button
1398
1525
  */
1399
1526
  declare const SearchInput: React$1.FC<SearchInputProps>;
1400
1527
 
@@ -1425,6 +1552,10 @@ interface SelectProps {
1425
1552
  * Disables interaction with the picker.
1426
1553
  */
1427
1554
  disabled?: boolean;
1555
+ /**
1556
+ * Error message to display. Styles the picker with error appearance.
1557
+ */
1558
+ error?: string;
1428
1559
  /**
1429
1560
  * Additional props to pass to the container view.
1430
1561
  */
@@ -1443,7 +1574,9 @@ interface SelectProps {
1443
1574
  *
1444
1575
  * **Accessibility Considerations:**
1445
1576
  * - The underlying Picker maps to native picker accessibility controls.
1446
- * - Ensure `accessibilityLabel` is provided (via props) so screen readers can announce the purpose of the picker.
1577
+ * - Proper ARIA roles and labels for web (aria-invalid, aria-describedby).
1578
+ * - Error states with visual feedback and screen reader announcements.
1579
+ * - Native: accessibilityLabel and accessibilityRole provided.
1447
1580
  */
1448
1581
  declare const Select: React$1.FC<SelectProps>;
1449
1582
 
@@ -1788,7 +1921,8 @@ interface TextInputProps {
1788
1921
  *
1789
1922
  * @accessibility
1790
1923
  * - The underlying `TextInput` is naturally accessible.
1791
- * - Error text should ideally be linked to the input via accessibility hints or announcements in a fully accessible form setup.
1924
+ * - Error text is linked to the input via aria-describedby and aria-invalid.
1925
+ * - Proper error announcements for screen readers.
1792
1926
  */
1793
1927
  declare const TextInput: React$1.FC<TextInputProps>;
1794
1928
 
@@ -1799,7 +1933,9 @@ interface VideoProps {
1799
1933
  /**
1800
1934
  * The URI or local path to the video file.
1801
1935
  */
1802
- source: string;
1936
+ source: string | {
1937
+ uri: string;
1938
+ };
1803
1939
  /**
1804
1940
  * If true, the video will start playing automatically once loaded.
1805
1941
  */
@@ -1812,6 +1948,10 @@ interface VideoProps {
1812
1948
  * Determines whether native playback controls should be displayed. Defaults to true.
1813
1949
  */
1814
1950
  controls?: boolean;
1951
+ /**
1952
+ * If true, the video will be muted (useful for autoplay on web).
1953
+ */
1954
+ muted?: boolean;
1815
1955
  /**
1816
1956
  * Additional custom props that will be passed to the container View.
1817
1957
  */
@@ -1829,11 +1969,13 @@ interface VideoProps {
1829
1969
  * - Background videos for landing pages (using autoPlay and loop).
1830
1970
  *
1831
1971
  * @structure
1832
- * - Uses a standard `View` for the container to apply layout constraints.
1833
- * - Relies on `expo-video`'s `VideoView` component for native playback capabilities.
1972
+ * - Native: Uses `expo-video`'s `VideoView` component for native playback capabilities.
1973
+ * - Web: Uses HTML5 `<video>` element with standard controls and playback.
1974
+ * - Container is a standard `View` to apply layout constraints.
1834
1975
  *
1835
1976
  * @accessibility
1836
- * - Controls should be made accessible natively by `expo-video`.
1977
+ * - Native: Controls are made accessible by `expo-video`.
1978
+ * - Web: Uses native HTML5 video controls which are WCAG 2.1 compliant.
1837
1979
  * - When controls are hidden (e.g., background video), ensure the video content is strictly decorative or alternate text/captions are provided elsewhere.
1838
1980
  */
1839
1981
  declare const Video: React$1.FC<VideoProps>;
@@ -1864,10 +2006,33 @@ interface WebViewProps {
1864
2006
  * - Loading web-based auth flows or payment gateways.
1865
2007
  *
1866
2008
  * @structure
1867
- * - Wraps `react-native-webview` inside a `View` container.
2009
+ * - Native: Wraps `react-native-webview` for rendering arbitrary web content in a native context.
2010
+ * - Web: Uses iframe with restrictive sandbox for security
2011
+ *
2012
+ * @security
2013
+ * - Sandbox restrictions prevent script execution and popups
2014
+ * - Source validation prevents XSS attacks
2015
+ * - CSP headers should be set by server
2016
+ * - Consider using allowlist for trusted sources
1868
2017
  *
1869
2018
  * @accessibility
1870
2019
  * - The web content should inherently implement its own ARIA and semantic HTML for screen readers.
2020
+ * - Iframes can obscure content from screen readers; ensure navigation between host and embedded content is clear.
2021
+ * - Provide title and aria-label for all iframes
2022
+ *
2023
+ * @note
2024
+ * On web, this component uses an iframe with restrictive sandbox settings:
2025
+ * - ❌ No scripts
2026
+ * - ❌ No popups
2027
+ * - ❌ No same-origin access
2028
+ * - ⚠️ Forms allowed (for login flows)
2029
+ * - ⚠️ Same-origin for trusted content only
2030
+ *
2031
+ * For complete security, configure your server with:
2032
+ * - Content-Security-Policy header
2033
+ * - X-Frame-Options: SAMEORIGIN
2034
+ * - X-Content-Type-Options: nosniff
2035
+ * - X-XSS-Protection: 1; mode=block
1871
2036
  */
1872
2037
  declare const WebView: React$1.FC<WebViewProps>;
1873
2038
 
@@ -2854,90 +3019,83 @@ interface VoidLayoutProps {
2854
3019
  declare const VoidLayout: React$1.FC<VoidLayoutProps>;
2855
3020
 
2856
3021
  /**
2857
- * useBreakpoint — Hook niveau 1
3022
+ * useBreakpoint — Core Layout Hook
2858
3023
  *
2859
- * Détecte le breakpoint courant et expose des helpers dérivés
2860
- * pour éviter la duplication `breakpoint === "xs" || breakpoint === "sm"`
2861
- * dans chaque layout.
3024
+ * Detects the current responsive breakpoint and exposes derived flags
3025
+ * to avoid repeating `breakpoint === "xs" || breakpoint === "sm"` check blocks.
2862
3026
  *
2863
3027
  * @example
2864
3028
  * const { breakpoint, isMobile, isTablet, isDesktop } = useBreakpoint();
2865
- *
2866
- * // Avant (dupliqué partout) :
2867
- * const isMobile = breakpoint === "xs" || breakpoint === "sm";
2868
- *
2869
- * // Après :
2870
- * const { isMobile } = useBreakpoint();
2871
3029
  */
2872
3030
 
2873
3031
  /**
2874
- * Informations sur le point d'arrêt (breakpoint) actuel et les états d'écran dérivés.
3032
+ * Current breakpoint information and derived screen state flags.
2875
3033
  */
2876
3034
  interface BreakpointInfo {
2877
- /** Breakpoint brut (xs, sm, md, lg, xl, 2xl). Null en SSR avant hydratation. */
3035
+ /** Raw breakpoint token ('xs', 'sm', 'md', 'lg', 'xl', '2xl'). Null on SSR before hydration. */
2878
3036
  breakpoint: Breakpoint | null;
2879
- /** xs ou sm */
3037
+ /** True for xs or sm */
2880
3038
  isMobile: boolean;
2881
- /** md */
3039
+ /** True for md */
2882
3040
  isTablet: boolean;
2883
- /** lg, xl ou 2xl */
3041
+ /** True for lg, xl, or 2xl */
2884
3042
  isDesktop: boolean;
2885
- /** md ou plus */
3043
+ /** True for md or larger */
2886
3044
  isAtLeastTablet: boolean;
2887
- /** lg ou plus */
3045
+ /** True for lg or larger */
2888
3046
  isAtLeastDesktop: boolean;
2889
3047
  }
2890
3048
 
2891
3049
  /**
2892
- * usePlatformInfo — Hook niveau 1
3050
+ * usePlatformInfo — Core Platform Hook
2893
3051
  *
2894
- * Détection de plateforme (iOS / Android / Web).
2895
- * À utiliser UNIQUEMENT pour des comportements liés à la plateforme
2896
- * (haptics, cursor, keyboard, etc.), PAS pour du responsive.
3052
+ * Platform detection hook (iOS / Android / Web).
3053
+ * Use EXCLUSIVELY for platform-specific behavior (haptics, cursors, keyboard),
3054
+ * NOT for responsive styling layout decisions.
2897
3055
  *
2898
- * Pour le responsive → useBreakpoint().
3056
+ * For responsive layout decisions → useBreakpoint().
2899
3057
  *
2900
3058
  * @example
2901
3059
  * const { isWeb, isNative } = usePlatformInfo();
2902
3060
  * if (isNative) Haptics.impactAsync(...);
2903
3061
  */
2904
3062
  /**
2905
- * Informations sur la plateforme d'exécution courante.
3063
+ * Information regarding the current runtime platform.
2906
3064
  */
2907
3065
  interface PlatformInfo {
2908
- /** true si Platform.OS === 'web' */
3066
+ /** true if Platform.OS === 'web' */
2909
3067
  isWeb: boolean;
2910
- /** true si Platform.OS !== 'web' (iOS ou Android) */
3068
+ /** true if Platform.OS !== 'web' (iOS or Android) */
2911
3069
  isNative: boolean;
2912
- /** true si Platform.OS === 'ios' */
3070
+ /** true if Platform.OS === 'ios' */
2913
3071
  isIOS: boolean;
2914
- /** true si Platform.OS === 'android' */
3072
+ /** true if Platform.OS === 'android' */
2915
3073
  isAndroid: boolean;
2916
3074
  }
2917
3075
 
2918
3076
  /**
2919
- * PlatformOverride — Context to override platform detection in studio/preview mode.
3077
+ * PlatformOverride — Context to override platform detection in preview mode.
2920
3078
  * When provided, useBreakpoint and usePlatformInfo will use these values instead of real ones.
2921
3079
  */
2922
3080
 
2923
3081
  /**
2924
- * Valeur de surcharge (override) pour la plateforme et les points d'arrêt (breakpoints).
3082
+ * Override value for platform detection and responsive breakpoints.
2925
3083
  */
2926
3084
  interface PlatformOverrideValue {
2927
3085
  breakpoint?: BreakpointInfo;
2928
3086
  platform?: PlatformInfo;
2929
3087
  }
2930
3088
  /**
2931
- * Hook permettant d'accéder au contexte de surcharge de la plateforme.
3089
+ * Hook to access the platform override context value.
2932
3090
  *
2933
- * @returns La valeur actuelle du contexte de surcharge ou null.
3091
+ * @returns Current override context value or null.
2934
3092
  */
2935
3093
  declare const usePlatformOverride: () => PlatformOverrideValue | null;
2936
3094
  /**
2937
- * Fournisseur de contexte pour la surcharge des informations de plateforme.
3095
+ * Context provider to override platform and breakpoint information.
2938
3096
  *
2939
- * @param props - Les propriétés, incluant la valeur de surcharge et les enfants.
2940
- * @returns Un élément Provider de contexte.
3097
+ * @param props - Component props containing override value and children.
3098
+ * @returns Context provider element.
2941
3099
  */
2942
3100
  declare const PlatformOverrideProvider: React$1.FC<{
2943
3101
  value: PlatformOverrideValue;
@@ -2945,23 +3103,23 @@ declare const PlatformOverrideProvider: React$1.FC<{
2945
3103
  }>;
2946
3104
 
2947
3105
  /**
2948
- * Retourne le point d'arrêt (breakpoint) correspondant à la largeur d'écran donnée ou courante.
3106
+ * Returns the breakpoint token corresponding to a given or current viewport width.
2949
3107
  *
2950
- * @param innerWidth - Largeur d'écran optionnelle à utiliser (par défaut la largeur de la fenêtre).
2951
- * @returns Le point d'arrêt (ex: xs, sm, md, lg, xl, 2xl).
3108
+ * @param innerWidth - Optional viewport width (defaults to window/screen width).
3109
+ * @returns The active breakpoint token ('xs', 'sm', 'md', 'lg', 'xl', '2xl').
2952
3110
  */
2953
3111
  declare const getBreakpoint: (innerWidth?: number) => Breakpoint;
2954
3112
  /**
2955
- * Type pour une valeur responsive (valeur brute ou objet associant breakpoint et valeur).
3113
+ * Type representing a responsive value (primitive value or a record map of breakpoint tokens to values).
2956
3114
  */
2957
3115
  type ResponsiveValue<T> = T | Partial<Record<Breakpoint, T>>;
2958
3116
  /**
2959
- * Obtient la valeur correspondante pour un point d'arrêt donné à partir d'un objet ResponsiveValue.
2960
- * Gère le repli (fallback) vers le point d'arrêt inférieur le plus proche.
3117
+ * Resolves a value for a specific breakpoint from a ResponsiveValue configuration.
3118
+ * Handles fallback resolution by searching down to nearest lower breakpoint.
2961
3119
  *
2962
- * @param value - La valeur ou configuration responsive.
2963
- * @param currentBreakpoint - Le point d'arrêt actuel de référence.
2964
- * @returns La valeur résolue pour le point d'arrêt.
3120
+ * @param value - Primitive value or responsive value map.
3121
+ * @param currentBreakpoint - Current reference breakpoint.
3122
+ * @returns Resolved value for active breakpoint.
2965
3123
  */
2966
3124
  declare const getResponsiveValue: <T>(value: ResponsiveValue<T>, currentBreakpoint: Breakpoint) => T;
2967
3125