react-core-ts 2.1.39 → 2.1.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 (224) hide show
  1. package/dist/AutoCompleteWithSelectedList.js +27 -26
  2. package/dist/AutoCompleteWithSelectedList.js.map +1 -1
  3. package/dist/AutoCompleteWithTabFilter.js +30 -29
  4. package/dist/AutoCompleteWithTabFilter.js.map +1 -1
  5. package/dist/AutoCompleteWithTreeStructure.js +23 -8
  6. package/dist/AutoCompleteWithTreeStructure.js.map +1 -1
  7. package/dist/components/InputActions.js +10 -5
  8. package/dist/components/InputActions.js.map +1 -1
  9. package/dist/components/customIcons/ToolIcon.d.ts +1 -1
  10. package/dist/components/customIcons/closeRoundedIcon.d.ts +1 -1
  11. package/dist/components/customIcons/downTreeArrowIcon.d.ts +1 -1
  12. package/dist/components/customIcons/iconslibrary/ActionRoleIcon.d.ts +1 -1
  13. package/dist/components/customIcons/iconslibrary/ActionRoleRoleIcon.d.ts +1 -1
  14. package/dist/components/customIcons/iconslibrary/Activate.d.ts +1 -1
  15. package/dist/components/customIcons/iconslibrary/Alert2.d.ts +2 -1
  16. package/dist/components/customIcons/iconslibrary/ApprovedIcon.d.ts +1 -1
  17. package/dist/components/customIcons/iconslibrary/Archieve.d.ts +1 -1
  18. package/dist/components/customIcons/iconslibrary/ArchieveList.d.ts +1 -1
  19. package/dist/components/customIcons/iconslibrary/Audit.d.ts +1 -1
  20. package/dist/components/customIcons/iconslibrary/Authorize.d.ts +2 -1
  21. package/dist/components/customIcons/iconslibrary/AwardIcon.d.ts +1 -1
  22. package/dist/components/customIcons/iconslibrary/Back.d.ts +1 -1
  23. package/dist/components/customIcons/iconslibrary/BackToSearch.d.ts +1 -1
  24. package/dist/components/customIcons/iconslibrary/Bank.d.ts +1 -1
  25. package/dist/components/customIcons/iconslibrary/BankIcon.d.ts +1 -1
  26. package/dist/components/customIcons/iconslibrary/BellIcon.d.ts +1 -1
  27. package/dist/components/customIcons/iconslibrary/BookmarkCheck.d.ts +2 -1
  28. package/dist/components/customIcons/iconslibrary/BudgetChart.d.ts +1 -1
  29. package/dist/components/customIcons/iconslibrary/BudgetCustom.d.ts +1 -1
  30. package/dist/components/customIcons/iconslibrary/BudgetExisting.d.ts +1 -1
  31. package/dist/components/customIcons/iconslibrary/CalendarIcon.d.ts +1 -1
  32. package/dist/components/customIcons/iconslibrary/CalenderUserIcon.d.ts +1 -1
  33. package/dist/components/customIcons/iconslibrary/CapacityIcon.d.ts +1 -1
  34. package/dist/components/customIcons/iconslibrary/CaptionIcon.d.ts +1 -1
  35. package/dist/components/customIcons/iconslibrary/CardCheck.d.ts +1 -1
  36. package/dist/components/customIcons/iconslibrary/CardListIcon.d.ts +1 -1
  37. package/dist/components/customIcons/iconslibrary/Certificate.d.ts +1 -1
  38. package/dist/components/customIcons/iconslibrary/Check.d.ts +1 -1
  39. package/dist/components/customIcons/iconslibrary/CheckBoxCheck.d.ts +1 -1
  40. package/dist/components/customIcons/iconslibrary/CheckBoxCheckDisabled.d.ts +1 -1
  41. package/dist/components/customIcons/iconslibrary/CheckBoxInterMediate.d.ts +1 -1
  42. package/dist/components/customIcons/iconslibrary/CheckBoxInterMediateDisabled.d.ts +1 -1
  43. package/dist/components/customIcons/iconslibrary/CheckBoxUnchecked.d.ts +1 -1
  44. package/dist/components/customIcons/iconslibrary/CheckBoxUncheckedDisabled.d.ts +1 -1
  45. package/dist/components/customIcons/iconslibrary/CheckCircleIcon.d.ts +1 -1
  46. package/dist/components/customIcons/iconslibrary/CheckFilledIcon.d.ts +1 -1
  47. package/dist/components/customIcons/iconslibrary/CheckIcon.d.ts +1 -1
  48. package/dist/components/customIcons/iconslibrary/CheckIndeterminateIcon.d.ts +1 -1
  49. package/dist/components/customIcons/iconslibrary/CheckMenu.d.ts +1 -1
  50. package/dist/components/customIcons/iconslibrary/Clock.d.ts +2 -1
  51. package/dist/components/customIcons/iconslibrary/ConfigIcon.d.ts +1 -1
  52. package/dist/components/customIcons/iconslibrary/Copy.d.ts +1 -1
  53. package/dist/components/customIcons/iconslibrary/CsvIcon.d.ts +1 -1
  54. package/dist/components/customIcons/iconslibrary/DashFolderIcon.d.ts +1 -1
  55. package/dist/components/customIcons/iconslibrary/DashTileIcon.d.ts +1 -1
  56. package/dist/components/customIcons/iconslibrary/Default.d.ts +1 -1
  57. package/dist/components/customIcons/iconslibrary/DeleteIcon.d.ts +1 -1
  58. package/dist/components/customIcons/iconslibrary/Details.d.ts +2 -1
  59. package/dist/components/customIcons/iconslibrary/DimentionIcon.d.ts +1 -1
  60. package/dist/components/customIcons/iconslibrary/DivisionIcon.d.ts +1 -1
  61. package/dist/components/customIcons/iconslibrary/Doller.d.ts +1 -1
  62. package/dist/components/customIcons/iconslibrary/DownArrow.d.ts +1 -1
  63. package/dist/components/customIcons/iconslibrary/DownArrowRounded.d.ts +1 -1
  64. package/dist/components/customIcons/iconslibrary/DraftIcon.d.ts +1 -1
  65. package/dist/components/customIcons/iconslibrary/DueIcon.d.ts +1 -1
  66. package/dist/components/customIcons/iconslibrary/EmpListIcon.d.ts +1 -1
  67. package/dist/components/customIcons/iconslibrary/Employee.d.ts +1 -1
  68. package/dist/components/customIcons/iconslibrary/Employment.d.ts +1 -1
  69. package/dist/components/customIcons/iconslibrary/ErrorCircle.d.ts +1 -1
  70. package/dist/components/customIcons/iconslibrary/ExpandFileIcon.d.ts +1 -1
  71. package/dist/components/customIcons/iconslibrary/ExpandIconDash.d.ts +1 -1
  72. package/dist/components/customIcons/iconslibrary/Expired.d.ts +1 -1
  73. package/dist/components/customIcons/iconslibrary/ExplorerIcon.d.ts +1 -1
  74. package/dist/components/customIcons/iconslibrary/Export.d.ts +2 -1
  75. package/dist/components/customIcons/iconslibrary/ExternalLinkIcon.d.ts +1 -1
  76. package/dist/components/customIcons/iconslibrary/FavouriteIcon.d.ts +1 -1
  77. package/dist/components/customIcons/iconslibrary/FavouriteIconFilled.d.ts +1 -1
  78. package/dist/components/customIcons/iconslibrary/FavouritedIcon.d.ts +1 -1
  79. package/dist/components/customIcons/iconslibrary/FileReport.d.ts +2 -1
  80. package/dist/components/customIcons/iconslibrary/Fill-Info-Icon.d.ts +1 -1
  81. package/dist/components/customIcons/iconslibrary/FilterIcon.d.ts +1 -1
  82. package/dist/components/customIcons/iconslibrary/Finalise.d.ts +1 -1
  83. package/dist/components/customIcons/iconslibrary/FindFile.d.ts +2 -1
  84. package/dist/components/customIcons/iconslibrary/FolderIcon.d.ts +1 -1
  85. package/dist/components/customIcons/iconslibrary/ForwardArrowIcon.d.ts +1 -1
  86. package/dist/components/customIcons/iconslibrary/FunctionIcon.d.ts +1 -1
  87. package/dist/components/customIcons/iconslibrary/GmailIcon.d.ts +1 -1
  88. package/dist/components/customIcons/iconslibrary/GraphViewDash.d.ts +1 -1
  89. package/dist/components/customIcons/iconslibrary/HeadOffice.d.ts +1 -1
  90. package/dist/components/customIcons/iconslibrary/HelpDocument.d.ts +2 -1
  91. package/dist/components/customIcons/iconslibrary/HelpIcon.d.ts +1 -1
  92. package/dist/components/customIcons/iconslibrary/HomeIcon.d.ts +1 -1
  93. package/dist/components/customIcons/iconslibrary/IdleIcon.d.ts +2 -1
  94. package/dist/components/customIcons/iconslibrary/InfoCircle.d.ts +2 -1
  95. package/dist/components/customIcons/iconslibrary/InfoIcon.d.ts +1 -1
  96. package/dist/components/customIcons/iconslibrary/Inspection.d.ts +2 -1
  97. package/dist/components/customIcons/iconslibrary/Layer.d.ts +2 -1
  98. package/dist/components/customIcons/iconslibrary/LayerIcon.d.ts +1 -1
  99. package/dist/components/customIcons/iconslibrary/LeftBackArrow.d.ts +1 -1
  100. package/dist/components/customIcons/iconslibrary/LeftDouble.d.ts +1 -1
  101. package/dist/components/customIcons/iconslibrary/LiveFeetIcon.d.ts +1 -1
  102. package/dist/components/customIcons/iconslibrary/LoadLineIcon.d.ts +1 -1
  103. package/dist/components/customIcons/iconslibrary/LogoutIcon.d.ts +1 -1
  104. package/dist/components/customIcons/iconslibrary/ManningAgentIcon.d.ts +1 -1
  105. package/dist/components/customIcons/iconslibrary/Menu.d.ts +2 -1
  106. package/dist/components/customIcons/iconslibrary/MenuDownArrow.d.ts +1 -1
  107. package/dist/components/customIcons/iconslibrary/MenuFavouriteIcon.d.ts +1 -1
  108. package/dist/components/customIcons/iconslibrary/MenuList.d.ts +1 -1
  109. package/dist/components/customIcons/iconslibrary/MenuSectionIcon.d.ts +1 -1
  110. package/dist/components/customIcons/iconslibrary/MenuUpArrow.d.ts +1 -1
  111. package/dist/components/customIcons/iconslibrary/Minus.d.ts +1 -1
  112. package/dist/components/customIcons/iconslibrary/ModuleIcon.d.ts +1 -1
  113. package/dist/components/customIcons/iconslibrary/NextArrowicon.d.ts +1 -1
  114. package/dist/components/customIcons/iconslibrary/NextMostIcon.d.ts +1 -1
  115. package/dist/components/customIcons/iconslibrary/NoAction.d.ts +2 -1
  116. package/dist/components/customIcons/iconslibrary/NoActionForYou.d.ts +2 -1
  117. package/dist/components/customIcons/iconslibrary/Notes.d.ts +1 -1
  118. package/dist/components/customIcons/iconslibrary/Others.d.ts +2 -1
  119. package/dist/components/customIcons/iconslibrary/Overview.d.ts +1 -1
  120. package/dist/components/customIcons/iconslibrary/Page.d.ts +1 -1
  121. package/dist/components/customIcons/iconslibrary/Payroll.d.ts +1 -1
  122. package/dist/components/customIcons/iconslibrary/Person.d.ts +1 -1
  123. package/dist/components/customIcons/iconslibrary/Plane.d.ts +1 -1
  124. package/dist/components/customIcons/iconslibrary/Power.d.ts +1 -1
  125. package/dist/components/customIcons/iconslibrary/PreviousArrowIcon.d.ts +1 -1
  126. package/dist/components/customIcons/iconslibrary/PreviousMostIcon.d.ts +1 -1
  127. package/dist/components/customIcons/iconslibrary/PrivilegeGroupIcon.d.ts +1 -1
  128. package/dist/components/customIcons/iconslibrary/PrivilegeIcon.d.ts +1 -1
  129. package/dist/components/customIcons/iconslibrary/ProfileIcon.d.ts +1 -1
  130. package/dist/components/customIcons/iconslibrary/Rank.d.ts +1 -1
  131. package/dist/components/customIcons/iconslibrary/RatedPowerIcon.d.ts +1 -1
  132. package/dist/components/customIcons/iconslibrary/RejectedIcon.d.ts +1 -1
  133. package/dist/components/customIcons/iconslibrary/ReloadIconDash.d.ts +1 -1
  134. package/dist/components/customIcons/iconslibrary/Remove.d.ts +1 -1
  135. package/dist/components/customIcons/iconslibrary/Repeat.d.ts +2 -1
  136. package/dist/components/customIcons/iconslibrary/ReportGroupIcon.d.ts +1 -1
  137. package/dist/components/customIcons/iconslibrary/RetrayIcon.d.ts +1 -1
  138. package/dist/components/customIcons/iconslibrary/Revert.d.ts +1 -1
  139. package/dist/components/customIcons/iconslibrary/RevertStatusIcon.d.ts +1 -1
  140. package/dist/components/customIcons/iconslibrary/RevertedIcon.d.ts +1 -1
  141. package/dist/components/customIcons/iconslibrary/RightArrow.d.ts +1 -1
  142. package/dist/components/customIcons/iconslibrary/RightDouble.d.ts +1 -1
  143. package/dist/components/customIcons/iconslibrary/SeaRecord.d.ts +1 -1
  144. package/dist/components/customIcons/iconslibrary/SeafarerIcon.d.ts +1 -1
  145. package/dist/components/customIcons/iconslibrary/SearchIcon.d.ts +1 -1
  146. package/dist/components/customIcons/iconslibrary/Section.d.ts +1 -1
  147. package/dist/components/customIcons/iconslibrary/SettingsSpanner.d.ts +1 -1
  148. package/dist/components/customIcons/iconslibrary/ShpIcon.d.ts +1 -1
  149. package/dist/components/customIcons/iconslibrary/ShpSmallIcon.d.ts +1 -1
  150. package/dist/components/customIcons/iconslibrary/SideMenuLogoutIcon.d.ts +1 -1
  151. package/dist/components/customIcons/iconslibrary/Slash.d.ts +2 -1
  152. package/dist/components/customIcons/iconslibrary/SortArrow.d.ts +1 -1
  153. package/dist/components/customIcons/iconslibrary/SortAscIcon.d.ts +1 -1
  154. package/dist/components/customIcons/iconslibrary/SortDescIcon.d.ts +1 -1
  155. package/dist/components/customIcons/iconslibrary/SortDown.d.ts +1 -1
  156. package/dist/components/customIcons/iconslibrary/StaredVerifiedIcon.d.ts +1 -1
  157. package/dist/components/customIcons/iconslibrary/StepperCheckIcon.d.ts +1 -1
  158. package/dist/components/customIcons/iconslibrary/SubFunctionsIcon.d.ts +1 -1
  159. package/dist/components/customIcons/iconslibrary/SubMenuList.d.ts +1 -1
  160. package/dist/components/customIcons/iconslibrary/SuccessIcon.d.ts +1 -1
  161. package/dist/components/customIcons/iconslibrary/SwitchVertical.d.ts +2 -1
  162. package/dist/components/customIcons/iconslibrary/TableViewDash.d.ts +1 -1
  163. package/dist/components/customIcons/iconslibrary/ThreeDotIcon.d.ts +1 -1
  164. package/dist/components/customIcons/iconslibrary/ThreeDotIconHorizontal.d.ts +1 -1
  165. package/dist/components/customIcons/iconslibrary/ThreeDotLineIcon.d.ts +1 -1
  166. package/dist/components/customIcons/iconslibrary/Tonnage.d.ts +2 -1
  167. package/dist/components/customIcons/iconslibrary/TreeColapseicon.d.ts +1 -1
  168. package/dist/components/customIcons/iconslibrary/TreeExpandIcon.d.ts +1 -1
  169. package/dist/components/customIcons/iconslibrary/UpArrow.d.ts +1 -1
  170. package/dist/components/customIcons/iconslibrary/UpArrowRounded.d.ts +1 -1
  171. package/dist/components/customIcons/iconslibrary/UploadPhoto.d.ts +1 -1
  172. package/dist/components/customIcons/iconslibrary/UserEdit.d.ts +1 -1
  173. package/dist/components/customIcons/iconslibrary/ValidationRuleIcon.d.ts +2 -1
  174. package/dist/components/customIcons/iconslibrary/VendorIcon.d.ts +1 -1
  175. package/dist/components/customIcons/iconslibrary/Verified.d.ts +1 -1
  176. package/dist/components/customIcons/iconslibrary/VerifiedIcon.d.ts +1 -1
  177. package/dist/components/customIcons/iconslibrary/VesselScheduleShip.d.ts +1 -1
  178. package/dist/components/customIcons/iconslibrary/VolumeIcon.d.ts +1 -1
  179. package/dist/components/customIcons/iconslibrary/Wallet.d.ts +2 -1
  180. package/dist/components/customIcons/iconslibrary/Warning.d.ts +1 -1
  181. package/dist/components/customIcons/iconslibrary/WorkflowIcon.d.ts +1 -1
  182. package/dist/components/customIcons/iconslibrary/WorkflowStatusIcon.d.ts +1 -1
  183. package/dist/components/customIcons/iconslibrary/collapseIconDash.d.ts +1 -1
  184. package/dist/components/customIcons/iconslibrary/ship/Icon1.d.ts +1 -1
  185. package/dist/components/customIcons/iconslibrary/ship/Icon10.d.ts +1 -1
  186. package/dist/components/customIcons/iconslibrary/ship/Icon11.d.ts +1 -1
  187. package/dist/components/customIcons/iconslibrary/ship/Icon12.d.ts +1 -1
  188. package/dist/components/customIcons/iconslibrary/ship/Icon13.d.ts +1 -1
  189. package/dist/components/customIcons/iconslibrary/ship/Icon14.d.ts +1 -1
  190. package/dist/components/customIcons/iconslibrary/ship/Icon15.d.ts +1 -1
  191. package/dist/components/customIcons/iconslibrary/ship/Icon16.d.ts +1 -1
  192. package/dist/components/customIcons/iconslibrary/ship/Icon2.d.ts +1 -1
  193. package/dist/components/customIcons/iconslibrary/ship/Icon3.d.ts +1 -1
  194. package/dist/components/customIcons/iconslibrary/ship/Icon4.d.ts +1 -1
  195. package/dist/components/customIcons/iconslibrary/ship/Icon5.d.ts +1 -1
  196. package/dist/components/customIcons/iconslibrary/ship/Icon6.d.ts +1 -1
  197. package/dist/components/customIcons/iconslibrary/ship/Icon7.d.ts +1 -1
  198. package/dist/components/customIcons/iconslibrary/ship/Icon8.d.ts +1 -1
  199. package/dist/components/customIcons/iconslibrary/ship/Icon9.d.ts +1 -1
  200. package/dist/components/customIcons/iconslibrary/uploadButtonIcon.d.ts +1 -1
  201. package/dist/components/customIcons/upTreeArrowIcon.d.ts +1 -1
  202. package/dist/generated/stylesContent.d.ts +2 -0
  203. package/dist/generated/stylesContent.js +6 -0
  204. package/dist/generated/stylesContent.js.map +1 -0
  205. package/dist/injectStyles.d.ts +1 -0
  206. package/dist/injectStyles.js +16 -0
  207. package/dist/injectStyles.js.map +1 -0
  208. package/dist/react-core-ts.css +2889 -0
  209. package/dist/styles/components/autocomplete.css +142 -21
  210. package/dist/styles/components/modern-input.css +208 -0
  211. package/dist/styles/components/qbs-fallbacks.css +174 -0
  212. package/dist/styles/global.css +3 -1
  213. package/dist/styles/library-entry.css +9 -0
  214. package/dist/styles/styles/components/autocomplete.css +10 -0
  215. package/dist/utilities/debounce.js.map +1 -1
  216. package/package.json +1 -1
  217. package/src/AutoCompleteWithSelectedList.tsx +2 -2
  218. package/src/AutoCompleteWithTabFilter.tsx +1 -1
  219. package/src/AutoCompleteWithTreeStructure.tsx +25 -8
  220. package/src/components/InputActions.tsx +15 -6
  221. package/src/generated/stylesContent.ts +2 -0
  222. package/src/styles/components/autocomplete.css +10 -0
  223. package/src/utilities/debounce.ts +1 -1
  224. package/tsconfig.json +3 -0
