mgtypes 1.0.67 → 1.0.69

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.67",
3
+ "version": "1.0.69",
4
4
  "description": "types for mg development",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -54,8 +54,18 @@ export interface mgNativePermission {
54
54
  status: 'granted' | 'undetermined' | 'denied';
55
55
  canAskAgain: boolean;
56
56
  // will display in info modal: these are non-native, non-toggleable, and true
57
- defaultTruePermissions: mgNonNativePermissionTitle[]; // TODO:permissionsConfig
58
- toggleablePermissions: mgNonNativePermissionTitle[]; // TODO:permissionsConfig
57
+ defaultTruePermissions: (
58
+ | mgNonNativePermissionTitle
59
+ | mgLocationPermissionTitle
60
+ | mgCalendarPermissionTitle
61
+ | mgNotificationsPermissionTitle
62
+ )[]; // TODO:permissionsConfig
63
+ toggleablePermissions: (
64
+ | mgNonNativePermissionTitle
65
+ | mgLocationPermissionTitle
66
+ | mgCalendarPermissionTitle
67
+ | mgNotificationsPermissionTitle
68
+ )[]; // TODO:permissionsConfig
59
69
  }
60
70
 
61
71
  export interface mgNonNativePermission {
@@ -102,7 +102,7 @@ export interface mgFeaturesConfig {
102
102
  * user assembling an app and as possible filters
103
103
  * (food, toilets filters), each category has a default
104
104
  *
105
- * whatever types of content populate the
105
+ *
106
106
  */
107
107
  export interface mgContentConfig {
108
108
  TAGS: string[];
@@ -111,6 +111,7 @@ export interface mgContentConfig {
111
111
  drink?: string[];
112
112
  entertainment?: string[]; // midway/fun fair,
113
113
  infrastructure?: string[];
114
+ sport?: string[]; // fields for each sport
114
115
  activity?: string[];
115
116
  toilet?: string[];
116
117
  service?: string[];
@@ -118,13 +119,14 @@ export interface mgContentConfig {
118
119
  shopping?: string[];
119
120
  personal?: string[];
120
121
  other?: string[];
122
+ exhibition?: string[]; // painting, sculpture, etc...
121
123
  default: ['pin'];
122
124
  };
123
125
  PLANS: {
124
126
  sport?: string[]; // all of them, tailgate
125
127
  business?: string[]; // meet and greet, job fair, trade show/conference, expo, meeting, pitch night,product launch, grand opening
126
128
  spectacle?: string[]; // air show, drone show, fireworks, demolition derby, circus, parade?
127
- gathering?: string[]; // block party, street festival, fan fest,
129
+ gathering?: string[]; // block party, street festival, fan fest, party,
128
130
  concert?: string[]; // default, rock, rap, classical, electronic, jazz, etc...
129
131
  performance?: string[]; // recital, dance recital, comedy/improv, musicals, reading/booksigning
130
132
  presentation?: string[]; // lecture, panel, roundtable, film screening, exhibition, fashion show, trophy presentation
@@ -132,7 +134,7 @@ export interface mgContentConfig {
132
134
  class?: string[]; // cooking, writing, pottery, whatever, mixology classes
133
135
  food?: string[]; // brunch, dinner, wine tastings, appetizers, picnic, bbq, pot luck, banquet
134
136
  group?: string[]; // karaoke, trivia,
135
- shopping?: string[]; // auction, fair, sale, pop-up
137
+ shopping?: string[]; // auction, art fair, sale, pop-up,
136
138
  other?: string[];
137
139
  default: ['plan'];
138
140
  };
@@ -164,73 +166,62 @@ export interface mgAuthenticationConfig {
164
166
  }
165
167
 
166
168
  // ** COLORS **
167
-
168
169
  /**
169
170
  * Configs based on React Native Paper color assignments w/ some extras
170
- * @property surfaceVariant: seems to be the color of the icon button, but
171
- * 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
172
180
  */
173
181
  export interface mgColorsConfig {
174
182
  // NEW ONES
175
-
176
- // mix and match for foregroungs/backgrounds
177
- // on buttons, chips,
178
- // snackbar, etc
179
183
  light: string;
180
184
  lightNeutral: string;
181
- // dark neutral formerly onPrimaryContainerUnselected
182
185
  darkNeutral: string;
183
186
  dark: string;
184
-
185
187
  success: string;
186
188
  warning: string;
187
-
188
189
  locationPuck: string;
189
-
190
190
  inverseSecondary: string;
191
191
  inverseTertiary: string;
192
-
193
192
  primaryContainerGradient: string;
194
193
  secondaryContainerGradient: string;
195
194
  tertiaryContainerGradient: string;
196
-
197
195
  // ORIGINALS
198
-
199
196
  primary: string;
200
197
  inversePrimary: string;
201
198
  onPrimary: string;
202
199
  primaryContainer: string;
203
200
  onPrimaryContainer: string;
204
-
205
201
  secondary: string;
206
202
  onSecondary: string;
207
203
  secondaryContainer: string;
208
204
  onSecondaryContainer: string;
209
-
210
205
  tertiary: string;
211
206
  onTertiary: string;
212
207
  tertiaryContainer: string;
213
208
  onTertiaryContainer: string;
214
-
215
209
  error: string;
216
210
  onError: string;
217
211
  errorContainer: string;
218
212
  onErrorContainer: string;
219
-
220
213
  background: string;
221
214
  onBackground: string;
222
215
  surface: string;
223
216
  onSurface: string;
224
- surfaceVariant: string; // IconButton and CustomChip unselected bg
217
+ surfaceVariant: string;
225
218
  onSurfaceVariant: string;
226
219
  inverseSurface: string;
227
220
  inverseOnSurface: string;
228
-
229
221
  outline: string;
230
222
  outlineVariant: string;
231
223
  shadow: string;
232
224
  scrim: string;
233
-
234
225
  elevation: {
235
226
  level0: string;
236
227
  level1: string;
@@ -239,14 +230,12 @@ export interface mgColorsConfig {
239
230
  level4: string;
240
231
  level5: string;
241
232
  };
242
-
243
233
  surfaceDisabled: string;
244
234
  onSurfaceDisabled: string;
245
235
  backdrop: string;
246
236
  }
247
237
 
248
238
  // ** FONTS **
249
-
250
239
  /**
251
240
  * Configs for an individual font style
252
241
  */
@@ -262,10 +251,11 @@ interface mgFontTextStyle {
262
251
  * Configs for all the app's font styles
263
252
  *
264
253
  * @property labelSmall: bottom navigation buttons, map label marker ("ZOOM IN"), other small-font instructions/labels
265
- * @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
266
255
  * @property labelLarge: standard button texts, loading modal, accordion titles
267
- * @property bodyMedium: standard card, avatar and modal text
268
- * @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)
269
259
  * @property displaySmall: page titles (eg, "Lists", "Options")
270
260
  * @property displayMedium: app name in login screen
271
261
  * @property headlineSmall: nothing at the moment
@@ -277,6 +267,7 @@ export interface mgFontsConfig {
277
267
  labelSmall: mgFontTextStyle;
278
268
  bodyLarge: mgFontTextStyle;
279
269
  bodyMedium: mgFontTextStyle;
270
+ bodySmall: mgFontTextStyle;
280
271
  displayMedium: mgFontTextStyle;
281
272
  displaySmall: mgFontTextStyle;
282
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 {