@jars-labs/jars-components 1.0.56 → 1.0.57
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/dist/{index-BPg92wDN.js → index-BA-eBbTW.js} +3 -5
- package/dist/{index-BPg92wDN.js.map → index-BA-eBbTW.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/{lottie-Hh146ylX.js → lottie-D45kmDuF.js} +2 -2
- package/dist/{lottie-Hh146ylX.js.map → lottie-D45kmDuF.js.map} +1 -1
- package/dist/types/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -183,7 +183,7 @@ var Animation = function (_a) {
|
|
|
183
183
|
var refVector = useRef(null);
|
|
184
184
|
var _b = useState(null), lottie = _b[0], setLottie = _b[1];
|
|
185
185
|
useEffect(function () {
|
|
186
|
-
import('./lottie-
|
|
186
|
+
import('./lottie-D45kmDuF.js').then(function (n) { return n.l; }).then(function (Lottie) { return setLottie(Lottie.default); });
|
|
187
187
|
}, []);
|
|
188
188
|
useEffect(function () {
|
|
189
189
|
if (lottie && refVector.current) {
|
|
@@ -483,7 +483,6 @@ var Autocomplete = function (_a) {
|
|
|
483
483
|
var options = _a.options, _b = _a.placeholder, placeholder = _b === undefined ? 'Search' : _b, onOptionSubmit = _a.onOptionSubmit, _c = _a.disabled, disabled = _c === undefined ? false : _c, onClear = _a.onClear, onSearchChange = _a.onSearchChange, searchValue = _a.searchValue, _d = _a.loading, loading = _d === undefined ? false : _d, _e = _a.minCharactersToShowDropdown, minCharactersToShowDropdown = _e === undefined ? 2 : _e, style = _a.style, initialValue = _a.initialValue;
|
|
484
484
|
var handleOptionSubmit = function (option) {
|
|
485
485
|
onOptionSubmit === null || onOptionSubmit === undefined ? undefined : onOptionSubmit(option);
|
|
486
|
-
onSearchChange((option === null || option === undefined ? undefined : option.label) || '');
|
|
487
486
|
};
|
|
488
487
|
var boldedOptions = options.map(function (option) {
|
|
489
488
|
var index = option.label.toLowerCase().indexOf(searchValue.toLowerCase());
|
|
@@ -522,13 +521,12 @@ var Autocomplete = function (_a) {
|
|
|
522
521
|
setHasClearedInitial(true);
|
|
523
522
|
setTouched(true);
|
|
524
523
|
onSearchChange('');
|
|
525
|
-
onClear === null || onClear === undefined ? undefined : onClear();
|
|
524
|
+
onClear === null || onClear === undefined ? undefined : onClear();
|
|
526
525
|
store.resetSelectedOption();
|
|
527
526
|
store.closeDropdown();
|
|
528
527
|
}, style: { visibility: inputValue ? 'visible' : 'hidden' }, children: jsx(Close, {}) }), onKeyDown: function (event) {
|
|
529
528
|
if (event.key !== 'Enter')
|
|
530
529
|
return;
|
|
531
|
-
// ENTER = free search, not a specific option
|
|
532
530
|
onOptionSubmit(null);
|
|
533
531
|
store.closeDropdown();
|
|
534
532
|
}, style: style })); } }));
|
|
@@ -1987,4 +1985,4 @@ var Refresh = function (props) {
|
|
|
1987
1985
|
Refresh.displayName = 'Refresh';
|
|
1988
1986
|
|
|
1989
1987
|
export { ChevronCollapse as $, Accordion as A, Badge as B, Card as C, DateInput as D, EnterCodeInput as E, FileInput as F, ToastContainer as G, Tooltip as H, IncrementNumber as I, Multiselect as J, NavBarSide as K, Link as L, Message as M, NavBar as N, Alert as O, PasswordInput as P, Arrow as Q, RadioButton as R, SegmentedControl as S, Table as T, Attachment as U, AvatarPlaceholder as V, Bell as W, Calendar as X, Cat as Y, Chat as Z, Chevron as _, AccordionItem as a, Clock as a0, Close as a1, Cloud as a2, Delete as a3, Document as a4, Dog as a5, EyeHide as a6, EyeShow as a7, Fingerprint as a8, Google as a9, Visa as aA, Warning as aB, World as aC, AISearch as aD, AIGenerate as aE, AIPrompt as aF, AIRedo as aG, Refresh as aH, capitalizeFirstSentenceLetter as aI, Grid as aa, Hamburger as ab, HappyFace as ac, House as ad, HouseTime as ae, Identification as af, Info as ag, Location as ah, Mail as ai, Menu as aj, MenuTouched as ak, Notification as al, Open as am, Pets as an, Phone as ao, Plaid as ap, Plus as aq, Remove as ar, Search as as, Shield as at, StepIndicator as au, ThreeDots as av, ThumbsDown as aw, Tick as ax, Umbrello as ay, Upload as az, AccordionControl as b, AccordionPanel as c, ActionIcon as d, Animation as e, Autocomplete as f, getDefaultExportFromCjs as g, badgeVariantMap as h, Button as i, cardStatusVariantMap as j, CardStatus as k, Checkbox as l, Chip as m, Dropdown as n, FileUpload as o, Input as p, LinkModal as q, Loader as r, Modal as s, Pagination as t, Select as u, StatusBadge as v, Stepper as w, Tabs as x, Text as y, Textarea as z };
|
|
1990
|
-
//# sourceMappingURL=index-
|
|
1988
|
+
//# sourceMappingURL=index-BA-eBbTW.js.map
|