@hedia/recommendation-screen 1.0.0 → 1.0.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.
Files changed (86) hide show
  1. package/Changelog.md +8 -4
  2. package/README.md +3 -3
  3. package/android/app/BUCK +55 -55
  4. package/android/app/build.gradle +225 -225
  5. package/android/app/build_defs.bzl +19 -19
  6. package/android/app/proguard-rules.pro +10 -10
  7. package/android/app/src/debug/AndroidManifest.xml +8 -8
  8. package/android/app/src/debug/java/com/hediarecommendationscreen/ReactNativeFlipper.java +72 -72
  9. package/android/app/src/main/AndroidManifest.xml +27 -27
  10. package/android/app/src/main/java/com/hediarecommendationscreen/MainActivity.java +15 -15
  11. package/android/app/src/main/java/com/hediarecommendationscreen/MainApplication.java +80 -80
  12. package/android/app/src/main/res/values/strings.xml +3 -3
  13. package/android/app/src/main/res/values/styles.xml +9 -9
  14. package/android/build.gradle +38 -38
  15. package/android/gradle/wrapper/gradle-wrapper.properties +5 -5
  16. package/android/gradle.properties +28 -28
  17. package/android/gradlew +188 -188
  18. package/android/settings.gradle +3 -3
  19. package/index.d.ts +5 -5
  20. package/index.js +16 -16
  21. package/ios/HediaRecommendationScreen/AppDelegate.h +8 -8
  22. package/ios/HediaRecommendationScreen/AppDelegate.m +58 -58
  23. package/ios/HediaRecommendationScreen/Base.lproj/LaunchScreen.xib +42 -42
  24. package/ios/HediaRecommendationScreen/Images.xcassets/AppIcon.appiconset/Contents.json +37 -37
  25. package/ios/HediaRecommendationScreen/Images.xcassets/Contents.json +6 -6
  26. package/ios/HediaRecommendationScreen/Info.plist +57 -57
  27. package/ios/HediaRecommendationScreen/main.m +9 -9
  28. package/ios/HediaRecommendationScreen-tvOS/Info.plist +53 -53
  29. package/ios/HediaRecommendationScreen-tvOSTests/Info.plist +24 -24
  30. package/ios/HediaRecommendationScreen.xcodeproj/project.pbxproj +807 -807
  31. package/ios/HediaRecommendationScreen.xcodeproj/xcshareddata/xcschemes/HediaRecommendationScreen-tvOS.xcscheme +88 -88
  32. package/ios/HediaRecommendationScreen.xcodeproj/xcshareddata/xcschemes/HediaRecommendationScreen.xcscheme +88 -88
  33. package/ios/HediaRecommendationScreenTests/HediaRecommendationScreenTests.m +65 -65
  34. package/ios/HediaRecommendationScreenTests/Info.plist +24 -24
  35. package/ios/Podfile +104 -104
  36. package/package.json +1 -3
  37. package/src/RecommendationScreen.d.ts +42 -42
  38. package/src/RecommendationScreen.js +126 -127
  39. package/src/RecommendationScreen.tsx +3 -4
  40. package/src/components/Emotion.d.ts +14 -14
  41. package/src/components/Emotion.js +50 -51
  42. package/src/components/Emotion.tsx +1 -2
  43. package/src/components/Header.d.ts +52 -52
  44. package/src/components/Header.js +63 -64
  45. package/src/components/Header.tsx +1 -2
  46. package/src/components/Icon.js +41 -41
  47. package/src/components/InfoBars.d.ts +67 -67
  48. package/src/components/InfoBars.js +71 -71
  49. package/src/components/InvisibleNumberInput.d.ts +24 -24
  50. package/src/components/InvisibleNumberInput.js +64 -64
  51. package/src/components/MoodIcon.d.ts +14 -14
  52. package/src/components/MoodIcon.js +51 -51
  53. package/src/components/RecentInsulin.d.ts +9 -9
  54. package/src/components/RecentInsulin.js +75 -76
  55. package/src/components/RecentInsulin.tsx +4 -5
  56. package/src/components/RecommendedCarbs.d.ts +30 -30
  57. package/src/components/RecommendedCarbs.js +146 -147
  58. package/src/components/RecommendedCarbs.tsx +8 -9
  59. package/src/components/RecommendedInsulin.d.ts +22 -22
  60. package/src/components/RecommendedInsulin.js +93 -94
  61. package/src/components/RecommendedInsulin.tsx +2 -3
  62. package/src/components/Remeasure.d.ts +13 -13
  63. package/src/components/Remeasure.js +76 -77
  64. package/src/components/Remeasure.tsx +3 -4
  65. package/src/components/TransferToLogbook.d.ts +14 -14
  66. package/src/components/TransferToLogbook.js +75 -76
  67. package/src/components/TransferToLogbook.tsx +2 -3
  68. package/src/locale/da/messages.js +1 -1
  69. package/src/locale/da/messages.po +31 -29
  70. package/src/locale/en/messages.js +1 -1
  71. package/src/locale/en/messages.po +32 -30
  72. package/src/locale/i18nUtils.d.ts +5 -5
  73. package/src/locale/i18nUtils.js +22 -22
  74. package/src/types/enum.d.ts +26 -26
  75. package/src/types/enum.js +34 -34
  76. package/src/types/types.d.ts +21 -21
  77. package/src/types/types.js +2 -2
  78. package/src/utils/Constants.d.ts +3 -3
  79. package/src/utils/Constants.js +6 -6
  80. package/src/utils/RecommendationError.d.ts +9 -9
  81. package/src/utils/RecommendationError.js +16 -17
  82. package/src/utils/RecommendationError.ts +4 -6
  83. package/src/utils/Utils.d.ts +5 -5
  84. package/src/utils/Utils.js +24 -24
  85. package/.prettierignore +0 -2
  86. package/index-git.sh +0 -5
