@momo-webplatform/mobase-next 1.0.2 → 1.0.3

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 (332) hide show
  1. package/dist/index.d.mts +1712 -138
  2. package/dist/index.mjs +142 -1
  3. package/package.json +3 -3
  4. package/dist/chunk-7LRQ2WLZ.mjs +0 -1
  5. package/dist/components/blocks/BlogSection/BlogSection.d.mts +0 -17
  6. package/dist/components/blocks/BlogSection/BlogSection.mjs +0 -1
  7. package/dist/components/blocks/BlogSection/BlogSectionTemplate.d.mts +0 -15
  8. package/dist/components/blocks/BlogSection/BlogSectionTemplate.mjs +0 -1
  9. package/dist/components/blocks/BlogSection/index.d.mts +0 -14
  10. package/dist/components/blocks/BlogSection/index.mjs +0 -1
  11. package/dist/components/blocks/BlogSection/templates/BlogSectionTemplateOne.d.mts +0 -17
  12. package/dist/components/blocks/BlogSection/templates/BlogSectionTemplateOne.mjs +0 -1
  13. package/dist/components/blocks/BlogSection/templates/BlogSectionTemplateTwo.d.mts +0 -17
  14. package/dist/components/blocks/BlogSection/templates/BlogSectionTemplateTwo.mjs +0 -1
  15. package/dist/components/blocks/BlogSection/utils.d.mts +0 -50
  16. package/dist/components/blocks/BlogSection/utils.mjs +0 -0
  17. package/dist/components/blocks/CTASection/CTASection.d.mts +0 -17
  18. package/dist/components/blocks/CTASection/CTASection.mjs +0 -1
  19. package/dist/components/blocks/CTASection/CTASectionTemplate.d.mts +0 -18
  20. package/dist/components/blocks/CTASection/CTASectionTemplate.mjs +0 -1
  21. package/dist/components/blocks/CTASection/index.d.mts +0 -14
  22. package/dist/components/blocks/CTASection/index.mjs +0 -1
  23. package/dist/components/blocks/CTASection/utils.d.mts +0 -61
  24. package/dist/components/blocks/CTASection/utils.mjs +0 -0
  25. package/dist/components/blocks/FAQSection/FAQSection.d.mts +0 -17
  26. package/dist/components/blocks/FAQSection/FAQSection.mjs +0 -1
  27. package/dist/components/blocks/FAQSection/FAQTemplate.d.mts +0 -18
  28. package/dist/components/blocks/FAQSection/FAQTemplate.mjs +0 -1
  29. package/dist/components/blocks/FAQSection/index.d.mts +0 -14
  30. package/dist/components/blocks/FAQSection/index.mjs +0 -1
  31. package/dist/components/blocks/FAQSection/utils.d.mts +0 -36
  32. package/dist/components/blocks/FAQSection/utils.mjs +0 -0
  33. package/dist/components/blocks/FeatureSection/FeatureSection.d.mts +0 -17
  34. package/dist/components/blocks/FeatureSection/FeatureSection.mjs +0 -1
  35. package/dist/components/blocks/FeatureSection/FeatureTemlates.d.mts +0 -29
  36. package/dist/components/blocks/FeatureSection/FeatureTemlates.mjs +0 -1
  37. package/dist/components/blocks/FeatureSection/index.d.mts +0 -14
  38. package/dist/components/blocks/FeatureSection/index.mjs +0 -1
  39. package/dist/components/blocks/FeatureSection/utils.d.mts +0 -77
  40. package/dist/components/blocks/FeatureSection/utils.mjs +0 -0
  41. package/dist/components/blocks/GiftListSection/GiftListSection.d.mts +0 -17
  42. package/dist/components/blocks/GiftListSection/GiftListSection.mjs +0 -1
  43. package/dist/components/blocks/GiftListSection/GiftListSectionTemplate.d.mts +0 -17
  44. package/dist/components/blocks/GiftListSection/GiftListSectionTemplate.mjs +0 -1
  45. package/dist/components/blocks/GiftListSection/index.d.mts +0 -14
  46. package/dist/components/blocks/GiftListSection/index.mjs +0 -1
  47. package/dist/components/blocks/GiftListSection/utils.d.mts +0 -81
  48. package/dist/components/blocks/GiftListSection/utils.mjs +0 -0
  49. package/dist/components/blocks/GuideSection/GuideSection.d.mts +0 -18
  50. package/dist/components/blocks/GuideSection/GuideSection.mjs +0 -1
  51. package/dist/components/blocks/GuideSection/GuideSectionTemplate.d.mts +0 -18
  52. package/dist/components/blocks/GuideSection/GuideSectionTemplate.mjs +0 -1
  53. package/dist/components/blocks/GuideSection/GuideUIDesktop.d.mts +0 -28
  54. package/dist/components/blocks/GuideSection/GuideUIDesktop.mjs +0 -1
  55. package/dist/components/blocks/GuideSection/GuideUIMobile.d.mts +0 -23
  56. package/dist/components/blocks/GuideSection/GuideUIMobile.mjs +0 -1
  57. package/dist/components/blocks/GuideSection/index.d.mts +0 -15
  58. package/dist/components/blocks/GuideSection/index.mjs +0 -1
  59. package/dist/components/blocks/GuideSection/utils.d.mts +0 -78
  60. package/dist/components/blocks/GuideSection/utils.mjs +0 -0
  61. package/dist/components/blocks/HeroSection/HeroSection.d.mts +0 -18
  62. package/dist/components/blocks/HeroSection/HeroSection.mjs +0 -1
  63. package/dist/components/blocks/HeroSection/HeroSectionFeatures.d.mts +0 -20
  64. package/dist/components/blocks/HeroSection/HeroSectionFeatures.mjs +0 -1
  65. package/dist/components/blocks/HeroSection/HeroSectionMedia.d.mts +0 -17
  66. package/dist/components/blocks/HeroSection/HeroSectionMedia.mjs +0 -1
  67. package/dist/components/blocks/HeroSection/HeroSectionStats.d.mts +0 -19
  68. package/dist/components/blocks/HeroSection/HeroSectionStats.mjs +0 -1
  69. package/dist/components/blocks/HeroSection/HeroSectionTemplate.d.mts +0 -19
  70. package/dist/components/blocks/HeroSection/HeroSectionTemplate.mjs +0 -1
  71. package/dist/components/blocks/HeroSection/index.d.mts +0 -14
  72. package/dist/components/blocks/HeroSection/index.mjs +0 -1
  73. package/dist/components/blocks/HeroSection/utils.d.mts +0 -90
  74. package/dist/components/blocks/HeroSection/utils.mjs +0 -1
  75. package/dist/components/blocks/HowItWorksSection/HowItWorksSection.d.mts +0 -17
  76. package/dist/components/blocks/HowItWorksSection/HowItWorksSection.mjs +0 -1
  77. package/dist/components/blocks/HowItWorksSection/HowItWorksSectionTemplate.d.mts +0 -19
  78. package/dist/components/blocks/HowItWorksSection/HowItWorksSectionTemplate.mjs +0 -1
  79. package/dist/components/blocks/HowItWorksSection/index.d.mts +0 -14
  80. package/dist/components/blocks/HowItWorksSection/index.mjs +0 -1
  81. package/dist/components/blocks/HowItWorksSection/utils.d.mts +0 -47
  82. package/dist/components/blocks/HowItWorksSection/utils.mjs +0 -0
  83. package/dist/components/blocks/MetricsSection/MetricsSection.d.mts +0 -17
  84. package/dist/components/blocks/MetricsSection/MetricsSection.mjs +0 -1
  85. package/dist/components/blocks/MetricsSection/MetricsSectionTemplate.d.mts +0 -15
  86. package/dist/components/blocks/MetricsSection/MetricsSectionTemplate.mjs +0 -1
  87. package/dist/components/blocks/MetricsSection/index.d.mts +0 -14
  88. package/dist/components/blocks/MetricsSection/index.mjs +0 -1
  89. package/dist/components/blocks/MetricsSection/template/MetricsSectionTemplateOne.d.mts +0 -17
  90. package/dist/components/blocks/MetricsSection/template/MetricsSectionTemplateOne.mjs +0 -1
  91. package/dist/components/blocks/MetricsSection/template/MetricsSectionTemplateTwo.d.mts +0 -17
  92. package/dist/components/blocks/MetricsSection/template/MetricsSectionTemplateTwo.mjs +0 -1
  93. package/dist/components/blocks/MetricsSection/utils.d.mts +0 -38
  94. package/dist/components/blocks/MetricsSection/utils.mjs +0 -0
  95. package/dist/components/blocks/NewsSection/NewsSection.d.mts +0 -17
  96. package/dist/components/blocks/NewsSection/NewsSection.mjs +0 -1
  97. package/dist/components/blocks/NewsSection/NewsSectionTemplate.d.mts +0 -17
  98. package/dist/components/blocks/NewsSection/NewsSectionTemplate.mjs +0 -1
  99. package/dist/components/blocks/NewsSection/index.d.mts +0 -14
  100. package/dist/components/blocks/NewsSection/index.mjs +0 -1
  101. package/dist/components/blocks/NewsSection/utils.d.mts +0 -66
  102. package/dist/components/blocks/NewsSection/utils.mjs +0 -0
  103. package/dist/components/blocks/SocialProofSection/SocialProofSection.d.mts +0 -17
  104. package/dist/components/blocks/SocialProofSection/SocialProofSection.mjs +0 -1
  105. package/dist/components/blocks/SocialProofSection/SocialProofTemplates.d.mts +0 -17
  106. package/dist/components/blocks/SocialProofSection/SocialProofTemplates.mjs +0 -1
  107. package/dist/components/blocks/SocialProofSection/index.d.mts +0 -14
  108. package/dist/components/blocks/SocialProofSection/index.mjs +0 -1
  109. package/dist/components/blocks/SocialProofSection/templates/SocialProofTemplate1.d.mts +0 -17
  110. package/dist/components/blocks/SocialProofSection/templates/SocialProofTemplate1.mjs +0 -1
  111. package/dist/components/blocks/SocialProofSection/templates/SocialProofTemplate2.d.mts +0 -17
  112. package/dist/components/blocks/SocialProofSection/templates/SocialProofTemplate2.mjs +0 -1
  113. package/dist/components/blocks/SocialProofSection/templates/SocialProofTemplate3.d.mts +0 -17
  114. package/dist/components/blocks/SocialProofSection/templates/SocialProofTemplate3.mjs +0 -1
  115. package/dist/components/blocks/SocialProofSection/templates/SocialProofTemplate4.d.mts +0 -17
  116. package/dist/components/blocks/SocialProofSection/templates/SocialProofTemplate4.mjs +0 -18
  117. package/dist/components/blocks/SocialProofSection/utils.d.mts +0 -31
  118. package/dist/components/blocks/SocialProofSection/utils.mjs +0 -0
  119. package/dist/components/blocks/TestimonialSection/TestimonialSection.d.mts +0 -17
  120. package/dist/components/blocks/TestimonialSection/TestimonialSection.mjs +0 -1
  121. package/dist/components/blocks/TestimonialSection/index.d.mts +0 -14
  122. package/dist/components/blocks/TestimonialSection/index.mjs +0 -1
  123. package/dist/components/blocks/TestimonialSection/shared.d.mts +0 -29
  124. package/dist/components/blocks/TestimonialSection/shared.mjs +0 -1
  125. package/dist/components/blocks/TestimonialSection/templates/TestimonialTemplateOne.d.mts +0 -17
  126. package/dist/components/blocks/TestimonialSection/templates/TestimonialTemplateOne.mjs +0 -1
  127. package/dist/components/blocks/TestimonialSection/templates/TestimonialTemplateThree.d.mts +0 -17
  128. package/dist/components/blocks/TestimonialSection/templates/TestimonialTemplateThree.mjs +0 -1
  129. package/dist/components/blocks/TestimonialSection/templates/TestimonialTemplateTwo.d.mts +0 -17
  130. package/dist/components/blocks/TestimonialSection/templates/TestimonialTemplateTwo.mjs +0 -5
  131. package/dist/components/blocks/TestimonialSection/utils.d.mts +0 -37
  132. package/dist/components/blocks/TestimonialSection/utils.mjs +0 -1
  133. package/dist/components/blocks/action-button/action-button.d.mts +0 -15
  134. package/dist/components/blocks/action-button/action-button.mjs +0 -1
  135. package/dist/components/blocks/action-button/index.d.mts +0 -12
  136. package/dist/components/blocks/action-button/index.mjs +0 -1
  137. package/dist/components/blocks/action-button/utils.d.mts +0 -65
  138. package/dist/components/blocks/action-button/utils.mjs +0 -1
  139. package/dist/components/blocks/common-blocks/common-blocks.d.mts +0 -18
  140. package/dist/components/blocks/common-blocks/common-blocks.mjs +0 -1
  141. package/dist/components/blocks/common-blocks/index.d.mts +0 -13
  142. package/dist/components/blocks/common-blocks/index.mjs +0 -1
  143. package/dist/components/blocks/common-blocks/utils.d.mts +0 -96
  144. package/dist/components/blocks/common-blocks/utils.mjs +0 -0
  145. package/dist/components/blocks/dialog-qr/DialogQr.d.mts +0 -42
  146. package/dist/components/blocks/dialog-qr/DialogQr.mjs +0 -70
  147. package/dist/components/blocks/dialog-qr/index.d.mts +0 -8
  148. package/dist/components/blocks/dialog-qr/index.mjs +0 -1
  149. package/dist/components/blocks/footer/defaults.d.mts +0 -39
  150. package/dist/components/blocks/footer/defaults.mjs +0 -1
  151. package/dist/components/blocks/footer/footer-content.d.mts +0 -6
  152. package/dist/components/blocks/footer/footer-content.mjs +0 -5
  153. package/dist/components/blocks/footer/footer.d.mts +0 -6
  154. package/dist/components/blocks/footer/footer.mjs +0 -1
  155. package/dist/components/blocks/footer/index.d.mts +0 -5
  156. package/dist/components/blocks/footer/index.mjs +0 -1
  157. package/dist/components/blocks/footer/types.d.mts +0 -27
  158. package/dist/components/blocks/footer/types.mjs +0 -0
  159. package/dist/components/blocks/header-navigation/header-navigation.d.mts +0 -7
  160. package/dist/components/blocks/header-navigation/header-navigation.mjs +0 -5
  161. package/dist/components/blocks/header-navigation/index.d.mts +0 -4
  162. package/dist/components/blocks/header-navigation/index.mjs +0 -1
  163. package/dist/components/blocks/header-navigation/list-item-mobile.d.mts +0 -14
  164. package/dist/components/blocks/header-navigation/list-item-mobile.mjs +0 -1
  165. package/dist/components/blocks/header-navigation/list-item.d.mts +0 -14
  166. package/dist/components/blocks/header-navigation/list-item.mjs +0 -1
  167. package/dist/components/blocks/header-navigation/mobile-menu.d.mts +0 -11
  168. package/dist/components/blocks/header-navigation/mobile-menu.mjs +0 -1
  169. package/dist/components/blocks/header-navigation/nav-items-mobile.d.mts +0 -10
  170. package/dist/components/blocks/header-navigation/nav-items-mobile.mjs +0 -1
  171. package/dist/components/blocks/header-navigation/nav-items.d.mts +0 -11
  172. package/dist/components/blocks/header-navigation/nav-items.mjs +0 -1
  173. package/dist/components/blocks/header-navigation/types.d.mts +0 -48
  174. package/dist/components/blocks/header-navigation/types.mjs +0 -0
  175. package/dist/components/blocks/heading-group/HeadingGroup.d.mts +0 -97
  176. package/dist/components/blocks/heading-group/HeadingGroup.mjs +0 -1
  177. package/dist/components/blocks/heading-group/index.d.mts +0 -3
  178. package/dist/components/blocks/heading-group/index.mjs +0 -1
  179. package/dist/components/mobase/accordion.d.mts +0 -9
  180. package/dist/components/mobase/accordion.mjs +0 -1
  181. package/dist/components/mobase/alert-dialog.d.mts +0 -24
  182. package/dist/components/mobase/alert-dialog.mjs +0 -1
  183. package/dist/components/mobase/alert.d.mts +0 -14
  184. package/dist/components/mobase/alert.mjs +0 -1
  185. package/dist/components/mobase/aspect-ratio.d.mts +0 -8
  186. package/dist/components/mobase/aspect-ratio.mjs +0 -1
  187. package/dist/components/mobase/autocomplete.d.mts +0 -34
  188. package/dist/components/mobase/autocomplete.mjs +0 -1
  189. package/dist/components/mobase/avatar.d.mts +0 -14
  190. package/dist/components/mobase/avatar.mjs +0 -1
  191. package/dist/components/mobase/badge.d.mts +0 -15
  192. package/dist/components/mobase/badge.mjs +0 -1
  193. package/dist/components/mobase/breadcrumb.d.mts +0 -13
  194. package/dist/components/mobase/breadcrumb.mjs +0 -1
  195. package/dist/components/mobase/button-group.d.mts +0 -16
  196. package/dist/components/mobase/button-group.mjs +0 -1
  197. package/dist/components/mobase/button.d.mts +0 -26
  198. package/dist/components/mobase/button.mjs +0 -1
  199. package/dist/components/mobase/calendar.d.mts +0 -16
  200. package/dist/components/mobase/calendar.mjs +0 -1
  201. package/dist/components/mobase/card.d.mts +0 -14
  202. package/dist/components/mobase/card.mjs +0 -1
  203. package/dist/components/mobase/carousel.d.mts +0 -37
  204. package/dist/components/mobase/carousel.mjs +0 -1
  205. package/dist/components/mobase/checkbox.d.mts +0 -7
  206. package/dist/components/mobase/checkbox.mjs +0 -1
  207. package/dist/components/mobase/close-button.d.mts +0 -17
  208. package/dist/components/mobase/close-button.mjs +0 -1
  209. package/dist/components/mobase/combobox.d.mts +0 -29
  210. package/dist/components/mobase/combobox.mjs +0 -1
  211. package/dist/components/mobase/command.d.mts +0 -31
  212. package/dist/components/mobase/command.mjs +0 -1
  213. package/dist/components/mobase/date-picker.d.mts +0 -46
  214. package/dist/components/mobase/date-picker.mjs +0 -1
  215. package/dist/components/mobase/dialog-qr.d.mts +0 -8
  216. package/dist/components/mobase/dialog-qr.mjs +0 -1
  217. package/dist/components/mobase/dialog.d.mts +0 -41
  218. package/dist/components/mobase/dialog.mjs +0 -1
  219. package/dist/components/mobase/drawer.d.mts +0 -46
  220. package/dist/components/mobase/drawer.mjs +0 -1
  221. package/dist/components/mobase/dropdown-menu.d.mts +0 -33
  222. package/dist/components/mobase/dropdown-menu.mjs +0 -1
  223. package/dist/components/mobase/empty.d.mts +0 -15
  224. package/dist/components/mobase/empty.mjs +0 -1
  225. package/dist/components/mobase/field.d.mts +0 -30
  226. package/dist/components/mobase/field.mjs +0 -1
  227. package/dist/components/mobase/form.d.mts +0 -7
  228. package/dist/components/mobase/form.mjs +0 -1
  229. package/dist/components/mobase/hitbox.d.mts +0 -19
  230. package/dist/components/mobase/hitbox.mjs +0 -1
  231. package/dist/components/mobase/horizontal-scroll.d.mts +0 -24
  232. package/dist/components/mobase/horizontal-scroll.mjs +0 -1
  233. package/dist/components/mobase/infinite-slider.d.mts +0 -19
  234. package/dist/components/mobase/infinite-slider.mjs +0 -1
  235. package/dist/components/mobase/input-group.d.mts +0 -27
  236. package/dist/components/mobase/input-group.mjs +0 -1
  237. package/dist/components/mobase/input-search.d.mts +0 -8
  238. package/dist/components/mobase/input-search.mjs +0 -1
  239. package/dist/components/mobase/input.d.mts +0 -34
  240. package/dist/components/mobase/input.mjs +0 -1
  241. package/dist/components/mobase/item.d.mts +0 -27
  242. package/dist/components/mobase/item.mjs +0 -1
  243. package/dist/components/mobase/kbd.d.mts +0 -6
  244. package/dist/components/mobase/kbd.mjs +0 -1
  245. package/dist/components/mobase/label.d.mts +0 -6
  246. package/dist/components/mobase/label.mjs +0 -1
  247. package/dist/components/mobase/logo.d.mts +0 -26
  248. package/dist/components/mobase/logo.mjs +0 -1
  249. package/dist/components/mobase/logos-carousel.d.mts +0 -15
  250. package/dist/components/mobase/logos-carousel.mjs +0 -27
  251. package/dist/components/mobase/marquee.d.mts +0 -16
  252. package/dist/components/mobase/marquee.mjs +0 -1
  253. package/dist/components/mobase/native-select.d.mts +0 -11
  254. package/dist/components/mobase/native-select.mjs +0 -1
  255. package/dist/components/mobase/navigation-menu.d.mts +0 -15
  256. package/dist/components/mobase/navigation-menu.mjs +0 -1
  257. package/dist/components/mobase/number-field.d.mts +0 -19
  258. package/dist/components/mobase/number-field.mjs +0 -1
  259. package/dist/components/mobase/otp-field.d.mts +0 -12
  260. package/dist/components/mobase/otp-field.mjs +0 -1
  261. package/dist/components/mobase/pagination.d.mts +0 -23
  262. package/dist/components/mobase/pagination.mjs +0 -1
  263. package/dist/components/mobase/popover.d.mts +0 -12
  264. package/dist/components/mobase/popover.mjs +0 -1
  265. package/dist/components/mobase/progress.d.mts +0 -10
  266. package/dist/components/mobase/progress.mjs +0 -1
  267. package/dist/components/mobase/qr-payment.d.mts +0 -46
  268. package/dist/components/mobase/qr-payment.mjs +0 -13
  269. package/dist/components/mobase/radio-group.d.mts +0 -10
  270. package/dist/components/mobase/radio-group.mjs +0 -1
  271. package/dist/components/mobase/scroll-area.d.mts +0 -11
  272. package/dist/components/mobase/scroll-area.mjs +0 -1
  273. package/dist/components/mobase/select.d.mts +0 -21
  274. package/dist/components/mobase/select.mjs +0 -1
  275. package/dist/components/mobase/separator.d.mts +0 -6
  276. package/dist/components/mobase/separator.mjs +0 -1
  277. package/dist/components/mobase/skeleton.d.mts +0 -5
  278. package/dist/components/mobase/skeleton.mjs +0 -1
  279. package/dist/components/mobase/slider.d.mts +0 -6
  280. package/dist/components/mobase/slider.mjs +0 -1
  281. package/dist/components/mobase/sliding-number.d.mts +0 -10
  282. package/dist/components/mobase/sliding-number.mjs +0 -1
  283. package/dist/components/mobase/spinner.d.mts +0 -12
  284. package/dist/components/mobase/spinner.mjs +0 -1
  285. package/dist/components/mobase/switch.d.mts +0 -8
  286. package/dist/components/mobase/switch.mjs +0 -1
  287. package/dist/components/mobase/table.d.mts +0 -13
  288. package/dist/components/mobase/table.mjs +0 -1
  289. package/dist/components/mobase/tabs.d.mts +0 -14
  290. package/dist/components/mobase/tabs.mjs +0 -1
  291. package/dist/components/mobase/text-effect.d.mts +0 -30
  292. package/dist/components/mobase/text-effect.mjs +0 -2
  293. package/dist/components/mobase/textarea.d.mts +0 -10
  294. package/dist/components/mobase/textarea.mjs +0 -1
  295. package/dist/components/mobase/toast.d.mts +0 -14
  296. package/dist/components/mobase/toast.mjs +0 -1
  297. package/dist/components/mobase/tooltip.d.mts +0 -9
  298. package/dist/components/mobase/tooltip.mjs +0 -1
  299. package/dist/hooks/use-click-outside.d.mts +0 -6
  300. package/dist/hooks/use-click-outside.mjs +0 -1
  301. package/dist/hooks/use-copy-to-clipboard.d.mts +0 -9
  302. package/dist/hooks/use-copy-to-clipboard.mjs +0 -1
  303. package/dist/hooks/use-event-callback.d.mts +0 -19
  304. package/dist/hooks/use-event-callback.mjs +0 -1
  305. package/dist/hooks/use-event-listener.d.mts +0 -8
  306. package/dist/hooks/use-event-listener.mjs +0 -1
  307. package/dist/hooks/use-is-client.d.mts +0 -3
  308. package/dist/hooks/use-is-client.mjs +0 -1
  309. package/dist/hooks/use-is-momo-app.d.mts +0 -3
  310. package/dist/hooks/use-is-momo-app.mjs +0 -1
  311. package/dist/hooks/use-is-touch-device.d.mts +0 -7
  312. package/dist/hooks/use-is-touch-device.mjs +0 -1
  313. package/dist/hooks/use-isomorphic-layout-effect.d.mts +0 -5
  314. package/dist/hooks/use-isomorphic-layout-effect.mjs +0 -1
  315. package/dist/hooks/use-local-storage.d.mts +0 -5
  316. package/dist/hooks/use-local-storage.mjs +0 -1
  317. package/dist/hooks/use-mobile.d.mts +0 -3
  318. package/dist/hooks/use-mobile.mjs +0 -1
  319. package/dist/hooks/use-window-size.d.mts +0 -11
  320. package/dist/hooks/use-window-size.mjs +0 -1
  321. package/dist/lib/media-ratio.d.mts +0 -6
  322. package/dist/lib/media-ratio.mjs +0 -1
  323. package/dist/lib/plain-text-from-html.d.mts +0 -6
  324. package/dist/lib/plain-text-from-html.mjs +0 -1
  325. package/dist/lib/qr-image-url.d.mts +0 -13
  326. package/dist/lib/qr-image-url.mjs +0 -1
  327. package/dist/lib/scroll-to-selector.d.mts +0 -9
  328. package/dist/lib/scroll-to-selector.mjs +0 -1
  329. package/dist/lib/testimonial-avatar.d.mts +0 -6
  330. package/dist/lib/testimonial-avatar.mjs +0 -1
  331. package/dist/lib/utils.d.mts +0 -6
  332. package/dist/lib/utils.mjs +0 -1
