@equinor/mad-core 0.5.0 → 0.5.2

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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @equinor/mad-core
2
2
 
3
+ ## 0.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [45f2215]
8
+ - @equinor/mad-components@0.12.3
9
+ - @equinor/mad-auth@0.1.14
10
+
11
+ ## 0.5.1
12
+
13
+ ### Patch Changes
14
+
15
+ - 04713bc: `CreateIncidentScreen`: Now has a scrollview surrounding the content, making the
16
+ content available on smaller devices
17
+
3
18
  ## 0.5.0
4
19
 
5
20
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CreateIncidentScreen
3
- } from "./chunk-MUSZK2ZB.js";
3
+ } from "./chunk-SKYDZALS.js";
4
4
  import {
5
5
  SelectLanguageScreen
6
6
  } from "./chunk-WR2XIM3H.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-TF36L3FR.js";
4
4
  import {
5
5
  createMadCoreNavigator
6
- } from "./chunk-XFB63XJG.js";
6
+ } from "./chunk-K4I6DYU6.js";
7
7
  import {
8
8
  setConfig
9
9
  } from "./chunk-QPOHC55P.js";
@@ -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(View, { style: styles.container }, /* @__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
+ 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
- display: "flex",
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-OJ5S2BRL.js";
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-XFB63XJG.js";
12
- import "../chunk-MUSZK2ZB.js";
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";
@@ -16,7 +16,7 @@ import {
16
16
  } from "../chunk-W3LMT7N4.js";
17
17
  import {
18
18
  createCoreStackNavigator
19
- } from "../chunk-OJ5S2BRL.js";
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-XFB63XJG.js";
31
- import "../chunk-MUSZK2ZB.js";
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";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CreateIncidentScreen
3
- } from "../../../chunk-MUSZK2ZB.js";
3
+ } from "../../../chunk-SKYDZALS.js";
4
4
  import "../../../chunk-5IS2WJYY.js";
5
5
  import "../../../chunk-CAOQCE6W.js";
6
6
  import "../../../chunk-RFYZGBU4.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-OJ5S2BRL.js";
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-XFB63XJG.js";
32
- import "./chunk-MUSZK2ZB.js";
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-XFB63XJG.js";
4
- import "../chunk-MUSZK2ZB.js";
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.0",
3
+ "version": "0.5.2",
4
4
  "description": "Core library for the Mobile App Delivery team",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -35,8 +35,8 @@
35
35
  "react-native-render-html": "6.3.4",
36
36
  "showdown": "2.1.0",
37
37
  "zustand": "^4.4.1",
38
- "@equinor/mad-auth": "0.1.13",
39
- "@equinor/mad-components": "0.12.2",
38
+ "@equinor/mad-auth": "0.1.14",
39
+ "@equinor/mad-components": "0.12.3",
40
40
  "@equinor/mad-insights": "0.1.1",
41
41
  "@equinor/mad-navigation": "0.3.0"
42
42
  },