react-native-boxes 1.3.16 → 1.3.18
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/package.json +1 -1
- package/src/Button.tsx +4 -4
- package/src/Input.tsx +29 -18
- package/sample-app/babel.config.js +0 -6
- package/src/Bar.d.ts +0 -29
- package/src/Bar.js +0 -178
- package/src/Bar.js.map +0 -1
- package/src/Box.d.ts +0 -15
- package/src/Box.js +0 -123
- package/src/Box.js.map +0 -1
- package/src/Button.d.ts +0 -22
- package/src/Button.js +0 -245
- package/src/Button.js.map +0 -1
- package/src/I18n.d.ts +0 -4
- package/src/I18n.js +0 -7
- package/src/I18n.js.map +0 -1
- package/src/Image.d.ts +0 -31
- package/src/Image.js +0 -129
- package/src/Image.js.map +0 -1
- package/src/Input.d.ts +0 -29
- package/src/Input.js +0 -190
- package/src/Input.js.map +0 -1
- package/src/List.d.ts +0 -17
- package/src/List.js +0 -92
- package/src/List.js.map +0 -1
- package/src/Message.d.ts +0 -7
- package/src/Message.js +0 -97
- package/src/Message.js.map +0 -1
- package/src/Modal.d.ts +0 -52
- package/src/Modal.js +0 -344
- package/src/Modal.js.map +0 -1
- package/src/Styles.d.ts +0 -126
- package/src/Styles.js +0 -117
- package/src/Styles.js.map +0 -1
- package/src/Text.d.ts +0 -8
- package/src/Text.js +0 -57
- package/src/Text.js.map +0 -1
- package/src/ThemeContext.d.ts +0 -119
- package/src/ThemeContext.js +0 -33
- package/src/ThemeContext.js.map +0 -1
- package/src/demo.d.ts +0 -5
- package/src/demo.js +0 -385
- package/src/demo.js.map +0 -1
- package/src/index.d.ts +0 -14
- package/src/index.js.map +0 -1
- package/src/utils.d.ts +0 -5
- package/src/utils.js +0 -45
- package/src/utils.js.map +0 -1
package/package.json
CHANGED
package/src/Button.tsx
CHANGED
|
@@ -48,7 +48,7 @@ export function TransparentButton(props: TextProps & TouchableHighlightProps
|
|
|
48
48
|
alignContent: 'center',
|
|
49
49
|
alignItems: 'center',
|
|
50
50
|
padding: theme.dimens.space.md,
|
|
51
|
-
borderRadius: theme.dimens.space.
|
|
51
|
+
borderRadius: theme.dimens.space.md,
|
|
52
52
|
margin: theme.dimens.space.sm,
|
|
53
53
|
backgroundColor: theme.colors.transparent,
|
|
54
54
|
}, props.style]}>
|
|
@@ -116,7 +116,7 @@ export function ButtonView(props: ButtonViewProps) {
|
|
|
116
116
|
alignContent: 'center',
|
|
117
117
|
alignItems: 'center',
|
|
118
118
|
padding: theme.dimens.space.md,
|
|
119
|
-
borderRadius: theme.dimens.space.
|
|
119
|
+
borderRadius: theme.dimens.space.md,
|
|
120
120
|
margin: theme.dimens.space.sm,
|
|
121
121
|
backgroundColor: theme.colors.accent,
|
|
122
122
|
}, props.style]}>
|
|
@@ -150,7 +150,7 @@ export function ButtonView(props: ButtonViewProps) {
|
|
|
150
150
|
//@ts-ignore
|
|
151
151
|
fontSize: tstyle.fontSize || theme.dimens.font.md,
|
|
152
152
|
//@ts-ignore
|
|
153
|
-
fontFamily: tstyle.fontFamily || theme.fonts.
|
|
153
|
+
fontFamily: tstyle.fontFamily || theme.fonts.Bold,
|
|
154
154
|
//@ts-ignore
|
|
155
155
|
color: tstyle.color || theme.colors.invert.text,
|
|
156
156
|
}, props.textStyle]}>
|
|
@@ -190,7 +190,7 @@ export function RightIconButton(props: ButtonViewProps) {
|
|
|
190
190
|
alignContent: 'center',
|
|
191
191
|
alignItems: 'center',
|
|
192
192
|
padding: theme.dimens.space.md,
|
|
193
|
-
borderRadius: theme.dimens.space.
|
|
193
|
+
borderRadius: theme.dimens.space.md,
|
|
194
194
|
margin: theme.dimens.space.sm,
|
|
195
195
|
backgroundColor: theme.colors.accent,
|
|
196
196
|
}, props.style]}>
|
package/src/Input.tsx
CHANGED
|
@@ -35,7 +35,7 @@ export function TextInputView(props: TextInputProps & {
|
|
|
35
35
|
setFocused(false)
|
|
36
36
|
props.onBlur && props.onBlur(e)
|
|
37
37
|
}}
|
|
38
|
-
value={props.value || text}
|
|
38
|
+
value={props.value || text || ''}
|
|
39
39
|
onChangeText={(newText) => {
|
|
40
40
|
if (props.pattern) {
|
|
41
41
|
const re = new RegExp(props.pattern);
|
|
@@ -68,16 +68,7 @@ export function TextInputView(props: TextInputProps & {
|
|
|
68
68
|
)
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
hint?: string,
|
|
73
|
-
alertText?: string,
|
|
74
|
-
alertTextColor?: string,
|
|
75
|
-
pattern?: string,
|
|
76
|
-
initialText?: string,
|
|
77
|
-
icon?: 'close' | 'eye' | string | React.Component,
|
|
78
|
-
_textInputProps?: TextInputProps,
|
|
79
|
-
onIconPress?: ((event: GestureResponderEvent) => void) | undefined
|
|
80
|
-
}
|
|
71
|
+
|
|
81
72
|
/**
|
|
82
73
|
* Note: if input is inside a ScrollView in heirarchy anywhere then add keyboardShouldPersistTaps={'handled'}
|
|
83
74
|
* to the scrollview else the icon click wont work
|
|
@@ -86,7 +77,16 @@ export type CompositeTextInputViewProps = TextInputProps & {
|
|
|
86
77
|
* @param props
|
|
87
78
|
* @returns
|
|
88
79
|
*/
|
|
89
|
-
export function CompositeTextInputView(props:
|
|
80
|
+
export function CompositeTextInputView(props: TextInputProps & {
|
|
81
|
+
hint?: string,
|
|
82
|
+
alertText?: string,
|
|
83
|
+
alertTextColor?: string,
|
|
84
|
+
pattern?: string,
|
|
85
|
+
initialText?: string,
|
|
86
|
+
leftIcon?: 'edit' | string | React.Component,
|
|
87
|
+
icon?: 'close' | 'eye' | string | React.Component,
|
|
88
|
+
onIconPress?: ((event: GestureResponderEvent) => void) | undefined
|
|
89
|
+
}) {
|
|
90
90
|
const theme = useContext(ThemeContext)
|
|
91
91
|
const [text, setText] = useState(props.initialText)
|
|
92
92
|
const [alerttext, setAlertText] = useState(props.alertText)
|
|
@@ -142,6 +142,16 @@ export function CompositeTextInputView(props: CompositeTextInputViewProps) {
|
|
|
142
142
|
}} name={props.icon} />
|
|
143
143
|
) : props.icon
|
|
144
144
|
|
|
145
|
+
//@ts-ignore
|
|
146
|
+
const LeftIconComponent: ReactNode = typeof props.leftIcon == 'string' ? (
|
|
147
|
+
<Icon
|
|
148
|
+
color={!focused ? theme.colors.caption : theme.colors.accent}
|
|
149
|
+
style={{
|
|
150
|
+
minWidth: isWeb() ? theme.dimens.icon.lg : theme.dimens.icon.sm,
|
|
151
|
+
padding: theme.dimens.space.sm / 2,
|
|
152
|
+
}} name={props.leftIcon} />
|
|
153
|
+
) : props.leftIcon
|
|
154
|
+
|
|
145
155
|
return (
|
|
146
156
|
<HBox style={[{
|
|
147
157
|
paddingEnd: theme.dimens.space.md,
|
|
@@ -160,7 +170,9 @@ export function CompositeTextInputView(props: CompositeTextInputViewProps) {
|
|
|
160
170
|
|
|
161
171
|
}, props.style]}>
|
|
162
172
|
|
|
163
|
-
|
|
173
|
+
{
|
|
174
|
+
props.leftIcon != undefined && LeftIconComponent
|
|
175
|
+
}
|
|
164
176
|
<VBox style={[{
|
|
165
177
|
flex: 1,
|
|
166
178
|
paddingBottom: alertVisible ? 0 : theme.dimens.space.sm
|
|
@@ -176,13 +188,12 @@ export function CompositeTextInputView(props: CompositeTextInputViewProps) {
|
|
|
176
188
|
color: !focused ? theme.colors.caption : theme.colors.accent,
|
|
177
189
|
|
|
178
190
|
}}
|
|
179
|
-
>{props.placeholder}</TextView>}
|
|
191
|
+
>{props.placeholder || ''}</TextView>}
|
|
180
192
|
<TextInput
|
|
181
|
-
{...props._textInputProps}
|
|
182
193
|
selectionColor={props.selectionColor || theme.colors.accent}
|
|
183
194
|
secureTextEntry={props.secureTextEntry}
|
|
184
195
|
placeholderTextColor={theme.colors.caption}
|
|
185
|
-
placeholder={hintVisible ? '' : theme.i18n?.t(props.placeholder) || props.placeholder}
|
|
196
|
+
placeholder={hintVisible ? '' : theme.i18n?.t(props.placeholder) || props.placeholder || ''}
|
|
186
197
|
keyboardType={props.keyboardType}
|
|
187
198
|
returnKeyType={props.returnKeyType || 'default'}
|
|
188
199
|
onFocus={(e) => {
|
|
@@ -193,7 +204,7 @@ export function CompositeTextInputView(props: CompositeTextInputViewProps) {
|
|
|
193
204
|
setFocused(false)
|
|
194
205
|
props.onBlur && props.onBlur(e)
|
|
195
206
|
}}
|
|
196
|
-
value={props.value || text}
|
|
207
|
+
value={props.value || text || ''}
|
|
197
208
|
onChangeText={(newText) => {
|
|
198
209
|
if (props.pattern) {
|
|
199
210
|
const re = new RegExp(props.pattern);
|
|
@@ -213,7 +224,7 @@ export function CompositeTextInputView(props: CompositeTextInputViewProps) {
|
|
|
213
224
|
outline: 'none',
|
|
214
225
|
} : {
|
|
215
226
|
|
|
216
|
-
}, fontStyles
|
|
227
|
+
}, fontStyles]}
|
|
217
228
|
/>
|
|
218
229
|
{
|
|
219
230
|
alertVisible && <TextView
|
package/src/Bar.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { TextStyle, ViewProps } from "react-native";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { Icon } from "./Image";
|
|
4
|
-
export interface Option {
|
|
5
|
-
id: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
icon?: string | any;
|
|
8
|
-
onClick?: (id: string) => void;
|
|
9
|
-
}
|
|
10
|
-
export interface SimpleToolbarProps extends ViewProps {
|
|
11
|
-
title?: String;
|
|
12
|
-
hideStatusBar?: boolean;
|
|
13
|
-
backgroundColor?: string;
|
|
14
|
-
statusbarBackgroundColor?: string;
|
|
15
|
-
forgroundColor?: string;
|
|
16
|
-
homeIcon?: string | typeof Icon;
|
|
17
|
-
onHomePress?: () => void;
|
|
18
|
-
textStyle?: TextStyle;
|
|
19
|
-
options?: Option[];
|
|
20
|
-
}
|
|
21
|
-
export declare const SimpleToolbarHeight = 40;
|
|
22
|
-
export declare function SimpleToolbar(props: SimpleToolbarProps): React.JSX.Element;
|
|
23
|
-
export declare function TransparentCenterToolbar(props: SimpleToolbarProps): React.JSX.Element;
|
|
24
|
-
export declare function BottomNavBar(props: ViewProps & {
|
|
25
|
-
options: Option[];
|
|
26
|
-
selectedId: string;
|
|
27
|
-
onSelect: (id: string) => void;
|
|
28
|
-
onDimens?: (width: number, height: number) => void;
|
|
29
|
-
}): React.JSX.Element | null;
|
package/src/Bar.js
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.BottomNavBar = exports.TransparentCenterToolbar = exports.SimpleToolbar = exports.SimpleToolbarHeight = void 0;
|
|
27
|
-
const react_1 = require("react");
|
|
28
|
-
const react_native_1 = require("react-native");
|
|
29
|
-
const ThemeContext_1 = require("./ThemeContext");
|
|
30
|
-
const React = __importStar(require("react"));
|
|
31
|
-
const Box_1 = require("./Box");
|
|
32
|
-
const Text_1 = require("./Text");
|
|
33
|
-
const Image_1 = require("./Image");
|
|
34
|
-
const react_native_safe_area_context_1 = require("react-native-safe-area-context");
|
|
35
|
-
const Button_1 = require("./Button");
|
|
36
|
-
const utils_1 = require("./utils");
|
|
37
|
-
exports.SimpleToolbarHeight = 40;
|
|
38
|
-
function SimpleToolbar(props) {
|
|
39
|
-
const theme = (0, react_1.useContext)(ThemeContext_1.ThemeContext);
|
|
40
|
-
var HomeIcon = (0, Image_1.getIcon)(props.homeIcon);
|
|
41
|
-
let insets;
|
|
42
|
-
try {
|
|
43
|
-
insets = (0, react_native_safe_area_context_1.useSafeAreaInsets)();
|
|
44
|
-
}
|
|
45
|
-
catch (e) {
|
|
46
|
-
if (!theme.insets)
|
|
47
|
-
console.warn('Unable to useSafeAreaInsets. Please set theme.insets = useSafeAreaInsets(). ' + e.message);
|
|
48
|
-
insets = theme.insets || theme.styles.safeAreaInset;
|
|
49
|
-
}
|
|
50
|
-
return (<Box_1.HBox style={[(0, utils_1.isWeb)() ? {
|
|
51
|
-
paddingTop: theme.dimens.space.lg,
|
|
52
|
-
paddingBottom: theme.dimens.space.lg,
|
|
53
|
-
backgroundColor: props.backgroundColor || theme.colors.accent,
|
|
54
|
-
minHeight: exports.SimpleToolbarHeight * ((0, utils_1.isDesktop)() ? 1.3 : 1.25),
|
|
55
|
-
} : {
|
|
56
|
-
paddingTop: insets.top,
|
|
57
|
-
paddingBottom: theme.dimens.space.lg,
|
|
58
|
-
backgroundColor: props.backgroundColor || theme.colors.accent,
|
|
59
|
-
minHeight: exports.SimpleToolbarHeight,
|
|
60
|
-
}, props.style]}>
|
|
61
|
-
{!props.hideStatusBar && <react_native_1.StatusBar animated={true} backgroundColor={props.statusbarBackgroundColor || props.backgroundColor || theme.colors.accent}/>}
|
|
62
|
-
<Box_1.HBox style={{
|
|
63
|
-
left: 0,
|
|
64
|
-
paddingStart: HomeIcon ? 0 : theme.dimens.space.sm,
|
|
65
|
-
justifyContent: HomeIcon ? 'center' : 'flex-start',
|
|
66
|
-
alignSelf: 'center',
|
|
67
|
-
position: 'absolute',
|
|
68
|
-
width: '100%',
|
|
69
|
-
}}>
|
|
70
|
-
<Text_1.TextView style={[{
|
|
71
|
-
fontWeight: 'bold',
|
|
72
|
-
color: props.forgroundColor || theme.colors.invert.text
|
|
73
|
-
}, props.textStyle]}>
|
|
74
|
-
{props.title}
|
|
75
|
-
</Text_1.TextView>
|
|
76
|
-
</Box_1.HBox>
|
|
77
|
-
|
|
78
|
-
<Box_1.HBox style={{
|
|
79
|
-
paddingLeft: theme.dimens.space.md,
|
|
80
|
-
alignSelf: 'center',
|
|
81
|
-
alignContent: 'center',
|
|
82
|
-
position: 'absolute',
|
|
83
|
-
justifyContent: 'space-between',
|
|
84
|
-
width: '99.9%',
|
|
85
|
-
}}>
|
|
86
|
-
<Box_1.Center style={{
|
|
87
|
-
paddingLeft: theme.dimens.space.sm,
|
|
88
|
-
margin: 0,
|
|
89
|
-
}}>
|
|
90
|
-
<Button_1.PressableView onPress={() => {
|
|
91
|
-
props.onHomePress && props.onHomePress();
|
|
92
|
-
}}>
|
|
93
|
-
{HomeIcon && <HomeIcon color={props.forgroundColor || theme.colors.invert.text}/>}
|
|
94
|
-
</Button_1.PressableView>
|
|
95
|
-
</Box_1.Center>
|
|
96
|
-
<Box_1.HBox style={{
|
|
97
|
-
alignItems: 'center',
|
|
98
|
-
marginRight: (0, utils_1.isWeb)() ? theme.dimens.space.sm : theme.dimens.space.md
|
|
99
|
-
}}>
|
|
100
|
-
{props.options?.map((opt) => {
|
|
101
|
-
let ActionIcon = (0, Image_1.getIcon)(opt.icon);
|
|
102
|
-
let title = opt.title || opt.id;
|
|
103
|
-
return (<Button_1.PressableView style={{
|
|
104
|
-
paddingStart: theme.dimens.space.md
|
|
105
|
-
}} key={opt.id} accessibilityHint={title} onPress={() => {
|
|
106
|
-
opt.onClick && opt.onClick(opt.id);
|
|
107
|
-
}}>
|
|
108
|
-
<ActionIcon color={props.forgroundColor || theme.colors.invert.text} style={{
|
|
109
|
-
paddingLeft: theme.dimens.space.sm
|
|
110
|
-
}}/>
|
|
111
|
-
</Button_1.PressableView>);
|
|
112
|
-
})}
|
|
113
|
-
</Box_1.HBox>
|
|
114
|
-
</Box_1.HBox>
|
|
115
|
-
</Box_1.HBox>);
|
|
116
|
-
}
|
|
117
|
-
exports.SimpleToolbar = SimpleToolbar;
|
|
118
|
-
function TransparentCenterToolbar(props) {
|
|
119
|
-
const theme = (0, react_1.useContext)(ThemeContext_1.ThemeContext);
|
|
120
|
-
return (<SimpleToolbar style={[{
|
|
121
|
-
width: '100%'
|
|
122
|
-
}, props.style]} textStyle={{
|
|
123
|
-
color: theme.colors.text
|
|
124
|
-
}} homeIcon="" title={props.title} backgroundColor={theme.colors.transparent} {...props}/>);
|
|
125
|
-
}
|
|
126
|
-
exports.TransparentCenterToolbar = TransparentCenterToolbar;
|
|
127
|
-
function BottomNavBar(props) {
|
|
128
|
-
const theme = (0, react_1.useContext)(ThemeContext_1.ThemeContext);
|
|
129
|
-
const onDimens = props.onDimens;
|
|
130
|
-
const hasText = props.options?.find((op) => {
|
|
131
|
-
return op.title != undefined;
|
|
132
|
-
});
|
|
133
|
-
function getItem(op) {
|
|
134
|
-
const color = props.selectedId == op.id ? theme.colors.accent : theme.colors.text;
|
|
135
|
-
const ItemIcon = (0, Image_1.getIcon)(op.icon);
|
|
136
|
-
const title = op.title || (hasText ? op.id : undefined);
|
|
137
|
-
return (<Button_1.PressableView style={{
|
|
138
|
-
paddingTop: theme.dimens.space.sm
|
|
139
|
-
}} key={op.id} onPress={() => {
|
|
140
|
-
op.onClick && op.onClick(op.id);
|
|
141
|
-
props.onSelect(op.id);
|
|
142
|
-
}}>
|
|
143
|
-
<Box_1.Center>
|
|
144
|
-
{op.icon && <ItemIcon color={color}/>}
|
|
145
|
-
{title &&
|
|
146
|
-
<Text_1.TextView style={{
|
|
147
|
-
fontSize: theme.dimens.font.sm,
|
|
148
|
-
color: color
|
|
149
|
-
}}>{title}</Text_1.TextView>}
|
|
150
|
-
</Box_1.Center>
|
|
151
|
-
</Button_1.PressableView>);
|
|
152
|
-
}
|
|
153
|
-
if (!props.options || props.options?.length == 0) {
|
|
154
|
-
return null;
|
|
155
|
-
}
|
|
156
|
-
return (<Box_1.HBox onLayout={(event) => {
|
|
157
|
-
const { width, height } = event.nativeEvent.layout;
|
|
158
|
-
onDimens && onDimens(width, height);
|
|
159
|
-
}} {...props} style={[{
|
|
160
|
-
marginBottom: theme?.insets?.bottom || 0,
|
|
161
|
-
padding: theme.dimens.space.md,
|
|
162
|
-
paddingTop: !hasText ? theme.dimens.space.lg : theme.dimens.space.md,
|
|
163
|
-
paddingBottom: !hasText ? theme.dimens.space.lg : theme.dimens.space.md,
|
|
164
|
-
backgroundColor: theme.colors.forground,
|
|
165
|
-
zIndex: 100,
|
|
166
|
-
width: '100%',
|
|
167
|
-
justifyContent: 'space-around',
|
|
168
|
-
left: 0,
|
|
169
|
-
bottom: 0,
|
|
170
|
-
position: 'absolute'
|
|
171
|
-
}, props.style]}>
|
|
172
|
-
{props.options?.map(op => {
|
|
173
|
-
return getItem(op);
|
|
174
|
-
})}
|
|
175
|
-
</Box_1.HBox>);
|
|
176
|
-
}
|
|
177
|
-
exports.BottomNavBar = BottomNavBar;
|
|
178
|
-
//# sourceMappingURL=Bar.js.map
|
package/src/Bar.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Bar.js","sourceRoot":"","sources":["Bar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAmC;AACnC,+CAA+D;AAC/D,iDAA8C;AAC9C,6CAA8B;AAC9B,+BAAqC;AACrC,iCAAkC;AAClC,mCAAwC;AACxC,mFAAmE;AACnE,qCAAyC;AACzC,mCAA2C;AAqB9B,QAAA,mBAAmB,GAAG,EAAE,CAAA;AACrC,SAAgB,aAAa,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AK,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC;YACnD,QAAQ,IAAI,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;QACvC,CAAC,CAAC,CACF,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC,CAAC;gBACJ,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;gBACxC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;gBAC9B,UAAU,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;gBACpE,aAAa,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;gBACvE,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS;gBACvC,MAAM,EAAE,GAAG;gBACX,KAAK,EAAE,MAAM;gBACb,cAAc,EAAE,cAAc;gBAC9B,IAAI,EAAE,CAAC;gBACP,MAAM,EAAE,CAAC;gBACT,QAAQ,EAAE,UAAU;aACvB,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAEhB;YAAA,CACI,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,EAAE,CAAC,EAAE;YACpB,OAAO,OAAO,CAAC,EAAE,CAAC,CAAA;QACtB,CAAC,CACL,CACJ;QAAA,EAAE,UAAI,CAAC,CACV,CAAA;AAEL,CAAC;AArED,oCAqEC"}
|
package/src/Box.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ScrollViewProps, ViewProps } from "react-native";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export declare function Box(props: ViewProps): React.JSX.Element;
|
|
4
|
-
export declare function VBox(props: ViewProps): React.JSX.Element;
|
|
5
|
-
export declare function HBox(props: ViewProps): React.JSX.Element;
|
|
6
|
-
export declare function Center(props: ViewProps): React.JSX.Element;
|
|
7
|
-
export declare function VPage(props: ViewProps): React.JSX.Element;
|
|
8
|
-
/**
|
|
9
|
-
* Must be wrapped with SafeAreaView somewhere in parent tree
|
|
10
|
-
* @param param0
|
|
11
|
-
* @returns
|
|
12
|
-
*/
|
|
13
|
-
declare const KeyboardAvoidingScrollView: React.FC<ScrollViewProps>;
|
|
14
|
-
export default KeyboardAvoidingScrollView;
|
|
15
|
-
export declare function CardView(props: ViewProps): React.JSX.Element;
|
package/src/Box.js
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.CardView = exports.VPage = exports.Center = exports.HBox = exports.VBox = exports.Box = void 0;
|
|
27
|
-
const react_1 = require("react");
|
|
28
|
-
const react_native_1 = require("react-native");
|
|
29
|
-
const ThemeContext_1 = require("./ThemeContext");
|
|
30
|
-
const React = __importStar(require("react"));
|
|
31
|
-
const react_native_2 = require("react-native");
|
|
32
|
-
const react_native_safe_area_context_1 = require("react-native-safe-area-context");
|
|
33
|
-
const utils_1 = require("./utils");
|
|
34
|
-
function Box(props) {
|
|
35
|
-
const theme = (0, react_1.useContext)(ThemeContext_1.ThemeContext);
|
|
36
|
-
return (<react_native_1.View {...props} style={[
|
|
37
|
-
{
|
|
38
|
-
padding: theme.dimens.space.xs,
|
|
39
|
-
backgroundColor: theme.randomColor() || 'transparent'
|
|
40
|
-
},
|
|
41
|
-
props.style
|
|
42
|
-
]}/>);
|
|
43
|
-
}
|
|
44
|
-
exports.Box = Box;
|
|
45
|
-
function VBox(props) {
|
|
46
|
-
const theme = (0, react_1.useContext)(ThemeContext_1.ThemeContext);
|
|
47
|
-
return (<Box {...props} style={[
|
|
48
|
-
{
|
|
49
|
-
flexDirection: 'column',
|
|
50
|
-
backgroundColor: theme.randomColor() || 'transparent'
|
|
51
|
-
},
|
|
52
|
-
props.style
|
|
53
|
-
]}/>);
|
|
54
|
-
}
|
|
55
|
-
exports.VBox = VBox;
|
|
56
|
-
function HBox(props) {
|
|
57
|
-
return (<VBox {...props} style={[
|
|
58
|
-
{
|
|
59
|
-
flexDirection: 'row',
|
|
60
|
-
},
|
|
61
|
-
props.style
|
|
62
|
-
]}/>);
|
|
63
|
-
}
|
|
64
|
-
exports.HBox = HBox;
|
|
65
|
-
function Center(props) {
|
|
66
|
-
const theme = (0, react_1.useContext)(ThemeContext_1.ThemeContext);
|
|
67
|
-
return (<Box {...props} style={[{
|
|
68
|
-
alignItems: 'center',
|
|
69
|
-
justifyContent: 'center',
|
|
70
|
-
backgroundColor: theme.randomColor() || 'transparent'
|
|
71
|
-
},
|
|
72
|
-
props.style]}/>);
|
|
73
|
-
}
|
|
74
|
-
exports.Center = Center;
|
|
75
|
-
function VPage(props) {
|
|
76
|
-
const theme = (0, react_1.useContext)(ThemeContext_1.ThemeContext);
|
|
77
|
-
return (<VBox {...props} style={[
|
|
78
|
-
{
|
|
79
|
-
width: '100%',
|
|
80
|
-
height: '100%',
|
|
81
|
-
padding: 0,
|
|
82
|
-
margin: 0,
|
|
83
|
-
backgroundColor: theme.colors.background,
|
|
84
|
-
},
|
|
85
|
-
props.style
|
|
86
|
-
]}/>);
|
|
87
|
-
}
|
|
88
|
-
exports.VPage = VPage;
|
|
89
|
-
/**
|
|
90
|
-
* Must be wrapped with SafeAreaView somewhere in parent tree
|
|
91
|
-
* @param param0
|
|
92
|
-
* @returns
|
|
93
|
-
*/
|
|
94
|
-
const KeyboardAvoidingScrollView = (props) => {
|
|
95
|
-
const theme = (0, react_1.useContext)(ThemeContext_1.ThemeContext);
|
|
96
|
-
let insets;
|
|
97
|
-
try {
|
|
98
|
-
insets = (0, react_native_safe_area_context_1.useSafeAreaInsets)();
|
|
99
|
-
}
|
|
100
|
-
catch (e) {
|
|
101
|
-
if (!theme.insets)
|
|
102
|
-
console.warn('Unable to useSafeAreaInsets. Please set theme.insets = useSafeAreaInsets(). ' + e.message);
|
|
103
|
-
insets = theme.insets || theme.styles.safeAreaInset;
|
|
104
|
-
}
|
|
105
|
-
if ((0, utils_1.isWeb)()) {
|
|
106
|
-
return <react_native_2.ScrollView showsVerticalScrollIndicator={false} {...props}/>;
|
|
107
|
-
}
|
|
108
|
-
return (<react_native_2.KeyboardAvoidingView style={props.style} behavior="padding" enabled keyboardVerticalOffset={insets.top}>
|
|
109
|
-
<react_native_2.ScrollView showsHorizontalScrollIndicator={false} showsVerticalScrollIndicator={false} {...props}/>
|
|
110
|
-
</react_native_2.KeyboardAvoidingView>);
|
|
111
|
-
};
|
|
112
|
-
exports.default = KeyboardAvoidingScrollView;
|
|
113
|
-
function CardView(props) {
|
|
114
|
-
const theme = (0, react_1.useContext)(ThemeContext_1.ThemeContext);
|
|
115
|
-
return (<VBox {...props} style={[{
|
|
116
|
-
padding: theme.dimens.space.md,
|
|
117
|
-
borderRadius: theme.dimens.space.md,
|
|
118
|
-
backgroundColor: theme.colors.forground,
|
|
119
|
-
margin: theme.dimens.space.md
|
|
120
|
-
}, props.style]}/>);
|
|
121
|
-
}
|
|
122
|
-
exports.CardView = CardView;
|
|
123
|
-
//# sourceMappingURL=Box.js.map
|
package/src/Box.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Box.js","sourceRoot":"","sources":["Box.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAmC;AACnC,+CAAgE;AAChE,iDAA8C;AAC9C,6CAA8B;AAC9B,+CAA+D;AAC/D,mFAAmE;AACnE,mCAAgC;AAEhC,SAAgB,GAAG,CAAC,KAAgB;IAChC,MAAM,KAAK,GAAG,IAAA,kBAAU,EAAC,2BAAY,CAAC,CAAA;IACtC,OAAO,CACH,CAAC,mBAAI,CACD,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC;YACH;gBACI,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;gBAC9B,eAAe,EAAE,KAAK,CAAC,WAAW,EAAE,IAAI,aAAa;aACxD;YACD,KAAK,CAAC,KAAK;SACd,CAAC,EAAG,CACZ,CAAA;AACL,CAAC;AAbD,kBAaC;AAED,SAAgB,IAAI,CAAC,KAAgB;IACjC,MAAM,KAAK,GAAG,IAAA,kBAAU,EAAC,2BAAY,CAAC,CAAA;IACtC,OAAO,CACH,CAAC,GAAG,CAAE,IAAI,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC;YACpB;gBACI,aAAa,EAAE,QAAQ;gBACvB,eAAe,EAAE,KAAK,CAA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,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;aAChC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,EAAG,CACtB,CAAA;AACL,CAAC;AAZD,4BAYC"}
|
package/src/Button.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { TextProps, TouchableHighlightProps, PressableProps, TextStyle, SwitchProps } from "react-native";
|
|
2
|
-
export type ButtonViewProps = TextProps & TouchableHighlightProps & {
|
|
3
|
-
icon?: any;
|
|
4
|
-
text?: string;
|
|
5
|
-
textStyle?: TextStyle;
|
|
6
|
-
children?: any;
|
|
7
|
-
};
|
|
8
|
-
export declare function TertiaryButtonView(props: ButtonViewProps): import("react").JSX.Element;
|
|
9
|
-
export declare function TransparentButton(props: TextProps & TouchableHighlightProps & {
|
|
10
|
-
icon?: any;
|
|
11
|
-
text?: string;
|
|
12
|
-
}): import("react").JSX.Element;
|
|
13
|
-
export declare function ButtonView(props: ButtonViewProps): import("react").JSX.Element;
|
|
14
|
-
export declare function RightIconButton(props: ButtonViewProps): import("react").JSX.Element;
|
|
15
|
-
export declare function LoadingButton(props: TextProps & TouchableHighlightProps & {
|
|
16
|
-
loading: boolean;
|
|
17
|
-
icon?: any;
|
|
18
|
-
text?: string;
|
|
19
|
-
loaderStyle?: 'normal' | 'transparent';
|
|
20
|
-
}): import("react").JSX.Element;
|
|
21
|
-
export declare function PressableView(props: PressableProps): import("react").JSX.Element;
|
|
22
|
-
export declare function SwitchView(props: SwitchProps): import("react").JSX.Element;
|