@trackunit/criticality-indicator 0.0.190 → 0.0.193

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/index.cjs.js CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var jsxRuntime = require('react/jsx-runtime');
6
4
  var i18nLibraryTranslation = require('@trackunit/i18n-library-translation');
7
5
  var reactComponents = require('@trackunit/react-components');
@@ -114,7 +112,7 @@ const useCriticality = state => {
114
112
  */
115
113
  const CriticalityIndicator = (props) => {
116
114
  const { criticalityIndicator } = useCriticality(props.state);
117
- return criticalityIndicator ? jsxRuntime.jsx(reactComponents.Indicator, Object.assign({}, criticalityIndicator, props)) : null;
115
+ return criticalityIndicator ? jsxRuntime.jsx(reactComponents.Indicator, { ...criticalityIndicator, ...props }) : null;
118
116
  };
119
117
 
120
118
  /*
package/index.esm.js CHANGED
@@ -110,7 +110,7 @@ const useCriticality = state => {
110
110
  */
111
111
  const CriticalityIndicator = (props) => {
112
112
  const { criticalityIndicator } = useCriticality(props.state);
113
- return criticalityIndicator ? jsx(Indicator, Object.assign({}, criticalityIndicator, props)) : null;
113
+ return criticalityIndicator ? jsx(Indicator, { ...criticalityIndicator, ...props }) : null;
114
114
  };
115
115
 
116
116
  /*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/criticality-indicator",
3
- "version": "0.0.190",
3
+ "version": "0.0.193",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -13,5 +13,6 @@
13
13
  "jest-fetch-mock": "^3.0.3"
14
14
  },
15
15
  "module": "./index.esm.js",
16
- "main": "./index.cjs.js"
17
- }
16
+ "main": "./index.cjs.js",
17
+ "types": "./index.esm.d.ts"
18
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CommonProps, IndicatorProps } from "@trackunit/react-components";
3
2
  import { AssetCriticalityState } from "./types";
4
3
  export interface CriticalityIndicatorProps extends Pick<IndicatorProps, "withBackground" | "withLabel" | "ping">, CommonProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { NamespaceTransProps, TransForLibs, TranslationResource } from "@trackunit/i18n-library-translation";
3
2
  import defaultTranslations from "./locales/en/translation.json";
4
3
  /** A type for all available translation keys in this library */
@@ -27,7 +26,7 @@ export type TranslationFunction = TransForLibs<TranslationKeys>;
27
26
  /**
28
27
  * Trans for this specific library.
29
28
  */
30
- export declare const Trans: (props: NamespaceTransProps<TranslationKeys>) => JSX.Element;
29
+ export declare const Trans: (props: NamespaceTransProps<TranslationKeys>) => import("react/jsx-runtime").JSX.Element;
31
30
  /**
32
31
  * Registers the translations for this library
33
32
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CriticalityColors } from "@trackunit/ui-design-tokens";
3
2
  import { AssetCriticalityState } from "./types";
4
3
  type UseCriticality = (state?: AssetCriticalityState) => {
@@ -6,4 +6,4 @@ var translation = {
6
6
  "indicator.none": "Gut"
7
7
  };
8
8
 
9
- exports["default"] = translation;
9
+ exports.default = translation;
@@ -6,4 +6,4 @@ var translation = {
6
6
  "indicator.none": "Dobrze"
7
7
  };
8
8
 
9
- exports["default"] = translation;
9
+ exports.default = translation;
@@ -6,4 +6,4 @@ var translation = {
6
6
  "indicator.none": "Bom"
7
7
  };
8
8
 
9
- exports["default"] = translation;
9
+ exports.default = translation;
@@ -6,4 +6,4 @@ var translation = {
6
6
  "indicator.none": "Хорошо"
7
7
  };
8
8
 
9
- exports["default"] = translation;
9
+ exports.default = translation;
@@ -6,4 +6,4 @@ var translation = {
6
6
  "indicator.none": "Bun"
7
7
  };
8
8
 
9
- exports["default"] = translation;
9
+ exports.default = translation;
@@ -6,4 +6,4 @@ var translation = {
6
6
  "indicator.none": "Bien"
7
7
  };
8
8
 
9
- exports["default"] = translation;
9
+ exports.default = translation;
@@ -6,4 +6,4 @@ var translation = {
6
6
  "indicator.none": "God"
7
7
  };
8
8
 
9
- exports["default"] = translation;
9
+ exports.default = translation;
@@ -6,4 +6,4 @@ var translation = {
6
6
  "indicator.none": "正常"
7
7
  };
8
8
 
9
- exports["default"] = translation;
9
+ exports.default = translation;
@@ -6,4 +6,4 @@ var translation = {
6
6
  "indicator.none": "ดี"
7
7
  };
8
8
 
9
- exports["default"] = translation;
9
+ exports.default = translation;
@@ -6,4 +6,4 @@ var translation = {
6
6
  "indicator.none": "God"
7
7
  };
8
8
 
9
- exports["default"] = translation;
9
+ exports.default = translation;
@@ -6,4 +6,4 @@ var translation = {
6
6
  "indicator.none": "Dobrý"
7
7
  };
8
8
 
9
- exports["default"] = translation;
9
+ exports.default = translation;
@@ -6,4 +6,4 @@ var translation = {
6
6
  "indicator.none": "Goed"
7
7
  };
8
8
 
9
- exports["default"] = translation;
9
+ exports.default = translation;
@@ -6,4 +6,4 @@ var translation = {
6
6
  "indicator.none": "Bon"
7
7
  };
8
8
 
9
- exports["default"] = translation;
9
+ exports.default = translation;
@@ -6,4 +6,4 @@ var translation = {
6
6
  "indicator.none": "Hyvä"
7
7
  };
8
8
 
9
- exports["default"] = translation;
9
+ exports.default = translation;
@@ -6,4 +6,4 @@ var translation = {
6
6
  "indicator.none": "Jó"
7
7
  };
8
8
 
9
- exports["default"] = translation;
9
+ exports.default = translation;
@@ -6,4 +6,4 @@ var translation = {
6
6
  "indicator.none": "Buona"
7
7
  };
8
8
 
9
- exports["default"] = translation;
9
+ exports.default = translation;
@@ -6,4 +6,4 @@ var translation = {
6
6
  "indicator.none": "God"
7
7
  };
8
8
 
9
- exports["default"] = translation;
9
+ exports.default = translation;