@muraldevkit/ui-toolkit 4.35.1-dev-yPbC.2 → 4.35.2-dev-mSSR.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 +31 -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/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 +30 -0
- package/dist/components/form/index.d.ts +18 -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/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 +9 -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 +5 -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 +36 -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 +45 -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 +32 -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 +119 -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/MenuGroupWithTrigger.d.ts +9 -0
- package/dist/components/menu/demo/MenuWithActionState.d.ts +19 -0
- package/dist/components/menu/demo/MenuWithIconButtonTrigger.d.ts +19 -0
- package/dist/components/menu/demo/MenuWithLink.d.ts +18 -0
- package/dist/components/menu/demo/MenuWithPopover.d.ts +18 -0
- package/dist/components/menu/demo/MenuWithRTI.d.ts +19 -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/modal/MrlModal/MrlModal.d.ts +55 -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 +128 -0
- package/dist/components/popover/MrlPopover/index.d.ts +1 -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 +201 -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 +24 -0
- package/dist/components/table/MrlTableCell/index.d.ts +1 -0
- package/dist/components/table/MrlTableColumn/MrlTableColumn.d.ts +24 -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 +21 -0
- package/dist/components/table/fixtures.d.ts +89 -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 +22 -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 +25 -0
- package/dist/components/tooltip/index.d.ts +2 -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 +3 -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 +10 -0
- package/dist/hooks/useTriggerPosition/index.d.ts +16 -0
- package/dist/hooks/useTriggerPosition/utilities.d.ts +11 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2 -0
- package/dist/index.js.LICENSE.txt +17 -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/MrlButton/global.scss +69 -0
- package/dist/styles/MrlCallout/module.scss +47 -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 +54 -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 +115 -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 +27 -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 +9 -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 +7 -0
- package/dist/styles/MrlTableColumn/module.scss +24 -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 +97 -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,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TextSizes } from '../../text/constants';
|
|
3
|
+
export interface MrlSkeletonTextProps extends React.ComponentProps<'div'> {
|
|
4
|
+
/** An object of CSS properties */
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
/** MrlSkeletonText wrapper class */
|
|
7
|
+
className?: string;
|
|
8
|
+
/** The width of the MrlSkeletonText component */
|
|
9
|
+
width?: React.CSSProperties['width'];
|
|
10
|
+
/** Number of lines to render */
|
|
11
|
+
lines?: number;
|
|
12
|
+
/** Size of the text which is the same as MrlText component */
|
|
13
|
+
size?: TextSizes;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* MrlSkeletonText React component. Used to create skeleton elements as placeholders
|
|
17
|
+
* for the MrlText component. It supports the same text sizes as the MrlText component.
|
|
18
|
+
*
|
|
19
|
+
* @param props {MrlSkeletonTextProps} - component props
|
|
20
|
+
* @returns a MrlSkeleton React component.
|
|
21
|
+
*/
|
|
22
|
+
export declare function MrlSkeletonText({ className, style, width, lines, size, ...rest }: MrlSkeletonTextProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlSkeletonText';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { MrlComponentProps } from '../../../utils';
|
|
3
|
+
import { SVGSize } from '../constants';
|
|
4
|
+
export type DSIcons = typeof import('@muraldevkit/ds-icons');
|
|
5
|
+
export type DSPictograms = typeof import('@muraldevkit/ds-pictograms');
|
|
6
|
+
export type DSIconType = DSIcons[keyof DSIcons] | DSPictograms[keyof DSPictograms];
|
|
7
|
+
export interface SvgPropTypes extends Omit<MrlComponentProps, 'style'>, Omit<React.ComponentProps<'svg'>, 'ref'> {
|
|
8
|
+
/** Any additional classes to style the SVG's container */
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @todo: Add optional path prop to point to a static SVG url
|
|
12
|
+
* @todo: Make SVG prop optional and must pass one of path or SVG
|
|
13
|
+
*/
|
|
14
|
+
isClone?: boolean;
|
|
15
|
+
/** The size of an SVG Component */
|
|
16
|
+
size?: SVGSize;
|
|
17
|
+
/**
|
|
18
|
+
* A object of CSS properties. Please use style sparingly, and only in cases where your
|
|
19
|
+
* needs can not be met by passing a class to the component.
|
|
20
|
+
*/
|
|
21
|
+
style?: Record<string, unknown>;
|
|
22
|
+
/** The SVG object to parse into an HTML SVG element */
|
|
23
|
+
svg: DSIconType;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Creating and exporting component class for Mural SVG
|
|
27
|
+
*
|
|
28
|
+
* @param {SvgPropTypes} props the props for your MrlSvg
|
|
29
|
+
* @returns {React.ReactElement} a rendered SVG
|
|
30
|
+
*/
|
|
31
|
+
export declare const MrlSvg: React.MemoExoticComponent<(props: SvgPropTypes) => React.ReactElement>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MrlSvg, type SvgPropTypes } from './MrlSvg';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AnimatedState } from '../constants';
|
|
3
|
+
/**
|
|
4
|
+
* Props for MrlSvgAnimate component
|
|
5
|
+
*/
|
|
6
|
+
export interface MrlSvgAnimateProps {
|
|
7
|
+
/** Any additional classes to style the SVG's container */
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* JSON file contents used by Lottie to generate an animated SVG to render.
|
|
11
|
+
* This attribute is mutually exclusive with fullPath and cdnFile.
|
|
12
|
+
* Note: When dynamically changing the svgData, if a configuration change
|
|
13
|
+
* is required be sure to set any new values before changing the svgData.
|
|
14
|
+
*/
|
|
15
|
+
svgData?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Path to a JSON file used by Lottie to generate an animated SVG to render.
|
|
18
|
+
* This attribute is mutually exclusive with svgData and cdnFile.
|
|
19
|
+
* Note: When dynamically changing the fullPath, if a configuration change
|
|
20
|
+
* is required be sure to set any new values before changing the fullPath.
|
|
21
|
+
*/
|
|
22
|
+
fullPath?: string;
|
|
23
|
+
/**
|
|
24
|
+
* File name of an animation hosted on Mural's CDN used by Lottie to generate
|
|
25
|
+
* an animated SVG to render. This is the preferred usage of this component
|
|
26
|
+
* in terms of performance. It supports any file located at `static/animations`.
|
|
27
|
+
* This attribute is mutually exclusive with fullPath and svgData.
|
|
28
|
+
* Note: When dynamically changing the cdnFile, if a configuration change
|
|
29
|
+
* is required be sure to set any new values before changing the cdnFile.
|
|
30
|
+
*/
|
|
31
|
+
cdnFile?: string;
|
|
32
|
+
/** Icon animation state. */
|
|
33
|
+
state?: AnimatedState;
|
|
34
|
+
/** Delay (in ms) before animation begins. */
|
|
35
|
+
delay?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Optional [Lottie configuration object](http://airbnb.io/lottie/#/web) for the
|
|
38
|
+
* loadAnimation method
|
|
39
|
+
*/
|
|
40
|
+
config?: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* MrlSvgAnimate
|
|
44
|
+
*
|
|
45
|
+
* This is a React functional component used for SVGs with robust After Effects animations.
|
|
46
|
+
*
|
|
47
|
+
* @param {MrlSvgAnimateProps} props - The properties for the MrlSvgAnimate component.
|
|
48
|
+
* @returns {React.ReactElement} - The rendered MrlSvgAnimate component.
|
|
49
|
+
*/
|
|
50
|
+
export declare const MrlSvgAnimate: React.FC<MrlSvgAnimateProps>;
|
|
51
|
+
export default MrlSvgAnimate;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MrlSvgAnimate, type MrlSvgAnimateProps } from './MrlSvgAnimate';
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/** Storybook configurations allowed for the SVG component. */
|
|
2
|
+
export interface SvgArgs {
|
|
3
|
+
color: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const storyData: {
|
|
6
|
+
args: {
|
|
7
|
+
color: string;
|
|
8
|
+
size: import("./constants").SVGSize;
|
|
9
|
+
};
|
|
10
|
+
argTypes: {
|
|
11
|
+
color: {
|
|
12
|
+
control: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
size: {
|
|
17
|
+
control: {
|
|
18
|
+
options: string[];
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
manifest: {
|
|
24
|
+
scans: {
|
|
25
|
+
size: string[];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
title: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const iconStoryData: {
|
|
31
|
+
manifest: {
|
|
32
|
+
exclude: {
|
|
33
|
+
default: string[];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
title: string;
|
|
37
|
+
};
|
|
38
|
+
export declare const pictogramStoryData: {
|
|
39
|
+
manifest: {
|
|
40
|
+
exclude: {
|
|
41
|
+
default: string[];
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
title: string;
|
|
45
|
+
};
|
|
46
|
+
export declare const visualThinkingContainerStyles: {
|
|
47
|
+
display: string;
|
|
48
|
+
flexDirection: string;
|
|
49
|
+
};
|
|
50
|
+
export declare const brandContainerStyles: {
|
|
51
|
+
background: string;
|
|
52
|
+
width: string;
|
|
53
|
+
};
|
|
54
|
+
export declare const headingStyles: {
|
|
55
|
+
marginTop: string;
|
|
56
|
+
};
|
|
57
|
+
export declare const colorPictoStoryData: {
|
|
58
|
+
args: {
|
|
59
|
+
state: string;
|
|
60
|
+
};
|
|
61
|
+
argTypes: {
|
|
62
|
+
state: {
|
|
63
|
+
control: {
|
|
64
|
+
options: string[];
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
manifest: {
|
|
70
|
+
exclude: {
|
|
71
|
+
default: string[];
|
|
72
|
+
};
|
|
73
|
+
scans: {
|
|
74
|
+
state: string[];
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
name: string;
|
|
78
|
+
title: string;
|
|
79
|
+
};
|
|
80
|
+
export declare const animateStoryData: {
|
|
81
|
+
args: {
|
|
82
|
+
delay: number;
|
|
83
|
+
state: "stop" | "play";
|
|
84
|
+
};
|
|
85
|
+
argTypes: {
|
|
86
|
+
delay: {
|
|
87
|
+
max: number;
|
|
88
|
+
min: number;
|
|
89
|
+
name: string;
|
|
90
|
+
step: number;
|
|
91
|
+
type: string;
|
|
92
|
+
};
|
|
93
|
+
state: {
|
|
94
|
+
control: {
|
|
95
|
+
options: readonly ["stop", "play"];
|
|
96
|
+
type: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
manifest: {
|
|
101
|
+
exclude: {
|
|
102
|
+
default: string[];
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
name: string;
|
|
106
|
+
title: string;
|
|
107
|
+
};
|
|
108
|
+
export declare const animateContainerStyles: {
|
|
109
|
+
backgroundColor: string;
|
|
110
|
+
height: string;
|
|
111
|
+
width: string;
|
|
112
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { AttrsObject } from '../../utils';
|
|
2
|
+
import { AnimationConfigWithData } from 'lottie-web';
|
|
3
|
+
export type SVGSize = 'small' | 'medium' | 'large' | 'auto';
|
|
4
|
+
export interface SVGDefaults {
|
|
5
|
+
attrs: AttrsObject;
|
|
6
|
+
size: SVGSize;
|
|
7
|
+
}
|
|
8
|
+
interface AllowedValues {
|
|
9
|
+
sizes: Array<string>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Defines all of values allowed for attributes with limited values;
|
|
13
|
+
* used for Storybook and testing
|
|
14
|
+
*/
|
|
15
|
+
export declare const allowedSvgValues: AllowedValues;
|
|
16
|
+
/**
|
|
17
|
+
* Default values for props on the SVG component;
|
|
18
|
+
* Shared between the component and Storybook
|
|
19
|
+
*/
|
|
20
|
+
export declare const svgDefaults: SVGDefaults;
|
|
21
|
+
export type SVGObject = Record<string, any>;
|
|
22
|
+
export type LottieConfig = Omit<AnimationConfigWithPath, 'container'>;
|
|
23
|
+
export declare const baseLottieConfig: LottieConfig;
|
|
24
|
+
interface AnimationConfigWithPath extends AnimationConfigWithData<'svg'> {
|
|
25
|
+
path?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const allowedAnimatedValues: {
|
|
28
|
+
states: readonly ["stop", "play"];
|
|
29
|
+
};
|
|
30
|
+
export type AnimatedState = (typeof allowedAnimatedValues.states)[number];
|
|
31
|
+
export interface AnimatedDefaults {
|
|
32
|
+
delay: number;
|
|
33
|
+
state: AnimatedState;
|
|
34
|
+
}
|
|
35
|
+
export declare const animatedDefaults: AnimatedDefaults;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { MrlTableProps } from '../MrlTable';
|
|
3
|
+
import { MrlSortDirection, MrlTableColumnId, MrlTableColumnSortDescriptor, MrlTableItemId, MrlTableSelectionMode } from '../constants';
|
|
4
|
+
export interface MrlSmartColumnRendererProps {
|
|
5
|
+
/**
|
|
6
|
+
* The column being rendered.
|
|
7
|
+
*/
|
|
8
|
+
column: MrlSmartTableColumn;
|
|
9
|
+
/**
|
|
10
|
+
* A function to change current sort descriptor.
|
|
11
|
+
*/
|
|
12
|
+
handleSortClick: ({ column, direction, name }: {
|
|
13
|
+
column: MrlSmartTableColumn['id'];
|
|
14
|
+
direction: MrlSortDirection;
|
|
15
|
+
name: string;
|
|
16
|
+
}) => void;
|
|
17
|
+
/**
|
|
18
|
+
* The element id of the table.
|
|
19
|
+
*/
|
|
20
|
+
tableElementId: string;
|
|
21
|
+
/**
|
|
22
|
+
* The data-qa prefix of the table.
|
|
23
|
+
*/
|
|
24
|
+
dataQaPrefix: string;
|
|
25
|
+
/**
|
|
26
|
+
* The current sort descriptor.
|
|
27
|
+
*/
|
|
28
|
+
sortDescriptor?: MrlTableColumnSortDescriptor;
|
|
29
|
+
hasScrollShadowLeft: boolean;
|
|
30
|
+
hasScrollShadowRight: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface MrlSmartCellRendererProps {
|
|
33
|
+
/**
|
|
34
|
+
* The item for the cell being rendered.
|
|
35
|
+
*/
|
|
36
|
+
item: MrlTableItem;
|
|
37
|
+
/**
|
|
38
|
+
* The column for the cell being rendered.
|
|
39
|
+
*/
|
|
40
|
+
column: MrlSmartTableColumn;
|
|
41
|
+
/**
|
|
42
|
+
* The element id of the table.
|
|
43
|
+
*/
|
|
44
|
+
tableElementId: string;
|
|
45
|
+
/**
|
|
46
|
+
* The data-qa prefix of the table.
|
|
47
|
+
*/
|
|
48
|
+
dataQaPrefix: string;
|
|
49
|
+
hasScrollShadowLeft: boolean;
|
|
50
|
+
hasScrollShadowRight: boolean;
|
|
51
|
+
}
|
|
52
|
+
export interface MrlTableItem extends Record<string, unknown> {
|
|
53
|
+
/**
|
|
54
|
+
* A unique identifier for the row item.
|
|
55
|
+
*/
|
|
56
|
+
id: MrlTableItemId;
|
|
57
|
+
/**
|
|
58
|
+
* This makes the row item not selectable.
|
|
59
|
+
*/
|
|
60
|
+
isSelectable?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* This makes the row item visually disabled.
|
|
63
|
+
*/
|
|
64
|
+
isDisabled?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* A ref to the table row element
|
|
67
|
+
* The ref is an object where the key is the item id and the value is the table row element
|
|
68
|
+
*/
|
|
69
|
+
rowRef?: React.MutableRefObject<Record<MrlTableItemId, HTMLTableRowElement>>;
|
|
70
|
+
}
|
|
71
|
+
export type MrlTableColumnSticky = 'left' | 'right';
|
|
72
|
+
export interface MrlSmartTableColumn {
|
|
73
|
+
/**
|
|
74
|
+
* The key used to retrieve the cell value from the item object,
|
|
75
|
+
* e.g. `item[key]`.
|
|
76
|
+
*/
|
|
77
|
+
id: MrlTableColumnId;
|
|
78
|
+
/**
|
|
79
|
+
* The display name of the column.
|
|
80
|
+
*/
|
|
81
|
+
name: string;
|
|
82
|
+
/**
|
|
83
|
+
* A component used to override rendering for each column cell. The
|
|
84
|
+
* component is expected to render a MrlTableColumn.
|
|
85
|
+
*/
|
|
86
|
+
renderColumn?: (props: MrlSmartColumnRendererProps) => JSX.Element;
|
|
87
|
+
/**
|
|
88
|
+
* A component used to override rendering for each row cell. The
|
|
89
|
+
* component is expected to render a MrlTableCell.
|
|
90
|
+
*/
|
|
91
|
+
renderCell?: (props: MrlSmartCellRendererProps) => JSX.Element;
|
|
92
|
+
/**
|
|
93
|
+
* Whether the column allows sorting.
|
|
94
|
+
*/
|
|
95
|
+
allowsSorting?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* A sort comparator function for the column.
|
|
98
|
+
*
|
|
99
|
+
* @default sortAlphabeticallyAsCoercedStrings
|
|
100
|
+
*/
|
|
101
|
+
sortBy?: (aValue: unknown, bValue: unknown) => number;
|
|
102
|
+
/**
|
|
103
|
+
* Whether the column is sticky
|
|
104
|
+
* the sticky effect will only work on the first or last column.
|
|
105
|
+
* Set to 'left' for the first column and 'right' for the last column
|
|
106
|
+
*
|
|
107
|
+
* @example The container of the table will need overflow:scroll/auto
|
|
108
|
+
* and the width will need to be constrained in order for
|
|
109
|
+
* the columns to be 'sticky'
|
|
110
|
+
*/
|
|
111
|
+
sticky?: MrlTableColumnSticky;
|
|
112
|
+
/**
|
|
113
|
+
* A tooltip to display on the column header.
|
|
114
|
+
*/
|
|
115
|
+
tooltip?: string;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* A set of item ids.
|
|
119
|
+
*/
|
|
120
|
+
export type MrlTableSelection = Set<MrlTableItemId>;
|
|
121
|
+
export interface MrlSmartTableSelectionOptions {
|
|
122
|
+
/**
|
|
123
|
+
* The type of selection that is allowed in the collection.
|
|
124
|
+
*
|
|
125
|
+
* @default none
|
|
126
|
+
*/
|
|
127
|
+
mode: MrlTableSelectionMode;
|
|
128
|
+
/**
|
|
129
|
+
* The currently selected keys in the collection (controlled).
|
|
130
|
+
*/
|
|
131
|
+
selectedKeys: MrlTableSelection;
|
|
132
|
+
/**
|
|
133
|
+
* Handler that is called when the selection changes.
|
|
134
|
+
*/
|
|
135
|
+
onSelectionChange: (keys: MrlTableSelection) => void;
|
|
136
|
+
}
|
|
137
|
+
export interface MrlTableColumnSortOptions {
|
|
138
|
+
/**
|
|
139
|
+
* The column to sort by.
|
|
140
|
+
*/
|
|
141
|
+
sortColumn: MrlSmartTableColumn;
|
|
142
|
+
/**
|
|
143
|
+
* The details of the sort.
|
|
144
|
+
*/
|
|
145
|
+
sortDescriptor: MrlTableColumnSortDescriptor;
|
|
146
|
+
}
|
|
147
|
+
export interface MrlSmartTableProps extends Partial<Pick<MrlTableProps, 'aria-label' | 'aria-labelledby' | 'aria-describedby' | 'aria-details'>> {
|
|
148
|
+
/**
|
|
149
|
+
* A list of table columns.
|
|
150
|
+
*/
|
|
151
|
+
columns: MrlSmartTableColumn[];
|
|
152
|
+
/**
|
|
153
|
+
* A list of items to populate the table.
|
|
154
|
+
*/
|
|
155
|
+
items: MrlTableItem[];
|
|
156
|
+
/**
|
|
157
|
+
* When provided, enables and controls table selection.
|
|
158
|
+
*/
|
|
159
|
+
selectionOptions?: MrlSmartTableSelectionOptions;
|
|
160
|
+
/**
|
|
161
|
+
* A prefix applied to each data-qa element within the table.
|
|
162
|
+
*
|
|
163
|
+
* @default "mrl-smart-table"
|
|
164
|
+
*/
|
|
165
|
+
dataQaPrefix?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Text to be displayed when there are no rows in the table.
|
|
168
|
+
* Will be ignored if `emptyState` is provided.
|
|
169
|
+
*
|
|
170
|
+
* @default "There's no data available to be displayed in this table."
|
|
171
|
+
*/
|
|
172
|
+
emptyStateText?: string;
|
|
173
|
+
/**
|
|
174
|
+
* Provides content to display when there are no rows in the table.
|
|
175
|
+
*
|
|
176
|
+
* @default MrlTableEmptyState
|
|
177
|
+
*/
|
|
178
|
+
emptyState?: JSX.Element;
|
|
179
|
+
/**
|
|
180
|
+
* An element id (and if not provided, a unique value decorated
|
|
181
|
+
* to prevent conflict with aria controls will be generated).
|
|
182
|
+
*
|
|
183
|
+
* @default ${id}-mrl-smart-table
|
|
184
|
+
*/
|
|
185
|
+
id?: string;
|
|
186
|
+
/**
|
|
187
|
+
* A function to override the default sort items when a sort descriptor is set.
|
|
188
|
+
*/
|
|
189
|
+
customSortItems?: ({ sortColumn, sortDescriptor }: MrlTableColumnSortOptions) => void;
|
|
190
|
+
/**
|
|
191
|
+
* Provides information on how the table should be sorted on initialization.
|
|
192
|
+
*/
|
|
193
|
+
defaultSortDescriptor?: MrlTableColumnSortDescriptor;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* MrlSmartTable Component
|
|
197
|
+
*
|
|
198
|
+
* @param {MrlSmartTableProps} props - MrlSmartTable component props
|
|
199
|
+
* @returns a table
|
|
200
|
+
*/
|
|
201
|
+
export declare function MrlSmartTable(props: MrlSmartTableProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlSmartTable';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface MrlTableProps extends React.ComponentPropsWithoutRef<'table'> {
|
|
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`
|
|
8
|
+
*/
|
|
9
|
+
id?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* MrlTable Component
|
|
13
|
+
*
|
|
14
|
+
* @param {MrlTable} props - MrlTable component props
|
|
15
|
+
* @returns a table element
|
|
16
|
+
*/
|
|
17
|
+
export declare const MrlTable: React.ForwardRefExoticComponent<MrlTableProps & React.RefAttributes<HTMLTableElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlTable';
|
|
@@ -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,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { MrlTableColumnSticky } from '../MrlSmartTable';
|
|
3
|
+
export interface MrlTableCellProps extends React.ComponentPropsWithoutRef<'td'> {
|
|
4
|
+
/**
|
|
5
|
+
* An element id (and if not provided, a unique value decorated
|
|
6
|
+
* to prevent conflict with aria controls will be generated).
|
|
7
|
+
*
|
|
8
|
+
* @default `${id}-mrl-table-cell`
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Whether this cell is sticky 'left' or sticky 'right' or not sticky at all
|
|
13
|
+
*/
|
|
14
|
+
sticky?: MrlTableColumnSticky;
|
|
15
|
+
hasScrollShadowLeft?: boolean;
|
|
16
|
+
hasScrollShadowRight?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* MrlTableCell Component
|
|
20
|
+
*
|
|
21
|
+
* @param {MrlTableCellProps} props - MrlTableCell component props
|
|
22
|
+
* @returns a table cell element
|
|
23
|
+
*/
|
|
24
|
+
export declare function MrlTableCell(props: MrlTableCellProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlTableCell';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { MrlTableColumnSticky } from '../MrlSmartTable';
|
|
3
|
+
export interface MrlTableColumnProps extends React.ComponentPropsWithoutRef<'th'> {
|
|
4
|
+
/**
|
|
5
|
+
* An element id (and if not provided, a unique value decorated
|
|
6
|
+
* to prevent conflict with aria controls will be generated).
|
|
7
|
+
*
|
|
8
|
+
* @default `${id}-mrl-table-column`
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Whether this column is sticky 'left' or sticky 'right' or not sticky at all
|
|
13
|
+
*/
|
|
14
|
+
sticky?: MrlTableColumnSticky;
|
|
15
|
+
hasScrollShadowLeft?: boolean;
|
|
16
|
+
hasScrollShadowRight?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* MrlTableColumn Component
|
|
20
|
+
*
|
|
21
|
+
* @param {MrlTableColumnProps} props - MrlTableColumn component props
|
|
22
|
+
* @returns a table column element
|
|
23
|
+
*/
|
|
24
|
+
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,21 @@
|
|
|
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';
|