react-native-atomic-ui 1.0.3 → 1.0.4

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 (46) hide show
  1. package/README.md +322 -34
  2. package/dist/advanced/date-picker/index.d.ts +2 -1
  3. package/dist/advanced/date-picker/index.d.ts.map +1 -1
  4. package/dist/advanced/date-picker/index.js.map +2 -2
  5. package/dist/advanced/date-picker/index.mjs.map +2 -2
  6. package/dist/advanced/file-picker/index.d.ts +9 -2
  7. package/dist/advanced/file-picker/index.d.ts.map +1 -1
  8. package/dist/advanced/file-picker/index.js.map +2 -2
  9. package/dist/advanced/file-picker/index.mjs.map +2 -2
  10. package/dist/advanced/picker/index.d.ts +2 -1
  11. package/dist/advanced/picker/index.d.ts.map +1 -1
  12. package/dist/advanced/picker/index.js.map +2 -2
  13. package/dist/advanced/picker/index.mjs.map +2 -2
  14. package/dist/advanced/rich-text/index.d.ts +3 -2
  15. package/dist/advanced/rich-text/index.d.ts.map +1 -1
  16. package/dist/advanced/rich-text/index.js.map +2 -2
  17. package/dist/advanced/rich-text/index.mjs.map +2 -2
  18. package/dist/{chunk-GSLM4BKO.mjs → chunk-IJBHWAI6.mjs} +109 -67
  19. package/dist/chunk-IJBHWAI6.mjs.map +7 -0
  20. package/dist/components/display/Badge.d.ts.map +1 -1
  21. package/dist/components/display/Badge.js +17 -7
  22. package/dist/components/display/Badge.js.map +1 -1
  23. package/dist/components/display/ProgressBar.d.ts.map +1 -1
  24. package/dist/components/display/ProgressBar.js +17 -7
  25. package/dist/components/display/ProgressBar.js.map +1 -1
  26. package/dist/components/index.js +100 -59
  27. package/dist/components/index.js.map +3 -3
  28. package/dist/components/index.mjs +1 -1
  29. package/dist/components/inputs/CheckBox.d.ts.map +1 -1
  30. package/dist/components/inputs/CheckBox.js +3 -3
  31. package/dist/components/inputs/CheckBox.js.map +1 -1
  32. package/dist/components/inputs/Input.js +4 -1
  33. package/dist/components/inputs/Input.js.map +1 -1
  34. package/dist/components/inputs/RadioButton.d.ts.map +1 -1
  35. package/dist/components/inputs/RadioButton.js +9 -8
  36. package/dist/components/inputs/RadioButton.js.map +1 -1
  37. package/dist/components/layouts/Collapsible.d.ts.map +1 -1
  38. package/dist/components/layouts/Collapsible.js +32 -15
  39. package/dist/components/layouts/Collapsible.js.map +1 -1
  40. package/dist/index.js +100 -59
  41. package/dist/index.js.map +3 -3
  42. package/dist/index.mjs +1 -1
  43. package/dist/types/index.d.ts +27 -16
  44. package/dist/types/index.d.ts.map +1 -1
  45. package/package.json +19 -19
  46. package/dist/chunk-GSLM4BKO.mjs.map +0 -7
package/README.md CHANGED
@@ -51,9 +51,19 @@
51
51
  ### Basic Setup
52
52
 
53
53
  ```bash
54
- npm install react-native-atomic-ui react-native
54
+ npm install react-native-atomic-ui
55
55
  # or
56
- yarn add react-native-atomic-ui react-native
56
+ yarn add react-native-atomic-ui
57
+ ```
58
+
59
+ **Note:** `react` and `react-native` are peer dependencies and should already be installed in your React Native project.
60
+
61
+ ### iOS Additional Setup
62
+
63
+ After installation, if you're on iOS, install pods:
64
+
65
+ ```bash
66
+ cd ios && pod install && cd ..
57
67
  ```
58
68
 
59
69
  ## 📱 Example App
@@ -92,9 +102,15 @@ npm install @react-native-community/netinfo
92
102
 
93
103
  ## 🔧 Quick Start
94
104
 
95
- ### Setup Theme Provider
105
+ ### 1. Install the Package
106
+
107
+ ```bash
108
+ npm install react-native-atomic-ui
109
+ ```
110
+
111
+ ### 2. Setup Theme Provider
96
112
 
97
- Wrap your app with `ThemeProvider` at the root level:
113
+ Wrap your app with `ThemeProvider` at the root level (usually in `index.js` or `App.tsx`):
98
114
 
99
115
  ```typescript
100
116
  import React from 'react';
@@ -110,7 +126,7 @@ export function Root() {
110
126
  }
111
127
  ```
112
128
 
113
- ### Using Components
129
+ ### 3. Start Using Components
114
130
 
115
131
  ```typescript
116
132
  import React from 'react';
@@ -234,9 +250,11 @@ export function TypographyExample() {
234
250
 
235
251
  ## 📚 Component API Reference
236
252
 
237
- ### Box
253
+ ### Layout Components
254
+
255
+ #### Box
238
256
 
239
- Flexible container component for layout.
257
+ Flexible container component for layout with theme-aware spacing.
240
258
 
241
259
  ```typescript