@@ -1,55 +1,54 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const macro_1 = require("@lingui/macro");
7
- const react_1 = __importDefault(require("react"));
8
- const react_native_1 = require("react-native");
9
- const i18nUtils_1 = require("../locale/i18nUtils");
10
- const enum_1 = require("../types/enum");
11
- const MoodIcon_1 = __importDefault(require("./MoodIcon"));
12
- class Emotion extends react_1.default.Component {
13
- constructor() {
14
- super(...arguments);
15
- this.state = {
16
- selected: 0,
17
- };
18
- this.handleIconPress = (selected, toggle) => {
19
- const select = toggle ? selected : 0;
20
- this.setState({
21
- selected: select,
22
- });
23
- this.props.moodSelected(select);
24
- };
25
- }
26
- render() {
27
- const values = Object.values(enum_1.MoodEnum).filter((val) => isNaN(Number(val)));
28
- const mapped = values.map((key) => {
29
- const moodValue = enum_1.MoodEnum[key];
30
- return (<MoodIcon_1.default onPress={(toggle) => this.handleIconPress(moodValue, toggle)} active={moodValue === this.state.selected} mood={moodValue} key={moodValue}/>);
31
- });
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const react_1 = __importDefault(require("react"));
7
+ const react_native_1 = require("react-native");
8
+ const i18nUtils_1 = require("../locale/i18nUtils");
9
+ const enum_1 = require("../types/enum");
10
+ const MoodIcon_1 = __importDefault(require("./MoodIcon"));
11
+ class Emotion extends react_1.default.Component {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.state = {
15
+ selected: 0,
16
+ };
17
+ this.handleIconPress = (selected, toggle) => {
18
+ const select = toggle ? selected : 0;
19
+ this.setState({
20
+ selected: select,
21
+ });
22
+ this.props.moodSelected(select);
23
+ };
24
+ }
25
+ render() {
26
+ const values = Object.values(enum_1.MoodEnum).filter((val) => isNaN(Number(val)));
27
+ const mapped = values.map((key) => {
28
+ const moodValue = enum_1.MoodEnum[key];
29
+ return (<MoodIcon_1.default onPress={(toggle) => this.handleIconPress(moodValue, toggle)} active={moodValue === this.state.selected} mood={moodValue} key={moodValue}/>);
30
+ });
32
31
  return (<react_native_1.View style={emotionStyles.container}>
33
32
  <react_native_1.View style={emotionStyles.feelingContainer}>
34
- <react_native_1.Text style={emotionStyles.feelingText}>{i18nUtils_1.i18n._(macro_1.t `How are you feeling?`)}</react_native_1.Text>
33
+ <react_native_1.Text style={emotionStyles.feelingText}>{i18nUtils_1.i18n._("How are you feeling?")}</react_native_1.Text>
35
34
  </react_native_1.View>
36
35
  <react_native_1.View style={emotionStyles.moodIconContainer}>{mapped}</react_native_1.View>
37
- </react_native_1.View>);
38
- }
39
- }
40
- exports.default = Emotion;
41
- const emotionStyles = react_native_1.StyleSheet.create({
42
- container: {
43
- flex: 1,
44
- },
45
- feelingContainer: {
46
- marginVertical: `3%`,
47
- },
48
- feelingText: {
49
- textAlign: `center`,
50
- color: `white`,
51
- fontWeight: `bold`,
52
- fontSize: react_native_1.Dimensions.get(`screen`).width / 26,
53
- },
54
- moodIconContainer: { flex: 1, flexDirection: `row`, justifyContent: `center` },
55
- });
36
+ </react_native_1.View>);
37
+ }
38
+ }
39
+ exports.default = Emotion;
40
+ const emotionStyles = react_native_1.StyleSheet.create({
41
+ container: {
42
+ flex: 1,
43
+ },
44
+ feelingContainer: {
45
+ marginVertical: `3%`,
46
+ },
47
+ feelingText: {
48
+ textAlign: `center`,
49
+ color: `white`,
50
+ fontWeight: `bold`,
51
+ fontSize: react_native_1.Dimensions.get(`screen`).width / 26,
52
+ },
53
+ moodIconContainer: { flex: 1, flexDirection: `row`, justifyContent: `center` },
54
+ });
@@ -1,4 +1,3 @@
1
- import { t } from "@lingui/macro";
2
1
  import React from "react";
