@janiscommerce/ui-native 1.0.3 → 1.1.0

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.
Files changed (76) hide show
  1. package/README.md +35 -0
  2. package/dist/android/app/_BUCK +55 -0
  3. package/dist/android/app/build.gradle +230 -0
  4. package/dist/android/app/build_defs.bzl +19 -0
  5. package/dist/android/app/debug.keystore +0 -0
  6. package/dist/android/app/proguard-rules.pro +10 -0
  7. package/dist/android/app/src/debug/AndroidManifest.xml +13 -0
  8. package/dist/android/app/src/debug/java/com/myapp/ReactNativeFlipper.java +72 -0
  9. package/dist/android/app/src/main/AndroidManifest.xml +25 -0
  10. package/dist/android/app/src/main/assets/fonts/janis-font-icon.ttf +0 -0
  11. package/dist/android/app/src/main/java/com/myapp/MainActivity.java +15 -0
  12. package/dist/android/app/src/main/java/com/myapp/MainApplication.java +80 -0
  13. package/dist/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -0
  14. package/dist/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  15. package/dist/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  16. package/dist/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  17. package/dist/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  18. package/dist/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  19. package/dist/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  20. package/dist/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  21. package/dist/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  22. package/dist/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  23. package/dist/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  24. package/dist/android/app/src/main/res/values/strings.xml +3 -0
  25. package/dist/android/app/src/main/res/values/styles.xml +9 -0
  26. package/dist/android/build.gradle +42 -0
  27. package/dist/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  28. package/dist/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  29. package/dist/android/gradle.properties +28 -0
  30. package/dist/android/gradlew +185 -0
  31. package/dist/android/gradlew.bat +89 -0
  32. package/dist/android/settings.gradle +6 -0
  33. package/dist/components/Carousel/index.d.ts +19 -0
  34. package/dist/components/Carousel/index.js +35 -0
  35. package/dist/components/Carousel/utils/index.d.ts +13 -0
  36. package/dist/components/Carousel/utils/index.js +102 -0
  37. package/dist/components/CheckBox/index.d.ts +1 -0
  38. package/dist/components/Icon/assets/fonts/selection.json +1 -0
  39. package/dist/components/Icon/index.d.ts +8 -0
  40. package/dist/components/Icon/index.js +12 -0
  41. package/dist/components/Loading/LoadingSvg/index.d.ts +8 -0
  42. package/dist/components/Loading/LoadingSvg/index.js +13 -0
  43. package/dist/components/Loading/index.d.ts +2 -2
  44. package/dist/components/Loading/index.js +5 -8
  45. package/dist/components/RadioButton/index.d.ts +22 -0
  46. package/dist/components/RadioButton/index.js +48 -0
  47. package/dist/components/Select/Components/Dropdown/index.d.ts +13 -0
  48. package/dist/components/Select/Components/Dropdown/index.js +73 -0
  49. package/dist/components/Select/Components/Icons/Chevron/index.d.ts +18 -0
  50. package/dist/components/Select/Components/Icons/Chevron/index.js +19 -0
  51. package/dist/components/Select/Components/Icons/Delete/index.d.ts +18 -0
  52. package/dist/components/Select/Components/Icons/Delete/index.js +19 -0
  53. package/dist/components/Select/index.d.ts +41 -0
  54. package/dist/components/Select/index.js +149 -0
  55. package/dist/components/Select/utils/index.d.ts +2 -0
  56. package/dist/components/Select/utils/index.js +8 -0
  57. package/dist/components/SwipeUp/childComponents/index.d.ts +11 -0
  58. package/dist/components/SwipeUp/childComponents/index.js +22 -0
  59. package/dist/components/SwipeUp/index.d.ts +10 -0
  60. package/dist/components/SwipeUp/index.js +11 -0
  61. package/dist/index.d.ts +7 -1
  62. package/dist/index.js +7 -1
  63. package/dist/ios/MyApp/AppDelegate.h +8 -0
  64. package/dist/ios/MyApp/AppDelegate.m +58 -0
  65. package/dist/ios/MyApp/Images.xcassets/AppIcon.appiconset/Contents.json +38 -0
  66. package/dist/ios/MyApp/Images.xcassets/Contents.json +6 -0
  67. package/dist/ios/MyApp/Info.plist +55 -0
  68. package/dist/ios/MyApp/LaunchScreen.storyboard +58 -0
  69. package/dist/ios/MyApp/main.m +9 -0
  70. package/dist/ios/MyApp.xcodeproj/project.pbxproj +791 -0
  71. package/dist/ios/MyApp.xcodeproj/xcshareddata/xcschemes/MyApp-tvOS.xcscheme +88 -0
  72. package/dist/ios/MyApp.xcodeproj/xcshareddata/xcschemes/MyApp.xcscheme +88 -0
  73. package/dist/ios/MyAppTests/Info.plist +24 -0
  74. package/dist/ios/MyAppTests/MyAppTests.m +65 -0
  75. package/dist/ios/Podfile +33 -0
  76. package/package.json +11 -5
