dune-react 0.0.1

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 (269) hide show
  1. package/README.md +49 -0
  2. package/dist/_virtual/_commonjsHelpers.js +8 -0
  3. package/dist/_virtual/index.js +4 -0
  4. package/dist/_virtual/sha1.js +4 -0
  5. package/dist/_virtual/util.js +4 -0
  6. package/dist/components/index.d.ts +4 -0
  7. package/dist/components/ui-custom/background.d.ts +8 -0
  8. package/dist/components/ui-custom/background.js +51 -0
  9. package/dist/components/ui-custom/cover.d.ts +17 -0
  10. package/dist/components/ui-custom/cover.js +231 -0
  11. package/dist/components/ui-custom/sparkles.d.ts +13 -0
  12. package/dist/components/ui-custom/sparkles.js +418 -0
  13. package/dist/components/ui-custom/spotlight-new.d.ts +13 -0
  14. package/dist/index.d.ts +2 -0
  15. package/dist/index.js +40 -0
  16. package/dist/node_modules/.pnpm/@fluid-tailwind_tailwind-merge@0.0.3_tailwind-merge@3.3.1/node_modules/@fluid-tailwind/tailwind-merge/dist/index.js +50 -0
  17. package/dist/node_modules/.pnpm/@tsparticles_basic@3.9.1/node_modules/@tsparticles/basic/browser/index.js +25 -0
  18. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Canvas.js +510 -0
  19. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Container.js +463 -0
  20. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Engine.js +293 -0
  21. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Particle.js +355 -0
  22. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Particles.js +326 -0
  23. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Retina.js +37 -0
  24. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Constants.js +105 -0
  25. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/EventListeners.js +309 -0
  26. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/ExternalInteractorBase.js +10 -0
  27. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/InteractionManager.js +64 -0
  28. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/ParticlesInteractorBase.js +10 -0
  29. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Point.js +9 -0
  30. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/QuadTree.js +60 -0
  31. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Ranges.js +57 -0
  32. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Vectors.js +120 -0
  33. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/AnimationStatus.js +8 -0
  34. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/MoveDirection.js +17 -0
  35. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/OutModeDirection.js +10 -0
  36. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/RotateDirection.js +9 -0
  37. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/InteractivityDetect.js +9 -0
  38. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/AnimationMode.js +10 -0
  39. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/CollisionMode.js +9 -0
  40. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/LimitMode.js +8 -0
  41. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/OutMode.js +11 -0
  42. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/PixelMode.js +8 -0
  43. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/ResponsiveMode.js +8 -0
  44. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/ThemeMode.js +9 -0
  45. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/AlterType.js +8 -0
  46. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/DestroyType.js +9 -0
  47. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/DivType.js +8 -0
  48. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/EasingType.js +33 -0
  49. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/EventType.js +18 -0
  50. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/GradientType.js +9 -0
  51. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/InteractorType.js +8 -0
  52. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/ParticleOutType.js +9 -0
  53. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/StartValueType.js +9 -0
  54. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/AnimatableColor.js +38 -0
  55. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/AnimationOptions.js +60 -0
  56. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Background/Background.js +39 -0
  57. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/BackgroundMask/BackgroundMask.js +27 -0
  58. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.js +24 -0
  59. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/ColorAnimation.js +22 -0
  60. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/FullScreen/FullScreen.js +21 -0
  61. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/HslAnimation.js +20 -0
  62. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/ClickEvent.js +21 -0
  63. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/DivEvent.js +30 -0
  64. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/Events.js +33 -0
  65. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/HoverEvent.js +24 -0
  66. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/Parallax.js +25 -0
  67. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/ResizeEvent.js +21 -0
  68. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Interactivity.js +25 -0
  69. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Modes/Modes.js +28 -0
  70. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/ManualParticle.js +24 -0
  71. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Options.js +163 -0
  72. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/OptionsColor.js +29 -0
  73. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Bounce/ParticlesBounce.js +18 -0
  74. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +10 -0
  75. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/Collisions.js +36 -0
  76. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/CollisionsAbsorb.js +17 -0
  77. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/CollisionsOverlap.js +21 -0
  78. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Effect/Effect.js +36 -0
  79. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Move.js +95 -0
  80. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveAngle.js +22 -0
  81. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveAttract.js +36 -0
  82. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveCenter.js +30 -0
  83. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveGravity.js +30 -0
  84. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveTrail.js +26 -0
  85. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveTrailFill.js +18 -0
  86. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/OutModes.js +22 -0
  87. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Path/MovePath.js +30 -0
  88. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Spin.js +26 -0
  89. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesDensity.js +27 -0
  90. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesNumber.js +23 -0
  91. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesNumberLimit.js +22 -0
  92. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Opacity/Opacity.js +23 -0
  93. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +22 -0
  94. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/ParticlesOptions.js +97 -0
  95. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Shadow.js +38 -0
  96. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Shape/Shape.js +36 -0
  97. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Size/Size.js +23 -0
  98. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Size/SizeAnimation.js +22 -0
  99. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Stroke.js +25 -0
  100. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/ZIndex/ZIndex.js +28 -0
  101. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Responsive.js +31 -0
  102. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Theme/Theme.js +24 -0
  103. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Theme/ThemeDefault.js +26 -0
  104. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/ValueWithRandom.js +46 -0
  105. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Types/RangeType.js +8 -0
  106. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/CanvasUtils.js +168 -0
  107. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/ColorUtils.js +316 -0
  108. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/EventDispatcher.js +47 -0
  109. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/NumberUtils.js +135 -0
  110. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/OptionsUtils.js +15 -0
  111. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/TypeUtils.js +26 -0
  112. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/Utils.js +475 -0
  113. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/index.js +82 -0
  114. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/init.js +9 -0
  115. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/Attractor.js +81 -0
  116. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/Options/Classes/Attract.js +38 -0
  117. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/Utils.js +50 -0
  118. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/index.js +10 -0
  119. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/Bouncer.js +45 -0
  120. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/Options/Classes/Bounce.js +17 -0
  121. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/Utils.js +47 -0
  122. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/index.js +10 -0
  123. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Bubbler.js +274 -0
  124. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Enums.js +9 -0
  125. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Options/Classes/Bubble.js +20 -0
  126. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Options/Classes/BubbleBase.js +39 -0
  127. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Options/Classes/BubbleDiv.js +20 -0
  128. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Utils.js +13 -0
  129. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/index.js +10 -0
  130. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Connector.js +59 -0
  131. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Options/Classes/Connect.js +24 -0
  132. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Options/Classes/ConnectLinks.js +17 -0
  133. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Utils.js +44 -0
  134. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/index.js +10 -0
  135. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Grabber.js +76 -0
  136. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Options/Classes/Grab.js +20 -0
  137. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Options/Classes/GrabLinks.js +29 -0
  138. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Utils.js +19 -0
  139. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/index.js +10 -0
  140. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-pause@3.9.1/node_modules/@tsparticles/interaction-external-pause/browser/Pauser.js +32 -0
  141. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-pause@3.9.1/node_modules/@tsparticles/interaction-external-pause/browser/index.js +10 -0
  142. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-push@3.9.1/node_modules/@tsparticles/interaction-external-push/browser/Options/Classes/Push.js +34 -0
  143. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-push@3.9.1/node_modules/@tsparticles/interaction-external-push/browser/Pusher.js +47 -0
  144. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-push@3.9.1/node_modules/@tsparticles/interaction-external-push/browser/index.js +10 -0
  145. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-remove@3.9.1/node_modules/@tsparticles/interaction-external-remove/browser/Options/Classes/Remove.js +19 -0
  146. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-remove@3.9.1/node_modules/@tsparticles/interaction-external-remove/browser/Remover.js +39 -0
  147. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-remove@3.9.1/node_modules/@tsparticles/interaction-external-remove/browser/index.js +10 -0
  148. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Options/Classes/Repulse.js +20 -0
  149. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Options/Classes/RepulseBase.js +38 -0
  150. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Options/Classes/RepulseDiv.js +20 -0
  151. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Repulser.js +160 -0
  152. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/index.js +10 -0
  153. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-slow@3.9.1/node_modules/@tsparticles/interaction-external-slow/browser/Options/Classes/Slow.js +21 -0
  154. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-slow@3.9.1/node_modules/@tsparticles/interaction-external-slow/browser/Slower.js +53 -0
  155. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-slow@3.9.1/node_modules/@tsparticles/interaction-external-slow/browser/index.js +10 -0
  156. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-attract@3.9.1/node_modules/@tsparticles/interaction-particles-attract/browser/Attractor.js +37 -0
  157. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-attract@3.9.1/node_modules/@tsparticles/interaction-particles-attract/browser/index.js +10 -0
  158. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Absorb.js +28 -0
  159. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Bounce.js +18 -0
  160. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Collider.js +41 -0
  161. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Destroy.js +17 -0
  162. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/ResolveCollision.js +23 -0
  163. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/index.js +10 -0
  164. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/CircleWarp.js +33 -0
  165. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/LinkInstance.js +152 -0
  166. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Linker.js +109 -0
  167. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/LinksPlugin.js +18 -0
  168. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Options/Classes/Links.js +58 -0
  169. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Options/Classes/LinksShadow.js +25 -0
  170. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Options/Classes/LinksTriangle.js +28 -0
  171. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Utils.js +106 -0
  172. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/index.js +10 -0
  173. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/interaction.js +9 -0
  174. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/plugin.js +8 -0
  175. package/dist/node_modules/.pnpm/@tsparticles_move-base@3.9.1/node_modules/@tsparticles/move-base/browser/BaseMover.js +37 -0
  176. package/dist/node_modules/.pnpm/@tsparticles_move-base@3.9.1/node_modules/@tsparticles/move-base/browser/Utils.js +128 -0
  177. package/dist/node_modules/.pnpm/@tsparticles_move-base@3.9.1/node_modules/@tsparticles/move-base/browser/index.js +10 -0
  178. package/dist/node_modules/.pnpm/@tsparticles_move-parallax@3.9.1/node_modules/@tsparticles/move-parallax/browser/ParallaxMover.js +31 -0
  179. package/dist/node_modules/.pnpm/@tsparticles_move-parallax@3.9.1/node_modules/@tsparticles/move-parallax/browser/index.js +10 -0
  180. package/dist/node_modules/.pnpm/@tsparticles_plugin-easing-quad@3.9.1/node_modules/@tsparticles/plugin-easing-quad/browser/index.js +11 -0
  181. package/dist/node_modules/.pnpm/@tsparticles_plugin-hex-color@3.9.1/node_modules/@tsparticles/plugin-hex-color/browser/HexColorManager.js +43 -0
  182. package/dist/node_modules/.pnpm/@tsparticles_plugin-hex-color@3.9.1/node_modules/@tsparticles/plugin-hex-color/browser/index.js +8 -0
  183. package/dist/node_modules/.pnpm/@tsparticles_plugin-hsl-color@3.9.1/node_modules/@tsparticles/plugin-hsl-color/browser/HslColorManager.js +46 -0
  184. package/dist/node_modules/.pnpm/@tsparticles_plugin-hsl-color@3.9.1/node_modules/@tsparticles/plugin-hsl-color/browser/index.js +8 -0
  185. package/dist/node_modules/.pnpm/@tsparticles_plugin-rgb-color@3.9.1/node_modules/@tsparticles/plugin-rgb-color/browser/RgbColorManager.js +45 -0
  186. package/dist/node_modules/.pnpm/@tsparticles_plugin-rgb-color@3.9.1/node_modules/@tsparticles/plugin-rgb-color/browser/index.js +8 -0
  187. package/dist/node_modules/.pnpm/@tsparticles_react@3.0.0_@tsparticles_engine@3.9.1_react-dom@18.3.1_react@18.3.1/node_modules/@tsparticles/react/dist/Particles.js +18 -0
  188. package/dist/node_modules/.pnpm/@tsparticles_react@3.0.0_@tsparticles_engine@3.9.1_react-dom@18.3.1_react@18.3.1/node_modules/@tsparticles/react/dist/index.js +9 -0
  189. package/dist/node_modules/.pnpm/@tsparticles_shape-circle@3.9.1/node_modules/@tsparticles/shape-circle/browser/CircleDrawer.js +28 -0
  190. package/dist/node_modules/.pnpm/@tsparticles_shape-circle@3.9.1/node_modules/@tsparticles/shape-circle/browser/Utils.js +12 -0
  191. package/dist/node_modules/.pnpm/@tsparticles_shape-circle@3.9.1/node_modules/@tsparticles/shape-circle/browser/index.js +8 -0
  192. package/dist/node_modules/.pnpm/@tsparticles_shape-emoji@3.9.1/node_modules/@tsparticles/shape-emoji/browser/EmojiDrawer.js +103 -0
  193. package/dist/node_modules/.pnpm/@tsparticles_shape-emoji@3.9.1/node_modules/@tsparticles/shape-emoji/browser/Utils.js +13 -0
  194. package/dist/node_modules/.pnpm/@tsparticles_shape-emoji@3.9.1/node_modules/@tsparticles/shape-emoji/browser/index.js +8 -0
  195. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/ByteStream.js +51 -0
  196. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Constants.js +6 -0
  197. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Enums/DisposalMethod.js +14 -0
  198. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Types/GIFDataHeaders.js +13 -0
  199. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Utils.js +419 -0
  200. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/ImageDrawer.js +130 -0
  201. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/ImagePreloader.js +36 -0
  202. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/Options/Classes/Preload.js +33 -0
  203. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/Utils.js +94 -0
  204. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/index.js +54 -0
  205. package/dist/node_modules/.pnpm/@tsparticles_shape-line@3.9.1/node_modules/@tsparticles/shape-line/browser/LineDrawer.js +16 -0
  206. package/dist/node_modules/.pnpm/@tsparticles_shape-line@3.9.1/node_modules/@tsparticles/shape-line/browser/Utils.js +9 -0
  207. package/dist/node_modules/.pnpm/@tsparticles_shape-line@3.9.1/node_modules/@tsparticles/shape-line/browser/index.js +8 -0
  208. package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/PolygonDrawer.js +27 -0
  209. package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/PolygonDrawerBase.js +16 -0
  210. package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/TriangleDrawer.js +30 -0
  211. package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/Utils.js +19 -0
  212. package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/index.js +20 -0
  213. package/dist/node_modules/.pnpm/@tsparticles_shape-square@3.9.1/node_modules/@tsparticles/shape-square/browser/SquareDrawer.js +16 -0
  214. package/dist/node_modules/.pnpm/@tsparticles_shape-square@3.9.1/node_modules/@tsparticles/shape-square/browser/Utils.js +8 -0
  215. package/dist/node_modules/.pnpm/@tsparticles_shape-square@3.9.1/node_modules/@tsparticles/shape-square/browser/index.js +8 -0
  216. package/dist/node_modules/.pnpm/@tsparticles_shape-star@3.9.1/node_modules/@tsparticles/shape-star/browser/StarDrawer.js +22 -0
  217. package/dist/node_modules/.pnpm/@tsparticles_shape-star@3.9.1/node_modules/@tsparticles/shape-star/browser/Utils.js +14 -0
  218. package/dist/node_modules/.pnpm/@tsparticles_shape-star@3.9.1/node_modules/@tsparticles/shape-star/browser/index.js +8 -0
  219. package/dist/node_modules/.pnpm/@tsparticles_slim@3.9.1/node_modules/@tsparticles/slim/browser/index.js +56 -0
  220. package/dist/node_modules/.pnpm/@tsparticles_updater-color@3.9.1/node_modules/@tsparticles/updater-color/browser/ColorUpdater.js +23 -0
  221. package/dist/node_modules/.pnpm/@tsparticles_updater-color@3.9.1/node_modules/@tsparticles/updater-color/browser/index.js +10 -0
  222. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/LifeUpdater.js +52 -0
  223. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Options/Classes/Life.js +23 -0
  224. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Options/Classes/LifeDelay.js +20 -0
  225. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Options/Classes/LifeDuration.js +20 -0
  226. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Utils.js +58 -0
  227. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/index.js +10 -0
  228. package/dist/node_modules/.pnpm/@tsparticles_updater-opacity@3.9.1/node_modules/@tsparticles/updater-opacity/browser/OpacityUpdater.js +38 -0
  229. package/dist/node_modules/.pnpm/@tsparticles_updater-opacity@3.9.1/node_modules/@tsparticles/updater-opacity/browser/index.js +10 -0
  230. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/BounceOutMode.js +36 -0
  231. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/DestroyOutMode.js +37 -0
  232. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/NoneOutMode.js +36 -0
  233. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/OutOfCanvasUpdater.js +45 -0
  234. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/OutOutMode.js +110 -0
  235. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/Utils.js +66 -0
  236. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/index.js +10 -0
  237. package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/Options/Classes/Rotate.js +29 -0
  238. package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/Options/Classes/RotateAnimation.js +30 -0
  239. package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/RotateUpdater.js +77 -0
  240. package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/index.js +10 -0
  241. package/dist/node_modules/.pnpm/@tsparticles_updater-size@3.9.1/node_modules/@tsparticles/updater-size/browser/SizeUpdater.js +30 -0
  242. package/dist/node_modules/.pnpm/@tsparticles_updater-size@3.9.1/node_modules/@tsparticles/updater-size/browser/index.js +10 -0
  243. package/dist/node_modules/.pnpm/@tsparticles_updater-stroke-color@3.9.1/node_modules/@tsparticles/updater-stroke-color/browser/StrokeColorUpdater.js +35 -0
  244. package/dist/node_modules/.pnpm/@tsparticles_updater-stroke-color@3.9.1/node_modules/@tsparticles/updater-stroke-color/browser/index.js +10 -0
  245. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -0
  246. package/dist/node_modules/.pnpm/file-type@12.4.1/node_modules/file-type/index.js +826 -0
  247. package/dist/node_modules/.pnpm/file-type@12.4.1/node_modules/file-type/supported.js +242 -0
  248. package/dist/node_modules/.pnpm/file-type@12.4.1/node_modules/file-type/util.js +64 -0
  249. package/dist/node_modules/.pnpm/js-sha1@0.6.0/node_modules/js-sha1/src/sha1.js +311 -0
  250. package/dist/node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/index.browser.js +22 -0
  251. package/dist/node_modules/.pnpm/tailwind-merge@3.3.1/node_modules/tailwind-merge/dist/bundle-mjs.js +3007 -0
  252. package/dist/utils/css-utils.d.ts +10 -0
  253. package/dist/utils/css-utils.js +17 -0
  254. package/dist/utils/index.d.ts +9 -0
  255. package/dist/utils/storage-qetag.d.ts +22 -0
  256. package/dist/utils/storage-qetag.js +3 -0
  257. package/dist/utils/utils-api.d.ts +17 -0
  258. package/dist/utils/utils-api.js +31 -0
  259. package/dist/utils/utils-canvas.d.ts +30 -0
  260. package/dist/utils/utils-canvas.js +54 -0
  261. package/dist/utils/utils-common.d.ts +6 -0
  262. package/dist/utils/utils-common.js +15 -0
  263. package/dist/utils/utils-image.d.ts +33 -0
  264. package/dist/utils/utils-image.js +57 -0
  265. package/dist/utils/utils-random.d.ts +1 -0
  266. package/dist/utils/utils-random.js +6 -0
  267. package/dist/utils/utils-time.d.ts +49 -0
  268. package/dist/utils/utils-time.js +112 -0
  269. package/package.json +81 -0
