@v-miniapp/ui-react 1.0.47 → 1.0.60

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 (254) hide show
  1. package/dist/components/app/app.d.ts +17 -0
  2. package/dist/components/app/bottom-tab-bar-layout/hook.d.ts +21 -0
  3. package/dist/components/app/bottom-tab-bar-layout/store.d.ts +13 -0
  4. package/dist/components/app/bottom-tab-bar-layout/type.d.ts +13 -0
  5. package/dist/components/app/data-theme.d.ts +8 -0
  6. package/dist/components/app/index.d.ts +9 -18
  7. package/dist/components/app/navigation-bar-layout/hook.d.ts +17 -0
  8. package/dist/components/app/navigation-bar-layout/store.d.ts +13 -0
  9. package/dist/components/app/navigation-bar-layout/type.d.ts +7 -0
  10. package/dist/components/app/page-layout/hook.d.ts +21 -0
  11. package/dist/components/app/page-layout/store.d.ts +13 -0
  12. package/dist/components/app/page-layout/type.d.ts +8 -0
  13. package/dist/components/app/type.d.ts +27 -0
  14. package/dist/components/calendar/default-render.d.ts +1 -1
  15. package/dist/components/calendar/utils.d.ts +1 -1
  16. package/dist/components/input-wrapper/input-wrapper.d.ts +2 -2
  17. package/dist/components/layout/page.d.ts +8 -1
  18. package/dist/external/index.js +11456 -8093
  19. package/dist/external/styles.css +1 -1
  20. package/dist/index.d.ts +4 -1
  21. package/dist/index.js +3787 -3991
  22. package/dist/styles.css +1 -1
  23. package/dist/utils/event-emitter.d.ts +4 -0
  24. package/dist-storybook/assets/App-CJxOxRXd.js +93 -0
  25. package/dist-storybook/assets/{Color-AVL7NMMY-OD8SQvXt.js → Color-AVL7NMMY-DwohVA43.js} +1 -1
  26. package/dist-storybook/assets/DEEPLINK-B5vUshJ4.js +33 -0
  27. package/dist-storybook/assets/{DocsRenderer-PQXLIZUC-D8kbgtPd.js → DocsRenderer-PQXLIZUC-vNsl3A7z.js} +2 -2
  28. package/dist-storybook/assets/EVENTS-DIl-sE2t.js +65 -0
  29. package/dist-storybook/assets/GETTING_STARTED-CR4dG_o7.js +62 -0
  30. package/dist-storybook/assets/GETTING_STARTED-CS2BpDsP.js +80 -0
  31. package/dist-storybook/assets/GETTING_STARTED-CtonLhRi.js +64 -0
  32. package/dist-storybook/assets/{INFINITE_SCROLL-O36i5W8i.js → INFINITE_SCROLL-BerukJIr.js} +1 -1
  33. package/dist-storybook/assets/LocalesProvider-CehS9yzW.js +53 -0
  34. package/dist-storybook/assets/MIGRATE_DARKMODE_TO_THEME-CRf-7Wcz.js +107 -0
  35. package/dist-storybook/assets/{MIGRATION_GUIDE-Dn2gFk5v.js → MIGRATION_GUIDE-CRIHuXpT.js} +3 -3
  36. package/dist-storybook/assets/OVERVIEW-DayETux4.js +51 -0
  37. package/dist-storybook/assets/Router-CGsO5Wd_.js +71 -0
  38. package/dist-storybook/assets/{TAILWIND_INTEGRATION-CVrohRXO.js → TAILWIND_INTEGRATION-RPvFP-GI.js} +1 -1
  39. package/dist-storybook/assets/THEME-C-pA_uq_.js +103 -0
  40. package/dist-storybook/assets/_baseClone-4nOrhHpR.js +1 -0
  41. package/dist-storybook/assets/alert-D3VdqAYm.js +1 -0
  42. package/dist-storybook/assets/{alert.stories-XyvS4WTm.js → alert.stories-CFBhdabd.js} +3 -3
  43. package/dist-storybook/assets/app-B__CxZQv.js +1 -0
  44. package/dist-storybook/assets/avatar-BVV1WSnD.js +1 -0
  45. package/dist-storybook/assets/{avatar.stories-glTjw5Kd.js → avatar.stories-D0RA2Mhh.js} +6 -6
  46. package/dist-storybook/assets/{axe-B8nlqekz.js → axe-Cj9fkEY9.js} +1 -1
  47. package/dist-storybook/assets/badge-DLt8CmDs.js +1 -0
  48. package/dist-storybook/assets/{badge.stories-CeNmmdtv.js → badge.stories-DhVKBE64.js} +3 -3
  49. package/dist-storybook/assets/{blocks-CpOj9FQ_.js → blocks-D4qvS4eZ.js} +3 -3
  50. package/dist-storybook/assets/{bottom-tab-bar-BsPd0FD7.js → bottom-tab-bar-UaYvPAic.js} +1 -1
  51. package/dist-storybook/assets/{bottom-tab-bar.stories-BG1ee2eN.js → bottom-tab-bar.stories--7Qh-68J.js} +3 -3
  52. package/dist-storybook/assets/button-CbLEqALK.js +1 -0
  53. package/dist-storybook/assets/{button.stories-3d_T0h_Z.js → button.stories-DgRH6oVV.js} +3 -3
  54. package/dist-storybook/assets/calendar-C7tiySn0.js +1 -0
  55. package/dist-storybook/assets/{calendar.stories-DEleEKoa.js → calendar.stories-B0K_T9ak.js} +3 -3
  56. package/dist-storybook/assets/carousel-C1nQGnJZ.js +37 -0
  57. package/dist-storybook/assets/{carousel.stories-DY9nDa3M.js → carousel.stories-C5d6yLzd.js} +3 -3
  58. package/dist-storybook/assets/checkbox-Bs8ghsWP.js +1 -0
  59. package/dist-storybook/assets/{checkbox.stories-BY8W9TRC.js → checkbox.stories-CG74gIlt.js} +3 -3
  60. package/dist-storybook/assets/chip-D4_ukvFv.js +1 -0
  61. package/dist-storybook/assets/{chip.stories-CXh30Tdq.js → chip.stories-D0908ZyT.js} +3 -3
  62. package/dist-storybook/assets/{date-Ci5dIit0.js → date-C1W0DfQy.js} +1 -1
  63. package/dist-storybook/assets/date-field-range-DSAQp9qR.js +1 -0
  64. package/dist-storybook/assets/date-field.stories-Dx6-qeWT.js +129 -0
  65. package/dist-storybook/assets/date-picker--PiU9sOL.js +1 -0
  66. package/dist-storybook/assets/{date-picker.stories-DUaL7sft.js → date-picker.stories-Bahq3f1W.js} +3 -3
  67. package/dist-storybook/assets/dialog-8K5u-kre.js +1 -0
  68. package/dist-storybook/assets/{dialog.stories-BtQMDA-1.js → dialog.stories-BxYc78Eo.js} +3 -3
  69. package/dist-storybook/assets/{chip-zY6gJxDk.js → dropdown-BeoO7m-R.js} +2 -2
  70. package/dist-storybook/assets/{dropdown.stories-DF69os0J.js → dropdown.stories-Bfhg63tZ.js} +3 -3
  71. package/dist-storybook/assets/{embla-carousel-react.esm-CCQjHA-d.js → embla-carousel-react.esm-Pp2OIUrN.js} +1 -1
  72. package/dist-storybook/assets/icon-CgGksgRS.js +1 -0
  73. package/dist-storybook/assets/{icon.stories-Ch36FMIn.js → icon.stories-qg8UAHBM.js} +3 -3
  74. package/dist-storybook/assets/iframe-BKfReaAn.css +1 -0
  75. package/dist-storybook/assets/{iframe-CLEfhyJc.js → iframe-C0PGuV5s.js} +42 -42
  76. package/dist-storybook/assets/image-BdsCB1je.js +9 -0
  77. package/dist-storybook/assets/{image.stories-CJPB43ys.js → image.stories-sQtCaoL2.js} +3 -3
  78. package/dist-storybook/assets/{index-CaMbLGUB.js → index-1AHvPexM.js} +1 -1
  79. package/dist-storybook/assets/index-BLzgbpm2.js +1 -0
  80. package/dist-storybook/assets/{index-DRIh_SUo.js → index-DWjPAWoJ.js} +1 -1
  81. package/dist-storybook/assets/{index-7xlKHfV2.js → index-SzFZQQjs.js} +1 -1
  82. package/dist-storybook/assets/input-wrapper-DkEl0Eih.js +1 -0
  83. package/dist-storybook/assets/{label-fI1oWVKU.js → label-CHVpMhb5.js} +1 -1
  84. package/dist-storybook/assets/{label.stories-C3xDUHd-.js → label.stories-CCtGPDrS.js} +3 -3
  85. package/dist-storybook/assets/{navigation-bar-CiGSH7u8.js → navigation-bar-TpF0DSXB.js} +2 -2
  86. package/dist-storybook/assets/{navigation-bar.stories-BvGp7uJf.js → navigation-bar.stories-CNXAxMYL.js} +3 -3
  87. package/dist-storybook/assets/number-field-CvCF5adO.js +1 -0
  88. package/dist-storybook/assets/{number-field.stories-B_Bj8RqE.js → number-field.stories-Dsb_eChm.js} +3 -3
  89. package/dist-storybook/assets/omit-D04qL5V_.js +1 -0
  90. package/dist-storybook/assets/option-item-Bmby544G.js +1 -0
  91. package/dist-storybook/assets/{option-item.stories-BjtolfPz.js → option-item.stories-ClUj8qVT.js} +3 -3
  92. package/dist-storybook/assets/pagination-MBP1YLhT.js +1 -0
  93. package/dist-storybook/assets/{pagination.stories-CrGsYeRw.js → pagination.stories-C9j6mE5z.js} +4 -4
  94. package/dist-storybook/assets/proxy-edvPwIiD.js +1 -0
  95. package/dist-storybook/assets/radio-DRPO7cjx.js +1 -0
  96. package/dist-storybook/assets/{radio.stories-BEG-zTwI.js → radio.stories-D8_YUTw1.js} +3 -3
  97. package/dist-storybook/assets/rating-CTv8C1tH.js +1 -0
  98. package/dist-storybook/assets/{rating.stories-Dwk8Ov3Q.js → rating.stories-BIftLeu2.js} +3 -3
  99. package/dist-storybook/assets/{react-18-4mLDkQmf.js → react-18-CacBUmwb.js} +1 -1
  100. package/dist-storybook/assets/{react-mAVd1wAc.js → react-zqqxT5R_.js} +1 -1
  101. package/dist-storybook/assets/search-field-CophTGGH.js +1 -0
  102. package/dist-storybook/assets/{search-field.stories-BnsT36yY.js → search-field.stories-D1okdN8e.js} +3 -3
  103. package/dist-storybook/assets/section-content-dVOJuOaN.js +1 -0
  104. package/dist-storybook/assets/{section.stories-B5IhLkbG.js → section.stories-Cq5CY978.js} +3 -3
  105. package/dist-storybook/assets/sheet-footer-BL2JAvmb.js +1 -0
  106. package/dist-storybook/assets/{sheet.stories-COzxyiqj.js → sheet.stories-DPcC0I5i.js} +3 -3
  107. package/dist-storybook/assets/skeleton-CmGRbWqE.js +1 -0
  108. package/dist-storybook/assets/{skeleton.stories-B71MlMyi.js → skeleton.stories-CD3J1XrJ.js} +3 -3
  109. package/dist-storybook/assets/{store-D2RudmNr.js → store-BmYgrUro.js} +5 -5
  110. package/dist-storybook/assets/switch-Cc-NvT4X.js +1 -0
  111. package/dist-storybook/assets/{switch.stories-DMBBwZef.js → switch.stories-C5SDbdGL.js} +3 -3
  112. package/dist-storybook/assets/{tab-bar-DZ3oOU50.js → tab-bar-DTyg7tFP.js} +1 -1
  113. package/dist-storybook/assets/{tab-bar.stories-Bp9w6nc3.js → tab-bar.stories-zKrihgXo.js} +3 -3
  114. package/dist-storybook/assets/text-area-WRb8Dkvn.js +1 -0
  115. package/dist-storybook/assets/{text-area.stories-BZ3HXtij.js → text-area.stories-3Z574UAD.js} +3 -3
  116. package/dist-storybook/assets/text-field-DrODy0yz.js +1 -0
  117. package/dist-storybook/assets/{text-field.stories-vSXYvs0U.js → text-field.stories-DzjpcKin.js} +3 -3
  118. package/dist-storybook/assets/toast-provider-ChNGFQlt.js +9 -0
  119. package/dist-storybook/assets/{toast.stories-DQKbk7dO.js → toast.stories-Zj4qfKO_.js} +1 -1
  120. package/dist-storybook/assets/tooltip-CrxOWTXS.js +1 -0
  121. package/dist-storybook/assets/{tooltip.stories-wuthZ3Sv.js → tooltip.stories-DEnYdL1d.js} +3 -3
  122. package/dist-storybook/assets/typography-BcLxefPi.js +1 -0
  123. package/dist-storybook/assets/{typography.stories-DD9HLY16.js → typography.stories-DWxFgTz3.js} +3 -3
  124. package/dist-storybook/assets/{uploader.stories-sModULvT.js → uploader.stories-DQN8yjt-.js} +3 -3
  125. package/dist-storybook/assets/use-app-pause-CyjeIEPG.js +21 -0
  126. package/dist-storybook/assets/use-app-resume-DntO6Rkm.js +21 -0
  127. package/dist-storybook/assets/use-bottom-tab-bar-Da7gjw6y.js +49 -0
  128. package/dist-storybook/assets/use-custom-icon-event-BEYPYrKY.js +26 -0
  129. package/dist-storybook/assets/use-did-hide-Do-KOSzV.js +30 -0
  130. package/dist-storybook/assets/use-did-show-Bv9k7DdG.js +30 -0
  131. package/dist-storybook/assets/use-histories-Ci1HfRe-.js +30 -0
  132. package/dist-storybook/assets/use-history-CkVE1jRy.js +33 -0
  133. package/dist-storybook/assets/use-language-Bg-LzpzQ.js +46 -0
  134. package/dist-storybook/assets/use-load-more-eaC8W6Cc.js +42 -0
  135. package/dist-storybook/assets/use-location-BMrQnhPi.js +39 -0
  136. package/dist-storybook/assets/use-navigate-BwwmhToy.js +36 -0
  137. package/dist-storybook/assets/use-navigation-bar-DzgWeTpM.js +42 -0
  138. package/dist-storybook/assets/use-navigation-type-DNvXTqYH.js +27 -0
  139. package/dist-storybook/assets/use-page-layout-BA2HvjAQ.js +37 -0
  140. package/dist-storybook/assets/use-page-scroll-D_gjlV-S.js +42 -0
  141. package/dist-storybook/assets/use-pull-to-refresh-SZfswIA6.js +38 -0
  142. package/dist-storybook/assets/use-settings-changed-D2gdx5rD.js +30 -0
  143. package/dist-storybook/assets/use-translate-BTC2AQ0k.js +59 -0
  144. package/dist-storybook/assets/{visibility-sensor-huP-8j4n.js → visibility-sensor-FN9n9CLs.js} +1 -1
  145. package/dist-storybook/iframe.html +2 -2
  146. package/dist-storybook/index.json +1 -1
  147. package/dist-storybook/project.json +1 -1
  148. package/dist-storybook/sb-addons/a11y-2/manager-bundle.js +2 -2
  149. package/dist-storybook/sb-addons/docs-1/manager-bundle.js +2 -2
  150. package/dist-storybook/sb-addons/storybook-build-3/manager-bundle.js +1 -1
  151. package/dist-storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +4 -4
  152. package/dist-storybook/stories-data.json +152 -122
  153. package/package.json +3 -1
  154. package/dist/components/app/components/app.d.ts +0 -13
  155. package/dist/components/app/components/link.d.ts +0 -8
  156. package/dist/components/app/components/navigation-analytic.d.ts +0 -2
  157. package/dist/components/app/components/pages-render.d.ts +0 -2
  158. package/dist/components/app/context/location-key.d.ts +0 -4
  159. package/dist/components/app/hooks/use-app-pause.d.ts +0 -1
  160. package/dist/components/app/hooks/use-app-resume.d.ts +0 -1
  161. package/dist/components/app/hooks/use-app-state.d.ts +0 -7
  162. package/dist/components/app/hooks/use-bottom-tab-bar.d.ts +0 -13
  163. package/dist/components/app/hooks/use-did-hide.d.ts +0 -1
  164. package/dist/components/app/hooks/use-did-show.d.ts +0 -1
  165. package/dist/components/app/hooks/use-history.d.ts +0 -2
  166. package/dist/components/app/hooks/use-location.d.ts +0 -1
  167. package/dist/components/app/hooks/use-navigate.d.ts +0 -1
  168. package/dist/components/app/hooks/use-navigation-bar.d.ts +0 -12
  169. package/dist/components/app/hooks/use-navigation-type.d.ts +0 -1
  170. package/dist/components/app/hooks/use-page-config.d.ts +0 -1
  171. package/dist/components/app/hooks/use-page-layout.d.ts +0 -14
  172. package/dist/components/app/hooks/use-page-scroll.d.ts +0 -5
  173. package/dist/components/app/hooks/use-page-state.d.ts +0 -6
  174. package/dist/components/app/stores/app.d.ts +0 -24
  175. package/dist/components/app/stores/app.selector.d.ts +0 -11
  176. package/dist/components/app/types/app.d.ts +0 -65
  177. package/dist/components/app/types/navigation.d.ts +0 -30
  178. package/dist/components/app/utils/animation.d.ts +0 -2
  179. package/dist/components/app/utils/data-theme.d.ts +0 -4
  180. package/dist/components/app/utils/history.d.ts +0 -7
  181. package/dist/hooks/use-analytic.d.ts +0 -1
  182. package/dist/hooks/use-is-using-app.d.ts +0 -1
  183. package/dist/hooks/use-is-using-locales.d.ts +0 -1
  184. package/dist/locales/defaultResources/en.d.ts +0 -27
  185. package/dist/locales/defaultResources/vi.d.ts +0 -27
  186. package/dist/locales/fns.d.ts +0 -6
  187. package/dist/locales/hooks.d.ts +0 -9
  188. package/dist/locales/index.d.ts +0 -4
  189. package/dist/locales/provider.d.ts +0 -6
  190. package/dist/locales/store.d.ts +0 -13
  191. package/dist/locales/types.d.ts +0 -37
  192. package/dist/locales/utils.d.ts +0 -2
  193. package/dist-storybook/assets/ANIMATION-DLCDVwPI.js +0 -99
  194. package/dist-storybook/assets/APP_FRAMEWORK-B9Mrudgl.js +0 -197
  195. package/dist-storybook/assets/BOTTOM_TAB_BAR-Bgfy-nnv.js +0 -175
  196. package/dist-storybook/assets/CUSTOM_ERROR_BOUNDARY-G_i_6aho.js +0 -250
  197. package/dist-storybook/assets/GETTING_STARTED-Bf6ENjZo.js +0 -77
  198. package/dist-storybook/assets/KEEP_ALIVE-CicDtVw6.js +0 -126
  199. package/dist-storybook/assets/LOCALE-D_43J3RD.js +0 -465
  200. package/dist-storybook/assets/MOBILE_BEHAVIOURS-D5jOxNiz.js +0 -177
  201. package/dist-storybook/assets/PAGE_LAYOUT-C0sW9iZo.js +0 -192
  202. package/dist-storybook/assets/ROUTING_NAVIGATION-Bpj_mu5r.js +0 -335
  203. package/dist-storybook/assets/THEME_MODE-Sc8cgznR.js +0 -111
  204. package/dist-storybook/assets/_setToString-CjYxL0rS.js +0 -1
  205. package/dist-storybook/assets/alert-abKmNYys.js +0 -1
  206. package/dist-storybook/assets/avatar-B-jvPnzm.js +0 -1
  207. package/dist-storybook/assets/badge-Cc9u7jBX.js +0 -1
  208. package/dist-storybook/assets/button-GtWXUngt.js +0 -1
  209. package/dist-storybook/assets/calendar-CJ5_NxYx.js +0 -1
  210. package/dist-storybook/assets/carousel-sbzGq2WF.js +0 -37
  211. package/dist-storybook/assets/checkbox-CMpJJxvm.js +0 -1
  212. package/dist-storybook/assets/classname-DoNrELT0.js +0 -1
  213. package/dist-storybook/assets/date-field.stories-CerGwXZy.js +0 -129
  214. package/dist-storybook/assets/date-picker-BCIW_1-h.js +0 -1
  215. package/dist-storybook/assets/icon-TJ3FHxUI.js +0 -1
  216. package/dist-storybook/assets/iframe-yMKl6hJA.css +0 -1
  217. package/dist-storybook/assets/image-D6Yo4ht9.js +0 -9
  218. package/dist-storybook/assets/input-wrapper-D_9hAdHZ.js +0 -1
  219. package/dist-storybook/assets/number-field-DNj4myBV.js +0 -1
  220. package/dist-storybook/assets/omit-CStFhbPt.js +0 -1
  221. package/dist-storybook/assets/option-item-BloohEvW.js +0 -1
  222. package/dist-storybook/assets/pagination-Dcazh6R_.js +0 -1
  223. package/dist-storybook/assets/pick-DbIUGM9R.js +0 -1
  224. package/dist-storybook/assets/radio-t2E8E0Oc.js +0 -1
  225. package/dist-storybook/assets/rating-DsULci27.js +0 -1
  226. package/dist-storybook/assets/search-field-CuiHMy7j.js +0 -1
  227. package/dist-storybook/assets/section-content-pkGNuEs6.js +0 -1
  228. package/dist-storybook/assets/skeleton-Dn8rwbgX.js +0 -1
  229. package/dist-storybook/assets/store-DxAqU1JB.js +0 -1
  230. package/dist-storybook/assets/switch-BziC1t_8.js +0 -1
  231. package/dist-storybook/assets/text-area-CAmJ2yms.js +0 -1
  232. package/dist-storybook/assets/text-field-CjrgfYOZ.js +0 -1
  233. package/dist-storybook/assets/toast-provider-B9k1NBG6.js +0 -9
  234. package/dist-storybook/assets/tooltip-VnA8Hy0S.js +0 -1
  235. package/dist-storybook/assets/typography-DoV67nnS.js +0 -1
  236. package/dist-storybook/assets/use-app-pause-BQYQ2_kc.js +0 -29
  237. package/dist-storybook/assets/use-app-resume-BHDCAORn.js +0 -29
  238. package/dist-storybook/assets/use-custom-icon-event-BCGSFwaE.js +0 -29
  239. package/dist-storybook/assets/use-did-hide-Cosc0Bts.js +0 -48
  240. package/dist-storybook/assets/use-did-show-CTWe5NYk.js +0 -49
  241. package/dist-storybook/assets/use-histories-CAcE6nVz.js +0 -50
  242. package/dist-storybook/assets/use-history-FuEbPpap.js +0 -67
  243. package/dist-storybook/assets/use-location-CdUC1tic.js +0 -56
  244. package/dist-storybook/assets/use-navigate-DP9paY1K.js +0 -84
  245. package/dist-storybook/assets/use-navigation-type-BWVxMUtZ.js +0 -44
  246. package/dist-storybook/assets/use-page-config-5u8OF-8L.js +0 -48
  247. package/dist-storybook/assets/use-page-scroll-nPQcBn5B.js +0 -69
  248. package/dist-storybook/assets/use-page-state-CULl52gw.js +0 -79
  249. package/dist-storybook/assets/use-settings-changed-2GP5ZsJS.js +0 -29
  250. /package/dist/components/app/{components/bottom-tab-bar.d.ts → bottom-tab-bar-layout/index.d.ts} +0 -0
  251. /package/dist/components/app/{components/navigation-bar.d.ts → navigation-bar-layout/index.d.ts} +0 -0
  252. /package/dist/components/app/{components/page-layout.d.ts → page-layout/index.d.ts} +0 -0
  253. /package/dist/{components/app/hooks → hooks}/use-custom-icon-event.d.ts +0 -0
  254. /package/dist/{components/app/hooks → hooks}/use-settings-changed.d.ts +0 -0
