@rh-support/components 2.0.4 → 2.0.5

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 (89) hide show
  1. package/lib/cjs/AlertMessage/index.d.ts +0 -1
  2. package/lib/cjs/AlertMessage/index.d.ts.map +1 -1
  3. package/lib/cjs/AlertMessage/index.js +1 -1
  4. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts +0 -6
  5. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts.map +1 -1
  6. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.js +29 -69
  7. package/lib/cjs/CustomContentLoader/CustomContentLoader.d.ts.map +1 -1
  8. package/lib/cjs/CustomContentLoader/CustomContentLoader.js +23 -23
  9. package/lib/cjs/CustomTextInput/CustomTextInput.js +3 -3
  10. package/lib/cjs/DropDownList/SearchableList.d.ts.map +1 -1
  11. package/lib/cjs/DropDownList/SearchableList.js +2 -0
  12. package/lib/cjs/DropDownList/dropdownUtils.d.ts.map +1 -1
  13. package/lib/cjs/DropDownList/dropdownUtils.js +1 -0
  14. package/lib/cjs/Functional/CaseContactsSelectorExternal.js +2 -2
  15. package/lib/cjs/InlineEdit/InlineEdit.js +2 -2
  16. package/lib/cjs/InlineEdit/NewInlineEdit.js +2 -2
  17. package/lib/cjs/LoadingDots/index.d.ts +0 -1
  18. package/lib/cjs/LoadingDots/index.d.ts.map +1 -1
  19. package/lib/cjs/LoadingDots/index.js +1 -1
  20. package/lib/cjs/TextAreaResizable/TextAreaResizable.js +5 -2
  21. package/lib/esm/AlertMessage/index.d.ts +0 -1
  22. package/lib/esm/AlertMessage/index.d.ts.map +1 -1
  23. package/lib/esm/AlertMessage/index.js +1 -1
  24. package/lib/esm/ConfirmationModal/ConfirmationModal.stories.d.ts +0 -6
  25. package/lib/esm/ConfirmationModal/ConfirmationModal.stories.d.ts.map +1 -1
  26. package/lib/esm/ConfirmationModal/ConfirmationModal.stories.js +19 -18
  27. package/lib/esm/CustomContentLoader/CustomContentLoader.d.ts.map +1 -1
  28. package/lib/esm/CustomContentLoader/CustomContentLoader.js +23 -23
  29. package/lib/esm/CustomTextInput/CustomTextInput.js +1 -1
  30. package/lib/esm/DropDownList/SearchableList.d.ts.map +1 -1
  31. package/lib/esm/DropDownList/SearchableList.js +2 -0
  32. package/lib/esm/DropDownList/dropdownUtils.d.ts.map +1 -1
  33. package/lib/esm/DropDownList/dropdownUtils.js +1 -0
  34. package/lib/esm/Functional/CaseContactsSelectorExternal.js +1 -1
  35. package/lib/esm/InlineEdit/InlineEdit.js +1 -1
  36. package/lib/esm/InlineEdit/NewInlineEdit.js +1 -1
  37. package/lib/esm/LoadingDots/index.d.ts +0 -1
  38. package/lib/esm/LoadingDots/index.d.ts.map +1 -1
  39. package/lib/esm/LoadingDots/index.js +1 -1
  40. package/lib/esm/TextAreaResizable/TextAreaResizable.js +1 -1
  41. package/package.json +7 -23
  42. package/lib/cjs/AlertMessage/AlertMessage.stories.d.ts +0 -12
  43. package/lib/cjs/AlertMessage/AlertMessage.stories.d.ts.map +0 -1
  44. package/lib/cjs/AlertMessage/AlertMessage.stories.js +0 -29
  45. package/lib/cjs/DropDownList/Dropdownlist.stories.d.ts +0 -17
  46. package/lib/cjs/DropDownList/Dropdownlist.stories.d.ts.map +0 -1
  47. package/lib/cjs/DropDownList/Dropdownlist.stories.js +0 -253
  48. package/lib/cjs/LoadingDots/LoadingDots.stories.d.ts +0 -10
  49. package/lib/cjs/LoadingDots/LoadingDots.stories.d.ts.map +0 -1
  50. package/lib/cjs/LoadingDots/LoadingDots.stories.js +0 -16
  51. package/lib/cjs/LoadingIndicator/LoadingIndicator.stories.d.ts +0 -11
  52. package/lib/cjs/LoadingIndicator/LoadingIndicator.stories.d.ts.map +0 -1
  53. package/lib/cjs/LoadingIndicator/LoadingIndicator.stories.js +0 -18
  54. package/lib/cjs/Table/PFTable.stories.d.ts +0 -20
  55. package/lib/cjs/Table/PFTable.stories.d.ts.map +0 -1
  56. package/lib/cjs/Table/PFTable.stories.js +0 -81
  57. package/lib/cjs/demo/Demo.css +0 -3
  58. package/lib/cjs/demo/Demo.d.ts +0 -13
  59. package/lib/cjs/demo/Demo.d.ts.map +0 -1
  60. package/lib/cjs/demo/Demo.js +0 -42
  61. package/lib/cjs/demo/Demo.md +0 -0
  62. package/lib/cjs/demo/Demo.scss +0 -3
  63. package/lib/cjs/demo/index.d.ts +0 -3
  64. package/lib/cjs/demo/index.d.ts.map +0 -1
  65. package/lib/cjs/demo/index.js +0 -23
  66. package/lib/esm/AlertMessage/AlertMessage.stories.d.ts +0 -12
  67. package/lib/esm/AlertMessage/AlertMessage.stories.d.ts.map +0 -1
  68. package/lib/esm/AlertMessage/AlertMessage.stories.js +0 -20
  69. package/lib/esm/DropDownList/Dropdownlist.stories.d.ts +0 -17
  70. package/lib/esm/DropDownList/Dropdownlist.stories.d.ts.map +0 -1
  71. package/lib/esm/DropDownList/Dropdownlist.stories.js +0 -156
  72. package/lib/esm/LoadingDots/LoadingDots.stories.d.ts +0 -10
  73. package/lib/esm/LoadingDots/LoadingDots.stories.d.ts.map +0 -1
  74. package/lib/esm/LoadingDots/LoadingDots.stories.js +0 -8
  75. package/lib/esm/LoadingIndicator/LoadingIndicator.stories.d.ts +0 -11
  76. package/lib/esm/LoadingIndicator/LoadingIndicator.stories.d.ts.map +0 -1
  77. package/lib/esm/LoadingIndicator/LoadingIndicator.stories.js +0 -9
  78. package/lib/esm/Table/PFTable.stories.d.ts +0 -20
  79. package/lib/esm/Table/PFTable.stories.d.ts.map +0 -1
  80. package/lib/esm/Table/PFTable.stories.js +0 -73
  81. package/lib/esm/demo/Demo.css +0 -3
  82. package/lib/esm/demo/Demo.d.ts +0 -13
  83. package/lib/esm/demo/Demo.d.ts.map +0 -1
  84. package/lib/esm/demo/Demo.js +0 -26
  85. package/lib/esm/demo/Demo.md +0 -0
  86. package/lib/esm/demo/Demo.scss +0 -3
  87. package/lib/esm/demo/index.d.ts +0 -3
  88. package/lib/esm/demo/index.d.ts.map +0 -1
  89. package/lib/esm/demo/index.js +0 -2