@@ -1,10 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ComponentProps } from 'react';
3
- import { InputSize } from './input.mjs';
4
-
5
- type TextareaProps = Omit<ComponentProps<"textarea">, "size"> & {
6
- size?: InputSize;
7
- };
8
- declare function Textarea({ size, className, disabled, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
9
-
10
- export { Textarea, type TextareaProps };
@@ -1 +0,0 @@
1
- import{a as i,c as t}from"../../chunk-7LRQ2WLZ.mjs";import{jsx as p}from"react/jsx-runtime";import{cn as d}from"../../lib/utils";const s={sm:"min-h-[4.5rem] rounded-lg px-3 py-2 text-sm",default:"min-h-16 rounded-lg px-3 py-3 text-sm",lg:"min-h-20 rounded-xl px-3 py-3 text-base"};function l(u){var r=u,{size:o="default",className:a,disabled:e}=r,n=t(r,["size","className","disabled"]);return p("textarea",i({"data-slot":"textarea",disabled:e,className:d("field-sizing-content w-full resize-none border border-input bg-background-1 shadow-none transition-colors outline-none","placeholder:text-subtle-foreground","focus-visible:border-ring focus-visible:ring-[1px] focus-visible:ring-ring","aria-invalid:border-destructive aria-invalid:ring-[1px] aria-invalid:ring-destructive/20","dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40","hover:border-gray-6","disabled:cursor-not-allowed disabled:opacity-50",s[o],e&&"bg-gray-1",a)},n))}export{l as Textarea};
@@ -1,14 +0,0 @@
1
- import { Toast } from '@base-ui/react/toast';
2
- export { Toast as ToastPrimitive } from '@base-ui/react/toast';
3
- import React__default from 'react';
4
-
5
- declare const toastManager: ReturnType<typeof Toast.createToastManager>;
6
- declare const anchoredToastManager: ReturnType<typeof Toast.createToastManager>;
7
- type ToastPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
8
- interface ToastProviderProps extends Toast.Provider.Props {
9
- position?: ToastPosition;
10
- }
11
- declare function ToastProvider({ children, position, ...props }: ToastProviderProps): React__default.ReactElement;
12
- declare function AnchoredToastProvider({ children, ...props }: Toast.Provider.Props): React__default.ReactElement;
13
-
14
- export { AnchoredToastProvider, type ToastPosition, ToastProvider, type ToastProviderProps, anchoredToastManager, toastManager };
@@ -1 +0,0 @@
1
- "use client";import{a as d,b as l,c as p}from"../../chunk-7LRQ2WLZ.mjs";import{jsx as a,jsxs as i}from"react/jsx-runtime";import{Toast as t}from"@base-ui/react/toast";import{CircleAlertIcon as y,CircleCheckIcon as x,InfoIcon as u,LoaderCircleIcon as w,TriangleAlertIcon as h}from"lucide-react";import{cn as c}from"../../lib/utils";import{buttonVariants as f}from"./button";const g={error:y,info:u,loading:w,success:x,warning:h};function T(o){const e=o.startsWith("top")?"up":"down";return o.includes("center")?[e]:o.includes("left")?["left",e]:["right",e]}function b({position:o}){const{toasts:e}=t.useToastManager(),r=T(o);return a(t.Portal,{"data-slot":"toast-portal",children:a(t.Viewport,{className:c("fixed z-60 mx-auto flex w-[calc(100%-var(--toast-inset)*2)] max-w-90 [--toast-inset:--spacing(4)] sm:[--toast-inset:--spacing(8)]","data-[position*=top]:top-(--toast-inset)","data-[position*=bottom]:bottom-(--toast-inset)","data-[position*=left]:left-(--toast-inset)","data-[position*=right]:right-(--toast-inset)","data-[position*=center]:left-1/2 data-[position*=center]:-translate-x-1/2"),"data-position":o,"data-slot":"toast-viewport",children:e.map(s=>{const n=s.type?g[s.type]:null;return a(t.Root,{className:c("absolute z-[calc(9999-var(--toast-index))] h-(--toast-calc-height) w-full select-none rounded-3xl bg-popover not-dark:bg-clip-padding text-popover-foreground shadow-large [transition:transform_.5s_cubic-bezier(.22,1,.36,1),opacity_.5s,height_.15s]","data-[position*=right]:right-0 data-[position*=right]:left-auto","data-[position*=left]:right-auto data-[position*=left]:left-0","data-[position*=center]:right-0 data-[position*=center]:left-0","data-[position*=top]:top-0 data-[position*=top]:bottom-auto data-[position*=top]:origin-top","data-[position*=bottom]:top-auto data-[position*=bottom]:bottom-0 data-[position*=bottom]:origin-bottom","after:absolute after:left-0 after:h-[calc(var(--toast-gap)+1px)] after:w-full","data-[position*=top]:after:top-full","data-[position*=bottom]:after:bottom-full","[--toast-calc-height:var(--toast-frontmost-height,var(--toast-height))] [--toast-gap:--spacing(3)] [--toast-peek:--spacing(3)] [--toast-scale:calc(max(0,1-(var(--toast-index)*.1)))] [--toast-shrink:calc(1-var(--toast-scale))]","data-[position*=top]:[--toast-calc-offset-y:calc(var(--toast-offset-y)+var(--toast-index)*var(--toast-gap)+var(--toast-swipe-movement-y))]","data-[position*=bottom]:[--toast-calc-offset-y:calc(var(--toast-offset-y)*-1+var(--toast-index)*var(--toast-gap)*-1+var(--toast-swipe-movement-y))]","data-[position*=top]:transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)+(var(--toast-index)*var(--toast-peek))+(var(--toast-shrink)*var(--toast-calc-height))))_scale(var(--toast-scale))]","data-[position*=bottom]:transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--toast-peek))-(var(--toast-shrink)*var(--toast-calc-height))))_scale(var(--toast-scale))]","data-limited:opacity-0","data-expanded:h-(--toast-height)","data-position:data-expanded:transform-[translateX(var(--toast-swipe-movement-x))_translateY(var(--toast-calc-offset-y))]","data-[position*=top]:data-starting-style:transform-[translateY(calc(-100%-var(--toast-inset)))]","data-[position*=bottom]:data-starting-style:transform-[translateY(calc(100%+var(--toast-inset)))]","data-ending-style:opacity-0","data-ending-style:not-data-limited:not-data-swipe-direction:transform-[translateY(calc(100%+var(--toast-inset)))]","data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-100%-var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]","data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]","data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-100%-var(--toast-inset)))]","data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+100%+var(--toast-inset)))]","data-expanded:data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-100%-var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]","data-expanded:data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]","data-expanded:data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-100%-var(--toast-inset)))]","data-expanded:data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+100%+var(--toast-inset)))]"),"data-position":o,swipeDirection:r,toast:s,children:i(t.Content,{className:"pointer-events-auto flex items-start justify-start gap-1.5 overflow-hidden px-4 py-3 text-sm transition-opacity duration-250 data-behind:not-data-expanded:pointer-events-none data-behind:opacity-0 data-expanded:opacity-100",children:[i("div",{className:"flex min-w-0 grow gap-1.5 items-start",children:[n?a("div",{className:"flex shrink-0 items-center justify-center p-1 text-popover-foreground select-none [&>svg]:box-content [&>svg]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0","data-slot":"toast-icon",children:a(n,{className:"in-data-[type=loading]:animate-spin in-data-[type=error]:text-destructive in-data-[type=info]:text-info in-data-[type=success]:text-success in-data-[type=warning]:text-warning in-data-[type=loading]:opacity-80"})}):null,i("div",{className:"flex min-w-0 grow flex-col items-start self-center",children:[a(t.Title,{className:"text-sm leading-5 font-medium in-data-[type=error]:text-destructive in-data-[type=info]:text-info in-data-[type=success]:text-success in-data-[type=warning]:text-warning","data-slot":"toast-title"}),a(t.Description,{className:"text-sm text-muted-foreground","data-slot":"toast-description"})]})]}),s.actionProps?a(t.Action,{className:c(f({size:"xs",variant:"tertiary"}),"mt-2 shrink-0 sm:mt-0"),"data-slot":"toast-action",children:s.actionProps.children}):null]})},s.id)})})})}function P(){const{toasts:o}=t.useToastManager();return a(t.Portal,{"data-slot":"toast-portal-anchored",children:a(t.Viewport,{className:"outline-none","data-slot":"toast-viewport-anchored",children:o.map(e=>{var m,v;const r=e.type?g[e.type]:null,s=(m=e.data.tooltipStyle)!=null?m:!1,n=e.positionerProps;return n!=null&&n.anchor?a(t.Positioner,{className:"z-50 max-w-[min(--spacing(90),var(--available-width))]","data-slot":"toast-positioner",sideOffset:(v=n.sideOffset)!=null?v:4,toast:e,children:a(t.Root,{className:"relative rounded-3xl bg-popover not-dark:bg-clip-padding text-balance text-popover-foreground shadow-large transition-[scale,opacity] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0","data-slot":"toast-popup",toast:e,children:s?a(t.Content,{className:"pointer-events-auto flex items-start gap-1.5 px-4 py-3",children:a(t.Title,{className:"text-sm leading-5 font-medium","data-slot":"toast-title"})}):i(t.Content,{className:"pointer-events-auto flex items-start justify-start gap-1.5 overflow-hidden px-4 py-3 text-sm",children:[i("div",{className:"flex min-w-0 grow gap-1.5 items-start",children:[r?a("div",{className:"flex shrink-0 items-center justify-center p-1 text-popover-foreground select-none [&>svg]:box-content [&>svg]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0","data-slot":"toast-icon",children:a(r,{className:"in-data-[type=loading]:animate-spin in-data-[type=error]:text-destructive in-data-[type=info]:text-info in-data-[type=success]:text-success in-data-[type=warning]:text-warning in-data-[type=loading]:opacity-80"})}):null,i("div",{className:"flex min-w-0 grow flex-col items-start self-center",children:[a(t.Title,{className:"text-sm leading-5 font-medium in-data-[type=error]:text-destructive in-data-[type=info]:text-info in-data-[type=success]:text-success in-data-[type=warning]:text-warning","data-slot":"toast-title"}),a(t.Description,{className:"text-sm text-muted-foreground","data-slot":"toast-description"})]})]}),e.actionProps?a(t.Action,{className:c(f({size:"xs",variant:"tertiary"}),"mt-2 shrink-0 sm:mt-0"),"data-slot":"toast-action",children:e.actionProps.children}):null]})})},e.id):null})})})}const N=t.createToastManager(),_=t.createToastManager();function I(s){var n=s,{children:o,position:e="bottom-right"}=n,r=p(n,["children","position"]);return i(t.Provider,l(d({toastManager:N},r),{children:[o,a(b,{position:e})]}))}function M(r){var s=r,{children:o}=s,e=p(s,["children"]);return i(t.Provider,l(d({toastManager:_},e),{children:[o,a(P,{})]}))}export{M as AnchoredToastProvider,t as ToastPrimitive,I as ToastProvider,_ as anchoredToastManager,N as toastManager};
@@ -1,9 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
3
-
4
- declare function TooltipProvider({ delay, ...props }: Tooltip$1.Provider.Props): react_jsx_runtime.JSX.Element;
5
- declare function Tooltip({ ...props }: Tooltip$1.Root.Props): react_jsx_runtime.JSX.Element;
6
- declare function TooltipTrigger({ ...props }: Tooltip$1.Trigger.Props): react_jsx_runtime.JSX.Element;
7
- declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: Tooltip$1.Popup.Props & Pick<Tooltip$1.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): react_jsx_runtime.JSX.Element;
8
-
9
- export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
@@ -1 +0,0 @@
1
- "use client";import{a as o,b as l,c as d}from"../../chunk-7LRQ2WLZ.mjs";import{jsx as e,jsxs as T}from"react/jsx-runtime";import{Tooltip as i}from"@base-ui/react/tooltip";import{cn as g}from"../../lib/utils";function P(n){var r=n,{delay:t=0}=r,a=d(r,["delay"]);return e(i.Provider,o({"data-slot":"tooltip-provider",delay:t},a))}function u(a){var t=d(a,[]);return e(i.Root,o({"data-slot":"tooltip"},t))}function c(a){var t=d(a,[]);return e(i.Trigger,o({"data-slot":"tooltip-trigger"},t))}function x(v){var s=v,{className:t,side:a="top",sideOffset:n=4,align:r="center",alignOffset:p=0,children:f}=s,m=d(s,["className","side","sideOffset","align","alignOffset","children"]);return e(i.Portal,{children:e(i.Positioner,{align:r,alignOffset:p,side:a,sideOffset:n,className:"isolate z-50",children:T(i.Popup,l(o({"data-slot":"tooltip-content",className:g("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-lg bg-foreground px-3 py-1.5 text-xs text-background shadow-large has-data-[slot=kbd]:pr-1.5","data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","**:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-4xl","data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",t)},m),{children:[f,e(i.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:translate-x-[1.5px] data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:translate-x-[-1.5px] data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:translate-x-[-1.5px] data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:translate-x-[1.5px] data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]}))})})}export{u as Tooltip,x as TooltipContent,P as TooltipProvider,c as TooltipTrigger};
@@ -1,6 +0,0 @@
1
- import { RefObject } from 'react';
2
-
3
- type ClickOutsideEvent = MouseEvent | TouchEvent;
4
- declare function useClickOutside(refs: RefObject<HTMLElement | null>[], onClickOutside: (event: ClickOutsideEvent) => void): void;
5
-
6
- export { useClickOutside };
@@ -1 +0,0 @@
1
- "use client";import"../chunk-7LRQ2WLZ.mjs";import{useEffect as r}from"react";const s=["mousedown","touchstart"];function v(t,n){r(()=>{const i=e=>t.every(u=>{var c;return!((c=u.current)!=null&&c.contains(e))}),o=e=>{i(e.target)&&n(e)};return s.forEach(e=>{document.addEventListener(e,o)}),()=>{s.forEach(e=>{document.removeEventListener(e,o)})}},[t,n])}export{v as useClickOutside};
@@ -1,9 +0,0 @@
1
- declare function useCopyToClipboard({ timeout, onCopy, }?: {
2
- timeout?: number;
3
- onCopy?: () => void;
4
- }): {
5
- isCopied: boolean;
6
- copyToClipboard: (value: string) => Promise<boolean>;
7
- };
8
-
9
- export { useCopyToClipboard };
@@ -1 +0,0 @@
1
- "use client";import{d as a}from"../chunk-7LRQ2WLZ.mjs";import*as c from"react";function s(t){const e=document.createElement("textarea");e.value=t,e.setAttribute("readonly",""),e.style.position="fixed",e.style.opacity="0",e.style.pointerEvents="none",document.body.appendChild(e),e.focus(),e.select(),e.setSelectionRange(0,t.length);let o=!1;try{o=document.execCommand("copy")}catch(n){o=!1}return document.body.removeChild(e),o}function p({timeout:t=2e3,onCopy:e}={}){const[o,n]=c.useState(!1);return{isCopied:o,copyToClipboard:i=>a(this,null,function*(){if(typeof window=="undefined"||!i)return!1;let r=!1;if(navigator.clipboard.writeText)try{yield navigator.clipboard.writeText(i),r=!0}catch(l){r=s(i)}else r=s(i);return r?(n(!0),e&&e(),t!==0&&setTimeout(()=>{n(!1)},t),!0):!1})}}export{p as useCopyToClipboard};
@@ -1,19 +0,0 @@
1
- /**
2
- * Custom hook that creates a memoized event callback.
3
- * @template Args - An array of argument types for the event callback.
4
- * @template R - The return type of the event callback.
5
- * @param {(...args: Args) => R} fn - The callback function.
6
- * @returns {(...args: Args) => R} A memoized event callback function.
7
- * @public
8
- * @see [Documentation](https://usehooks-ts.com/react-hook/use-event-callback)
9
- * @example
10
- * ```tsx
11
- * const handleClick = useEventCallback((event) => {
12
- * // Handle the event here
13
- * });
14
- * ```
15
- */
16
- declare function useEventCallback<Args extends unknown[], R>(fn: (...args: Args) => R): (...args: Args) => R;
17
- declare function useEventCallback<Args extends unknown[], R>(fn: ((...args: Args) => R) | undefined): ((...args: Args) => R) | undefined;
18
-
19
- export { useEventCallback };
@@ -1 +0,0 @@
1
- import"../chunk-7LRQ2WLZ.mjs";import{useCallback as t,useRef as a}from"react";import{useIsomorphicLayoutEffect as o}from"./use-isomorphic-layout-effect";function f(e){const n=a(()=>{throw new Error("Cannot call an event handler while rendering.")});return o(()=>{n.current=e},[e]),t((...s)=>{var r;return(r=n.current)==null?void 0:r.call(n,...s)},[n])}export{f as useEventCallback};
@@ -1,8 +0,0 @@
1
- import { RefObject } from 'react';
2
-
3
- declare function useEventListener<K extends keyof MediaQueryListEventMap>(eventName: K, handler: (event: MediaQueryListEventMap[K]) => void, element: RefObject<MediaQueryList>, options?: boolean | AddEventListenerOptions): void;
4
- declare function useEventListener<K extends keyof WindowEventMap>(eventName: K, handler: (event: WindowEventMap[K]) => void, element?: undefined, options?: boolean | AddEventListenerOptions): void;
5
- declare function useEventListener<K extends keyof HTMLElementEventMap & keyof SVGElementEventMap, T extends Element = K extends keyof HTMLElementEventMap ? HTMLDivElement : SVGElement>(eventName: K, handler: ((event: HTMLElementEventMap[K]) => void) | ((event: SVGElementEventMap[K]) => void), element: RefObject<T>, options?: boolean | AddEventListenerOptions): void;
6
- declare function useEventListener<K extends keyof DocumentEventMap>(eventName: K, handler: (event: DocumentEventMap[K]) => void, element: RefObject<Document>, options?: boolean | AddEventListenerOptions): void;
7
-
8
- export { useEventListener };
@@ -1 +0,0 @@
1
- "use client";import"../chunk-7LRQ2WLZ.mjs";import{useEffect as r,useRef as a}from"react";import{useIsomorphicLayoutEffect as M}from"./use-isomorphic-layout-effect";function p(n,o,e,i){const v=a(o);M(()=>{v.current=o},[o]),r(()=>{var s;const t=(s=e==null?void 0:e.current)!=null?s:window;if(!(t&&t.addEventListener))return;const d=E=>{v.current(E)};return t.addEventListener(n,d,i),()=>{t.removeEventListener(n,d,i)}},[n,e,i])}export{p as useEventListener};
@@ -1,3 +0,0 @@
1
- declare function useIsClient(): boolean;
2
-
3
- export { useIsClient };
@@ -1 +0,0 @@
1
- "use client";import"../chunk-7LRQ2WLZ.mjs";import{useEffect as s,useState as n}from"react";function u(){const[e,t]=n(!1);return s(()=>{t(!0)},[]),e}export{u as useIsClient};
@@ -1,3 +0,0 @@
1
- declare function useIsMomoApp(): boolean;
2
-
3
- export { useIsMomoApp };
@@ -1 +0,0 @@
1
- "use client";import"../chunk-7LRQ2WLZ.mjs";import{useState as s,useEffect as o}from"react";function n(){const[t,e]=s(!1);return o(()=>(e(/MOMOAPP/i.test(navigator.userAgent)),()=>{e(!1)}),[]),t}export{n as useIsMomoApp};
@@ -1,7 +0,0 @@
1
- /**
2
- * Hook to detect if the current device has touch capabilities.
3
- * Safe for SSR - returns `false` during server-side rendering.
4
- */
5
- declare function useIsTouchDevice(): boolean;
6
-
7
- export { useIsTouchDevice };
@@ -1 +0,0 @@
1
- "use client";import"../chunk-7LRQ2WLZ.mjs";import{useEffect as n,useState as t}from"react";function u(){const[o,e]=t(!1);return n(()=>{e(typeof window=="undefined"?!1:"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)},[]),o}export{u as useIsTouchDevice};
@@ -1,5 +0,0 @@
1
- import { useEffect } from 'react';
2
-
3
- declare const useIsomorphicLayoutEffect: typeof useEffect;
4
-
5
- export { useIsomorphicLayoutEffect };
@@ -1 +0,0 @@
1
- import"../chunk-7LRQ2WLZ.mjs";import{useEffect as e,useLayoutEffect as o}from"react";const t=typeof window!="undefined"?o:e;export{t as useIsomorphicLayoutEffect};
@@ -1,5 +0,0 @@
1
- import { Dispatch, SetStateAction } from 'react';
2
-
3
- declare function useLocalStorage<T>(key: string, initialValue: T | (() => T)): [T, Dispatch<SetStateAction<T>>];
4
-
5
- export { useLocalStorage as default, useLocalStorage };
@@ -1 +0,0 @@
1
- "use client";import"../chunk-7LRQ2WLZ.mjs";import{useCallback as a,useEffect as u,useState as S}from"react";function T(e,t){if(typeof window=="undefined")return t;try{const o=window.localStorage.getItem(e);return o?JSON.parse(o):t}catch(o){return t}}function d(e,t){const[o,c]=S(()=>typeof t=="function"?t():t);u(()=>{const r=typeof t=="function"?t():t,n=T(e,r);c(n)},[e]);const f=a(r=>{try{c(n=>{const s=r instanceof Function?r(n):r;return typeof window!="undefined"&&window.localStorage.setItem(e,JSON.stringify(s)),s})}catch(n){console.warn(`Error setting localStorage key "${e}":`,n)}},[e]);return[o,f]}var g=d;export{g as default,d as useLocalStorage};
@@ -1,3 +0,0 @@
1
- declare function useIsMobile(): boolean;
2
-
3
- export { useIsMobile };
@@ -1 +0,0 @@
1
- import"../chunk-7LRQ2WLZ.mjs";import*as i from"react";const e=768;function d(){const[s,n]=i.useState(void 0);return i.useEffect(()=>{const t=window.matchMedia(`(max-width: ${e-1}px)`),o=()=>{n(window.innerWidth<e)};return t.addEventListener("change",o),n(window.innerWidth<e),()=>{t.removeEventListener("change",o)}},[]),!!s}export{d as useIsMobile};
@@ -1,11 +0,0 @@
1
- interface WindowSize {
2
- width: number | undefined;
3
- height: number | undefined;
4
- }
5
- /**
6
- * Hook that returns the current window dimensions.
7
- * Safe for SSR - returns `undefined` for width and height during server-side rendering.
8
- */
9
- declare function useWindowSize(): WindowSize;
10
-
11
- export { useWindowSize as default, useWindowSize };
@@ -1 +0,0 @@
1
- "use client";import"../chunk-7LRQ2WLZ.mjs";import{useState as t,useEffect as d}from"react";function o(){const[i,n]=t({width:void 0,height:void 0});return d(()=>{function e(){n({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),i}var w=o;export{w as default,o as useWindowSize};
@@ -1,6 +0,0 @@
1
- /**
2
- * Chuẩn hoá `ratio` từ CMS (số hoặc chuỗi `"16/9"`) thành một số dương cho `AspectRatio` / layout.
3
- */
4
- declare function convertMediaRatio(ratio: string | number | undefined): number;
5
-
6
- export { convertMediaRatio };
@@ -1 +0,0 @@
1
- import"../chunk-7LRQ2WLZ.mjs";const t=1.7777777777777777;function i(e){if(e===void 0)return t;if(typeof e=="string"){const n=e.split("/").map(Number);if(n.length===2&&n.every(u=>!Number.isNaN(u))&&n[1]!==0)return n[0]/n[1];const r=Number(e);return Number.isFinite(r)&&r>0?r:t}return e>0?e:t}export{i as convertMediaRatio};
@@ -1,6 +0,0 @@
1
- /**
2
- * Best-effort plain text for `alt` and similar when CMS fields may contain HTML.
3
- */
4
- declare function plainTextFromHtml(html: string, maxLength?: number): string;
5
-
6
- export { plainTextFromHtml };
@@ -1 +0,0 @@
1
- import"../chunk-7LRQ2WLZ.mjs";function n(e,r=160){const t=e.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim();return t.length<=r?t:`${t.slice(0,r)}\u2026`}export{n as plainTextFromHtml};
@@ -1,13 +0,0 @@
1
- interface BuildQrCodeImageUrlOptions {
2
- /** Kích thước ảnh vuông (pixel). Mặc định 240. */
3
- size?: number;
4
- /** Nếu có, trả về URL này thay vì tạo từ `qrLink`. */
5
- qrImage?: string;
6
- }
7
- /**
8
- * Trả về URL ảnh QR để hiển thị (`<img src={...} />`).
9
- * Mặc định dùng dịch vụ công khai; có thể truyền `qrImage` để dùng ảnh tự host.
10
- */
11
- declare function buildQrCodeImageUrl(qrLink: string, options?: BuildQrCodeImageUrlOptions): string;
12
-
13
- export { type BuildQrCodeImageUrlOptions, buildQrCodeImageUrl };
@@ -1 +0,0 @@
1
- import"../chunk-7LRQ2WLZ.mjs";function g(d,e){var a;if(e!=null&&e.qrImage)return e.qrImage;const r=(a=e==null?void 0:e.size)!=null?a:240;return`https://api.qrserver.com/v1/create-qr-code/?size=${r}x${r}&data=${encodeURIComponent(d)}`}export{g as buildQrCodeImageUrl};
@@ -1,9 +0,0 @@
1
- /**
2
- * Scrolls the viewport so the element matching `selector` sits near the top,
3
- * minus `offset` pixels. No-op if the element is missing.
4
- *
5
- * **Chỉ dùng trên client** (gọi từ `onClick`, `useEffect`, v.v.) — không gọi trong RSC.
6
- */
7
- declare function scrollToSelector(selector: string, offset?: number): void;
8
-
9
- export { scrollToSelector };
@@ -1 +0,0 @@
1
- import"../chunk-7LRQ2WLZ.mjs";function r(e,t=0){if(typeof document=="undefined")return;const o=document.querySelector(e);if(!o)return;const n=o.getBoundingClientRect().top+window.scrollY-t;window.scrollTo({top:n,behavior:"smooth"})}export{r as scrollToSelector};
@@ -1,6 +0,0 @@
1
- /** Background classes for initials avatars (MoMo palette tokens, cycles by index). */
2
- declare const TESTIMONIAL_AVATAR_FALLBACK_BACKGROUNDS: readonly ["bg-pink-7", "bg-blue-7", "bg-green-7", "bg-amber-7", "bg-purple-7", "bg-teal-7", "bg-red-7", "bg-primary"];
3
- declare function getInitialsFromName(name: string): string;
4
- declare function getTestimonialAvatarColorClass(index: number): string;
5
-
6
- export { TESTIMONIAL_AVATAR_FALLBACK_BACKGROUNDS, getInitialsFromName, getTestimonialAvatarColorClass };
@@ -1 +0,0 @@
1
- import"../chunk-7LRQ2WLZ.mjs";const l=["bg-pink-7","bg-blue-7","bg-green-7","bg-amber-7","bg-purple-7","bg-teal-7","bg-red-7","bg-primary"];function a(e){var r,g,o,i;const t=e.trim().split(/\s+/).filter(Boolean);if(t.length>=2){const n=(r=t[t.length-2])==null?void 0:r[0],s=(g=t[t.length-1])==null?void 0:g[0];return`${n!=null?n:""}${s!=null?s:""}`.toUpperCase()}return((i=(o=t[0])==null?void 0:o[0])!=null?i:"").toUpperCase()}function p(e){var r;const t=l;return(r=t[e%t.length])!=null?r:"bg-primary"}export{l as TESTIMONIAL_AVATAR_FALLBACK_BACKGROUNDS,a as getInitialsFromName,p as getTestimonialAvatarColorClass};
@@ -1,6 +0,0 @@
1
- import { ClassValue } from 'clsx';
2
-
3
- declare function cn(...inputs: ClassValue[]): string;
4
- declare function stripHtml(html?: string): string;
5
-
6
- export { cn, stripHtml };
@@ -1 +0,0 @@
1
- import"../chunk-7LRQ2WLZ.mjs";import{clsx as r}from"clsx";import{extendTailwindMerge as t}from"tailwind-merge";const n=t({extend:{classGroups:{"font-size":[{text:["tiny"]}]}},override:{conflictingClassGroups:{"font-size":[]}}});function p(...e){return n(r(e))}function o(e){return!e||typeof e!="string"?"":e.replace(/<[^>]*>/g,"").replace(/&nbsp;/g," ").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").trim()}export{p as cn,o as stripHtml};