@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,44 @@
1
+ export declare const chalk: {
2
+ cyan: (...text: string[]) => string;
3
+ red: (...text: string[]) => string;
4
+ yellow: (...text: string[]) => string;
5
+ green: (...text: string[]) => string;
6
+ blue: (...text: string[]) => string;
7
+ magenta: (...text: string[]) => string;
8
+ cyanBright: (...text: string[]) => string;
9
+ redBright: (...text: string[]) => string;
10
+ yellowBright: (...text: string[]) => string;
11
+ greenBright: (...text: string[]) => string;
12
+ blueBright: (...text: string[]) => string;
13
+ magentaBright: (...text: string[]) => string;
14
+ whiteBright: (...text: string[]) => string;
15
+ gray: (...text: string[]) => string;
16
+ grey: (...text: string[]) => string;
17
+ white: (...text: string[]) => string;
18
+ black: (...text: string[]) => string;
19
+ blackBright: (...text: string[]) => string;
20
+ bgCyan: (...text: string[]) => string;
21
+ bgRed: (...text: string[]) => string;
22
+ bgYellow: (...text: string[]) => string;
23
+ bgGreen: (...text: string[]) => string;
24
+ bgBlue: (...text: string[]) => string;
25
+ bgMagenta: (...text: string[]) => string;
26
+ bgCyanBright: (...text: string[]) => string;
27
+ bgRedBright: (...text: string[]) => string;
28
+ bgYellowBright: (...text: string[]) => string;
29
+ bgGreenBright: (...text: string[]) => string;
30
+ bgBlueBright: (...text: string[]) => string;
31
+ bgMagentaBright: (...text: string[]) => string;
32
+ cyanBrightBold: (...text: string[]) => string;
33
+ redBrightBold: (...text: string[]) => string;
34
+ yellowBrightBold: (...text: string[]) => string;
35
+ greenBrightBold: (...text: string[]) => string;
36
+ blueBrightBold: (...text: string[]) => string;
37
+ magentaBrightBold: (...text: string[]) => string;
38
+ whiteBrightBold: (...text: string[]) => string;
39
+ grayBrightBold: (...text: string[]) => string;
40
+ greyBrightBold: (...text: string[]) => string;
41
+ whiteBold: (...text: string[]) => string;
42
+ blackBold: (...text: string[]) => string;
43
+ blackBrightBold: (...text: string[]) => string;
44
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Breaks an array into chunks
3
+ */
4
+ export declare function chunk<T>(array: T[], size: number): T[][];
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This takes several arguments and concatenates them into a single css class
3
+ * name compatible string. It will remove any falsy values and will trim any
4
+ * whitespace.
5
+ */
6
+ export declare function classnames(...str: (string | undefined | null)[]): string;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Padding values to grow a client rect during a client rect cloning operation.
3
+ */
4
+ export type DOMRectPadding = {
5
+ left?: number;
6
+ top?: number;
7
+ bottom?: number;
8
+ right?: number;
9
+ };
10
+ export type DOMRectBounds = {
11
+ x: number;
12
+ y: number;
13
+ top: number;
14
+ left: number;
15
+ bottom: number;
16
+ right: number;
17
+ width: number;
18
+ height: number;
19
+ };
20
+ /**
21
+ * ClientRects are a bit annoying to work around their immutability if needed.
22
+ * This properly makes a Mutable clone without altering the original (unless
23
+ * padding is specified to do a one time change of the bounds. The padding
24
+ * expands/contracts the box on the indicated sides).
25
+ */
26
+ export declare function cloneClientRect(box?: DOMRectBounds, padding?: DOMRectPadding): DOMRectBounds;
@@ -0,0 +1,5 @@
1
+ import { DOMRectBounds } from './clone-client-rect';
2
+ /**
3
+ * Compares two client rects against each other.
4
+ */
5
+ export declare function compareClientRect(a?: DOMRectBounds | null, b?: DOMRectBounds | null): boolean;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Coompares two sets to see if each set is equal to each other in size and in
3
+ * content.
4
+ */
5
+ export declare function compareSets(a: Set<any>, b: Set<any>): boolean;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * Applies a component's ref to multiple refs
4
+ */
5
+ export declare function composeRefs<T>(...refs: (React.Ref<T> | undefined)[]): (n: T) => void;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Parses the current cookies for this application into an easier to use JSON
3
+ * object.
4
+ *
5
+ * If a cookie is not passed as an argument, this will parse the cookie found on
6
+ * the document (in browser. In Node an argument is required).
7
+ */
8
+ export declare function cookieParser(manual?: string): Record<string, string>;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The intent of this function is to provide the most reliable means to copy
3
+ * text to the clipboard. This provides some attempts ranging far back for older
4
+ * browser support and even falls back to a window prompt if everything
5
+ * automatic fails.
6
+ */
7
+ export declare function copyTextToClipboard(text: string): Promise<void>;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Debounce decorator for methods
3
+ */
4
+ export declare function debounce(timeout: number | undefined, method: Function): () => void;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Creates a deeply cloned copy of the given object and handles circular
3
+ * references.
4
+ */
5
+ export declare function deepClone<T extends object>(obj: T): T;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Compares all properties deeply between two objects for equality.
3
+ */
4
+ export declare function deepEqual<T extends Record<keyof T, any>, U extends Record<keyof U, any>>(a: T, b: U, checked?: Set<any>): boolean;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This guarantees the modal root to exist at the body root level
3
+ */
4
+ export declare function ensureModalRoot(customId?: string): HTMLDivElement;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Analyzes a MouseEvent and calculates the mouse coordinates (relative to the element).
3
+ */
4
+ export declare function eventElementPosition(e: any, relative?: HTMLElement): [number, number];
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * This is a helper method to retrieve only a single type of child component
4
+ * from a React children list. This accounts for nested React fragments.
5
+ */
6
+ export declare function filterReactChildren<T>(type: T | T[], children: React.ReactNode, fail?: (child: React.ReactNode) => void): React.ReactNode[];
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ type GroupMap = Map<string | React.JSXElementConstructor<any> | React.JSXElementConstructor<any>, React.ReactNode[]>;
3
+ /**
4
+ * This is a helper method to seek out specific react children in the tree of
5
+ * children provided to this function. If a child is not of a type specified,
6
+ * this will search through it's children as well to see if any descendents
7
+ * match.
8
+ */
9
+ export declare function findReactChildren(types: (string | React.JSXElementConstructor<any>)[], children: React.ReactNode): GroupMap;
10
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * A non-recursive method to flatten an input array of items or list to a single
3
+ * array
4
+ */
5
+ export declare function flattenArray<T>(arr: (T | T[])[]): T[];
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Results for a fuzzyGroups query.
3
+ */
4
+ export interface IFuzzyGroupResult {
5
+ /**
6
+ * Groupings of the fuzzy results. You can concat the text values in the order
7
+ * of this array to reconstruct the original text term. isMatch will be true
8
+ * when the fuzzy search made a match for the group.
9
+ */
10
+ groups: {
11
+ isMatch: boolean;
12
+ text: string;
13
+ }[];
14
+ /**
15
+ * When true, the complete fuzzy search term is completely found within this
16
+ * result. Otherwise, only part or none of the fuzzy term was used.
17
+ */
18
+ fuzzyMatch: boolean;
19
+ /**
20
+ * Indicates how much of the fuzzy term was utilized in the result. A 1 means
21
+ * fuzzyMatch is true. Anything less than 1 is how much less it was used
22
+ * within the result.
23
+ */
24
+ fuzzyMatchStrength: number;
25
+ /**
26
+ * The original text the string was compared against
27
+ */
28
+ text: string;
29
+ /**
30
+ * The fuzzy term that was used to compare against the text.
31
+ */
32
+ fuzzy: string;
33
+ }
34
+ /**
35
+ * Typeguard for a fuzzy group result type
36
+ */
37
+ export declare function isFuzzyGroupResult(val: any): val is IFuzzyGroupResult;
38
+ /**
39
+ * Returns fuzzy text matching results.
40
+ *
41
+ * This will provide the fuzzy match with the characters in the list grouped by
42
+ * how they match with the fuzzy text.
43
+ *
44
+ * You combine all of the group text vaues to recreate the original text input.
45
+ * Use the isMatch to determine if the group is a part of a match from the fuzzy
46
+ * input.
47
+ *
48
+ * fuzzyMatch is true when the complete fuzzy term matches items within the
49
+ * text. It's false if only part of the fuzzy term or none of the term matches.
50
+ */
51
+ export declare function fuzzyGroups(text: string, fuzzy: string): IFuzzyGroupResult;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Simple function for getting a number up to a certain decimal. This properly
3
+ * returns a number to work with. This is for special formatting and should not
4
+ * be used for mathematical operations.
5
+ *
6
+ * This specifically rounds up the final decimal value.
7
+ */
8
+ export declare function getDecimal(value: number | string, decimalPlaces: number): number;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Errors can not have a type specified in the try catch clause. This makes
3
+ * outputting an error message safe and easier to type by doing validations
4
+ * necessary to get a standard error's error message or stack.
5
+ */
6
+ export declare function getErrorMessage(e: unknown): string;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Searches up the DOM tree for the first instance of a given class to be
3
+ * located. If none exists no result will be returned.
4
+ */
5
+ export declare function getFirstWithClass(element: HTMLElement, className: string): HTMLElement | null;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Mobx does NOT like retrieving out of bounds on an array. This is a warning
3
+ * safe way to do the retrieval.
4
+ */
5
+ export declare function getIndex<T>(list: T[], index: number): T | undefined;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Method for current and older browsers to detect current selected text.
3
+ */
4
+ export declare function getSelectedText(): string;
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * JSX types are created as strings or via function components or class
4
+ * components. There is an interesting issue with matching on "type" where two
5
+ * versions of the same library could cause matches to fail because they can
6
+ * bundle and point to two separate versions of the same component but be two
7
+ * different objects entirely.
8
+ *
9
+ * THUS: a more reliable matching approach is to check on the string "name" of
10
+ * the type as best as possible. This method normalizes retrieving the type name
11
+ * from the component by addressing the different component types that can be
12
+ * created and passed out.
13
+ */
14
+ export declare function getTypeName(type: string | React.ReactElement | React.ComponentType<any> | React.JSXElementConstructor<any> | Function): string;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ type GroupMap = Map<string | React.JSXElementConstructor<any> | React.JSXElementConstructor<any>, React.ReactNode[]>;
3
+ /**
4
+ * This is a helper method to sort a list of react children into groups, based
5
+ * on their type. This accounds for nested React Fragments.
6
+ */
7
+ export declare function groupReactChildren(children: React.ReactNode): GroupMap;
8
+ export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This checks to see if the specified child IS a child of the indicated parent.
3
+ */
4
+ export declare function hasChild(parent: HTMLElement | null, child: HTMLElement | null): boolean;
@@ -0,0 +1 @@
1
+ export { default as useHover } from './use-hover';
@@ -0,0 +1,10 @@
1
+ export default function useHover({ onEnter, onLeave, }?: {
2
+ onEnter?: () => void;
3
+ onLeave?: () => void;
4
+ } | undefined): {
5
+ hovered: boolean;
6
+ handlers: {
7
+ onMouseEnter: () => void;
8
+ onMouseLeave: () => void;
9
+ };
10
+ };
@@ -0,0 +1,43 @@
1
+ export * from './add-font';
2
+ export * from './after-render';
3
+ export * from './async-dom-render';
4
+ export * from './chalk';
5
+ export * from './chunk';
6
+ export * from './classnames';
7
+ export * from './clone-client-rect';
8
+ export * from './compare-client-rect';
9
+ export * from './compare-sets';
10
+ export * from './compose-refs';
11
+ export * from './cookie-parser';
12
+ export * from './copy-text-to-clipboard';
13
+ export * from './debounce';
14
+ export * from './deep-clone';
15
+ export * from './deep-equal';
16
+ export * from './ensure-modal-root';
17
+ export * from './event-element-position';
18
+ export * from './filter-react-children';
19
+ export * from './flatten-array';
20
+ export * from './fuzzy-groups';
21
+ export * from './get-decimal';
22
+ export * from './get-error-message';
23
+ export * from './get-first-with-class';
24
+ export * from './get-index';
25
+ export * from './get-selected-text';
26
+ export * from './group-react-children';
27
+ export * from './has-child';
28
+ export * from './make-buffer';
29
+ export * from './map-lookup-values';
30
+ export * from './no-op';
31
+ export * from './normalize-wheel';
32
+ export * from './promise-resolver';
33
+ export * from './relative-client-rect';
34
+ export * from './rush';
35
+ export * from './state-controls';
36
+ export * from './stop-all-propagation';
37
+ export * from './template';
38
+ export * from './to-digits';
39
+ export * from './to-query-params';
40
+ export * from './types';
41
+ export * from './url-join';
42
+ export * from './wait';
43
+ export * from './when';
@@ -0,0 +1,42 @@
1
+ import { IJson } from './types';
2
+ /**
3
+ * Retrieve a number from local storage. If the identifier is NOT a number OR is
4
+ * not a data type stored using this system it will merely return void.
5
+ */
6
+ export declare function getStorageNumber(id: string): number | undefined;
7
+ /**
8
+ * Retrieve a string from local storage.
9
+ */
10
+ export declare function getStorageString(id: string): string | undefined;
11
+ /**
12
+ * Retrieves a JSON object from local storage. If the identifier is NOT a JSON
13
+ * object, this will return void;
14
+ */
15
+ export declare function getStorageObject(id: string): IJson | undefined;
16
+ /**
17
+ * Retrieve a boolean from local storage. If the item does not exist this will
18
+ * return false.
19
+ */
20
+ export declare function getStorageBoolean(id: string): boolean;
21
+ /**
22
+ * Apply a number to local storage. If a different data type exists for the
23
+ * given identifier that is already set, this will return false. Set override to
24
+ * true to force setting the value regardless of previous value.
25
+ */
26
+ export declare function setStorageNumber(id: string, val: number, override?: boolean): boolean;
27
+ /**
28
+ * Apply a string from local storage. This will always override the current
29
+ * value regardless of type as it's not easy to determine if a string or a
30
+ * number was put into the
31
+ */
32
+ export declare function setStorageString(id: string, val: string, override?: boolean): boolean;
33
+ /**
34
+ * Applys a JSON object from local storage. If the identifier is NOT a JSON
35
+ * object, this will return void;
36
+ */
37
+ export declare function setStorageObject(id: string, val: IJson, override?: boolean): IJson | undefined;
38
+ /**
39
+ * Apply a boolean from local storage. If the item does not exist this will
40
+ * return false.
41
+ */
42
+ export declare function setStorageBoolean(id: string, val: boolean, override?: boolean): boolean;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * This static class provides a utility for creating an array buffer and mapping
3
+ * it's values to an initial value or simply create an initial array that is
4
+ * iterable.
5
+ *
6
+ * Purpose: This utility was created to get around issues with default JS means
7
+ * of generating arrays. All of the "native" means are incredibly slow and have
8
+ * issues with creating double instances of arrays or doing multiple iterations
9
+ * across the size of the array.
10
+ *
11
+ * This ensures a single allocation and a single iteration of the array which is
12
+ * optimal. Currently, these methods beat the normal native means significantly.
13
+ */
14
+ export declare class MakeBuffer {
15
+ /**
16
+ * Create and fill a buffer with intiial values.
17
+ */
18
+ static map<T>(size: number, map: (index: number) => T): T[];
19
+ /**
20
+ * Create a buffer with initial values applied.
21
+ */
22
+ static init<T>(size: number, initialValue: T): T[];
23
+ /**
24
+ * Creates a buffer that begins at the provided value and ends exclusive of
25
+ * the end value. You can provide a step value to increase the buffer by.
26
+ */
27
+ static range(start: number, end: number, step?: number): number[];
28
+ }
@@ -0,0 +1,65 @@
1
+ /**
2
+ * A special type that allows deep nesting of identifiers before ultimately
3
+ * landing on a specific type at the leaves of the object.
4
+ */
5
+ export type Lookup<T> = {
6
+ [key: string]: T | Lookup<T>;
7
+ };
8
+ /**
9
+ * A special type that allows deep nesting of identifiers before ultimately
10
+ * landing on a specific type at the leaves of the Map.
11
+ */
12
+ export type LookupMap<T> = Map<string, T | LookupMap<T>>;
13
+ /**
14
+ * Using a list of keys, this injects a value deeply into a Map object as a tree
15
+ * structure.
16
+ */
17
+ export declare function deepInjectMap<T>(key: string[], target: LookupMap<T>, value: T): LookupMap<T> | null;
18
+ /**
19
+ * Using a list of keys, this retrieves a value deeply from a Map object that
20
+ * has a tree structure.
21
+ */
22
+ export declare function deepGet<T>(key: string[], target: LookupMap<T>): LookupMap<T> | T | undefined;
23
+ export type LookupNode<T> = {
24
+ id: string[];
25
+ data: T[];
26
+ children: LookupNode<T>[];
27
+ };
28
+ /**
29
+ * Flattened node structure. This provides some indexing numbers to aid in
30
+ * looping through the flatened structure.
31
+ *
32
+ * next sibling and parent index is -1 when there is no sibling or parent.
33
+ *
34
+ * [depth, node, parent index, next sibling]
35
+ */
36
+ export type FlattenedLookupNode<T> = [
37
+ number,
38
+ T | LookupNode<T>,
39
+ number,
40
+ number
41
+ ][];
42
+ /**
43
+ * Converts a Map tree structure into Nodes.
44
+ *
45
+ * TODO: don't use recursion. This is the quick way to implement. This will
46
+ * crash on circular map dependency.
47
+ */
48
+ export declare function mapToNodes<T extends {
49
+ nodeId?: string[];
50
+ }>(map: LookupMap<T>, nodeComplete?: (node: LookupNode<T>) => void, id?: string[]): LookupNode<T>;
51
+ /**
52
+ * Flattens a LookupNode to a simple list with
53
+ */
54
+ export declare function flattenNodeData<T>(node: LookupNode<T>, depth?: number, parentIndex?: number, out?: FlattenedLookupNode<T>): FlattenedLookupNode<T>;
55
+ /**
56
+ * Converts an object Lookup to a LookupMap
57
+ *
58
+ * TODO: Don't use recursion
59
+ */
60
+ export declare function makeLookupMap<T>(lookup: Lookup<T>, typeGuard: (value: any) => value is T): LookupMap<T>;
61
+ /**
62
+ * A very tricky method that maps a Lookup (dictionary with nested keys) to
63
+ * values found in the leaves of the tree of the object.
64
+ */
65
+ export declare function mapLookupValues<T, U>(label: string, typeGuard: (value: T | Lookup<T>) => value is T, lookup: Lookup<T>, callback: (key: string[], value: T) => U): U[];
@@ -0,0 +1,4 @@
1
+ /**
2
+ * A method that does nothing. Useful for defaulting callbacks or placing stubs.
3
+ */
4
+ export declare const NOOP: () => void;
@@ -0,0 +1,38 @@
1
+ /**
2
+ BSD License
3
+
4
+ Copyright (c) 2015, Facebook, Inc. All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without modification,
7
+ are permitted provided that the following conditions are met:
8
+
9
+ * Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ * Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ * Neither the name Facebook nor the names of its contributors may be used to
17
+ endorse or promote products derived from this software without specific
18
+ prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
21
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
24
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
27
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
+ */
31
+ /**
32
+ * Simple, lightweight module assisting with the detection and context of
33
+ * Worker. Helps avoid circular dependencies and allows code to reason about
34
+ * whether or not they are in a Worker, even if they never include the main
35
+ * `ReactWorker` dependency.
36
+ */
37
+ declare var ExecutionEnvironment: any;
38
+ export default ExecutionEnvironment;