@equinor/mad-dfw 0.1.0 → 0.1.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,22 @@
1
1
  # @equinor/mad-dfw
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [dab732c]
8
+ - Updated dependencies [dab732c]
9
+ - Updated dependencies [00e6e0a]
10
+ - Updated dependencies [dab732c]
11
+ - Updated dependencies [00e6e0a]
12
+ - @equinor/mad-components@0.14.12
13
+
14
+ ## 0.1.1
15
+
16
+ ### Patch Changes
17
+
18
+ - 350b5fc: Added a selectable prop to the PropertyRow component
19
+
3
20
  ## 0.1.0
4
21
 
5
22
  ### Minor Changes
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  PropertyRow,
3
3
  __objRest
4
- } from "./chunk-EATHXFY2.js";
4
+ } from "./chunk-TGZYJ3XS.js";
5
5
 
6
6
  // src/dfwcomponents/WorkOrderCell/WorkOrderCell.tsx
7
7
  import React, { useMemo } from "react";
@@ -45,12 +45,14 @@ var PropertyRow = (_a) => {
45
45
  label,
46
46
  value,
47
47
  iconName,
48
- textColor = "textTertiary"
48
+ textColor = "textTertiary",
49
+ selectable
49
50
  } = _b, rest = __objRest(_b, [
50
51
  "label",
51
52
  "value",
52
53
  "iconName",
53
- "textColor"
54
+ "textColor",
55
+ "selectable"
54
56
  ]);
55
57
  const breakpoint = useBreakpoint();
56
58
  const styles = useStyles(themeStyles, { breakpoint });
@@ -62,7 +64,8 @@ var PropertyRow = (_a) => {
62
64
  group: "paragraph",
63
65
  variant: "body_short",
64
66
  color: textColor,
65
- numberOfLines: 1
67
+ numberOfLines: 1,
68
+ selectable
66
69
  },
67
70
  value
68
71
  )));
@@ -6,5 +6,6 @@ export type PropertyRowProps = {
6
6
  value: string;
7
7
  iconName?: IconName;
8
8
  textColor?: Color;
9
+ selectable?: boolean;
9
10
  } & ViewProps;
10
- export declare const PropertyRow: ({ label, value, iconName, textColor, ...rest }: PropertyRowProps) => React.JSX.Element;
11
+ export declare const PropertyRow: ({ label, value, iconName, textColor, selectable, ...rest }: PropertyRowProps) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PropertyRow
3
- } from "../../chunk-EATHXFY2.js";
3
+ } from "../../chunk-TGZYJ3XS.js";
4
4
  export {
5
5
  PropertyRow
6
6
  };
@@ -1,7 +1,7 @@
1
1
  import "../../chunk-2JQRYR7Z.js";
2
2
  import {
3
3
  PropertyRow
4
- } from "../../chunk-EATHXFY2.js";
4
+ } from "../../chunk-TGZYJ3XS.js";
5
5
  export {
6
6
  PropertyRow
7
7
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  WorkOrderCell
3
- } from "../../chunk-ZDARIMJV.js";
3
+ } from "../../chunk-CERI4DFI.js";
4
4
  import "../../chunk-2JQRYR7Z.js";
5
- import "../../chunk-EATHXFY2.js";
5
+ import "../../chunk-TGZYJ3XS.js";
6
6
  export {
7
7
  WorkOrderCell
8
8
  };
@@ -1,9 +1,9 @@
1
1
  import "../../chunk-RW7P2LMK.js";
2
2
  import {
3
3
  WorkOrderCell
4
- } from "../../chunk-ZDARIMJV.js";
4
+ } from "../../chunk-CERI4DFI.js";
5
5
  import "../../chunk-2JQRYR7Z.js";
6
- import "../../chunk-EATHXFY2.js";
6
+ import "../../chunk-TGZYJ3XS.js";
7
7
  export {
8
8
  WorkOrderCell
9
9
  };
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import "./chunk-RW7P2LMK.js";
2
2
  import {
3
3
  WorkOrderCell
4
- } from "./chunk-ZDARIMJV.js";
4
+ } from "./chunk-CERI4DFI.js";
5
5
  import "./chunk-2JQRYR7Z.js";
6
6
  import {
7
7
  PropertyRow
8
- } from "./chunk-EATHXFY2.js";
8
+ } from "./chunk-TGZYJ3XS.js";
9
9
  export {
10
10
  PropertyRow,
11
11
  WorkOrderCell
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/mad-dfw",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "A React Native component library for the Digital Field Worker applications.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -8,7 +8,7 @@
8
8
  "test": "jest",
9
9
  "dev": "tsup-node --watch --clean=false",
10
10
  "lint": "eslint src/",
11
- "clean": "rm -rf node_modules/ && rm -rf dist/"
11
+ "clean": "rm -rf node_modules dist .turbo"
12
12
  },
13
13
  "keywords": [
14
14
  "react native",
@@ -34,10 +34,10 @@
34
34
  "react-native": ">=0.70"
35
35
  },
36
36
  "dependencies": {
37
- "@equinor/mad-components": "*"
37
+ "@equinor/mad-components": "workspace:*"
38
38
  },
39
39
  "devDependencies": {
40
- "@equinor/eslint-config-mad": "*"
40
+ "@equinor/eslint-config-mad": "workspace:*"
41
41
  },
42
42
  "files": [
43
43
  "CODE_OF_CONDUCT.md",
@@ -45,4 +45,4 @@
45
45
  "CHANGELOG.md",
46
46
  "dist"
47
47
  ]
48
- }
48
+ }