@npm-questionpro/wick-ui-lib 1.41.0 → 1.48.0
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/package.json +17 -16
- package/dist/ac_divergent.svg +0 -50
- package/dist/ac_qualitative.svg +0 -50
- package/dist/ac_sequential.svg +0 -50
- package/dist/bp_divergent.svg +0 -130
- package/dist/bp_qualitative.svg +0 -53
- package/dist/bp_sentiment.svg +0 -76
- package/dist/bp_sentiment_analysis.svg +0 -112
- package/dist/bp_sequential.svg +0 -99
- package/dist/favicon.ico +0 -0
- package/dist/index.d.ts +0 -2
- package/dist/order_divergent.svg +0 -61
- package/dist/order_qualitative.svg +0 -57
- package/dist/order_sequential_blue.svg +0 -52
- package/dist/order_sequential_green.svg +0 -52
- package/dist/order_sequential_orange.svg +0 -52
- package/dist/order_sequential_red.svg +0 -52
- package/dist/src/base/ui/accordion.d.ts +0 -7
- package/dist/src/base/ui/avatar.d.ts +0 -6
- package/dist/src/base/ui/button.d.ts +0 -12
- package/dist/src/base/ui/checkbox.d.ts +0 -6
- package/dist/src/base/ui/command.d.ts +0 -74
- package/dist/src/base/ui/dialog.d.ts +0 -23
- package/dist/src/base/ui/dropdownMenu.d.ts +0 -28
- package/dist/src/base/ui/input.d.ts +0 -3
- package/dist/src/base/ui/label.d.ts +0 -5
- package/dist/src/base/ui/popover.d.ts +0 -6
- package/dist/src/base/ui/radioGroup.d.ts +0 -5
- package/dist/src/base/ui/scrollArea.d.ts +0 -11
- package/dist/src/base/ui/separator.d.ts +0 -4
- package/dist/src/base/ui/sheet.d.ts +0 -29
- package/dist/src/base/ui/skeleton.d.ts +0 -2
- package/dist/src/base/ui/switch.d.ts +0 -4
- package/dist/src/base/ui/table.d.ts +0 -10
- package/dist/src/base/ui/textarea.d.ts +0 -3
- package/dist/src/base/ui/toast.d.ts +0 -18
- package/dist/src/base/ui/toaster.d.ts +0 -1
- package/dist/src/base/ui/toggle.d.ts +0 -12
- package/dist/src/base/ui/toggleGroup.d.ts +0 -12
- package/dist/src/base/ui/tooltip.d.ts +0 -7
- package/dist/src/base/ui/useToast.d.ts +0 -40
- package/dist/src/components/accordion/WuAccordion.d.ts +0 -26
- package/dist/src/components/accordion/WuAccordion.test.d.ts +0 -1
- package/dist/src/components/accordion/index.d.ts +0 -2
- package/dist/src/components/activityLog/WuActivityLog.d.ts +0 -18
- package/dist/src/components/activityLog/WuActivityLog.test.d.ts +0 -1
- package/dist/src/components/activityLog/index.d.ts +0 -2
- package/dist/src/components/appHeader/WuAppHeader.d.ts +0 -19
- package/dist/src/components/appHeader/WuAppHeader.test.d.ts +0 -1
- package/dist/src/components/appHeader/components/WuAppHeaderBar.d.ts +0 -6
- package/dist/src/components/appHeader/components/WuAppHeaderDropdownWrapper.d.ts +0 -11
- package/dist/src/components/appHeader/components/WuAppHeaderSearch.d.ts +0 -7
- package/dist/src/components/appHeader/components/WuAppHeaderSearch.test.d.ts +0 -1
- package/dist/src/components/appHeader/components/WuTruncatedLabel.d.ts +0 -4
- package/dist/src/components/appHeader/components/account/WuAppHeaderAccount.d.ts +0 -10
- package/dist/src/components/appHeader/components/account/WuAppHeaderAccount.test.d.ts +0 -1
- package/dist/src/components/appHeader/components/account/ui/_logoutMenuItem.d.ts +0 -4
- package/dist/src/components/appHeader/components/account/ui/_otherMenuItem.d.ts +0 -5
- package/dist/src/components/appHeader/components/account/ui/_settingsMenuItem.d.ts +0 -5
- package/dist/src/components/appHeader/components/account/ui/_userMenuItem.d.ts +0 -5
- package/dist/src/components/appHeader/components/help/WuAppHeaderHelp.d.ts +0 -7
- package/dist/src/components/appHeader/components/help/WuAppHeaderHelp.test.d.ts +0 -1
- package/dist/src/components/appHeader/components/productSwitcher/WuAppHeaderMenu.d.ts +0 -15
- package/dist/src/components/appHeader/components/productSwitcher/WuAppHeaderMenu.test.d.ts +0 -1
- package/dist/src/components/appHeader/components/productSwitcher/ui/_categoryDetails.d.ts +0 -8
- package/dist/src/components/appHeader/components/productSwitcher/ui/_menuTrigger.d.ts +0 -12
- package/dist/src/components/appHeader/components/productSwitcher/ui/_productDropdown.d.ts +0 -17
- package/dist/src/components/appHeader/components/productSwitcher/ui/_productItem.d.ts +0 -9
- package/dist/src/components/appHeader/components/productSwitcher/ui/_productList.d.ts +0 -13
- package/dist/src/components/appHeader/components/productSwitcher/ui/_smallScreenMenuTrigger.d.ts +0 -16
- package/dist/src/components/appHeader/components/productSwitcher/ui/_smallScreenToggleMenu.d.ts +0 -10
- package/dist/src/components/appHeader/hooks/useOnClickOutsideHook.d.ts +0 -2
- package/dist/src/components/appHeader/hooks/useWindowSize.d.ts +0 -2
- package/dist/src/components/appHeader/index.d.ts +0 -11
- package/dist/src/components/appHeader/types/WuAppHeaderAccount.d.ts +0 -47
- package/dist/src/components/appHeader/types/WuAppHeaderHelpMenu.d.ts +0 -7
- package/dist/src/components/appHeader/types/WuAppHeaderMenuItem.d.ts +0 -16
- package/dist/src/components/appHeader/utils/dataFromApi.d.ts +0 -3
- package/dist/src/components/appHeader/utils/headerMenuKeyboardHandlers.d.ts +0 -6
- package/dist/src/components/appHeader/utils/iconMap.d.ts +0 -3
- package/dist/src/components/button/WuButton.d.ts +0 -13
- package/dist/src/components/button/WuButton.test.d.ts +0 -1
- package/dist/src/components/button/index.d.ts +0 -2
- package/dist/src/components/calendar/WuCalender.d.ts +0 -3
- package/dist/src/components/calendar/components/datePicker/WuDatePicker.d.ts +0 -24
- package/dist/src/components/calendar/components/datePicker/WuDatePicker.test.d.ts +0 -1
- package/dist/src/components/calendar/components/dateRangePicker/WuDateRangePicker.d.ts +0 -31
- package/dist/src/components/calendar/components/dateRangePicker/WuDateRangePicker.test.d.ts +0 -1
- package/dist/src/components/calendar/index.d.ts +0 -5
- package/dist/src/components/calendar/shadcn/calendar.d.ts +0 -7
- package/dist/src/components/calendar/ui/_footer.d.ts +0 -8
- package/dist/src/components/calendar/ui/_nativeSidebar.d.ts +0 -17
- package/dist/src/components/calendar/ui/_sidebar.d.ts +0 -12
- package/dist/src/components/calendar/ui/_trigger.d.ts +0 -9
- package/dist/src/components/calendar/utils/index.d.ts +0 -7
- package/dist/src/components/card/WuCard.d.ts +0 -7
- package/dist/src/components/card/WuCard.test.d.ts +0 -1
- package/dist/src/components/card/index.d.ts +0 -2
- package/dist/src/components/checkbox/WuCheckbox.d.ts +0 -17
- package/dist/src/components/checkbox/WuCheckbox.test.d.ts +0 -1
- package/dist/src/components/checkbox/index.d.ts +0 -2
- package/dist/src/components/chip/WuChip.d.ts +0 -10
- package/dist/src/components/chip/WuChip.test.d.ts +0 -1
- package/dist/src/components/chip/index.d.ts +0 -2
- package/dist/src/components/combobox/WuCombobox.d.ts +0 -38
- package/dist/src/components/combobox/WuCombobox.test.d.ts +0 -1
- package/dist/src/components/combobox/index.d.ts +0 -3
- package/dist/src/components/combobox/types/IWuComboboxOptions.d.ts +0 -16
- package/dist/src/components/combobox/ui/_item.d.ts +0 -14
- package/dist/src/components/combobox/ui/_tags.d.ts +0 -5
- package/dist/src/components/combobox/ui/_trigger.d.ts +0 -22
- package/dist/src/components/combobox/utils/index.d.ts +0 -2
- package/dist/src/components/combobox/utils/renderItems.d.ts +0 -13
- package/dist/src/components/combobox/utils/separateOptions.d.ts +0 -7
- package/dist/src/components/combobox/utils/useResizeContent.d.ts +0 -2
- package/dist/src/components/copyToClipboard/WuCopyToClipboard.d.ts +0 -8
- package/dist/src/components/copyToClipboard/WuCopyToClipboard.test.d.ts +0 -1
- package/dist/src/components/copyToClipboard/index.d.ts +0 -2
- package/dist/src/components/drawer/WuDrawer.d.ts +0 -17
- package/dist/src/components/drawer/WuDrawer.test.d.ts +0 -1
- package/dist/src/components/drawer/index.d.ts +0 -2
- package/dist/src/components/drilldown/WuDrilldown.d.ts +0 -24
- package/dist/src/components/drilldown/WuDrilldown.test.d.ts +0 -1
- package/dist/src/components/drilldown/WuDrilldownTitleMenu.d.ts +0 -9
- package/dist/src/components/drilldown/WuDrilldownTitles.d.ts +0 -12
- package/dist/src/components/drilldown/index.d.ts +0 -3
- package/dist/src/components/footer/WuFooter.d.ts +0 -8
- package/dist/src/components/footer/WuFooter.test.d.ts +0 -1
- package/dist/src/components/footer/index.d.ts +0 -2
- package/dist/src/components/formGroup/WuFormGroup.d.ts +0 -10
- package/dist/src/components/formGroup/WuFormGroup.test.d.ts +0 -1
- package/dist/src/components/formGroup/components/WuInputError.d.ts +0 -6
- package/dist/src/components/formGroup/components/WuInputHint.d.ts +0 -7
- package/dist/src/components/formGroup/components/WuLabel.d.ts +0 -3
- package/dist/src/components/formGroup/index.d.ts +0 -5
- package/dist/src/components/helpButton/WuHelpButton.d.ts +0 -7
- package/dist/src/components/helpButton/WuHelpButton.test.d.ts +0 -1
- package/dist/src/components/helpButton/index.d.ts +0 -2
- package/dist/src/components/input/WuInput.d.ts +0 -13
- package/dist/src/components/input/WuInput.test.d.ts +0 -0
- package/dist/src/components/input/index.d.ts +0 -2
- package/dist/src/components/listbox/WuListbox.d.ts +0 -44
- package/dist/src/components/listbox/WuListbox.test.d.ts +0 -1
- package/dist/src/components/listbox/index.d.ts +0 -3
- package/dist/src/components/listbox/subComponents/WuListboxTrigger.d.ts +0 -4
- package/dist/src/components/listbox/ui/_item.d.ts +0 -14
- package/dist/src/components/listbox/ui/_search.d.ts +0 -3
- package/dist/src/components/listbox/ui/_selectAll.d.ts +0 -7
- package/dist/src/components/listbox/ui/_trigger.d.ts +0 -20
- package/dist/src/components/listbox/utils/search.d.ts +0 -2
- package/dist/src/components/listbox/utils/useGenClass.d.ts +0 -1
- package/dist/src/components/loader/WuLoader.d.ts +0 -8
- package/dist/src/components/loader/WuLoader.test.d.ts +0 -1
- package/dist/src/components/loader/index.d.ts +0 -2
- package/dist/src/components/menu/WuMenu.d.ts +0 -24
- package/dist/src/components/menu/WuMenu.test.d.ts +0 -1
- package/dist/src/components/menu/index.d.ts +0 -10
- package/dist/src/components/menu/ui/WuMenuCheckboxItem.d.ts +0 -8
- package/dist/src/components/menu/ui/WuMenuItem.d.ts +0 -8
- package/dist/src/components/menu/ui/WuMenuItemGroup.d.ts +0 -8
- package/dist/src/components/menu/ui/WuMenuRadioItem.d.ts +0 -15
- package/dist/src/components/menu/ui/WuMenuSeparatorItem.d.ts +0 -2
- package/dist/src/components/menu/ui/WuSubMenu.d.ts +0 -13
- package/dist/src/components/menuIcon/WuMenuIcon.d.ts +0 -9
- package/dist/src/components/menuIcon/WuMenuIcon.test.d.ts +0 -1
- package/dist/src/components/menuIcon/index.d.ts +0 -2
- package/dist/src/components/modal/WuModal.d.ts +0 -32
- package/dist/src/components/modal/WuModal.test.d.ts +0 -1
- package/dist/src/components/modal/index.d.ts +0 -2
- package/dist/src/components/monthPicker/WuMonthPicker.d.ts +0 -16
- package/dist/src/components/monthPicker/WuMonthPicker.test.d.ts +0 -1
- package/dist/src/components/monthPicker/index.d.ts +0 -2
- package/dist/src/components/navbar/index.d.ts +0 -4
- package/dist/src/components/navbar/primaryNavbar/WuPrimaryNavbar.d.ts +0 -12
- package/dist/src/components/navbar/primaryNavbar/WuPrimaryNavbar.test.d.ts +0 -1
- package/dist/src/components/navbar/secondaryNavbar/WuSecondaryNavbar.d.ts +0 -18
- package/dist/src/components/navbar/secondaryNavbar/WuSecondaryNavbar.test.d.ts +0 -1
- package/dist/src/components/pagination/WuPagination.d.ts +0 -10
- package/dist/src/components/pagination/WuPagination.test.d.ts +0 -1
- package/dist/src/components/pagination/index.d.ts +0 -2
- package/dist/src/components/popover/WuPopover.d.ts +0 -14
- package/dist/src/components/popover/WuPopover.test.d.ts +0 -1
- package/dist/src/components/popover/index.d.ts +0 -2
- package/dist/src/components/radio/WuRadioGroup.d.ts +0 -12
- package/dist/src/components/radio/WuRadioGroup.test.d.ts +0 -1
- package/dist/src/components/radio/index.d.ts +0 -3
- package/dist/src/components/radio/types/IWuRadioOption.d.ts +0 -6
- package/dist/src/components/scrollArea/WuScrollArea.d.ts +0 -4
- package/dist/src/components/scrollArea/WuScrollArea.test.d.ts +0 -1
- package/dist/src/components/scrollArea/index.d.ts +0 -1
- package/dist/src/components/select/WuSelect.d.ts +0 -33
- package/dist/src/components/select/WuSelect.test.d.ts +0 -1
- package/dist/src/components/select/index.d.ts +0 -3
- package/dist/src/components/select/types/IWuSelectOptions.d.ts +0 -16
- package/dist/src/components/select/ui/_item.d.ts +0 -15
- package/dist/src/components/select/ui/_trigger.d.ts +0 -20
- package/dist/src/components/select/utils/renderItems.d.ts +0 -10
- package/dist/src/components/select/utils/useOptionDestructure.d.ts +0 -8
- package/dist/src/components/select/utils/useResizeContent.d.ts +0 -2
- package/dist/src/components/select/utils/useSortedSelectOptions.d.ts +0 -4
- package/dist/src/components/sidebar/WuSidebar.d.ts +0 -33
- package/dist/src/components/sidebar/WuSidebar.test.d.ts +0 -1
- package/dist/src/components/sidebar/index.d.ts +0 -2
- package/dist/src/components/sidebar/shadcn/sidebar.d.ts +0 -44
- package/dist/src/components/spotlight/WuSpotlight.d.ts +0 -16
- package/dist/src/components/spotlight/WuSpotlight.test.d.ts +0 -1
- package/dist/src/components/spotlight/index.d.ts +0 -2
- package/dist/src/components/stackedCard/WuStackedCard.d.ts +0 -29
- package/dist/src/components/stackedCard/WuStackedCard.test.d.ts +0 -1
- package/dist/src/components/stackedCard/index.d.ts +0 -3
- package/dist/src/components/stackedCard/utils/constant.d.ts +0 -1
- package/dist/src/components/stackedCard/utils/helper.d.ts +0 -16
- package/dist/src/components/stepper/WuStepper.d.ts +0 -15
- package/dist/src/components/stepper/WuStepper.test.d.ts +0 -1
- package/dist/src/components/stepper/index.d.ts +0 -2
- package/dist/src/components/surveySelect/WuSurveySelect.d.ts +0 -5
- package/dist/src/components/surveySelect/WuSurveySelect.test.d.ts +0 -1
- package/dist/src/components/surveySelect/index.d.ts +0 -6
- package/dist/src/components/surveySelect/subComponents/WuSharedSurvey.d.ts +0 -3
- package/dist/src/components/surveySelect/subComponents/WuSurveyItem.d.ts +0 -3
- package/dist/src/components/surveySelect/subComponents/WuSurveyList.d.ts +0 -3
- package/dist/src/components/surveySelect/subComponents/WuSurveySource.d.ts +0 -8
- package/dist/src/components/surveySelect/types/index.d.ts +0 -15
- package/dist/src/components/switcher/WuSwitcher.d.ts +0 -25
- package/dist/src/components/switcher/WuSwitcher.test.d.ts +0 -1
- package/dist/src/components/switcher/index.d.ts +0 -4
- package/dist/src/components/switcher/types/IWuSwitcherOption.d.ts +0 -4
- package/dist/src/components/switcher/types/IWuSwitcherOptions.d.ts +0 -2
- package/dist/src/components/switcher/ui/_iconTab.d.ts +0 -11
- package/dist/src/components/switcher/ui/_tab.d.ts +0 -12
- package/dist/src/components/switcher/ui/_toggle.d.ts +0 -11
- package/dist/src/components/tab/WuTab.d.ts +0 -15
- package/dist/src/components/tab/WuTab.test.d.ts +0 -1
- package/dist/src/components/tab/components/BaseTabContent.d.ts +0 -8
- package/dist/src/components/tab/hooks/useHorizontalTabScroll.d.ts +0 -8
- package/dist/src/components/tab/hooks/useTabIndicator.d.ts +0 -9
- package/dist/src/components/tab/hooks/useVerticalTabScroll.d.ts +0 -8
- package/dist/src/components/tab/index.d.ts +0 -3
- package/dist/src/components/tab/shadcn/tabs.d.ts +0 -7
- package/dist/src/components/tab/types/IWuItems.d.ts +0 -5
- package/dist/src/components/tab/ui/_horizontalTab.d.ts +0 -3
- package/dist/src/components/tab/ui/_verticalTab.d.ts +0 -3
- package/dist/src/components/table/components/dataTable/WuDataTable.d.ts +0 -30
- package/dist/src/components/table/components/dataTable/WuDataTable.test.d.ts +0 -1
- package/dist/src/components/table/components/table/WuTable.d.ts +0 -34
- package/dist/src/components/table/components/table/WuTable.test.d.ts +0 -1
- package/dist/src/components/table/hooks/useRowSelection.d.ts +0 -11
- package/dist/src/components/table/hooks/useTableCore.d.ts +0 -19
- package/dist/src/components/table/hooks/useTableScroll.d.ts +0 -6
- package/dist/src/components/table/index.d.ts +0 -8
- package/dist/src/components/table/types/IColumnDefaultSorting.d.ts +0 -4
- package/dist/src/components/table/types/IWuRowSelection.d.ts +0 -10
- package/dist/src/components/table/types/IWuTableColumnDef.d.ts +0 -11
- package/dist/src/components/table/ui/_body.d.ts +0 -15
- package/dist/src/components/table/ui/_header.d.ts +0 -17
- package/dist/src/components/table/ui/_virtualBody.d.ts +0 -19
- package/dist/src/components/table/utils/data.d.ts +0 -65
- package/dist/src/components/table/utils/tableHelpers.d.ts +0 -16
- package/dist/src/components/table/utils/tableStyles.d.ts +0 -7
- package/dist/src/components/table/utils/variantClass.d.ts +0 -3
- package/dist/src/components/textarea/WuTextarea.d.ts +0 -8
- package/dist/src/components/textarea/WuTextarea.test.d.ts +0 -1
- package/dist/src/components/textarea/index.d.ts +0 -2
- package/dist/src/components/timePicker/WuTimePicker.d.ts +0 -9
- package/dist/src/components/timePicker/WuTimePicker.test.d.ts +0 -1
- package/dist/src/components/timePicker/components/timeColumn.d.ts +0 -11
- package/dist/src/components/timePicker/hooks/useRotatedArrays.d.ts +0 -5
- package/dist/src/components/timePicker/hooks/useTimePickerScroll.d.ts +0 -1
- package/dist/src/components/timePicker/index.d.ts +0 -2
- package/dist/src/components/timePicker/utils/timePickerUtils.d.ts +0 -12
- package/dist/src/components/toast/WuToast.d.ts +0 -1
- package/dist/src/components/toast/WuToast.test.d.ts +0 -1
- package/dist/src/components/toast/hooks/useWuShowToast.d.ts +0 -11
- package/dist/src/components/toast/index.d.ts +0 -3
- package/dist/src/components/toast/types/IWuToastOptions.d.ts +0 -5
- package/dist/src/components/toggle/WuToggle.d.ts +0 -8
- package/dist/src/components/toggle/WuToggle.test.d.ts +0 -1
- package/dist/src/components/toggle/index.d.ts +0 -2
- package/dist/src/components/tooltip/WuTooltip.d.ts +0 -15
- package/dist/src/components/tooltip/WuTooltip.test.d.ts +0 -1
- package/dist/src/components/tooltip/index.d.ts +0 -2
- package/dist/src/components/typography/WuTypography.d.ts +0 -21
- package/dist/src/components/typography/WuTypography.test.d.ts +0 -1
- package/dist/src/components/typography/iconClasses.d.ts +0 -1
- package/dist/src/components/typography/index.d.ts +0 -1
- package/dist/src/components/useTranslation/WuTranslation.test.d.ts +0 -1
- package/dist/src/components/useTranslation/WuTranslationContext.d.ts +0 -2
- package/dist/src/components/useTranslation/WuTranslationProvider.d.ts +0 -6
- package/dist/src/components/useTranslation/index.d.ts +0 -4
- package/dist/src/components/useTranslation/types/index.d.ts +0 -8
- package/dist/src/components/useTranslation/useTranslationContext.d.ts +0 -3
- package/dist/src/components/virtualScroll/WuVirtualScroll.d.ts +0 -11
- package/dist/src/components/virtualScroll/WuVirtualScroll.test.d.ts +0 -1
- package/dist/src/components/virtualScroll/index.d.ts +0 -2
- package/dist/src/docs/Icons.d.ts +0 -2
- package/dist/src/docs/Theme.d.ts +0 -3
- package/dist/src/docs/Typography.d.ts +0 -4
- package/dist/src/docs/ui/chartColor.d.ts +0 -4
- package/dist/src/docs/ui/colorSystem.d.ts +0 -10
- package/dist/src/hooks/index.d.ts +0 -1
- package/dist/src/hooks/useAnimation.d.ts +0 -9
- package/dist/src/hooks/useAnimation.test.d.ts +0 -1
- package/dist/src/hooks/useMobile.d.ts +0 -1
- package/dist/src/hooks/useResizeList.d.ts +0 -10
- package/dist/src/index.d.ts +0 -53
- package/dist/src/lib/testUtils.d.ts +0 -2
- package/dist/src/lib/utils.d.ts +0 -15
- package/dist/src/translate/WuTranslate.d.ts +0 -5
- package/dist/src/translate/WuTranslateContext.d.ts +0 -18
- package/dist/src/translate/WuTranslateContext.test.d.ts +0 -1
- package/dist/src/translate/index.d.ts +0 -2
- package/dist/style.css +0 -1
- package/dist/wick-ui-lib/es/index.js +0 -15755
- package/dist/wick-ui-lib/umd/index.js +0 -21
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export type IWuSelectItem<T> = T & {
|
|
3
|
-
type?: 'option';
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
icon?: React.ReactNode;
|
|
6
|
-
isAdmin?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export interface IWuSelectGroupItem<T> {
|
|
9
|
-
type: 'group';
|
|
10
|
-
label: string;
|
|
11
|
-
options: IWuSelectItem<T>[];
|
|
12
|
-
}
|
|
13
|
-
export interface IWuSelectDivider {
|
|
14
|
-
type: 'divider';
|
|
15
|
-
}
|
|
16
|
-
export type IWuSelectOption<T> = IWuSelectItem<T> | IWuSelectGroupItem<T> | IWuSelectDivider;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IWuSelectItem } from '../types/IWuSelectOptions';
|
|
3
|
-
export interface IWuSelectItemProps<T> {
|
|
4
|
-
option: IWuSelectItem<T>;
|
|
5
|
-
accessorKey: {
|
|
6
|
-
value: string;
|
|
7
|
-
label: string;
|
|
8
|
-
};
|
|
9
|
-
value: unknown | unknown[];
|
|
10
|
-
multiple?: boolean;
|
|
11
|
-
onSelect: (value: IWuSelectItem<T>) => void;
|
|
12
|
-
dir: 'ltr' | 'rtl';
|
|
13
|
-
}
|
|
14
|
-
export declare const WuSelectItem: <T>({ option, value, multiple, onSelect, accessorKey, dir, }: IWuSelectItemProps<T>) => React.JSX.Element;
|
|
15
|
-
export declare const ItemChildren: <T>({ option, accessorKey, }: Pick<IWuSelectItemProps<T>, "option" | "accessorKey">) => React.JSX.Element;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IWuSelectProps } from '../WuSelect';
|
|
3
|
-
export type IWuSelectTriggerProps<T> = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'defaultValue'> & {
|
|
4
|
-
placeholder?: string;
|
|
5
|
-
value: T | T[];
|
|
6
|
-
multiple?: boolean;
|
|
7
|
-
variant?: 'flat' | 'outlined';
|
|
8
|
-
dir?: 'ltr' | 'rtl';
|
|
9
|
-
accessorKey: {
|
|
10
|
-
value: string;
|
|
11
|
-
label: string;
|
|
12
|
-
};
|
|
13
|
-
customTriggerChildren?: React.ReactNode;
|
|
14
|
-
id?: string;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
selectAll?: IWuSelectProps<T>['selectAll'];
|
|
17
|
-
isCheckedAll?: boolean;
|
|
18
|
-
width?: number;
|
|
19
|
-
};
|
|
20
|
-
export declare const WuSelectTrigger: <T>({ placeholder, value, multiple, accessorKey, variant, dir, customTriggerChildren, id, disabled, selectAll, isCheckedAll, width, ...rest }: IWuSelectTriggerProps<T>) => React.JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IWuSelectOption } from '../types/IWuSelectOptions';
|
|
2
|
-
import { IWuSelectItemProps } from '../ui/_item';
|
|
3
|
-
type IRenderSelectItemsProps<T> = Omit<IWuSelectItemProps<T>, 'option'> & {
|
|
4
|
-
option: IWuSelectOption<T>;
|
|
5
|
-
handleSelectAll?: () => void;
|
|
6
|
-
isCheckedAll?: boolean;
|
|
7
|
-
isPartialSelected?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare const RenderItems: <T>(props: IRenderSelectItemsProps<T>) => React.JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IWuSelectItem, IWuSelectOption } from '../types/IWuSelectOptions';
|
|
2
|
-
export declare const useOptionDestructure: <T>(options: IWuSelectOption<T>[]) => {
|
|
3
|
-
cleanData: IWuSelectItem<T>[];
|
|
4
|
-
separators: number;
|
|
5
|
-
groups: number;
|
|
6
|
-
totalData: number;
|
|
7
|
-
enabledOptions: IWuSelectItem<T>[];
|
|
8
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { SidebarContent, SidebarFooter, SidebarGroup, SidebarMenu, SidebarMenuItem, SidebarTrigger } from './shadcn/sidebar';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
import { Collapsible } from '@base-ui/react/collapsible';
|
|
4
|
-
export type IWuSidebarProps = {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
Sidebar: React.ReactNode;
|
|
7
|
-
className?: string;
|
|
8
|
-
style?: React.CSSProperties;
|
|
9
|
-
defaultOpen?: boolean;
|
|
10
|
-
open?: boolean;
|
|
11
|
-
onOpenChange?: (open: boolean) => void;
|
|
12
|
-
};
|
|
13
|
-
export declare const WuSidebar: React.FC<IWuSidebarProps>;
|
|
14
|
-
export declare const WuSidebarTrigger: React.FC<React.ComponentProps<typeof SidebarTrigger>>;
|
|
15
|
-
export declare const WuSidebarContent: React.FC<React.ComponentProps<typeof SidebarContent>>;
|
|
16
|
-
export declare const WuSidebarFooter: React.FC<React.ComponentProps<typeof SidebarFooter>>;
|
|
17
|
-
export type IWuSidebarGroupProps = React.ComponentProps<typeof SidebarGroup> & {
|
|
18
|
-
label: string;
|
|
19
|
-
};
|
|
20
|
-
export declare const WuSidebarGroup: React.FC<IWuSidebarGroupProps>;
|
|
21
|
-
export declare const WuSidebarMenu: React.FC<React.ComponentProps<typeof SidebarMenu>>;
|
|
22
|
-
export type IWuSidebarItemProps = React.ComponentProps<typeof SidebarMenuItem> & {
|
|
23
|
-
Icon: React.ReactNode;
|
|
24
|
-
isActive?: boolean;
|
|
25
|
-
children?: React.ReactNode;
|
|
26
|
-
};
|
|
27
|
-
export declare const WuSidebarItem: React.FC<IWuSidebarItemProps>;
|
|
28
|
-
export interface IWuSidebarCollapsibleMenuProps extends Collapsible.Panel.Props {
|
|
29
|
-
Title: React.ReactNode;
|
|
30
|
-
Icon: React.ReactNode;
|
|
31
|
-
children: React.ReactNode;
|
|
32
|
-
}
|
|
33
|
-
export declare const WuSidebarCollapsibleMenu: React.FC<IWuSidebarCollapsibleMenuProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { useSidebar as useWuSidebar } from './shadcn/sidebar';
|
|
2
|
-
export { WuSidebar, WuSidebarContent, WuSidebarFooter, WuSidebarGroup, WuSidebarItem, WuSidebarMenu, WuSidebarTrigger, WuSidebarCollapsibleMenu, type IWuSidebarCollapsibleMenuProps, type IWuSidebarGroupProps, type IWuSidebarItemProps, type IWuSidebarProps, } from './WuSidebar';
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import { TooltipContent } from '../../../base/ui/tooltip';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
type ISidebarContext = {
|
|
5
|
-
state: 'expanded' | 'collapsed';
|
|
6
|
-
open: boolean;
|
|
7
|
-
setOpen: (open: boolean) => void;
|
|
8
|
-
openMobile: boolean;
|
|
9
|
-
setOpenMobile: (open: boolean) => void;
|
|
10
|
-
isMobile: boolean;
|
|
11
|
-
toggleSidebar: () => void;
|
|
12
|
-
};
|
|
13
|
-
declare function useSidebar(): ISidebarContext;
|
|
14
|
-
declare const SidebarProvider: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
15
|
-
defaultOpen?: boolean;
|
|
16
|
-
open?: boolean;
|
|
17
|
-
onOpenChange?: (open: boolean) => void;
|
|
18
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
-
declare const Sidebar: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
20
|
-
side?: "left" | "right";
|
|
21
|
-
variant?: "sidebar" | "floating" | "inset";
|
|
22
|
-
collapsible?: "offcanvas" | "icon" | "none";
|
|
23
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<import('../../../base/ui/button').IButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
25
|
-
declare const SidebarInset: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
-
declare const SidebarHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
-
declare const SidebarFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
-
declare const SidebarContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
-
declare const SidebarGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
-
declare const SidebarGroupLabel: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
31
|
-
asChild?: boolean;
|
|
32
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
-
declare const SidebarGroupContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
-
declare const SidebarMenu: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
35
|
-
declare const SidebarMenuItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
36
|
-
declare const SidebarMenuButton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
37
|
-
asChild?: boolean;
|
|
38
|
-
isActive?: boolean;
|
|
39
|
-
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
40
|
-
} & VariantProps<(props?: ({
|
|
41
|
-
variant?: "outline" | "default" | null | undefined;
|
|
42
|
-
size?: "sm" | "lg" | "default" | null | undefined;
|
|
43
|
-
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
44
|
-
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarProvider, SidebarTrigger, useSidebar, };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface IWuSpotlightProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
colors: string[];
|
|
4
|
-
/** Size of the spotlight circle in % of height & width. Defaults to 0.6 * element width. */
|
|
5
|
-
size?: number;
|
|
6
|
-
strokeWidth?: number;
|
|
7
|
-
centerOffset?: {
|
|
8
|
-
x: number;
|
|
9
|
-
y: number;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* WuSpotlight component that creates an interactive spotlight effect following the mouse cursor.
|
|
14
|
-
* The spotlight uses a radial gradient that tracks the mouse position within the component bounds.
|
|
15
|
-
*/
|
|
16
|
-
export declare const WuSpotlight: React.FC<IWuSpotlightProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface IWuStackedCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
header: React.ReactNode;
|
|
4
|
-
position?: number;
|
|
5
|
-
baseColor: `hsl(${number}, ${number}%, ${number}%)`;
|
|
6
|
-
style?: React.CSSProperties;
|
|
7
|
-
}
|
|
8
|
-
export declare const WuStackedCard: React.FC<IWuStackedCardProps>;
|
|
9
|
-
export interface IWuStackedCardOverlayProps {
|
|
10
|
-
Trigger: React.ReactNode;
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
Header?: React.ReactNode;
|
|
13
|
-
styles?: {
|
|
14
|
-
Trigger?: React.CSSProperties;
|
|
15
|
-
Content?: React.CSSProperties;
|
|
16
|
-
Header?: React.CSSProperties;
|
|
17
|
-
CloseButton?: React.CSSProperties;
|
|
18
|
-
};
|
|
19
|
-
classNames?: {
|
|
20
|
-
Trigger?: string;
|
|
21
|
-
Content?: string;
|
|
22
|
-
Header?: string;
|
|
23
|
-
CloseButton?: string;
|
|
24
|
-
};
|
|
25
|
-
open?: boolean;
|
|
26
|
-
onOpenChange?: (open: boolean) => void;
|
|
27
|
-
itemHeight?: number;
|
|
28
|
-
}
|
|
29
|
-
export declare const WuStackedCardOverlay: React.FC<IWuStackedCardOverlayProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const POSITION_STYLES: Map<number, import('react').CSSProperties>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
type IHslColor = `hsl(${number}, ${number}%, ${number}%)`;
|
|
3
|
-
type IHslaColor = `hsl(${number} ${number}% ${number}% / ${number})`;
|
|
4
|
-
export declare const adjustLightness: (hsl: IHslColor, factor: number, a?: number) => IHslaColor;
|
|
5
|
-
interface ICalcPosProps {
|
|
6
|
-
index: number;
|
|
7
|
-
viewIndex: number;
|
|
8
|
-
length: number;
|
|
9
|
-
itemHeight: number;
|
|
10
|
-
}
|
|
11
|
-
interface ICalcPosResult {
|
|
12
|
-
position: number;
|
|
13
|
-
styles: CSSProperties;
|
|
14
|
-
}
|
|
15
|
-
export declare const calculatePosition: ({ index, viewIndex, length, itemHeight, }: ICalcPosProps) => ICalcPosResult;
|
|
16
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface IWuStepperProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
3
|
-
onChange?: (value: number) => void;
|
|
4
|
-
readonly?: boolean;
|
|
5
|
-
invalid?: boolean;
|
|
6
|
-
Label?: React.ReactNode;
|
|
7
|
-
defaultValue?: number;
|
|
8
|
-
dir?: 'ltr' | 'rtl';
|
|
9
|
-
step?: number;
|
|
10
|
-
min?: number;
|
|
11
|
-
max?: number;
|
|
12
|
-
labelPosition?: 'left' | 'top';
|
|
13
|
-
resetInvalidValueOnBlur?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare const WuStepper: React.FC<IWuStepperProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { WuSharedSurvey } from './subComponents/WuSharedSurvey';
|
|
2
|
-
export { WuSurveyItem } from './subComponents/WuSurveyItem';
|
|
3
|
-
export { WuSurveyList } from './subComponents/WuSurveyList';
|
|
4
|
-
export { WuSurveySource } from './subComponents/WuSurveySource';
|
|
5
|
-
export { WuSurveySelect, type IWuSurveySelectProps } from './WuSurveySelect';
|
|
6
|
-
export type { IWuSharedSurveyProps, IWuSurveyItemProps, IWuSurveyListProps, IWuSurveySourceProps, } from './types';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IWuSurveySourceProps } from '../types';
|
|
3
|
-
declare const WuSurveySourceComponent: {
|
|
4
|
-
<T extends object>(props: IWuSurveySourceProps<T>): React.JSX.Element;
|
|
5
|
-
displayName: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const WuSurveySource: typeof WuSurveySourceComponent;
|
|
8
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IWuListboxProps } from '../../listbox/WuListbox';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
export type IWuSurveySourceProps<T extends object> = IWuListboxProps<T>;
|
|
4
|
-
export interface IWuSurveyItemProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
icon?: React.ReactNode;
|
|
7
|
-
isActive?: boolean;
|
|
8
|
-
isShared?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface IWuSharedSurveyProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
11
|
-
label?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface IWuSurveyListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IWuSwitcherOptions } from './types/IWuSwitcherOptions';
|
|
3
|
-
export type IWuSwitcherProps<T> = React.HTMLAttributes<HTMLDivElement> & {
|
|
4
|
-
options: IWuSwitcherOptions<T>;
|
|
5
|
-
onChange?: (value: T) => void;
|
|
6
|
-
type?: 'tab' | 'toggle' | 'iconTab';
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
value: T;
|
|
9
|
-
dir?: 'ltr' | 'rtl';
|
|
10
|
-
size?: 'sm' | 'md' | 'lg';
|
|
11
|
-
toggle?: boolean;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* WuSwitcher does not support any custom design.
|
|
15
|
-
*/
|
|
16
|
-
export declare const WuSwitcher: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
17
|
-
options: IWuSwitcherOptions<unknown>;
|
|
18
|
-
onChange?: ((value: unknown) => void) | undefined;
|
|
19
|
-
type?: "tab" | "toggle" | "iconTab";
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
value: unknown;
|
|
22
|
-
dir?: "ltr" | "rtl";
|
|
23
|
-
size?: "sm" | "md" | "lg";
|
|
24
|
-
toggle?: boolean;
|
|
25
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IWuSwitcherOptions } from '../types/IWuSwitcherOptions';
|
|
3
|
-
interface IIconTabProps<T> {
|
|
4
|
-
value: string;
|
|
5
|
-
options: IWuSwitcherOptions<T>;
|
|
6
|
-
onChange: (e: string) => void;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
dir?: 'ltr' | 'rtl';
|
|
9
|
-
}
|
|
10
|
-
export declare const _IconTab: React.ForwardRefExoticComponent<IIconTabProps<unknown> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IWuSwitcherOptions } from '../types/IWuSwitcherOptions';
|
|
3
|
-
interface ITabProps<T> {
|
|
4
|
-
value: string;
|
|
5
|
-
options: IWuSwitcherOptions<T>;
|
|
6
|
-
onChange: (e: string) => void;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
dir?: 'ltr' | 'rtl';
|
|
9
|
-
size?: 'sm' | 'md' | 'lg';
|
|
10
|
-
}
|
|
11
|
-
export declare const _Tab: React.ForwardRefExoticComponent<ITabProps<unknown> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IWuSwitcherOptions } from '../types/IWuSwitcherOptions';
|
|
3
|
-
interface IToggleProps<T> {
|
|
4
|
-
value: string;
|
|
5
|
-
options: IWuSwitcherOptions<T>;
|
|
6
|
-
onChange: (e: string) => void;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
dir?: 'ltr' | 'rtl';
|
|
9
|
-
}
|
|
10
|
-
export declare const _Toggle: React.ForwardRefExoticComponent<IToggleProps<unknown> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Tabs } from './shadcn/tabs';
|
|
2
|
-
import { default as React, FC } from 'react';
|
|
3
|
-
import { IWuTabItem } from './types/IWuItems';
|
|
4
|
-
export interface IWuTabProps extends React.ComponentProps<typeof Tabs> {
|
|
5
|
-
items: IWuTabItem[];
|
|
6
|
-
defaultValue?: string;
|
|
7
|
-
value?: string;
|
|
8
|
-
onValueChange?: (value: string) => void;
|
|
9
|
-
dir?: 'ltr' | 'rtl';
|
|
10
|
-
orientation?: 'horizontal' | 'vertical';
|
|
11
|
-
className?: string;
|
|
12
|
-
enableAnimation?: boolean;
|
|
13
|
-
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
14
|
-
}
|
|
15
|
-
export declare const WuTab: FC<IWuTabProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
type IUseTabScrollReturn = {
|
|
3
|
-
showLeftArrow: boolean;
|
|
4
|
-
showRightArrow: boolean;
|
|
5
|
-
scrollByTab: (direction: 'left' | 'right') => void;
|
|
6
|
-
};
|
|
7
|
-
export declare const useTabScroll: (listRef: React.RefObject<HTMLElement | null>) => IUseTabScrollReturn;
|
|
8
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
type IRect = {
|
|
3
|
-
width: number;
|
|
4
|
-
left: number;
|
|
5
|
-
height: number;
|
|
6
|
-
top: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const useTabIndicator: (listRef: React.RefObject<HTMLElement | null>, orientation: "horizontal" | "vertical") => IRect;
|
|
9
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
type IUseVerticalTabScrollReturn = {
|
|
3
|
-
showTopArrow: boolean;
|
|
4
|
-
showBottomArrow: boolean;
|
|
5
|
-
scrollByTab: (direction: 'up' | 'down') => void;
|
|
6
|
-
};
|
|
7
|
-
export declare const useVerticalTabScroll: (listRef: React.RefObject<HTMLElement | null>) => IUseVerticalTabScrollReturn;
|
|
8
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
-
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IColumnDefaultSorting } from '../../types/IColumnDefaultSorting';
|
|
3
|
-
import { IWuTableRowSelection } from '../../types/IWuRowSelection';
|
|
4
|
-
import { IWuTableColumnDef } from '../../types/IWuTableColumnDef';
|
|
5
|
-
export interface IWuDataTableProps<T> extends React.TableHTMLAttributes<HTMLTableElement> {
|
|
6
|
-
data: T[];
|
|
7
|
-
columns: IWuTableColumnDef<T>[];
|
|
8
|
-
caption?: string;
|
|
9
|
-
variant?: 'unstyled' | 'striped' | 'bordered';
|
|
10
|
-
size?: 'compact' | 'default';
|
|
11
|
-
sort?: {
|
|
12
|
-
enabled: boolean;
|
|
13
|
-
onSort: (sort: IColumnDefaultSorting) => void;
|
|
14
|
-
defaultSort?: IColumnDefaultSorting;
|
|
15
|
-
};
|
|
16
|
-
isLoading?: boolean;
|
|
17
|
-
rowSelection?: IWuTableRowSelection<T>;
|
|
18
|
-
CustomLoader?: React.ReactNode;
|
|
19
|
-
HeaderAction?: React.ReactNode;
|
|
20
|
-
NoDataContent?: React.ReactNode;
|
|
21
|
-
stickyHeader?: boolean;
|
|
22
|
-
isRowExpandable?: boolean;
|
|
23
|
-
virtualization?: {
|
|
24
|
-
enabled: boolean;
|
|
25
|
-
maxHeight?: number;
|
|
26
|
-
threshold?: number;
|
|
27
|
-
};
|
|
28
|
-
tableLayout?: 'fixed' | 'auto';
|
|
29
|
-
}
|
|
30
|
-
export declare const WuDataTable: <T>({ data, columns, isLoading, variant, sort, size, rowSelection, HeaderAction, NoDataContent, stickyHeader, CustomLoader, caption, virtualization, isRowExpandable, tableLayout, style, className, ...props }: IWuDataTableProps<T>) => React.JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ColumnSort } from '@tanstack/react-table';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
import { IWuTableRowSelection } from '../../types/IWuRowSelection';
|
|
4
|
-
import { IWuTableColumnDef } from '../../types/IWuTableColumnDef';
|
|
5
|
-
export interface IWuTableProps<T> extends React.TableHTMLAttributes<HTMLTableElement> {
|
|
6
|
-
data: T[];
|
|
7
|
-
columns: IWuTableColumnDef<T>[];
|
|
8
|
-
variant?: 'striped' | 'unstyled' | 'bordered';
|
|
9
|
-
size?: 'compact' | 'default';
|
|
10
|
-
caption?: string;
|
|
11
|
-
sort?: {
|
|
12
|
-
enabled?: boolean;
|
|
13
|
-
defaultSort?: ColumnSort;
|
|
14
|
-
};
|
|
15
|
-
isLoading?: boolean;
|
|
16
|
-
filterText?: string;
|
|
17
|
-
pagination?: {
|
|
18
|
-
pageIndex: number;
|
|
19
|
-
pageSize: number;
|
|
20
|
-
};
|
|
21
|
-
stickyHeader?: boolean;
|
|
22
|
-
HeaderAction?: React.ReactNode;
|
|
23
|
-
CustomLoader?: React.ReactNode;
|
|
24
|
-
NoDataContent?: React.ReactNode;
|
|
25
|
-
rowSelection?: IWuTableRowSelection<T>;
|
|
26
|
-
isRowExpandable?: boolean;
|
|
27
|
-
virtualization?: {
|
|
28
|
-
enabled: boolean;
|
|
29
|
-
maxHeight?: number;
|
|
30
|
-
threshold?: number;
|
|
31
|
-
};
|
|
32
|
-
tableLayout?: 'fixed' | 'auto';
|
|
33
|
-
}
|
|
34
|
-
export declare const WuTable: <T>({ data, columns, variant, size, sort, filterText, pagination, stickyHeader, HeaderAction, CustomLoader, NoDataContent, isLoading, caption, rowSelection, isRowExpandable, virtualization, tableLayout, style, className, ...rest }: IWuTableProps<T>) => React.JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IWuTableRowSelection } from '../types/IWuRowSelection';
|
|
2
|
-
import { IWuTableColumnDef } from '../types/IWuTableColumnDef';
|
|
3
|
-
interface IUseRowSelectionProps<T> {
|
|
4
|
-
columns: IWuTableColumnDef<T>[];
|
|
5
|
-
rowSelection?: IWuTableRowSelection<T>;
|
|
6
|
-
}
|
|
7
|
-
interface IUseRowSelectionResult<T> {
|
|
8
|
-
finalColumns: IWuTableColumnDef<T>[];
|
|
9
|
-
}
|
|
10
|
-
export declare const useRowSelection: <T>({ columns, rowSelection, }: IUseRowSelectionProps<T>) => IUseRowSelectionResult<T>;
|
|
11
|
-
export {};
|