react-core-ts 1.4.11 → 1.4.13

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 (40) hide show
  1. package/README.md +2 -1
  2. package/dist/AutoComplete.js +3 -3
  3. package/dist/AutoComplete.js.map +1 -1
  4. package/dist/AutoCompleteWithSelectedList.js +82 -20
  5. package/dist/AutoCompleteWithSelectedList.js.map +1 -1
  6. package/dist/AutoCompleteWithTreeStructure.js +2 -2
  7. package/dist/AutoCompleteWithTreeStructure.js.map +1 -1
  8. package/dist/ExpandableAutoComplete.js +2 -2
  9. package/dist/ExpandableAutoComplete.js.map +1 -1
  10. package/dist/ReactAutoComplete.d.ts +1 -0
  11. package/dist/ReactAutoComplete.js +73 -18
  12. package/dist/ReactAutoComplete.js.map +1 -1
  13. package/dist/ReactCheckbox.js +1 -1
  14. package/dist/ReactCheckbox.js.map +1 -1
  15. package/dist/ReactOTPInput.js +1 -1
  16. package/dist/ReactOTPInput.js.map +1 -1
  17. package/dist/ReactRadioButton.js +1 -1
  18. package/dist/ReactRadioButton.js.map +1 -1
  19. package/dist/commontypes.d.ts +1 -0
  20. package/dist/components/DropdownList.d.ts +3 -0
  21. package/dist/components/DropdownList.js +2 -2
  22. package/dist/components/DropdownList.js.map +1 -1
  23. package/dist/dummyAutoCompleteWithSelectedList.js +2 -2
  24. package/dist/dummyAutoCompleteWithSelectedList.js.map +1 -1
  25. package/dist/styles/components/autocomplete.css +25 -0
  26. package/dist/styles/styles/components/autocomplete.css +25 -0
  27. package/docs/App.tsx +1 -1
  28. package/package.json +2 -1
  29. package/src/AutoComplete.tsx +3 -0
  30. package/src/AutoCompleteWithSelectedList.tsx +85 -5
  31. package/src/AutoCompleteWithTreeStructure.tsx +2 -0
  32. package/src/ExpandableAutoComplete.tsx +2 -0
  33. package/src/ReactAutoComplete.tsx +75 -7
  34. package/src/ReactCheckbox.tsx +1 -0
  35. package/src/ReactOTPInput.tsx +1 -0
  36. package/src/ReactRadioButton.tsx +1 -0
  37. package/src/commontypes.ts +1 -0
  38. package/src/components/DropdownList.tsx +12 -2
  39. package/src/dummyAutoCompleteWithSelectedList.tsx +3 -8
  40. package/src/styles/components/autocomplete.css +25 -0
@@ -1,11 +1,4 @@
1
- import React, {
2
- forwardRef,
3
- useCallback,
4
- useEffect,
5
- useImperativeHandle,
6
- useRef,
7
- useState,
8
- } from 'react';
1
+ import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';
9
2
  import ReactDOM from 'react-dom';
10
3
 
11
4
  import { AutoSuggestionInputProps, TabPops, ValueProps } from './commontypes';
@@ -568,6 +561,7 @@ const AutoCompleteWithSelectedList = forwardRef<
568
561
  >
569
562
  <input
570
563
  id={id}
564
+ autoComplete="off"
571
565
  ref={inputRef}
572
566
  type="text"
573
567
  value={
@@ -642,6 +636,7 @@ const AutoCompleteWithSelectedList = forwardRef<
642
636
  onChange={handleSuggestionChange}
643
637
  value={searchValue}
644
638
  placeholder="Search"
639
+ autoComplete="off"
645
640
  ref={inputSearchRef}
646
641
  />
647
642
  </div>
@@ -463,6 +463,8 @@ span.dropdown-search-icon {
463
463
  padding: 6px 8px;
464
464
  display: flex;
465
465
  align-items: flex-start;
466
+ outline: none;
467
+ box-shadow: none;
466
468
  }
467
469
 
468
470
  .qbs-autocomplete-checkbox-container .qbs-autocomplete-suggestions-item {
@@ -628,3 +630,26 @@ span.dropdown-search-icon {
628
630
  margin-left: -5px;
629
631
  border-color: transparent transparent #000 transparent;
630
632
  }
633
+
634
+ .autocomplete-suggections .qbs-autocomplete-suggections-items {
635
+ display: flex;
636
+ justify-content: space-between;
637
+ align-items: center;
638
+ cursor: pointer;
639
+ outline: none;
640
+ box-shadow: none;
641
+ }
642
+
643
+ .qbs-autocomplete-suggections-items.is-selected {
644
+ background-color: #f1f5f9;
645
+ }
646
+
647
+ .autocomplete-suggections .qbs-autocomplete-suggections-items .short-code,
648
+ .qbs-autocomplete-listitem-container .short-code{
649
+ font-size: 12px;
650
+ background: #f0f0f0;
651
+ padding: 4px 8px;
652
+ border: 1px solid #ccc;
653
+ border-radius: 4px;
654
+ white-space: nowrap;
655
+ }