@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.
Files changed (63) hide show
  1. package/package.json +1 -1
  2. package/dist/components/AssetMatching/AssetMatching.style.d.ts +0 -11
  3. package/dist/components/AssetMatching/AssetMatching.style.js +0 -53
  4. package/dist/components/AssetMatching/Assetmatching.d.ts +0 -35
  5. package/dist/components/AssetMatching/Assetmatching.js +0 -66
  6. package/dist/components/AssetMatching/components/ActionsToolbox/ActionsToolbox.d.ts +0 -14
  7. package/dist/components/AssetMatching/components/ActionsToolbox/ActionsToolbox.js +0 -51
  8. package/dist/components/AssetMatching/components/ActionsToolbox/ActionsToolbox.style.d.ts +0 -8
  9. package/dist/components/AssetMatching/components/ActionsToolbox/ActionsToolbox.style.js +0 -42
  10. package/dist/components/AssetMatching/components/ActionsToolbox/ActionsToolboxWrapper.d.ts +0 -5
  11. package/dist/components/AssetMatching/components/ActionsToolbox/ActionsToolboxWrapper.js +0 -23
  12. package/dist/components/AssetMatching/components/ActionsToolbox/PrimaryActions.d.ts +0 -10
  13. package/dist/components/AssetMatching/components/ActionsToolbox/PrimaryActions.js +0 -42
  14. package/dist/components/AssetMatching/components/ActionsToolbox/SecondaryActions.d.ts +0 -10
  15. package/dist/components/AssetMatching/components/ActionsToolbox/SecondaryActions.js +0 -88
  16. package/dist/components/AssetMatching/components/ActionsToolbox/index.d.ts +0 -2
  17. package/dist/components/AssetMatching/components/ActionsToolbox/index.js +0 -21
  18. package/dist/components/AssetMatching/components/Asset/Asset.d.ts +0 -15
  19. package/dist/components/AssetMatching/components/Asset/Asset.js +0 -38
  20. package/dist/components/AssetMatching/components/Asset/Asset.style.d.ts +0 -20
  21. package/dist/components/AssetMatching/components/Asset/Asset.style.js +0 -159
  22. package/dist/components/AssetMatching/components/Asset/AssetExternalLink.d.ts +0 -7
  23. package/dist/components/AssetMatching/components/Asset/AssetExternalLink.js +0 -39
  24. package/dist/components/AssetMatching/components/Asset/AssetHeading.d.ts +0 -12
  25. package/dist/components/AssetMatching/components/Asset/AssetHeading.js +0 -49
  26. package/dist/components/AssetMatching/components/Asset/AssetLinkedInfo.d.ts +0 -7
  27. package/dist/components/AssetMatching/components/Asset/AssetLinkedInfo.js +0 -27
  28. package/dist/components/AssetMatching/components/Asset/index.d.ts +0 -2
  29. package/dist/components/AssetMatching/components/Asset/index.js +0 -21
  30. package/dist/components/AssetMatching/components/Categories/Categories.d.ts +0 -8
  31. package/dist/components/AssetMatching/components/Categories/Categories.js +0 -37
  32. package/dist/components/AssetMatching/components/Categories/Categories.style.d.ts +0 -10
  33. package/dist/components/AssetMatching/components/Categories/Categories.style.js +0 -62
  34. package/dist/components/AssetMatching/components/Categories/Category.d.ts +0 -12
  35. package/dist/components/AssetMatching/components/Categories/Category.js +0 -37
  36. package/dist/components/AssetMatching/components/Categories/CategoryItem.d.ts +0 -6
  37. package/dist/components/AssetMatching/components/Categories/CategoryItem.js +0 -44
  38. package/dist/components/AssetMatching/components/Categories/index.d.ts +0 -1
  39. package/dist/components/AssetMatching/components/Categories/index.js +0 -10
  40. package/dist/components/AssetMatching/components/CheckBoxContainer/CheckBoxContainer.d.ts +0 -11
  41. package/dist/components/AssetMatching/components/CheckBoxContainer/CheckBoxContainer.js +0 -48
  42. package/dist/components/AssetMatching/components/CheckBoxContainer/CheckBoxContainer.style.d.ts +0 -9
  43. package/dist/components/AssetMatching/components/CheckBoxContainer/CheckBoxContainer.style.js +0 -53
  44. package/dist/components/AssetMatching/components/CheckBoxContainer/index.d.ts +0 -1
  45. package/dist/components/AssetMatching/components/CheckBoxContainer/index.js +0 -10
  46. package/dist/components/AssetMatching/components/SectionHeader/SectionHeader.d.ts +0 -24
  47. package/dist/components/AssetMatching/components/SectionHeader/SectionHeader.js +0 -59
  48. package/dist/components/AssetMatching/components/SectionHeader/SectionHeader.style.d.ts +0 -7
  49. package/dist/components/AssetMatching/components/SectionHeader/SectionHeader.style.js +0 -48
  50. package/dist/components/AssetMatching/components/SectionHeader/index.d.ts +0 -1
  51. package/dist/components/AssetMatching/components/SectionHeader/index.js +0 -10
  52. package/dist/components/AssetMatching/components/SelectedItemContext/SelectedItemProvider.d.ts +0 -4
  53. package/dist/components/AssetMatching/components/SelectedItemContext/SelectedItemProvider.js +0 -33
  54. package/dist/components/AssetMatching/components/SelectedItemContext/index.d.ts +0 -2
  55. package/dist/components/AssetMatching/components/SelectedItemContext/index.js +0 -21
  56. package/dist/components/AssetMatching/components/index.d.ts +0 -2
  57. package/dist/components/AssetMatching/components/index.js +0 -19
  58. package/dist/components/AssetMatching/components/utils.d.ts +0 -13
  59. package/dist/components/AssetMatching/components/utils.js +0 -98
  60. package/dist/components/AssetMatching/index.d.ts +0 -5
  61. package/dist/components/AssetMatching/index.js +0 -34
  62. package/dist/components/AssetMatching/types.d.ts +0 -6
  63. package/dist/components/AssetMatching/types.js +0 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orfium/ictinus",
