-
Notifications
You must be signed in to change notification settings - Fork 735
/
Copy pathMenuStructure.js
234 lines (233 loc) · 11.8 KB
/
MenuStructure.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
export const navigationData = {
Foundation: {
title: 'Foundation',
screens: [
{title: 'Border Radius', tags: 'corener border radius circle', screen: 'unicorn.style.BorderRadiusesScreen'},
{title: 'Colors', tags: 'palette rgb hex', screen: 'unicorn.style.ColorsScreen'},
{title: 'Dark Mode', tags: 'dark mode colors', screen: 'unicorn.style.DarkModeScreen'},
{title: 'Shadows (iOS)', tags: 'shadow', screen: 'unicorn.style.ShadowsScreen'},
{title: 'Spacings', tags: 'space margins paddings gutter', screen: 'unicorn.style.SpacingsScreen'},
{title: 'Typography', tags: 'fonts text', screen: 'unicorn.style.TypographyScreen'},
{title: 'RTL Support', tags: 'rtl', screen: 'unicorn.style.RTLScreen'}
]
},
// Wrappers: {
// title: 'Wrappers',
// screens: [
// // {title: 'View', tags: 'view wrapper', screen: 'unicorn.wrappers.ViewScreen'},
// // {title: 'Text', tags: 'text wrapper', screen: 'unicorn.wrappers.TextScreen'},
// {title: 'TouchableOpacity', tags: 'touchableOpacity wrapper', screen: 'unicorn.wrappers.TouchableOpacityScreen'}
// ]
// },
Components: {
title: 'Components',
screens: [
{title: 'Text', tags: 'text', screen: 'unicorn.components.TextScreen'},
{title: 'View', tags: 'view modifiers', screen: 'unicorn.components.ViewScreen'},
{title: 'Image', tags: 'image cover overlay', screen: 'unicorn.components.ImageScreen'},
{title: 'Button', tags: 'button cta', screen: 'unicorn.components.ButtonsScreen'},
{title: 'Action Bar', tags: 'action bar floating bottom', screen: 'unicorn.components.ActionBarScreen'},
{title: 'Avatars', tags: 'avatar contact', screen: 'unicorn.components.AvatarsScreen'},
{title: 'Badges', tags: 'badge', screen: 'unicorn.components.BadgesScreen'},
{title: 'Cards', tags: 'cards feed', screen: 'unicorn.components.CardsScreen'},
{title: 'Connection Status Bar', tags: 'connection status bar', screen: 'unicorn.components.ConnectionStatusBar'},
{title: 'Chip', tags: 'chip', screen: 'unicorn.components.ChipScreen'},
{title: 'ExpandableSection', tags: 'expandable section', screen: 'unicorn.components.ExpandableSectionScreen'},
{title: 'Icon', tags: 'image icon assets', screen: 'unicorn.components.IconScreen'},
// {title: 'Overlays', tags: 'overlay image', screen: 'unicorn.components.OverlaysScreen'},
{title: 'Page Control', tags: 'page', screen: 'unicorn.components.PageControlScreen'},
{title: 'ProgressBar', tags: 'progress bar animated', screen: 'unicorn.animations.ProgressBarScreen'},
{title: 'ScrollBar', tags: 'scroll bar gradient', screen: 'unicorn.components.ScrollBarScreen'},
{
title: 'Shared Transition',
tags: 'shared transition element',
screen: 'unicorn.components.SharedTransitionScreen'
},
{title: 'Stack Aggregator', tags: 'stack aggregator', screen: 'unicorn.components.StackAggregatorScreen'},
{title: 'Marquee', tags: 'sliding text', screen: 'unicorn.components.MarqueeScreen'}
]
},
Form: {
title: 'Form',
screens: [
{title: 'Checkbox', tags: 'checkbox toggle controls', screen: 'unicorn.components.CheckboxScreen'},
{title: 'ColorPicker', tags: 'color picker control', screen: 'unicorn.components.ColorPickerScreen'},
{title: 'Color Swatch', tags: 'color swatch and palette', screen: 'unicorn.components.ColorSwatchScreen'},
{title: 'TextField', tags: 'text input field form', screen: 'unicorn.components.TextFieldScreen'},
{title: 'NumberInput', tags: 'number input', screen: 'unicorn.components.NumberInputScreen'},
{title: 'Picker', tags: 'picker form', screen: 'unicorn.components.PickerScreen'},
{title: 'DateTimePicker', tags: 'date time picker form', screen: 'unicorn.components.DateTimePickerScreen'},
{title: 'RadioButton', tags: 'radio button group controls', screen: 'unicorn.components.RadioButtonScreen'},
{
title: 'SectionsWheelPicker',
tags: 'sections wheel picker form',
screen: 'unicorn.components.SectionsWheelPickerScreen'
},
{
title: 'SegmentedControl',
tags: 'segmented control switch toggle',
screen: 'unicorn.components.SegmentedControlScreen'
},
{title: 'Stepper', tags: 'stepper form', screen: 'unicorn.components.StepperScreen'},
{title: 'Slider', tags: 'slider', screen: 'unicorn.components.SliderScreen'},
{title: 'Slider (Incubator)', tags: 'slider', screen: 'unicorn.components.IncubatorSliderScreen'},
{title: 'Switch', tags: 'switch toggle', screen: 'unicorn.components.SwitchScreen'},
{title: 'Masked Inputs', tags: 'text input form mask', screen: 'unicorn.components.MaskedInputScreen'},
{
title: 'WheelPicker',
tags: 'wheel picker spinner',
screen: 'unicorn.components.WheelPickerScreen'
}
]
},
Overlays: {
title: 'Overlays',
screens: [
{title: 'Action Sheet', tags: 'action sheet cross-platform', screen: 'unicorn.components.ActionSheetScreen'},
{
title: 'Action Sheet (Incubator)',
tags: 'action sheet',
screen: 'unicorn.components.IncubatorActionSheetScreen'
},
{title: 'Dialog', tags: 'dialog modal popup alert', screen: 'unicorn.components.DialogScreen'},
{title: 'Feature Highlight', tags: 'feature overlay', screen: 'unicorn.components.FeatureHighlightScreen'},
{title: 'Floating Button', tags: 'floating button', screen: 'unicorn.components.FloatingButtonScreen'},
{title: 'Hint', tags: 'hints tooltip', screen: 'unicorn.components.HintsScreen'},
{title: 'Toast', tags: 'toast top bottom snackbar', screen: 'unicorn.components.ToastsScreen'}
]
},
Lists: {
title: 'Lists',
screens: [
{title: 'Basic List', tags: 'basic list', screen: 'unicorn.lists.BasicListScreen'},
{title: 'Contacts List', tags: 'list contacts', screen: 'unicorn.lists.ContactsListScreen'},
{title: 'Conversation List', tags: 'list conversation', screen: 'unicorn.lists.ConversationListScreen'},
{title: 'Drawer', tags: 'drawer', screen: 'unicorn.components.DrawerScreen'},
{title: 'SortableList', tags: 'sortable list drag', screen: 'unicorn.components.SortableListScreen'},
{
title: 'HorizontalSortableList',
tags: 'sortable horizontal list drag',
screen: 'unicorn.components.HorizontalSortableListScreen'
},
{title: 'GridList', tags: 'grid list', screen: 'unicorn.components.GridListScreen'},
{title: 'SortableGridList', tags: 'sort grid list drag', screen: 'unicorn.components.SortableGridListScreen'}
]
},
Charts: {
title: 'Charts',
screens: [
{title: 'PieChart', tags: 'pie chart data', screen: 'unicorn.components.PieChartScreen'}
]
},
LayoutsAndTemplates: {
title: 'Layouts & Templates',
screens: [
{title: 'Carousel', tags: 'carousel', screen: 'unicorn.components.CarouselScreen'},
{title: 'Carousel (Vertical)', tags: 'carousel', screen: 'unicorn.components.CarouselVerticalScreen'},
{title: 'Skeleton (Shimmer)', tags: 'skeleton loading', screen: 'unicorn.components.SkeletonViewScreen'},
{title: 'LoadingScreen', tags: 'loading screen', screen: 'unicorn.screens.LoadingScreen'},
{title: 'Modal', tags: 'modal topbar screen', screen: 'unicorn.screens.ModalScreen'},
{title: 'StateScreen', tags: 'empty state screen', screen: 'unicorn.screens.EmptyStateScreen'},
{title: 'TabController', tags: 'tabbar controller native', screen: 'unicorn.components.TabControllerScreen'},
{
title: 'TabControllerWithStickyHeader',
tags: 'tabbar controller native sticky header',
screen: 'unicorn.components.TabControllerWithStickyHeaderScreen'
},
{title: 'Timeline', tags: 'timeline', screen: 'unicorn.components.TimelineScreen'},
{
title: 'withScrollEnabler',
tags: 'scroll enabled withScrollEnabler',
screen: 'unicorn.components.WithScrollEnablerScreen'
},
{
title: 'withScrollReached',
tags: 'scroll reach start end',
screen: 'unicorn.components.WithScrollReachedScreen'
},
{
title: 'Fader',
tags: 'scroll fader',
screen: 'unicorn.components.FaderScreen'
},
{title: 'Wizard', tags: 'wizard', screen: 'unicorn.components.WizardScreen'},
{title: 'GridView', tags: 'grid view', screen: 'unicorn.components.GridViewScreen'}
]
},
Native: {
title: 'Native',
screens: [
{
title: 'KeyboardAwareScrollView',
tags: 'KeyboardAwareScrollView',
screen: 'unicorn.components.KeyboardAwareScrollViewScreen'
},
{
title: 'Dynamic Fonts',
tags: 'dynamic fonts load download',
screen: 'unicorn.nativeComponents.DynamicFontsScreen'
},
{
title: 'Highlight Overlay',
tags: 'native overlay',
screen: 'unicorn.nativeComponents.HighlightOverlayViewScreen'
},
{title: 'SafeArea Spacer', tags: 'native safe area', screen: 'unicorn.nativeComponents.SafeAreaSpacerViewScreen'},
{
title: 'KeyboardTracking (iOS)',
tags: 'KeyboardTracking',
screen: 'unicorn.nativeComponents.KeyboardTrackingViewScreen'
},
{
title: 'KeyboardAccessoryView',
tags: 'KeyboardInput',
screen: 'unicorn.nativeComponents.KeyboardAccessoryViewScreen'
}
]
},
AnimationsAndGestures: {
title: 'Animations & Gestures',
screens: [
{title: 'Animated Image', tags: 'animated image', screen: 'unicorn.components.AnimatedImageScreen'},
{title: 'Haptic feedback', tags: 'haptic feedback', screen: 'unicorn.components.HapticScreen'},
{
title: 'ProgressiveImage',
tags: 'progressive image cover overlay',
screen: 'unicorn.components.ProgressiveImageScreen'
},
{title: 'Card Scanner', tags: 'card scanner process', screen: 'unicorn.animations.CardScannerScreen'},
{title: 'Pan Dismissible', tags: 'pan swipe drag dismiss', screen: 'unicorn.components.PanDismissibleScreen'},
{title: 'Pan Listener', tags: 'pan swipe drag listener', screen: 'unicorn.components.PanListenerScreen'},
{title: 'Pan Responder', tags: 'pan swipe drag responder', screen: 'unicorn.components.PanResponderScreen'}
]
},
Incubator: {
title: 'Incubator (Experimental)',
screens: [
{title: 'Calendar', tags: 'calendar', screen: 'unicorn.components.IncubatorCalendarScreen'},
{title: 'ChipsInput', tags: 'chips input', screen: 'unicorn.components.ChipsInputScreen'},
{title: 'Native TouchableOpacity', tags: 'touchable native', screen: 'unicorn.incubator.TouchableOpacityScreen'},
{title: 'Dialog (New)', tags: 'dialog modal popup alert', screen: 'unicorn.incubator.IncubatorDialogScreen'},
{title: 'Toast (New)', tags: 'toast', screen: 'unicorn.components.IncubatorToastScreen'},
{
title: 'ExpandableOverlay',
tags: 'text field expandable input picker',
screen: 'unicorn.components.IncubatorExpandableOverlayScreen'
},
{title: 'PanView', tags: 'pan swipe drag', screen: 'unicorn.incubator.PanViewScreen'}
]
},
Inspirations: {
title: 'Inspirations',
screens: [
{title: 'Apple Music', tags: 'apple music demo screen', screen: 'unicorn.examples.AppleMusic'},
{title: 'Pinterest', tags: 'pinterest demo screen', screen: 'unicorn.examples.Pinterest'},
{title: 'List Actions', tags: 'list actions demo screen', screen: 'unicorn.examples.ListActionsScreen'},
{title: 'Product Page', tags: 'product page demo screen', screen: 'unicorn.examples.ProductPage'},
{title: 'Twitter', tags: 'twitter demo screen', screen: 'unicorn.examples.Twitter'}
]
}
};
if (__DEV__) {
navigationData.Foundation.screens.unshift({title: 'Playground', screen: 'unicorn.PlaygroundScreen'});
}