@muraldevkit/ui-toolkit 4.45.2-dev-jOrv.1 → 4.46.0-dev-YZUx.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 (496) hide show
  1. package/dist/components/avatar/MrlAvatar/MrlAvatar.d.ts +30 -0
  2. package/dist/components/avatar/MrlAvatar/index.d.ts +1 -0
  3. package/dist/components/avatar/MrlAvatarButton/MrlAvatarButton.d.ts +62 -0
  4. package/dist/components/avatar/MrlAvatarButton/index.d.ts +1 -0
  5. package/dist/components/avatar/index.d.ts +2 -0
  6. package/dist/components/badge/MrlBadge/MrlBadge.d.ts +26 -0
  7. package/dist/components/badge/MrlBadge/index.d.ts +1 -0
  8. package/dist/components/badge/MrlBadgeNotification/MrlBadgeNotification.d.ts +25 -0
  9. package/dist/components/badge/MrlBadgeNotification/index.d.ts +1 -0
  10. package/dist/components/badge/index.d.ts +2 -0
  11. package/dist/components/breadcrumb/MrlBreadcrumbItem/MrlBreadcrumbItem.d.ts +44 -0
  12. package/dist/components/breadcrumb/MrlBreadcrumbItem/index.d.ts +1 -0
  13. package/dist/components/breadcrumb/MrlBreadcrumbSeparator/MrlBreadcrumbSeparator.d.ts +7 -0
  14. package/dist/components/breadcrumb/MrlBreadcrumbSeparator/index.d.ts +1 -0
  15. package/dist/components/breadcrumb/MrlBreadcrumbs/MrlBreadcrumbs.d.ts +29 -0
  16. package/dist/components/breadcrumb/MrlBreadcrumbs/index.d.ts +1 -0
  17. package/dist/components/breadcrumb/index.d.ts +3 -0
  18. package/dist/components/button/MrlAnimatedIconButton/MrlAnimatedIconButton.d.ts +9 -0
  19. package/dist/components/button/MrlAnimatedIconButton/index.d.ts +1 -0
  20. package/dist/components/button/MrlButton/MrlButton.d.ts +105 -0
  21. package/dist/components/button/MrlButton/index.d.ts +1 -0
  22. package/dist/components/button/MrlIconButton/MrlIconButton.d.ts +112 -0
  23. package/dist/components/button/MrlIconButton/index.d.ts +1 -0
  24. package/dist/components/button/constants.d.ts +33 -0
  25. package/dist/components/button/helpers.d.ts +40 -0
  26. package/dist/components/button/index.d.ts +3 -0
  27. package/dist/components/callout/MrlCallout/MrlCallout.d.ts +34 -0
  28. package/dist/components/callout/MrlCallout/index.d.ts +1 -0
  29. package/dist/components/callout/index.d.ts +1 -0
  30. package/dist/components/container/MrlContainer/MrlContainer.d.ts +22 -0
  31. package/dist/components/container/MrlContainer/index.d.ts +1 -0
  32. package/dist/components/container/constants.d.ts +12 -0
  33. package/dist/components/container/index.d.ts +1 -0
  34. package/dist/components/divider/MrlDivider/MrlDivider.d.ts +45 -0
  35. package/dist/components/divider/MrlDivider/index.d.ts +1 -0
  36. package/dist/components/divider/constants.d.ts +18 -0
  37. package/dist/components/divider/index.d.ts +1 -0
  38. package/dist/components/empty/default/MrlEmpty.d.ts +15 -0
  39. package/dist/components/empty/default/index.d.ts +1 -0
  40. package/dist/components/empty/index.d.ts +2 -0
  41. package/dist/components/empty/large/MrlEmptyLarge.d.ts +15 -0
  42. package/dist/components/empty/large/index.d.ts +1 -0
  43. package/dist/components/error-boundary/MrlErrorBoundary.d.ts +62 -0
  44. package/dist/components/error-boundary/index.d.ts +1 -0
  45. package/dist/components/filter/MrlFilter/MrlFilter.d.ts +28 -0
  46. package/dist/components/filter/MrlFilter/index.d.ts +1 -0
  47. package/dist/components/filter/MrlFilterContext/MrlFilterContext.d.ts +34 -0
  48. package/dist/components/filter/MrlFilterContext/index.d.ts +1 -0
  49. package/dist/components/filter/MrlFilterItem/MrlFilterItem.d.ts +23 -0
  50. package/dist/components/filter/MrlFilterItem/index.d.ts +1 -0
  51. package/dist/components/filter/index.d.ts +3 -0
  52. package/dist/components/focus-trap/MrlFocusTrap/MrlFocusTrap.d.ts +30 -0
  53. package/dist/components/focus-trap/MrlFocusTrap/index.d.ts +1 -0
  54. package/dist/components/focus-trap/index.d.ts +1 -0
  55. package/dist/components/form/checkbox/MrlCheckbox/MrlCheckbox.d.ts +44 -0
  56. package/dist/components/form/checkbox/MrlCheckbox/index.d.ts +1 -0
  57. package/dist/components/form/checkbox/MrlCheckboxStandalone/MrlCheckboxStandalone.d.ts +22 -0
  58. package/dist/components/form/checkbox/MrlCheckboxStandalone/index.d.ts +1 -0
  59. package/dist/components/form/constants.d.ts +85 -0
  60. package/dist/components/form/date-picker/MrlDatePicker.d.ts +30 -0
  61. package/dist/components/form/date-picker/index.d.ts +1 -0
  62. package/dist/components/form/fieldset/MrlFieldset/MrlFieldset.d.ts +20 -0
  63. package/dist/components/form/fieldset/MrlFieldset/index.d.ts +1 -0
  64. package/dist/components/form/hooks/useActiveColor.d.ts +13 -0
  65. package/dist/components/form/hooks/useIsEditable.d.ts +28 -0
  66. package/dist/components/form/index.d.ts +19 -0
  67. package/dist/components/form/label/MrlLabel/MrlLabel.d.ts +32 -0
  68. package/dist/components/form/label/MrlLabel/index.d.ts +1 -0
  69. package/dist/components/form/label/MrlLabelWithDescription/MrlLabelWithDescription.d.ts +32 -0
  70. package/dist/components/form/label/MrlLabelWithDescription/index.d.ts +1 -0
  71. package/dist/components/form/legacy-select/MrlLegacySelect/MrlLegacySelect.d.ts +58 -0
  72. package/dist/components/form/legacy-select/MrlLegacySelect/index.d.ts +1 -0
  73. package/dist/components/form/legacy-select/MrlLegacySelectItem/MrlLegacySelectItem.d.ts +36 -0
  74. package/dist/components/form/legacy-select/MrlLegacySelectItem/index.d.ts +1 -0
  75. package/dist/components/form/legacy-select/MrlLegacySelectMenu/MrlLegacySelectMenu.d.ts +43 -0
  76. package/dist/components/form/legacy-select/MrlLegacySelectMenu/index.d.ts +1 -0
  77. package/dist/components/form/legacy-select/context/SelectContext.d.ts +68 -0
  78. package/dist/components/form/legacy-select/index.d.ts +9 -0
  79. package/dist/components/form/legacy-select/stories.data.d.ts +1 -0
  80. package/dist/components/form/radio/MrlRadioButton/MrlRadioButton.d.ts +48 -0
  81. package/dist/components/form/radio/MrlRadioButton/index.d.ts +1 -0
  82. package/dist/components/form/radio/MrlRadioButtonStandalone/MrlRadioButtonStandalone.d.ts +26 -0
  83. package/dist/components/form/radio/MrlRadioButtonStandalone/index.d.ts +1 -0
  84. package/dist/components/form/radio/MrlRadioGroup/MrlRadioGroup.d.ts +22 -0
  85. package/dist/components/form/radio/MrlRadioGroup/index.d.ts +1 -0
  86. package/dist/components/form/select/MrlCreatableSelect/MrlCreatableSelect.d.ts +27 -0
  87. package/dist/components/form/select/MrlCreatableSelect/index.d.ts +1 -0
  88. package/dist/components/form/select/MrlMultiCreatableSelect/MrlMultiCreatableSelect.d.ts +26 -0
  89. package/dist/components/form/select/MrlMultiCreatableSelect/index.d.ts +1 -0
  90. package/dist/components/form/select/MrlMultiSelect/MrlMultiSelect.d.ts +25 -0
  91. package/dist/components/form/select/MrlMultiSelect/index.d.ts +1 -0
  92. package/dist/components/form/select/MrlSelect/MrlSelect.d.ts +25 -0
  93. package/dist/components/form/select/MrlSelect/index.d.ts +1 -0
  94. package/dist/components/form/select/components/MrlSelectClearIndicator.d.ts +8 -0
  95. package/dist/components/form/select/components/MrlSelectContainer.d.ts +9 -0
  96. package/dist/components/form/select/components/MrlSelectDropdownIndicator.d.ts +9 -0
  97. package/dist/components/form/select/components/MrlSelectMultiValue.d.ts +10 -0
  98. package/dist/components/form/select/components/MrlSelectMultiValueRemove.d.ts +9 -0
  99. package/dist/components/form/select/components/MrlSelectOption.d.ts +9 -0
  100. package/dist/components/form/select/components/MrlSelectValueContainer.d.ts +9 -0
  101. package/dist/components/form/select/components/index.d.ts +7 -0
  102. package/dist/components/form/select/index.d.ts +6 -0
  103. package/dist/components/form/select/styles/default.d.ts +7 -0
  104. package/dist/components/form/select/styles/index.d.ts +9 -0
  105. package/dist/components/form/select/styles/inline.d.ts +7 -0
  106. package/dist/components/form/select/styles/inlineNoLabel.d.ts +7 -0
  107. package/dist/components/form/select/styles/inlineStacked.d.ts +7 -0
  108. package/dist/components/form/select/types.d.ts +5 -0
  109. package/dist/components/form/select/utils/closeMenuOnScroll.d.ts +10 -0
  110. package/dist/components/form/select/utils/index.d.ts +1 -0
  111. package/dist/components/form/switch/MrlSwitch/MrlSwitch.d.ts +15 -0
  112. package/dist/components/form/switch/MrlSwitch/index.d.ts +1 -0
  113. package/dist/components/form/switch/MrlSwitchStandalone/MrlSwitchStandalone.d.ts +10 -0
  114. package/dist/components/form/switch/MrlSwitchStandalone/index.d.ts +1 -0
  115. package/dist/components/form/switch/index.d.ts +2 -0
  116. package/dist/components/form/text-input/MrlEditableTextInput/MrlEditableTextInput.d.ts +35 -0
  117. package/dist/components/form/text-input/MrlEditableTextInput/MrlEditableTextInputRightIcon.d.ts +25 -0
  118. package/dist/components/form/text-input/MrlEditableTextInput/index.d.ts +1 -0
  119. package/dist/components/form/text-input/MrlTextInput/MrlTextInput.d.ts +44 -0
  120. package/dist/components/form/text-input/MrlTextInput/MrlTextInputRightIcon.d.ts +24 -0
  121. package/dist/components/form/text-input/MrlTextInput/index.d.ts +1 -0
  122. package/dist/components/form/textarea/MrlEditableTextarea/MrlEditableTextarea.d.ts +44 -0
  123. package/dist/components/form/textarea/MrlEditableTextarea/MrlEditableTextareaRightButton.d.ts +25 -0
  124. package/dist/components/form/textarea/MrlEditableTextarea/index.d.ts +1 -0
  125. package/dist/components/form/textarea/MrlTextarea/MrlTextarea.d.ts +39 -0
  126. package/dist/components/form/textarea/MrlTextarea/index.d.ts +1 -0
  127. package/dist/components/form/utils.d.ts +94 -0
  128. package/dist/components/grid/MrlCol/MrlCol.d.ts +12 -0
  129. package/dist/components/grid/MrlCol/index.d.ts +1 -0
  130. package/dist/components/grid/MrlGrid/MrlGrid.d.ts +11 -0
  131. package/dist/components/grid/MrlGrid/index.d.ts +1 -0
  132. package/dist/components/grid/MrlRow/MrlRow.d.ts +25 -0
  133. package/dist/components/grid/MrlRow/index.d.ts +1 -0
  134. package/dist/components/grid/constants.d.ts +50 -0
  135. package/dist/components/grid/index.d.ts +3 -0
  136. package/dist/components/index.d.ts +33 -0
  137. package/dist/components/layout/MrlMain/MrlMain.d.ts +9 -0
  138. package/dist/components/layout/MrlMain/index.d.ts +1 -0
  139. package/dist/components/layout/MrlPage/MrlPage.d.ts +11 -0
  140. package/dist/components/layout/MrlPage/index.d.ts +11 -0
  141. package/dist/components/layout/MrlSidebar/MrlSidebar.d.ts +22 -0
  142. package/dist/components/layout/MrlSidebar/demo/MrlSidebarDemo.d.ts +8 -0
  143. package/dist/components/layout/MrlSidebar/index.d.ts +1 -0
  144. package/dist/components/layout/MrlTopbar/MrlTopbar.d.ts +11 -0
  145. package/dist/components/layout/MrlTopbar/index.d.ts +1 -0
  146. package/dist/components/layout/constants.d.ts +16 -0
  147. package/dist/components/layout/context/LayoutContext.d.ts +24 -0
  148. package/dist/components/layout/error-page/MrlBrandColors/MrlBrandColors.d.ts +13 -0
  149. package/dist/components/layout/error-page/MrlBrandColors/index.d.ts +1 -0
  150. package/dist/components/layout/error-page/MrlErrorPage/MrlErrorPage.d.ts +28 -0
  151. package/dist/components/layout/error-page/MrlErrorPage/index.d.ts +1 -0
  152. package/dist/components/layout/error-page/index.d.ts +2 -0
  153. package/dist/components/layout/index.d.ts +5 -0
  154. package/dist/components/layout/utils.d.ts +15 -0
  155. package/dist/components/link/MrlLink/MrlLink.d.ts +49 -0
  156. package/dist/components/link/MrlLink/index.d.ts +1 -0
  157. package/dist/components/link/MrlLinkButton/MrlLinkButton.d.ts +54 -0
  158. package/dist/components/link/MrlLinkButton/index.d.ts +1 -0
  159. package/dist/components/link/constants.d.ts +24 -0
  160. package/dist/components/link/index.d.ts +2 -0
  161. package/dist/components/live-region/MrlLiveRegion/MrlLiveRegion.d.ts +19 -0
  162. package/dist/components/live-region/MrlLiveRegion/index.d.ts +1 -0
  163. package/dist/components/live-region/demo/LiveRegionDemo.d.ts +7 -0
  164. package/dist/components/live-region/index.d.ts +1 -0
  165. package/dist/components/loader/MrlProgressBar/MrlProgressBar.d.ts +10 -0
  166. package/dist/components/loader/MrlProgressBar/index.d.ts +1 -0
  167. package/dist/components/loader/MrlSpinner/MrlSpinner.d.ts +10 -0
  168. package/dist/components/loader/MrlSpinner/index.d.ts +1 -0
  169. package/dist/components/loader/constants.d.ts +88 -0
  170. package/dist/components/loader/index.d.ts +3 -0
  171. package/dist/components/menu/MrlMenu/MrlMenu.d.ts +130 -0
  172. package/dist/components/menu/MrlMenu/index.d.ts +1 -0
  173. package/dist/components/menu/MrlMenu/utilities.d.ts +29 -0
  174. package/dist/components/menu/MrlMenuGroup/MrlMenuGroup.d.ts +13 -0
  175. package/dist/components/menu/MrlMenuGroup/index.d.ts +1 -0
  176. package/dist/components/menu/MrlMenuItem/MrlMenuItem.d.ts +37 -0
  177. package/dist/components/menu/MrlMenuItem/index.d.ts +1 -0
  178. package/dist/components/menu/MrlMenuItemLink/MrlMenuItemLink.d.ts +37 -0
  179. package/dist/components/menu/MrlMenuItemLink/index.d.ts +1 -0
  180. package/dist/components/menu/constants.d.ts +38 -0
  181. package/dist/components/menu/context/MrlMenuContext.d.ts +20 -0
  182. package/dist/components/menu/demo/MenuByConfig.d.ts +7 -0
  183. package/dist/components/menu/demo/MenuWithPopover.d.ts +18 -0
  184. package/dist/components/menu/demo/MenuWithSubmenu.d.ts +18 -0
  185. package/dist/components/menu/demo/MenuWithTrigger.d.ts +19 -0
  186. package/dist/components/menu/hooks/useBrowserEdgeScroll.d.ts +22 -0
  187. package/dist/components/menu/hooks/useSubMenuElementPosition.d.ts +18 -0
  188. package/dist/components/menu/index.d.ts +5 -0
  189. package/dist/components/menu/utilities/flip-position.d.ts +8 -0
  190. package/dist/components/menu/utilities/get-scrollable-parent.d.ts +7 -0
  191. package/dist/components/modal/MrlModal/MrlModal.d.ts +50 -0
  192. package/dist/components/modal/MrlModal/index.d.ts +1 -0
  193. package/dist/components/modal/MrlModalContent/MrlModalContent.d.ts +20 -0
  194. package/dist/components/modal/MrlModalContent/index.d.ts +1 -0
  195. package/dist/components/modal/MrlModalContext/MrlModalContext.d.ts +17 -0
  196. package/dist/components/modal/MrlModalContext/index.d.ts +1 -0
  197. package/dist/components/modal/MrlModalFooter/MrlModalFooter.d.ts +21 -0
  198. package/dist/components/modal/MrlModalFooter/index.d.ts +1 -0
  199. package/dist/components/modal/MrlModalHeader/MrlModalHeader.d.ts +25 -0
  200. package/dist/components/modal/MrlModalHeader/index.d.ts +1 -0
  201. package/dist/components/modal/constants.d.ts +18 -0
  202. package/dist/components/modal/demo/ModalWithTriggerDemo.d.ts +15 -0
  203. package/dist/components/modal/index.d.ts +5 -0
  204. package/dist/components/navigation-sidebar/MrlSidebarNavGroup/MrlSidebarNavGroup.d.ts +25 -0
  205. package/dist/components/navigation-sidebar/MrlSidebarNavGroup/index.d.ts +1 -0
  206. package/dist/components/navigation-sidebar/MrlSidebarNavItem/MrlSidebarNavItem.d.ts +33 -0
  207. package/dist/components/navigation-sidebar/MrlSidebarNavItem/index.d.ts +1 -0
  208. package/dist/components/navigation-sidebar/index.d.ts +2 -0
  209. package/dist/components/notification/MrlBlockNotification/MrlBlockNotification.d.ts +100 -0
  210. package/dist/components/notification/MrlBlockNotification/index.d.ts +1 -0
  211. package/dist/components/notification/MrlInlineMessage/MrlInlineMessage.d.ts +40 -0
  212. package/dist/components/notification/MrlInlineMessage/index.d.ts +1 -0
  213. package/dist/components/notification/MrlToast/MrlToast.d.ts +45 -0
  214. package/dist/components/notification/MrlToast/index.d.ts +1 -0
  215. package/dist/components/notification/constants.d.ts +26 -0
  216. package/dist/components/notification/index.d.ts +3 -0
  217. package/dist/components/pagination/MrlPagination/MrlPagination.d.ts +19 -0
  218. package/dist/components/pagination/MrlPagination/index.d.ts +1 -0
  219. package/dist/components/pagination/MrlPaginationButton/MrlPaginationButton.d.ts +30 -0
  220. package/dist/components/pagination/MrlPaginationButton/index.d.ts +1 -0
  221. package/dist/components/pagination/MrlPaginationText/MrlPaginationText.d.ts +23 -0
  222. package/dist/components/pagination/MrlPaginationText/index.d.ts +1 -0
  223. package/dist/components/pagination/constants.d.ts +1 -0
  224. package/dist/components/pagination/index.d.ts +3 -0
  225. package/dist/components/panel/MrlPanel/MrlPanel.d.ts +53 -0
  226. package/dist/components/panel/MrlPanel/index.d.ts +1 -0
  227. package/dist/components/panel/MrlPanelContext/MrlPanelContext.d.ts +16 -0
  228. package/dist/components/panel/MrlPanelContext/index.d.ts +1 -0
  229. package/dist/components/panel/MrlPanelFooter/MrlPanelFooter.d.ts +22 -0
  230. package/dist/components/panel/MrlPanelFooter/index.d.ts +1 -0
  231. package/dist/components/panel/MrlPanelStickyHeader/MrlPanelStickyHeader.d.ts +18 -0
  232. package/dist/components/panel/MrlPanelStickyHeader/index.d.ts +1 -0
  233. package/dist/components/panel/index.d.ts +3 -0
  234. package/dist/components/popover/MrlPopover/MrlPopover.d.ts +131 -0
  235. package/dist/components/popover/MrlPopover/context/MrlPopoverContext.d.ts +20 -0
  236. package/dist/components/popover/MrlPopover/hooks/use-mrl-popover-event-handlers.d.ts +32 -0
  237. package/dist/components/popover/MrlPopover/index.d.ts +2 -0
  238. package/dist/components/popover/MrlPopover/utilities/get-data-point.d.ts +9 -0
  239. package/dist/components/popover/MrlPopover/utilities/get-offset.d.ts +9 -0
  240. package/dist/components/popover/MrlPopover/utilities/index.d.ts +2 -0
  241. package/dist/components/popover/demo/PopoverWithIconButton.d.ts +21 -0
  242. package/dist/components/popover/demo/PopoverWithSelect.d.ts +24 -0
  243. package/dist/components/popover/demo/PopoverWithTrigger.d.ts +24 -0
  244. package/dist/components/popover/index.d.ts +1 -0
  245. package/dist/components/portal/MrlPortal.d.ts +20 -0
  246. package/dist/components/portal/index.d.ts +1 -0
  247. package/dist/components/rovingTabindex/MrlRovingTabindex/MrlRovingTabindex.d.ts +127 -0
  248. package/dist/components/rovingTabindex/MrlRovingTabindex/index.d.ts +1 -0
  249. package/dist/components/rovingTabindex/index.d.ts +1 -0
  250. package/dist/components/skeleton/MrlSkeleton/MrlSkeleton.d.ts +20 -0
  251. package/dist/components/skeleton/MrlSkeleton/index.d.ts +1 -0
  252. package/dist/components/skeleton/MrlSkeletonText/MrlSkeletonText.d.ts +22 -0
  253. package/dist/components/skeleton/MrlSkeletonText/index.d.ts +1 -0
  254. package/dist/components/skeleton/index.d.ts +2 -0
  255. package/dist/components/svg/MrlSvg/MrlSvg.d.ts +31 -0
  256. package/dist/components/svg/MrlSvg/index.d.ts +1 -0
  257. package/dist/components/svg/MrlSvgAnimate/MrlSvgAnimate.d.ts +51 -0
  258. package/dist/components/svg/MrlSvgAnimate/index.d.ts +1 -0
  259. package/dist/components/svg/config.d.ts +112 -0
  260. package/dist/components/svg/constants.d.ts +36 -0
  261. package/dist/components/svg/index.d.ts +3 -0
  262. package/dist/components/table/MrlSmartTable/MrlSmartTable.d.ts +216 -0
  263. package/dist/components/table/MrlSmartTable/index.d.ts +1 -0
  264. package/dist/components/table/MrlTable/MrlTable.d.ts +17 -0
  265. package/dist/components/table/MrlTable/index.d.ts +1 -0
  266. package/dist/components/table/MrlTableBody/MrlTableBody.d.ts +17 -0
  267. package/dist/components/table/MrlTableBody/index.d.ts +1 -0
  268. package/dist/components/table/MrlTableCell/MrlTableCell.d.ts +26 -0
  269. package/dist/components/table/MrlTableCell/index.d.ts +1 -0
  270. package/dist/components/table/MrlTableColumn/MrlTableColumn.d.ts +26 -0
  271. package/dist/components/table/MrlTableColumn/index.d.ts +1 -0
  272. package/dist/components/table/MrlTableEmptyState/MrlTableEmptyState.d.ts +15 -0
  273. package/dist/components/table/MrlTableEmptyState/index.d.ts +1 -0
  274. package/dist/components/table/MrlTableHeader/MrlTableHeader.d.ts +17 -0
  275. package/dist/components/table/MrlTableHeader/index.d.ts +1 -0
  276. package/dist/components/table/MrlTableRow/MrlTableRow.d.ts +26 -0
  277. package/dist/components/table/MrlTableRow/index.d.ts +1 -0
  278. package/dist/components/table/constants.d.ts +22 -0
  279. package/dist/components/table/fixtures.d.ts +94 -0
  280. package/dist/components/table/index.d.ts +9 -0
  281. package/dist/components/table/utils.d.ts +43 -0
  282. package/dist/components/tabs/MrlTab/MrlTab.d.ts +21 -0
  283. package/dist/components/tabs/MrlTab/index.d.ts +1 -0
  284. package/dist/components/tabs/MrlTabContent/MrlTabContent.d.ts +9 -0
  285. package/dist/components/tabs/MrlTabContent/index.d.ts +1 -0
  286. package/dist/components/tabs/MrlTabGroup/MrlTabGroup.d.ts +10 -0
  287. package/dist/components/tabs/MrlTabGroup/index.d.ts +1 -0
  288. package/dist/components/tabs/MrlTabLink/MrlTabLink.d.ts +28 -0
  289. package/dist/components/tabs/MrlTabLink/index.d.ts +1 -0
  290. package/dist/components/tabs/MrlTabs/MrlTabs.d.ts +21 -0
  291. package/dist/components/tabs/MrlTabs/index.d.ts +1 -0
  292. package/dist/components/tabs/constants.d.ts +1 -0
  293. package/dist/components/tabs/index.d.ts +5 -0
  294. package/dist/components/text/MrlText/MrlText.d.ts +26 -0
  295. package/dist/components/text/MrlText/index.d.ts +1 -0
  296. package/dist/components/text/MrlTextHeading/MrlTextHeading.d.ts +39 -0
  297. package/dist/components/text/MrlTextHeading/index.d.ts +1 -0
  298. package/dist/components/text/constants.d.ts +40 -0
  299. package/dist/components/text/index.d.ts +2 -0
  300. package/dist/components/toast/index.d.ts +1 -0
  301. package/dist/components/toolbar/MrlToolbar/MrlToolbar.d.ts +38 -0
  302. package/dist/components/toolbar/MrlToolbar/index.d.ts +1 -0
  303. package/dist/components/toolbar/MrlToolbarButton/MrlToolbarButton.d.ts +58 -0
  304. package/dist/components/toolbar/MrlToolbarButton/index.d.ts +1 -0
  305. package/dist/components/toolbar/MrlToolbarItem/MrlToolbarItem.d.ts +30 -0
  306. package/dist/components/toolbar/MrlToolbarItem/index.d.ts +1 -0
  307. package/dist/components/toolbar/index.d.ts +3 -0
  308. package/dist/components/tooltip/MrlTooltip/MrlTooltip.d.ts +58 -0
  309. package/dist/components/tooltip/MrlTooltip/index.d.ts +1 -0
  310. package/dist/components/tooltip/MrlTooltip/utilities.d.ts +8 -0
  311. package/dist/components/tooltip/MrlTooltipContent/MrlTooltipContent.d.ts +43 -0
  312. package/dist/components/tooltip/MrlTooltipContent/index.d.ts +1 -0
  313. package/dist/components/tooltip/constants.d.ts +27 -0
  314. package/dist/components/tooltip/index.d.ts +2 -0
  315. package/dist/components/tooltip/useTooltipPosition/constants.d.ts +9 -0
  316. package/dist/components/tooltip/useTooltipPosition/index.d.ts +14 -0
  317. package/dist/components/tooltip/useTooltipPosition/utilities.d.ts +19 -0
  318. package/dist/components/tooltip/utils.d.ts +9 -0
  319. package/dist/contexts/MrlTabContext/MrlTabContext.d.ts +6 -0
  320. package/dist/contexts/MrlTabContext/index.d.ts +1 -0
  321. package/dist/contexts/index.d.ts +1 -0
  322. package/dist/hooks/index.d.ts +4 -0
  323. package/dist/hooks/useAutoClose/index.d.ts +1 -0
  324. package/dist/hooks/useAutoClose/useAutoClose.d.ts +11 -0
  325. package/dist/hooks/useBreakpoint/index.d.ts +15 -0
  326. package/dist/hooks/useBreakpoint/useBreakpointDemo.d.ts +7 -0
  327. package/dist/hooks/useClickOutside/index.d.ts +11 -0
  328. package/dist/hooks/useCoordinate/index.d.ts +18 -0
  329. package/dist/hooks/useElementDimensions/index.d.ts +16 -0
  330. package/dist/hooks/useScrollbarInfo/index.d.ts +13 -0
  331. package/dist/hooks/useTriggerPosition/constants.d.ts +11 -0
  332. package/dist/hooks/useTriggerPosition/index.d.ts +17 -0
  333. package/dist/hooks/useTriggerPosition/utilities.d.ts +12 -0
  334. package/dist/index.d.ts +4 -0
  335. package/dist/index.js +2 -0
  336. package/dist/index.js.LICENSE.txt +8 -0
  337. package/dist/src/components/layout/error-page/MrlBrandColors/MrlBrandColors.functions.scss +12 -0
  338. package/dist/styles/MrlAvatar/module.scss +97 -0
  339. package/dist/styles/MrlAvatarButton/module.scss +41 -0
  340. package/dist/styles/MrlBadge/module.scss +39 -0
  341. package/dist/styles/MrlBadgeNotification/module.scss +38 -0
  342. package/dist/styles/MrlBlockNotification/global.scss +19 -0
  343. package/dist/styles/MrlBlockNotification/mixins.scss +20 -0
  344. package/dist/styles/MrlBlockNotification/module.scss +79 -0
  345. package/dist/styles/MrlBlockNotification/variables.scss +66 -0
  346. package/dist/styles/MrlBrandColors/mixins.scss +9 -0
  347. package/dist/styles/MrlBrandColors/module.scss +24 -0
  348. package/dist/styles/MrlBrandColors/variables.scss +89 -0
  349. package/dist/styles/MrlBreadcrumbItem/module.scss +41 -0
  350. package/dist/styles/MrlBreadcrumbs/module.scss +7 -0
  351. package/dist/styles/MrlButton/global.scss +69 -0
  352. package/dist/styles/MrlCallout/module.scss +50 -0
  353. package/dist/styles/MrlCheckbox/global.scss +18 -0
  354. package/dist/styles/MrlCheckbox/module.scss +16 -0
  355. package/dist/styles/MrlCheckbox/variables.scss +10 -0
  356. package/dist/styles/MrlCheckboxStandalone/global.scss +18 -0
  357. package/dist/styles/MrlCheckboxStandalone/module.scss +42 -0
  358. package/dist/styles/MrlCheckboxStandalone/variables.scss +27 -0
  359. package/dist/styles/MrlContainer/module.scss +32 -0
  360. package/dist/styles/MrlDivider/module.scss +22 -0
  361. package/dist/styles/MrlEditableTextInput/module.scss +105 -0
  362. package/dist/styles/MrlEditableTextInput/variables.scss +5 -0
  363. package/dist/styles/MrlEditableTextarea/global.scss +24 -0
  364. package/dist/styles/MrlEditableTextarea/module.scss +78 -0
  365. package/dist/styles/MrlErrorPage/module.scss +43 -0
  366. package/dist/styles/MrlFieldset/module.scss +2 -0
  367. package/dist/styles/MrlFilter/module.scss +5 -0
  368. package/dist/styles/MrlFilterItem/module.scss +53 -0
  369. package/dist/styles/MrlInlineMessage/module.scss +45 -0
  370. package/dist/styles/MrlLabel/module.scss +25 -0
  371. package/dist/styles/MrlLabel/variables.scss +17 -0
  372. package/dist/styles/MrlLabelWithDescription/module.scss +54 -0
  373. package/dist/styles/MrlLabelWithDescription/variables.scss +14 -0
  374. package/dist/styles/MrlLegacySelect/module.scss +80 -0
  375. package/dist/styles/MrlLegacySelect/variables.scss +10 -0
  376. package/dist/styles/MrlLegacySelectItem/module.scss +39 -0
  377. package/dist/styles/MrlLegacySelectItem/variables.scss +26 -0
  378. package/dist/styles/MrlLegacySelectMenu/module.scss +30 -0
  379. package/dist/styles/MrlLegacySelectMenu/variables.scss +4 -0
  380. package/dist/styles/MrlLink/module.scss +68 -0
  381. package/dist/styles/MrlLinkButton/global.scss +4 -0
  382. package/dist/styles/MrlMain/module.scss +26 -0
  383. package/dist/styles/MrlMain/variables.scss +5 -0
  384. package/dist/styles/MrlMenu/module.scss +45 -0
  385. package/dist/styles/MrlMenuGroup/module.scss +3 -0
  386. package/dist/styles/MrlMenuItem/module.scss +118 -0
  387. package/dist/styles/MrlModal/global.scss +37 -0
  388. package/dist/styles/MrlModal/mixins.scss +23 -0
  389. package/dist/styles/MrlModal/module.scss +55 -0
  390. package/dist/styles/MrlModal/variables.scss +26 -0
  391. package/dist/styles/MrlModalContent/module.scss +19 -0
  392. package/dist/styles/MrlModalFooter/global.scss +16 -0
  393. package/dist/styles/MrlModalFooter/module.scss +41 -0
  394. package/dist/styles/MrlModalFooter/variables.scss +5 -0
  395. package/dist/styles/MrlModalHeader/module.scss +21 -0
  396. package/dist/styles/MrlPage/module.scss +13 -0
  397. package/dist/styles/MrlPagination/module.scss +29 -0
  398. package/dist/styles/MrlPanel/module.scss +61 -0
  399. package/dist/styles/MrlPanelFooter/module.scss +12 -0
  400. package/dist/styles/MrlPanelStickyHeader/module.scss +14 -0
  401. package/dist/styles/MrlPopover/module.scss +112 -0
  402. package/dist/styles/MrlPopover/variables.scss +16 -0
  403. package/dist/styles/MrlProgressBar/module.scss +57 -0
  404. package/dist/styles/MrlRadioButton/module.scss +8 -0
  405. package/dist/styles/MrlRadioButtonStandalone/global.scss +16 -0
  406. package/dist/styles/MrlRadioButtonStandalone/module.scss +59 -0
  407. package/dist/styles/MrlRadioButtonStandalone/variables.scss +31 -0
  408. package/dist/styles/MrlSidebar/module.scss +65 -0
  409. package/dist/styles/MrlSidebarNavGroup/module.scss +8 -0
  410. package/dist/styles/MrlSidebarNavItem/module.scss +47 -0
  411. package/dist/styles/MrlSkeleton/module.scss +9 -0
  412. package/dist/styles/MrlSkeletonText/module.scss +24 -0
  413. package/dist/styles/MrlSmartTable/module.scss +40 -0
  414. package/dist/styles/MrlSpinner/module.scss +109 -0
  415. package/dist/styles/MrlSvg/module.scss +24 -0
  416. package/dist/styles/MrlSvgAnimate/module.scss +13 -0
  417. package/dist/styles/MrlSwitch/module.scss +10 -0
  418. package/dist/styles/MrlSwitchStandalone/module.scss +84 -0
  419. package/dist/styles/MrlTab/module.scss +117 -0
  420. package/dist/styles/MrlTabContent/module.scss +7 -0
  421. package/dist/styles/MrlTabGroup/module.scss +66 -0
  422. package/dist/styles/MrlTable/module.scss +5 -0
  423. package/dist/styles/MrlTableBody/module.scss +2 -0
  424. package/dist/styles/MrlTableCell/module.scss +10 -0
  425. package/dist/styles/MrlTableColumn/module.scss +27 -0
  426. package/dist/styles/MrlTableEmptyState/module.scss +14 -0
  427. package/dist/styles/MrlTableHeader/module.scss +7 -0
  428. package/dist/styles/MrlTableRow/module.scss +17 -0
  429. package/dist/styles/MrlText/module.scss +8 -0
  430. package/dist/styles/MrlText/variables.scss +14 -0
  431. package/dist/styles/MrlTextHeading/module.scss +24 -0
  432. package/dist/styles/MrlTextHeading/variables.scss +40 -0
  433. package/dist/styles/MrlTextInput/module.scss +70 -0
  434. package/dist/styles/MrlTextInput/variables.scss +5 -0
  435. package/dist/styles/MrlTextarea/global.scss +12 -0
  436. package/dist/styles/MrlTextarea/module.scss +18 -0
  437. package/dist/styles/MrlToast/module.scss +114 -0
  438. package/dist/styles/MrlToolbar/module.scss +53 -0
  439. package/dist/styles/MrlToolbarButton/module.scss +3 -0
  440. package/dist/styles/MrlTooltipContent/global.scss +146 -0
  441. package/dist/styles/MrlTooltipContent/variables.scss +17 -0
  442. package/dist/styles/MrlTopbar/module.scss +12 -0
  443. package/dist/styles/a11y-helpers/global.scss +5 -0
  444. package/dist/styles/a11y-helpers/mixins.scss +11 -0
  445. package/dist/styles/button/global.scss +38 -0
  446. package/dist/styles/button/mixins.scss +42 -0
  447. package/dist/styles/button/variables.scss +164 -0
  448. package/dist/styles/components/module.scss +6 -0
  449. package/dist/styles/container/variables.scss +10 -0
  450. package/dist/styles/date-picker/module.scss +38 -0
  451. package/dist/styles/demo/module.scss +11 -0
  452. package/dist/styles/divider/mixins.scss +32 -0
  453. package/dist/styles/divider/variables.scss +22 -0
  454. package/dist/styles/empty/module.scss +18 -0
  455. package/dist/styles/form/global.scss +89 -0
  456. package/dist/styles/form/variables.scss +58 -0
  457. package/dist/styles/grid/global.scss +6 -0
  458. package/dist/styles/grid/variables.scss +26 -0
  459. package/dist/styles/layout/variables.scss +3 -0
  460. package/dist/styles/modal/variables.scss +32 -0
  461. package/dist/styles/skeleton/mixins.scss +44 -0
  462. package/dist/styles/skeleton/variables.scss +2 -0
  463. package/dist/styles/svg/variables.scss +17 -0
  464. package/dist/styles/table/global.scss +78 -0
  465. package/dist/styles/table/variables.scss +30 -0
  466. package/dist/styles/tooltip/mixins.scss +8 -0
  467. package/dist/styles.css +99 -0
  468. package/dist/utils/checkInvalidAttributes/index.d.ts +7 -0
  469. package/dist/utils/commonProps/index.d.ts +20 -0
  470. package/dist/utils/dataQa/index.d.ts +6 -0
  471. package/dist/utils/findAdjacentInteractiveElement/findAdjacentInteractiveElement.d.ts +8 -0
  472. package/dist/utils/findAdjacentInteractiveElement/index.d.ts +1 -0
  473. package/dist/utils/frameDebounce/index.d.ts +22 -0
  474. package/dist/utils/getCamelCase/getCamelCase.d.ts +7 -0
  475. package/dist/utils/getCamelCase/getCamelCase.test.d.ts +1 -0
  476. package/dist/utils/getCamelCase/index.d.ts +2 -0
  477. package/dist/utils/getScrollableContainer/getScrollableContainer.d.ts +7 -0
  478. package/dist/utils/hasHorizontalScroll/hasHorizontalScroll.d.ts +11 -0
  479. package/dist/utils/hasScrollContent/hasScrollContent.d.ts +11 -0
  480. package/dist/utils/index.d.ts +11 -0
  481. package/dist/utils/isElementScrollable/index.d.ts +7 -0
  482. package/dist/utils/isImagePath/index.d.ts +7 -0
  483. package/dist/utils/isImageUri/index.d.ts +7 -0
  484. package/dist/utils/isObject/index.d.ts +2 -0
  485. package/dist/utils/isObject/isObject.d.ts +14 -0
  486. package/dist/utils/isObject/isObject.test.d.ts +1 -0
  487. package/dist/utils/isTouch/index.d.ts +6 -0
  488. package/dist/utils/layers/index.d.ts +48 -0
  489. package/dist/utils/noop/index.d.ts +7 -0
  490. package/dist/utils/preventDefault/index.d.ts +1 -0
  491. package/dist/utils/preventDefault/preventDefault.d.ts +6 -0
  492. package/dist/utils/setAttributes/index.d.ts +2 -0
  493. package/dist/utils/setAttributes/setAttributes.d.ts +35 -0
  494. package/dist/utils/setAttributes/setAttributes.test.d.ts +1 -0
  495. package/dist/utils/trapFocus/index.d.ts +24 -0
  496. package/package.json +1 -1