3
- "version": "4.23.1",
3
+ "version": "4.24.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "MIT",
@@ -1,11 +0,0 @@
1
- import { SerializedStyles } from '@emotion/react';
2
- import { Theme } from 'theme';
3
- import { formFieldStyles } from 'theme/palette';
4
- export declare const inner: SerializedStyles;
5
- export declare const assets: (theme: Theme) => SerializedStyles;
6
- declare const _default: {
7
- section: (styleType: formFieldStyles) => (theme: Theme) => SerializedStyles;
8
- inner: SerializedStyles;
9
- assets: (theme: Theme) => SerializedStyles;
10
- };
11
- export default _default;
@@ -1,53 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports["default"] = exports.assets = exports.inner = void 0;
5
-
6
- var _react = require("@emotion/react");
7
-
8
- var _functions = require("../../theme/functions");
9
-
10
- var _utils = require("../../theme/utils");
11
-
12
- var wrapperStyleSwitch = function wrapperStyleSwitch(theme) {
13
- return {
14
- outlined: "border: " + (0, _utils.rem)(1) + " solid " + theme.utils.getColor('lightGrey', 200),
15
- elevated: "box-shadow: " + theme.elevation['01'] + ";",
16
- filled: ""
17
- };
18
- };
19
-
20
- var section = function section(styleType) {
21
- return function (theme) {
22
- return (
23
- /*#__PURE__*/
24
-
25
- /*#__PURE__*/
26
- (0, _react.css)(">div{", _functions.flex, ";width:100%;border-radius:", theme.spacing.sm, ";", wrapperStyleSwitch(theme)[styleType], ";}.selected{background:", theme.utils.getColor('primary', 100, 'normal'), ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:section;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Fzc2V0TWF0Y2hpbmcvQXNzZXRNYXRjaGluZy5zdHlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFZdUYiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvQXNzZXRNYXRjaGluZy9Bc3NldE1hdGNoaW5nLnN0eWxlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzLCBTZXJpYWxpemVkU3R5bGVzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICd0aGVtZSc7XG5pbXBvcnQgeyBmbGV4IH0gZnJvbSAndGhlbWUvZnVuY3Rpb25zJztcbmltcG9ydCB7IGZvcm1GaWVsZFN0eWxlcyB9IGZyb20gJ3RoZW1lL3BhbGV0dGUnO1xuaW1wb3J0IHsgcmVtIH0gZnJvbSAndGhlbWUvdXRpbHMnO1xuXG5jb25zdCB3cmFwcGVyU3R5bGVTd2l0Y2ggPSAodGhlbWU6IFRoZW1lKSA9PiAoe1xuICBvdXRsaW5lZDogYGJvcmRlcjogJHtyZW0oMSl9IHNvbGlkICR7dGhlbWUudXRpbHMuZ2V0Q29sb3IoJ2xpZ2h0R3JleScsIDIwMCl9YCxcbiAgZWxldmF0ZWQ6IGBib3gtc2hhZG93OiAke3RoZW1lLmVsZXZhdGlvblsnMDEnXX07YCxcbiAgZmlsbGVkOiBgYCxcbn0pO1xuXG5jb25zdCBzZWN0aW9uID0gKHN0eWxlVHlwZTogZm9ybUZpZWxkU3R5bGVzKSA9PiAodGhlbWU6IFRoZW1lKTogU2VyaWFsaXplZFN0eWxlcyA9PiBjc3NgXG4gID4gZGl2IHtcbiAgICAke2ZsZXh9O1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIGJvcmRlci1yYWRpdXM6ICR7dGhlbWUuc3BhY2luZy5zbX07XG4gICAgJHt3cmFwcGVyU3R5bGVTd2l0Y2godGhlbWUpW3N0eWxlVHlwZV19XG4gIH1cbiAgLnNlbGVjdGVkIHtcbiAgICBiYWNrZ3JvdW5kOiAke3RoZW1lLnV0aWxzLmdldENvbG9yKCdwcmltYXJ5JywgMTAwLCAnbm9ybWFsJyl9O1xuICB9XG5gO1xuXG5leHBvcnQgY29uc3QgaW5uZXIgPSBjc3NgXG4gICR7ZmxleH07XG4gIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gIHdpZHRoOiAxMDAlO1xuYDtcblxuZXhwb3J0IGNvbnN0IGFzc2V0cyA9ICh0aGVtZTogVGhlbWUpOiBTZXJpYWxpemVkU3R5bGVzID0+IGNzc2BcbiAgJHtmbGV4fTtcbiAgZmxleC13cmFwOiBub3dyYXA7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtZXZlbmx5O1xuICBwYWRkaW5nOiAke3RoZW1lLnNwYWNpbmcubWR9O1xuYDtcblxuZXhwb3J0IGRlZmF1bHQgeyBzZWN0aW9uLCBpbm5lciwgYXNzZXRzIH07XG4iXX0= */", process.env.NODE_ENV === "production" ? "" : ";label:section;")
27
- );
28
- };
29
- };
30
-
31
- var inner =
32
- /*#__PURE__*/
33
-
34
- /*#__PURE__*/
35
- (0, _react.css)(_functions.flex, ";flex-direction:column;width:100%;" + (process.env.NODE_ENV === "production" ? "" : ";label:inner;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Fzc2V0TWF0Y2hpbmcvQXNzZXRNYXRjaGluZy5zdHlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF3QndCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Fzc2V0TWF0Y2hpbmcvQXNzZXRNYXRjaGluZy5zdHlsZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcywgU2VyaWFsaXplZFN0eWxlcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAndGhlbWUnO1xuaW1wb3J0IHsgZmxleCB9IGZyb20gJ3RoZW1lL2Z1bmN0aW9ucyc7XG5pbXBvcnQgeyBmb3JtRmllbGRTdHlsZXMgfSBmcm9tICd0aGVtZS9wYWxldHRlJztcbmltcG9ydCB7IHJlbSB9IGZyb20gJ3RoZW1lL3V0aWxzJztcblxuY29uc3Qgd3JhcHBlclN0eWxlU3dpdGNoID0gKHRoZW1lOiBUaGVtZSkgPT4gKHtcbiAgb3V0bGluZWQ6IGBib3JkZXI6ICR7cmVtKDEpfSBzb2xpZCAke3RoZW1lLnV0aWxzLmdldENvbG9yKCdsaWdodEdyZXknLCAyMDApfWAsXG4gIGVsZXZhdGVkOiBgYm94LXNoYWRvdzogJHt0aGVtZS5lbGV2YXRpb25bJzAxJ119O2AsXG4gIGZpbGxlZDogYGAsXG59KTtcblxuY29uc3Qgc2VjdGlvbiA9IChzdHlsZVR5cGU6IGZvcm1GaWVsZFN0eWxlcykgPT4gKHRoZW1lOiBUaGVtZSk6IFNlcmlhbGl6ZWRTdHlsZXMgPT4gY3NzYFxuICA+IGRpdiB7XG4gICAgJHtmbGV4fTtcbiAgICB3aWR0aDogMTAwJTtcbiAgICBib3JkZXItcmFkaXVzOiAke3RoZW1lLnNwYWNpbmcuc219O1xuICAgICR7d3JhcHBlclN0eWxlU3dpdGNoKHRoZW1lKVtzdHlsZVR5cGVdfVxuICB9XG4gIC5zZWxlY3RlZCB7XG4gICAgYmFja2dyb3VuZDogJHt0aGVtZS51dGlscy5nZXRDb2xvcigncHJpbWFyeScsIDEwMCwgJ25vcm1hbCcpfTtcbiAgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGlubmVyID0gY3NzYFxuICAke2ZsZXh9O1xuICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICB3aWR0aDogMTAwJTtcbmA7XG5cbmV4cG9ydCBjb25zdCBhc3NldHMgPSAodGhlbWU6IFRoZW1lKTogU2VyaWFsaXplZFN0eWxlcyA9PiBjc3NgXG4gICR7ZmxleH07XG4gIGZsZXgtd3JhcDogbm93cmFwO1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWV2ZW5seTtcbiAgcGFkZGluZzogJHt0aGVtZS5zcGFjaW5nLm1kfTtcbmA7XG5cbmV4cG9ydCBkZWZhdWx0IHsgc2VjdGlvbiwgaW5uZXIsIGFzc2V0cyB9O1xuIl19 */", process.env.NODE_ENV === "production" ? "" : ";label:inner;");
36
- exports.inner = inner;
37
-
38
- var assets = function assets(theme) {
39
- return (
40
- /*#__PURE__*/
41
-
42
- /*#__PURE__*/
43
- (0, _react.css)(_functions.flex, ";flex-wrap:nowrap;justify-content:space-evenly;padding:", theme.spacing.md, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:assets;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Fzc2V0TWF0Y2hpbmcvQXNzZXRNYXRjaGluZy5zdHlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE4QjZEIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Fzc2V0TWF0Y2hpbmcvQXNzZXRNYXRjaGluZy5zdHlsZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcywgU2VyaWFsaXplZFN0eWxlcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAndGhlbWUnO1xuaW1wb3J0IHsgZmxleCB9IGZyb20gJ3RoZW1lL2Z1bmN0aW9ucyc7XG5pbXBvcnQgeyBmb3JtRmllbGRTdHlsZXMgfSBmcm9tICd0aGVtZS9wYWxldHRlJztcbmltcG9ydCB7IHJlbSB9IGZyb20gJ3RoZW1lL3V0aWxzJztcblxuY29uc3Qgd3JhcHBlclN0eWxlU3dpdGNoID0gKHRoZW1lOiBUaGVtZSkgPT4gKHtcbiAgb3V0bGluZWQ6IGBib3JkZXI6ICR7cmVtKDEpfSBzb2xpZCAke3RoZW1lLnV0aWxzLmdldENvbG9yKCdsaWdodEdyZXknLCAyMDApfWAsXG4gIGVsZXZhdGVkOiBgYm94LXNoYWRvdzogJHt0aGVtZS5lbGV2YXRpb25bJzAxJ119O2AsXG4gIGZpbGxlZDogYGAsXG59KTtcblxuY29uc3Qgc2VjdGlvbiA9IChzdHlsZVR5cGU6IGZvcm1GaWVsZFN0eWxlcykgPT4gKHRoZW1lOiBUaGVtZSk6IFNlcmlhbGl6ZWRTdHlsZXMgPT4gY3NzYFxuICA+IGRpdiB7XG4gICAgJHtmbGV4fTtcbiAgICB3aWR0aDogMTAwJTtcbiAgICBib3JkZXItcmFkaXVzOiAke3RoZW1lLnNwYWNpbmcuc219O1xuICAgICR7d3JhcHBlclN0eWxlU3dpdGNoKHRoZW1lKVtzdHlsZVR5cGVdfVxuICB9XG4gIC5zZWxlY3RlZCB7XG4gICAgYmFja2dyb3VuZDogJHt0aGVtZS51dGlscy5nZXRDb2xvcigncHJpbWFyeScsIDEwMCwgJ25vcm1hbCcpfTtcbiAgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGlubmVyID0gY3NzYFxuICAke2ZsZXh9O1xuICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICB3aWR0aDogMTAwJTtcbmA7XG5cbmV4cG9ydCBjb25zdCBhc3NldHMgPSAodGhlbWU6IFRoZW1lKTogU2VyaWFsaXplZFN0eWxlcyA9PiBjc3NgXG4gICR7ZmxleH07XG4gIGZsZXgtd3JhcDogbm93cmFwO1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWV2ZW5seTtcbiAgcGFkZGluZzogJHt0aGVtZS5zcGFjaW5nLm1kfTtcbmA7XG5cbmV4cG9ydCBkZWZhdWx0IHsgc2VjdGlvbiwgaW5uZXIsIGFzc2V0cyB9O1xuIl19 */", process.env.NODE_ENV === "production" ? "" : ";label:assets;")
44
- );
45
- };
46
-
47
- exports.assets = assets;
48
- var _default = {
49
- section: section,
50
- inner: inner,
51
- assets: assets
52
- };
53
- exports["default"] = _default;
@@ -1,35 +0,0 @@
1
- import { FC } from 'react';
2
- import { formFieldStyles } from 'theme/palette';
3
- import { OnCheckHandler } from '../../hooks/useCheck';
4
- import { AssetProps } from './components/Asset';
5
- import { MatchingAction } from './types';
6
- interface Props {
7
- /** The score of the matched metadata */
8
- score?: number | string;
9
- /** The actions that can be performed for the asset matching section */
10
- matchingActions: MatchingAction[];
11
- /** The custom left side of the matching section */
12
- leftCustomAsset?: JSX.Element;
13
- /** The custom right side of the matching section */
14
- rightCustomAsset?: JSX.Element;
15
- /** The props needed for constructing the default left side of the matching section */
16
- leftAssetProps?: AssetProps;
17
- /** The props needed for constructing the default right side of the matching section */
18
- rightAssetProps?: AssetProps;
19
- /** The matched items per category for each asset */
20
- matchedCategoryItems?: string[];
21
- /** The style type of the matching section */
22
- styleType?: formFieldStyles;
23
- /** The provided handler for the selected status of the asset matching */
24
- onCheck?: OnCheckHandler;
25
- /** The check status of the asset matching checkbox */
26
- isChecked?: boolean;
27
- /** The custom element to pass custom elements to actions toolbox */
28
- customActionsContent?: JSX.Element | null;
29
- /** The prop needed for explicitly enabling or disabling checkbox */
30
- isCheckboxEnabled?: boolean;
31
- /** The custom element to pass custom content next to section header's checkbox */
32
- customCheckboxContent?: JSX.Element | null;
33
- }
34
- declare const AssetMatching: FC<Props>;
35
- export default AssetMatching;
@@ -1,66 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports["default"] = void 0;
5
-
6
- var _react = _interopRequireDefault(require("react"));
7
-
8
- var _AssetMatching = _interopRequireDefault(require("./AssetMatching.style"));
9
-
10
- var _Asset = require("./components/Asset");
11
-
12
- var _SectionHeader = _interopRequireDefault(require("./components/SectionHeader/SectionHeader"));
13
-
14
- var _SelectedItemContext = require("./components/SelectedItemContext");
15
-
16
- var _react2 = require("@emotion/react");
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
- 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); }
21
-
22
- var AssetMatching = function AssetMatching(_ref) {
23
- var score = _ref.score,
24
- rightCustomAsset = _ref.rightCustomAsset,
25
- leftCustomAsset = _ref.leftCustomAsset,
26
- rightAssetProps = _ref.rightAssetProps,
27
- leftAssetProps = _ref.leftAssetProps,
28
- matchingActions = _ref.matchingActions,
29
- matchedCategoryItems = _ref.matchedCategoryItems,
30
- _ref$styleType = _ref.styleType,
31
- styleType = _ref$styleType === void 0 ? 'outlined' : _ref$styleType,
32
- onCheck = _ref.onCheck,
33
- _ref$isChecked = _ref.isChecked,
34
- isChecked = _ref$isChecked === void 0 ? false : _ref$isChecked,
35
- customActionsContent = _ref.customActionsContent,
36
- _ref$isCheckboxEnable = _ref.isCheckboxEnabled,
37
- isCheckboxEnabled = _ref$isCheckboxEnable === void 0 ? true : _ref$isCheckboxEnable,
38
- _ref$customCheckboxCo = _ref.customCheckboxContent,
39
- customCheckboxContent = _ref$customCheckboxCo === void 0 ? null : _ref$customCheckboxCo;
40
- var defaultLeft = leftAssetProps && (0, _react2.jsx)(_Asset.Asset, _extends({}, leftAssetProps, {
41
- matchedCategoryItems: matchedCategoryItems
42
- }));
43
- var defaultRight = rightAssetProps && (0, _react2.jsx)(_Asset.Asset, _extends({}, rightAssetProps, {
44
- isHighlighted: true,
45
- matchedCategoryItems: matchedCategoryItems
46
- }));
47
- return (0, _react2.jsx)(_SelectedItemContext.SelectedItemProvider, null, (0, _react2.jsx)("section", {
48
- css: _AssetMatching["default"].section(styleType)
49
- }, (0, _react2.jsx)("div", {
50
- css: _AssetMatching["default"].inner
51
- }, (0, _react2.jsx)(_SectionHeader["default"], {
52
- customCheckboxContent: customCheckboxContent,
53
- isCheckboxEnabled: isCheckboxEnabled,
54
- customActionsContent: customActionsContent,
55
- isChecked: isChecked,
56
- onCheck: onCheck,
57
- styleType: styleType,
58
- score: score,
59
- matchingActions: matchingActions
60
- }), (0, _react2.jsx)("div", {
61
- css: _AssetMatching["default"].assets
62
- }, leftCustomAsset ? leftCustomAsset : defaultLeft, rightCustomAsset ? rightCustomAsset : defaultRight))));
63
- };
64
-
65
- var _default = AssetMatching;
66
- exports["default"] = _default;
@@ -1,14 +0,0 @@
1
- import { FC } from 'react';
2
- import { MatchingAction } from '../../types';
3
- interface Props {
4
- matchingActions?: MatchingAction[];
5
- buttonStyles?: {
6
- secondaryButtonColor?: string;
7
- primaryButtonColor?: string;
8
- isButtonFilled?: boolean;
9
- isButtonTransparent?: boolean;
10
- };
11
- customActionsContent?: JSX.Element | null;
12
- }
13
- declare const ActionsToolbox: FC<Props>;
14
- export default ActionsToolbox;
@@ -1,51 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports["default"] = void 0;
5
-
6
- var _react = _interopRequireDefault(require("react"));
7
-
8
- var _ActionsToolboxWrapper = _interopRequireDefault(require("./ActionsToolboxWrapper"));
9
-
10
- var _PrimaryActions = _interopRequireDefault(require("./PrimaryActions"));
11
-
12
- var _SecondaryActions = _interopRequireDefault(require("./SecondaryActions"));
13
-
14
- var _react2 = require("@emotion/react");
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
-
18
- 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); }
19
-
20
- var ActionsToolbox = function ActionsToolbox(_ref) {
21
- var customActionsContent = _ref.customActionsContent,
22
- _ref$matchingActions = _ref.matchingActions,
23
- matchingActions = _ref$matchingActions === void 0 ? [] : _ref$matchingActions,
24
- buttonStyles = _ref.buttonStyles;
25
- var shouldDisplayOnlyPrimaryActions = (matchingActions == null ? void 0 : matchingActions.length) > 0 && (matchingActions == null ? void 0 : matchingActions.length) <= 3;
26
-
27
- if (shouldDisplayOnlyPrimaryActions) {
28
- return (0, _react2.jsx)(_ActionsToolboxWrapper["default"], {
29
- customActionsContent: customActionsContent
30
- }, (0, _react2.jsx)(_PrimaryActions["default"], _extends({}, buttonStyles || {}, {
31
- primaryActions: matchingActions
32
- })));
33
- }
34
-
35
- var primaryActions = matchingActions.slice(0, 2);
36
- var secondaryActions = matchingActions.slice(2, matchingActions.length);
37
- return (0, _react2.jsx)(_ActionsToolboxWrapper["default"], {
38
- customActionsContent: customActionsContent
39
- }, hasActions(primaryActions) && (0, _react2.jsx)(_PrimaryActions["default"], _extends({}, buttonStyles || {}, {
40
- primaryActions: primaryActions
41
- })), hasActions(secondaryActions) && (0, _react2.jsx)(_SecondaryActions["default"], _extends({}, buttonStyles || {}, {
42
- secondaryActions: secondaryActions
43
- })));
44
- };
45
-
46
- function hasActions(actions) {
47
- return actions.length > 0;
48
- }
49
-
50
- var _default = ActionsToolbox;
51
- exports["default"] = _default;
@@ -1,8 +0,0 @@
1
- import { SerializedStyles } from '@emotion/react';
2
- import { Theme } from 'theme';
3
- declare const _default: {
4
- buttonWrapper: (theme: Theme) => SerializedStyles;
5
- list: (theme: Theme) => SerializedStyles;
6
- secondaryActionsWrapper: SerializedStyles;
7
- };
8
- export default _default;
@@ -1,42 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports["default"] = void 0;
5
-
6
- var _react = require("@emotion/react");
7
-
8
- var _functions = require("../../../../theme/functions");
9
-
10
- var _utils = require("../../../../theme/utils");
11
-
12
- var _Card = require("../../../Card/Card.style");
13
-
14
- var list = function list(theme) {
15
- return (
16
- /*#__PURE__*/
17
-
18
- /*#__PURE__*/
19
- (0, _react.css)("flex-direction:column;z-index:9;position:absolute;background:white;top:", (0, _utils.rem)(55), ";right:0;margin:0;padding:0;", (0, _Card.cardElevation)(theme, '02'), ";" + (process.env.NODE_ENV === "production" ? "" : ";label:list;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Fzc2V0TWF0Y2hpbmcvY29tcG9uZW50cy9BY3Rpb25zVG9vbGJveC9BY3Rpb25zVG9vbGJveC5zdHlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPb0QiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvQXNzZXRNYXRjaGluZy9jb21wb25lbnRzL0FjdGlvbnNUb29sYm94L0FjdGlvbnNUb29sYm94LnN0eWxlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzLCBTZXJpYWxpemVkU3R5bGVzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICd0aGVtZSc7XG5pbXBvcnQgeyBmbGV4IH0gZnJvbSAndGhlbWUvZnVuY3Rpb25zJztcbmltcG9ydCB7IHJlbSB9IGZyb20gJ3RoZW1lL3V0aWxzJztcblxuaW1wb3J0IHsgY2FyZEVsZXZhdGlvbiB9IGZyb20gJ2NvbXBvbmVudHMvQ2FyZC9DYXJkLnN0eWxlJztcblxuY29uc3QgbGlzdCA9ICh0aGVtZTogVGhlbWUpOiBTZXJpYWxpemVkU3R5bGVzID0+IGNzc2BcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgei1pbmRleDogOTtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBiYWNrZ3JvdW5kOiB3aGl0ZTtcbiAgdG9wOiAke3JlbSg1NSl9O1xuICByaWdodDogMDtcbiAgbWFyZ2luOiAwO1xuICBwYWRkaW5nOiAwO1xuICAke2NhcmRFbGV2YXRpb24odGhlbWUsICcwMicpfTtcbmA7XG5cbmNvbnN0IGJ1dHRvbldyYXBwZXIgPSAodGhlbWU6IFRoZW1lKTogU2VyaWFsaXplZFN0eWxlcyA9PiBjc3NgXG4gIG1hcmdpbi1yaWdodDogJHt0aGVtZS5zcGFjaW5nLnNtfTtcbmA7XG5cbmNvbnN0IHNlY29uZGFyeUFjdGlvbnNXcmFwcGVyID0gY3NzYFxuICAke2ZsZXh9O1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG5gO1xuXG5leHBvcnQgZGVmYXVsdCB7XG4gIGJ1dHRvbldyYXBwZXIsXG4gIGxpc3QsXG4gIHNlY29uZGFyeUFjdGlvbnNXcmFwcGVyLFxufTtcbiJdfQ== */", process.env.NODE_ENV === "production" ? "" : ";label:list;")
20
- );
21
- };
22
-
23
- var buttonWrapper = function buttonWrapper(theme) {
24
- return (
25
- /*#__PURE__*/
26
-
27
- /*#__PURE__*/
28
- (0, _react.css)("margin-right:", theme.spacing.sm, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:buttonWrapper;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Fzc2V0TWF0Y2hpbmcvY29tcG9uZW50cy9BY3Rpb25zVG9vbGJveC9BY3Rpb25zVG9vbGJveC5zdHlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFtQjZEIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Fzc2V0TWF0Y2hpbmcvY29tcG9uZW50cy9BY3Rpb25zVG9vbGJveC9BY3Rpb25zVG9vbGJveC5zdHlsZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcywgU2VyaWFsaXplZFN0eWxlcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAndGhlbWUnO1xuaW1wb3J0IHsgZmxleCB9IGZyb20gJ3RoZW1lL2Z1bmN0aW9ucyc7XG5pbXBvcnQgeyByZW0gfSBmcm9tICd0aGVtZS91dGlscyc7XG5cbmltcG9ydCB7IGNhcmRFbGV2YXRpb24gfSBmcm9tICdjb21wb25lbnRzL0NhcmQvQ2FyZC5zdHlsZSc7XG5cbmNvbnN0IGxpc3QgPSAodGhlbWU6IFRoZW1lKTogU2VyaWFsaXplZFN0eWxlcyA9PiBjc3NgXG4gIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gIHotaW5kZXg6IDk7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgYmFja2dyb3VuZDogd2hpdGU7XG4gIHRvcDogJHtyZW0oNTUpfTtcbiAgcmlnaHQ6IDA7XG4gIG1hcmdpbjogMDtcbiAgcGFkZGluZzogMDtcbiAgJHtjYXJkRWxldmF0aW9uKHRoZW1lLCAnMDInKX07XG5gO1xuXG5jb25zdCBidXR0b25XcmFwcGVyID0gKHRoZW1lOiBUaGVtZSk6IFNlcmlhbGl6ZWRTdHlsZXMgPT4gY3NzYFxuICBtYXJnaW4tcmlnaHQ6ICR7dGhlbWUuc3BhY2luZy5zbX07XG5gO1xuXG5jb25zdCBzZWNvbmRhcnlBY3Rpb25zV3JhcHBlciA9IGNzc2BcbiAgJHtmbGV4fTtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuYDtcblxuZXhwb3J0IGRlZmF1bHQge1xuICBidXR0b25XcmFwcGVyLFxuICBsaXN0LFxuICBzZWNvbmRhcnlBY3Rpb25zV3JhcHBlcixcbn07XG4iXX0= */", process.env.NODE_ENV === "production" ? "" : ";label:buttonWrapper;")
29
- );
30
- };
31
-
32
- var secondaryActionsWrapper =
33
- /*#__PURE__*/
34
-
35
- /*#__PURE__*/
36
- (0, _react.css)(_functions.flex, ";position:relative;" + (process.env.NODE_ENV === "production" ? "" : ";label:secondaryActionsWrapper;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Fzc2V0TWF0Y2hpbmcvY29tcG9uZW50cy9BY3Rpb25zVG9vbGJveC9BY3Rpb25zVG9vbGJveC5zdHlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF1Qm1DIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Fzc2V0TWF0Y2hpbmcvY29tcG9uZW50cy9BY3Rpb25zVG9vbGJveC9BY3Rpb25zVG9vbGJveC5zdHlsZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcywgU2VyaWFsaXplZFN0eWxlcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IFRoZW1lIH0gZnJvbSAndGhlbWUnO1xuaW1wb3J0IHsgZmxleCB9IGZyb20gJ3RoZW1lL2Z1bmN0aW9ucyc7XG5pbXBvcnQgeyByZW0gfSBmcm9tICd0aGVtZS91dGlscyc7XG5cbmltcG9ydCB7IGNhcmRFbGV2YXRpb24gfSBmcm9tICdjb21wb25lbnRzL0NhcmQvQ2FyZC5zdHlsZSc7XG5cbmNvbnN0IGxpc3QgPSAodGhlbWU6IFRoZW1lKTogU2VyaWFsaXplZFN0eWxlcyA9PiBjc3NgXG4gIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gIHotaW5kZXg6IDk7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgYmFja2dyb3VuZDogd2hpdGU7XG4gIHRvcDogJHtyZW0oNTUpfTtcbiAgcmlnaHQ6IDA7XG4gIG1hcmdpbjogMDtcbiAgcGFkZGluZzogMDtcbiAgJHtjYXJkRWxldmF0aW9uKHRoZW1lLCAnMDInKX07XG5gO1xuXG5jb25zdCBidXR0b25XcmFwcGVyID0gKHRoZW1lOiBUaGVtZSk6IFNlcmlhbGl6ZWRTdHlsZXMgPT4gY3NzYFxuICBtYXJnaW4tcmlnaHQ6ICR7dGhlbWUuc3BhY2luZy5zbX07XG5gO1xuXG5jb25zdCBzZWNvbmRhcnlBY3Rpb25zV3JhcHBlciA9IGNzc2BcbiAgJHtmbGV4fTtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuYDtcblxuZXhwb3J0IGRlZmF1bHQge1xuICBidXR0b25XcmFwcGVyLFxuICBsaXN0LFxuICBzZWNvbmRhcnlBY3Rpb25zV3JhcHBlcixcbn07XG4iXX0= */", process.env.NODE_ENV === "production" ? "" : ";label:secondaryActionsWrapper;");
37
- var _default = {
38
- buttonWrapper: buttonWrapper,
39
- list: list,
40
- secondaryActionsWrapper: secondaryActionsWrapper
41
- };
42
- exports["default"] = _default;
@@ -1,5 +0,0 @@
1
- import { FC } from 'react';
2
- declare const ActionsToolboxWrapper: FC<{
3
- customActionsContent?: JSX.Element | null;
4
- }>;
5
- export default ActionsToolboxWrapper;
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports["default"] = void 0;
5
-
6
- var _react = _interopRequireDefault(require("react"));
7
-
8
- var _functions = require("../../../../theme/functions");
9
-
10
- var _react2 = require("@emotion/react");
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
-
14
- var ActionsToolboxWrapper = function ActionsToolboxWrapper(_ref) {
15
- var children = _ref.children,
16
- customActionsContent = _ref.customActionsContent;
17
- return (0, _react2.jsx)("div", {
18
- css: _functions.flex
19
- }, children, customActionsContent && customActionsContent);
20
- };
21
-
22
- var _default = ActionsToolboxWrapper;
23
- exports["default"] = _default;
@@ -1,10 +0,0 @@
1
- import { FC } from 'react';
2
- import { MatchingAction } from '../../types';
3
- interface Props {
4
- primaryActions: MatchingAction[];
5
- isButtonFilled?: boolean;
6
- isButtonTransparent?: boolean;
7
- primaryButtonColor?: string;
8
- }
9
- declare const PrimaryActions: FC<Props>;
10
- export default PrimaryActions;
@@ -1,42 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports["default"] = void 0;
5
-
6
- var _react = _interopRequireDefault(require("react"));
7
-
8
- var _functions = require("../../../../theme/functions");
9
-
10
- var _helpers = require("../../../../utils/helpers");
11
-
12
- var _utils = require("../utils");
13
-
14
- var _ActionsToolbox = _interopRequireDefault(require("./ActionsToolbox.style"));
15
-
16
- var _react2 = require("@emotion/react");
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
- var PrimaryActions = function PrimaryActions(_ref) {
21
- var primaryActions = _ref.primaryActions,
22
- _ref$isButtonFilled = _ref.isButtonFilled,
23
- isButtonFilled = _ref$isButtonFilled === void 0 ? false : _ref$isButtonFilled,
24
- isButtonTransparent = _ref.isButtonTransparent,
25
- primaryButtonColor = _ref.primaryButtonColor;
26
-
27
- var _useMatchingActions = (0, _utils.useMatchingActions)(primaryActions, function (actionButton, index) {
28
- return (0, _react2.jsx)("div", {
29
- "data-testid": 'primary_action',
30
- key: (0, _helpers.generateUniqueID)('primary_action') + "_" + index,
31
- css: _ActionsToolbox["default"].buttonWrapper
32
- }, actionButton);
33
- }, isButtonFilled, primaryButtonColor, isButtonTransparent),
34
- actionItems = _useMatchingActions.actionItems;
35
-
36
- return (0, _react2.jsx)("div", {
37
- css: _functions.flex
38
- }, actionItems);
39
- };
40
-
41
- var _default = PrimaryActions;
42
- exports["default"] = _default;
@@ -1,10 +0,0 @@
1
- import { FC } from 'react';
2
- import { MatchingAction } from '../../types';
3
- interface Props {
4
- secondaryActions: MatchingAction[];
5
- isButtonFilled?: boolean;
6
- isButtonTransparent?: boolean;
7
- secondaryButtonColor?: string;
8
- }
9
- declare const SecondaryActions: FC<Props>;
10
- export default SecondaryActions;
@@ -1,88 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports["default"] = void 0;
5
-
6
- var _react = _interopRequireWildcard(require("react"));
7
-
8
- var _utils = require("../utils");
9
-
10
- var _ActionsToolbox = _interopRequireDefault(require("./ActionsToolbox.style"));
11
-
12
- var _IconButton = _interopRequireDefault(require("../../../IconButton"));
13
-
14
- var _List = _interopRequireDefault(require("../../../List"));
15
-
16
- var _ClickAwayListener = _interopRequireDefault(require("../../../utils/ClickAwayListener"));
17
-
18
- var _react2 = require("@emotion/react");
19
-
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
-
22
- 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); }
23
-
24
- 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; }
25
-
26
- var SecondaryActions = function SecondaryActions(_ref) {
27
- var secondaryActions = _ref.secondaryActions,
28
- _ref$isButtonFilled = _ref.isButtonFilled,
29
- isButtonFilled = _ref$isButtonFilled === void 0 ? false : _ref$isButtonFilled,
30
- isButtonTransparent = _ref.isButtonTransparent,
31
- secondaryButtonColor = _ref.secondaryButtonColor;
32
-
33
- var _useState = (0, _react.useState)(false),
34
- open = _useState[0],
35
- setOpen = _useState[1];
36
-
37
- var _useMatchingActions = (0, _utils.useMatchingActions)(secondaryActions, function (actionButton) {
38
- return actionButton;
39
- }, isButtonFilled, secondaryButtonColor, isButtonTransparent),
40
- actions = _useMatchingActions.actions; // @TODO add icon support on list to implement this
41
-
42
-
43
- var newActions = actions.map(function (_ref2) {
44
- var text = _ref2.text,
45
- icon = _ref2.icon;
46
- return text;
47
- });
48
- var handleOptionClick = (0, _react.useCallback)(function (option) {
49
- var foundAction = actions.find(function (_ref3) {
50
- var text = _ref3.text;
51
- return text === option;
52
- });
53
-
54
- if (typeof foundAction !== 'undefined' && foundAction.onClick) {
55
- foundAction.onClick();
56
- }
57
-
58
- setOpen(false);
59
- }, [actions]);
60
- return (0, _react2.jsx)(_ClickAwayListener["default"], {
61
- onClick: function onClick() {
62
- return setOpen(false);
63
- }
64
- }, (0, _react2.jsx)("div", {
65
- css: _ActionsToolbox["default"].secondaryActionsWrapper
66
- }, (0, _react2.jsx)("div", {
67
- css: _ActionsToolbox["default"].buttonWrapper
68
- }, (0, _react2.jsx)(_IconButton["default"], {
69
- dataTestId: 'menu_btn',
70
- color: 'lightGrey-650',
71
- name: 'dotsVertical',
72
- filled: false,
73
- onClick: function onClick() {
74
- return setOpen(!open);
75
- },
76
- transparent: true
77
- })), open && (0, _react2.jsx)("div", {
78
- css: _ActionsToolbox["default"].list
79
- }, (0, _react2.jsx)(_List["default"], {
80
- dataTestId: 'secondary_action',
81
- data: newActions,
82
- rowSize: 'small',
83
- handleOptionClick: handleOptionClick
84
- }))));
85
- };
86
-
87
- var _default = SecondaryActions;
88
- exports["default"] = _default;
@@ -1,2 +0,0 @@
1
- export { default as ActionsToolbox } from './ActionsToolbox';
2
- export * from './ActionsToolbox';
@@ -1,21 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- var _exportNames = {
5
- ActionsToolbox: true
6
- };
7
- exports.ActionsToolbox = void 0;
8
-
9
- var _ActionsToolbox = _interopRequireWildcard(require("./ActionsToolbox"));
10
-
11
- exports.ActionsToolbox = _ActionsToolbox["default"];
12
- Object.keys(_ActionsToolbox).forEach(function (key) {
13
- if (key === "default" || key === "__esModule") return;
14
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
15
- if (key in exports && exports[key] === _ActionsToolbox[key]) return;
16
- exports[key] = _ActionsToolbox[key];
17
- });
18
-
19
- 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); }
20
-
21
- 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; }
@@ -1,15 +0,0 @@
1
- import { FC } from 'react';
2
- import { CategoryType } from '../Categories/Category';
3
- import { AssetHeadingProps } from './AssetHeading';
4
- export interface AssetProps {
5
- categories: CategoryType[];
6
- isHighlighted?: boolean;
7
- assetHeading: AssetHeadingProps;
8
- assetLinkedInfo?: {
9
- title: JSX.Element | string;
10
- details: string | number;
11
- };
12
- matchedCategoryItems?: string[];
13
- }
14
- declare const Asset: FC<AssetProps>;
15
- export default Asset;
@@ -1,38 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports["default"] = void 0;
5
-
6
- var _react = _interopRequireDefault(require("react"));
7
-
8
- var _Categories = require("../Categories");
9
-
10
- var _Asset = _interopRequireDefault(require("./Asset.style"));
11
-
12
- var _AssetHeading = _interopRequireDefault(require("./AssetHeading"));
13
-
14
- var _AssetLinkedInfo = _interopRequireDefault(require("./AssetLinkedInfo"));
15
-
16
- var _react2 = require("@emotion/react");
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
- var Asset = function Asset(_ref) {
21
- var matchedCategoryItems = _ref.matchedCategoryItems,
22
- _ref$isHighlighted = _ref.isHighlighted,
23
- isHighlighted = _ref$isHighlighted === void 0 ? false : _ref$isHighlighted,
24
- categories = _ref.categories,
25
- assetHeading = _ref.assetHeading,
26
- assetLinkedInfo = _ref.assetLinkedInfo;
27
- return (0, _react2.jsx)("article", {
28
- css: _Asset["default"].article(isHighlighted)
29
- }, (0, _react2.jsx)("div", {
30
- css: _Asset["default"].headingContainer
31
- }, (0, _react2.jsx)(_AssetHeading["default"], assetHeading), assetLinkedInfo && (0, _react2.jsx)(_AssetLinkedInfo["default"], assetLinkedInfo)), (0, _react2.jsx)(_Categories.Categories, {
32
- categories: categories,
33
- matchedCategoryItems: matchedCategoryItems
34
- }));
35
- };
36
-
37
- var _default = Asset;
38
- exports["default"] = _default;
@@ -1,20 +0,0 @@
1
- import { SerializedStyles } from '@emotion/react';
2
- import { Theme } from 'theme';
3
- export declare const boldFont: (size: number, theme: Theme) => SerializedStyles;
4
- export declare const normalFont: (size: number, theme: Theme) => SerializedStyles;
5
- declare const _default: {
6
- iconHeadingWrapper: SerializedStyles;
7
- title: (theme: Theme) => SerializedStyles;
8
- tooltip: (theme: Theme) => SerializedStyles;
9
- externalLink: (theme: Theme) => SerializedStyles;
10
- subHeading: (theme: Theme) => SerializedStyles;
11
- mainHeading: (theme: Theme) => SerializedStyles;
12
- article: (isHighlighted?: boolean) => (theme: Theme) => SerializedStyles;
13
- headingWrapper: SerializedStyles;
14
- headingContainer: SerializedStyles;
15
- linkedRecordings: SerializedStyles;
16
- linkedText: (theme: Theme) => SerializedStyles;
17
- linkedCount: (theme: Theme) => SerializedStyles;
18
- subHeadingTop: (theme: Theme) => SerializedStyles;
19
- };
20
- export default _default;