@patternfly/react-templates 6.0.0-alpha.4 → 6.0.0-alpha.41

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 (93) hide show
  1. package/CHANGELOG.md +154 -0
  2. package/README.md +4 -17
  3. package/components/package.json +1 -1
  4. package/dist/dynamic/components/Dropdown/package.json +1 -0
  5. package/dist/dynamic/components/Select/package.json +1 -1
  6. package/dist/dynamic-modules.json +15 -0
  7. package/dist/esm/components/Dropdown/SimpleDropdown.d.ts +48 -0
  8. package/dist/esm/components/Dropdown/SimpleDropdown.d.ts.map +1 -0
  9. package/dist/esm/components/Dropdown/SimpleDropdown.js +33 -0
  10. package/dist/esm/components/Dropdown/SimpleDropdown.js.map +1 -0
  11. package/dist/esm/components/Dropdown/index.d.ts +2 -0
  12. package/dist/esm/components/Dropdown/index.d.ts.map +1 -0
  13. package/dist/esm/components/Dropdown/index.js +2 -0
  14. package/dist/esm/components/Dropdown/index.js.map +1 -0
  15. package/dist/esm/components/Select/CheckboxSelect.d.ts +7 -3
  16. package/dist/esm/components/Select/CheckboxSelect.d.ts.map +1 -1
  17. package/dist/esm/components/Select/CheckboxSelect.js +9 -6
  18. package/dist/esm/components/Select/CheckboxSelect.js.map +1 -1
  19. package/dist/esm/components/Select/{SelectSimple.d.ts → SimpleSelect.d.ts} +10 -7
  20. package/dist/esm/components/Select/SimpleSelect.d.ts.map +1 -0
  21. package/dist/esm/components/Select/{SelectSimple.js → SimpleSelect.js} +13 -9
  22. package/dist/esm/components/Select/SimpleSelect.js.map +1 -0
  23. package/dist/esm/components/Select/TypeaheadSelect.d.ts +33 -0
  24. package/dist/esm/components/Select/TypeaheadSelect.d.ts.map +1 -0
  25. package/dist/esm/components/Select/TypeaheadSelect.js +180 -0
  26. package/dist/esm/components/Select/TypeaheadSelect.js.map +1 -0
  27. package/dist/esm/components/Select/index.d.ts +2 -1
  28. package/dist/esm/components/Select/index.d.ts.map +1 -1
  29. package/dist/esm/components/Select/index.js +2 -1
  30. package/dist/esm/components/Select/index.js.map +1 -1
  31. package/dist/esm/components/index.d.ts +1 -0
  32. package/dist/esm/components/index.d.ts.map +1 -1
  33. package/dist/esm/components/index.js +1 -0
  34. package/dist/esm/components/index.js.map +1 -1
  35. package/dist/js/components/Dropdown/SimpleDropdown.d.ts +48 -0
  36. package/dist/js/components/Dropdown/SimpleDropdown.d.ts.map +1 -0
  37. package/dist/js/components/Dropdown/SimpleDropdown.js +36 -0
  38. package/dist/js/components/Dropdown/SimpleDropdown.js.map +1 -0
  39. package/dist/js/components/Dropdown/index.d.ts +2 -0
  40. package/dist/js/components/Dropdown/index.d.ts.map +1 -0
  41. package/dist/js/components/Dropdown/index.js +5 -0
  42. package/dist/js/components/Dropdown/index.js.map +1 -0
  43. package/dist/js/components/Select/CheckboxSelect.d.ts +7 -3
  44. package/dist/js/components/Select/CheckboxSelect.d.ts.map +1 -1
  45. package/dist/js/components/Select/CheckboxSelect.js +9 -6
  46. package/dist/js/components/Select/CheckboxSelect.js.map +1 -1
  47. package/dist/js/components/Select/{SelectSimple.d.ts → SimpleSelect.d.ts} +10 -7
  48. package/dist/js/components/Select/SimpleSelect.d.ts.map +1 -0
  49. package/dist/js/components/Select/{SelectSimple.js → SimpleSelect.js} +14 -10
  50. package/dist/js/components/Select/SimpleSelect.js.map +1 -0
  51. package/dist/js/components/Select/TypeaheadSelect.d.ts +33 -0
  52. package/dist/js/components/Select/TypeaheadSelect.d.ts.map +1 -0
  53. package/dist/js/components/Select/TypeaheadSelect.js +184 -0
  54. package/dist/js/components/Select/TypeaheadSelect.js.map +1 -0
  55. package/dist/js/components/Select/index.d.ts +2 -1
  56. package/dist/js/components/Select/index.d.ts.map +1 -1
  57. package/dist/js/components/Select/index.js +2 -1
  58. package/dist/js/components/Select/index.js.map +1 -1
  59. package/dist/js/components/index.d.ts +1 -0
  60. package/dist/js/components/index.d.ts.map +1 -1
  61. package/dist/js/components/index.js +1 -0
  62. package/dist/js/components/index.js.map +1 -1
  63. package/dist/umd/assets/output-CgjuKcp1.css +23288 -0
  64. package/dist/umd/react-templates.min.js +1 -1
  65. package/package.json +7 -11
  66. package/rollup.config.mjs +8 -0
  67. package/src/components/Dropdown/SimpleDropdown.tsx +139 -0
  68. package/src/components/Dropdown/__tests__/SimpleDropdown.test.tsx +266 -0
  69. package/src/components/Dropdown/__tests__/__snapshots__/SimpleDropdown.test.tsx.snap +81 -0
  70. package/src/components/Dropdown/examples/DropdownTemplates.md +24 -0
  71. package/src/components/Dropdown/examples/SimpleDropdownExample.tsx +53 -0
  72. package/src/components/Dropdown/index.ts +1 -0
  73. package/src/components/Select/CheckboxSelect.tsx +18 -7
  74. package/src/components/Select/{SelectSimple.tsx → SimpleSelect.tsx} +27 -14
  75. package/src/components/Select/TypeaheadSelect.tsx +329 -0
  76. package/src/components/Select/{CheckboxSelect.test.tsx → __tests__/CheckboxSelect.test.tsx} +29 -1
  77. package/src/components/Select/{CheckboxSelectSnapshots.test.tsx → __tests__/CheckboxSelectSnapshots.test.tsx} +1 -1
  78. package/src/components/Select/__tests__/SimpleSelect.test.tsx +241 -0
  79. package/src/components/Select/__tests__/TypeaheadSelect.test.tsx +408 -0
  80. package/src/components/Select/__tests__/__snapshots__/CheckboxSelectSnapshots.test.tsx.snap +83 -0
  81. package/src/components/Select/__tests__/__snapshots__/SimpleSelect.test.tsx.snap +83 -0
  82. package/src/components/Select/__tests__/__snapshots__/TypeaheadSelect.test.tsx.snap +97 -0
  83. package/src/components/Select/examples/CheckboxSelectDemo.tsx +1 -1
  84. package/src/components/Select/examples/SelectTemplates.md +11 -4
  85. package/src/components/Select/examples/{SelectSimpleDemo.tsx → SimpleSelectDemo.tsx} +6 -6
  86. package/src/components/Select/examples/TypeaheadSelectDemo.tsx +21 -0
  87. package/src/components/Select/index.ts +2 -1
  88. package/src/components/index.ts +1 -0
  89. package/dist/esm/components/Select/SelectSimple.d.ts.map +0 -1
  90. package/dist/esm/components/Select/SelectSimple.js.map +0 -1
  91. package/dist/js/components/Select/SelectSimple.d.ts.map +0 -1
  92. package/dist/js/components/Select/SelectSimple.js.map +0 -1
  93. package/src/components/Select/__snapshots__/CheckboxSelectSnapshots.test.tsx.snap +0 -212
