@orfium/ictinus 4.22.0 → 4.25.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 (130) hide show
  1. package/dist/components/Button/Button.js +6 -6
  2. package/dist/components/Button/Button.style.d.ts +0 -2
  3. package/dist/components/Button/Button.style.js +2 -19
  4. package/dist/components/Button/ButtonLoader/ButtonLoader.d.ts +7 -0
  5. package/dist/components/Button/ButtonLoader/ButtonLoader.js +43 -0
  6. package/dist/components/Button/ButtonLoader/ButtonLoader.style.d.ts +2 -0
  7. package/dist/components/Button/ButtonLoader/ButtonLoader.style.js +21 -0
  8. package/dist/components/Button/ButtonLoader/index.d.ts +1 -0
  9. package/dist/components/Button/ButtonLoader/index.js +10 -0
  10. package/dist/components/ButtonBase/ButtonBase.d.ts +2 -1
  11. package/dist/components/ButtonBase/ButtonBase.style.d.ts +22 -16
  12. package/dist/components/ButtonBase/ButtonBase.style.js +39 -40
  13. package/dist/components/ButtonBase/config.d.ts +28 -0
  14. package/dist/components/ButtonBase/config.js +38 -0
  15. package/dist/components/ButtonBase/utils.d.ts +1 -8
  16. package/dist/components/ButtonBase/utils.js +4 -29
  17. package/dist/components/Chip/Chip.d.ts +3 -1
  18. package/dist/components/Chip/Chip.js +13 -6
  19. package/dist/components/Chip/Chip.style.d.ts +1 -1
  20. package/dist/components/Chip/Chip.style.js +32 -22
  21. package/dist/components/Filter/Filter.style.d.ts +6 -4
  22. package/dist/components/Filter/Filter.style.js +43 -11
  23. package/dist/components/Filter/utils.d.ts +3 -3
  24. package/dist/components/Filter/utils.js +9 -30
  25. package/dist/components/Icon/assets/iconSelector.js +16 -0
  26. package/dist/components/Icon/types.d.ts +1 -1
  27. package/dist/components/Loader/Loader.d.ts +4 -0
  28. package/dist/components/Loader/Loader.js +3 -2
  29. package/dist/components/Loader/Loader.utils.d.ts +1 -1
  30. package/dist/components/Loader/Loader.utils.js +9 -6
  31. package/dist/components/Loader/components/DotsLoader/DotsLoader.d.ts +1 -0
  32. package/dist/components/Loader/components/DotsLoader/DotsLoader.js +3 -2
  33. package/dist/components/Loader/components/DotsLoader/DotsLoader.style.d.ts +3 -2
  34. package/dist/components/Loader/components/DotsLoader/DotsLoader.style.js +18 -6
  35. package/dist/components/Loader/components/IndeterminateLoader/IndeterminateLoader.d.ts +1 -0
  36. package/dist/components/Loader/components/IndeterminateLoader/IndeterminateLoader.js +4 -3
  37. package/dist/components/Loader/components/IndeterminateLoader/IndeterminateLoader.style.d.ts +2 -2
  38. package/dist/components/Loader/components/IndeterminateLoader/IndeterminateLoader.style.js +7 -7
  39. package/dist/components/Loader/components/Spinner/Spinner.d.ts +1 -0
  40. package/dist/components/Loader/components/Spinner/Spinner.js +3 -2
  41. package/dist/components/Loader/components/Spinner/Spinner.style.d.ts +1 -1
  42. package/dist/components/Loader/components/Spinner/Spinner.style.js +2 -2
  43. package/dist/components/Select/Select.js +0 -3
  44. package/dist/components/Select/Select.style.d.ts +2 -7
  45. package/dist/components/Select/Select.style.js +4 -7
  46. package/dist/components/TextInputBase/TextInputBase.d.ts +2 -1
  47. package/dist/components/TextInputBase/TextInputBase.js +1 -13
  48. package/dist/components/TextInputBase/TextInputBase.style.d.ts +2 -1
  49. package/dist/components/TextInputBase/TextInputBase.style.js +92 -42
  50. package/dist/components/TextInputBase/config.d.ts +22 -0
  51. package/dist/components/TextInputBase/config.js +36 -0
  52. package/dist/theme/palette.d.ts +3 -1
  53. package/dist/theme/palette.js +9 -5
  54. package/dist/theme/states/disabled.d.ts +12 -0
  55. package/dist/theme/states/disabled.js +25 -0
  56. package/dist/theme/states/focus.d.ts +16 -0
  57. package/dist/theme/states/focus.js +31 -0
  58. package/dist/theme/states/hover.d.ts +15 -0
  59. package/dist/theme/states/hover.js +31 -0
  60. package/dist/theme/states/index.d.ts +5 -0
  61. package/dist/theme/states/index.js +19 -0
  62. package/dist/theme/states/pressed.d.ts +15 -0
  63. package/dist/theme/states/pressed.js +31 -0
  64. package/dist/theme/states/statesConfig.d.ts +34 -0
  65. package/dist/theme/states/statesConfig.js +36 -0
  66. package/dist/theme/states/utils.d.ts +7 -0
  67. package/dist/theme/states/utils.js +24 -0
  68. package/package.json +1 -1
  69. package/dist/components/AssetMatching/AssetMatching.style.d.ts +0 -11
  70. package/dist/components/AssetMatching/AssetMatching.style.js +0 -53
  71. package/dist/components/AssetMatching/Assetmatching.d.ts +0 -35
  72. package/dist/components/AssetMatching/Assetmatching.js +0 -66
  73. package/dist/components/AssetMatching/components/ActionsToolbox/ActionsToolbox.d.ts +0 -14
  74. package/dist/components/AssetMatching/components/ActionsToolbox/ActionsToolbox.js +0 -51
  75. package/dist/components/AssetMatching/components/ActionsToolbox/ActionsToolbox.style.d.ts +0 -8
  76. package/dist/components/AssetMatching/components/ActionsToolbox/ActionsToolbox.style.js +0 -42
  77. package/dist/components/AssetMatching/components/ActionsToolbox/ActionsToolboxWrapper.d.ts +0 -5
  78. package/dist/components/AssetMatching/components/ActionsToolbox/ActionsToolboxWrapper.js +0 -23
  79. package/dist/components/AssetMatching/components/ActionsToolbox/PrimaryActions.d.ts +0 -10
  80. package/dist/components/AssetMatching/components/ActionsToolbox/PrimaryActions.js +0 -42
  81. package/dist/components/AssetMatching/components/ActionsToolbox/SecondaryActions.d.ts +0 -10
  82. package/dist/components/AssetMatching/components/ActionsToolbox/SecondaryActions.js +0 -88
  83. package/dist/components/AssetMatching/components/ActionsToolbox/index.d.ts +0 -2
  84. package/dist/components/AssetMatching/components/ActionsToolbox/index.js +0 -21
  85. package/dist/components/AssetMatching/components/Asset/Asset.d.ts +0 -15
  86. package/dist/components/AssetMatching/components/Asset/Asset.js +0 -38
  87. package/dist/components/AssetMatching/components/Asset/Asset.style.d.ts +0 -20
  88. package/dist/components/AssetMatching/components/Asset/Asset.style.js +0 -159
  89. package/dist/components/AssetMatching/components/Asset/AssetExternalLink.d.ts +0 -7
  90. package/dist/components/AssetMatching/components/Asset/AssetExternalLink.js +0 -39
  91. package/dist/components/AssetMatching/components/Asset/AssetHeading.d.ts +0 -12
  92. package/dist/components/AssetMatching/components/Asset/AssetHeading.js +0 -49
  93. package/dist/components/AssetMatching/components/Asset/AssetLinkedInfo.d.ts +0 -7
  94. package/dist/components/AssetMatching/components/Asset/AssetLinkedInfo.js +0 -27
  95. package/dist/components/AssetMatching/components/Asset/index.d.ts +0 -2
  96. package/dist/components/AssetMatching/components/Asset/index.js +0 -21
  97. package/dist/components/AssetMatching/components/Categories/Categories.d.ts +0 -8
  98. package/dist/components/AssetMatching/components/Categories/Categories.js +0 -37
  99. package/dist/components/AssetMatching/components/Categories/Categories.style.d.ts +0 -10
  100. package/dist/components/AssetMatching/components/Categories/Categories.style.js +0 -62
  101. package/dist/components/AssetMatching/components/Categories/Category.d.ts +0 -12
  102. package/dist/components/AssetMatching/components/Categories/Category.js +0 -37
  103. package/dist/components/AssetMatching/components/Categories/CategoryItem.d.ts +0 -6
  104. package/dist/components/AssetMatching/components/Categories/CategoryItem.js +0 -44
  105. package/dist/components/AssetMatching/components/Categories/index.d.ts +0 -1
  106. package/dist/components/AssetMatching/components/Categories/index.js +0 -10
  107. package/dist/components/AssetMatching/components/CheckBoxContainer/CheckBoxContainer.d.ts +0 -11
  108. package/dist/components/AssetMatching/components/CheckBoxContainer/CheckBoxContainer.js +0 -48
  109. package/dist/components/AssetMatching/components/CheckBoxContainer/CheckBoxContainer.style.d.ts +0 -9
  110. package/dist/components/AssetMatching/components/CheckBoxContainer/CheckBoxContainer.style.js +0 -53
  111. package/dist/components/AssetMatching/components/CheckBoxContainer/index.d.ts +0 -1
  112. package/dist/components/AssetMatching/components/CheckBoxContainer/index.js +0 -10
  113. package/dist/components/AssetMatching/components/SectionHeader/SectionHeader.d.ts +0 -24
  114. package/dist/components/AssetMatching/components/SectionHeader/SectionHeader.js +0 -59
  115. package/dist/components/AssetMatching/components/SectionHeader/SectionHeader.style.d.ts +0 -7
  116. package/dist/components/AssetMatching/components/SectionHeader/SectionHeader.style.js +0 -48
  117. package/dist/components/AssetMatching/components/SectionHeader/index.d.ts +0 -1
  118. package/dist/components/AssetMatching/components/SectionHeader/index.js +0 -10
  119. package/dist/components/AssetMatching/components/SelectedItemContext/SelectedItemProvider.d.ts +0 -4
  120. package/dist/components/AssetMatching/components/SelectedItemContext/SelectedItemProvider.js +0 -33
  121. package/dist/components/AssetMatching/components/SelectedItemContext/index.d.ts +0 -2
  122. package/dist/components/AssetMatching/components/SelectedItemContext/index.js +0 -21
  123. package/dist/components/AssetMatching/components/index.d.ts +0 -2
  124. package/dist/components/AssetMatching/components/index.js +0 -19
  125. package/dist/components/AssetMatching/components/utils.d.ts +0 -13
  126. package/dist/components/AssetMatching/components/utils.js +0 -98
  127. package/dist/components/AssetMatching/index.d.ts +0 -5
  128. package/dist/components/AssetMatching/index.js +0 -34
  129. package/dist/components/AssetMatching/types.d.ts +0 -6
  130. package/dist/components/AssetMatching/types.js +0 -3
