@bloomreach/react-banana-ui 1.1.0-next.1

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 (366) hide show
  1. package/README.md +310 -0
  2. package/dist/bloomreach-react-banana-ui.es.js +7683 -0
  3. package/dist/bloomreach-react-banana-ui.es.js.map +1 -0
  4. package/dist/bloomreach-react-banana-ui.umd.js +52 -0
  5. package/dist/bloomreach-react-banana-ui.umd.js.map +1 -0
  6. package/dist/components/buttons/button/button.d.ts +71 -0
  7. package/dist/components/buttons/button/button.qa.stories.d.ts +8 -0
  8. package/dist/components/buttons/button/button.stories.d.ts +16 -0
  9. package/dist/components/buttons/button/index.d.ts +1 -0
  10. package/dist/components/buttons/button-group/button-group.d.ts +41 -0
  11. package/dist/components/buttons/button-group/button-group.stories.d.ts +9 -0
  12. package/dist/components/buttons/button-group/index.d.ts +2 -0
  13. package/dist/components/buttons/index.d.ts +4 -0
  14. package/dist/components/buttons/toggle-button/index.d.ts +2 -0
  15. package/dist/components/buttons/toggle-button/toggle-button.d.ts +75 -0
  16. package/dist/components/buttons/toggle-button/toggle-button.stories.d.ts +7 -0
  17. package/dist/components/buttons/toggle-button-group/index.d.ts +2 -0
  18. package/dist/components/buttons/toggle-button-group/toggle-button-group.d.ts +94 -0
  19. package/dist/components/buttons/toggle-button-group/toggle-button-group.stories.d.ts +8 -0
  20. package/dist/components/containers/dropdown/dropdown.d.ts +131 -0
  21. package/dist/components/containers/scroll-region/scroll-region.d.ts +106 -0
  22. package/dist/components/containers/scroll-view/scroll-view.d.ts +115 -0
  23. package/dist/components/feedback/alert/alert-title.d.ts +13 -0
  24. package/dist/components/feedback/alert/alert.d.ts +41 -0
  25. package/dist/components/feedback/alert/alert.stories.d.ts +11 -0
  26. package/dist/components/feedback/alert/index.d.ts +2 -0
  27. package/dist/components/feedback/index.d.ts +1 -0
  28. package/dist/components/foundations/icon/icon.d.ts +41 -0
  29. package/dist/components/foundations/icon/icon.qa.stories.d.ts +6 -0
  30. package/dist/components/foundations/icon/icon.stories.d.ts +16 -0
  31. package/dist/components/foundations/icon/icons/AbTestIcon.d.ts +4 -0
  32. package/dist/components/foundations/icon/icons/AggregateIcon.d.ts +4 -0
  33. package/dist/components/foundations/icon/icons/AnalyticsIcon.d.ts +4 -0
  34. package/dist/components/foundations/icon/icons/AndroidIcon.d.ts +4 -0
  35. package/dist/components/foundations/icon/icons/AnonymizeIcon.d.ts +4 -0
  36. package/dist/components/foundations/icon/icons/AppleIcon.d.ts +4 -0
  37. package/dist/components/foundations/icon/icons/ArchiveAltIcon.d.ts +4 -0
  38. package/dist/components/foundations/icon/icons/ArchiveIcon.d.ts +4 -0
  39. package/dist/components/foundations/icon/icons/ArrowCollapseIcon.d.ts +4 -0
  40. package/dist/components/foundations/icon/icons/ArrowDownIcon.d.ts +4 -0
  41. package/dist/components/foundations/icon/icons/ArrowExpandIcon.d.ts +4 -0
  42. package/dist/components/foundations/icon/icons/ArrowKeyboardNextIcon.d.ts +4 -0
  43. package/dist/components/foundations/icon/icons/ArrowKeyboardPreviousIcon.d.ts +4 -0
  44. package/dist/components/foundations/icon/icons/ArrowKeyboardUpIcon.d.ts +4 -0
  45. package/dist/components/foundations/icon/icons/ArrowLeftIcon.d.ts +4 -0
  46. package/dist/components/foundations/icon/icons/ArrowRightIcon.d.ts +4 -0
  47. package/dist/components/foundations/icon/icons/ArrowUpIcon.d.ts +4 -0
  48. package/dist/components/foundations/icon/icons/AxisIcon.d.ts +4 -0
  49. package/dist/components/foundations/icon/icons/AxisLimtIcon.d.ts +4 -0
  50. package/dist/components/foundations/icon/icons/BarChartIcon.d.ts +4 -0
  51. package/dist/components/foundations/icon/icons/BooleanIcon.d.ts +4 -0
  52. package/dist/components/foundations/icon/icons/BracketsCancelIcon.d.ts +4 -0
  53. package/dist/components/foundations/icon/icons/BracketsIcon.d.ts +4 -0
  54. package/dist/components/foundations/icon/icons/BrowserIcon.d.ts +4 -0
  55. package/dist/components/foundations/icon/icons/BrowserPushIcon.d.ts +4 -0
  56. package/dist/components/foundations/icon/icons/CalendarAltIcon.d.ts +4 -0
  57. package/dist/components/foundations/icon/icons/CalendarIcon.d.ts +4 -0
  58. package/dist/components/foundations/icon/icons/CatalogIcon.d.ts +4 -0
  59. package/dist/components/foundations/icon/icons/ChatAddIcon.d.ts +4 -0
  60. package/dist/components/foundations/icon/icons/ChatIcon.d.ts +4 -0
  61. package/dist/components/foundations/icon/icons/ChatsIcon.d.ts +4 -0
  62. package/dist/components/foundations/icon/icons/CheckCircleIcon.d.ts +4 -0
  63. package/dist/components/foundations/icon/icons/CheckFilledIcon.d.ts +4 -0
  64. package/dist/components/foundations/icon/icons/CheckIcon.d.ts +4 -0
  65. package/dist/components/foundations/icon/icons/CheckSmallIcon.d.ts +4 -0
  66. package/dist/components/foundations/icon/icons/ChevronDownFillIcon.d.ts +4 -0
  67. package/dist/components/foundations/icon/icons/ChevronDownIcon.d.ts +4 -0
  68. package/dist/components/foundations/icon/icons/ChevronLeftFillIcon.d.ts +4 -0
  69. package/dist/components/foundations/icon/icons/ChevronLeftIcon.d.ts +4 -0
  70. package/dist/components/foundations/icon/icons/ChevronRightFillIcon.d.ts +4 -0
  71. package/dist/components/foundations/icon/icons/ChevronRightIcon.d.ts +4 -0
  72. package/dist/components/foundations/icon/icons/ChevronUpFillIcon.d.ts +4 -0
  73. package/dist/components/foundations/icon/icons/ChevronUpIcon.d.ts +4 -0
  74. package/dist/components/foundations/icon/icons/ClearFillIcon.d.ts +4 -0
  75. package/dist/components/foundations/icon/icons/ClearIcon.d.ts +4 -0
  76. package/dist/components/foundations/icon/icons/ClipboardAddIcon.d.ts +4 -0
  77. package/dist/components/foundations/icon/icons/ClockCircleIcon.d.ts +4 -0
  78. package/dist/components/foundations/icon/icons/CloneIcon.d.ts +4 -0
  79. package/dist/components/foundations/icon/icons/CloseIcon.d.ts +4 -0
  80. package/dist/components/foundations/icon/icons/CloseSmallIcon.d.ts +4 -0
  81. package/dist/components/foundations/icon/icons/CloudCheckIcon.d.ts +4 -0
  82. package/dist/components/foundations/icon/icons/CloudDownloadIcon.d.ts +4 -0
  83. package/dist/components/foundations/icon/icons/CodeIcon.d.ts +4 -0
  84. package/dist/components/foundations/icon/icons/ColorPickerAltIcon.d.ts +4 -0
  85. package/dist/components/foundations/icon/icons/ColorPickerIcon.d.ts +4 -0
  86. package/dist/components/foundations/icon/icons/ColumnsIcon.d.ts +4 -0
  87. package/dist/components/foundations/icon/icons/ConditionAltIcon.d.ts +4 -0
  88. package/dist/components/foundations/icon/icons/ConditionIcon.d.ts +4 -0
  89. package/dist/components/foundations/icon/icons/ConsoleIcon.d.ts +4 -0
  90. package/dist/components/foundations/icon/icons/ConstantAltIcon.d.ts +4 -0
  91. package/dist/components/foundations/icon/icons/ConstantIcon.d.ts +4 -0
  92. package/dist/components/foundations/icon/icons/ContextualPersonalizationIcon.d.ts +4 -0
  93. package/dist/components/foundations/icon/icons/CopyIcon.d.ts +4 -0
  94. package/dist/components/foundations/icon/icons/CopyToDashboardIcon.d.ts +4 -0
  95. package/dist/components/foundations/icon/icons/CsvIcon.d.ts +4 -0
  96. package/dist/components/foundations/icon/icons/CustomRowIcon.d.ts +4 -0
  97. package/dist/components/foundations/icon/icons/CustomerIcon.d.ts +4 -0
  98. package/dist/components/foundations/icon/icons/CustomersFilterIcon.d.ts +4 -0
  99. package/dist/components/foundations/icon/icons/CustomersSegmentationIcon.d.ts +4 -0
  100. package/dist/components/foundations/icon/icons/DateTimeIcon.d.ts +4 -0
  101. package/dist/components/foundations/icon/icons/DescriptionIcon.d.ts +4 -0
  102. package/dist/components/foundations/icon/icons/DesktopIcon.d.ts +4 -0
  103. package/dist/components/foundations/icon/icons/DisabledIcon.d.ts +4 -0
  104. package/dist/components/foundations/icon/icons/DivideIcon.d.ts +4 -0
  105. package/dist/components/foundations/icon/icons/DocumentationIcon.d.ts +4 -0
  106. package/dist/components/foundations/icon/icons/DownloadIcon.d.ts +4 -0
  107. package/dist/components/foundations/icon/icons/DragHorizontalIcon.d.ts +4 -0
  108. package/dist/components/foundations/icon/icons/DragVericalIcon.d.ts +4 -0
  109. package/dist/components/foundations/icon/icons/EditIcon.d.ts +4 -0
  110. package/dist/components/foundations/icon/icons/EducationHubIcon.d.ts +4 -0
  111. package/dist/components/foundations/icon/icons/EllipsisVerticalIcon.d.ts +4 -0
  112. package/dist/components/foundations/icon/icons/EllipsissHorizontalIcon.d.ts +4 -0
  113. package/dist/components/foundations/icon/icons/EmailIcon.d.ts +4 -0
  114. package/dist/components/foundations/icon/icons/EmojiPickerIcon.d.ts +4 -0
  115. package/dist/components/foundations/icon/icons/ErrorFillIcon.d.ts +4 -0
  116. package/dist/components/foundations/icon/icons/EventIcon.d.ts +4 -0
  117. package/dist/components/foundations/icon/icons/EventsSegmentationIcon.d.ts +4 -0
  118. package/dist/components/foundations/icon/icons/ExperimentIcon.d.ts +4 -0
  119. package/dist/components/foundations/icon/icons/ExposeIcon.d.ts +4 -0
  120. package/dist/components/foundations/icon/icons/ExpressionIcon.d.ts +4 -0
  121. package/dist/components/foundations/icon/icons/ExternalLinkIcon.d.ts +4 -0
  122. package/dist/components/foundations/icon/icons/EyeCrossedIcon.d.ts +4 -0
  123. package/dist/components/foundations/icon/icons/EyeIcon.d.ts +4 -0
  124. package/dist/components/foundations/icon/icons/FastForwardIcon.d.ts +4 -0
  125. package/dist/components/foundations/icon/icons/FileIcon.d.ts +4 -0
  126. package/dist/components/foundations/icon/icons/FilterIcon.d.ts +4 -0
  127. package/dist/components/foundations/icon/icons/FireIcon.d.ts +4 -0
  128. package/dist/components/foundations/icon/icons/FolderEmptyIcon.d.ts +4 -0
  129. package/dist/components/foundations/icon/icons/FolderFullIcon.d.ts +4 -0
  130. package/dist/components/foundations/icon/icons/FormulaExpressionIcon.d.ts +4 -0
  131. package/dist/components/foundations/icon/icons/FormulaIcon.d.ts +4 -0
  132. package/dist/components/foundations/icon/icons/FromStartAltIcon.d.ts +4 -0
  133. package/dist/components/foundations/icon/icons/FullscreenIcon.d.ts +4 -0
  134. package/dist/components/foundations/icon/icons/GiftIcon.d.ts +4 -0
  135. package/dist/components/foundations/icon/icons/GoToIcon.d.ts +4 -0
  136. package/dist/components/foundations/icon/icons/GraphStatsIcon.d.ts +4 -0
  137. package/dist/components/foundations/icon/icons/GridAltIcon.d.ts +4 -0
  138. package/dist/components/foundations/icon/icons/GridIcon.d.ts +4 -0
  139. package/dist/components/foundations/icon/icons/HelpIcon.d.ts +4 -0
  140. package/dist/components/foundations/icon/icons/HistoryIcon.d.ts +4 -0
  141. package/dist/components/foundations/icon/icons/HomeIcon.d.ts +4 -0
  142. package/dist/components/foundations/icon/icons/HtmlIcon.d.ts +4 -0
  143. package/dist/components/foundations/icon/icons/ImagesIcon.d.ts +4 -0
  144. package/dist/components/foundations/icon/icons/InfoFilledIcon.d.ts +4 -0
  145. package/dist/components/foundations/icon/icons/InfoIcon.d.ts +4 -0
  146. package/dist/components/foundations/icon/icons/InfoSmallIcon.d.ts +4 -0
  147. package/dist/components/foundations/icon/icons/InternetIcon.d.ts +4 -0
  148. package/dist/components/foundations/icon/icons/KeyIcon.d.ts +4 -0
  149. package/dist/components/foundations/icon/icons/LayoutIcon.d.ts +4 -0
  150. package/dist/components/foundations/icon/icons/LikeIcon.d.ts +4 -0
  151. package/dist/components/foundations/icon/icons/LineChartIcon.d.ts +4 -0
  152. package/dist/components/foundations/icon/icons/LinkIcon.d.ts +4 -0
  153. package/dist/components/foundations/icon/icons/ListIcon.d.ts +4 -0
  154. package/dist/components/foundations/icon/icons/LoaderIcon.d.ts +4 -0
  155. package/dist/components/foundations/icon/icons/LockIcon.d.ts +4 -0
  156. package/dist/components/foundations/icon/icons/MapIcon.d.ts +4 -0
  157. package/dist/components/foundations/icon/icons/MetricAltIcon.d.ts +4 -0
  158. package/dist/components/foundations/icon/icons/MinusIcon.d.ts +4 -0
  159. package/dist/components/foundations/icon/icons/MobileAppInboxIcon.d.ts +4 -0
  160. package/dist/components/foundations/icon/icons/MobileImageMessageIcon.d.ts +4 -0
  161. package/dist/components/foundations/icon/icons/MobilePhoneLandscapeIcon.d.ts +4 -0
  162. package/dist/components/foundations/icon/icons/MobilePhonePortraitIcon.d.ts +4 -0
  163. package/dist/components/foundations/icon/icons/MobilePushIcon.d.ts +4 -0
  164. package/dist/components/foundations/icon/icons/MobileSmsIcon.d.ts +4 -0
  165. package/dist/components/foundations/icon/icons/MobileTextMessageIcon.d.ts +4 -0
  166. package/dist/components/foundations/icon/icons/MoveIcon.d.ts +4 -0
  167. package/dist/components/foundations/icon/icons/NegationIcon.d.ts +4 -0
  168. package/dist/components/foundations/icon/icons/NotificationIcon.d.ts +4 -0
  169. package/dist/components/foundations/icon/icons/NumberIcon.d.ts +4 -0
  170. package/dist/components/foundations/icon/icons/OfflineFillIcon.d.ts +4 -0
  171. package/dist/components/foundations/icon/icons/OfflineIcon.d.ts +4 -0
  172. package/dist/components/foundations/icon/icons/PaintIcon.d.ts +4 -0
  173. package/dist/components/foundations/icon/icons/ParagraphCenterAlignIcon.d.ts +4 -0
  174. package/dist/components/foundations/icon/icons/ParagraphLeftAlignIcon.d.ts +4 -0
  175. package/dist/components/foundations/icon/icons/ParagraphRightAlignIcon.d.ts +4 -0
  176. package/dist/components/foundations/icon/icons/PercentageIcon.d.ts +4 -0
  177. package/dist/components/foundations/icon/icons/PersAlt1Icon.d.ts +4 -0
  178. package/dist/components/foundations/icon/icons/PersAlt2Icon.d.ts +4 -0
  179. package/dist/components/foundations/icon/icons/PersAlt3Icon.d.ts +4 -0
  180. package/dist/components/foundations/icon/icons/PersAlt4Icon.d.ts +4 -0
  181. package/dist/components/foundations/icon/icons/PictureAltIcon.d.ts +4 -0
  182. package/dist/components/foundations/icon/icons/PictureIcon.d.ts +4 -0
  183. package/dist/components/foundations/icon/icons/PinIcon.d.ts +4 -0
  184. package/dist/components/foundations/icon/icons/PlugPlayIcon.d.ts +4 -0
  185. package/dist/components/foundations/icon/icons/PlusCircleFillIcon.d.ts +4 -0
  186. package/dist/components/foundations/icon/icons/PlusCircleIcon.d.ts +4 -0
  187. package/dist/components/foundations/icon/icons/PlusIcon.d.ts +4 -0
  188. package/dist/components/foundations/icon/icons/PoverButtonIcon.d.ts +4 -0
  189. package/dist/components/foundations/icon/icons/RefreshIcon.d.ts +4 -0
  190. package/dist/components/foundations/icon/icons/ReleaseNotesIcon.d.ts +4 -0
  191. package/dist/components/foundations/icon/icons/RenameAltIcon.d.ts +4 -0
  192. package/dist/components/foundations/icon/icons/RenameIcon.d.ts +4 -0
  193. package/dist/components/foundations/icon/icons/ReorderIcon.d.ts +4 -0
  194. package/dist/components/foundations/icon/icons/ReportIcon.d.ts +4 -0
  195. package/dist/components/foundations/icon/icons/RetentionIcon.d.ts +4 -0
  196. package/dist/components/foundations/icon/icons/RewertLeftIcon.d.ts +4 -0
  197. package/dist/components/foundations/icon/icons/RewertRightIcon.d.ts +4 -0
  198. package/dist/components/foundations/icon/icons/RibbonIcon.d.ts +4 -0
  199. package/dist/components/foundations/icon/icons/RoadmapIcon.d.ts +4 -0
  200. package/dist/components/foundations/icon/icons/RobotIcon.d.ts +4 -0
  201. package/dist/components/foundations/icon/icons/RunningAggregateIcon.d.ts +4 -0
  202. package/dist/components/foundations/icon/icons/SaveIcon.d.ts +4 -0
  203. package/dist/components/foundations/icon/icons/ScenarioIcon.d.ts +4 -0
  204. package/dist/components/foundations/icon/icons/SearchIcon.d.ts +4 -0
  205. package/dist/components/foundations/icon/icons/SecurityShieldIcon.d.ts +4 -0
  206. package/dist/components/foundations/icon/icons/SendIcon.d.ts +4 -0
  207. package/dist/components/foundations/icon/icons/SettingsAltIcon.d.ts +4 -0
  208. package/dist/components/foundations/icon/icons/SettingsIcon.d.ts +4 -0
  209. package/dist/components/foundations/icon/icons/ShareIcon.d.ts +4 -0
  210. package/dist/components/foundations/icon/icons/ShopIcon.d.ts +4 -0
  211. package/dist/components/foundations/icon/icons/ShrinkIcon.d.ts +4 -0
  212. package/dist/components/foundations/icon/icons/SortIcon.d.ts +4 -0
  213. package/dist/components/foundations/icon/icons/SplitFlowIcon.d.ts +4 -0
  214. package/dist/components/foundations/icon/icons/SqlIcon.d.ts +4 -0
  215. package/dist/components/foundations/icon/icons/StarFillIcon.d.ts +4 -0
  216. package/dist/components/foundations/icon/icons/StarIcon.d.ts +4 -0
  217. package/dist/components/foundations/icon/icons/StartFillIcon.d.ts +4 -0
  218. package/dist/components/foundations/icon/icons/StartIcon.d.ts +4 -0
  219. package/dist/components/foundations/icon/icons/StatusDotIcon.d.ts +4 -0
  220. package/dist/components/foundations/icon/icons/StopIcon.d.ts +4 -0
  221. package/dist/components/foundations/icon/icons/StopwatchIcon.d.ts +4 -0
  222. package/dist/components/foundations/icon/icons/StringComponentIcon.d.ts +4 -0
  223. package/dist/components/foundations/icon/icons/StringIcon.d.ts +4 -0
  224. package/dist/components/foundations/icon/icons/SuggestionIcon.d.ts +4 -0
  225. package/dist/components/foundations/icon/icons/SurveyIcon.d.ts +4 -0
  226. package/dist/components/foundations/icon/icons/SwapIcon.d.ts +4 -0
  227. package/dist/components/foundations/icon/icons/TabletLangscapeIcon.d.ts +4 -0
  228. package/dist/components/foundations/icon/icons/TabletPortraitIcon.d.ts +4 -0
  229. package/dist/components/foundations/icon/icons/TagAltIcon.d.ts +4 -0
  230. package/dist/components/foundations/icon/icons/TagIcon.d.ts +4 -0
  231. package/dist/components/foundations/icon/icons/TemplateIcon.d.ts +4 -0
  232. package/dist/components/foundations/icon/icons/TextBoldIcon.d.ts +4 -0
  233. package/dist/components/foundations/icon/icons/TextItalicIcon.d.ts +4 -0
  234. package/dist/components/foundations/icon/icons/TextStyleIcon.d.ts +4 -0
  235. package/dist/components/foundations/icon/icons/TragetIcon.d.ts +4 -0
  236. package/dist/components/foundations/icon/icons/TransferIcon.d.ts +4 -0
  237. package/dist/components/foundations/icon/icons/TrashIcon.d.ts +4 -0
  238. package/dist/components/foundations/icon/icons/TrendIcon.d.ts +4 -0
  239. package/dist/components/foundations/icon/icons/UnExposeIcon.d.ts +4 -0
  240. package/dist/components/foundations/icon/icons/UnarchiveAltIcon.d.ts +4 -0
  241. package/dist/components/foundations/icon/icons/UndoIcon.d.ts +4 -0
  242. package/dist/components/foundations/icon/icons/UnlinkIcon.d.ts +4 -0
  243. package/dist/components/foundations/icon/icons/UnlockIcon.d.ts +4 -0
  244. package/dist/components/foundations/icon/icons/UntilNowAltIcon.d.ts +4 -0
  245. package/dist/components/foundations/icon/icons/UploadIcon.d.ts +4 -0
  246. package/dist/components/foundations/icon/icons/UsagesIcon.d.ts +4 -0
  247. package/dist/components/foundations/icon/icons/UsersIcon.d.ts +4 -0
  248. package/dist/components/foundations/icon/icons/VisualIcon.d.ts +4 -0
  249. package/dist/components/foundations/icon/icons/VoucherIcon.d.ts +4 -0
  250. package/dist/components/foundations/icon/icons/WaitIcon.d.ts +4 -0
  251. package/dist/components/foundations/icon/icons/WalkthroughsIcon.d.ts +4 -0
  252. package/dist/components/foundations/icon/icons/WarningFillIcon.d.ts +4 -0
  253. package/dist/components/foundations/icon/icons/WebhookIcon.d.ts +4 -0
  254. package/dist/components/foundations/icon/icons/WeblayerIcon.d.ts +4 -0
  255. package/dist/components/foundations/icon/icons/WrenchIcon.d.ts +4 -0
  256. package/dist/components/foundations/icon/icons/index.d.ts +225 -0
  257. package/dist/components/foundations/icon/index.d.ts +3 -0
  258. package/dist/components/foundations/index.d.ts +1 -0
  259. package/dist/components/index.d.ts +6 -0
  260. package/dist/components/inputs/base-field/base-field.d.ts +48 -0
  261. package/dist/components/inputs/base-field/generate-field-id.d.ts +4 -0
  262. package/dist/components/inputs/base-field/index.d.ts +2 -0
  263. package/dist/components/inputs/base-input/base-input.d.ts +104 -0
  264. package/dist/components/inputs/base-input/index.d.ts +2 -0
  265. package/dist/components/inputs/index.d.ts +2 -0
  266. package/dist/components/inputs/input-field/index.d.ts +2 -0
  267. package/dist/components/inputs/input-field/input-field.d.ts +119 -0
  268. package/dist/components/inputs/input-field/input-field.qa.stories.d.ts +13 -0
  269. package/dist/components/inputs/input-field/input-field.stories.d.ts +23 -0
  270. package/dist/components/inputs/internal.d.ts +2 -0
  271. package/dist/components/inputs/selection/selection.d.ts +233 -0
  272. package/dist/components/inputs/text-field/index.d.ts +2 -0
  273. package/dist/components/inputs/text-field/text-field.d.ts +138 -0
  274. package/dist/components/inputs/text-field/text-field.qa.stories.d.ts +14 -0
  275. package/dist/components/inputs/text-field/text-field.stories.d.ts +25 -0
  276. package/dist/components/internal.d.ts +1 -0
  277. package/dist/components/lists/list-view/list-view.d.ts +149 -0
  278. package/dist/components/loaders/loader/loader.d.ts +24 -0
  279. package/dist/components/navigation/index.d.ts +1 -0
  280. package/dist/components/navigation/pagination/index.d.ts +2 -0
  281. package/dist/components/navigation/pagination/pagination-config.d.ts +4 -0
  282. package/dist/components/navigation/pagination/pagination-context.d.ts +5 -0
  283. package/dist/components/navigation/pagination/pagination-items-per-page-selector.d.ts +2 -0
  284. package/dist/components/navigation/pagination/pagination-navigation-helpers.d.ts +11 -0
  285. package/dist/components/navigation/pagination/pagination-navigation-item.d.ts +6 -0
  286. package/dist/components/navigation/pagination/pagination-navigation.d.ts +2 -0
  287. package/dist/components/navigation/pagination/pagination-summary.d.ts +2 -0
  288. package/dist/components/navigation/pagination/pagination-types.d.ts +38 -0
  289. package/dist/components/navigation/pagination/pagination.d.ts +21 -0
  290. package/dist/components/navigation/pagination/pagination.qa.stories.d.ts +8 -0
  291. package/dist/components/navigation/pagination/pagination.stories.d.ts +20 -0
  292. package/dist/components/popovers/index.d.ts +2 -0
  293. package/dist/components/popovers/modal/index.d.ts +8 -0
  294. package/dist/components/popovers/modal/modal-body.d.ts +8 -0
  295. package/dist/components/popovers/modal/modal-close-button.d.ts +13 -0
  296. package/dist/components/popovers/modal/modal-context.d.ts +5 -0
  297. package/dist/components/popovers/modal/modal-footer-actions.d.ts +8 -0
  298. package/dist/components/popovers/modal/modal-footer.d.ts +10 -0
  299. package/dist/components/popovers/modal/modal-header-title.d.ts +7 -0
  300. package/dist/components/popovers/modal/modal-header.d.ts +9 -0
  301. package/dist/components/popovers/modal/modal-types.d.ts +94 -0
  302. package/dist/components/popovers/modal/modal.d.ts +37 -0
  303. package/dist/components/popovers/modal/modal.qa.stories.d.ts +10 -0
  304. package/dist/components/popovers/modal/modal.stories.d.ts +14 -0
  305. package/dist/components/popovers/tooltip/index.d.ts +2 -0
  306. package/dist/components/popovers/tooltip/tooltip-config.d.ts +2 -0
  307. package/dist/components/popovers/tooltip/tooltip.d.ts +50 -0
  308. package/dist/components/popovers/tooltip/tooltip.qa.stories.d.ts +8 -0
  309. package/dist/components/popovers/tooltip/tooltip.stories.d.ts +25 -0
  310. package/dist/components/types.d.ts +19 -0
  311. package/dist/index.d.ts +1 -0
  312. package/dist/style.css +1 -0
  313. package/dist/utils/add-font.d.ts +29 -0
  314. package/dist/utils/after-render.d.ts +5 -0
  315. package/dist/utils/async-dom-render.d.ts +6 -0
  316. package/dist/utils/chalk.d.ts +44 -0
  317. package/dist/utils/chunk.d.ts +4 -0
  318. package/dist/utils/classnames.d.ts +6 -0
  319. package/dist/utils/clone-client-rect.d.ts +26 -0
  320. package/dist/utils/compare-client-rect.d.ts +5 -0
  321. package/dist/utils/compare-sets.d.ts +5 -0
  322. package/dist/utils/compose-refs.d.ts +5 -0
  323. package/dist/utils/cookie-parser.d.ts +8 -0
  324. package/dist/utils/copy-text-to-clipboard.d.ts +7 -0
  325. package/dist/utils/debounce.d.ts +4 -0
  326. package/dist/utils/deep-clone.d.ts +5 -0
  327. package/dist/utils/deep-equal.d.ts +4 -0
  328. package/dist/utils/ensure-modal-root.d.ts +4 -0
  329. package/dist/utils/event-element-position.d.ts +4 -0
  330. package/dist/utils/filter-react-children.d.ts +6 -0
  331. package/dist/utils/find-react-children.d.ts +10 -0
  332. package/dist/utils/flatten-array.d.ts +5 -0
  333. package/dist/utils/fuzzy-groups.d.ts +51 -0
  334. package/dist/utils/get-decimal.d.ts +8 -0
  335. package/dist/utils/get-error-message.d.ts +6 -0
  336. package/dist/utils/get-first-with-class.d.ts +5 -0
  337. package/dist/utils/get-index.d.ts +5 -0
  338. package/dist/utils/get-selected-text.d.ts +4 -0
  339. package/dist/utils/get-type-name.d.ts +14 -0
  340. package/dist/utils/group-react-children.d.ts +8 -0
  341. package/dist/utils/has-child.d.ts +4 -0
  342. package/dist/utils/hooks/index.d.ts +1 -0
  343. package/dist/utils/hooks/use-hover.d.ts +10 -0
  344. package/dist/utils/index.d.ts +43 -0
  345. package/dist/utils/local-storage.d.ts +42 -0
  346. package/dist/utils/make-buffer.d.ts +28 -0
  347. package/dist/utils/map-lookup-values.d.ts +65 -0
  348. package/dist/utils/no-op.d.ts +4 -0
  349. package/dist/utils/normalize-wheel/ExecutionEnvironment.d.ts +38 -0
  350. package/dist/utils/normalize-wheel/UserAgent_DEPRECATED.d.ts +116 -0
  351. package/dist/utils/normalize-wheel/index.d.ts +2 -0
  352. package/dist/utils/normalize-wheel/isEventSupported.d.ts +46 -0
  353. package/dist/utils/normalize-wheel/normalizeWheel.d.ts +139 -0
  354. package/dist/utils/promise-resolver.d.ts +36 -0
  355. package/dist/utils/relative-client-rect.d.ts +5 -0
  356. package/dist/utils/rush.d.ts +4 -0
  357. package/dist/utils/state-controls.d.ts +28 -0
  358. package/dist/utils/stop-all-propagation.d.ts +8 -0
  359. package/dist/utils/template.d.ts +49 -0
  360. package/dist/utils/to-digits.d.ts +4 -0
  361. package/dist/utils/to-query-params.d.ts +14 -0
  362. package/dist/utils/types.d.ts +69 -0
  363. package/dist/utils/url-join.d.ts +24 -0
  364. package/dist/utils/wait.d.ts +1 -0
  365. package/dist/utils/when.d.ts +2 -0
  366. package/package.json +117 -0