@@ -0,0 +1,10 @@
1
+ import { type ClassValue } from "clsx";
2
+ /**
3
+ * 合并CSS类名,支持条件类名和Tailwind冲突解决
4
+ * 支持Fluid Tailwind功能
5
+ */
6
+ export declare function cn(...inputs: ClassValue[]): string;
7
+ /**
8
+ * 液体玻璃效果样式
9
+ */
10
+ export declare function liquidGlass(...args: ClassValue[]): string;
@@ -0,0 +1,17 @@
1
+ import { withFluid } from "../node_modules/.pnpm/@fluid-tailwind_tailwind-merge@0.0.3_tailwind-merge@3.3.1/node_modules/@fluid-tailwind/tailwind-merge/dist/index.js";
2
+ import { clsx } from "../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
3
+ import { extendTailwindMerge } from "../node_modules/.pnpm/tailwind-merge@3.3.1/node_modules/tailwind-merge/dist/bundle-mjs.js";
4
+ const twMerge = extendTailwindMerge({}, withFluid);
5
+ function cn(...inputs) {
6
+ return twMerge(clsx(inputs));
7
+ }
8
+ function liquidGlass(...args) {
9
+ return cn(
10
+ "shadow-[0px_-1px_0px_0px_#FFFFFF40_inset,_0px_1px_0px_0px_#FFFFFF40_inset]",
11
+ args
12
+ );
13
+ }
14
+ export {
15
+ cn,
16
+ liquidGlass
17
+ };
@@ -0,0 +1,9 @@
1
+ export * from "./utils-common.ts";
2
+ export * from "./utils-api.ts";
3
+ export * from "./utils-time.ts";
4
+ export * from "./utils-canvas.ts";
5
+ export * from "./css-utils.ts";
6
+ export * from "./storage-qetag.ts";
7
+ export * from "./utils-image.ts";
8
+ export * from "./utils-time.ts";
9
+ export * from "./utils-random.ts";
@@ -0,0 +1,22 @@
1
+ interface ITypeInfo {
2
+ ext: string;
3
+ mime: string;
4
+ }
5
+ export default class QiNiuETag {
6
+ currentLength: number;
7
+ chunkTime: number;
8
+ sha1String: any[];
9
+ type: ITypeInfo | undefined;
10
+ updateBlob(blob: File): Promise<void>;
11
+ changeCurrent(): void;
12
+ concatArr2Uint8(s: any): Uint8Array<ArrayBuffer>;
13
+ readBlobToArrayBuffer(blob: Blob): Promise<string | ArrayBuffer | null>;
14
+ get sha1Buffer(): any;
15
+ get getEtag(): string;
16
+ get typeInfo(): ITypeInfo | undefined;
17
+ get fileInfo(): {
18
+ sha1: string;
19
+ typeInfo: ITypeInfo | undefined;
20
+ };
21
+ }
22
+ export {};
@@ -0,0 +1,3 @@
1
+ import "../node_modules/.pnpm/file-type@12.4.1/node_modules/file-type/index.js";
2
+ import hash from "../node_modules/.pnpm/js-sha1@0.6.0/node_modules/js-sha1/src/sha1.js";
3
+ hash.digest;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @description 将对象转换为URL参数
3
+ * @param url 基础URL
4
+ * @param params 参数对象
5
+ * @returns 带参数的完整URL
6
+ */
7
+ export declare function getUrlWithParams(url: string, params: Record<string, any>): string;
8
+ /**
9
+ * @description 大数字格式化工具函数
10
+ * @param num 要格式化的数字
11
+ * @param format 格式化配置
12
+ * @returns 格式化后的字符串
13
+ */
14
+ export declare function formatLargeNumber(num: number, format?: {
15
+ unit?: number;
16
+ unitCN?: string;
17
+ }): string;
@@ -0,0 +1,31 @@
1
+ import { filterEmptyValues } from "./utils-common.js";
2
+ function getUrlWithParams(url, params) {
3
+ if (!params || Object.keys(params).length === 0) {
4
+ return url;
5
+ }
6
+ const urlObj = new URL(url, window.location.origin);
7
+ Object.entries(filterEmptyValues(params)).forEach(([key, value]) => {
8
+ if (value !== void 0 && value !== null && value !== "") {
9
+ if (Array.isArray(value)) {
10
+ value.forEach((item) => {
11
+ urlObj.searchParams.append(key, String(item));
12
+ });
13
+ } else {
14
+ urlObj.searchParams.set(key, String(value));
15
+ }
16
+ }
17
+ });
18
+ return urlObj.toString();
19
+ }
20
+ function formatLargeNumber(num, format = {}) {
21
+ const { unit = 1e4, unitCN = "万" } = format;
22
+ if (num < unit) {
23
+ return `${unit}+`;
24
+ }
25
+ const result = Math.floor(num / unit);
26
+ return `${result}${unitCN}+`;
27
+ }
28
+ export {
29
+ formatLargeNumber,
30
+ getUrlWithParams
31
+ };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @description Blob转换File对象
3
+ * @param blobData
4
+ */
5
+ export declare function structureFile(blobData: Blob): File;
6
+ /**
7
+ * @description blobToUrl
8
+ * @param {*} blobData
9
+ */
10
+ export declare function blobToUrl(blobData: Blob): string;
11
+ /**
12
+ * @description base64ToBlob
13
+ * @param {*} base64
14
+ */
15
+ export declare function convertBase64ToBlob(base64: string): Blob;
16
+ /**
17
+ * @description base64ToUrl
18
+ * @param {*} base64
19
+ */
20
+ export declare function base64ToUrl(base64: string): string;
21
+ /**
22
+ * @description base64ToFile
23
+ * @param {*} base64
24
+ */
25
+ export declare function base64ToFile(base64: string): File;
26
+ /**
27
+ * @description blobToBase64
28
+ * @param blob
29
+ */
30
+ export declare function blobToBase64(blob: Blob): Promise<unknown>;
@@ -0,0 +1,54 @@
1
+ function structureFile(blobData) {
2
+ const fileType = blobData.type.split("/");
3
+ const ext = fileType[1];
4
+ const file = new window.File([blobData], `tag.${ext}`, {
5
+ type: blobData.type
6
+ });
7
+ return file;
8
+ }
9
+ function blobToUrl(blobData) {
10
+ return URL.createObjectURL(blobData);
11
+ }
12
+ function convertBase64ToBlob(base64) {
13
+ const base64Arr = base64.split(",");
14
+ let imgType = "";
15
+ let base64String = "";
16
+ if (base64Arr.length > 1) {
17
+ base64String = base64Arr[1];
18
+ imgType = base64Arr[0].substring(
19
+ base64Arr[0].indexOf(":") + 1,
20
+ base64Arr[0].indexOf(";")
21
+ );
22
+ }
23
+ const bytes = atob(base64String);
24
+ const bytesCode = new ArrayBuffer(bytes.length);
25
+ const byteArray = new Uint8Array(bytesCode);
26
+ for (let i = 0; i < bytes.length; i++) {
27
+ byteArray[i] = bytes.charCodeAt(i);
28
+ }
29
+ return new Blob([bytesCode], { type: imgType });
30
+ }
31
+ function base64ToUrl(base64) {
32
+ const blobData = convertBase64ToBlob(base64);
33
+ return blobToUrl(blobData);
34
+ }
35
+ function base64ToFile(base64) {
36
+ const blobData = convertBase64ToBlob(base64);
37
+ return structureFile(blobData);
38
+ }
39
+ function blobToBase64(blob) {
40
+ return new Promise((resolve, reject) => {
41
+ const reader = new FileReader();
42
+ reader.onloadend = () => resolve(reader.result);
43
+ reader.onerror = reject;
44
+ reader.readAsDataURL(blob);
45
+ });
46
+ }
47
+ export {
48
+ base64ToFile,
49
+ base64ToUrl,
50
+ blobToBase64,
51
+ blobToUrl,
52
+ convertBase64ToBlob,
53
+ structureFile
54
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @description 过滤对象中的空值
3
+ * @param obj 要过滤的对象
4
+ * @returns 过滤后的对象
5
+ */
6
+ export declare function filterEmptyValues(obj: Record<string, any>): Record<string, any>;
@@ -0,0 +1,15 @@
1
+ function filterEmptyValues(obj) {
2
+ if (!obj || typeof obj !== "object") {
3
+ return {};
4
+ }
5
+ const filtered = {};
6
+ Object.entries(obj).forEach(([key, value]) => {
7
+ if (value !== "" && value !== null && value !== void 0) {
8
+ filtered[key] = value;
9
+ }
10
+ });
11
+ return filtered;
12
+ }
13
+ export {
14
+ filterEmptyValues
15
+ };
@@ -0,0 +1,33 @@
1
+ /**
2
+ * 下载图片
3
+ * @param url 图片URL
4
+ */
5
+ export declare function downloadImage(url: string): void;
6
+ /**
7
+ * @description 获取网络图片
8
+ * @param url
9
+ */
10
+ export declare function fetchHasOnlineFile(url: string): Promise<number | false>;
11
+ /**
12
+ * @description 判断文件类型是否有效
13
+ * @param file
14
+ * @param validExtensions
15
+ * @param validMimeTypes
16
+ */
17
+ export declare const isValidFileType: (file: File | string, validExtensions?: string[], validMimeTypes?: string[]) => boolean;
18
+ /**
19
+ * @description 判断文件大小是否有效
20
+ * @param file
21
+ * @param maxSize
22
+ */
23
+ export declare const isValidFileSize: (file: File, maxSize?: number) => boolean;
24
+ /**
25
+ * @description getBase64 by tempUrl
26
+ * @param tempUrl
27
+ */
28
+ export declare const getBase64Client: (tempUrl: string) => Promise<string>;
29
+ /**
30
+ * @description 下载图片
31
+ * @param url
32
+ */
33
+ export declare const downloadImageClient: (url: string) => Promise<void>;
@@ -0,0 +1,57 @@
1
+ import axios from "axios";
2
+ import FileSaver from "file-saver";
3
+ import { blobToBase64 } from "./utils-canvas.js";
4
+ function downloadImage(url) {
5
+ const a = document.createElement("a");
6
+ a.href = url;
7
+ a.target = "_blank";
8
+ a.download = "my-labubu.png";
9
+ a.click();
10
+ }
11
+ async function fetchHasOnlineFile(url) {
12
+ const res = await fetch(url, {
13
+ method: "head"
14
+ });
15
+ if (res.status === 200) {
16
+ return Number(res.headers.get("Content-Length"));
17
+ } else {
18
+ return false;
19
+ }
20
+ }
21
+ const isValidFileType = (file, validExtensions = [".jpg", ".jpeg", ".png", ".gif", ".webp"], validMimeTypes = [
22
+ "image/jpeg",
23
+ "image/png",
24
+ "image/gif",
25
+ "image/webp"
26
+ ]) => {
27
+ if (typeof file === "string") {
28
+ return validExtensions.some((ext) => file.toLowerCase().endsWith(ext));
29
+ } else if (file instanceof File) {
30
+ return validMimeTypes.includes(file.type);
31
+ }
32
+ return false;
33
+ };
34
+ const isValidFileSize = (file, maxSize = 10 * 1024 * 1024) => {
35
+ return file.size <= maxSize;
36
+ };
37
+ const getBase64Client = async (tempUrl) => {
38
+ const response = await fetch(tempUrl);
39
+ const blob = await response.blob();
40
+ const base64 = await blobToBase64(blob);
41
+ return base64;
42
+ };
43
+ const downloadImageClient = async (url) => {
44
+ const response = await axios.get(url, { responseType: "blob" });
45
+ const blob = response.data;
46
+ const tempUrl = URL.createObjectURL(blob);
47
+ const uuid = Math.random().toString(36).substring(2);
48
+ FileSaver.saveAs(tempUrl, `${uuid}.png`);
49
+ };
50
+ export {
51
+ downloadImage,
52
+ downloadImageClient,
53
+ fetchHasOnlineFile,
54
+ getBase64Client,
55
+ isValidFileSize,
56
+ isValidFileType
57
+ };
@@ -0,0 +1 @@
1
+ export declare const nanoid: (size?: number) => string;
@@ -0,0 +1,6 @@
1
+ import { customAlphabet } from "../node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/index.browser.js";
2
+ const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
3
+ const nanoid = customAlphabet(alphabet, 16);
4
+ export {
5
+ nanoid
6
+ };
@@ -0,0 +1,49 @@
1
+ /**
2
+ * 计算距离现在多少时间
3
+ * @param date 目标日期
4
+ * @param options 配置选项
5
+ * @returns 格式化的时间差字符串
6
+ */
7
+ export declare function timeAgo(date: string | Date, options?: {
8
+ lang?: "zh" | "en";
9
+ showSeconds?: boolean;
10
+ showZero?: boolean;
11
+ }): string;
12
+ /**
13
+ * 格式化日期为相对时间(简化版)
14
+ * @param date 目标日期
15
+ * @returns 格式化的时间差字符串
16
+ */
17
+ export declare function formatTimeAgo(date: string | Date): string;
18
+ /**
19
+ * 获取详细的时间信息
20
+ * @param date 目标日期
21
+ * @returns 包含各种时间单位的对象
22
+ */
23
+ export declare function getTimeDetails(date: string | Date): {
24
+ seconds: number;
25
+ minutes: number;
26
+ hours: number;
27
+ days: number;
28
+ weeks: number;
29
+ months: number;
30
+ years: number;
31
+ isValid: boolean;
32
+ };
33
+ /**
34
+ * 获取时间戳
35
+ * @returns 时间戳
36
+ */
37
+ export declare const getTimestamp: () => number;
38
+ /**
39
+ * 睡眠
40
+ * @param ms 睡眠时间
41
+ * @returns 睡眠后的Promise
42
+ */
43
+ export declare const sleep: (ms: number) => Promise<unknown>;
44
+ /**
45
+ * 格式化时间
46
+ * @param time 时间
47
+ * @returns 格式化后的时间
48
+ */
49
+ export declare const formatTimeString: (time: Date) => string;
@@ -0,0 +1,112 @@
1
+ import dayjs from "dayjs";
2
+ function timeAgo(date, options = {}) {
3
+ const { lang = "zh", showSeconds = false, showZero = false } = options;
4
+ const now = /* @__PURE__ */ new Date();
5
+ const targetDate = typeof date === "string" ? new Date(date) : date;
6
+ const diffInMs = now.getTime() - targetDate.getTime();
7
+ if (isNaN(diffInMs) || diffInMs < 0) {
8
+ return lang === "zh" ? "刚刚" : "just now";
9
+ }
10
+ const diffInSeconds = Math.floor(diffInMs / 1e3);
11
+ const diffInMinutes = Math.floor(diffInSeconds / 60);
12
+ const diffInHours = Math.floor(diffInMinutes / 60);
13
+ const diffInDays = Math.floor(diffInHours / 24);
14
+ const diffInWeeks = Math.floor(diffInDays / 7);
15
+ const diffInMonths = Math.floor(diffInDays / 30);
16
+ const diffInYears = Math.floor(diffInDays / 365);
17
+ if (lang === "zh") {
18
+ if (diffInYears > 0) {
19
+ return `${diffInYears}年前`;
20
+ }
21
+ if (diffInMonths > 0) {
22
+ return `${diffInMonths}个月前`;
23
+ }
24
+ if (diffInWeeks > 0) {
25
+ return `${diffInWeeks}周前`;
26
+ }
27
+ if (diffInDays > 0) {
28
+ return `${diffInDays}天前`;
29
+ }
30
+ if (diffInHours > 0) {
31
+ return `${diffInHours}小时前`;
32
+ }
33
+ if (diffInMinutes > 0) {
34
+ return `${diffInMinutes}分钟前`;
35
+ }
36
+ if (showSeconds && diffInSeconds > 0) {
37
+ return `${diffInSeconds}秒前`;
38
+ }
39
+ return showZero ? "0秒前" : "刚刚";
40
+ } else {
41
+ if (diffInYears > 0) {
42
+ return `${diffInYears} year${diffInYears > 1 ? "s" : ""} ago`;
43
+ }
44
+ if (diffInMonths > 0) {
45
+ return `${diffInMonths} month${diffInMonths > 1 ? "s" : ""} ago`;
46
+ }
47
+ if (diffInWeeks > 0) {
48
+ return `${diffInWeeks} week${diffInWeeks > 1 ? "s" : ""} ago`;
49
+ }
50
+ if (diffInDays > 0) {
51
+ return `${diffInDays} day${diffInDays > 1 ? "s" : ""} ago`;
52
+ }
53
+ if (diffInHours > 0) {
54
+ return `${diffInHours} hour${diffInHours > 1 ? "s" : ""} ago`;
55
+ }
56
+ if (diffInMinutes > 0) {
57
+ return `${diffInMinutes} minute${diffInMinutes > 1 ? "s" : ""} ago`;
58
+ }
59
+ if (showSeconds && diffInSeconds > 0) {
60
+ return `${diffInSeconds} second${diffInSeconds > 1 ? "s" : ""} ago`;
61
+ }
62
+ return showZero ? "0 seconds ago" : "just now";
63
+ }
64
+ }
65
+ function formatTimeAgo(date) {
66
+ return timeAgo(date, { lang: "en" });
67
+ }
68
+ function getTimeDetails(date) {
69
+ const now = /* @__PURE__ */ new Date();
70
+ const targetDate = typeof date === "string" ? new Date(date) : date;
71
+ const diffInMs = now.getTime() - targetDate.getTime();
72
+ if (isNaN(diffInMs) || diffInMs < 0) {
73
+ return {
74
+ seconds: 0,
75
+ minutes: 0,
76
+ hours: 0,
77
+ days: 0,
78
+ weeks: 0,
79
+ months: 0,
80
+ years: 0,
81
+ isValid: false
82
+ };
83
+ }
84
+ return {
85
+ seconds: Math.floor(diffInMs / 1e3),
86
+ minutes: Math.floor(diffInMs / (1e3 * 60)),
87
+ hours: Math.floor(diffInMs / (1e3 * 60 * 60)),
88
+ days: Math.floor(diffInMs / (1e3 * 60 * 60 * 24)),
89
+ weeks: Math.floor(diffInMs / (1e3 * 60 * 60 * 24 * 7)),
90
+ months: Math.floor(diffInMs / (1e3 * 60 * 60 * 24 * 30)),
91
+ years: Math.floor(diffInMs / (1e3 * 60 * 60 * 24 * 365)),
92
+ isValid: true
93
+ };
94
+ }
95
+ const getTimestamp = () => {
96
+ const time = Date.parse((/* @__PURE__ */ new Date()).toUTCString());
97
+ return time / 1e3;
98
+ };
99
+ const sleep = (ms) => {
100
+ return new Promise((resolve) => setTimeout(resolve, ms));
101
+ };
102
+ const formatTimeString = (time) => {
103
+ return dayjs(time).format("YYYY-MM-DD HH:mm:ss");
104
+ };
105
+ export {
106
+ formatTimeAgo,
107
+ formatTimeString,
108
+ getTimeDetails,
109
+ getTimestamp,
110
+ sleep,
111
+ timeAgo
112
+ };
package/package.json ADDED
@@ -0,0 +1,81 @@
1
+ {
2
+ "name": "dune-react",
3
+ "version": "0.0.1",
4
+ "license": "MIT",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "vite build && tsc --project tsconfig.build.json",
9
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
10
+ "preview": "vite preview",
11
+ "storybook": "storybook dev -p 8080",
12
+ "preview-storybook": "npx http-server storybook-static",
13
+ "build-storybook": "storybook build",
14
+ "deploy-storybook": "storybook-to-ghpages"
15
+ },
16
+ "dependencies": {
17
+ "@fluid-tailwind/tailwind-merge": "^0.0.3",
18
+ "@tsparticles/engine": "^3.9.1",
19
+ "@tsparticles/react": "^3.0.0",
20
+ "@tsparticles/slim": "^3.9.1",
21
+ "clsx": "^2.1.1",
22
+ "file-type": "12.4.1",
23
+ "js-sha1": "0.6.0",
24
+ "lucide-react": "^0.540.0",
25
+ "nanoid": "^5.1.5",
26
+ "path": "^0.12.7",
27
+ "tailwind-merge": "^3.3.1",
28
+ "tailwindcss": "4.1.11"
29
+ },
30
+ "devDependencies": {
31
+ "@storybook/addon-docs": "^9.1.2",
32
+ "@storybook/addon-links": "^9.1.2",
33
+ "@storybook/addon-onboarding": "9.1.2",
34
+ "@storybook/addon-themes": "^9.1.2",
35
+ "@storybook/react-vite": "^9.1.2",
36
+ "@storybook/storybook-deployer": "^2.8.16",
37
+ "@storybook/testing-library": "0.2.2",
38
+ "@tailwindcss/vite": "^4.1.12",
39
+ "@types/calendar": "^0.1.4",
40
+ "@types/file-saver": "^2.0.7",
41
+ "@types/js-sha1": "0.6.3",
42
+ "@types/less": "^3.0.4",
43
+ "@types/lodash-es": "^4.17.12",
44
+ "@types/node": "^20.8.3",
45
+ "@types/react": "^18.2.15",
46
+ "@types/react-dom": "^18.2.7",
47
+ "@typescript-eslint/eslint-plugin": "^6.0.0",
48
+ "@typescript-eslint/parser": "^6.0.0",
49
+ "@vitejs/plugin-react": "^4.0.3",
50
+ "eslint": "^8.45.0",
51
+ "eslint-plugin-react-hooks": "^4.6.0",
52
+ "eslint-plugin-react-refresh": "^0.4.3",
53
+ "eslint-plugin-storybook": "^9.1.2",
54
+ "motion": "^12.23.12",
55
+ "sass": "^1.90.0",
56
+ "sass-loader": "^16.0.5",
57
+ "storybook": "^9.1.2",
58
+ "typescript": "^5.0.2",
59
+ "vite": "^5.4.19"
60
+ },
61
+ "peerDependencies": {
62
+ "axios": "^1.11.0",
63
+ "dayjs": "^1.11.13",
64
+ "file-saver": "^2.0.5",
65
+ "lodash-es": "^4.17.21",
66
+ "motion": "^12.23.12",
67
+ "react": "^18.2.0",
68
+ "react-dom": "^18.2.0"
69
+ },
70
+ "files": [
71
+ "dist"
72
+ ],
73
+ "main": "./dist/index.js",
74
+ "module": "./dist/index.js",
75
+ "typings": "./dist/index.d.ts",
76
+ "resolutions": {
77
+ "string-width": "^4",
78
+ "jackspeak": "^2",
79
+ "strip-ansi": "^6"
80
+ }
81
+ }