react-native-atomic-ui 1.0.2 → 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.
- package/README.md +336 -34
- package/dist/advanced/date-picker/index.d.ts +2 -1
- package/dist/advanced/date-picker/index.d.ts.map +1 -1
- package/dist/advanced/date-picker/index.js.map +2 -2
- package/dist/advanced/date-picker/index.mjs.map +2 -2
- package/dist/advanced/file-picker/index.d.ts +9 -2
- package/dist/advanced/file-picker/index.d.ts.map +1 -1
- package/dist/advanced/file-picker/index.js.map +2 -2
- package/dist/advanced/file-picker/index.mjs.map +2 -2
- package/dist/advanced/picker/index.d.ts +2 -1
- package/dist/advanced/picker/index.d.ts.map +1 -1
- package/dist/advanced/picker/index.js.map +2 -2
- package/dist/advanced/picker/index.mjs.map +2 -2
- package/dist/advanced/rich-text/index.d.ts +3 -2
- package/dist/advanced/rich-text/index.d.ts.map +1 -1
- package/dist/advanced/rich-text/index.js.map +2 -2
- package/dist/advanced/rich-text/index.mjs.map +2 -2
- package/dist/{chunk-IOIXIQ2F.mjs → chunk-56IADPYY.mjs} +2 -5
- package/dist/chunk-56IADPYY.mjs.map +7 -0
- package/dist/chunk-IJBHWAI6.mjs +831 -0
- package/dist/chunk-IJBHWAI6.mjs.map +7 -0
- package/dist/components/display/Badge.d.ts +7 -0
- package/dist/components/display/Badge.d.ts.map +1 -0
- package/dist/components/display/Badge.js +62 -0
- package/dist/components/display/Badge.js.map +1 -0
- package/dist/components/display/Divider.d.ts +7 -0
- package/dist/components/display/Divider.d.ts.map +1 -0
- package/dist/components/display/Divider.js +19 -0
- package/dist/components/display/Divider.js.map +1 -0
- package/dist/components/display/ProgressBar.d.ts +7 -0
- package/dist/components/display/ProgressBar.d.ts.map +1 -0
- package/dist/components/display/ProgressBar.js +37 -0
- package/dist/components/display/ProgressBar.js.map +1 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +547 -37
- package/dist/components/index.js.map +4 -4
- package/dist/components/index.mjs +18 -2
- package/dist/components/inputs/Button.d.ts.map +1 -1
- package/dist/components/inputs/Button.js +1 -1
- package/dist/components/inputs/Button.js.map +1 -1
- package/dist/components/inputs/CheckBox.d.ts +7 -0
- package/dist/components/inputs/CheckBox.d.ts.map +1 -0
- package/dist/components/inputs/CheckBox.js +56 -0
- package/dist/components/inputs/CheckBox.js.map +1 -0
- package/dist/components/inputs/Input.d.ts +7 -0
- package/dist/components/inputs/Input.d.ts.map +1 -0
- package/dist/components/inputs/Input.js +47 -0
- package/dist/components/inputs/Input.js.map +1 -0
- package/dist/components/inputs/RadioButton.d.ts +7 -0
- package/dist/components/inputs/RadioButton.d.ts.map +1 -0
- package/dist/components/inputs/RadioButton.js +58 -0
- package/dist/components/inputs/RadioButton.js.map +1 -0
- package/dist/components/inputs/Switch.d.ts +7 -0
- package/dist/components/inputs/Switch.d.ts.map +1 -0
- package/dist/components/inputs/Switch.js +14 -0
- package/dist/components/inputs/Switch.js.map +1 -0
- package/dist/components/layouts/Box.d.ts +3 -3
- package/dist/components/layouts/Box.d.ts.map +1 -1
- package/dist/components/layouts/Box.js +23 -4
- package/dist/components/layouts/Box.js.map +1 -1
- package/dist/components/layouts/Collapsible.d.ts +7 -0
- package/dist/components/layouts/Collapsible.d.ts.map +1 -0
- package/dist/components/layouts/Collapsible.js +66 -0
- package/dist/components/layouts/Collapsible.js.map +1 -0
- package/dist/components/typography/Text.d.ts +1 -1
- package/dist/components/typography/Text.d.ts.map +1 -1
- package/dist/components/typography/Text.js +17 -17
- package/dist/components/typography/Text.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +548 -41
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +18 -2
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +1 -4
- package/dist/theme/index.js.map +2 -2
- package/dist/theme/index.mjs +1 -1
- package/dist/types/index.d.ts +82 -7
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +22 -19
- package/dist/chunk-IOIXIQ2F.mjs.map +0 -7
- package/dist/chunk-NUUZYCND.mjs +0 -318
- package/dist/chunk-NUUZYCND.mjs.map +0 -7
package/README.md
CHANGED
|
@@ -51,9 +51,33 @@
|
|
|
51
51
|
### Basic Setup
|
|
52
52
|
|
|
53
53
|
```bash
|
|
54
|
-
npm install react-native-atomic-ui
|
|
54
|
+
npm install react-native-atomic-ui
|
|
55
55
|
# or
|
|
56
|
-
yarn add react-native-atomic-ui
|
|
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 ..
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## 📱 Example App
|
|
70
|
+
|
|
71
|
+
Want to see all components in action? Check out our comprehensive showcase app:
|
|
72
|
+
|
|
73
|
+
👉 **[AtomicUIApp Example](examples/app/)** - A complete React Native app demonstrating all components, themes, and features.
|
|
74
|
+
|
|
75
|
+
To run the example app:
|
|
76
|
+
```bash
|
|
77
|
+
cd examples/app
|
|
78
|
+
npm install
|
|
79
|
+
cd ios && pod install && cd ..
|
|
80
|
+
npx react-native run-ios # or run-android
|
|
57
81
|
```
|
|
58
82
|
|
|
59
83
|
### With Optional Components
|
|
@@ -78,9 +102,15 @@ npm install @react-native-community/netinfo
|
|
|
78
102
|
|
|
79
103
|
## 🔧 Quick Start
|
|
80
104
|
|
|
81
|
-
###
|
|
105
|
+
### 1. Install the Package
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
npm install react-native-atomic-ui
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### 2. Setup Theme Provider
|
|
82
112
|
|
|
83
|
-
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`):
|
|
84
114
|
|
|
85
115
|
```typescript
|
|
86
116
|
import React from 'react';
|
|
@@ -96,7 +126,7 @@ export function Root() {
|
|
|
96
126
|
}
|
|
97
127
|
```
|
|
98
128
|
|
|
99
|
-
### Using Components
|
|
129
|
+
### 3. Start Using Components
|
|
100
130
|
|
|
101
131
|
```typescript
|
|
102
132
|
import React from 'react';
|
|
@@ -220,9 +250,11 @@ export function TypographyExample() {
|
|
|
220
250
|
|
|
221
251
|
## 📚 Component API Reference
|
|
222
252
|
|
|
223
|
-
###
|
|
253
|
+
### Layout Components
|
|
254
|
+
|
|
255
|
+
#### Box
|
|
224
256
|
|
|
225
|
-
Flexible container component for layout.
|
|
257
|
+
Flexible container component for layout with theme-aware spacing.
|
|
226
258
|
|
|
227
259
|
```typescript
|
|
228
260
|
interface BoxProps {
|
|
@@ -236,14 +268,71 @@ interface BoxProps {
|
|
|
236
268
|
gap?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
237
269
|
backgroundColor?: string;
|
|
238
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;
|
|
278
|
+
style?: any;
|
|
279
|
+
testID?: string;
|
|
280
|
+
}
|
|
281
|
+
```
|
|
282
|
+
|
|
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
|
|
291
|
+
|
|
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;
|
|
239
317
|
style?: any;
|
|
240
318
|
testID?: string;
|
|
241
319
|
}
|
|
242
320
|
```
|
|
243
321
|
|
|
244
|
-
|
|
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
|
|
245
332
|
|
|
246
|
-
|
|
333
|
+
#### Button
|
|
334
|
+
|
|
335
|
+
Interactive button component with multiple variants and sizes.
|
|
247
336
|
|
|
248
337
|
```typescript
|
|
249
338
|
interface ButtonProps {
|
|
@@ -270,14 +359,222 @@ interface ButtonProps {
|
|
|
270
359
|
- `medium` - 48px height (default)
|
|
271
360
|
- `large` - 56px height
|
|
272
361
|
|
|
273
|
-
|
|
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
|
|
274
431
|
|
|
275
|
-
|
|
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.
|
|
467
|
+
|
|
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.
|
|
276
571
|
|
|
277
572
|
```typescript
|
|
278
573
|
interface TextProps {
|
|
279
574
|
children?: React.ReactNode;
|
|
280
|
-
variant?: 'h1' | 'h2' |
|
|
575
|
+
variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' |
|
|
576
|
+
'body1' | 'body2' | 'body3' | 'body4' | 'body5' | 'body6' |
|
|
577
|
+
'subtitle1' | 'subtitle2' | 'caption' | 'overline';
|
|
281
578
|
color?: string;
|
|
282
579
|
textAlign?: 'auto' | 'left' | 'right' | 'center' | 'justify';
|
|
283
580
|
style?: any;
|
|
@@ -285,20 +582,35 @@ interface TextProps {
|
|
|
285
582
|
}
|
|
286
583
|
```
|
|
287
584
|
|
|
288
|
-
|
|
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)
|
|
289
590
|
|
|
290
|
-
|
|
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:
|
|
291
606
|
|
|
292
607
|
```typescript
|
|
293
|
-
|
|
294
|
-
<Row gap="md" padding="lg">
|
|
295
|
-
{/* Horizontal layout */}
|
|
296
|
-
</Row>
|
|
608
|
+
import { H1, H2, H3, Body1, Body2, SubTitle1, Caption, Overline } from 'react-native-atomic-ui';
|
|
297
609
|
|
|
298
|
-
//
|
|
299
|
-
<
|
|
300
|
-
|
|
301
|
-
</
|
|
610
|
+
// Use directly without variant prop
|
|
611
|
+
<H1>Heading</H1>
|
|
612
|
+
<Body1>Body text</Body1>
|
|
613
|
+
<Caption>Caption</Caption>
|
|
302
614
|
```
|
|
303
615
|
|
|
304
616
|
## 🔗 Advanced Components
|
|
@@ -450,17 +762,7 @@ If custom fonts aren't loading, ensure they're linked in Info.plist:
|
|
|
450
762
|
</array>
|
|
451
763
|
```
|
|
452
764
|
|
|
453
|
-
## 🆙 Upgrading
|
|
454
|
-
|
|
455
|
-
### From 0.x to 1.0
|
|
456
|
-
|
|
457
|
-
Version 1.0 introduces breaking changes:
|
|
458
|
-
|
|
459
|
-
- Theme structure updated with new color names
|
|
460
|
-
- `useThemeWithRedux` hook removed (use `useTheme` with Redux context)
|
|
461
|
-
- Component prop names standardized
|
|
462
765
|
|
|
463
|
-
See [CHANGELOG.md](./CHANGELOG.md) for details.
|
|
464
766
|
|
|
465
767
|
## 📄 License
|
|
466
768
|
|
|
@@ -480,6 +782,6 @@ Contributions are welcome! Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for g
|
|
|
480
782
|
|
|
481
783
|
## 🔗 Links
|
|
482
784
|
|
|
483
|
-
- [GitHub Repository](https://github.com/
|
|
785
|
+
- [GitHub Repository](https://github.com/tanmoythander/react-native-atomic-ui)
|
|
484
786
|
- [npm Package](https://www.npmjs.com/package/react-native-atomic-ui)
|
|
485
|
-
- [Issue Tracker](https://github.com/
|
|
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?:
|
|
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,
|
|
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?:
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
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?:
|
|
5
|
-
"mappings": ";
|
|
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:
|
|
19
|
+
onFileSelected: (file: SelectedFile) => void;
|
|
13
20
|
multiple?: boolean;
|
|
14
21
|
type?: string;
|
|
15
22
|
label?: string;
|
|
16
23
|
disabled?: boolean;
|
|
17
|
-
style?:
|
|
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,
|
|
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:
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
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:
|
|
5
|
-
"mappings": ";
|
|
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?:
|
|
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,
|
|
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?:
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
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?:
|
|
5
|
-
"mappings": ";
|
|
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?:
|
|
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?:
|
|
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,
|
|
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?:
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
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
|
}
|