@@ -0,0 +1,17 @@
1
+ import { ComponentPropsWithRef, FC, ReactNode } from 'react';
2
+ import { ILocalesConfig, IResourceKey, ITemplateParams } from '@v-miniapp/locale';
3
+ import { IAppConfig } from './type';
4
+ export type IAppConfigContext = {
5
+ t: (key: IResourceKey, params?: ITemplateParams) => ReactNode;
6
+ };
7
+ export type IAppConfigFunction = (context: IAppConfigContext) => IAppConfig;
8
+ export type IAppProps = ComponentPropsWithRef<'div'> & {
9
+ config?: IAppConfig | IAppConfigFunction;
10
+ localesConfig?: ILocalesConfig;
11
+ };
12
+ type IAppComponent = FC<IAppProps> & {
13
+ isUsingApp: boolean;
14
+ isUsingRouter: boolean;
15
+ };
16
+ export declare const App: IAppComponent;
17
+ export {};
@@ -0,0 +1,21 @@
1
+ import { IAppBottomTabBarState, IPageBottomTabBarState } from './type';
2
+ export declare const useBottomTabBar: () => {
3
+ state: Partial<Omit<import('../..').IBottomTabBarProps, "items" | "activeId">> & {
4
+ items: Array<import('../..').IBottomTabBarItem & {
5
+ path: string;
6
+ params?: Record<string, string>;
7
+ }>;
8
+ hidden?: boolean;
9
+ } & {
10
+ bottomTabBarId?: string;
11
+ };
12
+ pageState: import('./type').IPageBottomTabBarConfig;
13
+ appState: import('./type').IAppBottomTabBarConfig;
14
+ hidden: boolean;
15
+ setPageBottomTabBar: (bottomTabBar: Partial<IPageBottomTabBarState>) => void;
16
+ setAppBottomTabBar: (bottomTabBar: Partial<IAppBottomTabBarState>) => void;
17
+ removePageBottomTabBar: () => void;
18
+ removeAppBottomTabBar: () => void;
19
+ resetPageBottomTabBar: () => void;
20
+ resetAppBottomTabBar: () => void;
21
+ };
@@ -0,0 +1,13 @@
1
+ import { IAppBottomTabBarConfig, IAppBottomTabBarState, IPageBottomTabBarConfig, IPageBottomTabBarState } from './type';
2
+ type IBottomTabBarState = {
3
+ pageConfigs: Record<string, IPageBottomTabBarConfig>;
4
+ appConfig: IAppBottomTabBarConfig;
5
+ pages: Record<string, IPageBottomTabBarState>;
6
+ app: IAppBottomTabBarState;
7
+ setPage: (key: string, bottomTabBar: Partial<IPageBottomTabBarState>) => void;
8
+ setApp: (bottomTabBar: Partial<IAppBottomTabBarState>) => void;
9
+ resetPage: (key: string, pagePath: string) => void;
10
+ resetApp: () => void;
11
+ };
12
+ export declare const useBottomTabBarLayoutStore: import('zustand').UseBoundStore<import('zustand').StoreApi<IBottomTabBarState>>;
13
+ export {};
@@ -0,0 +1,13 @@
1
+ import { IBottomTabBarItem, IBottomTabBarProps } from '../../bottom-tab-bar';
2
+ export type IAppBottomTabBarConfig = Partial<Omit<IBottomTabBarProps, 'activeId' | 'items'>> & {
3
+ items: Array<IBottomTabBarItem & {
4
+ path: string;
5
+ params?: Record<string, string>;
6
+ }>;
7
+ hidden?: boolean;
8
+ };
9
+ export type IPageBottomTabBarConfig = IAppBottomTabBarConfig & {
10
+ bottomTabBarId?: string;
11
+ };
12
+ export type IPageBottomTabBarState = IPageBottomTabBarConfig;
13
+ export type IAppBottomTabBarState = IAppBottomTabBarConfig;
@@ -0,0 +1,8 @@
1
+ type IDataTheme = 'dark' | 'light';
2
+ type IThemeMode = IDataTheme | 'system';
3
+ export declare const initThemeMode: (mode?: IThemeMode) => void;
4
+ export declare const getDataTheme: () => IDataTheme;
5
+ export declare const setDataTheme: (theme: IDataTheme) => void;
6
+ export declare const setDataThemeBySystem: () => void;
7
+ export declare const toggleDataTheme: () => void;
8
+ export {};
@@ -1,18 +1,9 @@
1
- export * from './components/app';
2
- export * from './components/link';
3
- export * from './hooks/use-did-hide';
4
- export * from './hooks/use-did-show';
5
- export * from './hooks/use-history';
6
- export * from './hooks/use-location';
7
- export * from './hooks/use-navigate';
8
- export * from './hooks/use-navigation-bar';
9
- export * from './hooks/use-navigation-type';
10
- export * from './hooks/use-page-layout';
11
- export * from './hooks/use-page-scroll';
12
- export * from './hooks/use-app-pause';
13
- export * from './hooks/use-app-resume';
14
- export * from './hooks/use-settings-changed';
15
- export * from './hooks/use-custom-icon-event';
16
- export * from './utils/data-theme';
17
- export type * from './types/app';
18
- export type * from './types/navigation';
1
+ export * from './app';
2
+ export * from './bottom-tab-bar-layout/hook';
3
+ export * from './navigation-bar-layout/hook';
4
+ export * from './page-layout/hook';
5
+ export type * from './type';
6
+ export type * from './bottom-tab-bar-layout/type';
7
+ export type * from './navigation-bar-layout/type';
8
+ export type * from './page-layout/type';
9
+ export { getDataTheme, setDataTheme, toggleDataTheme } from './data-theme';
@@ -0,0 +1,17 @@
1
+ import { IAppNavigationBarState, IPageNavigationBarState } from './type';
2
+ export declare const useNavigationBar: () => {
3
+ state: {
4
+ divider: boolean;
5
+ transparent: string;
6
+ } & import('../..').INavigationBarProps & {
7
+ hidden?: boolean;
8
+ };
9
+ pageState: import('./type').IAppNavigationBarConfig;
10
+ appState: import('./type').IAppNavigationBarConfig;
11
+ setPageNavigationBar: (navigationBar: Partial<IPageNavigationBarState>) => void;
12
+ setAppNavigationBar: (navigationBar: Partial<IAppNavigationBarState>) => void;
13
+ removePageNavigationBar: () => void;
14
+ removeAppNavigationBar: () => void;
15
+ resetPageNavigationBar: () => void;
16
+ resetAppNavigationBar: () => void;
17
+ };
@@ -0,0 +1,13 @@
1
+ import { IAppNavigationBarConfig, IAppNavigationBarState, IPageNavigationBarConfig, IPageNavigationBarState } from './type';
2
+ type INavigationBarState = {
3
+ pageConfigs: Record<string, IPageNavigationBarConfig>;
4
+ appConfig: IAppNavigationBarConfig;
5
+ pages: Record<string, IPageNavigationBarState>;
6
+ app: IAppNavigationBarState;
7
+ setPage: (key: string, navigationBar: Partial<IPageNavigationBarState>) => void;
8
+ setApp: (navigationBar: Partial<IAppNavigationBarState>) => void;
9
+ resetPage: (key: string, pagePath: string) => void;
10
+ resetApp: () => void;
11
+ };
12
+ export declare const useNavigationBarLayoutStore: import('zustand').UseBoundStore<import('zustand').StoreApi<INavigationBarState>>;
13
+ export {};
@@ -0,0 +1,7 @@
1
+ import { INavigationBarProps } from '../../navigation-bar';
2
+ export type IAppNavigationBarConfig = INavigationBarProps & {
3
+ hidden?: boolean;
4
+ };
5
+ export type IPageNavigationBarConfig = IAppNavigationBarConfig;
6
+ export type IPageNavigationBarState = IAppNavigationBarConfig;
7
+ export type IAppNavigationBarState = IAppNavigationBarConfig;
@@ -0,0 +1,21 @@
1
+ import { IAppPageState, IPagePageState } from './type';
2
+ import { IPageBaseProps } from '../../layout';
3
+ export declare const usePageLayout: () => {
4
+ state: {
5
+ scrollRestoration: boolean;
6
+ } & IPageBaseProps & {
7
+ hidden?: boolean;
8
+ scrollRestoration?: boolean;
9
+ };
10
+ pageState: import('./type').IAppPageConfig;
11
+ appState: import('./type').IAppPageConfig;
12
+ setPagePageLayout: (bottomTabBar: Partial<IPagePageState>) => void;
13
+ setAppPageLayout: (bottomTabBar: Partial<IAppPageState>) => void;
14
+ removePagePageLayout: () => void;
15
+ removeAppPageLayout: () => void;
16
+ resetPagePageLayout: () => void;
17
+ resetAppPageLayout: () => void;
18
+ };
19
+ export declare const usePullToRefresh: (onRefresh: () => Promise<unknown> | unknown) => void;
20
+ export declare const usePageScroll: (callback: IPageBaseProps["onPageScroll"], options?: IPageBaseProps["pageScrollOptions"]) => void;
21
+ export declare const useLoadMore: (onEndReached: () => void) => void;
@@ -0,0 +1,13 @@
1
+ import { IAppPageConfig, IAppPageState, IPagePageConfig, IPagePageState } from './type';
2
+ type IPageState = {
3
+ pageConfigs: Record<string, IPagePageConfig>;
4
+ appConfig: IAppPageConfig;
5
+ pages: Record<string, IPagePageState>;
6
+ app: IAppPageState;
7
+ setPage: (key: string, bottomTabBar: Partial<IPagePageState>) => void;
8
+ setApp: (bottomTabBar: Partial<IAppPageState>) => void;
9
+ resetPage: (key: string, pagePath: string) => void;
10
+ resetApp: () => void;
11
+ };
12
+ export declare const usePageLayoutStore: import('zustand').UseBoundStore<import('zustand').StoreApi<IPageState>>;
13
+ export {};
@@ -0,0 +1,8 @@
1
+ import { IPageBaseProps } from '../../layout';
2
+ export type IAppPageConfig = IPageBaseProps & {
3
+ hidden?: boolean;
4
+ scrollRestoration?: boolean;
5
+ };
6
+ export type IPagePageConfig = IAppPageConfig;
7
+ export type IPagePageState = IAppPageConfig;
8
+ export type IAppPageState = IAppPageConfig;
@@ -0,0 +1,27 @@
1
+ import { IRouterPageConfig, IRouterConfig } from '@v-miniapp/router';
2
+ import { IAppNavigationBarConfig, IPageNavigationBarConfig } from './navigation-bar-layout/type';
3
+ import { IAppBottomTabBarConfig, IPageBottomTabBarConfig } from './bottom-tab-bar-layout/type';
4
+ import { IAppPageConfig, IPagePageConfig } from './page-layout/type';
5
+ export type IPageConfig = IRouterPageConfig & {
6
+ bottomTabBarId?: string;
7
+ navigationBar?: IPageNavigationBarConfig;
8
+ bottomTabBar?: IPageBottomTabBarConfig;
9
+ pageLayout?: IPagePageConfig;
10
+ };
11
+ export type IAppConfig = Omit<IRouterConfig, 'pages'> & {
12
+ pages: IPageConfig[];
13
+ navigationBar?: IAppNavigationBarConfig;
14
+ bottomTabBar?: IAppBottomTabBarConfig;
15
+ pageLayout?: IAppPageConfig;
16
+ theme?: IThemeConfig;
17
+ /**
18
+ * @deprecated This will be removed soon. Use `theme.defaultMode` instead.
19
+ */
20
+ darkMode?: IDarkModeConfig;
21
+ };
22
+ export type IDarkModeConfig = {
23
+ defaultEnabled?: boolean;
24
+ };
25
+ export type IThemeConfig = {
26
+ mode?: 'dark' | 'light' | 'system';
27
+ };
@@ -1,3 +1,3 @@
1
- import { IAppLanguage } from '../../locales';
1
+ import { IAppLanguage } from '@v-miniapp/locale';
2
2
  import { IRenderText } from './utils';
