nfx-ui 0.16.2 → 0.20.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 (935) hide show
  1. package/README.md +67 -271
  2. package/dist/animations.cjs +1 -2
  3. package/dist/animations.mjs +9 -9
  4. package/dist/apis.cjs +0 -1
  5. package/dist/apis.cjs.map +1 -1
  6. package/dist/apis.mjs +0 -1
  7. package/dist/apis.mjs.map +1 -1
  8. package/dist/chunk-LucideIcon-Chc7x8mN.mjs +15 -0
  9. package/dist/chunk-LucideIcon-Chc7x8mN.mjs.map +1 -0
  10. package/dist/chunk-LucideIcon-CuoAB_OX.cjs +3 -0
  11. package/dist/chunk-LucideIcon-CuoAB_OX.cjs.map +1 -0
  12. package/dist/chunk-ModalProvider-BgLSJXhS.cjs +3 -0
  13. package/dist/chunk-ModalProvider-BgLSJXhS.cjs.map +1 -0
  14. package/dist/chunk-ModalProvider-CpzFzfWG.mjs +220 -0
  15. package/dist/chunk-ModalProvider-CpzFzfWG.mjs.map +1 -0
  16. package/dist/chunk-PixelBlast-BbJ2VmCL.cjs +190 -0
  17. package/dist/chunk-PixelBlast-BbJ2VmCL.cjs.map +1 -0
  18. package/dist/chunk-PixelBlast-BiBrG_NH.mjs +504 -0
  19. package/dist/chunk-PixelBlast-BiBrG_NH.mjs.map +1 -0
  20. package/dist/chunk-ThemeProvider-C4kxX2D0.cjs +3 -0
  21. package/dist/chunk-ThemeProvider-C4kxX2D0.cjs.map +1 -0
  22. package/dist/chunk-ThemeProvider-D0U8V6ky.mjs +28 -0
  23. package/dist/chunk-ThemeProvider-D0U8V6ky.mjs.map +1 -0
  24. package/dist/chunk-animations-CkOpTtX1.cjs +11 -0
  25. package/dist/chunk-animations-CkOpTtX1.cjs.map +1 -0
  26. package/dist/chunk-animations-DKyNVF-O.mjs +973 -0
  27. package/dist/chunk-animations-DKyNVF-O.mjs.map +1 -0
  28. package/dist/chunk-dashboard-BsGK96hu.mjs +104 -0
  29. package/dist/chunk-dashboard-BsGK96hu.mjs.map +1 -0
  30. package/dist/chunk-dashboard-CFT0HjSM.cjs +3 -0
  31. package/dist/chunk-dashboard-CFT0HjSM.cjs.map +1 -0
  32. package/dist/chunk-hooks-Cy_8mdDG.mjs +90 -0
  33. package/dist/chunk-hooks-Cy_8mdDG.mjs.map +1 -0
  34. package/dist/chunk-hooks-yVn82nBZ.cjs +3 -0
  35. package/dist/chunk-hooks-yVn82nBZ.cjs.map +1 -0
  36. package/dist/chunk-i18n-B8pZ_hpC.mjs +435 -0
  37. package/dist/chunk-i18n-B8pZ_hpC.mjs.map +1 -0
  38. package/dist/chunk-i18n-C06d89Eq.cjs +3 -0
  39. package/dist/chunk-i18n-C06d89Eq.cjs.map +1 -0
  40. package/dist/chunk-layout-BDpxG0Ca.mjs +27 -0
  41. package/dist/chunk-layout-BDpxG0Ca.mjs.map +1 -0
  42. package/dist/chunk-layout-DKCQHheg.cjs +3 -0
  43. package/dist/chunk-layout-DKCQHheg.cjs.map +1 -0
  44. package/dist/chunk-lucide-CrMbx2vC.cjs +3 -0
  45. package/dist/chunk-lucide-CrMbx2vC.cjs.map +1 -0
  46. package/dist/chunk-lucide-yNs0iz1-.mjs +158 -0
  47. package/dist/chunk-lucide-yNs0iz1-.mjs.map +1 -0
  48. package/dist/chunk-modal-C3LgRLur.cjs +3 -0
  49. package/dist/chunk-modal-C3LgRLur.cjs.map +1 -0
  50. package/dist/chunk-modal-D9vk2ENf.mjs +92 -0
  51. package/dist/chunk-modal-D9vk2ENf.mjs.map +1 -0
  52. package/dist/chunk-preference-BP-GO9Uk.cjs +3 -0
  53. package/dist/chunk-preference-BP-GO9Uk.cjs.map +1 -0
  54. package/dist/chunk-preference-BXXryZLY.cjs +3 -0
  55. package/dist/chunk-preference-BXXryZLY.cjs.map +1 -0
  56. package/dist/chunk-preference-Y15HwKd0.mjs +42 -0
  57. package/dist/chunk-preference-Y15HwKd0.mjs.map +1 -0
  58. package/dist/chunk-preference-x4EdmqU6.mjs +295 -0
  59. package/dist/chunk-preference-x4EdmqU6.mjs.map +1 -0
  60. package/dist/chunk-rolldown-runtime-Bvb_CV3F.cjs +1 -0
  61. package/dist/chunk-useLanguageLabel-38sEu2rP.cjs +3 -0
  62. package/dist/chunk-useLanguageLabel-38sEu2rP.cjs.map +1 -0
  63. package/dist/chunk-useLanguageLabel-BLdxHuep.mjs +38 -0
  64. package/dist/chunk-useLanguageLabel-BLdxHuep.mjs.map +1 -0
  65. package/dist/chunk-useLayout-CbUZVWpS.cjs +3 -0
  66. package/dist/chunk-useLayout-CbUZVWpS.cjs.map +1 -0
  67. package/dist/chunk-useLayout-CjXHRPLD.mjs +302 -0
  68. package/dist/chunk-useLayout-CjXHRPLD.mjs.map +1 -0
  69. package/dist/chunk-useTheme-C2Ip6OAs.mjs +34 -0
  70. package/dist/chunk-useTheme-C2Ip6OAs.mjs.map +1 -0
  71. package/dist/chunk-useTheme-DSps5NbC.cjs +3 -0
  72. package/dist/chunk-useTheme-DSps5NbC.cjs.map +1 -0
  73. package/dist/components.cjs +3 -3
  74. package/dist/components.cjs.map +1 -1
  75. package/dist/components.mjs +1122 -1472
  76. package/dist/components.mjs.map +1 -1
  77. package/dist/constants.cjs +0 -1
  78. package/dist/constants.cjs.map +1 -1
  79. package/dist/constants.mjs +0 -1
  80. package/dist/constants.mjs.map +1 -1
  81. package/dist/enums.cjs +1 -0
  82. package/dist/enums.mjs +43 -0
  83. package/dist/events.cjs +0 -1
  84. package/dist/events.cjs.map +1 -1
  85. package/dist/events.mjs +0 -1
  86. package/dist/events.mjs.map +1 -1
  87. package/dist/hooks.cjs +1 -4
  88. package/dist/hooks.mjs +12 -104
  89. package/dist/icons.cjs +3 -2
  90. package/dist/icons.cjs.map +1 -0
  91. package/dist/icons.mjs +19350 -73
  92. package/dist/icons.mjs.map +1 -0
  93. package/dist/languages.cjs +1 -2
  94. package/dist/languages.cjs.map +1 -1
  95. package/dist/languages.mjs +63 -76
  96. package/dist/languages.mjs.map +1 -1
  97. package/dist/layouts.cjs +2 -2
  98. package/dist/layouts.cjs.map +1 -1
  99. package/dist/layouts.mjs +787 -395
  100. package/dist/layouts.mjs.map +1 -1
  101. package/dist/navigations.cjs +0 -1
  102. package/dist/navigations.cjs.map +1 -1
  103. package/dist/navigations.mjs +0 -1
  104. package/dist/navigations.mjs.map +1 -1
  105. package/dist/pixel-blast.cjs +1 -191
  106. package/dist/pixel-blast.mjs +2 -503
  107. package/dist/providers.cjs +4 -0
  108. package/dist/providers.cjs.map +1 -0
  109. package/dist/providers.mjs +37 -0
  110. package/dist/providers.mjs.map +1 -0
  111. package/dist/services.cjs +0 -1
  112. package/dist/services.cjs.map +1 -1
  113. package/dist/services.mjs +0 -1
  114. package/dist/services.mjs.map +1 -1
  115. package/dist/src/designs/animations/index.d.ts +1 -0
  116. package/dist/src/designs/animations/index.d.ts.map +1 -1
  117. package/dist/src/designs/components/CardHeader.d.ts +9 -0
  118. package/dist/src/designs/components/CardHeader.d.ts.map +1 -0
  119. package/dist/src/designs/components/EmptyState/index.d.ts +10 -0
  120. package/dist/src/designs/components/EmptyState/index.d.ts.map +1 -0
  121. package/dist/src/designs/components/LayoutSwitcher/index.d.ts +1 -1
  122. package/dist/src/designs/components/LayoutSwitcher/index.d.ts.map +1 -1
  123. package/dist/src/designs/components/Logo/index.d.ts +15 -0
  124. package/dist/src/designs/components/Logo/index.d.ts.map +1 -0
  125. package/dist/src/designs/components/LucideIcon.d.ts +11 -0
  126. package/dist/src/designs/components/LucideIcon.d.ts.map +1 -0
  127. package/dist/src/designs/components/PageHeader/index.d.ts +11 -0
  128. package/dist/src/designs/components/PageHeader/index.d.ts.map +1 -0
  129. package/dist/src/designs/components/PreferencesPopover/index.d.ts +6 -0
  130. package/dist/src/designs/components/PreferencesPopover/index.d.ts.map +1 -0
  131. package/dist/src/designs/components/Suspense/index.d.ts +6 -60
  132. package/dist/src/designs/components/Suspense/index.d.ts.map +1 -1
  133. package/dist/src/designs/components/ThemeSettings/index.d.ts +2 -0
  134. package/dist/src/designs/components/ThemeSettings/index.d.ts.map +1 -0
  135. package/dist/src/designs/components/ThemeSwitcher/index.d.ts +1 -3
  136. package/dist/src/designs/components/ThemeSwitcher/index.d.ts.map +1 -1
  137. package/dist/src/designs/components/VirtuosoList.d.ts +37 -0
  138. package/dist/src/designs/components/VirtuosoList.d.ts.map +1 -0
  139. package/dist/src/designs/components/index.d.ts +19 -25
  140. package/dist/src/designs/components/index.d.ts.map +1 -1
  141. package/dist/src/designs/layouts/components/Background/index.d.ts +1 -1
  142. package/dist/src/designs/layouts/components/Background/index.d.ts.map +1 -1
  143. package/dist/src/designs/layouts/components/Header/index.d.ts +31 -3
  144. package/dist/src/designs/layouts/components/Header/index.d.ts.map +1 -1
  145. package/dist/src/designs/layouts/components/LayoutFrame/index.d.ts +1 -1
  146. package/dist/src/designs/layouts/components/LayoutFrame/index.d.ts.map +1 -1
  147. package/dist/src/designs/layouts/components/Main/index.d.ts +8 -0
  148. package/dist/src/designs/layouts/components/Main/index.d.ts.map +1 -0
  149. package/dist/src/designs/layouts/components/MainWrapper/index.d.ts +1 -1
  150. package/dist/src/designs/layouts/components/MainWrapper/index.d.ts.map +1 -1
  151. package/dist/src/designs/layouts/components/PageFrame/index.d.ts +10 -0
  152. package/dist/src/designs/layouts/components/PageFrame/index.d.ts.map +1 -0
  153. package/dist/src/designs/layouts/components/SideHideLayout/index.d.ts +1 -1
  154. package/dist/src/designs/layouts/components/SideHideLayout/index.d.ts.map +1 -1
  155. package/dist/src/designs/layouts/components/SideShowLayout/index.d.ts +1 -1
  156. package/dist/src/designs/layouts/components/SideShowLayout/index.d.ts.map +1 -1
  157. package/dist/src/designs/layouts/components/Sidebar/index.d.ts +74 -2
  158. package/dist/src/designs/layouts/components/Sidebar/index.d.ts.map +1 -1
  159. package/dist/src/designs/layouts/components/Sidebar/menu.d.ts +9 -0
  160. package/dist/src/designs/layouts/components/Sidebar/menu.d.ts.map +1 -0
  161. package/dist/src/designs/layouts/components/UserTopBar/index.d.ts +18 -0
  162. package/dist/src/designs/layouts/components/UserTopBar/index.d.ts.map +1 -0
  163. package/dist/src/designs/layouts/components/index.d.ts +9 -1
  164. package/dist/src/designs/layouts/components/index.d.ts.map +1 -1
  165. package/dist/src/designs/layouts/index.d.ts +2 -0
  166. package/dist/src/designs/layouts/index.d.ts.map +1 -1
  167. package/dist/src/designs/providers/ModalProvider/components/Base.d.ts +6 -0
  168. package/dist/src/designs/providers/ModalProvider/components/Base.d.ts.map +1 -0
  169. package/dist/src/designs/providers/ModalProvider/components/Confirm.d.ts +6 -0
  170. package/dist/src/designs/providers/ModalProvider/components/Confirm.d.ts.map +1 -0
  171. package/dist/src/designs/providers/ModalProvider/components/Loading.d.ts +6 -0
  172. package/dist/src/designs/providers/ModalProvider/components/Loading.d.ts.map +1 -0
  173. package/dist/src/designs/providers/ModalProvider/index.d.ts +10 -0
  174. package/dist/src/designs/providers/ModalProvider/index.d.ts.map +1 -0
  175. package/dist/src/{preference/constants.d.ts → enums/dashboard.d.ts} +4 -8
  176. package/dist/src/enums/dashboard.d.ts.map +1 -0
  177. package/dist/src/enums/index.d.ts +4 -0
  178. package/dist/src/enums/index.d.ts.map +1 -0
  179. package/dist/src/enums/language.d.ts +13 -0
  180. package/dist/src/enums/language.d.ts.map +1 -0
  181. package/dist/src/enums/theme.d.ts +107 -0
  182. package/dist/src/enums/theme.d.ts.map +1 -0
  183. package/dist/src/hooks/index.d.ts +2 -4
  184. package/dist/src/hooks/index.d.ts.map +1 -1
  185. package/dist/src/hooks/preference.d.ts +21 -0
  186. package/dist/src/hooks/preference.d.ts.map +1 -0
  187. package/dist/src/icons/animated/accessibility-icon.d.ts +13 -0
  188. package/dist/src/icons/animated/accessibility-icon.d.ts.map +1 -0
  189. package/dist/src/icons/animated/airplane-icon.d.ts +9 -0
  190. package/dist/src/icons/animated/airplane-icon.d.ts.map +1 -0
  191. package/dist/src/icons/animated/alarm-clock-plus-icon.d.ts +11 -0
  192. package/dist/src/icons/animated/alarm-clock-plus-icon.d.ts.map +1 -0
  193. package/dist/src/icons/animated/align-center-icon.d.ts +4 -0
  194. package/dist/src/icons/animated/align-center-icon.d.ts.map +1 -0
  195. package/dist/src/icons/animated/align-vertical-space-around-icon.d.ts +4 -0
  196. package/dist/src/icons/animated/align-vertical-space-around-icon.d.ts.map +1 -0
  197. package/dist/src/icons/animated/ambulance-icon.d.ts +4 -0
  198. package/dist/src/icons/animated/ambulance-icon.d.ts.map +1 -0
  199. package/dist/src/icons/animated/ampersand-icon.d.ts +4 -0
  200. package/dist/src/icons/animated/ampersand-icon.d.ts.map +1 -0
  201. package/dist/src/icons/animated/angry-icon.d.ts +4 -0
  202. package/dist/src/icons/animated/angry-icon.d.ts.map +1 -0
  203. package/dist/src/icons/animated/annoyed-icon.d.ts +4 -0
  204. package/dist/src/icons/animated/annoyed-icon.d.ts.map +1 -0
  205. package/dist/src/icons/animated/apple-brand-logo.d.ts +4 -0
  206. package/dist/src/icons/animated/apple-brand-logo.d.ts.map +1 -0
  207. package/dist/src/icons/animated/arrow-back-icon.d.ts +4 -0
  208. package/dist/src/icons/animated/arrow-back-icon.d.ts.map +1 -0
  209. package/dist/src/icons/animated/arrow-back-up-icon.d.ts +4 -0
  210. package/dist/src/icons/animated/arrow-back-up-icon.d.ts.map +1 -0
  211. package/dist/src/icons/animated/arrow-big-down-dash-icon.d.ts +4 -0
  212. package/dist/src/icons/animated/arrow-big-down-dash-icon.d.ts.map +1 -0
  213. package/dist/src/icons/animated/arrow-big-down-icon.d.ts +4 -0
  214. package/dist/src/icons/animated/arrow-big-down-icon.d.ts.map +1 -0
  215. package/dist/src/icons/animated/arrow-big-left-dash-icon.d.ts +4 -0
  216. package/dist/src/icons/animated/arrow-big-left-dash-icon.d.ts.map +1 -0
  217. package/dist/src/icons/animated/arrow-big-left-icon.d.ts +4 -0
  218. package/dist/src/icons/animated/arrow-big-left-icon.d.ts.map +1 -0
  219. package/dist/src/icons/animated/arrow-big-right-dash-icon.d.ts +4 -0
  220. package/dist/src/icons/animated/arrow-big-right-dash-icon.d.ts.map +1 -0
  221. package/dist/src/icons/animated/arrow-big-right-icon.d.ts +4 -0
  222. package/dist/src/icons/animated/arrow-big-right-icon.d.ts.map +1 -0
  223. package/dist/src/icons/animated/arrow-big-up-dash-icon.d.ts +4 -0
  224. package/dist/src/icons/animated/arrow-big-up-dash-icon.d.ts.map +1 -0
  225. package/dist/src/icons/animated/arrow-big-up-icon.d.ts +4 -0
  226. package/dist/src/icons/animated/arrow-big-up-icon.d.ts.map +1 -0
  227. package/dist/src/icons/animated/arrow-down-0-1-icon.d.ts +4 -0
  228. package/dist/src/icons/animated/arrow-down-0-1-icon.d.ts.map +1 -0
  229. package/dist/src/icons/animated/arrow-down-1-0-icon.d.ts +4 -0
  230. package/dist/src/icons/animated/arrow-down-1-0-icon.d.ts.map +1 -0
  231. package/dist/src/icons/animated/arrow-down-a-z-icon.d.ts +4 -0
  232. package/dist/src/icons/animated/arrow-down-a-z-icon.d.ts.map +1 -0
  233. package/dist/src/icons/animated/arrow-narrow-down-dashed-icon.d.ts +4 -0
  234. package/dist/src/icons/animated/arrow-narrow-down-dashed-icon.d.ts.map +1 -0
  235. package/dist/src/icons/animated/arrow-narrow-down-icon.d.ts +4 -0
  236. package/dist/src/icons/animated/arrow-narrow-down-icon.d.ts.map +1 -0
  237. package/dist/src/icons/animated/arrow-narrow-left-dashed-icon.d.ts +4 -0
  238. package/dist/src/icons/animated/arrow-narrow-left-dashed-icon.d.ts.map +1 -0
  239. package/dist/src/icons/animated/arrow-narrow-left-icon.d.ts +4 -0
  240. package/dist/src/icons/animated/arrow-narrow-left-icon.d.ts.map +1 -0
  241. package/dist/src/icons/animated/arrow-narrow-right-dashed-icon.d.ts +4 -0
  242. package/dist/src/icons/animated/arrow-narrow-right-dashed-icon.d.ts.map +1 -0
  243. package/dist/src/icons/animated/arrow-narrow-right-icon.d.ts +4 -0
  244. package/dist/src/icons/animated/arrow-narrow-right-icon.d.ts.map +1 -0
  245. package/dist/src/icons/animated/arrow-narrow-up-dashed-icon.d.ts +4 -0
  246. package/dist/src/icons/animated/arrow-narrow-up-dashed-icon.d.ts.map +1 -0
  247. package/dist/src/icons/animated/arrow-narrow-up-icon.d.ts +4 -0
  248. package/dist/src/icons/animated/arrow-narrow-up-icon.d.ts.map +1 -0
  249. package/dist/src/icons/animated/at-sign-icon.d.ts +4 -0
  250. package/dist/src/icons/animated/at-sign-icon.d.ts.map +1 -0
  251. package/dist/src/icons/animated/banana-icon.d.ts +4 -0
  252. package/dist/src/icons/animated/banana-icon.d.ts.map +1 -0
  253. package/dist/src/icons/animated/battery-charging-icon.d.ts +4 -0
  254. package/dist/src/icons/animated/battery-charging-icon.d.ts.map +1 -0
  255. package/dist/src/icons/animated/battery-icon.d.ts +4 -0
  256. package/dist/src/icons/animated/battery-icon.d.ts.map +1 -0
  257. package/dist/src/icons/animated/battery-pause-icon.d.ts +4 -0
  258. package/dist/src/icons/animated/battery-pause-icon.d.ts.map +1 -0
  259. package/dist/src/icons/animated/bell-off-icon.d.ts +4 -0
  260. package/dist/src/icons/animated/bell-off-icon.d.ts.map +1 -0
  261. package/dist/src/icons/animated/bluetooth-connected-icon.d.ts +4 -0
  262. package/dist/src/icons/animated/bluetooth-connected-icon.d.ts.map +1 -0
  263. package/dist/src/icons/animated/book-icon.d.ts +4 -0
  264. package/dist/src/icons/animated/book-icon.d.ts.map +1 -0
  265. package/dist/src/icons/animated/bookmark-icon.d.ts +4 -0
  266. package/dist/src/icons/animated/bookmark-icon.d.ts.map +1 -0
  267. package/dist/src/icons/animated/brain-circuit-icon.d.ts +4 -0
  268. package/dist/src/icons/animated/brain-circuit-icon.d.ts.map +1 -0
  269. package/dist/src/icons/animated/brand-aistudio-icon.d.ts +4 -0
  270. package/dist/src/icons/animated/brand-aistudio-icon.d.ts.map +1 -0
  271. package/dist/src/icons/animated/brand-anthropic-icon.d.ts +4 -0
  272. package/dist/src/icons/animated/brand-anthropic-icon.d.ts.map +1 -0
  273. package/dist/src/icons/animated/brand-aws-icon.d.ts +4 -0
  274. package/dist/src/icons/animated/brand-aws-icon.d.ts.map +1 -0
  275. package/dist/src/icons/animated/brand-bags-fm-icon.d.ts +4 -0
  276. package/dist/src/icons/animated/brand-bags-fm-icon.d.ts.map +1 -0
  277. package/dist/src/icons/animated/brand-chrome-icon.d.ts +4 -0
  278. package/dist/src/icons/animated/brand-chrome-icon.d.ts.map +1 -0
  279. package/dist/src/icons/animated/brand-cursor-icon.d.ts +4 -0
  280. package/dist/src/icons/animated/brand-cursor-icon.d.ts.map +1 -0
  281. package/dist/src/icons/animated/brand-gemini-icon.d.ts +4 -0
  282. package/dist/src/icons/animated/brand-gemini-icon.d.ts.map +1 -0
  283. package/dist/src/icons/animated/brand-google-icon.d.ts +4 -0
  284. package/dist/src/icons/animated/brand-google-icon.d.ts.map +1 -0
  285. package/dist/src/icons/animated/brand-grok-icon.d.ts +4 -0
  286. package/dist/src/icons/animated/brand-grok-icon.d.ts.map +1 -0
  287. package/dist/src/icons/animated/brand-lmstudio-icon.d.ts +4 -0
  288. package/dist/src/icons/animated/brand-lmstudio-icon.d.ts.map +1 -0
  289. package/dist/src/icons/animated/brand-midjourney-icon.d.ts +4 -0
  290. package/dist/src/icons/animated/brand-midjourney-icon.d.ts.map +1 -0
  291. package/dist/src/icons/animated/brand-nextjs-icon.d.ts +4 -0
  292. package/dist/src/icons/animated/brand-nextjs-icon.d.ts.map +1 -0
  293. package/dist/src/icons/animated/brand-notion-icon.d.ts +4 -0
  294. package/dist/src/icons/animated/brand-notion-icon.d.ts.map +1 -0
  295. package/dist/src/icons/animated/brand-ollama-icon.d.ts +4 -0
  296. package/dist/src/icons/animated/brand-ollama-icon.d.ts.map +1 -0
  297. package/dist/src/icons/animated/brand-openai-icon.d.ts +4 -0
  298. package/dist/src/icons/animated/brand-openai-icon.d.ts.map +1 -0
  299. package/dist/src/icons/animated/brand-paypal-icon.d.ts +4 -0
  300. package/dist/src/icons/animated/brand-paypal-icon.d.ts.map +1 -0
  301. package/dist/src/icons/animated/brand-qwen-icon.d.ts +4 -0
  302. package/dist/src/icons/animated/brand-qwen-icon.d.ts.map +1 -0
  303. package/dist/src/icons/animated/brand-railway-icon.d.ts +4 -0
  304. package/dist/src/icons/animated/brand-railway-icon.d.ts.map +1 -0
  305. package/dist/src/icons/animated/brand-react-icon.d.ts +4 -0
  306. package/dist/src/icons/animated/brand-react-icon.d.ts.map +1 -0
  307. package/dist/src/icons/animated/brand-react-native-icon.d.ts +4 -0
  308. package/dist/src/icons/animated/brand-react-native-icon.d.ts.map +1 -0
  309. package/dist/src/icons/animated/brand-stripe-icon.d.ts +4 -0
  310. package/dist/src/icons/animated/brand-stripe-icon.d.ts.map +1 -0
  311. package/dist/src/icons/animated/brand-telegram-icon.d.ts +4 -0
  312. package/dist/src/icons/animated/brand-telegram-icon.d.ts.map +1 -0
  313. package/dist/src/icons/animated/brand-threads-icon.d.ts +4 -0
  314. package/dist/src/icons/animated/brand-threads-icon.d.ts.map +1 -0
  315. package/dist/src/icons/animated/brand-twitch-icon.d.ts +4 -0
  316. package/dist/src/icons/animated/brand-twitch-icon.d.ts.map +1 -0
  317. package/dist/src/icons/animated/brand-vercel-icon.d.ts +4 -0
  318. package/dist/src/icons/animated/brand-vercel-icon.d.ts.map +1 -0
  319. package/dist/src/icons/animated/brand-windows-icon.d.ts +4 -0
  320. package/dist/src/icons/animated/brand-windows-icon.d.ts.map +1 -0
  321. package/dist/src/icons/animated/brand-wordpress-icon.d.ts +4 -0
  322. package/dist/src/icons/animated/brand-wordpress-icon.d.ts.map +1 -0
  323. package/dist/src/icons/animated/brand-xai-icon.d.ts +4 -0
  324. package/dist/src/icons/animated/brand-xai-icon.d.ts.map +1 -0
  325. package/dist/src/icons/animated/brand-zoom-icon.d.ts +4 -0
  326. package/dist/src/icons/animated/brand-zoom-icon.d.ts.map +1 -0
  327. package/dist/src/icons/animated/brightness-down-icon.d.ts +4 -0
  328. package/dist/src/icons/animated/brightness-down-icon.d.ts.map +1 -0
  329. package/dist/src/icons/animated/bug-icon.d.ts +4 -0
  330. package/dist/src/icons/animated/bug-icon.d.ts.map +1 -0
  331. package/dist/src/icons/animated/bulb-svg.d.ts +4 -0
  332. package/dist/src/icons/animated/bulb-svg.d.ts.map +1 -0
  333. package/dist/src/icons/animated/camera-icon.d.ts +4 -0
  334. package/dist/src/icons/animated/camera-icon.d.ts.map +1 -0
  335. package/dist/src/icons/animated/camera-off-icon.d.ts +4 -0
  336. package/dist/src/icons/animated/camera-off-icon.d.ts.map +1 -0
  337. package/dist/src/icons/animated/candy-cane-icon.d.ts +4 -0
  338. package/dist/src/icons/animated/candy-cane-icon.d.ts.map +1 -0
  339. package/dist/src/icons/animated/cart-icon.d.ts +4 -0
  340. package/dist/src/icons/animated/cart-icon.d.ts.map +1 -0
  341. package/dist/src/icons/animated/chart-bar-icon.d.ts +4 -0
  342. package/dist/src/icons/animated/chart-bar-icon.d.ts.map +1 -0
  343. package/dist/src/icons/animated/chart-covariate-icon.d.ts +4 -0
  344. package/dist/src/icons/animated/chart-covariate-icon.d.ts.map +1 -0
  345. package/dist/src/icons/animated/chart-histogram-icon.d.ts +4 -0
  346. package/dist/src/icons/animated/chart-histogram-icon.d.ts.map +1 -0
  347. package/dist/src/icons/animated/chart-line-icon.d.ts +4 -0
  348. package/dist/src/icons/animated/chart-line-icon.d.ts.map +1 -0
  349. package/dist/src/icons/animated/chart-pie-icon.d.ts +4 -0
  350. package/dist/src/icons/animated/chart-pie-icon.d.ts.map +1 -0
  351. package/dist/src/icons/animated/checked-icon.d.ts +4 -0
  352. package/dist/src/icons/animated/checked-icon.d.ts.map +1 -0
  353. package/dist/src/icons/animated/clock-icon.d.ts +4 -0
  354. package/dist/src/icons/animated/clock-icon.d.ts.map +1 -0
  355. package/dist/src/icons/animated/cloud-1-icon.d.ts +4 -0
  356. package/dist/src/icons/animated/cloud-1-icon.d.ts.map +1 -0
  357. package/dist/src/icons/animated/cloud-2-icon.d.ts +4 -0
  358. package/dist/src/icons/animated/cloud-2-icon.d.ts.map +1 -0
  359. package/dist/src/icons/animated/cloud-3-icon.d.ts +4 -0
  360. package/dist/src/icons/animated/cloud-3-icon.d.ts.map +1 -0
  361. package/dist/src/icons/animated/code-icon.d.ts +4 -0
  362. package/dist/src/icons/animated/code-icon.d.ts.map +1 -0
  363. package/dist/src/icons/animated/code-xml-icon.d.ts +4 -0
  364. package/dist/src/icons/animated/code-xml-icon.d.ts.map +1 -0
  365. package/dist/src/icons/animated/coffee-icon.d.ts +4 -0
  366. package/dist/src/icons/animated/coffee-icon.d.ts.map +1 -0
  367. package/dist/src/icons/animated/coin-bitcoin-icon.d.ts +4 -0
  368. package/dist/src/icons/animated/coin-bitcoin-icon.d.ts.map +1 -0
  369. package/dist/src/icons/animated/copy-icon.d.ts +4 -0
  370. package/dist/src/icons/animated/copy-icon.d.ts.map +1 -0
  371. package/dist/src/icons/animated/copy-off-icon.d.ts +4 -0
  372. package/dist/src/icons/animated/copy-off-icon.d.ts.map +1 -0
  373. package/dist/src/icons/animated/copyright-icon.d.ts +4 -0
  374. package/dist/src/icons/animated/copyright-icon.d.ts.map +1 -0
  375. package/dist/src/icons/animated/cpu-icon.d.ts +4 -0
  376. package/dist/src/icons/animated/cpu-icon.d.ts.map +1 -0
  377. package/dist/src/icons/animated/credit-card.d.ts +4 -0
  378. package/dist/src/icons/animated/credit-card.d.ts.map +1 -0
  379. package/dist/src/icons/animated/currency-bitcoin-icon.d.ts +4 -0
  380. package/dist/src/icons/animated/currency-bitcoin-icon.d.ts.map +1 -0
  381. package/dist/src/icons/animated/currency-dollar-icon.d.ts +4 -0
  382. package/dist/src/icons/animated/currency-dollar-icon.d.ts.map +1 -0
  383. package/dist/src/icons/animated/currency-ethereum-icon.d.ts +4 -0
  384. package/dist/src/icons/animated/currency-ethereum-icon.d.ts.map +1 -0
  385. package/dist/src/icons/animated/currency-euro-icon.d.ts +4 -0
  386. package/dist/src/icons/animated/currency-euro-icon.d.ts.map +1 -0
  387. package/dist/src/icons/animated/currency-rupee-icon.d.ts +4 -0
  388. package/dist/src/icons/animated/currency-rupee-icon.d.ts.map +1 -0
  389. package/dist/src/icons/animated/device-airpods-icon.d.ts +4 -0
  390. package/dist/src/icons/animated/device-airpods-icon.d.ts.map +1 -0
  391. package/dist/src/icons/animated/dialpad-icon.d.ts +4 -0
  392. package/dist/src/icons/animated/dialpad-icon.d.ts.map +1 -0
  393. package/dist/src/icons/animated/dino-icon.d.ts +4 -0
  394. package/dist/src/icons/animated/dino-icon.d.ts.map +1 -0
  395. package/dist/src/icons/animated/discord-icon.d.ts +4 -0
  396. package/dist/src/icons/animated/discord-icon.d.ts.map +1 -0
  397. package/dist/src/icons/animated/docker-icon.d.ts +4 -0
  398. package/dist/src/icons/animated/docker-icon.d.ts.map +1 -0
  399. package/dist/src/icons/animated/dots-horizontal-icon.d.ts +4 -0
  400. package/dist/src/icons/animated/dots-horizontal-icon.d.ts.map +1 -0
  401. package/dist/src/icons/animated/dots-vertical-icon.d.ts +4 -0
  402. package/dist/src/icons/animated/dots-vertical-icon.d.ts.map +1 -0
  403. package/dist/src/icons/animated/double-check-icon.d.ts +4 -0
  404. package/dist/src/icons/animated/double-check-icon.d.ts.map +1 -0
  405. package/dist/src/icons/animated/down-chevron.d.ts +4 -0
  406. package/dist/src/icons/animated/down-chevron.d.ts.map +1 -0
  407. package/dist/src/icons/animated/download-icon.d.ts +4 -0
  408. package/dist/src/icons/animated/download-icon.d.ts.map +1 -0
  409. package/dist/src/icons/animated/drum-icon.d.ts +4 -0
  410. package/dist/src/icons/animated/drum-icon.d.ts.map +1 -0
  411. package/dist/src/icons/animated/expand-icon.d.ts +4 -0
  412. package/dist/src/icons/animated/expand-icon.d.ts.map +1 -0
  413. package/dist/src/icons/animated/external-link-icon.d.ts +4 -0
  414. package/dist/src/icons/animated/external-link-icon.d.ts.map +1 -0
  415. package/dist/src/icons/animated/eye-icon.d.ts +4 -0
  416. package/dist/src/icons/animated/eye-icon.d.ts.map +1 -0
  417. package/dist/src/icons/animated/eye-off-icon.d.ts +4 -0
  418. package/dist/src/icons/animated/eye-off-icon.d.ts.map +1 -0
  419. package/dist/src/icons/animated/facebook-icon.d.ts +4 -0
  420. package/dist/src/icons/animated/facebook-icon.d.ts.map +1 -0
  421. package/dist/src/icons/animated/figma-icon.d.ts +4 -0
  422. package/dist/src/icons/animated/figma-icon.d.ts.map +1 -0
  423. package/dist/src/icons/animated/file-description-icon.d.ts +4 -0
  424. package/dist/src/icons/animated/file-description-icon.d.ts.map +1 -0
  425. package/dist/src/icons/animated/filled-bell-icon.d.ts +4 -0
  426. package/dist/src/icons/animated/filled-bell-icon.d.ts.map +1 -0
  427. package/dist/src/icons/animated/filled-checked-icon.d.ts +4 -0
  428. package/dist/src/icons/animated/filled-checked-icon.d.ts.map +1 -0
  429. package/dist/src/icons/animated/filter-icon.d.ts +4 -0
  430. package/dist/src/icons/animated/filter-icon.d.ts.map +1 -0
  431. package/dist/src/icons/animated/flame-icon.d.ts +4 -0
  432. package/dist/src/icons/animated/flame-icon.d.ts.map +1 -0
  433. package/dist/src/icons/animated/focus-icon.d.ts +4 -0
  434. package/dist/src/icons/animated/focus-icon.d.ts.map +1 -0
  435. package/dist/src/icons/animated/gamepad-icon.d.ts +4 -0
  436. package/dist/src/icons/animated/gamepad-icon.d.ts.map +1 -0
  437. package/dist/src/icons/animated/gauge-icon.d.ts +4 -0
  438. package/dist/src/icons/animated/gauge-icon.d.ts.map +1 -0
  439. package/dist/src/icons/animated/gear-icon.d.ts +4 -0
  440. package/dist/src/icons/animated/gear-icon.d.ts.map +1 -0
  441. package/dist/src/icons/animated/ghost-icon.d.ts +4 -0
  442. package/dist/src/icons/animated/ghost-icon.d.ts.map +1 -0
  443. package/dist/src/icons/animated/github-copilot-icon.d.ts +4 -0
  444. package/dist/src/icons/animated/github-copilot-icon.d.ts.map +1 -0
  445. package/dist/src/icons/animated/github-icon.d.ts +4 -0
  446. package/dist/src/icons/animated/github-icon.d.ts.map +1 -0
  447. package/dist/src/icons/animated/gitlab-icon.d.ts +4 -0
  448. package/dist/src/icons/animated/gitlab-icon.d.ts.map +1 -0
  449. package/dist/src/icons/animated/globe-icon.d.ts +4 -0
  450. package/dist/src/icons/animated/globe-icon.d.ts.map +1 -0
  451. package/dist/src/icons/animated/gmail-icon.d.ts +4 -0
  452. package/dist/src/icons/animated/gmail-icon.d.ts.map +1 -0
  453. package/dist/src/icons/animated/golang-icon.d.ts +4 -0
  454. package/dist/src/icons/animated/golang-icon.d.ts.map +1 -0
  455. package/dist/src/icons/animated/hand-heart-icon.d.ts +4 -0
  456. package/dist/src/icons/animated/hand-heart-icon.d.ts.map +1 -0
  457. package/dist/src/icons/animated/hashtag-icon.d.ts +4 -0
  458. package/dist/src/icons/animated/hashtag-icon.d.ts.map +1 -0
  459. package/dist/src/icons/animated/heart-icon.d.ts +4 -0
  460. package/dist/src/icons/animated/heart-icon.d.ts.map +1 -0
  461. package/dist/src/icons/animated/history-circle-icon.d.ts +4 -0
  462. package/dist/src/icons/animated/history-circle-icon.d.ts.map +1 -0
  463. package/dist/src/icons/animated/home-icon.d.ts +4 -0
  464. package/dist/src/icons/animated/home-icon.d.ts.map +1 -0
  465. package/dist/src/icons/animated/hotel-icon.d.ts +4 -0
  466. package/dist/src/icons/animated/hotel-icon.d.ts.map +1 -0
  467. package/dist/src/icons/animated/index.d.ts +267 -0
  468. package/dist/src/icons/animated/index.d.ts.map +1 -0
  469. package/dist/src/icons/animated/info-circle-icon.d.ts +4 -0
  470. package/dist/src/icons/animated/info-circle-icon.d.ts.map +1 -0
  471. package/dist/src/icons/animated/instagram-icon.d.ts +4 -0
  472. package/dist/src/icons/animated/instagram-icon.d.ts.map +1 -0
  473. package/dist/src/icons/animated/javascript-icon.d.ts +4 -0
  474. package/dist/src/icons/animated/javascript-icon.d.ts.map +1 -0
  475. package/dist/src/icons/animated/keyframes-icon.d.ts +4 -0
  476. package/dist/src/icons/animated/keyframes-icon.d.ts.map +1 -0
  477. package/dist/src/icons/animated/layers-icon.d.ts +4 -0
  478. package/dist/src/icons/animated/layers-icon.d.ts.map +1 -0
  479. package/dist/src/icons/animated/layout-bottombar-collapse-icon.d.ts +4 -0
  480. package/dist/src/icons/animated/layout-bottombar-collapse-icon.d.ts.map +1 -0
  481. package/dist/src/icons/animated/layout-dashboard-icon.d.ts +4 -0
  482. package/dist/src/icons/animated/layout-dashboard-icon.d.ts.map +1 -0
  483. package/dist/src/icons/animated/layout-sidebar-right-collapse-icon.d.ts +4 -0
  484. package/dist/src/icons/animated/layout-sidebar-right-collapse-icon.d.ts.map +1 -0
  485. package/dist/src/icons/animated/layout-sidebar-right-icon.d.ts +4 -0
  486. package/dist/src/icons/animated/layout-sidebar-right-icon.d.ts.map +1 -0
  487. package/dist/src/icons/animated/letter-a-icon.d.ts +4 -0
  488. package/dist/src/icons/animated/letter-a-icon.d.ts.map +1 -0
  489. package/dist/src/icons/animated/letter-b-icon.d.ts +4 -0
  490. package/dist/src/icons/animated/letter-b-icon.d.ts.map +1 -0
  491. package/dist/src/icons/animated/letter-c-icon.d.ts +4 -0
  492. package/dist/src/icons/animated/letter-c-icon.d.ts.map +1 -0
  493. package/dist/src/icons/animated/letter-d-icon.d.ts +4 -0
  494. package/dist/src/icons/animated/letter-d-icon.d.ts.map +1 -0
  495. package/dist/src/icons/animated/letter-e-icon.d.ts +4 -0
  496. package/dist/src/icons/animated/letter-e-icon.d.ts.map +1 -0
  497. package/dist/src/icons/animated/letter-f-icon.d.ts +4 -0
  498. package/dist/src/icons/animated/letter-f-icon.d.ts.map +1 -0
  499. package/dist/src/icons/animated/letter-g-icon.d.ts +4 -0
  500. package/dist/src/icons/animated/letter-g-icon.d.ts.map +1 -0
  501. package/dist/src/icons/animated/letter-h-icon.d.ts +4 -0
  502. package/dist/src/icons/animated/letter-h-icon.d.ts.map +1 -0
  503. package/dist/src/icons/animated/letter-i-icon.d.ts +4 -0
  504. package/dist/src/icons/animated/letter-i-icon.d.ts.map +1 -0
  505. package/dist/src/icons/animated/letter-j-icon.d.ts +4 -0
  506. package/dist/src/icons/animated/letter-j-icon.d.ts.map +1 -0
  507. package/dist/src/icons/animated/letter-k-icon.d.ts +4 -0
  508. package/dist/src/icons/animated/letter-k-icon.d.ts.map +1 -0
  509. package/dist/src/icons/animated/letter-l-icon.d.ts +4 -0
  510. package/dist/src/icons/animated/letter-l-icon.d.ts.map +1 -0
  511. package/dist/src/icons/animated/letter-m-icon.d.ts +4 -0
  512. package/dist/src/icons/animated/letter-m-icon.d.ts.map +1 -0
  513. package/dist/src/icons/animated/letter-n-icon.d.ts +4 -0
  514. package/dist/src/icons/animated/letter-n-icon.d.ts.map +1 -0
  515. package/dist/src/icons/animated/letter-o-icon.d.ts +4 -0
  516. package/dist/src/icons/animated/letter-o-icon.d.ts.map +1 -0
  517. package/dist/src/icons/animated/letter-p-icon.d.ts +4 -0
  518. package/dist/src/icons/animated/letter-p-icon.d.ts.map +1 -0
  519. package/dist/src/icons/animated/letter-q-icon.d.ts +4 -0
  520. package/dist/src/icons/animated/letter-q-icon.d.ts.map +1 -0
  521. package/dist/src/icons/animated/letter-r-icon.d.ts +4 -0
  522. package/dist/src/icons/animated/letter-r-icon.d.ts.map +1 -0
  523. package/dist/src/icons/animated/letter-s-icon.d.ts +4 -0
  524. package/dist/src/icons/animated/letter-s-icon.d.ts.map +1 -0
  525. package/dist/src/icons/animated/letter-t-icon.d.ts +4 -0
  526. package/dist/src/icons/animated/letter-t-icon.d.ts.map +1 -0
  527. package/dist/src/icons/animated/letter-u-icon.d.ts +4 -0
  528. package/dist/src/icons/animated/letter-u-icon.d.ts.map +1 -0
  529. package/dist/src/icons/animated/letter-v-icon.d.ts +4 -0
  530. package/dist/src/icons/animated/letter-v-icon.d.ts.map +1 -0
  531. package/dist/src/icons/animated/letter-w-icon.d.ts +4 -0
  532. package/dist/src/icons/animated/letter-w-icon.d.ts.map +1 -0
  533. package/dist/src/icons/animated/letter-x-icon.d.ts +4 -0
  534. package/dist/src/icons/animated/letter-x-icon.d.ts.map +1 -0
  535. package/dist/src/icons/animated/letter-y-icon.d.ts +4 -0
  536. package/dist/src/icons/animated/letter-y-icon.d.ts.map +1 -0
  537. package/dist/src/icons/animated/letter-z-icon.d.ts +4 -0
  538. package/dist/src/icons/animated/letter-z-icon.d.ts.map +1 -0
  539. package/dist/src/icons/animated/library-icon.d.ts +4 -0
  540. package/dist/src/icons/animated/library-icon.d.ts.map +1 -0
  541. package/dist/src/icons/animated/like-icon.d.ts +4 -0
  542. package/dist/src/icons/animated/like-icon.d.ts.map +1 -0
  543. package/dist/src/icons/animated/link-icon.d.ts +4 -0
  544. package/dist/src/icons/animated/link-icon.d.ts.map +1 -0
  545. package/dist/src/icons/animated/linkedin-icon.d.ts +4 -0
  546. package/dist/src/icons/animated/linkedin-icon.d.ts.map +1 -0
  547. package/dist/src/icons/animated/locate-icon.d.ts +4 -0
  548. package/dist/src/icons/animated/locate-icon.d.ts.map +1 -0
  549. package/dist/src/icons/animated/lock-icon.d.ts +4 -0
  550. package/dist/src/icons/animated/lock-icon.d.ts.map +1 -0
  551. package/dist/src/icons/animated/logout-icon.d.ts +4 -0
  552. package/dist/src/icons/animated/logout-icon.d.ts.map +1 -0
  553. package/dist/src/icons/animated/magnifier-icon.d.ts +4 -0
  554. package/dist/src/icons/animated/magnifier-icon.d.ts.map +1 -0
  555. package/dist/src/icons/animated/mail-filled-icon.d.ts +4 -0
  556. package/dist/src/icons/animated/mail-filled-icon.d.ts.map +1 -0
  557. package/dist/src/icons/animated/map-pin-icon.d.ts +4 -0
  558. package/dist/src/icons/animated/map-pin-icon.d.ts.map +1 -0
  559. package/dist/src/icons/animated/meh-icon.d.ts +4 -0
  560. package/dist/src/icons/animated/meh-icon.d.ts.map +1 -0
  561. package/dist/src/icons/animated/message-circle-icon.d.ts +4 -0
  562. package/dist/src/icons/animated/message-circle-icon.d.ts.map +1 -0
  563. package/dist/src/icons/animated/moon-icon.d.ts +4 -0
  564. package/dist/src/icons/animated/moon-icon.d.ts.map +1 -0
  565. package/dist/src/icons/animated/mouse-pointer-2-icon.d.ts +4 -0
  566. package/dist/src/icons/animated/mouse-pointer-2-icon.d.ts.map +1 -0
  567. package/dist/src/icons/animated/mysql-icon.d.ts +4 -0
  568. package/dist/src/icons/animated/mysql-icon.d.ts.map +1 -0
  569. package/dist/src/icons/animated/nodejs-icon.d.ts +4 -0
  570. package/dist/src/icons/animated/nodejs-icon.d.ts.map +1 -0
  571. package/dist/src/icons/animated/paint-icon.d.ts +4 -0
  572. package/dist/src/icons/animated/paint-icon.d.ts.map +1 -0
  573. package/dist/src/icons/animated/party-popper-icon.d.ts +4 -0
  574. package/dist/src/icons/animated/party-popper-icon.d.ts.map +1 -0
  575. package/dist/src/icons/animated/passport-icon.d.ts +4 -0
  576. package/dist/src/icons/animated/passport-icon.d.ts.map +1 -0
  577. package/dist/src/icons/animated/paw-print-icon.d.ts +4 -0
  578. package/dist/src/icons/animated/paw-print-icon.d.ts.map +1 -0
  579. package/dist/src/icons/animated/pen-icon.d.ts +4 -0
  580. package/dist/src/icons/animated/pen-icon.d.ts.map +1 -0
  581. package/dist/src/icons/animated/phone-volume.d.ts +4 -0
  582. package/dist/src/icons/animated/phone-volume.d.ts.map +1 -0
  583. package/dist/src/icons/animated/pinterest-icon.d.ts +4 -0
  584. package/dist/src/icons/animated/pinterest-icon.d.ts.map +1 -0
  585. package/dist/src/icons/animated/player-icon.d.ts +4 -0
  586. package/dist/src/icons/animated/player-icon.d.ts.map +1 -0
  587. package/dist/src/icons/animated/plug-connected-icon.d.ts +4 -0
  588. package/dist/src/icons/animated/plug-connected-icon.d.ts.map +1 -0
  589. package/dist/src/icons/animated/plug-connected-x-icon.d.ts +4 -0
  590. package/dist/src/icons/animated/plug-connected-x-icon.d.ts.map +1 -0
  591. package/dist/src/icons/animated/python-icon.d.ts +4 -0
  592. package/dist/src/icons/animated/python-icon.d.ts.map +1 -0
  593. package/dist/src/icons/animated/qrcode-icon.d.ts +4 -0
  594. package/dist/src/icons/animated/qrcode-icon.d.ts.map +1 -0
  595. package/dist/src/icons/animated/question-mark.d.ts +4 -0
  596. package/dist/src/icons/animated/question-mark.d.ts.map +1 -0
  597. package/dist/src/icons/animated/radio-icon.d.ts +4 -0
  598. package/dist/src/icons/animated/radio-icon.d.ts.map +1 -0
  599. package/dist/src/icons/animated/rainbow-icon.d.ts +4 -0
  600. package/dist/src/icons/animated/rainbow-icon.d.ts.map +1 -0
  601. package/dist/src/icons/animated/refresh-icon.d.ts +4 -0
  602. package/dist/src/icons/animated/refresh-icon.d.ts.map +1 -0
  603. package/dist/src/icons/animated/right-chevron.d.ts +4 -0
  604. package/dist/src/icons/animated/right-chevron.d.ts.map +1 -0
  605. package/dist/src/icons/animated/rocket-icon.d.ts +4 -0
  606. package/dist/src/icons/animated/rocket-icon.d.ts.map +1 -0
  607. package/dist/src/icons/animated/rosette-discount-check-icon.d.ts +4 -0
  608. package/dist/src/icons/animated/rosette-discount-check-icon.d.ts.map +1 -0
  609. package/dist/src/icons/animated/rosette-discount-icon.d.ts +4 -0
  610. package/dist/src/icons/animated/rosette-discount-icon.d.ts.map +1 -0
  611. package/dist/src/icons/animated/router-icon.d.ts +4 -0
  612. package/dist/src/icons/animated/router-icon.d.ts.map +1 -0
  613. package/dist/src/icons/animated/satellite-dish-icon.d.ts +4 -0
  614. package/dist/src/icons/animated/satellite-dish-icon.d.ts.map +1 -0
  615. package/dist/src/icons/animated/save-icon.d.ts +4 -0
  616. package/dist/src/icons/animated/save-icon.d.ts.map +1 -0
  617. package/dist/src/icons/animated/scan-barcode-icon.d.ts +4 -0
  618. package/dist/src/icons/animated/scan-barcode-icon.d.ts.map +1 -0
  619. package/dist/src/icons/animated/scan-heart-icon.d.ts +4 -0
  620. package/dist/src/icons/animated/scan-heart-icon.d.ts.map +1 -0
  621. package/dist/src/icons/animated/send-horizontal-icon.d.ts +4 -0
  622. package/dist/src/icons/animated/send-horizontal-icon.d.ts.map +1 -0
  623. package/dist/src/icons/animated/send-icon.d.ts +4 -0
  624. package/dist/src/icons/animated/send-icon.d.ts.map +1 -0
  625. package/dist/src/icons/animated/shield-check.d.ts +4 -0
  626. package/dist/src/icons/animated/shield-check.d.ts.map +1 -0
  627. package/dist/src/icons/animated/shopping-cart-icon.d.ts +4 -0
  628. package/dist/src/icons/animated/shopping-cart-icon.d.ts.map +1 -0
  629. package/dist/src/icons/animated/simple-checked-icon.d.ts +4 -0
  630. package/dist/src/icons/animated/simple-checked-icon.d.ts.map +1 -0
  631. package/dist/src/icons/animated/skull-emoji.d.ts +4 -0
  632. package/dist/src/icons/animated/skull-emoji.d.ts.map +1 -0
  633. package/dist/src/icons/animated/slack-icon.d.ts +4 -0
  634. package/dist/src/icons/animated/slack-icon.d.ts.map +1 -0
  635. package/dist/src/icons/animated/sliders-horizontal-icon.d.ts +4 -0
  636. package/dist/src/icons/animated/sliders-horizontal-icon.d.ts.map +1 -0
  637. package/dist/src/icons/animated/snapchat-icon.d.ts +4 -0
  638. package/dist/src/icons/animated/snapchat-icon.d.ts.map +1 -0
  639. package/dist/src/icons/animated/soup-icon.d.ts +4 -0
  640. package/dist/src/icons/animated/soup-icon.d.ts.map +1 -0
  641. package/dist/src/icons/animated/sparkles-icon.d.ts +4 -0
  642. package/dist/src/icons/animated/sparkles-icon.d.ts.map +1 -0
  643. package/dist/src/icons/animated/spotify-icon.d.ts +4 -0
  644. package/dist/src/icons/animated/spotify-icon.d.ts.map +1 -0
  645. package/dist/src/icons/animated/stack-3-icon.d.ts +4 -0
  646. package/dist/src/icons/animated/stack-3-icon.d.ts.map +1 -0
  647. package/dist/src/icons/animated/stack-icon.d.ts +4 -0
  648. package/dist/src/icons/animated/stack-icon.d.ts.map +1 -0
  649. package/dist/src/icons/animated/star-icon.d.ts +4 -0
  650. package/dist/src/icons/animated/star-icon.d.ts.map +1 -0
  651. package/dist/src/icons/animated/subscript-icon.d.ts +4 -0
  652. package/dist/src/icons/animated/subscript-icon.d.ts.map +1 -0
  653. package/dist/src/icons/animated/target-icon.d.ts +4 -0
  654. package/dist/src/icons/animated/target-icon.d.ts.map +1 -0
  655. package/dist/src/icons/animated/telephone-icon.d.ts +4 -0
  656. package/dist/src/icons/animated/telephone-icon.d.ts.map +1 -0
  657. package/dist/src/icons/animated/terminal-icon.d.ts +4 -0
  658. package/dist/src/icons/animated/terminal-icon.d.ts.map +1 -0
  659. package/dist/src/icons/animated/toggle-icon.d.ts +4 -0
  660. package/dist/src/icons/animated/toggle-icon.d.ts.map +1 -0
  661. package/dist/src/icons/animated/trash-icon.d.ts +9 -0
  662. package/dist/src/icons/animated/trash-icon.d.ts.map +1 -0
  663. package/dist/src/icons/animated/travel-bag.d.ts +4 -0
  664. package/dist/src/icons/animated/travel-bag.d.ts.map +1 -0
  665. package/dist/src/icons/animated/triangle-alert-icon.d.ts +4 -0
  666. package/dist/src/icons/animated/triangle-alert-icon.d.ts.map +1 -0
  667. package/dist/src/icons/animated/trophy-icon.d.ts +4 -0
  668. package/dist/src/icons/animated/trophy-icon.d.ts.map +1 -0
  669. package/dist/src/icons/animated/truck-electric-icon.d.ts +4 -0
  670. package/dist/src/icons/animated/truck-electric-icon.d.ts.map +1 -0
  671. package/dist/src/icons/animated/twitter-icon.d.ts +4 -0
  672. package/dist/src/icons/animated/twitter-icon.d.ts.map +1 -0
  673. package/dist/src/icons/animated/twitter-x-icon.d.ts +4 -0
  674. package/dist/src/icons/animated/twitter-x-icon.d.ts.map +1 -0
  675. package/dist/src/icons/animated/types.d.ts +33 -0
  676. package/dist/src/icons/animated/types.d.ts.map +1 -0
  677. package/dist/src/icons/animated/typescript-icon.d.ts +4 -0
  678. package/dist/src/icons/animated/typescript-icon.d.ts.map +1 -0
  679. package/dist/src/icons/animated/unlink-icon.d.ts +4 -0
  680. package/dist/src/icons/animated/unlink-icon.d.ts.map +1 -0
  681. package/dist/src/icons/animated/unordered-list-icon.d.ts +4 -0
  682. package/dist/src/icons/animated/unordered-list-icon.d.ts.map +1 -0
  683. package/dist/src/icons/animated/upload-icon.d.ts +4 -0
  684. package/dist/src/icons/animated/upload-icon.d.ts.map +1 -0
  685. package/dist/src/icons/animated/useAnimatedIconTrigger.d.ts +8 -0
  686. package/dist/src/icons/animated/useAnimatedIconTrigger.d.ts.map +1 -0
  687. package/dist/src/icons/animated/user-check-icon.d.ts +4 -0
  688. package/dist/src/icons/animated/user-check-icon.d.ts.map +1 -0
  689. package/dist/src/icons/animated/user-icon.d.ts +4 -0
  690. package/dist/src/icons/animated/user-icon.d.ts.map +1 -0
  691. package/dist/src/icons/animated/user-plus-icon.d.ts +4 -0
  692. package/dist/src/icons/animated/user-plus-icon.d.ts.map +1 -0
  693. package/dist/src/icons/animated/users-group-icon.d.ts +4 -0
  694. package/dist/src/icons/animated/users-group-icon.d.ts.map +1 -0
  695. package/dist/src/icons/animated/users-icon.d.ts +4 -0
  696. package/dist/src/icons/animated/users-icon.d.ts.map +1 -0
  697. package/dist/src/icons/animated/vinyl-icon.d.ts +4 -0
  698. package/dist/src/icons/animated/vinyl-icon.d.ts.map +1 -0
  699. package/dist/src/icons/animated/volume-2-icon.d.ts +4 -0
  700. package/dist/src/icons/animated/volume-2-icon.d.ts.map +1 -0
  701. package/dist/src/icons/animated/volume-x-icon.d.ts +4 -0
  702. package/dist/src/icons/animated/volume-x-icon.d.ts.map +1 -0
  703. package/dist/src/icons/animated/wallet-icon.d.ts +4 -0
  704. package/dist/src/icons/animated/wallet-icon.d.ts.map +1 -0
  705. package/dist/src/icons/animated/washing-machine-icon.d.ts +4 -0
  706. package/dist/src/icons/animated/washing-machine-icon.d.ts.map +1 -0
  707. package/dist/src/icons/animated/whatsapp-icon.d.ts +4 -0
  708. package/dist/src/icons/animated/whatsapp-icon.d.ts.map +1 -0
  709. package/dist/src/icons/animated/wifi-icon.d.ts +4 -0
  710. package/dist/src/icons/animated/wifi-icon.d.ts.map +1 -0
  711. package/dist/src/icons/animated/wifi-off-icon.d.ts +4 -0
  712. package/dist/src/icons/animated/wifi-off-icon.d.ts.map +1 -0
  713. package/dist/src/icons/animated/world-icon.d.ts +4 -0
  714. package/dist/src/icons/animated/world-icon.d.ts.map +1 -0
  715. package/dist/src/icons/animated/x-icon.d.ts +4 -0
  716. package/dist/src/icons/animated/x-icon.d.ts.map +1 -0
  717. package/dist/src/icons/animated/youtube-icon.d.ts +4 -0
  718. package/dist/src/icons/animated/youtube-icon.d.ts.map +1 -0
  719. package/dist/src/icons/index.d.ts +1 -0
  720. package/dist/src/icons/index.d.ts.map +1 -1
  721. package/dist/src/icons/lucide.d.ts +1 -1
  722. package/dist/src/icons/lucide.d.ts.map +1 -1
  723. package/dist/src/languages/hooks/index.d.ts +1 -1
  724. package/dist/src/languages/hooks/index.d.ts.map +1 -1
  725. package/dist/src/languages/hooks/useLanguageLabel.d.ts +8 -7
  726. package/dist/src/languages/hooks/useLanguageLabel.d.ts.map +1 -1
  727. package/dist/src/languages/hooks/usePreferenceLabel.d.ts +1 -1
  728. package/dist/src/languages/hooks/usePreferenceLabel.d.ts.map +1 -1
  729. package/dist/src/languages/hooks/useThemeLabel.d.ts +4 -5
  730. package/dist/src/languages/hooks/useThemeLabel.d.ts.map +1 -1
  731. package/dist/src/languages/index.d.ts +0 -2
  732. package/dist/src/languages/index.d.ts.map +1 -1
  733. package/dist/src/languages/languages/i18n.d.ts +4 -7
  734. package/dist/src/languages/languages/i18n.d.ts.map +1 -1
  735. package/dist/src/languages/languages/i18nResources.d.ts +1 -1
  736. package/dist/src/languages/languages/i18nResources.d.ts.map +1 -1
  737. package/dist/src/languages/resources/index.d.ts +2 -2
  738. package/dist/src/languages/types/components.d.ts +1 -24
  739. package/dist/src/languages/types/components.d.ts.map +1 -1
  740. package/dist/src/languages/types/i18n.d.ts +1 -4
  741. package/dist/src/languages/types/i18n.d.ts.map +1 -1
  742. package/dist/src/languages/types/language.d.ts +2 -11
  743. package/dist/src/languages/types/language.d.ts.map +1 -1
  744. package/dist/src/languages/utils/getLocalLanguage.d.ts +1 -1
  745. package/dist/src/languages/utils/getLocalLanguage.d.ts.map +1 -1
  746. package/dist/src/languages/utils/languageStorage.d.ts +2 -3
  747. package/dist/src/languages/utils/languageStorage.d.ts.map +1 -1
  748. package/dist/src/providers/LanguageProvider/index.d.ts +19 -0
  749. package/dist/src/providers/LanguageProvider/index.d.ts.map +1 -0
  750. package/dist/src/providers/ThemeProvider/index.d.ts +17 -0
  751. package/dist/src/providers/ThemeProvider/index.d.ts.map +1 -0
  752. package/dist/src/providers/index.d.ts +7 -0
  753. package/dist/src/providers/index.d.ts.map +1 -0
  754. package/dist/src/stores/index.d.ts +4 -0
  755. package/dist/src/stores/index.d.ts.map +1 -1
  756. package/dist/src/stores/layout.d.ts +41 -0
  757. package/dist/src/stores/layout.d.ts.map +1 -0
  758. package/dist/src/stores/makeStore.d.ts +1 -1
  759. package/dist/src/stores/modal.d.ts +67 -0
  760. package/dist/src/stores/modal.d.ts.map +1 -0
  761. package/dist/src/stores/preference.d.ts +52 -0
  762. package/dist/src/stores/preference.d.ts.map +1 -0
  763. package/dist/src/themes/fonts.d.ts +21 -0
  764. package/dist/src/themes/fonts.d.ts.map +1 -0
  765. package/dist/src/themes/hooks/index.d.ts +1 -3
  766. package/dist/src/themes/hooks/index.d.ts.map +1 -1
  767. package/dist/src/themes/hooks/useTheme.d.ts +25 -9
  768. package/dist/src/themes/hooks/useTheme.d.ts.map +1 -1
  769. package/dist/src/themes/index.d.ts +3 -4
  770. package/dist/src/themes/index.d.ts.map +1 -1
  771. package/dist/src/themes/radix/index.d.ts +2 -0
  772. package/dist/src/themes/radix/index.d.ts.map +1 -0
  773. package/dist/src/themes/radix/mappings.d.ts +39 -0
  774. package/dist/src/themes/radix/mappings.d.ts.map +1 -0
  775. package/dist/src/themes/types/components.d.ts +1 -24
  776. package/dist/src/themes/types/components.d.ts.map +1 -1
  777. package/dist/src/themes/types/context.d.ts +6 -12
  778. package/dist/src/themes/types/context.d.ts.map +1 -1
  779. package/dist/src/themes/types/index.d.ts +1 -6
  780. package/dist/src/themes/types/index.d.ts.map +1 -1
  781. package/dist/src/themes/types/theme.d.ts +15 -26
  782. package/dist/src/themes/types/theme.d.ts.map +1 -1
  783. package/dist/src/utils/factory/hooks.d.ts +44 -0
  784. package/dist/src/utils/factory/hooks.d.ts.map +1 -0
  785. package/dist/src/utils/factory/index.d.ts +2 -0
  786. package/dist/src/utils/factory/index.d.ts.map +1 -0
  787. package/dist/src/utils/index.d.ts +1 -0
  788. package/dist/src/utils/index.d.ts.map +1 -1
  789. package/dist/src/utils/safe.d.ts +4 -0
  790. package/dist/src/utils/safe.d.ts.map +1 -1
  791. package/dist/stores.cjs +1 -4
  792. package/dist/stores.mjs +32 -164
  793. package/dist/themes.cjs +2 -4
  794. package/dist/themes.mjs +27 -1473
  795. package/dist/types.cjs +0 -1
  796. package/dist/types.mjs +0 -1
  797. package/dist/utils.cjs +1 -2
  798. package/dist/utils.cjs.map +1 -1
  799. package/dist/utils.mjs +163 -181
  800. package/dist/utils.mjs.map +1 -1
  801. package/package.json +101 -43
  802. package/dist/chunk-BounceLoading-C-gq-XVr.mjs +0 -241
  803. package/dist/chunk-BounceLoading-C-gq-XVr.mjs.map +0 -1
  804. package/dist/chunk-BounceLoading-CkxvzNz8.cjs +0 -11
  805. package/dist/chunk-BounceLoading-CkxvzNz8.cjs.map +0 -1
  806. package/dist/chunk-animations-CiJbVYGC.mjs +0 -741
  807. package/dist/chunk-animations-CiJbVYGC.mjs.map +0 -1
  808. package/dist/chunk-animations-i85rn79V.cjs +0 -3
  809. package/dist/chunk-animations-i85rn79V.cjs.map +0 -1
  810. package/dist/chunk-chunk-D-Fg7nx1.cjs +0 -1
  811. package/dist/chunk-i18n-2-xL4pEi.cjs +0 -3
  812. package/dist/chunk-i18n-2-xL4pEi.cjs.map +0 -1
  813. package/dist/chunk-i18n-DgaoEbGL.mjs +0 -214
  814. package/dist/chunk-i18n-DgaoEbGL.mjs.map +0 -1
  815. package/dist/chunk-language-2r4uKROB.cjs +0 -3
  816. package/dist/chunk-language-2r4uKROB.cjs.map +0 -1
  817. package/dist/chunk-language-JRs5UIa2.mjs +0 -11
  818. package/dist/chunk-language-JRs5UIa2.mjs.map +0 -1
  819. package/dist/chunk-layout-BEAgFhif.mjs +0 -11
  820. package/dist/chunk-layout-BEAgFhif.mjs.map +0 -1
  821. package/dist/chunk-layout-mMQXuBLE.cjs +0 -3
  822. package/dist/chunk-layout-mMQXuBLE.cjs.map +0 -1
  823. package/dist/chunk-lucide-B99NZWfa.mjs +0 -158
  824. package/dist/chunk-lucide-B99NZWfa.mjs.map +0 -1
  825. package/dist/chunk-lucide-XL6d5__j.cjs +0 -3
  826. package/dist/chunk-lucide-XL6d5__j.cjs.map +0 -1
  827. package/dist/chunk-preference-DMhhY1Pl.mjs +0 -60
  828. package/dist/chunk-preference-DMhhY1Pl.mjs.map +0 -1
  829. package/dist/chunk-preference-DbNgeGhx.cjs +0 -3
  830. package/dist/chunk-preference-DbNgeGhx.cjs.map +0 -1
  831. package/dist/chunk-theme-CINVDd47.mjs +0 -17
  832. package/dist/chunk-theme-CINVDd47.mjs.map +0 -1
  833. package/dist/chunk-theme-D49XQfXe.cjs +0 -3
  834. package/dist/chunk-theme-D49XQfXe.cjs.map +0 -1
  835. package/dist/chunk-useLayout-BAIFfydj.cjs +0 -3
  836. package/dist/chunk-useLayout-BAIFfydj.cjs.map +0 -1
  837. package/dist/chunk-useLayout-BXsJlpcb.mjs +0 -12
  838. package/dist/chunk-useLayout-BXsJlpcb.mjs.map +0 -1
  839. package/dist/chunk-useTheme-BY1_pW9y.mjs +0 -13
  840. package/dist/chunk-useTheme-BY1_pW9y.mjs.map +0 -1
  841. package/dist/chunk-useTheme-Tw_7_cQf.cjs +0 -3
  842. package/dist/chunk-useTheme-Tw_7_cQf.cjs.map +0 -1
  843. package/dist/hooks.cjs.map +0 -1
  844. package/dist/hooks.mjs.map +0 -1
  845. package/dist/pixel-blast.cjs.map +0 -1
  846. package/dist/pixel-blast.mjs.map +0 -1
  847. package/dist/preference.cjs +0 -2
  848. package/dist/preference.mjs +0 -10
  849. package/dist/src/designs/components/Button/index.d.ts +0 -32
  850. package/dist/src/designs/components/Button/index.d.ts.map +0 -1
  851. package/dist/src/designs/components/Dropdown/index.d.ts +0 -25
  852. package/dist/src/designs/components/Dropdown/index.d.ts.map +0 -1
  853. package/dist/src/designs/components/Input/index.d.ts +0 -35
  854. package/dist/src/designs/components/Input/index.d.ts.map +0 -1
  855. package/dist/src/designs/components/KeyValueEditor/index.d.ts +0 -44
  856. package/dist/src/designs/components/KeyValueEditor/index.d.ts.map +0 -1
  857. package/dist/src/designs/components/SearchInput/index.d.ts +0 -15
  858. package/dist/src/designs/components/SearchInput/index.d.ts.map +0 -1
  859. package/dist/src/designs/components/ShowFilter/index.d.ts +0 -40
  860. package/dist/src/designs/components/ShowFilter/index.d.ts.map +0 -1
  861. package/dist/src/designs/components/SlideDownSwitcher/index.d.ts +0 -17
  862. package/dist/src/designs/components/SlideDownSwitcher/index.d.ts.map +0 -1
  863. package/dist/src/designs/components/Slider/index.d.ts +0 -39
  864. package/dist/src/designs/components/Slider/index.d.ts.map +0 -1
  865. package/dist/src/designs/components/Textarea/index.d.ts +0 -33
  866. package/dist/src/designs/components/Textarea/index.d.ts.map +0 -1
  867. package/dist/src/hooks/makeCursorFetchFunction.d.ts +0 -85
  868. package/dist/src/hooks/makeCursorFetchFunction.d.ts.map +0 -1
  869. package/dist/src/hooks/makeUnifiedInfiniteQuery.d.ts +0 -125
  870. package/dist/src/hooks/makeUnifiedInfiniteQuery.d.ts.map +0 -1
  871. package/dist/src/hooks/makeUnifiedQuery.d.ts +0 -20
  872. package/dist/src/hooks/makeUnifiedQuery.d.ts.map +0 -1
  873. package/dist/src/hooks/type.d.ts +0 -41
  874. package/dist/src/hooks/type.d.ts.map +0 -1
  875. package/dist/src/languages/providers/index.d.ts +0 -8
  876. package/dist/src/languages/providers/index.d.ts.map +0 -1
  877. package/dist/src/preference/constants.d.ts.map +0 -1
  878. package/dist/src/preference/core.d.ts +0 -12
  879. package/dist/src/preference/core.d.ts.map +0 -1
  880. package/dist/src/preference/index.d.ts +0 -27
  881. package/dist/src/preference/index.d.ts.map +0 -1
  882. package/dist/src/preference/nfx_slice.d.ts +0 -24
  883. package/dist/src/preference/nfx_slice.d.ts.map +0 -1
  884. package/dist/src/preference/types.d.ts +0 -28
  885. package/dist/src/preference/types.d.ts.map +0 -1
  886. package/dist/src/themes/hooks/useBaseVariables.d.ts +0 -8
  887. package/dist/src/themes/hooks/useBaseVariables.d.ts.map +0 -1
  888. package/dist/src/themes/hooks/useThemeVariables.d.ts +0 -11
  889. package/dist/src/themes/hooks/useThemeVariables.d.ts.map +0 -1
  890. package/dist/src/themes/hooks/useVariables.d.ts +0 -8
  891. package/dist/src/themes/hooks/useVariables.d.ts.map +0 -1
  892. package/dist/src/themes/providers/index.d.ts +0 -8
  893. package/dist/src/themes/providers/index.d.ts.map +0 -1
  894. package/dist/src/themes/themes/bases/android.d.ts +0 -5
  895. package/dist/src/themes/themes/bases/android.d.ts.map +0 -1
  896. package/dist/src/themes/themes/bases/default.d.ts +0 -6
  897. package/dist/src/themes/themes/bases/default.d.ts.map +0 -1
  898. package/dist/src/themes/themes/bases/index.d.ts +0 -9
  899. package/dist/src/themes/themes/bases/index.d.ts.map +0 -1
  900. package/dist/src/themes/themes/bases/ios.d.ts +0 -5
  901. package/dist/src/themes/themes/bases/ios.d.ts.map +0 -1
  902. package/dist/src/themes/themes/bases/linux.d.ts +0 -5
  903. package/dist/src/themes/themes/bases/linux.d.ts.map +0 -1
  904. package/dist/src/themes/themes/bases/windows.d.ts +0 -5
  905. package/dist/src/themes/themes/bases/windows.d.ts.map +0 -1
  906. package/dist/src/themes/themes/colors/coffee.d.ts +0 -8
  907. package/dist/src/themes/themes/colors/coffee.d.ts.map +0 -1
  908. package/dist/src/themes/themes/colors/corporate.d.ts +0 -8
  909. package/dist/src/themes/themes/colors/corporate.d.ts.map +0 -1
  910. package/dist/src/themes/themes/colors/cosmic.d.ts +0 -8
  911. package/dist/src/themes/themes/colors/cosmic.d.ts.map +0 -1
  912. package/dist/src/themes/themes/colors/dark.d.ts +0 -8
  913. package/dist/src/themes/themes/colors/dark.d.ts.map +0 -1
  914. package/dist/src/themes/themes/colors/default.d.ts +0 -8
  915. package/dist/src/themes/themes/colors/default.d.ts.map +0 -1
  916. package/dist/src/themes/themes/colors/forest.d.ts +0 -8
  917. package/dist/src/themes/themes/colors/forest.d.ts.map +0 -1
  918. package/dist/src/themes/themes/colors/index.d.ts +0 -14
  919. package/dist/src/themes/themes/colors/index.d.ts.map +0 -1
  920. package/dist/src/themes/themes/colors/light.d.ts +0 -8
  921. package/dist/src/themes/themes/colors/light.d.ts.map +0 -1
  922. package/dist/src/themes/themes/colors/wheat.d.ts +0 -8
  923. package/dist/src/themes/themes/colors/wheat.d.ts.map +0 -1
  924. package/dist/src/themes/themes/colors/wine.d.ts +0 -8
  925. package/dist/src/themes/themes/colors/wine.d.ts.map +0 -1
  926. package/dist/src/themes/themes/index.d.ts +0 -3
  927. package/dist/src/themes/themes/index.d.ts.map +0 -1
  928. package/dist/src/themes/utils/index.d.ts +0 -5
  929. package/dist/src/themes/utils/index.d.ts.map +0 -1
  930. package/dist/src/themes/utils/themeStorage.d.ts +0 -12
  931. package/dist/src/themes/utils/themeStorage.d.ts.map +0 -1
  932. package/dist/stores.cjs.map +0 -1
  933. package/dist/stores.mjs.map +0 -1
  934. package/dist/themes.cjs.map +0 -1
  935. package/dist/themes.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"chunk-animations-CiJbVYGC.mjs","names":[],"sources":["../src/designs/animations/Waves/style.module.css","../src/designs/animations/Waves/index.tsx","../src/designs/animations/Squares/style.module.css","../src/designs/animations/Squares/index.tsx","../src/designs/animations/LetterGlitch/style.module.css","../src/designs/animations/LetterGlitch/index.tsx"],"sourcesContent":[".waves {\n position: absolute;\n top: 0;\n left: 0;\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n\n.waves::before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 0.5rem;\n height: 0.5rem;\n background: var(--color-bg);\n border-radius: 50%;\n transform: translate3d(calc(var(--x) - 50%), calc(var(--y) - 50%), 0);\n will-change: transform;\n}\n\n.wavesCanvas {\n display: block;\n width: 100%;\n height: 100%;\n}\n","import React, { useEffect, useMemo, useRef } from \"react\";\nimport type { CSSProperties } from \"react\";\n\nimport { useTheme } from \"@/themes/hooks/useTheme\";\n\nimport styles from \"./style.module.css\";\n\nclass Grad {\n x: number;\n y: number;\n z: number;\n constructor(x: number, y: number, z: number) {\n this.x = x;\n this.y = y;\n this.z = z;\n }\n dot2(x: number, y: number): number {\n return this.x * x + this.y * y;\n }\n}\n\nclass Noise {\n grad3: Grad[];\n p: number[];\n perm: number[];\n gradP: Grad[];\n\n constructor(seed = 0) {\n this.grad3 = [\n new Grad(1, 1, 0),\n new Grad(-1, 1, 0),\n new Grad(1, -1, 0),\n new Grad(-1, -1, 0),\n new Grad(1, 0, 1),\n new Grad(-1, 0, 1),\n new Grad(1, 0, -1),\n new Grad(-1, 0, -1),\n new Grad(0, 1, 1),\n new Grad(0, -1, 1),\n new Grad(0, 1, -1),\n new Grad(0, -1, -1),\n ];\n this.p = [\n 151, 160, 137, 91, 90, 15, 131, 13, 201, 95, 96, 53, 194, 233, 7, 225, 140, 36, 103, 30, 69, 142, 8, 99, 37, 240, 21, 10, 23, 190, 6, 148, 247, 120, 234,\n 75, 0, 26, 197, 62, 94, 252, 219, 203, 117, 35, 11, 32, 57, 177, 33, 88, 237, 149, 56, 87, 174, 20, 125, 136, 171, 168, 68, 175, 74, 165, 71, 134, 139,\n 48, 27, 166, 77, 146, 158, 231, 83, 111, 229, 122, 60, 211, 133, 230, 220, 105, 92, 41, 55, 46, 245, 40, 244, 102, 143, 54, 65, 25, 63, 161, 1, 216, 80,\n 73, 209, 76, 132, 187, 208, 89, 18, 169, 200, 196, 135, 130, 116, 188, 159, 86, 164, 100, 109, 198, 173, 186, 3, 64, 52, 217, 226, 250, 124, 123, 5, 202,\n 38, 147, 118, 126, 255, 82, 85, 212, 207, 206, 59, 227, 47, 16, 58, 17, 182, 189, 28, 42, 223, 183, 170, 213, 119, 248, 152, 2, 44, 154, 163, 70, 221,\n 153, 101, 155, 167, 43, 172, 9, 129, 22, 39, 253, 19, 98, 108, 110, 79, 113, 224, 232, 178, 185, 112, 104, 218, 246, 97, 228, 251, 34, 242, 193, 238, 210,\n 144, 12, 191, 179, 162, 241, 81, 51, 145, 235, 249, 14, 239, 107, 49, 192, 214, 31, 181, 199, 106, 157, 184, 84, 204, 176, 115, 121, 50, 45, 127, 4, 150,\n 254, 138, 236, 205, 93, 222, 114, 67, 29, 24, 72, 243, 141, 128, 195, 78, 66, 215, 61, 156, 180,\n ];\n this.perm = new Array(512);\n this.gradP = new Array(512);\n this.seed(seed);\n }\n seed(seed: number) {\n if (seed > 0 && seed < 1) seed *= 65536;\n seed = Math.floor(seed);\n if (seed < 256) seed |= seed << 8;\n for (let i = 0; i < 256; i++) {\n let v = i & 1 ? this.p[i] ^ (seed & 255) : this.p[i] ^ ((seed >> 8) & 255);\n this.perm[i] = this.perm[i + 256] = v;\n this.gradP[i] = this.gradP[i + 256] = this.grad3[v % 12];\n }\n }\n fade(t: number): number {\n return t * t * t * (t * (t * 6 - 15) + 10);\n }\n lerp(a: number, b: number, t: number): number {\n return (1 - t) * a + t * b;\n }\n perlin2(x: number, y: number): number {\n let X = Math.floor(x),\n Y = Math.floor(y);\n x -= X;\n y -= Y;\n X &= 255;\n Y &= 255;\n const n00 = this.gradP[X + this.perm[Y]].dot2(x, y);\n const n01 = this.gradP[X + this.perm[Y + 1]].dot2(x, y - 1);\n const n10 = this.gradP[X + 1 + this.perm[Y]].dot2(x - 1, y);\n const n11 = this.gradP[X + 1 + this.perm[Y + 1]].dot2(x - 1, y - 1);\n const u = this.fade(x);\n return this.lerp(this.lerp(n00, n10, u), this.lerp(n01, n11, u), this.fade(y));\n }\n}\n\ninterface Point {\n x: number;\n y: number;\n wave: { x: number; y: number };\n cursor: { x: number; y: number; vx: number; vy: number };\n}\n\ninterface Mouse {\n x: number;\n y: number;\n lx: number;\n ly: number;\n sx: number;\n sy: number;\n v: number;\n vs: number;\n a: number;\n set: boolean;\n}\n\ninterface Config {\n lineColor: string;\n waveSpeedX: number;\n waveSpeedY: number;\n waveAmpX: number;\n waveAmpY: number;\n friction: number;\n tension: number;\n maxCursorMove: number;\n xGap: number;\n yGap: number;\n}\n\ninterface WavesProps {\n lineColor?: string;\n backgroundColor?: string;\n waveSpeedX?: number;\n waveSpeedY?: number;\n waveAmpX?: number;\n waveAmpY?: number;\n xGap?: number;\n yGap?: number;\n friction?: number;\n tension?: number;\n maxCursorMove?: number;\n style?: CSSProperties;\n className?: string;\n}\n\nconst Waves: React.FC<WavesProps> = ({\n lineColor = \"black\",\n backgroundColor = \"transparent\",\n waveSpeedX = 0.0125,\n waveSpeedY = 0.005,\n waveAmpX = 32,\n waveAmpY = 16,\n xGap = 10,\n yGap = 32,\n friction = 0.925,\n tension = 0.005,\n maxCursorMove = 100,\n style = {},\n className = \"\",\n}) => {\n const containerRef = useRef<HTMLDivElement>(null);\n const canvasRef = useRef<HTMLCanvasElement>(null);\n const ctxRef = useRef<CanvasRenderingContext2D | null>(null);\n const boundingRef = useRef<{\n width: number;\n height: number;\n left: number;\n top: number;\n }>({\n width: 0,\n height: 0,\n left: 0,\n top: 0,\n });\n const noiseRef = useRef(new Noise(Math.random()));\n const linesRef = useRef<Point[][]>([]);\n const mouseRef = useRef<Mouse>({\n x: -10,\n y: 0,\n lx: 0,\n ly: 0,\n sx: 0,\n sy: 0,\n v: 0,\n vs: 0,\n a: 0,\n set: false,\n });\n const configRef = useRef<Config>({\n lineColor,\n waveSpeedX,\n waveSpeedY,\n waveAmpX,\n waveAmpY,\n friction,\n tension,\n maxCursorMove,\n xGap,\n yGap,\n });\n const frameIdRef = useRef<number | null>(null);\n\n useEffect(() => {\n configRef.current = {\n lineColor,\n waveSpeedX,\n waveSpeedY,\n waveAmpX,\n waveAmpY,\n friction,\n tension,\n maxCursorMove,\n xGap,\n yGap,\n };\n }, [lineColor, waveSpeedX, waveSpeedY, waveAmpX, waveAmpY, friction, tension, maxCursorMove, xGap, yGap]);\n\n useEffect(() => {\n const canvas = canvasRef.current;\n const container = containerRef.current;\n if (!canvas || !container) return;\n ctxRef.current = canvas.getContext(\"2d\");\n\n function setSize() {\n if (!container || !canvas) return;\n const rect = container.getBoundingClientRect();\n boundingRef.current = {\n width: rect.width,\n height: rect.height,\n left: rect.left,\n top: rect.top,\n };\n canvas.width = rect.width;\n canvas.height = rect.height;\n }\n\n function setLines() {\n const { width, height } = boundingRef.current;\n linesRef.current = [];\n const oWidth = width + 200,\n oHeight = height + 30;\n const { xGap, yGap } = configRef.current;\n const totalLines = Math.ceil(oWidth / xGap);\n const totalPoints = Math.ceil(oHeight / yGap);\n const xStart = (width - xGap * totalLines) / 2;\n const yStart = (height - yGap * totalPoints) / 2;\n for (let i = 0; i <= totalLines; i++) {\n const pts: Point[] = [];\n for (let j = 0; j <= totalPoints; j++) {\n pts.push({\n x: xStart + xGap * i,\n y: yStart + yGap * j,\n wave: { x: 0, y: 0 },\n cursor: { x: 0, y: 0, vx: 0, vy: 0 },\n });\n }\n linesRef.current.push(pts);\n }\n }\n\n function movePoints(time: number) {\n const lines = linesRef.current;\n const mouse = mouseRef.current;\n const noise = noiseRef.current;\n const { waveSpeedX, waveSpeedY, waveAmpX, waveAmpY, friction, tension, maxCursorMove } = configRef.current;\n lines.forEach((pts) => {\n pts.forEach((p) => {\n const move = noise.perlin2((p.x + time * waveSpeedX) * 0.002, (p.y + time * waveSpeedY) * 0.0015) * 12;\n p.wave.x = Math.cos(move) * waveAmpX;\n p.wave.y = Math.sin(move) * waveAmpY;\n\n const dx = p.x - mouse.sx,\n dy = p.y - mouse.sy;\n const dist = Math.hypot(dx, dy);\n const l = Math.max(175, mouse.vs);\n if (dist < l) {\n const s = 1 - dist / l;\n const f = Math.cos(dist * 0.001) * s;\n p.cursor.vx += Math.cos(mouse.a) * f * l * mouse.vs * 0.00065;\n p.cursor.vy += Math.sin(mouse.a) * f * l * mouse.vs * 0.00065;\n }\n\n p.cursor.vx += (0 - p.cursor.x) * tension;\n p.cursor.vy += (0 - p.cursor.y) * tension;\n p.cursor.vx *= friction;\n p.cursor.vy *= friction;\n p.cursor.x += p.cursor.vx * 2;\n p.cursor.y += p.cursor.vy * 2;\n p.cursor.x = Math.min(maxCursorMove, Math.max(-maxCursorMove, p.cursor.x));\n p.cursor.y = Math.min(maxCursorMove, Math.max(-maxCursorMove, p.cursor.y));\n });\n });\n }\n\n function moved(point: Point, withCursor = true): { x: number; y: number } {\n const x = point.x + point.wave.x + (withCursor ? point.cursor.x : 0);\n const y = point.y + point.wave.y + (withCursor ? point.cursor.y : 0);\n return { x: Math.round(x * 10) / 10, y: Math.round(y * 10) / 10 };\n }\n\n function drawLines() {\n const { width, height } = boundingRef.current;\n const ctx = ctxRef.current;\n if (!ctx) return;\n ctx.clearRect(0, 0, width, height);\n ctx.beginPath();\n ctx.strokeStyle = configRef.current.lineColor;\n linesRef.current.forEach((points) => {\n let p1 = moved(points[0], false);\n ctx.moveTo(p1.x, p1.y);\n points.forEach((p, idx) => {\n const isLast = idx === points.length - 1;\n p1 = moved(p, !isLast);\n const p2 = moved(points[idx + 1] || points[points.length - 1], !isLast);\n ctx.lineTo(p1.x, p1.y);\n if (isLast) ctx.moveTo(p2.x, p2.y);\n });\n });\n ctx.stroke();\n }\n\n function tick(t: number) {\n if (!container) return;\n const mouse = mouseRef.current;\n mouse.sx += (mouse.x - mouse.sx) * 0.1;\n mouse.sy += (mouse.y - mouse.sy) * 0.1;\n const dx = mouse.x - mouse.lx,\n dy = mouse.y - mouse.ly;\n const d = Math.hypot(dx, dy);\n mouse.v = d;\n mouse.vs += (d - mouse.vs) * 0.1;\n mouse.vs = Math.min(100, mouse.vs);\n mouse.lx = mouse.x;\n mouse.ly = mouse.y;\n mouse.a = Math.atan2(dy, dx);\n container.style.setProperty(\"--x\", `${mouse.sx}px`);\n container.style.setProperty(\"--y\", `${mouse.sy}px`);\n\n movePoints(t);\n drawLines();\n frameIdRef.current = requestAnimationFrame(tick);\n }\n\n function onResize() {\n setSize();\n setLines();\n }\n function onMouseMove(e: MouseEvent) {\n updateMouse(e.clientX, e.clientY);\n }\n function onTouchMove(e: TouchEvent) {\n const touch = e.touches[0];\n updateMouse(touch.clientX, touch.clientY);\n }\n function updateMouse(x: number, y: number) {\n const mouse = mouseRef.current;\n const b = boundingRef.current;\n mouse.x = x - b.left;\n mouse.y = y - b.top;\n if (!mouse.set) {\n mouse.sx = mouse.x;\n mouse.sy = mouse.y;\n mouse.lx = mouse.x;\n mouse.ly = mouse.y;\n mouse.set = true;\n }\n }\n\n setSize();\n setLines();\n frameIdRef.current = requestAnimationFrame(tick);\n window.addEventListener(\"resize\", onResize);\n window.addEventListener(\"mousemove\", onMouseMove);\n window.addEventListener(\"touchmove\", onTouchMove, { passive: false });\n\n return () => {\n window.removeEventListener(\"resize\", onResize);\n window.removeEventListener(\"mousemove\", onMouseMove);\n window.removeEventListener(\"touchmove\", onTouchMove);\n if (frameIdRef.current !== null) {\n cancelAnimationFrame(frameIdRef.current);\n }\n };\n }, []);\n\n return (\n <div\n ref={containerRef}\n className={`${styles.waves} ${className}`}\n style={{\n position: \"absolute\",\n top: 0,\n left: 0,\n margin: 0,\n padding: 0,\n width: \"100%\",\n height: \"100%\",\n overflow: \"hidden\",\n backgroundColor,\n ...style,\n }}\n >\n <canvas ref={canvasRef} className={styles.wavesCanvas} />\n </div>\n );\n};\n\nconst WaveBackground: React.FC<Omit<WavesProps, \"lineColor\" | \"backgroundColor\">> = (props) => {\n const { currentTheme } = useTheme();\n\n // 从主题中获取线条颜色,降低颜色深度(变浅)\n const lineColor = useMemo(() => {\n // 尝试从主题变量中获取主色,如果没有则使用默认值\n const primary = currentTheme.colors.variables.primary || \"rgb(220, 38, 38)\";\n\n // 将颜色变浅的函数:向白色混合\n const lightenColor = (r: number, g: number, b: number, factor: number = 0.4) => {\n // factor: 0 = 原色, 1 = 白色\n const newR = Math.round(r + (255 - r) * factor);\n const newG = Math.round(g + (255 - g) * factor);\n const newB = Math.round(b + (255 - b) * factor);\n return `rgb(${newR}, ${newG}, ${newB})`;\n };\n\n // 如果已经是 hex 格式,转换为 rgb 并变浅\n if (primary.startsWith(\"#\")) {\n const hex = primary.slice(1);\n const r = parseInt(hex.slice(0, 2), 16);\n const g = parseInt(hex.slice(2, 4), 16);\n const b = parseInt(hex.slice(4, 6), 16);\n return lightenColor(r, g, b);\n }\n // 将 rgb() 格式变浅\n const match = primary.match(/rgb\\((\\d+),\\s*(\\d+),\\s*(\\d+)\\)/);\n if (match) {\n const r = parseInt(match[1], 10);\n const g = parseInt(match[2], 10);\n const b = parseInt(match[3], 10);\n return lightenColor(r, g, b);\n }\n // 如果已经是 rgba 格式,提取 RGB 并变浅\n const rgbaMatch = primary.match(/rgba?\\((\\d+),\\s*(\\d+),\\s*(\\d+)/);\n if (rgbaMatch) {\n const r = parseInt(rgbaMatch[1], 10);\n const g = parseInt(rgbaMatch[2], 10);\n const b = parseInt(rgbaMatch[3], 10);\n return lightenColor(r, g, b);\n }\n return primary;\n }, [currentTheme]);\n\n return <Waves lineColor={lineColor} backgroundColor=\"transparent\" waveSpeedX={0.05} waveSpeedY={0.01} waveAmpX={40} waveAmpY={20} {...props} />;\n};\n\nexport default WaveBackground;\n",".squaresCanvas {\n width: 100%;\n height: 100%;\n border: none;\n display: block;\n}\n","import React, { useEffect, useMemo, useRef } from \"react\";\n\nimport { useTheme } from \"@/themes/hooks/useTheme\";\n\nimport styles from \"./style.module.css\";\n\ntype CanvasStrokeStyle = string | CanvasGradient | CanvasPattern;\n\ninterface GridOffset {\n x: number;\n y: number;\n}\n\ninterface SquaresProps {\n direction?: \"diagonal\" | \"up\" | \"right\" | \"down\" | \"left\";\n speed?: number;\n borderColor?: CanvasStrokeStyle;\n squareSize?: number;\n hoverFillColor?: CanvasStrokeStyle;\n className?: string;\n style?: React.CSSProperties;\n}\n\nconst Squares: React.FC<SquaresProps> = ({\n direction = \"right\",\n speed = 1,\n borderColor = \"#6B7280\",\n squareSize = 40,\n hoverFillColor = \"#111827\",\n className = \"\",\n style = {},\n}) => {\n const { currentTheme } = useTheme();\n const vignetteEdgeColor = currentTheme.colors.variables.fgHeading;\n\n const canvasRef = useRef<HTMLCanvasElement>(null);\n const requestRef = useRef<number | null>(null);\n const numSquaresX = useRef<number>(0);\n const numSquaresY = useRef<number>(0);\n const gridOffset = useRef<GridOffset>({ x: 0, y: 0 });\n const hoveredSquareRef = useRef<GridOffset | null>(null);\n\n useEffect(() => {\n const canvas = canvasRef.current;\n if (!canvas) return;\n const ctx = canvas.getContext(\"2d\");\n\n const resizeCanvas = () => {\n canvas.width = canvas.offsetWidth;\n canvas.height = canvas.offsetHeight;\n numSquaresX.current = Math.ceil(canvas.width / squareSize) + 1;\n numSquaresY.current = Math.ceil(canvas.height / squareSize) + 1;\n };\n\n window.addEventListener(\"resize\", resizeCanvas);\n resizeCanvas();\n\n const drawGrid = () => {\n if (!ctx) return;\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n\n const startX = Math.floor(gridOffset.current.x / squareSize) * squareSize;\n const startY = Math.floor(gridOffset.current.y / squareSize) * squareSize;\n\n for (let x = startX; x < canvas.width + squareSize; x += squareSize) {\n for (let y = startY; y < canvas.height + squareSize; y += squareSize) {\n const squareX = x - (gridOffset.current.x % squareSize);\n const squareY = y - (gridOffset.current.y % squareSize);\n\n if (\n hoveredSquareRef.current &&\n Math.floor((x - startX) / squareSize) === hoveredSquareRef.current.x &&\n Math.floor((y - startY) / squareSize) === hoveredSquareRef.current.y\n ) {\n ctx.fillStyle = hoverFillColor;\n ctx.fillRect(squareX, squareY, squareSize, squareSize);\n }\n\n ctx.strokeStyle = borderColor;\n ctx.strokeRect(squareX, squareY, squareSize, squareSize);\n }\n }\n\n const gradient = ctx.createRadialGradient(\n canvas.width / 2,\n canvas.height / 2,\n 0,\n canvas.width / 2,\n canvas.height / 2,\n Math.sqrt(canvas.width ** 2 + canvas.height ** 2) / 2,\n );\n gradient.addColorStop(0, \"rgba(0, 0, 0, 0)\");\n gradient.addColorStop(1, vignetteEdgeColor);\n\n ctx.fillStyle = gradient;\n ctx.fillRect(0, 0, canvas.width, canvas.height);\n };\n\n const updateAnimation = () => {\n const effectiveSpeed = Math.max(speed, 0.1);\n switch (direction) {\n case \"right\":\n gridOffset.current.x = (gridOffset.current.x - effectiveSpeed + squareSize) % squareSize;\n break;\n case \"left\":\n gridOffset.current.x = (gridOffset.current.x + effectiveSpeed + squareSize) % squareSize;\n break;\n case \"up\":\n gridOffset.current.y = (gridOffset.current.y + effectiveSpeed + squareSize) % squareSize;\n break;\n case \"down\":\n gridOffset.current.y = (gridOffset.current.y - effectiveSpeed + squareSize) % squareSize;\n break;\n case \"diagonal\":\n gridOffset.current.x = (gridOffset.current.x - effectiveSpeed + squareSize) % squareSize;\n gridOffset.current.y = (gridOffset.current.y - effectiveSpeed + squareSize) % squareSize;\n break;\n default:\n break;\n }\n\n drawGrid();\n requestRef.current = requestAnimationFrame(updateAnimation);\n };\n\n const handleMouseMove = (event: MouseEvent) => {\n const rect = canvas.getBoundingClientRect();\n const mouseX = event.clientX - rect.left;\n const mouseY = event.clientY - rect.top;\n\n const startX = Math.floor(gridOffset.current.x / squareSize) * squareSize;\n const startY = Math.floor(gridOffset.current.y / squareSize) * squareSize;\n\n const hoveredSquareX = Math.floor((mouseX + gridOffset.current.x - startX) / squareSize);\n const hoveredSquareY = Math.floor((mouseY + gridOffset.current.y - startY) / squareSize);\n\n if (!hoveredSquareRef.current || hoveredSquareRef.current.x !== hoveredSquareX || hoveredSquareRef.current.y !== hoveredSquareY) {\n hoveredSquareRef.current = { x: hoveredSquareX, y: hoveredSquareY };\n }\n };\n\n const handleMouseLeave = () => {\n hoveredSquareRef.current = null;\n };\n\n canvas.addEventListener(\"mousemove\", handleMouseMove);\n canvas.addEventListener(\"mouseleave\", handleMouseLeave);\n requestRef.current = requestAnimationFrame(updateAnimation);\n\n return () => {\n window.removeEventListener(\"resize\", resizeCanvas);\n if (requestRef.current) cancelAnimationFrame(requestRef.current);\n canvas.removeEventListener(\"mousemove\", handleMouseMove);\n canvas.removeEventListener(\"mouseleave\", handleMouseLeave);\n };\n }, [direction, speed, borderColor, hoverFillColor, squareSize, vignetteEdgeColor]);\n\n return <canvas ref={canvasRef} className={`${styles.squaresCanvas} ${className}`} style={style} />;\n};\n\nconst SquareBackground: React.FC<Omit<SquaresProps, \"borderColor\" | \"hoverFillColor\">> = (props) => {\n const { currentTheme } = useTheme();\n\n // 从主题中获取边框颜色\n const borderColor = useMemo(() => {\n const borderColorValue = currentTheme.colors.variables.border5 || currentTheme.colors.variables.fg || \"#6B7280\";\n if (borderColorValue.startsWith(\"#\")) {\n return borderColorValue;\n }\n const match = borderColorValue.match(/rgb\\((\\d+),\\s*(\\d+),\\s*(\\d+)\\)/);\n if (match) {\n const r = parseInt(match[1], 10).toString(16).padStart(2, \"0\");\n const g = parseInt(match[2], 10).toString(16).padStart(2, \"0\");\n const b = parseInt(match[3], 10).toString(16).padStart(2, \"0\");\n return `#${r}${g}${b}`;\n }\n return borderColorValue;\n }, [currentTheme]);\n\n // 从主题中获取悬停填充颜色\n const hoverFillColor = useMemo(() => {\n const baseColor = currentTheme.colors.variables.bg3 || currentTheme.colors.variables.border3 || \"#F3F4F6\";\n\n const darkenColor = (r: number, g: number, b: number, factor: number = 0.3) => {\n const newR = Math.round(r * (1 - factor));\n const newG = Math.round(g * (1 - factor));\n const newB = Math.round(b * (1 - factor));\n return `rgb(${newR}, ${newG}, ${newB})`;\n };\n\n if (baseColor.startsWith(\"#\")) {\n const hex = baseColor.slice(1);\n const r = parseInt(hex.slice(0, 2), 16);\n const g = parseInt(hex.slice(2, 4), 16);\n const b = parseInt(hex.slice(4, 6), 16);\n return darkenColor(r, g, b);\n }\n const match = baseColor.match(/rgb\\((\\d+),\\s*(\\d+),\\s*(\\d+)\\)/);\n if (match) {\n const r = parseInt(match[1], 10);\n const g = parseInt(match[2], 10);\n const b = parseInt(match[3], 10);\n return darkenColor(r, g, b);\n }\n return baseColor;\n }, [currentTheme]);\n\n return <Squares borderColor={borderColor} hoverFillColor={hoverFillColor} speed={0.5} squareSize={40} direction=\"diagonal\" {...props} />;\n};\n\nexport default SquareBackground;\n",".container {\n position: relative;\n width: 100%;\n height: 100%;\n background-color: var(--color-bg);\n overflow: hidden;\n}\n\n.canvas {\n display: block;\n width: 100%;\n height: 100%;\n}\n\n.outerVignette {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n background: radial-gradient(circle, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1) 100%);\n}\n\n.centerVignette {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n background: radial-gradient(circle, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);\n}\n","import { memo, useCallback, useEffect, useMemo, useRef } from \"react\";\n\nimport { useTheme } from \"@/themes/hooks/useTheme\";\n\nimport styles from \"./style.module.css\";\n\ninterface LetterGlitchProps {\n glitchColors?: string[];\n glitchSpeed?: number;\n centerVignette?: boolean;\n outerVignette?: boolean;\n smooth?: boolean;\n characters?: string;\n className?: string;\n style?: React.CSSProperties;\n}\n\nconst LetterGlitch = memo(\n ({\n glitchColors = [\"#7F1D1D\", \"#16A34A\", \"#2563EB\"],\n glitchSpeed = 500, // 增加默认速度,减少更新频率\n centerVignette = false,\n outerVignette = true,\n smooth = true,\n characters = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$&*()-_+=/[]{};:<>.,0123456789\",\n className = \"\",\n style = {},\n }: LetterGlitchProps) => {\n const canvasRef = useRef<HTMLCanvasElement | null>(null);\n const animationRef = useRef<number | null>(null);\n const letters = useRef<\n {\n char: string;\n color: string;\n targetColor: string;\n colorProgress: number;\n }[]\n >([]);\n const grid = useRef({ columns: 0, rows: 0 });\n const context = useRef<CanvasRenderingContext2D | null>(null);\n const lastGlitchTime = useRef(Date.now());\n\n const lettersAndSymbols = useMemo(() => Array.from(characters), [characters]);\n\n // 缓存 hexToRgb 结果\n const rgbCache = useRef<Map<string, { r: number; g: number; b: number } | null>>(new Map());\n\n const fontSize = 16;\n const charWidth = 10;\n const charHeight = 20;\n\n const getRandomChar = useCallback(() => {\n return lettersAndSymbols[Math.floor(Math.random() * lettersAndSymbols.length)];\n }, [lettersAndSymbols]);\n\n const getRandomColor = useCallback(() => {\n return glitchColors[Math.floor(Math.random() * glitchColors.length)];\n }, [glitchColors]);\n\n const hexToRgb = useCallback((hex: string) => {\n // 检查缓存\n if (rgbCache.current.has(hex)) {\n return rgbCache.current.get(hex)!;\n }\n\n const shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n const normalizedHex = hex.replace(shorthandRegex, (_m, r, g, b) => {\n return r + r + g + g + b + b;\n });\n\n const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(normalizedHex);\n const rgb = result\n ? {\n r: parseInt(result[1], 16),\n g: parseInt(result[2], 16),\n b: parseInt(result[3], 16),\n }\n : null;\n\n // 缓存结果\n rgbCache.current.set(hex, rgb);\n return rgb;\n }, []);\n\n const interpolateColor = (start: { r: number; g: number; b: number }, end: { r: number; g: number; b: number }, factor: number) => {\n const result = {\n r: Math.round(start.r + (end.r - start.r) * factor),\n g: Math.round(start.g + (end.g - start.g) * factor),\n b: Math.round(start.b + (end.b - start.b) * factor),\n };\n return `rgb(${result.r}, ${result.g}, ${result.b})`;\n };\n\n const calculateGrid = (width: number, height: number) => {\n const columns = Math.ceil(width / charWidth);\n const rows = Math.ceil(height / charHeight);\n return { columns, rows };\n };\n\n const initializeLetters = (columns: number, rows: number) => {\n grid.current = { columns, rows };\n const totalLetters = columns * rows;\n letters.current = Array.from({ length: totalLetters }, () => ({\n char: getRandomChar(),\n color: getRandomColor(),\n targetColor: getRandomColor(),\n colorProgress: 1,\n }));\n };\n\n const resizeCanvas = () => {\n const canvas = canvasRef.current;\n if (!canvas) return;\n const parent = canvas.parentElement;\n if (!parent) return;\n\n const dpr = window.devicePixelRatio || 1;\n const rect = parent.getBoundingClientRect();\n\n canvas.width = rect.width * dpr;\n canvas.height = rect.height * dpr;\n\n canvas.style.width = `${rect.width}px`;\n canvas.style.height = `${rect.height}px`;\n\n if (context.current) {\n context.current.setTransform(dpr, 0, 0, dpr, 0, 0);\n }\n\n const { columns, rows } = calculateGrid(rect.width, rect.height);\n initializeLetters(columns, rows);\n drawLetters();\n };\n\n const drawLetters = useCallback(() => {\n if (!context.current || letters.current.length === 0) return;\n const ctx = context.current;\n const canvas = canvasRef.current;\n if (!canvas) return;\n\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n ctx.font = `${fontSize}px monospace`;\n ctx.textBaseline = \"top\";\n ctx.textAlign = \"left\";\n\n // 批量绘制,减少状态切换\n letters.current.forEach((letter, index) => {\n const x = (index % grid.current.columns) * charWidth;\n const y = Math.floor(index / grid.current.columns) * charHeight;\n ctx.fillStyle = letter.color;\n ctx.fillText(letter.char, x, y);\n });\n }, []);\n\n const updateLetters = useCallback(() => {\n if (!letters.current || letters.current.length === 0) return;\n\n // 减少更新比例,从 5% 降到 2%,降低性能消耗\n const updateCount = Math.max(1, Math.floor(letters.current.length * 0.02));\n\n for (let i = 0; i < updateCount; i++) {\n const index = Math.floor(Math.random() * letters.current.length);\n if (!letters.current[index]) continue;\n\n letters.current[index].char = getRandomChar();\n letters.current[index].targetColor = getRandomColor();\n\n if (!smooth) {\n letters.current[index].color = letters.current[index].targetColor;\n letters.current[index].colorProgress = 1;\n } else {\n letters.current[index].colorProgress = 0;\n }\n }\n }, [getRandomChar, getRandomColor, smooth]);\n\n const handleSmoothTransitions = useCallback(() => {\n let needsRedraw = false;\n let activeCount = 0;\n\n // 只处理正在过渡的字母,减少不必要的计算\n letters.current.forEach((letter) => {\n if (letter.colorProgress < 1) {\n activeCount++;\n letter.colorProgress += 0.03; // 稍微降低过渡速度,减少重绘频率\n if (letter.colorProgress > 1) letter.colorProgress = 1;\n\n const startRgb = hexToRgb(letter.color);\n const endRgb = hexToRgb(letter.targetColor);\n if (startRgb && endRgb) {\n letter.color = interpolateColor(startRgb, endRgb, letter.colorProgress);\n needsRedraw = true;\n }\n }\n });\n\n // 只有在有活动过渡时才重绘\n if (needsRedraw && activeCount > 0) {\n drawLetters();\n }\n }, [hexToRgb, drawLetters]);\n\n const animate = useCallback(() => {\n const now = Date.now();\n const timeSinceLastGlitch = now - lastGlitchTime.current;\n\n // 只在需要更新时才执行\n if (timeSinceLastGlitch >= glitchSpeed) {\n updateLetters();\n drawLetters();\n lastGlitchTime.current = now;\n } else if (smooth) {\n // 只在平滑模式下才检查过渡\n handleSmoothTransitions();\n }\n\n animationRef.current = requestAnimationFrame(animate);\n }, [glitchSpeed, smooth, updateLetters, handleSmoothTransitions]);\n\n useEffect(() => {\n const canvas = canvasRef.current;\n if (!canvas) return;\n\n context.current = canvas.getContext(\"2d\");\n resizeCanvas();\n animate();\n\n let resizeTimeout: ReturnType<typeof setTimeout>;\n\n const handleResize = () => {\n clearTimeout(resizeTimeout);\n resizeTimeout = setTimeout(() => {\n if (animationRef.current) {\n cancelAnimationFrame(animationRef.current);\n }\n resizeCanvas();\n animate();\n }, 100);\n };\n\n window.addEventListener(\"resize\", handleResize);\n\n return () => {\n if (animationRef.current) {\n cancelAnimationFrame(animationRef.current);\n }\n window.removeEventListener(\"resize\", handleResize);\n clearTimeout(resizeTimeout);\n // 清理缓存\n rgbCache.current.clear();\n };\n }, [glitchSpeed, smooth, glitchColors, animate]);\n\n return (\n <div className={`${styles.container} ${className}`} style={style}>\n <canvas ref={canvasRef} className={styles.canvas} />\n {outerVignette && <div className={styles.outerVignette}></div>}\n {centerVignette && <div className={styles.centerVignette}></div>}\n </div>\n );\n },\n);\n\nconst LetterGlitchBackground: React.FC<Omit<LetterGlitchProps, \"glitchColors\">> = memo((props) => {\n const { currentTheme } = useTheme();\n\n // 从主题中获取故障颜色数组\n const glitchColors = useMemo(() => {\n const primary = currentTheme.colors.variables.primary || \"#DC2626\";\n const info = currentTheme.colors.variables.info || \"#2563EB\";\n const success = currentTheme.colors.variables.success || \"#16A34A\";\n\n const toHex = (color: string): string => {\n if (color.startsWith(\"#\")) {\n return color;\n }\n const match = color.match(/rgb\\((\\d+),\\s*(\\d+),\\s*(\\d+)\\)/);\n if (match) {\n const r = parseInt(match[1], 10).toString(16).padStart(2, \"0\");\n const g = parseInt(match[2], 10).toString(16).padStart(2, \"0\");\n const b = parseInt(match[3], 10).toString(16).padStart(2, \"0\");\n return `#${r}${g}${b}`;\n }\n return color;\n };\n\n return [toHex(primary), toHex(info), toHex(success)];\n }, [currentTheme]);\n\n return (\n <LetterGlitch\n glitchColors={glitchColors}\n glitchSpeed={300} // 增加默认速度,减少更新频率\n centerVignette={true}\n outerVignette={false}\n smooth={true}\n {...props}\n />\n );\n});\n\nLetterGlitchBackground.displayName = \"LetterGlitchBackground\";\n\nexport default LetterGlitchBackground;\n"],"mappings":";;;;;;GCOM,IAAN,MAAW;AAAA,EACT;AAAA,EACA;AAAA,EACA;AAAA,EACA,YAAY,GAAW,GAAW,GAAW;AAC3C,SAAK,IAAI,GACT,KAAK,IAAI,GACT,KAAK,IAAI;AAAA,EACX;AAAA,EACA,KAAK,GAAW,GAAmB;AACjC,WAAO,KAAK,IAAI,IAAI,KAAK,IAAI;AAAA,EAC/B;AACF,GAEM,KAAN,MAAY;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA,YAAY,IAAO,GAAG;AACpB,SAAK,QAAQ;AAAA,MACX,IAAI,EAAK,GAAG,GAAG,CAAC;AAAA,MAChB,IAAI,EAAK,IAAI,GAAG,CAAC;AAAA,MACjB,IAAI,EAAK,GAAG,IAAI,CAAC;AAAA,MACjB,IAAI,EAAK,IAAI,IAAI,CAA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gBAAA,EAAC,OAAD,EAAK,WAAW,EAAO,eAAqB,CAAA;AAAA,IAC5D;AAAA;AAET,CACF,GAEM,KAA4E,GAAA,CAAM,MAAU;AAChG,QAAM,EAAE,cAAA,EAAA,IAAiB,GAAS;AAyBlC,SACE,gBAAA,EAAC,IAAD;AAAA,IACgB,cAxBG,EAAA,MAAc;AACjC,YAAM,IAAU,EAAa,OAAO,UAAU,WAAW,WACnD,IAAO,EAAa,OAAO,UAAU,QAAQ,WAC7C,IAAU,EAAa,OAAO,UAAU,WAAW,WAEnD,IAAA,CAAS,MAA0B;AACvC,YAAI,EAAM,WAAW,GAAG,EACtB,QAAO;AAET,cAAM,IAAQ,EAAM,MAAM,gCAAgC;AAC1D,eAAI,IAIK,IAHG,SAAS,EAAM,CAAA,GAAI,EAAE,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,GAG/C,CAAA,GAFD,SAAS,EAAM,CAAA,GAAI,EAAE,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,GAE3C,CAAA,GADL,SAAS,EAAM,CAAA,GAAI,EAAE,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,GACvC,CAAA,KAEd;AAAA,MACT;AAEA,aAAO;AAAA,QAAC,EAAM,CAAO;AAAA,QAAG,EAAM,CAAI;AAAA,QAAG,EAAM,CAAO;AAAA,MAAC;AAAA,IACrD,GAAG,CAAC,CAAY,CAIE;AAAA,IACd,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB,eAAe;AAAA,IACf,QAAQ;AAAA,IACR,GAAI;AAAA,EACL,CAAA;AAEL,CAAC;AAED,GAAuB,cAAc"}