3
2
  import { Dimensions, Image, StyleSheet, Text, View } from "react-native";
4
3
  import { i18n } from "../locale/i18nUtils";
@@ -46,7 +45,7 @@ export default class Emotion extends React.Component<IProps, IState> {
46
45
  return (
47
46
  <View style={emotionStyles.container}>
48
47
  <View style={emotionStyles.feelingContainer}>
49
- <Text style={emotionStyles.feelingText}>{i18n._(t`How are you feeling?`)}</Text>
48
+ <Text style={emotionStyles.feelingText}>{i18n._("How are you feeling?")}</Text>
50
49
  </View>
51
50
  <View style={emotionStyles.moodIconContainer}>{mapped}</View>
52
51
  </View>
@@ -1,52 +1,52 @@
1
- import React from "react";
2
- import { IRecommendationProps } from "../RecommendationScreen";
3
- interface IProps {
4
- exitCallback: IRecommendationProps["exitCallback"];
5
- }
6
- interface IState {
7
- hello: string;
8
- }
9
- export default class Header extends React.Component<IProps, IState> {
10
- state: IState;
11
- render(): JSX.Element;
12
- }
13
- export declare const headerStyles: {
14
- backgroundColour: {
15
- backgroundColor: string;
16
- };
17
- margin: {
18
- margin: string;
19
- flexDirection: "row";
20
- flex: number;
21
- };
22
- headerContainer: {
23
- flexDirection: "row";
24
- flex: number;
25
- };
26
- exitButtonContainer: {
27
- flex: number;
28
- };
29
- exitButton: {
30
- flex: number;
31
- };
32
- iconStyle: {
33
- fontSize: number;
34
- color: string;
35
- };
36
- headerTextContainer: {
37
- flex: number;
38
- justifyContent: "center";
39
- alignItems: "center";
40
- marginTop: string;
41
- };
42
- headerText: {
43
- fontSize: number;
44
- fontWeight: "bold";
45
- textAlign: "center";
46
- color: string;
47
- };
48
- headerFiller: {
49
- flex: number;
50
- };
51
- };
52
- export {};
1
+ import React from "react";
2
+ import { IRecommendationProps } from "../RecommendationScreen";
3
+ interface IProps {
4
+ exitCallback: IRecommendationProps["exitCallback"];
5
+ }
6
+ interface IState {
7
+ hello: string;
8
+ }
9
+ export default class Header extends React.Component<IProps, IState> {
10
+ state: IState;
11
+ render(): JSX.Element;
12
+ }
13
+ export declare const headerStyles: {
14
+ backgroundColour: {
15
+ backgroundColor: string;
16
+ };
17
+ margin: {
18
+ margin: string;
19
+ flexDirection: "row";
20
+ flex: number;
21
+ };
22
+ headerContainer: {
23
+ flexDirection: "row";
24
+ flex: number;
25
+ };
26
+ exitButtonContainer: {
27
+ flex: number;
28
+ };
29
+ exitButton: {
30
+ flex: number;
31
+ };
32
+ iconStyle: {
33
+ fontSize: number;
34
+ color: string;
35
+ };
36
+ headerTextContainer: {
37
+ flex: number;
38
+ justifyContent: "center";
39
+ alignItems: "center";
40
+ marginTop: string;
41
+ };
42
+ headerText: {
43
+ fontSize: number;
44
+ fontWeight: "bold";
45
+ textAlign: "center";
46
+ color: string;
47
+ };
48
+ headerFiller: {
49
+ flex: number;
50
+ };
51
+ };
52
+ export {};
@@ -1,23 +1,22 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.headerStyles = void 0;
7
- const macro_1 = require("@lingui/macro");
8
- const react_1 = __importDefault(require("react"));
9
- const react_native_1 = require("react-native");
10
- const i18nUtils_1 = require("../locale/i18nUtils");
11
- const Constants_1 = require("../utils/Constants");
12
- const Icon_1 = __importDefault(require("./Icon"));
13
- class Header extends react_1.default.Component {
14
- constructor() {
15
- super(...arguments);
16
- this.state = {
17
- hello: `World`,
18
- };
19
- }
20
- render() {
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.headerStyles = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const react_native_1 = require("react-native");
9
+ const i18nUtils_1 = require("../locale/i18nUtils");
10
+ const Constants_1 = require("../utils/Constants");
11
+ const Icon_1 = __importDefault(require("./Icon"));
12
+ class Header extends react_1.default.Component {
13
+ constructor() {
14
+ super(...arguments);
15
+ this.state = {
16
+ hello: `World`,
17
+ };
18
+ }
19
+ render() {
21
20
  return (<react_1.default.Fragment>
22
21
  <react_native_1.SafeAreaView style={exports.headerStyles.backgroundColour}/>
23
22
  <react_native_1.View style={exports.headerStyles.headerContainer}>
@@ -32,52 +31,52 @@ class Header extends react_1.default.Component {
32
31
  </react_native_1.View>
33
32
  <react_native_1.View style={exports.headerStyles.headerTextContainer}>
34
33
  <react_native_1.Text style={exports.headerStyles.headerText} testID="headerText">
35
- {i18nUtils_1.i18n._(macro_1.t `INSULIN\nRECOMMENDATION`)}
34
+ {i18nUtils_1.i18n._("INSULIN\nRECOMMENDATION")}
36
35
  </react_native_1.Text>
37
36
  </react_native_1.View>
38
37
  <react_native_1.View style={exports.headerStyles.headerFiller}/>
39
38
  </react_native_1.View>
40
39
  </react_native_1.View>
41
- </react_1.default.Fragment>);
42
- }
43
- }
44
- exports.default = Header;
45
- exports.headerStyles = react_native_1.StyleSheet.create({
46
- backgroundColour: {
47
- backgroundColor: Constants_1.BACKGROUND_COLOUR_PURPLE,
48
- },
49
- margin: {
50
- margin: `3%`,
51
- flexDirection: `row`,
52
- flex: 1,
53
- },
54
- headerContainer: {
55
- flexDirection: `row`,
56
- flex: 1,
57
- },
58
- exitButtonContainer: {
59
- flex: 1,
60
- },
61
- exitButton: {
62
- flex: 1,
63
- },
64
- iconStyle: {
65
- fontSize: react_native_1.Dimensions.get(`screen`).width / 10,
66
- color: Constants_1.BORDER_COLOUR_WHITE,
67
- },
68
- headerTextContainer: {
69
- flex: 5,
70
- justifyContent: `center`,
71
- alignItems: `center`,
72
- marginTop: `5%`,
73
- },
74
- headerText: {
75
- fontSize: react_native_1.Dimensions.get(`screen`).width / 14,
76
- fontWeight: `bold`,
77
- textAlign: `center`,
78
- color: `white`,
79
- },
80
- headerFiller: {
81
- flex: 1,
82
- },
83
- });
40
+ </react_1.default.Fragment>);
41
+ }
42
+ }
43
+ exports.default = Header;
44
+ exports.headerStyles = react_native_1.StyleSheet.create({
45
+ backgroundColour: {
46
+ backgroundColor: Constants_1.BACKGROUND_COLOUR_PURPLE,
47
+ },
48
+ margin: {
49
+ margin: `3%`,
50
+ flexDirection: `row`,
51
+ flex: 1,
52
+ },
53
+ headerContainer: {
54
+ flexDirection: `row`,
55
+ flex: 1,
56
+ },
57
+ exitButtonContainer: {
58
+ flex: 1,
59
+ },
60
+ exitButton: {
61
+ flex: 1,
62
+ },
63
+ iconStyle: {
64
+ fontSize: react_native_1.Dimensions.get(`screen`).width / 10,
65
+ color: Constants_1.BORDER_COLOUR_WHITE,
66
+ },
67
+ headerTextContainer: {
68
+ flex: 5,
69
+ justifyContent: `center`,
70
+ alignItems: `center`,
71
+ marginTop: `5%`,
72
+ },
73
+ headerText: {
74
+ fontSize: react_native_1.Dimensions.get(`screen`).width / 14,
75
+ fontWeight: `bold`,
76
+ textAlign: `center`,
77
+ color: `white`,
78
+ },
79
+ headerFiller: {
80
+ flex: 1,
81
+ },
82
+ });
@@ -1,4 +1,3 @@
1
- import { t } from "@lingui/macro";
2
1
  import React from "react";
3
2
  import { Dimensions, SafeAreaView, StyleSheet, Text, TouchableOpacity, View } from "react-native";
4
3
  import { i18n } from "../locale/i18nUtils";
@@ -42,7 +41,7 @@ export default class Header extends React.Component<IProps, IState> {
42
41
  </View>
43
42
  <View style={headerStyles.headerTextContainer}>
44
43
  <Text style={headerStyles.headerText} testID="headerText">
45
- {i18n._(t`INSULIN\nRECOMMENDATION`)}
44
+ {i18n._("INSULIN\nRECOMMENDATION")}
46
45
  </Text>
47
46
  </View>
48
47
  <View style={headerStyles.headerFiller} />
@@ -1,41 +1,41 @@
1
- import React from "react";
2
-
3
- const IconSets = {
4
- AntDesign: require(`react-native-vector-icons/AntDesign`),
5
- Feather: require(`react-native-vector-icons/Feather`),
6
- EvilIcons: require(`react-native-vector-icons/EvilIcons`),
7
- Ionicons: require(`react-native-vector-icons/Ionicons`),
8
- FontAwesome: require(`react-native-vector-icons/FontAwesome`),
9
- Entypo: require(`react-native-vector-icons/Entypo`),
10
- };
11
-
12
- export default class Icon extends React.Component {
13
- setNativeProps(nativeProps) {
14
- this._root.setNativeProps(nativeProps);
15
- }
16
-
17
- render() {
18
- const iconParts = this.props.iconIdentifier.split(`/`);
19
- let iconPackageName = iconParts[0];
20
- let iconName = iconParts[1];
21
- if (!IconSets[iconPackageName]) {
22
- iconPackageName = `FontAwesome`;
23
- iconName = `question`;
24
- }
25
- const IconClass = IconSets[iconPackageName].default;
26
- const clonedProps = { ...this.props, name: iconName };
27
- delete clonedProps.iconIdentifier;
28
-
29
- // Support FontAwesome5's solid/light/brand
30
- if (clonedProps.iconStyle) {
31
- clonedProps[clonedProps.iconStyle] = true;
32
- }
33
- delete clonedProps.iconStyle;
34
-
35
- return <IconClass {...clonedProps} ref={(component) => (this._root = component)} />;
36
- }
37
- }
38
-
39
- Icon.defaultProps = {
40
- iconIdentifier: `FontAwesome/question`,
41
- };
1
+ import React from "react";
2
+
3
+ const IconSets = {
4
+ AntDesign: require(`react-native-vector-icons/AntDesign`),
5
+ Feather: require(`react-native-vector-icons/Feather`),
6
+ EvilIcons: require(`react-native-vector-icons/EvilIcons`),
7
+ Ionicons: require(`react-native-vector-icons/Ionicons`),
8
+ FontAwesome: require(`react-native-vector-icons/FontAwesome`),
9
+ Entypo: require(`react-native-vector-icons/Entypo`),
10
+ };
11
+
12
+ export default class Icon extends React.Component {
13
+ setNativeProps(nativeProps) {
14
+ this._root.setNativeProps(nativeProps);
15
+ }
16
+
17
+ render() {
18
+ const iconParts = this.props.iconIdentifier.split(`/`);
19
+ let iconPackageName = iconParts[0];
20
+ let iconName = iconParts[1];
21
+ if (!IconSets[iconPackageName]) {
22
+ iconPackageName = `FontAwesome`;
23
+ iconName = `question`;
24
+ }
25
+ const IconClass = IconSets[iconPackageName].default;
26
+ const clonedProps = { ...this.props, name: iconName };
27
+ delete clonedProps.iconIdentifier;
28
+
29
+ // Support FontAwesome5's solid/light/brand
30
+ if (clonedProps.iconStyle) {
31
+ clonedProps[clonedProps.iconStyle] = true;
32
+ }
33
+ delete clonedProps.iconStyle;
34
+
35
+ return <IconClass {...clonedProps} ref={(component) => (this._root = component)} />;
36
+ }
37
+ }
38
+
39
+ Icon.defaultProps = {
40
+ iconIdentifier: `FontAwesome/question`,
41
+ };
@@ -1,67 +1,67 @@
1
- import React from "react";
2
- export interface IProps {
3
- label: string;
4
- value?: string;
5
- units: string;
6
- showZeroAsDash: boolean;
7
- }
8
- export default class InfoBars extends React.Component<IProps> {
9
- render(): JSX.Element;
10
- }
11
- export declare const infoStyles: {
12
- container: {
13
- flex: number;
14
- };
15
- margin: {
16
- flex: number;
17
- margin: string;
18
- marginBottom: number;
19
- };
20
- border: {
21
- borderWidth: number;
22
- borderColor: string;
23
- borderRadius: number;
24
- };
25
- borderContainer: {
26
- flex: number;
27
- flexDirection: "row";
28
- justifyContent: "space-between";
29
- paddingLeft: string;
30
- paddingRight: string;
31
- };
32
- labelContainer: {
33
- flex: number;
34
- justifyContent: "center";
35
- };
36
- label: {
37
- color: string;
38
- fontSize: number;
39
- fontWeight: "bold";
40
- };
41
- valueUnitContainer: {
42
- flex: number;
43
- justifyContent: "flex-end";
44
- flexDirection: "row";
45
- };
46
- valueContainer: {
47
- flex: number;
48
- justifyContent: "flex-end";
49
- };
50
- value: {
51
- color: string;
52
- fontSize: number;
53
- fontWeight: "bold";
54
- textAlign: "right";
55
- };
56
- unitContainer: {
57
- flex: number;
58
- justifyContent: "flex-end";
59
- paddingBottom: string;
60
- };
61
- units: {
62
- color: string;
63
- fontSize: number;
64
- textAlign: "left";
65
- paddingLeft: string;
66
- };
67
- };
1
+ import React from "react";
2
+ export interface IProps {
3
+ label: string;
4
+ value?: string;
5
+ units: string;
6
+ showZeroAsDash: boolean;
7
+ }
8
+ export default class InfoBars extends React.Component<IProps> {
9
+ render(): JSX.Element;
10
+ }
11
+ export declare const infoStyles: {
12
+ container: {
13
+ flex: number;
14
+ };
15
+ margin: {
16
+ flex: number;
17
+ margin: string;
18
+ marginBottom: number;
19
+ };
20
+ border: {
21
+ borderWidth: number;
22
+ borderColor: string;
23
+ borderRadius: number;
24
+ };
25
+ borderContainer: {
26
+ flex: number;
27
+ flexDirection: "row";
28
+ justifyContent: "space-between";
29
+ paddingLeft: string;
30
+ paddingRight: string;
31
+ };
32
+ labelContainer: {
33
+ flex: number;
34
+ justifyContent: "center";
35
+ };
36
+ label: {
37
+ color: string;
38
+ fontSize: number;
39
+ fontWeight: "bold";
40
+ };
41
+ valueUnitContainer: {
42
+ flex: number;
43
+ justifyContent: "flex-end";
44
+ flexDirection: "row";
45
+ };
46
+ valueContainer: {
47
+ flex: number;
48
+ justifyContent: "flex-end";
49
+ };
50
+ value: {
51
+ color: string;
52
+ fontSize: number;
53
+ fontWeight: "bold";
54
+ textAlign: "right";
55
+ };
56
+ unitContainer: {
57
+ flex: number;
58
+ justifyContent: "flex-end";
59
+ paddingBottom: string;
60
+ };
61
+ units: {
62
+ color: string;
63
+ fontSize: number;
64
+ textAlign: "left";
65
+ paddingLeft: string;
66
+ };
67
+ };