react-native-ui-lib 7.41.0-snapshot.6878 → 7.41.0-snapshot.6889
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
|
@@ -7,6 +7,7 @@ const fs = require('fs');
|
|
|
7
7
|
|
|
8
8
|
const COMPONENTS_DOCS_DIR = './docs/components';
|
|
9
9
|
const SERVICES_DOCS_DIR = './docs/services';
|
|
10
|
+
const COMPOSITE_DOCS_DIR = './docs/composite';
|
|
10
11
|
const FOUNDATION_DOCS_DIR = './docs/foundation';
|
|
11
12
|
|
|
12
13
|
const VALID_COMPONENTS_CATEGORIES = [
|
|
@@ -27,7 +28,8 @@ const VALID_COMPONENTS_CATEGORIES = [
|
|
|
27
28
|
'infra',
|
|
28
29
|
// non components categories
|
|
29
30
|
'services',
|
|
30
|
-
'dev' // development category for components we don't want to render in our docs (used in test.api.json)
|
|
31
|
+
'dev', // development category for components we don't want to render in our docs (used in test.api.json),
|
|
32
|
+
'composite'
|
|
31
33
|
];
|
|
32
34
|
|
|
33
35
|
function buildDocs(apiFolders, componentsPreProcess) {
|
|
@@ -95,6 +97,10 @@ function processComponents(components) {
|
|
|
95
97
|
|
|
96
98
|
let dirPath;
|
|
97
99
|
switch (component.category) {
|
|
100
|
+
case 'composite': {
|
|
101
|
+
dirPath = `${COMPOSITE_DOCS_DIR}`;
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
98
104
|
case 'services': {
|
|
99
105
|
dirPath = `${SERVICES_DOCS_DIR}`;
|
|
100
106
|
break;
|
|
@@ -5,8 +5,17 @@
|
|
|
5
5
|
"example": "https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/TabControllerScreen/index.tsx",
|
|
6
6
|
"images": [],
|
|
7
7
|
"props": [
|
|
8
|
-
{
|
|
9
|
-
|
|
8
|
+
{
|
|
9
|
+
"name": "items",
|
|
10
|
+
"type": "TabControllerItemProps[]",
|
|
11
|
+
"description": "The list of tab bar items"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "initialIndex",
|
|
15
|
+
"type": "number",
|
|
16
|
+
"description": "Initial selected index",
|
|
17
|
+
"default": "0"
|
|
18
|
+
},
|
|
10
19
|
{
|
|
11
20
|
"name": "onChangeIndex",
|
|
12
21
|
"type": "(index: number, prevIndex: number | null) => void",
|
|
@@ -25,7 +34,11 @@
|
|
|
25
34
|
"note": "Does not work with asCarousel",
|
|
26
35
|
"default": "false"
|
|
27
36
|
},
|
|
28
|
-
{
|
|
37
|
+
{
|
|
38
|
+
"name": "carouselPageWidth;",
|
|
39
|
+
"type": "number",
|
|
40
|
+
"description": "Pass for custom carousel page width"
|
|
41
|
+
}
|
|
29
42
|
],
|
|
30
43
|
"snippet": [
|
|
31
44
|
"<TabController items={[{label: 'First'}, {label: 'Second'}, {label: 'Third'}]$1}>",
|
|
@@ -75,7 +88,7 @@
|
|
|
75
88
|
"items": [
|
|
76
89
|
{
|
|
77
90
|
"title": "",
|
|
78
|
-
"description": "**Inactive Tab**\nText: BodySmall $textDefault\nBackground: $backgroundElevated \n\n**Active Tab**\nText: BodySmallBold $textPrimary\nBackground: $backgroundElevated\nIndicator: $outlinePrimary \n\n**Shadow**\nsh10\n\n**Dark Skin**\nText: BodySmall, System White\nBackground: System Grey10\nDivider: System Grey20",
|
|
91
|
+
"description": "markdown: **Inactive Tab**\nText: BodySmall $textDefault\nBackground: $backgroundElevated \n\n**Active Tab**\nText: BodySmallBold $textPrimary\nBackground: $backgroundElevated\nIndicator: $outlinePrimary \n\n**Shadow**\nsh10\n\n**Dark Skin**\nText: BodySmall, System White\nBackground: System Grey10\nDivider: System Grey20",
|
|
79
92
|
"content": [
|
|
80
93
|
{
|
|
81
94
|
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/TabBar/tabBar_overview_styling.png"
|
|
@@ -88,7 +101,10 @@
|
|
|
88
101
|
},
|
|
89
102
|
{
|
|
90
103
|
"type": "table",
|
|
91
|
-
"columns": [
|
|
104
|
+
"columns": [
|
|
105
|
+
"Property",
|
|
106
|
+
"Component"
|
|
107
|
+
],
|
|
92
108
|
"items": [
|
|
93
109
|
{
|
|
94
110
|
"title": "Counter Badge",
|