mgtypes 1.0.66 → 1.0.68

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mgtypes",
3
- "version": "1.0.66",
3
+ "version": "1.0.68",
4
4
  "description": "types for mg development",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -94,12 +94,24 @@ export interface mgFeaturesConfig {
94
94
  IS_CONTENT_THREADED: boolean;
95
95
  }
96
96
 
97
+ /**
98
+ * describes what map markers and other
99
+ * content will show up on server and in client
100
+ *
101
+ * broken into categories as they will be presented to
102
+ * user assembling an app and as possible filters
103
+ * (food, toilets filters), each category has a default
104
+ *
105
+ *
106
+ */
97
107
  export interface mgContentConfig {
98
108
  TAGS: string[];
99
109
  PINS: {
100
110
  food?: string[];
101
111
  drink?: string[];
112
+ entertainment?: string[]; // midway/fun fair,
102
113
  infrastructure?: string[];
114
+ sport?: string[]; // fields for each sport
103
115
  activity?: string[];
104
116
  toilet?: string[];
105
117
  service?: string[];
@@ -107,24 +119,34 @@ export interface mgContentConfig {
107
119
  shopping?: string[];
108
120
  personal?: string[];
109
121
  other?: string[];
122
+ exhibition?: string[]; // painting, sculpture, etc...
110
123
  default: ['pin'];
111
124
  };
112
125
  PLANS: {
113
- sport?: string[];
114
- hallmark?: string[];
115
- music?: string[];
126
+ sport?: string[]; // all of them, tailgate
127
+ business?: string[]; // meet and greet, job fair, trade show/conference, expo, meeting, pitch night,product launch, grand opening
128
+ spectacle?: string[]; // air show, drone show, fireworks, demolition derby, circus, parade?
129
+ gathering?: string[]; // block party, street festival, fan fest, party,
130
+ concert?: string[]; // default, rock, rap, classical, electronic, jazz, etc...
131
+ performance?: string[]; // recital, dance recital, comedy/improv, musicals, reading/booksigning
132
+ presentation?: string[]; // lecture, panel, roundtable, film screening, exhibition, fashion show, trophy presentation
133
+ tour?: string[]; // open house, open studio, orientation
134
+ class?: string[]; // cooking, writing, pottery, whatever, mixology classes
135
+ food?: string[]; // brunch, dinner, wine tastings, appetizers, picnic, bbq, pot luck, banquet
136
+ group?: string[]; // karaoke, trivia,
137
+ shopping?: string[]; // auction, art fair, sale, pop-up,
116
138
  other?: string[];
117
139
  default: ['plan'];
118
140
  };
119
141
  ROUTES: {
120
- parade?: string[];
121
- race?: string[];
122
- crawl?: string[];
142
+ parade?: string[]; // default, pride
143
+ race?: string[]; // run, bike, swim, paddle, drive
144
+ tour?: string[]; // pub crawl, walking tour, wine tour
123
145
  other?: string[];
124
146
  default: ['route'];
125
147
  };
126
- SERVICES?: 'mental health' | 'security' | 'fire' | 'medical'[];
127
- EMERGENCIES?: 'mental health' | 'security' | 'fire' | 'medical'[];
148
+ SERVICES?: ('mental health' | 'security' | 'fire' | 'medical')[];
149
+ EMERGENCIES?: ('mental health' | 'security' | 'fire' | 'medical')[];
128
150
  }
129
151
 
130
152
  // ** AUTH **
@@ -144,73 +166,62 @@ export interface mgAuthenticationConfig {
144
166
  }
145
167
 
146
168
  // ** COLORS **
147
-
148
169
  /**
149
170
  * Configs based on React Native Paper color assignments w/ some extras
150
- * @property surfaceVariant: seems to be the color of the icon button, but
151
- * setting another component's background to it does not match the icon button
171
+ * @property surfaceVariant: ICON BUTTON, "Show map" chip in cards, admin chips,
172
+ * "Loading" components admin secondary surfaces, unselected button
173
+ * or option in most cases,
174
+ * @property onSurfaceVariant: only contrasts with surfaceVariant in the
175
+ * form of selected/unselected buttons that invert colors
176
+ * @property surface: card backgrounds,
177
+ * @property background: background, indeed
178
+ * @property primaryContainer: bottom nav, search bar container on map and feed,
179
+ * @property primaryContainerGradient: slightly darker than primaryContainer
152
180
  */
153
181
  export interface mgColorsConfig {
154
182
  // NEW ONES
155
-
156
- // mix and match for foregroungs/backgrounds
157
- // on buttons, chips,
158
- // snackbar, etc
159
183
  light: string;
160
184
  lightNeutral: string;
161
- // dark neutral formerly onPrimaryContainerUnselected
162
185
  darkNeutral: string;
163
186
  dark: string;
164
-
165
187
  success: string;
166
188
  warning: string;
167
-
168
189
  locationPuck: string;
169
-
170
190
  inverseSecondary: string;
171
191
  inverseTertiary: string;
172
-
173
192
  primaryContainerGradient: string;
174
193
  secondaryContainerGradient: string;
175
194
  tertiaryContainerGradient: string;
176
-
177
195
  // ORIGINALS
178
-
179
196
  primary: string;
180
197
  inversePrimary: string;
181
198
  onPrimary: string;
182
199
  primaryContainer: string;
183
200
  onPrimaryContainer: string;
184
-
185
201
  secondary: string;
186
202
  onSecondary: string;
187
203
  secondaryContainer: string;
188
204
  onSecondaryContainer: string;
189
-
190
205
  tertiary: string;
191
206
  onTertiary: string;
192
207
  tertiaryContainer: string;
193
208
  onTertiaryContainer: string;
194
-
195
209
  error: string;
196
210
  onError: string;
197
211
  errorContainer: string;
198
212
  onErrorContainer: string;
199
-
200
213
  background: string;
201
214
  onBackground: string;
202
215
  surface: string;
203
216
  onSurface: string;
204
- surfaceVariant: string; // IconButton and CustomChip unselected bg
217
+ surfaceVariant: string;
205
218
  onSurfaceVariant: string;
206
219
  inverseSurface: string;
207
220
  inverseOnSurface: string;
208
-
209
221
  outline: string;
210
222
  outlineVariant: string;
211
223
  shadow: string;
212
224
  scrim: string;
213
-
214
225
  elevation: {
215
226
  level0: string;
216
227
  level1: string;
@@ -219,14 +230,12 @@ export interface mgColorsConfig {
219
230
  level4: string;
220
231
  level5: string;
221
232
  };
222
-
223
233
  surfaceDisabled: string;
224
234
  onSurfaceDisabled: string;
225
235
  backdrop: string;
226
236
  }
227
237
 
228
238
  // ** FONTS **
229
-
230
239
  /**
231
240
  * Configs for an individual font style
232
241
  */
@@ -242,10 +251,11 @@ interface mgFontTextStyle {
242
251
  * Configs for all the app's font styles
243
252
  *
244
253
  * @property labelSmall: bottom navigation buttons, map label marker ("ZOOM IN"), other small-font instructions/labels
245
- * @property labelMedium: text for feed notification, map filter container switch, map label marker (title), RSVP time info, other medium-font instructions/labels
254
+ * @property labelMedium: map filter container switch, map label marker (title), RSVP time info and check text, Custom Chip
246
255
  * @property labelLarge: standard button texts, loading modal, accordion titles
247
- * @property bodyMedium: standard card, avatar and modal text
248
- * @property bodyLarge: card primary text
256
+ * @property bodySmall: smallest normal text. Still needs to be legible.
257
+ * @property bodyMedium: avatar and modal text, card primary text,
258
+ * @property bodyLarge: TextInput, some accessory text (on splash)
249
259
  * @property displaySmall: page titles (eg, "Lists", "Options")
250
260
  * @property displayMedium: app name in login screen
251
261
  * @property headlineSmall: nothing at the moment
@@ -257,6 +267,7 @@ export interface mgFontsConfig {
257
267
  labelSmall: mgFontTextStyle;
258
268
  bodyLarge: mgFontTextStyle;
259
269
  bodyMedium: mgFontTextStyle;
270
+ bodySmall: mgFontTextStyle;
260
271
  displayMedium: mgFontTextStyle;
261
272
  displaySmall: mgFontTextStyle;
262
273
  headlineSmall: mgFontTextStyle;
@@ -13,6 +13,12 @@ export interface mgAuthenticationComponentConfig {
13
13
  export interface mgFeedComponentConfig {
14
14
  STICKY: { height: number };
15
15
  HEADER: { height: number; OVERLAY: ReactElement };
16
+ NOTIFICATION: {height: number,}
17
+ CARD: {
18
+ actionButtonSize: number,
19
+ avatarImageSize: number,
20
+ avatarIconSize: number,
21
+ }
16
22
  }
17
23
 
18
24
  export interface mgOtherComponentConfig {