@@ -0,0 +1,58 @@
1
+ #import "AppDelegate.h"
2
+
3
+ #import <React/RCTBridge.h>
4
+ #import <React/RCTBundleURLProvider.h>
5
+ #import <React/RCTRootView.h>
6
+
7
+ #ifdef FB_SONARKIT_ENABLED
8
+ #import <FlipperKit/FlipperClient.h>
9
+ #import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
10
+ #import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
11
+ #import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
12
+ #import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
13
+ #import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
14
+
15
+ static void InitializeFlipper(UIApplication *application) {
16
+ FlipperClient *client = [FlipperClient sharedClient];
17
+ SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
18
+ [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];
19
+ [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
20
+ [client addPlugin:[FlipperKitReactPlugin new]];
21
+ [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
22
+ [client start];
23
+ }
24
+ #endif
25
+
26
+ @implementation AppDelegate
27
+
28
+ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
29
+ {
30
+ #ifdef FB_SONARKIT_ENABLED
31
+ InitializeFlipper(application);
32
+ #endif
33
+
34
+ RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
35
+ RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
36
+ moduleName:@"ui-native"
37
+ initialProperties:nil];
38
+
39
+ rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
40
+
41
+ self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
42
+ UIViewController *rootViewController = [UIViewController new];
43
+ rootViewController.view = rootView;
44
+ self.window.rootViewController = rootViewController;
45
+ [self.window makeKeyAndVisible];
46
+ return YES;
47
+ }
48
+
49
+ - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
50
+ {
51
+ #if DEBUG
52
+ return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
53
+ #else
54
+ return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
55
+ #endif
56
+ }
57
+
58
+ @end
@@ -0,0 +1,38 @@
1
+ {
2
+ "images" : [
3
+ {
4
+ "idiom" : "iphone",
5
+ "size" : "29x29",
6
+ "scale" : "2x"
7
+ },
8
+ {
9
+ "idiom" : "iphone",
10
+ "size" : "29x29",
11
+ "scale" : "3x"
12
+ },
13
+ {
14
+ "idiom" : "iphone",
15
+ "size" : "40x40",
16
+ "scale" : "2x"
17
+ },
18
+ {
19
+ "idiom" : "iphone",
20
+ "size" : "40x40",
21
+ "scale" : "3x"
22
+ },
23
+ {
24
+ "idiom" : "iphone",
25
+ "size" : "60x60",
26
+ "scale" : "2x"
27
+ },
28
+ {
29
+ "idiom" : "iphone",
30
+ "size" : "60x60",
31
+ "scale" : "3x"
32
+ }
33
+ ],
34
+ "info" : {
35
+ "version" : 1,
36
+ "author" : "xcode"
37
+ }
38
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "info" : {
3
+ "version" : 1,
4
+ "author" : "xcode"
5
+ }
6
+ }
@@ -0,0 +1,55 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>en</string>
7
+ <key>CFBundleDisplayName</key>
8
+ <string>ui-native</string>
9
+ <key>CFBundleExecutable</key>
10
+ <string>$(EXECUTABLE_NAME)</string>
11
+ <key>CFBundleIdentifier</key>
12
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13
+ <key>CFBundleInfoDictionaryVersion</key>
14
+ <string>6.0</string>
15
+ <key>CFBundleName</key>
16
+ <string>$(PRODUCT_NAME)</string>
17
+ <key>CFBundlePackageType</key>
18
+ <string>APPL</string>
19
+ <key>CFBundleShortVersionString</key>
20
+ <string>1.0</string>
21
+ <key>CFBundleSignature</key>
22
+ <string>????</string>
23
+ <key>CFBundleVersion</key>
24
+ <string>1</string>
25
+ <key>LSRequiresIPhoneOS</key>
26
+ <true/>
27
+ <key>NSAppTransportSecurity</key>
28
+ <dict>
29
+ <key>NSExceptionDomains</key>
30
+ <dict>
31
+ <key>localhost</key>
32
+ <dict>
33
+ <key>NSExceptionAllowsInsecureHTTPLoads</key>
34
+ <true/>
35
+ </dict>
36
+ </dict>
37
+ </dict>
38
+ <key>NSLocationWhenInUseUsageDescription</key>
39
+ <string></string>
40
+ <key>UILaunchStoryboardName</key>
41
+ <string>LaunchScreen</string>
42
+ <key>UIRequiredDeviceCapabilities</key>
43
+ <array>
44
+ <string>armv7</string>
45
+ </array>
46
+ <key>UISupportedInterfaceOrientations</key>
47
+ <array>
48
+ <string>UIInterfaceOrientationPortrait</string>
49
+ <string>UIInterfaceOrientationLandscapeLeft</string>
50
+ <string>UIInterfaceOrientationLandscapeRight</string>
51
+ </array>
52
+ <key>UIViewControllerBasedStatusBarAppearance</key>
53
+ <false/>
54
+ </dict>
55
+ </plist>
@@ -0,0 +1,58 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3
+ <device id="retina4_7" orientation="portrait" appearance="light"/>
4
+ <dependencies>
5
+ <deployment identifier="iOS"/>
6
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
7
+ <capability name="Safe area layout guides" minToolsVersion="9.0"/>
8
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
9
+ </dependencies>
10
+ <scenes>
11
+ <!--View Controller-->
12
+ <scene sceneID="EHf-IW-A2E">
13
+ <objects>
14
+ <viewController id="01J-lp-oVM" sceneMemberID="viewController">
15
+ <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
16
+ <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
17
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18
+ <subviews>
19
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="obG-Y5-kRd">
20
+ <rect key="frame" x="0.0" y="647" width="375" height="0.0"/>
21
+ <fontDescription key="fontDescription" type="system" pointSize="17"/>
22
+ <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
23
+ <nil key="highlightedColor"/>
24
+ </label>
25
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="ui-native" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
26
+ <rect key="frame" x="0.0" y="202" width="375" height="43"/>
27
+ <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
28
+ <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
29
+ <nil key="highlightedColor"/>
30
+ </label>
31
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Powered by React Native" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="MN2-I3-ftu">
32
+ <rect key="frame" x="0.0" y="626" width="375" height="21"/>
33
+ <fontDescription key="fontDescription" type="system" pointSize="17"/>
34
+ <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
35
+ <nil key="highlightedColor"/>
36
+ </label>
37
+ </subviews>
38
+ <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
39
+ <constraints>
40
+ <constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="obG-Y5-kRd" secondAttribute="centerX" id="5cz-MP-9tL"/>
41
+ <constraint firstItem="Bcu-3y-fUS" firstAttribute="bottom" secondItem="MN2-I3-ftu" secondAttribute="bottom" constant="20" id="OZV-Vh-mqD"/>
42
+ <constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="GJd-Yh-RWb" secondAttribute="centerX" id="Q3B-4B-g5h"/>
43
+ <constraint firstItem="obG-Y5-kRd" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" symbolic="YES" id="SfN-ll-jLj"/>
44
+ <constraint firstAttribute="bottom" secondItem="obG-Y5-kRd" secondAttribute="bottom" constant="20" id="Y44-ml-fuU"/>
45
+ <constraint firstItem="MN2-I3-ftu" firstAttribute="centerX" secondItem="Bcu-3y-fUS" secondAttribute="centerX" id="akx-eg-2ui"/>
46
+ <constraint firstItem="MN2-I3-ftu" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" id="i1E-0Y-4RG"/>
47
+ <constraint firstItem="GJd-Yh-RWb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="1/3" constant="1" id="moa-c2-u7t"/>
48
+ <constraint firstItem="GJd-Yh-RWb" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" symbolic="YES" id="x7j-FC-K8j"/>
49
+ </constraints>
50
+ <viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
51
+ </view>
52
+ </viewController>
53
+ <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
54
+ </objects>
55
+ <point key="canvasLocation" x="52.173913043478265" y="375"/>
56
+ </scene>
57
+ </scenes>
58
+ </document>
@@ -0,0 +1,9 @@
1
+ #import <UIKit/UIKit.h>
2
+
3
+ #import "AppDelegate.h"
4
+
5
+ int main(int argc, char * argv[]) {
6
+ @autoreleasepool {
7
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8
+ }
9
+ }