@muraldevkit/ui-toolkit 4.45.2-dev-jOrv.1 → 4.46.0-dev-YZUx.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/avatar/MrlAvatar/MrlAvatar.d.ts +30 -0
- package/dist/components/avatar/MrlAvatar/index.d.ts +1 -0
- package/dist/components/avatar/MrlAvatarButton/MrlAvatarButton.d.ts +62 -0
- package/dist/components/avatar/MrlAvatarButton/index.d.ts +1 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/badge/MrlBadge/MrlBadge.d.ts +26 -0
- package/dist/components/badge/MrlBadge/index.d.ts +1 -0
- package/dist/components/badge/MrlBadgeNotification/MrlBadgeNotification.d.ts +25 -0
- package/dist/components/badge/MrlBadgeNotification/index.d.ts +1 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/breadcrumb/MrlBreadcrumbItem/MrlBreadcrumbItem.d.ts +44 -0
- package/dist/components/breadcrumb/MrlBreadcrumbItem/index.d.ts +1 -0
- package/dist/components/breadcrumb/MrlBreadcrumbSeparator/MrlBreadcrumbSeparator.d.ts +7 -0
- package/dist/components/breadcrumb/MrlBreadcrumbSeparator/index.d.ts +1 -0
- package/dist/components/breadcrumb/MrlBreadcrumbs/MrlBreadcrumbs.d.ts +29 -0
- package/dist/components/breadcrumb/MrlBreadcrumbs/index.d.ts +1 -0
- package/dist/components/breadcrumb/index.d.ts +3 -0
- package/dist/components/button/MrlAnimatedIconButton/MrlAnimatedIconButton.d.ts +9 -0
- package/dist/components/button/MrlAnimatedIconButton/index.d.ts +1 -0
- package/dist/components/button/MrlButton/MrlButton.d.ts +105 -0
- package/dist/components/button/MrlButton/index.d.ts +1 -0
- package/dist/components/button/MrlIconButton/MrlIconButton.d.ts +112 -0
- package/dist/components/button/MrlIconButton/index.d.ts +1 -0
- package/dist/components/button/constants.d.ts +33 -0
- package/dist/components/button/helpers.d.ts +40 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/callout/MrlCallout/MrlCallout.d.ts +34 -0
- package/dist/components/callout/MrlCallout/index.d.ts +1 -0
- package/dist/components/callout/index.d.ts +1 -0
- package/dist/components/container/MrlContainer/MrlContainer.d.ts +22 -0
- package/dist/components/container/MrlContainer/index.d.ts +1 -0
- package/dist/components/container/constants.d.ts +12 -0
- package/dist/components/container/index.d.ts +1 -0
- package/dist/components/divider/MrlDivider/MrlDivider.d.ts +45 -0
- package/dist/components/divider/MrlDivider/index.d.ts +1 -0
- package/dist/components/divider/constants.d.ts +18 -0
- package/dist/components/divider/index.d.ts +1 -0
- package/dist/components/empty/default/MrlEmpty.d.ts +15 -0
- package/dist/components/empty/default/index.d.ts +1 -0
- package/dist/components/empty/index.d.ts +2 -0
- package/dist/components/empty/large/MrlEmptyLarge.d.ts +15 -0
- package/dist/components/empty/large/index.d.ts +1 -0
- package/dist/components/error-boundary/MrlErrorBoundary.d.ts +62 -0
- package/dist/components/error-boundary/index.d.ts +1 -0
- package/dist/components/filter/MrlFilter/MrlFilter.d.ts +28 -0
- package/dist/components/filter/MrlFilter/index.d.ts +1 -0
- package/dist/components/filter/MrlFilterContext/MrlFilterContext.d.ts +34 -0
- package/dist/components/filter/MrlFilterContext/index.d.ts +1 -0
- package/dist/components/filter/MrlFilterItem/MrlFilterItem.d.ts +23 -0
- package/dist/components/filter/MrlFilterItem/index.d.ts +1 -0
- package/dist/components/filter/index.d.ts +3 -0
- package/dist/components/focus-trap/MrlFocusTrap/MrlFocusTrap.d.ts +30 -0
- package/dist/components/focus-trap/MrlFocusTrap/index.d.ts +1 -0
- package/dist/components/focus-trap/index.d.ts +1 -0
- package/dist/components/form/checkbox/MrlCheckbox/MrlCheckbox.d.ts +44 -0
- package/dist/components/form/checkbox/MrlCheckbox/index.d.ts +1 -0
- package/dist/components/form/checkbox/MrlCheckboxStandalone/MrlCheckboxStandalone.d.ts +22 -0
- package/dist/components/form/checkbox/MrlCheckboxStandalone/index.d.ts +1 -0
- package/dist/components/form/constants.d.ts +85 -0
- package/dist/components/form/date-picker/MrlDatePicker.d.ts +30 -0
- package/dist/components/form/date-picker/index.d.ts +1 -0
- package/dist/components/form/fieldset/MrlFieldset/MrlFieldset.d.ts +20 -0
- package/dist/components/form/fieldset/MrlFieldset/index.d.ts +1 -0
- package/dist/components/form/hooks/useActiveColor.d.ts +13 -0
- package/dist/components/form/hooks/useIsEditable.d.ts +28 -0
- package/dist/components/form/index.d.ts +19 -0
- package/dist/components/form/label/MrlLabel/MrlLabel.d.ts +32 -0
- package/dist/components/form/label/MrlLabel/index.d.ts +1 -0
- package/dist/components/form/label/MrlLabelWithDescription/MrlLabelWithDescription.d.ts +32 -0
- package/dist/components/form/label/MrlLabelWithDescription/index.d.ts +1 -0
- package/dist/components/form/legacy-select/MrlLegacySelect/MrlLegacySelect.d.ts +58 -0
- package/dist/components/form/legacy-select/MrlLegacySelect/index.d.ts +1 -0
- package/dist/components/form/legacy-select/MrlLegacySelectItem/MrlLegacySelectItem.d.ts +36 -0
- package/dist/components/form/legacy-select/MrlLegacySelectItem/index.d.ts +1 -0
- package/dist/components/form/legacy-select/MrlLegacySelectMenu/MrlLegacySelectMenu.d.ts +43 -0
- package/dist/components/form/legacy-select/MrlLegacySelectMenu/index.d.ts +1 -0
- package/dist/components/form/legacy-select/context/SelectContext.d.ts +68 -0
- package/dist/components/form/legacy-select/index.d.ts +9 -0
- package/dist/components/form/legacy-select/stories.data.d.ts +1 -0
- package/dist/components/form/radio/MrlRadioButton/MrlRadioButton.d.ts +48 -0
- package/dist/components/form/radio/MrlRadioButton/index.d.ts +1 -0
- package/dist/components/form/radio/MrlRadioButtonStandalone/MrlRadioButtonStandalone.d.ts +26 -0
- package/dist/components/form/radio/MrlRadioButtonStandalone/index.d.ts +1 -0
- package/dist/components/form/radio/MrlRadioGroup/MrlRadioGroup.d.ts +22 -0
- package/dist/components/form/radio/MrlRadioGroup/index.d.ts +1 -0
- package/dist/components/form/select/MrlCreatableSelect/MrlCreatableSelect.d.ts +27 -0
- package/dist/components/form/select/MrlCreatableSelect/index.d.ts +1 -0
- package/dist/components/form/select/MrlMultiCreatableSelect/MrlMultiCreatableSelect.d.ts +26 -0
- package/dist/components/form/select/MrlMultiCreatableSelect/index.d.ts +1 -0
- package/dist/components/form/select/MrlMultiSelect/MrlMultiSelect.d.ts +25 -0
- package/dist/components/form/select/MrlMultiSelect/index.d.ts +1 -0
- package/dist/components/form/select/MrlSelect/MrlSelect.d.ts +25 -0
- package/dist/components/form/select/MrlSelect/index.d.ts +1 -0
- package/dist/components/form/select/components/MrlSelectClearIndicator.d.ts +8 -0
- package/dist/components/form/select/components/MrlSelectContainer.d.ts +9 -0
- package/dist/components/form/select/components/MrlSelectDropdownIndicator.d.ts +9 -0
- package/dist/components/form/select/components/MrlSelectMultiValue.d.ts +10 -0
- package/dist/components/form/select/components/MrlSelectMultiValueRemove.d.ts +9 -0
- package/dist/components/form/select/components/MrlSelectOption.d.ts +9 -0
- package/dist/components/form/select/components/MrlSelectValueContainer.d.ts +9 -0
- package/dist/components/form/select/components/index.d.ts +7 -0
- package/dist/components/form/select/index.d.ts +6 -0
- package/dist/components/form/select/styles/default.d.ts +7 -0
- package/dist/components/form/select/styles/index.d.ts +9 -0
- package/dist/components/form/select/styles/inline.d.ts +7 -0
- package/dist/components/form/select/styles/inlineNoLabel.d.ts +7 -0
- package/dist/components/form/select/styles/inlineStacked.d.ts +7 -0
- package/dist/components/form/select/types.d.ts +5 -0
- package/dist/components/form/select/utils/closeMenuOnScroll.d.ts +10 -0
- package/dist/components/form/select/utils/index.d.ts +1 -0
- package/dist/components/form/switch/MrlSwitch/MrlSwitch.d.ts +15 -0
- package/dist/components/form/switch/MrlSwitch/index.d.ts +1 -0
- package/dist/components/form/switch/MrlSwitchStandalone/MrlSwitchStandalone.d.ts +10 -0
- package/dist/components/form/switch/MrlSwitchStandalone/index.d.ts +1 -0
- package/dist/components/form/switch/index.d.ts +2 -0
- package/dist/components/form/text-input/MrlEditableTextInput/MrlEditableTextInput.d.ts +35 -0
- package/dist/components/form/text-input/MrlEditableTextInput/MrlEditableTextInputRightIcon.d.ts +25 -0
- package/dist/components/form/text-input/MrlEditableTextInput/index.d.ts +1 -0
- package/dist/components/form/text-input/MrlTextInput/MrlTextInput.d.ts +44 -0
- package/dist/components/form/text-input/MrlTextInput/MrlTextInputRightIcon.d.ts +24 -0
- package/dist/components/form/text-input/MrlTextInput/index.d.ts +1 -0
- package/dist/components/form/textarea/MrlEditableTextarea/MrlEditableTextarea.d.ts +44 -0
- package/dist/components/form/textarea/MrlEditableTextarea/MrlEditableTextareaRightButton.d.ts +25 -0
- package/dist/components/form/textarea/MrlEditableTextarea/index.d.ts +1 -0
- package/dist/components/form/textarea/MrlTextarea/MrlTextarea.d.ts +39 -0
- package/dist/components/form/textarea/MrlTextarea/index.d.ts +1 -0
- package/dist/components/form/utils.d.ts +94 -0
- package/dist/components/grid/MrlCol/MrlCol.d.ts +12 -0
- package/dist/components/grid/MrlCol/index.d.ts +1 -0
- package/dist/components/grid/MrlGrid/MrlGrid.d.ts +11 -0
- package/dist/components/grid/MrlGrid/index.d.ts +1 -0
- package/dist/components/grid/MrlRow/MrlRow.d.ts +25 -0
- package/dist/components/grid/MrlRow/index.d.ts +1 -0
- package/dist/components/grid/constants.d.ts +50 -0
- package/dist/components/grid/index.d.ts +3 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/layout/MrlMain/MrlMain.d.ts +9 -0
- package/dist/components/layout/MrlMain/index.d.ts +1 -0
- package/dist/components/layout/MrlPage/MrlPage.d.ts +11 -0
- package/dist/components/layout/MrlPage/index.d.ts +11 -0
- package/dist/components/layout/MrlSidebar/MrlSidebar.d.ts +22 -0
- package/dist/components/layout/MrlSidebar/demo/MrlSidebarDemo.d.ts +8 -0
- package/dist/components/layout/MrlSidebar/index.d.ts +1 -0
- package/dist/components/layout/MrlTopbar/MrlTopbar.d.ts +11 -0
- package/dist/components/layout/MrlTopbar/index.d.ts +1 -0
- package/dist/components/layout/constants.d.ts +16 -0
- package/dist/components/layout/context/LayoutContext.d.ts +24 -0
- package/dist/components/layout/error-page/MrlBrandColors/MrlBrandColors.d.ts +13 -0
- package/dist/components/layout/error-page/MrlBrandColors/index.d.ts +1 -0
- package/dist/components/layout/error-page/MrlErrorPage/MrlErrorPage.d.ts +28 -0
- package/dist/components/layout/error-page/MrlErrorPage/index.d.ts +1 -0
- package/dist/components/layout/error-page/index.d.ts +2 -0
- package/dist/components/layout/index.d.ts +5 -0
- package/dist/components/layout/utils.d.ts +15 -0
- package/dist/components/link/MrlLink/MrlLink.d.ts +49 -0
- package/dist/components/link/MrlLink/index.d.ts +1 -0
- package/dist/components/link/MrlLinkButton/MrlLinkButton.d.ts +54 -0
- package/dist/components/link/MrlLinkButton/index.d.ts +1 -0
- package/dist/components/link/constants.d.ts +24 -0
- package/dist/components/link/index.d.ts +2 -0
- package/dist/components/live-region/MrlLiveRegion/MrlLiveRegion.d.ts +19 -0
- package/dist/components/live-region/MrlLiveRegion/index.d.ts +1 -0
- package/dist/components/live-region/demo/LiveRegionDemo.d.ts +7 -0
- package/dist/components/live-region/index.d.ts +1 -0
- package/dist/components/loader/MrlProgressBar/MrlProgressBar.d.ts +10 -0
- package/dist/components/loader/MrlProgressBar/index.d.ts +1 -0
- package/dist/components/loader/MrlSpinner/MrlSpinner.d.ts +10 -0
- package/dist/components/loader/MrlSpinner/index.d.ts +1 -0
- package/dist/components/loader/constants.d.ts +88 -0
- package/dist/components/loader/index.d.ts +3 -0
- package/dist/components/menu/MrlMenu/MrlMenu.d.ts +130 -0
- package/dist/components/menu/MrlMenu/index.d.ts +1 -0
- package/dist/components/menu/MrlMenu/utilities.d.ts +29 -0
- package/dist/components/menu/MrlMenuGroup/MrlMenuGroup.d.ts +13 -0
- package/dist/components/menu/MrlMenuGroup/index.d.ts +1 -0
- package/dist/components/menu/MrlMenuItem/MrlMenuItem.d.ts +37 -0
- package/dist/components/menu/MrlMenuItem/index.d.ts +1 -0
- package/dist/components/menu/MrlMenuItemLink/MrlMenuItemLink.d.ts +37 -0
- package/dist/components/menu/MrlMenuItemLink/index.d.ts +1 -0
- package/dist/components/menu/constants.d.ts +38 -0
- package/dist/components/menu/context/MrlMenuContext.d.ts +20 -0
- package/dist/components/menu/demo/MenuByConfig.d.ts +7 -0
- package/dist/components/menu/demo/MenuWithPopover.d.ts +18 -0
- package/dist/components/menu/demo/MenuWithSubmenu.d.ts +18 -0
- package/dist/components/menu/demo/MenuWithTrigger.d.ts +19 -0
- package/dist/components/menu/hooks/useBrowserEdgeScroll.d.ts +22 -0
- package/dist/components/menu/hooks/useSubMenuElementPosition.d.ts +18 -0
- package/dist/components/menu/index.d.ts +5 -0
- package/dist/components/menu/utilities/flip-position.d.ts +8 -0
- package/dist/components/menu/utilities/get-scrollable-parent.d.ts +7 -0
- package/dist/components/modal/MrlModal/MrlModal.d.ts +50 -0
- package/dist/components/modal/MrlModal/index.d.ts +1 -0
- package/dist/components/modal/MrlModalContent/MrlModalContent.d.ts +20 -0
- package/dist/components/modal/MrlModalContent/index.d.ts +1 -0
- package/dist/components/modal/MrlModalContext/MrlModalContext.d.ts +17 -0
- package/dist/components/modal/MrlModalContext/index.d.ts +1 -0
- package/dist/components/modal/MrlModalFooter/MrlModalFooter.d.ts +21 -0
- package/dist/components/modal/MrlModalFooter/index.d.ts +1 -0
- package/dist/components/modal/MrlModalHeader/MrlModalHeader.d.ts +25 -0
- package/dist/components/modal/MrlModalHeader/index.d.ts +1 -0
- package/dist/components/modal/constants.d.ts +18 -0
- package/dist/components/modal/demo/ModalWithTriggerDemo.d.ts +15 -0
- package/dist/components/modal/index.d.ts +5 -0
- package/dist/components/navigation-sidebar/MrlSidebarNavGroup/MrlSidebarNavGroup.d.ts +25 -0
- package/dist/components/navigation-sidebar/MrlSidebarNavGroup/index.d.ts +1 -0
- package/dist/components/navigation-sidebar/MrlSidebarNavItem/MrlSidebarNavItem.d.ts +33 -0
- package/dist/components/navigation-sidebar/MrlSidebarNavItem/index.d.ts +1 -0
- package/dist/components/navigation-sidebar/index.d.ts +2 -0
- package/dist/components/notification/MrlBlockNotification/MrlBlockNotification.d.ts +100 -0
- package/dist/components/notification/MrlBlockNotification/index.d.ts +1 -0
- package/dist/components/notification/MrlInlineMessage/MrlInlineMessage.d.ts +40 -0
- package/dist/components/notification/MrlInlineMessage/index.d.ts +1 -0
- package/dist/components/notification/MrlToast/MrlToast.d.ts +45 -0
- package/dist/components/notification/MrlToast/index.d.ts +1 -0
- package/dist/components/notification/constants.d.ts +26 -0
- package/dist/components/notification/index.d.ts +3 -0
- package/dist/components/pagination/MrlPagination/MrlPagination.d.ts +19 -0
- package/dist/components/pagination/MrlPagination/index.d.ts +1 -0
- package/dist/components/pagination/MrlPaginationButton/MrlPaginationButton.d.ts +30 -0
- package/dist/components/pagination/MrlPaginationButton/index.d.ts +1 -0
- package/dist/components/pagination/MrlPaginationText/MrlPaginationText.d.ts +23 -0
- package/dist/components/pagination/MrlPaginationText/index.d.ts +1 -0
- package/dist/components/pagination/constants.d.ts +1 -0
- package/dist/components/pagination/index.d.ts +3 -0
- package/dist/components/panel/MrlPanel/MrlPanel.d.ts +53 -0
- package/dist/components/panel/MrlPanel/index.d.ts +1 -0
- package/dist/components/panel/MrlPanelContext/MrlPanelContext.d.ts +16 -0
- package/dist/components/panel/MrlPanelContext/index.d.ts +1 -0
- package/dist/components/panel/MrlPanelFooter/MrlPanelFooter.d.ts +22 -0
- package/dist/components/panel/MrlPanelFooter/index.d.ts +1 -0
- package/dist/components/panel/MrlPanelStickyHeader/MrlPanelStickyHeader.d.ts +18 -0
- package/dist/components/panel/MrlPanelStickyHeader/index.d.ts +1 -0
- package/dist/components/panel/index.d.ts +3 -0
- package/dist/components/popover/MrlPopover/MrlPopover.d.ts +131 -0
- package/dist/components/popover/MrlPopover/context/MrlPopoverContext.d.ts +20 -0
- package/dist/components/popover/MrlPopover/hooks/use-mrl-popover-event-handlers.d.ts +32 -0
- package/dist/components/popover/MrlPopover/index.d.ts +2 -0
- package/dist/components/popover/MrlPopover/utilities/get-data-point.d.ts +9 -0
- package/dist/components/popover/MrlPopover/utilities/get-offset.d.ts +9 -0
- package/dist/components/popover/MrlPopover/utilities/index.d.ts +2 -0
- package/dist/components/popover/demo/PopoverWithIconButton.d.ts +21 -0
- package/dist/components/popover/demo/PopoverWithSelect.d.ts +24 -0
- package/dist/components/popover/demo/PopoverWithTrigger.d.ts +24 -0
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/portal/MrlPortal.d.ts +20 -0
- package/dist/components/portal/index.d.ts +1 -0
- package/dist/components/rovingTabindex/MrlRovingTabindex/MrlRovingTabindex.d.ts +127 -0
- package/dist/components/rovingTabindex/MrlRovingTabindex/index.d.ts +1 -0
- package/dist/components/rovingTabindex/index.d.ts +1 -0
- package/dist/components/skeleton/MrlSkeleton/MrlSkeleton.d.ts +20 -0
- package/dist/components/skeleton/MrlSkeleton/index.d.ts +1 -0
- package/dist/components/skeleton/MrlSkeletonText/MrlSkeletonText.d.ts +22 -0
- package/dist/components/skeleton/MrlSkeletonText/index.d.ts +1 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/svg/MrlSvg/MrlSvg.d.ts +31 -0
- package/dist/components/svg/MrlSvg/index.d.ts +1 -0
- package/dist/components/svg/MrlSvgAnimate/MrlSvgAnimate.d.ts +51 -0
- package/dist/components/svg/MrlSvgAnimate/index.d.ts +1 -0
- package/dist/components/svg/config.d.ts +112 -0
- package/dist/components/svg/constants.d.ts +36 -0
- package/dist/components/svg/index.d.ts +3 -0
- package/dist/components/table/MrlSmartTable/MrlSmartTable.d.ts +216 -0
- package/dist/components/table/MrlSmartTable/index.d.ts +1 -0
- package/dist/components/table/MrlTable/MrlTable.d.ts +17 -0
- package/dist/components/table/MrlTable/index.d.ts +1 -0
- package/dist/components/table/MrlTableBody/MrlTableBody.d.ts +17 -0
- package/dist/components/table/MrlTableBody/index.d.ts +1 -0
- package/dist/components/table/MrlTableCell/MrlTableCell.d.ts +26 -0
- package/dist/components/table/MrlTableCell/index.d.ts +1 -0
- package/dist/components/table/MrlTableColumn/MrlTableColumn.d.ts +26 -0
- package/dist/components/table/MrlTableColumn/index.d.ts +1 -0
- package/dist/components/table/MrlTableEmptyState/MrlTableEmptyState.d.ts +15 -0
- package/dist/components/table/MrlTableEmptyState/index.d.ts +1 -0
- package/dist/components/table/MrlTableHeader/MrlTableHeader.d.ts +17 -0
- package/dist/components/table/MrlTableHeader/index.d.ts +1 -0
- package/dist/components/table/MrlTableRow/MrlTableRow.d.ts +26 -0
- package/dist/components/table/MrlTableRow/index.d.ts +1 -0
- package/dist/components/table/constants.d.ts +22 -0
- package/dist/components/table/fixtures.d.ts +94 -0
- package/dist/components/table/index.d.ts +9 -0
- package/dist/components/table/utils.d.ts +43 -0
- package/dist/components/tabs/MrlTab/MrlTab.d.ts +21 -0
- package/dist/components/tabs/MrlTab/index.d.ts +1 -0
- package/dist/components/tabs/MrlTabContent/MrlTabContent.d.ts +9 -0
- package/dist/components/tabs/MrlTabContent/index.d.ts +1 -0
- package/dist/components/tabs/MrlTabGroup/MrlTabGroup.d.ts +10 -0
- package/dist/components/tabs/MrlTabGroup/index.d.ts +1 -0
- package/dist/components/tabs/MrlTabLink/MrlTabLink.d.ts +28 -0
- package/dist/components/tabs/MrlTabLink/index.d.ts +1 -0
- package/dist/components/tabs/MrlTabs/MrlTabs.d.ts +21 -0
- package/dist/components/tabs/MrlTabs/index.d.ts +1 -0
- package/dist/components/tabs/constants.d.ts +1 -0
- package/dist/components/tabs/index.d.ts +5 -0
- package/dist/components/text/MrlText/MrlText.d.ts +26 -0
- package/dist/components/text/MrlText/index.d.ts +1 -0
- package/dist/components/text/MrlTextHeading/MrlTextHeading.d.ts +39 -0
- package/dist/components/text/MrlTextHeading/index.d.ts +1 -0
- package/dist/components/text/constants.d.ts +40 -0
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/toast/index.d.ts +1 -0
- package/dist/components/toolbar/MrlToolbar/MrlToolbar.d.ts +38 -0
- package/dist/components/toolbar/MrlToolbar/index.d.ts +1 -0
- package/dist/components/toolbar/MrlToolbarButton/MrlToolbarButton.d.ts +58 -0
- package/dist/components/toolbar/MrlToolbarButton/index.d.ts +1 -0
- package/dist/components/toolbar/MrlToolbarItem/MrlToolbarItem.d.ts +30 -0
- package/dist/components/toolbar/MrlToolbarItem/index.d.ts +1 -0
- package/dist/components/toolbar/index.d.ts +3 -0
- package/dist/components/tooltip/MrlTooltip/MrlTooltip.d.ts +58 -0
- package/dist/components/tooltip/MrlTooltip/index.d.ts +1 -0
- package/dist/components/tooltip/MrlTooltip/utilities.d.ts +8 -0
- package/dist/components/tooltip/MrlTooltipContent/MrlTooltipContent.d.ts +43 -0
- package/dist/components/tooltip/MrlTooltipContent/index.d.ts +1 -0
- package/dist/components/tooltip/constants.d.ts +27 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/useTooltipPosition/constants.d.ts +9 -0
- package/dist/components/tooltip/useTooltipPosition/index.d.ts +14 -0
- package/dist/components/tooltip/useTooltipPosition/utilities.d.ts +19 -0
- package/dist/components/tooltip/utils.d.ts +9 -0
- package/dist/contexts/MrlTabContext/MrlTabContext.d.ts +6 -0
- package/dist/contexts/MrlTabContext/index.d.ts +1 -0
- package/dist/contexts/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/useAutoClose/index.d.ts +1 -0
- package/dist/hooks/useAutoClose/useAutoClose.d.ts +11 -0
- package/dist/hooks/useBreakpoint/index.d.ts +15 -0
- package/dist/hooks/useBreakpoint/useBreakpointDemo.d.ts +7 -0
- package/dist/hooks/useClickOutside/index.d.ts +11 -0
- package/dist/hooks/useCoordinate/index.d.ts +18 -0
- package/dist/hooks/useElementDimensions/index.d.ts +16 -0
- package/dist/hooks/useScrollbarInfo/index.d.ts +13 -0
- package/dist/hooks/useTriggerPosition/constants.d.ts +11 -0
- package/dist/hooks/useTriggerPosition/index.d.ts +17 -0
- package/dist/hooks/useTriggerPosition/utilities.d.ts +12 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2 -0
- package/dist/index.js.LICENSE.txt +8 -0
- package/dist/src/components/layout/error-page/MrlBrandColors/MrlBrandColors.functions.scss +12 -0
- package/dist/styles/MrlAvatar/module.scss +97 -0
- package/dist/styles/MrlAvatarButton/module.scss +41 -0
- package/dist/styles/MrlBadge/module.scss +39 -0
- package/dist/styles/MrlBadgeNotification/module.scss +38 -0
- package/dist/styles/MrlBlockNotification/global.scss +19 -0
- package/dist/styles/MrlBlockNotification/mixins.scss +20 -0
- package/dist/styles/MrlBlockNotification/module.scss +79 -0
- package/dist/styles/MrlBlockNotification/variables.scss +66 -0
- package/dist/styles/MrlBrandColors/mixins.scss +9 -0
- package/dist/styles/MrlBrandColors/module.scss +24 -0
- package/dist/styles/MrlBrandColors/variables.scss +89 -0
- package/dist/styles/MrlBreadcrumbItem/module.scss +41 -0
- package/dist/styles/MrlBreadcrumbs/module.scss +7 -0
- package/dist/styles/MrlButton/global.scss +69 -0
- package/dist/styles/MrlCallout/module.scss +50 -0
- package/dist/styles/MrlCheckbox/global.scss +18 -0
- package/dist/styles/MrlCheckbox/module.scss +16 -0
- package/dist/styles/MrlCheckbox/variables.scss +10 -0
- package/dist/styles/MrlCheckboxStandalone/global.scss +18 -0
- package/dist/styles/MrlCheckboxStandalone/module.scss +42 -0
- package/dist/styles/MrlCheckboxStandalone/variables.scss +27 -0
- package/dist/styles/MrlContainer/module.scss +32 -0
- package/dist/styles/MrlDivider/module.scss +22 -0
- package/dist/styles/MrlEditableTextInput/module.scss +105 -0
- package/dist/styles/MrlEditableTextInput/variables.scss +5 -0
- package/dist/styles/MrlEditableTextarea/global.scss +24 -0
- package/dist/styles/MrlEditableTextarea/module.scss +78 -0
- package/dist/styles/MrlErrorPage/module.scss +43 -0
- package/dist/styles/MrlFieldset/module.scss +2 -0
- package/dist/styles/MrlFilter/module.scss +5 -0
- package/dist/styles/MrlFilterItem/module.scss +53 -0
- package/dist/styles/MrlInlineMessage/module.scss +45 -0
- package/dist/styles/MrlLabel/module.scss +25 -0
- package/dist/styles/MrlLabel/variables.scss +17 -0
- package/dist/styles/MrlLabelWithDescription/module.scss +54 -0
- package/dist/styles/MrlLabelWithDescription/variables.scss +14 -0
- package/dist/styles/MrlLegacySelect/module.scss +80 -0
- package/dist/styles/MrlLegacySelect/variables.scss +10 -0
- package/dist/styles/MrlLegacySelectItem/module.scss +39 -0
- package/dist/styles/MrlLegacySelectItem/variables.scss +26 -0
- package/dist/styles/MrlLegacySelectMenu/module.scss +30 -0
- package/dist/styles/MrlLegacySelectMenu/variables.scss +4 -0
- package/dist/styles/MrlLink/module.scss +68 -0
- package/dist/styles/MrlLinkButton/global.scss +4 -0
- package/dist/styles/MrlMain/module.scss +26 -0
- package/dist/styles/MrlMain/variables.scss +5 -0
- package/dist/styles/MrlMenu/module.scss +45 -0
- package/dist/styles/MrlMenuGroup/module.scss +3 -0
- package/dist/styles/MrlMenuItem/module.scss +118 -0
- package/dist/styles/MrlModal/global.scss +37 -0
- package/dist/styles/MrlModal/mixins.scss +23 -0
- package/dist/styles/MrlModal/module.scss +55 -0
- package/dist/styles/MrlModal/variables.scss +26 -0
- package/dist/styles/MrlModalContent/module.scss +19 -0
- package/dist/styles/MrlModalFooter/global.scss +16 -0
- package/dist/styles/MrlModalFooter/module.scss +41 -0
- package/dist/styles/MrlModalFooter/variables.scss +5 -0
- package/dist/styles/MrlModalHeader/module.scss +21 -0
- package/dist/styles/MrlPage/module.scss +13 -0
- package/dist/styles/MrlPagination/module.scss +29 -0
- package/dist/styles/MrlPanel/module.scss +61 -0
- package/dist/styles/MrlPanelFooter/module.scss +12 -0
- package/dist/styles/MrlPanelStickyHeader/module.scss +14 -0
- package/dist/styles/MrlPopover/module.scss +112 -0
- package/dist/styles/MrlPopover/variables.scss +16 -0
- package/dist/styles/MrlProgressBar/module.scss +57 -0
- package/dist/styles/MrlRadioButton/module.scss +8 -0
- package/dist/styles/MrlRadioButtonStandalone/global.scss +16 -0
- package/dist/styles/MrlRadioButtonStandalone/module.scss +59 -0
- package/dist/styles/MrlRadioButtonStandalone/variables.scss +31 -0
- package/dist/styles/MrlSidebar/module.scss +65 -0
- package/dist/styles/MrlSidebarNavGroup/module.scss +8 -0
- package/dist/styles/MrlSidebarNavItem/module.scss +47 -0
- package/dist/styles/MrlSkeleton/module.scss +9 -0
- package/dist/styles/MrlSkeletonText/module.scss +24 -0
- package/dist/styles/MrlSmartTable/module.scss +40 -0
- package/dist/styles/MrlSpinner/module.scss +109 -0
- package/dist/styles/MrlSvg/module.scss +24 -0
- package/dist/styles/MrlSvgAnimate/module.scss +13 -0
- package/dist/styles/MrlSwitch/module.scss +10 -0
- package/dist/styles/MrlSwitchStandalone/module.scss +84 -0
- package/dist/styles/MrlTab/module.scss +117 -0
- package/dist/styles/MrlTabContent/module.scss +7 -0
- package/dist/styles/MrlTabGroup/module.scss +66 -0
- package/dist/styles/MrlTable/module.scss +5 -0
- package/dist/styles/MrlTableBody/module.scss +2 -0
- package/dist/styles/MrlTableCell/module.scss +10 -0
- package/dist/styles/MrlTableColumn/module.scss +27 -0
- package/dist/styles/MrlTableEmptyState/module.scss +14 -0
- package/dist/styles/MrlTableHeader/module.scss +7 -0
- package/dist/styles/MrlTableRow/module.scss +17 -0
- package/dist/styles/MrlText/module.scss +8 -0
- package/dist/styles/MrlText/variables.scss +14 -0
- package/dist/styles/MrlTextHeading/module.scss +24 -0
- package/dist/styles/MrlTextHeading/variables.scss +40 -0
- package/dist/styles/MrlTextInput/module.scss +70 -0
- package/dist/styles/MrlTextInput/variables.scss +5 -0
- package/dist/styles/MrlTextarea/global.scss +12 -0
- package/dist/styles/MrlTextarea/module.scss +18 -0
- package/dist/styles/MrlToast/module.scss +114 -0
- package/dist/styles/MrlToolbar/module.scss +53 -0
- package/dist/styles/MrlToolbarButton/module.scss +3 -0
- package/dist/styles/MrlTooltipContent/global.scss +146 -0
- package/dist/styles/MrlTooltipContent/variables.scss +17 -0
- package/dist/styles/MrlTopbar/module.scss +12 -0
- package/dist/styles/a11y-helpers/global.scss +5 -0
- package/dist/styles/a11y-helpers/mixins.scss +11 -0
- package/dist/styles/button/global.scss +38 -0
- package/dist/styles/button/mixins.scss +42 -0
- package/dist/styles/button/variables.scss +164 -0
- package/dist/styles/components/module.scss +6 -0
- package/dist/styles/container/variables.scss +10 -0
- package/dist/styles/date-picker/module.scss +38 -0
- package/dist/styles/demo/module.scss +11 -0
- package/dist/styles/divider/mixins.scss +32 -0
- package/dist/styles/divider/variables.scss +22 -0
- package/dist/styles/empty/module.scss +18 -0
- package/dist/styles/form/global.scss +89 -0
- package/dist/styles/form/variables.scss +58 -0
- package/dist/styles/grid/global.scss +6 -0
- package/dist/styles/grid/variables.scss +26 -0
- package/dist/styles/layout/variables.scss +3 -0
- package/dist/styles/modal/variables.scss +32 -0
- package/dist/styles/skeleton/mixins.scss +44 -0
- package/dist/styles/skeleton/variables.scss +2 -0
- package/dist/styles/svg/variables.scss +17 -0
- package/dist/styles/table/global.scss +78 -0
- package/dist/styles/table/variables.scss +30 -0
- package/dist/styles/tooltip/mixins.scss +8 -0
- package/dist/styles.css +99 -0
- package/dist/utils/checkInvalidAttributes/index.d.ts +7 -0
- package/dist/utils/commonProps/index.d.ts +20 -0
- package/dist/utils/dataQa/index.d.ts +6 -0
- package/dist/utils/findAdjacentInteractiveElement/findAdjacentInteractiveElement.d.ts +8 -0
- package/dist/utils/findAdjacentInteractiveElement/index.d.ts +1 -0
- package/dist/utils/frameDebounce/index.d.ts +22 -0
- package/dist/utils/getCamelCase/getCamelCase.d.ts +7 -0
- package/dist/utils/getCamelCase/getCamelCase.test.d.ts +1 -0
- package/dist/utils/getCamelCase/index.d.ts +2 -0
- package/dist/utils/getScrollableContainer/getScrollableContainer.d.ts +7 -0
- package/dist/utils/hasHorizontalScroll/hasHorizontalScroll.d.ts +11 -0
- package/dist/utils/hasScrollContent/hasScrollContent.d.ts +11 -0
- package/dist/utils/index.d.ts +11 -0
- package/dist/utils/isElementScrollable/index.d.ts +7 -0
- package/dist/utils/isImagePath/index.d.ts +7 -0
- package/dist/utils/isImageUri/index.d.ts +7 -0
- package/dist/utils/isObject/index.d.ts +2 -0
- package/dist/utils/isObject/isObject.d.ts +14 -0
- package/dist/utils/isObject/isObject.test.d.ts +1 -0
- package/dist/utils/isTouch/index.d.ts +6 -0
- package/dist/utils/layers/index.d.ts +48 -0
- package/dist/utils/noop/index.d.ts +7 -0
- package/dist/utils/preventDefault/index.d.ts +1 -0
- package/dist/utils/preventDefault/preventDefault.d.ts +6 -0
- package/dist/utils/setAttributes/index.d.ts +2 -0
- package/dist/utils/setAttributes/setAttributes.d.ts +35 -0
- package/dist/utils/setAttributes/setAttributes.test.d.ts +1 -0
- package/dist/utils/trapFocus/index.d.ts +24 -0
- package/package.json +1 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { NotificationKind } from '../constants';
|
|
3
|
+
export type MrlToastKind = NotificationKind | 'collaborator' | 'general';
|
|
4
|
+
export type MrlToastPosition = 'bottom' | 'top';
|
|
5
|
+
export interface MrlToastCTA {
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
text: string;
|
|
8
|
+
dataQa: string;
|
|
9
|
+
}
|
|
10
|
+
export interface MrlToastProps {
|
|
11
|
+
['data-qa']?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Determines whether the Toast Notification should automatically close after the time specified in `closeAfterMs` (default 3000ms).
|
|
14
|
+
*
|
|
15
|
+
* Note: auto-closing is only possible when no interactive elements (e.g. close button & CTA's) exist on the toast notification
|
|
16
|
+
*/
|
|
17
|
+
autoClose?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the background color of the toast notification.
|
|
20
|
+
*
|
|
21
|
+
* Note: this is only applicable when the `kind` is set to 'collaborator'.
|
|
22
|
+
*/
|
|
23
|
+
backgroundColor?: string;
|
|
24
|
+
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The time in milliseconds after which the toast notification should automatically close.
|
|
27
|
+
*/
|
|
28
|
+
closeAfterMs?: number;
|
|
29
|
+
kind?: MrlToastKind;
|
|
30
|
+
onClose?: () => void;
|
|
31
|
+
primaryCTA?: MrlToastCTA;
|
|
32
|
+
primaryMessage: string | JSX.Element;
|
|
33
|
+
secondaryCTA?: MrlToastCTA;
|
|
34
|
+
secondaryMessage?: string | JSX.Element;
|
|
35
|
+
/** Determines whether the close icon button should be shown. */
|
|
36
|
+
showCloseButton?: boolean;
|
|
37
|
+
showIcon?: boolean;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* MrlToast component.
|
|
41
|
+
*
|
|
42
|
+
* @param {MrlToastProps} props - The props for the MrlToast component.
|
|
43
|
+
* @returns {React.ReactElement} The MrlToast component.
|
|
44
|
+
*/
|
|
45
|
+
export declare const MrlToast: ({ ["data-qa"]: qa, autoClose, backgroundColor, className, closeAfterMs, kind, onClose, primaryCTA, primaryMessage, secondaryCTA, secondaryMessage, showCloseButton, showIcon }: MrlToastProps) => React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MrlToast } from './MrlToast';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const allowedValues: {
|
|
2
|
+
kinds: readonly ["info", "success", "warning", "error", "private", "general"];
|
|
3
|
+
levels: readonly ["2", "3", "4", "5", "6"];
|
|
4
|
+
scopes: readonly ["page", "inline"];
|
|
5
|
+
states: readonly ["open", "close"];
|
|
6
|
+
};
|
|
7
|
+
export type NotificationKind = (typeof allowedValues.kinds)[number];
|
|
8
|
+
export type NotificationScope = (typeof allowedValues.scopes)[number];
|
|
9
|
+
export type NotificationState = (typeof allowedValues.states)[number];
|
|
10
|
+
export type NotificationLevel = (typeof allowedValues.levels)[number];
|
|
11
|
+
export interface NotificationDefaults {
|
|
12
|
+
dismissible: boolean;
|
|
13
|
+
kind: NotificationKind;
|
|
14
|
+
level: NotificationLevel;
|
|
15
|
+
scope: NotificationScope;
|
|
16
|
+
state: NotificationState;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Default values for props on the Notification component;
|
|
20
|
+
* Shared between the component and Storybook
|
|
21
|
+
*/
|
|
22
|
+
export declare const defaults: NotificationDefaults;
|
|
23
|
+
/**
|
|
24
|
+
* Default transition duration for the notification transitions
|
|
25
|
+
*/
|
|
26
|
+
export declare const TransitionDuration = 333;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface MrlPaginationProps extends React.ComponentPropsWithoutRef<'nav'> {
|
|
3
|
+
/** Elements to be rendered by MrlPagination */
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
/** Additional class to add to the nav element */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Pagination heading */
|
|
8
|
+
heading?: string;
|
|
9
|
+
/** Styles to add to the wrapper for the unordered list */
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Pagination component
|
|
14
|
+
*
|
|
15
|
+
* @param {MrlPaginationProps} props - the component props
|
|
16
|
+
* @returns pagination
|
|
17
|
+
*/
|
|
18
|
+
export declare function MrlPagination({ children, className, heading, style, ...rest }: MrlPaginationProps): JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlPagination';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { MrlTooltipAnchor, MrlTooltipPosition } from '../..';
|
|
3
|
+
import { PaginationButtonType } from '../constants';
|
|
4
|
+
interface MrlPaginationButtonProps {
|
|
5
|
+
/** Additional class to add to the button element */
|
|
6
|
+
buttonClass?: string;
|
|
7
|
+
/** Additional class to add to the container element */
|
|
8
|
+
className?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** The type of pagination item */
|
|
11
|
+
kind: PaginationButtonType;
|
|
12
|
+
/**
|
|
13
|
+
* Click event for the button.
|
|
14
|
+
*/
|
|
15
|
+
handleClick?: (e: React.SyntheticEvent<HTMLButtonElement>) => void;
|
|
16
|
+
/** Pagination heading */
|
|
17
|
+
text?: string;
|
|
18
|
+
/** The anchor of the tooltips on the buttons */
|
|
19
|
+
tooltipAnchor?: MrlTooltipAnchor;
|
|
20
|
+
/** The placement of the tooltips on the buttons */
|
|
21
|
+
tooltipPosition?: MrlTooltipPosition;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Pagination button component
|
|
25
|
+
*
|
|
26
|
+
* @param {MrlPaginationButtonProps} props - the component props
|
|
27
|
+
* @returns a pagintaion button
|
|
28
|
+
*/
|
|
29
|
+
export declare function MrlPaginationButton({ buttonClass, className, disabled, kind, handleClick, text, tooltipAnchor, tooltipPosition }: MrlPaginationButtonProps): JSX.Element;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlPaginationButton';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface MrlPaginationTextProps {
|
|
3
|
+
/** Additional class to add to the container element */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** Show total as estimate */
|
|
6
|
+
isEstimate?: boolean;
|
|
7
|
+
/** The last visible item */
|
|
8
|
+
rangeEnd: number;
|
|
9
|
+
/** The first visible item */
|
|
10
|
+
rangeStart: number;
|
|
11
|
+
/** Additional class to add to the text */
|
|
12
|
+
textClass?: string;
|
|
13
|
+
/** The total number of items */
|
|
14
|
+
total: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Pagination text component
|
|
18
|
+
*
|
|
19
|
+
* @param {MrlPaginationTextProps} props - the component props
|
|
20
|
+
* @returns pagination text
|
|
21
|
+
*/
|
|
22
|
+
export declare function MrlPaginationText({ className, isEstimate, rangeStart, rangeEnd, textClass, total }: MrlPaginationTextProps): JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlPaginationText';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type PaginationButtonType = 'first' | 'previous' | 'next' | 'last';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the MrlPanel component.
|
|
4
|
+
*/
|
|
5
|
+
interface MrlPanelProps extends React.ComponentPropsWithRef<'div'> {
|
|
6
|
+
/**
|
|
7
|
+
* A string value used for data-qa attribute.
|
|
8
|
+
*/
|
|
9
|
+
['data-qa']?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Callback function that is called when the panel is closed.
|
|
12
|
+
*/
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
/**
|
|
15
|
+
* The custom header element to be rendered in the panel.
|
|
16
|
+
* When a custom header is used developers need to provide th aria-label and aria-describedby.
|
|
17
|
+
*/
|
|
18
|
+
header?: React.ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* The custom top actions to be rendered in the panel header.
|
|
21
|
+
* By default top actions are rendered on the right side of the title and include a MrlDivider at the end.
|
|
22
|
+
* The close button should not be included as part of the top actions.
|
|
23
|
+
*/
|
|
24
|
+
topActions?: React.ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* The title of the panel.
|
|
27
|
+
*/
|
|
28
|
+
title?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The description of the panel.
|
|
31
|
+
*/
|
|
32
|
+
description?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Specifies whether to disable autofocus on the panel.
|
|
35
|
+
*/
|
|
36
|
+
disableAutofocus?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Specifies whether the panel has a sticky header to adjust styles.
|
|
39
|
+
*/
|
|
40
|
+
hasStickyHeader?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* hasDataScrollAnchor is required to enable infinite scroll
|
|
43
|
+
*/
|
|
44
|
+
hasDataScrollAnchor?: boolean;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* MrlPanel component.
|
|
48
|
+
*
|
|
49
|
+
* @param props The MrlPanel component properties.
|
|
50
|
+
* @returns The MrlPanel component.
|
|
51
|
+
*/
|
|
52
|
+
export declare const MrlPanel: React.ForwardRefExoticComponent<Omit<MrlPanelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
53
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MrlPanel } from './MrlPanel';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type MrlPanelContextState = {
|
|
3
|
+
hasScrollbar: boolean;
|
|
4
|
+
scrollbarWidth: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const initialState: {
|
|
7
|
+
hasScrollbar: boolean;
|
|
8
|
+
scrollbarWidth: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const MrlPanelContext: React.Context<MrlPanelContextState>;
|
|
11
|
+
/**
|
|
12
|
+
* Returns the MrlPanelContext state.
|
|
13
|
+
*
|
|
14
|
+
* @returns The MrlPanelContext state.
|
|
15
|
+
*/
|
|
16
|
+
export declare const useMrlPanelContext: () => MrlPanelContextState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlPanelContext';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the MrlPanelFooter component.
|
|
4
|
+
*/
|
|
5
|
+
interface MrlPanelFooterProps extends React.ComponentPropsWithRef<'footer'> {
|
|
6
|
+
/**
|
|
7
|
+
* The children of the MrlPanelFooter component.
|
|
8
|
+
*/
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Specifies whether to show the divider.
|
|
12
|
+
*/
|
|
13
|
+
hasDivider?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* MrlPanelFooter component.
|
|
17
|
+
*
|
|
18
|
+
* @param props The MrlPanelFooter component properties.
|
|
19
|
+
* @returns The MrlPanelFooter component.
|
|
20
|
+
*/
|
|
21
|
+
export declare const MrlPanelFooter: React.ForwardRefExoticComponent<Omit<MrlPanelFooterProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MrlPanelFooter } from './MrlPanelFooter';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the MrlPanelStickyHeader component.
|
|
4
|
+
*/
|
|
5
|
+
interface MrlPanelStickyHeaderProps extends React.ComponentPropsWithRef<'div'> {
|
|
6
|
+
/**
|
|
7
|
+
* The children of the MrlPanelStickyHeader component.
|
|
8
|
+
*/
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* MrlPanelStickyHeader component.
|
|
13
|
+
*
|
|
14
|
+
* @param props The MrlPanelStickyHeader component properties.
|
|
15
|
+
* @returns The MrlPanel component.
|
|
16
|
+
*/
|
|
17
|
+
export declare const MrlPanelStickyHeader: ({ children, className, ...rest }: MrlPanelStickyHeaderProps) => JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MrlPanelStickyHeader } from './MrlPanelStickyHeader';
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { PortalProps } from '../../';
|
|
3
|
+
import { MenuPosition, MenuAlignment, ActionState, CustomMenuPosition } from '../../menu/constants';
|
|
4
|
+
type RenderPropFn = ({ closeMenu }: {
|
|
5
|
+
closeMenu: () => void;
|
|
6
|
+
}) => JSX.Element;
|
|
7
|
+
export interface MrlPopoverProps {
|
|
8
|
+
/**
|
|
9
|
+
* Set initial state of menu
|
|
10
|
+
* @default { actionType: null, isOpen: false }
|
|
11
|
+
*/
|
|
12
|
+
actionState?: ActionState;
|
|
13
|
+
/** Label for the popover */
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
/** ID of element to associate a label */
|
|
16
|
+
ariaLabelledBy?: string;
|
|
17
|
+
/** Children to be rendered within the menu component*/
|
|
18
|
+
children: React.ReactNode | RenderPropFn;
|
|
19
|
+
/** Custom class names for the popover */
|
|
20
|
+
className?: string;
|
|
21
|
+
/** Custom position for the menu */
|
|
22
|
+
customPosition?: CustomMenuPosition;
|
|
23
|
+
/**
|
|
24
|
+
* If the popover should disable click to open
|
|
25
|
+
*
|
|
26
|
+
* Example usage: if you do not want your component opened via click, set to true
|
|
27
|
+
*/
|
|
28
|
+
disableClickToOpen?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* If the popover should close when clicking outside of the menu
|
|
31
|
+
*
|
|
32
|
+
* Example usage: MrlCallout component should not close when clicking outside, so it's set to true
|
|
33
|
+
*/
|
|
34
|
+
disableClickOutside?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Disable flipping of the popover when it goes off the screen
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
disableFlipping?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* If the popover should disable focus trap
|
|
42
|
+
*
|
|
43
|
+
* The impact of enabling or disabling focus trap:
|
|
44
|
+
* - enabled : focus will remain trapped in the popover until a user closes the popover
|
|
45
|
+
* - disabled : focus will move to the next interactive element in the DOM when the user
|
|
46
|
+
* tabs out of the popover. Focus will move to the trigger when the user shift+tabs out of the popover
|
|
47
|
+
*
|
|
48
|
+
* Additional scenarios to consider with focus trap is disabled. When hasCloseButton is set to true/false:
|
|
49
|
+
* - true : if a user shows the close button, the popover will stay open until explicitly dismissed
|
|
50
|
+
* - false : if a user hides the close button, the popover will close when a user tabs out of it from the beginning or end
|
|
51
|
+
*/
|
|
52
|
+
disableFocusTrap?: boolean;
|
|
53
|
+
/** If the popover should have a close button */
|
|
54
|
+
hasCloseButton?: boolean;
|
|
55
|
+
/** Unique identifier for the menu */
|
|
56
|
+
id?: string;
|
|
57
|
+
/** If the menu is a submenu */
|
|
58
|
+
isSubMenu?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Horizontal and vertical alignment of the menu relative to the trigger element
|
|
61
|
+
*
|
|
62
|
+
* This does not impact submenus
|
|
63
|
+
* @default 'bottom'
|
|
64
|
+
*/
|
|
65
|
+
position?: MenuPosition;
|
|
66
|
+
/**
|
|
67
|
+
* Vertical and horizontal alignment of the popover relative to the position with the trigger
|
|
68
|
+
* - 'left' and 'right' work with position 'top' and 'bottom'
|
|
69
|
+
* - 'top' and 'bottom' work with position 'left' and 'right'
|
|
70
|
+
* - 'center' works with all positions
|
|
71
|
+
*
|
|
72
|
+
* This does not impact submenus
|
|
73
|
+
*/
|
|
74
|
+
alignment?: MenuAlignment;
|
|
75
|
+
/**
|
|
76
|
+
* spacing of menu
|
|
77
|
+
* - 'default' has 16px padding
|
|
78
|
+
* - 'compact' has 12px padding
|
|
79
|
+
*/
|
|
80
|
+
spacing?: 'default' | 'compact';
|
|
81
|
+
/**
|
|
82
|
+
* Reference to the DOM element that triggers this menu.
|
|
83
|
+
*/
|
|
84
|
+
triggerRef?: React.RefObject<HTMLElement>;
|
|
85
|
+
/**
|
|
86
|
+
* If the menu should be rendered with the inverse theme
|
|
87
|
+
* @default 'primary'
|
|
88
|
+
*/
|
|
89
|
+
kind?: 'primary' | 'inverse';
|
|
90
|
+
/**
|
|
91
|
+
* If the menu should have a pointer element
|
|
92
|
+
* @default false
|
|
93
|
+
*/
|
|
94
|
+
point?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Configuration for the portal component
|
|
97
|
+
*/
|
|
98
|
+
portalProps?: Omit<PortalProps, 'children'>;
|
|
99
|
+
/**
|
|
100
|
+
* Offset in pixels for the popover
|
|
101
|
+
*
|
|
102
|
+
* The popover automatically calculates the proper offset based on the position and alignment
|
|
103
|
+
* this prop will override those values.
|
|
104
|
+
*/
|
|
105
|
+
offset?: number;
|
|
106
|
+
/**
|
|
107
|
+
* Callback to be called when the menu is opened
|
|
108
|
+
*/
|
|
109
|
+
onOpen?: () => void;
|
|
110
|
+
/**
|
|
111
|
+
* Callback to be called when the menu is closed
|
|
112
|
+
* @param type - type of close event
|
|
113
|
+
*/
|
|
114
|
+
onClose?: (type?: string) => void;
|
|
115
|
+
/**
|
|
116
|
+
* data-qa attribute for the popover
|
|
117
|
+
*/
|
|
118
|
+
['data-qa']?: string;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* MrlPopover
|
|
122
|
+
*
|
|
123
|
+
* Renders a popover component with position and alignment relative to a trigger element
|
|
124
|
+
* @param {MrlPopoverProps} props - The props for the MrlPopover component
|
|
125
|
+
* @returns {Element} - rendered MrlPopover component
|
|
126
|
+
*/
|
|
127
|
+
export declare function MrlPopover({ alignment, ariaLabel, ariaLabelledBy, children, className, customPosition, disableClickToOpen, disableClickOutside, disableFlipping, disableFocusTrap, hasCloseButton, spacing, id, isSubMenu, actionState, position, point, portalProps, kind, offset, onClose, onOpen, triggerRef, ...rest }: MrlPopoverProps): JSX.Element;
|
|
128
|
+
export declare namespace MrlPopover {
|
|
129
|
+
var componentType: string;
|
|
130
|
+
}
|
|
131
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type MrlPopoverContext = {
|
|
3
|
+
/**
|
|
4
|
+
* Close menu is shared in context to allow for closing the popover from a child component
|
|
5
|
+
*
|
|
6
|
+
* @returns {void}
|
|
7
|
+
*/
|
|
8
|
+
closeMenu: () => void;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Adds context for the MrlPopover component
|
|
12
|
+
*/
|
|
13
|
+
export declare const MrlPopoverContext: React.Context<MrlPopoverContext | undefined>;
|
|
14
|
+
/**
|
|
15
|
+
* Returns the MrlPopoverContext state.
|
|
16
|
+
*
|
|
17
|
+
* @returns The MrlPopoverContext state.
|
|
18
|
+
*/
|
|
19
|
+
export declare const useMrlPopoverContext: () => MrlPopoverContext;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ActionState } from '../../../menu';
|
|
3
|
+
import { MrlPopoverProps } from '../MrlPopover';
|
|
4
|
+
type UseMrlPopoverEventHandlersOptions = {
|
|
5
|
+
closeMenu: () => void;
|
|
6
|
+
isSubMenu: MrlPopoverProps['isSubMenu'];
|
|
7
|
+
disableFocusTrap: MrlPopoverProps['disableFocusTrap'];
|
|
8
|
+
disableClickToOpen: MrlPopoverProps['disableClickToOpen'];
|
|
9
|
+
hasCloseButton: MrlPopoverProps['hasCloseButton'];
|
|
10
|
+
interactiveElements: HTMLElement[];
|
|
11
|
+
menuRef: React.RefObject<HTMLDivElement>;
|
|
12
|
+
state: ActionState;
|
|
13
|
+
setState: React.Dispatch<React.SetStateAction<ActionState>>;
|
|
14
|
+
triggerRef: MrlPopoverProps['triggerRef'];
|
|
15
|
+
};
|
|
16
|
+
type UseMrlPopoverEventHandlersReturn = {
|
|
17
|
+
handleClose: (e: React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
18
|
+
handleMenuKey: (e: React.KeyboardEvent) => void;
|
|
19
|
+
handleTriggerSiblingKey: (e: KeyboardEvent) => void;
|
|
20
|
+
hideMenuHover: (e: MouseEvent) => void;
|
|
21
|
+
showMenuHover: () => void;
|
|
22
|
+
toggleMenuKey: (e: KeyboardEvent) => void;
|
|
23
|
+
toggleMenuMouse: () => void;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Creates all of the required event handlers for the MrlPopover component
|
|
27
|
+
*
|
|
28
|
+
* @param options configuration options
|
|
29
|
+
* @returns all of the required event handlers
|
|
30
|
+
*/
|
|
31
|
+
export declare const useMrlPopoverEventHandlers: ({ closeMenu, isSubMenu, disableFocusTrap, disableClickToOpen, hasCloseButton, interactiveElements, menuRef, state, setState, triggerRef }: UseMrlPopoverEventHandlersOptions) => UseMrlPopoverEventHandlersReturn;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MenuAlignment } from '../../../menu';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the data-point attribute for the popover pointer
|
|
4
|
+
*
|
|
5
|
+
* @param position - position of the menu
|
|
6
|
+
* @param alignment - alignment of the menu
|
|
7
|
+
* @returns - data-point attribute value
|
|
8
|
+
*/
|
|
9
|
+
export declare const getDataPoint: (position: string, alignment: MenuAlignment) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MenuPosition } from '../../../menu';
|
|
2
|
+
/**
|
|
3
|
+
* Returns a value in PX for the offset of the popover from the menu at different positions
|
|
4
|
+
*
|
|
5
|
+
* @param position - position of the menu
|
|
6
|
+
* @param point - if the menu has a pointer
|
|
7
|
+
* @returns - offset in PX
|
|
8
|
+
*/
|
|
9
|
+
export declare const getOffset: (position: MenuPosition, point: boolean) => number;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MenuPosition, ActionState, MenuAlignment } from '../../menu/constants';
|
|
3
|
+
interface PopoverWithIconButtonProps {
|
|
4
|
+
hasCloseButton?: boolean;
|
|
5
|
+
menuAlign?: MenuPosition;
|
|
6
|
+
spacing?: 'default' | 'compact';
|
|
7
|
+
alignment?: MenuAlignment;
|
|
8
|
+
actionState?: ActionState;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
triggerAlignment?: 'left' | 'right' | 'center';
|
|
11
|
+
kind?: 'inverse' | 'primary';
|
|
12
|
+
point?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Demo of a menu with a trigger for stories and testing
|
|
16
|
+
*
|
|
17
|
+
* @param {PopoverWithIconButtonProps} props - The props for the menu with trigger
|
|
18
|
+
* @returns {Element} The menu with trigger demo
|
|
19
|
+
*/
|
|
20
|
+
export declare const PopoverWithIconButton: ({ menuAlign, alignment, actionState, onClose, triggerAlignment, spacing, kind, point, hasCloseButton }: PopoverWithIconButtonProps) => JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MenuPosition, ActionState, MenuAlignment } from '../../menu/constants';
|
|
3
|
+
interface PopoverWithSelectProps {
|
|
4
|
+
hasCloseButton?: boolean;
|
|
5
|
+
menuAlign?: MenuPosition;
|
|
6
|
+
spacing?: 'default' | 'compact';
|
|
7
|
+
alignment?: MenuAlignment;
|
|
8
|
+
actionState?: ActionState;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
triggerAlignment?: 'left' | 'right' | 'center';
|
|
11
|
+
kind?: 'inverse' | 'primary';
|
|
12
|
+
point?: boolean;
|
|
13
|
+
disableFocusTrap?: boolean;
|
|
14
|
+
scrolling?: boolean;
|
|
15
|
+
position?: MenuPosition;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Demo of a popover with a select inside
|
|
19
|
+
*
|
|
20
|
+
* @param {PopoverWithSelectProps} props - The props for the menu with trigger
|
|
21
|
+
* @returns {Element} The menu with trigger demo
|
|
22
|
+
*/
|
|
23
|
+
export declare const PopoverWithSelect: ({ menuAlign, alignment, actionState, onClose, triggerAlignment, spacing, kind, point, hasCloseButton, disableFocusTrap }: PopoverWithSelectProps) => JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MenuPosition, ActionState, MenuAlignment } from '../../menu/constants';
|
|
3
|
+
interface PopoverWithTriggerProps {
|
|
4
|
+
hasCloseButton?: boolean;
|
|
5
|
+
menuAlign?: MenuPosition;
|
|
6
|
+
spacing?: 'default' | 'compact';
|
|
7
|
+
alignment?: MenuAlignment;
|
|
8
|
+
actionState?: ActionState;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
triggerAlignment?: 'left' | 'right' | 'center';
|
|
11
|
+
kind?: 'inverse' | 'primary';
|
|
12
|
+
point?: boolean;
|
|
13
|
+
disableFocusTrap?: boolean;
|
|
14
|
+
scrolling?: boolean;
|
|
15
|
+
position?: MenuPosition;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Demo of a menu with a trigger for stories and testing
|
|
19
|
+
*
|
|
20
|
+
* @param {PopoverWithTriggerProps} props - The props for the menu with trigger
|
|
21
|
+
* @returns {Element} The menu with trigger demo
|
|
22
|
+
*/
|
|
23
|
+
export declare const PopoverWithTrigger: ({ menuAlign, alignment, actionState, onClose, triggerAlignment, spacing, kind, point, hasCloseButton, disableFocusTrap, scrolling }: PopoverWithTriggerProps) => JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlPopover';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { PORTAL_LAYERS } from '../../utils/layers';
|
|
3
|
+
type PortalLayer = (typeof PORTAL_LAYERS)[keyof typeof PORTAL_LAYERS];
|
|
4
|
+
export interface PortalProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
['data-qa']?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
layer?: PortalLayer;
|
|
10
|
+
}
|
|
11
|
+
export declare const MRL_PORTAL_ID: "mrl-root-portal";
|
|
12
|
+
/**
|
|
13
|
+
* Dynamically creates a single portal and send your children to the portal.
|
|
14
|
+
* Where they will live outside of the normal document flow
|
|
15
|
+
*
|
|
16
|
+
* @param PortalProps Portal only takes children. Contact the platform team if you need to extend this.
|
|
17
|
+
* @returns MrlPortal component
|
|
18
|
+
*/
|
|
19
|
+
export declare const MrlPortal: ({ children, className, id, layer, ...remainingProps }: PortalProps) => React.ReactElement | null;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlPortal';
|