@synerise/ds-factors 0.22.30 → 0.23.0
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 +11 -0
- package/dist/FactorTypeSelector/FactorTypeSelector.d.ts +2 -2
- package/dist/FactorTypeSelector/FactorTypeSelector.js +4 -4
- package/dist/FactorTypeSelector/FactorTypeSelector.styles.d.ts +1 -2
- package/dist/FactorTypeSelector/FactorTypeSelector.styles.js +4 -3
- package/dist/FactorValue/DynamicKey/DynamicKey.js +1 -0
- package/dist/FactorValue/Formula/Formula.js +1 -0
- package/dist/FactorValue/Parameter/Parameter.js +2 -1
- package/dist/FactorValue/Parameter/Parameter.style.d.ts +3 -2
- package/dist/FactorValue/Parameter/Parameter.style.js +8 -4
- package/dist/FactorValue/Parameter/ParameterDropdown.d.ts +2 -2
- package/dist/FactorValue/Parameter/ParameterDropdown.js +31 -33
- package/dist/FactorValue/Parameter/ParameterDropdownItem.d.ts +3 -3
- package/dist/FactorValue/Parameter/ParameterDropdownItem.js +3 -3
- package/dist/FactorValue/Text/Text.js +16 -12
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.23.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-factors@0.22.30...@synerise/ds-factors@0.23.0) (2024-07-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **factors:** swapped Menu.Item for ListItem ([8de560c](https://github.com/Synerise/synerise-design/commit/8de560ce5bb969ad9ccb0ca2b7249a14a5f5f356))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.22.30](https://github.com/Synerise/synerise-design/compare/@synerise/ds-factors@0.22.29...@synerise/ds-factors@0.22.30) (2024-06-27)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @synerise/ds-factors
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { FactorTypeSelectorProps } from '../Factors.types';
|
|
3
|
-
declare const FactorTypeSelector: React.
|
|
3
|
+
declare const FactorTypeSelector: ({ selectedFactorType, setSelectedFactorType, unavailableFactorTypes, availableFactorTypes, selectedFactor, texts, readOnly, }: FactorTypeSelectorProps) => React.JSX.Element;
|
|
4
4
|
export default FactorTypeSelector;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
2
|
import Dropdown from '@synerise/ds-dropdown';
|
|
3
3
|
import Icon, { CheckS } from '@synerise/ds-icon';
|
|
4
4
|
import Tooltip from '@synerise/ds-tooltip';
|
|
5
|
-
import
|
|
5
|
+
import ListItem from '@synerise/ds-list-item';
|
|
6
6
|
import { theme } from '@synerise/ds-core';
|
|
7
7
|
import * as S from './FactorTypeSelector.styles';
|
|
8
8
|
import { ALL_FACTOR_TYPES } from '../Factors.types';
|
|
@@ -16,7 +16,7 @@ var FactorTypeSelector = function FactorTypeSelector(_ref) {
|
|
|
16
16
|
selectedFactor = _ref.selectedFactor,
|
|
17
17
|
texts = _ref.texts,
|
|
18
18
|
readOnly = _ref.readOnly;
|
|
19
|
-
var typesList =
|
|
19
|
+
var typesList = useMemo(function () {
|
|
20
20
|
var list = availableFactorTypes || ALL_FACTOR_TYPES;
|
|
21
21
|
|
|
22
22
|
if (unavailableFactorTypes !== undefined) {
|
|
@@ -26,7 +26,7 @@ var FactorTypeSelector = function FactorTypeSelector(_ref) {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
return list.map(function (type) {
|
|
29
|
-
return /*#__PURE__*/React.createElement(
|
|
29
|
+
return /*#__PURE__*/React.createElement(ListItem, {
|
|
30
30
|
className: "ds-factor-type",
|
|
31
31
|
key: factorTypes[type].name,
|
|
32
32
|
prefixel: /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import Menu from '@synerise/ds-menu';
|
|
2
1
|
import Button from '@synerise/ds-button';
|
|
3
|
-
export declare const FactorTypeList: import("styled-components").StyledComponent<
|
|
2
|
+
export declare const FactorTypeList: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
3
|
export declare const TriggerButton: import("styled-components").StyledComponent<typeof Button, any, {}, never>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import Menu from '@synerise/ds-menu';
|
|
3
2
|
import Button from '@synerise/ds-button';
|
|
4
|
-
export var FactorTypeList = styled
|
|
3
|
+
export var FactorTypeList = styled.div.withConfig({
|
|
5
4
|
displayName: "FactorTypeSelectorstyles__FactorTypeList",
|
|
6
5
|
componentId: "sc-15cv997-0"
|
|
7
|
-
})(["padding:8px;.ds-factor-type{padding:0;}"])
|
|
6
|
+
})(["padding:8px;background:", ";.ds-factor-type{padding:0;}"], function (props) {
|
|
7
|
+
return props.theme.palette.white;
|
|
8
|
+
});
|
|
8
9
|
export var TriggerButton = styled(Button).withConfig({
|
|
9
10
|
displayName: "FactorTypeSelectorstyles__TriggerButton",
|
|
10
11
|
componentId: "sc-15cv997-1"
|
|
@@ -44,6 +44,7 @@ var FormulaInput = function FormulaInput(_ref) {
|
|
|
44
44
|
return setOpenFormulaModal(true);
|
|
45
45
|
} : undefined;
|
|
46
46
|
return /*#__PURE__*/React.createElement(S.FormulaButton, {
|
|
47
|
+
"data-testid": "ds-factors-formula",
|
|
47
48
|
withoutTypeSelector: withoutTypeSelector
|
|
48
49
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
49
50
|
readOnly: readOnly,
|
|
@@ -132,7 +132,8 @@ var ParameterInput = function ParameterInput(_ref) {
|
|
|
132
132
|
}, getMenuEntryProps == null ? void 0 : getMenuEntryProps(parameter))]
|
|
133
133
|
});
|
|
134
134
|
return readOnly ? trigger : /*#__PURE__*/React.createElement("div", {
|
|
135
|
-
"data-popup-container": true
|
|
135
|
+
"data-popup-container": true,
|
|
136
|
+
"data-testid": "ds-factors-parameter"
|
|
136
137
|
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
137
138
|
visible: dropdownVisible,
|
|
138
139
|
getPopupContainer: getPopupContainerOverride || getPopupContainer,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FixedSizeList } from 'react-window';
|
|
2
2
|
export declare const TabsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
3
|
export declare const ContentPlaceholder: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
-
export declare const ItemsList: import("styled-components").StyledComponent<
|
|
4
|
+
export declare const ItemsList: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
5
|
export declare const SearchResult: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
6
6
|
export declare const SearchResultHighlight: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
7
7
|
export declare const Value: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
8
|
+
export declare const StyledList: import("styled-components").StyledComponent<typeof FixedSizeList, any, {}, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import
|
|
2
|
+
import { FixedSizeList } from 'react-window';
|
|
3
3
|
export var TabsWrapper = styled.div.withConfig({
|
|
4
4
|
displayName: "Parameterstyle__TabsWrapper",
|
|
5
5
|
componentId: "u2uvgh-0"
|
|
@@ -8,10 +8,10 @@ export var ContentPlaceholder = styled.div.withConfig({
|
|
|
8
8
|
displayName: "Parameterstyle__ContentPlaceholder",
|
|
9
9
|
componentId: "u2uvgh-1"
|
|
10
10
|
})(["height:100px;"]);
|
|
11
|
-
export var ItemsList = styled
|
|
11
|
+
export var ItemsList = styled.div.withConfig({
|
|
12
12
|
displayName: "Parameterstyle__ItemsList",
|
|
13
13
|
componentId: "u2uvgh-2"
|
|
14
|
-
})(["width:100
|
|
14
|
+
})(["width:100%;"]);
|
|
15
15
|
export var SearchResult = styled.span.withConfig({
|
|
16
16
|
displayName: "Parameterstyle__SearchResult",
|
|
17
17
|
componentId: "u2uvgh-3"
|
|
@@ -27,4 +27,8 @@ export var SearchResultHighlight = styled.span.withConfig({
|
|
|
27
27
|
export var Value = styled.span.withConfig({
|
|
28
28
|
displayName: "Parameterstyle__Value",
|
|
29
29
|
componentId: "u2uvgh-5"
|
|
30
|
-
})(["max-width:110px;text-overflow:ellipsis;overflow:hidden;"]);
|
|
30
|
+
})(["max-width:110px;text-overflow:ellipsis;overflow:hidden;"]);
|
|
31
|
+
export var StyledList = styled(FixedSizeList).withConfig({
|
|
32
|
+
displayName: "Parameterstyle__StyledList",
|
|
33
|
+
componentId: "u2uvgh-6"
|
|
34
|
+
})(["overflowx:unset;overflowy:unset;height:auto !important;max-height:300px;"]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ParameterDropdownProps } from '../../Factors.types';
|
|
3
|
-
declare const ParameterDropdown: React.
|
|
3
|
+
declare const ParameterDropdown: ({ setSelected, texts, groups, items, setDropdownVisible, loading, onFetchData, hasMoreItems, }: ParameterDropdownProps) => React.JSX.Element;
|
|
4
4
|
export default ParameterDropdown;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import React, { createRef, useRef, useState, useMemo, useCallback } from 'react';
|
|
4
4
|
import Dropdown from '@synerise/ds-dropdown';
|
|
5
5
|
import Icon, { SearchM } from '@synerise/ds-icon';
|
|
6
6
|
import Tabs from '@synerise/ds-tabs';
|
|
@@ -10,9 +10,12 @@ import { theme } from '@synerise/ds-core';
|
|
|
10
10
|
import Scrollbar from '@synerise/ds-scrollbar';
|
|
11
11
|
import { v4 as uuid } from 'uuid';
|
|
12
12
|
import DropdownSkeleton from '@synerise/ds-skeleton';
|
|
13
|
-
import { FixedSizeList as List } from 'react-window';
|
|
14
13
|
import * as S from './Parameter.style';
|
|
15
14
|
import ParameterDropdownItem from './ParameterDropdownItem';
|
|
15
|
+
var LIST_STYLE = {
|
|
16
|
+
overflowX: 'unset',
|
|
17
|
+
overflowY: 'unset'
|
|
18
|
+
};
|
|
16
19
|
|
|
17
20
|
var ParameterDropdown = function ParameterDropdown(_ref) {
|
|
18
21
|
var setSelected = _ref.setSelected,
|
|
@@ -23,36 +26,32 @@ var ParameterDropdown = function ParameterDropdown(_ref) {
|
|
|
23
26
|
loading = _ref.loading,
|
|
24
27
|
onFetchData = _ref.onFetchData,
|
|
25
28
|
hasMoreItems = _ref.hasMoreItems;
|
|
26
|
-
var listRef =
|
|
27
|
-
var
|
|
28
|
-
overflowX: 'unset',
|
|
29
|
-
overflowY: 'unset'
|
|
30
|
-
};
|
|
31
|
-
var defaultTab = React.useMemo(function () {
|
|
29
|
+
var listRef = createRef();
|
|
30
|
+
var defaultTab = useMemo(function () {
|
|
32
31
|
var defaultIndex = groups == null ? void 0 : groups.findIndex(function (group) {
|
|
33
32
|
return group.defaultGroup;
|
|
34
33
|
});
|
|
35
34
|
return defaultIndex || 0;
|
|
36
35
|
}, [groups]);
|
|
37
|
-
var overlayRef =
|
|
36
|
+
var overlayRef = useRef(null);
|
|
38
37
|
|
|
39
|
-
var
|
|
40
|
-
searchQuery =
|
|
41
|
-
setSearchQuery =
|
|
38
|
+
var _useState = useState(''),
|
|
39
|
+
searchQuery = _useState[0],
|
|
40
|
+
setSearchQuery = _useState[1];
|
|
42
41
|
|
|
43
|
-
var
|
|
44
|
-
activeTab =
|
|
45
|
-
setActiveTab =
|
|
42
|
+
var _useState2 = useState(defaultTab),
|
|
43
|
+
activeTab = _useState2[0],
|
|
44
|
+
setActiveTab = _useState2[1];
|
|
46
45
|
|
|
47
|
-
var
|
|
48
|
-
activeGroup =
|
|
49
|
-
setActiveGroup =
|
|
46
|
+
var _useState3 = useState(undefined),
|
|
47
|
+
activeGroup = _useState3[0],
|
|
48
|
+
setActiveGroup = _useState3[1];
|
|
50
49
|
|
|
51
|
-
var
|
|
52
|
-
searchInputCanBeFocused =
|
|
53
|
-
setSearchInputFocus =
|
|
50
|
+
var _useState4 = useState(true),
|
|
51
|
+
searchInputCanBeFocused = _useState4[0],
|
|
52
|
+
setSearchInputFocus = _useState4[1];
|
|
54
53
|
|
|
55
|
-
var classNames =
|
|
54
|
+
var classNames = useMemo(function () {
|
|
56
55
|
return "ds-parameter-item ds-parameter-item-" + uuid();
|
|
57
56
|
}, []);
|
|
58
57
|
useOnClickOutside(overlayRef, function (event) {
|
|
@@ -60,18 +59,18 @@ var ParameterDropdown = function ParameterDropdown(_ref) {
|
|
|
60
59
|
setDropdownVisible(false);
|
|
61
60
|
}
|
|
62
61
|
});
|
|
63
|
-
var currentTabItems =
|
|
62
|
+
var currentTabItems = useMemo(function () {
|
|
64
63
|
return groups == null ? void 0 : groups.find(function (group, index) {
|
|
65
64
|
return activeTab === index;
|
|
66
65
|
});
|
|
67
66
|
}, [groups, activeTab]);
|
|
68
|
-
var handleClearSearch =
|
|
67
|
+
var handleClearSearch = useCallback(function () {
|
|
69
68
|
setSearchQuery('');
|
|
70
69
|
}, []);
|
|
71
|
-
var handleHideDropdown =
|
|
70
|
+
var handleHideDropdown = useCallback(function () {
|
|
72
71
|
setDropdownVisible(false);
|
|
73
72
|
}, [setDropdownVisible]);
|
|
74
|
-
var filteredItems =
|
|
73
|
+
var filteredItems = useMemo(function () {
|
|
75
74
|
return items == null ? void 0 : items.filter(function (item) {
|
|
76
75
|
return item.name.toLowerCase().includes(searchQuery.toLowerCase());
|
|
77
76
|
}).map(function (item) {
|
|
@@ -85,7 +84,7 @@ var ParameterDropdown = function ParameterDropdown(_ref) {
|
|
|
85
84
|
};
|
|
86
85
|
});
|
|
87
86
|
}, [items, searchQuery, classNames, handleClearSearch, handleHideDropdown, setSelected]);
|
|
88
|
-
var currentItems =
|
|
87
|
+
var currentItems = useMemo(function () {
|
|
89
88
|
if (searchQuery) {
|
|
90
89
|
return filteredItems;
|
|
91
90
|
}
|
|
@@ -143,10 +142,10 @@ var ParameterDropdown = function ParameterDropdown(_ref) {
|
|
|
143
142
|
};
|
|
144
143
|
});
|
|
145
144
|
}, [searchQuery, currentTabItems, activeGroup, groups, items, filteredItems, classNames, handleHideDropdown, setSelected, activeTab]);
|
|
146
|
-
var handleSearch =
|
|
145
|
+
var handleSearch = useCallback(function (value) {
|
|
147
146
|
setSearchQuery(value);
|
|
148
147
|
}, [setSearchQuery]);
|
|
149
|
-
var getTabs =
|
|
148
|
+
var getTabs = useMemo(function () {
|
|
150
149
|
return (groups == null ? void 0 : groups.map(function (group) {
|
|
151
150
|
return {
|
|
152
151
|
label: group.name,
|
|
@@ -154,7 +153,7 @@ var ParameterDropdown = function ParameterDropdown(_ref) {
|
|
|
154
153
|
};
|
|
155
154
|
})) || [];
|
|
156
155
|
}, [groups]);
|
|
157
|
-
var getNoResultContainer =
|
|
156
|
+
var getNoResultContainer = useMemo(function () {
|
|
158
157
|
return /*#__PURE__*/React.createElement(Result, {
|
|
159
158
|
noSearchResults: true,
|
|
160
159
|
type: "no-results",
|
|
@@ -220,13 +219,12 @@ var ParameterDropdown = function ParameterDropdown(_ref) {
|
|
|
220
219
|
hasMore: hasMoreItems,
|
|
221
220
|
onYReachEnd: onFetchData,
|
|
222
221
|
onScroll: handleScroll
|
|
223
|
-
}, /*#__PURE__*/React.createElement(
|
|
224
|
-
className: "ds-factors-parameter-list",
|
|
222
|
+
}, /*#__PURE__*/React.createElement(S.StyledList, {
|
|
225
223
|
width: "100%",
|
|
226
224
|
height: 300,
|
|
227
225
|
itemCount: currentItems.length,
|
|
228
226
|
itemSize: 32,
|
|
229
|
-
style:
|
|
227
|
+
style: LIST_STYLE,
|
|
230
228
|
ref: listRef
|
|
231
229
|
}, function (_ref3) {
|
|
232
230
|
var index = _ref3.index,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
2
|
import { ParameterGroup, ParameterItem } from '../../Factors.types';
|
|
3
3
|
export type DropdownItem = {
|
|
4
4
|
item: ParameterItem | ParameterGroup;
|
|
@@ -7,7 +7,7 @@ export type DropdownItem = {
|
|
|
7
7
|
hideDropdown?: () => void;
|
|
8
8
|
select: (item: ParameterItem | ParameterGroup) => void;
|
|
9
9
|
className: string;
|
|
10
|
-
style?:
|
|
10
|
+
style?: CSSProperties;
|
|
11
11
|
};
|
|
12
|
-
declare const ParameterDropdownItem: React.
|
|
12
|
+
declare const ParameterDropdownItem: ({ item, clearSearch, searchQuery, hideDropdown, select, className, style, }: DropdownItem) => React.JSX.Element;
|
|
13
13
|
export default ParameterDropdownItem;
|
|
@@ -4,9 +4,9 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
4
4
|
|
|
5
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
6
|
|
|
7
|
-
import
|
|
7
|
+
import React from 'react';
|
|
8
8
|
import Icon from '@synerise/ds-icon';
|
|
9
|
-
import
|
|
9
|
+
import ListItem from '@synerise/ds-list-item';
|
|
10
10
|
|
|
11
11
|
var ParameterDropdownItem = function ParameterDropdownItem(_ref) {
|
|
12
12
|
var item = _ref.item,
|
|
@@ -21,7 +21,7 @@ var ParameterDropdownItem = function ParameterDropdownItem(_ref) {
|
|
|
21
21
|
_ = item.icon,
|
|
22
22
|
itemProps = _objectWithoutPropertiesLoose(item, _excluded);
|
|
23
23
|
|
|
24
|
-
return /*#__PURE__*/React.createElement(
|
|
24
|
+
return /*#__PURE__*/React.createElement(ListItem, _extends({}, itemProps, {
|
|
25
25
|
style: style,
|
|
26
26
|
className: className,
|
|
27
27
|
key: item.name + item.id,
|
|
@@ -117,7 +117,7 @@ var TextInput = function TextInput(_ref) {
|
|
|
117
117
|
})));
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
return /*#__PURE__*/React.createElement(S.InputWrapper, null, /*#__PURE__*/React.createElement(Input, _extends({}, inputProps, {
|
|
120
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(S.InputWrapper, null, /*#__PURE__*/React.createElement(Input, _extends({}, inputProps, {
|
|
121
121
|
handleInputRef: setInputRef,
|
|
122
122
|
placeholder: texts.valuePlaceholder,
|
|
123
123
|
icon1: /*#__PURE__*/React.createElement(S.IconWrapper, {
|
|
@@ -125,7 +125,9 @@ var TextInput = function TextInput(_ref) {
|
|
|
125
125
|
return setOpenExpanseEditor(true);
|
|
126
126
|
}
|
|
127
127
|
}, !readOnly && /*#__PURE__*/React.createElement(Icon, {
|
|
128
|
-
component: /*#__PURE__*/React.createElement(FullScreenM,
|
|
128
|
+
component: /*#__PURE__*/React.createElement(FullScreenM, {
|
|
129
|
+
"data-testid": "ds-factors-expansible-icon"
|
|
130
|
+
}),
|
|
129
131
|
color: theme.palette['grey-600']
|
|
130
132
|
})),
|
|
131
133
|
value: localValue,
|
|
@@ -133,18 +135,20 @@ var TextInput = function TextInput(_ref) {
|
|
|
133
135
|
onBlur: onDeactivate,
|
|
134
136
|
error: localError || error,
|
|
135
137
|
readOnly: readOnly
|
|
136
|
-
})))
|
|
138
|
+
}))), /*#__PURE__*/React.createElement(TextModal, {
|
|
139
|
+
visible: openExpanseEditor,
|
|
140
|
+
onCancel: function onCancel() {
|
|
141
|
+
return setOpenExpanseEditor(false);
|
|
142
|
+
},
|
|
143
|
+
value: localValue,
|
|
144
|
+
onApply: handleApply,
|
|
145
|
+
texts: texts
|
|
146
|
+
}));
|
|
137
147
|
};
|
|
138
148
|
|
|
139
|
-
return /*#__PURE__*/React.createElement(S.TextWrapper,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
return setOpenExpanseEditor(false);
|
|
143
|
-
},
|
|
144
|
-
value: localValue,
|
|
145
|
-
onApply: handleApply,
|
|
146
|
-
texts: texts
|
|
147
|
-
}));
|
|
149
|
+
return /*#__PURE__*/React.createElement(S.TextWrapper, {
|
|
150
|
+
"data-testid": "ds-factors-" + factorType + "-" + textType
|
|
151
|
+
}, renderInput(textType, factorType));
|
|
148
152
|
};
|
|
149
153
|
|
|
150
154
|
export default TextInput;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { default } from './Factors';
|
|
1
|
+
export { default, factorTypes } from './Factors';
|
|
2
|
+
export { ALL_FACTOR_TYPES } from './Factors.types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-factors",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "Factors UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -33,23 +33,23 @@
|
|
|
33
33
|
],
|
|
34
34
|
"types": "dist/index.d.ts",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@synerise/ds-autocomplete": "^0.8.
|
|
36
|
+
"@synerise/ds-autocomplete": "^0.8.7",
|
|
37
37
|
"@synerise/ds-badge": "^0.7.1",
|
|
38
38
|
"@synerise/ds-button": "^0.21.1",
|
|
39
|
-
"@synerise/ds-date-picker": "^0.11.
|
|
40
|
-
"@synerise/ds-date-range-picker": "^0.
|
|
41
|
-
"@synerise/ds-dropdown": "^0.18.
|
|
39
|
+
"@synerise/ds-date-picker": "^0.11.5",
|
|
40
|
+
"@synerise/ds-date-range-picker": "^0.29.0",
|
|
41
|
+
"@synerise/ds-dropdown": "^0.18.3",
|
|
42
42
|
"@synerise/ds-icon": "^0.63.0",
|
|
43
|
-
"@synerise/ds-information-card": "^0.4.
|
|
44
|
-
"@synerise/ds-inline-edit": "^0.7.
|
|
45
|
-
"@synerise/ds-input": "^0.
|
|
46
|
-
"@synerise/ds-input-number": "^0.9.
|
|
43
|
+
"@synerise/ds-information-card": "^0.4.12",
|
|
44
|
+
"@synerise/ds-inline-edit": "^0.7.13",
|
|
45
|
+
"@synerise/ds-input": "^0.23.0",
|
|
46
|
+
"@synerise/ds-input-number": "^0.9.22",
|
|
47
47
|
"@synerise/ds-menu": "^0.19.3",
|
|
48
48
|
"@synerise/ds-modal": "^0.17.32",
|
|
49
49
|
"@synerise/ds-result": "^0.6.58",
|
|
50
50
|
"@synerise/ds-scrollbar": "^0.11.2",
|
|
51
51
|
"@synerise/ds-skeleton": "^0.6.1",
|
|
52
|
-
"@synerise/ds-tabs": "^0.14.
|
|
52
|
+
"@synerise/ds-tabs": "^0.14.7",
|
|
53
53
|
"@synerise/ds-tooltip": "^0.14.31",
|
|
54
54
|
"@synerise/ds-utils": "^0.27.0",
|
|
55
55
|
"lodash": "^4.17.19",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"@testing-library/react": "10.0.1",
|
|
68
68
|
"@testing-library/user-event": "^10.3.1"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "0692552b018dc9c8042f18c773f88890c9ad3270"
|
|
71
71
|
}
|