@@ -0,0 +1,233 @@
1
+ import * as React from 'react';
2
+ import { DOMRectBounds, DOMRectPadding } from '../../../utils';
3
+ /**
4
+ * Builds a selection's options from an object style enum.
5
+ */
6
+ export declare function selectionOptionsFromEnum(obj: Record<string, any>): ISelection['options'];
7
+ /**
8
+ * Available preformatted render modes
9
+ */
10
+ export declare const SelectionMode: {
11
+ /**
12
+ * Render mode for the selection being placed within an existing field (such
13
+ * as within a TextInput on the right).
14
+ */
15
+ readonly FIELD_INLINE: "Selection--field-inline";
16
+ /**
17
+ * Same as field_inline but with toned down colors.
18
+ */
19
+ readonly FIELD_INLINE_SUBTLE: "Selection--field-inline-subtle";
20
+ /**
21
+ * Style that typically shows up at the top of a page spanning table to filter
22
+ * its contents.
23
+ */
24
+ readonly FILTER_HEADER: "Selection--filter-header";
25
+ /**
26
+ * Common style when the selection is within a table setting
27
+ */
28
+ readonly TABLE: "Selection-table";
29
+ /**
30
+ * Renders this mode as disabled. This mode is automatically used when the
31
+ * disabled flag is set for this component.
32
+ */
33
+ readonly DISABLED: "Selection--disabled";
34
+ };
35
+ /**
36
+ * Available preformatted render sizes
37
+ */
38
+ export declare const SelectionSize: {
39
+ readonly HEIGHT_30: "Selection--height-30";
40
+ readonly HEIGHT_32: "Selection--height-32";
41
+ readonly HEIGHT_36: "Selection--height-36";
42
+ readonly HEIGHT_40: "Selection--height-40";
43
+ readonly HEIGHT_60: "Selection--height-60";
44
+ };
45
+ export type SelectionSizeType = (typeof SelectionSize)[keyof typeof SelectionSize];
46
+ export declare const SelectionDropdownMode: {
47
+ PLAIN: string;
48
+ };
49
+ export type SelectionModeType = (typeof SelectionMode)[keyof typeof SelectionMode];
50
+ /**
51
+ * Selection Props
52
+ */
53
+ export interface ISelection {
54
+ /** Allows children */
55
+ children?: React.ReactNode;
56
+ /** Provides a custom class name to the container of this component */
57
+ className?: string;
58
+ /** Props to apply directly to the container div of this component */
59
+ containerProps?: React.HTMLProps<HTMLDivElement>;
60
+ /**
61
+ * This causes the selection to display a customized dropdown menu. This
62
+ * essentially bypasses any "options" provided and will NOT manage any of the
63
+ * values or callbacks.
64
+ *
65
+ * You can pass a <Dropdown> component to this prop, or you can pass a
66
+ * component with a <Dropdown> as it's top level container and has a
67
+ * containerProps: IDropdown prop.
68
+ */
69
+ customDropdown?: React.ReactNode;
70
+ /** Optional decal to be injected on the left of displayed value */
71
+ decal?: React.ReactNode;
72
+ /**
73
+ * When true, the drop arrow decal will render up instead of down
74
+ */
75
+ decalUp?: boolean;
76
+ /** The initial displayed value within the selection menu */
77
+ defaultValue?: any;
78
+ /** Set to true to render this component as disabled and eliminate handlers */
79
+ disabled?: boolean;
80
+ /**
81
+ * Set this to force a displayed value instead of the user selected value.
82
+ * NOTE: This sets the display WITHOUT affecting the selection value in any
83
+ * way.
84
+ */
85
+ displayValue?: React.ReactNode;
86
+ /**
87
+ * Provide this to force render the dropdown of the selection with custom
88
+ * bounds.
89
+ */
90
+ dropdownBounds?: DOMRectBounds;
91
+ /**
92
+ * Pads the dropdown reference box with the provided padding to allow for a
93
+ * larger dropdown region than just the width of the value box. This also
94
+ * makes it easier to gap the dropdown from the value box.
95
+ */
96
+ dropdownPadding?: DOMRectPadding;
97
+ /** Placeholder message if no value is selected yet */
98
+ placeholder?: string;
99
+ /** Error message */
100
+ error?: string;
101
+ /**
102
+ * Indicate if the dropdown should include a Quick Search.
103
+ *
104
+ * NOTE: The quick search will ONLY work on options that have a string for
105
+ * its label OR is provided a search term to compare against. A React Element
106
+ * can not be searched against.
107
+ */
108
+ hasSearch?: boolean;
109
+ /**
110
+ * Set to true to indicate there are more options that can be loaded in when
111
+ * the user scrolls to the bottom of the list.
112
+ */
113
+ hasMore?: boolean;
114
+ /**
115
+ * Set to true to indicate the dropdown items are being loaded.
116
+ */
117
+ isLoading?: boolean;
118
+ /**
119
+ * Displays a label adjacent to this dropdown.
120
+ */
121
+ label?: React.ReactNode;
122
+ /** Render mode of the selection input */
123
+ mode?: SelectionModeType;
124
+ /** The options to offer in the selection menu */
125
+ options: {
126
+ /**
127
+ * The label of the selection in the dropdown menu (and displayed as the
128
+ * value when selected).
129
+ */
130
+ label: React.ReactNode;
131
+ /** Value paired with the option */
132
+ value: any;
133
+ /** Provides the string the search compares against to find options */
134
+ search?: string;
135
+ /** When true, places a divider between this item and the next item */
136
+ divider?: boolean;
137
+ }[];
138
+ /** Indicates how many rows for the dropdown should render at max */
139
+ rowDisplayCount?: number;
140
+ /** Render size of the selection input */
141
+ size?: SelectionSizeType;
142
+ /** Props to configure the select element to help work with forms */
143
+ selectProps?: React.HTMLProps<HTMLSelectElement>;
144
+ /** When set, this does a controlled component pattern. */
145
+ value?: any;
146
+ /** A label to display next to the current displayed value */
147
+ valueLabel?: string;
148
+ /**
149
+ * Executes when the user changes the value of this field.
150
+ */
151
+ onChange?(value: any): void;
152
+ /**
153
+ * If hasMore is true and the user reaches the end of the list, this will
154
+ * execute to indicate more data needs to be loaded for the user to view.
155
+ */
156
+ onLoadMore?(options: this['options']): Promise<void>;
157
+ /**
158
+ * Executes when the user opens the dropdown.
159
+ */
160
+ onOpen?(): void;
161
+ /**
162
+ * Executes when the dropdown is closed. Return false to prevent the dropdown
163
+ * from closing.
164
+ */
165
+ onClose?(): boolean;
166
+ /**
167
+ * This executes when the user types in a search in the QuickSearch field.
168
+ */
169
+ onSearch?(searchTerm: string): void;
170
+ /**
171
+ * This hijacks the click event for the decal arrow. In some cases, the arrow
172
+ * may cause a differing behavior, such as sort direction control.
173
+ */
174
+ onArrowClick?(e: React.MouseEvent): void;
175
+ }
176
+ interface IState {
177
+ dropdownBounds: DOMRectBounds | null;
178
+ hovered: boolean;
179
+ focused: boolean;
180
+ internalValue: any;
181
+ /** The current search term applied to the selection. */
182
+ searchValue?: string;
183
+ }
184
+ /**
185
+ * @internal This component exist to keep Pagination component works as before.
186
+ * @deprecated Replace this component as new aligned with design will be added.
187
+ * Displays a dropdown where the user picks an item from a list of items
188
+ *
189
+ * When this component has children, it will skip rendering the header default
190
+ * header component and allow for a customized header which will be the
191
+ * children; HOWEVER, this will still provide the dropdown for rendering for a
192
+ * selection style dropdown menu that will render.
193
+ */
194
+ export declare class Selection extends React.Component<ISelection, IState> {
195
+ state: IState;
196
+ container: React.RefObject<HTMLDivElement>;
197
+ private selectRef;
198
+ private headerRef;
199
+ private searchRef;
200
+ private stopBlur;
201
+ private preventRefocus;
202
+ private willLoadMore;
203
+ private windowBlurred;
204
+ componentDidMount(): void;
205
+ componentDidUpdate(_prevProps: this['props'], prevState: IState): void;
206
+ componentWillUnmount(): void;
207
+ get valueLabel(): React.ReactNode | string;
208
+ get valueIndex(): number;
209
+ /**
210
+ * Retrieves the list of options that should be displayed. This takes into
211
+ * account the current search term the user may have entered.
212
+ */
213
+ get options(): ISelection['options'];
214
+ handleWindowBlur: () => void;
215
+ handleClick: (e: React.SyntheticEvent) => void;
216
+ handleOpen: () => void;
217
+ handleClose: () => void;
218
+ handleFocus: (e: FocusEvent) => void;
219
+ handleBlur: (e: FocusEvent) => void;
220
+ handleSelect: (option: ISelection['options'][0]) => () => void;
221
+ /**
222
+ * Handles the user's input into the Quick Search bar
223
+ */
224
+ handleSearch: (e: React.ChangeEvent) => void;
225
+ preventBlur: () => void;
226
+ handleRange: (_start: number, _end: number, _total: number, isEnd: boolean) => Promise<void>;
227
+ handleMouseDown: (e: React.MouseEvent) => void;
228
+ renderHeader(): JSX.Element;
229
+ renderDropdown(): JSX.Element | null | undefined;
230
+ renderSearch(): JSX.Element;
231
+ render(): JSX.Element;
232
+ }
233
+ export {};
@@ -0,0 +1,2 @@
1
+ export { default as BrTextField } from './text-field';
2
+ export type { BrTextFieldProps } from './text-field';
@@ -0,0 +1,138 @@
1
+ import { ChangeEventHandler, FocusEventHandler, ReactNode, TextareaHTMLAttributes } from 'react';
2
+ export interface BrTextFieldProps {
3
+ /**
4
+ * Automatically adjusts `textarea` height to match the length of the content within.
5
+ */
6
+ autoSize?: boolean;
7
+ /**
8
+ * Custom class name for the container of this component.
9
+ */
10
+ className?: string;
11
+ /**
12
+ * If `true`, the field will display a character counter.
13
+ * When the `maxCount` is also specified, the counter will be displayed like `x/y`,
14
+ * where `x` is the current number of characters entered and `y` is the maximum number of characters allowed.
15
+ */
16
+ counter?: boolean;
17
+ /**
18
+ * The default value. Use when the component is not controlled.
19
+ */
20
+ defaultValue?: string;
21
+ /**
22
+ * If `true`, the `field is disabled.
23
+ */
24
+ disabled?: boolean;
25
+ /**
26
+ * If `true`, the ``field` will indicate an error and set the `aria-invalid` attribute for `textarea`.
27
+ */
28
+ error?: boolean;
29
+ /**
30
+ * If `true`, the `field will take up the full width of its container.
31
+ */
32
+ fullWidth?: boolean;
33
+ /**
34
+ * The helper text content.
35
+ */
36
+ helperText?: ReactNode;
37
+ /**
38
+ * The `id` of the `textarea` element.
39
+ */
40
+ id?: string;
41
+ /**
42
+ * The label content.
43
+ */
44
+ label?: ReactNode;
45
+ /**
46
+ * The maximum number of characters allowed in the field to display in the counter.
47
+ * It doesn't prevent the user from typing more characters.
48
+ * To do that, set the `maxLength` attribute via `textareaProps`.
49
+ */
50
+ maxCount?: number;
51
+ /**
52
+ * The maximum number of text lines to grow when `autoSize` is `true`.
53
+ */
54
+ maxRows?: number;
55
+ /**
56
+ * The number of visible text lines for the field.
57
+ * When `autoSize` is `false`, this prop behaves as `rows` for `textarea`.
58
+ * @default 3
59
+ */
60
+ minRows?: number;
61
+ /**
62
+ * The `name` attribute of the `textarea` element.
63
+ */
64
+ name?: string;
65
+ /**
66
+ * Callback fired when the `textarea` is blurred.
67
+ */
68
+ onBlur?: FocusEventHandler<HTMLTextAreaElement>;
69
+ /**
70
+ * Callback fired when the value is changed.
71
+ */
72
+ onChange?: ChangeEventHandler<HTMLTextAreaElement>;
73
+ /**
74
+ * Callback fired when the `textarea` is focused.
75
+ */
76
+ onFocus?: FocusEventHandler<HTMLTextAreaElement>;
77
+ /**
78
+ * The short hint displayed in the `textarea` before the user enters a value.
79
+ */
80
+ placeholder?: string;
81
+ /**
82
+ * If `true`, the `textarea` will be read-only.
83
+ */
84
+ readOnly?: boolean;
85
+ /**
86
+ * If `true`, the `textarea` is required.
87
+ */
88
+ required?: boolean;
89
+ /**
90
+ * If `true`, the `textarea` will be manually resizable.
91
+ */
92
+ resizable?: boolean;
93
+ /**
94
+ * Attributes applied to the `textarea` element, check the link below for more details.
95
+ * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#Attributes
96
+ */
97
+ textareaProps?: TextareaHTMLAttributes<HTMLTextAreaElement>;
98
+ /**
99
+ * Tooltip to display when the field has label.
100
+ */
101
+ tooltip?: ReactNode;
102
+ /**
103
+ * The `value` of the `textarea` element, required for a controlled component.
104
+ */
105
+ value?: string;
106
+ }
107
+ /**
108
+ * The text field includes a label, a helper text and a textarea field where users can type multiline of text.
109
+ * The text field component typically appears in forms and dialogs.
110
+ *
111
+ * ## Usage
112
+ *
113
+ * ### Basic
114
+ *
115
+ * ```jsx
116
+ * import { BrTextField } from '@bloomreach/react-banana-ui';
117
+ *
118
+ * export default function TextFieldExample() {
119
+ * return <BrTextField placeholder="Placeholder..." />;
120
+ * }
121
+ * ```
122
+ *
123
+ * ### With label and helper text
124
+ * ```jsx
125
+ * import { BrTextField } from '@bloomreach/react-banana-ui';
126
+ *
127
+ * export default function TextFieldExample() {
128
+ * return (
129
+ * <BrTextField
130
+ * label="Field with a label"
131
+ * helperText="This is helper text"
132
+ * />
133
+ * );
134
+ * }
135
+ * ```
136
+ */
137
+ declare const BrTextField: import("react").ForwardRefExoticComponent<BrTextFieldProps & import("react").RefAttributes<HTMLTextAreaElement>>;
138
+ export default BrTextField;
@@ -0,0 +1,14 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { type Story } from './text-field.stories';
3
+ declare const meta: Meta;
4
+ export default meta;
5
+ export declare const DifferentStates: Story;
6
+ export declare const FieldsInRow: Story;
7
+ export declare const WithTooltip: Story;
8
+ export declare const CompleteField: Story;
9
+ export declare const Disabled: Story;
10
+ export declare const ReadOnly: Story;
11
+ export declare const CompleteFieldFullWidth: Story;
12
+ export declare const Controlled: Story;
13
+ export declare const SetError: Story;
14
+ export declare const WithCounter: Story;
@@ -0,0 +1,25 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import BrTextField from './text-field';
3
+ declare const meta: Meta<typeof BrTextField>;
4
+ export default meta;
5
+ export type Story = StoryObj<typeof BrTextField>;
6
+ export declare const Basic: Story;
7
+ export declare const WithLabel: Story;
8
+ export declare const WithTooltip: Story;
9
+ export declare const WithHelperText: Story;
10
+ export declare const WithCounter: Story;
11
+ export declare const CompleteField: Story;
12
+ export declare const Disabled: Story;
13
+ export declare const ReadOnly: Story;
14
+ export declare const Error: Story;
15
+ export declare const ManuallyResizable: Story;
16
+ export declare const MinRows: Story;
17
+ export declare const AutoSize: Story;
18
+ export declare const AutoSizeWithMaxRows: Story;
19
+ export declare const FullWidth: Story;
20
+ export declare const CompleteFieldFullWidth: Story;
21
+ export declare const Controlled: Story;
22
+ export declare const SetFocus: Story;
23
+ export declare const SetError: Story;
24
+ export declare const FieldsInColumn: Story;
25
+ export declare const FieldsInRow: Story;
@@ -0,0 +1 @@
1
+ export * from './inputs/internal';
@@ -0,0 +1,149 @@
1
+ import * as React from 'react';
2
+ import { DOMRectBounds, INestedChildren } from '../../../utils';
3
+ import { ScrollRegion } from '../../containers/scroll-region/scroll-region';
4
+ import { ScrollView } from '../../containers/scroll-view/scroll-view';
5
+ export interface IRowProps {
6
+ /** The index of the row to be rendered. */
7
+ index: number;
8
+ /** A fairly mandatory style object you should apply to the top level item */
9
+ style?: React.CSSProperties;
10
+ /** Indicates this row is the last element to be rendered */
11
+ isEnd: boolean;
12
+ /**
13
+ * Gives an opportunity to modify/override the style properties applied to
14
+ * the generated row item
15
+ */
16
+ rowStyle: React.CSSProperties;
17
+ }
18
+ export interface IListView extends INestedChildren<React.FunctionComponent<IRowProps>> {
19
+ /** When set, causes inertia to occur with touch swiping */
20
+ allowTouchInertia?: boolean;
21
+ /**
22
+ * A base size to associate with a list item. This helps give a realistic
23
+ * scroll range. Use a negative value to indicate the row should be measured
24
+ * to have a more dynamic row size. The absolute value of the negative value
25
+ * provided will be the minimum size of the row. Use the rowGap property to
26
+ * ensure spacing is provided between the row and it's next row if needed.
27
+ */
28
+ rowSize: number | ((index: number, isEnd: boolean) => number);
29
+ /**
30
+ * Place an incrementing number here. If the rows need recomputing due to a
31
+ * size change, this value should change.
32
+ */
33
+ rowUpdate?: any;
34
+ /** This is ONLY used for rows that get measured and automatically adjusted */
35
+ rowGap?: number;
36
+ /** Applies a class to the top level container of the pane */
37
+ className?: string;
38
+ /** Props to apply to the container of this component */
39
+ containerProps?: React.HTMLProps<HTMLDivElement>;
40
+ /** WHen the list is empty, this will render a centered label in it's place */
41
+ emptyLabel?: string;
42
+ /** Total number of items to render */
43
+ total: number;
44
+ /**
45
+ * Scrolls to the provided location a single time for the given value. A
46
+ * different value must be provided to trigger this a second time.
47
+ */
48
+ scrollToOnce?: number;
49
+ /**
50
+ * Sets how quick the scrollToOnce settles to the new position. Set to 1 to
51
+ * be essentially instant.
52
+ */
53
+ autoScrollDuration?: number;
54
+ /**
55
+ * This limits the list to only display so many rows before forcing scroll.
56
+ * NOTE: When rowSize is a method for varying row sizes, this will means
57
+ * rowDisplayCount will display the number of rows with THE LARGEST AVAILABLE
58
+ * SIZE. So, do not expect this to auto adjust for the varying row sizes
59
+ * available and be super magical.
60
+ */
61
+ rowDisplayCount?: number;
62
+ /**
63
+ * When set to true, this will render the list within a ScrollRegion instead
64
+ * of a ScrollView.
65
+ */
66
+ useScrollRegion?: boolean;
67
+ /** Executes when the range of visible rows has changed */
68
+ onRange?(start: number, end: number, total: number, isEnd: boolean): void;
69
+ /** Executes on scroll events */
70
+ onScroll?(scrollTop: number, maxScroll: number, viewBounds: DOMRectBounds, contentBounds: DOMRectBounds, isAutomated?: boolean): void;
71
+ }
72
+ /**
73
+ * @internal This component exist to keep Pagination component works as before.
74
+ * @deprecated Replace this component as new aligned with design will be added.
75
+ * This is a specialized scroll view that aids in recycling and rendering items
76
+ */
77
+ export declare class ListView extends React.Component<IListView> {
78
+ state: {
79
+ startIndex: number;
80
+ endIndex: number;
81
+ };
82
+ /**
83
+ * This is the scrollview container this list uses for creating the scroll
84
+ * space of the list.
85
+ */
86
+ container: React.RefObject<ScrollRegion | ScrollView>;
87
+ /**
88
+ * When rowSize is a method, this is used to store the calculated row values.
89
+ * This helps optimize the list to prevent deep looping in really large lists
90
+ * of items.
91
+ */
92
+ rowTop: number[];
93
+ /**
94
+ * This is a helper optimization. It stores the last row's most recently known
95
+ * height. This helps speed up determining the total scroll area of the list.
96
+ */
97
+ lastRowHeight: number;
98
+ /** This tracks what row size is the largest row size */
99
+ maxRowSize: number;
100
+ /**
101
+ * This is the last row update context utilized to compute the row tops. If
102
+ * this is different from the props rowUpdate value then it should trigger a
103
+ * recalculation.
104
+ */
105
+ rowUpdateContext?: any;
106
+ /** Used to indicate if this has been intiialized correctly yet. */
107
+ mounted: boolean;
108
+ /** Tracks the rows that will be measured when rendered */
109
+ willMeasure: Set<number>;
110
+ /** Tracks the rows that are rendered and need immediate measuring for re-rendering */
111
+ measuring: Map<number, React.RefObject<HTMLDivElement> | undefined>;
112
+ /**
113
+ * This is set when the list detects rows that are auto calculated. Some
114
+ * initialization behaviors need to be aware of this in order to perform the
115
+ * initial render properly.
116
+ */
117
+ hasAutoHeightRows: boolean;
118
+ /** Helps watch for mutations in the DOM to aid in dynamically sized rows */
119
+ observer?: MutationObserver;
120
+ constructor(props: IListView);
121
+ componentDidMount(): void;
122
+ /**
123
+ *
124
+ * We will use this to process incoming props to determine if the row tops
125
+ * should be recalculated.
126
+ */
127
+ shouldComponentUpdate(nextProps: IListView): boolean;
128
+ componentDidUpdate(): void;
129
+ componentWillUnmount(): void;
130
+ /**
131
+ * Gets the computed scroll height
132
+ */
133
+ get scrollHeight(): number;
134
+ /**
135
+ * Applies a calculated style object for the scroll view. This keeps the
136
+ * integrity of the containerProps
137
+ */
138
+ get scrollStyle(): React.CSSProperties;
139
+ handleResize: () => void;
140
+ handleScrollRegion: (scrollTop: [number, number], maxScroll: [number, number], viewBounds: DOMRectBounds, contentBounds: DOMRectBounds) => void;
141
+ handleScroll: (scrollTop: number, maxScroll: number, viewBounds: DOMRectBounds, contentBounds: DOMRectBounds) => void;
142
+ /**
143
+ * Resets all rowTop calculation assumptions and queues all rows for
144
+ * recalculating.
145
+ */
146
+ queueRemeasure(props: IListView): void;
147
+ private renderListItems;
148
+ render(): JSX.Element;
149
+ }
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+ export declare const LoaderSize: {
3
+ readonly NORMAL: "Loader--medium";
4
+ readonly SMALL: "Loader--small";
5
+ readonly TINY: "Loader--tiny";
6
+ };
7
+ export type LoaderSizeType = (typeof LoaderSize)[keyof typeof LoaderSize];
8
+ /**
9
+ * Loader Props
10
+ */
11
+ export interface ILoader {
12
+ /** Provides a custom class name to the container of this component */
13
+ className?: string;
14
+ /** Props to apply directly to the container div of this component */
15
+ containerProps?: React.HTMLProps<HTMLDivElement>;
16
+ /** Rendering sie of the standard loader */
17
+ size?: LoaderSizeType;
18
+ }
19
+ /**
20
+ * @internal This component exist to keep Pagination component works as before.
21
+ * @deprecated Replace this component as new aligned with design will be added.
22
+ * Displays the common loader found throughout the application.
23
+ */
24
+ export declare function Loader(props: ILoader): React.ReactElement;
@@ -0,0 +1 @@
1
+ export * from './pagination';
@@ -0,0 +1,2 @@
1
+ export { default as BrPagination } from './pagination';
2
+ export type { BrPaginationProps } from './pagination-types';
@@ -0,0 +1,4 @@
1
+ import { ItemsPerPageOptionsType } from './pagination-types';
2
+ export declare const DEFAULT_ITEMS_PER_PAGE_OPTIONS: ItemsPerPageOptionsType;
3
+ export declare const PAGINATION_PAGES_LIMIT = 9;
4
+ export declare const PAGINATION_PAGES_BUFFER = 2;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { BrPaginationProps } from './pagination-types';
3
+ declare const PaginationContext: import("react").Context<BrPaginationProps | null>;
4
+ export declare function usePaginationContext(): BrPaginationProps | null;
5
+ export default PaginationContext;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function BrPaginationItemsPerPageSelector(): JSX.Element | null;
@@ -0,0 +1,11 @@
1
+ import { PageNavigationItemsListType } from './pagination-types';
2
+ export declare const SEPARATOR = "...";
3
+ export declare function range(from: number, count: number): Array<number>;
4
+ /**
5
+ * This function generates the pagination navigation links and separators.
6
+ * The output is an array of numbers and separators
7
+ * Eg., [1, 2, 3, 4, 5, 6, 7, '...', 10]
8
+ * @param currentPageIndex, index of the current page
9
+ * @param totalPages, total number of pages
10
+ */
11
+ export declare function getNavItems(currentPageIndex: number, totalPages: number): PageNavigationItemsListType;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { PageNavigationItemType } from './pagination-types';
3
+ export interface BrPaginationNavigationItemProps {
4
+ value: PageNavigationItemType;
5
+ }
6
+ export declare function BrPaginationNavigationItem({ value }: BrPaginationNavigationItemProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function BrPaginationNavigation(): JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function BrPaginationSummary(): JSX.Element;