@@ -1,20 +1,68 @@
1
- body * {
1
+ /* Intentionally no global `body *` reset — avoids conflicting with consumer apps. */
2
+ :root {
3
+ --rcts-grey-dark: #4a4a4a;
4
+ --rcts-grey-light: #d3d3d3;
5
+ --rcts-blue-navy: #001f3f;
6
+ --rcts-input-disabled: #a9a9a9;
7
+ --rcts-error-light: #f08080;
8
+ --rcts-error-extra-light: #fddede;
9
+ --rcts-success: #28a745;
10
+ --rcts-success-light: #d4edda;
11
+ --rcts-blue-light: #add8e6;
12
+ /* Back-compat aliases */
13
+ --grey-dark: var(--rcts-grey-dark);
14
+ --grey-light: var(--rcts-grey-light);
15
+ --blue-navy: var(--rcts-blue-navy);
16
+ --input-disabled: var(--rcts-input-disabled);
17
+ --error-light: var(--rcts-error-light);
18
+ --error-extra-light: var(--rcts-error-extra-light);
19
+ --success: var(--rcts-success);
20
+ --success-light: var(--rcts-success-light);
21
+ --blue-light: var(--rcts-blue-light);
22
+ --table-hover: #f8f8f8;
23
+ }
24
+
25
+ /*
26
+ * Scoped border-box so TextField / Autocomplete heights match pre-4.0.2 behavior.
27
+ * (Removing global body * broke height because padding+border were added outside h-*).
28
+ */
29
+ .qbs-textfield,
30
+ .qbs-textfield *,
31
+ .qbs-autocomplete-selected-comp,
32
+ .qbs-autocomplete-selected-comp *,
33
+ .qbs-autocomplete-suggestions,
34
+ .qbs-autocomplete-suggestions *,
35
+ .autocomplete-suggections,
36
+ .autocomplete-suggections *,
37
+ .qbs-expandable-container,
38
+ .qbs-expandable-container *,
39
+ .tooltip-container,
40
+ .tooltip-container *,
41
+ .react-core-ts-search-container,
42
+ .react-core-ts-search-container *,
43
+ .qbs-autocomplete-container-table-view,
44
+ .qbs-autocomplete-container-table-view * {
2
45
  box-sizing: border-box;
3
46
  }
4
- :root {
5
- --grey-dark: #4a4a4a;
6
- --grey-light: #d3d3d3;
7
- --blue-navy: #001f3f;
8
- --input-disabled: #a9a9a9;
9
- --error-light: #f08080;
10
- --error-extra-light: #fddede;
11
- --success: #28a745;
12
- --success-light: #d4edda;
13
- --blue-light: #add8e6;
47
+
48
+ /* Explicit TextField size heights — reliable even if utility order fights other CSS */
49
+ .qbs-textfield input.qbs-h-10,
50
+ input.qbs-peer.qbs-h-10 {
51
+ height: 2.5rem;
52
+ min-height: 2.5rem;
53
+ box-sizing: border-box;
14
54
  }
15
- :root {
16
- --blue-navy: #001f3f;
17
- --table-hover: #your-hover-color; /* Replace with your actual color code */
55
+ .qbs-textfield input.qbs-h-\[25px\],
56
+ input.qbs-peer.qbs-h-\[25px\] {
57
+ height: 25px;
58
+ min-height: 25px;
59
+ box-sizing: border-box;
60
+ }
61
+ .qbs-textfield input.qbs-h-\[34px\],
62
+ input.qbs-peer.qbs-h-\[34px\] {
63
+ height: 34px;
64
+ min-height: 34px;
65
+ box-sizing: border-box;
18
66
  }
19
67
 
20
68
  .custom-spinner {
@@ -394,7 +442,8 @@ ul {
394
442
  position: absolute;
395
443
  right: 25px;
396
444
  z-index: 99;
397
- top: 18px;
445
+ top: 50%;
446
+ transform: translateY(-50%);
398
447
  flex-wrap: wrap;
399
448
  }
400
449
 
@@ -420,7 +469,8 @@ ul {
420
469
  position: absolute;
421
470
  right: 8px;
422
471
  z-index: 99;
423
- top: 6.5px;
472
+ top: 50%;
473
+ transform: translateY(-50%);
424
474
  flex-wrap: wrap;
425
475
  }
426
476
 
@@ -819,18 +869,89 @@ span.dropdown-search-icon {
819
869
 
820
870
  /* TextField Inner Search Button */
821
871
  .inner-search-button {
872
+ position: absolute;
822
873
  background: #f8f8f8;
823
- border-radius: 6px;
824
- padding: 0px 8px;
874
+ border: none;
875
+ border-radius: 0 3px 3px 0;
876
+ padding: 0 8px;
825
877
  display: flex;
826
878
  align-items: center;
827
- justify-content: center;
879
+ justify-content: center;
828
880
  cursor: pointer;
829
- height: 38px;
881
+ height: calc(100% - 2px);
830
882
  width: 38px;
831
883
  top: 1px;
832
- right: 2px;
884
+ right: 1px;
885
+ z-index: 2;
886
+ box-sizing: border-box;
833
887
  }
834
888
  .search-btn-input {
835
889
  padding-right: 38px;
890
+ }
891
+
892
+ /*
893
+ * Keep end icons inside the input border.
894
+ * (Sibling flex + qbs-w-full previously pushed icons outside the bordered input.)
895
+ */
896
+ .qbs-autocomplete-adorement-wrapper,
897
+ .qbs-input-adorement-wrapper {
898
+ position: absolute;
899
+ top: 0;
900
+ right: 0;
901
+ bottom: 0;
902
+ display: flex;
903
+ align-items: center;
904
+ z-index: 2;
905
+ pointer-events: none;
906
+ }
907
+ .qbs-autocomplete-adorement-wrapper > *,
908
+ .qbs-input-adorement-wrapper > * {
909
+ pointer-events: auto;
910
+ }
911
+
912
+ .qbs-autocomplete-adorement-wrapper .adorement,
913
+ .qbs-autocomplete-adorement-wrapper .qbs-autocomplete-adorement,
914
+ .qbs-input-adorement-wrapper .adorement {
915
+ position: relative !important;
916
+ right: auto !important;
917
+ top: auto !important;
918
+ height: 100%;
919
+ padding-right: 4px;
920
+ box-sizing: border-box;
921
+ }
922
+
923
+ /* Avoid Tailwind `container` utility collision (prefix makes it `.qbs-container`) */
924
+ .qbs-selected-comp-normal {
925
+ position: relative;
926
+ display: block;
927
+ width: 100%;
928
+ max-width: none;
929
+ }
930
+
931
+ .qbs-autocomplete-selected-comp {
932
+ position: relative;
933
+ display: block;
934
+ width: 100%;
935
+ }
936
+
937
+ .qbs-autocomplete-selected-comp > .qbs-textfield-expandable.qbs-normal,
938
+ .qbs-autocomplete-selected-comp > .qbs-textfield-expandable.qbs-normal .qbs-textfield-default {
939
+ display: block;
940
+ width: 100%;
941
+ }
942
+
943
+ /* Tools icon should sit inside the field, vertically centered */
944
+ .qbs-tools-drop-btn {
945
+ position: absolute !important;
946
+ right: 8px !important;
947
+ top: 50% !important;
948
+ transform: translateY(-50%);
949
+ z-index: 2;
950
+ display: inline-flex;
951
+ align-items: center;
952
+ justify-content: center;
953
+ background: transparent;
954
+ border: none;
955
+ padding: 0;
956
+ cursor: pointer;
836
957
  }
@@ -0,0 +1,208 @@
1
+ /**
2
+ * Self-contained modern TextField / Autocomplete input styles.
3
+ * These used to live in host apps; the library must ship them for Vite / local preview.
4
+ */
5
+
6
+ /* Base peer input (height + border) */
7
+ input.qbs-peer,
8
+ .qbs-textfield input[class*='qbs-h-'] {
9
+ box-sizing: border-box !important;
10
+ display: block;
11
+ width: 100%;
12
+ height: 2.5rem !important;
13
+ min-height: 2.5rem !important;
14
+ margin: 0;
15
+ border-style: solid;
16
+ border-width: 1px;
17
+ border-color: #d0d5dd;
18
+ border-radius: 4px;
19
+ background-color: #fff;
20
+ color: #111827;
21
+ font-size: 0.875rem;
22
+ font-weight: 400;
23
+ line-height: 1.25rem;
24
+ padding-left: 0.875rem;
25
+ padding-right: 0.875rem;
26
+ padding-top: 0;
27
+ padding-bottom: 0;
28
+ outline: none;
29
+ -webkit-appearance: none;
30
+ appearance: none;
31
+ }
32
+
33
+ input.qbs-peer.qbs-h-\[34px\],
34
+ .qbs-textfield input.qbs-h-\[34px\] {
35
+ height: 34px !important;
36
+ min-height: 34px !important;
37
+ }
38
+
39
+ input.qbs-peer.qbs-h-\[25px\],
40
+ .qbs-textfield input.qbs-h-\[25px\] {
41
+ height: 25px !important;
42
+ min-height: 25px !important;
43
+ font-size: 0.75rem;
44
+ }
45
+
46
+ input.qbs-peer:focus:not(.qbs-input-error) {
47
+ border-color: #001f3f;
48
+ }
49
+
50
+ input.qbs-peer:disabled {
51
+ color: #98a2b3;
52
+ background-color: #f2f4f7;
53
+ cursor: not-allowed;
54
+ }
55
+
56
+ /*
57
+ * Error state — must beat `input.qbs-peer` / `:focus` (element+class specificity).
58
+ * Broken Tailwind classes like `focus:qbs-border-error-[#FDA29B]` never ship in CSS.
59
+ */
60
+ input.qbs-peer.qbs-input-error,
61
+ .qbs-textfield input.qbs-input-error,
62
+ .qbs-autocomplete-container-table-view input.qbs-input-error {
63
+ border-color: #fda29b !important;
64
+ outline: none;
65
+ }
66
+
67
+ input.qbs-peer.qbs-input-error:focus,
68
+ .qbs-textfield input.qbs-input-error:focus,
69
+ .qbs-autocomplete-container-table-view input.qbs-input-error:focus {
70
+ border-color: #fda29b !important;
71
+ outline: none;
72
+ box-shadow: 0 0 0 3px rgba(253, 162, 155, 0.35);
73
+ }
74
+
75
+ /* Host-token fallbacks (prefixed utilities that are not in default Tailwind theme) */
76
+ .qbs-border-input-light {
77
+ border-color: #d0d5dd;
78
+ }
79
+ .qbs-text-input-text {
80
+ color: #111827;
81
+ }
82
+ .qbs-text-input-disabled,
83
+ .disabled\:qbs-text-input-disabled:disabled {
84
+ color: #98a2b3;
85
+ }
86
+ .qbs-bg-disabled,
87
+ .disabled\:qbs-bg-disabled:disabled {
88
+ background-color: #f2f4f7;
89
+ }
90
+ .qbs-text-grey-dark {
91
+ color: #344054;
92
+ }
93
+ .qbs-text-error-light {
94
+ color: #f04438;
95
+ }
96
+ .qbs-text-error-icon,
97
+ .qbs-text-error-label {
98
+ color: #f04438;
99
+ }
100
+ .qbs-text-warning-icon,
101
+ .qbs-text-warning-label {
102
+ color: #f79009;
103
+ }
104
+ .qbs-text-tick-label {
105
+ color: #28b440;
106
+ }
107
+ .qbs-text-grey-medium {
108
+ color: #667085;
109
+ }
110
+ .qbs-border-grey-light {
111
+ border-color: #d0d5dd;
112
+ }
113
+ .qbs-text-table-bodyColor {
114
+ color: #667085;
115
+ }
116
+ .placeholder-input-label::placeholder {
117
+ color: #667085;
118
+ }
119
+ .qbs-bg-bodyBG {
120
+ background-color: #f9fafb;
121
+ }
122
+ .qbs-text-xxs {
123
+ font-size: 0.625rem;
124
+ line-height: 0.875rem;
125
+ }
126
+ .qbs-input-outline {
127
+ outline: none;
128
+ }
129
+ .text-common {
130
+ font-size: 0.875rem;
131
+ line-height: 1.25rem;
132
+ }
133
+ .text-error {
134
+ color: #f04438;
135
+ }
136
+ .text-grey-secondary {
137
+ color: #667085;
138
+ }
139
+ .text-text-primary {
140
+ color: #101828;
141
+ }
142
+
143
+ /* Floating label: hide native placeholder when modern label is used */
144
+ .placeholder-transparent::placeholder {
145
+ color: transparent !important;
146
+ }
147
+ .placeholder-transparent::-webkit-input-placeholder {
148
+ color: transparent !important;
149
+ }
150
+ .focus\:placeholder-grey-secondary:focus::placeholder {
151
+ color: #98a2b3;
152
+ }
153
+
154
+ .modern-input-label-truncate {
155
+ max-width: calc(100% - 1.75rem);
156
+ overflow: hidden;
157
+ text-overflow: ellipsis;
158
+ white-space: nowrap;
159
+ pointer-events: none;
160
+ background-color: transparent;
161
+ }
162
+
163
+ .modern-input-label-size {
164
+ font-size: 0.875rem;
165
+ line-height: 1.25rem;
166
+ }
167
+
168
+ .modern-input-peer-focus-label-size,
169
+ .peer-focus\:modern-input-peer-focus-label-size {
170
+ font-size: 0.75rem;
171
+ line-height: 1rem;
172
+ }
173
+
174
+ /* When peer has value / is focused, shrink label (Tailwind peer-focus variant class name) */
175
+ .qbs-peer:focus ~ .peer-focus\:modern-input-peer-focus-label-size,
176
+ .qbs-peer:not(:placeholder-shown) ~ .modern-input-peer-focus-label-size,
177
+ .qbs-peer:not(:placeholder-shown) ~ label.modern-input-label-truncate {
178
+ font-size: 0.75rem;
179
+ line-height: 1rem;
180
+ }
181
+
182
+ .active-input-label-bg {
183
+ background-color: #fff;
184
+ padding-left: 0.25rem;
185
+ padding-right: 0.25rem;
186
+ }
187
+
188
+ .disabled-input-label-bg {
189
+ background-color: #f2f4f7;
190
+ padding-left: 0.25rem;
191
+ padding-right: 0.25rem;
192
+ }
193
+
194
+ /* Ensure bordered utility actually draws a border */
195
+ .qbs-border {
196
+ border-style: solid;
197
+ }
198
+
199
+ /* Utilities that apps expect but Tailwind may not emit / lose specificity */
200
+ .qbs-z-1 {
201
+ z-index: 1;
202
+ }
203
+ .qbs-start-\[14px\] {
204
+ inset-inline-start: 14px;
205
+ }
206
+ .hover\:qbs-text-dark:hover {
207
+ color: #101828;
208
+ }
@@ -0,0 +1,174 @@
1
+ /**
2
+ * Semantic / host-token fallbacks that Tailwind may not emit, or that
3
+ * need guaranteed styles when the library is consumed in Vite apps.
4
+ */
5
+
6
+ /* --- Missing important / RTL utilities --- */
7
+ .\!qbs-pt-\[10px\] {
8
+ padding-top: 10px !important;
9
+ }
10
+ .\!qbs-pl-\[45px\] {
11
+ padding-left: 45px !important;
12
+ }
13
+
14
+ /* TextArea RTL peer-focus nudge (class used in ReactTextArea) */
15
+ [dir='rtl'] .qbs-peer:focus ~ .rtl\:peer-focus\:qbs-translate-x-1\/6,
16
+ .qbs-peer:focus ~ .rtl\:peer-focus\:qbs-translate-x-1\/6:where([dir='rtl'] *) {
17
+ transform: translateX(16.666667%);
18
+ }
19
+
20
+ /* --- Labels / selected chrome --- */
21
+ .qbs-label-text,
22
+ .labels.qbs-label-text {
23
+ font-size: 12px;
24
+ font-weight: 500;
25
+ color: #344054;
26
+ line-height: 16px;
27
+ }
28
+ .qbs-selected-label-text {
29
+ color: #344054;
30
+ font-size: 14px;
31
+ font-weight: 500;
32
+ line-height: 20px;
33
+ white-space: nowrap;
34
+ }
35
+ .qbs-text-hundred-plus {
36
+ font-size: 10px;
37
+ letter-spacing: -0.02em;
38
+ }
39
+ .qbs-text-grey-label {
40
+ color: #667085;
41
+ font-size: 0.875rem;
42
+ }
43
+
44
+ /* --- Search-on-button chrome --- */
45
+ .qbs-btn-search-on {
46
+ background: transparent;
47
+ border: none;
48
+ border-radius: 4px;
49
+ color: #667085;
50
+ cursor: pointer;
51
+ display: inline-flex;
52
+ align-items: center;
53
+ justify-content: center;
54
+ }
55
+ .qbs-btn-search-on:disabled {
56
+ opacity: 0.7;
57
+ cursor: not-allowed;
58
+ }
59
+ .qbs-btn-search-on:focus-visible {
60
+ outline: 2px solid #cbd5e1;
61
+ outline-offset: 1px;
62
+ }
63
+
64
+ /* --- Adornment hooks --- */
65
+ .qbs-custom-dorpdown-adorement,
66
+ .qbs-auto-dorpdown-adorement,
67
+ .qbs-autocomplete-adorement {
68
+ display: inline-flex;
69
+ align-items: center;
70
+ gap: 4px;
71
+ height: 100%;
72
+ padding-right: 4px;
73
+ box-sizing: border-box;
74
+ }
75
+ .adorement {
76
+ display: inline-flex;
77
+ align-items: center;
78
+ }
79
+
80
+ /* --- Loader / empty dropdown padding --- */
81
+ .qbs-autocomplete-loader {
82
+ display: flex;
83
+ align-items: center;
84
+ justify-content: center;
85
+ width: 100%;
86
+ min-height: 64px;
87
+ padding-top: 4rem;
88
+ box-sizing: border-box;
89
+ }
90
+
91
+ /* --- Suggestion list (Name/Count autocomplete) --- */
92
+ .qbs-autocomplete-with-suggection {
93
+ width: 100%;
94
+ }
95
+ .qbs-suggection-list {
96
+ margin-top: 4px;
97
+ width: 100%;
98
+ }
99
+ .qbs-suggection-item {
100
+ cursor: pointer;
101
+ padding-top: 4px;
102
+ padding-bottom: 4px;
103
+ }
104
+ .qbs-suggection-item:hover {
105
+ background-color: #f8f8f8;
106
+ }
107
+ .qbs-suggection-label {
108
+ color: #344054;
109
+ font-size: 0.75rem;
110
+ line-height: 1rem;
111
+ }
112
+ .qbs-suggection-count {
113
+ background-color: #f97316;
114
+ color: #fff;
115
+ }
116
+ .qbs-autosuggection-list {
117
+ position: absolute;
118
+ z-index: 50;
119
+ }
120
+
121
+ /* Warning / success suggestion containers */
122
+ .suggection-warning-container .qbs-peer {
123
+ border-color: #fdb022;
124
+ }
125
+ .suggection-okey-container .qbs-peer {
126
+ border-color: #28b440;
127
+ }
128
+
129
+ /* --- Radio / checkbox hooks --- */
130
+ .qbs-custom-radio-container {
131
+ gap: 8px;
132
+ }
133
+ .qbs-radio-button {
134
+ cursor: pointer;
135
+ }
136
+
137
+ /* --- Misc icon hooks (no-op safe defaults) --- */
138
+ .qbs-all-dropdow-arrow-icon,
139
+ .qbs-tools-arrow-icon,
140
+ .qbs-tree-single-select-icon {
141
+ display: inline-block;
142
+ vertical-align: middle;
143
+ }
144
+
145
+ /* Extra color tokens often expected from host design systems */
146
+ .qbs-text-gray-500 {
147
+ color: #6b7280;
148
+ }
149
+ .qbs-text-gray-700 {
150
+ color: #374151;
151
+ }
152
+ .qbs-text-gray-900 {
153
+ color: #111827;
154
+ }
155
+ .qbs-bg-gray-100 {
156
+ background-color: #f3f4f6;
157
+ }
158
+ .qbs-shadow-gray-300 {
159
+ --tw-shadow-color: #d1d5db;
160
+ }
161
+ .qbs-border-b {
162
+ border-bottom-width: 1px;
163
+ border-bottom-style: solid;
164
+ }
165
+ .qbs-border-r {
166
+ border-right-width: 1px;
167
+ border-right-style: solid;
168
+ }
169
+
170
+ /* Ensure focus outline utilities work when host CSS resets outlines */
171
+ .focus-visible\:qbs-outline-slate-100:focus-visible {
172
+ outline: 2px solid #f1f5f9;
173
+ outline-offset: 2px;
174
+ }
@@ -2,7 +2,9 @@
2
2
  @tailwind components;
3
3
  @tailwind utilities;
4
4
 
5
+ @import './components/modern-input.css';
6
+ @import './components/qbs-fallbacks.css';
5
7
  @import './components/autocomplete.css';
6
8
  @import './components/treedropdown.css';
7
9
  @import './components/selectedautocomplete.css';
8
- @import './components/tooltip.css';
10
+ @import './components/tooltip.css';
@@ -0,0 +1,9 @@
1
+ @tailwind components;
2
+ @tailwind utilities;
3
+
4
+ @import './components/modern-input.css';
5
+ @import './components/qbs-fallbacks.css';
6
+ @import './components/autocomplete.css';
7
+ @import './components/treedropdown.css';
8
+ @import './components/selectedautocomplete.css';
9
+ @import './components/tooltip.css';
@@ -200,6 +200,10 @@ body * {
200
200
  color: #313131;
201
201
  }
202
202
 
203
+ .qbs-textfield-default:disabled {
204
+ z-index: 0;
205
+ }
206
+
203
207
  .qbs-expandable-container {
204
208
  border: 1px solid #d6d8dc;
205
209
  background: #fff;
@@ -444,6 +448,12 @@ ul {
444
448
  right: 8px;
445
449
  }
446
450
 
451
+ .selected-item-inline-counter-disabled .badge {
452
+ background-color: #c63a3a;
453
+ color: #fff;
454
+ opacity: 1;
455
+ }
456
+
447
457
  .selected-item-tool-direct-counter {
448
458
  right: 60px;
449
459
  }
@@ -1 +1 @@
1
- {"version":3,"file":"debounce.js","sourceRoot":"","sources":["../../src/utilities/debounce.ts"],"names":[],"mappings":";;;AAAA,SAAgB,QAAQ,CACtB,EAAK,EACL,KAAa;IAEb,IAAI,OAAO,GAA0B,IAAI,CAAC;IAC1C,OAAO;QAAC,cAAsB;aAAtB,UAAsB,EAAtB,qBAAsB,EAAtB,IAAsB;YAAtB,yBAAsB;;QAC5B,IAAI,OAAO,EAAE;YACX,YAAY,CAAC,OAAO,CAAC,CAAC;SACvB;QACD,OAAO,GAAG,UAAU,CAAC;YACnB,EAAE,eAAI,IAAI,EAAE;YACZ,OAAO,GAAG,IAAI,CAAC;QACjB,CAAC,EAAE,KAAK,CAAC,CAAC;IACZ,CAAC,CAAC;AACJ,CAAC;AAdD,4BAcC"}
1
+ {"version":3,"file":"debounce.js","sourceRoot":"","sources":["../../src/utilities/debounce.ts"],"names":[],"mappings":";;;AAAA,SAAgB,QAAQ,CACtB,EAAK,EACL,KAAa;IAEb,IAAI,OAAO,GAAyC,IAAI,CAAC;IACzD,OAAO;QAAC,cAAsB;aAAtB,UAAsB,EAAtB,qBAAsB,EAAtB,IAAsB;YAAtB,yBAAsB;;QAC5B,IAAI,OAAO,EAAE;YACX,YAAY,CAAC,OAAO,CAAC,CAAC;SACvB;QACD,OAAO,GAAG,UAAU,CAAC;YACnB,EAAE,eAAI,IAAI,EAAE;YACZ,OAAO,GAAG,IAAI,CAAC;QACjB,CAAC,EAAE,KAAK,CAAC,CAAC;IACZ,CAAC,CAAC;AACJ,CAAC;AAdD,4BAcC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-core-ts",
3
- "version": "2.1.39",
3
+ "version": "2.1.41",
4
4
  "description": "React Components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1014,10 +1014,10 @@ const AutoCompleteWithSelectedList = forwardRef<
1014
1014
  {!countOnly ? (
1015
1015
  getSelectedItems(false)
1016
1016
  ) : !tabInlineSearch ? (
1017
- <div className={`selected-items-counter-container ${disabled ? 'selected-item-inline-counter-disabled' : ''} qbs-text-sm qbs-gap-1 ${!tabInlineSearch && autoDropdown && !disabled ? 'selected-item-nontool-direct-counter' : ''}`}>
1017
+ <div className={`selected-items-counter-container selected-item-inline-counter ${disabled ? 'selected-item-inline-counter-disabled' : ''} qbs-text-sm qbs-gap-1 ${!tabInlineSearch && autoDropdown && !disabled ? 'selected-item-nontool-direct-counter' : ''}`}>
1018
1018
  <Tooltip title={allSelectedTooltipContent} enabled={selectedItems?.length > 0 ? true : false}>
1019
1019
  <span className="badge qbs-rounded-full qbs-text-xs qbs-inline-flex qbs-items-center qbs-justify-center qbs-px-2 qbs-py-1 qbs-leading-none qbs-min-w-6 qbs-min-h-6">
1020
- {selectedItems?.length}
1020
+ {selectedItems?.length ?? 0}
1021
1021
  </span>
1022
1022
  </Tooltip>
1023
1023
  </div>
@@ -1154,7 +1154,7 @@ const AutoCompleteWithTabFilter = forwardRef<
1154
1154
  <div className={`selected-items-counter-container selected-item-inline-counter ${disabled ? 'selected-item-inline-counter-disabled' : ''} qbs-text-sm qbs-gap-1 ${!tabInlineSearch && autoDropdown && !disabled ? 'selected-item-tool-direct-counter' : ''}`}>
1155
1155
  <Tooltip title={allSelectedTooltipContent} enabled={selectedItems?.length > 0 ? true : false}>
1156
1156
  <span className="badge qbs-rounded-full qbs-text-xs qbs-inline-flex qbs-items-center qbs-justify-center qbs-px-2 qbs-py-1 qbs-leading-none qbs-min-w-6 qbs-min-h-6">
1157
- {selectedItems?.length}
1157
+ {selectedItems?.length ?? 0}
1158
1158
  </span>
1159
1159
  </Tooltip>
1160
1160
  </div>