@quan-erp/shared-ui 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (489) hide show
  1. package/README.md +90 -0
  2. package/dist/common/common.d.ts +2 -0
  3. package/dist/components/blocks/editor-00/editor.d.ts +8 -0
  4. package/dist/components/blocks/editor-00/nodes.d.ts +3 -0
  5. package/dist/components/blocks/editor-00/plugins.d.ts +2 -0
  6. package/dist/components/custom/confirm-dialog.d.ts +15 -0
  7. package/dist/components/custom/dashboard.d.ts +22 -0
  8. package/dist/components/custom/data-table/cursor-based-pagination.d.ts +9 -0
  9. package/dist/components/custom/data-table/data-table-bulk-action-menu.d.ts +9 -0
  10. package/dist/components/custom/data-table/data-table-bulk-export.d.ts +8 -0
  11. package/dist/components/custom/data-table/data-table-column-header.d.ts +9 -0
  12. package/dist/components/custom/data-table/data-table-grid.d.ts +21 -0
  13. package/dist/components/custom/data-table/data-table-group-by.types.d.ts +11 -0
  14. package/dist/components/custom/data-table/data-table-helper.d.ts +2 -0
  15. package/dist/components/custom/data-table/data-table-list-view.d.ts +13 -0
  16. package/dist/components/custom/data-table/data-table-page-size.d.ts +11 -0
  17. package/dist/components/custom/data-table/data-table-pagination.d.ts +9 -0
  18. package/dist/components/custom/data-table/data-table-toolbar.d.ts +26 -0
  19. package/dist/components/custom/data-table/data-table-util.d.ts +7 -0
  20. package/dist/components/custom/data-table/data-table-view-fallback.d.ts +2 -0
  21. package/dist/components/custom/data-table/data-table-view-options.d.ts +17 -0
  22. package/dist/components/custom/data-table/data-table-view-preferences.d.ts +22 -0
  23. package/dist/components/custom/data-table/data-table-view-preferences.storage.d.ts +15 -0
  24. package/dist/components/custom/data-table/data-table-wrapper.d.ts +51 -0
  25. package/dist/components/custom/data-table/data-table.d.ts +47 -0
  26. package/dist/components/custom/data-table/export.d.ts +22 -0
  27. package/dist/components/custom/data-table/group-table-rows.d.ts +3 -0
  28. package/dist/components/custom/data-table/types.d.ts +17 -0
  29. package/dist/components/custom/data-table/use-data-table-page-size.d.ts +41 -0
  30. package/dist/components/custom/document-title.d.ts +4 -0
  31. package/dist/components/custom/empty-screen.d.ts +8 -0
  32. package/dist/components/custom/error-screen.d.ts +9 -0
  33. package/dist/components/custom/floating-action-btn.d.ts +39 -0
  34. package/dist/components/custom/index.d.ts +20 -0
  35. package/dist/components/custom/loading-screen.d.ts +7 -0
  36. package/dist/components/custom/menu-tab.d.ts +17 -0
  37. package/dist/components/custom/page.d.ts +35 -0
  38. package/dist/components/custom/plugin-theme.d.ts +8 -0
  39. package/dist/components/custom/portal.d.ts +4 -0
  40. package/dist/components/custom/protected-page.d.ts +26 -0
  41. package/dist/components/custom/pull-to-refresh.d.ts +16 -0
  42. package/dist/components/custom/render-in-view.d.ts +12 -0
  43. package/dist/components/custom/responsive-dialog.d.ts +47 -0
  44. package/dist/components/custom/safearea.d.ts +5 -0
  45. package/dist/components/custom/scrollable.d.ts +17 -0
  46. package/dist/components/custom/search-and-filter-suite.d.ts +16 -0
  47. package/dist/components/custom/setting.d.ts +30 -0
  48. package/dist/components/custom/submenu-hub.d.ts +17 -0
  49. package/dist/components/editor/editor-ui/content-editable.d.ts +9 -0
  50. package/dist/components/editor/themes/editor-theme.d.ts +3 -0
  51. package/dist/components/ui/accordion.d.ts +8 -0
  52. package/dist/components/ui/alert-dialog.d.ts +19 -0
  53. package/dist/components/ui/alert.d.ts +9 -0
  54. package/dist/components/ui/avatar.d.ts +7 -0
  55. package/dist/components/ui/badge.d.ts +10 -0
  56. package/dist/components/ui/breadcrumb.d.ts +20 -0
  57. package/dist/components/ui/button-group.d.ts +12 -0
  58. package/dist/components/ui/button.d.ts +11 -0
  59. package/dist/components/ui/calendar.d.ts +12 -0
  60. package/dist/components/ui/card.d.ts +10 -0
  61. package/dist/components/ui/carousel.d.ts +29 -0
  62. package/dist/components/ui/chart.d.ts +63 -0
  63. package/dist/components/ui/checkbox.d.ts +5 -0
  64. package/dist/components/ui/collapsible.d.ts +6 -0
  65. package/dist/components/ui/command.d.ts +81 -0
  66. package/dist/components/ui/context-menu.d.ts +28 -0
  67. package/dist/components/ui/dialog.d.ts +16 -0
  68. package/dist/components/ui/drawer.d.ts +23 -0
  69. package/dist/components/ui/dropdown-menu.d.ts +28 -0
  70. package/dist/components/ui/field.d.ts +25 -0
  71. package/dist/components/ui/form.d.ts +26 -0
  72. package/dist/components/ui/hover-card.d.ts +7 -0
  73. package/dist/components/ui/index.d.ts +54 -0
  74. package/dist/components/ui/input-group.d.ts +17 -0
  75. package/dist/components/ui/input-otp.d.ts +35 -0
  76. package/dist/components/ui/input.d.ts +10 -0
  77. package/dist/components/ui/item.d.ts +24 -0
  78. package/dist/components/ui/kbd.d.ts +4 -0
  79. package/dist/components/ui/label.d.ts +5 -0
  80. package/dist/components/ui/menubar.d.ts +29 -0
  81. package/dist/components/ui/navigation-menu.d.ts +13 -0
  82. package/dist/components/ui/pagination.d.ts +28 -0
  83. package/dist/components/ui/popover.d.ts +8 -0
  84. package/dist/components/ui/progress.d.ts +5 -0
  85. package/dist/components/ui/radio-group.d.ts +6 -0
  86. package/dist/components/ui/resizable.d.ts +24 -0
  87. package/dist/components/ui/scroll-area.d.ts +6 -0
  88. package/dist/components/ui/select.d.ts +14 -0
  89. package/dist/components/ui/separator.d.ts +5 -0
  90. package/dist/components/ui/sheet.d.ts +16 -0
  91. package/dist/components/ui/sidebar.d.ts +71 -0
  92. package/dist/components/ui/skeleton.d.ts +3 -0
  93. package/dist/components/ui/slider.d.ts +12 -0
  94. package/dist/components/ui/sonner.d.ts +6 -0
  95. package/dist/components/ui/spinner.d.ts +9 -0
  96. package/dist/components/ui/switch.d.ts +11 -0
  97. package/dist/components/ui/table.d.ts +14 -0
  98. package/dist/components/ui/tabs.d.ts +16 -0
  99. package/dist/components/ui/textarea.d.ts +10 -0
  100. package/dist/components/ui/time-picker.d.ts +13 -0
  101. package/dist/components/ui/toggle-group.d.ts +13 -0
  102. package/dist/components/ui/toggle.d.ts +10 -0
  103. package/dist/components/ui/tooltip.d.ts +8 -0
  104. package/dist/es/common/common.js +4 -0
  105. package/dist/es/components/blocks/editor-00/editor.js +49 -0
  106. package/dist/es/components/blocks/editor-00/nodes.js +6 -0
  107. package/dist/es/components/blocks/editor-00/plugins.js +23 -0
  108. package/dist/es/components/custom/confirm-dialog.js +34 -0
  109. package/dist/es/components/custom/dashboard.js +86 -0
  110. package/dist/es/components/custom/data-table/cursor-based-pagination.js +123 -0
  111. package/dist/es/components/custom/data-table/data-table-bulk-action-menu.js +112 -0
  112. package/dist/es/components/custom/data-table/data-table-bulk-export.js +76 -0
  113. package/dist/es/components/custom/data-table/data-table-column-header.js +102 -0
  114. package/dist/es/components/custom/data-table/data-table-grid.js +234 -0
  115. package/dist/es/components/custom/data-table/data-table-helper.js +8 -0
  116. package/dist/es/components/custom/data-table/data-table-list-view.js +121 -0
  117. package/dist/es/components/custom/data-table/data-table-page-size.js +49 -0
  118. package/dist/es/components/custom/data-table/data-table-pagination.js +156 -0
  119. package/dist/es/components/custom/data-table/data-table-toolbar.js +149 -0
  120. package/dist/es/components/custom/data-table/data-table-util.js +31 -0
  121. package/dist/es/components/custom/data-table/data-table-view-fallback.js +7 -0
  122. package/dist/es/components/custom/data-table/data-table-view-options.js +311 -0
  123. package/dist/es/components/custom/data-table/data-table-view-preferences.js +71 -0
  124. package/dist/es/components/custom/data-table/data-table-view-preferences.storage.js +115 -0
  125. package/dist/es/components/custom/data-table/data-table.js +425 -0
  126. package/dist/es/components/custom/data-table/group-table-rows.js +16 -0
  127. package/dist/es/components/custom/data-table/use-data-table-page-size.js +155 -0
  128. package/dist/es/components/custom/empty-screen.js +28 -0
  129. package/dist/es/components/custom/error-screen.js +84 -0
  130. package/dist/es/components/custom/floating-action-btn.js +200 -0
  131. package/dist/es/components/custom/loading-screen.js +26 -0
  132. package/dist/es/components/custom/menu-tab.js +45 -0
  133. package/dist/es/components/custom/page.js +105 -0
  134. package/dist/es/components/custom/plugin-theme.js +13 -0
  135. package/dist/es/components/custom/portal.js +13 -0
  136. package/dist/es/components/custom/protected-page.js +74 -0
  137. package/dist/es/components/custom/pull-to-refresh.js +378 -0
  138. package/dist/es/components/custom/render-in-view.js +35 -0
  139. package/dist/es/components/custom/responsive-dialog.js +163 -0
  140. package/dist/es/components/custom/safearea.js +8 -0
  141. package/dist/es/components/custom/scrollable.js +96 -0
  142. package/dist/es/components/custom/setting.js +39 -0
  143. package/dist/es/components/editor/editor-ui/content-editable.js +26 -0
  144. package/dist/es/components/editor/themes/editor-theme.js +119 -0
  145. package/dist/es/components/ui/accordion.js +47 -0
  146. package/dist/es/components/ui/alert-dialog.js +178 -0
  147. package/dist/es/components/ui/alert.js +51 -0
  148. package/dist/es/components/ui/avatar.js +42 -0
  149. package/dist/es/components/ui/badge.js +27 -0
  150. package/dist/es/components/ui/breadcrumb.js +93 -0
  151. package/dist/es/components/ui/button-group.js +76 -0
  152. package/dist/es/components/ui/button.js +57 -0
  153. package/dist/es/components/ui/calendar.js +402 -0
  154. package/dist/es/components/ui/card.js +91 -0
  155. package/dist/es/components/ui/carousel.js +194 -0
  156. package/dist/es/components/ui/chart.js +239 -0
  157. package/dist/es/components/ui/checkbox.js +27 -0
  158. package/dist/es/components/ui/collapsible.js +9 -0
  159. package/dist/es/components/ui/command.js +115 -0
  160. package/dist/es/components/ui/context-menu.js +153 -0
  161. package/dist/es/components/ui/dialog.js +137 -0
  162. package/dist/es/components/ui/drawer.js +107 -0
  163. package/dist/es/components/ui/dropdown-menu.js +152 -0
  164. package/dist/es/components/ui/field.js +226 -0
  165. package/dist/es/components/ui/form.js +109 -0
  166. package/dist/es/components/ui/hover-card.js +25 -0
  167. package/dist/es/components/ui/input-group.js +155 -0
  168. package/dist/es/components/ui/input-otp.js +49 -0
  169. package/dist/es/components/ui/input.js +37 -0
  170. package/dist/es/components/ui/item.js +188 -0
  171. package/dist/es/components/ui/kbd.js +31 -0
  172. package/dist/es/components/ui/label.js +23 -0
  173. package/dist/es/components/ui/menubar.js +202 -0
  174. package/dist/es/components/ui/navigation-menu.js +107 -0
  175. package/dist/es/components/ui/pagination.js +101 -0
  176. package/dist/es/components/ui/popover.js +27 -0
  177. package/dist/es/components/ui/progress.js +26 -0
  178. package/dist/es/components/ui/radio-group.js +35 -0
  179. package/dist/es/components/ui/resizable.js +38 -0
  180. package/dist/es/components/ui/scroll-area.js +38 -0
  181. package/dist/es/components/ui/select.js +124 -0
  182. package/dist/es/components/ui/separator.js +27 -0
  183. package/dist/es/components/ui/sheet.js +129 -0
  184. package/dist/es/components/ui/sidebar.js +604 -0
  185. package/dist/es/components/ui/skeleton.js +17 -0
  186. package/dist/es/components/ui/slider.js +62 -0
  187. package/dist/es/components/ui/sonner.js +26 -0
  188. package/dist/es/components/ui/spinner.js +34 -0
  189. package/dist/es/components/ui/switch.js +54 -0
  190. package/dist/es/components/ui/table.js +90 -0
  191. package/dist/es/components/ui/tabs.js +84 -0
  192. package/dist/es/components/ui/textarea.js +32 -0
  193. package/dist/es/components/ui/time-picker.js +199 -0
  194. package/dist/es/components/ui/toggle-group.js +43 -0
  195. package/dist/es/components/ui/toggle.js +44 -0
  196. package/dist/es/components/ui/tooltip.js +56 -0
  197. package/dist/es/hooks/use-debounce-value.js +16 -0
  198. package/dist/es/hooks/use-is-inview.js +25 -0
  199. package/dist/es/hooks/use-mobile-back-dialog.js +34 -0
  200. package/dist/es/hooks/use-mobile.js +43 -0
  201. package/dist/es/hooks/use-mounted.js +14 -0
  202. package/dist/es/hooks/use-scroll-direction.js +26 -0
  203. package/dist/es/hooks/use-user-hand-behavior.js +20 -0
  204. package/dist/es/index.d.ts +2 -0
  205. package/dist/es/index.js +487 -0
  206. package/dist/es/lib/utils.js +8 -0
  207. package/dist/es/locale/locale.js +87 -0
  208. package/dist/es/node_modules/@tanstack/react-table/build/lib/index.js +93 -0
  209. package/dist/es/node_modules/@tanstack/table-core/build/lib/index.js +2737 -0
  210. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +85 -0
  211. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +49 -0
  212. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +86 -0
  213. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +19 -0
  214. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +14 -0
  215. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +5 -0
  216. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/context/LazyContext.js +5 -0
  217. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +9 -0
  218. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/context/MotionContext/create.js +13 -0
  219. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/context/MotionContext/index.js +5 -0
  220. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +15 -0
  221. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/context/PresenceContext.js +5 -0
  222. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +5 -0
  223. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/events/add-pointer-event.js +8 -0
  224. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/events/event-info.js +14 -0
  225. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +432 -0
  226. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/gestures/drag/index.js +38 -0
  227. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +93 -0
  228. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/gestures/focus.js +35 -0
  229. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/gestures/hover.js +31 -0
  230. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +215 -0
  231. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/gestures/pan/index.js +50 -0
  232. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/gestures/press.js +38 -0
  233. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +60 -0
  234. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/motion/features/animation/index.js +40 -0
  235. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/motion/features/animations.js +13 -0
  236. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/motion/features/definitions.js +42 -0
  237. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/motion/features/drag.js +17 -0
  238. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/motion/features/gestures.js +21 -0
  239. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +111 -0
  240. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/motion/features/layout.js +11 -0
  241. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/motion/features/load-features.js +15 -0
  242. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +64 -0
  243. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +33 -0
  244. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/motion/index.js +69 -0
  245. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/motion/utils/symbol.js +4 -0
  246. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +35 -0
  247. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +106 -0
  248. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +66 -0
  249. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +39 -0
  250. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/render/components/create-proxy.js +35 -0
  251. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +13 -0
  252. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +7 -0
  253. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +13 -0
  254. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/render/dom/use-render.js +21 -0
  255. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +31 -0
  256. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +29 -0
  257. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +10 -0
  258. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/render/html/use-props.js +44 -0
  259. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
  260. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +30 -0
  261. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/render/svg/use-props.js +24 -0
  262. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +10 -0
  263. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +8 -0
  264. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/utils/distance.js +10 -0
  265. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/utils/get-context-window.js +6 -0
  266. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/utils/is-browser.js +4 -0
  267. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/utils/is-ref-object.js +6 -0
  268. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +38 -0
  269. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/utils/use-constant.js +11 -0
  270. package/dist/es/shared-ui/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +6 -0
  271. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +153 -0
  272. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/JSAnimation.js +294 -0
  273. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +160 -0
  274. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +51 -0
  275. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/animate/single-value.js +11 -0
  276. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/drivers/frame.js +17 -0
  277. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/generators/inertia.js +67 -0
  278. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +37 -0
  279. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/generators/spring.js +246 -0
  280. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +15 -0
  281. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +16 -0
  282. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
  283. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +9 -0
  284. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +69 -0
  285. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +78 -0
  286. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +36 -0
  287. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +22 -0
  288. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +107 -0
  289. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +131 -0
  290. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +10 -0
  291. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +9 -0
  292. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +12 -0
  293. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +6 -0
  294. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +8 -0
  295. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +13 -0
  296. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +22 -0
  297. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +43 -0
  298. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +7 -0
  299. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +7 -0
  300. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +27 -0
  301. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +10 -0
  302. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +31 -0
  303. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +31 -0
  304. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +33 -0
  305. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +11 -0
  306. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +16 -0
  307. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +20 -0
  308. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +22 -0
  309. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +7 -0
  310. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +18 -0
  311. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +10 -0
  312. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +4 -0
  313. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +21 -0
  314. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +15 -0
  315. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +26 -0
  316. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +36 -0
  317. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +12 -0
  318. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +14 -0
  319. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +12 -0
  320. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +11 -0
  321. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +19 -0
  322. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/events/add-dom-event.js +7 -0
  323. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/frameloop/batcher.js +67 -0
  324. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/frameloop/frame.js +9 -0
  325. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/frameloop/microtask.js +5 -0
  326. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/frameloop/order.js +21 -0
  327. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/frameloop/render-step.js +64 -0
  328. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/frameloop/sync-time.js +21 -0
  329. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +11 -0
  330. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +25 -0
  331. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/gestures/hover.js +62 -0
  332. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/gestures/press/index.js +62 -0
  333. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +18 -0
  334. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +32 -0
  335. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
  336. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +12 -0
  337. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +10 -0
  338. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/gestures/utils/setup.js +15 -0
  339. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +60 -0
  340. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +26 -0
  341. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/geometry/copy.js +19 -0
  342. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +86 -0
  343. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +57 -0
  344. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +40 -0
  345. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/geometry/models.js +21 -0
  346. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/geometry/utils.js +34 -0
  347. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +13 -0
  348. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +28 -0
  349. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +1124 -0
  350. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/node/state.js +15 -0
  351. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/shared/stack.js +83 -0
  352. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +26 -0
  353. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +25 -0
  354. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +21 -0
  355. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/styles/transform.js +38 -0
  356. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +4 -0
  357. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +6 -0
  358. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +24 -0
  359. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +20 -0
  360. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/projection/utils/measure.js +18 -0
  361. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/Feature.js +11 -0
  362. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/VisualElement.js +426 -0
  363. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +37 -0
  364. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +4 -0
  365. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +83 -0
  366. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/dom/style-set.js +7 -0
  367. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +6 -0
  368. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +40 -0
  369. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +42 -0
  370. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +53 -0
  371. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/html/utils/render.js +14 -0
  372. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +18 -0
  373. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/store.js +4 -0
  374. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +45 -0
  375. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +59 -0
  376. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +28 -0
  377. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +4 -0
  378. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/svg/utils/path.js +17 -0
  379. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/svg/utils/render.js +12 -0
  380. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +16 -0
  381. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/utils/animation-state.js +223 -0
  382. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +26 -0
  383. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +6 -0
  384. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +13 -0
  385. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +9 -0
  386. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +6 -0
  387. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +6 -0
  388. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/utils/keys-position.js +13 -0
  389. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +24 -0
  390. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/utils/motion-values.js +33 -0
  391. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +20 -0
  392. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +6 -0
  393. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +8 -0
  394. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +25 -0
  395. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/utils/setters.js +25 -0
  396. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +15 -0
  397. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/render/utils/variant-props.js +14 -0
  398. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/resize/handle-element.js +61 -0
  399. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/resize/handle-window.js +31 -0
  400. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/resize/index.js +8 -0
  401. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/utils/delay.js +17 -0
  402. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/utils/interpolate.js +53 -0
  403. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/utils/is-html-element.js +7 -0
  404. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/utils/is-svg-element.js +7 -0
  405. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +7 -0
  406. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/utils/mix/color.js +44 -0
  407. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/utils/mix/complex.js +83 -0
  408. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/utils/mix/immediate.js +6 -0
  409. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/utils/mix/index.js +12 -0
  410. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/utils/mix/number.js +6 -0
  411. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/utils/mix/visibility.js +12 -0
  412. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/utils/resolve-elements.js +16 -0
  413. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/utils/supports/flags.js +4 -0
  414. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +12 -0
  415. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/utils/supports/memo.js +9 -0
  416. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +5 -0
  417. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/index.js +286 -0
  418. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/auto.js +7 -0
  419. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/color/hex.js +37 -0
  420. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +39 -0
  421. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/color/hsla.js +14 -0
  422. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/color/index.js +26 -0
  423. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/color/rgba.js +18 -0
  424. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/color/utils.js +21 -0
  425. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/complex/filter.js +27 -0
  426. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/complex/index.js +91 -0
  427. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/complex/mask.js +12 -0
  428. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/dimensions.js +10 -0
  429. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/int.js +8 -0
  430. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +28 -0
  431. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/maps/number.js +70 -0
  432. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/maps/transform.js +37 -0
  433. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/numbers/index.js +19 -0
  434. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/numbers/units.js +23 -0
  435. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/test.js +4 -0
  436. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +14 -0
  437. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +4 -0
  438. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/utils/find.js +9 -0
  439. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +4 -0
  440. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +6 -0
  441. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +6 -0
  442. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +4 -0
  443. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +4 -0
  444. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +4 -0
  445. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +7 -0
  446. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +15 -0
  447. package/dist/es/shared-ui/node_modules/motion-dom/dist/es/value/will-change/is.js +7 -0
  448. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/array.js +13 -0
  449. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/clamp.js +10 -0
  450. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/easing/anticipate.js +5 -0
  451. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/easing/back.js +11 -0
  452. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/easing/circ.js +10 -0
  453. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +29 -0
  454. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/easing/ease.js +9 -0
  455. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +4 -0
  456. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +4 -0
  457. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +4 -0
  458. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +6 -0
  459. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/easing/utils/map.js +38 -0
  460. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/errors.js +21 -0
  461. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/format-error-message.js +6 -0
  462. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/global-config.js +4 -0
  463. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/is-numerical-string.js +4 -0
  464. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/is-object.js +4 -0
  465. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/is-zero-value-string.js +4 -0
  466. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/memo.js +12 -0
  467. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/noop.js +4 -0
  468. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/pipe.js +4 -0
  469. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/progress.js +7 -0
  470. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/subscription-manager.js +32 -0
  471. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/time-conversion.js +6 -0
  472. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/velocity-per-second.js +4 -0
  473. package/dist/es/shared-ui/node_modules/motion-utils/dist/es/warn-once.js +11 -0
  474. package/dist/es/shared-ui.css +95 -0
  475. package/dist/hooks/index.d.ts +8 -0
  476. package/dist/hooks/use-debounce-value.d.ts +2 -0
  477. package/dist/hooks/use-inview.d.ts +7 -0
  478. package/dist/hooks/use-is-inview.d.ts +7 -0
  479. package/dist/hooks/use-mobile-back-dialog.d.ts +6 -0
  480. package/dist/hooks/use-mobile.d.ts +9 -0
  481. package/dist/hooks/use-mounted.d.ts +2 -0
  482. package/dist/hooks/use-scroll-direction.d.ts +3 -0
  483. package/dist/hooks/use-user-hand-behavior.d.ts +7 -0
  484. package/dist/index.d.ts +13 -0
  485. package/dist/lib/index.d.ts +2 -0
  486. package/dist/lib/utils.d.ts +3 -0
  487. package/dist/locale/index.d.ts +2 -0
  488. package/dist/locale/locale.d.ts +26 -0
  489. package/package.json +118 -0
