@muraldevkit/ui-toolkit 4.79.1 → 4.80.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 (649) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/components/avatar/MrlAvatar/MrlAvatar.js.map +1 -1
  3. package/dist/cjs/components/avatar/MrlAvatar/MrlAvatar.module.scss.js +1 -1
  4. package/dist/cjs/components/avatar/MrlAvatarButton/MrlAvatarButton.module.scss.js +1 -1
  5. package/dist/cjs/components/badge/MrlBadge/MrlBadge.js.map +1 -1
  6. package/dist/cjs/components/badge/MrlBadge/MrlBadge.module.scss.js +1 -1
  7. package/dist/cjs/components/badge/MrlBadgeNotification/MrlBadgeNotification.js.map +1 -1
  8. package/dist/cjs/components/badge/MrlBadgeNotification/MrlBadgeNotification.module.scss.js +1 -1
  9. package/dist/cjs/components/breadcrumb/MrlBreadcrumbItem/MrlBreadcrumbItem.module.scss.js +1 -1
  10. package/dist/cjs/components/breadcrumb/MrlBreadcrumbs/MrlBreadcrumbs.module.scss.js +1 -1
  11. package/dist/cjs/components/button/MrlAnimatedIconButton/MrlAnimatedIconButton.js.map +1 -1
  12. package/dist/cjs/components/button/MrlProcessingButton/MrlProcessingButton.module.scss.js +1 -1
  13. package/dist/cjs/components/callout/MrlCallout/MrlCallout.js.map +1 -1
  14. package/dist/cjs/components/callout/MrlCallout/MrlCallout.module.scss.js +1 -1
  15. package/dist/cjs/components/container/MrlContainer/MrlContainer.module.scss.js +1 -1
  16. package/dist/cjs/components/divider/MrlDivider/MrlDivider.module.scss.js +1 -1
  17. package/dist/cjs/components/empty/MrlEmpty.module.scss.js +1 -1
  18. package/dist/cjs/components/empty/default/MrlEmpty.js.map +1 -1
  19. package/dist/cjs/components/empty/large/MrlEmptyLarge.js.map +1 -1
  20. package/dist/cjs/components/file-upload/MrlFileUpload/MrlFileUpload.module.scss.js +1 -1
  21. package/dist/cjs/components/filter/MrlFilter/MrlFilter.module.scss.js +1 -1
  22. package/dist/cjs/components/filter/MrlFilterItem/MrlFilterItem.module.scss.js +1 -1
  23. package/dist/cjs/components/form/checkbox/MrlCheckbox/MrlCheckbox.module.scss.js +1 -1
  24. package/dist/cjs/components/form/checkbox/MrlCheckboxStandalone/MrlCheckboxStandalone.module.scss.js +1 -1
  25. package/dist/cjs/components/form/date-picker/MrlDatePicker.js.map +1 -1
  26. package/dist/cjs/components/form/date-picker/MrlDatePicker.module.scss.js +1 -1
  27. package/dist/cjs/components/form/fieldset/MrlFieldset/MrlFieldset.module.scss.js +1 -1
  28. package/dist/cjs/components/form/label/MrlLabel/MrlLabel.module.scss.js +1 -1
  29. package/dist/cjs/components/form/label/MrlLabelWithDescription/MrlLabelWithDescription.module.scss.js +1 -1
  30. package/dist/cjs/components/form/legacy-select/MrlLegacySelect/MrlLegacySelect.module.scss.js +1 -1
  31. package/dist/cjs/components/form/legacy-select/MrlLegacySelectItem/MrlLegacySelectItem.module.scss.js +1 -1
  32. package/dist/cjs/components/form/legacy-select/MrlLegacySelectMenu/MrlLegacySelectMenu.module.scss.js +1 -1
  33. package/dist/cjs/components/form/radio/MrlRadioButton/MrlRadioButton.module.scss.js +1 -1
  34. package/dist/cjs/components/form/radio/MrlRadioButtonStandalone/MrlRadioButtonStandalone.module.scss.js +1 -1
  35. package/dist/cjs/components/form/select/MrlCreatableSelect/MrlCreatableSelect.js.map +1 -1
  36. package/dist/cjs/components/form/select/MrlMultiCreatableSelect/MrlMultiCreatableSelect.js.map +1 -1
  37. package/dist/cjs/components/form/select/MrlMultiSelect/MrlMultiSelect.js.map +1 -1
  38. package/dist/cjs/components/form/select/MrlSelect/MrlSelect.js.map +1 -1
  39. package/dist/cjs/components/form/select/components/MrlSelectMultiValue.module.scss.js +1 -1
  40. package/dist/cjs/components/form/switch/MrlSwitch/MrlSwitch.js.map +1 -1
  41. package/dist/cjs/components/form/switch/MrlSwitch/MrlSwitch.module.scss.js +1 -1
  42. package/dist/cjs/components/form/switch/MrlSwitchStandalone/MrlSwitchStandalone.module.scss.js +1 -1
  43. package/dist/cjs/components/form/text-input/MrlEditableTextInput/MrlEditableTextInput.js.map +1 -1
  44. package/dist/cjs/components/form/text-input/MrlEditableTextInput/MrlEditableTextInput.module.scss.js +1 -1
  45. package/dist/cjs/components/form/text-input/MrlTextInput/MrlTextInput.module.scss.js +1 -1
  46. package/dist/cjs/components/form/textarea/MrlEditableTextarea/MrlEditableTextarea.js.map +1 -1
  47. package/dist/cjs/components/form/textarea/MrlEditableTextarea/MrlEditableTextarea.module.scss.js +1 -1
  48. package/dist/cjs/components/form/textarea/MrlTextarea/MrlTextarea.module.scss.js +1 -1
  49. package/dist/cjs/components/grid/constants.js.map +1 -1
  50. package/dist/cjs/components/keystroke/MrlKeystroke/MrlKeystroke.module.scss.js +1 -1
  51. package/dist/cjs/components/keystroke/MrlKeystrokes/MrlKeystrokes.module.scss.js +1 -1
  52. package/dist/cjs/components/layout/MrlMain/MrlMain.module.scss.js +1 -1
  53. package/dist/cjs/components/layout/MrlPage/MrlPage.module.scss.js +1 -1
  54. package/dist/cjs/components/layout/MrlSidebar/MrlSidebar.js.map +1 -1
  55. package/dist/cjs/components/layout/MrlSidebar/MrlSidebar.module.scss.js +1 -1
  56. package/dist/cjs/components/layout/MrlTopbar/MrlTopbar.module.scss.js +1 -1
  57. package/dist/cjs/components/layout/error-page/MrlBrandColors/MrlBrandColors.module.scss.js +1 -1
  58. package/dist/cjs/components/layout/error-page/MrlErrorPage/MrlErrorPage.module.scss.js +1 -1
  59. package/dist/cjs/components/link/MrlLink/MrlLink.module.scss.js +1 -1
  60. package/dist/cjs/components/live-region/MrlLiveRegion/MrlLiveRegion.js.map +1 -1
  61. package/dist/cjs/components/loader/MrlProgressBar/MrlProgressBar.module.scss.js +1 -1
  62. package/dist/cjs/components/loader/MrlSpinner/MrlSpinner.module.scss.js +1 -1
  63. package/dist/cjs/components/menu/MrlMenu/MrlMenu.module.scss.js +1 -1
  64. package/dist/cjs/components/menu/MrlMenuGroup/MrlMenuGroup.module.scss.js +1 -1
  65. package/dist/cjs/components/menu/MrlMenuItem/MrlMenuItem.module.scss.js +1 -1
  66. package/dist/cjs/components/modal/MrlModal/MrlModal.module.scss.js +1 -1
  67. package/dist/cjs/components/modal/MrlModalContent/MrlModalContent.module.scss.js +1 -1
  68. package/dist/cjs/components/modal/MrlModalFooter/MrlModalFooter.module.scss.js +1 -1
  69. package/dist/cjs/components/modal/MrlModalHeader/MrlModalHeader.module.scss.js +1 -1
  70. package/dist/cjs/components/navigation-sidebar/MrlSidebarNavGroup/MrlSidebarNavGroup.module.scss.js +1 -1
  71. package/dist/cjs/components/navigation-sidebar/MrlSidebarNavItem/MrlSidebarNavItem.module.scss.js +1 -1
  72. package/dist/cjs/components/notification/MrlBlockNotification/MrlBlockNotification.module.scss.js +1 -1
  73. package/dist/cjs/components/notification/MrlInlineMessage/MrlInlineMessage.module.scss.js +1 -1
  74. package/dist/cjs/components/notification/MrlToast/MrlToast.js.map +1 -1
  75. package/dist/cjs/components/notification/MrlToast/MrlToast.module.scss.js +1 -1
  76. package/dist/cjs/components/pagination/MrlPagination/MrlPagination.module.scss.js +1 -1
  77. package/dist/cjs/components/pagination/MrlPaginationButton/MrlPaginationButton.js.map +1 -1
  78. package/dist/cjs/components/panel/MrlPanel/MrlPanel.module.scss.js +1 -1
  79. package/dist/cjs/components/panel/MrlPanelFooter/MrlPanelFooter.module.scss.js +1 -1
  80. package/dist/cjs/components/panel/MrlPanelStickyHeader/MrlPanelStickyHeader.module.scss.js +1 -1
  81. package/dist/cjs/components/popover/MrlPopover/MrlPopover.module.scss.js +1 -1
  82. package/dist/cjs/components/portal/MrlPortal.js.map +1 -1
  83. package/dist/cjs/components/rovingTabindex/MrlRovingTabindex/MrlRovingTabindex.js.map +1 -1
  84. package/dist/cjs/components/skeleton/MrlSkeleton/MrlSkeleton.module.scss.js +1 -1
  85. package/dist/cjs/components/skeleton/MrlSkeletonText/MrlSkeletonText.module.scss.js +1 -1
  86. package/dist/cjs/components/svg/MrlSvg/MrlSvg.js.map +1 -1
  87. package/dist/cjs/components/svg/MrlSvg/MrlSvg.module.scss.js +1 -1
  88. package/dist/cjs/components/table/MrlSmartTable/MrlSmartTable.module.scss.js +1 -1
  89. package/dist/cjs/components/table/MrlTable/MrlTable.module.scss.js +1 -1
  90. package/dist/cjs/components/table/MrlTableBody/MrlTableBody.module.scss.js +1 -1
  91. package/dist/cjs/components/table/MrlTableCell/MrlTableCell.js.map +1 -1
  92. package/dist/cjs/components/table/MrlTableCell/MrlTableCell.module.scss.js +1 -1
  93. package/dist/cjs/components/table/MrlTableColumn/MrlTableColumn.js.map +1 -1
  94. package/dist/cjs/components/table/MrlTableColumn/MrlTableColumn.module.scss.js +1 -1
  95. package/dist/cjs/components/table/MrlTableEmptyState/MrlTableEmptyState.module.scss.js +1 -1
  96. package/dist/cjs/components/table/MrlTableHeader/MrlTableHeader.module.scss.js +1 -1
  97. package/dist/cjs/components/table/MrlTableRow/MrlTableRow.module.scss.js +1 -1
  98. package/dist/cjs/components/tabs/MrlTab/MrlTab.js.map +1 -1
  99. package/dist/cjs/components/tabs/MrlTab/MrlTab.module.scss.js +1 -1
  100. package/dist/cjs/components/tabs/MrlTabContent/MrlTabContent.module.scss.js +1 -1
  101. package/dist/cjs/components/tabs/MrlTabGroup/MrlTabGroup.js.map +1 -1
  102. package/dist/cjs/components/tabs/MrlTabGroup/MrlTabGroup.module.scss.js +1 -1
  103. package/dist/cjs/components/tabs/MrlTabLink/MrlTabLink.js.map +1 -1
  104. package/dist/cjs/components/tabs/MrlTabs/MrlTabs.js.map +1 -1
  105. package/dist/cjs/components/text/MrlText/MrlText.module.scss.js +1 -1
  106. package/dist/cjs/components/text/MrlTextHeading/MrlTextHeading.js.map +1 -1
  107. package/dist/cjs/components/text/MrlTextHeading/MrlTextHeading.module.scss.js +1 -1
  108. package/dist/cjs/components/toolbar/MrlToolbar/MrlToolbar.js.map +1 -1
  109. package/dist/cjs/components/toolbar/MrlToolbar/MrlToolbar.module.scss.js +1 -1
  110. package/dist/cjs/components/toolbar/MrlToolbarButton/MrlToolbarButton.js.map +1 -1
  111. package/dist/cjs/components/toolbar/MrlToolbarButton/MrlToolbarButton.module.scss.js +1 -1
  112. package/dist/cjs/version.js +1 -1
  113. package/dist/cjs/version.js.map +1 -1
  114. package/dist/components/avatar/MrlAvatar/MrlAvatar.d.ts +8 -0
  115. package/dist/components/badge/MrlBadge/MrlBadge.d.ts +2 -0
  116. package/dist/components/badge/MrlBadgeNotification/MrlBadgeNotification.d.ts +1 -0
  117. package/dist/components/button/MrlAnimatedIconButton/MrlAnimatedIconButton.d.ts +1 -0
  118. package/dist/components/callout/MrlCallout/MrlCallout.d.ts +9 -0
  119. package/dist/components/empty/default/MrlEmpty.d.ts +4 -0
  120. package/dist/components/empty/large/MrlEmptyLarge.d.ts +4 -0
  121. package/dist/components/form/date-picker/MrlDatePicker.d.ts +2 -0
  122. package/dist/components/form/select/MrlCreatableSelect/MrlCreatableSelect.d.ts +4 -0
  123. package/dist/components/form/select/MrlMultiCreatableSelect/MrlMultiCreatableSelect.d.ts +4 -0
  124. package/dist/components/form/select/MrlMultiSelect/MrlMultiSelect.d.ts +3 -0
  125. package/dist/components/form/select/MrlSelect/MrlSelect.d.ts +3 -0
  126. package/dist/components/form/switch/MrlSwitch/MrlSwitch.d.ts +3 -0
  127. package/dist/components/form/text-input/MrlEditableTextInput/MrlEditableTextInput.d.ts +3 -0
  128. package/dist/components/form/textarea/MrlEditableTextarea/MrlEditableTextarea.d.ts +3 -0
  129. package/dist/components/grid/constants.d.ts +21 -0
  130. package/dist/components/layout/MrlSidebar/MrlSidebar.d.ts +2 -0
  131. package/dist/components/live-region/MrlLiveRegion/MrlLiveRegion.d.ts +6 -0
  132. package/dist/components/notification/MrlToast/MrlToast.d.ts +8 -0
  133. package/dist/components/pagination/MrlPaginationButton/MrlPaginationButton.d.ts +1 -0
  134. package/dist/components/portal/MrlPortal.d.ts +1 -0
  135. package/dist/components/rovingTabindex/MrlRovingTabindex/MrlRovingTabindex.d.ts +10 -0
  136. package/dist/components/svg/MrlSvg/MrlSvg.d.ts +1 -0
  137. package/dist/components/table/MrlTableCell/MrlTableCell.d.ts +3 -0
  138. package/dist/components/table/MrlTableColumn/MrlTableColumn.d.ts +3 -0
  139. package/dist/components/tabs/MrlTab/MrlTab.d.ts +2 -0
  140. package/dist/components/tabs/MrlTabGroup/MrlTabGroup.d.ts +1 -0
  141. package/dist/components/tabs/MrlTabLink/MrlTabLink.d.ts +1 -0
  142. package/dist/components/tabs/MrlTabs/MrlTabs.d.ts +2 -0
  143. package/dist/components/text/MrlTextHeading/MrlTextHeading.d.ts +1 -0
  144. package/dist/components/toolbar/MrlToolbar/MrlToolbar.d.ts +12 -0
  145. package/dist/components/toolbar/MrlToolbarButton/MrlToolbarButton.d.ts +2 -0
  146. package/dist/esm/components/avatar/MrlAvatar/MrlAvatar.js.map +1 -1
  147. package/dist/esm/components/avatar/MrlAvatar/MrlAvatar.module.scss.js +1 -1
  148. package/dist/esm/components/avatar/MrlAvatarButton/MrlAvatarButton.module.scss.js +1 -1
  149. package/dist/esm/components/badge/MrlBadge/MrlBadge.js.map +1 -1
  150. package/dist/esm/components/badge/MrlBadge/MrlBadge.module.scss.js +1 -1
  151. package/dist/esm/components/badge/MrlBadgeNotification/MrlBadgeNotification.js.map +1 -1
  152. package/dist/esm/components/badge/MrlBadgeNotification/MrlBadgeNotification.module.scss.js +1 -1
  153. package/dist/esm/components/breadcrumb/MrlBreadcrumbItem/MrlBreadcrumbItem.module.scss.js +1 -1
  154. package/dist/esm/components/breadcrumb/MrlBreadcrumbs/MrlBreadcrumbs.module.scss.js +1 -1
  155. package/dist/esm/components/button/MrlAnimatedIconButton/MrlAnimatedIconButton.js.map +1 -1
  156. package/dist/esm/components/button/MrlProcessingButton/MrlProcessingButton.module.scss.js +1 -1
  157. package/dist/esm/components/callout/MrlCallout/MrlCallout.js.map +1 -1
  158. package/dist/esm/components/callout/MrlCallout/MrlCallout.module.scss.js +1 -1
  159. package/dist/esm/components/container/MrlContainer/MrlContainer.module.scss.js +1 -1
  160. package/dist/esm/components/divider/MrlDivider/MrlDivider.module.scss.js +1 -1
  161. package/dist/esm/components/empty/MrlEmpty.module.scss.js +1 -1
  162. package/dist/esm/components/empty/default/MrlEmpty.js.map +1 -1
  163. package/dist/esm/components/empty/large/MrlEmptyLarge.js.map +1 -1
  164. package/dist/esm/components/file-upload/MrlFileUpload/MrlFileUpload.module.scss.js +1 -1
  165. package/dist/esm/components/filter/MrlFilter/MrlFilter.module.scss.js +1 -1
  166. package/dist/esm/components/filter/MrlFilterItem/MrlFilterItem.module.scss.js +1 -1
  167. package/dist/esm/components/form/checkbox/MrlCheckbox/MrlCheckbox.module.scss.js +1 -1
  168. package/dist/esm/components/form/checkbox/MrlCheckboxStandalone/MrlCheckboxStandalone.module.scss.js +1 -1
  169. package/dist/esm/components/form/date-picker/MrlDatePicker.js.map +1 -1
  170. package/dist/esm/components/form/date-picker/MrlDatePicker.module.scss.js +1 -1
  171. package/dist/esm/components/form/fieldset/MrlFieldset/MrlFieldset.module.scss.js +1 -1
  172. package/dist/esm/components/form/label/MrlLabel/MrlLabel.module.scss.js +1 -1
  173. package/dist/esm/components/form/label/MrlLabelWithDescription/MrlLabelWithDescription.module.scss.js +1 -1
  174. package/dist/esm/components/form/legacy-select/MrlLegacySelect/MrlLegacySelect.module.scss.js +1 -1
  175. package/dist/esm/components/form/legacy-select/MrlLegacySelectItem/MrlLegacySelectItem.module.scss.js +1 -1
  176. package/dist/esm/components/form/legacy-select/MrlLegacySelectMenu/MrlLegacySelectMenu.module.scss.js +1 -1
  177. package/dist/esm/components/form/radio/MrlRadioButton/MrlRadioButton.module.scss.js +1 -1
  178. package/dist/esm/components/form/radio/MrlRadioButtonStandalone/MrlRadioButtonStandalone.module.scss.js +1 -1
  179. package/dist/esm/components/form/select/MrlCreatableSelect/MrlCreatableSelect.js.map +1 -1
  180. package/dist/esm/components/form/select/MrlMultiCreatableSelect/MrlMultiCreatableSelect.js.map +1 -1
  181. package/dist/esm/components/form/select/MrlMultiSelect/MrlMultiSelect.js.map +1 -1
  182. package/dist/esm/components/form/select/MrlSelect/MrlSelect.js.map +1 -1
  183. package/dist/esm/components/form/select/components/MrlSelectMultiValue.module.scss.js +1 -1
  184. package/dist/esm/components/form/switch/MrlSwitch/MrlSwitch.js.map +1 -1
  185. package/dist/esm/components/form/switch/MrlSwitch/MrlSwitch.module.scss.js +1 -1
  186. package/dist/esm/components/form/switch/MrlSwitchStandalone/MrlSwitchStandalone.module.scss.js +1 -1
  187. package/dist/esm/components/form/text-input/MrlEditableTextInput/MrlEditableTextInput.js.map +1 -1
  188. package/dist/esm/components/form/text-input/MrlEditableTextInput/MrlEditableTextInput.module.scss.js +1 -1
  189. package/dist/esm/components/form/text-input/MrlTextInput/MrlTextInput.module.scss.js +1 -1
  190. package/dist/esm/components/form/textarea/MrlEditableTextarea/MrlEditableTextarea.js.map +1 -1
  191. package/dist/esm/components/form/textarea/MrlEditableTextarea/MrlEditableTextarea.module.scss.js +1 -1
  192. package/dist/esm/components/form/textarea/MrlTextarea/MrlTextarea.module.scss.js +1 -1
  193. package/dist/esm/components/grid/constants.js.map +1 -1
  194. package/dist/esm/components/keystroke/MrlKeystroke/MrlKeystroke.module.scss.js +1 -1
  195. package/dist/esm/components/keystroke/MrlKeystrokes/MrlKeystrokes.module.scss.js +1 -1
  196. package/dist/esm/components/layout/MrlMain/MrlMain.module.scss.js +1 -1
  197. package/dist/esm/components/layout/MrlPage/MrlPage.module.scss.js +1 -1
  198. package/dist/esm/components/layout/MrlSidebar/MrlSidebar.js.map +1 -1
  199. package/dist/esm/components/layout/MrlSidebar/MrlSidebar.module.scss.js +1 -1
  200. package/dist/esm/components/layout/MrlTopbar/MrlTopbar.module.scss.js +1 -1
  201. package/dist/esm/components/layout/error-page/MrlBrandColors/MrlBrandColors.module.scss.js +1 -1
  202. package/dist/esm/components/layout/error-page/MrlErrorPage/MrlErrorPage.module.scss.js +1 -1
  203. package/dist/esm/components/link/MrlLink/MrlLink.module.scss.js +1 -1
  204. package/dist/esm/components/live-region/MrlLiveRegion/MrlLiveRegion.js.map +1 -1
  205. package/dist/esm/components/loader/MrlProgressBar/MrlProgressBar.module.scss.js +1 -1
  206. package/dist/esm/components/loader/MrlSpinner/MrlSpinner.module.scss.js +1 -1
  207. package/dist/esm/components/menu/MrlMenu/MrlMenu.module.scss.js +1 -1
  208. package/dist/esm/components/menu/MrlMenuGroup/MrlMenuGroup.module.scss.js +1 -1
  209. package/dist/esm/components/menu/MrlMenuItem/MrlMenuItem.module.scss.js +1 -1
  210. package/dist/esm/components/modal/MrlModal/MrlModal.module.scss.js +1 -1
  211. package/dist/esm/components/modal/MrlModalContent/MrlModalContent.module.scss.js +1 -1
  212. package/dist/esm/components/modal/MrlModalFooter/MrlModalFooter.module.scss.js +1 -1
  213. package/dist/esm/components/modal/MrlModalHeader/MrlModalHeader.module.scss.js +1 -1
  214. package/dist/esm/components/navigation-sidebar/MrlSidebarNavGroup/MrlSidebarNavGroup.module.scss.js +1 -1
  215. package/dist/esm/components/navigation-sidebar/MrlSidebarNavItem/MrlSidebarNavItem.module.scss.js +1 -1
  216. package/dist/esm/components/notification/MrlBlockNotification/MrlBlockNotification.module.scss.js +1 -1
  217. package/dist/esm/components/notification/MrlInlineMessage/MrlInlineMessage.module.scss.js +1 -1
  218. package/dist/esm/components/notification/MrlToast/MrlToast.js.map +1 -1
  219. package/dist/esm/components/notification/MrlToast/MrlToast.module.scss.js +1 -1
  220. package/dist/esm/components/pagination/MrlPagination/MrlPagination.module.scss.js +1 -1
  221. package/dist/esm/components/pagination/MrlPaginationButton/MrlPaginationButton.js.map +1 -1
  222. package/dist/esm/components/panel/MrlPanel/MrlPanel.module.scss.js +1 -1
  223. package/dist/esm/components/panel/MrlPanelFooter/MrlPanelFooter.module.scss.js +1 -1
  224. package/dist/esm/components/panel/MrlPanelStickyHeader/MrlPanelStickyHeader.module.scss.js +1 -1
  225. package/dist/esm/components/popover/MrlPopover/MrlPopover.module.scss.js +1 -1
  226. package/dist/esm/components/portal/MrlPortal.js.map +1 -1
  227. package/dist/esm/components/rovingTabindex/MrlRovingTabindex/MrlRovingTabindex.js.map +1 -1
  228. package/dist/esm/components/skeleton/MrlSkeleton/MrlSkeleton.module.scss.js +1 -1
  229. package/dist/esm/components/skeleton/MrlSkeletonText/MrlSkeletonText.module.scss.js +1 -1
  230. package/dist/esm/components/svg/MrlSvg/MrlSvg.js.map +1 -1
  231. package/dist/esm/components/svg/MrlSvg/MrlSvg.module.scss.js +1 -1
  232. package/dist/esm/components/table/MrlSmartTable/MrlSmartTable.module.scss.js +1 -1
  233. package/dist/esm/components/table/MrlTable/MrlTable.module.scss.js +1 -1
  234. package/dist/esm/components/table/MrlTableBody/MrlTableBody.module.scss.js +1 -1
  235. package/dist/esm/components/table/MrlTableCell/MrlTableCell.js.map +1 -1
  236. package/dist/esm/components/table/MrlTableCell/MrlTableCell.module.scss.js +1 -1
  237. package/dist/esm/components/table/MrlTableColumn/MrlTableColumn.js.map +1 -1
  238. package/dist/esm/components/table/MrlTableColumn/MrlTableColumn.module.scss.js +1 -1
  239. package/dist/esm/components/table/MrlTableEmptyState/MrlTableEmptyState.module.scss.js +1 -1
  240. package/dist/esm/components/table/MrlTableHeader/MrlTableHeader.module.scss.js +1 -1
  241. package/dist/esm/components/table/MrlTableRow/MrlTableRow.module.scss.js +1 -1
  242. package/dist/esm/components/tabs/MrlTab/MrlTab.js.map +1 -1
  243. package/dist/esm/components/tabs/MrlTab/MrlTab.module.scss.js +1 -1
  244. package/dist/esm/components/tabs/MrlTabContent/MrlTabContent.module.scss.js +1 -1
  245. package/dist/esm/components/tabs/MrlTabGroup/MrlTabGroup.js.map +1 -1
  246. package/dist/esm/components/tabs/MrlTabGroup/MrlTabGroup.module.scss.js +1 -1
  247. package/dist/esm/components/tabs/MrlTabLink/MrlTabLink.js.map +1 -1
  248. package/dist/esm/components/tabs/MrlTabs/MrlTabs.js.map +1 -1
  249. package/dist/esm/components/text/MrlText/MrlText.module.scss.js +1 -1
  250. package/dist/esm/components/text/MrlTextHeading/MrlTextHeading.js.map +1 -1
  251. package/dist/esm/components/text/MrlTextHeading/MrlTextHeading.module.scss.js +1 -1
  252. package/dist/esm/components/toolbar/MrlToolbar/MrlToolbar.js.map +1 -1
  253. package/dist/esm/components/toolbar/MrlToolbar/MrlToolbar.module.scss.js +1 -1
  254. package/dist/esm/components/toolbar/MrlToolbarButton/MrlToolbarButton.js.map +1 -1
  255. package/dist/esm/components/toolbar/MrlToolbarButton/MrlToolbarButton.module.scss.js +1 -1
  256. package/dist/esm/version.js +1 -1
  257. package/dist/esm/version.js.map +1 -1
  258. package/dist/styles.css +128 -128
  259. package/package.json +4 -15
  260. package/dist/src/components/layout/error-page/MrlBrandColors/MrlBrandColors.functions.scss +0 -12
  261. package/dist/types/components/avatar/MrlAvatar/MrlAvatar.d.ts +0 -31
  262. package/dist/types/components/avatar/MrlAvatar/index.d.ts +0 -1
  263. package/dist/types/components/avatar/MrlAvatarButton/MrlAvatarButton.d.ts +0 -68
  264. package/dist/types/components/avatar/MrlAvatarButton/index.d.ts +0 -1
  265. package/dist/types/components/avatar/index.d.ts +0 -2
  266. package/dist/types/components/badge/MrlBadge/MrlBadge.d.ts +0 -25
  267. package/dist/types/components/badge/MrlBadge/index.d.ts +0 -1
  268. package/dist/types/components/badge/MrlBadgeNotification/MrlBadgeNotification.d.ts +0 -24
  269. package/dist/types/components/badge/MrlBadgeNotification/index.d.ts +0 -1
  270. package/dist/types/components/badge/index.d.ts +0 -2
  271. package/dist/types/components/breadcrumb/MrlBreadcrumbItem/MrlBreadcrumbItem.d.ts +0 -48
  272. package/dist/types/components/breadcrumb/MrlBreadcrumbItem/index.d.ts +0 -1
  273. package/dist/types/components/breadcrumb/MrlBreadcrumbSeparator/MrlBreadcrumbSeparator.d.ts +0 -5
  274. package/dist/types/components/breadcrumb/MrlBreadcrumbSeparator/index.d.ts +0 -1
  275. package/dist/types/components/breadcrumb/MrlBreadcrumbs/MrlBreadcrumbs.d.ts +0 -28
  276. package/dist/types/components/breadcrumb/MrlBreadcrumbs/index.d.ts +0 -1
  277. package/dist/types/components/breadcrumb/index.d.ts +0 -3
  278. package/dist/types/components/button/MrlAnimatedIconButton/MrlAnimatedIconButton.d.ts +0 -9
  279. package/dist/types/components/button/MrlAnimatedIconButton/index.d.ts +0 -1
  280. package/dist/types/components/button/MrlButton/MrlButton.d.ts +0 -98
  281. package/dist/types/components/button/MrlButton/index.d.ts +0 -1
  282. package/dist/types/components/button/MrlIconButton/MrlIconButton.d.ts +0 -123
  283. package/dist/types/components/button/MrlIconButton/index.d.ts +0 -1
  284. package/dist/types/components/button/MrlProcessingButton/MrlProcessingButton.d.ts +0 -51
  285. package/dist/types/components/button/MrlProcessingButton/actions.d.ts +0 -13
  286. package/dist/types/components/button/MrlProcessingButton/index.d.ts +0 -2
  287. package/dist/types/components/button/constants.d.ts +0 -33
  288. package/dist/types/components/button/helpers.d.ts +0 -40
  289. package/dist/types/components/button/index.d.ts +0 -4
  290. package/dist/types/components/callout/MrlCallout/MrlCallout.d.ts +0 -39
  291. package/dist/types/components/callout/MrlCallout/index.d.ts +0 -1
  292. package/dist/types/components/callout/index.d.ts +0 -1
  293. package/dist/types/components/container/MrlContainer/MrlContainer.d.ts +0 -22
  294. package/dist/types/components/container/MrlContainer/index.d.ts +0 -1
  295. package/dist/types/components/container/constants.d.ts +0 -12
  296. package/dist/types/components/container/index.d.ts +0 -1
  297. package/dist/types/components/divider/MrlDivider/MrlDivider.d.ts +0 -49
  298. package/dist/types/components/divider/MrlDivider/index.d.ts +0 -1
  299. package/dist/types/components/divider/constants.d.ts +0 -21
  300. package/dist/types/components/divider/index.d.ts +0 -1
  301. package/dist/types/components/empty/default/MrlEmpty.d.ts +0 -13
  302. package/dist/types/components/empty/default/index.d.ts +0 -1
  303. package/dist/types/components/empty/index.d.ts +0 -2
  304. package/dist/types/components/empty/large/MrlEmptyLarge.d.ts +0 -13
  305. package/dist/types/components/empty/large/index.d.ts +0 -1
  306. package/dist/types/components/error-boundary/MrlErrorBoundary.d.ts +0 -62
  307. package/dist/types/components/error-boundary/index.d.ts +0 -1
  308. package/dist/types/components/file-upload/MrlFileUpload/MrlFileUpload.d.ts +0 -154
  309. package/dist/types/components/file-upload/MrlFileUpload/index.d.ts +0 -1
  310. package/dist/types/components/file-upload/constants.d.ts +0 -35
  311. package/dist/types/components/file-upload/helpers.d.ts +0 -35
  312. package/dist/types/components/file-upload/index.d.ts +0 -2
  313. package/dist/types/components/filter/MrlFilter/MrlFilter.d.ts +0 -35
  314. package/dist/types/components/filter/MrlFilter/index.d.ts +0 -1
  315. package/dist/types/components/filter/MrlFilterContext/MrlFilterContext.d.ts +0 -34
  316. package/dist/types/components/filter/MrlFilterContext/index.d.ts +0 -1
  317. package/dist/types/components/filter/MrlFilterItem/MrlFilterItem.d.ts +0 -33
  318. package/dist/types/components/filter/MrlFilterItem/index.d.ts +0 -1
  319. package/dist/types/components/filter/index.d.ts +0 -3
  320. package/dist/types/components/focus-trap/MrlFocusTrap/MrlFocusTrap.d.ts +0 -29
  321. package/dist/types/components/focus-trap/MrlFocusTrap/index.d.ts +0 -1
  322. package/dist/types/components/focus-trap/index.d.ts +0 -1
  323. package/dist/types/components/form/checkbox/MrlCheckbox/MrlCheckbox.d.ts +0 -47
  324. package/dist/types/components/form/checkbox/MrlCheckbox/index.d.ts +0 -1
  325. package/dist/types/components/form/checkbox/MrlCheckboxStandalone/MrlCheckboxStandalone.d.ts +0 -33
  326. package/dist/types/components/form/checkbox/MrlCheckboxStandalone/index.d.ts +0 -1
  327. package/dist/types/components/form/constants.d.ts +0 -85
  328. package/dist/types/components/form/date-picker/MrlDatePicker.d.ts +0 -37
  329. package/dist/types/components/form/date-picker/index.d.ts +0 -1
  330. package/dist/types/components/form/fieldset/MrlFieldset/MrlFieldset.d.ts +0 -19
  331. package/dist/types/components/form/fieldset/MrlFieldset/index.d.ts +0 -1
  332. package/dist/types/components/form/hooks/useActiveColor.d.ts +0 -13
  333. package/dist/types/components/form/hooks/useIsEditable.d.ts +0 -28
  334. package/dist/types/components/form/index.d.ts +0 -19
  335. package/dist/types/components/form/label/MrlLabel/MrlLabel.d.ts +0 -36
  336. package/dist/types/components/form/label/MrlLabel/index.d.ts +0 -1
  337. package/dist/types/components/form/label/MrlLabelWithDescription/MrlLabelWithDescription.d.ts +0 -32
  338. package/dist/types/components/form/label/MrlLabelWithDescription/index.d.ts +0 -1
  339. package/dist/types/components/form/legacy-select/MrlLegacySelect/MrlLegacySelect.d.ts +0 -65
  340. package/dist/types/components/form/legacy-select/MrlLegacySelect/index.d.ts +0 -1
  341. package/dist/types/components/form/legacy-select/MrlLegacySelectItem/MrlLegacySelectItem.d.ts +0 -43
  342. package/dist/types/components/form/legacy-select/MrlLegacySelectItem/index.d.ts +0 -1
  343. package/dist/types/components/form/legacy-select/MrlLegacySelectMenu/MrlLegacySelectMenu.d.ts +0 -42
  344. package/dist/types/components/form/legacy-select/MrlLegacySelectMenu/index.d.ts +0 -1
  345. package/dist/types/components/form/legacy-select/context/SelectContext.d.ts +0 -68
  346. package/dist/types/components/form/legacy-select/index.d.ts +0 -9
  347. package/dist/types/components/form/legacy-select/stories.data.d.ts +0 -1
  348. package/dist/types/components/form/radio/MrlRadioButton/MrlRadioButton.d.ts +0 -53
  349. package/dist/types/components/form/radio/MrlRadioButton/index.d.ts +0 -1
  350. package/dist/types/components/form/radio/MrlRadioButtonStandalone/MrlRadioButtonStandalone.d.ts +0 -31
  351. package/dist/types/components/form/radio/MrlRadioButtonStandalone/index.d.ts +0 -1
  352. package/dist/types/components/form/radio/MrlRadioGroup/MrlRadioGroup.d.ts +0 -21
  353. package/dist/types/components/form/radio/MrlRadioGroup/index.d.ts +0 -1
  354. package/dist/types/components/form/select/MrlCreatableSelect/MrlCreatableSelect.d.ts +0 -32
  355. package/dist/types/components/form/select/MrlCreatableSelect/index.d.ts +0 -1
  356. package/dist/types/components/form/select/MrlMultiCreatableSelect/MrlMultiCreatableSelect.d.ts +0 -32
  357. package/dist/types/components/form/select/MrlMultiCreatableSelect/index.d.ts +0 -1
  358. package/dist/types/components/form/select/MrlMultiSelect/MrlMultiSelect.d.ts +0 -30
  359. package/dist/types/components/form/select/MrlMultiSelect/index.d.ts +0 -1
  360. package/dist/types/components/form/select/MrlSelect/MrlSelect.d.ts +0 -30
  361. package/dist/types/components/form/select/MrlSelect/index.d.ts +0 -1
  362. package/dist/types/components/form/select/components/MrlSelectClearIndicator.d.ts +0 -7
  363. package/dist/types/components/form/select/components/MrlSelectContainer.d.ts +0 -11
  364. package/dist/types/components/form/select/components/MrlSelectDropdownIndicator.d.ts +0 -8
  365. package/dist/types/components/form/select/components/MrlSelectMultiValue.d.ts +0 -9
  366. package/dist/types/components/form/select/components/MrlSelectMultiValueRemove.d.ts +0 -8
  367. package/dist/types/components/form/select/components/MrlSelectOption.d.ts +0 -8
  368. package/dist/types/components/form/select/components/MrlSelectValueContainer.d.ts +0 -8
  369. package/dist/types/components/form/select/components/index.d.ts +0 -7
  370. package/dist/types/components/form/select/index.d.ts +0 -6
  371. package/dist/types/components/form/select/styles/default.d.ts +0 -6
  372. package/dist/types/components/form/select/styles/index.d.ts +0 -9
  373. package/dist/types/components/form/select/styles/inline.d.ts +0 -7
  374. package/dist/types/components/form/select/styles/inlineNoLabel.d.ts +0 -7
  375. package/dist/types/components/form/select/styles/inlineStacked.d.ts +0 -7
  376. package/dist/types/components/form/select/types.d.ts +0 -5
  377. package/dist/types/components/form/select/utils/closeMenuOnScroll.d.ts +0 -10
  378. package/dist/types/components/form/select/utils/index.d.ts +0 -1
  379. package/dist/types/components/form/select/utils/useMenuEscapeContainment.d.ts +0 -21
  380. package/dist/types/components/form/switch/MrlSwitch/MrlSwitch.d.ts +0 -20
  381. package/dist/types/components/form/switch/MrlSwitch/index.d.ts +0 -1
  382. package/dist/types/components/form/switch/MrlSwitchStandalone/MrlSwitchStandalone.d.ts +0 -15
  383. package/dist/types/components/form/switch/MrlSwitchStandalone/index.d.ts +0 -1
  384. package/dist/types/components/form/switch/index.d.ts +0 -2
  385. package/dist/types/components/form/text-input/MrlEditableTextInput/MrlEditableTextInput.d.ts +0 -44
  386. package/dist/types/components/form/text-input/MrlEditableTextInput/MrlEditableTextInputRightIcon.d.ts +0 -25
  387. package/dist/types/components/form/text-input/MrlEditableTextInput/index.d.ts +0 -1
  388. package/dist/types/components/form/text-input/MrlTextInput/MrlTextInput.d.ts +0 -55
  389. package/dist/types/components/form/text-input/MrlTextInput/MrlTextInputRightIcon.d.ts +0 -24
  390. package/dist/types/components/form/text-input/MrlTextInput/index.d.ts +0 -1
  391. package/dist/types/components/form/textarea/MrlEditableTextarea/MrlEditableTextarea.d.ts +0 -52
  392. package/dist/types/components/form/textarea/MrlEditableTextarea/MrlEditableTextareaRightButton.d.ts +0 -25
  393. package/dist/types/components/form/textarea/MrlEditableTextarea/index.d.ts +0 -1
  394. package/dist/types/components/form/textarea/MrlTextarea/MrlTextarea.d.ts +0 -45
  395. package/dist/types/components/form/textarea/MrlTextarea/index.d.ts +0 -1
  396. package/dist/types/components/form/utils.d.ts +0 -81
  397. package/dist/types/components/grid/MrlCol/MrlCol.d.ts +0 -10
  398. package/dist/types/components/grid/MrlCol/index.d.ts +0 -1
  399. package/dist/types/components/grid/MrlGrid/MrlGrid.d.ts +0 -9
  400. package/dist/types/components/grid/MrlGrid/index.d.ts +0 -1
  401. package/dist/types/components/grid/MrlRow/MrlRow.d.ts +0 -23
  402. package/dist/types/components/grid/MrlRow/index.d.ts +0 -1
  403. package/dist/types/components/grid/constants.d.ts +0 -50
  404. package/dist/types/components/grid/index.d.ts +0 -3
  405. package/dist/types/components/index.d.ts +0 -35
  406. package/dist/types/components/keystroke/MrlKeystroke/MrlKeystroke.d.ts +0 -17
  407. package/dist/types/components/keystroke/MrlKeystroke/index.d.ts +0 -1
  408. package/dist/types/components/keystroke/MrlKeystrokes/MrlKeystrokes.d.ts +0 -17
  409. package/dist/types/components/keystroke/MrlKeystrokes/index.d.ts +0 -1
  410. package/dist/types/components/keystroke/index.d.ts +0 -2
  411. package/dist/types/components/layout/MrlMain/MrlMain.d.ts +0 -7
  412. package/dist/types/components/layout/MrlMain/index.d.ts +0 -1
  413. package/dist/types/components/layout/MrlPage/MrlPage.d.ts +0 -9
  414. package/dist/types/components/layout/MrlPage/index.d.ts +0 -10
  415. package/dist/types/components/layout/MrlSidebar/MrlSidebar.d.ts +0 -28
  416. package/dist/types/components/layout/MrlSidebar/demo/MrlSidebarDemo.d.ts +0 -7
  417. package/dist/types/components/layout/MrlSidebar/index.d.ts +0 -1
  418. package/dist/types/components/layout/MrlTopbar/MrlTopbar.d.ts +0 -9
  419. package/dist/types/components/layout/MrlTopbar/index.d.ts +0 -1
  420. package/dist/types/components/layout/constants.d.ts +0 -15
  421. package/dist/types/components/layout/context/LayoutContext.d.ts +0 -24
  422. package/dist/types/components/layout/error-page/MrlBrandColors/MrlBrandColors.d.ts +0 -12
  423. package/dist/types/components/layout/error-page/MrlBrandColors/index.d.ts +0 -1
  424. package/dist/types/components/layout/error-page/MrlErrorPage/MrlErrorPage.d.ts +0 -28
  425. package/dist/types/components/layout/error-page/MrlErrorPage/index.d.ts +0 -1
  426. package/dist/types/components/layout/error-page/index.d.ts +0 -2
  427. package/dist/types/components/layout/index.d.ts +0 -5
  428. package/dist/types/components/layout/utils.d.ts +0 -15
  429. package/dist/types/components/link/MrlLink/MrlLink.d.ts +0 -62
  430. package/dist/types/components/link/MrlLink/index.d.ts +0 -1
  431. package/dist/types/components/link/MrlLinkButton/MrlLinkButton.d.ts +0 -59
  432. package/dist/types/components/link/MrlLinkButton/index.d.ts +0 -1
  433. package/dist/types/components/link/constants.d.ts +0 -24
  434. package/dist/types/components/link/index.d.ts +0 -2
  435. package/dist/types/components/live-region/MrlLiveRegion/MrlLiveRegion.d.ts +0 -19
  436. package/dist/types/components/live-region/MrlLiveRegion/index.d.ts +0 -1
  437. package/dist/types/components/live-region/demo/LiveRegionDemo.d.ts +0 -6
  438. package/dist/types/components/live-region/index.d.ts +0 -1
  439. package/dist/types/components/loader/MrlProgressBar/MrlProgressBar.d.ts +0 -9
  440. package/dist/types/components/loader/MrlProgressBar/index.d.ts +0 -1
  441. package/dist/types/components/loader/MrlSpinner/MrlSpinner.d.ts +0 -9
  442. package/dist/types/components/loader/MrlSpinner/index.d.ts +0 -1
  443. package/dist/types/components/loader/constants.d.ts +0 -87
  444. package/dist/types/components/loader/index.d.ts +0 -3
  445. package/dist/types/components/menu/MrlMenu/MrlMenu.d.ts +0 -131
  446. package/dist/types/components/menu/MrlMenu/index.d.ts +0 -1
  447. package/dist/types/components/menu/MrlMenu/utilities.d.ts +0 -29
  448. package/dist/types/components/menu/MrlMenuGroup/MrlMenuGroup.d.ts +0 -26
  449. package/dist/types/components/menu/MrlMenuGroup/index.d.ts +0 -1
  450. package/dist/types/components/menu/MrlMenuItem/MrlMenuItem.d.ts +0 -63
  451. package/dist/types/components/menu/MrlMenuItem/index.d.ts +0 -1
  452. package/dist/types/components/menu/MrlMenuItemLink/MrlMenuItemLink.d.ts +0 -52
  453. package/dist/types/components/menu/MrlMenuItemLink/index.d.ts +0 -1
  454. package/dist/types/components/menu/constants.d.ts +0 -45
  455. package/dist/types/components/menu/context/MrlMenuContext.d.ts +0 -24
  456. package/dist/types/components/menu/demo/MenuByConfig.d.ts +0 -6
  457. package/dist/types/components/menu/demo/MenuWithPopover.d.ts +0 -17
  458. package/dist/types/components/menu/demo/MenuWithSubmenu.d.ts +0 -17
  459. package/dist/types/components/menu/demo/MenuWithTrigger.d.ts +0 -17
  460. package/dist/types/components/menu/hooks/useBrowserEdgeScroll.d.ts +0 -22
  461. package/dist/types/components/menu/hooks/useMenuScroll.d.ts +0 -40
  462. package/dist/types/components/menu/hooks/useSubMenuElementPosition.d.ts +0 -18
  463. package/dist/types/components/menu/index.d.ts +0 -6
  464. package/dist/types/components/menu/utilities/flip-position.d.ts +0 -8
  465. package/dist/types/components/menu/utilities/get-scrollable-parent.d.ts +0 -7
  466. package/dist/types/components/menu/utilities/index.d.ts +0 -2
  467. package/dist/types/components/modal/MrlModal/MrlModal.d.ts +0 -54
  468. package/dist/types/components/modal/MrlModal/index.d.ts +0 -1
  469. package/dist/types/components/modal/MrlModalContent/MrlModalContent.d.ts +0 -22
  470. package/dist/types/components/modal/MrlModalContent/index.d.ts +0 -1
  471. package/dist/types/components/modal/MrlModalContext/MrlModalContext.d.ts +0 -19
  472. package/dist/types/components/modal/MrlModalContext/index.d.ts +0 -1
  473. package/dist/types/components/modal/MrlModalFooter/MrlModalFooter.d.ts +0 -22
  474. package/dist/types/components/modal/MrlModalFooter/index.d.ts +0 -1
  475. package/dist/types/components/modal/MrlModalHeader/MrlModalHeader.d.ts +0 -24
  476. package/dist/types/components/modal/MrlModalHeader/index.d.ts +0 -1
  477. package/dist/types/components/modal/constants.d.ts +0 -18
  478. package/dist/types/components/modal/demo/ModalWithTriggerDemo.d.ts +0 -15
  479. package/dist/types/components/modal/index.d.ts +0 -5
  480. package/dist/types/components/navigation-sidebar/MrlSidebarNavGroup/MrlSidebarNavGroup.d.ts +0 -25
  481. package/dist/types/components/navigation-sidebar/MrlSidebarNavGroup/index.d.ts +0 -1
  482. package/dist/types/components/navigation-sidebar/MrlSidebarNavItem/MrlSidebarNavItem.d.ts +0 -31
  483. package/dist/types/components/navigation-sidebar/MrlSidebarNavItem/index.d.ts +0 -1
  484. package/dist/types/components/navigation-sidebar/index.d.ts +0 -2
  485. package/dist/types/components/notification/MrlBlockNotification/MrlBlockNotification.d.ts +0 -104
  486. package/dist/types/components/notification/MrlBlockNotification/index.d.ts +0 -1
  487. package/dist/types/components/notification/MrlInlineMessage/MrlInlineMessage.d.ts +0 -39
  488. package/dist/types/components/notification/MrlInlineMessage/index.d.ts +0 -1
  489. package/dist/types/components/notification/MrlToast/MrlToast.d.ts +0 -73
  490. package/dist/types/components/notification/MrlToast/index.d.ts +0 -1
  491. package/dist/types/components/notification/constants.d.ts +0 -26
  492. package/dist/types/components/notification/index.d.ts +0 -3
  493. package/dist/types/components/pagination/MrlPagination/MrlPagination.d.ts +0 -19
  494. package/dist/types/components/pagination/MrlPagination/index.d.ts +0 -1
  495. package/dist/types/components/pagination/MrlPaginationButton/MrlPaginationButton.d.ts +0 -53
  496. package/dist/types/components/pagination/MrlPaginationButton/index.d.ts +0 -1
  497. package/dist/types/components/pagination/MrlPaginationText/MrlPaginationText.d.ts +0 -21
  498. package/dist/types/components/pagination/MrlPaginationText/index.d.ts +0 -1
  499. package/dist/types/components/pagination/constants.d.ts +0 -1
  500. package/dist/types/components/pagination/index.d.ts +0 -3
  501. package/dist/types/components/panel/MrlPanel/MrlPanel.d.ts +0 -62
  502. package/dist/types/components/panel/MrlPanel/index.d.ts +0 -1
  503. package/dist/types/components/panel/MrlPanelContext/MrlPanelContext.d.ts +0 -11
  504. package/dist/types/components/panel/MrlPanelContext/index.d.ts +0 -1
  505. package/dist/types/components/panel/MrlPanelFooter/MrlPanelFooter.d.ts +0 -25
  506. package/dist/types/components/panel/MrlPanelFooter/index.d.ts +0 -1
  507. package/dist/types/components/panel/MrlPanelStickyHeader/MrlPanelStickyHeader.d.ts +0 -20
  508. package/dist/types/components/panel/MrlPanelStickyHeader/index.d.ts +0 -1
  509. package/dist/types/components/panel/index.d.ts +0 -3
  510. package/dist/types/components/popover/MrlPopover/MrlPopover.d.ts +0 -137
  511. package/dist/types/components/popover/MrlPopover/MrlPopoverScrollContainer.d.ts +0 -16
  512. package/dist/types/components/popover/MrlPopover/context/MrlPopoverContext.d.ts +0 -20
  513. package/dist/types/components/popover/MrlPopover/hooks/use-mrl-popover-event-handlers.d.ts +0 -33
  514. package/dist/types/components/popover/MrlPopover/index.d.ts +0 -2
  515. package/dist/types/components/popover/MrlPopover/utilities/get-data-point.d.ts +0 -9
  516. package/dist/types/components/popover/MrlPopover/utilities/get-offset.d.ts +0 -9
  517. package/dist/types/components/popover/MrlPopover/utilities/index.d.ts +0 -2
  518. package/dist/types/components/popover/demo/PopoverWithIconButton.d.ts +0 -20
  519. package/dist/types/components/popover/demo/PopoverWithSelect.d.ts +0 -23
  520. package/dist/types/components/popover/demo/PopoverWithTrigger.d.ts +0 -25
  521. package/dist/types/components/popover/index.d.ts +0 -1
  522. package/dist/types/components/portal/MrlPortal.d.ts +0 -20
  523. package/dist/types/components/portal/index.d.ts +0 -1
  524. package/dist/types/components/rovingTabindex/MrlRovingTabindex/MrlRovingTabindex.d.ts +0 -142
  525. package/dist/types/components/rovingTabindex/MrlRovingTabindex/index.d.ts +0 -1
  526. package/dist/types/components/rovingTabindex/index.d.ts +0 -1
  527. package/dist/types/components/skeleton/MrlSkeleton/MrlSkeleton.d.ts +0 -20
  528. package/dist/types/components/skeleton/MrlSkeleton/index.d.ts +0 -1
  529. package/dist/types/components/skeleton/MrlSkeletonText/MrlSkeletonText.d.ts +0 -22
  530. package/dist/types/components/skeleton/MrlSkeletonText/index.d.ts +0 -1
  531. package/dist/types/components/skeleton/index.d.ts +0 -2
  532. package/dist/types/components/svg/MrlSvg/MrlSvg.d.ts +0 -35
  533. package/dist/types/components/svg/MrlSvg/index.d.ts +0 -1
  534. package/dist/types/components/svg/MrlSvgAnimate/MrlSvgAnimate.d.ts +0 -50
  535. package/dist/types/components/svg/MrlSvgAnimate/index.d.ts +0 -1
  536. package/dist/types/components/svg/config.d.ts +0 -112
  537. package/dist/types/components/svg/constants.d.ts +0 -36
  538. package/dist/types/components/svg/index.d.ts +0 -3
  539. package/dist/types/components/table/MrlSmartTable/MrlSmartTable.d.ts +0 -272
  540. package/dist/types/components/table/MrlSmartTable/components/DefaultCellContent.d.ts +0 -4
  541. package/dist/types/components/table/MrlSmartTable/index.d.ts +0 -1
  542. package/dist/types/components/table/MrlSmartTable/storybook-utils.d.ts +0 -10
  543. package/dist/types/components/table/MrlTable/MrlTable.d.ts +0 -17
  544. package/dist/types/components/table/MrlTable/index.d.ts +0 -1
  545. package/dist/types/components/table/MrlTableBody/MrlTableBody.d.ts +0 -17
  546. package/dist/types/components/table/MrlTableBody/index.d.ts +0 -1
  547. package/dist/types/components/table/MrlTableCell/MrlTableCell.d.ts +0 -26
  548. package/dist/types/components/table/MrlTableCell/index.d.ts +0 -1
  549. package/dist/types/components/table/MrlTableColumn/MrlTableColumn.d.ts +0 -26
  550. package/dist/types/components/table/MrlTableColumn/index.d.ts +0 -1
  551. package/dist/types/components/table/MrlTableEmptyState/MrlTableEmptyState.d.ts +0 -13
  552. package/dist/types/components/table/MrlTableEmptyState/index.d.ts +0 -1
  553. package/dist/types/components/table/MrlTableHeader/MrlTableHeader.d.ts +0 -17
  554. package/dist/types/components/table/MrlTableHeader/index.d.ts +0 -1
  555. package/dist/types/components/table/MrlTableRow/MrlTableRow.d.ts +0 -33
  556. package/dist/types/components/table/MrlTableRow/index.d.ts +0 -1
  557. package/dist/types/components/table/constants.d.ts +0 -22
  558. package/dist/types/components/table/fixtures.d.ts +0 -107
  559. package/dist/types/components/table/index.d.ts +0 -9
  560. package/dist/types/components/table/utils.d.ts +0 -43
  561. package/dist/types/components/tabs/MrlTab/MrlTab.d.ts +0 -25
  562. package/dist/types/components/tabs/MrlTab/index.d.ts +0 -1
  563. package/dist/types/components/tabs/MrlTabContent/MrlTabContent.d.ts +0 -9
  564. package/dist/types/components/tabs/MrlTabContent/index.d.ts +0 -1
  565. package/dist/types/components/tabs/MrlTabGroup/MrlTabGroup.d.ts +0 -10
  566. package/dist/types/components/tabs/MrlTabGroup/index.d.ts +0 -1
  567. package/dist/types/components/tabs/MrlTabLink/MrlTabLink.d.ts +0 -33
  568. package/dist/types/components/tabs/MrlTabLink/index.d.ts +0 -1
  569. package/dist/types/components/tabs/MrlTabs/MrlTabs.d.ts +0 -21
  570. package/dist/types/components/tabs/MrlTabs/index.d.ts +0 -1
  571. package/dist/types/components/tabs/constants.d.ts +0 -1
  572. package/dist/types/components/tabs/index.d.ts +0 -5
  573. package/dist/types/components/text/MrlText/MrlText.d.ts +0 -26
  574. package/dist/types/components/text/MrlText/index.d.ts +0 -1
  575. package/dist/types/components/text/MrlTextHeading/MrlTextHeading.d.ts +0 -39
  576. package/dist/types/components/text/MrlTextHeading/index.d.ts +0 -1
  577. package/dist/types/components/text/constants.d.ts +0 -40
  578. package/dist/types/components/text/index.d.ts +0 -2
  579. package/dist/types/components/toolbar/MrlToolbar/MrlToolbar.d.ts +0 -40
  580. package/dist/types/components/toolbar/MrlToolbar/index.d.ts +0 -1
  581. package/dist/types/components/toolbar/MrlToolbarButton/MrlToolbarButton.d.ts +0 -63
  582. package/dist/types/components/toolbar/MrlToolbarButton/index.d.ts +0 -1
  583. package/dist/types/components/toolbar/MrlToolbarItem/MrlToolbarItem.d.ts +0 -29
  584. package/dist/types/components/toolbar/MrlToolbarItem/index.d.ts +0 -1
  585. package/dist/types/components/toolbar/index.d.ts +0 -3
  586. package/dist/types/components/tooltip/MrlTooltip/MrlTooltip.d.ts +0 -68
  587. package/dist/types/components/tooltip/MrlTooltip/index.d.ts +0 -1
  588. package/dist/types/components/tooltip/MrlTooltipContent/MrlTooltipContent.d.ts +0 -41
  589. package/dist/types/components/tooltip/MrlTooltipContent/index.d.ts +0 -1
  590. package/dist/types/components/tooltip/constants.d.ts +0 -26
  591. package/dist/types/components/tooltip/index.d.ts +0 -2
  592. package/dist/types/components/tooltip/useTooltipPosition/constants.d.ts +0 -9
  593. package/dist/types/components/tooltip/useTooltipPosition/index.d.ts +0 -14
  594. package/dist/types/components/tooltip/useTooltipPosition/utilities.d.ts +0 -19
  595. package/dist/types/components/tooltip/utils.d.ts +0 -9
  596. package/dist/types/contexts/MrlAnalyticsContext/MrlAnalyticsContext.d.ts +0 -25
  597. package/dist/types/contexts/MrlAnalyticsContext/index.d.ts +0 -2
  598. package/dist/types/contexts/MrlAnalyticsContext/types.d.ts +0 -22
  599. package/dist/types/contexts/MrlTabContext/MrlTabContext.d.ts +0 -6
  600. package/dist/types/contexts/MrlTabContext/index.d.ts +0 -1
  601. package/dist/types/contexts/index.d.ts +0 -2
  602. package/dist/types/hooks/index.d.ts +0 -6
  603. package/dist/types/hooks/useAutoClose/index.d.ts +0 -1
  604. package/dist/types/hooks/useAutoClose/useAutoClose.d.ts +0 -11
  605. package/dist/types/hooks/useBreakpoint/index.d.ts +0 -15
  606. package/dist/types/hooks/useBreakpoint/useBreakpointDemo.d.ts +0 -6
  607. package/dist/types/hooks/useClickOutside/index.d.ts +0 -11
  608. package/dist/types/hooks/useCoordinate/index.d.ts +0 -18
  609. package/dist/types/hooks/useElementDimensions/index.d.ts +0 -16
  610. package/dist/types/hooks/useHasFocusableDescendant/index.d.ts +0 -23
  611. package/dist/types/hooks/useMrlAnalytics/index.d.ts +0 -1
  612. package/dist/types/hooks/useMrlAnalytics/useMrlAnalytics.d.ts +0 -21
  613. package/dist/types/hooks/useMrlAnalytics/useMrlAnalyticsDemo.d.ts +0 -8
  614. package/dist/types/hooks/useScrollbarInfo/index.d.ts +0 -24
  615. package/dist/types/hooks/useTriggerPosition/constants.d.ts +0 -15
  616. package/dist/types/hooks/useTriggerPosition/index.d.ts +0 -17
  617. package/dist/types/hooks/useTriggerPosition/utilities.d.ts +0 -12
  618. package/dist/types/index.d.ts +0 -4
  619. package/dist/types/utils/checkInvalidAttributes/index.d.ts +0 -7
  620. package/dist/types/utils/commonProps/index.d.ts +0 -20
  621. package/dist/types/utils/dataQa/index.d.ts +0 -6
  622. package/dist/types/utils/findAdjacentInteractiveElement/findAdjacentInteractiveElement.d.ts +0 -8
  623. package/dist/types/utils/findAdjacentInteractiveElement/index.d.ts +0 -1
  624. package/dist/types/utils/frameDebounce/index.d.ts +0 -22
  625. package/dist/types/utils/getCamelCase/getCamelCase.d.ts +0 -7
  626. package/dist/types/utils/getCamelCase/index.d.ts +0 -2
  627. package/dist/types/utils/getScrollableContainer/getScrollableContainer.d.ts +0 -10
  628. package/dist/types/utils/getScrollableContainer/index.d.ts +0 -1
  629. package/dist/types/utils/hasHorizontalScroll/hasHorizontalScroll.d.ts +0 -11
  630. package/dist/types/utils/hasHorizontalScroll/index.d.ts +0 -1
  631. package/dist/types/utils/hasScrollContent/hasScrollContent.d.ts +0 -11
  632. package/dist/types/utils/hasScrollContent/index.d.ts +0 -1
  633. package/dist/types/utils/index.d.ts +0 -16
  634. package/dist/types/utils/isElementAriaDisabled/index.d.ts +0 -1
  635. package/dist/types/utils/isElementAriaDisabled/isElementAriaDisabled.d.ts +0 -7
  636. package/dist/types/utils/isElementScrollable/index.d.ts +0 -7
  637. package/dist/types/utils/isImagePath/index.d.ts +0 -7
  638. package/dist/types/utils/isImageUri/index.d.ts +0 -7
  639. package/dist/types/utils/isObject/index.d.ts +0 -2
  640. package/dist/types/utils/isObject/isObject.d.ts +0 -14
  641. package/dist/types/utils/isTouch/index.d.ts +0 -6
  642. package/dist/types/utils/layers/index.d.ts +0 -52
  643. package/dist/types/utils/noop/index.d.ts +0 -7
  644. package/dist/types/utils/preventDefault/index.d.ts +0 -1
  645. package/dist/types/utils/preventDefault/preventDefault.d.ts +0 -6
  646. package/dist/types/utils/setAttributes/index.d.ts +0 -2
  647. package/dist/types/utils/setAttributes/setAttributes.d.ts +0 -35
  648. package/dist/types/utils/trapFocus/index.d.ts +0 -22
  649. package/dist/types/version.d.ts +0 -1
