react-native-ui-lib 7.38.1-snapshot.6355 → 7.38.1-snapshot.6356
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
CHANGED
|
@@ -2,12 +2,24 @@
|
|
|
2
2
|
"name": "GridList",
|
|
3
3
|
"category": "lists",
|
|
4
4
|
"description": "An auto-generated grid list that calculate item size according to given props",
|
|
5
|
-
"extends": [
|
|
6
|
-
|
|
5
|
+
"extends": [
|
|
6
|
+
"FlatList"
|
|
7
|
+
],
|
|
8
|
+
"extendsLink": [
|
|
9
|
+
"https://reactnative.dev/docs/flatlist"
|
|
10
|
+
],
|
|
7
11
|
"example": "https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/GridListScreen.tsx",
|
|
8
12
|
"props": [
|
|
9
|
-
{
|
|
10
|
-
|
|
13
|
+
{
|
|
14
|
+
"name": "numColumns",
|
|
15
|
+
"type": "number",
|
|
16
|
+
"description": "Number of items to show in a row (ignored when passing maxItemWidth)"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "itemSpacing",
|
|
20
|
+
"type": "number",
|
|
21
|
+
"description": "Spacing between each item"
|
|
22
|
+
},
|
|
11
23
|
{
|
|
12
24
|
"name": "maxItemWidth",
|
|
13
25
|
"type": "number",
|
|
@@ -42,5 +54,83 @@
|
|
|
42
54
|
" itemSpacing={Spacings.s3$4}",
|
|
43
55
|
" listPadding={Spacings.s5$5}",
|
|
44
56
|
"/>"
|
|
45
|
-
]
|
|
57
|
+
],
|
|
58
|
+
"docs": {
|
|
59
|
+
"hero": {
|
|
60
|
+
"title": "GridList",
|
|
61
|
+
"description": "GridList display a collection of GridListItems organized in a repeated grid pattern. \n\nGridList allows users to scan content based on images and compare items within a collection.",
|
|
62
|
+
"type": "hero",
|
|
63
|
+
"layout": "horizontal",
|
|
64
|
+
"content": [
|
|
65
|
+
{
|
|
66
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/GridList/gridList_cover.png"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"tabs": [
|
|
71
|
+
{
|
|
72
|
+
"title": "Overview",
|
|
73
|
+
"sections": [
|
|
74
|
+
{
|
|
75
|
+
"type": "list",
|
|
76
|
+
"items": [
|
|
77
|
+
{
|
|
78
|
+
"title": "GridList with Avatars",
|
|
79
|
+
"content": [
|
|
80
|
+
{
|
|
81
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/GridList/gridList_usage_avatars.png"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"title": "GridList with MediaItems",
|
|
87
|
+
"content": [
|
|
88
|
+
{
|
|
89
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/GridList/gridList_usage_mediaItems.png"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"layout": "horizontal",
|
|
95
|
+
"title": "Usage Examples"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"type": "list",
|
|
99
|
+
"items": [
|
|
100
|
+
{
|
|
101
|
+
"title": "Option 1 - Max Item Width",
|
|
102
|
+
"description": "Set maximum width of a single item, and amount of items in a row will be set automatically according to screen width.
Columns number will be dynamic according to how many items fit the screen.",
|
|
103
|
+
"content": [
|
|
104
|
+
{
|
|
105
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/GridList/gridList_columns_maxWidth.png"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"title": "Option 2 - Column Number",
|
|
111
|
+
"description": "Set amount of columns, and items width will be automatic according to screen width. Columns number will be fixed.",
|
|
112
|
+
"content": [
|
|
113
|
+
{
|
|
114
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/GridList/gridList_columns_number.png"
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"title": "Columns Options"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"type": "section",
|
|
123
|
+
"layout": "horizontal",
|
|
124
|
+
"title": "Spec",
|
|
125
|
+
"description": "markdown: \n### Spacing between items\nHorizontal gutter by default is minimum S4 and can be modified. \nVertical gutter is equal to horizontal gutter.\n### Last item counter\nOnce grid reaches Max of items, the last item should get an overlay color and number of remaining items. \nThe item content shouldn’t be displayed. \nThis state is available in the MediaItem and Avatar components.",
|
|
126
|
+
"content": [
|
|
127
|
+
{
|
|
128
|
+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/GridList/gridList_spec.png"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
}
|
|
46
136
|
}
|