@npm-questionpro/wick-ui-lib 1.48.0 → 1.49.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.
Files changed (315) hide show
  1. package/dist/ac_divergent.svg +50 -0
  2. package/dist/ac_qualitative.svg +50 -0
  3. package/dist/ac_sequential.svg +50 -0
  4. package/dist/bp_divergent.svg +130 -0
  5. package/dist/bp_qualitative.svg +53 -0
  6. package/dist/bp_sentiment.svg +76 -0
  7. package/dist/bp_sentiment_analysis.svg +112 -0
  8. package/dist/bp_sequential.svg +99 -0
  9. package/dist/favicon.ico +0 -0
  10. package/dist/index.d.ts +2 -0
  11. package/dist/order_divergent.svg +61 -0
  12. package/dist/order_qualitative.svg +57 -0
  13. package/dist/order_sequential_blue.svg +52 -0
  14. package/dist/order_sequential_green.svg +52 -0
  15. package/dist/order_sequential_orange.svg +52 -0
  16. package/dist/order_sequential_red.svg +52 -0
  17. package/dist/src/base/ui/accordion.d.ts +7 -0
  18. package/dist/src/base/ui/avatar.d.ts +6 -0
  19. package/dist/src/base/ui/button.d.ts +12 -0
  20. package/dist/src/base/ui/checkbox.d.ts +6 -0
  21. package/dist/src/base/ui/command.d.ts +74 -0
  22. package/dist/src/base/ui/dialog.d.ts +23 -0
  23. package/dist/src/base/ui/dropdownMenu.d.ts +28 -0
  24. package/dist/src/base/ui/input.d.ts +3 -0
  25. package/dist/src/base/ui/label.d.ts +5 -0
  26. package/dist/src/base/ui/popover.d.ts +6 -0
  27. package/dist/src/base/ui/radioGroup.d.ts +5 -0
  28. package/dist/src/base/ui/scrollArea.d.ts +11 -0
  29. package/dist/src/base/ui/separator.d.ts +4 -0
  30. package/dist/src/base/ui/sheet.d.ts +29 -0
  31. package/dist/src/base/ui/skeleton.d.ts +2 -0
  32. package/dist/src/base/ui/switch.d.ts +4 -0
  33. package/dist/src/base/ui/table.d.ts +10 -0
  34. package/dist/src/base/ui/textarea.d.ts +3 -0
  35. package/dist/src/base/ui/toast.d.ts +18 -0
  36. package/dist/src/base/ui/toaster.d.ts +1 -0
  37. package/dist/src/base/ui/toggle.d.ts +12 -0
  38. package/dist/src/base/ui/toggleGroup.d.ts +12 -0
  39. package/dist/src/base/ui/tooltip.d.ts +7 -0
  40. package/dist/src/base/ui/useToast.d.ts +40 -0
  41. package/dist/src/components/accordion/WuAccordion.d.ts +26 -0
  42. package/dist/src/components/accordion/WuAccordion.test.d.ts +1 -0
  43. package/dist/src/components/accordion/index.d.ts +2 -0
  44. package/dist/src/components/activityLog/WuActivityLog.d.ts +18 -0
  45. package/dist/src/components/activityLog/WuActivityLog.test.d.ts +1 -0
  46. package/dist/src/components/activityLog/index.d.ts +2 -0
  47. package/dist/src/components/appHeader/WuAppHeader.d.ts +19 -0
  48. package/dist/src/components/appHeader/WuAppHeader.test.d.ts +1 -0
  49. package/dist/src/components/appHeader/components/WuAppHeaderBar.d.ts +6 -0
  50. package/dist/src/components/appHeader/components/WuAppHeaderDropdownWrapper.d.ts +11 -0
  51. package/dist/src/components/appHeader/components/WuAppHeaderSearch.d.ts +7 -0
  52. package/dist/src/components/appHeader/components/WuAppHeaderSearch.test.d.ts +1 -0
  53. package/dist/src/components/appHeader/components/WuTruncatedLabel.d.ts +4 -0
  54. package/dist/src/components/appHeader/components/account/WuAppHeaderAccount.d.ts +10 -0
  55. package/dist/src/components/appHeader/components/account/WuAppHeaderAccount.test.d.ts +1 -0
  56. package/dist/src/components/appHeader/components/account/ui/_logoutMenuItem.d.ts +4 -0
  57. package/dist/src/components/appHeader/components/account/ui/_otherMenuItem.d.ts +5 -0
  58. package/dist/src/components/appHeader/components/account/ui/_settingsMenuItem.d.ts +5 -0
  59. package/dist/src/components/appHeader/components/account/ui/_userMenuItem.d.ts +5 -0
  60. package/dist/src/components/appHeader/components/help/WuAppHeaderHelp.d.ts +7 -0
  61. package/dist/src/components/appHeader/components/help/WuAppHeaderHelp.test.d.ts +1 -0
  62. package/dist/src/components/appHeader/components/productSwitcher/WuAppHeaderMenu.d.ts +15 -0
  63. package/dist/src/components/appHeader/components/productSwitcher/WuAppHeaderMenu.test.d.ts +1 -0
  64. package/dist/src/components/appHeader/components/productSwitcher/ui/_categoryDetails.d.ts +8 -0
  65. package/dist/src/components/appHeader/components/productSwitcher/ui/_menuTrigger.d.ts +12 -0
  66. package/dist/src/components/appHeader/components/productSwitcher/ui/_productDropdown.d.ts +17 -0
  67. package/dist/src/components/appHeader/components/productSwitcher/ui/_productItem.d.ts +9 -0
  68. package/dist/src/components/appHeader/components/productSwitcher/ui/_productList.d.ts +13 -0
  69. package/dist/src/components/appHeader/components/productSwitcher/ui/_smallScreenMenuTrigger.d.ts +16 -0
  70. package/dist/src/components/appHeader/components/productSwitcher/ui/_smallScreenToggleMenu.d.ts +10 -0
  71. package/dist/src/components/appHeader/hooks/useOnClickOutsideHook.d.ts +2 -0
  72. package/dist/src/components/appHeader/hooks/useWindowSize.d.ts +2 -0
  73. package/dist/src/components/appHeader/index.d.ts +11 -0
  74. package/dist/src/components/appHeader/types/WuAppHeaderAccount.d.ts +47 -0
  75. package/dist/src/components/appHeader/types/WuAppHeaderHelpMenu.d.ts +7 -0
  76. package/dist/src/components/appHeader/types/WuAppHeaderMenuItem.d.ts +16 -0
  77. package/dist/src/components/appHeader/utils/dataFromApi.d.ts +3 -0
  78. package/dist/src/components/appHeader/utils/headerMenuKeyboardHandlers.d.ts +6 -0
  79. package/dist/src/components/appHeader/utils/iconMap.d.ts +4 -0
  80. package/dist/src/components/button/WuButton.d.ts +13 -0
  81. package/dist/src/components/button/WuButton.test.d.ts +1 -0
  82. package/dist/src/components/button/index.d.ts +2 -0
  83. package/dist/src/components/calendar/WuCalender.d.ts +3 -0
  84. package/dist/src/components/calendar/components/datePicker/WuDatePicker.d.ts +24 -0
  85. package/dist/src/components/calendar/components/datePicker/WuDatePicker.test.d.ts +1 -0
  86. package/dist/src/components/calendar/components/dateRangePicker/WuDateRangePicker.d.ts +31 -0
  87. package/dist/src/components/calendar/components/dateRangePicker/WuDateRangePicker.test.d.ts +1 -0
  88. package/dist/src/components/calendar/index.d.ts +5 -0
  89. package/dist/src/components/calendar/shadcn/calendar.d.ts +7 -0
  90. package/dist/src/components/calendar/ui/_footer.d.ts +8 -0
  91. package/dist/src/components/calendar/ui/_nativeSidebar.d.ts +17 -0
  92. package/dist/src/components/calendar/ui/_sidebar.d.ts +12 -0
  93. package/dist/src/components/calendar/ui/_trigger.d.ts +9 -0
  94. package/dist/src/components/calendar/utils/index.d.ts +7 -0
  95. package/dist/src/components/card/WuCard.d.ts +7 -0
  96. package/dist/src/components/card/WuCard.test.d.ts +1 -0
  97. package/dist/src/components/card/index.d.ts +2 -0
  98. package/dist/src/components/checkbox/WuCheckbox.d.ts +17 -0
  99. package/dist/src/components/checkbox/WuCheckbox.test.d.ts +1 -0
  100. package/dist/src/components/checkbox/index.d.ts +2 -0
  101. package/dist/src/components/chip/WuChip.d.ts +10 -0
  102. package/dist/src/components/chip/WuChip.test.d.ts +1 -0
  103. package/dist/src/components/chip/index.d.ts +2 -0
  104. package/dist/src/components/combobox/WuCombobox.d.ts +38 -0
  105. package/dist/src/components/combobox/WuCombobox.test.d.ts +1 -0
  106. package/dist/src/components/combobox/index.d.ts +3 -0
  107. package/dist/src/components/combobox/types/IWuComboboxOptions.d.ts +16 -0
  108. package/dist/src/components/combobox/ui/_item.d.ts +14 -0
  109. package/dist/src/components/combobox/ui/_tags.d.ts +5 -0
  110. package/dist/src/components/combobox/ui/_trigger.d.ts +22 -0
  111. package/dist/src/components/combobox/utils/index.d.ts +2 -0
  112. package/dist/src/components/combobox/utils/renderItems.d.ts +13 -0
  113. package/dist/src/components/combobox/utils/separateOptions.d.ts +7 -0
  114. package/dist/src/components/combobox/utils/useResizeContent.d.ts +2 -0
  115. package/dist/src/components/copyToClipboard/WuCopyToClipboard.d.ts +8 -0
  116. package/dist/src/components/copyToClipboard/WuCopyToClipboard.test.d.ts +1 -0
  117. package/dist/src/components/copyToClipboard/index.d.ts +2 -0
  118. package/dist/src/components/drawer/WuDrawer.d.ts +17 -0
  119. package/dist/src/components/drawer/WuDrawer.test.d.ts +1 -0
  120. package/dist/src/components/drawer/index.d.ts +2 -0
  121. package/dist/src/components/drilldown/WuDrilldown.d.ts +24 -0
  122. package/dist/src/components/drilldown/WuDrilldown.test.d.ts +1 -0
  123. package/dist/src/components/drilldown/WuDrilldownTitleMenu.d.ts +9 -0
  124. package/dist/src/components/drilldown/WuDrilldownTitles.d.ts +12 -0
  125. package/dist/src/components/drilldown/index.d.ts +3 -0
  126. package/dist/src/components/footer/WuFooter.d.ts +8 -0
  127. package/dist/src/components/footer/WuFooter.test.d.ts +1 -0
  128. package/dist/src/components/footer/index.d.ts +2 -0
  129. package/dist/src/components/formGroup/WuFormGroup.d.ts +10 -0
  130. package/dist/src/components/formGroup/WuFormGroup.test.d.ts +1 -0
  131. package/dist/src/components/formGroup/components/WuInputError.d.ts +6 -0
  132. package/dist/src/components/formGroup/components/WuInputHint.d.ts +7 -0
  133. package/dist/src/components/formGroup/components/WuLabel.d.ts +3 -0
  134. package/dist/src/components/formGroup/index.d.ts +5 -0
  135. package/dist/src/components/helpButton/WuHelpButton.d.ts +7 -0
  136. package/dist/src/components/helpButton/WuHelpButton.test.d.ts +1 -0
  137. package/dist/src/components/helpButton/index.d.ts +2 -0
  138. package/dist/src/components/input/WuInput.d.ts +13 -0
  139. package/dist/src/components/input/WuInput.test.d.ts +0 -0
  140. package/dist/src/components/input/index.d.ts +2 -0
  141. package/dist/src/components/listbox/WuListbox.d.ts +44 -0
  142. package/dist/src/components/listbox/WuListbox.test.d.ts +1 -0
  143. package/dist/src/components/listbox/index.d.ts +3 -0
  144. package/dist/src/components/listbox/subComponents/WuListboxTrigger.d.ts +4 -0
  145. package/dist/src/components/listbox/ui/_item.d.ts +14 -0
  146. package/dist/src/components/listbox/ui/_search.d.ts +3 -0
  147. package/dist/src/components/listbox/ui/_selectAll.d.ts +7 -0
  148. package/dist/src/components/listbox/ui/_trigger.d.ts +20 -0
  149. package/dist/src/components/listbox/utils/search.d.ts +2 -0
  150. package/dist/src/components/listbox/utils/useGenClass.d.ts +1 -0
  151. package/dist/src/components/loader/WuLoader.d.ts +8 -0
  152. package/dist/src/components/loader/WuLoader.test.d.ts +1 -0
  153. package/dist/src/components/loader/index.d.ts +2 -0
  154. package/dist/src/components/menu/WuMenu.d.ts +24 -0
  155. package/dist/src/components/menu/WuMenu.test.d.ts +1 -0
  156. package/dist/src/components/menu/index.d.ts +10 -0
  157. package/dist/src/components/menu/ui/WuMenuCheckboxItem.d.ts +8 -0
  158. package/dist/src/components/menu/ui/WuMenuItem.d.ts +8 -0
  159. package/dist/src/components/menu/ui/WuMenuItemGroup.d.ts +8 -0
  160. package/dist/src/components/menu/ui/WuMenuRadioItem.d.ts +15 -0
  161. package/dist/src/components/menu/ui/WuMenuSeparatorItem.d.ts +2 -0
  162. package/dist/src/components/menu/ui/WuSubMenu.d.ts +13 -0
  163. package/dist/src/components/menuIcon/WuMenuIcon.d.ts +9 -0
  164. package/dist/src/components/menuIcon/WuMenuIcon.test.d.ts +1 -0
  165. package/dist/src/components/menuIcon/index.d.ts +2 -0
  166. package/dist/src/components/modal/WuModal.d.ts +32 -0
  167. package/dist/src/components/modal/WuModal.test.d.ts +1 -0
  168. package/dist/src/components/modal/index.d.ts +2 -0
  169. package/dist/src/components/monthPicker/WuMonthPicker.d.ts +16 -0
  170. package/dist/src/components/monthPicker/WuMonthPicker.test.d.ts +1 -0
  171. package/dist/src/components/monthPicker/index.d.ts +2 -0
  172. package/dist/src/components/navbar/index.d.ts +4 -0
  173. package/dist/src/components/navbar/primaryNavbar/WuPrimaryNavbar.d.ts +12 -0
  174. package/dist/src/components/navbar/primaryNavbar/WuPrimaryNavbar.test.d.ts +1 -0
  175. package/dist/src/components/navbar/secondaryNavbar/WuSecondaryNavbar.d.ts +18 -0
  176. package/dist/src/components/navbar/secondaryNavbar/WuSecondaryNavbar.test.d.ts +1 -0
  177. package/dist/src/components/pagination/WuPagination.d.ts +10 -0
  178. package/dist/src/components/pagination/WuPagination.test.d.ts +1 -0
  179. package/dist/src/components/pagination/index.d.ts +2 -0
  180. package/dist/src/components/popover/WuPopover.d.ts +14 -0
  181. package/dist/src/components/popover/WuPopover.test.d.ts +1 -0
  182. package/dist/src/components/popover/index.d.ts +2 -0
  183. package/dist/src/components/radio/WuRadioGroup.d.ts +12 -0
  184. package/dist/src/components/radio/WuRadioGroup.test.d.ts +1 -0
  185. package/dist/src/components/radio/index.d.ts +3 -0
  186. package/dist/src/components/radio/types/IWuRadioOption.d.ts +6 -0
  187. package/dist/src/components/scrollArea/WuScrollArea.d.ts +4 -0
  188. package/dist/src/components/scrollArea/WuScrollArea.test.d.ts +1 -0
  189. package/dist/src/components/scrollArea/index.d.ts +1 -0
  190. package/dist/src/components/select/WuSelect.d.ts +33 -0
  191. package/dist/src/components/select/WuSelect.test.d.ts +1 -0
  192. package/dist/src/components/select/index.d.ts +3 -0
  193. package/dist/src/components/select/types/IWuSelectOptions.d.ts +16 -0
  194. package/dist/src/components/select/ui/_item.d.ts +15 -0
  195. package/dist/src/components/select/ui/_trigger.d.ts +20 -0
  196. package/dist/src/components/select/utils/renderItems.d.ts +10 -0
  197. package/dist/src/components/select/utils/useOptionDestructure.d.ts +8 -0
  198. package/dist/src/components/select/utils/useResizeContent.d.ts +2 -0
  199. package/dist/src/components/select/utils/useSortedSelectOptions.d.ts +4 -0
  200. package/dist/src/components/sidebar/WuSidebar.d.ts +33 -0
  201. package/dist/src/components/sidebar/WuSidebar.test.d.ts +1 -0
  202. package/dist/src/components/sidebar/index.d.ts +2 -0
  203. package/dist/src/components/sidebar/shadcn/sidebar.d.ts +44 -0
  204. package/dist/src/components/spotlight/WuSpotlight.d.ts +16 -0
  205. package/dist/src/components/spotlight/WuSpotlight.test.d.ts +1 -0
  206. package/dist/src/components/spotlight/index.d.ts +2 -0
  207. package/dist/src/components/stackedCard/WuStackedCard.d.ts +29 -0
  208. package/dist/src/components/stackedCard/WuStackedCard.test.d.ts +1 -0
  209. package/dist/src/components/stackedCard/index.d.ts +3 -0
  210. package/dist/src/components/stackedCard/utils/constant.d.ts +1 -0
  211. package/dist/src/components/stackedCard/utils/helper.d.ts +16 -0
  212. package/dist/src/components/stepper/WuStepper.d.ts +15 -0
  213. package/dist/src/components/stepper/WuStepper.test.d.ts +1 -0
  214. package/dist/src/components/stepper/index.d.ts +2 -0
  215. package/dist/src/components/surveySelect/WuSurveySelect.d.ts +5 -0
  216. package/dist/src/components/surveySelect/WuSurveySelect.test.d.ts +1 -0
  217. package/dist/src/components/surveySelect/index.d.ts +6 -0
  218. package/dist/src/components/surveySelect/subComponents/WuSharedSurvey.d.ts +3 -0
  219. package/dist/src/components/surveySelect/subComponents/WuSurveyItem.d.ts +3 -0
  220. package/dist/src/components/surveySelect/subComponents/WuSurveyList.d.ts +3 -0
  221. package/dist/src/components/surveySelect/subComponents/WuSurveySource.d.ts +8 -0
  222. package/dist/src/components/surveySelect/types/index.d.ts +15 -0
  223. package/dist/src/components/switcher/WuSwitcher.d.ts +25 -0
  224. package/dist/src/components/switcher/WuSwitcher.test.d.ts +1 -0
  225. package/dist/src/components/switcher/index.d.ts +4 -0
  226. package/dist/src/components/switcher/types/IWuSwitcherOption.d.ts +4 -0
  227. package/dist/src/components/switcher/types/IWuSwitcherOptions.d.ts +2 -0
  228. package/dist/src/components/switcher/ui/_iconTab.d.ts +11 -0
  229. package/dist/src/components/switcher/ui/_tab.d.ts +12 -0
  230. package/dist/src/components/switcher/ui/_toggle.d.ts +11 -0
  231. package/dist/src/components/tab/WuTab.d.ts +15 -0
  232. package/dist/src/components/tab/WuTab.test.d.ts +1 -0
  233. package/dist/src/components/tab/components/BaseTabContent.d.ts +8 -0
  234. package/dist/src/components/tab/hooks/useHorizontalTabScroll.d.ts +8 -0
  235. package/dist/src/components/tab/hooks/useTabIndicator.d.ts +9 -0
  236. package/dist/src/components/tab/hooks/useVerticalTabScroll.d.ts +8 -0
  237. package/dist/src/components/tab/index.d.ts +3 -0
  238. package/dist/src/components/tab/shadcn/tabs.d.ts +7 -0
  239. package/dist/src/components/tab/types/IWuItems.d.ts +5 -0
  240. package/dist/src/components/tab/ui/_horizontalTab.d.ts +3 -0
  241. package/dist/src/components/tab/ui/_verticalTab.d.ts +3 -0
  242. package/dist/src/components/table/components/dataTable/WuDataTable.d.ts +31 -0
  243. package/dist/src/components/table/components/dataTable/WuDataTable.test.d.ts +1 -0
  244. package/dist/src/components/table/components/table/WuTable.d.ts +35 -0
  245. package/dist/src/components/table/components/table/WuTable.test.d.ts +1 -0
  246. package/dist/src/components/table/hooks/useRowSelection.d.ts +11 -0
  247. package/dist/src/components/table/hooks/useTableCore.d.ts +19 -0
  248. package/dist/src/components/table/hooks/useTableScroll.d.ts +6 -0
  249. package/dist/src/components/table/index.d.ts +8 -0
  250. package/dist/src/components/table/types/IColumnDefaultSorting.d.ts +4 -0
  251. package/dist/src/components/table/types/IWuRowSelection.d.ts +10 -0
  252. package/dist/src/components/table/types/IWuTableColumnDef.d.ts +11 -0
  253. package/dist/src/components/table/ui/_body.d.ts +15 -0
  254. package/dist/src/components/table/ui/_header.d.ts +17 -0
  255. package/dist/src/components/table/ui/_virtualBody.d.ts +20 -0
  256. package/dist/src/components/table/utils/data.d.ts +65 -0
  257. package/dist/src/components/table/utils/tableHelpers.d.ts +16 -0
  258. package/dist/src/components/table/utils/tableStyles.d.ts +7 -0
  259. package/dist/src/components/table/utils/variantClass.d.ts +3 -0
  260. package/dist/src/components/textarea/WuTextarea.d.ts +8 -0
  261. package/dist/src/components/textarea/WuTextarea.test.d.ts +1 -0
  262. package/dist/src/components/textarea/index.d.ts +2 -0
  263. package/dist/src/components/timePicker/WuTimePicker.d.ts +9 -0
  264. package/dist/src/components/timePicker/WuTimePicker.test.d.ts +1 -0
  265. package/dist/src/components/timePicker/components/timeColumn.d.ts +11 -0
  266. package/dist/src/components/timePicker/hooks/useRotatedArrays.d.ts +5 -0
  267. package/dist/src/components/timePicker/hooks/useTimePickerScroll.d.ts +1 -0
  268. package/dist/src/components/timePicker/index.d.ts +2 -0
  269. package/dist/src/components/timePicker/utils/timePickerUtils.d.ts +12 -0
  270. package/dist/src/components/toast/WuToast.d.ts +1 -0
  271. package/dist/src/components/toast/WuToast.test.d.ts +1 -0
  272. package/dist/src/components/toast/hooks/useWuShowToast.d.ts +11 -0
  273. package/dist/src/components/toast/index.d.ts +3 -0
  274. package/dist/src/components/toast/types/IWuToastOptions.d.ts +5 -0
  275. package/dist/src/components/toggle/WuToggle.d.ts +8 -0
  276. package/dist/src/components/toggle/WuToggle.test.d.ts +1 -0
  277. package/dist/src/components/toggle/index.d.ts +2 -0
  278. package/dist/src/components/tooltip/WuTooltip.d.ts +15 -0
  279. package/dist/src/components/tooltip/WuTooltip.test.d.ts +1 -0
  280. package/dist/src/components/tooltip/index.d.ts +2 -0
  281. package/dist/src/components/typography/WuTypography.d.ts +21 -0
  282. package/dist/src/components/typography/WuTypography.test.d.ts +1 -0
  283. package/dist/src/components/typography/iconClasses.d.ts +1 -0
  284. package/dist/src/components/typography/index.d.ts +1 -0
  285. package/dist/src/components/useTranslation/WuTranslation.test.d.ts +1 -0
  286. package/dist/src/components/useTranslation/WuTranslationContext.d.ts +2 -0
  287. package/dist/src/components/useTranslation/WuTranslationProvider.d.ts +6 -0
  288. package/dist/src/components/useTranslation/index.d.ts +4 -0
  289. package/dist/src/components/useTranslation/types/index.d.ts +8 -0
  290. package/dist/src/components/useTranslation/useTranslationContext.d.ts +3 -0
  291. package/dist/src/components/virtualScroll/WuVirtualScroll.d.ts +11 -0
  292. package/dist/src/components/virtualScroll/WuVirtualScroll.test.d.ts +1 -0
  293. package/dist/src/components/virtualScroll/index.d.ts +2 -0
  294. package/dist/src/docs/Icons.d.ts +2 -0
  295. package/dist/src/docs/Theme.d.ts +3 -0
  296. package/dist/src/docs/Typography.d.ts +4 -0
  297. package/dist/src/docs/ui/chartColor.d.ts +4 -0
  298. package/dist/src/docs/ui/colorSystem.d.ts +10 -0
  299. package/dist/src/hooks/index.d.ts +1 -0
  300. package/dist/src/hooks/useAnimation.d.ts +9 -0
  301. package/dist/src/hooks/useAnimation.test.d.ts +1 -0
  302. package/dist/src/hooks/useMobile.d.ts +1 -0
  303. package/dist/src/hooks/useResizeList.d.ts +10 -0
  304. package/dist/src/index.d.ts +53 -0
  305. package/dist/src/lib/testUtils.d.ts +2 -0
  306. package/dist/src/lib/utils.d.ts +15 -0
  307. package/dist/src/translate/WuTranslate.d.ts +5 -0
  308. package/dist/src/translate/WuTranslateContext.d.ts +17 -0
  309. package/dist/src/translate/WuTranslateContext.test.d.ts +1 -0
  310. package/dist/src/translate/index.d.ts +3 -0
  311. package/dist/src/translate/wt.d.ts +13 -0
  312. package/dist/style.css +2 -0
  313. package/dist/wick-ui-lib/es/index.js +12354 -0
  314. package/dist/wick-ui-lib/umd/index.js +20 -0
  315. package/package.json +25 -25
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { IWuDrilldownTitle } from './WuDrilldown';
3
+ interface IWuDrilldownTitleMenu {
4
+ titles: IWuDrilldownTitle[];
5
+ dir?: 'ltr' | 'rtl';
6
+ handleTitleClick: (e: React.MouseEvent<HTMLHeadingElement, MouseEvent>, levelId?: `LEVEL_${number}`) => void;
7
+ }
8
+ export declare const WuDrilldownTitleMenu: React.FC<IWuDrilldownTitleMenu>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { IWuDrilldownTitle } from './WuDrilldown';
3
+ export interface IWuDrilldownTitleProps {
4
+ titles: IWuDrilldownTitle[];
5
+ currentLevel: `LEVEL_${number}`;
6
+ initial: `LEVEL_${number}`;
7
+ handleTitleClick: (e: React.MouseEvent<HTMLHeadingElement, MouseEvent>, levelId?: `LEVEL_${number}`) => void;
8
+ headerClasses?: string;
9
+ offsetHeight?: number;
10
+ dir?: 'ltr' | 'rtl';
11
+ }
12
+ export declare const WuDrilldownTitles: React.FC<IWuDrilldownTitleProps>;
@@ -0,0 +1,3 @@
1
+ export { WuDrilldown } from './WuDrilldown';
2
+ export type { IWuDrilldownProps, IWuDrilldownAnimationVariant, IWuDrilldownContext, IWuDrilldownItem, IWuDrilldownTitle, } from './WuDrilldown';
3
+ export type { IWuDrilldownTitleProps } from './WuDrilldownTitles';
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ export interface IWuFooterProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ className?: string;
4
+ isLoading?: boolean;
5
+ loadingText?: string;
6
+ children?: React.ReactNode;
7
+ }
8
+ export declare const WuFooter: React.FC<IWuFooterProps>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export { WuFooter } from './WuFooter';
2
+ export type { IWuFooterProps } from './WuFooter';
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ export interface IWuFormGroupProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ Label?: React.ReactNode;
4
+ Error?: React.ReactNode;
5
+ Hint?: React.ReactNode;
6
+ Input: React.ReactNode;
7
+ labelPosition?: 'left' | 'top';
8
+ dir?: 'ltr' | 'rtl';
9
+ }
10
+ export declare const WuFormGroup: React.FC<IWuFormGroupProps>;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface IWuInputErrorProps extends React.HTMLAttributes<HTMLParagraphElement> {
3
+ message?: string;
4
+ }
5
+ export declare const WuInputError: React.FC<IWuInputErrorProps>;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface IWuInputHintProps extends React.HTMLAttributes<HTMLParagraphElement> {
3
+ inputRef?: React.RefObject<HTMLInputElement | HTMLTextAreaElement | null>;
4
+ maxLength?: number;
5
+ }
6
+ export declare const WuInputHint: React.FC<IWuInputHintProps>;
7
+ export {};
@@ -0,0 +1,3 @@
1
+ import { Label } from '../../../base/ui/label';
2
+ import { default as React } from 'react';
3
+ export declare const WuLabel: React.FC<React.ComponentProps<typeof Label>>;
@@ -0,0 +1,5 @@
1
+ export { WuInputError } from './components/WuInputError';
2
+ export { WuInputHint } from './components/WuInputHint';
3
+ export { WuLabel } from './components/WuLabel';
4
+ export { WuFormGroup } from './WuFormGroup';
5
+ export type { IWuFormGroupProps } from './WuFormGroup';
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ export interface IWuHelpButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
+ idOrSlugOrUrl: string;
4
+ size?: 'sm' | 'md';
5
+ variant?: 'primary' | 'secondary';
6
+ }
7
+ export declare const WuHelpButton: React.ForwardRefExoticComponent<IWuHelpButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,2 @@
1
+ export { WuHelpButton } from './WuHelpButton';
2
+ export type { IWuHelpButtonProps } from './WuHelpButton';
@@ -0,0 +1,13 @@
1
+ import { Input } from '@base-ui/react/input';
2
+ import { default as React } from 'react';
3
+ export interface IWuInputProps extends Input.Props {
4
+ Label?: React.ReactNode;
5
+ labelPosition?: 'left' | 'top' | 'right' | 'bottom';
6
+ Icon?: React.ReactNode;
7
+ iconPosition?: 'left' | 'right';
8
+ variant?: 'flat' | 'outlined' | 'standard' | 'table' | 'title';
9
+ readonly?: boolean;
10
+ invalid?: boolean;
11
+ className?: string;
12
+ }
13
+ export declare const WuInput: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<IWuInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>>;
File without changes
@@ -0,0 +1,2 @@
1
+ export { WuInput } from './WuInput';
2
+ export type { IWuInputProps } from './WuInput';
@@ -0,0 +1,44 @@
1
+ import { default as React } from 'react';
2
+ import { IWuChipProp } from './ui/_trigger';
3
+ export type IWuListboxProps<T extends object> = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value'> & {
4
+ data: T[];
5
+ accessorKey: {
6
+ value: string;
7
+ label: string;
8
+ group?: string;
9
+ };
10
+ value?: T | T[];
11
+ Item?: (props: {
12
+ value: T;
13
+ isSelected?: boolean;
14
+ }) => React.ReactNode;
15
+ Label?: React.ReactNode;
16
+ GroupLabel?: string | ((option: T) => React.ReactNode);
17
+ CustomHeader?: React.ReactNode;
18
+ CustomTrigger?: (value?: T | T[]) => React.ReactElement<HTMLButtonElement>;
19
+ NoDataContent?: React.ReactNode;
20
+ Chip?: (props: IWuChipProp<T>) => React.ReactNode;
21
+ onSelect?: (value: T | T[]) => void;
22
+ onScroll?: React.UIEventHandler<HTMLDivElement>;
23
+ disabled?: boolean;
24
+ multiple?: boolean;
25
+ searchable?: boolean;
26
+ virtualizedThreshold?: number;
27
+ selectAll?: {
28
+ enabled?: boolean;
29
+ onSelectAll?: (value: boolean) => void;
30
+ label?: string;
31
+ };
32
+ showGroupSeparator?: boolean;
33
+ modal?: boolean;
34
+ id?: string;
35
+ dir?: 'rtl' | 'ltr';
36
+ className?: string;
37
+ listClass?: string;
38
+ placeholder?: string;
39
+ variant?: 'flat' | 'outlined';
40
+ labelPosition?: 'left' | 'top' | 'right';
41
+ maxContentWidth?: string;
42
+ maxContentHeight?: string;
43
+ };
44
+ export declare const WuListbox: <T extends object>(props: IWuListboxProps<T>) => React.JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export { WuListbox } from './WuListbox';
2
+ export type { IWuListboxProps } from './WuListbox';
3
+ export type { IWuChipProp } from './ui/_trigger';
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ export declare const WuListboxTrigger: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
3
+ hideIcon?: boolean;
4
+ } & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,14 @@
1
+ import { CommandItem } from '../../../base/ui/command';
2
+ import { default as React } from 'react';
3
+ import { IWuListboxProps } from '../WuListbox';
4
+ type IWuListItemProps<T extends object> = Omit<React.ComponentProps<typeof CommandItem>, 'value' | 'onSelect'> & {
5
+ option: T;
6
+ accessorKey: IWuListboxProps<T>['accessorKey'];
7
+ multiple?: boolean;
8
+ onSelect?: (value: T) => void;
9
+ GroupLabel?: IWuListboxProps<T>['GroupLabel'];
10
+ Item?: IWuListboxProps<T>['Item'];
11
+ isSelected?: (item: T) => boolean;
12
+ };
13
+ export declare const WuListboxItem: <T extends object>(props: IWuListItemProps<T>) => React.ReactElement;
14
+ export {};
@@ -0,0 +1,3 @@
1
+ import { CommandInput } from '../../../base/ui/command';
2
+ import { default as React } from 'react';
3
+ export declare const WuListboxSearch: React.FC<React.ComponentProps<typeof CommandInput>>;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ export declare const WuListboxSelectAll: <T>(props: {
3
+ label?: string;
4
+ onSelectAll?: (value: boolean) => void;
5
+ data?: T[];
6
+ value?: T[];
7
+ }) => React.JSX.Element;
@@ -0,0 +1,20 @@
1
+ import { default as React } from 'react';
2
+ import { IWuListboxProps } from '../WuListbox';
3
+ export type IWuChipProp<T> = {
4
+ value: T;
5
+ unselect: (value: T) => void;
6
+ key?: string | number;
7
+ };
8
+ type IWuListboxTriggerProps<T extends object> = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value'> & {
9
+ CustomTrigger?: (value?: T | T[]) => React.ReactElement<HTMLButtonElement>;
10
+ disabled?: boolean;
11
+ value?: T | T[];
12
+ placeholder?: string;
13
+ accessorKey: IWuListboxProps<T>['accessorKey'];
14
+ Chip?: (props: IWuChipProp<T>) => React.ReactNode;
15
+ handleUnselect: (value: T) => void;
16
+ variant?: 'flat' | 'outlined';
17
+ dir?: 'rtl' | 'ltr';
18
+ };
19
+ export declare const ListboxTrigger: <T extends object>(props: IWuListboxTriggerProps<T>) => React.JSX.Element;
20
+ export {};
@@ -0,0 +1,2 @@
1
+ import { IWuListboxProps } from '../WuListbox';
2
+ export declare const searchOptions: <T extends object>(data: T[], search: string, accessorKey: IWuListboxProps<T>["accessorKey"]) => T[];
@@ -0,0 +1 @@
1
+ export declare const useGenClassName: (name: string, isCombobox?: boolean) => string;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ export interface IWuLoaderProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ size?: 'md' | 'lg' | 'sm' | string;
4
+ color?: string;
5
+ message?: string;
6
+ variant?: 'spinner' | 'dots';
7
+ }
8
+ export declare const WuLoader: React.ForwardRefExoticComponent<IWuLoaderProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export { WuLoader } from './WuLoader';
2
+ export type { IWuLoaderProps } from './WuLoader';
@@ -0,0 +1,24 @@
1
+ import { DropdownMenu } from '../../base/ui/dropdownMenu';
2
+ import { default as React } from 'react';
3
+ export interface IWuMenuProps extends Omit<React.ComponentProps<typeof DropdownMenu>, 'open' | 'onOpenChange'> {
4
+ name?: string;
5
+ /**
6
+ * @deprecated This property is no longer recommended. Use `MenuTitle` instead.
7
+ */
8
+ menuTitle?: string;
9
+ MenuTitle?: React.ReactNode;
10
+ Trigger?: React.ReactElement<HTMLBaseElement>;
11
+ variant?: 'flat' | 'outlined';
12
+ open?: boolean;
13
+ onOpenChange?: (open: boolean) => void;
14
+ height?: string;
15
+ preventCloseOnClickOutside?: boolean;
16
+ dir?: 'ltr' | 'rtl';
17
+ align?: 'start' | 'center' | 'end';
18
+ alignOffset?: number;
19
+ side?: 'left' | 'right' | 'top' | 'bottom';
20
+ sideOffset?: number;
21
+ className?: string;
22
+ disabled?: boolean;
23
+ }
24
+ export declare const WuMenu: React.FC<IWuMenuProps>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ export { WuMenuCheckboxItem } from './ui/WuMenuCheckboxItem';
2
+ export type { IWuMenuCheckboxItemProps } from './ui/WuMenuCheckboxItem';
3
+ export { WuMenuItem } from './ui/WuMenuItem';
4
+ export { WuMenuItemGroup } from './ui/WuMenuItemGroup';
5
+ export { WuMenuRadioItem } from './ui/WuMenuRadioItem';
6
+ export type { IWuMenuRadioItemOption, IWuMenuRadioItemProps, } from './ui/WuMenuRadioItem';
7
+ export { WuMenuSeparatorItem } from './ui/WuMenuSeparatorItem';
8
+ export { WuSubMenu } from './ui/WuSubMenu';
9
+ export { WuMenu } from './WuMenu';
10
+ export type { IWuMenuProps } from './WuMenu';
@@ -0,0 +1,8 @@
1
+ export interface IWuMenuCheckboxItemProps {
2
+ checked: boolean;
3
+ onSelect: (value: boolean) => void;
4
+ disabled?: boolean;
5
+ children?: React.ReactNode;
6
+ preventCloseOnSelect?: boolean;
7
+ }
8
+ export declare const WuMenuCheckboxItem: React.FC<IWuMenuCheckboxItemProps>;
@@ -0,0 +1,8 @@
1
+ export interface IWuMenuItemProps extends Omit<React.HtmlHTMLAttributes<HTMLDivElement>, 'onSelect'> {
2
+ Icon?: React.ReactNode;
3
+ iconPosition?: 'left' | 'right';
4
+ disabled?: boolean;
5
+ onSelect?: (e: Event) => void;
6
+ preventCloseOnSelect?: boolean;
7
+ }
8
+ export declare const WuMenuItem: React.FC<IWuMenuItemProps>;
@@ -0,0 +1,8 @@
1
+ import { DropdownMenuGroup } from '../../../base/ui/dropdownMenu';
2
+ export declare const WuMenuItemGroup: React.FC<React.ComponentProps<typeof DropdownMenuGroup> & {
3
+ /**
4
+ * @deprecated This property is no longer recommended. Use `Label` instead.
5
+ */
6
+ label?: string;
7
+ Label: React.ReactNode;
8
+ }>;
@@ -0,0 +1,15 @@
1
+ export interface IWuMenuRadioItemOption {
2
+ value: string;
3
+ /**
4
+ * @deprecated This property is no longer recommended. Use `Label` instead.
5
+ */
6
+ label?: string;
7
+ Label: React.ReactNode;
8
+ disabled?: boolean;
9
+ }
10
+ export interface IWuMenuRadioItemProps {
11
+ options: IWuMenuRadioItemOption[];
12
+ value: string;
13
+ onSelect: (value: string) => void;
14
+ }
15
+ export declare const WuMenuRadioItem: React.FC<IWuMenuRadioItemProps>;
@@ -0,0 +1,2 @@
1
+ import { DropdownMenuSeparator } from '../../../base/ui/dropdownMenu';
2
+ export declare const WuMenuSeparatorItem: React.FC<React.ComponentProps<typeof DropdownMenuSeparator>>;
@@ -0,0 +1,13 @@
1
+ import { DropdownMenuSub } from '../../../base/ui/dropdownMenu';
2
+ export interface IWuSubMenuProps extends Omit<React.ComponentProps<typeof DropdownMenuSub>, 'onOpenChange'> {
3
+ /**
4
+ * @deprecated This property is no longer recommended. Use `Label` instead.
5
+ */
6
+ label?: string;
7
+ Label: React.ReactNode;
8
+ open?: boolean;
9
+ onOpenChange?: (open: boolean) => void;
10
+ height?: string;
11
+ dir?: 'rtl' | 'ltr';
12
+ }
13
+ export declare const WuSubMenu: React.FC<IWuSubMenuProps>;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ export type IWuMenuIconProps = React.HTMLAttributes<HTMLDivElement> & {
3
+ showMenu?: boolean;
4
+ color?: string;
5
+ };
6
+ export declare const WuMenuIcon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
7
+ showMenu?: boolean;
8
+ color?: string;
9
+ } & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export { WuMenuIcon } from './WuMenuIcon';
2
+ export type { IWuMenuIconProps } from './WuMenuIcon';
@@ -0,0 +1,32 @@
1
+ import { DialogContent, DialogFooter, DialogHeader } from '../../base/ui/dialog';
2
+ import { default as React, FC } from 'react';
3
+ import { IWuButtonProps } from '../button';
4
+ declare const MAX_WIDTH: {
5
+ readonly sm: "400px";
6
+ readonly md: "600px";
7
+ readonly lg: "1200px";
8
+ };
9
+ type IModalSize = keyof typeof MAX_WIDTH;
10
+ export interface IWuModalProps extends React.ComponentProps<typeof DialogContent> {
11
+ Trigger?: React.ReactNode;
12
+ size?: IModalSize;
13
+ hideCloseButton?: boolean;
14
+ preventClickOutside?: boolean;
15
+ onOpenChange?: (open: boolean) => void;
16
+ open?: boolean;
17
+ dir?: 'ltr' | 'rtl';
18
+ maxWidth?: string;
19
+ maxHeight?: string;
20
+ children?: React.ReactNode;
21
+ variant?: 'action' | 'critical' | 'upgrade';
22
+ onOpenAutoFocus?: (event: Event) => void;
23
+ onCloseAutoFocus?: (event: Event) => void;
24
+ /** Allow external portals (e.g. CKEditor dropdowns/inputs) to receive focus and pointer events */
25
+ allowExternalPortals?: boolean;
26
+ }
27
+ export declare const WuModal: FC<IWuModalProps>;
28
+ export declare const WuModalContent: FC<React.HTMLAttributes<HTMLDivElement>>;
29
+ export declare const WuModalHeader: FC<React.ComponentProps<typeof DialogHeader>>;
30
+ export declare const WuModalFooter: FC<React.ComponentProps<typeof DialogFooter>>;
31
+ export declare const WuModalClose: FC<IWuButtonProps>;
32
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export { WuModal, WuModalClose, WuModalContent, WuModalFooter, WuModalHeader, } from './WuModal';
2
+ export type { IWuModalProps } from './WuModal';
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ import { WuDatePickerTrigger } from '../calendar/ui/_trigger';
3
+ export type IWuMonthPickerProps = Omit<React.ComponentProps<typeof WuDatePickerTrigger>, 'value' | 'onChange'> & {
4
+ value?: Date | string;
5
+ onChange?: (value: Date) => void;
6
+ min?: Date | string;
7
+ max?: Date | string;
8
+ placeholder?: string;
9
+ Label?: React.ReactNode;
10
+ labelPosition?: 'top' | 'left' | 'right';
11
+ id?: string;
12
+ disabled?: boolean;
13
+ readonly?: boolean;
14
+ disabledMonths?: (`${number}-${number}-${number}` | Date)[];
15
+ };
16
+ export declare const WuMonthPicker: React.FC<IWuMonthPickerProps>;
@@ -0,0 +1,2 @@
1
+ export { WuMonthPicker } from './WuMonthPicker';
2
+ export type { IWuMonthPickerProps } from './WuMonthPicker';
@@ -0,0 +1,4 @@
1
+ export { WuPrimaryNavbar } from './primaryNavbar/WuPrimaryNavbar';
2
+ export type { IWuPrimaryNavbarProps } from './primaryNavbar/WuPrimaryNavbar';
3
+ export { WuSecondaryNavbar } from './secondaryNavbar/WuSecondaryNavbar';
4
+ export type { IWuSecondaryNavbarProps } from './secondaryNavbar/WuSecondaryNavbar';
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ interface INavLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
3
+ active?: boolean;
4
+ className?: string;
5
+ }
6
+ export interface IWuPrimaryNavbarProps extends React.HTMLAttributes<HTMLDivElement> {
7
+ Links: React.ReactElement<INavLinkProps>[];
8
+ children?: React.ReactNode;
9
+ className?: string;
10
+ }
11
+ export declare const WuPrimaryNavbar: React.FC<IWuPrimaryNavbarProps>;
12
+ export {};
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ interface INavLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
3
+ active?: boolean;
4
+ children: React.ReactNode;
5
+ }
6
+ interface INavImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
7
+ className?: string;
8
+ }
9
+ export interface INavLinkNode {
10
+ link: React.ReactElement<INavLinkProps>;
11
+ imgOrIcon: React.ReactElement<INavImageProps>;
12
+ }
13
+ export interface IWuSecondaryNavbarProps extends React.HTMLAttributes<HTMLDivElement> {
14
+ Links: INavLinkNode[];
15
+ children?: React.ReactNode;
16
+ }
17
+ export declare const WuSecondaryNavbar: React.FC<IWuSecondaryNavbarProps>;
18
+ export {};
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ export interface IWuPaginationProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ totalRows: number;
4
+ initialPage?: number;
5
+ initialPageSize: number;
6
+ onPageChange?: (page: number) => void;
7
+ disabled?: boolean;
8
+ dir?: 'ltr' | 'rtl';
9
+ }
10
+ export declare const WuPagination: React.ForwardRefExoticComponent<IWuPaginationProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ export { WuPagination } from './WuPagination';
2
+ export type { IWuPaginationProps } from './WuPagination';
@@ -0,0 +1,14 @@
1
+ import { PopoverContentProps } from '@radix-ui/react-popover';
2
+ import { default as React } from 'react';
3
+ import { IWuButtonProps } from '../button';
4
+ export type IWuPopoverProps = PopoverContentProps & {
5
+ Trigger: React.ReactNode;
6
+ children: React.ReactNode;
7
+ className?: string;
8
+ dir?: 'ltr' | 'rtl';
9
+ open?: boolean;
10
+ onOpenChange?: (open: boolean) => void;
11
+ modal?: boolean;
12
+ };
13
+ export declare const WuPopover: React.FC<IWuPopoverProps>;
14
+ export declare const WuPopoverClose: React.FC<IWuButtonProps>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export { WuPopover, WuPopoverClose } from './WuPopover';
2
+ export type { IWuPopoverProps } from './WuPopover';
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { IWuRadioOption } from './types/IWuRadioOption';
3
+ export interface IWuRadioGroupProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
4
+ options: IWuRadioOption[];
5
+ defaultValue?: string;
6
+ disabled?: boolean;
7
+ onChange?: (e: string) => void;
8
+ label?: string;
9
+ id?: string;
10
+ dir?: 'ltr' | 'rtl';
11
+ }
12
+ export declare const WuRadioGroup: React.FC<IWuRadioGroupProps>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export type { IWuRadioOption } from './types/IWuRadioOption';
2
+ export { WuRadioGroup } from './WuRadioGroup';
3
+ export type { IWuRadioGroupProps } from './WuRadioGroup';
@@ -0,0 +1,6 @@
1
+ export interface IWuRadioOption {
2
+ value: string;
3
+ label: string;
4
+ disabled?: boolean;
5
+ required?: boolean;
6
+ }
@@ -0,0 +1,4 @@
1
+ export type IWuScrollAreaProps = React.HTMLAttributes<HTMLDivElement> & {
2
+ dir?: 'ltr' | 'rtl';
3
+ };
4
+ export declare const WuScrollArea: React.FC<IWuScrollAreaProps>;
@@ -0,0 +1 @@
1
+ export { WuScrollArea } from './WuScrollArea';
@@ -0,0 +1,33 @@
1
+ import { default as React } from 'react';
2
+ export type IWuSelectProps<T> = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'defaultValue' | 'onSelect'> & {
3
+ defaultValue?: T | T[] | null;
4
+ Label?: React.ReactNode;
5
+ value?: T | T[] | null;
6
+ data: T[];
7
+ accessorKey: {
8
+ value: string;
9
+ label: string;
10
+ };
11
+ onSelect?: (value: T | T[]) => void;
12
+ multiple?: boolean;
13
+ variant?: 'flat' | 'outlined';
14
+ dir?: 'ltr' | 'rtl';
15
+ placeholder?: string;
16
+ virtualizedThreshold?: number;
17
+ maxHeight?: number;
18
+ maxContentWidth?: string;
19
+ hasGroup?: boolean;
20
+ Header?: React.ReactNode;
21
+ CustomTrigger?: React.ReactNode;
22
+ selectAll?: {
23
+ enable: boolean;
24
+ label?: string;
25
+ includeDisabled?: boolean;
26
+ triggerText?: string;
27
+ };
28
+ labelPosition?: 'left' | 'top' | 'right';
29
+ onScroll?: React.UIEventHandler<HTMLDivElement>;
30
+ /** @description This is an experimental flag. It might have performance impact. Please use at your own risk. */
31
+ selectedToTop?: boolean;
32
+ };
33
+ export declare const WuSelect: <T>({ data, onSelect, multiple, defaultValue, value: controlledValue, accessorKey, variant, dir, placeholder, Label, virtualizedThreshold, maxHeight, hasGroup, Header, CustomTrigger, selectAll, disabled, labelPosition, onScroll, maxContentWidth, selectedToTop, ...rest }: IWuSelectProps<T>) => React.JSX.Element;