@vellira-ui/react-native 2.19.6

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Roman Bakurov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,91 @@
1
+ # @vellira-ui/react-native
2
+
3
+ React Native component package for Vellira.
4
+
5
+ This package contains iOS-inspired native components built with React Native `StyleSheet`. Components use shared colors, typography, spacing, and radius from `@vellira-ui/tokens`, shared behavior from `@vellira-ui/core`, and renderer-neutral contracts from `@vellira-ui/types`.
6
+
7
+ ## Components
8
+
9
+ - Button
10
+ - Checkbox
11
+ - Input
12
+ - FormField
13
+ - RadioGroup
14
+ - Select
15
+ - Dropdown
16
+ - Tabs
17
+ - Tooltip
18
+ - Modal
19
+
20
+ Each public native component has React Native Storybook coverage and Vitest unit coverage.
21
+
22
+ For detailed props, shared types, examples, and compound component APIs, see
23
+ [Native Component API](./API.md).
24
+
25
+ ## Installation
26
+
27
+ ```bash
28
+ pnpm add @vellira-ui/react-native
29
+ ```
30
+
31
+ Peer dependencies:
32
+
33
+ - `react`
34
+ - `react-native`
35
+
36
+ ## Usage
37
+
38
+ ```tsx
39
+ import { Button, Checkbox, Input } from '@vellira-ui/react-native';
40
+ import { useState } from 'react';
41
+ import { View } from 'react-native';
42
+
43
+ export function Example() {
44
+ const [email, setEmail] = useState('');
45
+
46
+ return (
47
+ <View style={{ gap: 16 }}>
48
+ <Input label='Email' value={email} onChange={setEmail} />
49
+ <Checkbox label='Accept terms' />
50
+ <Button variant='primary'>Continue</Button>
51
+ </View>
52
+ );
53
+ }
54
+ ```
55
+
56
+ ## Testing
57
+
58
+ Run only native tests:
59
+
60
+ ```bash
61
+ pnpm --filter @vellira-ui/react-native test
62
+ ```
63
+
64
+ The native package uses Vitest with a lightweight local `react-native` mock. These tests validate component state, callbacks, accessibility props, and conditional rendering without requiring an iOS or Android simulator.
65
+
66
+ Native tests and test utilities are excluded from the package build through `tsconfig.json`.
67
+
68
+ ## Storybook
69
+
70
+ Native stories live next to components as `*.stories.tsx` and are consumed by `apps/native-storybook`.
71
+
72
+ Run on-device Storybook from the workspace root:
73
+
74
+ ```bash
75
+ pnpm --filter native-storybook start
76
+ pnpm --filter native-storybook ios
77
+ pnpm --filter native-storybook android
78
+ ```
79
+
80
+ ## Development
81
+
82
+ ```bash
83
+ pnpm --filter @vellira-ui/react-native build
84
+ pnpm --filter @vellira-ui/react-native test
85
+ ```
86
+
87
+ Run the Expo playground:
88
+
89
+ ```bash
90
+ pnpm --filter native-playground start
91
+ ```
@@ -0,0 +1,23 @@
1
+ export type { DropdownProps } from './components/Dropdown';
2
+ export { Dropdown } from './components/Dropdown';
3
+ export type { ModalProps } from './components/Modal';
4
+ export { Modal } from './components/Modal';
5
+ export type { RadioGroupProps, RadioOption } from './components/RadioGroup';
6
+ export { RadioGroup } from './components/RadioGroup';
7
+ export type { SelectOption, SelectProps } from './components/Select';
8
+ export { Select } from './components/Select';
9
+ export type { TabProps, TabsListProps, TabsPanelProps, TabsProps, } from './components/Tabs';
10
+ export { Tabs } from './components/Tabs';
11
+ export type { TooltipProps } from './components/Tooltip';
12
+ export { Tooltip } from './components/Tooltip';
13
+ export type { FormFieldProps } from './patterns/FormField';
14
+ export { FormField } from './patterns/FormField';
15
+ export type { ButtonProps } from './primitives/Button';
16
+ export { Button } from './primitives/Button';
17
+ export type { CheckboxProps } from './primitives/Checkbox';
18
+ export { Checkbox } from './primitives/Checkbox';
19
+ export type { InputProps } from './primitives/Input';
20
+ export { Input } from './primitives/Input';
21
+ export type { NativeThemeName, ThemeProviderProps } from './theme';
22
+ export { nativeThemes, ThemeProvider, useTheme } from './theme';
23
+ //# sourceMappingURL=index.d.ts.map