@@ -0,0 +1,5 @@
1
+ import { getDisabled } from './disabled';
2
+ import { getFocus } from './focus';
3
+ import { getHover } from './hover';
4
+ import { getPressed } from './pressed';
5
+ export { getHover, getFocus, getPressed, getDisabled };
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+
5
+ var _disabled = require("./disabled");
6
+
7
+ exports.getDisabled = _disabled.getDisabled;
8
+
9
+ var _focus = require("./focus");
10
+
11
+ exports.getFocus = _focus.getFocus;
12
+
13
+ var _hover = require("./hover");
14
+
15
+ exports.getHover = _hover.getHover;
16
+
17
+ var _pressed = require("./pressed");
18
+
19
+ exports.getPressed = _pressed.getPressed;
@@ -0,0 +1,15 @@
1
+ import { Theme } from '../index';
2
+ import { colorShades, flatColors } from '../palette';
3
+ export declare type Props = {
4
+ theme: Theme;
5
+ color?: typeof flatColors[number];
6
+ shade?: typeof colorShades[number] | 0;
7
+ };
8
+ export declare type GetPressed = {
9
+ backgroundColor: string;
10
+ };
11
+ /**
12
+ * On pressed background is darken by two steps in shade.
13
+ * If we exceed the maximum value then we lighten it by two steps.
14
+ * This will be reviewed when dark theme is implemented. **/
15
+ export declare const getPressed: ({ theme, color, shade }: Props) => GetPressed;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.getPressed = void 0;
5
+
6
+ var _statesConfig = require("./statesConfig");
7
+
8
+ var _utils = require("./utils");
9
+
10
+ var backgroundColorStep = _statesConfig.statesConfig.pressed.backgroundColor.step;
11
+ /**
12
+ * On pressed background is darken by two steps in shade.
13
+ * If we exceed the maximum value then we lighten it by two steps.
14
+ * This will be reviewed when dark theme is implemented. **/
15
+
16
+ var getPressed = function getPressed(_ref) {
17
+ var theme = _ref.theme,
18
+ _ref$color = _ref.color,
19
+ color = _ref$color === void 0 ? 'lightGrey' : _ref$color,
20
+ _ref$shade = _ref.shade,
21
+ shade = _ref$shade === void 0 ? 0 : _ref$shade;
22
+ var calculatedShade = (0, _utils.getShadeWithStep)({
23
+ shade: shade,
24
+ step: backgroundColorStep
25
+ });
26
+ return {
27
+ backgroundColor: theme.utils.getColor(color, calculatedShade)
28
+ };
29
+ };
30
+
31
+ exports.getPressed = getPressed;
@@ -0,0 +1,34 @@
1
+ import { colorShades, flatColors } from '../palette';
2
+ declare type StatesConfig = {
3
+ hover: {
4
+ backgroundColor: {
5
+ step: number;
6
+ };
7
+ };
8
+ focus: {
9
+ border: {
10
+ width: {
11
+ step: number;
12
+ };
13
+ color: {
14
+ name: typeof flatColors[number];
15
+ shade: typeof colorShades[number];
16
+ };
17
+ };
18
+ };
19
+ pressed: {
20
+ backgroundColor: {
21
+ step: number;
22
+ };
23
+ };
24
+ disabled: {
25
+ opacity: {
26
+ amount: number;
27
+ };
28
+ cursor: {
29
+ name: string;
30
+ };
31
+ };
32
+ };
33
+ export declare const statesConfig: StatesConfig;
34
+ export {};
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.statesConfig = void 0;
5
+ var statesConfig = {
6
+ hover: {
7
+ backgroundColor: {
8
+ step: 50
9
+ }
10
+ },
11
+ focus: {
12
+ border: {
13
+ width: {
14
+ step: 1
15
+ },
16
+ color: {
17
+ name: 'magenta',
18
+ shade: 500
19
+ }
20
+ }
21
+ },
22
+ pressed: {
23
+ backgroundColor: {
24
+ step: 100
25
+ }
26
+ },
27
+ disabled: {
28
+ opacity: {
29
+ amount: 0.5
30
+ },
31
+ cursor: {
32
+ name: 'not-allowed'
33
+ }
34
+ }
35
+ };
36
+ exports.statesConfig = statesConfig;
@@ -0,0 +1,7 @@
1
+ import { colorShades } from '../palette';
2
+ declare type Props = {
3
+ shade: typeof colorShades[number] | 0;
4
+ step: number;
5
+ };
6
+ export declare const getShadeWithStep: ({ shade, step }: Props) => typeof colorShades[number];
7
+ export {};
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.getShadeWithStep = void 0;
5
+
6
+ var _palette = require("../palette");
7
+
8
+ var getShadeWithStep = function getShadeWithStep(_ref) {
9
+ var _ref$shade = _ref.shade,
10
+ shade = _ref$shade === void 0 ? 0 : _ref$shade,
11
+ _ref$step = _ref.step,
12
+ step = _ref$step === void 0 ? 50 : _ref$step;
13
+ var calculatedShade = shade;
14
+
15
+ if (shade + step > _palette.MAX_SHADE) {
16
+ calculatedShade -= step;
17
+ } else {
18
+ calculatedShade += step;
19
+ }
20
+
21
+ return calculatedShade;
22
+ };
23
+
24
+ exports.getShadeWithStep = getShadeWithStep;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orfium/ictinus",
3
- "version": "4.22.0",
3
+ "version": "4.25.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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Fzc2V0TWF0Y2hpbmcvQXNzZXRNYXRjaGluZy5zdHlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFZdUYiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvQXNzZXRNYXRjaGluZy9Bc3NldE1hdGNoaW5nLnN0eWxlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzLCBTZXJpYWxpemVkU3R5bGVzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICd0aGVtZSc7XG5pbXBvcnQgeyBmbGV4I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fTtcbiAgZmxleC13cmFwOiBub3dyYXA7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtZXZlbmx5O1xuICBwYWRkaW5nOiAke3RoZW1lLnNwYWNpbmcubWR9O1xuYDtcblxuZXhwb3J0IGRlZmF1bHQgeyBzZWN0aW9uLCBpbm5lciwgYXNzZXRzIH07XG4iXX0= */", 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Fzc2V0TWF0Y2hpbmcvY29tcG9uZW50cy9BY3Rpb25zVG9vbGJveC9BY3Rpb25zVG9vbGJveC5zdHlsZS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U7XG5gO1xuXG5leHBvcnQgZGVmYXVsdCB7XG4gIGJ1dHRvbldyYXBwZXIsXG4gIGxpc3QsXG4gIHNlY29uZGFyeUFjdGlvbnNXcmFwcGVyLFxufTtcbiJdfQ== */", 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0Fzc2V0TWF0Y2hpbmcvY29tcG9uZW50cy9BY3Rpb25zVG9vbGJveC9BY3Rpb25zVG9vbGJveC5zdHlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF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1bHQge1xuICBidXR0b25XcmFwcGVyLFxuICBsaXN0LFxuICBzZWNvbmRhcnlBY3Rpb25zV3JhcHBlcixcbn07XG4iXX0= */", 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;