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/src/demo.js
DELETED
|
@@ -1,385 +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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.DemoScreen = void 0;
|
|
30
|
-
const react_1 = require("react");
|
|
31
|
-
const React = __importStar(require("react"));
|
|
32
|
-
const react_native_1 = require("react-native");
|
|
33
|
-
const _1 = require(".");
|
|
34
|
-
const FontAwesome_1 = __importDefault(require("@expo/vector-icons/FontAwesome"));
|
|
35
|
-
const react_native_safe_area_context_1 = require("react-native-safe-area-context");
|
|
36
|
-
const Message_1 = require("./Message");
|
|
37
|
-
const Modal_1 = require("./Modal");
|
|
38
|
-
const Image_1 = require("./Image");
|
|
39
|
-
const utils_1 = require("./utils");
|
|
40
|
-
const Box_1 = __importStar(require("./Box"));
|
|
41
|
-
const Styles_1 = require("./Styles");
|
|
42
|
-
function DemoScreen({ navigation }) {
|
|
43
|
-
const theme = (0, react_1.useContext)(_1.ThemeContext);
|
|
44
|
-
console.log('Rendering');
|
|
45
|
-
const btnIcon = (<FontAwesome_1.default name='google' size={theme.dimens.icon.md} color={theme.colors.invert.text}/>);
|
|
46
|
-
const [loading, setLoading] = (0, react_1.useState)(false);
|
|
47
|
-
const [alert, setBs] = (0, react_1.useState)(`In this version, the icon used is always 'chevron-right' even when expanded.`);
|
|
48
|
-
const [bottomsheetVisible, setbottomsheetVisible] = (0, react_1.useState)(false);
|
|
49
|
-
function setAlert(bs) {
|
|
50
|
-
setBs(bs);
|
|
51
|
-
setTimeout(() => {
|
|
52
|
-
setBs(`In this version, the icon used is always 'chevron-right' even when expanded.`);
|
|
53
|
-
}, 5000);
|
|
54
|
-
}
|
|
55
|
-
const [selectedBottombarId, setSelectedBottomBarId] = (0, react_1.useState)('home');
|
|
56
|
-
const [mText, setMText] = (0, react_1.useState)(`@shivesh`);
|
|
57
|
-
const [bottomBarHeight, setBottombarHeight] = (0, react_1.useState)(theme.dimens.space.xl);
|
|
58
|
-
const [selectedTheme, setSelectedTheme] = (0, react_1.useState)(true);
|
|
59
|
-
(0, react_1.useEffect)(() => {
|
|
60
|
-
theme.colors = selectedTheme ? Styles_1.LightColors : Styles_1.DarkColors;
|
|
61
|
-
forceUpdate();
|
|
62
|
-
}, [selectedTheme]);
|
|
63
|
-
const [, forceUpdate] = (0, react_1.useReducer)(x => x + 1, 0);
|
|
64
|
-
const dataList = [
|
|
65
|
-
{
|
|
66
|
-
country: 'India',
|
|
67
|
-
captialSlogan: 'Ye delhi hai mere yaar!',
|
|
68
|
-
about: 'India is a promise land in the heart of asia. Soon there will be akhand bharat!',
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
country: 'Japan',
|
|
72
|
-
captialSlogan: 'Land of the Rising Sun',
|
|
73
|
-
about: 'Japan is an island nation in East Asia. It is known for its advanced technology, rich history, and unique culture.',
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
country: 'Italy',
|
|
77
|
-
captialSlogan: 'The Boot-Shaped Beauty',
|
|
78
|
-
about: 'Italy is a country located in Southern Europe. It is known for its historical landmarks, delicious food, and beautiful scenery.',
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
country: 'Brazil',
|
|
82
|
-
captialSlogan: 'Land of Samba and Carnival',
|
|
83
|
-
about: 'Brazil is the largest country in South America. It is known for its vibrant culture, stunning beaches, and diverse rainforest.',
|
|
84
|
-
},
|
|
85
|
-
];
|
|
86
|
-
const [selCountry, setSelCountry] = (0, react_1.useState)(dataList[0].country);
|
|
87
|
-
return (<react_native_safe_area_context_1.SafeAreaProvider>
|
|
88
|
-
<_1.VBox style={{
|
|
89
|
-
backgroundColor: theme.colors.background,
|
|
90
|
-
padding: 0,
|
|
91
|
-
paddingBottom: bottomBarHeight,
|
|
92
|
-
margin: 0,
|
|
93
|
-
height: '100%'
|
|
94
|
-
}}>
|
|
95
|
-
<_1.SimpleToolbar title="Demo" homeIcon={(0, utils_1.ReactWrapper)(<Image_1.Icon color={theme.colors.invert.text} name="plus"/>)} options={[
|
|
96
|
-
{
|
|
97
|
-
id: 'test',
|
|
98
|
-
icon: 'gear',
|
|
99
|
-
onClick: (id) => {
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
id: 'test2',
|
|
104
|
-
icon: (0, utils_1.ReactWrapper)(<_1.PressableView>
|
|
105
|
-
<Image_1.Avatar style={{
|
|
106
|
-
margin: 0,
|
|
107
|
-
height: theme.dimens?.icon?.md * 1.25,
|
|
108
|
-
width: theme.dimens?.icon?.md * 1.25,
|
|
109
|
-
}} iconUrl="https://avatars.githubusercontent.com/u/16799797?v=4"/>
|
|
110
|
-
</_1.PressableView>),
|
|
111
|
-
onClick: (id) => {
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
]}/>
|
|
115
|
-
<Box_1.default automaticallyAdjustKeyboardInsets={true} keyboardShouldPersistTaps={'handled'} style={{
|
|
116
|
-
flexGrow: 1,
|
|
117
|
-
}} nestedScrollEnabled={true} showsHorizontalScrollIndicator={false} showsVerticalScrollIndicator={false}>
|
|
118
|
-
|
|
119
|
-
<_1.Center style={{
|
|
120
|
-
flexDirection: 'row',
|
|
121
|
-
padding: 20
|
|
122
|
-
}}>
|
|
123
|
-
|
|
124
|
-
<Image_1.Avatar onPress={() => {
|
|
125
|
-
setbottomsheetVisible(true);
|
|
126
|
-
}} style={{
|
|
127
|
-
borderColor: theme.colors.success,
|
|
128
|
-
}} iconNameProps={{
|
|
129
|
-
name: 'user',
|
|
130
|
-
color: theme.colors.success,
|
|
131
|
-
size: theme.dimens.icon.lg
|
|
132
|
-
}}/>
|
|
133
|
-
<_1.Center>
|
|
134
|
-
<Image_1.Avatar style={{
|
|
135
|
-
borderWidth: theme.dimens.space.sm,
|
|
136
|
-
width: 100,
|
|
137
|
-
height: 100,
|
|
138
|
-
borderColor: theme.colors.success
|
|
139
|
-
}} iconText='SN' onPress={() => {
|
|
140
|
-
setbottomsheetVisible(true);
|
|
141
|
-
}} iconNameProps={{
|
|
142
|
-
name: 'user',
|
|
143
|
-
color: theme.colors.success,
|
|
144
|
-
size: theme.dimens.icon.lg
|
|
145
|
-
}} iconUrl='https://cdn.truelancer.com/user-picture/307510-5c1f11bad82e9.jpg'/>
|
|
146
|
-
<_1.Subtitle>{mText}</_1.Subtitle>
|
|
147
|
-
</_1.Center>
|
|
148
|
-
|
|
149
|
-
<Image_1.Avatar style={{
|
|
150
|
-
borderColor: theme.colors.success,
|
|
151
|
-
color: theme.colors.success
|
|
152
|
-
}} onPress={() => {
|
|
153
|
-
setbottomsheetVisible(true);
|
|
154
|
-
}} iconText='SN'/>
|
|
155
|
-
</_1.Center>
|
|
156
|
-
|
|
157
|
-
<_1.Expand title='Datalist' initialExpand={false}>
|
|
158
|
-
<_1.SimpleDatalistView items={dataList} itemAdapter={(item) => {
|
|
159
|
-
const [isEnabled, setisEnabled] = (0, react_1.useState)(true);
|
|
160
|
-
return {
|
|
161
|
-
onPress: () => {
|
|
162
|
-
console.log('presssss');
|
|
163
|
-
},
|
|
164
|
-
action: (<_1.PressableView onPress={(e) => {
|
|
165
|
-
e.stopPropagation();
|
|
166
|
-
}}>
|
|
167
|
-
<react_native_1.Switch trackColor={{ false: '#767577', true: '#81b0ff' }} thumbColor={'#f4f3f4'} ios_backgroundColor="#3e3e3e" value={isEnabled} onValueChange={(enab) => {
|
|
168
|
-
setisEnabled(enab);
|
|
169
|
-
}}/>
|
|
170
|
-
</_1.PressableView>),
|
|
171
|
-
icon: (<Image_1.Avatar iconText={item.country.substr(0, 2).toUpperCase()}/>),
|
|
172
|
-
flexRatio: [2, 7, 1],
|
|
173
|
-
title: item.country,
|
|
174
|
-
subtitle: item.captialSlogan,
|
|
175
|
-
body: item.about
|
|
176
|
-
};
|
|
177
|
-
}}/>
|
|
178
|
-
<Box_1.Box style={{
|
|
179
|
-
height: 0.1,
|
|
180
|
-
width: '100%',
|
|
181
|
-
margin: theme.dimens.space.md,
|
|
182
|
-
backgroundColor: theme.colors.caption
|
|
183
|
-
}}/>
|
|
184
|
-
<_1.SimpleDatatlistViewItem icon={(<Image_1.Avatar iconText='GH'/>)} flexRatio={[2.5, 6.5, 1]} title='Go home' subtitle="Go big or Go home !" body="In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content. Lorem ipsum may be used as a placeholder before the final copy is available." action={(<Image_1.Icon name="arrow-right" onPress={() => {
|
|
185
|
-
console.log('pressed');
|
|
186
|
-
}}/>)}/>
|
|
187
|
-
|
|
188
|
-
<_1.SimpleDatatlistViewItem icon="home" title='Go home' subtitle="In publishing and graphic design" action={(<Image_1.Icon name="arrow-right"/>)}/>
|
|
189
|
-
|
|
190
|
-
<_1.SimpleDatatlistViewItem icon="home" title='Go home' subtitle="In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content. Lorem ipsum may be used as a placeholder before the final copy is available." action={(<Image_1.Icon name="arrow-right"/>)}/>
|
|
191
|
-
</_1.Expand>
|
|
192
|
-
|
|
193
|
-
<_1.Expand title='Message Alert' initialExpand={false} style={{
|
|
194
|
-
backgroundColor: theme.colors.forground
|
|
195
|
-
}} titleBackgroundColor={theme.colors.forground}>
|
|
196
|
-
<_1.VBox>
|
|
197
|
-
<Message_1.AlertMessage text={alert} onDismiss={() => {
|
|
198
|
-
react_native_1.LayoutAnimation.configureNext(react_native_1.LayoutAnimation.Presets.easeInEaseOut);
|
|
199
|
-
setAlert('');
|
|
200
|
-
}}/>
|
|
201
|
-
<Message_1.AlertMessage text='Critial Message' type='critical'/>
|
|
202
|
-
<Message_1.AlertMessage text='Success' type='success'/>
|
|
203
|
-
<Message_1.AlertMessage text='Warning Message' type='warning'/>
|
|
204
|
-
</_1.VBox>
|
|
205
|
-
|
|
206
|
-
</_1.Expand>
|
|
207
|
-
<_1.Expand title='Dropdowns' initialExpand={false}>
|
|
208
|
-
<Modal_1.DropDownView title={"Select Country"} forceDialogSelectOnWeb={true} onSelect={(id) => {
|
|
209
|
-
setSelCountry(id);
|
|
210
|
-
}} selectedId={selCountry} options={dataList.map((d) => {
|
|
211
|
-
return {
|
|
212
|
-
id: d.country,
|
|
213
|
-
value: d.captialSlogan,
|
|
214
|
-
title: d.captialSlogan
|
|
215
|
-
};
|
|
216
|
-
})}/>
|
|
217
|
-
<Modal_1.DropDownView displayType='button' title={"Select Country"} forceDialogSelectOnWeb={true} onSelect={(id) => {
|
|
218
|
-
setSelCountry(id);
|
|
219
|
-
}} selectedId={selCountry} options={dataList.map((d) => {
|
|
220
|
-
return {
|
|
221
|
-
id: d.country,
|
|
222
|
-
value: d.captialSlogan,
|
|
223
|
-
title: d.captialSlogan
|
|
224
|
-
};
|
|
225
|
-
})}/>
|
|
226
|
-
</_1.Expand>
|
|
227
|
-
<_1.Expand style={{
|
|
228
|
-
padding: 0,
|
|
229
|
-
borderWidth: 0.1,
|
|
230
|
-
borderColor: '#DCDCDC'
|
|
231
|
-
}} duration={200} title='In this version, the icon used is always chevron-right even when expanded. In this version, the icon used is always chevron-right even when expanded.' initialExpand={false} iconPosition='right'>
|
|
232
|
-
<_1.VBox>
|
|
233
|
-
<_1.Title>Text A</_1.Title>
|
|
234
|
-
<_1.Subtitle>Text A Text A Text AText A Text AText A</_1.Subtitle>
|
|
235
|
-
<_1.TextView>Text A</_1.TextView>
|
|
236
|
-
<_1.Caption>Text Caption</_1.Caption>
|
|
237
|
-
</_1.VBox>
|
|
238
|
-
</_1.Expand>
|
|
239
|
-
<_1.Expand title='Inputs'>
|
|
240
|
-
|
|
241
|
-
<_1.VBox>
|
|
242
|
-
<_1.TextInputView style={{
|
|
243
|
-
fontFamily: theme.fonts.Bold
|
|
244
|
-
}} initialText={mText} value={mText} onChangeText={t => setMText(t)}/>
|
|
245
|
-
<_1.CompositeTextInputView onChangeText={t => setMText(t)} placeholder='A test' initialText='Test'/>
|
|
246
|
-
<_1.CompositeTextInputView inputMode='decimal' icon={"close"} style={{}} alertTextColor={theme.colors.warning} placeholder='Enter your name' initialText='Test' value={mText} onChangeText={t => setMText(t)}/>
|
|
247
|
-
<_1.CompositeTextInputView style={{}} placeholder='Enter number' alertText={mText?.indexOf("@") > -1 ? '' : 'Please enter @ or else I am gonna come down at your place and mess you up buddy !'} initialText='Test' value={mText} onChangeText={t => setMText(t)}/>
|
|
248
|
-
</_1.VBox>
|
|
249
|
-
</_1.Expand>
|
|
250
|
-
|
|
251
|
-
<_1.Expand iconStyle={{
|
|
252
|
-
name: 'chevron-right',
|
|
253
|
-
color: 'red'
|
|
254
|
-
}} title='Buttons' initialExpand={true}>
|
|
255
|
-
<_1.VBox style={{}}>
|
|
256
|
-
<_1.VBox>
|
|
257
|
-
|
|
258
|
-
<_1.ButtonView icon="google" style={{}}>Button Icon</_1.ButtonView>
|
|
259
|
-
|
|
260
|
-
<_1.ButtonView icon={btnIcon} style={{}}>Button Icon</_1.ButtonView>
|
|
261
|
-
|
|
262
|
-
<_1.ButtonView style={{}}>Button Text</_1.ButtonView>
|
|
263
|
-
</_1.VBox>
|
|
264
|
-
<_1.RightIconButton text='Click Me Icon' icon={btnIcon}>
|
|
265
|
-
</_1.RightIconButton>
|
|
266
|
-
|
|
267
|
-
<_1.Center>
|
|
268
|
-
<_1.LoadingButton onPress={(e) => {
|
|
269
|
-
setLoading(!loading);
|
|
270
|
-
}} loading={loading} text='Click Me'/>
|
|
271
|
-
|
|
272
|
-
<_1.ButtonView underlayColor={theme.colors.transparent} style={{
|
|
273
|
-
color: theme.colors.accent,
|
|
274
|
-
backgroundColor: theme.colors.transparent,
|
|
275
|
-
}}>Tertiary button</_1.ButtonView>
|
|
276
|
-
|
|
277
|
-
</_1.Center>
|
|
278
|
-
|
|
279
|
-
<_1.Expand title='Nested expand'>
|
|
280
|
-
<_1.HBox style={{
|
|
281
|
-
justifyContent: 'center',
|
|
282
|
-
}}>
|
|
283
|
-
<_1.LoadingButton style={{
|
|
284
|
-
width: 'auto'
|
|
285
|
-
}} onPress={(e) => {
|
|
286
|
-
setLoading(!loading);
|
|
287
|
-
}} loading={loading} text='Click Me left'/>
|
|
288
|
-
<_1.LoadingButton loaderStyle='transparent' style={{
|
|
289
|
-
width: 'auto'
|
|
290
|
-
}} onPress={(e) => {
|
|
291
|
-
setLoading(!loading);
|
|
292
|
-
}} loading={loading} text='Click Me right'/>
|
|
293
|
-
</_1.HBox>
|
|
294
|
-
</_1.Expand>
|
|
295
|
-
|
|
296
|
-
</_1.VBox>
|
|
297
|
-
</_1.Expand>
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
<_1.ButtonView underlayColor={theme.colors.transparent} style={{
|
|
302
|
-
color: theme.colors.accent,
|
|
303
|
-
backgroundColor: theme.colors.transparent,
|
|
304
|
-
}} onPress={() => {
|
|
305
|
-
setSelectedTheme(!selectedTheme);
|
|
306
|
-
}}>{selectedTheme ? 'Light' : 'Dark'}</_1.ButtonView>
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
<_1.ButtonView underlayColor={theme.colors.transparent} style={{
|
|
310
|
-
color: theme.colors.accent,
|
|
311
|
-
backgroundColor: theme.colors.transparent,
|
|
312
|
-
}} onPress={() => {
|
|
313
|
-
setbottomsheetVisible(true);
|
|
314
|
-
}}>Show Sheet</_1.ButtonView>
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
</Box_1.default>
|
|
318
|
-
<_1.BottomNavBar style={{
|
|
319
|
-
borderTopLeftRadius: theme.dimens.space.md,
|
|
320
|
-
borderTopRightRadius: theme.dimens.space.md,
|
|
321
|
-
}} onSelect={setSelectedBottomBarId} selectedId={selectedBottombarId} options={[
|
|
322
|
-
{
|
|
323
|
-
id: 'home',
|
|
324
|
-
title: 'Home',
|
|
325
|
-
icon: 'home'
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
id: 'create',
|
|
329
|
-
title: 'Create',
|
|
330
|
-
icon: 'plus'
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
id: 'search',
|
|
334
|
-
title: 'Search',
|
|
335
|
-
icon: 'search'
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
id: 'profile',
|
|
339
|
-
title: 'Profile',
|
|
340
|
-
icon: (0, utils_1.ReactWrapper)(<_1.PressableView>
|
|
341
|
-
<Image_1.Avatar onPress={() => {
|
|
342
|
-
setSelectedBottomBarId('profile');
|
|
343
|
-
}} style={{
|
|
344
|
-
borderColor: selectedBottombarId == 'profile' ?
|
|
345
|
-
theme.colors.accent : theme.colors.caption,
|
|
346
|
-
margin: 0,
|
|
347
|
-
height: theme.dimens?.icon?.md,
|
|
348
|
-
width: theme.dimens?.icon?.md,
|
|
349
|
-
}}
|
|
350
|
-
// iconName='user'
|
|
351
|
-
iconUrl="https://avatars.githubusercontent.com/u/16799797?v=4"/>
|
|
352
|
-
</_1.PressableView>)
|
|
353
|
-
}
|
|
354
|
-
]} onDimens={(w, h) => {
|
|
355
|
-
setBottombarHeight(h);
|
|
356
|
-
console.log("bottomBarHeight", h);
|
|
357
|
-
}}/>
|
|
358
|
-
|
|
359
|
-
<Modal_1.BottomSheet title="About" visible={bottomsheetVisible} onDismiss={() => {
|
|
360
|
-
setbottomsheetVisible(false);
|
|
361
|
-
}}>
|
|
362
|
-
<_1.TextView>Dinosaurs are a diverse group of reptiles of the clade Dinosauria. They first appeared during the Triassic period, between 243 and 233.23 million years ago, although the exact origin and timing of the evolution of dinosaurs is a subject of active research.</_1.TextView>
|
|
363
|
-
|
|
364
|
-
<_1.TextView>Dinosaurs are a diverse group of reptiles of the clade Dinosauria. They first appeared during the Triassic period, between 243 and 233.23 million years ago, although the exact origin and timing of the evolution of dinosaurs is a subject of active research.</_1.TextView>
|
|
365
|
-
<_1.Expand title='Types' initialExpand={false} style={{
|
|
366
|
-
padding: 0,
|
|
367
|
-
backgroundColor: theme.colors.forground
|
|
368
|
-
}} titleBackgroundColor={theme.colors.forground}>
|
|
369
|
-
<_1.VBox>
|
|
370
|
-
<Message_1.AlertMessage text={alert} onDismiss={() => {
|
|
371
|
-
react_native_1.LayoutAnimation.configureNext(react_native_1.LayoutAnimation.Presets.easeInEaseOut);
|
|
372
|
-
setAlert('');
|
|
373
|
-
}}/>
|
|
374
|
-
<Message_1.AlertMessage text='Tyrannosaurus rex' type='critical'/>
|
|
375
|
-
<Message_1.AlertMessage text='Spinosaurus' type='success'/>
|
|
376
|
-
<Message_1.AlertMessage text='Ankylosaurs' type='warning'/>
|
|
377
|
-
</_1.VBox>
|
|
378
|
-
|
|
379
|
-
</_1.Expand>
|
|
380
|
-
</Modal_1.BottomSheet>
|
|
381
|
-
</_1.VBox>
|
|
382
|
-
</react_native_safe_area_context_1.SafeAreaProvider>);
|
|
383
|
-
}
|
|
384
|
-
exports.DemoScreen = DemoScreen;
|
|
385
|
-
//# sourceMappingURL=demo.js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AAC,SAAS,EAC/C;cAAA,CAAC,sBAAY,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,EACjD;YAAA,EAAE,OAAI,CAER;;UAAA,EAAE,SAAM,CACV;QAAA,EAAE,mBAAW,CACf;MAAA,EAAE,OAAI,CACR;IAAA,EAAE,iDAAgB,CAAC,CACpB,CAAC;AACJ,CAAC;AArfD,gCAqfC"}
|
package/src/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export * from './Text';
|
|
2
|
-
export * from './Box';
|
|
3
|
-
export * from './Button';
|
|
4
|
-
export * from './Modal';
|
|
5
|
-
export * from './Image';
|
|
6
|
-
export * from './Input';
|
|
7
|
-
export * from './Bar';
|
|
8
|
-
export * from './utils';
|
|
9
|
-
export * from './Message';
|
|
10
|
-
export * from './Styles';
|
|
11
|
-
export * from './demo';
|
|
12
|
-
export * from './ThemeContext';
|
|
13
|
-
export * from './I18n';
|
|
14
|
-
export * from './List';
|
package/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,wCAAsB;AACtB,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,wCAAsB;AACtB,0CAAwB;AACxB,4CAA0B;AAC1B,2CAAyB;AACzB,yCAAuB;AACvB,iDAA+B;AAC/B,yCAAsB;AACtB,yCAAsB"}
|
package/src/utils.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare function ReactWrapper(component: any): (props: any) => any;
|
|
2
|
-
export declare function randomColor(): undefined;
|
|
3
|
-
export declare function isWeb(): boolean;
|
|
4
|
-
export declare function isDesktop(): boolean;
|
|
5
|
-
export declare function assignFields(target: any, source: any, fields: string[], skipUndefined?: boolean): any;
|
package/src/utils.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assignFields = exports.isDesktop = exports.isWeb = exports.randomColor = exports.ReactWrapper = void 0;
|
|
4
|
-
const react_native_1 = require("react-native");
|
|
5
|
-
const react_native_2 = require("react-native");
|
|
6
|
-
function ReactWrapper(component) {
|
|
7
|
-
return (props) => {
|
|
8
|
-
return component;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
exports.ReactWrapper = ReactWrapper;
|
|
12
|
-
function randomColor() {
|
|
13
|
-
const letters = '0123456789ABCDEF';
|
|
14
|
-
let color = '#';
|
|
15
|
-
for (let i = 0; i < 6; i++) {
|
|
16
|
-
color += letters[Math.floor(Math.random() * 16)];
|
|
17
|
-
}
|
|
18
|
-
// return color;
|
|
19
|
-
return undefined;
|
|
20
|
-
}
|
|
21
|
-
exports.randomColor = randomColor;
|
|
22
|
-
function isWeb() {
|
|
23
|
-
return react_native_1.Platform.OS == 'web';
|
|
24
|
-
}
|
|
25
|
-
exports.isWeb = isWeb;
|
|
26
|
-
function isDesktop() {
|
|
27
|
-
const windowWidth = react_native_2.Dimensions.get('window').width;
|
|
28
|
-
const windowHeight = react_native_2.Dimensions.get('window').height;
|
|
29
|
-
return windowWidth > windowHeight;
|
|
30
|
-
}
|
|
31
|
-
exports.isDesktop = isDesktop;
|
|
32
|
-
function assignFields(target, source, fields, skipUndefined = true) {
|
|
33
|
-
if (!target)
|
|
34
|
-
target = {};
|
|
35
|
-
Object.keys(source || {}).forEach(k => {
|
|
36
|
-
if (fields?.indexOf(k) > -1) {
|
|
37
|
-
if (!skipUndefined && !source[k])
|
|
38
|
-
return;
|
|
39
|
-
target[k] = source[k];
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
return target;
|
|
43
|
-
}
|
|
44
|
-
exports.assignFields = assignFields;
|
|
45
|
-
//# sourceMappingURL=utils.js.map
|
package/src/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
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