@@ -0,0 +1,184 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TypeaheadSelect = exports.TypeaheadSelectBase = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const react_1 = tslib_1.__importDefault(require("react"));
6
+ const react_core_1 = require("@patternfly/react-core");
7
+ const times_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/times-icon'));
8
+ const TypeaheadSelectBase = (_a) => {
9
+ var { innerRef, initialOptions, onSelect, onToggle, onInputChange, placeholder = 'Select an option', noOptionsFoundMessage = (filter) => `No results found for "${filter}"`, isDisabled, toggleWidth, toggleProps } = _a, props = tslib_1.__rest(_a, ["innerRef", "initialOptions", "onSelect", "onToggle", "onInputChange", "placeholder", "noOptionsFoundMessage", "isDisabled", "toggleWidth", "toggleProps"]);
10
+ const [isOpen, setIsOpen] = react_1.default.useState(false);
11
+ const [selected, setSelected] = react_1.default.useState('');
12
+ const [inputValue, setInputValue] = react_1.default.useState('');
13
+ const [filterValue, setFilterValue] = react_1.default.useState('');
14
+ const [selectOptions, setSelectOptions] = react_1.default.useState(initialOptions);
15
+ const [focusedItemIndex, setFocusedItemIndex] = react_1.default.useState(null);
16
+ const [activeItemId, setActiveItemId] = react_1.default.useState(null);
17
+ const textInputRef = react_1.default.useRef();
18
+ const NO_RESULTS = 'no results';
19
+ react_1.default.useEffect(() => {
20
+ let newSelectOptions = initialOptions;
21
+ // Filter menu items based on the text input value when one exists
22
+ if (filterValue) {
23
+ newSelectOptions = initialOptions.filter((option) => String(option.content).toLowerCase().includes(filterValue.toLowerCase()));
24
+ // When no options are found after filtering, display 'No results found'
25
+ if (!newSelectOptions.length) {
26
+ newSelectOptions = [
27
+ {
28
+ isAriaDisabled: true,
29
+ content: typeof noOptionsFoundMessage === 'string' ? noOptionsFoundMessage : noOptionsFoundMessage(filterValue),
30
+ value: NO_RESULTS
31
+ }
32
+ ];
33
+ }
34
+ // Open the menu when the input value changes and the new value is not empty
35
+ if (!isOpen) {
36
+ openMenu();
37
+ }
38
+ }
39
+ setSelectOptions(newSelectOptions);
40
+ }, [filterValue, initialOptions]);
41
+ const setActiveAndFocusedItem = (itemIndex) => {
42
+ setFocusedItemIndex(itemIndex);
43
+ const focusedItem = selectOptions[itemIndex];
44
+ setActiveItemId(focusedItem.value);
45
+ };
46
+ const resetActiveAndFocusedItem = () => {
47
+ setFocusedItemIndex(null);
48
+ setActiveItemId(null);
49
+ };
50
+ const openMenu = () => {
51
+ onToggle && onToggle(true);
52
+ setIsOpen(true);
53
+ };
54
+ const closeMenu = () => {
55
+ onToggle && onToggle(false);
56
+ setIsOpen(false);
57
+ resetActiveAndFocusedItem();
58
+ };
59
+ const onInputClick = () => {
60
+ if (!isOpen) {
61
+ openMenu();
62
+ }
63
+ else if (!inputValue) {
64
+ closeMenu();
65
+ }
66
+ };
67
+ const selectOption = (_event, option) => {
68
+ onSelect && onSelect(_event, option.value);
69
+ setInputValue(String(option.content));
70
+ setFilterValue('');
71
+ setSelected(String(option.value));
72
+ closeMenu();
73
+ };
74
+ const _onSelect = (_event, value) => {
75
+ if (value && value !== NO_RESULTS) {
76
+ const optionToSelect = selectOptions.find((option) => option.value === value);
77
+ selectOption(_event, optionToSelect);
78
+ }
79
+ };
80
+ const onTextInputChange = (_event, value) => {
81
+ setInputValue(value);
82
+ onInputChange && onInputChange(value);
83
+ setFilterValue(value);
84
+ resetActiveAndFocusedItem();
85
+ if (value !== selected) {
86
+ setSelected('');
87
+ }
88
+ };
89
+ const handleMenuArrowKeys = (key) => {
90
+ let indexToFocus = 0;
91
+ if (!isOpen) {
92
+ openMenu();
93
+ }
94
+ if (selectOptions.every((option) => option.isDisabled)) {
95
+ return;
96
+ }
97
+ if (key === 'ArrowUp') {
98
+ // When no index is set or at the first index, focus to the last, otherwise decrement focus index
99
+ if (focusedItemIndex === null || focusedItemIndex === 0) {
100
+ indexToFocus = selectOptions.length - 1;
101
+ }
102
+ else {
103
+ indexToFocus = focusedItemIndex - 1;
104
+ }
105
+ // Skip disabled options
106
+ while (selectOptions[indexToFocus].isDisabled) {
107
+ indexToFocus--;
108
+ if (indexToFocus === -1) {
109
+ indexToFocus = selectOptions.length - 1;
110
+ }
111
+ }
112
+ }
113
+ if (key === 'ArrowDown') {
114
+ // When no index is set or at the last index, focus to the first, otherwise increment focus index
115
+ if (focusedItemIndex === null || focusedItemIndex === selectOptions.length - 1) {
116
+ indexToFocus = 0;
117
+ }
118
+ else {
119
+ indexToFocus = focusedItemIndex + 1;
120
+ }
121
+ // Skip disabled options
122
+ while (selectOptions[indexToFocus].isDisabled) {
123
+ indexToFocus++;
124
+ if (indexToFocus === selectOptions.length) {
125
+ indexToFocus = 0;
126
+ }
127
+ }
128
+ }
129
+ setActiveAndFocusedItem(indexToFocus);
130
+ };
131
+ const onInputKeyDown = (event) => {
132
+ const focusedItem = focusedItemIndex !== null ? selectOptions[focusedItemIndex] : null;
133
+ switch (event.key) {
134
+ case 'Enter':
135
+ if (isOpen && focusedItem && focusedItem.value !== NO_RESULTS && !focusedItem.isAriaDisabled) {
136
+ selectOption(event, focusedItem);
137
+ }
138
+ if (!isOpen) {
139
+ onToggle && onToggle(true);
140
+ setIsOpen(true);
141
+ }
142
+ break;
143
+ case 'ArrowUp':
144
+ case 'ArrowDown':
145
+ event.preventDefault();
146
+ handleMenuArrowKeys(event.key);
147
+ break;
148
+ }
149
+ };
150
+ const onToggleClick = () => {
151
+ var _a;
152
+ onToggle && onToggle(!isOpen);
153
+ setIsOpen(!isOpen);
154
+ (_a = textInputRef === null || textInputRef === void 0 ? void 0 : textInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
155
+ };
156
+ const onClearButtonClick = () => {
157
+ var _a;
158
+ setSelected('');
159
+ setInputValue('');
160
+ onInputChange && onInputChange('');
161
+ setFilterValue('');
162
+ resetActiveAndFocusedItem();
163
+ (_a = textInputRef === null || textInputRef === void 0 ? void 0 : textInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
164
+ };
165
+ const toggle = (toggleRef) => (react_1.default.createElement(react_core_1.MenuToggle, Object.assign({ ref: toggleRef, variant: "typeahead", "aria-label": "Typeahead menu toggle", onClick: onToggleClick, isExpanded: isOpen, isDisabled: isDisabled, isFullWidth: true, style: {
166
+ width: toggleWidth
167
+ } }, toggleProps),
168
+ react_1.default.createElement(react_core_1.TextInputGroup, { isPlain: true },
169
+ react_1.default.createElement(react_core_1.TextInputGroupMain, Object.assign({ value: inputValue, onClick: onInputClick, onChange: onTextInputChange, onKeyDown: onInputKeyDown, autoComplete: "off", innerRef: textInputRef, placeholder: placeholder }, (activeItemId && { 'aria-activedescendant': activeItemId }), { role: "combobox", isExpanded: isOpen, "aria-controls": "select-typeahead-listbox" })),
170
+ react_1.default.createElement(react_core_1.TextInputGroupUtilities, Object.assign({}, (!inputValue ? { style: { display: 'none' } } : {})),
171
+ react_1.default.createElement(react_core_1.Button, { variant: "plain", onClick: onClearButtonClick, "aria-label": "Clear input value", icon: react_1.default.createElement(times_icon_1.default, { "aria-hidden": true }) })))));
172
+ return (react_1.default.createElement(react_core_1.Select, Object.assign({ isOpen: isOpen, selected: selected, onSelect: _onSelect, onOpenChange: (isOpen) => {
173
+ !isOpen && closeMenu();
174
+ }, toggle: toggle, shouldFocusFirstItemOnOpen: false, ref: innerRef }, props),
175
+ react_1.default.createElement(react_core_1.SelectList, null, selectOptions.map((option, index) => {
176
+ const { content, value } = option, props = tslib_1.__rest(option, ["content", "value"]);
177
+ return (react_1.default.createElement(react_core_1.SelectOption, Object.assign({ key: value, value: value, isFocused: focusedItemIndex === index }, props), content));
178
+ }))));
179
+ };
180
+ exports.TypeaheadSelectBase = TypeaheadSelectBase;
181
+ exports.TypeaheadSelectBase.displayName = 'TypeaheadSelectBase';
182
+ exports.TypeaheadSelect = react_1.default.forwardRef((props, ref) => (react_1.default.createElement(exports.TypeaheadSelectBase, Object.assign({}, props, { innerRef: ref }))));
183
+ exports.TypeaheadSelect.displayName = 'TypeaheadSelect';
184
+ //# sourceMappingURL=TypeaheadSelect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypeaheadSelect.js","sourceRoot":"","sources":["../../../../src/components/Select/TypeaheadSelect.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAagC;;AAoCzB,MAAM,mBAAmB,GAAkD,CAAC,EAY5D,EAAE,EAAE;QAZwD,EACjF,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,WAAW,GAAG,kBAAkB,EAChC,qBAAqB,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,yBAAyB,MAAM,GAAG,EACtE,UAAU,EACV,WAAW,EACX,WAAW,OAEU,EADlB,KAAK,sBAXyE,2JAYlF,CADS;IAER,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAS,EAAE,CAAC,CAAC;IAC3D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAS,EAAE,CAAC,CAAC;IAC/D,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAS,EAAE,CAAC,CAAC;IACjE,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,eAAK,CAAC,QAAQ,CAA0B,cAAc,CAAC,CAAC;IAClG,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAgB,IAAI,CAAC,CAAC;IACpF,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAgB,IAAI,C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Select';
3
+ export * from './TypeaheadSelect';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./SelectSimple"), exports);
4
+ tslib_1.__exportStar(require("./SimpleSelect"), exports);
5
5
  tslib_1.__exportStar(require("./CheckboxSelect"), exports);
6
+ tslib_1.__exportStar(require("./TypeaheadSelect"), exports);
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Select/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,2DAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Select/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,2DAAiC;AACjC,4DAAkC"}
@@ -1,2 +1,3 @@
1
+ export * from './Dropdown';
1
2
  export * from './Select';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC"}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Dropdown"), exports);
4
5
  tslib_1.__exportStar(require("./Select"), exports);
5
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,mDAAyB"}