3
3
  export declare const getRenderText: (argLang?: IAppLanguage, renderText?: IRenderText) => IRenderText;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { IAppLanguage } from '../../locales';
2
+ import { IAppLanguage } from '@v-miniapp/locale';
3
3
  export declare const Weekday: {
4
4
  readonly SUNDAY: 0;
5
5
  readonly MONDAY: 1;
@@ -27,7 +27,7 @@ export type IInputWrapperProps = IOverride<ComponentProps<'div'>, IBasicInputPro
27
27
  loadingNode?: ReactNode;
28
28
  }>;
29
29
  export declare function getInputProps<T extends IBasicInputProps>(allProps: T): {
30
- wrapper: Pick<T, "label" | "className" | "disabled" | "prefix" | "error" | "shape" | "leadingIcon" | "trailingIcon" | "suffix" | "success" | "successMessage" | "errorMessage" | "onLeadingIconClick" | "onTrailingIconClick">;
31
- props: import('lodash').Omit<T, "label" | "className" | "disabled" | "prefix" | "error" | "shape" | "leadingIcon" | "trailingIcon" | "suffix" | "success" | "successMessage" | "errorMessage" | "onLeadingIconClick" | "onTrailingIconClick">;
30
+ wrapper: Pick<T, "label" | "className" | "disabled" | "error" | "prefix" | "shape" | "leadingIcon" | "trailingIcon" | "suffix" | "success" | "successMessage" | "errorMessage" | "onLeadingIconClick" | "onTrailingIconClick">;
31
+ props: import('lodash').Omit<T, "label" | "className" | "disabled" | "error" | "prefix" | "shape" | "leadingIcon" | "trailingIcon" | "suffix" | "success" | "successMessage" | "errorMessage" | "onLeadingIconClick" | "onTrailingIconClick">;
32
32
  };
33
33
  export declare const InputWrapper: FC<IInputWrapperProps>;
@@ -1,6 +1,11 @@
1
- import { ComponentPropsWithRef, FC } from 'react';
1
+ import { ComponentPropsWithRef, FC, UIEvent } from 'react';
2
2
  import { IPullToRefreshBasProps } from '../pull-to-refresh';
3
3
  import { IOverride } from '../../types/util';
4
+ export type IPageScrollOptions = {
5
+ wait?: number;
6
+ leading?: boolean;
7
+ trailing?: boolean;
8
+ };
4
9
  export type IPageBaseProps = {
5
10
  hasSpacing?: boolean;
6
11
  headerOffset?: boolean;
@@ -10,6 +15,8 @@ export type IPageBaseProps = {
10
15
  pullToRefresh?: IPullToRefreshBasProps;
11
16
  onEndReached?: () => void;
12
17
  onEndReachedThreshold?: number;
18
+ onPageScroll?: (target: HTMLDivElement, event: UIEvent<HTMLDivElement, globalThis.UIEvent>) => void;
19
+ pageScrollOptions?: IPageScrollOptions;
13
20
  id?: string;
14
21
  className?: string;
15
22
  style?: React.CSSProperties;