@nexub/react-native 0.0.0-stage → 2.2.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.
- package/README.md +113 -2
- package/lib/module/components/actions.js +222 -0
- package/lib/module/components/actions.js.map +1 -0
- package/lib/module/components/containers.js +300 -0
- package/lib/module/components/containers.js.map +1 -0
- package/lib/module/components/display.js +299 -0
- package/lib/module/components/display.js.map +1 -0
- package/lib/module/components/feedback.js +484 -0
- package/lib/module/components/feedback.js.map +1 -0
- package/lib/module/components/inputs.js +792 -0
- package/lib/module/components/inputs.js.map +1 -0
- package/lib/module/components/mobile.js +818 -0
- package/lib/module/components/mobile.js.map +1 -0
- package/lib/module/components/overlays.js +421 -0
- package/lib/module/components/overlays.js.map +1 -0
- package/lib/module/components/shared.js +57 -0
- package/lib/module/components/shared.js.map +1 -0
- package/lib/module/hooks/useControllableState.js +23 -0
- package/lib/module/hooks/useControllableState.js.map +1 -0
- package/lib/module/index.js +31 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/patterns/app.js +709 -0
- package/lib/module/patterns/app.js.map +1 -0
- package/lib/module/patterns/auth.js +224 -0
- package/lib/module/patterns/auth.js.map +1 -0
- package/lib/module/patterns/home.js +201 -0
- package/lib/module/patterns/home.js.map +1 -0
- package/lib/module/patterns/index.js +8 -0
- package/lib/module/patterns/index.js.map +1 -0
- package/lib/module/patterns/money.js +419 -0
- package/lib/module/patterns/money.js.map +1 -0
- package/lib/module/primitives/Icon.js +17 -0
- package/lib/module/primitives/Icon.js.map +1 -0
- package/lib/module/primitives/Layout.js +79 -0
- package/lib/module/primitives/Layout.js.map +1 -0
- package/lib/module/primitives/Pressable.js +79 -0
- package/lib/module/primitives/Pressable.js.map +1 -0
- package/lib/module/primitives/ScreenContainer.js +58 -0
- package/lib/module/primitives/ScreenContainer.js.map +1 -0
- package/lib/module/primitives/Surface.js +57 -0
- package/lib/module/primitives/Surface.js.map +1 -0
- package/lib/module/primitives/Text.js +70 -0
- package/lib/module/primitives/Text.js.map +1 -0
- package/lib/module/theme/ThemeProvider.js +127 -0
- package/lib/module/theme/ThemeProvider.js.map +1 -0
- package/lib/module/theme/fonts.js +56 -0
- package/lib/module/theme/fonts.js.map +1 -0
- package/lib/module/theme/haptics.js +56 -0
- package/lib/module/theme/haptics.js.map +1 -0
- package/lib/module/theme/motion.js +89 -0
- package/lib/module/theme/motion.js.map +1 -0
- package/lib/module/theme/navigation.js +99 -0
- package/lib/module/theme/navigation.js.map +1 -0
- package/lib/typescript/components/actions.d.ts +53 -0
- package/lib/typescript/components/actions.d.ts.map +1 -0
- package/lib/typescript/components/containers.d.ts +59 -0
- package/lib/typescript/components/containers.d.ts.map +1 -0
- package/lib/typescript/components/display.d.ts +68 -0
- package/lib/typescript/components/display.d.ts.map +1 -0
- package/lib/typescript/components/feedback.d.ts +96 -0
- package/lib/typescript/components/feedback.d.ts.map +1 -0
- package/lib/typescript/components/inputs.d.ts +141 -0
- package/lib/typescript/components/inputs.d.ts.map +1 -0
- package/lib/typescript/components/mobile.d.ts +173 -0
- package/lib/typescript/components/mobile.d.ts.map +1 -0
- package/lib/typescript/components/overlays.d.ts +74 -0
- package/lib/typescript/components/overlays.d.ts.map +1 -0
- package/lib/typescript/components/shared.d.ts +20 -0
- package/lib/typescript/components/shared.d.ts.map +1 -0
- package/lib/typescript/hooks/useControllableState.d.ts +6 -0
- package/lib/typescript/hooks/useControllableState.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +39 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/patterns/app.d.ts +139 -0
- package/lib/typescript/patterns/app.d.ts.map +1 -0
- package/lib/typescript/patterns/auth.d.ts +54 -0
- package/lib/typescript/patterns/auth.d.ts.map +1 -0
- package/lib/typescript/patterns/home.d.ts +50 -0
- package/lib/typescript/patterns/home.d.ts.map +1 -0
- package/lib/typescript/patterns/index.d.ts +9 -0
- package/lib/typescript/patterns/index.d.ts.map +1 -0
- package/lib/typescript/patterns/money.d.ts +106 -0
- package/lib/typescript/patterns/money.d.ts.map +1 -0
- package/lib/typescript/primitives/Icon.d.ts +12 -0
- package/lib/typescript/primitives/Icon.d.ts.map +1 -0
- package/lib/typescript/primitives/Layout.d.ts +26 -0
- package/lib/typescript/primitives/Layout.d.ts.map +1 -0
- package/lib/typescript/primitives/Pressable.d.ts +21 -0
- package/lib/typescript/primitives/Pressable.d.ts.map +1 -0
- package/lib/typescript/primitives/ScreenContainer.d.ts +25 -0
- package/lib/typescript/primitives/ScreenContainer.d.ts.map +1 -0
- package/lib/typescript/primitives/Surface.d.ts +23 -0
- package/lib/typescript/primitives/Surface.d.ts.map +1 -0
- package/lib/typescript/primitives/Text.d.ts +21 -0
- package/lib/typescript/primitives/Text.d.ts.map +1 -0
- package/lib/typescript/theme/ThemeProvider.d.ts +69 -0
- package/lib/typescript/theme/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/theme/fonts.d.ts +25 -0
- package/lib/typescript/theme/fonts.d.ts.map +1 -0
- package/lib/typescript/theme/haptics.d.ts +3 -0
- package/lib/typescript/theme/haptics.d.ts.map +1 -0
- package/lib/typescript/theme/motion.d.ts +79 -0
- package/lib/typescript/theme/motion.d.ts.map +1 -0
- package/lib/typescript/theme/navigation.d.ts +158 -0
- package/lib/typescript/theme/navigation.d.ts.map +1 -0
- package/package.json +138 -3
- package/src/components/actions.tsx +259 -0
- package/src/components/containers.tsx +352 -0
- package/src/components/display.tsx +345 -0
- package/src/components/feedback.tsx +541 -0
- package/src/components/inputs.tsx +899 -0
- package/src/components/mobile.tsx +883 -0
- package/src/components/overlays.tsx +488 -0
- package/src/components/shared.ts +54 -0
- package/src/hooks/useControllableState.ts +27 -0
- package/src/index.ts +177 -0
- package/src/patterns/app.tsx +715 -0
- package/src/patterns/auth.tsx +266 -0
- package/src/patterns/home.tsx +211 -0
- package/src/patterns/index.ts +59 -0
- package/src/patterns/money.tsx +458 -0
- package/src/primitives/Icon.tsx +15 -0
- package/src/primitives/Layout.tsx +71 -0
- package/src/primitives/Pressable.tsx +97 -0
- package/src/primitives/ScreenContainer.tsx +65 -0
- package/src/primitives/Surface.tsx +75 -0
- package/src/primitives/Text.tsx +79 -0
- package/src/theme/ThemeProvider.tsx +210 -0
- package/src/theme/fonts.ts +52 -0
- package/src/theme/haptics.ts +57 -0
- package/src/theme/motion.ts +105 -0
- package/src/theme/navigation.ts +68 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
// @nexub/react-native — native chrome, Nexub content (MOBILE_PLAN.md).
|
|
2
|
+
|
|
3
|
+
// Theme
|
|
4
|
+
export {
|
|
5
|
+
NexubNativeProvider,
|
|
6
|
+
useTheme,
|
|
7
|
+
useRoles,
|
|
8
|
+
useHaptics,
|
|
9
|
+
useNexubMessages,
|
|
10
|
+
} from './theme/ThemeProvider';
|
|
11
|
+
export type {
|
|
12
|
+
NexubNativeProviderProps,
|
|
13
|
+
NexubTheme,
|
|
14
|
+
Roles,
|
|
15
|
+
RoleName,
|
|
16
|
+
Scheme,
|
|
17
|
+
ElevationLevel,
|
|
18
|
+
} from './theme/ThemeProvider';
|
|
19
|
+
export { nexubFonts, fontStyle } from './theme/fonts';
|
|
20
|
+
export type { FontFamily, FontSource } from './theme/fonts';
|
|
21
|
+
export { playHaptic } from './theme/haptics';
|
|
22
|
+
export type { HapticToken } from './theme/haptics';
|
|
23
|
+
export { nxSpring, nxEnter, nxExit, nxLayout } from './theme/motion';
|
|
24
|
+
export type { SpringFamily, SpringSpeed, EnterKind, ExitKind } from './theme/motion';
|
|
25
|
+
export { useControllableState } from './hooks/useControllableState';
|
|
26
|
+
|
|
27
|
+
// Primitives
|
|
28
|
+
export { Text, Heading } from './primitives/Text';
|
|
29
|
+
export type { TextProps, HeadingProps } from './primitives/Text';
|
|
30
|
+
export { Pressable } from './primitives/Pressable';
|
|
31
|
+
export type { PressableProps } from './primitives/Pressable';
|
|
32
|
+
export { Surface } from './primitives/Surface';
|
|
33
|
+
export type { SurfaceProps, SurfaceTone, ShapeName } from './primitives/Surface';
|
|
34
|
+
export { Box, Stack, Inline } from './primitives/Layout';
|
|
35
|
+
export type { BoxProps, Space } from './primitives/Layout';
|
|
36
|
+
export { Icon } from './primitives/Icon';
|
|
37
|
+
export type { IconProps } from './primitives/Icon';
|
|
38
|
+
export { ScreenContainer } from './primitives/ScreenContainer';
|
|
39
|
+
export type { ScreenContainerProps } from './primitives/ScreenContainer';
|
|
40
|
+
|
|
41
|
+
// Shared with @nexub/react
|
|
42
|
+
export { defaultMessages, directionOf } from '@nexub/core';
|
|
43
|
+
export type {
|
|
44
|
+
NexubMessages,
|
|
45
|
+
Direction,
|
|
46
|
+
ToneValue,
|
|
47
|
+
Product,
|
|
48
|
+
GlassMode,
|
|
49
|
+
ContrastLevel,
|
|
50
|
+
ControlSize,
|
|
51
|
+
} from '@nexub/core';
|
|
52
|
+
|
|
53
|
+
// Components
|
|
54
|
+
export { Button, IconButton, ButtonGroup, Link } from './components/actions';
|
|
55
|
+
export type {
|
|
56
|
+
ButtonProps,
|
|
57
|
+
ButtonVariant,
|
|
58
|
+
IconButtonProps,
|
|
59
|
+
ButtonGroupProps,
|
|
60
|
+
LinkProps,
|
|
61
|
+
} from './components/actions';
|
|
62
|
+
export { Amount, Badge, Avatar, AvatarGroup, Divider } from './components/display';
|
|
63
|
+
export type {
|
|
64
|
+
AmountProps,
|
|
65
|
+
BadgeProps,
|
|
66
|
+
AvatarProps,
|
|
67
|
+
AvatarSize,
|
|
68
|
+
AvatarGroupProps,
|
|
69
|
+
DividerProps,
|
|
70
|
+
} from './components/display';
|
|
71
|
+
export {
|
|
72
|
+
TextField,
|
|
73
|
+
PasswordInput,
|
|
74
|
+
SearchField,
|
|
75
|
+
MoneyInput,
|
|
76
|
+
Stepper,
|
|
77
|
+
Checkbox,
|
|
78
|
+
RadioGroup,
|
|
79
|
+
Radio,
|
|
80
|
+
Switch,
|
|
81
|
+
SegmentedControl,
|
|
82
|
+
Slider,
|
|
83
|
+
Chip,
|
|
84
|
+
FilterChip,
|
|
85
|
+
} from './components/inputs';
|
|
86
|
+
export type {
|
|
87
|
+
TextFieldProps,
|
|
88
|
+
PasswordInputProps,
|
|
89
|
+
SearchFieldProps,
|
|
90
|
+
MoneyInputProps,
|
|
91
|
+
StepperProps,
|
|
92
|
+
CheckboxProps,
|
|
93
|
+
RadioGroupProps,
|
|
94
|
+
RadioProps,
|
|
95
|
+
SwitchProps,
|
|
96
|
+
SegmentedControlProps,
|
|
97
|
+
SliderProps,
|
|
98
|
+
ChipProps,
|
|
99
|
+
} from './components/inputs';
|
|
100
|
+
export { Card, ListItem, ListSection, Accordion } from './components/containers';
|
|
101
|
+
export type {
|
|
102
|
+
CardProps,
|
|
103
|
+
ListItemProps,
|
|
104
|
+
ListItemVariant,
|
|
105
|
+
ListSectionProps,
|
|
106
|
+
AccordionProps,
|
|
107
|
+
} from './components/containers';
|
|
108
|
+
export {
|
|
109
|
+
Banner,
|
|
110
|
+
ToastProvider,
|
|
111
|
+
useToast,
|
|
112
|
+
Dialog,
|
|
113
|
+
Progress,
|
|
114
|
+
LoadingIndicator,
|
|
115
|
+
Skeleton,
|
|
116
|
+
EmptyState,
|
|
117
|
+
ErrorState,
|
|
118
|
+
} from './components/feedback';
|
|
119
|
+
export type {
|
|
120
|
+
BannerProps,
|
|
121
|
+
ToastOptions,
|
|
122
|
+
ToastProviderProps,
|
|
123
|
+
DialogProps,
|
|
124
|
+
ProgressProps,
|
|
125
|
+
SkeletonProps,
|
|
126
|
+
EmptyStateProps,
|
|
127
|
+
ErrorStateProps,
|
|
128
|
+
} from './components/feedback';
|
|
129
|
+
export { BottomSheet, ActionSheet, ContextMenu, Select } from './components/overlays';
|
|
130
|
+
export type {
|
|
131
|
+
BottomSheetProps,
|
|
132
|
+
SheetDetent,
|
|
133
|
+
SheetAction,
|
|
134
|
+
ActionSheetProps,
|
|
135
|
+
ContextMenuProps,
|
|
136
|
+
SelectProps,
|
|
137
|
+
SelectOption,
|
|
138
|
+
} from './components/overlays';
|
|
139
|
+
export {
|
|
140
|
+
SwipeableRow,
|
|
141
|
+
RefreshControl,
|
|
142
|
+
Carousel,
|
|
143
|
+
PageIndicator,
|
|
144
|
+
StickyFooter,
|
|
145
|
+
OTPInput,
|
|
146
|
+
NumericKeypad,
|
|
147
|
+
ExpressiveMoneyInput,
|
|
148
|
+
SensitiveValue,
|
|
149
|
+
PrivacyShield,
|
|
150
|
+
OfflineBanner,
|
|
151
|
+
Coachmark,
|
|
152
|
+
FAB,
|
|
153
|
+
DateTimeField,
|
|
154
|
+
} from './components/mobile';
|
|
155
|
+
export type {
|
|
156
|
+
SwipeAction,
|
|
157
|
+
SwipeableRowProps,
|
|
158
|
+
CarouselProps,
|
|
159
|
+
PageIndicatorProps,
|
|
160
|
+
StickyFooterProps,
|
|
161
|
+
OTPInputProps,
|
|
162
|
+
NumericKeypadProps,
|
|
163
|
+
ExpressiveMoneyInputProps,
|
|
164
|
+
SensitiveValueProps,
|
|
165
|
+
PrivacyShieldProps,
|
|
166
|
+
CoachmarkProps,
|
|
167
|
+
FABProps,
|
|
168
|
+
DateTimeFieldProps,
|
|
169
|
+
} from './components/mobile';
|
|
170
|
+
|
|
171
|
+
// Navigation (native chrome, Nexub colours)
|
|
172
|
+
export {
|
|
173
|
+
nexubStackOptions,
|
|
174
|
+
nexubNavigationTheme,
|
|
175
|
+
nexubTabsOptions,
|
|
176
|
+
useNexubNavigation,
|
|
177
|
+
} from './theme/navigation';
|