@equinor/mad-dfw 0.3.0 → 0.3.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @equinor/mad-dfw
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - ae0f906: Added loading prop to the buttons in the `WorkOrderCell` component
8
+
3
9
  ## 0.3.0
4
10
 
5
11
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  WorkOrderCell
3
- } from "./chunk-GZZZUFR3.js";
3
+ } from "./chunk-TPYVM6NR.js";
4
4
  import {
5
5
  WorkOrderCellNavigation
6
6
  } from "./chunk-6X2PRIG5.js";
@@ -93,6 +93,7 @@ var WorkOrderCell = (_a) => {
93
93
  title: "Start job",
94
94
  variant: "outlined",
95
95
  disabled: startJobButton.disabled,
96
+ loading: startJobButton.loading,
96
97
  onPress: startJobButton.onPress
97
98
  }
98
99
  ),
@@ -102,7 +103,8 @@ var WorkOrderCell = (_a) => {
102
103
  title: "Ready for operation",
103
104
  variant: "outlined",
104
105
  disabled: readyForOperationButton.disabled,
105
- onPress: readyForOperationButton == null ? void 0 : readyForOperationButton.onPress
106
+ loading: readyForOperationButton.loading,
107
+ onPress: readyForOperationButton.onPress
106
108
  }
107
109
  ),
108
110
  (tecoButton == null ? void 0 : tecoButton.visible) && /* @__PURE__ */ React.createElement(
@@ -111,6 +113,7 @@ var WorkOrderCell = (_a) => {
111
113
  title: "Technical complete",
112
114
  variant: "outlined",
113
115
  disabled: tecoButton.disabled,
116
+ loading: tecoButton.loading,
114
117
  onPress: tecoButton.onPress
115
118
  }
116
119
  )
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  WorkOrderCell
3
- } from "../../chunk-GZZZUFR3.js";
3
+ } from "../../chunk-TPYVM6NR.js";
4
4
  import "../../chunk-MCPLMBQO.js";
5
5
  import "../../chunk-JRXLEWCW.js";
6
6
  import "../../chunk-2JQRYR7Z.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  WorkOrderCell
3
- } from "../../chunk-H7FKL5KN.js";
4
- import "../../chunk-GZZZUFR3.js";
3
+ } from "../../chunk-GZT3W2AO.js";
4
+ import "../../chunk-TPYVM6NR.js";
5
5
  import "../../chunk-6X2PRIG5.js";
6
6
  import "../../chunk-MCPLMBQO.js";
7
7
  import "../../chunk-JRXLEWCW.js";
@@ -14,6 +14,7 @@ export type WorkOrder = {
14
14
  };
15
15
  type ButtonOptions = {
16
16
  disabled?: boolean;
17
+ loading?: boolean;
17
18
  visible: boolean;
18
19
  onPress: () => void;
19
20
  };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  WorkOrderCell
3
- } from "./chunk-H7FKL5KN.js";
4
- import "./chunk-GZZZUFR3.js";
3
+ } from "./chunk-GZT3W2AO.js";
4
+ import "./chunk-TPYVM6NR.js";
5
5
  import "./chunk-6X2PRIG5.js";
6
6
  import "./chunk-MCPLMBQO.js";
7
7
  import "./chunk-JRXLEWCW.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/mad-dfw",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "A React Native component library for the Digital Field Worker applications.",
5
5
  "type": "module",
6
6
  "scripts": {