@@ -1,3 +1,2 @@
1
1
  export * from './AlertMessage';
2
- export * from './AlertMessage.stories';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AlertMessage/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AlertMessage/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -11,4 +11,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./AlertMessage"), exports);
14
- __exportStar(require("./AlertMessage.stories"), exports);
14
+ //export * from './AlertMessage.stories';
@@ -1,7 +1 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const ConfirmDialog: () => JSX.Element;
7
1
  //# sourceMappingURL=ConfirmationModal.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmationModal.stories.d.ts","sourceRoot":"","sources":["../../../src/ConfirmationModal/ConfirmationModal.stories.tsx"],"names":[],"mappings":";;;;AAIA,wBAEE;AAwBF,eAAO,MAAM,aAAa,mBAIzB,CAAC"}
1
+ {"version":3,"file":"ConfirmationModal.stories.d.ts","sourceRoot":"","sources":["../../../src/ConfirmationModal/ConfirmationModal.stories.tsx"],"names":[],"mappings":""}
@@ -1,76 +1,36 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- var __importDefault = (this && this.__importDefault) || function (mod) {
39
- return (mod && mod.__esModule) ? mod : { "default": mod };
40
- };
41
- Object.defineProperty(exports, "__esModule", { value: true });
42
- exports.ConfirmDialog = void 0;
43
- var react_1 = __importDefault(require("react"));
44
- var ConfirmationContext_1 = require("./ConfirmationContext");
45
- exports.default = {
1
+ /*import React from 'react';
2
+
3
+ import { ConfirmationServiceProvider, useConfirmation } from './ConfirmationContext';
4
+
5
+ export default {
46
6
  title: 'Components/ConfirmationModal',
47
7
  };
48
- var options = {
8
+
9
+ const options = {
49
10
  catchOnCancel: true,
50
11
  title: 'Title',
51
12
  description: 'Decroption',
52
13
  };
53
- var ActionPage = function () {
54
- var confirm = ConfirmationContext_1.useConfirmation();
55
- var action = function () { return function () { return __awaiter(void 0, void 0, void 0, function () {
56
- var e_1;
57
- return __generator(this, function (_a) {
58
- switch (_a.label) {
59
- case 0:
60
- _a.trys.push([0, 2, , 3]);
61
- return [4 /*yield*/, confirm(options)];
62
- case 1:
63
- _a.sent();
64
- return [3 /*break*/, 3];
65
- case 2:
66
- e_1 = _a.sent();
67
- return [3 /*break*/, 3];
68
- case 3: return [2 /*return*/];
69
- }
70
- });
71
- }); }; };
72
- return react_1.default.createElement("button", { onClick: action() }, "action link");
14
+
15
+ const ActionPage = () => {
16
+ const confirm = useConfirmation();
17
+
18
+ const action = () => async () => {
19
+ try {
20
+ await confirm(options);
21
+ // confirmed, continue
22
+ // rest of code
23
+ } catch (e) {
24
+ // didn't confirm
25
+ }
26
+ };
27
+
28
+ return <button onClick={action()}>action link</button>;
73
29
  };
