@momo-webplatform/mobase 0.0.43 → 0.0.45

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 (352) hide show
  1. package/dist/cjs/index.cjs +5633 -0
  2. package/dist/cjs/index.cjs.map +1 -0
  3. package/dist/cjs/index.d.cts +659 -0
  4. package/dist/esm/index.d.ts +659 -0
  5. package/dist/esm/index.js +5107 -0
  6. package/dist/esm/index.js.map +1 -0
  7. package/package.json +63 -114
  8. package/LICENSE +0 -21
  9. package/publish/cjs/components/Accordion/Accordion.js +0 -44
  10. package/publish/cjs/components/Accordion/index.js +0 -8
  11. package/publish/cjs/components/AlertDialog/AlertDialog.js +0 -62
  12. package/publish/cjs/components/AlertDialog/index.js +0 -16
  13. package/publish/cjs/components/Badge/Badge.js +0 -24
  14. package/publish/cjs/components/Badge/index.js +0 -6
  15. package/publish/cjs/components/Breadcrumb/Breadcrumb.js +0 -55
  16. package/publish/cjs/components/Breadcrumb/index.js +0 -11
  17. package/publish/cjs/components/Button/Button.js +0 -74
  18. package/publish/cjs/components/Button/index.js +0 -6
  19. package/publish/cjs/components/Callout/Callout.js +0 -46
  20. package/publish/cjs/components/Callout/index.js +0 -5
  21. package/publish/cjs/components/Card/Card.js +0 -47
  22. package/publish/cjs/components/Card/index.js +0 -10
  23. package/publish/cjs/components/Checkbox/Checkbox.js +0 -67
  24. package/publish/cjs/components/Checkbox/index.js +0 -9
  25. package/publish/cjs/components/Choicebox/Choicebox.js +0 -90
  26. package/publish/cjs/components/Choicebox/index.js +0 -6
  27. package/publish/cjs/components/Combobox/Combobox.js +0 -19
  28. package/publish/cjs/components/Combobox/index.js +0 -7
  29. package/publish/cjs/components/Command/Command.js +0 -74
  30. package/publish/cjs/components/Command/index.js +0 -13
  31. package/publish/cjs/components/Dialog/Dialog.js +0 -90
  32. package/publish/cjs/components/Dialog/index.js +0 -15
  33. package/publish/cjs/components/DialogQr/DialogQr.js +0 -98
  34. package/publish/cjs/components/DialogQr/index.js +0 -5
  35. package/publish/cjs/components/Footer/Footer.js +0 -15
  36. package/publish/cjs/components/Footer/FooterContent.js +0 -27
  37. package/publish/cjs/components/Footer/index.js +0 -5
  38. package/publish/cjs/components/Header/Header.js +0 -19
  39. package/publish/cjs/components/Header/ListItem.js +0 -12
  40. package/publish/cjs/components/Header/ListItemMobile.js +0 -15
  41. package/publish/cjs/components/Header/MobileMenu.js +0 -61
  42. package/publish/cjs/components/Header/NavItems.js +0 -26
  43. package/publish/cjs/components/Header/NavItemsMobile.js +0 -35
  44. package/publish/cjs/components/Header/index.js +0 -5
  45. package/publish/cjs/components/IconButton/IconButton.js +0 -67
  46. package/publish/cjs/components/IconButton/index.js +0 -5
  47. package/publish/cjs/components/LightboxGallery/LightboxGallery.js +0 -203
  48. package/publish/cjs/components/LightboxGallery/index.js +0 -7
  49. package/publish/cjs/components/NavigationMenu/NavigationMenu.js +0 -62
  50. package/publish/cjs/components/NavigationMenu/index.js +0 -13
  51. package/publish/cjs/components/Pagination/Pagination.js +0 -31
  52. package/publish/cjs/components/Pagination/index.js +0 -8
  53. package/publish/cjs/components/Popover/Popover.js +0 -37
  54. package/publish/cjs/components/Popover/index.js +0 -7
  55. package/publish/cjs/components/RadioGroup/RadioGroup.js +0 -53
  56. package/publish/cjs/components/RadioGroup/index.js +0 -6
  57. package/publish/cjs/components/SearchBar/SearchBar.js +0 -48
  58. package/publish/cjs/components/SearchBar/index.js +0 -5
  59. package/publish/cjs/components/Select/Select.js +0 -67
  60. package/publish/cjs/components/Select/index.js +0 -14
  61. package/publish/cjs/components/Stepper/Stepper.js +0 -100
  62. package/publish/cjs/components/Stepper/index.js +0 -5
  63. package/publish/cjs/components/Switch/Switch.js +0 -33
  64. package/publish/cjs/components/Switch/index.js +0 -5
  65. package/publish/cjs/components/Tabs/Tabs.js +0 -41
  66. package/publish/cjs/components/Tabs/index.js +0 -8
  67. package/publish/cjs/components/TextArea/TextArea.js +0 -38
  68. package/publish/cjs/components/TextArea/index.js +0 -5
  69. package/publish/cjs/components/TextButton/TextButton.js +0 -63
  70. package/publish/cjs/components/TextButton/index.js +0 -6
  71. package/publish/cjs/components/TextInput/TextInput.js +0 -65
  72. package/publish/cjs/components/TextInput/index.js +0 -5
  73. package/publish/cjs/components/Toast/Toast.js +0 -66
  74. package/publish/cjs/components/Toast/index.js +0 -8
  75. package/publish/cjs/components/Toast/toaster.js +0 -14
  76. package/publish/cjs/components/Toast/useToast.js +0 -157
  77. package/publish/cjs/components/Tooltip/Tooltip.js +0 -44
  78. package/publish/cjs/components/Tooltip/index.js +0 -9
  79. package/publish/cjs/foundation/SpinerIcon.js +0 -7
  80. package/publish/cjs/helpers/SpinerIcon.js +0 -7
  81. package/publish/cjs/helpers/animations.js +0 -18
  82. package/publish/cjs/helpers/clone-deep.js +0 -15
  83. package/publish/cjs/helpers/clone-deep.spec.js +0 -22
  84. package/publish/cjs/helpers/constants.js +0 -204
  85. package/publish/cjs/helpers/generic-forward-ref.js +0 -5
  86. package/publish/cjs/helpers/http.js +0 -10
  87. package/publish/cjs/helpers/is-client.js +0 -7
  88. package/publish/cjs/helpers/is-object.js +0 -12
  89. package/publish/cjs/helpers/is-object.spec.js +0 -24
  90. package/publish/cjs/helpers/merge-deep.js +0 -29
  91. package/publish/cjs/helpers/merge-deep.spec.js +0 -56
  92. package/publish/cjs/helpers/omit.js +0 -16
  93. package/publish/cjs/helpers/omit.spec.js +0 -9
  94. package/publish/cjs/helpers/utils.js +0 -23
  95. package/publish/cjs/index.js +0 -48
  96. package/publish/cjs/mobase-tw-plugin/animations/index.js +0 -25
  97. package/publish/cjs/mobase-tw-plugin/colors/blue.js +0 -16
  98. package/publish/cjs/mobase-tw-plugin/colors/common.js +0 -23
  99. package/publish/cjs/mobase-tw-plugin/colors/gray.js +0 -16
  100. package/publish/cjs/mobase-tw-plugin/colors/green.js +0 -16
  101. package/publish/cjs/mobase-tw-plugin/colors/index.js +0 -9
  102. package/publish/cjs/mobase-tw-plugin/colors/orange.js +0 -16
  103. package/publish/cjs/mobase-tw-plugin/colors/pink.js +0 -16
  104. package/publish/cjs/mobase-tw-plugin/colors/purple.js +0 -16
  105. package/publish/cjs/mobase-tw-plugin/colors/red.js +0 -16
  106. package/publish/cjs/mobase-tw-plugin/colors/yellow.js +0 -16
  107. package/publish/cjs/mobase-tw-plugin/font-sizes.js +0 -98
  108. package/publish/cjs/mobase-tw-plugin/index.js +0 -5
  109. package/publish/cjs/mobase-tw-plugin/layout.js +0 -48
  110. package/publish/cjs/mobase-tw-plugin/plugin.js +0 -201
  111. package/publish/cjs/mobase-tw-plugin/radius.js +0 -16
  112. package/publish/cjs/mobase-tw-plugin/types.js +0 -54
  113. package/publish/cjs/mobase-tw-plugin/utilities/custom.js +0 -25
  114. package/publish/cjs/mobase-tw-plugin/utilities/index.js +0 -14
  115. package/publish/cjs/mobase-tw-plugin/utilities/scrollbar-hide.js +0 -30
  116. package/publish/cjs/mobase-tw-plugin/utilities/transition.js +0 -88
  117. package/publish/cjs/mobase-tw-plugin/utils/index.js +0 -17
  118. package/publish/cjs/mobase-tw-plugin/utils/object.js +0 -53
  119. package/publish/cjs/mobase-tw-plugin/utils/theme.js +0 -70
  120. package/publish/cjs/site/index.js +0 -5
  121. package/publish/cjs/site/meta.js +0 -57
  122. package/publish/cjs/tsconfig.lib.tsbuildinfo +0 -1
  123. package/publish/cjs/types/index.js +0 -2
  124. package/publish/esm/components/Accordion/Accordion.d.ts +0 -20
  125. package/publish/esm/components/Accordion/Accordion.js +0 -15
  126. package/publish/esm/components/Accordion/index.d.ts +0 -2
  127. package/publish/esm/components/Accordion/index.js +0 -1
  128. package/publish/esm/components/AlertDialog/AlertDialog.d.ts +0 -49
  129. package/publish/esm/components/AlertDialog/AlertDialog.js +0 -26
  130. package/publish/esm/components/AlertDialog/index.d.ts +0 -2
  131. package/publish/esm/components/AlertDialog/index.js +0 -5
  132. package/publish/esm/components/Badge/Badge.d.ts +0 -10
  133. package/publish/esm/components/Badge/Badge.js +0 -20
  134. package/publish/esm/components/Badge/index.d.ts +0 -1
  135. package/publish/esm/components/Badge/index.js +0 -1
  136. package/publish/esm/components/Breadcrumb/Breadcrumb.d.ts +0 -20
  137. package/publish/esm/components/Breadcrumb/Breadcrumb.js +0 -23
  138. package/publish/esm/components/Breadcrumb/index.d.ts +0 -2
  139. package/publish/esm/components/Breadcrumb/index.js +0 -2
  140. package/publish/esm/components/Button/Button.d.ts +0 -26
  141. package/publish/esm/components/Button/Button.js +0 -44
  142. package/publish/esm/components/Button/index.d.ts +0 -2
  143. package/publish/esm/components/Button/index.js +0 -1
  144. package/publish/esm/components/Callout/Callout.d.ts +0 -19
  145. package/publish/esm/components/Callout/Callout.js +0 -43
  146. package/publish/esm/components/Callout/index.d.ts +0 -1
  147. package/publish/esm/components/Callout/index.js +0 -1
  148. package/publish/esm/components/Card/Card.d.ts +0 -9
  149. package/publish/esm/components/Card/Card.js +0 -16
  150. package/publish/esm/components/Card/index.d.ts +0 -1
  151. package/publish/esm/components/Card/index.js +0 -1
  152. package/publish/esm/components/Checkbox/Checkbox.d.ts +0 -40
  153. package/publish/esm/components/Checkbox/Checkbox.js +0 -36
  154. package/publish/esm/components/Checkbox/index.d.ts +0 -2
  155. package/publish/esm/components/Checkbox/index.js +0 -1
  156. package/publish/esm/components/Choicebox/Choicebox.d.ts +0 -31
  157. package/publish/esm/components/Choicebox/Choicebox.js +0 -62
  158. package/publish/esm/components/Choicebox/index.d.ts +0 -1
  159. package/publish/esm/components/Choicebox/index.js +0 -1
  160. package/publish/esm/components/Combobox/Combobox.d.ts +0 -19
  161. package/publish/esm/components/Combobox/Combobox.js +0 -13
  162. package/publish/esm/components/Combobox/index.d.ts +0 -1
  163. package/publish/esm/components/Combobox/index.js +0 -1
  164. package/publish/esm/components/Command/Command.d.ts +0 -57
  165. package/publish/esm/components/Command/Command.js +0 -40
  166. package/publish/esm/components/Command/index.d.ts +0 -1
  167. package/publish/esm/components/Command/index.js +0 -1
  168. package/publish/esm/components/Dialog/Dialog.d.ts +0 -51
  169. package/publish/esm/components/Dialog/Dialog.js +0 -54
  170. package/publish/esm/components/Dialog/index.d.ts +0 -1
  171. package/publish/esm/components/Dialog/index.js +0 -1
  172. package/publish/esm/components/DialogQr/DialogQr.d.ts +0 -33
  173. package/publish/esm/components/DialogQr/DialogQr.js +0 -91
  174. package/publish/esm/components/DialogQr/index.d.ts +0 -1
  175. package/publish/esm/components/DialogQr/index.js +0 -1
  176. package/publish/esm/components/Footer/Footer.d.ts +0 -22
  177. package/publish/esm/components/Footer/Footer.js +0 -9
  178. package/publish/esm/components/Footer/FooterContent.d.ts +0 -4
  179. package/publish/esm/components/Footer/FooterContent.js +0 -27
  180. package/publish/esm/components/Footer/index.d.ts +0 -1
  181. package/publish/esm/components/Footer/index.js +0 -1
  182. package/publish/esm/components/Header/Header.d.ts +0 -44
  183. package/publish/esm/components/Header/Header.js +0 -13
  184. package/publish/esm/components/Header/ListItem.d.ts +0 -9
  185. package/publish/esm/components/Header/ListItem.js +0 -10
  186. package/publish/esm/components/Header/ListItemMobile.d.ts +0 -9
  187. package/publish/esm/components/Header/ListItemMobile.js +0 -10
  188. package/publish/esm/components/Header/MobileMenu.d.ts +0 -6
  189. package/publish/esm/components/Header/MobileMenu.js +0 -56
  190. package/publish/esm/components/Header/NavItems.d.ts +0 -2
  191. package/publish/esm/components/Header/NavItems.js +0 -21
  192. package/publish/esm/components/Header/NavItemsMobile.d.ts +0 -2
  193. package/publish/esm/components/Header/NavItemsMobile.js +0 -30
  194. package/publish/esm/components/Header/index.d.ts +0 -1
  195. package/publish/esm/components/Header/index.js +0 -1
  196. package/publish/esm/components/IconButton/IconButton.d.ts +0 -22
  197. package/publish/esm/components/IconButton/IconButton.js +0 -40
  198. package/publish/esm/components/IconButton/index.d.ts +0 -2
  199. package/publish/esm/components/IconButton/index.js +0 -1
  200. package/publish/esm/components/LightboxGallery/LightboxGallery.d.ts +0 -35
  201. package/publish/esm/components/LightboxGallery/LightboxGallery.js +0 -171
  202. package/publish/esm/components/LightboxGallery/index.d.ts +0 -1
  203. package/publish/esm/components/LightboxGallery/index.js +0 -1
  204. package/publish/esm/components/NavigationMenu/NavigationMenu.d.ts +0 -12
  205. package/publish/esm/components/NavigationMenu/NavigationMenu.js +0 -28
  206. package/publish/esm/components/NavigationMenu/index.d.ts +0 -1
  207. package/publish/esm/components/NavigationMenu/index.js +0 -1
  208. package/publish/esm/components/Pagination/Pagination.d.ts +0 -16
  209. package/publish/esm/components/Pagination/Pagination.js +0 -28
  210. package/publish/esm/components/Pagination/index.d.ts +0 -1
  211. package/publish/esm/components/Pagination/index.js +0 -1
  212. package/publish/esm/components/Popover/Popover.d.ts +0 -6
  213. package/publish/esm/components/Popover/Popover.js +0 -9
  214. package/publish/esm/components/Popover/index.d.ts +0 -1
  215. package/publish/esm/components/Popover/index.js +0 -1
  216. package/publish/esm/components/RadioGroup/RadioGroup.d.ts +0 -13
  217. package/publish/esm/components/RadioGroup/RadioGroup.js +0 -26
  218. package/publish/esm/components/RadioGroup/index.d.ts +0 -1
  219. package/publish/esm/components/RadioGroup/index.js +0 -1
  220. package/publish/esm/components/SearchBar/SearchBar.d.ts +0 -7
  221. package/publish/esm/components/SearchBar/SearchBar.js +0 -45
  222. package/publish/esm/components/SearchBar/index.d.ts +0 -1
  223. package/publish/esm/components/SearchBar/index.js +0 -1
  224. package/publish/esm/components/Select/Select.d.ts +0 -19
  225. package/publish/esm/components/Select/Select.js +0 -32
  226. package/publish/esm/components/Select/index.d.ts +0 -1
  227. package/publish/esm/components/Select/index.js +0 -1
  228. package/publish/esm/components/Stepper/Stepper.d.ts +0 -15
  229. package/publish/esm/components/Stepper/Stepper.js +0 -97
  230. package/publish/esm/components/Stepper/index.d.ts +0 -1
  231. package/publish/esm/components/Stepper/index.js +0 -1
  232. package/publish/esm/components/Switch/Switch.d.ts +0 -4
  233. package/publish/esm/components/Switch/Switch.js +0 -7
  234. package/publish/esm/components/Switch/index.d.ts +0 -1
  235. package/publish/esm/components/Switch/index.js +0 -1
  236. package/publish/esm/components/Tabs/Tabs.d.ts +0 -16
  237. package/publish/esm/components/Tabs/Tabs.js +0 -12
  238. package/publish/esm/components/Tabs/index.d.ts +0 -1
  239. package/publish/esm/components/Tabs/index.js +0 -1
  240. package/publish/esm/components/TextArea/TextArea.d.ts +0 -9
  241. package/publish/esm/components/TextArea/TextArea.js +0 -35
  242. package/publish/esm/components/TextArea/index.d.ts +0 -2
  243. package/publish/esm/components/TextArea/index.js +0 -1
  244. package/publish/esm/components/TextButton/TextButton.d.ts +0 -22
  245. package/publish/esm/components/TextButton/TextButton.js +0 -36
  246. package/publish/esm/components/TextButton/index.d.ts +0 -2
  247. package/publish/esm/components/TextButton/index.js +0 -1
  248. package/publish/esm/components/TextInput/TextInput.d.ts +0 -11
  249. package/publish/esm/components/TextInput/TextInput.js +0 -62
  250. package/publish/esm/components/TextInput/index.d.ts +0 -2
  251. package/publish/esm/components/TextInput/index.js +0 -1
  252. package/publish/esm/components/Toast/Toast.d.ts +0 -15
  253. package/publish/esm/components/Toast/Toast.js +0 -34
  254. package/publish/esm/components/Toast/index.d.ts +0 -2
  255. package/publish/esm/components/Toast/index.js +0 -2
  256. package/publish/esm/components/Toast/toaster.d.ts +0 -1
  257. package/publish/esm/components/Toast/toaster.js +0 -10
  258. package/publish/esm/components/Toast/useToast.d.ts +0 -44
  259. package/publish/esm/components/Toast/useToast.js +0 -129
  260. package/publish/esm/components/Tooltip/Tooltip.d.ts +0 -12
  261. package/publish/esm/components/Tooltip/Tooltip.js +0 -14
  262. package/publish/esm/components/Tooltip/index.d.ts +0 -1
  263. package/publish/esm/components/Tooltip/index.js +0 -1
  264. package/publish/esm/foundation/SpinerIcon.d.ts +0 -6
  265. package/publish/esm/foundation/SpinerIcon.js +0 -5
  266. package/publish/esm/helpers/SpinerIcon.d.ts +0 -6
  267. package/publish/esm/helpers/SpinerIcon.js +0 -5
  268. package/publish/esm/helpers/animations.d.ts +0 -26
  269. package/publish/esm/helpers/animations.js +0 -14
  270. package/publish/esm/helpers/clone-deep.d.ts +0 -1
  271. package/publish/esm/helpers/clone-deep.js +0 -11
  272. package/publish/esm/helpers/clone-deep.spec.d.ts +0 -1
  273. package/publish/esm/helpers/clone-deep.spec.js +0 -20
  274. package/publish/esm/helpers/constants.d.ts +0 -69
  275. package/publish/esm/helpers/constants.js +0 -201
  276. package/publish/esm/helpers/generic-forward-ref.d.ts +0 -5
  277. package/publish/esm/helpers/generic-forward-ref.js +0 -3
  278. package/publish/esm/helpers/http.d.ts +0 -1
  279. package/publish/esm/helpers/http.js +0 -6
  280. package/publish/esm/helpers/is-client.d.ts +0 -1
  281. package/publish/esm/helpers/is-client.js +0 -3
  282. package/publish/esm/helpers/is-object.d.ts +0 -6
  283. package/publish/esm/helpers/is-object.js +0 -8
  284. package/publish/esm/helpers/is-object.spec.d.ts +0 -1
  285. package/publish/esm/helpers/is-object.spec.js +0 -22
  286. package/publish/esm/helpers/merge-deep.d.ts +0 -7
  287. package/publish/esm/helpers/merge-deep.js +0 -25
  288. package/publish/esm/helpers/merge-deep.spec.d.ts +0 -1
  289. package/publish/esm/helpers/merge-deep.spec.js +0 -54
  290. package/publish/esm/helpers/omit.d.ts +0 -1
  291. package/publish/esm/helpers/omit.js +0 -12
  292. package/publish/esm/helpers/omit.spec.d.ts +0 -1
  293. package/publish/esm/helpers/omit.spec.js +0 -7
  294. package/publish/esm/helpers/utils.d.ts +0 -8
  295. package/publish/esm/helpers/utils.js +0 -18
  296. package/publish/esm/index.d.ts +0 -32
  297. package/publish/esm/index.js +0 -32
  298. package/publish/esm/mobase-tw-plugin/animations/index.d.ts +0 -34
  299. package/publish/esm/mobase-tw-plugin/animations/index.js +0 -22
  300. package/publish/esm/mobase-tw-plugin/colors/blue.d.ts +0 -13
  301. package/publish/esm/mobase-tw-plugin/colors/blue.js +0 -13
  302. package/publish/esm/mobase-tw-plugin/colors/common.d.ts +0 -109
  303. package/publish/esm/mobase-tw-plugin/colors/common.js +0 -20
  304. package/publish/esm/mobase-tw-plugin/colors/gray.d.ts +0 -13
  305. package/publish/esm/mobase-tw-plugin/colors/gray.js +0 -13
  306. package/publish/esm/mobase-tw-plugin/colors/green.d.ts +0 -13
  307. package/publish/esm/mobase-tw-plugin/colors/green.js +0 -13
  308. package/publish/esm/mobase-tw-plugin/colors/index.d.ts +0 -110
  309. package/publish/esm/mobase-tw-plugin/colors/index.js +0 -5
  310. package/publish/esm/mobase-tw-plugin/colors/orange.d.ts +0 -13
  311. package/publish/esm/mobase-tw-plugin/colors/orange.js +0 -13
  312. package/publish/esm/mobase-tw-plugin/colors/pink.d.ts +0 -13
  313. package/publish/esm/mobase-tw-plugin/colors/pink.js +0 -13
  314. package/publish/esm/mobase-tw-plugin/colors/purple.d.ts +0 -13
  315. package/publish/esm/mobase-tw-plugin/colors/purple.js +0 -13
  316. package/publish/esm/mobase-tw-plugin/colors/red.d.ts +0 -13
  317. package/publish/esm/mobase-tw-plugin/colors/red.js +0 -13
  318. package/publish/esm/mobase-tw-plugin/colors/yellow.d.ts +0 -13
  319. package/publish/esm/mobase-tw-plugin/colors/yellow.js +0 -13
  320. package/publish/esm/mobase-tw-plugin/font-sizes.d.ts +0 -59
  321. package/publish/esm/mobase-tw-plugin/font-sizes.js +0 -94
  322. package/publish/esm/mobase-tw-plugin/index.d.ts +0 -1
  323. package/publish/esm/mobase-tw-plugin/index.js +0 -1
  324. package/publish/esm/mobase-tw-plugin/layout.d.ts +0 -45
  325. package/publish/esm/mobase-tw-plugin/layout.js +0 -45
  326. package/publish/esm/mobase-tw-plugin/plugin.d.ts +0 -10
  327. package/publish/esm/mobase-tw-plugin/plugin.js +0 -194
  328. package/publish/esm/mobase-tw-plugin/radius.d.ts +0 -9
  329. package/publish/esm/mobase-tw-plugin/radius.js +0 -12
  330. package/publish/esm/mobase-tw-plugin/types.d.ts +0 -103
  331. package/publish/esm/mobase-tw-plugin/types.js +0 -51
  332. package/publish/esm/mobase-tw-plugin/utilities/custom.d.ts +0 -24
  333. package/publish/esm/mobase-tw-plugin/utilities/custom.js +0 -23
  334. package/publish/esm/mobase-tw-plugin/utilities/index.d.ts +0 -114
  335. package/publish/esm/mobase-tw-plugin/utilities/index.js +0 -8
  336. package/publish/esm/mobase-tw-plugin/utilities/scrollbar-hide.d.ts +0 -23
  337. package/publish/esm/mobase-tw-plugin/utilities/scrollbar-hide.js +0 -28
  338. package/publish/esm/mobase-tw-plugin/utilities/transition.d.ts +0 -86
  339. package/publish/esm/mobase-tw-plugin/utilities/transition.js +0 -86
  340. package/publish/esm/mobase-tw-plugin/utils/index.d.ts +0 -1
  341. package/publish/esm/mobase-tw-plugin/utils/index.js +0 -1
  342. package/publish/esm/mobase-tw-plugin/utils/object.d.ts +0 -10
  343. package/publish/esm/mobase-tw-plugin/utils/object.js +0 -44
  344. package/publish/esm/mobase-tw-plugin/utils/theme.d.ts +0 -2
  345. package/publish/esm/mobase-tw-plugin/utils/theme.js +0 -65
  346. package/publish/esm/site/index.d.ts +0 -2
  347. package/publish/esm/site/index.js +0 -2
  348. package/publish/esm/site/meta.d.ts +0 -1
  349. package/publish/esm/site/meta.js +0 -53
  350. package/publish/esm/tsconfig.lib.tsbuildinfo +0 -1
  351. package/publish/esm/types/index.d.ts +0 -3
  352. package/publish/esm/types/index.js +0 -1
