@npm-questionpro/wick-ui-lib 1.48.0 → 1.48.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/ac_divergent.svg +50 -0
- package/dist/ac_qualitative.svg +50 -0
- package/dist/ac_sequential.svg +50 -0
- package/dist/bp_divergent.svg +130 -0
- package/dist/bp_qualitative.svg +53 -0
- package/dist/bp_sentiment.svg +76 -0
- package/dist/bp_sentiment_analysis.svg +112 -0
- package/dist/bp_sequential.svg +99 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.d.ts +2 -0
- package/dist/order_divergent.svg +61 -0
- package/dist/order_qualitative.svg +57 -0
- package/dist/order_sequential_blue.svg +52 -0
- package/dist/order_sequential_green.svg +52 -0
- package/dist/order_sequential_orange.svg +52 -0
- package/dist/order_sequential_red.svg +52 -0
- package/dist/src/base/ui/accordion.d.ts +7 -0
- package/dist/src/base/ui/avatar.d.ts +6 -0
- package/dist/src/base/ui/button.d.ts +12 -0
- package/dist/src/base/ui/checkbox.d.ts +6 -0
- package/dist/src/base/ui/command.d.ts +74 -0
- package/dist/src/base/ui/dialog.d.ts +23 -0
- package/dist/src/base/ui/dropdownMenu.d.ts +28 -0
- package/dist/src/base/ui/input.d.ts +3 -0
- package/dist/src/base/ui/label.d.ts +5 -0
- package/dist/src/base/ui/popover.d.ts +6 -0
- package/dist/src/base/ui/radioGroup.d.ts +5 -0
- package/dist/src/base/ui/scrollArea.d.ts +11 -0
- package/dist/src/base/ui/separator.d.ts +4 -0
- package/dist/src/base/ui/sheet.d.ts +29 -0
- package/dist/src/base/ui/skeleton.d.ts +2 -0
- package/dist/src/base/ui/switch.d.ts +4 -0
- package/dist/src/base/ui/table.d.ts +10 -0
- package/dist/src/base/ui/textarea.d.ts +3 -0
- package/dist/src/base/ui/toast.d.ts +18 -0
- package/dist/src/base/ui/toaster.d.ts +1 -0
- package/dist/src/base/ui/toggle.d.ts +12 -0
- package/dist/src/base/ui/toggleGroup.d.ts +12 -0
- package/dist/src/base/ui/tooltip.d.ts +7 -0
- package/dist/src/base/ui/useToast.d.ts +40 -0
- package/dist/src/components/accordion/WuAccordion.d.ts +26 -0
- package/dist/src/components/accordion/WuAccordion.test.d.ts +1 -0
- package/dist/src/components/accordion/index.d.ts +2 -0
- package/dist/src/components/activityLog/WuActivityLog.d.ts +18 -0
- package/dist/src/components/activityLog/WuActivityLog.test.d.ts +1 -0
- package/dist/src/components/activityLog/index.d.ts +2 -0
- package/dist/src/components/appHeader/WuAppHeader.d.ts +19 -0
- package/dist/src/components/appHeader/WuAppHeader.test.d.ts +1 -0
- package/dist/src/components/appHeader/components/WuAppHeaderBar.d.ts +6 -0
- package/dist/src/components/appHeader/components/WuAppHeaderDropdownWrapper.d.ts +11 -0
- package/dist/src/components/appHeader/components/WuAppHeaderSearch.d.ts +7 -0
- package/dist/src/components/appHeader/components/WuAppHeaderSearch.test.d.ts +1 -0
- package/dist/src/components/appHeader/components/WuTruncatedLabel.d.ts +4 -0
- package/dist/src/components/appHeader/components/account/WuAppHeaderAccount.d.ts +10 -0
- package/dist/src/components/appHeader/components/account/WuAppHeaderAccount.test.d.ts +1 -0
- package/dist/src/components/appHeader/components/account/ui/_logoutMenuItem.d.ts +4 -0
- package/dist/src/components/appHeader/components/account/ui/_otherMenuItem.d.ts +5 -0
- package/dist/src/components/appHeader/components/account/ui/_settingsMenuItem.d.ts +5 -0
- package/dist/src/components/appHeader/components/account/ui/_userMenuItem.d.ts +5 -0
- package/dist/src/components/appHeader/components/help/WuAppHeaderHelp.d.ts +7 -0
- package/dist/src/components/appHeader/components/help/WuAppHeaderHelp.test.d.ts +1 -0
- package/dist/src/components/appHeader/components/productSwitcher/WuAppHeaderMenu.d.ts +15 -0
- package/dist/src/components/appHeader/components/productSwitcher/WuAppHeaderMenu.test.d.ts +1 -0
- package/dist/src/components/appHeader/components/productSwitcher/ui/_categoryDetails.d.ts +8 -0
- package/dist/src/components/appHeader/components/productSwitcher/ui/_menuTrigger.d.ts +12 -0
- package/dist/src/components/appHeader/components/productSwitcher/ui/_productDropdown.d.ts +17 -0
- package/dist/src/components/appHeader/components/productSwitcher/ui/_productItem.d.ts +9 -0
- package/dist/src/components/appHeader/components/productSwitcher/ui/_productList.d.ts +13 -0
- package/dist/src/components/appHeader/components/productSwitcher/ui/_smallScreenMenuTrigger.d.ts +16 -0
- package/dist/src/components/appHeader/components/productSwitcher/ui/_smallScreenToggleMenu.d.ts +10 -0
- package/dist/src/components/appHeader/hooks/useOnClickOutsideHook.d.ts +2 -0
- package/dist/src/components/appHeader/hooks/useWindowSize.d.ts +2 -0
- package/dist/src/components/appHeader/index.d.ts +11 -0
- package/dist/src/components/appHeader/types/WuAppHeaderAccount.d.ts +47 -0
- package/dist/src/components/appHeader/types/WuAppHeaderHelpMenu.d.ts +7 -0
- package/dist/src/components/appHeader/types/WuAppHeaderMenuItem.d.ts +16 -0
- package/dist/src/components/appHeader/utils/dataFromApi.d.ts +3 -0
- package/dist/src/components/appHeader/utils/headerMenuKeyboardHandlers.d.ts +6 -0
- package/dist/src/components/appHeader/utils/iconMap.d.ts +4 -0
- package/dist/src/components/button/WuButton.d.ts +13 -0
- package/dist/src/components/button/WuButton.test.d.ts +1 -0
- package/dist/src/components/button/index.d.ts +2 -0
- package/dist/src/components/calendar/WuCalender.d.ts +3 -0
- package/dist/src/components/calendar/components/datePicker/WuDatePicker.d.ts +24 -0
- package/dist/src/components/calendar/components/datePicker/WuDatePicker.test.d.ts +1 -0
- package/dist/src/components/calendar/components/dateRangePicker/WuDateRangePicker.d.ts +31 -0
- package/dist/src/components/calendar/components/dateRangePicker/WuDateRangePicker.test.d.ts +1 -0
- package/dist/src/components/calendar/index.d.ts +5 -0
- package/dist/src/components/calendar/shadcn/calendar.d.ts +7 -0
- package/dist/src/components/calendar/ui/_footer.d.ts +8 -0
- package/dist/src/components/calendar/ui/_nativeSidebar.d.ts +17 -0
- package/dist/src/components/calendar/ui/_sidebar.d.ts +12 -0
- package/dist/src/components/calendar/ui/_trigger.d.ts +9 -0
- package/dist/src/components/calendar/utils/index.d.ts +7 -0
- package/dist/src/components/card/WuCard.d.ts +7 -0
- package/dist/src/components/card/WuCard.test.d.ts +1 -0
- package/dist/src/components/card/index.d.ts +2 -0
- package/dist/src/components/checkbox/WuCheckbox.d.ts +17 -0
- package/dist/src/components/checkbox/WuCheckbox.test.d.ts +1 -0
- package/dist/src/components/checkbox/index.d.ts +2 -0
- package/dist/src/components/chip/WuChip.d.ts +10 -0
- package/dist/src/components/chip/WuChip.test.d.ts +1 -0
- package/dist/src/components/chip/index.d.ts +2 -0
- package/dist/src/components/combobox/WuCombobox.d.ts +38 -0
- package/dist/src/components/combobox/WuCombobox.test.d.ts +1 -0
- package/dist/src/components/combobox/index.d.ts +3 -0
- package/dist/src/components/combobox/types/IWuComboboxOptions.d.ts +16 -0
- package/dist/src/components/combobox/ui/_item.d.ts +14 -0
- package/dist/src/components/combobox/ui/_tags.d.ts +5 -0
- package/dist/src/components/combobox/ui/_trigger.d.ts +22 -0
- package/dist/src/components/combobox/utils/index.d.ts +2 -0
- package/dist/src/components/combobox/utils/renderItems.d.ts +13 -0
- package/dist/src/components/combobox/utils/separateOptions.d.ts +7 -0
- package/dist/src/components/combobox/utils/useResizeContent.d.ts +2 -0
- package/dist/src/components/copyToClipboard/WuCopyToClipboard.d.ts +8 -0
- package/dist/src/components/copyToClipboard/WuCopyToClipboard.test.d.ts +1 -0
- package/dist/src/components/copyToClipboard/index.d.ts +2 -0
- package/dist/src/components/drawer/WuDrawer.d.ts +17 -0
- package/dist/src/components/drawer/WuDrawer.test.d.ts +1 -0
- package/dist/src/components/drawer/index.d.ts +2 -0
- package/dist/src/components/drilldown/WuDrilldown.d.ts +24 -0
- package/dist/src/components/drilldown/WuDrilldown.test.d.ts +1 -0
- package/dist/src/components/drilldown/WuDrilldownTitleMenu.d.ts +9 -0
- package/dist/src/components/drilldown/WuDrilldownTitles.d.ts +12 -0
- package/dist/src/components/drilldown/index.d.ts +3 -0
- package/dist/src/components/footer/WuFooter.d.ts +8 -0
- package/dist/src/components/footer/WuFooter.test.d.ts +1 -0
- package/dist/src/components/footer/index.d.ts +2 -0
- package/dist/src/components/formGroup/WuFormGroup.d.ts +10 -0
- package/dist/src/components/formGroup/WuFormGroup.test.d.ts +1 -0
- package/dist/src/components/formGroup/components/WuInputError.d.ts +6 -0
- package/dist/src/components/formGroup/components/WuInputHint.d.ts +7 -0
- package/dist/src/components/formGroup/components/WuLabel.d.ts +3 -0
- package/dist/src/components/formGroup/index.d.ts +5 -0
- package/dist/src/components/helpButton/WuHelpButton.d.ts +7 -0
- package/dist/src/components/helpButton/WuHelpButton.test.d.ts +1 -0
- package/dist/src/components/helpButton/index.d.ts +2 -0
- package/dist/src/components/input/WuInput.d.ts +13 -0
- package/dist/src/components/input/WuInput.test.d.ts +0 -0
- package/dist/src/components/input/index.d.ts +2 -0
- package/dist/src/components/listbox/WuListbox.d.ts +44 -0
- package/dist/src/components/listbox/WuListbox.test.d.ts +1 -0
- package/dist/src/components/listbox/index.d.ts +3 -0
- package/dist/src/components/listbox/subComponents/WuListboxTrigger.d.ts +4 -0
- package/dist/src/components/listbox/ui/_item.d.ts +14 -0
- package/dist/src/components/listbox/ui/_search.d.ts +3 -0
- package/dist/src/components/listbox/ui/_selectAll.d.ts +7 -0
- package/dist/src/components/listbox/ui/_trigger.d.ts +20 -0
- package/dist/src/components/listbox/utils/search.d.ts +2 -0
- package/dist/src/components/listbox/utils/useGenClass.d.ts +1 -0
- package/dist/src/components/loader/WuLoader.d.ts +8 -0
- package/dist/src/components/loader/WuLoader.test.d.ts +1 -0
- package/dist/src/components/loader/index.d.ts +2 -0
- package/dist/src/components/menu/WuMenu.d.ts +24 -0
- package/dist/src/components/menu/WuMenu.test.d.ts +1 -0
- package/dist/src/components/menu/index.d.ts +10 -0
- package/dist/src/components/menu/ui/WuMenuCheckboxItem.d.ts +8 -0
- package/dist/src/components/menu/ui/WuMenuItem.d.ts +8 -0
- package/dist/src/components/menu/ui/WuMenuItemGroup.d.ts +8 -0
- package/dist/src/components/menu/ui/WuMenuRadioItem.d.ts +15 -0
- package/dist/src/components/menu/ui/WuMenuSeparatorItem.d.ts +2 -0
- package/dist/src/components/menu/ui/WuSubMenu.d.ts +13 -0
- package/dist/src/components/menuIcon/WuMenuIcon.d.ts +9 -0
- package/dist/src/components/menuIcon/WuMenuIcon.test.d.ts +1 -0
- package/dist/src/components/menuIcon/index.d.ts +2 -0
- package/dist/src/components/modal/WuModal.d.ts +32 -0
- package/dist/src/components/modal/WuModal.test.d.ts +1 -0
- package/dist/src/components/modal/index.d.ts +2 -0
- package/dist/src/components/monthPicker/WuMonthPicker.d.ts +16 -0
- package/dist/src/components/monthPicker/WuMonthPicker.test.d.ts +1 -0
- package/dist/src/components/monthPicker/index.d.ts +2 -0
- package/dist/src/components/navbar/index.d.ts +4 -0
- package/dist/src/components/navbar/primaryNavbar/WuPrimaryNavbar.d.ts +12 -0
- package/dist/src/components/navbar/primaryNavbar/WuPrimaryNavbar.test.d.ts +1 -0
- package/dist/src/components/navbar/secondaryNavbar/WuSecondaryNavbar.d.ts +18 -0
- package/dist/src/components/navbar/secondaryNavbar/WuSecondaryNavbar.test.d.ts +1 -0
- package/dist/src/components/pagination/WuPagination.d.ts +10 -0
- package/dist/src/components/pagination/WuPagination.test.d.ts +1 -0
- package/dist/src/components/pagination/index.d.ts +2 -0
- package/dist/src/components/popover/WuPopover.d.ts +14 -0
- package/dist/src/components/popover/WuPopover.test.d.ts +1 -0
- package/dist/src/components/popover/index.d.ts +2 -0
- package/dist/src/components/radio/WuRadioGroup.d.ts +12 -0
- package/dist/src/components/radio/WuRadioGroup.test.d.ts +1 -0
- package/dist/src/components/radio/index.d.ts +3 -0
- package/dist/src/components/radio/types/IWuRadioOption.d.ts +6 -0
- package/dist/src/components/scrollArea/WuScrollArea.d.ts +4 -0
- package/dist/src/components/scrollArea/WuScrollArea.test.d.ts +1 -0
- package/dist/src/components/scrollArea/index.d.ts +1 -0
- package/dist/src/components/select/WuSelect.d.ts +33 -0
- package/dist/src/components/select/WuSelect.test.d.ts +1 -0
- package/dist/src/components/select/index.d.ts +3 -0
- package/dist/src/components/select/types/IWuSelectOptions.d.ts +16 -0
- package/dist/src/components/select/ui/_item.d.ts +15 -0
- package/dist/src/components/select/ui/_trigger.d.ts +20 -0
- package/dist/src/components/select/utils/renderItems.d.ts +10 -0
- package/dist/src/components/select/utils/useOptionDestructure.d.ts +8 -0
- package/dist/src/components/select/utils/useResizeContent.d.ts +2 -0
- package/dist/src/components/select/utils/useSortedSelectOptions.d.ts +4 -0
- package/dist/src/components/sidebar/WuSidebar.d.ts +33 -0
- package/dist/src/components/sidebar/WuSidebar.test.d.ts +1 -0
- package/dist/src/components/sidebar/index.d.ts +2 -0
- package/dist/src/components/sidebar/shadcn/sidebar.d.ts +44 -0
- package/dist/src/components/spotlight/WuSpotlight.d.ts +16 -0
- package/dist/src/components/spotlight/WuSpotlight.test.d.ts +1 -0
- package/dist/src/components/spotlight/index.d.ts +2 -0
- package/dist/src/components/stackedCard/WuStackedCard.d.ts +29 -0
- package/dist/src/components/stackedCard/WuStackedCard.test.d.ts +1 -0
- package/dist/src/components/stackedCard/index.d.ts +3 -0
- package/dist/src/components/stackedCard/utils/constant.d.ts +1 -0
- package/dist/src/components/stackedCard/utils/helper.d.ts +16 -0
- package/dist/src/components/stepper/WuStepper.d.ts +15 -0
- package/dist/src/components/stepper/WuStepper.test.d.ts +1 -0
- package/dist/src/components/stepper/index.d.ts +2 -0
- package/dist/src/components/surveySelect/WuSurveySelect.d.ts +5 -0
- package/dist/src/components/surveySelect/WuSurveySelect.test.d.ts +1 -0
- package/dist/src/components/surveySelect/index.d.ts +6 -0
- package/dist/src/components/surveySelect/subComponents/WuSharedSurvey.d.ts +3 -0
- package/dist/src/components/surveySelect/subComponents/WuSurveyItem.d.ts +3 -0
- package/dist/src/components/surveySelect/subComponents/WuSurveyList.d.ts +3 -0
- package/dist/src/components/surveySelect/subComponents/WuSurveySource.d.ts +8 -0
- package/dist/src/components/surveySelect/types/index.d.ts +15 -0
- package/dist/src/components/switcher/WuSwitcher.d.ts +25 -0
- package/dist/src/components/switcher/WuSwitcher.test.d.ts +1 -0
- package/dist/src/components/switcher/index.d.ts +4 -0
- package/dist/src/components/switcher/types/IWuSwitcherOption.d.ts +4 -0
- package/dist/src/components/switcher/types/IWuSwitcherOptions.d.ts +2 -0
- package/dist/src/components/switcher/ui/_iconTab.d.ts +11 -0
- package/dist/src/components/switcher/ui/_tab.d.ts +12 -0
- package/dist/src/components/switcher/ui/_toggle.d.ts +11 -0
- package/dist/src/components/tab/WuTab.d.ts +15 -0
- package/dist/src/components/tab/WuTab.test.d.ts +1 -0
- package/dist/src/components/tab/components/BaseTabContent.d.ts +8 -0
- package/dist/src/components/tab/hooks/useHorizontalTabScroll.d.ts +8 -0
- package/dist/src/components/tab/hooks/useTabIndicator.d.ts +9 -0
- package/dist/src/components/tab/hooks/useVerticalTabScroll.d.ts +8 -0
- package/dist/src/components/tab/index.d.ts +3 -0
- package/dist/src/components/tab/shadcn/tabs.d.ts +7 -0
- package/dist/src/components/tab/types/IWuItems.d.ts +5 -0
- package/dist/src/components/tab/ui/_horizontalTab.d.ts +3 -0
- package/dist/src/components/tab/ui/_verticalTab.d.ts +3 -0
- package/dist/src/components/table/components/dataTable/WuDataTable.d.ts +31 -0
- package/dist/src/components/table/components/dataTable/WuDataTable.test.d.ts +1 -0
- package/dist/src/components/table/components/table/WuTable.d.ts +35 -0
- package/dist/src/components/table/components/table/WuTable.test.d.ts +1 -0
- package/dist/src/components/table/hooks/useRowSelection.d.ts +11 -0
- package/dist/src/components/table/hooks/useTableCore.d.ts +19 -0
- package/dist/src/components/table/hooks/useTableScroll.d.ts +6 -0
- package/dist/src/components/table/index.d.ts +8 -0
- package/dist/src/components/table/types/IColumnDefaultSorting.d.ts +4 -0
- package/dist/src/components/table/types/IWuRowSelection.d.ts +10 -0
- package/dist/src/components/table/types/IWuTableColumnDef.d.ts +11 -0
- package/dist/src/components/table/ui/_body.d.ts +15 -0
- package/dist/src/components/table/ui/_header.d.ts +17 -0
- package/dist/src/components/table/ui/_virtualBody.d.ts +20 -0
- package/dist/src/components/table/utils/data.d.ts +65 -0
- package/dist/src/components/table/utils/tableHelpers.d.ts +16 -0
- package/dist/src/components/table/utils/tableStyles.d.ts +7 -0
- package/dist/src/components/table/utils/variantClass.d.ts +3 -0
- package/dist/src/components/textarea/WuTextarea.d.ts +8 -0
- package/dist/src/components/textarea/WuTextarea.test.d.ts +1 -0
- package/dist/src/components/textarea/index.d.ts +2 -0
- package/dist/src/components/timePicker/WuTimePicker.d.ts +9 -0
- package/dist/src/components/timePicker/WuTimePicker.test.d.ts +1 -0
- package/dist/src/components/timePicker/components/timeColumn.d.ts +11 -0
- package/dist/src/components/timePicker/hooks/useRotatedArrays.d.ts +5 -0
- package/dist/src/components/timePicker/hooks/useTimePickerScroll.d.ts +1 -0
- package/dist/src/components/timePicker/index.d.ts +2 -0
- package/dist/src/components/timePicker/utils/timePickerUtils.d.ts +12 -0
- package/dist/src/components/toast/WuToast.d.ts +1 -0
- package/dist/src/components/toast/WuToast.test.d.ts +1 -0
- package/dist/src/components/toast/hooks/useWuShowToast.d.ts +11 -0
- package/dist/src/components/toast/index.d.ts +3 -0
- package/dist/src/components/toast/types/IWuToastOptions.d.ts +5 -0
- package/dist/src/components/toggle/WuToggle.d.ts +8 -0
- package/dist/src/components/toggle/WuToggle.test.d.ts +1 -0
- package/dist/src/components/toggle/index.d.ts +2 -0
- package/dist/src/components/tooltip/WuTooltip.d.ts +15 -0
- package/dist/src/components/tooltip/WuTooltip.test.d.ts +1 -0
- package/dist/src/components/tooltip/index.d.ts +2 -0
- package/dist/src/components/typography/WuTypography.d.ts +21 -0
- package/dist/src/components/typography/WuTypography.test.d.ts +1 -0
- package/dist/src/components/typography/iconClasses.d.ts +1 -0
- package/dist/src/components/typography/index.d.ts +1 -0
- package/dist/src/components/useTranslation/WuTranslation.test.d.ts +1 -0
- package/dist/src/components/useTranslation/WuTranslationContext.d.ts +2 -0
- package/dist/src/components/useTranslation/WuTranslationProvider.d.ts +6 -0
- package/dist/src/components/useTranslation/index.d.ts +4 -0
- package/dist/src/components/useTranslation/types/index.d.ts +8 -0
- package/dist/src/components/useTranslation/useTranslationContext.d.ts +3 -0
- package/dist/src/components/virtualScroll/WuVirtualScroll.d.ts +11 -0
- package/dist/src/components/virtualScroll/WuVirtualScroll.test.d.ts +1 -0
- package/dist/src/components/virtualScroll/index.d.ts +2 -0
- package/dist/src/docs/Icons.d.ts +2 -0
- package/dist/src/docs/Theme.d.ts +3 -0
- package/dist/src/docs/Typography.d.ts +4 -0
- package/dist/src/docs/ui/chartColor.d.ts +4 -0
- package/dist/src/docs/ui/colorSystem.d.ts +10 -0
- package/dist/src/hooks/index.d.ts +1 -0
- package/dist/src/hooks/useAnimation.d.ts +9 -0
- package/dist/src/hooks/useAnimation.test.d.ts +1 -0
- package/dist/src/hooks/useMobile.d.ts +1 -0
- package/dist/src/hooks/useResizeList.d.ts +10 -0
- package/dist/src/index.d.ts +53 -0
- package/dist/src/lib/testUtils.d.ts +2 -0
- package/dist/src/lib/utils.d.ts +15 -0
- package/dist/src/translate/WuTranslate.d.ts +5 -0
- package/dist/src/translate/WuTranslateContext.d.ts +17 -0
- package/dist/src/translate/WuTranslateContext.test.d.ts +1 -0
- package/dist/src/translate/index.d.ts +3 -0
- package/dist/src/translate/wt.d.ts +13 -0
- package/dist/style.css +1 -0
- package/dist/wick-ui-lib/es/index.js +15745 -0
- package/dist/wick-ui-lib/umd/index.js +20 -0
- package/package.json +2 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IWuAppHeaderMenuItem } from '../../../types/WuAppHeaderMenuItem';
|
|
2
|
+
import { default as React, RefObject } from 'react';
|
|
3
|
+
interface IDropdownMenuProps {
|
|
4
|
+
dropdownRef: RefObject<HTMLUListElement | null>;
|
|
5
|
+
dir?: 'ltr' | 'rtl';
|
|
6
|
+
isDropdownOpen: boolean;
|
|
7
|
+
productCategories: IWuAppHeaderMenuItem[];
|
|
8
|
+
openCategory: IWuAppHeaderMenuItem | null;
|
|
9
|
+
setOpenCategory: React.Dispatch<React.SetStateAction<IWuAppHeaderMenuItem | null>>;
|
|
10
|
+
handleKeyDown: (e: React.KeyboardEvent<HTMLLIElement>, index: number) => void;
|
|
11
|
+
expandAll?: boolean;
|
|
12
|
+
activeProductName: string;
|
|
13
|
+
focusItem: string;
|
|
14
|
+
setFocusItem: (item: string) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const ProductDropdownMenu: React.FC<IDropdownMenuProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IWuAppHeaderSubMenuItem } from '../../../types/WuAppHeaderMenuItem';
|
|
2
|
+
export declare const ProductItem: React.FC<{
|
|
3
|
+
product: IWuAppHeaderSubMenuItem;
|
|
4
|
+
currentProduct?: string;
|
|
5
|
+
activeProductName: string;
|
|
6
|
+
dir?: 'ltr' | 'rtl';
|
|
7
|
+
focusItem: string;
|
|
8
|
+
setFocusItem: (item: string) => void;
|
|
9
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IWuAppHeaderMenuItem } from '../../../types/WuAppHeaderMenuItem';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
interface IProductListProps {
|
|
4
|
+
category: IWuAppHeaderMenuItem;
|
|
5
|
+
currentProduct: string;
|
|
6
|
+
activeProductName: string;
|
|
7
|
+
dir?: 'ltr' | 'rtl';
|
|
8
|
+
focusItem: string;
|
|
9
|
+
setFocusItem: (value: string) => void;
|
|
10
|
+
borderColorLocked?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const ProductList: React.FC<IProductListProps>;
|
|
13
|
+
export {};
|
package/dist/src/components/appHeader/components/productSwitcher/ui/_smallScreenMenuTrigger.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ISmallScreenMenuTriggerProps {
|
|
3
|
+
isProductButtonShow: boolean;
|
|
4
|
+
isDropdownOpen: boolean;
|
|
5
|
+
activeProductColor: {
|
|
6
|
+
hover: string;
|
|
7
|
+
};
|
|
8
|
+
activeProductBgColor: string;
|
|
9
|
+
activeProductName?: string;
|
|
10
|
+
dir?: 'ltr' | 'rtl';
|
|
11
|
+
smallScreenButtonRef: React.RefObject<HTMLButtonElement | null>;
|
|
12
|
+
handleDropdownToggle: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
13
|
+
handleKeyDown: (e: React.KeyboardEvent<HTMLButtonElement>, step: number) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const SmallScreenMenuTrigger: React.FC<ISmallScreenMenuTriggerProps>;
|
|
16
|
+
export {};
|
package/dist/src/components/appHeader/components/productSwitcher/ui/_smallScreenToggleMenu.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface IMenuToggleProps {
|
|
3
|
+
dir?: 'ltr' | 'rtl';
|
|
4
|
+
isProductButtonShow: boolean;
|
|
5
|
+
smallScreenToggleButtonRef: React.RefObject<HTMLButtonElement | null>;
|
|
6
|
+
setIsProductButtonShow: React.Dispatch<React.SetStateAction<boolean>>;
|
|
7
|
+
setDropdownOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
8
|
+
}
|
|
9
|
+
export declare const SmallScreenToggleMenu: React.FC<IMenuToggleProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { WuAppHeaderAccount } from './components/account/WuAppHeaderAccount';
|
|
2
|
+
export { WuAppHeaderHelp } from './components/help/WuAppHeaderHelp';
|
|
3
|
+
export { WuAppHeaderMenu } from './components/productSwitcher/WuAppHeaderMenu';
|
|
4
|
+
export { WuAppHeaderBar } from './components/WuAppHeaderBar';
|
|
5
|
+
export { WuAppHeaderSearch } from './components/WuAppHeaderSearch';
|
|
6
|
+
export { WuTruncatedLabel } from './components/WuTruncatedLabel';
|
|
7
|
+
export type { IWuAppHeaderAccount } from './types/WuAppHeaderAccount';
|
|
8
|
+
export type { IWuAppHeaderHelpMenu } from './types/WuAppHeaderHelpMenu';
|
|
9
|
+
export type { IWuAppHeaderMenuItem } from './types/WuAppHeaderMenuItem';
|
|
10
|
+
export { WuAppHeader } from './WuAppHeader';
|
|
11
|
+
export type { IWuAppHeaderProps } from './WuAppHeader';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
interface IWuUsage {
|
|
2
|
+
collectedResponseCount?: string;
|
|
3
|
+
displayResponseProgressBar?: boolean;
|
|
4
|
+
title?: string;
|
|
5
|
+
url?: string;
|
|
6
|
+
responseCountPercentage?: number;
|
|
7
|
+
}
|
|
8
|
+
interface IWuInvoice {
|
|
9
|
+
size?: number;
|
|
10
|
+
title?: string;
|
|
11
|
+
url?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IWuAppHeaderAccount {
|
|
14
|
+
profile?: {
|
|
15
|
+
title?: string;
|
|
16
|
+
subtitle?: string;
|
|
17
|
+
companyName?: string;
|
|
18
|
+
profilePicture?: string;
|
|
19
|
+
initials?: string;
|
|
20
|
+
sentimentIndustry?: string;
|
|
21
|
+
url?: string;
|
|
22
|
+
};
|
|
23
|
+
license?: {
|
|
24
|
+
expiryDate?: string;
|
|
25
|
+
expiryAfterQuarter?: boolean;
|
|
26
|
+
expiryDatePostFixString?: string;
|
|
27
|
+
subtitle?: string;
|
|
28
|
+
showExpiryDate?: boolean;
|
|
29
|
+
title?: string;
|
|
30
|
+
upgradeLink?: boolean;
|
|
31
|
+
currentLicenseExpiryDays?: number;
|
|
32
|
+
url?: string;
|
|
33
|
+
expiryBeforeTwoMonth?: boolean;
|
|
34
|
+
};
|
|
35
|
+
settings?: {
|
|
36
|
+
canDisplay?: boolean;
|
|
37
|
+
displayIcon?: boolean;
|
|
38
|
+
icon?: string;
|
|
39
|
+
title: string;
|
|
40
|
+
betaIconHTML?: string;
|
|
41
|
+
url?: string;
|
|
42
|
+
}[];
|
|
43
|
+
usage?: IWuUsage | null;
|
|
44
|
+
invoice?: IWuInvoice | null;
|
|
45
|
+
issueTrackerCount?: number;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface IWuAppHeaderMenuItem {
|
|
2
|
+
name: string;
|
|
3
|
+
logo: string;
|
|
4
|
+
desc?: string;
|
|
5
|
+
active?: boolean;
|
|
6
|
+
order?: number;
|
|
7
|
+
products?: IWuAppHeaderSubMenuItem[];
|
|
8
|
+
}
|
|
9
|
+
export interface IWuAppHeaderSubMenuItem {
|
|
10
|
+
name: string;
|
|
11
|
+
link: string;
|
|
12
|
+
icon?: string;
|
|
13
|
+
active?: boolean;
|
|
14
|
+
logo?: string;
|
|
15
|
+
order?: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IWuAppHeaderMenuItem } from '../types/WuAppHeaderMenuItem';
|
|
2
|
+
export declare function createHandleKeyDown({ productCategories, openCategory, setOpenCategory, }: {
|
|
3
|
+
productCategories: IWuAppHeaderMenuItem[];
|
|
4
|
+
openCategory: IWuAppHeaderMenuItem | null;
|
|
5
|
+
setOpenCategory: (category: IWuAppHeaderMenuItem | null) => void;
|
|
6
|
+
}): (event: React.KeyboardEvent, index: number, focusItem: string) => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface IWuButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
2
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'rounded' | 'link' | 'iconOnly';
|
|
3
|
+
size?: 'md' | 'sm' | 'mobile';
|
|
4
|
+
color?: 'primary' | 'upgrade' | 'error' | 'neutral';
|
|
5
|
+
Icon?: React.ReactNode;
|
|
6
|
+
iconPosition?: 'left' | 'right';
|
|
7
|
+
floating?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
selected?: boolean;
|
|
11
|
+
dir?: 'rtl' | 'ltr';
|
|
12
|
+
}
|
|
13
|
+
export declare const WuButton: import('react').ForwardRefExoticComponent<IWuButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PopoverContentProps } from '@radix-ui/react-popover';
|
|
3
|
+
export type IWuDatePickerProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'onChange'> & {
|
|
4
|
+
value?: Date | string;
|
|
5
|
+
onChange?: (date?: Date) => void;
|
|
6
|
+
onReset?: () => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
minDate?: Date;
|
|
9
|
+
maxDate?: Date;
|
|
10
|
+
formatString?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
variant?: 'primary' | 'outlined';
|
|
13
|
+
className?: string;
|
|
14
|
+
dir?: 'ltr' | 'rtl';
|
|
15
|
+
Label?: React.ReactNode;
|
|
16
|
+
labelPosition?: 'top' | 'left';
|
|
17
|
+
showResetButton?: boolean;
|
|
18
|
+
CustomTrigger?: (value?: string) => React.ReactElement;
|
|
19
|
+
align?: PopoverContentProps['align'];
|
|
20
|
+
alignOffset?: PopoverContentProps['alignOffset'];
|
|
21
|
+
side?: PopoverContentProps['side'];
|
|
22
|
+
sideOffset?: PopoverContentProps['sideOffset'];
|
|
23
|
+
};
|
|
24
|
+
export declare const WuDatePicker: React.FC<IWuDatePickerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DateRange } from 'react-day-picker';
|
|
3
|
+
import { PopoverContentProps } from '@radix-ui/react-popover';
|
|
4
|
+
export type IWuDateRangePickerProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'onChange'> & {
|
|
5
|
+
value?: DateRange;
|
|
6
|
+
onChange?: (date: DateRange | undefined) => void;
|
|
7
|
+
onReset?: () => void;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
minDate?: Date;
|
|
10
|
+
maxDate?: Date;
|
|
11
|
+
minDateToSelect?: number;
|
|
12
|
+
maxDateToSelect?: number;
|
|
13
|
+
formatString?: string;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
dir?: 'ltr' | 'rtl';
|
|
16
|
+
Label?: React.ReactNode;
|
|
17
|
+
labelPosition?: 'top' | 'left';
|
|
18
|
+
showResetButton?: boolean;
|
|
19
|
+
variant?: 'primary' | 'outlined';
|
|
20
|
+
native?: boolean;
|
|
21
|
+
presetRanges?: {
|
|
22
|
+
label: string;
|
|
23
|
+
value: number;
|
|
24
|
+
}[];
|
|
25
|
+
CustomTrigger?: (value?: string) => React.ReactElement;
|
|
26
|
+
align?: PopoverContentProps['align'];
|
|
27
|
+
alignOffset?: PopoverContentProps['alignOffset'];
|
|
28
|
+
side?: PopoverContentProps['side'];
|
|
29
|
+
sideOffset?: PopoverContentProps['sideOffset'];
|
|
30
|
+
};
|
|
31
|
+
export declare const WuDateRangePicker: React.FC<IWuDateRangePickerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { WuDatePicker } from './components/datePicker/WuDatePicker';
|
|
2
|
+
export type { IWuDatePickerProps } from './components/datePicker/WuDatePicker';
|
|
3
|
+
export { WuDateRangePicker } from './components/dateRangePicker/WuDateRangePicker';
|
|
4
|
+
export type { IWuDateRangePickerProps } from './components/dateRangePicker/WuDateRangePicker';
|
|
5
|
+
export { WuCalender } from './WuCalender';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DayPicker } from 'react-day-picker';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function Calendar({ className, classNames, dir, ...props }: React.ComponentProps<typeof DayPicker>): React.JSX.Element;
|
|
4
|
+
declare namespace Calendar {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
7
|
+
export { Calendar };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DateRange } from 'react-day-picker';
|
|
3
|
+
export interface IWuDateRangeNativeSidebarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
4
|
+
ranges?: {
|
|
5
|
+
label: string;
|
|
6
|
+
value: number;
|
|
7
|
+
}[];
|
|
8
|
+
excludeToday?: boolean;
|
|
9
|
+
current?: DateRange;
|
|
10
|
+
onSelect?: (date: DateRange) => void;
|
|
11
|
+
onReset?: () => void;
|
|
12
|
+
onApply?: () => void;
|
|
13
|
+
showResetButton?: boolean;
|
|
14
|
+
maxDate?: Date;
|
|
15
|
+
minDate?: Date;
|
|
16
|
+
}
|
|
17
|
+
export declare function WuDateRangeNativeSidebar({ ranges, excludeToday, current, onSelect, onReset, onApply, showResetButton, maxDate, minDate, ...props }: IWuDateRangeNativeSidebarProps): React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DateRange } from 'react-day-picker';
|
|
3
|
+
interface IWuDateRangePickerSidebarProps {
|
|
4
|
+
current?: DateRange;
|
|
5
|
+
onSelect: (date: DateRange) => void;
|
|
6
|
+
presetRanges?: {
|
|
7
|
+
label: string;
|
|
8
|
+
value: number;
|
|
9
|
+
}[];
|
|
10
|
+
}
|
|
11
|
+
export declare const WuDateRangeSidebar: React.FC<IWuDateRangePickerSidebarProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type IWuDatePickerTriggerProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
3
|
+
formattedString?: string;
|
|
4
|
+
dir?: 'ltr' | 'rtl';
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
variant?: 'primary' | 'outlined';
|
|
7
|
+
CustomTrigger?: (value?: string) => React.ReactElement;
|
|
8
|
+
};
|
|
9
|
+
export declare const WuDatePickerTrigger: React.FC<IWuDatePickerTriggerProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const disabledDate: (e: Date, disabled?: boolean, minDate?: Date, maxDate?: Date) => boolean;
|
|
2
|
+
export declare const parsedDate: (value?: Date | string) => Date;
|
|
3
|
+
export declare const INPUT_PATTERN = "(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])-\\d{4}";
|
|
4
|
+
export declare const DEFAULT_RANGES: {
|
|
5
|
+
label: string;
|
|
6
|
+
value: number;
|
|
7
|
+
}[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface IWuCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
rounded?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const WuCard: React.ForwardRefExoticComponent<IWuCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const WuCardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export declare const WuCardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Checkbox } from '../../base/ui/checkbox';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export type IWuCheckboxProps = Omit<React.ComponentPropsWithRef<typeof Checkbox>, 'onChange'> & {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
Label?: React.ReactNode;
|
|
7
|
+
labelPosition?: 'left' | 'right';
|
|
8
|
+
partial?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
onChange?: (e: boolean) => void;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* This extends to HTML button. So it supports all attributes of button.
|
|
15
|
+
* Note: className will apply to container. Style will apply to checkbox.
|
|
16
|
+
*/
|
|
17
|
+
export declare const WuCheckbox: React.ForwardRefExoticComponent<Omit<IWuCheckboxProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface IWuChipProps extends React.HTMLAttributes<HTMLElement> {
|
|
2
|
+
variant?: 'primary' | 'secondary';
|
|
3
|
+
size?: 'sm' | 'md' | 'lg';
|
|
4
|
+
shape?: 'default' | 'rounded';
|
|
5
|
+
color?: 'success' | 'warning' | 'danger';
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const WuChip: import('react').ForwardRefExoticComponent<IWuChipProps & import('react').RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type IWuComboboxProps<T> = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'defaultValue' | 'onSelect'> & {
|
|
3
|
+
data: T[];
|
|
4
|
+
accessorKey: {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
};
|
|
8
|
+
defaultValue?: T | T[] | null;
|
|
9
|
+
value?: T | T[] | null;
|
|
10
|
+
Header?: React.ReactNode;
|
|
11
|
+
virtualizedThreshold?: number;
|
|
12
|
+
isEllipse?: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
variant?: 'flat' | 'outlined';
|
|
15
|
+
dir?: 'ltr' | 'rtl';
|
|
16
|
+
Label?: React.ReactNode;
|
|
17
|
+
maxHeight?: number;
|
|
18
|
+
maxContentWidth?: string;
|
|
19
|
+
onSelect?: (value: T | T[]) => void;
|
|
20
|
+
hasGroup?: boolean;
|
|
21
|
+
multiple?: boolean;
|
|
22
|
+
selectAll?: {
|
|
23
|
+
enable: boolean;
|
|
24
|
+
label?: string;
|
|
25
|
+
includeDisabled?: boolean;
|
|
26
|
+
triggerText?: string;
|
|
27
|
+
};
|
|
28
|
+
id?: string;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
labelPosition?: 'left' | 'top' | 'right';
|
|
31
|
+
className?: string;
|
|
32
|
+
onScroll?: React.UIEventHandler<HTMLDivElement>;
|
|
33
|
+
enableSearch?: boolean;
|
|
34
|
+
noDataContent?: React.ReactNode;
|
|
35
|
+
/** @description This is an experimental flag. It might have performance impact. Please use at your own risk. */
|
|
36
|
+
selectedToTop?: boolean;
|
|
37
|
+
};
|
|
38
|
+
export declare const WuCombobox: <T>({ data, accessorKey, value, defaultValue, Header, virtualizedThreshold, isEllipse, placeholder, variant, dir, onSelect, Label, maxHeight, multiple, hasGroup, selectAll, id, disabled, labelPosition, className, onScroll, maxContentWidth, enableSearch, noDataContent, selectedToTop, ...rest }: IWuComboboxProps<T>) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type IWuComboboxItem<T> = T & {
|
|
3
|
+
type?: 'option';
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
isAdmin?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export interface IWuComboboxGroup<T> {
|
|
9
|
+
type: 'group';
|
|
10
|
+
label: string;
|
|
11
|
+
options: IWuComboboxItem<T>[];
|
|
12
|
+
}
|
|
13
|
+
export interface IWuComboboxDivider {
|
|
14
|
+
type: 'divider';
|
|
15
|
+
}
|
|
16
|
+
export type IWuComboboxOption<T> = IWuComboboxItem<T> | IWuComboboxGroup<T> | IWuComboboxDivider;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IWuComboboxItem } from '../types/IWuComboboxOptions';
|
|
3
|
+
export interface IWuComboboxItemProps<T> {
|
|
4
|
+
option: IWuComboboxItem<T>;
|
|
5
|
+
accessorKey: {
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
value?: IWuComboboxItem<T> | IWuComboboxItem<T>[];
|
|
10
|
+
multiple?: boolean;
|
|
11
|
+
onSelect: (value: IWuComboboxItem<T>) => void;
|
|
12
|
+
dir?: 'ltr' | 'rtl';
|
|
13
|
+
}
|
|
14
|
+
export declare const WuComboboxItem: <T>({ option, value, multiple, onSelect, accessorKey, dir, }: IWuComboboxItemProps<T>) => React.JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IWuComboboxItem } from '../types/IWuComboboxOptions';
|
|
3
|
+
import { IWuComboboxProps } from '../WuCombobox';
|
|
4
|
+
export type IWuComboboxTriggerProps<T> = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'defaultValue' | 'onSelect'> & {
|
|
5
|
+
accessorKey: {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
isEllipse?: boolean;
|
|
11
|
+
selectedOptions?: IWuComboboxItem<T> | IWuComboboxItem<T>[];
|
|
12
|
+
variant?: 'flat' | 'outlined';
|
|
13
|
+
dir?: 'ltr' | 'rtl';
|
|
14
|
+
multiple?: boolean;
|
|
15
|
+
id?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
selectAll?: IWuComboboxProps<T>['selectAll'];
|
|
18
|
+
isCheckedAll?: boolean;
|
|
19
|
+
className?: string;
|
|
20
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
21
|
+
};
|
|
22
|
+
export declare const WuComboboxTrigger: <T>({ placeholder, isEllipse, selectedOptions, variant, dir, accessorKey, multiple, id, disabled, selectAll, isCheckedAll, className, ...rest }: IWuComboboxTriggerProps<T>) => React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IWuComboboxOption } from '../types/IWuComboboxOptions';
|
|
3
|
+
import { IWuComboboxItemProps } from '../ui/_item';
|
|
4
|
+
import { IWuComboboxProps } from '../WuCombobox';
|
|
5
|
+
type IRenderComboboxItemsProps<T> = Omit<IWuComboboxItemProps<T>, 'option'> & {
|
|
6
|
+
option: IWuComboboxOption<T>;
|
|
7
|
+
selectAll?: IWuComboboxProps<T>['selectAll'];
|
|
8
|
+
handleSelectAll?: () => void;
|
|
9
|
+
isCheckedAll?: boolean;
|
|
10
|
+
isPartialSelected?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const RenderItems: <T>(props: IRenderComboboxItemsProps<T>) => React.JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IWuComboboxDivider, IWuComboboxGroup, IWuComboboxItem, IWuComboboxOption } from '../types/IWuComboboxOptions';
|
|
2
|
+
export declare const separateOptions: <T>(options: IWuComboboxOption<T>[]) => {
|
|
3
|
+
groups: IWuComboboxGroup<T>[];
|
|
4
|
+
dividers: IWuComboboxDivider[];
|
|
5
|
+
allOptions: IWuComboboxItem<T>[];
|
|
6
|
+
enabledOptions: IWuComboboxItem<T>[];
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SheetClose } from '../../base/ui/sheet';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export type IWuDrawerProps = React.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
Trigger?: React.ReactNode;
|
|
5
|
+
hideCloseButton?: boolean;
|
|
6
|
+
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
7
|
+
open?: boolean;
|
|
8
|
+
onOpenChange?: (e: boolean) => void;
|
|
9
|
+
preventClickOutside?: boolean;
|
|
10
|
+
overlayClassName?: string;
|
|
11
|
+
closeButtonClassName?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const createInteractOutsideHandler: (preventClickOutside?: boolean) => (e: {
|
|
14
|
+
preventDefault: () => void;
|
|
15
|
+
}) => void;
|
|
16
|
+
export declare const WuDrawer: React.FC<IWuDrawerProps>;
|
|
17
|
+
export declare const WuDrawerClose: React.FC<React.ComponentPropsWithoutRef<typeof SheetClose>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface IWuDrilldownTitle {
|
|
3
|
+
id: `LEVEL_${number}`;
|
|
4
|
+
title: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IWuDrilldownContext {
|
|
7
|
+
goNext: (id: `LEVEL_${number}`, data?: IWuDrilldownTitle) => void;
|
|
8
|
+
goBack: (id: `LEVEL_${number}`, data?: IWuDrilldownTitle) => void;
|
|
9
|
+
}
|
|
10
|
+
export interface IWuDrilldownItem {
|
|
11
|
+
component: React.ReactNode | ((ctx: IWuDrilldownContext) => React.ReactNode);
|
|
12
|
+
}
|
|
13
|
+
export type IWuDrilldownAnimationVariant = 'default' | 'slideRight' | 'slideLeft' | 'fadeZoom';
|
|
14
|
+
export interface IWuDrilldownProps {
|
|
15
|
+
items: Record<`LEVEL_${number}`, IWuDrilldownItem>;
|
|
16
|
+
initial: `LEVEL_${number}`;
|
|
17
|
+
baseTitle?: IWuDrilldownTitle;
|
|
18
|
+
mode?: 'popLayout' | 'wait';
|
|
19
|
+
headerClasses?: string;
|
|
20
|
+
offsetHeight?: number;
|
|
21
|
+
variant?: IWuDrilldownAnimationVariant;
|
|
22
|
+
dir?: 'ltr' | 'rtl';
|
|
23
|
+
}
|
|
24
|
+
export declare const WuDrilldown: React.FC<IWuDrilldownProps>;
|