@muraldevkit/ui-toolkit 4.45.2-dev-jOrv.1 → 4.45.2
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 +107 -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 +70 -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,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface MrlTableBodyProps extends React.ComponentPropsWithoutRef<'tbody'> {
|
|
3
|
+
/**
|
|
4
|
+
* An element id (and if not provided, a unique value decorated
|
|
5
|
+
* to prevent conflict with aria controls will be generated).
|
|
6
|
+
*
|
|
7
|
+
* @default `${id}-mrl-table-body`
|
|
8
|
+
*/
|
|
9
|
+
id?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* MrlTableBody Component
|
|
13
|
+
*
|
|
14
|
+
* @param {MrlTableBodyProps} props - MrlTableBody component props
|
|
15
|
+
* @returns a table body element
|
|
16
|
+
*/
|
|
17
|
+
export declare function MrlTableBody({ className, ...rest }: MrlTableBodyProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlTableBody';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { MrlTableColumnSticky } from '../MrlSmartTable';
|
|
3
|
+
import { MrlTableCellHorizontalAlign } from '../constants';
|
|
4
|
+
export interface MrlTableCellProps extends React.ComponentPropsWithoutRef<'td'> {
|
|
5
|
+
/**
|
|
6
|
+
* An element id (and if not provided, a unique value decorated
|
|
7
|
+
* to prevent conflict with aria controls will be generated).
|
|
8
|
+
*
|
|
9
|
+
* @default `${id}-mrl-table-cell`
|
|
10
|
+
*/
|
|
11
|
+
id?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Whether this cell is sticky 'left' or sticky 'right' or not sticky at all
|
|
14
|
+
*/
|
|
15
|
+
sticky?: MrlTableColumnSticky;
|
|
16
|
+
hasScrollShadowLeft?: boolean;
|
|
17
|
+
hasScrollShadowRight?: boolean;
|
|
18
|
+
horizontalAlign?: MrlTableCellHorizontalAlign;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* MrlTableCell Component
|
|
22
|
+
*
|
|
23
|
+
* @param {MrlTableCellProps} props - MrlTableCell component props
|
|
24
|
+
* @returns a table cell element
|
|
25
|
+
*/
|
|
26
|
+
export declare function MrlTableCell(props: MrlTableCellProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlTableCell';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { MrlTableColumnSticky } from '../MrlSmartTable';
|
|
3
|
+
import { MrlTableCellHorizontalAlign } from '../constants';
|
|
4
|
+
export interface MrlTableColumnProps extends React.ComponentPropsWithoutRef<'th'> {
|
|
5
|
+
/**
|
|
6
|
+
* An element id (and if not provided, a unique value decorated
|
|
7
|
+
* to prevent conflict with aria controls will be generated).
|
|
8
|
+
*
|
|
9
|
+
* @default `${id}-mrl-table-column`
|
|
10
|
+
*/
|
|
11
|
+
id?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Whether this column is sticky 'left' or sticky 'right' or not sticky at all
|
|
14
|
+
*/
|
|
15
|
+
sticky?: MrlTableColumnSticky;
|
|
16
|
+
hasScrollShadowLeft?: boolean;
|
|
17
|
+
hasScrollShadowRight?: boolean;
|
|
18
|
+
horizontalAlign?: MrlTableCellHorizontalAlign;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* MrlTableColumn Component
|
|
22
|
+
*
|
|
23
|
+
* @param {MrlTableColumnProps} props - MrlTableColumn component props
|
|
24
|
+
* @returns a table column element
|
|
25
|
+
*/
|
|
26
|
+
export declare function MrlTableColumn(props: MrlTableColumnProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlTableColumn';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface MrlTableEmptyStateProps {
|
|
3
|
+
/**
|
|
4
|
+
* Text to be displayed in the empty state.
|
|
5
|
+
*/
|
|
6
|
+
text?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* MrlTableEmptyState Component
|
|
10
|
+
*
|
|
11
|
+
* @param {MrlTableEmptyStateProps} props - MrlTableEmptyState component props
|
|
12
|
+
* @returns an empty state element
|
|
13
|
+
*/
|
|
14
|
+
export declare function MrlTableEmptyState({ text }: MrlTableEmptyStateProps): JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlTableEmptyState';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface MrlTableHeaderProps extends React.ComponentPropsWithoutRef<'thead'> {
|
|
3
|
+
/**
|
|
4
|
+
* An element id (and if not provided, a unique value decorated
|
|
5
|
+
* to prevent conflict with aria controls will be generated).
|
|
6
|
+
*
|
|
7
|
+
* @default `${id}-mrl-table-header`
|
|
8
|
+
*/
|
|
9
|
+
id?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* MrlTableHeader Component
|
|
13
|
+
*
|
|
14
|
+
* @param {MrlTableHeaderProps} props - MrlTableHeader component props
|
|
15
|
+
* @returns a table header element with a nested table row element
|
|
16
|
+
*/
|
|
17
|
+
export declare function MrlTableHeader({ children, className, ...rest }: MrlTableHeaderProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlTableHeader';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface MrlTableRowProps extends React.ComponentPropsWithoutRef<'tr'> {
|
|
3
|
+
/**
|
|
4
|
+
* An element id (and if not provided, a unique value decorated
|
|
5
|
+
* to prevent conflict with aria controls will be generated).
|
|
6
|
+
*
|
|
7
|
+
* @default `${id}-mrl-table-row`
|
|
8
|
+
*/
|
|
9
|
+
id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Id of the MrlTableItem associated with the table row
|
|
12
|
+
*/
|
|
13
|
+
itemId?: string;
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* Custom click handler to be used for mouse and keyboard selection of table row
|
|
17
|
+
*/
|
|
18
|
+
onClick?: (e: React.MouseEvent<HTMLElement> | React.KeyboardEvent) => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* MrlTableRow Component
|
|
22
|
+
*
|
|
23
|
+
* @param {MrlTableRowProps} props - MrlTableRow component props
|
|
24
|
+
* @returns a table row element
|
|
25
|
+
*/
|
|
26
|
+
export declare const MrlTableRow: React.ForwardRefExoticComponent<MrlTableRowProps & React.RefAttributes<Record<string, HTMLTableRowElement>>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlTableRow';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type MrlTableItemId = string;
|
|
2
|
+
export type MrlTableColumnId = string;
|
|
3
|
+
export declare enum MrlSortDirection {
|
|
4
|
+
ASC = 1,
|
|
5
|
+
DESC = -1
|
|
6
|
+
}
|
|
7
|
+
export interface MrlTableColumnSortDescriptor {
|
|
8
|
+
/**
|
|
9
|
+
* The key of the column to sort by.
|
|
10
|
+
*/
|
|
11
|
+
column: MrlTableColumnId;
|
|
12
|
+
/**
|
|
13
|
+
* The direction to sort by.
|
|
14
|
+
*/
|
|
15
|
+
direction: MrlSortDirection;
|
|
16
|
+
/**
|
|
17
|
+
* The name of the column to sort by.
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
}
|
|
21
|
+
export type MrlTableSelectionMode = 'single' | 'multiple';
|
|
22
|
+
export type MrlTableCellHorizontalAlign = 'left' | 'right';
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
declare enum STICKY_VALUES {
|
|
2
|
+
LEFT = "left",
|
|
3
|
+
RIGHT = "right"
|
|
4
|
+
}
|
|
5
|
+
export declare const SAMPLE_COLUMNS: ({
|
|
6
|
+
allowsSorting: boolean;
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
tooltip?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
allowsSorting: boolean;
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
tooltip: string;
|
|
15
|
+
} | {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
allowsSorting?: undefined;
|
|
19
|
+
tooltip?: undefined;
|
|
20
|
+
})[];
|
|
21
|
+
export declare const SAMPLE_ITEMS: {
|
|
22
|
+
dateModified: string;
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
type: string;
|
|
26
|
+
}[];
|
|
27
|
+
export declare const SAMPLE_ITEMS_FOR_ROW_CONTEXT_SORTING: {
|
|
28
|
+
dateModified: string;
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
}[];
|
|
32
|
+
export declare const SAMPLE_ITEMS_WITH_NON_SELECTABLE_ITEM: ({
|
|
33
|
+
dateModified: string;
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
type: string;
|
|
37
|
+
isSelectable?: undefined;
|
|
38
|
+
} | {
|
|
39
|
+
dateModified: string;
|
|
40
|
+
id: string;
|
|
41
|
+
isSelectable: boolean;
|
|
42
|
+
name: string;
|
|
43
|
+
type: string;
|
|
44
|
+
})[];
|
|
45
|
+
export declare const SAMPLE_ITEMS_WITH_DISABLED_ITEM: ({
|
|
46
|
+
dateModified: string;
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
type: string;
|
|
50
|
+
isDisabled?: undefined;
|
|
51
|
+
} | {
|
|
52
|
+
dateModified: string;
|
|
53
|
+
id: string;
|
|
54
|
+
isDisabled: boolean;
|
|
55
|
+
name: string;
|
|
56
|
+
type: string;
|
|
57
|
+
})[];
|
|
58
|
+
export declare const SAMPLE_STICKY_COLUMNS: ({
|
|
59
|
+
allowsSorting: boolean;
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
sticky: STICKY_VALUES;
|
|
63
|
+
} | {
|
|
64
|
+
allowsSorting: boolean;
|
|
65
|
+
id: string;
|
|
66
|
+
name: string;
|
|
67
|
+
sticky?: undefined;
|
|
68
|
+
} | {
|
|
69
|
+
id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
sticky: STICKY_VALUES;
|
|
72
|
+
allowsSorting?: undefined;
|
|
73
|
+
})[];
|
|
74
|
+
export declare const SAMPLE_STICKY_ITEMS: {
|
|
75
|
+
dateModified: string;
|
|
76
|
+
foobars: string;
|
|
77
|
+
id: string;
|
|
78
|
+
name: string;
|
|
79
|
+
type: string;
|
|
80
|
+
widgets: string;
|
|
81
|
+
}[];
|
|
82
|
+
export declare const SAMPLE_ITEMS_WITH_LONG_CONTENT: {
|
|
83
|
+
dateModified: string;
|
|
84
|
+
id: string;
|
|
85
|
+
name: string;
|
|
86
|
+
type: string;
|
|
87
|
+
}[];
|
|
88
|
+
export declare const SAMPLE_ITEMS_500: {
|
|
89
|
+
id: string;
|
|
90
|
+
dateModified: string;
|
|
91
|
+
name: string;
|
|
92
|
+
type: string;
|
|
93
|
+
}[];
|
|
94
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './MrlTable';
|
|
2
|
+
export * from './MrlTableBody';
|
|
3
|
+
export * from './MrlTableCell';
|
|
4
|
+
export * from './MrlTableColumn';
|
|
5
|
+
export * from './MrlTableHeader';
|
|
6
|
+
export * from './MrlTableRow';
|
|
7
|
+
export * from './MrlSmartTable';
|
|
8
|
+
export * from './MrlTableEmptyState';
|
|
9
|
+
export * from './constants';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { sortAsc, sortDes } from '@muraldevkit/ds-icons';
|
|
2
|
+
import { MrlSortDirection } from './constants';
|
|
3
|
+
/**
|
|
4
|
+
* Used as a generic sort comparator for unknown types by coercing each value
|
|
5
|
+
* to a string and sorting alphabetically. It will likely produce unexpected and/or
|
|
6
|
+
* undesirable results for anything other than the most basic text or numeric data.
|
|
7
|
+
*
|
|
8
|
+
* @param {unknown} a first of two values
|
|
9
|
+
* @param {unknown} b second of two values
|
|
10
|
+
* @returns {number} A negative number if a occurs before b; positive if the
|
|
11
|
+
* a occurs after b; 0 if they are equivalent.
|
|
12
|
+
*/
|
|
13
|
+
export declare const sortAlphabeticallyAsCoercedStrings: (a: unknown, b: unknown) => number;
|
|
14
|
+
/**
|
|
15
|
+
* Used to generate consistent keys for the entire structure of MrlSmartTable
|
|
16
|
+
*
|
|
17
|
+
* @param {string} prefix the unique structure prefix
|
|
18
|
+
* @param {string} elementType the element type to generate a key for
|
|
19
|
+
* @param {string[]} keys a set of properties to uniquely identify the element
|
|
20
|
+
* @returns {string} the generated key
|
|
21
|
+
*/
|
|
22
|
+
export declare const keyFor: (prefix: string, elementType: 'header' | 'column' | 'body' | 'row' | 'row-cell', ...keys: string[]) => string;
|
|
23
|
+
/**
|
|
24
|
+
* Provides sort icon based on direction.
|
|
25
|
+
*
|
|
26
|
+
* @param {MrlSortDirection} direction the sort direction
|
|
27
|
+
* @returns {typeof sortAsc | typeof sortDes} the icon
|
|
28
|
+
*/
|
|
29
|
+
export declare const sortIcon: (direction: MrlSortDirection) => typeof sortAsc | typeof sortDes;
|
|
30
|
+
/**
|
|
31
|
+
* Provides text label based on sort direction.
|
|
32
|
+
*
|
|
33
|
+
* @param {MrlSortDirection} direction the sort direction
|
|
34
|
+
* @returns {string} the text label
|
|
35
|
+
*/
|
|
36
|
+
export declare const sortText: (direction: MrlSortDirection) => string;
|
|
37
|
+
/**
|
|
38
|
+
* Provides next sort direction based on current direction.
|
|
39
|
+
*
|
|
40
|
+
* @param {MrlSortDirection} current sort direction
|
|
41
|
+
* @returns {MrlSortDirection} next sort direction
|
|
42
|
+
*/
|
|
43
|
+
export declare const nextSortDirection: (current?: MrlSortDirection) => MrlSortDirection;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface MrlTabProps extends React.ComponentProps<'button'> {
|
|
3
|
+
/** Class to be applied to the button element of the MrlTab */
|
|
4
|
+
className?: string;
|
|
5
|
+
icon?: React.ReactElement;
|
|
6
|
+
/**
|
|
7
|
+
* The id that will be passed to the MrlTabContext to set the active state.
|
|
8
|
+
* NOTE: This must match the `tabId` set on `MrlTabContent`!
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/** An addition function to call when clicking on a tab */
|
|
12
|
+
hookClick?: () => void;
|
|
13
|
+
text: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Renders a tab component
|
|
17
|
+
*
|
|
18
|
+
* @param {MrlTabProps} props the props for your MrlTab
|
|
19
|
+
* @returns {React.ReactElement} an a element containing the text you pass
|
|
20
|
+
*/
|
|
21
|
+
export declare const MrlTab: ({ className, icon, id, hookClick, text }: MrlTabProps) => React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlTab';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface MrlTabContentPropTypes {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
/** Class to be applied to the container element of the MrlTabContent */
|
|
5
|
+
className?: string;
|
|
6
|
+
/** The id of the tab button associated to this content */
|
|
7
|
+
tabId: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const MrlTabContent: React.FC<MrlTabContentPropTypes>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlTabContent';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface MrlTabGroupPropTypes {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
/** Class to be applied to the container element of the MrlTabGroup */
|
|
5
|
+
className?: string;
|
|
6
|
+
disablePageControls?: boolean;
|
|
7
|
+
/** A hidden label for the tab group for accessiblity purposes */
|
|
8
|
+
label?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const MrlTabGroup: React.FC<MrlTabGroupPropTypes>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlTabGroup';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { NavLinkProps } from 'react-router-dom';
|
|
3
|
+
export interface MrlTabLinkProps extends NavLinkProps {
|
|
4
|
+
/** Class to be applied to the NavLink element of the MrlTabLink */
|
|
5
|
+
className?: string;
|
|
6
|
+
/** Children to be rendered within the text component */
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
icon?: React.ReactElement;
|
|
9
|
+
/**
|
|
10
|
+
* The id that will be passed to the MrlTabContext to set the active state.
|
|
11
|
+
* NOTE: This must match the `tabId` set on `MrlTabContent`!
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
/** An addition function to call when clicking on a tab */
|
|
15
|
+
hookClick?: () => void;
|
|
16
|
+
/**
|
|
17
|
+
* Textual content when it's a static string; if you have nested elements,
|
|
18
|
+
* use children to provide content
|
|
19
|
+
*/
|
|
20
|
+
text?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Renders a tab component
|
|
24
|
+
*
|
|
25
|
+
* @param {MrlTabLinkProps} props the props for your MrlTabLink
|
|
26
|
+
* @returns {React.ReactElement} an a element containing the text you pass
|
|
27
|
+
*/
|
|
28
|
+
export declare const MrlTabLink: ({ className, children, icon, id, hookClick, text, to, ...remainingProps }: MrlTabLinkProps) => React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlTabLink';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { MrlTabContextProps } from '../../../';
|
|
3
|
+
export type MrlTabSize = 'small' | 'large';
|
|
4
|
+
export interface MrlTabsPropTypes {
|
|
5
|
+
/** Sets the tabs to be styled with capital case */
|
|
6
|
+
capitalizeTabTitles?: boolean;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
/** Class to be applied to the container element of the MrlTabs */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Sets the default active tab by id */
|
|
11
|
+
selectedTab?: string;
|
|
12
|
+
size?: MrlTabSize;
|
|
13
|
+
spaceTabsEvenly?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const MrlTabs: React.FC<MrlTabsPropTypes>;
|
|
16
|
+
/**
|
|
17
|
+
* Tab context to prevent us from having to do any prop drilling.
|
|
18
|
+
*
|
|
19
|
+
* @returns {MrlTabContextProps} the context of the tabs
|
|
20
|
+
*/
|
|
21
|
+
export declare function useMrlTabContext(): MrlTabContextProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlTabs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TabActionType = 'ArrowUp' | 'ArrowDown' | 'ArrowLeft' | 'ArrowRight' | 'Home' | 'End' | null;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AttrsObject } from '../../../utils';
|
|
3
|
+
import { TextSizes } from '../constants';
|
|
4
|
+
import { DataQa } from '../../../utils/dataQa';
|
|
5
|
+
interface MrlTextProps extends React.ComponentPropsWithoutRef<'p'>, DataQa {
|
|
6
|
+
/**
|
|
7
|
+
* Applies additional HTML attributes to the text element
|
|
8
|
+
*
|
|
9
|
+
* @deprecated - use the regular HTML attributes instead.
|
|
10
|
+
*/
|
|
11
|
+
attrs?: AttrsObject;
|
|
12
|
+
/** Children to be rendered within the text component */
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
/** Visual size of the text element */
|
|
15
|
+
size?: TextSizes;
|
|
16
|
+
/** Textual content when it's a static string; if you have nested elements, use children to provide content */
|
|
17
|
+
text?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* MrlText Component
|
|
21
|
+
*
|
|
22
|
+
* @param {MrlTextProps} props - MrlText component props
|
|
23
|
+
* @returns a paragraph element
|
|
24
|
+
*/
|
|
25
|
+
export declare function MrlText(props: MrlTextProps): JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlText';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AttrsObject } from '../../../utils';
|
|
3
|
+
import { LevelType, HeadingHierarchies, HeadingSizes, TextSizes, HeadingKinds } from '../constants';
|
|
4
|
+
import { DataQa } from '../../../utils/dataQa';
|
|
5
|
+
interface MrlTextHeadingProps extends React.ComponentPropsWithRef<'h1'>, DataQa {
|
|
6
|
+
/**
|
|
7
|
+
* Applies additional HTML attributes to the text element
|
|
8
|
+
*
|
|
9
|
+
* @deprecated - use the regular HTML attributes instead.
|
|
10
|
+
*/
|
|
11
|
+
attrs?: AttrsObject;
|
|
12
|
+
/** Children to be rendered within the text heading component */
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
/** Set the semantic level of the heading based on its usage in the page hierarchy */
|
|
15
|
+
level?: LevelType;
|
|
16
|
+
/** Visual styling use case for the heading */
|
|
17
|
+
kind?: HeadingKinds;
|
|
18
|
+
/**
|
|
19
|
+
* Visual size of the heading
|
|
20
|
+
* xsmall and xxsmall are only supported when kind="title"
|
|
21
|
+
*/
|
|
22
|
+
size?: HeadingSizes | TextSizes;
|
|
23
|
+
/**
|
|
24
|
+
* Clear and concise description of the content that the heading describes
|
|
25
|
+
*
|
|
26
|
+
* Note: hierarchy only impacts MrlTextHeading components with `kind="title"`
|
|
27
|
+
*/
|
|
28
|
+
hierarchy?: HeadingHierarchies;
|
|
29
|
+
text?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* MuralTextHeading component
|
|
33
|
+
* Used for creating semantic headings within a page
|
|
34
|
+
*
|
|
35
|
+
* @param {MrlTextHeadingProps} props - MrlTextHeading component props
|
|
36
|
+
* @returns a heading element
|
|
37
|
+
*/
|
|
38
|
+
export declare function MrlTextHeading(props: MrlTextHeadingProps): JSX.Element;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlTextHeading';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AttrsObject } from '../../utils';
|
|
2
|
+
export type TextSizes = 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large';
|
|
3
|
+
export interface TextDefaults {
|
|
4
|
+
attrs: AttrsObject;
|
|
5
|
+
size: TextSizes;
|
|
6
|
+
}
|
|
7
|
+
export declare const textAllowedValues: {
|
|
8
|
+
sizes: string[];
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Default values for props on the Text component;
|
|
12
|
+
* Shared between the component and Storybook
|
|
13
|
+
*/
|
|
14
|
+
export declare const textDefaults: TextDefaults;
|
|
15
|
+
export type LevelType = '1' | '2' | '3' | '4' | '5' | '6';
|
|
16
|
+
export type HeadingKinds = 'display' | 'headline' | 'title';
|
|
17
|
+
export type HeadingSizes = 'small' | 'medium' | 'large';
|
|
18
|
+
export type HeadingHierarchies = 'primary' | 'secondary';
|
|
19
|
+
export interface HeadingDefaults {
|
|
20
|
+
attrs: AttrsObject;
|
|
21
|
+
hierarchy: HeadingHierarchies;
|
|
22
|
+
kind: HeadingKinds;
|
|
23
|
+
level: LevelType;
|
|
24
|
+
size: HeadingSizes | TextSizes;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Defines all of classes allowed for the type attribute;
|
|
28
|
+
* used for Storybook and testing
|
|
29
|
+
*/
|
|
30
|
+
export declare const headingAllowedValues: {
|
|
31
|
+
hierarchy: string[];
|
|
32
|
+
kinds: string[];
|
|
33
|
+
level: string[];
|
|
34
|
+
sizes: string[];
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Default values for props on the Text component;
|
|
38
|
+
* Shared between the component and Storybook
|
|
39
|
+
*/
|
|
40
|
+
export declare const headingDefaults: HeadingDefaults;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../notification/MrlToast';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { MrlIconButtonProps, MrlMenuProps } from '../../../';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the MrlToolbar component.
|
|
5
|
+
*/
|
|
6
|
+
export interface MrlToolbarProps extends React.ComponentPropsWithRef<'div'> {
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
kind?: 'default' | 'inverse' | 'skeleton';
|
|
9
|
+
/**
|
|
10
|
+
* An optional prop to apply an aria-label to the MrlToobar
|
|
11
|
+
*/
|
|
12
|
+
label?: string;
|
|
13
|
+
lastToolbarInRow?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* An optional prop to set the maximum number of visible items in a toolbar.
|
|
16
|
+
* Additional items will appear in a menu.
|
|
17
|
+
*/
|
|
18
|
+
maxVisibleItems?: number;
|
|
19
|
+
menuButtonProps?: MrlIconButtonProps;
|
|
20
|
+
menuProps?: MrlMenuProps;
|
|
21
|
+
orientation?: 'horizontal' | 'vertical';
|
|
22
|
+
/**
|
|
23
|
+
* A boolean prop that sets RovingTabindex in the MrlToolbar
|
|
24
|
+
*/
|
|
25
|
+
shouldUseRti?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Sets the size of the toolbar - defaults to 'small'
|
|
28
|
+
*/
|
|
29
|
+
size?: 'xsmall' | 'small' | 'medium';
|
|
30
|
+
spaced?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* MrlToolbar component.
|
|
34
|
+
*
|
|
35
|
+
* @param props The MrlToolbar component properties.
|
|
36
|
+
* @returns The MrlToolbar component.
|
|
37
|
+
*/
|
|
38
|
+
export declare const MrlToolbar: (props: MrlToolbarProps) => React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlToolbar';
|