atlas-design-system 1.2.0 → 1.2.1

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/README.md CHANGED
@@ -2,4 +2,10 @@
2
2
 
3
3
 
4
4
  # Running exmple app
5
+ The example app is provided as a way to test and develop on the design system. It is also used as a gallery to view all the components and features of the desgin system.
6
+
7
+ To run the example app run the following command
8
+ ```bash
9
+ cd /example && yarn && yarn ios
10
+ ```
5
11
 
@@ -26,6 +26,7 @@ export default function RootLayout() {
26
26
  <Stack.Screen name="buttonGallery" options={{ title: "Button" }} />
27
27
  <Stack.Screen name="sheetGallery" options={{ title: "Sheet" }} />
28
28
  <Stack.Screen name="selectInputGallery" options={{ title: "Select Input" }} />
29
+ <Stack.Screen name="navigationListRowGallery" options={{ title: "Navigation Row" }} />
29
30
  </Stack>
30
31
  </ThemeContext.Provider>
31
32
  );
@@ -52,7 +52,13 @@ export default function Index() {
52
52
  router.navigate("/sheetGallery");
53
53
  }}
54
54
  label="Sheet"
55
- ></NavigationListRow>
55
+ />
56
+ <NavigationListRow
57
+ onPress={() => {
58
+ router.navigate("/navigationListRowGallery");
59
+ }}
60
+ label="Navigation List Row"
61
+ />
56
62
  </ScrollView>
57
63
  );
58
64
  }
@@ -0,0 +1,33 @@
1
+ import { useState, useCallback } from "react";
2
+ import { Alert, ScrollView, StyleSheet } from "react-native";
3
+
4
+ import { NavigationListRow, useThemedStyle } from "atlas-design-system";
5
+
6
+ export default function DateTimeInputGallery() {
7
+ const styles = useStyles().styles;
8
+
9
+ return (
10
+ <ScrollView contentContainerStyle={styles.container}>
11
+ <NavigationListRow label="Max Verstappen" caption='3x World Champion' onPress={() => {
12
+ Alert.alert('Max Max Max', 'Yes bois dis feels good!')
13
+ }}/>
14
+ <NavigationListRow label="Lewis Hamilton" caption='7x World Champion' onPress={() => {
15
+ Alert.alert('Hammer Time', 'Get In There Lewis!!')
16
+ }} />
17
+ </ScrollView>
18
+ );
19
+ }
20
+
21
+ const useStyles = () =>
22
+ useThemedStyle(
23
+ useCallback(
24
+ (t) =>
25
+ StyleSheet.create({
26
+ container: {
27
+ paddingTop: t.size.baseSize *4,
28
+ paddingHorizontal: t.size.baseSize * 4,
29
+ },
30
+ }),
31
+ []
32
+ )
33
+ );
@@ -38,8 +38,6 @@ PODS:
38
38
  - ReactCommon/turbomodule/bridging
39
39
  - ReactCommon/turbomodule/core
40
40
  - Yoga
41
- - ExpoSymbols (0.1.4):
42
- - ExpoModulesCore
43
41
  - ExpoSystemUI (3.0.7):
44
42
  - ExpoModulesCore
45
43
  - ExpoWebBrowser (13.0.3):
@@ -1311,7 +1309,6 @@ DEPENDENCIES:
1311
1309
  - ExpoHead (from `../node_modules/expo-router/ios`)
1312
1310
  - ExpoKeepAwake (from `../node_modules/expo-keep-awake/ios`)
1313
1311
  - ExpoModulesCore (from `../node_modules/expo-modules-core`)
1314
- - ExpoSymbols (from `../node_modules/expo-symbols/ios`)
1315
1312
  - ExpoSystemUI (from `../node_modules/expo-system-ui/ios`)
1316
1313
  - ExpoWebBrowser (from `../node_modules/expo-web-browser/ios`)
1317
1314
  - EXSplashScreen (from `../node_modules/expo-splash-screen/ios`)
@@ -1400,8 +1397,6 @@ EXTERNAL SOURCES:
1400
1397
  :path: "../node_modules/expo-keep-awake/ios"
1401
1398
  ExpoModulesCore:
1402
1399
  :path: "../node_modules/expo-modules-core"
1403
- ExpoSymbols:
1404
- :path: "../node_modules/expo-symbols/ios"
1405
1400
  ExpoSystemUI:
1406
1401
  :path: "../node_modules/expo-system-ui/ios"
1407
1402
  ExpoWebBrowser:
@@ -1535,7 +1530,6 @@ SPEC CHECKSUMS:
1535
1530
  ExpoHead: 3e8eacccdad1256f0643b657d89bf972c27afb1d
1536
1531
  ExpoKeepAwake: 3b8815d9dd1d419ee474df004021c69fdd316d08
1537
1532
  ExpoModulesCore: 5440e96a8ee014f4fd88e77264985fd0a65f5f8c
1538
- ExpoSymbols: 5adb1166f2929fc8d2497b98d5c48c4b94effe33
1539
1533
  ExpoSystemUI: d4f065a016cae6721b324eb659cdee4d4cf0cb26
1540
1534
  ExpoWebBrowser: 7595ccac6938eb65b076385fd23d035db9ecdc8e
1541
1535
  EXSplashScreen: fbf0ec78e9cee911df188bf17b4fe51d15a84b87
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "atlas-design-system",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "A react native design system for the Atlas workout app",
5
5
  "main": "src/index.ts",
6
- "repository": "https://github.com/juancstlm/AtlasDesignSystem",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/juancstlm/AtlasDesignSystem.git"
9
+ },
7
10
  "scripts": {
8
11
  "lint": "eslint 'src/**/*.{ts,tsx}' && tsc --noEmit",
9
12
  "test": "test",
@@ -11,7 +14,8 @@
11
14
  "build": "tsc",
12
15
  "patch": "npm version patch",
13
16
  "minor": "npm version minor",
14
- "watch": "tsc --watch"
17
+ "watch": "tsc --watch",
18
+ "publish:dryrun": "npm publish --dry-run"
15
19
  },
16
20
  "keywords": [
17
21
  "react-native",
@@ -29,6 +33,7 @@
29
33
  "peerDependencies": {
30
34
  "@react-native-community/datetimepicker": ">=3.5.2",
31
35
  "react": ">=17.0.1",
36
+ "moment": ">=2.24.0",
32
37
  "react-native": ">=0.64.1",
33
38
  "react-native-reanimated": ">=3.0.0",
34
39
  "react-native-safe-area-context": ">=4.0.0",