@synerise/ds-factors 0.25.1 → 0.25.3

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
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.25.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-factors@0.25.2...@synerise/ds-factors@0.25.3) (2024-09-17)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-factors
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.25.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-factors@0.25.1...@synerise/ds-factors@0.25.2) (2024-09-13)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-factors
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.25.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-factors@0.25.0...@synerise/ds-factors@0.25.1) (2024-09-11)
7
23
 
8
24
 
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { InputProps } from '../../Factors.types';
3
3
  declare const DynamicKey: React.FC<InputProps>;
4
4
  export default DynamicKey;
@@ -4,7 +4,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- import * as React from 'react';
7
+ import React from 'react';
8
8
  import { RawInput } from '@synerise/ds-input';
9
9
  import { debounce } from 'lodash';
10
10
  import * as S from './DynamicKey.style';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { FactorValueProps } from '../Factors.types';
3
3
  declare const FactorValue: React.FC<FactorValueProps>;
4
4
  export default FactorValue;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import * as S from './FactorValue.style';
3
3
 
4
4
  var FactorValue = function FactorValue(_ref) {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { FormulaModalProps } from '../../Factors.types';
3
3
  declare const FormulaModal: React.FC<FormulaModalProps>;
4
4
  export default FormulaModal;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import ModalProxy from '@synerise/ds-modal';
3
3
  import InlineEdit from '@synerise/ds-inline-edit';
4
4
 
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { InputProps } from '../../Factors.types';
3
- declare const NumberInput: React.FC<InputProps>;
3
+ declare const NumberInput: ({ error, value, onChange, texts, opened, onDeactivate, readOnly }: InputProps) => React.JSX.Element;
4
4
  export default NumberInput;
@@ -1,7 +1,6 @@
1
- import * as React from 'react';
1
+ import React, { useEffect, useRef, useState } from 'react';
2
2
  import InputNumber from '@synerise/ds-input-number';
3
3
  import { debounce } from 'lodash';
4
- import { useEffect, useRef } from 'react';
5
4
 
6
5
  var NumberInput = function NumberInput(_ref) {
7
6
  var error = _ref.error,
@@ -13,9 +12,9 @@ var NumberInput = function NumberInput(_ref) {
13
12
  _ref$readOnly = _ref.readOnly,
14
13
  readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly;
15
14
 
16
- var _React$useState = React.useState(value),
17
- localValue = _React$useState[0],
18
- setLocalValue = _React$useState[1];
15
+ var _useState = useState(value),
16
+ localValue = _useState[0],
17
+ setLocalValue = _useState[1];
19
18
 
20
19
  var onChangeRef = useRef(onChange);
21
20
  useEffect(function () {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { TextModalProps } from '../../Factors.types';
3
3
  declare const TextModal: React.FC<TextModalProps>;
4
4
  export default TextModal;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import ModalProxy from '@synerise/ds-modal';
3
3
  import Textarea from '@synerise/ds-input/dist/Textarea/Textarea';
4
4
 
package/dist/Factors.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { FactorsProps } from './Factors.types';
3
3
  export declare const factorTypes: {
4
4
  text: {
@@ -9,7 +9,7 @@ export declare const factorTypes: {
9
9
  number: {
10
10
  icon: React.JSX.Element;
11
11
  name: string;
12
- input: React.FC<import("./Factors.types").InputProps>;
12
+ input: ({ error, value, onChange, texts, opened, onDeactivate, readOnly }: import("./Factors.types").InputProps) => React.JSX.Element;
13
13
  };
14
14
  parameter: {
15
15
  icon: React.JSX.Element;
package/dist/Factors.js CHANGED
@@ -4,7 +4,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- import * as React from 'react';
7
+ import React from 'react';
8
8
  import { useIntl } from 'react-intl';
9
9
  import { BookM, Calendar2M, DynamicKeyM, FormulaM, HashM, ListM, ShowM, TextM } from '@synerise/ds-icon';
10
10
  import * as S from './style/Factors.style';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-factors",
3
- "version": "0.25.1",
3
+ "version": "0.25.3",
4
4
  "description": "Factors UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -33,27 +33,27 @@
33
33
  ],
34
34
  "types": "dist/index.d.ts",
35
35
  "dependencies": {
36
- "@synerise/ds-autocomplete": "^0.8.17",
37
- "@synerise/ds-badge": "^0.8.8",
38
- "@synerise/ds-button": "^0.21.9",
39
- "@synerise/ds-date-picker": "^0.11.15",
40
- "@synerise/ds-date-range-picker": "^0.29.10",
41
- "@synerise/ds-dropdown": "^0.18.13",
42
- "@synerise/ds-icon": "^0.65.4",
43
- "@synerise/ds-information-card": "^0.5.7",
44
- "@synerise/ds-inline-edit": "^0.8.9",
45
- "@synerise/ds-input": "^0.24.3",
46
- "@synerise/ds-input-number": "^0.10.4",
47
- "@synerise/ds-list-item": "^0.4.9",
48
- "@synerise/ds-menu": "^0.19.13",
49
- "@synerise/ds-modal": "^0.17.40",
50
- "@synerise/ds-result": "^0.7.3",
51
- "@synerise/ds-scrollbar": "^0.11.9",
52
- "@synerise/ds-skeleton": "^0.6.7",
53
- "@synerise/ds-tabs": "^0.15.6",
54
- "@synerise/ds-tooltip": "^0.14.39",
55
- "@synerise/ds-utils": "^0.29.1",
56
- "lodash": "^4.17.19",
36
+ "@synerise/ds-autocomplete": "^0.8.19",
37
+ "@synerise/ds-badge": "^0.8.10",
38
+ "@synerise/ds-button": "^0.21.11",
39
+ "@synerise/ds-date-picker": "^0.11.17",
40
+ "@synerise/ds-date-range-picker": "^0.29.12",
41
+ "@synerise/ds-dropdown": "^0.18.15",
42
+ "@synerise/ds-icon": "^0.65.6",
43
+ "@synerise/ds-information-card": "^0.5.9",
44
+ "@synerise/ds-inline-edit": "^0.8.11",
45
+ "@synerise/ds-input": "^0.24.5",
46
+ "@synerise/ds-input-number": "^0.10.6",
47
+ "@synerise/ds-list-item": "^0.4.11",
48
+ "@synerise/ds-menu": "^0.19.15",
49
+ "@synerise/ds-modal": "^0.17.42",
50
+ "@synerise/ds-result": "^0.7.5",
51
+ "@synerise/ds-scrollbar": "^0.11.11",
52
+ "@synerise/ds-skeleton": "^0.6.9",
53
+ "@synerise/ds-tabs": "^0.16.1",
54
+ "@synerise/ds-tooltip": "^0.14.41",
55
+ "@synerise/ds-utils": "^0.29.3",
56
+ "lodash": "^4.17.21",
57
57
  "react-intl": "3.12.0",
58
58
  "react-window": "1.8.5",
59
59
  "uuid": "^8.3.2"
@@ -64,5 +64,5 @@
64
64
  "react": ">=16.9.0 <= 17.0.2",
65
65
  "styled-components": "5.0.1"
66
66
  },
67
- "gitHead": "fcf3fa64e906cf9fefb37a61ee28218c8eed9b73"
67
+ "gitHead": "ae3c38b44ca0f9071cd55f7b82c182a99b5710e8"
68
68
  }