@@ -1 +0,0 @@
1
- export { ChoiceboxGroup, ChoiceboxGroupItem } from "./Choicebox";
@@ -1,19 +0,0 @@
1
- import * as React from "react";
2
- import * as PopoverPrimitive from "@radix-ui/react-popover";
3
- interface ComboboxTriggerProps extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> {
4
- className?: string;
5
- value?: string;
6
- label?: string;
7
- children: any;
8
- placeholder?: string;
9
- }
10
- interface ComboboxContentProps extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> {
11
- children?: any;
12
- className?: string;
13
- }
14
- interface ComboboxProps extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Popover> {
15
- }
16
- export declare const ComboboxTrigger: ({ className, value, label, children, placeholder, }: ComboboxTriggerProps) => import("react/jsx-runtime").JSX.Element;
17
- export declare const ComboboxContent: ({ children, className, }: ComboboxContentProps) => import("react/jsx-runtime").JSX.Element;
18
- export declare const Combobox: ({ open, onOpenChange, children }: ComboboxProps) => import("react/jsx-runtime").JSX.Element;
19
- export {};
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from "../../helpers/utils";
3
- import { ChevronDownIcon } from "@heroicons/react/16/solid";
4
- import { Popover, PopoverTrigger, PopoverContent } from "../Popover";
5
- export const ComboboxTrigger = ({ className, value, label, children, placeholder, }) => {
6
- return (_jsxs("div", { className: "relative", children: [_jsxs(PopoverTrigger, { className: cn("focus-visible:outline-none w-72 focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 select-mobase-button bg-white ring-0 transition-all rounded-md border border-gray-400 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-300 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm", className), children: [value || children || placeholder, _jsx(ChevronDownIcon, { className: "h-4 w-4 text-gray-700 flex-none" })] }), label && (_jsx("span", { className: "absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]", children: label }))] }));
7
- };
8
- export const ComboboxContent = ({ children, className, }) => {
9
- return (_jsx(PopoverContent, { className: cn("!p-0 border-none", className), children: children }));
10
- };
11
- export const Combobox = ({ open, onOpenChange, children }) => {
12
- return (_jsx(Popover, { open: open, onOpenChange: onOpenChange, children: children }));
13
- };
@@ -1 +0,0 @@
1
- export { ComboboxTrigger, ComboboxContent, Combobox } from "./Combobox";
@@ -1 +0,0 @@
1
- export { ComboboxTrigger, ComboboxContent, Combobox } from "./Combobox";
@@ -1,57 +0,0 @@
1
- /// <reference types="react/experimental" />
2
- import * as React from "react";
3
- import { type DialogProps } from "@radix-ui/react-dialog";
4
- interface ItemProps {
5
- isActive?: boolean;
6
- }
7
- interface InputProps {
8
- onClickClear?: (value: string) => void;
9
- }
10
- declare const Command: React.ForwardRefExoticComponent<Omit<{
11
- children?: React.ReactNode;
12
- } & React.HTMLAttributes<HTMLDivElement> & {
13
- label?: string | undefined;
14
- shouldFilter?: boolean | undefined;
15
- filter?: ((value: string, search: string) => number) | undefined;
16
- defaultValue?: string | undefined;
17
- value?: string | undefined;
18
- onValueChange?: ((value: string) => void) | undefined;
19
- loop?: boolean | undefined;
20
- vimBindings?: boolean | undefined;
21
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
22
- interface CommandDialogProps extends DialogProps {
23
- }
24
- declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => import("react/jsx-runtime").JSX.Element;
25
- declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "type"> & {
26
- value?: string | undefined;
27
- onValueChange?: ((search: string) => void) | undefined;
28
- } & React.RefAttributes<HTMLInputElement>, "ref"> & InputProps & React.RefAttributes<HTMLInputElement>>;
29
- declare const CommandList: React.ForwardRefExoticComponent<Omit<{
30
- children?: React.ReactNode;
31
- } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
32
- declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
33
- children?: React.ReactNode;
34
- } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
35
- declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
36
- children?: React.ReactNode;
37
- } & Omit<React.HTMLAttributes<HTMLDivElement>, "value" | "heading"> & {
38
- heading?: React.ReactNode;
39
- value?: string | undefined;
40
- forceMount?: boolean | undefined;
41
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
42
- declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement> & {
43
- alwaysRender?: boolean | undefined;
44
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
45
- declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
46
- children?: React.ReactNode;
47
- } & Omit<React.HTMLAttributes<HTMLDivElement>, "value" | "onSelect" | "disabled"> & {
48
- disabled?: boolean | undefined;
49
- onSelect?: ((value: string) => void) | undefined;
50
- value?: string | undefined;
51
- forceMount?: boolean | undefined;
52
- } & React.RefAttributes<HTMLDivElement>, "ref"> & ItemProps & React.RefAttributes<HTMLDivElement>>;
53
- declare const CommandShortcut: {
54
- ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
55
- displayName: string;
56
- };
57
- export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
@@ -1,40 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import { Command as CommandPrimitive } from "cmdk";
4
- import { cn } from "../../helpers/utils";
5
- import { Dialog, DialogContent } from "../Dialog";
6
- import { XCircleIcon, MagnifyingGlassIcon, CheckIcon, } from "@heroicons/react/16/solid";
7
- const Command = React.forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive, { ref: ref, className: cn("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md", className), ...props })));
8
- Command.displayName = CommandPrimitive.displayName;
9
- const CommandDialog = ({ children, ...props }) => {
10
- return (_jsx(Dialog, { ...props, children: _jsx(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: _jsx(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: children }) }) }));
11
- };
12
- const CommandInput = React.forwardRef(({ className, onClickClear, ...props }, ref) => {
13
- const divRef = React.useRef(null);
14
- const [search, setSearch] = React.useState("");
15
- const handleClearInput = () => {
16
- if (!search || search?.length <= 0)
17
- return;
18
- setSearch("");
19
- onClickClear?.(search);
20
- };
21
- return (_jsxs("div", { ref: divRef, className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [_jsx(MagnifyingGlassIcon, { className: "mr-2 h-4 w-4 shrink-0 text-gray-500" }), _jsx(CommandPrimitive.Input, { ref: ref, className: cn("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", className), value: search, onValueChange: setSearch, ...props }), _jsx(XCircleIcon, { onClick: handleClearInput, className: cn("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500", search?.length > 0 ? "opacity-100" : "opacity-0") })] }));
22
- });
23
- CommandInput.displayName = CommandPrimitive.Input.displayName;
24
- const CommandList = React.forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive.List, { ref: ref, className: cn("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden", className), ...props })));
25
- CommandList.displayName = CommandPrimitive.List.displayName;
26
- const CommandEmpty = React.forwardRef((props, ref) => (_jsx(CommandPrimitive.Empty, { ref: ref, className: "py-6 text-gray-900 text-center text-sm", ...props })));
27
- CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
28
- const CommandGroup = React.forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive.Group, { ref: ref, className: cn("overflow-hidden text-gray-900 p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", className), ...props })));
29
- CommandGroup.displayName = CommandPrimitive.Group.displayName;
30
- const CommandSeparator = React.forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive.Separator, { ref: ref, className: cn("-mx-1 text-gray-900 h-px bg-border", className), ...props })));
31
- CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
32
- const CommandItem = React.forwardRef(({ className, children, isActive, ...props }, ref) => {
33
- return (_jsxs(CommandPrimitive.Item, { ref: ref, className: cn("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50", isActive ? "bg-gray-100" : "", className), ...props, children: [_jsx(CheckIcon, { className: cn("h-4 w-4 mr-2", isActive ? "opacity-100" : "opacity-0") }), children] }));
34
- });
35
- CommandItem.displayName = CommandPrimitive.Item.displayName;
36
- const CommandShortcut = ({ className, ...props }) => {
37
- return (_jsx("span", { className: cn("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground", className), ...props }));
38
- };
39
- CommandShortcut.displayName = "CommandShortcut";
40
- export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
@@ -1 +0,0 @@
1
- export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, } from "./Command";
@@ -1 +0,0 @@
1
- export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, } from "./Command";
@@ -1,51 +0,0 @@
1
- import * as React from "react";
2
- import * as DialogPrimitive from "@radix-ui/react-dialog";
3
- declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
4
- declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
- declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
6
- declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
- declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
- declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
9
- /**
10
- * Determines whether the close button should be positioned on the right side.
11
- */
12
- isRightCloseButton?: boolean | undefined;
13
- /**
14
- * Size of the modal window
15
- */
16
- size?: "sm" | "lg" | "md" | "xl" | undefined;
17
- /**
18
- * Position of the modal window
19
- */
20
- position?: "center" | "left" | "right" | "bottom" | undefined;
21
- /**
22
- * Height of the modal window
23
- */
24
- height?: "small" | "auto" | "large" | "full" | undefined;
25
- /**
26
- * Open full screen dialog in mobile
27
- */
28
- isFull?: boolean | undefined;
29
- } & React.RefAttributes<HTMLDivElement>>;
30
- declare const DialogHeader: {
31
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
32
- displayName: string;
33
- };
34
- declare const DialogBody: {
35
- ({ className, isCondensed, ...props }: React.HTMLAttributes<HTMLDivElement> & {
36
- /**
37
- * Determines whether the dialog body should be condensed.
38
- */
39
- isCondensed?: boolean;
40
- }): import("react/jsx-runtime").JSX.Element;
41
- displayName: string;
42
- };
43
- declare const DialogFooter: {
44
- ({ className, isDivider, ...props }: React.HTMLAttributes<HTMLDivElement> & {
45
- isDivider?: boolean;
46
- }): import("react/jsx-runtime").JSX.Element;
47
- displayName: string;
48
- };
49
- declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
50
- declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
51
- export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogBody, DialogFooter, DialogTitle, DialogDescription, };
@@ -1,54 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import * as DialogPrimitive from "@radix-ui/react-dialog";
4
- import { cn } from "../../helpers/utils";
5
- import { XMarkIcon } from "@heroicons/react/20/solid";
6
- const Dialog = DialogPrimitive.Root;
7
- const DialogTrigger = DialogPrimitive.Trigger;
8
- const DialogPortal = DialogPrimitive.Portal;
9
- const DialogClose = DialogPrimitive.Close;
10
- const DialogOverlay = React.forwardRef(({ className, ...props }, ref) => (_jsx(DialogPrimitive.Overlay, { ref: ref, className: cn("fixed inset-0 z-50 bg-black/60 !duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props })));
11
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
12
- const DialogContent = React.forwardRef(({ className, isRightCloseButton, size = "md", position = "center", height = "auto", isFull = false, children, ...props }, ref) => {
13
- const classNames = {
14
- base: "fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",
15
- center: "left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",
16
- bottom: "!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(-32px_+_100vh)] sm:max-h-[calc(-64px_+_100vh)]",
17
- left: "!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",
18
- right: "!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out",
19
- };
20
- const sizeClassNames = {
21
- sm: "w-80 sm:w-80",
22
- md: "w-[512px] sm:w-[512px]",
23
- lg: "w-[672px] sm:w-[672px]",
24
- xl: "w-[1024px] sm:-[1024px]",
25
- };
26
- const heightClassNames = {
27
- auto: "h-auto sm:h-auto",
28
- small: "h-[480px] sm:h-[480px]",
29
- large: "h-[640px] sm:h-[640px]",
30
- full: "h-full",
31
- };
32
- const classNamesDialogContent = [
33
- classNames.base,
34
- classNames[position],
35
- sizeClassNames[size],
36
- heightClassNames[height],
37
- isFull &&
38
- "h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",
39
- className,
40
- ];
41
- return (_jsxs(DialogPortal, { children: [_jsx(DialogOverlay, {}), _jsxs(DialogPrimitive.Content, { ref: ref, className: cn(...classNamesDialogContent), ...props, children: [children, _jsxs(DialogPrimitive.Close, { className: cn("absolute md:top-4 top-2 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 text-gray-900 w-8 h-8 flex justify-center items-center rounded-full before:opacity-0 hover:before:opacity-100 before:transition-opacity before:z-[-1] before:content-[''] before:absolute before:inset-0 before:rounded-full before:select-none before:left-0 before:top-0 before:bg-gray-200 left-3 md:left-auto md:right-4", isRightCloseButton && "left-auto right-3 md:right-4"), title: "\u0110\u00F3ng", children: [_jsx(XMarkIcon, { className: "h-5 w-5 text-gray-700" }), _jsx("span", { className: "sr-only", children: "Close" })] })] })] }));
42
- });
43
- DialogContent.displayName = DialogPrimitive.Content.displayName;
44
- const DialogHeader = ({ className, ...props }) => (_jsx("div", { className: cn("dialog-header py-2 md:py-4 h-12 md:h-16 px-10 md:px-12 items-center justify-center flex border-b border-gray-200 w-full shrink-0", className), ...props }));
45
- DialogHeader.displayName = "DialogHeader";
46
- const DialogBody = ({ className, isCondensed = false, ...props }) => (_jsx("div", { className: cn("dialog-body p-6 flex-1 overflow-y-auto", isCondensed && "p-5", className), ...props }));
47
- DialogBody.displayName = "DialogBody";
48
- const DialogFooter = ({ className, isDivider = true, ...props }) => (_jsx("div", { className: cn("dialog-footer flex sm:flex-row justify-center [&>*]:basis-1/2 [&>*]:sm:basis-auto sm:justify-end space-x-2 px-6 pb-4 shrink-0", isDivider && "border-gray-200 border-t py-4", className), ...props }));
49
- DialogFooter.displayName = "DialogFooter";
50
- const DialogTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(DialogPrimitive.Title, { ref: ref, className: cn("text-base font-semibold line-clamp-1 max-w-full", className), ...props })));
51
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
52
- const DialogDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx(DialogPrimitive.Description, { ref: ref, className: cn("text-sm text-gray-700", className), ...props })));
53
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
54
- export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogBody, DialogFooter, DialogTitle, DialogDescription, };
@@ -1 +0,0 @@
1
- export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogBody, DialogFooter, DialogTitle, DialogDescription, } from "./Dialog";
@@ -1 +0,0 @@
1
- export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogBody, DialogFooter, DialogTitle, DialogDescription, } from "./Dialog";
@@ -1,33 +0,0 @@
1
- import { type DialogProps } from "@radix-ui/react-dialog";
2
- /**
3
- * Props for the DialogQr component.
4
- */
5
- interface DialogQrProps extends DialogProps {
6
- /**
7
- * The title of the dialog QR.
8
- */
9
- title?: string;
10
- /**
11
- * The short title of the step 3 in dialog QR.
12
- */
13
- shortTitle?: string;
14
- /**
15
- * The image URL for the QR code.
16
- */
17
- qrImage?: string;
18
- /**
19
- * The link associated with the QR code.
20
- */
21
- qrLink?: string;
22
- /**
23
- * The logo image URL for the QR code.
24
- */
25
- logoQr?: string;
26
- /**
27
- * Indicates whether the QR code is all in one.
28
- */
29
- isQrForAll?: boolean;
30
- className?: string;
31
- }
32
- export declare const DialogQr: ({ className, children, title, shortTitle, qrImage, qrLink, logoQr, isQrForAll, ...props }: DialogQrProps) => import("react/jsx-runtime").JSX.Element;
33
- export {};
@@ -1,91 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Dialog, DialogContent, DialogBody } from "../Dialog";
3
- import QRCode from "qrcode.react";
4
- import { cn } from "../../helpers/utils";
5
- const QRCodeScan = ({ img = "", children, isQrForAll }) => {
6
- return (_jsxs(_Fragment, { children: [_jsx("div", { className: "qrcode__scan__container", children: _jsxs("div", { className: "qrcode__scan", children: [_jsx("div", { className: "qrcode__gradient", children: _jsx("img", { alt: "step 1", className: "img-fluid", src: "https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png" }) }), _jsx("div", { className: "qrcode__border", children: _jsx("img", { alt: "step 2", className: "img-fluid", src: "https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg" }) }), _jsx("div", { className: "qrcode__image p-4", children: img ? (_jsx("img", { alt: "step 3", className: "img-fluid d-block mx-auto", src: img, loading: "lazy" })) : (children) })] }) }), _jsx("div", { className: "mt-4 text-sm text-white", children: isQrForAll ? (_jsxs(_Fragment, { children: [_jsx("img", { src: "https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png", width: 255, height: 32, className: "mx-auto", alt: "QR all" }), _jsx("div", { className: "mt-3", children: "Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\u00ED \u0110i\u1EC7n T\u1EED v\u00E0 Ng\u00E2n H\u00E0ng" })] })) : (_jsxs(_Fragment, { children: [_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: "mr-1 inline h-6 w-6", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z" }) }), "S\u1EED d\u1EE5ng App MoMo ho\u1EB7c", _jsx("br", {}), "\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\u00E9t m\u00E3."] })) }), _jsx("style", { children: `
7
- .qrcode__scan__container {
8
- padding: 15px;
9
- background-color: white;
10
- width: 280px;
11
- height: 280px;
12
- border-radius: 20px;
13
- border-radius: 15px;
14
- margin: 0 auto;
15
- }
16
-
17
- .qrcode__image {
18
- width: 100%;
19
- }
20
-
21
- .qrcode__image img {
22
- width: 100%;
23
- }
24
-
25
- .qrcode__scan {
26
- width: 245px;
27
- height: 245px;
28
- margin: 0 auto;
29
- overflow: hidden;
30
- background-color: white;
31
- position: relative;
32
- display: flex;
33
- align-items: center;
34
- justify-content: center;
35
- }
36
-
37
- .qrcode__border {
38
- position: absolute;
39
- width: 100%;
40
- height: 100%;
41
- top: 0;
42
- left: 0;
43
- z-index: 5;
44
- opacity: 0.9;
45
- pointer-events: none;
46
- }
47
-
48
- .qrcode__gradient {
49
- position: absolute;
50
- opacity: 0.6;
51
- width: 98%;
52
- height: 98%;
53
- top: 1%;
54
- left: 1%;
55
- z-index: 6;
56
- // pointer-events: none;
57
- transform: translate3d(0, -110%, 0);
58
- animation: QRCodeScan 3s infinite cubic-bezier(0.45, 0.03, 0.81, 0.63);
59
-
60
- backface-visibility: hidden;
61
- }
62
-
63
- @keyframes QRCodeScan {
64
- 0% {
65
- transform: translate3d(0, -110%, 0);
66
- }
67
-
68
- 90% {
69
- transform: translate3d(0, 30%, 0);
70
- }
71
- 100% {
72
- transform: translate3d(0, 30%, 0);
73
- }
74
- }
75
- ` })] }));
76
- };
77
- export const DialogQr = ({ className, children, title, shortTitle, qrImage, qrLink, logoQr, isQrForAll = false, ...props }) => {
78
- return (_jsx(Dialog, { ...props, children: _jsx(DialogContent, { className: cn("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0", className), size: "xl", isRightCloseButton: true, children: _jsx(DialogBody, { className: "p-0", children: _jsxs("div", { className: "flex flex-row flex-wrap", children: [_jsx("div", { className: "w-full flex-none md:w-5/12 hidden sm:block", children: children || (_jsxs("div", { className: "px-5 text-sm py-8 grid grid-cols-1 gap-y-6", children: [_jsxs("div", { className: "flex flex-nowrap items-center", children: [_jsx("div", { className: "flex-none", children: _jsx("img", { className: "w-20", loading: "lazy", src: "https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png", alt: "Step 1" }) }), _jsxs("div", { className: "flex-1 pl-4", children: [_jsx("div", { className: "step font-semibold text-gray-800 ", children: "B\u01B0\u1EDBc 1 :" }), _jsx("div", { className: "mt-1 text-gray-500 ", children: isQrForAll
79
- ? "Mở app MoMo hoặc ứng dụng ngân hàng/ví điện tử chấp nhận mã vạch từ QR Đa Năng"
80
- : "Mở ứng dụng camera mặc định hoặc ứng dụng hỗ trợ QR code của bạn" })] })] }), _jsxs("div", { className: "flex flex-nowrap items-center", children: [_jsx("div", { className: "flex-none", children: _jsx("img", { className: "w-20 ", loading: "lazy", src: "https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png", alt: "Step 2" }) }), _jsxs("div", { className: "flex-1 pl-4", children: [_jsx("div", { className: "step font-semibold text-gray-800 ", children: "B\u01B0\u1EDBc 2 :" }), _jsx("div", { className: "mt-1 text-gray-500 ", children: "Qu\u00E9t m\u00E3 QR Code theo h\u00ECnh b\u00EAn ph\u1EA3i" })] })] }), _jsxs("div", { className: "flex flex-nowrap items-center", children: [_jsx("div", { className: "flex-none", children: _jsx("img", { className: "w-20 ", loading: "lazy", src: "https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png", alt: "Step 3" }) }), _jsxs("div", { className: "flex-1 pl-4", children: [_jsx("div", { className: "step font-semibold text-gray-800 ", children: "B\u01B0\u1EDBc 3 :" }), _jsxs("div", { className: "mt-1 text-gray-500 ", children: ["B\u1EA5m v\u00E0o th\u00F4ng b\u00E1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c", " ", shortTitle || "Truy cập ngay"] })] })] })] })) }), _jsx("div", { className: "flex w-full items-center justify-center md:w-7/12 h-auto", style: {
81
- background: "url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)",
82
- }, children: _jsxs("div", { className: "px-5 py-10 text-center", children: [title && (_jsx("h4", { className: "mb-5 text-base font-semibold text-white", children: title })), _jsxs("div", { className: "relative", children: [isQrForAll && (_jsx("div", { className: "absolute -top-2 left-1/2 z-[5] -translate-x-1/2", children: _jsx("img", { src: "https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg", alt: "Title QR all" }) })), _jsx(QRCodeScan, { img: qrImage, isQrForAll: isQrForAll, children: qrLink && (_jsx(QRCode, { value: qrLink, size: 215, renderAs: "svg", imageSettings: {
83
- src: `${logoQr ||
84
- "https://homepage.momocdn.net/pwa/images/logoMomox50.png"}`,
85
- x: null,
86
- y: null,
87
- height: 50,
88
- width: 50,
89
- excavate: true,
90
- }, level: "H" })) })] })] }) })] }) }) }) }));
91
- };
@@ -1 +0,0 @@
1
- export { DialogQr } from "./DialogQr";
@@ -1 +0,0 @@
1
- export { DialogQr } from "./DialogQr";
@@ -1,22 +0,0 @@
1
- /// <reference types="react" />
2
- interface FooterItem {
3
- title: string;
4
- url: string;
5
- newTab: boolean;
6
- }
7
- interface FooterData {
8
- heading: string;
9
- lists: FooterItem[];
10
- }
11
- export interface footerProps {
12
- /**
13
- * CSS class to be appended to the root element.
14
- */
15
- className?: string;
16
- /**
17
- * Data menu
18
- */
19
- dataMenu?: FooterData;
20
- }
21
- declare const Footer: import("react").MemoExoticComponent<({ className, dataMenu }: footerProps) => import("react/jsx-runtime").JSX.Element>;
22
- export { Footer };
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { memo } from "react";
3
- import FooterContent from "./FooterContent";
4
- import { cn } from "../../helpers/utils";
5
- const Footer = memo(({ className, dataMenu }) => {
6
- // const { logo, name, url } = serviceInfo;
7
- return (_jsx("footer", { className: cn("grid grid-cols-1 flex-wrap bg-gray-900", className), children: _jsx(FooterContent, { dataMenu: dataMenu }) }));
8
- });
9
- export { Footer };
@@ -1,4 +0,0 @@
1
- declare const FooterContent: ({ dataMenu }: {
2
- dataMenu: any;
3
- }) => import("react/jsx-runtime").JSX.Element;
4
- export default FooterContent;
@@ -1,27 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { APP_DOWNLOAD, FROM_TYPE_FOOTER_MENU,
3
- // LIST_LINK,
4
- MOMO_TEXT, SERVICES_DEFAULT, SOCIAL_ITEMS, SUPPORT, FooterItemsDefault, } from "../../helpers/constants";
5
- import { addQueryToLink } from "../../helpers/utils";
6
- const FooterContent = ({ dataMenu }) => {
7
- const data = dataMenu || FooterItemsDefault;
8
- return (_jsxs(_Fragment, { children: [_jsx("div", { className: "footer-main order-2 py-7 text-white md:order-1 text-sm", children: _jsxs("div", { className: "wrapper grid grid-cols-2 gap-5 sm:gap-x-20 sm:gap-y-10 lg:flex lg:flex-nowrap lg:gap-14", children: [_jsxs("div", { className: "block grow md:w-44 md:shrink-0 md:border-none md:pb-0", children: [_jsx("div", { className: "whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80", children: data?.heading }), data?.lists?.map((item, index) => (_jsx("div", { className: "mt-3 text-sm", children: _jsx("a", { className: "text-white text-opacity-50 duration-300 hover:text-opacity-100",
9
- // href={addQueryToLink({
10
- // link: item.url,
11
- // query: { fromType: FROM_TYPE_FOOTER_MENU },
12
- // })}
13
- href: `${item.url}?fromType=${FROM_TYPE_FOOTER_MENU}`, children: item.title }) }, index)))] }), _jsxs("div", { className: " md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0", children: [_jsx("div", { className: "whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80", children: "D\u1ECBch v\u1EE5 n\u1ED5i b\u1EADt" }), _jsx("div", { className: "flex flex-wrap", children: SERVICES_DEFAULT.map((item, index) => (_jsx("div", { className: "mt-3 flex w-full text-sm", children: _jsxs("a", { href: addQueryToLink({
14
- link: item.Href,
15
- query: { fromType: FROM_TYPE_FOOTER_MENU },
16
- }), target: "_blank", rel: "noreferrer", className: "item-center inline-flex text-white text-opacity-50 duration-300 hover:text-opacity-100", children: [_jsx("span", { className: "relative aspect-1 h-5 w-5 md:-mt-0.5 md:h-6 md:w-6", children: _jsx("img", { src: item.Image, className: "absolute inset-0" }) }), _jsx("span", { className: "block pl-2", children: item.Name })] }) }, index))) })] }), _jsxs("div", { className: "col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0", children: [_jsxs("div", { className: "border-b border-gray-700 pb-5 md:border-0 md:pb-0", children: [_jsx("div", { className: "whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80", children: "Ch\u0103m s\u00F3c kh\u00E1ch h\u00E0ng" }), _jsxs("div", { className: "mt-2 text-sm md:mt-3", children: [_jsx("span", { className: "text-white text-opacity-50", children: "\u0110\u1ECBa ch\u1EC9: " }), _jsx("span", { className: "inline text-white text-opacity-70 duration-300 hover:text-opacity-100", children: SUPPORT.Address })] }), _jsxs("div", { className: "mt-1 text-sm", children: [_jsx("span", { className: "text-white text-opacity-50", children: "Hotline : " }), _jsx("a", { className: "inline text-white text-opacity-70 duration-300 hover:text-opacity-100", href: `tel:${MOMO_TEXT.Support.Hotline}`, children: MOMO_TEXT.Support.Hotline_Format }), _jsxs("small", { className: "text-xs italic text-white text-opacity-60", children: [" ", "(Ph\u00ED 1.000\u0111/ph\u00FAt)"] })] }), _jsxs("div", { className: "mt-1 text-sm", children: [_jsx("span", { className: "text-white text-opacity-50", children: "Email : " }), _jsx("a", { className: "inline text-white text-opacity-70 duration-300 hover:text-opacity-100", href: `mailto:${MOMO_TEXT.Support.Email}`, children: MOMO_TEXT.Support.Email })] }), _jsxs("div", { className: "mt-1 text-sm", children: [_jsxs("span", { className: "text-white text-opacity-50", children: ["T\u1ED5ng \u0111\u00E0i g\u1ECDi ra :", " "] }), _jsx("a", { className: "inline text-white text-opacity-70 duration-300 hover:text-opacity-100", href: `tel:${MOMO_TEXT.Support.Phone_Ext_1}`, children: MOMO_TEXT.Support.Phone_Ext_1_Format }), _jsx("span", { className: "text-white text-opacity-60", children: " - " }), _jsx("a", { className: "inline text-white text-opacity-70 duration-300 hover:text-opacity-100", href: `tel:${MOMO_TEXT.Support.Phone_Ext_2}`, children: MOMO_TEXT.Support.Phone_Ext_2_Format }), _jsx("span", { className: "text-white text-opacity-60", children: ", c\u00E1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo" })] }), _jsx("div", { className: "mt-3 flex", children: _jsx("a", { href: "https://momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup", rel: "noreferrer", target: "_blank", children: _jsxs("div", { className: "relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2", children: [_jsx("div", { className: "absolute left-1 top-1 ", style: { paddingTop: "3px" }, children: _jsx("svg", { className: "h-7 w-7 text-gray-100 ", fill: "currentColor", stroke: "currentColor", viewBox: "0 0 345.1 512", children: _jsxs("g", { children: [_jsx("title", { children: "Asset 1" }), _jsx("path", { d: "M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22\n V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8\n c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z" }), _jsx("path", { d: "M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9\n c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6\n c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z" })] }) }) }), _jsx("div", { className: "text-xs text-white text-opacity-70", children: "H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\u00FAp tr\u00EAn" }), _jsx("div", { className: "text-xs font-bold uppercase text-white text-opacity-90", children: "\u1EE8ng d\u1EE5ng MoMo" })] }) }) })] }), _jsxs("div", { className: "mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0", children: [_jsx("div", { className: "whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80", children: "H\u1EE3p t\u00E1c doanh nghi\u1EC7p" }), _jsxs("div", { className: "mt-2 text-sm md:mt-3", children: [_jsx("span", { className: "text-white text-opacity-50", children: "Hotline : " }), _jsx("a", { className: "inline text-white text-opacity-70 duration-300 hover:text-opacity-100", href: `tel:${MOMO_TEXT.Business.Phome}`, children: MOMO_TEXT.Business.Phome_Format })] }), _jsxs("div", { className: "mt-1 text-sm", children: [_jsx("span", { className: "text-white text-opacity-50", children: "Email : " }), _jsx("a", { className: "inline text-white text-opacity-70 duration-300 hover:text-opacity-100", href: `mailto:${MOMO_TEXT.Business.Email}`, children: MOMO_TEXT.Business.Email })] }), _jsxs("div", { className: "mt-1 text-sm", children: [_jsx("span", { className: "text-white text-opacity-50", children: "Website : " }), _jsx("a", { className: "inline text-white text-opacity-70 duration-300 hover:text-opacity-100", href: "https://business.momo.vn/", "aria-label": "MoMo Business", rel: "noreferrer", target: "_blank", children: "business.momo.vn" })] }), _jsx("div", { className: "mt-3 flex", children: _jsx("a", { href: "https://business.momo.vn/#menutop", rel: "noreferrer", target: "_blank", children: _jsxs("div", { className: "relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ", children: [_jsx("div", { className: "absolute left-1 top-1 flex aspect-1 items-center justify-center", children: _jsxs("svg", { width: "30", height: "20", viewBox: "0 0 30 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: "mt-2", children: [_jsx("path", { d: "M9.5688 5.21563C8.63815 5.98097 9.08817 8.15453 11.2556 6.84427C11.2556 6.84427 13.9037 5.51871 15.4497 4.6401C15.7864 4.4503 16.0129 4.51152 16.2946 4.83297C16.6038 5.05644 23.6112 12.8813 23.6112 12.8813C23.6112 12.8813 25.7725 11.2404 26.6144 9.51683C26.6144 9.51683 24.6735 5.8677 22.8214 2.24612C22.2857 2.5492 21.8265 2.83696 21.2111 2.66247C20.5744 2.48185 20.0478 1.98285 19.4723 1.64916C18.8171 1.26649 18.26 0.92362 17.5283 0.819534C16.4446 0.663406 15.5935 1.15016 14.6598 1.6859C13.5975 2.29511 12.5689 2.97779 11.5617 3.69414C10.8821 4.17171 10.2178 4.6799 9.5688 5.21563Z", fill: "#fff" }), _jsx("path", { d: "M10.9281 17.4029C10.5638 16.9008 10.6342 16.1538 11.0842 15.7344L13.3068 13.7109C13.7568 13.2884 14.415 13.3527 14.7793 13.8517C15.1436 14.3507 15.0731 15.0977 14.6231 15.5232L12.4006 17.5467C11.9536 17.9631 11.2924 17.9019 10.9281 17.4029Z", fill: "#fff" }), _jsx("path", { d: "M8.87706 15.5385C8.51275 15.0364 8.58317 14.2895 9.03318 13.867L10.7873 12.272C11.2374 11.8496 11.8955 11.9139 12.2598 12.4129C12.6241 12.9149 12.5537 13.6619 12.1037 14.0844L10.3496 15.6824C9.90261 16.1018 9.24136 16.0375 8.87706 15.5385Z", fill: "#fff" }), _jsx("path", { d: "M6.39426 14.014C6.05751 13.4905 6.1616 12.7496 6.62998 12.3547L7.02184 12.0486C7.49022 11.6537 8.14535 11.7608 8.48822 12.2812L8.51271 12.3118C8.85252 12.8353 8.72395 13.5456 8.2525 13.9405L7.86065 14.2466C7.39226 14.6415 6.73407 14.5374 6.39426 14.014Z", fill: "#fff" }), _jsx("path", { d: "M16.2182 16.2671C15.8325 15.7895 15.1712 15.762 14.7396 16.2089L13.7814 17.2039C13.3497 17.6508 13.313 18.4009 13.6987 18.8815C14.0844 19.3621 14.7488 19.3866 15.1773 18.9397L16.1355 17.9447C16.5672 17.4978 16.6039 16.7477 16.2182 16.2671Z", fill: "#fff" }), _jsx("path", { d: "M29.9207 7.86982C30.0799 8.1729 29.9911 8.53108 29.7278 8.66884L28.1145 9.51989C27.8512 9.65459 27.5084 9.51989 27.3522 9.21682L23.5255 1.81447C23.3694 1.5114 23.4551 1.15322 23.7184 1.01546L25.3317 0.167464C25.595 0.0297027 25.9379 0.167463 26.094 0.470537L29.9207 7.86982Z", fill: "#fff" }), _jsx("path", { d: "M2.61348 9.14334C2.49409 9.46479 2.18489 9.6454 1.92467 9.54744L0.299097 8.98415C0.0388821 8.88619 -0.0713265 8.54638 0.0480662 8.228L2.9839 0.430738C3.10329 0.109296 3.41249 -0.0713245 3.67271 0.0266388L5.29828 0.592989C5.5585 0.690952 5.66871 1.03076 5.54931 1.34914L2.61348 9.14334Z", fill: "#fff" }), _jsx("path", { d: "M23.5224 13.8395L23.5163 13.8333C23.4826 14.0109 23.4336 14.1609 23.2989 14.3109C23.0816 14.5528 22.7999 14.6721 22.5152 14.6721C22.2183 14.6721 21.9183 14.5405 21.6887 14.2772L18.9212 11.1393C18.8692 11.0781 18.8049 11.0506 18.7375 11.0506C18.4742 11.0506 18.1804 11.4853 18.4191 11.7363L20.6907 14.2466C21.1223 14.7426 21.1315 15.5079 20.7029 15.9855C20.5039 16.2059 20.259 16.313 20.011 16.313C19.7233 16.313 19.4294 16.1722 19.1967 15.9059L16.5946 13.0037C16.5364 12.9119 16.4629 12.8721 16.3864 12.8721C16.1415 12.8721 15.8843 13.2792 16.1415 13.5731L18.1436 15.8691C18.563 16.3498 18.5293 17.0967 18.1161 17.5621C17.9263 17.7733 17.6936 17.8743 17.4548 17.8743C17.3171 17.8743 17.1762 17.8406 17.0415 17.7733C16.9589 17.9937 16.8364 18.2019 16.6772 18.3856C16.9221 18.5203 17.1885 18.5968 17.4548 18.5968C17.8926 18.5968 18.3059 18.407 18.6181 18.058C18.9426 17.6968 19.111 17.2376 19.1294 16.7753C19.3988 16.9437 19.7049 17.0355 20.011 17.0355C20.4611 17.0355 20.8866 16.8396 21.208 16.4814C21.5295 16.1232 21.6948 15.6579 21.707 15.1895C21.955 15.3242 22.2336 15.3946 22.5152 15.3946C23.005 15.3946 23.4612 15.1834 23.801 14.8038C24.1255 14.4395 24.1837 14.0599 24.2235 13.7844C24.2449 13.6343 24.2173 13.4843 24.1561 13.3527C24.0765 13.417 24.0275 13.4537 24.0153 13.4629L23.5224 13.8395Z", fill: "#fff" }), _jsx("path", { d: "M6.20135 11.7914L6.21053 11.7822L6.21972 11.7731L6.38503 11.6445C5.02579 10.2669 4.19616 9.2505 4.19616 9.2505C5.5003 5.92894 6.97587 1.88183 6.97587 1.88183C6.96363 2.11143 7.73509 2.52166 7.89122 2.58288C8.14837 2.68697 8.42695 2.73595 8.70553 2.73595C8.78513 2.73595 8.86166 2.73289 8.9382 2.7237C9.75252 2.64105 10.5179 2.17266 11.2342 1.7655C11.7179 1.49304 12.3179 1.21446 12.8843 1.21446C13.1537 1.21446 13.4139 1.28487 13.6557 1.441C13.8731 1.30936 14.0874 1.18078 14.2986 1.06139C14.2619 1.01547 14.2221 0.972612 14.1762 0.935876C13.8088 0.641986 13.3741 0.495041 12.8873 0.495041C12.1312 0.495041 11.3965 0.859342 10.9097 1.1318L10.723 1.23895C10.1107 1.58794 9.48006 1.94612 8.87391 2.00735C8.8188 2.01347 8.76064 2.01653 8.70553 2.01653C8.50349 2.01653 8.30756 1.9798 8.13918 1.91245C8.01673 1.8604 7.73815 1.69815 7.60651 1.59407C7.52079 1.38589 7.34323 1.22977 7.11976 1.17772C7.07077 1.16548 7.02179 1.16242 6.97587 1.16242C6.69729 1.16242 6.43707 1.34304 6.33299 1.62774C6.31768 1.66754 4.84517 5.70546 3.5594 8.97804C3.46144 9.22907 3.5043 9.51684 3.67267 9.72195C3.70941 9.76481 4.52985 10.7659 5.87991 12.1374C5.97175 12.0149 6.0789 11.8955 6.20135 11.7914Z", fill: "#fff" })] }) }), _jsx("div", { className: "text-xs text-white text-opacity-70", children: "H\u1EE3p t\u00E1c doanh nghi\u1EC7p" }), _jsx("div", { className: "text-xs font-semibold uppercase text-white text-opacity-90", children: "\u0110\u0103ng k\u00FD h\u1EE3p t\u00E1c" })] }) }) })] })] }), _jsxs("div", { className: "col-span-2 gap-8 sm:col-span-1 md:mt-0 md:flex md:flex-col md:flex-wrap md:justify-between ", children: [_jsxs("div", { className: "h-auto", children: [_jsx("div", { className: "hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block", children: "K\u1EBFt n\u1ED1i v\u1EDBi ch\u00FAng t\u00F4i" }), _jsx("div", { className: "mt-3 hidden flex-row items-stretch md:flex", children: _jsx("ul", { className: "item-center flex list-none flex-wrap space-x-4", children: SOCIAL_ITEMS &&
17
- SOCIAL_ITEMS.map((item, index) => (_jsx("li", { className: "inline-block", children: _jsx("a", { href: item.Link, target: "_blank", rel: "noreferrer", className: "duration-300 hover:brightness-125", children: _jsx("img", { src: item.Image, loading: "lazy", width: "40", height: "40" }) }) }, index))) }) })] }), _jsxs("div", { className: "h-auto", children: [_jsx("div", { className: "hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block", children: "T\u1EA3i \u1EE9ng d\u1EE5ng tr\u00EAn \u0111i\u1EC7n tho\u1EA1i" }), _jsxs("div", { className: "flex flex-wrap md:mt-3 md:space-x-1.5", children: [_jsx("div", { className: "relative hidden h-20 w-20 grow-0 overflow-hidden rounded-sm bg-white md:block", children: _jsx("img", { src: "https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg", alt: "Qr-Dowbnload MoMo", className: " absolute inset-0" }) }), _jsx("div", { className: "flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5", children: APP_DOWNLOAD &&
18
- APP_DOWNLOAD.map((item, index) => (_jsx("a", { href: item.Link, target: "_blank", rel: "noreferrer", className: "button-download", style: {
19
- background: `url(${item.Image}) no-repeat center/contain`,
20
- } }, index))) }), _jsx("div", { className: "mt-4 flex w-full justify-center text-center md:hidden", children: _jsx("ul", { className: "item-center flex list-none flex-wrap space-x-3.5", children: SOCIAL_ITEMS &&
21
- SOCIAL_ITEMS.map((item, index) => (_jsx("li", { children: _jsx("a", { href: item.Link, target: "_blank", rel: "noreferrer", className: "flex duration-300 hover:brightness-125", children: _jsx("img", { alt: item.Name, src: item.Image, loading: "lazy", width: "36", height: "36" }) }) }, index))) }) })] })] }), _jsxs("div", { className: "h-auto", children: [_jsx("div", { className: "hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block", children: "\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi" }), _jsxs("div", { className: "mt-6 flex items-center justify-between md:mt-3 md:justify-normal", children: [_jsxs("span", { className: "block text-right text-xs text-white text-opacity-50 md:hidden", children: ["\u00A9Copyright M_Service ", new Date().getFullYear()] }), _jsx("a", { rel: "noopener noreferrer", href: "http://online.gov.vn/Home/AppDetails/163", target: "_blank", className: " flex w-28 items-center md:w-auto", children: _jsx("img", { alt: "ch\u1EE9ng nh\u1EADn", src: "https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png", width: 119, height: 45 }) })] })] })] })] }) }), _jsx("div", { className: " footer-bottom order-1 bg-gray-800 py-3.5 md:order-2 md:py-5", children: _jsxs("div", { className: "wrapper flex flex-wrap items-end justify-between md:flex-nowrap md:space-x-3", children: [_jsxs("div", { className: "mb-2.5 flex justify-between md:mb-0", children: [_jsx("img", { src: "https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg", className: "w-9 h-9", alt: "MoMo" }), _jsxs("div", { className: "shrink pl-3", children: [_jsx("div", { className: "text-sm text-white text-opacity-80 md:mb-1.5 ", children: "C\u00D4NG TY C\u1ED4 PH\u1EA6N D\u1ECACH V\u1EE4 DI \u0110\u1ED8NG TR\u1EF0C TUY\u1EBEN" }), _jsx("span", { className: "hidden text-xs text-white text-opacity-50 md:block lg:text-sm lg:leading-none", children: "L\u1EA7u 6, To\u00E0 nh\u00E0 Ph\u00FA M\u1EF9 H\u01B0ng, s\u1ED1 8 Ho\u00E0ng V\u0103n Th\u00E1i, khu ph\u1ED1 1, P. T\u00E2n Ph\u00FA, Q. 7, Th\u00E0nh ph\u1ED1 H\u1ED3 Ch\u00ED Minh" })] })] }), _jsx("span", { className: "block text-sm text-white text-opacity-50 md:hidden", children: "L\u1EA7u 6, To\u00E0 nh\u00E0 Ph\u00FA M\u1EF9 H\u01B0ng, s\u1ED1 8 Ho\u00E0ng V\u0103n Th\u00E1i, khu ph\u1ED1 1, P. T\u00E2n Ph\u00FA, Q. 7, Th\u00E0nh ph\u1ED1 H\u1ED3 Ch\u00ED Minh" }), _jsxs("span", { className: "hidden w-48 flex-none text-right text-sm text-white text-opacity-50 md:block", children: ["\u00A9Copyright M_Service ", new Date().getFullYear()] })] }) }), _jsx("style", { children: `
22
- footer .button-download {
23
- max-width: 150px;
24
- }
25
- ` })] }));
26
- };
27
- export default FooterContent;
@@ -1 +0,0 @@
1
- export { Footer } from "./Footer";
@@ -1 +0,0 @@
1
- export { Footer } from "./Footer";
@@ -1,44 +0,0 @@
1
- /// <reference types="react" />
2
- interface ComponentData {
3
- title: string;
4
- icon: string;
5
- url: string;
6
- description: string;
7
- newTab: boolean;
8
- }
9
- interface MainNavItemWithDropdown {
10
- id: number;
11
- title: string;
12
- hasDropdown: boolean;
13
- dropDownCompact: boolean;
14
- subMenu: ComponentData[];
15
- }
16
- interface MainNavItemWithoutDropdown {
17
- id: number;
18
- title: string;
19
- hasDropdown: boolean;
20
- url: string;
21
- newTab: boolean;
22
- }
23
- type MainNavItem = MainNavItemWithDropdown | MainNavItemWithoutDropdown;
24
- interface ServiceInfo {
25
- logo?: string;
26
- name?: string;
27
- url: string;
28
- }
29
- export interface HeaderProps {
30
- /**
31
- * CSS class to be appended to the root element.
32
- */
33
- className?: string;
34
- /**
35
- * Data menu
36
- */
37
- dataMenu: MainNavItem[];
38
- /**
39
- * Service info
40
- */
41
- serviceInfo: ServiceInfo;
42
- }
43
- declare const Header: import("react").MemoExoticComponent<({ className, dataMenu, serviceInfo }: HeaderProps) => import("react/jsx-runtime").JSX.Element>;
44
- export { Header };
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { memo } from "react";
3
- import { cn } from "../../helpers/utils";
4
- import Link from "next/link";
5
- import NavItems from "./NavItems";
6
- import MobileMenu from "./MobileMenu";
7
- import parse from 'html-react-parser';
8
- const Header = memo(({ className, dataMenu, serviceInfo }) => {
9
- const { logo, name, url } = serviceInfo;
10
- return (_jsxs("div", { className: cn(className, "sticky top-0 z-40 w-full flex-none transition-colors duration-500 lg:z-50 border-b border-gray-900/10 "), children: [_jsx("div", { className: cn("absolute inset-0 h-full w-full bg-white/95 backdrop-blursupports-backdrop-blur:bg-white/60 ") }), _jsx("nav", { className: cn("wrapper border-b border-gray-900/10 grid grid-cols-1 items-center lg:border-0 [--header-height:64px] "), style: { minHeight: "var(--header-height)" }, children: _jsxs("div", { className: "relative flex items-center ", children: [_jsxs(Link, { href: "https://momo.vn/", title: "MoMo", className: "mr-3 flex-none w-9 h-9 overflow-hidden rounded-none hover:opacity-80", children: [_jsx("span", { className: "sr-only", children: "MoMo home page" }), _jsx("img", { src: "https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg", className: "w-9 h-9", alt: "MoMo" })] }), serviceInfo && _jsxs(Link, { href: url, title: name, className: " relative flex space-x-1 pl-2 items-center rounded-none hover:opacity-80 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-[''] ", children: [_jsx("img", { src: logo, className: "w-9 h-9", alt: "MoMo" }), _jsx("div", { className: "text-sm font-semibold leading-[1.1] text-pink-500", children: name && parse(name) })] }), _jsx("div", { className: "relative hidden lg:flex items-center ml-auto", children: _jsx(NavItems, { data: dataMenu }) }), _jsx(MobileMenu, { data: dataMenu, className: "lg:hidden ml-auto " })] }) })] }));
11
- });
12
- Header.displayName = "Header";
13
- export { Header };
@@ -1,9 +0,0 @@
1
- declare const ListItem: ({ className, icon, title, children, href, newTab, }: {
2
- className?: string | undefined;
3
- icon?: string | undefined;
4
- title: any;
5
- children?: string | undefined;
6
- href?: string | undefined;
7
- newTab?: boolean | undefined;
8
- }) => import("react/jsx-runtime").JSX.Element;
9
- export default ListItem;
@@ -1,10 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from "../../helpers/utils";
3
- import { NavigationMenuLink } from "../NavigationMenu/index";
4
- const ListItem = ({ className = "", icon = "", title, children = "", href = "", newTab = false, }) => {
5
- const linkProps = newTab
6
- ? { target: "_blank", rel: "noopener noreferrer" }
7
- : {};
8
- return (_jsx("li", { className: "", children: _jsx(NavigationMenuLink, { asChild: true, children: _jsxs("a", { className: cn(" select-none space-y-1 rounded-md px-2.5 py-2 leading-none no-underline outline-none transition-colors hover:bg-pink-50 hover:text-pink-500 focus:bg-pink-50 focus:text-pink-500 flex flex-nowrap space-x-2 items-center min-h-9", className), href: href, ...linkProps, children: [icon && (_jsx("div", { className: "w-7 h-7 shrink-0", children: _jsx("img", { src: icon, loading: "lazy", className: "w-7 h-7 object-cover", alt: title }) })), _jsxs("div", { className: " ", children: [_jsx("div", { className: "text-sm font-medium text-gray-900 leading-none", children: title }), children && (_jsx("p", { className: "line-clamp-1 text-xs mt-1 text-gray-500", children: children }))] })] }) }) }));
9
- };
10
- export default ListItem;