@@ -1,3 +0,0 @@
1
- const at=require("./chunk-chunk-D-Fg7nx1.cjs"),q=require("./chunk-useTheme-Tw_7_cQf.cjs");let o=require("react");o=at.__toESM(o,1);let V=require("react/jsx-runtime");var ut="style-module__waves___oR3u7",it="style-module__wavesCanvas___zkhTC",rt={waves:ut,wavesCanvas:it},P=class{x;y;z;constructor(e,r,c){this.x=e,this.y=r,this.z=c}dot2(e,r){return this.x*e+this.y*r}},lt=class{grad3;p;perm;gradP;constructor(e=0){this.grad3=[new P(1,1,0),new P(-1,1,0),new P(1,-1,0),new P(-1,-1,0),new P(1,0,1),new P(-1,0,1),new P(1,0,-1),new P(-1,0,-1),new P(0,1,1),new P(0,-1,1),new P(0,1,-1),new P(0,-1,-1)],this.p=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180],this.perm=new Array(512),this.gradP=new Array(512),this.seed(e)}seed(e){e>0&&e<1&&(e*=65536),e=Math.floor(e),e<256&&(e|=e<<8);for(let r=0;r<256;r++){let c=r&1?this.p[r]^e&255:this.p[r]^e>>8&255;this.perm[r]=this.perm[r+256]=c,this.gradP[r]=this.gradP[r+256]=this.grad3[c%12]}}fade(e){return e*e*e*(e*(e*6-15)+10)}lerp(e,r,c){return(1-c)*e+c*r}perlin2(e,r){let c=Math.floor(e),t=Math.floor(r);e-=c,r-=t,c&=255,t&=255;const d=this.gradP[c+this.perm[t]].dot2(e,r),v=this.gradP[c+this.perm[t+1]].dot2(e,r-1),y=this.gradP[c+1+this.perm[t]].dot2(e-1,r),b=this.gradP[c+1+this.perm[t+1]].dot2(e-1,r-1),w=this.fade(e);return this.lerp(this.lerp(d,y,w),this.lerp(v,b,w),this.fade(r))}},ht=({lineColor:e="black",backgroundColor:r="transparent",waveSpeedX:c=.0125,waveSpeedY:t=.005,waveAmpX:d=32,waveAmpY:v=16,xGap:y=10,yGap:b=32,friction:w=.925,tension:R=.005,maxCursorMove:g=100,style:D={},className:W=""})=>{const f=(0,o.useRef)(null),C=(0,o.useRef)(null),l=(0,o.useRef)(null),_=(0,o.useRef)({width:0,height:0,left:0,top:0}),N=(0,o.useRef)(new lt(Math.random())),Y=(0,o.useRef)([]),j=(0,o.useRef)({x:-10,y:0,lx:0,ly:0,sx:0,sy:0,v:0,vs:0,a:0,set:!1}),L=(0,o.useRef)({lineColor:e,waveSpeedX:c,waveSpeedY:t,waveAmpX:d,waveAmpY:v,friction:w,tension:R,maxCursorMove:g,xGap:y,yGap:b}),T=(0,o.useRef)(null);return(0,o.useEffect)(()=>{L.current={lineColor:e,waveSpeedX:c,waveSpeedY:t,waveAmpX:d,waveAmpY:v,friction:w,tension:R,maxCursorMove:g,xGap:y,yGap:b}},[e,c,t,d,v,w,R,g,y,b]),(0,o.useEffect)(()=>{const p=C.current,k=f.current;if(!p||!k)return;l.current=p.getContext("2d");function B(){if(!k||!p)return;const i=k.getBoundingClientRect();_.current={width:i.width,height:i.height,left:i.left,top:i.top},p.width=i.width,p.height=i.height}function I(){const{width:i,height:s}=_.current;Y.current=[];const u=i+200,M=s+30,{xGap:$,yGap:O}=L.current,J=Math.ceil(u/$),G=Math.ceil(M/O),K=(i-$*J)/2,Q=(s-O*G)/2;for(let H=0;H<=J;H++){const U=[];for(let m=0;m<=G;m++)U.push({x:K+$*H,y:Q+O*m,wave:{x:0,y:0},cursor:{x:0,y:0,vx:0,vy:0}});Y.current.push(U)}}function E(i){const s=Y.current,u=j.current,M=N.current,{waveSpeedX:$,waveSpeedY:O,waveAmpX:J,waveAmpY:G,friction:K,tension:Q,maxCursorMove:H}=L.current;s.forEach(U=>{U.forEach(m=>{const tt=M.perlin2((m.x+i*$)*.002,(m.y+i*O)*.0015)*12;m.wave.x=Math.cos(tt)*J,m.wave.y=Math.sin(tt)*G;const st=m.x-u.sx,ot=m.y-u.sy,z=Math.hypot(st,ot),Z=Math.max(175,u.vs);if(z<Z){const ct=1-z/Z,et=Math.cos(z*.001)*ct;m.cursor.vx+=Math.cos(u.a)*et*Z*u.vs*65e-5,m.cursor.vy+=Math.sin(u.a)*et*Z*u.vs*65e-5}m.cursor.vx+=(0-m.cursor.x)*Q,m.cursor.vy+=(0-m.cursor.y)*Q,m.cursor.vx*=K,m.cursor.vy*=K,m.cursor.x+=m.cursor.vx*2,m.cursor.y+=m.cursor.vy*2,m.cursor.x=Math.min(H,Math.max(-H,m.cursor.x)),m.cursor.y=Math.min(H,Math.max(-H,m.cursor.y))})})}function A(i,s=!0){const u=i.x+i.wave.x+(s?i.cursor.x:0),M=i.y+i.wave.y+(s?i.cursor.y:0);return{x:Math.round(u*10)/10,y:Math.round(M*10)/10}}function F(){const{width:i,height:s}=_.current,u=l.current;u&&(u.clearRect(0,0,i,s),u.beginPath(),u.strokeStyle=L.current.lineColor,Y.current.forEach(M=>{let $=A(M[0],!1);u.moveTo($.x,$.y),M.forEach((O,J)=>{const G=J===M.length-1;$=A(O,!G);const K=A(M[J+1]||M[M.length-1],!G);u.lineTo($.x,$.y),G&&u.moveTo(K.x,K.y)})}),u.stroke())}function X(i){if(!k)return;const s=j.current;s.sx+=(s.x-s.sx)*.1,s.sy+=(s.y-s.sy)*.1;const u=s.x-s.lx,M=s.y-s.ly,$=Math.hypot(u,M);s.v=$,s.vs+=($-s.vs)*.1,s.vs=Math.min(100,s.vs),s.lx=s.x,s.ly=s.y,s.a=Math.atan2(M,u),k.style.setProperty("--x",`${s.sx}px`),k.style.setProperty("--y",`${s.sy}px`),E(i),F(),T.current=requestAnimationFrame(X)}function n(){B(),I()}function h(i){x(i.clientX,i.clientY)}function a(i){const s=i.touches[0];x(s.clientX,s.clientY)}function x(i,s){const u=j.current,M=_.current;u.x=i-M.left,u.y=s-M.top,u.set||(u.sx=u.x,u.sy=u.y,u.lx=u.x,u.ly=u.y,u.set=!0)}return B(),I(),T.current=requestAnimationFrame(X),window.addEventListener("resize",n),window.addEventListener("mousemove",h),window.addEventListener("touchmove",a,{passive:!1}),()=>{window.removeEventListener("resize",n),window.removeEventListener("mousemove",h),window.removeEventListener("touchmove",a),T.current!==null&&cancelAnimationFrame(T.current)}},[]),(0,V.jsx)("div",{ref:f,className:`${rt.waves} ${W}`,style:{position:"absolute",top:0,left:0,margin:0,padding:0,width:"100%",height:"100%",overflow:"hidden",backgroundColor:r,...D},children:(0,V.jsx)("canvas",{ref:C,className:rt.wavesCanvas})})},dt=e=>{const{currentTheme:r}=q.useTheme();return(0,V.jsx)(ht,{lineColor:(0,o.useMemo)(()=>{const c=r.colors.variables.primary||"rgb(220, 38, 38)",t=(y,b,w,R=.4)=>`rgb(${Math.round(y+(255-y)*R)}, ${Math.round(b+(255-b)*R)}, ${Math.round(w+(255-w)*R)})`;if(c.startsWith("#")){const y=c.slice(1);return t(parseInt(y.slice(0,2),16),parseInt(y.slice(2,4),16),parseInt(y.slice(4,6),16))}const d=c.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);if(d)return t(parseInt(d[1],10),parseInt(d[2],10),parseInt(d[3],10));const v=c.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);return v?t(parseInt(v[1],10),parseInt(v[2],10),parseInt(v[3],10)):c},[r]),backgroundColor:"transparent",waveSpeedX:.05,waveSpeedY:.01,waveAmpX:40,waveAmpY:20,...e})},ft="style-module__squaresCanvas___22kMc",mt={squaresCanvas:ft},vt=({direction:e="right",speed:r=1,borderColor:c="#6B7280",squareSize:t=40,hoverFillColor:d="#111827",className:v="",style:y={}})=>{const{currentTheme:b}=q.useTheme(),w=b.colors.variables.fgHeading,R=(0,o.useRef)(null),g=(0,o.useRef)(null),D=(0,o.useRef)(0),W=(0,o.useRef)(0),f=(0,o.useRef)({x:0,y:0}),C=(0,o.useRef)(null);return(0,o.useEffect)(()=>{const l=R.current;if(!l)return;const _=l.getContext("2d"),N=()=>{l.width=l.offsetWidth,l.height=l.offsetHeight,D.current=Math.ceil(l.width/t)+1,W.current=Math.ceil(l.height/t)+1};window.addEventListener("resize",N),N();const Y=()=>{if(!_)return;_.clearRect(0,0,l.width,l.height);const p=Math.floor(f.current.x/t)*t,k=Math.floor(f.current.y/t)*t;for(let I=p;I<l.width+t;I+=t)for(let E=k;E<l.height+t;E+=t){const A=I-f.current.x%t,F=E-f.current.y%t;C.current&&Math.floor((I-p)/t)===C.current.x&&Math.floor((E-k)/t)===C.current.y&&(_.fillStyle=d,_.fillRect(A,F,t,t)),_.strokeStyle=c,_.strokeRect(A,F,t,t)}const B=_.createRadialGradient(l.width/2,l.height/2,0,l.width/2,l.height/2,Math.sqrt(l.width**2+l.height**2)/2);B.addColorStop(0,"rgba(0, 0, 0, 0)"),B.addColorStop(1,w),_.fillStyle=B,_.fillRect(0,0,l.width,l.height)},j=()=>{const p=Math.max(r,.1);switch(e){case"right":f.current.x=(f.current.x-p+t)%t;break;case"left":f.current.x=(f.current.x+p+t)%t;break;case"up":f.current.y=(f.current.y+p+t)%t;break;case"down":f.current.y=(f.current.y-p+t)%t;break;case"diagonal":f.current.x=(f.current.x-p+t)%t,f.current.y=(f.current.y-p+t)%t;break;default:break}Y(),g.current=requestAnimationFrame(j)},L=p=>{const k=l.getBoundingClientRect(),B=p.clientX-k.left,I=p.clientY-k.top,E=Math.floor(f.current.x/t)*t,A=Math.floor(f.current.y/t)*t,F=Math.floor((B+f.current.x-E)/t),X=Math.floor((I+f.current.y-A)/t);(!C.current||C.current.x!==F||C.current.y!==X)&&(C.current={x:F,y:X})},T=()=>{C.current=null};return l.addEventListener("mousemove",L),l.addEventListener("mouseleave",T),g.current=requestAnimationFrame(j),()=>{window.removeEventListener("resize",N),g.current&&cancelAnimationFrame(g.current),l.removeEventListener("mousemove",L),l.removeEventListener("mouseleave",T)}},[e,r,c,d,t,w]),(0,V.jsx)("canvas",{ref:R,className:`${mt.squaresCanvas} ${v}`,style:y})},gt=e=>{const{currentTheme:r}=q.useTheme();return(0,V.jsx)(vt,{borderColor:(0,o.useMemo)(()=>{const c=r.colors.variables.border5||r.colors.variables.fg||"#6B7280";if(c.startsWith("#"))return c;const t=c.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);return t?`#${parseInt(t[1],10).toString(16).padStart(2,"0")}${parseInt(t[2],10).toString(16).padStart(2,"0")}${parseInt(t[3],10).toString(16).padStart(2,"0")}`:c},[r]),hoverFillColor:(0,o.useMemo)(()=>{const c=r.colors.variables.bg3||r.colors.variables.border3||"#F3F4F6",t=(v,y,b,w=.3)=>`rgb(${Math.round(v*(1-w))}, ${Math.round(y*(1-w))}, ${Math.round(b*(1-w))})`;if(c.startsWith("#")){const v=c.slice(1);return t(parseInt(v.slice(0,2),16),parseInt(v.slice(2,4),16),parseInt(v.slice(4,6),16))}const d=c.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);return d?t(parseInt(d[1],10),parseInt(d[2],10),parseInt(d[3],10)):c},[r]),speed:.5,squareSize:40,direction:"diagonal",...e})},yt="style-module__container___HkxIe",xt="style-module__canvas___MR9JX",wt="style-module__outerVignette___i75nw",Mt="style-module__centerVignette___n9uVG",S={container:yt,canvas:xt,outerVignette:wt,centerVignette:Mt},pt=(0,o.memo)(({glitchColors:e=["#7F1D1D","#16A34A","#2563EB"],glitchSpeed:r=500,centerVignette:c=!1,outerVignette:t=!0,smooth:d=!0,characters:v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$&*()-_+=/[]{};:<>.,0123456789",className:y="",style:b={}})=>{const w=(0,o.useRef)(null),R=(0,o.useRef)(null),g=(0,o.useRef)([]),D=(0,o.useRef)({columns:0,rows:0}),W=(0,o.useRef)(null),f=(0,o.useRef)(Date.now()),C=(0,o.useMemo)(()=>Array.from(v),[v]),l=(0,o.useRef)(new Map),_=16,N=10,Y=20,j=(0,o.useCallback)(()=>C[Math.floor(Math.random()*C.length)],[C]),L=(0,o.useCallback)(()=>e[Math.floor(Math.random()*e.length)],[e]),T=(0,o.useCallback)(n=>{if(l.current.has(n))return l.current.get(n);const h=n.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(i,s,u,M)=>s+s+u+u+M+M),a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(h),x=a?{r:parseInt(a[1],16),g:parseInt(a[2],16),b:parseInt(a[3],16)}:null;return l.current.set(n,x),x},[]),p=(n,h,a)=>{const x={r:Math.round(n.r+(h.r-n.r)*a),g:Math.round(n.g+(h.g-n.g)*a),b:Math.round(n.b+(h.b-n.b)*a)};return`rgb(${x.r}, ${x.g}, ${x.b})`},k=(n,h)=>({columns:Math.ceil(n/N),rows:Math.ceil(h/Y)}),B=(n,h)=>{D.current={columns:n,rows:h};const a=n*h;g.current=Array.from({length:a},()=>({char:j(),color:L(),targetColor:L(),colorProgress:1}))},I=()=>{const n=w.current;if(!n)return;const h=n.parentElement;if(!h)return;const a=window.devicePixelRatio||1,x=h.getBoundingClientRect();n.width=x.width*a,n.height=x.height*a,n.style.width=`${x.width}px`,n.style.height=`${x.height}px`,W.current&&W.current.setTransform(a,0,0,a,0,0);const{columns:i,rows:s}=k(x.width,x.height);B(i,s),E()},E=(0,o.useCallback)(()=>{if(!W.current||g.current.length===0)return;const n=W.current,h=w.current;h&&(n.clearRect(0,0,h.width,h.height),n.font=`${_}px monospace`,n.textBaseline="top",n.textAlign="left",g.current.forEach((a,x)=>{const i=x%D.current.columns*N,s=Math.floor(x/D.current.columns)*Y;n.fillStyle=a.color,n.fillText(a.char,i,s)}))},[]),A=(0,o.useCallback)(()=>{if(!g.current||g.current.length===0)return;const n=Math.max(1,Math.floor(g.current.length*.02));for(let h=0;h<n;h++){const a=Math.floor(Math.random()*g.current.length);g.current[a]&&(g.current[a].char=j(),g.current[a].targetColor=L(),d?g.current[a].colorProgress=0:(g.current[a].color=g.current[a].targetColor,g.current[a].colorProgress=1))}},[j,L,d]),F=(0,o.useCallback)(()=>{let n=!1,h=0;g.current.forEach(a=>{if(a.colorProgress<1){h++,a.colorProgress+=.03,a.colorProgress>1&&(a.colorProgress=1);const x=T(a.color),i=T(a.targetColor);x&&i&&(a.color=p(x,i,a.colorProgress),n=!0)}}),n&&h>0&&E()},[T,E]),X=(0,o.useCallback)(()=>{const n=Date.now();n-f.current>=r?(A(),E(),f.current=n):d&&F(),R.current=requestAnimationFrame(X)},[r,d,A,F]);return(0,o.useEffect)(()=>{const n=w.current;if(!n)return;W.current=n.getContext("2d"),I(),X();let h;const a=()=>{clearTimeout(h),h=setTimeout(()=>{R.current&&cancelAnimationFrame(R.current),I(),X()},100)};return window.addEventListener("resize",a),()=>{R.current&&cancelAnimationFrame(R.current),window.removeEventListener("resize",a),clearTimeout(h),l.current.clear()}},[r,d,e,X]),(0,V.jsxs)("div",{className:`${S.container} ${y}`,style:b,children:[(0,V.jsx)("canvas",{ref:w,className:S.canvas}),t&&(0,V.jsx)("div",{className:S.outerVignette}),c&&(0,V.jsx)("div",{className:S.centerVignette})]})}),nt=(0,o.memo)(e=>{const{currentTheme:r}=q.useTheme();return(0,V.jsx)(pt,{glitchColors:(0,o.useMemo)(()=>{const c=r.colors.variables.primary||"#DC2626",t=r.colors.variables.info||"#2563EB",d=r.colors.variables.success||"#16A34A",v=y=>{if(y.startsWith("#"))return y;const b=y.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);return b?`#${parseInt(b[1],10).toString(16).padStart(2,"0")}${parseInt(b[2],10).toString(16).padStart(2,"0")}${parseInt(b[3],10).toString(16).padStart(2,"0")}`:y};return[v(c),v(t),v(d)]},[r]),glitchSpeed:300,centerVignette:!0,outerVignette:!1,smooth:!0,...e})});nt.displayName="LetterGlitchBackground";Object.defineProperty(exports,"LetterGlitchBackground",{enumerable:!0,get:function(){return nt}});Object.defineProperty(exports,"SquareBackground",{enumerable:!0,get:function(){return gt}});Object.defineProperty(exports,"WaveBackground",{enumerable:!0,get:function(){return dt}});
2
-
3
- //# sourceMappingURL=chunk-animations-i85rn79V.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chunk-animations-i85rn79V.cjs","names":[],"sources":["../src/designs/animations/Waves/style.module.css","../src/designs/animations/Waves/index.tsx","../src/designs/animations/Squares/style.module.css","../src/designs/animations/Squares/index.tsx","../src/designs/animations/LetterGlitch/style.module.css","../src/designs/animations/LetterGlitch/index.tsx"],"sourcesContent":[".waves {\n position: absolute;\n top: 0;\n left: 0;\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n\n.waves::before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 0.5rem;\n height: 0.5rem;\n background: var(--color-bg);\n border-radius: 50%;\n transform: translate3d(calc(var(--x) - 50%), calc(var(--y) - 50%), 0);\n will-change: transform;\n}\n\n.wavesCanvas {\n display: block;\n width: 100%;\n height: 100%;\n}\n","import React, { useEffect, useMemo, useRef } from \"react\";\nimport type { CSSProperties } from \"react\";\n\nimport { useTheme } from \"@/themes/hooks/useTheme\";\n\nimport styles from \"./style.module.css\";\n\nclass Grad {\n x: number;\n y: number;\n z: number;\n constructor(x: number, y: number, z: number) {\n this.x = x;\n this.y = y;\n this.z = z;\n }\n dot2(x: number, y: number): number {\n return this.x * x + this.y * y;\n }\n}\n\nclass Noise {\n grad3: Grad[];\n p: number[];\n perm: number[];\n gradP: Grad[];\n\n constructor(seed = 0) {\n this.grad3 = [\n new Grad(1, 1, 0),\n new Grad(-1, 1, 0),\n new Grad(1, -1, 0),\n new Grad(-1, -1, 0),\n new Grad(1, 0, 1),\n new Grad(-1, 0, 1),\n new Grad(1, 0, -1),\n new Grad(-1, 0, -1),\n new Grad(0, 1, 1),\n new Grad(0, -1, 1),\n new Grad(0, 1, -1),\n new Grad(0, -1, -1),\n ];\n this.p = [\n 151, 160, 137, 91, 90, 15, 131, 13, 201, 95, 96, 53, 194, 233, 7, 225, 140, 36, 103, 30, 69, 142, 8, 99, 37, 240, 21, 10, 23, 190, 6, 148, 247, 120, 234,\n 75, 0, 26, 197, 62, 94, 252, 219, 203, 117, 35, 11, 32, 57, 177, 33, 88, 237, 149, 56, 87, 174, 20, 125, 136, 171, 168, 68, 175, 74, 165, 71, 134, 139,\n 48, 27, 166, 77, 146, 158, 231, 83, 111, 229, 122, 60, 211, 133, 230, 220, 105, 92, 41, 55, 46, 245, 40, 244, 102, 143, 54, 65, 25, 63, 161, 1, 216, 80,\n 73, 209, 76, 132, 187, 208, 89, 18, 169, 200, 196, 135, 130, 116, 188, 159, 86, 164, 100, 109, 198, 173, 186, 3, 64, 52, 217, 226, 250, 124, 123, 5, 202,\n 38, 147, 118, 126, 255, 82, 85, 212, 207, 206, 59, 227, 47, 16, 58, 17, 182, 189, 28, 42, 223, 183, 170, 213, 119, 248, 152, 2, 44, 154, 163, 70, 221,\n 153, 101, 155, 167, 43, 172, 9, 129, 22, 39, 253, 19, 98, 108, 110, 79, 113, 224, 232, 178, 185, 112, 104, 218, 246, 97, 228, 251, 34, 242, 193, 238, 210,\n 144, 12, 191, 179, 162, 241, 81, 51, 145, 235, 249, 14, 239, 107, 49, 192, 214, 31, 181, 199, 106, 157, 184, 84, 204, 176, 115, 121, 50, 45, 127, 4, 150,\n 254, 138, 236, 205, 93, 222, 114, 67, 29, 24, 72, 243, 141, 128, 195, 78, 66, 215, 61, 156, 180,\n ];\n this.perm = new Array(512);\n this.gradP = new Array(512);\n this.seed(seed);\n }\n seed(seed: number) {\n if (seed > 0 && seed < 1) seed *= 65536;\n seed = Math.floor(seed);\n if (seed < 256) seed |= seed << 8;\n for (let i = 0; i < 256; i++) {\n let v = i & 1 ? this.p[i] ^ (seed & 255) : this.p[i] ^ ((seed >> 8) & 255);\n this.perm[i] = this.perm[i + 256] = v;\n this.gradP[i] = this.gradP[i + 256] = this.grad3[v % 12];\n }\n }\n fade(t: number): number {\n return t * t * t * (t * (t * 6 - 15) + 10);\n }\n lerp(a: number, b: number, t: number): number {\n return (1 - t) * a + t * b;\n }\n perlin2(x: number, y: number): number {\n let X = Math.floor(x),\n Y = Math.floor(y);\n x -= X;\n y -= Y;\n X &= 255;\n Y &= 255;\n const n00 = this.gradP[X + this.perm[Y]].dot2(x, y);\n const n01 = this.gradP[X + this.perm[Y + 1]].dot2(x, y - 1);\n const n10 = this.gradP[X + 1 + this.perm[Y]].dot2(x - 1, y);\n const n11 = this.gradP[X + 1 + this.perm[Y + 1]].dot2(x - 1, y - 1);\n const u = this.fade(x);\n return this.lerp(this.lerp(n00, n10, u), this.lerp(n01, n11, u), this.fade(y));\n }\n}\n\ninterface Point {\n x: number;\n y: number;\n wave: { x: number; y: number };\n cursor: { x: number; y: number; vx: number; vy: number };\n}\n\ninterface Mouse {\n x: number;\n y: number;\n lx: number;\n ly: number;\n sx: number;\n sy: number;\n v: number;\n vs: number;\n a: number;\n set: boolean;\n}\n\ninterface Config {\n lineColor: string;\n waveSpeedX: number;\n waveSpeedY: number;\n waveAmpX: number;\n waveAmpY: number;\n friction: number;\n tension: number;\n maxCursorMove: number;\n xGap: number;\n yGap: number;\n}\n\ninterface WavesProps {\n lineColor?: string;\n backgroundColor?: string;\n waveSpeedX?: number;\n waveSpeedY?: number;\n waveAmpX?: number;\n waveAmpY?: number;\n xGap?: number;\n yGap?: number;\n friction?: number;\n tension?: number;\n maxCursorMove?: number;\n style?: CSSProperties;\n className?: string;\n}\n\nconst Waves: React.FC<WavesProps> = ({\n lineColor = \"black\",\n backgroundColor = \"transparent\",\n waveSpeedX = 0.0125,\n waveSpeedY = 0.005,\n waveAmpX = 32,\n waveAmpY = 16,\n xGap = 10,\n yGap = 32,\n friction = 0.925,\n tension = 0.005,\n maxCursorMove = 100,\n style = {},\n className = \"\",\n}) => {\n const containerRef = useRef<HTMLDivElement>(null);\n const canvasRef = useRef<HTMLCanvasElement>(null);\n const ctxRef = useRef<CanvasRenderingContext2D | null>(null);\n const boundingRef = useRef<{\n width: number;\n height: number;\n left: number;\n top: number;\n }>({\n width: 0,\n height: 0,\n left: 0,\n top: 0,\n });\n const noiseRef = useRef(new Noise(Math.random()));\n const linesRef = useRef<Point[][]>([]);\n const mouseRef = useRef<Mouse>({\n x: -10,\n y: 0,\n lx: 0,\n ly: 0,\n sx: 0,\n sy: 0,\n v: 0,\n vs: 0,\n a: 0,\n set: false,\n });\n const configRef = useRef<Config>({\n lineColor,\n waveSpeedX,\n waveSpeedY,\n waveAmpX,\n waveAmpY,\n friction,\n tension,\n maxCursorMove,\n xGap,\n yGap,\n });\n const frameIdRef = useRef<number | null>(null);\n\n useEffect(() => {\n configRef.current = {\n lineColor,\n waveSpeedX,\n waveSpeedY,\n waveAmpX,\n waveAmpY,\n friction,\n tension,\n maxCursorMove,\n xGap,\n yGap,\n };\n }, [lineColor, waveSpeedX, waveSpeedY, waveAmpX, waveAmpY, friction, tension, maxCursorMove, xGap, yGap]);\n\n useEffect(() => {\n const canvas = canvasRef.current;\n const container = containerRef.current;\n if (!canvas || !container) return;\n ctxRef.current = canvas.getContext(\"2d\");\n\n function setSize() {\n if (!container || !canvas) return;\n const rect = container.getBoundingClientRect();\n boundingRef.current = {\n width: rect.width,\n height: rect.height,\n left: rect.left,\n top: rect.top,\n };\n canvas.width = rect.width;\n canvas.height = rect.height;\n }\n\n function setLines() {\n const { width, height } = boundingRef.current;\n linesRef.current = [];\n const oWidth = width + 200,\n oHeight = height + 30;\n const { xGap, yGap } = configRef.current;\n const totalLines = Math.ceil(oWidth / xGap);\n const totalPoints = Math.ceil(oHeight / yGap);\n const xStart = (width - xGap * totalLines) / 2;\n const yStart = (height - yGap * totalPoints) / 2;\n for (let i = 0; i <= totalLines; i++) {\n const pts: Point[] = [];\n for (let j = 0; j <= totalPoints; j++) {\n pts.push({\n x: xStart + xGap * i,\n y: yStart + yGap * j,\n wave: { x: 0, y: 0 },\n cursor: { x: 0, y: 0, vx: 0, vy: 0 },\n });\n }\n linesRef.current.push(pts);\n }\n }\n\n function movePoints(time: number) {\n const lines = linesRef.current;\n const mouse = mouseRef.current;\n const noise = noiseRef.current;\n const { waveSpeedX, waveSpeedY, waveAmpX, waveAmpY, friction, tension, maxCursorMove } = configRef.current;\n lines.forEach((pts) => {\n pts.forEach((p) => {\n const move = noise.perlin2((p.x + time * waveSpeedX) * 0.002, (p.y + time * waveSpeedY) * 0.0015) * 12;\n p.wave.x = Math.cos(move) * waveAmpX;\n p.wave.y = Math.sin(move) * waveAmpY;\n\n const dx = p.x - mouse.sx,\n dy = p.y - mouse.sy;\n const dist = Math.hypot(dx, dy);\n const l = Math.max(175, mouse.vs);\n if (dist < l) {\n const s = 1 - dist / l;\n const f = Math.cos(dist * 0.001) * s;\n p.cursor.vx += Math.cos(mouse.a) * f * l * mouse.vs * 0.00065;\n p.cursor.vy += Math.sin(mouse.a) * f * l * mouse.vs * 0.00065;\n }\n\n p.cursor.vx += (0 - p.cursor.x) * tension;\n p.cursor.vy += (0 - p.cursor.y) * tension;\n p.cursor.vx *= friction;\n p.cursor.vy *= friction;\n p.cursor.x += p.cursor.vx * 2;\n p.cursor.y += p.cursor.vy * 2;\n p.cursor.x = Math.min(maxCursorMove, Math.max(-maxCursorMove, p.cursor.x));\n p.cursor.y = Math.min(maxCursorMove, Math.max(-maxCursorMove, p.cursor.y));\n });\n });\n }\n\n function moved(point: Point, withCursor = true): { x: number; y: number } {\n const x = point.x + point.wave.x + (withCursor ? point.cursor.x : 0);\n const y = point.y + point.wave.y + (withCursor ? point.cursor.y : 0);\n return { x: Math.round(x * 10) / 10, y: Math.round(y * 10) / 10 };\n }\n\n function drawLines() {\n const { width, height } = boundingRef.current;\n const ctx = ctxRef.current;\n if (!ctx) return;\n ctx.clearRect(0, 0, width, height);\n ctx.beginPath();\n ctx.strokeStyle = configRef.current.lineColor;\n linesRef.current.forEach((points) => {\n let p1 = moved(points[0], false);\n ctx.moveTo(p1.x, p1.y);\n points.forEach((p, idx) => {\n const isLast = idx === points.length - 1;\n p1 = moved(p, !isLast);\n const p2 = moved(points[idx + 1] || points[points.length - 1], !isLast);\n ctx.lineTo(p1.x, p1.y);\n if (isLast) ctx.moveTo(p2.x, p2.y);\n });\n });\n ctx.stroke();\n }\n\n function tick(t: number) {\n if (!container) return;\n const mouse = mouseRef.current;\n mouse.sx += (mouse.x - mouse.sx) * 0.1;\n mouse.sy += (mouse.y - mouse.sy) * 0.1;\n const dx = mouse.x - mouse.lx,\n dy = mouse.y - mouse.ly;\n const d = Math.hypot(dx, dy);\n mouse.v = d;\n mouse.vs += (d - mouse.vs) * 0.1;\n mouse.vs = Math.min(100, mouse.vs);\n mouse.lx = mouse.x;\n mouse.ly = mouse.y;\n mouse.a = Math.atan2(dy, dx);\n container.style.setProperty(\"--x\", `${mouse.sx}px`);\n container.style.setProperty(\"--y\", `${mouse.sy}px`);\n\n movePoints(t);\n drawLines();\n frameIdRef.current = requestAnimationFrame(tick);\n }\n\n function onResize() {\n setSize();\n setLines();\n }\n function onMouseMove(e: MouseEvent) {\n updateMouse(e.clientX, e.clientY);\n }\n function onTouchMove(e: TouchEvent) {\n const touch = e.touches[0];\n updateMouse(touch.clientX, touch.clientY);\n }\n function updateMouse(x: number, y: number) {\n const mouse = mouseRef.current;\n const b = boundingRef.current;\n mouse.x = x - b.left;\n mouse.y = y - b.top;\n if (!mouse.set) {\n mouse.sx = mouse.x;\n mouse.sy = mouse.y;\n mouse.lx = mouse.x;\n mouse.ly = mouse.y;\n mouse.set = true;\n }\n }\n\n setSize();\n setLines();\n frameIdRef.current = requestAnimationFrame(tick);\n window.addEventListener(\"resize\", onResize);\n window.addEventListener(\"mousemove\", onMouseMove);\n window.addEventListener(\"touchmove\", onTouchMove, { passive: false });\n\n return () => {\n window.removeEventListener(\"resize\", onResize);\n window.removeEventListener(\"mousemove\", onMouseMove);\n window.removeEventListener(\"touchmove\", onTouchMove);\n if (frameIdRef.current !== null) {\n cancelAnimationFrame(frameIdRef.current);\n }\n };\n }, []);\n\n return (\n <div\n ref={containerRef}\n className={`${styles.waves} ${className}`}\n style={{\n position: \"absolute\",\n top: 0,\n left: 0,\n margin: 0,\n padding: 0,\n width: \"100%\",\n height: \"100%\",\n overflow: \"hidden\",\n backgroundColor,\n ...style,\n }}\n >\n <canvas ref={canvasRef} className={styles.wavesCanvas} />\n </div>\n );\n};\n\nconst WaveBackground: React.FC<Omit<WavesProps, \"lineColor\" | \"backgroundColor\">> = (props) => {\n const { currentTheme } = useTheme();\n\n // 从主题中获取线条颜色,降低颜色深度(变浅)\n const lineColor = useMemo(() => {\n // 尝试从主题变量中获取主色,如果没有则使用默认值\n const primary = currentTheme.colors.variables.primary || \"rgb(220, 38, 38)\";\n\n // 将颜色变浅的函数:向白色混合\n const lightenColor = (r: number, g: number, b: number, factor: number = 0.4) => {\n // factor: 0 = 原色, 1 = 白色\n const newR = Math.round(r + (255 - r) * factor);\n const newG = Math.round(g + (255 - g) * factor);\n const newB = Math.round(b + (255 - b) * factor);\n return `rgb(${newR}, ${newG}, ${newB})`;\n };\n\n // 如果已经是 hex 格式,转换为 rgb 并变浅\n if (primary.startsWith(\"#\")) {\n const hex = primary.slice(1);\n const r = parseInt(hex.slice(0, 2), 16);\n const g = parseInt(hex.slice(2, 4), 16);\n const b = parseInt(hex.slice(4, 6), 16);\n return lightenColor(r, g, b);\n }\n // 将 rgb() 格式变浅\n const match = primary.match(/rgb\\((\\d+),\\s*(\\d+),\\s*(\\d+)\\)/);\n if (match) {\n const r = parseInt(match[1], 10);\n const g = parseInt(match[2], 10);\n const b = parseInt(match[3], 10);\n return lightenColor(r, g, b);\n }\n // 如果已经是 rgba 格式,提取 RGB 并变浅\n const rgbaMatch = primary.match(/rgba?\\((\\d+),\\s*(\\d+),\\s*(\\d+)/);\n if (rgbaMatch) {\n const r = parseInt(rgbaMatch[1], 10);\n const g = parseInt(rgbaMatch[2], 10);\n const b = parseInt(rgbaMatch[3], 10);\n return lightenColor(r, g, b);\n }\n return primary;\n }, [currentTheme]);\n\n return <Waves lineColor={lineColor} backgroundColor=\"transparent\" waveSpeedX={0.05} waveSpeedY={0.01} waveAmpX={40} waveAmpY={20} {...props} />;\n};\n\nexport default WaveBackground;\n",".squaresCanvas {\n width: 100%;\n height: 100%;\n border: none;\n display: block;\n}\n","import React, { useEffect, useMemo, useRef } from \"react\";\n\nimport { useTheme } from \"@/themes/hooks/useTheme\";\n\nimport styles from \"./style.module.css\";\n\ntype CanvasStrokeStyle = string | CanvasGradient | CanvasPattern;\n\ninterface GridOffset {\n x: number;\n y: number;\n}\n\ninterface SquaresProps {\n direction?: \"diagonal\" | \"up\" | \"right\" | \"down\" | \"left\";\n speed?: number;\n borderColor?: CanvasStrokeStyle;\n squareSize?: number;\n hoverFillColor?: CanvasStrokeStyle;\n className?: string;\n style?: React.CSSProperties;\n}\n\nconst Squares: React.FC<SquaresProps> = ({\n direction = \"right\",\n speed = 1,\n borderColor = \"#6B7280\",\n squareSize = 40,\n hoverFillColor = \"#111827\",\n className = \"\",\n style = {},\n}) => {\n const { currentTheme } = useTheme();\n const vignetteEdgeColor = currentTheme.colors.variables.fgHeading;\n\n const canvasRef = useRef<HTMLCanvasElement>(null);\n const requestRef = useRef<number | null>(null);\n const numSquaresX = useRef<number>(0);\n const numSquaresY = useRef<number>(0);\n const gridOffset = useRef<GridOffset>({ x: 0, y: 0 });\n const hoveredSquareRef = useRef<GridOffset | null>(null);\n\n useEffect(() => {\n const canvas = canvasRef.current;\n if (!canvas) return;\n const ctx = canvas.getContext(\"2d\");\n\n const resizeCanvas = () => {\n canvas.width = canvas.offsetWidth;\n canvas.height = canvas.offsetHeight;\n numSquaresX.current = Math.ceil(canvas.width / squareSize) + 1;\n numSquaresY.current = Math.ceil(canvas.height / squareSize) + 1;\n };\n\n window.addEventListener(\"resize\", resizeCanvas);\n resizeCanvas();\n\n const drawGrid = () => {\n if (!ctx) return;\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n\n const startX = Math.floor(gridOffset.current.x / squareSize) * squareSize;\n const startY = Math.floor(gridOffset.current.y / squareSize) * squareSize;\n\n for (let x = startX; x < canvas.width + squareSize; x += squareSize) {\n for (let y = startY; y < canvas.height + squareSize; y += squareSize) {\n const squareX = x - (gridOffset.current.x % squareSize);\n const squareY = y - (gridOffset.current.y % squareSize);\n\n if (\n hoveredSquareRef.current &&\n Math.floor((x - startX) / squareSize) === hoveredSquareRef.current.x &&\n Math.floor((y - startY) / squareSize) === hoveredSquareRef.current.y\n ) {\n ctx.fillStyle = hoverFillColor;\n ctx.fillRect(squareX, squareY, squareSize, squareSize);\n }\n\n ctx.strokeStyle = borderColor;\n ctx.strokeRect(squareX, squareY, squareSize, squareSize);\n }\n }\n\n const gradient = ctx.createRadialGradient(\n canvas.width / 2,\n canvas.height / 2,\n 0,\n canvas.width / 2,\n canvas.height / 2,\n Math.sqrt(canvas.width ** 2 + canvas.height ** 2) / 2,\n );\n gradient.addColorStop(0, \"rgba(0, 0, 0, 0)\");\n gradient.addColorStop(1, vignetteEdgeColor);\n\n ctx.fillStyle = gradient;\n ctx.fillRect(0, 0, canvas.width, canvas.height);\n };\n\n const updateAnimation = () => {\n const effectiveSpeed = Math.max(speed, 0.1);\n switch (direction) {\n case \"right\":\n gridOffset.current.x = (gridOffset.current.x - effectiveSpeed + squareSize) % squareSize;\n break;\n case \"left\":\n gridOffset.current.x = (gridOffset.current.x + effectiveSpeed + squareSize) % squareSize;\n break;\n case \"up\":\n gridOffset.current.y = (gridOffset.current.y + effectiveSpeed + squareSize) % squareSize;\n break;\n case \"down\":\n gridOffset.current.y = (gridOffset.current.y - effectiveSpeed + squareSize) % squareSize;\n break;\n case \"diagonal\":\n gridOffset.current.x = (gridOffset.current.x - effectiveSpeed + squareSize) % squareSize;\n gridOffset.current.y = (gridOffset.current.y - effectiveSpeed + squareSize) % squareSize;\n break;\n default:\n break;\n }\n\n drawGrid();\n requestRef.current = requestAnimationFrame(updateAnimation);\n };\n\n const handleMouseMove = (event: MouseEvent) => {\n const rect = canvas.getBoundingClientRect();\n const mouseX = event.clientX - rect.left;\n const mouseY = event.clientY - rect.top;\n\n const startX = Math.floor(gridOffset.current.x / squareSize) * squareSize;\n const startY = Math.floor(gridOffset.current.y / squareSize) * squareSize;\n\n const hoveredSquareX = Math.floor((mouseX + gridOffset.current.x - startX) / squareSize);\n const hoveredSquareY = Math.floor((mouseY + gridOffset.current.y - startY) / squareSize);\n\n if (!hoveredSquareRef.current || hoveredSquareRef.current.x !== hoveredSquareX || hoveredSquareRef.current.y !== hoveredSquareY) {\n hoveredSquareRef.current = { x: hoveredSquareX, y: hoveredSquareY };\n }\n };\n\n const handleMouseLeave = () => {\n hoveredSquareRef.current = null;\n };\n\n canvas.addEventListener(\"mousemove\", handleMouseMove);\n canvas.addEventListener(\"mouseleave\", handleMouseLeave);\n requestRef.current = requestAnimationFrame(updateAnimation);\n\n return () => {\n window.removeEventListener(\"resize\", resizeCanvas);\n if (requestRef.current) cancelAnimationFrame(requestRef.current);\n canvas.removeEventListener(\"mousemove\", handleMouseMove);\n canvas.removeEventListener(\"mouseleave\", handleMouseLeave);\n };\n }, [direction, speed, borderColor, hoverFillColor, squareSize, vignetteEdgeColor]);\n\n return <canvas ref={canvasRef} className={`${styles.squaresCanvas} ${className}`} style={style} />;\n};\n\nconst SquareBackground: React.FC<Omit<SquaresProps, \"borderColor\" | \"hoverFillColor\">> = (props) => {\n const { currentTheme } = useTheme();\n\n // 从主题中获取边框颜色\n const borderColor = useMemo(() => {\n const borderColorValue = currentTheme.colors.variables.border5 || currentTheme.colors.variables.fg || \"#6B7280\";\n if (borderColorValue.startsWith(\"#\")) {\n return borderColorValue;\n }\n const match = borderColorValue.match(/rgb\\((\\d+),\\s*(\\d+),\\s*(\\d+)\\)/);\n if (match) {\n const r = parseInt(match[1], 10).toString(16).padStart(2, \"0\");\n const g = parseInt(match[2], 10).toString(16).padStart(2, \"0\");\n const b = parseInt(match[3], 10).toString(16).padStart(2, \"0\");\n return `#${r}${g}${b}`;\n }\n return borderColorValue;\n }, [currentTheme]);\n\n // 从主题中获取悬停填充颜色\n const hoverFillColor = useMemo(() => {\n const baseColor = currentTheme.colors.variables.bg3 || currentTheme.colors.variables.border3 || \"#F3F4F6\";\n\n const darkenColor = (r: number, g: number, b: number, factor: number = 0.3) => {\n const newR = Math.round(r * (1 - factor));\n const newG = Math.round(g * (1 - factor));\n const newB = Math.round(b * (1 - factor));\n return `rgb(${newR}, ${newG}, ${newB})`;\n };\n\n if (baseColor.startsWith(\"#\")) {\n const hex = baseColor.slice(1);\n const r = parseInt(hex.slice(0, 2), 16);\n const g = parseInt(hex.slice(2, 4), 16);\n const b = parseInt(hex.slice(4, 6), 16);\n return darkenColor(r, g, b);\n }\n const match = baseColor.match(/rgb\\((\\d+),\\s*(\\d+),\\s*(\\d+)\\)/);\n if (match) {\n const r = parseInt(match[1], 10);\n const g = parseInt(match[2], 10);\n const b = parseInt(match[3], 10);\n return darkenColor(r, g, b);\n }\n return baseColor;\n }, [currentTheme]);\n\n return <Squares borderColor={borderColor} hoverFillColor={hoverFillColor} speed={0.5} squareSize={40} direction=\"diagonal\" {...props} />;\n};\n\nexport default SquareBackground;\n",".container {\n position: relative;\n width: 100%;\n height: 100%;\n background-color: var(--color-bg);\n overflow: hidden;\n}\n\n.canvas {\n display: block;\n width: 100%;\n height: 100%;\n}\n\n.outerVignette {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n background: radial-gradient(circle, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1) 100%);\n}\n\n.centerVignette {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n background: radial-gradient(circle, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);\n}\n","import { memo, useCallback, useEffect, useMemo, useRef } from \"react\";\n\nimport { useTheme } from \"@/themes/hooks/useTheme\";\n\nimport styles from \"./style.module.css\";\n\ninterface LetterGlitchProps {\n glitchColors?: string[];\n glitchSpeed?: number;\n centerVignette?: boolean;\n outerVignette?: boolean;\n smooth?: boolean;\n characters?: string;\n className?: string;\n style?: React.CSSProperties;\n}\n\nconst LetterGlitch = memo(\n ({\n glitchColors = [\"#7F1D1D\", \"#16A34A\", \"#2563EB\"],\n glitchSpeed = 500, // 增加默认速度,减少更新频率\n centerVignette = false,\n outerVignette = true,\n smooth = true,\n characters = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$&*()-_+=/[]{};:<>.,0123456789\",\n className = \"\",\n style = {},\n }: LetterGlitchProps) => {\n const canvasRef = useRef<HTMLCanvasElement | null>(null);\n const animationRef = useRef<number | null>(null);\n const letters = useRef<\n {\n char: string;\n color: string;\n targetColor: string;\n colorProgress: number;\n }[]\n >([]);\n const grid = useRef({ columns: 0, rows: 0 });\n const context = useRef<CanvasRenderingContext2D | null>(null);\n const lastGlitchTime = useRef(Date.now());\n\n const lettersAndSymbols = useMemo(() => Array.from(characters), [characters]);\n\n // 缓存 hexToRgb 结果\n const rgbCache = useRef<Map<string, { r: number; g: number; b: number } | null>>(new Map());\n\n const fontSize = 16;\n const charWidth = 10;\n const charHeight = 20;\n\n const getRandomChar = useCallback(() => {\n return lettersAndSymbols[Math.floor(Math.random() * lettersAndSymbols.length)];\n }, [lettersAndSymbols]);\n\n const getRandomColor = useCallback(() => {\n return glitchColors[Math.floor(Math.random() * glitchColors.length)];\n }, [glitchColors]);\n\n const hexToRgb = useCallback((hex: string) => {\n // 检查缓存\n if (rgbCache.current.has(hex)) {\n return rgbCache.current.get(hex)!;\n }\n\n const shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n const normalizedHex = hex.replace(shorthandRegex, (_m, r, g, b) => {\n return r + r + g + g + b + b;\n });\n\n const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(normalizedHex);\n const rgb = result\n ? {\n r: parseInt(result[1], 16),\n g: parseInt(result[2], 16),\n b: parseInt(result[3], 16),\n }\n : null;\n\n // 缓存结果\n rgbCache.current.set(hex, rgb);\n return rgb;\n }, []);\n\n const interpolateColor = (start: { r: number; g: number; b: number }, end: { r: number; g: number; b: number }, factor: number) => {\n const result = {\n r: Math.round(start.r + (end.r - start.r) * factor),\n g: Math.round(start.g + (end.g - start.g) * factor),\n b: Math.round(start.b + (end.b - start.b) * factor),\n };\n return `rgb(${result.r}, ${result.g}, ${result.b})`;\n };\n\n const calculateGrid = (width: number, height: number) => {\n const columns = Math.ceil(width / charWidth);\n const rows = Math.ceil(height / charHeight);\n return { columns, rows };\n };\n\n const initializeLetters = (columns: number, rows: number) => {\n grid.current = { columns, rows };\n const totalLetters = columns * rows;\n letters.current = Array.from({ length: totalLetters }, () => ({\n char: getRandomChar(),\n color: getRandomColor(),\n targetColor: getRandomColor(),\n colorProgress: 1,\n }));\n };\n\n const resizeCanvas = () => {\n const canvas = canvasRef.current;\n if (!canvas) return;\n const parent = canvas.parentElement;\n if (!parent) return;\n\n const dpr = window.devicePixelRatio || 1;\n const rect = parent.getBoundingClientRect();\n\n canvas.width = rect.width * dpr;\n canvas.height = rect.height * dpr;\n\n canvas.style.width = `${rect.width}px`;\n canvas.style.height = `${rect.height}px`;\n\n if (context.current) {\n context.current.setTransform(dpr, 0, 0, dpr, 0, 0);\n }\n\n const { columns, rows } = calculateGrid(rect.width, rect.height);\n initializeLetters(columns, rows);\n drawLetters();\n };\n\n const drawLetters = useCallback(() => {\n if (!context.current || letters.current.length === 0) return;\n const ctx = context.current;\n const canvas = canvasRef.current;\n if (!canvas) return;\n\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n ctx.font = `${fontSize}px monospace`;\n ctx.textBaseline = \"top\";\n ctx.textAlign = \"left\";\n\n // 批量绘制,减少状态切换\n letters.current.forEach((letter, index) => {\n const x = (index % grid.current.columns) * charWidth;\n const y = Math.floor(index / grid.current.columns) * charHeight;\n ctx.fillStyle = letter.color;\n ctx.fillText(letter.char, x, y);\n });\n }, []);\n\n const updateLetters = useCallback(() => {\n if (!letters.current || letters.current.length === 0) return;\n\n // 减少更新比例,从 5% 降到 2%,降低性能消耗\n const updateCount = Math.max(1, Math.floor(letters.current.length * 0.02));\n\n for (let i = 0; i < updateCount; i++) {\n const index = Math.floor(Math.random() * letters.current.length);\n if (!letters.current[index]) continue;\n\n letters.current[index].char = getRandomChar();\n letters.current[index].targetColor = getRandomColor();\n\n if (!smooth) {\n letters.current[index].color = letters.current[index].targetColor;\n letters.current[index].colorProgress = 1;\n } else {\n letters.current[index].colorProgress = 0;\n }\n }\n }, [getRandomChar, getRandomColor, smooth]);\n\n const handleSmoothTransitions = useCallback(() => {\n let needsRedraw = false;\n let activeCount = 0;\n\n // 只处理正在过渡的字母,减少不必要的计算\n letters.current.forEach((letter) => {\n if (letter.colorProgress < 1) {\n activeCount++;\n letter.colorProgress += 0.03; // 稍微降低过渡速度,减少重绘频率\n if (letter.colorProgress > 1) letter.colorProgress = 1;\n\n const startRgb = hexToRgb(letter.color);\n const endRgb = hexToRgb(letter.targetColor);\n if (startRgb && endRgb) {\n letter.color = interpolateColor(startRgb, endRgb, letter.colorProgress);\n needsRedraw = true;\n }\n }\n });\n\n // 只有在有活动过渡时才重绘\n if (needsRedraw && activeCount > 0) {\n drawLetters();\n }\n }, [hexToRgb, drawLetters]);\n\n const animate = useCallback(() => {\n const now = Date.now();\n const timeSinceLastGlitch = now - lastGlitchTime.current;\n\n // 只在需要更新时才执行\n if (timeSinceLastGlitch >= glitchSpeed) {\n updateLetters();\n drawLetters();\n lastGlitchTime.current = now;\n } else if (smooth) {\n // 只在平滑模式下才检查过渡\n handleSmoothTransitions();\n }\n\n animationRef.current = requestAnimationFrame(animate);\n }, [glitchSpeed, smooth, updateLetters, handleSmoothTransitions]);\n\n useEffect(() => {\n const canvas = canvasRef.current;\n if (!canvas) return;\n\n context.current = canvas.getContext(\"2d\");\n resizeCanvas();\n animate();\n\n let resizeTimeout: ReturnType<typeof setTimeout>;\n\n const handleResize = () => {\n clearTimeout(resizeTimeout);\n resizeTimeout = setTimeout(() => {\n if (animationRef.current) {\n cancelAnimationFrame(animationRef.current);\n }\n resizeCanvas();\n animate();\n }, 100);\n };\n\n window.addEventListener(\"resize\", handleResize);\n\n return () => {\n if (animationRef.current) {\n cancelAnimationFrame(animationRef.current);\n }\n window.removeEventListener(\"resize\", handleResize);\n clearTimeout(resizeTimeout);\n // 清理缓存\n rgbCache.current.clear();\n };\n }, [glitchSpeed, smooth, glitchColors, animate]);\n\n return (\n <div className={`${styles.container} ${className}`} style={style}>\n <canvas ref={canvasRef} className={styles.canvas} />\n {outerVignette && <div className={styles.outerVignette}></div>}\n {centerVignette && <div className={styles.centerVignette}></div>}\n </div>\n );\n },\n);\n\nconst LetterGlitchBackground: React.FC<Omit<LetterGlitchProps, \"glitchColors\">> = memo((props) => {\n const { currentTheme } = useTheme();\n\n // 从主题中获取故障颜色数组\n const glitchColors = useMemo(() => {\n const primary = currentTheme.colors.variables.primary || \"#DC2626\";\n const info = currentTheme.colors.variables.info || \"#2563EB\";\n const success = currentTheme.colors.variables.success || \"#16A34A\";\n\n const toHex = (color: string): string => {\n if (color.startsWith(\"#\")) {\n return color;\n }\n const match = color.match(/rgb\\((\\d+),\\s*(\\d+),\\s*(\\d+)\\)/);\n if (match) {\n const r = parseInt(match[1], 10).toString(16).padStart(2, \"0\");\n const g = parseInt(match[2], 10).toString(16).padStart(2, \"0\");\n const b = parseInt(match[3], 10).toString(16).padStart(2, \"0\");\n return `#${r}${g}${b}`;\n }\n return color;\n };\n\n return [toHex(primary), toHex(info), toHex(success)];\n }, [currentTheme]);\n\n return (\n <LetterGlitch\n glitchColors={glitchColors}\n glitchSpeed={300} // 增加默认速度,减少更新频率\n centerVignette={true}\n outerVignette={false}\n smooth={true}\n {...props}\n />\n );\n});\n\nLetterGlitchBackground.displayName = \"LetterGlitchBackground\";\n\nexport default LetterGlitchB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W,UACnD,EAAO,EAAa,OAAO,UAAU,MAAQ,UAC7C,EAAU,EAAa,OAAO,UAAU,SAAW,UAEnD,EAAS,GAA0B,CACvC,GAAI,EAAM,WAAW,GAAG,EACtB,OAAO,EAET,MAAM,EAAQ,EAAM,MAAM,gCAAgC,EAC1D,OAAI,EAIK,IAHG,SAAS,EAAM,CAAA,EAAI,EAAE,EAAE,SAAS,EAAE,EAAE,SAAS,EAAG,GAG/C,CAAA,GAFD,SAAS,EAAM,CAAA,EAAI,EAAE,EAAE,SAAS,EAAE,EAAE,SAAS,EAAG,GAE3C,CAAA,GADL,SAAS,EAAM,CAAA,EAAI,EAAE,EAAE,SAAS,EAAE,EAAE,SAAS,EAAG,GACvC,CAAA,GAEd,CACT,EAEA,MAAO,CAAC,EAAM,CAAO,EAAG,EAAM,CAAI,EAAG,EAAM,CAAO,CAAC,CACrD,EAAG,CAAC,CAAY,CAIE,EACd,YAAa,IACb,eAAgB,GAChB,cAAe,GACf,OAAQ,GACR,GAAI,CACL,CAAA,CAEL,CAAC,EAED,GAAuB,YAAc"}
@@ -1 +0,0 @@
1
- var b=Object.create,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,v=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,f=(e,r)=>{let t={};for(var a in e)u(t,a,{get:e[a],enumerable:!0});return r||u(t,Symbol.toStringTag,{value:"Module"}),t},g=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(var o=O(r),_=0,l=o.length,n;_<l;_++)n=o[_],!P.call(e,n)&&n!==t&&u(e,n,{get:(p=>r[p]).bind(null,n),enumerable:!(a=c(r,n))||a.enumerable});return e},i=(e,r,t)=>(t=e!=null?b(v(e)):{},g(r||!e||!e.__esModule?u(t,"default",{value:e,enumerable:!0}):t,e));Object.defineProperty(exports,"__exportAll",{enumerable:!0,get:function(){return f}});Object.defineProperty(exports,"__toESM",{enumerable:!0,get:function(){return i}});
@@ -1,3 +0,0 @@
1
- const _=require("./chunk-chunk-D-Fg7nx1.cjs"),s=require("./chunk-lstorage-_yGQsIQ9.cjs"),e=require("./chunk-language-2r4uKROB.cjs");let a=require("i18next");a=_.__toESM(a,1);let g=require("i18next-browser-languagedetector");g=_.__toESM(g,1);let P=require("react-i18next");var O={show:"Show Sidebar",hide:"Hide Sidebar"},G={layoutSwitcher:O},U={en:"English",zh:"Chinese",fr:"French"},$={languageSwitcher:U},R={default:"Default",ios:"iOS",android:"Android",windows:"Windows",linux:"Linux"},M={theme:"Theme",language:"Language",layout:"Layout",preferences:"Preferences"},x={baseSwitcher:R,preference:M},q={default:"Default",light:"Light",dark:"Dark",cosmic:"Cosmic",corporate:"Corporate",forest:"Forest",coffee:"Coffee",wine:"Wine",wheat:"Wheat"},F={themeSwitcher:q},j={show:"Afficher la barre latérale",hide:"Masquer la barre latérale"},k={layoutSwitcher:j},T={en:"Anglais",zh:"Chinois",fr:"Français"},D={languageSwitcher:T},I={default:"Par défaut",ios:"iOS",android:"Android",windows:"Windows",linux:"Linux"},V={theme:"Thème",language:"Langue",layout:"Disposition",preferences:"Préférences"},z={baseSwitcher:I,preference:V},B={default:"Par défaut",light:"Clair",dark:"Sombre",cosmic:"Cosmique",corporate:"Entreprise",forest:"Forêt",coffee:"Coffee",wine:"Vin",wheat:"Blé"},W={themeSwitcher:B},X={show:"显示侧边栏",hide:"隐藏侧边栏"},K={layoutSwitcher:X},Y={en:"英语",zh:"中文",fr:"法语"},H={languageSwitcher:Y},Z={default:"默认",ios:"iOS",android:"Android",windows:"Windows",linux:"Linux"},J={theme:"主题",language:"语言",layout:"布局",preferences:"偏好设置"},Q={baseSwitcher:Z,preference:J},ee={default:"默认",light:"浅色",dark:"深色",cosmic:"宇宙",corporate:"企业",forest:"森林",coffee:"咖啡",wine:"酒红",wheat:"麦田"},re={themeSwitcher:ee},m=["theme","language","layout","preference"],p={theme:"theme",language:"language",layout:"layout",preference:"preference"},te={en:{theme:F,language:$,layout:G,preference:x},zh:{theme:re,language:H,layout:K,preference:Q},fr:{theme:W,language:D,layout:k,preference:z}};function w(){return{RESOURCES:te,NAME_SPACES_MAP:p,NAME_SPACES:[...m]}}function L(){const r=s.getItem(e.LANGUAGE_STORAGE_KEY);return r==null||e.LANGUAGE_VALUES.includes(r)?r:void 0}function v(r){s.setItem(e.LANGUAGE_STORAGE_KEY,r)}function ae(){s.removeItem(e.LANGUAGE_STORAGE_KEY)}var A=!1;function ne(r){if(a.default.isInitialized)return;const d=w(),c=r.bundles,i=r.fallbackLng??e.LanguageEnum.ZH,b=[e.LanguageEnum.EN,e.LanguageEnum.ZH,e.LanguageEnum.FR].reduce((n,t)=>({...n,[t]:{...d.RESOURCES[t]??{},...c.RESOURCES[t]??{}}}),{}),S=[...c.NAME_SPACES,...d.NAME_SPACES.filter(n=>!c.NAME_SPACES.includes(n))],y=L()??i,N=n=>{const t=n.split("-")[0]?.toLowerCase()??"";e.LANGUAGE_VALUES.includes(t)&&v(t)};A||(a.default.on("languageChanged",N),A=!0),a.default.use(g.default).use(P.initReactI18next).init({compatibilityJSON:"v4",resources:b,lng:y,fallbackLng:i,supportedLngs:[...e.LANGUAGE_VALUES],load:"languageOnly",ns:S,defaultNS:S[0],interpolation:{escapeValue:!1},keySeparator:".",detection:{order:["localStorage","navigator","htmlTag","path","subdomain"],lookupLocalStorage:e.LANGUAGE_STORAGE_KEY,caches:["localStorage"]}});const h=r.onLoadExtraBundles;if(h){const n=u=>{const o=u.split("-")[0]?.toLowerCase()??"";return e.LANGUAGE_VALUES.includes(o)?o:i},t=async u=>{const o=n(u),l=await h(o);if(l==null)return;const C=Array.isArray(l)?l:[l];for(const{namespace:E,bundle:f}of C)E&&f&&typeof f=="object"&&a.default.addResourceBundle(o,E,f,!0,!0)};t(a.default.language||i),a.default.on("languageChanged",u=>{t(u)})}}var ue=a.default;Object.defineProperty(exports,"NFX_NAMESPACES",{enumerable:!0,get:function(){return m}});Object.defineProperty(exports,"NFX_NAMESPACES_MAP",{enumerable:!0,get:function(){return p}});Object.defineProperty(exports,"getDefaultNfxBundles",{enumerable:!0,get:function(){return w}});Object.defineProperty(exports,"getLanguageStorage",{enumerable:!0,get:function(){return L}});Object.defineProperty(exports,"i18n_default",{enumerable:!0,get:function(){return ue}});Object.defineProperty(exports,"initI18n",{enumerable:!0,get:function(){return ne}});Object.defineProperty(exports,"removeLanguageStorage",{enumerable:!0,get:function(){return ae}});Object.defineProperty(exports,"setLanguageStorage",{enumerable:!0,get:function(){return v}});
2
-
3
- //# sourceMappingURL=chunk-i18n-2-xL4pEi.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chunk-i18n-2-xL4pEi.cjs","names":[],"sources":["../src/languages/resources/en/layout.json","../src/languages/resources/en/language.json","../src/languages/resources/en/preference.json","../src/languages/resources/en/theme.json","../src/languages/resources/fr/layout.json","../src/languages/resources/fr/language.json","../src/languages/resources/fr/preference.json","../src/languages/resources/fr/theme.json","../src/languages/resources/zh/layout.json","../src/languages/resources/zh/language.json","../src/languages/resources/zh/preference.json","../src/languages/resources/zh/theme.json","../src/languages/resources/index.ts","../src/languages/utils/languageStorage.ts","../src/languages/languages/i18n.ts"],"sourcesContent":["{\n \"layoutSwitcher\": {\n \"show\": \"Show Sidebar\",\n \"hide\": \"Hide Sidebar\"\n }\n}\n","{\n \"languageSwitcher\": {\n \"en\": \"English\",\n \"zh\": \"Chinese\",\n \"fr\": \"French\"\n }\n}\n","{\n \"baseSwitcher\": {\n \"default\": \"Default\",\n \"ios\": \"iOS\",\n \"android\": \"Android\",\n \"windows\": \"Windows\",\n \"linux\": \"Linux\"\n },\n \"preference\": {\n \"theme\": \"Theme\",\n \"language\": \"Language\",\n \"layout\": \"Layout\",\n \"preferences\": \"Preferences\"\n }\n}\n","{\n \"themeSwitcher\": {\n \"default\": \"Default\",\n \"light\": \"Light\",\n \"dark\": \"Dark\",\n \"cosmic\": \"Cosmic\",\n \"corporate\": \"Corporate\",\n \"forest\": \"Forest\",\n \"coffee\": \"Coffee\",\n \"wine\": \"Wine\",\n \"wheat\": \"Wheat\"\n }\n}\n","{\n \"layoutSwitcher\": {\n \"show\": \"Afficher la barre latérale\",\n \"hide\": \"Masquer la barre latérale\"\n }\n}\n","{\n \"languageSwitcher\": {\n \"en\": \"Anglais\",\n \"zh\": \"Chinois\",\n \"fr\": \"Français\"\n }\n}\n","{\n \"baseSwitcher\": {\n \"default\": \"Par défaut\",\n \"ios\": \"iOS\",\n \"android\": \"Android\",\n \"windows\": \"Windows\",\n \"linux\": \"Linux\"\n },\n \"preference\": {\n \"theme\": \"Thème\",\n \"language\": \"Langue\",\n \"layout\": \"Disposition\",\n \"preferences\": \"Préférences\"\n }\n}\n","{\n \"themeSwitcher\": {\n \"default\": \"Par défaut\",\n \"light\": \"Clair\",\n \"dark\": \"Sombre\",\n \"cosmic\": \"Cosmique\",\n \"corporate\": \"Entreprise\",\n \"forest\": \"Forêt\",\n \"coffee\": \"Coffee\",\n \"wine\": \"Vin\",\n \"wheat\": \"Blé\"\n }\n}\n","{\n \"layoutSwitcher\": {\n \"show\": \"显示侧边栏\",\n \"hide\": \"隐藏侧边栏\"\n }\n}\n","{\n \"languageSwitcher\": {\n \"en\": \"英语\",\n \"zh\": \"中文\",\n \"fr\": \"法语\"\n }\n}\n","{\n \"baseSwitcher\": {\n \"default\": \"默认\",\n \"ios\": \"iOS\",\n \"android\": \"Android\",\n \"windows\": \"Windows\",\n \"linux\": \"Linux\"\n },\n \"preference\": {\n \"theme\": \"主题\",\n \"language\": \"语言\",\n \"layout\": \"布局\",\n \"preferences\": \"偏好设置\"\n }\n}\n","{\n \"themeSwitcher\": {\n \"default\": \"默认\",\n \"light\": \"浅色\",\n \"dark\": \"深色\",\n \"cosmic\": \"宇宙\",\n \"corporate\": \"企业\",\n \"forest\": \"森林\",\n \"coffee\": \"咖啡\",\n \"wine\": \"酒红\",\n \"wheat\": \"麦田\"\n }\n}\n","/**\n * NFX-UI 内置多语言资源:theme / language / layout / preference 四个命名空间,en / zh / fr 三种语言。\n * Built-in i18n resources: namespaces theme, language, layout, preference; languages en, zh, fr.\n *\n * 使用方可在 createI18nResources 时合并此资源,使 ThemeSwitcher / LanguageSwitcher / LayoutSwitcher 使用默认翻译。\n * Consumers can merge these resources in createI18nResources so switchers use default labels.\n */\nimport type { CreateI18nResourcesResult, NameSpacesMap, Resources } from \"../types\";\n\nimport enLayout from \"./en/layout.json\";\nimport enLanguage from \"./en/language.json\";\nimport enPreference from \"./en/preference.json\";\nimport enTheme from \"./en/theme.json\";\nimport frLayout from \"./fr/layout.json\";\nimport frLanguage from \"./fr/language.json\";\nimport frPreference from \"./fr/preference.json\";\nimport frTheme from \"./fr/theme.json\";\nimport zhLayout from \"./zh/layout.json\";\nimport zhLanguage from \"./zh/language.json\";\nimport zhPreference from \"./zh/preference.json\";\nimport zhTheme from \"./zh/theme.json\";\n\nexport const NFX_NAMESPACES = [\"theme\", \"language\", \"layout\", \"preference\"] as const;\nexport const NFX_NAMESPACES_MAP: NameSpacesMap = {\n theme: \"theme\",\n language: \"language\",\n layout: \"layout\",\n preference: \"preference\",\n};\n\nconst DEFAULT_NFX_RESOURCES: Resources = {\n en: {\n theme: enTheme as Record<string, unknown>,\n language: enLanguage as Record<string, unknown>,\n layout: enLayout as Record<string, unknown>,\n preference: enPreference as Record<string, unknown>,\n },\n zh: {\n theme: zhTheme as Record<string, unknown>,\n language: zhLanguage as Record<string, unknown>,\n layout: zhLayout as Record<string, unknown>,\n preference: zhPreference as Record<string, unknown>,\n },\n fr: {\n theme: frTheme as Record<string, unknown>,\n language: frLanguage as Record<string, unknown>,\n layout: frLayout as Record<string, unknown>,\n preference: frPreference as Record<string, unknown>,\n },\n};\n\n/**\n * 返回 NFX-UI 默认文案包,可与使用方自建 resources 合并后传入 createI18nResources。\n * Returns default NFX bundles; merge with your resources and pass to createI18nResources.\n */\nexport function getDefaultNfxBundles(): CreateI18nResourcesResult {\n return {\n RESOURCES: DEFAULT_NFX_RESOURCES,\n NAME_SPACES_MAP: NFX_NAMESPACES_MAP,\n NAME_SPACES: [...NFX_NAMESPACES],\n };\n}\n","/**\n * 语言相关 localStorage 读写与移除,统一走 utils/lstorage;读写类型为 LanguageEnum。\n * Language localStorage get/set/remove via utils/lstorage; typed as LanguageEnum.\n */\nimport type { Nilable } from \"@/types/utils\";\nimport { getItem, removeItem, setItem } from \"@/utils/lstorage\";\n\nimport { LANGUAGE_STORAGE_KEY, LANGUAGE_VALUES, LanguageEnum } from \"../types\";\n\nexport function getLanguageStorage(): Nilable<LanguageEnum> {\n const raw = getItem(LANGUAGE_STORAGE_KEY);\n if (raw == null) return raw;\n return (LANGUAGE_VALUES as readonly string[]).includes(raw) ? (raw as LanguageEnum) : undefined;\n}\n\nexport function setLanguageStorage(value: LanguageEnum): void {\n setItem(LANGUAGE_STORAGE_KEY, value);\n}\n\nexport function removeLanguageStorage(): void {\n removeItem(LANGUAGE_STORAGE_KEY);\n}\n","/**\n * i18n 初始化与实例:initI18n 由 LanguageProvider 调用,changeLanguage 供外部切换语言。\n * 默认会合并 NFX-UI 自带的 theme / language / layout / preference 四个命名空间,使用方只需传入自己的 bundles。\n * i18n init and instance: initI18n called by LanguageProvider. Merges built-in theme/language/layout/preference by default.\n */\nimport type { InitI18nOptions } from \"../types\";\n\nimport i18n from \"i18next\";\nimport LanguageDetector from \"i18next-browser-languagedetector\";\nimport { initReactI18next } from \"react-i18next\";\n\nimport { getDefaultNfxBundles } from \"../resources\";\nimport { LanguageEnum, LANGUAGE_STORAGE_KEY, LANGUAGE_VALUES } from \"../types\";\nimport { getLanguageStorage, setLanguageStorage } from \"../utils/languageStorage\";\n\nlet languagePersistAttached = false;\n\n/**\n * 初始化 i18n。会先合并 NFX-UI 自带的四类 JSON(theme/language/layout/preference),再与用户传入的 bundles 合并(用户可覆盖)。\n * Init i18n. Merges built-in NFX bundles (theme, language, layout, preference) with user bundles (user overrides).\n */\nexport function initI18n(options: InitI18nOptions): void {\n /** React StrictMode remounts the provider; i18next 原单例二次 init 会弄乱资源。 */\n if (i18n.isInitialized) {\n return;\n }\n\n const nfx = getDefaultNfxBundles();\n const user = options.bundles;\n const fallbackLng = options.fallbackLng ?? LanguageEnum.ZH;\n\n const RESOURCES = ([LanguageEnum.EN, LanguageEnum.ZH, LanguageEnum.FR] as const).reduce(\n (acc, lang) => ({\n ...acc,\n [lang]: {\n ...(nfx.RESOURCES[lang] ?? {}),\n ...(user.RESOURCES[lang] ?? {}),\n },\n }),\n {} as typeof user.RESOURCES,\n );\n const NAME_SPACES = [...user.NAME_SPACES, ...nfx.NAME_SPACES.filter((n) => !user.NAME_SPACES.includes(n))];\n\n /** Same key as `lookupLocalStorage`: prefer saved choice before navigator. */\n const initialLng = getLanguageStorage() ?? fallbackLng;\n\n const persistLanguage = (lng: string) => {\n const base = lng.split(\"-\")[0]?.toLowerCase() ?? \"\";\n if ((LANGUAGE_VALUES as readonly string[]).includes(base)) {\n setLanguageStorage(base as LanguageEnum);\n }\n };\n\n if (!languagePersistAttached) {\n i18n.on(\"languageChanged\", persistLanguage);\n languagePersistAttached = true;\n }\n\n i18n\n .use(LanguageDetector)\n .use(initReactI18next)\n .init({\n compatibilityJSON: \"v4\",\n resources: RESOURCES,\n lng: initialLng,\n fallbackLng,\n /**\n * 资源只注册 en/zh/fr;.detector 或浏览器会给出 zh-CN、en-US 等,若不收敛则整语言匹配失败 → 界面全是 key。\n * Bundles are only `en` / `zh` / `fr`; normalize regional codes so namespaces resolve.\n */\n supportedLngs: [...LANGUAGE_VALUES],\n load: \"languageOnly\",\n ns: NAME_SPACES,\n defaultNS: NAME_SPACES[0],\n interpolation: { escapeValue: false },\n keySeparator: \".\",\n /**\n * Detector walks `order` and concatenates hits; first candidate wins for resolution.\n * `lookupLocalStorage` must match `getLanguageStorage` / `setLanguageStorage` (LANGUAGE_STORAGE_KEY).\n * Explicit `lng: initialLng` above mirrors that rule so behavior is obvious without reading plugin internals.\n */\n detection: {\n order: [\"localStorage\", \"navigator\", \"htmlTag\", \"path\", \"subdomain\"],\n lookupLocalStorage: LANGUAGE_STORAGE_KEY,\n caches: [\"localStorage\"],\n },\n });\n\n const onLoad = options.onLoadExtraBundles;\n if (onLoad) {\n const toSupported = (lng: string): LanguageEnum => {\n const base = lng.split(\"-\")[0]?.toLowerCase() ?? \"\";\n return (LANGUAGE_VALUES as readonly string[]).includes(base) ? (base as LanguageEnum) : fallbackLng;\n };\n const apply = async (lng: string) => {\n const code = toSupported(lng);\n const result = await onLoad(code);\n if (result == null) return;\n const items = Array.isArray(result) ? result : [result];\n for (const { namespace, bundle } of items) {\n if (namespace && bundle && typeof bundle === \"object\") {\n i18n.addResourceBundle(code, namespace, bundle, true, true);\n }\n }\n };\n void apply(i18n.language || fallbackLng);\n i18n.on(\"languageChanged\", (lng) => void apply(lng));\n }\n}\n\nexport default i18n;\n"],"mappings":"+pDYsBa,EAAiB,CAAC,QAAS,WAAY,SAAU,YAAY,EAC7D,EAAoC,CAC/C,MAAO,QACP,SAAU,WACV,OAAQ,SACR,WAAY,YACd,EAEM,GAAmC,CACvC,GAAI,CACF,MAAO,EACP,SAAU,EACV,OAAQ,EACR,WAAY,CACd,EACA,GAAI,CACF,MAAO,GACP,SAAU,EACV,OAAQ,EACR,WAAY,CACd,EACA,GAAI,CACF,MAAO,EACP,SAAU,EACV,OAAQ,EACR,WAAY,CACd,CACF,EAMA,SAAgB,GAAkD,CAChE,MAAO,CACL,UAAW,GACX,gBAAiB,EACjB,YAAa,CAAC,GAAG,CAAc,CACjC,CACF,CCpDA,SAAgB,GAA4C,CAC1D,MAAM,EAAM,EAAA,QAAQ,EAAA,oBAAoB,EACxC,OAAI,GAAO,MACH,EAAA,gBAAsC,SAAS,CAAG,EADlC,EAC8D,MACxF,CAEA,SAAgB,EAAmB,EAA2B,CAC5D,EAAA,QAAQ,EAAA,qBAAsB,CAAK,CACrC,CAEA,SAAgB,IAA8B,CAC5C,EAAA,WAAW,EAAA,oBAAoB,CACjC,CCNA,IAAI,EAA0B,GAM9B,SAAgB,GAAS,EAAgC,CAEvD,G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AAI,EAAK,EAAwB,CAC1F,EACM,EAAQ,MAAO,GAAgB,CACnC,MAAM,EAAO,EAAY,CAAG,EACtB,EAAS,MAAM,EAAO,CAAI,EAChC,GAAI,GAAU,KAAM,OACpB,MAAM,EAAQ,MAAM,QAAQ,CAAM,EAAI,EAAS,CAAC,CAAM,EACtD,SAAW,CAAE,UAAA,EAAW,OAAA,CAAA,IAAY,EAC9B,GAAa,GAAU,OAAO,GAAW,UAC3C,EAAA,QAAK,kBAAkB,EAAM,EAAW,EAAQ,GAAM,EAAI,CAGhE,EACA,EAAW,EAAA,QAAK,UAAY,CAAW,EACvC,EAAA,QAAK,GAAG,kBAAoB,GAAA,CAAa,EAAM,CAAG,EAAC,CACrD,CACF,CAEA,IAAA,GAAe,EAAA"}
@@ -1,214 +0,0 @@
1
- import { n as _, r as y, t as L } from "./chunk-lstorage-WwyI7gQN.mjs";
2
- import { i as l, n as c, r as s } from "./chunk-language-JRs5UIa2.mjs";
3
- import t from "i18next";
4
- import C from "i18next-browser-languagedetector";
5
- import { initReactI18next as b } from "react-i18next";
6
- var $ = {
7
- show: "Show Sidebar",
8
- hide: "Hide Sidebar"
9
- }, N = { layoutSwitcher: $ }, P = {
10
- en: "English",
11
- zh: "Chinese",
12
- fr: "French"
13
- }, R = { languageSwitcher: P }, x = {
14
- default: "Default",
15
- ios: "iOS",
16
- android: "Android",
17
- windows: "Windows",
18
- linux: "Linux"
19
- }, M = {
20
- theme: "Theme",
21
- language: "Language",
22
- layout: "Layout",
23
- preferences: "Preferences"
24
- }, O = {
25
- baseSwitcher: x,
26
- preference: M
27
- }, F = {
28
- default: "Default",
29
- light: "Light",
30
- dark: "Dark",
31
- cosmic: "Cosmic",
32
- corporate: "Corporate",
33
- forest: "Forest",
34
- coffee: "Coffee",
35
- wine: "Wine",
36
- wheat: "Wheat"
37
- }, U = { themeSwitcher: F }, k = {
38
- show: "Afficher la barre latérale",
39
- hide: "Masquer la barre latérale"
40
- }, D = { layoutSwitcher: k }, I = {
41
- en: "Anglais",
42
- zh: "Chinois",
43
- fr: "Français"
44
- }, z = { languageSwitcher: I }, G = {
45
- default: "Par défaut",
46
- ios: "iOS",
47
- android: "Android",
48
- windows: "Windows",
49
- linux: "Linux"
50
- }, T = {
51
- theme: "Thème",
52
- language: "Langue",
53
- layout: "Disposition",
54
- preferences: "Préférences"
55
- }, W = {
56
- baseSwitcher: G,
57
- preference: T
58
- }, B = {
59
- default: "Par défaut",
60
- light: "Clair",
61
- dark: "Sombre",
62
- cosmic: "Cosmique",
63
- corporate: "Entreprise",
64
- forest: "Forêt",
65
- coffee: "Coffee",
66
- wine: "Vin",
67
- wheat: "Blé"
68
- }, H = { themeSwitcher: B }, V = {
69
- show: "显示侧边栏",
70
- hide: "隐藏侧边栏"
71
- }, X = { layoutSwitcher: V }, q = {
72
- en: "英语",
73
- zh: "中文",
74
- fr: "法语"
75
- }, Z = { languageSwitcher: q }, j = {
76
- default: "默认",
77
- ios: "iOS",
78
- android: "Android",
79
- windows: "Windows",
80
- linux: "Linux"
81
- }, J = {
82
- theme: "主题",
83
- language: "语言",
84
- layout: "布局",
85
- preferences: "偏好设置"
86
- }, K = {
87
- baseSwitcher: j,
88
- preference: J
89
- }, Y = {
90
- default: "默认",
91
- light: "浅色",
92
- dark: "深色",
93
- cosmic: "宇宙",
94
- corporate: "企业",
95
- forest: "森林",
96
- coffee: "咖啡",
97
- wine: "酒红",
98
- wheat: "麦田"
99
- }, Q = { themeSwitcher: Y }, ee = [
100
- "theme",
101
- "language",
102
- "layout",
103
- "preference"
104
- ], ae = {
105
- theme: "theme",
106
- language: "language",
107
- layout: "layout",
108
- preference: "preference"
109
- }, re = {
110
- en: {
111
- theme: U,
112
- language: R,
113
- layout: N,
114
- preference: O
115
- },
116
- zh: {
117
- theme: Q,
118
- language: Z,
119
- layout: X,
120
- preference: K
121
- },
122
- fr: {
123
- theme: H,
124
- language: z,
125
- layout: D,
126
- preference: W
127
- }
128
- };
129
- function te() {
130
- return {
131
- RESOURCES: re,
132
- NAME_SPACES_MAP: ae,
133
- NAME_SPACES: [...ee]
134
- };
135
- }
136
- function ne() {
137
- const e = L(c);
138
- return e == null || s.includes(e) ? e : void 0;
139
- }
140
- function oe(e) {
141
- y(c, e);
142
- }
143
- function fe() {
144
- _(c);
145
- }
146
- var p = !1;
147
- function ge(e) {
148
- if (t.isInitialized) return;
149
- const d = te(), f = e.bundles, i = e.fallbackLng ?? l.ZH, w = [
150
- l.EN,
151
- l.ZH,
152
- l.FR
153
- ].reduce((r, a) => ({
154
- ...r,
155
- [a]: {
156
- ...d.RESOURCES[a] ?? {},
157
- ...f.RESOURCES[a] ?? {}
158
- }
159
- }), {}), h = [...f.NAME_SPACES, ...d.NAME_SPACES.filter((r) => !f.NAME_SPACES.includes(r))], v = ne() ?? i, E = (r) => {
160
- const a = r.split("-")[0]?.toLowerCase() ?? "";
161
- s.includes(a) && oe(a);
162
- };
163
- p || (t.on("languageChanged", E), p = !0), t.use(C).use(b).init({
164
- compatibilityJSON: "v4",
165
- resources: w,
166
- lng: v,
167
- fallbackLng: i,
168
- supportedLngs: [...s],
169
- load: "languageOnly",
170
- ns: h,
171
- defaultNS: h[0],
172
- interpolation: { escapeValue: !1 },
173
- keySeparator: ".",
174
- detection: {
175
- order: [
176
- "localStorage",
177
- "navigator",
178
- "htmlTag",
179
- "path",
180
- "subdomain"
181
- ],
182
- lookupLocalStorage: c,
183
- caches: ["localStorage"]
184
- }
185
- });
186
- const S = e.onLoadExtraBundles;
187
- if (S) {
188
- const r = (n) => {
189
- const o = n.split("-")[0]?.toLowerCase() ?? "";
190
- return s.includes(o) ? o : i;
191
- }, a = async (n) => {
192
- const o = r(n), u = await S(o);
193
- if (u == null) return;
194
- const A = Array.isArray(u) ? u : [u];
195
- for (const { namespace: m, bundle: g } of A) m && g && typeof g == "object" && t.addResourceBundle(o, m, g, !0, !0);
196
- };
197
- a(t.language || i), t.on("languageChanged", (n) => {
198
- a(n);
199
- });
200
- }
201
- }
202
- var de = t;
203
- export {
204
- oe as a,
205
- te as c,
206
- fe as i,
207
- ge as n,
208
- ee as o,
209
- ne as r,
210
- ae as s,
211
- de as t
212
- };
213
-
214
- //# sourceMappingURL=chunk-i18n-DgaoEbGL.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chunk-i18n-DgaoEbGL.mjs","names":[],"sources":["../src/languages/resources/en/layout.json","../src/languages/resources/en/language.json","../src/languages/resources/en/preference.json","../src/languages/resources/en/theme.json","../src/languages/resources/fr/layout.json","../src/languages/resources/fr/language.json","../src/languages/resources/fr/preference.json","../src/languages/resources/fr/theme.json","../src/languages/resources/zh/layout.json","../src/languages/resources/zh/language.json","../src/languages/resources/zh/preference.json","../src/languages/resources/zh/theme.json","../src/languages/resources/index.ts","../src/languages/utils/languageStorage.ts","../src/languages/languages/i18n.ts"],"sourcesContent":["{\n \"layoutSwitcher\": {\n \"show\": \"Show Sidebar\",\n \"hide\": \"Hide Sidebar\"\n }\n}\n","{\n \"languageSwitcher\": {\n \"en\": \"English\",\n \"zh\": \"Chinese\",\n \"fr\": \"French\"\n }\n}\n","{\n \"baseSwitcher\": {\n \"default\": \"Default\",\n \"ios\": \"iOS\",\n \"android\": \"Android\",\n \"windows\": \"Windows\",\n \"linux\": \"Linux\"\n },\n \"preference\": {\n \"theme\": \"Theme\",\n \"language\": \"Language\",\n \"layout\": \"Layout\",\n \"preferences\": \"Preferences\"\n }\n}\n","{\n \"themeSwitcher\": {\n \"default\": \"Default\",\n \"light\": \"Light\",\n \"dark\": \"Dark\",\n \"cosmic\": \"Cosmic\",\n \"corporate\": \"Corporate\",\n \"forest\": \"Forest\",\n \"coffee\": \"Coffee\",\n \"wine\": \"Wine\",\n \"wheat\": \"Wheat\"\n }\n}\n","{\n \"layoutSwitcher\": {\n \"show\": \"Afficher la barre latérale\",\n \"hide\": \"Masquer la barre latérale\"\n }\n}\n","{\n \"languageSwitcher\": {\n \"en\": \"Anglais\",\n \"zh\": \"Chinois\",\n \"fr\": \"Français\"\n }\n}\n","{\n \"baseSwitcher\": {\n \"default\": \"Par défaut\",\n \"ios\": \"iOS\",\n \"android\": \"Android\",\n \"windows\": \"Windows\",\n \"linux\": \"Linux\"\n },\n \"preference\": {\n \"theme\": \"Thème\",\n \"language\": \"Langue\",\n \"layout\": \"Disposition\",\n \"preferences\": \"Préférences\"\n }\n}\n","{\n \"themeSwitcher\": {\n \"default\": \"Par défaut\",\n \"light\": \"Clair\",\n \"dark\": \"Sombre\",\n \"cosmic\": \"Cosmique\",\n \"corporate\": \"Entreprise\",\n \"forest\": \"Forêt\",\n \"coffee\": \"Coffee\",\n \"wine\": \"Vin\",\n \"wheat\": \"Blé\"\n }\n}\n","{\n \"layoutSwitcher\": {\n \"show\": \"显示侧边栏\",\n \"hide\": \"隐藏侧边栏\"\n }\n}\n","{\n \"languageSwitcher\": {\n \"en\": \"英语\",\n \"zh\": \"中文\",\n \"fr\": \"法语\"\n }\n}\n","{\n \"baseSwitcher\": {\n \"default\": \"默认\",\n \"ios\": \"iOS\",\n \"android\": \"Android\",\n \"windows\": \"Windows\",\n \"linux\": \"Linux\"\n },\n \"preference\": {\n \"theme\": \"主题\",\n \"language\": \"语言\",\n \"layout\": \"布局\",\n \"preferences\": \"偏好设置\"\n }\n}\n","{\n \"themeSwitcher\": {\n \"default\": \"默认\",\n \"light\": \"浅色\",\n \"dark\": \"深色\",\n \"cosmic\": \"宇宙\",\n \"corporate\": \"企业\",\n \"forest\": \"森林\",\n \"coffee\": \"咖啡\",\n \"wine\": \"酒红\",\n \"wheat\": \"麦田\"\n }\n}\n","/**\n * NFX-UI 内置多语言资源:theme / language / layout / preference 四个命名空间,en / zh / fr 三种语言。\n * Built-in i18n resources: namespaces theme, language, layout, preference; languages en, zh, fr.\n *\n * 使用方可在 createI18nResources 时合并此资源,使 ThemeSwitcher / LanguageSwitcher / LayoutSwitcher 使用默认翻译。\n * Consumers can merge these resources in createI18nResources so switchers use default labels.\n */\nimport type { CreateI18nResourcesResult, NameSpacesMap, Resources } from \"../types\";\n\nimport enLayout from \"./en/layout.json\";\nimport enLanguage from \"./en/language.json\";\nimport enPreference from \"./en/preference.json\";\nimport enTheme from \"./en/theme.json\";\nimport frLayout from \"./fr/layout.json\";\nimport frLanguage from \"./fr/language.json\";\nimport frPreference from \"./fr/preference.json\";\nimport frTheme from \"./fr/theme.json\";\nimport zhLayout from \"./zh/layout.json\";\nimport zhLanguage from \"./zh/language.json\";\nimport zhPreference from \"./zh/preference.json\";\nimport zhTheme from \"./zh/theme.json\";\n\nexport const NFX_NAMESPACES = [\"theme\", \"language\", \"layout\", \"preference\"] as const;\nexport const NFX_NAMESPACES_MAP: NameSpacesMap = {\n theme: \"theme\",\n language: \"language\",\n layout: \"layout\",\n preference: \"preference\",\n};\n\nconst DEFAULT_NFX_RESOURCES: Resources = {\n en: {\n theme: enTheme as Record<string, unknown>,\n language: enLanguage as Record<string, unknown>,\n layout: enLayout as Record<string, unknown>,\n preference: enPreference as Record<string, unknown>,\n },\n zh: {\n theme: zhTheme as Record<string, unknown>,\n language: zhLanguage as Record<string, unknown>,\n layout: zhLayout as Record<string, unknown>,\n preference: zhPreference as Record<string, unknown>,\n },\n fr: {\n theme: frTheme as Record<string, unknown>,\n language: frLanguage as Record<string, unknown>,\n layout: frLayout as Record<string, unknown>,\n preference: frPreference as Record<string, unknown>,\n },\n};\n\n/**\n * 返回 NFX-UI 默认文案包,可与使用方自建 resources 合并后传入 createI18nResources。\n * Returns default NFX bundles; merge with your resources and pass to createI18nResources.\n */\nexport function getDefaultNfxBundles(): CreateI18nResourcesResult {\n return {\n RESOURCES: DEFAULT_NFX_RESOURCES,\n NAME_SPACES_MAP: NFX_NAMESPACES_MAP,\n NAME_SPACES: [...NFX_NAMESPACES],\n };\n}\n","/**\n * 语言相关 localStorage 读写与移除,统一走 utils/lstorage;读写类型为 LanguageEnum。\n * Language localStorage get/set/remove via utils/lstorage; typed as LanguageEnum.\n */\nimport type { Nilable } from \"@/types/utils\";\nimport { getItem, removeItem, setItem } from \"@/utils/lstorage\";\n\nimport { LANGUAGE_STORAGE_KEY, LANGUAGE_VALUES, LanguageEnum } from \"../types\";\n\nexport function getLanguageStorage(): Nilable<LanguageEnum> {\n const raw = getItem(LANGUAGE_STORAGE_KEY);\n if (raw == null) return raw;\n return (LANGUAGE_VALUES as readonly string[]).includes(raw) ? (raw as LanguageEnum) : undefined;\n}\n\nexport function setLanguageStorage(value: LanguageEnum): void {\n setItem(LANGUAGE_STORAGE_KEY, value);\n}\n\nexport function removeLanguageStorage(): void {\n removeItem(LANGUAGE_STORAGE_KEY);\n}\n","/**\n * i18n 初始化与实例:initI18n 由 LanguageProvider 调用,changeLanguage 供外部切换语言。\n * 默认会合并 NFX-UI 自带的 theme / language / layout / preference 四个命名空间,使用方只需传入自己的 bundles。\n * i18n init and instance: initI18n called by LanguageProvider. Merges built-in theme/language/layout/preference by default.\n */\nimport type { InitI18nOptions } from \"../types\";\n\nimport i18n from \"i18next\";\nimport LanguageDetector from \"i18next-browser-languagedetector\";\nimport { initReactI18next } from \"react-i18next\";\n\nimport { getDefaultNfxBundles } from \"../resources\";\nimport { LanguageEnum, LANGUAGE_STORAGE_KEY, LANGUAGE_VALUES } from \"../types\";\nimport { getLanguageStorage, setLanguageStorage } from \"../utils/languageStorage\";\n\nlet languagePersistAttached = false;\n\n/**\n * 初始化 i18n。会先合并 NFX-UI 自带的四类 JSON(theme/language/layout/preference),再与用户传入的 bundles 合并(用户可覆盖)。\n * Init i18n. Merges built-in NFX bundles (theme, language, layout, preference) with user bundles (user overrides).\n */\nexport function initI18n(options: InitI18nOptions): void {\n /** React StrictMode remounts the provider; i18next 原单例二次 init 会弄乱资源。 */\n if (i18n.isInitialized) {\n return;\n }\n\n const nfx = getDefaultNfxBundles();\n const user = options.bundles;\n const fallbackLng = options.fallbackLng ?? LanguageEnum.ZH;\n\n const RESOURCES = ([LanguageEnum.EN, LanguageEnum.ZH, LanguageEnum.FR] as const).reduce(\n (acc, lang) => ({\n ...acc,\n [lang]: {\n ...(nfx.RESOURCES[lang] ?? {}),\n ...(user.RESOURCES[lang] ?? {}),\n },\n }),\n {} as typeof user.RESOURCES,\n );\n const NAME_SPACES = [...user.NAME_SPACES, ...nfx.NAME_SPACES.filter((n) => !user.NAME_SPACES.includes(n))];\n\n /** Same key as `lookupLocalStorage`: prefer saved choice before navigator. */\n const initialLng = getLanguageStorage() ?? fallbackLng;\n\n const persistLanguage = (lng: string) => {\n const base = lng.split(\"-\")[0]?.toLowerCase() ?? \"\";\n if ((LANGUAGE_VALUES as readonly string[]).includes(base)) {\n setLanguageStorage(base as LanguageEnum);\n }\n };\n\n if (!languagePersistAttached) {\n i18n.on(\"languageChanged\", persistLanguage);\n languagePersistAttached = true;\n }\n\n i18n\n .use(LanguageDetector)\n .use(initReactI18next)\n .init({\n compatibilityJSON: \"v4\",\n resources: RESOURCES,\n lng: initialLng,\n fallbackLng,\n /**\n * 资源只注册 en/zh/fr;.detector 或浏览器会给出 zh-CN、en-US 等,若不收敛则整语言匹配失败 → 界面全是 key。\n * Bundles are only `en` / `zh` / `fr`; normalize regional codes so namespaces resolve.\n */\n supportedLngs: [...LANGUAGE_VALUES],\n load: \"languageOnly\",\n ns: NAME_SPACES,\n defaultNS: NAME_SPACES[0],\n interpolation: { escapeValue: false },\n keySeparator: \".\",\n /**\n * Detector walks `order` and concatenates hits; first candidate wins for resolution.\n * `lookupLocalStorage` must match `getLanguageStorage` / `setLanguageStorage` (LANGUAGE_STORAGE_KEY).\n * Explicit `lng: initialLng` above mirrors that rule so behavior is obvious without reading plugin internals.\n */\n detection: {\n order: [\"localStorage\", \"navigator\", \"htmlTag\", \"path\", \"subdomain\"],\n lookupLocalStorage: LANGUAGE_STORAGE_KEY,\n caches: [\"localStorage\"],\n },\n });\n\n const onLoad = options.onLoadExtraBundles;\n if (onLoad) {\n const toSupported = (lng: string): LanguageEnum => {\n const base = lng.split(\"-\")[0]?.toLowerCase() ?? \"\";\n return (LANGUAGE_VALUES as readonly string[]).includes(base) ? (base as LanguageEnum) : fallbackLng;\n };\n const apply = async (lng: string) => {\n const code = toSupported(lng);\n const result = await onLoad(code);\n if (result == null) return;\n const items = Array.isArray(result) ? result : [result];\n for (const { namespace, bundle } of items) {\n if (namespace && bundle && typeof bundle === \"object\") {\n i18n.addResourceBundle(code, namespace, bundle, true, true);\n }\n }\n };\n void apply(i18n.language || fallbackLng);\n i18n.on(\"languageChanged\", (lng) => void apply(lng));\n }\n}\n\nexport default i18n;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BYsBa,KAAiB;AAAA,EAAC;AAAA,EAAS;AAAA,EAAY;AAAA,EAAU;AAAY,GAC7D,KAAoC;AAAA,EAC/C,OAAO;AAAA,EACP,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,YAAY;AACd,GAEM,KAAmC;AAAA,EACvC,IAAI;AAAA,IACF,OAAO;AAAA,IACP,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,YAAY;AAAA,EACd;AAAA,EACA,IAAI;AAAA,IACF,OAAO;AAAA,IACP,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,YAAY;AAAA,EACd;AAAA,EACA,IAAI;AAAA,IACF,OAAO;AAAA,IACP,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,YAAY;AAAA,EACd;AACF;AAMA,SAAgB,KAAkD;AAChE,SAAO;AAAA,IACL,WAAW;AAAA,IACX,iBAAiB;AAAA,IACjB,aAAa,CAAC,GAAG,EAAc;AAAA,EACjC;AACF;ACpDA,SAAgB,KAA4C;AAC1D,QAAM,IAAM,EAAQ,CAAoB;AACxC,SAAI,KAAO,QACH,EAAsC,SAAS,CAAG,IADlC,IAC8D;AACxF;AAEA,SAAgB,GAAmB,GAA2B;AAC5D,EAAA,EAAQ,GAAsB,CAAK;AACrC;AAEA,SAAgB,KAA8B;AAC5C,EAAA,EAAW,CAAoB;AACjC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c;AAAA,IACzB;AAAA,EACF,CAAC;AAEH,QAAM,IAAS,EAAQ;AACvB,MAAI,GAAQ;AACV,UAAM,IAAA,CAAe,MAA8B;AACjD,YAAM,IAAO,EAAI,MAAM,GAAG,EAAE,CAAA,GAAI,YAAY,KAAK;AACjD,aAAQ,EAAsC,SAAS,CAAI,IAAK,IAAwB;AAAA,IAC1F,GACM,IAAQ,OAAO,MAAgB;AACnC,YAAM,IAAO,EAAY,CAAG,GACtB,IAAS,MAAM,EAAO,CAAI;AAChC,UAAI,KAAU,KAAM;AACpB,YAAM,IAAQ,MAAM,QAAQ,CAAM,IAAI,IAAS,CAAC,CAAM;AACtD,iBAAW,EAAE,WAAA,GAAW,QAAA,EAAA,KAAY,EAClC,CAAI,KAAa,KAAU,OAAO,KAAW,YAC3C,EAAK,kBAAkB,GAAM,GAAW,GAAQ,IAAM,EAAI;AAAA,IAGhE;AACA,IAAA,EAAW,EAAK,YAAY,CAAW,GACvC,EAAK,GAAG,mBAAA,CAAoB,MAAA;AAAQ,MAAK,EAAM,CAAG;AAAA,KAAC;AAAA,EACrD;AACF;AAEA,IAAA,KAAe"}
@@ -1,3 +0,0 @@
1
- var r=(function(e){return e.EN="en",e.ZH="zh",e.FR="fr",e})(r||{}),t="zh",n=Object.values(r),u="language-storage";Object.defineProperty(exports,"DEFAULT_LANGUAGE",{enumerable:!0,get:function(){return t}});Object.defineProperty(exports,"LANGUAGE_STORAGE_KEY",{enumerable:!0,get:function(){return u}});Object.defineProperty(exports,"LANGUAGE_VALUES",{enumerable:!0,get:function(){return n}});Object.defineProperty(exports,"LanguageEnum",{enumerable:!0,get:function(){return r}});
2
-
3
- //# sourceMappingURL=chunk-language-2r4uKROB.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chunk-language-2r4uKROB.cjs","names":[],"sources":["../src/languages/types/language.ts"],"sourcesContent":["/**\n * 语言枚举与常量,不引用任何 JSON,供需要轻量引用的模块使用。\n * Language enum and constants; no JSON deps for lightweight usage.\n */\nenum LanguageEnum {\n EN = \"en\",\n ZH = \"zh\",\n FR = \"fr\",\n}\n\nconst DEFAULT_LANGUAGE = LanguageEnum.ZH;\nconst LANGUAGE_VALUES = Object.values(LanguageEnum);\nconst LANGUAGE_STORAGE_KEY = \"language-storage\";\n\nexport { LanguageEnum, DEFAULT_LANGUAGE, LANGUAGE_VALUES, LANGUAGE_STORAGE_KEY };\n"],"mappings":"AAIA,IAAK,GAAL,SAAA,EAAA,CACE,OAAA,EAAA,GAAA,KACA,EAAA,GAAA,KACA,EAAA,GAAA,MACF,GAJK,GAAA,CAAA,CAIL,EAEM,EAAA,KACA,EAAkB,OAAO,OAAO,CAAY,EAC5C,EAAuB"}