@@ -0,0 +1,96 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { cn } from "../../lib/utils.js";
3
+ import { forwardRef, useRef } from "react";
4
+ const InfiniteScrollableDiv = forwardRef(
5
+ ({
6
+ className,
7
+ hasNext,
8
+ isLoading,
9
+ loadingComponent,
10
+ onScroll,
11
+ onEnd,
12
+ children,
13
+ pullThreshold = 60,
14
+ endThreshold = 2,
15
+ onPullRefresh,
16
+ pullIndicator
17
+ }, externalRef) => {
18
+ const internalRef = useRef(null);
19
+ const pullDistanceRef = useRef(0);
20
+ const startYRef = useRef(null);
21
+ const isRefreshingRef = useRef(false);
22
+ const pullIndicatorRef = useRef(null);
23
+ const onScrollEvt = async (event) => {
24
+ const div = internalRef.current;
25
+ if (!div) return;
26
+ onScroll(event);
27
+ const { scrollTop, clientHeight, scrollHeight } = div;
28
+ if (hasNext && !isLoading && scrollTop + clientHeight >= scrollHeight - endThreshold) {
29
+ await onEnd?.();
30
+ }
31
+ };
32
+ const setRef = (node) => {
33
+ internalRef.current = node;
34
+ if (typeof externalRef === "function") externalRef(node);
35
+ else if (externalRef) externalRef.current = node;
36
+ };
37
+ const handleTouchStart = (e) => {
38
+ if (internalRef.current?.scrollTop === 0 && !isRefreshingRef.current) {
39
+ startYRef.current = e.touches[0].clientY;
40
+ }
41
+ };
42
+ const handleTouchMove = (e) => {
43
+ if (startYRef.current === null) return;
44
+ const distance = e.touches[0].clientY - startYRef.current;
45
+ if (distance > 0) {
46
+ e.preventDefault();
47
+ pullDistanceRef.current = distance * 0.5;
48
+ if (internalRef.current) internalRef.current.style.transform = `translateY(${pullDistanceRef.current}px)`;
49
+ if (pullIndicatorRef.current) pullIndicatorRef.current.style.height = `${pullDistanceRef.current}px`;
50
+ }
51
+ };
52
+ const handleTouchEnd = async () => {
53
+ if (pullDistanceRef.current >= pullThreshold && onPullRefresh && !isRefreshingRef.current) {
54
+ isRefreshingRef.current = true;
55
+ if (internalRef.current) internalRef.current.style.transform = `translateY(0px)`;
56
+ if (pullIndicatorRef.current) pullIndicatorRef.current.style.height = `50px`;
57
+ await onPullRefresh();
58
+ if (pullIndicatorRef.current) pullIndicatorRef.current.style.height = `0px`;
59
+ isRefreshingRef.current = false;
60
+ } else {
61
+ if (internalRef.current) internalRef.current.style.transform = `translateY(0px)`;
62
+ if (pullIndicatorRef.current) pullIndicatorRef.current.style.height = `0px`;
63
+ }
64
+ pullDistanceRef.current = 0;
65
+ startYRef.current = null;
66
+ };
67
+ return /* @__PURE__ */ jsxs(
68
+ "div",
69
+ {
70
+ ref: setRef,
71
+ onScroll: onScrollEvt,
72
+ onTouchStart: handleTouchStart,
73
+ onTouchMove: handleTouchMove,
74
+ onTouchEnd: handleTouchEnd,
75
+ className: cn("shared:overflow-auto shared:relative", className),
76
+ children: [
77
+ /* @__PURE__ */ jsx(
78
+ "div",
79
+ {
80
+ ref: pullIndicatorRef,
81
+ className: "shared:absolute shared:top-0 shared:left-0 shared:right-0 shared:flex shared:justify-center shared:items-center shared:overflow-hidden",
82
+ style: { height: 0 },
83
+ children: pullIndicator ?? /* @__PURE__ */ jsx("span", { children: "Pull to refresh" })
84
+ }
85
+ ),
86
+ children,
87
+ isLoading && loadingComponent
88
+ ]
89
+ }
90
+ );
91
+ }
92
+ );
93
+ InfiniteScrollableDiv.displayName = "ScrollableDiv";
94
+ export {
95
+ InfiniteScrollableDiv
96
+ };
@@ -0,0 +1,39 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ function SettingCardFooter({ children }) {
3
+ return /* @__PURE__ */ jsx("div", { className: "shared:text-[0.8rem] shared:opacity-65", children });
4
+ }
5
+ function SettingCardHeader({ children }) {
6
+ return /* @__PURE__ */ jsx("div", { className: "shared:flex shared:flex-col", children });
7
+ }
8
+ function SettingSectionTitle({ children }) {
9
+ return /* @__PURE__ */ jsx("h4", { className: "shared:font-bold shared:text-primary shared:sticky shared:top-0 shared:p-3 shared:bg-muted shared:z-2", children });
10
+ }
11
+ function SettingCardContent({ children }) {
12
+ return /* @__PURE__ */ jsx("div", { className: "shared:flex shared:flex-col shared:gap-1", children });
13
+ }
14
+ function SettingCard({ children }) {
15
+ return /* @__PURE__ */ jsx("div", { className: "shared:px-3 shared:py-4 shared:gap-3 shared:flex shared:flex-col shared:border shared:rounded-2xl shared:border-black/5", children });
16
+ }
17
+ function SettingCardTitle({ children }) {
18
+ return /* @__PURE__ */ jsx("div", { className: "shared:font-bold shared:text-[1.1rem]", children });
19
+ }
20
+ function SettingCardSubtitle({ children }) {
21
+ return /* @__PURE__ */ jsx("div", { className: "shared:text-[0.8rem] shared:opacity-65", children });
22
+ }
23
+ function SettingCardLabel({ children }) {
24
+ return /* @__PURE__ */ jsx("div", { className: "shared:font-bold shared:text-[0.9rem]", children });
25
+ }
26
+ function SettingSection({ children, hyperLink }) {
27
+ return /* @__PURE__ */ jsx("div", { id: hyperLink, className: "shared:flex shared:flex-col shared:gap-[1rem] shared:h-max", children });
28
+ }
29
+ export {
30
+ SettingCard,
31
+ SettingCardContent,
32
+ SettingCardFooter,
33
+ SettingCardHeader,
34
+ SettingCardLabel,
35
+ SettingCardSubtitle,
36
+ SettingCardTitle,
37
+ SettingSection,
38
+ SettingSectionTitle
39
+ };
@@ -0,0 +1,26 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import "react";
3
+ import { ContentEditable as ContentEditable$1 } from "@lexical/react/LexicalContentEditable";
4
+ function ContentEditable({
5
+ placeholder,
6
+ className,
7
+ placeholderClassName
8
+ }) {
9
+ return /* @__PURE__ */ jsx(
10
+ ContentEditable$1,
11
+ {
12
+ className: className ?? `ContentEditable__root shared:relative shared:block shared:min-h-72 shared:min-h-full shared:overflow-auto shared:px-8 shared:py-4 shared:focus:outline-none`,
13
+ "aria-placeholder": placeholder,
14
+ placeholder: /* @__PURE__ */ jsx(
15
+ "div",
16
+ {
17
+ className: placeholderClassName ?? `shared:text-muted-foreground shared:pointer-events-none shared:absolute shared:top-0 shared:left-0 shared:overflow-hidden shared:px-8 shared:py-[18px] shared:text-ellipsis shared:select-none`,
18
+ children: placeholder
19
+ }
20
+ )
21
+ }
22
+ );
23
+ }
24
+ export {
25
+ ContentEditable
26
+ };
@@ -0,0 +1,119 @@
1
+ import "lexical";
2
+ /* empty css */
3
+ const editorTheme = {
4
+ ltr: "shared:text-left",
5
+ rtl: "shared:text-right",
6
+ heading: {
7
+ h1: "shared:scroll-m-20 shared:text-4xl shared:font-extrabold shared:tracking-tight shared:lg:text-5xl",
8
+ h2: "shared:scroll-m-20 shared:border-b shared:pb-2 shared:text-3xl shared:font-semibold shared:tracking-tight shared:first:mt-0",
9
+ h3: "shared:scroll-m-20 shared:text-2xl shared:font-semibold shared:tracking-tight",
10
+ h4: "shared:scroll-m-20 shared:text-xl shared:font-semibold shared:tracking-tight",
11
+ h5: "shared:scroll-m-20 shared:text-lg shared:font-semibold shared:tracking-tight",
12
+ h6: "shared:scroll-m-20 shared:text-base shared:font-semibold shared:tracking-tight"
13
+ },
14
+ paragraph: "shared:leading-7 [&:not(:first-child)shared:]:mt-6",
15
+ quote: "shared:mt-6 shared:border-l-2 shared:pl-6 shared:italic",
16
+ link: "shared:text-blue-600 shared:hover:underline shared:hover:cursor-pointer",
17
+ list: {
18
+ checklist: "shared:relative",
19
+ listitem: "shared:mx-8",
20
+ listitemChecked: 'shared:relative shared:mx-2 shared:px-6 shared:list-none shared:outline-none shared:line-through shared:before:content-[""] shared:before:w-4 shared:before:h-4 shared:before:top-0.5 shared:before:left-0 shared:before:cursor-pointer shared:before:block shared:before:bg-cover shared:before:absolute shared:before:border shared:before:border-primary shared:before:rounded shared:before:bg-primary shared:before:bg-no-repeat shared:after:content-[""] shared:after:cursor-pointer shared:after:border-white shared:after:border-solid shared:after:absolute shared:after:block shared:after:top-[6px] shared:after:w-[3px] shared:after:left-[7px] shared:after:right-[7px] shared:after:h-[6px] shared:after:rotate-45 shared:after:border-r-2 shared:after:border-b-2 shared:after:border-l-0 shared:after:border-t-0',
21
+ listitemUnchecked: 'shared:relative shared:mx-2 shared:px-6 shared:list-none shared:outline-none shared:before:content-[""] shared:before:w-4 shared:before:h-4 shared:before:top-0.5 shared:before:left-0 shared:before:cursor-pointer shared:before:block shared:before:bg-cover shared:before:absolute shared:before:border shared:before:border-primary shared:before:rounded',
22
+ nested: {
23
+ listitem: "shared:list-none shared:before:hidden shared:after:hidden"
24
+ },
25
+ ol: "shared:m-0 shared:p-0 shared:list-decimal [&>shared:li]:mt-2",
26
+ olDepth: [
27
+ "shared:list-outside !shared:list-decimal",
28
+ "shared:list-outside !shared:list-[upper-roman]",
29
+ "shared:list-outside !shared:list-[lower-roman]",
30
+ "shared:list-outside !shared:list-[upper-alpha]",
31
+ "shared:list-outside !shared:list-[lower-alpha]"
32
+ ],
33
+ ul: "shared:m-0 shared:p-0 shared:list-outside [&>shared:li]:mt-2",
34
+ ulDepth: [
35
+ "shared:list-outside !shared:list-disc",
36
+ "shared:list-outside !shared:list-disc",
37
+ "shared:list-outside !shared:list-disc",
38
+ "shared:list-outside !shared:list-disc",
39
+ "shared:list-outside !shared:list-disc"
40
+ ]
41
+ },
42
+ hashtag: "shared:text-blue-600 shared:bg-blue-100 shared:rounded-md shared:px-1",
43
+ text: {
44
+ bold: "shared:font-bold",
45
+ code: "shared:bg-gray-100 shared:p-1 shared:rounded-md",
46
+ italic: "shared:italic",
47
+ strikethrough: "shared:line-through",
48
+ subscript: "shared:sub",
49
+ superscript: "shared:sup",
50
+ underline: "shared:underline",
51
+ underlineStrikethrough: "shared:[text-decoration:underline_line-through]"
52
+ },
53
+ image: "shared:relative shared:inline-block shared:user-select-none shared:cursor-default editor-image",
54
+ inlineImage: "shared:relative shared:inline-block shared:user-select-none shared:cursor-default inline-editor-image",
55
+ keyword: "shared:text-purple-900 shared:font-bold",
56
+ code: "EditorTheme__code",
57
+ codeHighlight: {
58
+ atrule: "EditorTheme__tokenAttr",
59
+ attr: "EditorTheme__tokenAttr",
60
+ boolean: "EditorTheme__tokenProperty",
61
+ builtin: "EditorTheme__tokenSelector",
62
+ cdata: "EditorTheme__tokenComment",
63
+ char: "EditorTheme__tokenSelector",
64
+ class: "EditorTheme__tokenFunction",
65
+ "class-name": "EditorTheme__tokenFunction",
66
+ comment: "EditorTheme__tokenComment",
67
+ constant: "EditorTheme__tokenProperty",
68
+ deleted: "EditorTheme__tokenProperty",
69
+ doctype: "EditorTheme__tokenComment",
70
+ entity: "EditorTheme__tokenOperator",
71
+ function: "EditorTheme__tokenFunction",
72
+ important: "EditorTheme__tokenVariable",
73
+ inserted: "EditorTheme__tokenSelector",
74
+ keyword: "EditorTheme__tokenAttr",
75
+ namespace: "EditorTheme__tokenVariable",
76
+ number: "EditorTheme__tokenProperty",
77
+ operator: "EditorTheme__tokenOperator",
78
+ prolog: "EditorTheme__tokenComment",
79
+ property: "EditorTheme__tokenProperty",
80
+ punctuation: "EditorTheme__tokenPunctuation",
81
+ regex: "EditorTheme__tokenVariable",
82
+ selector: "EditorTheme__tokenSelector",
83
+ string: "EditorTheme__tokenSelector",
84
+ symbol: "EditorTheme__tokenProperty",
85
+ tag: "EditorTheme__tokenProperty",
86
+ url: "EditorTheme__tokenOperator",
87
+ variable: "EditorTheme__tokenVariable"
88
+ },
89
+ characterLimit: "!shared:bg-destructive/50",
90
+ table: "EditorTheme__table shared:w-fit shared:overflow-scroll shared:border-collapse",
91
+ tableCell: "EditorTheme__tableCell shared:w-24 shared:relative shared:border shared:px-4 shared:py-2 shared:text-left shared:[&[align=center]]:text-center shared:[&[align=right]]:text-right",
92
+ tableCellActionButton: "EditorTheme__tableCellActionButton shared:bg-background shared:block shared:border-0 shared:rounded-2xl shared:w-5 shared:h-5 shared:text-foreground shared:cursor-pointer",
93
+ tableCellActionButtonContainer: "EditorTheme__tableCellActionButtonContainer shared:block shared:right-1 shared:top-1.5 shared:absolute shared:z-10 shared:w-5 shared:h-5",
94
+ tableCellEditing: "EditorTheme__tableCellEditing shared:rounded-sm shared:shadow-sm",
95
+ tableCellHeader: "EditorTheme__tableCellHeader shared:bg-muted shared:border shared:px-4 shared:py-2 shared:text-left shared:font-bold shared:[&[align=center]]:text-center shared:[&[align=right]]:text-right",
96
+ tableCellPrimarySelected: "EditorTheme__tableCellPrimarySelected shared:border shared:border-primary shared:border-solid shared:block shared:h-[calc(100%-2px)] shared:w-[calc(100%-2px)] shared:absolute -shared:left-[1px] -shared:top-[1px] shared:z-10 ",
97
+ tableCellResizer: "EditorTheme__tableCellResizer shared:absolute -shared:right-1 shared:h-full shared:w-2 shared:cursor-ew-resize shared:z-10 shared:top-0",
98
+ tableCellSelected: "EditorTheme__tableCellSelected shared:bg-muted",
99
+ tableCellSortedIndicator: "EditorTheme__tableCellSortedIndicator shared:block shared:opacity-50 shared:absolute shared:bottom-0 shared:left-0 shared:w-full shared:h-1 shared:bg-muted",
100
+ tableResizeRuler: "EditorTheme__tableCellResizeRuler shared:block shared:absolute shared:w-[1px] shared:h-full shared:bg-primary shared:top-0",
101
+ tableRowStriping: "EditorTheme__tableRowStriping shared:m-0 shared:border-t shared:p-0 shared:even:bg-muted",
102
+ tableSelected: "EditorTheme__tableSelected shared:ring-2 shared:ring-primary shared:ring-offset-2",
103
+ tableSelection: "EditorTheme__tableSelection shared:bg-transparent",
104
+ layoutItem: "shared:border shared:border-dashed shared:px-4 shared:py-2",
105
+ layoutContainer: "shared:grid shared:gap-2.5 shared:my-2.5 shared:mx-0",
106
+ autocomplete: "shared:text-muted-foreground",
107
+ blockCursor: "",
108
+ embedBlock: {
109
+ base: "shared:user-select-none",
110
+ focus: "shared:ring-2 shared:ring-primary shared:ring-offset-2"
111
+ },
112
+ hr: 'shared:p-0.5 shared:border-none shared:my-1 shared:mx-0 shared:cursor-pointer shared:after:content-[""] shared:after:block shared:after:h-0.5 shared:after:bg-muted shared:selected:ring-2 shared:selected:ring-primary shared:selected:ring-offset-2 shared:selected:user-select-none',
113
+ indent: "[--lexical-indent-base-value:40px]",
114
+ mark: "",
115
+ markOverlap: ""
116
+ };
117
+ export {
118
+ editorTheme
119
+ };
@@ -0,0 +1,47 @@
1
+ import { jsx, 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 "../../lib/utils.js";
6
+ const Accordion = AccordionPrimitive.Root;
7
+ const AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8
+ AccordionPrimitive.Item,
9
+ {
10
+ ref,
11
+ className: cn("shared:border-b", className),
12
+ ...props
13
+ }
14
+ ));
15
+ AccordionItem.displayName = "AccordionItem";
16
+ const AccordionTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "shared:flex", children: /* @__PURE__ */ jsxs(
17
+ AccordionPrimitive.Trigger,
18
+ {
19
+ ref,
20
+ className: cn(
21
+ "shared:flex shared:flex-1 shared:items-center shared:justify-between shared:py-4 shared:text-sm shared:font-medium shared:transition-all shared:hover:underline shared:text-left shared:[&[data-state=open]>svg]:rotate-180",
22
+ className
23
+ ),
24
+ ...props,
25
+ children: [
26
+ children,
27
+ /* @__PURE__ */ jsx(ChevronDown, { className: "shared:h-4 shared:w-4 shared:shrink-0 shared:text-muted-foreground shared:transition-transform shared:duration-200" })
28
+ ]
29
+ }
30
+ ) }));
31
+ AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
32
+ const AccordionContent = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
33
+ AccordionPrimitive.Content,
34
+ {
35
+ ref,
36
+ className: "shared:overflow-hidden shared:text-sm shared:data-[state=closed]:animate-accordion-up shared:data-[state=open]:animate-accordion-down",
37
+ ...props,
38
+ children: /* @__PURE__ */ jsx("div", { className: cn("shared:pb-4 shared:pt-0", className), children })
39
+ }
40
+ ));
41
+ AccordionContent.displayName = AccordionPrimitive.Content.displayName;
42
+ export {
43
+ Accordion,
44
+ AccordionContent,
45
+ AccordionItem,
46
+ AccordionTrigger
47
+ };
@@ -0,0 +1,178 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import "react";
3
+ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
4
+ import { cn } from "../../lib/utils.js";
5
+ import { Button } from "./button.js";
6
+ function AlertDialog({
7
+ ...props
8
+ }) {
9
+ return /* @__PURE__ */ jsx(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...props });
10
+ }
11
+ function AlertDialogTrigger({
12
+ ...props
13
+ }) {
14
+ return /* @__PURE__ */ jsx(AlertDialogPrimitive.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
15
+ }
16
+ function AlertDialogPortal({
17
+ ...props
18
+ }) {
19
+ return /* @__PURE__ */ jsx(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...props });
20
+ }
21
+ function AlertDialogOverlay({
22
+ className,
23
+ ...props
24
+ }) {
25
+ return /* @__PURE__ */ jsx(
26
+ AlertDialogPrimitive.Overlay,
27
+ {
28
+ "data-slot": "alert-dialog-overlay",
29
+ className: cn(
30
+ "shared:data-[state=open]:animate-in shared:data-[state=closed]:animate-out shared:data-[state=closed]:fade-out-0 shared:data-[state=open]:fade-in-0 shared:fixed shared:inset-0 shared:z-50 shared:bg-black/50",
31
+ className
32
+ ),
33
+ ...props
34
+ }
35
+ );
36
+ }
37
+ function AlertDialogContent({
38
+ className,
39
+ size = "default",
40
+ ...props
41
+ }) {
42
+ return /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [
43
+ /* @__PURE__ */ jsx(AlertDialogOverlay, {}),
44
+ /* @__PURE__ */ jsx(
45
+ AlertDialogPrimitive.Content,
46
+ {
47
+ "data-slot": "alert-dialog-content",
48
+ "data-size": size,
49
+ className: cn(
50
+ "shared:bg-background shared:data-[state=open]:animate-in shared:data-[state=closed]:animate-out shared:data-[state=closed]:fade-out-0 shared:data-[state=open]:fade-in-0 shared:data-[state=closed]:zoom-out-95 shared:data-[state=open]:zoom-in-95 shared:group/alert-dialog-content shared:fixed shared:top-[50%] shared:left-[50%] shared:z-50 shared:grid shared:w-full shared:max-w-[calc(100%-2rem)] shared:translate-x-[-50%] shared:translate-y-[-50%] shared:gap-4 shared:rounded-3xl shared:cupertino-corner shared:border shared:p-6 shared:shadow-lg shared:duration-200 shared:data-[size=sm]:max-w-xs shared:data-[size=default]:sm:max-w-lg",
51
+ className
52
+ ),
53
+ ...props
54
+ }
55
+ )
56
+ ] });
57
+ }
58
+ function AlertDialogHeader({
59
+ className,
60
+ ...props
61
+ }) {
62
+ return /* @__PURE__ */ jsx(
63
+ "div",
64
+ {
65
+ "data-slot": "alert-dialog-header",
66
+ className: cn(
67
+ "shared:grid shared:grid-rows-[auto_1fr] shared:place-items-center shared:gap-1.5 shared:text-center shared:has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] shared:has-data-[slot=alert-dialog-media]:gap-x-6 shared:sm:group-data-[size=default]/alert-dialog-content:place-items-start shared:sm:group-data-[size=default]/alert-dialog-content:text-left shared:sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",
68
+ className
69
+ ),
70
+ ...props
71
+ }
72
+ );
73
+ }
74
+ function AlertDialogFooter({
75
+ className,
76
+ ...props
77
+ }) {
78
+ return /* @__PURE__ */ jsx(
79
+ "div",
80
+ {
81
+ "data-slot": "alert-dialog-footer",
82
+ className: cn(
83
+ "shared:flex shared:gap-2 shared:group-data-[size=sm]/alert-dialog-content:grid shared:group-data-[size=sm]/alert-dialog-content:grid-cols-2 shared:sm:flex-row shared:sm:justify-end",
84
+ className
85
+ ),
86
+ ...props
87
+ }
88
+ );
89
+ }
90
+ function AlertDialogTitle({
91
+ className,
92
+ ...props
93
+ }) {
94
+ return /* @__PURE__ */ jsx(
95
+ AlertDialogPrimitive.Title,
96
+ {
97
+ "data-slot": "alert-dialog-title",
98
+ className: cn(
99
+ "shared:text-lg shared:font-semibold shared:sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",
100
+ className
101
+ ),
102
+ ...props
103
+ }
104
+ );
105
+ }
106
+ function AlertDialogDescription({
107
+ className,
108
+ ...props
109
+ }) {
110
+ return /* @__PURE__ */ jsx(
111
+ AlertDialogPrimitive.Description,
112
+ {
113
+ "data-slot": "alert-dialog-description",
114
+ className: cn("shared:text-muted-foreground shared:text-sm", className),
115
+ ...props
116
+ }
117
+ );
118
+ }
119
+ function AlertDialogMedia({
120
+ className,
121
+ ...props
122
+ }) {
123
+ return /* @__PURE__ */ jsx(
124
+ "div",
125
+ {
126
+ "data-slot": "alert-dialog-media",
127
+ className: cn(
128
+ "shared:bg-muted shared:mb-2 shared:inline-flex shared:size-16 shared:items-center shared:justify-center shared:rounded-md shared:sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])shared:]:size-8",
129
+ className
130
+ ),
131
+ ...props
132
+ }
133
+ );
134
+ }
135
+ function AlertDialogAction({
136
+ className,
137
+ variant = "default",
138
+ size = "default",
139
+ ...props
140
+ }) {
141
+ return /* @__PURE__ */ jsx(Button, { variant, size, asChild: true, children: /* @__PURE__ */ jsx(
142
+ AlertDialogPrimitive.Action,
143
+ {
144
+ "data-slot": "alert-dialog-action",
145
+ className: cn(className),
146
+ ...props
147
+ }
148
+ ) });
149
+ }
150
+ function AlertDialogCancel({
151
+ className,
152
+ variant = "outline",
153
+ size = "default",
154
+ ...props
155
+ }) {
156
+ return /* @__PURE__ */ jsx(Button, { variant, size, asChild: true, children: /* @__PURE__ */ jsx(
157
+ AlertDialogPrimitive.Cancel,
158
+ {
159
+ "data-slot": "alert-dialog-cancel",
160
+ className: cn(className),
161
+ ...props
162
+ }
163
+ ) });
164
+ }
165
+ export {
166
+ AlertDialog,
167
+ AlertDialogAction,
168
+ AlertDialogCancel,
169
+ AlertDialogContent,
170
+ AlertDialogDescription,
171
+ AlertDialogFooter,
172
+ AlertDialogHeader,
173
+ AlertDialogMedia,
174
+ AlertDialogOverlay,
175
+ AlertDialogPortal,
176
+ AlertDialogTitle,
177
+ AlertDialogTrigger
178
+ };
@@ -0,0 +1,51 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cva } from "class-variance-authority";
4
+ import { cn } from "../../lib/utils.js";
5
+ const alertVariants = cva(
6
+ "shared:relative shared:w-full shared:rounded-lg shared:border shared:px-4 shared:py-3 shared:text-sm shared:[&>svg+div]:translate-y-[-3px] shared:[&>svg]:absolute shared:[&>svg]:left-4 shared:[&>svg]:top-4 shared:[&>svg]:text-foreground shared:[&>svg~*]:pl-7",
7
+ {
8
+ variants: {
9
+ variant: {
10
+ default: "shared:bg-background shared:text-foreground",
11
+ destructive: "shared:border-destructive/50 shared:text-destructive shared:dark:border-destructive shared:[&>svg]:text-destructive"
12
+ }
13
+ },
14
+ defaultVariants: {
15
+ variant: "default"
16
+ }
17
+ }
18
+ );
19
+ const Alert = React.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(
20
+ "div",
21
+ {
22
+ ref,
23
+ role: "alert",
24
+ className: cn(alertVariants({ variant }), className),
25
+ ...props
26
+ }
27
+ ));
28
+ Alert.displayName = "Alert";
29
+ const AlertTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
30
+ "h5",
31
+ {
32
+ ref,
33
+ className: cn("shared:mb-1 shared:font-medium shared:leading-none shared:tracking-tight", className),
34
+ ...props
35
+ }
36
+ ));
37
+ AlertTitle.displayName = "AlertTitle";
38
+ const AlertDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
39
+ "div",
40
+ {
41
+ ref,
42
+ className: cn("shared:text-sm shared:[&_p]:leading-relaxed", className),
43
+ ...props
44
+ }
45
+ ));
46
+ AlertDescription.displayName = "AlertDescription";
47
+ export {
48
+ Alert,
49
+ AlertDescription,
50
+ AlertTitle
51
+ };
@@ -0,0 +1,42 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import * as AvatarPrimitive from "@radix-ui/react-avatar";
4
+ import { cn } from "../../lib/utils.js";
5
+ const Avatar = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6
+ AvatarPrimitive.Root,
7
+ {
8
+ ref,
9
+ className: cn(
10
+ "shared:relative shared:flex shared:h-10 shared:w-10 shared:shrink-0 shared:overflow-hidden shared:rounded-full",
11
+ className
12
+ ),
13
+ ...props
14
+ }
15
+ ));
16
+ Avatar.displayName = AvatarPrimitive.Root.displayName;
17
+ const AvatarImage = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
18
+ AvatarPrimitive.Image,
19
+ {
20
+ ref,
21
+ className: cn("shared:aspect-square shared:h-full shared:w-full", className),
22
+ ...props
23
+ }
24
+ ));
25
+ AvatarImage.displayName = AvatarPrimitive.Image.displayName;
26
+ const AvatarFallback = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
27
+ AvatarPrimitive.Fallback,
28
+ {
29
+ ref,
30
+ className: cn(
31
+ "shared:flex shared:h-full shared:w-full shared:items-center shared:justify-center shared:rounded-full shared:bg-muted",
32
+ className
33
+ ),
34
+ ...props
35
+ }
36
+ ));
37
+ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
38
+ export {
39
+ Avatar,
40
+ AvatarFallback,
41
+ AvatarImage
42
+ };
@@ -0,0 +1,27 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import "react";
3
+ import { cva } from "class-variance-authority";
4
+ import { cn } from "../../lib/utils.js";
5
+ const badgeVariants = cva(
6
+ "shared:inline-flex shared:items-center shared:rounded-md shared:border shared:px-2.5 shared:py-0.5 shared:text-xs shared:font-semibold shared:transition-colors shared:focus:outline-none shared:focus:ring-2 shared:focus:ring-ring shared:focus:ring-offset-2",
7
+ {
8
+ variants: {
9
+ variant: {
10
+ default: "shared:border-transparent shared:bg-primary shared:text-primary-foreground shared:shadow shared:hover:bg-primary/80",
11
+ secondary: "shared:border-transparent shared:bg-secondary shared:text-secondary-foreground shared:hover:bg-secondary/80",
12
+ destructive: "shared:border-transparent shared:bg-destructive shared:text-destructive-foreground shared:shadow shared:hover:bg-destructive/80",
13
+ outline: "shared:text-foreground"
14
+ }
15
+ },
16
+ defaultVariants: {
17
+ variant: "default"
18
+ }
19
+ }
20
+ );
21
+ function Badge({ className, variant, ...props }) {
22
+ return /* @__PURE__ */ jsx("div", { className: cn(badgeVariants({ variant }), className), ...props });
23
+ }
24
+ export {
25
+ Badge,
26
+ badgeVariants
27
+ };