react-native-ui-lib 7.38.1 → 7.39.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/.eslintrc.js +7 -0
- package/package.json +1 -1
- package/scripts/docs/buildDocsCommon.js +17 -8
- package/src/components/avatar/avatar.api.json +1 -1
- package/src/components/avatar/index.d.ts +22 -20
- package/src/components/avatar/index.js +2 -1
- package/src/components/badge/index.js +10 -1
- package/src/components/button/ButtonConstants.d.ts +6 -0
- package/src/components/button/ButtonConstants.js +6 -0
- package/src/components/button/index.d.ts +18 -5
- package/src/components/button/index.js +17 -2
- package/src/components/card/index.js +3 -1
- package/src/components/checkbox/index.d.ts +1 -0
- package/src/components/checkbox/index.js +4 -1
- package/src/components/colorPalette/ColorPalette.api.json +103 -10
- package/src/components/colorPicker/colorPicker.api.json +107 -4
- package/src/components/colorSwatch/colorSwatch.api.json +161 -9
- package/src/components/connectionStatusBar/index.js +3 -1
- package/src/components/dateTimePicker/index.js +2 -1
- package/src/components/dateTimePicker/useOldApi.js +3 -1
- package/src/components/gridList/gridList.api.json +95 -5
- package/src/components/gridListItem/gridListItem.api.json +325 -19
- package/src/components/hint/hint.api.json +177 -19
- package/src/components/modal/index.js +3 -1
- package/src/components/pieChart/index.js +2 -1
- package/src/components/progressBar/progressBar.api.json +154 -5
- package/src/components/radioButton/index.js +8 -1
- package/src/components/skeletonView/index.js +3 -2
- package/src/components/stepper/stepper.api.json +226 -9
- package/src/components/svgImage/index.js +2 -1
- package/src/components/test.api.json +1 -33
- package/src/components/timeline/timeline.api.json +349 -61
- package/src/incubator/slider/SliderPresenter.js +11 -4
- package/src/incubator/toast/toast.api.json +127 -1
- package/src/services/HapticService.js +2 -1
- package/src/services/LogService.d.ts +7 -2
- package/src/services/LogService.js +5 -0
- /package/src/components/pieChart/{PieChart.api.json → pieChart.api.json} +0 -0
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
"description": "A single grid view/list item component",
|
|
5
5
|
"example": "https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/GridViewScreen.tsx",
|
|
6
6
|
"props": [
|
|
7
|
-
{
|
|
7
|
+
{
|
|
8
|
+
"name": "imageProps",
|
|
9
|
+
"type": "ImageProps",
|
|
10
|
+
"description": "Image props object for rendering an image item"
|
|
11
|
+
},
|
|
8
12
|
{
|
|
9
13
|
"name": "containerProps",
|
|
10
14
|
"type": "TouchableOpacityProps | ViewProps",
|
|
@@ -16,19 +20,71 @@
|
|
|
16
20
|
"description": "Custom GridListItem to be rendered in the GridView",
|
|
17
21
|
"required": true
|
|
18
22
|
},
|
|
19
|
-
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
{
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
{
|
|
24
|
+
"name": "itemSize",
|
|
25
|
+
"type": "number | ImageSize",
|
|
26
|
+
"description": "The item size"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "title",
|
|
30
|
+
"type": "string | React.ReactElement",
|
|
31
|
+
"description": "Title content text"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "titleTypography",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "Title content typography"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "titleColor",
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "Title content color"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "titleLines",
|
|
45
|
+
"type": "number",
|
|
46
|
+
"description": "Title content number of lines"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "subtitle",
|
|
50
|
+
"type": "string | React.ReactElement",
|
|
51
|
+
"description": "Subtitle content text"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "subtitleTypography",
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "Subtitle content typography"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "subtitleColor",
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "Subtitle content color"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "subtitleLines",
|
|
65
|
+
"type": "number",
|
|
66
|
+
"description": "Subtitle content number of lines"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "description",
|
|
70
|
+
"type": "string | React.ReactElement",
|
|
71
|
+
"description": "Description content text"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "descriptionTypography",
|
|
75
|
+
"type": "string",
|
|
76
|
+
"description": "Description content typography"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "descriptionColor",
|
|
80
|
+
"type": "string",
|
|
81
|
+
"description": "Description content color"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "descriptionLines",
|
|
85
|
+
"type": "number",
|
|
86
|
+
"description": "Description content number of lines"
|
|
87
|
+
},
|
|
32
88
|
{
|
|
33
89
|
"name": "overlayText",
|
|
34
90
|
"type": "boolean",
|
|
@@ -39,23 +95,273 @@
|
|
|
39
95
|
"type": "ViewStyle",
|
|
40
96
|
"description": "Custom container styling for inline text"
|
|
41
97
|
},
|
|
42
|
-
{
|
|
98
|
+
{
|
|
99
|
+
"name": "alignToStart",
|
|
100
|
+
"type": "boolean",
|
|
101
|
+
"description": "Should content be align to start",
|
|
102
|
+
"default": "center"
|
|
103
|
+
},
|
|
43
104
|
{
|
|
44
105
|
"name": "horizontalAlignment",
|
|
45
106
|
"type": "HorizontalAlignment",
|
|
46
107
|
"description": "Content horizontal alignment",
|
|
47
108
|
"default": "center"
|
|
48
109
|
},
|
|
49
|
-
{
|
|
50
|
-
|
|
110
|
+
{
|
|
111
|
+
"name": "containerStyle",
|
|
112
|
+
"type": "ViewStyle",
|
|
113
|
+
"description": "Custom container style"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "onPress",
|
|
117
|
+
"type": "TouchableOpacityProps['onPress']",
|
|
118
|
+
"description": "The item's action handler"
|
|
119
|
+
},
|
|
51
120
|
{
|
|
52
121
|
"name": "renderOverlay",
|
|
53
122
|
"type": "() => React.ReactElement",
|
|
54
123
|
"description": "Renders an overlay on top of the image"
|
|
55
124
|
},
|
|
56
|
-
{
|
|
125
|
+
{
|
|
126
|
+
"name": "testID",
|
|
127
|
+
"type": "string",
|
|
128
|
+
"description": "Test ID for component"
|
|
129
|
+
}
|
|
57
130
|
],
|
|
58
131
|
"snippet": [
|
|
59
132
|
"<GridListItem key={index$1} title={'Title'$2} subtitle={'Subtitle'$3} description={'Description goes here'$4}/>"
|
|
60
|
-
]
|
|
133
|
+
],
|
|
134
|
+
"docs": {
|
|
135
|
+
"hero": {
|
|
136
|
+
"title": "GridListItem",
|
|
137
|
+
"description": "Grid list items represent individual items in a grid view.\nEach item can display optional text below or on top the image",
|
|
138
|
+
"type": "hero",
|
|
139
|
+
"layout": "horizontal",
|
|
140
|
+
"content": [
|
|
141
|
+
{
|
|
142
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/GridListItem/gridListItem_cover.png"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
"tabs": [
|
|
147
|
+
{
|
|
148
|
+
"title": "Overview",
|
|
149
|
+
"sections": [
|
|
150
|
+
{
|
|
151
|
+
"type": "table",
|
|
152
|
+
"columns": [
|
|
153
|
+
"Property",
|
|
154
|
+
"Preview"
|
|
155
|
+
],
|
|
156
|
+
"items": [
|
|
157
|
+
{
|
|
158
|
+
"title": "Media Item",
|
|
159
|
+
"content": [
|
|
160
|
+
{
|
|
161
|
+
"props": {
|
|
162
|
+
"itemSize": 124,
|
|
163
|
+
"title": "Title",
|
|
164
|
+
"subtitle": "Subtitle"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"title": "Avatar",
|
|
171
|
+
"content": [
|
|
172
|
+
{
|
|
173
|
+
"props": {
|
|
174
|
+
"itemSize": 124,
|
|
175
|
+
"title": "Title",
|
|
176
|
+
"subtitle": "Subtitle",
|
|
177
|
+
"avatar": {
|
|
178
|
+
"source": {
|
|
179
|
+
"uri": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/icons/icon%20examples%20for%20docs/avatar_1.jpg"
|
|
180
|
+
},
|
|
181
|
+
"size": "XLarge"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"title": "Custom component",
|
|
189
|
+
"description": "(renderCustomItem)",
|
|
190
|
+
"content": [
|
|
191
|
+
{
|
|
192
|
+
"props": {
|
|
193
|
+
"itemSize": 124,
|
|
194
|
+
"title": "Title",
|
|
195
|
+
"subtitle": "Subtitle",
|
|
196
|
+
"thumbnail": {
|
|
197
|
+
"source": {
|
|
198
|
+
"uri": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/icons/icon%20examples%20for%20docs/CustomComponent_Square.png"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
"title": "Media Types"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"type": "table",
|
|
210
|
+
"columns": [
|
|
211
|
+
"Property",
|
|
212
|
+
"Preview"
|
|
213
|
+
],
|
|
214
|
+
"items": [
|
|
215
|
+
{
|
|
216
|
+
"title": "Text under image (default)",
|
|
217
|
+
"content": [
|
|
218
|
+
{
|
|
219
|
+
"props": {
|
|
220
|
+
"itemSize": 124,
|
|
221
|
+
"title": "Title",
|
|
222
|
+
"subtitle": "Subtitle"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"title": "OverlayText",
|
|
229
|
+
"content": [
|
|
230
|
+
{
|
|
231
|
+
"props": {
|
|
232
|
+
"itemSize": 124,
|
|
233
|
+
"title": "Title",
|
|
234
|
+
"subtitle": "Subtitle",
|
|
235
|
+
"overlayText": true
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"title": "Layout"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"type": "table",
|
|
245
|
+
"columns": [
|
|
246
|
+
"Property",
|
|
247
|
+
"Preview"
|
|
248
|
+
],
|
|
249
|
+
"items": [
|
|
250
|
+
{
|
|
251
|
+
"title": "Title (default)",
|
|
252
|
+
"content": [
|
|
253
|
+
{
|
|
254
|
+
"props": {
|
|
255
|
+
"itemSize": 124,
|
|
256
|
+
"title": "Title"
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"title": "Subtitle",
|
|
263
|
+
"content": [
|
|
264
|
+
{
|
|
265
|
+
"props": {
|
|
266
|
+
"itemSize": 124,
|
|
267
|
+
"title": "Title",
|
|
268
|
+
"subtitle": "Subtitle"
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
]
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"title": "Description",
|
|
275
|
+
"content": [
|
|
276
|
+
{
|
|
277
|
+
"props": {
|
|
278
|
+
"itemSize": 124,
|
|
279
|
+
"title": "Title",
|
|
280
|
+
"subtitle": "Subtitle",
|
|
281
|
+
"description": "Description"
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
]
|
|
285
|
+
}
|
|
286
|
+
],
|
|
287
|
+
"title": "Text Types"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"type": "table",
|
|
291
|
+
"columns": [
|
|
292
|
+
"Property",
|
|
293
|
+
"Preview"
|
|
294
|
+
],
|
|
295
|
+
"items": [
|
|
296
|
+
{
|
|
297
|
+
"title": "Text alignment",
|
|
298
|
+
"description": "horizontalAlignment",
|
|
299
|
+
"content": [
|
|
300
|
+
{
|
|
301
|
+
"props": {
|
|
302
|
+
"itemSize": 124,
|
|
303
|
+
"title": "Title",
|
|
304
|
+
"horizontalAlignment": "center"
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
]
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"title": "Max lines number",
|
|
311
|
+
"description": "markdown:\ntitleLines
\nsubtitleLines
\ndescriptionLines ",
|
|
312
|
+
"content": [
|
|
313
|
+
{
|
|
314
|
+
"props": {
|
|
315
|
+
"itemSize": 124,
|
|
316
|
+
"title": "This text shows a long text example",
|
|
317
|
+
"subtitle": "This text shows a long text example",
|
|
318
|
+
"description": "This text shows a long text example",
|
|
319
|
+
"titleLines": 2,
|
|
320
|
+
"subtitleLines": 2,
|
|
321
|
+
"descriptionLines": 2
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"title": "Text color",
|
|
328
|
+
"description": "titleColor
\nsubtitleColor
\ndescriptionColor",
|
|
329
|
+
"content": [
|
|
330
|
+
{
|
|
331
|
+
"props": {
|
|
332
|
+
"itemSize": 124,
|
|
333
|
+
"title": "Title",
|
|
334
|
+
"subtitle": "Subtitle",
|
|
335
|
+
"description": "Description",
|
|
336
|
+
"titleColor": "#9A27D5",
|
|
337
|
+
"subtitleColor": "#116DFF",
|
|
338
|
+
"descriptionColor": "#008563"
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
]
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"title": "Text styles",
|
|
345
|
+
"description": "titleTypography \nsubtitleTypography \ndescriptionTypography",
|
|
346
|
+
"content": [
|
|
347
|
+
{
|
|
348
|
+
"props": {
|
|
349
|
+
"itemSize": 124,
|
|
350
|
+
"title": "Title",
|
|
351
|
+
"subtitle": "Subtitle",
|
|
352
|
+
"description": "Description",
|
|
353
|
+
"titleTypography": "headingL",
|
|
354
|
+
"subtitleTypography": "bodyMedium",
|
|
355
|
+
"descriptionTypography": "bodyMedium"
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
]
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
"title": "Styling Options"
|
|
362
|
+
}
|
|
363
|
+
]
|
|
364
|
+
}
|
|
365
|
+
]
|
|
366
|
+
}
|
|
61
367
|
}
|
|
@@ -4,14 +4,40 @@
|
|
|
4
4
|
"description": "Hint component for displaying a tooltip over wrapped component",
|
|
5
5
|
"note": "You can either wrap a component or pass a specific targetFrame",
|
|
6
6
|
"example": "https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/HintsScreen.tsx",
|
|
7
|
-
"images": [
|
|
7
|
+
"images": [
|
|
8
|
+
"https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/Hint/Hint.gif?raw=true"
|
|
9
|
+
],
|
|
8
10
|
"props": [
|
|
9
|
-
{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
{
|
|
11
|
+
{
|
|
12
|
+
"name": "visible",
|
|
13
|
+
"type": "boolean",
|
|
14
|
+
"description": "Control the visibility of the hint"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "color",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "The hint background color"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "message",
|
|
23
|
+
"type": "string | ReactElement",
|
|
24
|
+
"description": "The hint message"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "messageStyle",
|
|
28
|
+
"type": "TextStyle",
|
|
29
|
+
"description": "The hint message custom style"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "icon",
|
|
33
|
+
"type": "ImageSourcePropType",
|
|
34
|
+
"description": "Icon to show next to the hint's message"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "iconStyle",
|
|
38
|
+
"type": "ImageStyle",
|
|
39
|
+
"description": "The icon's style"
|
|
40
|
+
},
|
|
15
41
|
{
|
|
16
42
|
"name": "position",
|
|
17
43
|
"type": "TOP | BOTTOM",
|
|
@@ -23,12 +49,36 @@
|
|
|
23
49
|
"type": "{x?: number, y?: number, width?: number, height?: number}",
|
|
24
50
|
"description": "Provide custom target position instead of wrapping a child"
|
|
25
51
|
},
|
|
26
|
-
{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
{
|
|
52
|
+
{
|
|
53
|
+
"name": "useModal",
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"description": "Open the hint using a Modal component"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "useSideTip",
|
|
59
|
+
"type": "boolean",
|
|
60
|
+
"description": "Show side tips instead of the middle tip"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "borderRadius",
|
|
64
|
+
"type": "number",
|
|
65
|
+
"description": "The hint's border radius"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "edgeMargins",
|
|
69
|
+
"type": "number",
|
|
70
|
+
"description": "Hint margins from screen edges"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "offset",
|
|
74
|
+
"type": "number",
|
|
75
|
+
"description": "Hint offset from target"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "onPress",
|
|
79
|
+
"type": "() => void",
|
|
80
|
+
"description": "Callback for Hint press"
|
|
81
|
+
},
|
|
32
82
|
{
|
|
33
83
|
"name": "onBackgroundPress",
|
|
34
84
|
"type": "(event: GestureResponderEvent) => void",
|
|
@@ -39,20 +89,128 @@
|
|
|
39
89
|
"type": "string",
|
|
40
90
|
"description": "Color for background overlay (require onBackgroundPress)"
|
|
41
91
|
},
|
|
42
|
-
{
|
|
92
|
+
{
|
|
93
|
+
"name": "containerWidth",
|
|
94
|
+
"type": "number",
|
|
95
|
+
"description": "The hint container width"
|
|
96
|
+
},
|
|
43
97
|
{
|
|
44
98
|
"name": "customContent",
|
|
45
99
|
"type": "JSX.Element",
|
|
46
100
|
"description": "Custom content element to render inside the hint container"
|
|
47
101
|
},
|
|
48
|
-
{
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
102
|
+
{
|
|
103
|
+
"name": "removePaddings",
|
|
104
|
+
"type": "boolean",
|
|
105
|
+
"description": "Remove all hint's paddings"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "enableShadow",
|
|
109
|
+
"type": "boolean",
|
|
110
|
+
"description": "Enable shadow (for hint with white background only)"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "testID",
|
|
114
|
+
"type": "string",
|
|
115
|
+
"description": "The hint's test identifier"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "style",
|
|
119
|
+
"type": "ViewStyle",
|
|
120
|
+
"description": "Additional styling"
|
|
121
|
+
}
|
|
52
122
|
],
|
|
53
123
|
"snippet": [
|
|
54
124
|
"<Hint visible={isVisible$1} message={'Message goes here'$2} color={Colors.red30$3} onBackgroundPress={() => setVisible(false)$4}>",
|
|
55
125
|
" <Text>Text to hint</Text>",
|
|
56
126
|
"</Hint>"
|
|
57
|
-
]
|
|
127
|
+
],
|
|
128
|
+
"docs": {
|
|
129
|
+
"hero": {
|
|
130
|
+
"title": "Hint",
|
|
131
|
+
"description": "A hint is used to draw the user’s attention to a specific part of the interface, providing information or encouraging them to take action.\nHints are typically triggered automatically at the right moment in the user journey but can also appear in response to user actions.\n\nThe hint should disappear when the user taps anywhere on the screen.",
|
|
132
|
+
"type": "hero",
|
|
133
|
+
"layout": "horizontal",
|
|
134
|
+
"content": [
|
|
135
|
+
{
|
|
136
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Hint/hint_cover.png"
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
"tabs": [
|
|
141
|
+
{
|
|
142
|
+
"title": "Overview",
|
|
143
|
+
"sections": [
|
|
144
|
+
{
|
|
145
|
+
"type": "section",
|
|
146
|
+
"title": "Usage Examples",
|
|
147
|
+
"content": [
|
|
148
|
+
{
|
|
149
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Hint/hint_usage.png"
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"type": "table",
|
|
155
|
+
"columns": [
|
|
156
|
+
"Alignment",
|
|
157
|
+
"Top",
|
|
158
|
+
"Bottom"
|
|
159
|
+
],
|
|
160
|
+
"items": [
|
|
161
|
+
{
|
|
162
|
+
"title": "Left"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"title": "Center"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"title": "Right"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"title": "Alignment",
|
|
172
|
+
"description": "The Hint component supports different alignments, so it works well with elements anywhere on the screen."
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"type": "table",
|
|
176
|
+
"columns": [
|
|
177
|
+
"Prop",
|
|
178
|
+
"Preview"
|
|
179
|
+
],
|
|
180
|
+
"items": [
|
|
181
|
+
{
|
|
182
|
+
"title": "None"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"title": "Icon"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"title": "Accessories"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"type": "section",
|
|
192
|
+
"title": "Position",
|
|
193
|
+
"layout": "horizontal",
|
|
194
|
+
"content": [
|
|
195
|
+
{
|
|
196
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Hint/hint_position.png"
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"description": "markdown:\nDistance \nKeep a distance of S2 from the component the hint is pointing at."
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"type": "section",
|
|
203
|
+
"title": "Spec",
|
|
204
|
+
"layout": "horizontal",
|
|
205
|
+
"content": [
|
|
206
|
+
{
|
|
207
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Hint/hint_spec.png"
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"description": "markdown:\nThe Hint component adjusts to its content. \nMax width: screen width, S4 margins."
|
|
211
|
+
}
|
|
212
|
+
]
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
}
|
|
58
216
|
}
|
|
@@ -6,6 +6,7 @@ import { BlurViewPackage } from "../../optionalDependencies";
|
|
|
6
6
|
import { Constants, asBaseComponent } from "../../commons/new";
|
|
7
7
|
import TopBar, { ModalTopBarProps } from "./TopBar";
|
|
8
8
|
import View from "../../components/view";
|
|
9
|
+
import { LogService } from "../../services";
|
|
9
10
|
const BlurView = BlurViewPackage?.BlurView;
|
|
10
11
|
export { ModalTopBarProps };
|
|
11
12
|
/**
|
|
@@ -20,7 +21,8 @@ class Modal extends Component {
|
|
|
20
21
|
constructor(props) {
|
|
21
22
|
super(props);
|
|
22
23
|
if (props.enableModalBlur && !BlurView) {
|
|
23
|
-
|
|
24
|
+
// eslint-disable-next-line max-len
|
|
25
|
+
LogService.error(`RNUILib Modal's "enableModalBlur" prop requires installing "@react-native-community/blur" dependency`);
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
28
|
renderTouchableOverlay() {
|
|
@@ -6,6 +6,7 @@ const {
|
|
|
6
6
|
Svg,
|
|
7
7
|
Path
|
|
8
8
|
} = SvgPackage;
|
|
9
|
+
import { LogService } from "../../services";
|
|
9
10
|
const DEFAULT_DIAMETER = 144;
|
|
10
11
|
const PieChart = props => {
|
|
11
12
|
const {
|
|
@@ -14,7 +15,7 @@ const PieChart = props => {
|
|
|
14
15
|
...others
|
|
15
16
|
} = props;
|
|
16
17
|
if (!Svg || !Path) {
|
|
17
|
-
|
|
18
|
+
LogService.error(`RNUILib PieChart requires installing "@react-native-svg" dependency`);
|
|
18
19
|
return null;
|
|
19
20
|
}
|
|
20
21
|
const renderPieSegments = () => {
|