74
- var ConfirmDialog = function () { return (react_1.default.createElement(ConfirmationContext_1.ConfirmationServiceProvider, null,
75
- react_1.default.createElement(ActionPage, null))); };
76
- exports.ConfirmDialog = ConfirmDialog;
30
+
31
+ export const ConfirmDialog = () => (
32
+ <ConfirmationServiceProvider>
33
+ <ActionPage />
34
+ </ConfirmationServiceProvider>
35
+ );
36
+ */
@@ -1 +1 @@
1
- {"version":3,"file":"CustomContentLoader.d.ts","sourceRoot":"","sources":["../../../src/CustomContentLoader/CustomContentLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,wBAAgB,qBAAqB,gBAgEpC;AAED,MAAM,WAAW,uBAAuB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb;AAED,UAAU,2BAA2B;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,UAAU,CAAC,EAAE,uBAAuB,EAAE,CAAC;CAC1C;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,2BAA2B,eAMrE"}
1
+ {"version":3,"file":"CustomContentLoader.d.ts","sourceRoot":"","sources":["../../../src/CustomContentLoader/CustomContentLoader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,wBAAgB,qBAAqB,gBAgEpC;AAED,MAAM,WAAW,uBAAuB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb;AAED,UAAU,2BAA2B;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,UAAU,CAAC,EAAE,uBAAuB,EAAE,CAAC;CAC1C;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,2BAA2B,eAUrE"}
@@ -4,26 +4,26 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CustomContentLoader = exports.OverviewContentLoader = void 0;
7
+ var react_core_1 = require("@patternfly/react-core");
7
8
  var react_1 = __importDefault(require("react"));
8
- var react_content_loader_1 = __importDefault(require("react-content-loader"));
9
9
  function OverviewContentLoader() {
10
10
  return (react_1.default.createElement("div", { style: { width: '100%', position: 'relative' } },
11
- react_1.default.createElement(react_content_loader_1.default, { height: '900', width: '70%' },
12
- react_1.default.createElement("rect", { x: "2.3%", y: "50", width: "15%", height: "30" }),
13
- react_1.default.createElement("rect", { x: "2.3%", y: "95", width: "12%", height: "25" }),
14
- react_1.default.createElement("rect", { x: "2.3%", y: "140", width: "50%", height: "25" }),
15
- react_1.default.createElement("rect", { x: "2.3%", y: "190", width: "100%", height: "150" }),
16
- react_1.default.createElement("rect", { x: "2.3%", y: "370", width: "100%", height: "120" }),
17
- react_1.default.createElement("rect", { x: "2.3%", y: "520", width: "100%", height: "50" }),
18
- react_1.default.createElement("rect", { x: "3%", y: "590", width: "10%", height: "25" }),
19
- react_1.default.createElement("rect", { x: "3%", y: "635", width: "43%", height: "25" }),
20
- react_1.default.createElement("rect", { x: "55%", y: "590", width: "10%", height: "25" }),
21
- react_1.default.createElement("rect", { x: "55%", y: "635", width: "43%", height: "25" }),
22
- react_1.default.createElement("rect", { x: "3%", y: "695", width: "10%", height: "25" }),
23
- react_1.default.createElement("rect", { x: "3%", y: "740", width: "95%", height: "25" }),
24
- react_1.default.createElement("rect", { x: "2.3%", y: "570", width: "1", height: "220" }),
25
- react_1.default.createElement("rect", { x: "99.9%", y: "570", width: "1", height: "220" }),
26
- react_1.default.createElement("rect", { x: "2.3%", y: "790", width: "100%", height: "1" })),
11
+ react_1.default.createElement("div", { style: { width: '70%', height: '900px', position: 'relative' } },
12
+ react_1.default.createElement(react_core_1.Skeleton, { height: "30px", width: "15%", style: { top: '50px', left: '2.3%' } }),
13
+ react_1.default.createElement(react_core_1.Skeleton, { height: "25px", width: "12%", style: { top: '95px', left: '2.3%' } }),
14
+ react_1.default.createElement(react_core_1.Skeleton, { height: "25px", width: "50%", style: { top: '140px', left: '2.3%' } }),
15
+ react_1.default.createElement(react_core_1.Skeleton, { height: "150px", width: "97.7%", style: { top: '190px', left: '2.3%' } }),
16
+ react_1.default.createElement(react_core_1.Skeleton, { height: "120px", width: "97.7%", style: { top: '370px', left: '2.3%' } }),
17
+ react_1.default.createElement(react_core_1.Skeleton, { height: "50px", width: "97.7%", style: { top: '520px', left: '2.3%' } }),
18
+ react_1.default.createElement(react_core_1.Skeleton, { height: "25px", width: "10%", style: { top: '590px', left: '3%' } }),
19
+ react_1.default.createElement(react_core_1.Skeleton, { height: "25px", width: "43%", style: { top: '635px', left: '3%' } }),
20
+ react_1.default.createElement(react_core_1.Skeleton, { height: "25px", width: "10%", style: { top: '590px', left: '55%' } }),
21
+ react_1.default.createElement(react_core_1.Skeleton, { height: "25px", width: "43%", style: { top: '635px', left: '55%' } }),
22
+ react_1.default.createElement(react_core_1.Skeleton, { height: "25px", width: "10%", style: { top: '695px', left: '3%' } }),
23
+ react_1.default.createElement(react_core_1.Skeleton, { height: "25px", width: "95%", style: { top: '740px', left: '3%' } }),
24
+ react_1.default.createElement(react_core_1.Skeleton, { height: "220px", width: "1px", style: { top: '570px', left: '2.3%' } }),
25
+ react_1.default.createElement(react_core_1.Skeleton, { height: "220px", width: "1px", style: { top: '570px', left: '99.9%' } }),
26
+ react_1.default.createElement(react_core_1.Skeleton, { height: "1px", width: "97.7%", style: { top: '790px', left: '2.3%' } })),
27
27
  react_1.default.createElement("div", { style: {
28
28
  position: 'absolute',
29
29
  top: '0',
@@ -48,15 +48,15 @@ function OverviewContentLoader() {
48
48
  bottom: '0',
49
49
  backgroundColor: '#ededed',
50
50
  } },
51
- react_1.default.createElement(react_content_loader_1.default, { height: '100%', width: '100%', backgroundColor: '#fff', foregroundColor: '#f5f6f7' },
52
- react_1.default.createElement("rect", { x: "3%", y: "40", height: "500", width: "94%" }),
53
- react_1.default.createElement("rect", { x: "3%", y: "570", height: "500", width: "94%" })))));
51
+ react_1.default.createElement("div", { className: "gray-loader-background", style: { height: '100%', width: '100%' } },
52
+ react_1.default.createElement(react_core_1.Skeleton, { height: "500px", width: "94%", style: { top: '40px', left: '3%' } }),
53
+ react_1.default.createElement(react_core_1.Skeleton, { height: "500px", width: "94%", style: { top: '570px', left: '3%' } })))));
54
54
  }