package/README.md CHANGED
@@ -44,4 +44,4 @@ _During deployments we remove the docs and strip comments._
44
44
 
45
45
  The package ships a dual ESM + CJS build plus a global stylesheet and type
46
46
  declarations. See the [Build system guide](./docs/build.md) for the output
47
- layout, entry-point contract, and how Rollup, webpack, and tsc split the work.
47
+ layout, entry-point contract, and the Rollup build steps.
@@ -1 +1 @@
1
- {"version":3,"file":"MrlAvatar.js","sources":["../../../../../src/components/avatar/MrlAvatar/MrlAvatar.tsx"],"sourcesContent":["import { lock, facilitatorBadge } from '@muraldevkit/ds-icons';\nimport {\n\thexToRgb,\n\tisValidHexColor,\n\tisValidRgbString,\n\tisValidRgbaString,\n\tstickyTextColor\n} from '@tactivos/mural-shared/lib/colors';\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { MrlSvg } from '../../svg/MrlSvg/MrlSvg';\n\nimport styles from './MrlAvatar.module.scss';\n\ntype AvatarKind = (typeof avatarValues.kind)[number];\ntype AvatarSize = (typeof avatarValues.size)[number];\n\ninterface avatarDefaults {\n\tkind: AvatarKind;\n\tsize: AvatarSize;\n\tavatarColor: string;\n}\n\nexport interface MrlAvatarPropTypes {\n\talt?: string;\n\tdataQa?: string;\n\timage?: React.ReactNode | string;\n\tkind?: AvatarKind;\n\tname?: string;\n\tonImageError?: React.ReactEventHandler<HTMLImageElement>;\n\tshowBorder?: boolean;\n\tsize?: AvatarSize;\n\tavatarColor?: string;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst avatarValues = {\n\tkind: ['default', 'facilitator', 'lock'] as const,\n\tsize: ['xsmall', 'small', 'medium', 'large'] as const\n};\n\nexport const defaultAvatarValues: avatarDefaults = {\n\tavatarColor: '#2f2f2f',\n\tkind: 'default',\n\tsize: 'medium'\n};\n\n/**\n * Renders an avatar component\n * @param {MrlAvatarPropTypes} props the props for your MrlAvatar\n * @returns {React.ReactElement} an avatar containing the props you pass\n */\nexport const MrlAvatar = ({\n\talt,\n\tavatarColor = defaultAvatarValues.avatarColor,\n\tdataQa,\n\tkind = defaultAvatarValues.kind,\n\timage,\n\tname,\n\tonImageError,\n\tshowBorder = false,\n\tsize = defaultAvatarValues.size,\n\t...rest\n}: MrlAvatarPropTypes): React.ReactElement => {\n\tconst containerClasses = classNames(styles['MrlAvatar'], 'MrlAvatar', {\n\t\t[styles[`MrlAvatar--${size}`]]: size && size !== 'medium'\n\t});\n\n\tconst isFacilitatorSize = size === 'small' || size === 'xsmall';\n\tconst showIcon = kind !== 'default' && isFacilitatorSize;\n\tconst iconContainerClasses = classNames(styles['MrlAvatar-icon-container'], {\n\t\t[styles[`MrlAvatar-icon-container--${size}`]]: size && size !== 'medium'\n\t});\n\n\tconst getAvatarRgb = () => {\n\t\tif (isValidHexColor(avatarColor)) {\n\t\t\treturn hexToRgb(avatarColor).toString();\n\t\t}\n\n\t\tif (isValidRgbString(avatarColor)) {\n\t\t\treturn avatarColor.substring(4, avatarColor.length - 1);\n\t\t}\n\n\t\tif (isValidRgbaString(avatarColor)) {\n\t\t\tconst lastComma = avatarColor.lastIndexOf(',');\n\n\t\t\treturn avatarColor.substring(5, lastComma);\n\t\t}\n\t};\n\n\tconst renderImage = () => {\n\t\tif (typeof image === 'string') {\n\t\t\tconst imgAltText = alt ? alt : name ? `${name}'s avatar` : 'Participant avatar';\n\n\t\t\treturn (\n\t\t\t\t<img\n\t\t\t\t\talt={imgAltText}\n\t\t\t\t\tclassName={styles['MrlAvatar-image']}\n\t\t\t\t\tdata-qa={`${dataQa || 'avatar'}-image`}\n\t\t\t\t\tonError={onImageError}\n\t\t\t\t\tsrc={image}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn image;\n\t};\n\n\tconst getInitials = (str: string | undefined): string => {\n\t\tif (!str) {\n\t\t\treturn '';\n\t\t}\n\n\t\tconst textLength = size === 'xsmall' ? 1 : 2;\n\n\t\t// Take the name passed in.\n\t\treturn (\n\t\t\tstr\n\t\t\t\t// Split it at each space to create an array of words\n\t\t\t\t.split(' ')\n\t\t\t\t// Take the first character from each word.\n\t\t\t\t.map((item: string) => item.charAt(0).toUpperCase())\n\t\t\t\t// Bring the characters back into one word\n\t\t\t\t.join('')\n\t\t\t\t// Make sure we remove spaces\n\t\t\t\t.replace(/ /g, '')\n\t\t\t\t// Return the correct number of characters\n\t\t\t\t.substring(0, textLength)\n\t\t);\n\t};\n\n\tconst isDarkText = stickyTextColor(avatarColor, '#000000', '#ffffff') === '#ffffff';\n\tconst safeColor = getAvatarRgb();\n\n\tconst backgroundColor =\n\t\timage && typeof image === 'string'\n\t\t\t? 'rgba(var(--mrl-color-white), 1)'\n\t\t\t: `rgba(${safeColor}, 0.08)`;\n\tconst borderColor = showIcon || showBorder ? `rgba(${safeColor}, 1` : 'transparent';\n\tconst textColor = isDarkText ? `rgba(${safeColor}, 1` : 'rgba(--mrl-gray-90, 1)';\n\n\treturn (\n\t\t<div className={containerClasses} data-qa={dataQa} {...rest}>\n\t\t\t<span\n\t\t\t\taria-label={name}\n\t\t\t\tclassName={`${styles['MrlAvatar-content']} MrlAvatar-content`}\n\t\t\t\tdata-qa={dataQa && `avatar-${image ? 'image-container' : 'initials'}`}\n\t\t\t\tstyle={{\n\t\t\t\t\tbackgroundColor: backgroundColor,\n\t\t\t\t\tborderColor: borderColor,\n\t\t\t\t\tcolor: textColor\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{image ? renderImage() : <span aria-hidden=\"true\">{getInitials(name)}</span>}\n\t\t\t</span>\n\t\t\t{showIcon && (\n\t\t\t\t<span\n\t\t\t\t\tclassName={iconContainerClasses}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tbackgroundColor: borderColor\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<MrlSvg\n\t\t\t\t\t\tclassName={styles['MrlAvatar-icon']}\n\t\t\t\t\t\tsize=\"auto\"\n\t\t\t\t\t\tsvg={kind === 'facilitator' ? facilitatorBadge : lock}\n\t\t\t\t\t/>\n\t\t\t\t</span>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n"],"names":["defaultAvatarValues","avatarColor","kind","size","MrlAvatar","_ref","alt","_ref$avatarColor","dataQa","_ref$kind","image","name","onImageError","_ref$showBorder","showBorder","_ref$size","rest","_objectWithoutProperties","_excluded","containerClasses","classNames","styles","concat","isFacilitatorSize","showIcon","iconContainerClasses","getAvatarRgb","isValidHexColor","hexToRgb","toString","isValidRgbString","substring","length","isValidRgbaString","lastComma","lastIndexOf","renderImage","imgAltText","React","createElement","className","onError","src","getInitials","str","textLength","split","map","item","charAt","toUpperCase","join","replace","isDarkText","stickyTextColor","safeColor","backgroundColor","borderColor","textColor","_extends","style","color","MrlSvg","svg","facilitatorBadge","lock"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCO,IAAMA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AAA,EAASX;AAAO,GAAA,EAAKQ,IAAI,CAAA,eAC1DsB,gBAAA,CAAAC,aAAA,CAAA,MAAA,EAAA;AACC,IAAA,YAAA,EAAY5B,IAAK;AACjB6B,IAAAA,SAAS,KAAAlB,MAAA,CAAKD,wBAAM,CAAC,mBAAmB,CAAC,EAAA,oBAAA,CAAqB;IAC9D,SAAA,EAASb,MAAM,cAAAc,MAAA,CAAcZ,KAAK,GAAG,iBAAiB,GAAG,UAAU,CAAG;AACtEkD,IAAAA,KAAK,EAAE;AACNJ,MAAAA,eAAe,EAAEA,eAAe;AAChCC,MAAAA,WAAW,EAAEA,WAAW;AACxBI,MAAAA,KAAK,EAAEH;AACR;GAAE,EAEDhD,KAAK,GAAG0B,WAAW,EAAE,gBAAGE,gBAAA,CAAAC,aAAA,CAAA,MAAA,EAAA;IAAM,aAAA,EAAY;GAAM,EAAEI,WAAW,CAAChC,IAAI,CAAQ,CACtE,CAAC,EACNa,QAAQ,iBACRc,gBAAA,CAAAC,aAAA,CAAA,MAAA,EAAA;AACCC,IAAAA,SAAS,EAAEf,oBAAqB;AAChCmC,IAAAA,KAAK,EAAE;AACNJ,MAAAA,eAAe,EAAEC;AAClB;AAAE,GAAA,eAEFnB,gBAAA,CAAAC,aAAA,CAACuB,aAAM,EAAA;AACNtB,IAAAA,SAAS,EAAEnB,wBAAM,CAAC,gBAAgB,CAAE;AACpClB,IAAAA,IAAI,EAAC,MAAM;AACX4D,IAAAA,GAAG,EAAE7D,IAAI,KAAK,aAAa,GAAG8D,wBAAgB,GAAGC;GACjD,CACI,CAEH,CAAC;AAER;;;;;"}
1
+ {"version":3,"file":"MrlAvatar.js","sources":["../../../../../src/components/avatar/MrlAvatar/MrlAvatar.tsx"],"sourcesContent":["import { lock, facilitatorBadge } from '@muraldevkit/ds-icons';\nimport {\n\thexToRgb,\n\tisValidHexColor,\n\tisValidRgbString,\n\tisValidRgbaString,\n\tstickyTextColor\n} from '@tactivos/mural-shared/lib/colors';\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { MrlSvg } from '../../svg/MrlSvg/MrlSvg';\n\nimport styles from './MrlAvatar.module.scss';\n\ntype AvatarKind = (typeof avatarValues.kind)[number];\ntype AvatarSize = (typeof avatarValues.size)[number];\n\ninterface avatarDefaults {\n\tkind: AvatarKind;\n\tsize: AvatarSize;\n\tavatarColor: string;\n}\n\nexport interface MrlAvatarPropTypes {\n\t/** Alt text when `image` is a URL. Defaults to \"<name>'s avatar\", or \"Participant avatar\" without a name. */\n\talt?: string;\n\tdataQa?: string;\n\t/** Image shown instead of the initials: a URL rendered as an `img`, or a custom element. */\n\timage?: React.ReactNode | string;\n\t/** Badge shown on the corner of small and xsmall avatars: a facilitator badge or a lock icon. Also draws the border in `avatarColor`. */\n\tkind?: AvatarKind;\n\t/** Name of the person. Used for the initials when there is no image, and set as `aria-label` on the avatar content. */\n\tname?: string;\n\t/** Called when the `image` URL fails to load. */\n\tonImageError?: React.ReactEventHandler<HTMLImageElement>;\n\t/** Draws a border in `avatarColor` around the avatar. */\n\tshowBorder?: boolean;\n\t/** Size of the avatar. xsmall shows one initial, the other sizes up to two. */\n\tsize?: AvatarSize;\n\t/** Color of the person as hex, rgb or rgba, used to tint the avatar. */\n\tavatarColor?: string;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst avatarValues = {\n\tkind: ['default', 'facilitator', 'lock'] as const,\n\tsize: ['xsmall', 'small', 'medium', 'large'] as const\n};\n\nexport const defaultAvatarValues: avatarDefaults = {\n\tavatarColor: '#2f2f2f',\n\tkind: 'default',\n\tsize: 'medium'\n};\n\n/**\n * Renders an avatar component\n * @param {MrlAvatarPropTypes} props the props for your MrlAvatar\n * @returns {React.ReactElement} an avatar containing the props you pass\n */\nexport const MrlAvatar = ({\n\talt,\n\tavatarColor = defaultAvatarValues.avatarColor,\n\tdataQa,\n\tkind = defaultAvatarValues.kind,\n\timage,\n\tname,\n\tonImageError,\n\tshowBorder = false,\n\tsize = defaultAvatarValues.size,\n\t...rest\n}: MrlAvatarPropTypes): React.ReactElement => {\n\tconst containerClasses = classNames(styles['MrlAvatar'], 'MrlAvatar', {\n\t\t[styles[`MrlAvatar--${size}`]]: size && size !== 'medium'\n\t});\n\n\tconst isFacilitatorSize = size === 'small' || size === 'xsmall';\n\tconst showIcon = kind !== 'default' && isFacilitatorSize;\n\tconst iconContainerClasses = classNames(styles['MrlAvatar-icon-container'], {\n\t\t[styles[`MrlAvatar-icon-container--${size}`]]: size && size !== 'medium'\n\t});\n\n\tconst getAvatarRgb = () => {\n\t\tif (isValidHexColor(avatarColor)) {\n\t\t\treturn hexToRgb(avatarColor).toString();\n\t\t}\n\n\t\tif (isValidRgbString(avatarColor)) {\n\t\t\treturn avatarColor.substring(4, avatarColor.length - 1);\n\t\t}\n\n\t\tif (isValidRgbaString(avatarColor)) {\n\t\t\tconst lastComma = avatarColor.lastIndexOf(',');\n\n\t\t\treturn avatarColor.substring(5, lastComma);\n\t\t}\n\t};\n\n\tconst renderImage = () => {\n\t\tif (typeof image === 'string') {\n\t\t\tconst imgAltText = alt ? alt : name ? `${name}'s avatar` : 'Participant avatar';\n\n\t\t\treturn (\n\t\t\t\t<img\n\t\t\t\t\talt={imgAltText}\n\t\t\t\t\tclassName={styles['MrlAvatar-image']}\n\t\t\t\t\tdata-qa={`${dataQa || 'avatar'}-image`}\n\t\t\t\t\tonError={onImageError}\n\t\t\t\t\tsrc={image}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn image;\n\t};\n\n\tconst getInitials = (str: string | undefined): string => {\n\t\tif (!str) {\n\t\t\treturn '';\n\t\t}\n\n\t\tconst textLength = size === 'xsmall' ? 1 : 2;\n\n\t\t// Take the name passed in.\n\t\treturn (\n\t\t\tstr\n\t\t\t\t// Split it at each space to create an array of words\n\t\t\t\t.split(' ')\n\t\t\t\t// Take the first character from each word.\n\t\t\t\t.map((item: string) => item.charAt(0).toUpperCase())\n\t\t\t\t// Bring the characters back into one word\n\t\t\t\t.join('')\n\t\t\t\t// Make sure we remove spaces\n\t\t\t\t.replace(/ /g, '')\n\t\t\t\t// Return the correct number of characters\n\t\t\t\t.substring(0, textLength)\n\t\t);\n\t};\n\n\tconst isDarkText = stickyTextColor(avatarColor, '#000000', '#ffffff') === '#ffffff';\n\tconst safeColor = getAvatarRgb();\n\n\tconst backgroundColor =\n\t\timage && typeof image === 'string'\n\t\t\t? 'rgba(var(--mrl-color-white), 1)'\n\t\t\t: `rgba(${safeColor}, 0.08)`;\n\tconst borderColor = showIcon || showBorder ? `rgba(${safeColor}, 1` : 'transparent';\n\tconst textColor = isDarkText ? `rgba(${safeColor}, 1` : 'rgba(--mrl-gray-90, 1)';\n\n\treturn (\n\t\t<div className={containerClasses} data-qa={dataQa} {...rest}>\n\t\t\t<span\n\t\t\t\taria-label={name}\n\t\t\t\tclassName={`${styles['MrlAvatar-content']} MrlAvatar-content`}\n\t\t\t\tdata-qa={dataQa && `avatar-${image ? 'image-container' : 'initials'}`}\n\t\t\t\tstyle={{\n\t\t\t\t\tbackgroundColor: backgroundColor,\n\t\t\t\t\tborderColor: borderColor,\n\t\t\t\t\tcolor: textColor\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{image ? renderImage() : <span aria-hidden=\"true\">{getInitials(name)}</span>}\n\t\t\t</span>\n\t\t\t{showIcon && (\n\t\t\t\t<span\n\t\t\t\t\tclassName={iconContainerClasses}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\tbackgroundColor: borderColor\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<MrlSvg\n\t\t\t\t\t\tclassName={styles['MrlAvatar-icon']}\n\t\t\t\t\t\tsize=\"auto\"\n\t\t\t\t\t\tsvg={kind === 'facilitator' ? facilitatorBadge : lock}\n\t\t\t\t\t/>\n\t\t\t\t</span>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n"],"names":["defaultAvatarValues","avatarColor","kind","size","MrlAvatar","_ref","alt","_ref$avatarColor","dataQa","_ref$kind","image","name","onImageError","_ref$showBorder","showBorder","_ref$size","rest","_objectWithoutProperties","_excluded","containerClasses","classNames","styles","concat","isFacilitatorSize","showIcon","iconContainerClasses","getAvatarRgb","isValidHexColor","hexToRgb","toString","isValidRgbString","substring","length","isValidRgbaString","lastComma","lastIndexOf","renderImage","imgAltText","React","createElement","className","onError","src","getInitials","str","textLength","split","map","item","charAt","toUpperCase","join","replace","isDarkText","stickyTextColor","safeColor","backgroundColor","borderColor","textColor","_extends","style","color","MrlSvg","svg","facilitatorBadge","lock"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDO,IAAMA,mBAAmC,GAAG;AAClDC,EAAAA,WAAW,EAAE,SAAS;AACtBC,EAAAA,IAAI,EAAE,SAAS;AACfC,EAAAA,IAAI,EAAE;AACP;;AAEA;AACA;AACA;AACA;AACA;AACO,IAAMC,SAAS,GAAGC,IAAA,IAWqB;AAAA,EAAA,IAV7CC,GAAG,GAAAD,IAAA,CAAHC,GAAG;IAAAC,gBAAA,GAAAF,IAAA,CACHJ,WAAW;AAAXA,IAAAA,WAAW,GAAAM,gBAAA,KAAA,MAAA,GAAGP,mBAAmB,CAACC,WAAW,GAAAM,gBAAA;IAC7CC,MAAM,GAAAH,IAAA,CAANG,MAAM;IAAAC,SAAA,GAAAJ,IAAA,CACNH,IAAI;AAAJA,IAAAA,IAAI,GAAAO,SAAA,KAAA,MAAA,GAAGT,mBAAmB,CAACE,IAAI,GAAAO,SAAA;IAC/BC,KAAK,GAAAL,IAAA,CAALK,KAAK;IACLC,IAAI,GAAAN,IAAA,CAAJM,IAAI;IACJC,YAAY,GAAAP,IAAA,CAAZO,YAAY;IAAAC,eAAA,GAAAR,IAAA,CACZS,UAAU;AAAVA,IAAAA,UAAU,GAAAD,eAAA,KAAA,MAAA,GAAG,KAAK,GAAAA,eAAA;IAAAE,SAAA,GAAAV,IAAA,CAClBF,IAAI;AAAJA,IAAAA,IAAI,GAAAY,SAAA,KAAA,MAAA,GAAGf,mBA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gB,CAAE;AACpClB,IAAAA,IAAI,EAAC,MAAM;AACX4D,IAAAA,GAAG,EAAE7D,IAAI,KAAK,aAAa,GAAG8D,wBAAgB,GAAGC;GACjD,CACI,CAEH,CAAC;AAER;;;;;"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"MrlAvatar-content":"MrlAvatar-content--E7qX_","MrlAvatar":"MrlAvatar--e8VFH","MrlAvatar--xsmall":"MrlAvatar--xsmall--jn6uR","MrlAvatar--small":"MrlAvatar--small--DdBZ7","MrlAvatar--large":"MrlAvatar--large--eT7KW","MrlAvatar-image":"MrlAvatar-image--lWg5A","MrlAvatar-icon-container":"MrlAvatar-icon-container--xUwiS","MrlAvatar-icon":"MrlAvatar-icon--tfC5v","MrlAvatar-icon-container--small":"MrlAvatar-icon-container--small--_IFIA","MrlAvatar-icon-container--xsmall":"MrlAvatar-icon-container--xsmall--oIGsd"};
5
+ var styles = {"MrlAvatar-content":"MrlAvatar-content--UQV5P","MrlAvatar":"MrlAvatar--CSmJ1","MrlAvatar--xsmall":"MrlAvatar--xsmall--zH7bY","MrlAvatar--small":"MrlAvatar--small--0DC-V","MrlAvatar--large":"MrlAvatar--large--PVJ9-","MrlAvatar-image":"MrlAvatar-image--JrO9I","MrlAvatar-icon-container":"MrlAvatar-icon-container--O40ga","MrlAvatar-icon":"MrlAvatar-icon--dPg3T","MrlAvatar-icon-container--small":"MrlAvatar-icon-container--small--oLvxG","MrlAvatar-icon-container--xsmall":"MrlAvatar-icon-container--xsmall--6Wbc1"};
6
6
 
7
7
  exports.default = styles;
8
8
  //# sourceMappingURL=MrlAvatar.module.scss.js.map
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"MrlAvatarButton":"MrlAvatarButton--b_ja8","MrlAvatarButton--large":"MrlAvatarButton--large--m1iPW"};
5
+ var styles = {"MrlAvatarButton":"MrlAvatarButton--bUWfo","MrlAvatarButton--large":"MrlAvatarButton--large--ANQDR"};
6
6
 
7
7
  exports.default = styles;
8
8
  //# sourceMappingURL=MrlAvatarButton.module.scss.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MrlBadge.js","sources":["../../../../../src/components/badge/MrlBadge/MrlBadge.tsx"],"sourcesContent":["import * as React from 'react';\nimport classnames from 'classnames';\nimport { check, error, info, warning } from '@muraldevkit/ds-icons';\n\nimport { DSIconType, MrlSvg } from '../../svg/MrlSvg/MrlSvg';\nimport { MrlComponentProps } from '../../../utils';\nimport styles from './MrlBadge.module.scss';\n\nexport type MrlBadgeKinds = 'default' | 'error' | 'info' | 'success' | 'warning';\n\nexport interface MrlBadgeProps\n\textends Omit<MrlComponentProps, 'style' | 'attrs'>,\n\t\tReact.ComponentProps<'div'> {\n\tclassName?: string;\n\t/**\n\t * Pass a custom icon to any badge kind.\n\t * Should be passed as an MrlSvg JSX Element.\n\t */\n\ticon?: JSX.Element;\n\tkind?: MrlBadgeKinds;\n\t/**\n\t * Displays a default icon for non-default badge kinds.\n\t * To have an icon in `kind=\"default\"` you must use the `icon` prop.\n\t */\n\tshowIcon?: boolean;\n\ttext: string;\n}\n\n/**\n * Badges are a common user interface element that\n * can be used to draw attention to content.\n * @param props - component props\n * @returns a MrlBadge React component.\n */\nexport const MrlBadge = ({\n\tclassName = '',\n\ticon,\n\tkind = 'default',\n\tshowIcon = false,\n\ttext,\n\t...remainingProps\n}: MrlBadgeProps): JSX.Element => {\n\tconst allClasses = classnames(\n\t\t'MrlBadge',\n\t\t[styles['MrlBadge']],\n\t\t{\n\t\t\t[styles[`MrlBadge--${kind}`]]: kind !== 'default'\n\t\t},\n\t\tclassName\n\t);\n\n\tconst renderIcon = () => {\n\t\tif (icon) {\n\t\t\treturn icon;\n\t\t}\n\n\t\tif (kind === 'default') {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (showIcon) {\n\t\t\tconst defaultIcons = {\n\t\t\t\terror: error as DSIconType,\n\t\t\t\tinfo: info as DSIconType,\n\t\t\t\tsuccess: check as DSIconType,\n\t\t\t\twarning: warning as DSIconType\n\t\t\t};\n\t\t\treturn <MrlSvg svg={defaultIcons[kind]} size=\"auto\" />;\n\t\t}\n\n\t\treturn null;\n\t};\n\n\treturn (\n\t\t<div {...remainingProps} className={allClasses}>\n\t\t\t{text}\n\t\t\t{renderIcon()}\n\t\t</div>\n\t);\n};\n"],"names":["MrlBadge","_ref","_ref$className","className","icon","_ref$kind","kind","_ref$showIcon","showIcon","text","remainingProps","_objectWithoutProperties","_excluded","allClasses","classnames","styles","concat","renderIcon","defaultIcons","error","info","success","check","warning","React","createElement","MrlSvg","svg","size","_extends"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMA,QAAQ,GAAGC,IAAA,IAOU;AAAA,EAAA,IAAAC,cAAA,GAAAD,IAAA,CANjCE,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,cAAA;IACdE,IAAI,GAAAH,IAAA,CAAJG,IAAI;IAAAC,SAAA,GAAAJ,IAAA,CACJK,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAA,MAAA,GAAG,SAAS,GAAAA,SAAA;IAAAE,aAAA,GAAAN,IAAA,CAChBO,QAAQ;AAARA,IAAAA,QAAQ,GAAAD,aAAA,KAAA,MAAA,GAAG,KAAK,GAAAA,aAAA;IAChBE,IAAI,GAAAR,IAAA,CAAJQ,IAAI;AACDC,IAAAA,cAAc,GAAAC,iDAAA,CAAAV,IAAA,EAAAW,SAAA,CAAA;AAEjB,EAAA,IAAMC,UAAU,GAAGC,2BAAU,CAC5B,UAAU,EACV,CAACC,uBAAM,CAAC,UAAU,CAAC,CAAC,EACpB;IACC,CAACA,uBAAM,cAAAC,MAAA,CAAcV,IAAI,CAAA,CAAG,GAAGA,IAAI,KAAK;GACxC,EACDH,SACD,CAAC;EAED,IAAMc,UAAU,GAAGA,MAAM;AACxB,IAAA,IAAIb,IAAI,EAAE;AACT,MAAA,OAAOA,IAAI;AACZ,IAAA;IAEA,IAAIE,IAAI,KAAK,SAAS,EAAE;AACvB,MAAA,OAAO,IAAI;AACZ,IAAA;AAEA,IAAA,IAAIE,QAAQ,EAAE;AACb,MAAA,IAAMU,YAAY,GAAG;AACpBC,QAAAA,KAAK,EAAEA,aAAmB;AAC1BC,QAAAA,IAAI,EAAEA,YAAkB;AACxBC,QAAAA,OAAO,EAAEC,aAAmB;AAC5BC,QAAAA,OAAO,EAAEA;OACT;AACD,MAAA,oBAAOC,gBAAA,CAAAC,aAAA,CAACC,aAAM,EAAA;AAACC,QAAAA,GAAG,EAAET,YAAY,CAACZ,IAAI,CAAE;AAACsB,QAAAA,IAAI,EAAC;AAAM,OAAE,CAAC;AACvD,IAAA;AAEA,IAAA,OAAO,IAAI;EACZ,CAAC;AAED,EAAA,oBACCJ,gBAAA,CAAAC,aAAA,CAAA,KAAA,EAAAI,iCAAA,KAASnB,cAAc,EAAA;AAAEP,IAAAA,SAAS,EAAEU;AAAW,GAAA,CAAA,EAC7CJ,IAAI,EACJQ,UAAU,EACP,CAAC;AAER;;;;"}
1
+ {"version":3,"file":"MrlBadge.js","sources":["../../../../../src/components/badge/MrlBadge/MrlBadge.tsx"],"sourcesContent":["import * as React from 'react';\nimport classnames from 'classnames';\nimport { check, error, info, warning } from '@muraldevkit/ds-icons';\n\nimport { DSIconType, MrlSvg } from '../../svg/MrlSvg/MrlSvg';\nimport { MrlComponentProps } from '../../../utils';\nimport styles from './MrlBadge.module.scss';\n\nexport type MrlBadgeKinds = 'default' | 'error' | 'info' | 'success' | 'warning';\n\nexport interface MrlBadgeProps\n\textends Omit<MrlComponentProps, 'style' | 'attrs'>,\n\t\tReact.ComponentProps<'div'> {\n\tclassName?: string;\n\t/**\n\t * Pass a custom icon to any badge kind.\n\t * Should be passed as an MrlSvg JSX Element.\n\t */\n\ticon?: JSX.Element;\n\t/** Visual variant of the badge. Also picks the default icon shown with `showIcon`. */\n\tkind?: MrlBadgeKinds;\n\t/**\n\t * Displays a default icon for non-default badge kinds.\n\t * To have an icon in `kind=\"default\"` you must use the `icon` prop.\n\t */\n\tshowIcon?: boolean;\n\t/** Text displayed inside the badge. */\n\ttext: string;\n}\n\n/**\n * Badges are a common user interface element that\n * can be used to draw attention to content.\n * @param props - component props\n * @returns a MrlBadge React component.\n */\nexport const MrlBadge = ({\n\tclassName = '',\n\ticon,\n\tkind = 'default',\n\tshowIcon = false,\n\ttext,\n\t...remainingProps\n}: MrlBadgeProps): JSX.Element => {\n\tconst allClasses = classnames(\n\t\t'MrlBadge',\n\t\t[styles['MrlBadge']],\n\t\t{\n\t\t\t[styles[`MrlBadge--${kind}`]]: kind !== 'default'\n\t\t},\n\t\tclassName\n\t);\n\n\tconst renderIcon = () => {\n\t\tif (icon) {\n\t\t\treturn icon;\n\t\t}\n\n\t\tif (kind === 'default') {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (showIcon) {\n\t\t\tconst defaultIcons = {\n\t\t\t\terror: error as DSIconType,\n\t\t\t\tinfo: info as DSIconType,\n\t\t\t\tsuccess: check as DSIconType,\n\t\t\t\twarning: warning as DSIconType\n\t\t\t};\n\t\t\treturn <MrlSvg svg={defaultIcons[kind]} size=\"auto\" />;\n\t\t}\n\n\t\treturn null;\n\t};\n\n\treturn (\n\t\t<div {...remainingProps} className={allClasses}>\n\t\t\t{text}\n\t\t\t{renderIcon()}\n\t\t</div>\n\t);\n};\n"],"names":["MrlBadge","_ref","_ref$className","className","icon","_ref$kind","kind","_ref$showIcon","showIcon","text","remainingProps","_objectWithoutProperties","_excluded","allClasses","classnames","styles","concat","renderIcon","defaultIcons","error","info","success","check","warning","React","createElement","MrlSvg","svg","size","_extends"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMA,QAAQ,GAAGC,IAAA,IA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;AAEA,IAAA,OAAO,IAAI;EACZ,CAAC;AAED,EAAA,oBACCJ,gBAAA,CAAAC,aAAA,CAAA,KAAA,EAAAI,iCAAA,KAASnB,cAAc,EAAA;AAAEP,IAAAA,SAAS,EAAEU;AAAW,GAAA,CAAA,EAC7CJ,IAAI,EACJQ,UAAU,EACP,CAAC;AAER;;;;"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"MrlBadge":"MrlBadge--qJnMn","MrlBadge--error":"MrlBadge--error--bn1gA","MrlBadge--info":"MrlBadge--info--sHw3k","MrlBadge--success":"MrlBadge--success--xHWDK","MrlBadge--warning":"MrlBadge--warning--L7ZsA"};
5
+ var styles = {"MrlBadge":"MrlBadge--KpN0F","MrlBadge--error":"MrlBadge--error--7Dl1c","MrlBadge--info":"MrlBadge--info--tELrc","MrlBadge--success":"MrlBadge--success--KVJc4","MrlBadge--warning":"MrlBadge--warning--HtMAc"};
6
6
 
7
7
  exports.default = styles;
8
8
  //# sourceMappingURL=MrlBadge.module.scss.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MrlBadgeNotification.js","sources":["../../../../../src/components/badge/MrlBadgeNotification/MrlBadgeNotification.tsx"],"sourcesContent":["import * as React from 'react';\nimport classnames from 'classnames';\n\nimport { MrlComponentProps } from '../../../utils';\nimport styles from './MrlBadgeNotification.module.scss';\n\nexport type MrlBadgeNotificationKinds = 'general' | 'info';\n\nexport interface MrlBadgeNotificationProps\n\textends Omit<MrlComponentProps, 'style' | 'attrs'>,\n\t\tReact.ComponentProps<'div'> {\n\tclassName?: string;\n\tkind?: MrlBadgeNotificationKinds;\n\t/**\n\t * A string of text to tell screen reader users what type of notification this is.\n\t * Defaults to 'notification'.\n\t */\n\tnotificationText?: string;\n\t/**\n\t * Used to turn a notification from a hint to numeric.\n\t * NOTE: Must pass a `number`, not a `string`.\n\t */\n\tnumber?: number;\n}\n\n/**\n * Badge notifications are a common user interface element that can be used to\n * draw attention to new or unread content, alerts, or updates.\n * @param props - component props\n * @returns a MrlBadgeNotification React component.\n */\nexport const MrlBadgeNotification = ({\n\tclassName = '',\n\tkind = 'general',\n\tnotificationText = 'notification',\n\tnumber,\n\t...remainingProps\n}: MrlBadgeNotificationProps): JSX.Element => {\n\tconst allClasses = classnames(\n\t\t'MrlBadgeNotification',\n\t\t{\n\t\t\t[styles['MrlBadgeNotification']]: true,\n\t\t\t[styles[`MrlBadgeNotification--${kind}`]]: kind !== 'general',\n\t\t\t[styles['MrlBadgeNotification--numeric']]: Boolean(number)\n\t\t},\n\t\tclassName\n\t);\n\n\treturn (\n\t\t<div {...remainingProps} className={allClasses} aria-label={`New ${notificationText}`}>\n\t\t\t{number ? number : ''}\n\t\t</div>\n\t);\n};\n"],"names":["MrlBadgeNotification","_ref","_ref$className","className","_ref$kind","kind","_ref$notificationText","notificationText","number","remainingProps","_objectWithoutProperties","_excluded","allClasses","classnames","styles","concat","Boolean","React","createElement","_extends"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMA,oBAAoB,GAAGC,IAAA,IAMU;AAAA,EAAA,IAAAC,cAAA,GAAAD,IAAA,CAL7CE,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,cAAA;IAAAE,SAAA,GAAAH,IAAA,CACdI,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAA,MAAA,GAAG,SAAS,GAAAA,SAAA;IAAAE,qBAAA,GAAAL,IAAA,CAChBM,gBAAgB;AAAhBA,IAAAA,gBAAgB,GAAAD,qBAAA,KAAA,MAAA,GAAG,cAAc,GAAAA,qBAAA;IACjCE,MAAM,GAAAP,IAAA,CAANO,MAAM;AACHC,IAAAA,cAAc,GAAAC,iDAAA,CAAAT,IAAA,EAAAU,SAAA,CAAA;AAEjB,EAAA,IAAMC,UAAU,GAAGC,2BAAU,CAC5B,sBAAsB,EACtB;AACC,IAAA,CAACC,mCAAM,CAAC,sBAAsB,CAAC,GAAG,IAAI;IACtC,CAACA,mCAAM,0BAAAC,MAAA,CAA0BV,IAAI,CAAA,CAAG,GAAGA,IAAI,KAAK,SAAS;AAC7D,IAAA,CAACS,mCAAM,CAAC,+BAA+B,CAAC,GAAGE,OAAO,CAACR,MAAM;GACzD,EACDL,SACD,CAAC;AAED,EAAA,oBACCc,gBAAA,CAAAC,aAAA,CAAA,KAAA,EAAAC,iCAAA,KAASV,cAAc,EAAA;AAAEN,IAAAA,SAAS,EAAES,UAAW;IAAC,YAAA,EAAA,MAAA,CAAAG,MAAA,CAAmBR,gBAAgB;AAAG,GAAA,CAAA,EACpFC,MAAM,GAAGA,MAAM,GAAG,EACf,CAAC;AAER;;;;"}
1
+ {"version":3,"file":"MrlBadgeNotification.js","sources":["../../../../../src/components/badge/MrlBadgeNotification/MrlBadgeNotification.tsx"],"sourcesContent":["import * as React from 'react';\nimport classnames from 'classnames';\n\nimport { MrlComponentProps } from '../../../utils';\nimport styles from './MrlBadgeNotification.module.scss';\n\nexport type MrlBadgeNotificationKinds = 'general' | 'info';\n\nexport interface MrlBadgeNotificationProps\n\textends Omit<MrlComponentProps, 'style' | 'attrs'>,\n\t\tReact.ComponentProps<'div'> {\n\tclassName?: string;\n\t/** Visual variant of the notification badge. */\n\tkind?: MrlBadgeNotificationKinds;\n\t/**\n\t * A string of text to tell screen reader users what type of notification this is.\n\t * Defaults to 'notification'.\n\t */\n\tnotificationText?: string;\n\t/**\n\t * Used to turn a notification from a hint to numeric.\n\t * NOTE: Must pass a `number`, not a `string`.\n\t */\n\tnumber?: number;\n}\n\n/**\n * Badge notifications are a common user interface element that can be used to\n * draw attention to new or unread content, alerts, or updates.\n * @param props - component props\n * @returns a MrlBadgeNotification React component.\n */\nexport const MrlBadgeNotification = ({\n\tclassName = '',\n\tkind = 'general',\n\tnotificationText = 'notification',\n\tnumber,\n\t...remainingProps\n}: MrlBadgeNotificationProps): JSX.Element => {\n\tconst allClasses = classnames(\n\t\t'MrlBadgeNotification',\n\t\t{\n\t\t\t[styles['MrlBadgeNotification']]: true,\n\t\t\t[styles[`MrlBadgeNotification--${kind}`]]: kind !== 'general',\n\t\t\t[styles['MrlBadgeNotification--numeric']]: Boolean(number)\n\t\t},\n\t\tclassName\n\t);\n\n\treturn (\n\t\t<div {...remainingProps} className={allClasses} aria-label={`New ${notificationText}`}>\n\t\t\t{number ? number : ''}\n\t\t</div>\n\t);\n};\n"],"names":["MrlBadgeNotification","_ref","_ref$className","className","_ref$kind","kind","_ref$notificationText","notificationText","number","remainingProps","_objectWithoutProperties","_excluded","allClasses","classnames","styles","concat","Boolean","React","createElement","_extends"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMA,oBAAoB,GAAGC,IAAA,IAMU;AAAA,EAAA,IAAAC,cAAA,GAAAD,IAAA,CAL7CE,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,cAAA;IAAAE,SAAA,GAAAH,IAAA,CACdI,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAA,MAAA,GAAG,SAAS,GAAAA,SAAA;IAAAE,qBAAA,GAAAL,IAAA,CAChBM,gBAAgB;AAAhBA,IAAAA,gBAAgB,GAAAD,qBAAA,KAAA,MAAA,GAAG,cAAc,GAAAA,qBAAA;IACjCE,MAAM,GAAAP,IAAA,CAANO,MAAM;AACHC,IAAAA,cAAc,GAAAC,iDAAA,CAAAT,IAAA,EAAAU,SAAA,CAAA;AAEjB,EAAA,IAAMC,UAAU,GAAGC,2BAAU,CAC5B,sBAAsB,EACtB;AACC,IAAA,CAACC,mCAAM,CAAC,sBAAsB,CAAC,GAAG,IAAI;IACtC,CAACA,mCAAM,0BAAAC,MAAA,CAA0BV,IAAI,CAAA,CAAG,GAAGA,IAAI,KAAK,SAAS;AAC7D,IAAA,CAACS,mCAAM,CAAC,+BAA+B,CAAC,GAAGE,OAAO,CAACR,MAAM;GACzD,EACDL,SACD,CAAC;AAED,EAAA,oBACCc,gBAAA,CAAAC,aAAA,CAAA,KAAA,EAAAC,iCAAA,KAASV,cAAc,EAAA;AAAEN,IAAAA,SAAS,EAAES,UAAW;IAAC,YAAA,EAAA,MAAA,CAAAG,MAAA,CAAmBR,gBAAgB;AAAG,GAAA,CAAA,EACpFC,MAAM,GAAGA,MAAM,GAAG,EACf,CAAC;AAER;;;;"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"MrlBadgeNotification":"MrlBadgeNotification--eAK4M","MrlBadgeNotification--info":"MrlBadgeNotification--info--YY6Sg","MrlBadgeNotification--numeric":"MrlBadgeNotification--numeric--jVYpk"};
5
+ var styles = {"MrlBadgeNotification":"MrlBadgeNotification--L-6vO","MrlBadgeNotification--info":"MrlBadgeNotification--info---rg4M","MrlBadgeNotification--numeric":"MrlBadgeNotification--numeric--nYv-K"};
6
6
 
7
7
  exports.default = styles;
8
8
  //# sourceMappingURL=MrlBadgeNotification.module.scss.js.map
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"MrlBreadcrumbItem":"MrlBreadcrumbItem--Yocns","MrlBreadcrumbItem--selected":"MrlBreadcrumbItem--selected--qSXAB","MrlBreadcrumbItem--icon":"MrlBreadcrumbItem--icon--gXFtv","MrlBreadcrumbItem--separator":"MrlBreadcrumbItem--separator--TqMuV"};
5
+ var styles = {"MrlBreadcrumbItem":"MrlBreadcrumbItem--LZttq","MrlBreadcrumbItem--selected":"MrlBreadcrumbItem--selected--w6EUT","MrlBreadcrumbItem--icon":"MrlBreadcrumbItem--icon---qJCT","MrlBreadcrumbItem--separator":"MrlBreadcrumbItem--separator--x0Px1"};
6
6
 
7
7
  exports.default = styles;
8
8
  //# sourceMappingURL=MrlBreadcrumbItem.module.scss.js.map
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"MrlBreadcrumbs--list":"MrlBreadcrumbs--list--ap5b9"};
5
+ var styles = {"MrlBreadcrumbs--list":"MrlBreadcrumbs--list--rGKQb"};
6
6
 
7
7
  exports.default = styles;
8
8
  //# sourceMappingURL=MrlBreadcrumbs.module.scss.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MrlAnimatedIconButton.js","sources":["../../../../../src/components/button/MrlAnimatedIconButton/MrlAnimatedIconButton.tsx"],"sourcesContent":["import classnames from 'classnames';\nimport * as React from 'react';\nimport { setAttributes } from '../../../utils';\nimport { MrlSvgAnimate, MrlSvgAnimateProps } from '../../svg/MrlSvgAnimate/MrlSvgAnimate';\nimport { AnimatedState } from '../../svg/constants';\nimport { MrlTooltip } from '../../tooltip';\nimport { MrlTooltipDefaults } from '../../tooltip/constants';\nimport { MrlIconButtonProps } from '../MrlIconButton/MrlIconButton';\nimport { buttonDefaults } from '../constants';\nimport { _isDisabled, _isSelected, _isToggleButton } from '../helpers';\nimport { useMrlTrackInteraction } from '../../../hooks/useMrlAnalytics';\n\nimport './MrlAnimatedIconButton.scss';\n\ninterface MrlAnimatedIconButtonProps extends Omit<MrlIconButtonProps, 'icon'> {\n\ticon: MrlSvgAnimateProps;\n}\n\ntype animationEvent = 'hover' | 'blur' | 'focus';\n\nexport const MrlAnimatedIconButton = React.forwardRef<\n\tHTMLButtonElement,\n\tMrlAnimatedIconButtonProps\n>(function MrlAnimatedIconButton(\n\t{\n\t\tattrs = {},\n\t\tbadge,\n\t\tdisableEvents = false,\n\t\ticon,\n\t\t// We intentionally deviate from the basic button for icon-buttons since the vast\n\t\t// majority of icon buttons are ghost buttons. The proptype remains\n\t\t// consistent with the basic button however to keep our code DRY.\n\t\tkind = 'ghost-inverse',\n\t\tloading = false,\n\t\tonClick,\n\t\tposition = MrlTooltipDefaults.position,\n\t\ttoggleAria = buttonDefaults.toggleAria,\n\t\ttoggleStyle,\n\t\ttext,\n\t\ttipAnchor = MrlTooltipDefaults.anchor,\n\t\ttooltipCustomRender,\n\t\teventId,\n\t\tsize = buttonDefaults.size,\n\t\tstate = buttonDefaults.state,\n\t\t...remainingProps\n\t}: MrlAnimatedIconButtonProps,\n\tref\n) {\n\t/**\n\t * State value to determine if the icon should be animating\n\t */\n\tconst [isAnimating, setAnimation] = React.useState<AnimatedState>('stop');\n\n\tconst [isHovered, setHover] = React.useState(false);\n\n\tconst [isSelected, setIsSelected] = React.useState(() => _isSelected(state));\n\n\tconst trackInteraction = useMrlTrackInteraction('MrlAnimatedIconButton', eventId);\n\n\tconst buttonRef = React.useRef<HTMLButtonElement>(null);\n\t/**\n\t * `useImperativeHandle` customizes the instance value\n\t * that is exposed to parent components when using ref.\n\t */\n\tReact.useImperativeHandle<HTMLButtonElement | null, HTMLButtonElement | null>(\n\t\tref,\n\t\t() => buttonRef.current\n\t);\n\n\t/**\n\t * MrlAnimatedIconButton could behave as a toggle button if toggleStyle is 'default' or 'secondary'\n\t */\n\tconst isToggleButton = toggleStyle && _isToggleButton(toggleStyle);\n\n\t/**\n\t * We need to watch the value of state to keep in sync\n\t * the value of state passed as props and the internal\n\t * isSelected piece of state.\n\t */\n\tReact.useEffect(() => {\n\t\t// allows consumers to set the 'selected' or 'selected-disabled' state from a parent component.\n\t\tsetIsSelected(_isSelected(state));\n\t}, [state]);\n\n\t/**\n\t * Handle onClick events\n\t * @param {React.MouseEvent<HTMLButtonElement>} e - mouse event\n\t */\n\tconst handleOnClick = (e: React.MouseEvent<HTMLButtonElement>): void => {\n\t\te.stopPropagation();\n\n\t\tif (_isDisabled(state, loading) || disableEvents) {\n\t\t\treturn;\n\t\t}\n\n\t\ttrackInteraction({ action: 'click', variant: kind });\n\n\t\tif (isToggleButton) {\n\t\t\tsetIsSelected((prevIsSelected) => !prevIsSelected);\n\t\t}\n\n\t\tif (onClick && typeof onClick === 'function') {\n\t\t\tonClick(e);\n\t\t}\n\t};\n\n\t/**\n\t * Handle animation status for mouse events exclusively\n\t * @param {boolean} mouseEnter - Determines if this is a mouseEnter event\n\t * @returns {void}\n\t */\n\tconst handleMouseInteraction = (mouseEnter: boolean): void => {\n\t\t/** Set hover status of button */\n\t\tsetHover(mouseEnter);\n\n\t\t/**\n\t\t * If the button is in focus and we trigger a mouse event\n\t\t * we don't need to change the animation state.\n\t\t */\n\t\tif (document.activeElement === buttonRef.current) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (isAnimating === 'play') {\n\t\t\tsetAnimation('stop');\n\t\t} else {\n\t\t\tsetAnimation('play');\n\t\t}\n\t};\n\n\t/**\n\t * Handle animation status for mouse and keyboard events\n\t * @param {animationEvent} eventType - The type of interaction that is triggering the animation update.\n\t * @param {boolean} startEvent - Whether or not this event should start an animation\n\t * @returns {void}\n\t */\n\tconst handleAnimation = (eventType: animationEvent, startEvent = false): void => {\n\t\t/** If the button is diabled or selected, the animation must be stopped */\n\t\tif (isSelected || _isDisabled(state, loading)) {\n\t\t\tsetAnimation('stop');\n\t\t\t/** We still need to track the hover state */\n\t\t\tsetHover(startEvent);\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * If the event is a hover interaction, handle them appropriately.\n\t\t * We do this to ensure you can hover and focus without restarting\n\t\t * or stopping the animation incorrectly.\n\t\t */\n\t\tif (eventType === 'hover') {\n\t\t\thandleMouseInteraction(startEvent);\n\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * Keyboard events\n\t\t */\n\t\tif (isAnimating === 'play') {\n\t\t\t/**\n\t\t\t * If a button is hovered and focused, do not stop the\n\t\t\t * animation on blur.\n\t\t\t */\n\t\t\tif (isHovered) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tsetAnimation('stop');\n\t\t\treturn;\n\t\t}\n\n\t\tsetAnimation('play');\n\t};\n\n\tconst handleBlur = () => {\n\t\thandleAnimation('blur');\n\t};\n\n\tconst handleFocus = () => {\n\t\thandleAnimation('focus');\n\t};\n\n\tconst handleMouseEnter = () => {\n\t\thandleAnimation('hover', true);\n\t};\n\n\tconst handleMouseLeave = () => {\n\t\thandleAnimation('hover');\n\t};\n\n\tconst classNames = classnames(\n\t\t'mrlIconButton',\n\t\t`mrlIconButton--${size}`,\n\t\t`mrlIconButton--${kind}`,\n\t\t'mrlAnimatedIconButton',\n\t\t`toggleStyle--${toggleStyle}`\n\t);\n\n\tconst attributes = setAttributes(attrs, {\n\t\t'aria-disabled': _isDisabled(state, loading),\n\t\t'aria-label': text,\n\t\t...(isToggleButton && { [`aria-${toggleAria}`]: isSelected || false }),\n\t\ttype: 'button'\n\t});\n\n\treturn (\n\t\t<MrlTooltip\n\t\t\tanchor={tipAnchor}\n\t\t\tposition={position}\n\t\t\ttext={text}\n\t\t\tcustomRender={tooltipCustomRender}\n\t\t>\n\t\t\t<button\n\t\t\t\t{...attributes}\n\t\t\t\t{...remainingProps}\n\t\t\t\tclassName={classNames}\n\t\t\t\tref={buttonRef}\n\t\t\t\tonBlur={handleBlur}\n\t\t\t\tonClick={handleOnClick}\n\t\t\t\tonFocus={handleFocus}\n\t\t\t\tonMouseEnter={handleMouseEnter}\n\t\t\t\tonMouseLeave={handleMouseLeave}\n\t\t\t>\n\t\t\t\t<div className=\"mrlAnimatedIconButton-iconContainer\">\n\t\t\t\t\t<MrlSvgAnimate {...icon} state={isAnimating} />\n\t\t\t\t</div>\n\t\t\t\t{badge}\n\t\t\t</button>\n\t\t</MrlTooltip>\n\t);\n});\n"],"names":["MrlAnimatedIconButton","React","forwardRef","_ref","ref","_ref$attrs","attrs","badge","_ref$disableEvents","disableEvents","icon","_ref$kind","kind","_ref$loading","loading","onClick","_ref$position","position","MrlTooltipDefaults","_ref$toggleAria","toggleAria","buttonDefaults","toggleStyle","text","_ref$tipAnchor","tipAnchor","anchor","tooltipCustomRender","eventId","_ref$size","size","_ref$state","state","remainingProps","_objectWithoutProperties","_excluded","_React$useState","useState","_React$useState2","_slicedToArray","isAnimating","setAnimation","_React$useState3","_React$useState4","isHovered","setHover","_React$useState5","_isSelected","_React$useState6","isSelected","setIsSelected","trackInteraction","useMrlTrackInteraction","buttonRef","useRef","useImperativeHandle","current","isToggleButton","_isToggleButton","useEffect","handleOnClick","e","stopPropagation","_isDisabled","action","variant","prevIsSelected","handleMouseInteraction","mouseEnter","document","activeElement","handleAnimation","eventType","startEvent","arguments","length","undefined","handleBlur","handleFocus","handleMouseEnter","handleMouseLeave","classNames","classnames","concat","attributes","setAttributes","_objectSpread","type","createElement","MrlTooltip","customRender","_extends","className","onBlur","onFocus","onMouseEnter","onMouseLeave","MrlSvgAnimate"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBO,IAAMA,qBAAqB,gBAAGC,gBAAK,CAACC,UAAU,CAGnD,SAASF,qBAAqBA,CAAAG,IAAA,EAuB/BC,GAAG,EACF;AAAA,EAAA,IAAAC,UAAA,GAAAF,IAAA,CAtBAG,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,UAAA;IACVE,KAAK,GAAAJ,IAAA,CAALI,KAAK;IAAAC,kBAAA,GAAAL,IAAA,CACLM,aAAa;AAAbA,IAAAA,aAAa,GAAAD,kBAAA,KAAA,MAAA,GAAG,KAAK,GAAAA,kBAAA;IACrBE,IAAI,GAAAP,IAAA,CAAJO,IAAI;IAAAC,SAAA,GAAAR,IAAA,CAIJS,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAA,MAAA,GAAG,eAAe,GAAAA,SAAA;IAAAE,YAAA,GAAAV,IAAA,CACtBW,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAA,MAAA,GAAG,KAAK,GAAAA,YAAA;IACfE,OAAO,GAAAZ,IAAA,CAAPY,OAAO;IAAAC,aAAA,GAAAb,IAAA,CACPc,QAAQ;AAARA,IAAAA,QAAQ,GAAAD,aAAA,KAAA,MAAA,GAAGE,4BAAkB,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A;AAClB2D,IAAAA,SAAS,EAAEX,UAAW;AACtB7E,IAAAA,GAAG,EAAEiD,SAAU;AACfwC,IAAAA,MAAM,EAAEhB,UAAW;AACnB9D,IAAAA,OAAO,EAAE6C,aAAc;AACvBkC,IAAAA,OAAO,EAAEhB,WAAY;AACrBiB,IAAAA,YAAY,EAAEhB,gBAAiB;AAC/BiB,IAAAA,YAAY,EAAEhB;GAAiB,CAAA,eAE/B/E,gBAAA,CAAAuF,aAAA,CAAA,KAAA,EAAA;AAAKI,IAAAA,SAAS,EAAC;GAAqC,eACnD3F,gBAAA,CAAAuF,aAAA,CAACS,2BAAa,EAAAN,iCAAA,KAAKjF,IAAI,EAAA;AAAEsB,IAAAA,KAAK,EAAEQ;AAAY,GAAA,CAAE,CAC1C,CAAC,EACLjC,KACM,CACG,CAAC;AAEf,CAAC;;;;"}
1
+ {"version":3,"file":"MrlAnimatedIconButton.js","sources":["../../../../../src/components/button/MrlAnimatedIconButton/MrlAnimatedIconButton.tsx"],"sourcesContent":["import classnames from 'classnames';\nimport * as React from 'react';\nimport { setAttributes } from '../../../utils';\nimport { MrlSvgAnimate, MrlSvgAnimateProps } from '../../svg/MrlSvgAnimate/MrlSvgAnimate';\nimport { AnimatedState } from '../../svg/constants';\nimport { MrlTooltip } from '../../tooltip';\nimport { MrlTooltipDefaults } from '../../tooltip/constants';\nimport { MrlIconButtonProps } from '../MrlIconButton/MrlIconButton';\nimport { buttonDefaults } from '../constants';\nimport { _isDisabled, _isSelected, _isToggleButton } from '../helpers';\nimport { useMrlTrackInteraction } from '../../../hooks/useMrlAnalytics';\n\nimport './MrlAnimatedIconButton.scss';\n\ninterface MrlAnimatedIconButtonProps extends Omit<MrlIconButtonProps, 'icon'> {\n\t/** Props of the animated icon to render. */\n\ticon: MrlSvgAnimateProps;\n}\n\ntype animationEvent = 'hover' | 'blur' | 'focus';\n\nexport const MrlAnimatedIconButton = React.forwardRef<\n\tHTMLButtonElement,\n\tMrlAnimatedIconButtonProps\n>(function MrlAnimatedIconButton(\n\t{\n\t\tattrs = {},\n\t\tbadge,\n\t\tdisableEvents = false,\n\t\ticon,\n\t\t// We intentionally deviate from the basic button for icon-buttons since the vast\n\t\t// majority of icon buttons are ghost buttons. The proptype remains\n\t\t// consistent with the basic button however to keep our code DRY.\n\t\tkind = 'ghost-inverse',\n\t\tloading = false,\n\t\tonClick,\n\t\tposition = MrlTooltipDefaults.position,\n\t\ttoggleAria = buttonDefaults.toggleAria,\n\t\ttoggleStyle,\n\t\ttext,\n\t\ttipAnchor = MrlTooltipDefaults.anchor,\n\t\ttooltipCustomRender,\n\t\teventId,\n\t\tsize = buttonDefaults.size,\n\t\tstate = buttonDefaults.state,\n\t\t...remainingProps\n\t}: MrlAnimatedIconButtonProps,\n\tref\n) {\n\t/**\n\t * State value to determine if the icon should be animating\n\t */\n\tconst [isAnimating, setAnimation] = React.useState<AnimatedState>('stop');\n\n\tconst [isHovered, setHover] = React.useState(false);\n\n\tconst [isSelected, setIsSelected] = React.useState(() => _isSelected(state));\n\n\tconst trackInteraction = useMrlTrackInteraction('MrlAnimatedIconButton', eventId);\n\n\tconst buttonRef = React.useRef<HTMLButtonElement>(null);\n\t/**\n\t * `useImperativeHandle` customizes the instance value\n\t * that is exposed to parent components when using ref.\n\t */\n\tReact.useImperativeHandle<HTMLButtonElement | null, HTMLButtonElement | null>(\n\t\tref,\n\t\t() => buttonRef.current\n\t);\n\n\t/**\n\t * MrlAnimatedIconButton could behave as a toggle button if toggleStyle is 'default' or 'secondary'\n\t */\n\tconst isToggleButton = toggleStyle && _isToggleButton(toggleStyle);\n\n\t/**\n\t * We need to watch the value of state to keep in sync\n\t * the value of state passed as props and the internal\n\t * isSelected piece of state.\n\t */\n\tReact.useEffect(() => {\n\t\t// allows consumers to set the 'selected' or 'selected-disabled' state from a parent component.\n\t\tsetIsSelected(_isSelected(state));\n\t}, [state]);\n\n\t/**\n\t * Handle onClick events\n\t * @param {React.MouseEvent<HTMLButtonElement>} e - mouse event\n\t */\n\tconst handleOnClick = (e: React.MouseEvent<HTMLButtonElement>): void => {\n\t\te.stopPropagation();\n\n\t\tif (_isDisabled(state, loading) || disableEvents) {\n\t\t\treturn;\n\t\t}\n\n\t\ttrackInteraction({ action: 'click', variant: kind });\n\n\t\tif (isToggleButton) {\n\t\t\tsetIsSelected((prevIsSelected) => !prevIsSelected);\n\t\t}\n\n\t\tif (onClick && typeof onClick === 'function') {\n\t\t\tonClick(e);\n\t\t}\n\t};\n\n\t/**\n\t * Handle animation status for mouse events exclusively\n\t * @param {boolean} mouseEnter - Determines if this is a mouseEnter event\n\t * @returns {void}\n\t */\n\tconst handleMouseInteraction = (mouseEnter: boolean): void => {\n\t\t/** Set hover status of button */\n\t\tsetHover(mouseEnter);\n\n\t\t/**\n\t\t * If the button is in focus and we trigger a mouse event\n\t\t * we don't need to change the animation state.\n\t\t */\n\t\tif (document.activeElement === buttonRef.current) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (isAnimating === 'play') {\n\t\t\tsetAnimation('stop');\n\t\t} else {\n\t\t\tsetAnimation('play');\n\t\t}\n\t};\n\n\t/**\n\t * Handle animation status for mouse and keyboard events\n\t * @param {animationEvent} eventType - The type of interaction that is triggering the animation update.\n\t * @param {boolean} startEvent - Whether or not this event should start an animation\n\t * @returns {void}\n\t */\n\tconst handleAnimation = (eventType: animationEvent, startEvent = false): void => {\n\t\t/** If the button is diabled or selected, the animation must be stopped */\n\t\tif (isSelected || _isDisabled(state, loading)) {\n\t\t\tsetAnimation('stop');\n\t\t\t/** We still need to track the hover state */\n\t\t\tsetHover(startEvent);\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * If the event is a hover interaction, handle them appropriately.\n\t\t * We do this to ensure you can hover and focus without restarting\n\t\t * or stopping the animation incorrectly.\n\t\t */\n\t\tif (eventType === 'hover') {\n\t\t\thandleMouseInteraction(startEvent);\n\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * Keyboard events\n\t\t */\n\t\tif (isAnimating === 'play') {\n\t\t\t/**\n\t\t\t * If a button is hovered and focused, do not stop the\n\t\t\t * animation on blur.\n\t\t\t */\n\t\t\tif (isHovered) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tsetAnimation('stop');\n\t\t\treturn;\n\t\t}\n\n\t\tsetAnimation('play');\n\t};\n\n\tconst handleBlur = () => {\n\t\thandleAnimation('blur');\n\t};\n\n\tconst handleFocus = () => {\n\t\thandleAnimation('focus');\n\t};\n\n\tconst handleMouseEnter = () => {\n\t\thandleAnimation('hover', true);\n\t};\n\n\tconst handleMouseLeave = () => {\n\t\thandleAnimation('hover');\n\t};\n\n\tconst classNames = classnames(\n\t\t'mrlIconButton',\n\t\t`mrlIconButton--${size}`,\n\t\t`mrlIconButton--${kind}`,\n\t\t'mrlAnimatedIconButton',\n\t\t`toggleStyle--${toggleStyle}`\n\t);\n\n\tconst attributes = setAttributes(attrs, {\n\t\t'aria-disabled': _isDisabled(state, loading),\n\t\t'aria-label': text,\n\t\t...(isToggleButton && { [`aria-${toggleAria}`]: isSelected || false }),\n\t\ttype: 'button'\n\t});\n\n\treturn (\n\t\t<MrlTooltip\n\t\t\tanchor={tipAnchor}\n\t\t\tposition={position}\n\t\t\ttext={text}\n\t\t\tcustomRender={tooltipCustomRender}\n\t\t>\n\t\t\t<button\n\t\t\t\t{...attributes}\n\t\t\t\t{...remainingProps}\n\t\t\t\tclassName={classNames}\n\t\t\t\tref={buttonRef}\n\t\t\t\tonBlur={handleBlur}\n\t\t\t\tonClick={handleOnClick}\n\t\t\t\tonFocus={handleFocus}\n\t\t\t\tonMouseEnter={handleMouseEnter}\n\t\t\t\tonMouseLeave={handleMouseLeave}\n\t\t\t>\n\t\t\t\t<div className=\"mrlAnimatedIconButton-iconContainer\">\n\t\t\t\t\t<MrlSvgAnimate {...icon} state={isAnimating} />\n\t\t\t\t</div>\n\t\t\t\t{badge}\n\t\t\t</button>\n\t\t</MrlTooltip>\n\t);\n});\n"],"names":["MrlAnimatedIconButton","React","forwardRef","_ref","ref","_ref$attrs","attrs","badge","_ref$disableEvents","disableEvents","icon","_ref$kind","kind","_ref$loading","loading","onClick","_ref$position","position","MrlTooltipDefaults","_ref$toggleAria","toggleAria","buttonDefaults","toggleStyle","text","_ref$tipAnchor","tipAnchor","anchor","tooltipCustomRender","eventId","_ref$size","size","_ref$state","state","remainingProps","_objectWithoutProperties","_excluded","_React$useState","useState","_React$useState2","_slicedToArray","isAnimating","setAnimation","_React$useState3","_React$useState4","isHovered","setHover","_React$useState5","_isSelected","_React$useState6","isSelected","setIsSelected","trackInteraction","useMrlTrackInteraction","buttonRef","useRef","useImperativeHandle","current","isToggleButton","_isToggleButton","useEffect","handleOnClick","e","stopPropagation","_isDisabled","action","variant","prevIsSelected","handleMouseInteraction","mouseEnter","document","activeElement","handleAnimation","eventType","startEvent","arguments","length","undefined","handleBlur","handleFocus","handleMouseEnter","handleMouseLeave","classNames","classnames","concat","attributes","setAttributes","_objectSpread","type","createElement","MrlTooltip","customRender","_extends","className","onBlur","onFocus","onMouseEnter","onMouseLeave","MrlSvgAnimate"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBO,IAAMA,qBAAqB,gBAAGC,gBAAK,CAACC,UAAU,CAGnD,SAASF,qBAAqBA,CAAAG,IAAA,EAuB/BC,GAAG,EACF;AAAA,EAAA,IAAAC,UAAA,GAAAF,IAAA,CAtBAG,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,UAAA;IACVE,KAAK,GAAAJ,IAAA,CAALI,KAAK;IAAAC,kBAAA,GAAAL,IAAA,CACLM,aAAa;AAAbA,IAAAA,aAAa,GAAAD,kBAAA,KAAA,MAAA,GAAG,KAAK,GAAAA,kBAAA;IACrBE,IAAI,GAAAP,IAAA,CAAJO,IAAI;IAAAC,SAAA,GAAAR,IAAA,CAIJS,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAA,MAAA,GAAG,e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,CAAAuF,aAAA,CAACC,qBAAU,EAAA;AACV/D,IAAAA,MAAM,EAAED,SAAU;AAClBR,IAAAA,QAAQ,EAAEA,QAAS;AACnBM,IAAAA,IAAI,EAAEA,IAAK;AACXmE,IAAAA,YAAY,EAAE/D;GAAoB,eAElC1B,gBAAA,CAAAuF,aAAA,CAAA,QAAA,EAAAG,iCAAA,CAAA,EAAA,EACKP,UAAU,EACVnD,cAAc,EAAA;AAClB2D,IAAAA,SAAS,EAAEX,UAAW;AACtB7E,IAAAA,GAAG,EAAEiD,SAAU;AACfwC,IAAAA,MAAM,EAAEhB,UAAW;AACnB9D,IAAAA,OAAO,EAAE6C,aAAc;AACvBkC,IAAAA,OAAO,EAAEhB,WAAY;AACrBiB,IAAAA,YAAY,EAAEhB,gBAAiB;AAC/BiB,IAAAA,YAAY,EAAEhB;GAAiB,CAAA,eAE/B/E,gBAAA,CAAAuF,aAAA,CAAA,KAAA,EAAA;AAAKI,IAAAA,SAAS,EAAC;GAAqC,eACnD3F,gBAAA,CAAAuF,aAAA,CAACS,2BAAa,EAAAN,iCAAA,KAAKjF,IAAI,EAAA;AAAEsB,IAAAA,KAAK,EAAEQ;AAAY,GAAA,CAAE,CAC1C,CAAC,EACLjC,KACM,CACG,CAAC;AAEf,CAAC;;;;"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"MrlProcessingButton":"MrlProcessingButton--PsEL8","MrlProcessingButton-is-processing":"MrlProcessingButton-is-processing--wm0pA"};
5
+ var styles = {"MrlProcessingButton":"MrlProcessingButton--ClCVf","MrlProcessingButton-is-processing":"MrlProcessingButton-is-processing--CNqDf"};
6
6
 
7
7
  exports.default = styles;
8
8
  //# sourceMappingURL=MrlProcessingButton.module.scss.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MrlCallout.js","sources":["../../../../../src/components/callout/MrlCallout/MrlCallout.tsx"],"sourcesContent":["import * as React from 'react';\nimport { MrlPopover, MrlPopoverProps } from '../../popover';\nimport { MrlText, MrlTextHeading } from '../../text';\nimport styles from './MrlCallout.module.scss';\nimport { MrlButton } from '../../button';\nimport { getUniqueId } from '../../../utils';\nimport { PORTAL_LAYERS } from '../../../utils/layers';\nimport { useRef } from 'react';\nimport { useMrlTrackInteraction } from '../../../hooks/useMrlAnalytics';\n\nexport type MrlCalloutPopoverProps = Omit<\n\tMrlPopoverProps,\n\t'children' | 'actionState' | 'isSubMenu' | 'triggerRef' | 'kind'\n>;\n\ninterface MrlCalloutCTA {\n\tonClick: () => void;\n\tdataQa?: string;\n\ttext: string;\n}\n\nexport interface MrlCalloutProps extends MrlCalloutPopoverProps {\n\t/** a unique id that binds the callout content and the trigger for assistive technologies */\n\tariaControls?: string;\n\tautoFocus?: boolean;\n\tchildren: React.ReactElement;\n\tdisableClickOutside?: boolean;\n\tdescription?: string | JSX.Element;\n\teyebrow?: string;\n\tid?: string;\n\timage?: JSX.Element;\n\trenderWithPortal?: boolean;\n\tshow: boolean;\n\ttitle?: string;\n\tprimaryCta?: MrlCalloutCTA;\n\tsecondaryCta?: MrlCalloutCTA;\n\t/**\n\t * Enables interaction tracking for this callout. Provide a stable, non-PII id\n\t * (e.g. 'ai-onboarding-callout'). When omitted, the callout emits no analytics.\n\t *\n\t * Note: title, eyebrow and description text are never emitted.\n\t */\n\teventId?: string;\n}\n\ntype MrlCalloutContent = Pick<\n\tMrlCalloutProps,\n\t'alignment' | 'description' | 'eyebrow' | 'image' | 'title'\n>;\n\n/**\n * MrlCallout component.\n *\n * @param props - The props.\n * @returns {React.ReactElement} The MrlCallout component.\n */\nexport const MrlCallout = (props: MrlCalloutProps): React.ReactElement => {\n\t// In some cases when `show` is false, the content is also null or empty.\n\t// At the same time callout shows fade-out animation and do not disappear immediately.\n\t// Saving last visible content to show it while animating on close.\n\tconst savedContent = useRef<MrlCalloutContent>();\n\tif (props.show) {\n\t\tsavedContent.current = {\n\t\t\talignment: props.alignment,\n\t\t\tdescription: props.description,\n\t\t\teyebrow: props.eyebrow,\n\t\t\timage: props.image,\n\t\t\ttitle: props.title\n\t\t};\n\t}\n\n\tconst {\n\t\tariaControls,\n\t\talignment = 'center',\n\t\tchildren,\n\t\tdescription,\n\t\tdisableClickOutside = true,\n\t\tdisableFocusTrap = true,\n\t\teyebrow,\n\t\thasCloseButton = true,\n\t\timage,\n\t\tonOpen,\n\t\tonClose,\n\t\tpoint = true,\n\t\tposition = 'bottom',\n\t\tprimaryCta,\n\t\tsecondaryCta,\n\t\tshow = true,\n\t\tspacing,\n\t\ttitle,\n\t\t// pulled out of `rest` so the nested MrlPopover doesn't emit a second, less\n\t\t// specific event for the same callout.\n\t\teventId,\n\t\t...rest\n\t} = props.show ? props : { ...props, ...savedContent.current };\n\n\tconst trackInteraction = useMrlTrackInteraction('MrlCallout', eventId);\n\n\t// the callout's visibility is consumer-controlled through `show`, so open/close\n\t// is emitted from that rather than from the popover's internal state.\n\tconst wasShownRef = React.useRef(false);\n\n\tReact.useEffect(() => {\n\t\tif (wasShownRef.current === show) return;\n\n\t\twasShownRef.current = show;\n\n\t\ttrackInteraction({ action: show ? 'open' : 'close' });\n\t}, [show, trackInteraction]);\n\n\tif (React.isValidElement(children) && children.type === React.Fragment) {\n\t\tthrow new Error(\n\t\t\t'MrlCallout accepts a single child and does not accept a React.Fragment as a child.'\n\t\t);\n\t}\n\n\tconst calloutId = React.useMemo(() => getUniqueId('callout-append'), []);\n\tconst triggerRef = React.useRef<HTMLElement | null>(null);\n\n\tconst childElement = React.useMemo(() => {\n\t\treturn React.Children.map(children, (child) => {\n\t\t\treturn React.cloneElement(child, {\n\t\t\t\t...child.props,\n\t\t\t\t/** if the callout is tied to an interactive element we need to ensure that it has role=\"button\" */\n\t\t\t\t...(child.type !== 'button' && { role: 'button' }),\n\t\t\t\t'aria-controls': ariaControls,\n\t\t\t\t'aria-expanded': show,\n\t\t\t\tid: calloutId\n\t\t\t});\n\t\t});\n\t}, [calloutId, children, show, ariaControls]);\n\n\t// Setting trigger ref to the element with the calloutId (set above in the childElement useMemo)\n\t//\n\t// We are using querySelector to set the triggerRef instead of assigning a ref directly in childElement because\n\t// a child element may already have a ref assigned to it and we don't want to override it.\n\tReact.useEffect(() => {\n\t\ttriggerRef.current = document.querySelector(`#${calloutId}`) as HTMLElement;\n\t}, [calloutId]);\n\n\treturn (\n\t\t<>\n\t\t\t{childElement}\n\t\t\t{triggerRef && (\n\t\t\t\t<MrlPopover\n\t\t\t\t\tactionState={{ actionType: 'click', isOpen: show }}\n\t\t\t\t\talignment={alignment}\n\t\t\t\t\tclassName={styles['MrlCallout']}\n\t\t\t\t\tdisableClickToOpen\n\t\t\t\t\tdisableClickOutside={disableClickOutside}\n\t\t\t\t\tdisableFocusTrap={disableFocusTrap}\n\t\t\t\t\thasCloseButton={hasCloseButton}\n\t\t\t\t\tkind=\"inverse\"\n\t\t\t\t\tonClose={onClose}\n\t\t\t\t\tonOpen={onOpen}\n\t\t\t\t\tpoint={point}\n\t\t\t\t\tportalProps={{\n\t\t\t\t\t\tid: PORTAL_LAYERS.CALLOUT.name,\n\t\t\t\t\t\tlayer: PORTAL_LAYERS.CALLOUT\n\t\t\t\t\t}}\n\t\t\t\t\tposition={position}\n\t\t\t\t\tspacing={spacing}\n\t\t\t\t\ttriggerRef={triggerRef}\n\t\t\t\t\t{...rest}\n\t\t\t\t>\n\t\t\t\t\t<div className={styles['MrlCallout--content']}>\n\t\t\t\t\t\t{eyebrow && (\n\t\t\t\t\t\t\t<MrlText attrs={{ className: styles['MrlCallout--eyebrow'] }} text={eyebrow} />\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{title && (\n\t\t\t\t\t\t\t<MrlTextHeading className={styles['MrlCallout--title']} level=\"2\" text={title} />\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{description && (\n\t\t\t\t\t\t\t<div className={styles['MrlCallout--description']}>\n\t\t\t\t\t\t\t\t{typeof description === 'string' ? <MrlText text={description} /> : description}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{image && <div className={styles['MrlCallout--image']}>{image}</div>}\n\t\t\t\t\t\t{(primaryCta || secondaryCta) && (\n\t\t\t\t\t\t\t<div className={styles['MrlCallout--footer']}>\n\t\t\t\t\t\t\t\t{secondaryCta && (\n\t\t\t\t\t\t\t\t\t<MrlButton\n\t\t\t\t\t\t\t\t\t\tdata-qa={secondaryCta.dataQa}\n\t\t\t\t\t\t\t\t\t\tkind=\"ghost-inverse\"\n\t\t\t\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\t\t\t\ttrackInteraction({\n\t\t\t\t\t\t\t\t\t\t\t\taction: 'click',\n\t\t\t\t\t\t\t\t\t\t\t\tmetadata: { cta: 'secondary' }\n\t\t\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\t\t\tsecondaryCta.onClick();\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\ttext={secondaryCta.text}\n\t\t\t\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t{primaryCta && (\n\t\t\t\t\t\t\t\t\t<MrlButton\n\t\t\t\t\t\t\t\t\t\tdata-qa={primaryCta.dataQa}\n\t\t\t\t\t\t\t\t\t\tkind=\"inverse\"\n\t\t\t\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\t\t\t\ttrackInteraction({\n\t\t\t\t\t\t\t\t\t\t\t\taction: 'click',\n\t\t\t\t\t\t\t\t\t\t\t\tmetadata: { cta: 'primary' }\n\t\t\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\t\t\tprimaryCta.onClick();\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\ttext={primaryCta.text}\n\t\t\t\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</MrlPopover>\n\t\t\t)}\n\t\t</>\n\t);\n};\n"],"names":["MrlCallout","props","savedContent","useRef","show","current","alignment","description","eyebrow","image","title","_ref","_objectSpread","ariaControls","_ref$alignment","children","_ref$disableClickOuts","disableClickOutside","_ref$disableFocusTrap","disableFocusTrap","_ref$hasCloseButton","hasCloseButton","onOpen","onClose","_ref$point","point","_ref$position","position","primaryCta","secondaryCta","_ref$show","spacing","eventId","rest","_objectWithoutProperties","_excluded","trackInteraction","useMrlTrackInteraction","wasShownRef","React","useEffect","action","isValidElement","type","Fragment","Error","calloutId","useMemo","getUniqueId","triggerRef","childElement","Children","map","child","cloneElement","role","id","document","querySelector","concat","createElement","MrlPopover","_extends","actionState","actionType","isOpen","className","styles","disableClickToOpen","kind","portalProps","PORTAL_LAYERS","CALLOUT","name","layer","MrlText","attrs","text","MrlTextHeading","level","MrlButton","dataQa","onClick","metadata","cta","size"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMA,UAAU,GAAIC,KAAsB,IAAyB;AACzE;AACA;AACA;AACA,EAAA,IAAMC,YAAY,GAAGC,YAAM,EAAqB;EAChD,IAAIF,KAAK,CAACG,IAAI,EAAE;IACfF,YAAY,CAACG,OAAO,GAAG;MACtBC,SAAS,EAAEL,KAAK,CAACK,SAAS;MAC1BC,WAAW,EAAEN,KAAK,CAACM,WAAW;MAC9BC,OAAO,EAAEP,KAAK,CAACO,OAAO;MACtBC,KAAK,EAAER,KAAK,CAACQ,KAAK;MAClBC,KAAK,EAAET,KAAK,CAACS;KACb;AACF,EAAA;AAEA,EAAA,IAAAC,IAAA,GAuBIV,KAAK,CAACG,IAAI,GAAGH,KAAK,GAAAW,uCAAA,CAAAA,uCAAA,CAAA,EAAA,EAAQX,KAAK,GAAKC,YAAY,CAACG,OAAO,CAAE;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mBAAS,EAAA;IACT,SAAA,EAASnD,YAAY,CAACoD,MAAO;AAC7BZ,IAAAA,IAAI,EAAC,eAAe;IACpBa,OAAO,EAAEA,MAAM;AACd9C,MAAAA,gBAAgB,CAAC;AAChBK,QAAAA,MAAM,EAAE,OAAO;AACf0C,QAAAA,QAAQ,EAAE;AAAEC,UAAAA,GAAG,EAAE;AAAY;AAC9B,OAAC,CAAC;MAEFvD,YAAY,CAACqD,OAAO,EAAE;IACvB,CAAE;IACFL,IAAI,EAAEhD,YAAY,CAACgD,IAAK;AACxBQ,IAAAA,IAAI,EAAC;GACL,CACD,EACAzD,UAAU,iBACVW,gBAAA,CAAAqB,aAAA,CAACoB,mBAAS,EAAA;IACT,SAAA,EAASpD,UAAU,CAACqD,MAAO;AAC3BZ,IAAAA,IAAI,EAAC,SAAS;IACda,OAAO,EAAEA,MAAM;AACd9C,MAAAA,gBAAgB,CAAC;AAChBK,QAAAA,MAAM,EAAE,OAAO;AACf0C,QAAAA,QAAQ,EAAE;AAAEC,UAAAA,GAAG,EAAE;AAAU;AAC5B,OAAC,CAAC;MAEFxD,UAAU,CAACsD,OAAO,EAAE;IACrB,CAAE;IACFL,IAAI,EAAEjD,UAAU,CAACiD,IAAK;AACtBQ,IAAAA,IAAI,EAAC;AAAO,GACZ,CAEE,CAEF,CACM,CAEZ,CAAC;AAEL;;;;"}
1
+ {"version":3,"file":"MrlCallout.js","sources":["../../../../../src/components/callout/MrlCallout/MrlCallout.tsx"],"sourcesContent":["import * as React from 'react';\nimport { MrlPopover, MrlPopoverProps } from '../../popover';\nimport { MrlText, MrlTextHeading } from '../../text';\nimport styles from './MrlCallout.module.scss';\nimport { MrlButton } from '../../button';\nimport { getUniqueId } from '../../../utils';\nimport { PORTAL_LAYERS } from '../../../utils/layers';\nimport { useRef } from 'react';\nimport { useMrlTrackInteraction } from '../../../hooks/useMrlAnalytics';\n\nexport type MrlCalloutPopoverProps = Omit<\n\tMrlPopoverProps,\n\t'children' | 'actionState' | 'isSubMenu' | 'triggerRef' | 'kind'\n>;\n\ninterface MrlCalloutCTA {\n\tonClick: () => void;\n\tdataQa?: string;\n\ttext: string;\n}\n\nexport interface MrlCalloutProps extends MrlCalloutPopoverProps {\n\t/** a unique id that binds the callout content and the trigger for assistive technologies */\n\tariaControls?: string;\n\t/** Has no effect (passed to the popover container, which ignores it). Focus on open is handled by the popover; see `disableFocusTrap`. Kept for backwards compatibility. */\n\tautoFocus?: boolean;\n\tchildren: React.ReactElement;\n\tdisableClickOutside?: boolean;\n\t/** Body text of the callout. A string renders as MrlText; pass an element for rich content. */\n\tdescription?: string | JSX.Element;\n\t/** Short label rendered above the title. */\n\teyebrow?: string;\n\tid?: string;\n\t/** Illustration rendered between the description and the actions. */\n\timage?: JSX.Element;\n\t/** Has no effect. Kept for backwards compatibility. The callout renders in the callout portal layer unless `portalProps` is overridden. */\n\trenderWithPortal?: boolean;\n\t/** Whether the callout is open. The consumer controls visibility; the trigger child gets `aria-expanded` from it. */\n\tshow: boolean;\n\t/** Heading of the callout, rendered as a level 2 heading. */\n\ttitle?: string;\n\t/** Primary action button rendered at the bottom of the callout. */\n\tprimaryCta?: MrlCalloutCTA;\n\t/** Secondary action button rendered before the primary one. */\n\tsecondaryCta?: MrlCalloutCTA;\n\t/**\n\t * Enables interaction tracking for this callout. Provide a stable, non-PII id\n\t * (e.g. 'ai-onboarding-callout'). When omitted, the callout emits no analytics.\n\t *\n\t * Note: title, eyebrow and description text are never emitted.\n\t */\n\teventId?: string;\n}\n\ntype MrlCalloutContent = Pick<\n\tMrlCalloutProps,\n\t'alignment' | 'description' | 'eyebrow' | 'image' | 'title'\n>;\n\n/**\n * MrlCallout component.\n *\n * @param props - The props.\n * @returns {React.ReactElement} The MrlCallout component.\n */\nexport const MrlCallout = (props: MrlCalloutProps): React.ReactElement => {\n\t// In some cases when `show` is false, the content is also null or empty.\n\t// At the same time callout shows fade-out animation and do not disappear immediately.\n\t// Saving last visible content to show it while animating on close.\n\tconst savedContent = useRef<MrlCalloutContent>();\n\tif (props.show) {\n\t\tsavedContent.current = {\n\t\t\talignment: props.alignment,\n\t\t\tdescription: props.description,\n\t\t\teyebrow: props.eyebrow,\n\t\t\timage: props.image,\n\t\t\ttitle: props.title\n\t\t};\n\t}\n\n\tconst {\n\t\tariaControls,\n\t\talignment = 'center',\n\t\tchildren,\n\t\tdescription,\n\t\tdisableClickOutside = true,\n\t\tdisableFocusTrap = true,\n\t\teyebrow,\n\t\thasCloseButton = true,\n\t\timage,\n\t\tonOpen,\n\t\tonClose,\n\t\tpoint = true,\n\t\tposition = 'bottom',\n\t\tprimaryCta,\n\t\tsecondaryCta,\n\t\tshow = true,\n\t\tspacing,\n\t\ttitle,\n\t\t// pulled out of `rest` so the nested MrlPopover doesn't emit a second, less\n\t\t// specific event for the same callout.\n\t\teventId,\n\t\t...rest\n\t} = props.show ? props : { ...props, ...savedContent.current };\n\n\tconst trackInteraction = useMrlTrackInteraction('MrlCallout', eventId);\n\n\t// the callout's visibility is consumer-controlled through `show`, so open/close\n\t// is emitted from that rather than from the popover's internal state.\n\tconst wasShownRef = React.useRef(false);\n\n\tReact.useEffect(() => {\n\t\tif (wasShownRef.current === show) return;\n\n\t\twasShownRef.current = show;\n\n\t\ttrackInteraction({ action: show ? 'open' : 'close' });\n\t}, [show, trackInteraction]);\n\n\tif (React.isValidElement(children) && children.type === React.Fragment) {\n\t\tthrow new Error(\n\t\t\t'MrlCallout accepts a single child and does not accept a React.Fragment as a child.'\n\t\t);\n\t}\n\n\tconst calloutId = React.useMemo(() => getUniqueId('callout-append'), []);\n\tconst triggerRef = React.useRef<HTMLElement | null>(null);\n\n\tconst childElement = React.useMemo(() => {\n\t\treturn React.Children.map(children, (child) => {\n\t\t\treturn React.cloneElement(child, {\n\t\t\t\t...child.props,\n\t\t\t\t/** if the callout is tied to an interactive element we need to ensure that it has role=\"button\" */\n\t\t\t\t...(child.type !== 'button' && { role: 'button' }),\n\t\t\t\t'aria-controls': ariaControls,\n\t\t\t\t'aria-expanded': show,\n\t\t\t\tid: calloutId\n\t\t\t});\n\t\t});\n\t}, [calloutId, children, show, ariaControls]);\n\n\t// Setting trigger ref to the element with the calloutId (set above in the childElement useMemo)\n\t//\n\t// We are using querySelector to set the triggerRef instead of assigning a ref directly in childElement because\n\t// a child element may already have a ref assigned to it and we don't want to override it.\n\tReact.useEffect(() => {\n\t\ttriggerRef.current = document.querySelector(`#${calloutId}`) as HTMLElement;\n\t}, [calloutId]);\n\n\treturn (\n\t\t<>\n\t\t\t{childElement}\n\t\t\t{triggerRef && (\n\t\t\t\t<MrlPopover\n\t\t\t\t\tactionState={{ actionType: 'click', isOpen: show }}\n\t\t\t\t\talignment={alignment}\n\t\t\t\t\tclassName={styles['MrlCallout']}\n\t\t\t\t\tdisableClickToOpen\n\t\t\t\t\tdisableClickOutside={disableClickOutside}\n\t\t\t\t\tdisableFocusTrap={disableFocusTrap}\n\t\t\t\t\thasCloseButton={hasCloseButton}\n\t\t\t\t\tkind=\"inverse\"\n\t\t\t\t\tonClose={onClose}\n\t\t\t\t\tonOpen={onOpen}\n\t\t\t\t\tpoint={point}\n\t\t\t\t\tportalProps={{\n\t\t\t\t\t\tid: PORTAL_LAYERS.CALLOUT.name,\n\t\t\t\t\t\tlayer: PORTAL_LAYERS.CALLOUT\n\t\t\t\t\t}}\n\t\t\t\t\tposition={position}\n\t\t\t\t\tspacing={spacing}\n\t\t\t\t\ttriggerRef={triggerRef}\n\t\t\t\t\t{...rest}\n\t\t\t\t>\n\t\t\t\t\t<div className={styles['MrlCallout--content']}>\n\t\t\t\t\t\t{eyebrow && (\n\t\t\t\t\t\t\t<MrlText attrs={{ className: styles['MrlCallout--eyebrow'] }} text={eyebrow} />\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{title && (\n\t\t\t\t\t\t\t<MrlTextHeading className={styles['MrlCallout--title']} level=\"2\" text={title} />\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{description && (\n\t\t\t\t\t\t\t<div className={styles['MrlCallout--description']}>\n\t\t\t\t\t\t\t\t{typeof description === 'string' ? <MrlText text={description} /> : description}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{image && <div className={styles['MrlCallout--image']}>{image}</div>}\n\t\t\t\t\t\t{(primaryCta || secondaryCta) && (\n\t\t\t\t\t\t\t<div className={styles['MrlCallout--footer']}>\n\t\t\t\t\t\t\t\t{secondaryCta && (\n\t\t\t\t\t\t\t\t\t<MrlButton\n\t\t\t\t\t\t\t\t\t\tdata-qa={secondaryCta.dataQa}\n\t\t\t\t\t\t\t\t\t\tkind=\"ghost-inverse\"\n\t\t\t\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\t\t\t\ttrackInteraction({\n\t\t\t\t\t\t\t\t\t\t\t\taction: 'click',\n\t\t\t\t\t\t\t\t\t\t\t\tmetadata: { cta: 'secondary' }\n\t\t\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\t\t\tsecondaryCta.onClick();\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\ttext={secondaryCta.text}\n\t\t\t\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t{primaryCta && (\n\t\t\t\t\t\t\t\t\t<MrlButton\n\t\t\t\t\t\t\t\t\t\tdata-qa={primaryCta.dataQa}\n\t\t\t\t\t\t\t\t\t\tkind=\"inverse\"\n\t\t\t\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\t\t\t\ttrackInteraction({\n\t\t\t\t\t\t\t\t\t\t\t\taction: 'click',\n\t\t\t\t\t\t\t\t\t\t\t\tmetadata: { cta: 'primary' }\n\t\t\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\t\t\tprimaryCta.onClick();\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\ttext={primaryCta.text}\n\t\t\t\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</MrlPopover>\n\t\t\t)}\n\t\t</>\n\t);\n};\n"],"names":["MrlCallout","props","savedContent","useRef","show","current","alignment","description","eyebrow","image","title","_ref","_objectSpread","ariaControls","_ref$alignment","children","_ref$disableClickOuts","disableClickOutside","_ref$disableFocusTrap","disableFocusTrap","_ref$hasCloseButton","hasCloseButton","onOpen","onClose","_ref$point","point","_ref$position","position","primaryCta","secondaryCta","_ref$show","spacing","eventId","rest","_objectWithoutProperties","_excluded","trackInteraction","useMrlTrackInteraction","wasShownRef","React","useEffect","action","isValidElement","type","Fragment","Error","calloutId","useMemo","getUniqueId","triggerRef","childElement","Children","map","child","cloneElement","role","id","document","querySelector","concat","createElement","MrlPopover","_extends","actionState","actionType","isOpen","className","styles","disableClickToOpen","kind","portalProps","PORTAL_LAYERS","CALLOUT","name","layer","MrlText","attrs","text","MrlTextHeading","level","MrlButton","dataQa","onClick","metadata","cta","size"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMA,UAAU,GAAIC,KAAsB,IAAyB;AACzE;AACA;AACA;AACA,EAAA,IAAMC,YAAY,GAAGC,YAAM,EAAqB;EAChD,IAAIF,KAAK,CAACG,IAAI,EAAE;IACfF,YAAY,CAACG,OAAO,GAAG;MACtBC,SAAS,EAAEL,KAAK,CAACK,SAAS;MAC1BC,WAAW,EAAEN,KAAK,CAACM,WAAW;MAC9BC,OAAO,EAAEP,KAAK,CAACO,OAAO;MACtBC,KAAK,EAAER,KAAK,CAACQ,KAAK;MAClBC,KAAK,EAAET,KAAK,CAACS;KACb;AACF,EAAA;AAEA,EAAA,IAAAC,IAAA,GAuBIV,KAAK,CAACG,IAAI,GAAGH,KAAK,G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BAAM,CAAC,oBAAoB;AAAE,GAAA,EAC3CtC,YAAY,iBACZU,gBAAA,CAAAqB,aAAA,CAACoB,mBAAS,EAAA;IACT,SAAA,EAASnD,YAAY,CAACoD,MAAO;AAC7BZ,IAAAA,IAAI,EAAC,eAAe;IACpBa,OAAO,EAAEA,MAAM;AACd9C,MAAAA,gBAAgB,CAAC;AAChBK,QAAAA,MAAM,EAAE,OAAO;AACf0C,QAAAA,QAAQ,EAAE;AAAEC,UAAAA,GAAG,EAAE;AAAY;AAC9B,OAAC,CAAC;MAEFvD,YAAY,CAACqD,OAAO,EAAE;IACvB,CAAE;IACFL,IAAI,EAAEhD,YAAY,CAACgD,IAAK;AACxBQ,IAAAA,IAAI,EAAC;GACL,CACD,EACAzD,UAAU,iBACVW,gBAAA,CAAAqB,aAAA,CAACoB,mBAAS,EAAA;IACT,SAAA,EAASpD,UAAU,CAACqD,MAAO;AAC3BZ,IAAAA,IAAI,EAAC,SAAS;IACda,OAAO,EAAEA,MAAM;AACd9C,MAAAA,gBAAgB,CAAC;AAChBK,QAAAA,MAAM,EAAE,OAAO;AACf0C,QAAAA,QAAQ,EAAE;AAAEC,UAAAA,GAAG,EAAE;AAAU;AAC5B,OAAC,CAAC;MAEFxD,UAAU,CAACsD,OAAO,EAAE;IACrB,CAAE;IACFL,IAAI,EAAEjD,UAAU,CAACiD,IAAK;AACtBQ,IAAAA,IAAI,EAAC;AAAO,GACZ,CAEE,CAEF,CACM,CAEZ,CAAC;AAEL;;;;"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"MrlCallout--content":"MrlCallout--content--o1NZT","MrlCallout--title":"MrlCallout--title--rEMq8","MrlCallout--eyebrow":"MrlCallout--eyebrow--zPSfr","MrlCallout--description":"MrlCallout--description--s524D","MrlCallout--image":"MrlCallout--image--F809e","MrlCallout--footer":"MrlCallout--footer--sjbLA","MrlCallout":"MrlCallout--O6y8L"};
5
+ var styles = {"MrlCallout--content":"MrlCallout--content--Et-FY","MrlCallout--title":"MrlCallout--title--v82T3","MrlCallout--eyebrow":"MrlCallout--eyebrow--OVcTC","MrlCallout--description":"MrlCallout--description--fgfRy","MrlCallout--image":"MrlCallout--image--N-lhU","MrlCallout--footer":"MrlCallout--footer--oEaG1","MrlCallout":"MrlCallout--hjjNH"};
6
6
 
7
7
  exports.default = styles;
8
8
  //# sourceMappingURL=MrlCallout.module.scss.js.map
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"MrlContainer":"MrlContainer--NL5F9","MrlContainer--helper":"MrlContainer--helper--F3ZW8","MrlContainer--nested":"MrlContainer--nested--r_XRG","MrlContainer--nested-options":"MrlContainer--nested-options--eLXfi","MrlContainer--nested-options-container":"MrlContainer--nested-options-container--DWNqy","MrlContainer--nested-options-divider":"MrlContainer--nested-options-divider--TTuWA"};
5
+ var styles = {"MrlContainer":"MrlContainer--nIscq","MrlContainer--helper":"MrlContainer--helper--EjD6A","MrlContainer--nested":"MrlContainer--nested--rKuON","MrlContainer--nested-options":"MrlContainer--nested-options--TURNx","MrlContainer--nested-options-container":"MrlContainer--nested-options-container--ga4qT","MrlContainer--nested-options-divider":"MrlContainer--nested-options-divider--JW7Uh"};
6
6
 
7
7
  exports.default = styles;
8
8
  //# sourceMappingURL=MrlContainer.module.scss.js.map
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"MrlDivider":"MrlDivider--ShT5H","MrlDivider--none":"MrlDivider--none--tdZix","MrlDivider--small":"MrlDivider--small--nbQys","MrlDivider--large":"MrlDivider--large--aKJM5","MrlDivider--xlarge":"MrlDivider--xlarge--pHvCK","MrlDivider--inverse":"MrlDivider--inverse--tyQXp","MrlDivider--vertical":"MrlDivider--vertical--to2id","MrlDivider--thin":"MrlDivider--thin--wHNtu","MrlDivider--horizontal":"MrlDivider--horizontal--EUB9p","MrlDivider--center":"MrlDivider--center--CrRjf"};
5
+ var styles = {"MrlDivider":"MrlDivider--CdLtC","MrlDivider--none":"MrlDivider--none--qnH8s","MrlDivider--small":"MrlDivider--small--JNypK","MrlDivider--large":"MrlDivider--large--djOAy","MrlDivider--xlarge":"MrlDivider--xlarge--51-SU","MrlDivider--inverse":"MrlDivider--inverse--Mcvld","MrlDivider--vertical":"MrlDivider--vertical--5d0Uj","MrlDivider--thin":"MrlDivider--thin--hL-qg","MrlDivider--horizontal":"MrlDivider--horizontal--5YBFD","MrlDivider--center":"MrlDivider--center---vsxu"};
6
6
 
7
7
  exports.default = styles;
8
8
  //# sourceMappingURL=MrlDivider.module.scss.js.map
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"mrl-empty":"mrl-empty--bBaPG","mrl-empty-default":"mrl-empty-default--UfKTY","mrl-empty-large":"mrl-empty-large--jiZ0b","mrl-empty-text":"mrl-empty-text--EE6Hx","mrl-empty-text-large":"mrl-empty-text-large--tKa8r","mrl-empty-color-text-secondary":"mrl-empty-color-text-secondary--cR3LB"};
5
+ var styles = {"mrl-empty":"mrl-empty--EQ4ks","mrl-empty-default":"mrl-empty-default--135Q1","mrl-empty-large":"mrl-empty-large--pUG8V","mrl-empty-text":"mrl-empty-text--R5soL","mrl-empty-text-large":"mrl-empty-text-large--zp2k-","mrl-empty-color-text-secondary":"mrl-empty-color-text-secondary--HpLOH"};
6
6
 
7
7
  exports.default = styles;
8
8
  //# sourceMappingURL=MrlEmpty.module.scss.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MrlEmpty.js","sources":["../../../../../src/components/empty/default/MrlEmpty.tsx"],"sourcesContent":["import * as React from 'react';\nimport classnames from 'classnames';\nimport { MrlCol, MrlGrid, MrlRow } from '../../grid';\nimport { MrlText, MrlTextHeading } from '../../text';\nimport styles from '../MrlEmpty.module.scss';\n\ninterface MrlEmptyProps {\n\t// icon or graphic\n\tgraphic?: JSX.Element;\n\t// heading\n\theading: string;\n\t// user friendl description\n\tdescription: string;\n\t// action you wish the user to take\n\taction?: JSX.Element;\n}\n\n/**\n * MrlEmpty for when there is no data to display for a single component.\n * @param MrlEmptyProps props\n * @returns MrlEmpty component\n */\nexport const MrlEmpty = ({\n\tgraphic,\n\tdescription,\n\taction,\n\theading,\n\t...rest\n}: MrlEmptyProps): JSX.Element => {\n\tconst classNames = classnames(styles['mrl-empty'], styles['mrl-empty-default']);\n\n\treturn (\n\t\t<MrlGrid className={classNames} {...rest}>\n\t\t\t{graphic && (\n\t\t\t\t<MrlRow align=\"center\" justify=\"center\">\n\t\t\t\t\t<MrlCol col={12}>{graphic}</MrlCol>\n\t\t\t\t</MrlRow>\n\t\t\t)}\n\t\t\t<MrlRow align=\"center\" justify=\"center\" className={styles['mrl-empty-text']}>\n\t\t\t\t<MrlCol col={12}>\n\t\t\t\t\t<MrlTextHeading level=\"4\" hierarchy=\"primary\" size=\"medium\" kind=\"title\">\n\t\t\t\t\t\t{heading}\n\t\t\t\t\t</MrlTextHeading>\n\t\t\t\t</MrlCol>\n\t\t\t\t<MrlCol col={12}>\n\t\t\t\t\t<MrlText size=\"xsmall\" attrs={{ className: styles['mrl-empty-color-text-secondary'] }}>\n\t\t\t\t\t\t{description}\n\t\t\t\t\t</MrlText>\n\t\t\t\t</MrlCol>\n\t\t\t</MrlRow>\n\t\t\t{action && (\n\t\t\t\t<MrlRow align=\"center\" justify=\"center\">\n\t\t\t\t\t<MrlCol col={12}>{action}</MrlCol>\n\t\t\t\t</MrlRow>\n\t\t\t)}\n\t\t</MrlGrid>\n\t);\n};\n"],"names":["MrlEmpty","_ref","graphic","description","action","heading","rest","_objectWithoutProperties","_excluded","classNames","classnames","styles","React","createElement","MrlGrid","_extends","className","MrlRow","align","justify","MrlCol","col","MrlTextHeading","level","hierarchy","size","kind","MrlText","attrs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA;AACA;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,EAAA;AAACC,IAAAA,GAAG,EAAE;AAAG,GAAA,eACfT,gBAAA,CAAAC,aAAA,CAACc,eAAO,EAAA;AAACF,IAAAA,IAAI,EAAC,QAAQ;AAACG,IAAAA,KAAK,EAAE;MAAEZ,SAAS,EAAEL,uBAAM,CAAC,gCAAgC;AAAE;GAAE,EACpFR,WACO,CACF,CACD,CAAC,EACRC,MAAM,iBACNQ,gBAAA,CAAAC,aAAA,CAACI,aAAM,EAAA;AAACC,IAAAA,KAAK,EAAC,QAAQ;AAACC,IAAAA,OAAO,EAAC;AAAQ,GAAA,eACtCP,gBAAA,CAAAC,aAAA,CAACO,aAAM,EAAA;AAACC,IAAAA,GAAG,EAAE;GAAG,EAAEjB,MAAe,CAC1B,CAED,CAAC;AAEZ;;;;"}
1
+ {"version":3,"file":"MrlEmpty.js","sources":["../../../../../src/components/empty/default/MrlEmpty.tsx"],"sourcesContent":["import * as React from 'react';\nimport classnames from 'classnames';\nimport { MrlCol, MrlGrid, MrlRow } from '../../grid';\nimport { MrlText, MrlTextHeading } from '../../text';\nimport styles from '../MrlEmpty.module.scss';\n\ninterface MrlEmptyProps {\n\t/** Icon or illustration shown above the heading. */\n\tgraphic?: JSX.Element;\n\t/** Heading of the empty state. */\n\theading: string;\n\t/** Text shown under the heading. */\n\tdescription: string;\n\t/** Call to action, usually a button, shown below the description. */\n\taction?: JSX.Element;\n}\n\n/**\n * MrlEmpty for when there is no data to display for a single component.\n * @param MrlEmptyProps props\n * @returns MrlEmpty component\n */\nexport const MrlEmpty = ({\n\tgraphic,\n\tdescription,\n\taction,\n\theading,\n\t...rest\n}: MrlEmptyProps): JSX.Element => {\n\tconst classNames = classnames(styles['mrl-empty'], styles['mrl-empty-default']);\n\n\treturn (\n\t\t<MrlGrid className={classNames} {...rest}>\n\t\t\t{graphic && (\n\t\t\t\t<MrlRow align=\"center\" justify=\"center\">\n\t\t\t\t\t<MrlCol col={12}>{graphic}</MrlCol>\n\t\t\t\t</MrlRow>\n\t\t\t)}\n\t\t\t<MrlRow align=\"center\" justify=\"center\" className={styles['mrl-empty-text']}>\n\t\t\t\t<MrlCol col={12}>\n\t\t\t\t\t<MrlTextHeading level=\"4\" hierarchy=\"primary\" size=\"medium\" kind=\"title\">\n\t\t\t\t\t\t{heading}\n\t\t\t\t\t</MrlTextHeading>\n\t\t\t\t</MrlCol>\n\t\t\t\t<MrlCol col={12}>\n\t\t\t\t\t<MrlText size=\"xsmall\" attrs={{ className: styles['mrl-empty-color-text-secondary'] }}>\n\t\t\t\t\t\t{description}\n\t\t\t\t\t</MrlText>\n\t\t\t\t</MrlCol>\n\t\t\t</MrlRow>\n\t\t\t{action && (\n\t\t\t\t<MrlRow align=\"center\" justify=\"center\">\n\t\t\t\t\t<MrlCol col={12}>{action}</MrlCol>\n\t\t\t\t</MrlRow>\n\t\t\t)}\n\t\t</MrlGrid>\n\t);\n};\n"],"names":["MrlEmpty","_ref","graphic","description","action","heading","rest","_objectWithoutProperties","_excluded","classNames","classnames","styles","React","createElement","MrlGrid","_extends","className","MrlRow","align","justify","MrlCol","col","MrlTextHeading","level","hierarchy","size","kind","MrlText","attrs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA;AACA;AACA;AACA;AACA;AACO,IAAMA,QAAQ,GAAGC,IAAA,IAMU;AAAA,EAAA,IALjCC,OAAO,GAAAD,IAAA,CAAPC,OAAO;IACPC,WAAW,GAAAF,IAAA,CAAXE,WAAW;IACXC,MAAM,GAAAH,IAAA,CAANG,MAAM;IACNC,OAAO,GAAAJ,IAAA,CAAPI,OAAO;AACJC,IAAAA,IAAI,GAAAC,iDAAA,CAAAN,IAAA,EAAAO,SAAA,CAAA;AAEP,EAAA,IAAMC,UAAU,GAAGC,2BAAU,CAACC,uBAAM,CAAC,WAAW,CAAC,EAAEA,uBAAM,CAAC,mBAAmB,CAAC,CAAC;AAE/E,EAAA,oBACCC,gBAAA,CAAAC,aAAA,CAACC,eAAO,EAAAC,iCAAA,CAAA;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EZ;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"MrlEmptyLarge.js","sources":["../../../../../src/components/empty/large/MrlEmptyLarge.tsx"],"sourcesContent":["import * as React from 'react';\nimport { MrlCol, MrlGrid, MrlRow } from '../../grid';\nimport { MrlText, MrlTextHeading } from '../../text';\nimport styles from '../MrlEmpty.module.scss';\nimport classnames from 'classnames';\n\ninterface MrlEmptyLargeProps {\n\t// icon or graphic\n\tgraphic?: JSX.Element;\n\t// heading\n\theading: string;\n\t// user friendl description\n\tdescription: string;\n\t// action you wish the user to take\n\taction?: JSX.Element;\n}\n\n/**\n * MrlEmptyLarge for when there is no data to display for an entire page.\n * @param MrlEmptyProps props\n * @returns MrlEmptyLarge\n */\nexport const MrlEmptyLarge = ({\n\tgraphic,\n\theading,\n\tdescription,\n\taction,\n\t...rest\n}: MrlEmptyLargeProps): JSX.Element => {\n\tconst classNames = classnames(styles['mrl-empty'], styles['mrl-empty-large']);\n\n\treturn (\n\t\t<MrlGrid className={classNames} {...rest}>\n\t\t\t{graphic && (\n\t\t\t\t<MrlRow align=\"center\" justify=\"center\">\n\t\t\t\t\t<MrlCol col={12}>{graphic}</MrlCol>\n\t\t\t\t</MrlRow>\n\t\t\t)}\n\t\t\t<MrlRow align=\"center\" justify=\"center\" className={styles['mrl-empty-text-large']}>\n\t\t\t\t<MrlCol col={12}>\n\t\t\t\t\t<MrlTextHeading level=\"4\" hierarchy=\"primary\" size=\"large\" kind=\"title\">\n\t\t\t\t\t\t{heading}\n\t\t\t\t\t</MrlTextHeading>\n\t\t\t\t</MrlCol>\n\t\t\t\t<MrlCol col={12}>\n\t\t\t\t\t<MrlText size=\"medium\" attrs={{ className: styles['mrl-empty-color-text-secondary'] }}>\n\t\t\t\t\t\t{description}\n\t\t\t\t\t</MrlText>\n\t\t\t\t</MrlCol>\n\t\t\t</MrlRow>\n\t\t\t{action && (\n\t\t\t\t<MrlRow align=\"center\" justify=\"center\">\n\t\t\t\t\t<MrlCol col={12}>{action}</MrlCol>\n\t\t\t\t</MrlRow>\n\t\t\t)}\n\t\t</MrlGrid>\n\t);\n};\n"],"names":["MrlEmptyLarge","_ref","graphic","heading","description","action","rest","_objectWithoutProperties","_excluded","classNames","classnames","styles","React","createElement","MrlGrid","_extends","className","MrlRow","align","justify","MrlCol","col","MrlTextHeading","level","hierarchy","size","kind","MrlText","attrs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA;AACA;AACA;AACA;AACA;AACO,IAAMA,aAAa,GAAGC,IAAA,IAMU;AAAA,EAAA,IALtCC,OAAO,GAAAD,IAAA,CAAPC,OAAO;IACPC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IACPC,WAAW,GAAAH,IAAA,CAAXG,WAAW;IACXC,MAAM,GAAAJ,IAAA,CAANI,MAAM;AACHC,IAAAA,IAAI,GAAAC,iDAAA,CAAAN,IAAA,EAAAO,SAAA,CAAA;AAEP,EAAA,IAAMC,UAAU,GAAGC,2BAAU,CAACC,uBAAM,CAAC,WAAW,CAAC,EAAEA,uBAAM,CAAC,iBAAiB,CAAC,CAAC;AAE7E,EAAA,oBACCC,gBAAA,CAAAC,aAAA,CAACC,eAAO,EAAAC,iCAAA,CAAA;AAACC,IAAAA,SAAS,EAAEP;GAAW,EAAKH,IAAI,GACtCJ,OAAO,iBACPU,gBAAA,CAAAC,aAAA,CAACI,aAAM,EAAA;AAACC,IAAAA,KAAK,EAAC,QAAQ;AAACC,IAAAA,OAAO,EAAC;AAAQ,GAAA,eACtCP,gBAAA,CAAAC,aAAA,CAACO,aAAM,EAAA;AAACC,IAAAA,GAAG,EAAE;GAAG,EAAEnB,OAAgB,CAC3B,CACR,eACDU,gBAAA,CAAAC,aAAA,CAACI,aAAM,EAAA;AAACC,IAAAA,KAAK,EAAC,QAAQ;AAACC,IAAAA,OAAO,EAAC,QAAQ;IAACH,SAAS,EAAEL,uBAAM,CAAC,sBAAsB;AAAE,GAAA,eACjFC,gBAAA,CAAAC,aAAA,CAACO,aAAM,EAAA;AAACC,IAAAA,GAAG,EAAE;AAAG,GAAA,eACfT,gBAAA,CAAAC,aAAA,CAACS,6BAAc,EAAA;AAACC,IAAAA,KAAK,EAAC,GAAG;AAACC,IAAAA,SAAS,EAAC,SAAS;AAACC,IAAAA,IAAI,EAAC,OAAO;AAACC,IAAAA,IAAI,EAAC;GAAO,EACrEvB,OACc,CACT,CAAC,eACTS,gBAAA,CAAAC,aAAA,CAACO,aAAM,EAAA;AAACC,IAAAA,GAAG,EAAE;AAAG,GAAA,eACfT,gBAAA,CAAAC,aAAA,CAACc,eAAO,EAAA;AAACF,IAAAA,IAAI,EAAC,QAAQ;AAACG,IAAAA,KAAK,EAAE;MAAEZ,SAAS,EAAEL,uBAAM,CAAC,gCAAgC;AAAE;GAAE,EACpFP,WACO,CACF,CACD,CAAC,EACRC,MAAM,iBACNO,gBAAA,CAAAC,aAAA,CAACI,aAAM,EAAA;AAACC,IAAAA,KAAK,EAAC,QAAQ;AAACC,IAAAA,OAAO,EAAC;AAAQ,GAAA,eACtCP,gBAAA,CAAAC,aAAA,CAACO,aAAM,EAAA;AAACC,IAAAA,GAAG,EAAE;GAAG,EAAEhB,MAAe,CAC1B,CAED,CAAC;AAEZ;;;;"}
1
+ {"version":3,"file":"MrlEmptyLarge.js","sources":["../../../../../src/components/empty/large/MrlEmptyLarge.tsx"],"sourcesContent":["import * as React from 'react';\nimport { MrlCol, MrlGrid, MrlRow } from '../../grid';\nimport { MrlText, MrlTextHeading } from '../../text';\nimport styles from '../MrlEmpty.module.scss';\nimport classnames from 'classnames';\n\ninterface MrlEmptyLargeProps {\n\t/** Icon or illustration shown above the heading. */\n\tgraphic?: JSX.Element;\n\t/** Heading of the empty state. */\n\theading: string;\n\t/** Text shown under the heading. */\n\tdescription: string;\n\t/** Call to action, usually a button, shown below the description. */\n\taction?: JSX.Element;\n}\n\n/**\n * MrlEmptyLarge for when there is no data to display for an entire page.\n * @param MrlEmptyProps props\n * @returns MrlEmptyLarge\n */\nexport const MrlEmptyLarge = ({\n\tgraphic,\n\theading,\n\tdescription,\n\taction,\n\t...rest\n}: MrlEmptyLargeProps): JSX.Element => {\n\tconst classNames = classnames(styles['mrl-empty'], styles['mrl-empty-large']);\n\n\treturn (\n\t\t<MrlGrid className={classNames} {...rest}>\n\t\t\t{graphic && (\n\t\t\t\t<MrlRow align=\"center\" justify=\"center\">\n\t\t\t\t\t<MrlCol col={12}>{graphic}</MrlCol>\n\t\t\t\t</MrlRow>\n\t\t\t)}\n\t\t\t<MrlRow align=\"center\" justify=\"center\" className={styles['mrl-empty-text-large']}>\n\t\t\t\t<MrlCol col={12}>\n\t\t\t\t\t<MrlTextHeading level=\"4\" hierarchy=\"primary\" size=\"large\" kind=\"title\">\n\t\t\t\t\t\t{heading}\n\t\t\t\t\t</MrlTextHeading>\n\t\t\t\t</MrlCol>\n\t\t\t\t<MrlCol col={12}>\n\t\t\t\t\t<MrlText size=\"medium\" attrs={{ className: styles['mrl-empty-color-text-secondary'] }}>\n\t\t\t\t\t\t{description}\n\t\t\t\t\t</MrlText>\n\t\t\t\t</MrlCol>\n\t\t\t</MrlRow>\n\t\t\t{action && (\n\t\t\t\t<MrlRow align=\"center\" justify=\"center\">\n\t\t\t\t\t<MrlCol col={12}>{action}</MrlCol>\n\t\t\t\t</MrlRow>\n\t\t\t)}\n\t\t</MrlGrid>\n\t);\n};\n"],"names":["MrlEmptyLarge","_ref","graphic","heading","description","action","rest","_objectWithoutProperties","_excluded","classNames","classnames","styles","React","createElement","MrlGrid","_extends","className","MrlRow","align","justify","MrlCol","col","MrlTextHeading","level","hierarchy","size","kind","MrlText","attrs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA;AACA;AACA;AACA;AACA;AACO,IAAMA,aAAa,GAAGC,IAAA,IAMU;AAAA,EAAA,IALtCC,OAAO,GAAAD,IAAA,CAAPC,OAAO;IACPC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IACPC,WAAW,GAAAH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AAEL,uBAAM,CAAC,gCAAgC;AAAE;GAAE,EACpFP,WACO,CACF,CACD,CAAC,EACRC,MAAM,iBACNO,gBAAA,CAAAC,aAAA,CAACI,aAAM,EAAA;AAACC,IAAAA,KAAK,EAAC,QAAQ;AAACC,IAAAA,OAAO,EAAC;AAAQ,GAAA,eACtCP,gBAAA,CAAAC,aAAA,CAACO,aAAM,EAAA;AAACC,IAAAA,GAAG,EAAE;GAAG,EAAEhB,MAAe,CAC1B,CAED,CAAC;AAEZ;;;;"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"MrlFileUpload":"MrlFileUpload--q42Jc","MrlFileUpload-label":"MrlFileUpload-label--fuqMG","MrlFileUpload-zone":"MrlFileUpload-zone--pB0EK","MrlFileUpload-zone--dragging":"MrlFileUpload-zone--dragging--aZBH2","MrlFileUpload-zone--uploading":"MrlFileUpload-zone--uploading--f0aUR","MrlFileUpload-zone--complete":"MrlFileUpload-zone--complete--HeuVL","MrlFileUpload-zone--error":"MrlFileUpload-zone--error--f5DIT","MrlFileUpload-zone--disabled":"MrlFileUpload-zone--disabled--UgSP5","MrlFileUpload-content":"MrlFileUpload-content--vybKc","MrlFileUpload-preloader":"MrlFileUpload-preloader--Aib44","MrlFileUpload-heading":"MrlFileUpload-heading--J4xnq","MrlFileUpload-heading--accent":"MrlFileUpload-heading--accent--UCQja","MrlFileUpload-heading--strong":"MrlFileUpload-heading--strong--FRgxv","MrlFileUpload-icon":"MrlFileUpload-icon--ZLxPa","MrlFileUpload-icon--accent":"MrlFileUpload-icon--accent--bav01","MrlFileUpload-icon--success":"MrlFileUpload-icon--success--G_dKs","MrlFileUpload-progress":"MrlFileUpload-progress--a6AlX","MrlFileUpload-input":"MrlFileUpload-input--GCD8R"};
5
+ var styles = {"MrlFileUpload":"MrlFileUpload--xPiOB","MrlFileUpload-label":"MrlFileUpload-label--ox2Jl","MrlFileUpload-zone":"MrlFileUpload-zone--hDA1X","MrlFileUpload-zone--dragging":"MrlFileUpload-zone--dragging--eBHeZ","MrlFileUpload-zone--uploading":"MrlFileUpload-zone--uploading--QMcwq","MrlFileUpload-zone--complete":"MrlFileUpload-zone--complete--25bHg","MrlFileUpload-zone--error":"MrlFileUpload-zone--error--VKRdM","MrlFileUpload-zone--disabled":"MrlFileUpload-zone--disabled--yak8Y","MrlFileUpload-content":"MrlFileUpload-content--XMNYQ","MrlFileUpload-preloader":"MrlFileUpload-preloader--rUQ1H","MrlFileUpload-heading":"MrlFileUpload-heading--dMec-","MrlFileUpload-heading--accent":"MrlFileUpload-heading--accent--HvTFP","MrlFileUpload-heading--strong":"MrlFileUpload-heading--strong--BGS3e","MrlFileUpload-icon":"MrlFileUpload-icon--mnypl","MrlFileUpload-icon--accent":"MrlFileUpload-icon--accent--He-Z2","MrlFileUpload-icon--success":"MrlFileUpload-icon--success--19V2N","MrlFileUpload-progress":"MrlFileUpload-progress--Qz8Uw","MrlFileUpload-input":"MrlFileUpload-input--pkwwr"};
6
6
 
7
7
  exports.default = styles;
8
8
  //# sourceMappingURL=MrlFileUpload.module.scss.js.map
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"MrlFilter":"MrlFilter--f_g2l"};
5
+ var styles = {"MrlFilter":"MrlFilter--22siM"};
6
6
 
7
7
  exports.default = styles;
8
8
  //# sourceMappingURL=MrlFilter.module.scss.js.map
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"MrlFilterItem":"MrlFilterItem--qYLqp","MrlFilterItem-has-count":"MrlFilterItem-has-count--sHcsy"};
5
+ var styles = {"MrlFilterItem":"MrlFilterItem--yUzim","MrlFilterItem-has-count":"MrlFilterItem-has-count--ApmvA"};
6
6
 
7
7
  exports.default = styles;
8
8
  //# sourceMappingURL=MrlFilterItem.module.scss.js.map
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"MrlCheckbox":"MrlCheckbox--e3NFY"};
5
+ var styles = {"MrlCheckbox":"MrlCheckbox--M-yX5"};
6
6
 
7
7
  exports.default = styles;
8
8
  //# sourceMappingURL=MrlCheckbox.module.scss.js.map
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"MrlCheckboxStandalone-input":"MrlCheckboxStandalone-input--O6G41","MrlCheckboxStandalone-inputDisplay":"MrlCheckboxStandalone-inputDisplay--TT8t0","MrlCheckboxStandalone":"MrlCheckboxStandalone--ChU0R","MrlCheckboxStandalone-inputDisplay-icon":"MrlCheckboxStandalone-inputDisplay-icon--UlYn3"};
5
+ var styles = {"MrlCheckboxStandalone-input":"MrlCheckboxStandalone-input--RovqT","MrlCheckboxStandalone-inputDisplay":"MrlCheckboxStandalone-inputDisplay--kj7hF","MrlCheckboxStandalone":"MrlCheckboxStandalone--fMYY5","MrlCheckboxStandalone-inputDisplay-icon":"MrlCheckboxStandalone-inputDisplay-icon--v4zgX"};
6
6
 
7
7
  exports.default = styles;
8
8
  //# sourceMappingURL=MrlCheckboxStandalone.module.scss.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MrlDatePicker.js","sources":["../../../../../src/components/form/date-picker/MrlDatePicker.tsx"],"sourcesContent":["import * as React from 'react';\nimport classnames from 'classnames';\nimport { calendar } from '@muraldevkit/ds-icons';\nimport { useActiveColor } from '../hooks/useActiveColor';\nimport { InputStates } from '../constants';\nimport { MrlSvg } from '../../svg/MrlSvg';\nimport styles from './MrlDatePicker.module.scss';\nimport { DataQa } from '../../../utils/dataQa';\nimport { useMrlTrackInteraction } from '../../../hooks/useMrlAnalytics';\n\nexport interface MrlDatePickerProps extends React.ComponentPropsWithRef<'input'>, DataQa {\n\t/** Id of the text input */\n\tinputId: string;\n\tkind?: 'default' | 'borderless';\n\t/** The value of the text input used to make it a controlled input */\n\tvalue?: string;\n\t/**\n\t * Changes the state of the input based on user permissions or actions.\n\t */\n\tstate?: InputStates;\n\tautofocus?: boolean;\n\t/**\n\t * Event handler for onChange Events\n\t * The value is normalized to yyyy-mm-dd\n\t *\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date\n\t */\n\tonChange?: React.ComponentPropsWithRef<'input'>['onChange'];\n\t/**\n\t * Enables interaction tracking for this date picker. Provide a stable, non-PII id\n\t * (e.g. 'trial-end-date'). When omitted, the date picker emits no analytics.\n\t *\n\t * Note: the selected date is never emitted — only that a change happened.\n\t */\n\teventId?: string;\n}\n\n/**\n * Allows the user to input a date\n *\n * @param {MrlDatePickerProps} props - the component props\n * @param {HTMLInputElement} ref - a ref to the input element in the DOM\n * @returns a date input element\n */\nexport const MrlDatePicker = React.forwardRef<HTMLInputElement, MrlDatePickerProps>(\n\tfunction MrlDatePicker(props, ref): JSX.Element {\n\t\tconst {\n\t\t\tautofocus = false,\n\t\t\tclassName,\n\t\t\tinputId,\n\t\t\tkind = 'default',\n\t\t\tonBlur,\n\t\t\tonChange,\n\t\t\tonFocus,\n\t\t\tonMouseEnter,\n\t\t\tonMouseLeave,\n\t\t\tstate,\n\t\t\teventId,\n\t\t\tvalue,\n\t\t\t['data-qa']: qa,\n\t\t\t...rest\n\t\t} = props;\n\n\t\tconst dateInputRef = React.useRef<HTMLInputElement>(null);\n\n\t\tconst trackInteraction = useMrlTrackInteraction('MrlDatePicker', eventId);\n\n\t\tconst { hasActiveColor, setHasActiveColor } = useActiveColor(state);\n\n\t\tReact.useImperativeHandle<HTMLInputElement | null, HTMLInputElement | null>(\n\t\t\tref,\n\t\t\t() => dateInputRef.current\n\t\t);\n\n\t\tconst handleOnBlur = React.useCallback(\n\t\t\t(e: React.FocusEvent<HTMLInputElement>) => {\n\t\t\t\tif (typeof onBlur !== 'undefined') {\n\t\t\t\t\tonBlur(e);\n\t\t\t\t}\n\n\t\t\t\tsetHasActiveColor(false);\n\t\t\t},\n\t\t\t[setHasActiveColor, onBlur]\n\t\t);\n\n\t\tconst handleOnFocus = React.useCallback(\n\t\t\t(e: React.FocusEvent<HTMLInputElement>) => {\n\t\t\t\tif (typeof onFocus === 'function') {\n\t\t\t\t\tonFocus(e);\n\t\t\t\t}\n\n\t\t\t\tsetHasActiveColor(true);\n\t\t\t},\n\t\t\t[setHasActiveColor, onFocus]\n\t\t);\n\n\t\tconst handleOnMouseEnter = React.useCallback(\n\t\t\t(e: React.MouseEvent<HTMLInputElement>) => {\n\t\t\t\tif (typeof onMouseEnter === 'function') {\n\t\t\t\t\tonMouseEnter(e);\n\t\t\t\t}\n\t\t\t\tsetHasActiveColor(true);\n\t\t\t},\n\t\t\t[setHasActiveColor, onMouseEnter]\n\t\t);\n\n\t\tconst handleOnMouseLeave = React.useCallback(\n\t\t\t(e: React.MouseEvent<HTMLInputElement>) => {\n\t\t\t\tif (typeof onMouseLeave === 'function') {\n\t\t\t\t\tonMouseLeave(e);\n\t\t\t\t}\n\t\t\t\tsetHasActiveColor(false);\n\t\t\t},\n\t\t\t[setHasActiveColor, onMouseLeave]\n\t\t);\n\n\t\tconst handleOnChange = React.useCallback(\n\t\t\t(e: React.ChangeEvent<HTMLInputElement>) => {\n\t\t\t\t// the selected date is consumer data and is never emitted.\n\t\t\t\ttrackInteraction({ action: 'change' });\n\n\t\t\t\tonChange?.(e);\n\t\t\t},\n\t\t\t[onChange, trackInteraction]\n\t\t);\n\n\t\tconst showPicker = React.useCallback(() => {\n\t\t\ttrackInteraction({ action: 'open' });\n\n\t\t\tif (dateInputRef.current && typeof dateInputRef.current.showPicker === 'function') {\n\t\t\t\tdateInputRef.current.showPicker();\n\t\t\t}\n\t\t}, [trackInteraction]);\n\n\t\tReact.useEffect(() => {\n\t\t\tif (dateInputRef.current && autofocus) {\n\t\t\t\tdateInputRef.current.focus();\n\t\t\t}\n\t\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t\t}, []);\n\n\t\tconst inputClasses = classnames(\n\t\t\t'MrlDatePicker',\n\t\t\tstyles['MrlDatePicker'],\n\t\t\t{\n\t\t\t\t[styles['MrlDatePicker--borderless']]: kind === 'borderless',\n\t\t\t\t[styles['MrlDatePicker--active']]: hasActiveColor\n\t\t\t},\n\t\t\tclassName\n\t\t);\n\n\t\tconst iconClasses = classnames('MrlDatePicker--icon', styles['MrlDatePicker--icon'], {\n\t\t\t[styles['MrlDatePicker--icon-active']]: hasActiveColor\n\t\t});\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<div className={classnames('MrlDatePicker--container', styles['MrlDatePicker--container'])}>\n\t\t\t\t\t<input\n\t\t\t\t\t\ttype=\"date\"\n\t\t\t\t\t\t{...rest}\n\t\t\t\t\t\tdata-qa={qa}\n\t\t\t\t\t\taria-invalid={state === 'error'}\n\t\t\t\t\t\tclassName={inputClasses}\n\t\t\t\t\t\tdisabled={state === 'disabled'}\n\t\t\t\t\t\tonBlur={handleOnBlur}\n\t\t\t\t\t\tonChange={handleOnChange}\n\t\t\t\t\t\tonClick={showPicker}\n\t\t\t\t\t\tonFocus={handleOnFocus}\n\t\t\t\t\t\tonMouseEnter={handleOnMouseEnter}\n\t\t\t\t\t\tonMouseLeave={handleOnMouseLeave}\n\t\t\t\t\t\tid={inputId}\n\t\t\t\t\t\treadOnly={state === 'read-only'}\n\t\t\t\t\t\tref={dateInputRef}\n\t\t\t\t\t\tvalue={value}\n\t\t\t\t\t/>\n\t\t\t\t\t<MrlSvg aria-hidden=\"true\" className={iconClasses} svg={calendar} size=\"small\" />\n\t\t\t\t</div>\n\t\t\t</>\n\t\t);\n\t}\n);\n"],"names":["MrlDatePicker","React","forwardRef","props","ref","_props$autofocus","autofocus","className","inputId","_props$kind","kind","onBlur","onChange","onFocus","onMouseEnter","onMouseLeave","state","eventId","value","qa","rest","_objectWithoutProperties","_excluded","dateInputRef","useRef","trackInteraction","useMrlTrackInteraction","_useActiveColor","useActiveColor","hasActiveColor","setHasActiveColor","useImperativeHandle","current","handleOnBlur","useCallback","e","handleOnFocus","handleOnMouseEnter","handleOnMouseLeave","handleOnChange","action","showPicker","useEffect","focus","inputClasses","classnames","styles","iconClasses","createElement","Fragment","_extends","type","disabled","onClick","id","readOnly","MrlSvg","svg","calendar","size"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMA,aAAa,gBAAGC,gBAAK,CAACC,UAAU,CAC5C,SAASF,aAAaA,CAACG,KAAK,EAAEC,GAAG,EAAe;AAC/C,EAAA,IAAAC,gBAAA,GAeIF,KAAK,CAdRG,SAAS;AAATA,IAAAA,SAAS,GAAAD,gBAAA,KAAA,MAAA,GAAG,KAAK,GAAAA,gBAAA;IACjBE,SAAS,GAaNJ,KAAK,CAbRI,SAAS;IACTC,OAAO,GAYJL,KAAK,CAZRK,OAAO;IAAAC,WAAA,GAYJN,KAAK,CAXRO,IAAI;AAAJA,IAAAA,IAAI,GAAAD,WAAA,KAAA,MAAA,GAAG,SAAS,GAAAA,WAAA;IAChBE,MAAM,GAUHR,KAAK,CAVRQ,MAAM;IACNC,QAAQ,GASLT,KAAK,CATRS,QAAQ;IACRC,OAAO,GAQJV,KAAK,CARRU,OAAO;IACPC,YAAY,GAOTX,KAAK,CAPRW,YAAY;IACZC,YAAY,GAMTZ,KAAK,CANRY,YAAY;IACZC,KAAK,GAKFb,KAAK,CALRa,KAAK;IACLC,OAAO,GAIJd,KAAK,CAJRc,OAAO;IACPC,KAAK,GAGFf,KAAK,CAHRe,KAAK;IACQC,EAAE,GAEZhB,KAAK,CAFP,SAAS,CAAA;AACPiB,IAAAA,IAAI,GAAAC,iDAAA,CACJlB,KAAK,EAAAmB,SAAA,CAAA;AAET,EAAA,IAAMC,YAAY,GAAGtB,gBAAK,CAACuB,MAAM,CAAmB,IAAI,CAAC;AAEzD,EAAA,IAAMC,gBAAgB,GAAGC,sCAAsB,CAAC,eAAe,EAAET,OAAO,CAAC;AAEzE,EAAA,IAAA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lDatePicker.tsx"],"sourcesContent":["import * as React from 'react';\nimport classnames from 'classnames';\nimport { calendar } from '@muraldevkit/ds-icons';\nimport { useActiveColor } from '../hooks/useActiveColor';\nimport { InputStates } from '../constants';\nimport { MrlSvg } from '../../svg/MrlSvg';\nimport styles from './MrlDatePicker.module.scss';\nimport { DataQa } from '../../../utils/dataQa';\nimport { useMrlTrackInteraction } from '../../../hooks/useMrlAnalytics';\n\nexport interface MrlDatePickerProps extends React.ComponentPropsWithRef<'input'>, DataQa {\n\t/** Id of the text input */\n\tinputId: string;\n\t/** Visual variant. 'borderless' hides the border and uses a subtle filled background. */\n\tkind?: 'default' | 'borderless';\n\t/** The value of the text input used to make it a controlled input */\n\tvalue?: string;\n\t/**\n\t * Changes the state of the input based on user permissions or actions.\n\t */\n\tstate?: InputStates;\n\t/** Focuses the input when it mounts. */\n\tautofocus?: boolean;\n\t/**\n\t * Event handler for onChange Events\n\t * The value is normalized to yyyy-mm-dd\n\t *\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date\n\t */\n\tonChange?: React.ComponentPropsWithRef<'input'>['onChange'];\n\t/**\n\t * Enables interaction tracking for this date picker. Provide a stable, non-PII id\n\t * (e.g. 'trial-end-date'). When omitted, the date picker emits no analytics.\n\t *\n\t * Note: the selected date is never emitted — only that a change happened.\n\t */\n\teventId?: string;\n}\n\n/**\n * Allows the user to input a date\n *\n * @param {MrlDatePickerProps} props - the component props\n * @param {HTMLInputElement} ref - a ref to the input element in the DOM\n * @returns a date input element\n */\nexport const MrlDatePicker = React.forwardRef<HTMLInputElement, MrlDatePickerProps>(\n\tfunction MrlDatePicker(props, ref): JSX.Element {\n\t\tconst {\n\t\t\tautofocus = false,\n\t\t\tclassName,\n\t\t\tinputId,\n\t\t\tkind = 'default',\n\t\t\tonBlur,\n\t\t\tonChange,\n\t\t\tonFocus,\n\t\t\tonMouseEnter,\n\t\t\tonMouseLeave,\n\t\t\tstate,\n\t\t\teventId,\n\t\t\tvalue,\n\t\t\t['data-qa']: qa,\n\t\t\t...rest\n\t\t} = props;\n\n\t\tconst dateInputRef = React.useRef<HTMLInputElement>(null);\n\n\t\tconst trackInteraction = useMrlTrackInteraction('MrlDatePicker', eventId);\n\n\t\tconst { hasActiveColor, setHasActiveColor } = useActiveColor(state);\n\n\t\tReact.useImperativeHandle<HTMLInputElement | null, HTMLInputElement | null>(\n\t\t\tref,\n\t\t\t() => dateInputRef.current\n\t\t);\n\n\t\tconst handleOnBlur = React.useCallback(\n\t\t\t(e: React.FocusEvent<HTMLInputElement>) => {\n\t\t\t\tif (typeof onBlur !== 'undefined') {\n\t\t\t\t\tonBlur(e);\n\t\t\t\t}\n\n\t\t\t\tsetHasActiveColor(false);\n\t\t\t},\n\t\t\t[setHasActiveColor, onBlur]\n\t\t);\n\n\t\tconst handleOnFocus = React.useCallback(\n\t\t\t(e: React.FocusEvent<HTMLInputElement>) => {\n\t\t\t\tif (typeof onFocus === 'function') {\n\t\t\t\t\tonFocus(e);\n\t\t\t\t}\n\n\t\t\t\tsetHasActiveColor(true);\n\t\t\t},\n\t\t\t[setHasActiveColor, onFocus]\n\t\t);\n\n\t\tconst handleOnMouseEnter = React.useCallback(\n\t\t\t(e: React.MouseEvent<HTMLInputElement>) => {\n\t\t\t\tif (typeof onMouseEnter === 'function') {\n\t\t\t\t\tonMouseEnter(e);\n\t\t\t\t}\n\t\t\t\tsetHasActiveColor(true);\n\t\t\t},\n\t\t\t[setHasActiveColor, onMouseEnter]\n\t\t);\n\n\t\tconst handleOnMouseLeave = React.useCallback(\n\t\t\t(e: React.MouseEvent<HTMLInputElement>) => {\n\t\t\t\tif (typeof onMouseLeave === 'function') {\n\t\t\t\t\tonMouseLeave(e);\n\t\t\t\t}\n\t\t\t\tsetHasActiveColor(false);\n\t\t\t},\n\t\t\t[setHasActiveColor, onMouseLeave]\n\t\t);\n\n\t\tconst handleOnChange = React.useCallback(\n\t\t\t(e: React.ChangeEvent<HTMLInputElement>) => {\n\t\t\t\t// the selected date is consumer data and is never emitted.\n\t\t\t\ttrackInteraction({ action: 'change' });\n\n\t\t\t\tonChange?.(e);\n\t\t\t},\n\t\t\t[onChange, trackInteraction]\n\t\t);\n\n\t\tconst showPicker = React.useCallback(() => {\n\t\t\ttrackInteraction({ action: 'open' });\n\n\t\t\tif (dateInputRef.current && typeof dateInputRef.current.showPicker === 'function') {\n\t\t\t\tdateInputRef.current.showPicker();\n\t\t\t}\n\t\t}, [trackInteraction]);\n\n\t\tReact.useEffect(() => {\n\t\t\tif (dateInputRef.current && autofocus) {\n\t\t\t\tdateInputRef.current.focus();\n\t\t\t}\n\t\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t\t}, []);\n\n\t\tconst inputClasses = classnames(\n\t\t\t'MrlDatePicker',\n\t\t\tstyles['MrlDatePicker'],\n\t\t\t{\n\t\t\t\t[styles['MrlDatePicker--borderless']]: kind === 'borderless',\n\t\t\t\t[styles['MrlDatePicker--active']]: hasActiveColor\n\t\t\t},\n\t\t\tclassName\n\t\t);\n\n\t\tconst iconClasses = classnames('MrlDatePicker--icon', styles['MrlDatePicker--icon'], {\n\t\t\t[styles['MrlDatePicker--icon-active']]: hasActiveColor\n\t\t});\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<div className={classnames('MrlDatePicker--container', styles['MrlDatePicker--container'])}>\n\t\t\t\t\t<input\n\t\t\t\t\t\ttype=\"date\"\n\t\t\t\t\t\t{...rest}\n\t\t\t\t\t\tdata-qa={qa}\n\t\t\t\t\t\taria-invalid={state === 'error'}\n\t\t\t\t\t\tclassName={inputClasses}\n\t\t\t\t\t\tdisabled={state === 'disabled'}\n\t\t\t\t\t\tonBlur={handleOnBlur}\n\t\t\t\t\t\tonChange={handleOnChange}\n\t\t\t\t\t\tonClick={showPicker}\n\t\t\t\t\t\tonFocus={handleOnFocus}\n\t\t\t\t\t\tonMouseEnter={handleOnMouseEnter}\n\t\t\t\t\t\tonMouseLeave={handleOnMouseLeave}\n\t\t\t\t\t\tid={inputId}\n\t\t\t\t\t\treadOnly={state === 'read-only'}\n\t\t\t\t\t\tref={dateInputRef}\n\t\t\t\t\t\tvalue={value}\n\t\t\t\t\t/>\n\t\t\t\t\t<MrlSvg aria-hidden=\"true\" className={iconClasses} svg={calendar} size=\"small\" />\n\t\t\t\t</div>\n\t\t\t</>\n\t\t);\n\t}\n);\n"],"names":["MrlDatePicker","React","forwardRef","props","ref","_props$autofocus","autofocus","className","inputId","_props$kind","kind","onBlur","onChange","onFocus","onMouseEnter","onMouseLeave","state","eventId","value","qa","rest","_objectWithoutProperties","_excluded","dateInputRef","useRef","trackInteraction","useMrlTrackInteraction","_useActiveColor","useActiveColor","hasActiveColor","setHasActiveColor","useImperativeHandle","current","handleOnBlur","useCallback","e","handleOnFocus","handleOnMouseEnter","handleOnMouseLeave","handleOnChange","action","showPicker","useEffect","focus","inputClasses","classnames","styles","iconClasses","createElement","Fragment","_extends","type","disabled","onClick","id","readOnly","MrlSvg","svg","calendar","size"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMA,aAAa,gBAAGC,gBAAK,CAACC,UAAU,CAC5C,SAASF,aAAaA,CAACG,KAAK,EAAEC,GAAG,EAAe;AAC/C,EAAA,IAAAC,gBAAA,GAeIF,KAAK,CAdRG,SAAS;AAATA,IAAAA,SAAS,GAAAD,gBAAA,KAAA,MAAA,GAAG,KAAK,GAAAA,gBAAA;IACjBE,SAAS,GAaNJ,KAAK,CAbRI,SAAS;IACTC,OAAO,GAYJL,KAAK,CAZRK,OAAO;IAAAC,WAAA,GAYJN,KAAK,CAXRO,IAAI;AAAJA,IAAAA,IAAI,GAAAD,WAAA,KAAA,MAAA,GAAG,SAAS,GAAAA,WAAA;IAChBE,MAAM,GAUHR,KAAK,CAVRQ,MAAM;IACNC,QAAQ,GASLT,KAAK,CATRS,QAAQ;IACRC,OAAO,GAQJV,KAAK,CARRU,OAAO;IACPC,YAAY,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Y,EAAEuB,kBAAmB;AACjCgB,IAAAA,EAAE,EAAE9C,OAAQ;IACZ+C,QAAQ,EAAEvC,KAAK,KAAK,WAAY;AAChCZ,IAAAA,GAAG,EAAEmB,YAAa;AAClBL,IAAAA,KAAK,EAAEA;AAAM,GAAA,CACb,CAAC,eACFjB,gBAAA,CAAA+C,aAAA,CAACQ,aAAM,EAAA;AAAC,IAAA,aAAA,EAAY,MAAM;AAACjD,IAAAA,SAAS,EAAEwC,WAAY;AAACU,IAAAA,GAAG,EAAEC,gBAAS;AAACC,IAAAA,IAAI,EAAC;GAAS,CAC5E,CACJ,CAAC;AAEL,CACD;;;;"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"MrlDatePicker":"MrlDatePicker--XlHsm","MrlDatePicker--borderless":"MrlDatePicker--borderless--tv3rF","MrlDatePicker--active":"MrlDatePicker--active--k2AUt","MrlDatePicker--container":"MrlDatePicker--container--RP6Y4","MrlDatePicker--icon":"MrlDatePicker--icon--NjiU_","MrlDatePicker--icon-active":"MrlDatePicker--icon-active--Dr0mh"};
5
+ var styles = {"MrlDatePicker":"MrlDatePicker--dx0vl","MrlDatePicker--borderless":"MrlDatePicker--borderless--ah-Bg","MrlDatePicker--active":"MrlDatePicker--active--c2fZ2","MrlDatePicker--container":"MrlDatePicker--container--DgZ8P","MrlDatePicker--icon":"MrlDatePicker--icon--UXuDu","MrlDatePicker--icon-active":"MrlDatePicker--icon-active--6UlB7"};
6
6
 
7
7
  exports.default = styles;
8
8
  //# sourceMappingURL=MrlDatePicker.module.scss.js.map
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"MrlLabel":"MrlLabel--Ulf8q"};
5
+ var styles = {"MrlLabel":"MrlLabel--PHHyh"};
6
6
 
7
7
  exports.default = styles;
8
8
  //# sourceMappingURL=MrlFieldset.module.scss.js.map
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var styles = {"MrlLabel":"MrlLabel--Bbnmm","MrlLabel--inline":"MrlLabel--inline--g2Exe","mrl-is--disabled":"mrl-is--disabled--siceI","MrlLabel-icon":"MrlLabel-icon--PyyRE"};
5
+ var styles = {"MrlLabel":"MrlLabel--wuV39","MrlLabel--inline":"MrlLabel--inline--fv39Z","mrl-is--disabled":"mrl-is--disabled--x4keo","MrlLabel-icon":"MrlLabel-icon--j5WAV"};
6
6
 
7
7
  exports.default = styles;
8
8
  //# sourceMappingURL=MrlLabel.module.scss.js.map