@@ -0,0 +1,30 @@
1
+ import * as React from 'react';
2
+ type AvatarKind = (typeof avatarValues.kind)[number];
3
+ type AvatarSize = (typeof avatarValues.size)[number];
4
+ interface avatarDefaults {
5
+ kind: AvatarKind;
6
+ size: AvatarSize;
7
+ avatarColor: string;
8
+ }
9
+ export interface MrlAvatarPropTypes {
10
+ alt?: string;
11
+ dataQa?: string;
12
+ image?: React.ReactNode | string;
13
+ kind?: AvatarKind;
14
+ name?: string;
15
+ showBorder?: boolean;
16
+ size?: AvatarSize;
17
+ avatarColor?: string;
18
+ }
19
+ declare const avatarValues: {
20
+ kind: readonly ["default", "facilitator", "lock"];
21
+ size: readonly ["xsmall", "small", "medium", "large"];
22
+ };
23
+ export declare const defaultAvatarValues: avatarDefaults;
24
+ /**
25
+ * Renders an avatar component
26
+ * @param {MrlAvatarPropTypes} props the props for your MrlAvatar
27
+ * @returns {React.ReactElement} an avatar containing the props you pass
28
+ */
29
+ export declare const MrlAvatar: ({ alt, avatarColor, dataQa, kind, image, name, showBorder, size, ...rest }: MrlAvatarPropTypes) => React.ReactElement;
30
+ export {};
@@ -0,0 +1 @@
1
+ export * from './MrlAvatar';
@@ -0,0 +1,62 @@
1
+ import * as React from 'react';
2
+ import { MrlAvatarPropTypes, MrlButtonState, TooltipConfig } from '../../';
3
+ import { ToggleAria } from '../../button/constants';
4
+ export interface MrlAvatarButtonPropTypes extends MrlAvatarPropTypes, React.HTMLAttributes<HTMLButtonElement> {
5
+ /**
6
+ * An optional class name to add to button wrapping the MrlAvatar.
7
+ */
8
+ buttonClassName?: string;
9
+ /**
10
+ * An optional boolean prop to include the button in roving tabindex
11
+ */
12
+ includeInRoving?: boolean;
13
+ /**
14
+ * Selected state variant when the button is a Toggle Button. Setting this prop
15
+ * informs the component that this is a toggle button and to add that functionality
16
+ */
17
+ isToggleButton?: boolean;
18
+ /**
19
+ * An optional aria-label to apply to the button element
20
+ */
21
+ label?: string;
22
+ /**
23
+ * Displays a spinner in the button to indicate some action is in progress.
24
+ */
25
+ loading?: boolean;
26
+ /**
27
+ * Text for the spinner when the button is in a loading state.
28
+ */
29
+ loadingText?: string;
30
+ /**
31
+ * onClick event for the button.
32
+ */
33
+ onClick?: (e: React.SyntheticEvent<HTMLButtonElement>) => void;
34
+ /**
35
+ * Changes the state of the button based on user permissions or actions.
36
+ */
37
+ state?: MrlButtonState;
38
+ /**
39
+ * Determines which aria setup to use for various toggle/selected styles.
40
+ * pressed - use for an traditional “toggle button”
41
+ * selected - use for tabs and custom select options
42
+ * expanded - use for menus, panels, and popovers
43
+ * checked - use for custom [radiobutton](https://www.w3.org/WAI/ARIA/apg/patterns/radiobutton/#wai-aria-roles-states-and-properties-16)
44
+ * or [checkbox](https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/#wai-aria-roles-states-and-properties-5) inputs
45
+ */
46
+ toggleAria?: ToggleAria;
47
+ /**
48
+ * Tooltip configuration for the button
49
+ */
50
+ tooltip?: TooltipConfig;
51
+ /**
52
+ * Reference to the DOM element that is the MrlAvatarButton
53
+ */
54
+ triggerRef?: React.RefObject<HTMLButtonElement>;
55
+ }
56
+ /**
57
+ * Renders an avatar button
58
+ *
59
+ * @param {MrlAvatarButtonPropTypes} props the props for your MrlAvatarButton
60
+ * @returns {React.ReactElement} an avatar button containing the props you pass
61
+ */
62
+ export declare const MrlAvatarButton: ({ buttonClassName, dataQa, id, includeInRoving, isToggleButton, label, loading, loadingText, onClick, size, state, toggleAria, tooltip, triggerRef, ...rest }: MrlAvatarButtonPropTypes) => React.ReactElement;
@@ -0,0 +1 @@
1
+ export * from './MrlAvatarButton';
@@ -0,0 +1,2 @@
1
+ export * from './MrlAvatar';
2
+ export * from './MrlAvatarButton';
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ import { MrlComponentProps } from '../../../utils';
3
+ export type MrlBadgeKinds = 'default' | 'error' | 'info' | 'success' | 'warning';
4
+ export interface MrlBadgeProps extends Omit<MrlComponentProps, 'style' | 'attrs'>, React.ComponentProps<'div'> {
5
+ className?: string;
6
+ /**
7
+ * Pass a custom icon to any badge kind.
8
+ * Should be passed as an MrlSvg JSX Element.
9
+ */
10
+ icon?: JSX.Element;
11
+ kind?: MrlBadgeKinds;
12
+ /**
13
+ * Displays a default icon for non-default badge kinds.
14
+ * To have an icon in `kind="default"` you must use the `icon` prop.
15
+ */
16
+ showIcon?: boolean;
17
+ text: string;
18
+ }
19
+ /**
20
+ * Badges are a common user interface element that
21
+ * can be used to draw attention to content.
22
+ *
23
+ * @param props - component props
24
+ * @returns a MrlBadge React component.
25
+ */
26
+ export declare const MrlBadge: ({ className, icon, kind, showIcon, text, ...remainingProps }: MrlBadgeProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './MrlBadge';
@@ -0,0 +1,25 @@
1
+ import * as React from 'react';
2
+ import { MrlComponentProps } from '../../../utils';
3
+ export type MrlBadgeNotificationKinds = 'general' | 'info';
4
+ export interface MrlBadgeNotificationProps extends Omit<MrlComponentProps, 'style' | 'attrs'>, React.ComponentProps<'div'> {
5
+ className?: string;
6
+ kind?: MrlBadgeNotificationKinds;
7
+ /**
8
+ * A string of text to tell screen reader users what type of notification this is.
9
+ * Defaults to 'notification'.
10
+ */
11
+ notificationText?: string;
12
+ /**
13
+ * Used to turn a notification from a hint to numeric.
14
+ * NOTE: Must pass a `number`, not a `string`.
15
+ */
16
+ number?: number;
17
+ }
18
+ /**
19
+ * Badge notifications are a common user interface element that can be used to
20
+ * draw attention to new or unread content, alerts, or updates.
21
+ *
22
+ * @param props - component props
23
+ * @returns a MrlBadgeNotification React component.
24
+ */
25
+ export declare const MrlBadgeNotification: ({ className, kind, notificationText, number, ...remainingProps }: MrlBadgeNotificationProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './MrlBadgeNotification';
@@ -0,0 +1,2 @@
1
+ export * from './MrlBadge';
2
+ export * from './MrlBadgeNotification';
@@ -0,0 +1,44 @@
1
+ import * as React from 'react';
2
+ import { Link } from 'react-router-dom';
3
+ export type BreadcrumbItemLink = {
4
+ text: string;
5
+ link: string;
6
+ } | {
7
+ text: string;
8
+ link: React.ComponentPropsWithoutRef<typeof Link>;
9
+ };
10
+ export type BreadcrumbItem = {
11
+ isSelected?: boolean;
12
+ hasSeparator?: boolean;
13
+ isTruncated?: boolean;
14
+ } & BreadcrumbItemLink;
15
+ export interface MrlBreadcrumbItemProps extends React.ComponentPropsWithRef<'li'> {
16
+ /**
17
+ * Children to be rendered within the component
18
+ */
19
+ children?: React.ReactNode;
20
+ /**
21
+ * Determines whether a separator should be displayed after this breadcrumb item.
22
+ */
23
+ hasSeparator?: BreadcrumbItem['hasSeparator'];
24
+ /**
25
+ * Indicates whether this breadcrumb item represents the currently selected or
26
+ * active page.
27
+ */
28
+ isSelected?: BreadcrumbItem['isSelected'];
29
+ /**
30
+ * Specifies whether the text content of this breadcrumb item should be truncated
31
+ * if it exceeds a certain width. This is useful for handling long page titles
32
+ * or labels within the breadcrumb.
33
+ */
34
+ isTruncated?: boolean;
35
+ link?: BreadcrumbItem['link'];
36
+ text?: BreadcrumbItem['text'];
37
+ }
38
+ /**
39
+ * MrlBreadcrumbItem component.
40
+ *
41
+ * @param props The MrlBreadcrumbItem component properties.
42
+ * @returns The MrlBreadcrumbItem component.
43
+ */
44
+ export declare function MrlBreadcrumbItem(props: MrlBreadcrumbItemProps): JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './MrlBreadcrumbItem';
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * MrlBreadcrumbSeparator component.
4
+ *
5
+ * @returns The MrlBreadcrumbSeparator component.
6
+ */
7
+ export declare function MrlBreadcrumbSeparator(): JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './MrlBreadcrumbSeparator';
@@ -0,0 +1,29 @@
1
+ import * as React from 'react';
2
+ import { BreadcrumbItem } from '../MrlBreadcrumbItem';
3
+ /**
4
+ * Props for the MrlBreadcrumbs component.
5
+ */
6
+ export interface MrlBreadcrumbsProps extends React.ComponentPropsWithRef<'nav'> {
7
+ /**
8
+ * A string value used for data-qa attribute.
9
+ */
10
+ ['data-qa']?: string;
11
+ /**
12
+ * The aria-label of the nav element
13
+ */
14
+ ['aria-label']: string;
15
+ /**
16
+ * This prop accepts an array of objects, where each object represents a single breadcrumb item.
17
+ * It's used to define the structure, content, and behavior of the breadcrumbs displayed in the component.
18
+ * The `link` prop could be either the props of a react-router-dom link or a string. If a string is provided it will
19
+ * render a regular link.
20
+ */
21
+ items: BreadcrumbItem[];
22
+ }
23
+ /**
24
+ * MrlBreadcrumbs component.
25
+ *
26
+ * @param props The MrlBreadcrumbs component properties.
27
+ * @returns The MrlBreadcrumbs component.
28
+ */
29
+ export declare function MrlBreadcrumbs(props: MrlBreadcrumbsProps): JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './MrlBreadcrumbs';
@@ -0,0 +1,3 @@
1
+ export * from './MrlBreadcrumbItem';
2
+ export * from './MrlBreadcrumbs';
3
+ export * from './MrlBreadcrumbSeparator';
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import { MrlSvgAnimateProps } from '../../svg/MrlSvgAnimate/MrlSvgAnimate';
3
+ import { MrlIconButtonProps } from '../MrlIconButton/MrlIconButton';
4
+ import './MrlAnimatedIconButton.scss';
5
+ interface MrlAnimatedIconButtonProps extends Omit<MrlIconButtonProps, 'icon'> {
6
+ icon: MrlSvgAnimateProps;
7
+ }
8
+ export declare const MrlAnimatedIconButton: React.ForwardRefExoticComponent<Omit<MrlAnimatedIconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
9
+ export {};
@@ -0,0 +1 @@
1
+ export { MrlAnimatedIconButton } from './MrlAnimatedIconButton';
@@ -0,0 +1,105 @@
1
+ import * as React from 'react';
2
+ import { allowedButtonValues, MrlButtonKind, MrlButtonSize, ToggleAria, IconPosition } from '../constants';
3
+ import { MrlTooltipAnchor, MrlTooltipPosition } from '../../';
4
+ import { AttrsObject, MrlComponentProps } from '../../../utils';
5
+ import './MrlButton.global.scss';
6
+ export type MrlButtonState = (typeof allowedButtonValues.states)[number];
7
+ export type ToggleStyle = (typeof allowedButtonValues.toggleStyles)[number];
8
+ export interface TooltipConfig {
9
+ /**
10
+ * The text to display in the tooltip
11
+ */
12
+ text: string;
13
+ /**
14
+ * The position of the tooltip relative to the button
15
+ */
16
+ position?: MrlTooltipPosition;
17
+ /**
18
+ * The anchor of the tooltip relative to the button
19
+ */
20
+ anchor?: MrlTooltipAnchor;
21
+ /**
22
+ * The data-qa attribute for the tooltip
23
+ */
24
+ dataQa?: string;
25
+ }
26
+ export interface MrlButtonProps extends Omit<MrlComponentProps, 'style'>, React.ComponentProps<'button'> {
27
+ /**
28
+ * Applies additional HTML attributes to the button element.
29
+ *
30
+ * @deprecated
31
+ */
32
+ attrs?: AttrsObject;
33
+ /**
34
+ * Allow developers to add badge to buttons.
35
+ */
36
+ badge?: React.ReactElement;
37
+ /**
38
+ * @deprecated - Use state="disabled" or "selected-disabled" or "skeleton" instead.
39
+ * Allow developers to change the disabled state based on user interactions.
40
+ */
41
+ disabled?: boolean;
42
+ /**
43
+ * Allows developers the ability to disable built in event listeners so they can manage user
44
+ * interactions from the application.
45
+ */
46
+ disableEvents?: boolean;
47
+ /**
48
+ * Allow developers to add icon to buttons.
49
+ */
50
+ icon?: React.ReactElement;
51
+ /**
52
+ * Allows developers to right-align an icon within a button.
53
+ */
54
+ iconPos?: IconPosition;
55
+ /**
56
+ * Changes the visual emphasis of the button.
57
+ */
58
+ kind?: MrlButtonKind;
59
+ /**
60
+ * Displays a spinner in the button to indicate some action is in progress.
61
+ */
62
+ loading?: boolean;
63
+ /**
64
+ * Text for the spinner when the button is in a loading state.
65
+ */
66
+ loadingText?: string;
67
+ /**
68
+ * onClick event for the button.
69
+ */
70
+ onClick?: (e: React.SyntheticEvent<HTMLButtonElement>) => void;
71
+ /**
72
+ * Changes the size of the button so it can scale with its surrounding context.
73
+ */
74
+ size?: MrlButtonSize;
75
+ /**
76
+ * Changes the state of the button based on user permissions or actions.
77
+ */
78
+ state?: MrlButtonState;
79
+ /**
80
+ * The textual label describing the button's purpose/action.
81
+ * Icon buttons require a text label to ensure accessibility.
82
+ */
83
+ text: string;
84
+ /**
85
+ * Determines which aria setup to use for various toggle/selected styles.
86
+ * pressed - use for an traditional “toggle button”
87
+ * selected - use for tabs and custom select options
88
+ * expanded - use for menus, panels, and popovers
89
+ * checked - use for custom [radiobutton](https://www.w3.org/WAI/ARIA/apg/patterns/radiobutton/#wai-aria-roles-states-and-properties-16)
90
+ * or [checkbox](https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/#wai-aria-roles-states-and-properties-5) inputs
91
+ */
92
+ toggleAria?: ToggleAria;
93
+ /**
94
+ * Tooltip configuration for the button
95
+ */
96
+ tooltip?: TooltipConfig;
97
+ /**
98
+ * Selected state variant when the button is a Toggle Button. The visual styles
99
+ * are also impacted by the "kind" prop. Toggle buttons are only supported
100
+ * when "kind" is set to either "ghost" or "ghost-inverse". Setting this prop
101
+ * informs the component that this is a toggle button and to add that functionality
102
+ */
103
+ toggleStyle?: ToggleStyle;
104
+ }
105
+ export declare const MrlButton: React.ForwardRefExoticComponent<Omit<MrlButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1 @@
1
+ export * from './MrlButton';
@@ -0,0 +1,112 @@
1
+ import * as React from 'react';
2
+ import { MrlButtonKind, MrlButtonSize, MrlGhostIconButtonSize, ToggleAria } from '../constants';
3
+ import { AttrsObject, MrlComponentProps } from '../../../utils';
4
+ import { MrlTooltipAnchor, MrlTooltipPosition, MrlTooltipVariant } from '../../tooltip/constants';
5
+ import { MrlButtonState, ToggleStyle } from '../../';
6
+ import './MrlIconButton.scss';
7
+ export interface MrlIconButtonProps extends Omit<MrlComponentProps, 'style'>, React.ComponentProps<'button'> {
8
+ /**
9
+ * Applies additional HTML attributes to the button element.
10
+ * @deprecated
11
+ */
12
+ attrs?: AttrsObject;
13
+ /**
14
+ * Allow developers to add badge to buttons.
15
+ */
16
+ badge?: React.ReactElement;
17
+ /** Additional class to add to the button */
18
+ className?: string;
19
+ /**
20
+ * Allows developers the ability to disable built in event listeners so they can manage user
21
+ * interactions from the application.
22
+ */
23
+ disableEvents?: boolean;
24
+ /** Whether to disable the tooltip hover action that keeps it open */
25
+ disableTooltipHover?: boolean;
26
+ /**
27
+ * The icon that will be rendered.
28
+ */
29
+ icon: React.ReactElement;
30
+ /**
31
+ * Changes the visual emphasis of the button.
32
+ *
33
+ * Note: size="xsmall" should ONLY be used with a kind of `ghost` or `ghost-inverse`.
34
+ */
35
+ kind?: MrlButtonKind;
36
+ /**
37
+ * Displays a spinner in the button to indicate some action is in progress.
38
+ */
39
+ loading?: boolean;
40
+ /**
41
+ * Text for the spinner when the button is in a loading state.
42
+ */
43
+ loadingText?: string;
44
+ /**
45
+ * onClick event for the button.
46
+ */
47
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
48
+ /**
49
+ * onKeyDown event for the button.
50
+ */
51
+ onKeyUp?: (e: React.KeyboardEvent<HTMLButtonElement>) => void;
52
+ /**
53
+ * onMouseUp event for the button.
54
+ */
55
+ onMouseUp?: (e: React.MouseEvent<HTMLButtonElement>) => void;
56
+ /**
57
+ * The placement of the tooltip in relation to the button.
58
+ */
59
+ position?: MrlTooltipPosition;
60
+ /**
61
+ * Changes the size of the button so it can scale with its surrounding context.
62
+ *
63
+ * Note: size="xsmall" should ONLY be used with a kind of `ghost` or `ghost-inverse`.
64
+ */
65
+ size?: MrlButtonSize | MrlGhostIconButtonSize;
66
+ /**
67
+ * Changes the state of the button based on user permissions or actions.
68
+ *
69
+ * Note: The Basic Button does not fully support state="disabled", use
70
+ * the 'disabled' prop instead. Since it does not support state="disabled",
71
+ * it also doesn't not support state="selected-disabled".
72
+ */
73
+ state?: MrlButtonState;
74
+ /**
75
+ * The textual label describing the button's purpose/action.
76
+ * Icon buttons require a text label to ensure accessibility.
77
+ */
78
+ text: string;
79
+ /**
80
+ * The arrow position of the tooltip in relation to the button.
81
+ */
82
+ tipAnchor?: MrlTooltipAnchor;
83
+ /**
84
+ * Determines which aria setup to use for various toggle/selected styles.
85
+ * pressed - use for an traditional “toggle button”
86
+ * selected - use for tabs and custom select options
87
+ * expanded - use for menus, panels, and popovers
88
+ * checked - use for custom [radiobutton](https://www.w3.org/WAI/ARIA/apg/patterns/radiobutton/#wai-aria-roles-states-and-properties-16)
89
+ * or [checkbox](https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/#wai-aria-roles-states-and-properties-5) inputs
90
+ */
91
+ toggleAria?: ToggleAria;
92
+ /**
93
+ * Selected state variant when the button is a Toggle Button. The visual styles
94
+ * are also impacted by the "kind" prop. Toggle buttons are only supported
95
+ * when "kind" is set to either "ghost" or "ghost-inverse". Setting this prop
96
+ * informs the component that this is a toggle button and to add that functionality
97
+ */
98
+ toggleStyle?: ToggleStyle;
99
+ /** tooltip varient kind */
100
+ tooltipKind?: MrlTooltipVariant;
101
+ /**
102
+ * An optional class name to add to the tooltip wrapper.
103
+ */
104
+ wrapperClassName?: string;
105
+ /**
106
+ * Controlled state that overrides the internal state management.
107
+ * When provided, this takes precedence over the `state` prop and allows
108
+ * the parent component to fully control the icon button's state.
109
+ */
110
+ controlledState?: MrlButtonState;
111
+ }
112
+ export declare const MrlIconButton: React.ForwardRefExoticComponent<Omit<MrlIconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1 @@
1
+ export * from './MrlIconButton';
@@ -0,0 +1,33 @@
1
+ import { MrlButtonState } from './MrlButton';
2
+ export declare const allowedButtonValues: {
3
+ iconPositions: readonly ["before", "after"];
4
+ kinds: readonly ["secondary", "primary", "ghost", "inverse", "ghost-inverse", "primary-native", "secondary-native"];
5
+ sizes: readonly ["medium", "small", "large"];
6
+ states: readonly ["default", "disabled", "selected", "selected-disabled", "skeleton"];
7
+ toggleAriaTypes: readonly ["expanded", "pressed", "selected", "checked"];
8
+ toggleStyles: readonly ["default", "secondary"];
9
+ types: readonly ["button", "reset", "submit"];
10
+ };
11
+ export type MrlButtonType = (typeof allowedButtonValues.types)[number];
12
+ export type MrlButtonKind = (typeof allowedButtonValues.kinds)[number];
13
+ export type MrlButtonSize = (typeof allowedButtonValues.sizes)[number];
14
+ export type ToggleAria = (typeof allowedButtonValues.toggleAriaTypes)[number];
15
+ export type IconPosition = (typeof allowedButtonValues.iconPositions)[number];
16
+ export type MrlGhostIconButtonSize = (typeof allowedButtonValues.sizes)[number] | 'xsmall';
17
+ export interface ButtonDefaults {
18
+ attrs: {
19
+ [key: string]: unknown;
20
+ };
21
+ disabled: boolean;
22
+ iconPos: IconPosition;
23
+ kind: MrlButtonKind;
24
+ size: MrlButtonSize;
25
+ state: MrlButtonState;
26
+ text: string;
27
+ toggleAria: ToggleAria;
28
+ }
29
+ /**
30
+ * Default values for props on the Button component;
31
+ * Shared between the component and Storybook
32
+ */
33
+ export declare const buttonDefaults: ButtonDefaults;
@@ -0,0 +1,40 @@
1
+ import { MrlButtonState, ToggleStyle } from './MrlButton';
2
+ import { MrlButtonKind, MrlGhostIconButtonSize } from './constants';
3
+ import { SpinnerComponent } from '../loader/constants';
4
+ /**
5
+ * Determines what loader should be displayed in which types of buttons.
6
+ *
7
+ * @private
8
+ * @param {MrlButtonKind} [buttonKind] - the kind of the current button.
9
+ * @param {MrlGhostIconButtonSize} [buttonSize] - the size of the current button.
10
+ * @returns {SpinnerComponent} - an MrlSpinner element themed to the button.
11
+ */
12
+ export declare const _spinnerProps: (buttonKind: MrlButtonKind, buttonSize: MrlGhostIconButtonSize) => SpinnerComponent;
13
+ /**
14
+ * Determines if the button is disabled since multiple states represent disabled
15
+ *
16
+ * @private
17
+ * @param {MrlButtonState} [currentState] - the value of this.state from the component.
18
+ * @param {boolean} [isLoading] - if the button is loading
19
+ * @param {MrlButtonState} [enforcedState] - optionally pass in a state to check against.
20
+ * This is used for @Watch statements where this.state is not consistent.
21
+ * @returns {boolean} - if the button is disabled
22
+ */
23
+ export declare const _isDisabled: (currentState: MrlButtonState, isLoading: boolean, enforcedState?: MrlButtonState) => boolean;
24
+ /**
25
+ * Determines if the button is selected since multiple states represent selected
26
+ *
27
+ * @private
28
+ * @param {MrlButtonState} [currentState] - the value of this.state from the component.
29
+ * @param {MrlButtonState} [enforcedState] - optionally pass in a state to check against.
30
+ * This is used for @Watch statements where this.state is not consistent.
31
+ * @returns {boolean} - if the button is disabled
32
+ */
33
+ export declare const _isSelected: (currentState: MrlButtonState, enforcedState?: MrlButtonState) => boolean;
34
+ /**
35
+ * MrlIconButton and MrlAnimatedIconButton could behave as a toggle button if toggleStyle is 'default' or 'secondary'
36
+ *
37
+ * @param {ToggleStyle} toggleStyle type of toggle
38
+ * @returns {boolean} returns boolean if it's togglable
39
+ */
40
+ export declare const _isToggleButton: (toggleStyle: ToggleStyle) => boolean;
@@ -0,0 +1,3 @@
1
+ export * from './MrlAnimatedIconButton';
2
+ export * from './MrlButton';
3
+ export * from './MrlIconButton';
@@ -0,0 +1,34 @@
1
+ import * as React from 'react';
2
+ import { MrlPopoverProps } from '../../popover';
3
+ export type MrlCalloutPopoverProps = Omit<MrlPopoverProps, 'children' | 'actionState' | 'isSubMenu' | 'triggerRef' | 'kind'>;
4
+ interface MrlCalloutCTA {
5
+ onClick: () => void;
6
+ dataQa?: string;
7
+ text: string;
8
+ }
9
+ export type CalloutKind = 'primary' | 'secondary';
10
+ export interface MrlCalloutProps extends MrlCalloutPopoverProps {
11
+ /** a unique id that binds the callout content and the trigger for assistive technologies */
12
+ ariaControls?: string;
13
+ autoFocus?: boolean;
14
+ children: React.ReactElement;
15
+ disableClickOutside?: boolean;
16
+ description?: string | JSX.Element;
17
+ eyebrow?: string;
18
+ id?: string;
19
+ image?: JSX.Element;
20
+ kind?: CalloutKind;
21
+ renderWithPortal?: boolean;
22
+ show: boolean;
23
+ title?: string;
24
+ primaryCta?: MrlCalloutCTA;
25
+ secondaryCta?: MrlCalloutCTA;
26
+ }
27
+ /**
28
+ * MrlCallout component.
29
+ *
30
+ * @param props - The props.
31
+ * @returns {React.ReactElement} The MrlCallout component.
32
+ */
33
+ export declare const MrlCallout: ({ ariaControls, alignment, children, description, disableClickOutside, disableFocusTrap, eyebrow, hasCloseButton, image, kind, onOpen, onClose, point, position, primaryCta, secondaryCta, show, spacing, title, ...rest }: MrlCalloutProps) => React.ReactElement;
34
+ export {};
@@ -0,0 +1 @@
1
+ export * from './MrlCallout';
@@ -0,0 +1 @@
1
+ export * from './MrlCallout';
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ import { Kind } from '../constants';
3
+ import { MrlComponentProps } from '../../../utils';
4
+ export interface MrlContainerProps extends Omit<MrlComponentProps, 'style'>, React.ComponentProps<'div'> {
5
+ /** Children to be rendered within the component */
6
+ children: React.ReactNode;
7
+ className?: string;
8
+ /**
9
+ * Defines which color scheme to used based on the background color of the container.
10
+ * White/light backgrounds should use "default" and dark/saturated color backgrounds
11
+ * should use "inverse".
12
+ */
13
+ kind?: Kind;
14
+ }
15
+ /**
16
+ * Used to visually and group content and
17
+ * provide structure in layouts.
18
+ *
19
+ * @param props - component props
20
+ * @returns a MrlContainer React component.
21
+ */
22
+ export declare function MrlContainer({ children, className, kind, ...remainingProps }: MrlContainerProps): JSX.Element;
@@ -0,0 +1 @@
1
+ export { MrlContainer } from './MrlContainer';