@orfium/ictinus 4.23.1 → 4.24.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/package.json +1 -1
- package/dist/components/AssetMatching/AssetMatching.style.d.ts +0 -11
- package/dist/components/AssetMatching/AssetMatching.style.js +0 -53
- package/dist/components/AssetMatching/Assetmatching.d.ts +0 -35
- package/dist/components/AssetMatching/Assetmatching.js +0 -66
- package/dist/components/AssetMatching/components/ActionsToolbox/ActionsToolbox.d.ts +0 -14
- package/dist/components/AssetMatching/components/ActionsToolbox/ActionsToolbox.js +0 -51
- package/dist/components/AssetMatching/components/ActionsToolbox/ActionsToolbox.style.d.ts +0 -8
- package/dist/components/AssetMatching/components/ActionsToolbox/ActionsToolbox.style.js +0 -42
- package/dist/components/AssetMatching/components/ActionsToolbox/ActionsToolboxWrapper.d.ts +0 -5
- package/dist/components/AssetMatching/components/ActionsToolbox/ActionsToolboxWrapper.js +0 -23
- package/dist/components/AssetMatching/components/ActionsToolbox/PrimaryActions.d.ts +0 -10
- package/dist/components/AssetMatching/components/ActionsToolbox/PrimaryActions.js +0 -42
- package/dist/components/AssetMatching/components/ActionsToolbox/SecondaryActions.d.ts +0 -10
- package/dist/components/AssetMatching/components/ActionsToolbox/SecondaryActions.js +0 -88
- package/dist/components/AssetMatching/components/ActionsToolbox/index.d.ts +0 -2
- package/dist/components/AssetMatching/components/ActionsToolbox/index.js +0 -21
- package/dist/components/AssetMatching/components/Asset/Asset.d.ts +0 -15
- package/dist/components/AssetMatching/components/Asset/Asset.js +0 -38
- package/dist/components/AssetMatching/components/Asset/Asset.style.d.ts +0 -20
- package/dist/components/AssetMatching/components/Asset/Asset.style.js +0 -159
- package/dist/components/AssetMatching/components/Asset/AssetExternalLink.d.ts +0 -7
- package/dist/components/AssetMatching/components/Asset/AssetExternalLink.js +0 -39
- package/dist/components/AssetMatching/components/Asset/AssetHeading.d.ts +0 -12
- package/dist/components/AssetMatching/components/Asset/AssetHeading.js +0 -49
- package/dist/components/AssetMatching/components/Asset/AssetLinkedInfo.d.ts +0 -7
- package/dist/components/AssetMatching/components/Asset/AssetLinkedInfo.js +0 -27
- package/dist/components/AssetMatching/components/Asset/index.d.ts +0 -2
- package/dist/components/AssetMatching/components/Asset/index.js +0 -21
- package/dist/components/AssetMatching/components/Categories/Categories.d.ts +0 -8
- package/dist/components/AssetMatching/components/Categories/Categories.js +0 -37
- package/dist/components/AssetMatching/components/Categories/Categories.style.d.ts +0 -10
- package/dist/components/AssetMatching/components/Categories/Categories.style.js +0 -62
- package/dist/components/AssetMatching/components/Categories/Category.d.ts +0 -12
- package/dist/components/AssetMatching/components/Categories/Category.js +0 -37
- package/dist/components/AssetMatching/components/Categories/CategoryItem.d.ts +0 -6
- package/dist/components/AssetMatching/components/Categories/CategoryItem.js +0 -44
- package/dist/components/AssetMatching/components/Categories/index.d.ts +0 -1
- package/dist/components/AssetMatching/components/Categories/index.js +0 -10
- package/dist/components/AssetMatching/components/CheckBoxContainer/CheckBoxContainer.d.ts +0 -11
- package/dist/components/AssetMatching/components/CheckBoxContainer/CheckBoxContainer.js +0 -48
- package/dist/components/AssetMatching/components/CheckBoxContainer/CheckBoxContainer.style.d.ts +0 -9
- package/dist/components/AssetMatching/components/CheckBoxContainer/CheckBoxContainer.style.js +0 -53
- package/dist/components/AssetMatching/components/CheckBoxContainer/index.d.ts +0 -1
- package/dist/components/AssetMatching/components/CheckBoxContainer/index.js +0 -10
- package/dist/components/AssetMatching/components/SectionHeader/SectionHeader.d.ts +0 -24
- package/dist/components/AssetMatching/components/SectionHeader/SectionHeader.js +0 -59
- package/dist/components/AssetMatching/components/SectionHeader/SectionHeader.style.d.ts +0 -7
- package/dist/components/AssetMatching/components/SectionHeader/SectionHeader.style.js +0 -48
- package/dist/components/AssetMatching/components/SectionHeader/index.d.ts +0 -1
- package/dist/components/AssetMatching/components/SectionHeader/index.js +0 -10
- package/dist/components/AssetMatching/components/SelectedItemContext/SelectedItemProvider.d.ts +0 -4
- package/dist/components/AssetMatching/components/SelectedItemContext/SelectedItemProvider.js +0 -33
- package/dist/components/AssetMatching/components/SelectedItemContext/index.d.ts +0 -2
- package/dist/components/AssetMatching/components/SelectedItemContext/index.js +0 -21
- package/dist/components/AssetMatching/components/index.d.ts +0 -2
- package/dist/components/AssetMatching/components/index.js +0 -19
- package/dist/components/AssetMatching/components/utils.d.ts +0 -13
- package/dist/components/AssetMatching/components/utils.js +0 -98
- package/dist/components/AssetMatching/index.d.ts +0 -5
- package/dist/components/AssetMatching/index.js +0 -34
- package/dist/components/AssetMatching/types.d.ts +0 -6
- package/dist/components/AssetMatching/types.js +0 -3
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.useMatchingActions = exports.createActionButton = exports.useCategoryItemActions = void 0;
|
|
5
|
-
|
|
6
|
-
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
|
-
var _SelectedItemContext = require("./SelectedItemContext");
|
|
11
|
-
|
|
12
|
-
var _Button = _interopRequireDefault(require("../../Button"));
|
|
13
|
-
|
|
14
|
-
var _Icon = _interopRequireDefault(require("../../Icon"));
|
|
15
|
-
|
|
16
|
-
var _react2 = require("@emotion/react");
|
|
17
|
-
|
|
18
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
-
|
|
20
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
-
|
|
24
|
-
var SEARCH_REG_EXPRESSION = /\s/g;
|
|
25
|
-
var REPLACE_WITH = '-';
|
|
26
|
-
|
|
27
|
-
var useCategoryItemActions = function useCategoryItemActions(item, matchedCategoryItems) {
|
|
28
|
-
var isItemMatched = (0, _react.useMemo)(function () {
|
|
29
|
-
return (matchedCategoryItems == null ? void 0 : matchedCategoryItems.includes(item)) || false;
|
|
30
|
-
}, [matchedCategoryItems]);
|
|
31
|
-
|
|
32
|
-
var _useSelectedItem = (0, _SelectedItemContext.useSelectedItem)(),
|
|
33
|
-
selected = _useSelectedItem[0],
|
|
34
|
-
setSelected = _useSelectedItem[1];
|
|
35
|
-
|
|
36
|
-
var itemId = "" + (item == null ? void 0 : item.replace(SEARCH_REG_EXPRESSION, REPLACE_WITH).toLocaleLowerCase());
|
|
37
|
-
var updateSelected = (0, _react.useCallback)(function (value) {
|
|
38
|
-
return (0, _debounce["default"])(function () {
|
|
39
|
-
if (isItemMatched) {
|
|
40
|
-
setSelected(value);
|
|
41
|
-
}
|
|
42
|
-
}, 150);
|
|
43
|
-
}, [isItemMatched, setSelected]);
|
|
44
|
-
return {
|
|
45
|
-
onHover: updateSelected(itemId),
|
|
46
|
-
onLeave: updateSelected(null),
|
|
47
|
-
itemId: itemId,
|
|
48
|
-
isSelected: selected === itemId,
|
|
49
|
-
isItemMatched: isItemMatched
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
exports.useCategoryItemActions = useCategoryItemActions;
|
|
54
|
-
|
|
55
|
-
var createActionButton = function createActionButton(isButtonFilled, color, isButtonTransparent) {
|
|
56
|
-
if (isButtonFilled === void 0) {
|
|
57
|
-
isButtonFilled = false;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
return function (action) {
|
|
61
|
-
var isTransparent = typeof isButtonTransparent === 'undefined' || isButtonTransparent;
|
|
62
|
-
return (0, _react2.jsx)(_Button["default"], {
|
|
63
|
-
type: 'primary',
|
|
64
|
-
color: !isTransparent ? undefined : color,
|
|
65
|
-
iconLeft: (0, _react2.jsx)(_Icon["default"], {
|
|
66
|
-
color: !isTransparent ? 'primary' : 'inherit',
|
|
67
|
-
name: action.icon
|
|
68
|
-
}),
|
|
69
|
-
filled: isButtonFilled,
|
|
70
|
-
onClick: action == null ? void 0 : action.onClick,
|
|
71
|
-
transparent: isTransparent
|
|
72
|
-
}, action.text);
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
exports.createActionButton = createActionButton;
|
|
77
|
-
|
|
78
|
-
var useMatchingActions = function useMatchingActions(actions, enhanceWithWrapperElement, isButtonFilled, color, isButtonTransparent) {
|
|
79
|
-
if (isButtonFilled === void 0) {
|
|
80
|
-
isButtonFilled = false;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
if (color === void 0) {
|
|
84
|
-
color = 'neutralWhite-500';
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
var actionItems = (0, _react.useMemo)(function () {
|
|
88
|
-
return actions.map(function (action, index) {
|
|
89
|
-
return enhanceWithWrapperElement(createActionButton(isButtonFilled, color, isButtonTransparent)(action), index);
|
|
90
|
-
});
|
|
91
|
-
}, [actions, enhanceWithWrapperElement, isButtonFilled]);
|
|
92
|
-
return {
|
|
93
|
-
actionItems: actionItems,
|
|
94
|
-
actions: actions
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
exports.useMatchingActions = useMatchingActions;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
var _exportNames = {};
|
|
5
|
-
exports["default"] = void 0;
|
|
6
|
-
|
|
7
|
-
var _types = require("./types");
|
|
8
|
-
|
|
9
|
-
Object.keys(_types).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
12
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
13
|
-
exports[key] = _types[key];
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
var _ActionsToolbox = require("./components/ActionsToolbox");
|
|
17
|
-
|
|
18
|
-
Object.keys(_ActionsToolbox).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
21
|
-
if (key in exports && exports[key] === _ActionsToolbox[key]) return;
|
|
22
|
-
exports[key] = _ActionsToolbox[key];
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
var _SectionHeader = require("./components/SectionHeader");
|
|
26
|
-
|
|
27
|
-
Object.keys(_SectionHeader).forEach(function (key) {
|
|
28
|
-
if (key === "default" || key === "__esModule") return;
|
|
29
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
30
|
-
if (key in exports && exports[key] === _SectionHeader[key]) return;
|
|
31
|
-
exports[key] = _SectionHeader[key];
|
|
32
|
-
});
|
|
33
|
-
var _default = './AssetMatching.tsx';
|
|
34
|
-
exports["default"] = _default;
|