@shoutem/ui 5.4.0 → 5.5.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.
@@ -1,200 +0,0 @@
1
- import React from 'react';
2
- import { Button } from '../../components/Button';
3
- import { Icon } from '../../components/Icon';
4
- import { Image } from '../../components/Image';
5
- import { Row } from '../../components/Row';
6
- import { Caption, Subtitle, Text } from '../../components/Text';
7
- import { View } from '../../components/View';
8
- import { Stage } from './Stage';
9
-
10
- export function Rows() {
11
- return (
12
- <View styleName="vertical collapsed">
13
- <Stage title="Small list item">
14
- <Row>
15
- <Text numberOfLines={1}>
16
- Portland ugh fashion axe Helvetica, YOLO Echo Park Austin gastropub
17
- roof party.
18
- </Text>
19
- </Row>
20
- </Stage>
21
-
22
- <Stage title="Small list item + Avatar thumbnail">
23
- <Row styleName="small">
24
- <Image
25
- styleName="small-avatar"
26
- source={{
27
- uri:
28
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-9.png',
29
- }}
30
- />
31
- <Text>Add comment</Text>
32
- </Row>
33
- </Stage>
34
-
35
- <Stage title="Small list item + Icon">
36
- <Row styleName="small">
37
- <Icon name="add-to-favorites-off" />
38
- <Text>Add to favorites</Text>
39
- </Row>
40
- </Stage>
41
-
42
- <Stage title="Small list item + Icon + Right Arrow">
43
- <Row styleName="small">
44
- <Icon name="web" />
45
- <Text>About</Text>
46
- <Icon styleName="disclosure" name="right-arrow" />
47
- </Row>
48
- </Stage>
49
-
50
- <Stage title="Small list item + Icon + Description">
51
- <Row styleName="small">
52
- <Icon name="laptop" />
53
- <View styleName="vertical">
54
- <Subtitle>Bridges Rock Gym</Subtitle>
55
- <Text numberOfLines={1}>
56
- www.example.com/deal/link/that-is-really-long
57
- </Text>
58
- </View>
59
- <Icon styleName="disclosure" name="right-arrow" />
60
- </Row>
61
- </Stage>
62
-
63
- <Stage title="Small list item + Avatar + Description + Caption">
64
- <Row>
65
- <Image
66
- styleName="small-avatar top"
67
- source={{
68
- uri:
69
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-11.png',
70
- }}
71
- />
72
- <View styleName="vertical">
73
- <View styleName="horizontal space-between">
74
- <Subtitle styleName="">Dustin Malone</Subtitle>
75
- <Caption>20 minutes ago</Caption>
76
- </View>
77
- <Text styleName="multiline">
78
- Banjo tote bag bicycle rights, High Life sartorial cray craft beer
79
- whatever street art fap. Hashtag typewriter banh mi, squid
80
- keffiyeh High.
81
- </Text>
82
- </View>
83
- </Row>
84
- </Stage>
85
-
86
- <Stage title="Medium list item">
87
- <Row>
88
- <Image
89
- styleName="small rounded-corners"
90
- source={{
91
- uri:
92
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-10.png',
93
- }}
94
- />
95
- <Subtitle styleName="top">
96
- Portland ugh fashion axe Helvetica, YOLO Echo Park Austin gastropub
97
- roof party.
98
- </Subtitle>
99
- </Row>
100
- </Stage>
101
-
102
- <Stage title="Medium list item + Description">
103
- <Row>
104
- <Image
105
- styleName="small rounded-corners"
106
- source={{
107
- uri:
108
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-6.png',
109
- }}
110
- />
111
- <View styleName="vertical stretch space-between">
112
- <Subtitle>
113
- Fact Check: Wisconsin Music, Film & Photography Debate
114
- </Subtitle>
115
- <Caption>20 hours ago</Caption>
116
- </View>
117
- </Row>
118
- </Stage>
119
-
120
- <Stage title="Medium list item + Description + Icon">
121
- <Row>
122
- <Image
123
- styleName="small rounded-corners"
124
- source={{
125
- uri:
126
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-3.png',
127
- }}
128
- />
129
- <View styleName="vertical stretch space-between">
130
- <Subtitle>Wilco Cover David Bowie&#39;s "Space Oddity"</Subtitle>
131
- <Caption>June 21 · 20:00</Caption>
132
- </View>
133
- <Button styleName="right-icon">
134
- <Icon name="add-event" />
135
- </Button>
136
- </Row>
137
- </Stage>
138
-
139
- <Stage title="Medium list item + Description + Icon + Label">
140
- <Row>
141
- <Image
142
- styleName="small rounded-corners"
143
- source={{
144
- uri:
145
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-11.png',
146
- }}
147
- />
148
- <View styleName="vertical stretch space-between">
149
- <Subtitle>Family Safari Vacation To The Home Of The Gods</Subtitle>
150
- <View styleName="horizontal">
151
- <Subtitle styleName="md-gutter-right">$120.00</Subtitle>
152
- <Caption styleName="line-through">$150.00</Caption>
153
- </View>
154
- </View>
155
- <Button styleName="right-icon">
156
- <Icon name="add-to-cart" />
157
- </Button>
158
- </Row>
159
- </Stage>
160
-
161
- <Stage title="Medium list item + Notification dot">
162
- <Row>
163
- <View styleName="notification-dot" />
164
- <Image
165
- styleName="small rounded-corners"
166
- source={{
167
- uri:
168
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-2.png',
169
- }}
170
- />
171
- <View styleName="vertical stretch space-between">
172
- <Subtitle>
173
- Fact Check: Wisconsin Music, Film & Photography Debate
174
- </Subtitle>
175
- <Caption>20 hours ago</Caption>
176
- </View>
177
- </Row>
178
- </Stage>
179
-
180
- <Stage title="Medium list item + Description + Label">
181
- <Row>
182
- <Image
183
- styleName="medium rounded-corners"
184
- source={{
185
- uri:
186
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-1.png',
187
- }}
188
- />
189
- <View styleName="vertical stretch space-between">
190
- <Subtitle>Take A Romantic Break In A Boutique Hotel</Subtitle>
191
- <View styleName="horizontal space-between">
192
- <Caption>3 days ago</Caption>
193
- <Caption>12:16</Caption>
194
- </View>
195
- </View>
196
- </Row>
197
- </Stage>
198
- </View>
199
- );
200
- }
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { Spinner } from '../../components/Spinner';
3
- import { View } from '../../components/View';
4
- import { Stage } from './Stage';
5
-
6
- export function Spinners() {
7
- return (
8
- <View styleName="vertical collapsed">
9
- <Stage title="Spinner">
10
- <Spinner />
11
- </Stage>
12
- </View>
13
- );
14
- }
@@ -1,46 +0,0 @@
1
- import React from 'react';
2
- import { Text, View } from 'react-native';
3
- import PropTypes from 'prop-types';
4
-
5
- function Stage({ title, children }) {
6
- // eslint-disable-next-line no-use-before-define
7
- const { container, stage, titleStyle } = styles;
8
-
9
- return (
10
- <View style={container}>
11
- <Text style={titleStyle}>{title}</Text>
12
- <View style={stage}>{children}</View>
13
- </View>
14
- );
15
- }
16
-
17
- Stage.propTypes = {
18
- children: PropTypes.node,
19
- title: PropTypes.string,
20
- };
21
-
22
- Stage.defaultProps = {
23
- children: undefined,
24
- title: undefined,
25
- };
26
-
27
- const styles = {
28
- container: {
29
- marginVertical: 24,
30
- flexDirection: 'column',
31
- },
32
- titleStyle: {
33
- fontSize: 18,
34
- color: '#444f6c',
35
- margin: 8,
36
- },
37
- stage: {
38
- paddingVertical: 40,
39
- flexDirection: 'column',
40
- alignItems: 'center',
41
- justifyContent: 'center',
42
- backgroundColor: '#f5f6f7',
43
- },
44
- };
45
-
46
- export { Stage };
@@ -1,324 +0,0 @@
1
- import React from 'react';
2
- import { Button } from '../../components/Button';
3
- import { Icon } from '../../components/Icon';
4
- import { Image } from '../../components/Image';
5
- import { ImageBackground } from '../../components/ImageBackground';
6
- import { Overlay } from '../../components/Overlay';
7
- import { Caption, Heading, Subtitle, Text, Title } from '../../components/Text';
8
- import { Tile } from '../../components/Tile';
9
- import { View } from '../../components/View';
10
- import { Stage } from './Stage';
11
-
12
- export function Tiles() {
13
- return (
14
- <View styleName="vertical collapsed">
15
- <Stage title="Tile">
16
- <Tile styleName="small clear">
17
- <Image
18
- styleName="medium-square"
19
- source={{
20
- uri:
21
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-12.png',
22
- }}
23
- />
24
- <View styleName="content">
25
- <Subtitle numberOfLines={2}>
26
- When The Morning Dawns - DJ Silver Sample Album
27
- </Subtitle>
28
- <Caption>20 hours ago</Caption>
29
- </View>
30
- </Tile>
31
- </Stage>
32
-
33
- <Stage title="Tile + Icon">
34
- <Tile styleName="small clear">
35
- <ImageBackground
36
- styleName="medium-square"
37
- source={{
38
- uri:
39
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-2.png',
40
- }}
41
- >
42
- <Overlay styleName="rounded-small">
43
- <Icon name="play" />
44
- </Overlay>
45
- </ImageBackground>
46
- <View styleName="content">
47
- <Subtitle numberOfLines={2}>
48
- When The Morning Dawns - DJ Silver Sample Album
49
- </Subtitle>
50
- <Caption>20 hours ago</Caption>
51
- </View>
52
- </Tile>
53
- </Stage>
54
-
55
- <Stage title="Large (featured) tile">
56
- <ImageBackground
57
- styleName="featured"
58
- source={{
59
- uri:
60
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-4.png',
61
- }}
62
- >
63
- <Tile>
64
- <Title styleName="md-gutter-bottom">
65
- MIKE PATTON TEAMING WITH JOHN KAADA FOR COLLAB ALBUM BACTERIA CULT
66
- </Title>
67
- <Caption>Sophia Jackson 21 hours ago</Caption>
68
- </Tile>
69
- </ImageBackground>
70
- </Stage>
71
-
72
- <Stage title="Large (featured) tile + Button + Sale tag">
73
- <ImageBackground
74
- styleName="featured"
75
- source={{
76
- uri:
77
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-11.png',
78
- }}
79
- >
80
- <Tile>
81
- <Overlay styleName="image-overlay">
82
- <Heading>-20%</Heading>
83
- </Overlay>
84
- <Title styleName="md-gutter-top">
85
- COOL BLACK AND WHITE STYLISH WATCHES
86
- </Title>
87
- <Subtitle styleName="line-through sm-gutter-top">$280.00</Subtitle>
88
- <Heading>$250.00</Heading>
89
- <Button styleName="md-gutter-top">
90
- <Icon name="cart" />
91
- <Text>ADD TO BASKET</Text>
92
- </Button>
93
- </Tile>
94
- </ImageBackground>
95
- </Stage>
96
-
97
- <Stage title="Large (featured) tile + Button">
98
- <ImageBackground
99
- styleName="featured"
100
- source={{
101
- uri:
102
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-9.png',
103
- }}
104
- >
105
- <Tile>
106
- <Title>MIKE PATTON TEAMING WITH JOHN KAADA</Title>
107
- <Subtitle styleName="line-through sm-gutter-top">150.00</Subtitle>
108
- <Heading>99.99</Heading>
109
- <Button styleName="md-gutter-top">
110
- <Text>CLAIM COUPON</Text>
111
- </Button>
112
- </Tile>
113
- </ImageBackground>
114
- </Stage>
115
-
116
- <Stage title="Large list item">
117
- <Tile>
118
- <Image
119
- styleName="large-banner"
120
- source={{
121
- uri:
122
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-5.png',
123
- }}
124
- />
125
- <View styleName="content">
126
- <Title>MAUI BY AIR THE BEST WAY AROUND THE ISLAND</Title>
127
- <View styleName="horizontal space-between">
128
- <Caption>1 hour ago</Caption>
129
- <Caption>15:34</Caption>
130
- </View>
131
- </View>
132
- </Tile>
133
- </Stage>
134
-
135
- <Stage title="Large list item + Icon + Timestamp">
136
- <Tile>
137
- <ImageBackground
138
- styleName="large-banner"
139
- source={{
140
- uri:
141
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-7.png',
142
- }}
143
- >
144
- <Overlay styleName="rounded-small">
145
- <Icon name="play" />
146
- </Overlay>
147
- </ImageBackground>
148
- <View styleName="content">
149
- <Title>MAUI BY AIR THE BEST WAY AROUND THE ISLAND</Title>
150
- <View styleName="horizontal space-between">
151
- <Caption>1 hour ago</Caption>
152
- <Caption>15:34</Caption>
153
- </View>
154
- </View>
155
- </Tile>
156
- </Stage>
157
-
158
- <Stage title="Large list item + Price tag">
159
- <ImageBackground
160
- styleName="large-banner"
161
- source={{
162
- uri:
163
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-3.png',
164
- }}
165
- >
166
- <Tile>
167
- <Title styleName="md-gutter-bottom">
168
- SMOKED SALMON, CLASSIC CONDIMENTS, BRIOCHE
169
- </Title>
170
- <Overlay>
171
- <Subtitle styleName="sm-gutter-horizontal">$18.30</Subtitle>
172
- </Overlay>
173
- </Tile>
174
- </ImageBackground>
175
- </Stage>
176
-
177
- <Stage title="Large list item + Action icon">
178
- <ImageBackground
179
- styleName="large-banner"
180
- source={{
181
- uri:
182
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-3.png',
183
- }}
184
- >
185
- <Tile>
186
- <View virtual styleName="actions">
187
- <Button styleName="tight clear">
188
- <Icon name="add-to-favorites-off" />
189
- </Button>
190
- </View>
191
- <Title>HOW TO MAINTAIN YOUR MENTAL HEALTH IN 2016</Title>
192
- <Caption>6557 Americo Hills Apt. 118</Caption>
193
- </Tile>
194
- </ImageBackground>
195
- </Stage>
196
-
197
- <Stage title="Detail square + Price tag">
198
- <ImageBackground
199
- styleName="large-square"
200
- source={{
201
- uri:
202
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-3.png',
203
- }}
204
- >
205
- <Tile>
206
- <Title styleName="md-gutter-bottom">
207
- SMOKED SALMON, CLASSIC CONDIMENTS, BRIOCHE
208
- </Title>
209
- <Overlay>
210
- <Subtitle styleName="sm-gutter-horizontal">$18.30</Subtitle>
211
- </Overlay>
212
- </Tile>
213
- </ImageBackground>
214
- </Stage>
215
-
216
- <Stage title="Detail square + Button">
217
- <ImageBackground
218
- styleName="large-square"
219
- source={{
220
- uri:
221
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-9.png',
222
- }}
223
- >
224
- <Tile>
225
- <Title>MIKE PATTON TEAMING WITH JOHN KAADA</Title>
226
- <Subtitle styleName="line-through sm-gutter-top">150.00</Subtitle>
227
- <Heading>99.99</Heading>
228
- <Button styleName="md-gutter-top">
229
- <Text>CLAIM COUPON</Text>
230
- </Button>
231
- </Tile>
232
- </ImageBackground>
233
- </Stage>
234
-
235
- <Stage title="Detail square + Button + Sale tag">
236
- <ImageBackground
237
- styleName="large-square"
238
- source={{
239
- uri:
240
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-11.png',
241
- }}
242
- >
243
- <Tile>
244
- <Overlay styleName="image-overlay">
245
- <Heading>-20%</Heading>
246
- </Overlay>
247
- <Title styleName="md-gutter-top">
248
- COOL BLACK AND WHITE STYLISH WATCHES
249
- </Title>
250
- <Subtitle styleName="line-through sm-gutter-top">$280.00</Subtitle>
251
- <Heading>$250.00</Heading>
252
- <Button styleName="md-gutter-top">
253
- <Icon name="cart" />
254
- <Text>ADD TO BASKET</Text>
255
- </Button>
256
- </Tile>
257
- </ImageBackground>
258
- </Stage>
259
-
260
- <Stage title="Detail large + Price tag">
261
- <ImageBackground
262
- styleName="large-portrait"
263
- source={{
264
- uri:
265
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-3.png',
266
- }}
267
- >
268
- <Tile>
269
- <Title styleName="md-gutter-bottom">
270
- SMOKED SALMON, CLASSIC CONDIMENTS, BRIOCHE
271
- </Title>
272
- <Overlay>
273
- <Subtitle styleName="sm-gutter-horizontal">$18.30</Subtitle>
274
- </Overlay>
275
- </Tile>
276
- </ImageBackground>
277
- </Stage>
278
-
279
- <Stage title="Detail large + Button">
280
- <ImageBackground
281
- styleName="large-portrait"
282
- source={{
283
- uri:
284
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-9.png',
285
- }}
286
- >
287
- <Tile>
288
- <Title>MIKE PATTON TEAMING WITH JOHN KAADA</Title>
289
- <Subtitle styleName="line-through sm-gutter-top">150.00</Subtitle>
290
- <Heading>99.99</Heading>
291
- <Button styleName="md-gutter-top">
292
- <Text>CLAIM COUPON</Text>
293
- </Button>
294
- </Tile>
295
- </ImageBackground>
296
- </Stage>
297
-
298
- <Stage title="Detail large + Button + Sale tag">
299
- <ImageBackground
300
- styleName="large-portrait"
301
- source={{
302
- uri:
303
- 'https://shoutem.github.io/img/ui-toolkit/examples/image-11.png',
304
- }}
305
- >
306
- <Tile>
307
- <Overlay styleName="image-overlay">
308
- <Heading>-20%</Heading>
309
- </Overlay>
310
- <Title styleName="md-gutter-top">
311
- COOL BLACK AND WHITE STYLISH WATCHES
312
- </Title>
313
- <Subtitle styleName="line-through sm-gutter-top">$280.00</Subtitle>
314
- <Heading>$250.00</Heading>
315
- <Button styleName="md-gutter-top">
316
- <Icon name="cart" />
317
- <Text>ADD TO BASKET</Text>
318
- </Button>
319
- </Tile>
320
- </ImageBackground>
321
- </Stage>
322
- </View>
323
- );
324
- }
@@ -1,30 +0,0 @@
1
- import React from 'react';
2
- import { Caption, Heading, Subtitle, Text, Title } from '../../components/Text';
3
- import { View } from '../../components/View';
4
- import { Stage } from './Stage';
5
-
6
- export function Typography() {
7
- return (
8
- <View styleName="vertical collapsed">
9
- <Stage title="Heading">
10
- <Heading>Mobile App Creator</Heading>
11
- </Stage>
12
-
13
- <Stage title="Title">
14
- <Title>MOBILE APP CREATOR</Title>
15
- </Stage>
16
-
17
- <Stage title="Subtitle">
18
- <Subtitle>Mobile App Creator</Subtitle>
19
- </Stage>
20
-
21
- <Stage title="Text">
22
- <Text>Mobile App Creator</Text>
23
- </Stage>
24
-
25
- <Stage title="Caption">
26
- <Caption>Mobile App Creator</Caption>
27
- </Stage>
28
- </View>
29
- );
30
- }
@@ -1,35 +0,0 @@
1
- import React from 'react';
2
- import { Video } from '../../components/Video';
3
- import { View } from '../../components/View';
4
- import { Stage } from './Stage';
5
-
6
- export function Videos() {
7
- return (
8
- <View styleName="vertical collapsed">
9
- <Stage title="YouTube video">
10
- <Video
11
- source={{ uri: 'https://www.youtube.com/embed/2zuisMXzyaI' }}
12
- width={320}
13
- height={180}
14
- />
15
- </Stage>
16
- <Stage title="Vimeo video">
17
- <Video
18
- source={{ uri: 'https://vimeo.com/182267614' }}
19
- width={320}
20
- height={180}
21
- />
22
- </Stage>
23
- <Stage title="Stream video">
24
- <Video
25
- source={{
26
- uri:
27
- 'https://archive.org/download/Sintel/sintel-2048-stereo_512kb.mp4',
28
- }}
29
- width={320}
30
- height={180}
31
- />
32
- </Stage>
33
- </View>
34
- );
35
- }
@@ -1 +0,0 @@
1
- export { Examples } from './Examples';