55
55
  exports.OverviewContentLoader = OverviewContentLoader;
56
56
  function CustomContentLoader(props) {
57
57
  var children = (props.rectangles &&
58
- props.rectangles.map(function (obj) { return react_1.default.createElement("rect", { x: obj.x, y: obj.y, height: obj.height, width: obj.width }); })) ||
59
- props.children || react_1.default.createElement("rect", { x: 0, y: 0, width: 400, height: 100 });
60
- return react_1.default.createElement(react_content_loader_1.default, null, children);
58
+ props.rectangles.map(function (obj) { return (react_1.default.createElement(react_core_1.Skeleton, { height: obj.height, width: obj.width, style: { top: obj.y, left: obj.x } })); })) ||
59
+ props.children || (react_1.default.createElement(react_core_1.Skeleton, { height: "100px", width: "400px", style: { position: 'relative', marginBottom: '50px' } }));
60
+ return react_1.default.createElement(react_1.default.Fragment, null, children);
61
61
  }
62
62
  exports.CustomContentLoader = CustomContentLoader;
@@ -27,7 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
28
  exports.CustomTextInput = void 0;
29
29
  var react_core_1 = require("@patternfly/react-core");
30
- var lodash_1 = require("lodash");
30
+ var isEmpty_1 = __importDefault(require("lodash/isEmpty"));
31
31
  var react_1 = __importDefault(require("react"));
