@momo-webplatform/mobase 0.0.43 → 0.0.44

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 +5790 -0
  2. package/dist/cjs/index.cjs.map +1 -0
  3. package/dist/cjs/index.d.cts +661 -0
  4. package/dist/esm/index.d.ts +661 -0
  5. package/dist/esm/index.js +5260 -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,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +0,0 @@
1
- import * as React from "react";
2
- import { AccordionContentProps, AccordionItemProps, AccordionTriggerProps, AccordionSingleProps, AccordionMultipleProps } from "@radix-ui/react-accordion";
3
- export interface AccordionInterface extends AccordionItemProps {
4
- css?: string;
5
- }
6
- export type AccordionRootInterface = AccordionSingleProps | AccordionMultipleProps;
7
- declare const Accordion: React.ForwardRefExoticComponent<AccordionRootInterface & React.RefAttributes<HTMLDivElement>>;
8
- export interface AccordionItemInterface extends AccordionItemProps {
9
- css?: string;
10
- }
11
- declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemInterface & React.RefAttributes<HTMLDivElement>>;
12
- export interface AccordionTriggerInterface extends AccordionTriggerProps {
13
- css?: string;
14
- }
15
- declare const AccordionTrigger: React.ForwardRefExoticComponent<AccordionTriggerInterface & React.RefAttributes<HTMLButtonElement>>;
16
- export interface AccordionContentInterface extends AccordionContentProps {
17
- css?: string;
18
- }
19
- declare const AccordionContent: React.ForwardRefExoticComponent<AccordionContentInterface & React.RefAttributes<HTMLDivElement>>;
20
- export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -1,15 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import * as AccordionPrimitive from "@radix-ui/react-accordion";
4
- import { ChevronDown } from "lucide-react";
5
- import { cn } from "../../helpers/utils";
6
- // const Accordion = AccordionPrimitive.Root;
7
- const Accordion = React.forwardRef(({ className, ...props }, ref) => (_jsx(AccordionPrimitive.Root, { ref: ref, ...props })));
8
- Accordion.displayName = "AccordionRoot";
9
- const AccordionItem = React.forwardRef(({ className, ...props }, ref) => (_jsx(AccordionPrimitive.Item, { ref: ref, className: cn("border-b border-gray-200", className), ...props })));
10
- AccordionItem.displayName = "AccordionItem";
11
- const AccordionTrigger = React.forwardRef(({ className, children, ...props }, ref) => (_jsx(AccordionPrimitive.Header, { className: "flex", children: _jsxs(AccordionPrimitive.Trigger, { ref: ref, className: cn("flex flex-1 items-center text-left justify-between py-4 font-medium transition-all hover:underline hover:text-pink-600 [&[data-state=open]]:text-pink-600 [&[data-state=open]>svg]:rotate-180 text-gray-900", className), ...props, children: [children, _jsx(ChevronDown, { className: "h-4 w-4 shrink-0 transition-transform duration-200 ml-1" })] }) })));
12
- AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
13
- const AccordionContent = React.forwardRef(({ className, children, ...props }, ref) => (_jsx(AccordionPrimitive.Content, { ref: ref, className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down text-left ", ...props, children: _jsx("div", { className: cn("pb-4 pt-0 text-gray-900 prose-sm", className), children: children }) })));
14
- AccordionContent.displayName = AccordionPrimitive.Content.displayName;
15
- export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -1,2 +0,0 @@
1
- export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from "./Accordion";
2
- export type { AccordionRootInterface, AccordionItemInterface, AccordionTriggerInterface, AccordionContentInterface, } from "./Accordion";
@@ -1 +0,0 @@
1
- export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from "./Accordion";
@@ -1,49 +0,0 @@
1
- import * as React from "react";
2
- import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
3
- import * as DialogPrimitive from "@radix-ui/react-dialog";
4
- import type * as Radix from "@radix-ui/react-primitive";
5
- declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
6
- declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
7
- declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
8
- type DialogProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Root>;
9
- interface AlertDialogProps extends Omit<DialogProps, "modal"> {
10
- }
11
- type DialogTriggerProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>;
12
- interface AlertDialogTriggerProps extends DialogTriggerProps {
13
- }
14
- type DialogPortalProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Portal>;
15
- interface AlertDialogPortalProps extends DialogPortalProps {
16
- }
17
- type DialogOverlayProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>;
18
- interface AlertDialogOverlayProps extends DialogOverlayProps {
19
- }
20
- type DialogCloseProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Close>;
21
- interface AlertDialogActionProps extends DialogCloseProps {
22
- }
23
- interface AlertDialogCancelProps extends DialogCloseProps {
24
- }
25
- type DialogTitleProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;
26
- interface AlertDialogTitleProps extends DialogTitleProps {
27
- }
28
- type DialogDescriptionProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;
29
- interface AlertDialogDescriptionProps extends DialogDescriptionProps {
30
- }
31
- type DialogContentProps = Radix.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>;
32
- interface AlertDialogContentProps extends Omit<DialogContentProps, "onPointerDownOutside" | "onInteractOutside"> {
33
- }
34
- declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
35
- declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
36
- declare const AlertDialogHeader: {
37
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
38
- displayName: string;
39
- };
40
- declare const AlertDialogFooter: {
41
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
42
- displayName: string;
43
- };
44
- declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
45
- declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
46
- declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
47
- declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
48
- export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
49
- export type { AlertDialogProps, AlertDialogTriggerProps, AlertDialogPortalProps, AlertDialogOverlayProps, AlertDialogContentProps, AlertDialogActionProps, AlertDialogCancelProps, AlertDialogTitleProps, AlertDialogDescriptionProps, };
@@ -1,26 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
4
- import { cn } from "../../helpers/utils";
5
- import { buttonVariants } from "../Button";
6
- const AlertDialog = AlertDialogPrimitive.Root;
7
- const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
8
- const AlertDialogPortal = AlertDialogPrimitive.Portal;
9
- const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Overlay, { className: cn("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props, ref: ref })));
10
- AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
11
- const AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => (_jsxs(AlertDialogPortal, { children: [_jsx(AlertDialogOverlay, {}), _jsx(AlertDialogPrimitive.Content, { ref: ref, className: cn("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg 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", className), ...props })] })));
12
- AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
13
- const AlertDialogHeader = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-col space-y-2 text-left", className), ...props }));
14
- AlertDialogHeader.displayName = "AlertDialogHeader";
15
- const AlertDialogFooter = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-row justify-end space-x-4", className), ...props }));
16
- AlertDialogFooter.displayName = "AlertDialogFooter";
17
- const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Title, { ref: ref, className: cn("text-lg text-gray-900 font-semibold", className), ...props })));
18
- AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
19
- const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Description, { ref: ref, className: cn("text-sm text-muted-foreground", className), ...props })));
20
- AlertDialogDescription.displayName =
21
- AlertDialogPrimitive.Description.displayName;
22
- const AlertDialogAction = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Action, { ref: ref, className: cn(buttonVariants({ variant: "primary" }), "", className), ...props })));
23
- AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
24
- const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Cancel, { ref: ref, className: cn(buttonVariants({ variant: "secondary" }), className), ...props })));
25
- AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
26
- export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
@@ -1,2 +0,0 @@
1
- export { AlertDialog, AlertDialogTrigger, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, AlertDialogAction, AlertDialogCancel, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, } from "./AlertDialog";
2
- export type { AlertDialogProps, AlertDialogTriggerProps, AlertDialogPortalProps, AlertDialogOverlayProps, AlertDialogContentProps, AlertDialogActionProps, AlertDialogCancelProps, AlertDialogTitleProps, AlertDialogDescriptionProps, } from "./AlertDialog";
@@ -1,5 +0,0 @@
1
- export {
2
- //
3
- AlertDialog, AlertDialogTrigger, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, AlertDialogAction, AlertDialogCancel, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader,
4
- //
5
- } from "./AlertDialog";
@@ -1,10 +0,0 @@
1
- /// <reference types="react/experimental" />
2
- import * as React from "react";
3
- import { type VariantProps } from "class-variance-authority";
4
- declare const badgeVariants: (props?: ({
5
- variant?: "default" | "secondary" | "outline" | "danger" | null | undefined;
6
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
7
- export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
8
- }
9
- declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
10
- export { Badge, badgeVariants };
@@ -1,20 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cva } from "class-variance-authority";
3
- import { cn } from "../../helpers/utils";
4
- const badgeVariants = cva("inline-flex items-center rounded-md border border-gray-300 px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 font-semibold", {
5
- variants: {
6
- variant: {
7
- default: "border-transparent bg-pink-500 text-white/90 shadow hover:bg-pink-500/80",
8
- secondary: "border-transparent bg-gray-200 text-gray-900 hover:bg-gray-200/80",
9
- outline: "text-gray-900",
10
- danger: "border-transparent bg-red-500 text-white/90 shadow hover:bg-red-500/80",
11
- },
12
- },
13
- defaultVariants: {
14
- variant: "default",
15
- },
16
- });
17
- function Badge({ className, variant, ...props }) {
18
- return (_jsx("div", { className: cn(badgeVariants({ variant }), className), ...props }));
19
- }
20
- export { Badge, badgeVariants };
@@ -1 +0,0 @@
1
- export { Badge, badgeVariants } from "./Badge";
@@ -1 +0,0 @@
1
- export { Badge, badgeVariants } from "./Badge";
@@ -1,20 +0,0 @@
1
- /// <reference types="react/experimental" />
2
- import * as React from "react";
3
- declare const Breadcrumb: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
4
- separator?: React.ReactNode;
5
- } & React.RefAttributes<HTMLElement>>;
6
- declare const BreadcrumbList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
7
- declare const BreadcrumbItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
8
- declare const BreadcrumbLink: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
9
- asChild?: boolean | undefined;
10
- } & React.RefAttributes<HTMLAnchorElement>>;
11
- declare const BreadcrumbPage: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
12
- declare const BreadcrumbSeparator: {
13
- ({ children, className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
14
- displayName: string;
15
- };
16
- declare const BreadcrumbEllipsis: {
17
- ({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
18
- displayName: string;
19
- };
20
- export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
@@ -1,23 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import { ChevronRightIcon, DotsHorizontalIcon } from "@radix-ui/react-icons";
4
- import { Slot } from "@radix-ui/react-slot";
5
- import { cn } from "../../helpers/utils";
6
- const Breadcrumb = React.forwardRef(({ className, ...props }, ref) => _jsx("nav", { ref: ref, "aria-label": "breadcrumb", className: cn("", className), ...props }));
7
- Breadcrumb.displayName = "Breadcrumb";
8
- const BreadcrumbList = React.forwardRef(({ className, ...props }, ref) => (_jsx("ol", { ref: ref, className: cn("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden", className), ...props })));
9
- BreadcrumbList.displayName = "BreadcrumbList";
10
- const BreadcrumbItem = React.forwardRef(({ className, ...props }, ref) => (_jsx("li", { ref: ref, className: cn("shrink-0 text-gray-900 hover:text-pink-500", className), ...props })));
11
- BreadcrumbItem.displayName = "BreadcrumbItem";
12
- const BreadcrumbLink = React.forwardRef(({ asChild, className, ...props }, ref) => {
13
- const Comp = asChild ? Slot : "a";
14
- return (_jsx(Comp, { ref: ref, className: cn("transition-colors hover:text-foreground", className), ...props }));
15
- });
16
- BreadcrumbLink.displayName = "BreadcrumbLink";
17
- const BreadcrumbPage = React.forwardRef(({ className, ...props }, ref) => (_jsx("span", { ref: ref, role: "link", "aria-disabled": "true", "aria-current": "page", className: cn("text-sm text-gray-500", className), ...props })));
18
- BreadcrumbPage.displayName = "BreadcrumbPage";
19
- const BreadcrumbSeparator = ({ children, className, ...props }) => (_jsx("li", { role: "presentation", "aria-hidden": "true", className: cn("text-gray-900", className), ...props, children: children ?? _jsx(ChevronRightIcon, { className: "w-2 h-2" }) }));
20
- BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
21
- const BreadcrumbEllipsis = ({ className, ...props }) => (_jsxs("span", { role: "presentation", "aria-hidden": "true", className: cn("flex h-5 w-5 items-center justify-center", className), ...props, children: [_jsx(DotsHorizontalIcon, { className: "w-4 h-4 text-gray-900" }), _jsx("span", { className: "sr-only", children: "More" })] }));
22
- BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
23
- export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
@@ -1,2 +0,0 @@
1
- import { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis } from "./Breadcrumb";
2
- export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
@@ -1,2 +0,0 @@
1
- import { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, } from "./Breadcrumb";
2
- export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
@@ -1,26 +0,0 @@
1
- import * as React from "react";
2
- import { type VariantProps } from "class-variance-authority";
3
- declare const buttonVariants: (props?: ({
4
- variant?: "primary" | "secondary" | "outline" | "tonal" | "danger" | "transparent" | null | undefined;
5
- size?: "default" | "sm" | "lg" | null | undefined;
6
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
7
- export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
- /**
9
- * CSS class to be appended to the root element.
10
- */
11
- className?: string;
12
- /**
13
- * Change the default rendered element for the one passed as a child, merging their props and behavior.
14
- */
15
- asChild?: boolean;
16
- /**
17
- * Adds loading indicator icon and disables interactions
18
- */
19
- isLoading?: boolean;
20
- /**
21
- * Disabled interaction and applies disabled styles
22
- */
23
- isDisabled?: boolean;
24
- }
25
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
26
- export { Button, buttonVariants };
@@ -1,44 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import { Slot } from "@radix-ui/react-slot";
4
- import { cva } from "class-variance-authority";
5
- import { cn } from "../../helpers/utils";
6
- import SpinerIcon from "../../foundation/SpinerIcon";
7
- // /dwd
8
- const buttonVariants = cva("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent", {
9
- variants: {
10
- /**
11
- * Determines style variation of Button component.
12
- */
13
- variant: {
14
- primary: "bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",
15
- secondary: "bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",
16
- outline: "border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",
17
- tonal: "bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",
18
- danger: "bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",
19
- transparent: "text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent",
20
- },
21
- /**
22
- * Determines size variation of Button component.
23
- */
24
- size: {
25
- default: "text-sm h-10 px-4",
26
- sm: "h-8 px-3 text-sm",
27
- lg: "h-12 px-4 text-base",
28
- },
29
- },
30
- defaultVariants: {
31
- variant: "primary",
32
- size: "default",
33
- },
34
- });
35
- const Button = React.forwardRef(({ className, variant = "primary", size = "default", asChild = false, isLoading = false, isDisabled = false, ...props }, ref) => {
36
- const Comp = asChild ? Slot : "button";
37
- const buttonClassName = cn(buttonVariants({ variant, size, className }), {
38
- "cursor-wait": isLoading,
39
- });
40
- const loaderSize = size === "default" || size === "sm" ? "w-4 h-4" : "w-5 h-5";
41
- return (_jsx(_Fragment, { children: asChild ? (_jsx(Comp, { className: buttonClassName, type: "button", disabled: isDisabled, ref: ref, ...props, children: props.children })) : (_jsxs(Comp, { className: buttonClassName, type: "button", disabled: isDisabled, ref: ref, ...props, children: [isLoading && (_jsx(SpinerIcon, { className: `${loaderSize} animate-spin-loading mr-2` })), props.children] })) }));
42
- });
43
- Button.displayName = "Button";
44
- export { Button, buttonVariants };
@@ -1,2 +0,0 @@
1
- export { Button, buttonVariants } from "./Button";
2
- export type { ButtonProps } from "./Button";
@@ -1 +0,0 @@
1
- export { Button, buttonVariants } from "./Button";
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- import { type VariantProps } from "class-variance-authority";
3
- interface CalloutProps {
4
- message: string;
5
- type: "neutral" | "error" | "success" | "warning" | "info";
6
- withAction?: string;
7
- onClickAction?: () => void;
8
- className?: string;
9
- disabled?: boolean;
10
- actionClassName?: string;
11
- }
12
- export declare const Callout: import("react").ForwardRefExoticComponent<CalloutProps & VariantProps<(props?: ({
13
- typeDiv?: "warning" | "error" | "neutral" | "success" | "info" | null | undefined;
14
- disabled?: boolean | null | undefined;
15
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & VariantProps<(props?: ({
16
- typeIcon?: "warning" | "error" | "neutral" | "success" | "info" | null | undefined;
17
- disabled?: boolean | null | undefined;
18
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & import("react").RefAttributes<HTMLDivElement>>;
19
- export {};
@@ -1,43 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cva } from "class-variance-authority";
3
- import { forwardRef } from "react";
4
- import { cn } from "../../helpers/utils";
5
- import { InformationCircleIcon } from "@heroicons/react/24/outline";
6
- import { TextButton } from "../TextButton";
7
- const calloutVariants = cva("px-3 py-2 rounded-md border flex items-center space-x-2 text-gray-700 text-sm ", {
8
- variants: {
9
- typeDiv: {
10
- neutral: "bg-gray-50 border-gray-300 ",
11
- error: "bg-red-50 border-red-300",
12
- success: "bg-green-50 border-green-300",
13
- warning: "bg-yellow-50 border-yellow-300",
14
- info: "bg-blue-50 border-blue-300",
15
- },
16
- disabled: {
17
- true: "text-gray-400 bg-gray-50 opacity-55 pointer-events-none border-gray-300",
18
- },
19
- },
20
- defaultVariants: {
21
- typeDiv: "neutral",
22
- },
23
- });
24
- const iconVariants = cva("w-5 h-5 shrink-0 border-none p-0 ", {
25
- variants: {
26
- typeIcon: {
27
- neutral: "text-gray-700",
28
- error: "text-red-700",
29
- success: "text-green-700",
30
- warning: "text-yellow-700",
31
- info: "text-blue-700",
32
- },
33
- disabled: {
34
- true: "text-gray-400",
35
- },
36
- },
37
- defaultVariants: {
38
- typeIcon: "neutral",
39
- },
40
- });
41
- export const Callout = forwardRef(({ type = "neutral", message = "", withAction = false, onClickAction, className, disabled, actionClassName, ...props }, ref) => {
42
- return (_jsxs("div", { ref: ref, className: cn("", className, calloutVariants({ typeDiv: type, disabled })), ...props, children: [_jsxs("div", { className: "flex items-center space-x-2", children: [_jsx(InformationCircleIcon, { className: cn(iconVariants({ typeIcon: type, disabled })), width: 20, height: 20 }), _jsx("div", { children: "B\u1EA1n c\u1EA7n cho ph\u00E9p website s\u1EED d\u1EE5ng th\u00F4ng tin v\u1ECB tr\u00ED \u0111\u1EC3 s\u1EED d\u1EE5ng t\u00EDnh n\u0103ng n\u00E0y" })] }), withAction && (_jsx(TextButton, { variant: "primary", onClick: () => onClickAction?.(), className: cn("", actionClassName), isDisabled: disabled, children: withAction }))] }));
43
- });
@@ -1 +0,0 @@
1
- export { Callout } from "./Callout";
@@ -1 +0,0 @@
1
- export { Callout } from "./Callout";
@@ -1,9 +0,0 @@
1
- /// <reference types="react/experimental" />
2
- import * as React from "react";
3
- declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
4
- declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
5
- declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
6
- declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
7
- declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
8
- declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
9
- export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
@@ -1,16 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import { cn } from "../../helpers/utils";
4
- const Card = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("rounded-xl border bg-card text-card-foreground shadow", className), ...props })));
5
- Card.displayName = "Card";
6
- const CardHeader = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })));
7
- CardHeader.displayName = "CardHeader";
8
- const CardTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx("h3", { ref: ref, className: cn("font-semibold leading-none tracking-tight", className), ...props })));
9
- CardTitle.displayName = "CardTitle";
10
- const CardDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx("p", { ref: ref, className: cn("text-sm text-muted-foreground", className), ...props })));
11
- CardDescription.displayName = "CardDescription";
12
- const CardContent = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("p-6 pt-0", className), ...props })));
13
- CardContent.displayName = "CardContent";
14
- const CardFooter = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("flex items-center p-6 pt-0", className), ...props })));
15
- CardFooter.displayName = "CardFooter";
16
- export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
@@ -1 +0,0 @@
1
- export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "./Card";
@@ -1 +0,0 @@
1
- export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "./Card";
@@ -1,40 +0,0 @@
1
- import * as React from "react";
2
- import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
3
- import { Primitive } from "@radix-ui/react-primitive";
4
- import type * as Radix from "@radix-ui/react-primitive";
5
- import type { Scope } from "@radix-ui/react-context";
6
- declare const createCheckboxScope: import("@radix-ui/react-context").CreateScope;
7
- type CheckedState = boolean | "indeterminate";
8
- type CheckboxContextValue = {
9
- state: CheckedState;
10
- disabled?: boolean;
11
- };
12
- export declare const CheckboxProvider: {
13
- (props: CheckboxContextValue & {
14
- scope: Scope<CheckboxContextValue>;
15
- children: React.ReactNode;
16
- }): JSX.Element;
17
- displayName: string;
18
- }, useCheckboxContext: (consumerName: string, scope: Scope<CheckboxContextValue | undefined>) => CheckboxContextValue;
19
- type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef<typeof Primitive.button>;
20
- interface CheckboxProps extends Omit<PrimitiveButtonProps, "checked" | "defaultChecked"> {
21
- checked?: CheckedState;
22
- defaultChecked?: CheckedState;
23
- required?: boolean;
24
- onCheckedChange?(checked: CheckedState): void;
25
- disabled?: boolean;
26
- }
27
- type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
28
- interface CheckboxIndicatorProps extends PrimitiveSpanProps {
29
- /**
30
- * Used to force mounting when more control is needed. Useful when
31
- * controlling animation with React animation libraries.
32
- */
33
- forceMount?: true;
34
- }
35
- declare const CheckboxIndicator: React.ForwardRefExoticComponent<CheckboxIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
36
- declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
37
- declare const Root: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
38
- declare const Indicator: React.ForwardRefExoticComponent<CheckboxIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
39
- export { Checkbox, CheckboxIndicator, createCheckboxScope, Root, Indicator };
40
- export type { CheckboxProps, CheckboxIndicatorProps };
@@ -1,36 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
4
- import { Check } from "lucide-react";
5
- import { Primitive } from "@radix-ui/react-primitive";
6
- import { createContextScope } from "@radix-ui/react-context";
7
- import { Presence } from "@radix-ui/react-presence";
8
- import { cn } from "../../helpers/utils";
9
- /* -------------------------------------------------------------------------------------------------
10
- * Checkbox
11
- * -----------------------------------------------------------------------------------------------*/
12
- const CHECKBOX_NAME = "Checkbox";
13
- const [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME);
14
- export const [CheckboxProvider, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);
15
- const INDICATOR_NAME = "CheckboxIndicator";
16
- function getState(checked) {
17
- return isIndeterminate(checked)
18
- ? "indeterminate"
19
- : checked
20
- ? "checked"
21
- : "unchecked";
22
- }
23
- const CheckboxIndicator = React.forwardRef((props, forwardedRef) => {
24
- const { __scopeCheckbox, forceMount, ...indicatorProps } = props;
25
- const context = useCheckboxContext(INDICATOR_NAME, __scopeCheckbox);
26
- return (_jsx(Presence, { present: forceMount || isIndeterminate(context.state) || context.state === true, children: _jsx(Primitive.span, { "data-state": getState(context.state), "data-disabled": context.disabled ? "" : undefined, ...indicatorProps, ref: forwardedRef, style: { pointerEvents: "none", ...props.style } }) }));
27
- });
28
- function isIndeterminate(checked) {
29
- return checked === "indeterminate";
30
- }
31
- CheckboxIndicator.displayName = INDICATOR_NAME;
32
- const Checkbox = React.forwardRef(({ className, ...props }, ref) => (_jsx(CheckboxPrimitive.Root, { ref: ref, className: cn("peer h-4 w-4 shrink-0 rounded-sm border-2 disabled:bg-gray-300 border-gray-300 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default disabled:opacity-50 data-[state=checked]:border-none disabled:data-[state=checked]:bg-gray-300 disabled:data-[state=checked]:text-gray-600 data-[state=checked]:bg-pink-500 data-[state=checked]:text-white", className), ...props, children: _jsx(CheckboxPrimitive.Indicator, { className: cn("flex items-center justify-center text-current"), children: _jsx(Check, { className: "h-3.5 w-3.5" }) }) })));
33
- Checkbox.displayName = CheckboxPrimitive.Root.displayName;
34
- const Root = Checkbox;
35
- const Indicator = CheckboxIndicator;
36
- export { Checkbox, CheckboxIndicator, createCheckboxScope, Root, Indicator };
@@ -1,2 +0,0 @@
1
- export { Root, Checkbox, CheckboxIndicator, createCheckboxScope, Indicator, } from "./Checkbox";
2
- export type { CheckboxProps, CheckboxIndicatorProps } from "./Checkbox";
@@ -1 +0,0 @@
1
- export { Root, Checkbox, CheckboxIndicator, createCheckboxScope, Indicator, } from "./Checkbox";
@@ -1,31 +0,0 @@
1
- import React, { ReactNode } from "react";
2
- interface ChoiceboxGroupProps {
3
- direction?: "row" | "col";
4
- label?: string;
5
- type: "checkbox" | "radio";
6
- value: string;
7
- disabled?: boolean;
8
- hiddenInput?: boolean;
9
- onChange: (value: string | boolean) => void;
10
- className?: string;
11
- }
12
- interface ChoiceboxGroupItemProps {
13
- description?: string;
14
- title?: string;
15
- value: string;
16
- type?: "checkbox" | "radio";
17
- name?: string;
18
- checked?: boolean;
19
- hiddenInput?: boolean;
20
- onChange?: (value: string | boolean) => void;
21
- disabled?: boolean;
22
- children?: ReactNode;
23
- classNameDescription?: string;
24
- classNameTitle?: string;
25
- className?: string;
26
- }
27
- export declare const ChoiceboxGroupItem: ({ title, description, value, type, name, checked, disabled, hiddenInput, classNameDescription, classNameTitle, className, onChange, children, }: ChoiceboxGroupItemProps) => import("react/jsx-runtime").JSX.Element;
28
- export declare const ChoiceboxGroup: ({ direction, label, type, value, children, disabled, hiddenInput, onChange, className, ...props }: ChoiceboxGroupProps & {
29
- children: React.ReactNode;
30
- }) => import("react/jsx-runtime").JSX.Element;
31
- export {};
@@ -1,62 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React, { useState } from "react";
3
- import { Checkbox } from "../Checkbox";
4
- import { cn } from "../../helpers/utils";
5
- import { Circle } from "lucide-react";
6
- export const ChoiceboxGroupItem = ({ title, description, value, type, name, checked, disabled, hiddenInput, classNameDescription, classNameTitle, className, onChange, children, }) => {
7
- const [checkedCheckbox, setCheckedCheckbox] = useState(false);
8
- const handleChange = (event) => {
9
- if (onChange) {
10
- onChange(event?.target?.value);
11
- }
12
- };
13
- const handleChangeCheckbox = (checked) => {
14
- setCheckedCheckbox(checked);
15
- onChange?.(checked);
16
- };
17
- return (_jsxs("label", { className: cn(" flex rounded-md cursor-pointer p-4 items-center space-x-6", checked || checkedCheckbox ? "mobase-focus" : "mobase-visible", disabled ? "opacity-60 bg-gray-100" : "", className), htmlFor: value, children: [!title && !description ? null : (_jsxs("div", { children: [_jsx("div", { className: cn("text-gray-900 text-sm select-none font-bold", classNameTitle), children: title }), _jsx("div", { className: cn("text-gray-900 select-none text-sm", classNameDescription), children: description })] })), children, type === "radio" ? (_jsxs("div", { className: cn("relative", hiddenInput ? "hidden" : ""), children: [_jsx("input", { "aria-checked": checked, "data-state": checked ? "checked" : "unchecked", checked: checked, type: "radio", value: value, name: name, id: value, disabled: disabled, onChange: handleChange, className: "custom-radio cursor-pointer aspect-square ml-auto h-4 w-4 rounded-full border border-gray-700 disabled:bg-gray-300 disabled:data-[state=checked]:text-gray-500 data-[state=checked]:text-white disabled:data-[state=checked]:bg-gray-300 data-[state=checked]:bg-pink-500 disabled:border-none data-[state=checked]:border-none text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default disabled:opacity-40" }), _jsx(Circle, { className: cn("h-2 w-2 absolute top-[6px] right-[4px] fill-white text-current transition-opacity", checked ? "opacti-100" : "opacity-0", disabled ? "fill-gray-300" : "") })] })) : (_jsx(Checkbox, { disabled: disabled, id: value, value: value, name: value, onCheckedChange: handleChangeCheckbox, className: cn("ml-auto", hiddenInput ? "hidden" : "") })), _jsx("style", { children: `
18
- .custom-radio {
19
- appearance: none;
20
- border: 1px solid #ccc;
21
- border-radius: 50%;
22
- width: 16px;
23
- height: 16px;
24
- position: relative;
25
- }
26
- .mobase-visible {
27
- box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
28
- }
29
-
30
- .mobase-focus {
31
- box-shadow: 0px 0px 0px 2px rgb(var(--mobase-pink-500) / 1) inset;
32
- }
33
- ` })] }));
34
- };
35
- export const ChoiceboxGroup = ({ direction = "row", label, type, value, children, disabled, hiddenInput, onChange, className, ...props }) => {
36
- const name = `choicebox-group-${label?.replace(/\s+/g, "-").toLowerCase()}`;
37
- return (_jsxs("div", { ...props, children: [_jsx("label", { children: label }), _jsx("ul", { className: cn("", className, direction
38
- ? "flex md:flex-row md:space-y-0 md:space-x-4 flex-col space-y-4"
39
- : "block"), children: React.Children?.map(children, (child) => {
40
- if (React.isValidElement(child)) {
41
- const updatedProps = {
42
- disabled: child.props.disabled ?? disabled,
43
- type,
44
- name,
45
- checked: child.props.value === value,
46
- hiddenInput,
47
- className: child.props.className,
48
- classNameTitle: child.props.classNameTitle,
49
- classNameDescription: child.props.classNameDescription,
50
- onChange,
51
- };
52
- const knownProps = Object.keys(updatedProps).reduce((acc, key) => {
53
- if (updatedProps[key] !== undefined) {
54
- acc[key] = updatedProps[key];
55
- }
56
- return acc;
57
- }, {});
58
- return React.cloneElement(child, knownProps);
59
- }
60
- return null;
61
- }) })] }));
62
- };
@@ -1 +0,0 @@
1
- export { ChoiceboxGroup, ChoiceboxGroupItem } from "./Choicebox";