@equinor/mad-core 0.5.0 → 0.5.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/CHANGELOG.md +7 -0
- package/dist/{chunk-XFB63XJG.js → chunk-K4I6DYU6.js} +1 -1
- package/dist/{chunk-OJ5S2BRL.js → chunk-SAN5LMEQ.js} +1 -1
- package/dist/{chunk-MUSZK2ZB.js → chunk-SKYDZALS.js} +4 -4
- package/dist/components/createCoreStackNavigator.js +3 -3
- package/dist/components/index.js +3 -3
- package/dist/components/screens/create-incident/CreateIncidentScreen.js +1 -1
- package/dist/index.js +3 -3
- package/dist/utils/createMadCoreNavigator.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -18,11 +18,12 @@ import {
|
|
|
18
18
|
Button,
|
|
19
19
|
Cell,
|
|
20
20
|
EDSStyleSheet,
|
|
21
|
+
Spacer,
|
|
21
22
|
TextField,
|
|
22
23
|
Typography,
|
|
23
24
|
useStyles
|
|
24
25
|
} from "@equinor/mad-components";
|
|
25
|
-
import { View, LayoutAnimation } from "react-native";
|
|
26
|
+
import { View, LayoutAnimation, ScrollView } from "react-native";
|
|
26
27
|
import * as Device from "expo-device";
|
|
27
28
|
import * as Localization from "expo-localization";
|
|
28
29
|
var CreateIncidentScreen = () => {
|
|
@@ -80,7 +81,7 @@ var CreateIncidentScreen = () => {
|
|
|
80
81
|
return `${description}
|
|
81
82
|
${ticketDescription}`;
|
|
82
83
|
};
|
|
83
|
-
return /* @__PURE__ */ React.createElement(
|
|
84
|
+
return /* @__PURE__ */ React.createElement(ScrollView, { contentInsetAdjustmentBehavior: "automatic" }, /* @__PURE__ */ React.createElement(Spacer, null), /* @__PURE__ */ React.createElement(Cell, null, /* @__PURE__ */ React.createElement(View, { style: styles.topTextContainer }, /* @__PURE__ */ React.createElement(Typography, { variant: "h1" }, "Create ticket in ServiceNow"), /* @__PURE__ */ React.createElement(Typography, { group: "paragraph", variant: "body_short" }, "We collect information about your device as part of our feedback process. By submitting, you agree to share the following information:")), /* @__PURE__ */ React.createElement(UserInfo, { infoType: "User", infoValue: account == null ? void 0 : account.username }), /* @__PURE__ */ React.createElement(UserInfo, { infoType: "Device Brand", infoValue: Device.brand }), /* @__PURE__ */ React.createElement(UserInfo, { infoType: "Device", infoValue: Device.deviceName }), /* @__PURE__ */ React.createElement(UserInfo, { infoType: "Operating System", infoValue: Device.osVersion }), /* @__PURE__ */ React.createElement(UserInfo, { infoType: "Time Zone", infoValue: Localization.timezone }), /* @__PURE__ */ React.createElement(UserInfo, { infoType: "Area", infoValue: Localization.locale }), ticketNumber && /* @__PURE__ */ React.createElement(View, { style: [styles.popupBox, styles.popupSuccess] }, /* @__PURE__ */ React.createElement(Typography, null, `Ticket number: ${ticketNumber}`)), error && /* @__PURE__ */ React.createElement(View, { style: [styles.popupBox, styles.popupDanger] }, /* @__PURE__ */ React.createElement(Typography, null, `An error occurred creating your ticket: ${error}`)), /* @__PURE__ */ React.createElement(View, { style: styles.titleField }, /* @__PURE__ */ React.createElement(
|
|
84
85
|
TextField,
|
|
85
86
|
{
|
|
86
87
|
onChange: setTicketTitle,
|
|
@@ -109,8 +110,7 @@ ${ticketDescription}`;
|
|
|
109
110
|
};
|
|
110
111
|
var createIncidentStyles = EDSStyleSheet.create((theme) => ({
|
|
111
112
|
container: {
|
|
112
|
-
|
|
113
|
-
paddingVertical: theme.geometry.dimension.cell.minHeight
|
|
113
|
+
paddingVertical: theme.spacing.container.paddingVertical
|
|
114
114
|
},
|
|
115
115
|
topTextContainer: {
|
|
116
116
|
paddingBottom: theme.geometry.dimension.cell.minHeight
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCoreStackNavigator
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-SAN5LMEQ.js";
|
|
4
4
|
import "../chunk-2GCLIPZP.js";
|
|
5
5
|
import "../chunk-TF36L3FR.js";
|
|
6
6
|
import "../chunk-JVWGVT35.js";
|
|
@@ -8,8 +8,8 @@ import "../chunk-QHCU7RLF.js";
|
|
|
8
8
|
import "../chunk-YWPELSTX.js";
|
|
9
9
|
import "../chunk-SHKOH7MA.js";
|
|
10
10
|
import "../chunk-ZSUFR7LK.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-K4I6DYU6.js";
|
|
12
|
+
import "../chunk-SKYDZALS.js";
|
|
13
13
|
import "../chunk-5IS2WJYY.js";
|
|
14
14
|
import "../chunk-CAOQCE6W.js";
|
|
15
15
|
import "../chunk-WR2XIM3H.js";
|
package/dist/components/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "../chunk-W3LMT7N4.js";
|
|
17
17
|
import {
|
|
18
18
|
createCoreStackNavigator
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-SAN5LMEQ.js";
|
|
20
20
|
import "../chunk-2GCLIPZP.js";
|
|
21
21
|
import {
|
|
22
22
|
createBottomTabNavigator,
|
|
@@ -27,8 +27,8 @@ import "../chunk-QHCU7RLF.js";
|
|
|
27
27
|
import "../chunk-YWPELSTX.js";
|
|
28
28
|
import "../chunk-SHKOH7MA.js";
|
|
29
29
|
import "../chunk-ZSUFR7LK.js";
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-K4I6DYU6.js";
|
|
31
|
+
import "../chunk-SKYDZALS.js";
|
|
32
32
|
import "../chunk-5IS2WJYY.js";
|
|
33
33
|
import "../chunk-CAOQCE6W.js";
|
|
34
34
|
import "../chunk-WR2XIM3H.js";
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-W3LMT7N4.js";
|
|
18
18
|
import {
|
|
19
19
|
createCoreStackNavigator
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-SAN5LMEQ.js";
|
|
21
21
|
import "./chunk-2GCLIPZP.js";
|
|
22
22
|
import {
|
|
23
23
|
createBottomTabNavigator,
|
|
@@ -28,8 +28,8 @@ import "./chunk-QHCU7RLF.js";
|
|
|
28
28
|
import "./chunk-YWPELSTX.js";
|
|
29
29
|
import "./chunk-SHKOH7MA.js";
|
|
30
30
|
import "./chunk-ZSUFR7LK.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-K4I6DYU6.js";
|
|
32
|
+
import "./chunk-SKYDZALS.js";
|
|
33
33
|
import "./chunk-5IS2WJYY.js";
|
|
34
34
|
import "./chunk-CAOQCE6W.js";
|
|
35
35
|
import "./chunk-WR2XIM3H.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createMadCoreNavigator
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-K4I6DYU6.js";
|
|
4
|
+
import "../chunk-SKYDZALS.js";
|
|
5
5
|
import "../chunk-5IS2WJYY.js";
|
|
6
6
|
import "../chunk-CAOQCE6W.js";
|
|
7
7
|
import "../chunk-WR2XIM3H.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/mad-core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Core library for the Mobile App Delivery team",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"zustand": "^4.4.1",
|
|
38
38
|
"@equinor/mad-auth": "0.1.13",
|
|
39
39
|
"@equinor/mad-components": "0.12.2",
|
|
40
|
-
"@equinor/mad-
|
|
41
|
-
"@equinor/mad-
|
|
40
|
+
"@equinor/mad-navigation": "0.3.0",
|
|
41
|
+
"@equinor/mad-insights": "0.1.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@babel/core": "^7.21.4",
|