242
260
  interface BoxProps {
@@ -250,14 +268,71 @@ interface BoxProps {
250
268
  gap?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
251
269
  backgroundColor?: string;
252
270
  borderRadius?: 'xs' | 'sm' | 'md' | 'lg' | 'full';
271
+ flex?: number;
272
+ flexDirection?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
273
+ alignItems?: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
274
+ justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
275
+ flexWrap?: 'wrap' | 'nowrap' | 'wrap-reverse';
276
+ width?: number | string;
277
+ height?: number | string;
253
278
  style?: any;
254
279
  testID?: string;
255
280
  }
256
281
  ```
257
282
 
258
- ### Button
283
+ **Example:**
284
+ ```typescript
285
+ <Box padding={'lg'} backgroundColor={theme.colors.surface} borderRadius={'md'}>
286
+ <Text>Content</Text>
287
+ </Box>
288
+ ```
289
+
290
+ #### Row & Column
259
291
 
260
- Interactive button component with multiple variants.
292
+ Flex container components for horizontal and vertical layouts.
293
+
294
+ ```typescript
295
+ // Row = Box with flexDirection='row' and alignItems='center' by default
296
+ <Row gap={'md'} padding={'lg'}>
297
+ {/* Horizontal layout */}
298
+ </Row>
299
+
300
+ // Column = Box with flexDirection='column'
301
+ <Column gap={'md'} padding={'lg'}>
302
+ {/* Vertical layout */}
303
+ </Column>
304
+ ```
305
+
306
+ Both components accept all `BoxProps`.
307
+
308
+ #### Collapsible
309
+
310
+ Expandable/collapsible section with animated transitions.
311
+
312
+ ```typescript
313
+ interface CollapsibleProps {
314
+ title: string;
315
+ children: React.ReactNode;
316
+ initiallyExpanded?: boolean;
317
+ style?: any;
318
+ testID?: string;
319
+ }
320
+ ```
321
+
322
+ **Example:**
323
+ ```typescript
324
+ <Collapsible title={'Advanced Settings'} initiallyExpanded={false}>
325
+ <Text>Hidden content that can be toggled</Text>
326
+ </Collapsible>
327
+ ```
328
+
329
+ ---
330
+
331
+ ### Input Components
332
+
333
+ #### Button
334
+
335
+ Interactive button component with multiple variants and sizes.
261
336
 
262
337
  ```typescript
263
338
  interface ButtonProps {
@@ -284,14 +359,222 @@ interface ButtonProps {
284
359
  - `medium` - 48px height (default)
285
360
  - `large` - 56px height
286
361
 
287
- ### Text
362
+ **Example:**
363
+ ```typescript
364
+ <Button
365
+ label={'Submit'}
366
+ onPress={handleSubmit}
367
+ variant={'primary'}
368
+ size={'large'}
369
+ icon={<Icon name="check" />}
370
+ />
371
+ ```
372
+
373
+ #### Input
374
+
375
+ Text input component with label and error support.
376
+
377
+ ```typescript
378
+ interface InputProps {
379
+ value: string;
380
+ onChangeText: (text: string) => void;
381
+ placeholder?: string;
382
+ label?: string;
383
+ error?: string;
384
+ editable?: boolean;
385
+ secureTextEntry?: boolean;
386
+ keyboardType?: 'default' | 'numeric' | 'email-address' | 'phone-pad';
387
+ multiline?: boolean;
388
+ numberOfLines?: number;
389
+ style?: any;
390
+ testID?: string;
391
+ }
392
+ ```
393
+
394
+ **Example:**
395
+ ```typescript
396
+ <Input
397
+ label={'Email'}
398
+ value={email}
399
+ onChangeText={setEmail}
400
+ placeholder={'Enter your email'}
401
+ keyboardType={'email-address'}
402
+ error={emailError}
403
+ />
404
+ ```
405
+
406
+ #### CheckBox
407
+
408
+ Checkbox component for boolean selections.
409
+
410
+ ```typescript
411
+ interface CheckBoxProps {
412
+ value: boolean;
413
+ onValueChange: (value: boolean) => void;
414
+ label?: string;
415
+ disabled?: boolean;
416
+ style?: any;
417
+ testID?: string;
418
+ }
419
+ ```
420
+
421
+ **Example:**
422
+ ```typescript
423
+ <CheckBox
424
+ value={isChecked}
425
+ onValueChange={setIsChecked}
426
+ label={'I agree to the terms'}
427
+ />
428
+ ```
429
+
430
+ #### RadioButton
431
+
432
+ Radio button for single selection from a group.
433
+
434
+ ```typescript
435
+ interface RadioButtonProps {
436
+ value: string;
437
+ selected: string;
438
+ onSelect: (value: string) => void;
439
+ label?: string;
440
+ disabled?: boolean;
441
+ style?: any;
442
+ testID?: string;
443
+ }
444
+ ```
445
+
446
+ **Example:**
447
+ ```typescript
448
+ <Column gap={'sm'}>
449
+ <RadioButton
450
+ value={'option1'}
451
+ selected={selectedOption}
452
+ onSelect={setSelectedOption}
453
+ label={'Option 1'}
454
+ />
455
+ <RadioButton
456
+ value={'option2'}
457
+ selected={selectedOption}
458
+ onSelect={setSelectedOption}
459
+ label={'Option 2'}
460
+ />
461
+ </Column>
462
+ ```
463
+
464
+ #### Switch
465
+
466
+ Toggle switch for boolean values.
288
467
 
289
- Base text component with theme-aware typography.
468
+ ```typescript
469
+ interface SwitchProps {
470
+ value: boolean;
471
+ onValueChange: (value: boolean) => void;
472
+ disabled?: boolean;
473
+ style?: any;
474
+ testID?: string;
475
+ }
476
+ ```
477
+
478
+ **Example:**
479
+ ```typescript
480
+ <Switch
481
+ value={isEnabled}
482
+ onValueChange={setIsEnabled}
483
+ />
484
+ ```
485
+
486
+ ---
487
+
488
+ ### Display Components
489
+
490
+ #### ProgressBar
491
+
492
+ Horizontal progress indicator.
493
+
494
+ ```typescript
495
+ interface ProgressBarProps {
496
+ progress: number; // 0-1 range
497
+ height?: number;
498
+ color?: string;
499
+ backgroundColor?: string;
500
+ borderRadius?: 'xs' | 'sm' | 'md' | 'lg' | 'full';
501
+ style?: any;
502
+ testID?: string;
503
+ }
504
+ ```
505
+
506
+ **Example:**
507
+ ```typescript
508
+ <ProgressBar
509
+ progress={0.65}
510
+ height={8}
511
+ color={theme.colors.primary}
512
+ borderRadius={'full'}
513
+ />
514
+ ```
515
+
516
+ #### Badge
517
+
518
+ Small status badge for labels and notifications.
519
+
520
+ ```typescript
521
+ interface BadgeProps {
522
+ children: React.ReactNode;
523
+ variant?: 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info';
524
+ size?: 'small' | 'medium' | 'large';
525
+ style?: any;
526
+ testID?: string;
527
+ }
528
+ ```
529
+
530
+ **Variants:**
531
+ - `primary` - Blue badge
532
+ - `secondary` - Gray badge
533
+ - `success` - Green badge
534
+ - `error` - Red badge
535
+ - `warning` - Orange badge
536
+ - `info` - Light blue badge
537
+
538
+ **Example:**
539
+ ```typescript
540
+ <Badge variant={'success'} size={'small'}>
541
+ Active
542
+ </Badge>
543
+ ```
544
+
545
+ #### Divider
546
+
547
+ Visual separator line (horizontal or vertical).
548
+
549
+ ```typescript
550
+ interface DividerProps {
551
+ orientation?: 'horizontal' | 'vertical';
552
+ thickness?: number;
553
+ color?: string;
554
+ style?: any;
555
+ testID?: string;
556
+ }
557
+ ```
558
+
559
+ **Example:**
560
+ ```typescript
561
+ <Divider orientation={'horizontal'} thickness={1} />
562
+ ```
563
+
564
+ ---
565
+
566
+ ### Typography Components
567
+
568
+ #### Text
569
+
570
+ Base text component with theme-aware typography variants.
290
571
 
291
572
  ```typescript
292
573
  interface TextProps {
293
574
  children?: React.ReactNode;
294
- variant?: 'h1' | 'h2' | ... | 'body1' | 'body2' | ... | 'caption' | 'overline';
575
+ variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' |
576
+ 'body1' | 'body2' | 'body3' | 'body4' | 'body5' | 'body6' |
577
+ 'subtitle1' | 'subtitle2' | 'caption' | 'overline';
295
578
  color?: string;
296
579
  textAlign?: 'auto' | 'left' | 'right' | 'center' | 'justify';
297
580
  style?: any;
@@ -299,20 +582,35 @@ interface TextProps {
299
582
  }
300
583
  ```
301
584
 
302
- ### Row & Column
585
+ **Typography Hierarchy:**
586
+ - **Headings**: `H1` (48px), `H2` (40px), `H3` (32px), `H4` (28px), `H5` (24px), `H6` (20px)
587
+ - **Body**: `Body1`-`Body6` (16px-11px)
588
+ - **Subtitles**: `SubTitle1` (18px), `SubTitle2` (16px)
589
+ - **Small**: `Caption` (12px), `Overline` (10px)
303
590
 
304
- Flex container components for layout.
591
+ **Example:**
592
+ ```typescript
593
+ <Column gap={'sm'}>
594
+ <H1>Main Heading</H1>
595
+ <Body1>Regular body text</Body1>
596
+ <Caption>Small caption text</Caption>
597
+ <Text variant={'body2'} color={theme.colors.error}>
598
+ Custom colored text
599
+ </Text>
600
+ </Column>
601
+ ```
602
+
603
+ **Convenience Components:**
604
+
605
+ All heading and body variants are exported as standalone components:
305
606
 
306
607
  ```typescript
307
- // Row = flexDirection: 'row' with centered items
308
- <Row gap="md" padding="lg">
309
- {/* Horizontal layout */}
310
- </Row>
608
+ import { H1, H2, H3, Body1, Body2, SubTitle1, Caption, Overline } from 'react-native-atomic-ui';
311
609
 
312
- // Column = flexDirection: 'column'
313
- <Column gap="md" padding="lg">
314
- {/* Vertical layout */}
315
- </Column>
610
+ // Use directly without variant prop
611
+ <H1>Heading</H1>
612
+ <Body1>Body text</Body1>
613
+ <Caption>Caption</Caption>
316
614
  ```
317
615
 
318
616
  ## 🔗 Advanced Components
@@ -464,17 +762,7 @@ If custom fonts aren't loading, ensure they're linked in Info.plist:
464
762
  </array>
465
763
  ```
466
764
 
467
- ## 🆙 Upgrading
468
-
469
- ### From 0.x to 1.0
470
-
471
- Version 1.0 introduces breaking changes:
472
-
473
- - Theme structure updated with new color names
474
- - `useThemeWithRedux` hook removed (use `useTheme` with Redux context)
475
- - Component prop names standardized
476
765
 
477
- See [CHANGELOG.md](./CHANGELOG.md) for details.
478
766
 
479
767
  ## 📄 License
480
768
 
@@ -494,6 +782,6 @@ Contributions are welcome! Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for g
494
782
 
495
783
  ## 🔗 Links
496
784
 
497
- - [GitHub Repository](https://github.com/your-org/react-native-atomic-ui)
785
+ - [GitHub Repository](https://github.com/tanmoythander/react-native-atomic-ui)
498
786
  - [npm Package](https://www.npmjs.com/package/react-native-atomic-ui)
499
- - [Issue Tracker](https://github.com/your-org/react-native-atomic-ui/issues)
787
+ - [Issue Tracker](https://github.com/tanmoythander/react-native-atomic-ui/issues)
@@ -1,3 +1,4 @@
1
+ import type { ViewStyle, StyleProp } from 'react-native';
1
2
  /**
2
3
  * DatePickerInput - Advanced component for date selection
3
4
  * Requires peer dependency: @react-native-community/datetimepicker
@@ -15,7 +16,7 @@ export interface DatePickerInputProps {
15
16
  format?: string;
16
17
  placeholder?: string;
17
18
  disabled?: boolean;
18
- style?: any;
19
+ style?: StyleProp<ViewStyle>;
19
20
  testID?: string;
20
21
  }
21
22
  export declare function DatePickerInput(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/advanced/date-picker/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,IAAI,CAAC;IACZ,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,wBAAgB,eAAe,SAK9B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/advanced/date-picker/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD;;;;;;;;;GASG;AAEH,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,IAAI,CAAC;IACZ,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,wBAAgB,eAAe,SAK9B"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/advanced/date-picker/index.ts"],
4
- "sourcesContent": ["/**\n * DatePickerInput - Advanced component for date selection\n * Requires peer dependency: @react-native-community/datetimepicker\n *\n * Installation:\n * npm install @react-native-community/datetimepicker\n *\n * Usage:\n * import { DatePickerInput } from 'react-native-atomic-ui/date-picker';\n */\n\nexport interface DatePickerInputProps {\n value: Date;\n onChange: (date: Date) => void;\n label?: string;\n format?: string;\n placeholder?: string;\n disabled?: boolean;\n style?: any;\n testID?: string;\n}\n\n// Component implementation would go here\n// This is a placeholder for library structure\nexport function DatePickerInput() {\n throw new Error(\n 'DatePickerInput requires peer dependency: @react-native-community/datetimepicker\\n' +\n 'Install it with: npm install @react-native-community/datetimepicker'\n );\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBO,SAAS,kBAAkB;AAChC,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
4
+ "sourcesContent": ["import type { ViewStyle, StyleProp } from 'react-native';\n\n/**\n * DatePickerInput - Advanced component for date selection\n * Requires peer dependency: @react-native-community/datetimepicker\n *\n * Installation:\n * npm install @react-native-community/datetimepicker\n *\n * Usage:\n * import { DatePickerInput } from 'react-native-atomic-ui/date-picker';\n */\n\nexport interface DatePickerInputProps {\n value: Date;\n onChange: (date: Date) => void;\n label?: string;\n format?: string;\n placeholder?: string;\n disabled?: boolean;\n style?: StyleProp<ViewStyle>;\n testID?: string;\n}\n\n// Component implementation would go here\n// This is a placeholder for library structure\nexport function DatePickerInput() {\n throw new Error(\n 'DatePickerInput requires peer dependency: @react-native-community/datetimepicker\\n' +\n 'Install it with: npm install @react-native-community/datetimepicker'\n );\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA0BO,SAAS,kBAAkB;AAChC,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/advanced/date-picker/index.ts"],
4
- "sourcesContent": ["/**\n * DatePickerInput - Advanced component for date selection\n * Requires peer dependency: @react-native-community/datetimepicker\n *\n * Installation:\n * npm install @react-native-community/datetimepicker\n *\n * Usage:\n * import { DatePickerInput } from 'react-native-atomic-ui/date-picker';\n */\n\nexport interface DatePickerInputProps {\n value: Date;\n onChange: (date: Date) => void;\n label?: string;\n format?: string;\n placeholder?: string;\n disabled?: boolean;\n style?: any;\n testID?: string;\n}\n\n// Component implementation would go here\n// This is a placeholder for library structure\nexport function DatePickerInput() {\n throw new Error(\n 'DatePickerInput requires peer dependency: @react-native-community/datetimepicker\\n' +\n 'Install it with: npm install @react-native-community/datetimepicker'\n );\n}\n"],
5
- "mappings": ";AAwBO,SAAS,kBAAkB;AAChC,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
4
+ "sourcesContent": ["import type { ViewStyle, StyleProp } from 'react-native';\n\n/**\n * DatePickerInput - Advanced component for date selection\n * Requires peer dependency: @react-native-community/datetimepicker\n *\n * Installation:\n * npm install @react-native-community/datetimepicker\n *\n * Usage:\n * import { DatePickerInput } from 'react-native-atomic-ui/date-picker';\n */\n\nexport interface DatePickerInputProps {\n value: Date;\n onChange: (date: Date) => void;\n label?: string;\n format?: string;\n placeholder?: string;\n disabled?: boolean;\n style?: StyleProp<ViewStyle>;\n testID?: string;\n}\n\n// Component implementation would go here\n// This is a placeholder for library structure\nexport function DatePickerInput() {\n throw new Error(\n 'DatePickerInput requires peer dependency: @react-native-community/datetimepicker\\n' +\n 'Install it with: npm install @react-native-community/datetimepicker'\n );\n}\n"],
5
+ "mappings": ";AA0BO,SAAS,kBAAkB;AAChC,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,4 @@
1
+ import type { ViewStyle, StyleProp } from 'react-native';
1
2
  /**
2
3
  * FilePicker - Advanced component for file selection
3
4
  * Requires peer dependency: @react-native-documents/picker
@@ -8,13 +9,19 @@
8
9
  * Usage:
9
10
  * import { FilePicker } from 'react-native-atomic-ui/file-picker';
10
11
  */
12
+ export interface SelectedFile {
13
+ uri: string;
14
+ name: string;
15
+ type: string;
16
+ size: number;
17
+ }
11
18
  export interface FilePickerProps {
12
- onFileSelected: (file: any) => void;
19
+ onFileSelected: (file: SelectedFile) => void;
13
20
  multiple?: boolean;
14
21
  type?: string;
15
22
  label?: string;
16
23
  disabled?: boolean;
17
- style?: any;
24
+ style?: StyleProp<ViewStyle>;
18
25
  testID?: string;
19
26
  }
20
27
  export declare function FilePicker(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/advanced/file-picker/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,wBAAgB,UAAU,SAKzB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/advanced/file-picker/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD;;;;;;;;;GASG;AAEH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,wBAAgB,UAAU,SAKzB"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/advanced/file-picker/index.ts"],
4
- "sourcesContent": ["/**\n * FilePicker - Advanced component for file selection\n * Requires peer dependency: @react-native-documents/picker\n *\n * Installation:\n * npm install @react-native-documents/picker\n *\n * Usage:\n * import { FilePicker } from 'react-native-atomic-ui/file-picker';\n */\n\nexport interface FilePickerProps {\n onFileSelected: (file: any) => void;\n multiple?: boolean;\n type?: string;\n label?: string;\n disabled?: boolean;\n style?: any;\n testID?: string;\n}\n\n// Component implementation would go here\n// This is a placeholder for library structure\nexport function FilePicker() {\n throw new Error(\n 'FilePicker requires peer dependency: @react-native-documents/picker\\n' +\n 'Install it with: npm install @react-native-documents/picker'\n );\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAuBO,SAAS,aAAa;AAC3B,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
4
+ "sourcesContent": ["import type { ViewStyle, StyleProp } from 'react-native';\n\n/**\n * FilePicker - Advanced component for file selection\n * Requires peer dependency: @react-native-documents/picker\n *\n * Installation:\n * npm install @react-native-documents/picker\n *\n * Usage:\n * import { FilePicker } from 'react-native-atomic-ui/file-picker';\n */\n\nexport interface SelectedFile {\n uri: string;\n name: string;\n type: string;\n size: number;\n}\n\nexport interface FilePickerProps {\n onFileSelected: (file: SelectedFile) => void;\n multiple?: boolean;\n type?: string;\n label?: string;\n disabled?: boolean;\n style?: StyleProp<ViewStyle>;\n testID?: string;\n}\n\n// Component implementation would go here\n// This is a placeholder for library structure\nexport function FilePicker() {\n throw new Error(\n 'FilePicker requires peer dependency: @react-native-documents/picker\\n' +\n 'Install it with: npm install @react-native-documents/picker'\n );\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgCO,SAAS,aAAa;AAC3B,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/advanced/file-picker/index.ts"],
4
- "sourcesContent": ["/**\n * FilePicker - Advanced component for file selection\n * Requires peer dependency: @react-native-documents/picker\n *\n * Installation:\n * npm install @react-native-documents/picker\n *\n * Usage:\n * import { FilePicker } from 'react-native-atomic-ui/file-picker';\n */\n\nexport interface FilePickerProps {\n onFileSelected: (file: any) => void;\n multiple?: boolean;\n type?: string;\n label?: string;\n disabled?: boolean;\n style?: any;\n testID?: string;\n}\n\n// Component implementation would go here\n// This is a placeholder for library structure\nexport function FilePicker() {\n throw new Error(\n 'FilePicker requires peer dependency: @react-native-documents/picker\\n' +\n 'Install it with: npm install @react-native-documents/picker'\n );\n}\n"],
5
- "mappings": ";AAuBO,SAAS,aAAa;AAC3B,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
4
+ "sourcesContent": ["import type { ViewStyle, StyleProp } from 'react-native';\n\n/**\n * FilePicker - Advanced component for file selection\n * Requires peer dependency: @react-native-documents/picker\n *\n * Installation:\n * npm install @react-native-documents/picker\n *\n * Usage:\n * import { FilePicker } from 'react-native-atomic-ui/file-picker';\n */\n\nexport interface SelectedFile {\n uri: string;\n name: string;\n type: string;\n size: number;\n}\n\nexport interface FilePickerProps {\n onFileSelected: (file: SelectedFile) => void;\n multiple?: boolean;\n type?: string;\n label?: string;\n disabled?: boolean;\n style?: StyleProp<ViewStyle>;\n testID?: string;\n}\n\n// Component implementation would go here\n// This is a placeholder for library structure\nexport function FilePicker() {\n throw new Error(\n 'FilePicker requires peer dependency: @react-native-documents/picker\\n' +\n 'Install it with: npm install @react-native-documents/picker'\n );\n}\n"],
5
+ "mappings": ";AAgCO,SAAS,aAAa;AAC3B,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,4 @@
1
+ import type { ViewStyle, StyleProp } from 'react-native';
1
2
  /**
2
3
  * Picker Components - Advanced dropdowns and selection
3
4
  * Requires peer dependency: react-native-picker-select
@@ -19,7 +20,7 @@ export interface PickerInputProps {
19
20
  label?: string;
20
21
  placeholder?: string;
21
22
  disabled?: boolean;
22
- style?: any;
23
+ style?: StyleProp<ViewStyle>;
23
24
  testID?: string;
24
25
  }
25
26
  export declare function BorderedPickerInput(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/advanced/picker/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACnC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAChD,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,wBAAgB,mBAAmB,SAKlC;AAED,wBAAgB,WAAW,SAK1B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/advanced/picker/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD;;;;;;;;;GASG;AAEH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACnC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAChD,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,wBAAgB,mBAAmB,SAKlC;AAED,wBAAgB,WAAW,SAK1B"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/advanced/picker/index.ts"],
4
- "sourcesContent": ["/**\n * Picker Components - Advanced dropdowns and selection\n * Requires peer dependency: react-native-picker-select\n *\n * Installation:\n * npm install react-native-picker-select\n *\n * Usage:\n * import { BorderedPickerInput } from 'react-native-atomic-ui/picker';\n */\n\nexport interface PickerOption {\n label: string;\n value: string | number;\n}\n\nexport interface PickerInputProps {\n value: string | number | undefined;\n onValueChange: (value: string | number) => void;\n items: PickerOption[];\n label?: string;\n placeholder?: string;\n disabled?: boolean;\n style?: any;\n testID?: string;\n}\n\n// Component implementations would go here\n// These are placeholders for library structure\nexport function BorderedPickerInput() {\n throw new Error(\n 'BorderedPickerInput requires peer dependency: react-native-picker-select\\n' +\n 'Install it with: npm install react-native-picker-select'\n );\n}\n\nexport function PickerModal() {\n throw new Error(\n 'PickerModal requires peer dependency: react-native-picker-select\\n' +\n 'Install it with: npm install react-native-picker-select'\n );\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BO,SAAS,sBAAsB;AACpC,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;AAEO,SAAS,cAAc;AAC5B,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
4
+ "sourcesContent": ["import type { ViewStyle, StyleProp } from 'react-native';\n\n/**\n * Picker Components - Advanced dropdowns and selection\n * Requires peer dependency: react-native-picker-select\n *\n * Installation:\n * npm install react-native-picker-select\n *\n * Usage:\n * import { BorderedPickerInput } from 'react-native-atomic-ui/picker';\n */\n\nexport interface PickerOption {\n label: string;\n value: string | number;\n}\n\nexport interface PickerInputProps {\n value: string | number | undefined;\n onValueChange: (value: string | number) => void;\n items: PickerOption[];\n label?: string;\n placeholder?: string;\n disabled?: boolean;\n style?: StyleProp<ViewStyle>;\n testID?: string;\n}\n\n// Component implementations would go here\n// These are placeholders for library structure\nexport function BorderedPickerInput() {\n throw new Error(\n 'BorderedPickerInput requires peer dependency: react-native-picker-select\\n' +\n 'Install it with: npm install react-native-picker-select'\n );\n}\n\nexport function PickerModal() {\n throw new Error(\n 'PickerModal requires peer dependency: react-native-picker-select\\n' +\n 'Install it with: npm install react-native-picker-select'\n );\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA+BO,SAAS,sBAAsB;AACpC,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;AAEO,SAAS,cAAc;AAC5B,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/advanced/picker/index.ts"],
4
- "sourcesContent": ["/**\n * Picker Components - Advanced dropdowns and selection\n * Requires peer dependency: react-native-picker-select\n *\n * Installation:\n * npm install react-native-picker-select\n *\n * Usage:\n * import { BorderedPickerInput } from 'react-native-atomic-ui/picker';\n */\n\nexport interface PickerOption {\n label: string;\n value: string | number;\n}\n\nexport interface PickerInputProps {\n value: string | number | undefined;\n onValueChange: (value: string | number) => void;\n items: PickerOption[];\n label?: string;\n placeholder?: string;\n disabled?: boolean;\n style?: any;\n testID?: string;\n}\n\n// Component implementations would go here\n// These are placeholders for library structure\nexport function BorderedPickerInput() {\n throw new Error(\n 'BorderedPickerInput requires peer dependency: react-native-picker-select\\n' +\n 'Install it with: npm install react-native-picker-select'\n );\n}\n\nexport function PickerModal() {\n throw new Error(\n 'PickerModal requires peer dependency: react-native-picker-select\\n' +\n 'Install it with: npm install react-native-picker-select'\n );\n}\n"],
5
- "mappings": ";AA6BO,SAAS,sBAAsB;AACpC,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;AAEO,SAAS,cAAc;AAC5B,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
4
+ "sourcesContent": ["import type { ViewStyle, StyleProp } from 'react-native';\n\n/**\n * Picker Components - Advanced dropdowns and selection\n * Requires peer dependency: react-native-picker-select\n *\n * Installation:\n * npm install react-native-picker-select\n *\n * Usage:\n * import { BorderedPickerInput } from 'react-native-atomic-ui/picker';\n */\n\nexport interface PickerOption {\n label: string;\n value: string | number;\n}\n\nexport interface PickerInputProps {\n value: string | number | undefined;\n onValueChange: (value: string | number) => void;\n items: PickerOption[];\n label?: string;\n placeholder?: string;\n disabled?: boolean;\n style?: StyleProp<ViewStyle>;\n testID?: string;\n}\n\n// Component implementations would go here\n// These are placeholders for library structure\nexport function BorderedPickerInput() {\n throw new Error(\n 'BorderedPickerInput requires peer dependency: react-native-picker-select\\n' +\n 'Install it with: npm install react-native-picker-select'\n );\n}\n\nexport function PickerModal() {\n throw new Error(\n 'PickerModal requires peer dependency: react-native-picker-select\\n' +\n 'Install it with: npm install react-native-picker-select'\n );\n}\n"],
5
+ "mappings": ";AA+BO,SAAS,sBAAsB;AACpC,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;AAEO,SAAS,cAAc;AAC5B,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,4 @@
1
+ import type { ViewStyle, StyleProp } from 'react-native';
1
2
  /**
2
3
  * Rich Text Components - Advanced text display and editing
3
4
  * Requires peer dependencies:
@@ -14,14 +15,14 @@
14
15
  export interface RichTextProps {
15
16
  html: string;
16
17
  onLinkPress?: (url: string) => void;
17
- style?: any;
18
+ style?: StyleProp<ViewStyle>;
18
19
  testID?: string;
19
20
  }
20
21
  export interface RichTextInputProps {
21
22
  value: string;
22
23
  onChange: (html: string) => void;
23
24
  placeholder?: string;
24
- style?: any;
25
+ style?: StyleProp<ViewStyle>;
25
26
  testID?: string;
26
27
  }
27
28
  export declare function RichText(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/advanced/rich-text/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,wBAAgB,QAAQ,SAKvB;AAED,wBAAgB,aAAa,SAK5B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/advanced/rich-text/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD;;;;;;;;;;;;GAYG;AAEH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,wBAAgB,QAAQ,SAKvB;AAED,wBAAgB,aAAa,SAK5B"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/advanced/rich-text/index.ts"],
4
- "sourcesContent": ["/**\n * Rich Text Components - Advanced text display and editing\n * Requires peer dependencies:\n * - react-native-webview (for RichText display)\n * - @10play/tentap-editor (for RichTextInput, custom fork)\n *\n * Installation:\n * npm install react-native-webview\n * npm install github:starburst997/10tap-editor#jd\n *\n * Usage:\n * import { RichText, RichTextInput } from 'react-native-atomic-ui/rich-text';\n */\n\nexport interface RichTextProps {\n html: string;\n onLinkPress?: (url: string) => void;\n style?: any;\n testID?: string;\n}\n\nexport interface RichTextInputProps {\n value: string;\n onChange: (html: string) => void;\n placeholder?: string;\n style?: any;\n testID?: string;\n}\n\n// Component implementations would go here\n// These are placeholders for library structure\nexport function RichText() {\n throw new Error(\n 'RichText requires peer dependency: react-native-webview\\n' +\n 'Install it with: npm install react-native-webview'\n );\n}\n\nexport function RichTextInput() {\n throw new Error(\n 'RichTextInput requires peer dependency: @10play/tentap-editor\\n' +\n 'Install it with: npm install github:starburst997/10tap-editor#jd'\n );\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA+BO,SAAS,WAAW;AACzB,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;AAEO,SAAS,gBAAgB;AAC9B,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
4
+ "sourcesContent": ["import type { ViewStyle, StyleProp } from 'react-native';\n\n/**\n * Rich Text Components - Advanced text display and editing\n * Requires peer dependencies:\n * - react-native-webview (for RichText display)\n * - @10play/tentap-editor (for RichTextInput, custom fork)\n *\n * Installation:\n * npm install react-native-webview\n * npm install github:starburst997/10tap-editor#jd\n *\n * Usage:\n * import { RichText, RichTextInput } from 'react-native-atomic-ui/rich-text';\n */\n\nexport interface RichTextProps {\n html: string;\n onLinkPress?: (url: string) => void;\n style?: StyleProp<ViewStyle>;\n testID?: string;\n}\n\nexport interface RichTextInputProps {\n value: string;\n onChange: (html: string) => void;\n placeholder?: string;\n style?: StyleProp<ViewStyle>;\n testID?: string;\n}\n\n// Component implementations would go here\n// These are placeholders for library structure\nexport function RichText() {\n throw new Error(\n 'RichText requires peer dependency: react-native-webview\\n' +\n 'Install it with: npm install react-native-webview'\n );\n}\n\nexport function RichTextInput() {\n throw new Error(\n 'RichTextInput requires peer dependency: @10play/tentap-editor\\n' +\n 'Install it with: npm install github:starburst997/10tap-editor#jd'\n );\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiCO,SAAS,WAAW;AACzB,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;AAEO,SAAS,gBAAgB;AAC9B,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/advanced/rich-text/index.ts"],
4
- "sourcesContent": ["/**\n * Rich Text Components - Advanced text display and editing\n * Requires peer dependencies:\n * - react-native-webview (for RichText display)\n * - @10play/tentap-editor (for RichTextInput, custom fork)\n *\n * Installation:\n * npm install react-native-webview\n * npm install github:starburst997/10tap-editor#jd\n *\n * Usage:\n * import { RichText, RichTextInput } from 'react-native-atomic-ui/rich-text';\n */\n\nexport interface RichTextProps {\n html: string;\n onLinkPress?: (url: string) => void;\n style?: any;\n testID?: string;\n}\n\nexport interface RichTextInputProps {\n value: string;\n onChange: (html: string) => void;\n placeholder?: string;\n style?: any;\n testID?: string;\n}\n\n// Component implementations would go here\n// These are placeholders for library structure\nexport function RichText() {\n throw new Error(\n 'RichText requires peer dependency: react-native-webview\\n' +\n 'Install it with: npm install react-native-webview'\n );\n}\n\nexport function RichTextInput() {\n throw new Error(\n 'RichTextInput requires peer dependency: @10play/tentap-editor\\n' +\n 'Install it with: npm install github:starburst997/10tap-editor#jd'\n );\n}\n"],
5
- "mappings": ";AA+BO,SAAS,WAAW;AACzB,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;AAEO,SAAS,gBAAgB;AAC9B,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
4
+ "sourcesContent": ["import type { ViewStyle, StyleProp } from 'react-native';\n\n/**\n * Rich Text Components - Advanced text display and editing\n * Requires peer dependencies:\n * - react-native-webview (for RichText display)\n * - @10play/tentap-editor (for RichTextInput, custom fork)\n *\n * Installation:\n * npm install react-native-webview\n * npm install github:starburst997/10tap-editor#jd\n *\n * Usage:\n * import { RichText, RichTextInput } from 'react-native-atomic-ui/rich-text';\n */\n\nexport interface RichTextProps {\n html: string;\n onLinkPress?: (url: string) => void;\n style?: StyleProp<ViewStyle>;\n testID?: string;\n}\n\nexport interface RichTextInputProps {\n value: string;\n onChange: (html: string) => void;\n placeholder?: string;\n style?: StyleProp<ViewStyle>;\n testID?: string;\n}\n\n// Component implementations would go here\n// These are placeholders for library structure\nexport function RichText() {\n throw new Error(\n 'RichText requires peer dependency: react-native-webview\\n' +\n 'Install it with: npm install react-native-webview'\n );\n}\n\nexport function RichTextInput() {\n throw new Error(\n 'RichTextInput requires peer dependency: @10play/tentap-editor\\n' +\n 'Install it with: npm install github:starburst997/10tap-editor#jd'\n );\n}\n"],
5
+ "mappings": ";AAiCO,SAAS,WAAW;AACzB,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;AAEO,SAAS,gBAAgB;AAC9B,QAAM,IAAI;AAAA,IACR;AAAA,EAEF;AACF;",
6
6
  "names": []
7
7
  }