@patternfly/react-templates 6.0.0-alpha.9 → 6.0.0-prerelease.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +204 -0
- package/README.md +4 -17
- package/components/package.json +1 -1
- package/dist/dynamic/components/Dropdown/package.json +1 -0
- package/dist/dynamic/components/Select/package.json +1 -1
- package/dist/dynamic-modules.json +19 -0
- package/dist/esm/components/Dropdown/SimpleDropdown.d.ts +48 -0
- package/dist/esm/components/Dropdown/SimpleDropdown.d.ts.map +1 -0
- package/dist/esm/components/Dropdown/SimpleDropdown.js +33 -0
- package/dist/esm/components/Dropdown/SimpleDropdown.js.map +1 -0
- package/dist/esm/components/Dropdown/index.d.ts +2 -0
- package/dist/esm/components/Dropdown/index.d.ts.map +1 -0
- package/dist/esm/components/Dropdown/index.js +2 -0
- package/dist/esm/components/Dropdown/index.js.map +1 -0
- package/dist/esm/components/Select/CheckboxSelect.d.ts +7 -3
- package/dist/esm/components/Select/CheckboxSelect.d.ts.map +1 -1
- package/dist/esm/components/Select/CheckboxSelect.js +14 -6
- package/dist/esm/components/Select/CheckboxSelect.js.map +1 -1
- package/dist/esm/components/Select/MultiTypeaheadSelect.d.ts +33 -0
- package/dist/esm/components/Select/MultiTypeaheadSelect.d.ts.map +1 -0
- package/dist/esm/components/Select/MultiTypeaheadSelect.js +186 -0
- package/dist/esm/components/Select/MultiTypeaheadSelect.js.map +1 -0
- package/dist/esm/components/Select/{SelectSimple.d.ts → SimpleSelect.d.ts} +12 -7
- package/dist/esm/components/Select/SimpleSelect.d.ts.map +1 -0
- package/dist/esm/components/Select/SimpleSelect.js +39 -0
- package/dist/esm/components/Select/SimpleSelect.js.map +1 -0
- package/dist/esm/components/Select/TypeaheadSelect.d.ts +43 -0
- package/dist/esm/components/Select/TypeaheadSelect.d.ts.map +1 -0
- package/dist/esm/components/Select/TypeaheadSelect.js +219 -0
- package/dist/esm/components/Select/TypeaheadSelect.js.map +1 -0
- package/dist/esm/components/Select/index.d.ts +3 -1
- package/dist/esm/components/Select/index.d.ts.map +1 -1
- package/dist/esm/components/Select/index.js +3 -1
- package/dist/esm/components/Select/index.js.map +1 -1
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/js/components/Dropdown/SimpleDropdown.d.ts +48 -0
- package/dist/js/components/Dropdown/SimpleDropdown.d.ts.map +1 -0
- package/dist/js/components/Dropdown/SimpleDropdown.js +36 -0
- package/dist/js/components/Dropdown/SimpleDropdown.js.map +1 -0
- package/dist/js/components/Dropdown/index.d.ts +2 -0
- package/dist/js/components/Dropdown/index.d.ts.map +1 -0
- package/dist/js/components/Dropdown/index.js +5 -0
- package/dist/js/components/Dropdown/index.js.map +1 -0
- package/dist/js/components/Select/CheckboxSelect.d.ts +7 -3
- package/dist/js/components/Select/CheckboxSelect.d.ts.map +1 -1
- package/dist/js/components/Select/CheckboxSelect.js +14 -6
- package/dist/js/components/Select/CheckboxSelect.js.map +1 -1
- package/dist/js/components/Select/MultiTypeaheadSelect.d.ts +33 -0
- package/dist/js/components/Select/MultiTypeaheadSelect.d.ts.map +1 -0
- package/dist/js/components/Select/MultiTypeaheadSelect.js +190 -0
- package/dist/js/components/Select/MultiTypeaheadSelect.js.map +1 -0
- package/dist/js/components/Select/{SelectSimple.d.ts → SimpleSelect.d.ts} +12 -7
- package/dist/js/components/Select/SimpleSelect.d.ts.map +1 -0
- package/dist/js/components/Select/SimpleSelect.js +42 -0
- package/dist/js/components/Select/SimpleSelect.js.map +1 -0
- package/dist/js/components/Select/TypeaheadSelect.d.ts +43 -0
- package/dist/js/components/Select/TypeaheadSelect.d.ts.map +1 -0
- package/dist/js/components/Select/TypeaheadSelect.js +223 -0
- package/dist/js/components/Select/TypeaheadSelect.js.map +1 -0
- package/dist/js/components/Select/index.d.ts +3 -1
- package/dist/js/components/Select/index.d.ts.map +1 -1
- package/dist/js/components/Select/index.js +3 -1
- package/dist/js/components/Select/index.js.map +1 -1
- package/dist/js/components/index.d.ts +1 -0
- package/dist/js/components/index.d.ts.map +1 -1
- package/dist/js/components/index.js +1 -0
- package/dist/js/components/index.js.map +1 -1
- package/dist/umd/assets/output-Drxynxu2.css +23380 -0
- package/dist/umd/react-templates.min.js +1 -1
- package/package.json +10 -14
- package/rollup.config.mjs +8 -0
- package/src/components/Dropdown/SimpleDropdown.tsx +139 -0
- package/src/components/Dropdown/__tests__/SimpleDropdown.test.tsx +266 -0
- package/src/components/Dropdown/__tests__/__snapshots__/SimpleDropdown.test.tsx.snap +81 -0
- package/src/components/Dropdown/examples/DropdownTemplates.md +24 -0
- package/src/components/Dropdown/examples/SimpleDropdownExample.tsx +53 -0
- package/src/components/Dropdown/index.ts +1 -0
- package/src/components/Select/CheckboxSelect.tsx +23 -7
- package/src/components/Select/MultiTypeaheadSelect.tsx +348 -0
- package/src/components/Select/{SelectSimple.tsx → SimpleSelect.tsx} +39 -18
- package/src/components/Select/TypeaheadSelect.tsx +388 -0
- package/src/components/Select/{CheckboxSelect.test.tsx → __tests__/CheckboxSelect.test.tsx} +29 -1
- package/src/components/Select/{CheckboxSelectSnapshots.test.tsx → __tests__/CheckboxSelectSnapshots.test.tsx} +1 -1
- package/src/components/Select/__tests__/MultiTypeaheadSelect.test.tsx +414 -0
- package/src/components/Select/__tests__/SimpleSelect.test.tsx +241 -0
- package/src/components/Select/__tests__/TypeaheadSelect.test.tsx +408 -0
- package/src/components/Select/__tests__/__snapshots__/CheckboxSelectSnapshots.test.tsx.snap +83 -0
- package/src/components/Select/__tests__/__snapshots__/MultiTypeaheadSelect.test.tsx.snap +97 -0
- package/src/components/Select/__tests__/__snapshots__/SimpleSelect.test.tsx.snap +83 -0
- package/src/components/Select/__tests__/__snapshots__/TypeaheadSelect.test.tsx.snap +97 -0
- package/src/components/Select/examples/CheckboxSelectDemo.tsx +25 -8
- package/src/components/Select/examples/MultiTypeaheadSelectDemo.tsx +35 -0
- package/src/components/Select/examples/SelectTemplates.md +17 -4
- package/src/components/Select/examples/SimpleSelectDemo.tsx +36 -0
- package/src/components/Select/examples/TypeaheadSelectDemo.tsx +65 -0
- package/src/components/Select/index.ts +3 -1
- package/src/components/index.ts +1 -0
- package/dist/esm/components/Select/SelectSimple.d.ts.map +0 -1
- package/dist/esm/components/Select/SelectSimple.js +0 -31
- package/dist/esm/components/Select/SelectSimple.js.map +0 -1
- package/dist/js/components/Select/SelectSimple.d.ts.map +0 -1
- package/dist/js/components/Select/SelectSimple.js +0 -34
- package/dist/js/components/Select/SelectSimple.js.map +0 -1
- package/rollup.config.js +0 -7
- package/src/components/Select/__snapshots__/CheckboxSelectSnapshots.test.tsx.snap +0 -212
- package/src/components/Select/examples/SelectSimpleDemo.tsx +0 -26
|
@@ -0,0 +1,223 @@
|
|
|
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 defaultNoOptionsFoundMessage = (filter) => `No results found for "${filter}"`;
|
|
9
|
+
const defaultCreateOptionMessage = (newValue) => `Create "${newValue}"`;
|
|
10
|
+
const TypeaheadSelectBase = (_a) => {
|
|
11
|
+
var _b, _c, _d, _e;
|
|
12
|
+
var { innerRef, initialOptions, onSelect, onToggle, onInputChange, onClearSelection, placeholder = 'Select an option', noOptionsAvailableMessage = 'No options are available', noOptionsFoundMessage = defaultNoOptionsFoundMessage, isCreatable = false, isCreateOptionOnTop = false, createOptionMessage = defaultCreateOptionMessage, isDisabled, toggleWidth, toggleProps } = _a, props = tslib_1.__rest(_a, ["innerRef", "initialOptions", "onSelect", "onToggle", "onInputChange", "onClearSelection", "placeholder", "noOptionsAvailableMessage", "noOptionsFoundMessage", "isCreatable", "isCreateOptionOnTop", "createOptionMessage", "isDisabled", "toggleWidth", "toggleProps"]);
|
|
13
|
+
const [isOpen, setIsOpen] = react_1.default.useState(false);
|
|
14
|
+
const [selected, setSelected] = react_1.default.useState(String((_c = (_b = initialOptions.find((o) => o.selected)) === null || _b === void 0 ? void 0 : _b.content) !== null && _c !== void 0 ? _c : ''));
|
|
15
|
+
const [inputValue, setInputValue] = react_1.default.useState(String((_e = (_d = initialOptions.find((o) => o.selected)) === null || _d === void 0 ? void 0 : _d.content) !== null && _e !== void 0 ? _e : ''));
|
|
16
|
+
const [filterValue, setFilterValue] = react_1.default.useState('');
|
|
17
|
+
const [selectOptions, setSelectOptions] = react_1.default.useState(initialOptions);
|
|
18
|
+
const [focusedItemIndex, setFocusedItemIndex] = react_1.default.useState(null);
|
|
19
|
+
const [activeItemId, setActiveItemId] = react_1.default.useState(null);
|
|
20
|
+
const textInputRef = react_1.default.useRef();
|
|
21
|
+
const NO_RESULTS = 'no results';
|
|
22
|
+
react_1.default.useEffect(() => {
|
|
23
|
+
let newSelectOptions = initialOptions;
|
|
24
|
+
// Filter menu items based on the text input value when one exists
|
|
25
|
+
if (filterValue) {
|
|
26
|
+
newSelectOptions = initialOptions.filter((option) => String(option.content).toLowerCase().includes(filterValue.toLowerCase()));
|
|
27
|
+
if (isCreatable &&
|
|
28
|
+
filterValue &&
|
|
29
|
+
!initialOptions.find((o) => String(o.content).toLowerCase() === filterValue.toLowerCase())) {
|
|
30
|
+
const createOption = {
|
|
31
|
+
content: typeof createOptionMessage === 'string' ? createOptionMessage : createOptionMessage(filterValue),
|
|
32
|
+
value: filterValue
|
|
33
|
+
};
|
|
34
|
+
newSelectOptions = isCreateOptionOnTop
|
|
35
|
+
? [createOption, ...newSelectOptions]
|
|
36
|
+
: [...newSelectOptions, createOption];
|
|
37
|
+
}
|
|
38
|
+
// When no options are found after filtering, display 'No results found'
|
|
39
|
+
if (!newSelectOptions.length) {
|
|
40
|
+
newSelectOptions = [
|
|
41
|
+
{
|
|
42
|
+
isAriaDisabled: true,
|
|
43
|
+
content: typeof noOptionsFoundMessage === 'string' ? noOptionsFoundMessage : noOptionsFoundMessage(filterValue),
|
|
44
|
+
value: NO_RESULTS
|
|
45
|
+
}
|
|
46
|
+
];
|
|
47
|
+
}
|
|
48
|
+
// Open the menu when the input value changes and the new value is not empty
|
|
49
|
+
openMenu();
|
|
50
|
+
}
|
|
51
|
+
// When no options are available, display 'No options available'
|
|
52
|
+
if (!newSelectOptions.length) {
|
|
53
|
+
newSelectOptions = [
|
|
54
|
+
{
|
|
55
|
+
isAriaDisabled: true,
|
|
56
|
+
content: noOptionsAvailableMessage,
|
|
57
|
+
value: NO_RESULTS
|
|
58
|
+
}
|
|
59
|
+
];
|
|
60
|
+
}
|
|
61
|
+
setSelectOptions(newSelectOptions);
|
|
62
|
+
}, [
|
|
63
|
+
filterValue,
|
|
64
|
+
initialOptions,
|
|
65
|
+
noOptionsFoundMessage,
|
|
66
|
+
isCreatable,
|
|
67
|
+
isCreateOptionOnTop,
|
|
68
|
+
createOptionMessage,
|
|
69
|
+
noOptionsAvailableMessage
|
|
70
|
+
]);
|
|
71
|
+
react_1.default.useEffect(() => {
|
|
72
|
+
var _a;
|
|
73
|
+
// If the selected option changed and the current input value is the previously selected item, update the displayed value.
|
|
74
|
+
const selectedOption = initialOptions.find((o) => o.selected);
|
|
75
|
+
if (inputValue === selected && (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) !== selected) {
|
|
76
|
+
setInputValue(String((_a = selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.content) !== null && _a !== void 0 ? _a : ''));
|
|
77
|
+
}
|
|
78
|
+
// Only update when options change
|
|
79
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
80
|
+
}, [initialOptions]);
|
|
81
|
+
const setActiveAndFocusedItem = (itemIndex) => {
|
|
82
|
+
setFocusedItemIndex(itemIndex);
|
|
83
|
+
const focusedItem = selectOptions[itemIndex];
|
|
84
|
+
setActiveItemId(String(focusedItem.value));
|
|
85
|
+
};
|
|
86
|
+
const resetActiveAndFocusedItem = () => {
|
|
87
|
+
setFocusedItemIndex(null);
|
|
88
|
+
setActiveItemId(null);
|
|
89
|
+
};
|
|
90
|
+
const openMenu = () => {
|
|
91
|
+
if (!isOpen) {
|
|
92
|
+
onToggle && onToggle(true);
|
|
93
|
+
setIsOpen(true);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
const closeMenu = () => {
|
|
97
|
+
onToggle && onToggle(false);
|
|
98
|
+
setIsOpen(false);
|
|
99
|
+
resetActiveAndFocusedItem();
|
|
100
|
+
const option = initialOptions.find((o) => o.value === selected);
|
|
101
|
+
if (option) {
|
|
102
|
+
setInputValue(String(option.content));
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
const onInputClick = () => {
|
|
106
|
+
if (!isOpen) {
|
|
107
|
+
openMenu();
|
|
108
|
+
}
|
|
109
|
+
else if (!inputValue) {
|
|
110
|
+
closeMenu();
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
const selectOption = (_event, option) => {
|
|
114
|
+
onSelect && onSelect(_event, option.value);
|
|
115
|
+
setInputValue(String(option.content));
|
|
116
|
+
setFilterValue('');
|
|
117
|
+
setSelected(String(option.value));
|
|
118
|
+
closeMenu();
|
|
119
|
+
};
|
|
120
|
+
const _onSelect = (_event, value) => {
|
|
121
|
+
if (value && value !== NO_RESULTS) {
|
|
122
|
+
const optionToSelect = selectOptions.find((option) => option.value === value);
|
|
123
|
+
selectOption(_event, optionToSelect);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
const onTextInputChange = (_event, value) => {
|
|
127
|
+
setInputValue(value);
|
|
128
|
+
onInputChange && onInputChange(value);
|
|
129
|
+
setFilterValue(value);
|
|
130
|
+
resetActiveAndFocusedItem();
|
|
131
|
+
};
|
|
132
|
+
const handleMenuArrowKeys = (key) => {
|
|
133
|
+
let indexToFocus = 0;
|
|
134
|
+
openMenu();
|
|
135
|
+
if (selectOptions.every((option) => option.isDisabled)) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
if (key === 'ArrowUp') {
|
|
139
|
+
// When no index is set or at the first index, focus to the last, otherwise decrement focus index
|
|
140
|
+
if (focusedItemIndex === null || focusedItemIndex === 0) {
|
|
141
|
+
indexToFocus = selectOptions.length - 1;
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
indexToFocus = focusedItemIndex - 1;
|
|
145
|
+
}
|
|
146
|
+
// Skip disabled options
|
|
147
|
+
while (selectOptions[indexToFocus].isDisabled) {
|
|
148
|
+
indexToFocus--;
|
|
149
|
+
if (indexToFocus === -1) {
|
|
150
|
+
indexToFocus = selectOptions.length - 1;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
if (key === 'ArrowDown') {
|
|
155
|
+
// When no index is set or at the last index, focus to the first, otherwise increment focus index
|
|
156
|
+
if (focusedItemIndex === null || focusedItemIndex === selectOptions.length - 1) {
|
|
157
|
+
indexToFocus = 0;
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
indexToFocus = focusedItemIndex + 1;
|
|
161
|
+
}
|
|
162
|
+
// Skip disabled options
|
|
163
|
+
while (selectOptions[indexToFocus].isDisabled) {
|
|
164
|
+
indexToFocus++;
|
|
165
|
+
if (indexToFocus === selectOptions.length) {
|
|
166
|
+
indexToFocus = 0;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
setActiveAndFocusedItem(indexToFocus);
|
|
171
|
+
};
|
|
172
|
+
const onInputKeyDown = (event) => {
|
|
173
|
+
const focusedItem = focusedItemIndex !== null ? selectOptions[focusedItemIndex] : null;
|
|
174
|
+
switch (event.key) {
|
|
175
|
+
case 'Enter':
|
|
176
|
+
if (isOpen && focusedItem && focusedItem.value !== NO_RESULTS && !focusedItem.isAriaDisabled) {
|
|
177
|
+
selectOption(event, focusedItem);
|
|
178
|
+
}
|
|
179
|
+
openMenu();
|
|
180
|
+
break;
|
|
181
|
+
case 'ArrowUp':
|
|
182
|
+
case 'ArrowDown':
|
|
183
|
+
event.preventDefault();
|
|
184
|
+
handleMenuArrowKeys(event.key);
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
const onToggleClick = () => {
|
|
189
|
+
var _a;
|
|
190
|
+
onToggle && onToggle(!isOpen);
|
|
191
|
+
setIsOpen(!isOpen);
|
|
192
|
+
(_a = textInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
193
|
+
};
|
|
194
|
+
const onClearButtonClick = () => {
|
|
195
|
+
var _a;
|
|
196
|
+
setSelected('');
|
|
197
|
+
setInputValue('');
|
|
198
|
+
onInputChange && onInputChange('');
|
|
199
|
+
setFilterValue('');
|
|
200
|
+
resetActiveAndFocusedItem();
|
|
201
|
+
(_a = textInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
202
|
+
onClearSelection && onClearSelection();
|
|
203
|
+
};
|
|
204
|
+
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: {
|
|
205
|
+
width: toggleWidth
|
|
206
|
+
} }, toggleProps),
|
|
207
|
+
react_1.default.createElement(react_core_1.TextInputGroup, { isPlain: true },
|
|
208
|
+
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" })),
|
|
209
|
+
react_1.default.createElement(react_core_1.TextInputGroupUtilities, Object.assign({}, (!inputValue ? { style: { display: 'none' } } : {})),
|
|
210
|
+
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 }) })))));
|
|
211
|
+
return (react_1.default.createElement(react_core_1.Select, Object.assign({ isOpen: isOpen, selected: selected, onSelect: _onSelect, onOpenChange: (isOpen) => {
|
|
212
|
+
!isOpen && closeMenu();
|
|
213
|
+
}, toggle: toggle, shouldFocusFirstItemOnOpen: false, ref: innerRef }, props),
|
|
214
|
+
react_1.default.createElement(react_core_1.SelectList, null, selectOptions.map((option, index) => {
|
|
215
|
+
const { content, value } = option, props = tslib_1.__rest(option, ["content", "value"]);
|
|
216
|
+
return (react_1.default.createElement(react_core_1.SelectOption, Object.assign({ key: value, value: value, isFocused: focusedItemIndex === index }, props), content));
|
|
217
|
+
}))));
|
|
218
|
+
};
|
|
219
|
+
exports.TypeaheadSelectBase = TypeaheadSelectBase;
|
|
220
|
+
exports.TypeaheadSelectBase.displayName = 'TypeaheadSelectBase';
|
|
221
|
+
exports.TypeaheadSelect = react_1.default.forwardRef((props, ref) => (react_1.default.createElement(exports.TypeaheadSelectBase, Object.assign({}, props, { innerRef: ref }))));
|
|
222
|
+
exports.TypeaheadSelect.displayName = 'TypeaheadSelect';
|
|
223
|
+
//# 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;;AA8ChC,MAAM,4BAA4B,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,yBAAyB,MAAM,GAAG,CAAC;AAC5F,MAAM,0BAA0B,GAAG,CAAC,QAAgB,EAAE,EAAE,CAAC,WAAW,QAAQ,GAAG,CAAC;AAEzE,MAAM,mBAAmB,GAAk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
|
|
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;AAClC,cAAc,wBAAwB,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./
|
|
4
|
+
tslib_1.__exportStar(require("./SimpleSelect"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./CheckboxSelect"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./TypeaheadSelect"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./MultiTypeaheadSelect"), exports);
|
|
6
8
|
//# 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;AAClC,iEAAuC"}
|
|
@@ -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 +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"}
|