32
32
  var CustomTextInput = function (props) {
33
33
  // To set defaultProps
@@ -40,7 +40,7 @@ var CustomTextInput = function (props) {
40
40
  };
41
41
  // Function to check for validity
42
42
  var validatedCheck = function () {
43
- if (!lodash_1.isEmpty(value)) {
43
+ if (!isEmpty_1.default(value)) {
44
44
  if (validated === 'error') {
45
45
  return 'error';
46
46
  }
@@ -48,7 +48,7 @@ var CustomTextInput = function (props) {
48
48
  return validated;
49
49
  }
50
50
  else if (!isSpaceAllowed) {
51
- return lodash_1.isEmpty(value === null || value === void 0 ? void 0 : value.trim()) ? 'error' : 'default';
51
+ return isEmpty_1.default(value === null || value === void 0 ? void 0 : value.trim()) ? 'error' : 'default';
52
52
  }
53
53
  else
54
54
  return validated;
@@ -1 +1 @@
1
- {"version":3,"file":"SearchableList.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/SearchableList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAEH,sBAAsB,EAEtB,sBAAsB,EAEzB,MAAM,WAAW,CAAC;AAGnB,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,UAAU,MAAM,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,eAAe,CAAC;IACjF,eAAe,EAAE,CAAC,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,SAAS,EAAE,CAAC;IACtF,QAAQ,EAAE,CAAC,OAAO,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAChE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACrE;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,eAwIzD"}
1
+ {"version":3,"file":"SearchableList.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/SearchableList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAEH,sBAAsB,EAEtB,sBAAsB,EAEzB,MAAM,WAAW,CAAC;AAGnB,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,UAAU,MAAM,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,eAAe,CAAC;IACjF,eAAe,EAAE,CAAC,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,SAAS,EAAE,CAAC;IACtF,QAAQ,EAAE,CAAC,OAAO,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAChE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACrE;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,eA6IzD"}
@@ -46,6 +46,8 @@ function SearchableList(props) {
46
46
  return __assign(__assign({}, changes), { inputValue: dropdownUtils_1.itemToString(props.selectedItem) && downshift.inputValue !== dropdownUtils_1.itemToString(props.selectedItem)
47
47
  ? dropdownUtils_1.itemToString(props.selectedItem)
48
48
  : state.inputValue });
49
+ case downshift_1.useCombobox.stateChangeTypes.InputKeyDownEnter:
50
+ return __assign(__assign({}, changes), { inputValue: state.inputValue });
49
51
  default:
50
52
  return changes;
51
53
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dropdownUtils.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/dropdownUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAExD;AAED,eAAO,MAAM,IAAI,YAAW,CAAC;AAE7B,eAAO,MAAM,+BAA+B,4CAgC3C,CAAC"}
1
+ {"version":3,"file":"dropdownUtils.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/dropdownUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAExD;AAED,eAAO,MAAM,IAAI,YAAW,CAAC;AAE7B,eAAO,MAAM,+BAA+B,4CAoC3C,CAAC"}
@@ -28,6 +28,7 @@ var multiSelectDropdownStateReducer = function (state, actionAndChanges) {
28
28
  case downshift_1.useSelect.stateChangeTypes.ItemClick:
29
29
  return __assign(__assign({}, changes), { isOpen: true, highlightedIndex: state.highlightedIndex, inputValue: '' });
30
30
  case downshift_1.useCombobox.stateChangeTypes.InputKeyDownEnter:
31
+ return __assign(__assign({}, changes), { inputValue: state.inputValue });
31
32
  case downshift_1.useCombobox.stateChangeTypes.ItemClick:
32
33
  return __assign(__assign({}, changes), { isOpen: true, highlightedIndex: state.highlightedIndex, inputValue: '' });
33
34
  case downshift_1.useCombobox.stateChangeTypes.InputBlur:
@@ -104,10 +104,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
104
104
  exports.getHydraContactLabel = exports.renderMenuItemChildren = exports.CaseContactsSelectorExternal = void 0;
105
105
  var hydrajs_1 = require("@cee-eng/hydrajs");
106
106
  var utils_1 = require("@rh-support/utils");
107
- var lodash_1 = require("lodash");
108
107
  var differenceBy_1 = __importDefault(require("lodash/differenceBy"));
109
108
  var isArray_1 = __importDefault(require("lodash/isArray"));
110
109
  var isEmpty_1 = __importDefault(require("lodash/isEmpty"));
110
+ var sortBy_1 = __importDefault(require("lodash/sortBy"));
111
111
  var react_1 = __importStar(require("react"));
112
112
  var react_bootstrap_typeahead_1 = require("react-bootstrap-typeahead");
113
113
  var react_i18next_1 = require("react-i18next");
@@ -287,7 +287,7 @@ function CaseContactsSelectorExternal(props) {
287
287
  var customEmails = props.customEmails, restProps = __rest(props, ["customEmails"]);
288
288
  var conditionalProps = __assign(__assign({}, (props.renderToken ? { renderToken: props.renderToken } : undefined)), ((customEmails || []).length > 0 ? { renderMenu: renderMenu } : undefined));
289
289
  var getCustomEmails = function () {
290
- return lodash_1.sortBy((customEmails || []).map(function (item) { return (__assign(__assign({}, item), { ssoUsername: item.emailAddress, firstName: item.emailAddress, lastName: item.emailAddress })); }), 'emailAddress');
290
+ return sortBy_1.default((customEmails || []).map(function (item) { return (__assign(__assign({}, item), { ssoUsername: item.emailAddress, firstName: item.emailAddress, lastName: item.emailAddress })); }), 'emailAddress');
291
291
  };
292
292
  return (react_1.default.createElement(react_bootstrap_typeahead_1.Typeahead, __assign({}, restProps, { id: props.id || '',
293
293
  // @ts-expect-error
@@ -88,7 +88,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
88
88
  exports.InlineEdit = void 0;
89
89
  require("./inlineEdit.css");
90
90
  var pencil_alt_icon_1 = __importDefault(require("@patternfly/react-icons/dist/js/icons/pencil-alt-icon"));
91
- var lodash_1 = require("lodash");
91
+ var isEmpty_1 = __importDefault(require("lodash/isEmpty"));
92
92
  var react_1 = __importStar(require("react"));
93
93
  var react_i18next_1 = require("react-i18next");
94
94
  var defaultProps = {
@@ -177,7 +177,7 @@ function InlineEdit(props) {
177
177
  });
178
178
  }); };
179
179
  // Disables button if isSpaceAllowed is False and Input has Spaces
180
- var diabledCheckForSpaceAllowed = !props.isSpaceAllowed && lodash_1.isEmpty((_a = props.inputValue) === null || _a === void 0 ? void 0 : _a.trim());
180
+ var diabledCheckForSpaceAllowed = !props.isSpaceAllowed && isEmpty_1.default((_a = props.inputValue) === null || _a === void 0 ? void 0 : _a.trim());
181
181
  var handleKeyDown = function (e) { return __awaiter(_this, void 0, void 0, function () {
182
182
  return __generator(this, function (_a) {
183
183
  switch (_a.label) {
@@ -88,7 +88,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
88
88
  exports.NewInlineEdit = void 0;
89
89
  require("./newInlineEdit.css");
90
90
  var pencil_alt_icon_1 = __importDefault(require("@patternfly/react-icons/dist/js/icons/pencil-alt-icon"));
91
- var lodash_1 = require("lodash");
91
+ var isEmpty_1 = __importDefault(require("lodash/isEmpty"));
92
92
  var react_1 = __importStar(require("react"));
93
93
  var react_i18next_1 = require("react-i18next");
94
94
  var defaultProps = {
@@ -183,7 +183,7 @@ function NewInlineEdit(props) {
183
183
  });
184
184
  }); };
185
185
  // Disables button if isSpaceAllowed is False and Input has Spaces
186
- var diabledCheckForSpaceAllowed = !props.isSpaceAllowed && lodash_1.isEmpty((_a = props.inputValue) === null || _a === void 0 ? void 0 : _a.trim());
186
+ var diabledCheckForSpaceAllowed = !props.isSpaceAllowed && isEmpty_1.default((_a = props.inputValue) === null || _a === void 0 ? void 0 : _a.trim());
187
187
  var handleKeyDown = function (e) { return __awaiter(_this, void 0, void 0, function () {
188
188
  return __generator(this, function (_a) {
189
189
  switch (_a.label) {
@@ -1,3 +1,2 @@
1
1
  export * from './LoadingDots';
2
- export * from './LoadingDots.stories';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/LoadingDots/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/LoadingDots/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -11,4 +11,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./LoadingDots"), exports);
14
- __exportStar(require("./LoadingDots.stories"), exports);
14
+ //export * from './LoadingDots.stories';
@@ -34,10 +34,13 @@ var __read = (this && this.__read) || function (o, n) {
34
34
  }
35
35
  return ar;
36
36
  };
37
+ var __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
37
40
  Object.defineProperty(exports, "__esModule", { value: true });
38
41
  exports.TextAreaResizable = void 0;
39
42
  var react_core_1 = require("@patternfly/react-core");
40
- var lodash_1 = require("lodash");
43
+ var isEmpty_1 = __importDefault(require("lodash/isEmpty"));
41
44
  var react_1 = __importStar(require("react"));
42
45
  var TextAreaResizable = function (props) {
43
46
  // To set defaultProps
@@ -46,7 +49,7 @@ var TextAreaResizable = function (props) {
46
49
  // Function to handle onChange event
47
50
  var onTextAreaChange = function (value, event) {
48
51
  onChange(value, event);
49
- setIsTextAreaEmpty(lodash_1.isEmpty(value === null || value === void 0 ? void 0 : value.trim()));
52
+ setIsTextAreaEmpty(isEmpty_1.default(value === null || value === void 0 ? void 0 : value.trim()));
50
53
  event.preventDefault();
51
54
  return [];
52
55
  };
@@ -1,3 +1,2 @@
1
1
  export * from './AlertMessage';
2
- export * from './AlertMessage.stories';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AlertMessage/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AlertMessage/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -1,2 +1,2 @@
1
1
  export * from './AlertMessage';
2
- export * from './AlertMessage.stories';
2
+ //export * from './AlertMessage.stories';
@@ -1,7 +1 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const ConfirmDialog: () => JSX.Element;
7
1
  //# sourceMappingURL=ConfirmationModal.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmationModal.stories.d.ts","sourceRoot":"","sources":["../../../src/ConfirmationModal/ConfirmationModal.stories.tsx"],"names":[],"mappings":";;;;AAIA,wBAEE;AAwBF,eAAO,MAAM,aAAa,mBAIzB,CAAC"}
1
+ {"version":3,"file":"ConfirmationModal.stories.d.ts","sourceRoot":"","sources":["../../../src/ConfirmationModal/ConfirmationModal.stories.tsx"],"names":[],"mappings":""}
@@ -1,35 +1,36 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import React from 'react';
1
+ /*import React from 'react';
2
+
11
3
  import { ConfirmationServiceProvider, useConfirmation } from './ConfirmationContext';
4
+
12
5
  export default {
13
6
  title: 'Components/ConfirmationModal',
14
7
  };
8
+
15
9
  const options = {
16
10
  catchOnCancel: true,
17
11
  title: 'Title',
18
12
  description: 'Decroption',
19
13
  };
14
+
20
15
  const ActionPage = () => {
21
16
  const confirm = useConfirmation();
22
- const action = () => () => __awaiter(void 0, void 0, void 0, function* () {
17
+
18
+ const action = () => async () => {
23
19
  try {
24
- yield confirm(options);
20
+ await confirm(options);
25
21
  // confirmed, continue
26
22
  // rest of code
27
- }
28
- catch (e) {
23
+ } catch (e) {
29
24
  // didn't confirm
30
25
  }
31
- });
32
- return React.createElement("button", { onClick: action() }, "action link");
26
+ };
27
+
28
+ return <button onClick={action()}>action link</button>;
33
29
  };
34
- export const ConfirmDialog = () => (React.createElement(ConfirmationServiceProvider, null,
35
- React.createElement(ActionPage, null)));
30
+
31
+ export const ConfirmDialog = () => (
32
+ <ConfirmationServiceProvider>
33
+ <ActionPage />
34
+ </ConfirmationServiceProvider>
35
+ );
36
+ */
@@ -1 +1 @@
1
- {"version":3,"file":"CustomContentLoader.d.ts","sourceRoot":"","sources":["../../../src/CustomContentLoader/CustomContentLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,wBAAgB,qBAAqB,gBAgEpC;AAED,MAAM,WAAW,uBAAuB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb;AAED,UAAU,2BAA2B;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,UAAU,CAAC,EAAE,uBAAuB,EAAE,CAAC;CAC1C;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,2BAA2B,eAMrE"}
1
+ {"version":3,"file":"CustomContentLoader.d.ts","sourceRoot":"","sources":["../../../src/CustomContentLoader/CustomContentLoader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,wBAAgB,qBAAqB,gBAgEpC;AAED,MAAM,WAAW,uBAAuB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb;AAED,UAAU,2BAA2B;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,UAAU,CAAC,EAAE,uBAAuB,EAAE,CAAC;CAC1C;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,2BAA2B,eAUrE"}
@@ -1,23 +1,23 @@
1
+ import { Skeleton } from '@patternfly/react-core';
1
2
  import React from 'react';
2
- import ContentLoader from 'react-content-loader';
3
3
  export function OverviewContentLoader() {
4
4
  return (React.createElement("div", { style: { width: '100%', position: 'relative' } },
5
- React.createElement(ContentLoader, { height: '900', width: '70%' },
6
- React.createElement("rect", { x: "2.3%", y: "50", width: "15%", height: "30" }),
7
- React.createElement("rect", { x: "2.3%", y: "95", width: "12%", height: "25" }),
8
- React.createElement("rect", { x: "2.3%", y: "140", width: "50%", height: "25" }),
9
- React.createElement("rect", { x: "2.3%", y: "190", width: "100%", height: "150" }),
10
- React.createElement("rect", { x: "2.3%", y: "370", width: "100%", height: "120" }),
11
- React.createElement("rect", { x: "2.3%", y: "520", width: "100%", height: "50" }),
12
- React.createElement("rect", { x: "3%", y: "590", width: "10%", height: "25" }),
13
- React.createElement("rect", { x: "3%", y: "635", width: "43%", height: "25" }),
14
- React.createElement("rect", { x: "55%", y: "590", width: "10%", height: "25" }),
15
- React.createElement("rect", { x: "55%", y: "635", width: "43%", height: "25" }),
16
- React.createElement("rect", { x: "3%", y: "695", width: "10%", height: "25" }),
17
- React.createElement("rect", { x: "3%", y: "740", width: "95%", height: "25" }),
18
- React.createElement("rect", { x: "2.3%", y: "570", width: "1", height: "220" }),
19
- React.createElement("rect", { x: "99.9%", y: "570", width: "1", height: "220" }),
20
- React.createElement("rect", { x: "2.3%", y: "790", width: "100%", height: "1" })),
5
+ React.createElement("div", { style: { width: '70%', height: '900px', position: 'relative' } },
6
+ React.createElement(Skeleton, { height: "30px", width: "15%", style: { top: '50px', left: '2.3%' } }),
7
+ React.createElement(Skeleton, { height: "25px", width: "12%", style: { top: '95px', left: '2.3%' } }),
8
+ React.createElement(Skeleton, { height: "25px", width: "50%", style: { top: '140px', left: '2.3%' } }),
9
+ React.createElement(Skeleton, { height: "150px", width: "97.7%", style: { top: '190px', left: '2.3%' } }),
10
+ React.createElement(Skeleton, { height: "120px", width: "97.7%", style: { top: '370px', left: '2.3%' } }),
11
+ React.createElement(Skeleton, { height: "50px", width: "97.7%", style: { top: '520px', left: '2.3%' } }),
12
+ React.createElement(Skeleton, { height: "25px", width: "10%", style: { top: '590px', left: '3%' } }),
13
+ React.createElement(Skeleton, { height: "25px", width: "43%", style: { top: '635px', left: '3%' } }),
14
+ React.createElement(Skeleton, { height: "25px", width: "10%", style: { top: '590px', left: '55%' } }),
15
+ React.createElement(Skeleton, { height: "25px", width: "43%", style: { top: '635px', left: '55%' } }),
16
+ React.createElement(Skeleton, { height: "25px", width: "10%", style: { top: '695px', left: '3%' } }),
17
+ React.createElement(Skeleton, { height: "25px", width: "95%", style: { top: '740px', left: '3%' } }),
18
+ React.createElement(Skeleton, { height: "220px", width: "1px", style: { top: '570px', left: '2.3%' } }),
19
+ React.createElement(Skeleton, { height: "220px", width: "1px", style: { top: '570px', left: '99.9%' } }),
20
+ React.createElement(Skeleton, { height: "1px", width: "97.7%", style: { top: '790px', left: '2.3%' } })),
21
21
  React.createElement("div", { style: {
22
22
  position: 'absolute',
23
23
  top: '0',
@@ -42,13 +42,13 @@ export function OverviewContentLoader() {
42
42
  bottom: '0',
43
43
  backgroundColor: '#ededed',
44
44
  } },
45
- React.createElement(ContentLoader, { height: '100%', width: '100%', backgroundColor: '#fff', foregroundColor: '#f5f6f7' },
46
- React.createElement("rect", { x: "3%", y: "40", height: "500", width: "94%" }),
47
- React.createElement("rect", { x: "3%", y: "570", height: "500", width: "94%" })))));
45
+ React.createElement("div", { className: "gray-loader-background", style: { height: '100%', width: '100%' } },
46
+ React.createElement(Skeleton, { height: "500px", width: "94%", style: { top: '40px', left: '3%' } }),
47
+ React.createElement(Skeleton, { height: "500px", width: "94%", style: { top: '570px', left: '3%' } })))));
48
48
  }
49
49
  export function CustomContentLoader(props) {
50
50
  const children = (props.rectangles &&
51
- props.rectangles.map((obj) => React.createElement("rect", { x: obj.x, y: obj.y, height: obj.height, width: obj.width }))) ||
52
- props.children || React.createElement("rect", { x: 0, y: 0, width: 400, height: 100 });
53
- return React.createElement(ContentLoader, null, children);
51
+ props.rectangles.map((obj) => (React.createElement(Skeleton, { height: obj.height, width: obj.width, style: { top: obj.y, left: obj.x } })))) ||
52
+ props.children || (React.createElement(Skeleton, { height: "100px", width: "400px", style: { position: 'relative', marginBottom: '50px' } }));
53
+ return React.createElement(React.Fragment, null, children);
54
54
  }
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { TextInput } from '@patternfly/react-core';
13
- import { isEmpty } from 'lodash';
13
+ import isEmpty from 'lodash/isEmpty';
14
14
  import React from 'react';
15
15
  export const CustomTextInput = (props) => {
16
16
  // To set defaultProps
@@ -1 +1 @@
1
- {"version":3,"file":"SearchableList.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/SearchableList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAEH,sBAAsB,EAEtB,sBAAsB,EAEzB,MAAM,WAAW,CAAC;AAGnB,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,UAAU,MAAM,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,eAAe,CAAC;IACjF,eAAe,EAAE,CAAC,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,SAAS,EAAE,CAAC;IACtF,QAAQ,EAAE,CAAC,OAAO,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAChE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACrE;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,eAwIzD"}
1
+ {"version":3,"file":"SearchableList.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/SearchableList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAEH,sBAAsB,EAEtB,sBAAsB,EAEzB,MAAM,WAAW,CAAC;AAGnB,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,UAAU,MAAM,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,eAAe,CAAC;IACjF,eAAe,EAAE,CAAC,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,SAAS,EAAE,CAAC;IACtF,QAAQ,EAAE,CAAC,OAAO,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAChE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACrE;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,eA6IzD"}
@@ -28,6 +28,8 @@ export default function SearchableList(props) {
28
28
  return Object.assign(Object.assign({}, changes), { inputValue: itemToString(props.selectedItem) && downshift.inputValue !== itemToString(props.selectedItem)
29
29
  ? itemToString(props.selectedItem)
30
30
  : state.inputValue });
31
+ case useCombobox.stateChangeTypes.InputKeyDownEnter:
32
+ return Object.assign(Object.assign({}, changes), { inputValue: state.inputValue });
31
33
  default:
32
34
  return changes;
33
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dropdownUtils.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/dropdownUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAExD;AAED,eAAO,MAAM,IAAI,YAAW,CAAC;AAE7B,eAAO,MAAM,+BAA+B,4CAgC3C,CAAC"}
1
+ {"version":3,"file":"dropdownUtils.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/dropdownUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAExD;AAED,eAAO,MAAM,IAAI,YAAW,CAAC;AAE7B,eAAO,MAAM,+BAA+B,4CAoC3C,CAAC"}
@@ -12,6 +12,7 @@ export const multiSelectDropdownStateReducer = (state, actionAndChanges) => {
12
12
  case useSelect.stateChangeTypes.ItemClick:
13
13
  return Object.assign(Object.assign({}, changes), { isOpen: true, highlightedIndex: state.highlightedIndex, inputValue: '' });
14
14
  case useCombobox.stateChangeTypes.InputKeyDownEnter:
15
+ return Object.assign(Object.assign({}, changes), { inputValue: state.inputValue });
15
16
  case useCombobox.stateChangeTypes.ItemClick:
16
17
  return Object.assign(Object.assign({}, changes), { isOpen: true, highlightedIndex: state.highlightedIndex, inputValue: '' });
17
18
  case useCombobox.stateChangeTypes.InputBlur: